@univerjs-pro/collaboration-client 0.5.5-experimental.20250122-3362a4a → 0.5.5-experimental.20250124-fc44c59
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/types/facade/f-collaboration.d.ts +12 -2
- package/lib/types/facade/f-univer.d.ts +6 -0
- 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 +11 -11
package/lib/es/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
var _0xa33034=_0x214d;(function(_0x3eb81f,_0x3ecaa7){var _0x305e94=_0x214d,_0x114e35=_0x3eb81f();while(!![]){try{var _0x70585f=parseInt(_0x305e94(0x1e3))/0x1+parseInt(_0x305e94(0x3bf))/0x2*(-parseInt(_0x305e94(0x1c0))/0x3)+-parseInt(_0x305e94(0x2d5))/0x4*(-parseInt(_0x305e94(0x357))/0x5)+parseInt(_0x305e94(0x37b))/0x6+-parseInt(_0x305e94(0x270))/0x7*(-parseInt(_0x305e94(0x427))/0x8)+-parseInt(_0x305e94(0x44d))/0x9*(parseInt(_0x305e94(0x2ea))/0xa)+parseInt(_0x305e94(0x260))/0xb*(-parseInt(_0x305e94(0x183))/0xc);if(_0x70585f===_0x3ecaa7)break;else _0x114e35['push'](_0x114e35['shift']());}catch(_0x94a768){_0x114e35['push'](_0x114e35['shift']());}}}(_0x3cd8,0xc8d47));var __defProp=Object[_0xa33034(0x2e1)],__defNormalProp=(_0x51815c,_0xe7855c,_0x1cc5a1)=>_0xe7855c in _0x51815c?__defProp(_0x51815c,_0xe7855c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1cc5a1}):_0x51815c[_0xe7855c]=_0x1cc5a1,__name=(_0x1163c4,_0x56799a)=>__defProp(_0x1163c4,'name',{'value':_0x56799a,'configurable':!0x0}),__publicField=(_0x27b3ad,_0x3cd7a8,_0x5746cc)=>__defNormalProp(_0x27b3ad,typeof _0x3cd7a8!='symbol'?_0x3cd7a8+'':_0x3cd7a8,_0x5746cc);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 _0x5bcb5c,mergeOverrideWithDependencies,IMentionIOService,registerDependencies,Quantity,touchDependencies}from'@univerjs/core';import{Subject,merge,of,BehaviorSubject,takeUntil,ReplaySubject,take as _0x1bd1bc,map as _0xf0a054,shareReplay,firstValueFrom,concatMap}from'rxjs';import{map,take,filter,delay,takeUntil as _0x22dda8}from'rxjs/operators';import{HTTPService,ISocketService,MergeInterceptorFactory,HTTPRequest,UniverNetworkPlugin,ThresholdInterceptorFactory}from'@univerjs/network';import{CollaborationEvent,parseChangesetToProtocol,ISnapshotServerService,isTransformMutationsWithChangesetSuccess,ITransformService,mapDocumentTypeToUniverType,RevisionService,isTransformChangesetsSuccess,CompressMutationService,parseProtocolChangeset,SnapshotService,textEncoder,b64DecodeUnicode,isTransformMutationsWithChangesetFailure,UniverCollaborationPlugin}from'@univerjs-pro/collaboration';import{ITelemetryService}from'@univerjs/telemetry';import{RichTextEditingMutation}from'@univerjs/docs';import{SheetsSelectionsService,SetSelectionsOperation,InsertSheetMutation,EmptyMutation,WorkbookEditablePermission,SheetPermissionInitController,UniverSheetsPlugin}from'@univerjs/sheets';import{ImageSourceType,ImageUploadStatusType,IImageIoService}from'@univerjs/drawing';import{getGlobalObject}from'@univerjs-pro/license';const SNAPSHOT_SERVER_URL_KEY='SNAPSHOT_SERVER_URL_KEY',DEFAULT_SNAPSHOT_SERVER_URL=_0xa33034(0x179),SNAPSHOT_URL_KEY=_0xa33034(0x3b7),SEND_CHANGESET_TIMEOUT_KEY='SEND_CHANGESET_TIMEOUT',DEFAULT_SEND_CHANGESET_TIMEOUT=0x7d0,COLLAB_WEB_SOCKET_URL_KEY=_0xa33034(0x1b2),DEFAULT_COLLAB_WEB_SOCKET_URL=_0xa33034(0x3c1),DEFAULT_WS_SESSION_TICKET_URL=_0xa33034(0x3d6),HEARTBEAT_INTERVAL_KEY=_0xa33034(0x399),DEFAULT_HEARTBEAT_INTERVAL=0x7530,HEARTBEAT_TIMEOUT_KEY=_0xa33034(0x269),DEFAULT_HEARTBEAT_TIMEOUT=0x4e20,DEFAULT_RETRY_CONNECTING_INTERVAL=0x4e20,RETRY_CONNECTING_MAX_COUNT_KEY=_0xa33034(0x1b4),DEFAULT_RETRY_CONNECTING_MAX_COUNT=0x3,LOCAL_CACHE_INTERVAL_KEY=_0xa33034(0x1bb),LOCAL_CACHE_INTERVAL=0x3e8,COLLAB_SUBMIT_CHANGESET_URL_KEY=_0xa33034(0x3d0),DEFAULT_COLLAB_SUBMIT_CHANGESET_URL='/universer-api/comb',LOGIN_URL_KEY='LOGIN_URL_KEY',DEFAULT_LOGIN_URL=_0xa33034(0x21c),REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY='REMOTE_UNISCRIPT_EXECUTION_ENDPOINT',DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT=_0xa33034(0x281);var ErrorCode=(_0x5df9f9=>(_0x5df9f9[_0x5df9f9[_0xa33034(0x2de)]=0x0]=_0xa33034(0x2de),_0x5df9f9[_0x5df9f9['OK']=0x1]='OK',_0x5df9f9[_0x5df9f9[_0xa33034(0x3e4)]=0x2]=_0xa33034(0x3e4),_0x5df9f9[_0x5df9f9[_0xa33034(0x1de)]=0x3]=_0xa33034(0x1de),_0x5df9f9[_0x5df9f9[_0xa33034(0x287)]=0x4]=_0xa33034(0x287),_0x5df9f9[_0x5df9f9['UNAUTHENTICATED']=0x5]=_0xa33034(0x1b7),_0x5df9f9[_0x5df9f9['ALREADY_EXISTS']=0x6]=_0xa33034(0x18a),_0x5df9f9[_0x5df9f9[_0xa33034(0x40c)]=0x7]=_0xa33034(0x40c),_0x5df9f9[_0x5df9f9[_0xa33034(0x191)]=0x8]=_0xa33034(0x191),_0x5df9f9[_0x5df9f9[_0xa33034(0x347)]=0x9]=_0xa33034(0x347),_0x5df9f9[_0x5df9f9[_0xa33034(0x237)]=0x1389]=_0xa33034(0x237),_0x5df9f9[_0x5df9f9[_0xa33034(0x190)]=0x1771]=_0xa33034(0x190),_0x5df9f9[_0x5df9f9[_0xa33034(0x12d)]=0x1772]=_0xa33034(0x12d),_0x5df9f9[_0x5df9f9['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0xa33034(0x485),_0x5df9f9[_0x5df9f9[_0xa33034(0x325)]=0x1b59]=_0xa33034(0x325),_0x5df9f9[_0x5df9f9['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x5df9f9[_0x5df9f9[_0xa33034(0x28b)]=0x1b5b]=_0xa33034(0x28b),_0x5df9f9[_0x5df9f9[_0xa33034(0x3f7)]=0x1b5c]=_0xa33034(0x3f7),_0x5df9f9[_0x5df9f9[_0xa33034(0x1e9)]=0x1b5d]=_0xa33034(0x1e9),_0x5df9f9[_0x5df9f9['CONNECTOR_DATA_TOO_LARGE']=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x5df9f9[_0x5df9f9[_0xa33034(0x421)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x5df9f9[_0x5df9f9[_0xa33034(0x133)]=0x232a]=_0xa33034(0x133),_0x5df9f9[_0x5df9f9[_0xa33034(0x3e0)]=0x232b]=_0xa33034(0x3e0),_0x5df9f9[_0x5df9f9[_0xa33034(0x363)]=0x232c]=_0xa33034(0x363),_0x5df9f9[_0x5df9f9['LICENSE_DISTRO_REJECTED']=0x232d]=_0xa33034(0x132),_0x5df9f9[_0x5df9f9['YUUMI_UNABLE_LOAD_URL']=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x5df9f9[_0x5df9f9[_0xa33034(0x46e)]=0x2712]=_0xa33034(0x46e),_0x5df9f9[_0x5df9f9[_0xa33034(0x3a2)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x5df9f9[_0x5df9f9[_0xa33034(0x14c)]=0x2714]=_0xa33034(0x14c),_0x5df9f9[_0x5df9f9[_0xa33034(0x346)]=0x2af9]=_0xa33034(0x346),_0x5df9f9[_0x5df9f9['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x5df9f9))(ErrorCode||{}),UniverType=(_0x4c94b9=>(_0x4c94b9[_0x4c94b9[_0xa33034(0x320)]=0x0]=_0xa33034(0x320),_0x4c94b9[_0x4c94b9[_0xa33034(0x36b)]=0x1]=_0xa33034(0x36b),_0x4c94b9[_0x4c94b9['UNIVER_SHEET']=0x2]=_0xa33034(0x1d0),_0x4c94b9[_0x4c94b9[_0xa33034(0x3db)]=0x3]=_0xa33034(0x3db),_0x4c94b9[_0x4c94b9['UNIVER_PROJECT']=0x4]=_0xa33034(0x33f),_0x4c94b9[_0x4c94b9[_0xa33034(0x47b)]=-0x1]=_0xa33034(0x47b),_0x4c94b9))(UniverType||{}),CombCmd=(_0x2fa947=>(_0x2fa947[_0x2fa947['UNKNOWN_CMD']=0x0]=_0xa33034(0x3cd),_0x2fa947[_0x2fa947[_0xa33034(0x486)]=0x1]='HELLO',_0x2fa947[_0x2fa947['JOIN']=0x2]=_0xa33034(0x38e),_0x2fa947[_0x2fa947[_0xa33034(0x29e)]=0x3]='LEAVE',_0x2fa947[_0x2fa947[_0xa33034(0x1ff)]=0x4]=_0xa33034(0x1ff),_0x2fa947[_0x2fa947['HEARTBEAT']=0x5]='HEARTBEAT',_0x2fa947[_0x2fa947[_0xa33034(0x189)]=0x6]='RECV',_0x2fa947[_0x2fa947[_0xa33034(0x47b)]=-0x1]=_0xa33034(0x47b),_0x2fa947))(CombCmd||{}),CmdRspCode=(_0x26dffd=>(_0x26dffd[_0x26dffd[_0xa33034(0x15c)]=0x0]=_0xa33034(0x15c),_0x26dffd[_0x26dffd['OK']=0x1]='OK',_0x26dffd[_0x26dffd['FAIL']=0x2]='FAIL',_0x26dffd[_0x26dffd['JOIN_ROOM_FULL']=0x3e9]='JOIN_ROOM_FULL',_0x26dffd[_0x26dffd['JOIN_ROOM_NOT_EXISTS']=0x3ea]='JOIN_ROOM_NOT_EXISTS',_0x26dffd[_0x26dffd[_0xa33034(0x390)]=0x3eb]=_0xa33034(0x390),_0x26dffd[_0x26dffd['GLOBAL_ROOMS_CNT_EXCEEDS']=0x3ec]=_0xa33034(0x45c),_0x26dffd[_0x26dffd['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x26dffd))(CmdRspCode||{}),FileSource=(_0x25add0=>(_0x25add0[_0x25add0[_0xa33034(0x1ba)]=0x0]='Undefined',_0x25add0[_0x25add0[_0xa33034(0x2d7)]=0x1]=_0xa33034(0x2d7),_0x25add0[_0x25add0[_0xa33034(0x267)]=0x2]=_0xa33034(0x267),_0x25add0[_0x25add0[_0xa33034(0x383)]=0x3]='UnitEmbedded',_0x25add0[_0x25add0[_0xa33034(0x1be)]=0x4]=_0xa33034(0x1be),_0x25add0[_0x25add0[_0xa33034(0x47b)]=-0x1]=_0xa33034(0x47b),_0x25add0))(FileSource||{});const COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY=_0xa33034(0x1c7),defaultPluginConfig={};var CollaborationUIEventId=(_0x821e72=>(_0x821e72[_0xa33034(0x25a)]='OTHER_CLIENT_EDITING',_0x821e72[_0xa33034(0x1de)]=_0xa33034(0x1de),_0x821e72[_0xa33034(0x250)]='CONFLICT',_0x821e72[_0xa33034(0x1e1)]=_0xa33034(0x1e1),_0x821e72[_0xa33034(0x2be)]='JOIN_ROOM_FAILED',_0x821e72[_0xa33034(0x1ac)]=_0xa33034(0x1ac),_0x821e72['SOCKET_FAILED']=_0xa33034(0x34e),_0x821e72[_0xa33034(0x3aa)]=_0xa33034(0x3aa),_0x821e72))(CollaborationUIEventId||{});const _CollaborationUIEventService=class _CollaborationUIEventService{constructor(){var _0x586796=_0xa33034;__publicField(this,'_event$',new Subject()),__publicField(this,_0x586796(0x349),this['_event$'][_0x586796(0x3b2)]());}[_0xa33034(0x2f9)](_0x5c5dab){var _0x3ab71d=_0xa33034;this[_0x3ab71d(0x22e)]['next'](_0x5c5dab);}};__name(_CollaborationUIEventService,_0xa33034(0x1b3));let CollaborationUIEventService=_CollaborationUIEventService;const INetworkConditionService=createIdentifier(_0xa33034(0x2bd));function deserializeToCombResponse(_0x27a851){var _0x48e038=_0xa33034,_0x204f8c,_0x4df5f8,_0x3950da,_0x4f961f,_0x2ce465;const _0x2077f2=_0x27a851[_0x48e038(0x2c1)],_0x2f7929=JSON[_0x48e038(0x246)](_0x2077f2);switch(_0x2f7929[_0x48e038(0x43d)]){case CombCmd[_0x48e038(0x1c1)]:case CombCmd[_0x48e038(0x486)]:{const _0x37a8ec=_0x2f7929[_0x48e038(0x30a)];return{..._0x2f7929,'data':_0x37a8ec,'cmd':_0x2f7929[_0x48e038(0x43d)]};}case CombCmd['JOIN']:{const _0x38826b=_0x2f7929[_0x48e038(0x34f)];return{..._0x2f7929,'data':_0x38826b,'cmd':_0x2f7929[_0x48e038(0x43d)]};}case CombCmd[_0x48e038(0x189)]:{const _0x317dbd=_0x2f7929[_0x48e038(0x1e7)];switch(_0x317dbd[_0x48e038(0x202)]){case CollaborationEvent['PERMISSION_REJ']:return{..._0x2f7929,'data':{..._0x317dbd,'data':(_0x204f8c=_0x317dbd['permissionRejEvent'])==null?void 0x0:_0x204f8c['cs']},'cmd':_0x2f7929['cmd']};case CollaborationEvent[_0x48e038(0x379)]:return{..._0x2f7929,'data':{..._0x317dbd,'data':(_0x4df5f8=_0x317dbd[_0x48e038(0x272)])==null?void 0x0:_0x4df5f8['cs']},'cmd':_0x2f7929['cmd']};case CollaborationEvent[_0x48e038(0x26a)]:return{..._0x2f7929,'data':{..._0x317dbd,'data':(_0x3950da=_0x317dbd[_0x48e038(0x36c)])==null?void 0x0:_0x3950da['cs']},'cmd':_0x2f7929[_0x48e038(0x43d)]};case CollaborationEvent[_0x48e038(0x131)]:return{..._0x2f7929,'data':{..._0x317dbd,'data':(_0x4f961f=_0x317dbd[_0x48e038(0x310)])==null?void 0x0:_0x4f961f['cs']},'cmd':_0x2f7929[_0x48e038(0x43d)]};case CollaborationEvent[_0x48e038(0x3de)]:return{..._0x2f7929,'data':{..._0x317dbd,'data':(_0x2ce465=_0x317dbd[_0x48e038(0x44b)])==null?void 0x0:_0x2ce465['cs']},'cmd':_0x2f7929[_0x48e038(0x43d)]};case CollaborationEvent[_0x48e038(0x3cb)]:return{..._0x2f7929,'data':{..._0x317dbd,'data':_0x317dbd[_0x48e038(0x445)]},'cmd':_0x2f7929[_0x48e038(0x43d)]};case CollaborationEvent[_0x48e038(0x2a2)]:return{..._0x2f7929,'data':{..._0x317dbd,'data':_0x317dbd[_0x48e038(0x40e)]},'cmd':_0x2f7929[_0x48e038(0x43d)]};case CollaborationEvent['USERS_LEAVE']:return{..._0x2f7929,'data':{..._0x317dbd,'data':_0x317dbd[_0x48e038(0x216)]},'cmd':_0x2f7929[_0x48e038(0x43d)]};case CollaborationEvent[_0x48e038(0x3d7)]:return{..._0x2f7929,'data':{..._0x317dbd,'data':_0x317dbd[_0x48e038(0x2f7)]},'cmd':_0x2f7929[_0x48e038(0x43d)]};case CollaborationEvent[_0x48e038(0x26c)]:case CollaborationEvent[_0x48e038(0x1c6)]:return{..._0x2f7929,'data':{..._0x317dbd,'data':_0x317dbd[_0x48e038(0x42e)]},'cmd':_0x2f7929['cmd']};case CollaborationEvent[_0x48e038(0x398)]:return{..._0x2f7929,'data':{..._0x317dbd,'data':_0x317dbd[_0x48e038(0x2f7)]},'cmd':_0x2f7929[_0x48e038(0x43d)]};case CollaborationEvent[_0x48e038(0x472)]:return{..._0x2f7929,'data':_0x317dbd,'cmd':_0x2f7929[_0x48e038(0x43d)]};case CollaborationEvent[_0x48e038(0x2af)]:return{..._0x2f7929,'data':{..._0x317dbd,'data':_0x317dbd[_0x48e038(0x1b5)]},'cmd':_0x2f7929[_0x48e038(0x43d)]};case CollaborationEvent[_0x48e038(0x280)]:return{..._0x2f7929,'data':{..._0x317dbd,'data':_0x317dbd['updatePermissionObjEvent']},'cmd':_0x2f7929[_0x48e038(0x43d)]};case CollaborationEvent['SHOULD_CLOSE_CONN']:return{..._0x2f7929,'data':{..._0x317dbd,'data':_0x317dbd[_0x48e038(0x1dd)]},'cmd':_0x2f7929[_0x48e038(0x43d)]};case CollaborationEvent['UNISCRIPT_RUN']:return{..._0x2f7929,'data':{..._0x317dbd,'data':_0x317dbd[_0x48e038(0x344)]},'cmd':_0x2f7929[_0x48e038(0x43d)]};default:return _0x2f7929;}}default:return _0x2f7929;}}__name(deserializeToCombResponse,'deserializeToCombResponse');function serializeCombRequest(_0x2199aa){var _0x6aa2e6=_0xa33034;switch(_0x2199aa[_0x6aa2e6(0x43d)]){case CombCmd[_0x6aa2e6(0x1c1)]:case CombCmd[_0x6aa2e6(0x486)]:return JSON['stringify']({'cmd':_0x2199aa[_0x6aa2e6(0x43d)],'routeKey':_0x2199aa[_0x6aa2e6(0x29d)]});case CombCmd['INGEST']:{let _0x2326f3;switch(_0x2199aa[_0x6aa2e6(0x2c1)][_0x6aa2e6(0x202)]){case CollaborationEvent[_0x6aa2e6(0x3cb)]:{_0x2326f3={'eventID':CollaborationEvent[_0x6aa2e6(0x3cb)],'updateCursorEvent':_0x2199aa[_0x6aa2e6(0x2c1)][_0x6aa2e6(0x2c1)]};break;}case CollaborationEvent[_0x6aa2e6(0x166)]:{_0x2326f3={'eventID':CollaborationEvent[_0x6aa2e6(0x166)],'leaveEvent':_0x2199aa[_0x6aa2e6(0x2c1)][_0x6aa2e6(0x2c1)]};break;}case CollaborationEvent[_0x6aa2e6(0x2a2)]:{_0x2326f3={'eventID':CollaborationEvent[_0x6aa2e6(0x2a2)],'joinEvent':_0x2199aa['data'][_0x6aa2e6(0x2c1)]};break;}case CollaborationEvent[_0x6aa2e6(0x3d7)]:{_0x2326f3={'eventID':CollaborationEvent['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x2199aa[_0x6aa2e6(0x2c1)]['data']};break;}case CollaborationEvent['LIVESHARE_OPERATION']:{_0x2326f3={'eventID':CollaborationEvent[_0x6aa2e6(0x1c6)],'liveShareOperation':_0x2199aa[_0x6aa2e6(0x2c1)][_0x6aa2e6(0x2c1)]};break;}case CollaborationEvent[_0x6aa2e6(0x398)]:{_0x2326f3={'eventID':CollaborationEvent[_0x6aa2e6(0x398)],'liveShareTerminate':_0x2199aa['data']['data']};break;}case CollaborationEvent[_0x6aa2e6(0x395)]:{_0x2326f3={'eventID':CollaborationEvent[_0x6aa2e6(0x395)],'liveShareRequestHost':_0x2199aa[_0x6aa2e6(0x2c1)][_0x6aa2e6(0x2c1)]};break;}case CollaborationEvent[_0x6aa2e6(0x26c)]:{_0x2326f3={'eventID':CollaborationEvent[_0x6aa2e6(0x26c)]};break;}default:_0x2326f3={'eventID':_0x2199aa[_0x6aa2e6(0x2c1)][_0x6aa2e6(0x202)]};}return JSON[_0x6aa2e6(0x375)]({'cmd':_0x2199aa[_0x6aa2e6(0x43d)],'routeKey':_0x2199aa[_0x6aa2e6(0x29d)],'collaMsg':_0x2326f3});}case CombCmd['JOIN']:return JSON['stringify']({'cmd':_0x2199aa[_0x6aa2e6(0x43d)],'routeKey':_0x2199aa['routeKey'],'joinReq':_0x2199aa[_0x6aa2e6(0x2c1)]});case CombCmd[_0x6aa2e6(0x29e)]:return JSON[_0x6aa2e6(0x375)]({'cmd':_0x2199aa[_0x6aa2e6(0x43d)],'routeKey':_0x2199aa['routeKey'],'leaveReq':_0x2199aa[_0x6aa2e6(0x2c1)]});default:throw new Error(_0x6aa2e6(0x2c5));}}__name(serializeCombRequest,_0xa33034(0x13e));var __defProp$i=Object[_0xa33034(0x2e1)],__getOwnPropDesc$i=Object[_0xa33034(0x29f)],__decorateClass$i=__name((_0xd264d5,_0x11ebc1,_0x2ff108,_0x537102)=>{var _0x4ba941=_0xa33034;for(var _0x1b7ec5=_0x537102>0x1?void 0x0:_0x537102?__getOwnPropDesc$i(_0x11ebc1,_0x2ff108):_0x11ebc1,_0x26166e=_0xd264d5[_0x4ba941(0x271)]-0x1,_0x1565a4;_0x26166e>=0x0;_0x26166e--)(_0x1565a4=_0xd264d5[_0x26166e])&&(_0x1b7ec5=(_0x537102?_0x1565a4(_0x11ebc1,_0x2ff108,_0x1b7ec5):_0x1565a4(_0x1b7ec5))||_0x1b7ec5);return _0x537102&&_0x1b7ec5&&__defProp$i(_0x11ebc1,_0x2ff108,_0x1b7ec5),_0x1b7ec5;},_0xa33034(0x21d)),__decorateParam$i=__name((_0x57682c,_0x1d856f)=>(_0x187cce,_0x18f9ef)=>_0x1d856f(_0x187cce,_0x18f9ef,_0x57682c),_0xa33034(0x25d));const ICollaborationSocketService=createIdentifier('univer-pro.collaboration-client-socket-service');function generateSubmitChangesPath(_0x21cf21,_0x4bd9cb,_0xc1acb8){var _0xc44cf5=_0xa33034;return _0x21cf21+'/'+_0x4bd9cb+_0xc44cf5(0x21a)+_0xc1acb8+_0xc44cf5(0x3f9);}__name(generateSubmitChangesPath,_0xa33034(0x15d));var _a;let CollaborationSocketService=(_a=class extends Disposable{constructor(_0x59c87f,_0x44d156,_0x2c5aec,_0x28e5d6,_0x16234c){var _0x3a93f0=_0xa33034;super(),this['_injector']=_0x59c87f,this[_0x3a93f0(0x1bc)]=_0x44d156,this[_0x3a93f0(0x36a)]=_0x2c5aec,this[_0x3a93f0(0x48c)]=_0x28e5d6,this[_0x3a93f0(0x394)]=_0x16234c;}[_0xa33034(0x2f5)](_0x520a6c){var _0x3e6df7=_0xa33034;const _0x4b0e36=this[_0x3e6df7(0x39e)][_0x3e6df7(0x38a)](ISocketService);if(!_0x4b0e36)throw new Error(_0x3e6df7(0x207));const _0x3a91b4=_0x4b0e36[_0x3e6df7(0x2f5)](_0x520a6c);if(!_0x3a91b4)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x5f0d3b=new DisposableCollection(),_0x4f8a41=new Subject();_0x5f0d3b[_0x3e6df7(0x365)](_0x3a91b4[_0x3e6df7(0x23a)][_0x3e6df7(0x479)](_0xf01a7b=>_0x4f8a41[_0x3e6df7(0x17a)](_0xf01a7b))),_0x5f0d3b[_0x3e6df7(0x365)](toDisposable(()=>_0x4f8a41[_0x3e6df7(0x470)]()));const _0x4e0652=new Subject();_0x5f0d3b[_0x3e6df7(0x365)](_0x3a91b4['error$'][_0x3e6df7(0x479)](_0x5c31c7=>_0x4e0652['next'](_0x5c31c7))),_0x5f0d3b[_0x3e6df7(0x365)](toDisposable(()=>_0x4e0652[_0x3e6df7(0x470)]()));const _0xa9d8a3=new Subject();_0x5f0d3b['add'](_0x3a91b4['message$']['subscribe'](_0x4a062a=>{var _0xcef3d6=_0x3e6df7;const _0x5d57f2=deserializeToCombResponse(_0x4a062a);_0xa9d8a3[_0xcef3d6(0x17a)](_0x5d57f2);})),_0x5f0d3b[_0x3e6df7(0x365)](toDisposable(()=>_0xa9d8a3[_0x3e6df7(0x470)]()));let _0x2ee5a4;const _0x4b922a=__name(()=>{var _0x424066=_0x3e6df7;_0x4e0652['next'](new Event(_0x424066(0x1d9))),_0x4f8a41[_0x424066(0x17a)](new CloseEvent(_0x424066(0x1d9))),_0x2ee5a4[_0x424066(0x3f8)]();},_0x3e6df7(0x21e));return _0x2ee5a4={'memberID':'','close$':_0x4f8a41[_0x3e6df7(0x3b2)](),'error$':_0x4e0652[_0x3e6df7(0x3b2)](),'open$':_0x3a91b4[_0x3e6df7(0x1ec)],'message$':_0xa9d8a3[_0x3e6df7(0x3b2)](),'send':__name(_0x420db0=>{var _0x5db269=_0x3e6df7;if(_0x420db0['cmd']===CombCmd[_0x5db269(0x1ff)]){if(_0x420db0['data'][_0x5db269(0x202)]===CollaborationEvent['SUBMIT_CHANGESET']){this[_0x5db269(0x18e)](_0x2ee5a4,_0x420db0[_0x5db269(0x2c1)])[_0x5db269(0x3f0)](_0x33f3dc=>{var _0x1330a7=_0x5db269;this[_0x1330a7(0x48c)][_0x1330a7(0x1c4)](_0x33f3dc),_0x4b922a();});return;}if(_0x420db0[_0x5db269(0x2c1)]['eventID']===CollaborationEvent[_0x5db269(0x289)]){const _0x4ff433=_0x420db0[_0x5db269(0x2c1)];this[_0x5db269(0x1af)](_0x4ff433)[_0x5db269(0x169)](_0x2a970c=>{var _0x4986ae=_0x5db269;_0xa9d8a3[_0x4986ae(0x17a)]({'cmd':CombCmd['RECV'],'code':CmdRspCode['OK'],'routeKey':_0x4ff433[_0x4986ae(0x2c1)][_0x4986ae(0x259)],'routeType':'','data':{'eventID':CollaborationEvent[_0x4986ae(0x3dd)],'data':{'changesets':_0x2a970c}}});})['catch'](_0x43a35d=>{var _0x331900=_0x5db269;this[_0x331900(0x48c)][_0x331900(0x1c4)](_0x43a35d),_0x4b922a();});return;}}_0x3a91b4[_0x5db269(0x26d)](serializeCombRequest(_0x420db0));},_0x3e6df7(0x26d)),'close':__name(()=>{var _0x1b3737=_0x3e6df7;_0x3a91b4[_0x1b3737(0x3f8)](),_0x5f0d3b[_0x1b3737(0x2aa)]();},_0x3e6df7(0x3f8))},_0x2ee5a4;}async['_submitChangeset'](_0x2fc072,_0x49ddc8){var _0x22daa3=_0xa33034,_0x5a475b,_0xc3c211;const {unitType:_0x234c36,unitID:_0x33ad1c,changeset:_0x2a0d0a}=_0x49ddc8['data'],_0xac4137={'unitID':_0x33ad1c,'memberID':_0x2fc072['memberID'],'type':_0x234c36,'changeset':parseChangesetToProtocol(_0x2a0d0a)},_0x5cf34d=this[_0x22daa3(0x36a)][_0x22daa3(0x439)](COLLAB_SUBMIT_CHANGESET_URL_KEY),_0x3dbc18=this[_0x22daa3(0x36a)]['getConfig'](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY),_0x3f6359=generateSubmitChangesPath((_0xc3c211=(_0x5a475b=_0x3dbc18==null?void 0x0:_0x3dbc18[_0x22daa3(0x393)])!=null?_0x5a475b:_0x5cf34d)!=null?_0xc3c211:DEFAULT_COLLAB_SUBMIT_CHANGESET_URL,_0x234c36,_0x33ad1c);try{await this[_0x22daa3(0x1bc)][_0x22daa3(0x414)](_0x3f6359,{'body':_0xac4137});}catch(_0x5aebb5){throw this['_logService'][_0x22daa3(0x1c4)](_0x22daa3(0x173),_0x22daa3(0x3d5)),_0x5aebb5;}}async['_fetchMissChangesets'](_0x33ca37){var _0x2e00b8=_0xa33034;const {unitID:_0x3a573e,from:_0x1013d7,to:_0x493e94,unitType:_0xb9fb0b}=_0x33ca37[_0x2e00b8(0x2c1)];return(await this[_0x2e00b8(0x394)][_0x2e00b8(0x13b)]({'metadata':void 0x0},{'unitID':_0x3a573e,'type':_0xb9fb0b,'from':_0x1013d7,'to':_0x493e94}))[_0x2e00b8(0x2d0)];}},__name(_a,_0xa33034(0x30e)),_a);function _0x214d(_0x2c0791,_0xcc5ab8){var _0x3cd871=_0x3cd8();return _0x214d=function(_0x214dfb,_0x46b9ff){_0x214dfb=_0x214dfb-0x12b;var _0x409c78=_0x3cd871[_0x214dfb];return _0x409c78;},_0x214d(_0x2c0791,_0xcc5ab8);}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=_0xa33034(0x3ec);function summaryChangesetSize(_0x1dc0ff){var _0x14e5f2=_0xa33034;return JSON[_0x14e5f2(0x375)](_0x1dc0ff)[_0x14e5f2(0x271)];}__name(summaryChangesetSize,_0xa33034(0x430));const _CommentService=class _CommentService{constructor(){var _0x1024e7=_0xa33034;__publicField(this,_0x1024e7(0x466),new Subject()),__publicField(this,'commentUpdate$',this['_commentUpdate$'][_0x1024e7(0x3b2)]());}[_0xa33034(0x1bd)](_0xca920e){var _0x331558=_0xa33034;this[_0x331558(0x466)][_0x331558(0x17a)](_0xca920e);}};__name(_CommentService,'CommentService');let CommentService=_CommentService;var __defProp$h=Object[_0xa33034(0x2e1)],__getOwnPropDesc$h=Object['getOwnPropertyDescriptor'],__decorateClass$h=__name((_0x19850f,_0x52a561,_0x1f979a,_0x1ac826)=>{var _0x216ea6=_0xa33034;for(var _0x37c760=_0x1ac826>0x1?void 0x0:_0x1ac826?__getOwnPropDesc$h(_0x52a561,_0x1f979a):_0x52a561,_0x3ad8cf=_0x19850f[_0x216ea6(0x271)]-0x1,_0x49f02b;_0x3ad8cf>=0x0;_0x3ad8cf--)(_0x49f02b=_0x19850f[_0x3ad8cf])&&(_0x37c760=(_0x1ac826?_0x49f02b(_0x52a561,_0x1f979a,_0x37c760):_0x49f02b(_0x37c760))||_0x37c760);return _0x1ac826&&_0x37c760&&__defProp$h(_0x52a561,_0x1f979a,_0x37c760),_0x37c760;},_0xa33034(0x1b0)),__decorateParam$h=__name((_0x31b063,_0x32ff90)=>(_0x4d3152,_0x2a3ea0)=>_0x32ff90(_0x4d3152,_0x2a3ea0,_0x31b063),'__decorateParam$h'),_a2;let MemberService=(_a2=class extends Disposable{constructor(_0x1e83ec,_0x211d16){var _0x44507a=_0xa33034;super(),__publicField(this,_0x44507a(0x3eb),new Map()),__publicField(this,_0x44507a(0x1da),new Subject()),(this['_univerInstanceService']=_0x1e83ec,this[_0x44507a(0x13a)]=_0x211d16,this[_0x44507a(0x3a7)](merge(this[_0x44507a(0x40d)][_0x44507a(0x34b)](UniverInstanceType[_0x44507a(0x1d0)])[_0x44507a(0x2c8)](map(_0x1b6707=>_0x1b6707[_0x44507a(0x13d)]())),this[_0x44507a(0x40d)][_0x44507a(0x34b)](UniverInstanceType[_0x44507a(0x36b)])['pipe'](map(_0x24b944=>_0x24b944['getUnitId']())),this['_univerInstanceService'][_0x44507a(0x34b)](UniverInstanceType['UNIVER_SLIDE'])[_0x44507a(0x2c8)](map(_0xa947bc=>_0xa947bc['getUnitId']())))[_0x44507a(0x479)](_0x54209e=>this[_0x44507a(0x3fe)](_0x54209e))));}[_0xa33034(0x424)](_0x4262e0){var _0x507902=_0xa33034;return this['_roomMembers']['has'](_0x4262e0)?of(this[_0x507902(0x3eb)][_0x507902(0x38a)](_0x4262e0)):this['_roomCreated$'][_0x507902(0x2c8)](map(_0x3a24ef=>{var _0x3e7d4a=_0x507902;if(_0x3a24ef===_0x4262e0)return this[_0x3e7d4a(0x3eb)][_0x3e7d4a(0x38a)](_0x3a24ef);}));}[_0xa33034(0x1bf)](_0x2a98b8){this['_userManagerService']['setCurrentUser'](_0x2a98b8);}['getCurrentUser'](){var _0xa301ef=_0xa33034;return this[_0xa301ef(0x13a)][_0xa301ef(0x26f)]();}['updateMember'](_0x495059,_0xe0d3d7){var _0x42ba3c=_0xa33034;let _0x36e45a=this[_0x42ba3c(0x3eb)][_0x42ba3c(0x38a)](_0x495059);_0x36e45a||(_0x36e45a=new RoomMember(),this[_0x42ba3c(0x3eb)][_0x42ba3c(0x392)](_0x495059,_0x36e45a),this[_0x42ba3c(0x1da)][_0x42ba3c(0x17a)](_0x495059)),_0x36e45a[_0x42ba3c(0x284)](_0xe0d3d7);}[_0xa33034(0x426)](_0x111f4d,_0x2f118a){var _0x4c638a=_0xa33034;const _0x5c7cb4=this[_0x4c638a(0x3eb)]['get'](_0x111f4d);_0x5c7cb4&&_0x5c7cb4['removeMember'](_0x2f118a);}[_0xa33034(0x25b)](_0x388023){var _0x59b998=_0xa33034;return this[_0x59b998(0x3eb)][_0x59b998(0x38a)](_0x388023);}[_0xa33034(0x15b)](_0x45075a,_0x2b6ae7){var _0x445543=_0xa33034;const _0x1ffb43=this[_0x445543(0x3eb)]['get'](_0x45075a);if(_0x1ffb43)return _0x1ffb43[_0x445543(0x15b)](_0x2b6ae7);}['_removeRoom'](_0x415716){var _0x10039d=_0xa33034;const _0x1379ba=this['_roomMembers'][_0x10039d(0x38a)](_0x415716);_0x1379ba&&(_0x1379ba[_0x10039d(0x2aa)](),this[_0x10039d(0x3eb)][_0x10039d(0x33b)](_0x415716));}[_0xa33034(0x2aa)](){var _0x63bc9d=_0xa33034;this['_roomMembers'][_0x63bc9d(0x24c)](_0x16b823=>_0x16b823[_0x63bc9d(0x2aa)]()),this[_0x63bc9d(0x3eb)][_0x63bc9d(0x210)](),this[_0x63bc9d(0x1da)][_0x63bc9d(0x470)]();}},__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 _0x43d215=_0xa33034;super(...arguments),__publicField(this,_0x43d215(0x31c),new Map()),__publicField(this,_0x43d215(0x3ad),new BehaviorSubject(this[_0x43d215(0x31c)])),__publicField(this,_0x43d215(0x353),this[_0x43d215(0x3ad)][_0x43d215(0x3b2)]());}[_0xa33034(0x2aa)](){var _0x37b75a=_0xa33034;this[_0x37b75a(0x31c)][_0x37b75a(0x210)]();}[_0xa33034(0x284)](_0x7894a){var _0x210573=_0xa33034;this[_0x210573(0x31c)]['set'](_0x7894a[_0x210573(0x3b9)],_0x7894a),this[_0x210573(0x291)]();}['removeMember'](_0xb8fca){var _0x1ada43=_0xa33034;this[_0x1ada43(0x31c)][_0x1ada43(0x33b)](_0xb8fca);}[_0xa33034(0x15b)](_0x412e50){var _0x1bf17c=_0xa33034;return this[_0x1bf17c(0x31c)][_0x1bf17c(0x38a)](_0x412e50);}[_0xa33034(0x225)](){var _0xd5c674=_0xa33034;return Array[_0xd5c674(0x301)](this[_0xd5c674(0x31c)][_0xd5c674(0x47a)]());}[_0xa33034(0x291)](){var _0x471bd4=_0xa33034;this[_0x471bd4(0x3ad)]['next'](this['_members']);}};__name(_RoomMember,_0xa33034(0x3c7));let RoomMember=_RoomMember;var __defProp$g=Object[_0xa33034(0x2e1)],__getOwnPropDesc$g=Object[_0xa33034(0x29f)],__decorateClass$g=__name((_0x4cc08b,_0x20063f,_0x2161b3,_0x583090)=>{for(var _0x25e3d2=_0x583090>0x1?void 0x0:_0x583090?__getOwnPropDesc$g(_0x20063f,_0x2161b3):_0x20063f,_0x357988=_0x4cc08b['length']-0x1,_0x1957fe;_0x357988>=0x0;_0x357988--)(_0x1957fe=_0x4cc08b[_0x357988])&&(_0x25e3d2=(_0x583090?_0x1957fe(_0x20063f,_0x2161b3,_0x25e3d2):_0x1957fe(_0x25e3d2))||_0x25e3d2);return _0x583090&&_0x25e3d2&&__defProp$g(_0x20063f,_0x2161b3,_0x25e3d2),_0x25e3d2;},_0xa33034(0x455)),__decorateParam$g=__name((_0x8e76d4,_0x1b769a)=>(_0x18ee4c,_0x4a218d)=>_0x1b769a(_0x18ee4c,_0x4a218d,_0x8e76d4),'__decorateParam$g'),SessionStatus=(_0x3b83b5=>(_0x3b83b5[_0x3b83b5[_0xa33034(0x264)]=0x0]=_0xa33034(0x264),_0x3b83b5[_0x3b83b5['JOINING']=0x1]=_0xa33034(0x3bd),_0x3b83b5[_0x3b83b5['OFFLINE']=0x2]=_0xa33034(0x235),_0x3b83b5[_0x3b83b5['ONLINE']=0x3]=_0xa33034(0x2ac),_0x3b83b5))(SessionStatus||{});const FailedReason={[CmdRspCode[_0xa33034(0x18c)]]:_0xa33034(0x3d1),[CmdRspCode[_0xa33034(0x19e)]]:_0xa33034(0x18d),[CmdRspCode['JOIN_ROOM_NOT_EXISTS']]:_0xa33034(0x1d1),[CmdRspCode['JOIN_ROOM_PERMISSION_DENIED']]:_0xa33034(0x305),[CmdRspCode[_0xa33034(0x45c)]]:_0xa33034(0x43c)};var _a3;let CollaborationSession=(_a3=class extends RxDisposable{constructor(_0x249026,_0x3fe4f0,_0x13f8e1,_0x124753,_0x580654,_0x750fcb,_0x4f7b19,_0x7ce483,_0x2db7ef){var _0x254512=_0xa33034;super(),__publicField(this,_0x254512(0x3b8),new BehaviorSubject(0x0)),__publicField(this,_0x254512(0x29b),this['_sessionStatus$'][_0x254512(0x3b2)]()),__publicField(this,_0x254512(0x22e),new Subject()),__publicField(this,_0x254512(0x349),this[_0x254512(0x22e)][_0x254512(0x3b2)]()),__publicField(this,_0x254512(0x181)),__publicField(this,_0x254512(0x2fd)),__publicField(this,'_collaborationTimeoutTimer'),__publicField(this,_0x254512(0x422),!0x1),__publicField(this,_0x254512(0x17f),null),(this[_0x254512(0x212)]=_0x249026,this[_0x254512(0x48c)]=_0x13f8e1,this[_0x254512(0x36a)]=_0x124753,this[_0x254512(0x14d)]=_0x580654,this[_0x254512(0x172)]=_0x750fcb,this[_0x254512(0x205)]=_0x4f7b19,this['_collaborationUIEventService']=_0x7ce483,this['_telemetryService']=_0x2db7ef,this[_0x254512(0x422)]=!!this[_0x254512(0x33a)],_0x3fe4f0[_0x254512(0x2c8)](takeUntil(this['dispose$']))[_0x254512(0x479)](_0x552b70=>{var _0x1326c4=_0x254512,_0x34a07e;typeof _0x552b70>'u'||(this['_socket']=_0x552b70,_0x552b70?(this[_0x1326c4(0x3fc)](_0x552b70),this['_socketMessageSubscription']=_0x552b70[_0x1326c4(0x1a3)][_0x1326c4(0x479)](_0xfd8c3c=>{var _0x90b704=_0x1326c4;_0xfd8c3c[_0x90b704(0x29d)]===this[_0x90b704(0x212)]&&this['_onCombEvent'](_0xfd8c3c);})):(this[_0x1326c4(0x1ef)](),this[_0x1326c4(0x3b8)][_0x1326c4(0x17a)](0x2),(_0x34a07e=this[_0x1326c4(0x2fd)])==null||_0x34a07e[_0x1326c4(0x3b5)](),this[_0x1326c4(0x2fd)]=null));}));}get['sessionStatus'](){var _0x18083a=_0xa33034;return this[_0x18083a(0x3b8)][_0x18083a(0x2b9)]();}[_0xa33034(0x273)](){var _0x50db99=_0xa33034,_0x6741e0,_0x483cf2;return(_0x483cf2=(_0x6741e0=this[_0x50db99(0x181)])==null?void 0x0:_0x6741e0['memberID'])!=null?_0x483cf2:null;}['dispose'](){var _0x4fd16b=_0xa33034;super['dispose'](),this[_0x4fd16b(0x3ca)][_0x4fd16b(0x17a)](),this[_0x4fd16b(0x3ca)][_0x4fd16b(0x470)]();}['close'](){var _0x5a7bb4=_0xa33034,_0x4c873e,_0x5297f7;this[_0x5a7bb4(0x1ef)](),(_0x4c873e=this[_0x5a7bb4(0x181)])==null||_0x4c873e[_0x5a7bb4(0x26d)]({'cmd':CombCmd[_0x5a7bb4(0x29e)],'data':{'roomID':this[_0x5a7bb4(0x212)]}}),(_0x5297f7=this[_0x5a7bb4(0x181)])==null||_0x5297f7['close'](),this[_0x5a7bb4(0x22e)][_0x5a7bb4(0x470)](),this[_0x5a7bb4(0x3b8)]['complete'](),this[_0x5a7bb4(0x2aa)]();}[_0xa33034(0x19a)](_0x282f6f){var _0x3fd27d=_0xa33034;_0x282f6f[_0x3fd27d(0x43d)]===CombCmd[_0x3fd27d(0x38e)]?this[_0x3fd27d(0x476)](_0x282f6f):_0x282f6f[_0x3fd27d(0x43d)]===CombCmd[_0x3fd27d(0x189)]&&this[_0x3fd27d(0x452)](_0x282f6f);}['_joinRoom'](_0x5d6c74){var _0x198fc2=_0xa33034;this[_0x198fc2(0x3b8)][_0x198fc2(0x17a)](0x1),_0x5d6c74[_0x198fc2(0x26d)]({'cmd':CombCmd[_0x198fc2(0x38e)],'routeKey':this[_0x198fc2(0x212)],'routeType':'','data':{'rooms':[{'roomID':this[_0x198fc2(0x212)]}]}});}['_onJoinRoomEvent'](_0x20e7f0){var _0x1dcb1a=_0xa33034,_0x2922a8;if(_0x20e7f0['code']in FailedReason){this[_0x1dcb1a(0x242)][_0x1dcb1a(0x2f9)]({'id':CollaborationUIEventId[_0x1dcb1a(0x2be)],'data':FailedReason[_0x20e7f0['code']]}),this[_0x1dcb1a(0x3b8)][_0x1dcb1a(0x17a)](0x2);return;}this[_0x1dcb1a(0x3b8)][_0x1dcb1a(0x17a)](0x3);const _0xab31ce=(_0x2922a8=_0x20e7f0[_0x1dcb1a(0x2c1)][_0x1dcb1a(0x24a)][this[_0x1dcb1a(0x212)]])==null?void 0x0:_0x2922a8[_0x1dcb1a(0x247)];_0xab31ce&&_0xab31ce[_0x1dcb1a(0x24c)](_0x397066=>this['_memberService'][_0x1dcb1a(0x284)](this['_unitID'],_0x397066));}[_0xa33034(0x452)](_0x1699ba){var _0x2bd63e=_0xa33034;try{const _0x5ca2ee=_0x1699ba['data'];switch(_0x5ca2ee[_0x2bd63e(0x202)]){case CollaborationEvent[_0x2bd63e(0x2a2)]:this[_0x2bd63e(0x48d)](_0x5ca2ee),this[_0x2bd63e(0x22e)]['next'](_0x5ca2ee);break;case CollaborationEvent[_0x2bd63e(0x166)]:this[_0x2bd63e(0x134)](_0x5ca2ee),this['_event$'][_0x2bd63e(0x17a)](_0x5ca2ee);break;case CollaborationEvent[_0x2bd63e(0x379)]:case CollaborationEvent[_0x2bd63e(0x3de)]:this['_stopTelemetryCollaborationNewChangeset'](),this[_0x2bd63e(0x2d8)](),this[_0x2bd63e(0x22e)][_0x2bd63e(0x17a)](_0x5ca2ee);break;case CollaborationEvent[_0x2bd63e(0x472)]:this[_0x2bd63e(0x48c)][_0x2bd63e(0x1c4)]('save\x20fail\x20reason\x20is\x20'+JSON['stringify'](_0x5ca2ee)),this[_0x2bd63e(0x22e)]['next'](_0x5ca2ee);break;case CollaborationEvent['COMMENT_UPDATE']:this[_0x2bd63e(0x205)][_0x2bd63e(0x1bd)](_0x5ca2ee[_0x2bd63e(0x2c1)]),this[_0x2bd63e(0x22e)]['next'](_0x5ca2ee);break;default:this['_event$']['next'](_0x5ca2ee);}}catch(_0x583c90){this['_logService']['error'](_0x583c90,_0x1699ba);}}[_0xa33034(0x48d)](_0x19d4eb){var _0x2dcf0e=_0xa33034;this[_0x2dcf0e(0x172)][_0x2dcf0e(0x284)](this[_0x2dcf0e(0x212)],_0x19d4eb[_0x2dcf0e(0x2c1)]);}[_0xa33034(0x134)](_0x46980c){var _0x187c18=_0xa33034;this[_0x187c18(0x172)][_0x187c18(0x426)](this[_0x187c18(0x212)],_0x46980c[_0x187c18(0x2c1)][_0x187c18(0x3b9)]);}async[_0xa33034(0x26d)](_0x3a4477,_0x21b9fe){var _0x377f70=_0xa33034;if(this[_0x377f70(0x39f)]!==0x3||!this[_0x377f70(0x181)])throw new Error(_0x377f70(0x1f1));try{_0x3a4477[_0x377f70(0x202)]===CollaborationEvent[_0x377f70(0x193)]&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x377f70(0x1a2)](_0x3a4477)),this[_0x377f70(0x181)][_0x377f70(0x26d)]({'cmd':CombCmd[_0x377f70(0x1ff)],'routeKey':_0x21b9fe,'routeType':'','data':_0x3a4477});}catch(_0x152ddb){this['_logService'][_0x377f70(0x1c4)](_0x152ddb);}}['_scheduleCollaborationTimeoutTimer'](){var _0x51de5f=_0xa33034,_0x1fe4ac;this[_0x51de5f(0x1fc)]=setTimeout(()=>{var _0x2af738=_0x51de5f;this[_0x2af738(0x1fc)]=null,this[_0x2af738(0x242)][_0x2af738(0x2f9)]({'id':CollaborationUIEventId[_0x2af738(0x3aa)]});},(_0x1fe4ac=this['_configService'][_0x51de5f(0x439)](HEARTBEAT_TIMEOUT_KEY))!=null?_0x1fe4ac:DEFAULT_HEARTBEAT_TIMEOUT);}[_0xa33034(0x2d8)](){var _0x33d7a1=_0xa33034;this[_0x33d7a1(0x1fc)]&&(clearTimeout(this['_collaborationTimeoutTimer']),this['_collaborationTimeoutTimer']=null);}['_startTelemetryCollaborationNewChangeset'](_0x3f2e3c){var _0x14b202=_0xa33034;if(!this[_0x14b202(0x422)])return;const {data:_0x4976ef}=_0x3f2e3c,{unitID:_0x122270,changeset:_0x2a2ddd}=_0x4976ef,{mutations:_0x4b3005,type:_0x44f476}=_0x2a2ddd;this[_0x14b202(0x17f)]={'unitId':_0x122270,'type':_0x44f476,'startTime':performance[_0x14b202(0x2ba)](),'stopTime':0x0,'duration':0x0,'size':summaryChangesetSize(_0x4b3005)};}[_0xa33034(0x24b)](){var _0x2d1766=_0xa33034;if(this[_0x2d1766(0x422)]){if(!this[_0x2d1766(0x17f)]){this[_0x2d1766(0x48c)]['error'](_0x2d1766(0x173),_0x2d1766(0x304));return;}this['_telemetryInfo'][_0x2d1766(0x3c3)]=performance['now'](),this[_0x2d1766(0x17f)][_0x2d1766(0x22f)]=this[_0x2d1766(0x17f)][_0x2d1766(0x3c3)]-this['_telemetryInfo'][_0x2d1766(0x1a9)],this[_0x2d1766(0x33a)][_0x2d1766(0x322)](TELEMETRY_COLLABORATION_NEW_CHANGESET,this[_0x2d1766(0x17f)]),this[_0x2d1766(0x17f)]=null;}}[_0xa33034(0x1ef)](){var _0x57bb2d=_0xa33034;this[_0x57bb2d(0x17f)]=null;}},__name(_a3,_0xa33034(0x290)),_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[_0xa33034(0x2e1)],__getOwnPropDesc$f=Object[_0xa33034(0x29f)],__decorateClass$f=__name((_0x5aa373,_0x1a925c,_0x29b120,_0x5e26db)=>{var _0x35c188=_0xa33034;for(var _0x2034bb=_0x5e26db>0x1?void 0x0:_0x5e26db?__getOwnPropDesc$f(_0x1a925c,_0x29b120):_0x1a925c,_0x1314d8=_0x5aa373[_0x35c188(0x271)]-0x1,_0xe848cf;_0x1314d8>=0x0;_0x1314d8--)(_0xe848cf=_0x5aa373[_0x1314d8])&&(_0x2034bb=(_0x5e26db?_0xe848cf(_0x1a925c,_0x29b120,_0x2034bb):_0xe848cf(_0x2034bb))||_0x2034bb);return _0x5e26db&&_0x2034bb&&__defProp$f(_0x1a925c,_0x29b120,_0x2034bb),_0x2034bb;},_0xa33034(0x144)),__decorateParam$f=__name((_0x11eb2b,_0x5acb2f)=>(_0x516e66,_0x260ea4)=>_0x5acb2f(_0x516e66,_0x260ea4,_0x11eb2b),'__decorateParam$f'),_a4;let CollaborationSessionService=(_a4=class extends Disposable{constructor(_0x26725c,_0xc7c5db,_0x5191cf,_0x22d3ee,_0x1bb562,_0x4b785f,_0x475e3b){var _0x54fa11=_0xa33034;super(),__publicField(this,_0x54fa11(0x2b1),new BehaviorSubject(void 0x0)),__publicField(this,'socket$',this[_0x54fa11(0x2b1)][_0x54fa11(0x3b2)]()),__publicField(this,_0x54fa11(0x201),null),__publicField(this,'_sessions',new Map()),__publicField(this,'_status$',new BehaviorSubject(SessionStatus[_0x54fa11(0x264)])),__publicField(this,_0x54fa11(0x38d),this[_0x54fa11(0x233)][_0x54fa11(0x3b2)]()),__publicField(this,_0x54fa11(0x415),!0x1),__publicField(this,_0x54fa11(0x42a)),__publicField(this,_0x54fa11(0x1f6),0x0),__publicField(this,_0x54fa11(0x47c)),__publicField(this,_0x54fa11(0x2ec)),(this[_0x54fa11(0x39e)]=_0x26725c,this['_logService']=_0xc7c5db,this[_0x54fa11(0x36a)]=_0x5191cf,this[_0x54fa11(0x2e3)]=_0x22d3ee,this[_0x54fa11(0x377)]=_0x1bb562,this[_0x54fa11(0x242)]=_0x4b785f,this['_networkConditionService']=_0x475e3b,this['_listenToNetworkCondition']());}get[_0xa33034(0x181)](){var _0x160804=_0xa33034;return this[_0x160804(0x2b1)][_0x160804(0x2b9)]();}[_0xa33034(0x2b8)](){var _0x31f3f9=_0xa33034;this[_0x31f3f9(0x2f2)]&&this[_0x31f3f9(0x3a7)](this['_networkConditionService'][_0x31f3f9(0x25c)][_0x31f3f9(0x479)](_0x4d5c09=>{var _0x26811a=_0x31f3f9;_0x4d5c09&&!this[_0x26811a(0x181)]&&this[_0x26811a(0x3c9)](),_0x4d5c09||this[_0x26811a(0x1e5)]();}));}[_0xa33034(0x2aa)](){var _0x4df1dd=_0xa33034;super[_0x4df1dd(0x2aa)](),this[_0x4df1dd(0x256)]['forEach'](_0x4191c4=>_0x4191c4[_0x4df1dd(0x2aa)]()),this['_sessions'][_0x4df1dd(0x210)](),this[_0x4df1dd(0x233)][_0x4df1dd(0x470)]();}async[_0xa33034(0x155)](_0x5e3b58){var _0x52d8c2=_0xa33034;if(this[_0x52d8c2(0x256)][_0x52d8c2(0x278)](_0x5e3b58))return this[_0x52d8c2(0x256)]['get'](_0x5e3b58);this[_0x52d8c2(0x45a)]();const _0x1d0aea=this[_0x52d8c2(0x39e)][_0x52d8c2(0x465)](CollaborationSession,_0x5e3b58,this[_0x52d8c2(0x2b1)][_0x52d8c2(0x3b2)]());return this['_sessions'][_0x52d8c2(0x392)](_0x5e3b58,_0x1d0aea),_0x1d0aea;}['closeSession'](_0x45c4f2){var _0x59413a=_0xa33034,_0x4ac9f1;const _0x2d23be=this[_0x59413a(0x256)][_0x59413a(0x38a)](_0x45c4f2);_0x2d23be&&(this[_0x59413a(0x256)]['delete'](_0x45c4f2),_0x2d23be[_0x59413a(0x3f8)]()),this[_0x59413a(0x256)][_0x59413a(0x313)]||(_0x4ac9f1=this[_0x59413a(0x181)])==null||_0x4ac9f1[_0x59413a(0x3f8)]();}[_0xa33034(0x3c9)](){var _0x2af155=_0xa33034;this[_0x2af155(0x1f6)]=0x0,this[_0x2af155(0x42a)]!=null&&(clearTimeout(this[_0x2af155(0x42a)]),this[_0x2af155(0x42a)]=null),this['_tryReconnect']();}async[_0xa33034(0x382)](){var _0x1ae534=_0xa33034,_0x37ccce,_0x352477,_0x18667f;const _0xc55681=this[_0x1ae534(0x36a)]['getConfig'](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY),_0x57f08a=(_0x37ccce=_0xc55681==null?void 0x0:_0xc55681[_0x1ae534(0x362)])!=null?_0x37ccce:DEFAULT_WS_SESSION_TICKET_URL;return(_0x18667f=(_0x352477=(await this['_httpService']['get'](_0x57f08a,{'headers':{'Content-Type':_0x1ae534(0x481)}}))['body'])==null?void 0x0:_0x352477[_0x1ae534(0x478)])!=null?_0x18667f:'';}['_createSocketURL'](_0x31a01a){var _0x57359b=_0xa33034,_0x35f590,_0x3aa9ee;const _0x251376=this[_0x57359b(0x36a)]['getConfig'](COLLAB_WEB_SOCKET_URL_KEY),_0x469f46=this[_0x57359b(0x36a)]['getConfig'](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY),_0x4a7d91=(_0x3aa9ee=(_0x35f590=_0x469f46==null?void 0x0:_0x469f46['collabWebSocketUrl'])!=null?_0x35f590:_0x251376)!=null?_0x3aa9ee:DEFAULT_COLLAB_WEB_SOCKET_URL,_0x54f4f5=typeof window>'u'?new URL(_0x4a7d91):new URL(_0x4a7d91,window[_0x57359b(0x236)]['origin']);_0x54f4f5['searchParams'][_0x57359b(0x392)](_0x57359b(0x1a5),_0x31a01a);const _0x62a16e=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x57359b(0x236)][_0x57359b(0x23b)]);return _0x62a16e[_0x57359b(0x38a)](_0x57359b(0x30c))&&_0x54f4f5[_0x57359b(0x22b)][_0x57359b(0x392)](_0x57359b(0x30c),_0x62a16e[_0x57359b(0x38a)](_0x57359b(0x30c))),_0x54f4f5['toString']();}async[_0xa33034(0x461)](){var _0x295b63=_0xa33034;const _0x3eb440=await this[_0x295b63(0x382)](),_0x312771=this['_createSocketURL'](_0x3eb440),_0x1e33cf=this[_0x295b63(0x2e3)][_0x295b63(0x2f5)](_0x312771);return this['_candidateSocket']=_0x1e33cf,_0x1e33cf;}async[_0xa33034(0x45a)](){var _0x9bd3ee=_0xa33034,_0x2f9ebf,_0x2e4c5e;try{const _0x391805=(_0x2e4c5e=(_0x2f9ebf=this[_0x9bd3ee(0x181)])!=null?_0x2f9ebf:this[_0x9bd3ee(0x201)])!=null?_0x2e4c5e:await this['_createSocket']();if(_0x391805){const _0x3cde3f=_0x391805[_0x9bd3ee(0x26d)];_0x391805[_0x9bd3ee(0x26d)]=_0x5479f9=>(this['_rescheduleHeartbeat'](),_0x3cde3f['apply'](_0x391805,[_0x5479f9])),_0x391805[_0x9bd3ee(0x1a3)][_0x9bd3ee(0x479)](_0x271cd2=>this[_0x9bd3ee(0x48a)](_0x391805,_0x271cd2)),_0x391805[_0x9bd3ee(0x384)][_0x9bd3ee(0x2c8)](take(0x1))['subscribe'](_0x3183d6=>this['_logService'][_0x9bd3ee(0x1c4)]('[CollaborationSessionService]:\x20socket\x20error',_0x3183d6)),_0x391805[_0x9bd3ee(0x1ec)][_0x9bd3ee(0x2c8)](take(0x1))[_0x9bd3ee(0x479)](()=>{var _0x213eda=_0x9bd3ee;this[_0x213eda(0x184)](_0x391805);}),_0x391805[_0x9bd3ee(0x23a)][_0x9bd3ee(0x2c8)](take(0x1))[_0x9bd3ee(0x479)](_0x5c4702=>{var _0x18cec3=_0x9bd3ee;this['_logService'][_0x18cec3(0x213)](_0x18cec3(0x2ad),_0x18cec3(0x32e),_0x5c4702),this['_onConnectionFailed']();});}}catch(_0x51a2cc){this[_0x9bd3ee(0x48c)][_0x9bd3ee(0x1c4)](_0x51a2cc),this[_0x9bd3ee(0x2e7)]();}}['_onConnectionOpen'](_0xbd9f66){var _0x22a81f=_0xa33034;this[_0x22a81f(0x48c)][_0x22a81f(0x213)]('[CollaborationSessionService]',_0x22a81f(0x16c)),_0xbd9f66[_0x22a81f(0x26d)]({'cmd':CombCmd['HELLO']}),this['_rescheduleHeartbeat']();}[_0xa33034(0x1e5)](){var _0x187608=_0xa33034;this[_0x187608(0x415)]=!0x1,this[_0x187608(0x201)]=null,this['_status$']['next'](SessionStatus[_0x187608(0x235)]),this[_0x187608(0x2b1)]['next'](null),this['_clearTimeoutTimer'](),this[_0x187608(0x28c)]();}[_0xa33034(0x2e7)](){var _0x46dc51=_0xa33034,_0x4b64ac;this[_0x46dc51(0x1e5)](),this[_0x46dc51(0x1f6)]<((_0x4b64ac=this[_0x46dc51(0x36a)][_0x46dc51(0x439)](RETRY_CONNECTING_MAX_COUNT_KEY))!=null?_0x4b64ac:DEFAULT_RETRY_CONNECTING_MAX_COUNT)?(this[_0x46dc51(0x242)]['emitEvent']({'id':CollaborationUIEventId[_0x46dc51(0x1ac)]}),this[_0x46dc51(0x442)]()):this[_0x46dc51(0x242)][_0x46dc51(0x2f9)]({'id':CollaborationUIEventId[_0x46dc51(0x34e)]});}[_0xa33034(0x442)](){var _0x5ef1e=_0xa33034,_0x2972ff;const _0x526600=this['_retryCount'],_0xf5c48a=this[_0x5ef1e(0x36a)]['getConfig'](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY),_0x475969=_0x526600===0x0?0x0:((_0x2972ff=_0xf5c48a==null?void 0x0:_0xf5c48a[_0x5ef1e(0x312)])!=null?_0x2972ff:DEFAULT_RETRY_CONNECTING_INTERVAL)*0x2**_0x526600;this[_0x5ef1e(0x42a)]=setTimeout(()=>{var _0x548ef0=_0x5ef1e;clearTimeout(this['_retryConnectingTimer']),this[_0x548ef0(0x42a)]=null,this[_0x548ef0(0x45a)]();},_0x475969),this[_0x5ef1e(0x1f6)]+=0x1;}[_0xa33034(0x48a)](_0x576c1b,_0x12fe4a){var _0x1ef7bb=_0xa33034;const {cmd:_0x430d7e}=_0x12fe4a;_0x430d7e===CombCmd[_0x1ef7bb(0x486)]&&!this['_socketReady']&&(_0x576c1b['memberID']=_0x12fe4a[_0x1ef7bb(0x2c1)][_0x1ef7bb(0x3b9)],this[_0x1ef7bb(0x2b1)][_0x1ef7bb(0x17a)](_0x576c1b),this[_0x1ef7bb(0x233)][_0x1ef7bb(0x17a)](SessionStatus[_0x1ef7bb(0x2ac)]),this['_socketReady']=!0x0,this[_0x1ef7bb(0x201)]=null),_0x430d7e===CombCmd[_0x1ef7bb(0x1c1)]&&this['_clearTimeoutTimer'](),this[_0x1ef7bb(0x200)]();}[_0xa33034(0x200)](){var _0x1f976a=_0xa33034,_0x22b091;this[_0x1f976a(0x28c)](),this[_0x1f976a(0x47c)]=setTimeout(()=>this[_0x1f976a(0x130)](),(_0x22b091=this['_configService']['getConfig'](HEARTBEAT_INTERVAL_KEY))!=null?_0x22b091:DEFAULT_HEARTBEAT_INTERVAL);}[_0xa33034(0x130)](){var _0x271cd6=_0xa33034;this[_0x271cd6(0x181)][_0x271cd6(0x26d)]({'cmd':CombCmd[_0x271cd6(0x1c1)]}),this[_0x271cd6(0x37f)]();}['_waitForHeartbeatResponse'](){var _0x756f60=_0xa33034,_0x3fafe2;this[_0x756f60(0x2ec)]=setTimeout(()=>this[_0x756f60(0x2e7)](),(_0x3fafe2=this[_0x756f60(0x36a)][_0x756f60(0x439)](HEARTBEAT_TIMEOUT_KEY))!=null?_0x3fafe2:DEFAULT_HEARTBEAT_TIMEOUT);}[_0xa33034(0x28c)](){var _0x2116dd=_0xa33034;this[_0x2116dd(0x47c)]!=null&&(clearTimeout(this[_0x2116dd(0x47c)]),this[_0x2116dd(0x47c)]=null);}['_clearTimeoutTimer'](){var _0x31236c=_0xa33034;this[_0x31236c(0x2ec)]!=null&&(clearTimeout(this[_0x31236c(0x2ec)]),this[_0x31236c(0x2ec)]=null);}},__name(_a4,_0xa33034(0x35c)),_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[_0xa33034(0x34a)]((i+0x100)[_0xa33034(0x1fa)](0x10)['slice'](0x1));function unsafeStringify(_0x2488eb,_0x17f4f7=0x0){return(byteToHex[_0x2488eb[_0x17f4f7+0x0]]+byteToHex[_0x2488eb[_0x17f4f7+0x1]]+byteToHex[_0x2488eb[_0x17f4f7+0x2]]+byteToHex[_0x2488eb[_0x17f4f7+0x3]]+'-'+byteToHex[_0x2488eb[_0x17f4f7+0x4]]+byteToHex[_0x2488eb[_0x17f4f7+0x5]]+'-'+byteToHex[_0x2488eb[_0x17f4f7+0x6]]+byteToHex[_0x2488eb[_0x17f4f7+0x7]]+'-'+byteToHex[_0x2488eb[_0x17f4f7+0x8]]+byteToHex[_0x2488eb[_0x17f4f7+0x9]]+'-'+byteToHex[_0x2488eb[_0x17f4f7+0xa]]+byteToHex[_0x2488eb[_0x17f4f7+0xb]]+byteToHex[_0x2488eb[_0x17f4f7+0xc]]+byteToHex[_0x2488eb[_0x17f4f7+0xd]]+byteToHex[_0x2488eb[_0x17f4f7+0xe]]+byteToHex[_0x2488eb[_0x17f4f7+0xf]])['toLowerCase']();}__name(unsafeStringify,_0xa33034(0x255));let getRandomValues;const rnds8=new Uint8Array(0x10);function rng(){var _0x107794=_0xa33034;if(!getRandomValues){if(typeof crypto>'u'||!crypto[_0x107794(0x31b)])throw new Error('crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported');getRandomValues=crypto[_0x107794(0x31b)][_0x107794(0x1e6)](crypto);}return getRandomValues(rnds8);}__name(rng,_0xa33034(0x170));const randomUUID=typeof crypto<'u'&&crypto[_0xa33034(0x411)]&&crypto[_0xa33034(0x411)][_0xa33034(0x1e6)](crypto),native={'randomUUID':randomUUID};function v4(_0x552c6e,_0x3ec9b4,_0x56b77e){var _0xd69383=_0xa33034,_0x5eb506,_0x51f3d3,_0x2b9b99;if(native[_0xd69383(0x411)]&&!_0x552c6e)return native['randomUUID']();_0x552c6e=_0x552c6e||{};const _0x1b928d=(_0x2b9b99=(_0x51f3d3=_0x552c6e[_0xd69383(0x2e0)])!=null?_0x51f3d3:(_0x5eb506=_0x552c6e[_0xd69383(0x170)])==null?void 0x0:_0x5eb506[_0xd69383(0x451)](_0x552c6e))!=null?_0x2b9b99:rng();if(_0x1b928d[_0xd69383(0x271)]<0x10)throw new Error('Random\x20bytes\x20length\x20must\x20be\x20>=\x2016');return _0x1b928d[0x6]=_0x1b928d[0x6]&0xf|0x40,_0x1b928d[0x8]=_0x1b928d[0x8]&0x3f|0x80,unsafeStringify(_0x1b928d);}__name(v4,'v4');const ILocalCacheService=createIdentifier(_0xa33034(0x20c));function getLocalCacheKey(_0x347087){var _0x359ccd=_0xa33034;return _0x359ccd(0x24f)+_0x347087;}__name(getLocalCacheKey,_0xa33034(0x135));var __defProp$e=Object[_0xa33034(0x2e1)],__getOwnPropDesc$e=Object[_0xa33034(0x29f)],__decorateClass$e=__name((_0x561fa6,_0x2ed6a5,_0x4d91a0,_0x8faebc)=>{var _0x3e74a5=_0xa33034;for(var _0x13344c=_0x8faebc>0x1?void 0x0:_0x8faebc?__getOwnPropDesc$e(_0x2ed6a5,_0x4d91a0):_0x2ed6a5,_0x116947=_0x561fa6[_0x3e74a5(0x271)]-0x1,_0x2271e8;_0x116947>=0x0;_0x116947--)(_0x2271e8=_0x561fa6[_0x116947])&&(_0x13344c=(_0x8faebc?_0x2271e8(_0x2ed6a5,_0x4d91a0,_0x13344c):_0x2271e8(_0x13344c))||_0x13344c);return _0x8faebc&&_0x13344c&&__defProp$e(_0x2ed6a5,_0x4d91a0,_0x13344c),_0x13344c;},_0xa33034(0x206)),__decorateParam$e=__name((_0x46b873,_0x1de976)=>(_0xa7bfbe,_0x4046ef)=>_0x1de976(_0xa7bfbe,_0x4046ef,_0x46b873),_0xa33034(0x354));function extractTargetFromFirstChangeset(_0x32c990){const {unitID:_0xfd0fab,mutations:_0xa283c8}=_0x32c990;return{'unitId':_0xfd0fab,'subUnitId':_0xa283c8[0x0]['params']['subUnitId']};}__name(extractTargetFromFirstChangeset,_0xa33034(0x369));var _a5;let SheetTransformSelectionsService=(_a5=class{constructor(_0x1da1fb,_0x3d76c5,_0x2f5064){var _0x19daf6=_0xa33034;this['_injector']=_0x1da1fb,this[_0x19daf6(0x158)]=_0x3d76c5,this[_0x19daf6(0x41b)]=_0x2f5064;}[_0xa33034(0x22c)](_0x391df5){var _0x2ace3f=_0xa33034,_0x5bbef9,_0x4852c5,_0x1d95b6,_0x321c74;const _0x541c46=this[_0x2ace3f(0x39e)][_0x2ace3f(0x38a)](SheetsSelectionsService),{unitId:_0x25cb01,subUnitId:_0x48c780}=extractTargetFromFirstChangeset(_0x391df5),_0x35a29f=_0x541c46==null?void 0x0:_0x541c46['getWorkbookSelections'](_0x25cb01)[_0x2ace3f(0x28d)](),_0xdda4f2=(_0x4852c5=(_0x5bbef9=this['_instanceService'][_0x2ace3f(0x32d)](_0x25cb01))==null?void 0x0:_0x5bbef9['getActiveSheet']())==null?void 0x0:_0x4852c5['getSheetId']();if(_0x35a29f[_0x2ace3f(0x271)]===0x0||!_0x25cb01||!_0x48c780)return;const _0x4a2593=[{'id':SetSelectionsOperation['id'],'params':{'unitId':_0x25cb01,'subUnitId':_0xdda4f2,'selections':Tools[_0x2ace3f(0x343)](_0x35a29f)}}],_0x2769f9=this[_0x2ace3f(0x158)][_0x2ace3f(0x142)](_0x391df5,_0x4a2593);if(!isTransformMutationsWithChangesetSuccess(_0x2769f9))throw _0x2769f9[_0x2ace3f(0x1c4)];const _0x42ab6a=(_0x321c74=(_0x1d95b6=_0x2769f9[_0x2ace3f(0x16f)][0x0])==null?void 0x0:_0x1d95b6[_0x2ace3f(0x468)])==null?void 0x0:_0x321c74[_0x2ace3f(0x2b2)];if(Array[_0x2ace3f(0x3cc)](_0x42ab6a)&&_0x42ab6a[_0x2ace3f(0x271)]){if(_0x42ab6a[_0x2ace3f(0x271)]===_0x4a2593[0x0][_0x2ace3f(0x468)]['selections'][_0x2ace3f(0x271)]&&_0x42ab6a[_0x2ace3f(0x460)]((_0x54e916,_0x585a3f)=>Rectangle[_0x2ace3f(0x2cd)](_0x54e916[_0x2ace3f(0x3ef)],_0x4a2593[0x0][_0x2ace3f(0x468)]['selections'][_0x585a3f]['range'])))return;this['_injector']['get'](ICommandService)[_0x2ace3f(0x2bc)](SetSelectionsOperation['id'],{'unitId':_0x25cb01,'subUnitId':_0xdda4f2,'selections':_0x42ab6a});}}},__name(_a5,'SheetTransformSelectionsService'),_a5);SheetTransformSelectionsService=__decorateClass$e([__decorateParam$e(0x0,Inject(Injector)),__decorateParam$e(0x1,ITransformService),__decorateParam$e(0x2,IUniverInstanceService)],SheetTransformSelectionsService);const ISingleActiveUnitService=createIdentifier(_0xa33034(0x145));var UnitStatus=(_0x2a8343=>(_0x2a8343[_0x2a8343[_0xa33034(0x204)]=0x0]=_0xa33034(0x204),_0x2a8343[_0x2a8343[_0xa33034(0x431)]=0x1]=_0xa33034(0x431),_0x2a8343))(UnitStatus||{});const SINGLE_CHANGESET_MUTATIONS=new Set([InsertSheetMutation['id']]);function assembleSheetChangeset(_0x2d04a5,_0x29295a,_0x32280b,_0x132471,_0x30f00e){var _0x30cdb4=_0xa33034,_0x351006,_0x5ac71f,_0x4e79b5,_0x204959;const _0x31f1b4=[];for(const _0xa9dfd0 of _0x2d04a5)if(SINGLE_CHANGESET_MUTATIONS['has'](_0xa9dfd0['id'])){if(_0x31f1b4[_0x30cdb4(0x271)]>0x0)break;_0x31f1b4[_0x30cdb4(0x34a)](_0xa9dfd0);break;}else _0x31f1b4['push'](_0xa9dfd0);const _0x5279f4=(_0x5ac71f=(_0x351006=_0x30f00e[_0x30cdb4(0x26f)]())==null?void 0x0:_0x351006[_0x30cdb4(0x376)])!=null?_0x5ac71f:'unknown',_0x1053e0=(_0x204959=(_0x4e79b5=_0x30f00e['getCurrentUser']())==null?void 0x0:_0x4e79b5[_0x30cdb4(0x3b9)])!=null?_0x204959:'unknown';return{'changeset':{'unitID':_0x29295a,'type':mapDocumentTypeToUniverType(_0x32280b[_0x30cdb4(0x34c)](_0x29295a)),'baseRev':_0x132471['getCurrentRevOfUnit'](_0x29295a),'revision':0x0,'userID':_0x5279f4,'memberID':_0x1053e0,'mutations':_0x31f1b4},'pendingMutations':_0x2d04a5[_0x30cdb4(0x178)](_0x31f1b4[_0x30cdb4(0x271)])};}__name(assembleSheetChangeset,_0xa33034(0x463));function assembleDocChangeset(_0x5db3ec,_0x173643,_0x2d529f,_0x2fd72b,_0x2ebaea){var _0x1dd28f=_0xa33034,_0x2df708,_0x4abb0a,_0x54d244,_0x314e6e;const _0x1ac57a=[_0x5db3ec[_0x1dd28f(0x3f4)]((_0x1bc4a6,_0x18e65d)=>{var _0x39e323=_0x1dd28f,_0x5292ac;const {id:_0x59300f}=_0x1bc4a6,{id:_0x4ff15b,type:_0x4a5e6d}=_0x18e65d,_0x2d99e8=(_0x5292ac=_0x1bc4a6['params'])!=null?_0x5292ac:{'actions':null},_0x609521=_0x18e65d[_0x39e323(0x468)];if(_0x59300f&&_0x59300f!==_0x4ff15b)throw new Error(_0x39e323(0x23f)+_0x59300f+'\x20-\x20'+_0x4ff15b+'.');return{..._0x1bc4a6,'id':_0x4ff15b,'type':_0x4a5e6d,'params':{'unitId':_0x609521[_0x39e323(0x199)],'textRanges':_0x609521[_0x39e323(0x326)],'actions':JSONX[_0x39e323(0x2e4)](_0x2d99e8['actions'],_0x609521[_0x39e323(0x292)])}};},{})],_0x1a042a=(_0x4abb0a=(_0x2df708=_0x2ebaea[_0x1dd28f(0x26f)]())==null?void 0x0:_0x2df708[_0x1dd28f(0x376)])!=null?_0x4abb0a:_0x1dd28f(0x35a),_0x47ec91=(_0x314e6e=(_0x54d244=_0x2ebaea[_0x1dd28f(0x26f)]())==null?void 0x0:_0x54d244[_0x1dd28f(0x3b9)])!=null?_0x314e6e:_0x1dd28f(0x35a);return{'changeset':{'unitID':_0x173643,'type':mapDocumentTypeToUniverType(_0x2d529f[_0x1dd28f(0x34c)](_0x173643)),'baseRev':_0x2fd72b[_0x1dd28f(0x136)](_0x173643),'revision':0x0,'userID':_0x1a042a,'memberID':_0x47ec91,'mutations':_0x1ac57a},'pendingMutations':[]};}__name(assembleDocChangeset,_0xa33034(0x263));function createTimerObservable$(_0x66bc28,_0x16cb0e){var _0x4264d0=_0xa33034;const _0x596b04=new ReplaySubject(0x1);return setTimeout(()=>_0x596b04['next'](_0x16cb0e),_0x66bc28),_0x596b04[_0x4264d0(0x3b2)]()[_0x4264d0(0x2c8)](_0x1bd1bc(0x1));}__name(createTimerObservable$,_0xa33034(0x475));const EmptyMutationInfo={'id':EmptyMutation['id'],'type':CommandType[_0xa33034(0x448)],'params':{}};var __defProp$d=Object[_0xa33034(0x2e1)],__getOwnPropDesc$d=Object['getOwnPropertyDescriptor'],__decorateClass$d=__name((_0x6f8916,_0x839071,_0x4d84cd,_0xaaf24a)=>{var _0x3ca0eb=_0xa33034;for(var _0x59a4e5=_0xaaf24a>0x1?void 0x0:_0xaaf24a?__getOwnPropDesc$d(_0x839071,_0x4d84cd):_0x839071,_0x434cb6=_0x6f8916[_0x3ca0eb(0x271)]-0x1,_0xd84323;_0x434cb6>=0x0;_0x434cb6--)(_0xd84323=_0x6f8916[_0x434cb6])&&(_0x59a4e5=(_0xaaf24a?_0xd84323(_0x839071,_0x4d84cd,_0x59a4e5):_0xd84323(_0x59a4e5))||_0x59a4e5);return _0xaaf24a&&_0x59a4e5&&__defProp$d(_0x839071,_0x4d84cd,_0x59a4e5),_0x59a4e5;},_0xa33034(0x1e2)),__decorateParam$d=__name((_0x2508ac,_0x2d3122)=>(_0x392136,_0x57341c)=>_0x2d3122(_0x392136,_0x57341c,_0x2508ac),'__decorateParam$d'),CollaborationStatus=(_0x2966fd=>(_0x2966fd[_0xa33034(0x239)]=_0xa33034(0x180),_0x2966fd[_0xa33034(0x23d)]=_0xa33034(0x364),_0x2966fd[_0xa33034(0x3b1)]=_0xa33034(0x380),_0x2966fd[_0xa33034(0x249)]=_0xa33034(0x162),_0x2966fd[_0xa33034(0x195)]=_0xa33034(0x1dc),_0x2966fd['FETCH_MISS']=_0xa33034(0x3a9),_0x2966fd[_0xa33034(0x250)]=_0xa33034(0x192),_0x2966fd[_0xa33034(0x235)]='offline',_0x2966fd))(CollaborationStatus||{});const MAX_RETRY_TIMEOUT=0xea60,_CollaborationState=class _CollaborationState{constructor(_0x3572e8,_0x2a3a32,_0x294df0,_0x608c49,_0x256818,_0xdd93a5,_0x7ee335,_0x3a9598,_0x1eeee6){var _0x74628c=_0xa33034;__publicField(this,_0x74628c(0x434),null),__publicField(this,_0x74628c(0x40f),[]),(this['unitID']=_0x3572e8,this[_0x74628c(0x3e5)]=_0x2a3a32,this['_handler']=_0x256818,this[_0x74628c(0x401)]=_0xdd93a5,this[_0x74628c(0x456)]=_0x7ee335,this['_revisionService']=_0x3a9598,this[_0x74628c(0x48b)]=_0x1eeee6,this['_awaitingChangeset']=_0x294df0,this[_0x74628c(0x40f)]=_0x608c49);}[_0xa33034(0x438)](_0x9cfc86){var _0x34bdfe=_0xa33034;const _0x12e6fd=this['_revisionService'][_0x34bdfe(0x136)](this[_0x34bdfe(0x259)]);return _0x9cfc86[_0x34bdfe(0x1ab)]>_0x12e6fd+0x1?(this['_handler']['onMissingChangesets']({'from':_0x12e6fd,'to':_0x9cfc86['revision']-0x1}),!0x0):!0x1;}[_0xa33034(0x3b3)](_0x5b6934){var _0x503c88=_0xa33034;this[_0x503c88(0x456)][_0x503c88(0x1c9)](this[_0x503c88(0x259)],_0x5b6934);}[_0xa33034(0x406)](_0x79adce){var _0x21cb07=_0xa33034,_0x482e56,_0x107742;(_0x107742=(_0x482e56=this[_0x21cb07(0x45e)])['onTransformSelections'])==null||_0x107742[_0x21cb07(0x451)](_0x482e56,_0x79adce);}['_transformIMECache'](_0x22d815){var _0x264804=_0xa33034,_0x16f144,_0xf3d1ce;return(_0xf3d1ce=(_0x16f144=this[_0x264804(0x45e)])[_0x264804(0x15a)])==null?void 0x0:_0xf3d1ce[_0x264804(0x451)](_0x16f144,_0x22d815);}[_0xa33034(0x185)](_0x3562cf){var _0x258666=_0xa33034,_0x16d3a0,_0x1b8d20;return(_0x1b8d20=(_0x16d3a0=this[_0x258666(0x45e)])[_0x258666(0x340)])==null?void 0x0:_0x1b8d20[_0x258666(0x451)](_0x16d3a0,_0x3562cf);}['_transformRemoteChangesetByIMECache'](_0x237cca){var _0x1543e8=_0xa33034,_0x3f47cf,_0x11ab09,_0x1526c9;return(_0x1526c9=(_0x11ab09=(_0x3f47cf=this[_0x1543e8(0x45e)])[_0x1543e8(0x2c7)])==null?void 0x0:_0x11ab09[_0x1543e8(0x451)](_0x3f47cf,_0x237cca))!=null?_0x1526c9:_0x237cca;}[_0xa33034(0x41f)](_0x1f23a6){var _0x25fc66=_0xa33034,_0x183e94,_0x1b0ad6,_0xc6e022;return(_0xc6e022=(_0x1b0ad6=(_0x183e94=this[_0x25fc66(0x45e)])[_0x25fc66(0x39b)])==null?void 0x0:_0x1b0ad6['call'](_0x183e94,_0x1f23a6))!=null?_0xc6e022:_0x1f23a6;}[_0xa33034(0x1f5)](_0x53bef2){var _0x582836=_0xa33034,_0x1dbfae,_0x23173e;if(this[_0x582836(0x3e5)]===UniverType[_0x582836(0x36b)]){const {unitID:_0x36e470,mutations:_0x369b0a,memberID:_0x1ad214}=_0x53bef2,_0x573342=_0x369b0a[0x0]['params'][_0x582836(0x326)];Array[_0x582836(0x3cc)](_0x573342)&&_0x573342[_0x582836(0x271)]>0x0&&((_0x23173e=(_0x1dbfae=this[_0x582836(0x45e)])['onSyncEditingCollabCursor'])==null||_0x23173e[_0x582836(0x451)](_0x1dbfae,{'unitID':_0x36e470,'memberID':_0x1ad214,'textRanges':_0x573342}));}}['_updateLocalCache'](){var _0x32c23d=_0xa33034,_0x3c4e46;(_0x3c4e46=this[_0x32c23d(0x48b)])==null||_0x3c4e46['updateOfflineData'](this[_0x32c23d(0x259)],this[_0x32c23d(0x3e5)],this[_0x32c23d(0x434)],this[_0x32c23d(0x40f)]);}[_0xa33034(0x13c)](){var _0x5f1993=_0xa33034;return this[_0x5f1993(0x389)][_0x5f1993(0x136)](this[_0x5f1993(0x259)]);}[_0xa33034(0x42f)](){var _0x1e995c=_0xa33034;this[_0x1e995c(0x389)]['incrementRevOfUnit'](this[_0x1e995c(0x259)]);}[_0xa33034(0x1d6)](_0xb99731){var _0x25065e=_0xa33034,_0x2d3246;let _0x4e5158=this['_transformRemoteChangesetByIMECache'](_0xb99731);_0x4e5158=this[_0x25065e(0x41f)](_0x4e5158);const _0x4f00d9=sequenceExecute(_0x4e5158[_0x25065e(0x217)],this[_0x25065e(0x401)],{'fromCollab':!0x0});if(!_0x4f00d9[_0x25065e(0x265)])throw _0x4f00d9[_0x25065e(0x1c4)]instanceof Error?_0x4f00d9['error']:new Error((_0x2d3246=_0x4f00d9[_0x25065e(0x1c4)])!=null?_0x2d3246:_0x25065e(0x38b));this['_transformIMECache'](_0x4e5158),this['_transformStateCache'](_0x4e5158),this[_0x25065e(0x3b3)](_0xb99731),this[_0x25065e(0x406)](_0x4e5158),this['_syncEditingCollabCursor'](_0x4e5158),this[_0x25065e(0x42f)]();}};__name(_CollaborationState,'CollaborationState');let CollaborationState=_CollaborationState;var _a6;let SyncedState=(_a6=class extends CollaborationState{constructor(_0x2c55e7,_0x50f388,_0x3ef733,_0x7fc365,_0x3e8f30,_0x271416,_0xa22405,_0x327574,_0x190052,_0xa77fb8){var _0x3a4505=_0xa33034;super(_0x2c55e7,_0x50f388,null,[],_0x3ef733,_0xa22405,_0x271416,_0x7fc365,_0xa77fb8),__publicField(this,_0x3a4505(0x458),_0x3a4505(0x364)),(this[_0x3a4505(0x39e)]=_0x3e8f30,this[_0x3a4505(0x48c)]=_0x327574,this['_transformService']=_0x190052,this[_0x3a4505(0x254)]=_0xa77fb8);}[_0xa33034(0x244)](_0x937f5f){var _0x9190de=_0xa33034;const _0x461461=this[_0x9190de(0x39e)]['createInstance'](PendingState,this[_0x9190de(0x259)],this[_0x9190de(0x3e5)],[_0x937f5f],this[_0x9190de(0x45e)]);return _0x461461['_schedule'](),_0x461461['_updateLocalCache'](),_0x461461;}[_0xa33034(0x41c)](_0x46590a){var _0x495017=_0xa33034;if(this[_0x495017(0x438)](_0x46590a))return this[_0x495017(0x39e)][_0x495017(0x465)](FetchingMissState,this['unitID'],this[_0x495017(0x3e5)],null,[],null,[_0x46590a],this[_0x495017(0x45e)]);try{const _0x582deb=this['_transformService'][_0x495017(0x142)](_0x46590a,[EmptyMutationInfo]);if(isTransformMutationsWithChangesetSuccess(_0x582deb)){const {c1Prime:_0x1c50c4}=_0x582deb;return this[_0x495017(0x1d6)](_0x1c50c4),this;}throw _0x582deb['error'];}catch(_0x377091){return this['_logService'][_0x495017(0x1c4)](_0x377091),this[_0x495017(0x302)](!0x1);}}[_0xa33034(0x302)](_0x40a41a){var _0x131866=_0xa33034;return this[_0x131866(0x39e)][_0x131866(0x465)](ConflictState,this['unitID'],this[_0x131866(0x3e5)],null,[],this['_handler'],_0x40a41a);}[_0xa33034(0x2e2)](){var _0x4bf7ea=_0xa33034;throw new Error(_0x4bf7ea(0x19d));}['onRemoteRej'](){var _0x15419f=_0xa33034;throw new Error(_0x15419f(0x35b));}[_0xa33034(0x20e)](){return this;}[_0xa33034(0x3e7)](){var _0x1c0f9f=_0xa33034;return this[_0x1c0f9f(0x39e)][_0x1c0f9f(0x465)](OfflineState,this['unitID'],this[_0x1c0f9f(0x3e5)],null,[],this[_0x1c0f9f(0x45e)]);}[_0xa33034(0x2a5)](){return this;}[_0xa33034(0x3ee)](){throw new Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0xa33034(0x1a8)](){var _0x3c6174=_0xa33034;const _0x107b49=this[_0x3c6174(0x389)][_0x3c6174(0x136)](this['unitID']);return this['_handler'][_0x3c6174(0x319)]({'from':_0x107b49,'to':0x0}),this[_0x3c6174(0x39e)]['createInstance'](FetchingMissState,this[_0x3c6174(0x259)],this[_0x3c6174(0x3e5)],null,[],null,[],this[_0x3c6174(0x45e)]);}},__name(_a6,_0xa33034(0x294)),_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(_0x3ef441,_0xa66e57,_0x1b7ee8,_0x188a9b,_0x1e75eb,_0x3e2184,_0x3caa88,_0xa5075a,_0x2fe948,_0x38f05c,_0x52c2d2,_0xdf12e4,_0x40fad6,_0x41d365){var _0x2d35db=_0xa33034;super(_0x3ef441,_0xa66e57,null,_0x1b7ee8,_0x188a9b,_0x2fe948,_0x40fad6,_0x3e2184,_0x41d365),__publicField(this,_0x2d35db(0x458),_0x2d35db(0x380)),__publicField(this,'_scheduleCompleteTimestamp',null),__publicField(this,_0x2d35db(0x318),null),(this[_0x2d35db(0x39e)]=_0x1e75eb,this[_0x2d35db(0x172)]=_0x3caa88,this[_0x2d35db(0x48c)]=_0xa5075a,this[_0x2d35db(0x36a)]=_0x38f05c,this[_0x2d35db(0x158)]=_0x52c2d2,this[_0x2d35db(0x40d)]=_0xdf12e4);}[_0xa33034(0x244)](_0x2b8c2c){var _0x40748f=_0xa33034;return this[_0x40748f(0x40f)][_0x40748f(0x34a)](_0x2b8c2c),this['_updateLocalCache'](),this;}[_0xa33034(0x41c)](_0x4cab73){var _0x3a7ad0=_0xa33034;if(this[_0x3a7ad0(0x438)](_0x4cab73))return this['_clearScheduledTask'](),this[_0x3a7ad0(0x39e)][_0x3a7ad0(0x465)](FetchingMissState,this[_0x3a7ad0(0x259)],this['type'],null,this[_0x3a7ad0(0x40f)],null,[_0x4cab73],this[_0x3a7ad0(0x45e)]);try{const _0x2a36ab=this[_0x3a7ad0(0x158)][_0x3a7ad0(0x142)](_0x4cab73,this['_pendingMutations']);if(isTransformMutationsWithChangesetSuccess(_0x2a36ab)){const {c1Prime:_0x38ad91,m2Prime:_0x248cd4}=_0x2a36ab;this['_executeRemoteChangeset'](_0x38ad91);const _0x4265a1=this[_0x3a7ad0(0x39e)]['createInstance'](PendingState,this[_0x3a7ad0(0x259)],this[_0x3a7ad0(0x3e5)],_0x248cd4,this[_0x3a7ad0(0x45e)]);this['_clearScheduledTask']();const _0x464614=new Date()['getTime'](),_0x15c1f7=this[_0x3a7ad0(0x435)]?Math['max'](this[_0x3a7ad0(0x435)]-_0x464614,0x0):this[_0x3a7ad0(0x268)]();return _0x4265a1[_0x3a7ad0(0x12b)](_0x15c1f7),_0x4265a1;}throw _0x2a36ab['error'];}catch(_0x149c42){return this[_0x3a7ad0(0x48c)][_0x3a7ad0(0x1c4)](_0x149c42),this[_0x3a7ad0(0x302)](!0x1);}}['onRemoteAck'](){var _0x2fc53c=_0xa33034;throw new Error(_0x2fc53c(0x35e));}[_0xa33034(0x331)](){var _0x1a0dca=_0xa33034;throw new Error(_0x1a0dca(0x2b4));}[_0xa33034(0x20e)](){return this;}['toggleOffline'](){var _0x140d3f=_0xa33034;return this[_0x140d3f(0x329)](),this[_0x140d3f(0x39e)][_0x140d3f(0x465)](OfflineState,this[_0x140d3f(0x259)],this[_0x140d3f(0x3e5)],null,this[_0x140d3f(0x40f)],this[_0x140d3f(0x45e)]);}[_0xa33034(0x2a5)](){return this;}[_0xa33034(0x12b)](_0x2f927d){var _0x21eb3f=_0xa33034;const _0x4314f8=_0x2f927d!=null?_0x2f927d:this['_getSendChangesetTimeout']();this['_scheduleCompleteTimestamp']=new Date()[_0x21eb3f(0x232)]()+_0x4314f8,this[_0x21eb3f(0x318)]=setTimeout(()=>{var _0x2d6724=_0x21eb3f;this[_0x2d6724(0x329)]();let _0x3d19ee=null;switch(this[_0x2d6724(0x3e5)]){case UniverType[_0x2d6724(0x1d0)]:{_0x3d19ee=assembleSheetChangeset(this[_0x2d6724(0x40f)],this['unitID'],this['_univerInstanceService'],this['_revisionService'],this['_memberService']);break;}case UniverType[_0x2d6724(0x36b)]:{this['_pendingMutations'][_0x2d6724(0x460)](_0x54326e=>_0x54326e['id']===RichTextEditingMutation['id'])?_0x3d19ee=assembleDocChangeset(this[_0x2d6724(0x40f)],this['unitID'],this['_univerInstanceService'],this[_0x2d6724(0x389)],this[_0x2d6724(0x172)]):_0x3d19ee=assembleSheetChangeset(this[_0x2d6724(0x40f)],this['unitID'],this[_0x2d6724(0x40d)],this[_0x2d6724(0x389)],this[_0x2d6724(0x172)]);break;}default:throw new Error(_0x2d6724(0x443)+this[_0x2d6724(0x3e5)]+_0x2d6724(0x440));}const {changeset:_0x263252,pendingMutations:_0x2c47f9}=_0x3d19ee;this[_0x2d6724(0x45e)]['onSendChangeset'](_0x263252);const _0x151ff0=_0x2c47f9[_0x2d6724(0x271)]?this[_0x2d6724(0x39e)][_0x2d6724(0x465)](AwaitingWithPendingState,this[_0x2d6724(0x259)],this[_0x2d6724(0x3e5)],_0x263252,_0x2c47f9,this['_handler'],void 0x0):this[_0x2d6724(0x39e)]['createInstance'](AwaitingState,this[_0x2d6724(0x259)],this['type'],_0x263252,this['_handler']);_0x151ff0[_0x2d6724(0x2ab)](),this[_0x2d6724(0x45e)][_0x2d6724(0x46a)](this,_0x151ff0);},_0x4314f8);}[_0xa33034(0x268)](){var _0x337772=_0xa33034,_0x42d24b;const _0x33d402=this['_configService'][_0x337772(0x439)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x42d24b=_0x33d402==null?void 0x0:_0x33d402[_0x337772(0x1cb)])!=null?_0x42d24b:DEFAULT_SEND_CHANGESET_TIMEOUT;}[_0xa33034(0x3ee)](){var _0x3367e6=_0xa33034;throw new Error(_0x3367e6(0x1c5));}['_clearScheduledTask'](){var _0x5ede12=_0xa33034;this[_0x5ede12(0x318)]!=null&&(clearTimeout(this[_0x5ede12(0x318)]),this[_0x5ede12(0x318)]=null);}[_0xa33034(0x302)](_0x79efc9){var _0x5dac48=_0xa33034;return this[_0x5dac48(0x329)](),this['_injector'][_0x5dac48(0x465)](ConflictState,this[_0x5dac48(0x259)],this['type'],null,this[_0x5dac48(0x40f)],this[_0x5dac48(0x45e)],_0x79efc9);}},__name(_a7,_0xa33034(0x1cc)),_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(_0x2050be,_0x3f7437,_0x5ac4bc,_0x24444e,_0x30760b,_0x1c9ee0,_0x4e094e,_0x3c2b45,_0x4dc465,_0x42f283,_0x2483c5){var _0x3f09cb=_0xa33034;super(_0x2050be,_0x3f7437,_0x5ac4bc,[],_0x24444e,_0x4e094e,_0x42f283,_0x1c9ee0,_0x2483c5),__publicField(this,_0x3f09cb(0x458),_0x3f09cb(0x162)),__publicField(this,_0x3f09cb(0x220),0x0),__publicField(this,'_resendTimer'),__publicField(this,'_sender'),(this[_0x3f09cb(0x39e)]=_0x30760b,this['_logService']=_0x3c2b45,this['_transformService']=_0x4dc465);}[_0xa33034(0x244)](_0x41124f){var _0x1fdad2=_0xa33034;this[_0x1fdad2(0x329)]();const _0x5be1f2=this[_0x1fdad2(0x39e)]['createInstance'](AwaitingWithPendingState,this['unitID'],this[_0x1fdad2(0x3e5)],this[_0x1fdad2(0x434)],[_0x41124f],this[_0x1fdad2(0x45e)],this['_resendTimer']);return _0x5be1f2[_0x1fdad2(0x2ab)](),_0x5be1f2;}[_0xa33034(0x41c)](_0x2f9313){var _0x4f848f=_0xa33034;if(this[_0x4f848f(0x438)](_0x2f9313))return this[_0x4f848f(0x329)](),this[_0x4f848f(0x39e)][_0x4f848f(0x465)](FetchingMissState,this['unitID'],this[_0x4f848f(0x3e5)],this[_0x4f848f(0x434)],[],null,[_0x2f9313],this['_handler']);try{const _0x5a9ab1=this[_0x4f848f(0x158)][_0x4f848f(0x266)]([_0x2f9313],[this[_0x4f848f(0x434)]],!0x1);if(isTransformChangesetsSuccess(_0x5a9ab1)){const {c1Prime:_0x357561,c2Prime:_0xa64278}=_0x5a9ab1;this[_0x4f848f(0x1d6)](_0x357561[0x0]),_0xa64278[0x0]['baseRev']=this[_0x4f848f(0x13c)](),this['_clearScheduledTask']();const _0x42ea3a=this[_0x4f848f(0x39e)][_0x4f848f(0x465)](AwaitingState,this[_0x4f848f(0x259)],this[_0x4f848f(0x3e5)],_0xa64278[0x0],this[_0x4f848f(0x45e)]);return _0x42ea3a[_0x4f848f(0x2ab)](),_0x42ea3a;}return this[_0x4f848f(0x302)](!0x1);}catch(_0x2cb931){return this[_0x4f848f(0x48c)][_0x4f848f(0x1c4)](_0x2cb931),this['_onConflict'](!0x1);}}[_0xa33034(0x2e2)](_0x3b3abd){var _0xa1f152=_0xa33034;this['_clearScheduledTask']();const _0x137294=this[_0xa1f152(0x389)][_0xa1f152(0x136)](this['unitID']);if(_0x3b3abd[_0xa1f152(0x1ab)]<_0x137294-0x1)return this;if(this[_0xa1f152(0x438)](_0x3b3abd))return this[_0xa1f152(0x39e)][_0xa1f152(0x465)](FetchingMissState,this[_0xa1f152(0x259)],this['type'],null,[],this[_0xa1f152(0x434)],[],this[_0xa1f152(0x45e)]);this[_0xa1f152(0x42f)]();const _0x599fe=this[_0xa1f152(0x39e)][_0xa1f152(0x465)](SyncedState,this[_0xa1f152(0x259)],this[_0xa1f152(0x3e5)],this[_0xa1f152(0x45e)]);return _0x599fe[_0xa1f152(0x2ab)](),_0x599fe;}[_0xa33034(0x331)](_0xe51097){return this['_onConflict'](!!(_0xe51097!=null&&_0xe51097['isPermissionRej']));}[_0xa33034(0x20e)](_0x224076){var _0x29d493=_0xa33034;return this[_0x29d493(0x220)]>MAX_RETRY_TIMEOUT?this[_0x29d493(0x3e7)]():(this['_resendTimer']=createTimerObservable$(this[_0x29d493(0x220)],{'timeout':this['_resendTimeout'],'reqId':_0x224076[_0x29d493(0x25f)]}),this[_0x29d493(0x437)]=this['_resendTimer'][_0x29d493(0x479)](({reqId:_0x4431e2,timeout:_0x3a7997})=>{this['_resendWithTimeout'](_0x4431e2,_0x3a7997);}),this);}[_0xa33034(0x3e7)](){var _0x360202=_0xa33034;return this[_0x360202(0x329)](),this['_injector'][_0x360202(0x465)](OfflineState,this['unitID'],this[_0x360202(0x3e5)],this['_awaitingChangeset'],[],this['_handler']);}[_0xa33034(0x2a5)](){return this;}[_0xa33034(0x3ee)](){var _0x56682a=_0xa33034;this[_0x56682a(0x45e)][_0x56682a(0x40a)](this[_0x56682a(0x434)]);}['_onConflict'](_0x49c879){var _0x36281d=_0xa33034;return this['_clearScheduledTask'](),this[_0x36281d(0x39e)]['createInstance'](ConflictState,this[_0x36281d(0x259)],this[_0x36281d(0x3e5)],this['_awaitingChangeset'],[],this['_handler'],_0x49c879);}['_resendWithTimeout'](_0x2b7bf5,_0x21c41a){var _0x4f6a70=_0xa33034,_0x4d4b21;_0x2b7bf5===((_0x4d4b21=this[_0x4f6a70(0x434)])==null?void 0x0:_0x4d4b21['reqId'])&&(this[_0x4f6a70(0x3ee)](),this[_0x4f6a70(0x220)]=_0x21c41a===0x0?0x3e8:_0x21c41a*0x2);}['_clearScheduledTask'](){var _0x2fdfd3=_0xa33034,_0x593e8f;(_0x593e8f=this['_sender'])==null||_0x593e8f[_0x2fdfd3(0x3b5)](),this[_0x2fdfd3(0x220)]=0x0;}},__name(_a8,_0xa33034(0x2b0)),_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(_0x1ef53c,_0x472545,_0x1c2515,_0x212544,_0x4a6a74,_0x4c7dd1,_0x16b834,_0x47080c,_0x16d456,_0x474d80,_0x3ded77,_0x14bb30,_0x258650){var _0x63f353=_0xa33034;super(_0x1ef53c,_0x472545,_0x1c2515,_0x212544,_0x4a6a74,_0x16d456,_0x14bb30,_0x47080c,_0x258650),__publicField(this,_0x63f353(0x458),_0x63f353(0x1dc)),__publicField(this,'_resendTimeout',0x0),__publicField(this,_0x63f353(0x2cf)),__publicField(this,_0x63f353(0x437)),(this['_injector']=_0x16b834,this[_0x63f353(0x48c)]=_0x474d80,this[_0x63f353(0x158)]=_0x3ded77,this[_0x63f353(0x254)]=_0x258650,_0x4c7dd1&&(this[_0x63f353(0x2cf)]=_0x4c7dd1,this['_sender']=this['_resendTimer'][_0x63f353(0x479)](({reqId:_0x32724d,timeout:_0x22bba1})=>{var _0x218d88=_0x63f353;this[_0x218d88(0x44a)](_0x32724d,_0x22bba1);})));}[_0xa33034(0x244)](_0x4eb48d){var _0x23fc23=_0xa33034;return this[_0x23fc23(0x40f)]['push'](_0x4eb48d),this;}[_0xa33034(0x41c)](_0x3dcc1d){var _0x2007c9=_0xa33034;if(this[_0x2007c9(0x438)](_0x3dcc1d))return this[_0x2007c9(0x329)](),this[_0x2007c9(0x39e)][_0x2007c9(0x465)](FetchingMissState,this[_0x2007c9(0x259)],this[_0x2007c9(0x3e5)],this[_0x2007c9(0x434)],this[_0x2007c9(0x40f)],null,[_0x3dcc1d],this['_handler']);try{const _0x2aca23=this[_0x2007c9(0x158)][_0x2007c9(0x266)]([_0x3dcc1d],[this[_0x2007c9(0x434)]],!0x1);if(isTransformChangesetsSuccess(_0x2aca23)){const {c1Prime:_0x16e2bf,c2Prime:_0x2c4f4d}=_0x2aca23,_0x2f0332=this[_0x2007c9(0x158)][_0x2007c9(0x142)](_0x16e2bf[0x0],this[_0x2007c9(0x40f)]);if(isTransformMutationsWithChangesetSuccess(_0x2f0332)){const {c1Prime:_0x3f3490,m2Prime:_0x595a80}=_0x2f0332;return this['_executeRemoteChangeset'](_0x3f3490),_0x2c4f4d[0x0][_0x2007c9(0x2bf)]=this[_0x2007c9(0x13c)](),this['_clearScheduledTask'](),this[_0x2007c9(0x39e)][_0x2007c9(0x465)](AwaitingWithPendingState,this[_0x2007c9(0x259)],this[_0x2007c9(0x3e5)],_0x2c4f4d[0x0],_0x595a80,this['_handler'],void 0x0);}throw _0x2f0332[_0x2007c9(0x1c4)];}throw _0x2aca23[_0x2007c9(0x1c4)];}catch(_0x2c7f85){return this[_0x2007c9(0x48c)][_0x2007c9(0x1c4)](_0x2c7f85),this[_0x2007c9(0x302)](!0x1);}}[_0xa33034(0x2e2)](_0x34e141){var _0x59f624=_0xa33034;if(this[_0x59f624(0x329)](),this['_checkMissing'](_0x34e141))return this['_injector'][_0x59f624(0x465)](FetchingMissState,this[_0x59f624(0x259)],this[_0x59f624(0x3e5)],null,this[_0x59f624(0x40f)],this['_awaitingChangeset'],[],this[_0x59f624(0x45e)]);this[_0x59f624(0x42f)]();const _0x2a8d58=this[_0x59f624(0x39e)]['createInstance'](PendingState,this[_0x59f624(0x259)],this[_0x59f624(0x3e5)],this['_pendingMutations'],this[_0x59f624(0x45e)]);return _0x2a8d58[_0x59f624(0x12b)](),_0x2a8d58['_updateLocalCache'](),_0x2a8d58;}['onRemoteRej'](_0x11b877){var _0x1ee15d=_0xa33034;return this[_0x1ee15d(0x302)](!!(_0x11b877!=null&&_0x11b877[_0x1ee15d(0x15f)]));}[_0xa33034(0x20e)](_0x28cd3e){var _0x36888e=_0xa33034;return this['_resendTimeout']>MAX_RETRY_TIMEOUT?this[_0x36888e(0x3e7)]():(this['_resendTimer']=createTimerObservable$(this[_0x36888e(0x220)],{'timeout':this[_0x36888e(0x220)],'reqId':_0x28cd3e['reqId']}),this[_0x36888e(0x437)]=this['_resendTimer'][_0x36888e(0x479)](({reqId:_0x162684,timeout:_0x4004e6})=>{var _0x563bee=_0x36888e;this[_0x563bee(0x44a)](_0x162684,_0x4004e6);}),this);}[_0xa33034(0x3e7)](){var _0x4d230a=_0xa33034;return this[_0x4d230a(0x329)](),this[_0x4d230a(0x39e)][_0x4d230a(0x465)](OfflineState,this[_0x4d230a(0x259)],this[_0x4d230a(0x3e5)],this[_0x4d230a(0x434)],this['_pendingMutations'],this[_0x4d230a(0x45e)]);}[_0xa33034(0x2a5)](){return this;}[_0xa33034(0x3ee)](){var _0x2102bf=_0xa33034;this[_0x2102bf(0x45e)]['onSendChangeset'](this[_0x2102bf(0x434)]);}[_0xa33034(0x302)](_0x4f8cf6){var _0x4913dc=_0xa33034;return this[_0x4913dc(0x329)](),this[_0x4913dc(0x39e)][_0x4913dc(0x465)](ConflictState,this[_0x4913dc(0x259)],this[_0x4913dc(0x3e5)],null,this[_0x4913dc(0x40f)],this[_0x4913dc(0x45e)],_0x4f8cf6);}['_resendWithTimeout'](_0x413aab,_0x33ec0f){var _0x43d18d=_0xa33034,_0x3c37d7;_0x413aab===((_0x3c37d7=this[_0x43d18d(0x434)])==null?void 0x0:_0x3c37d7[_0x43d18d(0x25f)])&&(this[_0x43d18d(0x3ee)](),this[_0x43d18d(0x220)]=_0x33ec0f===0x0?0x3e8:_0x33ec0f*0x2);}['_clearScheduledTask'](){var _0x3a94a1=_0xa33034,_0x2235fe;(_0x2235fe=this[_0x3a94a1(0x437)])==null||_0x2235fe['unsubscribe'](),this['_resendTimeout']=0x0;}},__name(_a9,_0xa33034(0x408)),_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(_0x1f869b,_0x174429,_0x2d1e67,_0xa3e33c,_0x550df1,_0xc08a21=!0x1,_0x2bce5e,_0x193496,_0x3c6af4,_0x274001,_0x1cb79d,_0x99beea,_0x262e64){var _0x260552=_0xa33034;super(_0x1f869b,_0x174429,_0x2d1e67,_0xa3e33c,_0x550df1,_0x193496,_0x3c6af4,_0x274001,_0x262e64),__publicField(this,_0x260552(0x458),_0x260552(0x192)),(this['_isPermissionRej']=_0xc08a21,this['_permissionService']=_0x2bce5e,this['_localeService']=_0x1cb79d,this[_0x260552(0x242)]=_0x99beea,this[_0x260552(0x254)]=_0x262e64,this[_0x260552(0x366)](),this[_0x260552(0x1d7)](),this[_0x260552(0x1b1)]());}['appendMutation'](){return this;}[_0xa33034(0x41c)](){return this;}['onRemoteAck'](){return this;}[_0xa33034(0x331)](){return this;}['onRemoteRetry'](){return this;}[_0xa33034(0x3e7)](){return this;}['toggleOnline'](){return this;}[_0xa33034(0x3ee)](){var _0x15972b=_0xa33034;throw new Error(_0x15972b(0x2a9));}[_0xa33034(0x1d7)](){var _0x16416f=_0xa33034,_0x334e20;(_0x334e20=this['_localCacheService'])==null||_0x334e20[_0x16416f(0x258)](this[_0x16416f(0x259)],this[_0x16416f(0x3e5)],null,[]);}[_0xa33034(0x366)](){var _0x2a4814=_0xa33034;this[_0x2a4814(0x3fd)]?this[_0x2a4814(0x242)][_0x2a4814(0x2f9)]({'id':CollaborationUIEventId[_0x2a4814(0x1de)]}):this[_0x2a4814(0x242)][_0x2a4814(0x2f9)]({'id':CollaborationUIEventId[_0x2a4814(0x250)]});}[_0xa33034(0x1b1)](){var _0x422656=_0xa33034;this['_permissionService'][_0x422656(0x154)](new WorkbookEditablePermission(this['unitID'])['id'],!0x1);}},__name(_a10,_0xa33034(0x341)),_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);function _0x3cd8(){var _0x150ef1=['pauseCollaboration','__decorateClass','allowed','DomainRequestService','infoRsp','requestParams','runId','change$','CollaborationSocketService','__decorateParam$7','csRejEvent','originalMeta','retryConnectingInterval','size','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_unitInfo$','_key','sin','_sendingTimer','onMissingChangesets','fromCharCode','getRandomValues','_members','byteLength','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','UNIVER_UNKNOWN','POST','capture','onStarting','FileId','APPLY_REJECT','textRanges','words','_iv','_clearScheduledTask','repeat','randomBytes','SHA1','getUnit','socket\x20close','_config','__decorateClass$3','onRemoteRej','image/gif','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','origin','__defNormalProp','_oKey','Base','__Key__','patch','_telemetryService','delete','__creator','ERROR_EXCEED_SIZE','collaboratorID','UNIVER_PROJECT','onTransformState','ConflictState','reverse','deepClone','uniscriptRunEvent','requireEncBase64','PY_RUNTIME_SCRIPT_ERROR','COMPLETION_FINISHED','_nDataBytes','event$','push','getTypeOfUnitDisposed$','getUnitType','_onLocalMutation','SOCKET_FAILED','joinRsp','update','PERMISSION_REJ','prototype','members$','__decorateParam$e','_compressMutationService','_getUndoStack','4055dExmmM','src','encode','unknown','[SyncedState]:\x20received\x20rejection.','CollaborationSessionService','SHOULD_CLOSE_CONN','[PendingState]:\x20received\x20acknowledgement.','formatter','sid','clone','wsSessionTicketUrl','LICENSE_EXPORT_SIZE_EXCEEDED','synced','add','_showConflictNotification','getImageSourceCache','getTypeOfUnitAdded$','extractTargetFromFirstChangeset','_configService','UNIVER_DOC','newCsEvent','localeService','OPTIONAL','SUCCUSS','pad','listRoles','lib','\x20to\x20','_change$','stringify','userID','_httpService','map','CHANGESET_ACK','Univer','9305868vawUYf','_substituteUndoStack','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_getRedoStack','_waitForHeartbeatResponse','pending','_append','_getSessionTicket','UnitEmbedded','error$','c1Prime','avatar','_onRemoteRetry','SnapshotServerOverHTTPService','_revisionService','get','[CollaborationState]:\x20apply\x20error!','SerializableCipher','status$','JOIN','onTransformRemoteChangesetByIMECache\x20callback\x20is\x20not\x20added\x20yet.','JOIN_ROOM_PERMISSION_DENIED','append','set','collabSubmitChangesetUrl','_snapshotServerService','LIVESHARE_REQUEST_HOST','substr','__decorateClass$9','LIVESHARE_TERMINATE','HEARTBEAT_INTERVAL','enableSingleActiveInstanceLock','onTransformRemoteChangesetByStateCache','file','getCollabEntity$','_injector','sessionStatus','createDecryptor','onload','YUUMI_RATE_OVER_LIMIT','algo','process','keySize','_process','disposeWithMe','Encryptor','fetch_missing','SUBMIT_CHANGESET_TIMEOUT','COMPRESS_MUTATION_SEND','addHandlerCallback','_members$','_loadDoc','_HTTPService','onMissedChangesetFetched','PENDING','asObservable','_transformUndoredo','offline','unsubscribe','mixIn','SNAPSHOT_URL_KEY','_sessionStatus$','memberID','_xformMode','join','_singleActiveUnitService','JOINING','updateCollaborator','12azSeWC','awaitingChangeset','ws://127.0.0.1:8000/universer-api/comb/connect','readAsDataURL','stopTime','[UniverCollaborationClientPlugin]','_acknowledgedAwaitingChangeset','{fileID}','RoomMember','onSyncEditingCollabCursor','reconnect','dispose$','UPDATE_CURSOR','isArray','UNKNOWN_CMD','requireCore','NoPadding','COLLAB_SUBMIT_CHANGESET_URL','session.join-failed','msCrypto','objectType','BlockCipher','submit\x20changeset\x20error!','/universer-api/user/session-ticket','LIVESHARE_NEW_HOST','concat','_transformStack','_createInitialState','UNIVER_SLIDE','getInterceptPoints','PSEUDO_FETCH_MISSING_RESULT','CHANGESET_SHOULD_RETRY','getUnitStatus$','LICENSE_IMPORT_SIZE_EXCEEDED','/universer-api/authz','requireHmac','__decorateClass$4','INTERNAL_ERROR','type','MD5','toggleOffline','_keySchedule','_getDownloadEndpointURL','Pkcs7','_roomMembers','collaboration_new_changeset','target','resend','range','catch','_minBufferSize','padding','_mode','reduce','_toggleOnline','__publicField','APPLY_PERMISSION_DENIED','close','/new_changes','copyFileMeta','EvpKDF','_joinRoom','_isPermissionRej','_removeRoom','collaborators','CollaborationController','_commandService','_doProcessBlock','__decorateParam$6','_changesetReqId','override','_transformSelections','?size=','AwaitingWithPendingState','AuthServerService','onSendChangeset','getCollabEntity','INVALID_ARGUMENT','_univerInstanceService','joinEvent','_pendingMutations','_nRounds','randomUUID','setConfig','getUnitOnRev','post','_socketReady','setWaitCount','objectActions','_changesetSessionId','_state','__decorateParam$a','_instanceService','onRemoteChangeset','_invKeySchedule','put','_transformRemoteChangesetByStateCache','PasswordBasedCipher','LICENSE_MAX_UNITS_EXCEEDED','_shouldReportTelemetry','_updateState','waitForRoom$','__decorateParam','removeMember','136HqtXLN','__decorateParam$5','filter','_retryConnectingTimer','hasOwnProperty','kdf','Utf8','liveShareOperation','_incrementRevisionNumber','summaryChangesetSize','OTHER_CLIENTS_EDITING','key','[DataLoaderService]','_awaitingChangeset','_scheduleCompleteTimestamp','loadSheet','_sender','_checkMissing','getConfig','uploadFileServerUrl','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','session.room-cnt-exceeds','cmd','saveSheetBlock','_authzIoService','\x20in\x20_schedule.','_decreaseWaiting','_tryReconnect','[PendingState]:\x20unhandled\x20univer\x20type:\x20','sigBytes','updateCursorEvent','_createInitialStateImpl','name','MUTATION','/object/','_resendWithTimeout','csShouldRetryEvent','/resources','621aeuqHa','apply','onTransformSelections','finalize','call','_onRecvEvent','byteOffset','_initDependencies','__decorateClass$g','_undoRedoService','exports','status','transformStack\x20failed!','_tryEnsureSocket','/role','GLOBAL_ROOMS_CNT_EXCEEDS','/fetchmissing?from=','_handler','ERROR_IMAGE','every','_createSocket','image/bmp','assembleSheetChangeset','OfflineState','createInstance','_commentUpdate$','Latin1','params','authzUrl','onStateChange','session','onTransformRemoteChangesetByStateCache\x20callback\x20is\x20not\x20added\x20yet.','/allowed','YUUMI_URL_COL_OUT_OF_RANGE','_createHandler','complete','_map','MSG_FOR_ERROR','FileNameController','Hasher','createTimerObservable$','_onJoinRoomEvent','[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.','ticket','subscribe','values','UNRECOGNIZED','_sendHeartbeatTimer','_getAPIPrefix','/object','CipherParams','string','application/json','[CollaborationEntity]','_entities','entries','ENSURE_SNAPSHOT_EXECUTION','HELLO','_initUnitPermissionChange','readyForCollab','_createHelper','_onMessage','_localCacheService','_logService','_onUserJoin','/universer-api/stream/file/upload','createOnlineState','auth.needGotoLoginAlert','_schedule','_onRemoteACK','SNAPSHOT_HAS_BEEN_REMOVED','headers','body','_sendHeartbeat','CHANGESET_REJ','LICENSE_DISTRO_REJECTED','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_onUserLeave','getLocalCacheKey','getCurrentRevOfUnit','ciphertext','enc','objectID','_userManagerService','fetchMissingChangesets','_getCurrentRevision','getUnitId','serializeCombRequest','_handlerCallback','_queuedRemoteChangesets','fetching\x20missing\x20changesets\x20from\x20','transformMutationsWithChangeset','_createHmacHelper','__decorateClass$f','univer-pro.collaboration-client.single-active-unit-service','crypto','&source=','title','loadOfflineData','_substituteRedoStack','rev','YUUMI_SUBSCRIPTION_NOT_FOUND','_localeService','_applyRemoteChangeset','_prevBlock','fetchThroughInterceptors','BASE64','_collaborationSessionService','UNIVER_COLLABORATION_CLIENT_PLUGIN','updatePermissionPoint','requireSession','encodeURIComponent','disableLocalCache','_transformService','splice','onTransformIME','getMember','UNKNOWN_CODE','generateSubmitChangesPath','reject','isPermissionRej','OpenSSL','_transitionLocked','awaiting','blockSize','__decorateParam$9','getFocusedUnit','USERS_LEAVE','function','_clearUndo','then','_keyPriorReset','/rev/','socket\x20open.','_DEC_XFORM_MODE','action','m2Prime','rng','interceptor','_memberService','[CollaborationSession]','_collaborationPaused','json','_initRequestHeader','pkcs7Padding','slice','/universer-api/snapshot','next','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','createCollaborator','responseType','ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=','_telemetryInfo','not_collab','_socket','saveSnapshot','60eddzvr','_onConnectionOpen','_transformStateCache','_iKey','batchAllowed','_state$','RECV','ALREADY_EXISTS','requireSha1','FAIL','session.room-full','_submitChangeset','resolve','SNAPSHOT_INVALID_SNAPSHOT','TOO_MANY_REQUESTS','conflict','SUBMIT_CHANGESET','_getCtorByUniverType','AWAITING_WITH_PENDING','Base64','readInt32LE','entityInit$','unitId','_onCombEvent','_hash','addImageSourceCache','[SyncedState]:\x20received\x20acknowledgement.','JOIN_ROOM_FULL','__decorateParam$1','charCodeAt','_getSignURL','_startTelemetryCollaborationNewChangeset','message$','initWorkbookPermissionChange','sessionTicket','replace','saveImage','fetchMiss','startTime','extend','revision','SOCKET_FAILED_RETRY','/collaborator','encryptBlock','_fetchMissChangesets','__decorateClass$h','_disableEditing','COLLAB_WEB_SOCKET_URL','CollaborationUIEventService','RETRY_CONNECTING_MAX_COUNT','commentUpdateEvent','fromCollab','UNAUTHENTICATED','listCollaborators','workbook','Undefined','LOCAL_CACHE_INTERVAL','_http','onCommentUpdate','UnitSnapshot','setCurrentUser','2802ElczxP','HEARTBEAT','CollaborationImageIoService','_startCollaboration','error','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','LIVESHARE_OPERATION','collaboration-client.config','execute','transformUndoRedo','_snapshotService','sendChangesetTimeout','PendingState','$super','indexOf','COMPRESS_MUTATION_APPLY','UNIVER_SHEET','session.room-not-exists','x-univer-host','objects','PermissionService','includes','_executeRemoteChangeset','_clearLocalCache','getAttachHeader','connection\x20error','_roomCreated$','snapshot','awaiting_with_pending','shouldCloseConn','PERMISSION_DENIED','unitId\x20is\x20not\x20found','findIndex','CLOSE_ROOM','__decorateClass$d','741160FYJpWN','BufferedBlockAlgorithm','_onOffline','bind','collaMsg','_ENC_XFORM_MODE','APPLY_DUPLICATED','_undoStacks','loadDoc','open$','_updateStatus','BlockCipherMode','_throwTelemetryCollaborationNewChangeset','buffer','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','min','__decorateParam$4','_initMergeInterceptor','_syncEditingCollabCursor','_retryCount','mode','StreamCipher','getSheetBlock','toString','getDefaultExportFromCjs','_collaborationTimeoutTimer','_registerDependencies','salt','INGEST','_rescheduleHeartbeat','_candidateSocket','eventID','unitInfo$','NO_OTHER_CLIENTS_EDITING','_commentService','__decorateClass$e','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','_lockTransition','[CollaborationUndoRedoService]','Malformed\x20UTF-8\x20data','DocCollaborationEntity','collaboration-client.local-cache-service','onCommandExecuted','onRemoteRetry','__decorateClass$a','clear','reset','_unitID','debug','max','[OfflineState]:\x20received\x20acknowledgement.','leaveEvent','mutations','onLocalMutation','_initCloseConn','/unit/','Cipher','/universer-api/oidc/authpage','__decorateClass$i','terminateWithError','PERSON','_resendTimeout','state$','refreshPermission','CBC','_hasher','getAllMembers','editing\x20status\x20changed\x20to','__decorateClass$6','_loadSheet','onlyLocal','EXCHANGE_SIGN_URL_SERVER_URL_KEY','searchParams','transformSelections','CollaborationEntity','_event$','duration','getResourcesRequest','format','getTime','_status$','__decorateClass$c','OFFLINE','location','CHANGESET_REVISION_CONFILICT','_doCryptBlock','NOT_COLLAB','close$','search','init','SYNCED','subject','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','failed\x20to\x20apply\x20missed\x20changesets!','_onRemoteRejected','_collaborationUIEventService','__esModule','appendMutation','handleCloseConn','parse','members','state','AWAITING','roomInfos','_stopTelemetryCollaborationNewChangeset','forEach','__decorateClass$7','downloadEndpointUrl','unit-cache-','CONFLICT','find','_onFetchMissResult','_replayCachedMutations','localCacheService','unsafeStringify','_sessions','_collabSessionService','updateOfflineData','unitID','OTHER_CLIENT_EDITING','getRoom','online$','__decorateParam$i','_reverseMap','reqId','3194246yeEfLq','__decorateClass$5','hasher','assembleDocChangeset','IDLE','result','transformChangesets','HttpExport','_getSendChangesetTimeout','HEARTBEAT_TIMEOUT','NEW_CHANGESETS','iterations','LIVESHARE_FETCH_OPERATIONS','send','focused$','getCurrentUser','26845fPGhSv','length','csAckEvent','getMemberID','create','default','ceil','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','has','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','processBlock','encrypt','image/jpeg','_getLoginPath','getImage','_doReset','UPDATE_PERMISSION_OBJ','/universer-api/uniscript','&assign=','snapshotServerUrl','updateMember','_doFinalize','_parse','NOT_FOUND','href','FETCH_MISSING','_permissionService','APPLY_REVISION_CONFILICT','_clearHeartbeatTimer','getCurrentSelections','cfg','UniverCollaborationClientPlugin','CollaborationSession','_emitMembers','actions','_unlockTransition','SyncedState','editingUnit','url','clamp','_toggleOffline','hostname','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','sessionStatus$','People','routeKey','LEAVE','getOwnPropertyDescriptor','_data','_clearRedo','USERS_ENTER','AES','unpad','toggleOnline','_sheetTransformSelectionsService','createEncryptor','AuthzIoHttpService','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','dispose','_updateLocalCache','ONLINE','[CollaborationSessionService]','decryptBlock','COMMENT_UPDATE','AwaitingState','_socket$','selections','xorBlock','[PendingState]:\x20received\x20rejection.','[OfflineState]:\x20received\x20rejection.','__decorateParam$3','pluginName','_listenToNetworkCondition','getValue','now','image/jpg','executeCommand','univer-pro.collaboration-client.network-condition.service','JOIN_ROOM_FAILED','baseRev','ivSize','data','ERROR_IMAGE_TYPE','__decorateParam$c','_eventService','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','charAt','onTransformRemoteChangesetByIMECache','pipe','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','generateRandomId','floor','__decorateClass$8','equals','/-/object/-/batch_allowed','_resendTimer','changesets','code','_replaceFileID','signUrlServerUrl','_getAPIPrefixPath','7628XkodEs','[FetchMissState]','HttpImport','_clearCollaborationTimeoutTimer','__decorateParam$2','_exhaustRemoteChangesetQueue','c2Prime','_imageSourceCache','requireEvpkdf','UNDEFINED','Could\x20not\x20dynamically\x20require\x20\x22','random','defineProperty','onRemoteAck','_socketService','compose','/block/','requireAes','_onConnectionFailed','_getUploadFileURL','compute','235330tUpwgC','_type','_timeoutTimer','WordArray','enableOfflineEditing','_remoteChangesetQueue','list','__decorateClass$2','_networkConditionService','_cipher','decrypt','createSocket','_init','liveShareNewHost','_entityInit$','emitEvent','_waitCount','setShowComponents','\x0aAfter:\x20','_socketMessageSubscription','registerHTTPInterceptor','requireLibTypedarrays','Decryptor','from','_onConflict','Error\x20on\x20receiving\x20event','telemetry\x20info\x20is\x20not\x20initialized','session.room-permission-denied'];_0x3cd8=function(){return _0x150ef1;};return _0x3cd8();}var _a11;let OfflineState=(_a11=class extends CollaborationState{constructor(_0x51b1f7,_0x415a1e,_0x413750,_0x447c21,_0x1c56f9,_0x39d546,_0x42dd2a,_0x392cbe,_0x253422,_0x542e32){var _0x33a9c4=_0xa33034;super(_0x51b1f7,_0x415a1e,_0x413750,_0x447c21,_0x1c56f9,_0x392cbe,_0x253422,_0x42dd2a,_0x542e32),__publicField(this,_0x33a9c4(0x458),_0x33a9c4(0x3b4)),this[_0x33a9c4(0x39e)]=_0x39d546;}[_0xa33034(0x244)](_0x4ad2e6){var _0x19857e=_0xa33034;return this['_pendingMutations'][_0x19857e(0x34a)](_0x4ad2e6),this[_0x19857e(0x2ab)](),this;}['onRemoteChangeset'](_0x58b0d2){throw new Error('[OfflineState]:\x20received\x20changeset.');}[_0xa33034(0x2e2)](){var _0x1984e3=_0xa33034;throw new Error(_0x1984e3(0x215));}[_0xa33034(0x331)](){var _0x4102cb=_0xa33034;throw new Error(_0x4102cb(0x2b5));}[_0xa33034(0x20e)](){return this;}[_0xa33034(0x3e7)](){return this;}[_0xa33034(0x2a5)](){var _0x2ebf26=_0xa33034;const {_injector:_0x96b29d,_pendingMutations:_0x3cb3aa,_awaitingChangeset:_0x143b2f,unitID:_0x14ec57,_handler:_0x58c04e,type:_0x4d2014}=this,_0x2e416b=createOnlineState(_0x96b29d,_0x14ec57,_0x4d2014,_0x143b2f,_0x3cb3aa,_0x58c04e);return _0x2e416b instanceof PendingState?_0x2e416b[_0x2ebf26(0x12b)]():(_0x2e416b instanceof AwaitingWithPendingState||_0x2e416b instanceof AwaitingState)&&_0x2e416b[_0x2ebf26(0x3ee)](),_0x2e416b;}[_0xa33034(0x3ee)](){var _0x368c83=_0xa33034;throw new Error(_0x368c83(0x314));}},__name(_a11,_0xa33034(0x464)),_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(_0x469f3b,_0xc7776f,_0x5cadcb,_0x4e0fb4,_0x43aebe,_0x5ca678,_0x380c34,_0x9e4589,_0x7ef66f,_0x4e1ccc,_0x4ebec7,_0x31b9e7,_0x45ce66,_0x1a2e34){var _0x26ce62=_0xa33034;super(_0x469f3b,_0xc7776f,_0x5cadcb,_0x4e0fb4,_0x380c34,_0x4ebec7,_0x31b9e7,_0x7ef66f,_0x1a2e34),__publicField(this,'status',_0x26ce62(0x3a9)),(this[_0x26ce62(0x3c5)]=_0x43aebe,this['_queuedRemoteChangesets']=_0x5ca678,this['_injector']=_0x9e4589,this[_0x26ce62(0x48c)]=_0x4e1ccc,this[_0x26ce62(0x158)]=_0x45ce66,this['localCacheService']=_0x1a2e34);}['onMissedChangesetFetched'](_0x1774db){var _0x5a6e80=_0xa33034;try{const _0xd5dd9e=[..._0x1774db,...this[_0x5a6e80(0x140)]],_0x15f635=[this[_0x5a6e80(0x434)]||this['_acknowledgedAwaitingChangeset']]['filter'](_0xd52162=>!!_0xd52162);let _0x16518c,_0x46e498;if(_0x15f635[_0x5a6e80(0x271)]){const _0x42c69d=this[_0x5a6e80(0x158)][_0x5a6e80(0x266)](_0xd5dd9e,_0x15f635,!0x1);if(!isTransformChangesetsSuccess(_0x42c69d))throw _0x42c69d['error'];_0x16518c=_0x42c69d[_0x5a6e80(0x385)],_0x46e498=_0x42c69d[_0x5a6e80(0x2db)];}else _0x16518c=_0xd5dd9e,_0x46e498=[];let _0x49c277=this[_0x5a6e80(0x40f)];_0x16518c[_0x5a6e80(0x24c)](_0x23c0e0=>{var _0x2f0eef=_0x5a6e80;let _0x16c0aa;if(_0x49c277[_0x2f0eef(0x271)]){const _0x1e3720=this[_0x2f0eef(0x158)][_0x2f0eef(0x142)](_0x23c0e0,_0x49c277);if(!isTransformMutationsWithChangesetSuccess(_0x1e3720))throw _0x1e3720[_0x2f0eef(0x1c4)];_0x16c0aa=_0x1e3720[_0x2f0eef(0x385)],_0x49c277=_0x1e3720['m2Prime'];}else _0x16c0aa=_0x23c0e0;this[_0x2f0eef(0x1d6)](_0x16c0aa);}),this[_0x5a6e80(0x3c5)]&&this[_0x5a6e80(0x42f)](),this[_0x5a6e80(0x434)]&&_0x46e498['length']&&(_0x46e498[0x0][_0x5a6e80(0x2bf)]=this[_0x5a6e80(0x13c)]());let _0x53cc1c;if(this['_awaitingChangeset']&&_0x49c277[_0x5a6e80(0x271)]!==0x0)_0x53cc1c=this[_0x5a6e80(0x39e)]['createInstance'](AwaitingWithPendingState,this[_0x5a6e80(0x259)],this[_0x5a6e80(0x3e5)],_0x46e498[0x0],_0x49c277,this[_0x5a6e80(0x45e)],void 0x0);else{if(this['_awaitingChangeset']&&_0x49c277[_0x5a6e80(0x271)]===0x0)_0x46e498[0x0]['baseRev']=this['_getCurrentRevision'](),_0x53cc1c=this[_0x5a6e80(0x39e)][_0x5a6e80(0x465)](AwaitingState,this[_0x5a6e80(0x259)],this[_0x5a6e80(0x3e5)],_0x46e498[0x0],this[_0x5a6e80(0x45e)]);else{if(_0x49c277['length']!==0x0){const _0x390a99=this['_injector'][_0x5a6e80(0x465)](PendingState,this['unitID'],this[_0x5a6e80(0x3e5)],_0x49c277,this[_0x5a6e80(0x45e)]);_0x390a99[_0x5a6e80(0x12b)](),_0x53cc1c=_0x390a99;}else _0x53cc1c=this[_0x5a6e80(0x39e)][_0x5a6e80(0x465)](SyncedState,this['unitID'],this[_0x5a6e80(0x3e5)],this[_0x5a6e80(0x45e)]);}}return _0x53cc1c[_0x5a6e80(0x2ab)](),_0x53cc1c;}catch(_0x3db05e){return this[_0x5a6e80(0x48c)][_0x5a6e80(0x1c4)](_0x5a6e80(0x2d6),_0x5a6e80(0x240),_0x3db05e),this[_0x5a6e80(0x39e)][_0x5a6e80(0x465)](ConflictState,this['unitID'],this[_0x5a6e80(0x3e5)],this[_0x5a6e80(0x434)],this[_0x5a6e80(0x40f)],this[_0x5a6e80(0x45e)],!0x1);}}[_0xa33034(0x3ee)](){var _0x4e87f6=_0xa33034;throw new Error(_0x4e87f6(0x279));}['appendMutation'](_0x2d85d6){return this['_pendingMutations']['push'](_0x2d85d6),this;}['onRemoteChangeset'](_0x4f44ca){var _0x44bd63=_0xa33034;return this['_queuedRemoteChangesets'][_0x44bd63(0x34a)](_0x4f44ca),this;}[_0xa33034(0x2e2)](_0x4a559a){var _0x4eebe1=_0xa33034;if(this[_0x4eebe1(0x434)])return this[_0x4eebe1(0x3c5)]=this['_awaitingChangeset'],this['_awaitingChangeset']=null,this;throw new Error(_0x4eebe1(0x31e));}[_0xa33034(0x331)](_0x413551){var _0x572e32=_0xa33034;return this[_0x572e32(0x302)](!!(_0x413551!=null&&_0x413551[_0x572e32(0x15f)]));}[_0xa33034(0x20e)](){return this;}[_0xa33034(0x3e7)](){var _0x1c4641=_0xa33034;return this[_0x1c4641(0x39e)][_0x1c4641(0x465)](OfflineState,this['unitID'],this['type'],this[_0x1c4641(0x434)],this['_pendingMutations'],this[_0x1c4641(0x45e)]);}[_0xa33034(0x2a5)](){return this;}[_0xa33034(0x302)](_0x4d7663){var _0x52da05=_0xa33034;return this[_0x52da05(0x39e)][_0x52da05(0x465)](ConflictState,this[_0x52da05(0x259)],this['type'],this[_0x52da05(0x434)],this['_pendingMutations'],this['_handler'],_0x4d7663);}},__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(_0x376668,_0x32356d,_0x12965e,_0x5cc0bb,_0x2ab022,_0x31200e){var _0x5af3eb=_0xa33034;return _0x5cc0bb&&_0x2ab022['length']?_0x376668['createInstance'](AwaitingWithPendingState,_0x32356d,_0x12965e,_0x5cc0bb,_0x2ab022,_0x31200e,void 0x0):_0x5cc0bb?_0x376668[_0x5af3eb(0x465)](AwaitingState,_0x32356d,_0x12965e,_0x5cc0bb,_0x31200e):_0x2ab022['length']?_0x376668[_0x5af3eb(0x465)](PendingState,_0x32356d,_0x12965e,_0x2ab022,_0x31200e):_0x376668['createInstance'](SyncedState,_0x32356d,_0x12965e,_0x31200e);}__name(createOnlineState,_0xa33034(0x48f));var __defProp$c=Object[_0xa33034(0x2e1)],__getOwnPropDesc$c=Object[_0xa33034(0x29f)],__decorateClass$c=__name((_0x38bf0a,_0xff3c41,_0x3e7728,_0x4f0087)=>{var _0x40f4cb=_0xa33034;for(var _0x77ebd7=_0x4f0087>0x1?void 0x0:_0x4f0087?__getOwnPropDesc$c(_0xff3c41,_0x3e7728):_0xff3c41,_0x41d3ab=_0x38bf0a[_0x40f4cb(0x271)]-0x1,_0x3833b3;_0x41d3ab>=0x0;_0x41d3ab--)(_0x3833b3=_0x38bf0a[_0x41d3ab])&&(_0x77ebd7=(_0x4f0087?_0x3833b3(_0xff3c41,_0x3e7728,_0x77ebd7):_0x3833b3(_0x77ebd7))||_0x77ebd7);return _0x4f0087&&_0x77ebd7&&__defProp$c(_0xff3c41,_0x3e7728,_0x77ebd7),_0x77ebd7;},_0xa33034(0x234)),__decorateParam$c=__name((_0x45771f,_0x4b1924)=>(_0x9d9dcb,_0xd937d2)=>_0x4b1924(_0x9d9dcb,_0xd937d2,_0x45771f),_0xa33034(0x2c3)),_a13;let CollaborationEntity=(_a13=class extends RxDisposable{constructor(_0x477af8,_0x440187,_0x566d69,_0x35f40b,_0x438c47,_0x201580,_0x42e301,_0x250138,_0x3b1ed3,_0x5b2a39,_0x1c0bcd,_0x34f653,_0x3c250c){var _0x4e477d=_0xa33034;super(),__publicField(this,_0x4e477d(0x188),new BehaviorSubject(null)),__publicField(this,_0x4e477d(0x221),this['_state$'][_0x4e477d(0x3b2)]()),__publicField(this,_0x4e477d(0x419)),__publicField(this,_0x4e477d(0x174),!0x1),__publicField(this,_0x4e477d(0x418),''),__publicField(this,'_changesetReqId',0x0),__publicField(this,'status$',this[_0x4e477d(0x221)][_0x4e477d(0x2c8)](_0xf0a054(_0x4c377a=>_0x4c377a?_0x4c377a[_0x4e477d(0x458)]:CollaborationStatus[_0x4e477d(0x235)]),shareReplay(0x1))),__publicField(this,_0x4e477d(0x161),!0x1),__publicField(this,_0x4e477d(0x2ef),[]),(this['unitID']=_0x477af8,this[_0x4e477d(0x46b)]=_0x440187,this['_type']=_0x566d69,this['_injector']=_0x35f40b,this[_0x4e477d(0x355)]=_0x438c47,this['_localeService']=_0x201580,this[_0x4e477d(0x389)]=_0x42e301,this[_0x4e477d(0x2c4)]=_0x250138,this[_0x4e477d(0x48c)]=_0x3b1ed3,this[_0x4e477d(0x401)]=_0x5b2a39,this[_0x4e477d(0x28a)]=_0x1c0bcd,this[_0x4e477d(0x3bc)]=_0x34f653,this[_0x4e477d(0x48b)]=_0x3c250c);}get[_0xa33034(0x248)](){var _0x38d517=_0xa33034;return this[_0x38d517(0x419)];}async[_0xa33034(0x23c)](){var _0x1fd878=_0xa33034;if(this[_0x1fd878(0x248)])throw new Error(_0x1fd878(0x31f));await this[_0x1fd878(0x2f6)]();}[_0xa33034(0x306)](){var _0x30439d=_0xa33034;return this[_0x30439d(0x174)]=!0x0,toDisposable(()=>{var _0x36fdf2=_0x30439d;this['_collaborationPaused']=!0x1,this[_0x36fdf2(0x2da)]();});}[_0xa33034(0x218)](_0x4a1838){this['_onLocalMutation'](_0x4a1838);}[_0xa33034(0x423)](_0x32dc30){var _0x11dd68=_0xa33034;this[_0x11dd68(0x419)]=_0x32dc30,this[_0x11dd68(0x188)][_0x11dd68(0x17a)](_0x32dc30);}async['_init'](){var _0x5070a7=_0xa33034,_0x174dc7;this['_updateState'](await this[_0x5070a7(0x3da)]()),this[_0x5070a7(0x3bc)]&&((_0x174dc7=this[_0x5070a7(0x3bc)])==null||_0x174dc7[_0x5070a7(0x295)](this['unitID']),this[_0x5070a7(0x3a7)](this[_0x5070a7(0x3bc)][_0x5070a7(0x3df)](this['unitID'])[_0x5070a7(0x479)](_0x40fb9c=>{var _0x1c4e07=_0x5070a7;this['_logService'][_0x1c4e07(0x213)](_0x1c4e07(0x482),_0x1c4e07(0x226),_0x40fb9c),_0x40fb9c===UnitStatus[_0x1c4e07(0x431)]?(this[_0x1c4e07(0x2c4)][_0x1c4e07(0x2f9)]({'id':CollaborationUIEventId['OTHER_CLIENT_EDITING']}),this[_0x1c4e07(0x28a)][_0x1c4e07(0x154)](new WorkbookEditablePermission(this[_0x1c4e07(0x259)])['id'],!0x1),this[_0x1c4e07(0x28a)][_0x1c4e07(0x2fb)](!0x1)):(this['_permissionService'][_0x1c4e07(0x154)](new WorkbookEditablePermission(this['unitID'])['id'],!0x0),this[_0x1c4e07(0x28a)][_0x1c4e07(0x2fb)](!0x0));})));let _0x2bacb7=!0x1;return this[_0x5070a7(0x3a7)](this[_0x5070a7(0x46b)][_0x5070a7(0x29b)]['subscribe'](_0x44f67f=>{var _0x42af26=_0x5070a7;_0x44f67f===SessionStatus['ONLINE']?this[_0x42af26(0x3f5)](_0x2bacb7):_0x44f67f===SessionStatus[_0x42af26(0x235)]&&(_0x2bacb7=!0x0,this[_0x42af26(0x298)]());})),this['disposeWithMe'](this[_0x5070a7(0x46b)][_0x5070a7(0x349)][_0x5070a7(0x479)](_0x31bc0a=>{var _0x1219c=_0x5070a7;try{switch(_0x31bc0a[_0x1219c(0x202)]){case CollaborationEvent[_0x1219c(0x26a)]:{this['_onRemoteChangeset'](parseProtocolChangeset(_0x31bc0a['data']));break;}case CollaborationEvent[_0x1219c(0x379)]:{this[_0x1219c(0x12c)](_0x31bc0a[_0x1219c(0x2c1)]);break;}case CollaborationEvent[_0x1219c(0x131)]:{this[_0x1219c(0x241)]();break;}case CollaborationEvent[_0x1219c(0x3de)]:{this[_0x1219c(0x387)](_0x31bc0a[_0x1219c(0x2c1)]);break;}case CollaborationEvent['PSEUDO_FETCH_MISSING_RESULT']:{this[_0x1219c(0x252)](_0x31bc0a[_0x1219c(0x2c1)][_0x1219c(0x2d0)][_0x1219c(0x378)](_0x2f6805=>parseProtocolChangeset(_0x2f6805)));break;}case CollaborationEvent[_0x1219c(0x351)]:{this[_0x1219c(0x241)]({'isPermissionRej':!0x0});break;}case CollaborationEvent['UNISCRIPT_RUN']:break;}}catch(_0x3474c9){throw console[_0x1219c(0x1c4)](_0x1219c(0x303),_0x3474c9),_0x3474c9;}})),this['_state'];}[_0xa33034(0x293)](){var _0x386c96=_0xa33034;this[_0x386c96(0x161)]=!0x1;}[_0xa33034(0x208)](){var _0x238b0d=_0xa33034;if(this[_0x238b0d(0x161)])throw new Error(_0x238b0d(0x477));this[_0x238b0d(0x161)]=!0x0;}[_0xa33034(0x34d)](_0x4cf29a){var _0x3c6bbd=_0xa33034;this[_0x3c6bbd(0x208)](),this[_0x3c6bbd(0x423)](this[_0x3c6bbd(0x419)][_0x3c6bbd(0x244)](_0x4cf29a)),this['_unlockTransition']();}['_onRemoteChangeset'](_0x493d38){var _0x4a3aae=_0xa33034;if(!(_0x493d38[_0x4a3aae(0x1ab)]<=this[_0x4a3aae(0x389)][_0x4a3aae(0x136)](this[_0x4a3aae(0x259)]))){if(this[_0x4a3aae(0x174)]){this[_0x4a3aae(0x2ef)][_0x4a3aae(0x34a)](_0x493d38);return;}this['_applyRemoteChangeset'](_0x493d38);}}['_exhaustRemoteChangesetQueue'](){var _0xf8cd71=_0xa33034;this['_remoteChangesetQueue'][_0xf8cd71(0x24c)](_0x1ddf1b=>this[_0xf8cd71(0x14e)](_0x1ddf1b)),this[_0xf8cd71(0x2ef)]=[];}[_0xa33034(0x14e)](_0xc0ee19){var _0x52bc3a=_0xa33034;const _0x52712c=this['_compressMutationService'][_0x52bc3a(0x171)][_0x52bc3a(0x150)](this['_compressMutationService']['interceptor'][_0x52bc3a(0x3dc)]()[_0x52bc3a(0x1cf)])(_0xc0ee19['mutations'],null)||_0xc0ee19[_0x52bc3a(0x217)],_0x4bd292={..._0xc0ee19,'mutations':_0x52712c};this['_lockTransition'](),this[_0x52bc3a(0x423)](this[_0x52bc3a(0x419)][_0x52bc3a(0x41c)](_0x4bd292)),this[_0x52bc3a(0x293)]();}[_0xa33034(0x12c)](_0x838fdd){var _0x4e3879=_0xa33034;this[_0x4e3879(0x208)](),this[_0x4e3879(0x423)](this[_0x4e3879(0x419)][_0x4e3879(0x2e2)](_0x838fdd)),this[_0x4e3879(0x293)]();}[_0xa33034(0x241)](_0x482418){var _0x40da9a=_0xa33034;this[_0x40da9a(0x208)](),this['_updateState'](this[_0x40da9a(0x419)][_0x40da9a(0x331)](_0x482418)),this[_0x40da9a(0x293)]();}['_onRemoteRetry'](_0x47ffa2){var _0x53f021=_0xa33034;this['_lockTransition'](),this[_0x53f021(0x423)](this[_0x53f021(0x419)][_0x53f021(0x20e)](_0x47ffa2)),this[_0x53f021(0x293)]();}['_onFetchMissResult'](_0x256c39){var _0x3b4799=_0xa33034;if(!(this[_0x3b4799(0x419)]instanceof FetchingMissState))throw new TypeError(_0x3b4799(0x333));const _0x305ecd=_0x256c39[_0x3b4799(0x378)](_0x211669=>{var _0x4a345b=_0x3b4799;const _0x27f18f=this['_compressMutationService'][_0x4a345b(0x171)][_0x4a345b(0x150)](this['_compressMutationService'][_0x4a345b(0x171)][_0x4a345b(0x3dc)]()['COMPRESS_MUTATION_APPLY'])(_0x211669[_0x4a345b(0x217)],null)||_0x211669[_0x4a345b(0x217)];return{..._0x211669,'mutations':_0x27f18f};});this[_0x3b4799(0x208)](),this['_updateState'](this['_state'][_0x3b4799(0x3b0)](_0x305ecd)),this['_unlockTransition']();}[_0xa33034(0x298)](){var _0x4f44d3=_0xa33034;this[_0x4f44d3(0x208)](),this[_0x4f44d3(0x423)](this[_0x4f44d3(0x419)][_0x4f44d3(0x3e7)]()),this[_0x4f44d3(0x293)]();}[_0xa33034(0x3f5)](_0x2ab6e8=!0x1){var _0x548272=_0xa33034;this[_0x548272(0x208)](),this[_0x548272(0x423)](this['_state']['toggleOnline']()),this[_0x548272(0x293)]();const _0xf96042=this[_0x548272(0x419)];_0x2ab6e8&&_0xf96042 instanceof SyncedState&&(this[_0x548272(0x208)](),this[_0x548272(0x423)](_0xf96042[_0x548272(0x1a8)]()),this[_0x548272(0x293)]());}async[_0xa33034(0x3da)](){return new Promise(_0x334433=>{var _0x2f8a52=_0x214d;this['session'][_0x2f8a52(0x29b)][_0x2f8a52(0x2c8)](_0x1bd1bc(0x1))[_0x2f8a52(0x479)](async _0xe52eac=>{var _0x3b3b75=_0x2f8a52;_0x334433(await this[_0x3b3b75(0x446)](_0xe52eac===SessionStatus[_0x3b3b75(0x2ac)]));});});}[_0xa33034(0x46f)](){var _0x33cd28=_0xa33034;const _0x4c76ad=this[_0x33cd28(0x259)];return{'onStateChange':__name((_0x10324e,_0x5554e9)=>{var _0x5f2f70=_0x33cd28;if(_0x10324e!==this[_0x5f2f70(0x419)])throw new Error(_0x5f2f70(0x17b)+_0x10324e['status']+_0x5f2f70(0x2fc)+_0x5554e9[_0x5f2f70(0x458)]+'\x0aCurrent:\x20'+this[_0x5f2f70(0x419)][_0x5f2f70(0x458)]);this['_updateState'](_0x5554e9);},'onStateChange'),'onSendChangeset':__name(_0x51063e=>{var _0xa8bb0e=_0x33cd28;_0x51063e['sid']||(_0x51063e['sid']=this['_changesetSessionId'],_0x51063e[_0xa8bb0e(0x25f)]=++this[_0xa8bb0e(0x404)]);const _0x49ce54={'eventID':CollaborationEvent[_0xa8bb0e(0x193)],'data':{'unitID':_0x51063e[_0xa8bb0e(0x259)],'unitType':this['_type'],'changeset':_0x51063e,'memberID':this[_0xa8bb0e(0x46b)]['getMemberID']()}};this[_0xa8bb0e(0x46b)][_0xa8bb0e(0x26d)](_0x49ce54,this['unitID']);},_0x33cd28(0x40a)),'onMissingChangesets':__name(({from:_0x5b57ea,to:_0x3ee356})=>{var _0x236101=_0x33cd28;this[_0x236101(0x48c)][_0x236101(0x213)](_0x236101(0x482),_0x236101(0x141)+_0x5b57ea+_0x236101(0x373)+_0x3ee356);const _0xbe6b26={'eventID':CollaborationEvent[_0x236101(0x289)],'data':{'unitID':_0x4c76ad,'unitType':this['_type'],'from':_0x5b57ea,'to':_0x3ee356}};this[_0x236101(0x46b)]['send'](_0xbe6b26,this['unitID']);},_0x33cd28(0x319))};}async[_0xa33034(0x446)](_0x3dd96d){var _0x5d6725=_0xa33034,_0xc1f468,_0x4ae658,_0x27edf0;const _0x141639=await((_0xc1f468=this[_0x5d6725(0x48b)])==null?void 0x0:_0xc1f468['loadOfflineData'](this[_0x5d6725(0x259)])),_0x2c4e50=(_0x4ae658=_0x141639==null?void 0x0:_0x141639[_0x5d6725(0x217)])!=null?_0x4ae658:[],_0x332556=(_0x27edf0=_0x141639==null?void 0x0:_0x141639[_0x5d6725(0x3c0)])!=null?_0x27edf0:null,_0x3e747c=!!(_0x332556!=null&&_0x332556[_0x5d6725(0x360)])&&!!(_0x332556!=null&&_0x332556['reqId']);this[_0x5d6725(0x418)]=_0x3e747c?_0x332556[_0x5d6725(0x360)]:v4(),this[_0x5d6725(0x404)]=_0x3e747c?_0x332556['reqId']:0x0;const _0x50e4a9=this[_0x5d6725(0x259)];try{this[_0x5d6725(0x253)](_0x332556,_0x2c4e50);}catch(_0x43c7ca){this[_0x5d6725(0x48c)][_0x5d6725(0x1c4)](_0x43c7ca);}const _0x53fe44=this[_0x5d6725(0x46f)]();if(_0x3dd96d){const _0x16f837=createOnlineState(this[_0x5d6725(0x39e)],_0x50e4a9,this['_type'],_0x332556,_0x2c4e50,_0x53fe44);return _0x16f837 instanceof PendingState?_0x16f837[_0x5d6725(0x12b)]():(_0x16f837 instanceof AwaitingWithPendingState||_0x16f837 instanceof AwaitingState)&&_0x16f837[_0x5d6725(0x3ee)](),_0x16f837;}return this[_0x5d6725(0x39e)][_0x5d6725(0x465)](OfflineState,_0x50e4a9,this[_0x5d6725(0x2eb)],_0x332556,_0x2c4e50,_0x53fe44);}['_replayCachedMutations'](_0x380a9c,_0x347b6c){var _0x3e76ee=_0xa33034,_0x4f078b,_0x43ee4a;const _0x1e2f65=this[_0x3e76ee(0x355)][_0x3e76ee(0x171)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x3e76ee(0x171)][_0x3e76ee(0x3dc)]()[_0x3e76ee(0x1cf)]);(_0x4f078b=_0x1e2f65((_0x380a9c==null?void 0x0:_0x380a9c[_0x3e76ee(0x217)])||[],null))==null||_0x4f078b[_0x3e76ee(0x24c)](_0x52ccc9=>this['_commandService'][_0x3e76ee(0x2bc)](_0x52ccc9['id'],_0x52ccc9[_0x3e76ee(0x468)])),(_0x43ee4a=_0x1e2f65(_0x347b6c||[],null))==null||_0x43ee4a[_0x3e76ee(0x24c)](_0x1a95e6=>this[_0x3e76ee(0x401)][_0x3e76ee(0x2bc)](_0x1a95e6['id'],_0x1a95e6[_0x3e76ee(0x468)]));}},__name(_a13,_0xa33034(0x22d)),_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(_0x2ea1a7,_0x3c36c0,_0x57c948,_0x36ef3a,_0x2f9b4d,_0x3e1c56,_0x4089ea,_0x4d9e51,_0x555fcc,_0x119ffc,_0xd6ac5d,_0xa1d5e,_0x3a687a){var _0x16bfa0=_0xa33034;super(_0x2ea1a7,_0x57c948,_0x3c36c0,_0x36ef3a,_0x2f9b4d,_0x3e1c56,_0x4089ea,_0x4d9e51,_0x555fcc,_0x119ffc,_0xd6ac5d,_0xa1d5e,_0x3a687a),__publicField(this,_0x16bfa0(0x13f),null),(this[_0x16bfa0(0x259)]=_0x2ea1a7,this[_0x16bfa0(0x3e5)]=_0x3c36c0);}[_0xa33034(0x3ac)](_0x522aef){var _0x2faf4d=_0xa33034;this[_0x2faf4d(0x13f)]=_0x522aef;}['dispose'](){var _0xdceaec=_0xa33034;this[_0xdceaec(0x13f)]=null,super[_0xdceaec(0x2aa)]();}[_0xa33034(0x46f)](){var _0x1174a0=_0xa33034;const _0x6886f5=super[_0x1174a0(0x46f)]();return _0x6886f5['onTransformIME']=_0x204425=>{var _0x23d5a=_0x1174a0,_0x1e0c04,_0x27f33a;return(_0x27f33a=(_0x1e0c04=this[_0x23d5a(0x13f)])==null?void 0x0:_0x1e0c04[_0x23d5a(0x15a)])==null?void 0x0:_0x27f33a['call'](_0x1e0c04,_0x204425);},_0x6886f5[_0x1174a0(0x340)]=_0xe23e3c=>{var _0x3b2366=_0x1174a0,_0x1a1afb,_0x278981;return(_0x278981=(_0x1a1afb=this[_0x3b2366(0x13f)])==null?void 0x0:_0x1a1afb[_0x3b2366(0x340)])==null?void 0x0:_0x278981['call'](_0x1a1afb,_0xe23e3c);},_0x6886f5[_0x1174a0(0x44f)]=_0x67f9eb=>{var _0x16f590=_0x1174a0,_0x412a9e,_0x315ee2;return(_0x315ee2=(_0x412a9e=this[_0x16f590(0x13f)])==null?void 0x0:_0x412a9e['onTransformSelections'])==null?void 0x0:_0x315ee2[_0x16f590(0x451)](_0x412a9e,_0x67f9eb);},_0x6886f5['onSyncEditingCollabCursor']=_0x45275f=>{var _0x3657c7=_0x1174a0,_0x421181,_0x297ede;return(_0x297ede=(_0x421181=this[_0x3657c7(0x13f)])==null?void 0x0:_0x421181[_0x3657c7(0x3c8)])==null?void 0x0:_0x297ede['call'](_0x421181,_0x45275f);},_0x6886f5[_0x1174a0(0x2c7)]=_0x23517a=>{var _0x174e81=_0x1174a0,_0x296862,_0x475f12,_0x41dc81;if(!((_0x296862=this[_0x174e81(0x13f)])!=null&&_0x296862[_0x174e81(0x2c7)]))throw new Error(_0x174e81(0x38f));return(_0x41dc81=(_0x475f12=this['_handlerCallback'])==null?void 0x0:_0x475f12['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x41dc81['call'](_0x475f12,_0x23517a);},_0x6886f5[_0x1174a0(0x39b)]=_0xe182bf=>{var _0x3d5471=_0x1174a0,_0x4f4acf,_0x1ecff1,_0x53c49d;if(!((_0x4f4acf=this[_0x3d5471(0x13f)])!=null&&_0x4f4acf[_0x3d5471(0x39b)]))throw new Error(_0x3d5471(0x46c));return(_0x53c49d=(_0x1ecff1=this[_0x3d5471(0x13f)])==null?void 0x0:_0x1ecff1[_0x3d5471(0x39b)])==null?void 0x0:_0x53c49d['call'](_0x1ecff1,_0xe182bf);},_0x6886f5;}async['_init'](){var _0x5b535e=_0xa33034;const _0x870ff6=await super['_init']();return this[_0x5b535e(0x3a7)](this[_0x5b535e(0x401)][_0x5b535e(0x20d)]((_0x51c6b9,_0x1fe2c2)=>{var _0x39d448=_0x5b535e;if(_0x51c6b9[_0x39d448(0x3e5)]!==CommandType[_0x39d448(0x448)]||_0x1fe2c2!=null&&_0x1fe2c2[_0x39d448(0x1b6)]||_0x1fe2c2!=null&&_0x1fe2c2[_0x39d448(0x229)]||_0x51c6b9['id']===RichTextEditingMutation['id'])return;const _0x121f83=_0x51c6b9[_0x39d448(0x468)];if((_0x121f83==null?void 0x0:_0x121f83[_0x39d448(0x199)])!==this['unitID'])return;const _0x9c7751=_0x51c6b9,_0x540515=this[_0x39d448(0x355)][_0x39d448(0x171)][_0x39d448(0x150)](this[_0x39d448(0x355)][_0x39d448(0x171)]['getInterceptPoints']()[_0x39d448(0x3ab)])([_0x9c7751],null)||[_0x9c7751];this[_0x39d448(0x34d)](_0x540515[0x0]);})),_0x870ff6;}},__name(_a14,_0xa33034(0x20b)),_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(_0x3622ad,_0x441377,_0x4c6798,_0x5ec748,_0x1a5b55,_0x32c73f,_0x2a312f,_0x2f0e6f,_0x5affc1,_0xb26d1,_0x560436,_0x345599,_0x18546a,_0x343d36){var _0x2d7e3c=_0xa33034;super(_0x3622ad,_0x4c6798,_0x441377,_0x5ec748,_0x1a5b55,_0x32c73f,_0x2a312f,_0x5affc1,_0xb26d1,_0x560436,_0x345599,_0x18546a,_0x343d36),this[_0x2d7e3c(0x259)]=_0x3622ad,this[_0x2d7e3c(0x3e5)]=_0x441377,this['_sheetTransformSelectionsService']=_0x2f0e6f;}[_0xa33034(0x46f)](){var _0x3a80b2=_0xa33034;const _0x35a2d5=super[_0x3a80b2(0x46f)]();return _0x35a2d5[_0x3a80b2(0x44f)]=_0x34171f=>this[_0x3a80b2(0x2a6)][_0x3a80b2(0x22c)](_0x34171f),_0x35a2d5;}async[_0xa33034(0x2f6)](){var _0x146995=_0xa33034;const _0x376b6d=await super[_0x146995(0x2f6)]();return this['disposeWithMe'](this[_0x146995(0x401)][_0x146995(0x20d)]((_0x401436,_0x4da4ab)=>{var _0x29e239=_0x146995;if(_0x401436[_0x29e239(0x3e5)]!==CommandType[_0x29e239(0x448)]||_0x4da4ab!=null&&_0x4da4ab[_0x29e239(0x1b6)]||_0x4da4ab!=null&&_0x4da4ab[_0x29e239(0x229)])return;const _0x4553df=_0x401436['params'];if((_0x4553df==null?void 0x0:_0x4553df['unitId'])!==this[_0x29e239(0x259)])return;const _0x46fe31=_0x401436,_0x2f29e3=this['_compressMutationService'][_0x29e239(0x171)][_0x29e239(0x150)](this[_0x29e239(0x355)][_0x29e239(0x171)][_0x29e239(0x3dc)]()[_0x29e239(0x3ab)])([_0x46fe31],null)||[_0x46fe31];this[_0x29e239(0x34d)](_0x2f29e3[0x0]);})),_0x376b6d;}},__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['getOwnPropertyDescriptor'],__decorateClass$b=__name((_0x4aedeb,_0x19fd91,_0x4d14a2,_0x31b328)=>{var _0x5d1d24=_0xa33034;for(var _0x315335=_0x31b328>0x1?void 0x0:_0x31b328?__getOwnPropDesc$b(_0x19fd91,_0x4d14a2):_0x19fd91,_0x5af783=_0x4aedeb[_0x5d1d24(0x271)]-0x1,_0x2541ec;_0x5af783>=0x0;_0x5af783--)(_0x2541ec=_0x4aedeb[_0x5af783])&&(_0x315335=(_0x31b328?_0x2541ec(_0x19fd91,_0x4d14a2,_0x315335):_0x2541ec(_0x315335))||_0x315335);return _0x31b328&&_0x315335&&__defProp$b(_0x19fd91,_0x4d14a2,_0x315335),_0x315335;},'__decorateClass$b'),__decorateParam$b=__name((_0x5eb533,_0x3ad4ee)=>(_0x1146d1,_0x149543)=>_0x3ad4ee(_0x1146d1,_0x149543,_0x5eb533),'__decorateParam$b'),_a16;let CollaborationController=(_a16=class extends RxDisposable{constructor(_0x3d4809,_0x57d2aa,_0xa477e4){var _0x151826=_0xa33034;super(),__publicField(this,'_entities',new Map()),__publicField(this,'_entityInit$',new Subject()),__publicField(this,_0x151826(0x198),this[_0x151826(0x2f8)][_0x151826(0x3b2)]()),(this[_0x151826(0x39e)]=_0x3d4809,this[_0x151826(0x257)]=_0x57d2aa,this[_0x151826(0x40d)]=_0xa477e4,this[_0x151826(0x2f6)]());}[_0xa33034(0x2aa)](){var _0x523f56=_0xa33034;super[_0x523f56(0x2aa)](),this[_0x523f56(0x483)][_0x523f56(0x24c)](_0x16a782=>_0x16a782[_0x523f56(0x2aa)]()),this['_entities'][_0x523f56(0x210)]();}[_0xa33034(0x40b)](_0x19d4dd){var _0x59274d=_0xa33034,_0x23cded;return(_0x23cded=this[_0x59274d(0x483)][_0x59274d(0x38a)](_0x19d4dd))!=null?_0x23cded:null;}[_0xa33034(0x39d)](_0x22667f){var _0x1ad0e3=_0xa33034;const _0xd45d38=this['getCollabEntity'](_0x22667f);return _0xd45d38?of(_0xd45d38):this[_0x1ad0e3(0x2f8)][_0x1ad0e3(0x2c8)](filter(_0x54cdfd=>_0x54cdfd[_0x1ad0e3(0x259)]===_0x22667f));}[_0xa33034(0x488)](_0x53f8f9){var _0x82641e=_0xa33034;return firstValueFrom(this[_0x82641e(0x39d)](_0x53f8f9)[_0x82641e(0x2c8)](map(()=>{})));}[_0xa33034(0x2f6)](){var _0x4ade17=_0xa33034;this[_0x4ade17(0x40d)][_0x4ade17(0x368)](UniverInstanceType['UNIVER_SHEET'])[_0x4ade17(0x2c8)](takeUntil(this[_0x4ade17(0x3ca)]),delay(0x10))['subscribe'](async _0x831dd1=>{var _0x2bde8f=_0x4ade17;const _0x4efb99=_0x831dd1[_0x2bde8f(0x13d)](),_0x49db8e=await this[_0x2bde8f(0x1c3)](_0x4efb99,UniverType[_0x2bde8f(0x1d0)]);this[_0x2bde8f(0x483)]['set'](_0x4efb99,_0x49db8e);}),this[_0x4ade17(0x40d)][_0x4ade17(0x368)](UniverInstanceType[_0x4ade17(0x36b)])[_0x4ade17(0x2c8)](takeUntil(this[_0x4ade17(0x3ca)]),delay(0x10))['pipe'](filter(_0x327f35=>!_0x327f35[_0x4ade17(0x13d)]()['startsWith']('__')))['subscribe'](async _0x135057=>{var _0x1dc97c=_0x4ade17;const _0x3e043e=_0x135057[_0x1dc97c(0x13d)](),_0xb2ab35=await this[_0x1dc97c(0x1c3)](_0x3e043e,UniverType[_0x1dc97c(0x36b)]);this[_0x1dc97c(0x483)][_0x1dc97c(0x392)](_0x3e043e,_0xb2ab35);}),merge(this[_0x4ade17(0x40d)][_0x4ade17(0x34b)](UniverInstanceType[_0x4ade17(0x1d0)]),this[_0x4ade17(0x40d)][_0x4ade17(0x34b)](UniverInstanceType[_0x4ade17(0x36b)]))[_0x4ade17(0x2c8)](takeUntil(this['dispose$']))['subscribe'](_0x2553ff=>{var _0x122d79=_0x4ade17;const _0x2d3ac1=_0x2553ff[_0x122d79(0x13d)](),_0x9ed976=this[_0x122d79(0x483)][_0x122d79(0x38a)](_0x2d3ac1);_0x9ed976&&(_0x9ed976[_0x122d79(0x2aa)](),this[_0x122d79(0x483)]['delete'](_0x2d3ac1));});}async['_startCollaboration'](_0x3f7a95,_0x4ff8d8){var _0x16870a=_0xa33034;const _0x113f67=await this['_collabSessionService'][_0x16870a(0x155)](_0x3f7a95),_0xa0430a=this[_0x16870a(0x39e)][_0x16870a(0x465)](this['_getCtorByUniverType'](_0x4ff8d8),_0x3f7a95,_0x4ff8d8,_0x113f67);return await _0xa0430a[_0x16870a(0x23c)](),this[_0x16870a(0x2f8)][_0x16870a(0x17a)](_0xa0430a),_0xa0430a;}[_0xa33034(0x194)](_0x1e1f55){var _0x374736=_0xa33034;switch(_0x1e1f55){case UniverType['UNIVER_DOC']:return DocCollaborationEntity;case UniverType[_0x374736(0x1d0)]:return SheetCollaborationEntity;default:throw new Error(_0x374736(0x29a)+_0x1e1f55);}}},__name(_a16,_0xa33034(0x400)),_a16);CollaborationController=__decorateClass$b([__decorateParam$b(0x0,Inject(Injector)),__decorateParam$b(0x1,Inject(CollaborationSessionService)),__decorateParam$b(0x2,IUniverInstanceService)],CollaborationController);var __defProp$a=Object[_0xa33034(0x2e1)],__getOwnPropDesc$a=Object[_0xa33034(0x29f)],__decorateClass$a=__name((_0x288a5e,_0x5f5c86,_0x56df76,_0x4e52b1)=>{for(var _0x3bcc26=_0x4e52b1>0x1?void 0x0:_0x4e52b1?__getOwnPropDesc$a(_0x5f5c86,_0x56df76):_0x5f5c86,_0x3f437d=_0x288a5e['length']-0x1,_0x48766b;_0x3f437d>=0x0;_0x3f437d--)(_0x48766b=_0x288a5e[_0x3f437d])&&(_0x3bcc26=(_0x4e52b1?_0x48766b(_0x5f5c86,_0x56df76,_0x3bcc26):_0x48766b(_0x3bcc26))||_0x3bcc26);return _0x4e52b1&&_0x3bcc26&&__defProp$a(_0x5f5c86,_0x56df76,_0x3bcc26),_0x3bcc26;},_0xa33034(0x20f)),__decorateParam$a=__name((_0xad1195,_0x440821)=>(_0x28e015,_0x50d516)=>_0x440821(_0x28e015,_0x50d516,_0xad1195),_0xa33034(0x41a));const DEFAULT_FILE_NAME_KEY='DEFAULT_FILE_NAME',UNIVER_DEFAULT_FILE_NAME=_0xa33034(0x37a);var _a17;let FileNameController=(_a17=class extends Disposable{constructor(_0x4a4a10,_0x332a8f){var _0x462c48=_0xa33034;super(),this['_univerInstanceService']=_0x4a4a10,this[_0x462c48(0x36a)]=_0x332a8f,this['_init']();}['_init'](){var _0x199341=_0xa33034;this[_0x199341(0x3a7)](this[_0x199341(0x40d)][_0x199341(0x26e)][_0x199341(0x479)](()=>{var _0x4e4135=_0x199341,_0x326782;const _0x27f070=this[_0x4e4135(0x40d)][_0x4e4135(0x165)]();let _0x1c9ebb=(_0x326782=this[_0x4e4135(0x36a)][_0x4e4135(0x439)](DEFAULT_FILE_NAME_KEY))!=null?_0x326782:UNIVER_DEFAULT_FILE_NAME;_0x27f070 instanceof Workbook&&(_0x1c9ebb=_0x27f070['name']),document[_0x4e4135(0x148)]=_0x1c9ebb;}));}},__name(_a17,_0xa33034(0x473)),_a17);FileNameController=__decorateClass$a([__decorateParam$a(0x0,IUniverInstanceService),__decorateParam$a(0x1,IConfigService)],FileNameController);var __defProp$9=Object[_0xa33034(0x2e1)],__getOwnPropDesc$9=Object[_0xa33034(0x29f)],__decorateClass$9=__name((_0x2c0e39,_0x447281,_0xa814e5,_0xe7246)=>{var _0x1acd46=_0xa33034;for(var _0x3610f2=_0xe7246>0x1?void 0x0:_0xe7246?__getOwnPropDesc$9(_0x447281,_0xa814e5):_0x447281,_0x27c095=_0x2c0e39[_0x1acd46(0x271)]-0x1,_0x2779ae;_0x27c095>=0x0;_0x27c095--)(_0x2779ae=_0x2c0e39[_0x27c095])&&(_0x3610f2=(_0xe7246?_0x2779ae(_0x447281,_0xa814e5,_0x3610f2):_0x2779ae(_0x3610f2))||_0x3610f2);return _0xe7246&&_0x3610f2&&__defProp$9(_0x447281,_0xa814e5,_0x3610f2),_0x3610f2;},_0xa33034(0x397)),__decorateParam$9=__name((_0x226cc2,_0xc2d173)=>(_0x424ae7,_0x1046ec)=>_0xc2d173(_0x424ae7,_0x1046ec,_0x226cc2),_0xa33034(0x164)),_a18;let AuthServerService=(_a18=class{constructor(_0x538ac2,_0x3bb558,_0x2bd8cb){var _0x53d152=_0xa33034;this['_configService']=_0x538ac2,this[_0x53d152(0x377)]=_0x3bb558,this[_0x53d152(0x36d)]=_0x2bd8cb,this[_0x53d152(0x23c)]();}[_0xa33034(0x23c)](){var _0x1d6b72=_0xa33034;this[_0x1d6b72(0x377)][_0x1d6b72(0x2fe)]({'priority':0x1,'interceptor':__name((_0x18feb6,_0x382fd4)=>_0x382fd4(_0x18feb6)['pipe'](concatMap(async _0x18400c=>{var _0x2df28a=_0x1d6b72;const _0x2b04ee=_0x18400c;if(_0x2b04ee[_0x2df28a(0x458)]===0x191){if(typeof window>'u')throw new Error(_0x2df28a(0x2c9));if(window['confirm'](this[_0x2df28a(0x36d)]['t'](_0x2df28a(0x490)))){const _0x1ec5a7=window[_0x2df28a(0x156)](window[_0x2df28a(0x236)]['href']);window[_0x2df28a(0x236)][_0x2df28a(0x288)]=this[_0x2df28a(0x27d)]()+'?url='+_0x1ec5a7;}}return _0x2b04ee;})),'interceptor')});}[_0xa33034(0x27d)](){var _0x45a1cf=_0xa33034,_0x4a7397,_0x34cad9;const _0x266d93=this['_configService']['getConfig'](LOGIN_URL_KEY),_0x2f38be=this[_0x45a1cf(0x36a)]['getConfig'](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x34cad9=(_0x4a7397=_0x2f38be==null?void 0x0:_0x2f38be['loginUrlKey'])!=null?_0x4a7397:_0x266d93)!=null?_0x34cad9:DEFAULT_LOGIN_URL;}},__name(_a18,_0xa33034(0x409)),_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[_0xa33034(0x29f)],__decorateClass$8=__name((_0x450933,_0x2f6efe,_0x2e3144,_0x10b661)=>{var _0x12cf7e=_0xa33034;for(var _0x117eb5=_0x10b661>0x1?void 0x0:_0x10b661?__getOwnPropDesc$8(_0x2f6efe,_0x2e3144):_0x2f6efe,_0x58c607=_0x450933[_0x12cf7e(0x271)]-0x1,_0x45ac1a;_0x58c607>=0x0;_0x58c607--)(_0x45ac1a=_0x450933[_0x58c607])&&(_0x117eb5=(_0x10b661?_0x45ac1a(_0x2f6efe,_0x2e3144,_0x117eb5):_0x45ac1a(_0x117eb5))||_0x117eb5);return _0x10b661&&_0x117eb5&&__defProp$8(_0x2f6efe,_0x2e3144,_0x117eb5),_0x117eb5;},_0xa33034(0x2cc)),__decorateParam$8=__name((_0xf3eb40,_0x5d6de1)=>(_0x2a6a4e,_0x2f782f)=>_0x5d6de1(_0x2a6a4e,_0x2f782f,_0xf3eb40),'__decorateParam$8');const AUTHZ_URL_KEY='AUTHZ_URL_KEY',DEFAULT_AUTHZ_URL_KEY$1=_0xa33034(0x3e1);var _a19;let AuthzIoHttpService=(_a19=class extends Disposable{constructor(_0xc75255,_0x2f5b62){var _0x3fa30c=_0xa33034;super(),this[_0x3fa30c(0x3af)]=_0xc75255,this[_0x3fa30c(0x36a)]=_0x2f5b62,this[_0x3fa30c(0x1f4)]();}[_0xa33034(0x1f4)](){var _0x3e8022=_0xa33034;const _0x2c8273=this;this[_0x3e8022(0x3a7)](this[_0x3e8022(0x3af)][_0x3e8022(0x2fe)]({'priority':0x3e7,'interceptor':MergeInterceptorFactory({'isMatch'(_0x3a0bab){var _0x172c7c=_0x3e8022,_0x83b121;if(_0x3a0bab['method']===_0x172c7c(0x321)&&((_0x83b121=_0x3a0bab[_0x172c7c(0x30b)])!=null&&_0x83b121[_0x172c7c(0x12f)])){const {objectID:_0x3d0fb0,objectType:_0x87b905}=_0x3a0bab[_0x172c7c(0x30b)][_0x172c7c(0x12f)]||{};if(!_0x3d0fb0||_0x87b905===void 0x0)return!0x1;const _0x110cd4=_0x2c8273[_0x172c7c(0x2d4)]()+'/'+_0x87b905+_0x172c7c(0x449)+_0x3d0fb0+_0x172c7c(0x46d);if(_0x3a0bab[_0x172c7c(0x296)]===_0x110cd4)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x170e12){var _0x1c8b51=_0x3e8022,_0x2d82ca;return(_0x2d82ca=_0x170e12['requestParams'])==null?void 0x0:_0x2d82ca[_0x1c8b51(0x12f)];},'mergeParamsToRequest'(_0x2a79e4,_0x409e8f){var _0x2a6000=_0x3e8022;const _0x126991=_0x2c8273[_0x2a6000(0x2d4)]()+_0x2a6000(0x2ce),_0x13f25d=_0x2a79e4[_0x2a6000(0x3f4)]((_0xb04a0,_0x22817a)=>{var _0x561659=_0x2a6000;const {unitID:_0x51e2a5,objectID:_0x5d6ee0,objectType:_0x232835,actions:_0x39b79f}=_0x22817a;return _0xb04a0[_0x51e2a5]||(_0xb04a0[_0x51e2a5]={}),_0xb04a0[_0x51e2a5][_0x5d6ee0]||(_0xb04a0[_0x51e2a5][_0x5d6ee0]={'objectID':_0x5d6ee0,'objectType':_0x232835,'actions':[]}),_0xb04a0[_0x51e2a5][_0x5d6ee0][_0x561659(0x292)]['push'](..._0x39b79f),_0xb04a0;},{}),_0x2b6415=[];for(const _0x19adfd in _0x13f25d)for(const _0x598044 in _0x13f25d[_0x19adfd]){const {actions:_0x10384f,objectType:_0x5338cc}=_0x13f25d[_0x19adfd][_0x598044],_0x3d4264=[...new Set(_0x10384f)];_0x2b6415[_0x2a6000(0x34a)]({'unitID':_0x19adfd,'objectID':_0x598044,'objectType':_0x5338cc,'actions':_0x3d4264});}return new HTTPRequest(_0x2a6000(0x321),_0x126991,{'headers':_0x409e8f[_0x2a6000(0x12e)],'withCredentials':_0x409e8f['withCredentials'],'responseType':_0x409e8f[_0x2a6000(0x17d)],'body':{'requests':_0x2b6415}});}},{'distributeResult'(_0x230cd8,_0xe354f2){var _0x4ba199=_0x3e8022;const {objectActions:_0x239dfe}=_0x230cd8;return _0xe354f2[_0x4ba199(0x378)](_0x5e24c4=>{var _0x1899b7=_0x4ba199;const {unitID:_0x146e1b,objectID:_0x4a22ac,actions:_0x485095}=_0x5e24c4,_0x4f07dc=_0x239dfe[_0x1899b7(0x251)](_0x20ddbd=>_0x20ddbd[_0x1899b7(0x259)]===_0x146e1b&&_0x20ddbd[_0x1899b7(0x139)]===_0x4a22ac),_0x2b6033=_0x485095[_0x1899b7(0x378)](_0x5ac674=>_0x4f07dc==null?void 0x0:_0x4f07dc['actions'][_0x1899b7(0x251)](_0x469170=>_0x469170[_0x1899b7(0x16e)]===_0x5ac674))[_0x1899b7(0x429)](_0x5bde32=>!!_0x5bde32);return{'config':_0x5e24c4,'result':{'actions':_0x2b6033,'error':_0x230cd8[_0x1899b7(0x1c4)]}};});}})}));}['_getAPIPrefixPath'](){var _0x18c721=_0xa33034,_0x4890a6,_0x4734c5;const _0x53cf63=this['_configService'][_0x18c721(0x439)](AUTHZ_URL_KEY),_0x130e20=this[_0x18c721(0x36a)][_0x18c721(0x439)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x4734c5=(_0x4890a6=_0x130e20==null?void 0x0:_0x130e20[_0x18c721(0x469)])!=null?_0x4890a6:_0x53cf63)!=null?_0x4734c5:DEFAULT_AUTHZ_URL_KEY$1;}async['create'](_0x419456){var _0x4ef720=_0xa33034;const _0x2c742d=this[_0x4ef720(0x2d4)]()+'/'+_0x419456[_0x4ef720(0x3d3)]+_0x4ef720(0x47e);return(await this[_0x4ef720(0x3af)][_0x4ef720(0x414)](_0x2c742d,{'body':_0x419456}))[_0x4ef720(0x12f)]['objectID']||'';}async['list'](_0x151d5c){var _0x33e85b=_0xa33034;const _0x14888d=this[_0x33e85b(0x2d4)]()+'/-/object/list';return(await this[_0x33e85b(0x3af)][_0x33e85b(0x414)](_0x14888d,{'body':_0x151d5c}))['body'][_0x33e85b(0x1d3)];}async['update'](_0xc98591){var _0x1bac51=_0xa33034;const _0x277127=this[_0x1bac51(0x2d4)]()+'/'+_0xc98591['objectType']+_0x1bac51(0x449)+_0xc98591[_0x1bac51(0x139)];await this[_0x1bac51(0x3af)]['put'](_0x277127,{'body':_0xc98591});}async[_0xa33034(0x308)](_0xd84353){var _0x21808d=_0xa33034;const _0x299e35=this[_0x21808d(0x2d4)]()+'/'+_0xd84353[_0x21808d(0x3d3)]+_0x21808d(0x449)+_0xd84353[_0x21808d(0x139)]+_0x21808d(0x46d);return(await this['_HTTPService'][_0x21808d(0x414)](_0x299e35,{'body':_0xd84353}))[_0x21808d(0x12f)]['actions'];}async[_0xa33034(0x187)](_0x26f399){var _0x2fc947=_0xa33034;const _0x4a4358=this[_0x2fc947(0x2d4)]()+_0x2fc947(0x2ce);return(await this[_0x2fc947(0x3af)][_0x2fc947(0x414)](_0x4a4358,{'body':{'requests':_0x26f399}}))[_0x2fc947(0x12f)][_0x2fc947(0x417)];}async[_0xa33034(0x371)](_0x5d25c5){var _0x12ba99=_0xa33034;const _0xbc33c7=this[_0x12ba99(0x2d4)]()+'/'+_0x5d25c5[_0x12ba99(0x3d3)]+_0x12ba99(0x45b),_0x164dd0=await this[_0x12ba99(0x3af)][_0x12ba99(0x414)](_0xbc33c7,{'body':_0x5d25c5});return{'roles':_0x164dd0['body']['roles'],'actions':_0x164dd0[_0x12ba99(0x12f)][_0x12ba99(0x292)]};}async['deleteCollaborator'](_0x457a18){var _0x19c96d=_0xa33034;const _0x5b398b=this['_getAPIPrefixPath']()+_0x19c96d(0x1ad);await this[_0x19c96d(0x3af)]['delete'](_0x5b398b,{'params':{'collaboratorID':_0x457a18[_0x19c96d(0x33e)],'objectID':_0x457a18[_0x19c96d(0x139)],'unitID':_0x457a18[_0x19c96d(0x259)]}});}async[_0xa33034(0x3be)](_0x14db59){var _0xde2c88=_0xa33034;const _0x244745=this[_0xde2c88(0x2d4)]()+'/collaborator';await this['_HTTPService'][_0xde2c88(0x339)](_0x244745,{'body':_0x14db59});}async[_0xa33034(0x17c)](_0x30a2d4){var _0xed19a1=_0xa33034;const _0x376e3a=this['_getAPIPrefixPath']()+_0xed19a1(0x1ad);await this[_0xed19a1(0x3af)][_0xed19a1(0x414)](_0x376e3a,{'body':_0x30a2d4});}async[_0xa33034(0x1b8)](_0x131304){var _0x927047=_0xa33034;const _0x4be9ec=this[_0x927047(0x2d4)]()+_0x927047(0x1ad);return(await this[_0x927047(0x3af)][_0x927047(0x38a)](_0x4be9ec,{'params':{'objectID':_0x131304[_0x927047(0x139)],'unitID':_0x131304['unitID']}}))[_0x927047(0x12f)]['collaborators'];}async['putCollaborators'](_0x423cd8){var _0x2c3749=_0xa33034;const _0xb8f680=this['_getAPIPrefixPath']()+_0x2c3749(0x1ad);await this[_0x2c3749(0x3af)][_0x2c3749(0x41e)](_0xb8f680,{'body':_0x423cd8});}},__name(_a19,_0xa33034(0x2a8)),_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(_0x38f88c){var _0x5576ef=_0xa33034;return _0x38f88c&&_0x38f88c[_0x5576ef(0x243)]&&Object[_0x5576ef(0x352)][_0x5576ef(0x42b)][_0x5576ef(0x451)](_0x38f88c,_0x5576ef(0x275))?_0x38f88c[_0x5576ef(0x275)]:_0x38f88c;}__name(getDefaultExportFromCjs,_0xa33034(0x1fb));var aes$1={'exports':{}};function commonjsRequire(_0xd4c437){var _0x439475=_0xa33034;throw new Error(_0x439475(0x2df)+_0xd4c437+'\x22.\x20Please\x20configure\x20the\x20dynamicRequireTargets\x20or/and\x20ignoreDynamicRequires\x20option\x20of\x20@rollup/plugin-commonjs\x20appropriately\x20for\x20this\x20require\x20call\x20to\x20work.');}__name(commonjsRequire,'commonjsRequire');var core$1={'exports':{}},core=core$1[_0xa33034(0x457)],hasRequiredCore;function requireCore(){return hasRequiredCore||(hasRequiredCore=0x1,function(_0x28f5fa,_0x509ce7){(function(_0x502e8b,_0x164981){_0x28f5fa['exports']=_0x164981();}(core,function(){var _0x78b600=_0x78b600||function(_0x2bfbc6,_0x545b57){var _0x65aa72=_0x214d,_0x398ad6;if(typeof window<'u'&&window[_0x65aa72(0x146)]&&(_0x398ad6=window[_0x65aa72(0x146)]),typeof self<'u'&&self[_0x65aa72(0x146)]&&(_0x398ad6=self[_0x65aa72(0x146)]),typeof globalThis<'u'&&globalThis[_0x65aa72(0x146)]&&(_0x398ad6=globalThis['crypto']),!_0x398ad6&&typeof window<'u'&&window[_0x65aa72(0x3d2)]&&(_0x398ad6=window[_0x65aa72(0x3d2)]),!_0x398ad6&&typeof commonjsGlobal<'u'&&commonjsGlobal[_0x65aa72(0x146)]&&(_0x398ad6=commonjsGlobal[_0x65aa72(0x146)]),!_0x398ad6&&typeof commonjsRequire==_0x65aa72(0x167))try{_0x398ad6=require('crypto');}catch{}var _0x55ad39=__name(function(){var _0x34621b=_0x65aa72;if(_0x398ad6){if(typeof _0x398ad6[_0x34621b(0x31b)]==_0x34621b(0x167))try{return _0x398ad6['getRandomValues'](new Uint32Array(0x1))[0x0];}catch{}if(typeof _0x398ad6['randomBytes']==_0x34621b(0x167))try{return _0x398ad6[_0x34621b(0x32b)](0x4)[_0x34621b(0x197)]();}catch{}}throw new Error('Native\x20crypto\x20module\x20could\x20not\x20be\x20used\x20to\x20get\x20secure\x20random\x20number.');},'cryptoSecureRandomInt'),_0x188fdc=Object['create']||(function(){function _0x3560a9(){}return __name(_0x3560a9,'F'),function(_0x21ef59){var _0x10280c=_0x214d,_0x329eeb;return _0x3560a9['prototype']=_0x21ef59,_0x329eeb=new _0x3560a9(),_0x3560a9[_0x10280c(0x352)]=null,_0x329eeb;};}()),_0x4005b4={},_0x4aa32d=_0x4005b4[_0x65aa72(0x372)]={},_0x1007f1=_0x4aa32d[_0x65aa72(0x337)]=(function(){var _0x3dfa75=_0x65aa72;return{'extend':__name(function(_0x9ce2e){var _0x53494c=_0x214d,_0x588941=_0x188fdc(this);return _0x9ce2e&&_0x588941[_0x53494c(0x3b6)](_0x9ce2e),(!_0x588941[_0x53494c(0x42b)](_0x53494c(0x23c))||this[_0x53494c(0x23c)]===_0x588941[_0x53494c(0x23c)])&&(_0x588941[_0x53494c(0x23c)]=function(){var _0x1591ac=_0x53494c;_0x588941[_0x1591ac(0x1cd)][_0x1591ac(0x23c)][_0x1591ac(0x44e)](this,arguments);}),_0x588941[_0x53494c(0x23c)][_0x53494c(0x352)]=_0x588941,_0x588941[_0x53494c(0x1cd)]=this,_0x588941;},_0x3dfa75(0x1aa)),'create':__name(function(){var _0x5d2e89=_0x3dfa75,_0x200d6c=this['extend']();return _0x200d6c[_0x5d2e89(0x23c)][_0x5d2e89(0x44e)](_0x200d6c,arguments),_0x200d6c;},_0x3dfa75(0x274)),'init':__name(function(){},_0x3dfa75(0x23c)),'mixIn':__name(function(_0x4dc77b){var _0x58ab78=_0x3dfa75;for(var _0x383cb6 in _0x4dc77b)_0x4dc77b[_0x58ab78(0x42b)](_0x383cb6)&&(this[_0x383cb6]=_0x4dc77b[_0x383cb6]);_0x4dc77b['hasOwnProperty']('toString')&&(this['toString']=_0x4dc77b['toString']);},_0x3dfa75(0x3b6)),'clone':__name(function(){var _0x190d94=_0x3dfa75;return this['init'][_0x190d94(0x352)]['extend'](this);},_0x3dfa75(0x361))};}()),_0x567517=_0x4aa32d['WordArray']=_0x1007f1[_0x65aa72(0x1aa)]({'init':__name(function(_0x17b5d5,_0x3574b3){var _0x3031a5=_0x65aa72;_0x17b5d5=this[_0x3031a5(0x327)]=_0x17b5d5||[],_0x3574b3!=_0x545b57?this[_0x3031a5(0x444)]=_0x3574b3:this[_0x3031a5(0x444)]=_0x17b5d5[_0x3031a5(0x271)]*0x4;},_0x65aa72(0x23c)),'toString':__name(function(_0x484f09){var _0x46b2bb=_0x65aa72;return(_0x484f09||_0x477a2e)[_0x46b2bb(0x375)](this);},'toString'),'concat':__name(function(_0x2b8028){var _0x28040a=_0x65aa72,_0x171c4e=this[_0x28040a(0x327)],_0xde0498=_0x2b8028['words'],_0x2a124d=this[_0x28040a(0x444)],_0x69695c=_0x2b8028[_0x28040a(0x444)];if(this['clamp'](),_0x2a124d%0x4)for(var _0x3f3943=0x0;_0x3f3943<_0x69695c;_0x3f3943++){var _0x328be1=_0xde0498[_0x3f3943>>>0x2]>>>0x18-_0x3f3943%0x4*0x8&0xff;_0x171c4e[_0x2a124d+_0x3f3943>>>0x2]|=_0x328be1<<0x18-(_0x2a124d+_0x3f3943)%0x4*0x8;}else{for(var _0x5258da=0x0;_0x5258da<_0x69695c;_0x5258da+=0x4)_0x171c4e[_0x2a124d+_0x5258da>>>0x2]=_0xde0498[_0x5258da>>>0x2];}return this[_0x28040a(0x444)]+=_0x69695c,this;},_0x65aa72(0x3d8)),'clamp':__name(function(){var _0xf59d5e=_0x65aa72,_0x45fd4c=this[_0xf59d5e(0x327)],_0x16ab53=this[_0xf59d5e(0x444)];_0x45fd4c[_0x16ab53>>>0x2]&=0xffffffff<<0x20-_0x16ab53%0x4*0x8,_0x45fd4c[_0xf59d5e(0x271)]=_0x2bfbc6[_0xf59d5e(0x276)](_0x16ab53/0x4);},'clamp'),'clone':__name(function(){var _0x1ce9df=_0x65aa72,_0x15e9dd=_0x1007f1[_0x1ce9df(0x361)][_0x1ce9df(0x451)](this);return _0x15e9dd['words']=this[_0x1ce9df(0x327)][_0x1ce9df(0x178)](0x0),_0x15e9dd;},_0x65aa72(0x361)),'random':__name(function(_0x168b7a){var _0x5cf2ca=_0x65aa72;for(var _0x1dd4c8=[],_0x1422ca=0x0;_0x1422ca<_0x168b7a;_0x1422ca+=0x4)_0x1dd4c8[_0x5cf2ca(0x34a)](_0x55ad39());return new _0x567517[(_0x5cf2ca(0x23c))](_0x1dd4c8,_0x168b7a);},'random')}),_0x15ef4c=_0x4005b4[_0x65aa72(0x138)]={},_0x477a2e=_0x15ef4c['Hex']={'stringify':__name(function(_0x1d22ff){var _0x1eb388=_0x65aa72;for(var _0x4745a6=_0x1d22ff['words'],_0x2af94e=_0x1d22ff['sigBytes'],_0x51450c=[],_0x1576de=0x0;_0x1576de<_0x2af94e;_0x1576de++){var _0x522cd1=_0x4745a6[_0x1576de>>>0x2]>>>0x18-_0x1576de%0x4*0x8&0xff;_0x51450c['push']((_0x522cd1>>>0x4)[_0x1eb388(0x1fa)](0x10)),_0x51450c[_0x1eb388(0x34a)]((_0x522cd1&0xf)['toString'](0x10));}return _0x51450c['join']('');},_0x65aa72(0x375)),'parse':__name(function(_0x15e797){var _0x53e080=_0x65aa72;for(var _0x3882a4=_0x15e797[_0x53e080(0x271)],_0x10411a=[],_0x391d96=0x0;_0x391d96<_0x3882a4;_0x391d96+=0x2)_0x10411a[_0x391d96>>>0x3]|=parseInt(_0x15e797[_0x53e080(0x396)](_0x391d96,0x2),0x10)<<0x18-_0x391d96%0x8*0x4;return new _0x567517[(_0x53e080(0x23c))](_0x10411a,_0x3882a4/0x2);},_0x65aa72(0x246))},_0x2b960c=_0x15ef4c[_0x65aa72(0x467)]={'stringify':__name(function(_0x2c52e5){var _0xa7df97=_0x65aa72;for(var _0x50752f=_0x2c52e5[_0xa7df97(0x327)],_0x2297c8=_0x2c52e5['sigBytes'],_0x55b877=[],_0x12d9c7=0x0;_0x12d9c7<_0x2297c8;_0x12d9c7++){var _0x4f72ac=_0x50752f[_0x12d9c7>>>0x2]>>>0x18-_0x12d9c7%0x4*0x8&0xff;_0x55b877[_0xa7df97(0x34a)](String[_0xa7df97(0x31a)](_0x4f72ac));}return _0x55b877['join']('');},'stringify'),'parse':__name(function(_0xfd3a13){var _0xdb07d1=_0x65aa72;for(var _0x191262=_0xfd3a13[_0xdb07d1(0x271)],_0x404158=[],_0x52d092=0x0;_0x52d092<_0x191262;_0x52d092++)_0x404158[_0x52d092>>>0x2]|=(_0xfd3a13[_0xdb07d1(0x1a0)](_0x52d092)&0xff)<<0x18-_0x52d092%0x4*0x8;return new _0x567517[(_0xdb07d1(0x23c))](_0x404158,_0x191262);},_0x65aa72(0x246))},_0xdc7525=_0x15ef4c[_0x65aa72(0x42d)]={'stringify':__name(function(_0x56df8b){var _0x1a033f=_0x65aa72;try{return decodeURIComponent(escape(_0x2b960c[_0x1a033f(0x375)](_0x56df8b)));}catch{throw new Error(_0x1a033f(0x20a));}},_0x65aa72(0x375)),'parse':__name(function(_0x473be7){var _0x42d003=_0x65aa72;return _0x2b960c[_0x42d003(0x246)](unescape(encodeURIComponent(_0x473be7)));},'parse')},_0x3e8aa9=_0x4aa32d[_0x65aa72(0x1e4)]=_0x1007f1[_0x65aa72(0x1aa)]({'reset':__name(function(){var _0x32e040=_0x65aa72;this[_0x32e040(0x2a0)]=new _0x567517[(_0x32e040(0x23c))](),this[_0x32e040(0x348)]=0x0;},_0x65aa72(0x211)),'_append':__name(function(_0x1da55c){var _0x302c0b=_0x65aa72;typeof _0x1da55c=='string'&&(_0x1da55c=_0xdc7525['parse'](_0x1da55c)),this[_0x302c0b(0x2a0)][_0x302c0b(0x3d8)](_0x1da55c),this[_0x302c0b(0x348)]+=_0x1da55c['sigBytes'];},_0x65aa72(0x381)),'_process':__name(function(_0xaf75e4){var _0x15f4c5=_0x65aa72,_0x3f1375,_0x3fe1d8=this[_0x15f4c5(0x2a0)],_0x28c3ca=_0x3fe1d8[_0x15f4c5(0x327)],_0x5ab270=_0x3fe1d8[_0x15f4c5(0x444)],_0x3d545f=this[_0x15f4c5(0x163)],_0x44b590=_0x3d545f*0x4,_0x161dd5=_0x5ab270/_0x44b590;_0xaf75e4?_0x161dd5=_0x2bfbc6[_0x15f4c5(0x276)](_0x161dd5):_0x161dd5=_0x2bfbc6[_0x15f4c5(0x214)]((_0x161dd5|0x0)-this[_0x15f4c5(0x3f1)],0x0);var _0x43a7bf=_0x161dd5*_0x3d545f,_0x545685=_0x2bfbc6[_0x15f4c5(0x1f2)](_0x43a7bf*0x4,_0x5ab270);if(_0x43a7bf){for(var _0x211d4f=0x0;_0x211d4f<_0x43a7bf;_0x211d4f+=_0x3d545f)this[_0x15f4c5(0x402)](_0x28c3ca,_0x211d4f);_0x3f1375=_0x28c3ca[_0x15f4c5(0x159)](0x0,_0x43a7bf),_0x3fe1d8[_0x15f4c5(0x444)]-=_0x545685;}return new _0x567517[(_0x15f4c5(0x23c))](_0x3f1375,_0x545685);},_0x65aa72(0x3a6)),'clone':__name(function(){var _0x5807cf=_0x65aa72,_0x188524=_0x1007f1['clone']['call'](this);return _0x188524[_0x5807cf(0x2a0)]=this['_data'][_0x5807cf(0x361)](),_0x188524;},'clone'),'_minBufferSize':0x0});_0x4aa32d[_0x65aa72(0x474)]=_0x3e8aa9['extend']({'cfg':_0x1007f1[_0x65aa72(0x1aa)](),'init':__name(function(_0x2667e4){var _0x3493d9=_0x65aa72;this[_0x3493d9(0x28e)]=this['cfg'][_0x3493d9(0x1aa)](_0x2667e4),this[_0x3493d9(0x211)]();},_0x65aa72(0x23c)),'reset':__name(function(){var _0x5f072b=_0x65aa72;_0x3e8aa9[_0x5f072b(0x211)][_0x5f072b(0x451)](this),this['_doReset']();},_0x65aa72(0x211)),'update':__name(function(_0x36cb34){var _0x34e8a9=_0x65aa72;return this[_0x34e8a9(0x381)](_0x36cb34),this['_process'](),this;},_0x65aa72(0x350)),'finalize':__name(function(_0x4c14a7){var _0xa756fb=_0x65aa72;_0x4c14a7&&this[_0xa756fb(0x381)](_0x4c14a7);var _0x54884a=this[_0xa756fb(0x285)]();return _0x54884a;},'finalize'),'blockSize':0x10,'_createHelper':__name(function(_0x515d75){return function(_0xf63bf3,_0x305f53){var _0x3614c8=_0x214d;return new _0x515d75[(_0x3614c8(0x23c))](_0x305f53)[_0x3614c8(0x450)](_0xf63bf3);};},_0x65aa72(0x489)),'_createHmacHelper':__name(function(_0x500cc5){return function(_0x3d022d,_0x263bd5){var _0x3e1939=_0x214d;return new _0x27292d['HMAC'][(_0x3e1939(0x23c))](_0x500cc5,_0x263bd5)[_0x3e1939(0x450)](_0x3d022d);};},_0x65aa72(0x143))});var _0x27292d=_0x4005b4['algo']={};return _0x4005b4;}(Math);return _0x78b600;}));}(core$1)),core$1['exports'];}__name(requireCore,_0xa33034(0x3ce));var encBase64$1={'exports':{}},encBase64=encBase64$1[_0xa33034(0x457)],hasRequiredEncBase64;function requireEncBase64(){var _0x1a281e=_0xa33034;return hasRequiredEncBase64||(hasRequiredEncBase64=0x1,function(_0x170c79,_0x3ceadf){(function(_0x3664ff,_0x29f107){var _0x34c3f0=_0x214d;_0x170c79[_0x34c3f0(0x457)]=_0x29f107(requireCore());}(encBase64,function(_0x186751){var _0x67bba1=_0x214d;return(function(){var _0x20c731=_0x214d,_0x4509cc=_0x186751,_0x14090f=_0x4509cc[_0x20c731(0x372)],_0x2a93df=_0x14090f[_0x20c731(0x2ed)],_0x38d504=_0x4509cc[_0x20c731(0x138)];_0x38d504[_0x20c731(0x196)]={'stringify':__name(function(_0x4061ca){var _0x525bc6=_0x20c731,_0x5b1323=_0x4061ca[_0x525bc6(0x327)],_0x345019=_0x4061ca[_0x525bc6(0x444)],_0xd7198f=this[_0x525bc6(0x471)];_0x4061ca['clamp']();for(var _0x4d7ea6=[],_0x10af63=0x0;_0x10af63<_0x345019;_0x10af63+=0x3)for(var _0xa43eec=_0x5b1323[_0x10af63>>>0x2]>>>0x18-_0x10af63%0x4*0x8&0xff,_0x2f0c4e=_0x5b1323[_0x10af63+0x1>>>0x2]>>>0x18-(_0x10af63+0x1)%0x4*0x8&0xff,_0x15ecee=_0x5b1323[_0x10af63+0x2>>>0x2]>>>0x18-(_0x10af63+0x2)%0x4*0x8&0xff,_0x23f14f=_0xa43eec<<0x10|_0x2f0c4e<<0x8|_0x15ecee,_0xe54f6=0x0;_0xe54f6<0x4&&_0x10af63+_0xe54f6*0.75<_0x345019;_0xe54f6++)_0x4d7ea6['push'](_0xd7198f[_0x525bc6(0x2c6)](_0x23f14f>>>0x6*(0x3-_0xe54f6)&0x3f));var _0x2c6cf9=_0xd7198f[_0x525bc6(0x2c6)](0x40);if(_0x2c6cf9){for(;_0x4d7ea6[_0x525bc6(0x271)]%0x4;)_0x4d7ea6[_0x525bc6(0x34a)](_0x2c6cf9);}return _0x4d7ea6[_0x525bc6(0x3bb)]('');},_0x20c731(0x375)),'parse':__name(function(_0x2c0f83){var _0xffa6c0=_0x20c731,_0x1a4aae=_0x2c0f83[_0xffa6c0(0x271)],_0xcfdce2=this[_0xffa6c0(0x471)],_0x13f111=this[_0xffa6c0(0x25e)];if(!_0x13f111){_0x13f111=this[_0xffa6c0(0x25e)]=[];for(var _0x4883c3=0x0;_0x4883c3<_0xcfdce2[_0xffa6c0(0x271)];_0x4883c3++)_0x13f111[_0xcfdce2[_0xffa6c0(0x1a0)](_0x4883c3)]=_0x4883c3;}var _0x37a01f=_0xcfdce2[_0xffa6c0(0x2c6)](0x40);if(_0x37a01f){var _0x32f013=_0x2c0f83[_0xffa6c0(0x1ce)](_0x37a01f);_0x32f013!==-0x1&&(_0x1a4aae=_0x32f013);}return _0x34a510(_0x2c0f83,_0x1a4aae,_0x13f111);},_0x20c731(0x246)),'_map':_0x20c731(0x17e)};function _0x34a510(_0x1a1d07,_0x37ad50,_0x54116b){var _0x47067e=_0x20c731;for(var _0x30ee08=[],_0xa5d5b2=0x0,_0x3fa5cf=0x0;_0x3fa5cf<_0x37ad50;_0x3fa5cf++)if(_0x3fa5cf%0x4){var _0x4a7abc=_0x54116b[_0x1a1d07[_0x47067e(0x1a0)](_0x3fa5cf-0x1)]<<_0x3fa5cf%0x4*0x2,_0x372f9c=_0x54116b[_0x1a1d07[_0x47067e(0x1a0)](_0x3fa5cf)]>>>0x6-_0x3fa5cf%0x4*0x2,_0xb2c17d=_0x4a7abc|_0x372f9c;_0x30ee08[_0xa5d5b2>>>0x2]|=_0xb2c17d<<0x18-_0xa5d5b2%0x4*0x8,_0xa5d5b2++;}return _0x2a93df['create'](_0x30ee08,_0xa5d5b2);}__name(_0x34a510,'parseLoop');}()),_0x186751['enc'][_0x67bba1(0x196)];}));}(encBase64$1)),encBase64$1[_0x1a281e(0x457)];}__name(requireEncBase64,_0xa33034(0x345));var md5$1={'exports':{}},md5=md5$1[_0xa33034(0x457)],hasRequiredMd5;function requireMd5(){var _0x3c1126=_0xa33034;return hasRequiredMd5||(hasRequiredMd5=0x1,function(_0x4a17a4,_0xbbe4ff){(function(_0x4a2d2f,_0x13e738){var _0x4afbe0=_0x214d;_0x4a17a4[_0x4afbe0(0x457)]=_0x13e738(requireCore());}(md5,function(_0x3f6c22){var _0x377471=_0x214d;return function(_0x561636){var _0x3a0485=_0x214d,_0x5e3c38=_0x3f6c22,_0x5d6eb0=_0x5e3c38[_0x3a0485(0x372)],_0x243fa0=_0x5d6eb0['WordArray'],_0x5a7351=_0x5d6eb0[_0x3a0485(0x474)],_0x4577b4=_0x5e3c38[_0x3a0485(0x3a3)],_0x3ad708=[];(function(){var _0x4658cd=_0x3a0485;for(var _0x2962be=0x0;_0x2962be<0x40;_0x2962be++)_0x3ad708[_0x2962be]=_0x561636['abs'](_0x561636[_0x4658cd(0x317)](_0x2962be+0x1))*0x100000000|0x0;}());var _0x4adeea=_0x4577b4[_0x3a0485(0x3e6)]=_0x5a7351[_0x3a0485(0x1aa)]({'_doReset':__name(function(){var _0x151001=_0x3a0485;this['_hash']=new _0x243fa0[(_0x151001(0x23c))]([0x67452301,0xefcdab89,0x98badcfe,0x10325476]);},_0x3a0485(0x27f)),'_doProcessBlock':__name(function(_0x6d7bc0,_0x235d2d){var _0x28dc89=_0x3a0485;for(var _0x40003b=0x0;_0x40003b<0x10;_0x40003b++){var _0xf39802=_0x235d2d+_0x40003b,_0x6e53bb=_0x6d7bc0[_0xf39802];_0x6d7bc0[_0xf39802]=(_0x6e53bb<<0x8|_0x6e53bb>>>0x18)&0xff00ff|(_0x6e53bb<<0x18|_0x6e53bb>>>0x8)&0xff00ff00;}var _0x1b3110=this['_hash'][_0x28dc89(0x327)],_0x21dbcf=_0x6d7bc0[_0x235d2d+0x0],_0x28b18e=_0x6d7bc0[_0x235d2d+0x1],_0x36cf17=_0x6d7bc0[_0x235d2d+0x2],_0x51dcd5=_0x6d7bc0[_0x235d2d+0x3],_0x1fd07d=_0x6d7bc0[_0x235d2d+0x4],_0x5f85a3=_0x6d7bc0[_0x235d2d+0x5],_0x476e2e=_0x6d7bc0[_0x235d2d+0x6],_0x19adcf=_0x6d7bc0[_0x235d2d+0x7],_0x415de0=_0x6d7bc0[_0x235d2d+0x8],_0x3271ba=_0x6d7bc0[_0x235d2d+0x9],_0x5aa615=_0x6d7bc0[_0x235d2d+0xa],_0x50f4f8=_0x6d7bc0[_0x235d2d+0xb],_0x4a7d82=_0x6d7bc0[_0x235d2d+0xc],_0x5aa26b=_0x6d7bc0[_0x235d2d+0xd],_0x21166e=_0x6d7bc0[_0x235d2d+0xe],_0x58a17d=_0x6d7bc0[_0x235d2d+0xf],_0x18df3f=_0x1b3110[0x0],_0x33cf6b=_0x1b3110[0x1],_0x36efa9=_0x1b3110[0x2],_0x1c35c0=_0x1b3110[0x3];_0x18df3f=_0x30e759(_0x18df3f,_0x33cf6b,_0x36efa9,_0x1c35c0,_0x21dbcf,0x7,_0x3ad708[0x0]),_0x1c35c0=_0x30e759(_0x1c35c0,_0x18df3f,_0x33cf6b,_0x36efa9,_0x28b18e,0xc,_0x3ad708[0x1]),_0x36efa9=_0x30e759(_0x36efa9,_0x1c35c0,_0x18df3f,_0x33cf6b,_0x36cf17,0x11,_0x3ad708[0x2]),_0x33cf6b=_0x30e759(_0x33cf6b,_0x36efa9,_0x1c35c0,_0x18df3f,_0x51dcd5,0x16,_0x3ad708[0x3]),_0x18df3f=_0x30e759(_0x18df3f,_0x33cf6b,_0x36efa9,_0x1c35c0,_0x1fd07d,0x7,_0x3ad708[0x4]),_0x1c35c0=_0x30e759(_0x1c35c0,_0x18df3f,_0x33cf6b,_0x36efa9,_0x5f85a3,0xc,_0x3ad708[0x5]),_0x36efa9=_0x30e759(_0x36efa9,_0x1c35c0,_0x18df3f,_0x33cf6b,_0x476e2e,0x11,_0x3ad708[0x6]),_0x33cf6b=_0x30e759(_0x33cf6b,_0x36efa9,_0x1c35c0,_0x18df3f,_0x19adcf,0x16,_0x3ad708[0x7]),_0x18df3f=_0x30e759(_0x18df3f,_0x33cf6b,_0x36efa9,_0x1c35c0,_0x415de0,0x7,_0x3ad708[0x8]),_0x1c35c0=_0x30e759(_0x1c35c0,_0x18df3f,_0x33cf6b,_0x36efa9,_0x3271ba,0xc,_0x3ad708[0x9]),_0x36efa9=_0x30e759(_0x36efa9,_0x1c35c0,_0x18df3f,_0x33cf6b,_0x5aa615,0x11,_0x3ad708[0xa]),_0x33cf6b=_0x30e759(_0x33cf6b,_0x36efa9,_0x1c35c0,_0x18df3f,_0x50f4f8,0x16,_0x3ad708[0xb]),_0x18df3f=_0x30e759(_0x18df3f,_0x33cf6b,_0x36efa9,_0x1c35c0,_0x4a7d82,0x7,_0x3ad708[0xc]),_0x1c35c0=_0x30e759(_0x1c35c0,_0x18df3f,_0x33cf6b,_0x36efa9,_0x5aa26b,0xc,_0x3ad708[0xd]),_0x36efa9=_0x30e759(_0x36efa9,_0x1c35c0,_0x18df3f,_0x33cf6b,_0x21166e,0x11,_0x3ad708[0xe]),_0x33cf6b=_0x30e759(_0x33cf6b,_0x36efa9,_0x1c35c0,_0x18df3f,_0x58a17d,0x16,_0x3ad708[0xf]),_0x18df3f=_0x592699(_0x18df3f,_0x33cf6b,_0x36efa9,_0x1c35c0,_0x28b18e,0x5,_0x3ad708[0x10]),_0x1c35c0=_0x592699(_0x1c35c0,_0x18df3f,_0x33cf6b,_0x36efa9,_0x476e2e,0x9,_0x3ad708[0x11]),_0x36efa9=_0x592699(_0x36efa9,_0x1c35c0,_0x18df3f,_0x33cf6b,_0x50f4f8,0xe,_0x3ad708[0x12]),_0x33cf6b=_0x592699(_0x33cf6b,_0x36efa9,_0x1c35c0,_0x18df3f,_0x21dbcf,0x14,_0x3ad708[0x13]),_0x18df3f=_0x592699(_0x18df3f,_0x33cf6b,_0x36efa9,_0x1c35c0,_0x5f85a3,0x5,_0x3ad708[0x14]),_0x1c35c0=_0x592699(_0x1c35c0,_0x18df3f,_0x33cf6b,_0x36efa9,_0x5aa615,0x9,_0x3ad708[0x15]),_0x36efa9=_0x592699(_0x36efa9,_0x1c35c0,_0x18df3f,_0x33cf6b,_0x58a17d,0xe,_0x3ad708[0x16]),_0x33cf6b=_0x592699(_0x33cf6b,_0x36efa9,_0x1c35c0,_0x18df3f,_0x1fd07d,0x14,_0x3ad708[0x17]),_0x18df3f=_0x592699(_0x18df3f,_0x33cf6b,_0x36efa9,_0x1c35c0,_0x3271ba,0x5,_0x3ad708[0x18]),_0x1c35c0=_0x592699(_0x1c35c0,_0x18df3f,_0x33cf6b,_0x36efa9,_0x21166e,0x9,_0x3ad708[0x19]),_0x36efa9=_0x592699(_0x36efa9,_0x1c35c0,_0x18df3f,_0x33cf6b,_0x51dcd5,0xe,_0x3ad708[0x1a]),_0x33cf6b=_0x592699(_0x33cf6b,_0x36efa9,_0x1c35c0,_0x18df3f,_0x415de0,0x14,_0x3ad708[0x1b]),_0x18df3f=_0x592699(_0x18df3f,_0x33cf6b,_0x36efa9,_0x1c35c0,_0x5aa26b,0x5,_0x3ad708[0x1c]),_0x1c35c0=_0x592699(_0x1c35c0,_0x18df3f,_0x33cf6b,_0x36efa9,_0x36cf17,0x9,_0x3ad708[0x1d]),_0x36efa9=_0x592699(_0x36efa9,_0x1c35c0,_0x18df3f,_0x33cf6b,_0x19adcf,0xe,_0x3ad708[0x1e]),_0x33cf6b=_0x592699(_0x33cf6b,_0x36efa9,_0x1c35c0,_0x18df3f,_0x4a7d82,0x14,_0x3ad708[0x1f]),_0x18df3f=_0x8057b9(_0x18df3f,_0x33cf6b,_0x36efa9,_0x1c35c0,_0x5f85a3,0x4,_0x3ad708[0x20]),_0x1c35c0=_0x8057b9(_0x1c35c0,_0x18df3f,_0x33cf6b,_0x36efa9,_0x415de0,0xb,_0x3ad708[0x21]),_0x36efa9=_0x8057b9(_0x36efa9,_0x1c35c0,_0x18df3f,_0x33cf6b,_0x50f4f8,0x10,_0x3ad708[0x22]),_0x33cf6b=_0x8057b9(_0x33cf6b,_0x36efa9,_0x1c35c0,_0x18df3f,_0x21166e,0x17,_0x3ad708[0x23]),_0x18df3f=_0x8057b9(_0x18df3f,_0x33cf6b,_0x36efa9,_0x1c35c0,_0x28b18e,0x4,_0x3ad708[0x24]),_0x1c35c0=_0x8057b9(_0x1c35c0,_0x18df3f,_0x33cf6b,_0x36efa9,_0x1fd07d,0xb,_0x3ad708[0x25]),_0x36efa9=_0x8057b9(_0x36efa9,_0x1c35c0,_0x18df3f,_0x33cf6b,_0x19adcf,0x10,_0x3ad708[0x26]),_0x33cf6b=_0x8057b9(_0x33cf6b,_0x36efa9,_0x1c35c0,_0x18df3f,_0x5aa615,0x17,_0x3ad708[0x27]),_0x18df3f=_0x8057b9(_0x18df3f,_0x33cf6b,_0x36efa9,_0x1c35c0,_0x5aa26b,0x4,_0x3ad708[0x28]),_0x1c35c0=_0x8057b9(_0x1c35c0,_0x18df3f,_0x33cf6b,_0x36efa9,_0x21dbcf,0xb,_0x3ad708[0x29]),_0x36efa9=_0x8057b9(_0x36efa9,_0x1c35c0,_0x18df3f,_0x33cf6b,_0x51dcd5,0x10,_0x3ad708[0x2a]),_0x33cf6b=_0x8057b9(_0x33cf6b,_0x36efa9,_0x1c35c0,_0x18df3f,_0x476e2e,0x17,_0x3ad708[0x2b]),_0x18df3f=_0x8057b9(_0x18df3f,_0x33cf6b,_0x36efa9,_0x1c35c0,_0x3271ba,0x4,_0x3ad708[0x2c]),_0x1c35c0=_0x8057b9(_0x1c35c0,_0x18df3f,_0x33cf6b,_0x36efa9,_0x4a7d82,0xb,_0x3ad708[0x2d]),_0x36efa9=_0x8057b9(_0x36efa9,_0x1c35c0,_0x18df3f,_0x33cf6b,_0x58a17d,0x10,_0x3ad708[0x2e]),_0x33cf6b=_0x8057b9(_0x33cf6b,_0x36efa9,_0x1c35c0,_0x18df3f,_0x36cf17,0x17,_0x3ad708[0x2f]),_0x18df3f=_0x4e00da(_0x18df3f,_0x33cf6b,_0x36efa9,_0x1c35c0,_0x21dbcf,0x6,_0x3ad708[0x30]),_0x1c35c0=_0x4e00da(_0x1c35c0,_0x18df3f,_0x33cf6b,_0x36efa9,_0x19adcf,0xa,_0x3ad708[0x31]),_0x36efa9=_0x4e00da(_0x36efa9,_0x1c35c0,_0x18df3f,_0x33cf6b,_0x21166e,0xf,_0x3ad708[0x32]),_0x33cf6b=_0x4e00da(_0x33cf6b,_0x36efa9,_0x1c35c0,_0x18df3f,_0x5f85a3,0x15,_0x3ad708[0x33]),_0x18df3f=_0x4e00da(_0x18df3f,_0x33cf6b,_0x36efa9,_0x1c35c0,_0x4a7d82,0x6,_0x3ad708[0x34]),_0x1c35c0=_0x4e00da(_0x1c35c0,_0x18df3f,_0x33cf6b,_0x36efa9,_0x51dcd5,0xa,_0x3ad708[0x35]),_0x36efa9=_0x4e00da(_0x36efa9,_0x1c35c0,_0x18df3f,_0x33cf6b,_0x5aa615,0xf,_0x3ad708[0x36]),_0x33cf6b=_0x4e00da(_0x33cf6b,_0x36efa9,_0x1c35c0,_0x18df3f,_0x28b18e,0x15,_0x3ad708[0x37]),_0x18df3f=_0x4e00da(_0x18df3f,_0x33cf6b,_0x36efa9,_0x1c35c0,_0x415de0,0x6,_0x3ad708[0x38]),_0x1c35c0=_0x4e00da(_0x1c35c0,_0x18df3f,_0x33cf6b,_0x36efa9,_0x58a17d,0xa,_0x3ad708[0x39]),_0x36efa9=_0x4e00da(_0x36efa9,_0x1c35c0,_0x18df3f,_0x33cf6b,_0x476e2e,0xf,_0x3ad708[0x3a]),_0x33cf6b=_0x4e00da(_0x33cf6b,_0x36efa9,_0x1c35c0,_0x18df3f,_0x5aa26b,0x15,_0x3ad708[0x3b]),_0x18df3f=_0x4e00da(_0x18df3f,_0x33cf6b,_0x36efa9,_0x1c35c0,_0x1fd07d,0x6,_0x3ad708[0x3c]),_0x1c35c0=_0x4e00da(_0x1c35c0,_0x18df3f,_0x33cf6b,_0x36efa9,_0x50f4f8,0xa,_0x3ad708[0x3d]),_0x36efa9=_0x4e00da(_0x36efa9,_0x1c35c0,_0x18df3f,_0x33cf6b,_0x36cf17,0xf,_0x3ad708[0x3e]),_0x33cf6b=_0x4e00da(_0x33cf6b,_0x36efa9,_0x1c35c0,_0x18df3f,_0x3271ba,0x15,_0x3ad708[0x3f]),_0x1b3110[0x0]=_0x1b3110[0x0]+_0x18df3f|0x0,_0x1b3110[0x1]=_0x1b3110[0x1]+_0x33cf6b|0x0,_0x1b3110[0x2]=_0x1b3110[0x2]+_0x36efa9|0x0,_0x1b3110[0x3]=_0x1b3110[0x3]+_0x1c35c0|0x0;},_0x3a0485(0x402)),'_doFinalize':__name(function(){var _0x594697=_0x3a0485,_0x38a606=this[_0x594697(0x2a0)],_0x2bd3dc=_0x38a606[_0x594697(0x327)],_0x68e561=this[_0x594697(0x348)]*0x8,_0x536937=_0x38a606[_0x594697(0x444)]*0x8;_0x2bd3dc[_0x536937>>>0x5]|=0x80<<0x18-_0x536937%0x20;var _0x14332f=_0x561636['floor'](_0x68e561/0x100000000),_0x97b4b6=_0x68e561;_0x2bd3dc[(_0x536937+0x40>>>0x9<<0x4)+0xf]=(_0x14332f<<0x8|_0x14332f>>>0x18)&0xff00ff|(_0x14332f<<0x18|_0x14332f>>>0x8)&0xff00ff00,_0x2bd3dc[(_0x536937+0x40>>>0x9<<0x4)+0xe]=(_0x97b4b6<<0x8|_0x97b4b6>>>0x18)&0xff00ff|(_0x97b4b6<<0x18|_0x97b4b6>>>0x8)&0xff00ff00,_0x38a606['sigBytes']=(_0x2bd3dc[_0x594697(0x271)]+0x1)*0x4,this['_process']();for(var _0x59b4f6=this[_0x594697(0x19b)],_0xafa39a=_0x59b4f6[_0x594697(0x327)],_0xf56497=0x0;_0xf56497<0x4;_0xf56497++){var _0x3bacec=_0xafa39a[_0xf56497];_0xafa39a[_0xf56497]=(_0x3bacec<<0x8|_0x3bacec>>>0x18)&0xff00ff|(_0x3bacec<<0x18|_0x3bacec>>>0x8)&0xff00ff00;}return _0x59b4f6;},_0x3a0485(0x285)),'clone':__name(function(){var _0x3ffab4=_0x3a0485,_0x460748=_0x5a7351[_0x3ffab4(0x361)][_0x3ffab4(0x451)](this);return _0x460748[_0x3ffab4(0x19b)]=this[_0x3ffab4(0x19b)][_0x3ffab4(0x361)](),_0x460748;},'clone')});function _0x30e759(_0x56e719,_0x5e0b1f,_0x29016b,_0x14cc45,_0xb301b7,_0x2e9f5c,_0x5ac27c){var _0x39f7f3=_0x56e719+(_0x5e0b1f&_0x29016b|~_0x5e0b1f&_0x14cc45)+_0xb301b7+_0x5ac27c;return(_0x39f7f3<<_0x2e9f5c|_0x39f7f3>>>0x20-_0x2e9f5c)+_0x5e0b1f;}__name(_0x30e759,'FF');function _0x592699(_0x40b0de,_0x15d709,_0x3eb245,_0x970dd5,_0x5d425b,_0x56dc6c,_0x2f54cd){var _0x5a9cc8=_0x40b0de+(_0x15d709&_0x970dd5|_0x3eb245&~_0x970dd5)+_0x5d425b+_0x2f54cd;return(_0x5a9cc8<<_0x56dc6c|_0x5a9cc8>>>0x20-_0x56dc6c)+_0x15d709;}__name(_0x592699,'GG');function _0x8057b9(_0x11d72a,_0x28f5e6,_0x3f3072,_0x373399,_0x4b7cb8,_0x3802a2,_0xce814c){var _0x518b43=_0x11d72a+(_0x28f5e6^_0x3f3072^_0x373399)+_0x4b7cb8+_0xce814c;return(_0x518b43<<_0x3802a2|_0x518b43>>>0x20-_0x3802a2)+_0x28f5e6;}__name(_0x8057b9,'HH');function _0x4e00da(_0x558ebf,_0x3eb58d,_0x5c530a,_0x2480c4,_0x29a4d6,_0x497532,_0x4d01ac){var _0xb2f7c5=_0x558ebf+(_0x5c530a^(_0x3eb58d|~_0x2480c4))+_0x29a4d6+_0x4d01ac;return(_0xb2f7c5<<_0x497532|_0xb2f7c5>>>0x20-_0x497532)+_0x3eb58d;}__name(_0x4e00da,'II'),_0x5e3c38[_0x3a0485(0x3e6)]=_0x5a7351[_0x3a0485(0x489)](_0x4adeea),_0x5e3c38['HmacMD5']=_0x5a7351[_0x3a0485(0x143)](_0x4adeea);}(Math),_0x3f6c22[_0x377471(0x3e6)];}));}(md5$1)),md5$1[_0x3c1126(0x457)];}__name(requireMd5,'requireMd5');var evpkdf$1={'exports':{}},sha1$1={'exports':{}},sha1=sha1$1[_0xa33034(0x457)],hasRequiredSha1;function requireSha1(){var _0x367ad8=_0xa33034;return hasRequiredSha1||(hasRequiredSha1=0x1,function(_0x30d2a9,_0x52151d){(function(_0x36e9a3,_0x5d0ff4){_0x30d2a9['exports']=_0x5d0ff4(requireCore());}(sha1,function(_0x2a283d){var _0x3eecca=_0x214d;return(function(){var _0x1ef5b7=_0x214d,_0x2df356=_0x2a283d,_0x3f348d=_0x2df356['lib'],_0x16732f=_0x3f348d[_0x1ef5b7(0x2ed)],_0x425f1b=_0x3f348d[_0x1ef5b7(0x474)],_0x8ada5a=_0x2df356[_0x1ef5b7(0x3a3)],_0xbe4f39=[],_0x26948e=_0x8ada5a['SHA1']=_0x425f1b[_0x1ef5b7(0x1aa)]({'_doReset':__name(function(){var _0x146461=_0x1ef5b7;this[_0x146461(0x19b)]=new _0x16732f[(_0x146461(0x23c))]([0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0]);},'_doReset'),'_doProcessBlock':__name(function(_0x1f9b3a,_0x39ff2a){var _0x5ae649=_0x1ef5b7;for(var _0x3f1635=this[_0x5ae649(0x19b)][_0x5ae649(0x327)],_0x667ac6=_0x3f1635[0x0],_0x1a7583=_0x3f1635[0x1],_0x4a7fe5=_0x3f1635[0x2],_0x19041a=_0x3f1635[0x3],_0x5aa7e1=_0x3f1635[0x4],_0x3ec25d=0x0;_0x3ec25d<0x50;_0x3ec25d++){if(_0x3ec25d<0x10)_0xbe4f39[_0x3ec25d]=_0x1f9b3a[_0x39ff2a+_0x3ec25d]|0x0;else{var _0x36945d=_0xbe4f39[_0x3ec25d-0x3]^_0xbe4f39[_0x3ec25d-0x8]^_0xbe4f39[_0x3ec25d-0xe]^_0xbe4f39[_0x3ec25d-0x10];_0xbe4f39[_0x3ec25d]=_0x36945d<<0x1|_0x36945d>>>0x1f;}var _0xa4686b=(_0x667ac6<<0x5|_0x667ac6>>>0x1b)+_0x5aa7e1+_0xbe4f39[_0x3ec25d];_0x3ec25d<0x14?_0xa4686b+=(_0x1a7583&_0x4a7fe5|~_0x1a7583&_0x19041a)+0x5a827999:_0x3ec25d<0x28?_0xa4686b+=(_0x1a7583^_0x4a7fe5^_0x19041a)+0x6ed9eba1:_0x3ec25d<0x3c?_0xa4686b+=(_0x1a7583&_0x4a7fe5|_0x1a7583&_0x19041a|_0x4a7fe5&_0x19041a)-0x70e44324:_0xa4686b+=(_0x1a7583^_0x4a7fe5^_0x19041a)-0x359d3e2a,_0x5aa7e1=_0x19041a,_0x19041a=_0x4a7fe5,_0x4a7fe5=_0x1a7583<<0x1e|_0x1a7583>>>0x2,_0x1a7583=_0x667ac6,_0x667ac6=_0xa4686b;}_0x3f1635[0x0]=_0x3f1635[0x0]+_0x667ac6|0x0,_0x3f1635[0x1]=_0x3f1635[0x1]+_0x1a7583|0x0,_0x3f1635[0x2]=_0x3f1635[0x2]+_0x4a7fe5|0x0,_0x3f1635[0x3]=_0x3f1635[0x3]+_0x19041a|0x0,_0x3f1635[0x4]=_0x3f1635[0x4]+_0x5aa7e1|0x0;},_0x1ef5b7(0x402)),'_doFinalize':__name(function(){var _0x490729=_0x1ef5b7,_0x4e87fc=this[_0x490729(0x2a0)],_0x3dbf4b=_0x4e87fc['words'],_0x569a75=this[_0x490729(0x348)]*0x8,_0x77b3c=_0x4e87fc[_0x490729(0x444)]*0x8;return _0x3dbf4b[_0x77b3c>>>0x5]|=0x80<<0x18-_0x77b3c%0x20,_0x3dbf4b[(_0x77b3c+0x40>>>0x9<<0x4)+0xe]=Math[_0x490729(0x2cb)](_0x569a75/0x100000000),_0x3dbf4b[(_0x77b3c+0x40>>>0x9<<0x4)+0xf]=_0x569a75,_0x4e87fc[_0x490729(0x444)]=_0x3dbf4b[_0x490729(0x271)]*0x4,this[_0x490729(0x3a6)](),this[_0x490729(0x19b)];},_0x1ef5b7(0x285)),'clone':__name(function(){var _0x3a4611=_0x1ef5b7,_0x2b229b=_0x425f1b[_0x3a4611(0x361)][_0x3a4611(0x451)](this);return _0x2b229b[_0x3a4611(0x19b)]=this[_0x3a4611(0x19b)][_0x3a4611(0x361)](),_0x2b229b;},'clone')});_0x2df356[_0x1ef5b7(0x32c)]=_0x425f1b[_0x1ef5b7(0x489)](_0x26948e),_0x2df356['HmacSHA1']=_0x425f1b[_0x1ef5b7(0x143)](_0x26948e);}()),_0x2a283d[_0x3eecca(0x32c)];}));}(sha1$1)),sha1$1[_0x367ad8(0x457)];}__name(requireSha1,_0xa33034(0x18b));var hmac$1={'exports':{}},hmac=hmac$1[_0xa33034(0x457)],hasRequiredHmac;function requireHmac(){var _0x5d1cbc=_0xa33034;return hasRequiredHmac||(hasRequiredHmac=0x1,function(_0x528272,_0x486759){(function(_0x15e802,_0x21f317){var _0x58c38b=_0x214d;_0x528272[_0x58c38b(0x457)]=_0x21f317(requireCore());}(hmac,function(_0x401f98){(function(){var _0x28ad82=_0x214d,_0x576847=_0x401f98,_0x15a9a3=_0x576847[_0x28ad82(0x372)],_0x1a9d5b=_0x15a9a3[_0x28ad82(0x337)],_0x4e2923=_0x576847[_0x28ad82(0x138)],_0x31d876=_0x4e2923[_0x28ad82(0x42d)],_0x2c6427=_0x576847[_0x28ad82(0x3a3)];_0x2c6427['HMAC']=_0x1a9d5b[_0x28ad82(0x1aa)]({'init':__name(function(_0x1d35d5,_0x3864ed){var _0xe099aa=_0x28ad82;_0x1d35d5=this[_0xe099aa(0x224)]=new _0x1d35d5[(_0xe099aa(0x23c))](),typeof _0x3864ed==_0xe099aa(0x480)&&(_0x3864ed=_0x31d876[_0xe099aa(0x246)](_0x3864ed));var _0x881d54=_0x1d35d5[_0xe099aa(0x163)],_0x47649f=_0x881d54*0x4;_0x3864ed[_0xe099aa(0x444)]>_0x47649f&&(_0x3864ed=_0x1d35d5[_0xe099aa(0x450)](_0x3864ed)),_0x3864ed[_0xe099aa(0x297)]();for(var _0x463389=this[_0xe099aa(0x336)]=_0x3864ed[_0xe099aa(0x361)](),_0x5e71e1=this[_0xe099aa(0x186)]=_0x3864ed[_0xe099aa(0x361)](),_0x2569e7=_0x463389[_0xe099aa(0x327)],_0x2d791c=_0x5e71e1[_0xe099aa(0x327)],_0x50ed3f=0x0;_0x50ed3f<_0x881d54;_0x50ed3f++)_0x2569e7[_0x50ed3f]^=0x5c5c5c5c,_0x2d791c[_0x50ed3f]^=0x36363636;_0x463389[_0xe099aa(0x444)]=_0x5e71e1[_0xe099aa(0x444)]=_0x47649f,this['reset']();},_0x28ad82(0x23c)),'reset':__name(function(){var _0x577fdf=_0x28ad82,_0x5b216f=this[_0x577fdf(0x224)];_0x5b216f['reset'](),_0x5b216f[_0x577fdf(0x350)](this[_0x577fdf(0x186)]);},_0x28ad82(0x211)),'update':__name(function(_0x12d1fb){var _0x7e973d=_0x28ad82;return this[_0x7e973d(0x224)][_0x7e973d(0x350)](_0x12d1fb),this;},_0x28ad82(0x350)),'finalize':__name(function(_0x11ca34){var _0x5a514f=_0x28ad82,_0xdb66b7=this['_hasher'],_0x18899a=_0xdb66b7['finalize'](_0x11ca34);_0xdb66b7[_0x5a514f(0x211)]();var _0x201e2b=_0xdb66b7[_0x5a514f(0x450)](this[_0x5a514f(0x336)][_0x5a514f(0x361)]()[_0x5a514f(0x3d8)](_0x18899a));return _0x201e2b;},'finalize')});}());}));}(hmac$1)),hmac$1[_0x5d1cbc(0x457)];}__name(requireHmac,_0xa33034(0x3e2));var evpkdf=evpkdf$1[_0xa33034(0x457)],hasRequiredEvpkdf;function requireEvpkdf(){var _0x3b0bd7=_0xa33034;return hasRequiredEvpkdf||(hasRequiredEvpkdf=0x1,function(_0x22cd4a,_0xf3cfee){(function(_0x51dbdf,_0x580690,_0xf3d7b2){var _0xb6975e=_0x214d;_0x22cd4a[_0xb6975e(0x457)]=_0x580690(requireCore(),requireSha1(),requireHmac());}(evpkdf,function(_0x437385){return(function(){var _0x44ed1b=_0x214d,_0x289e71=_0x437385,_0x864c78=_0x289e71[_0x44ed1b(0x372)],_0x2abd5b=_0x864c78[_0x44ed1b(0x337)],_0x38abaf=_0x864c78['WordArray'],_0x51ec55=_0x289e71[_0x44ed1b(0x3a3)],_0x472a6e=_0x51ec55['MD5'],_0x399a01=_0x51ec55[_0x44ed1b(0x3fb)]=_0x2abd5b['extend']({'cfg':_0x2abd5b['extend']({'keySize':0x80/0x20,'hasher':_0x472a6e,'iterations':0x1}),'init':__name(function(_0x1bf250){var _0x579283=_0x44ed1b;this[_0x579283(0x28e)]=this[_0x579283(0x28e)][_0x579283(0x1aa)](_0x1bf250);},_0x44ed1b(0x23c)),'compute':__name(function(_0x4712da,_0x3561a5){var _0x1b2968=_0x44ed1b;for(var _0x35ad68,_0xc9c36b=this[_0x1b2968(0x28e)],_0x5ef49e=_0xc9c36b[_0x1b2968(0x262)][_0x1b2968(0x274)](),_0xde0332=_0x38abaf['create'](),_0x5f221a=_0xde0332['words'],_0xd8dcab=_0xc9c36b[_0x1b2968(0x3a5)],_0xf5c986=_0xc9c36b[_0x1b2968(0x26b)];_0x5f221a[_0x1b2968(0x271)]<_0xd8dcab;){_0x35ad68&&_0x5ef49e[_0x1b2968(0x350)](_0x35ad68),_0x35ad68=_0x5ef49e[_0x1b2968(0x350)](_0x4712da)[_0x1b2968(0x450)](_0x3561a5),_0x5ef49e[_0x1b2968(0x211)]();for(var _0x56bd8d=0x1;_0x56bd8d<_0xf5c986;_0x56bd8d++)_0x35ad68=_0x5ef49e[_0x1b2968(0x450)](_0x35ad68),_0x5ef49e[_0x1b2968(0x211)]();_0xde0332[_0x1b2968(0x3d8)](_0x35ad68);}return _0xde0332['sigBytes']=_0xd8dcab*0x4,_0xde0332;},_0x44ed1b(0x2e9))});_0x289e71['EvpKDF']=function(_0x331643,_0x55d2d0,_0x5bb3d5){var _0xce88ba=_0x44ed1b;return _0x399a01['create'](_0x5bb3d5)[_0xce88ba(0x2e9)](_0x331643,_0x55d2d0);};}()),_0x437385['EvpKDF'];}));}(evpkdf$1)),evpkdf$1[_0x3b0bd7(0x457)];}__name(requireEvpkdf,_0xa33034(0x2dd));var cipherCore$1={'exports':{}},cipherCore=cipherCore$1['exports'],hasRequiredCipherCore;function requireCipherCore(){var _0x18dbce=_0xa33034;return hasRequiredCipherCore||(hasRequiredCipherCore=0x1,function(_0x150074,_0x37834d){(function(_0x27a566,_0x555fb2,_0x3c1ff3){var _0x1fa0ae=_0x214d;_0x150074[_0x1fa0ae(0x457)]=_0x555fb2(requireCore(),requireEvpkdf());}(cipherCore,function(_0x14bbac){var _0x138c66=_0x214d;_0x14bbac[_0x138c66(0x372)]['Cipher']||function(_0x28720b){var _0x1d1fbe=_0x138c66,_0x3b7241=_0x14bbac,_0x2bdb97=_0x3b7241['lib'],_0xbbac3e=_0x2bdb97[_0x1d1fbe(0x337)],_0xe96924=_0x2bdb97['WordArray'],_0x5f5c1a=_0x2bdb97['BufferedBlockAlgorithm'],_0x382bc5=_0x3b7241[_0x1d1fbe(0x138)];_0x382bc5[_0x1d1fbe(0x42d)];var _0x2875cf=_0x382bc5[_0x1d1fbe(0x196)],_0x227ebe=_0x3b7241[_0x1d1fbe(0x3a3)],_0x328460=_0x227ebe['EvpKDF'],_0x48a3f6=_0x2bdb97[_0x1d1fbe(0x21b)]=_0x5f5c1a[_0x1d1fbe(0x1aa)]({'cfg':_0xbbac3e['extend'](),'createEncryptor':__name(function(_0x322db6,_0x2abd5c){var _0x10b8f9=_0x1d1fbe;return this[_0x10b8f9(0x274)](this[_0x10b8f9(0x1e8)],_0x322db6,_0x2abd5c);},_0x1d1fbe(0x2a7)),'createDecryptor':__name(function(_0x5ee821,_0xe1f94a){var _0x5f01c7=_0x1d1fbe;return this[_0x5f01c7(0x274)](this[_0x5f01c7(0x16d)],_0x5ee821,_0xe1f94a);},_0x1d1fbe(0x3a0)),'init':__name(function(_0xe30d5b,_0x2f2534,_0x50e6a5){var _0x547545=_0x1d1fbe;this[_0x547545(0x28e)]=this[_0x547545(0x28e)]['extend'](_0x50e6a5),this['_xformMode']=_0xe30d5b,this[_0x547545(0x316)]=_0x2f2534,this['reset']();},_0x1d1fbe(0x23c)),'reset':__name(function(){var _0x29c71d=_0x1d1fbe;_0x5f5c1a[_0x29c71d(0x211)][_0x29c71d(0x451)](this),this[_0x29c71d(0x27f)]();},'reset'),'process':__name(function(_0x49d36){var _0x11851b=_0x1d1fbe;return this[_0x11851b(0x381)](_0x49d36),this[_0x11851b(0x3a6)]();},_0x1d1fbe(0x3a4)),'finalize':__name(function(_0x38c32b){var _0x22765f=_0x1d1fbe;_0x38c32b&&this[_0x22765f(0x381)](_0x38c32b);var _0x59a30b=this[_0x22765f(0x285)]();return _0x59a30b;},_0x1d1fbe(0x450)),'keySize':0x80/0x20,'ivSize':0x80/0x20,'_ENC_XFORM_MODE':0x1,'_DEC_XFORM_MODE':0x2,'_createHelper':(function(){function _0x5a1d95(_0x1abd58){return typeof _0x1abd58=='string'?_0x630f38:_0x5defa9;}return __name(_0x5a1d95,'selectCipherStrategy'),function(_0x5ef300){var _0x2cb509=_0x214d;return{'encrypt':__name(function(_0x2059e6,_0x2e147c,_0x80f5c7){return _0x5a1d95(_0x2e147c)['encrypt'](_0x5ef300,_0x2059e6,_0x2e147c,_0x80f5c7);},'encrypt'),'decrypt':__name(function(_0x3422a5,_0x738c90,_0x37834a){var _0x132cf2=_0x214d;return _0x5a1d95(_0x738c90)[_0x132cf2(0x2f4)](_0x5ef300,_0x3422a5,_0x738c90,_0x37834a);},_0x2cb509(0x2f4))};};}())});_0x2bdb97[_0x1d1fbe(0x1f8)]=_0x48a3f6[_0x1d1fbe(0x1aa)]({'_doFinalize':__name(function(){var _0x5109b6=_0x1d1fbe,_0x5ff9b4=this[_0x5109b6(0x3a6)](!0x0);return _0x5ff9b4;},_0x1d1fbe(0x285)),'blockSize':0x1});var _0x46a9aa=_0x3b7241[_0x1d1fbe(0x1f7)]={},_0x145291=_0x2bdb97[_0x1d1fbe(0x1ee)]=_0xbbac3e[_0x1d1fbe(0x1aa)]({'createEncryptor':__name(function(_0x22597c,_0x230d43){var _0x58883e=_0x1d1fbe;return this[_0x58883e(0x3a8)][_0x58883e(0x274)](_0x22597c,_0x230d43);},_0x1d1fbe(0x2a7)),'createDecryptor':__name(function(_0x55fd9c,_0x381537){var _0x2a6b2f=_0x1d1fbe;return this[_0x2a6b2f(0x300)]['create'](_0x55fd9c,_0x381537);},_0x1d1fbe(0x3a0)),'init':__name(function(_0x5bb22d,_0x31786d){this['_cipher']=_0x5bb22d,this['_iv']=_0x31786d;},_0x1d1fbe(0x23c))}),_0x355375=_0x46a9aa[_0x1d1fbe(0x223)]=(function(){var _0x5929c4=_0x1d1fbe,_0x4e9d72=_0x145291[_0x5929c4(0x1aa)]();_0x4e9d72[_0x5929c4(0x3a8)]=_0x4e9d72[_0x5929c4(0x1aa)]({'processBlock':__name(function(_0x4aafcf,_0x20fff5){var _0x132f68=_0x5929c4,_0x5747c5=this[_0x132f68(0x2f3)],_0x529973=_0x5747c5['blockSize'];_0xcc66a3[_0x132f68(0x451)](this,_0x4aafcf,_0x20fff5,_0x529973),_0x5747c5[_0x132f68(0x1ae)](_0x4aafcf,_0x20fff5),this[_0x132f68(0x14f)]=_0x4aafcf[_0x132f68(0x178)](_0x20fff5,_0x20fff5+_0x529973);},'processBlock')}),_0x4e9d72['Decryptor']=_0x4e9d72[_0x5929c4(0x1aa)]({'processBlock':__name(function(_0x310804,_0x178025){var _0x4c21d3=_0x5929c4,_0x5ba619=this[_0x4c21d3(0x2f3)],_0x4a80eb=_0x5ba619[_0x4c21d3(0x163)],_0x2b6c30=_0x310804[_0x4c21d3(0x178)](_0x178025,_0x178025+_0x4a80eb);_0x5ba619[_0x4c21d3(0x2ae)](_0x310804,_0x178025),_0xcc66a3[_0x4c21d3(0x451)](this,_0x310804,_0x178025,_0x4a80eb),this['_prevBlock']=_0x2b6c30;},'processBlock')});function _0xcc66a3(_0x55cd80,_0x59b6a3,_0x524dbc){var _0x16457a=_0x5929c4,_0xd8487a,_0x15ef73=this[_0x16457a(0x328)];_0x15ef73?(_0xd8487a=_0x15ef73,this[_0x16457a(0x328)]=_0x28720b):_0xd8487a=this[_0x16457a(0x14f)];for(var _0xab60d5=0x0;_0xab60d5<_0x524dbc;_0xab60d5++)_0x55cd80[_0x59b6a3+_0xab60d5]^=_0xd8487a[_0xab60d5];}return __name(_0xcc66a3,_0x5929c4(0x2b3)),_0x4e9d72;}()),_0x491ea5=_0x3b7241[_0x1d1fbe(0x370)]={},_0x26e631=_0x491ea5[_0x1d1fbe(0x3ea)]={'pad':__name(function(_0x15df55,_0x1ff5d7){var _0xfe01d2=_0x1d1fbe;for(var _0x4a8e51=_0x1ff5d7*0x4,_0x18d57b=_0x4a8e51-_0x15df55['sigBytes']%_0x4a8e51,_0xb1ee46=_0x18d57b<<0x18|_0x18d57b<<0x10|_0x18d57b<<0x8|_0x18d57b,_0x32096b=[],_0x3536d2=0x0;_0x3536d2<_0x18d57b;_0x3536d2+=0x4)_0x32096b[_0xfe01d2(0x34a)](_0xb1ee46);var _0x3fbfc9=_0xe96924[_0xfe01d2(0x274)](_0x32096b,_0x18d57b);_0x15df55[_0xfe01d2(0x3d8)](_0x3fbfc9);},_0x1d1fbe(0x370)),'unpad':__name(function(_0x1a6631){var _0x4105c7=_0x1d1fbe,_0x4def47=_0x1a6631[_0x4105c7(0x327)][_0x1a6631[_0x4105c7(0x444)]-0x1>>>0x2]&0xff;_0x1a6631['sigBytes']-=_0x4def47;},_0x1d1fbe(0x2a4))};_0x2bdb97[_0x1d1fbe(0x3d4)]=_0x48a3f6[_0x1d1fbe(0x1aa)]({'cfg':_0x48a3f6['cfg']['extend']({'mode':_0x355375,'padding':_0x26e631}),'reset':__name(function(){var _0x1ba5de=_0x1d1fbe,_0x302ef4;_0x48a3f6[_0x1ba5de(0x211)][_0x1ba5de(0x451)](this);var _0x33178c=this['cfg'],_0x20d81c=_0x33178c['iv'],_0x4dc658=_0x33178c[_0x1ba5de(0x1f7)];this[_0x1ba5de(0x3ba)]==this[_0x1ba5de(0x1e8)]?_0x302ef4=_0x4dc658[_0x1ba5de(0x2a7)]:(_0x302ef4=_0x4dc658[_0x1ba5de(0x3a0)],this['_minBufferSize']=0x1),this['_mode']&&this[_0x1ba5de(0x3f3)][_0x1ba5de(0x33c)]==_0x302ef4?this[_0x1ba5de(0x3f3)][_0x1ba5de(0x23c)](this,_0x20d81c&&_0x20d81c[_0x1ba5de(0x327)]):(this['_mode']=_0x302ef4[_0x1ba5de(0x451)](_0x4dc658,this,_0x20d81c&&_0x20d81c[_0x1ba5de(0x327)]),this[_0x1ba5de(0x3f3)][_0x1ba5de(0x33c)]=_0x302ef4);},_0x1d1fbe(0x211)),'_doProcessBlock':__name(function(_0x59607f,_0x5ca7cb){var _0x51f490=_0x1d1fbe;this['_mode'][_0x51f490(0x27a)](_0x59607f,_0x5ca7cb);},_0x1d1fbe(0x402)),'_doFinalize':__name(function(){var _0x137312=_0x1d1fbe,_0x531e70,_0x3b3080=this[_0x137312(0x28e)]['padding'];return this[_0x137312(0x3ba)]==this['_ENC_XFORM_MODE']?(_0x3b3080[_0x137312(0x370)](this[_0x137312(0x2a0)],this['blockSize']),_0x531e70=this[_0x137312(0x3a6)](!0x0)):(_0x531e70=this['_process'](!0x0),_0x3b3080[_0x137312(0x2a4)](_0x531e70)),_0x531e70;},_0x1d1fbe(0x285)),'blockSize':0x80/0x20});var _0x4ee7ee=_0x2bdb97[_0x1d1fbe(0x47f)]=_0xbbac3e['extend']({'init':__name(function(_0x242372){this['mixIn'](_0x242372);},'init'),'toString':__name(function(_0x3df995){var _0x44d80a=_0x1d1fbe;return(_0x3df995||this[_0x44d80a(0x35f)])[_0x44d80a(0x375)](this);},_0x1d1fbe(0x1fa))}),_0x1182fb=_0x3b7241['format']={},_0x345b32=_0x1182fb[_0x1d1fbe(0x160)]={'stringify':__name(function(_0x11d417){var _0x207ec5=_0x1d1fbe,_0x3901b5,_0x156137=_0x11d417[_0x207ec5(0x137)],_0x1a1ef0=_0x11d417['salt'];return _0x1a1ef0?_0x3901b5=_0xe96924['create']([0x53616c74,0x65645f5f])[_0x207ec5(0x3d8)](_0x1a1ef0)[_0x207ec5(0x3d8)](_0x156137):_0x3901b5=_0x156137,_0x3901b5[_0x207ec5(0x1fa)](_0x2875cf);},'stringify'),'parse':__name(function(_0x4ac24d){var _0x472b70=_0x1d1fbe,_0x3b11f2,_0x42b181=_0x2875cf[_0x472b70(0x246)](_0x4ac24d),_0x11cb98=_0x42b181[_0x472b70(0x327)];return _0x11cb98[0x0]==0x53616c74&&_0x11cb98[0x1]==0x65645f5f&&(_0x3b11f2=_0xe96924[_0x472b70(0x274)](_0x11cb98[_0x472b70(0x178)](0x2,0x4)),_0x11cb98[_0x472b70(0x159)](0x0,0x4),_0x42b181['sigBytes']-=0x10),_0x4ee7ee[_0x472b70(0x274)]({'ciphertext':_0x42b181,'salt':_0x3b11f2});},_0x1d1fbe(0x246))},_0x5defa9=_0x2bdb97[_0x1d1fbe(0x38c)]=_0xbbac3e[_0x1d1fbe(0x1aa)]({'cfg':_0xbbac3e['extend']({'format':_0x345b32}),'encrypt':__name(function(_0x536715,_0x4cf6eb,_0x4da602,_0x30aafe){var _0x3bd7cb=_0x1d1fbe;_0x30aafe=this[_0x3bd7cb(0x28e)][_0x3bd7cb(0x1aa)](_0x30aafe);var _0x24fa92=_0x536715['createEncryptor'](_0x4da602,_0x30aafe),_0x1f5e3f=_0x24fa92[_0x3bd7cb(0x450)](_0x4cf6eb),_0x462ce4=_0x24fa92[_0x3bd7cb(0x28e)];return _0x4ee7ee[_0x3bd7cb(0x274)]({'ciphertext':_0x1f5e3f,'key':_0x4da602,'iv':_0x462ce4['iv'],'algorithm':_0x536715,'mode':_0x462ce4[_0x3bd7cb(0x1f7)],'padding':_0x462ce4[_0x3bd7cb(0x3f2)],'blockSize':_0x536715['blockSize'],'formatter':_0x30aafe[_0x3bd7cb(0x231)]});},_0x1d1fbe(0x27b)),'decrypt':__name(function(_0x531b35,_0x258a52,_0x3324e6,_0x9e9f1c){var _0x4bff68=_0x1d1fbe;_0x9e9f1c=this[_0x4bff68(0x28e)][_0x4bff68(0x1aa)](_0x9e9f1c),_0x258a52=this[_0x4bff68(0x286)](_0x258a52,_0x9e9f1c[_0x4bff68(0x231)]);var _0x1035a0=_0x531b35[_0x4bff68(0x3a0)](_0x3324e6,_0x9e9f1c)[_0x4bff68(0x450)](_0x258a52[_0x4bff68(0x137)]);return _0x1035a0;},_0x1d1fbe(0x2f4)),'_parse':__name(function(_0x55f38d,_0x59ae32){var _0x36e29f=_0x1d1fbe;return typeof _0x55f38d==_0x36e29f(0x480)?_0x59ae32[_0x36e29f(0x246)](_0x55f38d,this):_0x55f38d;},_0x1d1fbe(0x286))}),_0x4f7dbf=_0x3b7241[_0x1d1fbe(0x42c)]={},_0x46d90b=_0x4f7dbf[_0x1d1fbe(0x160)]={'execute':__name(function(_0x3416f4,_0x2c8d75,_0x27ebd5,_0x21bdd5,_0x151e4d){var _0x511ce2=_0x1d1fbe;if(_0x21bdd5||(_0x21bdd5=_0xe96924[_0x511ce2(0x2e0)](0x40/0x8)),_0x151e4d)var _0x214e38=_0x328460['create']({'keySize':_0x2c8d75+_0x27ebd5,'hasher':_0x151e4d})[_0x511ce2(0x2e9)](_0x3416f4,_0x21bdd5);else var _0x214e38=_0x328460['create']({'keySize':_0x2c8d75+_0x27ebd5})['compute'](_0x3416f4,_0x21bdd5);var _0x1fb754=_0xe96924[_0x511ce2(0x274)](_0x214e38['words'][_0x511ce2(0x178)](_0x2c8d75),_0x27ebd5*0x4);return _0x214e38[_0x511ce2(0x444)]=_0x2c8d75*0x4,_0x4ee7ee[_0x511ce2(0x274)]({'key':_0x214e38,'iv':_0x1fb754,'salt':_0x21bdd5});},'execute')},_0x630f38=_0x2bdb97[_0x1d1fbe(0x420)]=_0x5defa9[_0x1d1fbe(0x1aa)]({'cfg':_0x5defa9['cfg'][_0x1d1fbe(0x1aa)]({'kdf':_0x46d90b}),'encrypt':__name(function(_0x14b149,_0x53c089,_0x24b701,_0x3434bd){var _0x2a2de0=_0x1d1fbe;_0x3434bd=this[_0x2a2de0(0x28e)][_0x2a2de0(0x1aa)](_0x3434bd);var _0x1e8614=_0x3434bd['kdf'][_0x2a2de0(0x1c8)](_0x24b701,_0x14b149['keySize'],_0x14b149['ivSize'],_0x3434bd[_0x2a2de0(0x1fe)],_0x3434bd['hasher']);_0x3434bd['iv']=_0x1e8614['iv'];var _0x3bee43=_0x5defa9[_0x2a2de0(0x27b)][_0x2a2de0(0x451)](this,_0x14b149,_0x53c089,_0x1e8614['key'],_0x3434bd);return _0x3bee43[_0x2a2de0(0x3b6)](_0x1e8614),_0x3bee43;},_0x1d1fbe(0x27b)),'decrypt':__name(function(_0x34450e,_0x424c98,_0x3c39b3,_0x467ad4){var _0x2d74f0=_0x1d1fbe;_0x467ad4=this[_0x2d74f0(0x28e)][_0x2d74f0(0x1aa)](_0x467ad4),_0x424c98=this[_0x2d74f0(0x286)](_0x424c98,_0x467ad4[_0x2d74f0(0x231)]);var _0x3c6d2e=_0x467ad4[_0x2d74f0(0x42c)][_0x2d74f0(0x1c8)](_0x3c39b3,_0x34450e['keySize'],_0x34450e[_0x2d74f0(0x2c0)],_0x424c98[_0x2d74f0(0x1fe)],_0x467ad4[_0x2d74f0(0x262)]);_0x467ad4['iv']=_0x3c6d2e['iv'];var _0x45288b=_0x5defa9[_0x2d74f0(0x2f4)]['call'](this,_0x34450e,_0x424c98,_0x3c6d2e[_0x2d74f0(0x432)],_0x467ad4);return _0x45288b;},'decrypt')});}();}));}(cipherCore$1)),cipherCore$1[_0x18dbce(0x457)];}__name(requireCipherCore,'requireCipherCore');var aes=aes$1[_0xa33034(0x457)],hasRequiredAes;function requireAes(){var _0x483b44=_0xa33034;return hasRequiredAes||(hasRequiredAes=0x1,function(_0x4d653a,_0xda1a89){(function(_0x5e10d1,_0x1235a1,_0x347326){var _0x2cd1fe=_0x214d;_0x4d653a[_0x2cd1fe(0x457)]=_0x1235a1(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore());}(aes,function(_0x15700f){var _0x5673ee=_0x214d;return(function(){var _0x3e80f0=_0x214d,_0x129ea0=_0x15700f,_0x2a7950=_0x129ea0['lib'],_0x1e5c91=_0x2a7950[_0x3e80f0(0x3d4)],_0x585b0e=_0x129ea0[_0x3e80f0(0x3a3)],_0x1af04=[],_0x5b2760=[],_0x2466c1=[],_0x51965c=[],_0x48e1ee=[],_0x1e0cec=[],_0x3f5212=[],_0x440009=[],_0x388788=[],_0x43c4cc=[];(function(){for(var _0x2bb5b0=[],_0x1a633b=0x0;_0x1a633b<0x100;_0x1a633b++)_0x1a633b<0x80?_0x2bb5b0[_0x1a633b]=_0x1a633b<<0x1:_0x2bb5b0[_0x1a633b]=_0x1a633b<<0x1^0x11b;for(var _0x2f4bca=0x0,_0x2f0381=0x0,_0x1a633b=0x0;_0x1a633b<0x100;_0x1a633b++){var _0x2cf58d=_0x2f0381^_0x2f0381<<0x1^_0x2f0381<<0x2^_0x2f0381<<0x3^_0x2f0381<<0x4;_0x2cf58d=_0x2cf58d>>>0x8^_0x2cf58d&0xff^0x63,_0x1af04[_0x2f4bca]=_0x2cf58d,_0x5b2760[_0x2cf58d]=_0x2f4bca;var _0x57add9=_0x2bb5b0[_0x2f4bca],_0x451910=_0x2bb5b0[_0x57add9],_0x48ec03=_0x2bb5b0[_0x451910],_0x3e298c=_0x2bb5b0[_0x2cf58d]*0x101^_0x2cf58d*0x1010100;_0x2466c1[_0x2f4bca]=_0x3e298c<<0x18|_0x3e298c>>>0x8,_0x51965c[_0x2f4bca]=_0x3e298c<<0x10|_0x3e298c>>>0x10,_0x48e1ee[_0x2f4bca]=_0x3e298c<<0x8|_0x3e298c>>>0x18,_0x1e0cec[_0x2f4bca]=_0x3e298c;var _0x3e298c=_0x48ec03*0x1010101^_0x451910*0x10001^_0x57add9*0x101^_0x2f4bca*0x1010100;_0x3f5212[_0x2cf58d]=_0x3e298c<<0x18|_0x3e298c>>>0x8,_0x440009[_0x2cf58d]=_0x3e298c<<0x10|_0x3e298c>>>0x10,_0x388788[_0x2cf58d]=_0x3e298c<<0x8|_0x3e298c>>>0x18,_0x43c4cc[_0x2cf58d]=_0x3e298c,_0x2f4bca?(_0x2f4bca=_0x57add9^_0x2bb5b0[_0x2bb5b0[_0x2bb5b0[_0x48ec03^_0x57add9]]],_0x2f0381^=_0x2bb5b0[_0x2bb5b0[_0x2f0381]]):_0x2f4bca=_0x2f0381=0x1;}}());var _0x41fa07=[0x0,0x1,0x2,0x4,0x8,0x10,0x20,0x40,0x80,0x1b,0x36],_0x500bcb=_0x585b0e[_0x3e80f0(0x2a3)]=_0x1e5c91[_0x3e80f0(0x1aa)]({'_doReset':__name(function(){var _0x3c0ccd=_0x3e80f0,_0x159b9f;if(!(this[_0x3c0ccd(0x410)]&&this[_0x3c0ccd(0x16a)]===this[_0x3c0ccd(0x316)])){for(var _0x143037=this[_0x3c0ccd(0x16a)]=this[_0x3c0ccd(0x316)],_0x48e925=_0x143037[_0x3c0ccd(0x327)],_0x47c074=_0x143037['sigBytes']/0x4,_0x1f01df=this[_0x3c0ccd(0x410)]=_0x47c074+0x6,_0x364600=(_0x1f01df+0x1)*0x4,_0x567aea=this[_0x3c0ccd(0x3e8)]=[],_0x512baf=0x0;_0x512baf<_0x364600;_0x512baf++)_0x512baf<_0x47c074?_0x567aea[_0x512baf]=_0x48e925[_0x512baf]:(_0x159b9f=_0x567aea[_0x512baf-0x1],_0x512baf%_0x47c074?_0x47c074>0x6&&_0x512baf%_0x47c074==0x4&&(_0x159b9f=_0x1af04[_0x159b9f>>>0x18]<<0x18|_0x1af04[_0x159b9f>>>0x10&0xff]<<0x10|_0x1af04[_0x159b9f>>>0x8&0xff]<<0x8|_0x1af04[_0x159b9f&0xff]):(_0x159b9f=_0x159b9f<<0x8|_0x159b9f>>>0x18,_0x159b9f=_0x1af04[_0x159b9f>>>0x18]<<0x18|_0x1af04[_0x159b9f>>>0x10&0xff]<<0x10|_0x1af04[_0x159b9f>>>0x8&0xff]<<0x8|_0x1af04[_0x159b9f&0xff],_0x159b9f^=_0x41fa07[_0x512baf/_0x47c074|0x0]<<0x18),_0x567aea[_0x512baf]=_0x567aea[_0x512baf-_0x47c074]^_0x159b9f);for(var _0x1ca528=this[_0x3c0ccd(0x41d)]=[],_0x37905a=0x0;_0x37905a<_0x364600;_0x37905a++){var _0x512baf=_0x364600-_0x37905a;if(_0x37905a%0x4)var _0x159b9f=_0x567aea[_0x512baf];else var _0x159b9f=_0x567aea[_0x512baf-0x4];_0x37905a<0x4||_0x512baf<=0x4?_0x1ca528[_0x37905a]=_0x159b9f:_0x1ca528[_0x37905a]=_0x3f5212[_0x1af04[_0x159b9f>>>0x18]]^_0x440009[_0x1af04[_0x159b9f>>>0x10&0xff]]^_0x388788[_0x1af04[_0x159b9f>>>0x8&0xff]]^_0x43c4cc[_0x1af04[_0x159b9f&0xff]];}}},_0x3e80f0(0x27f)),'encryptBlock':__name(function(_0x19fbf7,_0x166e7a){var _0x2df45f=_0x3e80f0;this[_0x2df45f(0x238)](_0x19fbf7,_0x166e7a,this['_keySchedule'],_0x2466c1,_0x51965c,_0x48e1ee,_0x1e0cec,_0x1af04);},_0x3e80f0(0x1ae)),'decryptBlock':__name(function(_0x230c19,_0x5f0cb5){var _0x5c0115=_0x3e80f0,_0x5e0175=_0x230c19[_0x5f0cb5+0x1];_0x230c19[_0x5f0cb5+0x1]=_0x230c19[_0x5f0cb5+0x3],_0x230c19[_0x5f0cb5+0x3]=_0x5e0175,this[_0x5c0115(0x238)](_0x230c19,_0x5f0cb5,this[_0x5c0115(0x41d)],_0x3f5212,_0x440009,_0x388788,_0x43c4cc,_0x5b2760);var _0x5e0175=_0x230c19[_0x5f0cb5+0x1];_0x230c19[_0x5f0cb5+0x1]=_0x230c19[_0x5f0cb5+0x3],_0x230c19[_0x5f0cb5+0x3]=_0x5e0175;},_0x3e80f0(0x2ae)),'_doCryptBlock':__name(function(_0x518e5c,_0x22c872,_0x2255bf,_0x541870,_0x4bea4d,_0x5a1d3d,_0x2e629e,_0x1e7339){var _0x5c36d8=_0x3e80f0;for(var _0x214e53=this[_0x5c36d8(0x410)],_0x48c58d=_0x518e5c[_0x22c872]^_0x2255bf[0x0],_0x13860c=_0x518e5c[_0x22c872+0x1]^_0x2255bf[0x1],_0x3be2d2=_0x518e5c[_0x22c872+0x2]^_0x2255bf[0x2],_0x2f5563=_0x518e5c[_0x22c872+0x3]^_0x2255bf[0x3],_0x4b6fb3=0x4,_0x13656b=0x1;_0x13656b<_0x214e53;_0x13656b++){var _0x137cdb=_0x541870[_0x48c58d>>>0x18]^_0x4bea4d[_0x13860c>>>0x10&0xff]^_0x5a1d3d[_0x3be2d2>>>0x8&0xff]^_0x2e629e[_0x2f5563&0xff]^_0x2255bf[_0x4b6fb3++],_0x2546f3=_0x541870[_0x13860c>>>0x18]^_0x4bea4d[_0x3be2d2>>>0x10&0xff]^_0x5a1d3d[_0x2f5563>>>0x8&0xff]^_0x2e629e[_0x48c58d&0xff]^_0x2255bf[_0x4b6fb3++],_0x447c59=_0x541870[_0x3be2d2>>>0x18]^_0x4bea4d[_0x2f5563>>>0x10&0xff]^_0x5a1d3d[_0x48c58d>>>0x8&0xff]^_0x2e629e[_0x13860c&0xff]^_0x2255bf[_0x4b6fb3++],_0x182424=_0x541870[_0x2f5563>>>0x18]^_0x4bea4d[_0x48c58d>>>0x10&0xff]^_0x5a1d3d[_0x13860c>>>0x8&0xff]^_0x2e629e[_0x3be2d2&0xff]^_0x2255bf[_0x4b6fb3++];_0x48c58d=_0x137cdb,_0x13860c=_0x2546f3,_0x3be2d2=_0x447c59,_0x2f5563=_0x182424;}var _0x137cdb=(_0x1e7339[_0x48c58d>>>0x18]<<0x18|_0x1e7339[_0x13860c>>>0x10&0xff]<<0x10|_0x1e7339[_0x3be2d2>>>0x8&0xff]<<0x8|_0x1e7339[_0x2f5563&0xff])^_0x2255bf[_0x4b6fb3++],_0x2546f3=(_0x1e7339[_0x13860c>>>0x18]<<0x18|_0x1e7339[_0x3be2d2>>>0x10&0xff]<<0x10|_0x1e7339[_0x2f5563>>>0x8&0xff]<<0x8|_0x1e7339[_0x48c58d&0xff])^_0x2255bf[_0x4b6fb3++],_0x447c59=(_0x1e7339[_0x3be2d2>>>0x18]<<0x18|_0x1e7339[_0x2f5563>>>0x10&0xff]<<0x10|_0x1e7339[_0x48c58d>>>0x8&0xff]<<0x8|_0x1e7339[_0x13860c&0xff])^_0x2255bf[_0x4b6fb3++],_0x182424=(_0x1e7339[_0x2f5563>>>0x18]<<0x18|_0x1e7339[_0x48c58d>>>0x10&0xff]<<0x10|_0x1e7339[_0x13860c>>>0x8&0xff]<<0x8|_0x1e7339[_0x3be2d2&0xff])^_0x2255bf[_0x4b6fb3++];_0x518e5c[_0x22c872]=_0x137cdb,_0x518e5c[_0x22c872+0x1]=_0x2546f3,_0x518e5c[_0x22c872+0x2]=_0x447c59,_0x518e5c[_0x22c872+0x3]=_0x182424;},'_doCryptBlock'),'keySize':0x100/0x20});_0x129ea0[_0x3e80f0(0x2a3)]=_0x1e5c91[_0x3e80f0(0x489)](_0x500bcb);}()),_0x15700f[_0x5673ee(0x2a3)];}));}(aes$1)),aes$1[_0x483b44(0x457)];}__name(requireAes,_0xa33034(0x2e6));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(){var _0x3c1e81=_0xa33034;return hasRequiredEncUtf8||(hasRequiredEncUtf8=0x1,function(_0x3c63e3,_0x26b9c9){(function(_0x3df194,_0x492b4b){_0x3c63e3['exports']=_0x492b4b(requireCore());}(encUtf8,function(_0x3988f8){var _0x4ca84d=_0x214d;return _0x3988f8['enc'][_0x4ca84d(0x42d)];}));}(encUtf8$1)),encUtf8$1[_0x3c1e81(0x457)];}__name(requireEncUtf8,'requireEncUtf8');var encUtf8Exports=requireEncUtf8();const Utf8=getDefaultExportFromCjs(encUtf8Exports);var libTypedarrays$1={'exports':{}},libTypedarrays=libTypedarrays$1['exports'],hasRequiredLibTypedarrays;function requireLibTypedarrays(){return hasRequiredLibTypedarrays||(hasRequiredLibTypedarrays=0x1,function(_0x263378,_0x3455e5){(function(_0x41960c,_0x1195bc){var _0x29a169=_0x214d;_0x263378[_0x29a169(0x457)]=_0x1195bc(requireCore());}(libTypedarrays,function(_0x14fc12){var _0x49c3ed=_0x214d;return(function(){var _0x279485=_0x214d;if(typeof ArrayBuffer==_0x279485(0x167)){var _0x2fc186=_0x14fc12,_0x119bb3=_0x2fc186[_0x279485(0x372)],_0x3ef501=_0x119bb3[_0x279485(0x2ed)],_0x32acae=_0x3ef501[_0x279485(0x23c)],_0x48310e=_0x3ef501['init']=function(_0x5487e7){var _0x70c588=_0x279485;if(_0x5487e7 instanceof ArrayBuffer&&(_0x5487e7=new Uint8Array(_0x5487e7)),(_0x5487e7 instanceof Int8Array||typeof Uint8ClampedArray<'u'&&_0x5487e7 instanceof Uint8ClampedArray||_0x5487e7 instanceof Int16Array||_0x5487e7 instanceof Uint16Array||_0x5487e7 instanceof Int32Array||_0x5487e7 instanceof Uint32Array||_0x5487e7 instanceof Float32Array||_0x5487e7 instanceof Float64Array)&&(_0x5487e7=new Uint8Array(_0x5487e7[_0x70c588(0x1f0)],_0x5487e7[_0x70c588(0x453)],_0x5487e7[_0x70c588(0x31d)])),_0x5487e7 instanceof Uint8Array){for(var _0x247b8=_0x5487e7[_0x70c588(0x31d)],_0x2b0799=[],_0x473b9c=0x0;_0x473b9c<_0x247b8;_0x473b9c++)_0x2b0799[_0x473b9c>>>0x2]|=_0x5487e7[_0x473b9c]<<0x18-_0x473b9c%0x4*0x8;_0x32acae['call'](this,_0x2b0799,_0x247b8);}else _0x32acae[_0x70c588(0x44e)](this,arguments);};_0x48310e[_0x279485(0x352)]=_0x3ef501;}}()),_0x14fc12[_0x49c3ed(0x372)][_0x49c3ed(0x2ed)];}));}(libTypedarrays$1)),libTypedarrays$1['exports'];}__name(requireLibTypedarrays,_0xa33034(0x2ff));var libTypedarraysExports=requireLibTypedarrays();const WordArray=getDefaultExportFromCjs(libTypedarraysExports);var padNopadding$1={'exports':{}},padNopadding=padNopadding$1[_0xa33034(0x457)],hasRequiredPadNopadding;function requirePadNopadding(){var _0x3a13fb=_0xa33034;return hasRequiredPadNopadding||(hasRequiredPadNopadding=0x1,function(_0x4b1f44,_0x5805d1){(function(_0x530f03,_0x2f154f,_0x489af8){_0x4b1f44['exports']=_0x2f154f(requireCore(),requireCipherCore());}(padNopadding,function(_0x33cec3){var _0x1ffcdb=_0x214d;return _0x33cec3[_0x1ffcdb(0x370)][_0x1ffcdb(0x3cf)]={'pad':__name(function(){},_0x1ffcdb(0x370)),'unpad':__name(function(){},'unpad')},_0x33cec3[_0x1ffcdb(0x370)][_0x1ffcdb(0x3cf)];}));}(padNopadding$1)),padNopadding$1[_0x3a13fb(0x457)];}__name(requirePadNopadding,'requirePadNopadding');var padNopaddingExports=requirePadNopadding();const NoPadding=getDefaultExportFromCjs(padNopaddingExports);function pkcs7Padding(_0xae7640,_0x52b2ae){var _0x1421b4=_0xa33034;const _0x351f42=_0x52b2ae-_0xae7640[_0x1421b4(0x271)]%_0x52b2ae,_0x8d75de=String['fromCharCode'](_0x351f42)[_0x1421b4(0x32a)](_0x351f42);return _0xae7640+_0x8d75de;}__name(pkcs7Padding,_0xa33034(0x177));function encrypt(_0x3e5e29,_0x352f96){var _0x388778=_0xa33034;const _0x1fb240=WordArray['random'](0x10),_0xf8e36=pkcs7Padding(_0x3e5e29,0x10),_0x5cc2e4=AES[_0x388778(0x27b)](Utf8[_0x388778(0x246)](_0xf8e36),Base64['parse'](_0x352f96),{'iv':_0x1fb240,'padding':NoPadding});return _0x1fb240[_0x388778(0x3d8)](_0x5cc2e4[_0x388778(0x137)])['toString'](Base64);}__name(encrypt,_0xa33034(0x27b));function getAttachHeader(){var _0x486a80=_0xa33034;const _0xe0e6a9=getGlobalObject()[_0x486a80(0x338)];if(_0xe0e6a9){const _0x2815f1={'time':Math[_0x486a80(0x2cb)](Date[_0x486a80(0x2ba)]()/0x3e8),'domain':location[_0x486a80(0x299)]};return encrypt(JSON[_0x486a80(0x375)](_0x2815f1),_0xe0e6a9);}}__name(getAttachHeader,_0xa33034(0x1d8));var __defProp$7=Object[_0xa33034(0x2e1)],__getOwnPropDesc$7=Object[_0xa33034(0x29f)],__decorateClass$7=__name((_0x16df6a,_0x5e6e0b,_0x3ffd09,_0x2a5136)=>{var _0x66c218=_0xa33034;for(var _0x21786c=_0x2a5136>0x1?void 0x0:_0x2a5136?__getOwnPropDesc$7(_0x5e6e0b,_0x3ffd09):_0x5e6e0b,_0xc7579b=_0x16df6a[_0x66c218(0x271)]-0x1,_0x1bd8b5;_0xc7579b>=0x0;_0xc7579b--)(_0x1bd8b5=_0x16df6a[_0xc7579b])&&(_0x21786c=(_0x2a5136?_0x1bd8b5(_0x5e6e0b,_0x3ffd09,_0x21786c):_0x1bd8b5(_0x21786c))||_0x21786c);return _0x2a5136&&_0x21786c&&__defProp$7(_0x5e6e0b,_0x3ffd09,_0x21786c),_0x21786c;},_0xa33034(0x24d)),__decorateParam$7=__name((_0x40b700,_0x57844e)=>(_0x4842e8,_0x5be0d8)=>_0x57844e(_0x4842e8,_0x5be0d8,_0x40b700),_0xa33034(0x30f)),_a20;let DomainRequestService=(_a20=class{constructor(_0x39d8bf){var _0x554359=_0xa33034;this[_0x554359(0x377)]=_0x39d8bf,this[_0x554359(0x176)]();}[_0xa33034(0x176)](){var _0x1877c8=_0xa33034;this[_0x1877c8(0x377)][_0x1877c8(0x2fe)]({'interceptor':__name((_0x543dd4,_0x578b59)=>{var _0x320afb=_0x1877c8;const _0x8fece5=_0x543dd4['headers'],_0x15da98=getAttachHeader();return _0x15da98&&_0x8fece5[_0x320afb(0x392)](_0x320afb(0x1d2),_0x15da98),_0x578b59(_0x543dd4);},_0x1877c8(0x171))});}},__name(_a20,_0xa33034(0x309)),_a20);DomainRequestService=__decorateClass$7([__decorateParam$7(0x0,Inject(HTTPService))],DomainRequestService);var __defProp$6=Object[_0xa33034(0x2e1)],__getOwnPropDesc$6=Object[_0xa33034(0x29f)],__decorateClass$6=__name((_0xfa22b8,_0x2f0073,_0x2cad58,_0x4380cf)=>{var _0x26bfb5=_0xa33034;for(var _0x9df2b5=_0x4380cf>0x1?void 0x0:_0x4380cf?__getOwnPropDesc$6(_0x2f0073,_0x2cad58):_0x2f0073,_0x35eb19=_0xfa22b8[_0x26bfb5(0x271)]-0x1,_0xf859ed;_0x35eb19>=0x0;_0x35eb19--)(_0xf859ed=_0xfa22b8[_0x35eb19])&&(_0x9df2b5=(_0x4380cf?_0xf859ed(_0x2f0073,_0x2cad58,_0x9df2b5):_0xf859ed(_0x9df2b5))||_0x9df2b5);return _0x4380cf&&_0x9df2b5&&__defProp$6(_0x2f0073,_0x2cad58,_0x9df2b5),_0x9df2b5;},_0xa33034(0x227)),__decorateParam$6=__name((_0x6871b6,_0x3279ee)=>(_0xd34e94,_0x558385)=>_0x3279ee(_0xd34e94,_0x558385,_0x6871b6),_0xa33034(0x403)),_a21;let DataLoaderService=(_a21=class extends RxDisposable{constructor(_0x3a0956,_0x34a004,_0x376805){var _0x1d2c92=_0xa33034;super(),__publicField(this,_0x1d2c92(0x315),new BehaviorSubject(null)),__publicField(this,_0x1d2c92(0x203),this[_0x1d2c92(0x315)][_0x1d2c92(0x3b2)]()),(this[_0x1d2c92(0x48c)]=_0x3a0956,this['_snapshotService']=_0x34a004,this[_0x1d2c92(0x48b)]=_0x376805);}async['loadUnit'](_0x10aeb0,_0x4240c3,_0x4f1511){var _0x155321=_0xa33034;this['_unitInfo$'][_0x155321(0x17a)]({'unitId':_0x10aeb0,'type':_0x4240c3,'subUnitId':_0x4f1511});let _0x34c23c=null;switch(_0x4240c3){case UniverType['UNIVER_SHEET']:{_0x34c23c=await this[_0x155321(0x228)](_0x10aeb0);break;}case UniverType[_0x155321(0x36b)]:{_0x34c23c=await this[_0x155321(0x3ae)](_0x10aeb0);break;}default:{this['_logService'][_0x155321(0x1c4)](_0x155321(0x433),'Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}return _0x34c23c;}async[_0xa33034(0x228)](_0x42174b){var _0x3296f4=_0xa33034,_0x5ed7e9;let _0x7517d2=0x0;const _0x1454ac=await((_0x5ed7e9=this[_0x3296f4(0x48b)])==null?void 0x0:_0x5ed7e9[_0x3296f4(0x149)](_0x42174b));return _0x1454ac&&(_0x1454ac[_0x3296f4(0x3c0)]||_0x1454ac['mutations']['length']!==0x0)&&(_0x7517d2=_0x1454ac[_0x3296f4(0x14b)]),_0x7517d2===0x0&&this[_0x3296f4(0x48c)][_0x3296f4(0x213)]('[DataLoaderService]',_0x3296f4(0x277)),this[_0x3296f4(0x1ca)][_0x3296f4(0x436)](_0x42174b,_0x7517d2);}async['_loadDoc'](_0xa0c4b8){var _0x1bf545=_0xa33034,_0x2dfcc9;let _0x943559=0x0;const _0x17337c=await((_0x2dfcc9=this[_0x1bf545(0x48b)])==null?void 0x0:_0x2dfcc9[_0x1bf545(0x149)](_0xa0c4b8));return _0x17337c&&(_0x17337c['awaitingChangeset']||_0x17337c['mutations'][_0x1bf545(0x271)]!==0x0)&&(_0x943559=_0x17337c[_0x1bf545(0x14b)]),_0x943559===0x0&&this[_0x1bf545(0x48c)][_0x1bf545(0x213)]('[DataLoaderService]',_0x1bf545(0x277)),this[_0x1bf545(0x1ca)][_0x1bf545(0x1eb)](_0xa0c4b8,_0x943559);}},__name(_a21,'DataLoaderService'),_a21);DataLoaderService=__decorateClass$6([__decorateParam$6(0x0,ILogService),__decorateParam$6(0x1,Inject(SnapshotService)),__decorateParam$6(0x2,Optional(ILocalCacheService))],DataLoaderService);var __defProp$5=Object[_0xa33034(0x2e1)],__getOwnPropDesc$5=Object[_0xa33034(0x29f)],__decorateClass$5=__name((_0x30d795,_0x512397,_0x973a7a,_0x34d0eb)=>{var _0x7eaee6=_0xa33034;for(var _0x1deb27=_0x34d0eb>0x1?void 0x0:_0x34d0eb?__getOwnPropDesc$5(_0x512397,_0x973a7a):_0x512397,_0x4e7482=_0x30d795[_0x7eaee6(0x271)]-0x1,_0x1416ad;_0x4e7482>=0x0;_0x4e7482--)(_0x1416ad=_0x30d795[_0x4e7482])&&(_0x1deb27=(_0x34d0eb?_0x1416ad(_0x512397,_0x973a7a,_0x1deb27):_0x1416ad(_0x1deb27))||_0x1deb27);return _0x34d0eb&&_0x1deb27&&__defProp$5(_0x512397,_0x973a7a,_0x1deb27),_0x1deb27;},_0xa33034(0x261)),__decorateParam$5=__name((_0x1d5857,_0x59ac71)=>(_0x16841e,_0x4a2540)=>_0x59ac71(_0x16841e,_0x4a2540,_0x1d5857),_0xa33034(0x428));const ALLOW_IMAGE_LIST=['image/png',_0xa33034(0x27c),_0xa33034(0x2bb),_0xa33034(0x332),_0xa33034(0x462)],ALLOW_IMAGE_SIZE=0x5*0x400*0x400,EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY=_0xa33034(0x43b),DEFAULT_EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY=_0xa33034(0x48e),EXCHANGE_SIGN_URL_SERVER_URL_KEY=_0xa33034(0x22a),DEFAULT_EXCHANGE_SIGN_URL_SERVER_URL_KEY='/universer-api/file/{fileID}/sign-url';var _a22;let CollaborationImageIoService=(_a22=class{constructor(_0x38f720,_0x662523,_0x29c059){var _0x1a577b=_0xa33034;__publicField(this,_0x1a577b(0x2fa),0x0),__publicField(this,_0x1a577b(0x374),new Subject()),__publicField(this,_0x1a577b(0x30d),this[_0x1a577b(0x374)]),__publicField(this,_0x1a577b(0x2dc),new Map()),(this[_0x1a577b(0x377)]=_0x38f720,this[_0x1a577b(0x36a)]=_0x662523,this[_0x1a577b(0x40d)]=_0x29c059);}[_0xa33034(0x416)](_0x517f92){var _0x343c75=_0xa33034;this[_0x343c75(0x2fa)]=_0x517f92,this[_0x343c75(0x374)][_0x343c75(0x17a)](_0x517f92);}[_0xa33034(0x367)](_0x585805,_0x5e6240){var _0x5bd6e8=_0xa33034;if(_0x5e6240===ImageSourceType[_0x5bd6e8(0x151)]){const _0x50f9ff=new Image();return _0x50f9ff[_0x5bd6e8(0x358)]=_0x585805,_0x50f9ff;}return this[_0x5bd6e8(0x2dc)][_0x5bd6e8(0x38a)](_0x585805);}[_0xa33034(0x19c)](_0x1cf50d,_0xdd08e6,_0x541d72){var _0x3e30d9=_0xa33034;_0xdd08e6===ImageSourceType[_0x3e30d9(0x151)]||_0x541d72==null||this[_0x3e30d9(0x2dc)][_0x3e30d9(0x392)](_0x1cf50d,_0x541d72);}async[_0xa33034(0x27e)](_0x5263a5){var _0x55bc2c=_0xa33034;try{const _0x232765=this[_0x55bc2c(0x2d2)](this['_getSignURL'](),''+_0x5263a5),_0x4ee7f3=(await this[_0x55bc2c(0x377)][_0x55bc2c(0x38a)](_0x232765))['body'];if(_0x4ee7f3[_0x55bc2c(0x1c4)]&&_0x4ee7f3['error'][_0x55bc2c(0x2d1)]===ErrorCode['OK']){const _0x3bb061=new URL(_0x4ee7f3[_0x55bc2c(0x296)],this['_getDownloadEndpointURL']())[_0x55bc2c(0x1fa)]();return Promise[_0x55bc2c(0x18f)](_0x3bb061);}return Promise[_0x55bc2c(0x15e)](_0x4ee7f3[_0x55bc2c(0x1c4)]);}catch(_0x1ffa52){return Promise['reject'](_0x1ffa52);}}async[_0xa33034(0x1a7)](_0x4a09eb){var _0x15fb8e=_0xa33034;let _0xf66551='';if(!ALLOW_IMAGE_LIST[_0x15fb8e(0x1d5)](_0x4a09eb[_0x15fb8e(0x3e5)]))return this['_decreaseWaiting'](),Promise[_0x15fb8e(0x15e)](new Error(ImageUploadStatusType[_0x15fb8e(0x2c2)]));if(_0x4a09eb[_0x15fb8e(0x313)]>ALLOW_IMAGE_SIZE)return this['_decreaseWaiting'](),Promise[_0x15fb8e(0x15e)](new Error(ImageUploadStatusType[_0x15fb8e(0x33d)]));try{const _0x5f3b9a=new FormData();_0x5f3b9a[_0x15fb8e(0x391)](_0x15fb8e(0x39c),_0x4a09eb);const _0x27bcef=this['_univerInstanceService'][_0x15fb8e(0x165)](),_0x2fd875=_0x27bcef==null?void 0x0:_0x27bcef[_0x15fb8e(0x13d)]();if(!_0x2fd875)throw new Error(_0x15fb8e(0x1df));const _0x5f2965=this[_0x15fb8e(0x2e8)]()+_0x15fb8e(0x407)+_0x4a09eb[_0x15fb8e(0x313)][_0x15fb8e(0x1fa)]()+_0x15fb8e(0x147)+FileSource[_0x15fb8e(0x383)]+_0x15fb8e(0x282)+encodeURIComponent(_0x2fd875),_0x43a49e=await(await fetch(_0x5f2965,{'method':_0x15fb8e(0x321),'body':_0x5f3b9a}))[_0x15fb8e(0x175)]();if(typeof _0x43a49e[_0x15fb8e(0x324)]!='string')return this[_0x15fb8e(0x441)](),Promise[_0x15fb8e(0x15e)](new Error(ImageUploadStatusType[_0x15fb8e(0x45f)]));_0xf66551=_0x43a49e[_0x15fb8e(0x324)];}catch{return this['_decreaseWaiting'](),Promise[_0x15fb8e(0x15e)](new Error(ImageUploadStatusType[_0x15fb8e(0x45f)]));}return new Promise((_0x4e3b4f,_0x516d2c)=>{var _0x3f4c24=_0x15fb8e;const _0x1afbe5=new FileReader();_0x1afbe5[_0x3f4c24(0x3c2)](_0x4a09eb),_0x1afbe5[_0x3f4c24(0x3a1)]=_0x46bf97=>{var _0x2fcdd0=_0x3f4c24,_0x3c36f2;const _0x3d175b=(_0x3c36f2=_0x46bf97[_0x2fcdd0(0x3ed)])==null?void 0x0:_0x3c36f2['result'];if(_0x3d175b==null){this['_decreaseWaiting'](),_0x516d2c(new Error(ImageUploadStatusType['ERROR_IMAGE']));return;}const _0x50862b=Tools[_0x2fcdd0(0x2ca)](0x6);_0x4e3b4f({'imageId':_0x50862b,'imageSourceType':ImageSourceType['UUID'],'source':_0xf66551,'base64Cache':_0x3d175b,'status':ImageUploadStatusType[_0x2fcdd0(0x36f)]}),this['_decreaseWaiting']();};});}[_0xa33034(0x2e8)](){var _0x33ff6b=_0xa33034,_0x2be196,_0x4b9530;const _0x99ed35=this['_configService']['getConfig'](EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY),_0x45daf0=this[_0x33ff6b(0x36a)][_0x33ff6b(0x439)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x4b9530=(_0x2be196=_0x45daf0==null?void 0x0:_0x45daf0[_0x33ff6b(0x43a)])!=null?_0x2be196:_0x99ed35)!=null?_0x4b9530:DEFAULT_EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY;}[_0xa33034(0x1a1)](){var _0x3d4163=_0xa33034,_0x5a5f38,_0x2749b2;const _0x2f5e12=this['_configService'][_0x3d4163(0x439)](EXCHANGE_SIGN_URL_SERVER_URL_KEY),_0x3ee742=this[_0x3d4163(0x36a)][_0x3d4163(0x439)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x2749b2=(_0x5a5f38=_0x3ee742==null?void 0x0:_0x3ee742[_0x3d4163(0x2d3)])!=null?_0x5a5f38:_0x2f5e12)!=null?_0x2749b2:DEFAULT_EXCHANGE_SIGN_URL_SERVER_URL_KEY;}[_0xa33034(0x3e9)](){var _0x418c8a=_0xa33034,_0x16fdc0;const _0x34bc7b=this['_configService'][_0x418c8a(0x439)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x16fdc0=_0x34bc7b==null?void 0x0:_0x34bc7b[_0x418c8a(0x24e)])!=null?_0x16fdc0:location[_0x418c8a(0x334)];}[_0xa33034(0x2d2)](_0x524ae1,_0x402ca9){var _0x36230c=_0xa33034;return _0x524ae1[_0x36230c(0x1a6)](_0x36230c(0x3c6),_0x402ca9);}['_decreaseWaiting'](){var _0x514ded=_0xa33034;this[_0x514ded(0x2fa)]-=0x1,this[_0x514ded(0x374)][_0x514ded(0x17a)](this['_waitCount']);}},__name(_a22,_0xa33034(0x1c2)),_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((_0x120c17,_0x261382,_0x1815df,_0x26b217)=>{var _0x463845=_0xa33034;for(var _0x5006bd=_0x26b217>0x1?void 0x0:_0x26b217?__getOwnPropDesc$4(_0x261382,_0x1815df):_0x261382,_0x47c64d=_0x120c17[_0x463845(0x271)]-0x1,_0x5140aa;_0x47c64d>=0x0;_0x47c64d--)(_0x5140aa=_0x120c17[_0x47c64d])&&(_0x5006bd=(_0x26b217?_0x5140aa(_0x261382,_0x1815df,_0x5006bd):_0x5140aa(_0x5006bd))||_0x5006bd);return _0x26b217&&_0x5006bd&&__defProp$4(_0x261382,_0x1815df,_0x5006bd),_0x5006bd;},_0xa33034(0x3e3)),__decorateParam$4=__name((_0x23142f,_0x5d8243)=>(_0x1ef502,_0x21a96a)=>_0x5d8243(_0x1ef502,_0x21a96a,_0x23142f),_0xa33034(0x1f3));const DEFAULT_AUTHZ_URL_KEY=_0xa33034(0x3e1);var _a23;let MentionIoHttpService=(_a23=class{constructor(_0x16153f,_0x3a9d5c){this['_configService']=_0x16153f,this['_HTTPService']=_0x3a9d5c;}[_0xa33034(0x2d4)](){var _0x14cb89=_0xa33034,_0x214a8f,_0x55539d;const _0x4c9363=this[_0x14cb89(0x36a)][_0x14cb89(0x439)](AUTHZ_URL_KEY),_0x380f6e=this[_0x14cb89(0x36a)]['getConfig'](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x55539d=(_0x214a8f=_0x380f6e==null?void 0x0:_0x380f6e[_0x14cb89(0x469)])!=null?_0x214a8f:_0x4c9363)!=null?_0x55539d:DEFAULT_AUTHZ_URL_KEY;}async[_0xa33034(0x2f0)](_0x12375c){var _0x16923b=_0xa33034;const _0x3f4a91=this[_0x16923b(0x2d4)]()+_0x16923b(0x1ad);return{'list':[{'title':_0x16923b(0x29c),'mentions':(await this[_0x16923b(0x3af)]['get'](_0x3f4a91,{'params':{'objectID':_0x12375c[_0x16923b(0x199)],'unitID':_0x12375c['unitId']}}))[_0x16923b(0x12f)][_0x16923b(0x3ff)]['map'](_0xca4f50=>({'objectId':_0xca4f50['id'],'name':_0xca4f50['subject']['name'],'metadata':{'icon':_0xca4f50[_0x16923b(0x23e)][_0x16923b(0x386)]},'label':_0xca4f50[_0x16923b(0x23e)][_0x16923b(0x447)],'objectType':MentionType[_0x16923b(0x21f)]})),'metadata':{},'type':MentionType['PERSON']}]};}},__name(_a23,'MentionIoHttpService'),_a23);MentionIoHttpService=__decorateClass$4([__decorateParam$4(0x0,Inject(IConfigService)),__decorateParam$4(0x1,Inject(HTTPService))],MentionIoHttpService);var __defProp$3=Object[_0xa33034(0x2e1)],__getOwnPropDesc$3=Object['getOwnPropertyDescriptor'],__decorateClass$3=__name((_0x3a95cd,_0x5089ba,_0x608041,_0x52981c)=>{var _0xaf6608=_0xa33034;for(var _0x11dd5=_0x52981c>0x1?void 0x0:_0x52981c?__getOwnPropDesc$3(_0x5089ba,_0x608041):_0x5089ba,_0x15d49f=_0x3a95cd[_0xaf6608(0x271)]-0x1,_0x4e17ec;_0x15d49f>=0x0;_0x15d49f--)(_0x4e17ec=_0x3a95cd[_0x15d49f])&&(_0x11dd5=(_0x52981c?_0x4e17ec(_0x5089ba,_0x608041,_0x11dd5):_0x4e17ec(_0x11dd5))||_0x11dd5);return _0x52981c&&_0x11dd5&&__defProp$3(_0x5089ba,_0x608041,_0x11dd5),_0x11dd5;},_0xa33034(0x330)),__decorateParam$3=__name((_0x168253,_0xe12e83)=>(_0xbed9f7,_0x1a6d1d)=>_0xe12e83(_0xbed9f7,_0x1a6d1d,_0x168253),_0xa33034(0x2b6)),_a24;let PermissionService=(_a24=class extends RxDisposable{constructor(_0x317cac,_0x2260f4,_0x11887c,_0x2ce20b,_0x352166,_0x1e09da,_0x14231c){var _0x1c7893=_0xa33034;super(),this['_injector']=_0x317cac,this[_0x1c7893(0x40d)]=_0x2260f4,this['_permissionService']=_0x11887c,this[_0x1c7893(0x152)]=_0x2ce20b,this[_0x1c7893(0x242)]=_0x352166,this[_0x1c7893(0x43f)]=_0x1e09da,this[_0x1c7893(0x456)]=_0x14231c,this[_0x1c7893(0x487)](),this['_initCloseConn']();}[_0xa33034(0x219)](){var _0x47d658=_0xa33034;const _0x41d5c5=__name(async _0x2bb269=>{var _0x35d665=_0x214d;(await this[_0x35d665(0x152)][_0x35d665(0x155)](_0x2bb269))[_0x35d665(0x349)][_0x35d665(0x2c8)](filter(_0x40bcb5=>_0x40bcb5[_0x35d665(0x202)]===CollaborationEvent[_0x35d665(0x35d)]),_0x22dda8(this[_0x35d665(0x3ca)]))['subscribe'](_0x37d1ec=>{var _0x6f1f8d=_0x35d665;const _0x18bae6=_0x37d1ec,{reason:_0x168820}=_0x18bae6[_0x6f1f8d(0x2c1)];this[_0x6f1f8d(0x242)]['emitEvent']({'id':CollaborationUIEventId[_0x6f1f8d(0x1e1)],'data':_0x168820}),this[_0x6f1f8d(0x28a)][_0x6f1f8d(0x154)](new WorkbookEditablePermission(_0x2bb269)['id'],!0x1),this['_collaborationSessionService']['closeSession'](_0x2bb269);});},_0x47d658(0x245));merge(this[_0x47d658(0x40d)][_0x47d658(0x368)](UniverInstanceType[_0x47d658(0x1d0)]),this['_univerInstanceService']['getTypeOfUnitAdded$'](UniverInstanceType[_0x47d658(0x36b)]))[_0x47d658(0x2c8)](map(_0x165b8d=>_0x165b8d[_0x47d658(0x13d)]()),filter(_0x2d6950=>!isInternalEditorID(_0x2d6950)),_0x22dda8(this[_0x47d658(0x3ca)]))[_0x47d658(0x479)](_0x4b70f5=>{_0x41d5c5(_0x4b70f5);});}[_0xa33034(0x487)](){var _0x1bc149=_0xa33034;const _0xb57082=__name(async _0x3e9da3=>{var _0x16c0b2=_0x214d;const _0x9b3677=await this[_0x16c0b2(0x152)]['requireSession'](_0x3e9da3),_0x1ddf61=this['_injector'][_0x16c0b2(0x38a)](SheetPermissionInitController);_0x9b3677[_0x16c0b2(0x349)]['pipe'](filter(_0x5ae4b2=>_0x5ae4b2[_0x16c0b2(0x202)]===CollaborationEvent[_0x16c0b2(0x280)]),_0x22dda8(this['dispose$']))[_0x16c0b2(0x479)](_0x48ebd9=>{var _0x4810d3=_0x16c0b2;const _0x516376=_0x48ebd9,{objectId:_0x19bc80}=_0x516376[_0x4810d3(0x2c1)];_0x19bc80===_0x3e9da3?_0x1ddf61[_0x4810d3(0x1a4)](_0x3e9da3):_0x1ddf61[_0x4810d3(0x222)](_0x3e9da3,_0x19bc80);});},'handleUnitPermissionChange');merge(this[_0x1bc149(0x40d)]['getTypeOfUnitAdded$'](UniverInstanceType[_0x1bc149(0x1d0)]),this[_0x1bc149(0x40d)][_0x1bc149(0x368)](UniverInstanceType['UNIVER_DOC']))[_0x1bc149(0x2c8)](map(_0x6ea3d7=>_0x6ea3d7[_0x1bc149(0x13d)]()),filter(_0x28f89f=>!isInternalEditorID(_0x28f89f)),_0x22dda8(this[_0x1bc149(0x3ca)]))[_0x1bc149(0x479)](_0xeedeeb=>{_0xb57082(_0xeedeeb);});}},__name(_a24,_0xa33034(0x1d4)),_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[_0xa33034(0x2e1)],__getOwnPropDesc$2=Object[_0xa33034(0x29f)],__decorateClass$2=__name((_0x5aaf97,_0x4d1c15,_0x18d39d,_0x45e21f)=>{var _0xc7184=_0xa33034;for(var _0x5e9a64=_0x45e21f>0x1?void 0x0:_0x45e21f?__getOwnPropDesc$2(_0x4d1c15,_0x18d39d):_0x4d1c15,_0x4d41b7=_0x5aaf97[_0xc7184(0x271)]-0x1,_0x185518;_0x4d41b7>=0x0;_0x4d41b7--)(_0x185518=_0x5aaf97[_0x4d41b7])&&(_0x5e9a64=(_0x45e21f?_0x185518(_0x4d1c15,_0x18d39d,_0x5e9a64):_0x185518(_0x5e9a64))||_0x5e9a64);return _0x45e21f&&_0x5e9a64&&__defProp$2(_0x4d1c15,_0x18d39d,_0x5e9a64),_0x5e9a64;},_0xa33034(0x2f1)),__decorateParam$2=__name((_0x2f434a,_0x3ef5bc)=>(_0x61da8a,_0x47bc6f)=>_0x3ef5bc(_0x61da8a,_0x47bc6f,_0x2f434a),_0xa33034(0x2d9)),_a25;let SnapshotServerOverHTTPService=(_a25=class{constructor(_0x22f48e,_0x4967ea){var _0x50d3ea=_0xa33034;this['_configService']=_0x22f48e,this[_0x50d3ea(0x377)]=_0x4967ea;}async[_0xa33034(0x413)](_0x780f7,_0x5e7637){var _0x410574=_0xa33034,_0x5b6c56;const {unitID:_0x5c9483,type:_0x141d7c,revision:revision=0x0}=_0x5e7637,_0x5f1316=this['getSnapshotAPIPath']()+'/'+_0x141d7c+'/unit/'+_0x5c9483+_0x410574(0x16b)+revision,_0x3df72b=(await this[_0x410574(0x377)]['get'](_0x5f1316))[_0x410574(0x12f)],_0x4f6bef=(_0x5b6c56=_0x3df72b[_0x410574(0x1db)])==null?void 0x0:_0x5b6c56[_0x410574(0x1b9)];if(_0x4f6bef){const _0x3eea9c=_0x4f6bef==null?void 0x0:_0x4f6bef[_0x410574(0x311)],_0x11c390=textEncoder['encode'](b64DecodeUnicode(_0x3eea9c));_0x4f6bef['originalMeta']=_0x11c390,Object[_0x410574(0x484)](_0x4f6bef['sheets'])['forEach'](([,_0x27f828])=>{var _0x2052d9=_0x410574;const _0x26109c=_0x27f828[_0x2052d9(0x311)],_0x104432=textEncoder[_0x2052d9(0x359)](b64DecodeUnicode(_0x26109c));_0x27f828['originalMeta']=_0x104432;});}return _0x3df72b;}async[_0xa33034(0x1f9)](_0x4bcc52,_0x530a35){var _0x273712=_0xa33034;const {unitID:_0x27141e,type:_0x24ebb1,blockID:_0x7abc6}=_0x530a35,_0x3f37b1=this['_getAPIPrefix']()+'/'+_0x24ebb1+_0x273712(0x21a)+_0x27141e+_0x273712(0x2e5)+_0x7abc6;return(await this[_0x273712(0x377)][_0x273712(0x38a)](_0x3f37b1))['body'];}async['getDeserializedSheetBlock'](_0x765fdd,_0x37e480){var _0x208f1d=_0xa33034;const {unitID:_0x45152a,type:_0x2f3aa5,blockID:_0x4d3b05}=_0x37e480,_0x154079=this['_getAPIPrefix']()+_0x208f1d(0x2e5)+_0x2f3aa5+_0x208f1d(0x21a)+_0x45152a+_0x208f1d(0x2e5)+_0x4d3b05;return(await this[_0x208f1d(0x377)][_0x208f1d(0x38a)](_0x154079))[_0x208f1d(0x12f)];}async[_0xa33034(0x13b)](_0x2831e5,_0x36f313){var _0x1d1a7e=_0xa33034;const {unitID:_0x260dde,type:_0x269282,from:_0x138e80,to:_0x4ffc22}=_0x36f313,_0x209ef5=this[_0x1d1a7e(0x47d)]()+'/'+_0x269282+_0x1d1a7e(0x21a)+_0x260dde+_0x1d1a7e(0x45d)+_0x138e80+'&to='+_0x4ffc22;return(await this[_0x1d1a7e(0x377)][_0x1d1a7e(0x38a)](_0x209ef5))['body'];}['getSnapshotAPIPath'](){var _0x55144b=_0xa33034,_0x570cb1;return(_0x570cb1=this[_0x55144b(0x36a)]['getConfig'](SNAPSHOT_URL_KEY))!=null?_0x570cb1:this['_getAPIPrefix']();}[_0xa33034(0x47d)](){var _0xfd6cd8=_0xa33034,_0x302025,_0x400336;const _0x4db910=this[_0xfd6cd8(0x36a)][_0xfd6cd8(0x439)](SNAPSHOT_SERVER_URL_KEY),_0x513105=this[_0xfd6cd8(0x36a)]['getConfig'](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x400336=(_0x302025=_0x513105==null?void 0x0:_0x513105[_0xfd6cd8(0x283)])!=null?_0x302025:_0x4db910)!=null?_0x400336:DEFAULT_SNAPSHOT_SERVER_URL;}async[_0xa33034(0x230)](_0x303bfd,_0x2f39df){var _0xbf753f=_0xa33034;const _0x507d6d='/universer-api/snapshot/'+_0x2f39df[_0xbf753f(0x3e5)]+_0xbf753f(0x21a)+_0x2f39df[_0xbf753f(0x259)]+_0xbf753f(0x44c);return(await this[_0xbf753f(0x377)][_0xbf753f(0x38a)](_0x507d6d,{'params':{'resourceId':JSON['stringify'](_0x2f39df['resourceIDs'])}}))[_0xbf753f(0x12f)];}[_0xa33034(0x182)](){var _0x8888f9=_0xa33034;throw new Error(_0x8888f9(0x37d));}[_0xa33034(0x43e)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['saveChangeset'](){var _0x33da73=_0xa33034;throw new Error(_0x33da73(0x37d));}[_0xa33034(0x3fa)](){var _0x59e2c0=_0xa33034;throw new Error(_0x59e2c0(0x37d));}['getLatestCsReqIdBySid'](){var _0x2a75ec=_0xa33034;throw new Error(_0x2a75ec(0x37d));}},__name(_a25,_0xa33034(0x388)),_a25);SnapshotServerOverHTTPService=__decorateClass$2([__decorateParam$2(0x0,IConfigService),__decorateParam$2(0x1,Inject(HTTPService))],SnapshotServerOverHTTPService);var __defProp$1=Object[_0xa33034(0x2e1)],__getOwnPropDesc$1=Object[_0xa33034(0x29f)],__decorateClass$1=__name((_0x2bd280,_0x165111,_0xb52747,_0x4fa525)=>{var _0x19a2f7=_0xa33034;for(var _0x4af0da=_0x4fa525>0x1?void 0x0:_0x4fa525?__getOwnPropDesc$1(_0x165111,_0xb52747):_0x165111,_0x4719a7=_0x2bd280[_0x19a2f7(0x271)]-0x1,_0x810316;_0x4719a7>=0x0;_0x4719a7--)(_0x810316=_0x2bd280[_0x4719a7])&&(_0x4af0da=(_0x4fa525?_0x810316(_0x165111,_0xb52747,_0x4af0da):_0x810316(_0x4af0da))||_0x4af0da);return _0x4fa525&&_0x4af0da&&__defProp$1(_0x165111,_0xb52747,_0x4af0da),_0x4af0da;},'__decorateClass$1'),__decorateParam$1=__name((_0x46e404,_0x2fd078)=>(_0x23f6d9,_0x5211c9)=>_0x2fd078(_0x23f6d9,_0x5211c9,_0x46e404),_0xa33034(0x19f)),_a26;let CollaborativeUndoRedoService=(_a26=class extends LocalUndoRedoService{constructor(_0x13131b,_0x1a0a2f,_0x2572f7,_0x47b699,_0x28b703){var _0x3fcdf8=_0xa33034;super(_0x13131b,_0x1a0a2f,_0x2572f7),this[_0x3fcdf8(0x158)]=_0x47b699,this[_0x3fcdf8(0x48c)]=_0x28b703;}[_0xa33034(0x1c9)](_0x2adba3,_0x275226){var _0x15dcd2=_0xa33034;const _0x3699c1=this[_0x15dcd2(0x356)](_0x2adba3);if(_0x3699c1)try{const _0x1d7760=this['_transformStack'](_0x3699c1,_0x275226);this['_substituteUndoStack'](_0x2adba3,_0x1d7760);}catch(_0x341099){this[_0x15dcd2(0x48c)][_0x15dcd2(0x1c4)](_0x15dcd2(0x209),_0x341099),this[_0x15dcd2(0x168)](_0x2adba3);}const _0x3a064b=this['_getRedoStack'](_0x2adba3);if(_0x3a064b)try{const _0x16b048=this[_0x15dcd2(0x3d9)](_0x3a064b,_0x275226);this[_0x15dcd2(0x14a)](_0x2adba3,_0x16b048);}catch(_0x39cba0){this[_0x15dcd2(0x48c)][_0x15dcd2(0x1c4)](_0x39cba0),this[_0x15dcd2(0x2a1)](_0x2adba3);}}['_clearUndo'](_0x4c80f5){var _0x246a1e=_0xa33034;const _0x3ba03c=this[_0x246a1e(0x356)](_0x4c80f5);_0x3ba03c&&(_0x3ba03c[_0x246a1e(0x271)]=0x0,this[_0x246a1e(0x1ed)]());}['_clearRedo'](_0x5b0d8b){var _0x50c847=_0xa33034;const _0x14ea91=this[_0x50c847(0x37e)](_0x5b0d8b);_0x14ea91&&(_0x14ea91[_0x50c847(0x271)]=0x0,this[_0x50c847(0x1ed)]());}[_0xa33034(0x37c)](_0x446cfb,_0x42ad8c){var _0x409434=_0xa33034;this[_0x409434(0x1ea)][_0x409434(0x392)](_0x446cfb,_0x42ad8c),this[_0x409434(0x1ed)]();}['_substituteRedoStack'](_0x5c0b34,_0x5b5e08){var _0x12d52f=_0xa33034;this['_redoStacks'][_0x12d52f(0x392)](_0x5c0b34,_0x5b5e08),this['_updateStatus']();}['_transformStack'](_0x386988,_0x3229dd){var _0x10e9b5=_0xa33034;const _0x5b87d1=[];let _0x4be357=_0x3229dd,_0x1a5799=_0x3229dd;for(let _0x583c89=_0x386988[_0x10e9b5(0x271)]-0x1;_0x583c89>=0x0;_0x583c89--){const {unitID:_0x5b88dd,undoMutations:_0x33a4ba,redoMutations:_0x5b2290}=_0x386988[_0x583c89],_0x38362c=this[_0x10e9b5(0x158)]['transformMutationsWithChangeset'](_0x4be357,_0x33a4ba),_0x54ef65=this[_0x10e9b5(0x158)][_0x10e9b5(0x142)](_0x1a5799,_0x5b2290);if(isTransformMutationsWithChangesetFailure(_0x38362c)||isTransformMutationsWithChangesetFailure(_0x54ef65)){this[_0x10e9b5(0x48c)][_0x10e9b5(0x1c4)](_0x10e9b5(0x209),_0x10e9b5(0x459),_0x38362c,_0x54ef65);break;}_0x4be357=_0x38362c['c1Prime'],_0x1a5799=_0x54ef65['c1Prime'],_0x5b87d1[_0x10e9b5(0x34a)]({'unitID':_0x5b88dd,'undoMutations':_0x38362c[_0x10e9b5(0x16f)],'redoMutations':_0x54ef65[_0x10e9b5(0x16f)]});}return _0x5b87d1[_0x10e9b5(0x342)]();}},__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[_0xa33034(0x2e1)],__getOwnPropDesc=Object[_0xa33034(0x29f)],__defNormalProp2=__name((_0xea4af3,_0x317cbd,_0x3a3dc9)=>_0x317cbd in _0xea4af3?__defProp2(_0xea4af3,_0x317cbd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3a3dc9}):_0xea4af3[_0x317cbd]=_0x3a3dc9,_0xa33034(0x335)),__decorateClass=__name((_0x1595b2,_0x5a5c9f,_0x31a2fc,_0x5b4040)=>{var _0x504ad4=_0xa33034;for(var _0x16ad8a=_0x5b4040>0x1?void 0x0:_0x5b4040?__getOwnPropDesc(_0x5a5c9f,_0x31a2fc):_0x5a5c9f,_0x4b8413=_0x1595b2[_0x504ad4(0x271)]-0x1,_0x9d4abc;_0x4b8413>=0x0;_0x4b8413--)(_0x9d4abc=_0x1595b2[_0x4b8413])&&(_0x16ad8a=(_0x5b4040?_0x9d4abc(_0x5a5c9f,_0x31a2fc,_0x16ad8a):_0x9d4abc(_0x16ad8a))||_0x16ad8a);return _0x5b4040&&_0x16ad8a&&__defProp2(_0x5a5c9f,_0x31a2fc,_0x16ad8a),_0x16ad8a;},_0xa33034(0x307)),__decorateParam=__name((_0x41d6d3,_0x3e3ad8)=>(_0x2a6b47,_0x20ac1d)=>_0x3e3ad8(_0x2a6b47,_0x20ac1d,_0x41d6d3),_0xa33034(0x425)),__publicField2=__name((_0x47877c,_0x27b9b9,_0xbacf03)=>__defNormalProp2(_0x47877c,_0x27b9b9+'',_0xbacf03),_0xa33034(0x3f6));const PLUGIN_NAME=_0xa33034(0x153);var _a27;let UniverCollaborationClientPlugin=(_a27=class extends Plugin{constructor(_0x10309c=defaultPluginConfig,_0x47ea59,_0x170e73,_0xf81a09){var _0x196d52=_0xa33034;super(),this[_0x196d52(0x32f)]=_0x10309c,this['_logService']=_0x47ea59,this[_0x196d52(0x39e)]=_0x170e73,this[_0x196d52(0x36a)]=_0xf81a09;const {..._0x24f9ce}=_0x5bcb5c({},defaultPluginConfig,this['_config']);this[_0x196d52(0x36a)][_0x196d52(0x412)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,_0x24f9ce);}[_0xa33034(0x323)](){var _0x3daa57=_0xa33034;this[_0x3daa57(0x1fd)](),this[_0x3daa57(0x454)]();}[_0xa33034(0x1fd)](){var _0x349c78=_0xa33034,_0x2ed4ed,_0xa6ec62,_0x127cbc,_0x330716;this[_0x349c78(0x39e)]['has'](IUndoRedoService)&&this[_0x349c78(0x48c)][_0x349c78(0x1c4)](_0x349c78(0x3c4),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');const _0x22925e=mergeOverrideWithDependencies([[IUndoRedoService,{'useClass':CollaborativeUndoRedoService}],[CollaborationSessionService],[MemberService],[SheetTransformSelectionsService],[AuthServerService],[DomainRequestService],[CommentService],[PermissionService],[CollaborationUIEventService],[DataLoaderService],[ICollaborationSocketService,{'useClass':(_0xa6ec62=(_0x2ed4ed=this[_0x349c78(0x32f)])==null?void 0x0:_0x2ed4ed['socketService'])!=null?_0xa6ec62:CollaborationSocketService}],[ISnapshotServerService,{'useClass':SnapshotServerOverHTTPService}],[IAuthzIoService,{'useClass':AuthzIoHttpService}],[IImageIoService,{'useClass':CollaborationImageIoService}],[IMentionIOService,{'useClass':MentionIoHttpService}],[CollaborationController],[FileNameController]],(_0x127cbc=this[_0x349c78(0x32f)])==null?void 0x0:_0x127cbc[_0x349c78(0x405)]);if(!((_0x330716=this[_0x349c78(0x32f)])!=null&&_0x330716[_0x349c78(0x39a)])){const _0x529e9e=_0x22925e[_0x349c78(0x1e0)](([_0x2fa77b])=>_0x2fa77b===ISingleActiveUnitService);_0x529e9e!==-0x1&&_0x22925e['splice'](_0x529e9e,0x1);}registerDependencies(this['_injector'],_0x22925e);}[_0xa33034(0x454)](){var _0xa25f85=_0xa33034,_0x39595e,_0x3d15dd,_0x5ee1ed;this[_0xa25f85(0x39e)][_0xa25f85(0x38a)](HTTPService)[_0xa25f85(0x2fe)]({'priority':0x14,'interceptor':ThresholdInterceptorFactory({'maxParallel':0x6})}),(_0x39595e=this[_0xa25f85(0x32f)])!=null&&_0x39595e[_0xa25f85(0x2ee)]||(_0x3d15dd=this[_0xa25f85(0x39e)]['get'](ILocalCacheService,Quantity[_0xa25f85(0x36e)]))==null||_0x3d15dd[_0xa25f85(0x157)](),(_0x5ee1ed=this[_0xa25f85(0x32f)])!=null&&_0x5ee1ed['enableAuthServer']&&touchDependencies(this[_0xa25f85(0x39e)],[[AuthServerService]]),touchDependencies(this[_0xa25f85(0x39e)],[[DomainRequestService],[CollaborationController],[PermissionService]]);}},__name(_a27,_0xa33034(0x28f)),_a27);__publicField2(UniverCollaborationClientPlugin,_0xa33034(0x2b7),PLUGIN_NAME),UniverCollaborationClientPlugin=__decorateClass([DependentOn(UniverCollaborationPlugin,UniverSheetsPlugin,UniverNetworkPlugin),__decorateParam(0x1,ILogService),__decorateParam(0x2,Inject(Injector)),__decorateParam(0x3,IConfigService)],UniverCollaborationClientPlugin);export{AUTHZ_URL_KEY,AuthzIoHttpService,AwaitingState,AwaitingWithPendingState,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,COLLAB_SUBMIT_CHANGESET_URL_KEY,COLLAB_WEB_SOCKET_URL_KEY,CollaborationController,CollaborationEntity,CollaborationImageIoService,CollaborationSession,CollaborationSessionService,CollaborationSocketService,CollaborationStatus,CollaborationUIEventId,CollaborationUIEventService,CollaborativeUndoRedoService,CommentService,ConflictState,DEFAULT_COLLAB_WEB_SOCKET_URL,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT,DataLoaderService,DocCollaborationEntity,FetchingMissState,HEARTBEAT_INTERVAL_KEY,HEARTBEAT_TIMEOUT_KEY,ICollaborationSocketService,ILocalCacheService,INetworkConditionService,ISingleActiveUnitService,LOCAL_CACHE_INTERVAL,LOCAL_CACHE_INTERVAL_KEY,LOGIN_URL_KEY,MemberService,MentionIoHttpService,OfflineState,PendingState,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY,RETRY_CONNECTING_MAX_COUNT_KEY,SEND_CHANGESET_TIMEOUT_KEY,SNAPSHOT_SERVER_URL_KEY,SNAPSHOT_URL_KEY,SessionStatus,SheetCollaborationEntity,SheetTransformSelectionsService,SnapshotServerOverHTTPService,SyncedState,UnitStatus,UniverCollaborationClientPlugin,deserializeToCombResponse,getLocalCacheKey,serializeCombRequest};
|
1
|
+
var _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};
|