@univerjs-pro/collaboration-client 0.5.5-experimental.20250124-fc44c59 → 0.5.5-experimental.20250125-1aa33c0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +10 -10
package/lib/es/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
var _0x10fcf4=_0x1531;(function(_0x3a765e,_0x2c095a){var _0x25b0e4=_0x1531,_0x1a8d25=_0x3a765e();while(!![]){try{var _0x1702f0=parseInt(_0x25b0e4(0x3fb))/0x1+-parseInt(_0x25b0e4(0x317))/0x2+parseInt(_0x25b0e4(0x18e))/0x3*(parseInt(_0x25b0e4(0x486))/0x4)+parseInt(_0x25b0e4(0x4ac))/0x5*(-parseInt(_0x25b0e4(0x25d))/0x6)+-parseInt(_0x25b0e4(0x283))/0x7*(parseInt(_0x25b0e4(0x214))/0x8)+-parseInt(_0x25b0e4(0x282))/0x9+parseInt(_0x25b0e4(0x193))/0xa*(parseInt(_0x25b0e4(0x1e2))/0xb);if(_0x1702f0===_0x2c095a)break;else _0x1a8d25['push'](_0x1a8d25['shift']());}catch(_0x4c53f8){_0x1a8d25['push'](_0x1a8d25['shift']());}}}(_0x33e4,0x84d6e));var __defProp=Object['defineProperty'],__defNormalProp=(_0x3afbb0,_0x444163,_0x26a1ae)=>_0x444163 in _0x3afbb0?__defProp(_0x3afbb0,_0x444163,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x26a1ae}):_0x3afbb0[_0x444163]=_0x26a1ae,__name=(_0x1e01df,_0xf39e02)=>__defProp(_0x1e01df,'name',{'value':_0xf39e02,'configurable':!0x0}),__publicField=(_0x592748,_0x31c49a,_0xc8bb21)=>__defNormalProp(_0x592748,typeof _0x31c49a!=_0x10fcf4(0x4b5)?_0x31c49a+'':_0x31c49a,_0xc8bb21);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 _0xfc9023,mergeOverrideWithDependencies,IMentionIOService,registerDependencies,Quantity,touchDependencies}from'@univerjs/core';import{Subject,merge,of,BehaviorSubject,takeUntil,ReplaySubject,take as _0x369b3a,map as _0x168a89,shareReplay,firstValueFrom,concatMap}from'rxjs';import{map,take,filter,delay,takeUntil as _0x2a18c3}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=_0x10fcf4(0x2ee),DEFAULT_SNAPSHOT_SERVER_URL=_0x10fcf4(0x22c),SNAPSHOT_URL_KEY=_0x10fcf4(0x267),SEND_CHANGESET_TIMEOUT_KEY=_0x10fcf4(0x328),DEFAULT_SEND_CHANGESET_TIMEOUT=0x7d0,COLLAB_WEB_SOCKET_URL_KEY=_0x10fcf4(0x3c4),DEFAULT_COLLAB_WEB_SOCKET_URL=_0x10fcf4(0x41e),DEFAULT_WS_SESSION_TICKET_URL=_0x10fcf4(0x42c),HEARTBEAT_INTERVAL_KEY=_0x10fcf4(0x262),DEFAULT_HEARTBEAT_INTERVAL=0x7530,HEARTBEAT_TIMEOUT_KEY=_0x10fcf4(0x1ec),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='LOCAL_CACHE_INTERVAL',LOCAL_CACHE_INTERVAL=0x3e8,COLLAB_SUBMIT_CHANGESET_URL_KEY='COLLAB_SUBMIT_CHANGESET_URL',DEFAULT_COLLAB_SUBMIT_CHANGESET_URL=_0x10fcf4(0x305),LOGIN_URL_KEY='LOGIN_URL_KEY',DEFAULT_LOGIN_URL=_0x10fcf4(0x49e),REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY=_0x10fcf4(0x30b),DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT='/universer-api/uniscript';var ErrorCode=(_0x18db09=>(_0x18db09[_0x18db09[_0x10fcf4(0x3ee)]=0x0]=_0x10fcf4(0x3ee),_0x18db09[_0x18db09['OK']=0x1]='OK',_0x18db09[_0x18db09[_0x10fcf4(0x41a)]=0x2]=_0x10fcf4(0x41a),_0x18db09[_0x18db09[_0x10fcf4(0x337)]=0x3]=_0x10fcf4(0x337),_0x18db09[_0x18db09[_0x10fcf4(0x24d)]=0x4]=_0x10fcf4(0x24d),_0x18db09[_0x18db09[_0x10fcf4(0x466)]=0x5]=_0x10fcf4(0x466),_0x18db09[_0x18db09[_0x10fcf4(0x2e2)]=0x6]=_0x10fcf4(0x2e2),_0x18db09[_0x18db09[_0x10fcf4(0x1e3)]=0x7]='INVALID_ARGUMENT',_0x18db09[_0x18db09[_0x10fcf4(0x3bf)]=0x8]=_0x10fcf4(0x3bf),_0x18db09[_0x18db09[_0x10fcf4(0x252)]=0x9]='COMPLETION_FINISHED',_0x18db09[_0x18db09[_0x10fcf4(0x2d8)]=0x1389]=_0x10fcf4(0x2d8),_0x18db09[_0x18db09[_0x10fcf4(0x376)]=0x1771]=_0x10fcf4(0x376),_0x18db09[_0x18db09[_0x10fcf4(0x432)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x18db09[_0x18db09[_0x10fcf4(0x4b2)]=0x1773]=_0x10fcf4(0x4b2),_0x18db09[_0x18db09['APPLY_REJECT']=0x1b59]=_0x10fcf4(0x1a3),_0x18db09[_0x18db09[_0x10fcf4(0x208)]=0x1b5a]=_0x10fcf4(0x208),_0x18db09[_0x18db09[_0x10fcf4(0x404)]=0x1b5b]=_0x10fcf4(0x404),_0x18db09[_0x18db09[_0x10fcf4(0x430)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x18db09[_0x18db09['APPLY_DUPLICATED']=0x1b5d]=_0x10fcf4(0x225),_0x18db09[_0x18db09[_0x10fcf4(0x1d9)]=0x1f41]=_0x10fcf4(0x1d9),_0x18db09[_0x18db09[_0x10fcf4(0x4b6)]=0x2329]=_0x10fcf4(0x4b6),_0x18db09[_0x18db09['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x10fcf4(0x254),_0x18db09[_0x18db09[_0x10fcf4(0x456)]=0x232b]=_0x10fcf4(0x456),_0x18db09[_0x18db09[_0x10fcf4(0x3c8)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x18db09[_0x18db09[_0x10fcf4(0x42d)]=0x232d]=_0x10fcf4(0x42d),_0x18db09[_0x18db09[_0x10fcf4(0x229)]=0x2711]=_0x10fcf4(0x229),_0x18db09[_0x18db09[_0x10fcf4(0x1f4)]=0x2712]=_0x10fcf4(0x1f4),_0x18db09[_0x18db09[_0x10fcf4(0x31f)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x18db09[_0x18db09[_0x10fcf4(0x188)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x18db09[_0x18db09[_0x10fcf4(0x347)]=0x2af9]=_0x10fcf4(0x347),_0x18db09[_0x18db09[_0x10fcf4(0x43b)]=-0x1]=_0x10fcf4(0x43b),_0x18db09))(ErrorCode||{}),UniverType=(_0x14afae=>(_0x14afae[_0x14afae[_0x10fcf4(0x3ff)]=0x0]='UNIVER_UNKNOWN',_0x14afae[_0x14afae[_0x10fcf4(0x30c)]=0x1]='UNIVER_DOC',_0x14afae[_0x14afae[_0x10fcf4(0x3a7)]=0x2]=_0x10fcf4(0x3a7),_0x14afae[_0x14afae[_0x10fcf4(0x23d)]=0x3]=_0x10fcf4(0x23d),_0x14afae[_0x14afae[_0x10fcf4(0x406)]=0x4]=_0x10fcf4(0x406),_0x14afae[_0x14afae[_0x10fcf4(0x43b)]=-0x1]=_0x10fcf4(0x43b),_0x14afae))(UniverType||{}),CombCmd=(_0x2aa839=>(_0x2aa839[_0x2aa839[_0x10fcf4(0x372)]=0x0]=_0x10fcf4(0x372),_0x2aa839[_0x2aa839[_0x10fcf4(0x1f5)]=0x1]=_0x10fcf4(0x1f5),_0x2aa839[_0x2aa839[_0x10fcf4(0x334)]=0x2]='JOIN',_0x2aa839[_0x2aa839['LEAVE']=0x3]=_0x10fcf4(0x44f),_0x2aa839[_0x2aa839[_0x10fcf4(0x392)]=0x4]=_0x10fcf4(0x392),_0x2aa839[_0x2aa839[_0x10fcf4(0x23c)]=0x5]=_0x10fcf4(0x23c),_0x2aa839[_0x2aa839['RECV']=0x6]=_0x10fcf4(0x39e),_0x2aa839[_0x2aa839['UNRECOGNIZED']=-0x1]=_0x10fcf4(0x43b),_0x2aa839))(CombCmd||{}),CmdRspCode=(_0x45d617=>(_0x45d617[_0x45d617[_0x10fcf4(0x34f)]=0x0]=_0x10fcf4(0x34f),_0x45d617[_0x45d617['OK']=0x1]='OK',_0x45d617[_0x45d617['FAIL']=0x2]=_0x10fcf4(0x32e),_0x45d617[_0x45d617[_0x10fcf4(0x19d)]=0x3e9]='JOIN_ROOM_FULL',_0x45d617[_0x45d617['JOIN_ROOM_NOT_EXISTS']=0x3ea]=_0x10fcf4(0x397),_0x45d617[_0x45d617[_0x10fcf4(0x1ae)]=0x3eb]=_0x10fcf4(0x1ae),_0x45d617[_0x45d617[_0x10fcf4(0x46a)]=0x3ec]=_0x10fcf4(0x46a),_0x45d617[_0x45d617[_0x10fcf4(0x43b)]=-0x1]=_0x10fcf4(0x43b),_0x45d617))(CmdRspCode||{}),FileSource=(_0x4ec7b6=>(_0x4ec7b6[_0x4ec7b6['Undefined']=0x0]=_0x10fcf4(0x28f),_0x4ec7b6[_0x4ec7b6['HttpImport']=0x1]=_0x10fcf4(0x41d),_0x4ec7b6[_0x4ec7b6['HttpExport']=0x2]=_0x10fcf4(0x1ea),_0x4ec7b6[_0x4ec7b6[_0x10fcf4(0x25b)]=0x3]=_0x10fcf4(0x25b),_0x4ec7b6[_0x4ec7b6[_0x10fcf4(0x276)]=0x4]=_0x10fcf4(0x276),_0x4ec7b6[_0x4ec7b6['UNRECOGNIZED']=-0x1]=_0x10fcf4(0x43b),_0x4ec7b6))(FileSource||{});const COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY=_0x10fcf4(0x2cc),defaultPluginConfig={};var CollaborationUIEventId=(_0x4b22b9=>(_0x4b22b9[_0x10fcf4(0x3bd)]=_0x10fcf4(0x3bd),_0x4b22b9[_0x10fcf4(0x337)]=_0x10fcf4(0x337),_0x4b22b9[_0x10fcf4(0x367)]=_0x10fcf4(0x367),_0x4b22b9['CLOSE_ROOM']=_0x10fcf4(0x2f0),_0x4b22b9[_0x10fcf4(0x359)]=_0x10fcf4(0x359),_0x4b22b9[_0x10fcf4(0x443)]=_0x10fcf4(0x443),_0x4b22b9[_0x10fcf4(0x2af)]='SOCKET_FAILED',_0x4b22b9[_0x10fcf4(0x4b7)]=_0x10fcf4(0x4b7),_0x4b22b9))(CollaborationUIEventId||{});const _CollaborationUIEventService=class _CollaborationUIEventService{constructor(){var _0x597733=_0x10fcf4;__publicField(this,_0x597733(0x292),new Subject()),__publicField(this,_0x597733(0x48c),this[_0x597733(0x292)][_0x597733(0x3b6)]());}[_0x10fcf4(0x22f)](_0x49de6f){var _0x47bd9c=_0x10fcf4;this['_event$'][_0x47bd9c(0x3d5)](_0x49de6f);}};__name(_CollaborationUIEventService,'CollaborationUIEventService');let CollaborationUIEventService=_CollaborationUIEventService;const INetworkConditionService=createIdentifier(_0x10fcf4(0x2ff));function deserializeToCombResponse(_0x3f989a){var _0x4599b5=_0x10fcf4,_0x466e58,_0x3bf53c,_0x46cfe0,_0x5d24e4,_0x4dad74;const _0x32947e=_0x3f989a['data'],_0x4a95ef=JSON[_0x4599b5(0x361)](_0x32947e);switch(_0x4a95ef[_0x4599b5(0x42e)]){case CombCmd['HEARTBEAT']:case CombCmd[_0x4599b5(0x1f5)]:{const _0x574843=_0x4a95ef['infoRsp'];return{..._0x4a95ef,'data':_0x574843,'cmd':_0x4a95ef[_0x4599b5(0x42e)]};}case CombCmd[_0x4599b5(0x334)]:{const _0xcd6f40=_0x4a95ef[_0x4599b5(0x471)];return{..._0x4a95ef,'data':_0xcd6f40,'cmd':_0x4a95ef['cmd']};}case CombCmd[_0x4599b5(0x39e)]:{const _0x1b1028=_0x4a95ef['collaMsg'];switch(_0x1b1028[_0x4599b5(0x204)]){case CollaborationEvent[_0x4599b5(0x340)]:return{..._0x4a95ef,'data':{..._0x1b1028,'data':(_0x466e58=_0x1b1028[_0x4599b5(0x451)])==null?void 0x0:_0x466e58['cs']},'cmd':_0x4a95ef[_0x4599b5(0x42e)]};case CollaborationEvent[_0x4599b5(0x1d5)]:return{..._0x4a95ef,'data':{..._0x1b1028,'data':(_0x3bf53c=_0x1b1028['csAckEvent'])==null?void 0x0:_0x3bf53c['cs']},'cmd':_0x4a95ef[_0x4599b5(0x42e)]};case CollaborationEvent['NEW_CHANGESETS']:return{..._0x4a95ef,'data':{..._0x1b1028,'data':(_0x46cfe0=_0x1b1028['newCsEvent'])==null?void 0x0:_0x46cfe0['cs']},'cmd':_0x4a95ef['cmd']};case CollaborationEvent['CHANGESET_REJ']:return{..._0x4a95ef,'data':{..._0x1b1028,'data':(_0x5d24e4=_0x1b1028['csRejEvent'])==null?void 0x0:_0x5d24e4['cs']},'cmd':_0x4a95ef[_0x4599b5(0x42e)]};case CollaborationEvent[_0x4599b5(0x49b)]:return{..._0x4a95ef,'data':{..._0x1b1028,'data':(_0x4dad74=_0x1b1028[_0x4599b5(0x4c4)])==null?void 0x0:_0x4dad74['cs']},'cmd':_0x4a95ef['cmd']};case CollaborationEvent[_0x4599b5(0x2c8)]:return{..._0x4a95ef,'data':{..._0x1b1028,'data':_0x1b1028[_0x4599b5(0x33f)]},'cmd':_0x4a95ef[_0x4599b5(0x42e)]};case CollaborationEvent[_0x4599b5(0x498)]:return{..._0x4a95ef,'data':{..._0x1b1028,'data':_0x1b1028[_0x4599b5(0x483)]},'cmd':_0x4a95ef[_0x4599b5(0x42e)]};case CollaborationEvent[_0x4599b5(0x217)]:return{..._0x4a95ef,'data':{..._0x1b1028,'data':_0x1b1028['leaveEvent']},'cmd':_0x4a95ef['cmd']};case CollaborationEvent[_0x4599b5(0x31d)]:return{..._0x4a95ef,'data':{..._0x1b1028,'data':_0x1b1028['liveShareNewHost']},'cmd':_0x4a95ef['cmd']};case CollaborationEvent['LIVESHARE_FETCH_OPERATIONS']:case CollaborationEvent['LIVESHARE_OPERATION']:return{..._0x4a95ef,'data':{..._0x1b1028,'data':_0x1b1028[_0x4599b5(0x234)]},'cmd':_0x4a95ef[_0x4599b5(0x42e)]};case CollaborationEvent['LIVESHARE_TERMINATE']:return{..._0x4a95ef,'data':{..._0x1b1028,'data':_0x1b1028[_0x4599b5(0x2c2)]},'cmd':_0x4a95ef[_0x4599b5(0x42e)]};case CollaborationEvent[_0x4599b5(0x197)]:return{..._0x4a95ef,'data':_0x1b1028,'cmd':_0x4a95ef[_0x4599b5(0x42e)]};case CollaborationEvent[_0x4599b5(0x29b)]:return{..._0x4a95ef,'data':{..._0x1b1028,'data':_0x1b1028[_0x4599b5(0x275)]},'cmd':_0x4a95ef[_0x4599b5(0x42e)]};case CollaborationEvent[_0x4599b5(0x3d7)]:return{..._0x4a95ef,'data':{..._0x1b1028,'data':_0x1b1028[_0x4599b5(0x23b)]},'cmd':_0x4a95ef[_0x4599b5(0x42e)]};case CollaborationEvent[_0x4599b5(0x495)]:return{..._0x4a95ef,'data':{..._0x1b1028,'data':_0x1b1028[_0x4599b5(0x19f)]},'cmd':_0x4a95ef[_0x4599b5(0x42e)]};case CollaborationEvent[_0x4599b5(0x1d7)]:return{..._0x4a95ef,'data':{..._0x1b1028,'data':_0x1b1028[_0x4599b5(0x3d4)]},'cmd':_0x4a95ef[_0x4599b5(0x42e)]};default:return _0x4a95ef;}}default:return _0x4a95ef;}}__name(deserializeToCombResponse,_0x10fcf4(0x1d0));function serializeCombRequest(_0x252773){var _0xe8f37e=_0x10fcf4;switch(_0x252773[_0xe8f37e(0x42e)]){case CombCmd['HEARTBEAT']:case CombCmd[_0xe8f37e(0x1f5)]:return JSON[_0xe8f37e(0x259)]({'cmd':_0x252773['cmd'],'routeKey':_0x252773[_0xe8f37e(0x2ce)]});case CombCmd['INGEST']:{let _0x1d749d;switch(_0x252773['data'][_0xe8f37e(0x204)]){case CollaborationEvent[_0xe8f37e(0x2c8)]:{_0x1d749d={'eventID':CollaborationEvent[_0xe8f37e(0x2c8)],'updateCursorEvent':_0x252773[_0xe8f37e(0x407)][_0xe8f37e(0x407)]};break;}case CollaborationEvent[_0xe8f37e(0x217)]:{_0x1d749d={'eventID':CollaborationEvent['USERS_LEAVE'],'leaveEvent':_0x252773[_0xe8f37e(0x407)][_0xe8f37e(0x407)]};break;}case CollaborationEvent[_0xe8f37e(0x498)]:{_0x1d749d={'eventID':CollaborationEvent[_0xe8f37e(0x498)],'joinEvent':_0x252773['data']['data']};break;}case CollaborationEvent['LIVESHARE_NEW_HOST']:{_0x1d749d={'eventID':CollaborationEvent['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x252773['data'][_0xe8f37e(0x407)]};break;}case CollaborationEvent[_0xe8f37e(0x41f)]:{_0x1d749d={'eventID':CollaborationEvent[_0xe8f37e(0x41f)],'liveShareOperation':_0x252773[_0xe8f37e(0x407)][_0xe8f37e(0x407)]};break;}case CollaborationEvent[_0xe8f37e(0x32d)]:{_0x1d749d={'eventID':CollaborationEvent['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x252773[_0xe8f37e(0x407)][_0xe8f37e(0x407)]};break;}case CollaborationEvent[_0xe8f37e(0x1a9)]:{_0x1d749d={'eventID':CollaborationEvent[_0xe8f37e(0x1a9)],'liveShareRequestHost':_0x252773[_0xe8f37e(0x407)][_0xe8f37e(0x407)]};break;}case CollaborationEvent[_0xe8f37e(0x48f)]:{_0x1d749d={'eventID':CollaborationEvent['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x1d749d={'eventID':_0x252773[_0xe8f37e(0x407)]['eventID']};}return JSON[_0xe8f37e(0x259)]({'cmd':_0x252773[_0xe8f37e(0x42e)],'routeKey':_0x252773['routeKey'],'collaMsg':_0x1d749d});}case CombCmd['JOIN']:return JSON['stringify']({'cmd':_0x252773[_0xe8f37e(0x42e)],'routeKey':_0x252773[_0xe8f37e(0x2ce)],'joinReq':_0x252773['data']});case CombCmd[_0xe8f37e(0x44f)]:return JSON[_0xe8f37e(0x259)]({'cmd':_0x252773['cmd'],'routeKey':_0x252773[_0xe8f37e(0x2ce)],'leaveReq':_0x252773[_0xe8f37e(0x407)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}__name(serializeCombRequest,_0x10fcf4(0x265));var __defProp$i=Object[_0x10fcf4(0x2ba)],__getOwnPropDesc$i=Object[_0x10fcf4(0x341)],__decorateClass$i=__name((_0xc18e6b,_0x24fe9f,_0x2178aa,_0x3ec934)=>{var _0x4a71f3=_0x10fcf4;for(var _0x639044=_0x3ec934>0x1?void 0x0:_0x3ec934?__getOwnPropDesc$i(_0x24fe9f,_0x2178aa):_0x24fe9f,_0x16f60a=_0xc18e6b[_0x4a71f3(0x20b)]-0x1,_0x5a7809;_0x16f60a>=0x0;_0x16f60a--)(_0x5a7809=_0xc18e6b[_0x16f60a])&&(_0x639044=(_0x3ec934?_0x5a7809(_0x24fe9f,_0x2178aa,_0x639044):_0x5a7809(_0x639044))||_0x639044);return _0x3ec934&&_0x639044&&__defProp$i(_0x24fe9f,_0x2178aa,_0x639044),_0x639044;},_0x10fcf4(0x414)),__decorateParam$i=__name((_0x3c5184,_0x59b01c)=>(_0x148fcd,_0x33f3e9)=>_0x59b01c(_0x148fcd,_0x33f3e9,_0x3c5184),_0x10fcf4(0x400));const ICollaborationSocketService=createIdentifier('univer-pro.collaboration-client-socket-service');function generateSubmitChangesPath(_0x39391f,_0x5be5b9,_0x276937){var _0x383721=_0x10fcf4;return _0x39391f+'/'+_0x5be5b9+_0x383721(0x34c)+_0x276937+_0x383721(0x399);}__name(generateSubmitChangesPath,_0x10fcf4(0x1bf));var _a;let CollaborationSocketService=(_a=class extends Disposable{constructor(_0x49d9db,_0x1625cd,_0x57a644,_0x3659bf,_0x3f0ad5){var _0x4fe6f7=_0x10fcf4;super(),this[_0x4fe6f7(0x2b7)]=_0x49d9db,this[_0x4fe6f7(0x464)]=_0x1625cd,this[_0x4fe6f7(0x2bf)]=_0x57a644,this[_0x4fe6f7(0x298)]=_0x3659bf,this['_snapshotServerService']=_0x3f0ad5;}['createSocket'](_0x2c2684){var _0x13e3fd=_0x10fcf4;const _0x129e08=this[_0x13e3fd(0x2b7)][_0x13e3fd(0x402)](ISocketService);if(!_0x129e08)throw new Error(_0x13e3fd(0x2f7));const _0x5993e8=_0x129e08['createSocket'](_0x2c2684);if(!_0x5993e8)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x3d8166=new DisposableCollection(),_0xa78f95=new Subject();_0x3d8166['add'](_0x5993e8[_0x13e3fd(0x271)][_0x13e3fd(0x416)](_0xd81838=>_0xa78f95[_0x13e3fd(0x3d5)](_0xd81838))),_0x3d8166[_0x13e3fd(0x258)](toDisposable(()=>_0xa78f95[_0x13e3fd(0x36e)]()));const _0x242ba3=new Subject();_0x3d8166[_0x13e3fd(0x258)](_0x5993e8[_0x13e3fd(0x47b)][_0x13e3fd(0x416)](_0x276484=>_0x242ba3[_0x13e3fd(0x3d5)](_0x276484))),_0x3d8166['add'](toDisposable(()=>_0x242ba3[_0x13e3fd(0x36e)]()));const _0x2af0e2=new Subject();_0x3d8166[_0x13e3fd(0x258)](_0x5993e8[_0x13e3fd(0x3ba)]['subscribe'](_0x255c38=>{const _0x10dde7=deserializeToCombResponse(_0x255c38);_0x2af0e2['next'](_0x10dde7);})),_0x3d8166[_0x13e3fd(0x258)](toDisposable(()=>_0x2af0e2[_0x13e3fd(0x36e)]()));let _0x296ab2;const _0x489964=__name(()=>{var _0x3011af=_0x13e3fd;_0x242ba3[_0x3011af(0x3d5)](new Event(_0x3011af(0x459))),_0xa78f95[_0x3011af(0x3d5)](new CloseEvent(_0x3011af(0x459))),_0x296ab2[_0x3011af(0x3b8)]();},_0x13e3fd(0x1a4));return _0x296ab2={'memberID':'','close$':_0xa78f95[_0x13e3fd(0x3b6)](),'error$':_0x242ba3[_0x13e3fd(0x3b6)](),'open$':_0x5993e8[_0x13e3fd(0x2cd)],'message$':_0x2af0e2[_0x13e3fd(0x3b6)](),'send':__name(_0x1e101e=>{var _0x5c6a20=_0x13e3fd;if(_0x1e101e['cmd']===CombCmd[_0x5c6a20(0x392)]){if(_0x1e101e[_0x5c6a20(0x407)][_0x5c6a20(0x204)]===CollaborationEvent['SUBMIT_CHANGESET']){this[_0x5c6a20(0x36d)](_0x296ab2,_0x1e101e[_0x5c6a20(0x407)])[_0x5c6a20(0x29f)](_0x490bed=>{var _0x5bfcd6=_0x5c6a20;this[_0x5bfcd6(0x298)][_0x5bfcd6(0x2a0)](_0x490bed),_0x489964();});return;}if(_0x1e101e[_0x5c6a20(0x407)]['eventID']===CollaborationEvent[_0x5c6a20(0x2b1)]){const _0x8cc940=_0x1e101e[_0x5c6a20(0x407)];this[_0x5c6a20(0x216)](_0x8cc940)[_0x5c6a20(0x23a)](_0x104a64=>{var _0x40f691=_0x5c6a20;_0x2af0e2[_0x40f691(0x3d5)]({'cmd':CombCmd[_0x40f691(0x39e)],'code':CmdRspCode['OK'],'routeKey':_0x8cc940[_0x40f691(0x407)][_0x40f691(0x436)],'routeType':'','data':{'eventID':CollaborationEvent[_0x40f691(0x3e5)],'data':{'changesets':_0x104a64}}});})[_0x5c6a20(0x29f)](_0x2af6d8=>{var _0x64931d=_0x5c6a20;this[_0x64931d(0x298)]['error'](_0x2af6d8),_0x489964();});return;}}_0x5993e8[_0x5c6a20(0x309)](serializeCombRequest(_0x1e101e));},_0x13e3fd(0x309)),'close':__name(()=>{var _0x216d7b=_0x13e3fd;_0x5993e8[_0x216d7b(0x3b8)](),_0x3d8166[_0x216d7b(0x318)]();},_0x13e3fd(0x3b8))},_0x296ab2;}async[_0x10fcf4(0x36d)](_0x505d4d,_0x5bde5f){var _0x454de9=_0x10fcf4,_0x3f2669,_0x1c3e80;const {unitType:_0x4e55e3,unitID:_0x532149,changeset:_0x5d3bd6}=_0x5bde5f[_0x454de9(0x407)],_0x239598={'unitID':_0x532149,'memberID':_0x505d4d['memberID'],'type':_0x4e55e3,'changeset':parseChangesetToProtocol(_0x5d3bd6)},_0x3e5072=this[_0x454de9(0x2bf)]['getConfig'](COLLAB_SUBMIT_CHANGESET_URL_KEY),_0x1ffb1f=this['_configService'][_0x454de9(0x3ef)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY),_0x3bd695=generateSubmitChangesPath((_0x1c3e80=(_0x3f2669=_0x1ffb1f==null?void 0x0:_0x1ffb1f[_0x454de9(0x47a)])!=null?_0x3f2669:_0x3e5072)!=null?_0x1c3e80:DEFAULT_COLLAB_SUBMIT_CHANGESET_URL,_0x4e55e3,_0x532149);try{await this[_0x454de9(0x464)][_0x454de9(0x40d)](_0x3bd695,{'body':_0x239598});}catch(_0x4bd04f){throw this[_0x454de9(0x298)][_0x454de9(0x2a0)](_0x454de9(0x32f),'submit\x20changeset\x20error!'),_0x4bd04f;}}async['_fetchMissChangesets'](_0xc0080c){var _0x3b1ba9=_0x10fcf4;const {unitID:_0x2da1f7,from:_0x51fa77,to:_0x29e36b,unitType:_0x5959ab}=_0xc0080c[_0x3b1ba9(0x407)];return(await this[_0x3b1ba9(0x4ad)][_0x3b1ba9(0x39f)]({'metadata':void 0x0},{'unitID':_0x2da1f7,'type':_0x5959ab,'from':_0x51fa77,'to':_0x29e36b}))[_0x3b1ba9(0x2ad)];}},__name(_a,_0x10fcf4(0x311)),_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='collaboration_new_changeset';function summaryChangesetSize(_0x476aa2){var _0x20e0c3=_0x10fcf4;return JSON['stringify'](_0x476aa2)[_0x20e0c3(0x20b)];}__name(summaryChangesetSize,_0x10fcf4(0x35f));const _CommentService=class _CommentService{constructor(){var _0x46b899=_0x10fcf4;__publicField(this,_0x46b899(0x1b6),new Subject()),__publicField(this,_0x46b899(0x296),this['_commentUpdate$'][_0x46b899(0x3b6)]());}['onCommentUpdate'](_0x3cf0f0){var _0x4d15f5=_0x10fcf4;this[_0x4d15f5(0x1b6)]['next'](_0x3cf0f0);}};__name(_CommentService,_0x10fcf4(0x355));let CommentService=_CommentService;var __defProp$h=Object[_0x10fcf4(0x2ba)],__getOwnPropDesc$h=Object[_0x10fcf4(0x341)],__decorateClass$h=__name((_0x2257ef,_0x5a8d54,_0x3ec8e6,_0xde507a)=>{var _0xf7264d=_0x10fcf4;for(var _0x567d28=_0xde507a>0x1?void 0x0:_0xde507a?__getOwnPropDesc$h(_0x5a8d54,_0x3ec8e6):_0x5a8d54,_0x1eb0a6=_0x2257ef[_0xf7264d(0x20b)]-0x1,_0x3d4e61;_0x1eb0a6>=0x0;_0x1eb0a6--)(_0x3d4e61=_0x2257ef[_0x1eb0a6])&&(_0x567d28=(_0xde507a?_0x3d4e61(_0x5a8d54,_0x3ec8e6,_0x567d28):_0x3d4e61(_0x567d28))||_0x567d28);return _0xde507a&&_0x567d28&&__defProp$h(_0x5a8d54,_0x3ec8e6,_0x567d28),_0x567d28;},_0x10fcf4(0x455)),__decorateParam$h=__name((_0x29063b,_0x45c93e)=>(_0xbbe9fa,_0xb5d962)=>_0x45c93e(_0xbbe9fa,_0xb5d962,_0x29063b),'__decorateParam$h'),_a2;let MemberService=(_a2=class extends Disposable{constructor(_0x5a8904,_0x4c6641){var _0x45e9fa=_0x10fcf4;super(),__publicField(this,'_roomMembers',new Map()),__publicField(this,'_roomCreated$',new Subject()),(this[_0x45e9fa(0x3a9)]=_0x5a8904,this[_0x45e9fa(0x37f)]=_0x4c6641,this['disposeWithMe'](merge(this['_univerInstanceService']['getTypeOfUnitDisposed$'](UniverInstanceType['UNIVER_SHEET'])['pipe'](map(_0x4737f9=>_0x4737f9[_0x45e9fa(0x2b9)]())),this[_0x45e9fa(0x3a9)]['getTypeOfUnitDisposed$'](UniverInstanceType[_0x45e9fa(0x30c)])[_0x45e9fa(0x18d)](map(_0x419430=>_0x419430['getUnitId']())),this[_0x45e9fa(0x3a9)]['getTypeOfUnitDisposed$'](UniverInstanceType[_0x45e9fa(0x23d)])['pipe'](map(_0x4bdd63=>_0x4bdd63[_0x45e9fa(0x2b9)]())))[_0x45e9fa(0x416)](_0x478815=>this[_0x45e9fa(0x478)](_0x478815))));}[_0x10fcf4(0x31c)](_0x3a95f2){var _0x1256e0=_0x10fcf4;return this[_0x1256e0(0x18a)][_0x1256e0(0x3f8)](_0x3a95f2)?of(this[_0x1256e0(0x18a)][_0x1256e0(0x402)](_0x3a95f2)):this[_0x1256e0(0x1c4)][_0x1256e0(0x18d)](map(_0x44ce06=>{var _0x5d1f97=_0x1256e0;if(_0x44ce06===_0x3a95f2)return this['_roomMembers'][_0x5d1f97(0x402)](_0x44ce06);}));}[_0x10fcf4(0x348)](_0x3f92b3){var _0x755997=_0x10fcf4;this[_0x755997(0x37f)][_0x755997(0x348)](_0x3f92b3);}[_0x10fcf4(0x2f5)](){var _0x448a74=_0x10fcf4;return this[_0x448a74(0x37f)][_0x448a74(0x2f5)]();}['updateMember'](_0x1e38dc,_0x6167b){var _0x1327d6=_0x10fcf4;let _0x425bcd=this[_0x1327d6(0x18a)]['get'](_0x1e38dc);_0x425bcd||(_0x425bcd=new RoomMember(),this[_0x1327d6(0x18a)][_0x1327d6(0x26a)](_0x1e38dc,_0x425bcd),this['_roomCreated$'][_0x1327d6(0x3d5)](_0x1e38dc)),_0x425bcd['updateMember'](_0x6167b);}[_0x10fcf4(0x191)](_0x1cfdd6,_0x59f409){var _0x3aff5c=_0x10fcf4;const _0xc63dfc=this[_0x3aff5c(0x18a)][_0x3aff5c(0x402)](_0x1cfdd6);_0xc63dfc&&_0xc63dfc[_0x3aff5c(0x191)](_0x59f409);}[_0x10fcf4(0x3f0)](_0x3c3e19){var _0xbdc49f=_0x10fcf4;return this[_0xbdc49f(0x18a)]['get'](_0x3c3e19);}[_0x10fcf4(0x1d1)](_0x317de6,_0x37ab8a){var _0x542714=_0x10fcf4;const _0x3b4a30=this[_0x542714(0x18a)][_0x542714(0x402)](_0x317de6);if(_0x3b4a30)return _0x3b4a30[_0x542714(0x1d1)](_0x37ab8a);}[_0x10fcf4(0x478)](_0x33bcd3){var _0xcf7518=_0x10fcf4;const _0x9916e3=this[_0xcf7518(0x18a)][_0xcf7518(0x402)](_0x33bcd3);_0x9916e3&&(_0x9916e3[_0xcf7518(0x318)](),this[_0xcf7518(0x18a)][_0xcf7518(0x2d5)](_0x33bcd3));}[_0x10fcf4(0x318)](){var _0xf15b66=_0x10fcf4;this[_0xf15b66(0x18a)][_0xf15b66(0x260)](_0x6634c6=>_0x6634c6[_0xf15b66(0x318)]()),this['_roomMembers'][_0xf15b66(0x272)](),this[_0xf15b66(0x1c4)]['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 _0x1d4791=_0x10fcf4;super(...arguments),__publicField(this,'_members',new Map()),__publicField(this,_0x1d4791(0x246),new BehaviorSubject(this['_members'])),__publicField(this,'members$',this[_0x1d4791(0x246)]['asObservable']());}[_0x10fcf4(0x318)](){var _0x4dabd4=_0x10fcf4;this[_0x4dabd4(0x2e6)][_0x4dabd4(0x272)]();}[_0x10fcf4(0x1b4)](_0xda827){var _0x5ae584=_0x10fcf4;this['_members'][_0x5ae584(0x26a)](_0xda827[_0x5ae584(0x49f)],_0xda827),this[_0x5ae584(0x43c)]();}['removeMember'](_0x495a2b){var _0x5e1747=_0x10fcf4;this[_0x5e1747(0x2e6)][_0x5e1747(0x2d5)](_0x495a2b);}[_0x10fcf4(0x1d1)](_0x44cf9e){var _0x2e0309=_0x10fcf4;return this['_members'][_0x2e0309(0x402)](_0x44cf9e);}[_0x10fcf4(0x28c)](){var _0x56714c=_0x10fcf4;return Array[_0x56714c(0x363)](this[_0x56714c(0x2e6)][_0x56714c(0x2e3)]());}[_0x10fcf4(0x43c)](){var _0x807341=_0x10fcf4;this[_0x807341(0x246)][_0x807341(0x3d5)](this['_members']);}};__name(_RoomMember,'RoomMember');let RoomMember=_RoomMember;var __defProp$g=Object['defineProperty'],__getOwnPropDesc$g=Object[_0x10fcf4(0x341)],__decorateClass$g=__name((_0xc578e2,_0xab5fb6,_0x3ca6fd,_0x44f155)=>{var _0x278915=_0x10fcf4;for(var _0x1b8ceb=_0x44f155>0x1?void 0x0:_0x44f155?__getOwnPropDesc$g(_0xab5fb6,_0x3ca6fd):_0xab5fb6,_0x45c3a6=_0xc578e2[_0x278915(0x20b)]-0x1,_0x14b2b5;_0x45c3a6>=0x0;_0x45c3a6--)(_0x14b2b5=_0xc578e2[_0x45c3a6])&&(_0x1b8ceb=(_0x44f155?_0x14b2b5(_0xab5fb6,_0x3ca6fd,_0x1b8ceb):_0x14b2b5(_0x1b8ceb))||_0x1b8ceb);return _0x44f155&&_0x1b8ceb&&__defProp$g(_0xab5fb6,_0x3ca6fd,_0x1b8ceb),_0x1b8ceb;},_0x10fcf4(0x1b7)),__decorateParam$g=__name((_0x5b2205,_0x655c1b)=>(_0x5dfda9,_0x5ef738)=>_0x655c1b(_0x5dfda9,_0x5ef738,_0x5b2205),_0x10fcf4(0x470)),SessionStatus=(_0x38ad15=>(_0x38ad15[_0x38ad15['IDLE']=0x0]=_0x10fcf4(0x365),_0x38ad15[_0x38ad15['JOINING']=0x1]=_0x10fcf4(0x44a),_0x38ad15[_0x38ad15['OFFLINE']=0x2]=_0x10fcf4(0x2e4),_0x38ad15[_0x38ad15['ONLINE']=0x3]=_0x10fcf4(0x3b0),_0x38ad15))(SessionStatus||{});const FailedReason={[CmdRspCode[_0x10fcf4(0x32e)]]:_0x10fcf4(0x346),[CmdRspCode[_0x10fcf4(0x19d)]]:'session.room-full',[CmdRspCode['JOIN_ROOM_NOT_EXISTS']]:_0x10fcf4(0x314),[CmdRspCode[_0x10fcf4(0x1ae)]]:_0x10fcf4(0x187),[CmdRspCode[_0x10fcf4(0x46a)]]:'session.room-cnt-exceeds'};var _a3;let CollaborationSession=(_a3=class extends RxDisposable{constructor(_0x9e37a5,_0x4d2f6a,_0x5d25e4,_0x41785b,_0x41dcec,_0xc08109,_0x357967,_0x12b5da,_0x1f466d){var _0xd80cbc=_0x10fcf4;super(),__publicField(this,'_sessionStatus$',new BehaviorSubject(0x0)),__publicField(this,_0xd80cbc(0x215),this[_0xd80cbc(0x3cf)][_0xd80cbc(0x3b6)]()),__publicField(this,'_event$',new Subject()),__publicField(this,'event$',this[_0xd80cbc(0x292)]['asObservable']()),__publicField(this,_0xd80cbc(0x3b3)),__publicField(this,_0xd80cbc(0x26b)),__publicField(this,'_collaborationTimeoutTimer'),__publicField(this,'_shouldReportTelemetry',!0x1),__publicField(this,_0xd80cbc(0x36a),null),(this[_0xd80cbc(0x269)]=_0x9e37a5,this[_0xd80cbc(0x298)]=_0x5d25e4,this['_configService']=_0x41785b,this[_0xd80cbc(0x1e6)]=_0x41dcec,this[_0xd80cbc(0x49c)]=_0xc08109,this[_0xd80cbc(0x34a)]=_0x357967,this[_0xd80cbc(0x4b8)]=_0x12b5da,this['_telemetryService']=_0x1f466d,this[_0xd80cbc(0x360)]=!!this[_0xd80cbc(0x2bc)],_0x4d2f6a[_0xd80cbc(0x18d)](takeUntil(this[_0xd80cbc(0x205)]))[_0xd80cbc(0x416)](_0x214ee5=>{var _0x39f006=_0xd80cbc,_0x3de593;typeof _0x214ee5>'u'||(this[_0x39f006(0x3b3)]=_0x214ee5,_0x214ee5?(this['_joinRoom'](_0x214ee5),this[_0x39f006(0x26b)]=_0x214ee5['message$'][_0x39f006(0x416)](_0x3e545b=>{var _0x33f8e2=_0x39f006;_0x3e545b[_0x33f8e2(0x2ce)]===this['_unitID']&&this[_0x33f8e2(0x249)](_0x3e545b);})):(this[_0x39f006(0x21f)](),this['_sessionStatus$'][_0x39f006(0x3d5)](0x2),(_0x3de593=this[_0x39f006(0x26b)])==null||_0x3de593['unsubscribe'](),this[_0x39f006(0x26b)]=null));}));}get['sessionStatus'](){var _0x334116=_0x10fcf4;return this[_0x334116(0x3cf)][_0x334116(0x452)]();}[_0x10fcf4(0x1b0)](){var _0x512204,_0x57f21d;return(_0x57f21d=(_0x512204=this['_socket'])==null?void 0x0:_0x512204['memberID'])!=null?_0x57f21d:null;}[_0x10fcf4(0x318)](){var _0x46fd3b=_0x10fcf4;super[_0x46fd3b(0x318)](),this[_0x46fd3b(0x205)][_0x46fd3b(0x3d5)](),this[_0x46fd3b(0x205)][_0x46fd3b(0x36e)]();}[_0x10fcf4(0x3b8)](){var _0x1e551b=_0x10fcf4,_0x49750a,_0x420099;this[_0x1e551b(0x21f)](),(_0x49750a=this[_0x1e551b(0x3b3)])==null||_0x49750a[_0x1e551b(0x309)]({'cmd':CombCmd['LEAVE'],'data':{'roomID':this[_0x1e551b(0x269)]}}),(_0x420099=this[_0x1e551b(0x3b3)])==null||_0x420099[_0x1e551b(0x3b8)](),this['_event$'][_0x1e551b(0x36e)](),this[_0x1e551b(0x3cf)][_0x1e551b(0x36e)](),this['dispose']();}['_onCombEvent'](_0x4eb967){var _0x4955d7=_0x10fcf4;_0x4eb967[_0x4955d7(0x42e)]===CombCmd[_0x4955d7(0x334)]?this['_onJoinRoomEvent'](_0x4eb967):_0x4eb967[_0x4955d7(0x42e)]===CombCmd[_0x4955d7(0x39e)]&&this[_0x4955d7(0x3a5)](_0x4eb967);}['_joinRoom'](_0x2316d4){var _0xef7205=_0x10fcf4;this[_0xef7205(0x3cf)][_0xef7205(0x3d5)](0x1),_0x2316d4[_0xef7205(0x309)]({'cmd':CombCmd[_0xef7205(0x334)],'routeKey':this[_0xef7205(0x269)],'routeType':'','data':{'rooms':[{'roomID':this[_0xef7205(0x269)]}]}});}['_onJoinRoomEvent'](_0x2d9c9b){var _0x1c9941=_0x10fcf4,_0x321261;if(_0x2d9c9b['code']in FailedReason){this[_0x1c9941(0x4b8)][_0x1c9941(0x22f)]({'id':CollaborationUIEventId[_0x1c9941(0x359)],'data':FailedReason[_0x2d9c9b[_0x1c9941(0x3bb)]]}),this[_0x1c9941(0x3cf)]['next'](0x2);return;}this['_sessionStatus$'][_0x1c9941(0x3d5)](0x3);const _0x26f808=(_0x321261=_0x2d9c9b[_0x1c9941(0x407)]['roomInfos'][this['_unitID']])==null?void 0x0:_0x321261[_0x1c9941(0x28d)];_0x26f808&&_0x26f808[_0x1c9941(0x260)](_0x43011e=>this[_0x1c9941(0x49c)]['updateMember'](this['_unitID'],_0x43011e));}[_0x10fcf4(0x3a5)](_0x4ff122){var _0x437753=_0x10fcf4;try{const _0x4e436b=_0x4ff122[_0x437753(0x407)];switch(_0x4e436b[_0x437753(0x204)]){case CollaborationEvent[_0x437753(0x498)]:this[_0x437753(0x313)](_0x4e436b),this['_event$'][_0x437753(0x3d5)](_0x4e436b);break;case CollaborationEvent[_0x437753(0x217)]:this[_0x437753(0x403)](_0x4e436b),this['_event$'][_0x437753(0x3d5)](_0x4e436b);break;case CollaborationEvent['CHANGESET_ACK']:case CollaborationEvent[_0x437753(0x49b)]:this[_0x437753(0x306)](),this[_0x437753(0x374)](),this['_event$'][_0x437753(0x3d5)](_0x4e436b);break;case CollaborationEvent[_0x437753(0x197)]:this[_0x437753(0x298)][_0x437753(0x2a0)](_0x437753(0x3ad)+JSON['stringify'](_0x4e436b)),this[_0x437753(0x292)][_0x437753(0x3d5)](_0x4e436b);break;case CollaborationEvent[_0x437753(0x29b)]:this['_commentService'][_0x437753(0x411)](_0x4e436b[_0x437753(0x407)]),this[_0x437753(0x292)]['next'](_0x4e436b);break;default:this['_event$'][_0x437753(0x3d5)](_0x4e436b);}}catch(_0x4a44e4){this[_0x437753(0x298)]['error'](_0x4a44e4,_0x4ff122);}}[_0x10fcf4(0x313)](_0x109d5b){var _0x549f1a=_0x10fcf4;this[_0x549f1a(0x49c)][_0x549f1a(0x1b4)](this[_0x549f1a(0x269)],_0x109d5b[_0x549f1a(0x407)]);}['_onUserLeave'](_0x36845d){var _0x2eba1e=_0x10fcf4;this[_0x2eba1e(0x49c)][_0x2eba1e(0x191)](this[_0x2eba1e(0x269)],_0x36845d['data'][_0x2eba1e(0x49f)]);}async[_0x10fcf4(0x309)](_0x592a3f,_0x5dca75){var _0x58fc87=_0x10fcf4;if(this[_0x58fc87(0x20e)]!==0x3||!this['_socket'])throw new Error(_0x58fc87(0x32b));try{_0x592a3f['eventID']===CollaborationEvent[_0x58fc87(0x444)]&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x58fc87(0x394)](_0x592a3f)),this[_0x58fc87(0x3b3)]['send']({'cmd':CombCmd[_0x58fc87(0x392)],'routeKey':_0x5dca75,'routeType':'','data':_0x592a3f});}catch(_0x41f0c1){this['_logService'][_0x58fc87(0x2a0)](_0x41f0c1);}}[_0x10fcf4(0x45b)](){var _0x51bb3e=_0x10fcf4,_0x56b1f0;this[_0x51bb3e(0x468)]=setTimeout(()=>{var _0x254c01=_0x51bb3e;this[_0x254c01(0x468)]=null,this[_0x254c01(0x4b8)][_0x254c01(0x22f)]({'id':CollaborationUIEventId[_0x254c01(0x4b7)]});},(_0x56b1f0=this[_0x51bb3e(0x2bf)][_0x51bb3e(0x3ef)](HEARTBEAT_TIMEOUT_KEY))!=null?_0x56b1f0:DEFAULT_HEARTBEAT_TIMEOUT);}[_0x10fcf4(0x374)](){var _0x5f1a31=_0x10fcf4;this[_0x5f1a31(0x468)]&&(clearTimeout(this[_0x5f1a31(0x468)]),this[_0x5f1a31(0x468)]=null);}['_startTelemetryCollaborationNewChangeset'](_0x560637){var _0x25d1b1=_0x10fcf4;if(!this['_shouldReportTelemetry'])return;const {data:_0x35f113}=_0x560637,{unitID:_0x5236fc,changeset:_0x1275a8}=_0x35f113,{mutations:_0x5545b1,type:_0x48480a}=_0x1275a8;this['_telemetryInfo']={'unitId':_0x5236fc,'type':_0x48480a,'startTime':performance[_0x25d1b1(0x40c)](),'stopTime':0x0,'duration':0x0,'size':summaryChangesetSize(_0x5545b1)};}[_0x10fcf4(0x306)](){var _0x4bacc8=_0x10fcf4;if(this['_shouldReportTelemetry']){if(!this[_0x4bacc8(0x36a)]){this['_logService'][_0x4bacc8(0x2a0)]('[CollaborationSession]',_0x4bacc8(0x381));return;}this[_0x4bacc8(0x36a)]['stopTime']=performance[_0x4bacc8(0x40c)](),this[_0x4bacc8(0x36a)]['duration']=this[_0x4bacc8(0x36a)][_0x4bacc8(0x2b8)]-this[_0x4bacc8(0x36a)]['startTime'],this['_telemetryService'][_0x4bacc8(0x1db)](TELEMETRY_COLLABORATION_NEW_CHANGESET,this[_0x4bacc8(0x36a)]),this['_telemetryInfo']=null;}}[_0x10fcf4(0x21f)](){var _0x103d99=_0x10fcf4;this[_0x103d99(0x36a)]=null;}},__name(_a3,_0x10fcf4(0x186)),_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[_0x10fcf4(0x2ba)],__getOwnPropDesc$f=Object[_0x10fcf4(0x341)],__decorateClass$f=__name((_0x179092,_0x2bd24e,_0x4f97f2,_0x435700)=>{var _0x18ec84=_0x10fcf4;for(var _0x20dd84=_0x435700>0x1?void 0x0:_0x435700?__getOwnPropDesc$f(_0x2bd24e,_0x4f97f2):_0x2bd24e,_0x366b72=_0x179092[_0x18ec84(0x20b)]-0x1,_0x31d5dc;_0x366b72>=0x0;_0x366b72--)(_0x31d5dc=_0x179092[_0x366b72])&&(_0x20dd84=(_0x435700?_0x31d5dc(_0x2bd24e,_0x4f97f2,_0x20dd84):_0x31d5dc(_0x20dd84))||_0x20dd84);return _0x435700&&_0x20dd84&&__defProp$f(_0x2bd24e,_0x4f97f2,_0x20dd84),_0x20dd84;},_0x10fcf4(0x30a)),__decorateParam$f=__name((_0x1ac804,_0x1a4578)=>(_0x176895,_0x56aee7)=>_0x1a4578(_0x176895,_0x56aee7,_0x1ac804),_0x10fcf4(0x393)),_a4;let CollaborationSessionService=(_a4=class extends Disposable{constructor(_0x483b5d,_0x209655,_0x23203f,_0x256653,_0x50ba87,_0x4db66e,_0x5bc8be){var _0x4c4434=_0x10fcf4;super(),__publicField(this,_0x4c4434(0x420),new BehaviorSubject(void 0x0)),__publicField(this,_0x4c4434(0x4aa),this[_0x4c4434(0x420)][_0x4c4434(0x3b6)]()),__publicField(this,'_candidateSocket',null),__publicField(this,_0x4c4434(0x36f),new Map()),__publicField(this,_0x4c4434(0x273),new BehaviorSubject(SessionStatus[_0x4c4434(0x365)])),__publicField(this,'status$',this[_0x4c4434(0x273)][_0x4c4434(0x3b6)]()),__publicField(this,_0x4c4434(0x218),!0x1),__publicField(this,'_retryConnectingTimer'),__publicField(this,_0x4c4434(0x2e7),0x0),__publicField(this,_0x4c4434(0x3f3)),__publicField(this,_0x4c4434(0x445)),(this[_0x4c4434(0x2b7)]=_0x483b5d,this[_0x4c4434(0x298)]=_0x209655,this[_0x4c4434(0x2bf)]=_0x23203f,this[_0x4c4434(0x3e0)]=_0x256653,this[_0x4c4434(0x1ca)]=_0x50ba87,this[_0x4c4434(0x4b8)]=_0x4db66e,this[_0x4c4434(0x301)]=_0x5bc8be,this['_listenToNetworkCondition']());}get[_0x10fcf4(0x3b3)](){var _0xbd6abd=_0x10fcf4;return this['_socket$'][_0xbd6abd(0x452)]();}[_0x10fcf4(0x194)](){var _0x16af19=_0x10fcf4;this[_0x16af19(0x301)]&&this['disposeWithMe'](this[_0x16af19(0x301)][_0x16af19(0x26f)][_0x16af19(0x416)](_0x87618=>{var _0x5270b6=_0x16af19;_0x87618&&!this[_0x5270b6(0x3b3)]&&this[_0x5270b6(0x3df)](),_0x87618||this[_0x5270b6(0x2d7)]();}));}[_0x10fcf4(0x318)](){var _0x5a9f5f=_0x10fcf4;super[_0x5a9f5f(0x318)](),this[_0x5a9f5f(0x36f)][_0x5a9f5f(0x260)](_0x21e7e8=>_0x21e7e8[_0x5a9f5f(0x318)]()),this[_0x5a9f5f(0x36f)][_0x5a9f5f(0x272)](),this['_status$'][_0x5a9f5f(0x36e)]();}async[_0x10fcf4(0x242)](_0x2f45f1){var _0x47c3b2=_0x10fcf4;if(this['_sessions']['has'](_0x2f45f1))return this['_sessions'][_0x47c3b2(0x402)](_0x2f45f1);this[_0x47c3b2(0x485)]();const _0x2930b5=this[_0x47c3b2(0x2b7)]['createInstance'](CollaborationSession,_0x2f45f1,this[_0x47c3b2(0x420)][_0x47c3b2(0x3b6)]());return this['_sessions'][_0x47c3b2(0x26a)](_0x2f45f1,_0x2930b5),_0x2930b5;}[_0x10fcf4(0x4ba)](_0x44e194){var _0x94a118=_0x10fcf4,_0x453787;const _0x55d349=this[_0x94a118(0x36f)][_0x94a118(0x402)](_0x44e194);_0x55d349&&(this[_0x94a118(0x36f)][_0x94a118(0x2d5)](_0x44e194),_0x55d349[_0x94a118(0x3b8)]()),this[_0x94a118(0x36f)][_0x94a118(0x44d)]||(_0x453787=this[_0x94a118(0x3b3)])==null||_0x453787[_0x94a118(0x3b8)]();}['reconnect'](){var _0x50584c=_0x10fcf4;this[_0x50584c(0x2e7)]=0x0,this[_0x50584c(0x417)]!=null&&(clearTimeout(this[_0x50584c(0x417)]),this[_0x50584c(0x417)]=null),this[_0x50584c(0x1d3)]();}async[_0x10fcf4(0x383)](){var _0x2631e3=_0x10fcf4,_0x303e79,_0x5543b7,_0x5e89f9;const _0x193f88=this[_0x2631e3(0x2bf)][_0x2631e3(0x3ef)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY),_0x2140ba=(_0x303e79=_0x193f88==null?void 0x0:_0x193f88[_0x2631e3(0x3af)])!=null?_0x303e79:DEFAULT_WS_SESSION_TICKET_URL;return(_0x5e89f9=(_0x5543b7=(await this[_0x2631e3(0x1ca)][_0x2631e3(0x402)](_0x2140ba,{'headers':{'Content-Type':_0x2631e3(0x2a8)}}))[_0x2631e3(0x46e)])==null?void 0x0:_0x5543b7[_0x2631e3(0x1b9)])!=null?_0x5e89f9:'';}[_0x10fcf4(0x353)](_0x5e2c2e){var _0x9a7422=_0x10fcf4,_0x35029f,_0x277c11;const _0x206330=this[_0x9a7422(0x2bf)][_0x9a7422(0x3ef)](COLLAB_WEB_SOCKET_URL_KEY),_0x33c56c=this[_0x9a7422(0x2bf)][_0x9a7422(0x3ef)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY),_0x4feab3=(_0x277c11=(_0x35029f=_0x33c56c==null?void 0x0:_0x33c56c[_0x9a7422(0x18f)])!=null?_0x35029f:_0x206330)!=null?_0x277c11:DEFAULT_COLLAB_WEB_SOCKET_URL,_0x27161c=typeof window>'u'?new URL(_0x4feab3):new URL(_0x4feab3,window['location']['origin']);_0x27161c[_0x9a7422(0x264)]['set'](_0x9a7422(0x244),_0x5e2c2e);const _0x1d4f31=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x9a7422(0x3ac)][_0x9a7422(0x44b)]);return _0x1d4f31[_0x9a7422(0x402)](_0x9a7422(0x4b3))&&_0x27161c['searchParams'][_0x9a7422(0x26a)](_0x9a7422(0x4b3),_0x1d4f31['get'](_0x9a7422(0x4b3))),_0x27161c[_0x9a7422(0x279)]();}async['_createSocket'](){var _0x1a3c42=_0x10fcf4;const _0x4db00a=await this['_getSessionTicket'](),_0x2994eb=this[_0x1a3c42(0x353)](_0x4db00a),_0x346198=this[_0x1a3c42(0x3e0)]['createSocket'](_0x2994eb);return this['_candidateSocket']=_0x346198,_0x346198;}async[_0x10fcf4(0x485)](){var _0x35fe19=_0x10fcf4,_0x3c498b,_0x2c09e;try{const _0x28a072=(_0x2c09e=(_0x3c498b=this['_socket'])!=null?_0x3c498b:this[_0x35fe19(0x333)])!=null?_0x2c09e:await this[_0x35fe19(0x37e)]();if(_0x28a072){const _0x53d15d=_0x28a072[_0x35fe19(0x309)];_0x28a072['send']=_0x1d2b5f=>(this['_rescheduleHeartbeat'](),_0x53d15d[_0x35fe19(0x418)](_0x28a072,[_0x1d2b5f])),_0x28a072['message$'][_0x35fe19(0x416)](_0xc7c6fc=>this[_0x35fe19(0x33d)](_0x28a072,_0xc7c6fc)),_0x28a072['error$'][_0x35fe19(0x18d)](take(0x1))['subscribe'](_0x15f515=>this[_0x35fe19(0x298)][_0x35fe19(0x2a0)](_0x35fe19(0x316),_0x15f515)),_0x28a072[_0x35fe19(0x2cd)][_0x35fe19(0x18d)](take(0x1))[_0x35fe19(0x416)](()=>{var _0x1a104b=_0x35fe19;this[_0x1a104b(0x373)](_0x28a072);}),_0x28a072[_0x35fe19(0x271)][_0x35fe19(0x18d)](take(0x1))[_0x35fe19(0x416)](_0xfebd5f=>{var _0x87af25=_0x35fe19;this[_0x87af25(0x298)][_0x87af25(0x388)]('[CollaborationSessionService]','socket\x20close',_0xfebd5f),this['_onConnectionFailed']();});}}catch(_0x404864){this['_logService'][_0x35fe19(0x2a0)](_0x404864),this[_0x35fe19(0x277)]();}}[_0x10fcf4(0x373)](_0x12a2a7){var _0x3b23e4=_0x10fcf4;this['_logService'][_0x3b23e4(0x388)](_0x3b23e4(0x3f1),_0x3b23e4(0x201)),_0x12a2a7[_0x3b23e4(0x309)]({'cmd':CombCmd[_0x3b23e4(0x1f5)]}),this[_0x3b23e4(0x2f1)]();}[_0x10fcf4(0x2d7)](){var _0x44dac3=_0x10fcf4;this[_0x44dac3(0x218)]=!0x1,this[_0x44dac3(0x333)]=null,this[_0x44dac3(0x273)][_0x44dac3(0x3d5)](SessionStatus[_0x44dac3(0x2e4)]),this[_0x44dac3(0x420)]['next'](null),this['_clearTimeoutTimer'](),this[_0x44dac3(0x343)]();}[_0x10fcf4(0x277)](){var _0x476438=_0x10fcf4,_0x5b6670;this[_0x476438(0x2d7)](),this[_0x476438(0x2e7)]<((_0x5b6670=this[_0x476438(0x2bf)][_0x476438(0x3ef)](RETRY_CONNECTING_MAX_COUNT_KEY))!=null?_0x5b6670:DEFAULT_RETRY_CONNECTING_MAX_COUNT)?(this[_0x476438(0x4b8)]['emitEvent']({'id':CollaborationUIEventId['SOCKET_FAILED_RETRY']}),this['_tryReconnect']()):this[_0x476438(0x4b8)][_0x476438(0x22f)]({'id':CollaborationUIEventId[_0x476438(0x2af)]});}[_0x10fcf4(0x1d3)](){var _0x3e555=_0x10fcf4,_0x467927;const _0x492b49=this['_retryCount'],_0xb4d5af=this[_0x3e555(0x2bf)][_0x3e555(0x3ef)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY),_0x4aa3dc=_0x492b49===0x0?0x0:((_0x467927=_0xb4d5af==null?void 0x0:_0xb4d5af['retryConnectingInterval'])!=null?_0x467927:DEFAULT_RETRY_CONNECTING_INTERVAL)*0x2**_0x492b49;this[_0x3e555(0x417)]=setTimeout(()=>{var _0x5a9334=_0x3e555;clearTimeout(this['_retryConnectingTimer']),this[_0x5a9334(0x417)]=null,this[_0x5a9334(0x485)]();},_0x4aa3dc),this[_0x3e555(0x2e7)]+=0x1;}['_onMessage'](_0x5628aa,_0x4fffde){var _0x2d0821=_0x10fcf4;const {cmd:_0x50904e}=_0x4fffde;_0x50904e===CombCmd['HELLO']&&!this[_0x2d0821(0x218)]&&(_0x5628aa[_0x2d0821(0x49f)]=_0x4fffde[_0x2d0821(0x407)][_0x2d0821(0x49f)],this[_0x2d0821(0x420)][_0x2d0821(0x3d5)](_0x5628aa),this[_0x2d0821(0x273)]['next'](SessionStatus['ONLINE']),this[_0x2d0821(0x218)]=!0x0,this[_0x2d0821(0x333)]=null),_0x50904e===CombCmd[_0x2d0821(0x23c)]&&this['_clearTimeoutTimer'](),this[_0x2d0821(0x2f1)]();}[_0x10fcf4(0x2f1)](){var _0x3d4270=_0x10fcf4,_0x444e6b;this[_0x3d4270(0x343)](),this['_sendHeartbeatTimer']=setTimeout(()=>this[_0x3d4270(0x3e9)](),(_0x444e6b=this[_0x3d4270(0x2bf)]['getConfig'](HEARTBEAT_INTERVAL_KEY))!=null?_0x444e6b:DEFAULT_HEARTBEAT_INTERVAL);}[_0x10fcf4(0x3e9)](){var _0x165194=_0x10fcf4;this[_0x165194(0x3b3)][_0x165194(0x309)]({'cmd':CombCmd[_0x165194(0x23c)]}),this[_0x165194(0x366)]();}[_0x10fcf4(0x366)](){var _0x5220a3=_0x10fcf4,_0x526be8;this[_0x5220a3(0x445)]=setTimeout(()=>this[_0x5220a3(0x277)](),(_0x526be8=this[_0x5220a3(0x2bf)]['getConfig'](HEARTBEAT_TIMEOUT_KEY))!=null?_0x526be8:DEFAULT_HEARTBEAT_TIMEOUT);}[_0x10fcf4(0x343)](){var _0x488b11=_0x10fcf4;this[_0x488b11(0x3f3)]!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this[_0x488b11(0x3f3)]=null);}[_0x10fcf4(0x487)](){var _0x1f1d08=_0x10fcf4;this[_0x1f1d08(0x445)]!=null&&(clearTimeout(this[_0x1f1d08(0x445)]),this[_0x1f1d08(0x445)]=null);}},__name(_a4,_0x10fcf4(0x20f)),_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[_0x10fcf4(0x1b3)]((i+0x100)['toString'](0x10)['slice'](0x1));function unsafeStringify(_0x1e0cef,_0x4c9c92=0x0){return(byteToHex[_0x1e0cef[_0x4c9c92+0x0]]+byteToHex[_0x1e0cef[_0x4c9c92+0x1]]+byteToHex[_0x1e0cef[_0x4c9c92+0x2]]+byteToHex[_0x1e0cef[_0x4c9c92+0x3]]+'-'+byteToHex[_0x1e0cef[_0x4c9c92+0x4]]+byteToHex[_0x1e0cef[_0x4c9c92+0x5]]+'-'+byteToHex[_0x1e0cef[_0x4c9c92+0x6]]+byteToHex[_0x1e0cef[_0x4c9c92+0x7]]+'-'+byteToHex[_0x1e0cef[_0x4c9c92+0x8]]+byteToHex[_0x1e0cef[_0x4c9c92+0x9]]+'-'+byteToHex[_0x1e0cef[_0x4c9c92+0xa]]+byteToHex[_0x1e0cef[_0x4c9c92+0xb]]+byteToHex[_0x1e0cef[_0x4c9c92+0xc]]+byteToHex[_0x1e0cef[_0x4c9c92+0xd]]+byteToHex[_0x1e0cef[_0x4c9c92+0xe]]+byteToHex[_0x1e0cef[_0x4c9c92+0xf]])['toLowerCase']();}__name(unsafeStringify,'unsafeStringify');let getRandomValues;const rnds8=new Uint8Array(0x10);function rng(){var _0x536327=_0x10fcf4;if(!getRandomValues){if(typeof crypto>'u'||!crypto['getRandomValues'])throw new Error(_0x536327(0x210));getRandomValues=crypto[_0x536327(0x24b)][_0x536327(0x4ab)](crypto);}return getRandomValues(rnds8);}__name(rng,'rng');const randomUUID=typeof crypto<'u'&&crypto[_0x10fcf4(0x1a1)]&&crypto[_0x10fcf4(0x1a1)][_0x10fcf4(0x4ab)](crypto),native={'randomUUID':randomUUID};function v4(_0x21d195,_0xfbb708,_0x303a53){var _0x3ed89d=_0x10fcf4,_0xca0c29,_0xccd81f,_0x14c2d1;if(native[_0x3ed89d(0x1a1)]&&!_0x21d195)return native[_0x3ed89d(0x1a1)]();_0x21d195=_0x21d195||{};const _0xd32191=(_0x14c2d1=(_0xccd81f=_0x21d195[_0x3ed89d(0x47c)])!=null?_0xccd81f:(_0xca0c29=_0x21d195[_0x3ed89d(0x19e)])==null?void 0x0:_0xca0c29[_0x3ed89d(0x21a)](_0x21d195))!=null?_0x14c2d1:rng();if(_0xd32191['length']<0x10)throw new Error(_0x3ed89d(0x3f2));return _0xd32191[0x6]=_0xd32191[0x6]&0xf|0x40,_0xd32191[0x8]=_0xd32191[0x8]&0x3f|0x80,unsafeStringify(_0xd32191);}__name(v4,'v4');const ILocalCacheService=createIdentifier(_0x10fcf4(0x251));function getLocalCacheKey(_0x1c22d1){var _0xbbe8ee=_0x10fcf4;return _0xbbe8ee(0x2ed)+_0x1c22d1;}__name(getLocalCacheKey,_0x10fcf4(0x41c));var __defProp$e=Object[_0x10fcf4(0x2ba)],__getOwnPropDesc$e=Object[_0x10fcf4(0x341)],__decorateClass$e=__name((_0x4160e1,_0x5864b1,_0x78214c,_0x2ad4e0)=>{var _0x4ffd53=_0x10fcf4;for(var _0x58a682=_0x2ad4e0>0x1?void 0x0:_0x2ad4e0?__getOwnPropDesc$e(_0x5864b1,_0x78214c):_0x5864b1,_0x57f972=_0x4160e1[_0x4ffd53(0x20b)]-0x1,_0x4b9879;_0x57f972>=0x0;_0x57f972--)(_0x4b9879=_0x4160e1[_0x57f972])&&(_0x58a682=(_0x2ad4e0?_0x4b9879(_0x5864b1,_0x78214c,_0x58a682):_0x4b9879(_0x58a682))||_0x58a682);return _0x2ad4e0&&_0x58a682&&__defProp$e(_0x5864b1,_0x78214c,_0x58a682),_0x58a682;},'__decorateClass$e'),__decorateParam$e=__name((_0x3732e5,_0x1b14dc)=>(_0x5b8f90,_0x1d5d28)=>_0x1b14dc(_0x5b8f90,_0x1d5d28,_0x3732e5),_0x10fcf4(0x496));function extractTargetFromFirstChangeset(_0x5e89f0){var _0x5b9b9c=_0x10fcf4;const {unitID:_0x2d42cd,mutations:_0x5dc381}=_0x5e89f0;return{'unitId':_0x2d42cd,'subUnitId':_0x5dc381[0x0][_0x5b9b9c(0x2d2)][_0x5b9b9c(0x261)]};}__name(extractTargetFromFirstChangeset,_0x10fcf4(0x2eb));var _a5;let SheetTransformSelectionsService=(_a5=class{constructor(_0x501c06,_0x395fa3,_0x1cb124){var _0x566a4c=_0x10fcf4;this[_0x566a4c(0x2b7)]=_0x501c06,this[_0x566a4c(0x453)]=_0x395fa3,this[_0x566a4c(0x2ab)]=_0x1cb124;}[_0x10fcf4(0x28e)](_0x492e30){var _0x48ce87=_0x10fcf4,_0x3f5327,_0x152307,_0x45ef3c,_0x157e96;const _0x2f545e=this['_injector'][_0x48ce87(0x402)](SheetsSelectionsService),{unitId:_0x5012a2,subUnitId:_0x9ddd03}=extractTargetFromFirstChangeset(_0x492e30),_0x297d69=_0x2f545e==null?void 0x0:_0x2f545e['getWorkbookSelections'](_0x5012a2)[_0x48ce87(0x319)](),_0x481e51=(_0x152307=(_0x3f5327=this['_instanceService'][_0x48ce87(0x47d)](_0x5012a2))==null?void 0x0:_0x3f5327[_0x48ce87(0x223)]())==null?void 0x0:_0x152307[_0x48ce87(0x255)]();if(_0x297d69[_0x48ce87(0x20b)]===0x0||!_0x5012a2||!_0x9ddd03)return;const _0x56c5a9=[{'id':SetSelectionsOperation['id'],'params':{'unitId':_0x5012a2,'subUnitId':_0x481e51,'selections':Tools[_0x48ce87(0x27d)](_0x297d69)}}],_0x52459a=this['_transformService'][_0x48ce87(0x266)](_0x492e30,_0x56c5a9);if(!isTransformMutationsWithChangesetSuccess(_0x52459a))throw _0x52459a['error'];const _0x129ae1=(_0x157e96=(_0x45ef3c=_0x52459a[_0x48ce87(0x2fd)][0x0])==null?void 0x0:_0x45ef3c[_0x48ce87(0x2d2)])==null?void 0x0:_0x157e96[_0x48ce87(0x192)];if(Array['isArray'](_0x129ae1)&&_0x129ae1[_0x48ce87(0x20b)]){if(_0x129ae1['length']===_0x56c5a9[0x0][_0x48ce87(0x2d2)][_0x48ce87(0x192)][_0x48ce87(0x20b)]&&_0x129ae1['every']((_0x391ea3,_0x28e3ce)=>Rectangle['equals'](_0x391ea3['range'],_0x56c5a9[0x0][_0x48ce87(0x2d2)][_0x48ce87(0x192)][_0x28e3ce]['range'])))return;this[_0x48ce87(0x2b7)][_0x48ce87(0x402)](ICommandService)[_0x48ce87(0x447)](SetSelectionsOperation['id'],{'unitId':_0x5012a2,'subUnitId':_0x481e51,'selections':_0x129ae1});}}},__name(_a5,_0x10fcf4(0x202)),_a5);SheetTransformSelectionsService=__decorateClass$e([__decorateParam$e(0x0,Inject(Injector)),__decorateParam$e(0x1,ITransformService),__decorateParam$e(0x2,IUniverInstanceService)],SheetTransformSelectionsService);const ISingleActiveUnitService=createIdentifier(_0x10fcf4(0x248));var UnitStatus=(_0x45c75d=>(_0x45c75d[_0x45c75d[_0x10fcf4(0x36b)]=0x0]=_0x10fcf4(0x36b),_0x45c75d[_0x45c75d[_0x10fcf4(0x29e)]=0x1]=_0x10fcf4(0x29e),_0x45c75d))(UnitStatus||{});const SINGLE_CHANGESET_MUTATIONS=new Set([InsertSheetMutation['id']]);function assembleSheetChangeset(_0x390267,_0x276367,_0x16c2ba,_0x9abc7d,_0x372b8e){var _0x37d236=_0x10fcf4,_0x40476c,_0x559a17,_0x334e9b,_0x35fdc1;const _0x5835ef=[];for(const _0x2078e0 of _0x390267)if(SINGLE_CHANGESET_MUTATIONS[_0x37d236(0x3f8)](_0x2078e0['id'])){if(_0x5835ef[_0x37d236(0x20b)]>0x0)break;_0x5835ef[_0x37d236(0x1b3)](_0x2078e0);break;}else _0x5835ef[_0x37d236(0x1b3)](_0x2078e0);const _0x4ac053=(_0x559a17=(_0x40476c=_0x372b8e[_0x37d236(0x2f5)]())==null?void 0x0:_0x40476c[_0x37d236(0x39d)])!=null?_0x559a17:_0x37d236(0x401),_0x5731dd=(_0x35fdc1=(_0x334e9b=_0x372b8e[_0x37d236(0x2f5)]())==null?void 0x0:_0x334e9b[_0x37d236(0x49f)])!=null?_0x35fdc1:'unknown';return{'changeset':{'unitID':_0x276367,'type':mapDocumentTypeToUniverType(_0x16c2ba[_0x37d236(0x1e9)](_0x276367)),'baseRev':_0x9abc7d[_0x37d236(0x492)](_0x276367),'revision':0x0,'userID':_0x4ac053,'memberID':_0x5731dd,'mutations':_0x5835ef},'pendingMutations':_0x390267[_0x37d236(0x4a8)](_0x5835ef[_0x37d236(0x20b)])};}__name(assembleSheetChangeset,_0x10fcf4(0x1fc));function assembleDocChangeset(_0x21398e,_0x342881,_0x21855c,_0x18bed5,_0x192568){var _0x162401=_0x10fcf4,_0x383d14,_0x92de72,_0x3e4229,_0x29ccc4;const _0x16816a=[_0x21398e['reduce']((_0x36ad84,_0x222e15)=>{var _0xd2070=_0x1531,_0x3fcb4c;const {id:_0x226110}=_0x36ad84,{id:_0x54cba2,type:_0x3258d9}=_0x222e15,_0x411b83=(_0x3fcb4c=_0x36ad84['params'])!=null?_0x3fcb4c:{'actions':null},_0x77dbf7=_0x222e15[_0xd2070(0x2d2)];if(_0x226110&&_0x226110!==_0x54cba2)throw new Error(_0xd2070(0x211)+_0x226110+_0xd2070(0x377)+_0x54cba2+'.');return{..._0x36ad84,'id':_0x54cba2,'type':_0x3258d9,'params':{'unitId':_0x77dbf7['unitId'],'textRanges':_0x77dbf7[_0xd2070(0x310)],'actions':JSONX[_0xd2070(0x2de)](_0x411b83['actions'],_0x77dbf7['actions'])}};},{})],_0x51efb5=(_0x92de72=(_0x383d14=_0x192568[_0x162401(0x2f5)]())==null?void 0x0:_0x383d14[_0x162401(0x39d)])!=null?_0x92de72:_0x162401(0x401),_0x6ed1b1=(_0x29ccc4=(_0x3e4229=_0x192568[_0x162401(0x2f5)]())==null?void 0x0:_0x3e4229['memberID'])!=null?_0x29ccc4:_0x162401(0x401);return{'changeset':{'unitID':_0x342881,'type':mapDocumentTypeToUniverType(_0x21855c['getUnitType'](_0x342881)),'baseRev':_0x18bed5['getCurrentRevOfUnit'](_0x342881),'revision':0x0,'userID':_0x51efb5,'memberID':_0x6ed1b1,'mutations':_0x16816a},'pendingMutations':[]};}__name(assembleDocChangeset,_0x10fcf4(0x1bd));function createTimerObservable$(_0x23e1e5,_0x32d19a){var _0x3e1373=_0x10fcf4;const _0xee224c=new ReplaySubject(0x1);return setTimeout(()=>_0xee224c[_0x3e1373(0x3d5)](_0x32d19a),_0x23e1e5),_0xee224c[_0x3e1373(0x3b6)]()[_0x3e1373(0x18d)](_0x369b3a(0x1));}__name(createTimerObservable$,_0x10fcf4(0x42f));const EmptyMutationInfo={'id':EmptyMutation['id'],'type':CommandType[_0x10fcf4(0x48e)],'params':{}};var __defProp$d=Object[_0x10fcf4(0x2ba)],__getOwnPropDesc$d=Object[_0x10fcf4(0x341)],__decorateClass$d=__name((_0x48be2f,_0x496e4f,_0x9bca47,_0x17516e)=>{var _0x3bde29=_0x10fcf4;for(var _0x565836=_0x17516e>0x1?void 0x0:_0x17516e?__getOwnPropDesc$d(_0x496e4f,_0x9bca47):_0x496e4f,_0x4a11c7=_0x48be2f[_0x3bde29(0x20b)]-0x1,_0x29cef8;_0x4a11c7>=0x0;_0x4a11c7--)(_0x29cef8=_0x48be2f[_0x4a11c7])&&(_0x565836=(_0x17516e?_0x29cef8(_0x496e4f,_0x9bca47,_0x565836):_0x29cef8(_0x565836))||_0x565836);return _0x17516e&&_0x565836&&__defProp$d(_0x496e4f,_0x9bca47,_0x565836),_0x565836;},_0x10fcf4(0x312)),__decorateParam$d=__name((_0x1f2b1f,_0x3b68d9)=>(_0x38b610,_0x29472f)=>_0x3b68d9(_0x38b610,_0x29472f,_0x1f2b1f),_0x10fcf4(0x426)),CollaborationStatus=(_0x2a1b14=>(_0x2a1b14[_0x10fcf4(0x1ed)]='not_collab',_0x2a1b14[_0x10fcf4(0x352)]=_0x10fcf4(0x3cc),_0x2a1b14[_0x10fcf4(0x424)]=_0x10fcf4(0x1f3),_0x2a1b14['AWAITING']='awaiting',_0x2a1b14['AWAITING_WITH_PENDING']=_0x10fcf4(0x247),_0x2a1b14['FETCH_MISS']=_0x10fcf4(0x1df),_0x2a1b14[_0x10fcf4(0x367)]=_0x10fcf4(0x1fb),_0x2a1b14['OFFLINE']=_0x10fcf4(0x338),_0x2a1b14))(CollaborationStatus||{});const MAX_RETRY_TIMEOUT=0xea60,_CollaborationState=class _CollaborationState{constructor(_0x2129ca,_0x30ff12,_0x5634bd,_0x374f80,_0x23379a,_0x20f63e,_0x7271e8,_0x1409d2,_0x49b179){var _0x539351=_0x10fcf4;__publicField(this,_0x539351(0x1cb),null),__publicField(this,_0x539351(0x3f6),[]),(this[_0x539351(0x436)]=_0x2129ca,this['type']=_0x30ff12,this[_0x539351(0x240)]=_0x23379a,this['_commandService']=_0x20f63e,this[_0x539351(0x19a)]=_0x7271e8,this['_revisionService']=_0x1409d2,this[_0x539351(0x331)]=_0x49b179,this[_0x539351(0x1cb)]=_0x5634bd,this[_0x539351(0x3f6)]=_0x374f80);}[_0x10fcf4(0x2c5)](_0x4b8612){var _0x5e5567=_0x10fcf4;const _0x1f8b05=this['_revisionService'][_0x5e5567(0x492)](this[_0x5e5567(0x436)]);return _0x4b8612[_0x5e5567(0x2fe)]>_0x1f8b05+0x1?(this['_handler'][_0x5e5567(0x1af)]({'from':_0x1f8b05,'to':_0x4b8612['revision']-0x1}),!0x0):!0x1;}[_0x10fcf4(0x19c)](_0x426c7e){var _0x1aace5=_0x10fcf4;this['_undoRedoService'][_0x1aace5(0x25e)](this[_0x1aace5(0x436)],_0x426c7e);}[_0x10fcf4(0x33c)](_0xdfde8){var _0x31bf60=_0x10fcf4,_0x9ca3c0,_0x4220ab;(_0x4220ab=(_0x9ca3c0=this[_0x31bf60(0x240)])['onTransformSelections'])==null||_0x4220ab[_0x31bf60(0x21a)](_0x9ca3c0,_0xdfde8);}[_0x10fcf4(0x49d)](_0x482cde){var _0x3cfbc2=_0x10fcf4,_0x4bc7d0,_0x3df073;return(_0x3df073=(_0x4bc7d0=this[_0x3cfbc2(0x240)])[_0x3cfbc2(0x37a)])==null?void 0x0:_0x3df073['call'](_0x4bc7d0,_0x482cde);}['_transformStateCache'](_0x2da644){var _0x400ffa=_0x10fcf4,_0x1eac74,_0x28ef8b;return(_0x28ef8b=(_0x1eac74=this['_handler'])[_0x400ffa(0x1f6)])==null?void 0x0:_0x28ef8b[_0x400ffa(0x21a)](_0x1eac74,_0x2da644);}[_0x10fcf4(0x294)](_0x5d8ca4){var _0x5633d5=_0x10fcf4,_0x2b0bb7,_0x349517,_0x5ee282;return(_0x5ee282=(_0x349517=(_0x2b0bb7=this[_0x5633d5(0x240)])[_0x5633d5(0x3b1)])==null?void 0x0:_0x349517[_0x5633d5(0x21a)](_0x2b0bb7,_0x5d8ca4))!=null?_0x5ee282:_0x5d8ca4;}['_transformRemoteChangesetByStateCache'](_0x7e58e6){var _0x24c7b1=_0x10fcf4,_0x30a742,_0x3f7528,_0x31dd8e;return(_0x31dd8e=(_0x3f7528=(_0x30a742=this['_handler'])[_0x24c7b1(0x2ea)])==null?void 0x0:_0x3f7528[_0x24c7b1(0x21a)](_0x30a742,_0x7e58e6))!=null?_0x31dd8e:_0x7e58e6;}[_0x10fcf4(0x39b)](_0x70e850){var _0x50f74c=_0x10fcf4,_0x2592cd,_0x53005c;if(this[_0x50f74c(0x48b)]===UniverType[_0x50f74c(0x30c)]){const {unitID:_0x558a36,mutations:_0x39c45f,memberID:_0x3c05ef}=_0x70e850,_0x50ef3=_0x39c45f[0x0][_0x50f74c(0x2d2)][_0x50f74c(0x310)];Array[_0x50f74c(0x370)](_0x50ef3)&&_0x50ef3[_0x50f74c(0x20b)]>0x0&&((_0x53005c=(_0x2592cd=this['_handler'])['onSyncEditingCollabCursor'])==null||_0x53005c[_0x50f74c(0x21a)](_0x2592cd,{'unitID':_0x558a36,'memberID':_0x3c05ef,'textRanges':_0x50ef3}));}}[_0x10fcf4(0x2cb)](){var _0x1488be=_0x10fcf4,_0x10f639;(_0x10f639=this['_localCacheService'])==null||_0x10f639[_0x1488be(0x300)](this[_0x1488be(0x436)],this[_0x1488be(0x48b)],this[_0x1488be(0x1cb)],this[_0x1488be(0x3f6)]);}[_0x10fcf4(0x330)](){return this['_revisionService']['getCurrentRevOfUnit'](this['unitID']);}[_0x10fcf4(0x437)](){var _0x2dd58b=_0x10fcf4;this[_0x2dd58b(0x30d)][_0x2dd58b(0x290)](this['unitID']);}['_executeRemoteChangeset'](_0x2a08af){var _0x3e828b=_0x10fcf4,_0x4c1f82;let _0x4020fa=this[_0x3e828b(0x294)](_0x2a08af);_0x4020fa=this['_transformRemoteChangesetByStateCache'](_0x4020fa);const _0x457abb=sequenceExecute(_0x4020fa[_0x3e828b(0x448)],this['_commandService'],{'fromCollab':!0x0});if(!_0x457abb[_0x3e828b(0x356)])throw _0x457abb[_0x3e828b(0x2a0)]instanceof Error?_0x457abb[_0x3e828b(0x2a0)]:new Error((_0x4c1f82=_0x457abb['error'])!=null?_0x4c1f82:_0x3e828b(0x21d));this['_transformIMECache'](_0x4020fa),this[_0x3e828b(0x475)](_0x4020fa),this[_0x3e828b(0x19c)](_0x2a08af),this['_transformSelections'](_0x4020fa),this[_0x3e828b(0x39b)](_0x4020fa),this[_0x3e828b(0x437)]();}};__name(_CollaborationState,'CollaborationState');let CollaborationState=_CollaborationState;var _a6;let SyncedState=(_a6=class extends CollaborationState{constructor(_0xc6efec,_0x1c5e17,_0x4a811a,_0x203dd6,_0x5f0561,_0x5a8bb7,_0xb0a33f,_0x3d7e04,_0x4b7455,_0x42a1b7){var _0x3a15f2=_0x10fcf4;super(_0xc6efec,_0x1c5e17,null,[],_0x4a811a,_0xb0a33f,_0x5a8bb7,_0x203dd6,_0x42a1b7),__publicField(this,_0x3a15f2(0x228),_0x3a15f2(0x3cc)),(this['_injector']=_0x5f0561,this[_0x3a15f2(0x298)]=_0x3d7e04,this[_0x3a15f2(0x453)]=_0x4b7455,this[_0x3a15f2(0x38d)]=_0x42a1b7);}[_0x10fcf4(0x297)](_0x2951c5){var _0x4fc3c4=_0x10fcf4;const _0x4cad3e=this[_0x4fc3c4(0x2b7)]['createInstance'](PendingState,this['unitID'],this[_0x4fc3c4(0x48b)],[_0x2951c5],this[_0x4fc3c4(0x240)]);return _0x4cad3e['_schedule'](),_0x4cad3e['_updateLocalCache'](),_0x4cad3e;}[_0x10fcf4(0x3b7)](_0x2fcde3){var _0x4c401f=_0x10fcf4;if(this[_0x4c401f(0x2c5)](_0x2fcde3))return this['_injector'][_0x4c401f(0x42b)](FetchingMissState,this[_0x4c401f(0x436)],this[_0x4c401f(0x48b)],null,[],null,[_0x2fcde3],this['_handler']);try{const _0x114017=this[_0x4c401f(0x453)]['transformMutationsWithChangeset'](_0x2fcde3,[EmptyMutationInfo]);if(isTransformMutationsWithChangesetSuccess(_0x114017)){const {c1Prime:_0x417944}=_0x114017;return this[_0x4c401f(0x2df)](_0x417944),this;}throw _0x114017[_0x4c401f(0x2a0)];}catch(_0xb58e95){return this[_0x4c401f(0x298)][_0x4c401f(0x2a0)](_0xb58e95),this['_onConflict'](!0x1);}}[_0x10fcf4(0x2aa)](_0x54e673){var _0x171126=_0x10fcf4;return this[_0x171126(0x2b7)][_0x171126(0x42b)](ConflictState,this[_0x171126(0x436)],this['type'],null,[],this[_0x171126(0x240)],_0x54e673);}[_0x10fcf4(0x237)](){var _0x4848d8=_0x10fcf4;throw new Error(_0x4848d8(0x494));}[_0x10fcf4(0x48d)](){var _0x15125b=_0x10fcf4;throw new Error(_0x15125b(0x1de));}[_0x10fcf4(0x460)](){return this;}[_0x10fcf4(0x2fb)](){var _0x5c3747=_0x10fcf4;return this[_0x5c3747(0x2b7)][_0x5c3747(0x42b)](OfflineState,this[_0x5c3747(0x436)],this[_0x5c3747(0x48b)],null,[],this['_handler']);}[_0x10fcf4(0x2b3)](){return this;}[_0x10fcf4(0x239)](){var _0x502016=_0x10fcf4;throw new Error(_0x502016(0x25f));}[_0x10fcf4(0x18c)](){var _0x4a23e0=_0x10fcf4;const _0x13f132=this[_0x4a23e0(0x30d)][_0x4a23e0(0x492)](this['unitID']);return this[_0x4a23e0(0x240)][_0x4a23e0(0x1af)]({'from':_0x13f132,'to':0x0}),this[_0x4a23e0(0x2b7)]['createInstance'](FetchingMissState,this['unitID'],this[_0x4a23e0(0x48b)],null,[],null,[],this[_0x4a23e0(0x240)]);}},__name(_a6,_0x10fcf4(0x357)),_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(_0xcfec3b,_0x32a7ed,_0x5deed2,_0x46ab5a,_0x162101,_0x3c1b59,_0x26c51d,_0x2e2709,_0x263a0a,_0x59bb23,_0x2f2e42,_0x2fdc37,_0x295d08,_0x469a14){var _0x428fe4=_0x10fcf4;super(_0xcfec3b,_0x32a7ed,null,_0x5deed2,_0x46ab5a,_0x263a0a,_0x295d08,_0x3c1b59,_0x469a14),__publicField(this,'status',_0x428fe4(0x1f3)),__publicField(this,'_scheduleCompleteTimestamp',null),__publicField(this,_0x428fe4(0x25c),null),(this['_injector']=_0x162101,this[_0x428fe4(0x49c)]=_0x26c51d,this[_0x428fe4(0x298)]=_0x2e2709,this['_configService']=_0x59bb23,this[_0x428fe4(0x453)]=_0x2f2e42,this[_0x428fe4(0x3a9)]=_0x2fdc37);}['appendMutation'](_0x4f0407){var _0x437f9e=_0x10fcf4;return this[_0x437f9e(0x3f6)]['push'](_0x4f0407),this['_updateLocalCache'](),this;}[_0x10fcf4(0x3b7)](_0x36b7b9){var _0x43178b=_0x10fcf4;if(this['_checkMissing'](_0x36b7b9))return this[_0x43178b(0x30e)](),this[_0x43178b(0x2b7)][_0x43178b(0x42b)](FetchingMissState,this['unitID'],this[_0x43178b(0x48b)],null,this[_0x43178b(0x3f6)],null,[_0x36b7b9],this[_0x43178b(0x240)]);try{const _0x551218=this[_0x43178b(0x453)]['transformMutationsWithChangeset'](_0x36b7b9,this['_pendingMutations']);if(isTransformMutationsWithChangesetSuccess(_0x551218)){const {c1Prime:_0x5333a2,m2Prime:_0x1deb98}=_0x551218;this['_executeRemoteChangeset'](_0x5333a2);const _0x3106c0=this['_injector'][_0x43178b(0x42b)](PendingState,this[_0x43178b(0x436)],this[_0x43178b(0x48b)],_0x1deb98,this[_0x43178b(0x240)]);this[_0x43178b(0x30e)]();const _0x56b83c=new Date()[_0x43178b(0x270)](),_0x31629f=this[_0x43178b(0x2bd)]?Math[_0x43178b(0x47e)](this['_scheduleCompleteTimestamp']-_0x56b83c,0x0):this[_0x43178b(0x42a)]();return _0x3106c0[_0x43178b(0x412)](_0x31629f),_0x3106c0;}throw _0x551218[_0x43178b(0x2a0)];}catch(_0x581d5f){return this[_0x43178b(0x298)][_0x43178b(0x2a0)](_0x581d5f),this[_0x43178b(0x2aa)](!0x1);}}[_0x10fcf4(0x237)](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x10fcf4(0x48d)](){var _0x379f57=_0x10fcf4;throw new Error(_0x379f57(0x21c));}[_0x10fcf4(0x460)](){return this;}[_0x10fcf4(0x2fb)](){var _0x2ea28b=_0x10fcf4;return this[_0x2ea28b(0x30e)](),this[_0x2ea28b(0x2b7)]['createInstance'](OfflineState,this[_0x2ea28b(0x436)],this[_0x2ea28b(0x48b)],null,this[_0x2ea28b(0x3f6)],this['_handler']);}[_0x10fcf4(0x2b3)](){return this;}[_0x10fcf4(0x412)](_0xcc2c35){var _0x1c5248=_0x10fcf4;const _0x38a7ca=_0xcc2c35!=null?_0xcc2c35:this[_0x1c5248(0x42a)]();this[_0x1c5248(0x2bd)]=new Date()[_0x1c5248(0x270)]()+_0x38a7ca,this['_sendingTimer']=setTimeout(()=>{var _0x385c69=_0x1c5248;this[_0x385c69(0x30e)]();let _0x131d51=null;switch(this['type']){case UniverType[_0x385c69(0x3a7)]:{_0x131d51=assembleSheetChangeset(this[_0x385c69(0x3f6)],this[_0x385c69(0x436)],this['_univerInstanceService'],this[_0x385c69(0x30d)],this[_0x385c69(0x49c)]);break;}case UniverType[_0x385c69(0x30c)]:{this[_0x385c69(0x3f6)][_0x385c69(0x1b2)](_0x50e45e=>_0x50e45e['id']===RichTextEditingMutation['id'])?_0x131d51=assembleDocChangeset(this[_0x385c69(0x3f6)],this[_0x385c69(0x436)],this['_univerInstanceService'],this[_0x385c69(0x30d)],this[_0x385c69(0x49c)]):_0x131d51=assembleSheetChangeset(this[_0x385c69(0x3f6)],this[_0x385c69(0x436)],this[_0x385c69(0x3a9)],this[_0x385c69(0x30d)],this[_0x385c69(0x49c)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x385c69(0x48b)]+'\x20in\x20_schedule.');}const {changeset:_0x423ecd,pendingMutations:_0x1491ce}=_0x131d51;this['_handler'][_0x385c69(0x3b5)](_0x423ecd);const _0x4e5cd6=_0x1491ce[_0x385c69(0x20b)]?this['_injector'][_0x385c69(0x42b)](AwaitingWithPendingState,this[_0x385c69(0x436)],this['type'],_0x423ecd,_0x1491ce,this[_0x385c69(0x240)],void 0x0):this[_0x385c69(0x2b7)][_0x385c69(0x42b)](AwaitingState,this[_0x385c69(0x436)],this[_0x385c69(0x48b)],_0x423ecd,this[_0x385c69(0x240)]);_0x4e5cd6[_0x385c69(0x2cb)](),this[_0x385c69(0x240)][_0x385c69(0x480)](this,_0x4e5cd6);},_0x38a7ca);}[_0x10fcf4(0x42a)](){var _0x371704=_0x10fcf4,_0x465eb3;const _0x357e0f=this[_0x371704(0x2bf)][_0x371704(0x3ef)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x465eb3=_0x357e0f==null?void 0x0:_0x357e0f[_0x371704(0x287)])!=null?_0x465eb3:DEFAULT_SEND_CHANGESET_TIMEOUT;}[_0x10fcf4(0x239)](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x10fcf4(0x30e)](){var _0x50c093=_0x10fcf4;this[_0x50c093(0x25c)]!=null&&(clearTimeout(this['_sendingTimer']),this[_0x50c093(0x25c)]=null);}[_0x10fcf4(0x2aa)](_0x344cb9){var _0x506ac2=_0x10fcf4;return this[_0x506ac2(0x30e)](),this[_0x506ac2(0x2b7)]['createInstance'](ConflictState,this['unitID'],this[_0x506ac2(0x48b)],null,this['_pendingMutations'],this[_0x506ac2(0x240)],_0x344cb9);}},__name(_a7,_0x10fcf4(0x2e0)),_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(_0x2d6c67,_0x37190a,_0x2e41e2,_0x252628,_0xa07b78,_0x46b8ce,_0xdb31c6,_0x3900f0,_0x43b9fd,_0x198b53,_0x4d5548){var _0x446d7b=_0x10fcf4;super(_0x2d6c67,_0x37190a,_0x2e41e2,[],_0x252628,_0xdb31c6,_0x198b53,_0x46b8ce,_0x4d5548),__publicField(this,_0x446d7b(0x228),'awaiting'),__publicField(this,_0x446d7b(0x4af),0x0),__publicField(this,_0x446d7b(0x329)),__publicField(this,'_sender'),(this['_injector']=_0xa07b78,this['_logService']=_0x3900f0,this[_0x446d7b(0x453)]=_0x43b9fd);}[_0x10fcf4(0x297)](_0x5e1f69){var _0x5d08ac=_0x10fcf4;this['_clearScheduledTask']();const _0x34b118=this[_0x5d08ac(0x2b7)][_0x5d08ac(0x42b)](AwaitingWithPendingState,this[_0x5d08ac(0x436)],this[_0x5d08ac(0x48b)],this['_awaitingChangeset'],[_0x5e1f69],this[_0x5d08ac(0x240)],this[_0x5d08ac(0x329)]);return _0x34b118['_updateLocalCache'](),_0x34b118;}[_0x10fcf4(0x3b7)](_0x47c793){var _0x256ec0=_0x10fcf4;if(this[_0x256ec0(0x2c5)](_0x47c793))return this[_0x256ec0(0x30e)](),this['_injector']['createInstance'](FetchingMissState,this[_0x256ec0(0x436)],this['type'],this[_0x256ec0(0x1cb)],[],null,[_0x47c793],this[_0x256ec0(0x240)]);try{const _0x48a0aa=this['_transformService'][_0x256ec0(0x458)]([_0x47c793],[this[_0x256ec0(0x1cb)]],!0x1);if(isTransformChangesetsSuccess(_0x48a0aa)){const {c1Prime:_0x5948d9,c2Prime:_0xaf1311}=_0x48a0aa;this['_executeRemoteChangeset'](_0x5948d9[0x0]),_0xaf1311[0x0]['baseRev']=this[_0x256ec0(0x330)](),this[_0x256ec0(0x30e)]();const _0xf56e72=this['_injector'][_0x256ec0(0x42b)](AwaitingState,this[_0x256ec0(0x436)],this[_0x256ec0(0x48b)],_0xaf1311[0x0],this[_0x256ec0(0x240)]);return _0xf56e72[_0x256ec0(0x2cb)](),_0xf56e72;}return this['_onConflict'](!0x1);}catch(_0x1740fd){return this[_0x256ec0(0x298)][_0x256ec0(0x2a0)](_0x1740fd),this[_0x256ec0(0x2aa)](!0x1);}}[_0x10fcf4(0x237)](_0x329b31){var _0x204374=_0x10fcf4;this[_0x204374(0x30e)]();const _0x4b2e22=this['_revisionService'][_0x204374(0x492)](this[_0x204374(0x436)]);if(_0x329b31[_0x204374(0x2fe)]<_0x4b2e22-0x1)return this;if(this[_0x204374(0x2c5)](_0x329b31))return this['_injector'][_0x204374(0x42b)](FetchingMissState,this['unitID'],this[_0x204374(0x48b)],null,[],this['_awaitingChangeset'],[],this[_0x204374(0x240)]);this[_0x204374(0x437)]();const _0x5e0f22=this[_0x204374(0x2b7)][_0x204374(0x42b)](SyncedState,this[_0x204374(0x436)],this[_0x204374(0x48b)],this[_0x204374(0x240)]);return _0x5e0f22['_updateLocalCache'](),_0x5e0f22;}[_0x10fcf4(0x48d)](_0x16e5b5){var _0x24752e=_0x10fcf4;return this[_0x24752e(0x2aa)](!!(_0x16e5b5!=null&&_0x16e5b5[_0x24752e(0x1b1)]));}[_0x10fcf4(0x460)](_0x4d68e6){var _0x1aac9d=_0x10fcf4;return this['_resendTimeout']>MAX_RETRY_TIMEOUT?this[_0x1aac9d(0x2fb)]():(this[_0x1aac9d(0x329)]=createTimerObservable$(this[_0x1aac9d(0x4af)],{'timeout':this['_resendTimeout'],'reqId':_0x4d68e6[_0x1aac9d(0x21e)]}),this[_0x1aac9d(0x339)]=this['_resendTimer'][_0x1aac9d(0x416)](({reqId:_0x48118d,timeout:_0x555368})=>{this['_resendWithTimeout'](_0x48118d,_0x555368);}),this);}['toggleOffline'](){var _0x764036=_0x10fcf4;return this[_0x764036(0x30e)](),this[_0x764036(0x2b7)][_0x764036(0x42b)](OfflineState,this[_0x764036(0x436)],this[_0x764036(0x48b)],this[_0x764036(0x1cb)],[],this[_0x764036(0x240)]);}[_0x10fcf4(0x2b3)](){return this;}['resend'](){var _0x554381=_0x10fcf4;this[_0x554381(0x240)][_0x554381(0x3b5)](this[_0x554381(0x1cb)]);}['_onConflict'](_0x3e932c){var _0x1295c0=_0x10fcf4;return this['_clearScheduledTask'](),this[_0x1295c0(0x2b7)][_0x1295c0(0x42b)](ConflictState,this[_0x1295c0(0x436)],this['type'],this['_awaitingChangeset'],[],this[_0x1295c0(0x240)],_0x3e932c);}[_0x10fcf4(0x286)](_0x54d54c,_0x3e1d33){var _0x3dfd36=_0x10fcf4,_0x57f138;_0x54d54c===((_0x57f138=this[_0x3dfd36(0x1cb)])==null?void 0x0:_0x57f138['reqId'])&&(this[_0x3dfd36(0x239)](),this[_0x3dfd36(0x4af)]=_0x3e1d33===0x0?0x3e8:_0x3e1d33*0x2);}[_0x10fcf4(0x30e)](){var _0x5f0d5e=_0x10fcf4,_0x3353e5;(_0x3353e5=this[_0x5f0d5e(0x339)])==null||_0x3353e5[_0x5f0d5e(0x224)](),this[_0x5f0d5e(0x4af)]=0x0;}},__name(_a8,_0x10fcf4(0x3d8)),_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(_0x11b89a,_0x2bb932,_0x1166b7,_0x2cb426,_0x1b918c,_0x159039,_0x48080d,_0x1da3a5,_0x504cdc,_0x451c49,_0x4d9091,_0x245e8a,_0x1baa04){var _0x2c4991=_0x10fcf4;super(_0x11b89a,_0x2bb932,_0x1166b7,_0x2cb426,_0x1b918c,_0x504cdc,_0x245e8a,_0x1da3a5,_0x1baa04),__publicField(this,'status','awaiting_with_pending'),__publicField(this,_0x2c4991(0x4af),0x0),__publicField(this,_0x2c4991(0x329)),__publicField(this,'_sender'),(this[_0x2c4991(0x2b7)]=_0x48080d,this[_0x2c4991(0x298)]=_0x451c49,this[_0x2c4991(0x453)]=_0x4d9091,this[_0x2c4991(0x38d)]=_0x1baa04,_0x159039&&(this[_0x2c4991(0x329)]=_0x159039,this['_sender']=this[_0x2c4991(0x329)][_0x2c4991(0x416)](({reqId:_0x506f2a,timeout:_0x3b76e3})=>{var _0x141318=_0x2c4991;this[_0x141318(0x286)](_0x506f2a,_0x3b76e3);})));}[_0x10fcf4(0x297)](_0x578e41){var _0x49eae4=_0x10fcf4;return this[_0x49eae4(0x3f6)]['push'](_0x578e41),this;}[_0x10fcf4(0x3b7)](_0x42ce4c){var _0x588db6=_0x10fcf4;if(this[_0x588db6(0x2c5)](_0x42ce4c))return this[_0x588db6(0x30e)](),this[_0x588db6(0x2b7)][_0x588db6(0x42b)](FetchingMissState,this[_0x588db6(0x436)],this['type'],this[_0x588db6(0x1cb)],this[_0x588db6(0x3f6)],null,[_0x42ce4c],this[_0x588db6(0x240)]);try{const _0x178db3=this[_0x588db6(0x453)][_0x588db6(0x458)]([_0x42ce4c],[this[_0x588db6(0x1cb)]],!0x1);if(isTransformChangesetsSuccess(_0x178db3)){const {c1Prime:_0x1d6b80,c2Prime:_0x1eccf2}=_0x178db3,_0x28fd61=this['_transformService'][_0x588db6(0x266)](_0x1d6b80[0x0],this[_0x588db6(0x3f6)]);if(isTransformMutationsWithChangesetSuccess(_0x28fd61)){const {c1Prime:_0x55a044,m2Prime:_0x16d001}=_0x28fd61;return this[_0x588db6(0x2df)](_0x55a044),_0x1eccf2[0x0][_0x588db6(0x1f8)]=this['_getCurrentRevision'](),this[_0x588db6(0x30e)](),this['_injector'][_0x588db6(0x42b)](AwaitingWithPendingState,this[_0x588db6(0x436)],this[_0x588db6(0x48b)],_0x1eccf2[0x0],_0x16d001,this[_0x588db6(0x240)],void 0x0);}throw _0x28fd61[_0x588db6(0x2a0)];}throw _0x178db3['error'];}catch(_0x107f4b){return this['_logService'][_0x588db6(0x2a0)](_0x107f4b),this['_onConflict'](!0x1);}}[_0x10fcf4(0x237)](_0x1f96bc){var _0x1becc1=_0x10fcf4;if(this[_0x1becc1(0x30e)](),this[_0x1becc1(0x2c5)](_0x1f96bc))return this[_0x1becc1(0x2b7)]['createInstance'](FetchingMissState,this[_0x1becc1(0x436)],this['type'],null,this['_pendingMutations'],this[_0x1becc1(0x1cb)],[],this[_0x1becc1(0x240)]);this[_0x1becc1(0x437)]();const _0x560191=this[_0x1becc1(0x2b7)][_0x1becc1(0x42b)](PendingState,this[_0x1becc1(0x436)],this[_0x1becc1(0x48b)],this[_0x1becc1(0x3f6)],this[_0x1becc1(0x240)]);return _0x560191[_0x1becc1(0x412)](),_0x560191[_0x1becc1(0x2cb)](),_0x560191;}['onRemoteRej'](_0x23dd9c){var _0x26141d=_0x10fcf4;return this[_0x26141d(0x2aa)](!!(_0x23dd9c!=null&&_0x23dd9c['isPermissionRej']));}['onRemoteRetry'](_0x4d2ae8){var _0x56de7c=_0x10fcf4;return this[_0x56de7c(0x4af)]>MAX_RETRY_TIMEOUT?this[_0x56de7c(0x2fb)]():(this[_0x56de7c(0x329)]=createTimerObservable$(this[_0x56de7c(0x4af)],{'timeout':this[_0x56de7c(0x4af)],'reqId':_0x4d2ae8[_0x56de7c(0x21e)]}),this[_0x56de7c(0x339)]=this['_resendTimer'][_0x56de7c(0x416)](({reqId:_0x3c5d05,timeout:_0x332d20})=>{var _0xdfab47=_0x56de7c;this[_0xdfab47(0x286)](_0x3c5d05,_0x332d20);}),this);}[_0x10fcf4(0x2fb)](){var _0x1c06d7=_0x10fcf4;return this[_0x1c06d7(0x30e)](),this[_0x1c06d7(0x2b7)]['createInstance'](OfflineState,this[_0x1c06d7(0x436)],this['type'],this[_0x1c06d7(0x1cb)],this[_0x1c06d7(0x3f6)],this['_handler']);}['toggleOnline'](){return this;}[_0x10fcf4(0x239)](){var _0x27f0bd=_0x10fcf4;this[_0x27f0bd(0x240)][_0x27f0bd(0x3b5)](this[_0x27f0bd(0x1cb)]);}[_0x10fcf4(0x2aa)](_0x1fccdc){var _0x264dbc=_0x10fcf4;return this[_0x264dbc(0x30e)](),this['_injector'][_0x264dbc(0x42b)](ConflictState,this[_0x264dbc(0x436)],this[_0x264dbc(0x48b)],null,this[_0x264dbc(0x3f6)],this[_0x264dbc(0x240)],_0x1fccdc);}[_0x10fcf4(0x286)](_0x43515c,_0x2e8605){var _0x405dca=_0x10fcf4,_0x2a8347;_0x43515c===((_0x2a8347=this[_0x405dca(0x1cb)])==null?void 0x0:_0x2a8347['reqId'])&&(this['resend'](),this['_resendTimeout']=_0x2e8605===0x0?0x3e8:_0x2e8605*0x2);}[_0x10fcf4(0x30e)](){var _0x3f728a=_0x10fcf4,_0x49d317;(_0x49d317=this[_0x3f728a(0x339)])==null||_0x49d317['unsubscribe'](),this[_0x3f728a(0x4af)]=0x0;}},__name(_a9,_0x10fcf4(0x405)),_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(_0x1cd2a1,_0x4a5f78,_0x17028c,_0x2475cf,_0x55224b,_0xf8a823=!0x1,_0x3c6255,_0x5a6208,_0x574908,_0x161faf,_0x576159,_0xfb0ca2,_0x39c46e){var _0x3575aa=_0x10fcf4;super(_0x1cd2a1,_0x4a5f78,_0x17028c,_0x2475cf,_0x55224b,_0x5a6208,_0x574908,_0x161faf,_0x39c46e),__publicField(this,'status',_0x3575aa(0x1fb)),(this[_0x3575aa(0x2f4)]=_0xf8a823,this['_permissionService']=_0x3c6255,this['_localeService']=_0x576159,this[_0x3575aa(0x4b8)]=_0xfb0ca2,this['localCacheService']=_0x39c46e,this[_0x3575aa(0x3da)](),this[_0x3575aa(0x3dc)](),this[_0x3575aa(0x2f2)]());}[_0x10fcf4(0x297)](){return this;}['onRemoteChangeset'](){return this;}[_0x10fcf4(0x237)](){return this;}['onRemoteRej'](){return this;}[_0x10fcf4(0x460)](){return this;}[_0x10fcf4(0x2fb)](){return this;}[_0x10fcf4(0x2b3)](){return this;}[_0x10fcf4(0x239)](){var _0x3382d0=_0x10fcf4;throw new Error(_0x3382d0(0x1a6));}[_0x10fcf4(0x3dc)](){var _0x5b8920=_0x10fcf4,_0x59dda4;(_0x59dda4=this[_0x5b8920(0x331)])==null||_0x59dda4[_0x5b8920(0x300)](this['unitID'],this[_0x5b8920(0x48b)],null,[]);}[_0x10fcf4(0x3da)](){var _0x2205e7=_0x10fcf4;this[_0x2205e7(0x2f4)]?this[_0x2205e7(0x4b8)][_0x2205e7(0x22f)]({'id':CollaborationUIEventId['PERMISSION_DENIED']}):this['_collaborationUIEventService'][_0x2205e7(0x22f)]({'id':CollaborationUIEventId['CONFLICT']});}[_0x10fcf4(0x2f2)](){var _0x508bc1=_0x10fcf4;this['_permissionService'][_0x508bc1(0x371)](new WorkbookEditablePermission(this[_0x508bc1(0x436)])['id'],!0x1);}},__name(_a10,_0x10fcf4(0x2a6)),_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(_0x596adf,_0x435064,_0x47d155,_0x575f0f,_0x143059,_0x1c6eea,_0x42d55d,_0x414ed8,_0x43e3a8,_0x4688ed){var _0x2a073d=_0x10fcf4;super(_0x596adf,_0x435064,_0x47d155,_0x575f0f,_0x143059,_0x414ed8,_0x43e3a8,_0x42d55d,_0x4688ed),__publicField(this,'status',_0x2a073d(0x338)),this['_injector']=_0x1c6eea;}[_0x10fcf4(0x297)](_0x10a11b){var _0x491a2e=_0x10fcf4;return this['_pendingMutations'][_0x491a2e(0x1b3)](_0x10a11b),this[_0x491a2e(0x2cb)](),this;}['onRemoteChangeset'](_0x4df246){var _0x412de7=_0x10fcf4;throw new Error(_0x412de7(0x1fa));}['onRemoteAck'](){var _0x232cbe=_0x10fcf4;throw new Error(_0x232cbe(0x2c3));}[_0x10fcf4(0x48d)](){var _0x496e28=_0x10fcf4;throw new Error(_0x496e28(0x336));}[_0x10fcf4(0x460)](){return this;}[_0x10fcf4(0x2fb)](){return this;}[_0x10fcf4(0x2b3)](){var _0x560e96=_0x10fcf4;const {_injector:_0x2e5bc5,_pendingMutations:_0x168fcf,_awaitingChangeset:_0x785499,unitID:_0x117853,_handler:_0x2e11e9,type:_0x43d8d7}=this,_0x49524d=createOnlineState(_0x2e5bc5,_0x117853,_0x43d8d7,_0x785499,_0x168fcf,_0x2e11e9);return _0x49524d instanceof PendingState?_0x49524d[_0x560e96(0x412)]():(_0x49524d instanceof AwaitingWithPendingState||_0x49524d instanceof AwaitingState)&&_0x49524d[_0x560e96(0x239)](),_0x49524d;}['resend'](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}},__name(_a11,'OfflineState'),_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(_0x3c00ce,_0x482531,_0x240a81,_0x18e2cd,_0x5cb2ee,_0x55feb9,_0x53df67,_0x29f224,_0x4025b2,_0x597b98,_0x5e7d70,_0x5af903,_0x167c54,_0x364960){var _0xd8ba21=_0x10fcf4;super(_0x3c00ce,_0x482531,_0x240a81,_0x18e2cd,_0x53df67,_0x5e7d70,_0x5af903,_0x4025b2,_0x364960),__publicField(this,'status',_0xd8ba21(0x1df)),(this[_0xd8ba21(0x45c)]=_0x5cb2ee,this['_queuedRemoteChangesets']=_0x55feb9,this[_0xd8ba21(0x2b7)]=_0x29f224,this[_0xd8ba21(0x298)]=_0x597b98,this[_0xd8ba21(0x453)]=_0x167c54,this[_0xd8ba21(0x38d)]=_0x364960);}[_0x10fcf4(0x1d6)](_0x3d805c){var _0x3d200c=_0x10fcf4;try{const _0x451451=[..._0x3d805c,...this[_0x3d200c(0x2f6)]],_0x2f98b7=[this['_awaitingChangeset']||this[_0x3d200c(0x45c)]][_0x3d200c(0x450)](_0x5604ff=>!!_0x5604ff);let _0x1339cc,_0x4bf700;if(_0x2f98b7[_0x3d200c(0x20b)]){const _0x41ba80=this['_transformService'][_0x3d200c(0x458)](_0x451451,_0x2f98b7,!0x1);if(!isTransformChangesetsSuccess(_0x41ba80))throw _0x41ba80[_0x3d200c(0x2a0)];_0x1339cc=_0x41ba80[_0x3d200c(0x493)],_0x4bf700=_0x41ba80[_0x3d200c(0x32a)];}else _0x1339cc=_0x451451,_0x4bf700=[];let _0x190978=this['_pendingMutations'];_0x1339cc[_0x3d200c(0x260)](_0x363778=>{var _0x58bf4f=_0x3d200c;let _0x2b8259;if(_0x190978['length']){const _0x49ec0e=this['_transformService'][_0x58bf4f(0x266)](_0x363778,_0x190978);if(!isTransformMutationsWithChangesetSuccess(_0x49ec0e))throw _0x49ec0e[_0x58bf4f(0x2a0)];_0x2b8259=_0x49ec0e[_0x58bf4f(0x493)],_0x190978=_0x49ec0e[_0x58bf4f(0x2fd)];}else _0x2b8259=_0x363778;this[_0x58bf4f(0x2df)](_0x2b8259);}),this[_0x3d200c(0x45c)]&&this[_0x3d200c(0x437)](),this[_0x3d200c(0x1cb)]&&_0x4bf700[_0x3d200c(0x20b)]&&(_0x4bf700[0x0]['baseRev']=this[_0x3d200c(0x330)]());let _0x54d8be;if(this[_0x3d200c(0x1cb)]&&_0x190978[_0x3d200c(0x20b)]!==0x0)_0x54d8be=this[_0x3d200c(0x2b7)][_0x3d200c(0x42b)](AwaitingWithPendingState,this['unitID'],this[_0x3d200c(0x48b)],_0x4bf700[0x0],_0x190978,this['_handler'],void 0x0);else{if(this[_0x3d200c(0x1cb)]&&_0x190978[_0x3d200c(0x20b)]===0x0)_0x4bf700[0x0][_0x3d200c(0x1f8)]=this['_getCurrentRevision'](),_0x54d8be=this[_0x3d200c(0x2b7)]['createInstance'](AwaitingState,this[_0x3d200c(0x436)],this[_0x3d200c(0x48b)],_0x4bf700[0x0],this['_handler']);else{if(_0x190978[_0x3d200c(0x20b)]!==0x0){const _0xae99a4=this[_0x3d200c(0x2b7)][_0x3d200c(0x42b)](PendingState,this['unitID'],this[_0x3d200c(0x48b)],_0x190978,this[_0x3d200c(0x240)]);_0xae99a4[_0x3d200c(0x412)](),_0x54d8be=_0xae99a4;}else _0x54d8be=this[_0x3d200c(0x2b7)][_0x3d200c(0x42b)](SyncedState,this[_0x3d200c(0x436)],this[_0x3d200c(0x48b)],this[_0x3d200c(0x240)]);}}return _0x54d8be[_0x3d200c(0x2cb)](),_0x54d8be;}catch(_0x4c6da7){return this[_0x3d200c(0x298)]['error'](_0x3d200c(0x235),'failed\x20to\x20apply\x20missed\x20changesets!',_0x4c6da7),this[_0x3d200c(0x2b7)][_0x3d200c(0x42b)](ConflictState,this[_0x3d200c(0x436)],this[_0x3d200c(0x48b)],this['_awaitingChangeset'],this[_0x3d200c(0x3f6)],this[_0x3d200c(0x240)],!0x1);}}[_0x10fcf4(0x239)](){var _0x2f7ad4=_0x10fcf4;throw new Error(_0x2f7ad4(0x285));}['appendMutation'](_0xecf845){var _0x4f70e3=_0x10fcf4;return this['_pendingMutations'][_0x4f70e3(0x1b3)](_0xecf845),this;}['onRemoteChangeset'](_0x1e4c59){var _0x10e92a=_0x10fcf4;return this['_queuedRemoteChangesets'][_0x10e92a(0x1b3)](_0x1e4c59),this;}[_0x10fcf4(0x237)](_0x15017f){var _0x2c11f4=_0x10fcf4;if(this[_0x2c11f4(0x1cb)])return this[_0x2c11f4(0x45c)]=this[_0x2c11f4(0x1cb)],this[_0x2c11f4(0x1cb)]=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x10fcf4(0x48d)](_0x309577){var _0x3feb0e=_0x10fcf4;return this[_0x3feb0e(0x2aa)](!!(_0x309577!=null&&_0x309577[_0x3feb0e(0x1b1)]));}[_0x10fcf4(0x460)](){return this;}['toggleOffline'](){var _0x33c7c4=_0x10fcf4;return this['_injector'][_0x33c7c4(0x42b)](OfflineState,this[_0x33c7c4(0x436)],this[_0x33c7c4(0x48b)],this[_0x33c7c4(0x1cb)],this[_0x33c7c4(0x3f6)],this[_0x33c7c4(0x240)]);}[_0x10fcf4(0x2b3)](){return this;}[_0x10fcf4(0x2aa)](_0x5b6f7d){var _0x3b86ff=_0x10fcf4;return this[_0x3b86ff(0x2b7)][_0x3b86ff(0x42b)](ConflictState,this[_0x3b86ff(0x436)],this[_0x3b86ff(0x48b)],this[_0x3b86ff(0x1cb)],this[_0x3b86ff(0x3f6)],this[_0x3b86ff(0x240)],_0x5b6f7d);}},__name(_a12,'FetchingMissState'),_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(_0x106f4b,_0x39fd47,_0x130813,_0x584dd6,_0x2d692b,_0xfec994){var _0x50a5c5=_0x10fcf4;return _0x584dd6&&_0x2d692b[_0x50a5c5(0x20b)]?_0x106f4b[_0x50a5c5(0x42b)](AwaitingWithPendingState,_0x39fd47,_0x130813,_0x584dd6,_0x2d692b,_0xfec994,void 0x0):_0x584dd6?_0x106f4b['createInstance'](AwaitingState,_0x39fd47,_0x130813,_0x584dd6,_0xfec994):_0x2d692b['length']?_0x106f4b[_0x50a5c5(0x42b)](PendingState,_0x39fd47,_0x130813,_0x2d692b,_0xfec994):_0x106f4b[_0x50a5c5(0x42b)](SyncedState,_0x39fd47,_0x130813,_0xfec994);}__name(createOnlineState,_0x10fcf4(0x1fd));var __defProp$c=Object[_0x10fcf4(0x2ba)],__getOwnPropDesc$c=Object[_0x10fcf4(0x341)],__decorateClass$c=__name((_0x16858e,_0xdcd3fb,_0x3196f8,_0x5e9fc1)=>{var _0x4543ea=_0x10fcf4;for(var _0x2e409b=_0x5e9fc1>0x1?void 0x0:_0x5e9fc1?__getOwnPropDesc$c(_0xdcd3fb,_0x3196f8):_0xdcd3fb,_0x438e4d=_0x16858e[_0x4543ea(0x20b)]-0x1,_0x2188ff;_0x438e4d>=0x0;_0x438e4d--)(_0x2188ff=_0x16858e[_0x438e4d])&&(_0x2e409b=(_0x5e9fc1?_0x2188ff(_0xdcd3fb,_0x3196f8,_0x2e409b):_0x2188ff(_0x2e409b))||_0x2e409b);return _0x5e9fc1&&_0x2e409b&&__defProp$c(_0xdcd3fb,_0x3196f8,_0x2e409b),_0x2e409b;},'__decorateClass$c'),__decorateParam$c=__name((_0x5bdcdd,_0x8b24e0)=>(_0x399974,_0x2f9155)=>_0x8b24e0(_0x399974,_0x2f9155,_0x5bdcdd),'__decorateParam$c'),_a13;let CollaborationEntity=(_a13=class extends RxDisposable{constructor(_0x7604ce,_0x1e303f,_0x1094e1,_0x35805e,_0x1a7b7c,_0x384038,_0x3c2ca5,_0x57d9c6,_0xf01903,_0x3d0f3b,_0x57250a,_0x3d757d,_0x3d2643){var _0x5e707c=_0x10fcf4;super(),__publicField(this,'_state$',new BehaviorSubject(null)),__publicField(this,_0x5e707c(0x497),this['_state$'][_0x5e707c(0x3b6)]()),__publicField(this,_0x5e707c(0x2c0)),__publicField(this,_0x5e707c(0x39a),!0x1),__publicField(this,'_changesetSessionId',''),__publicField(this,'_changesetReqId',0x0),__publicField(this,_0x5e707c(0x3cd),this['state$'][_0x5e707c(0x18d)](_0x168a89(_0x10520d=>_0x10520d?_0x10520d['status']:CollaborationStatus['OFFLINE']),shareReplay(0x1))),__publicField(this,_0x5e707c(0x203),!0x1),__publicField(this,_0x5e707c(0x3c1),[]),(this['unitID']=_0x7604ce,this[_0x5e707c(0x391)]=_0x1e303f,this[_0x5e707c(0x2b4)]=_0x1094e1,this[_0x5e707c(0x2b7)]=_0x35805e,this[_0x5e707c(0x20a)]=_0x1a7b7c,this['_localeService']=_0x384038,this['_revisionService']=_0x3c2ca5,this['_eventService']=_0x57d9c6,this[_0x5e707c(0x298)]=_0xf01903,this['_commandService']=_0x3d0f3b,this[_0x5e707c(0x4c0)]=_0x57250a,this['_singleActiveUnitService']=_0x3d757d,this[_0x5e707c(0x331)]=_0x3d2643);}get[_0x10fcf4(0x37d)](){var _0x127349=_0x10fcf4;return this[_0x127349(0x2c0)];}async[_0x10fcf4(0x243)](){var _0x10d18e=_0x10fcf4;if(this['state'])throw new Error(_0x10d18e(0x345));await this[_0x10d18e(0x44c)]();}[_0x10fcf4(0x4c3)](){return this['_collaborationPaused']=!0x0,toDisposable(()=>{var _0x3baa95=_0x1531;this[_0x3baa95(0x39a)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0x10fcf4(0x3f4)](_0x217dd6){var _0x1b35fa=_0x10fcf4;this[_0x1b35fa(0x39c)](_0x217dd6);}[_0x10fcf4(0x284)](_0x3e1981){var _0x5528d8=_0x10fcf4;this[_0x5528d8(0x2c0)]=_0x3e1981,this[_0x5528d8(0x212)][_0x5528d8(0x3d5)](_0x3e1981);}async[_0x10fcf4(0x44c)](){var _0x1263b9=_0x10fcf4,_0x3da35b;this[_0x1263b9(0x284)](await this[_0x1263b9(0x24e)]()),this[_0x1263b9(0x1cf)]&&((_0x3da35b=this['_singleActiveUnitService'])==null||_0x3da35b[_0x1263b9(0x324)](this[_0x1263b9(0x436)]),this['disposeWithMe'](this[_0x1263b9(0x1cf)][_0x1263b9(0x37c)](this[_0x1263b9(0x436)])[_0x1263b9(0x416)](_0x20aaf4=>{var _0x3690c2=_0x1263b9;this[_0x3690c2(0x298)]['debug'](_0x3690c2(0x2ef),'editing\x20status\x20changed\x20to',_0x20aaf4),_0x20aaf4===UnitStatus['OTHER_CLIENTS_EDITING']?(this['_eventService']['emitEvent']({'id':CollaborationUIEventId['OTHER_CLIENT_EDITING']}),this[_0x3690c2(0x4c0)][_0x3690c2(0x371)](new WorkbookEditablePermission(this[_0x3690c2(0x436)])['id'],!0x1),this[_0x3690c2(0x4c0)]['setShowComponents'](!0x1)):(this[_0x3690c2(0x4c0)][_0x3690c2(0x371)](new WorkbookEditablePermission(this[_0x3690c2(0x436)])['id'],!0x0),this[_0x3690c2(0x4c0)][_0x3690c2(0x395)](!0x0));})));let _0x592666=!0x1;return this['disposeWithMe'](this['session'][_0x1263b9(0x215)][_0x1263b9(0x416)](_0x21d8f6=>{var _0x9836b6=_0x1263b9;_0x21d8f6===SessionStatus[_0x9836b6(0x3b0)]?this[_0x9836b6(0x1d2)](_0x592666):_0x21d8f6===SessionStatus['OFFLINE']&&(_0x592666=!0x0,this[_0x9836b6(0x474)]());})),this[_0x1263b9(0x29d)](this[_0x1263b9(0x391)][_0x1263b9(0x48c)][_0x1263b9(0x416)](_0x5b8e19=>{var _0x188a6a=_0x1263b9;try{switch(_0x5b8e19[_0x188a6a(0x204)]){case CollaborationEvent[_0x188a6a(0x482)]:{this[_0x188a6a(0x1e8)](parseProtocolChangeset(_0x5b8e19['data']));break;}case CollaborationEvent[_0x188a6a(0x1d5)]:{this['_onRemoteACK'](_0x5b8e19['data']);break;}case CollaborationEvent['CHANGESET_REJ']:{this['_onRemoteRejected']();break;}case CollaborationEvent['CHANGESET_SHOULD_RETRY']:{this[_0x188a6a(0x28b)](_0x5b8e19[_0x188a6a(0x407)]);break;}case CollaborationEvent[_0x188a6a(0x3e5)]:{this[_0x188a6a(0x3d3)](_0x5b8e19['data'][_0x188a6a(0x2ad)][_0x188a6a(0x454)](_0x313c71=>parseProtocolChangeset(_0x313c71)));break;}case CollaborationEvent[_0x188a6a(0x340)]:{this['_onRemoteRejected']({'isPermissionRej':!0x0});break;}case CollaborationEvent[_0x188a6a(0x1d7)]:break;}}catch(_0xddbf0d){throw console[_0x188a6a(0x2a0)](_0x188a6a(0x213),_0xddbf0d),_0xddbf0d;}})),this['_state'];}[_0x10fcf4(0x1be)](){this['_transitionLocked']=!0x1;}['_lockTransition'](){var _0x4bec62=_0x10fcf4;if(this[_0x4bec62(0x203)])throw new Error(_0x4bec62(0x4b0));this[_0x4bec62(0x203)]=!0x0;}['_onLocalMutation'](_0xb1cc90){var _0x40e1af=_0x10fcf4;this['_lockTransition'](),this[_0x40e1af(0x284)](this[_0x40e1af(0x2c0)][_0x40e1af(0x297)](_0xb1cc90)),this[_0x40e1af(0x1be)]();}['_onRemoteChangeset'](_0x1b36a6){var _0x28195d=_0x10fcf4;if(!(_0x1b36a6[_0x28195d(0x2fe)]<=this[_0x28195d(0x30d)]['getCurrentRevOfUnit'](this[_0x28195d(0x436)]))){if(this['_collaborationPaused']){this['_remoteChangesetQueue']['push'](_0x1b36a6);return;}this[_0x28195d(0x1ba)](_0x1b36a6);}}['_exhaustRemoteChangesetQueue'](){var _0x3e5a49=_0x10fcf4;this[_0x3e5a49(0x3c1)][_0x3e5a49(0x260)](_0x25c842=>this['_applyRemoteChangeset'](_0x25c842)),this['_remoteChangesetQueue']=[];}[_0x10fcf4(0x1ba)](_0x10e8d4){var _0x405fd8=_0x10fcf4;const _0x27af5a=this['_compressMutationService'][_0x405fd8(0x3b2)][_0x405fd8(0x1cc)](this['_compressMutationService'][_0x405fd8(0x3b2)][_0x405fd8(0x27b)]()[_0x405fd8(0x1bb)])(_0x10e8d4[_0x405fd8(0x448)],null)||_0x10e8d4[_0x405fd8(0x448)],_0x1ccbc2={..._0x10e8d4,'mutations':_0x27af5a};this[_0x405fd8(0x368)](),this['_updateState'](this[_0x405fd8(0x2c0)][_0x405fd8(0x3b7)](_0x1ccbc2)),this['_unlockTransition']();}['_onRemoteACK'](_0x2d2b03){var _0x4a4b2c=_0x10fcf4;this[_0x4a4b2c(0x368)](),this[_0x4a4b2c(0x284)](this[_0x4a4b2c(0x2c0)][_0x4a4b2c(0x237)](_0x2d2b03)),this[_0x4a4b2c(0x1be)]();}[_0x10fcf4(0x24c)](_0x2d048d){var _0x4983d8=_0x10fcf4;this['_lockTransition'](),this[_0x4983d8(0x284)](this[_0x4983d8(0x2c0)][_0x4983d8(0x48d)](_0x2d048d)),this['_unlockTransition']();}['_onRemoteRetry'](_0x341e27){var _0x49d5d6=_0x10fcf4;this['_lockTransition'](),this[_0x49d5d6(0x284)](this['_state']['onRemoteRetry'](_0x341e27)),this['_unlockTransition']();}[_0x10fcf4(0x3d3)](_0x9a8090){var _0x3c97dc=_0x10fcf4;if(!(this['_state']instanceof FetchingMissState))throw new TypeError(_0x3c97dc(0x28a));const _0x4541da=_0x9a8090['map'](_0x2cf719=>{var _0x596ce7=_0x3c97dc;const _0x333032=this['_compressMutationService']['interceptor'][_0x596ce7(0x1cc)](this[_0x596ce7(0x20a)]['interceptor'][_0x596ce7(0x27b)]()['COMPRESS_MUTATION_APPLY'])(_0x2cf719['mutations'],null)||_0x2cf719[_0x596ce7(0x448)];return{..._0x2cf719,'mutations':_0x333032};});this[_0x3c97dc(0x368)](),this[_0x3c97dc(0x284)](this[_0x3c97dc(0x2c0)]['onMissedChangesetFetched'](_0x4541da)),this[_0x3c97dc(0x1be)]();}[_0x10fcf4(0x474)](){var _0x77bd04=_0x10fcf4;this[_0x77bd04(0x368)](),this[_0x77bd04(0x284)](this[_0x77bd04(0x2c0)]['toggleOffline']()),this['_unlockTransition']();}[_0x10fcf4(0x1d2)](_0x3c5651=!0x1){var _0x315773=_0x10fcf4;this[_0x315773(0x368)](),this[_0x315773(0x284)](this[_0x315773(0x2c0)][_0x315773(0x2b3)]()),this['_unlockTransition']();const _0x584c37=this[_0x315773(0x2c0)];_0x3c5651&&_0x584c37 instanceof SyncedState&&(this[_0x315773(0x368)](),this['_updateState'](_0x584c37['fetchMiss']()),this[_0x315773(0x1be)]());}async['_createInitialState'](){return new Promise(_0x294c73=>{var _0x473587=_0x1531;this[_0x473587(0x391)][_0x473587(0x215)][_0x473587(0x18d)](_0x369b3a(0x1))[_0x473587(0x416)](async _0x59bb33=>{var _0x292727=_0x473587;_0x294c73(await this[_0x292727(0x491)](_0x59bb33===SessionStatus[_0x292727(0x3b0)]));});});}['_createHandler'](){var _0x3d3bfd=_0x10fcf4;const _0x56f676=this[_0x3d3bfd(0x436)];return{'onStateChange':__name((_0x3d697e,_0x123685)=>{var _0xb9a7ee=_0x3d3bfd;if(_0x3d697e!==this[_0xb9a7ee(0x2c0)])throw new Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x3d697e[_0xb9a7ee(0x228)]+_0xb9a7ee(0x3ce)+_0x123685[_0xb9a7ee(0x228)]+'\x0aCurrent:\x20'+this[_0xb9a7ee(0x2c0)]['status']);this[_0xb9a7ee(0x284)](_0x123685);},'onStateChange'),'onSendChangeset':__name(_0x25f39f=>{var _0x34ac59=_0x3d3bfd;_0x25f39f['sid']||(_0x25f39f[_0x34ac59(0x421)]=this[_0x34ac59(0x3d2)],_0x25f39f[_0x34ac59(0x21e)]=++this[_0x34ac59(0x209)]);const _0x547b8f={'eventID':CollaborationEvent['SUBMIT_CHANGESET'],'data':{'unitID':_0x25f39f[_0x34ac59(0x436)],'unitType':this[_0x34ac59(0x2b4)],'changeset':_0x25f39f,'memberID':this[_0x34ac59(0x391)][_0x34ac59(0x1b0)]()}};this['session'][_0x34ac59(0x309)](_0x547b8f,this[_0x34ac59(0x436)]);},_0x3d3bfd(0x3b5)),'onMissingChangesets':__name(({from:_0x56785d,to:_0xc839f8})=>{var _0x423e7a=_0x3d3bfd;this[_0x423e7a(0x298)][_0x423e7a(0x388)](_0x423e7a(0x2ef),_0x423e7a(0x299)+_0x56785d+_0x423e7a(0x489)+_0xc839f8);const _0x4645df={'eventID':CollaborationEvent[_0x423e7a(0x2b1)],'data':{'unitID':_0x56f676,'unitType':this[_0x423e7a(0x2b4)],'from':_0x56785d,'to':_0xc839f8}};this[_0x423e7a(0x391)][_0x423e7a(0x309)](_0x4645df,this[_0x423e7a(0x436)]);},_0x3d3bfd(0x1af))};}async[_0x10fcf4(0x491)](_0x34bd7e){var _0x23de11=_0x10fcf4,_0x3869d2,_0x54a14e,_0x1dc640;const _0x52ef9e=await((_0x3869d2=this[_0x23de11(0x331)])==null?void 0x0:_0x3869d2[_0x23de11(0x45a)](this[_0x23de11(0x436)])),_0x2c85d3=(_0x54a14e=_0x52ef9e==null?void 0x0:_0x52ef9e['mutations'])!=null?_0x54a14e:[],_0x1ffd94=(_0x1dc640=_0x52ef9e==null?void 0x0:_0x52ef9e[_0x23de11(0x293)])!=null?_0x1dc640:null,_0x551c17=!!(_0x1ffd94!=null&&_0x1ffd94[_0x23de11(0x421)])&&!!(_0x1ffd94!=null&&_0x1ffd94[_0x23de11(0x21e)]);this[_0x23de11(0x3d2)]=_0x551c17?_0x1ffd94[_0x23de11(0x421)]:v4(),this[_0x23de11(0x209)]=_0x551c17?_0x1ffd94['reqId']:0x0;const _0x35ab08=this[_0x23de11(0x436)];try{this[_0x23de11(0x408)](_0x1ffd94,_0x2c85d3);}catch(_0x1791af){this[_0x23de11(0x298)][_0x23de11(0x2a0)](_0x1791af);}const _0x18f138=this[_0x23de11(0x2d6)]();if(_0x34bd7e){const _0x5ddf6c=createOnlineState(this[_0x23de11(0x2b7)],_0x35ab08,this[_0x23de11(0x2b4)],_0x1ffd94,_0x2c85d3,_0x18f138);return _0x5ddf6c instanceof PendingState?_0x5ddf6c[_0x23de11(0x412)]():(_0x5ddf6c instanceof AwaitingWithPendingState||_0x5ddf6c instanceof AwaitingState)&&_0x5ddf6c[_0x23de11(0x239)](),_0x5ddf6c;}return this['_injector'][_0x23de11(0x42b)](OfflineState,_0x35ab08,this[_0x23de11(0x2b4)],_0x1ffd94,_0x2c85d3,_0x18f138);}[_0x10fcf4(0x408)](_0x43707b,_0x29e393){var _0x2abb6d=_0x10fcf4,_0x19bcb6,_0x12fb48;const _0xaf8a3e=this[_0x2abb6d(0x20a)]['interceptor'][_0x2abb6d(0x1cc)](this['_compressMutationService'][_0x2abb6d(0x3b2)]['getInterceptPoints']()['COMPRESS_MUTATION_APPLY']);(_0x19bcb6=_0xaf8a3e((_0x43707b==null?void 0x0:_0x43707b['mutations'])||[],null))==null||_0x19bcb6[_0x2abb6d(0x260)](_0x12b603=>this[_0x2abb6d(0x1aa)][_0x2abb6d(0x447)](_0x12b603['id'],_0x12b603['params'])),(_0x12fb48=_0xaf8a3e(_0x29e393||[],null))==null||_0x12fb48[_0x2abb6d(0x260)](_0x12cb91=>this[_0x2abb6d(0x1aa)][_0x2abb6d(0x447)](_0x12cb91['id'],_0x12cb91[_0x2abb6d(0x2d2)]));}},__name(_a13,_0x10fcf4(0x1e1)),_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(_0x184420,_0x26b2ac,_0x52e3a7,_0xfe1d33,_0x2176e1,_0x46e99c,_0x33ec89,_0x1f0f30,_0x116cdd,_0x5d7841,_0x4f933a,_0x19263c,_0x500e6e){var _0x2e7862=_0x10fcf4;super(_0x184420,_0x52e3a7,_0x26b2ac,_0xfe1d33,_0x2176e1,_0x46e99c,_0x33ec89,_0x1f0f30,_0x116cdd,_0x5d7841,_0x4f933a,_0x19263c,_0x500e6e),__publicField(this,_0x2e7862(0x3a3),null),(this[_0x2e7862(0x436)]=_0x184420,this['type']=_0x26b2ac);}[_0x10fcf4(0x4a9)](_0x3b75f7){var _0xa34272=_0x10fcf4;this[_0xa34272(0x3a3)]=_0x3b75f7;}[_0x10fcf4(0x318)](){var _0x1c4470=_0x10fcf4;this[_0x1c4470(0x3a3)]=null,super[_0x1c4470(0x318)]();}[_0x10fcf4(0x2d6)](){var _0x2830f5=_0x10fcf4;const _0x14c78b=super[_0x2830f5(0x2d6)]();return _0x14c78b[_0x2830f5(0x37a)]=_0x3cba5d=>{var _0x26b1bd=_0x2830f5,_0x35938b,_0x374c09;return(_0x374c09=(_0x35938b=this['_handlerCallback'])==null?void 0x0:_0x35938b[_0x26b1bd(0x37a)])==null?void 0x0:_0x374c09['call'](_0x35938b,_0x3cba5d);},_0x14c78b['onTransformState']=_0xd7a5df=>{var _0x291e70=_0x2830f5,_0x35db44,_0x222f1f;return(_0x222f1f=(_0x35db44=this[_0x291e70(0x3a3)])==null?void 0x0:_0x35db44['onTransformState'])==null?void 0x0:_0x222f1f[_0x291e70(0x21a)](_0x35db44,_0xd7a5df);},_0x14c78b[_0x2830f5(0x21b)]=_0x1433e8=>{var _0x44d0ac=_0x2830f5,_0x41ddfb,_0x9b895b;return(_0x9b895b=(_0x41ddfb=this[_0x44d0ac(0x3a3)])==null?void 0x0:_0x41ddfb[_0x44d0ac(0x21b)])==null?void 0x0:_0x9b895b[_0x44d0ac(0x21a)](_0x41ddfb,_0x1433e8);},_0x14c78b[_0x2830f5(0x256)]=_0x4eeab5=>{var _0x31a50b=_0x2830f5,_0x2ac87b,_0x7c9998;return(_0x7c9998=(_0x2ac87b=this[_0x31a50b(0x3a3)])==null?void 0x0:_0x2ac87b['onSyncEditingCollabCursor'])==null?void 0x0:_0x7c9998[_0x31a50b(0x21a)](_0x2ac87b,_0x4eeab5);},_0x14c78b[_0x2830f5(0x3b1)]=_0x41ede3=>{var _0x663ebf=_0x2830f5,_0x2f6d00,_0x4ba1f6,_0x535e1f;if(!((_0x2f6d00=this[_0x663ebf(0x3a3)])!=null&&_0x2f6d00[_0x663ebf(0x3b1)]))throw new Error(_0x663ebf(0x3ed));return(_0x535e1f=(_0x4ba1f6=this['_handlerCallback'])==null?void 0x0:_0x4ba1f6[_0x663ebf(0x3b1)])==null?void 0x0:_0x535e1f[_0x663ebf(0x21a)](_0x4ba1f6,_0x41ede3);},_0x14c78b[_0x2830f5(0x2ea)]=_0x50b469=>{var _0x3015cb=_0x2830f5,_0x4027fa,_0x35bf07,_0x573e08;if(!((_0x4027fa=this['_handlerCallback'])!=null&&_0x4027fa[_0x3015cb(0x2ea)]))throw new Error(_0x3015cb(0x3eb));return(_0x573e08=(_0x35bf07=this['_handlerCallback'])==null?void 0x0:_0x35bf07['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0x573e08['call'](_0x35bf07,_0x50b469);},_0x14c78b;}async[_0x10fcf4(0x44c)](){var _0x4f41b9=_0x10fcf4;const _0x5f23d=await super[_0x4f41b9(0x44c)]();return this[_0x4f41b9(0x29d)](this[_0x4f41b9(0x1aa)][_0x4f41b9(0x33e)]((_0x84d21a,_0x48b090)=>{var _0x5ac50e=_0x4f41b9;if(_0x84d21a['type']!==CommandType[_0x5ac50e(0x48e)]||_0x48b090!=null&&_0x48b090[_0x5ac50e(0x1c7)]||_0x48b090!=null&&_0x48b090[_0x5ac50e(0x1ab)]||_0x84d21a['id']===RichTextEditingMutation['id'])return;const _0x377702=_0x84d21a[_0x5ac50e(0x2d2)];if((_0x377702==null?void 0x0:_0x377702['unitId'])!==this['unitID'])return;const _0x145d58=_0x84d21a,_0x5cfac0=this[_0x5ac50e(0x20a)][_0x5ac50e(0x3b2)][_0x5ac50e(0x1cc)](this[_0x5ac50e(0x20a)]['interceptor'][_0x5ac50e(0x27b)]()[_0x5ac50e(0x196)])([_0x145d58],null)||[_0x145d58];this[_0x5ac50e(0x39c)](_0x5cfac0[0x0]);})),_0x5f23d;}},__name(_a14,_0x10fcf4(0x327)),_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(_0x5295d8,_0x5c88a7,_0x4fc820,_0x16b8d3,_0x46353f,_0x534863,_0x2d2993,_0x52abe8,_0xf97400,_0x1a4c23,_0x1a19c3,_0x57be05,_0x35ecc2,_0x4106b8){var _0x1f874c=_0x10fcf4;super(_0x5295d8,_0x4fc820,_0x5c88a7,_0x16b8d3,_0x46353f,_0x534863,_0x2d2993,_0xf97400,_0x1a4c23,_0x1a19c3,_0x57be05,_0x35ecc2,_0x4106b8),this['unitID']=_0x5295d8,this[_0x1f874c(0x48b)]=_0x5c88a7,this['_sheetTransformSelectionsService']=_0x52abe8;}['_createHandler'](){var _0x5cc1a3=_0x10fcf4;const _0x5adc4f=super['_createHandler']();return _0x5adc4f[_0x5cc1a3(0x21b)]=_0x5295b1=>this[_0x5cc1a3(0x1bc)][_0x5cc1a3(0x28e)](_0x5295b1),_0x5adc4f;}async[_0x10fcf4(0x44c)](){var _0x15329e=_0x10fcf4;const _0x2bf22f=await super[_0x15329e(0x44c)]();return this[_0x15329e(0x29d)](this[_0x15329e(0x1aa)][_0x15329e(0x33e)]((_0x59d32b,_0x45aebb)=>{var _0x471c3f=_0x15329e;if(_0x59d32b[_0x471c3f(0x48b)]!==CommandType[_0x471c3f(0x48e)]||_0x45aebb!=null&&_0x45aebb['fromCollab']||_0x45aebb!=null&&_0x45aebb[_0x471c3f(0x1ab)])return;const _0x53fa9e=_0x59d32b[_0x471c3f(0x2d2)];if((_0x53fa9e==null?void 0x0:_0x53fa9e['unitId'])!==this[_0x471c3f(0x436)])return;const _0x1d70ea=_0x59d32b,_0x3b0530=this[_0x471c3f(0x20a)][_0x471c3f(0x3b2)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x471c3f(0x3b2)]['getInterceptPoints']()['COMPRESS_MUTATION_SEND'])([_0x1d70ea],null)||[_0x1d70ea];this[_0x471c3f(0x39c)](_0x3b0530[0x0]);})),_0x2bf22f;}},__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[_0x10fcf4(0x341)],__decorateClass$b=__name((_0xa2a2c3,_0x5a3c7f,_0xf40cd1,_0x582a53)=>{var _0x4ca4ea=_0x10fcf4;for(var _0x5e7b22=_0x582a53>0x1?void 0x0:_0x582a53?__getOwnPropDesc$b(_0x5a3c7f,_0xf40cd1):_0x5a3c7f,_0x3b1c45=_0xa2a2c3[_0x4ca4ea(0x20b)]-0x1,_0x15e440;_0x3b1c45>=0x0;_0x3b1c45--)(_0x15e440=_0xa2a2c3[_0x3b1c45])&&(_0x5e7b22=(_0x582a53?_0x15e440(_0x5a3c7f,_0xf40cd1,_0x5e7b22):_0x15e440(_0x5e7b22))||_0x5e7b22);return _0x582a53&&_0x5e7b22&&__defProp$b(_0x5a3c7f,_0xf40cd1,_0x5e7b22),_0x5e7b22;},'__decorateClass$b'),__decorateParam$b=__name((_0x48a07e,_0x24a8a0)=>(_0x47bce6,_0x45e43e)=>_0x24a8a0(_0x47bce6,_0x45e43e,_0x48a07e),'__decorateParam$b'),_a16;let CollaborationController=(_a16=class extends RxDisposable{constructor(_0x21a14b,_0x15312b,_0x3afab9){var _0x5bf3b9=_0x10fcf4;super(),__publicField(this,'_entities',new Map()),__publicField(this,_0x5bf3b9(0x1f1),new Subject()),__publicField(this,_0x5bf3b9(0x2ac),this[_0x5bf3b9(0x1f1)][_0x5bf3b9(0x3b6)]()),(this[_0x5bf3b9(0x2b7)]=_0x21a14b,this[_0x5bf3b9(0x413)]=_0x15312b,this['_univerInstanceService']=_0x3afab9,this[_0x5bf3b9(0x44c)]());}[_0x10fcf4(0x318)](){var _0x5ceb14=_0x10fcf4;super[_0x5ceb14(0x318)](),this['_entities'][_0x5ceb14(0x260)](_0x549450=>_0x549450[_0x5ceb14(0x318)]()),this['_entities'][_0x5ceb14(0x272)]();}[_0x10fcf4(0x3e8)](_0xe01787){var _0x549c95=_0x10fcf4,_0x555e44;return(_0x555e44=this[_0x549c95(0x1dd)][_0x549c95(0x402)](_0xe01787))!=null?_0x555e44:null;}[_0x10fcf4(0x465)](_0x4c7457){var _0x34feb4=_0x10fcf4;const _0x50d46e=this['getCollabEntity'](_0x4c7457);return _0x50d46e?of(_0x50d46e):this[_0x34feb4(0x1f1)]['pipe'](filter(_0x138730=>_0x138730[_0x34feb4(0x436)]===_0x4c7457));}[_0x10fcf4(0x4a5)](_0x5dd644){var _0x1ef785=_0x10fcf4;return firstValueFrom(this[_0x1ef785(0x465)](_0x5dd644)[_0x1ef785(0x18d)](map(()=>{})));}['_init'](){var _0x4d93c0=_0x10fcf4;this[_0x4d93c0(0x3a9)]['getTypeOfUnitAdded$'](UniverInstanceType[_0x4d93c0(0x3a7)])[_0x4d93c0(0x18d)](takeUntil(this[_0x4d93c0(0x205)]),delay(0x10))[_0x4d93c0(0x416)](async _0x40574e=>{var _0x214167=_0x4d93c0;const _0x51e37d=_0x40574e[_0x214167(0x2b9)](),_0xf028a1=await this[_0x214167(0x23f)](_0x51e37d,UniverType[_0x214167(0x3a7)]);this['_entities'][_0x214167(0x26a)](_0x51e37d,_0xf028a1);}),this[_0x4d93c0(0x3a9)]['getTypeOfUnitAdded$'](UniverInstanceType['UNIVER_DOC'])[_0x4d93c0(0x18d)](takeUntil(this[_0x4d93c0(0x205)]),delay(0x10))[_0x4d93c0(0x18d)](filter(_0x56e094=>!_0x56e094['getUnitId']()['startsWith']('__')))[_0x4d93c0(0x416)](async _0xa1adcf=>{var _0x58f9bc=_0x4d93c0;const _0x2f3fbd=_0xa1adcf['getUnitId'](),_0x26fba0=await this[_0x58f9bc(0x23f)](_0x2f3fbd,UniverType[_0x58f9bc(0x30c)]);this['_entities'][_0x58f9bc(0x26a)](_0x2f3fbd,_0x26fba0);}),merge(this[_0x4d93c0(0x3a9)][_0x4d93c0(0x325)](UniverInstanceType['UNIVER_SHEET']),this[_0x4d93c0(0x3a9)][_0x4d93c0(0x325)](UniverInstanceType[_0x4d93c0(0x30c)]))[_0x4d93c0(0x18d)](takeUntil(this[_0x4d93c0(0x205)]))['subscribe'](_0x1dd2cf=>{var _0xcc2c08=_0x4d93c0;const _0x1df693=_0x1dd2cf['getUnitId'](),_0x400156=this[_0xcc2c08(0x1dd)]['get'](_0x1df693);_0x400156&&(_0x400156[_0xcc2c08(0x318)](),this[_0xcc2c08(0x1dd)][_0xcc2c08(0x2d5)](_0x1df693));});}async[_0x10fcf4(0x23f)](_0x2fa907,_0x5bb1b7){var _0xace1f6=_0x10fcf4;const _0x53635b=await this[_0xace1f6(0x413)]['requireSession'](_0x2fa907),_0x13bd35=this[_0xace1f6(0x2b7)][_0xace1f6(0x42b)](this[_0xace1f6(0x2d0)](_0x5bb1b7),_0x2fa907,_0x5bb1b7,_0x53635b);return await _0x13bd35[_0xace1f6(0x243)](),this['_entityInit$'][_0xace1f6(0x3d5)](_0x13bd35),_0x13bd35;}[_0x10fcf4(0x2d0)](_0x3b55de){var _0x554136=_0x10fcf4;switch(_0x3b55de){case UniverType[_0x554136(0x30c)]:return DocCollaborationEntity;case UniverType['UNIVER_SHEET']:return SheetCollaborationEntity;default:throw new Error(_0x554136(0x280)+_0x3b55de);}}},__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[_0x10fcf4(0x2ba)],__getOwnPropDesc$a=Object['getOwnPropertyDescriptor'],__decorateClass$a=__name((_0xd18d3d,_0x30cec4,_0x36b3b1,_0x11452c)=>{var _0x402eab=_0x10fcf4;for(var _0x3107f8=_0x11452c>0x1?void 0x0:_0x11452c?__getOwnPropDesc$a(_0x30cec4,_0x36b3b1):_0x30cec4,_0x3703a8=_0xd18d3d[_0x402eab(0x20b)]-0x1,_0x3446c6;_0x3703a8>=0x0;_0x3703a8--)(_0x3446c6=_0xd18d3d[_0x3703a8])&&(_0x3107f8=(_0x11452c?_0x3446c6(_0x30cec4,_0x36b3b1,_0x3107f8):_0x3446c6(_0x3107f8))||_0x3107f8);return _0x11452c&&_0x3107f8&&__defProp$a(_0x30cec4,_0x36b3b1,_0x3107f8),_0x3107f8;},'__decorateClass$a'),__decorateParam$a=__name((_0x2167b9,_0x4750d5)=>(_0x33711c,_0x2d65e0)=>_0x4750d5(_0x33711c,_0x2d65e0,_0x2167b9),_0x10fcf4(0x219));const DEFAULT_FILE_NAME_KEY=_0x10fcf4(0x24a),UNIVER_DEFAULT_FILE_NAME=_0x10fcf4(0x253);var _a17;let FileNameController=(_a17=class extends Disposable{constructor(_0x1984ef,_0x168c08){super(),this['_univerInstanceService']=_0x1984ef,this['_configService']=_0x168c08,this['_init']();}[_0x10fcf4(0x44c)](){var _0x4ccd37=_0x10fcf4;this[_0x4ccd37(0x29d)](this['_univerInstanceService'][_0x4ccd37(0x25a)]['subscribe'](()=>{var _0x3f423a=_0x4ccd37,_0x1c0fd5;const _0x31c418=this['_univerInstanceService'][_0x3f423a(0x195)]();let _0x42dada=(_0x1c0fd5=this['_configService'][_0x3f423a(0x3ef)](DEFAULT_FILE_NAME_KEY))!=null?_0x1c0fd5:UNIVER_DEFAULT_FILE_NAME;_0x31c418 instanceof Workbook&&(_0x42dada=_0x31c418['name']),document[_0x3f423a(0x1d8)]=_0x42dada;}));}},__name(_a17,_0x10fcf4(0x427)),_a17);FileNameController=__decorateClass$a([__decorateParam$a(0x0,IUniverInstanceService),__decorateParam$a(0x1,IConfigService)],FileNameController);var __defProp$9=Object[_0x10fcf4(0x2ba)],__getOwnPropDesc$9=Object[_0x10fcf4(0x341)],__decorateClass$9=__name((_0x356d42,_0x35fa94,_0x1a7ba2,_0x5706d6)=>{var _0x51bf13=_0x10fcf4;for(var _0x43cf91=_0x5706d6>0x1?void 0x0:_0x5706d6?__getOwnPropDesc$9(_0x35fa94,_0x1a7ba2):_0x35fa94,_0x77fa82=_0x356d42[_0x51bf13(0x20b)]-0x1,_0x32cf0d;_0x77fa82>=0x0;_0x77fa82--)(_0x32cf0d=_0x356d42[_0x77fa82])&&(_0x43cf91=(_0x5706d6?_0x32cf0d(_0x35fa94,_0x1a7ba2,_0x43cf91):_0x32cf0d(_0x43cf91))||_0x43cf91);return _0x5706d6&&_0x43cf91&&__defProp$9(_0x35fa94,_0x1a7ba2,_0x43cf91),_0x43cf91;},_0x10fcf4(0x207)),__decorateParam$9=__name((_0x16b054,_0x1daf1c)=>(_0x37caf1,_0xc67b15)=>_0x1daf1c(_0x37caf1,_0xc67b15,_0x16b054),_0x10fcf4(0x3ab)),_a18;let AuthServerService=(_a18=class{constructor(_0x3ee0c4,_0x143a27,_0x30bc0a){var _0x358943=_0x10fcf4;this['_configService']=_0x3ee0c4,this['_httpService']=_0x143a27,this[_0x358943(0x3e4)]=_0x30bc0a,this[_0x358943(0x243)]();}[_0x10fcf4(0x243)](){var _0x586cd2=_0x10fcf4;this[_0x586cd2(0x1ca)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':__name((_0x1c980e,_0x59f4c9)=>_0x59f4c9(_0x1c980e)[_0x586cd2(0x18d)](concatMap(async _0x14e85a=>{var _0x25b1f0=_0x586cd2;const _0x3713d5=_0x14e85a;if(_0x3713d5['status']===0x191){if(typeof window>'u')throw new Error('[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.');if(window[_0x25b1f0(0x3d9)](this[_0x25b1f0(0x3e4)]['t'](_0x25b1f0(0x46f)))){const _0x5c948e=window[_0x25b1f0(0x1c6)](window[_0x25b1f0(0x3ac)][_0x25b1f0(0x38c)]);window['location'][_0x25b1f0(0x38c)]=this[_0x25b1f0(0x45d)]()+_0x25b1f0(0x288)+_0x5c948e;}}return _0x3713d5;})),_0x586cd2(0x3b2))});}[_0x10fcf4(0x45d)](){var _0x35ff65=_0x10fcf4,_0x5b4699,_0x562da2;const _0x4cda44=this[_0x35ff65(0x2bf)][_0x35ff65(0x3ef)](LOGIN_URL_KEY),_0x524eb5=this[_0x35ff65(0x2bf)][_0x35ff65(0x3ef)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x562da2=(_0x5b4699=_0x524eb5==null?void 0x0:_0x524eb5[_0x35ff65(0x230)])!=null?_0x5b4699:_0x4cda44)!=null?_0x562da2:DEFAULT_LOGIN_URL;}},__name(_a18,_0x10fcf4(0x41b)),_a18);AuthServerService=__decorateClass$9([__decorateParam$9(0x0,IConfigService),__decorateParam$9(0x1,Inject(HTTPService)),__decorateParam$9(0x2,Inject(LocaleService))],AuthServerService);var __defProp$8=Object[_0x10fcf4(0x2ba)],__getOwnPropDesc$8=Object[_0x10fcf4(0x341)],__decorateClass$8=__name((_0x9379a8,_0x27ab69,_0x4c7d89,_0x5d6772)=>{var _0x40ff95=_0x10fcf4;for(var _0x33d3e7=_0x5d6772>0x1?void 0x0:_0x5d6772?__getOwnPropDesc$8(_0x27ab69,_0x4c7d89):_0x27ab69,_0x17e368=_0x9379a8[_0x40ff95(0x20b)]-0x1,_0x1cc2cb;_0x17e368>=0x0;_0x17e368--)(_0x1cc2cb=_0x9379a8[_0x17e368])&&(_0x33d3e7=(_0x5d6772?_0x1cc2cb(_0x27ab69,_0x4c7d89,_0x33d3e7):_0x1cc2cb(_0x33d3e7))||_0x33d3e7);return _0x5d6772&&_0x33d3e7&&__defProp$8(_0x27ab69,_0x4c7d89,_0x33d3e7),_0x33d3e7;},'__decorateClass$8'),__decorateParam$8=__name((_0x1e32cc,_0xc16123)=>(_0x580aca,_0x902461)=>_0xc16123(_0x580aca,_0x902461,_0x1e32cc),'__decorateParam$8');const AUTHZ_URL_KEY=_0x10fcf4(0x433),DEFAULT_AUTHZ_URL_KEY$1=_0x10fcf4(0x2bb);var _a19;let AuthzIoHttpService=(_a19=class extends Disposable{constructor(_0x3a44e7,_0x7a8766){var _0x1b590f=_0x10fcf4;super(),this[_0x1b590f(0x281)]=_0x3a44e7,this[_0x1b590f(0x2bf)]=_0x7a8766,this[_0x1b590f(0x3f9)]();}[_0x10fcf4(0x3f9)](){var _0x37ca0c=_0x10fcf4;const _0x3afb10=this;this['disposeWithMe'](this[_0x37ca0c(0x281)][_0x37ca0c(0x3e3)]({'priority':0x3e7,'interceptor':MergeInterceptorFactory({'isMatch'(_0x2415b5){var _0x193576=_0x37ca0c,_0x488a66;if(_0x2415b5[_0x193576(0x182)]===_0x193576(0x4be)&&((_0x488a66=_0x2415b5['requestParams'])!=null&&_0x488a66['body'])){const {objectID:_0x1d2f8b,objectType:_0x2a3b53}=_0x2415b5[_0x193576(0x308)][_0x193576(0x46e)]||{};if(!_0x1d2f8b||_0x2a3b53===void 0x0)return!0x1;const _0x4338ec=_0x3afb10['_getAPIPrefixPath']()+'/'+_0x2a3b53+_0x193576(0x27f)+_0x1d2f8b+_0x193576(0x263);if(_0x2415b5['url']===_0x4338ec)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x34bccd){var _0x4f465e=_0x37ca0c,_0x930a5f;return(_0x930a5f=_0x34bccd[_0x4f465e(0x308)])==null?void 0x0:_0x930a5f['body'];},'mergeParamsToRequest'(_0x15c5f6,_0x24e555){var _0x4a5092=_0x37ca0c;const _0x4d8dcd=_0x3afb10['_getAPIPrefixPath']()+_0x4a5092(0x226),_0x40a394=_0x15c5f6[_0x4a5092(0x1f7)]((_0xcc7645,_0x3ebaf9)=>{var _0x1fe395=_0x4a5092;const {unitID:_0x20d40c,objectID:_0x16e176,objectType:_0x2dc881,actions:_0x3788cc}=_0x3ebaf9;return _0xcc7645[_0x20d40c]||(_0xcc7645[_0x20d40c]={}),_0xcc7645[_0x20d40c][_0x16e176]||(_0xcc7645[_0x20d40c][_0x16e176]={'objectID':_0x16e176,'objectType':_0x2dc881,'actions':[]}),_0xcc7645[_0x20d40c][_0x16e176][_0x1fe395(0x3fc)]['push'](..._0x3788cc),_0xcc7645;},{}),_0x57839a=[];for(const _0x593179 in _0x40a394)for(const _0x3c613a in _0x40a394[_0x593179]){const {actions:_0x2b1b52,objectType:_0x821f00}=_0x40a394[_0x593179][_0x3c613a],_0x38dcf5=[...new Set(_0x2b1b52)];_0x57839a[_0x4a5092(0x1b3)]({'unitID':_0x593179,'objectID':_0x3c613a,'objectType':_0x821f00,'actions':_0x38dcf5});}return new HTTPRequest(_0x4a5092(0x4be),_0x4d8dcd,{'headers':_0x24e555[_0x4a5092(0x481)],'withCredentials':_0x24e555[_0x4a5092(0x315)],'responseType':_0x24e555['responseType'],'body':{'requests':_0x57839a}});}},{'distributeResult'(_0x160f02,_0x2c3215){const {objectActions:_0x281147}=_0x160f02;return _0x2c3215['map'](_0x4cac82=>{var _0x3b160a=_0x1531;const {unitID:_0x249bdb,objectID:_0x447e93,actions:_0x68f50a}=_0x4cac82,_0x249a0c=_0x281147[_0x3b160a(0x2f9)](_0x46fe36=>_0x46fe36[_0x3b160a(0x436)]===_0x249bdb&&_0x46fe36[_0x3b160a(0x303)]===_0x447e93),_0x2e3867=_0x68f50a['map'](_0xf87155=>_0x249a0c==null?void 0x0:_0x249a0c['actions']['find'](_0x294343=>_0x294343[_0x3b160a(0x438)]===_0xf87155))[_0x3b160a(0x450)](_0x4627ea=>!!_0x4627ea);return{'config':_0x4cac82,'result':{'actions':_0x2e3867,'error':_0x160f02[_0x3b160a(0x2a0)]}};});}})}));}[_0x10fcf4(0x185)](){var _0x52c23b=_0x10fcf4,_0x1863cb,_0x560ff7;const _0x5b5176=this['_configService']['getConfig'](AUTHZ_URL_KEY),_0x5341b0=this[_0x52c23b(0x2bf)][_0x52c23b(0x3ef)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x560ff7=(_0x1863cb=_0x5341b0==null?void 0x0:_0x5341b0[_0x52c23b(0x477)])!=null?_0x1863cb:_0x5b5176)!=null?_0x560ff7:DEFAULT_AUTHZ_URL_KEY$1;}async[_0x10fcf4(0x2a5)](_0x38c469){var _0x36b5db=_0x10fcf4;const _0x167bbf=this[_0x36b5db(0x185)]()+'/'+_0x38c469[_0x36b5db(0x479)]+_0x36b5db(0x2d4);return(await this[_0x36b5db(0x281)][_0x36b5db(0x40d)](_0x167bbf,{'body':_0x38c469}))[_0x36b5db(0x46e)]['objectID']||'';}async[_0x10fcf4(0x274)](_0x2160a8){var _0x832532=_0x10fcf4;const _0x39a2e7=this['_getAPIPrefixPath']()+_0x832532(0x45f);return(await this[_0x832532(0x281)][_0x832532(0x40d)](_0x39a2e7,{'body':_0x2160a8}))[_0x832532(0x46e)]['objects'];}async[_0x10fcf4(0x1c5)](_0x168f2d){var _0x40d014=_0x10fcf4;const _0x12618f=this['_getAPIPrefixPath']()+'/'+_0x168f2d[_0x40d014(0x479)]+_0x40d014(0x27f)+_0x168f2d[_0x40d014(0x303)];await this[_0x40d014(0x281)][_0x40d014(0x35e)](_0x12618f,{'body':_0x168f2d});}async[_0x10fcf4(0x2d9)](_0x3a014b){var _0x57ea80=_0x10fcf4;const _0x34f49f=this[_0x57ea80(0x185)]()+'/'+_0x3a014b['objectType']+_0x57ea80(0x27f)+_0x3a014b['objectID']+_0x57ea80(0x263);return(await this[_0x57ea80(0x281)][_0x57ea80(0x40d)](_0x34f49f,{'body':_0x3a014b}))[_0x57ea80(0x46e)][_0x57ea80(0x3fc)];}async['batchAllowed'](_0x332c39){var _0x361b45=_0x10fcf4;const _0x5e8d33=this[_0x361b45(0x185)]()+_0x361b45(0x226);return(await this['_HTTPService'][_0x361b45(0x40d)](_0x5e8d33,{'body':{'requests':_0x332c39}}))[_0x361b45(0x46e)][_0x361b45(0x38b)];}async['listRoles'](_0xd36633){var _0x566a3d=_0x10fcf4;const _0x3efbef=this[_0x566a3d(0x185)]()+'/'+_0xd36633['objectType']+_0x566a3d(0x396),_0x1535a1=await this[_0x566a3d(0x281)][_0x566a3d(0x40d)](_0x3efbef,{'body':_0xd36633});return{'roles':_0x1535a1[_0x566a3d(0x46e)]['roles'],'actions':_0x1535a1[_0x566a3d(0x46e)][_0x566a3d(0x3fc)]};}async['deleteCollaborator'](_0x3383ed){var _0x422c83=_0x10fcf4;const _0x198d06=this[_0x422c83(0x185)]()+_0x422c83(0x3e1);await this[_0x422c83(0x281)][_0x422c83(0x2d5)](_0x198d06,{'params':{'collaboratorID':_0x3383ed['collaboratorID'],'objectID':_0x3383ed['objectID'],'unitID':_0x3383ed[_0x422c83(0x436)]}});}async[_0x10fcf4(0x2f8)](_0x4e8615){var _0x2402da=_0x10fcf4;const _0x2b10b0=this[_0x2402da(0x185)]()+_0x2402da(0x3e1);await this[_0x2402da(0x281)]['patch'](_0x2b10b0,{'body':_0x4e8615});}async[_0x10fcf4(0x43a)](_0x54ccf9){var _0x382218=_0x10fcf4;const _0x2b2ed1=this[_0x382218(0x185)]()+_0x382218(0x3e1);await this[_0x382218(0x281)]['post'](_0x2b2ed1,{'body':_0x54ccf9});}async['listCollaborators'](_0x266e0a){var _0xc0c66d=_0x10fcf4;const _0x1f0a05=this[_0xc0c66d(0x185)]()+_0xc0c66d(0x3e1);return(await this[_0xc0c66d(0x281)][_0xc0c66d(0x402)](_0x1f0a05,{'params':{'objectID':_0x266e0a[_0xc0c66d(0x303)],'unitID':_0x266e0a[_0xc0c66d(0x436)]}}))['body'][_0xc0c66d(0x390)];}async[_0x10fcf4(0x3bc)](_0x439063){var _0x218b31=_0x10fcf4;const _0x4c84aa=this[_0x218b31(0x185)]()+_0x218b31(0x3e1);await this[_0x218b31(0x281)]['put'](_0x4c84aa,{'body':_0x439063});}},__name(_a19,_0x10fcf4(0x34e)),_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(_0x29c585){var _0x4c19eb=_0x10fcf4;return _0x29c585&&_0x29c585[_0x4c19eb(0x3aa)]&&Object[_0x4c19eb(0x3c5)][_0x4c19eb(0x2dd)]['call'](_0x29c585,'default')?_0x29c585[_0x4c19eb(0x43d)]:_0x29c585;}__name(getDefaultExportFromCjs,'getDefaultExportFromCjs');var aes$1={'exports':{}};function commonjsRequire(_0x5d5a4a){var _0x18c116=_0x10fcf4;throw new Error(_0x18c116(0x40a)+_0x5d5a4a+_0x18c116(0x38a));}__name(commonjsRequire,_0x10fcf4(0x4a7));var core$1={'exports':{}},core=core$1[_0x10fcf4(0x2be)],hasRequiredCore;function requireCore(){return hasRequiredCore||(hasRequiredCore=0x1,function(_0x23550b,_0x1b0792){(function(_0x14e2d9,_0x369a05){var _0x51c5d0=_0x1531;_0x23550b[_0x51c5d0(0x2be)]=_0x369a05();}(core,function(){var _0x36b2c0=_0x36b2c0||function(_0x330153,_0x58de13){var _0x3c32bc=_0x1531,_0x1be176;if(typeof window<'u'&&window['crypto']&&(_0x1be176=window['crypto']),typeof self<'u'&&self['crypto']&&(_0x1be176=self[_0x3c32bc(0x22a)]),typeof globalThis<'u'&&globalThis['crypto']&&(_0x1be176=globalThis['crypto']),!_0x1be176&&typeof window<'u'&&window[_0x3c32bc(0x3db)]&&(_0x1be176=window['msCrypto']),!_0x1be176&&typeof commonjsGlobal<'u'&&commonjsGlobal[_0x3c32bc(0x22a)]&&(_0x1be176=commonjsGlobal['crypto']),!_0x1be176&&typeof commonjsRequire==_0x3c32bc(0x27a))try{_0x1be176=require('crypto');}catch{}var _0x53c2ca=__name(function(){var _0x3c7e7d=_0x3c32bc;if(_0x1be176){if(typeof _0x1be176[_0x3c7e7d(0x24b)]==_0x3c7e7d(0x27a))try{return _0x1be176[_0x3c7e7d(0x24b)](new Uint32Array(0x1))[0x0];}catch{}if(typeof _0x1be176[_0x3c7e7d(0x1ac)]==_0x3c7e7d(0x27a))try{return _0x1be176[_0x3c7e7d(0x1ac)](0x4)[_0x3c7e7d(0x499)]();}catch{}}throw new Error(_0x3c7e7d(0x1ff));},_0x3c32bc(0x289)),_0x4e5dcc=Object[_0x3c32bc(0x2a5)]||(function(){function _0x4606a9(){}return __name(_0x4606a9,'F'),function(_0x2f0b0c){var _0x6bc80d=_0x1531,_0x2ec1b7;return _0x4606a9[_0x6bc80d(0x3c5)]=_0x2f0b0c,_0x2ec1b7=new _0x4606a9(),_0x4606a9[_0x6bc80d(0x3c5)]=null,_0x2ec1b7;};}()),_0x1a9034={},_0x1eda95=_0x1a9034[_0x3c32bc(0x199)]={},_0x3a4bc7=_0x1eda95[_0x3c32bc(0x364)]=(function(){var _0x2234fd=_0x3c32bc;return{'extend':__name(function(_0x2ce7a5){var _0x3d3906=_0x1531,_0x42f680=_0x4e5dcc(this);return _0x2ce7a5&&_0x42f680['mixIn'](_0x2ce7a5),(!_0x42f680['hasOwnProperty'](_0x3d3906(0x243))||this[_0x3d3906(0x243)]===_0x42f680['init'])&&(_0x42f680[_0x3d3906(0x243)]=function(){var _0x296cc6=_0x3d3906;_0x42f680[_0x296cc6(0x233)]['init'][_0x296cc6(0x418)](this,arguments);}),_0x42f680['init']['prototype']=_0x42f680,_0x42f680[_0x3d3906(0x233)]=this,_0x42f680;},_0x2234fd(0x469)),'create':__name(function(){var _0x533d93=_0x2234fd,_0x3d8e81=this[_0x533d93(0x469)]();return _0x3d8e81['init'][_0x533d93(0x418)](_0x3d8e81,arguments),_0x3d8e81;},'create'),'init':__name(function(){},_0x2234fd(0x243)),'mixIn':__name(function(_0x1d0e83){var _0x51ad85=_0x2234fd;for(var _0x58f30b in _0x1d0e83)_0x1d0e83[_0x51ad85(0x2dd)](_0x58f30b)&&(this[_0x58f30b]=_0x1d0e83[_0x58f30b]);_0x1d0e83[_0x51ad85(0x2dd)](_0x51ad85(0x279))&&(this[_0x51ad85(0x279)]=_0x1d0e83['toString']);},_0x2234fd(0x442)),'clone':__name(function(){var _0x42f1bc=_0x2234fd;return this[_0x42f1bc(0x243)]['prototype']['extend'](this);},_0x2234fd(0x24f))};}()),_0x5295b3=_0x1eda95[_0x3c32bc(0x1b5)]=_0x3a4bc7[_0x3c32bc(0x469)]({'init':__name(function(_0x38f89c,_0x1e8101){var _0x3b1a74=_0x3c32bc;_0x38f89c=this[_0x3b1a74(0x1d4)]=_0x38f89c||[],_0x1e8101!=_0x58de13?this['sigBytes']=_0x1e8101:this[_0x3b1a74(0x4a2)]=_0x38f89c['length']*0x4;},_0x3c32bc(0x243)),'toString':__name(function(_0x210814){var _0x629087=_0x3c32bc;return(_0x210814||_0x4a4c1f)[_0x629087(0x259)](this);},_0x3c32bc(0x279)),'concat':__name(function(_0x116d6e){var _0x27c7c2=_0x3c32bc,_0xd67d2b=this[_0x27c7c2(0x1d4)],_0xb933d1=_0x116d6e['words'],_0x5e5cd3=this[_0x27c7c2(0x4a2)],_0x42780d=_0x116d6e[_0x27c7c2(0x4a2)];if(this[_0x27c7c2(0x332)](),_0x5e5cd3%0x4)for(var _0x4b8e08=0x0;_0x4b8e08<_0x42780d;_0x4b8e08++){var _0x3a3b66=_0xb933d1[_0x4b8e08>>>0x2]>>>0x18-_0x4b8e08%0x4*0x8&0xff;_0xd67d2b[_0x5e5cd3+_0x4b8e08>>>0x2]|=_0x3a3b66<<0x18-(_0x5e5cd3+_0x4b8e08)%0x4*0x8;}else{for(var _0x3744b5=0x0;_0x3744b5<_0x42780d;_0x3744b5+=0x4)_0xd67d2b[_0x5e5cd3+_0x3744b5>>>0x2]=_0xb933d1[_0x3744b5>>>0x2];}return this[_0x27c7c2(0x4a2)]+=_0x42780d,this;},'concat'),'clamp':__name(function(){var _0x1b6f96=_0x3c32bc,_0x2acf28=this['words'],_0x3dc6d9=this[_0x1b6f96(0x4a2)];_0x2acf28[_0x3dc6d9>>>0x2]&=0xffffffff<<0x20-_0x3dc6d9%0x4*0x8,_0x2acf28['length']=_0x330153[_0x1b6f96(0x1e0)](_0x3dc6d9/0x4);},_0x3c32bc(0x332)),'clone':__name(function(){var _0x16bbdc=_0x3c32bc,_0x8d264a=_0x3a4bc7[_0x16bbdc(0x24f)][_0x16bbdc(0x21a)](this);return _0x8d264a['words']=this[_0x16bbdc(0x1d4)][_0x16bbdc(0x4a8)](0x0),_0x8d264a;},_0x3c32bc(0x24f)),'random':__name(function(_0x3b1881){var _0x536156=_0x3c32bc;for(var _0x480302=[],_0x11621e=0x0;_0x11621e<_0x3b1881;_0x11621e+=0x4)_0x480302[_0x536156(0x1b3)](_0x53c2ca());return new _0x5295b3['init'](_0x480302,_0x3b1881);},_0x3c32bc(0x47c))}),_0x48d9c1=_0x1a9034[_0x3c32bc(0x384)]={},_0x4a4c1f=_0x48d9c1[_0x3c32bc(0x18b)]={'stringify':__name(function(_0x169a55){var _0x2334f3=_0x3c32bc;for(var _0x56d3f9=_0x169a55[_0x2334f3(0x1d4)],_0x1a0df0=_0x169a55[_0x2334f3(0x4a2)],_0x1481bf=[],_0xcbb53c=0x0;_0xcbb53c<_0x1a0df0;_0xcbb53c++){var _0x72012c=_0x56d3f9[_0xcbb53c>>>0x2]>>>0x18-_0xcbb53c%0x4*0x8&0xff;_0x1481bf['push']((_0x72012c>>>0x4)[_0x2334f3(0x279)](0x10)),_0x1481bf[_0x2334f3(0x1b3)]((_0x72012c&0xf)[_0x2334f3(0x279)](0x10));}return _0x1481bf['join']('');},_0x3c32bc(0x259)),'parse':__name(function(_0x5a9bb9){var _0x38d675=_0x3c32bc;for(var _0x4ae042=_0x5a9bb9['length'],_0x414ed5=[],_0x460579=0x0;_0x460579<_0x4ae042;_0x460579+=0x2)_0x414ed5[_0x460579>>>0x3]|=parseInt(_0x5a9bb9[_0x38d675(0x33b)](_0x460579,0x2),0x10)<<0x18-_0x460579%0x8*0x4;return new _0x5295b3[(_0x38d675(0x243))](_0x414ed5,_0x4ae042/0x2);},'parse')},_0x544389=_0x48d9c1['Latin1']={'stringify':__name(function(_0x36565a){var _0x9c3a75=_0x3c32bc;for(var _0x57fc01=_0x36565a[_0x9c3a75(0x1d4)],_0x47dac5=_0x36565a[_0x9c3a75(0x4a2)],_0x3164c5=[],_0x291070=0x0;_0x291070<_0x47dac5;_0x291070++){var _0x896028=_0x57fc01[_0x291070>>>0x2]>>>0x18-_0x291070%0x4*0x8&0xff;_0x3164c5[_0x9c3a75(0x1b3)](String[_0x9c3a75(0x2cf)](_0x896028));}return _0x3164c5['join']('');},_0x3c32bc(0x259)),'parse':__name(function(_0x378f7f){var _0x7e9173=_0x3c32bc;for(var _0xfab591=_0x378f7f[_0x7e9173(0x20b)],_0x475735=[],_0x52d2ad=0x0;_0x52d2ad<_0xfab591;_0x52d2ad++)_0x475735[_0x52d2ad>>>0x2]|=(_0x378f7f['charCodeAt'](_0x52d2ad)&0xff)<<0x18-_0x52d2ad%0x4*0x8;return new _0x5295b3['init'](_0x475735,_0xfab591);},_0x3c32bc(0x361))},_0x5a3d21=_0x48d9c1[_0x3c32bc(0x2fc)]={'stringify':__name(function(_0x14278a){var _0x44f2f6=_0x3c32bc;try{return decodeURIComponent(escape(_0x544389[_0x44f2f6(0x259)](_0x14278a)));}catch{throw new Error(_0x44f2f6(0x27c));}},'stringify'),'parse':__name(function(_0x37d724){var _0x59e303=_0x3c32bc;return _0x544389[_0x59e303(0x361)](unescape(encodeURIComponent(_0x37d724)));},_0x3c32bc(0x361))},_0x1ad2d9=_0x1eda95[_0x3c32bc(0x278)]=_0x3a4bc7[_0x3c32bc(0x469)]({'reset':__name(function(){var _0x88f3bf=_0x3c32bc;this[_0x88f3bf(0x4bf)]=new _0x5295b3[(_0x88f3bf(0x243))](),this[_0x88f3bf(0x34d)]=0x0;},'reset'),'_append':__name(function(_0x27376c){var _0x482a85=_0x3c32bc;typeof _0x27376c==_0x482a85(0x3be)&&(_0x27376c=_0x5a3d21[_0x482a85(0x361)](_0x27376c)),this[_0x482a85(0x4bf)]['concat'](_0x27376c),this[_0x482a85(0x34d)]+=_0x27376c[_0x482a85(0x4a2)];},_0x3c32bc(0x3a4)),'_process':__name(function(_0x38760b){var _0x5ce237=_0x3c32bc,_0x3dbe5e,_0x32add2=this[_0x5ce237(0x4bf)],_0xd32130=_0x32add2[_0x5ce237(0x1d4)],_0x4847f5=_0x32add2[_0x5ce237(0x4a2)],_0x52bb58=this[_0x5ce237(0x3a6)],_0x129eeb=_0x52bb58*0x4,_0x2a6c94=_0x4847f5/_0x129eeb;_0x38760b?_0x2a6c94=_0x330153[_0x5ce237(0x1e0)](_0x2a6c94):_0x2a6c94=_0x330153[_0x5ce237(0x47e)]((_0x2a6c94|0x0)-this[_0x5ce237(0x30f)],0x0);var _0x1b44d2=_0x2a6c94*_0x52bb58,_0x55feec=_0x330153[_0x5ce237(0x467)](_0x1b44d2*0x4,_0x4847f5);if(_0x1b44d2){for(var _0x5238e6=0x0;_0x5238e6<_0x1b44d2;_0x5238e6+=_0x52bb58)this[_0x5ce237(0x446)](_0xd32130,_0x5238e6);_0x3dbe5e=_0xd32130['splice'](0x0,_0x1b44d2),_0x32add2[_0x5ce237(0x4a2)]-=_0x55feec;}return new _0x5295b3[(_0x5ce237(0x243))](_0x3dbe5e,_0x55feec);},_0x3c32bc(0x2ec)),'clone':__name(function(){var _0x386b31=_0x3c32bc,_0x2f851=_0x3a4bc7[_0x386b31(0x24f)][_0x386b31(0x21a)](this);return _0x2f851[_0x386b31(0x4bf)]=this['_data'][_0x386b31(0x24f)](),_0x2f851;},'clone'),'_minBufferSize':0x0});_0x1eda95[_0x3c32bc(0x1a5)]=_0x1ad2d9[_0x3c32bc(0x469)]({'cfg':_0x3a4bc7['extend'](),'init':__name(function(_0xbf0e67){var _0x18823c=_0x3c32bc;this[_0x18823c(0x3fe)]=this[_0x18823c(0x3fe)][_0x18823c(0x469)](_0xbf0e67),this['reset']();},_0x3c32bc(0x243)),'reset':__name(function(){var _0x2b98dd=_0x3c32bc;_0x1ad2d9[_0x2b98dd(0x398)][_0x2b98dd(0x21a)](this),this[_0x2b98dd(0x419)]();},'reset'),'update':__name(function(_0x2f66c4){var _0x3aff67=_0x3c32bc;return this['_append'](_0x2f66c4),this[_0x3aff67(0x2ec)](),this;},_0x3c32bc(0x1c5)),'finalize':__name(function(_0x2db0be){var _0x592a=_0x3c32bc;_0x2db0be&&this[_0x592a(0x3a4)](_0x2db0be);var _0x14b31e=this[_0x592a(0x3d6)]();return _0x14b31e;},'finalize'),'blockSize':0x10,'_createHelper':__name(function(_0x5beb2f){return function(_0x2363c9,_0x5e9a84){var _0x297159=_0x1531;return new _0x5beb2f[(_0x297159(0x243))](_0x5e9a84)[_0x297159(0x2fa)](_0x2363c9);};},_0x3c32bc(0x4b4)),'_createHmacHelper':__name(function(_0x2f7da5){return function(_0xe7f958,_0x440e8d){var _0x3ccaf5=_0x1531;return new _0x250439['HMAC'][(_0x3ccaf5(0x243))](_0x2f7da5,_0x440e8d)[_0x3ccaf5(0x2fa)](_0xe7f958);};},_0x3c32bc(0x3dd))});var _0x250439=_0x1a9034[_0x3c32bc(0x35a)]={};return _0x1a9034;}(Math);return _0x36b2c0;}));}(core$1)),core$1['exports'];}__name(requireCore,_0x10fcf4(0x183));var encBase64$1={'exports':{}},encBase64=encBase64$1[_0x10fcf4(0x2be)],hasRequiredEncBase64;function requireEncBase64(){var _0x2ef8fd=_0x10fcf4;return hasRequiredEncBase64||(hasRequiredEncBase64=0x1,function(_0x1af316,_0x30e2c4){(function(_0x5cfa8e,_0x2effa4){var _0xec8042=_0x1531;_0x1af316[_0xec8042(0x2be)]=_0x2effa4(requireCore());}(encBase64,function(_0x47d934){var _0x5e817c=_0x1531;return(function(){var _0x5a03d2=_0x1531,_0x40146d=_0x47d934,_0x58f43b=_0x40146d[_0x5a03d2(0x199)],_0x13875b=_0x58f43b[_0x5a03d2(0x1b5)],_0xa52383=_0x40146d[_0x5a03d2(0x384)];_0xa52383[_0x5a03d2(0x46b)]={'stringify':__name(function(_0x363011){var _0x4f8e6c=_0x5a03d2,_0x5b0154=_0x363011[_0x4f8e6c(0x1d4)],_0x229a42=_0x363011[_0x4f8e6c(0x4a2)],_0x132fcf=this['_map'];_0x363011[_0x4f8e6c(0x332)]();for(var _0x67a480=[],_0x5af252=0x0;_0x5af252<_0x229a42;_0x5af252+=0x3)for(var _0x3a5f0a=_0x5b0154[_0x5af252>>>0x2]>>>0x18-_0x5af252%0x4*0x8&0xff,_0x44534f=_0x5b0154[_0x5af252+0x1>>>0x2]>>>0x18-(_0x5af252+0x1)%0x4*0x8&0xff,_0x5ec4e1=_0x5b0154[_0x5af252+0x2>>>0x2]>>>0x18-(_0x5af252+0x2)%0x4*0x8&0xff,_0x14562e=_0x3a5f0a<<0x10|_0x44534f<<0x8|_0x5ec4e1,_0x47101e=0x0;_0x47101e<0x4&&_0x5af252+_0x47101e*0.75<_0x229a42;_0x47101e++)_0x67a480[_0x4f8e6c(0x1b3)](_0x132fcf[_0x4f8e6c(0x4c2)](_0x14562e>>>0x6*(0x3-_0x47101e)&0x3f));var _0xa780b6=_0x132fcf[_0x4f8e6c(0x4c2)](0x40);if(_0xa780b6){for(;_0x67a480['length']%0x4;)_0x67a480[_0x4f8e6c(0x1b3)](_0xa780b6);}return _0x67a480['join']('');},'stringify'),'parse':__name(function(_0x1b70ad){var _0x22431b=_0x5a03d2,_0x48a49d=_0x1b70ad['length'],_0x367116=this[_0x22431b(0x1c2)],_0xaa50a3=this[_0x22431b(0x342)];if(!_0xaa50a3){_0xaa50a3=this[_0x22431b(0x342)]=[];for(var _0x4da0e8=0x0;_0x4da0e8<_0x367116['length'];_0x4da0e8++)_0xaa50a3[_0x367116[_0x22431b(0x3ec)](_0x4da0e8)]=_0x4da0e8;}var _0x4a78ca=_0x367116['charAt'](0x40);if(_0x4a78ca){var _0x4abb60=_0x1b70ad['indexOf'](_0x4a78ca);_0x4abb60!==-0x1&&(_0x48a49d=_0x4abb60);}return _0x480770(_0x1b70ad,_0x48a49d,_0xaa50a3);},'parse'),'_map':'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='};function _0x480770(_0x4b6924,_0x3b20d3,_0x4a7427){var _0x367d8a=_0x5a03d2;for(var _0x3a8cf2=[],_0x3e2752=0x0,_0xf38cb2=0x0;_0xf38cb2<_0x3b20d3;_0xf38cb2++)if(_0xf38cb2%0x4){var _0x440961=_0x4a7427[_0x4b6924[_0x367d8a(0x3ec)](_0xf38cb2-0x1)]<<_0xf38cb2%0x4*0x2,_0x2f8a2e=_0x4a7427[_0x4b6924[_0x367d8a(0x3ec)](_0xf38cb2)]>>>0x6-_0xf38cb2%0x4*0x2,_0x19d2d3=_0x440961|_0x2f8a2e;_0x3a8cf2[_0x3e2752>>>0x2]|=_0x19d2d3<<0x18-_0x3e2752%0x4*0x8,_0x3e2752++;}return _0x13875b[_0x367d8a(0x2a5)](_0x3a8cf2,_0x3e2752);}__name(_0x480770,'parseLoop');}()),_0x47d934['enc'][_0x5e817c(0x46b)];}));}(encBase64$1)),encBase64$1[_0x2ef8fd(0x2be)];}__name(requireEncBase64,_0x10fcf4(0x268));var md5$1={'exports':{}},md5=md5$1[_0x10fcf4(0x2be)],hasRequiredMd5;function requireMd5(){return hasRequiredMd5||(hasRequiredMd5=0x1,function(_0x2c5e01,_0x44a1cc){(function(_0x47fce3,_0x1ff51c){var _0x3113cf=_0x1531;_0x2c5e01[_0x3113cf(0x2be)]=_0x1ff51c(requireCore());}(md5,function(_0x3cea65){var _0x3781d7=_0x1531;return function(_0x461900){var _0x4a656f=_0x1531,_0x1ca8af=_0x3cea65,_0x23a9db=_0x1ca8af[_0x4a656f(0x199)],_0x178f06=_0x23a9db['WordArray'],_0x2b152e=_0x23a9db['Hasher'],_0x16ed64=_0x1ca8af[_0x4a656f(0x35a)],_0x41c030=[];(function(){var _0xda716c=_0x4a656f;for(var _0x2e4481=0x0;_0x2e4481<0x40;_0x2e4481++)_0x41c030[_0x2e4481]=_0x461900[_0xda716c(0x3c0)](_0x461900[_0xda716c(0x2c4)](_0x2e4481+0x1))*0x100000000|0x0;}());var _0x411ed7=_0x16ed64[_0x4a656f(0x3f5)]=_0x2b152e[_0x4a656f(0x469)]({'_doReset':__name(function(){var _0x21ae68=_0x4a656f;this[_0x21ae68(0x20d)]=new _0x178f06[(_0x21ae68(0x243))]([0x67452301,0xefcdab89,0x98badcfe,0x10325476]);},'_doReset'),'_doProcessBlock':__name(function(_0x1095cd,_0x42f215){var _0x1c9424=_0x4a656f;for(var _0x2987e5=0x0;_0x2987e5<0x10;_0x2987e5++){var _0x3c86d9=_0x42f215+_0x2987e5,_0x53a6fe=_0x1095cd[_0x3c86d9];_0x1095cd[_0x3c86d9]=(_0x53a6fe<<0x8|_0x53a6fe>>>0x18)&0xff00ff|(_0x53a6fe<<0x18|_0x53a6fe>>>0x8)&0xff00ff00;}var _0x11e89d=this['_hash'][_0x1c9424(0x1d4)],_0xce4f91=_0x1095cd[_0x42f215+0x0],_0x2c74e9=_0x1095cd[_0x42f215+0x1],_0x2994fb=_0x1095cd[_0x42f215+0x2],_0x3fe7b6=_0x1095cd[_0x42f215+0x3],_0x11aa84=_0x1095cd[_0x42f215+0x4],_0x2e7c01=_0x1095cd[_0x42f215+0x5],_0xacf00b=_0x1095cd[_0x42f215+0x6],_0x42c3a9=_0x1095cd[_0x42f215+0x7],_0x4de9c2=_0x1095cd[_0x42f215+0x8],_0x57010e=_0x1095cd[_0x42f215+0x9],_0x39b72b=_0x1095cd[_0x42f215+0xa],_0x1a2402=_0x1095cd[_0x42f215+0xb],_0x35928d=_0x1095cd[_0x42f215+0xc],_0x3c0bdd=_0x1095cd[_0x42f215+0xd],_0x2128dd=_0x1095cd[_0x42f215+0xe],_0x4fb9c5=_0x1095cd[_0x42f215+0xf],_0x464dc3=_0x11e89d[0x0],_0x4e8ccb=_0x11e89d[0x1],_0x2f85c6=_0x11e89d[0x2],_0xe9e19b=_0x11e89d[0x3];_0x464dc3=_0x3726b2(_0x464dc3,_0x4e8ccb,_0x2f85c6,_0xe9e19b,_0xce4f91,0x7,_0x41c030[0x0]),_0xe9e19b=_0x3726b2(_0xe9e19b,_0x464dc3,_0x4e8ccb,_0x2f85c6,_0x2c74e9,0xc,_0x41c030[0x1]),_0x2f85c6=_0x3726b2(_0x2f85c6,_0xe9e19b,_0x464dc3,_0x4e8ccb,_0x2994fb,0x11,_0x41c030[0x2]),_0x4e8ccb=_0x3726b2(_0x4e8ccb,_0x2f85c6,_0xe9e19b,_0x464dc3,_0x3fe7b6,0x16,_0x41c030[0x3]),_0x464dc3=_0x3726b2(_0x464dc3,_0x4e8ccb,_0x2f85c6,_0xe9e19b,_0x11aa84,0x7,_0x41c030[0x4]),_0xe9e19b=_0x3726b2(_0xe9e19b,_0x464dc3,_0x4e8ccb,_0x2f85c6,_0x2e7c01,0xc,_0x41c030[0x5]),_0x2f85c6=_0x3726b2(_0x2f85c6,_0xe9e19b,_0x464dc3,_0x4e8ccb,_0xacf00b,0x11,_0x41c030[0x6]),_0x4e8ccb=_0x3726b2(_0x4e8ccb,_0x2f85c6,_0xe9e19b,_0x464dc3,_0x42c3a9,0x16,_0x41c030[0x7]),_0x464dc3=_0x3726b2(_0x464dc3,_0x4e8ccb,_0x2f85c6,_0xe9e19b,_0x4de9c2,0x7,_0x41c030[0x8]),_0xe9e19b=_0x3726b2(_0xe9e19b,_0x464dc3,_0x4e8ccb,_0x2f85c6,_0x57010e,0xc,_0x41c030[0x9]),_0x2f85c6=_0x3726b2(_0x2f85c6,_0xe9e19b,_0x464dc3,_0x4e8ccb,_0x39b72b,0x11,_0x41c030[0xa]),_0x4e8ccb=_0x3726b2(_0x4e8ccb,_0x2f85c6,_0xe9e19b,_0x464dc3,_0x1a2402,0x16,_0x41c030[0xb]),_0x464dc3=_0x3726b2(_0x464dc3,_0x4e8ccb,_0x2f85c6,_0xe9e19b,_0x35928d,0x7,_0x41c030[0xc]),_0xe9e19b=_0x3726b2(_0xe9e19b,_0x464dc3,_0x4e8ccb,_0x2f85c6,_0x3c0bdd,0xc,_0x41c030[0xd]),_0x2f85c6=_0x3726b2(_0x2f85c6,_0xe9e19b,_0x464dc3,_0x4e8ccb,_0x2128dd,0x11,_0x41c030[0xe]),_0x4e8ccb=_0x3726b2(_0x4e8ccb,_0x2f85c6,_0xe9e19b,_0x464dc3,_0x4fb9c5,0x16,_0x41c030[0xf]),_0x464dc3=_0x5577e8(_0x464dc3,_0x4e8ccb,_0x2f85c6,_0xe9e19b,_0x2c74e9,0x5,_0x41c030[0x10]),_0xe9e19b=_0x5577e8(_0xe9e19b,_0x464dc3,_0x4e8ccb,_0x2f85c6,_0xacf00b,0x9,_0x41c030[0x11]),_0x2f85c6=_0x5577e8(_0x2f85c6,_0xe9e19b,_0x464dc3,_0x4e8ccb,_0x1a2402,0xe,_0x41c030[0x12]),_0x4e8ccb=_0x5577e8(_0x4e8ccb,_0x2f85c6,_0xe9e19b,_0x464dc3,_0xce4f91,0x14,_0x41c030[0x13]),_0x464dc3=_0x5577e8(_0x464dc3,_0x4e8ccb,_0x2f85c6,_0xe9e19b,_0x2e7c01,0x5,_0x41c030[0x14]),_0xe9e19b=_0x5577e8(_0xe9e19b,_0x464dc3,_0x4e8ccb,_0x2f85c6,_0x39b72b,0x9,_0x41c030[0x15]),_0x2f85c6=_0x5577e8(_0x2f85c6,_0xe9e19b,_0x464dc3,_0x4e8ccb,_0x4fb9c5,0xe,_0x41c030[0x16]),_0x4e8ccb=_0x5577e8(_0x4e8ccb,_0x2f85c6,_0xe9e19b,_0x464dc3,_0x11aa84,0x14,_0x41c030[0x17]),_0x464dc3=_0x5577e8(_0x464dc3,_0x4e8ccb,_0x2f85c6,_0xe9e19b,_0x57010e,0x5,_0x41c030[0x18]),_0xe9e19b=_0x5577e8(_0xe9e19b,_0x464dc3,_0x4e8ccb,_0x2f85c6,_0x2128dd,0x9,_0x41c030[0x19]),_0x2f85c6=_0x5577e8(_0x2f85c6,_0xe9e19b,_0x464dc3,_0x4e8ccb,_0x3fe7b6,0xe,_0x41c030[0x1a]),_0x4e8ccb=_0x5577e8(_0x4e8ccb,_0x2f85c6,_0xe9e19b,_0x464dc3,_0x4de9c2,0x14,_0x41c030[0x1b]),_0x464dc3=_0x5577e8(_0x464dc3,_0x4e8ccb,_0x2f85c6,_0xe9e19b,_0x3c0bdd,0x5,_0x41c030[0x1c]),_0xe9e19b=_0x5577e8(_0xe9e19b,_0x464dc3,_0x4e8ccb,_0x2f85c6,_0x2994fb,0x9,_0x41c030[0x1d]),_0x2f85c6=_0x5577e8(_0x2f85c6,_0xe9e19b,_0x464dc3,_0x4e8ccb,_0x42c3a9,0xe,_0x41c030[0x1e]),_0x4e8ccb=_0x5577e8(_0x4e8ccb,_0x2f85c6,_0xe9e19b,_0x464dc3,_0x35928d,0x14,_0x41c030[0x1f]),_0x464dc3=_0x195366(_0x464dc3,_0x4e8ccb,_0x2f85c6,_0xe9e19b,_0x2e7c01,0x4,_0x41c030[0x20]),_0xe9e19b=_0x195366(_0xe9e19b,_0x464dc3,_0x4e8ccb,_0x2f85c6,_0x4de9c2,0xb,_0x41c030[0x21]),_0x2f85c6=_0x195366(_0x2f85c6,_0xe9e19b,_0x464dc3,_0x4e8ccb,_0x1a2402,0x10,_0x41c030[0x22]),_0x4e8ccb=_0x195366(_0x4e8ccb,_0x2f85c6,_0xe9e19b,_0x464dc3,_0x2128dd,0x17,_0x41c030[0x23]),_0x464dc3=_0x195366(_0x464dc3,_0x4e8ccb,_0x2f85c6,_0xe9e19b,_0x2c74e9,0x4,_0x41c030[0x24]),_0xe9e19b=_0x195366(_0xe9e19b,_0x464dc3,_0x4e8ccb,_0x2f85c6,_0x11aa84,0xb,_0x41c030[0x25]),_0x2f85c6=_0x195366(_0x2f85c6,_0xe9e19b,_0x464dc3,_0x4e8ccb,_0x42c3a9,0x10,_0x41c030[0x26]),_0x4e8ccb=_0x195366(_0x4e8ccb,_0x2f85c6,_0xe9e19b,_0x464dc3,_0x39b72b,0x17,_0x41c030[0x27]),_0x464dc3=_0x195366(_0x464dc3,_0x4e8ccb,_0x2f85c6,_0xe9e19b,_0x3c0bdd,0x4,_0x41c030[0x28]),_0xe9e19b=_0x195366(_0xe9e19b,_0x464dc3,_0x4e8ccb,_0x2f85c6,_0xce4f91,0xb,_0x41c030[0x29]),_0x2f85c6=_0x195366(_0x2f85c6,_0xe9e19b,_0x464dc3,_0x4e8ccb,_0x3fe7b6,0x10,_0x41c030[0x2a]),_0x4e8ccb=_0x195366(_0x4e8ccb,_0x2f85c6,_0xe9e19b,_0x464dc3,_0xacf00b,0x17,_0x41c030[0x2b]),_0x464dc3=_0x195366(_0x464dc3,_0x4e8ccb,_0x2f85c6,_0xe9e19b,_0x57010e,0x4,_0x41c030[0x2c]),_0xe9e19b=_0x195366(_0xe9e19b,_0x464dc3,_0x4e8ccb,_0x2f85c6,_0x35928d,0xb,_0x41c030[0x2d]),_0x2f85c6=_0x195366(_0x2f85c6,_0xe9e19b,_0x464dc3,_0x4e8ccb,_0x4fb9c5,0x10,_0x41c030[0x2e]),_0x4e8ccb=_0x195366(_0x4e8ccb,_0x2f85c6,_0xe9e19b,_0x464dc3,_0x2994fb,0x17,_0x41c030[0x2f]),_0x464dc3=_0x3a4730(_0x464dc3,_0x4e8ccb,_0x2f85c6,_0xe9e19b,_0xce4f91,0x6,_0x41c030[0x30]),_0xe9e19b=_0x3a4730(_0xe9e19b,_0x464dc3,_0x4e8ccb,_0x2f85c6,_0x42c3a9,0xa,_0x41c030[0x31]),_0x2f85c6=_0x3a4730(_0x2f85c6,_0xe9e19b,_0x464dc3,_0x4e8ccb,_0x2128dd,0xf,_0x41c030[0x32]),_0x4e8ccb=_0x3a4730(_0x4e8ccb,_0x2f85c6,_0xe9e19b,_0x464dc3,_0x2e7c01,0x15,_0x41c030[0x33]),_0x464dc3=_0x3a4730(_0x464dc3,_0x4e8ccb,_0x2f85c6,_0xe9e19b,_0x35928d,0x6,_0x41c030[0x34]),_0xe9e19b=_0x3a4730(_0xe9e19b,_0x464dc3,_0x4e8ccb,_0x2f85c6,_0x3fe7b6,0xa,_0x41c030[0x35]),_0x2f85c6=_0x3a4730(_0x2f85c6,_0xe9e19b,_0x464dc3,_0x4e8ccb,_0x39b72b,0xf,_0x41c030[0x36]),_0x4e8ccb=_0x3a4730(_0x4e8ccb,_0x2f85c6,_0xe9e19b,_0x464dc3,_0x2c74e9,0x15,_0x41c030[0x37]),_0x464dc3=_0x3a4730(_0x464dc3,_0x4e8ccb,_0x2f85c6,_0xe9e19b,_0x4de9c2,0x6,_0x41c030[0x38]),_0xe9e19b=_0x3a4730(_0xe9e19b,_0x464dc3,_0x4e8ccb,_0x2f85c6,_0x4fb9c5,0xa,_0x41c030[0x39]),_0x2f85c6=_0x3a4730(_0x2f85c6,_0xe9e19b,_0x464dc3,_0x4e8ccb,_0xacf00b,0xf,_0x41c030[0x3a]),_0x4e8ccb=_0x3a4730(_0x4e8ccb,_0x2f85c6,_0xe9e19b,_0x464dc3,_0x3c0bdd,0x15,_0x41c030[0x3b]),_0x464dc3=_0x3a4730(_0x464dc3,_0x4e8ccb,_0x2f85c6,_0xe9e19b,_0x11aa84,0x6,_0x41c030[0x3c]),_0xe9e19b=_0x3a4730(_0xe9e19b,_0x464dc3,_0x4e8ccb,_0x2f85c6,_0x1a2402,0xa,_0x41c030[0x3d]),_0x2f85c6=_0x3a4730(_0x2f85c6,_0xe9e19b,_0x464dc3,_0x4e8ccb,_0x2994fb,0xf,_0x41c030[0x3e]),_0x4e8ccb=_0x3a4730(_0x4e8ccb,_0x2f85c6,_0xe9e19b,_0x464dc3,_0x57010e,0x15,_0x41c030[0x3f]),_0x11e89d[0x0]=_0x11e89d[0x0]+_0x464dc3|0x0,_0x11e89d[0x1]=_0x11e89d[0x1]+_0x4e8ccb|0x0,_0x11e89d[0x2]=_0x11e89d[0x2]+_0x2f85c6|0x0,_0x11e89d[0x3]=_0x11e89d[0x3]+_0xe9e19b|0x0;},_0x4a656f(0x446)),'_doFinalize':__name(function(){var _0x158245=_0x4a656f,_0x3e7484=this[_0x158245(0x4bf)],_0x581c5c=_0x3e7484[_0x158245(0x1d4)],_0xf4f1e2=this[_0x158245(0x34d)]*0x8,_0x9e7df4=_0x3e7484[_0x158245(0x4a2)]*0x8;_0x581c5c[_0x9e7df4>>>0x5]|=0x80<<0x18-_0x9e7df4%0x20;var _0xecfe86=_0x461900['floor'](_0xf4f1e2/0x100000000),_0x144718=_0xf4f1e2;_0x581c5c[(_0x9e7df4+0x40>>>0x9<<0x4)+0xf]=(_0xecfe86<<0x8|_0xecfe86>>>0x18)&0xff00ff|(_0xecfe86<<0x18|_0xecfe86>>>0x8)&0xff00ff00,_0x581c5c[(_0x9e7df4+0x40>>>0x9<<0x4)+0xe]=(_0x144718<<0x8|_0x144718>>>0x18)&0xff00ff|(_0x144718<<0x18|_0x144718>>>0x8)&0xff00ff00,_0x3e7484[_0x158245(0x4a2)]=(_0x581c5c['length']+0x1)*0x4,this[_0x158245(0x2ec)]();for(var _0x1e6607=this[_0x158245(0x20d)],_0x396f03=_0x1e6607[_0x158245(0x1d4)],_0x4e8395=0x0;_0x4e8395<0x4;_0x4e8395++){var _0x59f13a=_0x396f03[_0x4e8395];_0x396f03[_0x4e8395]=(_0x59f13a<<0x8|_0x59f13a>>>0x18)&0xff00ff|(_0x59f13a<<0x18|_0x59f13a>>>0x8)&0xff00ff00;}return _0x1e6607;},_0x4a656f(0x3d6)),'clone':__name(function(){var _0x5ceaf5=_0x4a656f,_0x506add=_0x2b152e[_0x5ceaf5(0x24f)][_0x5ceaf5(0x21a)](this);return _0x506add[_0x5ceaf5(0x20d)]=this['_hash'][_0x5ceaf5(0x24f)](),_0x506add;},_0x4a656f(0x24f))});function _0x3726b2(_0xe74d7f,_0x2c472b,_0x2dffe3,_0x2eeee1,_0xb3d8d8,_0x44d552,_0x4fef14){var _0x3d16da=_0xe74d7f+(_0x2c472b&_0x2dffe3|~_0x2c472b&_0x2eeee1)+_0xb3d8d8+_0x4fef14;return(_0x3d16da<<_0x44d552|_0x3d16da>>>0x20-_0x44d552)+_0x2c472b;}__name(_0x3726b2,'FF');function _0x5577e8(_0x38826d,_0x40bb1c,_0x1f96d2,_0x24378b,_0x2d53b3,_0x14cfcd,_0x4b9b74){var _0xd3b0fe=_0x38826d+(_0x40bb1c&_0x24378b|_0x1f96d2&~_0x24378b)+_0x2d53b3+_0x4b9b74;return(_0xd3b0fe<<_0x14cfcd|_0xd3b0fe>>>0x20-_0x14cfcd)+_0x40bb1c;}__name(_0x5577e8,'GG');function _0x195366(_0x12d2a3,_0x38077f,_0x3a6b65,_0x98ad8c,_0x2d1662,_0x1e577c,_0x48cdb1){var _0x400f21=_0x12d2a3+(_0x38077f^_0x3a6b65^_0x98ad8c)+_0x2d1662+_0x48cdb1;return(_0x400f21<<_0x1e577c|_0x400f21>>>0x20-_0x1e577c)+_0x38077f;}__name(_0x195366,'HH');function _0x3a4730(_0x163fb6,_0x5e0a4b,_0x3ee119,_0x25f933,_0xbe435c,_0x1363e1,_0x5a54ac){var _0x2e399e=_0x163fb6+(_0x3ee119^(_0x5e0a4b|~_0x25f933))+_0xbe435c+_0x5a54ac;return(_0x2e399e<<_0x1363e1|_0x2e399e>>>0x20-_0x1363e1)+_0x5e0a4b;}__name(_0x3a4730,'II'),_0x1ca8af[_0x4a656f(0x3f5)]=_0x2b152e[_0x4a656f(0x4b4)](_0x411ed7),_0x1ca8af[_0x4a656f(0x3fd)]=_0x2b152e['_createHmacHelper'](_0x411ed7);}(Math),_0x3cea65[_0x3781d7(0x3f5)];}));}(md5$1)),md5$1['exports'];}__name(requireMd5,_0x10fcf4(0x22b));var evpkdf$1={'exports':{}},sha1$1={'exports':{}},sha1=sha1$1['exports'],hasRequiredSha1;function requireSha1(){var _0x1b0112=_0x10fcf4;return hasRequiredSha1||(hasRequiredSha1=0x1,function(_0x47051f,_0x367aca){(function(_0x4813e6,_0x5aae88){var _0x339639=_0x1531;_0x47051f[_0x339639(0x2be)]=_0x5aae88(requireCore());}(sha1,function(_0x125cc7){var _0x311efa=_0x1531;return(function(){var _0x52b573=_0x1531,_0x54ae6b=_0x125cc7,_0x261f8c=_0x54ae6b[_0x52b573(0x199)],_0x195138=_0x261f8c['WordArray'],_0xd7b480=_0x261f8c[_0x52b573(0x1a5)],_0x1a6ec3=_0x54ae6b[_0x52b573(0x35a)],_0x99338=[],_0x33c109=_0x1a6ec3[_0x52b573(0x47f)]=_0xd7b480[_0x52b573(0x469)]({'_doReset':__name(function(){var _0x17bc2e=_0x52b573;this[_0x17bc2e(0x20d)]=new _0x195138[(_0x17bc2e(0x243))]([0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0]);},_0x52b573(0x419)),'_doProcessBlock':__name(function(_0x4ac6c7,_0x42761a){var _0x5dd78f=_0x52b573;for(var _0x2b0dbc=this[_0x5dd78f(0x20d)][_0x5dd78f(0x1d4)],_0x5b744f=_0x2b0dbc[0x0],_0x240296=_0x2b0dbc[0x1],_0x214318=_0x2b0dbc[0x2],_0xde0f91=_0x2b0dbc[0x3],_0x5ed204=_0x2b0dbc[0x4],_0xe2b16a=0x0;_0xe2b16a<0x50;_0xe2b16a++){if(_0xe2b16a<0x10)_0x99338[_0xe2b16a]=_0x4ac6c7[_0x42761a+_0xe2b16a]|0x0;else{var _0x4bb794=_0x99338[_0xe2b16a-0x3]^_0x99338[_0xe2b16a-0x8]^_0x99338[_0xe2b16a-0xe]^_0x99338[_0xe2b16a-0x10];_0x99338[_0xe2b16a]=_0x4bb794<<0x1|_0x4bb794>>>0x1f;}var _0x19d6f2=(_0x5b744f<<0x5|_0x5b744f>>>0x1b)+_0x5ed204+_0x99338[_0xe2b16a];_0xe2b16a<0x14?_0x19d6f2+=(_0x240296&_0x214318|~_0x240296&_0xde0f91)+0x5a827999:_0xe2b16a<0x28?_0x19d6f2+=(_0x240296^_0x214318^_0xde0f91)+0x6ed9eba1:_0xe2b16a<0x3c?_0x19d6f2+=(_0x240296&_0x214318|_0x240296&_0xde0f91|_0x214318&_0xde0f91)-0x70e44324:_0x19d6f2+=(_0x240296^_0x214318^_0xde0f91)-0x359d3e2a,_0x5ed204=_0xde0f91,_0xde0f91=_0x214318,_0x214318=_0x240296<<0x1e|_0x240296>>>0x2,_0x240296=_0x5b744f,_0x5b744f=_0x19d6f2;}_0x2b0dbc[0x0]=_0x2b0dbc[0x0]+_0x5b744f|0x0,_0x2b0dbc[0x1]=_0x2b0dbc[0x1]+_0x240296|0x0,_0x2b0dbc[0x2]=_0x2b0dbc[0x2]+_0x214318|0x0,_0x2b0dbc[0x3]=_0x2b0dbc[0x3]+_0xde0f91|0x0,_0x2b0dbc[0x4]=_0x2b0dbc[0x4]+_0x5ed204|0x0;},_0x52b573(0x446)),'_doFinalize':__name(function(){var _0x30740f=_0x52b573,_0x516a8a=this['_data'],_0x3220c4=_0x516a8a[_0x30740f(0x1d4)],_0x2b6935=this[_0x30740f(0x34d)]*0x8,_0x179fce=_0x516a8a[_0x30740f(0x4a2)]*0x8;return _0x3220c4[_0x179fce>>>0x5]|=0x80<<0x18-_0x179fce%0x20,_0x3220c4[(_0x179fce+0x40>>>0x9<<0x4)+0xe]=Math[_0x30740f(0x457)](_0x2b6935/0x100000000),_0x3220c4[(_0x179fce+0x40>>>0x9<<0x4)+0xf]=_0x2b6935,_0x516a8a[_0x30740f(0x4a2)]=_0x3220c4[_0x30740f(0x20b)]*0x4,this[_0x30740f(0x2ec)](),this[_0x30740f(0x20d)];},_0x52b573(0x3d6)),'clone':__name(function(){var _0x38f1a5=_0x52b573,_0x37ca30=_0xd7b480['clone']['call'](this);return _0x37ca30[_0x38f1a5(0x20d)]=this[_0x38f1a5(0x20d)][_0x38f1a5(0x24f)](),_0x37ca30;},_0x52b573(0x24f))});_0x54ae6b['SHA1']=_0xd7b480['_createHelper'](_0x33c109),_0x54ae6b['HmacSHA1']=_0xd7b480[_0x52b573(0x3dd)](_0x33c109);}()),_0x125cc7[_0x311efa(0x47f)];}));}(sha1$1)),sha1$1[_0x1b0112(0x2be)];}__name(requireSha1,'requireSha1');var hmac$1={'exports':{}},hmac=hmac$1[_0x10fcf4(0x2be)],hasRequiredHmac;function requireHmac(){var _0xbe940b=_0x10fcf4;return hasRequiredHmac||(hasRequiredHmac=0x1,function(_0x51ece4,_0x55e040){(function(_0x220de3,_0x1a603d){var _0x3dce3f=_0x1531;_0x51ece4[_0x3dce3f(0x2be)]=_0x1a603d(requireCore());}(hmac,function(_0x1ab37d){(function(){var _0x5296bc=_0x1531,_0x3b7fd3=_0x1ab37d,_0xf88e51=_0x3b7fd3[_0x5296bc(0x199)],_0x50a005=_0xf88e51[_0x5296bc(0x364)],_0x16b2c8=_0x3b7fd3[_0x5296bc(0x384)],_0x23784d=_0x16b2c8['Utf8'],_0x3402a8=_0x3b7fd3['algo'];_0x3402a8['HMAC']=_0x50a005[_0x5296bc(0x469)]({'init':__name(function(_0x51fae0,_0x428ed0){var _0x3d8ef9=_0x5296bc;_0x51fae0=this[_0x3d8ef9(0x4bb)]=new _0x51fae0['init'](),typeof _0x428ed0==_0x3d8ef9(0x3be)&&(_0x428ed0=_0x23784d[_0x3d8ef9(0x361)](_0x428ed0));var _0x2e37c1=_0x51fae0['blockSize'],_0x4a316e=_0x2e37c1*0x4;_0x428ed0[_0x3d8ef9(0x4a2)]>_0x4a316e&&(_0x428ed0=_0x51fae0[_0x3d8ef9(0x2fa)](_0x428ed0)),_0x428ed0[_0x3d8ef9(0x332)]();for(var _0x1b08db=this[_0x3d8ef9(0x3ca)]=_0x428ed0[_0x3d8ef9(0x24f)](),_0x48ddeb=this['_iKey']=_0x428ed0[_0x3d8ef9(0x24f)](),_0xb9604b=_0x1b08db[_0x3d8ef9(0x1d4)],_0x1f1bbf=_0x48ddeb[_0x3d8ef9(0x1d4)],_0x212993=0x0;_0x212993<_0x2e37c1;_0x212993++)_0xb9604b[_0x212993]^=0x5c5c5c5c,_0x1f1bbf[_0x212993]^=0x36363636;_0x1b08db[_0x3d8ef9(0x4a2)]=_0x48ddeb[_0x3d8ef9(0x4a2)]=_0x4a316e,this[_0x3d8ef9(0x398)]();},_0x5296bc(0x243)),'reset':__name(function(){var _0x50d314=_0x5296bc,_0x238daa=this[_0x50d314(0x4bb)];_0x238daa[_0x50d314(0x398)](),_0x238daa[_0x50d314(0x1c5)](this['_iKey']);},_0x5296bc(0x398)),'update':__name(function(_0x13b8a2){var _0x3373c7=_0x5296bc;return this[_0x3373c7(0x4bb)][_0x3373c7(0x1c5)](_0x13b8a2),this;},_0x5296bc(0x1c5)),'finalize':__name(function(_0x1a098){var _0x51bb9e=_0x5296bc,_0x3aa440=this['_hasher'],_0x2df9a1=_0x3aa440[_0x51bb9e(0x2fa)](_0x1a098);_0x3aa440[_0x51bb9e(0x398)]();var _0x27a875=_0x3aa440['finalize'](this[_0x51bb9e(0x3ca)][_0x51bb9e(0x24f)]()['concat'](_0x2df9a1));return _0x27a875;},'finalize')});}());}));}(hmac$1)),hmac$1[_0xbe940b(0x2be)];}__name(requireHmac,_0x10fcf4(0x46c));var evpkdf=evpkdf$1[_0x10fcf4(0x2be)],hasRequiredEvpkdf;function requireEvpkdf(){var _0x26a219=_0x10fcf4;return hasRequiredEvpkdf||(hasRequiredEvpkdf=0x1,function(_0x4f21da,_0x7841f6){(function(_0x87ef17,_0x7ff1b5,_0xea1aab){var _0x11111c=_0x1531;_0x4f21da[_0x11111c(0x2be)]=_0x7ff1b5(requireCore(),requireSha1(),requireHmac());}(evpkdf,function(_0x10c8f5){return(function(){var _0x1d6ff3=_0x1531,_0x5818f6=_0x10c8f5,_0x41e033=_0x5818f6[_0x1d6ff3(0x199)],_0x434b15=_0x41e033[_0x1d6ff3(0x364)],_0xc6b106=_0x41e033[_0x1d6ff3(0x1b5)],_0x10596a=_0x5818f6[_0x1d6ff3(0x35a)],_0x5ce800=_0x10596a[_0x1d6ff3(0x3f5)],_0x5cc6a4=_0x10596a[_0x1d6ff3(0x380)]=_0x434b15[_0x1d6ff3(0x469)]({'cfg':_0x434b15['extend']({'keySize':0x80/0x20,'hasher':_0x5ce800,'iterations':0x1}),'init':__name(function(_0x185ca9){var _0x2b44c8=_0x1d6ff3;this[_0x2b44c8(0x3fe)]=this['cfg'][_0x2b44c8(0x469)](_0x185ca9);},_0x1d6ff3(0x243)),'compute':__name(function(_0x9c2c0b,_0x36688e){var _0x28ff0a=_0x1d6ff3;for(var _0x1a8671,_0x123eaf=this[_0x28ff0a(0x3fe)],_0x24f027=_0x123eaf[_0x28ff0a(0x34b)][_0x28ff0a(0x2a5)](),_0x1041a2=_0xc6b106['create'](),_0x4e1421=_0x1041a2[_0x28ff0a(0x1d4)],_0x262258=_0x123eaf[_0x28ff0a(0x22e)],_0x4497f9=_0x123eaf['iterations'];_0x4e1421[_0x28ff0a(0x20b)]<_0x262258;){_0x1a8671&&_0x24f027[_0x28ff0a(0x1c5)](_0x1a8671),_0x1a8671=_0x24f027[_0x28ff0a(0x1c5)](_0x9c2c0b)[_0x28ff0a(0x2fa)](_0x36688e),_0x24f027[_0x28ff0a(0x398)]();for(var _0x209b06=0x1;_0x209b06<_0x4497f9;_0x209b06++)_0x1a8671=_0x24f027['finalize'](_0x1a8671),_0x24f027[_0x28ff0a(0x398)]();_0x1041a2[_0x28ff0a(0x20c)](_0x1a8671);}return _0x1041a2[_0x28ff0a(0x4a2)]=_0x262258*0x4,_0x1041a2;},_0x1d6ff3(0x2db))});_0x5818f6[_0x1d6ff3(0x380)]=function(_0x5bac2e,_0x59863a,_0x3c09a9){var _0x1c4426=_0x1d6ff3;return _0x5cc6a4['create'](_0x3c09a9)[_0x1c4426(0x2db)](_0x5bac2e,_0x59863a);};}()),_0x10c8f5['EvpKDF'];}));}(evpkdf$1)),evpkdf$1[_0x26a219(0x2be)];}__name(requireEvpkdf,_0x10fcf4(0x2ae));var cipherCore$1={'exports':{}},cipherCore=cipherCore$1[_0x10fcf4(0x2be)],hasRequiredCipherCore;function requireCipherCore(){var _0x500ca0=_0x10fcf4;return hasRequiredCipherCore||(hasRequiredCipherCore=0x1,function(_0x584baa,_0x579c70){(function(_0x121525,_0x320743,_0x1851f6){_0x584baa['exports']=_0x320743(requireCore(),requireEvpkdf());}(cipherCore,function(_0x2b1efa){var _0x5d3975=_0x1531;_0x2b1efa[_0x5d3975(0x199)][_0x5d3975(0x307)]||function(_0x115d9b){var _0x5696fc=_0x5d3975,_0x1795fa=_0x2b1efa,_0x3224d3=_0x1795fa['lib'],_0x391df4=_0x3224d3[_0x5696fc(0x364)],_0x143fd8=_0x3224d3[_0x5696fc(0x1b5)],_0x8be957=_0x3224d3['BufferedBlockAlgorithm'],_0x2ee0b4=_0x1795fa[_0x5696fc(0x384)];_0x2ee0b4['Utf8'];var _0x12dbe8=_0x2ee0b4['Base64'],_0x2e54be=_0x1795fa['algo'],_0x37b137=_0x2e54be[_0x5696fc(0x380)],_0x4e6ca0=_0x3224d3[_0x5696fc(0x307)]=_0x8be957[_0x5696fc(0x469)]({'cfg':_0x391df4[_0x5696fc(0x469)](),'createEncryptor':__name(function(_0x4c6312,_0x44fcdd){var _0x17ab0a=_0x5696fc;return this['create'](this[_0x17ab0a(0x2ca)],_0x4c6312,_0x44fcdd);},'createEncryptor'),'createDecryptor':__name(function(_0x92e2c5,_0xff78fa){var _0x450c80=_0x5696fc;return this[_0x450c80(0x2a5)](this['_DEC_XFORM_MODE'],_0x92e2c5,_0xff78fa);},_0x5696fc(0x4a4)),'init':__name(function(_0x938a11,_0x25eeba,_0x4a059d){var _0x507e50=_0x5696fc;this['cfg']=this[_0x507e50(0x3fe)][_0x507e50(0x469)](_0x4a059d),this['_xformMode']=_0x938a11,this[_0x507e50(0x3e7)]=_0x25eeba,this[_0x507e50(0x398)]();},'init'),'reset':__name(function(){var _0x2d8607=_0x5696fc;_0x8be957[_0x2d8607(0x398)][_0x2d8607(0x21a)](this),this[_0x2d8607(0x419)]();},_0x5696fc(0x398)),'process':__name(function(_0x2d8dfc){var _0x93a148=_0x5696fc;return this[_0x93a148(0x3a4)](_0x2d8dfc),this[_0x93a148(0x2ec)]();},_0x5696fc(0x26c)),'finalize':__name(function(_0x3209a3){var _0x5704a9=_0x5696fc;_0x3209a3&&this['_append'](_0x3209a3);var _0x2b6d6c=this[_0x5704a9(0x3d6)]();return _0x2b6d6c;},_0x5696fc(0x2fa)),'keySize':0x80/0x20,'ivSize':0x80/0x20,'_ENC_XFORM_MODE':0x1,'_DEC_XFORM_MODE':0x2,'_createHelper':(function(){function _0x3e7285(_0xc6de75){var _0x8405c8=_0x1531;return typeof _0xc6de75==_0x8405c8(0x3be)?_0x5ad5e1:_0x5325d9;}return __name(_0x3e7285,'selectCipherStrategy'),function(_0x342b6b){var _0x4be95f=_0x1531;return{'encrypt':__name(function(_0x34d63d,_0x550ceb,_0x465782){var _0x20545e=_0x1531;return _0x3e7285(_0x550ceb)[_0x20545e(0x2b6)](_0x342b6b,_0x34d63d,_0x550ceb,_0x465782);},_0x4be95f(0x2b6)),'decrypt':__name(function(_0x418beb,_0xdca3e3,_0x2676fc){var _0x5c5832=_0x4be95f;return _0x3e7285(_0xdca3e3)[_0x5c5832(0x4a3)](_0x342b6b,_0x418beb,_0xdca3e3,_0x2676fc);},'decrypt')};};}())});_0x3224d3[_0x5696fc(0x2e8)]=_0x4e6ca0[_0x5696fc(0x469)]({'_doFinalize':__name(function(){var _0x31c811=this['_process'](!0x0);return _0x31c811;},'_doFinalize'),'blockSize':0x1});var _0x350970=_0x1795fa['mode']={},_0x17946c=_0x3224d3['BlockCipherMode']=_0x391df4['extend']({'createEncryptor':__name(function(_0x28ec11,_0x3ffd78){var _0x1e90fd=_0x5696fc;return this[_0x1e90fd(0x2c9)][_0x1e90fd(0x2a5)](_0x28ec11,_0x3ffd78);},_0x5696fc(0x2c6)),'createDecryptor':__name(function(_0x57814e,_0x227b16){var _0x3e4abc=_0x5696fc;return this['Decryptor'][_0x3e4abc(0x2a5)](_0x57814e,_0x227b16);},_0x5696fc(0x4a4)),'init':__name(function(_0x42fa89,_0x1abcd8){this['_cipher']=_0x42fa89,this['_iv']=_0x1abcd8;},'init')}),_0x4b2f29=_0x350970['CBC']=(function(){var _0x1a5814=_0x5696fc,_0x4f1774=_0x17946c['extend']();_0x4f1774[_0x1a5814(0x2c9)]=_0x4f1774['extend']({'processBlock':__name(function(_0x45729b,_0x1e65cf){var _0x5b97af=_0x1a5814,_0x54cdef=this[_0x5b97af(0x350)],_0x12c58a=_0x54cdef[_0x5b97af(0x3a6)];_0x1ce85f['call'](this,_0x45729b,_0x1e65cf,_0x12c58a),_0x54cdef[_0x5b97af(0x344)](_0x45729b,_0x1e65cf),this['_prevBlock']=_0x45729b[_0x5b97af(0x4a8)](_0x1e65cf,_0x1e65cf+_0x12c58a);},_0x1a5814(0x35d))}),_0x4f1774[_0x1a5814(0x295)]=_0x4f1774[_0x1a5814(0x469)]({'processBlock':__name(function(_0xcce1dd,_0x46bee8){var _0x5a86b7=_0x1a5814,_0x264055=this[_0x5a86b7(0x350)],_0x44dcab=_0x264055[_0x5a86b7(0x3a6)],_0x5787bd=_0xcce1dd['slice'](_0x46bee8,_0x46bee8+_0x44dcab);_0x264055[_0x5a86b7(0x250)](_0xcce1dd,_0x46bee8),_0x1ce85f['call'](this,_0xcce1dd,_0x46bee8,_0x44dcab),this[_0x5a86b7(0x3c9)]=_0x5787bd;},_0x1a5814(0x35d))});function _0x1ce85f(_0x5af7b6,_0x48fd53,_0x1787a2){var _0x4ea255=_0x1a5814,_0x5b33eb,_0x35fdf4=this[_0x4ea255(0x1e7)];_0x35fdf4?(_0x5b33eb=_0x35fdf4,this['_iv']=_0x115d9b):_0x5b33eb=this[_0x4ea255(0x3c9)];for(var _0x270cb3=0x0;_0x270cb3<_0x1787a2;_0x270cb3++)_0x5af7b6[_0x48fd53+_0x270cb3]^=_0x5b33eb[_0x270cb3];}return __name(_0x1ce85f,_0x1a5814(0x3e2)),_0x4f1774;}()),_0x43166b=_0x1795fa[_0x5696fc(0x1e4)]={},_0x15c1bf=_0x43166b['Pkcs7']={'pad':__name(function(_0x106250,_0x28ac11){var _0x4359e0=_0x5696fc;for(var _0x5a1fab=_0x28ac11*0x4,_0x51b1fa=_0x5a1fab-_0x106250[_0x4359e0(0x4a2)]%_0x5a1fab,_0xc58660=_0x51b1fa<<0x18|_0x51b1fa<<0x10|_0x51b1fa<<0x8|_0x51b1fa,_0x437585=[],_0x570254=0x0;_0x570254<_0x51b1fa;_0x570254+=0x4)_0x437585[_0x4359e0(0x1b3)](_0xc58660);var _0x4482ca=_0x143fd8[_0x4359e0(0x2a5)](_0x437585,_0x51b1fa);_0x106250[_0x4359e0(0x20c)](_0x4482ca);},_0x5696fc(0x1e4)),'unpad':__name(function(_0x205bc4){var _0x13a372=_0x5696fc,_0x55bd03=_0x205bc4[_0x13a372(0x1d4)][_0x205bc4['sigBytes']-0x1>>>0x2]&0xff;_0x205bc4[_0x13a372(0x4a2)]-=_0x55bd03;},_0x5696fc(0x238))};_0x3224d3['BlockCipher']=_0x4e6ca0[_0x5696fc(0x469)]({'cfg':_0x4e6ca0[_0x5696fc(0x3fe)]['extend']({'mode':_0x4b2f29,'padding':_0x15c1bf}),'reset':__name(function(){var _0x3710c4=_0x5696fc,_0x4eaf5d;_0x4e6ca0['reset'][_0x3710c4(0x21a)](this);var _0x3972fe=this['cfg'],_0x9c03cd=_0x3972fe['iv'],_0x3c392e=_0x3972fe[_0x3710c4(0x220)];this['_xformMode']==this[_0x3710c4(0x2ca)]?_0x4eaf5d=_0x3c392e[_0x3710c4(0x2c6)]:(_0x4eaf5d=_0x3c392e[_0x3710c4(0x4a4)],this[_0x3710c4(0x30f)]=0x1),this['_mode']&&this[_0x3710c4(0x3c7)][_0x3710c4(0x4a1)]==_0x4eaf5d?this[_0x3710c4(0x3c7)]['init'](this,_0x9c03cd&&_0x9c03cd[_0x3710c4(0x1d4)]):(this['_mode']=_0x4eaf5d['call'](_0x3c392e,this,_0x9c03cd&&_0x9c03cd[_0x3710c4(0x1d4)]),this['_mode'][_0x3710c4(0x4a1)]=_0x4eaf5d);},_0x5696fc(0x398)),'_doProcessBlock':__name(function(_0x5a21c7,_0x194855){var _0x567f17=_0x5696fc;this[_0x567f17(0x3c7)][_0x567f17(0x35d)](_0x5a21c7,_0x194855);},_0x5696fc(0x446)),'_doFinalize':__name(function(){var _0x382b09=_0x5696fc,_0x2c52ec,_0x1c8c06=this[_0x382b09(0x3fe)]['padding'];return this['_xformMode']==this[_0x382b09(0x2ca)]?(_0x1c8c06[_0x382b09(0x1e4)](this[_0x382b09(0x4bf)],this[_0x382b09(0x3a6)]),_0x2c52ec=this['_process'](!0x0)):(_0x2c52ec=this[_0x382b09(0x2ec)](!0x0),_0x1c8c06[_0x382b09(0x238)](_0x2c52ec)),_0x2c52ec;},_0x5696fc(0x3d6)),'blockSize':0x80/0x20});var _0x4b8d7e=_0x3224d3[_0x5696fc(0x2e5)]=_0x391df4[_0x5696fc(0x469)]({'init':__name(function(_0x1bd79d){this['mixIn'](_0x1bd79d);},_0x5696fc(0x243)),'toString':__name(function(_0x2a4a68){var _0xc4cbeb=_0x5696fc;return(_0x2a4a68||this[_0xc4cbeb(0x3b9)])[_0xc4cbeb(0x259)](this);},_0x5696fc(0x279))}),_0xf8e723=_0x1795fa['format']={},_0x24fd3f=_0xf8e723[_0x5696fc(0x1c3)]={'stringify':__name(function(_0x1a6c49){var _0x5240e1=_0x5696fc,_0x1447c6,_0x5958fe=_0x1a6c49[_0x5240e1(0x190)],_0xb7c7bb=_0x1a6c49['salt'];return _0xb7c7bb?_0x1447c6=_0x143fd8['create']([0x53616c74,0x65645f5f])[_0x5240e1(0x20c)](_0xb7c7bb)[_0x5240e1(0x20c)](_0x5958fe):_0x1447c6=_0x5958fe,_0x1447c6['toString'](_0x12dbe8);},_0x5696fc(0x259)),'parse':__name(function(_0x1f7d00){var _0x399a46=_0x5696fc,_0x3d1710,_0x20fe54=_0x12dbe8[_0x399a46(0x361)](_0x1f7d00),_0x262159=_0x20fe54[_0x399a46(0x1d4)];return _0x262159[0x0]==0x53616c74&&_0x262159[0x1]==0x65645f5f&&(_0x3d1710=_0x143fd8['create'](_0x262159[_0x399a46(0x4a8)](0x2,0x4)),_0x262159[_0x399a46(0x3e6)](0x0,0x4),_0x20fe54[_0x399a46(0x4a2)]-=0x10),_0x4b8d7e[_0x399a46(0x2a5)]({'ciphertext':_0x20fe54,'salt':_0x3d1710});},_0x5696fc(0x361))},_0x5325d9=_0x3224d3[_0x5696fc(0x3d0)]=_0x391df4['extend']({'cfg':_0x391df4[_0x5696fc(0x469)]({'format':_0x24fd3f}),'encrypt':__name(function(_0x43c9e2,_0x5df323,_0x34c310,_0x34fd60){var _0x4597ee=_0x5696fc;_0x34fd60=this['cfg'][_0x4597ee(0x469)](_0x34fd60);var _0x3625b4=_0x43c9e2[_0x4597ee(0x2c6)](_0x34c310,_0x34fd60),_0x5b371c=_0x3625b4[_0x4597ee(0x2fa)](_0x5df323),_0xc2eaa0=_0x3625b4[_0x4597ee(0x3fe)];return _0x4b8d7e[_0x4597ee(0x2a5)]({'ciphertext':_0x5b371c,'key':_0x34c310,'iv':_0xc2eaa0['iv'],'algorithm':_0x43c9e2,'mode':_0xc2eaa0['mode'],'padding':_0xc2eaa0[_0x4597ee(0x49a)],'blockSize':_0x43c9e2[_0x4597ee(0x3a6)],'formatter':_0x34fd60['format']});},_0x5696fc(0x2b6)),'decrypt':__name(function(_0x27e516,_0xbed386,_0x4f5e37,_0x4ffc13){var _0xe082db=_0x5696fc;_0x4ffc13=this[_0xe082db(0x3fe)]['extend'](_0x4ffc13),_0xbed386=this[_0xe082db(0x476)](_0xbed386,_0x4ffc13[_0xe082db(0x232)]);var _0x4e47b7=_0x27e516[_0xe082db(0x4a4)](_0x4f5e37,_0x4ffc13)['finalize'](_0xbed386[_0xe082db(0x190)]);return _0x4e47b7;},_0x5696fc(0x4a3)),'_parse':__name(function(_0x287929,_0x3028d6){var _0x31676=_0x5696fc;return typeof _0x287929==_0x31676(0x3be)?_0x3028d6['parse'](_0x287929,this):_0x287929;},_0x5696fc(0x476))}),_0x55b468=_0x1795fa[_0x5696fc(0x490)]={},_0x8e5e4e=_0x55b468[_0x5696fc(0x1c3)]={'execute':__name(function(_0x347aab,_0x2bf7cc,_0x33109c,_0x2099de,_0x177402){var _0x57cf81=_0x5696fc;if(_0x2099de||(_0x2099de=_0x143fd8[_0x57cf81(0x47c)](0x40/0x8)),_0x177402)var _0x37bd05=_0x37b137[_0x57cf81(0x2a5)]({'keySize':_0x2bf7cc+_0x33109c,'hasher':_0x177402})[_0x57cf81(0x2db)](_0x347aab,_0x2099de);else var _0x37bd05=_0x37b137['create']({'keySize':_0x2bf7cc+_0x33109c})['compute'](_0x347aab,_0x2099de);var _0x138047=_0x143fd8[_0x57cf81(0x2a5)](_0x37bd05['words'][_0x57cf81(0x4a8)](_0x2bf7cc),_0x33109c*0x4);return _0x37bd05[_0x57cf81(0x4a2)]=_0x2bf7cc*0x4,_0x4b8d7e['create']({'key':_0x37bd05,'iv':_0x138047,'salt':_0x2099de});},_0x5696fc(0x1fe))},_0x5ad5e1=_0x3224d3[_0x5696fc(0x3de)]=_0x5325d9[_0x5696fc(0x469)]({'cfg':_0x5325d9[_0x5696fc(0x3fe)][_0x5696fc(0x469)]({'kdf':_0x8e5e4e}),'encrypt':__name(function(_0x429c1f,_0x4d1b1e,_0x203cfb,_0x3549a3){var _0x2fa6e1=_0x5696fc;_0x3549a3=this[_0x2fa6e1(0x3fe)]['extend'](_0x3549a3);var _0x3e17df=_0x3549a3[_0x2fa6e1(0x490)][_0x2fa6e1(0x1fe)](_0x203cfb,_0x429c1f[_0x2fa6e1(0x22e)],_0x429c1f[_0x2fa6e1(0x4bc)],_0x3549a3[_0x2fa6e1(0x1c8)],_0x3549a3[_0x2fa6e1(0x34b)]);_0x3549a3['iv']=_0x3e17df['iv'];var _0x3cc48e=_0x5325d9[_0x2fa6e1(0x2b6)][_0x2fa6e1(0x21a)](this,_0x429c1f,_0x4d1b1e,_0x3e17df['key'],_0x3549a3);return _0x3cc48e[_0x2fa6e1(0x442)](_0x3e17df),_0x3cc48e;},'encrypt'),'decrypt':__name(function(_0x1a36f4,_0x106a08,_0x2f3e96,_0xd7568c){var _0xba31f7=_0x5696fc;_0xd7568c=this[_0xba31f7(0x3fe)][_0xba31f7(0x469)](_0xd7568c),_0x106a08=this[_0xba31f7(0x476)](_0x106a08,_0xd7568c[_0xba31f7(0x232)]);var _0x3639a0=_0xd7568c[_0xba31f7(0x490)][_0xba31f7(0x1fe)](_0x2f3e96,_0x1a36f4[_0xba31f7(0x22e)],_0x1a36f4['ivSize'],_0x106a08['salt'],_0xd7568c[_0xba31f7(0x34b)]);_0xd7568c['iv']=_0x3639a0['iv'];var _0xeeaa69=_0x5325d9[_0xba31f7(0x4a3)][_0xba31f7(0x21a)](this,_0x1a36f4,_0x106a08,_0x3639a0[_0xba31f7(0x387)],_0xd7568c);return _0xeeaa69;},_0x5696fc(0x4a3))});}();}));}(cipherCore$1)),cipherCore$1[_0x500ca0(0x2be)];}__name(requireCipherCore,_0x10fcf4(0x449));var aes=aes$1[_0x10fcf4(0x2be)],hasRequiredAes;function requireAes(){return hasRequiredAes||(hasRequiredAes=0x1,function(_0x52a743,_0x2ad26e){(function(_0x36905d,_0x437c06,_0x3d2765){_0x52a743['exports']=_0x437c06(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore());}(aes,function(_0x2c22d1){var _0x2d3e5f=_0x1531;return(function(){var _0x500e4d=_0x1531,_0x5e1f3d=_0x2c22d1,_0x256529=_0x5e1f3d[_0x500e4d(0x199)],_0x2758f8=_0x256529[_0x500e4d(0x462)],_0x47430d=_0x5e1f3d[_0x500e4d(0x35a)],_0x2283d3=[],_0x2be33c=[],_0x1317d5=[],_0x46e0ed=[],_0x537043=[],_0x5b9774=[],_0x3bdf59=[],_0x13ee67=[],_0x3a731c=[],_0x5b96ed=[];(function(){for(var _0x2a15ae=[],_0xa9f0c4=0x0;_0xa9f0c4<0x100;_0xa9f0c4++)_0xa9f0c4<0x80?_0x2a15ae[_0xa9f0c4]=_0xa9f0c4<<0x1:_0x2a15ae[_0xa9f0c4]=_0xa9f0c4<<0x1^0x11b;for(var _0x3af891=0x0,_0x4a86d9=0x0,_0xa9f0c4=0x0;_0xa9f0c4<0x100;_0xa9f0c4++){var _0x5c5def=_0x4a86d9^_0x4a86d9<<0x1^_0x4a86d9<<0x2^_0x4a86d9<<0x3^_0x4a86d9<<0x4;_0x5c5def=_0x5c5def>>>0x8^_0x5c5def&0xff^0x63,_0x2283d3[_0x3af891]=_0x5c5def,_0x2be33c[_0x5c5def]=_0x3af891;var _0x48cb5e=_0x2a15ae[_0x3af891],_0x40afce=_0x2a15ae[_0x48cb5e],_0x358d14=_0x2a15ae[_0x40afce],_0x326e57=_0x2a15ae[_0x5c5def]*0x101^_0x5c5def*0x1010100;_0x1317d5[_0x3af891]=_0x326e57<<0x18|_0x326e57>>>0x8,_0x46e0ed[_0x3af891]=_0x326e57<<0x10|_0x326e57>>>0x10,_0x537043[_0x3af891]=_0x326e57<<0x8|_0x326e57>>>0x18,_0x5b9774[_0x3af891]=_0x326e57;var _0x326e57=_0x358d14*0x1010101^_0x40afce*0x10001^_0x48cb5e*0x101^_0x3af891*0x1010100;_0x3bdf59[_0x5c5def]=_0x326e57<<0x18|_0x326e57>>>0x8,_0x13ee67[_0x5c5def]=_0x326e57<<0x10|_0x326e57>>>0x10,_0x3a731c[_0x5c5def]=_0x326e57<<0x8|_0x326e57>>>0x18,_0x5b96ed[_0x5c5def]=_0x326e57,_0x3af891?(_0x3af891=_0x48cb5e^_0x2a15ae[_0x2a15ae[_0x2a15ae[_0x358d14^_0x48cb5e]]],_0x4a86d9^=_0x2a15ae[_0x2a15ae[_0x4a86d9]]):_0x3af891=_0x4a86d9=0x1;}}());var _0x22bf93=[0x0,0x1,0x2,0x4,0x8,0x10,0x20,0x40,0x80,0x1b,0x36],_0x153b3b=_0x47430d[_0x500e4d(0x189)]=_0x2758f8[_0x500e4d(0x469)]({'_doReset':__name(function(){var _0x353153=_0x500e4d,_0x453c7;if(!(this[_0x353153(0x322)]&&this['_keyPriorReset']===this[_0x353153(0x3e7)])){for(var _0x1df509=this[_0x353153(0x2a7)]=this[_0x353153(0x3e7)],_0x5a56b4=_0x1df509['words'],_0x22e20b=_0x1df509[_0x353153(0x4a2)]/0x4,_0x51facd=this[_0x353153(0x322)]=_0x22e20b+0x6,_0x3125e7=(_0x51facd+0x1)*0x4,_0x3824cc=this['_keySchedule']=[],_0x5364b4=0x0;_0x5364b4<_0x3125e7;_0x5364b4++)_0x5364b4<_0x22e20b?_0x3824cc[_0x5364b4]=_0x5a56b4[_0x5364b4]:(_0x453c7=_0x3824cc[_0x5364b4-0x1],_0x5364b4%_0x22e20b?_0x22e20b>0x6&&_0x5364b4%_0x22e20b==0x4&&(_0x453c7=_0x2283d3[_0x453c7>>>0x18]<<0x18|_0x2283d3[_0x453c7>>>0x10&0xff]<<0x10|_0x2283d3[_0x453c7>>>0x8&0xff]<<0x8|_0x2283d3[_0x453c7&0xff]):(_0x453c7=_0x453c7<<0x8|_0x453c7>>>0x18,_0x453c7=_0x2283d3[_0x453c7>>>0x18]<<0x18|_0x2283d3[_0x453c7>>>0x10&0xff]<<0x10|_0x2283d3[_0x453c7>>>0x8&0xff]<<0x8|_0x2283d3[_0x453c7&0xff],_0x453c7^=_0x22bf93[_0x5364b4/_0x22e20b|0x0]<<0x18),_0x3824cc[_0x5364b4]=_0x3824cc[_0x5364b4-_0x22e20b]^_0x453c7);for(var _0x19c423=this['_invKeySchedule']=[],_0x2bbc83=0x0;_0x2bbc83<_0x3125e7;_0x2bbc83++){var _0x5364b4=_0x3125e7-_0x2bbc83;if(_0x2bbc83%0x4)var _0x453c7=_0x3824cc[_0x5364b4];else var _0x453c7=_0x3824cc[_0x5364b4-0x4];_0x2bbc83<0x4||_0x5364b4<=0x4?_0x19c423[_0x2bbc83]=_0x453c7:_0x19c423[_0x2bbc83]=_0x3bdf59[_0x2283d3[_0x453c7>>>0x18]]^_0x13ee67[_0x2283d3[_0x453c7>>>0x10&0xff]]^_0x3a731c[_0x2283d3[_0x453c7>>>0x8&0xff]]^_0x5b96ed[_0x2283d3[_0x453c7&0xff]];}}},_0x500e4d(0x419)),'encryptBlock':__name(function(_0x4c285b,_0x52af53){var _0x2837ff=_0x500e4d;this[_0x2837ff(0x4a0)](_0x4c285b,_0x52af53,this[_0x2837ff(0x1c0)],_0x1317d5,_0x46e0ed,_0x537043,_0x5b9774,_0x2283d3);},_0x500e4d(0x344)),'decryptBlock':__name(function(_0x3ce3f3,_0x3774dc){var _0x18ef56=_0x500e4d,_0x5bef3f=_0x3ce3f3[_0x3774dc+0x1];_0x3ce3f3[_0x3774dc+0x1]=_0x3ce3f3[_0x3774dc+0x3],_0x3ce3f3[_0x3774dc+0x3]=_0x5bef3f,this[_0x18ef56(0x4a0)](_0x3ce3f3,_0x3774dc,this[_0x18ef56(0x440)],_0x3bdf59,_0x13ee67,_0x3a731c,_0x5b96ed,_0x2be33c);var _0x5bef3f=_0x3ce3f3[_0x3774dc+0x1];_0x3ce3f3[_0x3774dc+0x1]=_0x3ce3f3[_0x3774dc+0x3],_0x3ce3f3[_0x3774dc+0x3]=_0x5bef3f;},_0x500e4d(0x250)),'_doCryptBlock':__name(function(_0x6288f6,_0x14474c,_0x3effc6,_0xb420fc,_0xdeba2a,_0x2ec52e,_0x43ba03,_0x12c900){var _0x860ba5=_0x500e4d;for(var _0x5a1263=this[_0x860ba5(0x322)],_0x3e1c00=_0x6288f6[_0x14474c]^_0x3effc6[0x0],_0x1e9a31=_0x6288f6[_0x14474c+0x1]^_0x3effc6[0x1],_0x185479=_0x6288f6[_0x14474c+0x2]^_0x3effc6[0x2],_0x371ceb=_0x6288f6[_0x14474c+0x3]^_0x3effc6[0x3],_0x40a003=0x4,_0x4f992e=0x1;_0x4f992e<_0x5a1263;_0x4f992e++){var _0x43f3ee=_0xb420fc[_0x3e1c00>>>0x18]^_0xdeba2a[_0x1e9a31>>>0x10&0xff]^_0x2ec52e[_0x185479>>>0x8&0xff]^_0x43ba03[_0x371ceb&0xff]^_0x3effc6[_0x40a003++],_0x3abf7b=_0xb420fc[_0x1e9a31>>>0x18]^_0xdeba2a[_0x185479>>>0x10&0xff]^_0x2ec52e[_0x371ceb>>>0x8&0xff]^_0x43ba03[_0x3e1c00&0xff]^_0x3effc6[_0x40a003++],_0xb81442=_0xb420fc[_0x185479>>>0x18]^_0xdeba2a[_0x371ceb>>>0x10&0xff]^_0x2ec52e[_0x3e1c00>>>0x8&0xff]^_0x43ba03[_0x1e9a31&0xff]^_0x3effc6[_0x40a003++],_0x376d4b=_0xb420fc[_0x371ceb>>>0x18]^_0xdeba2a[_0x3e1c00>>>0x10&0xff]^_0x2ec52e[_0x1e9a31>>>0x8&0xff]^_0x43ba03[_0x185479&0xff]^_0x3effc6[_0x40a003++];_0x3e1c00=_0x43f3ee,_0x1e9a31=_0x3abf7b,_0x185479=_0xb81442,_0x371ceb=_0x376d4b;}var _0x43f3ee=(_0x12c900[_0x3e1c00>>>0x18]<<0x18|_0x12c900[_0x1e9a31>>>0x10&0xff]<<0x10|_0x12c900[_0x185479>>>0x8&0xff]<<0x8|_0x12c900[_0x371ceb&0xff])^_0x3effc6[_0x40a003++],_0x3abf7b=(_0x12c900[_0x1e9a31>>>0x18]<<0x18|_0x12c900[_0x185479>>>0x10&0xff]<<0x10|_0x12c900[_0x371ceb>>>0x8&0xff]<<0x8|_0x12c900[_0x3e1c00&0xff])^_0x3effc6[_0x40a003++],_0xb81442=(_0x12c900[_0x185479>>>0x18]<<0x18|_0x12c900[_0x371ceb>>>0x10&0xff]<<0x10|_0x12c900[_0x3e1c00>>>0x8&0xff]<<0x8|_0x12c900[_0x1e9a31&0xff])^_0x3effc6[_0x40a003++],_0x376d4b=(_0x12c900[_0x371ceb>>>0x18]<<0x18|_0x12c900[_0x3e1c00>>>0x10&0xff]<<0x10|_0x12c900[_0x1e9a31>>>0x8&0xff]<<0x8|_0x12c900[_0x185479&0xff])^_0x3effc6[_0x40a003++];_0x6288f6[_0x14474c]=_0x43f3ee,_0x6288f6[_0x14474c+0x1]=_0x3abf7b,_0x6288f6[_0x14474c+0x2]=_0xb81442,_0x6288f6[_0x14474c+0x3]=_0x376d4b;},_0x500e4d(0x4a0)),'keySize':0x100/0x20});_0x5e1f3d[_0x500e4d(0x189)]=_0x2758f8[_0x500e4d(0x4b4)](_0x153b3b);}()),_0x2c22d1[_0x2d3e5f(0x189)];}));}(aes$1)),aes$1['exports'];}__name(requireAes,_0x10fcf4(0x2b2));var aesExports=requireAes();const AES=getDefaultExportFromCjs(aesExports);var encBase64Exports=requireEncBase64();const Base64=getDefaultExportFromCjs(encBase64Exports);var encUtf8$1={'exports':{}},encUtf8=encUtf8$1[_0x10fcf4(0x2be)],hasRequiredEncUtf8;function requireEncUtf8(){var _0x3cedad=_0x10fcf4;return hasRequiredEncUtf8||(hasRequiredEncUtf8=0x1,function(_0x1b7257,_0x5ed42b){(function(_0x4f3627,_0x552a80){_0x1b7257['exports']=_0x552a80(requireCore());}(encUtf8,function(_0x34b451){var _0x482cc4=_0x1531;return _0x34b451[_0x482cc4(0x384)][_0x482cc4(0x2fc)];}));}(encUtf8$1)),encUtf8$1[_0x3cedad(0x2be)];}__name(requireEncUtf8,'requireEncUtf8');var encUtf8Exports=requireEncUtf8();const Utf8=getDefaultExportFromCjs(encUtf8Exports);var libTypedarrays$1={'exports':{}},libTypedarrays=libTypedarrays$1[_0x10fcf4(0x2be)],hasRequiredLibTypedarrays;function _0x1531(_0x14329c,_0x1e1366){var _0x33e436=_0x33e4();return _0x1531=function(_0x1531f9,_0x2f8a75){_0x1531f9=_0x1531f9-0x182;var _0x3eb74b=_0x33e436[_0x1531f9];return _0x3eb74b;},_0x1531(_0x14329c,_0x1e1366);}function requireLibTypedarrays(){return hasRequiredLibTypedarrays||(hasRequiredLibTypedarrays=0x1,function(_0x1c6f3b,_0x37d8fb){(function(_0x8b024b,_0x53fe11){var _0x3807d2=_0x1531;_0x1c6f3b[_0x3807d2(0x2be)]=_0x53fe11(requireCore());}(libTypedarrays,function(_0xfd9f1e){var _0x20837d=_0x1531;return(function(){var _0x398458=_0x1531;if(typeof ArrayBuffer=='function'){var _0x11eb0d=_0xfd9f1e,_0x3775fc=_0x11eb0d[_0x398458(0x199)],_0x29a854=_0x3775fc['WordArray'],_0x1491f6=_0x29a854['init'],_0x32baf6=_0x29a854[_0x398458(0x243)]=function(_0x460909){var _0x379d85=_0x398458;if(_0x460909 instanceof ArrayBuffer&&(_0x460909=new Uint8Array(_0x460909)),(_0x460909 instanceof Int8Array||typeof Uint8ClampedArray<'u'&&_0x460909 instanceof Uint8ClampedArray||_0x460909 instanceof Int16Array||_0x460909 instanceof Uint16Array||_0x460909 instanceof Int32Array||_0x460909 instanceof Uint32Array||_0x460909 instanceof Float32Array||_0x460909 instanceof Float64Array)&&(_0x460909=new Uint8Array(_0x460909['buffer'],_0x460909[_0x379d85(0x369)],_0x460909['byteLength'])),_0x460909 instanceof Uint8Array){for(var _0x43ff82=_0x460909[_0x379d85(0x1f9)],_0x4146cd=[],_0x580436=0x0;_0x580436<_0x43ff82;_0x580436++)_0x4146cd[_0x580436>>>0x2]|=_0x460909[_0x580436]<<0x18-_0x580436%0x4*0x8;_0x1491f6[_0x379d85(0x21a)](this,_0x4146cd,_0x43ff82);}else _0x1491f6[_0x379d85(0x418)](this,arguments);};_0x32baf6[_0x398458(0x3c5)]=_0x29a854;}}()),_0xfd9f1e[_0x20837d(0x199)][_0x20837d(0x1b5)];}));}(libTypedarrays$1)),libTypedarrays$1['exports'];}__name(requireLibTypedarrays,_0x10fcf4(0x43f));var libTypedarraysExports=requireLibTypedarrays();const WordArray=getDefaultExportFromCjs(libTypedarraysExports);var padNopadding$1={'exports':{}},padNopadding=padNopadding$1[_0x10fcf4(0x2be)],hasRequiredPadNopadding;function requirePadNopadding(){var _0x1437b9=_0x10fcf4;return hasRequiredPadNopadding||(hasRequiredPadNopadding=0x1,function(_0x1cb8b1,_0x2df25f){(function(_0x224f3c,_0x43ed38,_0x44f61b){var _0x4b8181=_0x1531;_0x1cb8b1[_0x4b8181(0x2be)]=_0x43ed38(requireCore(),requireCipherCore());}(padNopadding,function(_0x5187db){var _0x43f065=_0x1531;return _0x5187db[_0x43f065(0x1e4)][_0x43f065(0x3c6)]={'pad':__name(function(){},'pad'),'unpad':__name(function(){},'unpad')},_0x5187db[_0x43f065(0x1e4)]['NoPadding'];}));}(padNopadding$1)),padNopadding$1[_0x1437b9(0x2be)];}__name(requirePadNopadding,'requirePadNopadding');var padNopaddingExports=requirePadNopadding();const NoPadding=getDefaultExportFromCjs(padNopaddingExports);function pkcs7Padding(_0x8595b7,_0x25495a){var _0x3d5e9a=_0x10fcf4;const _0x22d8b1=_0x25495a-_0x8595b7['length']%_0x25495a,_0x10ed6d=String[_0x3d5e9a(0x2cf)](_0x22d8b1)['repeat'](_0x22d8b1);return _0x8595b7+_0x10ed6d;}__name(pkcs7Padding,'pkcs7Padding');function encrypt(_0x1fba62,_0x5d7823){var _0x51f737=_0x10fcf4;const _0x20fe81=WordArray[_0x51f737(0x47c)](0x10),_0x587a98=pkcs7Padding(_0x1fba62,0x10),_0x1c3c42=AES[_0x51f737(0x2b6)](Utf8[_0x51f737(0x361)](_0x587a98),Base64[_0x51f737(0x361)](_0x5d7823),{'iv':_0x20fe81,'padding':NoPadding});return _0x20fe81[_0x51f737(0x20c)](_0x1c3c42['ciphertext'])[_0x51f737(0x279)](Base64);}__name(encrypt,_0x10fcf4(0x2b6));function getAttachHeader(){var _0x3774d8=_0x10fcf4;const _0x361c6b=getGlobalObject()[_0x3774d8(0x379)];if(_0x361c6b){const _0x5fafb0={'time':Math[_0x3774d8(0x457)](Date[_0x3774d8(0x40c)]()/0x3e8),'domain':location[_0x3774d8(0x1f0)]};return encrypt(JSON[_0x3774d8(0x259)](_0x5fafb0),_0x361c6b);}}__name(getAttachHeader,_0x10fcf4(0x184));var __defProp$7=Object[_0x10fcf4(0x2ba)],__getOwnPropDesc$7=Object[_0x10fcf4(0x341)],__decorateClass$7=__name((_0xc2c119,_0x36f214,_0x371a47,_0x5d8317)=>{var _0x1e5a5c=_0x10fcf4;for(var _0x58d0f6=_0x5d8317>0x1?void 0x0:_0x5d8317?__getOwnPropDesc$7(_0x36f214,_0x371a47):_0x36f214,_0x31375a=_0xc2c119[_0x1e5a5c(0x20b)]-0x1,_0x3efe99;_0x31375a>=0x0;_0x31375a--)(_0x3efe99=_0xc2c119[_0x31375a])&&(_0x58d0f6=(_0x5d8317?_0x3efe99(_0x36f214,_0x371a47,_0x58d0f6):_0x3efe99(_0x58d0f6))||_0x58d0f6);return _0x5d8317&&_0x58d0f6&&__defProp$7(_0x36f214,_0x371a47,_0x58d0f6),_0x58d0f6;},_0x10fcf4(0x257)),__decorateParam$7=__name((_0x31919c,_0x29bc47)=>(_0x4fa9a3,_0x52382e)=>_0x29bc47(_0x4fa9a3,_0x52382e,_0x31919c),_0x10fcf4(0x439)),_a20;let DomainRequestService=(_a20=class{constructor(_0x535341){var _0x48d6af=_0x10fcf4;this['_httpService']=_0x535341,this[_0x48d6af(0x3ea)]();}[_0x10fcf4(0x3ea)](){var _0x34d075=_0x10fcf4;this[_0x34d075(0x1ca)]['registerHTTPInterceptor']({'interceptor':__name((_0x3ebcb9,_0x7eaadb)=>{var _0x27c0ea=_0x34d075;const _0x17537f=_0x3ebcb9[_0x27c0ea(0x481)],_0x48a929=getAttachHeader();return _0x48a929&&_0x17537f[_0x27c0ea(0x26a)](_0x27c0ea(0x335),_0x48a929),_0x7eaadb(_0x3ebcb9);},'interceptor')});}},__name(_a20,'DomainRequestService'),_a20);DomainRequestService=__decorateClass$7([__decorateParam$7(0x0,Inject(HTTPService))],DomainRequestService);var __defProp$6=Object[_0x10fcf4(0x2ba)],__getOwnPropDesc$6=Object[_0x10fcf4(0x341)],__decorateClass$6=__name((_0x315314,_0x32e3a1,_0x409925,_0x2e4b37)=>{for(var _0x58a497=_0x2e4b37>0x1?void 0x0:_0x2e4b37?__getOwnPropDesc$6(_0x32e3a1,_0x409925):_0x32e3a1,_0x326f8e=_0x315314['length']-0x1,_0x39fa02;_0x326f8e>=0x0;_0x326f8e--)(_0x39fa02=_0x315314[_0x326f8e])&&(_0x58a497=(_0x2e4b37?_0x39fa02(_0x32e3a1,_0x409925,_0x58a497):_0x39fa02(_0x58a497))||_0x58a497);return _0x2e4b37&&_0x58a497&&__defProp$6(_0x32e3a1,_0x409925,_0x58a497),_0x58a497;},'__decorateClass$6'),__decorateParam$6=__name((_0x395015,_0x53da00)=>(_0x5158ed,_0x564ed9)=>_0x53da00(_0x5158ed,_0x564ed9,_0x395015),'__decorateParam$6'),_a21;let DataLoaderService=(_a21=class extends RxDisposable{constructor(_0x35ef70,_0x30fdcf,_0x4a892d){var _0x2da19e=_0x10fcf4;super(),__publicField(this,_0x2da19e(0x27e),new BehaviorSubject(null)),__publicField(this,_0x2da19e(0x1ef),this[_0x2da19e(0x27e)]['asObservable']()),(this[_0x2da19e(0x298)]=_0x35ef70,this[_0x2da19e(0x1ee)]=_0x30fdcf,this['_localCacheService']=_0x4a892d);}async[_0x10fcf4(0x441)](_0x18fcc7,_0x1b93c5,_0x5c3471){var _0xae1acd=_0x10fcf4;this['_unitInfo$'][_0xae1acd(0x3d5)]({'unitId':_0x18fcc7,'type':_0x1b93c5,'subUnitId':_0x5c3471});let _0x4c6808=null;switch(_0x1b93c5){case UniverType[_0xae1acd(0x3a7)]:{_0x4c6808=await this[_0xae1acd(0x26e)](_0x18fcc7);break;}case UniverType[_0xae1acd(0x30c)]:{_0x4c6808=await this['_loadDoc'](_0x18fcc7);break;}default:{this[_0xae1acd(0x298)][_0xae1acd(0x2a0)](_0xae1acd(0x1b8),_0xae1acd(0x46d));break;}}return _0x4c6808;}async[_0x10fcf4(0x26e)](_0x41f7a9){var _0x12e11d=_0x10fcf4,_0x179b39;let _0x3bf3b1=0x0;const _0x33d148=await((_0x179b39=this['_localCacheService'])==null?void 0x0:_0x179b39[_0x12e11d(0x45a)](_0x41f7a9));return _0x33d148&&(_0x33d148[_0x12e11d(0x293)]||_0x33d148[_0x12e11d(0x448)][_0x12e11d(0x20b)]!==0x0)&&(_0x3bf3b1=_0x33d148[_0x12e11d(0x31b)]),_0x3bf3b1===0x0&&this[_0x12e11d(0x298)][_0x12e11d(0x388)](_0x12e11d(0x1b8),_0x12e11d(0x3c3)),this['_snapshotService'][_0x12e11d(0x2a4)](_0x41f7a9,_0x3bf3b1);}async[_0x10fcf4(0x323)](_0x1b4857){var _0x4ea85a=_0x10fcf4,_0x5d66ff;let _0x499e3a=0x0;const _0x587780=await((_0x5d66ff=this[_0x4ea85a(0x331)])==null?void 0x0:_0x5d66ff[_0x4ea85a(0x45a)](_0x1b4857));return _0x587780&&(_0x587780['awaitingChangeset']||_0x587780[_0x4ea85a(0x448)][_0x4ea85a(0x20b)]!==0x0)&&(_0x499e3a=_0x587780[_0x4ea85a(0x31b)]),_0x499e3a===0x0&&this[_0x4ea85a(0x298)][_0x4ea85a(0x388)]('[DataLoaderService]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x4ea85a(0x1ee)][_0x4ea85a(0x37b)](_0x1b4857,_0x499e3a);}},__name(_a21,_0x10fcf4(0x245)),_a21);DataLoaderService=__decorateClass$6([__decorateParam$6(0x0,ILogService),__decorateParam$6(0x1,Inject(SnapshotService)),__decorateParam$6(0x2,Optional(ILocalCacheService))],DataLoaderService);var __defProp$5=Object[_0x10fcf4(0x2ba)],__getOwnPropDesc$5=Object[_0x10fcf4(0x341)],__decorateClass$5=__name((_0x5bb67e,_0x71db4f,_0x3d376a,_0x186743)=>{var _0x5b7b83=_0x10fcf4;for(var _0x22db03=_0x186743>0x1?void 0x0:_0x186743?__getOwnPropDesc$5(_0x71db4f,_0x3d376a):_0x71db4f,_0x4c035b=_0x5bb67e[_0x5b7b83(0x20b)]-0x1,_0x480a40;_0x4c035b>=0x0;_0x4c035b--)(_0x480a40=_0x5bb67e[_0x4c035b])&&(_0x22db03=(_0x186743?_0x480a40(_0x71db4f,_0x3d376a,_0x22db03):_0x480a40(_0x22db03))||_0x22db03);return _0x186743&&_0x22db03&&__defProp$5(_0x71db4f,_0x3d376a,_0x22db03),_0x22db03;},_0x10fcf4(0x29a)),__decorateParam$5=__name((_0x120ff9,_0x2c9643)=>(_0x3e20ba,_0xd1ed8e)=>_0x2c9643(_0x3e20ba,_0xd1ed8e,_0x120ff9),'__decorateParam$5');const ALLOW_IMAGE_LIST=[_0x10fcf4(0x2d3),_0x10fcf4(0x2a2),_0x10fcf4(0x349),_0x10fcf4(0x1da),'image/bmp'],ALLOW_IMAGE_SIZE=0x5*0x400*0x400,EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY=_0x10fcf4(0x351),DEFAULT_EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY=_0x10fcf4(0x241),EXCHANGE_SIGN_URL_SERVER_URL_KEY=_0x10fcf4(0x1eb),DEFAULT_EXCHANGE_SIGN_URL_SERVER_URL_KEY=_0x10fcf4(0x4b1);var _a22;let CollaborationImageIoService=(_a22=class{constructor(_0xa72f6c,_0x4019b3,_0x185f97){var _0x198816=_0x10fcf4;__publicField(this,_0x198816(0x35c),0x0),__publicField(this,_0x198816(0x358),new Subject()),__publicField(this,_0x198816(0x431),this[_0x198816(0x358)]),__publicField(this,_0x198816(0x434),new Map()),(this['_httpService']=_0xa72f6c,this[_0x198816(0x2bf)]=_0x4019b3,this[_0x198816(0x3a9)]=_0x185f97);}['setWaitCount'](_0x2b40fc){var _0x37b60a=_0x10fcf4;this[_0x37b60a(0x35c)]=_0x2b40fc,this[_0x37b60a(0x358)][_0x37b60a(0x3d5)](_0x2b40fc);}[_0x10fcf4(0x425)](_0xf0c8f8,_0x2be73d){var _0x2ec094=_0x10fcf4;if(_0x2be73d===ImageSourceType['BASE64']){const _0x1066c8=new Image();return _0x1066c8[_0x2ec094(0x1f2)]=_0xf0c8f8,_0x1066c8;}return this[_0x2ec094(0x434)][_0x2ec094(0x402)](_0xf0c8f8);}[_0x10fcf4(0x48a)](_0x43a6e1,_0x54fbd6,_0x31f0ea){var _0x573a41=_0x10fcf4;_0x54fbd6===ImageSourceType[_0x573a41(0x45e)]||_0x31f0ea==null||this[_0x573a41(0x434)][_0x573a41(0x26a)](_0x43a6e1,_0x31f0ea);}async['getImage'](_0x217b82){var _0x235b01=_0x10fcf4;try{const _0x4fcbdd=this[_0x235b01(0x40e)](this[_0x235b01(0x3b4)](),''+_0x217b82),_0x93f24a=(await this[_0x235b01(0x1ca)][_0x235b01(0x402)](_0x4fcbdd))[_0x235b01(0x46e)];if(_0x93f24a['error']&&_0x93f24a[_0x235b01(0x2a0)][_0x235b01(0x3bb)]===ErrorCode['OK']){const _0x17d2a5=new URL(_0x93f24a[_0x235b01(0x484)],this['_getDownloadEndpointURL']())['toString']();return Promise['resolve'](_0x17d2a5);}return Promise[_0x235b01(0x33a)](_0x93f24a[_0x235b01(0x2a0)]);}catch(_0x2a2458){return Promise[_0x235b01(0x33a)](_0x2a2458);}}async[_0x10fcf4(0x2e1)](_0x192dd9){var _0x45d1a1=_0x10fcf4;let _0x3670b2='';if(!ALLOW_IMAGE_LIST[_0x45d1a1(0x4ae)](_0x192dd9[_0x45d1a1(0x48b)]))return this[_0x45d1a1(0x435)](),Promise[_0x45d1a1(0x33a)](new Error(ImageUploadStatusType[_0x45d1a1(0x423)]));if(_0x192dd9['size']>ALLOW_IMAGE_SIZE)return this[_0x45d1a1(0x435)](),Promise[_0x45d1a1(0x33a)](new Error(ImageUploadStatusType[_0x45d1a1(0x2b5)]));try{const _0x56fbd0=new FormData();_0x56fbd0[_0x45d1a1(0x32c)](_0x45d1a1(0x2da),_0x192dd9);const _0x34639c=this['_univerInstanceService']['getFocusedUnit'](),_0x440a2c=_0x34639c==null?void 0x0:_0x34639c[_0x45d1a1(0x2b9)]();if(!_0x440a2c)throw new Error('unitId\x20is\x20not\x20found');const _0x33b5df=this['_getUploadFileURL']()+_0x45d1a1(0x198)+_0x192dd9[_0x45d1a1(0x44d)]['toString']()+'&source='+FileSource[_0x45d1a1(0x25b)]+'&assign='+encodeURIComponent(_0x440a2c),_0x482786=await(await fetch(_0x33b5df,{'method':'POST','body':_0x56fbd0}))['json']();if(typeof _0x482786[_0x45d1a1(0x472)]!=_0x45d1a1(0x3be))return this['_decreaseWaiting'](),Promise[_0x45d1a1(0x33a)](new Error(ImageUploadStatusType[_0x45d1a1(0x1ad)]));_0x3670b2=_0x482786[_0x45d1a1(0x472)];}catch{return this['_decreaseWaiting'](),Promise[_0x45d1a1(0x33a)](new Error(ImageUploadStatusType['ERROR_IMAGE']));}return new Promise((_0x16b15c,_0x366088)=>{var _0x318286=_0x45d1a1;const _0x44b02d=new FileReader();_0x44b02d[_0x318286(0x2b0)](_0x192dd9),_0x44b02d[_0x318286(0x385)]=_0x1165fd=>{var _0x436971=_0x318286,_0x35b942;const _0x5c3599=(_0x35b942=_0x1165fd[_0x436971(0x26d)])==null?void 0x0:_0x35b942['result'];if(_0x5c3599==null){this[_0x436971(0x435)](),_0x366088(new Error(ImageUploadStatusType[_0x436971(0x1ad)]));return;}const _0x5f3174=Tools['generateRandomId'](0x6);_0x16b15c({'imageId':_0x5f3174,'imageSourceType':ImageSourceType[_0x436971(0x3a0)],'source':_0x3670b2,'base64Cache':_0x5c3599,'status':ImageUploadStatusType[_0x436971(0x31a)]}),this[_0x436971(0x435)]();};});}[_0x10fcf4(0x38e)](){var _0x78438e=_0x10fcf4,_0x2ff3b5,_0x5f0a19;const _0x2f7fbe=this[_0x78438e(0x2bf)][_0x78438e(0x3ef)](EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY),_0x53dea9=this['_configService']['getConfig'](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x5f0a19=(_0x2ff3b5=_0x53dea9==null?void 0x0:_0x53dea9[_0x78438e(0x3d1)])!=null?_0x2ff3b5:_0x2f7fbe)!=null?_0x5f0a19:DEFAULT_EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY;}[_0x10fcf4(0x3b4)](){var _0x4c802e=_0x10fcf4,_0x48e5c8,_0x38f5d9;const _0xfed13e=this['_configService'][_0x4c802e(0x3ef)](EXCHANGE_SIGN_URL_SERVER_URL_KEY),_0xbca15=this[_0x4c802e(0x2bf)][_0x4c802e(0x3ef)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x38f5d9=(_0x48e5c8=_0xbca15==null?void 0x0:_0xbca15[_0x4c802e(0x2c7)])!=null?_0x48e5c8:_0xfed13e)!=null?_0x38f5d9:DEFAULT_EXCHANGE_SIGN_URL_SERVER_URL_KEY;}[_0x10fcf4(0x429)](){var _0x791a98=_0x10fcf4,_0x25e5e0;const _0x2de674=this[_0x791a98(0x2bf)][_0x791a98(0x3ef)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x25e5e0=_0x2de674==null?void 0x0:_0x2de674[_0x791a98(0x463)])!=null?_0x25e5e0:location[_0x791a98(0x38f)];}['_replaceFileID'](_0x1e3101,_0x530cd1){var _0x20d35b=_0x10fcf4;return _0x1e3101[_0x20d35b(0x3f7)](_0x20d35b(0x2a9),_0x530cd1);}['_decreaseWaiting'](){var _0x28618e=_0x10fcf4;this[_0x28618e(0x35c)]-=0x1,this[_0x28618e(0x358)][_0x28618e(0x3d5)](this[_0x28618e(0x35c)]);}},__name(_a22,_0x10fcf4(0x302)),_a22);CollaborationImageIoService=__decorateClass$5([__decorateParam$5(0x0,Inject(HTTPService)),__decorateParam$5(0x1,IConfigService),__decorateParam$5(0x2,Inject(IUniverInstanceService))],CollaborationImageIoService);var __defProp$4=Object['defineProperty'],__getOwnPropDesc$4=Object['getOwnPropertyDescriptor'],__decorateClass$4=__name((_0x5db66b,_0x34ca15,_0xde4165,_0xdefb0)=>{var _0x7a78a8=_0x10fcf4;for(var _0x10bf5e=_0xdefb0>0x1?void 0x0:_0xdefb0?__getOwnPropDesc$4(_0x34ca15,_0xde4165):_0x34ca15,_0x1fa4ad=_0x5db66b[_0x7a78a8(0x20b)]-0x1,_0x1ab950;_0x1fa4ad>=0x0;_0x1fa4ad--)(_0x1ab950=_0x5db66b[_0x1fa4ad])&&(_0x10bf5e=(_0xdefb0?_0x1ab950(_0x34ca15,_0xde4165,_0x10bf5e):_0x1ab950(_0x10bf5e))||_0x10bf5e);return _0xdefb0&&_0x10bf5e&&__defProp$4(_0x34ca15,_0xde4165,_0x10bf5e),_0x10bf5e;},'__decorateClass$4'),__decorateParam$4=__name((_0x4e2441,_0x4a9aa6)=>(_0x4df77a,_0x262a54)=>_0x4a9aa6(_0x4df77a,_0x262a54,_0x4e2441),_0x10fcf4(0x1a8));const DEFAULT_AUTHZ_URL_KEY=_0x10fcf4(0x2bb);var _a23;let MentionIoHttpService=(_a23=class{constructor(_0x499a26,_0x259b60){var _0x3e9b03=_0x10fcf4;this[_0x3e9b03(0x2bf)]=_0x499a26,this[_0x3e9b03(0x281)]=_0x259b60;}[_0x10fcf4(0x185)](){var _0x11539a=_0x10fcf4,_0x2b8717,_0x3cf888;const _0x1dd052=this[_0x11539a(0x2bf)][_0x11539a(0x3ef)](AUTHZ_URL_KEY),_0x45e60f=this[_0x11539a(0x2bf)][_0x11539a(0x3ef)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x3cf888=(_0x2b8717=_0x45e60f==null?void 0x0:_0x45e60f['authzUrl'])!=null?_0x2b8717:_0x1dd052)!=null?_0x3cf888:DEFAULT_AUTHZ_URL_KEY;}async[_0x10fcf4(0x274)](_0x35e507){var _0x4c82d4=_0x10fcf4;const _0xac7c37=this[_0x4c82d4(0x185)]()+_0x4c82d4(0x3e1);return{'list':[{'title':'People','mentions':(await this[_0x4c82d4(0x281)][_0x4c82d4(0x402)](_0xac7c37,{'params':{'objectID':_0x35e507['unitId'],'unitID':_0x35e507[_0x4c82d4(0x422)]}}))[_0x4c82d4(0x46e)]['collaborators']['map'](_0x68a96=>({'objectId':_0x68a96['id'],'name':_0x68a96[_0x4c82d4(0x1a7)][_0x4c82d4(0x36c)],'metadata':{'icon':_0x68a96[_0x4c82d4(0x1a7)][_0x4c82d4(0x3fa)]},'label':_0x68a96[_0x4c82d4(0x1a7)]['name'],'objectType':MentionType[_0x4c82d4(0x3c2)]})),'metadata':{},'type':MentionType[_0x4c82d4(0x3c2)]}]};}},__name(_a23,_0x10fcf4(0x409)),_a23);MentionIoHttpService=__decorateClass$4([__decorateParam$4(0x0,Inject(IConfigService)),__decorateParam$4(0x1,Inject(HTTPService))],MentionIoHttpService);var __defProp$3=Object[_0x10fcf4(0x2ba)],__getOwnPropDesc$3=Object[_0x10fcf4(0x341)],__decorateClass$3=__name((_0x241bd1,_0x2d287c,_0x267f8e,_0x533dd8)=>{var _0xcbcda9=_0x10fcf4;for(var _0x18d2f8=_0x533dd8>0x1?void 0x0:_0x533dd8?__getOwnPropDesc$3(_0x2d287c,_0x267f8e):_0x2d287c,_0x422582=_0x241bd1[_0xcbcda9(0x20b)]-0x1,_0x9a963a;_0x422582>=0x0;_0x422582--)(_0x9a963a=_0x241bd1[_0x422582])&&(_0x18d2f8=(_0x533dd8?_0x9a963a(_0x2d287c,_0x267f8e,_0x18d2f8):_0x9a963a(_0x18d2f8))||_0x18d2f8);return _0x533dd8&&_0x18d2f8&&__defProp$3(_0x2d287c,_0x267f8e,_0x18d2f8),_0x18d2f8;},'__decorateClass$3'),__decorateParam$3=__name((_0x332278,_0x5bb4ac)=>(_0x309cbd,_0x24f303)=>_0x5bb4ac(_0x309cbd,_0x24f303,_0x332278),_0x10fcf4(0x236)),_a24;let PermissionService=(_a24=class extends RxDisposable{constructor(_0x106b92,_0x1e530d,_0x34c4c4,_0x119f43,_0x57d91a,_0x4eafa2,_0x3a6b1d){var _0x180d70=_0x10fcf4;super(),this['_injector']=_0x106b92,this['_univerInstanceService']=_0x1e530d,this[_0x180d70(0x4c0)]=_0x34c4c4,this[_0x180d70(0x3ae)]=_0x119f43,this[_0x180d70(0x4b8)]=_0x57d91a,this['_authzIoService']=_0x4eafa2,this[_0x180d70(0x19a)]=_0x3a6b1d,this[_0x180d70(0x378)](),this[_0x180d70(0x29c)]();}[_0x10fcf4(0x29c)](){var _0x78e72e=_0x10fcf4;const _0x4cdc70=__name(async _0x2aeb26=>{var _0x2757ca=_0x1531;(await this[_0x2757ca(0x3ae)]['requireSession'](_0x2aeb26))['event$']['pipe'](filter(_0x11b0db=>_0x11b0db[_0x2757ca(0x204)]===CollaborationEvent['SHOULD_CLOSE_CONN']),_0x2a18c3(this[_0x2757ca(0x205)]))[_0x2757ca(0x416)](_0x2665b2=>{var _0x5ee496=_0x2757ca;const _0x5aedca=_0x2665b2,{reason:_0x473e47}=_0x5aedca['data'];this[_0x5ee496(0x4b8)]['emitEvent']({'id':CollaborationUIEventId['CLOSE_ROOM'],'data':_0x473e47}),this[_0x5ee496(0x4c0)][_0x5ee496(0x371)](new WorkbookEditablePermission(_0x2aeb26)['id'],!0x1),this[_0x5ee496(0x3ae)][_0x5ee496(0x4ba)](_0x2aeb26);});},_0x78e72e(0x3cb));merge(this['_univerInstanceService'][_0x78e72e(0x473)](UniverInstanceType[_0x78e72e(0x3a7)]),this[_0x78e72e(0x3a9)]['getTypeOfUnitAdded$'](UniverInstanceType[_0x78e72e(0x30c)]))['pipe'](map(_0x2a75be=>_0x2a75be['getUnitId']()),filter(_0x5b775c=>!isInternalEditorID(_0x5b775c)),_0x2a18c3(this[_0x78e72e(0x205)]))[_0x78e72e(0x416)](_0x985cbb=>{_0x4cdc70(_0x985cbb);});}[_0x10fcf4(0x378)](){var _0x478878=_0x10fcf4;const _0x3ec23b=__name(async _0x3165c6=>{var _0x319eee=_0x1531;const _0x23f652=await this['_collaborationSessionService']['requireSession'](_0x3165c6),_0x1f2efd=this[_0x319eee(0x2b7)][_0x319eee(0x402)](SheetPermissionInitController);_0x23f652[_0x319eee(0x48c)][_0x319eee(0x18d)](filter(_0x3b5156=>_0x3b5156[_0x319eee(0x204)]===CollaborationEvent[_0x319eee(0x3d7)]),_0x2a18c3(this[_0x319eee(0x205)]))['subscribe'](_0x4d6aac=>{var _0x3eedd6=_0x319eee;const _0x2fcb61=_0x4d6aac,{objectId:_0x2f926f}=_0x2fcb61[_0x3eedd6(0x407)];_0x2f926f===_0x3165c6?_0x1f2efd['initWorkbookPermissionChange'](_0x3165c6):_0x1f2efd['refreshPermission'](_0x3165c6,_0x2f926f);});},_0x478878(0x4c1));merge(this[_0x478878(0x3a9)][_0x478878(0x473)](UniverInstanceType['UNIVER_SHEET']),this[_0x478878(0x3a9)][_0x478878(0x473)](UniverInstanceType[_0x478878(0x30c)]))[_0x478878(0x18d)](map(_0x2ed437=>_0x2ed437[_0x478878(0x2b9)]()),filter(_0x16df6d=>!isInternalEditorID(_0x16df6d)),_0x2a18c3(this['dispose$']))[_0x478878(0x416)](_0x3574ae=>{_0x3ec23b(_0x3574ae);});}},__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[_0x10fcf4(0x2ba)],__getOwnPropDesc$2=Object[_0x10fcf4(0x341)],__decorateClass$2=__name((_0x504da4,_0xa9a5c7,_0x18d590,_0x33a00a)=>{var _0x4c48c0=_0x10fcf4;for(var _0x560afc=_0x33a00a>0x1?void 0x0:_0x33a00a?__getOwnPropDesc$2(_0xa9a5c7,_0x18d590):_0xa9a5c7,_0x32b0d4=_0x504da4[_0x4c48c0(0x20b)]-0x1,_0x130058;_0x32b0d4>=0x0;_0x32b0d4--)(_0x130058=_0x504da4[_0x32b0d4])&&(_0x560afc=(_0x33a00a?_0x130058(_0xa9a5c7,_0x18d590,_0x560afc):_0x130058(_0x560afc))||_0x560afc);return _0x33a00a&&_0x560afc&&__defProp$2(_0xa9a5c7,_0x18d590,_0x560afc),_0x560afc;},_0x10fcf4(0x415)),__decorateParam$2=__name((_0x169f01,_0x3f7f49)=>(_0x5a78a0,_0x44fb4d)=>_0x3f7f49(_0x5a78a0,_0x44fb4d,_0x169f01),_0x10fcf4(0x19b)),_a25;let SnapshotServerOverHTTPService=(_a25=class{constructor(_0x5d3cc3,_0x5dc91e){var _0x4d9eba=_0x10fcf4;this[_0x4d9eba(0x2bf)]=_0x5d3cc3,this[_0x4d9eba(0x1ca)]=_0x5dc91e;}async[_0x10fcf4(0x362)](_0x22163f,_0xfa987b){var _0x72fb1e=_0x10fcf4,_0x46d693;const {unitID:_0x120c71,type:_0xc589a2,revision:revision=0x0}=_0xfa987b,_0x331158=this[_0x72fb1e(0x304)]()+'/'+_0xc589a2+_0x72fb1e(0x34c)+_0x120c71+_0x72fb1e(0x1a2)+revision,_0x528d55=(await this[_0x72fb1e(0x1ca)][_0x72fb1e(0x402)](_0x331158))[_0x72fb1e(0x46e)],_0xbbfd66=(_0x46d693=_0x528d55[_0x72fb1e(0x43e)])==null?void 0x0:_0x46d693[_0x72fb1e(0x321)];if(_0xbbfd66){const _0x3d2e65=_0xbbfd66==null?void 0x0:_0xbbfd66[_0x72fb1e(0x2c1)],_0xcca2a3=textEncoder[_0x72fb1e(0x206)](b64DecodeUnicode(_0x3d2e65));_0xbbfd66['originalMeta']=_0xcca2a3,Object[_0x72fb1e(0x2a3)](_0xbbfd66['sheets'])[_0x72fb1e(0x260)](([,_0x23b130])=>{var _0x46a367=_0x72fb1e;const _0x38d225=_0x23b130[_0x46a367(0x2c1)],_0x58fa95=textEncoder[_0x46a367(0x206)](b64DecodeUnicode(_0x38d225));_0x23b130[_0x46a367(0x2c1)]=_0x58fa95;});}return _0x528d55;}async[_0x10fcf4(0x231)](_0x5d1262,_0x3ce326){var _0x4cdf35=_0x10fcf4;const {unitID:_0x121ad8,type:_0x37b35c,blockID:_0x438b27}=_0x3ce326,_0x2b3b73=this[_0x4cdf35(0x382)]()+'/'+_0x37b35c+_0x4cdf35(0x34c)+_0x121ad8+_0x4cdf35(0x1e5)+_0x438b27;return(await this[_0x4cdf35(0x1ca)][_0x4cdf35(0x402)](_0x2b3b73))[_0x4cdf35(0x46e)];}async[_0x10fcf4(0x375)](_0x281640,_0x276c8f){var _0x372163=_0x10fcf4;const {unitID:_0x45205b,type:_0x50b795,blockID:_0x8c5b41}=_0x276c8f,_0xbbab30=this[_0x372163(0x382)]()+_0x372163(0x1e5)+_0x50b795+_0x372163(0x34c)+_0x45205b+_0x372163(0x1e5)+_0x8c5b41;return(await this['_httpService'][_0x372163(0x402)](_0xbbab30))[_0x372163(0x46e)];}async[_0x10fcf4(0x39f)](_0x5b6b4e,_0x4f0d08){var _0x1fa786=_0x10fcf4;const {unitID:_0x324297,type:_0x3c05dd,from:_0x58691c,to:_0xb4f179}=_0x4f0d08,_0x53c217=this[_0x1fa786(0x382)]()+'/'+_0x3c05dd+'/unit/'+_0x324297+'/fetchmissing?from='+_0x58691c+'&to='+_0xb4f179;return(await this[_0x1fa786(0x1ca)][_0x1fa786(0x402)](_0x53c217))[_0x1fa786(0x46e)];}[_0x10fcf4(0x304)](){var _0x2ce9fa=_0x10fcf4,_0x21ac01;return(_0x21ac01=this[_0x2ce9fa(0x2bf)][_0x2ce9fa(0x3ef)](SNAPSHOT_URL_KEY))!=null?_0x21ac01:this[_0x2ce9fa(0x382)]();}[_0x10fcf4(0x382)](){var _0x238701=_0x10fcf4,_0x2ffc5f,_0xd19348;const _0x49822f=this[_0x238701(0x2bf)][_0x238701(0x3ef)](SNAPSHOT_SERVER_URL_KEY),_0x299fd8=this['_configService'][_0x238701(0x3ef)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0xd19348=(_0x2ffc5f=_0x299fd8==null?void 0x0:_0x299fd8['snapshotServerUrl'])!=null?_0x2ffc5f:_0x49822f)!=null?_0xd19348:DEFAULT_SNAPSHOT_SERVER_URL;}async[_0x10fcf4(0x40f)](_0x2b846d,_0x964ca8){var _0x17f09b=_0x10fcf4;const _0x4ebb5a=_0x17f09b(0x227)+_0x964ca8[_0x17f09b(0x48b)]+_0x17f09b(0x34c)+_0x964ca8[_0x17f09b(0x436)]+'/resources';return(await this[_0x17f09b(0x1ca)][_0x17f09b(0x402)](_0x4ebb5a,{'params':{'resourceId':JSON[_0x17f09b(0x259)](_0x964ca8['resourceIDs'])}}))[_0x17f09b(0x46e)];}['saveSnapshot'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['saveSheetBlock'](){var _0x26b3fd=_0x10fcf4;throw new Error(_0x26b3fd(0x4b9));}[_0x10fcf4(0x2e9)](){var _0x5f2911=_0x10fcf4;throw new Error(_0x5f2911(0x4b9));}[_0x10fcf4(0x1cd)](){var _0x118cc0=_0x10fcf4;throw new Error(_0x118cc0(0x4b9));}[_0x10fcf4(0x326)](){var _0x4dfa03=_0x10fcf4;throw new Error(_0x4dfa03(0x4b9));}},__name(_a25,'SnapshotServerOverHTTPService'),_a25);SnapshotServerOverHTTPService=__decorateClass$2([__decorateParam$2(0x0,IConfigService),__decorateParam$2(0x1,Inject(HTTPService))],SnapshotServerOverHTTPService);var __defProp$1=Object[_0x10fcf4(0x2ba)],__getOwnPropDesc$1=Object[_0x10fcf4(0x341)],__decorateClass$1=__name((_0x5ccee2,_0x4af5e4,_0x57bf94,_0xda1f5a)=>{for(var _0x2dcaa2=_0xda1f5a>0x1?void 0x0:_0xda1f5a?__getOwnPropDesc$1(_0x4af5e4,_0x57bf94):_0x4af5e4,_0x4a058b=_0x5ccee2['length']-0x1,_0x37a0f9;_0x4a058b>=0x0;_0x4a058b--)(_0x37a0f9=_0x5ccee2[_0x4a058b])&&(_0x2dcaa2=(_0xda1f5a?_0x37a0f9(_0x4af5e4,_0x57bf94,_0x2dcaa2):_0x37a0f9(_0x2dcaa2))||_0x2dcaa2);return _0xda1f5a&&_0x2dcaa2&&__defProp$1(_0x4af5e4,_0x57bf94,_0x2dcaa2),_0x2dcaa2;},'__decorateClass$1'),__decorateParam$1=__name((_0x50a87d,_0x3f382d)=>(_0x438d88,_0x19e1ba)=>_0x3f382d(_0x438d88,_0x19e1ba,_0x50a87d),_0x10fcf4(0x428)),_a26;let CollaborativeUndoRedoService=(_a26=class extends LocalUndoRedoService{constructor(_0x374ad3,_0x5bdf25,_0x5db930,_0x1f6a67,_0x36e2cb){var _0x154efc=_0x10fcf4;super(_0x374ad3,_0x5bdf25,_0x5db930),this['_transformService']=_0x1f6a67,this[_0x154efc(0x298)]=_0x36e2cb;}[_0x10fcf4(0x25e)](_0x3d54bd,_0x4d62bf){var _0x59f843=_0x10fcf4;const _0x312b39=this[_0x59f843(0x3a1)](_0x3d54bd);if(_0x312b39)try{const _0x198b96=this['_transformStack'](_0x312b39,_0x4d62bf);this['_substituteUndoStack'](_0x3d54bd,_0x198b96);}catch(_0x376c51){this[_0x59f843(0x298)]['error'](_0x59f843(0x1a0),_0x376c51),this[_0x59f843(0x1c1)](_0x3d54bd);}const _0x912983=this['_getRedoStack'](_0x3d54bd);if(_0x912983)try{const _0x1d2803=this[_0x59f843(0x2f3)](_0x912983,_0x4d62bf);this[_0x59f843(0x389)](_0x3d54bd,_0x1d2803);}catch(_0x270d7b){this[_0x59f843(0x298)][_0x59f843(0x2a0)](_0x270d7b),this['_clearRedo'](_0x3d54bd);}}['_clearUndo'](_0x4d59d5){var _0x9071e2=_0x10fcf4;const _0x5bc1d4=this['_getUndoStack'](_0x4d59d5);_0x5bc1d4&&(_0x5bc1d4['length']=0x0,this[_0x9071e2(0x410)]());}[_0x10fcf4(0x3a8)](_0x191c34){var _0x83880f=_0x10fcf4;const _0x4cfc8f=this[_0x83880f(0x1ce)](_0x191c34);_0x4cfc8f&&(_0x4cfc8f['length']=0x0,this[_0x83880f(0x410)]());}[_0x10fcf4(0x221)](_0x32c6bb,_0x4a8d84){var _0x341ea7=_0x10fcf4;this[_0x341ea7(0x23e)][_0x341ea7(0x26a)](_0x32c6bb,_0x4a8d84),this[_0x341ea7(0x410)]();}['_substituteRedoStack'](_0x53ce2d,_0x681a6e){var _0x169a3b=_0x10fcf4;this[_0x169a3b(0x1c9)]['set'](_0x53ce2d,_0x681a6e),this[_0x169a3b(0x410)]();}['_transformStack'](_0x1cc676,_0x6b19e3){var _0x1be97c=_0x10fcf4;const _0x18616b=[];let _0x2376f5=_0x6b19e3,_0x44569b=_0x6b19e3;for(let _0x2631d7=_0x1cc676[_0x1be97c(0x20b)]-0x1;_0x2631d7>=0x0;_0x2631d7--){const {unitID:_0xbae60c,undoMutations:_0x4ed98d,redoMutations:_0x332497}=_0x1cc676[_0x2631d7],_0x1bd2cf=this['_transformService'][_0x1be97c(0x266)](_0x2376f5,_0x4ed98d),_0x45fe01=this['_transformService'][_0x1be97c(0x266)](_0x44569b,_0x332497);if(isTransformMutationsWithChangesetFailure(_0x1bd2cf)||isTransformMutationsWithChangesetFailure(_0x45fe01)){this[_0x1be97c(0x298)][_0x1be97c(0x2a0)](_0x1be97c(0x1a0),_0x1be97c(0x488),_0x1bd2cf,_0x45fe01);break;}_0x2376f5=_0x1bd2cf['c1Prime'],_0x44569b=_0x45fe01[_0x1be97c(0x493)],_0x18616b[_0x1be97c(0x1b3)]({'unitID':_0xbae60c,'undoMutations':_0x1bd2cf[_0x1be97c(0x2fd)],'redoMutations':_0x45fe01['m2Prime']});}return _0x18616b[_0x1be97c(0x200)]();}},__name(_a26,_0x10fcf4(0x354)),_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[_0x10fcf4(0x2ba)],__getOwnPropDesc=Object['getOwnPropertyDescriptor'],__defNormalProp2=__name((_0x1fe7b2,_0x1421cf,_0x559b94)=>_0x1421cf in _0x1fe7b2?__defProp2(_0x1fe7b2,_0x1421cf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x559b94}):_0x1fe7b2[_0x1421cf]=_0x559b94,_0x10fcf4(0x222)),__decorateClass=__name((_0x23ca94,_0x2e0342,_0x1dfdff,_0x248b62)=>{var _0x21ada4=_0x10fcf4;for(var _0x1c7109=_0x248b62>0x1?void 0x0:_0x248b62?__getOwnPropDesc(_0x2e0342,_0x1dfdff):_0x2e0342,_0x4ed8d9=_0x23ca94[_0x21ada4(0x20b)]-0x1,_0x26090d;_0x4ed8d9>=0x0;_0x4ed8d9--)(_0x26090d=_0x23ca94[_0x4ed8d9])&&(_0x1c7109=(_0x248b62?_0x26090d(_0x2e0342,_0x1dfdff,_0x1c7109):_0x26090d(_0x1c7109))||_0x1c7109);return _0x248b62&&_0x1c7109&&__defProp2(_0x2e0342,_0x1dfdff,_0x1c7109),_0x1c7109;},_0x10fcf4(0x2a1)),__decorateParam=__name((_0x4a678d,_0x2b18f5)=>(_0x5f14b8,_0x314d52)=>_0x2b18f5(_0x5f14b8,_0x314d52,_0x4a678d),_0x10fcf4(0x1dc)),__publicField2=__name((_0x17b781,_0x56e841,_0x319319)=>__defNormalProp2(_0x17b781,_0x56e841+'',_0x319319),_0x10fcf4(0x4a6));const PLUGIN_NAME='UNIVER_COLLABORATION_CLIENT_PLUGIN';var _a27;let UniverCollaborationClientPlugin=(_a27=class extends Plugin{constructor(_0x216049=defaultPluginConfig,_0x34e2d7,_0x23ddb0,_0x631383){var _0x4d2b2e=_0x10fcf4;super(),this[_0x4d2b2e(0x291)]=_0x216049,this[_0x4d2b2e(0x298)]=_0x34e2d7,this[_0x4d2b2e(0x2b7)]=_0x23ddb0,this[_0x4d2b2e(0x2bf)]=_0x631383;const {..._0x4c1631}=_0xfc9023({},defaultPluginConfig,this[_0x4d2b2e(0x291)]);this[_0x4d2b2e(0x2bf)]['setConfig'](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,_0x4c1631);}[_0x10fcf4(0x4bd)](){var _0x43bda6=_0x10fcf4;this['_registerDependencies'](),this[_0x43bda6(0x35b)]();}[_0x10fcf4(0x44e)](){var _0x4015bd=_0x10fcf4,_0x4e9f66,_0x272c62,_0x233592,_0x3c0621;this[_0x4015bd(0x2b7)][_0x4015bd(0x3f8)](IUndoRedoService)&&this['_logService']['error']('[UniverCollaborationClientPlugin]',_0x4015bd(0x2dc));const _0x2e6883=mergeOverrideWithDependencies([[IUndoRedoService,{'useClass':CollaborativeUndoRedoService}],[CollaborationSessionService],[MemberService],[SheetTransformSelectionsService],[AuthServerService],[DomainRequestService],[CommentService],[PermissionService],[CollaborationUIEventService],[DataLoaderService],[ICollaborationSocketService,{'useClass':(_0x272c62=(_0x4e9f66=this[_0x4015bd(0x291)])==null?void 0x0:_0x4e9f66[_0x4015bd(0x40b)])!=null?_0x272c62:CollaborationSocketService}],[ISnapshotServerService,{'useClass':SnapshotServerOverHTTPService}],[IAuthzIoService,{'useClass':AuthzIoHttpService}],[IImageIoService,{'useClass':CollaborationImageIoService}],[IMentionIOService,{'useClass':MentionIoHttpService}],[CollaborationController],[FileNameController]],(_0x233592=this[_0x4015bd(0x291)])==null?void 0x0:_0x233592[_0x4015bd(0x320)]);if(!((_0x3c0621=this['_config'])!=null&&_0x3c0621['enableSingleActiveInstanceLock'])){const _0x2efdc1=_0x2e6883[_0x4015bd(0x22d)](([_0x344cb1])=>_0x344cb1===ISingleActiveUnitService);_0x2efdc1!==-0x1&&_0x2e6883[_0x4015bd(0x3e6)](_0x2efdc1,0x1);}registerDependencies(this[_0x4015bd(0x2b7)],_0x2e6883);}[_0x10fcf4(0x35b)](){var _0x2a78ed=_0x10fcf4,_0x34ab95,_0x3f27f0,_0x41d2d4;this[_0x2a78ed(0x2b7)][_0x2a78ed(0x402)](HTTPService)[_0x2a78ed(0x3e3)]({'priority':0x14,'interceptor':ThresholdInterceptorFactory({'maxParallel':0x6})}),(_0x34ab95=this[_0x2a78ed(0x291)])!=null&&_0x34ab95[_0x2a78ed(0x31e)]||(_0x3f27f0=this[_0x2a78ed(0x2b7)][_0x2a78ed(0x402)](ILocalCacheService,Quantity[_0x2a78ed(0x3a2)]))==null||_0x3f27f0[_0x2a78ed(0x386)](),(_0x41d2d4=this['_config'])!=null&&_0x41d2d4['enableAuthServer']&&touchDependencies(this['_injector'],[[AuthServerService]]),touchDependencies(this['_injector'],[[DomainRequestService],[CollaborationController],[PermissionService]]);}},__name(_a27,_0x10fcf4(0x2d1)),_a27);__publicField2(UniverCollaborationClientPlugin,_0x10fcf4(0x461),PLUGIN_NAME),UniverCollaborationClientPlugin=__decorateClass([DependentOn(UniverCollaborationPlugin,UniverSheetsPlugin,UniverNetworkPlugin),__decorateParam(0x1,ILogService),__decorateParam(0x2,Inject(Injector)),__decorateParam(0x3,IConfigService)],UniverCollaborationClientPlugin);function _0x33e4(){var _0x5343e3=['UNRECOGNIZED','_emitMembers','default','snapshot','requireLibTypedarrays','_invKeySchedule','loadUnit','mixIn','SOCKET_FAILED_RETRY','SUBMIT_CHANGESET','_timeoutTimer','_doProcessBlock','executeCommand','mutations','requireCipherCore','JOINING','search','_init','size','_registerDependencies','LEAVE','filter','permissionRejEvent','getValue','_transformService','map','__decorateClass$h','LICENSE_IMPORT_SIZE_EXCEEDED','floor','transformChangesets','connection\x20error','loadOfflineData','_scheduleCollaborationTimeoutTimer','_acknowledgedAwaitingChangeset','_getLoginPath','BASE64','/-/object/list','onRemoteRetry','pluginName','BlockCipher','downloadEndpointUrl','_http','getCollabEntity$','UNAUTHENTICATED','min','_collaborationTimeoutTimer','extend','GLOBAL_ROOMS_CNT_EXCEEDS','Base64','requireHmac','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','body','auth.needGotoLoginAlert','__decorateParam$g','joinRsp','FileId','getTypeOfUnitAdded$','_toggleOffline','_transformStateCache','_parse','authzUrl','_removeRoom','objectType','collabSubmitChangesetUrl','error$','random','getUnit','max','SHA1','onStateChange','headers','NEW_CHANGESETS','joinEvent','url','_tryEnsureSocket','859272stLozU','_clearTimeoutTimer','transformStack\x20failed!','\x20to\x20','addImageSourceCache','type','event$','onRemoteRej','MUTATION','LIVESHARE_FETCH_OPERATIONS','kdf','_createInitialStateImpl','getCurrentRevOfUnit','c1Prime','[SyncedState]:\x20received\x20acknowledgement.','SHOULD_CLOSE_CONN','__decorateParam$e','state$','USERS_ENTER','readInt32LE','padding','CHANGESET_SHOULD_RETRY','_memberService','_transformIMECache','/universer-api/oidc/authpage','memberID','_doCryptBlock','__creator','sigBytes','decrypt','createDecryptor','readyForCollab','__publicField','commonjsRequire','slice','addHandlerCallback','socket$','bind','15GlBhfA','_snapshotServerService','includes','_resendTimeout','[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.','/universer-api/file/{fileID}/sign-url','ENSURE_SNAPSHOT_EXECUTION','runId','_createHelper','symbol','LICENSE_MAX_UNITS_EXCEEDED','SUBMIT_CHANGESET_TIMEOUT','_collaborationUIEventService','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','closeSession','_hasher','ivSize','onStarting','POST','_data','_permissionService','handleUnitPermissionChange','charAt','pauseCollaboration','csShouldRetryEvent','method','requireCore','getAttachHeader','_getAPIPrefixPath','CollaborationSession','session.room-permission-denied','YUUMI_SUBSCRIPTION_NOT_FOUND','AES','_roomMembers','Hex','fetchMiss','pipe','9VeXViD','collabWebSocketUrl','ciphertext','removeMember','selections','810DwKGil','_listenToNetworkCondition','getFocusedUnit','COMPRESS_MUTATION_SEND','MSG_FOR_ERROR','?size=','lib','_undoRedoService','__decorateParam$2','_transformUndoredo','JOIN_ROOM_FULL','rng','shouldCloseConn','[CollaborationUndoRedoService]','randomUUID','/rev/','APPLY_REJECT','terminateWithError','Hasher','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','subject','__decorateParam$4','LIVESHARE_REQUEST_HOST','_commandService','onlyLocal','randomBytes','ERROR_IMAGE','JOIN_ROOM_PERMISSION_DENIED','onMissingChangesets','getMemberID','isPermissionRej','every','push','updateMember','WordArray','_commentUpdate$','__decorateClass$g','[DataLoaderService]','ticket','_applyRemoteChangeset','COMPRESS_MUTATION_APPLY','_sheetTransformSelectionsService','assembleDocChangeset','_unlockTransition','generateSubmitChangesPath','_keySchedule','_clearUndo','_map','OpenSSL','_roomCreated$','update','encodeURIComponent','fromCollab','salt','_redoStacks','_httpService','_awaitingChangeset','fetchThroughInterceptors','copyFileMeta','_getRedoStack','_singleActiveUnitService','deserializeToCombResponse','getMember','_toggleOnline','_tryReconnect','words','CHANGESET_ACK','onMissedChangesetFetched','UNISCRIPT_RUN','title','CONNECTOR_DATA_TOO_LARGE','image/gif','capture','__decorateParam','_entities','[SyncedState]:\x20received\x20rejection.','fetch_missing','ceil','CollaborationEntity','397507VYrebR','INVALID_ARGUMENT','pad','/block/','_localeService','_iv','_onRemoteChangeset','getUnitType','HttpExport','EXCHANGE_SIGN_URL_SERVER_URL_KEY','HEARTBEAT_TIMEOUT','NOT_COLLAB','_snapshotService','unitInfo$','hostname','_entityInit$','src','pending','YUUMI_URL_COL_OUT_OF_RANGE','HELLO','onTransformState','reduce','baseRev','byteLength','[OfflineState]:\x20received\x20changeset.','conflict','assembleSheetChangeset','createOnlineState','execute','Native\x20crypto\x20module\x20could\x20not\x20be\x20used\x20to\x20get\x20secure\x20random\x20number.','reverse','socket\x20open.','SheetTransformSelectionsService','_transitionLocked','eventID','dispose$','encode','__decorateClass$9','APPLY_NON_SEQUENTIAL_REVISION','_changesetReqId','_compressMutationService','length','concat','_hash','sessionStatus','CollaborationSessionService','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_state$','Error\x20on\x20receiving\x20event','32uBUQYZ','sessionStatus$','_fetchMissChangesets','USERS_LEAVE','_socketReady','__decorateParam$a','call','onTransformSelections','[PendingState]:\x20received\x20rejection.','[CollaborationState]:\x20apply\x20error!','reqId','_throwTelemetryCollaborationNewChangeset','mode','_substituteUndoStack','__defNormalProp','getActiveSheet','unsubscribe','APPLY_DUPLICATED','/-/object/-/batch_allowed','/universer-api/snapshot/','status','YUUMI_UNABLE_LOAD_URL','crypto','requireMd5','/universer-api/snapshot','findIndex','keySize','emitEvent','loginUrlKey','getSheetBlock','format','$super','liveShareOperation','[FetchMissState]','__decorateParam$3','onRemoteAck','unpad','resend','then','updatePermissionObjEvent','HEARTBEAT','UNIVER_SLIDE','_undoStacks','_startCollaboration','_handler','/universer-api/stream/file/upload','requireSession','init','sessionTicket','DataLoaderService','_members$','awaiting_with_pending','univer-pro.collaboration-client.single-active-unit-service','_onCombEvent','DEFAULT_FILE_NAME','getRandomValues','_onRemoteRejected','NOT_FOUND','_createInitialState','clone','decryptBlock','collaboration-client.local-cache-service','COMPLETION_FINISHED','Univer','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','getSheetId','onSyncEditingCollabCursor','__decorateClass$7','add','stringify','focused$','UnitEmbedded','_sendingTimer','1445646JizPnW','transformUndoRedo','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','forEach','subUnitId','HEARTBEAT_INTERVAL','/allowed','searchParams','serializeCombRequest','transformMutationsWithChangeset','SNAPSHOT_URL_KEY','requireEncBase64','_unitID','set','_socketMessageSubscription','process','target','_loadSheet','online$','getTime','close$','clear','_status$','list','commentUpdateEvent','UnitSnapshot','_onConnectionFailed','BufferedBlockAlgorithm','toString','function','getInterceptPoints','Malformed\x20UTF-8\x20data','deepClone','_unitInfo$','/object/','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_HTTPService','7912647haDfzU','895342CjbxVh','_updateState','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_resendWithTimeout','sendChangesetTimeout','?url=','cryptoSecureRandomInt','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_onRemoteRetry','getAllMembers','members','transformSelections','Undefined','incrementRevOfUnit','_config','_event$','awaitingChangeset','_transformRemoteChangesetByIMECache','Decryptor','commentUpdate$','appendMutation','_logService','fetching\x20missing\x20changesets\x20from\x20','__decorateClass$5','COMMENT_UPDATE','_initCloseConn','disposeWithMe','OTHER_CLIENTS_EDITING','catch','error','__decorateClass','image/jpeg','entries','loadSheet','create','ConflictState','_keyPriorReset','application/json','{fileID}','_onConflict','_instanceService','entityInit$','changesets','requireEvpkdf','SOCKET_FAILED','readAsDataURL','FETCH_MISSING','requireAes','toggleOnline','_type','ERROR_EXCEED_SIZE','encrypt','_injector','stopTime','getUnitId','defineProperty','/universer-api/authz','_telemetryService','_scheduleCompleteTimestamp','exports','_configService','_state','originalMeta','liveShareNewHost','[OfflineState]:\x20received\x20acknowledgement.','sin','_checkMissing','createEncryptor','signUrlServerUrl','UPDATE_CURSOR','Encryptor','_ENC_XFORM_MODE','_updateLocalCache','collaboration-client.config','open$','routeKey','fromCharCode','_getCtorByUniverType','UniverCollaborationClientPlugin','params','image/png','/object','delete','_createHandler','_onOffline','CHANGESET_REVISION_CONFILICT','allowed','file','compute','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','hasOwnProperty','compose','_executeRemoteChangeset','PendingState','saveImage','ALREADY_EXISTS','values','OFFLINE','CipherParams','_members','_retryCount','StreamCipher','saveChangeset','onTransformRemoteChangesetByStateCache','extractTargetFromFirstChangeset','_process','unit-cache-','SNAPSHOT_SERVER_URL_KEY','[CollaborationEntity]','CLOSE_ROOM','_rescheduleHeartbeat','_disableEditing','_transformStack','_isPermissionRej','getCurrentUser','_queuedRemoteChangesets','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','updateCollaborator','find','finalize','toggleOffline','Utf8','m2Prime','revision','univer-pro.collaboration-client.network-condition.service','updateOfflineData','_networkConditionService','CollaborationImageIoService','objectID','getSnapshotAPIPath','/universer-api/comb','_stopTelemetryCollaborationNewChangeset','Cipher','requestParams','send','__decorateClass$f','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','UNIVER_DOC','_revisionService','_clearScheduledTask','_minBufferSize','textRanges','CollaborationSocketService','__decorateClass$d','_onUserJoin','session.room-not-exists','withCredentials','[CollaborationSessionService]:\x20socket\x20error','2168832EBIqUk','dispose','getCurrentSelections','SUCCUSS','rev','waitForRoom$','LIVESHARE_NEW_HOST','enableOfflineEditing','YUUMI_RATE_OVER_LIMIT','override','workbook','_nRounds','_loadDoc','editingUnit','getTypeOfUnitDisposed$','getLatestCsReqIdBySid','DocCollaborationEntity','SEND_CHANGESET_TIMEOUT','_resendTimer','c2Prime','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','append','LIVESHARE_TERMINATE','FAIL','[CollaborationSession]','_getCurrentRevision','_localCacheService','clamp','_candidateSocket','JOIN','x-univer-host','[OfflineState]:\x20received\x20rejection.','PERMISSION_DENIED','offline','_sender','reject','substr','_transformSelections','_onMessage','onCommandExecuted','updateCursorEvent','PERMISSION_REJ','getOwnPropertyDescriptor','_reverseMap','_clearHeartbeatTimer','encryptBlock','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','session.join-failed','PY_RUNTIME_SCRIPT_ERROR','setCurrentUser','image/jpg','_commentService','hasher','/unit/','_nDataBytes','AuthzIoHttpService','UNKNOWN_CODE','_cipher','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','SYNCED','_createSocketURL','CollaborativeUndoRedoService','CommentService','result','SyncedState','_change$','JOIN_ROOM_FAILED','algo','_initDependencies','_waitCount','processBlock','put','summaryChangesetSize','_shouldReportTelemetry','parse','getUnitOnRev','from','Base','IDLE','_waitForHeartbeatResponse','CONFLICT','_lockTransition','byteOffset','_telemetryInfo','NO_OTHER_CLIENTS_EDITING','name','_submitChangeset','complete','_sessions','isArray','updatePermissionPoint','UNKNOWN_CMD','_onConnectionOpen','_clearCollaborationTimeoutTimer','getDeserializedSheetBlock','SNAPSHOT_INVALID_SNAPSHOT','\x20-\x20','_initUnitPermissionChange','__Key__','onTransformIME','loadDoc','getUnitStatus$','state','_createSocket','_userManagerService','EvpKDF','telemetry\x20info\x20is\x20not\x20initialized','_getAPIPrefix','_getSessionTicket','enc','onload','disableLocalCache','key','debug','_substituteRedoStack','\x22.\x20Please\x20configure\x20the\x20dynamicRequireTargets\x20or/and\x20ignoreDynamicRequires\x20option\x20of\x20@rollup/plugin-commonjs\x20appropriately\x20for\x20this\x20require\x20call\x20to\x20work.','objectActions','href','localCacheService','_getUploadFileURL','origin','collaborators','session','INGEST','__decorateParam$f','_startTelemetryCollaborationNewChangeset','setShowComponents','/role','JOIN_ROOM_NOT_EXISTS','reset','/new_changes','_collaborationPaused','_syncEditingCollabCursor','_onLocalMutation','userID','RECV','fetchMissingChangesets','UUID','_getUndoStack','OPTIONAL','_handlerCallback','_append','_onRecvEvent','blockSize','UNIVER_SHEET','_clearRedo','_univerInstanceService','__esModule','__decorateParam$9','location','save\x20fail\x20reason\x20is\x20','_collaborationSessionService','wsSessionTicketUrl','ONLINE','onTransformRemoteChangesetByIMECache','interceptor','_socket','_getSignURL','onSendChangeset','asObservable','onRemoteChangeset','close','formatter','message$','code','putCollaborators','OTHER_CLIENT_EDITING','string','TOO_MANY_REQUESTS','abs','_remoteChangesetQueue','PERSON','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','COLLAB_WEB_SOCKET_URL','prototype','NoPadding','_mode','LICENSE_EXPORT_SIZE_EXCEEDED','_prevBlock','_oKey','handleCloseConn','synced','status$','\x0aAfter:\x20','_sessionStatus$','SerializableCipher','uploadFileServerUrl','_changesetSessionId','_onFetchMissResult','uniscriptRunEvent','next','_doFinalize','UPDATE_PERMISSION_OBJ','AwaitingState','confirm','_showConflictNotification','msCrypto','_clearLocalCache','_createHmacHelper','PasswordBasedCipher','reconnect','_socketService','/collaborator','xorBlock','registerHTTPInterceptor','localeService','PSEUDO_FETCH_MISSING_RESULT','splice','_key','getCollabEntity','_sendHeartbeat','_initRequestHeader','onTransformRemoteChangesetByStateCache\x20callback\x20is\x20not\x20added\x20yet.','charCodeAt','onTransformRemoteChangesetByIMECache\x20callback\x20is\x20not\x20added\x20yet.','UNDEFINED','getConfig','getRoom','[CollaborationSessionService]','Random\x20bytes\x20length\x20must\x20be\x20>=\x2016','_sendHeartbeatTimer','onLocalMutation','MD5','_pendingMutations','replace','has','_initMergeInterceptor','avatar','170605GvNmMO','actions','HmacMD5','cfg','UNIVER_UNKNOWN','__decorateParam$i','unknown','get','_onUserLeave','APPLY_REVISION_CONFILICT','AwaitingWithPendingState','UNIVER_PROJECT','data','_replayCachedMutations','MentionIoHttpService','Could\x20not\x20dynamically\x20require\x20\x22','socketService','now','post','_replaceFileID','getResourcesRequest','_updateStatus','onCommentUpdate','_schedule','_collabSessionService','__decorateClass$i','__decorateClass$2','subscribe','_retryConnectingTimer','apply','_doReset','INTERNAL_ERROR','AuthServerService','getLocalCacheKey','HttpImport','ws://127.0.0.1:8000/universer-api/comb/connect','LIVESHARE_OPERATION','_socket$','sid','unitId','ERROR_IMAGE_TYPE','PENDING','getImageSourceCache','__decorateParam$d','FileNameController','__decorateParam$1','_getDownloadEndpointURL','_getSendChangesetTimeout','createInstance','/universer-api/user/session-ticket','LICENSE_DISTRO_REJECTED','cmd','createTimerObservable$','APPLY_PERMISSION_DENIED','change$','SNAPSHOT_HAS_BEEN_REMOVED','AUTHZ_URL_KEY','_imageSourceCache','_decreaseWaiting','unitID','_incrementRevisionNumber','action','__decorateParam$7','createCollaborator'];_0x33e4=function(){return _0x5343e3;};return _0x33e4();}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 _0x23d062=_0x3017;(function(_0x3a72cc,_0x5048c8){var _0x259323=_0x3017,_0x1cd558=_0x3a72cc();while(!![]){try{var _0x56a4ae=-parseInt(_0x259323(0x18b))/0x1*(-parseInt(_0x259323(0xea))/0x2)+parseInt(_0x259323(0x137))/0x3*(-parseInt(_0x259323(0x15c))/0x4)+parseInt(_0x259323(0x1d2))/0x5*(-parseInt(_0x259323(0x303))/0x6)+-parseInt(_0x259323(0x15a))/0x7*(-parseInt(_0x259323(0x29c))/0x8)+parseInt(_0x259323(0x318))/0x9*(parseInt(_0x259323(0x25f))/0xa)+-parseInt(_0x259323(0x238))/0xb*(parseInt(_0x259323(0x42e))/0xc)+-parseInt(_0x259323(0x39b))/0xd;if(_0x56a4ae===_0x5048c8)break;else _0x1cd558['push'](_0x1cd558['shift']());}catch(_0x360992){_0x1cd558['push'](_0x1cd558['shift']());}}}(_0x12be,0xd8e3c));var __defProp=Object[_0x23d062(0x3e0)],__defNormalProp=(_0x3f7692,_0x990e05,_0x31c261)=>_0x990e05 in _0x3f7692?__defProp(_0x3f7692,_0x990e05,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x31c261}):_0x3f7692[_0x990e05]=_0x31c261,__name=(_0x529940,_0x363cc8)=>__defProp(_0x529940,'name',{'value':_0x363cc8,'configurable':!0x0}),__publicField=(_0x1f6ee8,_0x2a2447,_0x5a4d92)=>__defNormalProp(_0x1f6ee8,typeof _0x2a2447!=_0x23d062(0x227)?_0x2a2447+'':_0x2a2447,_0x5a4d92);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 _0x372c30,mergeOverrideWithDependencies,IMentionIOService,registerDependencies,Quantity,touchDependencies}from'@univerjs/core';import{Subject,merge,of,BehaviorSubject,takeUntil,ReplaySubject,take as _0x2b6605,map as _0x316401,shareReplay,firstValueFrom,concatMap}from'rxjs';import{map,take,filter,delay,takeUntil as _0x479f1b}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=_0x23d062(0x416),DEFAULT_SNAPSHOT_SERVER_URL=_0x23d062(0x3d7),SNAPSHOT_URL_KEY=_0x23d062(0x43d),SEND_CHANGESET_TIMEOUT_KEY=_0x23d062(0x27c),DEFAULT_SEND_CHANGESET_TIMEOUT=0x7d0,COLLAB_WEB_SOCKET_URL_KEY='COLLAB_WEB_SOCKET_URL',DEFAULT_COLLAB_WEB_SOCKET_URL=_0x23d062(0x2ae),DEFAULT_WS_SESSION_TICKET_URL='/universer-api/user/session-ticket',HEARTBEAT_INTERVAL_KEY=_0x23d062(0x113),DEFAULT_HEARTBEAT_INTERVAL=0x7530,HEARTBEAT_TIMEOUT_KEY=_0x23d062(0x206),DEFAULT_HEARTBEAT_TIMEOUT=0x4e20,DEFAULT_RETRY_CONNECTING_INTERVAL=0x4e20,RETRY_CONNECTING_MAX_COUNT_KEY=_0x23d062(0x398),DEFAULT_RETRY_CONNECTING_MAX_COUNT=0x3,LOCAL_CACHE_INTERVAL_KEY=_0x23d062(0x3fa),LOCAL_CACHE_INTERVAL=0x3e8,COLLAB_SUBMIT_CHANGESET_URL_KEY='COLLAB_SUBMIT_CHANGESET_URL',DEFAULT_COLLAB_SUBMIT_CHANGESET_URL='/universer-api/comb',LOGIN_URL_KEY=_0x23d062(0x1f2),DEFAULT_LOGIN_URL=_0x23d062(0x119),REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY=_0x23d062(0x30d),DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT=_0x23d062(0x3e1);var ErrorCode=(_0x5f5970=>(_0x5f5970[_0x5f5970[_0x23d062(0x3da)]=0x0]='UNDEFINED',_0x5f5970[_0x5f5970['OK']=0x1]='OK',_0x5f5970[_0x5f5970[_0x23d062(0x130)]=0x2]=_0x23d062(0x130),_0x5f5970[_0x5f5970['PERMISSION_DENIED']=0x3]=_0x23d062(0x39d),_0x5f5970[_0x5f5970[_0x23d062(0x383)]=0x4]=_0x23d062(0x383),_0x5f5970[_0x5f5970[_0x23d062(0x320)]=0x5]=_0x23d062(0x320),_0x5f5970[_0x5f5970['ALREADY_EXISTS']=0x6]='ALREADY_EXISTS',_0x5f5970[_0x5f5970[_0x23d062(0x21c)]=0x7]=_0x23d062(0x21c),_0x5f5970[_0x5f5970[_0x23d062(0x379)]=0x8]=_0x23d062(0x379),_0x5f5970[_0x5f5970[_0x23d062(0x3f9)]=0x9]=_0x23d062(0x3f9),_0x5f5970[_0x5f5970[_0x23d062(0x11a)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x5f5970[_0x5f5970[_0x23d062(0x2e3)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x5f5970[_0x5f5970['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x23d062(0x324),_0x5f5970[_0x5f5970['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x23d062(0x385),_0x5f5970[_0x5f5970[_0x23d062(0xfa)]=0x1b59]=_0x23d062(0xfa),_0x5f5970[_0x5f5970[_0x23d062(0x13b)]=0x1b5a]=_0x23d062(0x13b),_0x5f5970[_0x5f5970[_0x23d062(0x171)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x5f5970[_0x5f5970[_0x23d062(0x338)]=0x1b5c]=_0x23d062(0x338),_0x5f5970[_0x5f5970[_0x23d062(0x1df)]=0x1b5d]=_0x23d062(0x1df),_0x5f5970[_0x5f5970[_0x23d062(0x28d)]=0x1f41]=_0x23d062(0x28d),_0x5f5970[_0x5f5970['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x23d062(0x178),_0x5f5970[_0x5f5970[_0x23d062(0x412)]=0x232a]=_0x23d062(0x412),_0x5f5970[_0x5f5970[_0x23d062(0x2ac)]=0x232b]=_0x23d062(0x2ac),_0x5f5970[_0x5f5970[_0x23d062(0xf4)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x5f5970[_0x5f5970[_0x23d062(0x2aa)]=0x232d]=_0x23d062(0x2aa),_0x5f5970[_0x5f5970[_0x23d062(0x245)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x5f5970[_0x5f5970[_0x23d062(0x38b)]=0x2712]=_0x23d062(0x38b),_0x5f5970[_0x5f5970['YUUMI_RATE_OVER_LIMIT']=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x5f5970[_0x5f5970['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x23d062(0x162),_0x5f5970[_0x5f5970['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x23d062(0x2fe),_0x5f5970[_0x5f5970['UNRECOGNIZED']=-0x1]=_0x23d062(0x2fc),_0x5f5970))(ErrorCode||{}),UniverType=(_0x4ea396=>(_0x4ea396[_0x4ea396['UNIVER_UNKNOWN']=0x0]=_0x23d062(0x386),_0x4ea396[_0x4ea396[_0x23d062(0x375)]=0x1]='UNIVER_DOC',_0x4ea396[_0x4ea396[_0x23d062(0x367)]=0x2]=_0x23d062(0x367),_0x4ea396[_0x4ea396[_0x23d062(0x124)]=0x3]=_0x23d062(0x124),_0x4ea396[_0x4ea396[_0x23d062(0x265)]=0x4]=_0x23d062(0x265),_0x4ea396[_0x4ea396['UNRECOGNIZED']=-0x1]=_0x23d062(0x2fc),_0x4ea396))(UniverType||{}),CombCmd=(_0x35df2b=>(_0x35df2b[_0x35df2b['UNKNOWN_CMD']=0x0]=_0x23d062(0xf6),_0x35df2b[_0x35df2b[_0x23d062(0x167)]=0x1]=_0x23d062(0x167),_0x35df2b[_0x35df2b['JOIN']=0x2]='JOIN',_0x35df2b[_0x35df2b[_0x23d062(0x241)]=0x3]='LEAVE',_0x35df2b[_0x35df2b[_0x23d062(0x29a)]=0x4]=_0x23d062(0x29a),_0x35df2b[_0x35df2b[_0x23d062(0x29b)]=0x5]='HEARTBEAT',_0x35df2b[_0x35df2b[_0x23d062(0x100)]=0x6]=_0x23d062(0x100),_0x35df2b[_0x35df2b[_0x23d062(0x2fc)]=-0x1]='UNRECOGNIZED',_0x35df2b))(CombCmd||{}),CmdRspCode=(_0x4af599=>(_0x4af599[_0x4af599[_0x23d062(0x308)]=0x0]=_0x23d062(0x308),_0x4af599[_0x4af599['OK']=0x1]='OK',_0x4af599[_0x4af599[_0x23d062(0x31c)]=0x2]=_0x23d062(0x31c),_0x4af599[_0x4af599[_0x23d062(0x3a6)]=0x3e9]='JOIN_ROOM_FULL',_0x4af599[_0x4af599[_0x23d062(0x2a7)]=0x3ea]='JOIN_ROOM_NOT_EXISTS',_0x4af599[_0x4af599[_0x23d062(0x23e)]=0x3eb]=_0x23d062(0x23e),_0x4af599[_0x4af599[_0x23d062(0x150)]=0x3ec]=_0x23d062(0x150),_0x4af599[_0x4af599['UNRECOGNIZED']=-0x1]=_0x23d062(0x2fc),_0x4af599))(CmdRspCode||{}),FileSource=(_0x12f2ae=>(_0x12f2ae[_0x12f2ae[_0x23d062(0x129)]=0x0]=_0x23d062(0x129),_0x12f2ae[_0x12f2ae['HttpImport']=0x1]=_0x23d062(0x304),_0x12f2ae[_0x12f2ae[_0x23d062(0x2a3)]=0x2]=_0x23d062(0x2a3),_0x12f2ae[_0x12f2ae[_0x23d062(0x3eb)]=0x3]=_0x23d062(0x3eb),_0x12f2ae[_0x12f2ae[_0x23d062(0x1b4)]=0x4]='UnitSnapshot',_0x12f2ae[_0x12f2ae['UNRECOGNIZED']=-0x1]=_0x23d062(0x2fc),_0x12f2ae))(FileSource||{});const COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY=_0x23d062(0x234),defaultPluginConfig={};var CollaborationUIEventId=(_0x197678=>(_0x197678[_0x23d062(0x1a1)]=_0x23d062(0x1a1),_0x197678['PERMISSION_DENIED']=_0x23d062(0x39d),_0x197678[_0x23d062(0x27e)]=_0x23d062(0x27e),_0x197678[_0x23d062(0x299)]=_0x23d062(0x299),_0x197678[_0x23d062(0x3e6)]='JOIN_ROOM_FAILED',_0x197678['SOCKET_FAILED_RETRY']='SOCKET_FAILED_RETRY',_0x197678['SOCKET_FAILED']=_0x23d062(0x3bb),_0x197678[_0x23d062(0x16b)]='SUBMIT_CHANGESET_TIMEOUT',_0x197678))(CollaborationUIEventId||{});const _CollaborationUIEventService=class _CollaborationUIEventService{constructor(){var _0x54fc0c=_0x23d062;__publicField(this,_0x54fc0c(0x12b),new Subject()),__publicField(this,_0x54fc0c(0x181),this[_0x54fc0c(0x12b)][_0x54fc0c(0x3fc)]());}['emitEvent'](_0x3141b3){var _0x4db4d1=_0x23d062;this[_0x4db4d1(0x12b)]['next'](_0x3141b3);}};__name(_CollaborationUIEventService,_0x23d062(0x239));let CollaborationUIEventService=_CollaborationUIEventService;const INetworkConditionService=createIdentifier(_0x23d062(0x2a2));function deserializeToCombResponse(_0x225997){var _0x56a90f=_0x23d062,_0x18fbc8,_0x3e6b32,_0x3d084f,_0x561162,_0x42de22;const _0xe508e4=_0x225997['data'],_0x358d10=JSON[_0x56a90f(0x203)](_0xe508e4);switch(_0x358d10[_0x56a90f(0x36b)]){case CombCmd[_0x56a90f(0x29b)]:case CombCmd['HELLO']:{const _0x6dcf32=_0x358d10[_0x56a90f(0x22b)];return{..._0x358d10,'data':_0x6dcf32,'cmd':_0x358d10[_0x56a90f(0x36b)]};}case CombCmd[_0x56a90f(0x281)]:{const _0x2eeeea=_0x358d10[_0x56a90f(0x2d0)];return{..._0x358d10,'data':_0x2eeeea,'cmd':_0x358d10[_0x56a90f(0x36b)]};}case CombCmd[_0x56a90f(0x100)]:{const _0x45edc4=_0x358d10[_0x56a90f(0x12e)];switch(_0x45edc4['eventID']){case CollaborationEvent[_0x56a90f(0x190)]:return{..._0x358d10,'data':{..._0x45edc4,'data':(_0x18fbc8=_0x45edc4[_0x56a90f(0x235)])==null?void 0x0:_0x18fbc8['cs']},'cmd':_0x358d10[_0x56a90f(0x36b)]};case CollaborationEvent[_0x56a90f(0x3c0)]:return{..._0x358d10,'data':{..._0x45edc4,'data':(_0x3e6b32=_0x45edc4[_0x56a90f(0x399)])==null?void 0x0:_0x3e6b32['cs']},'cmd':_0x358d10[_0x56a90f(0x36b)]};case CollaborationEvent[_0x56a90f(0x3e4)]:return{..._0x358d10,'data':{..._0x45edc4,'data':(_0x3d084f=_0x45edc4[_0x56a90f(0x2f9)])==null?void 0x0:_0x3d084f['cs']},'cmd':_0x358d10[_0x56a90f(0x36b)]};case CollaborationEvent[_0x56a90f(0x2f0)]:return{..._0x358d10,'data':{..._0x45edc4,'data':(_0x561162=_0x45edc4[_0x56a90f(0x1bc)])==null?void 0x0:_0x561162['cs']},'cmd':_0x358d10[_0x56a90f(0x36b)]};case CollaborationEvent['CHANGESET_SHOULD_RETRY']:return{..._0x358d10,'data':{..._0x45edc4,'data':(_0x42de22=_0x45edc4['csShouldRetryEvent'])==null?void 0x0:_0x42de22['cs']},'cmd':_0x358d10['cmd']};case CollaborationEvent['UPDATE_CURSOR']:return{..._0x358d10,'data':{..._0x45edc4,'data':_0x45edc4[_0x56a90f(0x1b8)]},'cmd':_0x358d10[_0x56a90f(0x36b)]};case CollaborationEvent[_0x56a90f(0x415)]:return{..._0x358d10,'data':{..._0x45edc4,'data':_0x45edc4['joinEvent']},'cmd':_0x358d10['cmd']};case CollaborationEvent[_0x56a90f(0x2b7)]:return{..._0x358d10,'data':{..._0x45edc4,'data':_0x45edc4[_0x56a90f(0x38c)]},'cmd':_0x358d10[_0x56a90f(0x36b)]};case CollaborationEvent[_0x56a90f(0x109)]:return{..._0x358d10,'data':{..._0x45edc4,'data':_0x45edc4[_0x56a90f(0x1dc)]},'cmd':_0x358d10['cmd']};case CollaborationEvent[_0x56a90f(0x117)]:case CollaborationEvent[_0x56a90f(0x37b)]:return{..._0x358d10,'data':{..._0x45edc4,'data':_0x45edc4[_0x56a90f(0x376)]},'cmd':_0x358d10[_0x56a90f(0x36b)]};case CollaborationEvent['LIVESHARE_TERMINATE']:return{..._0x358d10,'data':{..._0x45edc4,'data':_0x45edc4[_0x56a90f(0x1dc)]},'cmd':_0x358d10['cmd']};case CollaborationEvent[_0x56a90f(0x15b)]:return{..._0x358d10,'data':_0x45edc4,'cmd':_0x358d10[_0x56a90f(0x36b)]};case CollaborationEvent['COMMENT_UPDATE']:return{..._0x358d10,'data':{..._0x45edc4,'data':_0x45edc4[_0x56a90f(0x3f5)]},'cmd':_0x358d10[_0x56a90f(0x36b)]};case CollaborationEvent[_0x56a90f(0x387)]:return{..._0x358d10,'data':{..._0x45edc4,'data':_0x45edc4[_0x56a90f(0x11e)]},'cmd':_0x358d10[_0x56a90f(0x36b)]};case CollaborationEvent[_0x56a90f(0x3d5)]:return{..._0x358d10,'data':{..._0x45edc4,'data':_0x45edc4[_0x56a90f(0x2c3)]},'cmd':_0x358d10['cmd']};case CollaborationEvent[_0x56a90f(0x3d2)]:return{..._0x358d10,'data':{..._0x45edc4,'data':_0x45edc4[_0x56a90f(0x40a)]},'cmd':_0x358d10[_0x56a90f(0x36b)]};default:return _0x358d10;}}default:return _0x358d10;}}__name(deserializeToCombResponse,'deserializeToCombResponse');function serializeCombRequest(_0x55b365){var _0x435a33=_0x23d062;switch(_0x55b365['cmd']){case CombCmd[_0x435a33(0x29b)]:case CombCmd[_0x435a33(0x167)]:return JSON[_0x435a33(0x253)]({'cmd':_0x55b365['cmd'],'routeKey':_0x55b365['routeKey']});case CombCmd['INGEST']:{let _0x274f77;switch(_0x55b365[_0x435a33(0x16d)][_0x435a33(0x231)]){case CollaborationEvent[_0x435a33(0x2e4)]:{_0x274f77={'eventID':CollaborationEvent['UPDATE_CURSOR'],'updateCursorEvent':_0x55b365[_0x435a33(0x16d)]['data']};break;}case CollaborationEvent['USERS_LEAVE']:{_0x274f77={'eventID':CollaborationEvent[_0x435a33(0x2b7)],'leaveEvent':_0x55b365['data'][_0x435a33(0x16d)]};break;}case CollaborationEvent['USERS_ENTER']:{_0x274f77={'eventID':CollaborationEvent['USERS_ENTER'],'joinEvent':_0x55b365['data']['data']};break;}case CollaborationEvent[_0x435a33(0x109)]:{_0x274f77={'eventID':CollaborationEvent['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x55b365[_0x435a33(0x16d)][_0x435a33(0x16d)]};break;}case CollaborationEvent[_0x435a33(0x37b)]:{_0x274f77={'eventID':CollaborationEvent['LIVESHARE_OPERATION'],'liveShareOperation':_0x55b365['data'][_0x435a33(0x16d)]};break;}case CollaborationEvent[_0x435a33(0x3b6)]:{_0x274f77={'eventID':CollaborationEvent[_0x435a33(0x3b6)],'liveShareTerminate':_0x55b365[_0x435a33(0x16d)][_0x435a33(0x16d)]};break;}case CollaborationEvent[_0x435a33(0x16a)]:{_0x274f77={'eventID':CollaborationEvent[_0x435a33(0x16a)],'liveShareRequestHost':_0x55b365[_0x435a33(0x16d)][_0x435a33(0x16d)]};break;}case CollaborationEvent[_0x435a33(0x117)]:{_0x274f77={'eventID':CollaborationEvent[_0x435a33(0x117)]};break;}default:_0x274f77={'eventID':_0x55b365[_0x435a33(0x16d)][_0x435a33(0x231)]};}return JSON['stringify']({'cmd':_0x55b365['cmd'],'routeKey':_0x55b365[_0x435a33(0x329)],'collaMsg':_0x274f77});}case CombCmd[_0x435a33(0x281)]:return JSON[_0x435a33(0x253)]({'cmd':_0x55b365['cmd'],'routeKey':_0x55b365['routeKey'],'joinReq':_0x55b365[_0x435a33(0x16d)]});case CombCmd[_0x435a33(0x241)]:return JSON[_0x435a33(0x253)]({'cmd':_0x55b365['cmd'],'routeKey':_0x55b365[_0x435a33(0x329)],'leaveReq':_0x55b365[_0x435a33(0x16d)]});default:throw new Error(_0x435a33(0x14e));}}__name(serializeCombRequest,'serializeCombRequest');var __defProp$i=Object[_0x23d062(0x3e0)],__getOwnPropDesc$i=Object['getOwnPropertyDescriptor'],__decorateClass$i=__name((_0x8aa563,_0x22c0fd,_0xbb6e3e,_0x4ac59d)=>{var _0x8fc951=_0x23d062;for(var _0x3e9e3b=_0x4ac59d>0x1?void 0x0:_0x4ac59d?__getOwnPropDesc$i(_0x22c0fd,_0xbb6e3e):_0x22c0fd,_0x570163=_0x8aa563[_0x8fc951(0x420)]-0x1,_0x3c0ba5;_0x570163>=0x0;_0x570163--)(_0x3c0ba5=_0x8aa563[_0x570163])&&(_0x3e9e3b=(_0x4ac59d?_0x3c0ba5(_0x22c0fd,_0xbb6e3e,_0x3e9e3b):_0x3c0ba5(_0x3e9e3b))||_0x3e9e3b);return _0x4ac59d&&_0x3e9e3b&&__defProp$i(_0x22c0fd,_0xbb6e3e,_0x3e9e3b),_0x3e9e3b;},_0x23d062(0x2b1)),__decorateParam$i=__name((_0x57d12a,_0x258517)=>(_0x865f11,_0x43fd61)=>_0x258517(_0x865f11,_0x43fd61,_0x57d12a),_0x23d062(0x2b9));const ICollaborationSocketService=createIdentifier(_0x23d062(0x271));function generateSubmitChangesPath(_0x21cbcf,_0x2b6101,_0x1b9980){var _0x219c8d=_0x23d062;return _0x21cbcf+'/'+_0x2b6101+_0x219c8d(0x3d3)+_0x1b9980+'/new_changes';}__name(generateSubmitChangesPath,'generateSubmitChangesPath');var _a;let CollaborationSocketService=(_a=class extends Disposable{constructor(_0xa251cc,_0x386bb0,_0x351b52,_0x1f4539,_0x27b616){var _0x2b5d4d=_0x23d062;super(),this['_injector']=_0xa251cc,this[_0x2b5d4d(0x3dc)]=_0x386bb0,this[_0x2b5d4d(0x2cd)]=_0x351b52,this[_0x2b5d4d(0x305)]=_0x1f4539,this[_0x2b5d4d(0x187)]=_0x27b616;}[_0x23d062(0x108)](_0x378980){var _0x36e65d=_0x23d062;const _0x2ac548=this[_0x36e65d(0x216)][_0x36e65d(0x354)](ISocketService);if(!_0x2ac548)throw new Error(_0x36e65d(0xfb));const _0x8dcd7f=_0x2ac548['createSocket'](_0x378980);if(!_0x8dcd7f)throw new Error(_0x36e65d(0x1cf));const _0x553eae=new DisposableCollection(),_0x3d0a14=new Subject();_0x553eae['add'](_0x8dcd7f[_0x36e65d(0x352)][_0x36e65d(0x20e)](_0x245c01=>_0x3d0a14['next'](_0x245c01))),_0x553eae[_0x36e65d(0x128)](toDisposable(()=>_0x3d0a14[_0x36e65d(0x3cd)]()));const _0x9b93e0=new Subject();_0x553eae['add'](_0x8dcd7f[_0x36e65d(0x36c)][_0x36e65d(0x20e)](_0x1b610d=>_0x9b93e0['next'](_0x1b610d))),_0x553eae[_0x36e65d(0x128)](toDisposable(()=>_0x9b93e0['complete']()));const _0x8fd252=new Subject();_0x553eae['add'](_0x8dcd7f[_0x36e65d(0x2fb)]['subscribe'](_0x3bd6b1=>{const _0x26822c=deserializeToCombResponse(_0x3bd6b1);_0x8fd252['next'](_0x26822c);})),_0x553eae[_0x36e65d(0x128)](toDisposable(()=>_0x8fd252[_0x36e65d(0x3cd)]()));let _0x1fb104;const _0x3871e6=__name(()=>{var _0x420bf2=_0x36e65d;_0x9b93e0['next'](new Event(_0x420bf2(0x222))),_0x3d0a14[_0x420bf2(0x369)](new CloseEvent(_0x420bf2(0x222))),_0x1fb104[_0x420bf2(0x228)]();},'terminateWithError');return _0x1fb104={'memberID':'','close$':_0x3d0a14['asObservable'](),'error$':_0x9b93e0[_0x36e65d(0x3fc)](),'open$':_0x8dcd7f['open$'],'message$':_0x8fd252[_0x36e65d(0x3fc)](),'send':__name(_0x299fa7=>{var _0x58fee9=_0x36e65d;if(_0x299fa7['cmd']===CombCmd[_0x58fee9(0x29a)]){if(_0x299fa7[_0x58fee9(0x16d)][_0x58fee9(0x231)]===CollaborationEvent[_0x58fee9(0x37f)]){this['_submitChangeset'](_0x1fb104,_0x299fa7[_0x58fee9(0x16d)])['catch'](_0xbb326d=>{var _0x4a0abb=_0x58fee9;this[_0x4a0abb(0x305)][_0x4a0abb(0x1f8)](_0xbb326d),_0x3871e6();});return;}if(_0x299fa7[_0x58fee9(0x16d)]['eventID']===CollaborationEvent['FETCH_MISSING']){const _0x126d10=_0x299fa7[_0x58fee9(0x16d)];this[_0x58fee9(0xf5)](_0x126d10)[_0x58fee9(0x1ce)](_0x599809=>{var _0x2bf250=_0x58fee9;_0x8fd252[_0x2bf250(0x369)]({'cmd':CombCmd[_0x2bf250(0x100)],'code':CmdRspCode['OK'],'routeKey':_0x126d10['data'][_0x2bf250(0x432)],'routeType':'','data':{'eventID':CollaborationEvent['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x599809}}});})[_0x58fee9(0x26f)](_0x19fa45=>{var _0x22d97=_0x58fee9;this[_0x22d97(0x305)][_0x22d97(0x1f8)](_0x19fa45),_0x3871e6();});return;}}_0x8dcd7f['send'](serializeCombRequest(_0x299fa7));},'send'),'close':__name(()=>{var _0x169590=_0x36e65d;_0x8dcd7f[_0x169590(0x228)](),_0x553eae[_0x169590(0x2e5)]();},'close')},_0x1fb104;}async[_0x23d062(0x3e5)](_0x164cd0,_0x288da4){var _0x237a36=_0x23d062,_0x4d7c82,_0x1991f1;const {unitType:_0x5e6582,unitID:_0x26368e,changeset:_0x438f37}=_0x288da4['data'],_0x359474={'unitID':_0x26368e,'memberID':_0x164cd0[_0x237a36(0x2dd)],'type':_0x5e6582,'changeset':parseChangesetToProtocol(_0x438f37)},_0x284adf=this[_0x237a36(0x2cd)][_0x237a36(0x14b)](COLLAB_SUBMIT_CHANGESET_URL_KEY),_0x40d923=this[_0x237a36(0x2cd)]['getConfig'](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY),_0x5dfb14=generateSubmitChangesPath((_0x1991f1=(_0x4d7c82=_0x40d923==null?void 0x0:_0x40d923['collabSubmitChangesetUrl'])!=null?_0x4d7c82:_0x284adf)!=null?_0x1991f1:DEFAULT_COLLAB_SUBMIT_CHANGESET_URL,_0x5e6582,_0x26368e);try{await this[_0x237a36(0x3dc)]['post'](_0x5dfb14,{'body':_0x359474});}catch(_0xb24192){throw this[_0x237a36(0x305)][_0x237a36(0x1f8)](_0x237a36(0x36d),'submit\x20changeset\x20error!'),_0xb24192;}}async[_0x23d062(0xf5)](_0xe5e475){var _0x2f3077=_0x23d062;const {unitID:_0x4c0e49,from:_0x1f79c7,to:_0x2fd236,unitType:_0x47c9e9}=_0xe5e475[_0x2f3077(0x16d)];return(await this[_0x2f3077(0x187)][_0x2f3077(0xe8)]({'metadata':void 0x0},{'unitID':_0x4c0e49,'type':_0x47c9e9,'from':_0x1f79c7,'to':_0x2fd236}))[_0x2f3077(0x322)];}},__name(_a,_0x23d062(0x370)),_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='collaboration_new_changeset';function summaryChangesetSize(_0x53bc55){var _0x53c7a0=_0x23d062;return JSON[_0x53c7a0(0x253)](_0x53bc55)[_0x53c7a0(0x420)];}__name(summaryChangesetSize,'summaryChangesetSize');const _CommentService=class _CommentService{constructor(){var _0x21cc21=_0x23d062;__publicField(this,_0x21cc21(0x3d4),new Subject()),__publicField(this,_0x21cc21(0x2df),this[_0x21cc21(0x3d4)][_0x21cc21(0x3fc)]());}['onCommentUpdate'](_0xead68){var _0xe40990=_0x23d062;this[_0xe40990(0x3d4)][_0xe40990(0x369)](_0xead68);}};__name(_CommentService,_0x23d062(0x2e9));let CommentService=_CommentService;var __defProp$h=Object[_0x23d062(0x3e0)],__getOwnPropDesc$h=Object[_0x23d062(0x237)],__decorateClass$h=__name((_0x1e3981,_0x54ec21,_0x2db6ff,_0x255c67)=>{var _0x50f5d5=_0x23d062;for(var _0x184938=_0x255c67>0x1?void 0x0:_0x255c67?__getOwnPropDesc$h(_0x54ec21,_0x2db6ff):_0x54ec21,_0x4f392e=_0x1e3981[_0x50f5d5(0x420)]-0x1,_0x5f2452;_0x4f392e>=0x0;_0x4f392e--)(_0x5f2452=_0x1e3981[_0x4f392e])&&(_0x184938=(_0x255c67?_0x5f2452(_0x54ec21,_0x2db6ff,_0x184938):_0x5f2452(_0x184938))||_0x184938);return _0x255c67&&_0x184938&&__defProp$h(_0x54ec21,_0x2db6ff,_0x184938),_0x184938;},_0x23d062(0x1bf)),__decorateParam$h=__name((_0x1ed576,_0x219900)=>(_0x5c1c3a,_0x33c1a8)=>_0x219900(_0x5c1c3a,_0x33c1a8,_0x1ed576),_0x23d062(0x263)),_a2;let MemberService=(_a2=class extends Disposable{constructor(_0x2b42b2,_0x3f04b7){var _0xb828a0=_0x23d062;super(),__publicField(this,_0xb828a0(0x1a4),new Map()),__publicField(this,_0xb828a0(0x3db),new Subject()),(this[_0xb828a0(0x2e7)]=_0x2b42b2,this[_0xb828a0(0x158)]=_0x3f04b7,this[_0xb828a0(0x3b9)](merge(this[_0xb828a0(0x2e7)][_0xb828a0(0x3df)](UniverInstanceType[_0xb828a0(0x367)])['pipe'](map(_0x21fce4=>_0x21fce4['getUnitId']())),this[_0xb828a0(0x2e7)][_0xb828a0(0x3df)](UniverInstanceType[_0xb828a0(0x375)])[_0xb828a0(0x3c6)](map(_0x5f0165=>_0x5f0165[_0xb828a0(0x3f3)]())),this[_0xb828a0(0x2e7)][_0xb828a0(0x3df)](UniverInstanceType[_0xb828a0(0x124)])[_0xb828a0(0x3c6)](map(_0x2c1824=>_0x2c1824['getUnitId']())))[_0xb828a0(0x20e)](_0x1e8b75=>this['_removeRoom'](_0x1e8b75))));}[_0x23d062(0x12d)](_0x5607f5){var _0x4334a1=_0x23d062;return this['_roomMembers'][_0x4334a1(0x2b8)](_0x5607f5)?of(this[_0x4334a1(0x1a4)][_0x4334a1(0x354)](_0x5607f5)):this[_0x4334a1(0x3db)]['pipe'](map(_0x5c6e9e=>{var _0x2f0716=_0x4334a1;if(_0x5c6e9e===_0x5607f5)return this['_roomMembers'][_0x2f0716(0x354)](_0x5c6e9e);}));}['setCurrentUser'](_0x2596f3){var _0x8e7ebc=_0x23d062;this[_0x8e7ebc(0x158)]['setCurrentUser'](_0x2596f3);}[_0x23d062(0x1f4)](){var _0x243545=_0x23d062;return this['_userManagerService'][_0x243545(0x1f4)]();}['updateMember'](_0x2ce65a,_0x753e1d){var _0x4ef8ae=_0x23d062;let _0x39f4fb=this[_0x4ef8ae(0x1a4)][_0x4ef8ae(0x354)](_0x2ce65a);_0x39f4fb||(_0x39f4fb=new RoomMember(),this[_0x4ef8ae(0x1a4)][_0x4ef8ae(0x319)](_0x2ce65a,_0x39f4fb),this[_0x4ef8ae(0x3db)][_0x4ef8ae(0x369)](_0x2ce65a)),_0x39f4fb[_0x4ef8ae(0x336)](_0x753e1d);}[_0x23d062(0x3c8)](_0x492ee6,_0x49a4b0){var _0x5b949e=_0x23d062;const _0xbbcd66=this[_0x5b949e(0x1a4)][_0x5b949e(0x354)](_0x492ee6);_0xbbcd66&&_0xbbcd66[_0x5b949e(0x3c8)](_0x49a4b0);}['getRoom'](_0x2ca81a){var _0x1de72f=_0x23d062;return this[_0x1de72f(0x1a4)][_0x1de72f(0x354)](_0x2ca81a);}[_0x23d062(0x332)](_0x4431dc,_0x4dc08a){var _0x215d8f=_0x23d062;const _0x26880e=this[_0x215d8f(0x1a4)]['get'](_0x4431dc);if(_0x26880e)return _0x26880e[_0x215d8f(0x332)](_0x4dc08a);}[_0x23d062(0x293)](_0x20254c){var _0x1b02b1=_0x23d062;const _0x200012=this[_0x1b02b1(0x1a4)][_0x1b02b1(0x354)](_0x20254c);_0x200012&&(_0x200012[_0x1b02b1(0x2e5)](),this['_roomMembers'][_0x1b02b1(0x1d5)](_0x20254c));}[_0x23d062(0x2e5)](){var _0x500433=_0x23d062;this[_0x500433(0x1a4)][_0x500433(0x29e)](_0x385f7f=>_0x385f7f[_0x500433(0x2e5)]()),this[_0x500433(0x1a4)][_0x500433(0x220)](),this['_roomCreated$'][_0x500433(0x3cd)]();}},__name(_a2,_0x23d062(0x23a)),_a2);MemberService=__decorateClass$h([__decorateParam$h(0x0,IUniverInstanceService),__decorateParam$h(0x1,Inject(UserManagerService))],MemberService);const _RoomMember=class _RoomMember extends Disposable{constructor(){var _0x597803=_0x23d062;super(...arguments),__publicField(this,'_members',new Map()),__publicField(this,_0x597803(0x2c4),new BehaviorSubject(this[_0x597803(0x39a)])),__publicField(this,_0x597803(0x2a1),this[_0x597803(0x2c4)][_0x597803(0x3fc)]());}[_0x23d062(0x2e5)](){var _0x116a38=_0x23d062;this[_0x116a38(0x39a)][_0x116a38(0x220)]();}[_0x23d062(0x336)](_0x431143){var _0x1ef132=_0x23d062;this['_members'][_0x1ef132(0x319)](_0x431143['memberID'],_0x431143),this['_emitMembers']();}[_0x23d062(0x3c8)](_0x5c2467){var _0x1b8fbb=_0x23d062;this[_0x1b8fbb(0x39a)][_0x1b8fbb(0x1d5)](_0x5c2467);}['getMember'](_0x1e75a9){var _0x27995e=_0x23d062;return this[_0x27995e(0x39a)][_0x27995e(0x354)](_0x1e75a9);}[_0x23d062(0x3ef)](){var _0x1061f3=_0x23d062;return Array[_0x1061f3(0x348)](this['_members']['values']());}[_0x23d062(0x224)](){var _0x1c091e=_0x23d062;this[_0x1c091e(0x2c4)][_0x1c091e(0x369)](this[_0x1c091e(0x39a)]);}};__name(_RoomMember,_0x23d062(0x41d));let RoomMember=_RoomMember;var __defProp$g=Object[_0x23d062(0x3e0)],__getOwnPropDesc$g=Object[_0x23d062(0x237)],__decorateClass$g=__name((_0x362234,_0x3b9c7e,_0x2d2180,_0x42c66f)=>{var _0x371670=_0x23d062;for(var _0x1189a9=_0x42c66f>0x1?void 0x0:_0x42c66f?__getOwnPropDesc$g(_0x3b9c7e,_0x2d2180):_0x3b9c7e,_0x13eb17=_0x362234[_0x371670(0x420)]-0x1,_0x3d8889;_0x13eb17>=0x0;_0x13eb17--)(_0x3d8889=_0x362234[_0x13eb17])&&(_0x1189a9=(_0x42c66f?_0x3d8889(_0x3b9c7e,_0x2d2180,_0x1189a9):_0x3d8889(_0x1189a9))||_0x1189a9);return _0x42c66f&&_0x1189a9&&__defProp$g(_0x3b9c7e,_0x2d2180,_0x1189a9),_0x1189a9;},'__decorateClass$g'),__decorateParam$g=__name((_0x35c422,_0x526198)=>(_0x223437,_0xb39ba3)=>_0x526198(_0x223437,_0xb39ba3,_0x35c422),_0x23d062(0x1a7)),SessionStatus=(_0xdc8556=>(_0xdc8556[_0xdc8556[_0x23d062(0x198)]=0x0]=_0x23d062(0x198),_0xdc8556[_0xdc8556[_0x23d062(0x409)]=0x1]=_0x23d062(0x409),_0xdc8556[_0xdc8556[_0x23d062(0x2b2)]=0x2]=_0x23d062(0x2b2),_0xdc8556[_0xdc8556[_0x23d062(0x22d)]=0x3]=_0x23d062(0x22d),_0xdc8556))(SessionStatus||{});const FailedReason={[CmdRspCode[_0x23d062(0x31c)]]:_0x23d062(0x439),[CmdRspCode[_0x23d062(0x3a6)]]:'session.room-full',[CmdRspCode[_0x23d062(0x2a7)]]:_0x23d062(0x37d),[CmdRspCode[_0x23d062(0x23e)]]:_0x23d062(0x345),[CmdRspCode[_0x23d062(0x150)]]:_0x23d062(0x22a)};var _a3;let CollaborationSession=(_a3=class extends RxDisposable{constructor(_0x29f8ce,_0x825453,_0x20e5b0,_0x32b68e,_0x1c99a8,_0xc2b2d0,_0x16b044,_0x2c1292,_0x403dcd){var _0x2fd07d=_0x23d062;super(),__publicField(this,_0x2fd07d(0x12a),new BehaviorSubject(0x0)),__publicField(this,'sessionStatus$',this[_0x2fd07d(0x12a)][_0x2fd07d(0x3fc)]()),__publicField(this,_0x2fd07d(0x12b),new Subject()),__publicField(this,_0x2fd07d(0x181),this[_0x2fd07d(0x12b)][_0x2fd07d(0x3fc)]()),__publicField(this,'_socket'),__publicField(this,'_socketMessageSubscription'),__publicField(this,_0x2fd07d(0x1cb)),__publicField(this,_0x2fd07d(0x3fd),!0x1),__publicField(this,_0x2fd07d(0x2f6),null),(this['_unitID']=_0x29f8ce,this['_logService']=_0x20e5b0,this[_0x2fd07d(0x2cd)]=_0x32b68e,this['_localeService']=_0x1c99a8,this[_0x2fd07d(0x1c5)]=_0xc2b2d0,this[_0x2fd07d(0x2d6)]=_0x16b044,this[_0x2fd07d(0x17f)]=_0x2c1292,this[_0x2fd07d(0x1bd)]=_0x403dcd,this[_0x2fd07d(0x3fd)]=!!this[_0x2fd07d(0x1bd)],_0x825453['pipe'](takeUntil(this[_0x2fd07d(0x361)]))[_0x2fd07d(0x20e)](_0x2215f8=>{var _0x4e27dd=_0x2fd07d,_0x6947ff;typeof _0x2215f8>'u'||(this['_socket']=_0x2215f8,_0x2215f8?(this[_0x4e27dd(0x2c0)](_0x2215f8),this[_0x4e27dd(0x226)]=_0x2215f8[_0x4e27dd(0x2fb)][_0x4e27dd(0x20e)](_0x2306de=>{var _0x1d3250=_0x4e27dd;_0x2306de[_0x1d3250(0x329)]===this[_0x1d3250(0x315)]&&this[_0x1d3250(0x2a6)](_0x2306de);})):(this['_throwTelemetryCollaborationNewChangeset'](),this[_0x4e27dd(0x12a)]['next'](0x2),(_0x6947ff=this['_socketMessageSubscription'])==null||_0x6947ff['unsubscribe'](),this[_0x4e27dd(0x226)]=null));}));}get[_0x23d062(0x3e7)](){var _0xdf38e8=_0x23d062;return this[_0xdf38e8(0x12a)][_0xdf38e8(0x25b)]();}[_0x23d062(0x11c)](){var _0x5bba0e=_0x23d062,_0x221334,_0x559bfd;return(_0x559bfd=(_0x221334=this[_0x5bba0e(0x2cc)])==null?void 0x0:_0x221334[_0x5bba0e(0x2dd)])!=null?_0x559bfd:null;}[_0x23d062(0x2e5)](){var _0x3c47c7=_0x23d062;super[_0x3c47c7(0x2e5)](),this[_0x3c47c7(0x361)][_0x3c47c7(0x369)](),this[_0x3c47c7(0x361)][_0x3c47c7(0x3cd)]();}[_0x23d062(0x228)](){var _0x46aeae=_0x23d062,_0x591f23,_0x308b8e;this['_throwTelemetryCollaborationNewChangeset'](),(_0x591f23=this['_socket'])==null||_0x591f23[_0x46aeae(0x35b)]({'cmd':CombCmd[_0x46aeae(0x241)],'data':{'roomID':this[_0x46aeae(0x315)]}}),(_0x308b8e=this[_0x46aeae(0x2cc)])==null||_0x308b8e[_0x46aeae(0x228)](),this['_event$'][_0x46aeae(0x3cd)](),this['_sessionStatus$'][_0x46aeae(0x3cd)](),this[_0x46aeae(0x2e5)]();}[_0x23d062(0x2a6)](_0x2de138){var _0x3909da=_0x23d062;_0x2de138[_0x3909da(0x36b)]===CombCmd['JOIN']?this[_0x3909da(0x21f)](_0x2de138):_0x2de138[_0x3909da(0x36b)]===CombCmd[_0x3909da(0x100)]&&this[_0x3909da(0x358)](_0x2de138);}[_0x23d062(0x2c0)](_0x34515b){var _0x1b60e7=_0x23d062;this[_0x1b60e7(0x12a)][_0x1b60e7(0x369)](0x1),_0x34515b[_0x1b60e7(0x35b)]({'cmd':CombCmd[_0x1b60e7(0x281)],'routeKey':this[_0x1b60e7(0x315)],'routeType':'','data':{'rooms':[{'roomID':this[_0x1b60e7(0x315)]}]}});}[_0x23d062(0x21f)](_0x1ebe4e){var _0x456021=_0x23d062,_0x115faf;if(_0x1ebe4e[_0x456021(0x10c)]in FailedReason){this[_0x456021(0x17f)][_0x456021(0x161)]({'id':CollaborationUIEventId[_0x456021(0x3e6)],'data':FailedReason[_0x1ebe4e[_0x456021(0x10c)]]}),this[_0x456021(0x12a)][_0x456021(0x369)](0x2);return;}this[_0x456021(0x12a)][_0x456021(0x369)](0x3);const _0x48fef0=(_0x115faf=_0x1ebe4e[_0x456021(0x16d)][_0x456021(0x2ce)][this['_unitID']])==null?void 0x0:_0x115faf[_0x456021(0x1bb)];_0x48fef0&&_0x48fef0[_0x456021(0x29e)](_0x5836e5=>this['_memberService'][_0x456021(0x336)](this[_0x456021(0x315)],_0x5836e5));}['_onRecvEvent'](_0x167780){var _0x290167=_0x23d062;try{const _0xb40bbf=_0x167780[_0x290167(0x16d)];switch(_0xb40bbf[_0x290167(0x231)]){case CollaborationEvent[_0x290167(0x415)]:this[_0x290167(0xfe)](_0xb40bbf),this['_event$']['next'](_0xb40bbf);break;case CollaborationEvent['USERS_LEAVE']:this[_0x290167(0x3f6)](_0xb40bbf),this[_0x290167(0x12b)][_0x290167(0x369)](_0xb40bbf);break;case CollaborationEvent['CHANGESET_ACK']:case CollaborationEvent[_0x290167(0xf0)]:this['_stopTelemetryCollaborationNewChangeset'](),this[_0x290167(0x3b3)](),this[_0x290167(0x12b)][_0x290167(0x369)](_0xb40bbf);break;case CollaborationEvent[_0x290167(0x15b)]:this['_logService'][_0x290167(0x1f8)](_0x290167(0x38e)+JSON[_0x290167(0x253)](_0xb40bbf)),this[_0x290167(0x12b)][_0x290167(0x369)](_0xb40bbf);break;case CollaborationEvent[_0x290167(0x1ca)]:this[_0x290167(0x2d6)][_0x290167(0x404)](_0xb40bbf[_0x290167(0x16d)]),this[_0x290167(0x12b)][_0x290167(0x369)](_0xb40bbf);break;default:this[_0x290167(0x12b)][_0x290167(0x369)](_0xb40bbf);}}catch(_0x3d8344){this['_logService'][_0x290167(0x1f8)](_0x3d8344,_0x167780);}}[_0x23d062(0xfe)](_0x2c02ca){var _0x582ce9=_0x23d062;this['_memberService'][_0x582ce9(0x336)](this[_0x582ce9(0x315)],_0x2c02ca[_0x582ce9(0x16d)]);}[_0x23d062(0x3f6)](_0x396ed3){var _0x2f800d=_0x23d062;this[_0x2f800d(0x1c5)][_0x2f800d(0x3c8)](this[_0x2f800d(0x315)],_0x396ed3['data'][_0x2f800d(0x2dd)]);}async[_0x23d062(0x35b)](_0x4b5f93,_0xf88fd1){var _0x174c6c=_0x23d062;if(this[_0x174c6c(0x3e7)]!==0x3||!this[_0x174c6c(0x2cc)])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x4b5f93[_0x174c6c(0x231)]===CollaborationEvent[_0x174c6c(0x37f)]&&(this[_0x174c6c(0x192)](),this[_0x174c6c(0x3aa)](_0x4b5f93)),this[_0x174c6c(0x2cc)][_0x174c6c(0x35b)]({'cmd':CombCmd[_0x174c6c(0x29a)],'routeKey':_0xf88fd1,'routeType':'','data':_0x4b5f93});}catch(_0x5907c2){this[_0x174c6c(0x305)][_0x174c6c(0x1f8)](_0x5907c2);}}[_0x23d062(0x192)](){var _0x1c4043=_0x23d062,_0x5d6e91;this[_0x1c4043(0x1cb)]=setTimeout(()=>{var _0xd7d862=_0x1c4043;this['_collaborationTimeoutTimer']=null,this[_0xd7d862(0x17f)][_0xd7d862(0x161)]({'id':CollaborationUIEventId['SUBMIT_CHANGESET_TIMEOUT']});},(_0x5d6e91=this[_0x1c4043(0x2cd)][_0x1c4043(0x14b)](HEARTBEAT_TIMEOUT_KEY))!=null?_0x5d6e91:DEFAULT_HEARTBEAT_TIMEOUT);}['_clearCollaborationTimeoutTimer'](){var _0x23e4a3=_0x23d062;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x23e4a3(0x1cb)]),this[_0x23e4a3(0x1cb)]=null);}[_0x23d062(0x3aa)](_0x45ebb6){var _0x46783e=_0x23d062;if(!this['_shouldReportTelemetry'])return;const {data:_0x514e23}=_0x45ebb6,{unitID:_0x5a25d6,changeset:_0x52e6e0}=_0x514e23,{mutations:_0x1ddb43,type:_0x2e2d25}=_0x52e6e0;this[_0x46783e(0x2f6)]={'unitId':_0x5a25d6,'type':_0x2e2d25,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':summaryChangesetSize(_0x1ddb43)};}[_0x23d062(0x288)](){var _0x341a1b=_0x23d062;if(this[_0x341a1b(0x3fd)]){if(!this['_telemetryInfo']){this[_0x341a1b(0x305)][_0x341a1b(0x1f8)](_0x341a1b(0x36d),_0x341a1b(0x42a));return;}this[_0x341a1b(0x2f6)]['stopTime']=performance[_0x341a1b(0x365)](),this[_0x341a1b(0x2f6)][_0x341a1b(0x248)]=this[_0x341a1b(0x2f6)][_0x341a1b(0x2f1)]-this[_0x341a1b(0x2f6)][_0x341a1b(0x389)],this[_0x341a1b(0x1bd)][_0x341a1b(0x21e)](TELEMETRY_COLLABORATION_NEW_CHANGESET,this[_0x341a1b(0x2f6)]),this[_0x341a1b(0x2f6)]=null;}}[_0x23d062(0x208)](){var _0xf87ae=_0x23d062;this[_0xf87ae(0x2f6)]=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[_0x23d062(0x3e0)],__getOwnPropDesc$f=Object[_0x23d062(0x237)],__decorateClass$f=__name((_0x5242b9,_0xe6c38e,_0x5c99b0,_0x2515bd)=>{for(var _0x44dbbc=_0x2515bd>0x1?void 0x0:_0x2515bd?__getOwnPropDesc$f(_0xe6c38e,_0x5c99b0):_0xe6c38e,_0x386e1b=_0x5242b9['length']-0x1,_0x75b361;_0x386e1b>=0x0;_0x386e1b--)(_0x75b361=_0x5242b9[_0x386e1b])&&(_0x44dbbc=(_0x2515bd?_0x75b361(_0xe6c38e,_0x5c99b0,_0x44dbbc):_0x75b361(_0x44dbbc))||_0x44dbbc);return _0x2515bd&&_0x44dbbc&&__defProp$f(_0xe6c38e,_0x5c99b0,_0x44dbbc),_0x44dbbc;},_0x23d062(0x1c9)),__decorateParam$f=__name((_0x4f99b9,_0x187e61)=>(_0x442caa,_0x326b89)=>_0x187e61(_0x442caa,_0x326b89,_0x4f99b9),_0x23d062(0x1d8)),_a4;let CollaborationSessionService=(_a4=class extends Disposable{constructor(_0x3f01a4,_0x114a5a,_0x525f52,_0x29a3d9,_0x38df2a,_0x1bfc7d,_0x56d663){var _0x301267=_0x23d062;super(),__publicField(this,'_socket$',new BehaviorSubject(void 0x0)),__publicField(this,_0x301267(0x20d),this['_socket$'][_0x301267(0x3fc)]()),__publicField(this,'_candidateSocket',null),__publicField(this,_0x301267(0x29f),new Map()),__publicField(this,_0x301267(0x343),new BehaviorSubject(SessionStatus[_0x301267(0x198)])),__publicField(this,_0x301267(0x395),this[_0x301267(0x343)][_0x301267(0x3fc)]()),__publicField(this,_0x301267(0x41a),!0x1),__publicField(this,_0x301267(0x1e1)),__publicField(this,'_retryCount',0x0),__publicField(this,'_sendHeartbeatTimer'),__publicField(this,_0x301267(0x3b5)),(this[_0x301267(0x216)]=_0x3f01a4,this[_0x301267(0x305)]=_0x114a5a,this[_0x301267(0x2cd)]=_0x525f52,this[_0x301267(0x142)]=_0x29a3d9,this[_0x301267(0x3d0)]=_0x38df2a,this[_0x301267(0x17f)]=_0x1bfc7d,this['_networkConditionService']=_0x56d663,this[_0x301267(0x301)]());}get[_0x23d062(0x2cc)](){var _0x1cd063=_0x23d062;return this[_0x1cd063(0x28f)][_0x1cd063(0x25b)]();}[_0x23d062(0x301)](){var _0x4ca10d=_0x23d062;this[_0x4ca10d(0x359)]&&this[_0x4ca10d(0x3b9)](this[_0x4ca10d(0x359)][_0x4ca10d(0x120)][_0x4ca10d(0x20e)](_0x58b110=>{var _0xe1e075=_0x4ca10d;_0x58b110&&!this[_0xe1e075(0x2cc)]&&this[_0xe1e075(0x188)](),_0x58b110||this[_0xe1e075(0x20a)]();}));}[_0x23d062(0x2e5)](){var _0x198b0c=_0x23d062;super['dispose'](),this[_0x198b0c(0x29f)]['forEach'](_0x1ec85e=>_0x1ec85e[_0x198b0c(0x2e5)]()),this[_0x198b0c(0x29f)][_0x198b0c(0x220)](),this[_0x198b0c(0x343)]['complete']();}async[_0x23d062(0x1da)](_0x1804f0){var _0x311830=_0x23d062;if(this[_0x311830(0x29f)][_0x311830(0x2b8)](_0x1804f0))return this['_sessions'][_0x311830(0x354)](_0x1804f0);this[_0x311830(0x2ef)]();const _0x545806=this[_0x311830(0x216)][_0x311830(0x2f4)](CollaborationSession,_0x1804f0,this['_socket$'][_0x311830(0x3fc)]());return this[_0x311830(0x29f)][_0x311830(0x319)](_0x1804f0,_0x545806),_0x545806;}[_0x23d062(0x177)](_0x7af4d){var _0x2fce05=_0x23d062,_0x3e9163;const _0xc236cf=this[_0x2fce05(0x29f)]['get'](_0x7af4d);_0xc236cf&&(this['_sessions'][_0x2fce05(0x1d5)](_0x7af4d),_0xc236cf[_0x2fce05(0x228)]()),this[_0x2fce05(0x29f)][_0x2fce05(0x419)]||(_0x3e9163=this['_socket'])==null||_0x3e9163[_0x2fce05(0x228)]();}[_0x23d062(0x188)](){var _0x1876b2=_0x23d062;this[_0x1876b2(0x397)]=0x0,this[_0x1876b2(0x1e1)]!=null&&(clearTimeout(this[_0x1876b2(0x1e1)]),this[_0x1876b2(0x1e1)]=null),this[_0x1876b2(0x1e3)]();}async['_getSessionTicket'](){var _0x1e0d31=_0x23d062,_0x49e7c2,_0x3c0c59,_0x4d150b;const _0x311299=this[_0x1e0d31(0x2cd)][_0x1e0d31(0x14b)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY),_0x3a4edc=(_0x49e7c2=_0x311299==null?void 0x0:_0x311299['wsSessionTicketUrl'])!=null?_0x49e7c2:DEFAULT_WS_SESSION_TICKET_URL;return(_0x4d150b=(_0x3c0c59=(await this['_httpService']['get'](_0x3a4edc,{'headers':{'Content-Type':'application/json'}}))['body'])==null?void 0x0:_0x3c0c59[_0x1e0d31(0x1c2)])!=null?_0x4d150b:'';}[_0x23d062(0x430)](_0x5dc112){var _0x3d9640=_0x23d062,_0x12b74b,_0x21ee08;const _0x22928d=this[_0x3d9640(0x2cd)][_0x3d9640(0x14b)](COLLAB_WEB_SOCKET_URL_KEY),_0x10aa0a=this[_0x3d9640(0x2cd)]['getConfig'](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY),_0x1be12d=(_0x21ee08=(_0x12b74b=_0x10aa0a==null?void 0x0:_0x10aa0a['collabWebSocketUrl'])!=null?_0x12b74b:_0x22928d)!=null?_0x21ee08:DEFAULT_COLLAB_WEB_SOCKET_URL,_0x4a12c9=typeof window>'u'?new URL(_0x1be12d):new URL(_0x1be12d,window[_0x3d9640(0x1c6)][_0x3d9640(0x321)]);_0x4a12c9['searchParams'][_0x3d9640(0x319)](_0x3d9640(0x3b7),_0x5dc112);const _0x4afa1f=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x3d9640(0x24b)]);return _0x4afa1f[_0x3d9640(0x354)](_0x3d9640(0x25a))&&_0x4a12c9['searchParams'][_0x3d9640(0x319)](_0x3d9640(0x25a),_0x4afa1f[_0x3d9640(0x354)](_0x3d9640(0x25a))),_0x4a12c9[_0x3d9640(0xeb)]();}async[_0x23d062(0x176)](){var _0x5c19b9=_0x23d062;const _0x333f72=await this[_0x5c19b9(0x2d7)](),_0x26a893=this[_0x5c19b9(0x430)](_0x333f72),_0x493158=this['_socketService'][_0x5c19b9(0x108)](_0x26a893);return this[_0x5c19b9(0x123)]=_0x493158,_0x493158;}async['_tryEnsureSocket'](){var _0xcaaeef=_0x23d062,_0x1b98fe,_0x539d97;try{const _0x778246=(_0x539d97=(_0x1b98fe=this[_0xcaaeef(0x2cc)])!=null?_0x1b98fe:this['_candidateSocket'])!=null?_0x539d97:await this[_0xcaaeef(0x176)]();if(_0x778246){const _0x2ddc4b=_0x778246[_0xcaaeef(0x35b)];_0x778246[_0xcaaeef(0x35b)]=_0x16b2c5=>(this[_0xcaaeef(0x314)](),_0x2ddc4b[_0xcaaeef(0x36e)](_0x778246,[_0x16b2c5])),_0x778246[_0xcaaeef(0x2fb)][_0xcaaeef(0x20e)](_0xa8075d=>this[_0xcaaeef(0x144)](_0x778246,_0xa8075d)),_0x778246[_0xcaaeef(0x36c)][_0xcaaeef(0x3c6)](take(0x1))[_0xcaaeef(0x20e)](_0x2caea6=>this[_0xcaaeef(0x305)]['error'](_0xcaaeef(0x2e0),_0x2caea6)),_0x778246['open$'][_0xcaaeef(0x3c6)](take(0x1))[_0xcaaeef(0x20e)](()=>{var _0x258f59=_0xcaaeef;this[_0x258f59(0x3ea)](_0x778246);}),_0x778246[_0xcaaeef(0x352)][_0xcaaeef(0x3c6)](take(0x1))[_0xcaaeef(0x20e)](_0x103158=>{var _0x3fe604=_0xcaaeef;this[_0x3fe604(0x305)][_0x3fe604(0x2ba)](_0x3fe604(0x40b),'socket\x20close',_0x103158),this[_0x3fe604(0xec)]();});}}catch(_0x14e42a){this['_logService'][_0xcaaeef(0x1f8)](_0x14e42a),this[_0xcaaeef(0xec)]();}}['_onConnectionOpen'](_0x225df3){var _0x5ad7f1=_0x23d062;this[_0x5ad7f1(0x305)][_0x5ad7f1(0x2ba)](_0x5ad7f1(0x40b),_0x5ad7f1(0x21b)),_0x225df3[_0x5ad7f1(0x35b)]({'cmd':CombCmd['HELLO']}),this['_rescheduleHeartbeat']();}[_0x23d062(0x20a)](){var _0x4c104d=_0x23d062;this[_0x4c104d(0x41a)]=!0x1,this[_0x4c104d(0x123)]=null,this[_0x4c104d(0x343)]['next'](SessionStatus[_0x4c104d(0x2b2)]),this['_socket$'][_0x4c104d(0x369)](null),this[_0x4c104d(0x1e6)](),this[_0x4c104d(0x41f)]();}['_onConnectionFailed'](){var _0x46c9f9=_0x23d062,_0x2d541e;this['_onOffline'](),this[_0x46c9f9(0x397)]<((_0x2d541e=this[_0x46c9f9(0x2cd)][_0x46c9f9(0x14b)](RETRY_CONNECTING_MAX_COUNT_KEY))!=null?_0x2d541e:DEFAULT_RETRY_CONNECTING_MAX_COUNT)?(this[_0x46c9f9(0x17f)][_0x46c9f9(0x161)]({'id':CollaborationUIEventId[_0x46c9f9(0x155)]}),this[_0x46c9f9(0x1e3)]()):this[_0x46c9f9(0x17f)][_0x46c9f9(0x161)]({'id':CollaborationUIEventId['SOCKET_FAILED']});}[_0x23d062(0x1e3)](){var _0x4da952=_0x23d062,_0xca0ff2;const _0x41e51c=this['_retryCount'],_0x23380a=this[_0x4da952(0x2cd)]['getConfig'](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY),_0x36519f=_0x41e51c===0x0?0x0:((_0xca0ff2=_0x23380a==null?void 0x0:_0x23380a[_0x4da952(0x3ab)])!=null?_0xca0ff2:DEFAULT_RETRY_CONNECTING_INTERVAL)*0x2**_0x41e51c;this[_0x4da952(0x1e1)]=setTimeout(()=>{var _0x255629=_0x4da952;clearTimeout(this['_retryConnectingTimer']),this[_0x255629(0x1e1)]=null,this[_0x255629(0x2ef)]();},_0x36519f),this[_0x4da952(0x397)]+=0x1;}['_onMessage'](_0x24e246,_0x1c6f1b){var _0x4762e2=_0x23d062;const {cmd:_0x51e9b8}=_0x1c6f1b;_0x51e9b8===CombCmd[_0x4762e2(0x167)]&&!this[_0x4762e2(0x41a)]&&(_0x24e246[_0x4762e2(0x2dd)]=_0x1c6f1b[_0x4762e2(0x16d)][_0x4762e2(0x2dd)],this[_0x4762e2(0x28f)]['next'](_0x24e246),this['_status$'][_0x4762e2(0x369)](SessionStatus['ONLINE']),this[_0x4762e2(0x41a)]=!0x0,this['_candidateSocket']=null),_0x51e9b8===CombCmd[_0x4762e2(0x29b)]&&this[_0x4762e2(0x1e6)](),this['_rescheduleHeartbeat']();}[_0x23d062(0x314)](){var _0x4b31a0=_0x23d062,_0x124efa;this[_0x4b31a0(0x41f)](),this['_sendHeartbeatTimer']=setTimeout(()=>this['_sendHeartbeat'](),(_0x124efa=this['_configService']['getConfig'](HEARTBEAT_INTERVAL_KEY))!=null?_0x124efa:DEFAULT_HEARTBEAT_INTERVAL);}[_0x23d062(0x364)](){var _0x2b6a4c=_0x23d062;this['_socket'][_0x2b6a4c(0x35b)]({'cmd':CombCmd[_0x2b6a4c(0x29b)]}),this[_0x2b6a4c(0x14f)]();}[_0x23d062(0x14f)](){var _0x35dc1e=_0x23d062,_0xb3c4a3;this[_0x35dc1e(0x3b5)]=setTimeout(()=>this['_onConnectionFailed'](),(_0xb3c4a3=this[_0x35dc1e(0x2cd)]['getConfig'](HEARTBEAT_TIMEOUT_KEY))!=null?_0xb3c4a3:DEFAULT_HEARTBEAT_TIMEOUT);}[_0x23d062(0x41f)](){var _0x3a63ef=_0x23d062;this[_0x3a63ef(0x186)]!=null&&(clearTimeout(this[_0x3a63ef(0x186)]),this[_0x3a63ef(0x186)]=null);}[_0x23d062(0x1e6)](){var _0x5240ef=_0x23d062;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x5240ef(0x3b5)]),this[_0x5240ef(0x3b5)]=null);}},__name(_a4,_0x23d062(0x1e8)),_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)['toString'](0x10)[_0x23d062(0x3c5)](0x1));function unsafeStringify(_0x4597cc,_0x3725e4=0x0){var _0x2b11a0=_0x23d062;return(byteToHex[_0x4597cc[_0x3725e4+0x0]]+byteToHex[_0x4597cc[_0x3725e4+0x1]]+byteToHex[_0x4597cc[_0x3725e4+0x2]]+byteToHex[_0x4597cc[_0x3725e4+0x3]]+'-'+byteToHex[_0x4597cc[_0x3725e4+0x4]]+byteToHex[_0x4597cc[_0x3725e4+0x5]]+'-'+byteToHex[_0x4597cc[_0x3725e4+0x6]]+byteToHex[_0x4597cc[_0x3725e4+0x7]]+'-'+byteToHex[_0x4597cc[_0x3725e4+0x8]]+byteToHex[_0x4597cc[_0x3725e4+0x9]]+'-'+byteToHex[_0x4597cc[_0x3725e4+0xa]]+byteToHex[_0x4597cc[_0x3725e4+0xb]]+byteToHex[_0x4597cc[_0x3725e4+0xc]]+byteToHex[_0x4597cc[_0x3725e4+0xd]]+byteToHex[_0x4597cc[_0x3725e4+0xe]]+byteToHex[_0x4597cc[_0x3725e4+0xf]])[_0x2b11a0(0x2da)]();}__name(unsafeStringify,_0x23d062(0x2af));let getRandomValues;const rnds8=new Uint8Array(0x10);function rng(){var _0x322b19=_0x23d062;if(!getRandomValues){if(typeof crypto>'u'||!crypto['getRandomValues'])throw new Error(_0x322b19(0x223));getRandomValues=crypto['getRandomValues'][_0x322b19(0x1c7)](crypto);}return getRandomValues(rnds8);}__name(rng,'rng');const randomUUID=typeof crypto<'u'&&crypto[_0x23d062(0x2b4)]&&crypto[_0x23d062(0x2b4)]['bind'](crypto),native={'randomUUID':randomUUID};function v4(_0x4a2e9f,_0x1e8fc9,_0x15b360){var _0x545f59=_0x23d062,_0x1e7262,_0x165c0d,_0x216b66;if(native[_0x545f59(0x2b4)]&&!_0x4a2e9f)return native[_0x545f59(0x2b4)]();_0x4a2e9f=_0x4a2e9f||{};const _0x31db50=(_0x216b66=(_0x165c0d=_0x4a2e9f[_0x545f59(0x163)])!=null?_0x165c0d:(_0x1e7262=_0x4a2e9f[_0x545f59(0x32b)])==null?void 0x0:_0x1e7262['call'](_0x4a2e9f))!=null?_0x216b66:rng();if(_0x31db50[_0x545f59(0x420)]<0x10)throw new Error(_0x545f59(0x1d4));return _0x31db50[0x6]=_0x31db50[0x6]&0xf|0x40,_0x31db50[0x8]=_0x31db50[0x8]&0x3f|0x80,unsafeStringify(_0x31db50);}__name(v4,'v4');const ILocalCacheService=createIdentifier(_0x23d062(0x34d));function getLocalCacheKey(_0x459fcb){var _0x1c6e8f=_0x23d062;return _0x1c6e8f(0x31b)+_0x459fcb;}__name(getLocalCacheKey,_0x23d062(0x2a9));var __defProp$e=Object[_0x23d062(0x3e0)],__getOwnPropDesc$e=Object[_0x23d062(0x237)],__decorateClass$e=__name((_0x586886,_0x515e08,_0x584a38,_0x59ebd0)=>{var _0x5751c5=_0x23d062;for(var _0x30b307=_0x59ebd0>0x1?void 0x0:_0x59ebd0?__getOwnPropDesc$e(_0x515e08,_0x584a38):_0x515e08,_0x4da47f=_0x586886[_0x5751c5(0x420)]-0x1,_0x2deeca;_0x4da47f>=0x0;_0x4da47f--)(_0x2deeca=_0x586886[_0x4da47f])&&(_0x30b307=(_0x59ebd0?_0x2deeca(_0x515e08,_0x584a38,_0x30b307):_0x2deeca(_0x30b307))||_0x30b307);return _0x59ebd0&&_0x30b307&&__defProp$e(_0x515e08,_0x584a38,_0x30b307),_0x30b307;},_0x23d062(0x1de)),__decorateParam$e=__name((_0x560e47,_0x46f5ae)=>(_0x151041,_0xb457bd)=>_0x46f5ae(_0x151041,_0xb457bd,_0x560e47),'__decorateParam$e');function extractTargetFromFirstChangeset(_0x13465f){var _0x1e70d7=_0x23d062;const {unitID:_0x34eaa1,mutations:_0x1bd054}=_0x13465f;return{'unitId':_0x34eaa1,'subUnitId':_0x1bd054[0x0][_0x1e70d7(0x310)][_0x1e70d7(0x414)]};}__name(extractTargetFromFirstChangeset,_0x23d062(0x29d));var _a5;let SheetTransformSelectionsService=(_a5=class{constructor(_0x557b14,_0x2d14dd,_0x17977e){var _0x4e9519=_0x23d062;this[_0x4e9519(0x216)]=_0x557b14,this[_0x4e9519(0x2b3)]=_0x2d14dd,this[_0x4e9519(0x1a9)]=_0x17977e;}['transformSelections'](_0x24fa03){var _0x5e1dfc=_0x23d062,_0x2dac14,_0x333302,_0x483810,_0x409950;const _0x707fb4=this[_0x5e1dfc(0x216)]['get'](SheetsSelectionsService),{unitId:_0x29a94c,subUnitId:_0x1abdf9}=extractTargetFromFirstChangeset(_0x24fa03),_0x34206d=_0x707fb4==null?void 0x0:_0x707fb4[_0x5e1dfc(0x17e)](_0x29a94c)[_0x5e1dfc(0xee)](),_0x18d898=(_0x333302=(_0x2dac14=this[_0x5e1dfc(0x1a9)][_0x5e1dfc(0x289)](_0x29a94c))==null?void 0x0:_0x2dac14[_0x5e1dfc(0x165)]())==null?void 0x0:_0x333302[_0x5e1dfc(0x353)]();if(_0x34206d['length']===0x0||!_0x29a94c||!_0x1abdf9)return;const _0x13ec21=[{'id':SetSelectionsOperation['id'],'params':{'unitId':_0x29a94c,'subUnitId':_0x18d898,'selections':Tools[_0x5e1dfc(0x287)](_0x34206d)}}],_0x22b39e=this['_transformService']['transformMutationsWithChangeset'](_0x24fa03,_0x13ec21);if(!isTransformMutationsWithChangesetSuccess(_0x22b39e))throw _0x22b39e[_0x5e1dfc(0x1f8)];const _0x10e717=(_0x409950=(_0x483810=_0x22b39e[_0x5e1dfc(0x349)][0x0])==null?void 0x0:_0x483810['params'])==null?void 0x0:_0x409950['selections'];if(Array[_0x5e1dfc(0x380)](_0x10e717)&&_0x10e717['length']){if(_0x10e717[_0x5e1dfc(0x420)]===_0x13ec21[0x0][_0x5e1dfc(0x310)]['selections']['length']&&_0x10e717[_0x5e1dfc(0x3cf)]((_0x14bea6,_0x5a8f75)=>Rectangle['equals'](_0x14bea6[_0x5e1dfc(0x417)],_0x13ec21[0x0][_0x5e1dfc(0x310)][_0x5e1dfc(0x1b0)][_0x5a8f75][_0x5e1dfc(0x417)])))return;this[_0x5e1dfc(0x216)][_0x5e1dfc(0x354)](ICommandService)['executeCommand'](SetSelectionsOperation['id'],{'unitId':_0x29a94c,'subUnitId':_0x18d898,'selections':_0x10e717});}}},__name(_a5,_0x23d062(0x28e)),_a5);SheetTransformSelectionsService=__decorateClass$e([__decorateParam$e(0x0,Inject(Injector)),__decorateParam$e(0x1,ITransformService),__decorateParam$e(0x2,IUniverInstanceService)],SheetTransformSelectionsService);const ISingleActiveUnitService=createIdentifier('univer-pro.collaboration-client.single-active-unit-service');var UnitStatus=(_0x39a06e=>(_0x39a06e[_0x39a06e[_0x23d062(0xf7)]=0x0]=_0x23d062(0xf7),_0x39a06e[_0x39a06e[_0x23d062(0x31f)]=0x1]=_0x23d062(0x31f),_0x39a06e))(UnitStatus||{});const SINGLE_CHANGESET_MUTATIONS=new Set([InsertSheetMutation['id']]);function assembleSheetChangeset(_0x34d541,_0x1986d5,_0x34d15c,_0x46de34,_0x58bb96){var _0x492398=_0x23d062,_0x2c092a,_0x4abbc5,_0x4399db,_0x160487;const _0x403c84=[];for(const _0x33feb1 of _0x34d541)if(SINGLE_CHANGESET_MUTATIONS[_0x492398(0x2b8)](_0x33feb1['id'])){if(_0x403c84['length']>0x0)break;_0x403c84['push'](_0x33feb1);break;}else _0x403c84[_0x492398(0x17c)](_0x33feb1);const _0x467b8a=(_0x4abbc5=(_0x2c092a=_0x58bb96[_0x492398(0x1f4)]())==null?void 0x0:_0x2c092a['userID'])!=null?_0x4abbc5:_0x492398(0x27f),_0x3fc6bf=(_0x160487=(_0x4399db=_0x58bb96[_0x492398(0x1f4)]())==null?void 0x0:_0x4399db['memberID'])!=null?_0x160487:_0x492398(0x27f);return{'changeset':{'unitID':_0x1986d5,'type':mapDocumentTypeToUniverType(_0x34d15c[_0x492398(0x10e)](_0x1986d5)),'baseRev':_0x46de34['getCurrentRevOfUnit'](_0x1986d5),'revision':0x0,'userID':_0x467b8a,'memberID':_0x3fc6bf,'mutations':_0x403c84},'pendingMutations':_0x34d541[_0x492398(0x3c5)](_0x403c84['length'])};}__name(assembleSheetChangeset,'assembleSheetChangeset');function assembleDocChangeset(_0x9df41d,_0x2ee980,_0x51ba82,_0x4ec269,_0x16df4e){var _0x583de2=_0x23d062,_0x3f2985,_0x1b2994,_0x4cfa55,_0x525439;const _0x2117d3=[_0x9df41d[_0x583de2(0x3ed)]((_0x221890,_0x37b1b6)=>{var _0x47a7c5=_0x583de2,_0x486cae;const {id:_0x51c1c6}=_0x221890,{id:_0x1a8405,type:_0x4e7c47}=_0x37b1b6,_0xe746ba=(_0x486cae=_0x221890['params'])!=null?_0x486cae:{'actions':null},_0x231b2a=_0x37b1b6[_0x47a7c5(0x310)];if(_0x51c1c6&&_0x51c1c6!==_0x1a8405)throw new Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x51c1c6+_0x47a7c5(0x392)+_0x1a8405+'.');return{..._0x221890,'id':_0x1a8405,'type':_0x4e7c47,'params':{'unitId':_0x231b2a[_0x47a7c5(0x291)],'textRanges':_0x231b2a[_0x47a7c5(0x153)],'actions':JSONX[_0x47a7c5(0x3a4)](_0xe746ba[_0x47a7c5(0xef)],_0x231b2a['actions'])}};},{})],_0xab4161=(_0x1b2994=(_0x3f2985=_0x16df4e[_0x583de2(0x1f4)]())==null?void 0x0:_0x3f2985[_0x583de2(0x2eb)])!=null?_0x1b2994:_0x583de2(0x27f),_0x461b85=(_0x525439=(_0x4cfa55=_0x16df4e[_0x583de2(0x1f4)]())==null?void 0x0:_0x4cfa55[_0x583de2(0x2dd)])!=null?_0x525439:_0x583de2(0x27f);return{'changeset':{'unitID':_0x2ee980,'type':mapDocumentTypeToUniverType(_0x51ba82[_0x583de2(0x10e)](_0x2ee980)),'baseRev':_0x4ec269[_0x583de2(0x152)](_0x2ee980),'revision':0x0,'userID':_0xab4161,'memberID':_0x461b85,'mutations':_0x2117d3},'pendingMutations':[]};}__name(assembleDocChangeset,_0x23d062(0x185));function createTimerObservable$(_0xb0f1d3,_0x2c27d2){var _0x55bd3e=_0x23d062;const _0x38f35f=new ReplaySubject(0x1);return setTimeout(()=>_0x38f35f['next'](_0x2c27d2),_0xb0f1d3),_0x38f35f[_0x55bd3e(0x3fc)]()[_0x55bd3e(0x3c6)](_0x2b6605(0x1));}__name(createTimerObservable$,_0x23d062(0x36f));const EmptyMutationInfo={'id':EmptyMutation['id'],'type':CommandType[_0x23d062(0x2b5)],'params':{}};var __defProp$d=Object[_0x23d062(0x3e0)],__getOwnPropDesc$d=Object[_0x23d062(0x237)],__decorateClass$d=__name((_0x5197c5,_0x5424d5,_0x29cf79,_0x16e4c8)=>{for(var _0x41434c=_0x16e4c8>0x1?void 0x0:_0x16e4c8?__getOwnPropDesc$d(_0x5424d5,_0x29cf79):_0x5424d5,_0x401019=_0x5197c5['length']-0x1,_0x4aac7e;_0x401019>=0x0;_0x401019--)(_0x4aac7e=_0x5197c5[_0x401019])&&(_0x41434c=(_0x16e4c8?_0x4aac7e(_0x5424d5,_0x29cf79,_0x41434c):_0x4aac7e(_0x41434c))||_0x41434c);return _0x16e4c8&&_0x41434c&&__defProp$d(_0x5424d5,_0x29cf79,_0x41434c),_0x41434c;},'__decorateClass$d'),__decorateParam$d=__name((_0x2236a0,_0x34c897)=>(_0x334412,_0x533aa8)=>_0x34c897(_0x334412,_0x533aa8,_0x2236a0),'__decorateParam$d'),CollaborationStatus=(_0x1024e2=>(_0x1024e2['NOT_COLLAB']=_0x23d062(0x41c),_0x1024e2[_0x23d062(0x18e)]=_0x23d062(0x23d),_0x1024e2[_0x23d062(0x102)]='pending',_0x1024e2[_0x23d062(0x2ff)]=_0x23d062(0x219),_0x1024e2[_0x23d062(0x32c)]=_0x23d062(0x396),_0x1024e2['FETCH_MISS']=_0x23d062(0x3d1),_0x1024e2[_0x23d062(0x27e)]='conflict',_0x1024e2[_0x23d062(0x2b2)]=_0x23d062(0x262),_0x1024e2))(CollaborationStatus||{});const MAX_RETRY_TIMEOUT=0xea60,_CollaborationState=class _CollaborationState{constructor(_0x2c837a,_0x10bb56,_0x5a935d,_0x2c4492,_0x176fce,_0x28f2fb,_0x503139,_0x36d8b2,_0x225d1f){var _0x2de4cd=_0x23d062;__publicField(this,_0x2de4cd(0xf2),null),__publicField(this,'_pendingMutations',[]),(this['unitID']=_0x2c837a,this[_0x2de4cd(0x408)]=_0x10bb56,this['_handler']=_0x176fce,this[_0x2de4cd(0x103)]=_0x28f2fb,this['_undoRedoService']=_0x503139,this[_0x2de4cd(0x104)]=_0x36d8b2,this[_0x2de4cd(0x1b9)]=_0x225d1f,this[_0x2de4cd(0xf2)]=_0x5a935d,this[_0x2de4cd(0x1d0)]=_0x2c4492);}[_0x23d062(0x13d)](_0x4c82ac){var _0x38deab=_0x23d062;const _0x702da7=this[_0x38deab(0x104)][_0x38deab(0x152)](this['unitID']);return _0x4c82ac[_0x38deab(0x347)]>_0x702da7+0x1?(this[_0x38deab(0x173)][_0x38deab(0x43e)]({'from':_0x702da7,'to':_0x4c82ac['revision']-0x1}),!0x0):!0x1;}[_0x23d062(0x2e2)](_0x2a80b2){var _0x185b40=_0x23d062;this[_0x185b40(0x2bf)][_0x185b40(0x2c5)](this[_0x185b40(0x432)],_0x2a80b2);}[_0x23d062(0x23b)](_0x53a447){var _0x4917ee=_0x23d062,_0x12779b,_0x480042;(_0x480042=(_0x12779b=this[_0x4917ee(0x173)])[_0x4917ee(0x2a5)])==null||_0x480042[_0x4917ee(0x229)](_0x12779b,_0x53a447);}[_0x23d062(0x251)](_0x38062a){var _0x5a0d3d=_0x23d062,_0x426b33,_0x16e2ce;return(_0x16e2ce=(_0x426b33=this['_handler'])['onTransformIME'])==null?void 0x0:_0x16e2ce[_0x5a0d3d(0x229)](_0x426b33,_0x38062a);}[_0x23d062(0x207)](_0x10273e){var _0x55f48e=_0x23d062,_0x1ce54,_0x5ae324;return(_0x5ae324=(_0x1ce54=this[_0x55f48e(0x173)])[_0x55f48e(0x24d)])==null?void 0x0:_0x5ae324[_0x55f48e(0x229)](_0x1ce54,_0x10273e);}['_transformRemoteChangesetByIMECache'](_0x9b3f5e){var _0x130556=_0x23d062,_0x4f4249,_0x3c2af6,_0xff17d7;return(_0xff17d7=(_0x3c2af6=(_0x4f4249=this[_0x130556(0x173)])[_0x130556(0x10a)])==null?void 0x0:_0x3c2af6[_0x130556(0x229)](_0x4f4249,_0x9b3f5e))!=null?_0xff17d7:_0x9b3f5e;}[_0x23d062(0x31e)](_0x3b4017){var _0x5cfa18=_0x23d062,_0x441d7d,_0x36f105,_0x453ccc;return(_0x453ccc=(_0x36f105=(_0x441d7d=this[_0x5cfa18(0x173)])['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0x36f105['call'](_0x441d7d,_0x3b4017))!=null?_0x453ccc:_0x3b4017;}['_syncEditingCollabCursor'](_0x211e86){var _0x477ed1=_0x23d062,_0x5cf0c1,_0x490fd0;if(this['type']===UniverType[_0x477ed1(0x375)]){const {unitID:_0x590843,mutations:_0x76826b,memberID:_0x342060}=_0x211e86,_0x3604ae=_0x76826b[0x0][_0x477ed1(0x310)][_0x477ed1(0x153)];Array['isArray'](_0x3604ae)&&_0x3604ae[_0x477ed1(0x420)]>0x0&&((_0x490fd0=(_0x5cf0c1=this[_0x477ed1(0x173)])[_0x477ed1(0x149)])==null||_0x490fd0[_0x477ed1(0x229)](_0x5cf0c1,{'unitID':_0x590843,'memberID':_0x342060,'textRanges':_0x3604ae}));}}[_0x23d062(0x355)](){var _0x2996cb=_0x23d062,_0x417c0e;(_0x417c0e=this['_localCacheService'])==null||_0x417c0e[_0x2996cb(0x278)](this[_0x2996cb(0x432)],this[_0x2996cb(0x408)],this['_awaitingChangeset'],this['_pendingMutations']);}[_0x23d062(0x2c6)](){var _0xd33263=_0x23d062;return this['_revisionService'][_0xd33263(0x152)](this[_0xd33263(0x432)]);}[_0x23d062(0x202)](){var _0x518cfa=_0x23d062;this[_0x518cfa(0x104)][_0x518cfa(0x118)](this[_0x518cfa(0x432)]);}['_executeRemoteChangeset'](_0x39a380){var _0x54597f=_0x23d062,_0x197501;let _0x27ef1d=this[_0x54597f(0x17b)](_0x39a380);_0x27ef1d=this[_0x54597f(0x31e)](_0x27ef1d);const _0x3ed23e=sequenceExecute(_0x27ef1d[_0x54597f(0x3ff)],this[_0x54597f(0x103)],{'fromCollab':!0x0});if(!_0x3ed23e[_0x54597f(0x19b)])throw _0x3ed23e[_0x54597f(0x1f8)]instanceof Error?_0x3ed23e[_0x54597f(0x1f8)]:new Error((_0x197501=_0x3ed23e[_0x54597f(0x1f8)])!=null?_0x197501:'[CollaborationState]:\x20apply\x20error!');this[_0x54597f(0x251)](_0x27ef1d),this[_0x54597f(0x207)](_0x27ef1d),this[_0x54597f(0x2e2)](_0x39a380),this[_0x54597f(0x23b)](_0x27ef1d),this['_syncEditingCollabCursor'](_0x27ef1d),this[_0x54597f(0x202)]();}};__name(_CollaborationState,_0x23d062(0x282));let CollaborationState=_CollaborationState;var _a6;let SyncedState=(_a6=class extends CollaborationState{constructor(_0x21b473,_0x112d29,_0x35c916,_0x30804d,_0x384068,_0x3c44a7,_0x108429,_0x9e6f8b,_0x48b8b2,_0x5828e0){var _0x335df1=_0x23d062;super(_0x21b473,_0x112d29,null,[],_0x35c916,_0x108429,_0x3c44a7,_0x30804d,_0x5828e0),__publicField(this,_0x335df1(0x406),'synced'),(this[_0x335df1(0x216)]=_0x384068,this[_0x335df1(0x305)]=_0x9e6f8b,this[_0x335df1(0x2b3)]=_0x48b8b2,this[_0x335df1(0x339)]=_0x5828e0);}[_0x23d062(0x1fb)](_0x3790b6){var _0x579e6b=_0x23d062;const _0x2467dd=this[_0x579e6b(0x216)]['createInstance'](PendingState,this['unitID'],this['type'],[_0x3790b6],this[_0x579e6b(0x173)]);return _0x2467dd[_0x579e6b(0x1b5)](),_0x2467dd['_updateLocalCache'](),_0x2467dd;}[_0x23d062(0x255)](_0xc056c8){var _0x308a18=_0x23d062;if(this[_0x308a18(0x13d)](_0xc056c8))return this[_0x308a18(0x216)][_0x308a18(0x2f4)](FetchingMissState,this[_0x308a18(0x432)],this[_0x308a18(0x408)],null,[],null,[_0xc056c8],this[_0x308a18(0x173)]);try{const _0x5093a8=this[_0x308a18(0x2b3)][_0x308a18(0x33c)](_0xc056c8,[EmptyMutationInfo]);if(isTransformMutationsWithChangesetSuccess(_0x5093a8)){const {c1Prime:_0x1e7365}=_0x5093a8;return this[_0x308a18(0x302)](_0x1e7365),this;}throw _0x5093a8[_0x308a18(0x1f8)];}catch(_0x3e5a2d){return this[_0x308a18(0x305)][_0x308a18(0x1f8)](_0x3e5a2d),this[_0x308a18(0x337)](!0x1);}}[_0x23d062(0x337)](_0x5a2e3e){var _0x701a96=_0x23d062;return this[_0x701a96(0x216)][_0x701a96(0x2f4)](ConflictState,this['unitID'],this[_0x701a96(0x408)],null,[],this[_0x701a96(0x173)],_0x5a2e3e);}[_0x23d062(0x1ba)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x23d062(0x1d3)](){var _0x78c573=_0x23d062;throw new Error(_0x78c573(0x1b6));}[_0x23d062(0x23c)](){return this;}[_0x23d062(0x1d1)](){var _0x218368=_0x23d062;return this[_0x218368(0x216)][_0x218368(0x2f4)](OfflineState,this[_0x218368(0x432)],this[_0x218368(0x408)],null,[],this['_handler']);}[_0x23d062(0x218)](){return this;}[_0x23d062(0x22e)](){throw new Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}['fetchMiss'](){var _0x29326e=_0x23d062;const _0x54966d=this[_0x29326e(0x104)][_0x29326e(0x152)](this['unitID']);return this[_0x29326e(0x173)][_0x29326e(0x43e)]({'from':_0x54966d,'to':0x0}),this[_0x29326e(0x216)][_0x29326e(0x2f4)](FetchingMissState,this[_0x29326e(0x432)],this[_0x29326e(0x408)],null,[],null,[],this[_0x29326e(0x173)]);}},__name(_a6,_0x23d062(0x2c8)),_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(_0x52336f,_0x485c3c,_0x2610b8,_0x2119b7,_0x2d6461,_0xf9c907,_0x2dd313,_0x1d433b,_0x12096c,_0x4c4a30,_0x7c0cfd,_0x52d792,_0x6c9268,_0x168d72){var _0x2d8c42=_0x23d062;super(_0x52336f,_0x485c3c,null,_0x2610b8,_0x2119b7,_0x12096c,_0x6c9268,_0xf9c907,_0x168d72),__publicField(this,'status',_0x2d8c42(0x2e8)),__publicField(this,_0x2d8c42(0x112),null),__publicField(this,_0x2d8c42(0x25d),null),(this[_0x2d8c42(0x216)]=_0x2d6461,this[_0x2d8c42(0x1c5)]=_0x2dd313,this[_0x2d8c42(0x305)]=_0x1d433b,this[_0x2d8c42(0x2cd)]=_0x4c4a30,this[_0x2d8c42(0x2b3)]=_0x7c0cfd,this[_0x2d8c42(0x2e7)]=_0x52d792);}[_0x23d062(0x1fb)](_0x162b56){var _0x437018=_0x23d062;return this[_0x437018(0x1d0)][_0x437018(0x17c)](_0x162b56),this[_0x437018(0x355)](),this;}['onRemoteChangeset'](_0x1aac3a){var _0x3c7f50=_0x23d062;if(this[_0x3c7f50(0x13d)](_0x1aac3a))return this['_clearScheduledTask'](),this[_0x3c7f50(0x216)][_0x3c7f50(0x2f4)](FetchingMissState,this['unitID'],this['type'],null,this['_pendingMutations'],null,[_0x1aac3a],this[_0x3c7f50(0x173)]);try{const _0x59e7f9=this[_0x3c7f50(0x2b3)][_0x3c7f50(0x33c)](_0x1aac3a,this[_0x3c7f50(0x1d0)]);if(isTransformMutationsWithChangesetSuccess(_0x59e7f9)){const {c1Prime:_0x3f42b9,m2Prime:_0x380c29}=_0x59e7f9;this[_0x3c7f50(0x302)](_0x3f42b9);const _0x107480=this[_0x3c7f50(0x216)][_0x3c7f50(0x2f4)](PendingState,this[_0x3c7f50(0x432)],this[_0x3c7f50(0x408)],_0x380c29,this[_0x3c7f50(0x173)]);this['_clearScheduledTask']();const _0x2cdd89=new Date()['getTime'](),_0x1178a2=this['_scheduleCompleteTimestamp']?Math[_0x3c7f50(0x357)](this[_0x3c7f50(0x112)]-_0x2cdd89,0x0):this[_0x3c7f50(0x15f)]();return _0x107480['_schedule'](_0x1178a2),_0x107480;}throw _0x59e7f9[_0x3c7f50(0x1f8)];}catch(_0x17fad2){return this[_0x3c7f50(0x305)]['error'](_0x17fad2),this[_0x3c7f50(0x337)](!0x1);}}[_0x23d062(0x1ba)](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x23d062(0x1d3)](){var _0x12b4ad=_0x23d062;throw new Error(_0x12b4ad(0x134));}[_0x23d062(0x23c)](){return this;}[_0x23d062(0x1d1)](){var _0x30ce7a=_0x23d062;return this[_0x30ce7a(0x125)](),this['_injector'][_0x30ce7a(0x2f4)](OfflineState,this['unitID'],this[_0x30ce7a(0x408)],null,this[_0x30ce7a(0x1d0)],this['_handler']);}['toggleOnline'](){return this;}[_0x23d062(0x1b5)](_0x48db07){var _0x33fe73=_0x23d062;const _0x324990=_0x48db07!=null?_0x48db07:this[_0x33fe73(0x15f)]();this[_0x33fe73(0x112)]=new Date()[_0x33fe73(0x2be)]()+_0x324990,this[_0x33fe73(0x25d)]=setTimeout(()=>{var _0x4bbeeb=_0x33fe73;this['_clearScheduledTask']();let _0x46bb12=null;switch(this[_0x4bbeeb(0x408)]){case UniverType['UNIVER_SHEET']:{_0x46bb12=assembleSheetChangeset(this[_0x4bbeeb(0x1d0)],this['unitID'],this['_univerInstanceService'],this[_0x4bbeeb(0x104)],this[_0x4bbeeb(0x1c5)]);break;}case UniverType[_0x4bbeeb(0x375)]:{this[_0x4bbeeb(0x1d0)][_0x4bbeeb(0x3cf)](_0x44877f=>_0x44877f['id']===RichTextEditingMutation['id'])?_0x46bb12=assembleDocChangeset(this['_pendingMutations'],this[_0x4bbeeb(0x432)],this[_0x4bbeeb(0x2e7)],this[_0x4bbeeb(0x104)],this[_0x4bbeeb(0x1c5)]):_0x46bb12=assembleSheetChangeset(this[_0x4bbeeb(0x1d0)],this['unitID'],this['_univerInstanceService'],this['_revisionService'],this[_0x4bbeeb(0x1c5)]);break;}default:throw new Error(_0x4bbeeb(0x313)+this[_0x4bbeeb(0x408)]+_0x4bbeeb(0x131));}const {changeset:_0x57d0a3,pendingMutations:_0x48fba5}=_0x46bb12;this[_0x4bbeeb(0x173)][_0x4bbeeb(0x194)](_0x57d0a3);const _0x4d23ec=_0x48fba5[_0x4bbeeb(0x420)]?this[_0x4bbeeb(0x216)]['createInstance'](AwaitingWithPendingState,this['unitID'],this[_0x4bbeeb(0x408)],_0x57d0a3,_0x48fba5,this[_0x4bbeeb(0x173)],void 0x0):this[_0x4bbeeb(0x216)][_0x4bbeeb(0x2f4)](AwaitingState,this[_0x4bbeeb(0x432)],this[_0x4bbeeb(0x408)],_0x57d0a3,this[_0x4bbeeb(0x173)]);_0x4d23ec[_0x4bbeeb(0x355)](),this[_0x4bbeeb(0x173)][_0x4bbeeb(0x280)](this,_0x4d23ec);},_0x324990);}[_0x23d062(0x15f)](){var _0x2b7bc4=_0x23d062,_0x8b28eb;const _0x2aa1dc=this['_configService'][_0x2b7bc4(0x14b)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x8b28eb=_0x2aa1dc==null?void 0x0:_0x2aa1dc[_0x2b7bc4(0x3ec)])!=null?_0x8b28eb:DEFAULT_SEND_CHANGESET_TIMEOUT;}[_0x23d062(0x22e)](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x23d062(0x125)](){var _0x5edeb8=_0x23d062;this[_0x5edeb8(0x25d)]!=null&&(clearTimeout(this[_0x5edeb8(0x25d)]),this['_sendingTimer']=null);}[_0x23d062(0x337)](_0x463f16){var _0x51ab25=_0x23d062;return this['_clearScheduledTask'](),this[_0x51ab25(0x216)][_0x51ab25(0x2f4)](ConflictState,this['unitID'],this[_0x51ab25(0x408)],null,this[_0x51ab25(0x1d0)],this[_0x51ab25(0x173)],_0x463f16);}},__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(_0x33b6cf,_0x605b79,_0x5c695d,_0xd9e02b,_0x195028,_0x1fe908,_0x26f9a1,_0x53ab1f,_0x4075c8,_0x2f37c0,_0x234be3){var _0x4e82ab=_0x23d062;super(_0x33b6cf,_0x605b79,_0x5c695d,[],_0xd9e02b,_0x26f9a1,_0x2f37c0,_0x1fe908,_0x234be3),__publicField(this,_0x4e82ab(0x406),'awaiting'),__publicField(this,_0x4e82ab(0x2ca),0x0),__publicField(this,_0x4e82ab(0x1f5)),__publicField(this,_0x4e82ab(0x205)),(this['_injector']=_0x195028,this[_0x4e82ab(0x305)]=_0x53ab1f,this[_0x4e82ab(0x2b3)]=_0x4075c8);}[_0x23d062(0x1fb)](_0x2b21b9){var _0x502290=_0x23d062;this[_0x502290(0x125)]();const _0x2b0804=this[_0x502290(0x216)]['createInstance'](AwaitingWithPendingState,this[_0x502290(0x432)],this['type'],this[_0x502290(0xf2)],[_0x2b21b9],this[_0x502290(0x173)],this[_0x502290(0x1f5)]);return _0x2b0804[_0x502290(0x355)](),_0x2b0804;}[_0x23d062(0x255)](_0x3c2a0a){var _0x538d46=_0x23d062;if(this[_0x538d46(0x13d)](_0x3c2a0a))return this[_0x538d46(0x125)](),this[_0x538d46(0x216)][_0x538d46(0x2f4)](FetchingMissState,this['unitID'],this[_0x538d46(0x408)],this[_0x538d46(0xf2)],[],null,[_0x3c2a0a],this[_0x538d46(0x173)]);try{const _0x17e99f=this[_0x538d46(0x2b3)][_0x538d46(0xed)]([_0x3c2a0a],[this['_awaitingChangeset']],!0x1);if(isTransformChangesetsSuccess(_0x17e99f)){const {c1Prime:_0x2d28a3,c2Prime:_0x2dff26}=_0x17e99f;this[_0x538d46(0x302)](_0x2d28a3[0x0]),_0x2dff26[0x0]['baseRev']=this[_0x538d46(0x2c6)](),this['_clearScheduledTask']();const _0xd1c30d=this['_injector'][_0x538d46(0x2f4)](AwaitingState,this['unitID'],this['type'],_0x2dff26[0x0],this[_0x538d46(0x173)]);return _0xd1c30d[_0x538d46(0x355)](),_0xd1c30d;}return this['_onConflict'](!0x1);}catch(_0x197653){return this[_0x538d46(0x305)][_0x538d46(0x1f8)](_0x197653),this[_0x538d46(0x337)](!0x1);}}['onRemoteAck'](_0x37a350){var _0x1d9179=_0x23d062;this['_clearScheduledTask']();const _0x20f440=this[_0x1d9179(0x104)][_0x1d9179(0x152)](this[_0x1d9179(0x432)]);if(_0x37a350[_0x1d9179(0x347)]<_0x20f440-0x1)return this;if(this['_checkMissing'](_0x37a350))return this[_0x1d9179(0x216)][_0x1d9179(0x2f4)](FetchingMissState,this[_0x1d9179(0x432)],this['type'],null,[],this[_0x1d9179(0xf2)],[],this['_handler']);this[_0x1d9179(0x202)]();const _0x5489b1=this[_0x1d9179(0x216)]['createInstance'](SyncedState,this[_0x1d9179(0x432)],this[_0x1d9179(0x408)],this[_0x1d9179(0x173)]);return _0x5489b1['_updateLocalCache'](),_0x5489b1;}[_0x23d062(0x1d3)](_0x4f6856){var _0x245d67=_0x23d062;return this[_0x245d67(0x337)](!!(_0x4f6856!=null&&_0x4f6856[_0x245d67(0x34c)]));}[_0x23d062(0x23c)](_0x193801){var _0x12abd4=_0x23d062;return this[_0x12abd4(0x2ca)]>MAX_RETRY_TIMEOUT?this[_0x12abd4(0x1d1)]():(this[_0x12abd4(0x1f5)]=createTimerObservable$(this[_0x12abd4(0x2ca)],{'timeout':this['_resendTimeout'],'reqId':_0x193801[_0x12abd4(0x136)]}),this[_0x12abd4(0x205)]=this[_0x12abd4(0x1f5)]['subscribe'](({reqId:_0x20d7a3,timeout:_0x5545ff})=>{this['_resendWithTimeout'](_0x20d7a3,_0x5545ff);}),this);}[_0x23d062(0x1d1)](){var _0x2023c5=_0x23d062;return this[_0x2023c5(0x125)](),this['_injector'][_0x2023c5(0x2f4)](OfflineState,this[_0x2023c5(0x432)],this[_0x2023c5(0x408)],this[_0x2023c5(0xf2)],[],this[_0x2023c5(0x173)]);}[_0x23d062(0x218)](){return this;}['resend'](){var _0xc88525=_0x23d062;this[_0xc88525(0x173)][_0xc88525(0x194)](this['_awaitingChangeset']);}['_onConflict'](_0x833b7d){var _0x2ed565=_0x23d062;return this[_0x2ed565(0x125)](),this[_0x2ed565(0x216)][_0x2ed565(0x2f4)](ConflictState,this[_0x2ed565(0x432)],this[_0x2ed565(0x408)],this[_0x2ed565(0xf2)],[],this[_0x2ed565(0x173)],_0x833b7d);}['_resendWithTimeout'](_0x5061c1,_0x28cbf6){var _0x338777=_0x23d062,_0x8c6921;_0x5061c1===((_0x8c6921=this[_0x338777(0xf2)])==null?void 0x0:_0x8c6921[_0x338777(0x136)])&&(this[_0x338777(0x22e)](),this[_0x338777(0x2ca)]=_0x28cbf6===0x0?0x3e8:_0x28cbf6*0x2);}[_0x23d062(0x125)](){var _0x2066ac=_0x23d062,_0x4d21b9;(_0x4d21b9=this[_0x2066ac(0x205)])==null||_0x4d21b9[_0x2066ac(0x2f7)](),this[_0x2066ac(0x2ca)]=0x0;}},__name(_a8,_0x23d062(0x373)),_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(_0x11c0e7,_0x25f49c,_0x311011,_0x1707ce,_0x4149f6,_0x4fa8dd,_0x39f3ec,_0x4b1f1b,_0xcc67b8,_0x58c11b,_0x2ae44f,_0x2734c6,_0x39c0fc){var _0x29ea99=_0x23d062;super(_0x11c0e7,_0x25f49c,_0x311011,_0x1707ce,_0x4149f6,_0xcc67b8,_0x2734c6,_0x4b1f1b,_0x39c0fc),__publicField(this,_0x29ea99(0x406),'awaiting_with_pending'),__publicField(this,_0x29ea99(0x2ca),0x0),__publicField(this,'_resendTimer'),__publicField(this,_0x29ea99(0x205)),(this[_0x29ea99(0x216)]=_0x39f3ec,this[_0x29ea99(0x305)]=_0x58c11b,this[_0x29ea99(0x2b3)]=_0x2ae44f,this[_0x29ea99(0x339)]=_0x39c0fc,_0x4fa8dd&&(this[_0x29ea99(0x1f5)]=_0x4fa8dd,this[_0x29ea99(0x205)]=this[_0x29ea99(0x1f5)]['subscribe'](({reqId:_0x14df56,timeout:_0x4b7da8})=>{var _0x52831e=_0x29ea99;this[_0x52831e(0x201)](_0x14df56,_0x4b7da8);})));}[_0x23d062(0x1fb)](_0xad2e50){var _0x123206=_0x23d062;return this['_pendingMutations'][_0x123206(0x17c)](_0xad2e50),this;}[_0x23d062(0x255)](_0x4b742b){var _0x5d07da=_0x23d062;if(this[_0x5d07da(0x13d)](_0x4b742b))return this[_0x5d07da(0x125)](),this[_0x5d07da(0x216)][_0x5d07da(0x2f4)](FetchingMissState,this[_0x5d07da(0x432)],this[_0x5d07da(0x408)],this[_0x5d07da(0xf2)],this[_0x5d07da(0x1d0)],null,[_0x4b742b],this[_0x5d07da(0x173)]);try{const _0x1bcd1c=this[_0x5d07da(0x2b3)][_0x5d07da(0xed)]([_0x4b742b],[this[_0x5d07da(0xf2)]],!0x1);if(isTransformChangesetsSuccess(_0x1bcd1c)){const {c1Prime:_0x3257fe,c2Prime:_0x49944b}=_0x1bcd1c,_0x277d57=this[_0x5d07da(0x2b3)][_0x5d07da(0x33c)](_0x3257fe[0x0],this[_0x5d07da(0x1d0)]);if(isTransformMutationsWithChangesetSuccess(_0x277d57)){const {c1Prime:_0x71c329,m2Prime:_0xd618d8}=_0x277d57;return this[_0x5d07da(0x302)](_0x71c329),_0x49944b[0x0][_0x5d07da(0x1f9)]=this[_0x5d07da(0x2c6)](),this[_0x5d07da(0x125)](),this[_0x5d07da(0x216)][_0x5d07da(0x2f4)](AwaitingWithPendingState,this[_0x5d07da(0x432)],this[_0x5d07da(0x408)],_0x49944b[0x0],_0xd618d8,this[_0x5d07da(0x173)],void 0x0);}throw _0x277d57[_0x5d07da(0x1f8)];}throw _0x1bcd1c[_0x5d07da(0x1f8)];}catch(_0x560c0f){return this[_0x5d07da(0x305)][_0x5d07da(0x1f8)](_0x560c0f),this['_onConflict'](!0x1);}}[_0x23d062(0x1ba)](_0xf67085){var _0x20fcbf=_0x23d062;if(this[_0x20fcbf(0x125)](),this[_0x20fcbf(0x13d)](_0xf67085))return this['_injector'][_0x20fcbf(0x2f4)](FetchingMissState,this[_0x20fcbf(0x432)],this[_0x20fcbf(0x408)],null,this[_0x20fcbf(0x1d0)],this[_0x20fcbf(0xf2)],[],this[_0x20fcbf(0x173)]);this[_0x20fcbf(0x202)]();const _0x578ff2=this[_0x20fcbf(0x216)][_0x20fcbf(0x2f4)](PendingState,this[_0x20fcbf(0x432)],this[_0x20fcbf(0x408)],this['_pendingMutations'],this['_handler']);return _0x578ff2[_0x20fcbf(0x1b5)](),_0x578ff2['_updateLocalCache'](),_0x578ff2;}[_0x23d062(0x1d3)](_0x4142a4){return this['_onConflict'](!!(_0x4142a4!=null&&_0x4142a4['isPermissionRej']));}['onRemoteRetry'](_0x4219fa){var _0x5cdacd=_0x23d062;return this[_0x5cdacd(0x2ca)]>MAX_RETRY_TIMEOUT?this['toggleOffline']():(this['_resendTimer']=createTimerObservable$(this[_0x5cdacd(0x2ca)],{'timeout':this[_0x5cdacd(0x2ca)],'reqId':_0x4219fa[_0x5cdacd(0x136)]}),this[_0x5cdacd(0x205)]=this[_0x5cdacd(0x1f5)]['subscribe'](({reqId:_0x4c284a,timeout:_0xe43459})=>{this['_resendWithTimeout'](_0x4c284a,_0xe43459);}),this);}['toggleOffline'](){var _0x58a5be=_0x23d062;return this[_0x58a5be(0x125)](),this[_0x58a5be(0x216)][_0x58a5be(0x2f4)](OfflineState,this[_0x58a5be(0x432)],this[_0x58a5be(0x408)],this[_0x58a5be(0xf2)],this[_0x58a5be(0x1d0)],this['_handler']);}[_0x23d062(0x218)](){return this;}['resend'](){var _0xac850f=_0x23d062;this[_0xac850f(0x173)]['onSendChangeset'](this[_0xac850f(0xf2)]);}['_onConflict'](_0x531964){var _0x56d990=_0x23d062;return this[_0x56d990(0x125)](),this[_0x56d990(0x216)][_0x56d990(0x2f4)](ConflictState,this[_0x56d990(0x432)],this['type'],null,this[_0x56d990(0x1d0)],this[_0x56d990(0x173)],_0x531964);}[_0x23d062(0x201)](_0xbd787b,_0x96445c){var _0x21f113=_0x23d062,_0xf5b809;_0xbd787b===((_0xf5b809=this[_0x21f113(0xf2)])==null?void 0x0:_0xf5b809[_0x21f113(0x136)])&&(this[_0x21f113(0x22e)](),this[_0x21f113(0x2ca)]=_0x96445c===0x0?0x3e8:_0x96445c*0x2);}[_0x23d062(0x125)](){var _0x3ea5a5;(_0x3ea5a5=this['_sender'])==null||_0x3ea5a5['unsubscribe'](),this['_resendTimeout']=0x0;}},__name(_a9,'AwaitingWithPendingState'),_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(_0x4c41e0,_0x2e1f74,_0x3f3a77,_0x1cbd21,_0x4672d0,_0x2762b6=!0x1,_0x58e444,_0xfc7065,_0x200a29,_0x37c3c1,_0x22b8a5,_0x4024af,_0x2c7cdb){var _0x40cde3=_0x23d062;super(_0x4c41e0,_0x2e1f74,_0x3f3a77,_0x1cbd21,_0x4672d0,_0xfc7065,_0x200a29,_0x37c3c1,_0x2c7cdb),__publicField(this,'status',_0x40cde3(0x2e6)),(this[_0x40cde3(0x1f1)]=_0x2762b6,this[_0x40cde3(0x210)]=_0x58e444,this[_0x40cde3(0x272)]=_0x22b8a5,this[_0x40cde3(0x17f)]=_0x4024af,this['localCacheService']=_0x2c7cdb,this[_0x40cde3(0x400)](),this[_0x40cde3(0x15d)](),this[_0x40cde3(0x43a)]());}[_0x23d062(0x1fb)](){return this;}['onRemoteChangeset'](){return this;}[_0x23d062(0x1ba)](){return this;}[_0x23d062(0x1d3)](){return this;}[_0x23d062(0x23c)](){return this;}[_0x23d062(0x1d1)](){return this;}['toggleOnline'](){return this;}[_0x23d062(0x22e)](){var _0x4543b3=_0x23d062;throw new Error(_0x4543b3(0x261));}[_0x23d062(0x15d)](){var _0x49946c=_0x23d062,_0x44bd32;(_0x44bd32=this['_localCacheService'])==null||_0x44bd32[_0x49946c(0x278)](this[_0x49946c(0x432)],this['type'],null,[]);}[_0x23d062(0x400)](){var _0x2770b3=_0x23d062;this[_0x2770b3(0x1f1)]?this[_0x2770b3(0x17f)][_0x2770b3(0x161)]({'id':CollaborationUIEventId[_0x2770b3(0x39d)]}):this[_0x2770b3(0x17f)][_0x2770b3(0x161)]({'id':CollaborationUIEventId[_0x2770b3(0x27e)]});}[_0x23d062(0x43a)](){var _0x528e66=_0x23d062;this[_0x528e66(0x210)][_0x528e66(0x33e)](new WorkbookEditablePermission(this[_0x528e66(0x432)])['id'],!0x1);}},__name(_a10,_0x23d062(0x1c1)),_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(_0x210f7a,_0x181341,_0x2546ca,_0x544572,_0x12b489,_0x257b2a,_0x4f6fdb,_0x37a225,_0x1798fc,_0x562508){var _0x42e1df=_0x23d062;super(_0x210f7a,_0x181341,_0x2546ca,_0x544572,_0x12b489,_0x37a225,_0x1798fc,_0x4f6fdb,_0x562508),__publicField(this,_0x42e1df(0x406),_0x42e1df(0x262)),this[_0x42e1df(0x216)]=_0x257b2a;}[_0x23d062(0x1fb)](_0x2a90e4){var _0x36bebc=_0x23d062;return this['_pendingMutations']['push'](_0x2a90e4),this[_0x36bebc(0x355)](),this;}[_0x23d062(0x255)](_0x18c478){var _0x3e99d3=_0x23d062;throw new Error(_0x3e99d3(0x2ee));}[_0x23d062(0x1ba)](){var _0x19487c=_0x23d062;throw new Error(_0x19487c(0x3f2));}[_0x23d062(0x1d3)](){var _0x3ed3f2=_0x23d062;throw new Error(_0x3ed3f2(0x246));}['onRemoteRetry'](){return this;}[_0x23d062(0x1d1)](){return this;}[_0x23d062(0x218)](){var _0x206de5=_0x23d062;const {_injector:_0x38fc0b,_pendingMutations:_0xe6d41a,_awaitingChangeset:_0x59d232,unitID:_0x26bd74,_handler:_0x42be6b,type:_0x10da96}=this,_0x2e37ba=createOnlineState(_0x38fc0b,_0x26bd74,_0x10da96,_0x59d232,_0xe6d41a,_0x42be6b);return _0x2e37ba instanceof PendingState?_0x2e37ba[_0x206de5(0x1b5)]():(_0x2e37ba instanceof AwaitingWithPendingState||_0x2e37ba instanceof AwaitingState)&&_0x2e37ba[_0x206de5(0x22e)](),_0x2e37ba;}['resend'](){var _0x3310fa=_0x23d062;throw new Error(_0x3310fa(0x19d));}},__name(_a11,_0x23d062(0x30c)),_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(_0x2a93e,_0x567e59,_0x5d0160,_0x4adbe6,_0x50a099,_0x14b23c,_0x13cc04,_0x39247e,_0x1fd40b,_0x53158b,_0x7ed3f4,_0x453074,_0x2d0bc5,_0x562d25){var _0x2b7bd2=_0x23d062;super(_0x2a93e,_0x567e59,_0x5d0160,_0x4adbe6,_0x13cc04,_0x7ed3f4,_0x453074,_0x1fd40b,_0x562d25),__publicField(this,_0x2b7bd2(0x406),'fetch_missing'),(this[_0x2b7bd2(0x3b1)]=_0x50a099,this[_0x2b7bd2(0x1db)]=_0x14b23c,this[_0x2b7bd2(0x216)]=_0x39247e,this['_logService']=_0x53158b,this['_transformService']=_0x2d0bc5,this[_0x2b7bd2(0x339)]=_0x562d25);}['onMissedChangesetFetched'](_0x5e8174){var _0x3fdbfa=_0x23d062;try{const _0x15d616=[..._0x5e8174,...this[_0x3fdbfa(0x1db)]],_0x510ac5=[this[_0x3fdbfa(0xf2)]||this['_acknowledgedAwaitingChangeset']]['filter'](_0x56366b=>!!_0x56366b);let _0x4e8adb,_0x15983e;if(_0x510ac5[_0x3fdbfa(0x420)]){const _0xc751d8=this[_0x3fdbfa(0x2b3)][_0x3fdbfa(0xed)](_0x15d616,_0x510ac5,!0x1);if(!isTransformChangesetsSuccess(_0xc751d8))throw _0xc751d8[_0x3fdbfa(0x1f8)];_0x4e8adb=_0xc751d8[_0x3fdbfa(0x3bf)],_0x15983e=_0xc751d8[_0x3fdbfa(0x25e)];}else _0x4e8adb=_0x15d616,_0x15983e=[];let _0x472097=this[_0x3fdbfa(0x1d0)];_0x4e8adb['forEach'](_0x19a34e=>{var _0x6d69e1=_0x3fdbfa;let _0x325b47;if(_0x472097['length']){const _0x2618b6=this['_transformService'][_0x6d69e1(0x33c)](_0x19a34e,_0x472097);if(!isTransformMutationsWithChangesetSuccess(_0x2618b6))throw _0x2618b6[_0x6d69e1(0x1f8)];_0x325b47=_0x2618b6[_0x6d69e1(0x3bf)],_0x472097=_0x2618b6[_0x6d69e1(0x349)];}else _0x325b47=_0x19a34e;this[_0x6d69e1(0x302)](_0x325b47);}),this[_0x3fdbfa(0x3b1)]&&this[_0x3fdbfa(0x202)](),this[_0x3fdbfa(0xf2)]&&_0x15983e[_0x3fdbfa(0x420)]&&(_0x15983e[0x0][_0x3fdbfa(0x1f9)]=this[_0x3fdbfa(0x2c6)]());let _0x47896a;if(this[_0x3fdbfa(0xf2)]&&_0x472097[_0x3fdbfa(0x420)]!==0x0)_0x47896a=this[_0x3fdbfa(0x216)]['createInstance'](AwaitingWithPendingState,this[_0x3fdbfa(0x432)],this[_0x3fdbfa(0x408)],_0x15983e[0x0],_0x472097,this[_0x3fdbfa(0x173)],void 0x0);else{if(this['_awaitingChangeset']&&_0x472097[_0x3fdbfa(0x420)]===0x0)_0x15983e[0x0]['baseRev']=this[_0x3fdbfa(0x2c6)](),_0x47896a=this[_0x3fdbfa(0x216)]['createInstance'](AwaitingState,this[_0x3fdbfa(0x432)],this[_0x3fdbfa(0x408)],_0x15983e[0x0],this[_0x3fdbfa(0x173)]);else{if(_0x472097[_0x3fdbfa(0x420)]!==0x0){const _0x4ed0e5=this[_0x3fdbfa(0x216)]['createInstance'](PendingState,this[_0x3fdbfa(0x432)],this[_0x3fdbfa(0x408)],_0x472097,this[_0x3fdbfa(0x173)]);_0x4ed0e5[_0x3fdbfa(0x1b5)](),_0x47896a=_0x4ed0e5;}else _0x47896a=this[_0x3fdbfa(0x216)][_0x3fdbfa(0x2f4)](SyncedState,this[_0x3fdbfa(0x432)],this[_0x3fdbfa(0x408)],this[_0x3fdbfa(0x173)]);}}return _0x47896a['_updateLocalCache'](),_0x47896a;}catch(_0x2f8e07){return this[_0x3fdbfa(0x305)][_0x3fdbfa(0x1f8)](_0x3fdbfa(0x26b),_0x3fdbfa(0x371),_0x2f8e07),this[_0x3fdbfa(0x216)][_0x3fdbfa(0x2f4)](ConflictState,this['unitID'],this[_0x3fdbfa(0x408)],this['_awaitingChangeset'],this[_0x3fdbfa(0x1d0)],this[_0x3fdbfa(0x173)],!0x1);}}[_0x23d062(0x22e)](){var _0x49b36d=_0x23d062;throw new Error(_0x49b36d(0x230));}['appendMutation'](_0x3f8dab){var _0x2413e8=_0x23d062;return this[_0x2413e8(0x1d0)][_0x2413e8(0x17c)](_0x3f8dab),this;}[_0x23d062(0x255)](_0x2f52db){var _0x13575a=_0x23d062;return this[_0x13575a(0x1db)][_0x13575a(0x17c)](_0x2f52db),this;}[_0x23d062(0x1ba)](_0x4aa142){var _0x4f276e=_0x23d062;if(this[_0x4f276e(0xf2)])return this[_0x4f276e(0x3b1)]=this['_awaitingChangeset'],this['_awaitingChangeset']=null,this;throw new Error(_0x4f276e(0x3ba));}[_0x23d062(0x1d3)](_0x1dd59c){var _0x3a5976=_0x23d062;return this[_0x3a5976(0x337)](!!(_0x1dd59c!=null&&_0x1dd59c['isPermissionRej']));}[_0x23d062(0x23c)](){return this;}[_0x23d062(0x1d1)](){var _0x520402=_0x23d062;return this[_0x520402(0x216)][_0x520402(0x2f4)](OfflineState,this['unitID'],this[_0x520402(0x408)],this['_awaitingChangeset'],this[_0x520402(0x1d0)],this[_0x520402(0x173)]);}[_0x23d062(0x218)](){return this;}[_0x23d062(0x337)](_0x2773da){var _0x28bc76=_0x23d062;return this[_0x28bc76(0x216)][_0x28bc76(0x2f4)](ConflictState,this[_0x28bc76(0x432)],this[_0x28bc76(0x408)],this[_0x28bc76(0xf2)],this[_0x28bc76(0x1d0)],this[_0x28bc76(0x173)],_0x2773da);}},__name(_a12,'FetchingMissState'),_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(_0x1dbc32,_0x1bd464,_0x1a626e,_0x431dd9,_0x1b7cf9,_0x401788){var _0x5f4210=_0x23d062;return _0x431dd9&&_0x1b7cf9[_0x5f4210(0x420)]?_0x1dbc32[_0x5f4210(0x2f4)](AwaitingWithPendingState,_0x1bd464,_0x1a626e,_0x431dd9,_0x1b7cf9,_0x401788,void 0x0):_0x431dd9?_0x1dbc32[_0x5f4210(0x2f4)](AwaitingState,_0x1bd464,_0x1a626e,_0x431dd9,_0x401788):_0x1b7cf9[_0x5f4210(0x420)]?_0x1dbc32['createInstance'](PendingState,_0x1bd464,_0x1a626e,_0x1b7cf9,_0x401788):_0x1dbc32[_0x5f4210(0x2f4)](SyncedState,_0x1bd464,_0x1a626e,_0x401788);}__name(createOnlineState,_0x23d062(0x3c3));var __defProp$c=Object[_0x23d062(0x3e0)],__getOwnPropDesc$c=Object[_0x23d062(0x237)],__decorateClass$c=__name((_0x21a855,_0x418042,_0xbe645e,_0x3ce467)=>{for(var _0x5036cd=_0x3ce467>0x1?void 0x0:_0x3ce467?__getOwnPropDesc$c(_0x418042,_0xbe645e):_0x418042,_0x5bf4f9=_0x21a855['length']-0x1,_0x204ed8;_0x5bf4f9>=0x0;_0x5bf4f9--)(_0x204ed8=_0x21a855[_0x5bf4f9])&&(_0x5036cd=(_0x3ce467?_0x204ed8(_0x418042,_0xbe645e,_0x5036cd):_0x204ed8(_0x5036cd))||_0x5036cd);return _0x3ce467&&_0x5036cd&&__defProp$c(_0x418042,_0xbe645e,_0x5036cd),_0x5036cd;},_0x23d062(0x429)),__decorateParam$c=__name((_0x1eb4d2,_0x11e437)=>(_0x7bf1d7,_0x9c1b22)=>_0x11e437(_0x7bf1d7,_0x9c1b22,_0x1eb4d2),_0x23d062(0x195)),_a13;let CollaborationEntity=(_a13=class extends RxDisposable{constructor(_0x21b214,_0x13f557,_0x53a610,_0x4ca112,_0x1254da,_0x4171c7,_0x5b8f3e,_0x467bdc,_0x403c97,_0x1f8bc2,_0x4890b5,_0x3217e8,_0x829bf5){var _0x4d871a=_0x23d062;super(),__publicField(this,'_state$',new BehaviorSubject(null)),__publicField(this,_0x4d871a(0x114),this['_state$']['asObservable']()),__publicField(this,_0x4d871a(0x394)),__publicField(this,_0x4d871a(0x30b),!0x1),__publicField(this,_0x4d871a(0x3f8),''),__publicField(this,_0x4d871a(0x384),0x0),__publicField(this,_0x4d871a(0x395),this[_0x4d871a(0x114)]['pipe'](_0x316401(_0x44f6f7=>_0x44f6f7?_0x44f6f7[_0x4d871a(0x406)]:CollaborationStatus['OFFLINE']),shareReplay(0x1))),__publicField(this,_0x4d871a(0xf3),!0x1),__publicField(this,'_remoteChangesetQueue',[]),(this[_0x4d871a(0x432)]=_0x21b214,this['session']=_0x13f557,this['_type']=_0x53a610,this[_0x4d871a(0x216)]=_0x4ca112,this['_compressMutationService']=_0x1254da,this['_localeService']=_0x4171c7,this['_revisionService']=_0x5b8f3e,this[_0x4d871a(0x143)]=_0x467bdc,this[_0x4d871a(0x305)]=_0x403c97,this[_0x4d871a(0x103)]=_0x1f8bc2,this[_0x4d871a(0x210)]=_0x4890b5,this[_0x4d871a(0x1fe)]=_0x3217e8,this[_0x4d871a(0x1b9)]=_0x829bf5);}get[_0x23d062(0x2d2)](){return this['_state'];}async['init'](){var _0x32cfee=_0x23d062;if(this[_0x32cfee(0x2d2)])throw new Error(_0x32cfee(0x431));await this[_0x32cfee(0x435)]();}[_0x23d062(0x356)](){var _0x18d7ae=_0x23d062;return this[_0x18d7ae(0x30b)]=!0x0,toDisposable(()=>{var _0x8336ca=_0x18d7ae;this[_0x8336ca(0x30b)]=!0x1,this[_0x8336ca(0x166)]();});}[_0x23d062(0x38d)](_0x3fbeca){var _0x497ecf=_0x23d062;this[_0x497ecf(0x138)](_0x3fbeca);}['_updateState'](_0x4af4eb){var _0x1dfff9=_0x23d062;this['_state']=_0x4af4eb,this[_0x1dfff9(0x11b)][_0x1dfff9(0x369)](_0x4af4eb);}async[_0x23d062(0x435)](){var _0x455b52=_0x23d062,_0x2c2683;this[_0x455b52(0x3c9)](await this[_0x455b52(0x295)]()),this['_singleActiveUnitService']&&((_0x2c2683=this['_singleActiveUnitService'])==null||_0x2c2683[_0x455b52(0x418)](this[_0x455b52(0x432)]),this[_0x455b52(0x3b9)](this[_0x455b52(0x1fe)][_0x455b52(0x306)](this['unitID'])[_0x455b52(0x20e)](_0x195528=>{var _0xeb9447=_0x455b52;this['_logService']['debug'](_0xeb9447(0x2c9),_0xeb9447(0x256),_0x195528),_0x195528===UnitStatus[_0xeb9447(0x31f)]?(this[_0xeb9447(0x143)][_0xeb9447(0x161)]({'id':CollaborationUIEventId[_0xeb9447(0x1a1)]}),this[_0xeb9447(0x210)][_0xeb9447(0x33e)](new WorkbookEditablePermission(this[_0xeb9447(0x432)])['id'],!0x1),this['_permissionService'][_0xeb9447(0x1f0)](!0x1)):(this['_permissionService']['updatePermissionPoint'](new WorkbookEditablePermission(this[_0xeb9447(0x432)])['id'],!0x0),this[_0xeb9447(0x210)][_0xeb9447(0x1f0)](!0x0));})));let _0x52238e=!0x1;return this[_0x455b52(0x3b9)](this[_0x455b52(0x1a5)][_0x455b52(0x274)]['subscribe'](_0x4eabfe=>{var _0xdb4f24=_0x455b52;_0x4eabfe===SessionStatus[_0xdb4f24(0x22d)]?this['_toggleOnline'](_0x52238e):_0x4eabfe===SessionStatus[_0xdb4f24(0x2b2)]&&(_0x52238e=!0x0,this[_0xdb4f24(0x126)]());})),this[_0x455b52(0x3b9)](this[_0x455b52(0x1a5)]['event$'][_0x455b52(0x20e)](_0x38150=>{var _0x5e1dc9=_0x455b52;try{switch(_0x38150[_0x5e1dc9(0x231)]){case CollaborationEvent[_0x5e1dc9(0x3e4)]:{this[_0x5e1dc9(0x14a)](parseProtocolChangeset(_0x38150[_0x5e1dc9(0x16d)]));break;}case CollaborationEvent[_0x5e1dc9(0x3c0)]:{this[_0x5e1dc9(0x1ad)](_0x38150['data']);break;}case CollaborationEvent[_0x5e1dc9(0x2f0)]:{this[_0x5e1dc9(0x1cd)]();break;}case CollaborationEvent[_0x5e1dc9(0xf0)]:{this[_0x5e1dc9(0x2a8)](_0x38150[_0x5e1dc9(0x16d)]);break;}case CollaborationEvent[_0x5e1dc9(0x1a2)]:{this[_0x5e1dc9(0x41e)](_0x38150[_0x5e1dc9(0x16d)][_0x5e1dc9(0x322)][_0x5e1dc9(0x3a9)](_0x1f3ce6=>parseProtocolChangeset(_0x1f3ce6)));break;}case CollaborationEvent[_0x5e1dc9(0x190)]:{this[_0x5e1dc9(0x1cd)]({'isPermissionRej':!0x0});break;}case CollaborationEvent['UNISCRIPT_RUN']:break;}}catch(_0x524547){throw console[_0x5e1dc9(0x1f8)](_0x5e1dc9(0x213),_0x524547),_0x524547;}})),this[_0x455b52(0x394)];}['_unlockTransition'](){var _0x9b2c69=_0x23d062;this[_0x9b2c69(0xf3)]=!0x1;}['_lockTransition'](){var _0x468391=_0x23d062;if(this['_transitionLocked'])throw new Error(_0x468391(0x1e0));this['_transitionLocked']=!0x0;}[_0x23d062(0x138)](_0x33bd68){var _0x2264e0=_0x23d062;this[_0x2264e0(0xe4)](),this['_updateState'](this[_0x2264e0(0x394)][_0x2264e0(0x1fb)](_0x33bd68)),this[_0x2264e0(0x39f)]();}[_0x23d062(0x14a)](_0xb3c389){var _0xa5219d=_0x23d062;if(!(_0xb3c389[_0xa5219d(0x347)]<=this[_0xa5219d(0x104)]['getCurrentRevOfUnit'](this['unitID']))){if(this[_0xa5219d(0x30b)]){this['_remoteChangesetQueue'][_0xa5219d(0x17c)](_0xb3c389);return;}this[_0xa5219d(0x35a)](_0xb3c389);}}[_0x23d062(0x166)](){var _0x571982=_0x23d062;this[_0x571982(0x37e)]['forEach'](_0x1aabb2=>this[_0x571982(0x35a)](_0x1aabb2)),this[_0x571982(0x37e)]=[];}[_0x23d062(0x35a)](_0x36c150){var _0x1311cd=_0x23d062;const _0x1538e4=this[_0x1311cd(0x18f)][_0x1311cd(0x34f)]['fetchThroughInterceptors'](this['_compressMutationService']['interceptor'][_0x1311cd(0x33b)]()[_0x1311cd(0x20b)])(_0x36c150[_0x1311cd(0x3ff)],null)||_0x36c150['mutations'],_0x486d68={..._0x36c150,'mutations':_0x1538e4};this['_lockTransition'](),this[_0x1311cd(0x3c9)](this[_0x1311cd(0x394)][_0x1311cd(0x255)](_0x486d68)),this[_0x1311cd(0x39f)]();}[_0x23d062(0x1ad)](_0x21eaa8){var _0x1cf51c=_0x23d062;this['_lockTransition'](),this[_0x1cf51c(0x3c9)](this['_state'][_0x1cf51c(0x1ba)](_0x21eaa8)),this[_0x1cf51c(0x39f)]();}[_0x23d062(0x1cd)](_0x14f424){var _0x20dd49=_0x23d062;this[_0x20dd49(0xe4)](),this[_0x20dd49(0x3c9)](this['_state'][_0x20dd49(0x1d3)](_0x14f424)),this[_0x20dd49(0x39f)]();}[_0x23d062(0x2a8)](_0x10d5cc){var _0x5dafa8=_0x23d062;this[_0x5dafa8(0xe4)](),this[_0x5dafa8(0x3c9)](this[_0x5dafa8(0x394)]['onRemoteRetry'](_0x10d5cc)),this[_0x5dafa8(0x39f)]();}[_0x23d062(0x41e)](_0x4dfcf1){var _0x24c27d=_0x23d062;if(!(this[_0x24c27d(0x394)]instanceof FetchingMissState))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0xb50797=_0x4dfcf1[_0x24c27d(0x3a9)](_0x470a4b=>{var _0x51dce4=_0x24c27d;const _0x479b92=this[_0x51dce4(0x18f)][_0x51dce4(0x34f)][_0x51dce4(0x346)](this[_0x51dce4(0x18f)]['interceptor'][_0x51dce4(0x33b)]()[_0x51dce4(0x20b)])(_0x470a4b[_0x51dce4(0x3ff)],null)||_0x470a4b[_0x51dce4(0x3ff)];return{..._0x470a4b,'mutations':_0x479b92};});this[_0x24c27d(0xe4)](),this['_updateState'](this[_0x24c27d(0x394)][_0x24c27d(0x20f)](_0xb50797)),this['_unlockTransition']();}[_0x23d062(0x126)](){var _0x336e48=_0x23d062;this[_0x336e48(0xe4)](),this[_0x336e48(0x3c9)](this[_0x336e48(0x394)][_0x336e48(0x1d1)]()),this[_0x336e48(0x39f)]();}[_0x23d062(0x212)](_0x145c96=!0x1){var _0x4d1be2=_0x23d062;this[_0x4d1be2(0xe4)](),this[_0x4d1be2(0x3c9)](this[_0x4d1be2(0x394)][_0x4d1be2(0x218)]()),this['_unlockTransition']();const _0xfeb63=this[_0x4d1be2(0x394)];_0x145c96&&_0xfeb63 instanceof SyncedState&&(this['_lockTransition'](),this[_0x4d1be2(0x3c9)](_0xfeb63[_0x4d1be2(0x424)]()),this[_0x4d1be2(0x39f)]());}async[_0x23d062(0x295)](){return new Promise(_0x291d8f=>{var _0x316fc5=_0x3017;this[_0x316fc5(0x1a5)][_0x316fc5(0x274)][_0x316fc5(0x3c6)](_0x2b6605(0x1))[_0x316fc5(0x20e)](async _0x76cfd9=>{var _0x16ceaa=_0x316fc5;_0x291d8f(await this[_0x16ceaa(0x2ed)](_0x76cfd9===SessionStatus[_0x16ceaa(0x22d)]));});});}[_0x23d062(0x425)](){var _0xa67c3c=_0x23d062;const _0x4c4647=this[_0xa67c3c(0x432)];return{'onStateChange':__name((_0x183c7b,_0x318568)=>{var _0x28df9e=_0xa67c3c;if(_0x183c7b!==this[_0x28df9e(0x394)])throw new Error(_0x28df9e(0x249)+_0x183c7b['status']+'\x0aAfter:\x20'+_0x318568['status']+_0x28df9e(0x18d)+this[_0x28df9e(0x394)][_0x28df9e(0x406)]);this[_0x28df9e(0x3c9)](_0x318568);},_0xa67c3c(0x280)),'onSendChangeset':__name(_0x39f76e=>{var _0xdf6886=_0xa67c3c;_0x39f76e[_0xdf6886(0x3e8)]||(_0x39f76e[_0xdf6886(0x3e8)]=this[_0xdf6886(0x3f8)],_0x39f76e['reqId']=++this[_0xdf6886(0x384)]);const _0x347898={'eventID':CollaborationEvent[_0xdf6886(0x37f)],'data':{'unitID':_0x39f76e['unitID'],'unitType':this['_type'],'changeset':_0x39f76e,'memberID':this[_0xdf6886(0x1a5)][_0xdf6886(0x11c)]()}};this[_0xdf6886(0x1a5)][_0xdf6886(0x35b)](_0x347898,this[_0xdf6886(0x432)]);},'onSendChangeset'),'onMissingChangesets':__name(({from:_0x5b9ac0,to:_0x907054})=>{var _0x8c0b9b=_0xa67c3c;this[_0x8c0b9b(0x305)][_0x8c0b9b(0x2ba)](_0x8c0b9b(0x2c9),_0x8c0b9b(0x276)+_0x5b9ac0+_0x8c0b9b(0x259)+_0x907054);const _0x55983a={'eventID':CollaborationEvent['FETCH_MISSING'],'data':{'unitID':_0x4c4647,'unitType':this['_type'],'from':_0x5b9ac0,'to':_0x907054}};this[_0x8c0b9b(0x1a5)]['send'](_0x55983a,this[_0x8c0b9b(0x432)]);},'onMissingChangesets')};}async[_0x23d062(0x2ed)](_0x27db04){var _0xb092bd=_0x23d062,_0x3e3a84,_0x3659dc,_0x211d4b;const _0x4580e8=await((_0x3e3a84=this[_0xb092bd(0x1b9)])==null?void 0x0:_0x3e3a84[_0xb092bd(0x3a2)](this[_0xb092bd(0x432)])),_0x32b4ed=(_0x3659dc=_0x4580e8==null?void 0x0:_0x4580e8[_0xb092bd(0x3ff)])!=null?_0x3659dc:[],_0x3ad18f=(_0x211d4b=_0x4580e8==null?void 0x0:_0x4580e8['awaitingChangeset'])!=null?_0x211d4b:null,_0x4c2f01=!!(_0x3ad18f!=null&&_0x3ad18f[_0xb092bd(0x3e8)])&&!!(_0x3ad18f!=null&&_0x3ad18f[_0xb092bd(0x136)]);this[_0xb092bd(0x3f8)]=_0x4c2f01?_0x3ad18f[_0xb092bd(0x3e8)]:v4(),this['_changesetReqId']=_0x4c2f01?_0x3ad18f['reqId']:0x0;const _0xcc0474=this[_0xb092bd(0x432)];try{this[_0xb092bd(0x10d)](_0x3ad18f,_0x32b4ed);}catch(_0x2e95a9){this[_0xb092bd(0x305)][_0xb092bd(0x1f8)](_0x2e95a9);}const _0x38340d=this[_0xb092bd(0x425)]();if(_0x27db04){const _0x15adc5=createOnlineState(this[_0xb092bd(0x216)],_0xcc0474,this[_0xb092bd(0x328)],_0x3ad18f,_0x32b4ed,_0x38340d);return _0x15adc5 instanceof PendingState?_0x15adc5['_schedule']():(_0x15adc5 instanceof AwaitingWithPendingState||_0x15adc5 instanceof AwaitingState)&&_0x15adc5[_0xb092bd(0x22e)](),_0x15adc5;}return this[_0xb092bd(0x216)][_0xb092bd(0x2f4)](OfflineState,_0xcc0474,this[_0xb092bd(0x328)],_0x3ad18f,_0x32b4ed,_0x38340d);}[_0x23d062(0x10d)](_0x12d35c,_0x5cbccf){var _0x506517=_0x23d062,_0x1fa038,_0x289b90;const _0x38fd58=this[_0x506517(0x18f)][_0x506517(0x34f)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x506517(0x34f)][_0x506517(0x33b)]()['COMPRESS_MUTATION_APPLY']);(_0x1fa038=_0x38fd58((_0x12d35c==null?void 0x0:_0x12d35c['mutations'])||[],null))==null||_0x1fa038['forEach'](_0x4f99b3=>this['_commandService'][_0x506517(0x32a)](_0x4f99b3['id'],_0x4f99b3['params'])),(_0x289b90=_0x38fd58(_0x5cbccf||[],null))==null||_0x289b90[_0x506517(0x29e)](_0x5f2049=>this[_0x506517(0x103)]['executeCommand'](_0x5f2049['id'],_0x5f2049[_0x506517(0x310)]));}},__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(_0x21c9c8,_0x4cb6bb,_0x2a26ab,_0x3d34d1,_0x339ae0,_0x22f873,_0x5ca863,_0x1077d3,_0x3cb598,_0x265c77,_0x70bae,_0x417fee,_0x1aeb4e){var _0x3e5a90=_0x23d062;super(_0x21c9c8,_0x2a26ab,_0x4cb6bb,_0x3d34d1,_0x339ae0,_0x22f873,_0x5ca863,_0x1077d3,_0x3cb598,_0x265c77,_0x70bae,_0x417fee,_0x1aeb4e),__publicField(this,_0x3e5a90(0x372),null),(this[_0x3e5a90(0x432)]=_0x21c9c8,this[_0x3e5a90(0x408)]=_0x4cb6bb);}['addHandlerCallback'](_0x28d0cd){this['_handlerCallback']=_0x28d0cd;}[_0x23d062(0x2e5)](){var _0x44896b=_0x23d062;this[_0x44896b(0x372)]=null,super['dispose']();}[_0x23d062(0x425)](){var _0x340fdb=_0x23d062;const _0x243470=super[_0x340fdb(0x425)]();return _0x243470[_0x340fdb(0x43c)]=_0x532f71=>{var _0x2e564e=_0x340fdb,_0x314a9c,_0xb44b2e;return(_0xb44b2e=(_0x314a9c=this[_0x2e564e(0x372)])==null?void 0x0:_0x314a9c[_0x2e564e(0x43c)])==null?void 0x0:_0xb44b2e[_0x2e564e(0x229)](_0x314a9c,_0x532f71);},_0x243470[_0x340fdb(0x24d)]=_0x52d55b=>{var _0x4d6302,_0x90ffc9;return(_0x90ffc9=(_0x4d6302=this['_handlerCallback'])==null?void 0x0:_0x4d6302['onTransformState'])==null?void 0x0:_0x90ffc9['call'](_0x4d6302,_0x52d55b);},_0x243470['onTransformSelections']=_0x1df732=>{var _0x5abaa2=_0x340fdb,_0x720caa,_0x22e7bb;return(_0x22e7bb=(_0x720caa=this[_0x5abaa2(0x372)])==null?void 0x0:_0x720caa[_0x5abaa2(0x2a5)])==null?void 0x0:_0x22e7bb['call'](_0x720caa,_0x1df732);},_0x243470[_0x340fdb(0x149)]=_0x194d58=>{var _0x4bd2c5=_0x340fdb,_0x39970b,_0x17876f;return(_0x17876f=(_0x39970b=this[_0x4bd2c5(0x372)])==null?void 0x0:_0x39970b[_0x4bd2c5(0x149)])==null?void 0x0:_0x17876f[_0x4bd2c5(0x229)](_0x39970b,_0x194d58);},_0x243470[_0x340fdb(0x10a)]=_0x467f76=>{var _0x266979=_0x340fdb,_0x3f0e4e,_0x1f8b1f,_0x1754a9;if(!((_0x3f0e4e=this[_0x266979(0x372)])!=null&&_0x3f0e4e[_0x266979(0x10a)]))throw new Error(_0x266979(0x275));return(_0x1754a9=(_0x1f8b1f=this['_handlerCallback'])==null?void 0x0:_0x1f8b1f[_0x266979(0x10a)])==null?void 0x0:_0x1754a9[_0x266979(0x229)](_0x1f8b1f,_0x467f76);},_0x243470[_0x340fdb(0x3f0)]=_0x16cc32=>{var _0x2733ec=_0x340fdb,_0x5e89d5,_0x3418c4,_0x3b67f7;if(!((_0x5e89d5=this[_0x2733ec(0x372)])!=null&&_0x5e89d5[_0x2733ec(0x3f0)]))throw new Error('onTransformRemoteChangesetByStateCache\x20callback\x20is\x20not\x20added\x20yet.');return(_0x3b67f7=(_0x3418c4=this[_0x2733ec(0x372)])==null?void 0x0:_0x3418c4[_0x2733ec(0x3f0)])==null?void 0x0:_0x3b67f7['call'](_0x3418c4,_0x16cc32);},_0x243470;}async['_init'](){var _0x32ed34=_0x23d062;const _0x538841=await super[_0x32ed34(0x435)]();return this[_0x32ed34(0x3b9)](this[_0x32ed34(0x103)][_0x32ed34(0x196)]((_0x112af1,_0x501eb1)=>{var _0x1d06dd=_0x32ed34;if(_0x112af1[_0x1d06dd(0x408)]!==CommandType[_0x1d06dd(0x2b5)]||_0x501eb1!=null&&_0x501eb1[_0x1d06dd(0x189)]||_0x501eb1!=null&&_0x501eb1[_0x1d06dd(0x1e5)]||_0x112af1['id']===RichTextEditingMutation['id'])return;const _0x47b149=_0x112af1[_0x1d06dd(0x310)];if((_0x47b149==null?void 0x0:_0x47b149[_0x1d06dd(0x291)])!==this['unitID'])return;const _0x3330d9=_0x112af1,_0x9c6832=this['_compressMutationService'][_0x1d06dd(0x34f)][_0x1d06dd(0x346)](this['_compressMutationService']['interceptor']['getInterceptPoints']()[_0x1d06dd(0x252)])([_0x3330d9],null)||[_0x3330d9];this[_0x1d06dd(0x138)](_0x9c6832[0x0]);})),_0x538841;}},__name(_a14,_0x23d062(0x26e)),_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(_0x591a45,_0x236890,_0x2a7f22,_0x396f04,_0x455820,_0x53406e,_0x341aa4,_0x243b18,_0x1f42cf,_0x253d4f,_0x5440b7,_0x590be9,_0x135272,_0x4789d3){var _0xcd04e5=_0x23d062;super(_0x591a45,_0x2a7f22,_0x236890,_0x396f04,_0x455820,_0x53406e,_0x341aa4,_0x1f42cf,_0x253d4f,_0x5440b7,_0x590be9,_0x135272,_0x4789d3),this['unitID']=_0x591a45,this[_0xcd04e5(0x408)]=_0x236890,this[_0xcd04e5(0x254)]=_0x243b18;}[_0x23d062(0x425)](){var _0x4ff207=_0x23d062;const _0x225532=super[_0x4ff207(0x425)]();return _0x225532[_0x4ff207(0x2a5)]=_0x3d991d=>this[_0x4ff207(0x254)][_0x4ff207(0x334)](_0x3d991d),_0x225532;}async[_0x23d062(0x435)](){var _0x358b33=_0x23d062;const _0x5b0c9b=await super[_0x358b33(0x435)]();return this[_0x358b33(0x3b9)](this[_0x358b33(0x103)][_0x358b33(0x196)]((_0x1f5308,_0x597a54)=>{var _0x52982e=_0x358b33;if(_0x1f5308[_0x52982e(0x408)]!==CommandType['MUTATION']||_0x597a54!=null&&_0x597a54[_0x52982e(0x189)]||_0x597a54!=null&&_0x597a54[_0x52982e(0x1e5)])return;const _0x271cf4=_0x1f5308[_0x52982e(0x310)];if((_0x271cf4==null?void 0x0:_0x271cf4['unitId'])!==this[_0x52982e(0x432)])return;const _0x1b68e1=_0x1f5308,_0x5575d3=this['_compressMutationService'][_0x52982e(0x34f)][_0x52982e(0x346)](this[_0x52982e(0x18f)][_0x52982e(0x34f)][_0x52982e(0x33b)]()[_0x52982e(0x252)])([_0x1b68e1],null)||[_0x1b68e1];this[_0x52982e(0x138)](_0x5575d3[0x0]);})),_0x5b0c9b;}},__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[_0x23d062(0x237)],__decorateClass$b=__name((_0x47599d,_0x1f3cb2,_0x5c6c39,_0x322754)=>{var _0x181205=_0x23d062;for(var _0x556022=_0x322754>0x1?void 0x0:_0x322754?__getOwnPropDesc$b(_0x1f3cb2,_0x5c6c39):_0x1f3cb2,_0x7e2efb=_0x47599d[_0x181205(0x420)]-0x1,_0x3cf995;_0x7e2efb>=0x0;_0x7e2efb--)(_0x3cf995=_0x47599d[_0x7e2efb])&&(_0x556022=(_0x322754?_0x3cf995(_0x1f3cb2,_0x5c6c39,_0x556022):_0x3cf995(_0x556022))||_0x556022);return _0x322754&&_0x556022&&__defProp$b(_0x1f3cb2,_0x5c6c39,_0x556022),_0x556022;},_0x23d062(0x1e9)),__decorateParam$b=__name((_0x4300d4,_0x37fbc3)=>(_0x1ee133,_0x171930)=>_0x37fbc3(_0x1ee133,_0x171930,_0x4300d4),_0x23d062(0x2bb)),_a16;let CollaborationController=(_a16=class extends RxDisposable{constructor(_0x4fc3d7,_0x15e6dd,_0x1f1954){var _0x84a2be=_0x23d062;super(),__publicField(this,_0x84a2be(0x391),new Map()),__publicField(this,'_entityInit$',new Subject()),__publicField(this,'entityInit$',this[_0x84a2be(0x323)][_0x84a2be(0x3fc)]()),(this[_0x84a2be(0x216)]=_0x4fc3d7,this[_0x84a2be(0x267)]=_0x15e6dd,this[_0x84a2be(0x2e7)]=_0x1f1954,this[_0x84a2be(0x435)]());}[_0x23d062(0x2e5)](){var _0x16971d=_0x23d062;super[_0x16971d(0x2e5)](),this[_0x16971d(0x391)][_0x16971d(0x29e)](_0xc5e5f0=>_0xc5e5f0[_0x16971d(0x2e5)]()),this['_entities'][_0x16971d(0x220)]();}[_0x23d062(0x22c)](_0xfe6bf7){var _0x10bfb7=_0x23d062,_0x4e9564;return(_0x4e9564=this[_0x10bfb7(0x391)]['get'](_0xfe6bf7))!=null?_0x4e9564:null;}[_0x23d062(0x101)](_0x29e86b){var _0x58e832=_0x23d062;const _0x556c06=this[_0x58e832(0x22c)](_0x29e86b);return _0x556c06?of(_0x556c06):this['_entityInit$'][_0x58e832(0x3c6)](filter(_0x58ca63=>_0x58ca63[_0x58e832(0x432)]===_0x29e86b));}[_0x23d062(0x39c)](_0x20b638){var _0xecf04=_0x23d062;return firstValueFrom(this[_0xecf04(0x101)](_0x20b638)[_0xecf04(0x3c6)](map(()=>{})));}['_init'](){var _0x47a32f=_0x23d062;this[_0x47a32f(0x2e7)][_0x47a32f(0x1c4)](UniverInstanceType['UNIVER_SHEET'])['pipe'](takeUntil(this['dispose$']),delay(0x10))[_0x47a32f(0x20e)](async _0x9e45c2=>{var _0x59feb2=_0x47a32f;const _0x1f99bf=_0x9e45c2[_0x59feb2(0x3f3)](),_0x5ad27d=await this[_0x59feb2(0x107)](_0x1f99bf,UniverType[_0x59feb2(0x367)]);this['_entities'][_0x59feb2(0x319)](_0x1f99bf,_0x5ad27d);}),this[_0x47a32f(0x2e7)]['getTypeOfUnitAdded$'](UniverInstanceType['UNIVER_DOC'])[_0x47a32f(0x3c6)](takeUntil(this['dispose$']),delay(0x10))['pipe'](filter(_0x249637=>!_0x249637[_0x47a32f(0x3f3)]()[_0x47a32f(0x33d)]('__')))['subscribe'](async _0x3cd532=>{var _0x1f5bb8=_0x47a32f;const _0x34944b=_0x3cd532[_0x1f5bb8(0x3f3)](),_0x42f987=await this[_0x1f5bb8(0x107)](_0x34944b,UniverType['UNIVER_DOC']);this[_0x1f5bb8(0x391)][_0x1f5bb8(0x319)](_0x34944b,_0x42f987);}),merge(this[_0x47a32f(0x2e7)][_0x47a32f(0x3df)](UniverInstanceType['UNIVER_SHEET']),this[_0x47a32f(0x2e7)][_0x47a32f(0x3df)](UniverInstanceType[_0x47a32f(0x375)]))['pipe'](takeUntil(this[_0x47a32f(0x361)]))['subscribe'](_0xfc4cdc=>{var _0x4c23fe=_0x47a32f;const _0x273e10=_0xfc4cdc[_0x4c23fe(0x3f3)](),_0x1756f9=this[_0x4c23fe(0x391)][_0x4c23fe(0x354)](_0x273e10);_0x1756f9&&(_0x1756f9['dispose'](),this[_0x4c23fe(0x391)][_0x4c23fe(0x1d5)](_0x273e10));});}async[_0x23d062(0x107)](_0xa2ea9c,_0x299079){var _0x4112b2=_0x23d062;const _0x1f9d62=await this[_0x4112b2(0x267)][_0x4112b2(0x1da)](_0xa2ea9c),_0x26d58b=this[_0x4112b2(0x216)][_0x4112b2(0x2f4)](this[_0x4112b2(0x3ce)](_0x299079),_0xa2ea9c,_0x299079,_0x1f9d62);return await _0x26d58b[_0x4112b2(0x1a6)](),this[_0x4112b2(0x323)][_0x4112b2(0x369)](_0x26d58b),_0x26d58b;}[_0x23d062(0x3ce)](_0x406fe5){var _0x30ff5a=_0x23d062;switch(_0x406fe5){case UniverType[_0x30ff5a(0x375)]:return DocCollaborationEntity;case UniverType[_0x30ff5a(0x367)]:return SheetCollaborationEntity;default:throw new Error(_0x30ff5a(0x3a0)+_0x406fe5);}}},__name(_a16,_0x23d062(0x1ed)),_a16);CollaborationController=__decorateClass$b([__decorateParam$b(0x0,Inject(Injector)),__decorateParam$b(0x1,Inject(CollaborationSessionService)),__decorateParam$b(0x2,IUniverInstanceService)],CollaborationController);var __defProp$a=Object[_0x23d062(0x3e0)],__getOwnPropDesc$a=Object[_0x23d062(0x237)],__decorateClass$a=__name((_0x1aa5fe,_0x14954f,_0x58257e,_0x39f466)=>{for(var _0x38b258=_0x39f466>0x1?void 0x0:_0x39f466?__getOwnPropDesc$a(_0x14954f,_0x58257e):_0x14954f,_0x51300e=_0x1aa5fe['length']-0x1,_0x441027;_0x51300e>=0x0;_0x51300e--)(_0x441027=_0x1aa5fe[_0x51300e])&&(_0x38b258=(_0x39f466?_0x441027(_0x14954f,_0x58257e,_0x38b258):_0x441027(_0x38b258))||_0x38b258);return _0x39f466&&_0x38b258&&__defProp$a(_0x14954f,_0x58257e,_0x38b258),_0x38b258;},_0x23d062(0x341)),__decorateParam$a=__name((_0x264c01,_0x287f3b)=>(_0x1e9e85,_0x49ebf4)=>_0x287f3b(_0x1e9e85,_0x49ebf4,_0x264c01),_0x23d062(0x18c));const DEFAULT_FILE_NAME_KEY=_0x23d062(0x2bd),UNIVER_DEFAULT_FILE_NAME=_0x23d062(0x2b0);var _a17;let FileNameController=(_a17=class extends Disposable{constructor(_0x19cb02,_0x54e5b7){var _0x278bdf=_0x23d062;super(),this[_0x278bdf(0x2e7)]=_0x19cb02,this[_0x278bdf(0x2cd)]=_0x54e5b7,this[_0x278bdf(0x435)]();}[_0x23d062(0x435)](){var _0x179669=_0x23d062;this['disposeWithMe'](this[_0x179669(0x2e7)][_0x179669(0x294)][_0x179669(0x20e)](()=>{var _0x48a7d0=_0x179669,_0x20a750;const _0x78d241=this[_0x48a7d0(0x2e7)][_0x48a7d0(0x170)]();let _0x1a7b79=(_0x20a750=this[_0x48a7d0(0x2cd)][_0x48a7d0(0x14b)](DEFAULT_FILE_NAME_KEY))!=null?_0x20a750:UNIVER_DEFAULT_FILE_NAME;_0x78d241 instanceof Workbook&&(_0x1a7b79=_0x78d241['name']),document[_0x48a7d0(0x24e)]=_0x1a7b79;}));}},__name(_a17,_0x23d062(0x2d5)),_a17);FileNameController=__decorateClass$a([__decorateParam$a(0x0,IUniverInstanceService),__decorateParam$a(0x1,IConfigService)],FileNameController);var __defProp$9=Object[_0x23d062(0x3e0)],__getOwnPropDesc$9=Object['getOwnPropertyDescriptor'],__decorateClass$9=__name((_0x5b3c90,_0x50280a,_0x1b7cd9,_0x418f35)=>{for(var _0x1be1df=_0x418f35>0x1?void 0x0:_0x418f35?__getOwnPropDesc$9(_0x50280a,_0x1b7cd9):_0x50280a,_0x5d31ed=_0x5b3c90['length']-0x1,_0x3bd4ad;_0x5d31ed>=0x0;_0x5d31ed--)(_0x3bd4ad=_0x5b3c90[_0x5d31ed])&&(_0x1be1df=(_0x418f35?_0x3bd4ad(_0x50280a,_0x1b7cd9,_0x1be1df):_0x3bd4ad(_0x1be1df))||_0x1be1df);return _0x418f35&&_0x1be1df&&__defProp$9(_0x50280a,_0x1b7cd9,_0x1be1df),_0x1be1df;},_0x23d062(0x1fd)),__decorateParam$9=__name((_0x5e3cad,_0x37929f)=>(_0x586acd,_0x5b563f)=>_0x37929f(_0x586acd,_0x5b563f,_0x5e3cad),_0x23d062(0x243)),_a18;let AuthServerService=(_a18=class{constructor(_0x58c236,_0x5820a8,_0x2d6a22){var _0x6c1cc6=_0x23d062;this[_0x6c1cc6(0x2cd)]=_0x58c236,this[_0x6c1cc6(0x3d0)]=_0x5820a8,this['localeService']=_0x2d6a22,this['init']();}[_0x23d062(0x1a6)](){var _0x3b16a8=_0x23d062;this['_httpService']['registerHTTPInterceptor']({'priority':0x1,'interceptor':__name((_0x161f88,_0x191c40)=>_0x191c40(_0x161f88)[_0x3b16a8(0x3c6)](concatMap(async _0x3d9fb2=>{var _0x2fb211=_0x3b16a8;const _0x482530=_0x3d9fb2;if(_0x482530['status']===0x191){if(typeof window>'u')throw new Error('[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.');if(window[_0x2fb211(0x350)](this['localeService']['t'](_0x2fb211(0x22f)))){const _0x3c3e71=window[_0x2fb211(0x40c)](window[_0x2fb211(0x1c6)]['href']);window[_0x2fb211(0x1c6)][_0x2fb211(0x427)]=this[_0x2fb211(0x286)]()+_0x2fb211(0x140)+_0x3c3e71;}}return _0x482530;})),_0x3b16a8(0x34f))});}[_0x23d062(0x286)](){var _0x2eed05=_0x23d062,_0x21f42a,_0x2f166b;const _0x1d7c94=this['_configService']['getConfig'](LOGIN_URL_KEY),_0xcb84d9=this[_0x2eed05(0x2cd)][_0x2eed05(0x14b)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x2f166b=(_0x21f42a=_0xcb84d9==null?void 0x0:_0xcb84d9[_0x2eed05(0x16f)])!=null?_0x21f42a:_0x1d7c94)!=null?_0x2f166b:DEFAULT_LOGIN_URL;}},__name(_a18,_0x23d062(0x1aa)),_a18);AuthServerService=__decorateClass$9([__decorateParam$9(0x0,IConfigService),__decorateParam$9(0x1,Inject(HTTPService)),__decorateParam$9(0x2,Inject(LocaleService))],AuthServerService);var __defProp$8=Object['defineProperty'],__getOwnPropDesc$8=Object[_0x23d062(0x237)],__decorateClass$8=__name((_0x3a3920,_0x54d827,_0x2f0743,_0x2b9462)=>{var _0x3c6292=_0x23d062;for(var _0x467a1c=_0x2b9462>0x1?void 0x0:_0x2b9462?__getOwnPropDesc$8(_0x54d827,_0x2f0743):_0x54d827,_0x2896cc=_0x3a3920[_0x3c6292(0x420)]-0x1,_0x4035c7;_0x2896cc>=0x0;_0x2896cc--)(_0x4035c7=_0x3a3920[_0x2896cc])&&(_0x467a1c=(_0x2b9462?_0x4035c7(_0x54d827,_0x2f0743,_0x467a1c):_0x4035c7(_0x467a1c))||_0x467a1c);return _0x2b9462&&_0x467a1c&&__defProp$8(_0x54d827,_0x2f0743,_0x467a1c),_0x467a1c;},'__decorateClass$8'),__decorateParam$8=__name((_0x4f9444,_0x3af189)=>(_0x1992da,_0x5474d7)=>_0x3af189(_0x1992da,_0x5474d7,_0x4f9444),_0x23d062(0x390));const AUTHZ_URL_KEY=_0x23d062(0x2fd),DEFAULT_AUTHZ_URL_KEY$1=_0x23d062(0x326);var _a19;let AuthzIoHttpService=(_a19=class extends Disposable{constructor(_0x24e4e5,_0x82d5f6){var _0x5e3f37=_0x23d062;super(),this['_HTTPService']=_0x24e4e5,this['_configService']=_0x82d5f6,this[_0x5e3f37(0x27b)]();}[_0x23d062(0x27b)](){var _0x10c91f=_0x23d062;const _0x5e9ef2=this;this['disposeWithMe'](this[_0x10c91f(0x277)][_0x10c91f(0x279)]({'priority':0x3e7,'interceptor':MergeInterceptorFactory({'isMatch'(_0x40798e){var _0x43cc66=_0x10c91f,_0x5d359b;if(_0x40798e[_0x43cc66(0x43f)]===_0x43cc66(0x214)&&((_0x5d359b=_0x40798e['requestParams'])!=null&&_0x5d359b[_0x43cc66(0x3f4)])){const {objectID:_0x34e3d7,objectType:_0x4319d6}=_0x40798e[_0x43cc66(0x378)][_0x43cc66(0x3f4)]||{};if(!_0x34e3d7||_0x4319d6===void 0x0)return!0x1;const _0x137e1b=_0x5e9ef2['_getAPIPrefixPath']()+'/'+_0x4319d6+_0x43cc66(0x175)+_0x34e3d7+_0x43cc66(0x11f);if(_0x40798e[_0x43cc66(0x257)]===_0x137e1b)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x40258a){var _0x1561db=_0x10c91f,_0x1a3227;return(_0x1a3227=_0x40258a[_0x1561db(0x378)])==null?void 0x0:_0x1a3227[_0x1561db(0x3f4)];},'mergeParamsToRequest'(_0x500ea0,_0x5a7485){var _0x241b95=_0x10c91f;const _0x55bd2b=_0x5e9ef2['_getAPIPrefixPath']()+_0x241b95(0x2c2),_0x25af15=_0x500ea0[_0x241b95(0x3ed)]((_0x1ec534,_0x155fdd)=>{var _0x39cd4b=_0x241b95;const {unitID:_0xb6b390,objectID:_0x3b0fbc,objectType:_0x3e5b5e,actions:_0x5664c6}=_0x155fdd;return _0x1ec534[_0xb6b390]||(_0x1ec534[_0xb6b390]={}),_0x1ec534[_0xb6b390][_0x3b0fbc]||(_0x1ec534[_0xb6b390][_0x3b0fbc]={'objectID':_0x3b0fbc,'objectType':_0x3e5b5e,'actions':[]}),_0x1ec534[_0xb6b390][_0x3b0fbc][_0x39cd4b(0xef)][_0x39cd4b(0x17c)](..._0x5664c6),_0x1ec534;},{}),_0x5c3c6a=[];for(const _0x4d46d5 in _0x25af15)for(const _0x37de37 in _0x25af15[_0x4d46d5]){const {actions:_0x1dc4ea,objectType:_0x3a79c4}=_0x25af15[_0x4d46d5][_0x37de37],_0x1dfba5=[...new Set(_0x1dc4ea)];_0x5c3c6a[_0x241b95(0x17c)]({'unitID':_0x4d46d5,'objectID':_0x37de37,'objectType':_0x3a79c4,'actions':_0x1dfba5});}return new HTTPRequest(_0x241b95(0x214),_0x55bd2b,{'headers':_0x5a7485[_0x241b95(0x179)],'withCredentials':_0x5a7485[_0x241b95(0x26c)],'responseType':_0x5a7485[_0x241b95(0x269)],'body':{'requests':_0x5c3c6a}});}},{'distributeResult'(_0x316575,_0x45ee1b){var _0x22dcd1=_0x10c91f;const {objectActions:_0x36bc28}=_0x316575;return _0x45ee1b[_0x22dcd1(0x3a9)](_0x33c78b=>{var _0x1faafe=_0x22dcd1;const {unitID:_0x384ae5,objectID:_0x2d8ac1,actions:_0x540e1d}=_0x33c78b,_0x362164=_0x36bc28[_0x1faafe(0x2d1)](_0x4a0330=>_0x4a0330[_0x1faafe(0x432)]===_0x384ae5&&_0x4a0330[_0x1faafe(0x12c)]===_0x2d8ac1),_0x5b6ae6=_0x540e1d[_0x1faafe(0x3a9)](_0x283ab9=>_0x362164==null?void 0x0:_0x362164[_0x1faafe(0xef)][_0x1faafe(0x2d1)](_0x3ef0a7=>_0x3ef0a7['action']===_0x283ab9))[_0x1faafe(0x2ab)](_0x1f7cd5=>!!_0x1f7cd5);return{'config':_0x33c78b,'result':{'actions':_0x5b6ae6,'error':_0x316575[_0x1faafe(0x1f8)]}};});}})}));}['_getAPIPrefixPath'](){var _0x269a11=_0x23d062,_0x4fff6a,_0x3fa258;const _0x2ac37a=this['_configService'][_0x269a11(0x14b)](AUTHZ_URL_KEY),_0xdc4f14=this[_0x269a11(0x2cd)][_0x269a11(0x14b)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x3fa258=(_0x4fff6a=_0xdc4f14==null?void 0x0:_0xdc4f14[_0x269a11(0x21a)])!=null?_0x4fff6a:_0x2ac37a)!=null?_0x3fa258:DEFAULT_AUTHZ_URL_KEY$1;}async[_0x23d062(0x3a3)](_0x35e2ab){var _0x3e6ca0=_0x23d062;const _0x5bfb72=this[_0x3e6ca0(0x28b)]()+'/'+_0x35e2ab['objectType']+'/object';return(await this[_0x3e6ca0(0x277)][_0x3e6ca0(0x2f3)](_0x5bfb72,{'body':_0x35e2ab}))[_0x3e6ca0(0x3f4)]['objectID']||'';}async[_0x23d062(0x1e2)](_0x4ccefd){var _0x5300e7=_0x23d062;const _0x4d14d7=this[_0x5300e7(0x28b)]()+_0x5300e7(0x2f8);return(await this[_0x5300e7(0x277)]['post'](_0x4d14d7,{'body':_0x4ccefd}))[_0x5300e7(0x3f4)][_0x5300e7(0x1c3)];}async[_0x23d062(0x27a)](_0x526c69){var _0x2e6528=_0x23d062;const _0x22cc1d=this['_getAPIPrefixPath']()+'/'+_0x526c69['objectType']+_0x2e6528(0x175)+_0x526c69[_0x2e6528(0x12c)];await this['_HTTPService']['put'](_0x22cc1d,{'body':_0x526c69});}async['allowed'](_0x2cc24f){var _0x660585=_0x23d062;const _0x428528=this[_0x660585(0x28b)]()+'/'+_0x2cc24f['objectType']+'/object/'+_0x2cc24f[_0x660585(0x12c)]+'/allowed';return(await this[_0x660585(0x277)][_0x660585(0x2f3)](_0x428528,{'body':_0x2cc24f}))[_0x660585(0x3f4)]['actions'];}async[_0x23d062(0x32d)](_0x2e0f1f){var _0x405afe=_0x23d062;const _0x554b60=this['_getAPIPrefixPath']()+'/-/object/-/batch_allowed';return(await this[_0x405afe(0x277)][_0x405afe(0x2f3)](_0x554b60,{'body':{'requests':_0x2e0f1f}}))[_0x405afe(0x3f4)][_0x405afe(0x3c1)];}async['listRoles'](_0x1989ce){var _0x13af4c=_0x23d062;const _0x338948=this[_0x13af4c(0x28b)]()+'/'+_0x1989ce['objectType']+_0x13af4c(0x403),_0x13b353=await this[_0x13af4c(0x277)]['post'](_0x338948,{'body':_0x1989ce});return{'roles':_0x13b353[_0x13af4c(0x3f4)][_0x13af4c(0x2cb)],'actions':_0x13b353[_0x13af4c(0x3f4)]['actions']};}async['deleteCollaborator'](_0x368b2f){var _0x42505c=_0x23d062;const _0x500f71=this[_0x42505c(0x28b)]()+_0x42505c(0x2ea);await this['_HTTPService'][_0x42505c(0x1d5)](_0x500f71,{'params':{'collaboratorID':_0x368b2f[_0x42505c(0x366)],'objectID':_0x368b2f['objectID'],'unitID':_0x368b2f['unitID']}});}async['updateCollaborator'](_0x1545ef){var _0x45dad2=_0x23d062;const _0x2009da=this[_0x45dad2(0x28b)]()+_0x45dad2(0x2ea);await this[_0x45dad2(0x277)]['patch'](_0x2009da,{'body':_0x1545ef});}async[_0x23d062(0x3be)](_0x346a44){var _0xfb7812=_0x23d062;const _0x214a92=this['_getAPIPrefixPath']()+_0xfb7812(0x2ea);await this['_HTTPService']['post'](_0x214a92,{'body':_0x346a44});}async[_0x23d062(0x2ec)](_0x5b815d){var _0x1f523f=_0x23d062;const _0x194a71=this[_0x1f523f(0x28b)]()+_0x1f523f(0x2ea);return(await this[_0x1f523f(0x277)][_0x1f523f(0x354)](_0x194a71,{'params':{'objectID':_0x5b815d[_0x1f523f(0x12c)],'unitID':_0x5b815d['unitID']}}))['body'][_0x1f523f(0x273)];}async[_0x23d062(0x317)](_0x1ce75c){var _0x2ee9f8=_0x23d062;const _0x5599cc=this[_0x2ee9f8(0x28b)]()+'/collaborator';await this[_0x2ee9f8(0x277)]['put'](_0x5599cc,{'body':_0x1ce75c});}},__name(_a19,_0x23d062(0x26d)),_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(_0x180f56){var _0x379ad7=_0x23d062;return _0x180f56&&_0x180f56['__esModule']&&Object[_0x379ad7(0x38f)]['hasOwnProperty'][_0x379ad7(0x229)](_0x180f56,'default')?_0x180f56[_0x379ad7(0x1c8)]:_0x180f56;}__name(getDefaultExportFromCjs,_0x23d062(0x330));var aes$1={'exports':{}};function commonjsRequire(_0x35fce3){var _0x10c83b=_0x23d062;throw new Error(_0x10c83b(0x35e)+_0x35fce3+_0x10c83b(0x421));}__name(commonjsRequire,'commonjsRequire');var core$1={'exports':{}},core=core$1[_0x23d062(0x382)],hasRequiredCore;function requireCore(){return hasRequiredCore||(hasRequiredCore=0x1,function(_0x36e14b,_0x5c52da){(function(_0x2cb95c,_0x1cc28d){var _0xe10c84=_0x3017;_0x36e14b[_0xe10c84(0x382)]=_0x1cc28d();}(core,function(){var _0x3ab0ef=_0x3ab0ef||function(_0x2dd8fd,_0x161946){var _0x1b50bc=_0x3017,_0xb1269e;if(typeof window<'u'&&window[_0x1b50bc(0x115)]&&(_0xb1269e=window['crypto']),typeof self<'u'&&self[_0x1b50bc(0x115)]&&(_0xb1269e=self['crypto']),typeof globalThis<'u'&&globalThis['crypto']&&(_0xb1269e=globalThis[_0x1b50bc(0x115)]),!_0xb1269e&&typeof window<'u'&&window[_0x1b50bc(0x309)]&&(_0xb1269e=window['msCrypto']),!_0xb1269e&&typeof commonjsGlobal<'u'&&commonjsGlobal['crypto']&&(_0xb1269e=commonjsGlobal[_0x1b50bc(0x115)]),!_0xb1269e&&typeof commonjsRequire==_0x1b50bc(0x37c))try{_0xb1269e=require('crypto');}catch{}var _0x404cc9=__name(function(){var _0x2bbaae=_0x1b50bc;if(_0xb1269e){if(typeof _0xb1269e['getRandomValues']==_0x2bbaae(0x37c))try{return _0xb1269e[_0x2bbaae(0x1e7)](new Uint32Array(0x1))[0x0];}catch{}if(typeof _0xb1269e['randomBytes']=='function')try{return _0xb1269e[_0x2bbaae(0x30e)](0x4)[_0x2bbaae(0x13a)]();}catch{}}throw new Error(_0x2bbaae(0x41b));},_0x1b50bc(0x13c)),_0x2bd101=Object['create']||(function(){function _0x21aacb(){}return __name(_0x21aacb,'F'),function(_0x103285){var _0x2e3d81=_0x3017,_0x364881;return _0x21aacb[_0x2e3d81(0x38f)]=_0x103285,_0x364881=new _0x21aacb(),_0x21aacb[_0x2e3d81(0x38f)]=null,_0x364881;};}()),_0x394a07={},_0x3e89fd=_0x394a07[_0x1b50bc(0x183)]={},_0x4781c6=_0x3e89fd[_0x1b50bc(0x105)]=(function(){var _0x2976a5=_0x1b50bc;return{'extend':__name(function(_0x27e138){var _0x339765=_0x3017,_0x289d4e=_0x2bd101(this);return _0x27e138&&_0x289d4e[_0x339765(0xe7)](_0x27e138),(!_0x289d4e[_0x339765(0x154)](_0x339765(0x1a6))||this[_0x339765(0x1a6)]===_0x289d4e[_0x339765(0x1a6)])&&(_0x289d4e[_0x339765(0x1a6)]=function(){var _0x5422b5=_0x339765;_0x289d4e['$super'][_0x5422b5(0x1a6)][_0x5422b5(0x36e)](this,arguments);}),_0x289d4e[_0x339765(0x1a6)][_0x339765(0x38f)]=_0x289d4e,_0x289d4e['$super']=this,_0x289d4e;},_0x2976a5(0x34e)),'create':__name(function(){var _0x54480b=_0x2976a5,_0x54dca4=this['extend']();return _0x54dca4['init'][_0x54480b(0x36e)](_0x54dca4,arguments),_0x54dca4;},_0x2976a5(0x3a3)),'init':__name(function(){},_0x2976a5(0x1a6)),'mixIn':__name(function(_0x5d6b86){var _0x395045=_0x2976a5;for(var _0x15453c in _0x5d6b86)_0x5d6b86[_0x395045(0x154)](_0x15453c)&&(this[_0x15453c]=_0x5d6b86[_0x15453c]);_0x5d6b86[_0x395045(0x154)](_0x395045(0xeb))&&(this[_0x395045(0xeb)]=_0x5d6b86[_0x395045(0xeb)]);},'mixIn'),'clone':__name(function(){var _0x2c6610=_0x2976a5;return this[_0x2c6610(0x1a6)][_0x2c6610(0x38f)][_0x2c6610(0x34e)](this);},_0x2976a5(0x244))};}()),_0x4b857a=_0x3e89fd[_0x1b50bc(0x264)]=_0x4781c6[_0x1b50bc(0x34e)]({'init':__name(function(_0x469e93,_0x264124){var _0x5e747c=_0x1b50bc;_0x469e93=this[_0x5e747c(0x440)]=_0x469e93||[],_0x264124!=_0x161946?this[_0x5e747c(0x3af)]=_0x264124:this['sigBytes']=_0x469e93[_0x5e747c(0x420)]*0x4;},'init'),'toString':__name(function(_0x167e89){var _0x226ff0=_0x1b50bc;return(_0x167e89||_0x1ed80b)[_0x226ff0(0x253)](this);},_0x1b50bc(0xeb)),'concat':__name(function(_0x16b4f7){var _0x3a45a7=_0x1b50bc,_0x57c2c7=this[_0x3a45a7(0x440)],_0x5b8d8b=_0x16b4f7[_0x3a45a7(0x440)],_0x146314=this[_0x3a45a7(0x3af)],_0x409dca=_0x16b4f7[_0x3a45a7(0x3af)];if(this[_0x3a45a7(0x135)](),_0x146314%0x4)for(var _0x2ad562=0x0;_0x2ad562<_0x409dca;_0x2ad562++){var _0x7fe0b5=_0x5b8d8b[_0x2ad562>>>0x2]>>>0x18-_0x2ad562%0x4*0x8&0xff;_0x57c2c7[_0x146314+_0x2ad562>>>0x2]|=_0x7fe0b5<<0x18-(_0x146314+_0x2ad562)%0x4*0x8;}else{for(var _0x4e6048=0x0;_0x4e6048<_0x409dca;_0x4e6048+=0x4)_0x57c2c7[_0x146314+_0x4e6048>>>0x2]=_0x5b8d8b[_0x4e6048>>>0x2];}return this[_0x3a45a7(0x3af)]+=_0x409dca,this;},_0x1b50bc(0x40d)),'clamp':__name(function(){var _0x50cec9=_0x1b50bc,_0x2588e2=this[_0x50cec9(0x440)],_0x2ac8c8=this['sigBytes'];_0x2588e2[_0x2ac8c8>>>0x2]&=0xffffffff<<0x20-_0x2ac8c8%0x4*0x8,_0x2588e2[_0x50cec9(0x420)]=_0x2dd8fd[_0x50cec9(0x16e)](_0x2ac8c8/0x4);},'clamp'),'clone':__name(function(){var _0x54251b=_0x1b50bc,_0x4028d8=_0x4781c6[_0x54251b(0x244)][_0x54251b(0x229)](this);return _0x4028d8[_0x54251b(0x440)]=this[_0x54251b(0x440)][_0x54251b(0x3c5)](0x0),_0x4028d8;},_0x1b50bc(0x244)),'random':__name(function(_0x5a7250){var _0x2594f7=_0x1b50bc;for(var _0x152317=[],_0x4f7cb4=0x0;_0x4f7cb4<_0x5a7250;_0x4f7cb4+=0x4)_0x152317['push'](_0x404cc9());return new _0x4b857a[(_0x2594f7(0x1a6))](_0x152317,_0x5a7250);},_0x1b50bc(0x163))}),_0x1757f2=_0x394a07[_0x1b50bc(0x164)]={},_0x1ed80b=_0x1757f2[_0x1b50bc(0x42d)]={'stringify':__name(function(_0x3dbc83){var _0x59abea=_0x1b50bc;for(var _0xebee79=_0x3dbc83[_0x59abea(0x440)],_0x1a01d7=_0x3dbc83[_0x59abea(0x3af)],_0x7fcce0=[],_0xf02742=0x0;_0xf02742<_0x1a01d7;_0xf02742++){var _0x7384ad=_0xebee79[_0xf02742>>>0x2]>>>0x18-_0xf02742%0x4*0x8&0xff;_0x7fcce0['push']((_0x7384ad>>>0x4)['toString'](0x10)),_0x7fcce0[_0x59abea(0x17c)]((_0x7384ad&0xf)['toString'](0x10));}return _0x7fcce0[_0x59abea(0x2e1)]('');},_0x1b50bc(0x253)),'parse':__name(function(_0x457572){var _0x4c501d=_0x1b50bc;for(var _0x5b570b=_0x457572['length'],_0x475d5c=[],_0x2fdc26=0x0;_0x2fdc26<_0x5b570b;_0x2fdc26+=0x2)_0x475d5c[_0x2fdc26>>>0x3]|=parseInt(_0x457572[_0x4c501d(0x3fb)](_0x2fdc26,0x2),0x10)<<0x18-_0x2fdc26%0x8*0x4;return new _0x4b857a[(_0x4c501d(0x1a6))](_0x475d5c,_0x5b570b/0x2);},'parse')},_0x40f51f=_0x1757f2[_0x1b50bc(0x2d3)]={'stringify':__name(function(_0x4904e2){var _0x4464cb=_0x1b50bc;for(var _0x371d51=_0x4904e2['words'],_0x9edfb1=_0x4904e2[_0x4464cb(0x3af)],_0x10bf9b=[],_0x9fdf2c=0x0;_0x9fdf2c<_0x9edfb1;_0x9fdf2c++){var _0x35fe8e=_0x371d51[_0x9fdf2c>>>0x2]>>>0x18-_0x9fdf2c%0x4*0x8&0xff;_0x10bf9b[_0x4464cb(0x17c)](String['fromCharCode'](_0x35fe8e));}return _0x10bf9b[_0x4464cb(0x2e1)]('');},'stringify'),'parse':__name(function(_0x4e1200){var _0x354572=_0x1b50bc;for(var _0x875cf2=_0x4e1200[_0x354572(0x420)],_0x171235=[],_0x570ef3=0x0;_0x570ef3<_0x875cf2;_0x570ef3++)_0x171235[_0x570ef3>>>0x2]|=(_0x4e1200[_0x354572(0x31a)](_0x570ef3)&0xff)<<0x18-_0x570ef3%0x4*0x8;return new _0x4b857a[(_0x354572(0x1a6))](_0x171235,_0x875cf2);},_0x1b50bc(0x203))},_0x432573=_0x1757f2['Utf8']={'stringify':__name(function(_0x212d25){var _0x16273=_0x1b50bc;try{return decodeURIComponent(escape(_0x40f51f[_0x16273(0x253)](_0x212d25)));}catch{throw new Error('Malformed\x20UTF-8\x20data');}},_0x1b50bc(0x253)),'parse':__name(function(_0xa6b00d){return _0x40f51f['parse'](unescape(encodeURIComponent(_0xa6b00d)));},_0x1b50bc(0x203))},_0x5b8246=_0x3e89fd['BufferedBlockAlgorithm']=_0x4781c6['extend']({'reset':__name(function(){var _0x5bd203=_0x1b50bc;this[_0x5bd203(0xf8)]=new _0x4b857a[(_0x5bd203(0x1a6))](),this[_0x5bd203(0x266)]=0x0;},_0x1b50bc(0x335)),'_append':__name(function(_0x4b07ab){var _0x5bf39b=_0x1b50bc;typeof _0x4b07ab==_0x5bf39b(0x28a)&&(_0x4b07ab=_0x432573['parse'](_0x4b07ab)),this[_0x5bf39b(0xf8)][_0x5bf39b(0x40d)](_0x4b07ab),this[_0x5bf39b(0x266)]+=_0x4b07ab[_0x5bf39b(0x3af)];},_0x1b50bc(0x2dc)),'_process':__name(function(_0x4002b9){var _0x4f26fc=_0x1b50bc,_0x46efbe,_0x543f42=this[_0x4f26fc(0xf8)],_0x2179e8=_0x543f42[_0x4f26fc(0x440)],_0x296c37=_0x543f42[_0x4f26fc(0x3af)],_0x1a3c10=this[_0x4f26fc(0x174)],_0x281db4=_0x1a3c10*0x4,_0x2f7bd4=_0x296c37/_0x281db4;_0x4002b9?_0x2f7bd4=_0x2dd8fd['ceil'](_0x2f7bd4):_0x2f7bd4=_0x2dd8fd[_0x4f26fc(0x357)]((_0x2f7bd4|0x0)-this['_minBufferSize'],0x0);var _0x3cb2db=_0x2f7bd4*_0x1a3c10,_0x3c86a4=_0x2dd8fd['min'](_0x3cb2db*0x4,_0x296c37);if(_0x3cb2db){for(var _0x350022=0x0;_0x350022<_0x3cb2db;_0x350022+=_0x1a3c10)this[_0x4f26fc(0x38a)](_0x2179e8,_0x350022);_0x46efbe=_0x2179e8[_0x4f26fc(0x19a)](0x0,_0x3cb2db),_0x543f42['sigBytes']-=_0x3c86a4;}return new _0x4b857a[(_0x4f26fc(0x1a6))](_0x46efbe,_0x3c86a4);},_0x1b50bc(0x325)),'clone':__name(function(){var _0x32f13d=_0x1b50bc,_0xcc7e67=_0x4781c6[_0x32f13d(0x244)][_0x32f13d(0x229)](this);return _0xcc7e67['_data']=this[_0x32f13d(0xf8)]['clone'](),_0xcc7e67;},'clone'),'_minBufferSize':0x0});_0x3e89fd[_0x1b50bc(0x426)]=_0x5b8246[_0x1b50bc(0x34e)]({'cfg':_0x4781c6['extend'](),'init':__name(function(_0xfd780c){var _0x13504a=_0x1b50bc;this['cfg']=this[_0x13504a(0x200)][_0x13504a(0x34e)](_0xfd780c),this['reset']();},'init'),'reset':__name(function(){var _0x5df04a=_0x1b50bc;_0x5b8246[_0x5df04a(0x335)]['call'](this),this[_0x5df04a(0x1b3)]();},'reset'),'update':__name(function(_0x367849){var _0x2d6e41=_0x1b50bc;return this[_0x2d6e41(0x2dc)](_0x367849),this[_0x2d6e41(0x325)](),this;},_0x1b50bc(0x27a)),'finalize':__name(function(_0x4532ed){var _0x5d8dd0=_0x1b50bc;_0x4532ed&&this[_0x5d8dd0(0x2dc)](_0x4532ed);var _0x4f41eb=this[_0x5d8dd0(0x30a)]();return _0x4f41eb;},_0x1b50bc(0x34a)),'blockSize':0x10,'_createHelper':__name(function(_0x37461a){return function(_0x26f619,_0x2728ad){var _0x573f54=_0x3017;return new _0x37461a['init'](_0x2728ad)[_0x573f54(0x34a)](_0x26f619);};},'_createHelper'),'_createHmacHelper':__name(function(_0x2faf97){return function(_0x4ad454,_0x355b3b){var _0x4372c0=_0x3017;return new _0x172f84[(_0x4372c0(0x33f))][(_0x4372c0(0x1a6))](_0x2faf97,_0x355b3b)['finalize'](_0x4ad454);};},_0x1b50bc(0x2a4))});var _0x172f84=_0x394a07[_0x1b50bc(0x2ad)]={};return _0x394a07;}(Math);return _0x3ab0ef;}));}(core$1)),core$1['exports'];}__name(requireCore,'requireCore');var encBase64$1={'exports':{}},encBase64=encBase64$1[_0x23d062(0x382)],hasRequiredEncBase64;function requireEncBase64(){var _0x118610=_0x23d062;return hasRequiredEncBase64||(hasRequiredEncBase64=0x1,function(_0x4f7c4f,_0x16dee1){(function(_0x2c017a,_0x5158e7){var _0x1c4735=_0x3017;_0x4f7c4f[_0x1c4735(0x382)]=_0x5158e7(requireCore());}(encBase64,function(_0x2a895f){var _0x22097f=_0x3017;return(function(){var _0x42dbbb=_0x3017,_0x5dfa3d=_0x2a895f,_0x946f34=_0x5dfa3d['lib'],_0x226fda=_0x946f34[_0x42dbbb(0x264)],_0x1dbd36=_0x5dfa3d[_0x42dbbb(0x164)];_0x1dbd36[_0x42dbbb(0x1ea)]={'stringify':__name(function(_0x517a37){var _0x3862f3=_0x42dbbb,_0x2a7965=_0x517a37[_0x3862f3(0x440)],_0x1820cf=_0x517a37[_0x3862f3(0x3af)],_0x5a5620=this[_0x3862f3(0x2a0)];_0x517a37[_0x3862f3(0x135)]();for(var _0x1208e6=[],_0x52a317=0x0;_0x52a317<_0x1820cf;_0x52a317+=0x3)for(var _0x3af204=_0x2a7965[_0x52a317>>>0x2]>>>0x18-_0x52a317%0x4*0x8&0xff,_0x5156e8=_0x2a7965[_0x52a317+0x1>>>0x2]>>>0x18-(_0x52a317+0x1)%0x4*0x8&0xff,_0x582550=_0x2a7965[_0x52a317+0x2>>>0x2]>>>0x18-(_0x52a317+0x2)%0x4*0x8&0xff,_0x30cb37=_0x3af204<<0x10|_0x5156e8<<0x8|_0x582550,_0x15d7aa=0x0;_0x15d7aa<0x4&&_0x52a317+_0x15d7aa*0.75<_0x1820cf;_0x15d7aa++)_0x1208e6[_0x3862f3(0x17c)](_0x5a5620[_0x3862f3(0x191)](_0x30cb37>>>0x6*(0x3-_0x15d7aa)&0x3f));var _0x1e9b04=_0x5a5620[_0x3862f3(0x191)](0x40);if(_0x1e9b04){for(;_0x1208e6[_0x3862f3(0x420)]%0x4;)_0x1208e6[_0x3862f3(0x17c)](_0x1e9b04);}return _0x1208e6[_0x3862f3(0x2e1)]('');},_0x42dbbb(0x253)),'parse':__name(function(_0x50906f){var _0x49d24=_0x42dbbb,_0x3fc2c6=_0x50906f[_0x49d24(0x420)],_0x2002e3=this['_map'],_0x1a2e42=this['_reverseMap'];if(!_0x1a2e42){_0x1a2e42=this[_0x49d24(0x340)]=[];for(var _0x162447=0x0;_0x162447<_0x2002e3[_0x49d24(0x420)];_0x162447++)_0x1a2e42[_0x2002e3[_0x49d24(0x31a)](_0x162447)]=_0x162447;}var _0x54c27f=_0x2002e3[_0x49d24(0x191)](0x40);if(_0x54c27f){var _0x2a4f60=_0x50906f[_0x49d24(0x1f6)](_0x54c27f);_0x2a4f60!==-0x1&&(_0x3fc2c6=_0x2a4f60);}return _0x3083dc(_0x50906f,_0x3fc2c6,_0x1a2e42);},_0x42dbbb(0x203)),'_map':_0x42dbbb(0x3a8)};function _0x3083dc(_0x5c25f3,_0x2535c3,_0x253cd6){var _0x59c27f=_0x42dbbb;for(var _0x3c7315=[],_0x4b391a=0x0,_0x4d94d0=0x0;_0x4d94d0<_0x2535c3;_0x4d94d0++)if(_0x4d94d0%0x4){var _0x34f253=_0x253cd6[_0x5c25f3['charCodeAt'](_0x4d94d0-0x1)]<<_0x4d94d0%0x4*0x2,_0x59f062=_0x253cd6[_0x5c25f3[_0x59c27f(0x31a)](_0x4d94d0)]>>>0x6-_0x4d94d0%0x4*0x2,_0x1a7111=_0x34f253|_0x59f062;_0x3c7315[_0x4b391a>>>0x2]|=_0x1a7111<<0x18-_0x4b391a%0x4*0x8,_0x4b391a++;}return _0x226fda[_0x59c27f(0x3a3)](_0x3c7315,_0x4b391a);}__name(_0x3083dc,_0x42dbbb(0x434));}()),_0x2a895f[_0x22097f(0x164)][_0x22097f(0x1ea)];}));}(encBase64$1)),encBase64$1[_0x118610(0x382)];}__name(requireEncBase64,_0x23d062(0x236));var md5$1={'exports':{}},md5=md5$1[_0x23d062(0x382)],hasRequiredMd5;function requireMd5(){return hasRequiredMd5||(hasRequiredMd5=0x1,function(_0x3a4745,_0x4cdc32){(function(_0x3936ea,_0x1b6c4c){var _0x4dc8c3=_0x3017;_0x3a4745[_0x4dc8c3(0x382)]=_0x1b6c4c(requireCore());}(md5,function(_0x36e3a8){var _0x22c4e7=_0x3017;return function(_0x58f828){var _0x4d726=_0x3017,_0x3d346b=_0x36e3a8,_0x2de2da=_0x3d346b[_0x4d726(0x183)],_0x8a67c2=_0x2de2da[_0x4d726(0x264)],_0xb3801f=_0x2de2da[_0x4d726(0x426)],_0x16a8aa=_0x3d346b[_0x4d726(0x2ad)],_0x29059c=[];(function(){var _0x38a6f2=_0x4d726;for(var _0x287c49=0x0;_0x287c49<0x40;_0x287c49++)_0x29059c[_0x287c49]=_0x58f828[_0x38a6f2(0x33a)](_0x58f828[_0x38a6f2(0x3ae)](_0x287c49+0x1))*0x100000000|0x0;}());var _0x480b29=_0x16a8aa['MD5']=_0xb3801f[_0x4d726(0x34e)]({'_doReset':__name(function(){this['_hash']=new _0x8a67c2['init']([0x67452301,0xefcdab89,0x98badcfe,0x10325476]);},_0x4d726(0x1b3)),'_doProcessBlock':__name(function(_0x5dd0d8,_0x2040fb){var _0x53db1f=_0x4d726;for(var _0xbd9e9b=0x0;_0xbd9e9b<0x10;_0xbd9e9b++){var _0xfa2f65=_0x2040fb+_0xbd9e9b,_0x2f5b61=_0x5dd0d8[_0xfa2f65];_0x5dd0d8[_0xfa2f65]=(_0x2f5b61<<0x8|_0x2f5b61>>>0x18)&0xff00ff|(_0x2f5b61<<0x18|_0x2f5b61>>>0x8)&0xff00ff00;}var _0x42462c=this[_0x53db1f(0x209)][_0x53db1f(0x440)],_0x52d6b5=_0x5dd0d8[_0x2040fb+0x0],_0x132ee3=_0x5dd0d8[_0x2040fb+0x1],_0x201ff8=_0x5dd0d8[_0x2040fb+0x2],_0xd1a0b9=_0x5dd0d8[_0x2040fb+0x3],_0x46a5b8=_0x5dd0d8[_0x2040fb+0x4],_0x4a7386=_0x5dd0d8[_0x2040fb+0x5],_0x1e5e12=_0x5dd0d8[_0x2040fb+0x6],_0x43776c=_0x5dd0d8[_0x2040fb+0x7],_0x2cdb1b=_0x5dd0d8[_0x2040fb+0x8],_0x4546b6=_0x5dd0d8[_0x2040fb+0x9],_0x1f4ba2=_0x5dd0d8[_0x2040fb+0xa],_0x54739e=_0x5dd0d8[_0x2040fb+0xb],_0x525aa5=_0x5dd0d8[_0x2040fb+0xc],_0x480541=_0x5dd0d8[_0x2040fb+0xd],_0xa3d3e7=_0x5dd0d8[_0x2040fb+0xe],_0x35adb0=_0x5dd0d8[_0x2040fb+0xf],_0x37e6f5=_0x42462c[0x0],_0x45070e=_0x42462c[0x1],_0x37654a=_0x42462c[0x2],_0x4d7c98=_0x42462c[0x3];_0x37e6f5=_0x8ad9b8(_0x37e6f5,_0x45070e,_0x37654a,_0x4d7c98,_0x52d6b5,0x7,_0x29059c[0x0]),_0x4d7c98=_0x8ad9b8(_0x4d7c98,_0x37e6f5,_0x45070e,_0x37654a,_0x132ee3,0xc,_0x29059c[0x1]),_0x37654a=_0x8ad9b8(_0x37654a,_0x4d7c98,_0x37e6f5,_0x45070e,_0x201ff8,0x11,_0x29059c[0x2]),_0x45070e=_0x8ad9b8(_0x45070e,_0x37654a,_0x4d7c98,_0x37e6f5,_0xd1a0b9,0x16,_0x29059c[0x3]),_0x37e6f5=_0x8ad9b8(_0x37e6f5,_0x45070e,_0x37654a,_0x4d7c98,_0x46a5b8,0x7,_0x29059c[0x4]),_0x4d7c98=_0x8ad9b8(_0x4d7c98,_0x37e6f5,_0x45070e,_0x37654a,_0x4a7386,0xc,_0x29059c[0x5]),_0x37654a=_0x8ad9b8(_0x37654a,_0x4d7c98,_0x37e6f5,_0x45070e,_0x1e5e12,0x11,_0x29059c[0x6]),_0x45070e=_0x8ad9b8(_0x45070e,_0x37654a,_0x4d7c98,_0x37e6f5,_0x43776c,0x16,_0x29059c[0x7]),_0x37e6f5=_0x8ad9b8(_0x37e6f5,_0x45070e,_0x37654a,_0x4d7c98,_0x2cdb1b,0x7,_0x29059c[0x8]),_0x4d7c98=_0x8ad9b8(_0x4d7c98,_0x37e6f5,_0x45070e,_0x37654a,_0x4546b6,0xc,_0x29059c[0x9]),_0x37654a=_0x8ad9b8(_0x37654a,_0x4d7c98,_0x37e6f5,_0x45070e,_0x1f4ba2,0x11,_0x29059c[0xa]),_0x45070e=_0x8ad9b8(_0x45070e,_0x37654a,_0x4d7c98,_0x37e6f5,_0x54739e,0x16,_0x29059c[0xb]),_0x37e6f5=_0x8ad9b8(_0x37e6f5,_0x45070e,_0x37654a,_0x4d7c98,_0x525aa5,0x7,_0x29059c[0xc]),_0x4d7c98=_0x8ad9b8(_0x4d7c98,_0x37e6f5,_0x45070e,_0x37654a,_0x480541,0xc,_0x29059c[0xd]),_0x37654a=_0x8ad9b8(_0x37654a,_0x4d7c98,_0x37e6f5,_0x45070e,_0xa3d3e7,0x11,_0x29059c[0xe]),_0x45070e=_0x8ad9b8(_0x45070e,_0x37654a,_0x4d7c98,_0x37e6f5,_0x35adb0,0x16,_0x29059c[0xf]),_0x37e6f5=_0x1336f3(_0x37e6f5,_0x45070e,_0x37654a,_0x4d7c98,_0x132ee3,0x5,_0x29059c[0x10]),_0x4d7c98=_0x1336f3(_0x4d7c98,_0x37e6f5,_0x45070e,_0x37654a,_0x1e5e12,0x9,_0x29059c[0x11]),_0x37654a=_0x1336f3(_0x37654a,_0x4d7c98,_0x37e6f5,_0x45070e,_0x54739e,0xe,_0x29059c[0x12]),_0x45070e=_0x1336f3(_0x45070e,_0x37654a,_0x4d7c98,_0x37e6f5,_0x52d6b5,0x14,_0x29059c[0x13]),_0x37e6f5=_0x1336f3(_0x37e6f5,_0x45070e,_0x37654a,_0x4d7c98,_0x4a7386,0x5,_0x29059c[0x14]),_0x4d7c98=_0x1336f3(_0x4d7c98,_0x37e6f5,_0x45070e,_0x37654a,_0x1f4ba2,0x9,_0x29059c[0x15]),_0x37654a=_0x1336f3(_0x37654a,_0x4d7c98,_0x37e6f5,_0x45070e,_0x35adb0,0xe,_0x29059c[0x16]),_0x45070e=_0x1336f3(_0x45070e,_0x37654a,_0x4d7c98,_0x37e6f5,_0x46a5b8,0x14,_0x29059c[0x17]),_0x37e6f5=_0x1336f3(_0x37e6f5,_0x45070e,_0x37654a,_0x4d7c98,_0x4546b6,0x5,_0x29059c[0x18]),_0x4d7c98=_0x1336f3(_0x4d7c98,_0x37e6f5,_0x45070e,_0x37654a,_0xa3d3e7,0x9,_0x29059c[0x19]),_0x37654a=_0x1336f3(_0x37654a,_0x4d7c98,_0x37e6f5,_0x45070e,_0xd1a0b9,0xe,_0x29059c[0x1a]),_0x45070e=_0x1336f3(_0x45070e,_0x37654a,_0x4d7c98,_0x37e6f5,_0x2cdb1b,0x14,_0x29059c[0x1b]),_0x37e6f5=_0x1336f3(_0x37e6f5,_0x45070e,_0x37654a,_0x4d7c98,_0x480541,0x5,_0x29059c[0x1c]),_0x4d7c98=_0x1336f3(_0x4d7c98,_0x37e6f5,_0x45070e,_0x37654a,_0x201ff8,0x9,_0x29059c[0x1d]),_0x37654a=_0x1336f3(_0x37654a,_0x4d7c98,_0x37e6f5,_0x45070e,_0x43776c,0xe,_0x29059c[0x1e]),_0x45070e=_0x1336f3(_0x45070e,_0x37654a,_0x4d7c98,_0x37e6f5,_0x525aa5,0x14,_0x29059c[0x1f]),_0x37e6f5=_0x4770f5(_0x37e6f5,_0x45070e,_0x37654a,_0x4d7c98,_0x4a7386,0x4,_0x29059c[0x20]),_0x4d7c98=_0x4770f5(_0x4d7c98,_0x37e6f5,_0x45070e,_0x37654a,_0x2cdb1b,0xb,_0x29059c[0x21]),_0x37654a=_0x4770f5(_0x37654a,_0x4d7c98,_0x37e6f5,_0x45070e,_0x54739e,0x10,_0x29059c[0x22]),_0x45070e=_0x4770f5(_0x45070e,_0x37654a,_0x4d7c98,_0x37e6f5,_0xa3d3e7,0x17,_0x29059c[0x23]),_0x37e6f5=_0x4770f5(_0x37e6f5,_0x45070e,_0x37654a,_0x4d7c98,_0x132ee3,0x4,_0x29059c[0x24]),_0x4d7c98=_0x4770f5(_0x4d7c98,_0x37e6f5,_0x45070e,_0x37654a,_0x46a5b8,0xb,_0x29059c[0x25]),_0x37654a=_0x4770f5(_0x37654a,_0x4d7c98,_0x37e6f5,_0x45070e,_0x43776c,0x10,_0x29059c[0x26]),_0x45070e=_0x4770f5(_0x45070e,_0x37654a,_0x4d7c98,_0x37e6f5,_0x1f4ba2,0x17,_0x29059c[0x27]),_0x37e6f5=_0x4770f5(_0x37e6f5,_0x45070e,_0x37654a,_0x4d7c98,_0x480541,0x4,_0x29059c[0x28]),_0x4d7c98=_0x4770f5(_0x4d7c98,_0x37e6f5,_0x45070e,_0x37654a,_0x52d6b5,0xb,_0x29059c[0x29]),_0x37654a=_0x4770f5(_0x37654a,_0x4d7c98,_0x37e6f5,_0x45070e,_0xd1a0b9,0x10,_0x29059c[0x2a]),_0x45070e=_0x4770f5(_0x45070e,_0x37654a,_0x4d7c98,_0x37e6f5,_0x1e5e12,0x17,_0x29059c[0x2b]),_0x37e6f5=_0x4770f5(_0x37e6f5,_0x45070e,_0x37654a,_0x4d7c98,_0x4546b6,0x4,_0x29059c[0x2c]),_0x4d7c98=_0x4770f5(_0x4d7c98,_0x37e6f5,_0x45070e,_0x37654a,_0x525aa5,0xb,_0x29059c[0x2d]),_0x37654a=_0x4770f5(_0x37654a,_0x4d7c98,_0x37e6f5,_0x45070e,_0x35adb0,0x10,_0x29059c[0x2e]),_0x45070e=_0x4770f5(_0x45070e,_0x37654a,_0x4d7c98,_0x37e6f5,_0x201ff8,0x17,_0x29059c[0x2f]),_0x37e6f5=_0x2e8aca(_0x37e6f5,_0x45070e,_0x37654a,_0x4d7c98,_0x52d6b5,0x6,_0x29059c[0x30]),_0x4d7c98=_0x2e8aca(_0x4d7c98,_0x37e6f5,_0x45070e,_0x37654a,_0x43776c,0xa,_0x29059c[0x31]),_0x37654a=_0x2e8aca(_0x37654a,_0x4d7c98,_0x37e6f5,_0x45070e,_0xa3d3e7,0xf,_0x29059c[0x32]),_0x45070e=_0x2e8aca(_0x45070e,_0x37654a,_0x4d7c98,_0x37e6f5,_0x4a7386,0x15,_0x29059c[0x33]),_0x37e6f5=_0x2e8aca(_0x37e6f5,_0x45070e,_0x37654a,_0x4d7c98,_0x525aa5,0x6,_0x29059c[0x34]),_0x4d7c98=_0x2e8aca(_0x4d7c98,_0x37e6f5,_0x45070e,_0x37654a,_0xd1a0b9,0xa,_0x29059c[0x35]),_0x37654a=_0x2e8aca(_0x37654a,_0x4d7c98,_0x37e6f5,_0x45070e,_0x1f4ba2,0xf,_0x29059c[0x36]),_0x45070e=_0x2e8aca(_0x45070e,_0x37654a,_0x4d7c98,_0x37e6f5,_0x132ee3,0x15,_0x29059c[0x37]),_0x37e6f5=_0x2e8aca(_0x37e6f5,_0x45070e,_0x37654a,_0x4d7c98,_0x2cdb1b,0x6,_0x29059c[0x38]),_0x4d7c98=_0x2e8aca(_0x4d7c98,_0x37e6f5,_0x45070e,_0x37654a,_0x35adb0,0xa,_0x29059c[0x39]),_0x37654a=_0x2e8aca(_0x37654a,_0x4d7c98,_0x37e6f5,_0x45070e,_0x1e5e12,0xf,_0x29059c[0x3a]),_0x45070e=_0x2e8aca(_0x45070e,_0x37654a,_0x4d7c98,_0x37e6f5,_0x480541,0x15,_0x29059c[0x3b]),_0x37e6f5=_0x2e8aca(_0x37e6f5,_0x45070e,_0x37654a,_0x4d7c98,_0x46a5b8,0x6,_0x29059c[0x3c]),_0x4d7c98=_0x2e8aca(_0x4d7c98,_0x37e6f5,_0x45070e,_0x37654a,_0x54739e,0xa,_0x29059c[0x3d]),_0x37654a=_0x2e8aca(_0x37654a,_0x4d7c98,_0x37e6f5,_0x45070e,_0x201ff8,0xf,_0x29059c[0x3e]),_0x45070e=_0x2e8aca(_0x45070e,_0x37654a,_0x4d7c98,_0x37e6f5,_0x4546b6,0x15,_0x29059c[0x3f]),_0x42462c[0x0]=_0x42462c[0x0]+_0x37e6f5|0x0,_0x42462c[0x1]=_0x42462c[0x1]+_0x45070e|0x0,_0x42462c[0x2]=_0x42462c[0x2]+_0x37654a|0x0,_0x42462c[0x3]=_0x42462c[0x3]+_0x4d7c98|0x0;},'_doProcessBlock'),'_doFinalize':__name(function(){var _0x367eaa=_0x4d726,_0x466631=this[_0x367eaa(0xf8)],_0xde53e5=_0x466631[_0x367eaa(0x440)],_0x2af251=this[_0x367eaa(0x266)]*0x8,_0x393b4e=_0x466631['sigBytes']*0x8;_0xde53e5[_0x393b4e>>>0x5]|=0x80<<0x18-_0x393b4e%0x20;var _0x3bb64b=_0x58f828[_0x367eaa(0x438)](_0x2af251/0x100000000),_0x57cfd8=_0x2af251;_0xde53e5[(_0x393b4e+0x40>>>0x9<<0x4)+0xf]=(_0x3bb64b<<0x8|_0x3bb64b>>>0x18)&0xff00ff|(_0x3bb64b<<0x18|_0x3bb64b>>>0x8)&0xff00ff00,_0xde53e5[(_0x393b4e+0x40>>>0x9<<0x4)+0xe]=(_0x57cfd8<<0x8|_0x57cfd8>>>0x18)&0xff00ff|(_0x57cfd8<<0x18|_0x57cfd8>>>0x8)&0xff00ff00,_0x466631[_0x367eaa(0x3af)]=(_0xde53e5[_0x367eaa(0x420)]+0x1)*0x4,this[_0x367eaa(0x325)]();for(var _0x4d152d=this[_0x367eaa(0x209)],_0x584872=_0x4d152d[_0x367eaa(0x440)],_0x1245bb=0x0;_0x1245bb<0x4;_0x1245bb++){var _0x5e87ab=_0x584872[_0x1245bb];_0x584872[_0x1245bb]=(_0x5e87ab<<0x8|_0x5e87ab>>>0x18)&0xff00ff|(_0x5e87ab<<0x18|_0x5e87ab>>>0x8)&0xff00ff00;}return _0x4d152d;},'_doFinalize'),'clone':__name(function(){var _0x1dbda0=_0x4d726,_0x49e27d=_0xb3801f[_0x1dbda0(0x244)][_0x1dbda0(0x229)](this);return _0x49e27d[_0x1dbda0(0x209)]=this[_0x1dbda0(0x209)][_0x1dbda0(0x244)](),_0x49e27d;},_0x4d726(0x244))});function _0x8ad9b8(_0x594ce8,_0x2a6c8a,_0x15c4be,_0x4053ca,_0x222a27,_0x4ad307,_0x19b3db){var _0x412c61=_0x594ce8+(_0x2a6c8a&_0x15c4be|~_0x2a6c8a&_0x4053ca)+_0x222a27+_0x19b3db;return(_0x412c61<<_0x4ad307|_0x412c61>>>0x20-_0x4ad307)+_0x2a6c8a;}__name(_0x8ad9b8,'FF');function _0x1336f3(_0x29fa61,_0x4bd378,_0x10edbe,_0x1bd776,_0xce1417,_0x36e00e,_0x20c67c){var _0x232610=_0x29fa61+(_0x4bd378&_0x1bd776|_0x10edbe&~_0x1bd776)+_0xce1417+_0x20c67c;return(_0x232610<<_0x36e00e|_0x232610>>>0x20-_0x36e00e)+_0x4bd378;}__name(_0x1336f3,'GG');function _0x4770f5(_0xaad6fa,_0x342e70,_0xff2d96,_0x1e151b,_0x146fb7,_0x4f3c85,_0x47b286){var _0x562efc=_0xaad6fa+(_0x342e70^_0xff2d96^_0x1e151b)+_0x146fb7+_0x47b286;return(_0x562efc<<_0x4f3c85|_0x562efc>>>0x20-_0x4f3c85)+_0x342e70;}__name(_0x4770f5,'HH');function _0x2e8aca(_0x3c0628,_0x39085f,_0x509a0a,_0x1e07a6,_0x2369dc,_0x4fcf43,_0xf481a3){var _0x19af46=_0x3c0628+(_0x509a0a^(_0x39085f|~_0x1e07a6))+_0x2369dc+_0xf481a3;return(_0x19af46<<_0x4fcf43|_0x19af46>>>0x20-_0x4fcf43)+_0x39085f;}__name(_0x2e8aca,'II'),_0x3d346b[_0x4d726(0x312)]=_0xb3801f['_createHelper'](_0x480b29),_0x3d346b[_0x4d726(0xfc)]=_0xb3801f[_0x4d726(0x2a4)](_0x480b29);}(Math),_0x36e3a8[_0x22c4e7(0x312)];}));}(md5$1)),md5$1['exports'];}__name(requireMd5,'requireMd5');var evpkdf$1={'exports':{}},sha1$1={'exports':{}},sha1=sha1$1[_0x23d062(0x382)],hasRequiredSha1;function requireSha1(){var _0x59315a=_0x23d062;return hasRequiredSha1||(hasRequiredSha1=0x1,function(_0xf6030f,_0x1dc96f){(function(_0x1b9d7b,_0xad7672){var _0x4014fa=_0x3017;_0xf6030f[_0x4014fa(0x382)]=_0xad7672(requireCore());}(sha1,function(_0x3352ce){return(function(){var _0x295eba=_0x3017,_0x3ddb27=_0x3352ce,_0x3d1257=_0x3ddb27[_0x295eba(0x183)],_0x1d4ffd=_0x3d1257[_0x295eba(0x264)],_0x82a646=_0x3d1257[_0x295eba(0x426)],_0x162636=_0x3ddb27[_0x295eba(0x2ad)],_0x579fd9=[],_0x8ac093=_0x162636['SHA1']=_0x82a646[_0x295eba(0x34e)]({'_doReset':__name(function(){var _0x3c6a18=_0x295eba;this[_0x3c6a18(0x209)]=new _0x1d4ffd[(_0x3c6a18(0x1a6))]([0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0]);},'_doReset'),'_doProcessBlock':__name(function(_0x1bb03f,_0x320443){var _0x2d6a18=_0x295eba;for(var _0xe038d3=this[_0x2d6a18(0x209)]['words'],_0x3e0dc4=_0xe038d3[0x0],_0x25c173=_0xe038d3[0x1],_0x13b603=_0xe038d3[0x2],_0x1f6c8f=_0xe038d3[0x3],_0x7a5c0f=_0xe038d3[0x4],_0x7f893a=0x0;_0x7f893a<0x50;_0x7f893a++){if(_0x7f893a<0x10)_0x579fd9[_0x7f893a]=_0x1bb03f[_0x320443+_0x7f893a]|0x0;else{var _0x3f93c5=_0x579fd9[_0x7f893a-0x3]^_0x579fd9[_0x7f893a-0x8]^_0x579fd9[_0x7f893a-0xe]^_0x579fd9[_0x7f893a-0x10];_0x579fd9[_0x7f893a]=_0x3f93c5<<0x1|_0x3f93c5>>>0x1f;}var _0x2ee936=(_0x3e0dc4<<0x5|_0x3e0dc4>>>0x1b)+_0x7a5c0f+_0x579fd9[_0x7f893a];_0x7f893a<0x14?_0x2ee936+=(_0x25c173&_0x13b603|~_0x25c173&_0x1f6c8f)+0x5a827999:_0x7f893a<0x28?_0x2ee936+=(_0x25c173^_0x13b603^_0x1f6c8f)+0x6ed9eba1:_0x7f893a<0x3c?_0x2ee936+=(_0x25c173&_0x13b603|_0x25c173&_0x1f6c8f|_0x13b603&_0x1f6c8f)-0x70e44324:_0x2ee936+=(_0x25c173^_0x13b603^_0x1f6c8f)-0x359d3e2a,_0x7a5c0f=_0x1f6c8f,_0x1f6c8f=_0x13b603,_0x13b603=_0x25c173<<0x1e|_0x25c173>>>0x2,_0x25c173=_0x3e0dc4,_0x3e0dc4=_0x2ee936;}_0xe038d3[0x0]=_0xe038d3[0x0]+_0x3e0dc4|0x0,_0xe038d3[0x1]=_0xe038d3[0x1]+_0x25c173|0x0,_0xe038d3[0x2]=_0xe038d3[0x2]+_0x13b603|0x0,_0xe038d3[0x3]=_0xe038d3[0x3]+_0x1f6c8f|0x0,_0xe038d3[0x4]=_0xe038d3[0x4]+_0x7a5c0f|0x0;},_0x295eba(0x38a)),'_doFinalize':__name(function(){var _0x4adaef=_0x295eba,_0x274a39=this[_0x4adaef(0xf8)],_0x2cdc1c=_0x274a39['words'],_0x2636e8=this[_0x4adaef(0x266)]*0x8,_0x3ee818=_0x274a39[_0x4adaef(0x3af)]*0x8;return _0x2cdc1c[_0x3ee818>>>0x5]|=0x80<<0x18-_0x3ee818%0x20,_0x2cdc1c[(_0x3ee818+0x40>>>0x9<<0x4)+0xe]=Math[_0x4adaef(0x438)](_0x2636e8/0x100000000),_0x2cdc1c[(_0x3ee818+0x40>>>0x9<<0x4)+0xf]=_0x2636e8,_0x274a39['sigBytes']=_0x2cdc1c[_0x4adaef(0x420)]*0x4,this[_0x4adaef(0x325)](),this[_0x4adaef(0x209)];},_0x295eba(0x30a)),'clone':__name(function(){var _0x2c580c=_0x295eba,_0x2c43b0=_0x82a646[_0x2c580c(0x244)][_0x2c580c(0x229)](this);return _0x2c43b0[_0x2c580c(0x209)]=this[_0x2c580c(0x209)][_0x2c580c(0x244)](),_0x2c43b0;},_0x295eba(0x244))});_0x3ddb27[_0x295eba(0x18a)]=_0x82a646['_createHelper'](_0x8ac093),_0x3ddb27[_0x295eba(0x1b7)]=_0x82a646[_0x295eba(0x2a4)](_0x8ac093);}()),_0x3352ce['SHA1'];}));}(sha1$1)),sha1$1[_0x59315a(0x382)];}function _0x3017(_0x2f0317,_0x1e4d64){var _0x12be5e=_0x12be();return _0x3017=function(_0x301776,_0x4fa79b){_0x301776=_0x301776-0xe4;var _0x1f50a3=_0x12be5e[_0x301776];return _0x1f50a3;},_0x3017(_0x2f0317,_0x1e4d64);}__name(requireSha1,_0x23d062(0x42b));var hmac$1={'exports':{}},hmac=hmac$1[_0x23d062(0x382)],hasRequiredHmac;function requireHmac(){var _0x3ccf54=_0x23d062;return hasRequiredHmac||(hasRequiredHmac=0x1,function(_0x5df252,_0x2a70fc){(function(_0x4a9cfa,_0xb8920d){var _0x18fd2a=_0x3017;_0x5df252[_0x18fd2a(0x382)]=_0xb8920d(requireCore());}(hmac,function(_0x374fbd){(function(){var _0x2d8147=_0x3017,_0x25af67=_0x374fbd,_0x59b6cf=_0x25af67[_0x2d8147(0x183)],_0x36012f=_0x59b6cf['Base'],_0x59b047=_0x25af67[_0x2d8147(0x164)],_0x52f065=_0x59b047[_0x2d8147(0x428)],_0x51dcbd=_0x25af67[_0x2d8147(0x2ad)];_0x51dcbd[_0x2d8147(0x33f)]=_0x36012f[_0x2d8147(0x34e)]({'init':__name(function(_0x3a3bbe,_0x3611bc){var _0xbc968e=_0x2d8147;_0x3a3bbe=this[_0xbc968e(0x122)]=new _0x3a3bbe['init'](),typeof _0x3611bc=='string'&&(_0x3611bc=_0x52f065[_0xbc968e(0x203)](_0x3611bc));var _0x55b344=_0x3a3bbe['blockSize'],_0x210254=_0x55b344*0x4;_0x3611bc[_0xbc968e(0x3af)]>_0x210254&&(_0x3611bc=_0x3a3bbe[_0xbc968e(0x34a)](_0x3611bc)),_0x3611bc[_0xbc968e(0x135)]();for(var _0x5520bc=this[_0xbc968e(0x133)]=_0x3611bc[_0xbc968e(0x244)](),_0x550a4a=this['_iKey']=_0x3611bc[_0xbc968e(0x244)](),_0xe5af25=_0x5520bc[_0xbc968e(0x440)],_0x1c9204=_0x550a4a[_0xbc968e(0x440)],_0x5a8de8=0x0;_0x5a8de8<_0x55b344;_0x5a8de8++)_0xe5af25[_0x5a8de8]^=0x5c5c5c5c,_0x1c9204[_0x5a8de8]^=0x36363636;_0x5520bc[_0xbc968e(0x3af)]=_0x550a4a[_0xbc968e(0x3af)]=_0x210254,this[_0xbc968e(0x335)]();},_0x2d8147(0x1a6)),'reset':__name(function(){var _0x38610a=_0x2d8147,_0x525ac8=this[_0x38610a(0x122)];_0x525ac8['reset'](),_0x525ac8[_0x38610a(0x27a)](this['_iKey']);},_0x2d8147(0x335)),'update':__name(function(_0x5e60e3){var _0x6ed6b=_0x2d8147;return this['_hasher'][_0x6ed6b(0x27a)](_0x5e60e3),this;},'update'),'finalize':__name(function(_0x44a6ca){var _0x176db1=_0x2d8147,_0x47fe40=this['_hasher'],_0x328b62=_0x47fe40[_0x176db1(0x34a)](_0x44a6ca);_0x47fe40[_0x176db1(0x335)]();var _0x1d78bd=_0x47fe40[_0x176db1(0x34a)](this['_oKey'][_0x176db1(0x244)]()[_0x176db1(0x40d)](_0x328b62));return _0x1d78bd;},_0x2d8147(0x34a))});}());}));}(hmac$1)),hmac$1[_0x3ccf54(0x382)];}function _0x12be(){var _0x585502=['_initMergeInterceptor','SEND_CHANGESET_TIMEOUT','unitInfo$','CONFLICT','unknown','onStateChange','JOIN','CollaborationState','enableOfflineEditing','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_getUndoStack','_getLoginPath','deepClone','_stopTelemetryCollaborationNewChangeset','getUnit','string','_getAPIPrefixPath','_initDependencies','CONNECTOR_DATA_TOO_LARGE','SheetTransformSelectionsService','_socket$','PERSON','unitId','/fetchmissing?from=','_removeRoom','focused$','_createInitialState','_prevBlock','AES','resourceIDs','CLOSE_ROOM','INGEST','HEARTBEAT','8LVcJzH','extractTargetFromFirstChangeset','forEach','_sessions','_map','members$','univer-pro.collaboration-client.network-condition.service','HttpExport','_createHmacHelper','onTransformSelections','_onCombEvent','JOIN_ROOM_NOT_EXISTS','_onRemoteRetry','getLocalCacheKey','LICENSE_DISTRO_REJECTED','filter','LICENSE_IMPORT_SIZE_EXCEEDED','algo','ws://127.0.0.1:8000/universer-api/comb/connect','unsafeStringify','Univer','__decorateClass$i','OFFLINE','_transformService','randomUUID','MUTATION','byteOffset','USERS_LEAVE','has','__decorateParam$i','debug','__decorateParam$b','saveSnapshot','DEFAULT_FILE_NAME','getTime','_undoRedoService','_joinRoom','CBC','/-/object/-/batch_allowed','shouldCloseConn','_members$','transformUndoRedo','_getCurrentRevision','_substituteUndoStack','SyncedState','[CollaborationEntity]','_resendTimeout','roles','_socket','_configService','roomInfos','uploadFileServerUrl','joinRsp','find','state','Latin1','_minBufferSize','FileNameController','_commentService','_getSessionTicket','copyFileMeta','/universer-api/stream/file/upload','toLowerCase','image/gif','_append','memberID','_parse','commentUpdate$','[CollaborationSessionService]:\x20socket\x20error','join','_transformUndoredo','SNAPSHOT_INVALID_SNAPSHOT','UPDATE_CURSOR','dispose','conflict','_univerInstanceService','pending','CommentService','/collaborator','userID','listCollaborators','_createInitialStateImpl','[OfflineState]:\x20received\x20changeset.','_tryEnsureSocket','CHANGESET_REJ','stopTime','image/jpeg','post','createInstance','SUCCUSS','_telemetryInfo','unsubscribe','/-/object/list','newCsEvent','/universer-api/file/{fileID}/sign-url','message$','UNRECOGNIZED','AUTHZ_URL_KEY','PY_RUNTIME_SCRIPT_ERROR','AWAITING','SnapshotServerOverHTTPService','_listenToNetworkCondition','_executeRemoteChangeset','6754434oVIvnN','HttpImport','_logService','getUnitStatus$','__decorateParam$6','UNKNOWN_CODE','msCrypto','_doFinalize','_collaborationPaused','OfflineState','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','randomBytes','_getRedoStack','params','salt','MD5','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_rescheduleHeartbeat','_unitID','&source=','putCollaborators','5551470ALzheh','set','charCodeAt','unit-cache-','FAIL','FileId','_transformRemoteChangesetByStateCache','OTHER_CLIENTS_EDITING','UNAUTHENTICATED','origin','changesets','_entityInit$','SNAPSHOT_HAS_BEEN_REMOVED','_process','/universer-api/authz','enableAuthServer','_type','routeKey','executeCommand','rng','AWAITING_WITH_PENDING','batchAllowed','hasher','_iv','getDefaultExportFromCjs','[DataLoaderService]','getMember','__decorateClass$3','transformSelections','reset','updateMember','_onConflict','APPLY_PERMISSION_DENIED','localCacheService','abs','getInterceptPoints','transformMutationsWithChangeset','startsWith','updatePermissionPoint','HMAC','_reverseMap','__decorateClass$a','/rev/','_status$','selectCipherStrategy','session.room-permission-denied','fetchThroughInterceptors','revision','from','m2Prime','finalize','__decorateClass$4','isPermissionRej','collaboration-client.local-cache-service','extend','interceptor','confirm','refreshPermission','close$','getSheetId','get','_updateLocalCache','pauseCollaboration','max','_onRecvEvent','_networkConditionService','_applyRemoteChangeset','send','unitId\x20is\x20not\x20found','UniverCollaborationClientPlugin','Could\x20not\x20dynamically\x20require\x20\x22','ciphertext','__decorateParam$1','dispose$','ivSize','change$','_sendHeartbeat','now','collaboratorID','UNIVER_SHEET','_config','next','encryptBlock','cmd','error$','[CollaborationSession]','apply','createTimerObservable$','CollaborationSocketService','failed\x20to\x20apply\x20missed\x20changesets!','_handlerCallback','AwaitingState','_initRequestHeader','UNIVER_DOC','liveShareOperation','NoPadding','requestParams','TOO_MANY_REQUESTS','loadUnit','LIVESHARE_OPERATION','function','session.room-not-exists','_remoteChangesetQueue','SUBMIT_CHANGESET','isArray','__decorateClass$1','exports','NOT_FOUND','_changesetReqId','ENSURE_SNAPSHOT_EXECUTION','UNIVER_UNKNOWN','UPDATE_PERMISSION_OBJ','Decryptor','startTime','_doProcessBlock','YUUMI_URL_COL_OUT_OF_RANGE','leaveEvent','onLocalMutation','save\x20fail\x20reason\x20is\x20','prototype','__decorateParam$8','_entities','\x20-\x20','iterations','_state','status$','awaiting_with_pending','_retryCount','RETRY_CONNECTING_MAX_COUNT','csAckEvent','_members','12194689YKSvpC','readyForCollab','PERMISSION_DENIED','getAttachHeader','_unlockTransition','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_registerDependencies','loadOfflineData','create','compose','UUID','JOIN_ROOM_FULL','signUrlServerUrl','ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=','map','_startTelemetryCollaborationNewChangeset','retryConnectingInterval','getSnapshotAPIPath','_updateStatus','sin','sigBytes','_DEC_XFORM_MODE','_acknowledgedAwaitingChangeset','json','_clearCollaborationTimeoutTimer','__decorateClass','_timeoutTimer','LIVESHARE_TERMINATE','sessionTicket','CipherParams','disposeWithMe','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','SOCKET_FAILED','image/jpg','_getAPIPrefix','createCollaborator','c1Prime','CHANGESET_ACK','objectActions','__decorateClass$2','createOnlineState','_getSignURL','slice','pipe','disableLocalCache','removeMember','_updateState','MentionIoHttpService','generateRandomId','__decorateClass$6','complete','_getCtorByUniverType','every','_httpService','fetch_missing','UNISCRIPT_RUN','/unit/','_commentUpdate$','SHOULD_CLOSE_CONN','_keySchedule','/universer-api/snapshot','xorBlock','requireEncUtf8','UNDEFINED','_roomCreated$','_http','resolve','{fileID}','getTypeOfUnitDisposed$','defineProperty','/universer-api/uniscript','UNIVER_COLLABORATION_CLIENT_PLUGIN','__publicField','NEW_CHANGESETS','_submitChangeset','JOIN_ROOM_FAILED','sessionStatus','sid','__defNormalProp','_onConnectionOpen','UnitEmbedded','sendChangesetTimeout','reduce','_decreaseWaiting','getAllMembers','onTransformRemoteChangesetByStateCache','encrypt','[OfflineState]:\x20received\x20acknowledgement.','getUnitId','body','commentUpdateEvent','_onUserLeave','initWorkbookPermissionChange','_changesetSessionId','COMPLETION_FINISHED','LOCAL_CACHE_INTERVAL','substr','asObservable','_shouldReportTelemetry','_getDownloadEndpointURL','mutations','_showConflictNotification','_createHelper','decrypt','/role','onCommentUpdate','append','status','hostname','type','JOINING','uniscriptRunEvent','[CollaborationSessionService]','encodeURIComponent','concat','mode','_substituteRedoStack','rev','pkcs7Padding','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','awaitingChangeset','subUnitId','USERS_ENTER','SNAPSHOT_SERVER_URL_KEY','range','editingUnit','size','_socketReady','Native\x20crypto\x20module\x20could\x20not\x20be\x20used\x20to\x20get\x20secure\x20random\x20number.','not_collab','RoomMember','_onFetchMissResult','_clearHeartbeatTimer','length','\x22.\x20Please\x20configure\x20the\x20dynamicRequireTargets\x20or/and\x20ignoreDynamicRequires\x20option\x20of\x20@rollup/plugin-commonjs\x20appropriately\x20for\x20this\x20require\x20call\x20to\x20work.','requirePadNopadding','process','fetchMiss','_createHandler','Hasher','href','Utf8','__decorateClass$c','telemetry\x20info\x20is\x20not\x20initialized','requireSha1','?size=','Hex','12AaCQXC','_clearRedo','_createSocketURL','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','unitID','__decorateParam$4','parseLoop','_init','_change$','Encryptor','floor','session.join-failed','_disableEditing','pad','onTransformIME','SNAPSHOT_URL_KEY','onMissingChangesets','method','words','_lockTransition','BlockCipher','saveChangeset','mixIn','fetchMissingChangesets','PermissionService','82lQroIl','toString','_onConnectionFailed','transformChangesets','getCurrentSelections','actions','CHANGESET_SHOULD_RETRY','sheets','_awaitingChangeset','_transitionLocked','LICENSE_EXPORT_SIZE_EXCEEDED','_fetchMissChangesets','UNKNOWN_CMD','NO_OTHER_CLIENTS_EDITING','_data','reject','APPLY_REJECT','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','HmacMD5','keySize','_onUserJoin','OPTIONAL','RECV','getCollabEntity$','PENDING','_commandService','_revisionService','Base','processBlock','_startCollaboration','createSocket','LIVESHARE_NEW_HOST','onTransformRemoteChangesetByIMECache','__decorateClass$5','code','_replayCachedMutations','getUnitType','unpad','downloadEndpointUrl','[CollaborationUndoRedoService]','_scheduleCompleteTimestamp','HEARTBEAT_INTERVAL','state$','crypto','_xformMode','LIVESHARE_FETCH_OPERATIONS','incrementRevOfUnit','/universer-api/oidc/authpage','CHANGESET_REVISION_CONFILICT','_state$','getMemberID','getLatestCsReqIdBySid','updatePermissionObjEvent','/allowed','online$','Pkcs7','_hasher','_candidateSocket','UNIVER_SLIDE','_clearScheduledTask','_toggleOffline','__decorateParam$3','add','Undefined','_sessionStatus$','_event$','objectID','waitForRoom$','collaMsg','_cipher','INTERNAL_ERROR','\x20in\x20_schedule.','addImageSourceCache','_oKey','[PendingState]:\x20received\x20rejection.','clamp','reqId','3zGUMtV','_onLocalMutation','DataLoaderService','readInt32LE','APPLY_NON_SEQUENTIAL_REVISION','cryptoSecureRandomInt','_checkMissing','&assign=','formatter','?url=','OpenSSL','_socketService','_eventService','_onMessage','entries','decryptBlock','avatar','_getUploadFileURL','onSyncEditingCollabCursor','_onRemoteChangeset','getConfig','__decorateParam$7','_collaborationSessionService','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_waitForHeartbeatResponse','GLOBAL_ROOMS_CNT_EXCEEDS','People','getCurrentRevOfUnit','textRanges','hasOwnProperty','SOCKET_FAILED_RETRY','requireLibTypedarrays','snapshot','_userManagerService','compute','11270756hjOiQT','MSG_FOR_ERROR','1640932ZwYSka','_clearLocalCache','reverse','_getSendChangesetTimeout','ERROR_IMAGE','emitEvent','YUUMI_SUBSCRIPTION_NOT_FOUND','random','enc','getActiveSheet','_exhaustRemoteChangesetQueue','HELLO','src','EXCHANGE_SIGN_URL_SERVER_URL_KEY','LIVESHARE_REQUEST_HOST','SUBMIT_CHANGESET_TIMEOUT','target','data','ceil','loginUrlKey','getFocusedUnit','APPLY_REVISION_CONFILICT','_initCloseConn','_handler','blockSize','/object/','_createSocket','closeSession','LICENSE_MAX_UNITS_EXCEEDED','headers','handleUnitPermissionChange','_transformRemoteChangesetByIMECache','push','transformStack\x20failed!','getWorkbookSelections','_collaborationUIEventService','BASE64','event$','_initUnitPermissionChange','lib','_doCryptBlock','assembleDocChangeset','_sendHeartbeatTimer','_snapshotServerService','reconnect','fromCollab','SHA1','42916mXNdSV','__decorateParam$a','\x0aCurrent:\x20','SYNCED','_compressMutationService','PERMISSION_REJ','charAt','_scheduleCollaborationTimeoutTimer','_ENC_XFORM_MODE','onSendChangeset','__decorateParam$c','onCommandExecuted','socketService','IDLE','SerializableCipher','splice','result','padding','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_loadDoc','execute','_key','OTHER_CLIENT_EDITING','PSEUDO_FETCH_MISSING_RESULT','format','_roomMembers','session','init','__decorateParam$g','CollaborationImageIoService','_instanceService','AuthServerService','requireAes','getDeserializedSheetBlock','_onRemoteACK','handleCloseConn','_clearUndo','selections','name','_imageSourceCache','_doReset','UnitSnapshot','_schedule','[SyncedState]:\x20received\x20rejection.','HmacSHA1','updateCursorEvent','_localCacheService','onRemoteAck','members','csRejEvent','_telemetryService','originalMeta','__decorateClass$h','_invKeySchedule','ConflictState','ticket','objects','getTypeOfUnitAdded$','_memberService','location','bind','default','__decorateClass$f','COMMENT_UPDATE','_collaborationTimeoutTimer','file','_onRemoteRejected','then','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_pendingMutations','toggleOffline','5EJYdMb','onRemoteRej','Random\x20bytes\x20length\x20must\x20be\x20>=\x2016','delete','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','&to=','__decorateParam$f','_snapshotService','requireSession','_queuedRemoteChangesets','liveShareNewHost','_transformStack','__decorateClass$e','APPLY_DUPLICATED','[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.','_retryConnectingTimer','list','_tryReconnect','__decorateClass$7','onlyLocal','_clearTimeoutTimer','getRandomValues','CollaborationSessionService','__decorateClass$b','Base64','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_unitInfo$','CollaborationController','_undoStacks','pluginName','setShowComponents','_isPermissionRej','LOGIN_URL_KEY','encode','getCurrentUser','_resendTimer','indexOf','__creator','error','baseRev','PasswordBasedCipher','appendMutation','__Key__','__decorateClass$9','_singleActiveUnitService','key','cfg','_resendWithTimeout','_incrementRevisionNumber','parse','_waitCount','_sender','HEARTBEAT_TIMEOUT','_transformStateCache','_throwTelemetryCollaborationNewChangeset','_hash','_onOffline','COMPRESS_MUTATION_APPLY','EvpKDF','socket$','subscribe','onMissedChangesetFetched','_permissionService','Cipher','_toggleOnline','Error\x20on\x20receiving\x20event','POST','_nRounds','_injector','enableSingleActiveInstanceLock','toggleOnline','awaiting','authzUrl','socket\x20open.','INVALID_ARGUMENT','requireHmac','capture','_onJoinRoomEvent','clear','DomainRequestService','connection\x20error','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','_emitMembers','StreamCipher','_socketMessageSubscription','symbol','close','call','session.room-cnt-exceeds','infoRsp','getCollabEntity','ONLINE','resend','auth.needGotoLoginAlert','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','eventID','_redoStacks','buffer','collaboration-client.config','permissionRejEvent','requireEncBase64','getOwnPropertyDescriptor','6864979GAqXYC','CollaborationUIEventService','MemberService','_transformSelections','onRemoteRetry','synced','JOIN_ROOM_PERMISSION_DENIED','workbook','_replaceFileID','LEAVE','createDecryptor','__decorateParam$9','clone','YUUMI_UNABLE_LOAD_URL','[OfflineState]:\x20received\x20rejection.','_mode','duration','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','kdf','search','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','onTransformState','title','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','getSheetBlock','_transformIMECache','COMPRESS_MUTATION_SEND','stringify','_sheetTransformSelectionsService','onRemoteChangeset','editing\x20status\x20changed\x20to','url','includes','\x20to\x20','runId','getValue','subject','_sendingTimer','c2Prime','10SksDoD','_loadSheet','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','offline','__decorateParam$h','WordArray','UNIVER_PROJECT','_nDataBytes','_collabSessionService','getResourcesRequest','responseType','createEncryptor','[FetchMissState]','withCredentials','AuthzIoHttpService','DocCollaborationEntity','catch','/block/','univer-pro.collaboration-client-socket-service','_localeService','collaborators','sessionStatus$','onTransformRemoteChangesetByIMECache\x20callback\x20is\x20not\x20added\x20yet.','fetching\x20missing\x20changesets\x20from\x20','_HTTPService','updateOfflineData','registerHTTPInterceptor','update'];_0x12be=function(){return _0x585502;};return _0x12be();}__name(requireHmac,_0x23d062(0x21d));var evpkdf=evpkdf$1[_0x23d062(0x382)],hasRequiredEvpkdf;function requireEvpkdf(){var _0x1d1071=_0x23d062;return hasRequiredEvpkdf||(hasRequiredEvpkdf=0x1,function(_0x5356c8,_0xe6ec0){(function(_0x211fec,_0x3cd2a,_0xd3124e){var _0x443bdd=_0x3017;_0x5356c8[_0x443bdd(0x382)]=_0x3cd2a(requireCore(),requireSha1(),requireHmac());}(evpkdf,function(_0x29c9a9){var _0x1d5c3c=_0x3017;return(function(){var _0x2cdb4a=_0x3017,_0x10d9db=_0x29c9a9,_0x3dc3af=_0x10d9db['lib'],_0x590549=_0x3dc3af[_0x2cdb4a(0x105)],_0x5357fd=_0x3dc3af[_0x2cdb4a(0x264)],_0x3d4f03=_0x10d9db[_0x2cdb4a(0x2ad)],_0x54b77f=_0x3d4f03[_0x2cdb4a(0x312)],_0x28dd10=_0x3d4f03[_0x2cdb4a(0x20c)]=_0x590549[_0x2cdb4a(0x34e)]({'cfg':_0x590549[_0x2cdb4a(0x34e)]({'keySize':0x80/0x20,'hasher':_0x54b77f,'iterations':0x1}),'init':__name(function(_0x4c5be5){var _0x1f35c8=_0x2cdb4a;this['cfg']=this[_0x1f35c8(0x200)][_0x1f35c8(0x34e)](_0x4c5be5);},_0x2cdb4a(0x1a6)),'compute':__name(function(_0x158253,_0x46b03f){var _0x449e80=_0x2cdb4a;for(var _0xcd294e,_0x4ed631=this[_0x449e80(0x200)],_0x4ba546=_0x4ed631['hasher'][_0x449e80(0x3a3)](),_0xb4edcd=_0x5357fd['create'](),_0x21b502=_0xb4edcd[_0x449e80(0x440)],_0x15de33=_0x4ed631[_0x449e80(0xfd)],_0x5a4933=_0x4ed631[_0x449e80(0x393)];_0x21b502[_0x449e80(0x420)]<_0x15de33;){_0xcd294e&&_0x4ba546[_0x449e80(0x27a)](_0xcd294e),_0xcd294e=_0x4ba546['update'](_0x158253)[_0x449e80(0x34a)](_0x46b03f),_0x4ba546[_0x449e80(0x335)]();for(var _0x39d7b6=0x1;_0x39d7b6<_0x5a4933;_0x39d7b6++)_0xcd294e=_0x4ba546[_0x449e80(0x34a)](_0xcd294e),_0x4ba546['reset']();_0xb4edcd['concat'](_0xcd294e);}return _0xb4edcd[_0x449e80(0x3af)]=_0x15de33*0x4,_0xb4edcd;},_0x2cdb4a(0x159))});_0x10d9db[_0x2cdb4a(0x20c)]=function(_0x2cded0,_0x4d85bb,_0x2e61a2){var _0x36a184=_0x2cdb4a;return _0x28dd10['create'](_0x2e61a2)[_0x36a184(0x159)](_0x2cded0,_0x4d85bb);};}()),_0x29c9a9[_0x1d5c3c(0x20c)];}));}(evpkdf$1)),evpkdf$1[_0x1d1071(0x382)];}__name(requireEvpkdf,'requireEvpkdf');var cipherCore$1={'exports':{}},cipherCore=cipherCore$1[_0x23d062(0x382)],hasRequiredCipherCore;function requireCipherCore(){return hasRequiredCipherCore||(hasRequiredCipherCore=0x1,function(_0x3dcbad,_0x27f047){(function(_0x3f158c,_0x54ea2c,_0x1a3013){var _0x349f08=_0x3017;_0x3dcbad[_0x349f08(0x382)]=_0x54ea2c(requireCore(),requireEvpkdf());}(cipherCore,function(_0x1c3016){var _0x111a5a=_0x3017;_0x1c3016[_0x111a5a(0x183)][_0x111a5a(0x211)]||function(_0x40de27){var _0x2e15bd=_0x111a5a,_0x3c7b51=_0x1c3016,_0x5c4703=_0x3c7b51[_0x2e15bd(0x183)],_0x396517=_0x5c4703[_0x2e15bd(0x105)],_0x20df3e=_0x5c4703[_0x2e15bd(0x264)],_0x3d2c93=_0x5c4703['BufferedBlockAlgorithm'],_0x703b5e=_0x3c7b51[_0x2e15bd(0x164)];_0x703b5e[_0x2e15bd(0x428)];var _0x3aedf7=_0x703b5e[_0x2e15bd(0x1ea)],_0x54b06f=_0x3c7b51['algo'],_0x4cd87f=_0x54b06f[_0x2e15bd(0x20c)],_0x571a37=_0x5c4703['Cipher']=_0x3d2c93[_0x2e15bd(0x34e)]({'cfg':_0x396517[_0x2e15bd(0x34e)](),'createEncryptor':__name(function(_0xe07e90,_0xca3860){var _0x33157b=_0x2e15bd;return this[_0x33157b(0x3a3)](this['_ENC_XFORM_MODE'],_0xe07e90,_0xca3860);},_0x2e15bd(0x26a)),'createDecryptor':__name(function(_0x2c5701,_0x36dc88){var _0x41dc80=_0x2e15bd;return this[_0x41dc80(0x3a3)](this[_0x41dc80(0x3b0)],_0x2c5701,_0x36dc88);},_0x2e15bd(0x242)),'init':__name(function(_0x1f248d,_0x546348,_0x4177ec){var _0x36ab94=_0x2e15bd;this[_0x36ab94(0x200)]=this[_0x36ab94(0x200)][_0x36ab94(0x34e)](_0x4177ec),this['_xformMode']=_0x1f248d,this[_0x36ab94(0x1a0)]=_0x546348,this[_0x36ab94(0x335)]();},_0x2e15bd(0x1a6)),'reset':__name(function(){var _0x276296=_0x2e15bd;_0x3d2c93[_0x276296(0x335)]['call'](this),this['_doReset']();},_0x2e15bd(0x335)),'process':__name(function(_0x804f5d){var _0x1a4484=_0x2e15bd;return this[_0x1a4484(0x2dc)](_0x804f5d),this[_0x1a4484(0x325)]();},_0x2e15bd(0x423)),'finalize':__name(function(_0x5932e4){var _0x3fdfff=_0x2e15bd;_0x5932e4&&this[_0x3fdfff(0x2dc)](_0x5932e4);var _0x2bc68f=this[_0x3fdfff(0x30a)]();return _0x2bc68f;},'finalize'),'keySize':0x80/0x20,'ivSize':0x80/0x20,'_ENC_XFORM_MODE':0x1,'_DEC_XFORM_MODE':0x2,'_createHelper':(function(){var _0x423c08=_0x2e15bd;function _0x279541(_0x2d4391){var _0x2ee375=_0x3017;return typeof _0x2d4391==_0x2ee375(0x28a)?_0x1ad96d:_0x201820;}return __name(_0x279541,_0x423c08(0x344)),function(_0x1677d3){var _0x2ca6f1=_0x423c08;return{'encrypt':__name(function(_0x44120f,_0x375cfe,_0x50c247){var _0x3fefba=_0x3017;return _0x279541(_0x375cfe)[_0x3fefba(0x3f1)](_0x1677d3,_0x44120f,_0x375cfe,_0x50c247);},_0x2ca6f1(0x3f1)),'decrypt':__name(function(_0x589ac4,_0x12a2c5,_0x465e9b){return _0x279541(_0x12a2c5)['decrypt'](_0x1677d3,_0x589ac4,_0x12a2c5,_0x465e9b);},'decrypt')};};}())});_0x5c4703[_0x2e15bd(0x225)]=_0x571a37[_0x2e15bd(0x34e)]({'_doFinalize':__name(function(){var _0x48387b=_0x2e15bd,_0x346a48=this[_0x48387b(0x325)](!0x0);return _0x346a48;},'_doFinalize'),'blockSize':0x1});var _0x5bdaf3=_0x3c7b51[_0x2e15bd(0x40e)]={},_0x1781a2=_0x5c4703['BlockCipherMode']=_0x396517[_0x2e15bd(0x34e)]({'createEncryptor':__name(function(_0xd9b3a6,_0x476c5a){var _0x238f92=_0x2e15bd;return this[_0x238f92(0x437)][_0x238f92(0x3a3)](_0xd9b3a6,_0x476c5a);},_0x2e15bd(0x26a)),'createDecryptor':__name(function(_0xfdecb,_0x1d0d88){var _0xdefeb1=_0x2e15bd;return this[_0xdefeb1(0x388)][_0xdefeb1(0x3a3)](_0xfdecb,_0x1d0d88);},'createDecryptor'),'init':__name(function(_0x100aef,_0x4bbce2){var _0x307d96=_0x2e15bd;this[_0x307d96(0x12f)]=_0x100aef,this[_0x307d96(0x32f)]=_0x4bbce2;},_0x2e15bd(0x1a6))}),_0x5161a0=_0x5bdaf3[_0x2e15bd(0x2c1)]=(function(){var _0x55729a=_0x2e15bd,_0x13f554=_0x1781a2[_0x55729a(0x34e)]();_0x13f554['Encryptor']=_0x13f554['extend']({'processBlock':__name(function(_0xd88f3a,_0xdaff86){var _0x1b58eb=_0x55729a,_0xf6b22c=this['_cipher'],_0xa2fddd=_0xf6b22c[_0x1b58eb(0x174)];_0xe87b37['call'](this,_0xd88f3a,_0xdaff86,_0xa2fddd),_0xf6b22c['encryptBlock'](_0xd88f3a,_0xdaff86),this['_prevBlock']=_0xd88f3a[_0x1b58eb(0x3c5)](_0xdaff86,_0xdaff86+_0xa2fddd);},_0x55729a(0x106))}),_0x13f554[_0x55729a(0x388)]=_0x13f554[_0x55729a(0x34e)]({'processBlock':__name(function(_0x2df4d3,_0x40fe1c){var _0x299362=_0x55729a,_0x1d0158=this[_0x299362(0x12f)],_0x2b3362=_0x1d0158[_0x299362(0x174)],_0x2a955c=_0x2df4d3['slice'](_0x40fe1c,_0x40fe1c+_0x2b3362);_0x1d0158[_0x299362(0x146)](_0x2df4d3,_0x40fe1c),_0xe87b37['call'](this,_0x2df4d3,_0x40fe1c,_0x2b3362),this['_prevBlock']=_0x2a955c;},_0x55729a(0x106))});function _0xe87b37(_0x1a63f8,_0x500da5,_0x416434){var _0x3a64e0=_0x55729a,_0x230825,_0x1c85ea=this[_0x3a64e0(0x32f)];_0x1c85ea?(_0x230825=_0x1c85ea,this[_0x3a64e0(0x32f)]=_0x40de27):_0x230825=this[_0x3a64e0(0x296)];for(var _0x14a7ad=0x0;_0x14a7ad<_0x416434;_0x14a7ad++)_0x1a63f8[_0x500da5+_0x14a7ad]^=_0x230825[_0x14a7ad];}return __name(_0xe87b37,_0x55729a(0x3d8)),_0x13f554;}()),_0x3fdaf7=_0x3c7b51[_0x2e15bd(0x43b)]={},_0x4f34f8=_0x3fdaf7[_0x2e15bd(0x121)]={'pad':__name(function(_0x1ac542,_0x30c7ff){var _0x4ea677=_0x2e15bd;for(var _0x62950e=_0x30c7ff*0x4,_0x28cc07=_0x62950e-_0x1ac542[_0x4ea677(0x3af)]%_0x62950e,_0x5c3f73=_0x28cc07<<0x18|_0x28cc07<<0x10|_0x28cc07<<0x8|_0x28cc07,_0x5beb3e=[],_0x1febec=0x0;_0x1febec<_0x28cc07;_0x1febec+=0x4)_0x5beb3e['push'](_0x5c3f73);var _0x10a17b=_0x20df3e[_0x4ea677(0x3a3)](_0x5beb3e,_0x28cc07);_0x1ac542[_0x4ea677(0x40d)](_0x10a17b);},_0x2e15bd(0x43b)),'unpad':__name(function(_0x67952f){var _0x45c783=_0x2e15bd,_0x427e5c=_0x67952f[_0x45c783(0x440)][_0x67952f['sigBytes']-0x1>>>0x2]&0xff;_0x67952f[_0x45c783(0x3af)]-=_0x427e5c;},_0x2e15bd(0x10f))};_0x5c4703['BlockCipher']=_0x571a37[_0x2e15bd(0x34e)]({'cfg':_0x571a37[_0x2e15bd(0x200)][_0x2e15bd(0x34e)]({'mode':_0x5161a0,'padding':_0x4f34f8}),'reset':__name(function(){var _0x22af90=_0x2e15bd,_0x24caa3;_0x571a37[_0x22af90(0x335)][_0x22af90(0x229)](this);var _0x132aa6=this[_0x22af90(0x200)],_0x248cd5=_0x132aa6['iv'],_0x4ce0bc=_0x132aa6[_0x22af90(0x40e)];this[_0x22af90(0x116)]==this[_0x22af90(0x193)]?_0x24caa3=_0x4ce0bc['createEncryptor']:(_0x24caa3=_0x4ce0bc[_0x22af90(0x242)],this[_0x22af90(0x2d4)]=0x1),this[_0x22af90(0x247)]&&this[_0x22af90(0x247)]['__creator']==_0x24caa3?this['_mode']['init'](this,_0x248cd5&&_0x248cd5[_0x22af90(0x440)]):(this[_0x22af90(0x247)]=_0x24caa3[_0x22af90(0x229)](_0x4ce0bc,this,_0x248cd5&&_0x248cd5['words']),this[_0x22af90(0x247)][_0x22af90(0x1f7)]=_0x24caa3);},_0x2e15bd(0x335)),'_doProcessBlock':__name(function(_0x28bab5,_0x867d6a){var _0x1975fb=_0x2e15bd;this[_0x1975fb(0x247)][_0x1975fb(0x106)](_0x28bab5,_0x867d6a);},_0x2e15bd(0x38a)),'_doFinalize':__name(function(){var _0x478782=_0x2e15bd,_0x1aa220,_0x4d9edf=this['cfg'][_0x478782(0x19c)];return this[_0x478782(0x116)]==this[_0x478782(0x193)]?(_0x4d9edf[_0x478782(0x43b)](this[_0x478782(0xf8)],this[_0x478782(0x174)]),_0x1aa220=this[_0x478782(0x325)](!0x0)):(_0x1aa220=this[_0x478782(0x325)](!0x0),_0x4d9edf[_0x478782(0x10f)](_0x1aa220)),_0x1aa220;},_0x2e15bd(0x30a)),'blockSize':0x80/0x20});var _0x5789db=_0x5c4703[_0x2e15bd(0x3b8)]=_0x396517[_0x2e15bd(0x34e)]({'init':__name(function(_0x49b394){this['mixIn'](_0x49b394);},'init'),'toString':__name(function(_0x3373f9){var _0x2880f2=_0x2e15bd;return(_0x3373f9||this[_0x2880f2(0x13f)])[_0x2880f2(0x253)](this);},_0x2e15bd(0xeb))}),_0x5745f6=_0x3c7b51[_0x2e15bd(0x1a3)]={},_0x30c40b=_0x5745f6[_0x2e15bd(0x141)]={'stringify':__name(function(_0x3c1297){var _0x1c456c=_0x2e15bd,_0x2a8244,_0x184986=_0x3c1297[_0x1c456c(0x35f)],_0x42cb30=_0x3c1297['salt'];return _0x42cb30?_0x2a8244=_0x20df3e[_0x1c456c(0x3a3)]([0x53616c74,0x65645f5f])[_0x1c456c(0x40d)](_0x42cb30)[_0x1c456c(0x40d)](_0x184986):_0x2a8244=_0x184986,_0x2a8244[_0x1c456c(0xeb)](_0x3aedf7);},_0x2e15bd(0x253)),'parse':__name(function(_0x2baee2){var _0x4b6aa4=_0x2e15bd,_0x318d36,_0x10f5b3=_0x3aedf7[_0x4b6aa4(0x203)](_0x2baee2),_0x12cc09=_0x10f5b3[_0x4b6aa4(0x440)];return _0x12cc09[0x0]==0x53616c74&&_0x12cc09[0x1]==0x65645f5f&&(_0x318d36=_0x20df3e[_0x4b6aa4(0x3a3)](_0x12cc09[_0x4b6aa4(0x3c5)](0x2,0x4)),_0x12cc09[_0x4b6aa4(0x19a)](0x0,0x4),_0x10f5b3[_0x4b6aa4(0x3af)]-=0x10),_0x5789db['create']({'ciphertext':_0x10f5b3,'salt':_0x318d36});},_0x2e15bd(0x203))},_0x201820=_0x5c4703[_0x2e15bd(0x199)]=_0x396517[_0x2e15bd(0x34e)]({'cfg':_0x396517[_0x2e15bd(0x34e)]({'format':_0x30c40b}),'encrypt':__name(function(_0x5568b2,_0x53443f,_0x3b8003,_0x1d6a96){var _0x1d342b=_0x2e15bd;_0x1d6a96=this['cfg']['extend'](_0x1d6a96);var _0x467b79=_0x5568b2[_0x1d342b(0x26a)](_0x3b8003,_0x1d6a96),_0xca8c2d=_0x467b79['finalize'](_0x53443f),_0x26eed3=_0x467b79['cfg'];return _0x5789db['create']({'ciphertext':_0xca8c2d,'key':_0x3b8003,'iv':_0x26eed3['iv'],'algorithm':_0x5568b2,'mode':_0x26eed3[_0x1d342b(0x40e)],'padding':_0x26eed3['padding'],'blockSize':_0x5568b2[_0x1d342b(0x174)],'formatter':_0x1d6a96['format']});},'encrypt'),'decrypt':__name(function(_0xc9b185,_0x315054,_0x450a9c,_0x56f332){var _0x10b1d5=_0x2e15bd;_0x56f332=this[_0x10b1d5(0x200)]['extend'](_0x56f332),_0x315054=this[_0x10b1d5(0x2de)](_0x315054,_0x56f332[_0x10b1d5(0x1a3)]);var _0x46f6e5=_0xc9b185[_0x10b1d5(0x242)](_0x450a9c,_0x56f332)['finalize'](_0x315054[_0x10b1d5(0x35f)]);return _0x46f6e5;},_0x2e15bd(0x402)),'_parse':__name(function(_0x4116f0,_0x3a5eed){var _0x2673fe=_0x2e15bd;return typeof _0x4116f0==_0x2673fe(0x28a)?_0x3a5eed[_0x2673fe(0x203)](_0x4116f0,this):_0x4116f0;},_0x2e15bd(0x2de))}),_0x2516bd=_0x3c7b51[_0x2e15bd(0x24a)]={},_0x2306ce=_0x2516bd[_0x2e15bd(0x141)]={'execute':__name(function(_0x318677,_0x424bb1,_0x3af04b,_0x20a6fb,_0x15cb09){var _0xc814bc=_0x2e15bd;if(_0x20a6fb||(_0x20a6fb=_0x20df3e[_0xc814bc(0x163)](0x40/0x8)),_0x15cb09)var _0x565a59=_0x4cd87f[_0xc814bc(0x3a3)]({'keySize':_0x424bb1+_0x3af04b,'hasher':_0x15cb09})[_0xc814bc(0x159)](_0x318677,_0x20a6fb);else var _0x565a59=_0x4cd87f[_0xc814bc(0x3a3)]({'keySize':_0x424bb1+_0x3af04b})[_0xc814bc(0x159)](_0x318677,_0x20a6fb);var _0x5113fc=_0x20df3e[_0xc814bc(0x3a3)](_0x565a59['words']['slice'](_0x424bb1),_0x3af04b*0x4);return _0x565a59['sigBytes']=_0x424bb1*0x4,_0x5789db[_0xc814bc(0x3a3)]({'key':_0x565a59,'iv':_0x5113fc,'salt':_0x20a6fb});},_0x2e15bd(0x19f))},_0x1ad96d=_0x5c4703[_0x2e15bd(0x1fa)]=_0x201820['extend']({'cfg':_0x201820[_0x2e15bd(0x200)][_0x2e15bd(0x34e)]({'kdf':_0x2306ce}),'encrypt':__name(function(_0x13f6aa,_0x562bec,_0x2d856d,_0x6d9bd8){var _0x4f579e=_0x2e15bd;_0x6d9bd8=this[_0x4f579e(0x200)][_0x4f579e(0x34e)](_0x6d9bd8);var _0x10ec99=_0x6d9bd8[_0x4f579e(0x24a)][_0x4f579e(0x19f)](_0x2d856d,_0x13f6aa[_0x4f579e(0xfd)],_0x13f6aa['ivSize'],_0x6d9bd8[_0x4f579e(0x311)],_0x6d9bd8[_0x4f579e(0x32e)]);_0x6d9bd8['iv']=_0x10ec99['iv'];var _0x8ba340=_0x201820['encrypt']['call'](this,_0x13f6aa,_0x562bec,_0x10ec99[_0x4f579e(0x1ff)],_0x6d9bd8);return _0x8ba340[_0x4f579e(0xe7)](_0x10ec99),_0x8ba340;},_0x2e15bd(0x3f1)),'decrypt':__name(function(_0x41ad35,_0x19e364,_0x58ee9b,_0x1d51b5){var _0x1ba244=_0x2e15bd;_0x1d51b5=this['cfg'][_0x1ba244(0x34e)](_0x1d51b5),_0x19e364=this[_0x1ba244(0x2de)](_0x19e364,_0x1d51b5[_0x1ba244(0x1a3)]);var _0x247789=_0x1d51b5['kdf'][_0x1ba244(0x19f)](_0x58ee9b,_0x41ad35[_0x1ba244(0xfd)],_0x41ad35[_0x1ba244(0x362)],_0x19e364[_0x1ba244(0x311)],_0x1d51b5[_0x1ba244(0x32e)]);_0x1d51b5['iv']=_0x247789['iv'];var _0x11e9bf=_0x201820[_0x1ba244(0x402)][_0x1ba244(0x229)](this,_0x41ad35,_0x19e364,_0x247789['key'],_0x1d51b5);return _0x11e9bf;},_0x2e15bd(0x402))});}();}));}(cipherCore$1)),cipherCore$1['exports'];}__name(requireCipherCore,'requireCipherCore');var aes=aes$1[_0x23d062(0x382)],hasRequiredAes;function requireAes(){var _0x150a9d=_0x23d062;return hasRequiredAes||(hasRequiredAes=0x1,function(_0x124f3d,_0xd32ba1){(function(_0x21431d,_0x108f2,_0x5845d1){_0x124f3d['exports']=_0x108f2(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore());}(aes,function(_0x7b3cf0){return(function(){var _0x575df2=_0x3017,_0x2dcdff=_0x7b3cf0,_0x2cbb08=_0x2dcdff[_0x575df2(0x183)],_0x2dd443=_0x2cbb08[_0x575df2(0xe5)],_0x2f6678=_0x2dcdff[_0x575df2(0x2ad)],_0x3813c8=[],_0x9470a4=[],_0x26befd=[],_0x526073=[],_0x5dec0d=[],_0xc0845d=[],_0x5525c3=[],_0x37c364=[],_0x99ff77=[],_0x3ba549=[];(function(){for(var _0x187192=[],_0x3e071a=0x0;_0x3e071a<0x100;_0x3e071a++)_0x3e071a<0x80?_0x187192[_0x3e071a]=_0x3e071a<<0x1:_0x187192[_0x3e071a]=_0x3e071a<<0x1^0x11b;for(var _0x2fcd50=0x0,_0x43055b=0x0,_0x3e071a=0x0;_0x3e071a<0x100;_0x3e071a++){var _0x77e7ca=_0x43055b^_0x43055b<<0x1^_0x43055b<<0x2^_0x43055b<<0x3^_0x43055b<<0x4;_0x77e7ca=_0x77e7ca>>>0x8^_0x77e7ca&0xff^0x63,_0x3813c8[_0x2fcd50]=_0x77e7ca,_0x9470a4[_0x77e7ca]=_0x2fcd50;var _0x1efa52=_0x187192[_0x2fcd50],_0x589311=_0x187192[_0x1efa52],_0x428efb=_0x187192[_0x589311],_0x12977d=_0x187192[_0x77e7ca]*0x101^_0x77e7ca*0x1010100;_0x26befd[_0x2fcd50]=_0x12977d<<0x18|_0x12977d>>>0x8,_0x526073[_0x2fcd50]=_0x12977d<<0x10|_0x12977d>>>0x10,_0x5dec0d[_0x2fcd50]=_0x12977d<<0x8|_0x12977d>>>0x18,_0xc0845d[_0x2fcd50]=_0x12977d;var _0x12977d=_0x428efb*0x1010101^_0x589311*0x10001^_0x1efa52*0x101^_0x2fcd50*0x1010100;_0x5525c3[_0x77e7ca]=_0x12977d<<0x18|_0x12977d>>>0x8,_0x37c364[_0x77e7ca]=_0x12977d<<0x10|_0x12977d>>>0x10,_0x99ff77[_0x77e7ca]=_0x12977d<<0x8|_0x12977d>>>0x18,_0x3ba549[_0x77e7ca]=_0x12977d,_0x2fcd50?(_0x2fcd50=_0x1efa52^_0x187192[_0x187192[_0x187192[_0x428efb^_0x1efa52]]],_0x43055b^=_0x187192[_0x187192[_0x43055b]]):_0x2fcd50=_0x43055b=0x1;}}());var _0x3eea99=[0x0,0x1,0x2,0x4,0x8,0x10,0x20,0x40,0x80,0x1b,0x36],_0x427ab7=_0x2f6678['AES']=_0x2dd443[_0x575df2(0x34e)]({'_doReset':__name(function(){var _0x44bddb=_0x575df2,_0xc2d7d8;if(!(this['_nRounds']&&this['_keyPriorReset']===this[_0x44bddb(0x1a0)])){for(var _0x16f66b=this['_keyPriorReset']=this[_0x44bddb(0x1a0)],_0x2ca69f=_0x16f66b['words'],_0x4b4370=_0x16f66b['sigBytes']/0x4,_0x523cd2=this[_0x44bddb(0x215)]=_0x4b4370+0x6,_0x254de4=(_0x523cd2+0x1)*0x4,_0x155977=this[_0x44bddb(0x3d6)]=[],_0x559b6c=0x0;_0x559b6c<_0x254de4;_0x559b6c++)_0x559b6c<_0x4b4370?_0x155977[_0x559b6c]=_0x2ca69f[_0x559b6c]:(_0xc2d7d8=_0x155977[_0x559b6c-0x1],_0x559b6c%_0x4b4370?_0x4b4370>0x6&&_0x559b6c%_0x4b4370==0x4&&(_0xc2d7d8=_0x3813c8[_0xc2d7d8>>>0x18]<<0x18|_0x3813c8[_0xc2d7d8>>>0x10&0xff]<<0x10|_0x3813c8[_0xc2d7d8>>>0x8&0xff]<<0x8|_0x3813c8[_0xc2d7d8&0xff]):(_0xc2d7d8=_0xc2d7d8<<0x8|_0xc2d7d8>>>0x18,_0xc2d7d8=_0x3813c8[_0xc2d7d8>>>0x18]<<0x18|_0x3813c8[_0xc2d7d8>>>0x10&0xff]<<0x10|_0x3813c8[_0xc2d7d8>>>0x8&0xff]<<0x8|_0x3813c8[_0xc2d7d8&0xff],_0xc2d7d8^=_0x3eea99[_0x559b6c/_0x4b4370|0x0]<<0x18),_0x155977[_0x559b6c]=_0x155977[_0x559b6c-_0x4b4370]^_0xc2d7d8);for(var _0x3737cf=this[_0x44bddb(0x1c0)]=[],_0x33fce9=0x0;_0x33fce9<_0x254de4;_0x33fce9++){var _0x559b6c=_0x254de4-_0x33fce9;if(_0x33fce9%0x4)var _0xc2d7d8=_0x155977[_0x559b6c];else var _0xc2d7d8=_0x155977[_0x559b6c-0x4];_0x33fce9<0x4||_0x559b6c<=0x4?_0x3737cf[_0x33fce9]=_0xc2d7d8:_0x3737cf[_0x33fce9]=_0x5525c3[_0x3813c8[_0xc2d7d8>>>0x18]]^_0x37c364[_0x3813c8[_0xc2d7d8>>>0x10&0xff]]^_0x99ff77[_0x3813c8[_0xc2d7d8>>>0x8&0xff]]^_0x3ba549[_0x3813c8[_0xc2d7d8&0xff]];}}},_0x575df2(0x1b3)),'encryptBlock':__name(function(_0x524066,_0x3749e6){this['_doCryptBlock'](_0x524066,_0x3749e6,this['_keySchedule'],_0x26befd,_0x526073,_0x5dec0d,_0xc0845d,_0x3813c8);},_0x575df2(0x36a)),'decryptBlock':__name(function(_0x1f2b7f,_0x1828ac){var _0x1bb0ed=_0x575df2,_0x52895f=_0x1f2b7f[_0x1828ac+0x1];_0x1f2b7f[_0x1828ac+0x1]=_0x1f2b7f[_0x1828ac+0x3],_0x1f2b7f[_0x1828ac+0x3]=_0x52895f,this[_0x1bb0ed(0x184)](_0x1f2b7f,_0x1828ac,this[_0x1bb0ed(0x1c0)],_0x5525c3,_0x37c364,_0x99ff77,_0x3ba549,_0x9470a4);var _0x52895f=_0x1f2b7f[_0x1828ac+0x1];_0x1f2b7f[_0x1828ac+0x1]=_0x1f2b7f[_0x1828ac+0x3],_0x1f2b7f[_0x1828ac+0x3]=_0x52895f;},_0x575df2(0x146)),'_doCryptBlock':__name(function(_0x17b65b,_0x4d5c65,_0x167a36,_0x132494,_0x21ca91,_0x3baed2,_0x5cedaa,_0x25b860){var _0x49eb20=_0x575df2;for(var _0x1d6e76=this[_0x49eb20(0x215)],_0x950c23=_0x17b65b[_0x4d5c65]^_0x167a36[0x0],_0x29413f=_0x17b65b[_0x4d5c65+0x1]^_0x167a36[0x1],_0x1ee076=_0x17b65b[_0x4d5c65+0x2]^_0x167a36[0x2],_0x3854d2=_0x17b65b[_0x4d5c65+0x3]^_0x167a36[0x3],_0xdea0dd=0x4,_0x1336f5=0x1;_0x1336f5<_0x1d6e76;_0x1336f5++){var _0x59ebc0=_0x132494[_0x950c23>>>0x18]^_0x21ca91[_0x29413f>>>0x10&0xff]^_0x3baed2[_0x1ee076>>>0x8&0xff]^_0x5cedaa[_0x3854d2&0xff]^_0x167a36[_0xdea0dd++],_0x1f45bd=_0x132494[_0x29413f>>>0x18]^_0x21ca91[_0x1ee076>>>0x10&0xff]^_0x3baed2[_0x3854d2>>>0x8&0xff]^_0x5cedaa[_0x950c23&0xff]^_0x167a36[_0xdea0dd++],_0x48310e=_0x132494[_0x1ee076>>>0x18]^_0x21ca91[_0x3854d2>>>0x10&0xff]^_0x3baed2[_0x950c23>>>0x8&0xff]^_0x5cedaa[_0x29413f&0xff]^_0x167a36[_0xdea0dd++],_0x1114c7=_0x132494[_0x3854d2>>>0x18]^_0x21ca91[_0x950c23>>>0x10&0xff]^_0x3baed2[_0x29413f>>>0x8&0xff]^_0x5cedaa[_0x1ee076&0xff]^_0x167a36[_0xdea0dd++];_0x950c23=_0x59ebc0,_0x29413f=_0x1f45bd,_0x1ee076=_0x48310e,_0x3854d2=_0x1114c7;}var _0x59ebc0=(_0x25b860[_0x950c23>>>0x18]<<0x18|_0x25b860[_0x29413f>>>0x10&0xff]<<0x10|_0x25b860[_0x1ee076>>>0x8&0xff]<<0x8|_0x25b860[_0x3854d2&0xff])^_0x167a36[_0xdea0dd++],_0x1f45bd=(_0x25b860[_0x29413f>>>0x18]<<0x18|_0x25b860[_0x1ee076>>>0x10&0xff]<<0x10|_0x25b860[_0x3854d2>>>0x8&0xff]<<0x8|_0x25b860[_0x950c23&0xff])^_0x167a36[_0xdea0dd++],_0x48310e=(_0x25b860[_0x1ee076>>>0x18]<<0x18|_0x25b860[_0x3854d2>>>0x10&0xff]<<0x10|_0x25b860[_0x950c23>>>0x8&0xff]<<0x8|_0x25b860[_0x29413f&0xff])^_0x167a36[_0xdea0dd++],_0x1114c7=(_0x25b860[_0x3854d2>>>0x18]<<0x18|_0x25b860[_0x950c23>>>0x10&0xff]<<0x10|_0x25b860[_0x29413f>>>0x8&0xff]<<0x8|_0x25b860[_0x1ee076&0xff])^_0x167a36[_0xdea0dd++];_0x17b65b[_0x4d5c65]=_0x59ebc0,_0x17b65b[_0x4d5c65+0x1]=_0x1f45bd,_0x17b65b[_0x4d5c65+0x2]=_0x48310e,_0x17b65b[_0x4d5c65+0x3]=_0x1114c7;},_0x575df2(0x184)),'keySize':0x100/0x20});_0x2dcdff[_0x575df2(0x297)]=_0x2dd443[_0x575df2(0x401)](_0x427ab7);}()),_0x7b3cf0['AES'];}));}(aes$1)),aes$1[_0x150a9d(0x382)];}__name(requireAes,_0x23d062(0x1ab));var aesExports=requireAes();const AES=getDefaultExportFromCjs(aesExports);var encBase64Exports=requireEncBase64();const Base64=getDefaultExportFromCjs(encBase64Exports);var encUtf8$1={'exports':{}},encUtf8=encUtf8$1['exports'],hasRequiredEncUtf8;function requireEncUtf8(){return hasRequiredEncUtf8||(hasRequiredEncUtf8=0x1,function(_0x1c1d27,_0x2c22c4){(function(_0x2fa536,_0x5161dc){var _0x277717=_0x3017;_0x1c1d27[_0x277717(0x382)]=_0x5161dc(requireCore());}(encUtf8,function(_0x21cf22){var _0x1f5632=_0x3017;return _0x21cf22['enc'][_0x1f5632(0x428)];}));}(encUtf8$1)),encUtf8$1['exports'];}__name(requireEncUtf8,_0x23d062(0x3d9));var encUtf8Exports=requireEncUtf8();const Utf8=getDefaultExportFromCjs(encUtf8Exports);var libTypedarrays$1={'exports':{}},libTypedarrays=libTypedarrays$1[_0x23d062(0x382)],hasRequiredLibTypedarrays;function requireLibTypedarrays(){var _0x53321e=_0x23d062;return hasRequiredLibTypedarrays||(hasRequiredLibTypedarrays=0x1,function(_0x291331,_0x52ee48){(function(_0x34f6eb,_0x3b1bd3){var _0x1c0d2f=_0x3017;_0x291331[_0x1c0d2f(0x382)]=_0x3b1bd3(requireCore());}(libTypedarrays,function(_0x1d77cb){var _0x106265=_0x3017;return(function(){var _0x5ad04e=_0x3017;if(typeof ArrayBuffer==_0x5ad04e(0x37c)){var _0x1fc47f=_0x1d77cb,_0x4555ca=_0x1fc47f[_0x5ad04e(0x183)],_0x40f7e0=_0x4555ca[_0x5ad04e(0x264)],_0xce5b75=_0x40f7e0[_0x5ad04e(0x1a6)],_0x46ca65=_0x40f7e0[_0x5ad04e(0x1a6)]=function(_0xb52019){var _0x27941d=_0x5ad04e;if(_0xb52019 instanceof ArrayBuffer&&(_0xb52019=new Uint8Array(_0xb52019)),(_0xb52019 instanceof Int8Array||typeof Uint8ClampedArray<'u'&&_0xb52019 instanceof Uint8ClampedArray||_0xb52019 instanceof Int16Array||_0xb52019 instanceof Uint16Array||_0xb52019 instanceof Int32Array||_0xb52019 instanceof Uint32Array||_0xb52019 instanceof Float32Array||_0xb52019 instanceof Float64Array)&&(_0xb52019=new Uint8Array(_0xb52019[_0x27941d(0x233)],_0xb52019[_0x27941d(0x2b6)],_0xb52019['byteLength'])),_0xb52019 instanceof Uint8Array){for(var _0x1ef7f6=_0xb52019['byteLength'],_0x1fad84=[],_0x77964f=0x0;_0x77964f<_0x1ef7f6;_0x77964f++)_0x1fad84[_0x77964f>>>0x2]|=_0xb52019[_0x77964f]<<0x18-_0x77964f%0x4*0x8;_0xce5b75[_0x27941d(0x229)](this,_0x1fad84,_0x1ef7f6);}else _0xce5b75[_0x27941d(0x36e)](this,arguments);};_0x46ca65[_0x5ad04e(0x38f)]=_0x40f7e0;}}()),_0x1d77cb[_0x106265(0x183)]['WordArray'];}));}(libTypedarrays$1)),libTypedarrays$1[_0x53321e(0x382)];}__name(requireLibTypedarrays,_0x23d062(0x156));var libTypedarraysExports=requireLibTypedarrays();const WordArray=getDefaultExportFromCjs(libTypedarraysExports);var padNopadding$1={'exports':{}},padNopadding=padNopadding$1['exports'],hasRequiredPadNopadding;function requirePadNopadding(){return hasRequiredPadNopadding||(hasRequiredPadNopadding=0x1,function(_0x3bf1b1,_0x3541e1){(function(_0x55db4a,_0x529ab0,_0x27c2b7){var _0x4104e0=_0x3017;_0x3bf1b1[_0x4104e0(0x382)]=_0x529ab0(requireCore(),requireCipherCore());}(padNopadding,function(_0x37e81a){var _0xf9e07=_0x3017;return _0x37e81a[_0xf9e07(0x43b)][_0xf9e07(0x377)]={'pad':__name(function(){},_0xf9e07(0x43b)),'unpad':__name(function(){},'unpad')},_0x37e81a['pad']['NoPadding'];}));}(padNopadding$1)),padNopadding$1['exports'];}__name(requirePadNopadding,_0x23d062(0x422));var padNopaddingExports=requirePadNopadding();const NoPadding=getDefaultExportFromCjs(padNopaddingExports);function pkcs7Padding(_0x31b87f,_0xc802ba){var _0x560a18=_0x23d062;const _0x59cb71=_0xc802ba-_0x31b87f[_0x560a18(0x420)]%_0xc802ba,_0x50c371=String['fromCharCode'](_0x59cb71)['repeat'](_0x59cb71);return _0x31b87f+_0x50c371;}__name(pkcs7Padding,_0x23d062(0x411));function encrypt(_0xa02229,_0x2ab140){var _0x4e0fb0=_0x23d062;const _0x31ddf1=WordArray['random'](0x10),_0x237bcc=pkcs7Padding(_0xa02229,0x10),_0x4dd14b=AES['encrypt'](Utf8[_0x4e0fb0(0x203)](_0x237bcc),Base64['parse'](_0x2ab140),{'iv':_0x31ddf1,'padding':NoPadding});return _0x31ddf1[_0x4e0fb0(0x40d)](_0x4dd14b[_0x4e0fb0(0x35f)])[_0x4e0fb0(0xeb)](Base64);}__name(encrypt,'encrypt');function getAttachHeader(){var _0x30d38a=_0x23d062;const _0x271551=getGlobalObject()[_0x30d38a(0x1fc)];if(_0x271551){const _0x14fd00={'time':Math['floor'](Date[_0x30d38a(0x365)]()/0x3e8),'domain':location[_0x30d38a(0x407)]};return encrypt(JSON[_0x30d38a(0x253)](_0x14fd00),_0x271551);}}__name(getAttachHeader,_0x23d062(0x39e));var __defProp$7=Object[_0x23d062(0x3e0)],__getOwnPropDesc$7=Object[_0x23d062(0x237)],__decorateClass$7=__name((_0x4e5001,_0x1a8165,_0x24cbc3,_0x24c490)=>{var _0x2bb327=_0x23d062;for(var _0x492ec2=_0x24c490>0x1?void 0x0:_0x24c490?__getOwnPropDesc$7(_0x1a8165,_0x24cbc3):_0x1a8165,_0xee6442=_0x4e5001[_0x2bb327(0x420)]-0x1,_0x299f72;_0xee6442>=0x0;_0xee6442--)(_0x299f72=_0x4e5001[_0xee6442])&&(_0x492ec2=(_0x24c490?_0x299f72(_0x1a8165,_0x24cbc3,_0x492ec2):_0x299f72(_0x492ec2))||_0x492ec2);return _0x24c490&&_0x492ec2&&__defProp$7(_0x1a8165,_0x24cbc3,_0x492ec2),_0x492ec2;},_0x23d062(0x1e4)),__decorateParam$7=__name((_0x81a960,_0x3bfb1d)=>(_0x23fa79,_0x5ee716)=>_0x3bfb1d(_0x23fa79,_0x5ee716,_0x81a960),_0x23d062(0x14c)),_a20;let DomainRequestService=(_a20=class{constructor(_0xc5aff8){var _0x60875b=_0x23d062;this[_0x60875b(0x3d0)]=_0xc5aff8,this[_0x60875b(0x374)]();}[_0x23d062(0x374)](){var _0x5cc780=_0x23d062;this[_0x5cc780(0x3d0)][_0x5cc780(0x279)]({'interceptor':__name((_0x2cbbf9,_0x19cd1c)=>{const _0x1eb9b6=_0x2cbbf9['headers'],_0x5b88d3=getAttachHeader();return _0x5b88d3&&_0x1eb9b6['set']('x-univer-host',_0x5b88d3),_0x19cd1c(_0x2cbbf9);},_0x5cc780(0x34f))});}},__name(_a20,_0x23d062(0x221)),_a20);DomainRequestService=__decorateClass$7([__decorateParam$7(0x0,Inject(HTTPService))],DomainRequestService);var __defProp$6=Object['defineProperty'],__getOwnPropDesc$6=Object[_0x23d062(0x237)],__decorateClass$6=__name((_0x2cf9a8,_0x119976,_0x5d9ca9,_0xa45bf2)=>{var _0x10ae18=_0x23d062;for(var _0x41bc50=_0xa45bf2>0x1?void 0x0:_0xa45bf2?__getOwnPropDesc$6(_0x119976,_0x5d9ca9):_0x119976,_0x4885ea=_0x2cf9a8[_0x10ae18(0x420)]-0x1,_0x38cf38;_0x4885ea>=0x0;_0x4885ea--)(_0x38cf38=_0x2cf9a8[_0x4885ea])&&(_0x41bc50=(_0xa45bf2?_0x38cf38(_0x119976,_0x5d9ca9,_0x41bc50):_0x38cf38(_0x41bc50))||_0x41bc50);return _0xa45bf2&&_0x41bc50&&__defProp$6(_0x119976,_0x5d9ca9,_0x41bc50),_0x41bc50;},_0x23d062(0x3cc)),__decorateParam$6=__name((_0x37c3ff,_0x3ccc90)=>(_0x34f069,_0xbde7d3)=>_0x3ccc90(_0x34f069,_0xbde7d3,_0x37c3ff),_0x23d062(0x307)),_a21;let DataLoaderService=(_a21=class extends RxDisposable{constructor(_0x346d32,_0x214b15,_0x47963c){var _0x5a1388=_0x23d062;super(),__publicField(this,_0x5a1388(0x1ec),new BehaviorSubject(null)),__publicField(this,_0x5a1388(0x27d),this[_0x5a1388(0x1ec)][_0x5a1388(0x3fc)]()),(this['_logService']=_0x346d32,this[_0x5a1388(0x1d9)]=_0x214b15,this[_0x5a1388(0x1b9)]=_0x47963c);}async[_0x23d062(0x37a)](_0x4bd2cf,_0x43f898,_0x425796){var _0x572d9c=_0x23d062;this['_unitInfo$'][_0x572d9c(0x369)]({'unitId':_0x4bd2cf,'type':_0x43f898,'subUnitId':_0x425796});let _0x57712e=null;switch(_0x43f898){case UniverType[_0x572d9c(0x367)]:{_0x57712e=await this[_0x572d9c(0x260)](_0x4bd2cf);break;}case UniverType[_0x572d9c(0x375)]:{_0x57712e=await this[_0x572d9c(0x19e)](_0x4bd2cf);break;}default:{this['_logService'][_0x572d9c(0x1f8)](_0x572d9c(0x331),_0x572d9c(0x24f));break;}}return _0x57712e;}async['_loadSheet'](_0x19400f){var _0x2414df=_0x23d062,_0x573ccf;let _0xdc6239=0x0;const _0x593b92=await((_0x573ccf=this[_0x2414df(0x1b9)])==null?void 0x0:_0x573ccf[_0x2414df(0x3a2)](_0x19400f));return _0x593b92&&(_0x593b92[_0x2414df(0x413)]||_0x593b92['mutations'][_0x2414df(0x420)]!==0x0)&&(_0xdc6239=_0x593b92[_0x2414df(0x410)]),_0xdc6239===0x0&&this[_0x2414df(0x305)][_0x2414df(0x2ba)]('[DataLoaderService]',_0x2414df(0x1eb)),this[_0x2414df(0x1d9)]['loadSheet'](_0x19400f,_0xdc6239);}async[_0x23d062(0x19e)](_0x169ca8){var _0x1eecc8=_0x23d062,_0x1386ee;let _0x3f8b40=0x0;const _0x4ae488=await((_0x1386ee=this[_0x1eecc8(0x1b9)])==null?void 0x0:_0x1386ee[_0x1eecc8(0x3a2)](_0x169ca8));return _0x4ae488&&(_0x4ae488[_0x1eecc8(0x413)]||_0x4ae488[_0x1eecc8(0x3ff)][_0x1eecc8(0x420)]!==0x0)&&(_0x3f8b40=_0x4ae488[_0x1eecc8(0x410)]),_0x3f8b40===0x0&&this[_0x1eecc8(0x305)][_0x1eecc8(0x2ba)](_0x1eecc8(0x331),_0x1eecc8(0x1eb)),this['_snapshotService']['loadDoc'](_0x169ca8,_0x3f8b40);}},__name(_a21,_0x23d062(0x139)),_a21);DataLoaderService=__decorateClass$6([__decorateParam$6(0x0,ILogService),__decorateParam$6(0x1,Inject(SnapshotService)),__decorateParam$6(0x2,Optional(ILocalCacheService))],DataLoaderService);var __defProp$5=Object[_0x23d062(0x3e0)],__getOwnPropDesc$5=Object[_0x23d062(0x237)],__decorateClass$5=__name((_0x5625cd,_0x3cde1a,_0x260744,_0x58f4b9)=>{for(var _0x1109f5=_0x58f4b9>0x1?void 0x0:_0x58f4b9?__getOwnPropDesc$5(_0x3cde1a,_0x260744):_0x3cde1a,_0x29172c=_0x5625cd['length']-0x1,_0xc545c5;_0x29172c>=0x0;_0x29172c--)(_0xc545c5=_0x5625cd[_0x29172c])&&(_0x1109f5=(_0x58f4b9?_0xc545c5(_0x3cde1a,_0x260744,_0x1109f5):_0xc545c5(_0x1109f5))||_0x1109f5);return _0x58f4b9&&_0x1109f5&&__defProp$5(_0x3cde1a,_0x260744,_0x1109f5),_0x1109f5;},_0x23d062(0x10b)),__decorateParam$5=__name((_0x1c29b6,_0x187f94)=>(_0x2b194e,_0x191660)=>_0x187f94(_0x2b194e,_0x191660,_0x1c29b6),'__decorateParam$5');const ALLOW_IMAGE_LIST=['image/png',_0x23d062(0x2f2),_0x23d062(0x3bc),_0x23d062(0x2db),'image/bmp'],ALLOW_IMAGE_SIZE=0x5*0x400*0x400,EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY=_0x23d062(0x284),DEFAULT_EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY=_0x23d062(0x2d9),EXCHANGE_SIGN_URL_SERVER_URL_KEY=_0x23d062(0x169),DEFAULT_EXCHANGE_SIGN_URL_SERVER_URL_KEY=_0x23d062(0x2fa);var _a22;let CollaborationImageIoService=(_a22=class{constructor(_0x2ff698,_0x5f0742,_0x3057a4){var _0xfed522=_0x23d062;__publicField(this,_0xfed522(0x204),0x0),__publicField(this,_0xfed522(0x436),new Subject()),__publicField(this,_0xfed522(0x363),this[_0xfed522(0x436)]),__publicField(this,_0xfed522(0x1b2),new Map()),(this[_0xfed522(0x3d0)]=_0x2ff698,this[_0xfed522(0x2cd)]=_0x5f0742,this[_0xfed522(0x2e7)]=_0x3057a4);}['setWaitCount'](_0xa258a3){var _0x33ede7=_0x23d062;this[_0x33ede7(0x204)]=_0xa258a3,this[_0x33ede7(0x436)]['next'](_0xa258a3);}['getImageSourceCache'](_0x37f64e,_0x2655f9){var _0x4c588f=_0x23d062;if(_0x2655f9===ImageSourceType['BASE64']){const _0x2294c3=new Image();return _0x2294c3[_0x4c588f(0x168)]=_0x37f64e,_0x2294c3;}return this[_0x4c588f(0x1b2)][_0x4c588f(0x354)](_0x37f64e);}[_0x23d062(0x132)](_0x3ac0ae,_0x471750,_0x34a5e1){var _0x3f1e72=_0x23d062;_0x471750===ImageSourceType[_0x3f1e72(0x180)]||_0x34a5e1==null||this[_0x3f1e72(0x1b2)][_0x3f1e72(0x319)](_0x3ac0ae,_0x34a5e1);}async['getImage'](_0x3d18f6){var _0x4ab95f=_0x23d062;try{const _0x2d27a2=this[_0x4ab95f(0x240)](this['_getSignURL'](),''+_0x3d18f6),_0x530abe=(await this['_httpService'][_0x4ab95f(0x354)](_0x2d27a2))[_0x4ab95f(0x3f4)];if(_0x530abe[_0x4ab95f(0x1f8)]&&_0x530abe[_0x4ab95f(0x1f8)][_0x4ab95f(0x10c)]===ErrorCode['OK']){const _0x486d47=new URL(_0x530abe[_0x4ab95f(0x257)],this[_0x4ab95f(0x3fe)]())['toString']();return Promise[_0x4ab95f(0x3dd)](_0x486d47);}return Promise[_0x4ab95f(0xf9)](_0x530abe[_0x4ab95f(0x1f8)]);}catch(_0x19177a){return Promise[_0x4ab95f(0xf9)](_0x19177a);}}async['saveImage'](_0x38d209){var _0x2699de=_0x23d062;let _0x2fac7d='';if(!ALLOW_IMAGE_LIST[_0x2699de(0x258)](_0x38d209[_0x2699de(0x408)]))return this['_decreaseWaiting'](),Promise[_0x2699de(0xf9)](new Error(ImageUploadStatusType['ERROR_IMAGE_TYPE']));if(_0x38d209[_0x2699de(0x419)]>ALLOW_IMAGE_SIZE)return this[_0x2699de(0x3ee)](),Promise[_0x2699de(0xf9)](new Error(ImageUploadStatusType['ERROR_EXCEED_SIZE']));try{const _0x2a5d62=new FormData();_0x2a5d62[_0x2699de(0x405)](_0x2699de(0x1cc),_0x38d209);const _0x7442a2=this[_0x2699de(0x2e7)][_0x2699de(0x170)](),_0x3e421f=_0x7442a2==null?void 0x0:_0x7442a2[_0x2699de(0x3f3)]();if(!_0x3e421f)throw new Error(_0x2699de(0x35c));const _0x292d9a=this[_0x2699de(0x148)]()+_0x2699de(0x42c)+_0x38d209[_0x2699de(0x419)][_0x2699de(0xeb)]()+_0x2699de(0x316)+FileSource[_0x2699de(0x3eb)]+_0x2699de(0x13e)+encodeURIComponent(_0x3e421f),_0x5fc90e=await(await fetch(_0x292d9a,{'method':_0x2699de(0x214),'body':_0x2a5d62}))[_0x2699de(0x3b2)]();if(typeof _0x5fc90e[_0x2699de(0x31d)]!=_0x2699de(0x28a))return this['_decreaseWaiting'](),Promise[_0x2699de(0xf9)](new Error(ImageUploadStatusType[_0x2699de(0x160)]));_0x2fac7d=_0x5fc90e[_0x2699de(0x31d)];}catch{return this[_0x2699de(0x3ee)](),Promise[_0x2699de(0xf9)](new Error(ImageUploadStatusType[_0x2699de(0x160)]));}return new Promise((_0x49896f,_0x4c6a22)=>{const _0x47a904=new FileReader();_0x47a904['readAsDataURL'](_0x38d209),_0x47a904['onload']=_0x5cd5c2=>{var _0x3a963b=_0x3017,_0x5e9904;const _0x56dd24=(_0x5e9904=_0x5cd5c2[_0x3a963b(0x16c)])==null?void 0x0:_0x5e9904['result'];if(_0x56dd24==null){this[_0x3a963b(0x3ee)](),_0x4c6a22(new Error(ImageUploadStatusType[_0x3a963b(0x160)]));return;}const _0x30f424=Tools[_0x3a963b(0x3cb)](0x6);_0x49896f({'imageId':_0x30f424,'imageSourceType':ImageSourceType[_0x3a963b(0x3a5)],'source':_0x2fac7d,'base64Cache':_0x56dd24,'status':ImageUploadStatusType[_0x3a963b(0x2f5)]}),this[_0x3a963b(0x3ee)]();};});}['_getUploadFileURL'](){var _0x4f859c=_0x23d062,_0x6e51a6,_0x1bb4e4;const _0x8db4ef=this[_0x4f859c(0x2cd)][_0x4f859c(0x14b)](EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY),_0x289020=this['_configService'][_0x4f859c(0x14b)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x1bb4e4=(_0x6e51a6=_0x289020==null?void 0x0:_0x289020[_0x4f859c(0x2cf)])!=null?_0x6e51a6:_0x8db4ef)!=null?_0x1bb4e4:DEFAULT_EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY;}[_0x23d062(0x3c4)](){var _0x2cc6b6=_0x23d062,_0x161b36,_0xf6b425;const _0x40a5fa=this[_0x2cc6b6(0x2cd)][_0x2cc6b6(0x14b)](EXCHANGE_SIGN_URL_SERVER_URL_KEY),_0x4aed63=this[_0x2cc6b6(0x2cd)][_0x2cc6b6(0x14b)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0xf6b425=(_0x161b36=_0x4aed63==null?void 0x0:_0x4aed63[_0x2cc6b6(0x3a7)])!=null?_0x161b36:_0x40a5fa)!=null?_0xf6b425:DEFAULT_EXCHANGE_SIGN_URL_SERVER_URL_KEY;}[_0x23d062(0x3fe)](){var _0x3056b2=_0x23d062,_0x3b541d;const _0x3abf32=this['_configService'][_0x3056b2(0x14b)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x3b541d=_0x3abf32==null?void 0x0:_0x3abf32[_0x3056b2(0x110)])!=null?_0x3b541d:location[_0x3056b2(0x321)];}[_0x23d062(0x240)](_0x4eb9e6,_0x2b9f07){var _0x45c8e1=_0x23d062;return _0x4eb9e6['replace'](_0x45c8e1(0x3de),_0x2b9f07);}[_0x23d062(0x3ee)](){var _0x30ce2b=_0x23d062;this[_0x30ce2b(0x204)]-=0x1,this['_change$']['next'](this[_0x30ce2b(0x204)]);}},__name(_a22,_0x23d062(0x1a8)),_a22);CollaborationImageIoService=__decorateClass$5([__decorateParam$5(0x0,Inject(HTTPService)),__decorateParam$5(0x1,IConfigService),__decorateParam$5(0x2,Inject(IUniverInstanceService))],CollaborationImageIoService);var __defProp$4=Object['defineProperty'],__getOwnPropDesc$4=Object[_0x23d062(0x237)],__decorateClass$4=__name((_0xcb32c8,_0x8ef887,_0x3acdab,_0x3d953a)=>{var _0x45a684=_0x23d062;for(var _0x252d61=_0x3d953a>0x1?void 0x0:_0x3d953a?__getOwnPropDesc$4(_0x8ef887,_0x3acdab):_0x8ef887,_0x3080d0=_0xcb32c8[_0x45a684(0x420)]-0x1,_0x5a2339;_0x3080d0>=0x0;_0x3080d0--)(_0x5a2339=_0xcb32c8[_0x3080d0])&&(_0x252d61=(_0x3d953a?_0x5a2339(_0x8ef887,_0x3acdab,_0x252d61):_0x5a2339(_0x252d61))||_0x252d61);return _0x3d953a&&_0x252d61&&__defProp$4(_0x8ef887,_0x3acdab,_0x252d61),_0x252d61;},_0x23d062(0x34b)),__decorateParam$4=__name((_0x2dc538,_0x421f47)=>(_0x2dd003,_0x109941)=>_0x421f47(_0x2dd003,_0x109941,_0x2dc538),_0x23d062(0x433));const DEFAULT_AUTHZ_URL_KEY='/universer-api/authz';var _a23;let MentionIoHttpService=(_a23=class{constructor(_0x31dc0f,_0x31e5ef){var _0x77abc8=_0x23d062;this[_0x77abc8(0x2cd)]=_0x31dc0f,this[_0x77abc8(0x277)]=_0x31e5ef;}[_0x23d062(0x28b)](){var _0x55ab36=_0x23d062,_0x10a96a,_0x2d51a1;const _0x11c699=this[_0x55ab36(0x2cd)][_0x55ab36(0x14b)](AUTHZ_URL_KEY),_0x4c61e7=this[_0x55ab36(0x2cd)]['getConfig'](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x2d51a1=(_0x10a96a=_0x4c61e7==null?void 0x0:_0x4c61e7[_0x55ab36(0x21a)])!=null?_0x10a96a:_0x11c699)!=null?_0x2d51a1:DEFAULT_AUTHZ_URL_KEY;}async[_0x23d062(0x1e2)](_0x5bd4b4){var _0x2649e7=_0x23d062;const _0x1cf10a=this[_0x2649e7(0x28b)]()+'/collaborator';return{'list':[{'title':_0x2649e7(0x151),'mentions':(await this[_0x2649e7(0x277)]['get'](_0x1cf10a,{'params':{'objectID':_0x5bd4b4['unitId'],'unitID':_0x5bd4b4['unitId']}}))[_0x2649e7(0x3f4)][_0x2649e7(0x273)][_0x2649e7(0x3a9)](_0x2c0eb9=>({'objectId':_0x2c0eb9['id'],'name':_0x2c0eb9['subject']['name'],'metadata':{'icon':_0x2c0eb9['subject'][_0x2649e7(0x147)]},'label':_0x2c0eb9[_0x2649e7(0x25c)][_0x2649e7(0x1b1)],'objectType':MentionType[_0x2649e7(0x290)]})),'metadata':{},'type':MentionType[_0x2649e7(0x290)]}]};}},__name(_a23,_0x23d062(0x3ca)),_a23);MentionIoHttpService=__decorateClass$4([__decorateParam$4(0x0,Inject(IConfigService)),__decorateParam$4(0x1,Inject(HTTPService))],MentionIoHttpService);var __defProp$3=Object['defineProperty'],__getOwnPropDesc$3=Object[_0x23d062(0x237)],__decorateClass$3=__name((_0x444703,_0x59f82f,_0x21f304,_0x5adaa9)=>{for(var _0x104e81=_0x5adaa9>0x1?void 0x0:_0x5adaa9?__getOwnPropDesc$3(_0x59f82f,_0x21f304):_0x59f82f,_0x181bd0=_0x444703['length']-0x1,_0x453cca;_0x181bd0>=0x0;_0x181bd0--)(_0x453cca=_0x444703[_0x181bd0])&&(_0x104e81=(_0x5adaa9?_0x453cca(_0x59f82f,_0x21f304,_0x104e81):_0x453cca(_0x104e81))||_0x104e81);return _0x5adaa9&&_0x104e81&&__defProp$3(_0x59f82f,_0x21f304,_0x104e81),_0x104e81;},_0x23d062(0x333)),__decorateParam$3=__name((_0x15812a,_0x14c6c8)=>(_0x1a66ba,_0x36891f)=>_0x14c6c8(_0x1a66ba,_0x36891f,_0x15812a),_0x23d062(0x127)),_a24;let PermissionService=(_a24=class extends RxDisposable{constructor(_0x58a81f,_0x19508f,_0x2adc19,_0x5956cf,_0x18975f,_0xd777d,_0x1b09ed){var _0x12f538=_0x23d062;super(),this[_0x12f538(0x216)]=_0x58a81f,this[_0x12f538(0x2e7)]=_0x19508f,this['_permissionService']=_0x2adc19,this[_0x12f538(0x14d)]=_0x5956cf,this[_0x12f538(0x17f)]=_0x18975f,this['_authzIoService']=_0xd777d,this[_0x12f538(0x2bf)]=_0x1b09ed,this[_0x12f538(0x182)](),this[_0x12f538(0x172)]();}[_0x23d062(0x172)](){var _0x3c1889=_0x23d062;const _0x2c641e=__name(async _0x199047=>{var _0x4fc6ea=_0x3017;(await this[_0x4fc6ea(0x14d)]['requireSession'](_0x199047))['event$'][_0x4fc6ea(0x3c6)](filter(_0x2a44fe=>_0x2a44fe[_0x4fc6ea(0x231)]===CollaborationEvent[_0x4fc6ea(0x3d5)]),_0x479f1b(this[_0x4fc6ea(0x361)]))[_0x4fc6ea(0x20e)](_0x4cb2fd=>{var _0x45f529=_0x4fc6ea;const _0x256cec=_0x4cb2fd,{reason:_0x5d99db}=_0x256cec[_0x45f529(0x16d)];this['_collaborationUIEventService']['emitEvent']({'id':CollaborationUIEventId[_0x45f529(0x299)],'data':_0x5d99db}),this['_permissionService'][_0x45f529(0x33e)](new WorkbookEditablePermission(_0x199047)['id'],!0x1),this[_0x45f529(0x14d)][_0x45f529(0x177)](_0x199047);});},_0x3c1889(0x1ae));merge(this[_0x3c1889(0x2e7)][_0x3c1889(0x1c4)](UniverInstanceType['UNIVER_SHEET']),this[_0x3c1889(0x2e7)]['getTypeOfUnitAdded$'](UniverInstanceType[_0x3c1889(0x375)]))['pipe'](map(_0x4db112=>_0x4db112[_0x3c1889(0x3f3)]()),filter(_0x137e49=>!isInternalEditorID(_0x137e49)),_0x479f1b(this[_0x3c1889(0x361)]))['subscribe'](_0x305e64=>{_0x2c641e(_0x305e64);});}[_0x23d062(0x182)](){var _0x5b1e9f=_0x23d062;const _0x3405b3=__name(async _0x2d03ba=>{var _0x531bde=_0x3017;const _0x121d3a=await this[_0x531bde(0x14d)][_0x531bde(0x1da)](_0x2d03ba),_0x31786b=this[_0x531bde(0x216)][_0x531bde(0x354)](SheetPermissionInitController);_0x121d3a[_0x531bde(0x181)][_0x531bde(0x3c6)](filter(_0xcade1f=>_0xcade1f['eventID']===CollaborationEvent[_0x531bde(0x387)]),_0x479f1b(this[_0x531bde(0x361)]))[_0x531bde(0x20e)](_0x210fa0=>{var _0x4684bd=_0x531bde;const _0x1919a3=_0x210fa0,{objectId:_0x4aa4c3}=_0x1919a3[_0x4684bd(0x16d)];_0x4aa4c3===_0x2d03ba?_0x31786b[_0x4684bd(0x3f7)](_0x2d03ba):_0x31786b[_0x4684bd(0x351)](_0x2d03ba,_0x4aa4c3);});},_0x5b1e9f(0x17a));merge(this[_0x5b1e9f(0x2e7)][_0x5b1e9f(0x1c4)](UniverInstanceType['UNIVER_SHEET']),this[_0x5b1e9f(0x2e7)][_0x5b1e9f(0x1c4)](UniverInstanceType[_0x5b1e9f(0x375)]))[_0x5b1e9f(0x3c6)](map(_0x2f8904=>_0x2f8904[_0x5b1e9f(0x3f3)]()),filter(_0x47b544=>!isInternalEditorID(_0x47b544)),_0x479f1b(this[_0x5b1e9f(0x361)]))[_0x5b1e9f(0x20e)](_0x1aca96=>{_0x3405b3(_0x1aca96);});}},__name(_a24,_0x23d062(0xe9)),_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[_0x23d062(0x3e0)],__getOwnPropDesc$2=Object[_0x23d062(0x237)],__decorateClass$2=__name((_0x2fdef9,_0x1fdb8c,_0x54dbde,_0x1022f1)=>{for(var _0x131297=_0x1022f1>0x1?void 0x0:_0x1022f1?__getOwnPropDesc$2(_0x1fdb8c,_0x54dbde):_0x1fdb8c,_0xd17ebb=_0x2fdef9['length']-0x1,_0xbd0c70;_0xd17ebb>=0x0;_0xd17ebb--)(_0xbd0c70=_0x2fdef9[_0xd17ebb])&&(_0x131297=(_0x1022f1?_0xbd0c70(_0x1fdb8c,_0x54dbde,_0x131297):_0xbd0c70(_0x131297))||_0x131297);return _0x1022f1&&_0x131297&&__defProp$2(_0x1fdb8c,_0x54dbde,_0x131297),_0x131297;},_0x23d062(0x3c2)),__decorateParam$2=__name((_0x364741,_0x55ca64)=>(_0x23b8eb,_0x481a20)=>_0x55ca64(_0x23b8eb,_0x481a20,_0x364741),'__decorateParam$2'),_a25;let SnapshotServerOverHTTPService=(_a25=class{constructor(_0x5c6807,_0x1aa131){this['_configService']=_0x5c6807,this['_httpService']=_0x1aa131;}async['getUnitOnRev'](_0x294c75,_0x10f1f4){var _0x1c1657=_0x23d062,_0x1de562;const {unitID:_0x4393cb,type:_0x5abd43,revision:revision=0x0}=_0x10f1f4,_0xde2dad=this[_0x1c1657(0x3ac)]()+'/'+_0x5abd43+_0x1c1657(0x3d3)+_0x4393cb+_0x1c1657(0x342)+revision,_0x5e5b7e=(await this[_0x1c1657(0x3d0)]['get'](_0xde2dad))[_0x1c1657(0x3f4)],_0x3598df=(_0x1de562=_0x5e5b7e[_0x1c1657(0x157)])==null?void 0x0:_0x1de562[_0x1c1657(0x23f)];if(_0x3598df){const _0x2ee9ae=_0x3598df==null?void 0x0:_0x3598df[_0x1c1657(0x1be)],_0x34e264=textEncoder[_0x1c1657(0x1f3)](b64DecodeUnicode(_0x2ee9ae));_0x3598df[_0x1c1657(0x1be)]=_0x34e264,Object[_0x1c1657(0x145)](_0x3598df[_0x1c1657(0xf1)])[_0x1c1657(0x29e)](([,_0x2030bf])=>{var _0x2236d8=_0x1c1657;const _0x31201b=_0x2030bf[_0x2236d8(0x1be)],_0x351934=textEncoder[_0x2236d8(0x1f3)](b64DecodeUnicode(_0x31201b));_0x2030bf[_0x2236d8(0x1be)]=_0x351934;});}return _0x5e5b7e;}async[_0x23d062(0x250)](_0x4cc079,_0xbff1d8){var _0x3fa725=_0x23d062;const {unitID:_0x1ef7bc,type:_0x12024e,blockID:_0x4e22e9}=_0xbff1d8,_0x4f39c0=this['_getAPIPrefix']()+'/'+_0x12024e+_0x3fa725(0x3d3)+_0x1ef7bc+_0x3fa725(0x270)+_0x4e22e9;return(await this[_0x3fa725(0x3d0)][_0x3fa725(0x354)](_0x4f39c0))[_0x3fa725(0x3f4)];}async[_0x23d062(0x1ac)](_0x5a3150,_0x460eef){var _0x4452d1=_0x23d062;const {unitID:_0x3fdc32,type:_0x35fce8,blockID:_0x279ff1}=_0x460eef,_0x249ff8=this[_0x4452d1(0x3bd)]()+_0x4452d1(0x270)+_0x35fce8+_0x4452d1(0x3d3)+_0x3fdc32+_0x4452d1(0x270)+_0x279ff1;return(await this[_0x4452d1(0x3d0)]['get'](_0x249ff8))[_0x4452d1(0x3f4)];}async[_0x23d062(0xe8)](_0x35ee31,_0x2aeed1){var _0x2c1b9b=_0x23d062;const {unitID:_0x56c49e,type:_0x56de1f,from:_0x44d60c,to:_0x1eb525}=_0x2aeed1,_0x23b87f=this['_getAPIPrefix']()+'/'+_0x56de1f+_0x2c1b9b(0x3d3)+_0x56c49e+_0x2c1b9b(0x292)+_0x44d60c+_0x2c1b9b(0x1d7)+_0x1eb525;return(await this[_0x2c1b9b(0x3d0)][_0x2c1b9b(0x354)](_0x23b87f))[_0x2c1b9b(0x3f4)];}[_0x23d062(0x3ac)](){var _0x2685ad=_0x23d062,_0x2625ff;return(_0x2625ff=this['_configService'][_0x2685ad(0x14b)](SNAPSHOT_URL_KEY))!=null?_0x2625ff:this['_getAPIPrefix']();}[_0x23d062(0x3bd)](){var _0x3b8823=_0x23d062,_0x2ac8af,_0x19d1b4;const _0x57da88=this[_0x3b8823(0x2cd)][_0x3b8823(0x14b)](SNAPSHOT_SERVER_URL_KEY),_0x55a686=this[_0x3b8823(0x2cd)][_0x3b8823(0x14b)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x19d1b4=(_0x2ac8af=_0x55a686==null?void 0x0:_0x55a686['snapshotServerUrl'])!=null?_0x2ac8af:_0x57da88)!=null?_0x19d1b4:DEFAULT_SNAPSHOT_SERVER_URL;}async[_0x23d062(0x268)](_0x18d07e,_0x5426f9){var _0x2de780=_0x23d062;const _0x52552d='/universer-api/snapshot/'+_0x5426f9[_0x2de780(0x408)]+'/unit/'+_0x5426f9[_0x2de780(0x432)]+'/resources';return(await this['_httpService']['get'](_0x52552d,{'params':{'resourceId':JSON[_0x2de780(0x253)](_0x5426f9[_0x2de780(0x298)])}}))[_0x2de780(0x3f4)];}[_0x23d062(0x2bc)](){var _0x3d66e3=_0x23d062;throw new Error(_0x3d66e3(0x24c));}['saveSheetBlock'](){var _0xb30a59=_0x23d062;throw new Error(_0xb30a59(0x24c));}[_0x23d062(0xe6)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x23d062(0x2d8)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x23d062(0x11d)](){var _0x334fef=_0x23d062;throw new Error(_0x334fef(0x24c));}},__name(_a25,_0x23d062(0x300)),_a25);SnapshotServerOverHTTPService=__decorateClass$2([__decorateParam$2(0x0,IConfigService),__decorateParam$2(0x1,Inject(HTTPService))],SnapshotServerOverHTTPService);var __defProp$1=Object[_0x23d062(0x3e0)],__getOwnPropDesc$1=Object['getOwnPropertyDescriptor'],__decorateClass$1=__name((_0xef8bf9,_0x3daa55,_0x430b10,_0x53f299)=>{var _0x173645=_0x23d062;for(var _0x856bc0=_0x53f299>0x1?void 0x0:_0x53f299?__getOwnPropDesc$1(_0x3daa55,_0x430b10):_0x3daa55,_0x40e097=_0xef8bf9[_0x173645(0x420)]-0x1,_0x352d9c;_0x40e097>=0x0;_0x40e097--)(_0x352d9c=_0xef8bf9[_0x40e097])&&(_0x856bc0=(_0x53f299?_0x352d9c(_0x3daa55,_0x430b10,_0x856bc0):_0x352d9c(_0x856bc0))||_0x856bc0);return _0x53f299&&_0x856bc0&&__defProp$1(_0x3daa55,_0x430b10,_0x856bc0),_0x856bc0;},_0x23d062(0x381)),__decorateParam$1=__name((_0x4688c8,_0x541d5a)=>(_0x391cb4,_0x10a196)=>_0x541d5a(_0x391cb4,_0x10a196,_0x4688c8),_0x23d062(0x360)),_a26;let CollaborativeUndoRedoService=(_a26=class extends LocalUndoRedoService{constructor(_0x554d87,_0x3605c5,_0x5d5400,_0x2cfdaa,_0xc29de3){var _0x86788f=_0x23d062;super(_0x554d87,_0x3605c5,_0x5d5400),this[_0x86788f(0x2b3)]=_0x2cfdaa,this['_logService']=_0xc29de3;}['transformUndoRedo'](_0x4488eb,_0x1c361d){var _0x198c22=_0x23d062;const _0x1a914d=this[_0x198c22(0x285)](_0x4488eb);if(_0x1a914d)try{const _0x376a4a=this[_0x198c22(0x1dd)](_0x1a914d,_0x1c361d);this[_0x198c22(0x2c7)](_0x4488eb,_0x376a4a);}catch(_0xa1c4bc){this[_0x198c22(0x305)]['error'](_0x198c22(0x111),_0xa1c4bc),this[_0x198c22(0x1af)](_0x4488eb);}const _0xd18229=this[_0x198c22(0x30f)](_0x4488eb);if(_0xd18229)try{const _0x18fa4b=this[_0x198c22(0x1dd)](_0xd18229,_0x1c361d);this[_0x198c22(0x40f)](_0x4488eb,_0x18fa4b);}catch(_0x4e7694){this[_0x198c22(0x305)][_0x198c22(0x1f8)](_0x4e7694),this[_0x198c22(0x42f)](_0x4488eb);}}[_0x23d062(0x1af)](_0x187c74){var _0x1ba22b=_0x23d062;const _0x11636c=this['_getUndoStack'](_0x187c74);_0x11636c&&(_0x11636c[_0x1ba22b(0x420)]=0x0,this[_0x1ba22b(0x3ad)]());}[_0x23d062(0x42f)](_0x426a33){var _0x1ef7bf=_0x23d062;const _0x6598f5=this[_0x1ef7bf(0x30f)](_0x426a33);_0x6598f5&&(_0x6598f5['length']=0x0,this[_0x1ef7bf(0x3ad)]());}['_substituteUndoStack'](_0xd1cfb3,_0x2b3723){var _0x3bb66a=_0x23d062;this[_0x3bb66a(0x1ee)][_0x3bb66a(0x319)](_0xd1cfb3,_0x2b3723),this[_0x3bb66a(0x3ad)]();}['_substituteRedoStack'](_0x18043e,_0x273bc9){var _0x2daddb=_0x23d062;this[_0x2daddb(0x232)][_0x2daddb(0x319)](_0x18043e,_0x273bc9),this['_updateStatus']();}['_transformStack'](_0x54b4ee,_0x5de186){var _0x3050a4=_0x23d062;const _0x425fa2=[];let _0xcdb014=_0x5de186,_0x7d65c5=_0x5de186;for(let _0x233e15=_0x54b4ee['length']-0x1;_0x233e15>=0x0;_0x233e15--){const {unitID:_0xdbc2a,undoMutations:_0xce673b,redoMutations:_0x31cbe5}=_0x54b4ee[_0x233e15],_0x5380f6=this[_0x3050a4(0x2b3)][_0x3050a4(0x33c)](_0xcdb014,_0xce673b),_0x239c03=this[_0x3050a4(0x2b3)][_0x3050a4(0x33c)](_0x7d65c5,_0x31cbe5);if(isTransformMutationsWithChangesetFailure(_0x5380f6)||isTransformMutationsWithChangesetFailure(_0x239c03)){this[_0x3050a4(0x305)][_0x3050a4(0x1f8)](_0x3050a4(0x111),_0x3050a4(0x17d),_0x5380f6,_0x239c03);break;}_0xcdb014=_0x5380f6['c1Prime'],_0x7d65c5=_0x239c03['c1Prime'],_0x425fa2[_0x3050a4(0x17c)]({'unitID':_0xdbc2a,'undoMutations':_0x5380f6[_0x3050a4(0x349)],'redoMutations':_0x239c03[_0x3050a4(0x349)]});}return _0x425fa2[_0x3050a4(0x15e)]();}},__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[_0x23d062(0x3e0)],__getOwnPropDesc=Object['getOwnPropertyDescriptor'],__defNormalProp2=__name((_0x47c53d,_0x5b4bbc,_0x350afe)=>_0x5b4bbc in _0x47c53d?__defProp2(_0x47c53d,_0x5b4bbc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x350afe}):_0x47c53d[_0x5b4bbc]=_0x350afe,_0x23d062(0x3e9)),__decorateClass=__name((_0x13633b,_0x79275a,_0x8aab90,_0x400492)=>{for(var _0x46caaa=_0x400492>0x1?void 0x0:_0x400492?__getOwnPropDesc(_0x79275a,_0x8aab90):_0x79275a,_0x2be9b9=_0x13633b['length']-0x1,_0x5e3b0b;_0x2be9b9>=0x0;_0x2be9b9--)(_0x5e3b0b=_0x13633b[_0x2be9b9])&&(_0x46caaa=(_0x400492?_0x5e3b0b(_0x79275a,_0x8aab90,_0x46caaa):_0x5e3b0b(_0x46caaa))||_0x46caaa);return _0x400492&&_0x46caaa&&__defProp2(_0x79275a,_0x8aab90,_0x46caaa),_0x46caaa;},_0x23d062(0x3b4)),__decorateParam=__name((_0x3f9e9f,_0x464107)=>(_0xf837b1,_0x1be01f)=>_0x464107(_0xf837b1,_0x1be01f,_0x3f9e9f),'__decorateParam'),__publicField2=__name((_0x46ee6c,_0x2b800a,_0x468721)=>__defNormalProp2(_0x46ee6c,_0x2b800a+'',_0x468721),_0x23d062(0x3e3));const PLUGIN_NAME=_0x23d062(0x3e2);var _a27;let UniverCollaborationClientPlugin=(_a27=class extends Plugin{constructor(_0x549492=defaultPluginConfig,_0x4b9667,_0x148870,_0x4079f9){var _0x48eca1=_0x23d062;super(),this[_0x48eca1(0x368)]=_0x549492,this[_0x48eca1(0x305)]=_0x4b9667,this[_0x48eca1(0x216)]=_0x148870,this['_configService']=_0x4079f9;const {..._0x32e803}=_0x372c30({},defaultPluginConfig,this[_0x48eca1(0x368)]);this[_0x48eca1(0x2cd)]['setConfig'](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,_0x32e803);}['onStarting'](){var _0x2f0c63=_0x23d062;this[_0x2f0c63(0x3a1)](),this[_0x2f0c63(0x28c)]();}[_0x23d062(0x3a1)](){var _0x5e6320=_0x23d062,_0xba7880,_0x25b395,_0x2ab7c1,_0x2a30d4;this[_0x5e6320(0x216)][_0x5e6320(0x2b8)](IUndoRedoService)&&this['_logService'][_0x5e6320(0x1f8)]('[UniverCollaborationClientPlugin]',_0x5e6320(0x1d6));const _0x4106e3=mergeOverrideWithDependencies([[IUndoRedoService,{'useClass':CollaborativeUndoRedoService}],[CollaborationSessionService],[MemberService],[SheetTransformSelectionsService],[AuthServerService],[DomainRequestService],[CommentService],[PermissionService],[CollaborationUIEventService],[DataLoaderService],[ICollaborationSocketService,{'useClass':(_0x25b395=(_0xba7880=this[_0x5e6320(0x368)])==null?void 0x0:_0xba7880[_0x5e6320(0x197)])!=null?_0x25b395:CollaborationSocketService}],[ISnapshotServerService,{'useClass':SnapshotServerOverHTTPService}],[IAuthzIoService,{'useClass':AuthzIoHttpService}],[IImageIoService,{'useClass':CollaborationImageIoService}],[IMentionIOService,{'useClass':MentionIoHttpService}],[CollaborationController],[FileNameController]],(_0x2ab7c1=this[_0x5e6320(0x368)])==null?void 0x0:_0x2ab7c1['override']);if(!((_0x2a30d4=this[_0x5e6320(0x368)])!=null&&_0x2a30d4[_0x5e6320(0x217)])){const _0x3bdde7=_0x4106e3['findIndex'](([_0x54c940])=>_0x54c940===ISingleActiveUnitService);_0x3bdde7!==-0x1&&_0x4106e3[_0x5e6320(0x19a)](_0x3bdde7,0x1);}registerDependencies(this['_injector'],_0x4106e3);}[_0x23d062(0x28c)](){var _0x110036=_0x23d062,_0xd6c4f2,_0x14e08c,_0x274f5a;this['_injector'][_0x110036(0x354)](HTTPService)[_0x110036(0x279)]({'priority':0x14,'interceptor':ThresholdInterceptorFactory({'maxParallel':0x6})}),(_0xd6c4f2=this[_0x110036(0x368)])!=null&&_0xd6c4f2[_0x110036(0x283)]||(_0x14e08c=this[_0x110036(0x216)][_0x110036(0x354)](ILocalCacheService,Quantity[_0x110036(0xff)]))==null||_0x14e08c[_0x110036(0x3c7)](),(_0x274f5a=this[_0x110036(0x368)])!=null&&_0x274f5a[_0x110036(0x327)]&&touchDependencies(this[_0x110036(0x216)],[[AuthServerService]]),touchDependencies(this['_injector'],[[DomainRequestService],[CollaborationController],[PermissionService]]);}},__name(_a27,_0x23d062(0x35d)),_a27);__publicField2(UniverCollaborationClientPlugin,_0x23d062(0x1ef),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};
|