@univerjs-pro/collaboration-client 0.5.1-nightly.202412071605 → 0.5.1-nightly.202412090546

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/lib/cjs/facade.js +1 -0
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/en-US.js +1 -1
  4. package/lib/cjs/locale/fa-IR.js +1 -1
  5. package/lib/cjs/locale/fr-FR.js +1 -1
  6. package/lib/cjs/locale/ru-RU.js +1 -1
  7. package/lib/cjs/locale/vi-VN.js +1 -1
  8. package/lib/cjs/locale/zh-CN.js +1 -1
  9. package/lib/cjs/locale/zh-TW.js +1 -1
  10. package/lib/es/facade.js +1 -0
  11. package/lib/es/index.js +1 -1
  12. package/lib/es/locale/en-US.js +1 -1
  13. package/lib/es/locale/fa-IR.js +1 -1
  14. package/lib/es/locale/fr-FR.js +1 -1
  15. package/lib/es/locale/ru-RU.js +1 -1
  16. package/lib/es/locale/vi-VN.js +1 -1
  17. package/lib/es/locale/zh-CN.js +1 -1
  18. package/lib/es/locale/zh-TW.js +1 -1
  19. package/lib/types/controllers/collaboration/collaboration.controller.d.ts +1 -0
  20. package/lib/types/facade/f-collaboration.d.ts +13 -0
  21. package/lib/types/facade/f-univer.d.ts +12 -0
  22. package/lib/types/facade/index.d.ts +2 -0
  23. package/lib/types/index.d.ts +1 -0
  24. package/lib/types/services/collaboration-session/collaboration-session.d.ts +2 -2
  25. package/lib/types/services/collaboration-session/collaboration-session.service.d.ts +6 -7
  26. package/lib/types/services/network-condition/network-condition.service.d.ts +6 -0
  27. package/lib/types/services/socket/collaboration-socket.service.d.ts +4 -4
  28. package/lib/umd/facade.js +1 -0
  29. package/lib/umd/index.js +1 -1
  30. package/lib/umd/locale/en-US.js +1 -1
  31. package/lib/umd/locale/fa-IR.js +1 -1
  32. package/lib/umd/locale/fr-FR.js +1 -1
  33. package/lib/umd/locale/ru-RU.js +1 -1
  34. package/lib/umd/locale/vi-VN.js +1 -1
  35. package/lib/umd/locale/zh-CN.js +1 -1
  36. package/lib/umd/locale/zh-TW.js +1 -1
  37. package/package.json +19 -8
@@ -0,0 +1 @@
1
+ function _0x2b8f(_0x2376aa,_0x46d39a){const _0x420557=_0x4205();return _0x2b8f=function(_0x2b8fc4,_0x434254){_0x2b8fc4=_0x2b8fc4-0x189;let _0x57c152=_0x420557[_0x2b8fc4];return _0x57c152;},_0x2b8f(_0x2376aa,_0x46d39a);}function _0x4205(){const _0xb06166=['NEW_CHANGESETS','_collabSessionService','joinRsp','status','getOwnPropertyDescriptor','@univerjs/docs','UNKNOWN_CMD','_updateLocalCache','collaboration-client.local-cache-service','getConfig','_socket$','INGEST','_commentService','_onRemoteRetry','socket\x20close','newCsEvent','CONFLICT','UNIVER_DOC','parseProtocolChangeset','11625610RoIEWl','size','collaMsg','localCacheService','MSG_FOR_ERROR','PERMISSION_DENIED','_collaborationTimeoutTimer','UNIVER_SLIDE','_init','getCurrentUser','BehaviorSubject','getMemberID','getCurrentRevOfUnit','_collaborationUIEventService','reconnect','awaitingChangeset','10485360eJKlez','awaiting','deepClone','from','addHandlerCallback','_transitionLocked','onLocalMutation','HEARTBEAT_INTERVAL','FETCH_MISSING','has','_onRemoteChangeset','sid','_checkMissing','state','amd','_transformService','_state','HEARTBEAT','params','interceptor','PENDING','722474xofRkE','UniverInstanceType','IPermissionService','getTypeOfUnitDisposed$','_unlockTransition','permissionRejEvent','_clearHeartbeatTimer','getAllMembers','getMember','PERMISSION_REJ','RichTextEditingMutation','JOIN_ROOM_FAILED','_clearLocalCache','_isPermissionRej','[CollaborationSessionService]','catch','OTHER_CLIENT_EDITING','_onConflict','subscribe','COLLAB_SUBMIT_CHANGESET_URL','state$','_univerInstanceService','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_onMessage','JOIN_ROOM_NOT_EXISTS','UniverSheets','routeKey','onRemoteChangeset','shareReplay','_schedule','_disableEditing','getCurrentSelections','every','IConfigService','c2Prime','FUniver','3083125OBHSAH','UniverDocs','@univerjs/sheets','_incrementRevisionNumber','MUTATION','Disposable','_tryEnsureSocket','UNIVER_SHEET','get','submit\x20changeset\x20error!','HTTPService','transformMutationsWithChangeset','next','LIVESHARE_REQUEST_HOST','firstValueFrom','filter','_sender','FAIL','/new_changes','[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.','readyForCollab','send','SUBMIT_CHANGESET_TIMEOUT','_onUserLeave','delay','JOIN_ROOM_FULL','onlyLocal','RECV','CHANGESET_SHOULD_RETRY','parseChangesetToProtocol','_entityInit$','UNRECOGNIZED','loadSheet','\x20to\x20','3141AKPozA','isPermissionRej','apply','dispose$','body','_submitChangeset','DisposableCollection','CollaborationEvent','push','[CollaborationSession]','call','JOIN','RxDisposable','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_httpService','_rescheduleHeartbeat','isTransformMutationsWithChangesetSuccess','_onConnectionOpen','offline','_state$','asObservable','sequenceExecute','UniverTelemetry','_onOffline','NOT_COLLAB','compose','_timeoutTimer','@univerjs/telemetry','_removeRoom','delete','ISocketService','_members','_scheduleTimestamp','updateOfflineData','USERS_ENTER','getValue','_toggleOffline','_entities','JOIN_ROOM_PERMISSION_DENIED','\x20-\x20','values','_onJoinRoomEvent','HELLO','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','onMissedChangesetFetched','onSendChangeset','6856UTmbyL','session','telemetry\x20info\x20is\x20not\x20initialized','message$','_onConnectionFailed','_onRemoteACK','fetchMissingChangesets','unitID','_socketReady','code','CommandType','_http','\x20in\x20_schedule.','_changesetSessionId','data','fetching\x20missing\x20changesets\x20from\x20','slice','connection\x20error','COMPRESS_MUTATION_SEND','_fetchMissChangesets','unknown','Inject','closeSession','disposeWithMe','liveShareOperation','pending','removeMember','close','getCollabEntity$','onMissingChangesets','onTransformRemoteChangesetByIMECache','WorkbookEditablePermission','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','@univerjs/core','_clearTimeoutTimer','_status$','takeUntil','_snapshotService','symbol','fromCollab','SheetsSelectionsService','mutations','onCommentUpdate','_awaitingChangeset','transformUndoRedo','getTypeOfUnitAdded$','ONLINE','liveShareNewHost','EmptyMutation','forEach','_createSocketURL','SHOULD_CLOSE_CONN','take','unsubscribe','@univerjs-pro/collaboration','_transformRemoteChangesetByStateCache','_handler','_sendHeartbeatTimer','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','/unit/','ReplaySubject','selections','c1Prime','_getSendChangesetTimeout','_eventService','set','rxjs','incrementRevOfUnit','Injector','ILogService','session.room-cnt-exceeds','SOCKET_FAILED_RETRY','reduce','conflict','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','session.room-permission-denied','_acknowledgedAwaitingChangeset','ticket','_sessions','executeCommand','setCurrentUser','_localeService','_throwTelemetryCollaborationNewChangeset','reqId','textRanges','_lockTransition','LEAVE','mapDocumentTypeToUniverType','_type','AWAITING_WITH_PENDING','origin','length','_localCacheService','_candidateSocket','_revisionService','[OfflineState]:\x20received\x20changeset.','_collaborationPaused','m2Prime','extend','_transformSelections','ITransformService','csAckEvent','failed\x20to\x20apply\x20missed\x20changesets!','_changesetReqId','getInterceptPoints','_memberService','FCollaboration','OFFLINE','_getSessionTicket','_sessionStatus$','_userManagerService','_configService','_getCurrentRevision','emitEvent','toggleOnline','_onCombEvent','map','stopTime','_onUserJoin','ws://127.0.0.1:8000/universer-api/comb/connect','_getCtorByUniverType','6115858AMmovr','_commentUpdate$','onRemoteAck','editingUnit','_startTelemetryCollaborationNewChangeset','_startCollaboration','_socketMessageSubscription','_resendTimer','merge','_undoRedoService','[CollaborationSessionService]:\x20socket\x20error','_roomMembers','IUniverInstanceService','changesets','CHANGESET_ACK','onTransformState','Module','UniverProCollaboration','_scheduleCollaborationTimeoutTimer','_unitID','members','SYNCED','loadOfflineData','post','onRemoteRej','roomInfos','sessionTicket','Optional','error$','createIdentifier','unitId','InsertSheetMutation','[FetchMissState]','resend','PSEUDO_FETCH_MISSING_RESULT','init','_executeRemoteChangeset','_joinRoom','eventID','_toggleOnline','status$','setShowComponents','_listenToNetworkCondition','getUnitType','RETRY_CONNECTING_MAX_COUNT','_onLocalMutation','toStringTag','_commandService','collaboration-client.config','appendMutation','_createSocket','range','defineProperty','_replayCachedMutations','transformSelections','_onRemoteRejected','session.join-failed','baseRev','1278270BsAGSO','[OfflineState]:\x20received\x20rejection.','then','_compressMutationService','updatePermissionObjEvent','csShouldRetryEvent','toLowerCase','_clearCollaborationTimeoutTimer','_permissionService','updatePermissionPoint','updateMember','_stopTelemetryCollaborationNewChangeset','LocaleService','getCollaboration','_snapshotServerService','createSocket','online$','transformChangesets','_retryCount','_clearScheduledTask','joinEvent','event$','SOCKET_FAILED','GLOBAL_ROOMS_CNT_EXCEEDS','USERS_LEAVE','_shouldReportTelemetry','[SyncedState]:\x20received\x20rejection.','onCommandExecuted','_collaborationController','_updateState','_handlerCallback','createInstance','COMPRESS_MUTATION_APPLY','_onRecvEvent','getCollabEntity','LIVESHARE_NEW_HOST','commentUpdateEvent','onSyncEditingCollabCursor','_remoteChangesetQueue','startTime','_telemetryInfo','getTime','@univerjs/network','_socket','stringify','add','_queuedRemoteChangesets','_logService','_telemetryService','IDLE','complete','FBase','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','toString','_applyRemoteChangeset','type','_syncEditingCollabCursor','close$','_retryConnectingTimer','toDisposable','getActiveSheet','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','sessionStatus$','UNIVER_UNKNOWN','getUnitId','_onFetchMissResult','collabWebSocketUrl','_transformUndoredo','LIVESHARE_FETCH_OPERATIONS','_event$','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','cmd','isTransformChangesetsSuccess','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','entityInit$','onTransformIME','4xtCXhE','onTransformSelections','clear','debug','IUndoRedoService','awaiting_with_pending','_createHandler','_socketService','result','_transformStateCache','fetch_missing','JOINING','UPDATE_CURSOR','commentUpdate$','/universer-api/comb','_exhaustRemoteChangesetQueue','operators','editing\x20status\x20changed\x20to','getSheetId','synced','retryConnectingInterval','bind','dispose','OTHER_CLIENTS_EDITING','JSONX','collabSubmitChangesetUrl','univer-pro.collaboration-client-socket-service','[PendingState]:\x20received\x20acknowledgement.','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','Subject','capture','_pendingMutations','updateCursorEvent','socket\x20open.','onRemoteRetry','_instanceService','getUnit','_tryReconnect','pipe','memberID','ICommandService','SetSelectionsOperation','equals','_sendingTimer','_singleActiveUnitService','_transformRemoteChangesetByIMECache','CompressMutationService','fetchThroughInterceptors','actions','getUniverSheet','UniverCore','NO_OTHER_CLIENTS_EDITING','_resendWithTimeout','_injector','_createInitialStateImpl','error','parse','UserManagerService','_networkConditionService','rxjs/operators','shouldCloseConn','HEARTBEAT_TIMEOUT','ISnapshotServerService','_waitForHeartbeatResponse','sessionStatus','open$','LIVESHARE_OPERATION','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_createInitialState','onTransformRemoteChangesetByStateCache','SUBMIT_CHANGESET','RevisionService','4eIqlJX','getUnitStatus$','_sendHeartbeat','wsSessionTicketUrl','AWAITING','_resendTimeout','fetchMiss','LIVESHARE_TERMINATE','toggleOffline','_transformIMECache','not_collab','revision','_showConflictNotification','getRandomValues','FETCH_MISS','[OfflineState]:\x20received\x20acknowledgement.','now','randomUUID','CLOSE_ROOM'];_0x4205=function(){return _0xb06166;};return _0x4205();}(function(_0x247645,_0x55c69b){const _0x4a4a3c=_0x2b8f,_0x351c81=_0x247645();while(!![]){try{const _0x3edf70=parseInt(_0x4a4a3c(0x1e8))/0x1*(-parseInt(_0x4a4a3c(0x35b))/0x2)+-parseInt(_0x4a4a3c(0x30f))/0x3+parseInt(_0x4a4a3c(0x19d))/0x4*(-parseInt(_0x4a4a3c(0x20c))/0x5)+parseInt(_0x4a4a3c(0x1d3))/0x6+parseInt(_0x4a4a3c(0x2d5))/0x7+-parseInt(_0x4a4a3c(0x25c))/0x8*(parseInt(_0x4a4a3c(0x22e))/0x9)+parseInt(_0x4a4a3c(0x1c3))/0xa;if(_0x3edf70===_0x55c69b)break;else _0x351c81['push'](_0x351c81['shift']());}catch(_0x3de60a){_0x351c81['push'](_0x351c81['shift']());}}}(_0x4205,0xf36c3),function(_0x2eddeb,_0x496967){const _0x58a6a6=_0x2b8f;typeof exports=='object'&&typeof module<'u'?_0x496967(exports,require(_0x58a6a6(0x27d)),require(_0x58a6a6(0x292)),require(_0x58a6a6(0x29e)),require(_0x58a6a6(0x190)),require('@univerjs/network'),require(_0x58a6a6(0x249)),require(_0x58a6a6(0x1b5)),require(_0x58a6a6(0x20e))):typeof define=='function'&&define[_0x58a6a6(0x1e1)]?define(['exports',_0x58a6a6(0x27d),_0x58a6a6(0x292),_0x58a6a6(0x29e),_0x58a6a6(0x190),_0x58a6a6(0x339),'@univerjs/telemetry',_0x58a6a6(0x1b5),_0x58a6a6(0x20e)],_0x496967):(_0x2eddeb=typeof globalThis<'u'?globalThis:_0x2eddeb||self,_0x496967(_0x2eddeb['UniverProCollaborationClientFacade']={},_0x2eddeb[_0x58a6a6(0x38d)],_0x2eddeb[_0x58a6a6(0x2e6)],_0x2eddeb[_0x58a6a6(0x29e)],_0x2eddeb[_0x58a6a6(0x29e)][_0x58a6a6(0x36b)],_0x2eddeb['UniverNetwork'],_0x2eddeb[_0x58a6a6(0x244)],_0x2eddeb[_0x58a6a6(0x20d)],_0x2eddeb[_0x58a6a6(0x201)]));}(this,function(_0x1d673e,_0x5146d3,_0x25e52f,_0x454f45,_0x13385f,_0x4bf7b1,_0x39bc85,_0xb7ecf9,_0x507ff9){'use strict';const _0xc26848=_0x2b8f;var _0x6a5f01=Object['defineProperty'],_0x23bb00=(_0xcd23a0,_0x536263,_0x16da73)=>_0x536263 in _0xcd23a0?_0x6a5f01(_0xcd23a0,_0x536263,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x16da73}):_0xcd23a0[_0x536263]=_0x16da73,_0x5e36fb=(_0x237494,_0x52379a,_0x3a9473)=>_0x23bb00(_0x237494,typeof _0x52379a!=_0xc26848(0x282)?_0x52379a+'':_0x52379a,_0x3a9473),_0x44d2bd=(_0x467293=>(_0x467293[_0x467293[_0xc26848(0x34e)]=0x0]=_0xc26848(0x34e),_0x467293[_0x467293[_0xc26848(0x1c1)]=0x1]=_0xc26848(0x1c1),_0x467293[_0x467293[_0xc26848(0x213)]=0x2]='UNIVER_SHEET',_0x467293[_0x467293[_0xc26848(0x1ca)]=0x3]='UNIVER_SLIDE',_0x467293[_0x467293['UNIVER_PROJECT']=0x4]='UNIVER_PROJECT',_0x467293[_0x467293[_0xc26848(0x22b)]=-0x1]=_0xc26848(0x22b),_0x467293))(_0x44d2bd||{}),_0x40820e=(_0x260068=>(_0x260068[_0x260068['UNKNOWN_CMD']=0x0]=_0xc26848(0x1b6),_0x260068[_0x260068[_0xc26848(0x258)]=0x1]=_0xc26848(0x258),_0x260068[_0x260068[_0xc26848(0x239)]=0x2]=_0xc26848(0x239),_0x260068[_0x260068['LEAVE']=0x3]=_0xc26848(0x2b2),_0x260068[_0x260068[_0xc26848(0x1bb)]=0x4]=_0xc26848(0x1bb),_0x260068[_0x260068[_0xc26848(0x1e4)]=0x5]=_0xc26848(0x1e4),_0x260068[_0x260068[_0xc26848(0x227)]=0x6]=_0xc26848(0x227),_0x260068[_0x260068[_0xc26848(0x22b)]=-0x1]=_0xc26848(0x22b),_0x260068))(_0x40820e||{}),_0x40dae3=(_0x1d15b3=>(_0x1d15b3[_0x1d15b3['UNKNOWN_CODE']=0x0]='UNKNOWN_CODE',_0x1d15b3[_0x1d15b3['OK']=0x1]='OK',_0x1d15b3[_0x1d15b3[_0xc26848(0x21d)]=0x2]='FAIL',_0x1d15b3[_0x1d15b3[_0xc26848(0x225)]=0x3e9]='JOIN_ROOM_FULL',_0x1d15b3[_0x1d15b3[_0xc26848(0x200)]=0x3ea]=_0xc26848(0x200),_0x1d15b3[_0x1d15b3[_0xc26848(0x254)]=0x3eb]=_0xc26848(0x254),_0x1d15b3[_0x1d15b3[_0xc26848(0x326)]=0x3ec]=_0xc26848(0x326),_0x1d15b3[_0x1d15b3[_0xc26848(0x22b)]=-0x1]=_0xc26848(0x22b),_0x1d15b3))(_0x40dae3||{});const _0x12885b=0x7d0,_0x55f428='COLLAB_WEB_SOCKET_URL',_0x18c9c0=_0xc26848(0x2d3),_0x2f5bda='/universer-api/user/session-ticket',_0x414c8b=_0xc26848(0x1da),_0x57505d=0x7530,_0x50045d=_0xc26848(0x192),_0x40872c=0x4e20,_0x3e0c89=0x4e20,_0x10d0ed=_0xc26848(0x301),_0x3bbff8=0x3,_0x3d5a34=_0xc26848(0x1fb),_0x58a4c1=_0xc26848(0x369),_0x54b2ba=_0xc26848(0x305);var _0x5382ef=(_0x243ef6=>(_0x243ef6['OTHER_CLIENT_EDITING']=_0xc26848(0x1f8),_0x243ef6[_0xc26848(0x1c8)]=_0xc26848(0x1c8),_0x243ef6['CONFLICT']=_0xc26848(0x1c0),_0x243ef6['CLOSE_ROOM']=_0xc26848(0x1af),_0x243ef6[_0xc26848(0x1f3)]=_0xc26848(0x1f3),_0x243ef6[_0xc26848(0x2a3)]=_0xc26848(0x2a3),_0x243ef6[_0xc26848(0x325)]=_0xc26848(0x325),_0x243ef6[_0xc26848(0x222)]=_0xc26848(0x222),_0x243ef6))(_0x5382ef||{});class _0x4a873a{constructor(){const _0x37b0a8=_0xc26848;_0x5e36fb(this,'_event$',new _0x454f45[(_0x37b0a8(0x378))]()),_0x5e36fb(this,_0x37b0a8(0x324),this['_event$']['asObservable']());}[_0xc26848(0x2cd)](_0x2278e9){const _0x3ba412=_0xc26848;this[_0x3ba412(0x354)][_0x3ba412(0x218)](_0x2278e9);}}const _0x545f8e=_0x5146d3[_0xc26848(0x2f2)]('univer-pro.collaboration-client.network-condition.service');function _0x19b939(_0x493e3d){const _0x5d8056=_0xc26848;var _0x310bb8,_0x2a4a1f,_0x1931c2,_0x177d37,_0xe8b6bb;const _0x444d11=_0x493e3d[_0x5d8056(0x26a)],_0x47786e=JSON[_0x5d8056(0x18d)](_0x444d11);switch(_0x47786e[_0x5d8056(0x356)]){case _0x40820e[_0x5d8056(0x1e4)]:case _0x40820e[_0x5d8056(0x258)]:{const _0x1fec14=_0x47786e['infoRsp'];return{..._0x47786e,'data':_0x1fec14,'cmd':_0x47786e[_0x5d8056(0x356)]};}case _0x40820e['JOIN']:{const _0x37abdf=_0x47786e[_0x5d8056(0x1b2)];return{..._0x47786e,'data':_0x37abdf,'cmd':_0x47786e[_0x5d8056(0x356)]};}case _0x40820e[_0x5d8056(0x227)]:{const _0x135f40=_0x47786e[_0x5d8056(0x1c5)];switch(_0x135f40[_0x5d8056(0x2fb)]){case _0x25e52f[_0x5d8056(0x235)][_0x5d8056(0x1f1)]:return{..._0x47786e,'data':{..._0x135f40,'data':(_0x310bb8=_0x135f40[_0x5d8056(0x1ed)])==null?void 0x0:_0x310bb8['cs']},'cmd':_0x47786e[_0x5d8056(0x356)]};case _0x25e52f['CollaborationEvent'][_0x5d8056(0x2e3)]:return{..._0x47786e,'data':{..._0x135f40,'data':(_0x2a4a1f=_0x135f40[_0x5d8056(0x2c1)])==null?void 0x0:_0x2a4a1f['cs']},'cmd':_0x47786e[_0x5d8056(0x356)]};case _0x25e52f[_0x5d8056(0x235)][_0x5d8056(0x1b0)]:return{..._0x47786e,'data':{..._0x135f40,'data':(_0x1931c2=_0x135f40[_0x5d8056(0x1bf)])==null?void 0x0:_0x1931c2['cs']},'cmd':_0x47786e[_0x5d8056(0x356)]};case _0x25e52f[_0x5d8056(0x235)]['CHANGESET_REJ']:return{..._0x47786e,'data':{..._0x135f40,'data':(_0x177d37=_0x135f40['csRejEvent'])==null?void 0x0:_0x177d37['cs']},'cmd':_0x47786e[_0x5d8056(0x356)]};case _0x25e52f['CollaborationEvent'][_0x5d8056(0x228)]:return{..._0x47786e,'data':{..._0x135f40,'data':(_0xe8b6bb=_0x135f40[_0x5d8056(0x314)])==null?void 0x0:_0xe8b6bb['cs']},'cmd':_0x47786e[_0x5d8056(0x356)]};case _0x25e52f['CollaborationEvent']['UPDATE_CURSOR']:return{..._0x47786e,'data':{..._0x135f40,'data':_0x135f40[_0x5d8056(0x37b)]},'cmd':_0x47786e['cmd']};case _0x25e52f['CollaborationEvent']['USERS_ENTER']:return{..._0x47786e,'data':{..._0x135f40,'data':_0x135f40[_0x5d8056(0x323)]},'cmd':_0x47786e['cmd']};case _0x25e52f['CollaborationEvent']['USERS_LEAVE']:return{..._0x47786e,'data':{..._0x135f40,'data':_0x135f40['leaveEvent']},'cmd':_0x47786e['cmd']};case _0x25e52f[_0x5d8056(0x235)][_0x5d8056(0x332)]:return{..._0x47786e,'data':{..._0x135f40,'data':_0x135f40[_0x5d8056(0x28b)]},'cmd':_0x47786e[_0x5d8056(0x356)]};case _0x25e52f[_0x5d8056(0x235)][_0x5d8056(0x353)]:case _0x25e52f['CollaborationEvent'][_0x5d8056(0x197)]:return{..._0x47786e,'data':{..._0x135f40,'data':_0x135f40[_0x5d8056(0x274)]},'cmd':_0x47786e['cmd']};case _0x25e52f[_0x5d8056(0x235)][_0x5d8056(0x1a4)]:return{..._0x47786e,'data':{..._0x135f40,'data':_0x135f40[_0x5d8056(0x28b)]},'cmd':_0x47786e[_0x5d8056(0x356)]};case _0x25e52f[_0x5d8056(0x235)][_0x5d8056(0x1c7)]:return{..._0x47786e,'data':_0x135f40,'cmd':_0x47786e['cmd']};case _0x25e52f[_0x5d8056(0x235)]['COMMENT_UPDATE']:return{..._0x47786e,'data':{..._0x135f40,'data':_0x135f40[_0x5d8056(0x333)]},'cmd':_0x47786e['cmd']};case _0x25e52f['CollaborationEvent']['UPDATE_PERMISSION_OBJ']:return{..._0x47786e,'data':{..._0x135f40,'data':_0x135f40[_0x5d8056(0x313)]},'cmd':_0x47786e[_0x5d8056(0x356)]};case _0x25e52f[_0x5d8056(0x235)][_0x5d8056(0x28f)]:return{..._0x47786e,'data':{..._0x135f40,'data':_0x135f40[_0x5d8056(0x191)]},'cmd':_0x47786e['cmd']};default:return _0x47786e;}}default:return _0x47786e;}}function _0x2387bb(_0x2e8628){const _0x103b22=_0xc26848;switch(_0x2e8628[_0x103b22(0x356)]){case _0x40820e[_0x103b22(0x1e4)]:case _0x40820e[_0x103b22(0x258)]:return JSON[_0x103b22(0x33b)]({'cmd':_0x2e8628[_0x103b22(0x356)],'routeKey':_0x2e8628[_0x103b22(0x202)]});case _0x40820e[_0x103b22(0x1bb)]:{let _0x2c87a2;switch(_0x2e8628[_0x103b22(0x26a)][_0x103b22(0x2fb)]){case _0x25e52f[_0x103b22(0x235)][_0x103b22(0x367)]:{_0x2c87a2={'eventID':_0x25e52f[_0x103b22(0x235)][_0x103b22(0x367)],'updateCursorEvent':_0x2e8628['data'][_0x103b22(0x26a)]};break;}case _0x25e52f[_0x103b22(0x235)][_0x103b22(0x327)]:{_0x2c87a2={'eventID':_0x25e52f['CollaborationEvent'][_0x103b22(0x327)],'leaveEvent':_0x2e8628[_0x103b22(0x26a)]['data']};break;}case _0x25e52f['CollaborationEvent'][_0x103b22(0x250)]:{_0x2c87a2={'eventID':_0x25e52f['CollaborationEvent'][_0x103b22(0x250)],'joinEvent':_0x2e8628[_0x103b22(0x26a)]['data']};break;}case _0x25e52f[_0x103b22(0x235)][_0x103b22(0x332)]:{_0x2c87a2={'eventID':_0x25e52f[_0x103b22(0x235)][_0x103b22(0x332)],'liveShareNewHost':_0x2e8628[_0x103b22(0x26a)][_0x103b22(0x26a)]};break;}case _0x25e52f[_0x103b22(0x235)][_0x103b22(0x197)]:{_0x2c87a2={'eventID':_0x25e52f[_0x103b22(0x235)]['LIVESHARE_OPERATION'],'liveShareOperation':_0x2e8628[_0x103b22(0x26a)]['data']};break;}case _0x25e52f[_0x103b22(0x235)][_0x103b22(0x1a4)]:{_0x2c87a2={'eventID':_0x25e52f[_0x103b22(0x235)][_0x103b22(0x1a4)],'liveShareTerminate':_0x2e8628['data'][_0x103b22(0x26a)]};break;}case _0x25e52f[_0x103b22(0x235)][_0x103b22(0x219)]:{_0x2c87a2={'eventID':_0x25e52f[_0x103b22(0x235)][_0x103b22(0x219)],'liveShareRequestHost':_0x2e8628[_0x103b22(0x26a)]['data']};break;}case _0x25e52f['CollaborationEvent'][_0x103b22(0x353)]:{_0x2c87a2={'eventID':_0x25e52f['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x2c87a2={'eventID':_0x2e8628[_0x103b22(0x26a)][_0x103b22(0x2fb)]};}return JSON[_0x103b22(0x33b)]({'cmd':_0x2e8628[_0x103b22(0x356)],'routeKey':_0x2e8628[_0x103b22(0x202)],'collaMsg':_0x2c87a2});}case _0x40820e[_0x103b22(0x239)]:return JSON[_0x103b22(0x33b)]({'cmd':_0x2e8628[_0x103b22(0x356)],'routeKey':_0x2e8628[_0x103b22(0x202)],'joinReq':_0x2e8628[_0x103b22(0x26a)]});case _0x40820e[_0x103b22(0x2b2)]:return JSON[_0x103b22(0x33b)]({'cmd':_0x2e8628[_0x103b22(0x356)],'routeKey':_0x2e8628['routeKey'],'leaveReq':_0x2e8628[_0x103b22(0x26a)]});default:throw new Error(_0x103b22(0x296));}}var _0x1f60a4=Object[_0xc26848(0x309)],_0x2bed04=Object['getOwnPropertyDescriptor'],_0x364502=(_0x4addaf,_0x78f2c1,_0x4572f8,_0xca156a)=>{const _0x432387=_0xc26848;for(var _0x20ff8a=_0xca156a>0x1?void 0x0:_0xca156a?_0x2bed04(_0x78f2c1,_0x4572f8):_0x78f2c1,_0x27c194=_0x4addaf[_0x432387(0x2b7)]-0x1,_0x475395;_0x27c194>=0x0;_0x27c194--)(_0x475395=_0x4addaf[_0x27c194])&&(_0x20ff8a=(_0xca156a?_0x475395(_0x78f2c1,_0x4572f8,_0x20ff8a):_0x475395(_0x20ff8a))||_0x20ff8a);return _0xca156a&&_0x20ff8a&&_0x1f60a4(_0x78f2c1,_0x4572f8,_0x20ff8a),_0x20ff8a;},_0x8be840=(_0x5c5b00,_0x542d8d)=>(_0x33a717,_0x426024)=>_0x542d8d(_0x33a717,_0x426024,_0x5c5b00);const _0x1f17fe=_0x5146d3['createIdentifier'](_0xc26848(0x375));function _0x1e2f5b(_0x1a20be,_0x2835ef,_0x5d6080){const _0x599685=_0xc26848;return _0x1a20be+'/'+_0x2835ef+_0x599685(0x297)+_0x5d6080+_0x599685(0x21e);}let _0x54d232=class extends _0x5146d3[_0xc26848(0x211)]{constructor(_0x5cf559,_0x38cd64,_0x5087b3,_0xf283f0,_0x3b6927){const _0x3d7f96=_0xc26848;super(),this[_0x3d7f96(0x18a)]=_0x5cf559,this[_0x3d7f96(0x267)]=_0x38cd64,this[_0x3d7f96(0x2cb)]=_0x5087b3,this['_logService']=_0xf283f0,this[_0x3d7f96(0x31d)]=_0x3b6927;}['createSocket'](_0x3ef010){const _0xd24875=_0xc26848,_0x453100=this['_injector'][_0xd24875(0x214)](_0x4bf7b1[_0xd24875(0x24c)]);if(!_0x453100)throw new Error(_0xd24875(0x27c));const _0x8ee0fc=_0x453100[_0xd24875(0x31e)](_0x3ef010);if(!_0x8ee0fc)throw new Error(_0xd24875(0x198));const _0x2daa47=new _0x5146d3[(_0xd24875(0x234))](),_0x4222a9=new _0x454f45[(_0xd24875(0x378))]();_0x2daa47[_0xd24875(0x33c)](_0x8ee0fc[_0xd24875(0x348)][_0xd24875(0x1fa)](_0x35fcf5=>_0x4222a9[_0xd24875(0x218)](_0x35fcf5))),_0x2daa47[_0xd24875(0x33c)](_0x5146d3[_0xd24875(0x34a)](()=>_0x4222a9[_0xd24875(0x341)]()));const _0x3e3f76=new _0x454f45[(_0xd24875(0x378))]();_0x2daa47['add'](_0x8ee0fc['error$'][_0xd24875(0x1fa)](_0x206959=>_0x3e3f76[_0xd24875(0x218)](_0x206959))),_0x2daa47[_0xd24875(0x33c)](_0x5146d3[_0xd24875(0x34a)](()=>_0x3e3f76[_0xd24875(0x341)]()));const _0x1ac6b4=new _0x454f45[(_0xd24875(0x378))]();_0x2daa47[_0xd24875(0x33c)](_0x8ee0fc[_0xd24875(0x25f)][_0xd24875(0x1fa)](_0x15f821=>{const _0x36d1a0=_0x19b939(_0x15f821);_0x1ac6b4['next'](_0x36d1a0);})),_0x2daa47[_0xd24875(0x33c)](_0x5146d3[_0xd24875(0x34a)](()=>_0x1ac6b4[_0xd24875(0x341)]()));let _0x3d439f;const _0x54365d=()=>{const _0x1001f6=_0xd24875;_0x3e3f76['next'](new Event(_0x1001f6(0x26d))),_0x4222a9[_0x1001f6(0x218)](new CloseEvent(_0x1001f6(0x26d))),_0x3d439f['close']();};return _0x3d439f={'memberID':'','close$':_0x4222a9[_0xd24875(0x242)](),'error$':_0x3e3f76[_0xd24875(0x242)](),'open$':_0x8ee0fc[_0xd24875(0x196)],'message$':_0x1ac6b4['asObservable'](),'send':_0x2c23d4=>{const _0x16f881=_0xd24875;if(_0x2c23d4['cmd']===_0x40820e[_0x16f881(0x1bb)]){if(_0x2c23d4[_0x16f881(0x26a)]['eventID']===_0x25e52f['CollaborationEvent']['SUBMIT_CHANGESET']){this[_0x16f881(0x233)](_0x3d439f,_0x2c23d4[_0x16f881(0x26a)])[_0x16f881(0x1f7)](_0x535d19=>{const _0x21abdd=_0x16f881;this[_0x21abdd(0x33e)][_0x21abdd(0x18c)](_0x535d19),_0x54365d();});return;}if(_0x2c23d4['data'][_0x16f881(0x2fb)]===_0x25e52f[_0x16f881(0x235)][_0x16f881(0x1db)]){const _0x1ed28b=_0x2c23d4[_0x16f881(0x26a)];this[_0x16f881(0x26f)](_0x1ed28b)[_0x16f881(0x311)](_0x1c0b36=>{const _0x49ad86=_0x16f881;_0x1ac6b4['next']({'cmd':_0x40820e['RECV'],'code':_0x40dae3['OK'],'routeKey':_0x1ed28b['data'][_0x49ad86(0x263)],'routeType':'','data':{'eventID':_0x25e52f['CollaborationEvent'][_0x49ad86(0x2f7)],'data':{'changesets':_0x1c0b36}}});})[_0x16f881(0x1f7)](_0x37d68c=>{this['_logService']['error'](_0x37d68c),_0x54365d();});return;}}_0x8ee0fc[_0x16f881(0x221)](_0x2387bb(_0x2c23d4));},'close':()=>{const _0x16dd5a=_0xd24875;_0x8ee0fc[_0x16dd5a(0x277)](),_0x2daa47[_0x16dd5a(0x371)]();}},_0x3d439f;}async[_0xc26848(0x233)](_0x49a5d1,_0x5d579){const _0x5e0ecc=_0xc26848;var _0xb064df,_0xcc43bf;const {unitType:_0x17f5f6,unitID:_0x36b0e7,changeset:_0x37736b}=_0x5d579['data'],_0x44798e={'unitID':_0x36b0e7,'memberID':_0x49a5d1[_0x5e0ecc(0x382)],'type':_0x17f5f6,'changeset':_0x25e52f[_0x5e0ecc(0x229)](_0x37736b)},_0x3bdfda=this['_configService']['getConfig'](_0x3d5a34),_0x1329b9=this[_0x5e0ecc(0x2cb)][_0x5e0ecc(0x1b9)](_0x54b2ba),_0x3f40f4=_0x1e2f5b((_0xcc43bf=(_0xb064df=_0x1329b9==null?void 0x0:_0x1329b9[_0x5e0ecc(0x374)])!=null?_0xb064df:_0x3bdfda)!=null?_0xcc43bf:_0x58a4c1,_0x17f5f6,_0x36b0e7);try{await this[_0x5e0ecc(0x267)][_0x5e0ecc(0x2ec)](_0x3f40f4,{'body':_0x44798e});}catch(_0xfbb8a0){throw this[_0x5e0ecc(0x33e)][_0x5e0ecc(0x18c)]('[CollaborationSession]',_0x5e0ecc(0x215)),_0xfbb8a0;}}async[_0xc26848(0x26f)](_0x399978){const _0x3d69bc=_0xc26848,{unitID:_0x373e7a,from:_0x18a26c,to:_0x184657,unitType:_0x1e9a7d}=_0x399978[_0x3d69bc(0x26a)];return(await this[_0x3d69bc(0x31d)][_0x3d69bc(0x262)]({'metadata':void 0x0},{'unitID':_0x373e7a,'type':_0x1e9a7d,'from':_0x18a26c,'to':_0x184657}))[_0x3d69bc(0x2e2)];}};_0x54d232=_0x364502([_0x8be840(0x0,_0x5146d3[_0xc26848(0x271)](_0x5146d3[_0xc26848(0x2a0)])),_0x8be840(0x1,_0x5146d3[_0xc26848(0x271)](_0x4bf7b1[_0xc26848(0x216)])),_0x8be840(0x2,_0x5146d3[_0xc26848(0x209)]),_0x8be840(0x3,_0x5146d3[_0xc26848(0x2a1)]),_0x8be840(0x4,_0x25e52f[_0xc26848(0x193)])],_0x54d232);const _0x46b95e='collaboration_new_changeset';function _0x1dd0c3(_0x22b530){const _0x5c1dd6=_0xc26848;return JSON[_0x5c1dd6(0x33b)](_0x22b530)[_0x5c1dd6(0x2b7)];}class _0x25786d{constructor(){const _0x22fedc=_0xc26848;_0x5e36fb(this,_0x22fedc(0x2d6),new _0x454f45[(_0x22fedc(0x378))]()),_0x5e36fb(this,_0x22fedc(0x368),this[_0x22fedc(0x2d6)][_0x22fedc(0x242)]());}[_0xc26848(0x286)](_0x54623a){const _0x1c9fd7=_0xc26848;this[_0x1c9fd7(0x2d6)][_0x1c9fd7(0x218)](_0x54623a);}}var _0x5da741=Object[_0xc26848(0x309)],_0x462702=Object['getOwnPropertyDescriptor'],_0x27627d=(_0xaa9618,_0x19ff3c,_0x5934ee,_0x4d4c12)=>{const _0x3c6a1f=_0xc26848;for(var _0x5d05e2=_0x4d4c12>0x1?void 0x0:_0x4d4c12?_0x462702(_0x19ff3c,_0x5934ee):_0x19ff3c,_0x4aaec9=_0xaa9618[_0x3c6a1f(0x2b7)]-0x1,_0x41e611;_0x4aaec9>=0x0;_0x4aaec9--)(_0x41e611=_0xaa9618[_0x4aaec9])&&(_0x5d05e2=(_0x4d4c12?_0x41e611(_0x19ff3c,_0x5934ee,_0x5d05e2):_0x41e611(_0x5d05e2))||_0x5d05e2);return _0x4d4c12&&_0x5d05e2&&_0x5da741(_0x19ff3c,_0x5934ee,_0x5d05e2),_0x5d05e2;},_0x249646=(_0x32758a,_0x140ddb)=>(_0x1701b7,_0x2ce13b)=>_0x140ddb(_0x1701b7,_0x2ce13b,_0x32758a);let _0x58b080=class extends _0x5146d3['Disposable']{constructor(_0x1ba039,_0x337dda){const _0x1eae1e=_0xc26848;super(),_0x5e36fb(this,_0x1eae1e(0x2e0),new Map()),(this[_0x1eae1e(0x1fd)]=_0x1ba039,this[_0x1eae1e(0x2ca)]=_0x337dda,this[_0x1eae1e(0x273)](_0x5146d3[_0x1eae1e(0x34a)](_0x454f45['merge'](this[_0x1eae1e(0x1fd)][_0x1eae1e(0x1eb)](_0x5146d3[_0x1eae1e(0x1e9)]['UNIVER_SHEET'])[_0x1eae1e(0x381)](_0x13385f[_0x1eae1e(0x2d0)](_0x43e453=>_0x43e453['getUnitId']())),this[_0x1eae1e(0x1fd)][_0x1eae1e(0x1eb)](_0x5146d3[_0x1eae1e(0x1e9)][_0x1eae1e(0x1c1)])['pipe'](_0x13385f[_0x1eae1e(0x2d0)](_0x527ab9=>_0x527ab9[_0x1eae1e(0x34f)]())),this['_univerInstanceService'][_0x1eae1e(0x1eb)](_0x5146d3['UniverInstanceType']['UNIVER_SLIDE'])[_0x1eae1e(0x381)](_0x13385f[_0x1eae1e(0x2d0)](_0x4e256d=>_0x4e256d[_0x1eae1e(0x34f)]())))[_0x1eae1e(0x1fa)](_0x1e188b=>this[_0x1eae1e(0x24a)](_0x1e188b)))));}[_0xc26848(0x2ac)](_0x164080){const _0xac7a2e=_0xc26848;this[_0xac7a2e(0x2ca)][_0xac7a2e(0x2ac)](_0x164080);}[_0xc26848(0x1cc)](){const _0x4a7816=_0xc26848;return this[_0x4a7816(0x2ca)]['getCurrentUser']();}['updateMember'](_0x468b96,_0x42d9ce){const _0x46a568=_0xc26848;let _0xc6f186=this[_0x46a568(0x2e0)][_0x46a568(0x214)](_0x468b96);_0xc6f186||(_0xc6f186=new _0x16affb(),this[_0x46a568(0x2e0)][_0x46a568(0x29d)](_0x468b96,_0xc6f186)),_0xc6f186['updateMember'](_0x42d9ce);}['removeMember'](_0x4b78c7,_0x213df6){const _0x28c32e=_0xc26848,_0xefc8=this[_0x28c32e(0x2e0)][_0x28c32e(0x214)](_0x4b78c7);_0xefc8&&_0xefc8[_0x28c32e(0x276)](_0x213df6);}['getRoom'](_0x2e1965){const _0x12bf88=_0xc26848;return this[_0x12bf88(0x2e0)][_0x12bf88(0x214)](_0x2e1965);}[_0xc26848(0x1f0)](_0x261a1c,_0x3e38d0){const _0x2dabc0=_0xc26848,_0x37f6aa=this[_0x2dabc0(0x2e0)]['get'](_0x261a1c);if(_0x37f6aa)return _0x37f6aa[_0x2dabc0(0x1f0)](_0x3e38d0);}[_0xc26848(0x24a)](_0x488354){const _0x2d14a0=_0xc26848,_0x1a8ed4=this[_0x2d14a0(0x2e0)][_0x2d14a0(0x214)](_0x488354);_0x1a8ed4&&(_0x1a8ed4[_0x2d14a0(0x371)](),this[_0x2d14a0(0x2e0)][_0x2d14a0(0x24b)](_0x488354));}[_0xc26848(0x371)](){const _0x4c2b9b=_0xc26848;this[_0x4c2b9b(0x2e0)]['forEach'](_0xebfb5a=>_0xebfb5a[_0x4c2b9b(0x371)]()),this[_0x4c2b9b(0x2e0)][_0x4c2b9b(0x35d)]();}};_0x58b080=_0x27627d([_0x249646(0x0,_0x5146d3[_0xc26848(0x2e1)]),_0x249646(0x1,_0x5146d3[_0xc26848(0x271)](_0x5146d3[_0xc26848(0x18e)]))],_0x58b080);class _0x16affb extends _0x5146d3[_0xc26848(0x211)]{constructor(){const _0xd6f751=_0xc26848;super(...arguments),_0x5e36fb(this,_0xd6f751(0x24d),new Map());}[_0xc26848(0x371)](){const _0x2b9385=_0xc26848;this[_0x2b9385(0x24d)]['clear']();}['updateMember'](_0x35a22c){const _0x128bce=_0xc26848;this[_0x128bce(0x24d)][_0x128bce(0x29d)](_0x35a22c[_0x128bce(0x382)],_0x35a22c);}[_0xc26848(0x276)](_0x36ae23){const _0xcd2e89=_0xc26848;this[_0xcd2e89(0x24d)][_0xcd2e89(0x24b)](_0x36ae23);}[_0xc26848(0x1f0)](_0x235a4e){const _0x2f945e=_0xc26848;return this['_members'][_0x2f945e(0x214)](_0x235a4e);}[_0xc26848(0x1ef)](){const _0x195b9b=_0xc26848;return Array[_0x195b9b(0x1d6)](this['_members'][_0x195b9b(0x256)]());}}var _0x4caced=Object[_0xc26848(0x309)],_0x4e1b3c=Object[_0xc26848(0x1b4)],_0x4addb6=(_0x25d08f,_0x3ebe8a,_0x1aa38a,_0x40cb50)=>{const _0x5e278b=_0xc26848;for(var _0x25a118=_0x40cb50>0x1?void 0x0:_0x40cb50?_0x4e1b3c(_0x3ebe8a,_0x1aa38a):_0x3ebe8a,_0x4ec98b=_0x25d08f[_0x5e278b(0x2b7)]-0x1,_0xb93eea;_0x4ec98b>=0x0;_0x4ec98b--)(_0xb93eea=_0x25d08f[_0x4ec98b])&&(_0x25a118=(_0x40cb50?_0xb93eea(_0x3ebe8a,_0x1aa38a,_0x25a118):_0xb93eea(_0x25a118))||_0x25a118);return _0x40cb50&&_0x25a118&&_0x4caced(_0x3ebe8a,_0x1aa38a,_0x25a118),_0x25a118;},_0x324294=(_0x3fcc72,_0x5b7abf)=>(_0x14d0dc,_0x2c014d)=>_0x5b7abf(_0x14d0dc,_0x2c014d,_0x3fcc72),_0x585855=(_0x476190=>(_0x476190[_0x476190[_0xc26848(0x340)]=0x0]=_0xc26848(0x340),_0x476190[_0x476190[_0xc26848(0x366)]=0x1]='JOINING',_0x476190[_0x476190[_0xc26848(0x2c7)]=0x2]=_0xc26848(0x2c7),_0x476190[_0x476190[_0xc26848(0x28a)]=0x3]=_0xc26848(0x28a),_0x476190))(_0x585855||{});const _0x496dc0={[_0x40dae3[_0xc26848(0x21d)]]:_0xc26848(0x30d),[_0x40dae3[_0xc26848(0x225)]]:'session.room-full',[_0x40dae3[_0xc26848(0x200)]]:'session.room-not-exists',[_0x40dae3[_0xc26848(0x254)]]:_0xc26848(0x2a7),[_0x40dae3['GLOBAL_ROOMS_CNT_EXCEEDS']]:_0xc26848(0x2a2)};let _0x35550a=class extends _0x5146d3[_0xc26848(0x23a)]{constructor(_0x2e7cc0,_0x107455,_0x1d44d8,_0x4b8591,_0x59ef48,_0x3b9258,_0x1311b4,_0x35084d,_0x1da821){const _0x3c9e40=_0xc26848;super(),_0x5e36fb(this,'_sessionStatus$',new _0x454f45[(_0x3c9e40(0x1cd))](0x0)),_0x5e36fb(this,'sessionStatus$',this[_0x3c9e40(0x2c9)][_0x3c9e40(0x242)]()),_0x5e36fb(this,_0x3c9e40(0x354),new _0x454f45[(_0x3c9e40(0x378))]()),_0x5e36fb(this,_0x3c9e40(0x324),this[_0x3c9e40(0x354)][_0x3c9e40(0x242)]()),_0x5e36fb(this,_0x3c9e40(0x33a)),_0x5e36fb(this,_0x3c9e40(0x2db)),_0x5e36fb(this,'_collaborationTimeoutTimer'),_0x5e36fb(this,_0x3c9e40(0x328),!0x1),_0x5e36fb(this,_0x3c9e40(0x337),null),(this[_0x3c9e40(0x2e8)]=_0x2e7cc0,this['_logService']=_0x1d44d8,this['_configService']=_0x4b8591,this[_0x3c9e40(0x2ad)]=_0x59ef48,this[_0x3c9e40(0x2c5)]=_0x3b9258,this[_0x3c9e40(0x1bc)]=_0x1311b4,this[_0x3c9e40(0x1d0)]=_0x35084d,this[_0x3c9e40(0x33f)]=_0x1da821,this[_0x3c9e40(0x328)]=!!this[_0x3c9e40(0x33f)],_0x107455[_0x3c9e40(0x381)](_0x454f45['takeUntil'](this[_0x3c9e40(0x231)]))[_0x3c9e40(0x1fa)](_0x466033=>{const _0x43c9f8=_0x3c9e40;var _0xe3eebc;typeof _0x466033>'u'||(this[_0x43c9f8(0x33a)]=_0x466033,_0x466033?(this[_0x43c9f8(0x2fa)](_0x466033),this[_0x43c9f8(0x2db)]=_0x466033[_0x43c9f8(0x25f)][_0x43c9f8(0x1fa)](_0x3b412f=>{const _0x5c55ac=_0x43c9f8;_0x3b412f[_0x5c55ac(0x202)]===this[_0x5c55ac(0x2e8)]&&this[_0x5c55ac(0x2cf)](_0x3b412f);})):(this['_throwTelemetryCollaborationNewChangeset'](),this[_0x43c9f8(0x2c9)][_0x43c9f8(0x218)](0x2),(_0xe3eebc=this['_socketMessageSubscription'])==null||_0xe3eebc['unsubscribe'](),this['_socketMessageSubscription']=null));}));}get[_0xc26848(0x195)](){const _0xbb12d=_0xc26848;return this[_0xbb12d(0x2c9)][_0xbb12d(0x251)]();}[_0xc26848(0x1ce)](){const _0x289327=_0xc26848;var _0x2300ce,_0x10dccd;return(_0x10dccd=(_0x2300ce=this['_socket'])==null?void 0x0:_0x2300ce[_0x289327(0x382)])!=null?_0x10dccd:null;}[_0xc26848(0x371)](){const _0x2d153f=_0xc26848;super[_0x2d153f(0x371)](),this[_0x2d153f(0x231)][_0x2d153f(0x218)](),this[_0x2d153f(0x231)][_0x2d153f(0x341)]();}[_0xc26848(0x277)](){const _0x462e56=_0xc26848;var _0x4e09c3,_0x503359;this[_0x462e56(0x2ae)](),(_0x4e09c3=this['_socket'])==null||_0x4e09c3[_0x462e56(0x221)]({'cmd':_0x40820e[_0x462e56(0x2b2)],'data':{'roomID':this[_0x462e56(0x2e8)]}}),(_0x503359=this[_0x462e56(0x33a)])==null||_0x503359[_0x462e56(0x277)](),this['_event$'][_0x462e56(0x341)](),this[_0x462e56(0x2c9)][_0x462e56(0x341)](),this['dispose']();}[_0xc26848(0x2cf)](_0x42b546){const _0x1df3d3=_0xc26848;_0x42b546['cmd']===_0x40820e['JOIN']?this[_0x1df3d3(0x257)](_0x42b546):_0x42b546['cmd']===_0x40820e['RECV']&&this[_0x1df3d3(0x330)](_0x42b546);}[_0xc26848(0x2fa)](_0x21f4f8){const _0x2e03db=_0xc26848;this['_sessionStatus$'][_0x2e03db(0x218)](0x1),_0x21f4f8[_0x2e03db(0x221)]({'cmd':_0x40820e['JOIN'],'routeKey':this[_0x2e03db(0x2e8)],'routeType':'','data':{'rooms':[{'roomID':this[_0x2e03db(0x2e8)]}]}});}[_0xc26848(0x257)](_0x29dccd){const _0x3bb72a=_0xc26848;var _0x5c1a57;if(_0x29dccd[_0x3bb72a(0x265)]in _0x496dc0){this['_collaborationUIEventService'][_0x3bb72a(0x2cd)]({'id':_0x5382ef[_0x3bb72a(0x1f3)],'data':_0x496dc0[_0x29dccd[_0x3bb72a(0x265)]]}),this[_0x3bb72a(0x2c9)]['next'](0x2);return;}this[_0x3bb72a(0x2c9)][_0x3bb72a(0x218)](0x3);const _0x4fc4e9=(_0x5c1a57=_0x29dccd[_0x3bb72a(0x26a)][_0x3bb72a(0x2ee)][this[_0x3bb72a(0x2e8)]])==null?void 0x0:_0x5c1a57[_0x3bb72a(0x2e9)];_0x4fc4e9&&_0x4fc4e9['forEach'](_0x399479=>this[_0x3bb72a(0x2c5)][_0x3bb72a(0x319)](this[_0x3bb72a(0x2e8)],_0x399479));}[_0xc26848(0x330)](_0x563b){const _0x1bc24e=_0xc26848;try{const _0x2a5356=_0x563b[_0x1bc24e(0x26a)];switch(_0x2a5356[_0x1bc24e(0x2fb)]){case _0x25e52f[_0x1bc24e(0x235)][_0x1bc24e(0x250)]:this[_0x1bc24e(0x2d2)](_0x2a5356),this[_0x1bc24e(0x354)]['next'](_0x2a5356);break;case _0x25e52f['CollaborationEvent'][_0x1bc24e(0x327)]:this[_0x1bc24e(0x223)](_0x2a5356),this[_0x1bc24e(0x354)]['next'](_0x2a5356);break;case _0x25e52f[_0x1bc24e(0x235)][_0x1bc24e(0x2e3)]:case _0x25e52f[_0x1bc24e(0x235)][_0x1bc24e(0x228)]:this[_0x1bc24e(0x31a)](),this[_0x1bc24e(0x316)](),this[_0x1bc24e(0x354)][_0x1bc24e(0x218)](_0x2a5356);break;case _0x25e52f[_0x1bc24e(0x235)][_0x1bc24e(0x1c7)]:this['_logService'][_0x1bc24e(0x18c)]('save\x20fail\x20reason\x20is\x20'+JSON[_0x1bc24e(0x33b)](_0x2a5356)),this[_0x1bc24e(0x354)][_0x1bc24e(0x218)](_0x2a5356);break;case _0x25e52f[_0x1bc24e(0x235)]['COMMENT_UPDATE']:this[_0x1bc24e(0x1bc)][_0x1bc24e(0x286)](_0x2a5356['data']),this[_0x1bc24e(0x354)][_0x1bc24e(0x218)](_0x2a5356);break;default:this[_0x1bc24e(0x354)][_0x1bc24e(0x218)](_0x2a5356);}}catch(_0x2d8499){this['_logService'][_0x1bc24e(0x18c)](_0x2d8499,_0x563b);}}[_0xc26848(0x2d2)](_0x4a059b){const _0x2bb1b8=_0xc26848;this['_memberService'][_0x2bb1b8(0x319)](this[_0x2bb1b8(0x2e8)],_0x4a059b['data']);}[_0xc26848(0x223)](_0xd3f84){const _0x3827af=_0xc26848;this[_0x3827af(0x2c5)]['removeMember'](this[_0x3827af(0x2e8)],_0xd3f84[_0x3827af(0x26a)]['memberID']);}async['send'](_0x59cf3b,_0x2b4296){const _0xb8629f=_0xc26848;if(this['sessionStatus']!==0x3||!this[_0xb8629f(0x33a)])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x59cf3b[_0xb8629f(0x2fb)]===_0x25e52f['CollaborationEvent'][_0xb8629f(0x19b)]&&(this[_0xb8629f(0x2e7)](),this[_0xb8629f(0x2d9)](_0x59cf3b)),this[_0xb8629f(0x33a)][_0xb8629f(0x221)]({'cmd':_0x40820e['INGEST'],'routeKey':_0x2b4296,'routeType':'','data':_0x59cf3b});}catch(_0x564a93){this[_0xb8629f(0x33e)][_0xb8629f(0x18c)](_0x564a93);}}['_scheduleCollaborationTimeoutTimer'](){const _0x13607d=_0xc26848;var _0x546a89;this[_0x13607d(0x1c9)]=setTimeout(()=>{const _0x450e3f=_0x13607d;this[_0x450e3f(0x1c9)]=null,this[_0x450e3f(0x1d0)]['emitEvent']({'id':_0x5382ef[_0x450e3f(0x222)]});},(_0x546a89=this['_configService'][_0x13607d(0x1b9)](_0x50045d))!=null?_0x546a89:_0x40872c);}[_0xc26848(0x316)](){const _0x310411=_0xc26848;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x310411(0x1c9)]),this[_0x310411(0x1c9)]=null);}['_startTelemetryCollaborationNewChangeset'](_0x5e9ff7){const _0x402386=_0xc26848;if(!this[_0x402386(0x328)])return;const {data:_0x3488d5}=_0x5e9ff7,{unitID:_0x2fc2da,changeset:_0x13fc94}=_0x3488d5,{mutations:_0x36e23a,type:_0x14f17c}=_0x13fc94;this[_0x402386(0x337)]={'unitId':_0x2fc2da,'type':_0x14f17c,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':_0x1dd0c3(_0x36e23a)};}[_0xc26848(0x31a)](){const _0xce1636=_0xc26848;if(this['_shouldReportTelemetry']){if(!this[_0xce1636(0x337)]){this[_0xce1636(0x33e)][_0xce1636(0x18c)](_0xce1636(0x237),_0xce1636(0x25e));return;}this[_0xce1636(0x337)][_0xce1636(0x2d1)]=performance[_0xce1636(0x1ad)](),this['_telemetryInfo']['duration']=this[_0xce1636(0x337)][_0xce1636(0x2d1)]-this[_0xce1636(0x337)][_0xce1636(0x336)],this[_0xce1636(0x33f)][_0xce1636(0x379)](_0x46b95e,this[_0xce1636(0x337)]),this[_0xce1636(0x337)]=null;}}[_0xc26848(0x2ae)](){const _0x35ea5d=_0xc26848;this[_0x35ea5d(0x337)]=null;}};_0x35550a=_0x4addb6([_0x324294(0x2,_0x5146d3[_0xc26848(0x2a1)]),_0x324294(0x3,_0x5146d3[_0xc26848(0x209)]),_0x324294(0x4,_0x5146d3[_0xc26848(0x271)](_0x5146d3[_0xc26848(0x31b)])),_0x324294(0x5,_0x5146d3[_0xc26848(0x271)](_0x58b080)),_0x324294(0x6,_0x5146d3[_0xc26848(0x271)](_0x25786d)),_0x324294(0x7,_0x5146d3[_0xc26848(0x271)](_0x4a873a)),_0x324294(0x8,_0x5146d3['Optional'](_0x39bc85['ITelemetryService']))],_0x35550a);var _0x53b266=Object[_0xc26848(0x309)],_0x4d9f19=Object['getOwnPropertyDescriptor'],_0x712a0b=(_0x3ad33f,_0x15fbd7,_0x57190d,_0x2d96a9)=>{for(var _0x54e87f=_0x2d96a9>0x1?void 0x0:_0x2d96a9?_0x4d9f19(_0x15fbd7,_0x57190d):_0x15fbd7,_0x236f3f=_0x3ad33f['length']-0x1,_0xb9c641;_0x236f3f>=0x0;_0x236f3f--)(_0xb9c641=_0x3ad33f[_0x236f3f])&&(_0x54e87f=(_0x2d96a9?_0xb9c641(_0x15fbd7,_0x57190d,_0x54e87f):_0xb9c641(_0x54e87f))||_0x54e87f);return _0x2d96a9&&_0x54e87f&&_0x53b266(_0x15fbd7,_0x57190d,_0x54e87f),_0x54e87f;},_0x303bc5=(_0x513022,_0x333c7b)=>(_0x4f23de,_0x221c01)=>_0x333c7b(_0x4f23de,_0x221c01,_0x513022);let _0x12796a=class extends _0x5146d3['Disposable']{constructor(_0xa38bfb,_0xa74120,_0xc5d85,_0x458dbd,_0x592919,_0x3d2236,_0x3ae0aa){const _0x4fddc1=_0xc26848;super(),_0x5e36fb(this,_0x4fddc1(0x1ba),new _0x454f45[(_0x4fddc1(0x1cd))](void 0x0)),_0x5e36fb(this,'socket$',this[_0x4fddc1(0x1ba)][_0x4fddc1(0x242)]()),_0x5e36fb(this,_0x4fddc1(0x2b9),null),_0x5e36fb(this,_0x4fddc1(0x2aa),new Map()),_0x5e36fb(this,_0x4fddc1(0x27f),new _0x454f45[(_0x4fddc1(0x1cd))](_0x585855['IDLE'])),_0x5e36fb(this,'status$',this[_0x4fddc1(0x27f)][_0x4fddc1(0x242)]()),_0x5e36fb(this,_0x4fddc1(0x264),!0x1),_0x5e36fb(this,_0x4fddc1(0x349)),_0x5e36fb(this,_0x4fddc1(0x321),0x0),_0x5e36fb(this,'_sendHeartbeatTimer'),_0x5e36fb(this,'_timeoutTimer'),(this[_0x4fddc1(0x18a)]=_0xa38bfb,this[_0x4fddc1(0x33e)]=_0xa74120,this[_0x4fddc1(0x2cb)]=_0xc5d85,this[_0x4fddc1(0x362)]=_0x458dbd,this['_httpService']=_0x592919,this[_0x4fddc1(0x1d0)]=_0x3d2236,this[_0x4fddc1(0x18f)]=_0x3ae0aa,this['_listenToNetworkCondition']());}get[_0xc26848(0x33a)](){const _0x5d82f1=_0xc26848;return this[_0x5d82f1(0x1ba)][_0x5d82f1(0x251)]();}[_0xc26848(0x2ff)](){const _0x18227c=_0xc26848;this['_networkConditionService']&&this[_0x18227c(0x273)](this[_0x18227c(0x18f)][_0x18227c(0x31f)][_0x18227c(0x1fa)](_0x54bfe9=>{const _0x5d06ec=_0x18227c;_0x54bfe9&&!this['_socket']&&this['reconnect'](),_0x54bfe9||this[_0x5d06ec(0x245)]();}));}['dispose'](){const _0x3e82b1=_0xc26848;super[_0x3e82b1(0x371)](),this[_0x3e82b1(0x2aa)][_0x3e82b1(0x28d)](_0x26622b=>_0x26622b[_0x3e82b1(0x371)]()),this[_0x3e82b1(0x2aa)][_0x3e82b1(0x35d)](),this[_0x3e82b1(0x27f)][_0x3e82b1(0x341)]();}async['requireSession'](_0x3b3021){const _0xc6dbb5=_0xc26848;if(this[_0xc6dbb5(0x2aa)][_0xc6dbb5(0x1dc)](_0x3b3021))return this[_0xc6dbb5(0x2aa)][_0xc6dbb5(0x214)](_0x3b3021);this[_0xc6dbb5(0x212)]();const _0xc9cb78=this[_0xc6dbb5(0x18a)][_0xc6dbb5(0x32e)](_0x35550a,_0x3b3021,this[_0xc6dbb5(0x1ba)]['asObservable']());return this[_0xc6dbb5(0x2aa)][_0xc6dbb5(0x29d)](_0x3b3021,_0xc9cb78),_0xc9cb78;}[_0xc26848(0x272)](_0x4ba635){const _0x34c6dd=_0xc26848;var _0x5a7166;const _0x162b99=this[_0x34c6dd(0x2aa)][_0x34c6dd(0x214)](_0x4ba635);_0x162b99&&(this[_0x34c6dd(0x2aa)][_0x34c6dd(0x24b)](_0x4ba635),_0x162b99[_0x34c6dd(0x277)]()),this[_0x34c6dd(0x2aa)][_0x34c6dd(0x1c4)]||(_0x5a7166=this['_socket'])==null||_0x5a7166[_0x34c6dd(0x277)]();}[_0xc26848(0x1d1)](){const _0x26eb64=_0xc26848;this[_0x26eb64(0x321)]=0x0,this['_retryConnectingTimer']!=null&&(clearTimeout(this[_0x26eb64(0x349)]),this[_0x26eb64(0x349)]=null),this[_0x26eb64(0x380)]();}async[_0xc26848(0x2c8)](){const _0x3a1bc3=_0xc26848;var _0x1eb682,_0x114cef,_0x3743f1;const _0xc19189=this[_0x3a1bc3(0x2cb)]['getConfig'](_0x54b2ba),_0x59d061=(_0x1eb682=_0xc19189==null?void 0x0:_0xc19189[_0x3a1bc3(0x1a0)])!=null?_0x1eb682:_0x2f5bda;return(_0x3743f1=(_0x114cef=(await this[_0x3a1bc3(0x23c)][_0x3a1bc3(0x214)](_0x59d061,{'headers':{'Content-Type':'application/json'}}))[_0x3a1bc3(0x232)])==null?void 0x0:_0x114cef[_0x3a1bc3(0x2a9)])!=null?_0x3743f1:'';}['_createSocketURL'](_0x2228b4){const _0x4276b2=_0xc26848;var _0x47e35d,_0x4f3917;const _0x18e0c4=this['_configService'][_0x4276b2(0x1b9)](_0x55f428),_0x51433b=this[_0x4276b2(0x2cb)][_0x4276b2(0x1b9)](_0x54b2ba),_0xa6a777=(_0x4f3917=(_0x47e35d=_0x51433b==null?void 0x0:_0x51433b[_0x4276b2(0x351)])!=null?_0x47e35d:_0x18e0c4)!=null?_0x4f3917:_0x18c9c0,_0xa00cfc=typeof window>'u'?new URL(_0xa6a777):new URL(_0xa6a777,window['location'][_0x4276b2(0x2b6)]);return _0xa00cfc['searchParams'][_0x4276b2(0x29d)](_0x4276b2(0x2ef),_0x2228b4),_0xa00cfc[_0x4276b2(0x344)]();}async[_0xc26848(0x307)](){const _0x5887cc=_0xc26848,_0x54fa16=await this[_0x5887cc(0x2c8)](),_0x17608a=this[_0x5887cc(0x28e)](_0x54fa16),_0xe98fa7=this[_0x5887cc(0x362)]['createSocket'](_0x17608a);return this['_candidateSocket']=_0xe98fa7,_0xe98fa7;}async[_0xc26848(0x212)](){const _0x2cffc1=_0xc26848;var _0x1fe300,_0x2121c8;try{const _0x2565f1=(_0x2121c8=(_0x1fe300=this['_socket'])!=null?_0x1fe300:this[_0x2cffc1(0x2b9)])!=null?_0x2121c8:await this[_0x2cffc1(0x307)]();if(_0x2565f1){const _0x1057db=_0x2565f1[_0x2cffc1(0x221)];_0x2565f1[_0x2cffc1(0x221)]=_0x3f856c=>(this[_0x2cffc1(0x23d)](),_0x1057db[_0x2cffc1(0x230)](_0x2565f1,[_0x3f856c])),_0x2565f1['message$'][_0x2cffc1(0x1fa)](_0x456236=>this[_0x2cffc1(0x1ff)](_0x2565f1,_0x456236)),_0x2565f1[_0x2cffc1(0x2f1)][_0x2cffc1(0x381)](_0x13385f[_0x2cffc1(0x290)](0x1))[_0x2cffc1(0x1fa)](_0x484ff8=>this[_0x2cffc1(0x33e)]['error'](_0x2cffc1(0x2df),_0x484ff8)),_0x2565f1['open$']['pipe'](_0x13385f[_0x2cffc1(0x290)](0x1))['subscribe'](()=>{const _0x3eb486=_0x2cffc1;this[_0x3eb486(0x23f)](_0x2565f1);}),_0x2565f1[_0x2cffc1(0x348)][_0x2cffc1(0x381)](_0x13385f[_0x2cffc1(0x290)](0x1))[_0x2cffc1(0x1fa)](_0xd7ec5f=>{const _0x40d935=_0x2cffc1;this['_logService'][_0x40d935(0x35e)](_0x40d935(0x1f6),_0x40d935(0x1be),_0xd7ec5f),this[_0x40d935(0x260)]();});}}catch(_0x3beaab){this[_0x2cffc1(0x33e)][_0x2cffc1(0x18c)](_0x3beaab),this['_onConnectionFailed']();}}['_onConnectionOpen'](_0xef8fc9){const _0x558b2f=_0xc26848;this[_0x558b2f(0x33e)][_0x558b2f(0x35e)]('[CollaborationSessionService]',_0x558b2f(0x37c)),_0xef8fc9[_0x558b2f(0x221)]({'cmd':_0x40820e[_0x558b2f(0x258)]}),this[_0x558b2f(0x23d)]();}['_onOffline'](){const _0x52ac93=_0xc26848;this[_0x52ac93(0x264)]=!0x1,this['_candidateSocket']=null,this[_0x52ac93(0x27f)][_0x52ac93(0x218)](_0x585855[_0x52ac93(0x2c7)]),this[_0x52ac93(0x1ba)][_0x52ac93(0x218)](null),this['_clearTimeoutTimer'](),this[_0x52ac93(0x1ee)]();}[_0xc26848(0x260)](){const _0x5a8c19=_0xc26848;var _0x13b24e;this[_0x5a8c19(0x245)](),this['_retryCount']<((_0x13b24e=this[_0x5a8c19(0x2cb)][_0x5a8c19(0x1b9)](_0x10d0ed))!=null?_0x13b24e:_0x3bbff8)?(this[_0x5a8c19(0x1d0)][_0x5a8c19(0x2cd)]({'id':_0x5382ef[_0x5a8c19(0x2a3)]}),this['_tryReconnect']()):this[_0x5a8c19(0x1d0)][_0x5a8c19(0x2cd)]({'id':_0x5382ef[_0x5a8c19(0x325)]});}[_0xc26848(0x380)](){const _0x4d3fa4=_0xc26848;var _0x10dbbb;const _0x2be006=this[_0x4d3fa4(0x321)],_0x3f4135=this[_0x4d3fa4(0x2cb)][_0x4d3fa4(0x1b9)](_0x54b2ba),_0x115198=_0x2be006===0x0?0x0:((_0x10dbbb=_0x3f4135==null?void 0x0:_0x3f4135[_0x4d3fa4(0x36f)])!=null?_0x10dbbb:_0x3e0c89)*0x2**_0x2be006;this[_0x4d3fa4(0x349)]=setTimeout(()=>{const _0x3d6fca=_0x4d3fa4;clearTimeout(this['_retryConnectingTimer']),this[_0x3d6fca(0x349)]=null,this['_tryEnsureSocket']();},_0x115198),this['_retryCount']+=0x1;}['_onMessage'](_0x1b811c,_0x64be96){const _0x2c4dee=_0xc26848,{cmd:_0x15a121}=_0x64be96;_0x15a121===_0x40820e[_0x2c4dee(0x258)]&&!this[_0x2c4dee(0x264)]&&(_0x1b811c['memberID']=_0x64be96[_0x2c4dee(0x26a)][_0x2c4dee(0x382)],this[_0x2c4dee(0x1ba)][_0x2c4dee(0x218)](_0x1b811c),this[_0x2c4dee(0x27f)][_0x2c4dee(0x218)](_0x585855[_0x2c4dee(0x28a)]),this[_0x2c4dee(0x264)]=!0x0,this[_0x2c4dee(0x2b9)]=null),_0x15a121===_0x40820e[_0x2c4dee(0x1e4)]&&this[_0x2c4dee(0x27e)](),this[_0x2c4dee(0x23d)]();}[_0xc26848(0x23d)](){const _0xe7ec49=_0xc26848;var _0x1f8d43;this[_0xe7ec49(0x1ee)](),this[_0xe7ec49(0x295)]=setTimeout(()=>this['_sendHeartbeat'](),(_0x1f8d43=this[_0xe7ec49(0x2cb)][_0xe7ec49(0x1b9)](_0x414c8b))!=null?_0x1f8d43:_0x57505d);}[_0xc26848(0x19f)](){const _0x3d9061=_0xc26848;this[_0x3d9061(0x33a)]['send']({'cmd':_0x40820e[_0x3d9061(0x1e4)]}),this[_0x3d9061(0x194)]();}[_0xc26848(0x194)](){const _0xdcc16a=_0xc26848;var _0x388c49;this[_0xdcc16a(0x248)]=setTimeout(()=>this['_onConnectionFailed'](),(_0x388c49=this[_0xdcc16a(0x2cb)][_0xdcc16a(0x1b9)](_0x50045d))!=null?_0x388c49:_0x40872c);}['_clearHeartbeatTimer'](){const _0x42a308=_0xc26848;this[_0x42a308(0x295)]!=null&&(clearTimeout(this[_0x42a308(0x295)]),this[_0x42a308(0x295)]=null);}[_0xc26848(0x27e)](){const _0x475c6f=_0xc26848;this[_0x475c6f(0x248)]!=null&&(clearTimeout(this['_timeoutTimer']),this['_timeoutTimer']=null);}};_0x12796a=_0x712a0b([_0x303bc5(0x0,_0x5146d3['Inject'](_0x5146d3[_0xc26848(0x2a0)])),_0x303bc5(0x1,_0x5146d3['ILogService']),_0x303bc5(0x2,_0x5146d3[_0xc26848(0x209)]),_0x303bc5(0x3,_0x1f17fe),_0x303bc5(0x4,_0x5146d3[_0xc26848(0x271)](_0x4bf7b1[_0xc26848(0x216)])),_0x303bc5(0x5,_0x5146d3[_0xc26848(0x271)](_0x4a873a)),_0x303bc5(0x6,_0x5146d3[_0xc26848(0x2f0)](_0x545f8e))],_0x12796a);const _0x37a731=[];for(let _0x5262ba=0x0;_0x5262ba<0x100;++_0x5262ba)_0x37a731['push']((_0x5262ba+0x100)[_0xc26848(0x344)](0x10)[_0xc26848(0x26c)](0x1));function _0x2da90f(_0x5c9fa3,_0x54bc7d=0x0){const _0x1eb880=_0xc26848;return(_0x37a731[_0x5c9fa3[_0x54bc7d+0x0]]+_0x37a731[_0x5c9fa3[_0x54bc7d+0x1]]+_0x37a731[_0x5c9fa3[_0x54bc7d+0x2]]+_0x37a731[_0x5c9fa3[_0x54bc7d+0x3]]+'-'+_0x37a731[_0x5c9fa3[_0x54bc7d+0x4]]+_0x37a731[_0x5c9fa3[_0x54bc7d+0x5]]+'-'+_0x37a731[_0x5c9fa3[_0x54bc7d+0x6]]+_0x37a731[_0x5c9fa3[_0x54bc7d+0x7]]+'-'+_0x37a731[_0x5c9fa3[_0x54bc7d+0x8]]+_0x37a731[_0x5c9fa3[_0x54bc7d+0x9]]+'-'+_0x37a731[_0x5c9fa3[_0x54bc7d+0xa]]+_0x37a731[_0x5c9fa3[_0x54bc7d+0xb]]+_0x37a731[_0x5c9fa3[_0x54bc7d+0xc]]+_0x37a731[_0x5c9fa3[_0x54bc7d+0xd]]+_0x37a731[_0x5c9fa3[_0x54bc7d+0xe]]+_0x37a731[_0x5c9fa3[_0x54bc7d+0xf]])[_0x1eb880(0x315)]();}let _0x6a5a26;const _0x1784ce=new Uint8Array(0x10);function _0x316944(){const _0x15b313=_0xc26848;if(!_0x6a5a26){if(typeof crypto>'u'||!crypto[_0x15b313(0x1aa)])throw new Error(_0x15b313(0x355));_0x6a5a26=crypto[_0x15b313(0x1aa)]['bind'](crypto);}return _0x6a5a26(_0x1784ce);}const _0x7b7588={'randomUUID':typeof crypto<'u'&&crypto[_0xc26848(0x1ae)]&&crypto[_0xc26848(0x1ae)][_0xc26848(0x370)](crypto)};function _0x2cb5c3(_0xaa7cff,_0x22c66f,_0x47f9f1){const _0x220c15=_0xc26848;if(_0x7b7588[_0x220c15(0x1ae)]&&!_0x22c66f&&!_0xaa7cff)return _0x7b7588[_0x220c15(0x1ae)]();_0xaa7cff=_0xaa7cff||{};const _0x24e498=_0xaa7cff['random']||(_0xaa7cff['rng']||_0x316944)();return _0x24e498[0x6]=_0x24e498[0x6]&0xf|0x40,_0x24e498[0x8]=_0x24e498[0x8]&0x3f|0x80,_0x2da90f(_0x24e498);}const _0x121a33=_0x5146d3[_0xc26848(0x2f2)](_0xc26848(0x1b8));var _0xd3d9e3=Object[_0xc26848(0x309)],_0x1d80c9=Object[_0xc26848(0x1b4)],_0x3f687b=(_0x5de5d4,_0x2f0761,_0x467e1d,_0x5608d8)=>{for(var _0x2561e1=_0x5608d8>0x1?void 0x0:_0x5608d8?_0x1d80c9(_0x2f0761,_0x467e1d):_0x2f0761,_0x23db16=_0x5de5d4['length']-0x1,_0x70860f;_0x23db16>=0x0;_0x23db16--)(_0x70860f=_0x5de5d4[_0x23db16])&&(_0x2561e1=(_0x5608d8?_0x70860f(_0x2f0761,_0x467e1d,_0x2561e1):_0x70860f(_0x2561e1))||_0x2561e1);return _0x5608d8&&_0x2561e1&&_0xd3d9e3(_0x2f0761,_0x467e1d,_0x2561e1),_0x2561e1;},_0x58c6dc=(_0x31a393,_0x35441e)=>(_0x328a30,_0x24ddb6)=>_0x35441e(_0x328a30,_0x24ddb6,_0x31a393);function _0x518e50(_0x49340f){const {unitID:_0x3ce1e2,mutations:_0x34e17b}=_0x49340f;return{'unitId':_0x3ce1e2,'subUnitId':_0x34e17b[0x0]['params']['subUnitId']};}let _0xa76521=class{constructor(_0x52c240,_0x3ef07f,_0xd471e3){const _0xea5803=_0xc26848;this['_injector']=_0x52c240,this[_0xea5803(0x1e2)]=_0x3ef07f,this['_instanceService']=_0xd471e3;}[_0xc26848(0x30b)](_0x2335ff){const _0x14c46b=_0xc26848;var _0x2fb0cd,_0x48530e,_0x2082c3,_0x3b7e90;const _0x318b1f=this[_0x14c46b(0x18a)]['get'](_0x507ff9[_0x14c46b(0x284)]),{unitId:_0x2942bc,subUnitId:_0x2ae5df}=_0x518e50(_0x2335ff),_0xd9ff4a=_0x318b1f==null?void 0x0:_0x318b1f['getWorkbookSelections'](_0x2942bc)[_0x14c46b(0x207)](),_0x3dc92d=(_0x48530e=(_0x2fb0cd=this[_0x14c46b(0x37e)][_0x14c46b(0x37f)](_0x2942bc))==null?void 0x0:_0x2fb0cd[_0x14c46b(0x34b)]())==null?void 0x0:_0x48530e[_0x14c46b(0x36d)]();if(_0xd9ff4a['length']===0x0||!_0x2942bc||!_0x2ae5df)return;const _0x20e479=[{'id':_0x507ff9[_0x14c46b(0x384)]['id'],'params':{'unitId':_0x2942bc,'subUnitId':_0x3dc92d,'selections':_0x5146d3['Tools'][_0x14c46b(0x1d5)](_0xd9ff4a)}}],_0x546179=this[_0x14c46b(0x1e2)][_0x14c46b(0x217)](_0x2335ff,_0x20e479);if(!_0x25e52f[_0x14c46b(0x23e)](_0x546179))throw _0x546179['error'];const _0xe3a24d=(_0x3b7e90=(_0x2082c3=_0x546179[_0x14c46b(0x2bd)][0x0])==null?void 0x0:_0x2082c3['params'])==null?void 0x0:_0x3b7e90[_0x14c46b(0x299)];if(Array['isArray'](_0xe3a24d)&&_0xe3a24d[_0x14c46b(0x2b7)]){if(_0xe3a24d['length']===_0x20e479[0x0][_0x14c46b(0x1e5)]['selections'][_0x14c46b(0x2b7)]&&_0xe3a24d[_0x14c46b(0x208)]((_0x13b172,_0x59f2c5)=>_0x5146d3['Rectangle'][_0x14c46b(0x385)](_0x13b172[_0x14c46b(0x308)],_0x20e479[0x0][_0x14c46b(0x1e5)][_0x14c46b(0x299)][_0x59f2c5][_0x14c46b(0x308)])))return;this[_0x14c46b(0x18a)][_0x14c46b(0x214)](_0x5146d3[_0x14c46b(0x383)])[_0x14c46b(0x2ab)](_0x507ff9[_0x14c46b(0x384)]['id'],{'unitId':_0x2942bc,'subUnitId':_0x3dc92d,'selections':_0xe3a24d});}}};_0xa76521=_0x3f687b([_0x58c6dc(0x0,_0x5146d3['Inject'](_0x5146d3[_0xc26848(0x2a0)])),_0x58c6dc(0x1,_0x25e52f[_0xc26848(0x2c0)]),_0x58c6dc(0x2,_0x5146d3['IUniverInstanceService'])],_0xa76521);const _0x17c4aa=_0x5146d3[_0xc26848(0x2f2)]('univer-pro.collaboration-client.single-active-unit-service');var _0x5e891e=(_0x21141f=>(_0x21141f[_0x21141f[_0xc26848(0x38e)]=0x0]=_0xc26848(0x38e),_0x21141f[_0x21141f[_0xc26848(0x372)]=0x1]='OTHER_CLIENTS_EDITING',_0x21141f))(_0x5e891e||{});const _0x1ae90b=new Set([_0x507ff9[_0xc26848(0x2f4)]['id']]);function _0x32fcba(_0x299022,_0x2efd18,_0x53b67b,_0x888475,_0x357c7b){const _0x423b0e=_0xc26848;var _0x38dd3d,_0x1afa5f,_0x2e06a5,_0x5e0232;const _0x6c50fa=[];for(const _0x365c7a of _0x299022)if(_0x1ae90b[_0x423b0e(0x1dc)](_0x365c7a['id'])){if(_0x6c50fa[_0x423b0e(0x2b7)]>0x0)break;_0x6c50fa['push'](_0x365c7a);break;}else _0x6c50fa['push'](_0x365c7a);const _0x2b6b6d=(_0x1afa5f=(_0x38dd3d=_0x357c7b['getCurrentUser']())==null?void 0x0:_0x38dd3d['userID'])!=null?_0x1afa5f:_0x423b0e(0x270),_0x28d122=(_0x5e0232=(_0x2e06a5=_0x357c7b['getCurrentUser']())==null?void 0x0:_0x2e06a5[_0x423b0e(0x382)])!=null?_0x5e0232:_0x423b0e(0x270);return{'changeset':{'unitID':_0x2efd18,'type':_0x25e52f[_0x423b0e(0x2b3)](_0x53b67b['getUnitType'](_0x2efd18)),'baseRev':_0x888475[_0x423b0e(0x1cf)](_0x2efd18),'revision':0x0,'userID':_0x2b6b6d,'memberID':_0x28d122,'mutations':_0x6c50fa},'pendingMutations':_0x299022['slice'](_0x6c50fa[_0x423b0e(0x2b7)])};}function _0x557789(_0x43edea,_0x714aff,_0x5eb7e4,_0x32c3a9,_0x53472b){const _0x1fc03a=_0xc26848;var _0xcd8be6,_0x54d1e6,_0x1d5e46,_0x30a048;const _0x181eca=[_0x43edea[_0x1fc03a(0x2a4)]((_0x1ff2e2,_0x1a0c04)=>{const _0x510a57=_0x1fc03a;var _0x276f35;const {id:_0x17f273}=_0x1ff2e2,{id:_0x15f03e,type:_0x3eac1c}=_0x1a0c04,_0x5b9095=(_0x276f35=_0x1ff2e2[_0x510a57(0x1e5)])!=null?_0x276f35:{'actions':null},_0x2295f9=_0x1a0c04[_0x510a57(0x1e5)];if(_0x17f273&&_0x17f273!==_0x15f03e)throw new Error(_0x510a57(0x2a6)+_0x17f273+_0x510a57(0x255)+_0x15f03e+'.');return{..._0x1ff2e2,'id':_0x15f03e,'type':_0x3eac1c,'params':{'unitId':_0x2295f9[_0x510a57(0x2f3)],'textRanges':_0x2295f9[_0x510a57(0x2b0)],'actions':_0x5146d3[_0x510a57(0x373)][_0x510a57(0x247)](_0x5b9095[_0x510a57(0x38b)],_0x2295f9[_0x510a57(0x38b)])}};},{})],_0x422cfc=(_0x54d1e6=(_0xcd8be6=_0x53472b['getCurrentUser']())==null?void 0x0:_0xcd8be6['userID'])!=null?_0x54d1e6:'unknown',_0x441baf=(_0x30a048=(_0x1d5e46=_0x53472b[_0x1fc03a(0x1cc)]())==null?void 0x0:_0x1d5e46[_0x1fc03a(0x382)])!=null?_0x30a048:_0x1fc03a(0x270);return{'changeset':{'unitID':_0x714aff,'type':_0x25e52f[_0x1fc03a(0x2b3)](_0x5eb7e4[_0x1fc03a(0x300)](_0x714aff)),'baseRev':_0x32c3a9[_0x1fc03a(0x1cf)](_0x714aff),'revision':0x0,'userID':_0x422cfc,'memberID':_0x441baf,'mutations':_0x181eca},'pendingMutations':[]};}function _0x48e3ab(_0x436b73,_0x1a795f){const _0x31aa0f=_0xc26848,_0x2830d7=new _0x454f45[(_0x31aa0f(0x298))](0x1);return setTimeout(()=>_0x2830d7[_0x31aa0f(0x218)](_0x1a795f),_0x436b73),_0x2830d7[_0x31aa0f(0x242)]()[_0x31aa0f(0x381)](_0x454f45[_0x31aa0f(0x290)](0x1));}const _0x48e591={'id':_0x507ff9[_0xc26848(0x28c)]['id'],'type':_0x5146d3[_0xc26848(0x266)][_0xc26848(0x210)],'params':{}};var _0x547d6c=Object[_0xc26848(0x309)],_0x124c14=Object[_0xc26848(0x1b4)],_0x2d9796=(_0x1009f9,_0x2ee274,_0x33bb60,_0x4f30f8)=>{const _0x38d911=_0xc26848;for(var _0x1fccff=_0x4f30f8>0x1?void 0x0:_0x4f30f8?_0x124c14(_0x2ee274,_0x33bb60):_0x2ee274,_0x9bc0fc=_0x1009f9[_0x38d911(0x2b7)]-0x1,_0xb399b7;_0x9bc0fc>=0x0;_0x9bc0fc--)(_0xb399b7=_0x1009f9[_0x9bc0fc])&&(_0x1fccff=(_0x4f30f8?_0xb399b7(_0x2ee274,_0x33bb60,_0x1fccff):_0xb399b7(_0x1fccff))||_0x1fccff);return _0x4f30f8&&_0x1fccff&&_0x547d6c(_0x2ee274,_0x33bb60,_0x1fccff),_0x1fccff;},_0x15e3fb=(_0x55803d,_0x45e1f8)=>(_0x34dec6,_0x4707fb)=>_0x45e1f8(_0x34dec6,_0x4707fb,_0x55803d),_0x64b842=(_0x43eb3e=>(_0x43eb3e[_0xc26848(0x246)]=_0xc26848(0x1a7),_0x43eb3e[_0xc26848(0x2ea)]=_0xc26848(0x36e),_0x43eb3e[_0xc26848(0x1e7)]=_0xc26848(0x275),_0x43eb3e[_0xc26848(0x1a1)]=_0xc26848(0x1d4),_0x43eb3e[_0xc26848(0x2b5)]='awaiting_with_pending',_0x43eb3e[_0xc26848(0x1ab)]=_0xc26848(0x365),_0x43eb3e[_0xc26848(0x1c0)]=_0xc26848(0x2a5),_0x43eb3e[_0xc26848(0x2c7)]='offline',_0x43eb3e))(_0x64b842||{});const _0xd4feb3=0xea60;class _0x3ac2b9{constructor(_0x5b2c6f,_0x5964bc,_0x4b1e55,_0x1d337,_0x844659,_0x20f043,_0x37c239,_0x39c357,_0x473ad2){const _0x3fa61d=_0xc26848;_0x5e36fb(this,'_awaitingChangeset',null),_0x5e36fb(this,_0x3fa61d(0x37a),[]),(this['unitID']=_0x5b2c6f,this[_0x3fa61d(0x346)]=_0x5964bc,this[_0x3fa61d(0x294)]=_0x844659,this[_0x3fa61d(0x304)]=_0x20f043,this[_0x3fa61d(0x2de)]=_0x37c239,this[_0x3fa61d(0x2ba)]=_0x39c357,this['_localCacheService']=_0x473ad2,this[_0x3fa61d(0x287)]=_0x4b1e55,this['_pendingMutations']=_0x1d337);}[_0xc26848(0x1df)](_0x1da675){const _0x5aa01a=_0xc26848,_0x345a27=this[_0x5aa01a(0x2ba)]['getCurrentRevOfUnit'](this[_0x5aa01a(0x263)]);return _0x1da675[_0x5aa01a(0x1a8)]>_0x345a27+0x1?(this[_0x5aa01a(0x294)][_0x5aa01a(0x279)]({'from':_0x345a27,'to':_0x1da675[_0x5aa01a(0x1a8)]-0x1}),!0x0):!0x1;}[_0xc26848(0x352)](_0x2df203){const _0x38849c=_0xc26848;this[_0x38849c(0x2de)][_0x38849c(0x288)](this[_0x38849c(0x263)],_0x2df203);}[_0xc26848(0x2bf)](_0x446a04){const _0xb9b90e=_0xc26848;var _0x25dec4,_0x5ce295;(_0x5ce295=(_0x25dec4=this[_0xb9b90e(0x294)])[_0xb9b90e(0x35c)])==null||_0x5ce295['call'](_0x25dec4,_0x446a04);}[_0xc26848(0x1a6)](_0x269f08){const _0x31a399=_0xc26848;var _0x2ff059,_0x4777c7;return(_0x4777c7=(_0x2ff059=this[_0x31a399(0x294)])[_0x31a399(0x35a)])==null?void 0x0:_0x4777c7[_0x31a399(0x238)](_0x2ff059,_0x269f08);}[_0xc26848(0x364)](_0x38b456){const _0x5f2dea=_0xc26848;var _0x47cd1b,_0x2ea1e1;return(_0x2ea1e1=(_0x47cd1b=this['_handler'])['onTransformState'])==null?void 0x0:_0x2ea1e1[_0x5f2dea(0x238)](_0x47cd1b,_0x38b456);}['_transformRemoteChangesetByIMECache'](_0x47c410){const _0x261bf5=_0xc26848;var _0x33dee8,_0x333d12,_0x3bda98;return(_0x3bda98=(_0x333d12=(_0x33dee8=this[_0x261bf5(0x294)])[_0x261bf5(0x27a)])==null?void 0x0:_0x333d12[_0x261bf5(0x238)](_0x33dee8,_0x47c410))!=null?_0x3bda98:_0x47c410;}['_transformRemoteChangesetByStateCache'](_0x19a464){const _0x37db54=_0xc26848;var _0x4d05d9,_0x30f742,_0x524d18;return(_0x524d18=(_0x30f742=(_0x4d05d9=this[_0x37db54(0x294)])['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0x30f742['call'](_0x4d05d9,_0x19a464))!=null?_0x524d18:_0x19a464;}[_0xc26848(0x347)](_0x564dbb){const _0x29a6cd=_0xc26848;var _0xc5267c,_0x446c69;if(this['type']===_0x44d2bd[_0x29a6cd(0x1c1)]){const {unitID:_0x2c5cfd,mutations:_0x5f16bd,memberID:_0x1fc791}=_0x564dbb,_0x590a42=_0x5f16bd[0x0]['params'][_0x29a6cd(0x2b0)];Array['isArray'](_0x590a42)&&_0x590a42[_0x29a6cd(0x2b7)]>0x0&&((_0x446c69=(_0xc5267c=this[_0x29a6cd(0x294)])[_0x29a6cd(0x334)])==null||_0x446c69[_0x29a6cd(0x238)](_0xc5267c,{'unitID':_0x2c5cfd,'memberID':_0x1fc791,'textRanges':_0x590a42}));}}[_0xc26848(0x1b7)](){const _0x5e9663=_0xc26848;var _0x4f1957;(_0x4f1957=this[_0x5e9663(0x2b8)])==null||_0x4f1957['updateOfflineData'](this[_0x5e9663(0x263)],this['type'],this[_0x5e9663(0x287)],this['_pendingMutations']);}[_0xc26848(0x2cc)](){const _0x8afcd6=_0xc26848;return this[_0x8afcd6(0x2ba)][_0x8afcd6(0x1cf)](this[_0x8afcd6(0x263)]);}[_0xc26848(0x20f)](){const _0x22206d=_0xc26848;this[_0x22206d(0x2ba)][_0x22206d(0x29f)](this[_0x22206d(0x263)]);}[_0xc26848(0x2f9)](_0x42bb92){const _0x4535f2=_0xc26848;var _0x1fd23c;let _0x39c144=this[_0x4535f2(0x388)](_0x42bb92);_0x39c144=this[_0x4535f2(0x293)](_0x39c144);const _0x43ef73=_0x5146d3[_0x4535f2(0x243)](_0x39c144[_0x4535f2(0x285)],this[_0x4535f2(0x304)],{'fromCollab':!0x0});if(!_0x43ef73[_0x4535f2(0x363)])throw _0x43ef73[_0x4535f2(0x18c)]instanceof Error?_0x43ef73['error']:new Error((_0x1fd23c=_0x43ef73[_0x4535f2(0x18c)])!=null?_0x1fd23c:'[CollaborationState]:\x20apply\x20error!');this[_0x4535f2(0x1a6)](_0x39c144),this[_0x4535f2(0x364)](_0x39c144),this['_transformUndoredo'](_0x42bb92),this[_0x4535f2(0x2bf)](_0x39c144),this['_syncEditingCollabCursor'](_0x39c144),this['_incrementRevisionNumber']();}}let _0x26c4f3=class extends _0x3ac2b9{constructor(_0x1f7fd1,_0xd79904,_0x3045e6,_0x4a55bc,_0x330461,_0xc77723,_0x816e7b,_0x5d35a8,_0x334103,_0x1b69f9){const _0x11ef87=_0xc26848;super(_0x1f7fd1,_0xd79904,null,[],_0x3045e6,_0x816e7b,_0xc77723,_0x4a55bc,_0x1b69f9),_0x5e36fb(this,'status',_0x11ef87(0x36e)),(this['_injector']=_0x330461,this[_0x11ef87(0x33e)]=_0x5d35a8,this[_0x11ef87(0x1e2)]=_0x334103,this[_0x11ef87(0x1c6)]=_0x1b69f9);}['appendMutation'](_0x5d4537){const _0x21f200=_0xc26848,_0x49ab22=this[_0x21f200(0x18a)][_0x21f200(0x32e)](_0x1ae349,this[_0x21f200(0x263)],this[_0x21f200(0x346)],[_0x5d4537],this[_0x21f200(0x294)]);return _0x49ab22[_0x21f200(0x205)](),_0x49ab22['_updateLocalCache'](),_0x49ab22;}['onRemoteChangeset'](_0x91a3f5){const _0x48ff3a=_0xc26848;if(this[_0x48ff3a(0x1df)](_0x91a3f5))return this[_0x48ff3a(0x18a)][_0x48ff3a(0x32e)](_0x4c4f80,this[_0x48ff3a(0x263)],this[_0x48ff3a(0x346)],null,[],null,[_0x91a3f5],this[_0x48ff3a(0x294)]);try{const _0x2123d1=this['_transformService']['transformMutationsWithChangeset'](_0x91a3f5,[_0x48e591]);if(_0x25e52f['isTransformMutationsWithChangesetSuccess'](_0x2123d1)){const {c1Prime:_0x5e8f1e}=_0x2123d1;return this[_0x48ff3a(0x2f9)](_0x5e8f1e),this;}throw _0x2123d1[_0x48ff3a(0x18c)];}catch(_0x4bcdca){return this[_0x48ff3a(0x33e)][_0x48ff3a(0x18c)](_0x4bcdca),this[_0x48ff3a(0x1f9)](!0x1);}}['_onConflict'](_0x45d432){const _0x2cf08b=_0xc26848;return this[_0x2cf08b(0x18a)][_0x2cf08b(0x32e)](_0x1079b9,this[_0x2cf08b(0x263)],this['type'],null,[],this[_0x2cf08b(0x294)],_0x45d432);}[_0xc26848(0x2d7)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0xc26848(0x2ed)](){const _0x50ae04=_0xc26848;throw new Error(_0x50ae04(0x329));}['onRemoteRetry'](){return this;}['toggleOffline'](){const _0x1ea2f6=_0xc26848;return this[_0x1ea2f6(0x18a)][_0x1ea2f6(0x32e)](_0x2278d0,this[_0x1ea2f6(0x263)],this['type'],null,[],this['_handler']);}[_0xc26848(0x2ce)](){return this;}[_0xc26848(0x2f6)](){throw new Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0xc26848(0x1a3)](){const _0x1bc78c=_0xc26848,_0x4b7781=this[_0x1bc78c(0x2ba)]['getCurrentRevOfUnit'](this['unitID']);return this['_handler'][_0x1bc78c(0x279)]({'from':_0x4b7781,'to':0x0}),this[_0x1bc78c(0x18a)][_0x1bc78c(0x32e)](_0x4c4f80,this['unitID'],this[_0x1bc78c(0x346)],null,[],null,[],this['_handler']);}};_0x26c4f3=_0x2d9796([_0x15e3fb(0x3,_0x5146d3[_0xc26848(0x271)](_0x25e52f[_0xc26848(0x19c)])),_0x15e3fb(0x4,_0x5146d3[_0xc26848(0x271)](_0x5146d3[_0xc26848(0x2a0)])),_0x15e3fb(0x5,_0x5146d3['IUndoRedoService']),_0x15e3fb(0x6,_0x5146d3['ICommandService']),_0x15e3fb(0x7,_0x5146d3[_0xc26848(0x2a1)]),_0x15e3fb(0x8,_0x25e52f['ITransformService']),_0x15e3fb(0x9,_0x5146d3[_0xc26848(0x2f0)](_0x121a33))],_0x26c4f3);let _0x1ae349=class extends _0x3ac2b9{constructor(_0x460139,_0x5d5874,_0x3c9b42,_0x2c029a,_0x244a46,_0x510a1a,_0x3e28e5,_0xa380d2,_0x16328d,_0x45fc1b,_0xfc168f,_0x465991,_0x310a22,_0x38cbc4){const _0x341fd6=_0xc26848;super(_0x460139,_0x5d5874,null,_0x3c9b42,_0x2c029a,_0x16328d,_0x310a22,_0x510a1a,_0x38cbc4),_0x5e36fb(this,_0x341fd6(0x1b3),_0x341fd6(0x275)),_0x5e36fb(this,'_scheduleTimestamp',null),_0x5e36fb(this,'_sendingTimer',null),(this['_injector']=_0x244a46,this[_0x341fd6(0x2c5)]=_0x3e28e5,this['_logService']=_0xa380d2,this['_configService']=_0x45fc1b,this[_0x341fd6(0x1e2)]=_0xfc168f,this['_univerInstanceService']=_0x465991);}['appendMutation'](_0x3ae45a){const _0x2b9dfa=_0xc26848;return this[_0x2b9dfa(0x37a)][_0x2b9dfa(0x236)](_0x3ae45a),this[_0x2b9dfa(0x1b7)](),this;}[_0xc26848(0x203)](_0x58b082){const _0x4ef577=_0xc26848;if(this[_0x4ef577(0x1df)](_0x58b082))return this[_0x4ef577(0x322)](),this[_0x4ef577(0x18a)][_0x4ef577(0x32e)](_0x4c4f80,this[_0x4ef577(0x263)],this[_0x4ef577(0x346)],null,this[_0x4ef577(0x37a)],null,[_0x58b082],this[_0x4ef577(0x294)]);try{const _0x101a15=this[_0x4ef577(0x1e2)][_0x4ef577(0x217)](_0x58b082,this[_0x4ef577(0x37a)]);if(_0x25e52f[_0x4ef577(0x23e)](_0x101a15)){const {c1Prime:_0x4e062c,m2Prime:_0x457286}=_0x101a15;this[_0x4ef577(0x2f9)](_0x4e062c);const _0x53ec3f=this['_injector'][_0x4ef577(0x32e)](_0x1ae349,this[_0x4ef577(0x263)],this[_0x4ef577(0x346)],_0x457286,this[_0x4ef577(0x294)]);return this[_0x4ef577(0x322)](),_0x53ec3f[_0x4ef577(0x205)](this[_0x4ef577(0x24e)]?Math['max'](0x0,new Date()[_0x4ef577(0x338)]()-this[_0x4ef577(0x24e)]):this[_0x4ef577(0x29b)]()),_0x53ec3f;}throw _0x101a15[_0x4ef577(0x18c)];}catch(_0x28396c){return this['_logService'][_0x4ef577(0x18c)](_0x28396c),this[_0x4ef577(0x1f9)](!0x1);}}['onRemoteAck'](){const _0x42e844=_0xc26848;throw new Error(_0x42e844(0x376));}[_0xc26848(0x2ed)](){throw new Error('[PendingState]:\x20received\x20rejection.');}[_0xc26848(0x37d)](){return this;}[_0xc26848(0x1a5)](){const _0x44d372=_0xc26848;return this[_0x44d372(0x322)](),this[_0x44d372(0x18a)][_0x44d372(0x32e)](_0x2278d0,this['unitID'],this[_0x44d372(0x346)],null,this['_pendingMutations'],this[_0x44d372(0x294)]);}[_0xc26848(0x2ce)](){return this;}[_0xc26848(0x205)](_0x12e168){const _0x9d9f96=_0xc26848,_0x1a3c80=_0x12e168!=null?_0x12e168:this['_getSendChangesetTimeout']();this[_0x9d9f96(0x24e)]=new Date()[_0x9d9f96(0x338)](),this[_0x9d9f96(0x386)]=setTimeout(()=>{const _0xda2682=_0x9d9f96;this[_0xda2682(0x322)]();let _0x86e8ed=null;switch(this[_0xda2682(0x346)]){case _0x44d2bd[_0xda2682(0x213)]:{_0x86e8ed=_0x32fcba(this[_0xda2682(0x37a)],this[_0xda2682(0x263)],this[_0xda2682(0x1fd)],this['_revisionService'],this['_memberService']);break;}case _0x44d2bd[_0xda2682(0x1c1)]:{this[_0xda2682(0x37a)]['every'](_0x238779=>_0x238779['id']===_0xb7ecf9[_0xda2682(0x1f2)]['id'])?_0x86e8ed=_0x557789(this[_0xda2682(0x37a)],this[_0xda2682(0x263)],this[_0xda2682(0x1fd)],this[_0xda2682(0x2ba)],this[_0xda2682(0x2c5)]):_0x86e8ed=_0x32fcba(this[_0xda2682(0x37a)],this['unitID'],this[_0xda2682(0x1fd)],this['_revisionService'],this[_0xda2682(0x2c5)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this['type']+_0xda2682(0x268));}const {changeset:_0x3191ab,pendingMutations:_0x1b482f}=_0x86e8ed;this[_0xda2682(0x294)][_0xda2682(0x25b)](_0x3191ab);const _0x58e7f2=_0x1b482f[_0xda2682(0x2b7)]?this[_0xda2682(0x18a)][_0xda2682(0x32e)](_0xf0d962,this[_0xda2682(0x263)],this[_0xda2682(0x346)],_0x3191ab,_0x1b482f,this[_0xda2682(0x294)],void 0x0):this[_0xda2682(0x18a)][_0xda2682(0x32e)](_0x2dd438,this[_0xda2682(0x263)],this[_0xda2682(0x346)],_0x3191ab,this[_0xda2682(0x294)]);_0x58e7f2[_0xda2682(0x1b7)](),this[_0xda2682(0x294)]['onStateChange'](this,_0x58e7f2);},_0x1a3c80);}[_0xc26848(0x29b)](){const _0x53bf88=_0xc26848;var _0x2bed52;const _0x2b4f47=this[_0x53bf88(0x2cb)]['getConfig'](_0x54b2ba);return(_0x2bed52=_0x2b4f47==null?void 0x0:_0x2b4f47['sendChangesetTimeout'])!=null?_0x2bed52:_0x12885b;}[_0xc26848(0x2f6)](){const _0x302d11=_0xc26848;throw new Error(_0x302d11(0x23b));}[_0xc26848(0x322)](){const _0x4067e8=_0xc26848;this[_0x4067e8(0x386)]!=null&&(clearTimeout(this[_0x4067e8(0x386)]),this[_0x4067e8(0x386)]=null);}[_0xc26848(0x1f9)](_0xbf4ed){const _0x11786d=_0xc26848;return this['_clearScheduledTask'](),this[_0x11786d(0x18a)]['createInstance'](_0x1079b9,this[_0x11786d(0x263)],this[_0x11786d(0x346)],null,this['_pendingMutations'],this[_0x11786d(0x294)],_0xbf4ed);}};_0x1ae349=_0x2d9796([_0x15e3fb(0x4,_0x5146d3[_0xc26848(0x271)](_0x5146d3[_0xc26848(0x2a0)])),_0x15e3fb(0x5,_0x5146d3['Inject'](_0x25e52f[_0xc26848(0x19c)])),_0x15e3fb(0x6,_0x5146d3['Inject'](_0x58b080)),_0x15e3fb(0x7,_0x5146d3[_0xc26848(0x2a1)]),_0x15e3fb(0x8,_0x5146d3[_0xc26848(0x383)]),_0x15e3fb(0x9,_0x5146d3['IConfigService']),_0x15e3fb(0xa,_0x25e52f[_0xc26848(0x2c0)]),_0x15e3fb(0xb,_0x5146d3[_0xc26848(0x2e1)]),_0x15e3fb(0xc,_0x5146d3[_0xc26848(0x35f)]),_0x15e3fb(0xd,_0x5146d3[_0xc26848(0x2f0)](_0x121a33))],_0x1ae349);let _0x2dd438=class extends _0x3ac2b9{constructor(_0xcd1c38,_0x1a592d,_0x30ea3d,_0xf09e53,_0x158d3f,_0x271f94,_0x560ea0,_0x51056f,_0x4fde2f,_0x4daed4,_0x578872){const _0x33c186=_0xc26848;super(_0xcd1c38,_0x1a592d,_0x30ea3d,[],_0xf09e53,_0x560ea0,_0x4daed4,_0x271f94,_0x578872),_0x5e36fb(this,_0x33c186(0x1b3),_0x33c186(0x1d4)),_0x5e36fb(this,'_resendTimeout',0x0),_0x5e36fb(this,'_resendTimer'),_0x5e36fb(this,'_sender'),(this[_0x33c186(0x18a)]=_0x158d3f,this['_logService']=_0x51056f,this[_0x33c186(0x1e2)]=_0x4fde2f);}[_0xc26848(0x306)](_0x1f3703){const _0xe7a9a3=_0xc26848;this[_0xe7a9a3(0x322)]();const _0x17c223=this['_injector'][_0xe7a9a3(0x32e)](_0xf0d962,this[_0xe7a9a3(0x263)],this[_0xe7a9a3(0x346)],this[_0xe7a9a3(0x287)],[_0x1f3703],this['_handler'],this[_0xe7a9a3(0x2dc)]);return _0x17c223['_updateLocalCache'](),_0x17c223;}['onRemoteChangeset'](_0x5b7e84){const _0x21c7f6=_0xc26848;if(this[_0x21c7f6(0x1df)](_0x5b7e84))return this[_0x21c7f6(0x322)](),this['_injector']['createInstance'](_0x4c4f80,this[_0x21c7f6(0x263)],this[_0x21c7f6(0x346)],this['_awaitingChangeset'],[],null,[_0x5b7e84],this[_0x21c7f6(0x294)]);try{const _0x5a9da5=this[_0x21c7f6(0x1e2)][_0x21c7f6(0x320)]([_0x5b7e84],[this[_0x21c7f6(0x287)]],!0x1);if(_0x25e52f[_0x21c7f6(0x357)](_0x5a9da5)){const {c1Prime:_0x1fa3ae,c2Prime:_0x502a25}=_0x5a9da5;this['_executeRemoteChangeset'](_0x1fa3ae[0x0]),_0x502a25[0x0][_0x21c7f6(0x30e)]=this['_getCurrentRevision'](),this['_clearScheduledTask']();const _0x433cc7=this['_injector'][_0x21c7f6(0x32e)](_0x2dd438,this[_0x21c7f6(0x263)],this[_0x21c7f6(0x346)],_0x502a25[0x0],this[_0x21c7f6(0x294)]);return _0x433cc7['_updateLocalCache'](),_0x433cc7;}return this[_0x21c7f6(0x1f9)](!0x1);}catch(_0xe0a38f){return this[_0x21c7f6(0x33e)]['error'](_0xe0a38f),this['_onConflict'](!0x1);}}[_0xc26848(0x2d7)](_0x48e1a4){const _0x444146=_0xc26848;this[_0x444146(0x322)]();const _0x180d6b=this[_0x444146(0x2ba)][_0x444146(0x1cf)](this['unitID']);if(_0x48e1a4[_0x444146(0x1a8)]<_0x180d6b-0x1)return this;if(this[_0x444146(0x1df)](_0x48e1a4))return this[_0x444146(0x18a)]['createInstance'](_0x4c4f80,this['unitID'],this[_0x444146(0x346)],null,[],this['_awaitingChangeset'],[],this[_0x444146(0x294)]);this['_incrementRevisionNumber']();const _0x117c70=this[_0x444146(0x18a)][_0x444146(0x32e)](_0x26c4f3,this['unitID'],this['type'],this[_0x444146(0x294)]);return _0x117c70[_0x444146(0x1b7)](),_0x117c70;}['onRemoteRej'](_0x7c723c){const _0x460c88=_0xc26848;return this[_0x460c88(0x1f9)](!!(_0x7c723c!=null&&_0x7c723c[_0x460c88(0x22f)]));}[_0xc26848(0x37d)](_0x5bbe8d){const _0x5450e7=_0xc26848;return this[_0x5450e7(0x1a2)]>_0xd4feb3?this['toggleOffline']():(this[_0x5450e7(0x2dc)]=_0x48e3ab(this['_resendTimeout'],{'timeout':this[_0x5450e7(0x1a2)],'reqId':_0x5bbe8d[_0x5450e7(0x2af)]}),this[_0x5450e7(0x21c)]=this[_0x5450e7(0x2dc)][_0x5450e7(0x1fa)](({reqId:_0xa54c7,timeout:_0x5c9d01})=>{const _0x1aa676=_0x5450e7;this[_0x1aa676(0x189)](_0xa54c7,_0x5c9d01);}),this);}[_0xc26848(0x1a5)](){const _0x43c5ab=_0xc26848;return this[_0x43c5ab(0x322)](),this[_0x43c5ab(0x18a)][_0x43c5ab(0x32e)](_0x2278d0,this[_0x43c5ab(0x263)],this['type'],this[_0x43c5ab(0x287)],[],this['_handler']);}[_0xc26848(0x2ce)](){return this;}[_0xc26848(0x2f6)](){const _0x3d494d=_0xc26848;this['_handler']['onSendChangeset'](this[_0x3d494d(0x287)]);}[_0xc26848(0x1f9)](_0x520426){const _0x406661=_0xc26848;return this[_0x406661(0x322)](),this['_injector']['createInstance'](_0x1079b9,this['unitID'],this[_0x406661(0x346)],this['_awaitingChangeset'],[],this[_0x406661(0x294)],_0x520426);}['_resendWithTimeout'](_0x2e6a08,_0x47f003){const _0x53659f=_0xc26848;var _0x2321ef;_0x2e6a08===((_0x2321ef=this[_0x53659f(0x287)])==null?void 0x0:_0x2321ef[_0x53659f(0x2af)])&&(this[_0x53659f(0x2f6)](),this['_resendTimeout']=_0x47f003===0x0?0x3e8:_0x47f003*0x2);}['_clearScheduledTask'](){const _0x40a7f4=_0xc26848;var _0x972d90;(_0x972d90=this[_0x40a7f4(0x21c)])==null||_0x972d90[_0x40a7f4(0x291)](),this[_0x40a7f4(0x1a2)]=0x0;}};_0x2dd438=_0x2d9796([_0x15e3fb(0x4,_0x5146d3[_0xc26848(0x271)](_0x5146d3['Injector'])),_0x15e3fb(0x5,_0x5146d3[_0xc26848(0x271)](_0x25e52f[_0xc26848(0x19c)])),_0x15e3fb(0x6,_0x5146d3[_0xc26848(0x383)]),_0x15e3fb(0x7,_0x5146d3['ILogService']),_0x15e3fb(0x8,_0x25e52f[_0xc26848(0x2c0)]),_0x15e3fb(0x9,_0x5146d3['IUndoRedoService']),_0x15e3fb(0xa,_0x5146d3['Optional'](_0x121a33))],_0x2dd438);let _0xf0d962=class extends _0x3ac2b9{constructor(_0x40a9db,_0x1b9201,_0x3970a7,_0x278b34,_0x2cda47,_0x612df9,_0x28150a,_0x5dc61e,_0x5b11e7,_0x1c172a,_0x41df72,_0x926763,_0x19c903){const _0x17b216=_0xc26848;super(_0x40a9db,_0x1b9201,_0x3970a7,_0x278b34,_0x2cda47,_0x5b11e7,_0x926763,_0x5dc61e,_0x19c903),_0x5e36fb(this,'status',_0x17b216(0x360)),_0x5e36fb(this,_0x17b216(0x1a2),0x0),_0x5e36fb(this,_0x17b216(0x2dc)),_0x5e36fb(this,_0x17b216(0x21c)),(this[_0x17b216(0x18a)]=_0x28150a,this[_0x17b216(0x33e)]=_0x1c172a,this[_0x17b216(0x1e2)]=_0x41df72,this[_0x17b216(0x1c6)]=_0x19c903,_0x612df9&&(this[_0x17b216(0x2dc)]=_0x612df9,this[_0x17b216(0x21c)]=this[_0x17b216(0x2dc)][_0x17b216(0x1fa)](({reqId:_0x310251,timeout:_0x2dc0ea})=>{const _0x14cdf4=_0x17b216;this[_0x14cdf4(0x189)](_0x310251,_0x2dc0ea);})));}[_0xc26848(0x306)](_0x218f29){const _0x1ea838=_0xc26848;return this[_0x1ea838(0x37a)]['push'](_0x218f29),this;}[_0xc26848(0x203)](_0xb88aaf){const _0x5dc178=_0xc26848;if(this[_0x5dc178(0x1df)](_0xb88aaf))return this[_0x5dc178(0x322)](),this[_0x5dc178(0x18a)]['createInstance'](_0x4c4f80,this[_0x5dc178(0x263)],this[_0x5dc178(0x346)],this[_0x5dc178(0x287)],this[_0x5dc178(0x37a)],null,[_0xb88aaf],this[_0x5dc178(0x294)]);try{const _0x40c72e=this[_0x5dc178(0x1e2)]['transformChangesets']([_0xb88aaf],[this['_awaitingChangeset']],!0x1);if(_0x25e52f[_0x5dc178(0x357)](_0x40c72e)){const {c1Prime:_0x298953,c2Prime:_0x548582}=_0x40c72e,_0x4a7048=this[_0x5dc178(0x1e2)][_0x5dc178(0x217)](_0x298953[0x0],this[_0x5dc178(0x37a)]);if(_0x25e52f[_0x5dc178(0x23e)](_0x4a7048)){const {c1Prime:_0x32e145,m2Prime:_0x46bd34}=_0x4a7048;return this[_0x5dc178(0x2f9)](_0x32e145),_0x548582[0x0]['baseRev']=this['_getCurrentRevision'](),this[_0x5dc178(0x322)](),this[_0x5dc178(0x18a)]['createInstance'](_0xf0d962,this['unitID'],this[_0x5dc178(0x346)],_0x548582[0x0],_0x46bd34,this[_0x5dc178(0x294)],void 0x0);}throw _0x4a7048['error'];}throw _0x40c72e[_0x5dc178(0x18c)];}catch(_0x14bdf3){return this[_0x5dc178(0x33e)][_0x5dc178(0x18c)](_0x14bdf3),this[_0x5dc178(0x1f9)](!0x1);}}[_0xc26848(0x2d7)](_0x4c0e75){const _0x3bff8d=_0xc26848;if(this[_0x3bff8d(0x322)](),this[_0x3bff8d(0x1df)](_0x4c0e75))return this[_0x3bff8d(0x18a)]['createInstance'](_0x4c4f80,this[_0x3bff8d(0x263)],this['type'],null,this[_0x3bff8d(0x37a)],this['_awaitingChangeset'],[],this[_0x3bff8d(0x294)]);this[_0x3bff8d(0x20f)]();const _0x2190e6=this[_0x3bff8d(0x18a)][_0x3bff8d(0x32e)](_0x1ae349,this[_0x3bff8d(0x263)],this[_0x3bff8d(0x346)],this[_0x3bff8d(0x37a)],this[_0x3bff8d(0x294)]);return _0x2190e6[_0x3bff8d(0x205)](),_0x2190e6['_updateLocalCache'](),_0x2190e6;}[_0xc26848(0x2ed)](_0x365cf5){const _0x39e72f=_0xc26848;return this[_0x39e72f(0x1f9)](!!(_0x365cf5!=null&&_0x365cf5[_0x39e72f(0x22f)]));}[_0xc26848(0x37d)](_0x18857e){const _0x297048=_0xc26848;return this[_0x297048(0x1a2)]>_0xd4feb3?this[_0x297048(0x1a5)]():(this['_resendTimer']=_0x48e3ab(this['_resendTimeout'],{'timeout':this[_0x297048(0x1a2)],'reqId':_0x18857e['reqId']}),this[_0x297048(0x21c)]=this[_0x297048(0x2dc)]['subscribe'](({reqId:_0x2ecb46,timeout:_0x36f021})=>{const _0x572e96=_0x297048;this[_0x572e96(0x189)](_0x2ecb46,_0x36f021);}),this);}[_0xc26848(0x1a5)](){const _0x3791e9=_0xc26848;return this['_clearScheduledTask'](),this['_injector']['createInstance'](_0x2278d0,this[_0x3791e9(0x263)],this['type'],this[_0x3791e9(0x287)],this[_0x3791e9(0x37a)],this[_0x3791e9(0x294)]);}['toggleOnline'](){return this;}[_0xc26848(0x2f6)](){const _0x2f0d5f=_0xc26848;this[_0x2f0d5f(0x294)][_0x2f0d5f(0x25b)](this[_0x2f0d5f(0x287)]);}[_0xc26848(0x1f9)](_0x383f04){const _0x51f69c=_0xc26848;return this['_clearScheduledTask'](),this[_0x51f69c(0x18a)][_0x51f69c(0x32e)](_0x1079b9,this[_0x51f69c(0x263)],this[_0x51f69c(0x346)],null,this[_0x51f69c(0x37a)],this[_0x51f69c(0x294)],_0x383f04);}[_0xc26848(0x189)](_0x5d1dd0,_0x51deaa){const _0x51f179=_0xc26848;var _0x2d338b;_0x5d1dd0===((_0x2d338b=this[_0x51f179(0x287)])==null?void 0x0:_0x2d338b['reqId'])&&(this[_0x51f179(0x2f6)](),this[_0x51f179(0x1a2)]=_0x51deaa===0x0?0x3e8:_0x51deaa*0x2);}['_clearScheduledTask'](){const _0x11c7bf=_0xc26848;var _0x12e0bb;(_0x12e0bb=this['_sender'])==null||_0x12e0bb[_0x11c7bf(0x291)](),this['_resendTimeout']=0x0;}};_0xf0d962=_0x2d9796([_0x15e3fb(0x6,_0x5146d3[_0xc26848(0x271)](_0x5146d3[_0xc26848(0x2a0)])),_0x15e3fb(0x7,_0x5146d3[_0xc26848(0x271)](_0x25e52f[_0xc26848(0x19c)])),_0x15e3fb(0x8,_0x5146d3[_0xc26848(0x383)]),_0x15e3fb(0x9,_0x5146d3[_0xc26848(0x2a1)]),_0x15e3fb(0xa,_0x25e52f[_0xc26848(0x2c0)]),_0x15e3fb(0xb,_0x5146d3[_0xc26848(0x35f)]),_0x15e3fb(0xc,_0x5146d3[_0xc26848(0x2f0)](_0x121a33))],_0xf0d962);let _0x1079b9=class extends _0x3ac2b9{constructor(_0x46eccb,_0x29fb97,_0x4da2ca,_0x1bff31,_0x181866,_0x1d9550=!0x1,_0x295316,_0xc0faad,_0x361393,_0x14b1d9,_0x34981b,_0x24d87b,_0x4e7a9a){const _0x54db64=_0xc26848;super(_0x46eccb,_0x29fb97,_0x4da2ca,_0x1bff31,_0x181866,_0xc0faad,_0x361393,_0x14b1d9,_0x4e7a9a),_0x5e36fb(this,_0x54db64(0x1b3),_0x54db64(0x2a5)),(this[_0x54db64(0x1f5)]=_0x1d9550,this[_0x54db64(0x317)]=_0x295316,this[_0x54db64(0x2ad)]=_0x34981b,this['_collaborationUIEventService']=_0x24d87b,this[_0x54db64(0x1c6)]=_0x4e7a9a,this[_0x54db64(0x1a9)](),this['_clearLocalCache'](),this['_disableEditing']());}[_0xc26848(0x306)](){return this;}[_0xc26848(0x203)](){return this;}['onRemoteAck'](){return this;}[_0xc26848(0x2ed)](){return this;}[_0xc26848(0x37d)](){return this;}['toggleOffline'](){return this;}[_0xc26848(0x2ce)](){return this;}[_0xc26848(0x2f6)](){const _0x1b8b12=_0xc26848;throw new Error(_0x1b8b12(0x259));}[_0xc26848(0x1f4)](){const _0x44cae8=_0xc26848;var _0xa0efea;(_0xa0efea=this[_0x44cae8(0x2b8)])==null||_0xa0efea[_0x44cae8(0x24f)](this[_0x44cae8(0x263)],this[_0x44cae8(0x346)],null,[]);}[_0xc26848(0x1a9)](){const _0xccfa2=_0xc26848;this[_0xccfa2(0x1f5)]?this['_collaborationUIEventService'][_0xccfa2(0x2cd)]({'id':_0x5382ef[_0xccfa2(0x1c8)]}):this[_0xccfa2(0x1d0)][_0xccfa2(0x2cd)]({'id':_0x5382ef['CONFLICT']});}[_0xc26848(0x206)](){const _0x39f0e9=_0xc26848;this['_permissionService'][_0x39f0e9(0x318)](new _0x507ff9[(_0x39f0e9(0x27b))](this['unitID'])['id'],!0x1);}};_0x1079b9=_0x2d9796([_0x15e3fb(0x6,_0x5146d3[_0xc26848(0x271)](_0x5146d3[_0xc26848(0x1ea)])),_0x15e3fb(0x7,_0x5146d3['ICommandService']),_0x15e3fb(0x8,_0x5146d3[_0xc26848(0x35f)]),_0x15e3fb(0x9,_0x5146d3[_0xc26848(0x271)](_0x25e52f['RevisionService'])),_0x15e3fb(0xa,_0x5146d3[_0xc26848(0x271)](_0x5146d3[_0xc26848(0x31b)])),_0x15e3fb(0xb,_0x5146d3[_0xc26848(0x271)](_0x4a873a)),_0x15e3fb(0xc,_0x5146d3[_0xc26848(0x2f0)](_0x121a33))],_0x1079b9);let _0x2278d0=class extends _0x3ac2b9{constructor(_0xf975e0,_0x503b91,_0x1734da,_0x2c0307,_0x213094,_0x14caee,_0x468795,_0x266901,_0x1bb6cf,_0x30f0b1){const _0x468dc1=_0xc26848;super(_0xf975e0,_0x503b91,_0x1734da,_0x2c0307,_0x213094,_0x266901,_0x1bb6cf,_0x468795,_0x30f0b1),_0x5e36fb(this,_0x468dc1(0x1b3),_0x468dc1(0x240)),this[_0x468dc1(0x18a)]=_0x14caee;}[_0xc26848(0x306)](_0x1a75b2){const _0xd9fad8=_0xc26848;return this[_0xd9fad8(0x37a)][_0xd9fad8(0x236)](_0x1a75b2),this[_0xd9fad8(0x1b7)](),this;}[_0xc26848(0x203)](_0x1e0286){const _0x167e20=_0xc26848;throw new Error(_0x167e20(0x2bb));}[_0xc26848(0x2d7)](){const _0x13996f=_0xc26848;throw new Error(_0x13996f(0x1ac));}[_0xc26848(0x2ed)](){const _0x2f8679=_0xc26848;throw new Error(_0x2f8679(0x310));}[_0xc26848(0x37d)](){return this;}['toggleOffline'](){return this;}['toggleOnline'](){const _0x345101=_0xc26848,{_injector:_0x21d115,_pendingMutations:_0x1d2477,_awaitingChangeset:_0x4d4741,unitID:_0x37770b,_handler:_0x14e7dd,type:_0x14df9b}=this,_0x5ca4b0=_0x20651d(_0x21d115,_0x37770b,_0x14df9b,_0x4d4741,_0x1d2477,_0x14e7dd);return _0x5ca4b0 instanceof _0x1ae349?_0x5ca4b0[_0x345101(0x205)]():(_0x5ca4b0 instanceof _0xf0d962||_0x5ca4b0 instanceof _0x2dd438)&&_0x5ca4b0[_0x345101(0x2f6)](),_0x5ca4b0;}[_0xc26848(0x2f6)](){const _0x43ab1a=_0xc26848;throw new Error(_0x43ab1a(0x358));}};_0x2278d0=_0x2d9796([_0x15e3fb(0x5,_0x5146d3[_0xc26848(0x271)](_0x5146d3[_0xc26848(0x2a0)])),_0x15e3fb(0x6,_0x5146d3[_0xc26848(0x271)](_0x25e52f[_0xc26848(0x19c)])),_0x15e3fb(0x7,_0x5146d3[_0xc26848(0x383)]),_0x15e3fb(0x8,_0x5146d3[_0xc26848(0x35f)]),_0x15e3fb(0x9,_0x5146d3[_0xc26848(0x2f0)](_0x121a33))],_0x2278d0);let _0x4c4f80=class extends _0x3ac2b9{constructor(_0x28b576,_0x21bfbd,_0x6f6777,_0x4fe516,_0x3cb54d,_0xd18718,_0x57e5aa,_0x585a1c,_0x3927fb,_0x21ccf3,_0x56ed1d,_0x1bcf12,_0x31bf60,_0x109e93){const _0x47bf19=_0xc26848;super(_0x28b576,_0x21bfbd,_0x6f6777,_0x4fe516,_0x57e5aa,_0x56ed1d,_0x1bcf12,_0x3927fb,_0x109e93),_0x5e36fb(this,_0x47bf19(0x1b3),'fetch_missing'),(this[_0x47bf19(0x2a8)]=_0x3cb54d,this[_0x47bf19(0x33d)]=_0xd18718,this[_0x47bf19(0x18a)]=_0x585a1c,this['_logService']=_0x21ccf3,this[_0x47bf19(0x1e2)]=_0x31bf60,this[_0x47bf19(0x1c6)]=_0x109e93);}[_0xc26848(0x25a)](_0xacb6eb){const _0xbbaaa7=_0xc26848;try{const _0x5e1ee7=[..._0xacb6eb,...this[_0xbbaaa7(0x33d)]],_0xa2db74=[this['_awaitingChangeset']||this['_acknowledgedAwaitingChangeset']][_0xbbaaa7(0x21b)](_0x5992b3=>!!_0x5992b3);let _0x49ba1b,_0x4ee750;if(_0xa2db74[_0xbbaaa7(0x2b7)]){const _0x2699e2=this['_transformService'][_0xbbaaa7(0x320)](_0x5e1ee7,_0xa2db74,!0x1);if(!_0x25e52f['isTransformChangesetsSuccess'](_0x2699e2))throw _0x2699e2[_0xbbaaa7(0x18c)];_0x49ba1b=_0x2699e2['c1Prime'],_0x4ee750=_0x2699e2[_0xbbaaa7(0x20a)];}else _0x49ba1b=_0x5e1ee7,_0x4ee750=[];let _0x42080d=this[_0xbbaaa7(0x37a)];_0x49ba1b[_0xbbaaa7(0x28d)](_0x27512e=>{const _0x452756=_0xbbaaa7;let _0x36033c;if(_0x42080d[_0x452756(0x2b7)]){const _0x52e547=this[_0x452756(0x1e2)][_0x452756(0x217)](_0x27512e,_0x42080d);if(!_0x25e52f[_0x452756(0x23e)](_0x52e547))throw _0x52e547[_0x452756(0x18c)];_0x36033c=_0x52e547[_0x452756(0x29a)],_0x42080d=_0x52e547[_0x452756(0x2bd)];}else _0x36033c=_0x27512e;this[_0x452756(0x2f9)](_0x36033c);}),this['_acknowledgedAwaitingChangeset']&&this[_0xbbaaa7(0x20f)](),this[_0xbbaaa7(0x287)]&&_0x4ee750[_0xbbaaa7(0x2b7)]&&(_0x4ee750[0x0][_0xbbaaa7(0x30e)]=this[_0xbbaaa7(0x2cc)]());let _0x18b52f;if(this[_0xbbaaa7(0x287)]&&_0x42080d[_0xbbaaa7(0x2b7)]!==0x0)_0x18b52f=this['_injector'][_0xbbaaa7(0x32e)](_0xf0d962,this[_0xbbaaa7(0x263)],this[_0xbbaaa7(0x346)],_0x4ee750[0x0],_0x42080d,this['_handler'],void 0x0);else{if(this[_0xbbaaa7(0x287)]&&_0x42080d[_0xbbaaa7(0x2b7)]===0x0)_0x4ee750[0x0][_0xbbaaa7(0x30e)]=this[_0xbbaaa7(0x2cc)](),_0x18b52f=this['_injector'][_0xbbaaa7(0x32e)](_0x2dd438,this[_0xbbaaa7(0x263)],this[_0xbbaaa7(0x346)],_0x4ee750[0x0],this[_0xbbaaa7(0x294)]);else{if(_0x42080d[_0xbbaaa7(0x2b7)]!==0x0){const _0x3404c5=this[_0xbbaaa7(0x18a)][_0xbbaaa7(0x32e)](_0x1ae349,this[_0xbbaaa7(0x263)],this[_0xbbaaa7(0x346)],_0x42080d,this['_handler']);_0x3404c5[_0xbbaaa7(0x205)](),_0x18b52f=_0x3404c5;}else _0x18b52f=this[_0xbbaaa7(0x18a)][_0xbbaaa7(0x32e)](_0x26c4f3,this['unitID'],this[_0xbbaaa7(0x346)],this[_0xbbaaa7(0x294)]);}}return _0x18b52f[_0xbbaaa7(0x1b7)](),_0x18b52f;}catch(_0x4d6c45){return this[_0xbbaaa7(0x33e)][_0xbbaaa7(0x18c)](_0xbbaaa7(0x2f5),_0xbbaaa7(0x2c2),_0x4d6c45),this[_0xbbaaa7(0x18a)][_0xbbaaa7(0x32e)](_0x1079b9,this[_0xbbaaa7(0x263)],this['type'],this['_awaitingChangeset'],this[_0xbbaaa7(0x37a)],this[_0xbbaaa7(0x294)],!0x1);}}[_0xc26848(0x2f6)](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0xc26848(0x306)](_0x318e60){const _0x164ec1=_0xc26848;return this['_pendingMutations'][_0x164ec1(0x236)](_0x318e60),this;}[_0xc26848(0x203)](_0x192df6){const _0xb5d353=_0xc26848;return this['_queuedRemoteChangesets'][_0xb5d353(0x236)](_0x192df6),this;}[_0xc26848(0x2d7)](_0xc03bd6){const _0xdd034a=_0xc26848;if(this['_awaitingChangeset'])return this['_acknowledgedAwaitingChangeset']=this['_awaitingChangeset'],this[_0xdd034a(0x287)]=null,this;throw new Error(_0xdd034a(0x1fe));}[_0xc26848(0x2ed)](_0x15dd41){const _0x78151d=_0xc26848;return this[_0x78151d(0x1f9)](!!(_0x15dd41!=null&&_0x15dd41[_0x78151d(0x22f)]));}[_0xc26848(0x37d)](){return this;}[_0xc26848(0x1a5)](){const _0x24d9d1=_0xc26848;return this['_injector'][_0x24d9d1(0x32e)](_0x2278d0,this['unitID'],this[_0x24d9d1(0x346)],this['_awaitingChangeset'],this[_0x24d9d1(0x37a)],this['_handler']);}['toggleOnline'](){return this;}[_0xc26848(0x1f9)](_0x5efcff){const _0x112a7c=_0xc26848;return this[_0x112a7c(0x18a)][_0x112a7c(0x32e)](_0x1079b9,this[_0x112a7c(0x263)],this[_0x112a7c(0x346)],this['_awaitingChangeset'],this[_0x112a7c(0x37a)],this[_0x112a7c(0x294)],_0x5efcff);}};_0x4c4f80=_0x2d9796([_0x15e3fb(0x7,_0x5146d3[_0xc26848(0x271)](_0x5146d3[_0xc26848(0x2a0)])),_0x15e3fb(0x8,_0x5146d3['Inject'](_0x25e52f[_0xc26848(0x19c)])),_0x15e3fb(0x9,_0x5146d3[_0xc26848(0x2a1)]),_0x15e3fb(0xa,_0x5146d3['ICommandService']),_0x15e3fb(0xb,_0x5146d3[_0xc26848(0x35f)]),_0x15e3fb(0xc,_0x25e52f[_0xc26848(0x2c0)]),_0x15e3fb(0xd,_0x5146d3[_0xc26848(0x2f0)](_0x121a33))],_0x4c4f80);function _0x20651d(_0x23626c,_0x3b5806,_0x3e6027,_0xb3afc3,_0x2e6801,_0x3f3445){const _0x43c88b=_0xc26848;return _0xb3afc3&&_0x2e6801[_0x43c88b(0x2b7)]?_0x23626c[_0x43c88b(0x32e)](_0xf0d962,_0x3b5806,_0x3e6027,_0xb3afc3,_0x2e6801,_0x3f3445,void 0x0):_0xb3afc3?_0x23626c[_0x43c88b(0x32e)](_0x2dd438,_0x3b5806,_0x3e6027,_0xb3afc3,_0x3f3445):_0x2e6801[_0x43c88b(0x2b7)]?_0x23626c[_0x43c88b(0x32e)](_0x1ae349,_0x3b5806,_0x3e6027,_0x2e6801,_0x3f3445):_0x23626c[_0x43c88b(0x32e)](_0x26c4f3,_0x3b5806,_0x3e6027,_0x3f3445);}var _0x4c7c0c=Object[_0xc26848(0x309)],_0x317848=Object['getOwnPropertyDescriptor'],_0x22c5c3=(_0x42a9a1,_0x32b050,_0x1c1796,_0x41e7d1)=>{const _0x12734d=_0xc26848;for(var _0x2e54b6=_0x41e7d1>0x1?void 0x0:_0x41e7d1?_0x317848(_0x32b050,_0x1c1796):_0x32b050,_0x4c2086=_0x42a9a1[_0x12734d(0x2b7)]-0x1,_0x358ffb;_0x4c2086>=0x0;_0x4c2086--)(_0x358ffb=_0x42a9a1[_0x4c2086])&&(_0x2e54b6=(_0x41e7d1?_0x358ffb(_0x32b050,_0x1c1796,_0x2e54b6):_0x358ffb(_0x2e54b6))||_0x2e54b6);return _0x41e7d1&&_0x2e54b6&&_0x4c7c0c(_0x32b050,_0x1c1796,_0x2e54b6),_0x2e54b6;},_0x451736=(_0x2c21ca,_0x592c84)=>(_0x5042df,_0x4d9666)=>_0x592c84(_0x5042df,_0x4d9666,_0x2c21ca);let _0x4c694e=class extends _0x5146d3['RxDisposable']{constructor(_0x48e7be,_0x3431fc,_0x143aef,_0x46c2fb,_0x1502cf,_0x107b08,_0x413362,_0x246771,_0x24f550,_0x276787,_0x5843ae,_0x3f27ad,_0x3b6616){const _0x10ed92=_0xc26848;super(),_0x5e36fb(this,_0x10ed92(0x241),new _0x454f45[(_0x10ed92(0x1cd))](null)),_0x5e36fb(this,_0x10ed92(0x1fc),this[_0x10ed92(0x241)][_0x10ed92(0x242)]()),_0x5e36fb(this,'_state'),_0x5e36fb(this,'_collaborationPaused',!0x1),_0x5e36fb(this,'_changesetSessionId',''),_0x5e36fb(this,_0x10ed92(0x2c3),0x0),_0x5e36fb(this,_0x10ed92(0x2fd),this[_0x10ed92(0x1fc)][_0x10ed92(0x381)](_0x454f45[_0x10ed92(0x2d0)](_0x1bf87e=>_0x1bf87e?_0x1bf87e[_0x10ed92(0x1b3)]:_0x64b842['OFFLINE']),_0x454f45[_0x10ed92(0x204)](0x1))),_0x5e36fb(this,'_transitionLocked',!0x1),_0x5e36fb(this,'_remoteChangesetQueue',[]),(this[_0x10ed92(0x263)]=_0x48e7be,this['session']=_0x3431fc,this[_0x10ed92(0x2b4)]=_0x143aef,this['_injector']=_0x46c2fb,this[_0x10ed92(0x312)]=_0x1502cf,this[_0x10ed92(0x2ad)]=_0x107b08,this[_0x10ed92(0x2ba)]=_0x413362,this[_0x10ed92(0x29c)]=_0x246771,this['_logService']=_0x24f550,this['_commandService']=_0x276787,this['_permissionService']=_0x5843ae,this[_0x10ed92(0x387)]=_0x3f27ad,this[_0x10ed92(0x2b8)]=_0x3b6616);}get[_0xc26848(0x1e0)](){const _0xa83f46=_0xc26848;return this[_0xa83f46(0x1e3)];}async[_0xc26848(0x2f8)](){if(this['state'])throw new Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this['_init']();}['pauseCollaboration'](){const _0x510dde=_0xc26848;return this[_0x510dde(0x2bc)]=!0x0,_0x5146d3[_0x510dde(0x34a)](()=>{const _0x4ed182=_0x510dde;this[_0x4ed182(0x2bc)]=!0x1,this[_0x4ed182(0x36a)]();});}[_0xc26848(0x1d9)](_0x329012){const _0x4f8b9c=_0xc26848;this[_0x4f8b9c(0x302)](_0x329012);}[_0xc26848(0x32c)](_0x3a0aa7){const _0x36e4ad=_0xc26848;this[_0x36e4ad(0x1e3)]=_0x3a0aa7,this[_0x36e4ad(0x241)][_0x36e4ad(0x218)](_0x3a0aa7);}async[_0xc26848(0x1cb)](){const _0x2ab144=_0xc26848;var _0x4f0d8f;this['_updateState'](await this[_0x2ab144(0x199)]()),this[_0x2ab144(0x387)]&&((_0x4f0d8f=this[_0x2ab144(0x387)])==null||_0x4f0d8f[_0x2ab144(0x2d8)](this[_0x2ab144(0x263)]),this['disposeWithMe'](this['_singleActiveUnitService'][_0x2ab144(0x19e)](this['unitID'])[_0x2ab144(0x1fa)](_0x249715=>{const _0x350763=_0x2ab144;this['_logService'][_0x350763(0x35e)]('[CollaborationEntity]',_0x350763(0x36c),_0x249715),_0x249715===_0x5e891e[_0x350763(0x372)]?(this[_0x350763(0x29c)][_0x350763(0x2cd)]({'id':_0x5382ef[_0x350763(0x1f8)]}),this[_0x350763(0x317)][_0x350763(0x318)](new _0x507ff9['WorkbookEditablePermission'](this[_0x350763(0x263)])['id'],!0x1),this[_0x350763(0x317)]['setShowComponents'](!0x1)):(this[_0x350763(0x317)][_0x350763(0x318)](new _0x507ff9['WorkbookEditablePermission'](this['unitID'])['id'],!0x0),this['_permissionService'][_0x350763(0x2fe)](!0x0));})));let _0x586688=!0x1;return this['disposeWithMe'](this[_0x2ab144(0x25d)]['sessionStatus$'][_0x2ab144(0x1fa)](_0x80f87f=>{const _0xb2025e=_0x2ab144;_0x80f87f===_0x585855[_0xb2025e(0x28a)]?this['_toggleOnline'](_0x586688):_0x80f87f===_0x585855[_0xb2025e(0x2c7)]&&(_0x586688=!0x0,this[_0xb2025e(0x252)]());})),this[_0x2ab144(0x273)](this[_0x2ab144(0x25d)][_0x2ab144(0x324)]['subscribe'](_0x213e09=>{const _0xda94f9=_0x2ab144;try{switch(_0x213e09[_0xda94f9(0x2fb)]){case _0x25e52f[_0xda94f9(0x235)][_0xda94f9(0x1b0)]:{this[_0xda94f9(0x1dd)](_0x25e52f[_0xda94f9(0x1c2)](_0x213e09[_0xda94f9(0x26a)]));break;}case _0x25e52f[_0xda94f9(0x235)][_0xda94f9(0x2e3)]:{this[_0xda94f9(0x261)](_0x213e09[_0xda94f9(0x26a)]);break;}case _0x25e52f[_0xda94f9(0x235)]['CHANGESET_REJ']:{this[_0xda94f9(0x30c)]();break;}case _0x25e52f[_0xda94f9(0x235)]['CHANGESET_SHOULD_RETRY']:{this[_0xda94f9(0x1bd)](_0x213e09['data']);break;}case _0x25e52f[_0xda94f9(0x235)]['PSEUDO_FETCH_MISSING_RESULT']:{this[_0xda94f9(0x350)](_0x213e09[_0xda94f9(0x26a)][_0xda94f9(0x2e2)][_0xda94f9(0x2d0)](_0x231e56=>_0x25e52f[_0xda94f9(0x1c2)](_0x231e56)));break;}case _0x25e52f[_0xda94f9(0x235)]['PERMISSION_REJ']:this['_onRemoteRejected']({'isPermissionRej':!0x0});}}catch(_0x53193a){throw console[_0xda94f9(0x18c)]('Error\x20on\x20receiving\x20event',_0x53193a),_0x53193a;}})),this[_0x2ab144(0x1e3)];}['_unlockTransition'](){const _0x5a6657=_0xc26848;this[_0x5a6657(0x1d8)]=!0x1;}[_0xc26848(0x2b1)](){const _0x343643=_0xc26848;if(this[_0x343643(0x1d8)])throw new Error(_0x343643(0x21f));this[_0x343643(0x1d8)]=!0x0;}['_onLocalMutation'](_0x2b843a){const _0x3f0605=_0xc26848;this['_lockTransition'](),this['_updateState'](this['_state']['appendMutation'](_0x2b843a)),this[_0x3f0605(0x1ec)]();}[_0xc26848(0x1dd)](_0x5d54ee){const _0x20c193=_0xc26848;if(!(_0x5d54ee[_0x20c193(0x1a8)]<=this[_0x20c193(0x2ba)][_0x20c193(0x1cf)](this[_0x20c193(0x263)]))){if(this[_0x20c193(0x2bc)]){this['_remoteChangesetQueue'][_0x20c193(0x236)](_0x5d54ee);return;}this[_0x20c193(0x345)](_0x5d54ee);}}['_exhaustRemoteChangesetQueue'](){const _0x267ccd=_0xc26848;this['_remoteChangesetQueue'][_0x267ccd(0x28d)](_0x230cc1=>this[_0x267ccd(0x345)](_0x230cc1)),this[_0x267ccd(0x335)]=[];}[_0xc26848(0x345)](_0x31e041){const _0x48923c=_0xc26848,_0x3a6bd7=this[_0x48923c(0x312)]['interceptor']['fetchThroughInterceptors'](this['_compressMutationService'][_0x48923c(0x1e6)]['getInterceptPoints']()[_0x48923c(0x32f)])(_0x31e041[_0x48923c(0x285)],null)||_0x31e041['mutations'],_0x4c03cb={..._0x31e041,'mutations':_0x3a6bd7};this[_0x48923c(0x2b1)](),this[_0x48923c(0x32c)](this['_state'][_0x48923c(0x203)](_0x4c03cb)),this[_0x48923c(0x1ec)]();}[_0xc26848(0x261)](_0x5632a2){const _0x282623=_0xc26848;this[_0x282623(0x2b1)](),this[_0x282623(0x32c)](this['_state'][_0x282623(0x2d7)](_0x5632a2)),this[_0x282623(0x1ec)]();}['_onRemoteRejected'](_0x9054c3){const _0x239eda=_0xc26848;this[_0x239eda(0x2b1)](),this[_0x239eda(0x32c)](this[_0x239eda(0x1e3)]['onRemoteRej'](_0x9054c3)),this[_0x239eda(0x1ec)]();}['_onRemoteRetry'](_0x45768f){const _0x193ecf=_0xc26848;this['_lockTransition'](),this['_updateState'](this[_0x193ecf(0x1e3)][_0x193ecf(0x37d)](_0x45768f)),this[_0x193ecf(0x1ec)]();}['_onFetchMissResult'](_0x3db795){const _0x2f0945=_0xc26848;if(!(this[_0x2f0945(0x1e3)]instanceof _0x4c4f80))throw new TypeError(_0x2f0945(0x343));const _0x28be69=_0x3db795['map'](_0xeaa2cd=>{const _0x486a98=_0x2f0945,_0xd84bb6=this[_0x486a98(0x312)][_0x486a98(0x1e6)][_0x486a98(0x38a)](this[_0x486a98(0x312)][_0x486a98(0x1e6)][_0x486a98(0x2c4)]()[_0x486a98(0x32f)])(_0xeaa2cd[_0x486a98(0x285)],null)||_0xeaa2cd[_0x486a98(0x285)];return{..._0xeaa2cd,'mutations':_0xd84bb6};});this[_0x2f0945(0x2b1)](),this[_0x2f0945(0x32c)](this['_state'][_0x2f0945(0x25a)](_0x28be69)),this[_0x2f0945(0x1ec)]();}['_toggleOffline'](){const _0x488179=_0xc26848;this[_0x488179(0x2b1)](),this[_0x488179(0x32c)](this['_state'][_0x488179(0x1a5)]()),this[_0x488179(0x1ec)]();}[_0xc26848(0x2fc)](_0x12654f=!0x1){const _0x4deef8=_0xc26848;this[_0x4deef8(0x2b1)](),this['_updateState'](this[_0x4deef8(0x1e3)][_0x4deef8(0x2ce)]()),this[_0x4deef8(0x1ec)]();const _0x4f0e03=this[_0x4deef8(0x1e3)];_0x12654f&&_0x4f0e03 instanceof _0x26c4f3&&(this[_0x4deef8(0x2b1)](),this[_0x4deef8(0x32c)](_0x4f0e03[_0x4deef8(0x1a3)]()),this[_0x4deef8(0x1ec)]());}async[_0xc26848(0x199)](){return new Promise(_0x272a4a=>{const _0x531896=_0x2b8f;this[_0x531896(0x25d)][_0x531896(0x34d)][_0x531896(0x381)](_0x454f45[_0x531896(0x290)](0x1))[_0x531896(0x1fa)](async _0x18943a=>{const _0x2798fd=_0x531896;_0x272a4a(await this['_createInitialStateImpl'](_0x18943a===_0x585855[_0x2798fd(0x28a)]));});});}[_0xc26848(0x361)](){const _0x198d32=_0xc26848,_0x9a0817=this[_0x198d32(0x263)];return{'onStateChange':(_0x56d117,_0x504659)=>{const _0x4febf3=_0x198d32;if(_0x56d117!==this['_state'])throw new Error(_0x4febf3(0x377)+_0x56d117[_0x4febf3(0x1b3)]+'\x0aAfter:\x20'+_0x504659['status']+'\x0aCurrent:\x20'+this[_0x4febf3(0x1e3)]['status']);this['_updateState'](_0x504659);},'onSendChangeset':_0x8461bb=>{const _0x59f63d=_0x198d32;_0x8461bb[_0x59f63d(0x1de)]||(_0x8461bb[_0x59f63d(0x1de)]=this[_0x59f63d(0x269)],_0x8461bb[_0x59f63d(0x2af)]=++this[_0x59f63d(0x2c3)]);const _0x476f3e={'eventID':_0x25e52f[_0x59f63d(0x235)]['SUBMIT_CHANGESET'],'data':{'unitID':_0x8461bb[_0x59f63d(0x263)],'unitType':this['_type'],'changeset':_0x8461bb,'memberID':this['session'][_0x59f63d(0x1ce)]()}};this[_0x59f63d(0x25d)]['send'](_0x476f3e,this[_0x59f63d(0x263)]);},'onMissingChangesets':({from:_0x5efa11,to:_0x37dc97})=>{const _0x2568f2=_0x198d32;this[_0x2568f2(0x33e)][_0x2568f2(0x35e)]('[CollaborationEntity]',_0x2568f2(0x26b)+_0x5efa11+_0x2568f2(0x22d)+_0x37dc97);const _0x25dbc6={'eventID':_0x25e52f[_0x2568f2(0x235)][_0x2568f2(0x1db)],'data':{'unitID':_0x9a0817,'unitType':this['_type'],'from':_0x5efa11,'to':_0x37dc97}};this[_0x2568f2(0x25d)][_0x2568f2(0x221)](_0x25dbc6,this['unitID']);}};}async[_0xc26848(0x18b)](_0x10bd33){const _0x122149=_0xc26848;var _0x18acc0,_0x3cef57,_0xa6bc1e;const _0x57f615=await((_0x18acc0=this[_0x122149(0x2b8)])==null?void 0x0:_0x18acc0[_0x122149(0x2eb)](this[_0x122149(0x263)])),_0x5ad18d=(_0x3cef57=_0x57f615==null?void 0x0:_0x57f615[_0x122149(0x285)])!=null?_0x3cef57:[],_0x1314a2=(_0xa6bc1e=_0x57f615==null?void 0x0:_0x57f615[_0x122149(0x1d2)])!=null?_0xa6bc1e:null,_0x55164a=!!(_0x1314a2!=null&&_0x1314a2['sid'])&&!!(_0x1314a2!=null&&_0x1314a2[_0x122149(0x2af)]);this[_0x122149(0x269)]=_0x55164a?_0x1314a2[_0x122149(0x1de)]:_0x2cb5c3(),this[_0x122149(0x2c3)]=_0x55164a?_0x1314a2[_0x122149(0x2af)]:0x0;const _0x10978a=this[_0x122149(0x263)];try{this[_0x122149(0x30a)](_0x1314a2,_0x5ad18d);}catch(_0x4521aa){this[_0x122149(0x33e)][_0x122149(0x18c)](_0x4521aa);}const _0x36c637=this[_0x122149(0x361)]();if(_0x10bd33){const _0xea1727=_0x20651d(this[_0x122149(0x18a)],_0x10978a,this[_0x122149(0x2b4)],_0x1314a2,_0x5ad18d,_0x36c637);return _0xea1727 instanceof _0x1ae349?_0xea1727[_0x122149(0x205)]():(_0xea1727 instanceof _0xf0d962||_0xea1727 instanceof _0x2dd438)&&_0xea1727['resend'](),_0xea1727;}return this[_0x122149(0x18a)]['createInstance'](_0x2278d0,_0x10978a,this[_0x122149(0x2b4)],_0x1314a2,_0x5ad18d,_0x36c637);}[_0xc26848(0x30a)](_0x266652,_0x691281){const _0x1927de=_0xc26848;var _0xd6cfed,_0x292db1;const _0x5f1e18=this[_0x1927de(0x312)][_0x1927de(0x1e6)][_0x1927de(0x38a)](this['_compressMutationService'][_0x1927de(0x1e6)][_0x1927de(0x2c4)]()[_0x1927de(0x32f)]);(_0xd6cfed=_0x5f1e18((_0x266652==null?void 0x0:_0x266652['mutations'])||[],null))==null||_0xd6cfed[_0x1927de(0x28d)](_0x1a60f8=>this['_commandService']['executeCommand'](_0x1a60f8['id'],_0x1a60f8[_0x1927de(0x1e5)])),(_0x292db1=_0x5f1e18(_0x691281||[],null))==null||_0x292db1[_0x1927de(0x28d)](_0x10b16d=>this[_0x1927de(0x304)][_0x1927de(0x2ab)](_0x10b16d['id'],_0x10b16d[_0x1927de(0x1e5)]));}};_0x4c694e=_0x22c5c3([_0x451736(0x3,_0x5146d3[_0xc26848(0x271)](_0x5146d3['Injector'])),_0x451736(0x4,_0x5146d3[_0xc26848(0x271)](_0x25e52f[_0xc26848(0x389)])),_0x451736(0x5,_0x5146d3['Inject'](_0x5146d3[_0xc26848(0x31b)])),_0x451736(0x6,_0x5146d3[_0xc26848(0x271)](_0x25e52f[_0xc26848(0x19c)])),_0x451736(0x7,_0x5146d3[_0xc26848(0x271)](_0x4a873a)),_0x451736(0x8,_0x5146d3[_0xc26848(0x2a1)]),_0x451736(0x9,_0x5146d3[_0xc26848(0x383)]),_0x451736(0xa,_0x5146d3[_0xc26848(0x1ea)]),_0x451736(0xb,_0x5146d3[_0xc26848(0x2f0)](_0x17c4aa)),_0x451736(0xc,_0x5146d3[_0xc26848(0x2f0)](_0x121a33))],_0x4c694e);let _0x55a581=class extends _0x4c694e{constructor(_0x186b50,_0xf16302,_0x2fb433,_0x9d0936,_0x31d2a0,_0x2eb51a,_0x2a157b,_0xbeccfd,_0x50e6a9,_0x5083cb,_0x580e52,_0x459ee6,_0x2e4ac6){const _0x5216b9=_0xc26848;super(_0x186b50,_0x2fb433,_0xf16302,_0x9d0936,_0x31d2a0,_0x2eb51a,_0x2a157b,_0xbeccfd,_0x50e6a9,_0x5083cb,_0x580e52,_0x459ee6,_0x2e4ac6),_0x5e36fb(this,_0x5216b9(0x32d),null),(this[_0x5216b9(0x263)]=_0x186b50,this[_0x5216b9(0x346)]=_0xf16302);}[_0xc26848(0x1d7)](_0x14a620){this['_handlerCallback']=_0x14a620;}['dispose'](){const _0x394126=_0xc26848;this[_0x394126(0x32d)]=null,super[_0x394126(0x371)]();}[_0xc26848(0x361)](){const _0x486ba9=_0xc26848,_0x4b3e0b=super[_0x486ba9(0x361)]();return _0x4b3e0b['onTransformIME']=_0x1f0a5a=>{const _0x6bb69=_0x486ba9;var _0x2bc091,_0x2bf2bc;return(_0x2bf2bc=(_0x2bc091=this[_0x6bb69(0x32d)])==null?void 0x0:_0x2bc091[_0x6bb69(0x35a)])==null?void 0x0:_0x2bf2bc['call'](_0x2bc091,_0x1f0a5a);},_0x4b3e0b[_0x486ba9(0x2e4)]=_0x421246=>{const _0x18ce8d=_0x486ba9;var _0x26f8a7,_0xc11249;return(_0xc11249=(_0x26f8a7=this[_0x18ce8d(0x32d)])==null?void 0x0:_0x26f8a7[_0x18ce8d(0x2e4)])==null?void 0x0:_0xc11249['call'](_0x26f8a7,_0x421246);},_0x4b3e0b[_0x486ba9(0x35c)]=_0x251ba6=>{const _0x56d03b=_0x486ba9;var _0x4b1042,_0x42db7c;return(_0x42db7c=(_0x4b1042=this[_0x56d03b(0x32d)])==null?void 0x0:_0x4b1042[_0x56d03b(0x35c)])==null?void 0x0:_0x42db7c[_0x56d03b(0x238)](_0x4b1042,_0x251ba6);},_0x4b3e0b['onSyncEditingCollabCursor']=_0x43ce06=>{const _0x19e125=_0x486ba9;var _0x3a6d60,_0x273bfc;return(_0x273bfc=(_0x3a6d60=this[_0x19e125(0x32d)])==null?void 0x0:_0x3a6d60[_0x19e125(0x334)])==null?void 0x0:_0x273bfc[_0x19e125(0x238)](_0x3a6d60,_0x43ce06);},_0x4b3e0b['onTransformRemoteChangesetByIMECache']=_0x5cba52=>{const _0x3259ab=_0x486ba9;var _0x136259,_0x1879ca,_0x26841d;if(!((_0x136259=this[_0x3259ab(0x32d)])!=null&&_0x136259[_0x3259ab(0x27a)]))throw new Error('onTransformRemoteChangesetByIMECache\x20callback\x20is\x20not\x20added\x20yet.');return(_0x26841d=(_0x1879ca=this['_handlerCallback'])==null?void 0x0:_0x1879ca[_0x3259ab(0x27a)])==null?void 0x0:_0x26841d[_0x3259ab(0x238)](_0x1879ca,_0x5cba52);},_0x4b3e0b[_0x486ba9(0x19a)]=_0x3d8255=>{const _0x1ed923=_0x486ba9;var _0x4ad024,_0xc18d67,_0x5b306b;if(!((_0x4ad024=this[_0x1ed923(0x32d)])!=null&&_0x4ad024[_0x1ed923(0x19a)]))throw new Error('onTransformRemoteChangesetByStateCache\x20callback\x20is\x20not\x20added\x20yet.');return(_0x5b306b=(_0xc18d67=this['_handlerCallback'])==null?void 0x0:_0xc18d67[_0x1ed923(0x19a)])==null?void 0x0:_0x5b306b[_0x1ed923(0x238)](_0xc18d67,_0x3d8255);},_0x4b3e0b;}async[_0xc26848(0x1cb)](){const _0x4a391b=_0xc26848,_0x2762db=await super[_0x4a391b(0x1cb)]();return this[_0x4a391b(0x273)](this[_0x4a391b(0x304)][_0x4a391b(0x32a)]((_0x4cbf3e,_0x1212b5)=>{const _0x124de3=_0x4a391b;if(_0x4cbf3e[_0x124de3(0x346)]!==_0x5146d3[_0x124de3(0x266)][_0x124de3(0x210)]||_0x1212b5!=null&&_0x1212b5[_0x124de3(0x283)]||_0x1212b5!=null&&_0x1212b5[_0x124de3(0x226)]||_0x4cbf3e['id']===_0xb7ecf9[_0x124de3(0x1f2)]['id'])return;const _0x9fe36c=_0x4cbf3e[_0x124de3(0x1e5)];if((_0x9fe36c==null?void 0x0:_0x9fe36c[_0x124de3(0x2f3)])!==this['unitID'])return;const _0x5295ed=_0x4cbf3e,_0x1fca79=this[_0x124de3(0x312)][_0x124de3(0x1e6)][_0x124de3(0x38a)](this[_0x124de3(0x312)][_0x124de3(0x1e6)][_0x124de3(0x2c4)]()['COMPRESS_MUTATION_SEND'])([_0x5295ed],null)||[_0x5295ed];this[_0x124de3(0x302)](_0x1fca79[0x0]);})),_0x2762db;}};_0x55a581=_0x22c5c3([_0x451736(0x3,_0x5146d3['Inject'](_0x5146d3['Injector'])),_0x451736(0x4,_0x5146d3['Inject'](_0x25e52f[_0xc26848(0x389)])),_0x451736(0x5,_0x5146d3['Inject'](_0x5146d3[_0xc26848(0x31b)])),_0x451736(0x6,_0x5146d3['Inject'](_0x25e52f[_0xc26848(0x19c)])),_0x451736(0x7,_0x5146d3[_0xc26848(0x271)](_0x4a873a)),_0x451736(0x8,_0x5146d3['ILogService']),_0x451736(0x9,_0x5146d3['ICommandService']),_0x451736(0xa,_0x5146d3[_0xc26848(0x1ea)]),_0x451736(0xb,_0x5146d3[_0xc26848(0x2f0)](_0x17c4aa)),_0x451736(0xc,_0x5146d3[_0xc26848(0x2f0)](_0x121a33))],_0x55a581);let _0x54e09f=class extends _0x4c694e{constructor(_0x254d98,_0xfd9b0f,_0x176025,_0xce293b,_0x1c7d58,_0x55f5c7,_0x367bde,_0x1153f5,_0x408854,_0x5e4266,_0x48a04e,_0x5cd4d1,_0x3ef866,_0x42b0c4){const _0x5ceb2a=_0xc26848;super(_0x254d98,_0x176025,_0xfd9b0f,_0xce293b,_0x1c7d58,_0x55f5c7,_0x367bde,_0x408854,_0x5e4266,_0x48a04e,_0x5cd4d1,_0x3ef866,_0x42b0c4),this['unitID']=_0x254d98,this[_0x5ceb2a(0x346)]=_0xfd9b0f,this['_sheetTransformSelectionsService']=_0x1153f5;}['_createHandler'](){const _0x700d40=_0xc26848,_0x6dd18b=super['_createHandler']();return _0x6dd18b['onTransformSelections']=_0x25ddd0=>this['_sheetTransformSelectionsService'][_0x700d40(0x30b)](_0x25ddd0),_0x6dd18b;}async['_init'](){const _0x1b4bb1=_0xc26848,_0x40f9b2=await super[_0x1b4bb1(0x1cb)]();return this['disposeWithMe'](this[_0x1b4bb1(0x304)][_0x1b4bb1(0x32a)]((_0x4ef137,_0x4024fc)=>{const _0x27ac63=_0x1b4bb1;if(_0x4ef137['type']!==_0x5146d3[_0x27ac63(0x266)]['MUTATION']||_0x4024fc!=null&&_0x4024fc[_0x27ac63(0x283)]||_0x4024fc!=null&&_0x4024fc[_0x27ac63(0x226)])return;const _0x2de8a5=_0x4ef137[_0x27ac63(0x1e5)];if((_0x2de8a5==null?void 0x0:_0x2de8a5[_0x27ac63(0x2f3)])!==this[_0x27ac63(0x263)])return;const _0x1cf287=_0x4ef137,_0x1df9ef=this[_0x27ac63(0x312)][_0x27ac63(0x1e6)][_0x27ac63(0x38a)](this[_0x27ac63(0x312)]['interceptor'][_0x27ac63(0x2c4)]()[_0x27ac63(0x26e)])([_0x1cf287],null)||[_0x1cf287];this['_onLocalMutation'](_0x1df9ef[0x0]);})),_0x40f9b2;}};_0x54e09f=_0x22c5c3([_0x451736(0x3,_0x5146d3[_0xc26848(0x271)](_0x5146d3['Injector'])),_0x451736(0x4,_0x5146d3[_0xc26848(0x271)](_0x25e52f[_0xc26848(0x389)])),_0x451736(0x5,_0x5146d3['Inject'](_0x5146d3['LocaleService'])),_0x451736(0x6,_0x5146d3[_0xc26848(0x271)](_0x25e52f[_0xc26848(0x19c)])),_0x451736(0x7,_0x5146d3['Inject'](_0xa76521)),_0x451736(0x8,_0x5146d3['Inject'](_0x4a873a)),_0x451736(0x9,_0x5146d3['ILogService']),_0x451736(0xa,_0x5146d3[_0xc26848(0x383)]),_0x451736(0xb,_0x5146d3[_0xc26848(0x1ea)]),_0x451736(0xc,_0x5146d3['Optional'](_0x17c4aa)),_0x451736(0xd,_0x5146d3['Optional'](_0x121a33))],_0x54e09f);var _0x79d50f=Object[_0xc26848(0x309)],_0x1a7c1f=Object[_0xc26848(0x1b4)],_0x470bdc=(_0x22b284,_0x37f654,_0xa6d0e8,_0x5f4a1d)=>{const _0x3c260e=_0xc26848;for(var _0xa2699b=_0x5f4a1d>0x1?void 0x0:_0x5f4a1d?_0x1a7c1f(_0x37f654,_0xa6d0e8):_0x37f654,_0x519407=_0x22b284[_0x3c260e(0x2b7)]-0x1,_0x5712a3;_0x519407>=0x0;_0x519407--)(_0x5712a3=_0x22b284[_0x519407])&&(_0xa2699b=(_0x5f4a1d?_0x5712a3(_0x37f654,_0xa6d0e8,_0xa2699b):_0x5712a3(_0xa2699b))||_0xa2699b);return _0x5f4a1d&&_0xa2699b&&_0x79d50f(_0x37f654,_0xa6d0e8,_0xa2699b),_0xa2699b;},_0x4f9c84=(_0x36026b,_0x23cfa7)=>(_0x13ef78,_0x669d7)=>_0x23cfa7(_0x13ef78,_0x669d7,_0x36026b);let _0x53088d=class extends _0x5146d3[_0xc26848(0x23a)]{constructor(_0x5117e5,_0x43c5ad,_0x13bd19){const _0x15fad3=_0xc26848;super(),_0x5e36fb(this,_0x15fad3(0x253),new Map()),_0x5e36fb(this,_0x15fad3(0x22a),new _0x454f45[(_0x15fad3(0x378))]()),_0x5e36fb(this,_0x15fad3(0x359),this[_0x15fad3(0x22a)][_0x15fad3(0x242)]()),(this[_0x15fad3(0x18a)]=_0x5117e5,this['_collabSessionService']=_0x43c5ad,this[_0x15fad3(0x1fd)]=_0x13bd19,this[_0x15fad3(0x1cb)]());}[_0xc26848(0x371)](){const _0x1b4dab=_0xc26848;super['dispose'](),this[_0x1b4dab(0x253)]['forEach'](_0x336619=>_0x336619[_0x1b4dab(0x371)]()),this[_0x1b4dab(0x253)][_0x1b4dab(0x35d)]();}[_0xc26848(0x331)](_0x3621c3){const _0x1d37ad=_0xc26848;var _0x57a70e;return(_0x57a70e=this[_0x1d37ad(0x253)][_0x1d37ad(0x214)](_0x3621c3))!=null?_0x57a70e:null;}[_0xc26848(0x278)](_0x589c3){const _0x2e4dff=_0xc26848,_0x2c807b=this[_0x2e4dff(0x331)](_0x589c3);return _0x2c807b?_0x454f45['of'](_0x2c807b):this[_0x2e4dff(0x22a)]['pipe'](_0x13385f[_0x2e4dff(0x21b)](_0x286d56=>_0x286d56['unitID']===_0x589c3));}[_0xc26848(0x220)](_0x928af){const _0x58c4ce=_0xc26848;return _0x454f45[_0x58c4ce(0x21a)](this[_0x58c4ce(0x278)](_0x928af)[_0x58c4ce(0x381)](_0x13385f[_0x58c4ce(0x2d0)](()=>{})));}[_0xc26848(0x1cb)](){const _0x557fd1=_0xc26848;this[_0x557fd1(0x1fd)][_0x557fd1(0x289)](_0x5146d3[_0x557fd1(0x1e9)]['UNIVER_SHEET'])[_0x557fd1(0x381)](_0x454f45[_0x557fd1(0x280)](this[_0x557fd1(0x231)]),_0x13385f[_0x557fd1(0x224)](0x10))[_0x557fd1(0x1fa)](async _0x2fcbe4=>{const _0x4410a6=_0x557fd1,_0x8e948b=_0x2fcbe4[_0x4410a6(0x34f)](),_0x1d716c=await this['_startCollaboration'](_0x8e948b,_0x44d2bd['UNIVER_SHEET']);this[_0x4410a6(0x253)][_0x4410a6(0x29d)](_0x8e948b,_0x1d716c);}),this[_0x557fd1(0x1fd)][_0x557fd1(0x289)](_0x5146d3[_0x557fd1(0x1e9)]['UNIVER_DOC'])[_0x557fd1(0x381)](_0x454f45[_0x557fd1(0x280)](this[_0x557fd1(0x231)]),_0x13385f['delay'](0x10))[_0x557fd1(0x381)](_0x13385f['filter'](_0x5ed671=>!_0x5ed671[_0x557fd1(0x34f)]()['startsWith']('__')))[_0x557fd1(0x1fa)](async _0x187ee6=>{const _0x41b2a8=_0x557fd1,_0x11e278=_0x187ee6['getUnitId'](),_0x3b883f=await this[_0x41b2a8(0x2da)](_0x11e278,_0x44d2bd[_0x41b2a8(0x1c1)]);this[_0x41b2a8(0x253)][_0x41b2a8(0x29d)](_0x11e278,_0x3b883f);}),_0x454f45[_0x557fd1(0x2dd)](this[_0x557fd1(0x1fd)][_0x557fd1(0x1eb)](_0x5146d3[_0x557fd1(0x1e9)][_0x557fd1(0x213)]),this[_0x557fd1(0x1fd)][_0x557fd1(0x1eb)](_0x5146d3[_0x557fd1(0x1e9)][_0x557fd1(0x1c1)]))[_0x557fd1(0x381)](_0x454f45[_0x557fd1(0x280)](this[_0x557fd1(0x231)]))[_0x557fd1(0x1fa)](_0x5195f3=>{const _0x3b4df1=_0x557fd1,_0x46ced3=_0x5195f3[_0x3b4df1(0x34f)](),_0x4c0964=this['_entities'][_0x3b4df1(0x214)](_0x46ced3);_0x4c0964&&(_0x4c0964['dispose'](),this[_0x3b4df1(0x253)][_0x3b4df1(0x24b)](_0x46ced3));});}async[_0xc26848(0x2da)](_0x267cd7,_0x39582d){const _0x48f01a=_0xc26848,_0x4e0626=await this[_0x48f01a(0x1b1)]['requireSession'](_0x267cd7),_0x94801=this[_0x48f01a(0x18a)]['createInstance'](this[_0x48f01a(0x2d4)](_0x39582d),_0x267cd7,_0x39582d,_0x4e0626);return await _0x94801['init'](),this[_0x48f01a(0x22a)][_0x48f01a(0x218)](_0x94801),_0x94801;}[_0xc26848(0x2d4)](_0x52a92f){const _0x507f22=_0xc26848;switch(_0x52a92f){case _0x44d2bd[_0x507f22(0x1c1)]:return _0x55a581;case _0x44d2bd['UNIVER_SHEET']:return _0x54e09f;default:throw new Error(_0x507f22(0x34c)+_0x52a92f);}}};_0x53088d=_0x470bdc([_0x4f9c84(0x0,_0x5146d3[_0xc26848(0x271)](_0x5146d3[_0xc26848(0x2a0)])),_0x4f9c84(0x1,_0x5146d3['Inject'](_0x12796a)),_0x4f9c84(0x2,_0x5146d3[_0xc26848(0x2e1)])],_0x53088d);var _0x473796=Object[_0xc26848(0x309)],_0x204297=Object[_0xc26848(0x1b4)],_0x1b5e3d=(_0x5c080c,_0x4fd937,_0x437565,_0x2ae48c)=>{const _0x8e1cf8=_0xc26848;for(var _0x21780d=_0x2ae48c>0x1?void 0x0:_0x2ae48c?_0x204297(_0x4fd937,_0x437565):_0x4fd937,_0x1b3252=_0x5c080c[_0x8e1cf8(0x2b7)]-0x1,_0x475b68;_0x1b3252>=0x0;_0x1b3252--)(_0x475b68=_0x5c080c[_0x1b3252])&&(_0x21780d=(_0x2ae48c?_0x475b68(_0x4fd937,_0x437565,_0x21780d):_0x475b68(_0x21780d))||_0x21780d);return _0x2ae48c&&_0x21780d&&_0x473796(_0x4fd937,_0x437565,_0x21780d),_0x21780d;},_0x350066=(_0x240407,_0x5ef592)=>(_0x4326ac,_0x5a36e2)=>_0x5ef592(_0x4326ac,_0x5a36e2,_0x240407);_0x1d673e[_0xc26848(0x2c6)]=class extends _0x5146d3[_0xc26848(0x342)]{constructor(_0x3db36e,_0x30a1eb,_0xba514b){const _0x2df872=_0xc26848;super(),this[_0x2df872(0x294)]=_0x3db36e,this['_snapshotService']=_0x30a1eb,this[_0x2df872(0x32b)]=_0xba514b;}async[_0xc26848(0x22c)](_0x524d5f){const _0x403e40=_0xc26848;return await this[_0x403e40(0x281)][_0x403e40(0x22c)](_0x524d5f,0x0)?(await this[_0x403e40(0x32b)][_0x403e40(0x220)](_0x524d5f),this[_0x403e40(0x294)][_0x403e40(0x38c)](_0x524d5f)):null;}},_0x1d673e[_0xc26848(0x2c6)]=_0x1b5e3d([_0x350066(0x1,_0x5146d3[_0xc26848(0x271)](_0x25e52f['SnapshotService'])),_0x350066(0x2,_0x5146d3['Inject'](_0x53088d))],_0x1d673e[_0xc26848(0x2c6)]);class _0x511bc4 extends _0x5146d3[_0xc26848(0x20b)]{[_0xc26848(0x31c)](){const _0x246e4c=_0xc26848;return this['_injector'][_0x246e4c(0x32e)](_0x1d673e[_0x246e4c(0x2c6)],{'getUniverSheet':_0x18f0e9=>this[_0x246e4c(0x38c)](_0x18f0e9)});}}_0x5146d3[_0xc26848(0x20b)][_0xc26848(0x2be)](_0x511bc4),Object[_0xc26848(0x309)](_0x1d673e,Symbol[_0xc26848(0x303)],{'value':_0xc26848(0x2e5)});}));