@univerjs-pro/collaboration-client 0.5.5-nightly.202501220324 → 0.5.5-nightly.202501231606

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- var _0x43e0c9=_0x5029;(function(_0x405a8d,_0x13b38f){var _0x185800=_0x5029,_0x3f18e0=_0x405a8d();while(!![]){try{var _0x1f4e85=-parseInt(_0x185800(0x1ab))/0x1*(-parseInt(_0x185800(0x168))/0x2)+parseInt(_0x185800(0x1d8))/0x3+parseInt(_0x185800(0x2db))/0x4*(parseInt(_0x185800(0x1c1))/0x5)+parseInt(_0x185800(0x169))/0x6+parseInt(_0x185800(0x41e))/0x7*(parseInt(_0x185800(0x3d8))/0x8)+parseInt(_0x185800(0x253))/0x9+parseInt(_0x185800(0x3f6))/0xa*(-parseInt(_0x185800(0x301))/0xb);if(_0x1f4e85===_0x13b38f)break;else _0x3f18e0['push'](_0x3f18e0['shift']());}catch(_0x55769b){_0x3f18e0['push'](_0x3f18e0['shift']());}}}(_0x2fa0,0x5f826));var __defProp=Object[_0x43e0c9(0x1bc)],__defNormalProp=(_0x3c0992,_0x3ad421,_0x395262)=>_0x3ad421 in _0x3c0992?__defProp(_0x3c0992,_0x3ad421,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x395262}):_0x3c0992[_0x3ad421]=_0x395262,__name=(_0x63f3be,_0x9677aa)=>__defProp(_0x63f3be,_0x43e0c9(0x3e4),{'value':_0x9677aa,'configurable':!0x0}),__publicField=(_0x5a894e,_0x233ba0,_0x53c099)=>__defNormalProp(_0x5a894e,typeof _0x233ba0!=_0x43e0c9(0x149)?_0x233ba0+'':_0x233ba0,_0x53c099);import{createIdentifier,Inject,Injector,Disposable,DisposableCollection,toDisposable,IConfigService,ILogService,UserManagerService,UniverInstanceType,IUniverInstanceService,LocaleService,Optional,RxDisposable,Tools,Rectangle,ICommandService,JSONX,CommandType,IPermissionService,IUndoRedoService,sequenceExecute,Workbook,MentionType,IAuthzIoService,isInternalEditorID,LocalUndoRedoService,IContextService,DependentOn,Plugin,merge as _0x523ccd,mergeOverrideWithDependencies,IMentionIOService,registerDependencies,Quantity,touchDependencies}from'@univerjs/core';import{Subject,merge,of,BehaviorSubject,takeUntil,ReplaySubject,take as _0x4af4d9,map as _0x14d6b6,shareReplay,firstValueFrom,concatMap}from'rxjs';import{map,take,filter,delay,takeUntil as _0x3e796d}from'rxjs/operators';import{HTTPService,ISocketService,MergeInterceptorFactory,HTTPRequest,UniverNetworkPlugin,ThresholdInterceptorFactory}from'@univerjs/network';import{CollaborationEvent,parseChangesetToProtocol,ISnapshotServerService,isTransformMutationsWithChangesetSuccess,ITransformService,mapDocumentTypeToUniverType,RevisionService,isTransformChangesetsSuccess,CompressMutationService,parseProtocolChangeset,SnapshotService,textEncoder,b64DecodeUnicode,isTransformMutationsWithChangesetFailure,UniverCollaborationPlugin}from'@univerjs-pro/collaboration';import{ITelemetryService}from'@univerjs/telemetry';import{RichTextEditingMutation}from'@univerjs/docs';import{SheetsSelectionsService,SetSelectionsOperation,InsertSheetMutation,EmptyMutation,WorkbookEditablePermission,SheetPermissionInitController,UniverSheetsPlugin}from'@univerjs/sheets';import{ImageSourceType,ImageUploadStatusType,IImageIoService}from'@univerjs/drawing';import{getGlobalObject}from'@univerjs-pro/license';const SNAPSHOT_SERVER_URL_KEY='SNAPSHOT_SERVER_URL_KEY',DEFAULT_SNAPSHOT_SERVER_URL='/universer-api/snapshot',SNAPSHOT_URL_KEY='SNAPSHOT_URL_KEY',SEND_CHANGESET_TIMEOUT_KEY=_0x43e0c9(0x17c),DEFAULT_SEND_CHANGESET_TIMEOUT=0x7d0,COLLAB_WEB_SOCKET_URL_KEY=_0x43e0c9(0x2d6),DEFAULT_COLLAB_WEB_SOCKET_URL=_0x43e0c9(0x170),DEFAULT_WS_SESSION_TICKET_URL=_0x43e0c9(0x321),HEARTBEAT_INTERVAL_KEY=_0x43e0c9(0x326),DEFAULT_HEARTBEAT_INTERVAL=0x7530,HEARTBEAT_TIMEOUT_KEY=_0x43e0c9(0xf7),DEFAULT_HEARTBEAT_TIMEOUT=0x4e20,DEFAULT_RETRY_CONNECTING_INTERVAL=0x4e20,RETRY_CONNECTING_MAX_COUNT_KEY='RETRY_CONNECTING_MAX_COUNT',DEFAULT_RETRY_CONNECTING_MAX_COUNT=0x3,LOCAL_CACHE_INTERVAL_KEY=_0x43e0c9(0x1c9),LOCAL_CACHE_INTERVAL=0x3e8,COLLAB_SUBMIT_CHANGESET_URL_KEY='COLLAB_SUBMIT_CHANGESET_URL',DEFAULT_COLLAB_SUBMIT_CHANGESET_URL=_0x43e0c9(0x424),LOGIN_URL_KEY='LOGIN_URL_KEY',DEFAULT_LOGIN_URL=_0x43e0c9(0x217),REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY=_0x43e0c9(0x2dd),DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT=_0x43e0c9(0x2a5);var ErrorCode=(_0xaf126e=>(_0xaf126e[_0xaf126e['UNDEFINED']=0x0]=_0x43e0c9(0x16b),_0xaf126e[_0xaf126e['OK']=0x1]='OK',_0xaf126e[_0xaf126e[_0x43e0c9(0x156)]=0x2]=_0x43e0c9(0x156),_0xaf126e[_0xaf126e[_0x43e0c9(0x2bb)]=0x3]=_0x43e0c9(0x2bb),_0xaf126e[_0xaf126e[_0x43e0c9(0x344)]=0x4]=_0x43e0c9(0x344),_0xaf126e[_0xaf126e[_0x43e0c9(0x1a1)]=0x5]=_0x43e0c9(0x1a1),_0xaf126e[_0xaf126e[_0x43e0c9(0x409)]=0x6]=_0x43e0c9(0x409),_0xaf126e[_0xaf126e[_0x43e0c9(0x299)]=0x7]=_0x43e0c9(0x299),_0xaf126e[_0xaf126e['TOO_MANY_REQUESTS']=0x8]='TOO_MANY_REQUESTS',_0xaf126e[_0xaf126e[_0x43e0c9(0x1b8)]=0x9]='COMPLETION_FINISHED',_0xaf126e[_0xaf126e[_0x43e0c9(0x408)]=0x1389]=_0x43e0c9(0x408),_0xaf126e[_0xaf126e[_0x43e0c9(0x1fe)]=0x1771]=_0x43e0c9(0x1fe),_0xaf126e[_0xaf126e['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0xaf126e[_0xaf126e['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x43e0c9(0x3c6),_0xaf126e[_0xaf126e['APPLY_REJECT']=0x1b59]=_0x43e0c9(0x21a),_0xaf126e[_0xaf126e['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x43e0c9(0x428),_0xaf126e[_0xaf126e[_0x43e0c9(0x247)]=0x1b5b]=_0x43e0c9(0x247),_0xaf126e[_0xaf126e[_0x43e0c9(0x19a)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0xaf126e[_0xaf126e[_0x43e0c9(0x3d4)]=0x1b5d]=_0x43e0c9(0x3d4),_0xaf126e[_0xaf126e[_0x43e0c9(0x18a)]=0x1f41]=_0x43e0c9(0x18a),_0xaf126e[_0xaf126e[_0x43e0c9(0x35e)]=0x2329]=_0x43e0c9(0x35e),_0xaf126e[_0xaf126e[_0x43e0c9(0x3df)]=0x232a]=_0x43e0c9(0x3df),_0xaf126e[_0xaf126e[_0x43e0c9(0x3ef)]=0x232b]=_0x43e0c9(0x3ef),_0xaf126e[_0xaf126e[_0x43e0c9(0x339)]=0x232c]=_0x43e0c9(0x339),_0xaf126e[_0xaf126e[_0x43e0c9(0x2ec)]=0x232d]=_0x43e0c9(0x2ec),_0xaf126e[_0xaf126e['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x43e0c9(0x257),_0xaf126e[_0xaf126e[_0x43e0c9(0x242)]=0x2712]=_0x43e0c9(0x242),_0xaf126e[_0xaf126e[_0x43e0c9(0x222)]=0x2713]=_0x43e0c9(0x222),_0xaf126e[_0xaf126e[_0x43e0c9(0x1a3)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0xaf126e[_0xaf126e[_0x43e0c9(0x3e5)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0xaf126e[_0xaf126e[_0x43e0c9(0x18e)]=-0x1]=_0x43e0c9(0x18e),_0xaf126e))(ErrorCode||{}),UniverType=(_0x46cb73=>(_0x46cb73[_0x46cb73[_0x43e0c9(0x2fc)]=0x0]=_0x43e0c9(0x2fc),_0x46cb73[_0x46cb73[_0x43e0c9(0x199)]=0x1]='UNIVER_DOC',_0x46cb73[_0x46cb73[_0x43e0c9(0x202)]=0x2]='UNIVER_SHEET',_0x46cb73[_0x46cb73[_0x43e0c9(0x2ee)]=0x3]=_0x43e0c9(0x2ee),_0x46cb73[_0x46cb73[_0x43e0c9(0x440)]=0x4]=_0x43e0c9(0x440),_0x46cb73[_0x46cb73[_0x43e0c9(0x18e)]=-0x1]=_0x43e0c9(0x18e),_0x46cb73))(UniverType||{}),CombCmd=(_0x5430eb=>(_0x5430eb[_0x5430eb['UNKNOWN_CMD']=0x0]=_0x43e0c9(0x412),_0x5430eb[_0x5430eb['HELLO']=0x1]=_0x43e0c9(0x343),_0x5430eb[_0x5430eb[_0x43e0c9(0x3ba)]=0x2]=_0x43e0c9(0x3ba),_0x5430eb[_0x5430eb[_0x43e0c9(0x190)]=0x3]=_0x43e0c9(0x190),_0x5430eb[_0x5430eb[_0x43e0c9(0x137)]=0x4]=_0x43e0c9(0x137),_0x5430eb[_0x5430eb['HEARTBEAT']=0x5]=_0x43e0c9(0x3e0),_0x5430eb[_0x5430eb[_0x43e0c9(0x1d3)]=0x6]=_0x43e0c9(0x1d3),_0x5430eb[_0x5430eb['UNRECOGNIZED']=-0x1]=_0x43e0c9(0x18e),_0x5430eb))(CombCmd||{}),CmdRspCode=(_0x4e4e52=>(_0x4e4e52[_0x4e4e52['UNKNOWN_CODE']=0x0]='UNKNOWN_CODE',_0x4e4e52[_0x4e4e52['OK']=0x1]='OK',_0x4e4e52[_0x4e4e52[_0x43e0c9(0x1f3)]=0x2]=_0x43e0c9(0x1f3),_0x4e4e52[_0x4e4e52[_0x43e0c9(0x163)]=0x3e9]=_0x43e0c9(0x163),_0x4e4e52[_0x4e4e52['JOIN_ROOM_NOT_EXISTS']=0x3ea]=_0x43e0c9(0x2e4),_0x4e4e52[_0x4e4e52[_0x43e0c9(0x2f5)]=0x3eb]=_0x43e0c9(0x2f5),_0x4e4e52[_0x4e4e52[_0x43e0c9(0x384)]=0x3ec]=_0x43e0c9(0x384),_0x4e4e52[_0x4e4e52[_0x43e0c9(0x18e)]=-0x1]=_0x43e0c9(0x18e),_0x4e4e52))(CmdRspCode||{}),FileSource=(_0x25b0b7=>(_0x25b0b7[_0x25b0b7[_0x43e0c9(0x3d0)]=0x0]=_0x43e0c9(0x3d0),_0x25b0b7[_0x25b0b7[_0x43e0c9(0x1b1)]=0x1]=_0x43e0c9(0x1b1),_0x25b0b7[_0x25b0b7[_0x43e0c9(0x198)]=0x2]='HttpExport',_0x25b0b7[_0x25b0b7[_0x43e0c9(0x382)]=0x3]=_0x43e0c9(0x382),_0x25b0b7[_0x25b0b7['UnitSnapshot']=0x4]=_0x43e0c9(0x18c),_0x25b0b7[_0x25b0b7[_0x43e0c9(0x18e)]=-0x1]='UNRECOGNIZED',_0x25b0b7))(FileSource||{});const COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY=_0x43e0c9(0x122),defaultPluginConfig={};var CollaborationUIEventId=(_0x1ee9b3=>(_0x1ee9b3[_0x43e0c9(0x240)]=_0x43e0c9(0x240),_0x1ee9b3[_0x43e0c9(0x2bb)]=_0x43e0c9(0x2bb),_0x1ee9b3[_0x43e0c9(0x2a0)]='CONFLICT',_0x1ee9b3[_0x43e0c9(0x309)]=_0x43e0c9(0x309),_0x1ee9b3[_0x43e0c9(0x2b6)]=_0x43e0c9(0x2b6),_0x1ee9b3[_0x43e0c9(0x135)]=_0x43e0c9(0x135),_0x1ee9b3[_0x43e0c9(0x42d)]=_0x43e0c9(0x42d),_0x1ee9b3[_0x43e0c9(0x26f)]=_0x43e0c9(0x26f),_0x1ee9b3))(CollaborationUIEventId||{});const _CollaborationUIEventService=class _CollaborationUIEventService{constructor(){__publicField(this,'_event$',new Subject()),__publicField(this,'event$',this['_event$']['asObservable']());}[_0x43e0c9(0x43a)](_0x1c8846){var _0xfcaf7d=_0x43e0c9;this[_0xfcaf7d(0x228)][_0xfcaf7d(0x2e5)](_0x1c8846);}};__name(_CollaborationUIEventService,_0x43e0c9(0x19f));let CollaborationUIEventService=_CollaborationUIEventService;const INetworkConditionService=createIdentifier(_0x43e0c9(0x375));function deserializeToCombResponse(_0x325601){var _0x16b6f7=_0x43e0c9,_0x5e96c5,_0x513ecd,_0x379eba,_0x24f282,_0x5baf52;const _0x5641d5=_0x325601[_0x16b6f7(0x14c)],_0x4a8973=JSON['parse'](_0x5641d5);switch(_0x4a8973['cmd']){case CombCmd[_0x16b6f7(0x3e0)]:case CombCmd[_0x16b6f7(0x343)]:{const _0x1696ae=_0x4a8973['infoRsp'];return{..._0x4a8973,'data':_0x1696ae,'cmd':_0x4a8973[_0x16b6f7(0x1fb)]};}case CombCmd[_0x16b6f7(0x3ba)]:{const _0x171bd0=_0x4a8973[_0x16b6f7(0x1e6)];return{..._0x4a8973,'data':_0x171bd0,'cmd':_0x4a8973[_0x16b6f7(0x1fb)]};}case CombCmd[_0x16b6f7(0x1d3)]:{const _0x5111c4=_0x4a8973[_0x16b6f7(0x165)];switch(_0x5111c4[_0x16b6f7(0x25d)]){case CollaborationEvent[_0x16b6f7(0x3db)]:return{..._0x4a8973,'data':{..._0x5111c4,'data':(_0x5e96c5=_0x5111c4[_0x16b6f7(0x2b1)])==null?void 0x0:_0x5e96c5['cs']},'cmd':_0x4a8973[_0x16b6f7(0x1fb)]};case CollaborationEvent[_0x16b6f7(0x24c)]:return{..._0x4a8973,'data':{..._0x5111c4,'data':(_0x513ecd=_0x5111c4[_0x16b6f7(0x3b7)])==null?void 0x0:_0x513ecd['cs']},'cmd':_0x4a8973[_0x16b6f7(0x1fb)]};case CollaborationEvent['NEW_CHANGESETS']:return{..._0x4a8973,'data':{..._0x5111c4,'data':(_0x379eba=_0x5111c4[_0x16b6f7(0x1e8)])==null?void 0x0:_0x379eba['cs']},'cmd':_0x4a8973[_0x16b6f7(0x1fb)]};case CollaborationEvent[_0x16b6f7(0x26d)]:return{..._0x4a8973,'data':{..._0x5111c4,'data':(_0x24f282=_0x5111c4['csRejEvent'])==null?void 0x0:_0x24f282['cs']},'cmd':_0x4a8973[_0x16b6f7(0x1fb)]};case CollaborationEvent['CHANGESET_SHOULD_RETRY']:return{..._0x4a8973,'data':{..._0x5111c4,'data':(_0x5baf52=_0x5111c4[_0x16b6f7(0x333)])==null?void 0x0:_0x5baf52['cs']},'cmd':_0x4a8973['cmd']};case CollaborationEvent[_0x16b6f7(0x38d)]:return{..._0x4a8973,'data':{..._0x5111c4,'data':_0x5111c4[_0x16b6f7(0x260)]},'cmd':_0x4a8973['cmd']};case CollaborationEvent[_0x16b6f7(0x1c4)]:return{..._0x4a8973,'data':{..._0x5111c4,'data':_0x5111c4['joinEvent']},'cmd':_0x4a8973[_0x16b6f7(0x1fb)]};case CollaborationEvent[_0x16b6f7(0x2fe)]:return{..._0x4a8973,'data':{..._0x5111c4,'data':_0x5111c4['leaveEvent']},'cmd':_0x4a8973[_0x16b6f7(0x1fb)]};case CollaborationEvent[_0x16b6f7(0x209)]:return{..._0x4a8973,'data':{..._0x5111c4,'data':_0x5111c4[_0x16b6f7(0x136)]},'cmd':_0x4a8973[_0x16b6f7(0x1fb)]};case CollaborationEvent['LIVESHARE_FETCH_OPERATIONS']:case CollaborationEvent[_0x16b6f7(0x132)]:return{..._0x4a8973,'data':{..._0x5111c4,'data':_0x5111c4[_0x16b6f7(0x232)]},'cmd':_0x4a8973['cmd']};case CollaborationEvent['LIVESHARE_TERMINATE']:return{..._0x4a8973,'data':{..._0x5111c4,'data':_0x5111c4[_0x16b6f7(0x136)]},'cmd':_0x4a8973['cmd']};case CollaborationEvent[_0x16b6f7(0x292)]:return{..._0x4a8973,'data':_0x5111c4,'cmd':_0x4a8973['cmd']};case CollaborationEvent[_0x16b6f7(0x11a)]:return{..._0x4a8973,'data':{..._0x5111c4,'data':_0x5111c4['commentUpdateEvent']},'cmd':_0x4a8973[_0x16b6f7(0x1fb)]};case CollaborationEvent[_0x16b6f7(0x348)]:return{..._0x4a8973,'data':{..._0x5111c4,'data':_0x5111c4[_0x16b6f7(0x14d)]},'cmd':_0x4a8973[_0x16b6f7(0x1fb)]};case CollaborationEvent[_0x16b6f7(0x1aa)]:return{..._0x4a8973,'data':{..._0x5111c4,'data':_0x5111c4['shouldCloseConn']},'cmd':_0x4a8973[_0x16b6f7(0x1fb)]};case CollaborationEvent[_0x16b6f7(0x24b)]:return{..._0x4a8973,'data':{..._0x5111c4,'data':_0x5111c4[_0x16b6f7(0x361)]},'cmd':_0x4a8973[_0x16b6f7(0x1fb)]};default:return _0x4a8973;}}default:return _0x4a8973;}}__name(deserializeToCombResponse,_0x43e0c9(0x19c));function serializeCombRequest(_0x2a4325){var _0x33a7dc=_0x43e0c9;switch(_0x2a4325[_0x33a7dc(0x1fb)]){case CombCmd[_0x33a7dc(0x3e0)]:case CombCmd[_0x33a7dc(0x343)]:return JSON[_0x33a7dc(0xff)]({'cmd':_0x2a4325[_0x33a7dc(0x1fb)],'routeKey':_0x2a4325['routeKey']});case CombCmd[_0x33a7dc(0x137)]:{let _0x2fe129;switch(_0x2a4325[_0x33a7dc(0x14c)][_0x33a7dc(0x25d)]){case CollaborationEvent[_0x33a7dc(0x38d)]:{_0x2fe129={'eventID':CollaborationEvent[_0x33a7dc(0x38d)],'updateCursorEvent':_0x2a4325[_0x33a7dc(0x14c)][_0x33a7dc(0x14c)]};break;}case CollaborationEvent[_0x33a7dc(0x2fe)]:{_0x2fe129={'eventID':CollaborationEvent['USERS_LEAVE'],'leaveEvent':_0x2a4325[_0x33a7dc(0x14c)][_0x33a7dc(0x14c)]};break;}case CollaborationEvent['USERS_ENTER']:{_0x2fe129={'eventID':CollaborationEvent[_0x33a7dc(0x1c4)],'joinEvent':_0x2a4325[_0x33a7dc(0x14c)]['data']};break;}case CollaborationEvent[_0x33a7dc(0x209)]:{_0x2fe129={'eventID':CollaborationEvent[_0x33a7dc(0x209)],'liveShareNewHost':_0x2a4325[_0x33a7dc(0x14c)]['data']};break;}case CollaborationEvent[_0x33a7dc(0x132)]:{_0x2fe129={'eventID':CollaborationEvent[_0x33a7dc(0x132)],'liveShareOperation':_0x2a4325[_0x33a7dc(0x14c)][_0x33a7dc(0x14c)]};break;}case CollaborationEvent[_0x33a7dc(0x3b1)]:{_0x2fe129={'eventID':CollaborationEvent[_0x33a7dc(0x3b1)],'liveShareTerminate':_0x2a4325['data'][_0x33a7dc(0x14c)]};break;}case CollaborationEvent[_0x33a7dc(0x23c)]:{_0x2fe129={'eventID':CollaborationEvent[_0x33a7dc(0x23c)],'liveShareRequestHost':_0x2a4325[_0x33a7dc(0x14c)][_0x33a7dc(0x14c)]};break;}case CollaborationEvent['LIVESHARE_FETCH_OPERATIONS']:{_0x2fe129={'eventID':CollaborationEvent[_0x33a7dc(0x302)]};break;}default:_0x2fe129={'eventID':_0x2a4325[_0x33a7dc(0x14c)][_0x33a7dc(0x25d)]};}return JSON[_0x33a7dc(0xff)]({'cmd':_0x2a4325[_0x33a7dc(0x1fb)],'routeKey':_0x2a4325[_0x33a7dc(0x33f)],'collaMsg':_0x2fe129});}case CombCmd['JOIN']:return JSON[_0x33a7dc(0xff)]({'cmd':_0x2a4325[_0x33a7dc(0x1fb)],'routeKey':_0x2a4325['routeKey'],'joinReq':_0x2a4325[_0x33a7dc(0x14c)]});case CombCmd[_0x33a7dc(0x190)]:return JSON[_0x33a7dc(0xff)]({'cmd':_0x2a4325[_0x33a7dc(0x1fb)],'routeKey':_0x2a4325[_0x33a7dc(0x33f)],'leaveReq':_0x2a4325[_0x33a7dc(0x14c)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}function _0x2fa0(){var _0x1e8311=['[OfflineState]:\x20received\x20acknowledgement.','AuthServerService','has','authzUrl','type','LIVESHARE_TERMINATE','words','session.room-permission-denied','_lockTransition','synced','_transformRemoteChangesetByIMECache','csAckEvent','_initUnitPermissionChange','_transformStack','JOIN','sigBytes','loadDoc','_handler','online$','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_revisionService','image/jpeg','onCommentUpdate','removeMember','onTransformState','requireSha1','ENSURE_SNAPSHOT_EXECUTION','reverse','copyFileMeta','repeat','_updateState','_replaceFileID','Hasher','handleCloseConn','__decorateClass$5','_onJoinRoomEvent','Undefined','change$','pad','image/png','APPLY_DUPLICATED','_collabSessionService','replace','collaboration-client.local-cache-service','66536YiLcTA','transformSelections','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','PERMISSION_REJ','_updateLocalCache','_localeService','_showConflictNotification','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','HEARTBEAT','resolve','/universer-api/snapshot/','__defNormalProp','name','PY_RUNTIME_SCRIPT_ERROR','fetch_missing','function','SUBMIT_CHANGESET','changesets','memberID','parse','hasOwnProperty','withCredentials','resend','LICENSE_IMPORT_SIZE_EXCEEDED','Cipher','Latin1','awaitingChangeset','createTimerObservable$','_loadSheet','/rev/','21951980tbUmjB','executeCommand','DataLoaderService','_onConnectionOpen','Utf8','AuthzIoHttpService','_createHandler','readAsDataURL','_syncEditingCollabCursor','keySize','SheetTransformSelectionsService','createOnlineState','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','_injector','onTransformRemoteChangesetByStateCache','_sender','_onRemoteRetry','_startCollaboration','CHANGESET_REVISION_CONFILICT','ALREADY_EXISTS','_incrementRevisionNumber','members$','_registerDependencies','__esModule','subject','/unit/','__decorateClass$d','confirm','UNKNOWN_CMD','setShowComponents','splice','body','readInt32LE','members','decrypt','loadSheet','Native\x20crypto\x20module\x20could\x20not\x20be\x20used\x20to\x20get\x20secure\x20random\x20number.','socket$','reject','closeSession','483WkNmtB','_onCombEvent','_eventService','socket\x20close','batchAllowed','objects','/universer-api/comb','getAttachHeader','finalize','message$','APPLY_NON_SEQUENTIAL_REVISION','_timeoutTimer','enableOfflineEditing','_tryEnsureSocket','handleUnitPermissionChange','SOCKET_FAILED','__decorateClass$2','_socket$','getTypeOfUnitAdded$','_submitChangeset','catch','method','image/jpg','socketService','generateRandomId','_clearRedo','rev','textRanges','emitEvent','__decorateParam$1','_rescheduleHeartbeat','getMember','post','FETCH_MISS','UNIVER_PROJECT','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','unitID','commentUpdate$','_roomCreated$','_getCtorByUniverType','_getSessionTicket','BufferedBlockAlgorithm','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','json','saveSheetBlock','UUID','MD5','params','_initRequestHeader','result','duration','pkcs7Padding','/new_changes','HEARTBEAT_TIMEOUT','[CollaborationEntity]','__decorateParam$4','m2Prime','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','fetchMissingChangesets','state$','_removeRoom','stringify','_append','_onMessage','[FetchMissState]','encode','_unitID','min','_doProcessBlock','_socketMessageSubscription','__decorateParam$g','ciphertext','extend','updatePermissionPoint','getValue','__decorateParam$i','_candidateSocket','SyncedState','default','_transformUndoredo','[DataLoaderService]','headers','/-/object/list','_transformSelections','set','CBC','_snapshotService','push','COMMENT_UPDATE','_roomMembers','unsubscribe','execute','onTransformRemoteChangesetByIMECache','_logService','_nRounds','location','collaboration-client.config','status','range','_collaborationPaused','getFocusedUnit','_collaborationUIEventService','getDeserializedSheetBlock','_redoStacks','__decorateParam$d','_onRemoteACK','POST','startsWith','map','MentionIoHttpService','ERROR_IMAGE','_minBufferSize','LIVESHARE_OPERATION','socket\x20open.','searchParams','SOCKET_FAILED_RETRY','liveShareNewHost','INGEST','padding','_config','/object/','_oKey','_members','[PendingState]:\x20received\x20acknowledgement.','_getCurrentRevision','SerializableCipher','filter','_httpService','_doReset','__decorateClass$4','roles','prototype','actions','_getDownloadEndpointURL','CollaborationImageIoService','symbol','getActiveSheet','file','data','updatePermissionObjEvent','_cipher','event$','PERSON','_toggleOffline','addImageSourceCache','JOINING','clamp','close$','INTERNAL_ERROR','_socketReady','_undoRedoService','_permissionService','_createSocketURL','_prevBlock','image/gif','equals','_createInitialState','getConfig','/role','collabSubmitChangesetUrl','hostname','JOIN_ROOM_FULL','unpad','collaMsg','createEncryptor','resourceIDs','2arccjG','568602NOoYaW','_compressMutationService','UNDEFINED','_listenToNetworkCondition','mixIn','registerHTTPInterceptor','_entities','ws://127.0.0.1:8000/universer-api/comb/connect','_onOffline','_throwTelemetryCollaborationNewChangeset','onTransformIME','ERROR_EXCEED_SIZE','terminateWithError','__decorateClass$a','responseType','/allowed','ivSize','string','_retryCount','SEND_CHANGESET_TIMEOUT','__decorateParam$5','HMAC','SHA1','_instanceService','\x20-\x20','__decorateParam$8','BlockCipherMode','_commentUpdate$','reqId','assembleDocChangeset','_http','_onRemoteRejected','MUTATION','CONNECTOR_DATA_TOO_LARGE','__decorateClass','UnitSnapshot','requireHmac','UNRECOGNIZED','disposeWithMe','LEAVE','baseRev','_scheduleCompleteTimestamp','_substituteRedoStack','_checkMissing','onMissingChangesets','_map','[CollaborationSession]','HttpExport','UNIVER_DOC','APPLY_PERMISSION_DENIED','failed\x20to\x20apply\x20missed\x20changesets!','deserializeToCombResponse','_waitCount','_init','CollaborationUIEventService','[OfflineState]:\x20received\x20rejection.','UNAUTHENTICATED','_substituteUndoStack','YUUMI_SUBSCRIPTION_NOT_FOUND','_keyPriorReset','onMissedChangesetFetched','mode','_clearScheduledTask','compute','getCollabEntity','SHOULD_CLOSE_CONN','49751oPPjKh','put','xorBlock','_commandService','connection\x20error','CHANGESET_SHOULD_RETRY','HttpImport','_tryReconnect','signUrlServerUrl','CipherParams','_singleActiveUnitService','/object','_HTTPService','COMPLETION_FINISHED','setCurrentUser','_onConflict','sendChangesetTimeout','defineProperty','loginUrlKey','PasswordBasedCipher','clear','getCurrentRevOfUnit','615MyNeNX','get','_changesetReqId','USERS_ENTER','_pendingMutations','[SyncedState]:\x20received\x20acknowledgement.','_isPermissionRej','error','LOCAL_CACHE_INTERVAL','reconnect','now','_onLocalMutation','auth.needGotoLoginAlert','_iv','pauseCollaboration','&assign=','univer-pro.collaboration-client-socket-service','&source=','RECV','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','byteLength','session.join-failed','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','2322207IsBWXU','__decorateClass$8','crypto','/-/object/-/batch_allowed','_createInitialStateImpl','_getLoginPath','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_state$','setWaitCount','sin','toggleOnline','_createHelper','$super','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','joinRsp','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','newCsEvent','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','slice','__decorateClass$6','_getUploadFileURL','NOT_COLLAB','_createSocket','c1Prime','pipe','getImageSourceCache','BlockCipher','FAIL','src','_resendTimeout','requireLibTypedarrays','_retryConnectingTimer','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_schedule','_remoteChangesetQueue','cmd','AwaitingWithPendingState','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','SNAPSHOT_INVALID_SNAPSHOT','getInterceptPoints','patch','_keySchedule','UNIVER_SHEET','_type','OPTIONAL','runId','transformUndoRedo','complete','enableAuthServer','LIVESHARE_NEW_HOST','sheets','target','sid','_awaitingChangeset','x-univer-host','findIndex','__decorateParam$3','{fileID}','CollaborationState','_onRemoteChangeset','close','__decorateClass$3','_initCloseConn','/universer-api/oidc/authpage','?url=','_clearUndo','APPLY_REJECT','_initMergeInterceptor','init','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_executeRemoteChangeset','onTransformRemoteChangesetByStateCache\x20callback\x20is\x20not\x20added\x20yet.','onRemoteChangeset','DomainRequestService','YUUMI_RATE_OVER_LIMIT','hasher','[UniverCollaborationClientPlugin]','unknown','__decorateClass$b','_transformStateCache','_event$','_clearTimeoutTimer','\x20in\x20_schedule.','toString','awaiting_with_pending','random','_onFetchMissResult','createCollaborator','getTime','EvpKDF','liveShareOperation','length','getSheetId','updateCollaborator','[PendingState]:\x20received\x20rejection.','_shouldReportTelemetry','override','_updateStatus','size','__decorateClass$g','LIVESHARE_REQUEST_HOST','Malformed\x20UTF-8\x20data','_telemetryService','image/bmp','OTHER_CLIENT_EDITING','PendingState','YUUMI_URL_COL_OUT_OF_RANGE','then','OfflineState','mutations','_handlerCallback','APPLY_REVISION_CONFILICT','_mode','_configService','isPermissionRej','UNISCRIPT_RUN','CHANGESET_ACK','_decreaseWaiting','url','requireEvpkdf','onTransformSelections','_stopTelemetryCollaborationNewChangeset','_memberService','4054779oUWlqN','_commentService','extractTargetFromFirstChangeset','_unlockTransition','YUUMI_UNABLE_LOAD_URL','kdf','SUCCUSS','listCollaborators','dispose','commonjsRequire','eventID','_toggleOnline','updateMember','updateCursorEvent','toLowerCase','process','__decorateClass$f','_getAPIPrefix','__decorateParam$7','objectActions','revision','loadOfflineData','_scheduleCollaborationTimeoutTimer','status$','fetchMiss','deleteCollaborator','CHANGESET_REJ','People','SUBMIT_CHANGESET_TIMEOUT','[SyncedState]:\x20received\x20rejection.','_imageSourceCache','_collaborationTimeoutTimer','onRemoteRej','IDLE','\x0aAfter:\x20','Encryptor','_clearHeartbeatTimer','__decorateParam','open$','ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=','_joinRoom','sessionStatus$','AWAITING','_data','_doFinalize','PENDING','format','join','[CollaborationSessionService]:\x20socket\x20error','localCacheService','_entityInit$','_parse','debug','BASE64','_localCacheService','incrementRevOfUnit','_fetchMissChangesets','Could\x20not\x20dynamically\x20require\x20\x22','PSEUDO_FETCH_MISSING_RESULT','FileId','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_state','every','MSG_FOR_ERROR','Error\x20on\x20receiving\x20event','AUTHZ_URL_KEY','getRoom','Base64','getMemberID','_applyRemoteChangeset','INVALID_ARGUMENT','_createHmacHelper','snapshot','createSocket','substr','generateSubmitChangesPath','_replayCachedMutations','CONFLICT','append','Hex','sessionTicket','_loadDoc','/universer-api/uniscript','code','Decryptor','NO_OTHER_CLIENTS_EDITING','isArray','refreshPermission','pluginName','__decorateClass$1','/collaborator','avatar','pending','randomBytes','permissionRejEvent','floor','ConflictState','FetchingMissState','onRemoteAck','JOIN_ROOM_FAILED','getRandomValues','compose','_networkConditionService','apply','PERMISSION_DENIED','_queuedRemoteChangesets','_hash','OFFLINE','_resendTimer','StreamCipher','_changesetSessionId','stopTime','cryptoSecureRandomInt','onlyLocal','onLocalMutation','_onUserJoin','title','offline','exports','requireCipherCore','getUnitId','collaboration_new_changeset','reset','WordArray','msCrypto','getSheetBlock','interceptor','requireCore','\x20to\x20','/universer-api/authz','ticket','COLLAB_WEB_SOCKET_URL','[CollaborationUndoRedoService]','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','saveImage','_acknowledgedAwaitingChangeset','20924biVnXF','onSendChangeset','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_reverseMap','_sendHeartbeat','origin','_getSendChangesetTimeout','href','requestParams','JOIN_ROOM_NOT_EXISTS','next','_getRedoStack','__decorateParam$a','/block/','max','sessionStatus','collaborators','LICENSE_DISTRO_REJECTED','conflict','UNIVER_SLIDE','_ENC_XFORM_MODE','_socket','getImage','buffer','charCodeAt','charAt','JOIN_ROOM_PERMISSION_DENIED','_onUserLeave','lib','HmacMD5','COMPRESS_MUTATION_SEND','cfg','summaryChangesetSize','UNIVER_UNKNOWN','updateOfflineData','USERS_LEAVE','algo','waitForRoom$','11aCtdXP','LIVESHARE_FETCH_OPERATIONS','objectType','/resources','__decorateParam$c','requireAes','_onConnectionFailed','fetchThroughInterceptors','CLOSE_ROOM','COMPRESS_MUTATION_APPLY','_nDataBytes','blockSize','onCommandExecuted','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','formatter','ONLINE','__publicField','Base','send','call','fromCharCode','enc','listRoles','transformStack\x20failed!','_sheetTransformSelectionsService','salt','_change$','toggleOffline','downloadEndpointUrl','localeService','assembleSheetChangeset','_transformRemoteChangesetByStateCache','/universer-api/user/session-ticket','NoPadding','_getAPIPrefixPath','values','RoomMember','HEARTBEAT_INTERVAL','_status$','_onRecvEvent','add','onRemoteRetry','save\x20fail\x20reason\x20is\x20','initWorkbookPermissionChange','requireSession','_sendingTimer','telemetry\x20info\x20is\x20not\x20initialized','_univerInstanceService','abs','_sessions','csShouldRetryEvent','rng','session.room-full','state','search','unitInfo$','LICENSE_EXPORT_SIZE_EXCEEDED','getTypeOfUnitDisposed$','_process','create','error$','getOwnPropertyDescriptor','routeKey','_transitionLocked','AES','collabWebSocketUrl','HELLO','NOT_FOUND','_transformService','transformMutationsWithChangeset','getSnapshotAPIPath','UPDATE_PERMISSION_OBJ','update','dispose$','encodeURIComponent','FETCH_MISSING','_DEC_XFORM_MODE','?size=','_getUndoStack','OTHER_CLIENTS_EDITING','_xformMode','subscribe','encrypt','concat','indexOf','HmacSHA1','requireMd5','onStateChange','_members$','[CollaborationSessionService]','getCollabEntity$','_disableEditing','editing\x20status\x20changed\x20to','LICENSE_MAX_UNITS_EXCEEDED','appendMutation','_getSignURL','uniscriptRunEvent','_unitInfo$','_iKey','univer-pro.collaboration-client.single-active-unit-service','processBlock','setConfig','_hasher','onStarting','userID','FileNameController','delete','_sessionStatus$','_key','createDecryptor','_initDependencies','_userManagerService','_transformIMECache','_emitMembers','__decorateClass$c','fromCollab','univer-pro.collaboration-client.network-condition.service','randomUUID','encryptBlock','selections','_doCryptBlock','ERROR_IMAGE_TYPE','_sendHeartbeatTimer','onSyncEditingCollabCursor','CollaborationSessionService','bind','asObservable','_exhaustRemoteChangesetQueue','ceil','UnitEmbedded','clone','GLOBAL_ROOMS_CNT_EXCEEDS','not_collab','allowed','__creator','parseLoop','_authzIoService','subUnitId','unit-cache-','getUnit','UPDATE_CURSOR','unitId','saveChangeset','_startTelemetryCollaborationNewChangeset','_telemetryInfo','forEach','_snapshotServerService','objectID','getCurrentSelections','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','Random\x20bytes\x20length\x20must\x20be\x20>=\x2016','transformChangesets','deepClone','decryptBlock','byteOffset','CollaborationSocketService','session','fetching\x20missing\x20changesets\x20from\x20','createInstance','collaboratorID','_resendWithTimeout','originalMeta','capture','getCurrentUser','_waitForHeartbeatResponse','_clearLocalCache','awaiting','SYNCED','Pkcs7','_collaborationSessionService','OpenSSL'];_0x2fa0=function(){return _0x1e8311;};return _0x2fa0();}__name(serializeCombRequest,'serializeCombRequest');var __defProp$i=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc$i=Object[_0x43e0c9(0x33e)],__decorateClass$i=__name((_0x3e77b1,_0x19a17e,_0x538ec3,_0x36e9f9)=>{var _0x5a9f3a=_0x43e0c9;for(var _0x490aa7=_0x36e9f9>0x1?void 0x0:_0x36e9f9?__getOwnPropDesc$i(_0x19a17e,_0x538ec3):_0x19a17e,_0x4dfc82=_0x3e77b1[_0x5a9f3a(0x233)]-0x1,_0x231c28;_0x4dfc82>=0x0;_0x4dfc82--)(_0x231c28=_0x3e77b1[_0x4dfc82])&&(_0x490aa7=(_0x36e9f9?_0x231c28(_0x19a17e,_0x538ec3,_0x490aa7):_0x231c28(_0x490aa7))||_0x490aa7);return _0x36e9f9&&_0x490aa7&&__defProp$i(_0x19a17e,_0x538ec3,_0x490aa7),_0x490aa7;},'__decorateClass$i'),__decorateParam$i=__name((_0x512dca,_0x251eea)=>(_0x20f6dc,_0x4d0ca0)=>_0x251eea(_0x20f6dc,_0x4d0ca0,_0x512dca),_0x43e0c9(0x10d));const ICollaborationSocketService=createIdentifier(_0x43e0c9(0x1d1));function generateSubmitChangesPath(_0x253bf5,_0x4cb89a,_0x511e6e){var _0x56d922=_0x43e0c9;return _0x253bf5+'/'+_0x4cb89a+_0x56d922(0x40f)+_0x511e6e+_0x56d922(0xf6);}__name(generateSubmitChangesPath,_0x43e0c9(0x29e));var _a;let CollaborationSocketService=(_a=class extends Disposable{constructor(_0x290320,_0x5b1930,_0x17c26e,_0x3de643,_0x5835a3){var _0xacc825=_0x43e0c9;super(),this['_injector']=_0x290320,this[_0xacc825(0x187)]=_0x5b1930,this[_0xacc825(0x249)]=_0x17c26e,this[_0xacc825(0x11f)]=_0x3de643,this[_0xacc825(0x393)]=_0x5835a3;}[_0x43e0c9(0x29c)](_0x16ea35){var _0x1aea68=_0x43e0c9;const _0x1f490a=this['_injector'][_0x1aea68(0x1c2)](ISocketService);if(!_0x1f490a)throw new Error(_0x1aea68(0x402));const _0x25c7d5=_0x1f490a['createSocket'](_0x16ea35);if(!_0x25c7d5)throw new Error(_0x1aea68(0x1e7));const _0x48a0f6=new DisposableCollection(),_0x184aa8=new Subject();_0x48a0f6[_0x1aea68(0x329)](_0x25c7d5[_0x1aea68(0x155)][_0x1aea68(0x352)](_0xb8eb9e=>_0x184aa8['next'](_0xb8eb9e))),_0x48a0f6['add'](toDisposable(()=>_0x184aa8['complete']()));const _0x22af88=new Subject();_0x48a0f6['add'](_0x25c7d5[_0x1aea68(0x33d)][_0x1aea68(0x352)](_0xcb733d=>_0x22af88[_0x1aea68(0x2e5)](_0xcb733d))),_0x48a0f6[_0x1aea68(0x329)](toDisposable(()=>_0x22af88[_0x1aea68(0x207)]()));const _0x39c270=new Subject();_0x48a0f6[_0x1aea68(0x329)](_0x25c7d5[_0x1aea68(0x427)]['subscribe'](_0x3c05bf=>{const _0xdef5f=deserializeToCombResponse(_0x3c05bf);_0x39c270['next'](_0xdef5f);})),_0x48a0f6[_0x1aea68(0x329)](toDisposable(()=>_0x39c270[_0x1aea68(0x207)]()));let _0x268457;const _0x582415=__name(()=>{var _0x2f93e3=_0x1aea68;_0x22af88['next'](new Event(_0x2f93e3(0x1af))),_0x184aa8[_0x2f93e3(0x2e5)](new CloseEvent(_0x2f93e3(0x1af))),_0x268457['close']();},_0x1aea68(0x175));return _0x268457={'memberID':'','close$':_0x184aa8[_0x1aea68(0x37f)](),'error$':_0x22af88[_0x1aea68(0x37f)](),'open$':_0x25c7d5[_0x1aea68(0x279)],'message$':_0x39c270[_0x1aea68(0x37f)](),'send':__name(_0x1e6c5d=>{var _0x5f2833=_0x1aea68;if(_0x1e6c5d['cmd']===CombCmd[_0x5f2833(0x137)]){if(_0x1e6c5d['data'][_0x5f2833(0x25d)]===CollaborationEvent[_0x5f2833(0x3e8)]){this[_0x5f2833(0x431)](_0x268457,_0x1e6c5d['data'])[_0x5f2833(0x432)](_0x457b79=>{var _0x159753=_0x5f2833;this['_logService'][_0x159753(0x1c8)](_0x457b79),_0x582415();});return;}if(_0x1e6c5d['data']['eventID']===CollaborationEvent[_0x5f2833(0x34c)]){const _0x30481c=_0x1e6c5d[_0x5f2833(0x14c)];this[_0x5f2833(0x28b)](_0x30481c)[_0x5f2833(0x243)](_0x420b63=>{var _0x24eb16=_0x5f2833;_0x39c270[_0x24eb16(0x2e5)]({'cmd':CombCmd[_0x24eb16(0x1d3)],'code':CmdRspCode['OK'],'routeKey':_0x30481c['data'][_0x24eb16(0x442)],'routeType':'','data':{'eventID':CollaborationEvent['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x420b63}}});})[_0x5f2833(0x432)](_0x3833d1=>{var _0x4d4943=_0x5f2833;this[_0x4d4943(0x11f)][_0x4d4943(0x1c8)](_0x3833d1),_0x582415();});return;}}_0x25c7d5['send'](serializeCombRequest(_0x1e6c5d));},_0x1aea68(0x313)),'close':__name(()=>{var _0x14d35c=_0x1aea68;_0x25c7d5[_0x14d35c(0x214)](),_0x48a0f6[_0x14d35c(0x25b)]();},'close')},_0x268457;}async[_0x43e0c9(0x431)](_0x53814c,_0x106dea){var _0x5cb6cd=_0x43e0c9,_0x562336,_0x5c7f71;const {unitType:_0x41c20c,unitID:_0x4c2b3b,changeset:_0x5be064}=_0x106dea[_0x5cb6cd(0x14c)],_0x5cc30e={'unitID':_0x4c2b3b,'memberID':_0x53814c[_0x5cb6cd(0x3ea)],'type':_0x41c20c,'changeset':parseChangesetToProtocol(_0x5be064)},_0x1a35a4=this[_0x5cb6cd(0x249)]['getConfig'](COLLAB_SUBMIT_CHANGESET_URL_KEY),_0x416d36=this['_configService'][_0x5cb6cd(0x15f)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY),_0x516673=generateSubmitChangesPath((_0x5c7f71=(_0x562336=_0x416d36==null?void 0x0:_0x416d36[_0x5cb6cd(0x161)])!=null?_0x562336:_0x1a35a4)!=null?_0x5c7f71:DEFAULT_COLLAB_SUBMIT_CHANGESET_URL,_0x41c20c,_0x4c2b3b);try{await this[_0x5cb6cd(0x187)][_0x5cb6cd(0x43e)](_0x516673,{'body':_0x5cc30e});}catch(_0x5c84ba){throw this[_0x5cb6cd(0x11f)]['error']('[CollaborationSession]','submit\x20changeset\x20error!'),_0x5c84ba;}}async[_0x43e0c9(0x28b)](_0xd8f82){var _0x1dd193=_0x43e0c9;const {unitID:_0x529b0e,from:_0xbec9c8,to:_0x25f28c,unitType:_0x35d45c}=_0xd8f82[_0x1dd193(0x14c)];return(await this[_0x1dd193(0x393)][_0x1dd193(0xfc)]({'metadata':void 0x0},{'unitID':_0x529b0e,'type':_0x35d45c,'from':_0xbec9c8,'to':_0x25f28c}))[_0x1dd193(0x3e9)];}},__name(_a,_0x43e0c9(0x39c)),_a);CollaborationSocketService=__decorateClass$i([__decorateParam$i(0x0,Inject(Injector)),__decorateParam$i(0x1,Inject(HTTPService)),__decorateParam$i(0x2,IConfigService),__decorateParam$i(0x3,ILogService),__decorateParam$i(0x4,ISnapshotServerService)],CollaborationSocketService);const TELEMETRY_COLLABORATION_NEW_CHANGESET=_0x43e0c9(0x2cc);function summaryChangesetSize(_0x4883c3){var _0x5d9e4c=_0x43e0c9;return JSON[_0x5d9e4c(0xff)](_0x4883c3)['length'];}__name(summaryChangesetSize,_0x43e0c9(0x2fb));const _CommentService=class _CommentService{constructor(){var _0x5c10d1=_0x43e0c9;__publicField(this,_0x5c10d1(0x184),new Subject()),__publicField(this,_0x5c10d1(0x443),this[_0x5c10d1(0x184)][_0x5c10d1(0x37f)]());}[_0x43e0c9(0x3c2)](_0x54d623){var _0x1d4858=_0x43e0c9;this[_0x1d4858(0x184)][_0x1d4858(0x2e5)](_0x54d623);}};__name(_CommentService,'CommentService');let CommentService=_CommentService;var __defProp$h=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc$h=Object['getOwnPropertyDescriptor'],__decorateClass$h=__name((_0x32401c,_0x11f8a1,_0x17322e,_0x4f2e85)=>{var _0x49dd1f=_0x43e0c9;for(var _0xba6153=_0x4f2e85>0x1?void 0x0:_0x4f2e85?__getOwnPropDesc$h(_0x11f8a1,_0x17322e):_0x11f8a1,_0x2a8116=_0x32401c[_0x49dd1f(0x233)]-0x1,_0xea1a10;_0x2a8116>=0x0;_0x2a8116--)(_0xea1a10=_0x32401c[_0x2a8116])&&(_0xba6153=(_0x4f2e85?_0xea1a10(_0x11f8a1,_0x17322e,_0xba6153):_0xea1a10(_0xba6153))||_0xba6153);return _0x4f2e85&&_0xba6153&&__defProp$h(_0x11f8a1,_0x17322e,_0xba6153),_0xba6153;},'__decorateClass$h'),__decorateParam$h=__name((_0x192757,_0x379e89)=>(_0x33864b,_0x522999)=>_0x379e89(_0x33864b,_0x522999,_0x192757),'__decorateParam$h'),_a2;let MemberService=(_a2=class extends Disposable{constructor(_0x1c876b,_0x180d5b){var _0x2c2455=_0x43e0c9;super(),__publicField(this,_0x2c2455(0x11b),new Map()),__publicField(this,_0x2c2455(0x444),new Subject()),(this[_0x2c2455(0x330)]=_0x1c876b,this[_0x2c2455(0x370)]=_0x180d5b,this[_0x2c2455(0x18f)](merge(this[_0x2c2455(0x330)][_0x2c2455(0x33a)](UniverInstanceType[_0x2c2455(0x202)])[_0x2c2455(0x1f0)](map(_0x176857=>_0x176857[_0x2c2455(0x2cb)]())),this['_univerInstanceService'][_0x2c2455(0x33a)](UniverInstanceType[_0x2c2455(0x199)])[_0x2c2455(0x1f0)](map(_0x343a48=>_0x343a48[_0x2c2455(0x2cb)]())),this[_0x2c2455(0x330)][_0x2c2455(0x33a)](UniverInstanceType[_0x2c2455(0x2ee)])[_0x2c2455(0x1f0)](map(_0x45228c=>_0x45228c[_0x2c2455(0x2cb)]())))[_0x2c2455(0x352)](_0x23dc57=>this[_0x2c2455(0xfe)](_0x23dc57))));}[_0x43e0c9(0x300)](_0x480eed){var _0x37316d=_0x43e0c9;return this[_0x37316d(0x11b)][_0x37316d(0x3ae)](_0x480eed)?of(this['_roomMembers'][_0x37316d(0x1c2)](_0x480eed)):this[_0x37316d(0x444)][_0x37316d(0x1f0)](map(_0x52f8f1=>{var _0x233e56=_0x37316d;if(_0x52f8f1===_0x480eed)return this[_0x233e56(0x11b)]['get'](_0x52f8f1);}));}[_0x43e0c9(0x1b9)](_0x114650){var _0x11a7a7=_0x43e0c9;this[_0x11a7a7(0x370)][_0x11a7a7(0x1b9)](_0x114650);}[_0x43e0c9(0x3a4)](){var _0x14c083=_0x43e0c9;return this['_userManagerService'][_0x14c083(0x3a4)]();}[_0x43e0c9(0x25f)](_0x28f77f,_0x1bb357){var _0x11f726=_0x43e0c9;let _0x91238e=this[_0x11f726(0x11b)]['get'](_0x28f77f);_0x91238e||(_0x91238e=new RoomMember(),this[_0x11f726(0x11b)][_0x11f726(0x116)](_0x28f77f,_0x91238e),this[_0x11f726(0x444)][_0x11f726(0x2e5)](_0x28f77f)),_0x91238e[_0x11f726(0x25f)](_0x1bb357);}[_0x43e0c9(0x3c3)](_0x170098,_0x1b45e9){var _0x1f1f68=_0x43e0c9;const _0x51204c=this[_0x1f1f68(0x11b)][_0x1f1f68(0x1c2)](_0x170098);_0x51204c&&_0x51204c[_0x1f1f68(0x3c3)](_0x1b45e9);}[_0x43e0c9(0x295)](_0xbc6642){var _0x5d2014=_0x43e0c9;return this[_0x5d2014(0x11b)]['get'](_0xbc6642);}[_0x43e0c9(0x43d)](_0x32202e,_0x1b50ac){var _0x3282a0=_0x43e0c9;const _0x2acd32=this[_0x3282a0(0x11b)][_0x3282a0(0x1c2)](_0x32202e);if(_0x2acd32)return _0x2acd32['getMember'](_0x1b50ac);}[_0x43e0c9(0xfe)](_0x46e0c9){var _0x389dc4=_0x43e0c9;const _0x34e331=this[_0x389dc4(0x11b)]['get'](_0x46e0c9);_0x34e331&&(_0x34e331[_0x389dc4(0x25b)](),this['_roomMembers'][_0x389dc4(0x36b)](_0x46e0c9));}[_0x43e0c9(0x25b)](){var _0x42bb08=_0x43e0c9;this[_0x42bb08(0x11b)][_0x42bb08(0x392)](_0x9d96bb=>_0x9d96bb[_0x42bb08(0x25b)]()),this[_0x42bb08(0x11b)][_0x42bb08(0x1bf)](),this[_0x42bb08(0x444)]['complete']();}},__name(_a2,'MemberService'),_a2);MemberService=__decorateClass$h([__decorateParam$h(0x0,IUniverInstanceService),__decorateParam$h(0x1,Inject(UserManagerService))],MemberService);const _RoomMember=class _RoomMember extends Disposable{constructor(){var _0x402e2c=_0x43e0c9;super(...arguments),__publicField(this,'_members',new Map()),__publicField(this,_0x402e2c(0x359),new BehaviorSubject(this[_0x402e2c(0x13c)])),__publicField(this,_0x402e2c(0x40b),this[_0x402e2c(0x359)]['asObservable']());}['dispose'](){var _0x3697cc=_0x43e0c9;this[_0x3697cc(0x13c)][_0x3697cc(0x1bf)]();}['updateMember'](_0x3441a4){var _0x4dadf0=_0x43e0c9;this[_0x4dadf0(0x13c)][_0x4dadf0(0x116)](_0x3441a4[_0x4dadf0(0x3ea)],_0x3441a4),this[_0x4dadf0(0x372)]();}[_0x43e0c9(0x3c3)](_0x630261){var _0x228f98=_0x43e0c9;this[_0x228f98(0x13c)]['delete'](_0x630261);}[_0x43e0c9(0x43d)](_0x4f8a62){var _0x3bb6c8=_0x43e0c9;return this[_0x3bb6c8(0x13c)]['get'](_0x4f8a62);}['getAllMembers'](){var _0x376720=_0x43e0c9;return Array['from'](this['_members'][_0x376720(0x324)]());}[_0x43e0c9(0x372)](){var _0x3f21cb=_0x43e0c9;this['_members$'][_0x3f21cb(0x2e5)](this[_0x3f21cb(0x13c)]);}};__name(_RoomMember,_0x43e0c9(0x325));let RoomMember=_RoomMember;function _0x5029(_0x140c0a,_0x8b7373){var _0x2fa050=_0x2fa0();return _0x5029=function(_0x5029c0,_0x2908f0){_0x5029c0=_0x5029c0-0xf1;var _0xcf31ea=_0x2fa050[_0x5029c0];return _0xcf31ea;},_0x5029(_0x140c0a,_0x8b7373);}var __defProp$g=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc$g=Object[_0x43e0c9(0x33e)],__decorateClass$g=__name((_0x206632,_0x1efe22,_0x56e2c6,_0x381a22)=>{var _0x438899=_0x43e0c9;for(var _0x287218=_0x381a22>0x1?void 0x0:_0x381a22?__getOwnPropDesc$g(_0x1efe22,_0x56e2c6):_0x1efe22,_0x14efea=_0x206632[_0x438899(0x233)]-0x1,_0x4a9bb3;_0x14efea>=0x0;_0x14efea--)(_0x4a9bb3=_0x206632[_0x14efea])&&(_0x287218=(_0x381a22?_0x4a9bb3(_0x1efe22,_0x56e2c6,_0x287218):_0x4a9bb3(_0x287218))||_0x287218);return _0x381a22&&_0x287218&&__defProp$g(_0x1efe22,_0x56e2c6,_0x287218),_0x287218;},_0x43e0c9(0x23b)),__decorateParam$g=__name((_0x35b628,_0xdc3206)=>(_0x582ca0,_0x1e04ec)=>_0xdc3206(_0x582ca0,_0x1e04ec,_0x35b628),_0x43e0c9(0x108)),SessionStatus=(_0x359ea0=>(_0x359ea0[_0x359ea0[_0x43e0c9(0x274)]=0x0]='IDLE',_0x359ea0[_0x359ea0[_0x43e0c9(0x153)]=0x1]=_0x43e0c9(0x153),_0x359ea0[_0x359ea0[_0x43e0c9(0x2be)]=0x2]=_0x43e0c9(0x2be),_0x359ea0[_0x359ea0[_0x43e0c9(0x310)]=0x3]=_0x43e0c9(0x310),_0x359ea0))(SessionStatus||{});const FailedReason={[CmdRspCode[_0x43e0c9(0x1f3)]]:_0x43e0c9(0x1d6),[CmdRspCode[_0x43e0c9(0x163)]]:_0x43e0c9(0x335),[CmdRspCode[_0x43e0c9(0x2e4)]]:'session.room-not-exists',[CmdRspCode['JOIN_ROOM_PERMISSION_DENIED']]:_0x43e0c9(0x3b3),[CmdRspCode[_0x43e0c9(0x384)]]:'session.room-cnt-exceeds'};var _a3;let CollaborationSession=(_a3=class extends RxDisposable{constructor(_0x3d06d3,_0x1d7708,_0x24697f,_0x296fcf,_0x200e51,_0x394bbc,_0x4fb6f4,_0x4fe2b2,_0x533ee0){var _0x3064d0=_0x43e0c9;super(),__publicField(this,_0x3064d0(0x36c),new BehaviorSubject(0x0)),__publicField(this,'sessionStatus$',this[_0x3064d0(0x36c)][_0x3064d0(0x37f)]()),__publicField(this,_0x3064d0(0x228),new Subject()),__publicField(this,_0x3064d0(0x14f),this['_event$'][_0x3064d0(0x37f)]()),__publicField(this,_0x3064d0(0x2f0)),__publicField(this,_0x3064d0(0x107)),__publicField(this,'_collaborationTimeoutTimer'),__publicField(this,'_shouldReportTelemetry',!0x1),__publicField(this,_0x3064d0(0x391),null),(this[_0x3064d0(0x104)]=_0x3d06d3,this['_logService']=_0x24697f,this['_configService']=_0x296fcf,this['_localeService']=_0x200e51,this[_0x3064d0(0x252)]=_0x394bbc,this[_0x3064d0(0x254)]=_0x4fb6f4,this['_collaborationUIEventService']=_0x4fe2b2,this[_0x3064d0(0x23e)]=_0x533ee0,this[_0x3064d0(0x237)]=!!this[_0x3064d0(0x23e)],_0x1d7708[_0x3064d0(0x1f0)](takeUntil(this[_0x3064d0(0x34a)]))[_0x3064d0(0x352)](_0x5798ec=>{var _0xe9982=_0x3064d0,_0x340089;typeof _0x5798ec>'u'||(this[_0xe9982(0x2f0)]=_0x5798ec,_0x5798ec?(this['_joinRoom'](_0x5798ec),this['_socketMessageSubscription']=_0x5798ec[_0xe9982(0x427)][_0xe9982(0x352)](_0x4815d1=>{var _0x8823c3=_0xe9982;_0x4815d1['routeKey']===this[_0x8823c3(0x104)]&&this['_onCombEvent'](_0x4815d1);})):(this[_0xe9982(0x172)](),this[_0xe9982(0x36c)][_0xe9982(0x2e5)](0x2),(_0x340089=this['_socketMessageSubscription'])==null||_0x340089[_0xe9982(0x11c)](),this[_0xe9982(0x107)]=null));}));}get[_0x43e0c9(0x2ea)](){var _0x59ca35=_0x43e0c9;return this[_0x59ca35(0x36c)]['getValue']();}['getMemberID'](){var _0x3a0850=_0x43e0c9,_0x1aa253,_0x183b2d;return(_0x183b2d=(_0x1aa253=this[_0x3a0850(0x2f0)])==null?void 0x0:_0x1aa253['memberID'])!=null?_0x183b2d:null;}[_0x43e0c9(0x25b)](){var _0x570699=_0x43e0c9;super['dispose'](),this['dispose$'][_0x570699(0x2e5)](),this[_0x570699(0x34a)][_0x570699(0x207)]();}[_0x43e0c9(0x214)](){var _0x129353=_0x43e0c9,_0x54862c,_0x3dacf0;this[_0x129353(0x172)](),(_0x54862c=this[_0x129353(0x2f0)])==null||_0x54862c[_0x129353(0x313)]({'cmd':CombCmd[_0x129353(0x190)],'data':{'roomID':this['_unitID']}}),(_0x3dacf0=this[_0x129353(0x2f0)])==null||_0x3dacf0[_0x129353(0x214)](),this[_0x129353(0x228)]['complete'](),this['_sessionStatus$'][_0x129353(0x207)](),this[_0x129353(0x25b)]();}[_0x43e0c9(0x41f)](_0x572e94){var _0x4faf4c=_0x43e0c9;_0x572e94[_0x4faf4c(0x1fb)]===CombCmd['JOIN']?this[_0x4faf4c(0x3cf)](_0x572e94):_0x572e94[_0x4faf4c(0x1fb)]===CombCmd[_0x4faf4c(0x1d3)]&&this[_0x4faf4c(0x328)](_0x572e94);}[_0x43e0c9(0x27b)](_0x50f299){var _0x294c97=_0x43e0c9;this[_0x294c97(0x36c)]['next'](0x1),_0x50f299['send']({'cmd':CombCmd['JOIN'],'routeKey':this[_0x294c97(0x104)],'routeType':'','data':{'rooms':[{'roomID':this[_0x294c97(0x104)]}]}});}['_onJoinRoomEvent'](_0x4b6f4f){var _0x402f94=_0x43e0c9,_0x115820;if(_0x4b6f4f[_0x402f94(0x2a6)]in FailedReason){this[_0x402f94(0x127)][_0x402f94(0x43a)]({'id':CollaborationUIEventId['JOIN_ROOM_FAILED'],'data':FailedReason[_0x4b6f4f[_0x402f94(0x2a6)]]}),this[_0x402f94(0x36c)][_0x402f94(0x2e5)](0x2);return;}this[_0x402f94(0x36c)][_0x402f94(0x2e5)](0x3);const _0x11e49e=(_0x115820=_0x4b6f4f[_0x402f94(0x14c)]['roomInfos'][this[_0x402f94(0x104)]])==null?void 0x0:_0x115820[_0x402f94(0x417)];_0x11e49e&&_0x11e49e['forEach'](_0x1f2b80=>this['_memberService'][_0x402f94(0x25f)](this[_0x402f94(0x104)],_0x1f2b80));}['_onRecvEvent'](_0x27fa21){var _0x255a8f=_0x43e0c9;try{const _0x6889d4=_0x27fa21[_0x255a8f(0x14c)];switch(_0x6889d4[_0x255a8f(0x25d)]){case CollaborationEvent[_0x255a8f(0x1c4)]:this[_0x255a8f(0x2c6)](_0x6889d4),this[_0x255a8f(0x228)][_0x255a8f(0x2e5)](_0x6889d4);break;case CollaborationEvent[_0x255a8f(0x2fe)]:this[_0x255a8f(0x2f6)](_0x6889d4),this['_event$'][_0x255a8f(0x2e5)](_0x6889d4);break;case CollaborationEvent[_0x255a8f(0x24c)]:case CollaborationEvent['CHANGESET_SHOULD_RETRY']:this[_0x255a8f(0x251)](),this['_clearCollaborationTimeoutTimer'](),this[_0x255a8f(0x228)]['next'](_0x6889d4);break;case CollaborationEvent[_0x255a8f(0x292)]:this[_0x255a8f(0x11f)]['error'](_0x255a8f(0x32b)+JSON[_0x255a8f(0xff)](_0x6889d4)),this[_0x255a8f(0x228)]['next'](_0x6889d4);break;case CollaborationEvent[_0x255a8f(0x11a)]:this[_0x255a8f(0x254)][_0x255a8f(0x3c2)](_0x6889d4[_0x255a8f(0x14c)]),this['_event$'][_0x255a8f(0x2e5)](_0x6889d4);break;default:this['_event$'][_0x255a8f(0x2e5)](_0x6889d4);}}catch(_0x21a2c7){this[_0x255a8f(0x11f)][_0x255a8f(0x1c8)](_0x21a2c7,_0x27fa21);}}[_0x43e0c9(0x2c6)](_0x32af5d){var _0x3c58b8=_0x43e0c9;this[_0x3c58b8(0x252)][_0x3c58b8(0x25f)](this[_0x3c58b8(0x104)],_0x32af5d[_0x3c58b8(0x14c)]);}['_onUserLeave'](_0x473b46){var _0x14b43e=_0x43e0c9;this[_0x14b43e(0x252)][_0x14b43e(0x3c3)](this[_0x14b43e(0x104)],_0x473b46['data'][_0x14b43e(0x3ea)]);}async[_0x43e0c9(0x313)](_0x2105f0,_0x29d5d3){var _0xa37cec=_0x43e0c9;if(this[_0xa37cec(0x2ea)]!==0x3||!this['_socket'])throw new Error(_0xa37cec(0x1fd));try{_0x2105f0[_0xa37cec(0x25d)]===CollaborationEvent[_0xa37cec(0x3e8)]&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0xa37cec(0x390)](_0x2105f0)),this['_socket'][_0xa37cec(0x313)]({'cmd':CombCmd[_0xa37cec(0x137)],'routeKey':_0x29d5d3,'routeType':'','data':_0x2105f0});}catch(_0x5c30cd){this[_0xa37cec(0x11f)][_0xa37cec(0x1c8)](_0x5c30cd);}}[_0x43e0c9(0x269)](){var _0x594f83=_0x43e0c9,_0x5e210c;this[_0x594f83(0x272)]=setTimeout(()=>{var _0x430a09=_0x594f83;this[_0x430a09(0x272)]=null,this[_0x430a09(0x127)][_0x430a09(0x43a)]({'id':CollaborationUIEventId['SUBMIT_CHANGESET_TIMEOUT']});},(_0x5e210c=this[_0x594f83(0x249)]['getConfig'](HEARTBEAT_TIMEOUT_KEY))!=null?_0x5e210c:DEFAULT_HEARTBEAT_TIMEOUT);}['_clearCollaborationTimeoutTimer'](){var _0x3cdd09=_0x43e0c9;this[_0x3cdd09(0x272)]&&(clearTimeout(this[_0x3cdd09(0x272)]),this[_0x3cdd09(0x272)]=null);}[_0x43e0c9(0x390)](_0x1fcad4){var _0xe945c4=_0x43e0c9;if(!this['_shouldReportTelemetry'])return;const {data:_0x23f518}=_0x1fcad4,{unitID:_0x2d0f81,changeset:_0x24d70d}=_0x23f518,{mutations:_0x40c9a3,type:_0x83db7d}=_0x24d70d;this[_0xe945c4(0x391)]={'unitId':_0x2d0f81,'type':_0x83db7d,'startTime':performance[_0xe945c4(0x1cb)](),'stopTime':0x0,'duration':0x0,'size':summaryChangesetSize(_0x40c9a3)};}[_0x43e0c9(0x251)](){var _0x49ffd7=_0x43e0c9;if(this[_0x49ffd7(0x237)]){if(!this[_0x49ffd7(0x391)]){this['_logService']['error'](_0x49ffd7(0x197),_0x49ffd7(0x32f));return;}this[_0x49ffd7(0x391)][_0x49ffd7(0x2c2)]=performance[_0x49ffd7(0x1cb)](),this[_0x49ffd7(0x391)][_0x49ffd7(0xf4)]=this[_0x49ffd7(0x391)]['stopTime']-this[_0x49ffd7(0x391)]['startTime'],this[_0x49ffd7(0x23e)][_0x49ffd7(0x3a3)](TELEMETRY_COLLABORATION_NEW_CHANGESET,this[_0x49ffd7(0x391)]),this['_telemetryInfo']=null;}}[_0x43e0c9(0x172)](){var _0x56a98e=_0x43e0c9;this[_0x56a98e(0x391)]=null;}},__name(_a3,'CollaborationSession'),_a3);CollaborationSession=__decorateClass$g([__decorateParam$g(0x2,ILogService),__decorateParam$g(0x3,IConfigService),__decorateParam$g(0x4,Inject(LocaleService)),__decorateParam$g(0x5,Inject(MemberService)),__decorateParam$g(0x6,Inject(CommentService)),__decorateParam$g(0x7,Inject(CollaborationUIEventService)),__decorateParam$g(0x8,Optional(ITelemetryService))],CollaborationSession);var __defProp$f=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc$f=Object[_0x43e0c9(0x33e)],__decorateClass$f=__name((_0x29d4be,_0x46151d,_0x415ae5,_0x31e18b)=>{var _0x50cc74=_0x43e0c9;for(var _0x317281=_0x31e18b>0x1?void 0x0:_0x31e18b?__getOwnPropDesc$f(_0x46151d,_0x415ae5):_0x46151d,_0x2ac5e8=_0x29d4be[_0x50cc74(0x233)]-0x1,_0x588b9f;_0x2ac5e8>=0x0;_0x2ac5e8--)(_0x588b9f=_0x29d4be[_0x2ac5e8])&&(_0x317281=(_0x31e18b?_0x588b9f(_0x46151d,_0x415ae5,_0x317281):_0x588b9f(_0x317281))||_0x317281);return _0x31e18b&&_0x317281&&__defProp$f(_0x46151d,_0x415ae5,_0x317281),_0x317281;},_0x43e0c9(0x263)),__decorateParam$f=__name((_0x4903e1,_0x130926)=>(_0x1b26bc,_0x124e10)=>_0x130926(_0x1b26bc,_0x124e10,_0x4903e1),'__decorateParam$f'),_a4;let CollaborationSessionService=(_a4=class extends Disposable{constructor(_0x148ec9,_0x1d765e,_0x4b8929,_0x3e6c3a,_0x1cb48f,_0x389b10,_0x2c74c5){var _0x30e582=_0x43e0c9;super(),__publicField(this,'_socket$',new BehaviorSubject(void 0x0)),__publicField(this,_0x30e582(0x41b),this[_0x30e582(0x42f)]['asObservable']()),__publicField(this,_0x30e582(0x10e),null),__publicField(this,_0x30e582(0x332),new Map()),__publicField(this,_0x30e582(0x327),new BehaviorSubject(SessionStatus[_0x30e582(0x274)])),__publicField(this,_0x30e582(0x26a),this[_0x30e582(0x327)][_0x30e582(0x37f)]()),__publicField(this,_0x30e582(0x157),!0x1),__publicField(this,_0x30e582(0x1f7)),__publicField(this,_0x30e582(0x17b),0x0),__publicField(this,'_sendHeartbeatTimer'),__publicField(this,'_timeoutTimer'),(this[_0x30e582(0x403)]=_0x148ec9,this[_0x30e582(0x11f)]=_0x1d765e,this[_0x30e582(0x249)]=_0x4b8929,this['_socketService']=_0x3e6c3a,this[_0x30e582(0x141)]=_0x1cb48f,this[_0x30e582(0x127)]=_0x389b10,this['_networkConditionService']=_0x2c74c5,this[_0x30e582(0x16c)]());}get[_0x43e0c9(0x2f0)](){var _0x5303a6=_0x43e0c9;return this[_0x5303a6(0x42f)][_0x5303a6(0x10c)]();}[_0x43e0c9(0x16c)](){var _0x3c56ae=_0x43e0c9;this[_0x3c56ae(0x2b9)]&&this[_0x3c56ae(0x18f)](this[_0x3c56ae(0x2b9)][_0x3c56ae(0x3be)][_0x3c56ae(0x352)](_0x5b6d82=>{var _0x346a27=_0x3c56ae;_0x5b6d82&&!this[_0x346a27(0x2f0)]&&this['reconnect'](),_0x5b6d82||this[_0x346a27(0x171)]();}));}[_0x43e0c9(0x25b)](){var _0x133364=_0x43e0c9;super[_0x133364(0x25b)](),this[_0x133364(0x332)][_0x133364(0x392)](_0x50420d=>_0x50420d[_0x133364(0x25b)]()),this[_0x133364(0x332)][_0x133364(0x1bf)](),this[_0x133364(0x327)][_0x133364(0x207)]();}async[_0x43e0c9(0x32d)](_0x26efa2){var _0x4a6614=_0x43e0c9;if(this[_0x4a6614(0x332)][_0x4a6614(0x3ae)](_0x26efa2))return this[_0x4a6614(0x332)][_0x4a6614(0x1c2)](_0x26efa2);this[_0x4a6614(0x42b)]();const _0x3b0873=this['_injector'][_0x4a6614(0x39f)](CollaborationSession,_0x26efa2,this[_0x4a6614(0x42f)]['asObservable']());return this[_0x4a6614(0x332)][_0x4a6614(0x116)](_0x26efa2,_0x3b0873),_0x3b0873;}['closeSession'](_0x2175ea){var _0x5e9e63=_0x43e0c9,_0x27b8e1;const _0x20c764=this[_0x5e9e63(0x332)][_0x5e9e63(0x1c2)](_0x2175ea);_0x20c764&&(this['_sessions'][_0x5e9e63(0x36b)](_0x2175ea),_0x20c764['close']()),this['_sessions']['size']||(_0x27b8e1=this['_socket'])==null||_0x27b8e1['close']();}[_0x43e0c9(0x1ca)](){var _0x28340b=_0x43e0c9;this['_retryCount']=0x0,this['_retryConnectingTimer']!=null&&(clearTimeout(this[_0x28340b(0x1f7)]),this[_0x28340b(0x1f7)]=null),this[_0x28340b(0x1b2)]();}async[_0x43e0c9(0x446)](){var _0x5a5b94=_0x43e0c9,_0x415998,_0x4ac9c7,_0x5d3aec;const _0x6f62a7=this['_configService'][_0x5a5b94(0x15f)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY),_0xc6b9f0=(_0x415998=_0x6f62a7==null?void 0x0:_0x6f62a7['wsSessionTicketUrl'])!=null?_0x415998:DEFAULT_WS_SESSION_TICKET_URL;return(_0x5d3aec=(_0x4ac9c7=(await this[_0x5a5b94(0x141)]['get'](_0xc6b9f0,{'headers':{'Content-Type':'application/json'}}))[_0x5a5b94(0x415)])==null?void 0x0:_0x4ac9c7[_0x5a5b94(0x2d5)])!=null?_0x5d3aec:'';}['_createSocketURL'](_0x2466d2){var _0x504f8d=_0x43e0c9,_0x42483d,_0x3ed9da;const _0x38d716=this['_configService'][_0x504f8d(0x15f)](COLLAB_WEB_SOCKET_URL_KEY),_0x4349d0=this[_0x504f8d(0x249)][_0x504f8d(0x15f)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY),_0x5e9950=(_0x3ed9da=(_0x42483d=_0x4349d0==null?void 0x0:_0x4349d0[_0x504f8d(0x342)])!=null?_0x42483d:_0x38d716)!=null?_0x3ed9da:DEFAULT_COLLAB_WEB_SOCKET_URL,_0x9795fd=typeof window>'u'?new URL(_0x5e9950):new URL(_0x5e9950,window[_0x504f8d(0x121)]['origin']);_0x9795fd[_0x504f8d(0x134)][_0x504f8d(0x116)](_0x504f8d(0x2a3),_0x2466d2);const _0x460a4b=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x504f8d(0x121)][_0x504f8d(0x337)]);return _0x460a4b[_0x504f8d(0x1c2)](_0x504f8d(0x205))&&_0x9795fd[_0x504f8d(0x134)][_0x504f8d(0x116)]('runId',_0x460a4b[_0x504f8d(0x1c2)](_0x504f8d(0x205))),_0x9795fd[_0x504f8d(0x22b)]();}async[_0x43e0c9(0x1ee)](){var _0xd8969a=_0x43e0c9;const _0x1b3cb2=await this[_0xd8969a(0x446)](),_0x17e2bc=this[_0xd8969a(0x15a)](_0x1b3cb2),_0xe6eac1=this['_socketService'][_0xd8969a(0x29c)](_0x17e2bc);return this['_candidateSocket']=_0xe6eac1,_0xe6eac1;}async[_0x43e0c9(0x42b)](){var _0x24d1b0=_0x43e0c9,_0x3356ca,_0x58cc7a;try{const _0x248276=(_0x58cc7a=(_0x3356ca=this[_0x24d1b0(0x2f0)])!=null?_0x3356ca:this[_0x24d1b0(0x10e)])!=null?_0x58cc7a:await this[_0x24d1b0(0x1ee)]();if(_0x248276){const _0x3a7508=_0x248276['send'];_0x248276[_0x24d1b0(0x313)]=_0x24c64c=>(this['_rescheduleHeartbeat'](),_0x3a7508[_0x24d1b0(0x2ba)](_0x248276,[_0x24c64c])),_0x248276[_0x24d1b0(0x427)][_0x24d1b0(0x352)](_0x36e502=>this['_onMessage'](_0x248276,_0x36e502)),_0x248276[_0x24d1b0(0x33d)][_0x24d1b0(0x1f0)](take(0x1))['subscribe'](_0x28be5d=>this[_0x24d1b0(0x11f)][_0x24d1b0(0x1c8)](_0x24d1b0(0x283),_0x28be5d)),_0x248276[_0x24d1b0(0x279)]['pipe'](take(0x1))[_0x24d1b0(0x352)](()=>{var _0x3aeefa=_0x24d1b0;this[_0x3aeefa(0x3f9)](_0x248276);}),_0x248276['close$'][_0x24d1b0(0x1f0)](take(0x1))[_0x24d1b0(0x352)](_0x29e9cc=>{var _0x3bd28c=_0x24d1b0;this['_logService']['debug'](_0x3bd28c(0x35a),_0x3bd28c(0x421),_0x29e9cc),this[_0x3bd28c(0x307)]();});}}catch(_0xb60ad7){this[_0x24d1b0(0x11f)][_0x24d1b0(0x1c8)](_0xb60ad7),this[_0x24d1b0(0x307)]();}}[_0x43e0c9(0x3f9)](_0x474e03){var _0x287a8e=_0x43e0c9;this[_0x287a8e(0x11f)]['debug'](_0x287a8e(0x35a),_0x287a8e(0x133)),_0x474e03[_0x287a8e(0x313)]({'cmd':CombCmd['HELLO']}),this[_0x287a8e(0x43c)]();}[_0x43e0c9(0x171)](){var _0x58bcd9=_0x43e0c9;this[_0x58bcd9(0x157)]=!0x1,this['_candidateSocket']=null,this['_status$'][_0x58bcd9(0x2e5)](SessionStatus['OFFLINE']),this[_0x58bcd9(0x42f)]['next'](null),this['_clearTimeoutTimer'](),this[_0x58bcd9(0x277)]();}[_0x43e0c9(0x307)](){var _0x3fcbd0=_0x43e0c9,_0x46a4dd;this[_0x3fcbd0(0x171)](),this[_0x3fcbd0(0x17b)]<((_0x46a4dd=this[_0x3fcbd0(0x249)][_0x3fcbd0(0x15f)](RETRY_CONNECTING_MAX_COUNT_KEY))!=null?_0x46a4dd:DEFAULT_RETRY_CONNECTING_MAX_COUNT)?(this['_collaborationUIEventService'][_0x3fcbd0(0x43a)]({'id':CollaborationUIEventId[_0x3fcbd0(0x135)]}),this[_0x3fcbd0(0x1b2)]()):this[_0x3fcbd0(0x127)][_0x3fcbd0(0x43a)]({'id':CollaborationUIEventId['SOCKET_FAILED']});}[_0x43e0c9(0x1b2)](){var _0x59ad26=_0x43e0c9,_0x52f7ac;const _0x27fa5d=this[_0x59ad26(0x17b)],_0xca128f=this[_0x59ad26(0x249)][_0x59ad26(0x15f)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY),_0x47d0b8=_0x27fa5d===0x0?0x0:((_0x52f7ac=_0xca128f==null?void 0x0:_0xca128f['retryConnectingInterval'])!=null?_0x52f7ac:DEFAULT_RETRY_CONNECTING_INTERVAL)*0x2**_0x27fa5d;this['_retryConnectingTimer']=setTimeout(()=>{var _0x12b694=_0x59ad26;clearTimeout(this[_0x12b694(0x1f7)]),this[_0x12b694(0x1f7)]=null,this[_0x12b694(0x42b)]();},_0x47d0b8),this['_retryCount']+=0x1;}[_0x43e0c9(0x101)](_0x18ca9b,_0x2f37be){var _0x2588b9=_0x43e0c9;const {cmd:_0x38d69a}=_0x2f37be;_0x38d69a===CombCmd[_0x2588b9(0x343)]&&!this[_0x2588b9(0x157)]&&(_0x18ca9b['memberID']=_0x2f37be['data'][_0x2588b9(0x3ea)],this['_socket$'][_0x2588b9(0x2e5)](_0x18ca9b),this['_status$'][_0x2588b9(0x2e5)](SessionStatus[_0x2588b9(0x310)]),this['_socketReady']=!0x0,this[_0x2588b9(0x10e)]=null),_0x38d69a===CombCmd['HEARTBEAT']&&this[_0x2588b9(0x229)](),this['_rescheduleHeartbeat']();}[_0x43e0c9(0x43c)](){var _0x547106=_0x43e0c9,_0x1e1e18;this['_clearHeartbeatTimer'](),this['_sendHeartbeatTimer']=setTimeout(()=>this[_0x547106(0x2df)](),(_0x1e1e18=this[_0x547106(0x249)][_0x547106(0x15f)](HEARTBEAT_INTERVAL_KEY))!=null?_0x1e1e18:DEFAULT_HEARTBEAT_INTERVAL);}[_0x43e0c9(0x2df)](){var _0x14d223=_0x43e0c9;this[_0x14d223(0x2f0)][_0x14d223(0x313)]({'cmd':CombCmd['HEARTBEAT']}),this[_0x14d223(0x3a5)]();}[_0x43e0c9(0x3a5)](){var _0x3a6fdb=_0x43e0c9,_0x57de10;this[_0x3a6fdb(0x429)]=setTimeout(()=>this['_onConnectionFailed'](),(_0x57de10=this[_0x3a6fdb(0x249)][_0x3a6fdb(0x15f)](HEARTBEAT_TIMEOUT_KEY))!=null?_0x57de10:DEFAULT_HEARTBEAT_TIMEOUT);}[_0x43e0c9(0x277)](){var _0x25695e=_0x43e0c9;this[_0x25695e(0x37b)]!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this[_0x25695e(0x37b)]=null);}['_clearTimeoutTimer'](){var _0x174c7d=_0x43e0c9;this[_0x174c7d(0x429)]!=null&&(clearTimeout(this[_0x174c7d(0x429)]),this[_0x174c7d(0x429)]=null);}},__name(_a4,_0x43e0c9(0x37d)),_a4);CollaborationSessionService=__decorateClass$f([__decorateParam$f(0x0,Inject(Injector)),__decorateParam$f(0x1,ILogService),__decorateParam$f(0x2,IConfigService),__decorateParam$f(0x3,ICollaborationSocketService),__decorateParam$f(0x4,Inject(HTTPService)),__decorateParam$f(0x5,Inject(CollaborationUIEventService)),__decorateParam$f(0x6,Optional(INetworkConditionService))],CollaborationSessionService);const byteToHex=[];for(let i=0x0;i<0x100;++i)byteToHex['push']((i+0x100)[_0x43e0c9(0x22b)](0x10)[_0x43e0c9(0x1ea)](0x1));function unsafeStringify(_0xf788b2,_0x218a74=0x0){var _0x26b34a=_0x43e0c9;return(byteToHex[_0xf788b2[_0x218a74+0x0]]+byteToHex[_0xf788b2[_0x218a74+0x1]]+byteToHex[_0xf788b2[_0x218a74+0x2]]+byteToHex[_0xf788b2[_0x218a74+0x3]]+'-'+byteToHex[_0xf788b2[_0x218a74+0x4]]+byteToHex[_0xf788b2[_0x218a74+0x5]]+'-'+byteToHex[_0xf788b2[_0x218a74+0x6]]+byteToHex[_0xf788b2[_0x218a74+0x7]]+'-'+byteToHex[_0xf788b2[_0x218a74+0x8]]+byteToHex[_0xf788b2[_0x218a74+0x9]]+'-'+byteToHex[_0xf788b2[_0x218a74+0xa]]+byteToHex[_0xf788b2[_0x218a74+0xb]]+byteToHex[_0xf788b2[_0x218a74+0xc]]+byteToHex[_0xf788b2[_0x218a74+0xd]]+byteToHex[_0xf788b2[_0x218a74+0xe]]+byteToHex[_0xf788b2[_0x218a74+0xf]])[_0x26b34a(0x261)]();}__name(unsafeStringify,'unsafeStringify');let getRandomValues;const rnds8=new Uint8Array(0x10);function rng(){var _0xbe505d=_0x43e0c9;if(!getRandomValues){if(typeof crypto>'u'||!crypto[_0xbe505d(0x2b7)])throw new Error(_0xbe505d(0x30e));getRandomValues=crypto[_0xbe505d(0x2b7)][_0xbe505d(0x37e)](crypto);}return getRandomValues(rnds8);}__name(rng,_0x43e0c9(0x334));const randomUUID=typeof crypto<'u'&&crypto[_0x43e0c9(0x376)]&&crypto[_0x43e0c9(0x376)]['bind'](crypto),native={'randomUUID':randomUUID};function v4(_0x58876b,_0x56a43c,_0x594e65){var _0x3ea7a0=_0x43e0c9,_0x2cdeb5,_0x3cd998,_0x5bc202;if(native[_0x3ea7a0(0x376)]&&!_0x58876b)return native[_0x3ea7a0(0x376)]();_0x58876b=_0x58876b||{};const _0x256bbc=(_0x5bc202=(_0x3cd998=_0x58876b['random'])!=null?_0x3cd998:(_0x2cdeb5=_0x58876b['rng'])==null?void 0x0:_0x2cdeb5[_0x3ea7a0(0x314)](_0x58876b))!=null?_0x5bc202:rng();if(_0x256bbc[_0x3ea7a0(0x233)]<0x10)throw new Error(_0x3ea7a0(0x397));return _0x256bbc[0x6]=_0x256bbc[0x6]&0xf|0x40,_0x256bbc[0x8]=_0x256bbc[0x8]&0x3f|0x80,unsafeStringify(_0x256bbc);}__name(v4,'v4');const ILocalCacheService=createIdentifier(_0x43e0c9(0x3d7));function getLocalCacheKey(_0x140470){var _0x28d8af=_0x43e0c9;return _0x28d8af(0x38b)+_0x140470;}__name(getLocalCacheKey,'getLocalCacheKey');var __defProp$e=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc$e=Object[_0x43e0c9(0x33e)],__decorateClass$e=__name((_0x31ea01,_0x17bf1b,_0xf88263,_0x6354bd)=>{var _0x13583b=_0x43e0c9;for(var _0x1bf5fe=_0x6354bd>0x1?void 0x0:_0x6354bd?__getOwnPropDesc$e(_0x17bf1b,_0xf88263):_0x17bf1b,_0x5eff44=_0x31ea01[_0x13583b(0x233)]-0x1,_0x12d900;_0x5eff44>=0x0;_0x5eff44--)(_0x12d900=_0x31ea01[_0x5eff44])&&(_0x1bf5fe=(_0x6354bd?_0x12d900(_0x17bf1b,_0xf88263,_0x1bf5fe):_0x12d900(_0x1bf5fe))||_0x1bf5fe);return _0x6354bd&&_0x1bf5fe&&__defProp$e(_0x17bf1b,_0xf88263,_0x1bf5fe),_0x1bf5fe;},'__decorateClass$e'),__decorateParam$e=__name((_0xae802e,_0x16479f)=>(_0x10eb79,_0x54ad60)=>_0x16479f(_0x10eb79,_0x54ad60,_0xae802e),'__decorateParam$e');function extractTargetFromFirstChangeset(_0x35174d){var _0x2c9855=_0x43e0c9;const {unitID:_0x4e3976,mutations:_0x4beb73}=_0x35174d;return{'unitId':_0x4e3976,'subUnitId':_0x4beb73[0x0][_0x2c9855(0xf1)][_0x2c9855(0x38a)]};}__name(extractTargetFromFirstChangeset,_0x43e0c9(0x255));var _a5;let SheetTransformSelectionsService=(_a5=class{constructor(_0x31b81f,_0x43240e,_0x567ff3){var _0x1e494b=_0x43e0c9;this[_0x1e494b(0x403)]=_0x31b81f,this[_0x1e494b(0x345)]=_0x43240e,this[_0x1e494b(0x180)]=_0x567ff3;}[_0x43e0c9(0x3d9)](_0x42dd72){var _0x139f93=_0x43e0c9,_0x361b84,_0x517f5c,_0x16998e,_0x20ff4e;const _0xe50158=this[_0x139f93(0x403)]['get'](SheetsSelectionsService),{unitId:_0xa625cb,subUnitId:_0x2efcb4}=extractTargetFromFirstChangeset(_0x42dd72),_0x450ad7=_0xe50158==null?void 0x0:_0xe50158['getWorkbookSelections'](_0xa625cb)[_0x139f93(0x395)](),_0x6f744a=(_0x517f5c=(_0x361b84=this[_0x139f93(0x180)][_0x139f93(0x38c)](_0xa625cb))==null?void 0x0:_0x361b84[_0x139f93(0x14a)]())==null?void 0x0:_0x517f5c[_0x139f93(0x234)]();if(_0x450ad7['length']===0x0||!_0xa625cb||!_0x2efcb4)return;const _0x37cfeb=[{'id':SetSelectionsOperation['id'],'params':{'unitId':_0xa625cb,'subUnitId':_0x6f744a,'selections':Tools[_0x139f93(0x399)](_0x450ad7)}}],_0x524c50=this[_0x139f93(0x345)][_0x139f93(0x346)](_0x42dd72,_0x37cfeb);if(!isTransformMutationsWithChangesetSuccess(_0x524c50))throw _0x524c50[_0x139f93(0x1c8)];const _0x2e10c1=(_0x20ff4e=(_0x16998e=_0x524c50[_0x139f93(0xfa)][0x0])==null?void 0x0:_0x16998e[_0x139f93(0xf1)])==null?void 0x0:_0x20ff4e[_0x139f93(0x378)];if(Array[_0x139f93(0x2a9)](_0x2e10c1)&&_0x2e10c1['length']){if(_0x2e10c1['length']===_0x37cfeb[0x0][_0x139f93(0xf1)][_0x139f93(0x378)]['length']&&_0x2e10c1[_0x139f93(0x291)]((_0x2b6a07,_0x95b2fc)=>Rectangle[_0x139f93(0x15d)](_0x2b6a07[_0x139f93(0x124)],_0x37cfeb[0x0][_0x139f93(0xf1)]['selections'][_0x95b2fc][_0x139f93(0x124)])))return;this[_0x139f93(0x403)]['get'](ICommandService)[_0x139f93(0x3f7)](SetSelectionsOperation['id'],{'unitId':_0xa625cb,'subUnitId':_0x6f744a,'selections':_0x2e10c1});}}},__name(_a5,_0x43e0c9(0x400)),_a5);SheetTransformSelectionsService=__decorateClass$e([__decorateParam$e(0x0,Inject(Injector)),__decorateParam$e(0x1,ITransformService),__decorateParam$e(0x2,IUniverInstanceService)],SheetTransformSelectionsService);const ISingleActiveUnitService=createIdentifier(_0x43e0c9(0x364));var UnitStatus=(_0x51e8e6=>(_0x51e8e6[_0x51e8e6[_0x43e0c9(0x2a8)]=0x0]=_0x43e0c9(0x2a8),_0x51e8e6[_0x51e8e6['OTHER_CLIENTS_EDITING']=0x1]=_0x43e0c9(0x350),_0x51e8e6))(UnitStatus||{});const SINGLE_CHANGESET_MUTATIONS=new Set([InsertSheetMutation['id']]);function assembleSheetChangeset(_0x3af773,_0x46bfde,_0x28b6ba,_0xeed378,_0x2b711c){var _0x5ed008=_0x43e0c9,_0x30db51,_0x513bf4,_0x432911,_0x12313d;const _0x3b8edb=[];for(const _0x277bbd of _0x3af773)if(SINGLE_CHANGESET_MUTATIONS[_0x5ed008(0x3ae)](_0x277bbd['id'])){if(_0x3b8edb[_0x5ed008(0x233)]>0x0)break;_0x3b8edb[_0x5ed008(0x119)](_0x277bbd);break;}else _0x3b8edb[_0x5ed008(0x119)](_0x277bbd);const _0x46ab0a=(_0x513bf4=(_0x30db51=_0x2b711c[_0x5ed008(0x3a4)]())==null?void 0x0:_0x30db51[_0x5ed008(0x369)])!=null?_0x513bf4:_0x5ed008(0x225),_0x3d2ac1=(_0x12313d=(_0x432911=_0x2b711c[_0x5ed008(0x3a4)]())==null?void 0x0:_0x432911[_0x5ed008(0x3ea)])!=null?_0x12313d:_0x5ed008(0x225);return{'changeset':{'unitID':_0x46bfde,'type':mapDocumentTypeToUniverType(_0x28b6ba['getUnitType'](_0x46bfde)),'baseRev':_0xeed378[_0x5ed008(0x1c0)](_0x46bfde),'revision':0x0,'userID':_0x46ab0a,'memberID':_0x3d2ac1,'mutations':_0x3b8edb},'pendingMutations':_0x3af773[_0x5ed008(0x1ea)](_0x3b8edb['length'])};}__name(assembleSheetChangeset,_0x43e0c9(0x31f));function assembleDocChangeset(_0xcec60b,_0x4e82e1,_0x6c5deb,_0xc135c6,_0x4e263c){var _0x21de3e=_0x43e0c9,_0x5b5dd5,_0x41ee0c,_0x3311e5,_0x563f43;const _0x37eb5c=[_0xcec60b['reduce']((_0x5252ac,_0x4d32b9)=>{var _0x35fe8d=_0x5029,_0x23584c;const {id:_0x33fbbf}=_0x5252ac,{id:_0x343e08,type:_0x2fe794}=_0x4d32b9,_0x45ef8a=(_0x23584c=_0x5252ac[_0x35fe8d(0xf1)])!=null?_0x23584c:{'actions':null},_0x4b4dc9=_0x4d32b9[_0x35fe8d(0xf1)];if(_0x33fbbf&&_0x33fbbf!==_0x343e08)throw new Error(_0x35fe8d(0x396)+_0x33fbbf+_0x35fe8d(0x181)+_0x343e08+'.');return{..._0x5252ac,'id':_0x343e08,'type':_0x2fe794,'params':{'unitId':_0x4b4dc9[_0x35fe8d(0x38e)],'textRanges':_0x4b4dc9[_0x35fe8d(0x439)],'actions':JSONX[_0x35fe8d(0x2b8)](_0x45ef8a['actions'],_0x4b4dc9[_0x35fe8d(0x146)])}};},{})],_0x53704a=(_0x41ee0c=(_0x5b5dd5=_0x4e263c[_0x21de3e(0x3a4)]())==null?void 0x0:_0x5b5dd5['userID'])!=null?_0x41ee0c:'unknown',_0x556dd4=(_0x563f43=(_0x3311e5=_0x4e263c[_0x21de3e(0x3a4)]())==null?void 0x0:_0x3311e5[_0x21de3e(0x3ea)])!=null?_0x563f43:'unknown';return{'changeset':{'unitID':_0x4e82e1,'type':mapDocumentTypeToUniverType(_0x6c5deb['getUnitType'](_0x4e82e1)),'baseRev':_0xc135c6[_0x21de3e(0x1c0)](_0x4e82e1),'revision':0x0,'userID':_0x53704a,'memberID':_0x556dd4,'mutations':_0x37eb5c},'pendingMutations':[]};}__name(assembleDocChangeset,_0x43e0c9(0x186));function createTimerObservable$(_0xc67490,_0x1a2611){var _0x5b455b=_0x43e0c9;const _0x2657c1=new ReplaySubject(0x1);return setTimeout(()=>_0x2657c1['next'](_0x1a2611),_0xc67490),_0x2657c1[_0x5b455b(0x37f)]()[_0x5b455b(0x1f0)](_0x4af4d9(0x1));}__name(createTimerObservable$,_0x43e0c9(0x3f3));const EmptyMutationInfo={'id':EmptyMutation['id'],'type':CommandType[_0x43e0c9(0x189)],'params':{}};var __defProp$d=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc$d=Object[_0x43e0c9(0x33e)],__decorateClass$d=__name((_0x39618b,_0x58dbc9,_0x502951,_0x5de7c0)=>{for(var _0x22b9d9=_0x5de7c0>0x1?void 0x0:_0x5de7c0?__getOwnPropDesc$d(_0x58dbc9,_0x502951):_0x58dbc9,_0x16743c=_0x39618b['length']-0x1,_0x310f9c;_0x16743c>=0x0;_0x16743c--)(_0x310f9c=_0x39618b[_0x16743c])&&(_0x22b9d9=(_0x5de7c0?_0x310f9c(_0x58dbc9,_0x502951,_0x22b9d9):_0x310f9c(_0x22b9d9))||_0x22b9d9);return _0x5de7c0&&_0x22b9d9&&__defProp$d(_0x58dbc9,_0x502951,_0x22b9d9),_0x22b9d9;},_0x43e0c9(0x410)),__decorateParam$d=__name((_0x2d5878,_0x873cd5)=>(_0x4ee517,_0x20949a)=>_0x873cd5(_0x4ee517,_0x20949a,_0x2d5878),_0x43e0c9(0x12a)),CollaborationStatus=(_0x4c3e17=>(_0x4c3e17[_0x43e0c9(0x1ed)]=_0x43e0c9(0x385),_0x4c3e17[_0x43e0c9(0x3a8)]=_0x43e0c9(0x3b5),_0x4c3e17[_0x43e0c9(0x280)]=_0x43e0c9(0x2af),_0x4c3e17[_0x43e0c9(0x27d)]=_0x43e0c9(0x3a7),_0x4c3e17['AWAITING_WITH_PENDING']=_0x43e0c9(0x22c),_0x4c3e17[_0x43e0c9(0x43f)]='fetch_missing',_0x4c3e17[_0x43e0c9(0x2a0)]=_0x43e0c9(0x2ed),_0x4c3e17[_0x43e0c9(0x2be)]=_0x43e0c9(0x2c8),_0x4c3e17))(CollaborationStatus||{});const MAX_RETRY_TIMEOUT=0xea60,_CollaborationState=class _CollaborationState{constructor(_0x382919,_0x20adf1,_0x3d532b,_0x5f465d,_0x739b97,_0xf939d3,_0x5bb981,_0x1970e2,_0x3eadae){var _0xa8520e=_0x43e0c9;__publicField(this,_0xa8520e(0x20d),null),__publicField(this,_0xa8520e(0x1c5),[]),(this['unitID']=_0x382919,this['type']=_0x20adf1,this[_0xa8520e(0x3bd)]=_0x739b97,this[_0xa8520e(0x1ae)]=_0xf939d3,this['_undoRedoService']=_0x5bb981,this[_0xa8520e(0x3c0)]=_0x1970e2,this[_0xa8520e(0x289)]=_0x3eadae,this['_awaitingChangeset']=_0x3d532b,this['_pendingMutations']=_0x5f465d);}[_0x43e0c9(0x194)](_0x4f0b11){var _0x167e32=_0x43e0c9;const _0x49cb42=this['_revisionService'][_0x167e32(0x1c0)](this[_0x167e32(0x442)]);return _0x4f0b11[_0x167e32(0x267)]>_0x49cb42+0x1?(this[_0x167e32(0x3bd)][_0x167e32(0x195)]({'from':_0x49cb42,'to':_0x4f0b11[_0x167e32(0x267)]-0x1}),!0x0):!0x1;}[_0x43e0c9(0x111)](_0x53b7ef){var _0x229b67=_0x43e0c9;this[_0x229b67(0x158)][_0x229b67(0x206)](this['unitID'],_0x53b7ef);}[_0x43e0c9(0x115)](_0x1477be){var _0xbbfe07=_0x43e0c9,_0x5566ba,_0x3f37d8;(_0x3f37d8=(_0x5566ba=this['_handler'])[_0xbbfe07(0x250)])==null||_0x3f37d8[_0xbbfe07(0x314)](_0x5566ba,_0x1477be);}[_0x43e0c9(0x371)](_0x318a35){var _0x514359=_0x43e0c9,_0x146471,_0x3d6dca;return(_0x3d6dca=(_0x146471=this[_0x514359(0x3bd)])[_0x514359(0x173)])==null?void 0x0:_0x3d6dca['call'](_0x146471,_0x318a35);}[_0x43e0c9(0x227)](_0x459a83){var _0x413d89=_0x43e0c9,_0x3a0d91,_0x528732;return(_0x528732=(_0x3a0d91=this['_handler'])[_0x413d89(0x3c4)])==null?void 0x0:_0x528732[_0x413d89(0x314)](_0x3a0d91,_0x459a83);}[_0x43e0c9(0x3b6)](_0x42b0cc){var _0x342c63=_0x43e0c9,_0x1e5af7,_0x2157e7,_0x1861c6;return(_0x1861c6=(_0x2157e7=(_0x1e5af7=this['_handler'])[_0x342c63(0x11e)])==null?void 0x0:_0x2157e7[_0x342c63(0x314)](_0x1e5af7,_0x42b0cc))!=null?_0x1861c6:_0x42b0cc;}[_0x43e0c9(0x320)](_0x26bb64){var _0x3f56a9=_0x43e0c9,_0x3ed405,_0x238f26,_0x545ab5;return(_0x545ab5=(_0x238f26=(_0x3ed405=this[_0x3f56a9(0x3bd)])[_0x3f56a9(0x404)])==null?void 0x0:_0x238f26[_0x3f56a9(0x314)](_0x3ed405,_0x26bb64))!=null?_0x545ab5:_0x26bb64;}[_0x43e0c9(0x3fe)](_0x1a67ca){var _0x298cb6=_0x43e0c9,_0x55d47b,_0x3dd5f6;if(this[_0x298cb6(0x3b0)]===UniverType['UNIVER_DOC']){const {unitID:_0x363d7b,mutations:_0xe18d80,memberID:_0x5123cc}=_0x1a67ca,_0x54bfec=_0xe18d80[0x0][_0x298cb6(0xf1)][_0x298cb6(0x439)];Array['isArray'](_0x54bfec)&&_0x54bfec[_0x298cb6(0x233)]>0x0&&((_0x3dd5f6=(_0x55d47b=this[_0x298cb6(0x3bd)])[_0x298cb6(0x37c)])==null||_0x3dd5f6['call'](_0x55d47b,{'unitID':_0x363d7b,'memberID':_0x5123cc,'textRanges':_0x54bfec}));}}[_0x43e0c9(0x3dc)](){var _0x3aaf18=_0x43e0c9,_0x215fcd;(_0x215fcd=this[_0x3aaf18(0x289)])==null||_0x215fcd['updateOfflineData'](this['unitID'],this[_0x3aaf18(0x3b0)],this[_0x3aaf18(0x20d)],this[_0x3aaf18(0x1c5)]);}['_getCurrentRevision'](){var _0x2a0a9a=_0x43e0c9;return this[_0x2a0a9a(0x3c0)][_0x2a0a9a(0x1c0)](this[_0x2a0a9a(0x442)]);}[_0x43e0c9(0x40a)](){var _0x46309a=_0x43e0c9;this[_0x46309a(0x3c0)][_0x46309a(0x28a)](this['unitID']);}[_0x43e0c9(0x21e)](_0x2f1ebc){var _0x36feb4=_0x43e0c9,_0x3e896d;let _0x13b4bc=this[_0x36feb4(0x3b6)](_0x2f1ebc);_0x13b4bc=this[_0x36feb4(0x320)](_0x13b4bc);const _0x5cece8=sequenceExecute(_0x13b4bc[_0x36feb4(0x245)],this[_0x36feb4(0x1ae)],{'fromCollab':!0x0});if(!_0x5cece8[_0x36feb4(0xf3)])throw _0x5cece8['error']instanceof Error?_0x5cece8[_0x36feb4(0x1c8)]:new Error((_0x3e896d=_0x5cece8[_0x36feb4(0x1c8)])!=null?_0x3e896d:'[CollaborationState]:\x20apply\x20error!');this[_0x36feb4(0x371)](_0x13b4bc),this[_0x36feb4(0x227)](_0x13b4bc),this['_transformUndoredo'](_0x2f1ebc),this[_0x36feb4(0x115)](_0x13b4bc),this[_0x36feb4(0x3fe)](_0x13b4bc),this[_0x36feb4(0x40a)]();}};__name(_CollaborationState,_0x43e0c9(0x212));let CollaborationState=_CollaborationState;var _a6;let SyncedState=(_a6=class extends CollaborationState{constructor(_0x3a5a34,_0x529027,_0x29a46f,_0x31263a,_0x56f198,_0x1ebd7c,_0x1fd753,_0x5f4f2d,_0x5f4f52,_0xde86a7){var _0x89bcf7=_0x43e0c9;super(_0x3a5a34,_0x529027,null,[],_0x29a46f,_0x1fd753,_0x1ebd7c,_0x31263a,_0xde86a7),__publicField(this,_0x89bcf7(0x123),_0x89bcf7(0x3b5)),(this['_injector']=_0x56f198,this[_0x89bcf7(0x11f)]=_0x5f4f2d,this[_0x89bcf7(0x345)]=_0x5f4f52,this[_0x89bcf7(0x284)]=_0xde86a7);}[_0x43e0c9(0x35f)](_0x7a931c){var _0x4df65d=_0x43e0c9;const _0x1e976d=this['_injector'][_0x4df65d(0x39f)](PendingState,this[_0x4df65d(0x442)],this[_0x4df65d(0x3b0)],[_0x7a931c],this[_0x4df65d(0x3bd)]);return _0x1e976d[_0x4df65d(0x1f9)](),_0x1e976d[_0x4df65d(0x3dc)](),_0x1e976d;}[_0x43e0c9(0x220)](_0x27ad53){var _0x14a7d9=_0x43e0c9;if(this[_0x14a7d9(0x194)](_0x27ad53))return this[_0x14a7d9(0x403)][_0x14a7d9(0x39f)](FetchingMissState,this[_0x14a7d9(0x442)],this[_0x14a7d9(0x3b0)],null,[],null,[_0x27ad53],this[_0x14a7d9(0x3bd)]);try{const _0x5c1e40=this[_0x14a7d9(0x345)]['transformMutationsWithChangeset'](_0x27ad53,[EmptyMutationInfo]);if(isTransformMutationsWithChangesetSuccess(_0x5c1e40)){const {c1Prime:_0x2116a8}=_0x5c1e40;return this[_0x14a7d9(0x21e)](_0x2116a8),this;}throw _0x5c1e40[_0x14a7d9(0x1c8)];}catch(_0x48518f){return this[_0x14a7d9(0x11f)][_0x14a7d9(0x1c8)](_0x48518f),this[_0x14a7d9(0x1ba)](!0x1);}}['_onConflict'](_0xaf0574){var _0x7c05ba=_0x43e0c9;return this[_0x7c05ba(0x403)][_0x7c05ba(0x39f)](ConflictState,this[_0x7c05ba(0x442)],this['type'],null,[],this[_0x7c05ba(0x3bd)],_0xaf0574);}[_0x43e0c9(0x2b5)](){var _0x45466a=_0x43e0c9;throw new Error(_0x45466a(0x1c6));}['onRemoteRej'](){var _0x544756=_0x43e0c9;throw new Error(_0x544756(0x270));}[_0x43e0c9(0x32a)](){return this;}[_0x43e0c9(0x31c)](){var _0x3f0d34=_0x43e0c9;return this[_0x3f0d34(0x403)][_0x3f0d34(0x39f)](OfflineState,this[_0x3f0d34(0x442)],this[_0x3f0d34(0x3b0)],null,[],this[_0x3f0d34(0x3bd)]);}[_0x43e0c9(0x1e2)](){return this;}[_0x43e0c9(0x3ee)](){var _0xd80c9e=_0x43e0c9;throw new Error(_0xd80c9e(0x441));}[_0x43e0c9(0x26b)](){var _0x3ee3d3=_0x43e0c9;const _0x2ea5e4=this['_revisionService'][_0x3ee3d3(0x1c0)](this[_0x3ee3d3(0x442)]);return this['_handler']['onMissingChangesets']({'from':_0x2ea5e4,'to':0x0}),this['_injector'][_0x3ee3d3(0x39f)](FetchingMissState,this[_0x3ee3d3(0x442)],this[_0x3ee3d3(0x3b0)],null,[],null,[],this['_handler']);}},__name(_a6,_0x43e0c9(0x10f)),_a6);SyncedState=__decorateClass$d([__decorateParam$d(0x3,Inject(RevisionService)),__decorateParam$d(0x4,Inject(Injector)),__decorateParam$d(0x5,IUndoRedoService),__decorateParam$d(0x6,ICommandService),__decorateParam$d(0x7,ILogService),__decorateParam$d(0x8,ITransformService),__decorateParam$d(0x9,Optional(ILocalCacheService))],SyncedState);var _a7;let PendingState=(_a7=class extends CollaborationState{constructor(_0x75a533,_0x47ce3b,_0xef128d,_0x4af6d9,_0x3b399c,_0x2d3b58,_0x1889e0,_0x180ef4,_0x51f34c,_0x3fca1f,_0x577d9d,_0x51cc10,_0x9a5d5f,_0x3f417a){var _0x29dc9e=_0x43e0c9;super(_0x75a533,_0x47ce3b,null,_0xef128d,_0x4af6d9,_0x51f34c,_0x9a5d5f,_0x2d3b58,_0x3f417a),__publicField(this,_0x29dc9e(0x123),_0x29dc9e(0x2af)),__publicField(this,_0x29dc9e(0x192),null),__publicField(this,_0x29dc9e(0x32e),null),(this['_injector']=_0x3b399c,this[_0x29dc9e(0x252)]=_0x1889e0,this[_0x29dc9e(0x11f)]=_0x180ef4,this[_0x29dc9e(0x249)]=_0x3fca1f,this[_0x29dc9e(0x345)]=_0x577d9d,this[_0x29dc9e(0x330)]=_0x51cc10);}[_0x43e0c9(0x35f)](_0x13a8d7){var _0x15704e=_0x43e0c9;return this['_pendingMutations']['push'](_0x13a8d7),this[_0x15704e(0x3dc)](),this;}[_0x43e0c9(0x220)](_0x3ee2a6){var _0x5c79c0=_0x43e0c9;if(this['_checkMissing'](_0x3ee2a6))return this[_0x5c79c0(0x1a7)](),this[_0x5c79c0(0x403)][_0x5c79c0(0x39f)](FetchingMissState,this[_0x5c79c0(0x442)],this['type'],null,this['_pendingMutations'],null,[_0x3ee2a6],this['_handler']);try{const _0x4856bb=this[_0x5c79c0(0x345)]['transformMutationsWithChangeset'](_0x3ee2a6,this['_pendingMutations']);if(isTransformMutationsWithChangesetSuccess(_0x4856bb)){const {c1Prime:_0x182cde,m2Prime:_0x107595}=_0x4856bb;this['_executeRemoteChangeset'](_0x182cde);const _0x535d80=this[_0x5c79c0(0x403)][_0x5c79c0(0x39f)](PendingState,this[_0x5c79c0(0x442)],this[_0x5c79c0(0x3b0)],_0x107595,this[_0x5c79c0(0x3bd)]);this[_0x5c79c0(0x1a7)]();const _0x4f0639=new Date()['getTime'](),_0x2a92f6=this['_scheduleCompleteTimestamp']?Math[_0x5c79c0(0x2e9)](this[_0x5c79c0(0x192)]-_0x4f0639,0x0):this[_0x5c79c0(0x2e1)]();return _0x535d80[_0x5c79c0(0x1f9)](_0x2a92f6),_0x535d80;}throw _0x4856bb[_0x5c79c0(0x1c8)];}catch(_0x447903){return this[_0x5c79c0(0x11f)]['error'](_0x447903),this[_0x5c79c0(0x1ba)](!0x1);}}[_0x43e0c9(0x2b5)](){var _0x364946=_0x43e0c9;throw new Error(_0x364946(0x13d));}['onRemoteRej'](){var _0x9e299=_0x43e0c9;throw new Error(_0x9e299(0x236));}[_0x43e0c9(0x32a)](){return this;}[_0x43e0c9(0x31c)](){var _0x3d377d=_0x43e0c9;return this[_0x3d377d(0x1a7)](),this[_0x3d377d(0x403)][_0x3d377d(0x39f)](OfflineState,this[_0x3d377d(0x442)],this[_0x3d377d(0x3b0)],null,this['_pendingMutations'],this['_handler']);}[_0x43e0c9(0x1e2)](){return this;}[_0x43e0c9(0x1f9)](_0x3f3cdb){var _0xcda76d=_0x43e0c9;const _0x3913b2=_0x3f3cdb!=null?_0x3f3cdb:this[_0xcda76d(0x2e1)]();this['_scheduleCompleteTimestamp']=new Date()[_0xcda76d(0x230)]()+_0x3913b2,this[_0xcda76d(0x32e)]=setTimeout(()=>{var _0x5d0ca8=_0xcda76d;this['_clearScheduledTask']();let _0x5c5411=null;switch(this[_0x5d0ca8(0x3b0)]){case UniverType['UNIVER_SHEET']:{_0x5c5411=assembleSheetChangeset(this[_0x5d0ca8(0x1c5)],this[_0x5d0ca8(0x442)],this[_0x5d0ca8(0x330)],this[_0x5d0ca8(0x3c0)],this[_0x5d0ca8(0x252)]);break;}case UniverType['UNIVER_DOC']:{this['_pendingMutations'][_0x5d0ca8(0x291)](_0x33dd1f=>_0x33dd1f['id']===RichTextEditingMutation['id'])?_0x5c5411=assembleDocChangeset(this[_0x5d0ca8(0x1c5)],this[_0x5d0ca8(0x442)],this[_0x5d0ca8(0x330)],this[_0x5d0ca8(0x3c0)],this[_0x5d0ca8(0x252)]):_0x5c5411=assembleSheetChangeset(this[_0x5d0ca8(0x1c5)],this[_0x5d0ca8(0x442)],this['_univerInstanceService'],this[_0x5d0ca8(0x3c0)],this[_0x5d0ca8(0x252)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x5d0ca8(0x3b0)]+_0x5d0ca8(0x22a));}const {changeset:_0x7b110,pendingMutations:_0x256827}=_0x5c5411;this['_handler'][_0x5d0ca8(0x2dc)](_0x7b110);const _0x4f7814=_0x256827['length']?this['_injector'][_0x5d0ca8(0x39f)](AwaitingWithPendingState,this['unitID'],this['type'],_0x7b110,_0x256827,this[_0x5d0ca8(0x3bd)],void 0x0):this[_0x5d0ca8(0x403)][_0x5d0ca8(0x39f)](AwaitingState,this[_0x5d0ca8(0x442)],this[_0x5d0ca8(0x3b0)],_0x7b110,this[_0x5d0ca8(0x3bd)]);_0x4f7814[_0x5d0ca8(0x3dc)](),this[_0x5d0ca8(0x3bd)][_0x5d0ca8(0x358)](this,_0x4f7814);},_0x3913b2);}[_0x43e0c9(0x2e1)](){var _0x5134a2=_0x43e0c9,_0x1e9e3b;const _0x5b0e8f=this['_configService']['getConfig'](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x1e9e3b=_0x5b0e8f==null?void 0x0:_0x5b0e8f[_0x5134a2(0x1bb)])!=null?_0x1e9e3b:DEFAULT_SEND_CHANGESET_TIMEOUT;}['resend'](){var _0x55b895=_0x43e0c9;throw new Error(_0x55b895(0x2d8));}[_0x43e0c9(0x1a7)](){var _0x493d2a=_0x43e0c9;this[_0x493d2a(0x32e)]!=null&&(clearTimeout(this['_sendingTimer']),this[_0x493d2a(0x32e)]=null);}[_0x43e0c9(0x1ba)](_0x1de1c5){var _0x6413a3=_0x43e0c9;return this[_0x6413a3(0x1a7)](),this['_injector'][_0x6413a3(0x39f)](ConflictState,this['unitID'],this[_0x6413a3(0x3b0)],null,this['_pendingMutations'],this[_0x6413a3(0x3bd)],_0x1de1c5);}},__name(_a7,_0x43e0c9(0x241)),_a7);PendingState=__decorateClass$d([__decorateParam$d(0x4,Inject(Injector)),__decorateParam$d(0x5,Inject(RevisionService)),__decorateParam$d(0x6,Inject(MemberService)),__decorateParam$d(0x7,ILogService),__decorateParam$d(0x8,ICommandService),__decorateParam$d(0x9,IConfigService),__decorateParam$d(0xa,ITransformService),__decorateParam$d(0xb,IUniverInstanceService),__decorateParam$d(0xc,IUndoRedoService),__decorateParam$d(0xd,Optional(ILocalCacheService))],PendingState);var _a8;let AwaitingState=(_a8=class extends CollaborationState{constructor(_0x33435c,_0x278fe7,_0x15774d,_0x2101ce,_0xcde6e0,_0x2d9492,_0x5424e7,_0x3c0712,_0xba50a2,_0x86ee3a,_0x35e3c2){var _0x5cc60b=_0x43e0c9;super(_0x33435c,_0x278fe7,_0x15774d,[],_0x2101ce,_0x5424e7,_0x86ee3a,_0x2d9492,_0x35e3c2),__publicField(this,_0x5cc60b(0x123),_0x5cc60b(0x3a7)),__publicField(this,_0x5cc60b(0x1f5),0x0),__publicField(this,_0x5cc60b(0x2bf)),__publicField(this,_0x5cc60b(0x405)),(this[_0x5cc60b(0x403)]=_0xcde6e0,this[_0x5cc60b(0x11f)]=_0x3c0712,this[_0x5cc60b(0x345)]=_0xba50a2);}['appendMutation'](_0x196126){var _0x1d5645=_0x43e0c9;this[_0x1d5645(0x1a7)]();const _0x1a8907=this[_0x1d5645(0x403)][_0x1d5645(0x39f)](AwaitingWithPendingState,this[_0x1d5645(0x442)],this[_0x1d5645(0x3b0)],this['_awaitingChangeset'],[_0x196126],this[_0x1d5645(0x3bd)],this[_0x1d5645(0x2bf)]);return _0x1a8907[_0x1d5645(0x3dc)](),_0x1a8907;}[_0x43e0c9(0x220)](_0x2e8572){var _0x35702c=_0x43e0c9;if(this[_0x35702c(0x194)](_0x2e8572))return this[_0x35702c(0x1a7)](),this[_0x35702c(0x403)][_0x35702c(0x39f)](FetchingMissState,this[_0x35702c(0x442)],this[_0x35702c(0x3b0)],this[_0x35702c(0x20d)],[],null,[_0x2e8572],this[_0x35702c(0x3bd)]);try{const _0x3cfb08=this[_0x35702c(0x345)]['transformChangesets']([_0x2e8572],[this['_awaitingChangeset']],!0x1);if(isTransformChangesetsSuccess(_0x3cfb08)){const {c1Prime:_0x6e52a3,c2Prime:_0x1e059c}=_0x3cfb08;this[_0x35702c(0x21e)](_0x6e52a3[0x0]),_0x1e059c[0x0][_0x35702c(0x191)]=this['_getCurrentRevision'](),this[_0x35702c(0x1a7)]();const _0x178ab1=this[_0x35702c(0x403)][_0x35702c(0x39f)](AwaitingState,this[_0x35702c(0x442)],this[_0x35702c(0x3b0)],_0x1e059c[0x0],this[_0x35702c(0x3bd)]);return _0x178ab1[_0x35702c(0x3dc)](),_0x178ab1;}return this[_0x35702c(0x1ba)](!0x1);}catch(_0x118de7){return this[_0x35702c(0x11f)][_0x35702c(0x1c8)](_0x118de7),this[_0x35702c(0x1ba)](!0x1);}}[_0x43e0c9(0x2b5)](_0x3fd6ed){var _0x5540ba=_0x43e0c9;this[_0x5540ba(0x1a7)]();const _0x201ba0=this[_0x5540ba(0x3c0)][_0x5540ba(0x1c0)](this[_0x5540ba(0x442)]);if(_0x3fd6ed[_0x5540ba(0x267)]<_0x201ba0-0x1)return this;if(this[_0x5540ba(0x194)](_0x3fd6ed))return this[_0x5540ba(0x403)][_0x5540ba(0x39f)](FetchingMissState,this['unitID'],this[_0x5540ba(0x3b0)],null,[],this['_awaitingChangeset'],[],this[_0x5540ba(0x3bd)]);this[_0x5540ba(0x40a)]();const _0x4ed103=this[_0x5540ba(0x403)][_0x5540ba(0x39f)](SyncedState,this[_0x5540ba(0x442)],this[_0x5540ba(0x3b0)],this[_0x5540ba(0x3bd)]);return _0x4ed103[_0x5540ba(0x3dc)](),_0x4ed103;}[_0x43e0c9(0x273)](_0x1e3039){var _0x3df846=_0x43e0c9;return this[_0x3df846(0x1ba)](!!(_0x1e3039!=null&&_0x1e3039[_0x3df846(0x24a)]));}[_0x43e0c9(0x32a)](_0x3df99b){var _0x390500=_0x43e0c9;return this[_0x390500(0x1f5)]>MAX_RETRY_TIMEOUT?this[_0x390500(0x31c)]():(this[_0x390500(0x2bf)]=createTimerObservable$(this[_0x390500(0x1f5)],{'timeout':this[_0x390500(0x1f5)],'reqId':_0x3df99b[_0x390500(0x185)]}),this[_0x390500(0x405)]=this[_0x390500(0x2bf)][_0x390500(0x352)](({reqId:_0x4e30ae,timeout:_0x8d8937})=>{var _0x38c2dc=_0x390500;this[_0x38c2dc(0x3a1)](_0x4e30ae,_0x8d8937);}),this);}['toggleOffline'](){var _0x26df40=_0x43e0c9;return this[_0x26df40(0x1a7)](),this[_0x26df40(0x403)][_0x26df40(0x39f)](OfflineState,this[_0x26df40(0x442)],this[_0x26df40(0x3b0)],this[_0x26df40(0x20d)],[],this['_handler']);}['toggleOnline'](){return this;}[_0x43e0c9(0x3ee)](){var _0x2527cd=_0x43e0c9;this[_0x2527cd(0x3bd)][_0x2527cd(0x2dc)](this[_0x2527cd(0x20d)]);}['_onConflict'](_0xdedcba){var _0x41cff1=_0x43e0c9;return this[_0x41cff1(0x1a7)](),this[_0x41cff1(0x403)]['createInstance'](ConflictState,this[_0x41cff1(0x442)],this[_0x41cff1(0x3b0)],this[_0x41cff1(0x20d)],[],this[_0x41cff1(0x3bd)],_0xdedcba);}[_0x43e0c9(0x3a1)](_0x4d682f,_0xa2cce1){var _0x493ae9=_0x43e0c9,_0x45a3c9;_0x4d682f===((_0x45a3c9=this['_awaitingChangeset'])==null?void 0x0:_0x45a3c9['reqId'])&&(this[_0x493ae9(0x3ee)](),this[_0x493ae9(0x1f5)]=_0xa2cce1===0x0?0x3e8:_0xa2cce1*0x2);}[_0x43e0c9(0x1a7)](){var _0x58d109=_0x43e0c9,_0x315224;(_0x315224=this['_sender'])==null||_0x315224[_0x58d109(0x11c)](),this[_0x58d109(0x1f5)]=0x0;}},__name(_a8,'AwaitingState'),_a8);AwaitingState=__decorateClass$d([__decorateParam$d(0x4,Inject(Injector)),__decorateParam$d(0x5,Inject(RevisionService)),__decorateParam$d(0x6,ICommandService),__decorateParam$d(0x7,ILogService),__decorateParam$d(0x8,ITransformService),__decorateParam$d(0x9,IUndoRedoService),__decorateParam$d(0xa,Optional(ILocalCacheService))],AwaitingState);var _a9;let AwaitingWithPendingState=(_a9=class extends CollaborationState{constructor(_0x3c7796,_0x577e17,_0x1bc379,_0x42571d,_0x219b33,_0x434944,_0x102c31,_0x3a6e6d,_0x550cf4,_0x348916,_0x2478e0,_0x5c2522,_0x35e16f){var _0x2af873=_0x43e0c9;super(_0x3c7796,_0x577e17,_0x1bc379,_0x42571d,_0x219b33,_0x550cf4,_0x5c2522,_0x3a6e6d,_0x35e16f),__publicField(this,'status',_0x2af873(0x22c)),__publicField(this,'_resendTimeout',0x0),__publicField(this,_0x2af873(0x2bf)),__publicField(this,_0x2af873(0x405)),(this[_0x2af873(0x403)]=_0x102c31,this['_logService']=_0x348916,this[_0x2af873(0x345)]=_0x2478e0,this[_0x2af873(0x284)]=_0x35e16f,_0x434944&&(this[_0x2af873(0x2bf)]=_0x434944,this[_0x2af873(0x405)]=this[_0x2af873(0x2bf)]['subscribe'](({reqId:_0x278785,timeout:_0x36d045})=>{this['_resendWithTimeout'](_0x278785,_0x36d045);})));}['appendMutation'](_0x2ead80){var _0x343af4=_0x43e0c9;return this['_pendingMutations'][_0x343af4(0x119)](_0x2ead80),this;}['onRemoteChangeset'](_0x31332c){var _0x24f3d9=_0x43e0c9;if(this[_0x24f3d9(0x194)](_0x31332c))return this[_0x24f3d9(0x1a7)](),this['_injector'][_0x24f3d9(0x39f)](FetchingMissState,this[_0x24f3d9(0x442)],this[_0x24f3d9(0x3b0)],this[_0x24f3d9(0x20d)],this[_0x24f3d9(0x1c5)],null,[_0x31332c],this['_handler']);try{const _0x46bde5=this[_0x24f3d9(0x345)]['transformChangesets']([_0x31332c],[this[_0x24f3d9(0x20d)]],!0x1);if(isTransformChangesetsSuccess(_0x46bde5)){const {c1Prime:_0x4135c2,c2Prime:_0xcfbf54}=_0x46bde5,_0x471caf=this['_transformService'][_0x24f3d9(0x346)](_0x4135c2[0x0],this['_pendingMutations']);if(isTransformMutationsWithChangesetSuccess(_0x471caf)){const {c1Prime:_0x4f2e6a,m2Prime:_0x297c30}=_0x471caf;return this['_executeRemoteChangeset'](_0x4f2e6a),_0xcfbf54[0x0]['baseRev']=this[_0x24f3d9(0x13e)](),this[_0x24f3d9(0x1a7)](),this[_0x24f3d9(0x403)][_0x24f3d9(0x39f)](AwaitingWithPendingState,this[_0x24f3d9(0x442)],this['type'],_0xcfbf54[0x0],_0x297c30,this[_0x24f3d9(0x3bd)],void 0x0);}throw _0x471caf[_0x24f3d9(0x1c8)];}throw _0x46bde5[_0x24f3d9(0x1c8)];}catch(_0x55925a){return this[_0x24f3d9(0x11f)]['error'](_0x55925a),this['_onConflict'](!0x1);}}[_0x43e0c9(0x2b5)](_0x5ecea3){var _0x1bc3f8=_0x43e0c9;if(this[_0x1bc3f8(0x1a7)](),this['_checkMissing'](_0x5ecea3))return this[_0x1bc3f8(0x403)][_0x1bc3f8(0x39f)](FetchingMissState,this[_0x1bc3f8(0x442)],this[_0x1bc3f8(0x3b0)],null,this[_0x1bc3f8(0x1c5)],this[_0x1bc3f8(0x20d)],[],this[_0x1bc3f8(0x3bd)]);this[_0x1bc3f8(0x40a)]();const _0x267e43=this[_0x1bc3f8(0x403)][_0x1bc3f8(0x39f)](PendingState,this[_0x1bc3f8(0x442)],this[_0x1bc3f8(0x3b0)],this['_pendingMutations'],this[_0x1bc3f8(0x3bd)]);return _0x267e43[_0x1bc3f8(0x1f9)](),_0x267e43[_0x1bc3f8(0x3dc)](),_0x267e43;}[_0x43e0c9(0x273)](_0x11453b){return this['_onConflict'](!!(_0x11453b!=null&&_0x11453b['isPermissionRej']));}[_0x43e0c9(0x32a)](_0x2f03ed){var _0x1c390f=_0x43e0c9;return this[_0x1c390f(0x1f5)]>MAX_RETRY_TIMEOUT?this[_0x1c390f(0x31c)]():(this[_0x1c390f(0x2bf)]=createTimerObservable$(this[_0x1c390f(0x1f5)],{'timeout':this[_0x1c390f(0x1f5)],'reqId':_0x2f03ed[_0x1c390f(0x185)]}),this['_sender']=this[_0x1c390f(0x2bf)][_0x1c390f(0x352)](({reqId:_0x20b060,timeout:_0x268e3f})=>{this['_resendWithTimeout'](_0x20b060,_0x268e3f);}),this);}[_0x43e0c9(0x31c)](){var _0x54e823=_0x43e0c9;return this[_0x54e823(0x1a7)](),this[_0x54e823(0x403)][_0x54e823(0x39f)](OfflineState,this[_0x54e823(0x442)],this[_0x54e823(0x3b0)],this[_0x54e823(0x20d)],this[_0x54e823(0x1c5)],this[_0x54e823(0x3bd)]);}[_0x43e0c9(0x1e2)](){return this;}[_0x43e0c9(0x3ee)](){var _0x510bbf=_0x43e0c9;this[_0x510bbf(0x3bd)][_0x510bbf(0x2dc)](this[_0x510bbf(0x20d)]);}['_onConflict'](_0x22a440){var _0x1de77c=_0x43e0c9;return this['_clearScheduledTask'](),this['_injector']['createInstance'](ConflictState,this[_0x1de77c(0x442)],this['type'],null,this[_0x1de77c(0x1c5)],this[_0x1de77c(0x3bd)],_0x22a440);}[_0x43e0c9(0x3a1)](_0xa253ec,_0x35f70e){var _0x4151b0=_0x43e0c9,_0x5c50cb;_0xa253ec===((_0x5c50cb=this[_0x4151b0(0x20d)])==null?void 0x0:_0x5c50cb[_0x4151b0(0x185)])&&(this[_0x4151b0(0x3ee)](),this['_resendTimeout']=_0x35f70e===0x0?0x3e8:_0x35f70e*0x2);}[_0x43e0c9(0x1a7)](){var _0x172818=_0x43e0c9,_0x5d92c7;(_0x5d92c7=this[_0x172818(0x405)])==null||_0x5d92c7['unsubscribe'](),this[_0x172818(0x1f5)]=0x0;}},__name(_a9,_0x43e0c9(0x1fc)),_a9);AwaitingWithPendingState=__decorateClass$d([__decorateParam$d(0x6,Inject(Injector)),__decorateParam$d(0x7,Inject(RevisionService)),__decorateParam$d(0x8,ICommandService),__decorateParam$d(0x9,ILogService),__decorateParam$d(0xa,ITransformService),__decorateParam$d(0xb,IUndoRedoService),__decorateParam$d(0xc,Optional(ILocalCacheService))],AwaitingWithPendingState);var _a10;let ConflictState=(_a10=class extends CollaborationState{constructor(_0x26c81d,_0x9f1cf6,_0x5e9cfd,_0x36c3f6,_0x55b4e6,_0x12e7e9=!0x1,_0x30b9d1,_0x46fbbc,_0x2a7b34,_0x57f80b,_0x4f814d,_0x4ab292,_0x5adada){var _0x523690=_0x43e0c9;super(_0x26c81d,_0x9f1cf6,_0x5e9cfd,_0x36c3f6,_0x55b4e6,_0x46fbbc,_0x2a7b34,_0x57f80b,_0x5adada),__publicField(this,_0x523690(0x123),'conflict'),(this['_isPermissionRej']=_0x12e7e9,this[_0x523690(0x159)]=_0x30b9d1,this[_0x523690(0x3dd)]=_0x4f814d,this[_0x523690(0x127)]=_0x4ab292,this['localCacheService']=_0x5adada,this[_0x523690(0x3de)](),this[_0x523690(0x3a6)](),this['_disableEditing']());}['appendMutation'](){return this;}[_0x43e0c9(0x220)](){return this;}[_0x43e0c9(0x2b5)](){return this;}[_0x43e0c9(0x273)](){return this;}[_0x43e0c9(0x32a)](){return this;}['toggleOffline'](){return this;}['toggleOnline'](){return this;}[_0x43e0c9(0x3ee)](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x43e0c9(0x3a6)](){var _0x4fb550=_0x43e0c9,_0x3b3448;(_0x3b3448=this[_0x4fb550(0x289)])==null||_0x3b3448[_0x4fb550(0x2fd)](this[_0x4fb550(0x442)],this[_0x4fb550(0x3b0)],null,[]);}[_0x43e0c9(0x3de)](){var _0x2adef1=_0x43e0c9;this[_0x2adef1(0x1c7)]?this['_collaborationUIEventService'][_0x2adef1(0x43a)]({'id':CollaborationUIEventId['PERMISSION_DENIED']}):this['_collaborationUIEventService'][_0x2adef1(0x43a)]({'id':CollaborationUIEventId[_0x2adef1(0x2a0)]});}[_0x43e0c9(0x35c)](){var _0x55a82c=_0x43e0c9;this[_0x55a82c(0x159)]['updatePermissionPoint'](new WorkbookEditablePermission(this[_0x55a82c(0x442)])['id'],!0x1);}},__name(_a10,_0x43e0c9(0x2b3)),_a10);ConflictState=__decorateClass$d([__decorateParam$d(0x6,Inject(IPermissionService)),__decorateParam$d(0x7,ICommandService),__decorateParam$d(0x8,IUndoRedoService),__decorateParam$d(0x9,Inject(RevisionService)),__decorateParam$d(0xa,Inject(LocaleService)),__decorateParam$d(0xb,Inject(CollaborationUIEventService)),__decorateParam$d(0xc,Optional(ILocalCacheService))],ConflictState);var _a11;let OfflineState=(_a11=class extends CollaborationState{constructor(_0x586788,_0x3ce1cb,_0x2f04bd,_0x2951fa,_0xfcfae9,_0x3a72d5,_0x59ade1,_0x4d9ab6,_0x2fe44e,_0x40a541){var _0x590a72=_0x43e0c9;super(_0x586788,_0x3ce1cb,_0x2f04bd,_0x2951fa,_0xfcfae9,_0x4d9ab6,_0x2fe44e,_0x59ade1,_0x40a541),__publicField(this,_0x590a72(0x123),_0x590a72(0x2c8)),this[_0x590a72(0x403)]=_0x3a72d5;}['appendMutation'](_0x590483){var _0x4b9e49=_0x43e0c9;return this['_pendingMutations'][_0x4b9e49(0x119)](_0x590483),this['_updateLocalCache'](),this;}[_0x43e0c9(0x220)](_0x142b92){throw new Error('[OfflineState]:\x20received\x20changeset.');}[_0x43e0c9(0x2b5)](){var _0x21a461=_0x43e0c9;throw new Error(_0x21a461(0x3ac));}['onRemoteRej'](){var _0x2c4974=_0x43e0c9;throw new Error(_0x2c4974(0x1a0));}['onRemoteRetry'](){return this;}[_0x43e0c9(0x31c)](){return this;}['toggleOnline'](){var _0x114c10=_0x43e0c9;const {_injector:_0x2bfad5,_pendingMutations:_0x4cd98f,_awaitingChangeset:_0x3a815a,unitID:_0x2400a8,_handler:_0x5131b5,type:_0x5e1fa1}=this,_0x22a25c=createOnlineState(_0x2bfad5,_0x2400a8,_0x5e1fa1,_0x3a815a,_0x4cd98f,_0x5131b5);return _0x22a25c instanceof PendingState?_0x22a25c[_0x114c10(0x1f9)]():(_0x22a25c instanceof AwaitingWithPendingState||_0x22a25c instanceof AwaitingState)&&_0x22a25c['resend'](),_0x22a25c;}['resend'](){var _0x16e566=_0x43e0c9;throw new Error(_0x16e566(0x3da));}},__name(_a11,_0x43e0c9(0x244)),_a11);OfflineState=__decorateClass$d([__decorateParam$d(0x5,Inject(Injector)),__decorateParam$d(0x6,Inject(RevisionService)),__decorateParam$d(0x7,ICommandService),__decorateParam$d(0x8,IUndoRedoService),__decorateParam$d(0x9,Optional(ILocalCacheService))],OfflineState);var _a12;let FetchingMissState=(_a12=class extends CollaborationState{constructor(_0x713333,_0x5bc442,_0x45374e,_0x3ab25d,_0x365bca,_0x45a121,_0x28cf6c,_0x3a7d29,_0x1948f2,_0x10797c,_0x552fa9,_0x13a353,_0x53aaf6,_0x1fbf44){var _0x23e68e=_0x43e0c9;super(_0x713333,_0x5bc442,_0x45374e,_0x3ab25d,_0x28cf6c,_0x552fa9,_0x13a353,_0x1948f2,_0x1fbf44),__publicField(this,'status',_0x23e68e(0x3e6)),(this[_0x23e68e(0x2da)]=_0x365bca,this[_0x23e68e(0x2bc)]=_0x45a121,this[_0x23e68e(0x403)]=_0x3a7d29,this[_0x23e68e(0x11f)]=_0x10797c,this[_0x23e68e(0x345)]=_0x53aaf6,this[_0x23e68e(0x284)]=_0x1fbf44);}[_0x43e0c9(0x1a5)](_0x4eef64){var _0x244d1e=_0x43e0c9;try{const _0x284eeb=[..._0x4eef64,...this[_0x244d1e(0x2bc)]],_0x4642ce=[this[_0x244d1e(0x20d)]||this['_acknowledgedAwaitingChangeset']][_0x244d1e(0x140)](_0x1781f4=>!!_0x1781f4);let _0x23bb06,_0x47ac2c;if(_0x4642ce[_0x244d1e(0x233)]){const _0x23ed06=this[_0x244d1e(0x345)][_0x244d1e(0x398)](_0x284eeb,_0x4642ce,!0x1);if(!isTransformChangesetsSuccess(_0x23ed06))throw _0x23ed06['error'];_0x23bb06=_0x23ed06[_0x244d1e(0x1ef)],_0x47ac2c=_0x23ed06['c2Prime'];}else _0x23bb06=_0x284eeb,_0x47ac2c=[];let _0x329888=this[_0x244d1e(0x1c5)];_0x23bb06[_0x244d1e(0x392)](_0x20a4d2=>{var _0x148829=_0x244d1e;let _0x32ed3e;if(_0x329888[_0x148829(0x233)]){const _0x1e06f5=this[_0x148829(0x345)][_0x148829(0x346)](_0x20a4d2,_0x329888);if(!isTransformMutationsWithChangesetSuccess(_0x1e06f5))throw _0x1e06f5['error'];_0x32ed3e=_0x1e06f5['c1Prime'],_0x329888=_0x1e06f5[_0x148829(0xfa)];}else _0x32ed3e=_0x20a4d2;this[_0x148829(0x21e)](_0x32ed3e);}),this['_acknowledgedAwaitingChangeset']&&this[_0x244d1e(0x40a)](),this['_awaitingChangeset']&&_0x47ac2c['length']&&(_0x47ac2c[0x0]['baseRev']=this[_0x244d1e(0x13e)]());let _0x59c3a9;if(this[_0x244d1e(0x20d)]&&_0x329888['length']!==0x0)_0x59c3a9=this[_0x244d1e(0x403)][_0x244d1e(0x39f)](AwaitingWithPendingState,this[_0x244d1e(0x442)],this['type'],_0x47ac2c[0x0],_0x329888,this[_0x244d1e(0x3bd)],void 0x0);else{if(this[_0x244d1e(0x20d)]&&_0x329888['length']===0x0)_0x47ac2c[0x0][_0x244d1e(0x191)]=this[_0x244d1e(0x13e)](),_0x59c3a9=this[_0x244d1e(0x403)]['createInstance'](AwaitingState,this[_0x244d1e(0x442)],this['type'],_0x47ac2c[0x0],this[_0x244d1e(0x3bd)]);else{if(_0x329888[_0x244d1e(0x233)]!==0x0){const _0x118af6=this[_0x244d1e(0x403)][_0x244d1e(0x39f)](PendingState,this[_0x244d1e(0x442)],this['type'],_0x329888,this[_0x244d1e(0x3bd)]);_0x118af6['_schedule'](),_0x59c3a9=_0x118af6;}else _0x59c3a9=this[_0x244d1e(0x403)][_0x244d1e(0x39f)](SyncedState,this[_0x244d1e(0x442)],this[_0x244d1e(0x3b0)],this['_handler']);}}return _0x59c3a9[_0x244d1e(0x3dc)](),_0x59c3a9;}catch(_0x3b7ab9){return this[_0x244d1e(0x11f)][_0x244d1e(0x1c8)](_0x244d1e(0x102),_0x244d1e(0x19b),_0x3b7ab9),this[_0x244d1e(0x403)][_0x244d1e(0x39f)](ConflictState,this[_0x244d1e(0x442)],this[_0x244d1e(0x3b0)],this[_0x244d1e(0x20d)],this['_pendingMutations'],this[_0x244d1e(0x3bd)],!0x1);}}[_0x43e0c9(0x3ee)](){var _0x3a8001=_0x43e0c9;throw new Error(_0x3a8001(0x1e9));}[_0x43e0c9(0x35f)](_0x3b57c7){var _0x151837=_0x43e0c9;return this[_0x151837(0x1c5)][_0x151837(0x119)](_0x3b57c7),this;}['onRemoteChangeset'](_0x511327){var _0x1d0d1b=_0x43e0c9;return this['_queuedRemoteChangesets'][_0x1d0d1b(0x119)](_0x511327),this;}[_0x43e0c9(0x2b5)](_0xb51bd8){var _0x51f3fc=_0x43e0c9;if(this[_0x51f3fc(0x20d)])return this['_acknowledgedAwaitingChangeset']=this[_0x51f3fc(0x20d)],this['_awaitingChangeset']=null,this;throw new Error(_0x51f3fc(0xfb));}['onRemoteRej'](_0x56cbd1){var _0xc625f2=_0x43e0c9;return this['_onConflict'](!!(_0x56cbd1!=null&&_0x56cbd1[_0xc625f2(0x24a)]));}[_0x43e0c9(0x32a)](){return this;}[_0x43e0c9(0x31c)](){var _0x572313=_0x43e0c9;return this[_0x572313(0x403)][_0x572313(0x39f)](OfflineState,this[_0x572313(0x442)],this[_0x572313(0x3b0)],this[_0x572313(0x20d)],this[_0x572313(0x1c5)],this[_0x572313(0x3bd)]);}['toggleOnline'](){return this;}['_onConflict'](_0x1761c4){var _0x255262=_0x43e0c9;return this[_0x255262(0x403)]['createInstance'](ConflictState,this['unitID'],this[_0x255262(0x3b0)],this[_0x255262(0x20d)],this[_0x255262(0x1c5)],this[_0x255262(0x3bd)],_0x1761c4);}},__name(_a12,_0x43e0c9(0x2b4)),_a12);FetchingMissState=__decorateClass$d([__decorateParam$d(0x7,Inject(Injector)),__decorateParam$d(0x8,Inject(RevisionService)),__decorateParam$d(0x9,ILogService),__decorateParam$d(0xa,ICommandService),__decorateParam$d(0xb,IUndoRedoService),__decorateParam$d(0xc,ITransformService),__decorateParam$d(0xd,Optional(ILocalCacheService))],FetchingMissState);function createOnlineState(_0x237123,_0x12dc0,_0x58cae7,_0x5bc835,_0x579e69,_0x33cef3){var _0x28f223=_0x43e0c9;return _0x5bc835&&_0x579e69[_0x28f223(0x233)]?_0x237123[_0x28f223(0x39f)](AwaitingWithPendingState,_0x12dc0,_0x58cae7,_0x5bc835,_0x579e69,_0x33cef3,void 0x0):_0x5bc835?_0x237123[_0x28f223(0x39f)](AwaitingState,_0x12dc0,_0x58cae7,_0x5bc835,_0x33cef3):_0x579e69[_0x28f223(0x233)]?_0x237123[_0x28f223(0x39f)](PendingState,_0x12dc0,_0x58cae7,_0x579e69,_0x33cef3):_0x237123[_0x28f223(0x39f)](SyncedState,_0x12dc0,_0x58cae7,_0x33cef3);}__name(createOnlineState,_0x43e0c9(0x401));var __defProp$c=Object['defineProperty'],__getOwnPropDesc$c=Object[_0x43e0c9(0x33e)],__decorateClass$c=__name((_0x219cdc,_0x5d4243,_0xeccfa2,_0x396766)=>{var _0x327cc2=_0x43e0c9;for(var _0x27db5d=_0x396766>0x1?void 0x0:_0x396766?__getOwnPropDesc$c(_0x5d4243,_0xeccfa2):_0x5d4243,_0x52f153=_0x219cdc[_0x327cc2(0x233)]-0x1,_0x123e08;_0x52f153>=0x0;_0x52f153--)(_0x123e08=_0x219cdc[_0x52f153])&&(_0x27db5d=(_0x396766?_0x123e08(_0x5d4243,_0xeccfa2,_0x27db5d):_0x123e08(_0x27db5d))||_0x27db5d);return _0x396766&&_0x27db5d&&__defProp$c(_0x5d4243,_0xeccfa2,_0x27db5d),_0x27db5d;},_0x43e0c9(0x373)),__decorateParam$c=__name((_0x38fc03,_0x5476d1)=>(_0x8d4860,_0x47d2bf)=>_0x5476d1(_0x8d4860,_0x47d2bf,_0x38fc03),_0x43e0c9(0x305)),_a13;let CollaborationEntity=(_a13=class extends RxDisposable{constructor(_0x268f04,_0x10e3c5,_0x1cd8ce,_0x2cc734,_0x24d34d,_0x289473,_0x9dcd27,_0x36db77,_0xfe2288,_0x483ffd,_0x408c91,_0x27ce9f,_0x5a08a9){var _0x2bd8f5=_0x43e0c9;super(),__publicField(this,_0x2bd8f5(0x1df),new BehaviorSubject(null)),__publicField(this,_0x2bd8f5(0xfd),this[_0x2bd8f5(0x1df)][_0x2bd8f5(0x37f)]()),__publicField(this,_0x2bd8f5(0x290)),__publicField(this,_0x2bd8f5(0x125),!0x1),__publicField(this,_0x2bd8f5(0x2c1),''),__publicField(this,_0x2bd8f5(0x1c3),0x0),__publicField(this,_0x2bd8f5(0x26a),this[_0x2bd8f5(0xfd)]['pipe'](_0x14d6b6(_0x1bf4c3=>_0x1bf4c3?_0x1bf4c3['status']:CollaborationStatus[_0x2bd8f5(0x2be)]),shareReplay(0x1))),__publicField(this,_0x2bd8f5(0x340),!0x1),__publicField(this,'_remoteChangesetQueue',[]),(this[_0x2bd8f5(0x442)]=_0x268f04,this[_0x2bd8f5(0x39d)]=_0x10e3c5,this[_0x2bd8f5(0x203)]=_0x1cd8ce,this[_0x2bd8f5(0x403)]=_0x2cc734,this[_0x2bd8f5(0x16a)]=_0x24d34d,this[_0x2bd8f5(0x3dd)]=_0x289473,this[_0x2bd8f5(0x3c0)]=_0x9dcd27,this['_eventService']=_0x36db77,this[_0x2bd8f5(0x11f)]=_0xfe2288,this['_commandService']=_0x483ffd,this['_permissionService']=_0x408c91,this[_0x2bd8f5(0x1b5)]=_0x27ce9f,this[_0x2bd8f5(0x289)]=_0x5a08a9);}get[_0x43e0c9(0x336)](){var _0x4e5b27=_0x43e0c9;return this[_0x4e5b27(0x290)];}async[_0x43e0c9(0x21c)](){var _0x1e54e4=_0x43e0c9;if(this[_0x1e54e4(0x336)])throw new Error(_0x1e54e4(0x1d4));await this[_0x1e54e4(0x19e)]();}[_0x43e0c9(0x1cf)](){var _0x54a9f5=_0x43e0c9;return this[_0x54a9f5(0x125)]=!0x0,toDisposable(()=>{var _0x3addae=_0x54a9f5;this[_0x3addae(0x125)]=!0x1,this[_0x3addae(0x380)]();});}[_0x43e0c9(0x2c5)](_0x111e33){var _0x325721=_0x43e0c9;this[_0x325721(0x1cc)](_0x111e33);}[_0x43e0c9(0x3ca)](_0x49e831){var _0xea6817=_0x43e0c9;this[_0xea6817(0x290)]=_0x49e831,this['_state$'][_0xea6817(0x2e5)](_0x49e831);}async[_0x43e0c9(0x19e)](){var _0x1ef899=_0x43e0c9,_0x547d55;this[_0x1ef899(0x3ca)](await this[_0x1ef899(0x15e)]()),this['_singleActiveUnitService']&&((_0x547d55=this[_0x1ef899(0x1b5)])==null||_0x547d55['editingUnit'](this[_0x1ef899(0x442)]),this['disposeWithMe'](this[_0x1ef899(0x1b5)]['getUnitStatus$'](this[_0x1ef899(0x442)])['subscribe'](_0x1d7fe8=>{var _0x1b14cc=_0x1ef899;this[_0x1b14cc(0x11f)]['debug'](_0x1b14cc(0xf8),_0x1b14cc(0x35d),_0x1d7fe8),_0x1d7fe8===UnitStatus[_0x1b14cc(0x350)]?(this[_0x1b14cc(0x420)][_0x1b14cc(0x43a)]({'id':CollaborationUIEventId['OTHER_CLIENT_EDITING']}),this[_0x1b14cc(0x159)][_0x1b14cc(0x10b)](new WorkbookEditablePermission(this[_0x1b14cc(0x442)])['id'],!0x1),this[_0x1b14cc(0x159)][_0x1b14cc(0x413)](!0x1)):(this['_permissionService'][_0x1b14cc(0x10b)](new WorkbookEditablePermission(this['unitID'])['id'],!0x0),this['_permissionService']['setShowComponents'](!0x0));})));let _0x21aa71=!0x1;return this[_0x1ef899(0x18f)](this[_0x1ef899(0x39d)][_0x1ef899(0x27c)]['subscribe'](_0x354de0=>{var _0x284b0b=_0x1ef899;_0x354de0===SessionStatus[_0x284b0b(0x310)]?this[_0x284b0b(0x25e)](_0x21aa71):_0x354de0===SessionStatus[_0x284b0b(0x2be)]&&(_0x21aa71=!0x0,this[_0x284b0b(0x151)]());})),this[_0x1ef899(0x18f)](this[_0x1ef899(0x39d)]['event$'][_0x1ef899(0x352)](_0x34229a=>{var _0x574f12=_0x1ef899;try{switch(_0x34229a[_0x574f12(0x25d)]){case CollaborationEvent['NEW_CHANGESETS']:{this[_0x574f12(0x213)](parseProtocolChangeset(_0x34229a[_0x574f12(0x14c)]));break;}case CollaborationEvent[_0x574f12(0x24c)]:{this[_0x574f12(0x12b)](_0x34229a[_0x574f12(0x14c)]);break;}case CollaborationEvent[_0x574f12(0x26d)]:{this[_0x574f12(0x188)]();break;}case CollaborationEvent[_0x574f12(0x1b0)]:{this[_0x574f12(0x406)](_0x34229a['data']);break;}case CollaborationEvent[_0x574f12(0x28d)]:{this[_0x574f12(0x22e)](_0x34229a[_0x574f12(0x14c)]['changesets'][_0x574f12(0x12e)](_0x33879=>parseProtocolChangeset(_0x33879)));break;}case CollaborationEvent[_0x574f12(0x3db)]:{this[_0x574f12(0x188)]({'isPermissionRej':!0x0});break;}case CollaborationEvent['UNISCRIPT_RUN']:break;}}catch(_0x2c07a4){throw console[_0x574f12(0x1c8)](_0x574f12(0x293),_0x2c07a4),_0x2c07a4;}})),this['_state'];}[_0x43e0c9(0x256)](){var _0xf2503e=_0x43e0c9;this[_0xf2503e(0x340)]=!0x1;}['_lockTransition'](){var _0x39b661=_0x43e0c9;if(this[_0x39b661(0x340)])throw new Error('[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.');this[_0x39b661(0x340)]=!0x0;}[_0x43e0c9(0x1cc)](_0x44763b){var _0x2a24a3=_0x43e0c9;this[_0x2a24a3(0x3b4)](),this[_0x2a24a3(0x3ca)](this[_0x2a24a3(0x290)][_0x2a24a3(0x35f)](_0x44763b)),this['_unlockTransition']();}[_0x43e0c9(0x213)](_0x413997){var _0x2cfa95=_0x43e0c9;if(!(_0x413997[_0x2cfa95(0x267)]<=this[_0x2cfa95(0x3c0)][_0x2cfa95(0x1c0)](this[_0x2cfa95(0x442)]))){if(this[_0x2cfa95(0x125)]){this['_remoteChangesetQueue']['push'](_0x413997);return;}this[_0x2cfa95(0x298)](_0x413997);}}['_exhaustRemoteChangesetQueue'](){var _0x257fdc=_0x43e0c9;this[_0x257fdc(0x1fa)]['forEach'](_0x200634=>this[_0x257fdc(0x298)](_0x200634)),this[_0x257fdc(0x1fa)]=[];}['_applyRemoteChangeset'](_0x43dbb5){var _0x520f87=_0x43e0c9;const _0x4dabd5=this[_0x520f87(0x16a)]['interceptor'][_0x520f87(0x308)](this[_0x520f87(0x16a)]['interceptor']['getInterceptPoints']()[_0x520f87(0x30a)])(_0x43dbb5[_0x520f87(0x245)],null)||_0x43dbb5[_0x520f87(0x245)],_0x4743bd={..._0x43dbb5,'mutations':_0x4dabd5};this['_lockTransition'](),this[_0x520f87(0x3ca)](this[_0x520f87(0x290)][_0x520f87(0x220)](_0x4743bd)),this[_0x520f87(0x256)]();}['_onRemoteACK'](_0x6fced2){var _0x1ab4cc=_0x43e0c9;this['_lockTransition'](),this[_0x1ab4cc(0x3ca)](this['_state'][_0x1ab4cc(0x2b5)](_0x6fced2)),this[_0x1ab4cc(0x256)]();}[_0x43e0c9(0x188)](_0x2158ab){var _0x135190=_0x43e0c9;this[_0x135190(0x3b4)](),this[_0x135190(0x3ca)](this[_0x135190(0x290)][_0x135190(0x273)](_0x2158ab)),this[_0x135190(0x256)]();}[_0x43e0c9(0x406)](_0x595a97){var _0x296e6b=_0x43e0c9;this['_lockTransition'](),this[_0x296e6b(0x3ca)](this[_0x296e6b(0x290)]['onRemoteRetry'](_0x595a97)),this[_0x296e6b(0x256)]();}['_onFetchMissResult'](_0x7459cc){var _0x5ebfea=_0x43e0c9;if(!(this[_0x5ebfea(0x290)]instanceof FetchingMissState))throw new TypeError(_0x5ebfea(0x1e5));const _0x59153b=_0x7459cc[_0x5ebfea(0x12e)](_0x13e3a8=>{var _0x44ba1b=_0x5ebfea;const _0x5d80b3=this[_0x44ba1b(0x16a)][_0x44ba1b(0x2d1)][_0x44ba1b(0x308)](this['_compressMutationService'][_0x44ba1b(0x2d1)][_0x44ba1b(0x1ff)]()[_0x44ba1b(0x30a)])(_0x13e3a8[_0x44ba1b(0x245)],null)||_0x13e3a8['mutations'];return{..._0x13e3a8,'mutations':_0x5d80b3};});this[_0x5ebfea(0x3b4)](),this[_0x5ebfea(0x3ca)](this[_0x5ebfea(0x290)][_0x5ebfea(0x1a5)](_0x59153b)),this[_0x5ebfea(0x256)]();}[_0x43e0c9(0x151)](){var _0x189b33=_0x43e0c9;this[_0x189b33(0x3b4)](),this['_updateState'](this[_0x189b33(0x290)]['toggleOffline']()),this[_0x189b33(0x256)]();}[_0x43e0c9(0x25e)](_0x16679b=!0x1){var _0x2ec036=_0x43e0c9;this['_lockTransition'](),this[_0x2ec036(0x3ca)](this[_0x2ec036(0x290)]['toggleOnline']()),this[_0x2ec036(0x256)]();const _0x2e3bf2=this['_state'];_0x16679b&&_0x2e3bf2 instanceof SyncedState&&(this[_0x2ec036(0x3b4)](),this[_0x2ec036(0x3ca)](_0x2e3bf2[_0x2ec036(0x26b)]()),this[_0x2ec036(0x256)]());}async[_0x43e0c9(0x15e)](){return new Promise(_0x27c81e=>{var _0x11e588=_0x5029;this[_0x11e588(0x39d)][_0x11e588(0x27c)][_0x11e588(0x1f0)](_0x4af4d9(0x1))[_0x11e588(0x352)](async _0x402c37=>{var _0x1ee2e2=_0x11e588;_0x27c81e(await this[_0x1ee2e2(0x1dc)](_0x402c37===SessionStatus[_0x1ee2e2(0x310)]));});});}[_0x43e0c9(0x3fc)](){var _0x25996b=_0x43e0c9;const _0x5f3e6f=this['unitID'];return{'onStateChange':__name((_0xde17d4,_0x408f04)=>{var _0xa99cd9=_0x5029;if(_0xde17d4!==this[_0xa99cd9(0x290)])throw new Error(_0xa99cd9(0x3bf)+_0xde17d4[_0xa99cd9(0x123)]+_0xa99cd9(0x275)+_0x408f04[_0xa99cd9(0x123)]+'\x0aCurrent:\x20'+this[_0xa99cd9(0x290)][_0xa99cd9(0x123)]);this[_0xa99cd9(0x3ca)](_0x408f04);},_0x25996b(0x358)),'onSendChangeset':__name(_0x4790e1=>{var _0x52d01d=_0x25996b;_0x4790e1[_0x52d01d(0x20c)]||(_0x4790e1['sid']=this[_0x52d01d(0x2c1)],_0x4790e1[_0x52d01d(0x185)]=++this[_0x52d01d(0x1c3)]);const _0x508880={'eventID':CollaborationEvent['SUBMIT_CHANGESET'],'data':{'unitID':_0x4790e1[_0x52d01d(0x442)],'unitType':this['_type'],'changeset':_0x4790e1,'memberID':this[_0x52d01d(0x39d)][_0x52d01d(0x297)]()}};this['session'][_0x52d01d(0x313)](_0x508880,this[_0x52d01d(0x442)]);},_0x25996b(0x2dc)),'onMissingChangesets':__name(({from:_0x487f7e,to:_0x28b907})=>{var _0x4f9c09=_0x25996b;this[_0x4f9c09(0x11f)][_0x4f9c09(0x287)]('[CollaborationEntity]',_0x4f9c09(0x39e)+_0x487f7e+_0x4f9c09(0x2d3)+_0x28b907);const _0x3d9e7e={'eventID':CollaborationEvent[_0x4f9c09(0x34c)],'data':{'unitID':_0x5f3e6f,'unitType':this[_0x4f9c09(0x203)],'from':_0x487f7e,'to':_0x28b907}};this['session'][_0x4f9c09(0x313)](_0x3d9e7e,this[_0x4f9c09(0x442)]);},_0x25996b(0x195))};}async[_0x43e0c9(0x1dc)](_0x40c840){var _0x1d5267=_0x43e0c9,_0x3e8a79,_0x4bb1e2,_0x5d1da8;const _0x5840ea=await((_0x3e8a79=this[_0x1d5267(0x289)])==null?void 0x0:_0x3e8a79['loadOfflineData'](this[_0x1d5267(0x442)])),_0xf2ebe=(_0x4bb1e2=_0x5840ea==null?void 0x0:_0x5840ea[_0x1d5267(0x245)])!=null?_0x4bb1e2:[],_0x1dd4d0=(_0x5d1da8=_0x5840ea==null?void 0x0:_0x5840ea[_0x1d5267(0x3f2)])!=null?_0x5d1da8:null,_0x4fef31=!!(_0x1dd4d0!=null&&_0x1dd4d0['sid'])&&!!(_0x1dd4d0!=null&&_0x1dd4d0[_0x1d5267(0x185)]);this['_changesetSessionId']=_0x4fef31?_0x1dd4d0[_0x1d5267(0x20c)]:v4(),this[_0x1d5267(0x1c3)]=_0x4fef31?_0x1dd4d0[_0x1d5267(0x185)]:0x0;const _0x287d9c=this['unitID'];try{this['_replayCachedMutations'](_0x1dd4d0,_0xf2ebe);}catch(_0x5d2289){this[_0x1d5267(0x11f)]['error'](_0x5d2289);}const _0x5143ca=this['_createHandler']();if(_0x40c840){const _0xc7c042=createOnlineState(this['_injector'],_0x287d9c,this[_0x1d5267(0x203)],_0x1dd4d0,_0xf2ebe,_0x5143ca);return _0xc7c042 instanceof PendingState?_0xc7c042[_0x1d5267(0x1f9)]():(_0xc7c042 instanceof AwaitingWithPendingState||_0xc7c042 instanceof AwaitingState)&&_0xc7c042[_0x1d5267(0x3ee)](),_0xc7c042;}return this[_0x1d5267(0x403)][_0x1d5267(0x39f)](OfflineState,_0x287d9c,this[_0x1d5267(0x203)],_0x1dd4d0,_0xf2ebe,_0x5143ca);}[_0x43e0c9(0x29f)](_0x2afc38,_0x11e031){var _0x40685f=_0x43e0c9,_0x3150c1,_0x1263f8;const _0x2677f3=this[_0x40685f(0x16a)][_0x40685f(0x2d1)][_0x40685f(0x308)](this[_0x40685f(0x16a)][_0x40685f(0x2d1)][_0x40685f(0x1ff)]()[_0x40685f(0x30a)]);(_0x3150c1=_0x2677f3((_0x2afc38==null?void 0x0:_0x2afc38[_0x40685f(0x245)])||[],null))==null||_0x3150c1[_0x40685f(0x392)](_0x450c33=>this[_0x40685f(0x1ae)][_0x40685f(0x3f7)](_0x450c33['id'],_0x450c33['params'])),(_0x1263f8=_0x2677f3(_0x11e031||[],null))==null||_0x1263f8[_0x40685f(0x392)](_0x246390=>this['_commandService'][_0x40685f(0x3f7)](_0x246390['id'],_0x246390['params']));}},__name(_a13,'CollaborationEntity'),_a13);CollaborationEntity=__decorateClass$c([__decorateParam$c(0x3,Inject(Injector)),__decorateParam$c(0x4,Inject(CompressMutationService)),__decorateParam$c(0x5,Inject(LocaleService)),__decorateParam$c(0x6,Inject(RevisionService)),__decorateParam$c(0x7,Inject(CollaborationUIEventService)),__decorateParam$c(0x8,ILogService),__decorateParam$c(0x9,ICommandService),__decorateParam$c(0xa,IPermissionService),__decorateParam$c(0xb,Optional(ISingleActiveUnitService)),__decorateParam$c(0xc,Optional(ILocalCacheService))],CollaborationEntity);var _a14;let DocCollaborationEntity=(_a14=class extends CollaborationEntity{constructor(_0x4584d4,_0x538361,_0x462dde,_0x4d668b,_0x3b803c,_0x1e6bdd,_0x5a7063,_0x5142d0,_0x1095a6,_0x4c263a,_0x1e543d,_0x311a7f,_0x4c4954){var _0x3bcab=_0x43e0c9;super(_0x4584d4,_0x462dde,_0x538361,_0x4d668b,_0x3b803c,_0x1e6bdd,_0x5a7063,_0x5142d0,_0x1095a6,_0x4c263a,_0x1e543d,_0x311a7f,_0x4c4954),__publicField(this,_0x3bcab(0x246),null),(this[_0x3bcab(0x442)]=_0x4584d4,this[_0x3bcab(0x3b0)]=_0x538361);}['addHandlerCallback'](_0x11c948){var _0x2e2aee=_0x43e0c9;this[_0x2e2aee(0x246)]=_0x11c948;}['dispose'](){var _0x5b1287=_0x43e0c9;this[_0x5b1287(0x246)]=null,super[_0x5b1287(0x25b)]();}[_0x43e0c9(0x3fc)](){var _0x3af63d=_0x43e0c9;const _0x587bf5=super['_createHandler']();return _0x587bf5[_0x3af63d(0x173)]=_0x503a79=>{var _0x3b7329=_0x3af63d,_0x4e2956,_0x2b0f1e;return(_0x2b0f1e=(_0x4e2956=this[_0x3b7329(0x246)])==null?void 0x0:_0x4e2956[_0x3b7329(0x173)])==null?void 0x0:_0x2b0f1e[_0x3b7329(0x314)](_0x4e2956,_0x503a79);},_0x587bf5[_0x3af63d(0x3c4)]=_0x3dc51a=>{var _0x4822f5=_0x3af63d,_0x2843e4,_0x569073;return(_0x569073=(_0x2843e4=this[_0x4822f5(0x246)])==null?void 0x0:_0x2843e4[_0x4822f5(0x3c4)])==null?void 0x0:_0x569073[_0x4822f5(0x314)](_0x2843e4,_0x3dc51a);},_0x587bf5['onTransformSelections']=_0x5e20f5=>{var _0x340670=_0x3af63d,_0x39bfea,_0x273c92;return(_0x273c92=(_0x39bfea=this[_0x340670(0x246)])==null?void 0x0:_0x39bfea[_0x340670(0x250)])==null?void 0x0:_0x273c92['call'](_0x39bfea,_0x5e20f5);},_0x587bf5[_0x3af63d(0x37c)]=_0x341c8c=>{var _0x4bcc7f=_0x3af63d,_0x1d7d07,_0x1203ba;return(_0x1203ba=(_0x1d7d07=this['_handlerCallback'])==null?void 0x0:_0x1d7d07[_0x4bcc7f(0x37c)])==null?void 0x0:_0x1203ba['call'](_0x1d7d07,_0x341c8c);},_0x587bf5[_0x3af63d(0x11e)]=_0x56dcab=>{var _0x6cf43e=_0x3af63d,_0x1df6d8,_0x213dd8,_0xcac2ce;if(!((_0x1df6d8=this[_0x6cf43e(0x246)])!=null&&_0x1df6d8[_0x6cf43e(0x11e)]))throw new Error('onTransformRemoteChangesetByIMECache\x20callback\x20is\x20not\x20added\x20yet.');return(_0xcac2ce=(_0x213dd8=this[_0x6cf43e(0x246)])==null?void 0x0:_0x213dd8[_0x6cf43e(0x11e)])==null?void 0x0:_0xcac2ce['call'](_0x213dd8,_0x56dcab);},_0x587bf5[_0x3af63d(0x404)]=_0x4aac8d=>{var _0x43609b=_0x3af63d,_0x1d7312,_0x32f4fd,_0x337ba2;if(!((_0x1d7312=this[_0x43609b(0x246)])!=null&&_0x1d7312['onTransformRemoteChangesetByStateCache']))throw new Error(_0x43609b(0x21f));return(_0x337ba2=(_0x32f4fd=this[_0x43609b(0x246)])==null?void 0x0:_0x32f4fd[_0x43609b(0x404)])==null?void 0x0:_0x337ba2[_0x43609b(0x314)](_0x32f4fd,_0x4aac8d);},_0x587bf5;}async[_0x43e0c9(0x19e)](){var _0x4db805=_0x43e0c9;const _0xdaf83e=await super[_0x4db805(0x19e)]();return this['disposeWithMe'](this[_0x4db805(0x1ae)][_0x4db805(0x30d)]((_0x8b84cf,_0x401c64)=>{var _0x323656=_0x4db805;if(_0x8b84cf[_0x323656(0x3b0)]!==CommandType[_0x323656(0x189)]||_0x401c64!=null&&_0x401c64['fromCollab']||_0x401c64!=null&&_0x401c64['onlyLocal']||_0x8b84cf['id']===RichTextEditingMutation['id'])return;const _0x3d0157=_0x8b84cf[_0x323656(0xf1)];if((_0x3d0157==null?void 0x0:_0x3d0157[_0x323656(0x38e)])!==this[_0x323656(0x442)])return;const _0x18d9a5=_0x8b84cf,_0x526d5a=this['_compressMutationService'][_0x323656(0x2d1)]['fetchThroughInterceptors'](this['_compressMutationService']['interceptor']['getInterceptPoints']()[_0x323656(0x2f9)])([_0x18d9a5],null)||[_0x18d9a5];this[_0x323656(0x1cc)](_0x526d5a[0x0]);})),_0xdaf83e;}},__name(_a14,'DocCollaborationEntity'),_a14);DocCollaborationEntity=__decorateClass$c([__decorateParam$c(0x3,Inject(Injector)),__decorateParam$c(0x4,Inject(CompressMutationService)),__decorateParam$c(0x5,Inject(LocaleService)),__decorateParam$c(0x6,Inject(RevisionService)),__decorateParam$c(0x7,Inject(CollaborationUIEventService)),__decorateParam$c(0x8,ILogService),__decorateParam$c(0x9,ICommandService),__decorateParam$c(0xa,IPermissionService),__decorateParam$c(0xb,Optional(ISingleActiveUnitService)),__decorateParam$c(0xc,Optional(ILocalCacheService))],DocCollaborationEntity);var _a15;let SheetCollaborationEntity=(_a15=class extends CollaborationEntity{constructor(_0x885ff7,_0x388282,_0x563921,_0x29cfff,_0xf40966,_0x458cc6,_0x131235,_0x438a39,_0x2c1fc7,_0x49a01a,_0x35f94d,_0x7cb8ff,_0x4f4ebb,_0x2b52e8){var _0x3ba59f=_0x43e0c9;super(_0x885ff7,_0x563921,_0x388282,_0x29cfff,_0xf40966,_0x458cc6,_0x131235,_0x2c1fc7,_0x49a01a,_0x35f94d,_0x7cb8ff,_0x4f4ebb,_0x2b52e8),this[_0x3ba59f(0x442)]=_0x885ff7,this[_0x3ba59f(0x3b0)]=_0x388282,this[_0x3ba59f(0x319)]=_0x438a39;}['_createHandler'](){var _0x1a16af=_0x43e0c9;const _0x4d4cdd=super[_0x1a16af(0x3fc)]();return _0x4d4cdd['onTransformSelections']=_0x25f4a2=>this[_0x1a16af(0x319)][_0x1a16af(0x3d9)](_0x25f4a2),_0x4d4cdd;}async[_0x43e0c9(0x19e)](){var _0x28cd9d=_0x43e0c9;const _0x3518d3=await super['_init']();return this[_0x28cd9d(0x18f)](this['_commandService'][_0x28cd9d(0x30d)]((_0x5900f1,_0x14b1b2)=>{var _0x3ba2bf=_0x28cd9d;if(_0x5900f1['type']!==CommandType[_0x3ba2bf(0x189)]||_0x14b1b2!=null&&_0x14b1b2[_0x3ba2bf(0x374)]||_0x14b1b2!=null&&_0x14b1b2[_0x3ba2bf(0x2c4)])return;const _0x4de7d0=_0x5900f1[_0x3ba2bf(0xf1)];if((_0x4de7d0==null?void 0x0:_0x4de7d0[_0x3ba2bf(0x38e)])!==this[_0x3ba2bf(0x442)])return;const _0x2ab098=_0x5900f1,_0x4c365e=this[_0x3ba2bf(0x16a)]['interceptor'][_0x3ba2bf(0x308)](this[_0x3ba2bf(0x16a)][_0x3ba2bf(0x2d1)][_0x3ba2bf(0x1ff)]()[_0x3ba2bf(0x2f9)])([_0x2ab098],null)||[_0x2ab098];this[_0x3ba2bf(0x1cc)](_0x4c365e[0x0]);})),_0x3518d3;}},__name(_a15,'SheetCollaborationEntity'),_a15);SheetCollaborationEntity=__decorateClass$c([__decorateParam$c(0x3,Inject(Injector)),__decorateParam$c(0x4,Inject(CompressMutationService)),__decorateParam$c(0x5,Inject(LocaleService)),__decorateParam$c(0x6,Inject(RevisionService)),__decorateParam$c(0x7,Inject(SheetTransformSelectionsService)),__decorateParam$c(0x8,Inject(CollaborationUIEventService)),__decorateParam$c(0x9,ILogService),__decorateParam$c(0xa,ICommandService),__decorateParam$c(0xb,IPermissionService),__decorateParam$c(0xc,Optional(ISingleActiveUnitService)),__decorateParam$c(0xd,Optional(ILocalCacheService))],SheetCollaborationEntity);var __defProp$b=Object['defineProperty'],__getOwnPropDesc$b=Object[_0x43e0c9(0x33e)],__decorateClass$b=__name((_0x135eeb,_0x5d23c7,_0x2e86f9,_0x3e46bc)=>{var _0x288dc5=_0x43e0c9;for(var _0xc9fed1=_0x3e46bc>0x1?void 0x0:_0x3e46bc?__getOwnPropDesc$b(_0x5d23c7,_0x2e86f9):_0x5d23c7,_0x49343a=_0x135eeb[_0x288dc5(0x233)]-0x1,_0x4ec219;_0x49343a>=0x0;_0x49343a--)(_0x4ec219=_0x135eeb[_0x49343a])&&(_0xc9fed1=(_0x3e46bc?_0x4ec219(_0x5d23c7,_0x2e86f9,_0xc9fed1):_0x4ec219(_0xc9fed1))||_0xc9fed1);return _0x3e46bc&&_0xc9fed1&&__defProp$b(_0x5d23c7,_0x2e86f9,_0xc9fed1),_0xc9fed1;},_0x43e0c9(0x226)),__decorateParam$b=__name((_0x52a04e,_0x43ddfc)=>(_0x2985f5,_0x105fdc)=>_0x43ddfc(_0x2985f5,_0x105fdc,_0x52a04e),'__decorateParam$b'),_a16;let CollaborationController=(_a16=class extends RxDisposable{constructor(_0x31d7df,_0x452c0f,_0x1a29d6){var _0x5e5f99=_0x43e0c9;super(),__publicField(this,_0x5e5f99(0x16f),new Map()),__publicField(this,_0x5e5f99(0x285),new Subject()),__publicField(this,'entityInit$',this[_0x5e5f99(0x285)][_0x5e5f99(0x37f)]()),(this[_0x5e5f99(0x403)]=_0x31d7df,this[_0x5e5f99(0x3d5)]=_0x452c0f,this['_univerInstanceService']=_0x1a29d6,this['_init']());}[_0x43e0c9(0x25b)](){var _0x24fc0f=_0x43e0c9;super['dispose'](),this['_entities'][_0x24fc0f(0x392)](_0x2de2b7=>_0x2de2b7[_0x24fc0f(0x25b)]()),this[_0x24fc0f(0x16f)]['clear']();}['getCollabEntity'](_0x56ed05){var _0x3f805c=_0x43e0c9,_0x509196;return(_0x509196=this[_0x3f805c(0x16f)]['get'](_0x56ed05))!=null?_0x509196:null;}[_0x43e0c9(0x35b)](_0x3c2d9f){var _0x4645fb=_0x43e0c9;const _0x1f3a2a=this[_0x4645fb(0x1a9)](_0x3c2d9f);return _0x1f3a2a?of(_0x1f3a2a):this['_entityInit$'][_0x4645fb(0x1f0)](filter(_0x3f1ab9=>_0x3f1ab9[_0x4645fb(0x442)]===_0x3c2d9f));}['readyForCollab'](_0x38d1ba){var _0x3b4217=_0x43e0c9;return firstValueFrom(this[_0x3b4217(0x35b)](_0x38d1ba)['pipe'](map(()=>{})));}[_0x43e0c9(0x19e)](){var _0x4fbe8=_0x43e0c9;this[_0x4fbe8(0x330)][_0x4fbe8(0x430)](UniverInstanceType[_0x4fbe8(0x202)])[_0x4fbe8(0x1f0)](takeUntil(this[_0x4fbe8(0x34a)]),delay(0x10))[_0x4fbe8(0x352)](async _0x3194f6=>{var _0x554ade=_0x4fbe8;const _0x346fbb=_0x3194f6[_0x554ade(0x2cb)](),_0x55a730=await this['_startCollaboration'](_0x346fbb,UniverType['UNIVER_SHEET']);this[_0x554ade(0x16f)][_0x554ade(0x116)](_0x346fbb,_0x55a730);}),this['_univerInstanceService'][_0x4fbe8(0x430)](UniverInstanceType[_0x4fbe8(0x199)])['pipe'](takeUntil(this[_0x4fbe8(0x34a)]),delay(0x10))['pipe'](filter(_0x24d428=>!_0x24d428[_0x4fbe8(0x2cb)]()[_0x4fbe8(0x12d)]('__')))['subscribe'](async _0x1bb588=>{var _0x13acd5=_0x4fbe8;const _0x13d73f=_0x1bb588[_0x13acd5(0x2cb)](),_0x517533=await this['_startCollaboration'](_0x13d73f,UniverType['UNIVER_DOC']);this[_0x13acd5(0x16f)][_0x13acd5(0x116)](_0x13d73f,_0x517533);}),merge(this[_0x4fbe8(0x330)][_0x4fbe8(0x33a)](UniverInstanceType['UNIVER_SHEET']),this[_0x4fbe8(0x330)]['getTypeOfUnitDisposed$'](UniverInstanceType[_0x4fbe8(0x199)]))['pipe'](takeUntil(this[_0x4fbe8(0x34a)]))['subscribe'](_0x4808b0=>{var _0x39c165=_0x4fbe8;const _0x4b68f=_0x4808b0['getUnitId'](),_0x884662=this['_entities'][_0x39c165(0x1c2)](_0x4b68f);_0x884662&&(_0x884662[_0x39c165(0x25b)](),this[_0x39c165(0x16f)]['delete'](_0x4b68f));});}async[_0x43e0c9(0x407)](_0x12699e,_0x11b4e5){var _0x257162=_0x43e0c9;const _0x50ee56=await this[_0x257162(0x3d5)][_0x257162(0x32d)](_0x12699e),_0x2e39dd=this['_injector'][_0x257162(0x39f)](this[_0x257162(0x445)](_0x11b4e5),_0x12699e,_0x11b4e5,_0x50ee56);return await _0x2e39dd['init'](),this[_0x257162(0x285)][_0x257162(0x2e5)](_0x2e39dd),_0x2e39dd;}[_0x43e0c9(0x445)](_0x41286b){var _0x3ec9b6=_0x43e0c9;switch(_0x41286b){case UniverType[_0x3ec9b6(0x199)]:return DocCollaborationEntity;case UniverType['UNIVER_SHEET']:return SheetCollaborationEntity;default:throw new Error(_0x3ec9b6(0x1d7)+_0x41286b);}}},__name(_a16,'CollaborationController'),_a16);CollaborationController=__decorateClass$b([__decorateParam$b(0x0,Inject(Injector)),__decorateParam$b(0x1,Inject(CollaborationSessionService)),__decorateParam$b(0x2,IUniverInstanceService)],CollaborationController);var __defProp$a=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc$a=Object['getOwnPropertyDescriptor'],__decorateClass$a=__name((_0x127141,_0x53f6ea,_0x228323,_0x3dd26f)=>{for(var _0x4359ad=_0x3dd26f>0x1?void 0x0:_0x3dd26f?__getOwnPropDesc$a(_0x53f6ea,_0x228323):_0x53f6ea,_0x14fe05=_0x127141['length']-0x1,_0x22afba;_0x14fe05>=0x0;_0x14fe05--)(_0x22afba=_0x127141[_0x14fe05])&&(_0x4359ad=(_0x3dd26f?_0x22afba(_0x53f6ea,_0x228323,_0x4359ad):_0x22afba(_0x4359ad))||_0x4359ad);return _0x3dd26f&&_0x4359ad&&__defProp$a(_0x53f6ea,_0x228323,_0x4359ad),_0x4359ad;},_0x43e0c9(0x176)),__decorateParam$a=__name((_0x12cf91,_0x539f04)=>(_0x1ce2db,_0x1bb1cc)=>_0x539f04(_0x1ce2db,_0x1bb1cc,_0x12cf91),_0x43e0c9(0x2e7));const DEFAULT_FILE_NAME_KEY='DEFAULT_FILE_NAME',UNIVER_DEFAULT_FILE_NAME='Univer';var _a17;let FileNameController=(_a17=class extends Disposable{constructor(_0x3f480b,_0x12fbaa){var _0x53145c=_0x43e0c9;super(),this[_0x53145c(0x330)]=_0x3f480b,this[_0x53145c(0x249)]=_0x12fbaa,this[_0x53145c(0x19e)]();}[_0x43e0c9(0x19e)](){var _0x54d547=_0x43e0c9;this[_0x54d547(0x18f)](this[_0x54d547(0x330)]['focused$'][_0x54d547(0x352)](()=>{var _0x514ce1=_0x54d547,_0xb3c60d;const _0x3f5009=this[_0x514ce1(0x330)][_0x514ce1(0x126)]();let _0x1f6bbc=(_0xb3c60d=this[_0x514ce1(0x249)][_0x514ce1(0x15f)](DEFAULT_FILE_NAME_KEY))!=null?_0xb3c60d:UNIVER_DEFAULT_FILE_NAME;_0x3f5009 instanceof Workbook&&(_0x1f6bbc=_0x3f5009[_0x514ce1(0x3e4)]),document[_0x514ce1(0x2c7)]=_0x1f6bbc;}));}},__name(_a17,_0x43e0c9(0x36a)),_a17);FileNameController=__decorateClass$a([__decorateParam$a(0x0,IUniverInstanceService),__decorateParam$a(0x1,IConfigService)],FileNameController);var __defProp$9=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc$9=Object['getOwnPropertyDescriptor'],__decorateClass$9=__name((_0x2fa639,_0x168bee,_0x2d976b,_0x342d9a)=>{for(var _0x3277db=_0x342d9a>0x1?void 0x0:_0x342d9a?__getOwnPropDesc$9(_0x168bee,_0x2d976b):_0x168bee,_0x21365b=_0x2fa639['length']-0x1,_0x237953;_0x21365b>=0x0;_0x21365b--)(_0x237953=_0x2fa639[_0x21365b])&&(_0x3277db=(_0x342d9a?_0x237953(_0x168bee,_0x2d976b,_0x3277db):_0x237953(_0x3277db))||_0x3277db);return _0x342d9a&&_0x3277db&&__defProp$9(_0x168bee,_0x2d976b,_0x3277db),_0x3277db;},'__decorateClass$9'),__decorateParam$9=__name((_0x4e5d7f,_0x33e6c9)=>(_0xc27844,_0x5de7d8)=>_0x33e6c9(_0xc27844,_0x5de7d8,_0x4e5d7f),'__decorateParam$9'),_a18;let AuthServerService=(_a18=class{constructor(_0x31a397,_0x40c85f,_0x118eae){var _0x4df3ab=_0x43e0c9;this[_0x4df3ab(0x249)]=_0x31a397,this[_0x4df3ab(0x141)]=_0x40c85f,this['localeService']=_0x118eae,this[_0x4df3ab(0x21c)]();}[_0x43e0c9(0x21c)](){var _0x2972e2=_0x43e0c9;this[_0x2972e2(0x141)][_0x2972e2(0x16e)]({'priority':0x1,'interceptor':__name((_0x51f040,_0x5550e2)=>_0x5550e2(_0x51f040)[_0x2972e2(0x1f0)](concatMap(async _0x411ad3=>{var _0x5427f5=_0x2972e2;const _0x35f15a=_0x411ad3;if(_0x35f15a[_0x5427f5(0x123)]===0x191){if(typeof window>'u')throw new Error('[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.');if(window[_0x5427f5(0x411)](this[_0x5427f5(0x31e)]['t'](_0x5427f5(0x1cd)))){const _0x15e45b=window[_0x5427f5(0x34b)](window[_0x5427f5(0x121)][_0x5427f5(0x2e2)]);window[_0x5427f5(0x121)][_0x5427f5(0x2e2)]=this[_0x5427f5(0x1dd)]()+_0x5427f5(0x218)+_0x15e45b;}}return _0x35f15a;})),_0x2972e2(0x2d1))});}[_0x43e0c9(0x1dd)](){var _0xb4bc96=_0x43e0c9,_0x129939,_0x12877f;const _0x47ee21=this[_0xb4bc96(0x249)][_0xb4bc96(0x15f)](LOGIN_URL_KEY),_0x417ed8=this[_0xb4bc96(0x249)][_0xb4bc96(0x15f)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x12877f=(_0x129939=_0x417ed8==null?void 0x0:_0x417ed8[_0xb4bc96(0x1bd)])!=null?_0x129939:_0x47ee21)!=null?_0x12877f:DEFAULT_LOGIN_URL;}},__name(_a18,_0x43e0c9(0x3ad)),_a18);AuthServerService=__decorateClass$9([__decorateParam$9(0x0,IConfigService),__decorateParam$9(0x1,Inject(HTTPService)),__decorateParam$9(0x2,Inject(LocaleService))],AuthServerService);var __defProp$8=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc$8=Object[_0x43e0c9(0x33e)],__decorateClass$8=__name((_0x2f91c0,_0x37ccfa,_0x4b113b,_0x550c0e)=>{var _0x1356ce=_0x43e0c9;for(var _0x4b446e=_0x550c0e>0x1?void 0x0:_0x550c0e?__getOwnPropDesc$8(_0x37ccfa,_0x4b113b):_0x37ccfa,_0x4334e3=_0x2f91c0[_0x1356ce(0x233)]-0x1,_0x8f41fe;_0x4334e3>=0x0;_0x4334e3--)(_0x8f41fe=_0x2f91c0[_0x4334e3])&&(_0x4b446e=(_0x550c0e?_0x8f41fe(_0x37ccfa,_0x4b113b,_0x4b446e):_0x8f41fe(_0x4b446e))||_0x4b446e);return _0x550c0e&&_0x4b446e&&__defProp$8(_0x37ccfa,_0x4b113b,_0x4b446e),_0x4b446e;},_0x43e0c9(0x1d9)),__decorateParam$8=__name((_0x1db054,_0x44fdf2)=>(_0x36f2a4,_0xf2dda7)=>_0x44fdf2(_0x36f2a4,_0xf2dda7,_0x1db054),_0x43e0c9(0x182));const AUTHZ_URL_KEY=_0x43e0c9(0x294),DEFAULT_AUTHZ_URL_KEY$1=_0x43e0c9(0x2d4);var _a19;let AuthzIoHttpService=(_a19=class extends Disposable{constructor(_0x1f0115,_0x18399d){var _0x42f6c1=_0x43e0c9;super(),this[_0x42f6c1(0x1b7)]=_0x1f0115,this[_0x42f6c1(0x249)]=_0x18399d,this[_0x42f6c1(0x21b)]();}[_0x43e0c9(0x21b)](){var _0x1ebc8f=_0x43e0c9;const _0x13f688=this;this[_0x1ebc8f(0x18f)](this['_HTTPService'][_0x1ebc8f(0x16e)]({'priority':0x3e7,'interceptor':MergeInterceptorFactory({'isMatch'(_0x11e301){var _0x2d5265=_0x1ebc8f,_0x4f41d7;if(_0x11e301[_0x2d5265(0x433)]===_0x2d5265(0x12c)&&((_0x4f41d7=_0x11e301['requestParams'])!=null&&_0x4f41d7[_0x2d5265(0x415)])){const {objectID:_0x28029b,objectType:_0x4dc6ce}=_0x11e301[_0x2d5265(0x2e3)][_0x2d5265(0x415)]||{};if(!_0x28029b||_0x4dc6ce===void 0x0)return!0x1;const _0x2c917c=_0x13f688[_0x2d5265(0x323)]()+'/'+_0x4dc6ce+_0x2d5265(0x13a)+_0x28029b+_0x2d5265(0x178);if(_0x11e301[_0x2d5265(0x24e)]===_0x2c917c)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x16377b){var _0x912b34=_0x1ebc8f,_0x16148e;return(_0x16148e=_0x16377b[_0x912b34(0x2e3)])==null?void 0x0:_0x16148e[_0x912b34(0x415)];},'mergeParamsToRequest'(_0x3939bd,_0x30c01c){var _0x5724b1=_0x1ebc8f;const _0x5b55cc=_0x13f688[_0x5724b1(0x323)]()+_0x5724b1(0x1db),_0x3f318e=_0x3939bd['reduce']((_0x2c7c82,_0x4251bf)=>{var _0x4da031=_0x5724b1;const {unitID:_0x25e869,objectID:_0x28fadd,objectType:_0x402fd6,actions:_0x34cc03}=_0x4251bf;return _0x2c7c82[_0x25e869]||(_0x2c7c82[_0x25e869]={}),_0x2c7c82[_0x25e869][_0x28fadd]||(_0x2c7c82[_0x25e869][_0x28fadd]={'objectID':_0x28fadd,'objectType':_0x402fd6,'actions':[]}),_0x2c7c82[_0x25e869][_0x28fadd][_0x4da031(0x146)][_0x4da031(0x119)](..._0x34cc03),_0x2c7c82;},{}),_0x366b2f=[];for(const _0x46de5f in _0x3f318e)for(const _0x38a4fc in _0x3f318e[_0x46de5f]){const {actions:_0x30147b,objectType:_0x20ee60}=_0x3f318e[_0x46de5f][_0x38a4fc],_0x182813=[...new Set(_0x30147b)];_0x366b2f[_0x5724b1(0x119)]({'unitID':_0x46de5f,'objectID':_0x38a4fc,'objectType':_0x20ee60,'actions':_0x182813});}return new HTTPRequest(_0x5724b1(0x12c),_0x5b55cc,{'headers':_0x30c01c[_0x5724b1(0x113)],'withCredentials':_0x30c01c[_0x5724b1(0x3ed)],'responseType':_0x30c01c[_0x5724b1(0x177)],'body':{'requests':_0x366b2f}});}},{'distributeResult'(_0x334824,_0x4dd679){var _0x3f65fa=_0x1ebc8f;const {objectActions:_0x499371}=_0x334824;return _0x4dd679[_0x3f65fa(0x12e)](_0x3ddeae=>{var _0x16e552=_0x3f65fa;const {unitID:_0xe855f9,objectID:_0x54ecce,actions:_0x20a281}=_0x3ddeae,_0x106822=_0x499371['find'](_0x14fae2=>_0x14fae2['unitID']===_0xe855f9&&_0x14fae2[_0x16e552(0x394)]===_0x54ecce),_0x2bfdee=_0x20a281[_0x16e552(0x12e)](_0x408441=>_0x106822==null?void 0x0:_0x106822[_0x16e552(0x146)]['find'](_0x403e70=>_0x403e70['action']===_0x408441))['filter'](_0x47bb9d=>!!_0x47bb9d);return{'config':_0x3ddeae,'result':{'actions':_0x2bfdee,'error':_0x334824[_0x16e552(0x1c8)]}};});}})}));}[_0x43e0c9(0x323)](){var _0x509d8f=_0x43e0c9,_0x238d6c,_0x38d38a;const _0x51f600=this[_0x509d8f(0x249)][_0x509d8f(0x15f)](AUTHZ_URL_KEY),_0x54482a=this[_0x509d8f(0x249)][_0x509d8f(0x15f)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x38d38a=(_0x238d6c=_0x54482a==null?void 0x0:_0x54482a[_0x509d8f(0x3af)])!=null?_0x238d6c:_0x51f600)!=null?_0x38d38a:DEFAULT_AUTHZ_URL_KEY$1;}async['create'](_0x400433){var _0x248724=_0x43e0c9;const _0x46d4aa=this[_0x248724(0x323)]()+'/'+_0x400433['objectType']+_0x248724(0x1b6);return(await this[_0x248724(0x1b7)][_0x248724(0x43e)](_0x46d4aa,{'body':_0x400433}))[_0x248724(0x415)]['objectID']||'';}async['list'](_0x34cf12){var _0xd0d9aa=_0x43e0c9;const _0x1d70dd=this[_0xd0d9aa(0x323)]()+_0xd0d9aa(0x114);return(await this[_0xd0d9aa(0x1b7)][_0xd0d9aa(0x43e)](_0x1d70dd,{'body':_0x34cf12}))[_0xd0d9aa(0x415)][_0xd0d9aa(0x423)];}async[_0x43e0c9(0x349)](_0x21faf9){var _0x192043=_0x43e0c9;const _0x31ad34=this[_0x192043(0x323)]()+'/'+_0x21faf9[_0x192043(0x303)]+'/object/'+_0x21faf9[_0x192043(0x394)];await this['_HTTPService'][_0x192043(0x1ac)](_0x31ad34,{'body':_0x21faf9});}async[_0x43e0c9(0x386)](_0x577017){var _0x5942cf=_0x43e0c9;const _0xbc8598=this[_0x5942cf(0x323)]()+'/'+_0x577017[_0x5942cf(0x303)]+_0x5942cf(0x13a)+_0x577017[_0x5942cf(0x394)]+'/allowed';return(await this[_0x5942cf(0x1b7)][_0x5942cf(0x43e)](_0xbc8598,{'body':_0x577017}))[_0x5942cf(0x415)]['actions'];}async[_0x43e0c9(0x422)](_0x1d83e4){var _0xa2bd93=_0x43e0c9;const _0x1a2a47=this[_0xa2bd93(0x323)]()+_0xa2bd93(0x1db);return(await this['_HTTPService'][_0xa2bd93(0x43e)](_0x1a2a47,{'body':{'requests':_0x1d83e4}}))[_0xa2bd93(0x415)][_0xa2bd93(0x266)];}async[_0x43e0c9(0x317)](_0x3a6d82){var _0x4689a3=_0x43e0c9;const _0x2f91a2=this['_getAPIPrefixPath']()+'/'+_0x3a6d82[_0x4689a3(0x303)]+_0x4689a3(0x160),_0x2d4b68=await this[_0x4689a3(0x1b7)]['post'](_0x2f91a2,{'body':_0x3a6d82});return{'roles':_0x2d4b68[_0x4689a3(0x415)][_0x4689a3(0x144)],'actions':_0x2d4b68[_0x4689a3(0x415)][_0x4689a3(0x146)]};}async[_0x43e0c9(0x26c)](_0xa56cdb){var _0x3266fa=_0x43e0c9;const _0x122c02=this[_0x3266fa(0x323)]()+'/collaborator';await this[_0x3266fa(0x1b7)][_0x3266fa(0x36b)](_0x122c02,{'params':{'collaboratorID':_0xa56cdb[_0x3266fa(0x3a0)],'objectID':_0xa56cdb[_0x3266fa(0x394)],'unitID':_0xa56cdb[_0x3266fa(0x442)]}});}async[_0x43e0c9(0x235)](_0x347163){var _0x1d96ae=_0x43e0c9;const _0x198a1b=this[_0x1d96ae(0x323)]()+_0x1d96ae(0x2ad);await this[_0x1d96ae(0x1b7)][_0x1d96ae(0x200)](_0x198a1b,{'body':_0x347163});}async[_0x43e0c9(0x22f)](_0x365cfe){var _0x5de9d2=_0x43e0c9;const _0x2a7a22=this['_getAPIPrefixPath']()+_0x5de9d2(0x2ad);await this[_0x5de9d2(0x1b7)][_0x5de9d2(0x43e)](_0x2a7a22,{'body':_0x365cfe});}async[_0x43e0c9(0x25a)](_0xa8c608){var _0x562183=_0x43e0c9;const _0x5aa4f3=this['_getAPIPrefixPath']()+_0x562183(0x2ad);return(await this[_0x562183(0x1b7)][_0x562183(0x1c2)](_0x5aa4f3,{'params':{'objectID':_0xa8c608[_0x562183(0x394)],'unitID':_0xa8c608[_0x562183(0x442)]}}))[_0x562183(0x415)][_0x562183(0x2eb)];}async['putCollaborators'](_0x3b23be){var _0x205327=_0x43e0c9;const _0x54022c=this[_0x205327(0x323)]()+_0x205327(0x2ad);await this['_HTTPService']['put'](_0x54022c,{'body':_0x3b23be});}},__name(_a19,_0x43e0c9(0x3fb)),_a19);AuthzIoHttpService=__decorateClass$8([__decorateParam$8(0x0,Inject(HTTPService)),__decorateParam$8(0x1,Inject(IConfigService))],AuthzIoHttpService);var commonjsGlobal=typeof globalThis<'u'?globalThis:typeof window<'u'?window:typeof global<'u'?global:typeof self<'u'?self:{};function getDefaultExportFromCjs(_0x2dc769){var _0x5d5912=_0x43e0c9;return _0x2dc769&&_0x2dc769[_0x5d5912(0x40d)]&&Object['prototype']['hasOwnProperty'][_0x5d5912(0x314)](_0x2dc769,_0x5d5912(0x110))?_0x2dc769['default']:_0x2dc769;}__name(getDefaultExportFromCjs,'getDefaultExportFromCjs');var aes$1={'exports':{}};function commonjsRequire(_0x5cac79){var _0x375efb=_0x43e0c9;throw new Error(_0x375efb(0x28c)+_0x5cac79+'\x22.\x20Please\x20configure\x20the\x20dynamicRequireTargets\x20or/and\x20ignoreDynamicRequires\x20option\x20of\x20@rollup/plugin-commonjs\x20appropriately\x20for\x20this\x20require\x20call\x20to\x20work.');}__name(commonjsRequire,_0x43e0c9(0x25c));var core$1={'exports':{}},core=core$1[_0x43e0c9(0x2c9)],hasRequiredCore;function requireCore(){var _0xecaa11=_0x43e0c9;return hasRequiredCore||(hasRequiredCore=0x1,function(_0x94815f,_0x2e6cd7){(function(_0x5816af,_0x1a07cb){var _0x3d1023=_0x5029;_0x94815f[_0x3d1023(0x2c9)]=_0x1a07cb();}(core,function(){var _0x367ff4=_0x367ff4||function(_0x24dcbc,_0x138ec0){var _0x19d587=_0x5029,_0xe6b931;if(typeof window<'u'&&window[_0x19d587(0x1da)]&&(_0xe6b931=window[_0x19d587(0x1da)]),typeof self<'u'&&self[_0x19d587(0x1da)]&&(_0xe6b931=self[_0x19d587(0x1da)]),typeof globalThis<'u'&&globalThis['crypto']&&(_0xe6b931=globalThis[_0x19d587(0x1da)]),!_0xe6b931&&typeof window<'u'&&window[_0x19d587(0x2cf)]&&(_0xe6b931=window['msCrypto']),!_0xe6b931&&typeof commonjsGlobal<'u'&&commonjsGlobal[_0x19d587(0x1da)]&&(_0xe6b931=commonjsGlobal[_0x19d587(0x1da)]),!_0xe6b931&&typeof commonjsRequire==_0x19d587(0x3e7))try{_0xe6b931=require(_0x19d587(0x1da));}catch{}var _0x577a53=__name(function(){var _0xbe9997=_0x19d587;if(_0xe6b931){if(typeof _0xe6b931[_0xbe9997(0x2b7)]=='function')try{return _0xe6b931[_0xbe9997(0x2b7)](new Uint32Array(0x1))[0x0];}catch{}if(typeof _0xe6b931['randomBytes']=='function')try{return _0xe6b931[_0xbe9997(0x2b0)](0x4)[_0xbe9997(0x416)]();}catch{}}throw new Error(_0xbe9997(0x41a));},_0x19d587(0x2c3)),_0x167de8=Object[_0x19d587(0x33c)]||(function(){function _0x42d56a(){}return __name(_0x42d56a,'F'),function(_0x144b9d){var _0xd2dc61=_0x5029,_0x120495;return _0x42d56a[_0xd2dc61(0x145)]=_0x144b9d,_0x120495=new _0x42d56a(),_0x42d56a[_0xd2dc61(0x145)]=null,_0x120495;};}()),_0x4ec1ea={},_0x36d575=_0x4ec1ea[_0x19d587(0x2f7)]={},_0x61391d=_0x36d575[_0x19d587(0x312)]=(function(){var _0x37c50c=_0x19d587;return{'extend':__name(function(_0x35ef3f){var _0x5629ff=_0x5029,_0x34221f=_0x167de8(this);return _0x35ef3f&&_0x34221f[_0x5629ff(0x16d)](_0x35ef3f),(!_0x34221f[_0x5629ff(0x3ec)](_0x5629ff(0x21c))||this['init']===_0x34221f[_0x5629ff(0x21c)])&&(_0x34221f[_0x5629ff(0x21c)]=function(){var _0x3f6373=_0x5629ff;_0x34221f[_0x3f6373(0x1e4)][_0x3f6373(0x21c)][_0x3f6373(0x2ba)](this,arguments);}),_0x34221f[_0x5629ff(0x21c)][_0x5629ff(0x145)]=_0x34221f,_0x34221f[_0x5629ff(0x1e4)]=this,_0x34221f;},_0x37c50c(0x10a)),'create':__name(function(){var _0x3a1396=_0x37c50c,_0x561691=this['extend']();return _0x561691[_0x3a1396(0x21c)][_0x3a1396(0x2ba)](_0x561691,arguments),_0x561691;},_0x37c50c(0x33c)),'init':__name(function(){},'init'),'mixIn':__name(function(_0x580397){var _0x4f37c8=_0x37c50c;for(var _0x50b252 in _0x580397)_0x580397[_0x4f37c8(0x3ec)](_0x50b252)&&(this[_0x50b252]=_0x580397[_0x50b252]);_0x580397[_0x4f37c8(0x3ec)]('toString')&&(this['toString']=_0x580397[_0x4f37c8(0x22b)]);},_0x37c50c(0x16d)),'clone':__name(function(){var _0x273b40=_0x37c50c;return this[_0x273b40(0x21c)][_0x273b40(0x145)][_0x273b40(0x10a)](this);},_0x37c50c(0x383))};}()),_0x5d0d36=_0x36d575['WordArray']=_0x61391d['extend']({'init':__name(function(_0x1c75d2,_0x4bec66){var _0x518be6=_0x19d587;_0x1c75d2=this[_0x518be6(0x3b2)]=_0x1c75d2||[],_0x4bec66!=_0x138ec0?this[_0x518be6(0x3bb)]=_0x4bec66:this[_0x518be6(0x3bb)]=_0x1c75d2[_0x518be6(0x233)]*0x4;},'init'),'toString':__name(function(_0x566257){var _0x49df5b=_0x19d587;return(_0x566257||_0x3d394f)[_0x49df5b(0xff)](this);},'toString'),'concat':__name(function(_0x5bb6a8){var _0x286d0c=_0x19d587,_0x210558=this[_0x286d0c(0x3b2)],_0xa4099e=_0x5bb6a8['words'],_0x6c2c71=this[_0x286d0c(0x3bb)],_0x4b3933=_0x5bb6a8[_0x286d0c(0x3bb)];if(this[_0x286d0c(0x154)](),_0x6c2c71%0x4)for(var _0x2c6fd1=0x0;_0x2c6fd1<_0x4b3933;_0x2c6fd1++){var _0x45a0e4=_0xa4099e[_0x2c6fd1>>>0x2]>>>0x18-_0x2c6fd1%0x4*0x8&0xff;_0x210558[_0x6c2c71+_0x2c6fd1>>>0x2]|=_0x45a0e4<<0x18-(_0x6c2c71+_0x2c6fd1)%0x4*0x8;}else{for(var _0x390c5e=0x0;_0x390c5e<_0x4b3933;_0x390c5e+=0x4)_0x210558[_0x6c2c71+_0x390c5e>>>0x2]=_0xa4099e[_0x390c5e>>>0x2];}return this[_0x286d0c(0x3bb)]+=_0x4b3933,this;},_0x19d587(0x354)),'clamp':__name(function(){var _0x158898=_0x19d587,_0x4b38ed=this[_0x158898(0x3b2)],_0x2d9b50=this['sigBytes'];_0x4b38ed[_0x2d9b50>>>0x2]&=0xffffffff<<0x20-_0x2d9b50%0x4*0x8,_0x4b38ed[_0x158898(0x233)]=_0x24dcbc[_0x158898(0x381)](_0x2d9b50/0x4);},'clamp'),'clone':__name(function(){var _0x5063b8=_0x19d587,_0x2fde9e=_0x61391d['clone']['call'](this);return _0x2fde9e[_0x5063b8(0x3b2)]=this[_0x5063b8(0x3b2)]['slice'](0x0),_0x2fde9e;},_0x19d587(0x383)),'random':__name(function(_0x91d187){var _0x1f9136=_0x19d587;for(var _0x22c51e=[],_0x532c51=0x0;_0x532c51<_0x91d187;_0x532c51+=0x4)_0x22c51e[_0x1f9136(0x119)](_0x577a53());return new _0x5d0d36[(_0x1f9136(0x21c))](_0x22c51e,_0x91d187);},_0x19d587(0x22d))}),_0x3006af=_0x4ec1ea[_0x19d587(0x316)]={},_0x3d394f=_0x3006af[_0x19d587(0x2a2)]={'stringify':__name(function(_0x36d853){var _0x46b9f9=_0x19d587;for(var _0x12a13b=_0x36d853[_0x46b9f9(0x3b2)],_0xaa9f3=_0x36d853[_0x46b9f9(0x3bb)],_0x1d30ca=[],_0x5ced6c=0x0;_0x5ced6c<_0xaa9f3;_0x5ced6c++){var _0x4225db=_0x12a13b[_0x5ced6c>>>0x2]>>>0x18-_0x5ced6c%0x4*0x8&0xff;_0x1d30ca[_0x46b9f9(0x119)]((_0x4225db>>>0x4)[_0x46b9f9(0x22b)](0x10)),_0x1d30ca[_0x46b9f9(0x119)]((_0x4225db&0xf)[_0x46b9f9(0x22b)](0x10));}return _0x1d30ca[_0x46b9f9(0x282)]('');},_0x19d587(0xff)),'parse':__name(function(_0x31a8b0){var _0x4ad14b=_0x19d587;for(var _0x24affc=_0x31a8b0['length'],_0x331b66=[],_0x549554=0x0;_0x549554<_0x24affc;_0x549554+=0x2)_0x331b66[_0x549554>>>0x3]|=parseInt(_0x31a8b0[_0x4ad14b(0x29d)](_0x549554,0x2),0x10)<<0x18-_0x549554%0x8*0x4;return new _0x5d0d36['init'](_0x331b66,_0x24affc/0x2);},_0x19d587(0x3eb))},_0xf9ecf5=_0x3006af[_0x19d587(0x3f1)]={'stringify':__name(function(_0x42788d){var _0x40b4e8=_0x19d587;for(var _0x5cc32b=_0x42788d['words'],_0x264e2e=_0x42788d[_0x40b4e8(0x3bb)],_0x5e3081=[],_0x504eae=0x0;_0x504eae<_0x264e2e;_0x504eae++){var _0x5a570c=_0x5cc32b[_0x504eae>>>0x2]>>>0x18-_0x504eae%0x4*0x8&0xff;_0x5e3081[_0x40b4e8(0x119)](String[_0x40b4e8(0x315)](_0x5a570c));}return _0x5e3081[_0x40b4e8(0x282)]('');},_0x19d587(0xff)),'parse':__name(function(_0x52d631){var _0x38382b=_0x19d587;for(var _0x544733=_0x52d631[_0x38382b(0x233)],_0x1d4577=[],_0x577643=0x0;_0x577643<_0x544733;_0x577643++)_0x1d4577[_0x577643>>>0x2]|=(_0x52d631[_0x38382b(0x2f3)](_0x577643)&0xff)<<0x18-_0x577643%0x4*0x8;return new _0x5d0d36[(_0x38382b(0x21c))](_0x1d4577,_0x544733);},_0x19d587(0x3eb))},_0x1e5371=_0x3006af[_0x19d587(0x3fa)]={'stringify':__name(function(_0x57868a){var _0x28635e=_0x19d587;try{return decodeURIComponent(escape(_0xf9ecf5[_0x28635e(0xff)](_0x57868a)));}catch{throw new Error(_0x28635e(0x23d));}},_0x19d587(0xff)),'parse':__name(function(_0x3ea40d){var _0x1b50c4=_0x19d587;return _0xf9ecf5[_0x1b50c4(0x3eb)](unescape(encodeURIComponent(_0x3ea40d)));},_0x19d587(0x3eb))},_0x221bc2=_0x36d575[_0x19d587(0x447)]=_0x61391d[_0x19d587(0x10a)]({'reset':__name(function(){var _0x67cfbf=_0x19d587;this['_data']=new _0x5d0d36['init'](),this[_0x67cfbf(0x30b)]=0x0;},_0x19d587(0x2cd)),'_append':__name(function(_0x156ae1){var _0x2aa7bd=_0x19d587;typeof _0x156ae1=='string'&&(_0x156ae1=_0x1e5371['parse'](_0x156ae1)),this['_data'][_0x2aa7bd(0x354)](_0x156ae1),this[_0x2aa7bd(0x30b)]+=_0x156ae1[_0x2aa7bd(0x3bb)];},_0x19d587(0x100)),'_process':__name(function(_0x308f5b){var _0x14963e=_0x19d587,_0x50ecba,_0x41dd5b=this[_0x14963e(0x27e)],_0x43d3bc=_0x41dd5b[_0x14963e(0x3b2)],_0x4a96bb=_0x41dd5b[_0x14963e(0x3bb)],_0x32ad96=this['blockSize'],_0x334780=_0x32ad96*0x4,_0x2d252c=_0x4a96bb/_0x334780;_0x308f5b?_0x2d252c=_0x24dcbc['ceil'](_0x2d252c):_0x2d252c=_0x24dcbc['max']((_0x2d252c|0x0)-this[_0x14963e(0x131)],0x0);var _0x3ca171=_0x2d252c*_0x32ad96,_0x8c004e=_0x24dcbc[_0x14963e(0x105)](_0x3ca171*0x4,_0x4a96bb);if(_0x3ca171){for(var _0x15a803=0x0;_0x15a803<_0x3ca171;_0x15a803+=_0x32ad96)this[_0x14963e(0x106)](_0x43d3bc,_0x15a803);_0x50ecba=_0x43d3bc[_0x14963e(0x414)](0x0,_0x3ca171),_0x41dd5b[_0x14963e(0x3bb)]-=_0x8c004e;}return new _0x5d0d36['init'](_0x50ecba,_0x8c004e);},'_process'),'clone':__name(function(){var _0x188ade=_0x19d587,_0xc35d91=_0x61391d[_0x188ade(0x383)][_0x188ade(0x314)](this);return _0xc35d91[_0x188ade(0x27e)]=this[_0x188ade(0x27e)][_0x188ade(0x383)](),_0xc35d91;},_0x19d587(0x383)),'_minBufferSize':0x0});_0x36d575[_0x19d587(0x3cc)]=_0x221bc2['extend']({'cfg':_0x61391d['extend'](),'init':__name(function(_0x302976){var _0xd16420=_0x19d587;this[_0xd16420(0x2fa)]=this[_0xd16420(0x2fa)][_0xd16420(0x10a)](_0x302976),this[_0xd16420(0x2cd)]();},_0x19d587(0x21c)),'reset':__name(function(){var _0x4859dd=_0x19d587;_0x221bc2[_0x4859dd(0x2cd)][_0x4859dd(0x314)](this),this['_doReset']();},_0x19d587(0x2cd)),'update':__name(function(_0x32dd46){var _0x25c468=_0x19d587;return this['_append'](_0x32dd46),this[_0x25c468(0x33b)](),this;},_0x19d587(0x349)),'finalize':__name(function(_0x270315){var _0x173430=_0x19d587;_0x270315&&this['_append'](_0x270315);var _0x4c6737=this[_0x173430(0x27f)]();return _0x4c6737;},'finalize'),'blockSize':0x10,'_createHelper':__name(function(_0x20391c){return function(_0x26053c,_0x469e51){var _0x5b0270=_0x5029;return new _0x20391c[(_0x5b0270(0x21c))](_0x469e51)[_0x5b0270(0x426)](_0x26053c);};},_0x19d587(0x1e3)),'_createHmacHelper':__name(function(_0x4106ca){return function(_0x4eea35,_0x501008){var _0x21f363=_0x5029;return new _0x1528ad[(_0x21f363(0x17e))][(_0x21f363(0x21c))](_0x4106ca,_0x501008)[_0x21f363(0x426)](_0x4eea35);};},_0x19d587(0x29a))});var _0x1528ad=_0x4ec1ea[_0x19d587(0x2ff)]={};return _0x4ec1ea;}(Math);return _0x367ff4;}));}(core$1)),core$1[_0xecaa11(0x2c9)];}__name(requireCore,_0x43e0c9(0x2d2));var encBase64$1={'exports':{}},encBase64=encBase64$1[_0x43e0c9(0x2c9)],hasRequiredEncBase64;function requireEncBase64(){var _0x2879f7=_0x43e0c9;return hasRequiredEncBase64||(hasRequiredEncBase64=0x1,function(_0xfac425,_0x3c7210){(function(_0x40cb32,_0x16eec7){var _0x4f30fd=_0x5029;_0xfac425[_0x4f30fd(0x2c9)]=_0x16eec7(requireCore());}(encBase64,function(_0x219e9e){var _0x47b5c0=_0x5029;return(function(){var _0x1bd527=_0x5029,_0x2c286b=_0x219e9e,_0x202a12=_0x2c286b[_0x1bd527(0x2f7)],_0x30a91=_0x202a12[_0x1bd527(0x2ce)],_0x522e6e=_0x2c286b[_0x1bd527(0x316)];_0x522e6e[_0x1bd527(0x296)]={'stringify':__name(function(_0x30f89c){var _0x57a741=_0x1bd527,_0x20e59f=_0x30f89c[_0x57a741(0x3b2)],_0x35d747=_0x30f89c[_0x57a741(0x3bb)],_0x208ec3=this['_map'];_0x30f89c[_0x57a741(0x154)]();for(var _0x86b168=[],_0xbf788c=0x0;_0xbf788c<_0x35d747;_0xbf788c+=0x3)for(var _0x4111c1=_0x20e59f[_0xbf788c>>>0x2]>>>0x18-_0xbf788c%0x4*0x8&0xff,_0x42c9e3=_0x20e59f[_0xbf788c+0x1>>>0x2]>>>0x18-(_0xbf788c+0x1)%0x4*0x8&0xff,_0x4eb2e2=_0x20e59f[_0xbf788c+0x2>>>0x2]>>>0x18-(_0xbf788c+0x2)%0x4*0x8&0xff,_0x4ad57f=_0x4111c1<<0x10|_0x42c9e3<<0x8|_0x4eb2e2,_0x3f4bdf=0x0;_0x3f4bdf<0x4&&_0xbf788c+_0x3f4bdf*0.75<_0x35d747;_0x3f4bdf++)_0x86b168[_0x57a741(0x119)](_0x208ec3[_0x57a741(0x2f4)](_0x4ad57f>>>0x6*(0x3-_0x3f4bdf)&0x3f));var _0x10af37=_0x208ec3[_0x57a741(0x2f4)](0x40);if(_0x10af37){for(;_0x86b168['length']%0x4;)_0x86b168['push'](_0x10af37);}return _0x86b168[_0x57a741(0x282)]('');},'stringify'),'parse':__name(function(_0x409308){var _0xf371b2=_0x1bd527,_0x222b54=_0x409308[_0xf371b2(0x233)],_0x286a5f=this[_0xf371b2(0x196)],_0x1acf97=this[_0xf371b2(0x2de)];if(!_0x1acf97){_0x1acf97=this['_reverseMap']=[];for(var _0x572124=0x0;_0x572124<_0x286a5f[_0xf371b2(0x233)];_0x572124++)_0x1acf97[_0x286a5f[_0xf371b2(0x2f3)](_0x572124)]=_0x572124;}var _0x2a9bb3=_0x286a5f['charAt'](0x40);if(_0x2a9bb3){var _0x599c3c=_0x409308[_0xf371b2(0x355)](_0x2a9bb3);_0x599c3c!==-0x1&&(_0x222b54=_0x599c3c);}return _0x21eae0(_0x409308,_0x222b54,_0x1acf97);},'parse'),'_map':_0x1bd527(0x27a)};function _0x21eae0(_0x41c4ad,_0xef34a3,_0x2c3f29){var _0x2105b5=_0x1bd527;for(var _0x3eab8a=[],_0x16fe6f=0x0,_0x54fac8=0x0;_0x54fac8<_0xef34a3;_0x54fac8++)if(_0x54fac8%0x4){var _0x3b5698=_0x2c3f29[_0x41c4ad[_0x2105b5(0x2f3)](_0x54fac8-0x1)]<<_0x54fac8%0x4*0x2,_0x3064d7=_0x2c3f29[_0x41c4ad[_0x2105b5(0x2f3)](_0x54fac8)]>>>0x6-_0x54fac8%0x4*0x2,_0x5a7dfd=_0x3b5698|_0x3064d7;_0x3eab8a[_0x16fe6f>>>0x2]|=_0x5a7dfd<<0x18-_0x16fe6f%0x4*0x8,_0x16fe6f++;}return _0x30a91[_0x2105b5(0x33c)](_0x3eab8a,_0x16fe6f);}__name(_0x21eae0,_0x1bd527(0x388));}()),_0x219e9e[_0x47b5c0(0x316)][_0x47b5c0(0x296)];}));}(encBase64$1)),encBase64$1[_0x2879f7(0x2c9)];}__name(requireEncBase64,'requireEncBase64');var md5$1={'exports':{}},md5=md5$1[_0x43e0c9(0x2c9)],hasRequiredMd5;function requireMd5(){var _0x445232=_0x43e0c9;return hasRequiredMd5||(hasRequiredMd5=0x1,function(_0x1e1932,_0x292453){(function(_0x129e0e,_0x59f8d7){_0x1e1932['exports']=_0x59f8d7(requireCore());}(md5,function(_0x2020db){var _0x5efa8d=_0x5029;return function(_0x5419c2){var _0x137269=_0x5029,_0x1f1dca=_0x2020db,_0x4ce837=_0x1f1dca[_0x137269(0x2f7)],_0x48465c=_0x4ce837[_0x137269(0x2ce)],_0x5f0c68=_0x4ce837['Hasher'],_0x28afeb=_0x1f1dca['algo'],_0x384bf1=[];(function(){var _0x553e17=_0x137269;for(var _0x44b5cb=0x0;_0x44b5cb<0x40;_0x44b5cb++)_0x384bf1[_0x44b5cb]=_0x5419c2[_0x553e17(0x331)](_0x5419c2[_0x553e17(0x1e1)](_0x44b5cb+0x1))*0x100000000|0x0;}());var _0xdb31c5=_0x28afeb['MD5']=_0x5f0c68[_0x137269(0x10a)]({'_doReset':__name(function(){var _0x10f8ce=_0x137269;this['_hash']=new _0x48465c[(_0x10f8ce(0x21c))]([0x67452301,0xefcdab89,0x98badcfe,0x10325476]);},_0x137269(0x142)),'_doProcessBlock':__name(function(_0x2dbf25,_0x4a9f7b){var _0x25cc78=_0x137269;for(var _0x184028=0x0;_0x184028<0x10;_0x184028++){var _0x128f97=_0x4a9f7b+_0x184028,_0x4bcc34=_0x2dbf25[_0x128f97];_0x2dbf25[_0x128f97]=(_0x4bcc34<<0x8|_0x4bcc34>>>0x18)&0xff00ff|(_0x4bcc34<<0x18|_0x4bcc34>>>0x8)&0xff00ff00;}var _0x380b58=this[_0x25cc78(0x2bd)][_0x25cc78(0x3b2)],_0x16049f=_0x2dbf25[_0x4a9f7b+0x0],_0x42ea01=_0x2dbf25[_0x4a9f7b+0x1],_0x426730=_0x2dbf25[_0x4a9f7b+0x2],_0x1fb618=_0x2dbf25[_0x4a9f7b+0x3],_0x36d81c=_0x2dbf25[_0x4a9f7b+0x4],_0x2f0906=_0x2dbf25[_0x4a9f7b+0x5],_0x4431e4=_0x2dbf25[_0x4a9f7b+0x6],_0x4e3b93=_0x2dbf25[_0x4a9f7b+0x7],_0x10a924=_0x2dbf25[_0x4a9f7b+0x8],_0x155f8f=_0x2dbf25[_0x4a9f7b+0x9],_0x140e40=_0x2dbf25[_0x4a9f7b+0xa],_0x3def50=_0x2dbf25[_0x4a9f7b+0xb],_0x3fcead=_0x2dbf25[_0x4a9f7b+0xc],_0x5e9323=_0x2dbf25[_0x4a9f7b+0xd],_0x58db76=_0x2dbf25[_0x4a9f7b+0xe],_0x37fada=_0x2dbf25[_0x4a9f7b+0xf],_0x58593e=_0x380b58[0x0],_0x349c1e=_0x380b58[0x1],_0x3923f9=_0x380b58[0x2],_0x729e76=_0x380b58[0x3];_0x58593e=_0x57e147(_0x58593e,_0x349c1e,_0x3923f9,_0x729e76,_0x16049f,0x7,_0x384bf1[0x0]),_0x729e76=_0x57e147(_0x729e76,_0x58593e,_0x349c1e,_0x3923f9,_0x42ea01,0xc,_0x384bf1[0x1]),_0x3923f9=_0x57e147(_0x3923f9,_0x729e76,_0x58593e,_0x349c1e,_0x426730,0x11,_0x384bf1[0x2]),_0x349c1e=_0x57e147(_0x349c1e,_0x3923f9,_0x729e76,_0x58593e,_0x1fb618,0x16,_0x384bf1[0x3]),_0x58593e=_0x57e147(_0x58593e,_0x349c1e,_0x3923f9,_0x729e76,_0x36d81c,0x7,_0x384bf1[0x4]),_0x729e76=_0x57e147(_0x729e76,_0x58593e,_0x349c1e,_0x3923f9,_0x2f0906,0xc,_0x384bf1[0x5]),_0x3923f9=_0x57e147(_0x3923f9,_0x729e76,_0x58593e,_0x349c1e,_0x4431e4,0x11,_0x384bf1[0x6]),_0x349c1e=_0x57e147(_0x349c1e,_0x3923f9,_0x729e76,_0x58593e,_0x4e3b93,0x16,_0x384bf1[0x7]),_0x58593e=_0x57e147(_0x58593e,_0x349c1e,_0x3923f9,_0x729e76,_0x10a924,0x7,_0x384bf1[0x8]),_0x729e76=_0x57e147(_0x729e76,_0x58593e,_0x349c1e,_0x3923f9,_0x155f8f,0xc,_0x384bf1[0x9]),_0x3923f9=_0x57e147(_0x3923f9,_0x729e76,_0x58593e,_0x349c1e,_0x140e40,0x11,_0x384bf1[0xa]),_0x349c1e=_0x57e147(_0x349c1e,_0x3923f9,_0x729e76,_0x58593e,_0x3def50,0x16,_0x384bf1[0xb]),_0x58593e=_0x57e147(_0x58593e,_0x349c1e,_0x3923f9,_0x729e76,_0x3fcead,0x7,_0x384bf1[0xc]),_0x729e76=_0x57e147(_0x729e76,_0x58593e,_0x349c1e,_0x3923f9,_0x5e9323,0xc,_0x384bf1[0xd]),_0x3923f9=_0x57e147(_0x3923f9,_0x729e76,_0x58593e,_0x349c1e,_0x58db76,0x11,_0x384bf1[0xe]),_0x349c1e=_0x57e147(_0x349c1e,_0x3923f9,_0x729e76,_0x58593e,_0x37fada,0x16,_0x384bf1[0xf]),_0x58593e=_0x21ce6e(_0x58593e,_0x349c1e,_0x3923f9,_0x729e76,_0x42ea01,0x5,_0x384bf1[0x10]),_0x729e76=_0x21ce6e(_0x729e76,_0x58593e,_0x349c1e,_0x3923f9,_0x4431e4,0x9,_0x384bf1[0x11]),_0x3923f9=_0x21ce6e(_0x3923f9,_0x729e76,_0x58593e,_0x349c1e,_0x3def50,0xe,_0x384bf1[0x12]),_0x349c1e=_0x21ce6e(_0x349c1e,_0x3923f9,_0x729e76,_0x58593e,_0x16049f,0x14,_0x384bf1[0x13]),_0x58593e=_0x21ce6e(_0x58593e,_0x349c1e,_0x3923f9,_0x729e76,_0x2f0906,0x5,_0x384bf1[0x14]),_0x729e76=_0x21ce6e(_0x729e76,_0x58593e,_0x349c1e,_0x3923f9,_0x140e40,0x9,_0x384bf1[0x15]),_0x3923f9=_0x21ce6e(_0x3923f9,_0x729e76,_0x58593e,_0x349c1e,_0x37fada,0xe,_0x384bf1[0x16]),_0x349c1e=_0x21ce6e(_0x349c1e,_0x3923f9,_0x729e76,_0x58593e,_0x36d81c,0x14,_0x384bf1[0x17]),_0x58593e=_0x21ce6e(_0x58593e,_0x349c1e,_0x3923f9,_0x729e76,_0x155f8f,0x5,_0x384bf1[0x18]),_0x729e76=_0x21ce6e(_0x729e76,_0x58593e,_0x349c1e,_0x3923f9,_0x58db76,0x9,_0x384bf1[0x19]),_0x3923f9=_0x21ce6e(_0x3923f9,_0x729e76,_0x58593e,_0x349c1e,_0x1fb618,0xe,_0x384bf1[0x1a]),_0x349c1e=_0x21ce6e(_0x349c1e,_0x3923f9,_0x729e76,_0x58593e,_0x10a924,0x14,_0x384bf1[0x1b]),_0x58593e=_0x21ce6e(_0x58593e,_0x349c1e,_0x3923f9,_0x729e76,_0x5e9323,0x5,_0x384bf1[0x1c]),_0x729e76=_0x21ce6e(_0x729e76,_0x58593e,_0x349c1e,_0x3923f9,_0x426730,0x9,_0x384bf1[0x1d]),_0x3923f9=_0x21ce6e(_0x3923f9,_0x729e76,_0x58593e,_0x349c1e,_0x4e3b93,0xe,_0x384bf1[0x1e]),_0x349c1e=_0x21ce6e(_0x349c1e,_0x3923f9,_0x729e76,_0x58593e,_0x3fcead,0x14,_0x384bf1[0x1f]),_0x58593e=_0x58d1b2(_0x58593e,_0x349c1e,_0x3923f9,_0x729e76,_0x2f0906,0x4,_0x384bf1[0x20]),_0x729e76=_0x58d1b2(_0x729e76,_0x58593e,_0x349c1e,_0x3923f9,_0x10a924,0xb,_0x384bf1[0x21]),_0x3923f9=_0x58d1b2(_0x3923f9,_0x729e76,_0x58593e,_0x349c1e,_0x3def50,0x10,_0x384bf1[0x22]),_0x349c1e=_0x58d1b2(_0x349c1e,_0x3923f9,_0x729e76,_0x58593e,_0x58db76,0x17,_0x384bf1[0x23]),_0x58593e=_0x58d1b2(_0x58593e,_0x349c1e,_0x3923f9,_0x729e76,_0x42ea01,0x4,_0x384bf1[0x24]),_0x729e76=_0x58d1b2(_0x729e76,_0x58593e,_0x349c1e,_0x3923f9,_0x36d81c,0xb,_0x384bf1[0x25]),_0x3923f9=_0x58d1b2(_0x3923f9,_0x729e76,_0x58593e,_0x349c1e,_0x4e3b93,0x10,_0x384bf1[0x26]),_0x349c1e=_0x58d1b2(_0x349c1e,_0x3923f9,_0x729e76,_0x58593e,_0x140e40,0x17,_0x384bf1[0x27]),_0x58593e=_0x58d1b2(_0x58593e,_0x349c1e,_0x3923f9,_0x729e76,_0x5e9323,0x4,_0x384bf1[0x28]),_0x729e76=_0x58d1b2(_0x729e76,_0x58593e,_0x349c1e,_0x3923f9,_0x16049f,0xb,_0x384bf1[0x29]),_0x3923f9=_0x58d1b2(_0x3923f9,_0x729e76,_0x58593e,_0x349c1e,_0x1fb618,0x10,_0x384bf1[0x2a]),_0x349c1e=_0x58d1b2(_0x349c1e,_0x3923f9,_0x729e76,_0x58593e,_0x4431e4,0x17,_0x384bf1[0x2b]),_0x58593e=_0x58d1b2(_0x58593e,_0x349c1e,_0x3923f9,_0x729e76,_0x155f8f,0x4,_0x384bf1[0x2c]),_0x729e76=_0x58d1b2(_0x729e76,_0x58593e,_0x349c1e,_0x3923f9,_0x3fcead,0xb,_0x384bf1[0x2d]),_0x3923f9=_0x58d1b2(_0x3923f9,_0x729e76,_0x58593e,_0x349c1e,_0x37fada,0x10,_0x384bf1[0x2e]),_0x349c1e=_0x58d1b2(_0x349c1e,_0x3923f9,_0x729e76,_0x58593e,_0x426730,0x17,_0x384bf1[0x2f]),_0x58593e=_0x15253a(_0x58593e,_0x349c1e,_0x3923f9,_0x729e76,_0x16049f,0x6,_0x384bf1[0x30]),_0x729e76=_0x15253a(_0x729e76,_0x58593e,_0x349c1e,_0x3923f9,_0x4e3b93,0xa,_0x384bf1[0x31]),_0x3923f9=_0x15253a(_0x3923f9,_0x729e76,_0x58593e,_0x349c1e,_0x58db76,0xf,_0x384bf1[0x32]),_0x349c1e=_0x15253a(_0x349c1e,_0x3923f9,_0x729e76,_0x58593e,_0x2f0906,0x15,_0x384bf1[0x33]),_0x58593e=_0x15253a(_0x58593e,_0x349c1e,_0x3923f9,_0x729e76,_0x3fcead,0x6,_0x384bf1[0x34]),_0x729e76=_0x15253a(_0x729e76,_0x58593e,_0x349c1e,_0x3923f9,_0x1fb618,0xa,_0x384bf1[0x35]),_0x3923f9=_0x15253a(_0x3923f9,_0x729e76,_0x58593e,_0x349c1e,_0x140e40,0xf,_0x384bf1[0x36]),_0x349c1e=_0x15253a(_0x349c1e,_0x3923f9,_0x729e76,_0x58593e,_0x42ea01,0x15,_0x384bf1[0x37]),_0x58593e=_0x15253a(_0x58593e,_0x349c1e,_0x3923f9,_0x729e76,_0x10a924,0x6,_0x384bf1[0x38]),_0x729e76=_0x15253a(_0x729e76,_0x58593e,_0x349c1e,_0x3923f9,_0x37fada,0xa,_0x384bf1[0x39]),_0x3923f9=_0x15253a(_0x3923f9,_0x729e76,_0x58593e,_0x349c1e,_0x4431e4,0xf,_0x384bf1[0x3a]),_0x349c1e=_0x15253a(_0x349c1e,_0x3923f9,_0x729e76,_0x58593e,_0x5e9323,0x15,_0x384bf1[0x3b]),_0x58593e=_0x15253a(_0x58593e,_0x349c1e,_0x3923f9,_0x729e76,_0x36d81c,0x6,_0x384bf1[0x3c]),_0x729e76=_0x15253a(_0x729e76,_0x58593e,_0x349c1e,_0x3923f9,_0x3def50,0xa,_0x384bf1[0x3d]),_0x3923f9=_0x15253a(_0x3923f9,_0x729e76,_0x58593e,_0x349c1e,_0x426730,0xf,_0x384bf1[0x3e]),_0x349c1e=_0x15253a(_0x349c1e,_0x3923f9,_0x729e76,_0x58593e,_0x155f8f,0x15,_0x384bf1[0x3f]),_0x380b58[0x0]=_0x380b58[0x0]+_0x58593e|0x0,_0x380b58[0x1]=_0x380b58[0x1]+_0x349c1e|0x0,_0x380b58[0x2]=_0x380b58[0x2]+_0x3923f9|0x0,_0x380b58[0x3]=_0x380b58[0x3]+_0x729e76|0x0;},'_doProcessBlock'),'_doFinalize':__name(function(){var _0x952705=_0x137269,_0x2d5331=this[_0x952705(0x27e)],_0x5eb53b=_0x2d5331[_0x952705(0x3b2)],_0x3f9c43=this[_0x952705(0x30b)]*0x8,_0xb8d749=_0x2d5331['sigBytes']*0x8;_0x5eb53b[_0xb8d749>>>0x5]|=0x80<<0x18-_0xb8d749%0x20;var _0x2bf46a=_0x5419c2[_0x952705(0x2b2)](_0x3f9c43/0x100000000),_0x3c0f1a=_0x3f9c43;_0x5eb53b[(_0xb8d749+0x40>>>0x9<<0x4)+0xf]=(_0x2bf46a<<0x8|_0x2bf46a>>>0x18)&0xff00ff|(_0x2bf46a<<0x18|_0x2bf46a>>>0x8)&0xff00ff00,_0x5eb53b[(_0xb8d749+0x40>>>0x9<<0x4)+0xe]=(_0x3c0f1a<<0x8|_0x3c0f1a>>>0x18)&0xff00ff|(_0x3c0f1a<<0x18|_0x3c0f1a>>>0x8)&0xff00ff00,_0x2d5331[_0x952705(0x3bb)]=(_0x5eb53b[_0x952705(0x233)]+0x1)*0x4,this[_0x952705(0x33b)]();for(var _0xacdc83=this[_0x952705(0x2bd)],_0xa36a45=_0xacdc83[_0x952705(0x3b2)],_0x167298=0x0;_0x167298<0x4;_0x167298++){var _0x35b09b=_0xa36a45[_0x167298];_0xa36a45[_0x167298]=(_0x35b09b<<0x8|_0x35b09b>>>0x18)&0xff00ff|(_0x35b09b<<0x18|_0x35b09b>>>0x8)&0xff00ff00;}return _0xacdc83;},_0x137269(0x27f)),'clone':__name(function(){var _0x3a6ebf=_0x137269,_0x25fab5=_0x5f0c68['clone']['call'](this);return _0x25fab5[_0x3a6ebf(0x2bd)]=this[_0x3a6ebf(0x2bd)][_0x3a6ebf(0x383)](),_0x25fab5;},_0x137269(0x383))});function _0x57e147(_0x1bd106,_0x365559,_0x465842,_0x3e6787,_0x1306c5,_0x3465b5,_0xc95ce5){var _0x227b1c=_0x1bd106+(_0x365559&_0x465842|~_0x365559&_0x3e6787)+_0x1306c5+_0xc95ce5;return(_0x227b1c<<_0x3465b5|_0x227b1c>>>0x20-_0x3465b5)+_0x365559;}__name(_0x57e147,'FF');function _0x21ce6e(_0x472a65,_0x4d1550,_0x26caac,_0x39627e,_0x57feb0,_0x696d04,_0x1584a6){var _0x1b31cc=_0x472a65+(_0x4d1550&_0x39627e|_0x26caac&~_0x39627e)+_0x57feb0+_0x1584a6;return(_0x1b31cc<<_0x696d04|_0x1b31cc>>>0x20-_0x696d04)+_0x4d1550;}__name(_0x21ce6e,'GG');function _0x58d1b2(_0x106e87,_0x48632d,_0xf44beb,_0x22b256,_0x1440ad,_0x19dc25,_0x306995){var _0x199a74=_0x106e87+(_0x48632d^_0xf44beb^_0x22b256)+_0x1440ad+_0x306995;return(_0x199a74<<_0x19dc25|_0x199a74>>>0x20-_0x19dc25)+_0x48632d;}__name(_0x58d1b2,'HH');function _0x15253a(_0x2efdc0,_0x1dcb75,_0x1a5515,_0x3f3039,_0x194f69,_0x109c4e,_0x539d1c){var _0x5a8c66=_0x2efdc0+(_0x1a5515^(_0x1dcb75|~_0x3f3039))+_0x194f69+_0x539d1c;return(_0x5a8c66<<_0x109c4e|_0x5a8c66>>>0x20-_0x109c4e)+_0x1dcb75;}__name(_0x15253a,'II'),_0x1f1dca['MD5']=_0x5f0c68[_0x137269(0x1e3)](_0xdb31c5),_0x1f1dca[_0x137269(0x2f8)]=_0x5f0c68['_createHmacHelper'](_0xdb31c5);}(Math),_0x2020db[_0x5efa8d(0x44c)];}));}(md5$1)),md5$1[_0x445232(0x2c9)];}__name(requireMd5,_0x43e0c9(0x357));var evpkdf$1={'exports':{}},sha1$1={'exports':{}},sha1=sha1$1[_0x43e0c9(0x2c9)],hasRequiredSha1;function requireSha1(){var _0x3c54e8=_0x43e0c9;return hasRequiredSha1||(hasRequiredSha1=0x1,function(_0x55526d,_0x391430){(function(_0x246c0f,_0x259e21){var _0x3a3f34=_0x5029;_0x55526d[_0x3a3f34(0x2c9)]=_0x259e21(requireCore());}(sha1,function(_0x40b3a3){var _0x95fc13=_0x5029;return(function(){var _0x161f49=_0x5029,_0x5269ad=_0x40b3a3,_0x3e9c3b=_0x5269ad[_0x161f49(0x2f7)],_0x10b597=_0x3e9c3b[_0x161f49(0x2ce)],_0x5a8718=_0x3e9c3b[_0x161f49(0x3cc)],_0x58cca6=_0x5269ad[_0x161f49(0x2ff)],_0x5d90a5=[],_0x1fc9b5=_0x58cca6[_0x161f49(0x17f)]=_0x5a8718[_0x161f49(0x10a)]({'_doReset':__name(function(){var _0x40b90d=_0x161f49;this[_0x40b90d(0x2bd)]=new _0x10b597[(_0x40b90d(0x21c))]([0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0]);},_0x161f49(0x142)),'_doProcessBlock':__name(function(_0x406dfc,_0x4f1407){var _0x3374ca=_0x161f49;for(var _0x389833=this[_0x3374ca(0x2bd)]['words'],_0x102b83=_0x389833[0x0],_0xb0d0b3=_0x389833[0x1],_0x14e974=_0x389833[0x2],_0x5aac57=_0x389833[0x3],_0x591440=_0x389833[0x4],_0x137158=0x0;_0x137158<0x50;_0x137158++){if(_0x137158<0x10)_0x5d90a5[_0x137158]=_0x406dfc[_0x4f1407+_0x137158]|0x0;else{var _0x4c5098=_0x5d90a5[_0x137158-0x3]^_0x5d90a5[_0x137158-0x8]^_0x5d90a5[_0x137158-0xe]^_0x5d90a5[_0x137158-0x10];_0x5d90a5[_0x137158]=_0x4c5098<<0x1|_0x4c5098>>>0x1f;}var _0x496b24=(_0x102b83<<0x5|_0x102b83>>>0x1b)+_0x591440+_0x5d90a5[_0x137158];_0x137158<0x14?_0x496b24+=(_0xb0d0b3&_0x14e974|~_0xb0d0b3&_0x5aac57)+0x5a827999:_0x137158<0x28?_0x496b24+=(_0xb0d0b3^_0x14e974^_0x5aac57)+0x6ed9eba1:_0x137158<0x3c?_0x496b24+=(_0xb0d0b3&_0x14e974|_0xb0d0b3&_0x5aac57|_0x14e974&_0x5aac57)-0x70e44324:_0x496b24+=(_0xb0d0b3^_0x14e974^_0x5aac57)-0x359d3e2a,_0x591440=_0x5aac57,_0x5aac57=_0x14e974,_0x14e974=_0xb0d0b3<<0x1e|_0xb0d0b3>>>0x2,_0xb0d0b3=_0x102b83,_0x102b83=_0x496b24;}_0x389833[0x0]=_0x389833[0x0]+_0x102b83|0x0,_0x389833[0x1]=_0x389833[0x1]+_0xb0d0b3|0x0,_0x389833[0x2]=_0x389833[0x2]+_0x14e974|0x0,_0x389833[0x3]=_0x389833[0x3]+_0x5aac57|0x0,_0x389833[0x4]=_0x389833[0x4]+_0x591440|0x0;},'_doProcessBlock'),'_doFinalize':__name(function(){var _0x203843=_0x161f49,_0x5e6a2=this[_0x203843(0x27e)],_0x4f74c9=_0x5e6a2[_0x203843(0x3b2)],_0x142288=this[_0x203843(0x30b)]*0x8,_0x1a18dc=_0x5e6a2['sigBytes']*0x8;return _0x4f74c9[_0x1a18dc>>>0x5]|=0x80<<0x18-_0x1a18dc%0x20,_0x4f74c9[(_0x1a18dc+0x40>>>0x9<<0x4)+0xe]=Math[_0x203843(0x2b2)](_0x142288/0x100000000),_0x4f74c9[(_0x1a18dc+0x40>>>0x9<<0x4)+0xf]=_0x142288,_0x5e6a2[_0x203843(0x3bb)]=_0x4f74c9[_0x203843(0x233)]*0x4,this[_0x203843(0x33b)](),this[_0x203843(0x2bd)];},'_doFinalize'),'clone':__name(function(){var _0x289542=_0x161f49,_0x4af0a8=_0x5a8718[_0x289542(0x383)][_0x289542(0x314)](this);return _0x4af0a8[_0x289542(0x2bd)]=this['_hash'][_0x289542(0x383)](),_0x4af0a8;},_0x161f49(0x383))});_0x5269ad[_0x161f49(0x17f)]=_0x5a8718['_createHelper'](_0x1fc9b5),_0x5269ad[_0x161f49(0x356)]=_0x5a8718[_0x161f49(0x29a)](_0x1fc9b5);}()),_0x40b3a3[_0x95fc13(0x17f)];}));}(sha1$1)),sha1$1[_0x3c54e8(0x2c9)];}__name(requireSha1,_0x43e0c9(0x3c5));var hmac$1={'exports':{}},hmac=hmac$1[_0x43e0c9(0x2c9)],hasRequiredHmac;function requireHmac(){var _0xb38622=_0x43e0c9;return hasRequiredHmac||(hasRequiredHmac=0x1,function(_0x37ffda,_0xb3a4b3){(function(_0x1565e4,_0x33d5df){var _0x44e1d1=_0x5029;_0x37ffda[_0x44e1d1(0x2c9)]=_0x33d5df(requireCore());}(hmac,function(_0x23c537){(function(){var _0x2ae2ea=_0x5029,_0x904ef7=_0x23c537,_0x321aa1=_0x904ef7[_0x2ae2ea(0x2f7)],_0x39ce29=_0x321aa1['Base'],_0x264d0d=_0x904ef7[_0x2ae2ea(0x316)],_0x5a5bf4=_0x264d0d[_0x2ae2ea(0x3fa)],_0x3b7c2f=_0x904ef7['algo'];_0x3b7c2f[_0x2ae2ea(0x17e)]=_0x39ce29['extend']({'init':__name(function(_0x1c37a3,_0xa4683d){var _0x11d628=_0x2ae2ea;_0x1c37a3=this[_0x11d628(0x367)]=new _0x1c37a3[(_0x11d628(0x21c))](),typeof _0xa4683d==_0x11d628(0x17a)&&(_0xa4683d=_0x5a5bf4[_0x11d628(0x3eb)](_0xa4683d));var _0x36f11b=_0x1c37a3[_0x11d628(0x30c)],_0x2a9761=_0x36f11b*0x4;_0xa4683d[_0x11d628(0x3bb)]>_0x2a9761&&(_0xa4683d=_0x1c37a3[_0x11d628(0x426)](_0xa4683d)),_0xa4683d[_0x11d628(0x154)]();for(var _0x30a804=this[_0x11d628(0x13b)]=_0xa4683d['clone'](),_0x42b149=this[_0x11d628(0x363)]=_0xa4683d[_0x11d628(0x383)](),_0x381674=_0x30a804[_0x11d628(0x3b2)],_0x46bac0=_0x42b149[_0x11d628(0x3b2)],_0x91a2ce=0x0;_0x91a2ce<_0x36f11b;_0x91a2ce++)_0x381674[_0x91a2ce]^=0x5c5c5c5c,_0x46bac0[_0x91a2ce]^=0x36363636;_0x30a804[_0x11d628(0x3bb)]=_0x42b149[_0x11d628(0x3bb)]=_0x2a9761,this[_0x11d628(0x2cd)]();},_0x2ae2ea(0x21c)),'reset':__name(function(){var _0x1866d5=_0x2ae2ea,_0x1b0ce9=this[_0x1866d5(0x367)];_0x1b0ce9['reset'](),_0x1b0ce9['update'](this[_0x1866d5(0x363)]);},_0x2ae2ea(0x2cd)),'update':__name(function(_0x565ed3){var _0x24d738=_0x2ae2ea;return this[_0x24d738(0x367)]['update'](_0x565ed3),this;},'update'),'finalize':__name(function(_0x44ada6){var _0x1fd4ca=_0x2ae2ea,_0x206700=this[_0x1fd4ca(0x367)],_0x8e5c57=_0x206700[_0x1fd4ca(0x426)](_0x44ada6);_0x206700[_0x1fd4ca(0x2cd)]();var _0x1d53c7=_0x206700[_0x1fd4ca(0x426)](this['_oKey'][_0x1fd4ca(0x383)]()[_0x1fd4ca(0x354)](_0x8e5c57));return _0x1d53c7;},_0x2ae2ea(0x426))});}());}));}(hmac$1)),hmac$1[_0xb38622(0x2c9)];}__name(requireHmac,_0x43e0c9(0x18d));var evpkdf=evpkdf$1[_0x43e0c9(0x2c9)],hasRequiredEvpkdf;function requireEvpkdf(){var _0x4679e4=_0x43e0c9;return hasRequiredEvpkdf||(hasRequiredEvpkdf=0x1,function(_0x393750,_0x4f3c9f){(function(_0x3083be,_0x384378,_0x2acc12){var _0xa64b87=_0x5029;_0x393750[_0xa64b87(0x2c9)]=_0x384378(requireCore(),requireSha1(),requireHmac());}(evpkdf,function(_0x3319de){var _0xb400c0=_0x5029;return(function(){var _0x43116b=_0x5029,_0x571b58=_0x3319de,_0xbadd05=_0x571b58['lib'],_0x356647=_0xbadd05[_0x43116b(0x312)],_0x37fc6d=_0xbadd05[_0x43116b(0x2ce)],_0x30482c=_0x571b58[_0x43116b(0x2ff)],_0x3a34b4=_0x30482c[_0x43116b(0x44c)],_0x5e49be=_0x30482c[_0x43116b(0x231)]=_0x356647[_0x43116b(0x10a)]({'cfg':_0x356647['extend']({'keySize':0x80/0x20,'hasher':_0x3a34b4,'iterations':0x1}),'init':__name(function(_0x3fddab){var _0x280ec3=_0x43116b;this[_0x280ec3(0x2fa)]=this[_0x280ec3(0x2fa)][_0x280ec3(0x10a)](_0x3fddab);},'init'),'compute':__name(function(_0x10ba44,_0x246566){var _0x4a5cdb=_0x43116b;for(var _0x18f605,_0x99abe6=this[_0x4a5cdb(0x2fa)],_0x1076d0=_0x99abe6['hasher'][_0x4a5cdb(0x33c)](),_0x4cc4a4=_0x37fc6d[_0x4a5cdb(0x33c)](),_0xb9bcb=_0x4cc4a4['words'],_0x1f2abe=_0x99abe6[_0x4a5cdb(0x3ff)],_0xbc7f0e=_0x99abe6['iterations'];_0xb9bcb['length']<_0x1f2abe;){_0x18f605&&_0x1076d0[_0x4a5cdb(0x349)](_0x18f605),_0x18f605=_0x1076d0[_0x4a5cdb(0x349)](_0x10ba44)[_0x4a5cdb(0x426)](_0x246566),_0x1076d0[_0x4a5cdb(0x2cd)]();for(var _0x233cb2=0x1;_0x233cb2<_0xbc7f0e;_0x233cb2++)_0x18f605=_0x1076d0[_0x4a5cdb(0x426)](_0x18f605),_0x1076d0[_0x4a5cdb(0x2cd)]();_0x4cc4a4[_0x4a5cdb(0x354)](_0x18f605);}return _0x4cc4a4[_0x4a5cdb(0x3bb)]=_0x1f2abe*0x4,_0x4cc4a4;},_0x43116b(0x1a8))});_0x571b58[_0x43116b(0x231)]=function(_0x5a3938,_0x1de0cd,_0x167312){var _0x1c314d=_0x43116b;return _0x5e49be[_0x1c314d(0x33c)](_0x167312)['compute'](_0x5a3938,_0x1de0cd);};}()),_0x3319de[_0xb400c0(0x231)];}));}(evpkdf$1)),evpkdf$1[_0x4679e4(0x2c9)];}__name(requireEvpkdf,_0x43e0c9(0x24f));var cipherCore$1={'exports':{}},cipherCore=cipherCore$1['exports'],hasRequiredCipherCore;function requireCipherCore(){var _0xcf64f7=_0x43e0c9;return hasRequiredCipherCore||(hasRequiredCipherCore=0x1,function(_0x2d0117,_0x7a49bc){(function(_0x3f2115,_0x3824b1,_0x15947b){var _0x208f0a=_0x5029;_0x2d0117[_0x208f0a(0x2c9)]=_0x3824b1(requireCore(),requireEvpkdf());}(cipherCore,function(_0x2402dd){var _0x13edf3=_0x5029;_0x2402dd['lib'][_0x13edf3(0x3f0)]||function(_0x2d345d){var _0x17668a=_0x13edf3,_0x5ca3e6=_0x2402dd,_0x5c8dd3=_0x5ca3e6[_0x17668a(0x2f7)],_0x2b881c=_0x5c8dd3[_0x17668a(0x312)],_0x1edd3c=_0x5c8dd3['WordArray'],_0x1a7e9c=_0x5c8dd3[_0x17668a(0x447)],_0x2bda69=_0x5ca3e6[_0x17668a(0x316)];_0x2bda69[_0x17668a(0x3fa)];var _0x351f52=_0x2bda69[_0x17668a(0x296)],_0x5f4596=_0x5ca3e6[_0x17668a(0x2ff)],_0x1fcfa9=_0x5f4596[_0x17668a(0x231)],_0x3c5c01=_0x5c8dd3[_0x17668a(0x3f0)]=_0x1a7e9c[_0x17668a(0x10a)]({'cfg':_0x2b881c[_0x17668a(0x10a)](),'createEncryptor':__name(function(_0x1de4b9,_0x322152){var _0x11cb3b=_0x17668a;return this[_0x11cb3b(0x33c)](this[_0x11cb3b(0x2ef)],_0x1de4b9,_0x322152);},_0x17668a(0x166)),'createDecryptor':__name(function(_0x2ba41b,_0xe97da2){var _0x4f85f2=_0x17668a;return this[_0x4f85f2(0x33c)](this[_0x4f85f2(0x34d)],_0x2ba41b,_0xe97da2);},_0x17668a(0x36e)),'init':__name(function(_0x451033,_0x28ab87,_0x2139b8){var _0x1fb672=_0x17668a;this[_0x1fb672(0x2fa)]=this[_0x1fb672(0x2fa)][_0x1fb672(0x10a)](_0x2139b8),this[_0x1fb672(0x351)]=_0x451033,this['_key']=_0x28ab87,this[_0x1fb672(0x2cd)]();},_0x17668a(0x21c)),'reset':__name(function(){var _0x4a8d24=_0x17668a;_0x1a7e9c[_0x4a8d24(0x2cd)]['call'](this),this[_0x4a8d24(0x142)]();},_0x17668a(0x2cd)),'process':__name(function(_0x57a49c){var _0x3bb0af=_0x17668a;return this[_0x3bb0af(0x100)](_0x57a49c),this['_process']();},_0x17668a(0x262)),'finalize':__name(function(_0x2b6f75){var _0x5d9a95=_0x17668a;_0x2b6f75&&this[_0x5d9a95(0x100)](_0x2b6f75);var _0x189b37=this[_0x5d9a95(0x27f)]();return _0x189b37;},_0x17668a(0x426)),'keySize':0x80/0x20,'ivSize':0x80/0x20,'_ENC_XFORM_MODE':0x1,'_DEC_XFORM_MODE':0x2,'_createHelper':(function(){function _0xb35fdc(_0x4c8f15){return typeof _0x4c8f15=='string'?_0x429279:_0x2b2665;}return __name(_0xb35fdc,'selectCipherStrategy'),function(_0x5ab706){var _0x2206b0=_0x5029;return{'encrypt':__name(function(_0x2a90c1,_0x566f6f,_0x35eac6){var _0x1f2d57=_0x5029;return _0xb35fdc(_0x566f6f)[_0x1f2d57(0x353)](_0x5ab706,_0x2a90c1,_0x566f6f,_0x35eac6);},_0x2206b0(0x353)),'decrypt':__name(function(_0xe7a852,_0x301368,_0x917b28){var _0x59b0c4=_0x2206b0;return _0xb35fdc(_0x301368)[_0x59b0c4(0x418)](_0x5ab706,_0xe7a852,_0x301368,_0x917b28);},_0x2206b0(0x418))};};}())});_0x5c8dd3[_0x17668a(0x2c0)]=_0x3c5c01[_0x17668a(0x10a)]({'_doFinalize':__name(function(){var _0x2fdf92=_0x17668a,_0x2ba820=this[_0x2fdf92(0x33b)](!0x0);return _0x2ba820;},'_doFinalize'),'blockSize':0x1});var _0x251c40=_0x5ca3e6[_0x17668a(0x1a6)]={},_0x4cb9cd=_0x5c8dd3[_0x17668a(0x183)]=_0x2b881c[_0x17668a(0x10a)]({'createEncryptor':__name(function(_0x335f81,_0x8e63cf){var _0x429519=_0x17668a;return this[_0x429519(0x276)][_0x429519(0x33c)](_0x335f81,_0x8e63cf);},_0x17668a(0x166)),'createDecryptor':__name(function(_0x55ba8e,_0x2f2d9e){var _0x41a7d2=_0x17668a;return this[_0x41a7d2(0x2a7)][_0x41a7d2(0x33c)](_0x55ba8e,_0x2f2d9e);},_0x17668a(0x36e)),'init':__name(function(_0x92687,_0x293f4f){var _0x72af06=_0x17668a;this['_cipher']=_0x92687,this[_0x72af06(0x1ce)]=_0x293f4f;},_0x17668a(0x21c))}),_0x265a4e=_0x251c40[_0x17668a(0x117)]=(function(){var _0x459d5f=_0x17668a,_0x3372ba=_0x4cb9cd[_0x459d5f(0x10a)]();_0x3372ba[_0x459d5f(0x276)]=_0x3372ba[_0x459d5f(0x10a)]({'processBlock':__name(function(_0x53ab6e,_0x5d5445){var _0x4fc48a=_0x459d5f,_0x54e360=this[_0x4fc48a(0x14e)],_0x414ccd=_0x54e360[_0x4fc48a(0x30c)];_0x29b175[_0x4fc48a(0x314)](this,_0x53ab6e,_0x5d5445,_0x414ccd),_0x54e360[_0x4fc48a(0x377)](_0x53ab6e,_0x5d5445),this[_0x4fc48a(0x15b)]=_0x53ab6e[_0x4fc48a(0x1ea)](_0x5d5445,_0x5d5445+_0x414ccd);},_0x459d5f(0x365))}),_0x3372ba[_0x459d5f(0x2a7)]=_0x3372ba[_0x459d5f(0x10a)]({'processBlock':__name(function(_0x5913ec,_0x1794cc){var _0x32eb9e=_0x459d5f,_0x5894e8=this[_0x32eb9e(0x14e)],_0xe8a9e8=_0x5894e8[_0x32eb9e(0x30c)],_0x52081e=_0x5913ec[_0x32eb9e(0x1ea)](_0x1794cc,_0x1794cc+_0xe8a9e8);_0x5894e8[_0x32eb9e(0x39a)](_0x5913ec,_0x1794cc),_0x29b175[_0x32eb9e(0x314)](this,_0x5913ec,_0x1794cc,_0xe8a9e8),this[_0x32eb9e(0x15b)]=_0x52081e;},_0x459d5f(0x365))});function _0x29b175(_0x48b6c8,_0x22740a,_0x245309){var _0x380f12=_0x459d5f,_0x453dab,_0x68a54b=this[_0x380f12(0x1ce)];_0x68a54b?(_0x453dab=_0x68a54b,this[_0x380f12(0x1ce)]=_0x2d345d):_0x453dab=this[_0x380f12(0x15b)];for(var _0x106adf=0x0;_0x106adf<_0x245309;_0x106adf++)_0x48b6c8[_0x22740a+_0x106adf]^=_0x453dab[_0x106adf];}return __name(_0x29b175,_0x459d5f(0x1ad)),_0x3372ba;}()),_0x427435=_0x5ca3e6[_0x17668a(0x3d2)]={},_0x56b209=_0x427435[_0x17668a(0x3a9)]={'pad':__name(function(_0x13708b,_0x34ffd3){var _0x2912a2=_0x17668a;for(var _0x1eacf1=_0x34ffd3*0x4,_0x30f371=_0x1eacf1-_0x13708b[_0x2912a2(0x3bb)]%_0x1eacf1,_0x2b858a=_0x30f371<<0x18|_0x30f371<<0x10|_0x30f371<<0x8|_0x30f371,_0x4b1ef1=[],_0x384318=0x0;_0x384318<_0x30f371;_0x384318+=0x4)_0x4b1ef1[_0x2912a2(0x119)](_0x2b858a);var _0x22ce6c=_0x1edd3c[_0x2912a2(0x33c)](_0x4b1ef1,_0x30f371);_0x13708b[_0x2912a2(0x354)](_0x22ce6c);},'pad'),'unpad':__name(function(_0x346e89){var _0x439183=_0x17668a,_0xc8c34d=_0x346e89[_0x439183(0x3b2)][_0x346e89['sigBytes']-0x1>>>0x2]&0xff;_0x346e89[_0x439183(0x3bb)]-=_0xc8c34d;},_0x17668a(0x164))};_0x5c8dd3[_0x17668a(0x1f2)]=_0x3c5c01['extend']({'cfg':_0x3c5c01[_0x17668a(0x2fa)][_0x17668a(0x10a)]({'mode':_0x265a4e,'padding':_0x56b209}),'reset':__name(function(){var _0x456df5=_0x17668a,_0x3d8906;_0x3c5c01[_0x456df5(0x2cd)][_0x456df5(0x314)](this);var _0x4c1e6c=this[_0x456df5(0x2fa)],_0x443ba7=_0x4c1e6c['iv'],_0x263fae=_0x4c1e6c[_0x456df5(0x1a6)];this[_0x456df5(0x351)]==this[_0x456df5(0x2ef)]?_0x3d8906=_0x263fae[_0x456df5(0x166)]:(_0x3d8906=_0x263fae[_0x456df5(0x36e)],this[_0x456df5(0x131)]=0x1),this[_0x456df5(0x248)]&&this[_0x456df5(0x248)][_0x456df5(0x387)]==_0x3d8906?this[_0x456df5(0x248)][_0x456df5(0x21c)](this,_0x443ba7&&_0x443ba7[_0x456df5(0x3b2)]):(this[_0x456df5(0x248)]=_0x3d8906['call'](_0x263fae,this,_0x443ba7&&_0x443ba7[_0x456df5(0x3b2)]),this[_0x456df5(0x248)][_0x456df5(0x387)]=_0x3d8906);},_0x17668a(0x2cd)),'_doProcessBlock':__name(function(_0x33951f,_0x128ade){var _0x376fb4=_0x17668a;this['_mode'][_0x376fb4(0x365)](_0x33951f,_0x128ade);},_0x17668a(0x106)),'_doFinalize':__name(function(){var _0x4f6eb0=_0x17668a,_0x55f47c,_0x2f4157=this['cfg']['padding'];return this[_0x4f6eb0(0x351)]==this[_0x4f6eb0(0x2ef)]?(_0x2f4157[_0x4f6eb0(0x3d2)](this[_0x4f6eb0(0x27e)],this[_0x4f6eb0(0x30c)]),_0x55f47c=this[_0x4f6eb0(0x33b)](!0x0)):(_0x55f47c=this[_0x4f6eb0(0x33b)](!0x0),_0x2f4157[_0x4f6eb0(0x164)](_0x55f47c)),_0x55f47c;},'_doFinalize'),'blockSize':0x80/0x20});var _0x3747a3=_0x5c8dd3[_0x17668a(0x1b4)]=_0x2b881c[_0x17668a(0x10a)]({'init':__name(function(_0x177fc6){var _0x168b62=_0x17668a;this[_0x168b62(0x16d)](_0x177fc6);},'init'),'toString':__name(function(_0x3a9e3f){var _0x1c4b63=_0x17668a;return(_0x3a9e3f||this[_0x1c4b63(0x30f)])[_0x1c4b63(0xff)](this);},_0x17668a(0x22b))}),_0x2ee513=_0x5ca3e6[_0x17668a(0x281)]={},_0x5b9090=_0x2ee513[_0x17668a(0x3ab)]={'stringify':__name(function(_0x304347){var _0x3786d0=_0x17668a,_0x467fb7,_0x242457=_0x304347[_0x3786d0(0x109)],_0x592065=_0x304347['salt'];return _0x592065?_0x467fb7=_0x1edd3c[_0x3786d0(0x33c)]([0x53616c74,0x65645f5f])[_0x3786d0(0x354)](_0x592065)[_0x3786d0(0x354)](_0x242457):_0x467fb7=_0x242457,_0x467fb7[_0x3786d0(0x22b)](_0x351f52);},_0x17668a(0xff)),'parse':__name(function(_0x29d5d0){var _0x26ba13=_0x17668a,_0x55f38a,_0x5e7388=_0x351f52[_0x26ba13(0x3eb)](_0x29d5d0),_0x3b8983=_0x5e7388['words'];return _0x3b8983[0x0]==0x53616c74&&_0x3b8983[0x1]==0x65645f5f&&(_0x55f38a=_0x1edd3c[_0x26ba13(0x33c)](_0x3b8983[_0x26ba13(0x1ea)](0x2,0x4)),_0x3b8983[_0x26ba13(0x414)](0x0,0x4),_0x5e7388[_0x26ba13(0x3bb)]-=0x10),_0x3747a3[_0x26ba13(0x33c)]({'ciphertext':_0x5e7388,'salt':_0x55f38a});},_0x17668a(0x3eb))},_0x2b2665=_0x5c8dd3[_0x17668a(0x13f)]=_0x2b881c[_0x17668a(0x10a)]({'cfg':_0x2b881c[_0x17668a(0x10a)]({'format':_0x5b9090}),'encrypt':__name(function(_0x21dba5,_0x226eb9,_0x4351a1,_0x38d9bb){var _0x235dce=_0x17668a;_0x38d9bb=this[_0x235dce(0x2fa)][_0x235dce(0x10a)](_0x38d9bb);var _0x18a7b1=_0x21dba5[_0x235dce(0x166)](_0x4351a1,_0x38d9bb),_0x2b9bfe=_0x18a7b1[_0x235dce(0x426)](_0x226eb9),_0x44feb4=_0x18a7b1[_0x235dce(0x2fa)];return _0x3747a3[_0x235dce(0x33c)]({'ciphertext':_0x2b9bfe,'key':_0x4351a1,'iv':_0x44feb4['iv'],'algorithm':_0x21dba5,'mode':_0x44feb4[_0x235dce(0x1a6)],'padding':_0x44feb4[_0x235dce(0x138)],'blockSize':_0x21dba5[_0x235dce(0x30c)],'formatter':_0x38d9bb['format']});},_0x17668a(0x353)),'decrypt':__name(function(_0x879b5a,_0x1dd0f1,_0x3027f1,_0x36b132){var _0x4059c9=_0x17668a;_0x36b132=this[_0x4059c9(0x2fa)][_0x4059c9(0x10a)](_0x36b132),_0x1dd0f1=this['_parse'](_0x1dd0f1,_0x36b132['format']);var _0x22445d=_0x879b5a[_0x4059c9(0x36e)](_0x3027f1,_0x36b132)['finalize'](_0x1dd0f1['ciphertext']);return _0x22445d;},_0x17668a(0x418)),'_parse':__name(function(_0x2d4997,_0xbe47cc){var _0x53df13=_0x17668a;return typeof _0x2d4997=='string'?_0xbe47cc[_0x53df13(0x3eb)](_0x2d4997,this):_0x2d4997;},_0x17668a(0x286))}),_0x449cc4=_0x5ca3e6[_0x17668a(0x258)]={},_0x5d81e5=_0x449cc4['OpenSSL']={'execute':__name(function(_0xea32b,_0x3ec64e,_0x875bb2,_0x4d44e2,_0x59a03d){var _0x2c5f62=_0x17668a;if(_0x4d44e2||(_0x4d44e2=_0x1edd3c[_0x2c5f62(0x22d)](0x40/0x8)),_0x59a03d)var _0x5ac15a=_0x1fcfa9['create']({'keySize':_0x3ec64e+_0x875bb2,'hasher':_0x59a03d})[_0x2c5f62(0x1a8)](_0xea32b,_0x4d44e2);else var _0x5ac15a=_0x1fcfa9[_0x2c5f62(0x33c)]({'keySize':_0x3ec64e+_0x875bb2})[_0x2c5f62(0x1a8)](_0xea32b,_0x4d44e2);var _0x2a7334=_0x1edd3c['create'](_0x5ac15a[_0x2c5f62(0x3b2)][_0x2c5f62(0x1ea)](_0x3ec64e),_0x875bb2*0x4);return _0x5ac15a[_0x2c5f62(0x3bb)]=_0x3ec64e*0x4,_0x3747a3['create']({'key':_0x5ac15a,'iv':_0x2a7334,'salt':_0x4d44e2});},'execute')},_0x429279=_0x5c8dd3[_0x17668a(0x1be)]=_0x2b2665[_0x17668a(0x10a)]({'cfg':_0x2b2665[_0x17668a(0x2fa)]['extend']({'kdf':_0x5d81e5}),'encrypt':__name(function(_0x36b59f,_0x2e079b,_0xdfbb4c,_0x5bb452){var _0x135aaf=_0x17668a;_0x5bb452=this[_0x135aaf(0x2fa)][_0x135aaf(0x10a)](_0x5bb452);var _0x622c9f=_0x5bb452[_0x135aaf(0x258)][_0x135aaf(0x11d)](_0xdfbb4c,_0x36b59f['keySize'],_0x36b59f['ivSize'],_0x5bb452[_0x135aaf(0x31a)],_0x5bb452[_0x135aaf(0x223)]);_0x5bb452['iv']=_0x622c9f['iv'];var _0xa2c6c8=_0x2b2665[_0x135aaf(0x353)][_0x135aaf(0x314)](this,_0x36b59f,_0x2e079b,_0x622c9f['key'],_0x5bb452);return _0xa2c6c8[_0x135aaf(0x16d)](_0x622c9f),_0xa2c6c8;},_0x17668a(0x353)),'decrypt':__name(function(_0x5e67c9,_0x226fd9,_0x190e2e,_0x1e5720){var _0x56d606=_0x17668a;_0x1e5720=this['cfg']['extend'](_0x1e5720),_0x226fd9=this[_0x56d606(0x286)](_0x226fd9,_0x1e5720[_0x56d606(0x281)]);var _0x54a9f2=_0x1e5720[_0x56d606(0x258)][_0x56d606(0x11d)](_0x190e2e,_0x5e67c9[_0x56d606(0x3ff)],_0x5e67c9[_0x56d606(0x179)],_0x226fd9[_0x56d606(0x31a)],_0x1e5720[_0x56d606(0x223)]);_0x1e5720['iv']=_0x54a9f2['iv'];var _0xd9811a=_0x2b2665[_0x56d606(0x418)][_0x56d606(0x314)](this,_0x5e67c9,_0x226fd9,_0x54a9f2['key'],_0x1e5720);return _0xd9811a;},_0x17668a(0x418))});}();}));}(cipherCore$1)),cipherCore$1[_0xcf64f7(0x2c9)];}__name(requireCipherCore,_0x43e0c9(0x2ca));var aes=aes$1[_0x43e0c9(0x2c9)],hasRequiredAes;function requireAes(){var _0x2664d7=_0x43e0c9;return hasRequiredAes||(hasRequiredAes=0x1,function(_0xdd9064,_0x5cba6f){(function(_0x1d593b,_0x1e05d9,_0x28f6e9){var _0x461f3f=_0x5029;_0xdd9064[_0x461f3f(0x2c9)]=_0x1e05d9(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore());}(aes,function(_0x4930ec){var _0x2c8b93=_0x5029;return(function(){var _0x4cf687=_0x5029,_0x32c959=_0x4930ec,_0x4d45dd=_0x32c959[_0x4cf687(0x2f7)],_0x1f1fd4=_0x4d45dd[_0x4cf687(0x1f2)],_0x4d29bd=_0x32c959[_0x4cf687(0x2ff)],_0x2e1a3a=[],_0x4a9d42=[],_0x2d1d61=[],_0x59ae38=[],_0x1e419e=[],_0x2cf774=[],_0x2ec34e=[],_0x2592e1=[],_0x20b7cb=[],_0xd81cf1=[];(function(){for(var _0x37903c=[],_0x22d4c0=0x0;_0x22d4c0<0x100;_0x22d4c0++)_0x22d4c0<0x80?_0x37903c[_0x22d4c0]=_0x22d4c0<<0x1:_0x37903c[_0x22d4c0]=_0x22d4c0<<0x1^0x11b;for(var _0x1ceffc=0x0,_0x51daeb=0x0,_0x22d4c0=0x0;_0x22d4c0<0x100;_0x22d4c0++){var _0x2b8641=_0x51daeb^_0x51daeb<<0x1^_0x51daeb<<0x2^_0x51daeb<<0x3^_0x51daeb<<0x4;_0x2b8641=_0x2b8641>>>0x8^_0x2b8641&0xff^0x63,_0x2e1a3a[_0x1ceffc]=_0x2b8641,_0x4a9d42[_0x2b8641]=_0x1ceffc;var _0x115edd=_0x37903c[_0x1ceffc],_0x5da2d5=_0x37903c[_0x115edd],_0x3d74b7=_0x37903c[_0x5da2d5],_0x28745b=_0x37903c[_0x2b8641]*0x101^_0x2b8641*0x1010100;_0x2d1d61[_0x1ceffc]=_0x28745b<<0x18|_0x28745b>>>0x8,_0x59ae38[_0x1ceffc]=_0x28745b<<0x10|_0x28745b>>>0x10,_0x1e419e[_0x1ceffc]=_0x28745b<<0x8|_0x28745b>>>0x18,_0x2cf774[_0x1ceffc]=_0x28745b;var _0x28745b=_0x3d74b7*0x1010101^_0x5da2d5*0x10001^_0x115edd*0x101^_0x1ceffc*0x1010100;_0x2ec34e[_0x2b8641]=_0x28745b<<0x18|_0x28745b>>>0x8,_0x2592e1[_0x2b8641]=_0x28745b<<0x10|_0x28745b>>>0x10,_0x20b7cb[_0x2b8641]=_0x28745b<<0x8|_0x28745b>>>0x18,_0xd81cf1[_0x2b8641]=_0x28745b,_0x1ceffc?(_0x1ceffc=_0x115edd^_0x37903c[_0x37903c[_0x37903c[_0x3d74b7^_0x115edd]]],_0x51daeb^=_0x37903c[_0x37903c[_0x51daeb]]):_0x1ceffc=_0x51daeb=0x1;}}());var _0x458f66=[0x0,0x1,0x2,0x4,0x8,0x10,0x20,0x40,0x80,0x1b,0x36],_0x24cfd9=_0x4d29bd[_0x4cf687(0x341)]=_0x1f1fd4[_0x4cf687(0x10a)]({'_doReset':__name(function(){var _0x25b548=_0x4cf687,_0x466047;if(!(this[_0x25b548(0x120)]&&this['_keyPriorReset']===this[_0x25b548(0x36d)])){for(var _0x52da8d=this[_0x25b548(0x1a4)]=this[_0x25b548(0x36d)],_0x4af5d9=_0x52da8d['words'],_0x1bbd54=_0x52da8d[_0x25b548(0x3bb)]/0x4,_0x24cd6f=this[_0x25b548(0x120)]=_0x1bbd54+0x6,_0xd39ef=(_0x24cd6f+0x1)*0x4,_0x11a8ea=this['_keySchedule']=[],_0x25c75a=0x0;_0x25c75a<_0xd39ef;_0x25c75a++)_0x25c75a<_0x1bbd54?_0x11a8ea[_0x25c75a]=_0x4af5d9[_0x25c75a]:(_0x466047=_0x11a8ea[_0x25c75a-0x1],_0x25c75a%_0x1bbd54?_0x1bbd54>0x6&&_0x25c75a%_0x1bbd54==0x4&&(_0x466047=_0x2e1a3a[_0x466047>>>0x18]<<0x18|_0x2e1a3a[_0x466047>>>0x10&0xff]<<0x10|_0x2e1a3a[_0x466047>>>0x8&0xff]<<0x8|_0x2e1a3a[_0x466047&0xff]):(_0x466047=_0x466047<<0x8|_0x466047>>>0x18,_0x466047=_0x2e1a3a[_0x466047>>>0x18]<<0x18|_0x2e1a3a[_0x466047>>>0x10&0xff]<<0x10|_0x2e1a3a[_0x466047>>>0x8&0xff]<<0x8|_0x2e1a3a[_0x466047&0xff],_0x466047^=_0x458f66[_0x25c75a/_0x1bbd54|0x0]<<0x18),_0x11a8ea[_0x25c75a]=_0x11a8ea[_0x25c75a-_0x1bbd54]^_0x466047);for(var _0x475a53=this['_invKeySchedule']=[],_0x2bfc5f=0x0;_0x2bfc5f<_0xd39ef;_0x2bfc5f++){var _0x25c75a=_0xd39ef-_0x2bfc5f;if(_0x2bfc5f%0x4)var _0x466047=_0x11a8ea[_0x25c75a];else var _0x466047=_0x11a8ea[_0x25c75a-0x4];_0x2bfc5f<0x4||_0x25c75a<=0x4?_0x475a53[_0x2bfc5f]=_0x466047:_0x475a53[_0x2bfc5f]=_0x2ec34e[_0x2e1a3a[_0x466047>>>0x18]]^_0x2592e1[_0x2e1a3a[_0x466047>>>0x10&0xff]]^_0x20b7cb[_0x2e1a3a[_0x466047>>>0x8&0xff]]^_0xd81cf1[_0x2e1a3a[_0x466047&0xff]];}}},'_doReset'),'encryptBlock':__name(function(_0x4206ef,_0x117c51){var _0x21c355=_0x4cf687;this[_0x21c355(0x379)](_0x4206ef,_0x117c51,this[_0x21c355(0x201)],_0x2d1d61,_0x59ae38,_0x1e419e,_0x2cf774,_0x2e1a3a);},_0x4cf687(0x377)),'decryptBlock':__name(function(_0x230fab,_0x497a67){var _0x36e756=_0x4cf687,_0x6b3d04=_0x230fab[_0x497a67+0x1];_0x230fab[_0x497a67+0x1]=_0x230fab[_0x497a67+0x3],_0x230fab[_0x497a67+0x3]=_0x6b3d04,this[_0x36e756(0x379)](_0x230fab,_0x497a67,this['_invKeySchedule'],_0x2ec34e,_0x2592e1,_0x20b7cb,_0xd81cf1,_0x4a9d42);var _0x6b3d04=_0x230fab[_0x497a67+0x1];_0x230fab[_0x497a67+0x1]=_0x230fab[_0x497a67+0x3],_0x230fab[_0x497a67+0x3]=_0x6b3d04;},'decryptBlock'),'_doCryptBlock':__name(function(_0x5a4726,_0x5a5b66,_0x458cfa,_0x11dbf7,_0x5588f5,_0x3e2d19,_0x413c4e,_0x463c92){var _0x174868=_0x4cf687;for(var _0x18fc72=this[_0x174868(0x120)],_0x216df7=_0x5a4726[_0x5a5b66]^_0x458cfa[0x0],_0x628328=_0x5a4726[_0x5a5b66+0x1]^_0x458cfa[0x1],_0x3a239e=_0x5a4726[_0x5a5b66+0x2]^_0x458cfa[0x2],_0x13a951=_0x5a4726[_0x5a5b66+0x3]^_0x458cfa[0x3],_0x91a4d8=0x4,_0x16fe4a=0x1;_0x16fe4a<_0x18fc72;_0x16fe4a++){var _0x298ce4=_0x11dbf7[_0x216df7>>>0x18]^_0x5588f5[_0x628328>>>0x10&0xff]^_0x3e2d19[_0x3a239e>>>0x8&0xff]^_0x413c4e[_0x13a951&0xff]^_0x458cfa[_0x91a4d8++],_0xbe1fe=_0x11dbf7[_0x628328>>>0x18]^_0x5588f5[_0x3a239e>>>0x10&0xff]^_0x3e2d19[_0x13a951>>>0x8&0xff]^_0x413c4e[_0x216df7&0xff]^_0x458cfa[_0x91a4d8++],_0x424b24=_0x11dbf7[_0x3a239e>>>0x18]^_0x5588f5[_0x13a951>>>0x10&0xff]^_0x3e2d19[_0x216df7>>>0x8&0xff]^_0x413c4e[_0x628328&0xff]^_0x458cfa[_0x91a4d8++],_0x3e26db=_0x11dbf7[_0x13a951>>>0x18]^_0x5588f5[_0x216df7>>>0x10&0xff]^_0x3e2d19[_0x628328>>>0x8&0xff]^_0x413c4e[_0x3a239e&0xff]^_0x458cfa[_0x91a4d8++];_0x216df7=_0x298ce4,_0x628328=_0xbe1fe,_0x3a239e=_0x424b24,_0x13a951=_0x3e26db;}var _0x298ce4=(_0x463c92[_0x216df7>>>0x18]<<0x18|_0x463c92[_0x628328>>>0x10&0xff]<<0x10|_0x463c92[_0x3a239e>>>0x8&0xff]<<0x8|_0x463c92[_0x13a951&0xff])^_0x458cfa[_0x91a4d8++],_0xbe1fe=(_0x463c92[_0x628328>>>0x18]<<0x18|_0x463c92[_0x3a239e>>>0x10&0xff]<<0x10|_0x463c92[_0x13a951>>>0x8&0xff]<<0x8|_0x463c92[_0x216df7&0xff])^_0x458cfa[_0x91a4d8++],_0x424b24=(_0x463c92[_0x3a239e>>>0x18]<<0x18|_0x463c92[_0x13a951>>>0x10&0xff]<<0x10|_0x463c92[_0x216df7>>>0x8&0xff]<<0x8|_0x463c92[_0x628328&0xff])^_0x458cfa[_0x91a4d8++],_0x3e26db=(_0x463c92[_0x13a951>>>0x18]<<0x18|_0x463c92[_0x216df7>>>0x10&0xff]<<0x10|_0x463c92[_0x628328>>>0x8&0xff]<<0x8|_0x463c92[_0x3a239e&0xff])^_0x458cfa[_0x91a4d8++];_0x5a4726[_0x5a5b66]=_0x298ce4,_0x5a4726[_0x5a5b66+0x1]=_0xbe1fe,_0x5a4726[_0x5a5b66+0x2]=_0x424b24,_0x5a4726[_0x5a5b66+0x3]=_0x3e26db;},_0x4cf687(0x379)),'keySize':0x100/0x20});_0x32c959[_0x4cf687(0x341)]=_0x1f1fd4['_createHelper'](_0x24cfd9);}()),_0x4930ec[_0x2c8b93(0x341)];}));}(aes$1)),aes$1[_0x2664d7(0x2c9)];}__name(requireAes,_0x43e0c9(0x306));var aesExports=requireAes();const AES=getDefaultExportFromCjs(aesExports);var encBase64Exports=requireEncBase64();const Base64=getDefaultExportFromCjs(encBase64Exports);var encUtf8$1={'exports':{}},encUtf8=encUtf8$1[_0x43e0c9(0x2c9)],hasRequiredEncUtf8;function requireEncUtf8(){return hasRequiredEncUtf8||(hasRequiredEncUtf8=0x1,function(_0x238c24,_0x202d5b){(function(_0x188545,_0x36fd43){var _0x573c24=_0x5029;_0x238c24[_0x573c24(0x2c9)]=_0x36fd43(requireCore());}(encUtf8,function(_0xeac569){var _0x2906ef=_0x5029;return _0xeac569[_0x2906ef(0x316)][_0x2906ef(0x3fa)];}));}(encUtf8$1)),encUtf8$1['exports'];}__name(requireEncUtf8,'requireEncUtf8');var encUtf8Exports=requireEncUtf8();const Utf8=getDefaultExportFromCjs(encUtf8Exports);var libTypedarrays$1={'exports':{}},libTypedarrays=libTypedarrays$1[_0x43e0c9(0x2c9)],hasRequiredLibTypedarrays;function requireLibTypedarrays(){return hasRequiredLibTypedarrays||(hasRequiredLibTypedarrays=0x1,function(_0x44c39a,_0x21b63a){(function(_0x569c8f,_0x5dda0f){var _0x2761d3=_0x5029;_0x44c39a[_0x2761d3(0x2c9)]=_0x5dda0f(requireCore());}(libTypedarrays,function(_0x29a69f){var _0x2f353d=_0x5029;return(function(){var _0x541b37=_0x5029;if(typeof ArrayBuffer==_0x541b37(0x3e7)){var _0x11db45=_0x29a69f,_0x225d44=_0x11db45['lib'],_0x1f3d3d=_0x225d44[_0x541b37(0x2ce)],_0x5190f6=_0x1f3d3d['init'],_0x58c89c=_0x1f3d3d['init']=function(_0x2c29ae){var _0x3928a5=_0x541b37;if(_0x2c29ae instanceof ArrayBuffer&&(_0x2c29ae=new Uint8Array(_0x2c29ae)),(_0x2c29ae instanceof Int8Array||typeof Uint8ClampedArray<'u'&&_0x2c29ae instanceof Uint8ClampedArray||_0x2c29ae instanceof Int16Array||_0x2c29ae instanceof Uint16Array||_0x2c29ae instanceof Int32Array||_0x2c29ae instanceof Uint32Array||_0x2c29ae instanceof Float32Array||_0x2c29ae instanceof Float64Array)&&(_0x2c29ae=new Uint8Array(_0x2c29ae[_0x3928a5(0x2f2)],_0x2c29ae[_0x3928a5(0x39b)],_0x2c29ae[_0x3928a5(0x1d5)])),_0x2c29ae instanceof Uint8Array){for(var _0x4204a6=_0x2c29ae[_0x3928a5(0x1d5)],_0x1b0f4f=[],_0x362e63=0x0;_0x362e63<_0x4204a6;_0x362e63++)_0x1b0f4f[_0x362e63>>>0x2]|=_0x2c29ae[_0x362e63]<<0x18-_0x362e63%0x4*0x8;_0x5190f6[_0x3928a5(0x314)](this,_0x1b0f4f,_0x4204a6);}else _0x5190f6[_0x3928a5(0x2ba)](this,arguments);};_0x58c89c[_0x541b37(0x145)]=_0x1f3d3d;}}()),_0x29a69f[_0x2f353d(0x2f7)][_0x2f353d(0x2ce)];}));}(libTypedarrays$1)),libTypedarrays$1['exports'];}__name(requireLibTypedarrays,_0x43e0c9(0x1f6));var libTypedarraysExports=requireLibTypedarrays();const WordArray=getDefaultExportFromCjs(libTypedarraysExports);var padNopadding$1={'exports':{}},padNopadding=padNopadding$1[_0x43e0c9(0x2c9)],hasRequiredPadNopadding;function requirePadNopadding(){var _0x524fea=_0x43e0c9;return hasRequiredPadNopadding||(hasRequiredPadNopadding=0x1,function(_0x4f2cb8,_0x5d5676){(function(_0x166342,_0x13dec1,_0x2e11ca){var _0x49c977=_0x5029;_0x4f2cb8[_0x49c977(0x2c9)]=_0x13dec1(requireCore(),requireCipherCore());}(padNopadding,function(_0x459360){var _0x2eb2bb=_0x5029;return _0x459360[_0x2eb2bb(0x3d2)][_0x2eb2bb(0x322)]={'pad':__name(function(){},_0x2eb2bb(0x3d2)),'unpad':__name(function(){},_0x2eb2bb(0x164))},_0x459360[_0x2eb2bb(0x3d2)][_0x2eb2bb(0x322)];}));}(padNopadding$1)),padNopadding$1[_0x524fea(0x2c9)];}__name(requirePadNopadding,'requirePadNopadding');var padNopaddingExports=requirePadNopadding();const NoPadding=getDefaultExportFromCjs(padNopaddingExports);function pkcs7Padding(_0x3d1bd3,_0x48d4e8){var _0x489e24=_0x43e0c9;const _0x116bae=_0x48d4e8-_0x3d1bd3[_0x489e24(0x233)]%_0x48d4e8,_0x36e9e6=String[_0x489e24(0x315)](_0x116bae)[_0x489e24(0x3c9)](_0x116bae);return _0x3d1bd3+_0x36e9e6;}__name(pkcs7Padding,_0x43e0c9(0xf5));function encrypt(_0x4058c3,_0x13cb7a){var _0x30de96=_0x43e0c9;const _0x18308d=WordArray['random'](0x10),_0x5010bc=pkcs7Padding(_0x4058c3,0x10),_0x39622f=AES[_0x30de96(0x353)](Utf8['parse'](_0x5010bc),Base64[_0x30de96(0x3eb)](_0x13cb7a),{'iv':_0x18308d,'padding':NoPadding});return _0x18308d[_0x30de96(0x354)](_0x39622f[_0x30de96(0x109)])[_0x30de96(0x22b)](Base64);}__name(encrypt,_0x43e0c9(0x353));function getAttachHeader(){var _0x5db43f=_0x43e0c9;const _0x2d581e=getGlobalObject()['__Key__'];if(_0x2d581e){const _0x1cae37={'time':Math['floor'](Date[_0x5db43f(0x1cb)]()/0x3e8),'domain':location[_0x5db43f(0x162)]};return encrypt(JSON['stringify'](_0x1cae37),_0x2d581e);}}__name(getAttachHeader,_0x43e0c9(0x425));var __defProp$7=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc$7=Object['getOwnPropertyDescriptor'],__decorateClass$7=__name((_0x3e5969,_0x8f67f8,_0x42878e,_0xfa62d6)=>{var _0x57b2d6=_0x43e0c9;for(var _0x40d685=_0xfa62d6>0x1?void 0x0:_0xfa62d6?__getOwnPropDesc$7(_0x8f67f8,_0x42878e):_0x8f67f8,_0x1de9d6=_0x3e5969[_0x57b2d6(0x233)]-0x1,_0x4225de;_0x1de9d6>=0x0;_0x1de9d6--)(_0x4225de=_0x3e5969[_0x1de9d6])&&(_0x40d685=(_0xfa62d6?_0x4225de(_0x8f67f8,_0x42878e,_0x40d685):_0x4225de(_0x40d685))||_0x40d685);return _0xfa62d6&&_0x40d685&&__defProp$7(_0x8f67f8,_0x42878e,_0x40d685),_0x40d685;},'__decorateClass$7'),__decorateParam$7=__name((_0x76db10,_0x12f591)=>(_0x10c403,_0x327940)=>_0x12f591(_0x10c403,_0x327940,_0x76db10),_0x43e0c9(0x265)),_a20;let DomainRequestService=(_a20=class{constructor(_0x2fc1d5){var _0x2b1dc7=_0x43e0c9;this['_httpService']=_0x2fc1d5,this[_0x2b1dc7(0xf2)]();}[_0x43e0c9(0xf2)](){var _0xb9dea4=_0x43e0c9;this[_0xb9dea4(0x141)][_0xb9dea4(0x16e)]({'interceptor':__name((_0x23e4aa,_0x5c671c)=>{var _0x540cda=_0xb9dea4;const _0x472886=_0x23e4aa[_0x540cda(0x113)],_0x408b63=getAttachHeader();return _0x408b63&&_0x472886[_0x540cda(0x116)](_0x540cda(0x20e),_0x408b63),_0x5c671c(_0x23e4aa);},'interceptor')});}},__name(_a20,_0x43e0c9(0x221)),_a20);DomainRequestService=__decorateClass$7([__decorateParam$7(0x0,Inject(HTTPService))],DomainRequestService);var __defProp$6=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc$6=Object[_0x43e0c9(0x33e)],__decorateClass$6=__name((_0x3eb517,_0x61efc3,_0x5c3255,_0x3d85aa)=>{var _0x5b96b7=_0x43e0c9;for(var _0x3b275d=_0x3d85aa>0x1?void 0x0:_0x3d85aa?__getOwnPropDesc$6(_0x61efc3,_0x5c3255):_0x61efc3,_0x46e82b=_0x3eb517[_0x5b96b7(0x233)]-0x1,_0x1d6fc9;_0x46e82b>=0x0;_0x46e82b--)(_0x1d6fc9=_0x3eb517[_0x46e82b])&&(_0x3b275d=(_0x3d85aa?_0x1d6fc9(_0x61efc3,_0x5c3255,_0x3b275d):_0x1d6fc9(_0x3b275d))||_0x3b275d);return _0x3d85aa&&_0x3b275d&&__defProp$6(_0x61efc3,_0x5c3255,_0x3b275d),_0x3b275d;},_0x43e0c9(0x1eb)),__decorateParam$6=__name((_0x233692,_0x7e23da)=>(_0x797c27,_0x5881ae)=>_0x7e23da(_0x797c27,_0x5881ae,_0x233692),'__decorateParam$6'),_a21;let DataLoaderService=(_a21=class extends RxDisposable{constructor(_0x332c08,_0x5268ba,_0x1232d8){var _0x16a77f=_0x43e0c9;super(),__publicField(this,_0x16a77f(0x362),new BehaviorSubject(null)),__publicField(this,_0x16a77f(0x338),this[_0x16a77f(0x362)]['asObservable']()),(this[_0x16a77f(0x11f)]=_0x332c08,this[_0x16a77f(0x118)]=_0x5268ba,this['_localCacheService']=_0x1232d8);}async['loadUnit'](_0x3c8d86,_0x1ad5e8,_0x4470bb){var _0x3deb49=_0x43e0c9;this[_0x3deb49(0x362)][_0x3deb49(0x2e5)]({'unitId':_0x3c8d86,'type':_0x1ad5e8,'subUnitId':_0x4470bb});let _0x47eda1=null;switch(_0x1ad5e8){case UniverType[_0x3deb49(0x202)]:{_0x47eda1=await this[_0x3deb49(0x3f4)](_0x3c8d86);break;}case UniverType[_0x3deb49(0x199)]:{_0x47eda1=await this[_0x3deb49(0x2a4)](_0x3c8d86);break;}default:{this[_0x3deb49(0x11f)][_0x3deb49(0x1c8)](_0x3deb49(0x112),_0x3deb49(0x1de));break;}}return _0x47eda1;}async[_0x43e0c9(0x3f4)](_0x3d3e36){var _0x1c3b9b=_0x43e0c9,_0x569790;let _0x4873fb=0x0;const _0x3fc2c6=await((_0x569790=this[_0x1c3b9b(0x289)])==null?void 0x0:_0x569790[_0x1c3b9b(0x268)](_0x3d3e36));return _0x3fc2c6&&(_0x3fc2c6[_0x1c3b9b(0x3f2)]||_0x3fc2c6[_0x1c3b9b(0x245)][_0x1c3b9b(0x233)]!==0x0)&&(_0x4873fb=_0x3fc2c6['rev']),_0x4873fb===0x0&&this[_0x1c3b9b(0x11f)]['debug'](_0x1c3b9b(0x112),_0x1c3b9b(0x21d)),this['_snapshotService'][_0x1c3b9b(0x419)](_0x3d3e36,_0x4873fb);}async[_0x43e0c9(0x2a4)](_0x56795e){var _0x19f2e9=_0x43e0c9,_0xcd3a31;let _0x34100a=0x0;const _0x28dea0=await((_0xcd3a31=this[_0x19f2e9(0x289)])==null?void 0x0:_0xcd3a31[_0x19f2e9(0x268)](_0x56795e));return _0x28dea0&&(_0x28dea0['awaitingChangeset']||_0x28dea0[_0x19f2e9(0x245)][_0x19f2e9(0x233)]!==0x0)&&(_0x34100a=_0x28dea0[_0x19f2e9(0x438)]),_0x34100a===0x0&&this[_0x19f2e9(0x11f)][_0x19f2e9(0x287)](_0x19f2e9(0x112),_0x19f2e9(0x21d)),this[_0x19f2e9(0x118)][_0x19f2e9(0x3bc)](_0x56795e,_0x34100a);}},__name(_a21,_0x43e0c9(0x3f8)),_a21);DataLoaderService=__decorateClass$6([__decorateParam$6(0x0,ILogService),__decorateParam$6(0x1,Inject(SnapshotService)),__decorateParam$6(0x2,Optional(ILocalCacheService))],DataLoaderService);var __defProp$5=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc$5=Object[_0x43e0c9(0x33e)],__decorateClass$5=__name((_0x546125,_0x9d2a91,_0x15347e,_0x368e43)=>{var _0x40ce9d=_0x43e0c9;for(var _0x331e40=_0x368e43>0x1?void 0x0:_0x368e43?__getOwnPropDesc$5(_0x9d2a91,_0x15347e):_0x9d2a91,_0x169e3e=_0x546125[_0x40ce9d(0x233)]-0x1,_0x2302e5;_0x169e3e>=0x0;_0x169e3e--)(_0x2302e5=_0x546125[_0x169e3e])&&(_0x331e40=(_0x368e43?_0x2302e5(_0x9d2a91,_0x15347e,_0x331e40):_0x2302e5(_0x331e40))||_0x331e40);return _0x368e43&&_0x331e40&&__defProp$5(_0x9d2a91,_0x15347e,_0x331e40),_0x331e40;},_0x43e0c9(0x3ce)),__decorateParam$5=__name((_0x283b4f,_0x1d5a00)=>(_0x373346,_0x57e6c2)=>_0x1d5a00(_0x373346,_0x57e6c2,_0x283b4f),_0x43e0c9(0x17d));const ALLOW_IMAGE_LIST=[_0x43e0c9(0x3d3),_0x43e0c9(0x3c1),_0x43e0c9(0x434),_0x43e0c9(0x15c),_0x43e0c9(0x23f)],ALLOW_IMAGE_SIZE=0x5*0x400*0x400,EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY=_0x43e0c9(0x28f),DEFAULT_EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY='/universer-api/stream/file/upload',EXCHANGE_SIGN_URL_SERVER_URL_KEY='EXCHANGE_SIGN_URL_SERVER_URL_KEY',DEFAULT_EXCHANGE_SIGN_URL_SERVER_URL_KEY='/universer-api/file/{fileID}/sign-url';var _a22;let CollaborationImageIoService=(_a22=class{constructor(_0x571a3f,_0x12a8a0,_0x5365d3){var _0xa1abbb=_0x43e0c9;__publicField(this,_0xa1abbb(0x19d),0x0),__publicField(this,'_change$',new Subject()),__publicField(this,_0xa1abbb(0x3d1),this[_0xa1abbb(0x31b)]),__publicField(this,_0xa1abbb(0x271),new Map()),(this[_0xa1abbb(0x141)]=_0x571a3f,this['_configService']=_0x12a8a0,this['_univerInstanceService']=_0x5365d3);}[_0x43e0c9(0x1e0)](_0x41d212){var _0x388361=_0x43e0c9;this[_0x388361(0x19d)]=_0x41d212,this[_0x388361(0x31b)]['next'](_0x41d212);}[_0x43e0c9(0x1f1)](_0x1682a7,_0x50f4f0){var _0xa7d264=_0x43e0c9;if(_0x50f4f0===ImageSourceType[_0xa7d264(0x288)]){const _0x54d50f=new Image();return _0x54d50f[_0xa7d264(0x1f4)]=_0x1682a7,_0x54d50f;}return this[_0xa7d264(0x271)][_0xa7d264(0x1c2)](_0x1682a7);}[_0x43e0c9(0x152)](_0x19b72b,_0x2bc5ce,_0xaf542c){var _0x5d6f60=_0x43e0c9;_0x2bc5ce===ImageSourceType[_0x5d6f60(0x288)]||_0xaf542c==null||this[_0x5d6f60(0x271)][_0x5d6f60(0x116)](_0x19b72b,_0xaf542c);}async[_0x43e0c9(0x2f1)](_0x386e7a){var _0x10aa1f=_0x43e0c9;try{const _0x12e85c=this[_0x10aa1f(0x3cb)](this[_0x10aa1f(0x360)](),''+_0x386e7a),_0x144c58=(await this[_0x10aa1f(0x141)][_0x10aa1f(0x1c2)](_0x12e85c))[_0x10aa1f(0x415)];if(_0x144c58[_0x10aa1f(0x1c8)]&&_0x144c58[_0x10aa1f(0x1c8)]['code']===ErrorCode['OK']){const _0x2b7ac4=new URL(_0x144c58[_0x10aa1f(0x24e)],this[_0x10aa1f(0x147)]())[_0x10aa1f(0x22b)]();return Promise[_0x10aa1f(0x3e1)](_0x2b7ac4);}return Promise[_0x10aa1f(0x41c)](_0x144c58[_0x10aa1f(0x1c8)]);}catch(_0x232c65){return Promise[_0x10aa1f(0x41c)](_0x232c65);}}async[_0x43e0c9(0x2d9)](_0xf3e79a){var _0x2c3da7=_0x43e0c9;let _0x4793c4='';if(!ALLOW_IMAGE_LIST['includes'](_0xf3e79a[_0x2c3da7(0x3b0)]))return this[_0x2c3da7(0x24d)](),Promise[_0x2c3da7(0x41c)](new Error(ImageUploadStatusType[_0x2c3da7(0x37a)]));if(_0xf3e79a[_0x2c3da7(0x23a)]>ALLOW_IMAGE_SIZE)return this[_0x2c3da7(0x24d)](),Promise[_0x2c3da7(0x41c)](new Error(ImageUploadStatusType[_0x2c3da7(0x174)]));try{const _0x42f744=new FormData();_0x42f744[_0x2c3da7(0x2a1)](_0x2c3da7(0x14b),_0xf3e79a);const _0x436631=this[_0x2c3da7(0x330)][_0x2c3da7(0x126)](),_0x561bc5=_0x436631==null?void 0x0:_0x436631['getUnitId']();if(!_0x561bc5)throw new Error('unitId\x20is\x20not\x20found');const _0x33b5ba=this[_0x2c3da7(0x1ec)]()+_0x2c3da7(0x34e)+_0xf3e79a[_0x2c3da7(0x23a)][_0x2c3da7(0x22b)]()+_0x2c3da7(0x1d2)+FileSource[_0x2c3da7(0x382)]+_0x2c3da7(0x1d0)+encodeURIComponent(_0x561bc5),_0x45c375=await(await fetch(_0x33b5ba,{'method':_0x2c3da7(0x12c),'body':_0x42f744}))[_0x2c3da7(0x449)]();if(typeof _0x45c375[_0x2c3da7(0x28e)]!=_0x2c3da7(0x17a))return this[_0x2c3da7(0x24d)](),Promise[_0x2c3da7(0x41c)](new Error(ImageUploadStatusType[_0x2c3da7(0x130)]));_0x4793c4=_0x45c375[_0x2c3da7(0x28e)];}catch{return this[_0x2c3da7(0x24d)](),Promise['reject'](new Error(ImageUploadStatusType[_0x2c3da7(0x130)]));}return new Promise((_0x1927e4,_0x14cea7)=>{var _0x2c0c5b=_0x2c3da7;const _0x12031a=new FileReader();_0x12031a[_0x2c0c5b(0x3fd)](_0xf3e79a),_0x12031a['onload']=_0xd51b=>{var _0x37c3ff=_0x2c0c5b,_0x1a314d;const _0xa38a17=(_0x1a314d=_0xd51b[_0x37c3ff(0x20b)])==null?void 0x0:_0x1a314d[_0x37c3ff(0xf3)];if(_0xa38a17==null){this['_decreaseWaiting'](),_0x14cea7(new Error(ImageUploadStatusType[_0x37c3ff(0x130)]));return;}const _0x11e44e=Tools[_0x37c3ff(0x436)](0x6);_0x1927e4({'imageId':_0x11e44e,'imageSourceType':ImageSourceType[_0x37c3ff(0x44b)],'source':_0x4793c4,'base64Cache':_0xa38a17,'status':ImageUploadStatusType[_0x37c3ff(0x259)]}),this[_0x37c3ff(0x24d)]();};});}[_0x43e0c9(0x1ec)](){var _0x548961=_0x43e0c9,_0xf6c05a,_0x4abe95;const _0xd7f36e=this['_configService']['getConfig'](EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY),_0x40b636=this[_0x548961(0x249)]['getConfig'](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x4abe95=(_0xf6c05a=_0x40b636==null?void 0x0:_0x40b636['uploadFileServerUrl'])!=null?_0xf6c05a:_0xd7f36e)!=null?_0x4abe95:DEFAULT_EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY;}[_0x43e0c9(0x360)](){var _0xe21afe=_0x43e0c9,_0x58cb18,_0x4e78cb;const _0x23fcd7=this[_0xe21afe(0x249)][_0xe21afe(0x15f)](EXCHANGE_SIGN_URL_SERVER_URL_KEY),_0x2e38a4=this[_0xe21afe(0x249)][_0xe21afe(0x15f)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x4e78cb=(_0x58cb18=_0x2e38a4==null?void 0x0:_0x2e38a4[_0xe21afe(0x1b3)])!=null?_0x58cb18:_0x23fcd7)!=null?_0x4e78cb:DEFAULT_EXCHANGE_SIGN_URL_SERVER_URL_KEY;}[_0x43e0c9(0x147)](){var _0x3e3445=_0x43e0c9,_0x49005c;const _0x610fe4=this[_0x3e3445(0x249)][_0x3e3445(0x15f)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x49005c=_0x610fe4==null?void 0x0:_0x610fe4[_0x3e3445(0x31d)])!=null?_0x49005c:location[_0x3e3445(0x2e0)];}['_replaceFileID'](_0xe2ed6a,_0x4ccb55){var _0x558e33=_0x43e0c9;return _0xe2ed6a[_0x558e33(0x3d6)](_0x558e33(0x211),_0x4ccb55);}['_decreaseWaiting'](){var _0x159c64=_0x43e0c9;this[_0x159c64(0x19d)]-=0x1,this[_0x159c64(0x31b)][_0x159c64(0x2e5)](this[_0x159c64(0x19d)]);}},__name(_a22,_0x43e0c9(0x148)),_a22);CollaborationImageIoService=__decorateClass$5([__decorateParam$5(0x0,Inject(HTTPService)),__decorateParam$5(0x1,IConfigService),__decorateParam$5(0x2,Inject(IUniverInstanceService))],CollaborationImageIoService);var __defProp$4=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc$4=Object[_0x43e0c9(0x33e)],__decorateClass$4=__name((_0x99b128,_0x7e0327,_0x21902f,_0x2508ea)=>{for(var _0x1bb1d4=_0x2508ea>0x1?void 0x0:_0x2508ea?__getOwnPropDesc$4(_0x7e0327,_0x21902f):_0x7e0327,_0x1540cc=_0x99b128['length']-0x1,_0x45b103;_0x1540cc>=0x0;_0x1540cc--)(_0x45b103=_0x99b128[_0x1540cc])&&(_0x1bb1d4=(_0x2508ea?_0x45b103(_0x7e0327,_0x21902f,_0x1bb1d4):_0x45b103(_0x1bb1d4))||_0x1bb1d4);return _0x2508ea&&_0x1bb1d4&&__defProp$4(_0x7e0327,_0x21902f,_0x1bb1d4),_0x1bb1d4;},_0x43e0c9(0x143)),__decorateParam$4=__name((_0x7aea30,_0x2e4f70)=>(_0x559073,_0x164b77)=>_0x2e4f70(_0x559073,_0x164b77,_0x7aea30),_0x43e0c9(0xf9));const DEFAULT_AUTHZ_URL_KEY=_0x43e0c9(0x2d4);var _a23;let MentionIoHttpService=(_a23=class{constructor(_0x67ad2f,_0x445d13){var _0x405f22=_0x43e0c9;this[_0x405f22(0x249)]=_0x67ad2f,this[_0x405f22(0x1b7)]=_0x445d13;}['_getAPIPrefixPath'](){var _0x44df39=_0x43e0c9,_0x273587,_0x483c1a;const _0x26ffc6=this[_0x44df39(0x249)][_0x44df39(0x15f)](AUTHZ_URL_KEY),_0x1a9092=this[_0x44df39(0x249)][_0x44df39(0x15f)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x483c1a=(_0x273587=_0x1a9092==null?void 0x0:_0x1a9092[_0x44df39(0x3af)])!=null?_0x273587:_0x26ffc6)!=null?_0x483c1a:DEFAULT_AUTHZ_URL_KEY;}async['list'](_0x1f63e5){var _0x565198=_0x43e0c9;const _0x189d3b=this[_0x565198(0x323)]()+_0x565198(0x2ad);return{'list':[{'title':_0x565198(0x26e),'mentions':(await this[_0x565198(0x1b7)][_0x565198(0x1c2)](_0x189d3b,{'params':{'objectID':_0x1f63e5[_0x565198(0x38e)],'unitID':_0x1f63e5[_0x565198(0x38e)]}}))['body'][_0x565198(0x2eb)][_0x565198(0x12e)](_0x246be2=>({'objectId':_0x246be2['id'],'name':_0x246be2[_0x565198(0x40e)][_0x565198(0x3e4)],'metadata':{'icon':_0x246be2[_0x565198(0x40e)][_0x565198(0x2ae)]},'label':_0x246be2[_0x565198(0x40e)]['name'],'objectType':MentionType[_0x565198(0x150)]})),'metadata':{},'type':MentionType[_0x565198(0x150)]}]};}},__name(_a23,_0x43e0c9(0x12f)),_a23);MentionIoHttpService=__decorateClass$4([__decorateParam$4(0x0,Inject(IConfigService)),__decorateParam$4(0x1,Inject(HTTPService))],MentionIoHttpService);var __defProp$3=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc$3=Object['getOwnPropertyDescriptor'],__decorateClass$3=__name((_0x45bba7,_0x46f71a,_0x5ab5e4,_0x2be8a0)=>{var _0x52d173=_0x43e0c9;for(var _0x55ed8c=_0x2be8a0>0x1?void 0x0:_0x2be8a0?__getOwnPropDesc$3(_0x46f71a,_0x5ab5e4):_0x46f71a,_0x4f24aa=_0x45bba7[_0x52d173(0x233)]-0x1,_0x528809;_0x4f24aa>=0x0;_0x4f24aa--)(_0x528809=_0x45bba7[_0x4f24aa])&&(_0x55ed8c=(_0x2be8a0?_0x528809(_0x46f71a,_0x5ab5e4,_0x55ed8c):_0x528809(_0x55ed8c))||_0x55ed8c);return _0x2be8a0&&_0x55ed8c&&__defProp$3(_0x46f71a,_0x5ab5e4,_0x55ed8c),_0x55ed8c;},_0x43e0c9(0x215)),__decorateParam$3=__name((_0x9e7dc,_0x23ca54)=>(_0x538319,_0x1ecc6b)=>_0x23ca54(_0x538319,_0x1ecc6b,_0x9e7dc),_0x43e0c9(0x210)),_a24;let PermissionService=(_a24=class extends RxDisposable{constructor(_0x5b876c,_0x1c3350,_0x2ae594,_0x3c3e6d,_0x39f3f9,_0x3cea38,_0x738784){var _0x8a2650=_0x43e0c9;super(),this[_0x8a2650(0x403)]=_0x5b876c,this['_univerInstanceService']=_0x1c3350,this['_permissionService']=_0x2ae594,this[_0x8a2650(0x3aa)]=_0x3c3e6d,this['_collaborationUIEventService']=_0x39f3f9,this[_0x8a2650(0x389)]=_0x3cea38,this['_undoRedoService']=_0x738784,this[_0x8a2650(0x3b8)](),this[_0x8a2650(0x216)]();}[_0x43e0c9(0x216)](){var _0x39734a=_0x43e0c9;const _0xaf9142=__name(async _0x271b32=>{var _0x33e343=_0x5029;(await this[_0x33e343(0x3aa)][_0x33e343(0x32d)](_0x271b32))['event$']['pipe'](filter(_0x1c3b9a=>_0x1c3b9a[_0x33e343(0x25d)]===CollaborationEvent['SHOULD_CLOSE_CONN']),_0x3e796d(this[_0x33e343(0x34a)]))[_0x33e343(0x352)](_0x179635=>{var _0x25219d=_0x33e343;const _0x35169a=_0x179635,{reason:_0x24fa33}=_0x35169a[_0x25219d(0x14c)];this['_collaborationUIEventService'][_0x25219d(0x43a)]({'id':CollaborationUIEventId['CLOSE_ROOM'],'data':_0x24fa33}),this['_permissionService'][_0x25219d(0x10b)](new WorkbookEditablePermission(_0x271b32)['id'],!0x1),this[_0x25219d(0x3aa)][_0x25219d(0x41d)](_0x271b32);});},_0x39734a(0x3cd));merge(this[_0x39734a(0x330)][_0x39734a(0x430)](UniverInstanceType[_0x39734a(0x202)]),this[_0x39734a(0x330)][_0x39734a(0x430)](UniverInstanceType[_0x39734a(0x199)]))[_0x39734a(0x1f0)](map(_0xb1c170=>_0xb1c170['getUnitId']()),filter(_0x2c3c90=>!isInternalEditorID(_0x2c3c90)),_0x3e796d(this[_0x39734a(0x34a)]))[_0x39734a(0x352)](_0x151c23=>{_0xaf9142(_0x151c23);});}[_0x43e0c9(0x3b8)](){var _0x5a8d2f=_0x43e0c9;const _0x211b0a=__name(async _0x1e8ccf=>{var _0x48ac6c=_0x5029;const _0x2e106e=await this[_0x48ac6c(0x3aa)]['requireSession'](_0x1e8ccf),_0xa42bfc=this[_0x48ac6c(0x403)][_0x48ac6c(0x1c2)](SheetPermissionInitController);_0x2e106e[_0x48ac6c(0x14f)]['pipe'](filter(_0x51cf1f=>_0x51cf1f[_0x48ac6c(0x25d)]===CollaborationEvent[_0x48ac6c(0x348)]),_0x3e796d(this['dispose$']))[_0x48ac6c(0x352)](_0x29dcd3=>{var _0x4acc32=_0x48ac6c;const _0x554c71=_0x29dcd3,{objectId:_0x1693bf}=_0x554c71[_0x4acc32(0x14c)];_0x1693bf===_0x1e8ccf?_0xa42bfc[_0x4acc32(0x32c)](_0x1e8ccf):_0xa42bfc[_0x4acc32(0x2aa)](_0x1e8ccf,_0x1693bf);});},_0x5a8d2f(0x42c));merge(this['_univerInstanceService'][_0x5a8d2f(0x430)](UniverInstanceType[_0x5a8d2f(0x202)]),this['_univerInstanceService'][_0x5a8d2f(0x430)](UniverInstanceType['UNIVER_DOC']))[_0x5a8d2f(0x1f0)](map(_0x3a371b=>_0x3a371b[_0x5a8d2f(0x2cb)]()),filter(_0x431040=>!isInternalEditorID(_0x431040)),_0x3e796d(this[_0x5a8d2f(0x34a)]))[_0x5a8d2f(0x352)](_0x380d46=>{_0x211b0a(_0x380d46);});}},__name(_a24,'PermissionService'),_a24);PermissionService=__decorateClass$3([__decorateParam$3(0x0,Inject(Injector)),__decorateParam$3(0x1,IUniverInstanceService),__decorateParam$3(0x2,IPermissionService),__decorateParam$3(0x3,Inject(CollaborationSessionService)),__decorateParam$3(0x4,Inject(CollaborationUIEventService)),__decorateParam$3(0x5,IAuthzIoService),__decorateParam$3(0x6,IUndoRedoService)],PermissionService);var __defProp$2=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc$2=Object[_0x43e0c9(0x33e)],__decorateClass$2=__name((_0x53fa13,_0x15275c,_0x151302,_0x2c7192)=>{var _0x99f532=_0x43e0c9;for(var _0x546740=_0x2c7192>0x1?void 0x0:_0x2c7192?__getOwnPropDesc$2(_0x15275c,_0x151302):_0x15275c,_0x24a9b0=_0x53fa13[_0x99f532(0x233)]-0x1,_0x2f50f6;_0x24a9b0>=0x0;_0x24a9b0--)(_0x2f50f6=_0x53fa13[_0x24a9b0])&&(_0x546740=(_0x2c7192?_0x2f50f6(_0x15275c,_0x151302,_0x546740):_0x2f50f6(_0x546740))||_0x546740);return _0x2c7192&&_0x546740&&__defProp$2(_0x15275c,_0x151302,_0x546740),_0x546740;},_0x43e0c9(0x42e)),__decorateParam$2=__name((_0x24c690,_0x1356e7)=>(_0xc699f4,_0x4933d5)=>_0x1356e7(_0xc699f4,_0x4933d5,_0x24c690),'__decorateParam$2'),_a25;let SnapshotServerOverHTTPService=(_a25=class{constructor(_0x1ce9e8,_0x466126){var _0x2f5020=_0x43e0c9;this[_0x2f5020(0x249)]=_0x1ce9e8,this[_0x2f5020(0x141)]=_0x466126;}async['getUnitOnRev'](_0x3bfc35,_0x16b434){var _0x3ffcf0=_0x43e0c9,_0x18de93;const {unitID:_0x5964c3,type:_0x176322,revision:revision=0x0}=_0x16b434,_0x1038c6=this[_0x3ffcf0(0x347)]()+'/'+_0x176322+_0x3ffcf0(0x40f)+_0x5964c3+_0x3ffcf0(0x3f5)+revision,_0x484815=(await this[_0x3ffcf0(0x141)]['get'](_0x1038c6))['body'],_0x6c44ab=(_0x18de93=_0x484815[_0x3ffcf0(0x29b)])==null?void 0x0:_0x18de93['workbook'];if(_0x6c44ab){const _0x463b80=_0x6c44ab==null?void 0x0:_0x6c44ab[_0x3ffcf0(0x3a2)],_0x489335=textEncoder['encode'](b64DecodeUnicode(_0x463b80));_0x6c44ab[_0x3ffcf0(0x3a2)]=_0x489335,Object['entries'](_0x6c44ab[_0x3ffcf0(0x20a)])['forEach'](([,_0x30405d])=>{var _0x5e3438=_0x3ffcf0;const _0x23cee0=_0x30405d[_0x5e3438(0x3a2)],_0xae9a56=textEncoder[_0x5e3438(0x103)](b64DecodeUnicode(_0x23cee0));_0x30405d[_0x5e3438(0x3a2)]=_0xae9a56;});}return _0x484815;}async[_0x43e0c9(0x2d0)](_0xab0b6,_0x2b9d74){var _0x44f0eb=_0x43e0c9;const {unitID:_0x3a30ec,type:_0x55f3e6,blockID:_0x3c8d83}=_0x2b9d74,_0x38dc4c=this[_0x44f0eb(0x264)]()+'/'+_0x55f3e6+_0x44f0eb(0x40f)+_0x3a30ec+'/block/'+_0x3c8d83;return(await this['_httpService'][_0x44f0eb(0x1c2)](_0x38dc4c))['body'];}async[_0x43e0c9(0x128)](_0x3d8917,_0x58fb5d){var _0x477141=_0x43e0c9;const {unitID:_0x153b96,type:_0x39ec66,blockID:_0x2bccfb}=_0x58fb5d,_0x23b4e2=this['_getAPIPrefix']()+'/block/'+_0x39ec66+_0x477141(0x40f)+_0x153b96+_0x477141(0x2e8)+_0x2bccfb;return(await this[_0x477141(0x141)][_0x477141(0x1c2)](_0x23b4e2))['body'];}async[_0x43e0c9(0xfc)](_0x73763c,_0x38e023){var _0xcaee5d=_0x43e0c9;const {unitID:_0x274050,type:_0x45c531,from:_0x39d17d,to:_0xc27716}=_0x38e023,_0x8d7954=this[_0xcaee5d(0x264)]()+'/'+_0x45c531+_0xcaee5d(0x40f)+_0x274050+'/fetchmissing?from='+_0x39d17d+'&to='+_0xc27716;return(await this[_0xcaee5d(0x141)]['get'](_0x8d7954))['body'];}[_0x43e0c9(0x347)](){var _0x598177=_0x43e0c9,_0x420cc8;return(_0x420cc8=this[_0x598177(0x249)][_0x598177(0x15f)](SNAPSHOT_URL_KEY))!=null?_0x420cc8:this[_0x598177(0x264)]();}[_0x43e0c9(0x264)](){var _0xabc0a1=_0x43e0c9,_0x2ac7eb,_0x1c03c5;const _0x227470=this['_configService'][_0xabc0a1(0x15f)](SNAPSHOT_SERVER_URL_KEY),_0xc73edc=this['_configService']['getConfig'](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x1c03c5=(_0x2ac7eb=_0xc73edc==null?void 0x0:_0xc73edc['snapshotServerUrl'])!=null?_0x2ac7eb:_0x227470)!=null?_0x1c03c5:DEFAULT_SNAPSHOT_SERVER_URL;}async['getResourcesRequest'](_0xaf6c95,_0x56cbbd){var _0x3e9aff=_0x43e0c9;const _0x40cbd5=_0x3e9aff(0x3e2)+_0x56cbbd[_0x3e9aff(0x3b0)]+_0x3e9aff(0x40f)+_0x56cbbd['unitID']+_0x3e9aff(0x304);return(await this[_0x3e9aff(0x141)]['get'](_0x40cbd5,{'params':{'resourceId':JSON[_0x3e9aff(0xff)](_0x56cbbd[_0x3e9aff(0x167)])}}))[_0x3e9aff(0x415)];}['saveSnapshot'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x43e0c9(0x44a)](){var _0x46831c=_0x43e0c9;throw new Error(_0x46831c(0x448));}[_0x43e0c9(0x38f)](){var _0x372632=_0x43e0c9;throw new Error(_0x372632(0x448));}[_0x43e0c9(0x3c8)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['getLatestCsReqIdBySid'](){var _0x18fb57=_0x43e0c9;throw new Error(_0x18fb57(0x448));}},__name(_a25,'SnapshotServerOverHTTPService'),_a25);SnapshotServerOverHTTPService=__decorateClass$2([__decorateParam$2(0x0,IConfigService),__decorateParam$2(0x1,Inject(HTTPService))],SnapshotServerOverHTTPService);var __defProp$1=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc$1=Object[_0x43e0c9(0x33e)],__decorateClass$1=__name((_0x3faac7,_0x2f159b,_0x5dbac3,_0x4b95af)=>{var _0x394c6d=_0x43e0c9;for(var _0x1ddf9a=_0x4b95af>0x1?void 0x0:_0x4b95af?__getOwnPropDesc$1(_0x2f159b,_0x5dbac3):_0x2f159b,_0x23b25a=_0x3faac7[_0x394c6d(0x233)]-0x1,_0x179765;_0x23b25a>=0x0;_0x23b25a--)(_0x179765=_0x3faac7[_0x23b25a])&&(_0x1ddf9a=(_0x4b95af?_0x179765(_0x2f159b,_0x5dbac3,_0x1ddf9a):_0x179765(_0x1ddf9a))||_0x1ddf9a);return _0x4b95af&&_0x1ddf9a&&__defProp$1(_0x2f159b,_0x5dbac3,_0x1ddf9a),_0x1ddf9a;},_0x43e0c9(0x2ac)),__decorateParam$1=__name((_0x448f6c,_0x27f442)=>(_0x4d5f56,_0x4f2e27)=>_0x27f442(_0x4d5f56,_0x4f2e27,_0x448f6c),_0x43e0c9(0x43b)),_a26;let CollaborativeUndoRedoService=(_a26=class extends LocalUndoRedoService{constructor(_0x3f7de7,_0x262490,_0x51fdab,_0x52290c,_0x80b5f1){var _0x5ed166=_0x43e0c9;super(_0x3f7de7,_0x262490,_0x51fdab),this[_0x5ed166(0x345)]=_0x52290c,this['_logService']=_0x80b5f1;}[_0x43e0c9(0x206)](_0x1efed1,_0x5e9ff3){var _0x5f5a12=_0x43e0c9;const _0x54d6fe=this['_getUndoStack'](_0x1efed1);if(_0x54d6fe)try{const _0x14aff9=this['_transformStack'](_0x54d6fe,_0x5e9ff3);this[_0x5f5a12(0x1a2)](_0x1efed1,_0x14aff9);}catch(_0x28261a){this[_0x5f5a12(0x11f)][_0x5f5a12(0x1c8)]('[CollaborationUndoRedoService]',_0x28261a),this[_0x5f5a12(0x219)](_0x1efed1);}const _0x560e6e=this[_0x5f5a12(0x2e6)](_0x1efed1);if(_0x560e6e)try{const _0x1a6362=this[_0x5f5a12(0x3b9)](_0x560e6e,_0x5e9ff3);this[_0x5f5a12(0x193)](_0x1efed1,_0x1a6362);}catch(_0x2a83af){this[_0x5f5a12(0x11f)]['error'](_0x2a83af),this[_0x5f5a12(0x437)](_0x1efed1);}}[_0x43e0c9(0x219)](_0x4e31b5){var _0x2ddb55=_0x43e0c9;const _0x2d350f=this[_0x2ddb55(0x34f)](_0x4e31b5);_0x2d350f&&(_0x2d350f['length']=0x0,this['_updateStatus']());}[_0x43e0c9(0x437)](_0x5e2316){var _0x20008e=_0x43e0c9;const _0x3ab21c=this[_0x20008e(0x2e6)](_0x5e2316);_0x3ab21c&&(_0x3ab21c['length']=0x0,this[_0x20008e(0x239)]());}[_0x43e0c9(0x1a2)](_0x1a75ef,_0x5322f3){this['_undoStacks']['set'](_0x1a75ef,_0x5322f3),this['_updateStatus']();}[_0x43e0c9(0x193)](_0x4e01c9,_0x5f57b8){var _0x2eda07=_0x43e0c9;this[_0x2eda07(0x129)][_0x2eda07(0x116)](_0x4e01c9,_0x5f57b8),this[_0x2eda07(0x239)]();}[_0x43e0c9(0x3b9)](_0x36fa99,_0x1b9b8f){var _0x1c7587=_0x43e0c9;const _0x356296=[];let _0x52fd09=_0x1b9b8f,_0x117dc7=_0x1b9b8f;for(let _0x52525d=_0x36fa99[_0x1c7587(0x233)]-0x1;_0x52525d>=0x0;_0x52525d--){const {unitID:_0x45c863,undoMutations:_0x2a5413,redoMutations:_0x1305af}=_0x36fa99[_0x52525d],_0xe5d665=this[_0x1c7587(0x345)][_0x1c7587(0x346)](_0x52fd09,_0x2a5413),_0x4d0a44=this[_0x1c7587(0x345)]['transformMutationsWithChangeset'](_0x117dc7,_0x1305af);if(isTransformMutationsWithChangesetFailure(_0xe5d665)||isTransformMutationsWithChangesetFailure(_0x4d0a44)){this[_0x1c7587(0x11f)][_0x1c7587(0x1c8)](_0x1c7587(0x2d7),_0x1c7587(0x318),_0xe5d665,_0x4d0a44);break;}_0x52fd09=_0xe5d665[_0x1c7587(0x1ef)],_0x117dc7=_0x4d0a44[_0x1c7587(0x1ef)],_0x356296[_0x1c7587(0x119)]({'unitID':_0x45c863,'undoMutations':_0xe5d665[_0x1c7587(0xfa)],'redoMutations':_0x4d0a44[_0x1c7587(0xfa)]});}return _0x356296[_0x1c7587(0x3c7)]();}},__name(_a26,'CollaborativeUndoRedoService'),_a26);CollaborativeUndoRedoService=__decorateClass$1([__decorateParam$1(0x0,IUniverInstanceService),__decorateParam$1(0x1,ICommandService),__decorateParam$1(0x2,IContextService),__decorateParam$1(0x3,ITransformService),__decorateParam$1(0x4,ILogService)],CollaborativeUndoRedoService);var __defProp2=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc=Object[_0x43e0c9(0x33e)],__defNormalProp2=__name((_0x13b1c2,_0x21e6de,_0x5e3369)=>_0x21e6de in _0x13b1c2?__defProp2(_0x13b1c2,_0x21e6de,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5e3369}):_0x13b1c2[_0x21e6de]=_0x5e3369,_0x43e0c9(0x3e3)),__decorateClass=__name((_0x4efefe,_0x3884b8,_0x50c52e,_0x3653ee)=>{for(var _0x52240a=_0x3653ee>0x1?void 0x0:_0x3653ee?__getOwnPropDesc(_0x3884b8,_0x50c52e):_0x3884b8,_0x128efc=_0x4efefe['length']-0x1,_0xc1974a;_0x128efc>=0x0;_0x128efc--)(_0xc1974a=_0x4efefe[_0x128efc])&&(_0x52240a=(_0x3653ee?_0xc1974a(_0x3884b8,_0x50c52e,_0x52240a):_0xc1974a(_0x52240a))||_0x52240a);return _0x3653ee&&_0x52240a&&__defProp2(_0x3884b8,_0x50c52e,_0x52240a),_0x52240a;},_0x43e0c9(0x18b)),__decorateParam=__name((_0x5dc78d,_0xbb80bf)=>(_0x467ea9,_0x3ec54e)=>_0xbb80bf(_0x467ea9,_0x3ec54e,_0x5dc78d),_0x43e0c9(0x278)),__publicField2=__name((_0x764111,_0x5b4e2a,_0x45bedb)=>__defNormalProp2(_0x764111,_0x5b4e2a+'',_0x45bedb),_0x43e0c9(0x311));const PLUGIN_NAME='UNIVER_COLLABORATION_CLIENT_PLUGIN';var _a27;let UniverCollaborationClientPlugin=(_a27=class extends Plugin{constructor(_0x235843=defaultPluginConfig,_0x5e3b80,_0x52364a,_0x111de5){var _0x9208f7=_0x43e0c9;super(),this['_config']=_0x235843,this[_0x9208f7(0x11f)]=_0x5e3b80,this['_injector']=_0x52364a,this[_0x9208f7(0x249)]=_0x111de5;const {..._0x3b59ff}=_0x523ccd({},defaultPluginConfig,this[_0x9208f7(0x139)]);this[_0x9208f7(0x249)][_0x9208f7(0x366)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,_0x3b59ff);}[_0x43e0c9(0x368)](){var _0x244b05=_0x43e0c9;this[_0x244b05(0x40c)](),this[_0x244b05(0x36f)]();}[_0x43e0c9(0x40c)](){var _0x4d39e6=_0x43e0c9,_0x5c24ca,_0x54419b,_0x211bb9,_0x39270b;this['_injector'][_0x4d39e6(0x3ae)](IUndoRedoService)&&this['_logService'][_0x4d39e6(0x1c8)](_0x4d39e6(0x224),_0x4d39e6(0x1f8));const _0x187877=mergeOverrideWithDependencies([[IUndoRedoService,{'useClass':CollaborativeUndoRedoService}],[CollaborationSessionService],[MemberService],[SheetTransformSelectionsService],[AuthServerService],[DomainRequestService],[CommentService],[PermissionService],[CollaborationUIEventService],[DataLoaderService],[ICollaborationSocketService,{'useClass':(_0x54419b=(_0x5c24ca=this[_0x4d39e6(0x139)])==null?void 0x0:_0x5c24ca[_0x4d39e6(0x435)])!=null?_0x54419b:CollaborationSocketService}],[ISnapshotServerService,{'useClass':SnapshotServerOverHTTPService}],[IAuthzIoService,{'useClass':AuthzIoHttpService}],[IImageIoService,{'useClass':CollaborationImageIoService}],[IMentionIOService,{'useClass':MentionIoHttpService}],[CollaborationController],[FileNameController]],(_0x211bb9=this[_0x4d39e6(0x139)])==null?void 0x0:_0x211bb9[_0x4d39e6(0x238)]);if(!((_0x39270b=this[_0x4d39e6(0x139)])!=null&&_0x39270b['enableSingleActiveInstanceLock'])){const _0x58b8e2=_0x187877[_0x4d39e6(0x20f)](([_0x211462])=>_0x211462===ISingleActiveUnitService);_0x58b8e2!==-0x1&&_0x187877[_0x4d39e6(0x414)](_0x58b8e2,0x1);}registerDependencies(this[_0x4d39e6(0x403)],_0x187877);}[_0x43e0c9(0x36f)](){var _0x4c3c16=_0x43e0c9,_0x33bc21,_0x5a3b34,_0x526c89;this[_0x4c3c16(0x403)][_0x4c3c16(0x1c2)](HTTPService)[_0x4c3c16(0x16e)]({'priority':0x14,'interceptor':ThresholdInterceptorFactory({'maxParallel':0x6})}),(_0x33bc21=this['_config'])!=null&&_0x33bc21[_0x4c3c16(0x42a)]||(_0x5a3b34=this['_injector']['get'](ILocalCacheService,Quantity[_0x4c3c16(0x204)]))==null||_0x5a3b34['disableLocalCache'](),(_0x526c89=this['_config'])!=null&&_0x526c89[_0x4c3c16(0x208)]&&touchDependencies(this[_0x4c3c16(0x403)],[[AuthServerService]]),touchDependencies(this[_0x4c3c16(0x403)],[[DomainRequestService],[CollaborationController],[PermissionService]]);}},__name(_a27,'UniverCollaborationClientPlugin'),_a27);__publicField2(UniverCollaborationClientPlugin,_0x43e0c9(0x2ab),PLUGIN_NAME),UniverCollaborationClientPlugin=__decorateClass([DependentOn(UniverCollaborationPlugin,UniverSheetsPlugin,UniverNetworkPlugin),__decorateParam(0x1,ILogService),__decorateParam(0x2,Inject(Injector)),__decorateParam(0x3,IConfigService)],UniverCollaborationClientPlugin);export{AUTHZ_URL_KEY,AuthzIoHttpService,AwaitingState,AwaitingWithPendingState,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,COLLAB_SUBMIT_CHANGESET_URL_KEY,COLLAB_WEB_SOCKET_URL_KEY,CollaborationController,CollaborationEntity,CollaborationImageIoService,CollaborationSession,CollaborationSessionService,CollaborationSocketService,CollaborationStatus,CollaborationUIEventId,CollaborationUIEventService,CollaborativeUndoRedoService,CommentService,ConflictState,DEFAULT_COLLAB_WEB_SOCKET_URL,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT,DataLoaderService,DocCollaborationEntity,FetchingMissState,HEARTBEAT_INTERVAL_KEY,HEARTBEAT_TIMEOUT_KEY,ICollaborationSocketService,ILocalCacheService,INetworkConditionService,ISingleActiveUnitService,LOCAL_CACHE_INTERVAL,LOCAL_CACHE_INTERVAL_KEY,LOGIN_URL_KEY,MemberService,MentionIoHttpService,OfflineState,PendingState,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY,RETRY_CONNECTING_MAX_COUNT_KEY,SEND_CHANGESET_TIMEOUT_KEY,SNAPSHOT_SERVER_URL_KEY,SNAPSHOT_URL_KEY,SessionStatus,SheetCollaborationEntity,SheetTransformSelectionsService,SnapshotServerOverHTTPService,SyncedState,UnitStatus,UniverCollaborationClientPlugin,deserializeToCombResponse,getLocalCacheKey,serializeCombRequest};
1
+ var _0xfa755a=_0x4f8b;(function(_0x2b524b,_0x886e88){var _0x497ead=_0x4f8b,_0x1019bd=_0x2b524b();while(!![]){try{var _0xbb0983=parseInt(_0x497ead(0x214))/0x1*(-parseInt(_0x497ead(0x3b5))/0x2)+parseInt(_0x497ead(0x398))/0x3*(-parseInt(_0x497ead(0x376))/0x4)+-parseInt(_0x497ead(0x237))/0x5+-parseInt(_0x497ead(0x20b))/0x6+parseInt(_0x497ead(0x229))/0x7*(parseInt(_0x497ead(0x1cd))/0x8)+-parseInt(_0x497ead(0x1ae))/0x9*(-parseInt(_0x497ead(0x18d))/0xa)+parseInt(_0x497ead(0x413))/0xb;if(_0xbb0983===_0x886e88)break;else _0x1019bd['push'](_0x1019bd['shift']());}catch(_0x567104){_0x1019bd['push'](_0x1019bd['shift']());}}}(_0x4a1f,0xea615));var __defProp=Object[_0xfa755a(0x29f)],__defNormalProp=(_0x35b41c,_0x1e5ad9,_0x570acb)=>_0x1e5ad9 in _0x35b41c?__defProp(_0x35b41c,_0x1e5ad9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x570acb}):_0x35b41c[_0x1e5ad9]=_0x570acb,__name=(_0x28cf57,_0x2838cc)=>__defProp(_0x28cf57,'name',{'value':_0x2838cc,'configurable':!0x0}),__publicField=(_0x4b6266,_0x182c4c,_0x5a4858)=>__defNormalProp(_0x4b6266,typeof _0x182c4c!=_0xfa755a(0x3c8)?_0x182c4c+'':_0x182c4c,_0x5a4858);import{createIdentifier,Inject,Injector,Disposable,DisposableCollection,toDisposable,IConfigService,ILogService,UserManagerService,UniverInstanceType,IUniverInstanceService,LocaleService,Optional,RxDisposable,Tools,Rectangle,ICommandService,JSONX,CommandType,IPermissionService,IUndoRedoService,sequenceExecute,Workbook,MentionType,IAuthzIoService,isInternalEditorID,LocalUndoRedoService,IContextService,DependentOn,Plugin,merge as _0x20c9bf,mergeOverrideWithDependencies,IMentionIOService,registerDependencies,Quantity,touchDependencies}from'@univerjs/core';import{Subject,merge,of,BehaviorSubject,takeUntil,ReplaySubject,take as _0x42caf7,map as _0x1f8b2b,shareReplay,firstValueFrom,concatMap}from'rxjs';import{map,take,filter,delay,takeUntil as _0x174e61}from'rxjs/operators';import{HTTPService,ISocketService,MergeInterceptorFactory,HTTPRequest,UniverNetworkPlugin,ThresholdInterceptorFactory}from'@univerjs/network';import{CollaborationEvent,parseChangesetToProtocol,ISnapshotServerService,isTransformMutationsWithChangesetSuccess,ITransformService,mapDocumentTypeToUniverType,RevisionService,isTransformChangesetsSuccess,CompressMutationService,parseProtocolChangeset,SnapshotService,textEncoder,b64DecodeUnicode,isTransformMutationsWithChangesetFailure,UniverCollaborationPlugin}from'@univerjs-pro/collaboration';import{ITelemetryService}from'@univerjs/telemetry';import{RichTextEditingMutation}from'@univerjs/docs';import{SheetsSelectionsService,SetSelectionsOperation,InsertSheetMutation,EmptyMutation,WorkbookEditablePermission,SheetPermissionInitController,UniverSheetsPlugin}from'@univerjs/sheets';import{ImageSourceType,ImageUploadStatusType,IImageIoService}from'@univerjs/drawing';import{getGlobalObject}from'@univerjs-pro/license';const SNAPSHOT_SERVER_URL_KEY=_0xfa755a(0x275),DEFAULT_SNAPSHOT_SERVER_URL=_0xfa755a(0x48d),SNAPSHOT_URL_KEY=_0xfa755a(0x2b6),SEND_CHANGESET_TIMEOUT_KEY=_0xfa755a(0x3fb),DEFAULT_SEND_CHANGESET_TIMEOUT=0x7d0,COLLAB_WEB_SOCKET_URL_KEY=_0xfa755a(0x268),DEFAULT_COLLAB_WEB_SOCKET_URL=_0xfa755a(0x1f4),DEFAULT_WS_SESSION_TICKET_URL=_0xfa755a(0x41a),HEARTBEAT_INTERVAL_KEY=_0xfa755a(0x4ae),DEFAULT_HEARTBEAT_INTERVAL=0x7530,HEARTBEAT_TIMEOUT_KEY=_0xfa755a(0x403),DEFAULT_HEARTBEAT_TIMEOUT=0x4e20,DEFAULT_RETRY_CONNECTING_INTERVAL=0x4e20,RETRY_CONNECTING_MAX_COUNT_KEY=_0xfa755a(0x1ac),DEFAULT_RETRY_CONNECTING_MAX_COUNT=0x3,LOCAL_CACHE_INTERVAL_KEY='LOCAL_CACHE_INTERVAL',LOCAL_CACHE_INTERVAL=0x3e8,COLLAB_SUBMIT_CHANGESET_URL_KEY=_0xfa755a(0x1c2),DEFAULT_COLLAB_SUBMIT_CHANGESET_URL=_0xfa755a(0x3c2),LOGIN_URL_KEY=_0xfa755a(0x2db),DEFAULT_LOGIN_URL='/universer-api/oidc/authpage',REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY=_0xfa755a(0x3d5),DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT=_0xfa755a(0x449);var ErrorCode=(_0x4c819a=>(_0x4c819a[_0x4c819a['UNDEFINED']=0x0]='UNDEFINED',_0x4c819a[_0x4c819a['OK']=0x1]='OK',_0x4c819a[_0x4c819a[_0xfa755a(0x253)]=0x2]=_0xfa755a(0x253),_0x4c819a[_0x4c819a[_0xfa755a(0x2a2)]=0x3]=_0xfa755a(0x2a2),_0x4c819a[_0x4c819a[_0xfa755a(0x252)]=0x4]='NOT_FOUND',_0x4c819a[_0x4c819a[_0xfa755a(0x45f)]=0x5]=_0xfa755a(0x45f),_0x4c819a[_0x4c819a[_0xfa755a(0x42a)]=0x6]=_0xfa755a(0x42a),_0x4c819a[_0x4c819a['INVALID_ARGUMENT']=0x7]=_0xfa755a(0x4b0),_0x4c819a[_0x4c819a[_0xfa755a(0x286)]=0x8]='TOO_MANY_REQUESTS',_0x4c819a[_0x4c819a[_0xfa755a(0x24c)]=0x9]=_0xfa755a(0x24c),_0x4c819a[_0x4c819a[_0xfa755a(0x1f6)]=0x1389]=_0xfa755a(0x1f6),_0x4c819a[_0x4c819a[_0xfa755a(0x40e)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x4c819a[_0x4c819a[_0xfa755a(0x3a0)]=0x1772]=_0xfa755a(0x3a0),_0x4c819a[_0x4c819a[_0xfa755a(0x24e)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x4c819a[_0x4c819a[_0xfa755a(0x2a9)]=0x1b59]=_0xfa755a(0x2a9),_0x4c819a[_0x4c819a[_0xfa755a(0x355)]=0x1b5a]=_0xfa755a(0x355),_0x4c819a[_0x4c819a['APPLY_REVISION_CONFILICT']=0x1b5b]=_0xfa755a(0x2a6),_0x4c819a[_0x4c819a[_0xfa755a(0x2a1)]=0x1b5c]=_0xfa755a(0x2a1),_0x4c819a[_0x4c819a[_0xfa755a(0x46a)]=0x1b5d]='APPLY_DUPLICATED',_0x4c819a[_0x4c819a[_0xfa755a(0x393)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x4c819a[_0x4c819a[_0xfa755a(0x23c)]=0x2329]=_0xfa755a(0x23c),_0x4c819a[_0x4c819a['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0xfa755a(0x4bf),_0x4c819a[_0x4c819a['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0xfa755a(0x218),_0x4c819a[_0x4c819a[_0xfa755a(0x4ab)]=0x232c]=_0xfa755a(0x4ab),_0x4c819a[_0x4c819a[_0xfa755a(0x43d)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x4c819a[_0x4c819a[_0xfa755a(0x3d4)]=0x2711]=_0xfa755a(0x3d4),_0x4c819a[_0x4c819a[_0xfa755a(0x474)]=0x2712]=_0xfa755a(0x474),_0x4c819a[_0x4c819a[_0xfa755a(0x399)]=0x2713]=_0xfa755a(0x399),_0x4c819a[_0x4c819a[_0xfa755a(0x327)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x4c819a[_0x4c819a[_0xfa755a(0x1da)]=0x2af9]=_0xfa755a(0x1da),_0x4c819a[_0x4c819a['UNRECOGNIZED']=-0x1]=_0xfa755a(0x4b2),_0x4c819a))(ErrorCode||{}),UniverType=(_0x3577b5=>(_0x3577b5[_0x3577b5[_0xfa755a(0x364)]=0x0]='UNIVER_UNKNOWN',_0x3577b5[_0x3577b5[_0xfa755a(0x458)]=0x1]=_0xfa755a(0x458),_0x3577b5[_0x3577b5[_0xfa755a(0x223)]=0x2]=_0xfa755a(0x223),_0x3577b5[_0x3577b5[_0xfa755a(0x224)]=0x3]=_0xfa755a(0x224),_0x3577b5[_0x3577b5['UNIVER_PROJECT']=0x4]=_0xfa755a(0x3b4),_0x3577b5[_0x3577b5[_0xfa755a(0x4b2)]=-0x1]=_0xfa755a(0x4b2),_0x3577b5))(UniverType||{}),CombCmd=(_0x512849=>(_0x512849[_0x512849['UNKNOWN_CMD']=0x0]=_0xfa755a(0x3d0),_0x512849[_0x512849[_0xfa755a(0x244)]=0x1]='HELLO',_0x512849[_0x512849[_0xfa755a(0x2e1)]=0x2]=_0xfa755a(0x2e1),_0x512849[_0x512849[_0xfa755a(0x29e)]=0x3]=_0xfa755a(0x29e),_0x512849[_0x512849[_0xfa755a(0x1a1)]=0x4]='INGEST',_0x512849[_0x512849[_0xfa755a(0x2da)]=0x5]='HEARTBEAT',_0x512849[_0x512849[_0xfa755a(0x309)]=0x6]='RECV',_0x512849[_0x512849[_0xfa755a(0x4b2)]=-0x1]='UNRECOGNIZED',_0x512849))(CombCmd||{}),CmdRspCode=(_0x536182=>(_0x536182[_0x536182['UNKNOWN_CODE']=0x0]='UNKNOWN_CODE',_0x536182[_0x536182['OK']=0x1]='OK',_0x536182[_0x536182[_0xfa755a(0x2f6)]=0x2]=_0xfa755a(0x2f6),_0x536182[_0x536182[_0xfa755a(0x263)]=0x3e9]=_0xfa755a(0x263),_0x536182[_0x536182['JOIN_ROOM_NOT_EXISTS']=0x3ea]=_0xfa755a(0x1ed),_0x536182[_0x536182[_0xfa755a(0x3f4)]=0x3eb]=_0xfa755a(0x3f4),_0x536182[_0x536182[_0xfa755a(0x42f)]=0x3ec]=_0xfa755a(0x42f),_0x536182[_0x536182[_0xfa755a(0x4b2)]=-0x1]=_0xfa755a(0x4b2),_0x536182))(CmdRspCode||{}),FileSource=(_0x220ec7=>(_0x220ec7[_0x220ec7['Undefined']=0x0]=_0xfa755a(0x191),_0x220ec7[_0x220ec7[_0xfa755a(0x36b)]=0x1]=_0xfa755a(0x36b),_0x220ec7[_0x220ec7['HttpExport']=0x2]=_0xfa755a(0x3ab),_0x220ec7[_0x220ec7[_0xfa755a(0x1fb)]=0x3]=_0xfa755a(0x1fb),_0x220ec7[_0x220ec7[_0xfa755a(0x203)]=0x4]='UnitSnapshot',_0x220ec7[_0x220ec7[_0xfa755a(0x4b2)]=-0x1]=_0xfa755a(0x4b2),_0x220ec7))(FileSource||{});const COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY=_0xfa755a(0x2aa),defaultPluginConfig={};var CollaborationUIEventId=(_0x40d33d=>(_0x40d33d[_0xfa755a(0x2a3)]=_0xfa755a(0x2a3),_0x40d33d[_0xfa755a(0x2a2)]=_0xfa755a(0x2a2),_0x40d33d[_0xfa755a(0x42b)]=_0xfa755a(0x42b),_0x40d33d['CLOSE_ROOM']=_0xfa755a(0x194),_0x40d33d['JOIN_ROOM_FAILED']=_0xfa755a(0x211),_0x40d33d['SOCKET_FAILED_RETRY']='SOCKET_FAILED_RETRY',_0x40d33d[_0xfa755a(0x354)]=_0xfa755a(0x354),_0x40d33d[_0xfa755a(0x49b)]=_0xfa755a(0x49b),_0x40d33d))(CollaborationUIEventId||{});const _CollaborationUIEventService=class _CollaborationUIEventService{constructor(){var _0x3e6f27=_0xfa755a;__publicField(this,_0x3e6f27(0x4b5),new Subject()),__publicField(this,_0x3e6f27(0x2cc),this[_0x3e6f27(0x4b5)][_0x3e6f27(0x319)]());}['emitEvent'](_0x3eb776){var _0x15b0bb=_0xfa755a;this['_event$'][_0x15b0bb(0x192)](_0x3eb776);}};__name(_CollaborationUIEventService,'CollaborationUIEventService');let CollaborationUIEventService=_CollaborationUIEventService;const INetworkConditionService=createIdentifier(_0xfa755a(0x1f7));function deserializeToCombResponse(_0x28050b){var _0x1517c9=_0xfa755a,_0x30e962,_0xc7a3e2,_0x2a42f1,_0x20bc87,_0x41f675;const _0x5e2d9e=_0x28050b[_0x1517c9(0x371)],_0x3708e5=JSON['parse'](_0x5e2d9e);switch(_0x3708e5[_0x1517c9(0x36d)]){case CombCmd[_0x1517c9(0x2da)]:case CombCmd[_0x1517c9(0x244)]:{const _0x700bf=_0x3708e5[_0x1517c9(0x416)];return{..._0x3708e5,'data':_0x700bf,'cmd':_0x3708e5[_0x1517c9(0x36d)]};}case CombCmd[_0x1517c9(0x2e1)]:{const _0x1044a1=_0x3708e5[_0x1517c9(0x46b)];return{..._0x3708e5,'data':_0x1044a1,'cmd':_0x3708e5[_0x1517c9(0x36d)]};}case CombCmd[_0x1517c9(0x309)]:{const _0x37ea99=_0x3708e5[_0x1517c9(0x3ea)];switch(_0x37ea99[_0x1517c9(0x27c)]){case CollaborationEvent[_0x1517c9(0x44e)]:return{..._0x3708e5,'data':{..._0x37ea99,'data':(_0x30e962=_0x37ea99[_0x1517c9(0x3b0)])==null?void 0x0:_0x30e962['cs']},'cmd':_0x3708e5[_0x1517c9(0x36d)]};case CollaborationEvent[_0x1517c9(0x277)]:return{..._0x3708e5,'data':{..._0x37ea99,'data':(_0xc7a3e2=_0x37ea99[_0x1517c9(0x185)])==null?void 0x0:_0xc7a3e2['cs']},'cmd':_0x3708e5[_0x1517c9(0x36d)]};case CollaborationEvent['NEW_CHANGESETS']:return{..._0x3708e5,'data':{..._0x37ea99,'data':(_0x2a42f1=_0x37ea99[_0x1517c9(0x179)])==null?void 0x0:_0x2a42f1['cs']},'cmd':_0x3708e5['cmd']};case CollaborationEvent['CHANGESET_REJ']:return{..._0x3708e5,'data':{..._0x37ea99,'data':(_0x20bc87=_0x37ea99[_0x1517c9(0x428)])==null?void 0x0:_0x20bc87['cs']},'cmd':_0x3708e5[_0x1517c9(0x36d)]};case CollaborationEvent['CHANGESET_SHOULD_RETRY']:return{..._0x3708e5,'data':{..._0x37ea99,'data':(_0x41f675=_0x37ea99[_0x1517c9(0x37b)])==null?void 0x0:_0x41f675['cs']},'cmd':_0x3708e5[_0x1517c9(0x36d)]};case CollaborationEvent[_0x1517c9(0x47c)]:return{..._0x3708e5,'data':{..._0x37ea99,'data':_0x37ea99[_0x1517c9(0x2c4)]},'cmd':_0x3708e5[_0x1517c9(0x36d)]};case CollaborationEvent[_0x1517c9(0x2ec)]:return{..._0x3708e5,'data':{..._0x37ea99,'data':_0x37ea99[_0x1517c9(0x1a9)]},'cmd':_0x3708e5[_0x1517c9(0x36d)]};case CollaborationEvent[_0x1517c9(0x2f1)]:return{..._0x3708e5,'data':{..._0x37ea99,'data':_0x37ea99[_0x1517c9(0x280)]},'cmd':_0x3708e5['cmd']};case CollaborationEvent[_0x1517c9(0x336)]:return{..._0x3708e5,'data':{..._0x37ea99,'data':_0x37ea99[_0x1517c9(0x32d)]},'cmd':_0x3708e5[_0x1517c9(0x36d)]};case CollaborationEvent[_0x1517c9(0x221)]:case CollaborationEvent[_0x1517c9(0x19c)]:return{..._0x3708e5,'data':{..._0x37ea99,'data':_0x37ea99[_0x1517c9(0x1a4)]},'cmd':_0x3708e5['cmd']};case CollaborationEvent[_0x1517c9(0x38a)]:return{..._0x3708e5,'data':{..._0x37ea99,'data':_0x37ea99['liveShareNewHost']},'cmd':_0x3708e5[_0x1517c9(0x36d)]};case CollaborationEvent['MSG_FOR_ERROR']:return{..._0x3708e5,'data':_0x37ea99,'cmd':_0x3708e5['cmd']};case CollaborationEvent[_0x1517c9(0x2ca)]:return{..._0x3708e5,'data':{..._0x37ea99,'data':_0x37ea99['commentUpdateEvent']},'cmd':_0x3708e5['cmd']};case CollaborationEvent[_0x1517c9(0x37f)]:return{..._0x3708e5,'data':{..._0x37ea99,'data':_0x37ea99['updatePermissionObjEvent']},'cmd':_0x3708e5[_0x1517c9(0x36d)]};case CollaborationEvent[_0x1517c9(0x4c2)]:return{..._0x3708e5,'data':{..._0x37ea99,'data':_0x37ea99[_0x1517c9(0x235)]},'cmd':_0x3708e5[_0x1517c9(0x36d)]};case CollaborationEvent[_0x1517c9(0x1e2)]:return{..._0x3708e5,'data':{..._0x37ea99,'data':_0x37ea99[_0x1517c9(0x3d3)]},'cmd':_0x3708e5[_0x1517c9(0x36d)]};default:return _0x3708e5;}}default:return _0x3708e5;}}__name(deserializeToCombResponse,_0xfa755a(0x31f));function serializeCombRequest(_0x2c65be){var _0x4fff5a=_0xfa755a;switch(_0x2c65be[_0x4fff5a(0x36d)]){case CombCmd[_0x4fff5a(0x2da)]:case CombCmd[_0x4fff5a(0x244)]:return JSON[_0x4fff5a(0x39d)]({'cmd':_0x2c65be[_0x4fff5a(0x36d)],'routeKey':_0x2c65be['routeKey']});case CombCmd['INGEST']:{let _0x8405cd;switch(_0x2c65be[_0x4fff5a(0x371)]['eventID']){case CollaborationEvent[_0x4fff5a(0x47c)]:{_0x8405cd={'eventID':CollaborationEvent[_0x4fff5a(0x47c)],'updateCursorEvent':_0x2c65be['data'][_0x4fff5a(0x371)]};break;}case CollaborationEvent[_0x4fff5a(0x2f1)]:{_0x8405cd={'eventID':CollaborationEvent[_0x4fff5a(0x2f1)],'leaveEvent':_0x2c65be[_0x4fff5a(0x371)][_0x4fff5a(0x371)]};break;}case CollaborationEvent[_0x4fff5a(0x2ec)]:{_0x8405cd={'eventID':CollaborationEvent[_0x4fff5a(0x2ec)],'joinEvent':_0x2c65be[_0x4fff5a(0x371)]['data']};break;}case CollaborationEvent[_0x4fff5a(0x336)]:{_0x8405cd={'eventID':CollaborationEvent['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x2c65be[_0x4fff5a(0x371)]['data']};break;}case CollaborationEvent[_0x4fff5a(0x19c)]:{_0x8405cd={'eventID':CollaborationEvent[_0x4fff5a(0x19c)],'liveShareOperation':_0x2c65be['data']['data']};break;}case CollaborationEvent[_0x4fff5a(0x38a)]:{_0x8405cd={'eventID':CollaborationEvent[_0x4fff5a(0x38a)],'liveShareTerminate':_0x2c65be[_0x4fff5a(0x371)][_0x4fff5a(0x371)]};break;}case CollaborationEvent[_0x4fff5a(0x1e7)]:{_0x8405cd={'eventID':CollaborationEvent[_0x4fff5a(0x1e7)],'liveShareRequestHost':_0x2c65be[_0x4fff5a(0x371)][_0x4fff5a(0x371)]};break;}case CollaborationEvent[_0x4fff5a(0x221)]:{_0x8405cd={'eventID':CollaborationEvent[_0x4fff5a(0x221)]};break;}default:_0x8405cd={'eventID':_0x2c65be[_0x4fff5a(0x371)][_0x4fff5a(0x27c)]};}return JSON['stringify']({'cmd':_0x2c65be[_0x4fff5a(0x36d)],'routeKey':_0x2c65be[_0x4fff5a(0x4bd)],'collaMsg':_0x8405cd});}case CombCmd[_0x4fff5a(0x2e1)]:return JSON[_0x4fff5a(0x39d)]({'cmd':_0x2c65be[_0x4fff5a(0x36d)],'routeKey':_0x2c65be[_0x4fff5a(0x4bd)],'joinReq':_0x2c65be[_0x4fff5a(0x371)]});case CombCmd[_0x4fff5a(0x29e)]:return JSON[_0x4fff5a(0x39d)]({'cmd':_0x2c65be[_0x4fff5a(0x36d)],'routeKey':_0x2c65be[_0x4fff5a(0x4bd)],'leaveReq':_0x2c65be[_0x4fff5a(0x371)]});default:throw new Error(_0x4fff5a(0x25f));}}__name(serializeCombRequest,_0xfa755a(0x1af));var __defProp$i=Object[_0xfa755a(0x29f)],__getOwnPropDesc$i=Object[_0xfa755a(0x1e0)],__decorateClass$i=__name((_0x2a0b8f,_0x398b51,_0x2f7260,_0x34cc0f)=>{var _0x2976e7=_0xfa755a;for(var _0x3d3137=_0x34cc0f>0x1?void 0x0:_0x34cc0f?__getOwnPropDesc$i(_0x398b51,_0x2f7260):_0x398b51,_0x16702f=_0x2a0b8f[_0x2976e7(0x2d2)]-0x1,_0x4ef286;_0x16702f>=0x0;_0x16702f--)(_0x4ef286=_0x2a0b8f[_0x16702f])&&(_0x3d3137=(_0x34cc0f?_0x4ef286(_0x398b51,_0x2f7260,_0x3d3137):_0x4ef286(_0x3d3137))||_0x3d3137);return _0x34cc0f&&_0x3d3137&&__defProp$i(_0x398b51,_0x2f7260,_0x3d3137),_0x3d3137;},'__decorateClass$i'),__decorateParam$i=__name((_0x18bbb1,_0x29b1dc)=>(_0x2c3b91,_0x509e5b)=>_0x29b1dc(_0x2c3b91,_0x509e5b,_0x18bbb1),_0xfa755a(0x497));const ICollaborationSocketService=createIdentifier('univer-pro.collaboration-client-socket-service');function generateSubmitChangesPath(_0x2b2557,_0x32fcce,_0x28c887){var _0x45cf3e=_0xfa755a;return _0x2b2557+'/'+_0x32fcce+_0x45cf3e(0x2eb)+_0x28c887+_0x45cf3e(0x365);}__name(generateSubmitChangesPath,_0xfa755a(0x212));var _a;let CollaborationSocketService=(_a=class extends Disposable{constructor(_0x309c88,_0x19e7d1,_0x26420e,_0x4dfdf8,_0x18e6c4){var _0xc5e7f7=_0xfa755a;super(),this[_0xc5e7f7(0x24a)]=_0x309c88,this[_0xc5e7f7(0x49a)]=_0x19e7d1,this['_configService']=_0x26420e,this[_0xc5e7f7(0x205)]=_0x4dfdf8,this[_0xc5e7f7(0x1b4)]=_0x18e6c4;}[_0xfa755a(0x1e6)](_0x4febae){var _0x1a51d2=_0xfa755a;const _0x4d1426=this[_0x1a51d2(0x24a)][_0x1a51d2(0x484)](ISocketService);if(!_0x4d1426)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!');const _0x4ac365=_0x4d1426[_0x1a51d2(0x1e6)](_0x4febae);if(!_0x4ac365)throw new Error(_0x1a51d2(0x406));const _0x58ce3a=new DisposableCollection(),_0x1f1d64=new Subject();_0x58ce3a[_0x1a51d2(0x361)](_0x4ac365[_0x1a51d2(0x258)][_0x1a51d2(0x186)](_0x19519f=>_0x1f1d64[_0x1a51d2(0x192)](_0x19519f))),_0x58ce3a['add'](toDisposable(()=>_0x1f1d64[_0x1a51d2(0x39c)]()));const _0x21fa34=new Subject();_0x58ce3a[_0x1a51d2(0x361)](_0x4ac365['error$']['subscribe'](_0x425b8b=>_0x21fa34[_0x1a51d2(0x192)](_0x425b8b))),_0x58ce3a[_0x1a51d2(0x361)](toDisposable(()=>_0x21fa34[_0x1a51d2(0x39c)]()));const _0x3b1110=new Subject();_0x58ce3a[_0x1a51d2(0x361)](_0x4ac365[_0x1a51d2(0x2ff)][_0x1a51d2(0x186)](_0x3bfe81=>{const _0x80e7b9=deserializeToCombResponse(_0x3bfe81);_0x3b1110['next'](_0x80e7b9);})),_0x58ce3a[_0x1a51d2(0x361)](toDisposable(()=>_0x3b1110['complete']()));let _0x4f5257;const _0x19e920=__name(()=>{var _0x4f675e=_0x1a51d2;_0x21fa34[_0x4f675e(0x192)](new Event(_0x4f675e(0x24f))),_0x1f1d64[_0x4f675e(0x192)](new CloseEvent(_0x4f675e(0x24f))),_0x4f5257[_0x4f675e(0x488)]();},'terminateWithError');return _0x4f5257={'memberID':'','close$':_0x1f1d64[_0x1a51d2(0x319)](),'error$':_0x21fa34['asObservable'](),'open$':_0x4ac365[_0x1a51d2(0x259)],'message$':_0x3b1110[_0x1a51d2(0x319)](),'send':__name(_0x36076d=>{var _0x3f84b5=_0x1a51d2;if(_0x36076d['cmd']===CombCmd[_0x3f84b5(0x1a1)]){if(_0x36076d[_0x3f84b5(0x371)][_0x3f84b5(0x27c)]===CollaborationEvent[_0x3f84b5(0x392)]){this[_0x3f84b5(0x254)](_0x4f5257,_0x36076d[_0x3f84b5(0x371)])['catch'](_0x28167d=>{var _0x29bf17=_0x3f84b5;this[_0x29bf17(0x205)][_0x29bf17(0x421)](_0x28167d),_0x19e920();});return;}if(_0x36076d[_0x3f84b5(0x371)][_0x3f84b5(0x27c)]===CollaborationEvent['FETCH_MISSING']){const _0x31b141=_0x36076d[_0x3f84b5(0x371)];this['_fetchMissChangesets'](_0x31b141)['then'](_0x252254=>{var _0x274cc9=_0x3f84b5;_0x3b1110[_0x274cc9(0x192)]({'cmd':CombCmd[_0x274cc9(0x309)],'code':CmdRspCode['OK'],'routeKey':_0x31b141[_0x274cc9(0x371)][_0x274cc9(0x412)],'routeType':'','data':{'eventID':CollaborationEvent['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x252254}}});})[_0x3f84b5(0x3c4)](_0x4d522f=>{var _0x50dcac=_0x3f84b5;this[_0x50dcac(0x205)][_0x50dcac(0x421)](_0x4d522f),_0x19e920();});return;}}_0x4ac365[_0x3f84b5(0x27f)](serializeCombRequest(_0x36076d));},_0x1a51d2(0x27f)),'close':__name(()=>{var _0x2d9f85=_0x1a51d2;_0x4ac365['close'](),_0x58ce3a[_0x2d9f85(0x366)]();},'close')},_0x4f5257;}async['_submitChangeset'](_0x2e3afe,_0x1e1493){var _0x4f5447=_0xfa755a,_0x2b3f67,_0x4bb052;const {unitType:_0x2199c8,unitID:_0x554437,changeset:_0x2e1b81}=_0x1e1493['data'],_0x41dcd8={'unitID':_0x554437,'memberID':_0x2e3afe[_0x4f5447(0x289)],'type':_0x2199c8,'changeset':parseChangesetToProtocol(_0x2e1b81)},_0x1b9916=this[_0x4f5447(0x480)][_0x4f5447(0x3a4)](COLLAB_SUBMIT_CHANGESET_URL_KEY),_0x156af7=this[_0x4f5447(0x480)]['getConfig'](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY),_0x996223=generateSubmitChangesPath((_0x4bb052=(_0x2b3f67=_0x156af7==null?void 0x0:_0x156af7[_0x4f5447(0x2de)])!=null?_0x2b3f67:_0x1b9916)!=null?_0x4bb052:DEFAULT_COLLAB_SUBMIT_CHANGESET_URL,_0x2199c8,_0x554437);try{await this['_http'][_0x4f5447(0x4cc)](_0x996223,{'body':_0x41dcd8});}catch(_0x13a8fb){throw this[_0x4f5447(0x205)][_0x4f5447(0x421)](_0x4f5447(0x452),'submit\x20changeset\x20error!'),_0x13a8fb;}}async[_0xfa755a(0x322)](_0x5ab631){var _0x165022=_0xfa755a;const {unitID:_0x588361,from:_0x19fb67,to:_0x102896,unitType:_0x37abf9}=_0x5ab631['data'];return(await this[_0x165022(0x1b4)][_0x165022(0x4a8)]({'metadata':void 0x0},{'unitID':_0x588361,'type':_0x37abf9,'from':_0x19fb67,'to':_0x102896}))['changesets'];}},__name(_a,_0xfa755a(0x282)),_a);CollaborationSocketService=__decorateClass$i([__decorateParam$i(0x0,Inject(Injector)),__decorateParam$i(0x1,Inject(HTTPService)),__decorateParam$i(0x2,IConfigService),__decorateParam$i(0x3,ILogService),__decorateParam$i(0x4,ISnapshotServerService)],CollaborationSocketService);const TELEMETRY_COLLABORATION_NEW_CHANGESET=_0xfa755a(0x291);function summaryChangesetSize(_0x4e2235){var _0x3411fe=_0xfa755a;return JSON[_0x3411fe(0x39d)](_0x4e2235)[_0x3411fe(0x2d2)];}__name(summaryChangesetSize,'summaryChangesetSize');const _CommentService=class _CommentService{constructor(){var _0x56a125=_0xfa755a;__publicField(this,_0x56a125(0x3cb),new Subject()),__publicField(this,_0x56a125(0x3a2),this['_commentUpdate$']['asObservable']());}['onCommentUpdate'](_0x3fecef){var _0x4e457c=_0xfa755a;this[_0x4e457c(0x3cb)][_0x4e457c(0x192)](_0x3fecef);}};__name(_CommentService,_0xfa755a(0x274));let CommentService=_CommentService;var __defProp$h=Object[_0xfa755a(0x29f)],__getOwnPropDesc$h=Object[_0xfa755a(0x1e0)],__decorateClass$h=__name((_0x476490,_0x4d4929,_0x280c5e,_0x2b65b2)=>{var _0x2d164d=_0xfa755a;for(var _0x4c5d7d=_0x2b65b2>0x1?void 0x0:_0x2b65b2?__getOwnPropDesc$h(_0x4d4929,_0x280c5e):_0x4d4929,_0x51f05b=_0x476490[_0x2d164d(0x2d2)]-0x1,_0x33dde9;_0x51f05b>=0x0;_0x51f05b--)(_0x33dde9=_0x476490[_0x51f05b])&&(_0x4c5d7d=(_0x2b65b2?_0x33dde9(_0x4d4929,_0x280c5e,_0x4c5d7d):_0x33dde9(_0x4c5d7d))||_0x4c5d7d);return _0x2b65b2&&_0x4c5d7d&&__defProp$h(_0x4d4929,_0x280c5e,_0x4c5d7d),_0x4c5d7d;},_0xfa755a(0x30c)),__decorateParam$h=__name((_0x4be9dd,_0x3b2c3e)=>(_0x6aa6eb,_0x4b419e)=>_0x3b2c3e(_0x6aa6eb,_0x4b419e,_0x4be9dd),_0xfa755a(0x334)),_a2;let MemberService=(_a2=class extends Disposable{constructor(_0x4a789a,_0x3b554f){var _0x130593=_0xfa755a;super(),__publicField(this,_0x130593(0x20e),new Map()),__publicField(this,_0x130593(0x28f),new Subject()),(this[_0x130593(0x2be)]=_0x4a789a,this[_0x130593(0x457)]=_0x3b554f,this[_0x130593(0x434)](merge(this['_univerInstanceService']['getTypeOfUnitDisposed$'](UniverInstanceType[_0x130593(0x223)])[_0x130593(0x34d)](map(_0x163d85=>_0x163d85[_0x130593(0x48c)]())),this[_0x130593(0x2be)][_0x130593(0x265)](UniverInstanceType['UNIVER_DOC'])['pipe'](map(_0x582617=>_0x582617[_0x130593(0x48c)]())),this[_0x130593(0x2be)][_0x130593(0x265)](UniverInstanceType[_0x130593(0x224)])[_0x130593(0x34d)](map(_0x377c89=>_0x377c89[_0x130593(0x48c)]())))['subscribe'](_0x23ebf3=>this[_0x130593(0x347)](_0x23ebf3))));}['waitForRoom$'](_0xd6bd6a){var _0x189741=_0xfa755a;return this[_0x189741(0x20e)][_0x189741(0x378)](_0xd6bd6a)?of(this[_0x189741(0x20e)][_0x189741(0x484)](_0xd6bd6a)):this[_0x189741(0x28f)][_0x189741(0x34d)](map(_0x107831=>{var _0x47951a=_0x189741;if(_0x107831===_0xd6bd6a)return this[_0x47951a(0x20e)][_0x47951a(0x484)](_0x107831);}));}[_0xfa755a(0x2ee)](_0x47417f){var _0x4a81ba=_0xfa755a;this[_0x4a81ba(0x457)][_0x4a81ba(0x2ee)](_0x47417f);}[_0xfa755a(0x473)](){var _0x50fa4a=_0xfa755a;return this[_0x50fa4a(0x457)][_0x50fa4a(0x473)]();}[_0xfa755a(0x23e)](_0x35ff0e,_0x25f6c1){var _0x176f7d=_0xfa755a;let _0x3d90d9=this['_roomMembers'][_0x176f7d(0x484)](_0x35ff0e);_0x3d90d9||(_0x3d90d9=new RoomMember(),this[_0x176f7d(0x20e)]['set'](_0x35ff0e,_0x3d90d9),this[_0x176f7d(0x28f)][_0x176f7d(0x192)](_0x35ff0e)),_0x3d90d9[_0x176f7d(0x23e)](_0x25f6c1);}[_0xfa755a(0x3a9)](_0x2479dd,_0x5bda8b){var _0x31d337=_0xfa755a;const _0x35f592=this[_0x31d337(0x20e)]['get'](_0x2479dd);_0x35f592&&_0x35f592[_0x31d337(0x3a9)](_0x5bda8b);}[_0xfa755a(0x238)](_0x3c44f3){var _0x25f0ec=_0xfa755a;return this['_roomMembers'][_0x25f0ec(0x484)](_0x3c44f3);}[_0xfa755a(0x1dc)](_0x45deee,_0x17abc7){var _0x23c730=_0xfa755a;const _0x13bbae=this[_0x23c730(0x20e)][_0x23c730(0x484)](_0x45deee);if(_0x13bbae)return _0x13bbae[_0x23c730(0x1dc)](_0x17abc7);}[_0xfa755a(0x347)](_0x2d85bc){var _0x484ccc=_0xfa755a;const _0x4afdf8=this[_0x484ccc(0x20e)][_0x484ccc(0x484)](_0x2d85bc);_0x4afdf8&&(_0x4afdf8[_0x484ccc(0x366)](),this['_roomMembers']['delete'](_0x2d85bc));}[_0xfa755a(0x366)](){var _0x5b2675=_0xfa755a;this[_0x5b2675(0x20e)]['forEach'](_0x32a3e3=>_0x32a3e3['dispose']()),this[_0x5b2675(0x20e)]['clear'](),this[_0x5b2675(0x28f)][_0x5b2675(0x39c)]();}},__name(_a2,_0xfa755a(0x306)),_a2);MemberService=__decorateClass$h([__decorateParam$h(0x0,IUniverInstanceService),__decorateParam$h(0x1,Inject(UserManagerService))],MemberService);const _RoomMember=class _RoomMember extends Disposable{constructor(){var _0x239b24=_0xfa755a;super(...arguments),__publicField(this,_0x239b24(0x4cd),new Map()),__publicField(this,_0x239b24(0x395),new BehaviorSubject(this[_0x239b24(0x4cd)])),__publicField(this,_0x239b24(0x25c),this[_0x239b24(0x395)][_0x239b24(0x319)]());}[_0xfa755a(0x366)](){var _0x36612f=_0xfa755a;this[_0x36612f(0x4cd)]['clear']();}[_0xfa755a(0x23e)](_0x44183b){var _0x1101bb=_0xfa755a;this[_0x1101bb(0x4cd)][_0x1101bb(0x32c)](_0x44183b[_0x1101bb(0x289)],_0x44183b),this['_emitMembers']();}[_0xfa755a(0x3a9)](_0x51a69e){var _0x238c67=_0xfa755a;this[_0x238c67(0x4cd)][_0x238c67(0x3be)](_0x51a69e);}[_0xfa755a(0x1dc)](_0x2d3e8e){var _0x5967eb=_0xfa755a;return this[_0x5967eb(0x4cd)][_0x5967eb(0x484)](_0x2d3e8e);}['getAllMembers'](){var _0xc1f149=_0xfa755a;return Array[_0xc1f149(0x2f8)](this[_0xc1f149(0x4cd)]['values']());}['_emitMembers'](){var _0x22e9ec=_0xfa755a;this[_0x22e9ec(0x395)][_0x22e9ec(0x192)](this[_0x22e9ec(0x4cd)]);}};__name(_RoomMember,'RoomMember');let RoomMember=_RoomMember;var __defProp$g=Object[_0xfa755a(0x29f)],__getOwnPropDesc$g=Object['getOwnPropertyDescriptor'],__decorateClass$g=__name((_0x14661c,_0x3b6eb2,_0x48ba1a,_0x408b85)=>{for(var _0x426f66=_0x408b85>0x1?void 0x0:_0x408b85?__getOwnPropDesc$g(_0x3b6eb2,_0x48ba1a):_0x3b6eb2,_0x489199=_0x14661c['length']-0x1,_0x2c421f;_0x489199>=0x0;_0x489199--)(_0x2c421f=_0x14661c[_0x489199])&&(_0x426f66=(_0x408b85?_0x2c421f(_0x3b6eb2,_0x48ba1a,_0x426f66):_0x2c421f(_0x426f66))||_0x426f66);return _0x408b85&&_0x426f66&&__defProp$g(_0x3b6eb2,_0x48ba1a,_0x426f66),_0x426f66;},'__decorateClass$g'),__decorateParam$g=__name((_0x1913cb,_0x2cd4f1)=>(_0x1297b0,_0x5919bb)=>_0x2cd4f1(_0x1297b0,_0x5919bb,_0x1913cb),_0xfa755a(0x302)),SessionStatus=(_0x57a032=>(_0x57a032[_0x57a032[_0xfa755a(0x3a3)]=0x0]=_0xfa755a(0x3a3),_0x57a032[_0x57a032[_0xfa755a(0x1a5)]=0x1]=_0xfa755a(0x1a5),_0x57a032[_0x57a032[_0xfa755a(0x261)]=0x2]=_0xfa755a(0x261),_0x57a032[_0x57a032['ONLINE']=0x3]=_0xfa755a(0x3c0),_0x57a032))(SessionStatus||{});const FailedReason={[CmdRspCode[_0xfa755a(0x2f6)]]:'session.join-failed',[CmdRspCode['JOIN_ROOM_FULL']]:_0xfa755a(0x369),[CmdRspCode[_0xfa755a(0x1ed)]]:_0xfa755a(0x29b),[CmdRspCode[_0xfa755a(0x3f4)]]:_0xfa755a(0x490),[CmdRspCode[_0xfa755a(0x42f)]]:_0xfa755a(0x1c4)};var _a3;let CollaborationSession=(_a3=class extends RxDisposable{constructor(_0x45b771,_0x487be7,_0x583b90,_0x3231e6,_0x29180e,_0x286ae4,_0x16a845,_0x3c486a,_0x5c8d57){var _0x49f6e5=_0xfa755a;super(),__publicField(this,'_sessionStatus$',new BehaviorSubject(0x0)),__publicField(this,_0x49f6e5(0x1e3),this[_0x49f6e5(0x367)]['asObservable']()),__publicField(this,_0x49f6e5(0x4b5),new Subject()),__publicField(this,_0x49f6e5(0x2cc),this[_0x49f6e5(0x4b5)][_0x49f6e5(0x319)]()),__publicField(this,_0x49f6e5(0x397)),__publicField(this,'_socketMessageSubscription'),__publicField(this,_0x49f6e5(0x4c4)),__publicField(this,'_shouldReportTelemetry',!0x1),__publicField(this,'_telemetryInfo',null),(this[_0x49f6e5(0x17b)]=_0x45b771,this[_0x49f6e5(0x205)]=_0x583b90,this[_0x49f6e5(0x480)]=_0x3231e6,this['_localeService']=_0x29180e,this[_0x49f6e5(0x195)]=_0x286ae4,this[_0x49f6e5(0x41e)]=_0x16a845,this[_0x49f6e5(0x1b9)]=_0x3c486a,this[_0x49f6e5(0x4cb)]=_0x5c8d57,this['_shouldReportTelemetry']=!!this['_telemetryService'],_0x487be7['pipe'](takeUntil(this[_0x49f6e5(0x39e)]))['subscribe'](_0x540e24=>{var _0x553bab=_0x49f6e5,_0x512650;typeof _0x540e24>'u'||(this[_0x553bab(0x397)]=_0x540e24,_0x540e24?(this[_0x553bab(0x408)](_0x540e24),this[_0x553bab(0x198)]=_0x540e24[_0x553bab(0x2ff)]['subscribe'](_0x29e92e=>{var _0x33c9b8=_0x553bab;_0x29e92e[_0x33c9b8(0x4bd)]===this['_unitID']&&this[_0x33c9b8(0x2d4)](_0x29e92e);})):(this['_throwTelemetryCollaborationNewChangeset'](),this['_sessionStatus$'][_0x553bab(0x192)](0x2),(_0x512650=this[_0x553bab(0x198)])==null||_0x512650[_0x553bab(0x372)](),this['_socketMessageSubscription']=null));}));}get[_0xfa755a(0x18f)](){var _0x1f7859=_0xfa755a;return this[_0x1f7859(0x367)][_0x1f7859(0x1fa)]();}[_0xfa755a(0x37e)](){var _0x75f172=_0xfa755a,_0x17da61,_0x1a3868;return(_0x1a3868=(_0x17da61=this['_socket'])==null?void 0x0:_0x17da61[_0x75f172(0x289)])!=null?_0x1a3868:null;}[_0xfa755a(0x366)](){var _0x106e7b=_0xfa755a;super[_0x106e7b(0x366)](),this['dispose$']['next'](),this[_0x106e7b(0x39e)][_0x106e7b(0x39c)]();}[_0xfa755a(0x488)](){var _0x3f34f4=_0xfa755a,_0x198afa,_0xbd96c5;this[_0x3f34f4(0x2a4)](),(_0x198afa=this['_socket'])==null||_0x198afa[_0x3f34f4(0x27f)]({'cmd':CombCmd[_0x3f34f4(0x29e)],'data':{'roomID':this[_0x3f34f4(0x17b)]}}),(_0xbd96c5=this['_socket'])==null||_0xbd96c5[_0x3f34f4(0x488)](),this[_0x3f34f4(0x4b5)][_0x3f34f4(0x39c)](),this[_0x3f34f4(0x367)][_0x3f34f4(0x39c)](),this[_0x3f34f4(0x366)]();}[_0xfa755a(0x2d4)](_0x4a609c){var _0x27c26e=_0xfa755a;_0x4a609c[_0x27c26e(0x36d)]===CombCmd[_0x27c26e(0x2e1)]?this['_onJoinRoomEvent'](_0x4a609c):_0x4a609c[_0x27c26e(0x36d)]===CombCmd['RECV']&&this[_0x27c26e(0x2b3)](_0x4a609c);}[_0xfa755a(0x408)](_0x35afab){var _0x40aed4=_0xfa755a;this[_0x40aed4(0x367)]['next'](0x1),_0x35afab[_0x40aed4(0x27f)]({'cmd':CombCmd['JOIN'],'routeKey':this[_0x40aed4(0x17b)],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0xfa755a(0x48e)](_0x119b66){var _0x4e8338=_0xfa755a,_0x2fd504;if(_0x119b66[_0x4e8338(0x21c)]in FailedReason){this[_0x4e8338(0x1b9)][_0x4e8338(0x281)]({'id':CollaborationUIEventId['JOIN_ROOM_FAILED'],'data':FailedReason[_0x119b66[_0x4e8338(0x21c)]]}),this['_sessionStatus$']['next'](0x2);return;}this[_0x4e8338(0x367)]['next'](0x3);const _0x3ab0e8=(_0x2fd504=_0x119b66[_0x4e8338(0x371)]['roomInfos'][this[_0x4e8338(0x17b)]])==null?void 0x0:_0x2fd504[_0x4e8338(0x489)];_0x3ab0e8&&_0x3ab0e8[_0x4e8338(0x307)](_0xee42bf=>this[_0x4e8338(0x195)][_0x4e8338(0x23e)](this[_0x4e8338(0x17b)],_0xee42bf));}[_0xfa755a(0x2b3)](_0x39aa8e){var _0x2487d3=_0xfa755a;try{const _0x2b16a3=_0x39aa8e[_0x2487d3(0x371)];switch(_0x2b16a3[_0x2487d3(0x27c)]){case CollaborationEvent[_0x2487d3(0x2ec)]:this[_0x2487d3(0x3f6)](_0x2b16a3),this[_0x2487d3(0x4b5)][_0x2487d3(0x192)](_0x2b16a3);break;case CollaborationEvent[_0x2487d3(0x2f1)]:this[_0x2487d3(0x226)](_0x2b16a3),this[_0x2487d3(0x4b5)][_0x2487d3(0x192)](_0x2b16a3);break;case CollaborationEvent[_0x2487d3(0x277)]:case CollaborationEvent['CHANGESET_SHOULD_RETRY']:this['_stopTelemetryCollaborationNewChangeset'](),this[_0x2487d3(0x33a)](),this[_0x2487d3(0x4b5)][_0x2487d3(0x192)](_0x2b16a3);break;case CollaborationEvent[_0x2487d3(0x225)]:this[_0x2487d3(0x205)][_0x2487d3(0x421)](_0x2487d3(0x1ee)+JSON[_0x2487d3(0x39d)](_0x2b16a3)),this['_event$'][_0x2487d3(0x192)](_0x2b16a3);break;case CollaborationEvent[_0x2487d3(0x2ca)]:this[_0x2487d3(0x41e)][_0x2487d3(0x470)](_0x2b16a3[_0x2487d3(0x371)]),this[_0x2487d3(0x4b5)]['next'](_0x2b16a3);break;default:this[_0x2487d3(0x4b5)]['next'](_0x2b16a3);}}catch(_0x1b7050){this['_logService'][_0x2487d3(0x421)](_0x1b7050,_0x39aa8e);}}[_0xfa755a(0x3f6)](_0x42bdba){var _0xb9ac84=_0xfa755a;this[_0xb9ac84(0x195)][_0xb9ac84(0x23e)](this[_0xb9ac84(0x17b)],_0x42bdba['data']);}[_0xfa755a(0x226)](_0x408255){var _0x1a6532=_0xfa755a;this[_0x1a6532(0x195)][_0x1a6532(0x3a9)](this[_0x1a6532(0x17b)],_0x408255[_0x1a6532(0x371)][_0x1a6532(0x289)]);}async[_0xfa755a(0x27f)](_0x52ae80,_0x33cc79){var _0x248df9=_0xfa755a;if(this['sessionStatus']!==0x3||!this['_socket'])throw new Error(_0x248df9(0x266));try{_0x52ae80['eventID']===CollaborationEvent[_0x248df9(0x392)]&&(this[_0x248df9(0x389)](),this[_0x248df9(0x1c3)](_0x52ae80)),this[_0x248df9(0x397)]['send']({'cmd':CombCmd[_0x248df9(0x1a1)],'routeKey':_0x33cc79,'routeType':'','data':_0x52ae80});}catch(_0x5e5999){this[_0x248df9(0x205)][_0x248df9(0x421)](_0x5e5999);}}[_0xfa755a(0x389)](){var _0x5af097=_0xfa755a,_0x4cbe93;this['_collaborationTimeoutTimer']=setTimeout(()=>{var _0x2f6570=_0x4f8b;this['_collaborationTimeoutTimer']=null,this[_0x2f6570(0x1b9)]['emitEvent']({'id':CollaborationUIEventId['SUBMIT_CHANGESET_TIMEOUT']});},(_0x4cbe93=this['_configService'][_0x5af097(0x3a4)](HEARTBEAT_TIMEOUT_KEY))!=null?_0x4cbe93:DEFAULT_HEARTBEAT_TIMEOUT);}[_0xfa755a(0x33a)](){var _0x4bf8ee=_0xfa755a;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x4bf8ee(0x4c4)]),this[_0x4bf8ee(0x4c4)]=null);}[_0xfa755a(0x1c3)](_0x341d76){var _0x346a3e=_0xfa755a;if(!this[_0x346a3e(0x297)])return;const {data:_0x363eaf}=_0x341d76,{unitID:_0x3aa22d,changeset:_0x182a2f}=_0x363eaf,{mutations:_0x5018ba,type:_0x106408}=_0x182a2f;this[_0x346a3e(0x187)]={'unitId':_0x3aa22d,'type':_0x106408,'startTime':performance[_0x346a3e(0x451)](),'stopTime':0x0,'duration':0x0,'size':summaryChangesetSize(_0x5018ba)};}[_0xfa755a(0x243)](){var _0xfcf4ea=_0xfa755a;if(this[_0xfcf4ea(0x297)]){if(!this[_0xfcf4ea(0x187)]){this[_0xfcf4ea(0x205)][_0xfcf4ea(0x421)]('[CollaborationSession]',_0xfcf4ea(0x3f9));return;}this[_0xfcf4ea(0x187)]['stopTime']=performance[_0xfcf4ea(0x451)](),this[_0xfcf4ea(0x187)][_0xfcf4ea(0x38f)]=this[_0xfcf4ea(0x187)][_0xfcf4ea(0x4b4)]-this[_0xfcf4ea(0x187)]['startTime'],this['_telemetryService']['capture'](TELEMETRY_COLLABORATION_NEW_CHANGESET,this[_0xfcf4ea(0x187)]),this[_0xfcf4ea(0x187)]=null;}}[_0xfa755a(0x2a4)](){var _0x56d7cb=_0xfa755a;this[_0x56d7cb(0x187)]=null;}},__name(_a3,_0xfa755a(0x17a)),_a3);CollaborationSession=__decorateClass$g([__decorateParam$g(0x2,ILogService),__decorateParam$g(0x3,IConfigService),__decorateParam$g(0x4,Inject(LocaleService)),__decorateParam$g(0x5,Inject(MemberService)),__decorateParam$g(0x6,Inject(CommentService)),__decorateParam$g(0x7,Inject(CollaborationUIEventService)),__decorateParam$g(0x8,Optional(ITelemetryService))],CollaborationSession);var __defProp$f=Object['defineProperty'],__getOwnPropDesc$f=Object[_0xfa755a(0x1e0)],__decorateClass$f=__name((_0x10ce6d,_0x5e29a9,_0x5c001f,_0x9d37b9)=>{var _0x4291ce=_0xfa755a;for(var _0x4efd5e=_0x9d37b9>0x1?void 0x0:_0x9d37b9?__getOwnPropDesc$f(_0x5e29a9,_0x5c001f):_0x5e29a9,_0x5e0b5b=_0x10ce6d[_0x4291ce(0x2d2)]-0x1,_0x3eb61d;_0x5e0b5b>=0x0;_0x5e0b5b--)(_0x3eb61d=_0x10ce6d[_0x5e0b5b])&&(_0x4efd5e=(_0x9d37b9?_0x3eb61d(_0x5e29a9,_0x5c001f,_0x4efd5e):_0x3eb61d(_0x4efd5e))||_0x4efd5e);return _0x9d37b9&&_0x4efd5e&&__defProp$f(_0x5e29a9,_0x5c001f,_0x4efd5e),_0x4efd5e;},'__decorateClass$f'),__decorateParam$f=__name((_0x13d737,_0x1f4411)=>(_0x45db39,_0x4a4ba7)=>_0x1f4411(_0x45db39,_0x4a4ba7,_0x13d737),_0xfa755a(0x1e9)),_a4;let CollaborationSessionService=(_a4=class extends Disposable{constructor(_0x134fbb,_0x40e2f1,_0x40e3ee,_0x53b4a3,_0x5017bf,_0x24c6ee,_0x5692c6){var _0x254ecf=_0xfa755a;super(),__publicField(this,_0x254ecf(0x4cf),new BehaviorSubject(void 0x0)),__publicField(this,_0x254ecf(0x1df),this[_0x254ecf(0x4cf)][_0x254ecf(0x319)]()),__publicField(this,_0x254ecf(0x31c),null),__publicField(this,_0x254ecf(0x4af),new Map()),__publicField(this,_0x254ecf(0x439),new BehaviorSubject(SessionStatus['IDLE'])),__publicField(this,_0x254ecf(0x1d9),this[_0x254ecf(0x439)][_0x254ecf(0x319)]()),__publicField(this,_0x254ecf(0x232),!0x1),__publicField(this,_0x254ecf(0x196)),__publicField(this,_0x254ecf(0x3d1),0x0),__publicField(this,_0x254ecf(0x34e)),__publicField(this,_0x254ecf(0x446)),(this[_0x254ecf(0x24a)]=_0x134fbb,this['_logService']=_0x40e2f1,this[_0x254ecf(0x480)]=_0x40e3ee,this[_0x254ecf(0x46d)]=_0x53b4a3,this[_0x254ecf(0x3c5)]=_0x5017bf,this[_0x254ecf(0x1b9)]=_0x24c6ee,this[_0x254ecf(0x27d)]=_0x5692c6,this[_0x254ecf(0x1bf)]());}get[_0xfa755a(0x397)](){var _0x30b5bc=_0xfa755a;return this[_0x30b5bc(0x4cf)][_0x30b5bc(0x1fa)]();}['_listenToNetworkCondition'](){var _0x907b1e=_0xfa755a;this[_0x907b1e(0x27d)]&&this['disposeWithMe'](this[_0x907b1e(0x27d)]['online$'][_0x907b1e(0x186)](_0x118ee6=>{var _0x4b20cc=_0x907b1e;_0x118ee6&&!this[_0x4b20cc(0x397)]&&this[_0x4b20cc(0x3d2)](),_0x118ee6||this['_onOffline']();}));}[_0xfa755a(0x366)](){var _0x4cedb2=_0xfa755a;super[_0x4cedb2(0x366)](),this[_0x4cedb2(0x4af)]['forEach'](_0x4471a4=>_0x4471a4[_0x4cedb2(0x366)]()),this[_0x4cedb2(0x4af)]['clear'](),this['_status$']['complete']();}async[_0xfa755a(0x1a0)](_0x4f1bf2){var _0x2bc660=_0xfa755a;if(this[_0x2bc660(0x4af)][_0x2bc660(0x378)](_0x4f1bf2))return this[_0x2bc660(0x4af)][_0x2bc660(0x484)](_0x4f1bf2);this[_0x2bc660(0x29d)]();const _0x261b23=this[_0x2bc660(0x24a)][_0x2bc660(0x478)](CollaborationSession,_0x4f1bf2,this[_0x2bc660(0x4cf)][_0x2bc660(0x319)]());return this['_sessions'][_0x2bc660(0x32c)](_0x4f1bf2,_0x261b23),_0x261b23;}[_0xfa755a(0x4a3)](_0x5aa090){var _0x306b9c=_0xfa755a,_0x3009a7;const _0x226e69=this[_0x306b9c(0x4af)][_0x306b9c(0x484)](_0x5aa090);_0x226e69&&(this[_0x306b9c(0x4af)][_0x306b9c(0x3be)](_0x5aa090),_0x226e69[_0x306b9c(0x488)]()),this[_0x306b9c(0x4af)][_0x306b9c(0x2dd)]||(_0x3009a7=this[_0x306b9c(0x397)])==null||_0x3009a7[_0x306b9c(0x488)]();}[_0xfa755a(0x3d2)](){var _0x44a2aa=_0xfa755a;this[_0x44a2aa(0x3d1)]=0x0,this[_0x44a2aa(0x196)]!=null&&(clearTimeout(this[_0x44a2aa(0x196)]),this[_0x44a2aa(0x196)]=null),this[_0x44a2aa(0x3fa)]();}async[_0xfa755a(0x352)](){var _0x33ff57=_0xfa755a,_0x5b8bb9,_0x8e6642,_0x126c3a;const _0x2a4267=this[_0x33ff57(0x480)]['getConfig'](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY),_0x384596=(_0x5b8bb9=_0x2a4267==null?void 0x0:_0x2a4267[_0x33ff57(0x33d)])!=null?_0x5b8bb9:DEFAULT_WS_SESSION_TICKET_URL;return(_0x126c3a=(_0x8e6642=(await this[_0x33ff57(0x3c5)]['get'](_0x384596,{'headers':{'Content-Type':_0x33ff57(0x409)}}))[_0x33ff57(0x346)])==null?void 0x0:_0x8e6642['ticket'])!=null?_0x126c3a:'';}[_0xfa755a(0x193)](_0x59bce6){var _0x1c014c=_0xfa755a,_0x28b75a,_0x5786d7;const _0x13da6a=this[_0x1c014c(0x480)]['getConfig'](COLLAB_WEB_SOCKET_URL_KEY),_0x23c216=this[_0x1c014c(0x480)]['getConfig'](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY),_0x2f03dd=(_0x5786d7=(_0x28b75a=_0x23c216==null?void 0x0:_0x23c216[_0x1c014c(0x32b)])!=null?_0x28b75a:_0x13da6a)!=null?_0x5786d7:DEFAULT_COLLAB_WEB_SOCKET_URL,_0x4e7308=typeof window>'u'?new URL(_0x2f03dd):new URL(_0x2f03dd,window[_0x1c014c(0x1aa)][_0x1c014c(0x36c)]);_0x4e7308[_0x1c014c(0x469)][_0x1c014c(0x32c)]('sessionTicket',_0x59bce6);const _0xf4fbe7=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x1c014c(0x1aa)]['search']);return _0xf4fbe7[_0x1c014c(0x484)](_0x1c014c(0x3af))&&_0x4e7308[_0x1c014c(0x469)][_0x1c014c(0x32c)](_0x1c014c(0x3af),_0xf4fbe7[_0x1c014c(0x484)](_0x1c014c(0x3af))),_0x4e7308[_0x1c014c(0x204)]();}async[_0xfa755a(0x363)](){var _0x22d4b4=_0xfa755a;const _0x5729d6=await this[_0x22d4b4(0x352)](),_0x1dd849=this[_0x22d4b4(0x193)](_0x5729d6),_0x203c20=this[_0x22d4b4(0x46d)]['createSocket'](_0x1dd849);return this[_0x22d4b4(0x31c)]=_0x203c20,_0x203c20;}async[_0xfa755a(0x29d)](){var _0x3dd745=_0xfa755a,_0xaf5501,_0x82720b;try{const _0x4236f7=(_0x82720b=(_0xaf5501=this[_0x3dd745(0x397)])!=null?_0xaf5501:this[_0x3dd745(0x31c)])!=null?_0x82720b:await this[_0x3dd745(0x363)]();if(_0x4236f7){const _0x3db02d=_0x4236f7[_0x3dd745(0x27f)];_0x4236f7['send']=_0x465046=>(this[_0x3dd745(0x43c)](),_0x3db02d[_0x3dd745(0x37d)](_0x4236f7,[_0x465046])),_0x4236f7[_0x3dd745(0x2ff)][_0x3dd745(0x186)](_0x100be4=>this[_0x3dd745(0x1d0)](_0x4236f7,_0x100be4)),_0x4236f7[_0x3dd745(0x2f0)][_0x3dd745(0x34d)](take(0x1))['subscribe'](_0x3b6b0e=>this['_logService']['error']('[CollaborationSessionService]:\x20socket\x20error',_0x3b6b0e)),_0x4236f7[_0x3dd745(0x259)]['pipe'](take(0x1))[_0x3dd745(0x186)](()=>{var _0x568ffd=_0x3dd745;this[_0x568ffd(0x3f0)](_0x4236f7);}),_0x4236f7[_0x3dd745(0x258)][_0x3dd745(0x34d)](take(0x1))['subscribe'](_0x52dd60=>{var _0x3b3e7f=_0x3dd745;this[_0x3b3e7f(0x205)][_0x3b3e7f(0x2d6)](_0x3b3e7f(0x1a7),'socket\x20close',_0x52dd60),this['_onConnectionFailed']();});}}catch(_0x28aec4){this[_0x3dd745(0x205)][_0x3dd745(0x421)](_0x28aec4),this[_0x3dd745(0x368)]();}}[_0xfa755a(0x3f0)](_0x4dcd18){var _0x53c664=_0xfa755a;this[_0x53c664(0x205)][_0x53c664(0x2d6)]('[CollaborationSessionService]',_0x53c664(0x1e4)),_0x4dcd18[_0x53c664(0x27f)]({'cmd':CombCmd[_0x53c664(0x244)]}),this[_0x53c664(0x43c)]();}[_0xfa755a(0x40a)](){var _0x2db9f2=_0xfa755a;this[_0x2db9f2(0x232)]=!0x1,this['_candidateSocket']=null,this[_0x2db9f2(0x439)]['next'](SessionStatus['OFFLINE']),this['_socket$'][_0x2db9f2(0x192)](null),this[_0x2db9f2(0x45b)](),this[_0x2db9f2(0x475)]();}[_0xfa755a(0x368)](){var _0x1f3e47=_0xfa755a,_0x2a026c;this[_0x1f3e47(0x40a)](),this['_retryCount']<((_0x2a026c=this[_0x1f3e47(0x480)]['getConfig'](RETRY_CONNECTING_MAX_COUNT_KEY))!=null?_0x2a026c:DEFAULT_RETRY_CONNECTING_MAX_COUNT)?(this[_0x1f3e47(0x1b9)][_0x1f3e47(0x281)]({'id':CollaborationUIEventId['SOCKET_FAILED_RETRY']}),this[_0x1f3e47(0x3fa)]()):this['_collaborationUIEventService'][_0x1f3e47(0x281)]({'id':CollaborationUIEventId[_0x1f3e47(0x354)]});}[_0xfa755a(0x3fa)](){var _0x3be87c=_0xfa755a,_0x1cc391;const _0xc21c50=this[_0x3be87c(0x3d1)],_0x232892=this[_0x3be87c(0x480)][_0x3be87c(0x3a4)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY),_0x306d73=_0xc21c50===0x0?0x0:((_0x1cc391=_0x232892==null?void 0x0:_0x232892[_0x3be87c(0x178)])!=null?_0x1cc391:DEFAULT_RETRY_CONNECTING_INTERVAL)*0x2**_0xc21c50;this[_0x3be87c(0x196)]=setTimeout(()=>{var _0x4b1d8f=_0x3be87c;clearTimeout(this[_0x4b1d8f(0x196)]),this[_0x4b1d8f(0x196)]=null,this[_0x4b1d8f(0x29d)]();},_0x306d73),this[_0x3be87c(0x3d1)]+=0x1;}['_onMessage'](_0x21d6a9,_0x40c12e){var _0x4fd9f1=_0xfa755a;const {cmd:_0x3e5767}=_0x40c12e;_0x3e5767===CombCmd['HELLO']&&!this[_0x4fd9f1(0x232)]&&(_0x21d6a9['memberID']=_0x40c12e[_0x4fd9f1(0x371)][_0x4fd9f1(0x289)],this[_0x4fd9f1(0x4cf)][_0x4fd9f1(0x192)](_0x21d6a9),this[_0x4fd9f1(0x439)][_0x4fd9f1(0x192)](SessionStatus['ONLINE']),this[_0x4fd9f1(0x232)]=!0x0,this[_0x4fd9f1(0x31c)]=null),_0x3e5767===CombCmd[_0x4fd9f1(0x2da)]&&this['_clearTimeoutTimer'](),this['_rescheduleHeartbeat']();}[_0xfa755a(0x43c)](){var _0x20cd9f=_0xfa755a,_0x34b613;this[_0x20cd9f(0x475)](),this[_0x20cd9f(0x34e)]=setTimeout(()=>this[_0x20cd9f(0x1be)](),(_0x34b613=this[_0x20cd9f(0x480)][_0x20cd9f(0x3a4)](HEARTBEAT_INTERVAL_KEY))!=null?_0x34b613:DEFAULT_HEARTBEAT_INTERVAL);}[_0xfa755a(0x1be)](){var _0x31bead=_0xfa755a;this[_0x31bead(0x397)]['send']({'cmd':CombCmd[_0x31bead(0x2da)]}),this[_0x31bead(0x28a)]();}[_0xfa755a(0x28a)](){var _0x1f123b=_0xfa755a,_0x47030f;this[_0x1f123b(0x446)]=setTimeout(()=>this[_0x1f123b(0x368)](),(_0x47030f=this[_0x1f123b(0x480)][_0x1f123b(0x3a4)](HEARTBEAT_TIMEOUT_KEY))!=null?_0x47030f:DEFAULT_HEARTBEAT_TIMEOUT);}[_0xfa755a(0x475)](){var _0x1b1df0=_0xfa755a;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this[_0x1b1df0(0x34e)]=null);}[_0xfa755a(0x45b)](){var _0x3fa317=_0xfa755a;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x3fa317(0x446)]),this[_0x3fa317(0x446)]=null);}},__name(_a4,_0xfa755a(0x438)),_a4);CollaborationSessionService=__decorateClass$f([__decorateParam$f(0x0,Inject(Injector)),__decorateParam$f(0x1,ILogService),__decorateParam$f(0x2,IConfigService),__decorateParam$f(0x3,ICollaborationSocketService),__decorateParam$f(0x4,Inject(HTTPService)),__decorateParam$f(0x5,Inject(CollaborationUIEventService)),__decorateParam$f(0x6,Optional(INetworkConditionService))],CollaborationSessionService);const byteToHex=[];for(let i=0x0;i<0x100;++i)byteToHex[_0xfa755a(0x38d)]((i+0x100)[_0xfa755a(0x204)](0x10)[_0xfa755a(0x3a8)](0x1));function unsafeStringify(_0x12c32e,_0x1f10be=0x0){var _0x528358=_0xfa755a;return(byteToHex[_0x12c32e[_0x1f10be+0x0]]+byteToHex[_0x12c32e[_0x1f10be+0x1]]+byteToHex[_0x12c32e[_0x1f10be+0x2]]+byteToHex[_0x12c32e[_0x1f10be+0x3]]+'-'+byteToHex[_0x12c32e[_0x1f10be+0x4]]+byteToHex[_0x12c32e[_0x1f10be+0x5]]+'-'+byteToHex[_0x12c32e[_0x1f10be+0x6]]+byteToHex[_0x12c32e[_0x1f10be+0x7]]+'-'+byteToHex[_0x12c32e[_0x1f10be+0x8]]+byteToHex[_0x12c32e[_0x1f10be+0x9]]+'-'+byteToHex[_0x12c32e[_0x1f10be+0xa]]+byteToHex[_0x12c32e[_0x1f10be+0xb]]+byteToHex[_0x12c32e[_0x1f10be+0xc]]+byteToHex[_0x12c32e[_0x1f10be+0xd]]+byteToHex[_0x12c32e[_0x1f10be+0xe]]+byteToHex[_0x12c32e[_0x1f10be+0xf]])[_0x528358(0x424)]();}__name(unsafeStringify,_0xfa755a(0x3dc));let getRandomValues;const rnds8=new Uint8Array(0x10);function rng(){var _0x34ac84=_0xfa755a;if(!getRandomValues){if(typeof crypto>'u'||!crypto[_0x34ac84(0x3c7)])throw new Error('crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported');getRandomValues=crypto['getRandomValues']['bind'](crypto);}return getRandomValues(rnds8);}__name(rng,'rng');const randomUUID=typeof crypto<'u'&&crypto['randomUUID']&&crypto[_0xfa755a(0x295)][_0xfa755a(0x3c6)](crypto),native={'randomUUID':randomUUID};function v4(_0x5e079c,_0x1d6cf8,_0x56f07c){var _0x14ecfb=_0xfa755a,_0x129fc6,_0x1703c9,_0x16fc75;if(native[_0x14ecfb(0x295)]&&!_0x5e079c)return native[_0x14ecfb(0x295)]();_0x5e079c=_0x5e079c||{};const _0x189929=(_0x16fc75=(_0x1703c9=_0x5e079c[_0x14ecfb(0x455)])!=null?_0x1703c9:(_0x129fc6=_0x5e079c['rng'])==null?void 0x0:_0x129fc6[_0x14ecfb(0x294)](_0x5e079c))!=null?_0x16fc75:rng();if(_0x189929[_0x14ecfb(0x2d2)]<0x10)throw new Error(_0x14ecfb(0x236));return _0x189929[0x6]=_0x189929[0x6]&0xf|0x40,_0x189929[0x8]=_0x189929[0x8]&0x3f|0x80,unsafeStringify(_0x189929);}__name(v4,'v4');const ILocalCacheService=createIdentifier(_0xfa755a(0x45d));function getLocalCacheKey(_0x5ebf1e){var _0x3081fc=_0xfa755a;return _0x3081fc(0x19f)+_0x5ebf1e;}__name(getLocalCacheKey,_0xfa755a(0x1f8));var __defProp$e=Object[_0xfa755a(0x29f)],__getOwnPropDesc$e=Object[_0xfa755a(0x1e0)],__decorateClass$e=__name((_0x155911,_0x51e376,_0x270847,_0xa7b381)=>{var _0x3cfbea=_0xfa755a;for(var _0x23da59=_0xa7b381>0x1?void 0x0:_0xa7b381?__getOwnPropDesc$e(_0x51e376,_0x270847):_0x51e376,_0xdb545=_0x155911[_0x3cfbea(0x2d2)]-0x1,_0x2234b4;_0xdb545>=0x0;_0xdb545--)(_0x2234b4=_0x155911[_0xdb545])&&(_0x23da59=(_0xa7b381?_0x2234b4(_0x51e376,_0x270847,_0x23da59):_0x2234b4(_0x23da59))||_0x23da59);return _0xa7b381&&_0x23da59&&__defProp$e(_0x51e376,_0x270847,_0x23da59),_0x23da59;},'__decorateClass$e'),__decorateParam$e=__name((_0x15cb38,_0x53e515)=>(_0x358158,_0x278c9a)=>_0x53e515(_0x358158,_0x278c9a,_0x15cb38),_0xfa755a(0x481));function extractTargetFromFirstChangeset(_0x1dc8b5){var _0x21e33f=_0xfa755a;const {unitID:_0xaa4bf5,mutations:_0x34815}=_0x1dc8b5;return{'unitId':_0xaa4bf5,'subUnitId':_0x34815[0x0][_0x21e33f(0x1b0)][_0x21e33f(0x207)]};}__name(extractTargetFromFirstChangeset,_0xfa755a(0x1ad));var _a5;let SheetTransformSelectionsService=(_a5=class{constructor(_0x433fc9,_0x49e924,_0x374bba){var _0x31b33c=_0xfa755a;this[_0x31b33c(0x24a)]=_0x433fc9,this['_transformService']=_0x49e924,this[_0x31b33c(0x328)]=_0x374bba;}[_0xfa755a(0x23f)](_0x879af3){var _0x154b1a=_0xfa755a,_0x427eba,_0x1399ea,_0x15262d,_0x243afc;const _0x261afb=this['_injector'][_0x154b1a(0x484)](SheetsSelectionsService),{unitId:_0x28190b,subUnitId:_0x95ad37}=extractTargetFromFirstChangeset(_0x879af3),_0x51e215=_0x261afb==null?void 0x0:_0x261afb[_0x154b1a(0x262)](_0x28190b)['getCurrentSelections'](),_0x501015=(_0x1399ea=(_0x427eba=this[_0x154b1a(0x328)][_0x154b1a(0x199)](_0x28190b))==null?void 0x0:_0x427eba['getActiveSheet']())==null?void 0x0:_0x1399ea[_0x154b1a(0x3fd)]();if(_0x51e215['length']===0x0||!_0x28190b||!_0x95ad37)return;const _0xc0cb09=[{'id':SetSelectionsOperation['id'],'params':{'unitId':_0x28190b,'subUnitId':_0x501015,'selections':Tools[_0x154b1a(0x387)](_0x51e215)}}],_0xd2bce6=this[_0x154b1a(0x418)][_0x154b1a(0x38c)](_0x879af3,_0xc0cb09);if(!isTransformMutationsWithChangesetSuccess(_0xd2bce6))throw _0xd2bce6[_0x154b1a(0x421)];const _0x12b323=(_0x243afc=(_0x15262d=_0xd2bce6[_0x154b1a(0x1b6)][0x0])==null?void 0x0:_0x15262d['params'])==null?void 0x0:_0x243afc[_0x154b1a(0x362)];if(Array['isArray'](_0x12b323)&&_0x12b323['length']){if(_0x12b323[_0x154b1a(0x2d2)]===_0xc0cb09[0x0][_0x154b1a(0x1b0)][_0x154b1a(0x362)][_0x154b1a(0x2d2)]&&_0x12b323[_0x154b1a(0x273)]((_0x25ce95,_0x147435)=>Rectangle[_0x154b1a(0x47d)](_0x25ce95[_0x154b1a(0x24b)],_0xc0cb09[0x0][_0x154b1a(0x1b0)][_0x154b1a(0x362)][_0x147435][_0x154b1a(0x24b)])))return;this[_0x154b1a(0x24a)][_0x154b1a(0x484)](ICommandService)[_0x154b1a(0x3ec)](SetSelectionsOperation['id'],{'unitId':_0x28190b,'subUnitId':_0x501015,'selections':_0x12b323});}}},__name(_a5,'SheetTransformSelectionsService'),_a5);SheetTransformSelectionsService=__decorateClass$e([__decorateParam$e(0x0,Inject(Injector)),__decorateParam$e(0x1,ITransformService),__decorateParam$e(0x2,IUniverInstanceService)],SheetTransformSelectionsService);const ISingleActiveUnitService=createIdentifier(_0xfa755a(0x301));var UnitStatus=(_0x34dcaa=>(_0x34dcaa[_0x34dcaa[_0xfa755a(0x2d3)]=0x0]=_0xfa755a(0x2d3),_0x34dcaa[_0x34dcaa[_0xfa755a(0x4b1)]=0x1]=_0xfa755a(0x4b1),_0x34dcaa))(UnitStatus||{});const SINGLE_CHANGESET_MUTATIONS=new Set([InsertSheetMutation['id']]);function assembleSheetChangeset(_0x1d7c56,_0x41dd9a,_0x4a7f44,_0x595c1e,_0x27fcb0){var _0x4fd27c=_0xfa755a,_0x2bdf4d,_0x4402b0,_0x278908,_0x54acfc;const _0x5ad93f=[];for(const _0x41d330 of _0x1d7c56)if(SINGLE_CHANGESET_MUTATIONS[_0x4fd27c(0x378)](_0x41d330['id'])){if(_0x5ad93f[_0x4fd27c(0x2d2)]>0x0)break;_0x5ad93f[_0x4fd27c(0x38d)](_0x41d330);break;}else _0x5ad93f[_0x4fd27c(0x38d)](_0x41d330);const _0x248370=(_0x4402b0=(_0x2bdf4d=_0x27fcb0[_0x4fd27c(0x473)]())==null?void 0x0:_0x2bdf4d[_0x4fd27c(0x17e)])!=null?_0x4402b0:_0x4fd27c(0x43a),_0x318d24=(_0x54acfc=(_0x278908=_0x27fcb0[_0x4fd27c(0x473)]())==null?void 0x0:_0x278908[_0x4fd27c(0x289)])!=null?_0x54acfc:_0x4fd27c(0x43a);return{'changeset':{'unitID':_0x41dd9a,'type':mapDocumentTypeToUniverType(_0x4a7f44[_0x4fd27c(0x459)](_0x41dd9a)),'baseRev':_0x595c1e[_0x4fd27c(0x476)](_0x41dd9a),'revision':0x0,'userID':_0x248370,'memberID':_0x318d24,'mutations':_0x5ad93f},'pendingMutations':_0x1d7c56[_0x4fd27c(0x3a8)](_0x5ad93f[_0x4fd27c(0x2d2)])};}__name(assembleSheetChangeset,_0xfa755a(0x35a));function assembleDocChangeset(_0x4a28f2,_0x3d3fe1,_0x18ee8f,_0xf3dc8e,_0x546741){var _0x358a47=_0xfa755a,_0x32a957,_0x413f67,_0x345b65,_0xbcb85;const _0x2ae2e2=[_0x4a28f2[_0x358a47(0x391)]((_0x559ad7,_0xb9c617)=>{var _0x46c127=_0x358a47,_0x7588c5;const {id:_0x91e277}=_0x559ad7,{id:_0x23e615,type:_0x5581df}=_0xb9c617,_0x2a49e3=(_0x7588c5=_0x559ad7['params'])!=null?_0x7588c5:{'actions':null},_0x83f0f=_0xb9c617['params'];if(_0x91e277&&_0x91e277!==_0x23e615)throw new Error(_0x46c127(0x2b0)+_0x91e277+_0x46c127(0x46e)+_0x23e615+'.');return{..._0x559ad7,'id':_0x23e615,'type':_0x5581df,'params':{'unitId':_0x83f0f[_0x46c127(0x1ea)],'textRanges':_0x83f0f[_0x46c127(0x231)],'actions':JSONX[_0x46c127(0x1c8)](_0x2a49e3[_0x46c127(0x329)],_0x83f0f[_0x46c127(0x329)])}};},{})],_0xc85ee5=(_0x413f67=(_0x32a957=_0x546741[_0x358a47(0x473)]())==null?void 0x0:_0x32a957['userID'])!=null?_0x413f67:_0x358a47(0x43a),_0x27c565=(_0xbcb85=(_0x345b65=_0x546741['getCurrentUser']())==null?void 0x0:_0x345b65['memberID'])!=null?_0xbcb85:_0x358a47(0x43a);return{'changeset':{'unitID':_0x3d3fe1,'type':mapDocumentTypeToUniverType(_0x18ee8f['getUnitType'](_0x3d3fe1)),'baseRev':_0xf3dc8e[_0x358a47(0x476)](_0x3d3fe1),'revision':0x0,'userID':_0xc85ee5,'memberID':_0x27c565,'mutations':_0x2ae2e2},'pendingMutations':[]};}__name(assembleDocChangeset,_0xfa755a(0x321));function createTimerObservable$(_0x4067f8,_0x388d5c){var _0x20b432=_0xfa755a;const _0x437101=new ReplaySubject(0x1);return setTimeout(()=>_0x437101[_0x20b432(0x192)](_0x388d5c),_0x4067f8),_0x437101[_0x20b432(0x319)]()[_0x20b432(0x34d)](_0x42caf7(0x1));}__name(createTimerObservable$,_0xfa755a(0x359));const EmptyMutationInfo={'id':EmptyMutation['id'],'type':CommandType[_0xfa755a(0x230)],'params':{}};var __defProp$d=Object[_0xfa755a(0x29f)],__getOwnPropDesc$d=Object[_0xfa755a(0x1e0)],__decorateClass$d=__name((_0x194c8e,_0x2bca69,_0x158033,_0x5801ff)=>{for(var _0x199f52=_0x5801ff>0x1?void 0x0:_0x5801ff?__getOwnPropDesc$d(_0x2bca69,_0x158033):_0x2bca69,_0x44d075=_0x194c8e['length']-0x1,_0x405626;_0x44d075>=0x0;_0x44d075--)(_0x405626=_0x194c8e[_0x44d075])&&(_0x199f52=(_0x5801ff?_0x405626(_0x2bca69,_0x158033,_0x199f52):_0x405626(_0x199f52))||_0x199f52);return _0x5801ff&&_0x199f52&&__defProp$d(_0x2bca69,_0x158033,_0x199f52),_0x199f52;},_0xfa755a(0x17c)),__decorateParam$d=__name((_0x377e17,_0x330f92)=>(_0x43d4f0,_0x26f32a)=>_0x330f92(_0x43d4f0,_0x26f32a,_0x377e17),_0xfa755a(0x467)),CollaborationStatus=(_0x2ea57a=>(_0x2ea57a['NOT_COLLAB']=_0xfa755a(0x20f),_0x2ea57a[_0xfa755a(0x396)]=_0xfa755a(0x2cb),_0x2ea57a[_0xfa755a(0x340)]='pending',_0x2ea57a[_0xfa755a(0x45e)]=_0xfa755a(0x1fd),_0x2ea57a['AWAITING_WITH_PENDING']=_0xfa755a(0x4be),_0x2ea57a[_0xfa755a(0x19d)]=_0xfa755a(0x181),_0x2ea57a[_0xfa755a(0x42b)]=_0xfa755a(0x1ef),_0x2ea57a[_0xfa755a(0x261)]=_0xfa755a(0x42c),_0x2ea57a))(CollaborationStatus||{});const MAX_RETRY_TIMEOUT=0xea60,_CollaborationState=class _CollaborationState{constructor(_0x3377a3,_0x485f6e,_0x27023b,_0x542870,_0x6baa48,_0x2dead4,_0x3887e5,_0x5f354e,_0x4a5d7d){var _0x3678f6=_0xfa755a;__publicField(this,_0x3678f6(0x34a),null),__publicField(this,_0x3678f6(0x2ac),[]),(this[_0x3678f6(0x412)]=_0x3377a3,this['type']=_0x485f6e,this[_0x3678f6(0x3b3)]=_0x6baa48,this[_0x3678f6(0x400)]=_0x2dead4,this['_undoRedoService']=_0x3887e5,this[_0x3678f6(0x246)]=_0x5f354e,this[_0x3678f6(0x3f2)]=_0x4a5d7d,this['_awaitingChangeset']=_0x27023b,this['_pendingMutations']=_0x542870);}[_0xfa755a(0x3e3)](_0x7dd2c7){var _0x3b460f=_0xfa755a;const _0x2d2e9d=this[_0x3b460f(0x246)][_0x3b460f(0x476)](this['unitID']);return _0x7dd2c7[_0x3b460f(0x2c1)]>_0x2d2e9d+0x1?(this['_handler'][_0x3b460f(0x1d3)]({'from':_0x2d2e9d,'to':_0x7dd2c7[_0x3b460f(0x2c1)]-0x1}),!0x0):!0x1;}[_0xfa755a(0x2b2)](_0x5dc83e){var _0x9904f9=_0xfa755a;this['_undoRedoService'][_0x9904f9(0x2cf)](this[_0x9904f9(0x412)],_0x5dc83e);}[_0xfa755a(0x1d6)](_0x192f7f){var _0x1381dc=_0xfa755a,_0x380281,_0x4b456a;(_0x4b456a=(_0x380281=this['_handler'])[_0x1381dc(0x441)])==null||_0x4b456a[_0x1381dc(0x294)](_0x380281,_0x192f7f);}['_transformIMECache'](_0xc1a05){var _0xef44d7=_0xfa755a,_0x5cf64c,_0x2b61a3;return(_0x2b61a3=(_0x5cf64c=this[_0xef44d7(0x3b3)])['onTransformIME'])==null?void 0x0:_0x2b61a3[_0xef44d7(0x294)](_0x5cf64c,_0xc1a05);}[_0xfa755a(0x29c)](_0x2c11fa){var _0x3947ae=_0xfa755a,_0x27daf8,_0x5514f0;return(_0x5514f0=(_0x27daf8=this['_handler'])[_0x3947ae(0x314)])==null?void 0x0:_0x5514f0[_0x3947ae(0x294)](_0x27daf8,_0x2c11fa);}[_0xfa755a(0x1bc)](_0x9db832){var _0x235ce5=_0xfa755a,_0x5a0903,_0x5560b0,_0xbd5d14;return(_0xbd5d14=(_0x5560b0=(_0x5a0903=this['_handler'])[_0x235ce5(0x3ee)])==null?void 0x0:_0x5560b0[_0x235ce5(0x294)](_0x5a0903,_0x9db832))!=null?_0xbd5d14:_0x9db832;}[_0xfa755a(0x40d)](_0x2c1f53){var _0x491c50=_0xfa755a,_0x2eb3aa,_0x52ad4d,_0x47c910;return(_0x47c910=(_0x52ad4d=(_0x2eb3aa=this[_0x491c50(0x3b3)])[_0x491c50(0x23b)])==null?void 0x0:_0x52ad4d[_0x491c50(0x294)](_0x2eb3aa,_0x2c1f53))!=null?_0x47c910:_0x2c1f53;}[_0xfa755a(0x1b5)](_0x1da6da){var _0x7195c=_0xfa755a,_0x21bba7,_0x3ae859;if(this[_0x7195c(0x4c9)]===UniverType[_0x7195c(0x458)]){const {unitID:_0x5993ed,mutations:_0x25bbbd,memberID:_0x228378}=_0x1da6da,_0x210fbc=_0x25bbbd[0x0][_0x7195c(0x1b0)][_0x7195c(0x231)];Array['isArray'](_0x210fbc)&&_0x210fbc['length']>0x0&&((_0x3ae859=(_0x21bba7=this[_0x7195c(0x3b3)])[_0x7195c(0x269)])==null||_0x3ae859[_0x7195c(0x294)](_0x21bba7,{'unitID':_0x5993ed,'memberID':_0x228378,'textRanges':_0x210fbc}));}}['_updateLocalCache'](){var _0x5ddcf8=_0xfa755a,_0x3d08a5;(_0x3d08a5=this[_0x5ddcf8(0x3f2)])==null||_0x3d08a5[_0x5ddcf8(0x40c)](this['unitID'],this[_0x5ddcf8(0x4c9)],this['_awaitingChangeset'],this[_0x5ddcf8(0x2ac)]);}[_0xfa755a(0x3fe)](){var _0x377236=_0xfa755a;return this[_0x377236(0x246)]['getCurrentRevOfUnit'](this['unitID']);}['_incrementRevisionNumber'](){var _0x289dbb=_0xfa755a;this['_revisionService'][_0x289dbb(0x2cd)](this['unitID']);}['_executeRemoteChangeset'](_0x16e728){var _0x5547de=_0xfa755a,_0x227d02;let _0x158047=this[_0x5547de(0x1bc)](_0x16e728);_0x158047=this['_transformRemoteChangesetByStateCache'](_0x158047);const _0x23061f=sequenceExecute(_0x158047[_0x5547de(0x343)],this[_0x5547de(0x400)],{'fromCollab':!0x0});if(!_0x23061f[_0x5547de(0x437)])throw _0x23061f['error']instanceof Error?_0x23061f[_0x5547de(0x421)]:new Error((_0x227d02=_0x23061f['error'])!=null?_0x227d02:_0x5547de(0x420));this[_0x5547de(0x227)](_0x158047),this[_0x5547de(0x29c)](_0x158047),this[_0x5547de(0x2b2)](_0x16e728),this['_transformSelections'](_0x158047),this[_0x5547de(0x1b5)](_0x158047),this['_incrementRevisionNumber']();}};__name(_CollaborationState,'CollaborationState');let CollaborationState=_CollaborationState;var _a6;let SyncedState=(_a6=class extends CollaborationState{constructor(_0x3aa435,_0x202362,_0x2d1039,_0x5a657d,_0x1f47b1,_0x38b9e8,_0x1a8278,_0x35c645,_0x804524,_0xc1d568){var _0x3cea9e=_0xfa755a;super(_0x3aa435,_0x202362,null,[],_0x2d1039,_0x1a8278,_0x38b9e8,_0x5a657d,_0xc1d568),__publicField(this,_0x3cea9e(0x2f9),_0x3cea9e(0x2cb)),(this[_0x3cea9e(0x24a)]=_0x1f47b1,this[_0x3cea9e(0x205)]=_0x35c645,this[_0x3cea9e(0x418)]=_0x804524,this[_0x3cea9e(0x1ba)]=_0xc1d568);}[_0xfa755a(0x417)](_0xc7639a){var _0x2951ab=_0xfa755a;const _0x12aa9c=this[_0x2951ab(0x24a)]['createInstance'](PendingState,this[_0x2951ab(0x412)],this[_0x2951ab(0x4c9)],[_0xc7639a],this[_0x2951ab(0x3b3)]);return _0x12aa9c['_schedule'](),_0x12aa9c[_0x2951ab(0x43b)](),_0x12aa9c;}[_0xfa755a(0x1d2)](_0x2fd613){var _0xbda65b=_0xfa755a;if(this[_0xbda65b(0x3e3)](_0x2fd613))return this[_0xbda65b(0x24a)][_0xbda65b(0x478)](FetchingMissState,this[_0xbda65b(0x412)],this[_0xbda65b(0x4c9)],null,[],null,[_0x2fd613],this[_0xbda65b(0x3b3)]);try{const _0xce5c6=this[_0xbda65b(0x418)]['transformMutationsWithChangeset'](_0x2fd613,[EmptyMutationInfo]);if(isTransformMutationsWithChangesetSuccess(_0xce5c6)){const {c1Prime:_0x33d66d}=_0xce5c6;return this['_executeRemoteChangeset'](_0x33d66d),this;}throw _0xce5c6[_0xbda65b(0x421)];}catch(_0x117edc){return this[_0xbda65b(0x205)][_0xbda65b(0x421)](_0x117edc),this[_0xbda65b(0x217)](!0x1);}}[_0xfa755a(0x217)](_0x583d74){var _0x19802b=_0xfa755a;return this['_injector']['createInstance'](ConflictState,this['unitID'],this[_0x19802b(0x4c9)],null,[],this[_0x19802b(0x3b3)],_0x583d74);}['onRemoteAck'](){var _0x55d259=_0xfa755a;throw new Error(_0x55d259(0x30b));}[_0xfa755a(0x419)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}[_0xfa755a(0x2c2)](){return this;}['toggleOffline'](){var _0x104dc0=_0xfa755a;return this[_0x104dc0(0x24a)][_0x104dc0(0x478)](OfflineState,this['unitID'],this['type'],null,[],this[_0x104dc0(0x3b3)]);}['toggleOnline'](){return this;}[_0xfa755a(0x2a5)](){throw new Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0xfa755a(0x3d7)](){var _0x494332=_0xfa755a;const _0x135316=this[_0x494332(0x246)][_0x494332(0x476)](this[_0x494332(0x412)]);return this['_handler']['onMissingChangesets']({'from':_0x135316,'to':0x0}),this[_0x494332(0x24a)][_0x494332(0x478)](FetchingMissState,this[_0x494332(0x412)],this[_0x494332(0x4c9)],null,[],null,[],this[_0x494332(0x3b3)]);}},__name(_a6,'SyncedState'),_a6);SyncedState=__decorateClass$d([__decorateParam$d(0x3,Inject(RevisionService)),__decorateParam$d(0x4,Inject(Injector)),__decorateParam$d(0x5,IUndoRedoService),__decorateParam$d(0x6,ICommandService),__decorateParam$d(0x7,ILogService),__decorateParam$d(0x8,ITransformService),__decorateParam$d(0x9,Optional(ILocalCacheService))],SyncedState);var _a7;let PendingState=(_a7=class extends CollaborationState{constructor(_0xa6183b,_0x5b3047,_0x1e7bcd,_0x15fee2,_0x5d069f,_0xd71106,_0x33a301,_0x58e573,_0x48ae8c,_0x514446,_0x2ec07d,_0x2acefb,_0x2860f3,_0x3451d3){var _0xf2242=_0xfa755a;super(_0xa6183b,_0x5b3047,null,_0x1e7bcd,_0x15fee2,_0x48ae8c,_0x2860f3,_0xd71106,_0x3451d3),__publicField(this,_0xf2242(0x2f9),_0xf2242(0x49d)),__publicField(this,_0xf2242(0x21d),null),__publicField(this,_0xf2242(0x3ac),null),(this[_0xf2242(0x24a)]=_0x5d069f,this['_memberService']=_0x33a301,this[_0xf2242(0x205)]=_0x58e573,this[_0xf2242(0x480)]=_0x514446,this['_transformService']=_0x2ec07d,this['_univerInstanceService']=_0x2acefb);}[_0xfa755a(0x417)](_0xea4f4){var _0x4b7e0e=_0xfa755a;return this[_0x4b7e0e(0x2ac)][_0x4b7e0e(0x38d)](_0xea4f4),this[_0x4b7e0e(0x43b)](),this;}[_0xfa755a(0x1d2)](_0x30b6d5){var _0x260000=_0xfa755a;if(this[_0x260000(0x3e3)](_0x30b6d5))return this[_0x260000(0x21e)](),this[_0x260000(0x24a)][_0x260000(0x478)](FetchingMissState,this['unitID'],this['type'],null,this['_pendingMutations'],null,[_0x30b6d5],this[_0x260000(0x3b3)]);try{const _0x39c261=this[_0x260000(0x418)][_0x260000(0x38c)](_0x30b6d5,this[_0x260000(0x2ac)]);if(isTransformMutationsWithChangesetSuccess(_0x39c261)){const {c1Prime:_0xb53fef,m2Prime:_0x5250e2}=_0x39c261;this[_0x260000(0x2d0)](_0xb53fef);const _0x2022c7=this['_injector'][_0x260000(0x478)](PendingState,this['unitID'],this['type'],_0x5250e2,this[_0x260000(0x3b3)]);this[_0x260000(0x21e)]();const _0x53a4c1=new Date()[_0x260000(0x18e)](),_0x4a5218=this[_0x260000(0x21d)]?Math[_0x260000(0x2e6)](this[_0x260000(0x21d)]-_0x53a4c1,0x0):this[_0x260000(0x317)]();return _0x2022c7['_schedule'](_0x4a5218),_0x2022c7;}throw _0x39c261[_0x260000(0x421)];}catch(_0x401976){return this[_0x260000(0x205)][_0x260000(0x421)](_0x401976),this[_0x260000(0x217)](!0x1);}}[_0xfa755a(0x333)](){var _0x1f25ef=_0xfa755a;throw new Error(_0x1f25ef(0x44b));}[_0xfa755a(0x419)](){var _0x22341=_0xfa755a;throw new Error(_0x22341(0x2bf));}[_0xfa755a(0x2c2)](){return this;}['toggleOffline'](){var _0x921d6d=_0xfa755a;return this[_0x921d6d(0x21e)](),this['_injector'][_0x921d6d(0x478)](OfflineState,this[_0x921d6d(0x412)],this[_0x921d6d(0x4c9)],null,this[_0x921d6d(0x2ac)],this[_0x921d6d(0x3b3)]);}[_0xfa755a(0x3b9)](){return this;}[_0xfa755a(0x1a3)](_0x22e8c4){var _0x17f522=_0xfa755a;const _0x3247d3=_0x22e8c4!=null?_0x22e8c4:this[_0x17f522(0x317)]();this[_0x17f522(0x21d)]=new Date()[_0x17f522(0x18e)]()+_0x3247d3,this[_0x17f522(0x3ac)]=setTimeout(()=>{var _0x5ca952=_0x17f522;this[_0x5ca952(0x21e)]();let _0x2be0c6=null;switch(this[_0x5ca952(0x4c9)]){case UniverType[_0x5ca952(0x223)]:{_0x2be0c6=assembleSheetChangeset(this['_pendingMutations'],this['unitID'],this['_univerInstanceService'],this[_0x5ca952(0x246)],this['_memberService']);break;}case UniverType[_0x5ca952(0x458)]:{this['_pendingMutations']['every'](_0x44e253=>_0x44e253['id']===RichTextEditingMutation['id'])?_0x2be0c6=assembleDocChangeset(this[_0x5ca952(0x2ac)],this[_0x5ca952(0x412)],this[_0x5ca952(0x2be)],this[_0x5ca952(0x246)],this[_0x5ca952(0x195)]):_0x2be0c6=assembleSheetChangeset(this[_0x5ca952(0x2ac)],this['unitID'],this[_0x5ca952(0x2be)],this['_revisionService'],this[_0x5ca952(0x195)]);break;}default:throw new Error(_0x5ca952(0x465)+this[_0x5ca952(0x4c9)]+_0x5ca952(0x1e5));}const {changeset:_0x13a2d1,pendingMutations:_0x273130}=_0x2be0c6;this[_0x5ca952(0x3b3)][_0x5ca952(0x279)](_0x13a2d1);const _0x5f1706=_0x273130[_0x5ca952(0x2d2)]?this['_injector'][_0x5ca952(0x478)](AwaitingWithPendingState,this[_0x5ca952(0x412)],this[_0x5ca952(0x4c9)],_0x13a2d1,_0x273130,this[_0x5ca952(0x3b3)],void 0x0):this[_0x5ca952(0x24a)]['createInstance'](AwaitingState,this[_0x5ca952(0x412)],this[_0x5ca952(0x4c9)],_0x13a2d1,this[_0x5ca952(0x3b3)]);_0x5f1706['_updateLocalCache'](),this['_handler']['onStateChange'](this,_0x5f1706);},_0x3247d3);}[_0xfa755a(0x317)](){var _0x2cd47c=_0xfa755a,_0x12c0ea;const _0x4f2ee1=this[_0x2cd47c(0x480)]['getConfig'](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x12c0ea=_0x4f2ee1==null?void 0x0:_0x4f2ee1[_0x2cd47c(0x28d)])!=null?_0x12c0ea:DEFAULT_SEND_CHANGESET_TIMEOUT;}[_0xfa755a(0x2a5)](){var _0x56d06f=_0xfa755a;throw new Error(_0x56d06f(0x2b8));}[_0xfa755a(0x21e)](){var _0x28597c=_0xfa755a;this[_0x28597c(0x3ac)]!=null&&(clearTimeout(this[_0x28597c(0x3ac)]),this['_sendingTimer']=null);}[_0xfa755a(0x217)](_0x4667b0){var _0xd4f432=_0xfa755a;return this[_0xd4f432(0x21e)](),this[_0xd4f432(0x24a)][_0xd4f432(0x478)](ConflictState,this['unitID'],this['type'],null,this['_pendingMutations'],this[_0xd4f432(0x3b3)],_0x4667b0);}},__name(_a7,'PendingState'),_a7);PendingState=__decorateClass$d([__decorateParam$d(0x4,Inject(Injector)),__decorateParam$d(0x5,Inject(RevisionService)),__decorateParam$d(0x6,Inject(MemberService)),__decorateParam$d(0x7,ILogService),__decorateParam$d(0x8,ICommandService),__decorateParam$d(0x9,IConfigService),__decorateParam$d(0xa,ITransformService),__decorateParam$d(0xb,IUniverInstanceService),__decorateParam$d(0xc,IUndoRedoService),__decorateParam$d(0xd,Optional(ILocalCacheService))],PendingState);var _a8;let AwaitingState=(_a8=class extends CollaborationState{constructor(_0x34dc7f,_0x4c8c77,_0x5b1e48,_0x2b4e0c,_0x16ad8a,_0x361d55,_0xafe4a5,_0x296629,_0x27b552,_0x136242,_0x1829c6){var _0x54795d=_0xfa755a;super(_0x34dc7f,_0x4c8c77,_0x5b1e48,[],_0x2b4e0c,_0xafe4a5,_0x136242,_0x361d55,_0x1829c6),__publicField(this,_0x54795d(0x2f9),_0x54795d(0x1fd)),__publicField(this,'_resendTimeout',0x0),__publicField(this,_0x54795d(0x3e6)),__publicField(this,'_sender'),(this[_0x54795d(0x24a)]=_0x16ad8a,this[_0x54795d(0x205)]=_0x296629,this[_0x54795d(0x418)]=_0x27b552);}['appendMutation'](_0xdef144){var _0x425ab9=_0xfa755a;this[_0x425ab9(0x21e)]();const _0x49a1b3=this['_injector'][_0x425ab9(0x478)](AwaitingWithPendingState,this[_0x425ab9(0x412)],this[_0x425ab9(0x4c9)],this[_0x425ab9(0x34a)],[_0xdef144],this['_handler'],this[_0x425ab9(0x3e6)]);return _0x49a1b3[_0x425ab9(0x43b)](),_0x49a1b3;}[_0xfa755a(0x1d2)](_0x3420c7){var _0x9989c9=_0xfa755a;if(this['_checkMissing'](_0x3420c7))return this[_0x9989c9(0x21e)](),this['_injector'][_0x9989c9(0x478)](FetchingMissState,this[_0x9989c9(0x412)],this[_0x9989c9(0x4c9)],this['_awaitingChangeset'],[],null,[_0x3420c7],this[_0x9989c9(0x3b3)]);try{const _0xdac0c8=this[_0x9989c9(0x418)]['transformChangesets']([_0x3420c7],[this[_0x9989c9(0x34a)]],!0x1);if(isTransformChangesetsSuccess(_0xdac0c8)){const {c1Prime:_0x394968,c2Prime:_0x3880bb}=_0xdac0c8;this['_executeRemoteChangeset'](_0x394968[0x0]),_0x3880bb[0x0][_0x9989c9(0x1b1)]=this['_getCurrentRevision'](),this[_0x9989c9(0x21e)]();const _0x3c0f56=this['_injector'][_0x9989c9(0x478)](AwaitingState,this[_0x9989c9(0x412)],this[_0x9989c9(0x4c9)],_0x3880bb[0x0],this[_0x9989c9(0x3b3)]);return _0x3c0f56[_0x9989c9(0x43b)](),_0x3c0f56;}return this[_0x9989c9(0x217)](!0x1);}catch(_0x4efa59){return this['_logService'][_0x9989c9(0x421)](_0x4efa59),this[_0x9989c9(0x217)](!0x1);}}['onRemoteAck'](_0x4362ef){var _0x34f144=_0xfa755a;this[_0x34f144(0x21e)]();const _0x4fc3b0=this[_0x34f144(0x246)][_0x34f144(0x476)](this[_0x34f144(0x412)]);if(_0x4362ef[_0x34f144(0x2c1)]<_0x4fc3b0-0x1)return this;if(this[_0x34f144(0x3e3)](_0x4362ef))return this[_0x34f144(0x24a)]['createInstance'](FetchingMissState,this[_0x34f144(0x412)],this[_0x34f144(0x4c9)],null,[],this[_0x34f144(0x34a)],[],this[_0x34f144(0x3b3)]);this[_0x34f144(0x1dd)]();const _0x23193e=this['_injector'][_0x34f144(0x478)](SyncedState,this['unitID'],this['type'],this[_0x34f144(0x3b3)]);return _0x23193e[_0x34f144(0x43b)](),_0x23193e;}[_0xfa755a(0x419)](_0x5e13b0){var _0x1dfe14=_0xfa755a;return this[_0x1dfe14(0x217)](!!(_0x5e13b0!=null&&_0x5e13b0[_0x1dfe14(0x4b7)]));}['onRemoteRetry'](_0x11ef8){var _0x460456=_0xfa755a;return this[_0x460456(0x21a)]>MAX_RETRY_TIMEOUT?this[_0x460456(0x3e4)]():(this[_0x460456(0x3e6)]=createTimerObservable$(this[_0x460456(0x21a)],{'timeout':this[_0x460456(0x21a)],'reqId':_0x11ef8['reqId']}),this[_0x460456(0x486)]=this['_resendTimer'][_0x460456(0x186)](({reqId:_0x457280,timeout:_0x46cd0a})=>{var _0x216c2f=_0x460456;this[_0x216c2f(0x46f)](_0x457280,_0x46cd0a);}),this);}[_0xfa755a(0x3e4)](){var _0x5c94b6=_0xfa755a;return this[_0x5c94b6(0x21e)](),this['_injector']['createInstance'](OfflineState,this[_0x5c94b6(0x412)],this[_0x5c94b6(0x4c9)],this['_awaitingChangeset'],[],this[_0x5c94b6(0x3b3)]);}[_0xfa755a(0x3b9)](){return this;}['resend'](){var _0x217eb5=_0xfa755a;this[_0x217eb5(0x3b3)][_0x217eb5(0x279)](this[_0x217eb5(0x34a)]);}['_onConflict'](_0x7c1029){var _0x19af7b=_0xfa755a;return this['_clearScheduledTask'](),this[_0x19af7b(0x24a)][_0x19af7b(0x478)](ConflictState,this[_0x19af7b(0x412)],this[_0x19af7b(0x4c9)],this[_0x19af7b(0x34a)],[],this[_0x19af7b(0x3b3)],_0x7c1029);}['_resendWithTimeout'](_0x591191,_0x54ce00){var _0x23c29f=_0xfa755a,_0x505e46;_0x591191===((_0x505e46=this[_0x23c29f(0x34a)])==null?void 0x0:_0x505e46['reqId'])&&(this['resend'](),this['_resendTimeout']=_0x54ce00===0x0?0x3e8:_0x54ce00*0x2);}[_0xfa755a(0x21e)](){var _0xbbc9a9=_0xfa755a,_0x529cc2;(_0x529cc2=this['_sender'])==null||_0x529cc2[_0xbbc9a9(0x372)](),this[_0xbbc9a9(0x21a)]=0x0;}},__name(_a8,_0xfa755a(0x375)),_a8);AwaitingState=__decorateClass$d([__decorateParam$d(0x4,Inject(Injector)),__decorateParam$d(0x5,Inject(RevisionService)),__decorateParam$d(0x6,ICommandService),__decorateParam$d(0x7,ILogService),__decorateParam$d(0x8,ITransformService),__decorateParam$d(0x9,IUndoRedoService),__decorateParam$d(0xa,Optional(ILocalCacheService))],AwaitingState);var _a9;let AwaitingWithPendingState=(_a9=class extends CollaborationState{constructor(_0x151def,_0x509d17,_0xd0cc4a,_0x2c055b,_0x4b94d2,_0x4b20e7,_0x1b7f71,_0x527e75,_0x481e88,_0x122f9f,_0x50e18f,_0x445b16,_0x1438c0){var _0x101a81=_0xfa755a;super(_0x151def,_0x509d17,_0xd0cc4a,_0x2c055b,_0x4b94d2,_0x481e88,_0x445b16,_0x527e75,_0x1438c0),__publicField(this,_0x101a81(0x2f9),_0x101a81(0x4be)),__publicField(this,_0x101a81(0x21a),0x0),__publicField(this,_0x101a81(0x3e6)),__publicField(this,_0x101a81(0x486)),(this['_injector']=_0x1b7f71,this[_0x101a81(0x205)]=_0x122f9f,this[_0x101a81(0x418)]=_0x50e18f,this[_0x101a81(0x1ba)]=_0x1438c0,_0x4b20e7&&(this[_0x101a81(0x3e6)]=_0x4b20e7,this[_0x101a81(0x486)]=this['_resendTimer'][_0x101a81(0x186)](({reqId:_0x485780,timeout:_0x232e96})=>{var _0x14256f=_0x101a81;this[_0x14256f(0x46f)](_0x485780,_0x232e96);})));}[_0xfa755a(0x417)](_0x3a88a7){var _0x367d3c=_0xfa755a;return this['_pendingMutations'][_0x367d3c(0x38d)](_0x3a88a7),this;}['onRemoteChangeset'](_0x316b4f){var _0x3ac75f=_0xfa755a;if(this[_0x3ac75f(0x3e3)](_0x316b4f))return this[_0x3ac75f(0x21e)](),this[_0x3ac75f(0x24a)][_0x3ac75f(0x478)](FetchingMissState,this[_0x3ac75f(0x412)],this[_0x3ac75f(0x4c9)],this[_0x3ac75f(0x34a)],this['_pendingMutations'],null,[_0x316b4f],this[_0x3ac75f(0x3b3)]);try{const _0xe9d152=this[_0x3ac75f(0x418)][_0x3ac75f(0x48a)]([_0x316b4f],[this[_0x3ac75f(0x34a)]],!0x1);if(isTransformChangesetsSuccess(_0xe9d152)){const {c1Prime:_0x152e75,c2Prime:_0x146f75}=_0xe9d152,_0x932e04=this[_0x3ac75f(0x418)][_0x3ac75f(0x38c)](_0x152e75[0x0],this['_pendingMutations']);if(isTransformMutationsWithChangesetSuccess(_0x932e04)){const {c1Prime:_0x5784bd,m2Prime:_0x3aac3a}=_0x932e04;return this[_0x3ac75f(0x2d0)](_0x5784bd),_0x146f75[0x0][_0x3ac75f(0x1b1)]=this[_0x3ac75f(0x3fe)](),this['_clearScheduledTask'](),this[_0x3ac75f(0x24a)][_0x3ac75f(0x478)](AwaitingWithPendingState,this[_0x3ac75f(0x412)],this['type'],_0x146f75[0x0],_0x3aac3a,this[_0x3ac75f(0x3b3)],void 0x0);}throw _0x932e04[_0x3ac75f(0x421)];}throw _0xe9d152['error'];}catch(_0x5bdd33){return this['_logService'][_0x3ac75f(0x421)](_0x5bdd33),this['_onConflict'](!0x1);}}[_0xfa755a(0x333)](_0x4fd1d9){var _0x32d43d=_0xfa755a;if(this[_0x32d43d(0x21e)](),this[_0x32d43d(0x3e3)](_0x4fd1d9))return this[_0x32d43d(0x24a)][_0x32d43d(0x478)](FetchingMissState,this[_0x32d43d(0x412)],this['type'],null,this['_pendingMutations'],this['_awaitingChangeset'],[],this[_0x32d43d(0x3b3)]);this['_incrementRevisionNumber']();const _0x12380b=this[_0x32d43d(0x24a)]['createInstance'](PendingState,this['unitID'],this[_0x32d43d(0x4c9)],this['_pendingMutations'],this['_handler']);return _0x12380b[_0x32d43d(0x1a3)](),_0x12380b[_0x32d43d(0x43b)](),_0x12380b;}[_0xfa755a(0x419)](_0x3488c3){var _0x1ef540=_0xfa755a;return this[_0x1ef540(0x217)](!!(_0x3488c3!=null&&_0x3488c3[_0x1ef540(0x4b7)]));}[_0xfa755a(0x2c2)](_0x258bd6){var _0x219de1=_0xfa755a;return this[_0x219de1(0x21a)]>MAX_RETRY_TIMEOUT?this['toggleOffline']():(this[_0x219de1(0x3e6)]=createTimerObservable$(this[_0x219de1(0x21a)],{'timeout':this[_0x219de1(0x21a)],'reqId':_0x258bd6[_0x219de1(0x456)]}),this[_0x219de1(0x486)]=this['_resendTimer']['subscribe'](({reqId:_0x16aef1,timeout:_0x541c0b})=>{var _0x323d2d=_0x219de1;this[_0x323d2d(0x46f)](_0x16aef1,_0x541c0b);}),this);}['toggleOffline'](){var _0x2ffdcf=_0xfa755a;return this[_0x2ffdcf(0x21e)](),this[_0x2ffdcf(0x24a)]['createInstance'](OfflineState,this['unitID'],this[_0x2ffdcf(0x4c9)],this[_0x2ffdcf(0x34a)],this['_pendingMutations'],this[_0x2ffdcf(0x3b3)]);}[_0xfa755a(0x3b9)](){return this;}['resend'](){var _0x519c6c=_0xfa755a;this[_0x519c6c(0x3b3)][_0x519c6c(0x279)](this['_awaitingChangeset']);}[_0xfa755a(0x217)](_0x24f86d){var _0xf3d80d=_0xfa755a;return this['_clearScheduledTask'](),this[_0xf3d80d(0x24a)][_0xf3d80d(0x478)](ConflictState,this[_0xf3d80d(0x412)],this['type'],null,this[_0xf3d80d(0x2ac)],this[_0xf3d80d(0x3b3)],_0x24f86d);}['_resendWithTimeout'](_0x24547c,_0x48e544){var _0x5504a1=_0xfa755a,_0x3a1a39;_0x24547c===((_0x3a1a39=this[_0x5504a1(0x34a)])==null?void 0x0:_0x3a1a39[_0x5504a1(0x456)])&&(this[_0x5504a1(0x2a5)](),this[_0x5504a1(0x21a)]=_0x48e544===0x0?0x3e8:_0x48e544*0x2);}[_0xfa755a(0x21e)](){var _0x237efb=_0xfa755a,_0x2def89;(_0x2def89=this[_0x237efb(0x486)])==null||_0x2def89['unsubscribe'](),this[_0x237efb(0x21a)]=0x0;}},__name(_a9,_0xfa755a(0x350)),_a9);AwaitingWithPendingState=__decorateClass$d([__decorateParam$d(0x6,Inject(Injector)),__decorateParam$d(0x7,Inject(RevisionService)),__decorateParam$d(0x8,ICommandService),__decorateParam$d(0x9,ILogService),__decorateParam$d(0xa,ITransformService),__decorateParam$d(0xb,IUndoRedoService),__decorateParam$d(0xc,Optional(ILocalCacheService))],AwaitingWithPendingState);var _a10;let ConflictState=(_a10=class extends CollaborationState{constructor(_0x1ac349,_0x2e6bad,_0x440720,_0x12f6f1,_0x222bb7,_0x4438ab=!0x1,_0x3b8e70,_0x5e3448,_0x1b7ced,_0x346d2c,_0x2f5861,_0x456afd,_0x4e90bc){var _0x35f0d7=_0xfa755a;super(_0x1ac349,_0x2e6bad,_0x440720,_0x12f6f1,_0x222bb7,_0x5e3448,_0x1b7ced,_0x346d2c,_0x4e90bc),__publicField(this,_0x35f0d7(0x2f9),_0x35f0d7(0x1ef)),(this[_0x35f0d7(0x2b5)]=_0x4438ab,this[_0x35f0d7(0x26a)]=_0x3b8e70,this['_localeService']=_0x2f5861,this[_0x35f0d7(0x1b9)]=_0x456afd,this[_0x35f0d7(0x1ba)]=_0x4e90bc,this[_0x35f0d7(0x1c6)](),this[_0x35f0d7(0x2b1)](),this[_0x35f0d7(0x242)]());}['appendMutation'](){return this;}[_0xfa755a(0x1d2)](){return this;}[_0xfa755a(0x333)](){return this;}[_0xfa755a(0x419)](){return this;}[_0xfa755a(0x2c2)](){return this;}[_0xfa755a(0x3e4)](){return this;}['toggleOnline'](){return this;}[_0xfa755a(0x2a5)](){var _0x159124=_0xfa755a;throw new Error(_0x159124(0x34c));}[_0xfa755a(0x2b1)](){var _0x4ce5be=_0xfa755a,_0xe0136d;(_0xe0136d=this[_0x4ce5be(0x3f2)])==null||_0xe0136d[_0x4ce5be(0x40c)](this['unitID'],this['type'],null,[]);}[_0xfa755a(0x1c6)](){var _0x33599e=_0xfa755a;this[_0x33599e(0x2b5)]?this[_0x33599e(0x1b9)][_0x33599e(0x281)]({'id':CollaborationUIEventId[_0x33599e(0x2a2)]}):this[_0x33599e(0x1b9)][_0x33599e(0x281)]({'id':CollaborationUIEventId['CONFLICT']});}[_0xfa755a(0x242)](){var _0x4daa09=_0xfa755a;this['_permissionService'][_0x4daa09(0x49f)](new WorkbookEditablePermission(this['unitID'])['id'],!0x1);}},__name(_a10,_0xfa755a(0x18b)),_a10);ConflictState=__decorateClass$d([__decorateParam$d(0x6,Inject(IPermissionService)),__decorateParam$d(0x7,ICommandService),__decorateParam$d(0x8,IUndoRedoService),__decorateParam$d(0x9,Inject(RevisionService)),__decorateParam$d(0xa,Inject(LocaleService)),__decorateParam$d(0xb,Inject(CollaborationUIEventService)),__decorateParam$d(0xc,Optional(ILocalCacheService))],ConflictState);var _a11;let OfflineState=(_a11=class extends CollaborationState{constructor(_0x33ccc2,_0x13c8a6,_0x54c89b,_0x9e5a6a,_0x4e75d1,_0x4f5180,_0x4e469a,_0xe1508,_0x33a131,_0x38552f){var _0x307aa3=_0xfa755a;super(_0x33ccc2,_0x13c8a6,_0x54c89b,_0x9e5a6a,_0x4e75d1,_0xe1508,_0x33a131,_0x4e469a,_0x38552f),__publicField(this,_0x307aa3(0x2f9),_0x307aa3(0x42c)),this[_0x307aa3(0x24a)]=_0x4f5180;}[_0xfa755a(0x417)](_0x5115a7){var _0x48a3df=_0xfa755a;return this[_0x48a3df(0x2ac)][_0x48a3df(0x38d)](_0x5115a7),this[_0x48a3df(0x43b)](),this;}['onRemoteChangeset'](_0x564be3){var _0x5797db=_0xfa755a;throw new Error(_0x5797db(0x3d6));}[_0xfa755a(0x333)](){var _0x8bc327=_0xfa755a;throw new Error(_0x8bc327(0x3a7));}[_0xfa755a(0x419)](){var _0x41e78a=_0xfa755a;throw new Error(_0x41e78a(0x4c5));}['onRemoteRetry'](){return this;}[_0xfa755a(0x3e4)](){return this;}['toggleOnline'](){var _0x25e757=_0xfa755a;const {_injector:_0x20392f,_pendingMutations:_0x2cc750,_awaitingChangeset:_0x2c1bab,unitID:_0x7e2e39,_handler:_0x2398da,type:_0x41977b}=this,_0x39ea56=createOnlineState(_0x20392f,_0x7e2e39,_0x41977b,_0x2c1bab,_0x2cc750,_0x2398da);return _0x39ea56 instanceof PendingState?_0x39ea56[_0x25e757(0x1a3)]():(_0x39ea56 instanceof AwaitingWithPendingState||_0x39ea56 instanceof AwaitingState)&&_0x39ea56[_0x25e757(0x2a5)](),_0x39ea56;}[_0xfa755a(0x2a5)](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}},__name(_a11,_0xfa755a(0x202)),_a11);OfflineState=__decorateClass$d([__decorateParam$d(0x5,Inject(Injector)),__decorateParam$d(0x6,Inject(RevisionService)),__decorateParam$d(0x7,ICommandService),__decorateParam$d(0x8,IUndoRedoService),__decorateParam$d(0x9,Optional(ILocalCacheService))],OfflineState);var _a12;let FetchingMissState=(_a12=class extends CollaborationState{constructor(_0xc5a7ca,_0x544723,_0xc9bb1b,_0x32b2f1,_0x1f6c87,_0x446e1d,_0x5ad26c,_0x4f0988,_0x7d5e5f,_0x45fcdd,_0x3dccc,_0x2034d,_0x556e87,_0x367ea7){var _0x58d5ca=_0xfa755a;super(_0xc5a7ca,_0x544723,_0xc9bb1b,_0x32b2f1,_0x5ad26c,_0x3dccc,_0x2034d,_0x7d5e5f,_0x367ea7),__publicField(this,'status',_0x58d5ca(0x181)),(this[_0x58d5ca(0x219)]=_0x1f6c87,this['_queuedRemoteChangesets']=_0x446e1d,this[_0x58d5ca(0x24a)]=_0x4f0988,this[_0x58d5ca(0x205)]=_0x45fcdd,this[_0x58d5ca(0x418)]=_0x556e87,this[_0x58d5ca(0x1ba)]=_0x367ea7);}[_0xfa755a(0x21f)](_0x3b1fb7){var _0x398d4c=_0xfa755a;try{const _0x402da0=[..._0x3b1fb7,...this[_0x398d4c(0x323)]],_0x638538=[this[_0x398d4c(0x34a)]||this[_0x398d4c(0x219)]]['filter'](_0x23d00e=>!!_0x23d00e);let _0x2bc005,_0x50f10d;if(_0x638538[_0x398d4c(0x2d2)]){const _0x23daab=this[_0x398d4c(0x418)][_0x398d4c(0x48a)](_0x402da0,_0x638538,!0x1);if(!isTransformChangesetsSuccess(_0x23daab))throw _0x23daab[_0x398d4c(0x421)];_0x2bc005=_0x23daab[_0x398d4c(0x32e)],_0x50f10d=_0x23daab[_0x398d4c(0x2c9)];}else _0x2bc005=_0x402da0,_0x50f10d=[];let _0x87bc22=this[_0x398d4c(0x2ac)];_0x2bc005[_0x398d4c(0x307)](_0x172caf=>{var _0x3f248f=_0x398d4c;let _0x4f309e;if(_0x87bc22[_0x3f248f(0x2d2)]){const _0x21b374=this[_0x3f248f(0x418)][_0x3f248f(0x38c)](_0x172caf,_0x87bc22);if(!isTransformMutationsWithChangesetSuccess(_0x21b374))throw _0x21b374[_0x3f248f(0x421)];_0x4f309e=_0x21b374[_0x3f248f(0x32e)],_0x87bc22=_0x21b374[_0x3f248f(0x1b6)];}else _0x4f309e=_0x172caf;this[_0x3f248f(0x2d0)](_0x4f309e);}),this[_0x398d4c(0x219)]&&this[_0x398d4c(0x1dd)](),this[_0x398d4c(0x34a)]&&_0x50f10d['length']&&(_0x50f10d[0x0][_0x398d4c(0x1b1)]=this[_0x398d4c(0x3fe)]());let _0x6af2a4;if(this[_0x398d4c(0x34a)]&&_0x87bc22[_0x398d4c(0x2d2)]!==0x0)_0x6af2a4=this['_injector'][_0x398d4c(0x478)](AwaitingWithPendingState,this[_0x398d4c(0x412)],this[_0x398d4c(0x4c9)],_0x50f10d[0x0],_0x87bc22,this[_0x398d4c(0x3b3)],void 0x0);else{if(this[_0x398d4c(0x34a)]&&_0x87bc22[_0x398d4c(0x2d2)]===0x0)_0x50f10d[0x0][_0x398d4c(0x1b1)]=this[_0x398d4c(0x3fe)](),_0x6af2a4=this[_0x398d4c(0x24a)][_0x398d4c(0x478)](AwaitingState,this[_0x398d4c(0x412)],this[_0x398d4c(0x4c9)],_0x50f10d[0x0],this[_0x398d4c(0x3b3)]);else{if(_0x87bc22[_0x398d4c(0x2d2)]!==0x0){const _0x1aba68=this[_0x398d4c(0x24a)][_0x398d4c(0x478)](PendingState,this['unitID'],this['type'],_0x87bc22,this[_0x398d4c(0x3b3)]);_0x1aba68[_0x398d4c(0x1a3)](),_0x6af2a4=_0x1aba68;}else _0x6af2a4=this[_0x398d4c(0x24a)][_0x398d4c(0x478)](SyncedState,this[_0x398d4c(0x412)],this['type'],this[_0x398d4c(0x3b3)]);}}return _0x6af2a4['_updateLocalCache'](),_0x6af2a4;}catch(_0xc0fe41){return this[_0x398d4c(0x205)]['error']('[FetchMissState]',_0x398d4c(0x4a7),_0xc0fe41),this[_0x398d4c(0x24a)][_0x398d4c(0x478)](ConflictState,this[_0x398d4c(0x412)],this[_0x398d4c(0x4c9)],this[_0x398d4c(0x34a)],this[_0x398d4c(0x2ac)],this['_handler'],!0x1);}}[_0xfa755a(0x2a5)](){var _0x22017e=_0xfa755a;throw new Error(_0x22017e(0x1c7));}[_0xfa755a(0x417)](_0x454b28){var _0x244133=_0xfa755a;return this[_0x244133(0x2ac)]['push'](_0x454b28),this;}[_0xfa755a(0x1d2)](_0xf0e3c0){var _0x3b3664=_0xfa755a;return this[_0x3b3664(0x323)][_0x3b3664(0x38d)](_0xf0e3c0),this;}[_0xfa755a(0x333)](_0x5af19e){var _0x2a1bd7=_0xfa755a;if(this[_0x2a1bd7(0x34a)])return this['_acknowledgedAwaitingChangeset']=this[_0x2a1bd7(0x34a)],this[_0x2a1bd7(0x34a)]=null,this;throw new Error(_0x2a1bd7(0x1d8));}['onRemoteRej'](_0x1f5391){var _0x517358=_0xfa755a;return this[_0x517358(0x217)](!!(_0x1f5391!=null&&_0x1f5391[_0x517358(0x4b7)]));}[_0xfa755a(0x2c2)](){return this;}['toggleOffline'](){var _0x2404cf=_0xfa755a;return this['_injector'][_0x2404cf(0x478)](OfflineState,this[_0x2404cf(0x412)],this['type'],this[_0x2404cf(0x34a)],this[_0x2404cf(0x2ac)],this[_0x2404cf(0x3b3)]);}[_0xfa755a(0x3b9)](){return this;}[_0xfa755a(0x217)](_0x143bf7){var _0x2c8c7f=_0xfa755a;return this['_injector'][_0x2c8c7f(0x478)](ConflictState,this[_0x2c8c7f(0x412)],this[_0x2c8c7f(0x4c9)],this[_0x2c8c7f(0x34a)],this[_0x2c8c7f(0x2ac)],this[_0x2c8c7f(0x3b3)],_0x143bf7);}},__name(_a12,_0xfa755a(0x22e)),_a12);FetchingMissState=__decorateClass$d([__decorateParam$d(0x7,Inject(Injector)),__decorateParam$d(0x8,Inject(RevisionService)),__decorateParam$d(0x9,ILogService),__decorateParam$d(0xa,ICommandService),__decorateParam$d(0xb,IUndoRedoService),__decorateParam$d(0xc,ITransformService),__decorateParam$d(0xd,Optional(ILocalCacheService))],FetchingMissState);function createOnlineState(_0x4f697e,_0x1d3718,_0x4f5c76,_0x258992,_0x5bbcca,_0x36bc62){var _0x5b2399=_0xfa755a;return _0x258992&&_0x5bbcca[_0x5b2399(0x2d2)]?_0x4f697e[_0x5b2399(0x478)](AwaitingWithPendingState,_0x1d3718,_0x4f5c76,_0x258992,_0x5bbcca,_0x36bc62,void 0x0):_0x258992?_0x4f697e[_0x5b2399(0x478)](AwaitingState,_0x1d3718,_0x4f5c76,_0x258992,_0x36bc62):_0x5bbcca[_0x5b2399(0x2d2)]?_0x4f697e[_0x5b2399(0x478)](PendingState,_0x1d3718,_0x4f5c76,_0x5bbcca,_0x36bc62):_0x4f697e[_0x5b2399(0x478)](SyncedState,_0x1d3718,_0x4f5c76,_0x36bc62);}__name(createOnlineState,'createOnlineState');var __defProp$c=Object[_0xfa755a(0x29f)],__getOwnPropDesc$c=Object[_0xfa755a(0x1e0)],__decorateClass$c=__name((_0x1535d3,_0x53b953,_0x9514b7,_0x3a753f)=>{var _0x23547b=_0xfa755a;for(var _0x51e433=_0x3a753f>0x1?void 0x0:_0x3a753f?__getOwnPropDesc$c(_0x53b953,_0x9514b7):_0x53b953,_0x215042=_0x1535d3[_0x23547b(0x2d2)]-0x1,_0x1c4f37;_0x215042>=0x0;_0x215042--)(_0x1c4f37=_0x1535d3[_0x215042])&&(_0x51e433=(_0x3a753f?_0x1c4f37(_0x53b953,_0x9514b7,_0x51e433):_0x1c4f37(_0x51e433))||_0x51e433);return _0x3a753f&&_0x51e433&&__defProp$c(_0x53b953,_0x9514b7,_0x51e433),_0x51e433;},'__decorateClass$c'),__decorateParam$c=__name((_0x1ad525,_0xbc7a65)=>(_0x88c8a8,_0x519bc0)=>_0xbc7a65(_0x88c8a8,_0x519bc0,_0x1ad525),_0xfa755a(0x241)),_a13;let CollaborationEntity=(_a13=class extends RxDisposable{constructor(_0x2a6b32,_0x3afb93,_0x580529,_0x42dad8,_0x5563f1,_0x1a661e,_0x67a5e4,_0x1cbdad,_0x5e5977,_0x32e36d,_0x386509,_0x289bf1,_0x3184ef){var _0x18fe74=_0xfa755a;super(),__publicField(this,_0x18fe74(0x3ba),new BehaviorSubject(null)),__publicField(this,_0x18fe74(0x2ad),this[_0x18fe74(0x3ba)][_0x18fe74(0x319)]()),__publicField(this,'_state'),__publicField(this,_0x18fe74(0x404),!0x1),__publicField(this,_0x18fe74(0x425),''),__publicField(this,_0x18fe74(0x4c0),0x0),__publicField(this,_0x18fe74(0x1d9),this[_0x18fe74(0x2ad)]['pipe'](_0x1f8b2b(_0x5357eb=>_0x5357eb?_0x5357eb[_0x18fe74(0x2f9)]:CollaborationStatus[_0x18fe74(0x261)]),shareReplay(0x1))),__publicField(this,_0x18fe74(0x3b7),!0x1),__publicField(this,_0x18fe74(0x285),[]),(this[_0x18fe74(0x412)]=_0x2a6b32,this[_0x18fe74(0x326)]=_0x3afb93,this[_0x18fe74(0x461)]=_0x580529,this[_0x18fe74(0x24a)]=_0x42dad8,this[_0x18fe74(0x460)]=_0x5563f1,this[_0x18fe74(0x1bb)]=_0x1a661e,this[_0x18fe74(0x246)]=_0x67a5e4,this[_0x18fe74(0x1d7)]=_0x1cbdad,this['_logService']=_0x5e5977,this['_commandService']=_0x32e36d,this['_permissionService']=_0x386509,this[_0x18fe74(0x272)]=_0x289bf1,this['_localCacheService']=_0x3184ef);}get[_0xfa755a(0x1fc)](){var _0x5ddc78=_0xfa755a;return this[_0x5ddc78(0x247)];}async[_0xfa755a(0x430)](){var _0x398ce8=_0xfa755a;if(this[_0x398ce8(0x1fc)])throw new Error(_0x398ce8(0x431));await this[_0x398ce8(0x373)]();}[_0xfa755a(0x2ab)](){return this['_collaborationPaused']=!0x0,toDisposable(()=>{var _0x268f68=_0x4f8b;this[_0x268f68(0x404)]=!0x1,this[_0x268f68(0x386)]();});}[_0xfa755a(0x1f2)](_0x5d1183){var _0x431e48=_0xfa755a;this[_0x431e48(0x245)](_0x5d1183);}[_0xfa755a(0x1b7)](_0xe80471){var _0x56e934=_0xfa755a;this[_0x56e934(0x247)]=_0xe80471,this[_0x56e934(0x3ba)][_0x56e934(0x192)](_0xe80471);}async[_0xfa755a(0x373)](){var _0x319a00=_0xfa755a,_0x393660;this[_0x319a00(0x1b7)](await this['_createInitialState']()),this[_0x319a00(0x272)]&&((_0x393660=this[_0x319a00(0x272)])==null||_0x393660[_0x319a00(0x426)](this[_0x319a00(0x412)]),this['disposeWithMe'](this[_0x319a00(0x272)][_0x319a00(0x1ec)](this[_0x319a00(0x412)])[_0x319a00(0x186)](_0x3b5955=>{var _0x4b4be9=_0x319a00;this[_0x4b4be9(0x205)][_0x4b4be9(0x2d6)](_0x4b4be9(0x1ff),'editing\x20status\x20changed\x20to',_0x3b5955),_0x3b5955===UnitStatus['OTHER_CLIENTS_EDITING']?(this[_0x4b4be9(0x1d7)][_0x4b4be9(0x281)]({'id':CollaborationUIEventId['OTHER_CLIENT_EDITING']}),this[_0x4b4be9(0x26a)][_0x4b4be9(0x49f)](new WorkbookEditablePermission(this['unitID'])['id'],!0x1),this[_0x4b4be9(0x26a)][_0x4b4be9(0x44a)](!0x1)):(this[_0x4b4be9(0x26a)][_0x4b4be9(0x49f)](new WorkbookEditablePermission(this['unitID'])['id'],!0x0),this[_0x4b4be9(0x26a)][_0x4b4be9(0x44a)](!0x0));})));let _0x5b0adf=!0x1;return this[_0x319a00(0x434)](this[_0x319a00(0x326)][_0x319a00(0x1e3)][_0x319a00(0x186)](_0x5c4fbb=>{var _0x1e6c11=_0x319a00;_0x5c4fbb===SessionStatus['ONLINE']?this[_0x1e6c11(0x429)](_0x5b0adf):_0x5c4fbb===SessionStatus[_0x1e6c11(0x261)]&&(_0x5b0adf=!0x0,this['_toggleOffline']());})),this[_0x319a00(0x434)](this[_0x319a00(0x326)]['event$'][_0x319a00(0x186)](_0x5a3dfc=>{var _0x538408=_0x319a00;try{switch(_0x5a3dfc['eventID']){case CollaborationEvent[_0x538408(0x471)]:{this[_0x538408(0x466)](parseProtocolChangeset(_0x5a3dfc[_0x538408(0x371)]));break;}case CollaborationEvent['CHANGESET_ACK']:{this[_0x538408(0x28b)](_0x5a3dfc[_0x538408(0x371)]);break;}case CollaborationEvent[_0x538408(0x338)]:{this[_0x538408(0x382)]();break;}case CollaborationEvent[_0x538408(0x3ed)]:{this[_0x538408(0x1de)](_0x5a3dfc[_0x538408(0x371)]);break;}case CollaborationEvent['PSEUDO_FETCH_MISSING_RESULT']:{this[_0x538408(0x405)](_0x5a3dfc[_0x538408(0x371)][_0x538408(0x298)][_0x538408(0x2c6)](_0x1d8bab=>parseProtocolChangeset(_0x1d8bab)));break;}case CollaborationEvent[_0x538408(0x44e)]:{this['_onRemoteRejected']({'isPermissionRej':!0x0});break;}case CollaborationEvent[_0x538408(0x1e2)]:break;}}catch(_0x1c0ae6){throw console['error'](_0x538408(0x3fc),_0x1c0ae6),_0x1c0ae6;}})),this[_0x319a00(0x247)];}[_0xfa755a(0x4a5)](){var _0x1552ee=_0xfa755a;this[_0x1552ee(0x3b7)]=!0x1;}[_0xfa755a(0x450)](){var _0x46c457=_0xfa755a;if(this[_0x46c457(0x3b7)])throw new Error('[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.');this[_0x46c457(0x3b7)]=!0x0;}['_onLocalMutation'](_0xf191ff){var _0x287035=_0xfa755a;this[_0x287035(0x450)](),this[_0x287035(0x1b7)](this[_0x287035(0x247)][_0x287035(0x417)](_0xf191ff)),this[_0x287035(0x4a5)]();}[_0xfa755a(0x466)](_0x2b1b47){var _0x5b326b=_0xfa755a;if(!(_0x2b1b47[_0x5b326b(0x2c1)]<=this[_0x5b326b(0x246)][_0x5b326b(0x476)](this[_0x5b326b(0x412)]))){if(this['_collaborationPaused']){this['_remoteChangesetQueue']['push'](_0x2b1b47);return;}this[_0x5b326b(0x3a6)](_0x2b1b47);}}[_0xfa755a(0x386)](){var _0x3104e9=_0xfa755a;this[_0x3104e9(0x285)][_0x3104e9(0x307)](_0x33e3d2=>this[_0x3104e9(0x3a6)](_0x33e3d2)),this[_0x3104e9(0x285)]=[];}[_0xfa755a(0x3a6)](_0x13cc87){var _0xcb0ec=_0xfa755a;const _0x49fa9b=this[_0xcb0ec(0x460)][_0xcb0ec(0x436)][_0xcb0ec(0x2a8)](this[_0xcb0ec(0x460)]['interceptor'][_0xcb0ec(0x28e)]()[_0xcb0ec(0x39a)])(_0x13cc87[_0xcb0ec(0x343)],null)||_0x13cc87['mutations'],_0x14a5c7={..._0x13cc87,'mutations':_0x49fa9b};this[_0xcb0ec(0x450)](),this[_0xcb0ec(0x1b7)](this[_0xcb0ec(0x247)][_0xcb0ec(0x1d2)](_0x14a5c7)),this[_0xcb0ec(0x4a5)]();}[_0xfa755a(0x28b)](_0x25aa18){var _0xab8198=_0xfa755a;this[_0xab8198(0x450)](),this[_0xab8198(0x1b7)](this[_0xab8198(0x247)][_0xab8198(0x333)](_0x25aa18)),this[_0xab8198(0x4a5)]();}[_0xfa755a(0x382)](_0x5d7c64){var _0x472f10=_0xfa755a;this['_lockTransition'](),this[_0x472f10(0x1b7)](this['_state'][_0x472f10(0x419)](_0x5d7c64)),this['_unlockTransition']();}[_0xfa755a(0x1de)](_0xf010e9){var _0x418291=_0xfa755a;this['_lockTransition'](),this[_0x418291(0x1b7)](this['_state']['onRemoteRetry'](_0xf010e9)),this[_0x418291(0x4a5)]();}[_0xfa755a(0x405)](_0x581a04){var _0x2c6acd=_0xfa755a;if(!(this['_state']instanceof FetchingMissState))throw new TypeError(_0x2c6acd(0x2e4));const _0x451eaf=_0x581a04[_0x2c6acd(0x2c6)](_0x125fda=>{var _0x49b653=_0x2c6acd;const _0x33d709=this['_compressMutationService'][_0x49b653(0x436)][_0x49b653(0x2a8)](this[_0x49b653(0x460)][_0x49b653(0x436)][_0x49b653(0x28e)]()[_0x49b653(0x39a)])(_0x125fda[_0x49b653(0x343)],null)||_0x125fda[_0x49b653(0x343)];return{..._0x125fda,'mutations':_0x33d709};});this[_0x2c6acd(0x450)](),this[_0x2c6acd(0x1b7)](this[_0x2c6acd(0x247)]['onMissedChangesetFetched'](_0x451eaf)),this[_0x2c6acd(0x4a5)]();}[_0xfa755a(0x384)](){var _0x17b599=_0xfa755a;this['_lockTransition'](),this[_0x17b599(0x1b7)](this[_0x17b599(0x247)][_0x17b599(0x3e4)]()),this[_0x17b599(0x4a5)]();}[_0xfa755a(0x429)](_0x372f29=!0x1){var _0x1748f7=_0xfa755a;this[_0x1748f7(0x450)](),this[_0x1748f7(0x1b7)](this[_0x1748f7(0x247)]['toggleOnline']()),this[_0x1748f7(0x4a5)]();const _0x233a5b=this[_0x1748f7(0x247)];_0x372f29&&_0x233a5b instanceof SyncedState&&(this['_lockTransition'](),this[_0x1748f7(0x1b7)](_0x233a5b[_0x1748f7(0x3d7)]()),this[_0x1748f7(0x4a5)]());}async['_createInitialState'](){return new Promise(_0x4113a7=>{var _0x535f19=_0x4f8b;this[_0x535f19(0x326)][_0x535f19(0x1e3)][_0x535f19(0x34d)](_0x42caf7(0x1))[_0x535f19(0x186)](async _0x4e1258=>{var _0x4eec95=_0x535f19;_0x4113a7(await this[_0x4eec95(0x278)](_0x4e1258===SessionStatus[_0x4eec95(0x3c0)]));});});}['_createHandler'](){var _0x4352f0=_0xfa755a;const _0x165aec=this[_0x4352f0(0x412)];return{'onStateChange':__name((_0x19f5ee,_0xc0368e)=>{var _0x2c3ebf=_0x4352f0;if(_0x19f5ee!==this[_0x2c3ebf(0x247)])throw new Error(_0x2c3ebf(0x264)+_0x19f5ee[_0x2c3ebf(0x2f9)]+_0x2c3ebf(0x360)+_0xc0368e['status']+_0x2c3ebf(0x491)+this['_state']['status']);this[_0x2c3ebf(0x1b7)](_0xc0368e);},_0x4352f0(0x448)),'onSendChangeset':__name(_0x3ae790=>{var _0x427b16=_0x4352f0;_0x3ae790[_0x427b16(0x482)]||(_0x3ae790[_0x427b16(0x482)]=this[_0x427b16(0x425)],_0x3ae790[_0x427b16(0x456)]=++this[_0x427b16(0x4c0)]);const _0x4fc5df={'eventID':CollaborationEvent['SUBMIT_CHANGESET'],'data':{'unitID':_0x3ae790['unitID'],'unitType':this[_0x427b16(0x461)],'changeset':_0x3ae790,'memberID':this[_0x427b16(0x326)][_0x427b16(0x37e)]()}};this[_0x427b16(0x326)][_0x427b16(0x27f)](_0x4fc5df,this[_0x427b16(0x412)]);},'onSendChangeset'),'onMissingChangesets':__name(({from:_0x56d1b8,to:_0x2a1f39})=>{var _0x3c4dbe=_0x4352f0;this[_0x3c4dbe(0x205)][_0x3c4dbe(0x2d6)]('[CollaborationEntity]','fetching\x20missing\x20changesets\x20from\x20'+_0x56d1b8+_0x3c4dbe(0x2d7)+_0x2a1f39);const _0x4e7ca5={'eventID':CollaborationEvent[_0x3c4dbe(0x1f0)],'data':{'unitID':_0x165aec,'unitType':this['_type'],'from':_0x56d1b8,'to':_0x2a1f39}};this['session'][_0x3c4dbe(0x27f)](_0x4e7ca5,this[_0x3c4dbe(0x412)]);},_0x4352f0(0x1d3))};}async[_0xfa755a(0x278)](_0x327691){var _0x25e341=_0xfa755a,_0x42fad2,_0x29ef63,_0x1a9fb6;const _0x1d695f=await((_0x42fad2=this[_0x25e341(0x3f2)])==null?void 0x0:_0x42fad2[_0x25e341(0x2d5)](this[_0x25e341(0x412)])),_0x49b944=(_0x29ef63=_0x1d695f==null?void 0x0:_0x1d695f[_0x25e341(0x343)])!=null?_0x29ef63:[],_0xf94210=(_0x1a9fb6=_0x1d695f==null?void 0x0:_0x1d695f[_0x25e341(0x3de)])!=null?_0x1a9fb6:null,_0x3f0fbe=!!(_0xf94210!=null&&_0xf94210[_0x25e341(0x482)])&&!!(_0xf94210!=null&&_0xf94210[_0x25e341(0x456)]);this[_0x25e341(0x425)]=_0x3f0fbe?_0xf94210[_0x25e341(0x482)]:v4(),this[_0x25e341(0x4c0)]=_0x3f0fbe?_0xf94210[_0x25e341(0x456)]:0x0;const _0x4941ca=this['unitID'];try{this['_replayCachedMutations'](_0xf94210,_0x49b944);}catch(_0x1373aa){this[_0x25e341(0x205)]['error'](_0x1373aa);}const _0x5f488b=this[_0x25e341(0x374)]();if(_0x327691){const _0x2865cb=createOnlineState(this[_0x25e341(0x24a)],_0x4941ca,this['_type'],_0xf94210,_0x49b944,_0x5f488b);return _0x2865cb instanceof PendingState?_0x2865cb[_0x25e341(0x1a3)]():(_0x2865cb instanceof AwaitingWithPendingState||_0x2865cb instanceof AwaitingState)&&_0x2865cb[_0x25e341(0x2a5)](),_0x2865cb;}return this[_0x25e341(0x24a)]['createInstance'](OfflineState,_0x4941ca,this[_0x25e341(0x461)],_0xf94210,_0x49b944,_0x5f488b);}[_0xfa755a(0x3b2)](_0x2ed90e,_0x196407){var _0x55e3c2=_0xfa755a,_0x143285,_0x4aae54;const _0x4f3e84=this[_0x55e3c2(0x460)][_0x55e3c2(0x436)][_0x55e3c2(0x2a8)](this[_0x55e3c2(0x460)][_0x55e3c2(0x436)][_0x55e3c2(0x28e)]()[_0x55e3c2(0x39a)]);(_0x143285=_0x4f3e84((_0x2ed90e==null?void 0x0:_0x2ed90e[_0x55e3c2(0x343)])||[],null))==null||_0x143285[_0x55e3c2(0x307)](_0x4c3f9c=>this['_commandService'][_0x55e3c2(0x3ec)](_0x4c3f9c['id'],_0x4c3f9c[_0x55e3c2(0x1b0)])),(_0x4aae54=_0x4f3e84(_0x196407||[],null))==null||_0x4aae54[_0x55e3c2(0x307)](_0x16d5b3=>this[_0x55e3c2(0x400)][_0x55e3c2(0x3ec)](_0x16d5b3['id'],_0x16d5b3[_0x55e3c2(0x1b0)]));}},__name(_a13,_0xfa755a(0x2a0)),_a13);CollaborationEntity=__decorateClass$c([__decorateParam$c(0x3,Inject(Injector)),__decorateParam$c(0x4,Inject(CompressMutationService)),__decorateParam$c(0x5,Inject(LocaleService)),__decorateParam$c(0x6,Inject(RevisionService)),__decorateParam$c(0x7,Inject(CollaborationUIEventService)),__decorateParam$c(0x8,ILogService),__decorateParam$c(0x9,ICommandService),__decorateParam$c(0xa,IPermissionService),__decorateParam$c(0xb,Optional(ISingleActiveUnitService)),__decorateParam$c(0xc,Optional(ILocalCacheService))],CollaborationEntity);var _a14;let DocCollaborationEntity=(_a14=class extends CollaborationEntity{constructor(_0x2ca59a,_0x5a2a30,_0x21acab,_0x138668,_0x44c2e1,_0x1e731e,_0x4d14c0,_0x152275,_0x2af4f6,_0x4995e7,_0x3fa0b8,_0x1a80de,_0x38ce16){var _0x3cd065=_0xfa755a;super(_0x2ca59a,_0x21acab,_0x5a2a30,_0x138668,_0x44c2e1,_0x1e731e,_0x4d14c0,_0x152275,_0x2af4f6,_0x4995e7,_0x3fa0b8,_0x1a80de,_0x38ce16),__publicField(this,_0x3cd065(0x379),null),(this[_0x3cd065(0x412)]=_0x2ca59a,this[_0x3cd065(0x4c9)]=_0x5a2a30);}['addHandlerCallback'](_0x4c92ac){var _0x3d5cb9=_0xfa755a;this[_0x3d5cb9(0x379)]=_0x4c92ac;}[_0xfa755a(0x366)](){var _0x53a2ea=_0xfa755a;this[_0x53a2ea(0x379)]=null,super[_0x53a2ea(0x366)]();}[_0xfa755a(0x374)](){var _0x574c5f=_0xfa755a;const _0x44105a=super[_0x574c5f(0x374)]();return _0x44105a[_0x574c5f(0x390)]=_0x2a56e0=>{var _0x155784=_0x574c5f,_0x275ca8,_0x75018d;return(_0x75018d=(_0x275ca8=this[_0x155784(0x379)])==null?void 0x0:_0x275ca8['onTransformIME'])==null?void 0x0:_0x75018d['call'](_0x275ca8,_0x2a56e0);},_0x44105a['onTransformState']=_0xa018b2=>{var _0x107e28=_0x574c5f,_0x4c785b,_0x120e3a;return(_0x120e3a=(_0x4c785b=this[_0x107e28(0x379)])==null?void 0x0:_0x4c785b['onTransformState'])==null?void 0x0:_0x120e3a['call'](_0x4c785b,_0xa018b2);},_0x44105a[_0x574c5f(0x441)]=_0x381ab8=>{var _0x52f62d=_0x574c5f,_0x30f82f,_0x529db1;return(_0x529db1=(_0x30f82f=this[_0x52f62d(0x379)])==null?void 0x0:_0x30f82f['onTransformSelections'])==null?void 0x0:_0x529db1[_0x52f62d(0x294)](_0x30f82f,_0x381ab8);},_0x44105a[_0x574c5f(0x269)]=_0x259dfc=>{var _0x340c55=_0x574c5f,_0x3bf6d8,_0x5bb3d0;return(_0x5bb3d0=(_0x3bf6d8=this[_0x340c55(0x379)])==null?void 0x0:_0x3bf6d8[_0x340c55(0x269)])==null?void 0x0:_0x5bb3d0[_0x340c55(0x294)](_0x3bf6d8,_0x259dfc);},_0x44105a[_0x574c5f(0x3ee)]=_0x5f13f8=>{var _0x2a08aa=_0x574c5f,_0x3a87fa,_0xad5129,_0x3bb425;if(!((_0x3a87fa=this[_0x2a08aa(0x379)])!=null&&_0x3a87fa['onTransformRemoteChangesetByIMECache']))throw new Error('onTransformRemoteChangesetByIMECache\x20callback\x20is\x20not\x20added\x20yet.');return(_0x3bb425=(_0xad5129=this[_0x2a08aa(0x379)])==null?void 0x0:_0xad5129[_0x2a08aa(0x3ee)])==null?void 0x0:_0x3bb425[_0x2a08aa(0x294)](_0xad5129,_0x5f13f8);},_0x44105a[_0x574c5f(0x23b)]=_0x50a7de=>{var _0x4b2c72=_0x574c5f,_0x36fd00,_0x479419,_0x487a15;if(!((_0x36fd00=this[_0x4b2c72(0x379)])!=null&&_0x36fd00[_0x4b2c72(0x23b)]))throw new Error('onTransformRemoteChangesetByStateCache\x20callback\x20is\x20not\x20added\x20yet.');return(_0x487a15=(_0x479419=this[_0x4b2c72(0x379)])==null?void 0x0:_0x479419[_0x4b2c72(0x23b)])==null?void 0x0:_0x487a15[_0x4b2c72(0x294)](_0x479419,_0x50a7de);},_0x44105a;}async['_init'](){var _0x235634=_0xfa755a;const _0x20b6d1=await super[_0x235634(0x373)]();return this[_0x235634(0x434)](this[_0x235634(0x400)][_0x235634(0x46c)]((_0x1d5f60,_0x347f06)=>{var _0x1e00c9=_0x235634;if(_0x1d5f60['type']!==CommandType[_0x1e00c9(0x230)]||_0x347f06!=null&&_0x347f06[_0x1e00c9(0x26f)]||_0x347f06!=null&&_0x347f06['onlyLocal']||_0x1d5f60['id']===RichTextEditingMutation['id'])return;const _0x3de336=_0x1d5f60[_0x1e00c9(0x1b0)];if((_0x3de336==null?void 0x0:_0x3de336[_0x1e00c9(0x1ea)])!==this[_0x1e00c9(0x412)])return;const _0x2b7659=_0x1d5f60,_0xe77645=this[_0x1e00c9(0x460)][_0x1e00c9(0x436)][_0x1e00c9(0x2a8)](this[_0x1e00c9(0x460)][_0x1e00c9(0x436)]['getInterceptPoints']()['COMPRESS_MUTATION_SEND'])([_0x2b7659],null)||[_0x2b7659];this[_0x1e00c9(0x245)](_0xe77645[0x0]);})),_0x20b6d1;}},__name(_a14,_0xfa755a(0x4bb)),_a14);DocCollaborationEntity=__decorateClass$c([__decorateParam$c(0x3,Inject(Injector)),__decorateParam$c(0x4,Inject(CompressMutationService)),__decorateParam$c(0x5,Inject(LocaleService)),__decorateParam$c(0x6,Inject(RevisionService)),__decorateParam$c(0x7,Inject(CollaborationUIEventService)),__decorateParam$c(0x8,ILogService),__decorateParam$c(0x9,ICommandService),__decorateParam$c(0xa,IPermissionService),__decorateParam$c(0xb,Optional(ISingleActiveUnitService)),__decorateParam$c(0xc,Optional(ILocalCacheService))],DocCollaborationEntity);var _a15;let SheetCollaborationEntity=(_a15=class extends CollaborationEntity{constructor(_0x12bbb2,_0x137488,_0x219f7c,_0x1220d0,_0x40785e,_0x34d74a,_0x2f50f8,_0x1e412f,_0x21a1ad,_0x2285fd,_0x5f017b,_0x1e4cfc,_0x2989ab,_0x1c1c63){var _0x9f63f2=_0xfa755a;super(_0x12bbb2,_0x219f7c,_0x137488,_0x1220d0,_0x40785e,_0x34d74a,_0x2f50f8,_0x21a1ad,_0x2285fd,_0x5f017b,_0x1e4cfc,_0x2989ab,_0x1c1c63),this[_0x9f63f2(0x412)]=_0x12bbb2,this[_0x9f63f2(0x4c9)]=_0x137488,this['_sheetTransformSelectionsService']=_0x1e412f;}[_0xfa755a(0x374)](){var _0x3e465f=_0xfa755a;const _0x33d2ba=super[_0x3e465f(0x374)]();return _0x33d2ba[_0x3e465f(0x441)]=_0x328b85=>this['_sheetTransformSelectionsService'][_0x3e465f(0x23f)](_0x328b85),_0x33d2ba;}async[_0xfa755a(0x373)](){var _0x123b3c=_0xfa755a;const _0x360d1d=await super[_0x123b3c(0x373)]();return this['disposeWithMe'](this[_0x123b3c(0x400)][_0x123b3c(0x46c)]((_0x3614dd,_0x3f77bb)=>{var _0x35eec3=_0x123b3c;if(_0x3614dd['type']!==CommandType[_0x35eec3(0x230)]||_0x3f77bb!=null&&_0x3f77bb['fromCollab']||_0x3f77bb!=null&&_0x3f77bb['onlyLocal'])return;const _0x3f6fef=_0x3614dd[_0x35eec3(0x1b0)];if((_0x3f6fef==null?void 0x0:_0x3f6fef[_0x35eec3(0x1ea)])!==this[_0x35eec3(0x412)])return;const _0x275f0e=_0x3614dd,_0x205cc3=this[_0x35eec3(0x460)][_0x35eec3(0x436)][_0x35eec3(0x2a8)](this[_0x35eec3(0x460)][_0x35eec3(0x436)][_0x35eec3(0x28e)]()[_0x35eec3(0x2fe)])([_0x275f0e],null)||[_0x275f0e];this[_0x35eec3(0x245)](_0x205cc3[0x0]);})),_0x360d1d;}},__name(_a15,_0xfa755a(0x45a)),_a15);SheetCollaborationEntity=__decorateClass$c([__decorateParam$c(0x3,Inject(Injector)),__decorateParam$c(0x4,Inject(CompressMutationService)),__decorateParam$c(0x5,Inject(LocaleService)),__decorateParam$c(0x6,Inject(RevisionService)),__decorateParam$c(0x7,Inject(SheetTransformSelectionsService)),__decorateParam$c(0x8,Inject(CollaborationUIEventService)),__decorateParam$c(0x9,ILogService),__decorateParam$c(0xa,ICommandService),__decorateParam$c(0xb,IPermissionService),__decorateParam$c(0xc,Optional(ISingleActiveUnitService)),__decorateParam$c(0xd,Optional(ILocalCacheService))],SheetCollaborationEntity);var __defProp$b=Object['defineProperty'],__getOwnPropDesc$b=Object['getOwnPropertyDescriptor'],__decorateClass$b=__name((_0x40d9a3,_0xbfa252,_0xa329f3,_0x324f77)=>{var _0x2684c2=_0xfa755a;for(var _0xa5215=_0x324f77>0x1?void 0x0:_0x324f77?__getOwnPropDesc$b(_0xbfa252,_0xa329f3):_0xbfa252,_0x3b8a21=_0x40d9a3[_0x2684c2(0x2d2)]-0x1,_0x562f0c;_0x3b8a21>=0x0;_0x3b8a21--)(_0x562f0c=_0x40d9a3[_0x3b8a21])&&(_0xa5215=(_0x324f77?_0x562f0c(_0xbfa252,_0xa329f3,_0xa5215):_0x562f0c(_0xa5215))||_0xa5215);return _0x324f77&&_0xa5215&&__defProp$b(_0xbfa252,_0xa329f3,_0xa5215),_0xa5215;},_0xfa755a(0x2af)),__decorateParam$b=__name((_0x49ebc2,_0x49a3ce)=>(_0x40dac2,_0x3f0fb7)=>_0x49a3ce(_0x40dac2,_0x3f0fb7,_0x49ebc2),_0xfa755a(0x3ad)),_a16;let CollaborationController=(_a16=class extends RxDisposable{constructor(_0xf61396,_0x554a36,_0x3c8eb6){var _0x30c608=_0xfa755a;super(),__publicField(this,_0x30c608(0x4c7),new Map()),__publicField(this,_0x30c608(0x4a2),new Subject()),__publicField(this,_0x30c608(0x40f),this[_0x30c608(0x4a2)][_0x30c608(0x319)]()),(this[_0x30c608(0x24a)]=_0xf61396,this['_collabSessionService']=_0x554a36,this['_univerInstanceService']=_0x3c8eb6,this[_0x30c608(0x373)]());}[_0xfa755a(0x366)](){var _0x2275b3=_0xfa755a;super[_0x2275b3(0x366)](),this[_0x2275b3(0x4c7)][_0x2275b3(0x307)](_0x457399=>_0x457399[_0x2275b3(0x366)]()),this[_0x2275b3(0x4c7)][_0x2275b3(0x2c5)]();}[_0xfa755a(0x2e9)](_0xeb4e2c){var _0x4b04ba=_0xfa755a,_0x38fb22;return(_0x38fb22=this[_0x4b04ba(0x4c7)][_0x4b04ba(0x484)](_0xeb4e2c))!=null?_0x38fb22:null;}['getCollabEntity$'](_0x5820cc){var _0x721df6=_0xfa755a;const _0x487524=this['getCollabEntity'](_0x5820cc);return _0x487524?of(_0x487524):this[_0x721df6(0x4a2)]['pipe'](filter(_0x4d59ef=>_0x4d59ef[_0x721df6(0x412)]===_0x5820cc));}[_0xfa755a(0x454)](_0x2b8d51){var _0x3b88de=_0xfa755a;return firstValueFrom(this['getCollabEntity$'](_0x2b8d51)[_0x3b88de(0x34d)](map(()=>{})));}[_0xfa755a(0x373)](){var _0x582fd1=_0xfa755a;this[_0x582fd1(0x2be)][_0x582fd1(0x3db)](UniverInstanceType[_0x582fd1(0x223)])[_0x582fd1(0x34d)](takeUntil(this[_0x582fd1(0x39e)]),delay(0x10))['subscribe'](async _0x3149ee=>{var _0x177343=_0x582fd1;const _0x37788d=_0x3149ee[_0x177343(0x48c)](),_0x45fa85=await this[_0x177343(0x20c)](_0x37788d,UniverType[_0x177343(0x223)]);this[_0x177343(0x4c7)][_0x177343(0x32c)](_0x37788d,_0x45fa85);}),this['_univerInstanceService'][_0x582fd1(0x3db)](UniverInstanceType['UNIVER_DOC'])['pipe'](takeUntil(this['dispose$']),delay(0x10))['pipe'](filter(_0x4d1650=>!_0x4d1650[_0x582fd1(0x48c)]()[_0x582fd1(0x3c3)]('__')))[_0x582fd1(0x186)](async _0x259235=>{var _0x1aea12=_0x582fd1;const _0x4a1ab8=_0x259235[_0x1aea12(0x48c)](),_0x21e877=await this[_0x1aea12(0x20c)](_0x4a1ab8,UniverType['UNIVER_DOC']);this[_0x1aea12(0x4c7)][_0x1aea12(0x32c)](_0x4a1ab8,_0x21e877);}),merge(this['_univerInstanceService']['getTypeOfUnitDisposed$'](UniverInstanceType[_0x582fd1(0x223)]),this[_0x582fd1(0x2be)][_0x582fd1(0x265)](UniverInstanceType[_0x582fd1(0x458)]))[_0x582fd1(0x34d)](takeUntil(this[_0x582fd1(0x39e)]))[_0x582fd1(0x186)](_0x3cc189=>{var _0x34a0ee=_0x582fd1;const _0x451c8a=_0x3cc189[_0x34a0ee(0x48c)](),_0xae9d69=this[_0x34a0ee(0x4c7)][_0x34a0ee(0x484)](_0x451c8a);_0xae9d69&&(_0xae9d69['dispose'](),this[_0x34a0ee(0x4c7)][_0x34a0ee(0x3be)](_0x451c8a));});}async[_0xfa755a(0x20c)](_0x3a75a9,_0x36f0ee){var _0xafa68e=_0xfa755a;const _0x2fc502=await this[_0xafa68e(0x493)]['requireSession'](_0x3a75a9),_0x73486d=this['_injector'][_0xafa68e(0x478)](this['_getCtorByUniverType'](_0x36f0ee),_0x3a75a9,_0x36f0ee,_0x2fc502);return await _0x73486d['init'](),this['_entityInit$'][_0xafa68e(0x192)](_0x73486d),_0x73486d;}[_0xfa755a(0x2bb)](_0x184d53){var _0x3915fe=_0xfa755a;switch(_0x184d53){case UniverType['UNIVER_DOC']:return DocCollaborationEntity;case UniverType[_0x3915fe(0x223)]:return SheetCollaborationEntity;default:throw new Error(_0x3915fe(0x2c8)+_0x184d53);}}},__name(_a16,_0xfa755a(0x2d9)),_a16);CollaborationController=__decorateClass$b([__decorateParam$b(0x0,Inject(Injector)),__decorateParam$b(0x1,Inject(CollaborationSessionService)),__decorateParam$b(0x2,IUniverInstanceService)],CollaborationController);var __defProp$a=Object[_0xfa755a(0x29f)],__getOwnPropDesc$a=Object[_0xfa755a(0x1e0)],__decorateClass$a=__name((_0x5431a2,_0x235ac9,_0x523048,_0xcc33a3)=>{var _0x4232d2=_0xfa755a;for(var _0x26ead4=_0xcc33a3>0x1?void 0x0:_0xcc33a3?__getOwnPropDesc$a(_0x235ac9,_0x523048):_0x235ac9,_0x513f05=_0x5431a2[_0x4232d2(0x2d2)]-0x1,_0x3e9c41;_0x513f05>=0x0;_0x513f05--)(_0x3e9c41=_0x5431a2[_0x513f05])&&(_0x26ead4=(_0xcc33a3?_0x3e9c41(_0x235ac9,_0x523048,_0x26ead4):_0x3e9c41(_0x26ead4))||_0x26ead4);return _0xcc33a3&&_0x26ead4&&__defProp$a(_0x235ac9,_0x523048,_0x26ead4),_0x26ead4;},_0xfa755a(0x31d)),__decorateParam$a=__name((_0x1475cf,_0x2b1bcd)=>(_0x24d742,_0x5972ef)=>_0x2b1bcd(_0x24d742,_0x5972ef,_0x1475cf),'__decorateParam$a');const DEFAULT_FILE_NAME_KEY='DEFAULT_FILE_NAME',UNIVER_DEFAULT_FILE_NAME=_0xfa755a(0x311);var _a17;let FileNameController=(_a17=class extends Disposable{constructor(_0x4f1a05,_0xc041dd){var _0x118e87=_0xfa755a;super(),this[_0x118e87(0x2be)]=_0x4f1a05,this[_0x118e87(0x480)]=_0xc041dd,this[_0x118e87(0x373)]();}[_0xfa755a(0x373)](){var _0x9f488f=_0xfa755a;this[_0x9f488f(0x434)](this[_0x9f488f(0x2be)][_0x9f488f(0x27b)]['subscribe'](()=>{var _0x4214be=_0x9f488f,_0x4e71dd;const _0x44de3f=this[_0x4214be(0x2be)][_0x4214be(0x1c9)]();let _0x421e95=(_0x4e71dd=this[_0x4214be(0x480)][_0x4214be(0x3a4)](DEFAULT_FILE_NAME_KEY))!=null?_0x4e71dd:UNIVER_DEFAULT_FILE_NAME;_0x44de3f instanceof Workbook&&(_0x421e95=_0x44de3f[_0x4214be(0x487)]),document['title']=_0x421e95;}));}},__name(_a17,_0xfa755a(0x37c)),_a17);FileNameController=__decorateClass$a([__decorateParam$a(0x0,IUniverInstanceService),__decorateParam$a(0x1,IConfigService)],FileNameController);var __defProp$9=Object['defineProperty'],__getOwnPropDesc$9=Object[_0xfa755a(0x1e0)],__decorateClass$9=__name((_0x41b978,_0x59c8fb,_0x183af9,_0x30bf90)=>{var _0x274ba6=_0xfa755a;for(var _0x4e8525=_0x30bf90>0x1?void 0x0:_0x30bf90?__getOwnPropDesc$9(_0x59c8fb,_0x183af9):_0x59c8fb,_0x2ea064=_0x41b978[_0x274ba6(0x2d2)]-0x1,_0x47adfa;_0x2ea064>=0x0;_0x2ea064--)(_0x47adfa=_0x41b978[_0x2ea064])&&(_0x4e8525=(_0x30bf90?_0x47adfa(_0x59c8fb,_0x183af9,_0x4e8525):_0x47adfa(_0x4e8525))||_0x4e8525);return _0x30bf90&&_0x4e8525&&__defProp$9(_0x59c8fb,_0x183af9,_0x4e8525),_0x4e8525;},_0xfa755a(0x3b1)),__decorateParam$9=__name((_0x528ab9,_0x2a5ced)=>(_0x355cfa,_0x3c05e6)=>_0x2a5ced(_0x355cfa,_0x3c05e6,_0x528ab9),_0xfa755a(0x498)),_a18;let AuthServerService=(_a18=class{constructor(_0xdc9861,_0x127290,_0x28fcd9){var _0x12ec9f=_0xfa755a;this[_0x12ec9f(0x480)]=_0xdc9861,this[_0x12ec9f(0x3c5)]=_0x127290,this[_0x12ec9f(0x18c)]=_0x28fcd9,this[_0x12ec9f(0x430)]();}[_0xfa755a(0x430)](){var _0x2a6e52=_0xfa755a;this[_0x2a6e52(0x3c5)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':__name((_0xab3f4,_0x4fc0cc)=>_0x4fc0cc(_0xab3f4)[_0x2a6e52(0x34d)](concatMap(async _0x43a6e4=>{var _0x445030=_0x2a6e52;const _0x53b571=_0x43a6e4;if(_0x53b571[_0x445030(0x2f9)]===0x191){if(typeof window>'u')throw new Error(_0x445030(0x320));if(window[_0x445030(0x2fd)](this[_0x445030(0x18c)]['t'](_0x445030(0x39b)))){const _0x49bc5a=window['encodeURIComponent'](window[_0x445030(0x1aa)][_0x445030(0x36a)]);window[_0x445030(0x1aa)][_0x445030(0x36a)]=this[_0x445030(0x2f5)]()+_0x445030(0x260)+_0x49bc5a;}}return _0x53b571;})),_0x2a6e52(0x436))});}[_0xfa755a(0x2f5)](){var _0x400565=_0xfa755a,_0x480de5,_0xf3758;const _0x2aa5df=this[_0x400565(0x480)]['getConfig'](LOGIN_URL_KEY),_0x553502=this['_configService']['getConfig'](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0xf3758=(_0x480de5=_0x553502==null?void 0x0:_0x553502[_0x400565(0x1c1)])!=null?_0x480de5:_0x2aa5df)!=null?_0xf3758:DEFAULT_LOGIN_URL;}},__name(_a18,'AuthServerService'),_a18);AuthServerService=__decorateClass$9([__decorateParam$9(0x0,IConfigService),__decorateParam$9(0x1,Inject(HTTPService)),__decorateParam$9(0x2,Inject(LocaleService))],AuthServerService);var __defProp$8=Object[_0xfa755a(0x29f)],__getOwnPropDesc$8=Object[_0xfa755a(0x1e0)],__decorateClass$8=__name((_0x57af4d,_0x57dfea,_0x6d7fd9,_0x70487d)=>{var _0x13a6bd=_0xfa755a;for(var _0x4fabe4=_0x70487d>0x1?void 0x0:_0x70487d?__getOwnPropDesc$8(_0x57dfea,_0x6d7fd9):_0x57dfea,_0x269535=_0x57af4d[_0x13a6bd(0x2d2)]-0x1,_0x45fb9e;_0x269535>=0x0;_0x269535--)(_0x45fb9e=_0x57af4d[_0x269535])&&(_0x4fabe4=(_0x70487d?_0x45fb9e(_0x57dfea,_0x6d7fd9,_0x4fabe4):_0x45fb9e(_0x4fabe4))||_0x4fabe4);return _0x70487d&&_0x4fabe4&&__defProp$8(_0x57dfea,_0x6d7fd9,_0x4fabe4),_0x4fabe4;},_0xfa755a(0x21b)),__decorateParam$8=__name((_0x3e6715,_0x1fdf7f)=>(_0x5761e9,_0x2891df)=>_0x1fdf7f(_0x5761e9,_0x2891df,_0x3e6715),_0xfa755a(0x4b3));const AUTHZ_URL_KEY=_0xfa755a(0x310),DEFAULT_AUTHZ_URL_KEY$1=_0xfa755a(0x270);var _a19;let AuthzIoHttpService=(_a19=class extends Disposable{constructor(_0x286cb4,_0x5d4826){var _0x18ab6d=_0xfa755a;super(),this['_HTTPService']=_0x286cb4,this['_configService']=_0x5d4826,this[_0x18ab6d(0x447)]();}[_0xfa755a(0x447)](){var _0x1ed5fa=_0xfa755a;const _0x8a2d6b=this;this[_0x1ed5fa(0x434)](this['_HTTPService'][_0x1ed5fa(0x3c9)]({'priority':0x3e7,'interceptor':MergeInterceptorFactory({'isMatch'(_0x110f25){var _0x141b44=_0x1ed5fa,_0x193973;if(_0x110f25[_0x141b44(0x184)]===_0x141b44(0x28c)&&((_0x193973=_0x110f25[_0x141b44(0x388)])!=null&&_0x193973['body'])){const {objectID:_0x5e3d3a,objectType:_0x16e20b}=_0x110f25['requestParams'][_0x141b44(0x346)]||{};if(!_0x5e3d3a||_0x16e20b===void 0x0)return!0x1;const _0x9c8a4f=_0x8a2d6b['_getAPIPrefixPath']()+'/'+_0x16e20b+_0x141b44(0x316)+_0x5e3d3a+_0x141b44(0x1ce);if(_0x110f25[_0x141b44(0x1b8)]===_0x9c8a4f)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x49673f){var _0x262361;return(_0x262361=_0x49673f['requestParams'])==null?void 0x0:_0x262361['body'];},'mergeParamsToRequest'(_0x33d4d4,_0x399045){var _0x387084=_0x1ed5fa;const _0x2e4a9c=_0x8a2d6b[_0x387084(0x47a)]()+_0x387084(0x4b9),_0x5f5c26=_0x33d4d4[_0x387084(0x391)]((_0xda7f80,_0x445cab)=>{var _0x1c4536=_0x387084;const {unitID:_0x2768a9,objectID:_0x51d1bc,objectType:_0x5913b8,actions:_0x548179}=_0x445cab;return _0xda7f80[_0x2768a9]||(_0xda7f80[_0x2768a9]={}),_0xda7f80[_0x2768a9][_0x51d1bc]||(_0xda7f80[_0x2768a9][_0x51d1bc]={'objectID':_0x51d1bc,'objectType':_0x5913b8,'actions':[]}),_0xda7f80[_0x2768a9][_0x51d1bc]['actions'][_0x1c4536(0x38d)](..._0x548179),_0xda7f80;},{}),_0x435619=[];for(const _0x29f6b5 in _0x5f5c26)for(const _0x21657d in _0x5f5c26[_0x29f6b5]){const {actions:_0x50cda9,objectType:_0x5688a4}=_0x5f5c26[_0x29f6b5][_0x21657d],_0x3ab3d7=[...new Set(_0x50cda9)];_0x435619['push']({'unitID':_0x29f6b5,'objectID':_0x21657d,'objectType':_0x5688a4,'actions':_0x3ab3d7});}return new HTTPRequest(_0x387084(0x28c),_0x2e4a9c,{'headers':_0x399045[_0x387084(0x318)],'withCredentials':_0x399045[_0x387084(0x33b)],'responseType':_0x399045['responseType'],'body':{'requests':_0x435619}});}},{'distributeResult'(_0x38238e,_0x34f0b2){var _0x6ef6b6=_0x1ed5fa;const {objectActions:_0x214014}=_0x38238e;return _0x34f0b2[_0x6ef6b6(0x2c6)](_0xe659f0=>{var _0x3997c8=_0x6ef6b6;const {unitID:_0x397a2e,objectID:_0x16bb9f,actions:_0x8969e3}=_0xe659f0,_0x1ce825=_0x214014[_0x3997c8(0x2b9)](_0x57c7e0=>_0x57c7e0[_0x3997c8(0x412)]===_0x397a2e&&_0x57c7e0[_0x3997c8(0x3bb)]===_0x16bb9f),_0x4ea3d0=_0x8969e3['map'](_0x5cc157=>_0x1ce825==null?void 0x0:_0x1ce825['actions'][_0x3997c8(0x2b9)](_0x2a074a=>_0x2a074a[_0x3997c8(0x414)]===_0x5cc157))['filter'](_0x56f666=>!!_0x56f666);return{'config':_0xe659f0,'result':{'actions':_0x4ea3d0,'error':_0x38238e[_0x3997c8(0x421)]}};});}})}));}['_getAPIPrefixPath'](){var _0x40207a=_0xfa755a,_0x31a1c1,_0x5e7b1e;const _0x3602a9=this[_0x40207a(0x480)]['getConfig'](AUTHZ_URL_KEY),_0x57df19=this['_configService'][_0x40207a(0x3a4)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x5e7b1e=(_0x31a1c1=_0x57df19==null?void 0x0:_0x57df19[_0x40207a(0x44f)])!=null?_0x31a1c1:_0x3602a9)!=null?_0x5e7b1e:DEFAULT_AUTHZ_URL_KEY$1;}async[_0xfa755a(0x472)](_0x2640e5){var _0x53c1fd=_0xfa755a;const _0x9801bb=this['_getAPIPrefixPath']()+'/'+_0x2640e5['objectType']+_0x53c1fd(0x3a1);return(await this[_0x53c1fd(0x3e8)]['post'](_0x9801bb,{'body':_0x2640e5}))[_0x53c1fd(0x346)][_0x53c1fd(0x3bb)]||'';}async['list'](_0x2e4dca){var _0x3622f0=_0xfa755a;const _0x5bd3cb=this[_0x3622f0(0x47a)]()+_0x3622f0(0x353);return(await this[_0x3622f0(0x3e8)]['post'](_0x5bd3cb,{'body':_0x2e4dca}))[_0x3622f0(0x346)][_0x3622f0(0x190)];}async[_0xfa755a(0x39f)](_0x44319e){var _0x3a3dc6=_0xfa755a;const _0x5c86f7=this[_0x3a3dc6(0x47a)]()+'/'+_0x44319e[_0x3a3dc6(0x25d)]+_0x3a3dc6(0x316)+_0x44319e[_0x3a3dc6(0x3bb)];await this[_0x3a3dc6(0x3e8)][_0x3a3dc6(0x249)](_0x5c86f7,{'body':_0x44319e});}async[_0xfa755a(0x18a)](_0x5e4124){var _0x41646d=_0xfa755a;const _0x1ab155=this[_0x41646d(0x47a)]()+'/'+_0x5e4124[_0x41646d(0x25d)]+'/object/'+_0x5e4124['objectID']+_0x41646d(0x1ce);return(await this[_0x41646d(0x3e8)]['post'](_0x1ab155,{'body':_0x5e4124}))[_0x41646d(0x346)]['actions'];}async[_0xfa755a(0x43f)](_0x2539fc){var _0x502504=_0xfa755a;const _0x96ccd2=this[_0x502504(0x47a)]()+_0x502504(0x4b9);return(await this[_0x502504(0x3e8)]['post'](_0x96ccd2,{'body':{'requests':_0x2539fc}}))[_0x502504(0x346)][_0x502504(0x34b)];}async[_0xfa755a(0x4b8)](_0xe2e212){var _0x31128e=_0xfa755a;const _0x455119=this[_0x31128e(0x47a)]()+'/'+_0xe2e212[_0x31128e(0x25d)]+_0x31128e(0x38b),_0x359d0b=await this[_0x31128e(0x3e8)]['post'](_0x455119,{'body':_0xe2e212});return{'roles':_0x359d0b['body'][_0x31128e(0x3ca)],'actions':_0x359d0b['body']['actions']};}async['deleteCollaborator'](_0x3fed6){var _0x4cb235=_0xfa755a;const _0x1cd20a=this[_0x4cb235(0x47a)]()+_0x4cb235(0x324);await this[_0x4cb235(0x3e8)][_0x4cb235(0x3be)](_0x1cd20a,{'params':{'collaboratorID':_0x3fed6['collaboratorID'],'objectID':_0x3fed6[_0x4cb235(0x3bb)],'unitID':_0x3fed6[_0x4cb235(0x412)]}});}async[_0xfa755a(0x1cb)](_0x112f77){var _0x5881c8=_0xfa755a;const _0xae8e21=this[_0x5881c8(0x47a)]()+'/collaborator';await this[_0x5881c8(0x3e8)][_0x5881c8(0x31b)](_0xae8e21,{'body':_0x112f77});}async[_0xfa755a(0x312)](_0x528ede){var _0x325d56=_0xfa755a;const _0x424372=this[_0x325d56(0x47a)]()+'/collaborator';await this['_HTTPService'][_0x325d56(0x4cc)](_0x424372,{'body':_0x528ede});}async['listCollaborators'](_0x3580a6){var _0x4e257d=_0xfa755a;const _0x48eb23=this['_getAPIPrefixPath']()+'/collaborator';return(await this[_0x4e257d(0x3e8)][_0x4e257d(0x484)](_0x48eb23,{'params':{'objectID':_0x3580a6[_0x4e257d(0x3bb)],'unitID':_0x3580a6[_0x4e257d(0x412)]}}))['body']['collaborators'];}async[_0xfa755a(0x33c)](_0x9e190a){var _0x1863dd=_0xfa755a;const _0x3f9253=this[_0x1863dd(0x47a)]()+_0x1863dd(0x324);await this[_0x1863dd(0x3e8)]['put'](_0x3f9253,{'body':_0x9e190a});}},__name(_a19,_0xfa755a(0x351)),_a19);AuthzIoHttpService=__decorateClass$8([__decorateParam$8(0x0,Inject(HTTPService)),__decorateParam$8(0x1,Inject(IConfigService))],AuthzIoHttpService);var commonjsGlobal=typeof globalThis<'u'?globalThis:typeof window<'u'?window:typeof global<'u'?global:typeof self<'u'?self:{};function getDefaultExportFromCjs(_0x2637a9){var _0x559183=_0xfa755a;return _0x2637a9&&_0x2637a9['__esModule']&&Object[_0x559183(0x1f1)][_0x559183(0x48b)][_0x559183(0x294)](_0x2637a9,_0x559183(0x2ed))?_0x2637a9[_0x559183(0x2ed)]:_0x2637a9;}__name(getDefaultExportFromCjs,_0xfa755a(0x2d8));var aes$1={'exports':{}};function commonjsRequire(_0x4c6f21){var _0x3d397e=_0xfa755a;throw new Error('Could\x20not\x20dynamically\x20require\x20\x22'+_0x4c6f21+_0x3d397e(0x38e));}__name(commonjsRequire,_0xfa755a(0x3b8));var core$1={'exports':{}},core=core$1['exports'],hasRequiredCore;function requireCore(){return hasRequiredCore||(hasRequiredCore=0x1,function(_0x3fcc5e,_0x53266b){(function(_0x4d3e3e,_0x3705e5){var _0x100318=_0x4f8b;_0x3fcc5e[_0x100318(0x2fb)]=_0x3705e5();}(core,function(){var _0x4f7d4a=_0x4f7d4a||function(_0x431d47,_0x777406){var _0x4ff976=_0x4f8b,_0x35cb74;if(typeof window<'u'&&window[_0x4ff976(0x220)]&&(_0x35cb74=window[_0x4ff976(0x220)]),typeof self<'u'&&self[_0x4ff976(0x220)]&&(_0x35cb74=self[_0x4ff976(0x220)]),typeof globalThis<'u'&&globalThis['crypto']&&(_0x35cb74=globalThis[_0x4ff976(0x220)]),!_0x35cb74&&typeof window<'u'&&window[_0x4ff976(0x25a)]&&(_0x35cb74=window[_0x4ff976(0x25a)]),!_0x35cb74&&typeof commonjsGlobal<'u'&&commonjsGlobal['crypto']&&(_0x35cb74=commonjsGlobal[_0x4ff976(0x220)]),!_0x35cb74&&typeof commonjsRequire=='function')try{_0x35cb74=require(_0x4ff976(0x220));}catch{}var _0x4f7c07=__name(function(){var _0x539c4d=_0x4ff976;if(_0x35cb74){if(typeof _0x35cb74['getRandomValues']==_0x539c4d(0x44d))try{return _0x35cb74['getRandomValues'](new Uint32Array(0x1))[0x0];}catch{}if(typeof _0x35cb74[_0x539c4d(0x3f5)]==_0x539c4d(0x44d))try{return _0x35cb74[_0x539c4d(0x3f5)](0x4)['readInt32LE']();}catch{}}throw new Error(_0x539c4d(0x1f3));},_0x4ff976(0x3e2)),_0x4de440=Object[_0x4ff976(0x472)]||(function(){function _0x5cea9a(){}return __name(_0x5cea9a,'F'),function(_0x45acda){var _0x1c85d4=_0x4f8b,_0x29a0d3;return _0x5cea9a['prototype']=_0x45acda,_0x29a0d3=new _0x5cea9a(),_0x5cea9a[_0x1c85d4(0x1f1)]=null,_0x29a0d3;};}()),_0xb4105={},_0xb9a565=_0xb4105[_0x4ff976(0x47b)]={},_0x43f7a4=_0xb9a565[_0x4ff976(0x2ea)]=(function(){var _0x223034=_0x4ff976;return{'extend':__name(function(_0x34c745){var _0x962376=_0x4f8b,_0x43c032=_0x4de440(this);return _0x34c745&&_0x43c032[_0x962376(0x4c8)](_0x34c745),(!_0x43c032[_0x962376(0x48b)](_0x962376(0x430))||this['init']===_0x43c032['init'])&&(_0x43c032['init']=function(){var _0x2b5bb0=_0x962376;_0x43c032[_0x2b5bb0(0x177)][_0x2b5bb0(0x430)]['apply'](this,arguments);}),_0x43c032['init']['prototype']=_0x43c032,_0x43c032[_0x962376(0x177)]=this,_0x43c032;},_0x223034(0x2e8)),'create':__name(function(){var _0x197a64=_0x223034,_0x2e5207=this['extend']();return _0x2e5207[_0x197a64(0x430)]['apply'](_0x2e5207,arguments),_0x2e5207;},_0x223034(0x472)),'init':__name(function(){},_0x223034(0x430)),'mixIn':__name(function(_0x208e0){var _0x70258=_0x223034;for(var _0x23351a in _0x208e0)_0x208e0[_0x70258(0x48b)](_0x23351a)&&(this[_0x23351a]=_0x208e0[_0x23351a]);_0x208e0[_0x70258(0x48b)](_0x70258(0x204))&&(this[_0x70258(0x204)]=_0x208e0[_0x70258(0x204)]);},_0x223034(0x4c8)),'clone':__name(function(){var _0x21f263=_0x223034;return this[_0x21f263(0x430)][_0x21f263(0x1f1)]['extend'](this);},_0x223034(0x4ad))};}()),_0x1472af=_0xb9a565[_0x4ff976(0x331)]=_0x43f7a4[_0x4ff976(0x2e8)]({'init':__name(function(_0x248a33,_0x3211d8){var _0x13d9d5=_0x4ff976;_0x248a33=this[_0x13d9d5(0x3bc)]=_0x248a33||[],_0x3211d8!=_0x777406?this['sigBytes']=_0x3211d8:this[_0x13d9d5(0x3f8)]=_0x248a33[_0x13d9d5(0x2d2)]*0x4;},_0x4ff976(0x430)),'toString':__name(function(_0x2c402d){return(_0x2c402d||_0x2c79cc)['stringify'](this);},_0x4ff976(0x204)),'concat':__name(function(_0xc1fa5d){var _0x4511a4=_0x4ff976,_0x2bb9a8=this[_0x4511a4(0x3bc)],_0x315688=_0xc1fa5d['words'],_0x12e4f4=this[_0x4511a4(0x3f8)],_0x71f7c7=_0xc1fa5d[_0x4511a4(0x3f8)];if(this['clamp'](),_0x12e4f4%0x4)for(var _0x112565=0x0;_0x112565<_0x71f7c7;_0x112565++){var _0x43c0fb=_0x315688[_0x112565>>>0x2]>>>0x18-_0x112565%0x4*0x8&0xff;_0x2bb9a8[_0x12e4f4+_0x112565>>>0x2]|=_0x43c0fb<<0x18-(_0x12e4f4+_0x112565)%0x4*0x8;}else{for(var _0x158b6b=0x0;_0x158b6b<_0x71f7c7;_0x158b6b+=0x4)_0x2bb9a8[_0x12e4f4+_0x158b6b>>>0x2]=_0x315688[_0x158b6b>>>0x2];}return this[_0x4511a4(0x3f8)]+=_0x71f7c7,this;},_0x4ff976(0x3e9)),'clamp':__name(function(){var _0x577f6c=_0x4ff976,_0x241fd1=this[_0x577f6c(0x3bc)],_0x1a620d=this[_0x577f6c(0x3f8)];_0x241fd1[_0x1a620d>>>0x2]&=0xffffffff<<0x20-_0x1a620d%0x4*0x8,_0x241fd1[_0x577f6c(0x2d2)]=_0x431d47[_0x577f6c(0x208)](_0x1a620d/0x4);},_0x4ff976(0x401)),'clone':__name(function(){var _0x48d5d9=_0x4ff976,_0x472861=_0x43f7a4[_0x48d5d9(0x4ad)][_0x48d5d9(0x294)](this);return _0x472861[_0x48d5d9(0x3bc)]=this[_0x48d5d9(0x3bc)]['slice'](0x0),_0x472861;},'clone'),'random':__name(function(_0x5cb1d1){var _0x1db907=_0x4ff976;for(var _0x63fe83=[],_0x79f7f8=0x0;_0x79f7f8<_0x5cb1d1;_0x79f7f8+=0x4)_0x63fe83[_0x1db907(0x38d)](_0x4f7c07());return new _0x1472af['init'](_0x63fe83,_0x5cb1d1);},'random')}),_0x3a1c92=_0xb4105['enc']={},_0x2c79cc=_0x3a1c92[_0x4ff976(0x339)]={'stringify':__name(function(_0x19e95f){var _0x58a909=_0x4ff976;for(var _0x23dfba=_0x19e95f[_0x58a909(0x3bc)],_0x4e5260=_0x19e95f[_0x58a909(0x3f8)],_0x30fe3a=[],_0x2f207c=0x0;_0x2f207c<_0x4e5260;_0x2f207c++){var _0x387694=_0x23dfba[_0x2f207c>>>0x2]>>>0x18-_0x2f207c%0x4*0x8&0xff;_0x30fe3a[_0x58a909(0x38d)]((_0x387694>>>0x4)['toString'](0x10)),_0x30fe3a[_0x58a909(0x38d)]((_0x387694&0xf)[_0x58a909(0x204)](0x10));}return _0x30fe3a[_0x58a909(0x43e)]('');},_0x4ff976(0x39d)),'parse':__name(function(_0xd3edf8){var _0x2137f5=_0x4ff976;for(var _0x463f29=_0xd3edf8[_0x2137f5(0x2d2)],_0x49ed4c=[],_0x278873=0x0;_0x278873<_0x463f29;_0x278873+=0x2)_0x49ed4c[_0x278873>>>0x3]|=parseInt(_0xd3edf8[_0x2137f5(0x468)](_0x278873,0x2),0x10)<<0x18-_0x278873%0x8*0x4;return new _0x1472af[(_0x2137f5(0x430))](_0x49ed4c,_0x463f29/0x2);},_0x4ff976(0x410))},_0x36b090=_0x3a1c92[_0x4ff976(0x19a)]={'stringify':__name(function(_0x214798){var _0x5608c0=_0x4ff976;for(var _0x9781bb=_0x214798[_0x5608c0(0x3bc)],_0x246d5a=_0x214798[_0x5608c0(0x3f8)],_0x438ee0=[],_0x230ec4=0x0;_0x230ec4<_0x246d5a;_0x230ec4++){var _0x467b0f=_0x9781bb[_0x230ec4>>>0x2]>>>0x18-_0x230ec4%0x4*0x8&0xff;_0x438ee0['push'](String[_0x5608c0(0x206)](_0x467b0f));}return _0x438ee0['join']('');},_0x4ff976(0x39d)),'parse':__name(function(_0x1cc673){var _0x3f04fc=_0x4ff976;for(var _0x124896=_0x1cc673['length'],_0x2b0f44=[],_0x121a30=0x0;_0x121a30<_0x124896;_0x121a30++)_0x2b0f44[_0x121a30>>>0x2]|=(_0x1cc673[_0x3f04fc(0x180)](_0x121a30)&0xff)<<0x18-_0x121a30%0x4*0x8;return new _0x1472af[(_0x3f04fc(0x430))](_0x2b0f44,_0x124896);},'parse')},_0x5153c9=_0x3a1c92[_0x4ff976(0x210)]={'stringify':__name(function(_0x1f3e87){var _0x17c1c2=_0x4ff976;try{return decodeURIComponent(escape(_0x36b090[_0x17c1c2(0x39d)](_0x1f3e87)));}catch{throw new Error('Malformed\x20UTF-8\x20data');}},'stringify'),'parse':__name(function(_0x1ef6b4){var _0x432ccf=_0x4ff976;return _0x36b090[_0x432ccf(0x410)](unescape(encodeURIComponent(_0x1ef6b4)));},_0x4ff976(0x410))},_0x53df5d=_0xb9a565[_0x4ff976(0x337)]=_0x43f7a4[_0x4ff976(0x2e8)]({'reset':__name(function(){var _0x392f06=_0x4ff976;this[_0x392f06(0x370)]=new _0x1472af[(_0x392f06(0x430))](),this[_0x392f06(0x435)]=0x0;},_0x4ff976(0x3df)),'_append':__name(function(_0x367928){var _0x47437c=_0x4ff976;typeof _0x367928==_0x47437c(0x201)&&(_0x367928=_0x5153c9[_0x47437c(0x410)](_0x367928)),this['_data'][_0x47437c(0x3e9)](_0x367928),this[_0x47437c(0x435)]+=_0x367928[_0x47437c(0x3f8)];},'_append'),'_process':__name(function(_0x346aaf){var _0x538ca1=_0x4ff976,_0x2cc012,_0x226038=this['_data'],_0x561c44=_0x226038[_0x538ca1(0x3bc)],_0x580d6b=_0x226038[_0x538ca1(0x3f8)],_0xfc5ac1=this['blockSize'],_0x45795e=_0xfc5ac1*0x4,_0x3c113c=_0x580d6b/_0x45795e;_0x346aaf?_0x3c113c=_0x431d47[_0x538ca1(0x208)](_0x3c113c):_0x3c113c=_0x431d47[_0x538ca1(0x2e6)]((_0x3c113c|0x0)-this[_0x538ca1(0x3dd)],0x0);var _0xd550bb=_0x3c113c*_0xfc5ac1,_0x4ee628=_0x431d47[_0x538ca1(0x30e)](_0xd550bb*0x4,_0x580d6b);if(_0xd550bb){for(var _0x131d0f=0x0;_0x131d0f<_0xd550bb;_0x131d0f+=_0xfc5ac1)this[_0x538ca1(0x442)](_0x561c44,_0x131d0f);_0x2cc012=_0x561c44[_0x538ca1(0x3f1)](0x0,_0xd550bb),_0x226038['sigBytes']-=_0x4ee628;}return new _0x1472af[(_0x538ca1(0x430))](_0x2cc012,_0x4ee628);},_0x4ff976(0x209)),'clone':__name(function(){var _0x2edd7a=_0x4ff976,_0x55b96c=_0x43f7a4[_0x2edd7a(0x4ad)][_0x2edd7a(0x294)](this);return _0x55b96c[_0x2edd7a(0x370)]=this[_0x2edd7a(0x370)][_0x2edd7a(0x4ad)](),_0x55b96c;},'clone'),'_minBufferSize':0x0});_0xb9a565['Hasher']=_0x53df5d[_0x4ff976(0x2e8)]({'cfg':_0x43f7a4[_0x4ff976(0x2e8)](),'init':__name(function(_0x41f9e3){var _0x1f74f2=_0x4ff976;this['cfg']=this[_0x1f74f2(0x189)]['extend'](_0x41f9e3),this[_0x1f74f2(0x3df)]();},_0x4ff976(0x430)),'reset':__name(function(){var _0x159896=_0x4ff976;_0x53df5d[_0x159896(0x3df)]['call'](this),this[_0x159896(0x3ef)]();},_0x4ff976(0x3df)),'update':__name(function(_0x40170d){var _0x97d4eb=_0x4ff976;return this[_0x97d4eb(0x477)](_0x40170d),this[_0x97d4eb(0x209)](),this;},'update'),'finalize':__name(function(_0x37688e){var _0x3fec19=_0x4ff976;_0x37688e&&this[_0x3fec19(0x477)](_0x37688e);var _0x59679c=this[_0x3fec19(0x2ba)]();return _0x59679c;},_0x4ff976(0x292)),'blockSize':0x10,'_createHelper':__name(function(_0x30bc8c){return function(_0x2255b4,_0x1ac6af){var _0x4964a0=_0x4f8b;return new _0x30bc8c['init'](_0x1ac6af)[_0x4964a0(0x292)](_0x2255b4);};},_0x4ff976(0x3e1)),'_createHmacHelper':__name(function(_0x119ef6){return function(_0x2763a0,_0x1a37c8){var _0x2833fc=_0x4f8b;return new _0x27cd4e[(_0x2833fc(0x257))][(_0x2833fc(0x430))](_0x119ef6,_0x1a37c8)['finalize'](_0x2763a0);};},'_createHmacHelper')});var _0x27cd4e=_0xb4105['algo']={};return _0xb4105;}(Math);return _0x4f7d4a;}));}(core$1)),core$1['exports'];}__name(requireCore,_0xfa755a(0x26d));function _0x4a1f(){var _0x2c0476=['words','resolve','delete','_reverseMap','ONLINE','ERROR_EXCEED_SIZE','/universer-api/comb','startsWith','catch','_httpService','bind','getRandomValues','symbol','registerHTTPInterceptor','roles','_commentUpdate$','_transformStack','enc','_invKeySchedule','[CollaborationUndoRedoService]','UNKNOWN_CMD','_retryCount','reconnect','uniscriptRunEvent','YUUMI_UNABLE_LOAD_URL','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','[OfflineState]:\x20received\x20changeset.','fetchMiss','_waitCount','CollaborationImageIoService','keySize','getTypeOfUnitAdded$','unsafeStringify','_minBufferSize','awaitingChangeset','reset','_cipher','_createHelper','cryptoSecureRandomInt','_checkMissing','toggleOffline','sin','_resendTimer','_keyPriorReset','_HTTPService','concat','collaMsg','__decorateParam$3','executeCommand','CHANGESET_SHOULD_RETRY','onTransformRemoteChangesetByIMECache','_doReset','_onConnectionOpen','splice','_localCacheService','subject','JOIN_ROOM_PERMISSION_DENIED','randomBytes','_onUserJoin','PermissionService','sigBytes','telemetry\x20info\x20is\x20not\x20initialized','_tryReconnect','SEND_CHANGESET_TIMEOUT','Error\x20on\x20receiving\x20event','getSheetId','_getCurrentRevision','_xformMode','_commandService','clamp','__decorateParam','HEARTBEAT_TIMEOUT','_collaborationPaused','_onFetchMissResult','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_getSignURL','_joinRoom','application/json','_onOffline','_change$','updateOfflineData','_transformRemoteChangesetByStateCache','SNAPSHOT_INVALID_SNAPSHOT','entityInit$','parse','pluginName','unitID','38423286QnQyqH','action','_map','infoRsp','appendMutation','_transformService','onRemoteRej','/universer-api/user/session-ticket','UUID','src','ivSize','_commentService','_createHmacHelper','[CollaborationState]:\x20apply\x20error!','error','_getAPIPrefix','_substituteRedoStack','toLowerCase','_changesetSessionId','editingUnit','__publicField','csRejEvent','_toggleOnline','ALREADY_EXISTS','CONFLICT','offline','_loadDoc','DataLoaderService','GLOBAL_ROOMS_CNT_EXCEEDS','init','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','requireAes','UniverCollaborationClientPlugin','disposeWithMe','_nDataBytes','interceptor','result','CollaborationSessionService','_status$','unknown','_updateLocalCache','_rescheduleHeartbeat','LICENSE_DISTRO_REJECTED','join','batchAllowed','__decorateClass$3','onTransformSelections','_doProcessBlock','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','__decorateClass','/resources','_timeoutTimer','_initMergeInterceptor','onStateChange','/universer-api/uniscript','setShowComponents','[PendingState]:\x20received\x20acknowledgement.','__decorateClass$5','function','PERMISSION_REJ','authzUrl','_lockTransition','now','[CollaborationSession]','_config','readyForCollab','random','reqId','_userManagerService','UNIVER_DOC','getUnitType','SheetCollaborationEntity','_clearTimeoutTimer','onStarting','collaboration-client.local-cache-service','AWAITING','UNAUTHENTICATED','_compressMutationService','_type','requireCipherCore','UNIVER_COLLABORATION_CLIENT_PLUGIN','byteOffset','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_onRemoteChangeset','__decorateParam$d','substr','searchParams','APPLY_DUPLICATED','joinRsp','onCommandExecuted','_socketService','\x20-\x20','_resendWithTimeout','onCommentUpdate','NEW_CHANGESETS','create','getCurrentUser','YUUMI_URL_COL_OUT_OF_RANGE','_clearHeartbeatTimer','getCurrentRevOfUnit','_append','createInstance','HmacMD5','_getAPIPrefixPath','lib','UPDATE_CURSOR','equals','decrypt','AES','_configService','__decorateParam$e','sid','hostname','get','ERROR_IMAGE_TYPE','_sender','name','close','members','transformChangesets','hasOwnProperty','getUnitId','/universer-api/snapshot','_onJoinRoomEvent','image/jpg','session.room-permission-denied','\x0aCurrent:\x20','__decorateClass$7','_collabSessionService','loadUnit','BlockCipher','processBlock','__decorateParam$i','__decorateParam$9','EvpKDF','_http','SUBMIT_CHANGESET_TIMEOUT','image/png','pending','OPTIONAL','updatePermissionPoint','SUCCUSS','originalMeta','_entityInit$','closeSession','MentionIoHttpService','_unlockTransition','getUnitOnRev','failed\x20to\x20apply\x20missed\x20changesets!','fetchMissingChangesets','_getDownloadEndpointURL','floor','LICENSE_EXPORT_SIZE_EXCEEDED','requireEncUtf8','clone','HEARTBEAT_INTERVAL','_sessions','INVALID_ARGUMENT','OTHER_CLIENTS_EDITING','UNRECOGNIZED','__decorateParam$8','stopTime','_event$','Decryptor','isPermissionRej','listRoles','/-/object/-/batch_allowed','encode','DocCollaborationEntity','__decorateClass$4','routeKey','awaiting_with_pending','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_changesetReqId','x-univer-host','SHOULD_CLOSE_CONN','ciphertext','_collaborationTimeoutTimer','[OfflineState]:\x20received\x20rejection.','&source=','_entities','mixIn','type','getImage','_telemetryService','post','_members','_initUnitPermissionChange','_socket$','$super','retryConnectingInterval','newCsEvent','CollaborationSession','_unitID','__decorateClass$d','requireMd5','userID','_iv','charCodeAt','fetch_missing','loadDoc','[DataLoaderService]','method','csAckEvent','subscribe','_telemetryInfo','Base64','cfg','allowed','ConflictState','localeService','40gskPuh','getTime','sessionStatus','objects','Undefined','next','_createSocketURL','CLOSE_ROOM','_memberService','_retryConnectingTimer','BlockCipherMode','_socketMessageSubscription','getUnit','Latin1','_ENC_XFORM_MODE','LIVESHARE_OPERATION','FETCH_MISS','ERROR_IMAGE','unit-cache-','requireSession','INGEST','mode','_schedule','liveShareOperation','JOINING','__decorateParam$1','[CollaborationSessionService]','NoPadding','joinEvent','location','_undoRedoService','RETRY_CONNECTING_MAX_COUNT','extractTargetFromFirstChangeset','4075290DvzmvR','serializeCombRequest','params','baseRev','_substituteUndoStack','setWaitCount','_snapshotServerService','_syncEditingCollabCursor','m2Prime','_updateState','url','_collaborationUIEventService','localCacheService','_localeService','_transformRemoteChangesetByIMECache','disableLocalCache','_sendHeartbeat','_listenToNetworkCondition','SHA1','loginUrlKey','COLLAB_SUBMIT_CHANGESET_URL','_startTelemetryCollaborationNewChangeset','session.room-cnt-exceeds','/universer-api/stream/file/upload','_showConflictNotification','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','compose','getFocusedUnit','indexOf','updateCollaborator','transformStack\x20failed!','104eZgVls','/allowed','rev','_onMessage','getDeserializedSheetBlock','onRemoteChangeset','onMissingChangesets','algo','_decreaseWaiting','_transformSelections','_eventService','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','status$','PY_RUNTIME_SCRIPT_ERROR','repeat','getMember','_incrementRevisionNumber','_onRemoteRetry','socket$','getOwnPropertyDescriptor','requireEvpkdf','UNISCRIPT_RUN','sessionStatus$','socket\x20open.','\x20in\x20_schedule.','createSocket','LIVESHARE_REQUEST_HOST','setConfig','__decorateParam$f','unitId','_registerDependencies','getUnitStatus$','JOIN_ROOM_NOT_EXISTS','save\x20fail\x20reason\x20is\x20','conflict','FETCH_MISSING','prototype','onLocalMutation','Native\x20crypto\x20module\x20could\x20not\x20be\x20used\x20to\x20get\x20secure\x20random\x20number.','ws://127.0.0.1:8000/universer-api/comb/connect','process','CHANGESET_REVISION_CONFILICT','univer-pro.collaboration-client.network-condition.service','getLocalCacheKey','_hash','getValue','UnitEmbedded','state','awaiting','_unitInfo$','[CollaborationEntity]','&to=','string','OfflineState','UnitSnapshot','toString','_logService','fromCharCode','subUnitId','ceil','_process','collaborators','9426852VjfImJ','_startCollaboration','padding','_roomMembers','not_collab','Utf8','JOIN_ROOM_FAILED','generateSubmitChangesPath','getLatestCsReqIdBySid','1DzENsE','__decorateClass$1','key','_onConflict','LICENSE_IMPORT_SIZE_EXCEEDED','_acknowledgedAwaitingChangeset','_resendTimeout','__decorateClass$8','code','_scheduleCompleteTimestamp','_clearScheduledTask','onMissedChangesetFetched','crypto','LIVESHARE_FETCH_OPERATIONS','/fetchmissing?from=','UNIVER_SHEET','UNIVER_SLIDE','MSG_FOR_ERROR','_onUserLeave','_transformIMECache','blockSize','522354cPmMXS','_getUndoStack','byteLength','__decorateParam$6','findIndex','FetchingMissState','readAsDataURL','MUTATION','textRanges','_socketReady','snapshotServerUrl','replace','shouldCloseConn','Random\x20bytes\x20length\x20must\x20be\x20>=\x2016','8532955vUTqtN','getRoom','_initRequestHeader','?size=','onTransformRemoteChangesetByStateCache','LICENSE_MAX_UNITS_EXCEEDED','generateRandomId','updateMember','transformSelections','_oKey','__decorateParam$c','_disableEditing','_stopTelemetryCollaborationNewChangeset','HELLO','_onLocalMutation','_revisionService','_state','BASE64','put','_injector','range','COMPLETION_FINISHED','entries','ENSURE_SNAPSHOT_EXECUTION','connection\x20error','avatar','_snapshotService','NOT_FOUND','INTERNAL_ERROR','_submitChangeset','__decorateParam$5','MD5','HMAC','close$','open$','msCrypto','json','members$','objectType','image/jpeg','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','?url=','OFFLINE','getWorkbookSelections','JOIN_ROOM_FULL','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','getTypeOfUnitDisposed$','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_imageSourceCache','COLLAB_WEB_SOCKET_URL','onSyncEditingCollabCursor','_permissionService','_doCryptBlock','addImageSourceCache','requireCore','OpenSSL','fromCollab','/universer-api/authz','change$','_singleActiveUnitService','every','CommentService','SNAPSHOT_SERVER_URL_KEY','reject','CHANGESET_ACK','_createInitialStateImpl','onSendChangeset','encrypt','focused$','eventID','_networkConditionService','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','send','leaveEvent','emitEvent','CollaborationSocketService','image/gif','formatter','_remoteChangesetQueue','TOO_MANY_REQUESTS','__decorateClass$2','ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=','memberID','_waitForHeartbeatResponse','_onRemoteACK','POST','sendChangesetTimeout','getInterceptPoints','_roomCreated$','_getUploadFileURL','collaboration_new_changeset','finalize','_iKey','call','randomUUID','unitId\x20is\x20not\x20found','_shouldReportTelemetry','changesets','execute','handleUnitPermissionChange','session.room-not-exists','_transformStateCache','_tryEnsureSocket','LEAVE','defineProperty','CollaborationEntity','APPLY_PERMISSION_DENIED','PERMISSION_DENIED','OTHER_CLIENT_EDITING','_throwTelemetryCollaborationNewChangeset','resend','APPLY_REVISION_CONFILICT','workbook','fetchThroughInterceptors','APPLY_REJECT','collaboration-client.config','pauseCollaboration','_pendingMutations','state$','createDecryptor','__decorateClass$b','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_clearLocalCache','_transformUndoredo','_onRecvEvent','_getRedoStack','_isPermissionRej','SNAPSHOT_URL_KEY','_loadSheet','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','find','_doFinalize','_getCtorByUniverType','abs','_prevBlock','_univerInstanceService','[PendingState]:\x20received\x20rejection.','image/bmp','revision','onRemoteRetry','decryptBlock','updateCursorEvent','clear','map','__defNormalProp','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','c2Prime','COMMENT_UPDATE','synced','event$','incrementRevOfUnit','[UniverCollaborationClientPlugin]','transformUndoRedo','_executeRemoteChangeset','append','length','NO_OTHER_CLIENTS_EDITING','_onCombEvent','loadOfflineData','debug','\x20to\x20','getDefaultExportFromCjs','CollaborationController','HEARTBEAT','LOGIN_URL_KEY','_nRounds','size','collabSubmitChangesetUrl','getSnapshotAPIPath','CBC','JOIN','unitInfo$','__decorateClass$6','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_key','max','encryptBlock','extend','getCollabEntity','Base','/unit/','USERS_ENTER','default','setCurrentUser','/rev/','error$','USERS_LEAVE','_authzIoService','_mode','reverse','_getLoginPath','FAIL','requireEncBase64','from','status','Encryptor','exports','sheets','confirm','COMPRESS_MUTATION_SEND','message$','copyFileMeta','univer-pro.collaboration-client.single-active-unit-service','__decorateParam$g','createEncryptor','&assign=','handleCloseConn','MemberService','forEach','getSheetBlock','RECV','resourceIDs','[SyncedState]:\x20received\x20acknowledgement.','__decorateClass$h','xorBlock','min','override','AUTHZ_URL_KEY','Univer','createCollaborator','_collaborationSessionService','onTransformState','{fileID}','/object/','_getSendChangesetTimeout','headers','asObservable','__creator','patch','_candidateSocket','__decorateClass$a','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','deserializeToCombResponse','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','assembleDocChangeset','_fetchMissChangesets','_queuedRemoteChangesets','/collaborator','/block/','session','YUUMI_SUBSCRIPTION_NOT_FOUND','_instanceService','actions','saveSheetBlock','collabWebSocketUrl','set','liveShareNewHost','c1Prime','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','getAttachHeader','WordArray','EXCHANGE_SIGN_URL_SERVER_URL_KEY','onRemoteAck','__decorateParam$h','_initCloseConn','LIVESHARE_NEW_HOST','BufferedBlockAlgorithm','CHANGESET_REJ','Hex','_clearCollaborationTimeoutTimer','withCredentials','putCollaborators','wsSessionTicketUrl','getResourcesRequest','_initDependencies','PENDING','Cipher','hasher','mutations','enableOfflineEditing','_hasher','body','_removeRoom','charAt','_parse','_awaitingChangeset','objectActions','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','pipe','_sendHeartbeatTimer','Hasher','AwaitingWithPendingState','AuthzIoHttpService','_getSessionTicket','/-/object/list','SOCKET_FAILED','APPLY_NON_SEQUENTIAL_REVISION','pad','format','_updateStatus','createTimerObservable$','assembleSheetChangeset','Pkcs7','salt','includes','compute','_clearUndo','\x0aAfter:\x20','add','selections','_createSocket','UNIVER_UNKNOWN','/new_changes','dispose','_sessionStatus$','_onConnectionFailed','session.room-full','href','HttpImport','origin','cmd','PERSON','DomainRequestService','_data','data','unsubscribe','_init','_createHandler','AwaitingState','2932516PZFUVq','_clearRedo','has','_handlerCallback','People','csShouldRetryEvent','FileNameController','apply','getMemberID','UPDATE_PERMISSION_OBJ','saveImage','/universer-api/snapshot/','_onRemoteRejected','__decorateParam$2','_toggleOffline','initWorkbookPermissionChange','_exhaustRemoteChangesetQueue','deepClone','requestParams','_scheduleCollaborationTimeoutTimer','LIVESHARE_TERMINATE','/role','transformMutationsWithChangeset','push','\x22.\x20Please\x20configure\x20the\x20dynamicRequireTargets\x20or/and\x20ignoreDynamicRequires\x20option\x20of\x20@rollup/plugin-commonjs\x20appropriately\x20for\x20this\x20require\x20call\x20to\x20work.','duration','onTransformIME','reduce','SUBMIT_CHANGESET','CONNECTOR_DATA_TOO_LARGE','unpad','_members$','SYNCED','_socket','3ksdLgQ','YUUMI_RATE_OVER_LIMIT','COMPRESS_MUTATION_APPLY','auth.needGotoLoginAlert','complete','stringify','dispose$','update','SNAPSHOT_HAS_BEEN_REMOVED','/object','commentUpdate$','IDLE','getConfig','iterations','_applyRemoteChangeset','[OfflineState]:\x20received\x20acknowledgement.','slice','removeMember','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','HttpExport','_sendingTimer','__decorateParam$b','kdf','runId','permissionRejEvent','__decorateClass$9','_replayCachedMutations','_handler','UNIVER_PROJECT','2606938gasySK','loadSheet','_transitionLocked','commonjsRequire','toggleOnline','_state$','objectID'];_0x4a1f=function(){return _0x2c0476;};return _0x4a1f();}var encBase64$1={'exports':{}},encBase64=encBase64$1[_0xfa755a(0x2fb)],hasRequiredEncBase64;function requireEncBase64(){return hasRequiredEncBase64||(hasRequiredEncBase64=0x1,function(_0x1f1c07,_0x40e1ca){(function(_0x504a3f,_0x2e02e4){var _0x48bd75=_0x4f8b;_0x1f1c07[_0x48bd75(0x2fb)]=_0x2e02e4(requireCore());}(encBase64,function(_0x5064bf){return(function(){var _0x44dc8e=_0x4f8b,_0x4de015=_0x5064bf,_0x55646a=_0x4de015[_0x44dc8e(0x47b)],_0x40aa41=_0x55646a[_0x44dc8e(0x331)],_0x29803c=_0x4de015[_0x44dc8e(0x3cd)];_0x29803c[_0x44dc8e(0x188)]={'stringify':__name(function(_0x3b63a9){var _0x1d1c73=_0x44dc8e,_0x61c0e9=_0x3b63a9[_0x1d1c73(0x3bc)],_0xff2a8d=_0x3b63a9[_0x1d1c73(0x3f8)],_0x288c82=this[_0x1d1c73(0x415)];_0x3b63a9[_0x1d1c73(0x401)]();for(var _0x2bc0c3=[],_0x4bdc66=0x0;_0x4bdc66<_0xff2a8d;_0x4bdc66+=0x3)for(var _0x56759c=_0x61c0e9[_0x4bdc66>>>0x2]>>>0x18-_0x4bdc66%0x4*0x8&0xff,_0x3ebbd5=_0x61c0e9[_0x4bdc66+0x1>>>0x2]>>>0x18-(_0x4bdc66+0x1)%0x4*0x8&0xff,_0x106946=_0x61c0e9[_0x4bdc66+0x2>>>0x2]>>>0x18-(_0x4bdc66+0x2)%0x4*0x8&0xff,_0x265546=_0x56759c<<0x10|_0x3ebbd5<<0x8|_0x106946,_0x98d5e6=0x0;_0x98d5e6<0x4&&_0x4bdc66+_0x98d5e6*0.75<_0xff2a8d;_0x98d5e6++)_0x2bc0c3[_0x1d1c73(0x38d)](_0x288c82[_0x1d1c73(0x348)](_0x265546>>>0x6*(0x3-_0x98d5e6)&0x3f));var _0x47cf33=_0x288c82[_0x1d1c73(0x348)](0x40);if(_0x47cf33){for(;_0x2bc0c3[_0x1d1c73(0x2d2)]%0x4;)_0x2bc0c3[_0x1d1c73(0x38d)](_0x47cf33);}return _0x2bc0c3[_0x1d1c73(0x43e)]('');},'stringify'),'parse':__name(function(_0x5c490d){var _0x3091af=_0x44dc8e,_0x3931f5=_0x5c490d[_0x3091af(0x2d2)],_0x1ca9a5=this[_0x3091af(0x415)],_0x12c93c=this[_0x3091af(0x3bf)];if(!_0x12c93c){_0x12c93c=this['_reverseMap']=[];for(var _0x284b15=0x0;_0x284b15<_0x1ca9a5[_0x3091af(0x2d2)];_0x284b15++)_0x12c93c[_0x1ca9a5[_0x3091af(0x180)](_0x284b15)]=_0x284b15;}var _0x141821=_0x1ca9a5[_0x3091af(0x348)](0x40);if(_0x141821){var _0x2fee6b=_0x5c490d[_0x3091af(0x1ca)](_0x141821);_0x2fee6b!==-0x1&&(_0x3931f5=_0x2fee6b);}return _0x7562b2(_0x5c490d,_0x3931f5,_0x12c93c);},'parse'),'_map':_0x44dc8e(0x288)};function _0x7562b2(_0x2b42e9,_0x529992,_0x264fb9){var _0x5ba6c3=_0x44dc8e;for(var _0x4f9551=[],_0x3a81cf=0x0,_0x4081fa=0x0;_0x4081fa<_0x529992;_0x4081fa++)if(_0x4081fa%0x4){var _0x8d4099=_0x264fb9[_0x2b42e9['charCodeAt'](_0x4081fa-0x1)]<<_0x4081fa%0x4*0x2,_0x4e5afa=_0x264fb9[_0x2b42e9[_0x5ba6c3(0x180)](_0x4081fa)]>>>0x6-_0x4081fa%0x4*0x2,_0x1c7978=_0x8d4099|_0x4e5afa;_0x4f9551[_0x3a81cf>>>0x2]|=_0x1c7978<<0x18-_0x3a81cf%0x4*0x8,_0x3a81cf++;}return _0x40aa41[_0x5ba6c3(0x472)](_0x4f9551,_0x3a81cf);}__name(_0x7562b2,'parseLoop');}()),_0x5064bf['enc']['Base64'];}));}(encBase64$1)),encBase64$1['exports'];}__name(requireEncBase64,_0xfa755a(0x2f7));var md5$1={'exports':{}},md5=md5$1['exports'],hasRequiredMd5;function requireMd5(){var _0x32a8dc=_0xfa755a;return hasRequiredMd5||(hasRequiredMd5=0x1,function(_0x45c9ef,_0x4899e1){(function(_0x440fb0,_0x48fb3a){_0x45c9ef['exports']=_0x48fb3a(requireCore());}(md5,function(_0x7317f6){var _0xfd583=_0x4f8b;return function(_0xed99c){var _0x10235d=_0x4f8b,_0x1eef4b=_0x7317f6,_0x2be68a=_0x1eef4b[_0x10235d(0x47b)],_0x34ce37=_0x2be68a[_0x10235d(0x331)],_0x417750=_0x2be68a[_0x10235d(0x34f)],_0x2e26fa=_0x1eef4b['algo'],_0x3eaec8=[];(function(){var _0x59522f=_0x10235d;for(var _0x55406f=0x0;_0x55406f<0x40;_0x55406f++)_0x3eaec8[_0x55406f]=_0xed99c[_0x59522f(0x2bc)](_0xed99c[_0x59522f(0x3e5)](_0x55406f+0x1))*0x100000000|0x0;}());var _0x62043b=_0x2e26fa[_0x10235d(0x256)]=_0x417750['extend']({'_doReset':__name(function(){var _0x5f187d=_0x10235d;this[_0x5f187d(0x1f9)]=new _0x34ce37['init']([0x67452301,0xefcdab89,0x98badcfe,0x10325476]);},_0x10235d(0x3ef)),'_doProcessBlock':__name(function(_0x41b7e2,_0x560c77){var _0xce45ae=_0x10235d;for(var _0x7efadb=0x0;_0x7efadb<0x10;_0x7efadb++){var _0x1f7ac8=_0x560c77+_0x7efadb,_0x6d40d9=_0x41b7e2[_0x1f7ac8];_0x41b7e2[_0x1f7ac8]=(_0x6d40d9<<0x8|_0x6d40d9>>>0x18)&0xff00ff|(_0x6d40d9<<0x18|_0x6d40d9>>>0x8)&0xff00ff00;}var _0x352f59=this[_0xce45ae(0x1f9)][_0xce45ae(0x3bc)],_0x1ec5ac=_0x41b7e2[_0x560c77+0x0],_0x4bf53f=_0x41b7e2[_0x560c77+0x1],_0x526212=_0x41b7e2[_0x560c77+0x2],_0x462c97=_0x41b7e2[_0x560c77+0x3],_0x48606e=_0x41b7e2[_0x560c77+0x4],_0x541ea4=_0x41b7e2[_0x560c77+0x5],_0x585706=_0x41b7e2[_0x560c77+0x6],_0x57e48b=_0x41b7e2[_0x560c77+0x7],_0x1c46f1=_0x41b7e2[_0x560c77+0x8],_0xb43f03=_0x41b7e2[_0x560c77+0x9],_0x5f0f84=_0x41b7e2[_0x560c77+0xa],_0x4e4624=_0x41b7e2[_0x560c77+0xb],_0x361045=_0x41b7e2[_0x560c77+0xc],_0x4dbbbb=_0x41b7e2[_0x560c77+0xd],_0x5c2bff=_0x41b7e2[_0x560c77+0xe],_0x18a7c6=_0x41b7e2[_0x560c77+0xf],_0x320d7e=_0x352f59[0x0],_0x1d32ab=_0x352f59[0x1],_0x4b47c9=_0x352f59[0x2],_0x41c9ff=_0x352f59[0x3];_0x320d7e=_0x52e6e4(_0x320d7e,_0x1d32ab,_0x4b47c9,_0x41c9ff,_0x1ec5ac,0x7,_0x3eaec8[0x0]),_0x41c9ff=_0x52e6e4(_0x41c9ff,_0x320d7e,_0x1d32ab,_0x4b47c9,_0x4bf53f,0xc,_0x3eaec8[0x1]),_0x4b47c9=_0x52e6e4(_0x4b47c9,_0x41c9ff,_0x320d7e,_0x1d32ab,_0x526212,0x11,_0x3eaec8[0x2]),_0x1d32ab=_0x52e6e4(_0x1d32ab,_0x4b47c9,_0x41c9ff,_0x320d7e,_0x462c97,0x16,_0x3eaec8[0x3]),_0x320d7e=_0x52e6e4(_0x320d7e,_0x1d32ab,_0x4b47c9,_0x41c9ff,_0x48606e,0x7,_0x3eaec8[0x4]),_0x41c9ff=_0x52e6e4(_0x41c9ff,_0x320d7e,_0x1d32ab,_0x4b47c9,_0x541ea4,0xc,_0x3eaec8[0x5]),_0x4b47c9=_0x52e6e4(_0x4b47c9,_0x41c9ff,_0x320d7e,_0x1d32ab,_0x585706,0x11,_0x3eaec8[0x6]),_0x1d32ab=_0x52e6e4(_0x1d32ab,_0x4b47c9,_0x41c9ff,_0x320d7e,_0x57e48b,0x16,_0x3eaec8[0x7]),_0x320d7e=_0x52e6e4(_0x320d7e,_0x1d32ab,_0x4b47c9,_0x41c9ff,_0x1c46f1,0x7,_0x3eaec8[0x8]),_0x41c9ff=_0x52e6e4(_0x41c9ff,_0x320d7e,_0x1d32ab,_0x4b47c9,_0xb43f03,0xc,_0x3eaec8[0x9]),_0x4b47c9=_0x52e6e4(_0x4b47c9,_0x41c9ff,_0x320d7e,_0x1d32ab,_0x5f0f84,0x11,_0x3eaec8[0xa]),_0x1d32ab=_0x52e6e4(_0x1d32ab,_0x4b47c9,_0x41c9ff,_0x320d7e,_0x4e4624,0x16,_0x3eaec8[0xb]),_0x320d7e=_0x52e6e4(_0x320d7e,_0x1d32ab,_0x4b47c9,_0x41c9ff,_0x361045,0x7,_0x3eaec8[0xc]),_0x41c9ff=_0x52e6e4(_0x41c9ff,_0x320d7e,_0x1d32ab,_0x4b47c9,_0x4dbbbb,0xc,_0x3eaec8[0xd]),_0x4b47c9=_0x52e6e4(_0x4b47c9,_0x41c9ff,_0x320d7e,_0x1d32ab,_0x5c2bff,0x11,_0x3eaec8[0xe]),_0x1d32ab=_0x52e6e4(_0x1d32ab,_0x4b47c9,_0x41c9ff,_0x320d7e,_0x18a7c6,0x16,_0x3eaec8[0xf]),_0x320d7e=_0x45c709(_0x320d7e,_0x1d32ab,_0x4b47c9,_0x41c9ff,_0x4bf53f,0x5,_0x3eaec8[0x10]),_0x41c9ff=_0x45c709(_0x41c9ff,_0x320d7e,_0x1d32ab,_0x4b47c9,_0x585706,0x9,_0x3eaec8[0x11]),_0x4b47c9=_0x45c709(_0x4b47c9,_0x41c9ff,_0x320d7e,_0x1d32ab,_0x4e4624,0xe,_0x3eaec8[0x12]),_0x1d32ab=_0x45c709(_0x1d32ab,_0x4b47c9,_0x41c9ff,_0x320d7e,_0x1ec5ac,0x14,_0x3eaec8[0x13]),_0x320d7e=_0x45c709(_0x320d7e,_0x1d32ab,_0x4b47c9,_0x41c9ff,_0x541ea4,0x5,_0x3eaec8[0x14]),_0x41c9ff=_0x45c709(_0x41c9ff,_0x320d7e,_0x1d32ab,_0x4b47c9,_0x5f0f84,0x9,_0x3eaec8[0x15]),_0x4b47c9=_0x45c709(_0x4b47c9,_0x41c9ff,_0x320d7e,_0x1d32ab,_0x18a7c6,0xe,_0x3eaec8[0x16]),_0x1d32ab=_0x45c709(_0x1d32ab,_0x4b47c9,_0x41c9ff,_0x320d7e,_0x48606e,0x14,_0x3eaec8[0x17]),_0x320d7e=_0x45c709(_0x320d7e,_0x1d32ab,_0x4b47c9,_0x41c9ff,_0xb43f03,0x5,_0x3eaec8[0x18]),_0x41c9ff=_0x45c709(_0x41c9ff,_0x320d7e,_0x1d32ab,_0x4b47c9,_0x5c2bff,0x9,_0x3eaec8[0x19]),_0x4b47c9=_0x45c709(_0x4b47c9,_0x41c9ff,_0x320d7e,_0x1d32ab,_0x462c97,0xe,_0x3eaec8[0x1a]),_0x1d32ab=_0x45c709(_0x1d32ab,_0x4b47c9,_0x41c9ff,_0x320d7e,_0x1c46f1,0x14,_0x3eaec8[0x1b]),_0x320d7e=_0x45c709(_0x320d7e,_0x1d32ab,_0x4b47c9,_0x41c9ff,_0x4dbbbb,0x5,_0x3eaec8[0x1c]),_0x41c9ff=_0x45c709(_0x41c9ff,_0x320d7e,_0x1d32ab,_0x4b47c9,_0x526212,0x9,_0x3eaec8[0x1d]),_0x4b47c9=_0x45c709(_0x4b47c9,_0x41c9ff,_0x320d7e,_0x1d32ab,_0x57e48b,0xe,_0x3eaec8[0x1e]),_0x1d32ab=_0x45c709(_0x1d32ab,_0x4b47c9,_0x41c9ff,_0x320d7e,_0x361045,0x14,_0x3eaec8[0x1f]),_0x320d7e=_0x2a41e3(_0x320d7e,_0x1d32ab,_0x4b47c9,_0x41c9ff,_0x541ea4,0x4,_0x3eaec8[0x20]),_0x41c9ff=_0x2a41e3(_0x41c9ff,_0x320d7e,_0x1d32ab,_0x4b47c9,_0x1c46f1,0xb,_0x3eaec8[0x21]),_0x4b47c9=_0x2a41e3(_0x4b47c9,_0x41c9ff,_0x320d7e,_0x1d32ab,_0x4e4624,0x10,_0x3eaec8[0x22]),_0x1d32ab=_0x2a41e3(_0x1d32ab,_0x4b47c9,_0x41c9ff,_0x320d7e,_0x5c2bff,0x17,_0x3eaec8[0x23]),_0x320d7e=_0x2a41e3(_0x320d7e,_0x1d32ab,_0x4b47c9,_0x41c9ff,_0x4bf53f,0x4,_0x3eaec8[0x24]),_0x41c9ff=_0x2a41e3(_0x41c9ff,_0x320d7e,_0x1d32ab,_0x4b47c9,_0x48606e,0xb,_0x3eaec8[0x25]),_0x4b47c9=_0x2a41e3(_0x4b47c9,_0x41c9ff,_0x320d7e,_0x1d32ab,_0x57e48b,0x10,_0x3eaec8[0x26]),_0x1d32ab=_0x2a41e3(_0x1d32ab,_0x4b47c9,_0x41c9ff,_0x320d7e,_0x5f0f84,0x17,_0x3eaec8[0x27]),_0x320d7e=_0x2a41e3(_0x320d7e,_0x1d32ab,_0x4b47c9,_0x41c9ff,_0x4dbbbb,0x4,_0x3eaec8[0x28]),_0x41c9ff=_0x2a41e3(_0x41c9ff,_0x320d7e,_0x1d32ab,_0x4b47c9,_0x1ec5ac,0xb,_0x3eaec8[0x29]),_0x4b47c9=_0x2a41e3(_0x4b47c9,_0x41c9ff,_0x320d7e,_0x1d32ab,_0x462c97,0x10,_0x3eaec8[0x2a]),_0x1d32ab=_0x2a41e3(_0x1d32ab,_0x4b47c9,_0x41c9ff,_0x320d7e,_0x585706,0x17,_0x3eaec8[0x2b]),_0x320d7e=_0x2a41e3(_0x320d7e,_0x1d32ab,_0x4b47c9,_0x41c9ff,_0xb43f03,0x4,_0x3eaec8[0x2c]),_0x41c9ff=_0x2a41e3(_0x41c9ff,_0x320d7e,_0x1d32ab,_0x4b47c9,_0x361045,0xb,_0x3eaec8[0x2d]),_0x4b47c9=_0x2a41e3(_0x4b47c9,_0x41c9ff,_0x320d7e,_0x1d32ab,_0x18a7c6,0x10,_0x3eaec8[0x2e]),_0x1d32ab=_0x2a41e3(_0x1d32ab,_0x4b47c9,_0x41c9ff,_0x320d7e,_0x526212,0x17,_0x3eaec8[0x2f]),_0x320d7e=_0x3d2eb9(_0x320d7e,_0x1d32ab,_0x4b47c9,_0x41c9ff,_0x1ec5ac,0x6,_0x3eaec8[0x30]),_0x41c9ff=_0x3d2eb9(_0x41c9ff,_0x320d7e,_0x1d32ab,_0x4b47c9,_0x57e48b,0xa,_0x3eaec8[0x31]),_0x4b47c9=_0x3d2eb9(_0x4b47c9,_0x41c9ff,_0x320d7e,_0x1d32ab,_0x5c2bff,0xf,_0x3eaec8[0x32]),_0x1d32ab=_0x3d2eb9(_0x1d32ab,_0x4b47c9,_0x41c9ff,_0x320d7e,_0x541ea4,0x15,_0x3eaec8[0x33]),_0x320d7e=_0x3d2eb9(_0x320d7e,_0x1d32ab,_0x4b47c9,_0x41c9ff,_0x361045,0x6,_0x3eaec8[0x34]),_0x41c9ff=_0x3d2eb9(_0x41c9ff,_0x320d7e,_0x1d32ab,_0x4b47c9,_0x462c97,0xa,_0x3eaec8[0x35]),_0x4b47c9=_0x3d2eb9(_0x4b47c9,_0x41c9ff,_0x320d7e,_0x1d32ab,_0x5f0f84,0xf,_0x3eaec8[0x36]),_0x1d32ab=_0x3d2eb9(_0x1d32ab,_0x4b47c9,_0x41c9ff,_0x320d7e,_0x4bf53f,0x15,_0x3eaec8[0x37]),_0x320d7e=_0x3d2eb9(_0x320d7e,_0x1d32ab,_0x4b47c9,_0x41c9ff,_0x1c46f1,0x6,_0x3eaec8[0x38]),_0x41c9ff=_0x3d2eb9(_0x41c9ff,_0x320d7e,_0x1d32ab,_0x4b47c9,_0x18a7c6,0xa,_0x3eaec8[0x39]),_0x4b47c9=_0x3d2eb9(_0x4b47c9,_0x41c9ff,_0x320d7e,_0x1d32ab,_0x585706,0xf,_0x3eaec8[0x3a]),_0x1d32ab=_0x3d2eb9(_0x1d32ab,_0x4b47c9,_0x41c9ff,_0x320d7e,_0x4dbbbb,0x15,_0x3eaec8[0x3b]),_0x320d7e=_0x3d2eb9(_0x320d7e,_0x1d32ab,_0x4b47c9,_0x41c9ff,_0x48606e,0x6,_0x3eaec8[0x3c]),_0x41c9ff=_0x3d2eb9(_0x41c9ff,_0x320d7e,_0x1d32ab,_0x4b47c9,_0x4e4624,0xa,_0x3eaec8[0x3d]),_0x4b47c9=_0x3d2eb9(_0x4b47c9,_0x41c9ff,_0x320d7e,_0x1d32ab,_0x526212,0xf,_0x3eaec8[0x3e]),_0x1d32ab=_0x3d2eb9(_0x1d32ab,_0x4b47c9,_0x41c9ff,_0x320d7e,_0xb43f03,0x15,_0x3eaec8[0x3f]),_0x352f59[0x0]=_0x352f59[0x0]+_0x320d7e|0x0,_0x352f59[0x1]=_0x352f59[0x1]+_0x1d32ab|0x0,_0x352f59[0x2]=_0x352f59[0x2]+_0x4b47c9|0x0,_0x352f59[0x3]=_0x352f59[0x3]+_0x41c9ff|0x0;},_0x10235d(0x442)),'_doFinalize':__name(function(){var _0xd6f51f=_0x10235d,_0x1f6a6b=this[_0xd6f51f(0x370)],_0x3604b1=_0x1f6a6b['words'],_0x2c5d4e=this[_0xd6f51f(0x435)]*0x8,_0x109921=_0x1f6a6b[_0xd6f51f(0x3f8)]*0x8;_0x3604b1[_0x109921>>>0x5]|=0x80<<0x18-_0x109921%0x20;var _0xa1601=_0xed99c['floor'](_0x2c5d4e/0x100000000),_0x242ab0=_0x2c5d4e;_0x3604b1[(_0x109921+0x40>>>0x9<<0x4)+0xf]=(_0xa1601<<0x8|_0xa1601>>>0x18)&0xff00ff|(_0xa1601<<0x18|_0xa1601>>>0x8)&0xff00ff00,_0x3604b1[(_0x109921+0x40>>>0x9<<0x4)+0xe]=(_0x242ab0<<0x8|_0x242ab0>>>0x18)&0xff00ff|(_0x242ab0<<0x18|_0x242ab0>>>0x8)&0xff00ff00,_0x1f6a6b[_0xd6f51f(0x3f8)]=(_0x3604b1[_0xd6f51f(0x2d2)]+0x1)*0x4,this[_0xd6f51f(0x209)]();for(var _0x276b97=this[_0xd6f51f(0x1f9)],_0x4d9971=_0x276b97[_0xd6f51f(0x3bc)],_0x1cdfb5=0x0;_0x1cdfb5<0x4;_0x1cdfb5++){var _0x573453=_0x4d9971[_0x1cdfb5];_0x4d9971[_0x1cdfb5]=(_0x573453<<0x8|_0x573453>>>0x18)&0xff00ff|(_0x573453<<0x18|_0x573453>>>0x8)&0xff00ff00;}return _0x276b97;},_0x10235d(0x2ba)),'clone':__name(function(){var _0x21054e=_0x10235d,_0x5ba843=_0x417750['clone'][_0x21054e(0x294)](this);return _0x5ba843[_0x21054e(0x1f9)]=this[_0x21054e(0x1f9)][_0x21054e(0x4ad)](),_0x5ba843;},_0x10235d(0x4ad))});function _0x52e6e4(_0xd76535,_0x1d591a,_0x240222,_0x386c8a,_0x194cb9,_0x19a285,_0x37beb9){var _0x4ecdf=_0xd76535+(_0x1d591a&_0x240222|~_0x1d591a&_0x386c8a)+_0x194cb9+_0x37beb9;return(_0x4ecdf<<_0x19a285|_0x4ecdf>>>0x20-_0x19a285)+_0x1d591a;}__name(_0x52e6e4,'FF');function _0x45c709(_0xd2d973,_0x592182,_0x213b68,_0x2ea3c8,_0x380268,_0x1b6f0e,_0x10c1d3){var _0x582b23=_0xd2d973+(_0x592182&_0x2ea3c8|_0x213b68&~_0x2ea3c8)+_0x380268+_0x10c1d3;return(_0x582b23<<_0x1b6f0e|_0x582b23>>>0x20-_0x1b6f0e)+_0x592182;}__name(_0x45c709,'GG');function _0x2a41e3(_0x863b99,_0x2e0486,_0x228907,_0x3ff84e,_0x5ab467,_0x3d3bf8,_0x4eeab6){var _0x57cfd3=_0x863b99+(_0x2e0486^_0x228907^_0x3ff84e)+_0x5ab467+_0x4eeab6;return(_0x57cfd3<<_0x3d3bf8|_0x57cfd3>>>0x20-_0x3d3bf8)+_0x2e0486;}__name(_0x2a41e3,'HH');function _0x3d2eb9(_0x5731d5,_0x3ad331,_0x4206e4,_0x5e2758,_0x34adbe,_0x49199d,_0x3efce4){var _0x31ea0c=_0x5731d5+(_0x4206e4^(_0x3ad331|~_0x5e2758))+_0x34adbe+_0x3efce4;return(_0x31ea0c<<_0x49199d|_0x31ea0c>>>0x20-_0x49199d)+_0x3ad331;}__name(_0x3d2eb9,'II'),_0x1eef4b[_0x10235d(0x256)]=_0x417750['_createHelper'](_0x62043b),_0x1eef4b[_0x10235d(0x479)]=_0x417750[_0x10235d(0x41f)](_0x62043b);}(Math),_0x7317f6[_0xfd583(0x256)];}));}(md5$1)),md5$1[_0x32a8dc(0x2fb)];}__name(requireMd5,_0xfa755a(0x17d));var evpkdf$1={'exports':{}},sha1$1={'exports':{}},sha1=sha1$1[_0xfa755a(0x2fb)],hasRequiredSha1;function requireSha1(){var _0x4e7b8a=_0xfa755a;return hasRequiredSha1||(hasRequiredSha1=0x1,function(_0x4d3b92,_0x35a541){(function(_0x1d07e3,_0x39b028){var _0x2c4f26=_0x4f8b;_0x4d3b92[_0x2c4f26(0x2fb)]=_0x39b028(requireCore());}(sha1,function(_0x4c891a){var _0x112306=_0x4f8b;return(function(){var _0x1e6d60=_0x4f8b,_0x2bf34b=_0x4c891a,_0x4f496c=_0x2bf34b[_0x1e6d60(0x47b)],_0x3235bc=_0x4f496c[_0x1e6d60(0x331)],_0x3c6cea=_0x4f496c[_0x1e6d60(0x34f)],_0x4efdcd=_0x2bf34b['algo'],_0x4f226a=[],_0x67d179=_0x4efdcd[_0x1e6d60(0x1c0)]=_0x3c6cea[_0x1e6d60(0x2e8)]({'_doReset':__name(function(){var _0x473714=_0x1e6d60;this['_hash']=new _0x3235bc[(_0x473714(0x430))]([0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0]);},_0x1e6d60(0x3ef)),'_doProcessBlock':__name(function(_0x4a041d,_0x3547af){var _0x515990=_0x1e6d60;for(var _0x17e86f=this[_0x515990(0x1f9)]['words'],_0x4f0831=_0x17e86f[0x0],_0xd178e9=_0x17e86f[0x1],_0x30a000=_0x17e86f[0x2],_0x521206=_0x17e86f[0x3],_0x53cbb0=_0x17e86f[0x4],_0x4bb9e2=0x0;_0x4bb9e2<0x50;_0x4bb9e2++){if(_0x4bb9e2<0x10)_0x4f226a[_0x4bb9e2]=_0x4a041d[_0x3547af+_0x4bb9e2]|0x0;else{var _0x236ead=_0x4f226a[_0x4bb9e2-0x3]^_0x4f226a[_0x4bb9e2-0x8]^_0x4f226a[_0x4bb9e2-0xe]^_0x4f226a[_0x4bb9e2-0x10];_0x4f226a[_0x4bb9e2]=_0x236ead<<0x1|_0x236ead>>>0x1f;}var _0x3f389c=(_0x4f0831<<0x5|_0x4f0831>>>0x1b)+_0x53cbb0+_0x4f226a[_0x4bb9e2];_0x4bb9e2<0x14?_0x3f389c+=(_0xd178e9&_0x30a000|~_0xd178e9&_0x521206)+0x5a827999:_0x4bb9e2<0x28?_0x3f389c+=(_0xd178e9^_0x30a000^_0x521206)+0x6ed9eba1:_0x4bb9e2<0x3c?_0x3f389c+=(_0xd178e9&_0x30a000|_0xd178e9&_0x521206|_0x30a000&_0x521206)-0x70e44324:_0x3f389c+=(_0xd178e9^_0x30a000^_0x521206)-0x359d3e2a,_0x53cbb0=_0x521206,_0x521206=_0x30a000,_0x30a000=_0xd178e9<<0x1e|_0xd178e9>>>0x2,_0xd178e9=_0x4f0831,_0x4f0831=_0x3f389c;}_0x17e86f[0x0]=_0x17e86f[0x0]+_0x4f0831|0x0,_0x17e86f[0x1]=_0x17e86f[0x1]+_0xd178e9|0x0,_0x17e86f[0x2]=_0x17e86f[0x2]+_0x30a000|0x0,_0x17e86f[0x3]=_0x17e86f[0x3]+_0x521206|0x0,_0x17e86f[0x4]=_0x17e86f[0x4]+_0x53cbb0|0x0;},'_doProcessBlock'),'_doFinalize':__name(function(){var _0x266a9a=_0x1e6d60,_0x6adefa=this[_0x266a9a(0x370)],_0x1baa93=_0x6adefa[_0x266a9a(0x3bc)],_0x37d8d2=this[_0x266a9a(0x435)]*0x8,_0x47fe45=_0x6adefa[_0x266a9a(0x3f8)]*0x8;return _0x1baa93[_0x47fe45>>>0x5]|=0x80<<0x18-_0x47fe45%0x20,_0x1baa93[(_0x47fe45+0x40>>>0x9<<0x4)+0xe]=Math[_0x266a9a(0x4aa)](_0x37d8d2/0x100000000),_0x1baa93[(_0x47fe45+0x40>>>0x9<<0x4)+0xf]=_0x37d8d2,_0x6adefa[_0x266a9a(0x3f8)]=_0x1baa93[_0x266a9a(0x2d2)]*0x4,this[_0x266a9a(0x209)](),this[_0x266a9a(0x1f9)];},'_doFinalize'),'clone':__name(function(){var _0x4eda5d=_0x1e6d60,_0x4e64dc=_0x3c6cea[_0x4eda5d(0x4ad)][_0x4eda5d(0x294)](this);return _0x4e64dc[_0x4eda5d(0x1f9)]=this[_0x4eda5d(0x1f9)][_0x4eda5d(0x4ad)](),_0x4e64dc;},_0x1e6d60(0x4ad))});_0x2bf34b[_0x1e6d60(0x1c0)]=_0x3c6cea[_0x1e6d60(0x3e1)](_0x67d179),_0x2bf34b['HmacSHA1']=_0x3c6cea[_0x1e6d60(0x41f)](_0x67d179);}()),_0x4c891a[_0x112306(0x1c0)];}));}(sha1$1)),sha1$1[_0x4e7b8a(0x2fb)];}__name(requireSha1,'requireSha1');var hmac$1={'exports':{}},hmac=hmac$1[_0xfa755a(0x2fb)],hasRequiredHmac;function requireHmac(){return hasRequiredHmac||(hasRequiredHmac=0x1,function(_0x216ffa,_0x4f39c3){(function(_0x112a2e,_0x21b021){var _0x28b7c2=_0x4f8b;_0x216ffa[_0x28b7c2(0x2fb)]=_0x21b021(requireCore());}(hmac,function(_0xbc6ffe){(function(){var _0x3a4575=_0x4f8b,_0x134f6e=_0xbc6ffe,_0x4a3cc1=_0x134f6e['lib'],_0x5d019a=_0x4a3cc1['Base'],_0x5869d0=_0x134f6e['enc'],_0x567715=_0x5869d0[_0x3a4575(0x210)],_0x5cd0ca=_0x134f6e[_0x3a4575(0x1d4)];_0x5cd0ca[_0x3a4575(0x257)]=_0x5d019a[_0x3a4575(0x2e8)]({'init':__name(function(_0x46c630,_0x5cf126){var _0xf81ba6=_0x3a4575;_0x46c630=this[_0xf81ba6(0x345)]=new _0x46c630[(_0xf81ba6(0x430))](),typeof _0x5cf126=='string'&&(_0x5cf126=_0x567715['parse'](_0x5cf126));var _0x5007a8=_0x46c630[_0xf81ba6(0x228)],_0x389494=_0x5007a8*0x4;_0x5cf126[_0xf81ba6(0x3f8)]>_0x389494&&(_0x5cf126=_0x46c630[_0xf81ba6(0x292)](_0x5cf126)),_0x5cf126[_0xf81ba6(0x401)]();for(var _0x4e7286=this['_oKey']=_0x5cf126['clone'](),_0x5c329f=this[_0xf81ba6(0x293)]=_0x5cf126[_0xf81ba6(0x4ad)](),_0x5b5163=_0x4e7286['words'],_0x243349=_0x5c329f[_0xf81ba6(0x3bc)],_0x23287e=0x0;_0x23287e<_0x5007a8;_0x23287e++)_0x5b5163[_0x23287e]^=0x5c5c5c5c,_0x243349[_0x23287e]^=0x36363636;_0x4e7286[_0xf81ba6(0x3f8)]=_0x5c329f[_0xf81ba6(0x3f8)]=_0x389494,this['reset']();},_0x3a4575(0x430)),'reset':__name(function(){var _0x19d0a6=_0x3a4575,_0x3aa281=this[_0x19d0a6(0x345)];_0x3aa281['reset'](),_0x3aa281[_0x19d0a6(0x39f)](this[_0x19d0a6(0x293)]);},'reset'),'update':__name(function(_0x1b2326){var _0x1befbb=_0x3a4575;return this[_0x1befbb(0x345)][_0x1befbb(0x39f)](_0x1b2326),this;},_0x3a4575(0x39f)),'finalize':__name(function(_0x62f000){var _0x202948=_0x3a4575,_0x4a665d=this[_0x202948(0x345)],_0x31cb68=_0x4a665d[_0x202948(0x292)](_0x62f000);_0x4a665d['reset']();var _0x56ef51=_0x4a665d['finalize'](this[_0x202948(0x240)][_0x202948(0x4ad)]()[_0x202948(0x3e9)](_0x31cb68));return _0x56ef51;},_0x3a4575(0x292))});}());}));}(hmac$1)),hmac$1['exports'];}__name(requireHmac,'requireHmac');var evpkdf=evpkdf$1[_0xfa755a(0x2fb)],hasRequiredEvpkdf;function requireEvpkdf(){var _0x114394=_0xfa755a;return hasRequiredEvpkdf||(hasRequiredEvpkdf=0x1,function(_0x103440,_0x209fce){(function(_0x5ad5cd,_0x53b937,_0x4f34a7){var _0x1eb0c2=_0x4f8b;_0x103440[_0x1eb0c2(0x2fb)]=_0x53b937(requireCore(),requireSha1(),requireHmac());}(evpkdf,function(_0x57673e){var _0x91c69d=_0x4f8b;return(function(){var _0xc5e3b3=_0x4f8b,_0x51c279=_0x57673e,_0x4c4a7c=_0x51c279[_0xc5e3b3(0x47b)],_0x283267=_0x4c4a7c[_0xc5e3b3(0x2ea)],_0x2f074a=_0x4c4a7c[_0xc5e3b3(0x331)],_0x180ee5=_0x51c279[_0xc5e3b3(0x1d4)],_0x405ced=_0x180ee5[_0xc5e3b3(0x256)],_0x482337=_0x180ee5[_0xc5e3b3(0x499)]=_0x283267[_0xc5e3b3(0x2e8)]({'cfg':_0x283267['extend']({'keySize':0x80/0x20,'hasher':_0x405ced,'iterations':0x1}),'init':__name(function(_0x14fa3b){var _0x116d0a=_0xc5e3b3;this[_0x116d0a(0x189)]=this[_0x116d0a(0x189)]['extend'](_0x14fa3b);},_0xc5e3b3(0x430)),'compute':__name(function(_0x47089e,_0x4cb2de){var _0x2000b0=_0xc5e3b3;for(var _0x1019a4,_0x366ecd=this[_0x2000b0(0x189)],_0x15bb8d=_0x366ecd[_0x2000b0(0x342)][_0x2000b0(0x472)](),_0x52d354=_0x2f074a[_0x2000b0(0x472)](),_0x4eb4e1=_0x52d354[_0x2000b0(0x3bc)],_0x2b2c2f=_0x366ecd[_0x2000b0(0x3da)],_0xec5fe5=_0x366ecd[_0x2000b0(0x3a5)];_0x4eb4e1[_0x2000b0(0x2d2)]<_0x2b2c2f;){_0x1019a4&&_0x15bb8d[_0x2000b0(0x39f)](_0x1019a4),_0x1019a4=_0x15bb8d['update'](_0x47089e)['finalize'](_0x4cb2de),_0x15bb8d[_0x2000b0(0x3df)]();for(var _0x4db9c4=0x1;_0x4db9c4<_0xec5fe5;_0x4db9c4++)_0x1019a4=_0x15bb8d[_0x2000b0(0x292)](_0x1019a4),_0x15bb8d[_0x2000b0(0x3df)]();_0x52d354[_0x2000b0(0x3e9)](_0x1019a4);}return _0x52d354[_0x2000b0(0x3f8)]=_0x2b2c2f*0x4,_0x52d354;},'compute')});_0x51c279[_0xc5e3b3(0x499)]=function(_0x3c8cff,_0x200a7d,_0x323234){var _0xce409b=_0xc5e3b3;return _0x482337[_0xce409b(0x472)](_0x323234)[_0xce409b(0x35e)](_0x3c8cff,_0x200a7d);};}()),_0x57673e[_0x91c69d(0x499)];}));}(evpkdf$1)),evpkdf$1[_0x114394(0x2fb)];}__name(requireEvpkdf,_0xfa755a(0x1e1));var cipherCore$1={'exports':{}},cipherCore=cipherCore$1[_0xfa755a(0x2fb)],hasRequiredCipherCore;function requireCipherCore(){var _0x2ea473=_0xfa755a;return hasRequiredCipherCore||(hasRequiredCipherCore=0x1,function(_0x454eec,_0x54acd6){(function(_0x9600db,_0x526a6e,_0xf7cff2){var _0x1a64ac=_0x4f8b;_0x454eec[_0x1a64ac(0x2fb)]=_0x526a6e(requireCore(),requireEvpkdf());}(cipherCore,function(_0x2ca58d){var _0x54e1f6=_0x4f8b;_0x2ca58d[_0x54e1f6(0x47b)][_0x54e1f6(0x341)]||function(_0x6422f3){var _0xf7ead0=_0x54e1f6,_0x11a3cb=_0x2ca58d,_0x35aa7d=_0x11a3cb[_0xf7ead0(0x47b)],_0x4b4e35=_0x35aa7d[_0xf7ead0(0x2ea)],_0x33ed8c=_0x35aa7d['WordArray'],_0x5ae082=_0x35aa7d[_0xf7ead0(0x337)],_0x34af90=_0x11a3cb[_0xf7ead0(0x3cd)];_0x34af90[_0xf7ead0(0x210)];var _0x150e46=_0x34af90['Base64'],_0x25bbc9=_0x11a3cb['algo'],_0x50465f=_0x25bbc9[_0xf7ead0(0x499)],_0x411506=_0x35aa7d[_0xf7ead0(0x341)]=_0x5ae082[_0xf7ead0(0x2e8)]({'cfg':_0x4b4e35['extend'](),'createEncryptor':__name(function(_0xcc7a18,_0x3ca7eb){var _0x4f3f9e=_0xf7ead0;return this[_0x4f3f9e(0x472)](this['_ENC_XFORM_MODE'],_0xcc7a18,_0x3ca7eb);},_0xf7ead0(0x303)),'createDecryptor':__name(function(_0x128e55,_0x511a4b){var _0x4f3e79=_0xf7ead0;return this[_0x4f3e79(0x472)](this['_DEC_XFORM_MODE'],_0x128e55,_0x511a4b);},_0xf7ead0(0x2ae)),'init':__name(function(_0x12510f,_0x34b518,_0x12fb76){var _0x18f982=_0xf7ead0;this[_0x18f982(0x189)]=this[_0x18f982(0x189)][_0x18f982(0x2e8)](_0x12fb76),this[_0x18f982(0x3ff)]=_0x12510f,this[_0x18f982(0x2e5)]=_0x34b518,this[_0x18f982(0x3df)]();},_0xf7ead0(0x430)),'reset':__name(function(){var _0x320f85=_0xf7ead0;_0x5ae082[_0x320f85(0x3df)]['call'](this),this[_0x320f85(0x3ef)]();},_0xf7ead0(0x3df)),'process':__name(function(_0x55664){var _0x380559=_0xf7ead0;return this['_append'](_0x55664),this[_0x380559(0x209)]();},_0xf7ead0(0x1f5)),'finalize':__name(function(_0x183c19){var _0x2f5ef2=_0xf7ead0;_0x183c19&&this[_0x2f5ef2(0x477)](_0x183c19);var _0x42681e=this[_0x2f5ef2(0x2ba)]();return _0x42681e;},_0xf7ead0(0x292)),'keySize':0x80/0x20,'ivSize':0x80/0x20,'_ENC_XFORM_MODE':0x1,'_DEC_XFORM_MODE':0x2,'_createHelper':(function(){function _0x5436d7(_0x85617){var _0x157f30=_0x4f8b;return typeof _0x85617==_0x157f30(0x201)?_0x11098c:_0x65b98c;}return __name(_0x5436d7,'selectCipherStrategy'),function(_0x1339c0){var _0xf6a4fe=_0x4f8b;return{'encrypt':__name(function(_0x31c85c,_0x26502c,_0x13db35){var _0x11a879=_0x4f8b;return _0x5436d7(_0x26502c)[_0x11a879(0x27a)](_0x1339c0,_0x31c85c,_0x26502c,_0x13db35);},_0xf6a4fe(0x27a)),'decrypt':__name(function(_0x196852,_0x47b17e,_0x32a9d2){return _0x5436d7(_0x47b17e)['decrypt'](_0x1339c0,_0x196852,_0x47b17e,_0x32a9d2);},_0xf6a4fe(0x47e))};};}())});_0x35aa7d['StreamCipher']=_0x411506[_0xf7ead0(0x2e8)]({'_doFinalize':__name(function(){var _0x3e0475=_0xf7ead0,_0x2c8800=this[_0x3e0475(0x209)](!0x0);return _0x2c8800;},_0xf7ead0(0x2ba)),'blockSize':0x1});var _0x11bb8c=_0x11a3cb['mode']={},_0x2107b2=_0x35aa7d[_0xf7ead0(0x197)]=_0x4b4e35[_0xf7ead0(0x2e8)]({'createEncryptor':__name(function(_0xf8705a,_0x31c776){var _0x40b1e1=_0xf7ead0;return this[_0x40b1e1(0x2fa)][_0x40b1e1(0x472)](_0xf8705a,_0x31c776);},_0xf7ead0(0x303)),'createDecryptor':__name(function(_0x189818,_0x2312f1){var _0x35f61e=_0xf7ead0;return this[_0x35f61e(0x4b6)]['create'](_0x189818,_0x2312f1);},_0xf7ead0(0x2ae)),'init':__name(function(_0x2c0621,_0x4b4e1d){var _0x53cd39=_0xf7ead0;this['_cipher']=_0x2c0621,this[_0x53cd39(0x17f)]=_0x4b4e1d;},_0xf7ead0(0x430))}),_0x2adf33=_0x11bb8c[_0xf7ead0(0x2e0)]=(function(){var _0x1f59bb=_0xf7ead0,_0x325438=_0x2107b2['extend']();_0x325438['Encryptor']=_0x325438[_0x1f59bb(0x2e8)]({'processBlock':__name(function(_0x21bf1c,_0xc0c5cd){var _0x5a7045=_0x1f59bb,_0x3af649=this[_0x5a7045(0x3e0)],_0x3b1e64=_0x3af649['blockSize'];_0x591c54['call'](this,_0x21bf1c,_0xc0c5cd,_0x3b1e64),_0x3af649['encryptBlock'](_0x21bf1c,_0xc0c5cd),this[_0x5a7045(0x2bd)]=_0x21bf1c['slice'](_0xc0c5cd,_0xc0c5cd+_0x3b1e64);},_0x1f59bb(0x496))}),_0x325438['Decryptor']=_0x325438['extend']({'processBlock':__name(function(_0xef426f,_0x11476b){var _0x473bad=_0x1f59bb,_0x256824=this[_0x473bad(0x3e0)],_0x33dfc8=_0x256824[_0x473bad(0x228)],_0x147ee1=_0xef426f[_0x473bad(0x3a8)](_0x11476b,_0x11476b+_0x33dfc8);_0x256824['decryptBlock'](_0xef426f,_0x11476b),_0x591c54['call'](this,_0xef426f,_0x11476b,_0x33dfc8),this[_0x473bad(0x2bd)]=_0x147ee1;},_0x1f59bb(0x496))});function _0x591c54(_0x415857,_0x58b0d4,_0x2a7262){var _0x2b3cb0=_0x1f59bb,_0x528f9f,_0x4438a9=this[_0x2b3cb0(0x17f)];_0x4438a9?(_0x528f9f=_0x4438a9,this['_iv']=_0x6422f3):_0x528f9f=this[_0x2b3cb0(0x2bd)];for(var _0x339ea5=0x0;_0x339ea5<_0x2a7262;_0x339ea5++)_0x415857[_0x58b0d4+_0x339ea5]^=_0x528f9f[_0x339ea5];}return __name(_0x591c54,_0x1f59bb(0x30d)),_0x325438;}()),_0x38f305=_0x11a3cb[_0xf7ead0(0x356)]={},_0xd06176=_0x38f305[_0xf7ead0(0x35b)]={'pad':__name(function(_0x2b4be4,_0x5e4500){var _0x16f8de=_0xf7ead0;for(var _0x34bdee=_0x5e4500*0x4,_0x4941a2=_0x34bdee-_0x2b4be4[_0x16f8de(0x3f8)]%_0x34bdee,_0x5aa15e=_0x4941a2<<0x18|_0x4941a2<<0x10|_0x4941a2<<0x8|_0x4941a2,_0x2ffbbd=[],_0x1725d9=0x0;_0x1725d9<_0x4941a2;_0x1725d9+=0x4)_0x2ffbbd[_0x16f8de(0x38d)](_0x5aa15e);var _0x18e6c7=_0x33ed8c[_0x16f8de(0x472)](_0x2ffbbd,_0x4941a2);_0x2b4be4['concat'](_0x18e6c7);},_0xf7ead0(0x356)),'unpad':__name(function(_0x38d0e0){var _0x5384c7=_0xf7ead0,_0x12b5f5=_0x38d0e0[_0x5384c7(0x3bc)][_0x38d0e0[_0x5384c7(0x3f8)]-0x1>>>0x2]&0xff;_0x38d0e0[_0x5384c7(0x3f8)]-=_0x12b5f5;},'unpad')};_0x35aa7d[_0xf7ead0(0x495)]=_0x411506[_0xf7ead0(0x2e8)]({'cfg':_0x411506[_0xf7ead0(0x189)]['extend']({'mode':_0x2adf33,'padding':_0xd06176}),'reset':__name(function(){var _0x479de5=_0xf7ead0,_0xddcf26;_0x411506['reset'][_0x479de5(0x294)](this);var _0x87640d=this[_0x479de5(0x189)],_0x26702f=_0x87640d['iv'],_0x49ef75=_0x87640d[_0x479de5(0x1a2)];this['_xformMode']==this[_0x479de5(0x19b)]?_0xddcf26=_0x49ef75['createEncryptor']:(_0xddcf26=_0x49ef75[_0x479de5(0x2ae)],this[_0x479de5(0x3dd)]=0x1),this['_mode']&&this[_0x479de5(0x2f3)][_0x479de5(0x31a)]==_0xddcf26?this[_0x479de5(0x2f3)][_0x479de5(0x430)](this,_0x26702f&&_0x26702f[_0x479de5(0x3bc)]):(this[_0x479de5(0x2f3)]=_0xddcf26[_0x479de5(0x294)](_0x49ef75,this,_0x26702f&&_0x26702f[_0x479de5(0x3bc)]),this['_mode'][_0x479de5(0x31a)]=_0xddcf26);},_0xf7ead0(0x3df)),'_doProcessBlock':__name(function(_0x45d275,_0x2f8020){var _0x16d67f=_0xf7ead0;this[_0x16d67f(0x2f3)][_0x16d67f(0x496)](_0x45d275,_0x2f8020);},_0xf7ead0(0x442)),'_doFinalize':__name(function(){var _0x2d0985=_0xf7ead0,_0x4beefa,_0x1e27a2=this[_0x2d0985(0x189)]['padding'];return this[_0x2d0985(0x3ff)]==this[_0x2d0985(0x19b)]?(_0x1e27a2['pad'](this[_0x2d0985(0x370)],this[_0x2d0985(0x228)]),_0x4beefa=this[_0x2d0985(0x209)](!0x0)):(_0x4beefa=this['_process'](!0x0),_0x1e27a2['unpad'](_0x4beefa)),_0x4beefa;},_0xf7ead0(0x2ba)),'blockSize':0x80/0x20});var _0x5ba71d=_0x35aa7d['CipherParams']=_0x4b4e35[_0xf7ead0(0x2e8)]({'init':__name(function(_0xb61dc3){this['mixIn'](_0xb61dc3);},'init'),'toString':__name(function(_0x52646b){var _0x10b7fa=_0xf7ead0;return(_0x52646b||this[_0x10b7fa(0x284)])[_0x10b7fa(0x39d)](this);},_0xf7ead0(0x204))}),_0x2aaeb5=_0x11a3cb[_0xf7ead0(0x357)]={},_0x3a73fc=_0x2aaeb5[_0xf7ead0(0x26e)]={'stringify':__name(function(_0x51fe58){var _0x337c05=_0xf7ead0,_0x194b68,_0x2069e3=_0x51fe58[_0x337c05(0x4c3)],_0xb46fe4=_0x51fe58[_0x337c05(0x35c)];return _0xb46fe4?_0x194b68=_0x33ed8c[_0x337c05(0x472)]([0x53616c74,0x65645f5f])[_0x337c05(0x3e9)](_0xb46fe4)[_0x337c05(0x3e9)](_0x2069e3):_0x194b68=_0x2069e3,_0x194b68[_0x337c05(0x204)](_0x150e46);},_0xf7ead0(0x39d)),'parse':__name(function(_0x4ff317){var _0x3c59f0=_0xf7ead0,_0x33be92,_0x50e559=_0x150e46[_0x3c59f0(0x410)](_0x4ff317),_0x442d9e=_0x50e559[_0x3c59f0(0x3bc)];return _0x442d9e[0x0]==0x53616c74&&_0x442d9e[0x1]==0x65645f5f&&(_0x33be92=_0x33ed8c[_0x3c59f0(0x472)](_0x442d9e['slice'](0x2,0x4)),_0x442d9e[_0x3c59f0(0x3f1)](0x0,0x4),_0x50e559['sigBytes']-=0x10),_0x5ba71d[_0x3c59f0(0x472)]({'ciphertext':_0x50e559,'salt':_0x33be92});},'parse')},_0x65b98c=_0x35aa7d['SerializableCipher']=_0x4b4e35[_0xf7ead0(0x2e8)]({'cfg':_0x4b4e35[_0xf7ead0(0x2e8)]({'format':_0x3a73fc}),'encrypt':__name(function(_0x197e6d,_0x1f7fd7,_0x50caff,_0xfcfd68){var _0x1d6b2b=_0xf7ead0;_0xfcfd68=this[_0x1d6b2b(0x189)]['extend'](_0xfcfd68);var _0x9b7b17=_0x197e6d['createEncryptor'](_0x50caff,_0xfcfd68),_0x1af6f5=_0x9b7b17[_0x1d6b2b(0x292)](_0x1f7fd7),_0x4a45ee=_0x9b7b17['cfg'];return _0x5ba71d[_0x1d6b2b(0x472)]({'ciphertext':_0x1af6f5,'key':_0x50caff,'iv':_0x4a45ee['iv'],'algorithm':_0x197e6d,'mode':_0x4a45ee[_0x1d6b2b(0x1a2)],'padding':_0x4a45ee[_0x1d6b2b(0x20d)],'blockSize':_0x197e6d['blockSize'],'formatter':_0xfcfd68[_0x1d6b2b(0x357)]});},_0xf7ead0(0x27a)),'decrypt':__name(function(_0x4de19c,_0x1d9242,_0x44da75,_0x384b8d){var _0x1057fa=_0xf7ead0;_0x384b8d=this['cfg'][_0x1057fa(0x2e8)](_0x384b8d),_0x1d9242=this[_0x1057fa(0x349)](_0x1d9242,_0x384b8d[_0x1057fa(0x357)]);var _0x5714f9=_0x4de19c['createDecryptor'](_0x44da75,_0x384b8d)['finalize'](_0x1d9242[_0x1057fa(0x4c3)]);return _0x5714f9;},_0xf7ead0(0x47e)),'_parse':__name(function(_0xd638b,_0x2a75c9){var _0x429642=_0xf7ead0;return typeof _0xd638b=='string'?_0x2a75c9[_0x429642(0x410)](_0xd638b,this):_0xd638b;},'_parse')}),_0x426582=_0x11a3cb[_0xf7ead0(0x3ae)]={},_0x1628fa=_0x426582[_0xf7ead0(0x26e)]={'execute':__name(function(_0x267493,_0xcbe4d4,_0x4f0138,_0xde1f0b,_0x3ff60d){var _0x516f14=_0xf7ead0;if(_0xde1f0b||(_0xde1f0b=_0x33ed8c[_0x516f14(0x455)](0x40/0x8)),_0x3ff60d)var _0x39c583=_0x50465f['create']({'keySize':_0xcbe4d4+_0x4f0138,'hasher':_0x3ff60d})[_0x516f14(0x35e)](_0x267493,_0xde1f0b);else var _0x39c583=_0x50465f[_0x516f14(0x472)]({'keySize':_0xcbe4d4+_0x4f0138})[_0x516f14(0x35e)](_0x267493,_0xde1f0b);var _0x233aad=_0x33ed8c[_0x516f14(0x472)](_0x39c583[_0x516f14(0x3bc)][_0x516f14(0x3a8)](_0xcbe4d4),_0x4f0138*0x4);return _0x39c583['sigBytes']=_0xcbe4d4*0x4,_0x5ba71d[_0x516f14(0x472)]({'key':_0x39c583,'iv':_0x233aad,'salt':_0xde1f0b});},_0xf7ead0(0x299))},_0x11098c=_0x35aa7d['PasswordBasedCipher']=_0x65b98c[_0xf7ead0(0x2e8)]({'cfg':_0x65b98c[_0xf7ead0(0x189)][_0xf7ead0(0x2e8)]({'kdf':_0x1628fa}),'encrypt':__name(function(_0x488ee0,_0x5cbb9a,_0x46f7cf,_0x5b3ee6){var _0x5d8858=_0xf7ead0;_0x5b3ee6=this[_0x5d8858(0x189)][_0x5d8858(0x2e8)](_0x5b3ee6);var _0x594da2=_0x5b3ee6[_0x5d8858(0x3ae)]['execute'](_0x46f7cf,_0x488ee0[_0x5d8858(0x3da)],_0x488ee0[_0x5d8858(0x41d)],_0x5b3ee6[_0x5d8858(0x35c)],_0x5b3ee6['hasher']);_0x5b3ee6['iv']=_0x594da2['iv'];var _0x266c11=_0x65b98c[_0x5d8858(0x27a)][_0x5d8858(0x294)](this,_0x488ee0,_0x5cbb9a,_0x594da2[_0x5d8858(0x216)],_0x5b3ee6);return _0x266c11[_0x5d8858(0x4c8)](_0x594da2),_0x266c11;},_0xf7ead0(0x27a)),'decrypt':__name(function(_0x5ad055,_0x51b7e0,_0x129245,_0x24f5af){var _0x3981b0=_0xf7ead0;_0x24f5af=this[_0x3981b0(0x189)][_0x3981b0(0x2e8)](_0x24f5af),_0x51b7e0=this[_0x3981b0(0x349)](_0x51b7e0,_0x24f5af[_0x3981b0(0x357)]);var _0x280267=_0x24f5af[_0x3981b0(0x3ae)][_0x3981b0(0x299)](_0x129245,_0x5ad055[_0x3981b0(0x3da)],_0x5ad055[_0x3981b0(0x41d)],_0x51b7e0[_0x3981b0(0x35c)],_0x24f5af[_0x3981b0(0x342)]);_0x24f5af['iv']=_0x280267['iv'];var _0x249157=_0x65b98c[_0x3981b0(0x47e)][_0x3981b0(0x294)](this,_0x5ad055,_0x51b7e0,_0x280267[_0x3981b0(0x216)],_0x24f5af);return _0x249157;},_0xf7ead0(0x47e))});}();}));}(cipherCore$1)),cipherCore$1[_0x2ea473(0x2fb)];}__name(requireCipherCore,_0xfa755a(0x462));var aes=aes$1['exports'],hasRequiredAes;function requireAes(){var _0x29032b=_0xfa755a;return hasRequiredAes||(hasRequiredAes=0x1,function(_0x2aab66,_0x2a9741){(function(_0x4e0b72,_0x4d8003,_0x13f92c){var _0x25643b=_0x4f8b;_0x2aab66[_0x25643b(0x2fb)]=_0x4d8003(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore());}(aes,function(_0x3fab11){var _0x5407b8=_0x4f8b;return(function(){var _0x5e60cc=_0x4f8b,_0x5a8ec3=_0x3fab11,_0x52f8b5=_0x5a8ec3[_0x5e60cc(0x47b)],_0x63a3e5=_0x52f8b5[_0x5e60cc(0x495)],_0x1fe1cb=_0x5a8ec3['algo'],_0x1f329b=[],_0xcc9fe7=[],_0x41747a=[],_0x2b09cb=[],_0x2583c5=[],_0x15e92a=[],_0x30fbf9=[],_0x1a1aaf=[],_0x50507d=[],_0x2f87af=[];(function(){for(var _0x4711ac=[],_0x512cdb=0x0;_0x512cdb<0x100;_0x512cdb++)_0x512cdb<0x80?_0x4711ac[_0x512cdb]=_0x512cdb<<0x1:_0x4711ac[_0x512cdb]=_0x512cdb<<0x1^0x11b;for(var _0x25a80b=0x0,_0x171611=0x0,_0x512cdb=0x0;_0x512cdb<0x100;_0x512cdb++){var _0x1281be=_0x171611^_0x171611<<0x1^_0x171611<<0x2^_0x171611<<0x3^_0x171611<<0x4;_0x1281be=_0x1281be>>>0x8^_0x1281be&0xff^0x63,_0x1f329b[_0x25a80b]=_0x1281be,_0xcc9fe7[_0x1281be]=_0x25a80b;var _0x43102c=_0x4711ac[_0x25a80b],_0x53c872=_0x4711ac[_0x43102c],_0x28e214=_0x4711ac[_0x53c872],_0xd403aa=_0x4711ac[_0x1281be]*0x101^_0x1281be*0x1010100;_0x41747a[_0x25a80b]=_0xd403aa<<0x18|_0xd403aa>>>0x8,_0x2b09cb[_0x25a80b]=_0xd403aa<<0x10|_0xd403aa>>>0x10,_0x2583c5[_0x25a80b]=_0xd403aa<<0x8|_0xd403aa>>>0x18,_0x15e92a[_0x25a80b]=_0xd403aa;var _0xd403aa=_0x28e214*0x1010101^_0x53c872*0x10001^_0x43102c*0x101^_0x25a80b*0x1010100;_0x30fbf9[_0x1281be]=_0xd403aa<<0x18|_0xd403aa>>>0x8,_0x1a1aaf[_0x1281be]=_0xd403aa<<0x10|_0xd403aa>>>0x10,_0x50507d[_0x1281be]=_0xd403aa<<0x8|_0xd403aa>>>0x18,_0x2f87af[_0x1281be]=_0xd403aa,_0x25a80b?(_0x25a80b=_0x43102c^_0x4711ac[_0x4711ac[_0x4711ac[_0x28e214^_0x43102c]]],_0x171611^=_0x4711ac[_0x4711ac[_0x171611]]):_0x25a80b=_0x171611=0x1;}}());var _0x545088=[0x0,0x1,0x2,0x4,0x8,0x10,0x20,0x40,0x80,0x1b,0x36],_0x5ca4d8=_0x1fe1cb['AES']=_0x63a3e5['extend']({'_doReset':__name(function(){var _0x1f4017=_0x5e60cc,_0x21d8f7;if(!(this['_nRounds']&&this['_keyPriorReset']===this['_key'])){for(var _0x1f61f9=this[_0x1f4017(0x3e7)]=this[_0x1f4017(0x2e5)],_0xc04a8e=_0x1f61f9[_0x1f4017(0x3bc)],_0x6e96f7=_0x1f61f9[_0x1f4017(0x3f8)]/0x4,_0x270037=this[_0x1f4017(0x2dc)]=_0x6e96f7+0x6,_0x507c02=(_0x270037+0x1)*0x4,_0x5cd3d2=this['_keySchedule']=[],_0x486117=0x0;_0x486117<_0x507c02;_0x486117++)_0x486117<_0x6e96f7?_0x5cd3d2[_0x486117]=_0xc04a8e[_0x486117]:(_0x21d8f7=_0x5cd3d2[_0x486117-0x1],_0x486117%_0x6e96f7?_0x6e96f7>0x6&&_0x486117%_0x6e96f7==0x4&&(_0x21d8f7=_0x1f329b[_0x21d8f7>>>0x18]<<0x18|_0x1f329b[_0x21d8f7>>>0x10&0xff]<<0x10|_0x1f329b[_0x21d8f7>>>0x8&0xff]<<0x8|_0x1f329b[_0x21d8f7&0xff]):(_0x21d8f7=_0x21d8f7<<0x8|_0x21d8f7>>>0x18,_0x21d8f7=_0x1f329b[_0x21d8f7>>>0x18]<<0x18|_0x1f329b[_0x21d8f7>>>0x10&0xff]<<0x10|_0x1f329b[_0x21d8f7>>>0x8&0xff]<<0x8|_0x1f329b[_0x21d8f7&0xff],_0x21d8f7^=_0x545088[_0x486117/_0x6e96f7|0x0]<<0x18),_0x5cd3d2[_0x486117]=_0x5cd3d2[_0x486117-_0x6e96f7]^_0x21d8f7);for(var _0x5bcc5f=this[_0x1f4017(0x3ce)]=[],_0x1c09d6=0x0;_0x1c09d6<_0x507c02;_0x1c09d6++){var _0x486117=_0x507c02-_0x1c09d6;if(_0x1c09d6%0x4)var _0x21d8f7=_0x5cd3d2[_0x486117];else var _0x21d8f7=_0x5cd3d2[_0x486117-0x4];_0x1c09d6<0x4||_0x486117<=0x4?_0x5bcc5f[_0x1c09d6]=_0x21d8f7:_0x5bcc5f[_0x1c09d6]=_0x30fbf9[_0x1f329b[_0x21d8f7>>>0x18]]^_0x1a1aaf[_0x1f329b[_0x21d8f7>>>0x10&0xff]]^_0x50507d[_0x1f329b[_0x21d8f7>>>0x8&0xff]]^_0x2f87af[_0x1f329b[_0x21d8f7&0xff]];}}},_0x5e60cc(0x3ef)),'encryptBlock':__name(function(_0x2ce96c,_0x291ec5){var _0x2ee37a=_0x5e60cc;this[_0x2ee37a(0x26b)](_0x2ce96c,_0x291ec5,this['_keySchedule'],_0x41747a,_0x2b09cb,_0x2583c5,_0x15e92a,_0x1f329b);},_0x5e60cc(0x2e7)),'decryptBlock':__name(function(_0x25dd6c,_0x194042){var _0x23c781=_0x5e60cc,_0x3e070b=_0x25dd6c[_0x194042+0x1];_0x25dd6c[_0x194042+0x1]=_0x25dd6c[_0x194042+0x3],_0x25dd6c[_0x194042+0x3]=_0x3e070b,this[_0x23c781(0x26b)](_0x25dd6c,_0x194042,this[_0x23c781(0x3ce)],_0x30fbf9,_0x1a1aaf,_0x50507d,_0x2f87af,_0xcc9fe7);var _0x3e070b=_0x25dd6c[_0x194042+0x1];_0x25dd6c[_0x194042+0x1]=_0x25dd6c[_0x194042+0x3],_0x25dd6c[_0x194042+0x3]=_0x3e070b;},_0x5e60cc(0x2c3)),'_doCryptBlock':__name(function(_0x26138a,_0x3166ee,_0x38d909,_0x3f98fc,_0x8a0370,_0x193506,_0x2c722d,_0x55f448){var _0x4313c7=_0x5e60cc;for(var _0x2ae3a3=this[_0x4313c7(0x2dc)],_0x13688b=_0x26138a[_0x3166ee]^_0x38d909[0x0],_0x73aded=_0x26138a[_0x3166ee+0x1]^_0x38d909[0x1],_0x219e37=_0x26138a[_0x3166ee+0x2]^_0x38d909[0x2],_0x371356=_0x26138a[_0x3166ee+0x3]^_0x38d909[0x3],_0x4bec85=0x4,_0x2c2399=0x1;_0x2c2399<_0x2ae3a3;_0x2c2399++){var _0x4ab2df=_0x3f98fc[_0x13688b>>>0x18]^_0x8a0370[_0x73aded>>>0x10&0xff]^_0x193506[_0x219e37>>>0x8&0xff]^_0x2c722d[_0x371356&0xff]^_0x38d909[_0x4bec85++],_0x363d1c=_0x3f98fc[_0x73aded>>>0x18]^_0x8a0370[_0x219e37>>>0x10&0xff]^_0x193506[_0x371356>>>0x8&0xff]^_0x2c722d[_0x13688b&0xff]^_0x38d909[_0x4bec85++],_0x384417=_0x3f98fc[_0x219e37>>>0x18]^_0x8a0370[_0x371356>>>0x10&0xff]^_0x193506[_0x13688b>>>0x8&0xff]^_0x2c722d[_0x73aded&0xff]^_0x38d909[_0x4bec85++],_0x56217e=_0x3f98fc[_0x371356>>>0x18]^_0x8a0370[_0x13688b>>>0x10&0xff]^_0x193506[_0x73aded>>>0x8&0xff]^_0x2c722d[_0x219e37&0xff]^_0x38d909[_0x4bec85++];_0x13688b=_0x4ab2df,_0x73aded=_0x363d1c,_0x219e37=_0x384417,_0x371356=_0x56217e;}var _0x4ab2df=(_0x55f448[_0x13688b>>>0x18]<<0x18|_0x55f448[_0x73aded>>>0x10&0xff]<<0x10|_0x55f448[_0x219e37>>>0x8&0xff]<<0x8|_0x55f448[_0x371356&0xff])^_0x38d909[_0x4bec85++],_0x363d1c=(_0x55f448[_0x73aded>>>0x18]<<0x18|_0x55f448[_0x219e37>>>0x10&0xff]<<0x10|_0x55f448[_0x371356>>>0x8&0xff]<<0x8|_0x55f448[_0x13688b&0xff])^_0x38d909[_0x4bec85++],_0x384417=(_0x55f448[_0x219e37>>>0x18]<<0x18|_0x55f448[_0x371356>>>0x10&0xff]<<0x10|_0x55f448[_0x13688b>>>0x8&0xff]<<0x8|_0x55f448[_0x73aded&0xff])^_0x38d909[_0x4bec85++],_0x56217e=(_0x55f448[_0x371356>>>0x18]<<0x18|_0x55f448[_0x13688b>>>0x10&0xff]<<0x10|_0x55f448[_0x73aded>>>0x8&0xff]<<0x8|_0x55f448[_0x219e37&0xff])^_0x38d909[_0x4bec85++];_0x26138a[_0x3166ee]=_0x4ab2df,_0x26138a[_0x3166ee+0x1]=_0x363d1c,_0x26138a[_0x3166ee+0x2]=_0x384417,_0x26138a[_0x3166ee+0x3]=_0x56217e;},_0x5e60cc(0x26b)),'keySize':0x100/0x20});_0x5a8ec3[_0x5e60cc(0x47f)]=_0x63a3e5[_0x5e60cc(0x3e1)](_0x5ca4d8);}()),_0x3fab11[_0x5407b8(0x47f)];}));}(aes$1)),aes$1[_0x29032b(0x2fb)];}__name(requireAes,_0xfa755a(0x432));var aesExports=requireAes();const AES=getDefaultExportFromCjs(aesExports);var encBase64Exports=requireEncBase64();const Base64=getDefaultExportFromCjs(encBase64Exports);var encUtf8$1={'exports':{}},encUtf8=encUtf8$1[_0xfa755a(0x2fb)],hasRequiredEncUtf8;function requireEncUtf8(){var _0x1c8d0f=_0xfa755a;return hasRequiredEncUtf8||(hasRequiredEncUtf8=0x1,function(_0x54fcc8,_0x1b4ee4){(function(_0x49acfe,_0xb77175){var _0x3cc5e4=_0x4f8b;_0x54fcc8[_0x3cc5e4(0x2fb)]=_0xb77175(requireCore());}(encUtf8,function(_0x2dc460){var _0x566cb3=_0x4f8b;return _0x2dc460[_0x566cb3(0x3cd)]['Utf8'];}));}(encUtf8$1)),encUtf8$1[_0x1c8d0f(0x2fb)];}__name(requireEncUtf8,_0xfa755a(0x4ac));var encUtf8Exports=requireEncUtf8();const Utf8=getDefaultExportFromCjs(encUtf8Exports);var libTypedarrays$1={'exports':{}},libTypedarrays=libTypedarrays$1['exports'],hasRequiredLibTypedarrays;function requireLibTypedarrays(){return hasRequiredLibTypedarrays||(hasRequiredLibTypedarrays=0x1,function(_0xdeeede,_0x534378){(function(_0x8fc407,_0x53f193){var _0x2e51a4=_0x4f8b;_0xdeeede[_0x2e51a4(0x2fb)]=_0x53f193(requireCore());}(libTypedarrays,function(_0x54442b){var _0xf1bcdd=_0x4f8b;return(function(){var _0x3d83a9=_0x4f8b;if(typeof ArrayBuffer==_0x3d83a9(0x44d)){var _0x3afde4=_0x54442b,_0x2b3784=_0x3afde4['lib'],_0x337fe5=_0x2b3784[_0x3d83a9(0x331)],_0x1b01da=_0x337fe5[_0x3d83a9(0x430)],_0x23d4e9=_0x337fe5[_0x3d83a9(0x430)]=function(_0xd33f95){var _0x53c924=_0x3d83a9;if(_0xd33f95 instanceof ArrayBuffer&&(_0xd33f95=new Uint8Array(_0xd33f95)),(_0xd33f95 instanceof Int8Array||typeof Uint8ClampedArray<'u'&&_0xd33f95 instanceof Uint8ClampedArray||_0xd33f95 instanceof Int16Array||_0xd33f95 instanceof Uint16Array||_0xd33f95 instanceof Int32Array||_0xd33f95 instanceof Uint32Array||_0xd33f95 instanceof Float32Array||_0xd33f95 instanceof Float64Array)&&(_0xd33f95=new Uint8Array(_0xd33f95['buffer'],_0xd33f95[_0x53c924(0x464)],_0xd33f95[_0x53c924(0x22b)])),_0xd33f95 instanceof Uint8Array){for(var _0x1f1e2a=_0xd33f95[_0x53c924(0x22b)],_0xad03be=[],_0xcd61b6=0x0;_0xcd61b6<_0x1f1e2a;_0xcd61b6++)_0xad03be[_0xcd61b6>>>0x2]|=_0xd33f95[_0xcd61b6]<<0x18-_0xcd61b6%0x4*0x8;_0x1b01da[_0x53c924(0x294)](this,_0xad03be,_0x1f1e2a);}else _0x1b01da[_0x53c924(0x37d)](this,arguments);};_0x23d4e9['prototype']=_0x337fe5;}}()),_0x54442b[_0xf1bcdd(0x47b)][_0xf1bcdd(0x331)];}));}(libTypedarrays$1)),libTypedarrays$1['exports'];}__name(requireLibTypedarrays,'requireLibTypedarrays');var libTypedarraysExports=requireLibTypedarrays();const WordArray=getDefaultExportFromCjs(libTypedarraysExports);var padNopadding$1={'exports':{}},padNopadding=padNopadding$1['exports'],hasRequiredPadNopadding;function requirePadNopadding(){var _0x1d596a=_0xfa755a;return hasRequiredPadNopadding||(hasRequiredPadNopadding=0x1,function(_0x37f9f5,_0xc2fc7b){(function(_0x21e7e6,_0x1dea08,_0x4bfdc5){var _0x39b67e=_0x4f8b;_0x37f9f5[_0x39b67e(0x2fb)]=_0x1dea08(requireCore(),requireCipherCore());}(padNopadding,function(_0x23d564){var _0x1a4d6a=_0x4f8b;return _0x23d564[_0x1a4d6a(0x356)][_0x1a4d6a(0x1a8)]={'pad':__name(function(){},_0x1a4d6a(0x356)),'unpad':__name(function(){},_0x1a4d6a(0x394))},_0x23d564[_0x1a4d6a(0x356)][_0x1a4d6a(0x1a8)];}));}(padNopadding$1)),padNopadding$1[_0x1d596a(0x2fb)];}__name(requirePadNopadding,'requirePadNopadding');var padNopaddingExports=requirePadNopadding();const NoPadding=getDefaultExportFromCjs(padNopaddingExports);function pkcs7Padding(_0x1644d2,_0x5a704b){var _0x5a75bc=_0xfa755a;const _0x348c43=_0x5a704b-_0x1644d2[_0x5a75bc(0x2d2)]%_0x5a704b,_0x112bc4=String[_0x5a75bc(0x206)](_0x348c43)[_0x5a75bc(0x1db)](_0x348c43);return _0x1644d2+_0x112bc4;}__name(pkcs7Padding,'pkcs7Padding');function encrypt(_0x5bc7d7,_0x56679b){var _0x5de865=_0xfa755a;const _0x2ab690=WordArray['random'](0x10),_0x3377d1=pkcs7Padding(_0x5bc7d7,0x10),_0x5bf88e=AES['encrypt'](Utf8[_0x5de865(0x410)](_0x3377d1),Base64[_0x5de865(0x410)](_0x56679b),{'iv':_0x2ab690,'padding':NoPadding});return _0x2ab690[_0x5de865(0x3e9)](_0x5bf88e['ciphertext'])[_0x5de865(0x204)](Base64);}function _0x4f8b(_0xc238b9,_0x222778){var _0x4a1fd3=_0x4a1f();return _0x4f8b=function(_0x4f8b68,_0x35a2f1){_0x4f8b68=_0x4f8b68-0x177;var _0x3883da=_0x4a1fd3[_0x4f8b68];return _0x3883da;},_0x4f8b(_0xc238b9,_0x222778);}__name(encrypt,'encrypt');function getAttachHeader(){var _0x250941=_0xfa755a;const _0x622fe3=getGlobalObject()['__Key__'];if(_0x622fe3){const _0x4f15ba={'time':Math[_0x250941(0x4aa)](Date[_0x250941(0x451)]()/0x3e8),'domain':location[_0x250941(0x483)]};return encrypt(JSON[_0x250941(0x39d)](_0x4f15ba),_0x622fe3);}}__name(getAttachHeader,_0xfa755a(0x330));var __defProp$7=Object[_0xfa755a(0x29f)],__getOwnPropDesc$7=Object['getOwnPropertyDescriptor'],__decorateClass$7=__name((_0x5751e4,_0x16165d,_0x3ef771,_0x11360e)=>{var _0x4fa115=_0xfa755a;for(var _0x255ee3=_0x11360e>0x1?void 0x0:_0x11360e?__getOwnPropDesc$7(_0x16165d,_0x3ef771):_0x16165d,_0x3be2c9=_0x5751e4[_0x4fa115(0x2d2)]-0x1,_0x2bbdad;_0x3be2c9>=0x0;_0x3be2c9--)(_0x2bbdad=_0x5751e4[_0x3be2c9])&&(_0x255ee3=(_0x11360e?_0x2bbdad(_0x16165d,_0x3ef771,_0x255ee3):_0x2bbdad(_0x255ee3))||_0x255ee3);return _0x11360e&&_0x255ee3&&__defProp$7(_0x16165d,_0x3ef771,_0x255ee3),_0x255ee3;},_0xfa755a(0x492)),__decorateParam$7=__name((_0xd8a2c8,_0x1136eb)=>(_0x50b09b,_0x44492d)=>_0x1136eb(_0x50b09b,_0x44492d,_0xd8a2c8),'__decorateParam$7'),_a20;let DomainRequestService=(_a20=class{constructor(_0x541961){var _0x5cb411=_0xfa755a;this[_0x5cb411(0x3c5)]=_0x541961,this[_0x5cb411(0x239)]();}[_0xfa755a(0x239)](){var _0x45d285=_0xfa755a;this['_httpService']['registerHTTPInterceptor']({'interceptor':__name((_0x3a8917,_0x43b92d)=>{var _0x3129df=_0x4f8b;const _0xc260a7=_0x3a8917[_0x3129df(0x318)],_0x25b56a=getAttachHeader();return _0x25b56a&&_0xc260a7[_0x3129df(0x32c)](_0x3129df(0x4c1),_0x25b56a),_0x43b92d(_0x3a8917);},_0x45d285(0x436))});}},__name(_a20,_0xfa755a(0x36f)),_a20);DomainRequestService=__decorateClass$7([__decorateParam$7(0x0,Inject(HTTPService))],DomainRequestService);var __defProp$6=Object[_0xfa755a(0x29f)],__getOwnPropDesc$6=Object[_0xfa755a(0x1e0)],__decorateClass$6=__name((_0x2c1f74,_0x42bf21,_0x34cbed,_0x43af9f)=>{var _0x2969c3=_0xfa755a;for(var _0x513df9=_0x43af9f>0x1?void 0x0:_0x43af9f?__getOwnPropDesc$6(_0x42bf21,_0x34cbed):_0x42bf21,_0x4f5369=_0x2c1f74[_0x2969c3(0x2d2)]-0x1,_0x6da401;_0x4f5369>=0x0;_0x4f5369--)(_0x6da401=_0x2c1f74[_0x4f5369])&&(_0x513df9=(_0x43af9f?_0x6da401(_0x42bf21,_0x34cbed,_0x513df9):_0x6da401(_0x513df9))||_0x513df9);return _0x43af9f&&_0x513df9&&__defProp$6(_0x42bf21,_0x34cbed,_0x513df9),_0x513df9;},_0xfa755a(0x2e3)),__decorateParam$6=__name((_0x2ff52e,_0x2ccfce)=>(_0x4990f3,_0x5a859f)=>_0x2ccfce(_0x4990f3,_0x5a859f,_0x2ff52e),_0xfa755a(0x22c)),_a21;let DataLoaderService=(_a21=class extends RxDisposable{constructor(_0x104ee1,_0x284105,_0x3bd36f){var _0x2e30e1=_0xfa755a;super(),__publicField(this,'_unitInfo$',new BehaviorSubject(null)),__publicField(this,_0x2e30e1(0x2e2),this[_0x2e30e1(0x1fe)][_0x2e30e1(0x319)]()),(this[_0x2e30e1(0x205)]=_0x104ee1,this[_0x2e30e1(0x251)]=_0x284105,this[_0x2e30e1(0x3f2)]=_0x3bd36f);}async[_0xfa755a(0x494)](_0x5e6f18,_0x4bca10,_0x18e91d){var _0x89305c=_0xfa755a;this[_0x89305c(0x1fe)][_0x89305c(0x192)]({'unitId':_0x5e6f18,'type':_0x4bca10,'subUnitId':_0x18e91d});let _0x5d4568=null;switch(_0x4bca10){case UniverType['UNIVER_SHEET']:{_0x5d4568=await this[_0x89305c(0x2b7)](_0x5e6f18);break;}case UniverType[_0x89305c(0x458)]:{_0x5d4568=await this[_0x89305c(0x42d)](_0x5e6f18);break;}default:{this['_logService'][_0x89305c(0x421)](_0x89305c(0x183),_0x89305c(0x3aa));break;}}return _0x5d4568;}async['_loadSheet'](_0x79b946){var _0xf20bf=_0xfa755a,_0x255fc1;let _0x11f819=0x0;const _0x28cc9a=await((_0x255fc1=this[_0xf20bf(0x3f2)])==null?void 0x0:_0x255fc1[_0xf20bf(0x2d5)](_0x79b946));return _0x28cc9a&&(_0x28cc9a['awaitingChangeset']||_0x28cc9a[_0xf20bf(0x343)][_0xf20bf(0x2d2)]!==0x0)&&(_0x11f819=_0x28cc9a['rev']),_0x11f819===0x0&&this[_0xf20bf(0x205)][_0xf20bf(0x2d6)](_0xf20bf(0x183),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this['_snapshotService'][_0xf20bf(0x3b6)](_0x79b946,_0x11f819);}async[_0xfa755a(0x42d)](_0x401fb4){var _0x117ea5=_0xfa755a,_0x4b2b91;let _0xa9ef52=0x0;const _0xf8e0a8=await((_0x4b2b91=this['_localCacheService'])==null?void 0x0:_0x4b2b91[_0x117ea5(0x2d5)](_0x401fb4));return _0xf8e0a8&&(_0xf8e0a8[_0x117ea5(0x3de)]||_0xf8e0a8[_0x117ea5(0x343)]['length']!==0x0)&&(_0xa9ef52=_0xf8e0a8[_0x117ea5(0x1cf)]),_0xa9ef52===0x0&&this['_logService'][_0x117ea5(0x2d6)](_0x117ea5(0x183),_0x117ea5(0x32f)),this[_0x117ea5(0x251)][_0x117ea5(0x182)](_0x401fb4,_0xa9ef52);}},__name(_a21,_0xfa755a(0x42e)),_a21);DataLoaderService=__decorateClass$6([__decorateParam$6(0x0,ILogService),__decorateParam$6(0x1,Inject(SnapshotService)),__decorateParam$6(0x2,Optional(ILocalCacheService))],DataLoaderService);var __defProp$5=Object['defineProperty'],__getOwnPropDesc$5=Object[_0xfa755a(0x1e0)],__decorateClass$5=__name((_0x896b9f,_0x172aeb,_0xaa4a7f,_0x522470)=>{var _0x28c841=_0xfa755a;for(var _0x150640=_0x522470>0x1?void 0x0:_0x522470?__getOwnPropDesc$5(_0x172aeb,_0xaa4a7f):_0x172aeb,_0x292266=_0x896b9f[_0x28c841(0x2d2)]-0x1,_0x35a554;_0x292266>=0x0;_0x292266--)(_0x35a554=_0x896b9f[_0x292266])&&(_0x150640=(_0x522470?_0x35a554(_0x172aeb,_0xaa4a7f,_0x150640):_0x35a554(_0x150640))||_0x150640);return _0x522470&&_0x150640&&__defProp$5(_0x172aeb,_0xaa4a7f,_0x150640),_0x150640;},_0xfa755a(0x44c)),__decorateParam$5=__name((_0xc16d2,_0x41303b)=>(_0x53ca33,_0x1ffb1c)=>_0x41303b(_0x53ca33,_0x1ffb1c,_0xc16d2),_0xfa755a(0x255));const ALLOW_IMAGE_LIST=[_0xfa755a(0x49c),_0xfa755a(0x25e),_0xfa755a(0x48f),_0xfa755a(0x283),_0xfa755a(0x2c0)],ALLOW_IMAGE_SIZE=0x5*0x400*0x400,EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY=_0xfa755a(0x443),DEFAULT_EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY=_0xfa755a(0x1c5),EXCHANGE_SIGN_URL_SERVER_URL_KEY=_0xfa755a(0x332),DEFAULT_EXCHANGE_SIGN_URL_SERVER_URL_KEY='/universer-api/file/{fileID}/sign-url';var _a22;let CollaborationImageIoService=(_a22=class{constructor(_0x1d0945,_0x139ae3,_0x9fc61d){var _0x578df6=_0xfa755a;__publicField(this,_0x578df6(0x3d8),0x0),__publicField(this,'_change$',new Subject()),__publicField(this,_0x578df6(0x271),this[_0x578df6(0x40b)]),__publicField(this,_0x578df6(0x267),new Map()),(this[_0x578df6(0x3c5)]=_0x1d0945,this[_0x578df6(0x480)]=_0x139ae3,this['_univerInstanceService']=_0x9fc61d);}[_0xfa755a(0x1b3)](_0x573cf4){var _0x47f95a=_0xfa755a;this[_0x47f95a(0x3d8)]=_0x573cf4,this[_0x47f95a(0x40b)]['next'](_0x573cf4);}['getImageSourceCache'](_0x5298a0,_0x3eebbe){var _0x59a235=_0xfa755a;if(_0x3eebbe===ImageSourceType[_0x59a235(0x248)]){const _0x27c689=new Image();return _0x27c689[_0x59a235(0x41c)]=_0x5298a0,_0x27c689;}return this[_0x59a235(0x267)][_0x59a235(0x484)](_0x5298a0);}[_0xfa755a(0x26c)](_0x136b12,_0x40a715,_0x41def1){var _0x6c1651=_0xfa755a;_0x40a715===ImageSourceType[_0x6c1651(0x248)]||_0x41def1==null||this[_0x6c1651(0x267)][_0x6c1651(0x32c)](_0x136b12,_0x41def1);}async[_0xfa755a(0x4ca)](_0x2578ba){var _0x4bc13f=_0xfa755a;try{const _0xf27d07=this['_replaceFileID'](this[_0x4bc13f(0x407)](),''+_0x2578ba),_0x47e525=(await this[_0x4bc13f(0x3c5)][_0x4bc13f(0x484)](_0xf27d07))[_0x4bc13f(0x346)];if(_0x47e525[_0x4bc13f(0x421)]&&_0x47e525['error'][_0x4bc13f(0x21c)]===ErrorCode['OK']){const _0x5ee4d3=new URL(_0x47e525[_0x4bc13f(0x1b8)],this[_0x4bc13f(0x4a9)]())[_0x4bc13f(0x204)]();return Promise[_0x4bc13f(0x3bd)](_0x5ee4d3);}return Promise[_0x4bc13f(0x276)](_0x47e525[_0x4bc13f(0x421)]);}catch(_0x324449){return Promise[_0x4bc13f(0x276)](_0x324449);}}async[_0xfa755a(0x380)](_0x35e9b6){var _0x524530=_0xfa755a;let _0x46ffcd='';if(!ALLOW_IMAGE_LIST[_0x524530(0x35d)](_0x35e9b6[_0x524530(0x4c9)]))return this[_0x524530(0x1d5)](),Promise[_0x524530(0x276)](new Error(ImageUploadStatusType[_0x524530(0x485)]));if(_0x35e9b6[_0x524530(0x2dd)]>ALLOW_IMAGE_SIZE)return this[_0x524530(0x1d5)](),Promise[_0x524530(0x276)](new Error(ImageUploadStatusType[_0x524530(0x3c1)]));try{const _0x36240d=new FormData();_0x36240d[_0x524530(0x2d1)]('file',_0x35e9b6);const _0x5399d3=this[_0x524530(0x2be)][_0x524530(0x1c9)](),_0x5182b6=_0x5399d3==null?void 0x0:_0x5399d3[_0x524530(0x48c)]();if(!_0x5182b6)throw new Error(_0x524530(0x296));const _0x6c9a8=this['_getUploadFileURL']()+_0x524530(0x23a)+_0x35e9b6[_0x524530(0x2dd)][_0x524530(0x204)]()+_0x524530(0x4c6)+FileSource['UnitEmbedded']+_0x524530(0x304)+encodeURIComponent(_0x5182b6),_0x24bc0b=await(await fetch(_0x6c9a8,{'method':_0x524530(0x28c),'body':_0x36240d}))[_0x524530(0x25b)]();if(typeof _0x24bc0b['FileId']!=_0x524530(0x201))return this[_0x524530(0x1d5)](),Promise[_0x524530(0x276)](new Error(ImageUploadStatusType[_0x524530(0x19e)]));_0x46ffcd=_0x24bc0b['FileId'];}catch{return this[_0x524530(0x1d5)](),Promise[_0x524530(0x276)](new Error(ImageUploadStatusType[_0x524530(0x19e)]));}return new Promise((_0x3e9bf5,_0x361d6c)=>{var _0x4ed210=_0x524530;const _0x155e8f=new FileReader();_0x155e8f[_0x4ed210(0x22f)](_0x35e9b6),_0x155e8f['onload']=_0x582027=>{var _0x5f4fa6=_0x4ed210,_0x3eba2a;const _0x16c2db=(_0x3eba2a=_0x582027['target'])==null?void 0x0:_0x3eba2a['result'];if(_0x16c2db==null){this[_0x5f4fa6(0x1d5)](),_0x361d6c(new Error(ImageUploadStatusType[_0x5f4fa6(0x19e)]));return;}const _0x206e9b=Tools[_0x5f4fa6(0x23d)](0x6);_0x3e9bf5({'imageId':_0x206e9b,'imageSourceType':ImageSourceType[_0x5f4fa6(0x41b)],'source':_0x46ffcd,'base64Cache':_0x16c2db,'status':ImageUploadStatusType[_0x5f4fa6(0x4a0)]}),this[_0x5f4fa6(0x1d5)]();};});}[_0xfa755a(0x290)](){var _0x219175=_0xfa755a,_0x10f27f,_0x34303c;const _0x3b823d=this[_0x219175(0x480)]['getConfig'](EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY),_0x36a3e5=this[_0x219175(0x480)][_0x219175(0x3a4)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x34303c=(_0x10f27f=_0x36a3e5==null?void 0x0:_0x36a3e5['uploadFileServerUrl'])!=null?_0x10f27f:_0x3b823d)!=null?_0x34303c:DEFAULT_EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY;}[_0xfa755a(0x407)](){var _0x17b8fc=_0xfa755a,_0x3591f0,_0x546a26;const _0x309bd6=this[_0x17b8fc(0x480)]['getConfig'](EXCHANGE_SIGN_URL_SERVER_URL_KEY),_0x39e097=this['_configService']['getConfig'](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x546a26=(_0x3591f0=_0x39e097==null?void 0x0:_0x39e097['signUrlServerUrl'])!=null?_0x3591f0:_0x309bd6)!=null?_0x546a26:DEFAULT_EXCHANGE_SIGN_URL_SERVER_URL_KEY;}[_0xfa755a(0x4a9)](){var _0x244d54=_0xfa755a,_0x49c95d;const _0x552bc9=this['_configService'][_0x244d54(0x3a4)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x49c95d=_0x552bc9==null?void 0x0:_0x552bc9['downloadEndpointUrl'])!=null?_0x49c95d:location[_0x244d54(0x36c)];}['_replaceFileID'](_0xc23262,_0x2b7717){var _0x31e2fb=_0xfa755a;return _0xc23262[_0x31e2fb(0x234)](_0x31e2fb(0x315),_0x2b7717);}['_decreaseWaiting'](){var _0x45b071=_0xfa755a;this[_0x45b071(0x3d8)]-=0x1,this['_change$'][_0x45b071(0x192)](this[_0x45b071(0x3d8)]);}},__name(_a22,_0xfa755a(0x3d9)),_a22);CollaborationImageIoService=__decorateClass$5([__decorateParam$5(0x0,Inject(HTTPService)),__decorateParam$5(0x1,IConfigService),__decorateParam$5(0x2,Inject(IUniverInstanceService))],CollaborationImageIoService);var __defProp$4=Object[_0xfa755a(0x29f)],__getOwnPropDesc$4=Object[_0xfa755a(0x1e0)],__decorateClass$4=__name((_0x1f451f,_0x260931,_0x4f2a77,_0x1d2df6)=>{var _0x40f51f=_0xfa755a;for(var _0x1fa770=_0x1d2df6>0x1?void 0x0:_0x1d2df6?__getOwnPropDesc$4(_0x260931,_0x4f2a77):_0x260931,_0xa7abab=_0x1f451f[_0x40f51f(0x2d2)]-0x1,_0xdc9e52;_0xa7abab>=0x0;_0xa7abab--)(_0xdc9e52=_0x1f451f[_0xa7abab])&&(_0x1fa770=(_0x1d2df6?_0xdc9e52(_0x260931,_0x4f2a77,_0x1fa770):_0xdc9e52(_0x1fa770))||_0x1fa770);return _0x1d2df6&&_0x1fa770&&__defProp$4(_0x260931,_0x4f2a77,_0x1fa770),_0x1fa770;},_0xfa755a(0x4bc)),__decorateParam$4=__name((_0x111f51,_0x1bfdeb)=>(_0x599ab3,_0x15c854)=>_0x1bfdeb(_0x599ab3,_0x15c854,_0x111f51),'__decorateParam$4');const DEFAULT_AUTHZ_URL_KEY=_0xfa755a(0x270);var _a23;let MentionIoHttpService=(_a23=class{constructor(_0x4189a0,_0x3f4c10){var _0x511945=_0xfa755a;this[_0x511945(0x480)]=_0x4189a0,this[_0x511945(0x3e8)]=_0x3f4c10;}[_0xfa755a(0x47a)](){var _0x216d47=_0xfa755a,_0x27d30a,_0x24d115;const _0x303c0c=this[_0x216d47(0x480)][_0x216d47(0x3a4)](AUTHZ_URL_KEY),_0x2f3406=this[_0x216d47(0x480)]['getConfig'](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x24d115=(_0x27d30a=_0x2f3406==null?void 0x0:_0x2f3406[_0x216d47(0x44f)])!=null?_0x27d30a:_0x303c0c)!=null?_0x24d115:DEFAULT_AUTHZ_URL_KEY;}async['list'](_0x5649a7){var _0x103331=_0xfa755a;const _0x157bdb=this['_getAPIPrefixPath']()+_0x103331(0x324);return{'list':[{'title':_0x103331(0x37a),'mentions':(await this[_0x103331(0x3e8)][_0x103331(0x484)](_0x157bdb,{'params':{'objectID':_0x5649a7[_0x103331(0x1ea)],'unitID':_0x5649a7[_0x103331(0x1ea)]}}))[_0x103331(0x346)][_0x103331(0x20a)][_0x103331(0x2c6)](_0x2a299f=>({'objectId':_0x2a299f['id'],'name':_0x2a299f[_0x103331(0x3f3)][_0x103331(0x487)],'metadata':{'icon':_0x2a299f[_0x103331(0x3f3)][_0x103331(0x250)]},'label':_0x2a299f['subject']['name'],'objectType':MentionType[_0x103331(0x36e)]})),'metadata':{},'type':MentionType['PERSON']}]};}},__name(_a23,_0xfa755a(0x4a4)),_a23);MentionIoHttpService=__decorateClass$4([__decorateParam$4(0x0,Inject(IConfigService)),__decorateParam$4(0x1,Inject(HTTPService))],MentionIoHttpService);var __defProp$3=Object[_0xfa755a(0x29f)],__getOwnPropDesc$3=Object[_0xfa755a(0x1e0)],__decorateClass$3=__name((_0x5e8a4d,_0xf9cdd8,_0x48a058,_0x358e69)=>{var _0x55b575=_0xfa755a;for(var _0x35a5b1=_0x358e69>0x1?void 0x0:_0x358e69?__getOwnPropDesc$3(_0xf9cdd8,_0x48a058):_0xf9cdd8,_0xd69fc3=_0x5e8a4d[_0x55b575(0x2d2)]-0x1,_0x59c36b;_0xd69fc3>=0x0;_0xd69fc3--)(_0x59c36b=_0x5e8a4d[_0xd69fc3])&&(_0x35a5b1=(_0x358e69?_0x59c36b(_0xf9cdd8,_0x48a058,_0x35a5b1):_0x59c36b(_0x35a5b1))||_0x35a5b1);return _0x358e69&&_0x35a5b1&&__defProp$3(_0xf9cdd8,_0x48a058,_0x35a5b1),_0x35a5b1;},_0xfa755a(0x440)),__decorateParam$3=__name((_0x170e6b,_0x43d3fb)=>(_0x1c2701,_0x464bb1)=>_0x43d3fb(_0x1c2701,_0x464bb1,_0x170e6b),_0xfa755a(0x3eb)),_a24;let PermissionService=(_a24=class extends RxDisposable{constructor(_0x26fcc9,_0x38b0cf,_0x374563,_0x547cc2,_0x48cd6c,_0x33304c,_0x591b01){var _0x4db9ef=_0xfa755a;super(),this[_0x4db9ef(0x24a)]=_0x26fcc9,this[_0x4db9ef(0x2be)]=_0x38b0cf,this[_0x4db9ef(0x26a)]=_0x374563,this[_0x4db9ef(0x313)]=_0x547cc2,this['_collaborationUIEventService']=_0x48cd6c,this[_0x4db9ef(0x2f2)]=_0x33304c,this[_0x4db9ef(0x1ab)]=_0x591b01,this[_0x4db9ef(0x4ce)](),this[_0x4db9ef(0x335)]();}[_0xfa755a(0x335)](){var _0x4853ec=_0xfa755a;const _0x2ff8d3=__name(async _0x1b5f52=>{var _0x3cada1=_0x4f8b;(await this[_0x3cada1(0x313)][_0x3cada1(0x1a0)](_0x1b5f52))['event$']['pipe'](filter(_0xc07275=>_0xc07275[_0x3cada1(0x27c)]===CollaborationEvent['SHOULD_CLOSE_CONN']),_0x174e61(this[_0x3cada1(0x39e)]))[_0x3cada1(0x186)](_0x3dfb03=>{var _0x249c0a=_0x3cada1;const _0x4b4452=_0x3dfb03,{reason:_0x4ae907}=_0x4b4452[_0x249c0a(0x371)];this[_0x249c0a(0x1b9)]['emitEvent']({'id':CollaborationUIEventId[_0x249c0a(0x194)],'data':_0x4ae907}),this[_0x249c0a(0x26a)][_0x249c0a(0x49f)](new WorkbookEditablePermission(_0x1b5f52)['id'],!0x1),this['_collaborationSessionService'][_0x249c0a(0x4a3)](_0x1b5f52);});},_0x4853ec(0x305));merge(this[_0x4853ec(0x2be)][_0x4853ec(0x3db)](UniverInstanceType['UNIVER_SHEET']),this[_0x4853ec(0x2be)][_0x4853ec(0x3db)](UniverInstanceType['UNIVER_DOC']))[_0x4853ec(0x34d)](map(_0x19aeb8=>_0x19aeb8[_0x4853ec(0x48c)]()),filter(_0x512089=>!isInternalEditorID(_0x512089)),_0x174e61(this[_0x4853ec(0x39e)]))[_0x4853ec(0x186)](_0x24475c=>{_0x2ff8d3(_0x24475c);});}[_0xfa755a(0x4ce)](){var _0x5de775=_0xfa755a;const _0x4b60bb=__name(async _0x39dd8f=>{var _0x30e7e6=_0x4f8b;const _0x16044b=await this[_0x30e7e6(0x313)][_0x30e7e6(0x1a0)](_0x39dd8f),_0x16dd0e=this[_0x30e7e6(0x24a)]['get'](SheetPermissionInitController);_0x16044b['event$'][_0x30e7e6(0x34d)](filter(_0x2c174f=>_0x2c174f[_0x30e7e6(0x27c)]===CollaborationEvent[_0x30e7e6(0x37f)]),_0x174e61(this['dispose$']))[_0x30e7e6(0x186)](_0x5f5371=>{var _0x44bc8f=_0x30e7e6;const _0x4ec2a3=_0x5f5371,{objectId:_0x5a76b1}=_0x4ec2a3[_0x44bc8f(0x371)];_0x5a76b1===_0x39dd8f?_0x16dd0e[_0x44bc8f(0x385)](_0x39dd8f):_0x16dd0e['refreshPermission'](_0x39dd8f,_0x5a76b1);});},_0x5de775(0x29a));merge(this[_0x5de775(0x2be)][_0x5de775(0x3db)](UniverInstanceType[_0x5de775(0x223)]),this[_0x5de775(0x2be)]['getTypeOfUnitAdded$'](UniverInstanceType[_0x5de775(0x458)]))[_0x5de775(0x34d)](map(_0x4a136e=>_0x4a136e[_0x5de775(0x48c)]()),filter(_0x42111e=>!isInternalEditorID(_0x42111e)),_0x174e61(this[_0x5de775(0x39e)]))[_0x5de775(0x186)](_0x27ae1c=>{_0x4b60bb(_0x27ae1c);});}},__name(_a24,_0xfa755a(0x3f7)),_a24);PermissionService=__decorateClass$3([__decorateParam$3(0x0,Inject(Injector)),__decorateParam$3(0x1,IUniverInstanceService),__decorateParam$3(0x2,IPermissionService),__decorateParam$3(0x3,Inject(CollaborationSessionService)),__decorateParam$3(0x4,Inject(CollaborationUIEventService)),__decorateParam$3(0x5,IAuthzIoService),__decorateParam$3(0x6,IUndoRedoService)],PermissionService);var __defProp$2=Object[_0xfa755a(0x29f)],__getOwnPropDesc$2=Object[_0xfa755a(0x1e0)],__decorateClass$2=__name((_0x29aa31,_0x48feee,_0xac27b5,_0x1be377)=>{var _0x4a5111=_0xfa755a;for(var _0x1386a9=_0x1be377>0x1?void 0x0:_0x1be377?__getOwnPropDesc$2(_0x48feee,_0xac27b5):_0x48feee,_0x50c66d=_0x29aa31[_0x4a5111(0x2d2)]-0x1,_0x1ee0f2;_0x50c66d>=0x0;_0x50c66d--)(_0x1ee0f2=_0x29aa31[_0x50c66d])&&(_0x1386a9=(_0x1be377?_0x1ee0f2(_0x48feee,_0xac27b5,_0x1386a9):_0x1ee0f2(_0x1386a9))||_0x1386a9);return _0x1be377&&_0x1386a9&&__defProp$2(_0x48feee,_0xac27b5,_0x1386a9),_0x1386a9;},_0xfa755a(0x287)),__decorateParam$2=__name((_0xcf0cf,_0x2a23d8)=>(_0x5b9ce2,_0x460a30)=>_0x2a23d8(_0x5b9ce2,_0x460a30,_0xcf0cf),_0xfa755a(0x383)),_a25;let SnapshotServerOverHTTPService=(_a25=class{constructor(_0x37aadc,_0x3ddccf){var _0x1cb6fb=_0xfa755a;this['_configService']=_0x37aadc,this[_0x1cb6fb(0x3c5)]=_0x3ddccf;}async[_0xfa755a(0x4a6)](_0x2ca29b,_0x2bc036){var _0xe0ef4e=_0xfa755a,_0x4f8c51;const {unitID:_0x5a7524,type:_0x59b7b0,revision:revision=0x0}=_0x2bc036,_0x2e1bae=this[_0xe0ef4e(0x2df)]()+'/'+_0x59b7b0+'/unit/'+_0x5a7524+_0xe0ef4e(0x2ef)+revision,_0x34aa7b=(await this['_httpService'][_0xe0ef4e(0x484)](_0x2e1bae))[_0xe0ef4e(0x346)],_0x26a8b6=(_0x4f8c51=_0x34aa7b['snapshot'])==null?void 0x0:_0x4f8c51[_0xe0ef4e(0x2a7)];if(_0x26a8b6){const _0x51c829=_0x26a8b6==null?void 0x0:_0x26a8b6['originalMeta'],_0x3c2f74=textEncoder['encode'](b64DecodeUnicode(_0x51c829));_0x26a8b6[_0xe0ef4e(0x4a1)]=_0x3c2f74,Object[_0xe0ef4e(0x24d)](_0x26a8b6[_0xe0ef4e(0x2fc)])['forEach'](([,_0x3da9ac])=>{var _0x524054=_0xe0ef4e;const _0x5954f9=_0x3da9ac[_0x524054(0x4a1)],_0x41663c=textEncoder[_0x524054(0x4ba)](b64DecodeUnicode(_0x5954f9));_0x3da9ac[_0x524054(0x4a1)]=_0x41663c;});}return _0x34aa7b;}async[_0xfa755a(0x308)](_0x4f9db3,_0x1f6918){var _0x186f6f=_0xfa755a;const {unitID:_0x2ad1dc,type:_0x191a56,blockID:_0x22d6aa}=_0x1f6918,_0x251886=this['_getAPIPrefix']()+'/'+_0x191a56+_0x186f6f(0x2eb)+_0x2ad1dc+_0x186f6f(0x325)+_0x22d6aa;return(await this[_0x186f6f(0x3c5)][_0x186f6f(0x484)](_0x251886))[_0x186f6f(0x346)];}async[_0xfa755a(0x1d1)](_0x422021,_0x1b8c4d){var _0x4b099a=_0xfa755a;const {unitID:_0x52c74d,type:_0x48b054,blockID:_0x344d37}=_0x1b8c4d,_0x18b0a2=this[_0x4b099a(0x422)]()+_0x4b099a(0x325)+_0x48b054+'/unit/'+_0x52c74d+'/block/'+_0x344d37;return(await this['_httpService'][_0x4b099a(0x484)](_0x18b0a2))[_0x4b099a(0x346)];}async[_0xfa755a(0x4a8)](_0x340370,_0x21a9bb){var _0x5d09ab=_0xfa755a;const {unitID:_0x2a5719,type:_0xb75514,from:_0x5e991d,to:_0xcfded4}=_0x21a9bb,_0x4396b2=this[_0x5d09ab(0x422)]()+'/'+_0xb75514+_0x5d09ab(0x2eb)+_0x2a5719+_0x5d09ab(0x222)+_0x5e991d+_0x5d09ab(0x200)+_0xcfded4;return(await this['_httpService'][_0x5d09ab(0x484)](_0x4396b2))[_0x5d09ab(0x346)];}[_0xfa755a(0x2df)](){var _0x2e421b=_0xfa755a,_0x40b2a1;return(_0x40b2a1=this[_0x2e421b(0x480)][_0x2e421b(0x3a4)](SNAPSHOT_URL_KEY))!=null?_0x40b2a1:this[_0x2e421b(0x422)]();}[_0xfa755a(0x422)](){var _0x58313f=_0xfa755a,_0x496e56,_0x37dadf;const _0x5bcff8=this[_0x58313f(0x480)][_0x58313f(0x3a4)](SNAPSHOT_SERVER_URL_KEY),_0x5bbde7=this['_configService'][_0x58313f(0x3a4)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x37dadf=(_0x496e56=_0x5bbde7==null?void 0x0:_0x5bbde7[_0x58313f(0x233)])!=null?_0x496e56:_0x5bcff8)!=null?_0x37dadf:DEFAULT_SNAPSHOT_SERVER_URL;}async[_0xfa755a(0x33e)](_0x17f39b,_0x4a2489){var _0x5c1b97=_0xfa755a;const _0xaa133c=_0x5c1b97(0x381)+_0x4a2489[_0x5c1b97(0x4c9)]+_0x5c1b97(0x2eb)+_0x4a2489['unitID']+_0x5c1b97(0x445);return(await this[_0x5c1b97(0x3c5)]['get'](_0xaa133c,{'params':{'resourceId':JSON[_0x5c1b97(0x39d)](_0x4a2489[_0x5c1b97(0x30a)])}}))[_0x5c1b97(0x346)];}['saveSnapshot'](){var _0x4fb29b=_0xfa755a;throw new Error(_0x4fb29b(0x27e));}[_0xfa755a(0x32a)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['saveChangeset'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0xfa755a(0x300)](){var _0x3eb8bd=_0xfa755a;throw new Error(_0x3eb8bd(0x27e));}[_0xfa755a(0x213)](){var _0x381792=_0xfa755a;throw new Error(_0x381792(0x27e));}},__name(_a25,'SnapshotServerOverHTTPService'),_a25);SnapshotServerOverHTTPService=__decorateClass$2([__decorateParam$2(0x0,IConfigService),__decorateParam$2(0x1,Inject(HTTPService))],SnapshotServerOverHTTPService);var __defProp$1=Object[_0xfa755a(0x29f)],__getOwnPropDesc$1=Object[_0xfa755a(0x1e0)],__decorateClass$1=__name((_0x26e0fc,_0x4d6858,_0x3a1a2a,_0x470ce5)=>{for(var _0x13606a=_0x470ce5>0x1?void 0x0:_0x470ce5?__getOwnPropDesc$1(_0x4d6858,_0x3a1a2a):_0x4d6858,_0x880a17=_0x26e0fc['length']-0x1,_0x383e9b;_0x880a17>=0x0;_0x880a17--)(_0x383e9b=_0x26e0fc[_0x880a17])&&(_0x13606a=(_0x470ce5?_0x383e9b(_0x4d6858,_0x3a1a2a,_0x13606a):_0x383e9b(_0x13606a))||_0x13606a);return _0x470ce5&&_0x13606a&&__defProp$1(_0x4d6858,_0x3a1a2a,_0x13606a),_0x13606a;},_0xfa755a(0x215)),__decorateParam$1=__name((_0x2190c5,_0x4e9d33)=>(_0x3e6d5b,_0x3b507e)=>_0x4e9d33(_0x3e6d5b,_0x3b507e,_0x2190c5),_0xfa755a(0x1a6)),_a26;let CollaborativeUndoRedoService=(_a26=class extends LocalUndoRedoService{constructor(_0x1a96df,_0x1cbb6a,_0x28e9de,_0x26824a,_0x36b5be){var _0x4fbfe7=_0xfa755a;super(_0x1a96df,_0x1cbb6a,_0x28e9de),this[_0x4fbfe7(0x418)]=_0x26824a,this[_0x4fbfe7(0x205)]=_0x36b5be;}[_0xfa755a(0x2cf)](_0x1f114a,_0x2258cd){var _0x5bd196=_0xfa755a;const _0x3a7607=this[_0x5bd196(0x22a)](_0x1f114a);if(_0x3a7607)try{const _0x377cea=this['_transformStack'](_0x3a7607,_0x2258cd);this[_0x5bd196(0x1b2)](_0x1f114a,_0x377cea);}catch(_0x33b995){this[_0x5bd196(0x205)][_0x5bd196(0x421)](_0x5bd196(0x3cf),_0x33b995),this[_0x5bd196(0x35f)](_0x1f114a);}const _0x5a1d34=this[_0x5bd196(0x2b4)](_0x1f114a);if(_0x5a1d34)try{const _0x4983c9=this[_0x5bd196(0x3cc)](_0x5a1d34,_0x2258cd);this[_0x5bd196(0x423)](_0x1f114a,_0x4983c9);}catch(_0xe1a287){this[_0x5bd196(0x205)][_0x5bd196(0x421)](_0xe1a287),this['_clearRedo'](_0x1f114a);}}[_0xfa755a(0x35f)](_0x103c39){var _0x51767e=_0xfa755a;const _0x8a5882=this['_getUndoStack'](_0x103c39);_0x8a5882&&(_0x8a5882[_0x51767e(0x2d2)]=0x0,this[_0x51767e(0x358)]());}[_0xfa755a(0x377)](_0x5bd2c0){var _0x13670e=_0xfa755a;const _0x287643=this[_0x13670e(0x2b4)](_0x5bd2c0);_0x287643&&(_0x287643[_0x13670e(0x2d2)]=0x0,this['_updateStatus']());}[_0xfa755a(0x1b2)](_0x45b9d9,_0x2af83b){var _0x5b258b=_0xfa755a;this['_undoStacks'][_0x5b258b(0x32c)](_0x45b9d9,_0x2af83b),this['_updateStatus']();}[_0xfa755a(0x423)](_0x514195,_0x193eb7){var _0x1fa993=_0xfa755a;this['_redoStacks'][_0x1fa993(0x32c)](_0x514195,_0x193eb7),this[_0x1fa993(0x358)]();}[_0xfa755a(0x3cc)](_0x4aebec,_0x220ca7){var _0xa02350=_0xfa755a;const _0x5648ad=[];let _0x424a37=_0x220ca7,_0x336980=_0x220ca7;for(let _0x27089f=_0x4aebec['length']-0x1;_0x27089f>=0x0;_0x27089f--){const {unitID:_0x33c6a6,undoMutations:_0x18147b,redoMutations:_0x4fad35}=_0x4aebec[_0x27089f],_0x377e79=this[_0xa02350(0x418)][_0xa02350(0x38c)](_0x424a37,_0x18147b),_0x59ea32=this[_0xa02350(0x418)][_0xa02350(0x38c)](_0x336980,_0x4fad35);if(isTransformMutationsWithChangesetFailure(_0x377e79)||isTransformMutationsWithChangesetFailure(_0x59ea32)){this[_0xa02350(0x205)]['error']('[CollaborationUndoRedoService]',_0xa02350(0x1cc),_0x377e79,_0x59ea32);break;}_0x424a37=_0x377e79[_0xa02350(0x32e)],_0x336980=_0x59ea32[_0xa02350(0x32e)],_0x5648ad[_0xa02350(0x38d)]({'unitID':_0x33c6a6,'undoMutations':_0x377e79[_0xa02350(0x1b6)],'redoMutations':_0x59ea32['m2Prime']});}return _0x5648ad[_0xa02350(0x2f4)]();}},__name(_a26,'CollaborativeUndoRedoService'),_a26);CollaborativeUndoRedoService=__decorateClass$1([__decorateParam$1(0x0,IUniverInstanceService),__decorateParam$1(0x1,ICommandService),__decorateParam$1(0x2,IContextService),__decorateParam$1(0x3,ITransformService),__decorateParam$1(0x4,ILogService)],CollaborativeUndoRedoService);var __defProp2=Object['defineProperty'],__getOwnPropDesc=Object['getOwnPropertyDescriptor'],__defNormalProp2=__name((_0x18e93d,_0x1d3464,_0x4fac10)=>_0x1d3464 in _0x18e93d?__defProp2(_0x18e93d,_0x1d3464,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4fac10}):_0x18e93d[_0x1d3464]=_0x4fac10,_0xfa755a(0x2c7)),__decorateClass=__name((_0x328720,_0x54f3fe,_0x9f02c,_0x403b02)=>{var _0x5cdac0=_0xfa755a;for(var _0x26dc4a=_0x403b02>0x1?void 0x0:_0x403b02?__getOwnPropDesc(_0x54f3fe,_0x9f02c):_0x54f3fe,_0x381c6e=_0x328720[_0x5cdac0(0x2d2)]-0x1,_0x684a56;_0x381c6e>=0x0;_0x381c6e--)(_0x684a56=_0x328720[_0x381c6e])&&(_0x26dc4a=(_0x403b02?_0x684a56(_0x54f3fe,_0x9f02c,_0x26dc4a):_0x684a56(_0x26dc4a))||_0x26dc4a);return _0x403b02&&_0x26dc4a&&__defProp2(_0x54f3fe,_0x9f02c,_0x26dc4a),_0x26dc4a;},_0xfa755a(0x444)),__decorateParam=__name((_0x3b5286,_0x2a26df)=>(_0x281f4c,_0x604b8f)=>_0x2a26df(_0x281f4c,_0x604b8f,_0x3b5286),_0xfa755a(0x402)),__publicField2=__name((_0x2b5fd0,_0x3ecb3c,_0x521586)=>__defNormalProp2(_0x2b5fd0,_0x3ecb3c+'',_0x521586),_0xfa755a(0x427));const PLUGIN_NAME=_0xfa755a(0x463);var _a27;let UniverCollaborationClientPlugin=(_a27=class extends Plugin{constructor(_0x1965d9=defaultPluginConfig,_0x563b53,_0x1375f5,_0x4b57af){var _0x125ad5=_0xfa755a;super(),this[_0x125ad5(0x453)]=_0x1965d9,this[_0x125ad5(0x205)]=_0x563b53,this[_0x125ad5(0x24a)]=_0x1375f5,this['_configService']=_0x4b57af;const {..._0x21152c}=_0x20c9bf({},defaultPluginConfig,this[_0x125ad5(0x453)]);this[_0x125ad5(0x480)][_0x125ad5(0x1e8)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,_0x21152c);}[_0xfa755a(0x45c)](){this['_registerDependencies'](),this['_initDependencies']();}[_0xfa755a(0x1eb)](){var _0x375b14=_0xfa755a,_0x2684aa,_0x136453,_0xb7fe8d,_0x11b1c3;this['_injector'][_0x375b14(0x378)](IUndoRedoService)&&this[_0x375b14(0x205)][_0x375b14(0x421)](_0x375b14(0x2ce),_0x375b14(0x31e));const _0x7ac4a0=mergeOverrideWithDependencies([[IUndoRedoService,{'useClass':CollaborativeUndoRedoService}],[CollaborationSessionService],[MemberService],[SheetTransformSelectionsService],[AuthServerService],[DomainRequestService],[CommentService],[PermissionService],[CollaborationUIEventService],[DataLoaderService],[ICollaborationSocketService,{'useClass':(_0x136453=(_0x2684aa=this['_config'])==null?void 0x0:_0x2684aa['socketService'])!=null?_0x136453:CollaborationSocketService}],[ISnapshotServerService,{'useClass':SnapshotServerOverHTTPService}],[IAuthzIoService,{'useClass':AuthzIoHttpService}],[IImageIoService,{'useClass':CollaborationImageIoService}],[IMentionIOService,{'useClass':MentionIoHttpService}],[CollaborationController],[FileNameController]],(_0xb7fe8d=this[_0x375b14(0x453)])==null?void 0x0:_0xb7fe8d[_0x375b14(0x30f)]);if(!((_0x11b1c3=this['_config'])!=null&&_0x11b1c3['enableSingleActiveInstanceLock'])){const _0x250020=_0x7ac4a0[_0x375b14(0x22d)](([_0x5c56b9])=>_0x5c56b9===ISingleActiveUnitService);_0x250020!==-0x1&&_0x7ac4a0['splice'](_0x250020,0x1);}registerDependencies(this[_0x375b14(0x24a)],_0x7ac4a0);}[_0xfa755a(0x33f)](){var _0x4682be=_0xfa755a,_0x9c0d9c,_0x418ee3,_0x39ba78;this[_0x4682be(0x24a)]['get'](HTTPService)['registerHTTPInterceptor']({'priority':0x14,'interceptor':ThresholdInterceptorFactory({'maxParallel':0x6})}),(_0x9c0d9c=this['_config'])!=null&&_0x9c0d9c[_0x4682be(0x344)]||(_0x418ee3=this[_0x4682be(0x24a)][_0x4682be(0x484)](ILocalCacheService,Quantity[_0x4682be(0x49e)]))==null||_0x418ee3[_0x4682be(0x1bd)](),(_0x39ba78=this[_0x4682be(0x453)])!=null&&_0x39ba78['enableAuthServer']&&touchDependencies(this['_injector'],[[AuthServerService]]),touchDependencies(this[_0x4682be(0x24a)],[[DomainRequestService],[CollaborationController],[PermissionService]]);}},__name(_a27,_0xfa755a(0x433)),_a27);__publicField2(UniverCollaborationClientPlugin,_0xfa755a(0x411),PLUGIN_NAME),UniverCollaborationClientPlugin=__decorateClass([DependentOn(UniverCollaborationPlugin,UniverSheetsPlugin,UniverNetworkPlugin),__decorateParam(0x1,ILogService),__decorateParam(0x2,Inject(Injector)),__decorateParam(0x3,IConfigService)],UniverCollaborationClientPlugin);export{AUTHZ_URL_KEY,AuthzIoHttpService,AwaitingState,AwaitingWithPendingState,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,COLLAB_SUBMIT_CHANGESET_URL_KEY,COLLAB_WEB_SOCKET_URL_KEY,CollaborationController,CollaborationEntity,CollaborationImageIoService,CollaborationSession,CollaborationSessionService,CollaborationSocketService,CollaborationStatus,CollaborationUIEventId,CollaborationUIEventService,CollaborativeUndoRedoService,CommentService,ConflictState,DEFAULT_COLLAB_WEB_SOCKET_URL,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT,DataLoaderService,DocCollaborationEntity,FetchingMissState,HEARTBEAT_INTERVAL_KEY,HEARTBEAT_TIMEOUT_KEY,ICollaborationSocketService,ILocalCacheService,INetworkConditionService,ISingleActiveUnitService,LOCAL_CACHE_INTERVAL,LOCAL_CACHE_INTERVAL_KEY,LOGIN_URL_KEY,MemberService,MentionIoHttpService,OfflineState,PendingState,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY,RETRY_CONNECTING_MAX_COUNT_KEY,SEND_CHANGESET_TIMEOUT_KEY,SNAPSHOT_SERVER_URL_KEY,SNAPSHOT_URL_KEY,SessionStatus,SheetCollaborationEntity,SheetTransformSelectionsService,SnapshotServerOverHTTPService,SyncedState,UnitStatus,UniverCollaborationClientPlugin,deserializeToCombResponse,getLocalCacheKey,serializeCombRequest};