@univerjs-pro/collaboration-client 0.5.5-nightly.202501220324 → 0.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +9 -9
package/lib/es/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
var _0x43e0c9=_0x5029;(function(_0x405a8d,_0x13b38f){var _0x185800=_0x5029,_0x3f18e0=_0x405a8d();while(!![]){try{var _0x1f4e85=-parseInt(_0x185800(0x1ab))/0x1*(-parseInt(_0x185800(0x168))/0x2)+parseInt(_0x185800(0x1d8))/0x3+parseInt(_0x185800(0x2db))/0x4*(parseInt(_0x185800(0x1c1))/0x5)+parseInt(_0x185800(0x169))/0x6+parseInt(_0x185800(0x41e))/0x7*(parseInt(_0x185800(0x3d8))/0x8)+parseInt(_0x185800(0x253))/0x9+parseInt(_0x185800(0x3f6))/0xa*(-parseInt(_0x185800(0x301))/0xb);if(_0x1f4e85===_0x13b38f)break;else _0x3f18e0['push'](_0x3f18e0['shift']());}catch(_0x55769b){_0x3f18e0['push'](_0x3f18e0['shift']());}}}(_0x2fa0,0x5f826));var __defProp=Object[_0x43e0c9(0x1bc)],__defNormalProp=(_0x3c0992,_0x3ad421,_0x395262)=>_0x3ad421 in _0x3c0992?__defProp(_0x3c0992,_0x3ad421,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x395262}):_0x3c0992[_0x3ad421]=_0x395262,__name=(_0x63f3be,_0x9677aa)=>__defProp(_0x63f3be,_0x43e0c9(0x3e4),{'value':_0x9677aa,'configurable':!0x0}),__publicField=(_0x5a894e,_0x233ba0,_0x53c099)=>__defNormalProp(_0x5a894e,typeof _0x233ba0!=_0x43e0c9(0x149)?_0x233ba0+'':_0x233ba0,_0x53c099);import{createIdentifier,Inject,Injector,Disposable,DisposableCollection,toDisposable,IConfigService,ILogService,UserManagerService,UniverInstanceType,IUniverInstanceService,LocaleService,Optional,RxDisposable,Tools,Rectangle,ICommandService,JSONX,CommandType,IPermissionService,IUndoRedoService,sequenceExecute,Workbook,MentionType,IAuthzIoService,isInternalEditorID,LocalUndoRedoService,IContextService,DependentOn,Plugin,merge as _0x523ccd,mergeOverrideWithDependencies,IMentionIOService,registerDependencies,Quantity,touchDependencies}from'@univerjs/core';import{Subject,merge,of,BehaviorSubject,takeUntil,ReplaySubject,take as _0x4af4d9,map as _0x14d6b6,shareReplay,firstValueFrom,concatMap}from'rxjs';import{map,take,filter,delay,takeUntil as _0x3e796d}from'rxjs/operators';import{HTTPService,ISocketService,MergeInterceptorFactory,HTTPRequest,UniverNetworkPlugin,ThresholdInterceptorFactory}from'@univerjs/network';import{CollaborationEvent,parseChangesetToProtocol,ISnapshotServerService,isTransformMutationsWithChangesetSuccess,ITransformService,mapDocumentTypeToUniverType,RevisionService,isTransformChangesetsSuccess,CompressMutationService,parseProtocolChangeset,SnapshotService,textEncoder,b64DecodeUnicode,isTransformMutationsWithChangesetFailure,UniverCollaborationPlugin}from'@univerjs-pro/collaboration';import{ITelemetryService}from'@univerjs/telemetry';import{RichTextEditingMutation}from'@univerjs/docs';import{SheetsSelectionsService,SetSelectionsOperation,InsertSheetMutation,EmptyMutation,WorkbookEditablePermission,SheetPermissionInitController,UniverSheetsPlugin}from'@univerjs/sheets';import{ImageSourceType,ImageUploadStatusType,IImageIoService}from'@univerjs/drawing';import{getGlobalObject}from'@univerjs-pro/license';const SNAPSHOT_SERVER_URL_KEY='SNAPSHOT_SERVER_URL_KEY',DEFAULT_SNAPSHOT_SERVER_URL='/universer-api/snapshot',SNAPSHOT_URL_KEY='SNAPSHOT_URL_KEY',SEND_CHANGESET_TIMEOUT_KEY=_0x43e0c9(0x17c),DEFAULT_SEND_CHANGESET_TIMEOUT=0x7d0,COLLAB_WEB_SOCKET_URL_KEY=_0x43e0c9(0x2d6),DEFAULT_COLLAB_WEB_SOCKET_URL=_0x43e0c9(0x170),DEFAULT_WS_SESSION_TICKET_URL=_0x43e0c9(0x321),HEARTBEAT_INTERVAL_KEY=_0x43e0c9(0x326),DEFAULT_HEARTBEAT_INTERVAL=0x7530,HEARTBEAT_TIMEOUT_KEY=_0x43e0c9(0xf7),DEFAULT_HEARTBEAT_TIMEOUT=0x4e20,DEFAULT_RETRY_CONNECTING_INTERVAL=0x4e20,RETRY_CONNECTING_MAX_COUNT_KEY='RETRY_CONNECTING_MAX_COUNT',DEFAULT_RETRY_CONNECTING_MAX_COUNT=0x3,LOCAL_CACHE_INTERVAL_KEY=_0x43e0c9(0x1c9),LOCAL_CACHE_INTERVAL=0x3e8,COLLAB_SUBMIT_CHANGESET_URL_KEY='COLLAB_SUBMIT_CHANGESET_URL',DEFAULT_COLLAB_SUBMIT_CHANGESET_URL=_0x43e0c9(0x424),LOGIN_URL_KEY='LOGIN_URL_KEY',DEFAULT_LOGIN_URL=_0x43e0c9(0x217),REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY=_0x43e0c9(0x2dd),DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT=_0x43e0c9(0x2a5);var ErrorCode=(_0xaf126e=>(_0xaf126e[_0xaf126e['UNDEFINED']=0x0]=_0x43e0c9(0x16b),_0xaf126e[_0xaf126e['OK']=0x1]='OK',_0xaf126e[_0xaf126e[_0x43e0c9(0x156)]=0x2]=_0x43e0c9(0x156),_0xaf126e[_0xaf126e[_0x43e0c9(0x2bb)]=0x3]=_0x43e0c9(0x2bb),_0xaf126e[_0xaf126e[_0x43e0c9(0x344)]=0x4]=_0x43e0c9(0x344),_0xaf126e[_0xaf126e[_0x43e0c9(0x1a1)]=0x5]=_0x43e0c9(0x1a1),_0xaf126e[_0xaf126e[_0x43e0c9(0x409)]=0x6]=_0x43e0c9(0x409),_0xaf126e[_0xaf126e[_0x43e0c9(0x299)]=0x7]=_0x43e0c9(0x299),_0xaf126e[_0xaf126e['TOO_MANY_REQUESTS']=0x8]='TOO_MANY_REQUESTS',_0xaf126e[_0xaf126e[_0x43e0c9(0x1b8)]=0x9]='COMPLETION_FINISHED',_0xaf126e[_0xaf126e[_0x43e0c9(0x408)]=0x1389]=_0x43e0c9(0x408),_0xaf126e[_0xaf126e[_0x43e0c9(0x1fe)]=0x1771]=_0x43e0c9(0x1fe),_0xaf126e[_0xaf126e['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0xaf126e[_0xaf126e['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x43e0c9(0x3c6),_0xaf126e[_0xaf126e['APPLY_REJECT']=0x1b59]=_0x43e0c9(0x21a),_0xaf126e[_0xaf126e['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x43e0c9(0x428),_0xaf126e[_0xaf126e[_0x43e0c9(0x247)]=0x1b5b]=_0x43e0c9(0x247),_0xaf126e[_0xaf126e[_0x43e0c9(0x19a)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0xaf126e[_0xaf126e[_0x43e0c9(0x3d4)]=0x1b5d]=_0x43e0c9(0x3d4),_0xaf126e[_0xaf126e[_0x43e0c9(0x18a)]=0x1f41]=_0x43e0c9(0x18a),_0xaf126e[_0xaf126e[_0x43e0c9(0x35e)]=0x2329]=_0x43e0c9(0x35e),_0xaf126e[_0xaf126e[_0x43e0c9(0x3df)]=0x232a]=_0x43e0c9(0x3df),_0xaf126e[_0xaf126e[_0x43e0c9(0x3ef)]=0x232b]=_0x43e0c9(0x3ef),_0xaf126e[_0xaf126e[_0x43e0c9(0x339)]=0x232c]=_0x43e0c9(0x339),_0xaf126e[_0xaf126e[_0x43e0c9(0x2ec)]=0x232d]=_0x43e0c9(0x2ec),_0xaf126e[_0xaf126e['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x43e0c9(0x257),_0xaf126e[_0xaf126e[_0x43e0c9(0x242)]=0x2712]=_0x43e0c9(0x242),_0xaf126e[_0xaf126e[_0x43e0c9(0x222)]=0x2713]=_0x43e0c9(0x222),_0xaf126e[_0xaf126e[_0x43e0c9(0x1a3)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0xaf126e[_0xaf126e[_0x43e0c9(0x3e5)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0xaf126e[_0xaf126e[_0x43e0c9(0x18e)]=-0x1]=_0x43e0c9(0x18e),_0xaf126e))(ErrorCode||{}),UniverType=(_0x46cb73=>(_0x46cb73[_0x46cb73[_0x43e0c9(0x2fc)]=0x0]=_0x43e0c9(0x2fc),_0x46cb73[_0x46cb73[_0x43e0c9(0x199)]=0x1]='UNIVER_DOC',_0x46cb73[_0x46cb73[_0x43e0c9(0x202)]=0x2]='UNIVER_SHEET',_0x46cb73[_0x46cb73[_0x43e0c9(0x2ee)]=0x3]=_0x43e0c9(0x2ee),_0x46cb73[_0x46cb73[_0x43e0c9(0x440)]=0x4]=_0x43e0c9(0x440),_0x46cb73[_0x46cb73[_0x43e0c9(0x18e)]=-0x1]=_0x43e0c9(0x18e),_0x46cb73))(UniverType||{}),CombCmd=(_0x5430eb=>(_0x5430eb[_0x5430eb['UNKNOWN_CMD']=0x0]=_0x43e0c9(0x412),_0x5430eb[_0x5430eb['HELLO']=0x1]=_0x43e0c9(0x343),_0x5430eb[_0x5430eb[_0x43e0c9(0x3ba)]=0x2]=_0x43e0c9(0x3ba),_0x5430eb[_0x5430eb[_0x43e0c9(0x190)]=0x3]=_0x43e0c9(0x190),_0x5430eb[_0x5430eb[_0x43e0c9(0x137)]=0x4]=_0x43e0c9(0x137),_0x5430eb[_0x5430eb['HEARTBEAT']=0x5]=_0x43e0c9(0x3e0),_0x5430eb[_0x5430eb[_0x43e0c9(0x1d3)]=0x6]=_0x43e0c9(0x1d3),_0x5430eb[_0x5430eb['UNRECOGNIZED']=-0x1]=_0x43e0c9(0x18e),_0x5430eb))(CombCmd||{}),CmdRspCode=(_0x4e4e52=>(_0x4e4e52[_0x4e4e52['UNKNOWN_CODE']=0x0]='UNKNOWN_CODE',_0x4e4e52[_0x4e4e52['OK']=0x1]='OK',_0x4e4e52[_0x4e4e52[_0x43e0c9(0x1f3)]=0x2]=_0x43e0c9(0x1f3),_0x4e4e52[_0x4e4e52[_0x43e0c9(0x163)]=0x3e9]=_0x43e0c9(0x163),_0x4e4e52[_0x4e4e52['JOIN_ROOM_NOT_EXISTS']=0x3ea]=_0x43e0c9(0x2e4),_0x4e4e52[_0x4e4e52[_0x43e0c9(0x2f5)]=0x3eb]=_0x43e0c9(0x2f5),_0x4e4e52[_0x4e4e52[_0x43e0c9(0x384)]=0x3ec]=_0x43e0c9(0x384),_0x4e4e52[_0x4e4e52[_0x43e0c9(0x18e)]=-0x1]=_0x43e0c9(0x18e),_0x4e4e52))(CmdRspCode||{}),FileSource=(_0x25b0b7=>(_0x25b0b7[_0x25b0b7[_0x43e0c9(0x3d0)]=0x0]=_0x43e0c9(0x3d0),_0x25b0b7[_0x25b0b7[_0x43e0c9(0x1b1)]=0x1]=_0x43e0c9(0x1b1),_0x25b0b7[_0x25b0b7[_0x43e0c9(0x198)]=0x2]='HttpExport',_0x25b0b7[_0x25b0b7[_0x43e0c9(0x382)]=0x3]=_0x43e0c9(0x382),_0x25b0b7[_0x25b0b7['UnitSnapshot']=0x4]=_0x43e0c9(0x18c),_0x25b0b7[_0x25b0b7[_0x43e0c9(0x18e)]=-0x1]='UNRECOGNIZED',_0x25b0b7))(FileSource||{});const COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY=_0x43e0c9(0x122),defaultPluginConfig={};var CollaborationUIEventId=(_0x1ee9b3=>(_0x1ee9b3[_0x43e0c9(0x240)]=_0x43e0c9(0x240),_0x1ee9b3[_0x43e0c9(0x2bb)]=_0x43e0c9(0x2bb),_0x1ee9b3[_0x43e0c9(0x2a0)]='CONFLICT',_0x1ee9b3[_0x43e0c9(0x309)]=_0x43e0c9(0x309),_0x1ee9b3[_0x43e0c9(0x2b6)]=_0x43e0c9(0x2b6),_0x1ee9b3[_0x43e0c9(0x135)]=_0x43e0c9(0x135),_0x1ee9b3[_0x43e0c9(0x42d)]=_0x43e0c9(0x42d),_0x1ee9b3[_0x43e0c9(0x26f)]=_0x43e0c9(0x26f),_0x1ee9b3))(CollaborationUIEventId||{});const _CollaborationUIEventService=class _CollaborationUIEventService{constructor(){__publicField(this,'_event$',new Subject()),__publicField(this,'event$',this['_event$']['asObservable']());}[_0x43e0c9(0x43a)](_0x1c8846){var _0xfcaf7d=_0x43e0c9;this[_0xfcaf7d(0x228)][_0xfcaf7d(0x2e5)](_0x1c8846);}};__name(_CollaborationUIEventService,_0x43e0c9(0x19f));let CollaborationUIEventService=_CollaborationUIEventService;const INetworkConditionService=createIdentifier(_0x43e0c9(0x375));function deserializeToCombResponse(_0x325601){var _0x16b6f7=_0x43e0c9,_0x5e96c5,_0x513ecd,_0x379eba,_0x24f282,_0x5baf52;const _0x5641d5=_0x325601[_0x16b6f7(0x14c)],_0x4a8973=JSON['parse'](_0x5641d5);switch(_0x4a8973['cmd']){case CombCmd[_0x16b6f7(0x3e0)]:case CombCmd[_0x16b6f7(0x343)]:{const _0x1696ae=_0x4a8973['infoRsp'];return{..._0x4a8973,'data':_0x1696ae,'cmd':_0x4a8973[_0x16b6f7(0x1fb)]};}case CombCmd[_0x16b6f7(0x3ba)]:{const _0x171bd0=_0x4a8973[_0x16b6f7(0x1e6)];return{..._0x4a8973,'data':_0x171bd0,'cmd':_0x4a8973[_0x16b6f7(0x1fb)]};}case CombCmd[_0x16b6f7(0x1d3)]:{const _0x5111c4=_0x4a8973[_0x16b6f7(0x165)];switch(_0x5111c4[_0x16b6f7(0x25d)]){case CollaborationEvent[_0x16b6f7(0x3db)]:return{..._0x4a8973,'data':{..._0x5111c4,'data':(_0x5e96c5=_0x5111c4[_0x16b6f7(0x2b1)])==null?void 0x0:_0x5e96c5['cs']},'cmd':_0x4a8973[_0x16b6f7(0x1fb)]};case CollaborationEvent[_0x16b6f7(0x24c)]:return{..._0x4a8973,'data':{..._0x5111c4,'data':(_0x513ecd=_0x5111c4[_0x16b6f7(0x3b7)])==null?void 0x0:_0x513ecd['cs']},'cmd':_0x4a8973[_0x16b6f7(0x1fb)]};case CollaborationEvent['NEW_CHANGESETS']:return{..._0x4a8973,'data':{..._0x5111c4,'data':(_0x379eba=_0x5111c4[_0x16b6f7(0x1e8)])==null?void 0x0:_0x379eba['cs']},'cmd':_0x4a8973[_0x16b6f7(0x1fb)]};case CollaborationEvent[_0x16b6f7(0x26d)]:return{..._0x4a8973,'data':{..._0x5111c4,'data':(_0x24f282=_0x5111c4['csRejEvent'])==null?void 0x0:_0x24f282['cs']},'cmd':_0x4a8973[_0x16b6f7(0x1fb)]};case CollaborationEvent['CHANGESET_SHOULD_RETRY']:return{..._0x4a8973,'data':{..._0x5111c4,'data':(_0x5baf52=_0x5111c4[_0x16b6f7(0x333)])==null?void 0x0:_0x5baf52['cs']},'cmd':_0x4a8973['cmd']};case CollaborationEvent[_0x16b6f7(0x38d)]:return{..._0x4a8973,'data':{..._0x5111c4,'data':_0x5111c4[_0x16b6f7(0x260)]},'cmd':_0x4a8973['cmd']};case CollaborationEvent[_0x16b6f7(0x1c4)]:return{..._0x4a8973,'data':{..._0x5111c4,'data':_0x5111c4['joinEvent']},'cmd':_0x4a8973[_0x16b6f7(0x1fb)]};case CollaborationEvent[_0x16b6f7(0x2fe)]:return{..._0x4a8973,'data':{..._0x5111c4,'data':_0x5111c4['leaveEvent']},'cmd':_0x4a8973[_0x16b6f7(0x1fb)]};case CollaborationEvent[_0x16b6f7(0x209)]:return{..._0x4a8973,'data':{..._0x5111c4,'data':_0x5111c4[_0x16b6f7(0x136)]},'cmd':_0x4a8973[_0x16b6f7(0x1fb)]};case CollaborationEvent['LIVESHARE_FETCH_OPERATIONS']:case CollaborationEvent[_0x16b6f7(0x132)]:return{..._0x4a8973,'data':{..._0x5111c4,'data':_0x5111c4[_0x16b6f7(0x232)]},'cmd':_0x4a8973['cmd']};case CollaborationEvent['LIVESHARE_TERMINATE']:return{..._0x4a8973,'data':{..._0x5111c4,'data':_0x5111c4[_0x16b6f7(0x136)]},'cmd':_0x4a8973['cmd']};case CollaborationEvent[_0x16b6f7(0x292)]:return{..._0x4a8973,'data':_0x5111c4,'cmd':_0x4a8973['cmd']};case CollaborationEvent[_0x16b6f7(0x11a)]:return{..._0x4a8973,'data':{..._0x5111c4,'data':_0x5111c4['commentUpdateEvent']},'cmd':_0x4a8973[_0x16b6f7(0x1fb)]};case CollaborationEvent[_0x16b6f7(0x348)]:return{..._0x4a8973,'data':{..._0x5111c4,'data':_0x5111c4[_0x16b6f7(0x14d)]},'cmd':_0x4a8973[_0x16b6f7(0x1fb)]};case CollaborationEvent[_0x16b6f7(0x1aa)]:return{..._0x4a8973,'data':{..._0x5111c4,'data':_0x5111c4['shouldCloseConn']},'cmd':_0x4a8973[_0x16b6f7(0x1fb)]};case CollaborationEvent[_0x16b6f7(0x24b)]:return{..._0x4a8973,'data':{..._0x5111c4,'data':_0x5111c4[_0x16b6f7(0x361)]},'cmd':_0x4a8973[_0x16b6f7(0x1fb)]};default:return _0x4a8973;}}default:return _0x4a8973;}}__name(deserializeToCombResponse,_0x43e0c9(0x19c));function serializeCombRequest(_0x2a4325){var _0x33a7dc=_0x43e0c9;switch(_0x2a4325[_0x33a7dc(0x1fb)]){case CombCmd[_0x33a7dc(0x3e0)]:case CombCmd[_0x33a7dc(0x343)]:return JSON[_0x33a7dc(0xff)]({'cmd':_0x2a4325[_0x33a7dc(0x1fb)],'routeKey':_0x2a4325['routeKey']});case CombCmd[_0x33a7dc(0x137)]:{let _0x2fe129;switch(_0x2a4325[_0x33a7dc(0x14c)][_0x33a7dc(0x25d)]){case CollaborationEvent[_0x33a7dc(0x38d)]:{_0x2fe129={'eventID':CollaborationEvent[_0x33a7dc(0x38d)],'updateCursorEvent':_0x2a4325[_0x33a7dc(0x14c)][_0x33a7dc(0x14c)]};break;}case CollaborationEvent[_0x33a7dc(0x2fe)]:{_0x2fe129={'eventID':CollaborationEvent['USERS_LEAVE'],'leaveEvent':_0x2a4325[_0x33a7dc(0x14c)][_0x33a7dc(0x14c)]};break;}case CollaborationEvent['USERS_ENTER']:{_0x2fe129={'eventID':CollaborationEvent[_0x33a7dc(0x1c4)],'joinEvent':_0x2a4325[_0x33a7dc(0x14c)]['data']};break;}case CollaborationEvent[_0x33a7dc(0x209)]:{_0x2fe129={'eventID':CollaborationEvent[_0x33a7dc(0x209)],'liveShareNewHost':_0x2a4325[_0x33a7dc(0x14c)]['data']};break;}case CollaborationEvent[_0x33a7dc(0x132)]:{_0x2fe129={'eventID':CollaborationEvent[_0x33a7dc(0x132)],'liveShareOperation':_0x2a4325[_0x33a7dc(0x14c)][_0x33a7dc(0x14c)]};break;}case CollaborationEvent[_0x33a7dc(0x3b1)]:{_0x2fe129={'eventID':CollaborationEvent[_0x33a7dc(0x3b1)],'liveShareTerminate':_0x2a4325['data'][_0x33a7dc(0x14c)]};break;}case CollaborationEvent[_0x33a7dc(0x23c)]:{_0x2fe129={'eventID':CollaborationEvent[_0x33a7dc(0x23c)],'liveShareRequestHost':_0x2a4325[_0x33a7dc(0x14c)][_0x33a7dc(0x14c)]};break;}case CollaborationEvent['LIVESHARE_FETCH_OPERATIONS']:{_0x2fe129={'eventID':CollaborationEvent[_0x33a7dc(0x302)]};break;}default:_0x2fe129={'eventID':_0x2a4325[_0x33a7dc(0x14c)][_0x33a7dc(0x25d)]};}return JSON[_0x33a7dc(0xff)]({'cmd':_0x2a4325[_0x33a7dc(0x1fb)],'routeKey':_0x2a4325[_0x33a7dc(0x33f)],'collaMsg':_0x2fe129});}case CombCmd['JOIN']:return JSON[_0x33a7dc(0xff)]({'cmd':_0x2a4325[_0x33a7dc(0x1fb)],'routeKey':_0x2a4325['routeKey'],'joinReq':_0x2a4325[_0x33a7dc(0x14c)]});case CombCmd[_0x33a7dc(0x190)]:return JSON[_0x33a7dc(0xff)]({'cmd':_0x2a4325[_0x33a7dc(0x1fb)],'routeKey':_0x2a4325[_0x33a7dc(0x33f)],'leaveReq':_0x2a4325[_0x33a7dc(0x14c)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}function _0x2fa0(){var _0x1e8311=['[OfflineState]:\x20received\x20acknowledgement.','AuthServerService','has','authzUrl','type','LIVESHARE_TERMINATE','words','session.room-permission-denied','_lockTransition','synced','_transformRemoteChangesetByIMECache','csAckEvent','_initUnitPermissionChange','_transformStack','JOIN','sigBytes','loadDoc','_handler','online$','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_revisionService','image/jpeg','onCommentUpdate','removeMember','onTransformState','requireSha1','ENSURE_SNAPSHOT_EXECUTION','reverse','copyFileMeta','repeat','_updateState','_replaceFileID','Hasher','handleCloseConn','__decorateClass$5','_onJoinRoomEvent','Undefined','change$','pad','image/png','APPLY_DUPLICATED','_collabSessionService','replace','collaboration-client.local-cache-service','66536YiLcTA','transformSelections','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','PERMISSION_REJ','_updateLocalCache','_localeService','_showConflictNotification','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','HEARTBEAT','resolve','/universer-api/snapshot/','__defNormalProp','name','PY_RUNTIME_SCRIPT_ERROR','fetch_missing','function','SUBMIT_CHANGESET','changesets','memberID','parse','hasOwnProperty','withCredentials','resend','LICENSE_IMPORT_SIZE_EXCEEDED','Cipher','Latin1','awaitingChangeset','createTimerObservable$','_loadSheet','/rev/','21951980tbUmjB','executeCommand','DataLoaderService','_onConnectionOpen','Utf8','AuthzIoHttpService','_createHandler','readAsDataURL','_syncEditingCollabCursor','keySize','SheetTransformSelectionsService','createOnlineState','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','_injector','onTransformRemoteChangesetByStateCache','_sender','_onRemoteRetry','_startCollaboration','CHANGESET_REVISION_CONFILICT','ALREADY_EXISTS','_incrementRevisionNumber','members$','_registerDependencies','__esModule','subject','/unit/','__decorateClass$d','confirm','UNKNOWN_CMD','setShowComponents','splice','body','readInt32LE','members','decrypt','loadSheet','Native\x20crypto\x20module\x20could\x20not\x20be\x20used\x20to\x20get\x20secure\x20random\x20number.','socket$','reject','closeSession','483WkNmtB','_onCombEvent','_eventService','socket\x20close','batchAllowed','objects','/universer-api/comb','getAttachHeader','finalize','message$','APPLY_NON_SEQUENTIAL_REVISION','_timeoutTimer','enableOfflineEditing','_tryEnsureSocket','handleUnitPermissionChange','SOCKET_FAILED','__decorateClass$2','_socket$','getTypeOfUnitAdded$','_submitChangeset','catch','method','image/jpg','socketService','generateRandomId','_clearRedo','rev','textRanges','emitEvent','__decorateParam$1','_rescheduleHeartbeat','getMember','post','FETCH_MISS','UNIVER_PROJECT','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','unitID','commentUpdate$','_roomCreated$','_getCtorByUniverType','_getSessionTicket','BufferedBlockAlgorithm','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','json','saveSheetBlock','UUID','MD5','params','_initRequestHeader','result','duration','pkcs7Padding','/new_changes','HEARTBEAT_TIMEOUT','[CollaborationEntity]','__decorateParam$4','m2Prime','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','fetchMissingChangesets','state$','_removeRoom','stringify','_append','_onMessage','[FetchMissState]','encode','_unitID','min','_doProcessBlock','_socketMessageSubscription','__decorateParam$g','ciphertext','extend','updatePermissionPoint','getValue','__decorateParam$i','_candidateSocket','SyncedState','default','_transformUndoredo','[DataLoaderService]','headers','/-/object/list','_transformSelections','set','CBC','_snapshotService','push','COMMENT_UPDATE','_roomMembers','unsubscribe','execute','onTransformRemoteChangesetByIMECache','_logService','_nRounds','location','collaboration-client.config','status','range','_collaborationPaused','getFocusedUnit','_collaborationUIEventService','getDeserializedSheetBlock','_redoStacks','__decorateParam$d','_onRemoteACK','POST','startsWith','map','MentionIoHttpService','ERROR_IMAGE','_minBufferSize','LIVESHARE_OPERATION','socket\x20open.','searchParams','SOCKET_FAILED_RETRY','liveShareNewHost','INGEST','padding','_config','/object/','_oKey','_members','[PendingState]:\x20received\x20acknowledgement.','_getCurrentRevision','SerializableCipher','filter','_httpService','_doReset','__decorateClass$4','roles','prototype','actions','_getDownloadEndpointURL','CollaborationImageIoService','symbol','getActiveSheet','file','data','updatePermissionObjEvent','_cipher','event$','PERSON','_toggleOffline','addImageSourceCache','JOINING','clamp','close$','INTERNAL_ERROR','_socketReady','_undoRedoService','_permissionService','_createSocketURL','_prevBlock','image/gif','equals','_createInitialState','getConfig','/role','collabSubmitChangesetUrl','hostname','JOIN_ROOM_FULL','unpad','collaMsg','createEncryptor','resourceIDs','2arccjG','568602NOoYaW','_compressMutationService','UNDEFINED','_listenToNetworkCondition','mixIn','registerHTTPInterceptor','_entities','ws://127.0.0.1:8000/universer-api/comb/connect','_onOffline','_throwTelemetryCollaborationNewChangeset','onTransformIME','ERROR_EXCEED_SIZE','terminateWithError','__decorateClass$a','responseType','/allowed','ivSize','string','_retryCount','SEND_CHANGESET_TIMEOUT','__decorateParam$5','HMAC','SHA1','_instanceService','\x20-\x20','__decorateParam$8','BlockCipherMode','_commentUpdate$','reqId','assembleDocChangeset','_http','_onRemoteRejected','MUTATION','CONNECTOR_DATA_TOO_LARGE','__decorateClass','UnitSnapshot','requireHmac','UNRECOGNIZED','disposeWithMe','LEAVE','baseRev','_scheduleCompleteTimestamp','_substituteRedoStack','_checkMissing','onMissingChangesets','_map','[CollaborationSession]','HttpExport','UNIVER_DOC','APPLY_PERMISSION_DENIED','failed\x20to\x20apply\x20missed\x20changesets!','deserializeToCombResponse','_waitCount','_init','CollaborationUIEventService','[OfflineState]:\x20received\x20rejection.','UNAUTHENTICATED','_substituteUndoStack','YUUMI_SUBSCRIPTION_NOT_FOUND','_keyPriorReset','onMissedChangesetFetched','mode','_clearScheduledTask','compute','getCollabEntity','SHOULD_CLOSE_CONN','49751oPPjKh','put','xorBlock','_commandService','connection\x20error','CHANGESET_SHOULD_RETRY','HttpImport','_tryReconnect','signUrlServerUrl','CipherParams','_singleActiveUnitService','/object','_HTTPService','COMPLETION_FINISHED','setCurrentUser','_onConflict','sendChangesetTimeout','defineProperty','loginUrlKey','PasswordBasedCipher','clear','getCurrentRevOfUnit','615MyNeNX','get','_changesetReqId','USERS_ENTER','_pendingMutations','[SyncedState]:\x20received\x20acknowledgement.','_isPermissionRej','error','LOCAL_CACHE_INTERVAL','reconnect','now','_onLocalMutation','auth.needGotoLoginAlert','_iv','pauseCollaboration','&assign=','univer-pro.collaboration-client-socket-service','&source=','RECV','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','byteLength','session.join-failed','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','2322207IsBWXU','__decorateClass$8','crypto','/-/object/-/batch_allowed','_createInitialStateImpl','_getLoginPath','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_state$','setWaitCount','sin','toggleOnline','_createHelper','$super','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','joinRsp','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','newCsEvent','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','slice','__decorateClass$6','_getUploadFileURL','NOT_COLLAB','_createSocket','c1Prime','pipe','getImageSourceCache','BlockCipher','FAIL','src','_resendTimeout','requireLibTypedarrays','_retryConnectingTimer','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_schedule','_remoteChangesetQueue','cmd','AwaitingWithPendingState','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','SNAPSHOT_INVALID_SNAPSHOT','getInterceptPoints','patch','_keySchedule','UNIVER_SHEET','_type','OPTIONAL','runId','transformUndoRedo','complete','enableAuthServer','LIVESHARE_NEW_HOST','sheets','target','sid','_awaitingChangeset','x-univer-host','findIndex','__decorateParam$3','{fileID}','CollaborationState','_onRemoteChangeset','close','__decorateClass$3','_initCloseConn','/universer-api/oidc/authpage','?url=','_clearUndo','APPLY_REJECT','_initMergeInterceptor','init','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_executeRemoteChangeset','onTransformRemoteChangesetByStateCache\x20callback\x20is\x20not\x20added\x20yet.','onRemoteChangeset','DomainRequestService','YUUMI_RATE_OVER_LIMIT','hasher','[UniverCollaborationClientPlugin]','unknown','__decorateClass$b','_transformStateCache','_event$','_clearTimeoutTimer','\x20in\x20_schedule.','toString','awaiting_with_pending','random','_onFetchMissResult','createCollaborator','getTime','EvpKDF','liveShareOperation','length','getSheetId','updateCollaborator','[PendingState]:\x20received\x20rejection.','_shouldReportTelemetry','override','_updateStatus','size','__decorateClass$g','LIVESHARE_REQUEST_HOST','Malformed\x20UTF-8\x20data','_telemetryService','image/bmp','OTHER_CLIENT_EDITING','PendingState','YUUMI_URL_COL_OUT_OF_RANGE','then','OfflineState','mutations','_handlerCallback','APPLY_REVISION_CONFILICT','_mode','_configService','isPermissionRej','UNISCRIPT_RUN','CHANGESET_ACK','_decreaseWaiting','url','requireEvpkdf','onTransformSelections','_stopTelemetryCollaborationNewChangeset','_memberService','4054779oUWlqN','_commentService','extractTargetFromFirstChangeset','_unlockTransition','YUUMI_UNABLE_LOAD_URL','kdf','SUCCUSS','listCollaborators','dispose','commonjsRequire','eventID','_toggleOnline','updateMember','updateCursorEvent','toLowerCase','process','__decorateClass$f','_getAPIPrefix','__decorateParam$7','objectActions','revision','loadOfflineData','_scheduleCollaborationTimeoutTimer','status$','fetchMiss','deleteCollaborator','CHANGESET_REJ','People','SUBMIT_CHANGESET_TIMEOUT','[SyncedState]:\x20received\x20rejection.','_imageSourceCache','_collaborationTimeoutTimer','onRemoteRej','IDLE','\x0aAfter:\x20','Encryptor','_clearHeartbeatTimer','__decorateParam','open$','ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=','_joinRoom','sessionStatus$','AWAITING','_data','_doFinalize','PENDING','format','join','[CollaborationSessionService]:\x20socket\x20error','localCacheService','_entityInit$','_parse','debug','BASE64','_localCacheService','incrementRevOfUnit','_fetchMissChangesets','Could\x20not\x20dynamically\x20require\x20\x22','PSEUDO_FETCH_MISSING_RESULT','FileId','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_state','every','MSG_FOR_ERROR','Error\x20on\x20receiving\x20event','AUTHZ_URL_KEY','getRoom','Base64','getMemberID','_applyRemoteChangeset','INVALID_ARGUMENT','_createHmacHelper','snapshot','createSocket','substr','generateSubmitChangesPath','_replayCachedMutations','CONFLICT','append','Hex','sessionTicket','_loadDoc','/universer-api/uniscript','code','Decryptor','NO_OTHER_CLIENTS_EDITING','isArray','refreshPermission','pluginName','__decorateClass$1','/collaborator','avatar','pending','randomBytes','permissionRejEvent','floor','ConflictState','FetchingMissState','onRemoteAck','JOIN_ROOM_FAILED','getRandomValues','compose','_networkConditionService','apply','PERMISSION_DENIED','_queuedRemoteChangesets','_hash','OFFLINE','_resendTimer','StreamCipher','_changesetSessionId','stopTime','cryptoSecureRandomInt','onlyLocal','onLocalMutation','_onUserJoin','title','offline','exports','requireCipherCore','getUnitId','collaboration_new_changeset','reset','WordArray','msCrypto','getSheetBlock','interceptor','requireCore','\x20to\x20','/universer-api/authz','ticket','COLLAB_WEB_SOCKET_URL','[CollaborationUndoRedoService]','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','saveImage','_acknowledgedAwaitingChangeset','20924biVnXF','onSendChangeset','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_reverseMap','_sendHeartbeat','origin','_getSendChangesetTimeout','href','requestParams','JOIN_ROOM_NOT_EXISTS','next','_getRedoStack','__decorateParam$a','/block/','max','sessionStatus','collaborators','LICENSE_DISTRO_REJECTED','conflict','UNIVER_SLIDE','_ENC_XFORM_MODE','_socket','getImage','buffer','charCodeAt','charAt','JOIN_ROOM_PERMISSION_DENIED','_onUserLeave','lib','HmacMD5','COMPRESS_MUTATION_SEND','cfg','summaryChangesetSize','UNIVER_UNKNOWN','updateOfflineData','USERS_LEAVE','algo','waitForRoom$','11aCtdXP','LIVESHARE_FETCH_OPERATIONS','objectType','/resources','__decorateParam$c','requireAes','_onConnectionFailed','fetchThroughInterceptors','CLOSE_ROOM','COMPRESS_MUTATION_APPLY','_nDataBytes','blockSize','onCommandExecuted','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','formatter','ONLINE','__publicField','Base','send','call','fromCharCode','enc','listRoles','transformStack\x20failed!','_sheetTransformSelectionsService','salt','_change$','toggleOffline','downloadEndpointUrl','localeService','assembleSheetChangeset','_transformRemoteChangesetByStateCache','/universer-api/user/session-ticket','NoPadding','_getAPIPrefixPath','values','RoomMember','HEARTBEAT_INTERVAL','_status$','_onRecvEvent','add','onRemoteRetry','save\x20fail\x20reason\x20is\x20','initWorkbookPermissionChange','requireSession','_sendingTimer','telemetry\x20info\x20is\x20not\x20initialized','_univerInstanceService','abs','_sessions','csShouldRetryEvent','rng','session.room-full','state','search','unitInfo$','LICENSE_EXPORT_SIZE_EXCEEDED','getTypeOfUnitDisposed$','_process','create','error$','getOwnPropertyDescriptor','routeKey','_transitionLocked','AES','collabWebSocketUrl','HELLO','NOT_FOUND','_transformService','transformMutationsWithChangeset','getSnapshotAPIPath','UPDATE_PERMISSION_OBJ','update','dispose$','encodeURIComponent','FETCH_MISSING','_DEC_XFORM_MODE','?size=','_getUndoStack','OTHER_CLIENTS_EDITING','_xformMode','subscribe','encrypt','concat','indexOf','HmacSHA1','requireMd5','onStateChange','_members$','[CollaborationSessionService]','getCollabEntity$','_disableEditing','editing\x20status\x20changed\x20to','LICENSE_MAX_UNITS_EXCEEDED','appendMutation','_getSignURL','uniscriptRunEvent','_unitInfo$','_iKey','univer-pro.collaboration-client.single-active-unit-service','processBlock','setConfig','_hasher','onStarting','userID','FileNameController','delete','_sessionStatus$','_key','createDecryptor','_initDependencies','_userManagerService','_transformIMECache','_emitMembers','__decorateClass$c','fromCollab','univer-pro.collaboration-client.network-condition.service','randomUUID','encryptBlock','selections','_doCryptBlock','ERROR_IMAGE_TYPE','_sendHeartbeatTimer','onSyncEditingCollabCursor','CollaborationSessionService','bind','asObservable','_exhaustRemoteChangesetQueue','ceil','UnitEmbedded','clone','GLOBAL_ROOMS_CNT_EXCEEDS','not_collab','allowed','__creator','parseLoop','_authzIoService','subUnitId','unit-cache-','getUnit','UPDATE_CURSOR','unitId','saveChangeset','_startTelemetryCollaborationNewChangeset','_telemetryInfo','forEach','_snapshotServerService','objectID','getCurrentSelections','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','Random\x20bytes\x20length\x20must\x20be\x20>=\x2016','transformChangesets','deepClone','decryptBlock','byteOffset','CollaborationSocketService','session','fetching\x20missing\x20changesets\x20from\x20','createInstance','collaboratorID','_resendWithTimeout','originalMeta','capture','getCurrentUser','_waitForHeartbeatResponse','_clearLocalCache','awaiting','SYNCED','Pkcs7','_collaborationSessionService','OpenSSL'];_0x2fa0=function(){return _0x1e8311;};return _0x2fa0();}__name(serializeCombRequest,'serializeCombRequest');var __defProp$i=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc$i=Object[_0x43e0c9(0x33e)],__decorateClass$i=__name((_0x3e77b1,_0x19a17e,_0x538ec3,_0x36e9f9)=>{var _0x5a9f3a=_0x43e0c9;for(var _0x490aa7=_0x36e9f9>0x1?void 0x0:_0x36e9f9?__getOwnPropDesc$i(_0x19a17e,_0x538ec3):_0x19a17e,_0x4dfc82=_0x3e77b1[_0x5a9f3a(0x233)]-0x1,_0x231c28;_0x4dfc82>=0x0;_0x4dfc82--)(_0x231c28=_0x3e77b1[_0x4dfc82])&&(_0x490aa7=(_0x36e9f9?_0x231c28(_0x19a17e,_0x538ec3,_0x490aa7):_0x231c28(_0x490aa7))||_0x490aa7);return _0x36e9f9&&_0x490aa7&&__defProp$i(_0x19a17e,_0x538ec3,_0x490aa7),_0x490aa7;},'__decorateClass$i'),__decorateParam$i=__name((_0x512dca,_0x251eea)=>(_0x20f6dc,_0x4d0ca0)=>_0x251eea(_0x20f6dc,_0x4d0ca0,_0x512dca),_0x43e0c9(0x10d));const ICollaborationSocketService=createIdentifier(_0x43e0c9(0x1d1));function generateSubmitChangesPath(_0x253bf5,_0x4cb89a,_0x511e6e){var _0x56d922=_0x43e0c9;return _0x253bf5+'/'+_0x4cb89a+_0x56d922(0x40f)+_0x511e6e+_0x56d922(0xf6);}__name(generateSubmitChangesPath,_0x43e0c9(0x29e));var _a;let CollaborationSocketService=(_a=class extends Disposable{constructor(_0x290320,_0x5b1930,_0x17c26e,_0x3de643,_0x5835a3){var _0xacc825=_0x43e0c9;super(),this['_injector']=_0x290320,this[_0xacc825(0x187)]=_0x5b1930,this[_0xacc825(0x249)]=_0x17c26e,this[_0xacc825(0x11f)]=_0x3de643,this[_0xacc825(0x393)]=_0x5835a3;}[_0x43e0c9(0x29c)](_0x16ea35){var _0x1aea68=_0x43e0c9;const _0x1f490a=this['_injector'][_0x1aea68(0x1c2)](ISocketService);if(!_0x1f490a)throw new Error(_0x1aea68(0x402));const _0x25c7d5=_0x1f490a['createSocket'](_0x16ea35);if(!_0x25c7d5)throw new Error(_0x1aea68(0x1e7));const _0x48a0f6=new DisposableCollection(),_0x184aa8=new Subject();_0x48a0f6[_0x1aea68(0x329)](_0x25c7d5[_0x1aea68(0x155)][_0x1aea68(0x352)](_0xb8eb9e=>_0x184aa8['next'](_0xb8eb9e))),_0x48a0f6['add'](toDisposable(()=>_0x184aa8['complete']()));const _0x22af88=new Subject();_0x48a0f6['add'](_0x25c7d5[_0x1aea68(0x33d)][_0x1aea68(0x352)](_0xcb733d=>_0x22af88[_0x1aea68(0x2e5)](_0xcb733d))),_0x48a0f6[_0x1aea68(0x329)](toDisposable(()=>_0x22af88[_0x1aea68(0x207)]()));const _0x39c270=new Subject();_0x48a0f6[_0x1aea68(0x329)](_0x25c7d5[_0x1aea68(0x427)]['subscribe'](_0x3c05bf=>{const _0xdef5f=deserializeToCombResponse(_0x3c05bf);_0x39c270['next'](_0xdef5f);})),_0x48a0f6[_0x1aea68(0x329)](toDisposable(()=>_0x39c270[_0x1aea68(0x207)]()));let _0x268457;const _0x582415=__name(()=>{var _0x2f93e3=_0x1aea68;_0x22af88['next'](new Event(_0x2f93e3(0x1af))),_0x184aa8[_0x2f93e3(0x2e5)](new CloseEvent(_0x2f93e3(0x1af))),_0x268457['close']();},_0x1aea68(0x175));return _0x268457={'memberID':'','close$':_0x184aa8[_0x1aea68(0x37f)](),'error$':_0x22af88[_0x1aea68(0x37f)](),'open$':_0x25c7d5[_0x1aea68(0x279)],'message$':_0x39c270[_0x1aea68(0x37f)](),'send':__name(_0x1e6c5d=>{var _0x5f2833=_0x1aea68;if(_0x1e6c5d['cmd']===CombCmd[_0x5f2833(0x137)]){if(_0x1e6c5d['data'][_0x5f2833(0x25d)]===CollaborationEvent[_0x5f2833(0x3e8)]){this[_0x5f2833(0x431)](_0x268457,_0x1e6c5d['data'])[_0x5f2833(0x432)](_0x457b79=>{var _0x159753=_0x5f2833;this['_logService'][_0x159753(0x1c8)](_0x457b79),_0x582415();});return;}if(_0x1e6c5d['data']['eventID']===CollaborationEvent[_0x5f2833(0x34c)]){const _0x30481c=_0x1e6c5d[_0x5f2833(0x14c)];this[_0x5f2833(0x28b)](_0x30481c)[_0x5f2833(0x243)](_0x420b63=>{var _0x24eb16=_0x5f2833;_0x39c270[_0x24eb16(0x2e5)]({'cmd':CombCmd[_0x24eb16(0x1d3)],'code':CmdRspCode['OK'],'routeKey':_0x30481c['data'][_0x24eb16(0x442)],'routeType':'','data':{'eventID':CollaborationEvent['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x420b63}}});})[_0x5f2833(0x432)](_0x3833d1=>{var _0x4d4943=_0x5f2833;this[_0x4d4943(0x11f)][_0x4d4943(0x1c8)](_0x3833d1),_0x582415();});return;}}_0x25c7d5['send'](serializeCombRequest(_0x1e6c5d));},_0x1aea68(0x313)),'close':__name(()=>{var _0x14d35c=_0x1aea68;_0x25c7d5[_0x14d35c(0x214)](),_0x48a0f6[_0x14d35c(0x25b)]();},'close')},_0x268457;}async[_0x43e0c9(0x431)](_0x53814c,_0x106dea){var _0x5cb6cd=_0x43e0c9,_0x562336,_0x5c7f71;const {unitType:_0x41c20c,unitID:_0x4c2b3b,changeset:_0x5be064}=_0x106dea[_0x5cb6cd(0x14c)],_0x5cc30e={'unitID':_0x4c2b3b,'memberID':_0x53814c[_0x5cb6cd(0x3ea)],'type':_0x41c20c,'changeset':parseChangesetToProtocol(_0x5be064)},_0x1a35a4=this[_0x5cb6cd(0x249)]['getConfig'](COLLAB_SUBMIT_CHANGESET_URL_KEY),_0x416d36=this['_configService'][_0x5cb6cd(0x15f)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY),_0x516673=generateSubmitChangesPath((_0x5c7f71=(_0x562336=_0x416d36==null?void 0x0:_0x416d36[_0x5cb6cd(0x161)])!=null?_0x562336:_0x1a35a4)!=null?_0x5c7f71:DEFAULT_COLLAB_SUBMIT_CHANGESET_URL,_0x41c20c,_0x4c2b3b);try{await this[_0x5cb6cd(0x187)][_0x5cb6cd(0x43e)](_0x516673,{'body':_0x5cc30e});}catch(_0x5c84ba){throw this[_0x5cb6cd(0x11f)]['error']('[CollaborationSession]','submit\x20changeset\x20error!'),_0x5c84ba;}}async[_0x43e0c9(0x28b)](_0xd8f82){var _0x1dd193=_0x43e0c9;const {unitID:_0x529b0e,from:_0xbec9c8,to:_0x25f28c,unitType:_0x35d45c}=_0xd8f82[_0x1dd193(0x14c)];return(await this[_0x1dd193(0x393)][_0x1dd193(0xfc)]({'metadata':void 0x0},{'unitID':_0x529b0e,'type':_0x35d45c,'from':_0xbec9c8,'to':_0x25f28c}))[_0x1dd193(0x3e9)];}},__name(_a,_0x43e0c9(0x39c)),_a);CollaborationSocketService=__decorateClass$i([__decorateParam$i(0x0,Inject(Injector)),__decorateParam$i(0x1,Inject(HTTPService)),__decorateParam$i(0x2,IConfigService),__decorateParam$i(0x3,ILogService),__decorateParam$i(0x4,ISnapshotServerService)],CollaborationSocketService);const TELEMETRY_COLLABORATION_NEW_CHANGESET=_0x43e0c9(0x2cc);function summaryChangesetSize(_0x4883c3){var _0x5d9e4c=_0x43e0c9;return JSON[_0x5d9e4c(0xff)](_0x4883c3)['length'];}__name(summaryChangesetSize,_0x43e0c9(0x2fb));const _CommentService=class _CommentService{constructor(){var _0x5c10d1=_0x43e0c9;__publicField(this,_0x5c10d1(0x184),new Subject()),__publicField(this,_0x5c10d1(0x443),this[_0x5c10d1(0x184)][_0x5c10d1(0x37f)]());}[_0x43e0c9(0x3c2)](_0x54d623){var _0x1d4858=_0x43e0c9;this[_0x1d4858(0x184)][_0x1d4858(0x2e5)](_0x54d623);}};__name(_CommentService,'CommentService');let CommentService=_CommentService;var __defProp$h=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc$h=Object['getOwnPropertyDescriptor'],__decorateClass$h=__name((_0x32401c,_0x11f8a1,_0x17322e,_0x4f2e85)=>{var _0x49dd1f=_0x43e0c9;for(var _0xba6153=_0x4f2e85>0x1?void 0x0:_0x4f2e85?__getOwnPropDesc$h(_0x11f8a1,_0x17322e):_0x11f8a1,_0x2a8116=_0x32401c[_0x49dd1f(0x233)]-0x1,_0xea1a10;_0x2a8116>=0x0;_0x2a8116--)(_0xea1a10=_0x32401c[_0x2a8116])&&(_0xba6153=(_0x4f2e85?_0xea1a10(_0x11f8a1,_0x17322e,_0xba6153):_0xea1a10(_0xba6153))||_0xba6153);return _0x4f2e85&&_0xba6153&&__defProp$h(_0x11f8a1,_0x17322e,_0xba6153),_0xba6153;},'__decorateClass$h'),__decorateParam$h=__name((_0x192757,_0x379e89)=>(_0x33864b,_0x522999)=>_0x379e89(_0x33864b,_0x522999,_0x192757),'__decorateParam$h'),_a2;let MemberService=(_a2=class extends Disposable{constructor(_0x1c876b,_0x180d5b){var _0x2c2455=_0x43e0c9;super(),__publicField(this,_0x2c2455(0x11b),new Map()),__publicField(this,_0x2c2455(0x444),new Subject()),(this[_0x2c2455(0x330)]=_0x1c876b,this[_0x2c2455(0x370)]=_0x180d5b,this[_0x2c2455(0x18f)](merge(this[_0x2c2455(0x330)][_0x2c2455(0x33a)](UniverInstanceType[_0x2c2455(0x202)])[_0x2c2455(0x1f0)](map(_0x176857=>_0x176857[_0x2c2455(0x2cb)]())),this['_univerInstanceService'][_0x2c2455(0x33a)](UniverInstanceType[_0x2c2455(0x199)])[_0x2c2455(0x1f0)](map(_0x343a48=>_0x343a48[_0x2c2455(0x2cb)]())),this[_0x2c2455(0x330)][_0x2c2455(0x33a)](UniverInstanceType[_0x2c2455(0x2ee)])[_0x2c2455(0x1f0)](map(_0x45228c=>_0x45228c[_0x2c2455(0x2cb)]())))[_0x2c2455(0x352)](_0x23dc57=>this[_0x2c2455(0xfe)](_0x23dc57))));}[_0x43e0c9(0x300)](_0x480eed){var _0x37316d=_0x43e0c9;return this[_0x37316d(0x11b)][_0x37316d(0x3ae)](_0x480eed)?of(this['_roomMembers'][_0x37316d(0x1c2)](_0x480eed)):this[_0x37316d(0x444)][_0x37316d(0x1f0)](map(_0x52f8f1=>{var _0x233e56=_0x37316d;if(_0x52f8f1===_0x480eed)return this[_0x233e56(0x11b)]['get'](_0x52f8f1);}));}[_0x43e0c9(0x1b9)](_0x114650){var _0x11a7a7=_0x43e0c9;this[_0x11a7a7(0x370)][_0x11a7a7(0x1b9)](_0x114650);}[_0x43e0c9(0x3a4)](){var _0x14c083=_0x43e0c9;return this['_userManagerService'][_0x14c083(0x3a4)]();}[_0x43e0c9(0x25f)](_0x28f77f,_0x1bb357){var _0x11f726=_0x43e0c9;let _0x91238e=this[_0x11f726(0x11b)]['get'](_0x28f77f);_0x91238e||(_0x91238e=new RoomMember(),this[_0x11f726(0x11b)][_0x11f726(0x116)](_0x28f77f,_0x91238e),this[_0x11f726(0x444)][_0x11f726(0x2e5)](_0x28f77f)),_0x91238e[_0x11f726(0x25f)](_0x1bb357);}[_0x43e0c9(0x3c3)](_0x170098,_0x1b45e9){var _0x1f1f68=_0x43e0c9;const _0x51204c=this[_0x1f1f68(0x11b)][_0x1f1f68(0x1c2)](_0x170098);_0x51204c&&_0x51204c[_0x1f1f68(0x3c3)](_0x1b45e9);}[_0x43e0c9(0x295)](_0xbc6642){var _0x5d2014=_0x43e0c9;return this[_0x5d2014(0x11b)]['get'](_0xbc6642);}[_0x43e0c9(0x43d)](_0x32202e,_0x1b50ac){var _0x3282a0=_0x43e0c9;const _0x2acd32=this[_0x3282a0(0x11b)][_0x3282a0(0x1c2)](_0x32202e);if(_0x2acd32)return _0x2acd32['getMember'](_0x1b50ac);}[_0x43e0c9(0xfe)](_0x46e0c9){var _0x389dc4=_0x43e0c9;const _0x34e331=this[_0x389dc4(0x11b)]['get'](_0x46e0c9);_0x34e331&&(_0x34e331[_0x389dc4(0x25b)](),this['_roomMembers'][_0x389dc4(0x36b)](_0x46e0c9));}[_0x43e0c9(0x25b)](){var _0x42bb08=_0x43e0c9;this[_0x42bb08(0x11b)][_0x42bb08(0x392)](_0x9d96bb=>_0x9d96bb[_0x42bb08(0x25b)]()),this[_0x42bb08(0x11b)][_0x42bb08(0x1bf)](),this[_0x42bb08(0x444)]['complete']();}},__name(_a2,'MemberService'),_a2);MemberService=__decorateClass$h([__decorateParam$h(0x0,IUniverInstanceService),__decorateParam$h(0x1,Inject(UserManagerService))],MemberService);const _RoomMember=class _RoomMember extends Disposable{constructor(){var _0x402e2c=_0x43e0c9;super(...arguments),__publicField(this,'_members',new Map()),__publicField(this,_0x402e2c(0x359),new BehaviorSubject(this[_0x402e2c(0x13c)])),__publicField(this,_0x402e2c(0x40b),this[_0x402e2c(0x359)]['asObservable']());}['dispose'](){var _0x3697cc=_0x43e0c9;this[_0x3697cc(0x13c)][_0x3697cc(0x1bf)]();}['updateMember'](_0x3441a4){var _0x4dadf0=_0x43e0c9;this[_0x4dadf0(0x13c)][_0x4dadf0(0x116)](_0x3441a4[_0x4dadf0(0x3ea)],_0x3441a4),this[_0x4dadf0(0x372)]();}[_0x43e0c9(0x3c3)](_0x630261){var _0x228f98=_0x43e0c9;this[_0x228f98(0x13c)]['delete'](_0x630261);}[_0x43e0c9(0x43d)](_0x4f8a62){var _0x3bb6c8=_0x43e0c9;return this[_0x3bb6c8(0x13c)]['get'](_0x4f8a62);}['getAllMembers'](){var _0x376720=_0x43e0c9;return Array['from'](this['_members'][_0x376720(0x324)]());}[_0x43e0c9(0x372)](){var _0x3f21cb=_0x43e0c9;this['_members$'][_0x3f21cb(0x2e5)](this[_0x3f21cb(0x13c)]);}};__name(_RoomMember,_0x43e0c9(0x325));let RoomMember=_RoomMember;function _0x5029(_0x140c0a,_0x8b7373){var _0x2fa050=_0x2fa0();return _0x5029=function(_0x5029c0,_0x2908f0){_0x5029c0=_0x5029c0-0xf1;var _0xcf31ea=_0x2fa050[_0x5029c0];return _0xcf31ea;},_0x5029(_0x140c0a,_0x8b7373);}var __defProp$g=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc$g=Object[_0x43e0c9(0x33e)],__decorateClass$g=__name((_0x206632,_0x1efe22,_0x56e2c6,_0x381a22)=>{var _0x438899=_0x43e0c9;for(var _0x287218=_0x381a22>0x1?void 0x0:_0x381a22?__getOwnPropDesc$g(_0x1efe22,_0x56e2c6):_0x1efe22,_0x14efea=_0x206632[_0x438899(0x233)]-0x1,_0x4a9bb3;_0x14efea>=0x0;_0x14efea--)(_0x4a9bb3=_0x206632[_0x14efea])&&(_0x287218=(_0x381a22?_0x4a9bb3(_0x1efe22,_0x56e2c6,_0x287218):_0x4a9bb3(_0x287218))||_0x287218);return _0x381a22&&_0x287218&&__defProp$g(_0x1efe22,_0x56e2c6,_0x287218),_0x287218;},_0x43e0c9(0x23b)),__decorateParam$g=__name((_0x35b628,_0xdc3206)=>(_0x582ca0,_0x1e04ec)=>_0xdc3206(_0x582ca0,_0x1e04ec,_0x35b628),_0x43e0c9(0x108)),SessionStatus=(_0x359ea0=>(_0x359ea0[_0x359ea0[_0x43e0c9(0x274)]=0x0]='IDLE',_0x359ea0[_0x359ea0[_0x43e0c9(0x153)]=0x1]=_0x43e0c9(0x153),_0x359ea0[_0x359ea0[_0x43e0c9(0x2be)]=0x2]=_0x43e0c9(0x2be),_0x359ea0[_0x359ea0[_0x43e0c9(0x310)]=0x3]=_0x43e0c9(0x310),_0x359ea0))(SessionStatus||{});const FailedReason={[CmdRspCode[_0x43e0c9(0x1f3)]]:_0x43e0c9(0x1d6),[CmdRspCode[_0x43e0c9(0x163)]]:_0x43e0c9(0x335),[CmdRspCode[_0x43e0c9(0x2e4)]]:'session.room-not-exists',[CmdRspCode['JOIN_ROOM_PERMISSION_DENIED']]:_0x43e0c9(0x3b3),[CmdRspCode[_0x43e0c9(0x384)]]:'session.room-cnt-exceeds'};var _a3;let CollaborationSession=(_a3=class extends RxDisposable{constructor(_0x3d06d3,_0x1d7708,_0x24697f,_0x296fcf,_0x200e51,_0x394bbc,_0x4fb6f4,_0x4fe2b2,_0x533ee0){var _0x3064d0=_0x43e0c9;super(),__publicField(this,_0x3064d0(0x36c),new BehaviorSubject(0x0)),__publicField(this,'sessionStatus$',this[_0x3064d0(0x36c)][_0x3064d0(0x37f)]()),__publicField(this,_0x3064d0(0x228),new Subject()),__publicField(this,_0x3064d0(0x14f),this['_event$'][_0x3064d0(0x37f)]()),__publicField(this,_0x3064d0(0x2f0)),__publicField(this,_0x3064d0(0x107)),__publicField(this,'_collaborationTimeoutTimer'),__publicField(this,'_shouldReportTelemetry',!0x1),__publicField(this,_0x3064d0(0x391),null),(this[_0x3064d0(0x104)]=_0x3d06d3,this['_logService']=_0x24697f,this['_configService']=_0x296fcf,this['_localeService']=_0x200e51,this[_0x3064d0(0x252)]=_0x394bbc,this[_0x3064d0(0x254)]=_0x4fb6f4,this['_collaborationUIEventService']=_0x4fe2b2,this[_0x3064d0(0x23e)]=_0x533ee0,this[_0x3064d0(0x237)]=!!this[_0x3064d0(0x23e)],_0x1d7708[_0x3064d0(0x1f0)](takeUntil(this[_0x3064d0(0x34a)]))[_0x3064d0(0x352)](_0x5798ec=>{var _0xe9982=_0x3064d0,_0x340089;typeof _0x5798ec>'u'||(this[_0xe9982(0x2f0)]=_0x5798ec,_0x5798ec?(this['_joinRoom'](_0x5798ec),this['_socketMessageSubscription']=_0x5798ec[_0xe9982(0x427)][_0xe9982(0x352)](_0x4815d1=>{var _0x8823c3=_0xe9982;_0x4815d1['routeKey']===this[_0x8823c3(0x104)]&&this['_onCombEvent'](_0x4815d1);})):(this[_0xe9982(0x172)](),this[_0xe9982(0x36c)][_0xe9982(0x2e5)](0x2),(_0x340089=this['_socketMessageSubscription'])==null||_0x340089[_0xe9982(0x11c)](),this[_0xe9982(0x107)]=null));}));}get[_0x43e0c9(0x2ea)](){var _0x59ca35=_0x43e0c9;return this[_0x59ca35(0x36c)]['getValue']();}['getMemberID'](){var _0x3a0850=_0x43e0c9,_0x1aa253,_0x183b2d;return(_0x183b2d=(_0x1aa253=this[_0x3a0850(0x2f0)])==null?void 0x0:_0x1aa253['memberID'])!=null?_0x183b2d:null;}[_0x43e0c9(0x25b)](){var _0x570699=_0x43e0c9;super['dispose'](),this['dispose$'][_0x570699(0x2e5)](),this[_0x570699(0x34a)][_0x570699(0x207)]();}[_0x43e0c9(0x214)](){var _0x129353=_0x43e0c9,_0x54862c,_0x3dacf0;this[_0x129353(0x172)](),(_0x54862c=this[_0x129353(0x2f0)])==null||_0x54862c[_0x129353(0x313)]({'cmd':CombCmd[_0x129353(0x190)],'data':{'roomID':this['_unitID']}}),(_0x3dacf0=this[_0x129353(0x2f0)])==null||_0x3dacf0[_0x129353(0x214)](),this[_0x129353(0x228)]['complete'](),this['_sessionStatus$'][_0x129353(0x207)](),this[_0x129353(0x25b)]();}[_0x43e0c9(0x41f)](_0x572e94){var _0x4faf4c=_0x43e0c9;_0x572e94[_0x4faf4c(0x1fb)]===CombCmd['JOIN']?this[_0x4faf4c(0x3cf)](_0x572e94):_0x572e94[_0x4faf4c(0x1fb)]===CombCmd[_0x4faf4c(0x1d3)]&&this[_0x4faf4c(0x328)](_0x572e94);}[_0x43e0c9(0x27b)](_0x50f299){var _0x294c97=_0x43e0c9;this[_0x294c97(0x36c)]['next'](0x1),_0x50f299['send']({'cmd':CombCmd['JOIN'],'routeKey':this[_0x294c97(0x104)],'routeType':'','data':{'rooms':[{'roomID':this[_0x294c97(0x104)]}]}});}['_onJoinRoomEvent'](_0x4b6f4f){var _0x402f94=_0x43e0c9,_0x115820;if(_0x4b6f4f[_0x402f94(0x2a6)]in FailedReason){this[_0x402f94(0x127)][_0x402f94(0x43a)]({'id':CollaborationUIEventId['JOIN_ROOM_FAILED'],'data':FailedReason[_0x4b6f4f[_0x402f94(0x2a6)]]}),this[_0x402f94(0x36c)][_0x402f94(0x2e5)](0x2);return;}this[_0x402f94(0x36c)][_0x402f94(0x2e5)](0x3);const _0x11e49e=(_0x115820=_0x4b6f4f[_0x402f94(0x14c)]['roomInfos'][this[_0x402f94(0x104)]])==null?void 0x0:_0x115820[_0x402f94(0x417)];_0x11e49e&&_0x11e49e['forEach'](_0x1f2b80=>this['_memberService'][_0x402f94(0x25f)](this[_0x402f94(0x104)],_0x1f2b80));}['_onRecvEvent'](_0x27fa21){var _0x255a8f=_0x43e0c9;try{const _0x6889d4=_0x27fa21[_0x255a8f(0x14c)];switch(_0x6889d4[_0x255a8f(0x25d)]){case CollaborationEvent[_0x255a8f(0x1c4)]:this[_0x255a8f(0x2c6)](_0x6889d4),this[_0x255a8f(0x228)][_0x255a8f(0x2e5)](_0x6889d4);break;case CollaborationEvent[_0x255a8f(0x2fe)]:this[_0x255a8f(0x2f6)](_0x6889d4),this['_event$'][_0x255a8f(0x2e5)](_0x6889d4);break;case CollaborationEvent[_0x255a8f(0x24c)]:case CollaborationEvent['CHANGESET_SHOULD_RETRY']:this[_0x255a8f(0x251)](),this['_clearCollaborationTimeoutTimer'](),this[_0x255a8f(0x228)]['next'](_0x6889d4);break;case CollaborationEvent[_0x255a8f(0x292)]:this[_0x255a8f(0x11f)]['error'](_0x255a8f(0x32b)+JSON[_0x255a8f(0xff)](_0x6889d4)),this[_0x255a8f(0x228)]['next'](_0x6889d4);break;case CollaborationEvent[_0x255a8f(0x11a)]:this[_0x255a8f(0x254)][_0x255a8f(0x3c2)](_0x6889d4[_0x255a8f(0x14c)]),this['_event$'][_0x255a8f(0x2e5)](_0x6889d4);break;default:this['_event$'][_0x255a8f(0x2e5)](_0x6889d4);}}catch(_0x21a2c7){this[_0x255a8f(0x11f)][_0x255a8f(0x1c8)](_0x21a2c7,_0x27fa21);}}[_0x43e0c9(0x2c6)](_0x32af5d){var _0x3c58b8=_0x43e0c9;this[_0x3c58b8(0x252)][_0x3c58b8(0x25f)](this[_0x3c58b8(0x104)],_0x32af5d[_0x3c58b8(0x14c)]);}['_onUserLeave'](_0x473b46){var _0x14b43e=_0x43e0c9;this[_0x14b43e(0x252)][_0x14b43e(0x3c3)](this[_0x14b43e(0x104)],_0x473b46['data'][_0x14b43e(0x3ea)]);}async[_0x43e0c9(0x313)](_0x2105f0,_0x29d5d3){var _0xa37cec=_0x43e0c9;if(this[_0xa37cec(0x2ea)]!==0x3||!this['_socket'])throw new Error(_0xa37cec(0x1fd));try{_0x2105f0[_0xa37cec(0x25d)]===CollaborationEvent[_0xa37cec(0x3e8)]&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0xa37cec(0x390)](_0x2105f0)),this['_socket'][_0xa37cec(0x313)]({'cmd':CombCmd[_0xa37cec(0x137)],'routeKey':_0x29d5d3,'routeType':'','data':_0x2105f0});}catch(_0x5c30cd){this[_0xa37cec(0x11f)][_0xa37cec(0x1c8)](_0x5c30cd);}}[_0x43e0c9(0x269)](){var _0x594f83=_0x43e0c9,_0x5e210c;this[_0x594f83(0x272)]=setTimeout(()=>{var _0x430a09=_0x594f83;this[_0x430a09(0x272)]=null,this[_0x430a09(0x127)][_0x430a09(0x43a)]({'id':CollaborationUIEventId['SUBMIT_CHANGESET_TIMEOUT']});},(_0x5e210c=this[_0x594f83(0x249)]['getConfig'](HEARTBEAT_TIMEOUT_KEY))!=null?_0x5e210c:DEFAULT_HEARTBEAT_TIMEOUT);}['_clearCollaborationTimeoutTimer'](){var _0x3cdd09=_0x43e0c9;this[_0x3cdd09(0x272)]&&(clearTimeout(this[_0x3cdd09(0x272)]),this[_0x3cdd09(0x272)]=null);}[_0x43e0c9(0x390)](_0x1fcad4){var _0xe945c4=_0x43e0c9;if(!this['_shouldReportTelemetry'])return;const {data:_0x23f518}=_0x1fcad4,{unitID:_0x2d0f81,changeset:_0x24d70d}=_0x23f518,{mutations:_0x40c9a3,type:_0x83db7d}=_0x24d70d;this[_0xe945c4(0x391)]={'unitId':_0x2d0f81,'type':_0x83db7d,'startTime':performance[_0xe945c4(0x1cb)](),'stopTime':0x0,'duration':0x0,'size':summaryChangesetSize(_0x40c9a3)};}[_0x43e0c9(0x251)](){var _0x49ffd7=_0x43e0c9;if(this[_0x49ffd7(0x237)]){if(!this[_0x49ffd7(0x391)]){this['_logService']['error'](_0x49ffd7(0x197),_0x49ffd7(0x32f));return;}this[_0x49ffd7(0x391)][_0x49ffd7(0x2c2)]=performance[_0x49ffd7(0x1cb)](),this[_0x49ffd7(0x391)][_0x49ffd7(0xf4)]=this[_0x49ffd7(0x391)]['stopTime']-this[_0x49ffd7(0x391)]['startTime'],this[_0x49ffd7(0x23e)][_0x49ffd7(0x3a3)](TELEMETRY_COLLABORATION_NEW_CHANGESET,this[_0x49ffd7(0x391)]),this['_telemetryInfo']=null;}}[_0x43e0c9(0x172)](){var _0x56a98e=_0x43e0c9;this[_0x56a98e(0x391)]=null;}},__name(_a3,'CollaborationSession'),_a3);CollaborationSession=__decorateClass$g([__decorateParam$g(0x2,ILogService),__decorateParam$g(0x3,IConfigService),__decorateParam$g(0x4,Inject(LocaleService)),__decorateParam$g(0x5,Inject(MemberService)),__decorateParam$g(0x6,Inject(CommentService)),__decorateParam$g(0x7,Inject(CollaborationUIEventService)),__decorateParam$g(0x8,Optional(ITelemetryService))],CollaborationSession);var __defProp$f=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc$f=Object[_0x43e0c9(0x33e)],__decorateClass$f=__name((_0x29d4be,_0x46151d,_0x415ae5,_0x31e18b)=>{var _0x50cc74=_0x43e0c9;for(var _0x317281=_0x31e18b>0x1?void 0x0:_0x31e18b?__getOwnPropDesc$f(_0x46151d,_0x415ae5):_0x46151d,_0x2ac5e8=_0x29d4be[_0x50cc74(0x233)]-0x1,_0x588b9f;_0x2ac5e8>=0x0;_0x2ac5e8--)(_0x588b9f=_0x29d4be[_0x2ac5e8])&&(_0x317281=(_0x31e18b?_0x588b9f(_0x46151d,_0x415ae5,_0x317281):_0x588b9f(_0x317281))||_0x317281);return _0x31e18b&&_0x317281&&__defProp$f(_0x46151d,_0x415ae5,_0x317281),_0x317281;},_0x43e0c9(0x263)),__decorateParam$f=__name((_0x4903e1,_0x130926)=>(_0x1b26bc,_0x124e10)=>_0x130926(_0x1b26bc,_0x124e10,_0x4903e1),'__decorateParam$f'),_a4;let CollaborationSessionService=(_a4=class extends Disposable{constructor(_0x148ec9,_0x1d765e,_0x4b8929,_0x3e6c3a,_0x1cb48f,_0x389b10,_0x2c74c5){var _0x30e582=_0x43e0c9;super(),__publicField(this,'_socket$',new BehaviorSubject(void 0x0)),__publicField(this,_0x30e582(0x41b),this[_0x30e582(0x42f)]['asObservable']()),__publicField(this,_0x30e582(0x10e),null),__publicField(this,_0x30e582(0x332),new Map()),__publicField(this,_0x30e582(0x327),new BehaviorSubject(SessionStatus[_0x30e582(0x274)])),__publicField(this,_0x30e582(0x26a),this[_0x30e582(0x327)][_0x30e582(0x37f)]()),__publicField(this,_0x30e582(0x157),!0x1),__publicField(this,_0x30e582(0x1f7)),__publicField(this,_0x30e582(0x17b),0x0),__publicField(this,'_sendHeartbeatTimer'),__publicField(this,'_timeoutTimer'),(this[_0x30e582(0x403)]=_0x148ec9,this[_0x30e582(0x11f)]=_0x1d765e,this[_0x30e582(0x249)]=_0x4b8929,this['_socketService']=_0x3e6c3a,this[_0x30e582(0x141)]=_0x1cb48f,this[_0x30e582(0x127)]=_0x389b10,this['_networkConditionService']=_0x2c74c5,this[_0x30e582(0x16c)]());}get[_0x43e0c9(0x2f0)](){var _0x5303a6=_0x43e0c9;return this[_0x5303a6(0x42f)][_0x5303a6(0x10c)]();}[_0x43e0c9(0x16c)](){var _0x3c56ae=_0x43e0c9;this[_0x3c56ae(0x2b9)]&&this[_0x3c56ae(0x18f)](this[_0x3c56ae(0x2b9)][_0x3c56ae(0x3be)][_0x3c56ae(0x352)](_0x5b6d82=>{var _0x346a27=_0x3c56ae;_0x5b6d82&&!this[_0x346a27(0x2f0)]&&this['reconnect'](),_0x5b6d82||this[_0x346a27(0x171)]();}));}[_0x43e0c9(0x25b)](){var _0x133364=_0x43e0c9;super[_0x133364(0x25b)](),this[_0x133364(0x332)][_0x133364(0x392)](_0x50420d=>_0x50420d[_0x133364(0x25b)]()),this[_0x133364(0x332)][_0x133364(0x1bf)](),this[_0x133364(0x327)][_0x133364(0x207)]();}async[_0x43e0c9(0x32d)](_0x26efa2){var _0x4a6614=_0x43e0c9;if(this[_0x4a6614(0x332)][_0x4a6614(0x3ae)](_0x26efa2))return this[_0x4a6614(0x332)][_0x4a6614(0x1c2)](_0x26efa2);this[_0x4a6614(0x42b)]();const _0x3b0873=this['_injector'][_0x4a6614(0x39f)](CollaborationSession,_0x26efa2,this[_0x4a6614(0x42f)]['asObservable']());return this[_0x4a6614(0x332)][_0x4a6614(0x116)](_0x26efa2,_0x3b0873),_0x3b0873;}['closeSession'](_0x2175ea){var _0x5e9e63=_0x43e0c9,_0x27b8e1;const _0x20c764=this[_0x5e9e63(0x332)][_0x5e9e63(0x1c2)](_0x2175ea);_0x20c764&&(this['_sessions'][_0x5e9e63(0x36b)](_0x2175ea),_0x20c764['close']()),this['_sessions']['size']||(_0x27b8e1=this['_socket'])==null||_0x27b8e1['close']();}[_0x43e0c9(0x1ca)](){var _0x28340b=_0x43e0c9;this['_retryCount']=0x0,this['_retryConnectingTimer']!=null&&(clearTimeout(this[_0x28340b(0x1f7)]),this[_0x28340b(0x1f7)]=null),this[_0x28340b(0x1b2)]();}async[_0x43e0c9(0x446)](){var _0x5a5b94=_0x43e0c9,_0x415998,_0x4ac9c7,_0x5d3aec;const _0x6f62a7=this['_configService'][_0x5a5b94(0x15f)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY),_0xc6b9f0=(_0x415998=_0x6f62a7==null?void 0x0:_0x6f62a7['wsSessionTicketUrl'])!=null?_0x415998:DEFAULT_WS_SESSION_TICKET_URL;return(_0x5d3aec=(_0x4ac9c7=(await this[_0x5a5b94(0x141)]['get'](_0xc6b9f0,{'headers':{'Content-Type':'application/json'}}))[_0x5a5b94(0x415)])==null?void 0x0:_0x4ac9c7[_0x5a5b94(0x2d5)])!=null?_0x5d3aec:'';}['_createSocketURL'](_0x2466d2){var _0x504f8d=_0x43e0c9,_0x42483d,_0x3ed9da;const _0x38d716=this['_configService'][_0x504f8d(0x15f)](COLLAB_WEB_SOCKET_URL_KEY),_0x4349d0=this[_0x504f8d(0x249)][_0x504f8d(0x15f)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY),_0x5e9950=(_0x3ed9da=(_0x42483d=_0x4349d0==null?void 0x0:_0x4349d0[_0x504f8d(0x342)])!=null?_0x42483d:_0x38d716)!=null?_0x3ed9da:DEFAULT_COLLAB_WEB_SOCKET_URL,_0x9795fd=typeof window>'u'?new URL(_0x5e9950):new URL(_0x5e9950,window[_0x504f8d(0x121)]['origin']);_0x9795fd[_0x504f8d(0x134)][_0x504f8d(0x116)](_0x504f8d(0x2a3),_0x2466d2);const _0x460a4b=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x504f8d(0x121)][_0x504f8d(0x337)]);return _0x460a4b[_0x504f8d(0x1c2)](_0x504f8d(0x205))&&_0x9795fd[_0x504f8d(0x134)][_0x504f8d(0x116)]('runId',_0x460a4b[_0x504f8d(0x1c2)](_0x504f8d(0x205))),_0x9795fd[_0x504f8d(0x22b)]();}async[_0x43e0c9(0x1ee)](){var _0xd8969a=_0x43e0c9;const _0x1b3cb2=await this[_0xd8969a(0x446)](),_0x17e2bc=this[_0xd8969a(0x15a)](_0x1b3cb2),_0xe6eac1=this['_socketService'][_0xd8969a(0x29c)](_0x17e2bc);return this['_candidateSocket']=_0xe6eac1,_0xe6eac1;}async[_0x43e0c9(0x42b)](){var _0x24d1b0=_0x43e0c9,_0x3356ca,_0x58cc7a;try{const _0x248276=(_0x58cc7a=(_0x3356ca=this[_0x24d1b0(0x2f0)])!=null?_0x3356ca:this[_0x24d1b0(0x10e)])!=null?_0x58cc7a:await this[_0x24d1b0(0x1ee)]();if(_0x248276){const _0x3a7508=_0x248276['send'];_0x248276[_0x24d1b0(0x313)]=_0x24c64c=>(this['_rescheduleHeartbeat'](),_0x3a7508[_0x24d1b0(0x2ba)](_0x248276,[_0x24c64c])),_0x248276[_0x24d1b0(0x427)][_0x24d1b0(0x352)](_0x36e502=>this['_onMessage'](_0x248276,_0x36e502)),_0x248276[_0x24d1b0(0x33d)][_0x24d1b0(0x1f0)](take(0x1))['subscribe'](_0x28be5d=>this[_0x24d1b0(0x11f)][_0x24d1b0(0x1c8)](_0x24d1b0(0x283),_0x28be5d)),_0x248276[_0x24d1b0(0x279)]['pipe'](take(0x1))[_0x24d1b0(0x352)](()=>{var _0x3aeefa=_0x24d1b0;this[_0x3aeefa(0x3f9)](_0x248276);}),_0x248276['close$'][_0x24d1b0(0x1f0)](take(0x1))[_0x24d1b0(0x352)](_0x29e9cc=>{var _0x3bd28c=_0x24d1b0;this['_logService']['debug'](_0x3bd28c(0x35a),_0x3bd28c(0x421),_0x29e9cc),this[_0x3bd28c(0x307)]();});}}catch(_0xb60ad7){this[_0x24d1b0(0x11f)][_0x24d1b0(0x1c8)](_0xb60ad7),this[_0x24d1b0(0x307)]();}}[_0x43e0c9(0x3f9)](_0x474e03){var _0x287a8e=_0x43e0c9;this[_0x287a8e(0x11f)]['debug'](_0x287a8e(0x35a),_0x287a8e(0x133)),_0x474e03[_0x287a8e(0x313)]({'cmd':CombCmd['HELLO']}),this[_0x287a8e(0x43c)]();}[_0x43e0c9(0x171)](){var _0x58bcd9=_0x43e0c9;this[_0x58bcd9(0x157)]=!0x1,this['_candidateSocket']=null,this['_status$'][_0x58bcd9(0x2e5)](SessionStatus['OFFLINE']),this[_0x58bcd9(0x42f)]['next'](null),this['_clearTimeoutTimer'](),this[_0x58bcd9(0x277)]();}[_0x43e0c9(0x307)](){var _0x3fcbd0=_0x43e0c9,_0x46a4dd;this[_0x3fcbd0(0x171)](),this[_0x3fcbd0(0x17b)]<((_0x46a4dd=this[_0x3fcbd0(0x249)][_0x3fcbd0(0x15f)](RETRY_CONNECTING_MAX_COUNT_KEY))!=null?_0x46a4dd:DEFAULT_RETRY_CONNECTING_MAX_COUNT)?(this['_collaborationUIEventService'][_0x3fcbd0(0x43a)]({'id':CollaborationUIEventId[_0x3fcbd0(0x135)]}),this[_0x3fcbd0(0x1b2)]()):this[_0x3fcbd0(0x127)][_0x3fcbd0(0x43a)]({'id':CollaborationUIEventId['SOCKET_FAILED']});}[_0x43e0c9(0x1b2)](){var _0x59ad26=_0x43e0c9,_0x52f7ac;const _0x27fa5d=this[_0x59ad26(0x17b)],_0xca128f=this[_0x59ad26(0x249)][_0x59ad26(0x15f)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY),_0x47d0b8=_0x27fa5d===0x0?0x0:((_0x52f7ac=_0xca128f==null?void 0x0:_0xca128f['retryConnectingInterval'])!=null?_0x52f7ac:DEFAULT_RETRY_CONNECTING_INTERVAL)*0x2**_0x27fa5d;this['_retryConnectingTimer']=setTimeout(()=>{var _0x12b694=_0x59ad26;clearTimeout(this[_0x12b694(0x1f7)]),this[_0x12b694(0x1f7)]=null,this[_0x12b694(0x42b)]();},_0x47d0b8),this['_retryCount']+=0x1;}[_0x43e0c9(0x101)](_0x18ca9b,_0x2f37be){var _0x2588b9=_0x43e0c9;const {cmd:_0x38d69a}=_0x2f37be;_0x38d69a===CombCmd[_0x2588b9(0x343)]&&!this[_0x2588b9(0x157)]&&(_0x18ca9b['memberID']=_0x2f37be['data'][_0x2588b9(0x3ea)],this['_socket$'][_0x2588b9(0x2e5)](_0x18ca9b),this['_status$'][_0x2588b9(0x2e5)](SessionStatus[_0x2588b9(0x310)]),this['_socketReady']=!0x0,this[_0x2588b9(0x10e)]=null),_0x38d69a===CombCmd['HEARTBEAT']&&this[_0x2588b9(0x229)](),this['_rescheduleHeartbeat']();}[_0x43e0c9(0x43c)](){var _0x547106=_0x43e0c9,_0x1e1e18;this['_clearHeartbeatTimer'](),this['_sendHeartbeatTimer']=setTimeout(()=>this[_0x547106(0x2df)](),(_0x1e1e18=this[_0x547106(0x249)][_0x547106(0x15f)](HEARTBEAT_INTERVAL_KEY))!=null?_0x1e1e18:DEFAULT_HEARTBEAT_INTERVAL);}[_0x43e0c9(0x2df)](){var _0x14d223=_0x43e0c9;this[_0x14d223(0x2f0)][_0x14d223(0x313)]({'cmd':CombCmd['HEARTBEAT']}),this[_0x14d223(0x3a5)]();}[_0x43e0c9(0x3a5)](){var _0x3a6fdb=_0x43e0c9,_0x57de10;this[_0x3a6fdb(0x429)]=setTimeout(()=>this['_onConnectionFailed'](),(_0x57de10=this[_0x3a6fdb(0x249)][_0x3a6fdb(0x15f)](HEARTBEAT_TIMEOUT_KEY))!=null?_0x57de10:DEFAULT_HEARTBEAT_TIMEOUT);}[_0x43e0c9(0x277)](){var _0x25695e=_0x43e0c9;this[_0x25695e(0x37b)]!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this[_0x25695e(0x37b)]=null);}['_clearTimeoutTimer'](){var _0x174c7d=_0x43e0c9;this[_0x174c7d(0x429)]!=null&&(clearTimeout(this[_0x174c7d(0x429)]),this[_0x174c7d(0x429)]=null);}},__name(_a4,_0x43e0c9(0x37d)),_a4);CollaborationSessionService=__decorateClass$f([__decorateParam$f(0x0,Inject(Injector)),__decorateParam$f(0x1,ILogService),__decorateParam$f(0x2,IConfigService),__decorateParam$f(0x3,ICollaborationSocketService),__decorateParam$f(0x4,Inject(HTTPService)),__decorateParam$f(0x5,Inject(CollaborationUIEventService)),__decorateParam$f(0x6,Optional(INetworkConditionService))],CollaborationSessionService);const byteToHex=[];for(let i=0x0;i<0x100;++i)byteToHex['push']((i+0x100)[_0x43e0c9(0x22b)](0x10)[_0x43e0c9(0x1ea)](0x1));function unsafeStringify(_0xf788b2,_0x218a74=0x0){var _0x26b34a=_0x43e0c9;return(byteToHex[_0xf788b2[_0x218a74+0x0]]+byteToHex[_0xf788b2[_0x218a74+0x1]]+byteToHex[_0xf788b2[_0x218a74+0x2]]+byteToHex[_0xf788b2[_0x218a74+0x3]]+'-'+byteToHex[_0xf788b2[_0x218a74+0x4]]+byteToHex[_0xf788b2[_0x218a74+0x5]]+'-'+byteToHex[_0xf788b2[_0x218a74+0x6]]+byteToHex[_0xf788b2[_0x218a74+0x7]]+'-'+byteToHex[_0xf788b2[_0x218a74+0x8]]+byteToHex[_0xf788b2[_0x218a74+0x9]]+'-'+byteToHex[_0xf788b2[_0x218a74+0xa]]+byteToHex[_0xf788b2[_0x218a74+0xb]]+byteToHex[_0xf788b2[_0x218a74+0xc]]+byteToHex[_0xf788b2[_0x218a74+0xd]]+byteToHex[_0xf788b2[_0x218a74+0xe]]+byteToHex[_0xf788b2[_0x218a74+0xf]])[_0x26b34a(0x261)]();}__name(unsafeStringify,'unsafeStringify');let getRandomValues;const rnds8=new Uint8Array(0x10);function rng(){var _0xbe505d=_0x43e0c9;if(!getRandomValues){if(typeof crypto>'u'||!crypto[_0xbe505d(0x2b7)])throw new Error(_0xbe505d(0x30e));getRandomValues=crypto[_0xbe505d(0x2b7)][_0xbe505d(0x37e)](crypto);}return getRandomValues(rnds8);}__name(rng,_0x43e0c9(0x334));const randomUUID=typeof crypto<'u'&&crypto[_0x43e0c9(0x376)]&&crypto[_0x43e0c9(0x376)]['bind'](crypto),native={'randomUUID':randomUUID};function v4(_0x58876b,_0x56a43c,_0x594e65){var _0x3ea7a0=_0x43e0c9,_0x2cdeb5,_0x3cd998,_0x5bc202;if(native[_0x3ea7a0(0x376)]&&!_0x58876b)return native[_0x3ea7a0(0x376)]();_0x58876b=_0x58876b||{};const _0x256bbc=(_0x5bc202=(_0x3cd998=_0x58876b['random'])!=null?_0x3cd998:(_0x2cdeb5=_0x58876b['rng'])==null?void 0x0:_0x2cdeb5[_0x3ea7a0(0x314)](_0x58876b))!=null?_0x5bc202:rng();if(_0x256bbc[_0x3ea7a0(0x233)]<0x10)throw new Error(_0x3ea7a0(0x397));return _0x256bbc[0x6]=_0x256bbc[0x6]&0xf|0x40,_0x256bbc[0x8]=_0x256bbc[0x8]&0x3f|0x80,unsafeStringify(_0x256bbc);}__name(v4,'v4');const ILocalCacheService=createIdentifier(_0x43e0c9(0x3d7));function getLocalCacheKey(_0x140470){var _0x28d8af=_0x43e0c9;return _0x28d8af(0x38b)+_0x140470;}__name(getLocalCacheKey,'getLocalCacheKey');var __defProp$e=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc$e=Object[_0x43e0c9(0x33e)],__decorateClass$e=__name((_0x31ea01,_0x17bf1b,_0xf88263,_0x6354bd)=>{var _0x13583b=_0x43e0c9;for(var _0x1bf5fe=_0x6354bd>0x1?void 0x0:_0x6354bd?__getOwnPropDesc$e(_0x17bf1b,_0xf88263):_0x17bf1b,_0x5eff44=_0x31ea01[_0x13583b(0x233)]-0x1,_0x12d900;_0x5eff44>=0x0;_0x5eff44--)(_0x12d900=_0x31ea01[_0x5eff44])&&(_0x1bf5fe=(_0x6354bd?_0x12d900(_0x17bf1b,_0xf88263,_0x1bf5fe):_0x12d900(_0x1bf5fe))||_0x1bf5fe);return _0x6354bd&&_0x1bf5fe&&__defProp$e(_0x17bf1b,_0xf88263,_0x1bf5fe),_0x1bf5fe;},'__decorateClass$e'),__decorateParam$e=__name((_0xae802e,_0x16479f)=>(_0x10eb79,_0x54ad60)=>_0x16479f(_0x10eb79,_0x54ad60,_0xae802e),'__decorateParam$e');function extractTargetFromFirstChangeset(_0x35174d){var _0x2c9855=_0x43e0c9;const {unitID:_0x4e3976,mutations:_0x4beb73}=_0x35174d;return{'unitId':_0x4e3976,'subUnitId':_0x4beb73[0x0][_0x2c9855(0xf1)][_0x2c9855(0x38a)]};}__name(extractTargetFromFirstChangeset,_0x43e0c9(0x255));var _a5;let SheetTransformSelectionsService=(_a5=class{constructor(_0x31b81f,_0x43240e,_0x567ff3){var _0x1e494b=_0x43e0c9;this[_0x1e494b(0x403)]=_0x31b81f,this[_0x1e494b(0x345)]=_0x43240e,this[_0x1e494b(0x180)]=_0x567ff3;}[_0x43e0c9(0x3d9)](_0x42dd72){var _0x139f93=_0x43e0c9,_0x361b84,_0x517f5c,_0x16998e,_0x20ff4e;const _0xe50158=this[_0x139f93(0x403)]['get'](SheetsSelectionsService),{unitId:_0xa625cb,subUnitId:_0x2efcb4}=extractTargetFromFirstChangeset(_0x42dd72),_0x450ad7=_0xe50158==null?void 0x0:_0xe50158['getWorkbookSelections'](_0xa625cb)[_0x139f93(0x395)](),_0x6f744a=(_0x517f5c=(_0x361b84=this[_0x139f93(0x180)][_0x139f93(0x38c)](_0xa625cb))==null?void 0x0:_0x361b84[_0x139f93(0x14a)]())==null?void 0x0:_0x517f5c[_0x139f93(0x234)]();if(_0x450ad7['length']===0x0||!_0xa625cb||!_0x2efcb4)return;const _0x37cfeb=[{'id':SetSelectionsOperation['id'],'params':{'unitId':_0xa625cb,'subUnitId':_0x6f744a,'selections':Tools[_0x139f93(0x399)](_0x450ad7)}}],_0x524c50=this[_0x139f93(0x345)][_0x139f93(0x346)](_0x42dd72,_0x37cfeb);if(!isTransformMutationsWithChangesetSuccess(_0x524c50))throw _0x524c50[_0x139f93(0x1c8)];const _0x2e10c1=(_0x20ff4e=(_0x16998e=_0x524c50[_0x139f93(0xfa)][0x0])==null?void 0x0:_0x16998e[_0x139f93(0xf1)])==null?void 0x0:_0x20ff4e[_0x139f93(0x378)];if(Array[_0x139f93(0x2a9)](_0x2e10c1)&&_0x2e10c1['length']){if(_0x2e10c1['length']===_0x37cfeb[0x0][_0x139f93(0xf1)][_0x139f93(0x378)]['length']&&_0x2e10c1[_0x139f93(0x291)]((_0x2b6a07,_0x95b2fc)=>Rectangle[_0x139f93(0x15d)](_0x2b6a07[_0x139f93(0x124)],_0x37cfeb[0x0][_0x139f93(0xf1)]['selections'][_0x95b2fc][_0x139f93(0x124)])))return;this[_0x139f93(0x403)]['get'](ICommandService)[_0x139f93(0x3f7)](SetSelectionsOperation['id'],{'unitId':_0xa625cb,'subUnitId':_0x6f744a,'selections':_0x2e10c1});}}},__name(_a5,_0x43e0c9(0x400)),_a5);SheetTransformSelectionsService=__decorateClass$e([__decorateParam$e(0x0,Inject(Injector)),__decorateParam$e(0x1,ITransformService),__decorateParam$e(0x2,IUniverInstanceService)],SheetTransformSelectionsService);const ISingleActiveUnitService=createIdentifier(_0x43e0c9(0x364));var UnitStatus=(_0x51e8e6=>(_0x51e8e6[_0x51e8e6[_0x43e0c9(0x2a8)]=0x0]=_0x43e0c9(0x2a8),_0x51e8e6[_0x51e8e6['OTHER_CLIENTS_EDITING']=0x1]=_0x43e0c9(0x350),_0x51e8e6))(UnitStatus||{});const SINGLE_CHANGESET_MUTATIONS=new Set([InsertSheetMutation['id']]);function assembleSheetChangeset(_0x3af773,_0x46bfde,_0x28b6ba,_0xeed378,_0x2b711c){var _0x5ed008=_0x43e0c9,_0x30db51,_0x513bf4,_0x432911,_0x12313d;const _0x3b8edb=[];for(const _0x277bbd of _0x3af773)if(SINGLE_CHANGESET_MUTATIONS[_0x5ed008(0x3ae)](_0x277bbd['id'])){if(_0x3b8edb[_0x5ed008(0x233)]>0x0)break;_0x3b8edb[_0x5ed008(0x119)](_0x277bbd);break;}else _0x3b8edb[_0x5ed008(0x119)](_0x277bbd);const _0x46ab0a=(_0x513bf4=(_0x30db51=_0x2b711c[_0x5ed008(0x3a4)]())==null?void 0x0:_0x30db51[_0x5ed008(0x369)])!=null?_0x513bf4:_0x5ed008(0x225),_0x3d2ac1=(_0x12313d=(_0x432911=_0x2b711c[_0x5ed008(0x3a4)]())==null?void 0x0:_0x432911[_0x5ed008(0x3ea)])!=null?_0x12313d:_0x5ed008(0x225);return{'changeset':{'unitID':_0x46bfde,'type':mapDocumentTypeToUniverType(_0x28b6ba['getUnitType'](_0x46bfde)),'baseRev':_0xeed378[_0x5ed008(0x1c0)](_0x46bfde),'revision':0x0,'userID':_0x46ab0a,'memberID':_0x3d2ac1,'mutations':_0x3b8edb},'pendingMutations':_0x3af773[_0x5ed008(0x1ea)](_0x3b8edb['length'])};}__name(assembleSheetChangeset,_0x43e0c9(0x31f));function assembleDocChangeset(_0xcec60b,_0x4e82e1,_0x6c5deb,_0xc135c6,_0x4e263c){var _0x21de3e=_0x43e0c9,_0x5b5dd5,_0x41ee0c,_0x3311e5,_0x563f43;const _0x37eb5c=[_0xcec60b['reduce']((_0x5252ac,_0x4d32b9)=>{var _0x35fe8d=_0x5029,_0x23584c;const {id:_0x33fbbf}=_0x5252ac,{id:_0x343e08,type:_0x2fe794}=_0x4d32b9,_0x45ef8a=(_0x23584c=_0x5252ac[_0x35fe8d(0xf1)])!=null?_0x23584c:{'actions':null},_0x4b4dc9=_0x4d32b9[_0x35fe8d(0xf1)];if(_0x33fbbf&&_0x33fbbf!==_0x343e08)throw new Error(_0x35fe8d(0x396)+_0x33fbbf+_0x35fe8d(0x181)+_0x343e08+'.');return{..._0x5252ac,'id':_0x343e08,'type':_0x2fe794,'params':{'unitId':_0x4b4dc9[_0x35fe8d(0x38e)],'textRanges':_0x4b4dc9[_0x35fe8d(0x439)],'actions':JSONX[_0x35fe8d(0x2b8)](_0x45ef8a['actions'],_0x4b4dc9[_0x35fe8d(0x146)])}};},{})],_0x53704a=(_0x41ee0c=(_0x5b5dd5=_0x4e263c[_0x21de3e(0x3a4)]())==null?void 0x0:_0x5b5dd5['userID'])!=null?_0x41ee0c:'unknown',_0x556dd4=(_0x563f43=(_0x3311e5=_0x4e263c[_0x21de3e(0x3a4)]())==null?void 0x0:_0x3311e5[_0x21de3e(0x3ea)])!=null?_0x563f43:'unknown';return{'changeset':{'unitID':_0x4e82e1,'type':mapDocumentTypeToUniverType(_0x6c5deb['getUnitType'](_0x4e82e1)),'baseRev':_0xc135c6[_0x21de3e(0x1c0)](_0x4e82e1),'revision':0x0,'userID':_0x53704a,'memberID':_0x556dd4,'mutations':_0x37eb5c},'pendingMutations':[]};}__name(assembleDocChangeset,_0x43e0c9(0x186));function createTimerObservable$(_0xc67490,_0x1a2611){var _0x5b455b=_0x43e0c9;const _0x2657c1=new ReplaySubject(0x1);return setTimeout(()=>_0x2657c1['next'](_0x1a2611),_0xc67490),_0x2657c1[_0x5b455b(0x37f)]()[_0x5b455b(0x1f0)](_0x4af4d9(0x1));}__name(createTimerObservable$,_0x43e0c9(0x3f3));const EmptyMutationInfo={'id':EmptyMutation['id'],'type':CommandType[_0x43e0c9(0x189)],'params':{}};var __defProp$d=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc$d=Object[_0x43e0c9(0x33e)],__decorateClass$d=__name((_0x39618b,_0x58dbc9,_0x502951,_0x5de7c0)=>{for(var _0x22b9d9=_0x5de7c0>0x1?void 0x0:_0x5de7c0?__getOwnPropDesc$d(_0x58dbc9,_0x502951):_0x58dbc9,_0x16743c=_0x39618b['length']-0x1,_0x310f9c;_0x16743c>=0x0;_0x16743c--)(_0x310f9c=_0x39618b[_0x16743c])&&(_0x22b9d9=(_0x5de7c0?_0x310f9c(_0x58dbc9,_0x502951,_0x22b9d9):_0x310f9c(_0x22b9d9))||_0x22b9d9);return _0x5de7c0&&_0x22b9d9&&__defProp$d(_0x58dbc9,_0x502951,_0x22b9d9),_0x22b9d9;},_0x43e0c9(0x410)),__decorateParam$d=__name((_0x2d5878,_0x873cd5)=>(_0x4ee517,_0x20949a)=>_0x873cd5(_0x4ee517,_0x20949a,_0x2d5878),_0x43e0c9(0x12a)),CollaborationStatus=(_0x4c3e17=>(_0x4c3e17[_0x43e0c9(0x1ed)]=_0x43e0c9(0x385),_0x4c3e17[_0x43e0c9(0x3a8)]=_0x43e0c9(0x3b5),_0x4c3e17[_0x43e0c9(0x280)]=_0x43e0c9(0x2af),_0x4c3e17[_0x43e0c9(0x27d)]=_0x43e0c9(0x3a7),_0x4c3e17['AWAITING_WITH_PENDING']=_0x43e0c9(0x22c),_0x4c3e17[_0x43e0c9(0x43f)]='fetch_missing',_0x4c3e17[_0x43e0c9(0x2a0)]=_0x43e0c9(0x2ed),_0x4c3e17[_0x43e0c9(0x2be)]=_0x43e0c9(0x2c8),_0x4c3e17))(CollaborationStatus||{});const MAX_RETRY_TIMEOUT=0xea60,_CollaborationState=class _CollaborationState{constructor(_0x382919,_0x20adf1,_0x3d532b,_0x5f465d,_0x739b97,_0xf939d3,_0x5bb981,_0x1970e2,_0x3eadae){var _0xa8520e=_0x43e0c9;__publicField(this,_0xa8520e(0x20d),null),__publicField(this,_0xa8520e(0x1c5),[]),(this['unitID']=_0x382919,this['type']=_0x20adf1,this[_0xa8520e(0x3bd)]=_0x739b97,this[_0xa8520e(0x1ae)]=_0xf939d3,this['_undoRedoService']=_0x5bb981,this[_0xa8520e(0x3c0)]=_0x1970e2,this[_0xa8520e(0x289)]=_0x3eadae,this['_awaitingChangeset']=_0x3d532b,this['_pendingMutations']=_0x5f465d);}[_0x43e0c9(0x194)](_0x4f0b11){var _0x167e32=_0x43e0c9;const _0x49cb42=this['_revisionService'][_0x167e32(0x1c0)](this[_0x167e32(0x442)]);return _0x4f0b11[_0x167e32(0x267)]>_0x49cb42+0x1?(this[_0x167e32(0x3bd)][_0x167e32(0x195)]({'from':_0x49cb42,'to':_0x4f0b11[_0x167e32(0x267)]-0x1}),!0x0):!0x1;}[_0x43e0c9(0x111)](_0x53b7ef){var _0x229b67=_0x43e0c9;this[_0x229b67(0x158)][_0x229b67(0x206)](this['unitID'],_0x53b7ef);}[_0x43e0c9(0x115)](_0x1477be){var _0xbbfe07=_0x43e0c9,_0x5566ba,_0x3f37d8;(_0x3f37d8=(_0x5566ba=this['_handler'])[_0xbbfe07(0x250)])==null||_0x3f37d8[_0xbbfe07(0x314)](_0x5566ba,_0x1477be);}[_0x43e0c9(0x371)](_0x318a35){var _0x514359=_0x43e0c9,_0x146471,_0x3d6dca;return(_0x3d6dca=(_0x146471=this[_0x514359(0x3bd)])[_0x514359(0x173)])==null?void 0x0:_0x3d6dca['call'](_0x146471,_0x318a35);}[_0x43e0c9(0x227)](_0x459a83){var _0x413d89=_0x43e0c9,_0x3a0d91,_0x528732;return(_0x528732=(_0x3a0d91=this['_handler'])[_0x413d89(0x3c4)])==null?void 0x0:_0x528732[_0x413d89(0x314)](_0x3a0d91,_0x459a83);}[_0x43e0c9(0x3b6)](_0x42b0cc){var _0x342c63=_0x43e0c9,_0x1e5af7,_0x2157e7,_0x1861c6;return(_0x1861c6=(_0x2157e7=(_0x1e5af7=this['_handler'])[_0x342c63(0x11e)])==null?void 0x0:_0x2157e7[_0x342c63(0x314)](_0x1e5af7,_0x42b0cc))!=null?_0x1861c6:_0x42b0cc;}[_0x43e0c9(0x320)](_0x26bb64){var _0x3f56a9=_0x43e0c9,_0x3ed405,_0x238f26,_0x545ab5;return(_0x545ab5=(_0x238f26=(_0x3ed405=this[_0x3f56a9(0x3bd)])[_0x3f56a9(0x404)])==null?void 0x0:_0x238f26[_0x3f56a9(0x314)](_0x3ed405,_0x26bb64))!=null?_0x545ab5:_0x26bb64;}[_0x43e0c9(0x3fe)](_0x1a67ca){var _0x298cb6=_0x43e0c9,_0x55d47b,_0x3dd5f6;if(this[_0x298cb6(0x3b0)]===UniverType['UNIVER_DOC']){const {unitID:_0x363d7b,mutations:_0xe18d80,memberID:_0x5123cc}=_0x1a67ca,_0x54bfec=_0xe18d80[0x0][_0x298cb6(0xf1)][_0x298cb6(0x439)];Array['isArray'](_0x54bfec)&&_0x54bfec[_0x298cb6(0x233)]>0x0&&((_0x3dd5f6=(_0x55d47b=this[_0x298cb6(0x3bd)])[_0x298cb6(0x37c)])==null||_0x3dd5f6['call'](_0x55d47b,{'unitID':_0x363d7b,'memberID':_0x5123cc,'textRanges':_0x54bfec}));}}[_0x43e0c9(0x3dc)](){var _0x3aaf18=_0x43e0c9,_0x215fcd;(_0x215fcd=this[_0x3aaf18(0x289)])==null||_0x215fcd['updateOfflineData'](this['unitID'],this[_0x3aaf18(0x3b0)],this[_0x3aaf18(0x20d)],this[_0x3aaf18(0x1c5)]);}['_getCurrentRevision'](){var _0x2a0a9a=_0x43e0c9;return this[_0x2a0a9a(0x3c0)][_0x2a0a9a(0x1c0)](this[_0x2a0a9a(0x442)]);}[_0x43e0c9(0x40a)](){var _0x46309a=_0x43e0c9;this[_0x46309a(0x3c0)][_0x46309a(0x28a)](this['unitID']);}[_0x43e0c9(0x21e)](_0x2f1ebc){var _0x36feb4=_0x43e0c9,_0x3e896d;let _0x13b4bc=this[_0x36feb4(0x3b6)](_0x2f1ebc);_0x13b4bc=this[_0x36feb4(0x320)](_0x13b4bc);const _0x5cece8=sequenceExecute(_0x13b4bc[_0x36feb4(0x245)],this[_0x36feb4(0x1ae)],{'fromCollab':!0x0});if(!_0x5cece8[_0x36feb4(0xf3)])throw _0x5cece8['error']instanceof Error?_0x5cece8[_0x36feb4(0x1c8)]:new Error((_0x3e896d=_0x5cece8[_0x36feb4(0x1c8)])!=null?_0x3e896d:'[CollaborationState]:\x20apply\x20error!');this[_0x36feb4(0x371)](_0x13b4bc),this[_0x36feb4(0x227)](_0x13b4bc),this['_transformUndoredo'](_0x2f1ebc),this[_0x36feb4(0x115)](_0x13b4bc),this[_0x36feb4(0x3fe)](_0x13b4bc),this[_0x36feb4(0x40a)]();}};__name(_CollaborationState,_0x43e0c9(0x212));let CollaborationState=_CollaborationState;var _a6;let SyncedState=(_a6=class extends CollaborationState{constructor(_0x3a5a34,_0x529027,_0x29a46f,_0x31263a,_0x56f198,_0x1ebd7c,_0x1fd753,_0x5f4f2d,_0x5f4f52,_0xde86a7){var _0x89bcf7=_0x43e0c9;super(_0x3a5a34,_0x529027,null,[],_0x29a46f,_0x1fd753,_0x1ebd7c,_0x31263a,_0xde86a7),__publicField(this,_0x89bcf7(0x123),_0x89bcf7(0x3b5)),(this['_injector']=_0x56f198,this[_0x89bcf7(0x11f)]=_0x5f4f2d,this[_0x89bcf7(0x345)]=_0x5f4f52,this[_0x89bcf7(0x284)]=_0xde86a7);}[_0x43e0c9(0x35f)](_0x7a931c){var _0x4df65d=_0x43e0c9;const _0x1e976d=this['_injector'][_0x4df65d(0x39f)](PendingState,this[_0x4df65d(0x442)],this[_0x4df65d(0x3b0)],[_0x7a931c],this[_0x4df65d(0x3bd)]);return _0x1e976d[_0x4df65d(0x1f9)](),_0x1e976d[_0x4df65d(0x3dc)](),_0x1e976d;}[_0x43e0c9(0x220)](_0x27ad53){var _0x14a7d9=_0x43e0c9;if(this[_0x14a7d9(0x194)](_0x27ad53))return this[_0x14a7d9(0x403)][_0x14a7d9(0x39f)](FetchingMissState,this[_0x14a7d9(0x442)],this[_0x14a7d9(0x3b0)],null,[],null,[_0x27ad53],this[_0x14a7d9(0x3bd)]);try{const _0x5c1e40=this[_0x14a7d9(0x345)]['transformMutationsWithChangeset'](_0x27ad53,[EmptyMutationInfo]);if(isTransformMutationsWithChangesetSuccess(_0x5c1e40)){const {c1Prime:_0x2116a8}=_0x5c1e40;return this[_0x14a7d9(0x21e)](_0x2116a8),this;}throw _0x5c1e40[_0x14a7d9(0x1c8)];}catch(_0x48518f){return this[_0x14a7d9(0x11f)][_0x14a7d9(0x1c8)](_0x48518f),this[_0x14a7d9(0x1ba)](!0x1);}}['_onConflict'](_0xaf0574){var _0x7c05ba=_0x43e0c9;return this[_0x7c05ba(0x403)][_0x7c05ba(0x39f)](ConflictState,this[_0x7c05ba(0x442)],this['type'],null,[],this[_0x7c05ba(0x3bd)],_0xaf0574);}[_0x43e0c9(0x2b5)](){var _0x45466a=_0x43e0c9;throw new Error(_0x45466a(0x1c6));}['onRemoteRej'](){var _0x544756=_0x43e0c9;throw new Error(_0x544756(0x270));}[_0x43e0c9(0x32a)](){return this;}[_0x43e0c9(0x31c)](){var _0x3f0d34=_0x43e0c9;return this[_0x3f0d34(0x403)][_0x3f0d34(0x39f)](OfflineState,this[_0x3f0d34(0x442)],this[_0x3f0d34(0x3b0)],null,[],this[_0x3f0d34(0x3bd)]);}[_0x43e0c9(0x1e2)](){return this;}[_0x43e0c9(0x3ee)](){var _0xd80c9e=_0x43e0c9;throw new Error(_0xd80c9e(0x441));}[_0x43e0c9(0x26b)](){var _0x3ee3d3=_0x43e0c9;const _0x2ea5e4=this['_revisionService'][_0x3ee3d3(0x1c0)](this[_0x3ee3d3(0x442)]);return this['_handler']['onMissingChangesets']({'from':_0x2ea5e4,'to':0x0}),this['_injector'][_0x3ee3d3(0x39f)](FetchingMissState,this[_0x3ee3d3(0x442)],this[_0x3ee3d3(0x3b0)],null,[],null,[],this['_handler']);}},__name(_a6,_0x43e0c9(0x10f)),_a6);SyncedState=__decorateClass$d([__decorateParam$d(0x3,Inject(RevisionService)),__decorateParam$d(0x4,Inject(Injector)),__decorateParam$d(0x5,IUndoRedoService),__decorateParam$d(0x6,ICommandService),__decorateParam$d(0x7,ILogService),__decorateParam$d(0x8,ITransformService),__decorateParam$d(0x9,Optional(ILocalCacheService))],SyncedState);var _a7;let PendingState=(_a7=class extends CollaborationState{constructor(_0x75a533,_0x47ce3b,_0xef128d,_0x4af6d9,_0x3b399c,_0x2d3b58,_0x1889e0,_0x180ef4,_0x51f34c,_0x3fca1f,_0x577d9d,_0x51cc10,_0x9a5d5f,_0x3f417a){var _0x29dc9e=_0x43e0c9;super(_0x75a533,_0x47ce3b,null,_0xef128d,_0x4af6d9,_0x51f34c,_0x9a5d5f,_0x2d3b58,_0x3f417a),__publicField(this,_0x29dc9e(0x123),_0x29dc9e(0x2af)),__publicField(this,_0x29dc9e(0x192),null),__publicField(this,_0x29dc9e(0x32e),null),(this['_injector']=_0x3b399c,this[_0x29dc9e(0x252)]=_0x1889e0,this[_0x29dc9e(0x11f)]=_0x180ef4,this[_0x29dc9e(0x249)]=_0x3fca1f,this[_0x29dc9e(0x345)]=_0x577d9d,this[_0x29dc9e(0x330)]=_0x51cc10);}[_0x43e0c9(0x35f)](_0x13a8d7){var _0x15704e=_0x43e0c9;return this['_pendingMutations']['push'](_0x13a8d7),this[_0x15704e(0x3dc)](),this;}[_0x43e0c9(0x220)](_0x3ee2a6){var _0x5c79c0=_0x43e0c9;if(this['_checkMissing'](_0x3ee2a6))return this[_0x5c79c0(0x1a7)](),this[_0x5c79c0(0x403)][_0x5c79c0(0x39f)](FetchingMissState,this[_0x5c79c0(0x442)],this['type'],null,this['_pendingMutations'],null,[_0x3ee2a6],this['_handler']);try{const _0x4856bb=this[_0x5c79c0(0x345)]['transformMutationsWithChangeset'](_0x3ee2a6,this['_pendingMutations']);if(isTransformMutationsWithChangesetSuccess(_0x4856bb)){const {c1Prime:_0x182cde,m2Prime:_0x107595}=_0x4856bb;this['_executeRemoteChangeset'](_0x182cde);const _0x535d80=this[_0x5c79c0(0x403)][_0x5c79c0(0x39f)](PendingState,this[_0x5c79c0(0x442)],this[_0x5c79c0(0x3b0)],_0x107595,this[_0x5c79c0(0x3bd)]);this[_0x5c79c0(0x1a7)]();const _0x4f0639=new Date()['getTime'](),_0x2a92f6=this['_scheduleCompleteTimestamp']?Math[_0x5c79c0(0x2e9)](this[_0x5c79c0(0x192)]-_0x4f0639,0x0):this[_0x5c79c0(0x2e1)]();return _0x535d80[_0x5c79c0(0x1f9)](_0x2a92f6),_0x535d80;}throw _0x4856bb[_0x5c79c0(0x1c8)];}catch(_0x447903){return this[_0x5c79c0(0x11f)]['error'](_0x447903),this[_0x5c79c0(0x1ba)](!0x1);}}[_0x43e0c9(0x2b5)](){var _0x364946=_0x43e0c9;throw new Error(_0x364946(0x13d));}['onRemoteRej'](){var _0x9e299=_0x43e0c9;throw new Error(_0x9e299(0x236));}[_0x43e0c9(0x32a)](){return this;}[_0x43e0c9(0x31c)](){var _0x3d377d=_0x43e0c9;return this[_0x3d377d(0x1a7)](),this[_0x3d377d(0x403)][_0x3d377d(0x39f)](OfflineState,this[_0x3d377d(0x442)],this[_0x3d377d(0x3b0)],null,this['_pendingMutations'],this['_handler']);}[_0x43e0c9(0x1e2)](){return this;}[_0x43e0c9(0x1f9)](_0x3f3cdb){var _0xcda76d=_0x43e0c9;const _0x3913b2=_0x3f3cdb!=null?_0x3f3cdb:this[_0xcda76d(0x2e1)]();this['_scheduleCompleteTimestamp']=new Date()[_0xcda76d(0x230)]()+_0x3913b2,this[_0xcda76d(0x32e)]=setTimeout(()=>{var _0x5d0ca8=_0xcda76d;this['_clearScheduledTask']();let _0x5c5411=null;switch(this[_0x5d0ca8(0x3b0)]){case UniverType['UNIVER_SHEET']:{_0x5c5411=assembleSheetChangeset(this[_0x5d0ca8(0x1c5)],this[_0x5d0ca8(0x442)],this[_0x5d0ca8(0x330)],this[_0x5d0ca8(0x3c0)],this[_0x5d0ca8(0x252)]);break;}case UniverType['UNIVER_DOC']:{this['_pendingMutations'][_0x5d0ca8(0x291)](_0x33dd1f=>_0x33dd1f['id']===RichTextEditingMutation['id'])?_0x5c5411=assembleDocChangeset(this[_0x5d0ca8(0x1c5)],this[_0x5d0ca8(0x442)],this[_0x5d0ca8(0x330)],this[_0x5d0ca8(0x3c0)],this[_0x5d0ca8(0x252)]):_0x5c5411=assembleSheetChangeset(this[_0x5d0ca8(0x1c5)],this[_0x5d0ca8(0x442)],this['_univerInstanceService'],this[_0x5d0ca8(0x3c0)],this[_0x5d0ca8(0x252)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x5d0ca8(0x3b0)]+_0x5d0ca8(0x22a));}const {changeset:_0x7b110,pendingMutations:_0x256827}=_0x5c5411;this['_handler'][_0x5d0ca8(0x2dc)](_0x7b110);const _0x4f7814=_0x256827['length']?this['_injector'][_0x5d0ca8(0x39f)](AwaitingWithPendingState,this['unitID'],this['type'],_0x7b110,_0x256827,this[_0x5d0ca8(0x3bd)],void 0x0):this[_0x5d0ca8(0x403)][_0x5d0ca8(0x39f)](AwaitingState,this[_0x5d0ca8(0x442)],this[_0x5d0ca8(0x3b0)],_0x7b110,this[_0x5d0ca8(0x3bd)]);_0x4f7814[_0x5d0ca8(0x3dc)](),this[_0x5d0ca8(0x3bd)][_0x5d0ca8(0x358)](this,_0x4f7814);},_0x3913b2);}[_0x43e0c9(0x2e1)](){var _0x5134a2=_0x43e0c9,_0x1e9e3b;const _0x5b0e8f=this['_configService']['getConfig'](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x1e9e3b=_0x5b0e8f==null?void 0x0:_0x5b0e8f[_0x5134a2(0x1bb)])!=null?_0x1e9e3b:DEFAULT_SEND_CHANGESET_TIMEOUT;}['resend'](){var _0x55b895=_0x43e0c9;throw new Error(_0x55b895(0x2d8));}[_0x43e0c9(0x1a7)](){var _0x493d2a=_0x43e0c9;this[_0x493d2a(0x32e)]!=null&&(clearTimeout(this['_sendingTimer']),this[_0x493d2a(0x32e)]=null);}[_0x43e0c9(0x1ba)](_0x1de1c5){var _0x6413a3=_0x43e0c9;return this[_0x6413a3(0x1a7)](),this['_injector'][_0x6413a3(0x39f)](ConflictState,this['unitID'],this[_0x6413a3(0x3b0)],null,this['_pendingMutations'],this[_0x6413a3(0x3bd)],_0x1de1c5);}},__name(_a7,_0x43e0c9(0x241)),_a7);PendingState=__decorateClass$d([__decorateParam$d(0x4,Inject(Injector)),__decorateParam$d(0x5,Inject(RevisionService)),__decorateParam$d(0x6,Inject(MemberService)),__decorateParam$d(0x7,ILogService),__decorateParam$d(0x8,ICommandService),__decorateParam$d(0x9,IConfigService),__decorateParam$d(0xa,ITransformService),__decorateParam$d(0xb,IUniverInstanceService),__decorateParam$d(0xc,IUndoRedoService),__decorateParam$d(0xd,Optional(ILocalCacheService))],PendingState);var _a8;let AwaitingState=(_a8=class extends CollaborationState{constructor(_0x33435c,_0x278fe7,_0x15774d,_0x2101ce,_0xcde6e0,_0x2d9492,_0x5424e7,_0x3c0712,_0xba50a2,_0x86ee3a,_0x35e3c2){var _0x5cc60b=_0x43e0c9;super(_0x33435c,_0x278fe7,_0x15774d,[],_0x2101ce,_0x5424e7,_0x86ee3a,_0x2d9492,_0x35e3c2),__publicField(this,_0x5cc60b(0x123),_0x5cc60b(0x3a7)),__publicField(this,_0x5cc60b(0x1f5),0x0),__publicField(this,_0x5cc60b(0x2bf)),__publicField(this,_0x5cc60b(0x405)),(this[_0x5cc60b(0x403)]=_0xcde6e0,this[_0x5cc60b(0x11f)]=_0x3c0712,this[_0x5cc60b(0x345)]=_0xba50a2);}['appendMutation'](_0x196126){var _0x1d5645=_0x43e0c9;this[_0x1d5645(0x1a7)]();const _0x1a8907=this[_0x1d5645(0x403)][_0x1d5645(0x39f)](AwaitingWithPendingState,this[_0x1d5645(0x442)],this[_0x1d5645(0x3b0)],this['_awaitingChangeset'],[_0x196126],this[_0x1d5645(0x3bd)],this[_0x1d5645(0x2bf)]);return _0x1a8907[_0x1d5645(0x3dc)](),_0x1a8907;}[_0x43e0c9(0x220)](_0x2e8572){var _0x35702c=_0x43e0c9;if(this[_0x35702c(0x194)](_0x2e8572))return this[_0x35702c(0x1a7)](),this[_0x35702c(0x403)][_0x35702c(0x39f)](FetchingMissState,this[_0x35702c(0x442)],this[_0x35702c(0x3b0)],this[_0x35702c(0x20d)],[],null,[_0x2e8572],this[_0x35702c(0x3bd)]);try{const _0x3cfb08=this[_0x35702c(0x345)]['transformChangesets']([_0x2e8572],[this['_awaitingChangeset']],!0x1);if(isTransformChangesetsSuccess(_0x3cfb08)){const {c1Prime:_0x6e52a3,c2Prime:_0x1e059c}=_0x3cfb08;this[_0x35702c(0x21e)](_0x6e52a3[0x0]),_0x1e059c[0x0][_0x35702c(0x191)]=this['_getCurrentRevision'](),this[_0x35702c(0x1a7)]();const _0x178ab1=this[_0x35702c(0x403)][_0x35702c(0x39f)](AwaitingState,this[_0x35702c(0x442)],this[_0x35702c(0x3b0)],_0x1e059c[0x0],this[_0x35702c(0x3bd)]);return _0x178ab1[_0x35702c(0x3dc)](),_0x178ab1;}return this[_0x35702c(0x1ba)](!0x1);}catch(_0x118de7){return this[_0x35702c(0x11f)][_0x35702c(0x1c8)](_0x118de7),this[_0x35702c(0x1ba)](!0x1);}}[_0x43e0c9(0x2b5)](_0x3fd6ed){var _0x5540ba=_0x43e0c9;this[_0x5540ba(0x1a7)]();const _0x201ba0=this[_0x5540ba(0x3c0)][_0x5540ba(0x1c0)](this[_0x5540ba(0x442)]);if(_0x3fd6ed[_0x5540ba(0x267)]<_0x201ba0-0x1)return this;if(this[_0x5540ba(0x194)](_0x3fd6ed))return this[_0x5540ba(0x403)][_0x5540ba(0x39f)](FetchingMissState,this['unitID'],this[_0x5540ba(0x3b0)],null,[],this['_awaitingChangeset'],[],this[_0x5540ba(0x3bd)]);this[_0x5540ba(0x40a)]();const _0x4ed103=this[_0x5540ba(0x403)][_0x5540ba(0x39f)](SyncedState,this[_0x5540ba(0x442)],this[_0x5540ba(0x3b0)],this[_0x5540ba(0x3bd)]);return _0x4ed103[_0x5540ba(0x3dc)](),_0x4ed103;}[_0x43e0c9(0x273)](_0x1e3039){var _0x3df846=_0x43e0c9;return this[_0x3df846(0x1ba)](!!(_0x1e3039!=null&&_0x1e3039[_0x3df846(0x24a)]));}[_0x43e0c9(0x32a)](_0x3df99b){var _0x390500=_0x43e0c9;return this[_0x390500(0x1f5)]>MAX_RETRY_TIMEOUT?this[_0x390500(0x31c)]():(this[_0x390500(0x2bf)]=createTimerObservable$(this[_0x390500(0x1f5)],{'timeout':this[_0x390500(0x1f5)],'reqId':_0x3df99b[_0x390500(0x185)]}),this[_0x390500(0x405)]=this[_0x390500(0x2bf)][_0x390500(0x352)](({reqId:_0x4e30ae,timeout:_0x8d8937})=>{var _0x38c2dc=_0x390500;this[_0x38c2dc(0x3a1)](_0x4e30ae,_0x8d8937);}),this);}['toggleOffline'](){var _0x26df40=_0x43e0c9;return this[_0x26df40(0x1a7)](),this[_0x26df40(0x403)][_0x26df40(0x39f)](OfflineState,this[_0x26df40(0x442)],this[_0x26df40(0x3b0)],this[_0x26df40(0x20d)],[],this['_handler']);}['toggleOnline'](){return this;}[_0x43e0c9(0x3ee)](){var _0x2527cd=_0x43e0c9;this[_0x2527cd(0x3bd)][_0x2527cd(0x2dc)](this[_0x2527cd(0x20d)]);}['_onConflict'](_0xdedcba){var _0x41cff1=_0x43e0c9;return this[_0x41cff1(0x1a7)](),this[_0x41cff1(0x403)]['createInstance'](ConflictState,this[_0x41cff1(0x442)],this[_0x41cff1(0x3b0)],this[_0x41cff1(0x20d)],[],this[_0x41cff1(0x3bd)],_0xdedcba);}[_0x43e0c9(0x3a1)](_0x4d682f,_0xa2cce1){var _0x493ae9=_0x43e0c9,_0x45a3c9;_0x4d682f===((_0x45a3c9=this['_awaitingChangeset'])==null?void 0x0:_0x45a3c9['reqId'])&&(this[_0x493ae9(0x3ee)](),this[_0x493ae9(0x1f5)]=_0xa2cce1===0x0?0x3e8:_0xa2cce1*0x2);}[_0x43e0c9(0x1a7)](){var _0x58d109=_0x43e0c9,_0x315224;(_0x315224=this['_sender'])==null||_0x315224[_0x58d109(0x11c)](),this[_0x58d109(0x1f5)]=0x0;}},__name(_a8,'AwaitingState'),_a8);AwaitingState=__decorateClass$d([__decorateParam$d(0x4,Inject(Injector)),__decorateParam$d(0x5,Inject(RevisionService)),__decorateParam$d(0x6,ICommandService),__decorateParam$d(0x7,ILogService),__decorateParam$d(0x8,ITransformService),__decorateParam$d(0x9,IUndoRedoService),__decorateParam$d(0xa,Optional(ILocalCacheService))],AwaitingState);var _a9;let AwaitingWithPendingState=(_a9=class extends CollaborationState{constructor(_0x3c7796,_0x577e17,_0x1bc379,_0x42571d,_0x219b33,_0x434944,_0x102c31,_0x3a6e6d,_0x550cf4,_0x348916,_0x2478e0,_0x5c2522,_0x35e16f){var _0x2af873=_0x43e0c9;super(_0x3c7796,_0x577e17,_0x1bc379,_0x42571d,_0x219b33,_0x550cf4,_0x5c2522,_0x3a6e6d,_0x35e16f),__publicField(this,'status',_0x2af873(0x22c)),__publicField(this,'_resendTimeout',0x0),__publicField(this,_0x2af873(0x2bf)),__publicField(this,_0x2af873(0x405)),(this[_0x2af873(0x403)]=_0x102c31,this['_logService']=_0x348916,this[_0x2af873(0x345)]=_0x2478e0,this[_0x2af873(0x284)]=_0x35e16f,_0x434944&&(this[_0x2af873(0x2bf)]=_0x434944,this[_0x2af873(0x405)]=this[_0x2af873(0x2bf)]['subscribe'](({reqId:_0x278785,timeout:_0x36d045})=>{this['_resendWithTimeout'](_0x278785,_0x36d045);})));}['appendMutation'](_0x2ead80){var _0x343af4=_0x43e0c9;return this['_pendingMutations'][_0x343af4(0x119)](_0x2ead80),this;}['onRemoteChangeset'](_0x31332c){var _0x24f3d9=_0x43e0c9;if(this[_0x24f3d9(0x194)](_0x31332c))return this[_0x24f3d9(0x1a7)](),this['_injector'][_0x24f3d9(0x39f)](FetchingMissState,this[_0x24f3d9(0x442)],this[_0x24f3d9(0x3b0)],this[_0x24f3d9(0x20d)],this[_0x24f3d9(0x1c5)],null,[_0x31332c],this['_handler']);try{const _0x46bde5=this[_0x24f3d9(0x345)]['transformChangesets']([_0x31332c],[this[_0x24f3d9(0x20d)]],!0x1);if(isTransformChangesetsSuccess(_0x46bde5)){const {c1Prime:_0x4135c2,c2Prime:_0xcfbf54}=_0x46bde5,_0x471caf=this['_transformService'][_0x24f3d9(0x346)](_0x4135c2[0x0],this['_pendingMutations']);if(isTransformMutationsWithChangesetSuccess(_0x471caf)){const {c1Prime:_0x4f2e6a,m2Prime:_0x297c30}=_0x471caf;return this['_executeRemoteChangeset'](_0x4f2e6a),_0xcfbf54[0x0]['baseRev']=this[_0x24f3d9(0x13e)](),this[_0x24f3d9(0x1a7)](),this[_0x24f3d9(0x403)][_0x24f3d9(0x39f)](AwaitingWithPendingState,this[_0x24f3d9(0x442)],this['type'],_0xcfbf54[0x0],_0x297c30,this[_0x24f3d9(0x3bd)],void 0x0);}throw _0x471caf[_0x24f3d9(0x1c8)];}throw _0x46bde5[_0x24f3d9(0x1c8)];}catch(_0x55925a){return this[_0x24f3d9(0x11f)]['error'](_0x55925a),this['_onConflict'](!0x1);}}[_0x43e0c9(0x2b5)](_0x5ecea3){var _0x1bc3f8=_0x43e0c9;if(this[_0x1bc3f8(0x1a7)](),this['_checkMissing'](_0x5ecea3))return this[_0x1bc3f8(0x403)][_0x1bc3f8(0x39f)](FetchingMissState,this[_0x1bc3f8(0x442)],this[_0x1bc3f8(0x3b0)],null,this[_0x1bc3f8(0x1c5)],this[_0x1bc3f8(0x20d)],[],this[_0x1bc3f8(0x3bd)]);this[_0x1bc3f8(0x40a)]();const _0x267e43=this[_0x1bc3f8(0x403)][_0x1bc3f8(0x39f)](PendingState,this[_0x1bc3f8(0x442)],this[_0x1bc3f8(0x3b0)],this['_pendingMutations'],this[_0x1bc3f8(0x3bd)]);return _0x267e43[_0x1bc3f8(0x1f9)](),_0x267e43[_0x1bc3f8(0x3dc)](),_0x267e43;}[_0x43e0c9(0x273)](_0x11453b){return this['_onConflict'](!!(_0x11453b!=null&&_0x11453b['isPermissionRej']));}[_0x43e0c9(0x32a)](_0x2f03ed){var _0x1c390f=_0x43e0c9;return this[_0x1c390f(0x1f5)]>MAX_RETRY_TIMEOUT?this[_0x1c390f(0x31c)]():(this[_0x1c390f(0x2bf)]=createTimerObservable$(this[_0x1c390f(0x1f5)],{'timeout':this[_0x1c390f(0x1f5)],'reqId':_0x2f03ed[_0x1c390f(0x185)]}),this['_sender']=this[_0x1c390f(0x2bf)][_0x1c390f(0x352)](({reqId:_0x20b060,timeout:_0x268e3f})=>{this['_resendWithTimeout'](_0x20b060,_0x268e3f);}),this);}[_0x43e0c9(0x31c)](){var _0x54e823=_0x43e0c9;return this[_0x54e823(0x1a7)](),this[_0x54e823(0x403)][_0x54e823(0x39f)](OfflineState,this[_0x54e823(0x442)],this[_0x54e823(0x3b0)],this[_0x54e823(0x20d)],this[_0x54e823(0x1c5)],this[_0x54e823(0x3bd)]);}[_0x43e0c9(0x1e2)](){return this;}[_0x43e0c9(0x3ee)](){var _0x510bbf=_0x43e0c9;this[_0x510bbf(0x3bd)][_0x510bbf(0x2dc)](this[_0x510bbf(0x20d)]);}['_onConflict'](_0x22a440){var _0x1de77c=_0x43e0c9;return this['_clearScheduledTask'](),this['_injector']['createInstance'](ConflictState,this[_0x1de77c(0x442)],this['type'],null,this[_0x1de77c(0x1c5)],this[_0x1de77c(0x3bd)],_0x22a440);}[_0x43e0c9(0x3a1)](_0xa253ec,_0x35f70e){var _0x4151b0=_0x43e0c9,_0x5c50cb;_0xa253ec===((_0x5c50cb=this[_0x4151b0(0x20d)])==null?void 0x0:_0x5c50cb[_0x4151b0(0x185)])&&(this[_0x4151b0(0x3ee)](),this['_resendTimeout']=_0x35f70e===0x0?0x3e8:_0x35f70e*0x2);}[_0x43e0c9(0x1a7)](){var _0x172818=_0x43e0c9,_0x5d92c7;(_0x5d92c7=this[_0x172818(0x405)])==null||_0x5d92c7['unsubscribe'](),this[_0x172818(0x1f5)]=0x0;}},__name(_a9,_0x43e0c9(0x1fc)),_a9);AwaitingWithPendingState=__decorateClass$d([__decorateParam$d(0x6,Inject(Injector)),__decorateParam$d(0x7,Inject(RevisionService)),__decorateParam$d(0x8,ICommandService),__decorateParam$d(0x9,ILogService),__decorateParam$d(0xa,ITransformService),__decorateParam$d(0xb,IUndoRedoService),__decorateParam$d(0xc,Optional(ILocalCacheService))],AwaitingWithPendingState);var _a10;let ConflictState=(_a10=class extends CollaborationState{constructor(_0x26c81d,_0x9f1cf6,_0x5e9cfd,_0x36c3f6,_0x55b4e6,_0x12e7e9=!0x1,_0x30b9d1,_0x46fbbc,_0x2a7b34,_0x57f80b,_0x4f814d,_0x4ab292,_0x5adada){var _0x523690=_0x43e0c9;super(_0x26c81d,_0x9f1cf6,_0x5e9cfd,_0x36c3f6,_0x55b4e6,_0x46fbbc,_0x2a7b34,_0x57f80b,_0x5adada),__publicField(this,_0x523690(0x123),'conflict'),(this['_isPermissionRej']=_0x12e7e9,this[_0x523690(0x159)]=_0x30b9d1,this[_0x523690(0x3dd)]=_0x4f814d,this[_0x523690(0x127)]=_0x4ab292,this['localCacheService']=_0x5adada,this[_0x523690(0x3de)](),this[_0x523690(0x3a6)](),this['_disableEditing']());}['appendMutation'](){return this;}[_0x43e0c9(0x220)](){return this;}[_0x43e0c9(0x2b5)](){return this;}[_0x43e0c9(0x273)](){return this;}[_0x43e0c9(0x32a)](){return this;}['toggleOffline'](){return this;}['toggleOnline'](){return this;}[_0x43e0c9(0x3ee)](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x43e0c9(0x3a6)](){var _0x4fb550=_0x43e0c9,_0x3b3448;(_0x3b3448=this[_0x4fb550(0x289)])==null||_0x3b3448[_0x4fb550(0x2fd)](this[_0x4fb550(0x442)],this[_0x4fb550(0x3b0)],null,[]);}[_0x43e0c9(0x3de)](){var _0x2adef1=_0x43e0c9;this[_0x2adef1(0x1c7)]?this['_collaborationUIEventService'][_0x2adef1(0x43a)]({'id':CollaborationUIEventId['PERMISSION_DENIED']}):this['_collaborationUIEventService'][_0x2adef1(0x43a)]({'id':CollaborationUIEventId[_0x2adef1(0x2a0)]});}[_0x43e0c9(0x35c)](){var _0x55a82c=_0x43e0c9;this[_0x55a82c(0x159)]['updatePermissionPoint'](new WorkbookEditablePermission(this[_0x55a82c(0x442)])['id'],!0x1);}},__name(_a10,_0x43e0c9(0x2b3)),_a10);ConflictState=__decorateClass$d([__decorateParam$d(0x6,Inject(IPermissionService)),__decorateParam$d(0x7,ICommandService),__decorateParam$d(0x8,IUndoRedoService),__decorateParam$d(0x9,Inject(RevisionService)),__decorateParam$d(0xa,Inject(LocaleService)),__decorateParam$d(0xb,Inject(CollaborationUIEventService)),__decorateParam$d(0xc,Optional(ILocalCacheService))],ConflictState);var _a11;let OfflineState=(_a11=class extends CollaborationState{constructor(_0x586788,_0x3ce1cb,_0x2f04bd,_0x2951fa,_0xfcfae9,_0x3a72d5,_0x59ade1,_0x4d9ab6,_0x2fe44e,_0x40a541){var _0x590a72=_0x43e0c9;super(_0x586788,_0x3ce1cb,_0x2f04bd,_0x2951fa,_0xfcfae9,_0x4d9ab6,_0x2fe44e,_0x59ade1,_0x40a541),__publicField(this,_0x590a72(0x123),_0x590a72(0x2c8)),this[_0x590a72(0x403)]=_0x3a72d5;}['appendMutation'](_0x590483){var _0x4b9e49=_0x43e0c9;return this['_pendingMutations'][_0x4b9e49(0x119)](_0x590483),this['_updateLocalCache'](),this;}[_0x43e0c9(0x220)](_0x142b92){throw new Error('[OfflineState]:\x20received\x20changeset.');}[_0x43e0c9(0x2b5)](){var _0x21a461=_0x43e0c9;throw new Error(_0x21a461(0x3ac));}['onRemoteRej'](){var _0x2c4974=_0x43e0c9;throw new Error(_0x2c4974(0x1a0));}['onRemoteRetry'](){return this;}[_0x43e0c9(0x31c)](){return this;}['toggleOnline'](){var _0x114c10=_0x43e0c9;const {_injector:_0x2bfad5,_pendingMutations:_0x4cd98f,_awaitingChangeset:_0x3a815a,unitID:_0x2400a8,_handler:_0x5131b5,type:_0x5e1fa1}=this,_0x22a25c=createOnlineState(_0x2bfad5,_0x2400a8,_0x5e1fa1,_0x3a815a,_0x4cd98f,_0x5131b5);return _0x22a25c instanceof PendingState?_0x22a25c[_0x114c10(0x1f9)]():(_0x22a25c instanceof AwaitingWithPendingState||_0x22a25c instanceof AwaitingState)&&_0x22a25c['resend'](),_0x22a25c;}['resend'](){var _0x16e566=_0x43e0c9;throw new Error(_0x16e566(0x3da));}},__name(_a11,_0x43e0c9(0x244)),_a11);OfflineState=__decorateClass$d([__decorateParam$d(0x5,Inject(Injector)),__decorateParam$d(0x6,Inject(RevisionService)),__decorateParam$d(0x7,ICommandService),__decorateParam$d(0x8,IUndoRedoService),__decorateParam$d(0x9,Optional(ILocalCacheService))],OfflineState);var _a12;let FetchingMissState=(_a12=class extends CollaborationState{constructor(_0x713333,_0x5bc442,_0x45374e,_0x3ab25d,_0x365bca,_0x45a121,_0x28cf6c,_0x3a7d29,_0x1948f2,_0x10797c,_0x552fa9,_0x13a353,_0x53aaf6,_0x1fbf44){var _0x23e68e=_0x43e0c9;super(_0x713333,_0x5bc442,_0x45374e,_0x3ab25d,_0x28cf6c,_0x552fa9,_0x13a353,_0x1948f2,_0x1fbf44),__publicField(this,'status',_0x23e68e(0x3e6)),(this[_0x23e68e(0x2da)]=_0x365bca,this[_0x23e68e(0x2bc)]=_0x45a121,this[_0x23e68e(0x403)]=_0x3a7d29,this[_0x23e68e(0x11f)]=_0x10797c,this[_0x23e68e(0x345)]=_0x53aaf6,this[_0x23e68e(0x284)]=_0x1fbf44);}[_0x43e0c9(0x1a5)](_0x4eef64){var _0x244d1e=_0x43e0c9;try{const _0x284eeb=[..._0x4eef64,...this[_0x244d1e(0x2bc)]],_0x4642ce=[this[_0x244d1e(0x20d)]||this['_acknowledgedAwaitingChangeset']][_0x244d1e(0x140)](_0x1781f4=>!!_0x1781f4);let _0x23bb06,_0x47ac2c;if(_0x4642ce[_0x244d1e(0x233)]){const _0x23ed06=this[_0x244d1e(0x345)][_0x244d1e(0x398)](_0x284eeb,_0x4642ce,!0x1);if(!isTransformChangesetsSuccess(_0x23ed06))throw _0x23ed06['error'];_0x23bb06=_0x23ed06[_0x244d1e(0x1ef)],_0x47ac2c=_0x23ed06['c2Prime'];}else _0x23bb06=_0x284eeb,_0x47ac2c=[];let _0x329888=this[_0x244d1e(0x1c5)];_0x23bb06[_0x244d1e(0x392)](_0x20a4d2=>{var _0x148829=_0x244d1e;let _0x32ed3e;if(_0x329888[_0x148829(0x233)]){const _0x1e06f5=this[_0x148829(0x345)][_0x148829(0x346)](_0x20a4d2,_0x329888);if(!isTransformMutationsWithChangesetSuccess(_0x1e06f5))throw _0x1e06f5['error'];_0x32ed3e=_0x1e06f5['c1Prime'],_0x329888=_0x1e06f5[_0x148829(0xfa)];}else _0x32ed3e=_0x20a4d2;this[_0x148829(0x21e)](_0x32ed3e);}),this['_acknowledgedAwaitingChangeset']&&this[_0x244d1e(0x40a)](),this['_awaitingChangeset']&&_0x47ac2c['length']&&(_0x47ac2c[0x0]['baseRev']=this[_0x244d1e(0x13e)]());let _0x59c3a9;if(this[_0x244d1e(0x20d)]&&_0x329888['length']!==0x0)_0x59c3a9=this[_0x244d1e(0x403)][_0x244d1e(0x39f)](AwaitingWithPendingState,this[_0x244d1e(0x442)],this['type'],_0x47ac2c[0x0],_0x329888,this[_0x244d1e(0x3bd)],void 0x0);else{if(this[_0x244d1e(0x20d)]&&_0x329888['length']===0x0)_0x47ac2c[0x0][_0x244d1e(0x191)]=this[_0x244d1e(0x13e)](),_0x59c3a9=this[_0x244d1e(0x403)]['createInstance'](AwaitingState,this[_0x244d1e(0x442)],this['type'],_0x47ac2c[0x0],this[_0x244d1e(0x3bd)]);else{if(_0x329888[_0x244d1e(0x233)]!==0x0){const _0x118af6=this[_0x244d1e(0x403)][_0x244d1e(0x39f)](PendingState,this[_0x244d1e(0x442)],this['type'],_0x329888,this[_0x244d1e(0x3bd)]);_0x118af6['_schedule'](),_0x59c3a9=_0x118af6;}else _0x59c3a9=this[_0x244d1e(0x403)][_0x244d1e(0x39f)](SyncedState,this[_0x244d1e(0x442)],this[_0x244d1e(0x3b0)],this['_handler']);}}return _0x59c3a9[_0x244d1e(0x3dc)](),_0x59c3a9;}catch(_0x3b7ab9){return this[_0x244d1e(0x11f)][_0x244d1e(0x1c8)](_0x244d1e(0x102),_0x244d1e(0x19b),_0x3b7ab9),this[_0x244d1e(0x403)][_0x244d1e(0x39f)](ConflictState,this[_0x244d1e(0x442)],this[_0x244d1e(0x3b0)],this[_0x244d1e(0x20d)],this['_pendingMutations'],this[_0x244d1e(0x3bd)],!0x1);}}[_0x43e0c9(0x3ee)](){var _0x3a8001=_0x43e0c9;throw new Error(_0x3a8001(0x1e9));}[_0x43e0c9(0x35f)](_0x3b57c7){var _0x151837=_0x43e0c9;return this[_0x151837(0x1c5)][_0x151837(0x119)](_0x3b57c7),this;}['onRemoteChangeset'](_0x511327){var _0x1d0d1b=_0x43e0c9;return this['_queuedRemoteChangesets'][_0x1d0d1b(0x119)](_0x511327),this;}[_0x43e0c9(0x2b5)](_0xb51bd8){var _0x51f3fc=_0x43e0c9;if(this[_0x51f3fc(0x20d)])return this['_acknowledgedAwaitingChangeset']=this[_0x51f3fc(0x20d)],this['_awaitingChangeset']=null,this;throw new Error(_0x51f3fc(0xfb));}['onRemoteRej'](_0x56cbd1){var _0xc625f2=_0x43e0c9;return this['_onConflict'](!!(_0x56cbd1!=null&&_0x56cbd1[_0xc625f2(0x24a)]));}[_0x43e0c9(0x32a)](){return this;}[_0x43e0c9(0x31c)](){var _0x572313=_0x43e0c9;return this[_0x572313(0x403)][_0x572313(0x39f)](OfflineState,this[_0x572313(0x442)],this[_0x572313(0x3b0)],this[_0x572313(0x20d)],this[_0x572313(0x1c5)],this[_0x572313(0x3bd)]);}['toggleOnline'](){return this;}['_onConflict'](_0x1761c4){var _0x255262=_0x43e0c9;return this[_0x255262(0x403)]['createInstance'](ConflictState,this['unitID'],this[_0x255262(0x3b0)],this[_0x255262(0x20d)],this[_0x255262(0x1c5)],this[_0x255262(0x3bd)],_0x1761c4);}},__name(_a12,_0x43e0c9(0x2b4)),_a12);FetchingMissState=__decorateClass$d([__decorateParam$d(0x7,Inject(Injector)),__decorateParam$d(0x8,Inject(RevisionService)),__decorateParam$d(0x9,ILogService),__decorateParam$d(0xa,ICommandService),__decorateParam$d(0xb,IUndoRedoService),__decorateParam$d(0xc,ITransformService),__decorateParam$d(0xd,Optional(ILocalCacheService))],FetchingMissState);function createOnlineState(_0x237123,_0x12dc0,_0x58cae7,_0x5bc835,_0x579e69,_0x33cef3){var _0x28f223=_0x43e0c9;return _0x5bc835&&_0x579e69[_0x28f223(0x233)]?_0x237123[_0x28f223(0x39f)](AwaitingWithPendingState,_0x12dc0,_0x58cae7,_0x5bc835,_0x579e69,_0x33cef3,void 0x0):_0x5bc835?_0x237123[_0x28f223(0x39f)](AwaitingState,_0x12dc0,_0x58cae7,_0x5bc835,_0x33cef3):_0x579e69[_0x28f223(0x233)]?_0x237123[_0x28f223(0x39f)](PendingState,_0x12dc0,_0x58cae7,_0x579e69,_0x33cef3):_0x237123[_0x28f223(0x39f)](SyncedState,_0x12dc0,_0x58cae7,_0x33cef3);}__name(createOnlineState,_0x43e0c9(0x401));var __defProp$c=Object['defineProperty'],__getOwnPropDesc$c=Object[_0x43e0c9(0x33e)],__decorateClass$c=__name((_0x219cdc,_0x5d4243,_0xeccfa2,_0x396766)=>{var _0x327cc2=_0x43e0c9;for(var _0x27db5d=_0x396766>0x1?void 0x0:_0x396766?__getOwnPropDesc$c(_0x5d4243,_0xeccfa2):_0x5d4243,_0x52f153=_0x219cdc[_0x327cc2(0x233)]-0x1,_0x123e08;_0x52f153>=0x0;_0x52f153--)(_0x123e08=_0x219cdc[_0x52f153])&&(_0x27db5d=(_0x396766?_0x123e08(_0x5d4243,_0xeccfa2,_0x27db5d):_0x123e08(_0x27db5d))||_0x27db5d);return _0x396766&&_0x27db5d&&__defProp$c(_0x5d4243,_0xeccfa2,_0x27db5d),_0x27db5d;},_0x43e0c9(0x373)),__decorateParam$c=__name((_0x38fc03,_0x5476d1)=>(_0x8d4860,_0x47d2bf)=>_0x5476d1(_0x8d4860,_0x47d2bf,_0x38fc03),_0x43e0c9(0x305)),_a13;let CollaborationEntity=(_a13=class extends RxDisposable{constructor(_0x268f04,_0x10e3c5,_0x1cd8ce,_0x2cc734,_0x24d34d,_0x289473,_0x9dcd27,_0x36db77,_0xfe2288,_0x483ffd,_0x408c91,_0x27ce9f,_0x5a08a9){var _0x2bd8f5=_0x43e0c9;super(),__publicField(this,_0x2bd8f5(0x1df),new BehaviorSubject(null)),__publicField(this,_0x2bd8f5(0xfd),this[_0x2bd8f5(0x1df)][_0x2bd8f5(0x37f)]()),__publicField(this,_0x2bd8f5(0x290)),__publicField(this,_0x2bd8f5(0x125),!0x1),__publicField(this,_0x2bd8f5(0x2c1),''),__publicField(this,_0x2bd8f5(0x1c3),0x0),__publicField(this,_0x2bd8f5(0x26a),this[_0x2bd8f5(0xfd)]['pipe'](_0x14d6b6(_0x1bf4c3=>_0x1bf4c3?_0x1bf4c3['status']:CollaborationStatus[_0x2bd8f5(0x2be)]),shareReplay(0x1))),__publicField(this,_0x2bd8f5(0x340),!0x1),__publicField(this,'_remoteChangesetQueue',[]),(this[_0x2bd8f5(0x442)]=_0x268f04,this[_0x2bd8f5(0x39d)]=_0x10e3c5,this[_0x2bd8f5(0x203)]=_0x1cd8ce,this[_0x2bd8f5(0x403)]=_0x2cc734,this[_0x2bd8f5(0x16a)]=_0x24d34d,this[_0x2bd8f5(0x3dd)]=_0x289473,this[_0x2bd8f5(0x3c0)]=_0x9dcd27,this['_eventService']=_0x36db77,this[_0x2bd8f5(0x11f)]=_0xfe2288,this['_commandService']=_0x483ffd,this['_permissionService']=_0x408c91,this[_0x2bd8f5(0x1b5)]=_0x27ce9f,this[_0x2bd8f5(0x289)]=_0x5a08a9);}get[_0x43e0c9(0x336)](){var _0x4e5b27=_0x43e0c9;return this[_0x4e5b27(0x290)];}async[_0x43e0c9(0x21c)](){var _0x1e54e4=_0x43e0c9;if(this[_0x1e54e4(0x336)])throw new Error(_0x1e54e4(0x1d4));await this[_0x1e54e4(0x19e)]();}[_0x43e0c9(0x1cf)](){var _0x54a9f5=_0x43e0c9;return this[_0x54a9f5(0x125)]=!0x0,toDisposable(()=>{var _0x3addae=_0x54a9f5;this[_0x3addae(0x125)]=!0x1,this[_0x3addae(0x380)]();});}[_0x43e0c9(0x2c5)](_0x111e33){var _0x325721=_0x43e0c9;this[_0x325721(0x1cc)](_0x111e33);}[_0x43e0c9(0x3ca)](_0x49e831){var _0xea6817=_0x43e0c9;this[_0xea6817(0x290)]=_0x49e831,this['_state$'][_0xea6817(0x2e5)](_0x49e831);}async[_0x43e0c9(0x19e)](){var _0x1ef899=_0x43e0c9,_0x547d55;this[_0x1ef899(0x3ca)](await this[_0x1ef899(0x15e)]()),this['_singleActiveUnitService']&&((_0x547d55=this[_0x1ef899(0x1b5)])==null||_0x547d55['editingUnit'](this[_0x1ef899(0x442)]),this['disposeWithMe'](this[_0x1ef899(0x1b5)]['getUnitStatus$'](this[_0x1ef899(0x442)])['subscribe'](_0x1d7fe8=>{var _0x1b14cc=_0x1ef899;this[_0x1b14cc(0x11f)]['debug'](_0x1b14cc(0xf8),_0x1b14cc(0x35d),_0x1d7fe8),_0x1d7fe8===UnitStatus[_0x1b14cc(0x350)]?(this[_0x1b14cc(0x420)][_0x1b14cc(0x43a)]({'id':CollaborationUIEventId['OTHER_CLIENT_EDITING']}),this[_0x1b14cc(0x159)][_0x1b14cc(0x10b)](new WorkbookEditablePermission(this[_0x1b14cc(0x442)])['id'],!0x1),this[_0x1b14cc(0x159)][_0x1b14cc(0x413)](!0x1)):(this['_permissionService'][_0x1b14cc(0x10b)](new WorkbookEditablePermission(this['unitID'])['id'],!0x0),this['_permissionService']['setShowComponents'](!0x0));})));let _0x21aa71=!0x1;return this[_0x1ef899(0x18f)](this[_0x1ef899(0x39d)][_0x1ef899(0x27c)]['subscribe'](_0x354de0=>{var _0x284b0b=_0x1ef899;_0x354de0===SessionStatus[_0x284b0b(0x310)]?this[_0x284b0b(0x25e)](_0x21aa71):_0x354de0===SessionStatus[_0x284b0b(0x2be)]&&(_0x21aa71=!0x0,this[_0x284b0b(0x151)]());})),this[_0x1ef899(0x18f)](this[_0x1ef899(0x39d)]['event$'][_0x1ef899(0x352)](_0x34229a=>{var _0x574f12=_0x1ef899;try{switch(_0x34229a[_0x574f12(0x25d)]){case CollaborationEvent['NEW_CHANGESETS']:{this[_0x574f12(0x213)](parseProtocolChangeset(_0x34229a[_0x574f12(0x14c)]));break;}case CollaborationEvent[_0x574f12(0x24c)]:{this[_0x574f12(0x12b)](_0x34229a[_0x574f12(0x14c)]);break;}case CollaborationEvent[_0x574f12(0x26d)]:{this[_0x574f12(0x188)]();break;}case CollaborationEvent[_0x574f12(0x1b0)]:{this[_0x574f12(0x406)](_0x34229a['data']);break;}case CollaborationEvent[_0x574f12(0x28d)]:{this[_0x574f12(0x22e)](_0x34229a[_0x574f12(0x14c)]['changesets'][_0x574f12(0x12e)](_0x33879=>parseProtocolChangeset(_0x33879)));break;}case CollaborationEvent[_0x574f12(0x3db)]:{this[_0x574f12(0x188)]({'isPermissionRej':!0x0});break;}case CollaborationEvent['UNISCRIPT_RUN']:break;}}catch(_0x2c07a4){throw console[_0x574f12(0x1c8)](_0x574f12(0x293),_0x2c07a4),_0x2c07a4;}})),this['_state'];}[_0x43e0c9(0x256)](){var _0xf2503e=_0x43e0c9;this[_0xf2503e(0x340)]=!0x1;}['_lockTransition'](){var _0x39b661=_0x43e0c9;if(this[_0x39b661(0x340)])throw new Error('[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.');this[_0x39b661(0x340)]=!0x0;}[_0x43e0c9(0x1cc)](_0x44763b){var _0x2a24a3=_0x43e0c9;this[_0x2a24a3(0x3b4)](),this[_0x2a24a3(0x3ca)](this[_0x2a24a3(0x290)][_0x2a24a3(0x35f)](_0x44763b)),this['_unlockTransition']();}[_0x43e0c9(0x213)](_0x413997){var _0x2cfa95=_0x43e0c9;if(!(_0x413997[_0x2cfa95(0x267)]<=this[_0x2cfa95(0x3c0)][_0x2cfa95(0x1c0)](this[_0x2cfa95(0x442)]))){if(this[_0x2cfa95(0x125)]){this['_remoteChangesetQueue']['push'](_0x413997);return;}this[_0x2cfa95(0x298)](_0x413997);}}['_exhaustRemoteChangesetQueue'](){var _0x257fdc=_0x43e0c9;this[_0x257fdc(0x1fa)]['forEach'](_0x200634=>this[_0x257fdc(0x298)](_0x200634)),this[_0x257fdc(0x1fa)]=[];}['_applyRemoteChangeset'](_0x43dbb5){var _0x520f87=_0x43e0c9;const _0x4dabd5=this[_0x520f87(0x16a)]['interceptor'][_0x520f87(0x308)](this[_0x520f87(0x16a)]['interceptor']['getInterceptPoints']()[_0x520f87(0x30a)])(_0x43dbb5[_0x520f87(0x245)],null)||_0x43dbb5[_0x520f87(0x245)],_0x4743bd={..._0x43dbb5,'mutations':_0x4dabd5};this['_lockTransition'](),this[_0x520f87(0x3ca)](this[_0x520f87(0x290)][_0x520f87(0x220)](_0x4743bd)),this[_0x520f87(0x256)]();}['_onRemoteACK'](_0x6fced2){var _0x1ab4cc=_0x43e0c9;this['_lockTransition'](),this[_0x1ab4cc(0x3ca)](this['_state'][_0x1ab4cc(0x2b5)](_0x6fced2)),this[_0x1ab4cc(0x256)]();}[_0x43e0c9(0x188)](_0x2158ab){var _0x135190=_0x43e0c9;this[_0x135190(0x3b4)](),this[_0x135190(0x3ca)](this[_0x135190(0x290)][_0x135190(0x273)](_0x2158ab)),this[_0x135190(0x256)]();}[_0x43e0c9(0x406)](_0x595a97){var _0x296e6b=_0x43e0c9;this['_lockTransition'](),this[_0x296e6b(0x3ca)](this[_0x296e6b(0x290)]['onRemoteRetry'](_0x595a97)),this[_0x296e6b(0x256)]();}['_onFetchMissResult'](_0x7459cc){var _0x5ebfea=_0x43e0c9;if(!(this[_0x5ebfea(0x290)]instanceof FetchingMissState))throw new TypeError(_0x5ebfea(0x1e5));const _0x59153b=_0x7459cc[_0x5ebfea(0x12e)](_0x13e3a8=>{var _0x44ba1b=_0x5ebfea;const _0x5d80b3=this[_0x44ba1b(0x16a)][_0x44ba1b(0x2d1)][_0x44ba1b(0x308)](this['_compressMutationService'][_0x44ba1b(0x2d1)][_0x44ba1b(0x1ff)]()[_0x44ba1b(0x30a)])(_0x13e3a8[_0x44ba1b(0x245)],null)||_0x13e3a8['mutations'];return{..._0x13e3a8,'mutations':_0x5d80b3};});this[_0x5ebfea(0x3b4)](),this[_0x5ebfea(0x3ca)](this[_0x5ebfea(0x290)][_0x5ebfea(0x1a5)](_0x59153b)),this[_0x5ebfea(0x256)]();}[_0x43e0c9(0x151)](){var _0x189b33=_0x43e0c9;this[_0x189b33(0x3b4)](),this['_updateState'](this[_0x189b33(0x290)]['toggleOffline']()),this[_0x189b33(0x256)]();}[_0x43e0c9(0x25e)](_0x16679b=!0x1){var _0x2ec036=_0x43e0c9;this['_lockTransition'](),this[_0x2ec036(0x3ca)](this[_0x2ec036(0x290)]['toggleOnline']()),this[_0x2ec036(0x256)]();const _0x2e3bf2=this['_state'];_0x16679b&&_0x2e3bf2 instanceof SyncedState&&(this[_0x2ec036(0x3b4)](),this[_0x2ec036(0x3ca)](_0x2e3bf2[_0x2ec036(0x26b)]()),this[_0x2ec036(0x256)]());}async[_0x43e0c9(0x15e)](){return new Promise(_0x27c81e=>{var _0x11e588=_0x5029;this[_0x11e588(0x39d)][_0x11e588(0x27c)][_0x11e588(0x1f0)](_0x4af4d9(0x1))[_0x11e588(0x352)](async _0x402c37=>{var _0x1ee2e2=_0x11e588;_0x27c81e(await this[_0x1ee2e2(0x1dc)](_0x402c37===SessionStatus[_0x1ee2e2(0x310)]));});});}[_0x43e0c9(0x3fc)](){var _0x25996b=_0x43e0c9;const _0x5f3e6f=this['unitID'];return{'onStateChange':__name((_0xde17d4,_0x408f04)=>{var _0xa99cd9=_0x5029;if(_0xde17d4!==this[_0xa99cd9(0x290)])throw new Error(_0xa99cd9(0x3bf)+_0xde17d4[_0xa99cd9(0x123)]+_0xa99cd9(0x275)+_0x408f04[_0xa99cd9(0x123)]+'\x0aCurrent:\x20'+this[_0xa99cd9(0x290)][_0xa99cd9(0x123)]);this[_0xa99cd9(0x3ca)](_0x408f04);},_0x25996b(0x358)),'onSendChangeset':__name(_0x4790e1=>{var _0x52d01d=_0x25996b;_0x4790e1[_0x52d01d(0x20c)]||(_0x4790e1['sid']=this[_0x52d01d(0x2c1)],_0x4790e1[_0x52d01d(0x185)]=++this[_0x52d01d(0x1c3)]);const _0x508880={'eventID':CollaborationEvent['SUBMIT_CHANGESET'],'data':{'unitID':_0x4790e1[_0x52d01d(0x442)],'unitType':this['_type'],'changeset':_0x4790e1,'memberID':this[_0x52d01d(0x39d)][_0x52d01d(0x297)]()}};this['session'][_0x52d01d(0x313)](_0x508880,this[_0x52d01d(0x442)]);},_0x25996b(0x2dc)),'onMissingChangesets':__name(({from:_0x487f7e,to:_0x28b907})=>{var _0x4f9c09=_0x25996b;this[_0x4f9c09(0x11f)][_0x4f9c09(0x287)]('[CollaborationEntity]',_0x4f9c09(0x39e)+_0x487f7e+_0x4f9c09(0x2d3)+_0x28b907);const _0x3d9e7e={'eventID':CollaborationEvent[_0x4f9c09(0x34c)],'data':{'unitID':_0x5f3e6f,'unitType':this[_0x4f9c09(0x203)],'from':_0x487f7e,'to':_0x28b907}};this['session'][_0x4f9c09(0x313)](_0x3d9e7e,this[_0x4f9c09(0x442)]);},_0x25996b(0x195))};}async[_0x43e0c9(0x1dc)](_0x40c840){var _0x1d5267=_0x43e0c9,_0x3e8a79,_0x4bb1e2,_0x5d1da8;const _0x5840ea=await((_0x3e8a79=this[_0x1d5267(0x289)])==null?void 0x0:_0x3e8a79['loadOfflineData'](this[_0x1d5267(0x442)])),_0xf2ebe=(_0x4bb1e2=_0x5840ea==null?void 0x0:_0x5840ea[_0x1d5267(0x245)])!=null?_0x4bb1e2:[],_0x1dd4d0=(_0x5d1da8=_0x5840ea==null?void 0x0:_0x5840ea[_0x1d5267(0x3f2)])!=null?_0x5d1da8:null,_0x4fef31=!!(_0x1dd4d0!=null&&_0x1dd4d0['sid'])&&!!(_0x1dd4d0!=null&&_0x1dd4d0[_0x1d5267(0x185)]);this['_changesetSessionId']=_0x4fef31?_0x1dd4d0[_0x1d5267(0x20c)]:v4(),this[_0x1d5267(0x1c3)]=_0x4fef31?_0x1dd4d0[_0x1d5267(0x185)]:0x0;const _0x287d9c=this['unitID'];try{this['_replayCachedMutations'](_0x1dd4d0,_0xf2ebe);}catch(_0x5d2289){this[_0x1d5267(0x11f)]['error'](_0x5d2289);}const _0x5143ca=this['_createHandler']();if(_0x40c840){const _0xc7c042=createOnlineState(this['_injector'],_0x287d9c,this[_0x1d5267(0x203)],_0x1dd4d0,_0xf2ebe,_0x5143ca);return _0xc7c042 instanceof PendingState?_0xc7c042[_0x1d5267(0x1f9)]():(_0xc7c042 instanceof AwaitingWithPendingState||_0xc7c042 instanceof AwaitingState)&&_0xc7c042[_0x1d5267(0x3ee)](),_0xc7c042;}return this[_0x1d5267(0x403)][_0x1d5267(0x39f)](OfflineState,_0x287d9c,this[_0x1d5267(0x203)],_0x1dd4d0,_0xf2ebe,_0x5143ca);}[_0x43e0c9(0x29f)](_0x2afc38,_0x11e031){var _0x40685f=_0x43e0c9,_0x3150c1,_0x1263f8;const _0x2677f3=this[_0x40685f(0x16a)][_0x40685f(0x2d1)][_0x40685f(0x308)](this[_0x40685f(0x16a)][_0x40685f(0x2d1)][_0x40685f(0x1ff)]()[_0x40685f(0x30a)]);(_0x3150c1=_0x2677f3((_0x2afc38==null?void 0x0:_0x2afc38[_0x40685f(0x245)])||[],null))==null||_0x3150c1[_0x40685f(0x392)](_0x450c33=>this[_0x40685f(0x1ae)][_0x40685f(0x3f7)](_0x450c33['id'],_0x450c33['params'])),(_0x1263f8=_0x2677f3(_0x11e031||[],null))==null||_0x1263f8[_0x40685f(0x392)](_0x246390=>this['_commandService'][_0x40685f(0x3f7)](_0x246390['id'],_0x246390['params']));}},__name(_a13,'CollaborationEntity'),_a13);CollaborationEntity=__decorateClass$c([__decorateParam$c(0x3,Inject(Injector)),__decorateParam$c(0x4,Inject(CompressMutationService)),__decorateParam$c(0x5,Inject(LocaleService)),__decorateParam$c(0x6,Inject(RevisionService)),__decorateParam$c(0x7,Inject(CollaborationUIEventService)),__decorateParam$c(0x8,ILogService),__decorateParam$c(0x9,ICommandService),__decorateParam$c(0xa,IPermissionService),__decorateParam$c(0xb,Optional(ISingleActiveUnitService)),__decorateParam$c(0xc,Optional(ILocalCacheService))],CollaborationEntity);var _a14;let DocCollaborationEntity=(_a14=class extends CollaborationEntity{constructor(_0x4584d4,_0x538361,_0x462dde,_0x4d668b,_0x3b803c,_0x1e6bdd,_0x5a7063,_0x5142d0,_0x1095a6,_0x4c263a,_0x1e543d,_0x311a7f,_0x4c4954){var _0x3bcab=_0x43e0c9;super(_0x4584d4,_0x462dde,_0x538361,_0x4d668b,_0x3b803c,_0x1e6bdd,_0x5a7063,_0x5142d0,_0x1095a6,_0x4c263a,_0x1e543d,_0x311a7f,_0x4c4954),__publicField(this,_0x3bcab(0x246),null),(this[_0x3bcab(0x442)]=_0x4584d4,this[_0x3bcab(0x3b0)]=_0x538361);}['addHandlerCallback'](_0x11c948){var _0x2e2aee=_0x43e0c9;this[_0x2e2aee(0x246)]=_0x11c948;}['dispose'](){var _0x5b1287=_0x43e0c9;this[_0x5b1287(0x246)]=null,super[_0x5b1287(0x25b)]();}[_0x43e0c9(0x3fc)](){var _0x3af63d=_0x43e0c9;const _0x587bf5=super['_createHandler']();return _0x587bf5[_0x3af63d(0x173)]=_0x503a79=>{var _0x3b7329=_0x3af63d,_0x4e2956,_0x2b0f1e;return(_0x2b0f1e=(_0x4e2956=this[_0x3b7329(0x246)])==null?void 0x0:_0x4e2956[_0x3b7329(0x173)])==null?void 0x0:_0x2b0f1e[_0x3b7329(0x314)](_0x4e2956,_0x503a79);},_0x587bf5[_0x3af63d(0x3c4)]=_0x3dc51a=>{var _0x4822f5=_0x3af63d,_0x2843e4,_0x569073;return(_0x569073=(_0x2843e4=this[_0x4822f5(0x246)])==null?void 0x0:_0x2843e4[_0x4822f5(0x3c4)])==null?void 0x0:_0x569073[_0x4822f5(0x314)](_0x2843e4,_0x3dc51a);},_0x587bf5['onTransformSelections']=_0x5e20f5=>{var _0x340670=_0x3af63d,_0x39bfea,_0x273c92;return(_0x273c92=(_0x39bfea=this[_0x340670(0x246)])==null?void 0x0:_0x39bfea[_0x340670(0x250)])==null?void 0x0:_0x273c92['call'](_0x39bfea,_0x5e20f5);},_0x587bf5[_0x3af63d(0x37c)]=_0x341c8c=>{var _0x4bcc7f=_0x3af63d,_0x1d7d07,_0x1203ba;return(_0x1203ba=(_0x1d7d07=this['_handlerCallback'])==null?void 0x0:_0x1d7d07[_0x4bcc7f(0x37c)])==null?void 0x0:_0x1203ba['call'](_0x1d7d07,_0x341c8c);},_0x587bf5[_0x3af63d(0x11e)]=_0x56dcab=>{var _0x6cf43e=_0x3af63d,_0x1df6d8,_0x213dd8,_0xcac2ce;if(!((_0x1df6d8=this[_0x6cf43e(0x246)])!=null&&_0x1df6d8[_0x6cf43e(0x11e)]))throw new Error('onTransformRemoteChangesetByIMECache\x20callback\x20is\x20not\x20added\x20yet.');return(_0xcac2ce=(_0x213dd8=this[_0x6cf43e(0x246)])==null?void 0x0:_0x213dd8[_0x6cf43e(0x11e)])==null?void 0x0:_0xcac2ce['call'](_0x213dd8,_0x56dcab);},_0x587bf5[_0x3af63d(0x404)]=_0x4aac8d=>{var _0x43609b=_0x3af63d,_0x1d7312,_0x32f4fd,_0x337ba2;if(!((_0x1d7312=this[_0x43609b(0x246)])!=null&&_0x1d7312['onTransformRemoteChangesetByStateCache']))throw new Error(_0x43609b(0x21f));return(_0x337ba2=(_0x32f4fd=this[_0x43609b(0x246)])==null?void 0x0:_0x32f4fd[_0x43609b(0x404)])==null?void 0x0:_0x337ba2[_0x43609b(0x314)](_0x32f4fd,_0x4aac8d);},_0x587bf5;}async[_0x43e0c9(0x19e)](){var _0x4db805=_0x43e0c9;const _0xdaf83e=await super[_0x4db805(0x19e)]();return this['disposeWithMe'](this[_0x4db805(0x1ae)][_0x4db805(0x30d)]((_0x8b84cf,_0x401c64)=>{var _0x323656=_0x4db805;if(_0x8b84cf[_0x323656(0x3b0)]!==CommandType[_0x323656(0x189)]||_0x401c64!=null&&_0x401c64['fromCollab']||_0x401c64!=null&&_0x401c64['onlyLocal']||_0x8b84cf['id']===RichTextEditingMutation['id'])return;const _0x3d0157=_0x8b84cf[_0x323656(0xf1)];if((_0x3d0157==null?void 0x0:_0x3d0157[_0x323656(0x38e)])!==this[_0x323656(0x442)])return;const _0x18d9a5=_0x8b84cf,_0x526d5a=this['_compressMutationService'][_0x323656(0x2d1)]['fetchThroughInterceptors'](this['_compressMutationService']['interceptor']['getInterceptPoints']()[_0x323656(0x2f9)])([_0x18d9a5],null)||[_0x18d9a5];this[_0x323656(0x1cc)](_0x526d5a[0x0]);})),_0xdaf83e;}},__name(_a14,'DocCollaborationEntity'),_a14);DocCollaborationEntity=__decorateClass$c([__decorateParam$c(0x3,Inject(Injector)),__decorateParam$c(0x4,Inject(CompressMutationService)),__decorateParam$c(0x5,Inject(LocaleService)),__decorateParam$c(0x6,Inject(RevisionService)),__decorateParam$c(0x7,Inject(CollaborationUIEventService)),__decorateParam$c(0x8,ILogService),__decorateParam$c(0x9,ICommandService),__decorateParam$c(0xa,IPermissionService),__decorateParam$c(0xb,Optional(ISingleActiveUnitService)),__decorateParam$c(0xc,Optional(ILocalCacheService))],DocCollaborationEntity);var _a15;let SheetCollaborationEntity=(_a15=class extends CollaborationEntity{constructor(_0x885ff7,_0x388282,_0x563921,_0x29cfff,_0xf40966,_0x458cc6,_0x131235,_0x438a39,_0x2c1fc7,_0x49a01a,_0x35f94d,_0x7cb8ff,_0x4f4ebb,_0x2b52e8){var _0x3ba59f=_0x43e0c9;super(_0x885ff7,_0x563921,_0x388282,_0x29cfff,_0xf40966,_0x458cc6,_0x131235,_0x2c1fc7,_0x49a01a,_0x35f94d,_0x7cb8ff,_0x4f4ebb,_0x2b52e8),this[_0x3ba59f(0x442)]=_0x885ff7,this[_0x3ba59f(0x3b0)]=_0x388282,this[_0x3ba59f(0x319)]=_0x438a39;}['_createHandler'](){var _0x1a16af=_0x43e0c9;const _0x4d4cdd=super[_0x1a16af(0x3fc)]();return _0x4d4cdd['onTransformSelections']=_0x25f4a2=>this[_0x1a16af(0x319)][_0x1a16af(0x3d9)](_0x25f4a2),_0x4d4cdd;}async[_0x43e0c9(0x19e)](){var _0x28cd9d=_0x43e0c9;const _0x3518d3=await super['_init']();return this[_0x28cd9d(0x18f)](this['_commandService'][_0x28cd9d(0x30d)]((_0x5900f1,_0x14b1b2)=>{var _0x3ba2bf=_0x28cd9d;if(_0x5900f1['type']!==CommandType[_0x3ba2bf(0x189)]||_0x14b1b2!=null&&_0x14b1b2[_0x3ba2bf(0x374)]||_0x14b1b2!=null&&_0x14b1b2[_0x3ba2bf(0x2c4)])return;const _0x4de7d0=_0x5900f1[_0x3ba2bf(0xf1)];if((_0x4de7d0==null?void 0x0:_0x4de7d0[_0x3ba2bf(0x38e)])!==this[_0x3ba2bf(0x442)])return;const _0x2ab098=_0x5900f1,_0x4c365e=this[_0x3ba2bf(0x16a)]['interceptor'][_0x3ba2bf(0x308)](this[_0x3ba2bf(0x16a)][_0x3ba2bf(0x2d1)][_0x3ba2bf(0x1ff)]()[_0x3ba2bf(0x2f9)])([_0x2ab098],null)||[_0x2ab098];this[_0x3ba2bf(0x1cc)](_0x4c365e[0x0]);})),_0x3518d3;}},__name(_a15,'SheetCollaborationEntity'),_a15);SheetCollaborationEntity=__decorateClass$c([__decorateParam$c(0x3,Inject(Injector)),__decorateParam$c(0x4,Inject(CompressMutationService)),__decorateParam$c(0x5,Inject(LocaleService)),__decorateParam$c(0x6,Inject(RevisionService)),__decorateParam$c(0x7,Inject(SheetTransformSelectionsService)),__decorateParam$c(0x8,Inject(CollaborationUIEventService)),__decorateParam$c(0x9,ILogService),__decorateParam$c(0xa,ICommandService),__decorateParam$c(0xb,IPermissionService),__decorateParam$c(0xc,Optional(ISingleActiveUnitService)),__decorateParam$c(0xd,Optional(ILocalCacheService))],SheetCollaborationEntity);var __defProp$b=Object['defineProperty'],__getOwnPropDesc$b=Object[_0x43e0c9(0x33e)],__decorateClass$b=__name((_0x135eeb,_0x5d23c7,_0x2e86f9,_0x3e46bc)=>{var _0x288dc5=_0x43e0c9;for(var _0xc9fed1=_0x3e46bc>0x1?void 0x0:_0x3e46bc?__getOwnPropDesc$b(_0x5d23c7,_0x2e86f9):_0x5d23c7,_0x49343a=_0x135eeb[_0x288dc5(0x233)]-0x1,_0x4ec219;_0x49343a>=0x0;_0x49343a--)(_0x4ec219=_0x135eeb[_0x49343a])&&(_0xc9fed1=(_0x3e46bc?_0x4ec219(_0x5d23c7,_0x2e86f9,_0xc9fed1):_0x4ec219(_0xc9fed1))||_0xc9fed1);return _0x3e46bc&&_0xc9fed1&&__defProp$b(_0x5d23c7,_0x2e86f9,_0xc9fed1),_0xc9fed1;},_0x43e0c9(0x226)),__decorateParam$b=__name((_0x52a04e,_0x43ddfc)=>(_0x2985f5,_0x105fdc)=>_0x43ddfc(_0x2985f5,_0x105fdc,_0x52a04e),'__decorateParam$b'),_a16;let CollaborationController=(_a16=class extends RxDisposable{constructor(_0x31d7df,_0x452c0f,_0x1a29d6){var _0x5e5f99=_0x43e0c9;super(),__publicField(this,_0x5e5f99(0x16f),new Map()),__publicField(this,_0x5e5f99(0x285),new Subject()),__publicField(this,'entityInit$',this[_0x5e5f99(0x285)][_0x5e5f99(0x37f)]()),(this[_0x5e5f99(0x403)]=_0x31d7df,this[_0x5e5f99(0x3d5)]=_0x452c0f,this['_univerInstanceService']=_0x1a29d6,this['_init']());}[_0x43e0c9(0x25b)](){var _0x24fc0f=_0x43e0c9;super['dispose'](),this['_entities'][_0x24fc0f(0x392)](_0x2de2b7=>_0x2de2b7[_0x24fc0f(0x25b)]()),this[_0x24fc0f(0x16f)]['clear']();}['getCollabEntity'](_0x56ed05){var _0x3f805c=_0x43e0c9,_0x509196;return(_0x509196=this[_0x3f805c(0x16f)]['get'](_0x56ed05))!=null?_0x509196:null;}[_0x43e0c9(0x35b)](_0x3c2d9f){var _0x4645fb=_0x43e0c9;const _0x1f3a2a=this[_0x4645fb(0x1a9)](_0x3c2d9f);return _0x1f3a2a?of(_0x1f3a2a):this['_entityInit$'][_0x4645fb(0x1f0)](filter(_0x3f1ab9=>_0x3f1ab9[_0x4645fb(0x442)]===_0x3c2d9f));}['readyForCollab'](_0x38d1ba){var _0x3b4217=_0x43e0c9;return firstValueFrom(this[_0x3b4217(0x35b)](_0x38d1ba)['pipe'](map(()=>{})));}[_0x43e0c9(0x19e)](){var _0x4fbe8=_0x43e0c9;this[_0x4fbe8(0x330)][_0x4fbe8(0x430)](UniverInstanceType[_0x4fbe8(0x202)])[_0x4fbe8(0x1f0)](takeUntil(this[_0x4fbe8(0x34a)]),delay(0x10))[_0x4fbe8(0x352)](async _0x3194f6=>{var _0x554ade=_0x4fbe8;const _0x346fbb=_0x3194f6[_0x554ade(0x2cb)](),_0x55a730=await this['_startCollaboration'](_0x346fbb,UniverType['UNIVER_SHEET']);this[_0x554ade(0x16f)][_0x554ade(0x116)](_0x346fbb,_0x55a730);}),this['_univerInstanceService'][_0x4fbe8(0x430)](UniverInstanceType[_0x4fbe8(0x199)])['pipe'](takeUntil(this[_0x4fbe8(0x34a)]),delay(0x10))['pipe'](filter(_0x24d428=>!_0x24d428[_0x4fbe8(0x2cb)]()[_0x4fbe8(0x12d)]('__')))['subscribe'](async _0x1bb588=>{var _0x13acd5=_0x4fbe8;const _0x13d73f=_0x1bb588[_0x13acd5(0x2cb)](),_0x517533=await this['_startCollaboration'](_0x13d73f,UniverType['UNIVER_DOC']);this[_0x13acd5(0x16f)][_0x13acd5(0x116)](_0x13d73f,_0x517533);}),merge(this[_0x4fbe8(0x330)][_0x4fbe8(0x33a)](UniverInstanceType['UNIVER_SHEET']),this[_0x4fbe8(0x330)]['getTypeOfUnitDisposed$'](UniverInstanceType[_0x4fbe8(0x199)]))['pipe'](takeUntil(this[_0x4fbe8(0x34a)]))['subscribe'](_0x4808b0=>{var _0x39c165=_0x4fbe8;const _0x4b68f=_0x4808b0['getUnitId'](),_0x884662=this['_entities'][_0x39c165(0x1c2)](_0x4b68f);_0x884662&&(_0x884662[_0x39c165(0x25b)](),this[_0x39c165(0x16f)]['delete'](_0x4b68f));});}async[_0x43e0c9(0x407)](_0x12699e,_0x11b4e5){var _0x257162=_0x43e0c9;const _0x50ee56=await this[_0x257162(0x3d5)][_0x257162(0x32d)](_0x12699e),_0x2e39dd=this['_injector'][_0x257162(0x39f)](this[_0x257162(0x445)](_0x11b4e5),_0x12699e,_0x11b4e5,_0x50ee56);return await _0x2e39dd['init'](),this[_0x257162(0x285)][_0x257162(0x2e5)](_0x2e39dd),_0x2e39dd;}[_0x43e0c9(0x445)](_0x41286b){var _0x3ec9b6=_0x43e0c9;switch(_0x41286b){case UniverType[_0x3ec9b6(0x199)]:return DocCollaborationEntity;case UniverType['UNIVER_SHEET']:return SheetCollaborationEntity;default:throw new Error(_0x3ec9b6(0x1d7)+_0x41286b);}}},__name(_a16,'CollaborationController'),_a16);CollaborationController=__decorateClass$b([__decorateParam$b(0x0,Inject(Injector)),__decorateParam$b(0x1,Inject(CollaborationSessionService)),__decorateParam$b(0x2,IUniverInstanceService)],CollaborationController);var __defProp$a=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc$a=Object['getOwnPropertyDescriptor'],__decorateClass$a=__name((_0x127141,_0x53f6ea,_0x228323,_0x3dd26f)=>{for(var _0x4359ad=_0x3dd26f>0x1?void 0x0:_0x3dd26f?__getOwnPropDesc$a(_0x53f6ea,_0x228323):_0x53f6ea,_0x14fe05=_0x127141['length']-0x1,_0x22afba;_0x14fe05>=0x0;_0x14fe05--)(_0x22afba=_0x127141[_0x14fe05])&&(_0x4359ad=(_0x3dd26f?_0x22afba(_0x53f6ea,_0x228323,_0x4359ad):_0x22afba(_0x4359ad))||_0x4359ad);return _0x3dd26f&&_0x4359ad&&__defProp$a(_0x53f6ea,_0x228323,_0x4359ad),_0x4359ad;},_0x43e0c9(0x176)),__decorateParam$a=__name((_0x12cf91,_0x539f04)=>(_0x1ce2db,_0x1bb1cc)=>_0x539f04(_0x1ce2db,_0x1bb1cc,_0x12cf91),_0x43e0c9(0x2e7));const DEFAULT_FILE_NAME_KEY='DEFAULT_FILE_NAME',UNIVER_DEFAULT_FILE_NAME='Univer';var _a17;let FileNameController=(_a17=class extends Disposable{constructor(_0x3f480b,_0x12fbaa){var _0x53145c=_0x43e0c9;super(),this[_0x53145c(0x330)]=_0x3f480b,this[_0x53145c(0x249)]=_0x12fbaa,this[_0x53145c(0x19e)]();}[_0x43e0c9(0x19e)](){var _0x54d547=_0x43e0c9;this[_0x54d547(0x18f)](this[_0x54d547(0x330)]['focused$'][_0x54d547(0x352)](()=>{var _0x514ce1=_0x54d547,_0xb3c60d;const _0x3f5009=this[_0x514ce1(0x330)][_0x514ce1(0x126)]();let _0x1f6bbc=(_0xb3c60d=this[_0x514ce1(0x249)][_0x514ce1(0x15f)](DEFAULT_FILE_NAME_KEY))!=null?_0xb3c60d:UNIVER_DEFAULT_FILE_NAME;_0x3f5009 instanceof Workbook&&(_0x1f6bbc=_0x3f5009[_0x514ce1(0x3e4)]),document[_0x514ce1(0x2c7)]=_0x1f6bbc;}));}},__name(_a17,_0x43e0c9(0x36a)),_a17);FileNameController=__decorateClass$a([__decorateParam$a(0x0,IUniverInstanceService),__decorateParam$a(0x1,IConfigService)],FileNameController);var __defProp$9=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc$9=Object['getOwnPropertyDescriptor'],__decorateClass$9=__name((_0x2fa639,_0x168bee,_0x2d976b,_0x342d9a)=>{for(var _0x3277db=_0x342d9a>0x1?void 0x0:_0x342d9a?__getOwnPropDesc$9(_0x168bee,_0x2d976b):_0x168bee,_0x21365b=_0x2fa639['length']-0x1,_0x237953;_0x21365b>=0x0;_0x21365b--)(_0x237953=_0x2fa639[_0x21365b])&&(_0x3277db=(_0x342d9a?_0x237953(_0x168bee,_0x2d976b,_0x3277db):_0x237953(_0x3277db))||_0x3277db);return _0x342d9a&&_0x3277db&&__defProp$9(_0x168bee,_0x2d976b,_0x3277db),_0x3277db;},'__decorateClass$9'),__decorateParam$9=__name((_0x4e5d7f,_0x33e6c9)=>(_0xc27844,_0x5de7d8)=>_0x33e6c9(_0xc27844,_0x5de7d8,_0x4e5d7f),'__decorateParam$9'),_a18;let AuthServerService=(_a18=class{constructor(_0x31a397,_0x40c85f,_0x118eae){var _0x4df3ab=_0x43e0c9;this[_0x4df3ab(0x249)]=_0x31a397,this[_0x4df3ab(0x141)]=_0x40c85f,this['localeService']=_0x118eae,this[_0x4df3ab(0x21c)]();}[_0x43e0c9(0x21c)](){var _0x2972e2=_0x43e0c9;this[_0x2972e2(0x141)][_0x2972e2(0x16e)]({'priority':0x1,'interceptor':__name((_0x51f040,_0x5550e2)=>_0x5550e2(_0x51f040)[_0x2972e2(0x1f0)](concatMap(async _0x411ad3=>{var _0x5427f5=_0x2972e2;const _0x35f15a=_0x411ad3;if(_0x35f15a[_0x5427f5(0x123)]===0x191){if(typeof window>'u')throw new Error('[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.');if(window[_0x5427f5(0x411)](this[_0x5427f5(0x31e)]['t'](_0x5427f5(0x1cd)))){const _0x15e45b=window[_0x5427f5(0x34b)](window[_0x5427f5(0x121)][_0x5427f5(0x2e2)]);window[_0x5427f5(0x121)][_0x5427f5(0x2e2)]=this[_0x5427f5(0x1dd)]()+_0x5427f5(0x218)+_0x15e45b;}}return _0x35f15a;})),_0x2972e2(0x2d1))});}[_0x43e0c9(0x1dd)](){var _0xb4bc96=_0x43e0c9,_0x129939,_0x12877f;const _0x47ee21=this[_0xb4bc96(0x249)][_0xb4bc96(0x15f)](LOGIN_URL_KEY),_0x417ed8=this[_0xb4bc96(0x249)][_0xb4bc96(0x15f)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x12877f=(_0x129939=_0x417ed8==null?void 0x0:_0x417ed8[_0xb4bc96(0x1bd)])!=null?_0x129939:_0x47ee21)!=null?_0x12877f:DEFAULT_LOGIN_URL;}},__name(_a18,_0x43e0c9(0x3ad)),_a18);AuthServerService=__decorateClass$9([__decorateParam$9(0x0,IConfigService),__decorateParam$9(0x1,Inject(HTTPService)),__decorateParam$9(0x2,Inject(LocaleService))],AuthServerService);var __defProp$8=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc$8=Object[_0x43e0c9(0x33e)],__decorateClass$8=__name((_0x2f91c0,_0x37ccfa,_0x4b113b,_0x550c0e)=>{var _0x1356ce=_0x43e0c9;for(var _0x4b446e=_0x550c0e>0x1?void 0x0:_0x550c0e?__getOwnPropDesc$8(_0x37ccfa,_0x4b113b):_0x37ccfa,_0x4334e3=_0x2f91c0[_0x1356ce(0x233)]-0x1,_0x8f41fe;_0x4334e3>=0x0;_0x4334e3--)(_0x8f41fe=_0x2f91c0[_0x4334e3])&&(_0x4b446e=(_0x550c0e?_0x8f41fe(_0x37ccfa,_0x4b113b,_0x4b446e):_0x8f41fe(_0x4b446e))||_0x4b446e);return _0x550c0e&&_0x4b446e&&__defProp$8(_0x37ccfa,_0x4b113b,_0x4b446e),_0x4b446e;},_0x43e0c9(0x1d9)),__decorateParam$8=__name((_0x1db054,_0x44fdf2)=>(_0x36f2a4,_0xf2dda7)=>_0x44fdf2(_0x36f2a4,_0xf2dda7,_0x1db054),_0x43e0c9(0x182));const AUTHZ_URL_KEY=_0x43e0c9(0x294),DEFAULT_AUTHZ_URL_KEY$1=_0x43e0c9(0x2d4);var _a19;let AuthzIoHttpService=(_a19=class extends Disposable{constructor(_0x1f0115,_0x18399d){var _0x42f6c1=_0x43e0c9;super(),this[_0x42f6c1(0x1b7)]=_0x1f0115,this[_0x42f6c1(0x249)]=_0x18399d,this[_0x42f6c1(0x21b)]();}[_0x43e0c9(0x21b)](){var _0x1ebc8f=_0x43e0c9;const _0x13f688=this;this[_0x1ebc8f(0x18f)](this['_HTTPService'][_0x1ebc8f(0x16e)]({'priority':0x3e7,'interceptor':MergeInterceptorFactory({'isMatch'(_0x11e301){var _0x2d5265=_0x1ebc8f,_0x4f41d7;if(_0x11e301[_0x2d5265(0x433)]===_0x2d5265(0x12c)&&((_0x4f41d7=_0x11e301['requestParams'])!=null&&_0x4f41d7[_0x2d5265(0x415)])){const {objectID:_0x28029b,objectType:_0x4dc6ce}=_0x11e301[_0x2d5265(0x2e3)][_0x2d5265(0x415)]||{};if(!_0x28029b||_0x4dc6ce===void 0x0)return!0x1;const _0x2c917c=_0x13f688[_0x2d5265(0x323)]()+'/'+_0x4dc6ce+_0x2d5265(0x13a)+_0x28029b+_0x2d5265(0x178);if(_0x11e301[_0x2d5265(0x24e)]===_0x2c917c)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x16377b){var _0x912b34=_0x1ebc8f,_0x16148e;return(_0x16148e=_0x16377b[_0x912b34(0x2e3)])==null?void 0x0:_0x16148e[_0x912b34(0x415)];},'mergeParamsToRequest'(_0x3939bd,_0x30c01c){var _0x5724b1=_0x1ebc8f;const _0x5b55cc=_0x13f688[_0x5724b1(0x323)]()+_0x5724b1(0x1db),_0x3f318e=_0x3939bd['reduce']((_0x2c7c82,_0x4251bf)=>{var _0x4da031=_0x5724b1;const {unitID:_0x25e869,objectID:_0x28fadd,objectType:_0x402fd6,actions:_0x34cc03}=_0x4251bf;return _0x2c7c82[_0x25e869]||(_0x2c7c82[_0x25e869]={}),_0x2c7c82[_0x25e869][_0x28fadd]||(_0x2c7c82[_0x25e869][_0x28fadd]={'objectID':_0x28fadd,'objectType':_0x402fd6,'actions':[]}),_0x2c7c82[_0x25e869][_0x28fadd][_0x4da031(0x146)][_0x4da031(0x119)](..._0x34cc03),_0x2c7c82;},{}),_0x366b2f=[];for(const _0x46de5f in _0x3f318e)for(const _0x38a4fc in _0x3f318e[_0x46de5f]){const {actions:_0x30147b,objectType:_0x20ee60}=_0x3f318e[_0x46de5f][_0x38a4fc],_0x182813=[...new Set(_0x30147b)];_0x366b2f[_0x5724b1(0x119)]({'unitID':_0x46de5f,'objectID':_0x38a4fc,'objectType':_0x20ee60,'actions':_0x182813});}return new HTTPRequest(_0x5724b1(0x12c),_0x5b55cc,{'headers':_0x30c01c[_0x5724b1(0x113)],'withCredentials':_0x30c01c[_0x5724b1(0x3ed)],'responseType':_0x30c01c[_0x5724b1(0x177)],'body':{'requests':_0x366b2f}});}},{'distributeResult'(_0x334824,_0x4dd679){var _0x3f65fa=_0x1ebc8f;const {objectActions:_0x499371}=_0x334824;return _0x4dd679[_0x3f65fa(0x12e)](_0x3ddeae=>{var _0x16e552=_0x3f65fa;const {unitID:_0xe855f9,objectID:_0x54ecce,actions:_0x20a281}=_0x3ddeae,_0x106822=_0x499371['find'](_0x14fae2=>_0x14fae2['unitID']===_0xe855f9&&_0x14fae2[_0x16e552(0x394)]===_0x54ecce),_0x2bfdee=_0x20a281[_0x16e552(0x12e)](_0x408441=>_0x106822==null?void 0x0:_0x106822[_0x16e552(0x146)]['find'](_0x403e70=>_0x403e70['action']===_0x408441))['filter'](_0x47bb9d=>!!_0x47bb9d);return{'config':_0x3ddeae,'result':{'actions':_0x2bfdee,'error':_0x334824[_0x16e552(0x1c8)]}};});}})}));}[_0x43e0c9(0x323)](){var _0x509d8f=_0x43e0c9,_0x238d6c,_0x38d38a;const _0x51f600=this[_0x509d8f(0x249)][_0x509d8f(0x15f)](AUTHZ_URL_KEY),_0x54482a=this[_0x509d8f(0x249)][_0x509d8f(0x15f)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x38d38a=(_0x238d6c=_0x54482a==null?void 0x0:_0x54482a[_0x509d8f(0x3af)])!=null?_0x238d6c:_0x51f600)!=null?_0x38d38a:DEFAULT_AUTHZ_URL_KEY$1;}async['create'](_0x400433){var _0x248724=_0x43e0c9;const _0x46d4aa=this[_0x248724(0x323)]()+'/'+_0x400433['objectType']+_0x248724(0x1b6);return(await this[_0x248724(0x1b7)][_0x248724(0x43e)](_0x46d4aa,{'body':_0x400433}))[_0x248724(0x415)]['objectID']||'';}async['list'](_0x34cf12){var _0xd0d9aa=_0x43e0c9;const _0x1d70dd=this[_0xd0d9aa(0x323)]()+_0xd0d9aa(0x114);return(await this[_0xd0d9aa(0x1b7)][_0xd0d9aa(0x43e)](_0x1d70dd,{'body':_0x34cf12}))[_0xd0d9aa(0x415)][_0xd0d9aa(0x423)];}async[_0x43e0c9(0x349)](_0x21faf9){var _0x192043=_0x43e0c9;const _0x31ad34=this[_0x192043(0x323)]()+'/'+_0x21faf9[_0x192043(0x303)]+'/object/'+_0x21faf9[_0x192043(0x394)];await this['_HTTPService'][_0x192043(0x1ac)](_0x31ad34,{'body':_0x21faf9});}async[_0x43e0c9(0x386)](_0x577017){var _0x5942cf=_0x43e0c9;const _0xbc8598=this[_0x5942cf(0x323)]()+'/'+_0x577017[_0x5942cf(0x303)]+_0x5942cf(0x13a)+_0x577017[_0x5942cf(0x394)]+'/allowed';return(await this[_0x5942cf(0x1b7)][_0x5942cf(0x43e)](_0xbc8598,{'body':_0x577017}))[_0x5942cf(0x415)]['actions'];}async[_0x43e0c9(0x422)](_0x1d83e4){var _0xa2bd93=_0x43e0c9;const _0x1a2a47=this[_0xa2bd93(0x323)]()+_0xa2bd93(0x1db);return(await this['_HTTPService'][_0xa2bd93(0x43e)](_0x1a2a47,{'body':{'requests':_0x1d83e4}}))[_0xa2bd93(0x415)][_0xa2bd93(0x266)];}async[_0x43e0c9(0x317)](_0x3a6d82){var _0x4689a3=_0x43e0c9;const _0x2f91a2=this['_getAPIPrefixPath']()+'/'+_0x3a6d82[_0x4689a3(0x303)]+_0x4689a3(0x160),_0x2d4b68=await this[_0x4689a3(0x1b7)]['post'](_0x2f91a2,{'body':_0x3a6d82});return{'roles':_0x2d4b68[_0x4689a3(0x415)][_0x4689a3(0x144)],'actions':_0x2d4b68[_0x4689a3(0x415)][_0x4689a3(0x146)]};}async[_0x43e0c9(0x26c)](_0xa56cdb){var _0x3266fa=_0x43e0c9;const _0x122c02=this[_0x3266fa(0x323)]()+'/collaborator';await this[_0x3266fa(0x1b7)][_0x3266fa(0x36b)](_0x122c02,{'params':{'collaboratorID':_0xa56cdb[_0x3266fa(0x3a0)],'objectID':_0xa56cdb[_0x3266fa(0x394)],'unitID':_0xa56cdb[_0x3266fa(0x442)]}});}async[_0x43e0c9(0x235)](_0x347163){var _0x1d96ae=_0x43e0c9;const _0x198a1b=this[_0x1d96ae(0x323)]()+_0x1d96ae(0x2ad);await this[_0x1d96ae(0x1b7)][_0x1d96ae(0x200)](_0x198a1b,{'body':_0x347163});}async[_0x43e0c9(0x22f)](_0x365cfe){var _0x5de9d2=_0x43e0c9;const _0x2a7a22=this['_getAPIPrefixPath']()+_0x5de9d2(0x2ad);await this[_0x5de9d2(0x1b7)][_0x5de9d2(0x43e)](_0x2a7a22,{'body':_0x365cfe});}async[_0x43e0c9(0x25a)](_0xa8c608){var _0x562183=_0x43e0c9;const _0x5aa4f3=this['_getAPIPrefixPath']()+_0x562183(0x2ad);return(await this[_0x562183(0x1b7)][_0x562183(0x1c2)](_0x5aa4f3,{'params':{'objectID':_0xa8c608[_0x562183(0x394)],'unitID':_0xa8c608[_0x562183(0x442)]}}))[_0x562183(0x415)][_0x562183(0x2eb)];}async['putCollaborators'](_0x3b23be){var _0x205327=_0x43e0c9;const _0x54022c=this[_0x205327(0x323)]()+_0x205327(0x2ad);await this['_HTTPService']['put'](_0x54022c,{'body':_0x3b23be});}},__name(_a19,_0x43e0c9(0x3fb)),_a19);AuthzIoHttpService=__decorateClass$8([__decorateParam$8(0x0,Inject(HTTPService)),__decorateParam$8(0x1,Inject(IConfigService))],AuthzIoHttpService);var commonjsGlobal=typeof globalThis<'u'?globalThis:typeof window<'u'?window:typeof global<'u'?global:typeof self<'u'?self:{};function getDefaultExportFromCjs(_0x2dc769){var _0x5d5912=_0x43e0c9;return _0x2dc769&&_0x2dc769[_0x5d5912(0x40d)]&&Object['prototype']['hasOwnProperty'][_0x5d5912(0x314)](_0x2dc769,_0x5d5912(0x110))?_0x2dc769['default']:_0x2dc769;}__name(getDefaultExportFromCjs,'getDefaultExportFromCjs');var aes$1={'exports':{}};function commonjsRequire(_0x5cac79){var _0x375efb=_0x43e0c9;throw new Error(_0x375efb(0x28c)+_0x5cac79+'\x22.\x20Please\x20configure\x20the\x20dynamicRequireTargets\x20or/and\x20ignoreDynamicRequires\x20option\x20of\x20@rollup/plugin-commonjs\x20appropriately\x20for\x20this\x20require\x20call\x20to\x20work.');}__name(commonjsRequire,_0x43e0c9(0x25c));var core$1={'exports':{}},core=core$1[_0x43e0c9(0x2c9)],hasRequiredCore;function requireCore(){var _0xecaa11=_0x43e0c9;return hasRequiredCore||(hasRequiredCore=0x1,function(_0x94815f,_0x2e6cd7){(function(_0x5816af,_0x1a07cb){var _0x3d1023=_0x5029;_0x94815f[_0x3d1023(0x2c9)]=_0x1a07cb();}(core,function(){var _0x367ff4=_0x367ff4||function(_0x24dcbc,_0x138ec0){var _0x19d587=_0x5029,_0xe6b931;if(typeof window<'u'&&window[_0x19d587(0x1da)]&&(_0xe6b931=window[_0x19d587(0x1da)]),typeof self<'u'&&self[_0x19d587(0x1da)]&&(_0xe6b931=self[_0x19d587(0x1da)]),typeof globalThis<'u'&&globalThis['crypto']&&(_0xe6b931=globalThis[_0x19d587(0x1da)]),!_0xe6b931&&typeof window<'u'&&window[_0x19d587(0x2cf)]&&(_0xe6b931=window['msCrypto']),!_0xe6b931&&typeof commonjsGlobal<'u'&&commonjsGlobal[_0x19d587(0x1da)]&&(_0xe6b931=commonjsGlobal[_0x19d587(0x1da)]),!_0xe6b931&&typeof commonjsRequire==_0x19d587(0x3e7))try{_0xe6b931=require(_0x19d587(0x1da));}catch{}var _0x577a53=__name(function(){var _0xbe9997=_0x19d587;if(_0xe6b931){if(typeof _0xe6b931[_0xbe9997(0x2b7)]=='function')try{return _0xe6b931[_0xbe9997(0x2b7)](new Uint32Array(0x1))[0x0];}catch{}if(typeof _0xe6b931['randomBytes']=='function')try{return _0xe6b931[_0xbe9997(0x2b0)](0x4)[_0xbe9997(0x416)]();}catch{}}throw new Error(_0xbe9997(0x41a));},_0x19d587(0x2c3)),_0x167de8=Object[_0x19d587(0x33c)]||(function(){function _0x42d56a(){}return __name(_0x42d56a,'F'),function(_0x144b9d){var _0xd2dc61=_0x5029,_0x120495;return _0x42d56a[_0xd2dc61(0x145)]=_0x144b9d,_0x120495=new _0x42d56a(),_0x42d56a[_0xd2dc61(0x145)]=null,_0x120495;};}()),_0x4ec1ea={},_0x36d575=_0x4ec1ea[_0x19d587(0x2f7)]={},_0x61391d=_0x36d575[_0x19d587(0x312)]=(function(){var _0x37c50c=_0x19d587;return{'extend':__name(function(_0x35ef3f){var _0x5629ff=_0x5029,_0x34221f=_0x167de8(this);return _0x35ef3f&&_0x34221f[_0x5629ff(0x16d)](_0x35ef3f),(!_0x34221f[_0x5629ff(0x3ec)](_0x5629ff(0x21c))||this['init']===_0x34221f[_0x5629ff(0x21c)])&&(_0x34221f[_0x5629ff(0x21c)]=function(){var _0x3f6373=_0x5629ff;_0x34221f[_0x3f6373(0x1e4)][_0x3f6373(0x21c)][_0x3f6373(0x2ba)](this,arguments);}),_0x34221f[_0x5629ff(0x21c)][_0x5629ff(0x145)]=_0x34221f,_0x34221f[_0x5629ff(0x1e4)]=this,_0x34221f;},_0x37c50c(0x10a)),'create':__name(function(){var _0x3a1396=_0x37c50c,_0x561691=this['extend']();return _0x561691[_0x3a1396(0x21c)][_0x3a1396(0x2ba)](_0x561691,arguments),_0x561691;},_0x37c50c(0x33c)),'init':__name(function(){},'init'),'mixIn':__name(function(_0x580397){var _0x4f37c8=_0x37c50c;for(var _0x50b252 in _0x580397)_0x580397[_0x4f37c8(0x3ec)](_0x50b252)&&(this[_0x50b252]=_0x580397[_0x50b252]);_0x580397[_0x4f37c8(0x3ec)]('toString')&&(this['toString']=_0x580397[_0x4f37c8(0x22b)]);},_0x37c50c(0x16d)),'clone':__name(function(){var _0x273b40=_0x37c50c;return this[_0x273b40(0x21c)][_0x273b40(0x145)][_0x273b40(0x10a)](this);},_0x37c50c(0x383))};}()),_0x5d0d36=_0x36d575['WordArray']=_0x61391d['extend']({'init':__name(function(_0x1c75d2,_0x4bec66){var _0x518be6=_0x19d587;_0x1c75d2=this[_0x518be6(0x3b2)]=_0x1c75d2||[],_0x4bec66!=_0x138ec0?this[_0x518be6(0x3bb)]=_0x4bec66:this[_0x518be6(0x3bb)]=_0x1c75d2[_0x518be6(0x233)]*0x4;},'init'),'toString':__name(function(_0x566257){var _0x49df5b=_0x19d587;return(_0x566257||_0x3d394f)[_0x49df5b(0xff)](this);},'toString'),'concat':__name(function(_0x5bb6a8){var _0x286d0c=_0x19d587,_0x210558=this[_0x286d0c(0x3b2)],_0xa4099e=_0x5bb6a8['words'],_0x6c2c71=this[_0x286d0c(0x3bb)],_0x4b3933=_0x5bb6a8[_0x286d0c(0x3bb)];if(this[_0x286d0c(0x154)](),_0x6c2c71%0x4)for(var _0x2c6fd1=0x0;_0x2c6fd1<_0x4b3933;_0x2c6fd1++){var _0x45a0e4=_0xa4099e[_0x2c6fd1>>>0x2]>>>0x18-_0x2c6fd1%0x4*0x8&0xff;_0x210558[_0x6c2c71+_0x2c6fd1>>>0x2]|=_0x45a0e4<<0x18-(_0x6c2c71+_0x2c6fd1)%0x4*0x8;}else{for(var _0x390c5e=0x0;_0x390c5e<_0x4b3933;_0x390c5e+=0x4)_0x210558[_0x6c2c71+_0x390c5e>>>0x2]=_0xa4099e[_0x390c5e>>>0x2];}return this[_0x286d0c(0x3bb)]+=_0x4b3933,this;},_0x19d587(0x354)),'clamp':__name(function(){var _0x158898=_0x19d587,_0x4b38ed=this[_0x158898(0x3b2)],_0x2d9b50=this['sigBytes'];_0x4b38ed[_0x2d9b50>>>0x2]&=0xffffffff<<0x20-_0x2d9b50%0x4*0x8,_0x4b38ed[_0x158898(0x233)]=_0x24dcbc[_0x158898(0x381)](_0x2d9b50/0x4);},'clamp'),'clone':__name(function(){var _0x5063b8=_0x19d587,_0x2fde9e=_0x61391d['clone']['call'](this);return _0x2fde9e[_0x5063b8(0x3b2)]=this[_0x5063b8(0x3b2)]['slice'](0x0),_0x2fde9e;},_0x19d587(0x383)),'random':__name(function(_0x91d187){var _0x1f9136=_0x19d587;for(var _0x22c51e=[],_0x532c51=0x0;_0x532c51<_0x91d187;_0x532c51+=0x4)_0x22c51e[_0x1f9136(0x119)](_0x577a53());return new _0x5d0d36[(_0x1f9136(0x21c))](_0x22c51e,_0x91d187);},_0x19d587(0x22d))}),_0x3006af=_0x4ec1ea[_0x19d587(0x316)]={},_0x3d394f=_0x3006af[_0x19d587(0x2a2)]={'stringify':__name(function(_0x36d853){var _0x46b9f9=_0x19d587;for(var _0x12a13b=_0x36d853[_0x46b9f9(0x3b2)],_0xaa9f3=_0x36d853[_0x46b9f9(0x3bb)],_0x1d30ca=[],_0x5ced6c=0x0;_0x5ced6c<_0xaa9f3;_0x5ced6c++){var _0x4225db=_0x12a13b[_0x5ced6c>>>0x2]>>>0x18-_0x5ced6c%0x4*0x8&0xff;_0x1d30ca[_0x46b9f9(0x119)]((_0x4225db>>>0x4)[_0x46b9f9(0x22b)](0x10)),_0x1d30ca[_0x46b9f9(0x119)]((_0x4225db&0xf)[_0x46b9f9(0x22b)](0x10));}return _0x1d30ca[_0x46b9f9(0x282)]('');},_0x19d587(0xff)),'parse':__name(function(_0x31a8b0){var _0x4ad14b=_0x19d587;for(var _0x24affc=_0x31a8b0['length'],_0x331b66=[],_0x549554=0x0;_0x549554<_0x24affc;_0x549554+=0x2)_0x331b66[_0x549554>>>0x3]|=parseInt(_0x31a8b0[_0x4ad14b(0x29d)](_0x549554,0x2),0x10)<<0x18-_0x549554%0x8*0x4;return new _0x5d0d36['init'](_0x331b66,_0x24affc/0x2);},_0x19d587(0x3eb))},_0xf9ecf5=_0x3006af[_0x19d587(0x3f1)]={'stringify':__name(function(_0x42788d){var _0x40b4e8=_0x19d587;for(var _0x5cc32b=_0x42788d['words'],_0x264e2e=_0x42788d[_0x40b4e8(0x3bb)],_0x5e3081=[],_0x504eae=0x0;_0x504eae<_0x264e2e;_0x504eae++){var _0x5a570c=_0x5cc32b[_0x504eae>>>0x2]>>>0x18-_0x504eae%0x4*0x8&0xff;_0x5e3081[_0x40b4e8(0x119)](String[_0x40b4e8(0x315)](_0x5a570c));}return _0x5e3081[_0x40b4e8(0x282)]('');},_0x19d587(0xff)),'parse':__name(function(_0x52d631){var _0x38382b=_0x19d587;for(var _0x544733=_0x52d631[_0x38382b(0x233)],_0x1d4577=[],_0x577643=0x0;_0x577643<_0x544733;_0x577643++)_0x1d4577[_0x577643>>>0x2]|=(_0x52d631[_0x38382b(0x2f3)](_0x577643)&0xff)<<0x18-_0x577643%0x4*0x8;return new _0x5d0d36[(_0x38382b(0x21c))](_0x1d4577,_0x544733);},_0x19d587(0x3eb))},_0x1e5371=_0x3006af[_0x19d587(0x3fa)]={'stringify':__name(function(_0x57868a){var _0x28635e=_0x19d587;try{return decodeURIComponent(escape(_0xf9ecf5[_0x28635e(0xff)](_0x57868a)));}catch{throw new Error(_0x28635e(0x23d));}},_0x19d587(0xff)),'parse':__name(function(_0x3ea40d){var _0x1b50c4=_0x19d587;return _0xf9ecf5[_0x1b50c4(0x3eb)](unescape(encodeURIComponent(_0x3ea40d)));},_0x19d587(0x3eb))},_0x221bc2=_0x36d575[_0x19d587(0x447)]=_0x61391d[_0x19d587(0x10a)]({'reset':__name(function(){var _0x67cfbf=_0x19d587;this['_data']=new _0x5d0d36['init'](),this[_0x67cfbf(0x30b)]=0x0;},_0x19d587(0x2cd)),'_append':__name(function(_0x156ae1){var _0x2aa7bd=_0x19d587;typeof _0x156ae1=='string'&&(_0x156ae1=_0x1e5371['parse'](_0x156ae1)),this['_data'][_0x2aa7bd(0x354)](_0x156ae1),this[_0x2aa7bd(0x30b)]+=_0x156ae1[_0x2aa7bd(0x3bb)];},_0x19d587(0x100)),'_process':__name(function(_0x308f5b){var _0x14963e=_0x19d587,_0x50ecba,_0x41dd5b=this[_0x14963e(0x27e)],_0x43d3bc=_0x41dd5b[_0x14963e(0x3b2)],_0x4a96bb=_0x41dd5b[_0x14963e(0x3bb)],_0x32ad96=this['blockSize'],_0x334780=_0x32ad96*0x4,_0x2d252c=_0x4a96bb/_0x334780;_0x308f5b?_0x2d252c=_0x24dcbc['ceil'](_0x2d252c):_0x2d252c=_0x24dcbc['max']((_0x2d252c|0x0)-this[_0x14963e(0x131)],0x0);var _0x3ca171=_0x2d252c*_0x32ad96,_0x8c004e=_0x24dcbc[_0x14963e(0x105)](_0x3ca171*0x4,_0x4a96bb);if(_0x3ca171){for(var _0x15a803=0x0;_0x15a803<_0x3ca171;_0x15a803+=_0x32ad96)this[_0x14963e(0x106)](_0x43d3bc,_0x15a803);_0x50ecba=_0x43d3bc[_0x14963e(0x414)](0x0,_0x3ca171),_0x41dd5b[_0x14963e(0x3bb)]-=_0x8c004e;}return new _0x5d0d36['init'](_0x50ecba,_0x8c004e);},'_process'),'clone':__name(function(){var _0x188ade=_0x19d587,_0xc35d91=_0x61391d[_0x188ade(0x383)][_0x188ade(0x314)](this);return _0xc35d91[_0x188ade(0x27e)]=this[_0x188ade(0x27e)][_0x188ade(0x383)](),_0xc35d91;},_0x19d587(0x383)),'_minBufferSize':0x0});_0x36d575[_0x19d587(0x3cc)]=_0x221bc2['extend']({'cfg':_0x61391d['extend'](),'init':__name(function(_0x302976){var _0xd16420=_0x19d587;this[_0xd16420(0x2fa)]=this[_0xd16420(0x2fa)][_0xd16420(0x10a)](_0x302976),this[_0xd16420(0x2cd)]();},_0x19d587(0x21c)),'reset':__name(function(){var _0x4859dd=_0x19d587;_0x221bc2[_0x4859dd(0x2cd)][_0x4859dd(0x314)](this),this['_doReset']();},_0x19d587(0x2cd)),'update':__name(function(_0x32dd46){var _0x25c468=_0x19d587;return this['_append'](_0x32dd46),this[_0x25c468(0x33b)](),this;},_0x19d587(0x349)),'finalize':__name(function(_0x270315){var _0x173430=_0x19d587;_0x270315&&this['_append'](_0x270315);var _0x4c6737=this[_0x173430(0x27f)]();return _0x4c6737;},'finalize'),'blockSize':0x10,'_createHelper':__name(function(_0x20391c){return function(_0x26053c,_0x469e51){var _0x5b0270=_0x5029;return new _0x20391c[(_0x5b0270(0x21c))](_0x469e51)[_0x5b0270(0x426)](_0x26053c);};},_0x19d587(0x1e3)),'_createHmacHelper':__name(function(_0x4106ca){return function(_0x4eea35,_0x501008){var _0x21f363=_0x5029;return new _0x1528ad[(_0x21f363(0x17e))][(_0x21f363(0x21c))](_0x4106ca,_0x501008)[_0x21f363(0x426)](_0x4eea35);};},_0x19d587(0x29a))});var _0x1528ad=_0x4ec1ea[_0x19d587(0x2ff)]={};return _0x4ec1ea;}(Math);return _0x367ff4;}));}(core$1)),core$1[_0xecaa11(0x2c9)];}__name(requireCore,_0x43e0c9(0x2d2));var encBase64$1={'exports':{}},encBase64=encBase64$1[_0x43e0c9(0x2c9)],hasRequiredEncBase64;function requireEncBase64(){var _0x2879f7=_0x43e0c9;return hasRequiredEncBase64||(hasRequiredEncBase64=0x1,function(_0xfac425,_0x3c7210){(function(_0x40cb32,_0x16eec7){var _0x4f30fd=_0x5029;_0xfac425[_0x4f30fd(0x2c9)]=_0x16eec7(requireCore());}(encBase64,function(_0x219e9e){var _0x47b5c0=_0x5029;return(function(){var _0x1bd527=_0x5029,_0x2c286b=_0x219e9e,_0x202a12=_0x2c286b[_0x1bd527(0x2f7)],_0x30a91=_0x202a12[_0x1bd527(0x2ce)],_0x522e6e=_0x2c286b[_0x1bd527(0x316)];_0x522e6e[_0x1bd527(0x296)]={'stringify':__name(function(_0x30f89c){var _0x57a741=_0x1bd527,_0x20e59f=_0x30f89c[_0x57a741(0x3b2)],_0x35d747=_0x30f89c[_0x57a741(0x3bb)],_0x208ec3=this['_map'];_0x30f89c[_0x57a741(0x154)]();for(var _0x86b168=[],_0xbf788c=0x0;_0xbf788c<_0x35d747;_0xbf788c+=0x3)for(var _0x4111c1=_0x20e59f[_0xbf788c>>>0x2]>>>0x18-_0xbf788c%0x4*0x8&0xff,_0x42c9e3=_0x20e59f[_0xbf788c+0x1>>>0x2]>>>0x18-(_0xbf788c+0x1)%0x4*0x8&0xff,_0x4eb2e2=_0x20e59f[_0xbf788c+0x2>>>0x2]>>>0x18-(_0xbf788c+0x2)%0x4*0x8&0xff,_0x4ad57f=_0x4111c1<<0x10|_0x42c9e3<<0x8|_0x4eb2e2,_0x3f4bdf=0x0;_0x3f4bdf<0x4&&_0xbf788c+_0x3f4bdf*0.75<_0x35d747;_0x3f4bdf++)_0x86b168[_0x57a741(0x119)](_0x208ec3[_0x57a741(0x2f4)](_0x4ad57f>>>0x6*(0x3-_0x3f4bdf)&0x3f));var _0x10af37=_0x208ec3[_0x57a741(0x2f4)](0x40);if(_0x10af37){for(;_0x86b168['length']%0x4;)_0x86b168['push'](_0x10af37);}return _0x86b168[_0x57a741(0x282)]('');},'stringify'),'parse':__name(function(_0x409308){var _0xf371b2=_0x1bd527,_0x222b54=_0x409308[_0xf371b2(0x233)],_0x286a5f=this[_0xf371b2(0x196)],_0x1acf97=this[_0xf371b2(0x2de)];if(!_0x1acf97){_0x1acf97=this['_reverseMap']=[];for(var _0x572124=0x0;_0x572124<_0x286a5f[_0xf371b2(0x233)];_0x572124++)_0x1acf97[_0x286a5f[_0xf371b2(0x2f3)](_0x572124)]=_0x572124;}var _0x2a9bb3=_0x286a5f['charAt'](0x40);if(_0x2a9bb3){var _0x599c3c=_0x409308[_0xf371b2(0x355)](_0x2a9bb3);_0x599c3c!==-0x1&&(_0x222b54=_0x599c3c);}return _0x21eae0(_0x409308,_0x222b54,_0x1acf97);},'parse'),'_map':_0x1bd527(0x27a)};function _0x21eae0(_0x41c4ad,_0xef34a3,_0x2c3f29){var _0x2105b5=_0x1bd527;for(var _0x3eab8a=[],_0x16fe6f=0x0,_0x54fac8=0x0;_0x54fac8<_0xef34a3;_0x54fac8++)if(_0x54fac8%0x4){var _0x3b5698=_0x2c3f29[_0x41c4ad[_0x2105b5(0x2f3)](_0x54fac8-0x1)]<<_0x54fac8%0x4*0x2,_0x3064d7=_0x2c3f29[_0x41c4ad[_0x2105b5(0x2f3)](_0x54fac8)]>>>0x6-_0x54fac8%0x4*0x2,_0x5a7dfd=_0x3b5698|_0x3064d7;_0x3eab8a[_0x16fe6f>>>0x2]|=_0x5a7dfd<<0x18-_0x16fe6f%0x4*0x8,_0x16fe6f++;}return _0x30a91[_0x2105b5(0x33c)](_0x3eab8a,_0x16fe6f);}__name(_0x21eae0,_0x1bd527(0x388));}()),_0x219e9e[_0x47b5c0(0x316)][_0x47b5c0(0x296)];}));}(encBase64$1)),encBase64$1[_0x2879f7(0x2c9)];}__name(requireEncBase64,'requireEncBase64');var md5$1={'exports':{}},md5=md5$1[_0x43e0c9(0x2c9)],hasRequiredMd5;function requireMd5(){var _0x445232=_0x43e0c9;return hasRequiredMd5||(hasRequiredMd5=0x1,function(_0x1e1932,_0x292453){(function(_0x129e0e,_0x59f8d7){_0x1e1932['exports']=_0x59f8d7(requireCore());}(md5,function(_0x2020db){var _0x5efa8d=_0x5029;return function(_0x5419c2){var _0x137269=_0x5029,_0x1f1dca=_0x2020db,_0x4ce837=_0x1f1dca[_0x137269(0x2f7)],_0x48465c=_0x4ce837[_0x137269(0x2ce)],_0x5f0c68=_0x4ce837['Hasher'],_0x28afeb=_0x1f1dca['algo'],_0x384bf1=[];(function(){var _0x553e17=_0x137269;for(var _0x44b5cb=0x0;_0x44b5cb<0x40;_0x44b5cb++)_0x384bf1[_0x44b5cb]=_0x5419c2[_0x553e17(0x331)](_0x5419c2[_0x553e17(0x1e1)](_0x44b5cb+0x1))*0x100000000|0x0;}());var _0xdb31c5=_0x28afeb['MD5']=_0x5f0c68[_0x137269(0x10a)]({'_doReset':__name(function(){var _0x10f8ce=_0x137269;this['_hash']=new _0x48465c[(_0x10f8ce(0x21c))]([0x67452301,0xefcdab89,0x98badcfe,0x10325476]);},_0x137269(0x142)),'_doProcessBlock':__name(function(_0x2dbf25,_0x4a9f7b){var _0x25cc78=_0x137269;for(var _0x184028=0x0;_0x184028<0x10;_0x184028++){var _0x128f97=_0x4a9f7b+_0x184028,_0x4bcc34=_0x2dbf25[_0x128f97];_0x2dbf25[_0x128f97]=(_0x4bcc34<<0x8|_0x4bcc34>>>0x18)&0xff00ff|(_0x4bcc34<<0x18|_0x4bcc34>>>0x8)&0xff00ff00;}var _0x380b58=this[_0x25cc78(0x2bd)][_0x25cc78(0x3b2)],_0x16049f=_0x2dbf25[_0x4a9f7b+0x0],_0x42ea01=_0x2dbf25[_0x4a9f7b+0x1],_0x426730=_0x2dbf25[_0x4a9f7b+0x2],_0x1fb618=_0x2dbf25[_0x4a9f7b+0x3],_0x36d81c=_0x2dbf25[_0x4a9f7b+0x4],_0x2f0906=_0x2dbf25[_0x4a9f7b+0x5],_0x4431e4=_0x2dbf25[_0x4a9f7b+0x6],_0x4e3b93=_0x2dbf25[_0x4a9f7b+0x7],_0x10a924=_0x2dbf25[_0x4a9f7b+0x8],_0x155f8f=_0x2dbf25[_0x4a9f7b+0x9],_0x140e40=_0x2dbf25[_0x4a9f7b+0xa],_0x3def50=_0x2dbf25[_0x4a9f7b+0xb],_0x3fcead=_0x2dbf25[_0x4a9f7b+0xc],_0x5e9323=_0x2dbf25[_0x4a9f7b+0xd],_0x58db76=_0x2dbf25[_0x4a9f7b+0xe],_0x37fada=_0x2dbf25[_0x4a9f7b+0xf],_0x58593e=_0x380b58[0x0],_0x349c1e=_0x380b58[0x1],_0x3923f9=_0x380b58[0x2],_0x729e76=_0x380b58[0x3];_0x58593e=_0x57e147(_0x58593e,_0x349c1e,_0x3923f9,_0x729e76,_0x16049f,0x7,_0x384bf1[0x0]),_0x729e76=_0x57e147(_0x729e76,_0x58593e,_0x349c1e,_0x3923f9,_0x42ea01,0xc,_0x384bf1[0x1]),_0x3923f9=_0x57e147(_0x3923f9,_0x729e76,_0x58593e,_0x349c1e,_0x426730,0x11,_0x384bf1[0x2]),_0x349c1e=_0x57e147(_0x349c1e,_0x3923f9,_0x729e76,_0x58593e,_0x1fb618,0x16,_0x384bf1[0x3]),_0x58593e=_0x57e147(_0x58593e,_0x349c1e,_0x3923f9,_0x729e76,_0x36d81c,0x7,_0x384bf1[0x4]),_0x729e76=_0x57e147(_0x729e76,_0x58593e,_0x349c1e,_0x3923f9,_0x2f0906,0xc,_0x384bf1[0x5]),_0x3923f9=_0x57e147(_0x3923f9,_0x729e76,_0x58593e,_0x349c1e,_0x4431e4,0x11,_0x384bf1[0x6]),_0x349c1e=_0x57e147(_0x349c1e,_0x3923f9,_0x729e76,_0x58593e,_0x4e3b93,0x16,_0x384bf1[0x7]),_0x58593e=_0x57e147(_0x58593e,_0x349c1e,_0x3923f9,_0x729e76,_0x10a924,0x7,_0x384bf1[0x8]),_0x729e76=_0x57e147(_0x729e76,_0x58593e,_0x349c1e,_0x3923f9,_0x155f8f,0xc,_0x384bf1[0x9]),_0x3923f9=_0x57e147(_0x3923f9,_0x729e76,_0x58593e,_0x349c1e,_0x140e40,0x11,_0x384bf1[0xa]),_0x349c1e=_0x57e147(_0x349c1e,_0x3923f9,_0x729e76,_0x58593e,_0x3def50,0x16,_0x384bf1[0xb]),_0x58593e=_0x57e147(_0x58593e,_0x349c1e,_0x3923f9,_0x729e76,_0x3fcead,0x7,_0x384bf1[0xc]),_0x729e76=_0x57e147(_0x729e76,_0x58593e,_0x349c1e,_0x3923f9,_0x5e9323,0xc,_0x384bf1[0xd]),_0x3923f9=_0x57e147(_0x3923f9,_0x729e76,_0x58593e,_0x349c1e,_0x58db76,0x11,_0x384bf1[0xe]),_0x349c1e=_0x57e147(_0x349c1e,_0x3923f9,_0x729e76,_0x58593e,_0x37fada,0x16,_0x384bf1[0xf]),_0x58593e=_0x21ce6e(_0x58593e,_0x349c1e,_0x3923f9,_0x729e76,_0x42ea01,0x5,_0x384bf1[0x10]),_0x729e76=_0x21ce6e(_0x729e76,_0x58593e,_0x349c1e,_0x3923f9,_0x4431e4,0x9,_0x384bf1[0x11]),_0x3923f9=_0x21ce6e(_0x3923f9,_0x729e76,_0x58593e,_0x349c1e,_0x3def50,0xe,_0x384bf1[0x12]),_0x349c1e=_0x21ce6e(_0x349c1e,_0x3923f9,_0x729e76,_0x58593e,_0x16049f,0x14,_0x384bf1[0x13]),_0x58593e=_0x21ce6e(_0x58593e,_0x349c1e,_0x3923f9,_0x729e76,_0x2f0906,0x5,_0x384bf1[0x14]),_0x729e76=_0x21ce6e(_0x729e76,_0x58593e,_0x349c1e,_0x3923f9,_0x140e40,0x9,_0x384bf1[0x15]),_0x3923f9=_0x21ce6e(_0x3923f9,_0x729e76,_0x58593e,_0x349c1e,_0x37fada,0xe,_0x384bf1[0x16]),_0x349c1e=_0x21ce6e(_0x349c1e,_0x3923f9,_0x729e76,_0x58593e,_0x36d81c,0x14,_0x384bf1[0x17]),_0x58593e=_0x21ce6e(_0x58593e,_0x349c1e,_0x3923f9,_0x729e76,_0x155f8f,0x5,_0x384bf1[0x18]),_0x729e76=_0x21ce6e(_0x729e76,_0x58593e,_0x349c1e,_0x3923f9,_0x58db76,0x9,_0x384bf1[0x19]),_0x3923f9=_0x21ce6e(_0x3923f9,_0x729e76,_0x58593e,_0x349c1e,_0x1fb618,0xe,_0x384bf1[0x1a]),_0x349c1e=_0x21ce6e(_0x349c1e,_0x3923f9,_0x729e76,_0x58593e,_0x10a924,0x14,_0x384bf1[0x1b]),_0x58593e=_0x21ce6e(_0x58593e,_0x349c1e,_0x3923f9,_0x729e76,_0x5e9323,0x5,_0x384bf1[0x1c]),_0x729e76=_0x21ce6e(_0x729e76,_0x58593e,_0x349c1e,_0x3923f9,_0x426730,0x9,_0x384bf1[0x1d]),_0x3923f9=_0x21ce6e(_0x3923f9,_0x729e76,_0x58593e,_0x349c1e,_0x4e3b93,0xe,_0x384bf1[0x1e]),_0x349c1e=_0x21ce6e(_0x349c1e,_0x3923f9,_0x729e76,_0x58593e,_0x3fcead,0x14,_0x384bf1[0x1f]),_0x58593e=_0x58d1b2(_0x58593e,_0x349c1e,_0x3923f9,_0x729e76,_0x2f0906,0x4,_0x384bf1[0x20]),_0x729e76=_0x58d1b2(_0x729e76,_0x58593e,_0x349c1e,_0x3923f9,_0x10a924,0xb,_0x384bf1[0x21]),_0x3923f9=_0x58d1b2(_0x3923f9,_0x729e76,_0x58593e,_0x349c1e,_0x3def50,0x10,_0x384bf1[0x22]),_0x349c1e=_0x58d1b2(_0x349c1e,_0x3923f9,_0x729e76,_0x58593e,_0x58db76,0x17,_0x384bf1[0x23]),_0x58593e=_0x58d1b2(_0x58593e,_0x349c1e,_0x3923f9,_0x729e76,_0x42ea01,0x4,_0x384bf1[0x24]),_0x729e76=_0x58d1b2(_0x729e76,_0x58593e,_0x349c1e,_0x3923f9,_0x36d81c,0xb,_0x384bf1[0x25]),_0x3923f9=_0x58d1b2(_0x3923f9,_0x729e76,_0x58593e,_0x349c1e,_0x4e3b93,0x10,_0x384bf1[0x26]),_0x349c1e=_0x58d1b2(_0x349c1e,_0x3923f9,_0x729e76,_0x58593e,_0x140e40,0x17,_0x384bf1[0x27]),_0x58593e=_0x58d1b2(_0x58593e,_0x349c1e,_0x3923f9,_0x729e76,_0x5e9323,0x4,_0x384bf1[0x28]),_0x729e76=_0x58d1b2(_0x729e76,_0x58593e,_0x349c1e,_0x3923f9,_0x16049f,0xb,_0x384bf1[0x29]),_0x3923f9=_0x58d1b2(_0x3923f9,_0x729e76,_0x58593e,_0x349c1e,_0x1fb618,0x10,_0x384bf1[0x2a]),_0x349c1e=_0x58d1b2(_0x349c1e,_0x3923f9,_0x729e76,_0x58593e,_0x4431e4,0x17,_0x384bf1[0x2b]),_0x58593e=_0x58d1b2(_0x58593e,_0x349c1e,_0x3923f9,_0x729e76,_0x155f8f,0x4,_0x384bf1[0x2c]),_0x729e76=_0x58d1b2(_0x729e76,_0x58593e,_0x349c1e,_0x3923f9,_0x3fcead,0xb,_0x384bf1[0x2d]),_0x3923f9=_0x58d1b2(_0x3923f9,_0x729e76,_0x58593e,_0x349c1e,_0x37fada,0x10,_0x384bf1[0x2e]),_0x349c1e=_0x58d1b2(_0x349c1e,_0x3923f9,_0x729e76,_0x58593e,_0x426730,0x17,_0x384bf1[0x2f]),_0x58593e=_0x15253a(_0x58593e,_0x349c1e,_0x3923f9,_0x729e76,_0x16049f,0x6,_0x384bf1[0x30]),_0x729e76=_0x15253a(_0x729e76,_0x58593e,_0x349c1e,_0x3923f9,_0x4e3b93,0xa,_0x384bf1[0x31]),_0x3923f9=_0x15253a(_0x3923f9,_0x729e76,_0x58593e,_0x349c1e,_0x58db76,0xf,_0x384bf1[0x32]),_0x349c1e=_0x15253a(_0x349c1e,_0x3923f9,_0x729e76,_0x58593e,_0x2f0906,0x15,_0x384bf1[0x33]),_0x58593e=_0x15253a(_0x58593e,_0x349c1e,_0x3923f9,_0x729e76,_0x3fcead,0x6,_0x384bf1[0x34]),_0x729e76=_0x15253a(_0x729e76,_0x58593e,_0x349c1e,_0x3923f9,_0x1fb618,0xa,_0x384bf1[0x35]),_0x3923f9=_0x15253a(_0x3923f9,_0x729e76,_0x58593e,_0x349c1e,_0x140e40,0xf,_0x384bf1[0x36]),_0x349c1e=_0x15253a(_0x349c1e,_0x3923f9,_0x729e76,_0x58593e,_0x42ea01,0x15,_0x384bf1[0x37]),_0x58593e=_0x15253a(_0x58593e,_0x349c1e,_0x3923f9,_0x729e76,_0x10a924,0x6,_0x384bf1[0x38]),_0x729e76=_0x15253a(_0x729e76,_0x58593e,_0x349c1e,_0x3923f9,_0x37fada,0xa,_0x384bf1[0x39]),_0x3923f9=_0x15253a(_0x3923f9,_0x729e76,_0x58593e,_0x349c1e,_0x4431e4,0xf,_0x384bf1[0x3a]),_0x349c1e=_0x15253a(_0x349c1e,_0x3923f9,_0x729e76,_0x58593e,_0x5e9323,0x15,_0x384bf1[0x3b]),_0x58593e=_0x15253a(_0x58593e,_0x349c1e,_0x3923f9,_0x729e76,_0x36d81c,0x6,_0x384bf1[0x3c]),_0x729e76=_0x15253a(_0x729e76,_0x58593e,_0x349c1e,_0x3923f9,_0x3def50,0xa,_0x384bf1[0x3d]),_0x3923f9=_0x15253a(_0x3923f9,_0x729e76,_0x58593e,_0x349c1e,_0x426730,0xf,_0x384bf1[0x3e]),_0x349c1e=_0x15253a(_0x349c1e,_0x3923f9,_0x729e76,_0x58593e,_0x155f8f,0x15,_0x384bf1[0x3f]),_0x380b58[0x0]=_0x380b58[0x0]+_0x58593e|0x0,_0x380b58[0x1]=_0x380b58[0x1]+_0x349c1e|0x0,_0x380b58[0x2]=_0x380b58[0x2]+_0x3923f9|0x0,_0x380b58[0x3]=_0x380b58[0x3]+_0x729e76|0x0;},'_doProcessBlock'),'_doFinalize':__name(function(){var _0x952705=_0x137269,_0x2d5331=this[_0x952705(0x27e)],_0x5eb53b=_0x2d5331[_0x952705(0x3b2)],_0x3f9c43=this[_0x952705(0x30b)]*0x8,_0xb8d749=_0x2d5331['sigBytes']*0x8;_0x5eb53b[_0xb8d749>>>0x5]|=0x80<<0x18-_0xb8d749%0x20;var _0x2bf46a=_0x5419c2[_0x952705(0x2b2)](_0x3f9c43/0x100000000),_0x3c0f1a=_0x3f9c43;_0x5eb53b[(_0xb8d749+0x40>>>0x9<<0x4)+0xf]=(_0x2bf46a<<0x8|_0x2bf46a>>>0x18)&0xff00ff|(_0x2bf46a<<0x18|_0x2bf46a>>>0x8)&0xff00ff00,_0x5eb53b[(_0xb8d749+0x40>>>0x9<<0x4)+0xe]=(_0x3c0f1a<<0x8|_0x3c0f1a>>>0x18)&0xff00ff|(_0x3c0f1a<<0x18|_0x3c0f1a>>>0x8)&0xff00ff00,_0x2d5331[_0x952705(0x3bb)]=(_0x5eb53b[_0x952705(0x233)]+0x1)*0x4,this[_0x952705(0x33b)]();for(var _0xacdc83=this[_0x952705(0x2bd)],_0xa36a45=_0xacdc83[_0x952705(0x3b2)],_0x167298=0x0;_0x167298<0x4;_0x167298++){var _0x35b09b=_0xa36a45[_0x167298];_0xa36a45[_0x167298]=(_0x35b09b<<0x8|_0x35b09b>>>0x18)&0xff00ff|(_0x35b09b<<0x18|_0x35b09b>>>0x8)&0xff00ff00;}return _0xacdc83;},_0x137269(0x27f)),'clone':__name(function(){var _0x3a6ebf=_0x137269,_0x25fab5=_0x5f0c68['clone']['call'](this);return _0x25fab5[_0x3a6ebf(0x2bd)]=this[_0x3a6ebf(0x2bd)][_0x3a6ebf(0x383)](),_0x25fab5;},_0x137269(0x383))});function _0x57e147(_0x1bd106,_0x365559,_0x465842,_0x3e6787,_0x1306c5,_0x3465b5,_0xc95ce5){var _0x227b1c=_0x1bd106+(_0x365559&_0x465842|~_0x365559&_0x3e6787)+_0x1306c5+_0xc95ce5;return(_0x227b1c<<_0x3465b5|_0x227b1c>>>0x20-_0x3465b5)+_0x365559;}__name(_0x57e147,'FF');function _0x21ce6e(_0x472a65,_0x4d1550,_0x26caac,_0x39627e,_0x57feb0,_0x696d04,_0x1584a6){var _0x1b31cc=_0x472a65+(_0x4d1550&_0x39627e|_0x26caac&~_0x39627e)+_0x57feb0+_0x1584a6;return(_0x1b31cc<<_0x696d04|_0x1b31cc>>>0x20-_0x696d04)+_0x4d1550;}__name(_0x21ce6e,'GG');function _0x58d1b2(_0x106e87,_0x48632d,_0xf44beb,_0x22b256,_0x1440ad,_0x19dc25,_0x306995){var _0x199a74=_0x106e87+(_0x48632d^_0xf44beb^_0x22b256)+_0x1440ad+_0x306995;return(_0x199a74<<_0x19dc25|_0x199a74>>>0x20-_0x19dc25)+_0x48632d;}__name(_0x58d1b2,'HH');function _0x15253a(_0x2efdc0,_0x1dcb75,_0x1a5515,_0x3f3039,_0x194f69,_0x109c4e,_0x539d1c){var _0x5a8c66=_0x2efdc0+(_0x1a5515^(_0x1dcb75|~_0x3f3039))+_0x194f69+_0x539d1c;return(_0x5a8c66<<_0x109c4e|_0x5a8c66>>>0x20-_0x109c4e)+_0x1dcb75;}__name(_0x15253a,'II'),_0x1f1dca['MD5']=_0x5f0c68[_0x137269(0x1e3)](_0xdb31c5),_0x1f1dca[_0x137269(0x2f8)]=_0x5f0c68['_createHmacHelper'](_0xdb31c5);}(Math),_0x2020db[_0x5efa8d(0x44c)];}));}(md5$1)),md5$1[_0x445232(0x2c9)];}__name(requireMd5,_0x43e0c9(0x357));var evpkdf$1={'exports':{}},sha1$1={'exports':{}},sha1=sha1$1[_0x43e0c9(0x2c9)],hasRequiredSha1;function requireSha1(){var _0x3c54e8=_0x43e0c9;return hasRequiredSha1||(hasRequiredSha1=0x1,function(_0x55526d,_0x391430){(function(_0x246c0f,_0x259e21){var _0x3a3f34=_0x5029;_0x55526d[_0x3a3f34(0x2c9)]=_0x259e21(requireCore());}(sha1,function(_0x40b3a3){var _0x95fc13=_0x5029;return(function(){var _0x161f49=_0x5029,_0x5269ad=_0x40b3a3,_0x3e9c3b=_0x5269ad[_0x161f49(0x2f7)],_0x10b597=_0x3e9c3b[_0x161f49(0x2ce)],_0x5a8718=_0x3e9c3b[_0x161f49(0x3cc)],_0x58cca6=_0x5269ad[_0x161f49(0x2ff)],_0x5d90a5=[],_0x1fc9b5=_0x58cca6[_0x161f49(0x17f)]=_0x5a8718[_0x161f49(0x10a)]({'_doReset':__name(function(){var _0x40b90d=_0x161f49;this[_0x40b90d(0x2bd)]=new _0x10b597[(_0x40b90d(0x21c))]([0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0]);},_0x161f49(0x142)),'_doProcessBlock':__name(function(_0x406dfc,_0x4f1407){var _0x3374ca=_0x161f49;for(var _0x389833=this[_0x3374ca(0x2bd)]['words'],_0x102b83=_0x389833[0x0],_0xb0d0b3=_0x389833[0x1],_0x14e974=_0x389833[0x2],_0x5aac57=_0x389833[0x3],_0x591440=_0x389833[0x4],_0x137158=0x0;_0x137158<0x50;_0x137158++){if(_0x137158<0x10)_0x5d90a5[_0x137158]=_0x406dfc[_0x4f1407+_0x137158]|0x0;else{var _0x4c5098=_0x5d90a5[_0x137158-0x3]^_0x5d90a5[_0x137158-0x8]^_0x5d90a5[_0x137158-0xe]^_0x5d90a5[_0x137158-0x10];_0x5d90a5[_0x137158]=_0x4c5098<<0x1|_0x4c5098>>>0x1f;}var _0x496b24=(_0x102b83<<0x5|_0x102b83>>>0x1b)+_0x591440+_0x5d90a5[_0x137158];_0x137158<0x14?_0x496b24+=(_0xb0d0b3&_0x14e974|~_0xb0d0b3&_0x5aac57)+0x5a827999:_0x137158<0x28?_0x496b24+=(_0xb0d0b3^_0x14e974^_0x5aac57)+0x6ed9eba1:_0x137158<0x3c?_0x496b24+=(_0xb0d0b3&_0x14e974|_0xb0d0b3&_0x5aac57|_0x14e974&_0x5aac57)-0x70e44324:_0x496b24+=(_0xb0d0b3^_0x14e974^_0x5aac57)-0x359d3e2a,_0x591440=_0x5aac57,_0x5aac57=_0x14e974,_0x14e974=_0xb0d0b3<<0x1e|_0xb0d0b3>>>0x2,_0xb0d0b3=_0x102b83,_0x102b83=_0x496b24;}_0x389833[0x0]=_0x389833[0x0]+_0x102b83|0x0,_0x389833[0x1]=_0x389833[0x1]+_0xb0d0b3|0x0,_0x389833[0x2]=_0x389833[0x2]+_0x14e974|0x0,_0x389833[0x3]=_0x389833[0x3]+_0x5aac57|0x0,_0x389833[0x4]=_0x389833[0x4]+_0x591440|0x0;},'_doProcessBlock'),'_doFinalize':__name(function(){var _0x203843=_0x161f49,_0x5e6a2=this[_0x203843(0x27e)],_0x4f74c9=_0x5e6a2[_0x203843(0x3b2)],_0x142288=this[_0x203843(0x30b)]*0x8,_0x1a18dc=_0x5e6a2['sigBytes']*0x8;return _0x4f74c9[_0x1a18dc>>>0x5]|=0x80<<0x18-_0x1a18dc%0x20,_0x4f74c9[(_0x1a18dc+0x40>>>0x9<<0x4)+0xe]=Math[_0x203843(0x2b2)](_0x142288/0x100000000),_0x4f74c9[(_0x1a18dc+0x40>>>0x9<<0x4)+0xf]=_0x142288,_0x5e6a2[_0x203843(0x3bb)]=_0x4f74c9[_0x203843(0x233)]*0x4,this[_0x203843(0x33b)](),this[_0x203843(0x2bd)];},'_doFinalize'),'clone':__name(function(){var _0x289542=_0x161f49,_0x4af0a8=_0x5a8718[_0x289542(0x383)][_0x289542(0x314)](this);return _0x4af0a8[_0x289542(0x2bd)]=this['_hash'][_0x289542(0x383)](),_0x4af0a8;},_0x161f49(0x383))});_0x5269ad[_0x161f49(0x17f)]=_0x5a8718['_createHelper'](_0x1fc9b5),_0x5269ad[_0x161f49(0x356)]=_0x5a8718[_0x161f49(0x29a)](_0x1fc9b5);}()),_0x40b3a3[_0x95fc13(0x17f)];}));}(sha1$1)),sha1$1[_0x3c54e8(0x2c9)];}__name(requireSha1,_0x43e0c9(0x3c5));var hmac$1={'exports':{}},hmac=hmac$1[_0x43e0c9(0x2c9)],hasRequiredHmac;function requireHmac(){var _0xb38622=_0x43e0c9;return hasRequiredHmac||(hasRequiredHmac=0x1,function(_0x37ffda,_0xb3a4b3){(function(_0x1565e4,_0x33d5df){var _0x44e1d1=_0x5029;_0x37ffda[_0x44e1d1(0x2c9)]=_0x33d5df(requireCore());}(hmac,function(_0x23c537){(function(){var _0x2ae2ea=_0x5029,_0x904ef7=_0x23c537,_0x321aa1=_0x904ef7[_0x2ae2ea(0x2f7)],_0x39ce29=_0x321aa1['Base'],_0x264d0d=_0x904ef7[_0x2ae2ea(0x316)],_0x5a5bf4=_0x264d0d[_0x2ae2ea(0x3fa)],_0x3b7c2f=_0x904ef7['algo'];_0x3b7c2f[_0x2ae2ea(0x17e)]=_0x39ce29['extend']({'init':__name(function(_0x1c37a3,_0xa4683d){var _0x11d628=_0x2ae2ea;_0x1c37a3=this[_0x11d628(0x367)]=new _0x1c37a3[(_0x11d628(0x21c))](),typeof _0xa4683d==_0x11d628(0x17a)&&(_0xa4683d=_0x5a5bf4[_0x11d628(0x3eb)](_0xa4683d));var _0x36f11b=_0x1c37a3[_0x11d628(0x30c)],_0x2a9761=_0x36f11b*0x4;_0xa4683d[_0x11d628(0x3bb)]>_0x2a9761&&(_0xa4683d=_0x1c37a3[_0x11d628(0x426)](_0xa4683d)),_0xa4683d[_0x11d628(0x154)]();for(var _0x30a804=this[_0x11d628(0x13b)]=_0xa4683d['clone'](),_0x42b149=this[_0x11d628(0x363)]=_0xa4683d[_0x11d628(0x383)](),_0x381674=_0x30a804[_0x11d628(0x3b2)],_0x46bac0=_0x42b149[_0x11d628(0x3b2)],_0x91a2ce=0x0;_0x91a2ce<_0x36f11b;_0x91a2ce++)_0x381674[_0x91a2ce]^=0x5c5c5c5c,_0x46bac0[_0x91a2ce]^=0x36363636;_0x30a804[_0x11d628(0x3bb)]=_0x42b149[_0x11d628(0x3bb)]=_0x2a9761,this[_0x11d628(0x2cd)]();},_0x2ae2ea(0x21c)),'reset':__name(function(){var _0x1866d5=_0x2ae2ea,_0x1b0ce9=this[_0x1866d5(0x367)];_0x1b0ce9['reset'](),_0x1b0ce9['update'](this[_0x1866d5(0x363)]);},_0x2ae2ea(0x2cd)),'update':__name(function(_0x565ed3){var _0x24d738=_0x2ae2ea;return this[_0x24d738(0x367)]['update'](_0x565ed3),this;},'update'),'finalize':__name(function(_0x44ada6){var _0x1fd4ca=_0x2ae2ea,_0x206700=this[_0x1fd4ca(0x367)],_0x8e5c57=_0x206700[_0x1fd4ca(0x426)](_0x44ada6);_0x206700[_0x1fd4ca(0x2cd)]();var _0x1d53c7=_0x206700[_0x1fd4ca(0x426)](this['_oKey'][_0x1fd4ca(0x383)]()[_0x1fd4ca(0x354)](_0x8e5c57));return _0x1d53c7;},_0x2ae2ea(0x426))});}());}));}(hmac$1)),hmac$1[_0xb38622(0x2c9)];}__name(requireHmac,_0x43e0c9(0x18d));var evpkdf=evpkdf$1[_0x43e0c9(0x2c9)],hasRequiredEvpkdf;function requireEvpkdf(){var _0x4679e4=_0x43e0c9;return hasRequiredEvpkdf||(hasRequiredEvpkdf=0x1,function(_0x393750,_0x4f3c9f){(function(_0x3083be,_0x384378,_0x2acc12){var _0xa64b87=_0x5029;_0x393750[_0xa64b87(0x2c9)]=_0x384378(requireCore(),requireSha1(),requireHmac());}(evpkdf,function(_0x3319de){var _0xb400c0=_0x5029;return(function(){var _0x43116b=_0x5029,_0x571b58=_0x3319de,_0xbadd05=_0x571b58['lib'],_0x356647=_0xbadd05[_0x43116b(0x312)],_0x37fc6d=_0xbadd05[_0x43116b(0x2ce)],_0x30482c=_0x571b58[_0x43116b(0x2ff)],_0x3a34b4=_0x30482c[_0x43116b(0x44c)],_0x5e49be=_0x30482c[_0x43116b(0x231)]=_0x356647[_0x43116b(0x10a)]({'cfg':_0x356647['extend']({'keySize':0x80/0x20,'hasher':_0x3a34b4,'iterations':0x1}),'init':__name(function(_0x3fddab){var _0x280ec3=_0x43116b;this[_0x280ec3(0x2fa)]=this[_0x280ec3(0x2fa)][_0x280ec3(0x10a)](_0x3fddab);},'init'),'compute':__name(function(_0x10ba44,_0x246566){var _0x4a5cdb=_0x43116b;for(var _0x18f605,_0x99abe6=this[_0x4a5cdb(0x2fa)],_0x1076d0=_0x99abe6['hasher'][_0x4a5cdb(0x33c)](),_0x4cc4a4=_0x37fc6d[_0x4a5cdb(0x33c)](),_0xb9bcb=_0x4cc4a4['words'],_0x1f2abe=_0x99abe6[_0x4a5cdb(0x3ff)],_0xbc7f0e=_0x99abe6['iterations'];_0xb9bcb['length']<_0x1f2abe;){_0x18f605&&_0x1076d0[_0x4a5cdb(0x349)](_0x18f605),_0x18f605=_0x1076d0[_0x4a5cdb(0x349)](_0x10ba44)[_0x4a5cdb(0x426)](_0x246566),_0x1076d0[_0x4a5cdb(0x2cd)]();for(var _0x233cb2=0x1;_0x233cb2<_0xbc7f0e;_0x233cb2++)_0x18f605=_0x1076d0[_0x4a5cdb(0x426)](_0x18f605),_0x1076d0[_0x4a5cdb(0x2cd)]();_0x4cc4a4[_0x4a5cdb(0x354)](_0x18f605);}return _0x4cc4a4[_0x4a5cdb(0x3bb)]=_0x1f2abe*0x4,_0x4cc4a4;},_0x43116b(0x1a8))});_0x571b58[_0x43116b(0x231)]=function(_0x5a3938,_0x1de0cd,_0x167312){var _0x1c314d=_0x43116b;return _0x5e49be[_0x1c314d(0x33c)](_0x167312)['compute'](_0x5a3938,_0x1de0cd);};}()),_0x3319de[_0xb400c0(0x231)];}));}(evpkdf$1)),evpkdf$1[_0x4679e4(0x2c9)];}__name(requireEvpkdf,_0x43e0c9(0x24f));var cipherCore$1={'exports':{}},cipherCore=cipherCore$1['exports'],hasRequiredCipherCore;function requireCipherCore(){var _0xcf64f7=_0x43e0c9;return hasRequiredCipherCore||(hasRequiredCipherCore=0x1,function(_0x2d0117,_0x7a49bc){(function(_0x3f2115,_0x3824b1,_0x15947b){var _0x208f0a=_0x5029;_0x2d0117[_0x208f0a(0x2c9)]=_0x3824b1(requireCore(),requireEvpkdf());}(cipherCore,function(_0x2402dd){var _0x13edf3=_0x5029;_0x2402dd['lib'][_0x13edf3(0x3f0)]||function(_0x2d345d){var _0x17668a=_0x13edf3,_0x5ca3e6=_0x2402dd,_0x5c8dd3=_0x5ca3e6[_0x17668a(0x2f7)],_0x2b881c=_0x5c8dd3[_0x17668a(0x312)],_0x1edd3c=_0x5c8dd3['WordArray'],_0x1a7e9c=_0x5c8dd3[_0x17668a(0x447)],_0x2bda69=_0x5ca3e6[_0x17668a(0x316)];_0x2bda69[_0x17668a(0x3fa)];var _0x351f52=_0x2bda69[_0x17668a(0x296)],_0x5f4596=_0x5ca3e6[_0x17668a(0x2ff)],_0x1fcfa9=_0x5f4596[_0x17668a(0x231)],_0x3c5c01=_0x5c8dd3[_0x17668a(0x3f0)]=_0x1a7e9c[_0x17668a(0x10a)]({'cfg':_0x2b881c[_0x17668a(0x10a)](),'createEncryptor':__name(function(_0x1de4b9,_0x322152){var _0x11cb3b=_0x17668a;return this[_0x11cb3b(0x33c)](this[_0x11cb3b(0x2ef)],_0x1de4b9,_0x322152);},_0x17668a(0x166)),'createDecryptor':__name(function(_0x2ba41b,_0xe97da2){var _0x4f85f2=_0x17668a;return this[_0x4f85f2(0x33c)](this[_0x4f85f2(0x34d)],_0x2ba41b,_0xe97da2);},_0x17668a(0x36e)),'init':__name(function(_0x451033,_0x28ab87,_0x2139b8){var _0x1fb672=_0x17668a;this[_0x1fb672(0x2fa)]=this[_0x1fb672(0x2fa)][_0x1fb672(0x10a)](_0x2139b8),this[_0x1fb672(0x351)]=_0x451033,this['_key']=_0x28ab87,this[_0x1fb672(0x2cd)]();},_0x17668a(0x21c)),'reset':__name(function(){var _0x4a8d24=_0x17668a;_0x1a7e9c[_0x4a8d24(0x2cd)]['call'](this),this[_0x4a8d24(0x142)]();},_0x17668a(0x2cd)),'process':__name(function(_0x57a49c){var _0x3bb0af=_0x17668a;return this[_0x3bb0af(0x100)](_0x57a49c),this['_process']();},_0x17668a(0x262)),'finalize':__name(function(_0x2b6f75){var _0x5d9a95=_0x17668a;_0x2b6f75&&this[_0x5d9a95(0x100)](_0x2b6f75);var _0x189b37=this[_0x5d9a95(0x27f)]();return _0x189b37;},_0x17668a(0x426)),'keySize':0x80/0x20,'ivSize':0x80/0x20,'_ENC_XFORM_MODE':0x1,'_DEC_XFORM_MODE':0x2,'_createHelper':(function(){function _0xb35fdc(_0x4c8f15){return typeof _0x4c8f15=='string'?_0x429279:_0x2b2665;}return __name(_0xb35fdc,'selectCipherStrategy'),function(_0x5ab706){var _0x2206b0=_0x5029;return{'encrypt':__name(function(_0x2a90c1,_0x566f6f,_0x35eac6){var _0x1f2d57=_0x5029;return _0xb35fdc(_0x566f6f)[_0x1f2d57(0x353)](_0x5ab706,_0x2a90c1,_0x566f6f,_0x35eac6);},_0x2206b0(0x353)),'decrypt':__name(function(_0xe7a852,_0x301368,_0x917b28){var _0x59b0c4=_0x2206b0;return _0xb35fdc(_0x301368)[_0x59b0c4(0x418)](_0x5ab706,_0xe7a852,_0x301368,_0x917b28);},_0x2206b0(0x418))};};}())});_0x5c8dd3[_0x17668a(0x2c0)]=_0x3c5c01[_0x17668a(0x10a)]({'_doFinalize':__name(function(){var _0x2fdf92=_0x17668a,_0x2ba820=this[_0x2fdf92(0x33b)](!0x0);return _0x2ba820;},'_doFinalize'),'blockSize':0x1});var _0x251c40=_0x5ca3e6[_0x17668a(0x1a6)]={},_0x4cb9cd=_0x5c8dd3[_0x17668a(0x183)]=_0x2b881c[_0x17668a(0x10a)]({'createEncryptor':__name(function(_0x335f81,_0x8e63cf){var _0x429519=_0x17668a;return this[_0x429519(0x276)][_0x429519(0x33c)](_0x335f81,_0x8e63cf);},_0x17668a(0x166)),'createDecryptor':__name(function(_0x55ba8e,_0x2f2d9e){var _0x41a7d2=_0x17668a;return this[_0x41a7d2(0x2a7)][_0x41a7d2(0x33c)](_0x55ba8e,_0x2f2d9e);},_0x17668a(0x36e)),'init':__name(function(_0x92687,_0x293f4f){var _0x72af06=_0x17668a;this['_cipher']=_0x92687,this[_0x72af06(0x1ce)]=_0x293f4f;},_0x17668a(0x21c))}),_0x265a4e=_0x251c40[_0x17668a(0x117)]=(function(){var _0x459d5f=_0x17668a,_0x3372ba=_0x4cb9cd[_0x459d5f(0x10a)]();_0x3372ba[_0x459d5f(0x276)]=_0x3372ba[_0x459d5f(0x10a)]({'processBlock':__name(function(_0x53ab6e,_0x5d5445){var _0x4fc48a=_0x459d5f,_0x54e360=this[_0x4fc48a(0x14e)],_0x414ccd=_0x54e360[_0x4fc48a(0x30c)];_0x29b175[_0x4fc48a(0x314)](this,_0x53ab6e,_0x5d5445,_0x414ccd),_0x54e360[_0x4fc48a(0x377)](_0x53ab6e,_0x5d5445),this[_0x4fc48a(0x15b)]=_0x53ab6e[_0x4fc48a(0x1ea)](_0x5d5445,_0x5d5445+_0x414ccd);},_0x459d5f(0x365))}),_0x3372ba[_0x459d5f(0x2a7)]=_0x3372ba[_0x459d5f(0x10a)]({'processBlock':__name(function(_0x5913ec,_0x1794cc){var _0x32eb9e=_0x459d5f,_0x5894e8=this[_0x32eb9e(0x14e)],_0xe8a9e8=_0x5894e8[_0x32eb9e(0x30c)],_0x52081e=_0x5913ec[_0x32eb9e(0x1ea)](_0x1794cc,_0x1794cc+_0xe8a9e8);_0x5894e8[_0x32eb9e(0x39a)](_0x5913ec,_0x1794cc),_0x29b175[_0x32eb9e(0x314)](this,_0x5913ec,_0x1794cc,_0xe8a9e8),this[_0x32eb9e(0x15b)]=_0x52081e;},_0x459d5f(0x365))});function _0x29b175(_0x48b6c8,_0x22740a,_0x245309){var _0x380f12=_0x459d5f,_0x453dab,_0x68a54b=this[_0x380f12(0x1ce)];_0x68a54b?(_0x453dab=_0x68a54b,this[_0x380f12(0x1ce)]=_0x2d345d):_0x453dab=this[_0x380f12(0x15b)];for(var _0x106adf=0x0;_0x106adf<_0x245309;_0x106adf++)_0x48b6c8[_0x22740a+_0x106adf]^=_0x453dab[_0x106adf];}return __name(_0x29b175,_0x459d5f(0x1ad)),_0x3372ba;}()),_0x427435=_0x5ca3e6[_0x17668a(0x3d2)]={},_0x56b209=_0x427435[_0x17668a(0x3a9)]={'pad':__name(function(_0x13708b,_0x34ffd3){var _0x2912a2=_0x17668a;for(var _0x1eacf1=_0x34ffd3*0x4,_0x30f371=_0x1eacf1-_0x13708b[_0x2912a2(0x3bb)]%_0x1eacf1,_0x2b858a=_0x30f371<<0x18|_0x30f371<<0x10|_0x30f371<<0x8|_0x30f371,_0x4b1ef1=[],_0x384318=0x0;_0x384318<_0x30f371;_0x384318+=0x4)_0x4b1ef1[_0x2912a2(0x119)](_0x2b858a);var _0x22ce6c=_0x1edd3c[_0x2912a2(0x33c)](_0x4b1ef1,_0x30f371);_0x13708b[_0x2912a2(0x354)](_0x22ce6c);},'pad'),'unpad':__name(function(_0x346e89){var _0x439183=_0x17668a,_0xc8c34d=_0x346e89[_0x439183(0x3b2)][_0x346e89['sigBytes']-0x1>>>0x2]&0xff;_0x346e89[_0x439183(0x3bb)]-=_0xc8c34d;},_0x17668a(0x164))};_0x5c8dd3[_0x17668a(0x1f2)]=_0x3c5c01['extend']({'cfg':_0x3c5c01[_0x17668a(0x2fa)][_0x17668a(0x10a)]({'mode':_0x265a4e,'padding':_0x56b209}),'reset':__name(function(){var _0x456df5=_0x17668a,_0x3d8906;_0x3c5c01[_0x456df5(0x2cd)][_0x456df5(0x314)](this);var _0x4c1e6c=this[_0x456df5(0x2fa)],_0x443ba7=_0x4c1e6c['iv'],_0x263fae=_0x4c1e6c[_0x456df5(0x1a6)];this[_0x456df5(0x351)]==this[_0x456df5(0x2ef)]?_0x3d8906=_0x263fae[_0x456df5(0x166)]:(_0x3d8906=_0x263fae[_0x456df5(0x36e)],this[_0x456df5(0x131)]=0x1),this[_0x456df5(0x248)]&&this[_0x456df5(0x248)][_0x456df5(0x387)]==_0x3d8906?this[_0x456df5(0x248)][_0x456df5(0x21c)](this,_0x443ba7&&_0x443ba7[_0x456df5(0x3b2)]):(this[_0x456df5(0x248)]=_0x3d8906['call'](_0x263fae,this,_0x443ba7&&_0x443ba7[_0x456df5(0x3b2)]),this[_0x456df5(0x248)][_0x456df5(0x387)]=_0x3d8906);},_0x17668a(0x2cd)),'_doProcessBlock':__name(function(_0x33951f,_0x128ade){var _0x376fb4=_0x17668a;this['_mode'][_0x376fb4(0x365)](_0x33951f,_0x128ade);},_0x17668a(0x106)),'_doFinalize':__name(function(){var _0x4f6eb0=_0x17668a,_0x55f47c,_0x2f4157=this['cfg']['padding'];return this[_0x4f6eb0(0x351)]==this[_0x4f6eb0(0x2ef)]?(_0x2f4157[_0x4f6eb0(0x3d2)](this[_0x4f6eb0(0x27e)],this[_0x4f6eb0(0x30c)]),_0x55f47c=this[_0x4f6eb0(0x33b)](!0x0)):(_0x55f47c=this[_0x4f6eb0(0x33b)](!0x0),_0x2f4157[_0x4f6eb0(0x164)](_0x55f47c)),_0x55f47c;},'_doFinalize'),'blockSize':0x80/0x20});var _0x3747a3=_0x5c8dd3[_0x17668a(0x1b4)]=_0x2b881c[_0x17668a(0x10a)]({'init':__name(function(_0x177fc6){var _0x168b62=_0x17668a;this[_0x168b62(0x16d)](_0x177fc6);},'init'),'toString':__name(function(_0x3a9e3f){var _0x1c4b63=_0x17668a;return(_0x3a9e3f||this[_0x1c4b63(0x30f)])[_0x1c4b63(0xff)](this);},_0x17668a(0x22b))}),_0x2ee513=_0x5ca3e6[_0x17668a(0x281)]={},_0x5b9090=_0x2ee513[_0x17668a(0x3ab)]={'stringify':__name(function(_0x304347){var _0x3786d0=_0x17668a,_0x467fb7,_0x242457=_0x304347[_0x3786d0(0x109)],_0x592065=_0x304347['salt'];return _0x592065?_0x467fb7=_0x1edd3c[_0x3786d0(0x33c)]([0x53616c74,0x65645f5f])[_0x3786d0(0x354)](_0x592065)[_0x3786d0(0x354)](_0x242457):_0x467fb7=_0x242457,_0x467fb7[_0x3786d0(0x22b)](_0x351f52);},_0x17668a(0xff)),'parse':__name(function(_0x29d5d0){var _0x26ba13=_0x17668a,_0x55f38a,_0x5e7388=_0x351f52[_0x26ba13(0x3eb)](_0x29d5d0),_0x3b8983=_0x5e7388['words'];return _0x3b8983[0x0]==0x53616c74&&_0x3b8983[0x1]==0x65645f5f&&(_0x55f38a=_0x1edd3c[_0x26ba13(0x33c)](_0x3b8983[_0x26ba13(0x1ea)](0x2,0x4)),_0x3b8983[_0x26ba13(0x414)](0x0,0x4),_0x5e7388[_0x26ba13(0x3bb)]-=0x10),_0x3747a3[_0x26ba13(0x33c)]({'ciphertext':_0x5e7388,'salt':_0x55f38a});},_0x17668a(0x3eb))},_0x2b2665=_0x5c8dd3[_0x17668a(0x13f)]=_0x2b881c[_0x17668a(0x10a)]({'cfg':_0x2b881c[_0x17668a(0x10a)]({'format':_0x5b9090}),'encrypt':__name(function(_0x21dba5,_0x226eb9,_0x4351a1,_0x38d9bb){var _0x235dce=_0x17668a;_0x38d9bb=this[_0x235dce(0x2fa)][_0x235dce(0x10a)](_0x38d9bb);var _0x18a7b1=_0x21dba5[_0x235dce(0x166)](_0x4351a1,_0x38d9bb),_0x2b9bfe=_0x18a7b1[_0x235dce(0x426)](_0x226eb9),_0x44feb4=_0x18a7b1[_0x235dce(0x2fa)];return _0x3747a3[_0x235dce(0x33c)]({'ciphertext':_0x2b9bfe,'key':_0x4351a1,'iv':_0x44feb4['iv'],'algorithm':_0x21dba5,'mode':_0x44feb4[_0x235dce(0x1a6)],'padding':_0x44feb4[_0x235dce(0x138)],'blockSize':_0x21dba5[_0x235dce(0x30c)],'formatter':_0x38d9bb['format']});},_0x17668a(0x353)),'decrypt':__name(function(_0x879b5a,_0x1dd0f1,_0x3027f1,_0x36b132){var _0x4059c9=_0x17668a;_0x36b132=this[_0x4059c9(0x2fa)][_0x4059c9(0x10a)](_0x36b132),_0x1dd0f1=this['_parse'](_0x1dd0f1,_0x36b132['format']);var _0x22445d=_0x879b5a[_0x4059c9(0x36e)](_0x3027f1,_0x36b132)['finalize'](_0x1dd0f1['ciphertext']);return _0x22445d;},_0x17668a(0x418)),'_parse':__name(function(_0x2d4997,_0xbe47cc){var _0x53df13=_0x17668a;return typeof _0x2d4997=='string'?_0xbe47cc[_0x53df13(0x3eb)](_0x2d4997,this):_0x2d4997;},_0x17668a(0x286))}),_0x449cc4=_0x5ca3e6[_0x17668a(0x258)]={},_0x5d81e5=_0x449cc4['OpenSSL']={'execute':__name(function(_0xea32b,_0x3ec64e,_0x875bb2,_0x4d44e2,_0x59a03d){var _0x2c5f62=_0x17668a;if(_0x4d44e2||(_0x4d44e2=_0x1edd3c[_0x2c5f62(0x22d)](0x40/0x8)),_0x59a03d)var _0x5ac15a=_0x1fcfa9['create']({'keySize':_0x3ec64e+_0x875bb2,'hasher':_0x59a03d})[_0x2c5f62(0x1a8)](_0xea32b,_0x4d44e2);else var _0x5ac15a=_0x1fcfa9[_0x2c5f62(0x33c)]({'keySize':_0x3ec64e+_0x875bb2})[_0x2c5f62(0x1a8)](_0xea32b,_0x4d44e2);var _0x2a7334=_0x1edd3c['create'](_0x5ac15a[_0x2c5f62(0x3b2)][_0x2c5f62(0x1ea)](_0x3ec64e),_0x875bb2*0x4);return _0x5ac15a[_0x2c5f62(0x3bb)]=_0x3ec64e*0x4,_0x3747a3['create']({'key':_0x5ac15a,'iv':_0x2a7334,'salt':_0x4d44e2});},'execute')},_0x429279=_0x5c8dd3[_0x17668a(0x1be)]=_0x2b2665[_0x17668a(0x10a)]({'cfg':_0x2b2665[_0x17668a(0x2fa)]['extend']({'kdf':_0x5d81e5}),'encrypt':__name(function(_0x36b59f,_0x2e079b,_0xdfbb4c,_0x5bb452){var _0x135aaf=_0x17668a;_0x5bb452=this[_0x135aaf(0x2fa)][_0x135aaf(0x10a)](_0x5bb452);var _0x622c9f=_0x5bb452[_0x135aaf(0x258)][_0x135aaf(0x11d)](_0xdfbb4c,_0x36b59f['keySize'],_0x36b59f['ivSize'],_0x5bb452[_0x135aaf(0x31a)],_0x5bb452[_0x135aaf(0x223)]);_0x5bb452['iv']=_0x622c9f['iv'];var _0xa2c6c8=_0x2b2665[_0x135aaf(0x353)][_0x135aaf(0x314)](this,_0x36b59f,_0x2e079b,_0x622c9f['key'],_0x5bb452);return _0xa2c6c8[_0x135aaf(0x16d)](_0x622c9f),_0xa2c6c8;},_0x17668a(0x353)),'decrypt':__name(function(_0x5e67c9,_0x226fd9,_0x190e2e,_0x1e5720){var _0x56d606=_0x17668a;_0x1e5720=this['cfg']['extend'](_0x1e5720),_0x226fd9=this[_0x56d606(0x286)](_0x226fd9,_0x1e5720[_0x56d606(0x281)]);var _0x54a9f2=_0x1e5720[_0x56d606(0x258)][_0x56d606(0x11d)](_0x190e2e,_0x5e67c9[_0x56d606(0x3ff)],_0x5e67c9[_0x56d606(0x179)],_0x226fd9[_0x56d606(0x31a)],_0x1e5720[_0x56d606(0x223)]);_0x1e5720['iv']=_0x54a9f2['iv'];var _0xd9811a=_0x2b2665[_0x56d606(0x418)][_0x56d606(0x314)](this,_0x5e67c9,_0x226fd9,_0x54a9f2['key'],_0x1e5720);return _0xd9811a;},_0x17668a(0x418))});}();}));}(cipherCore$1)),cipherCore$1[_0xcf64f7(0x2c9)];}__name(requireCipherCore,_0x43e0c9(0x2ca));var aes=aes$1[_0x43e0c9(0x2c9)],hasRequiredAes;function requireAes(){var _0x2664d7=_0x43e0c9;return hasRequiredAes||(hasRequiredAes=0x1,function(_0xdd9064,_0x5cba6f){(function(_0x1d593b,_0x1e05d9,_0x28f6e9){var _0x461f3f=_0x5029;_0xdd9064[_0x461f3f(0x2c9)]=_0x1e05d9(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore());}(aes,function(_0x4930ec){var _0x2c8b93=_0x5029;return(function(){var _0x4cf687=_0x5029,_0x32c959=_0x4930ec,_0x4d45dd=_0x32c959[_0x4cf687(0x2f7)],_0x1f1fd4=_0x4d45dd[_0x4cf687(0x1f2)],_0x4d29bd=_0x32c959[_0x4cf687(0x2ff)],_0x2e1a3a=[],_0x4a9d42=[],_0x2d1d61=[],_0x59ae38=[],_0x1e419e=[],_0x2cf774=[],_0x2ec34e=[],_0x2592e1=[],_0x20b7cb=[],_0xd81cf1=[];(function(){for(var _0x37903c=[],_0x22d4c0=0x0;_0x22d4c0<0x100;_0x22d4c0++)_0x22d4c0<0x80?_0x37903c[_0x22d4c0]=_0x22d4c0<<0x1:_0x37903c[_0x22d4c0]=_0x22d4c0<<0x1^0x11b;for(var _0x1ceffc=0x0,_0x51daeb=0x0,_0x22d4c0=0x0;_0x22d4c0<0x100;_0x22d4c0++){var _0x2b8641=_0x51daeb^_0x51daeb<<0x1^_0x51daeb<<0x2^_0x51daeb<<0x3^_0x51daeb<<0x4;_0x2b8641=_0x2b8641>>>0x8^_0x2b8641&0xff^0x63,_0x2e1a3a[_0x1ceffc]=_0x2b8641,_0x4a9d42[_0x2b8641]=_0x1ceffc;var _0x115edd=_0x37903c[_0x1ceffc],_0x5da2d5=_0x37903c[_0x115edd],_0x3d74b7=_0x37903c[_0x5da2d5],_0x28745b=_0x37903c[_0x2b8641]*0x101^_0x2b8641*0x1010100;_0x2d1d61[_0x1ceffc]=_0x28745b<<0x18|_0x28745b>>>0x8,_0x59ae38[_0x1ceffc]=_0x28745b<<0x10|_0x28745b>>>0x10,_0x1e419e[_0x1ceffc]=_0x28745b<<0x8|_0x28745b>>>0x18,_0x2cf774[_0x1ceffc]=_0x28745b;var _0x28745b=_0x3d74b7*0x1010101^_0x5da2d5*0x10001^_0x115edd*0x101^_0x1ceffc*0x1010100;_0x2ec34e[_0x2b8641]=_0x28745b<<0x18|_0x28745b>>>0x8,_0x2592e1[_0x2b8641]=_0x28745b<<0x10|_0x28745b>>>0x10,_0x20b7cb[_0x2b8641]=_0x28745b<<0x8|_0x28745b>>>0x18,_0xd81cf1[_0x2b8641]=_0x28745b,_0x1ceffc?(_0x1ceffc=_0x115edd^_0x37903c[_0x37903c[_0x37903c[_0x3d74b7^_0x115edd]]],_0x51daeb^=_0x37903c[_0x37903c[_0x51daeb]]):_0x1ceffc=_0x51daeb=0x1;}}());var _0x458f66=[0x0,0x1,0x2,0x4,0x8,0x10,0x20,0x40,0x80,0x1b,0x36],_0x24cfd9=_0x4d29bd[_0x4cf687(0x341)]=_0x1f1fd4[_0x4cf687(0x10a)]({'_doReset':__name(function(){var _0x25b548=_0x4cf687,_0x466047;if(!(this[_0x25b548(0x120)]&&this['_keyPriorReset']===this[_0x25b548(0x36d)])){for(var _0x52da8d=this[_0x25b548(0x1a4)]=this[_0x25b548(0x36d)],_0x4af5d9=_0x52da8d['words'],_0x1bbd54=_0x52da8d[_0x25b548(0x3bb)]/0x4,_0x24cd6f=this[_0x25b548(0x120)]=_0x1bbd54+0x6,_0xd39ef=(_0x24cd6f+0x1)*0x4,_0x11a8ea=this['_keySchedule']=[],_0x25c75a=0x0;_0x25c75a<_0xd39ef;_0x25c75a++)_0x25c75a<_0x1bbd54?_0x11a8ea[_0x25c75a]=_0x4af5d9[_0x25c75a]:(_0x466047=_0x11a8ea[_0x25c75a-0x1],_0x25c75a%_0x1bbd54?_0x1bbd54>0x6&&_0x25c75a%_0x1bbd54==0x4&&(_0x466047=_0x2e1a3a[_0x466047>>>0x18]<<0x18|_0x2e1a3a[_0x466047>>>0x10&0xff]<<0x10|_0x2e1a3a[_0x466047>>>0x8&0xff]<<0x8|_0x2e1a3a[_0x466047&0xff]):(_0x466047=_0x466047<<0x8|_0x466047>>>0x18,_0x466047=_0x2e1a3a[_0x466047>>>0x18]<<0x18|_0x2e1a3a[_0x466047>>>0x10&0xff]<<0x10|_0x2e1a3a[_0x466047>>>0x8&0xff]<<0x8|_0x2e1a3a[_0x466047&0xff],_0x466047^=_0x458f66[_0x25c75a/_0x1bbd54|0x0]<<0x18),_0x11a8ea[_0x25c75a]=_0x11a8ea[_0x25c75a-_0x1bbd54]^_0x466047);for(var _0x475a53=this['_invKeySchedule']=[],_0x2bfc5f=0x0;_0x2bfc5f<_0xd39ef;_0x2bfc5f++){var _0x25c75a=_0xd39ef-_0x2bfc5f;if(_0x2bfc5f%0x4)var _0x466047=_0x11a8ea[_0x25c75a];else var _0x466047=_0x11a8ea[_0x25c75a-0x4];_0x2bfc5f<0x4||_0x25c75a<=0x4?_0x475a53[_0x2bfc5f]=_0x466047:_0x475a53[_0x2bfc5f]=_0x2ec34e[_0x2e1a3a[_0x466047>>>0x18]]^_0x2592e1[_0x2e1a3a[_0x466047>>>0x10&0xff]]^_0x20b7cb[_0x2e1a3a[_0x466047>>>0x8&0xff]]^_0xd81cf1[_0x2e1a3a[_0x466047&0xff]];}}},'_doReset'),'encryptBlock':__name(function(_0x4206ef,_0x117c51){var _0x21c355=_0x4cf687;this[_0x21c355(0x379)](_0x4206ef,_0x117c51,this[_0x21c355(0x201)],_0x2d1d61,_0x59ae38,_0x1e419e,_0x2cf774,_0x2e1a3a);},_0x4cf687(0x377)),'decryptBlock':__name(function(_0x230fab,_0x497a67){var _0x36e756=_0x4cf687,_0x6b3d04=_0x230fab[_0x497a67+0x1];_0x230fab[_0x497a67+0x1]=_0x230fab[_0x497a67+0x3],_0x230fab[_0x497a67+0x3]=_0x6b3d04,this[_0x36e756(0x379)](_0x230fab,_0x497a67,this['_invKeySchedule'],_0x2ec34e,_0x2592e1,_0x20b7cb,_0xd81cf1,_0x4a9d42);var _0x6b3d04=_0x230fab[_0x497a67+0x1];_0x230fab[_0x497a67+0x1]=_0x230fab[_0x497a67+0x3],_0x230fab[_0x497a67+0x3]=_0x6b3d04;},'decryptBlock'),'_doCryptBlock':__name(function(_0x5a4726,_0x5a5b66,_0x458cfa,_0x11dbf7,_0x5588f5,_0x3e2d19,_0x413c4e,_0x463c92){var _0x174868=_0x4cf687;for(var _0x18fc72=this[_0x174868(0x120)],_0x216df7=_0x5a4726[_0x5a5b66]^_0x458cfa[0x0],_0x628328=_0x5a4726[_0x5a5b66+0x1]^_0x458cfa[0x1],_0x3a239e=_0x5a4726[_0x5a5b66+0x2]^_0x458cfa[0x2],_0x13a951=_0x5a4726[_0x5a5b66+0x3]^_0x458cfa[0x3],_0x91a4d8=0x4,_0x16fe4a=0x1;_0x16fe4a<_0x18fc72;_0x16fe4a++){var _0x298ce4=_0x11dbf7[_0x216df7>>>0x18]^_0x5588f5[_0x628328>>>0x10&0xff]^_0x3e2d19[_0x3a239e>>>0x8&0xff]^_0x413c4e[_0x13a951&0xff]^_0x458cfa[_0x91a4d8++],_0xbe1fe=_0x11dbf7[_0x628328>>>0x18]^_0x5588f5[_0x3a239e>>>0x10&0xff]^_0x3e2d19[_0x13a951>>>0x8&0xff]^_0x413c4e[_0x216df7&0xff]^_0x458cfa[_0x91a4d8++],_0x424b24=_0x11dbf7[_0x3a239e>>>0x18]^_0x5588f5[_0x13a951>>>0x10&0xff]^_0x3e2d19[_0x216df7>>>0x8&0xff]^_0x413c4e[_0x628328&0xff]^_0x458cfa[_0x91a4d8++],_0x3e26db=_0x11dbf7[_0x13a951>>>0x18]^_0x5588f5[_0x216df7>>>0x10&0xff]^_0x3e2d19[_0x628328>>>0x8&0xff]^_0x413c4e[_0x3a239e&0xff]^_0x458cfa[_0x91a4d8++];_0x216df7=_0x298ce4,_0x628328=_0xbe1fe,_0x3a239e=_0x424b24,_0x13a951=_0x3e26db;}var _0x298ce4=(_0x463c92[_0x216df7>>>0x18]<<0x18|_0x463c92[_0x628328>>>0x10&0xff]<<0x10|_0x463c92[_0x3a239e>>>0x8&0xff]<<0x8|_0x463c92[_0x13a951&0xff])^_0x458cfa[_0x91a4d8++],_0xbe1fe=(_0x463c92[_0x628328>>>0x18]<<0x18|_0x463c92[_0x3a239e>>>0x10&0xff]<<0x10|_0x463c92[_0x13a951>>>0x8&0xff]<<0x8|_0x463c92[_0x216df7&0xff])^_0x458cfa[_0x91a4d8++],_0x424b24=(_0x463c92[_0x3a239e>>>0x18]<<0x18|_0x463c92[_0x13a951>>>0x10&0xff]<<0x10|_0x463c92[_0x216df7>>>0x8&0xff]<<0x8|_0x463c92[_0x628328&0xff])^_0x458cfa[_0x91a4d8++],_0x3e26db=(_0x463c92[_0x13a951>>>0x18]<<0x18|_0x463c92[_0x216df7>>>0x10&0xff]<<0x10|_0x463c92[_0x628328>>>0x8&0xff]<<0x8|_0x463c92[_0x3a239e&0xff])^_0x458cfa[_0x91a4d8++];_0x5a4726[_0x5a5b66]=_0x298ce4,_0x5a4726[_0x5a5b66+0x1]=_0xbe1fe,_0x5a4726[_0x5a5b66+0x2]=_0x424b24,_0x5a4726[_0x5a5b66+0x3]=_0x3e26db;},_0x4cf687(0x379)),'keySize':0x100/0x20});_0x32c959[_0x4cf687(0x341)]=_0x1f1fd4['_createHelper'](_0x24cfd9);}()),_0x4930ec[_0x2c8b93(0x341)];}));}(aes$1)),aes$1[_0x2664d7(0x2c9)];}__name(requireAes,_0x43e0c9(0x306));var aesExports=requireAes();const AES=getDefaultExportFromCjs(aesExports);var encBase64Exports=requireEncBase64();const Base64=getDefaultExportFromCjs(encBase64Exports);var encUtf8$1={'exports':{}},encUtf8=encUtf8$1[_0x43e0c9(0x2c9)],hasRequiredEncUtf8;function requireEncUtf8(){return hasRequiredEncUtf8||(hasRequiredEncUtf8=0x1,function(_0x238c24,_0x202d5b){(function(_0x188545,_0x36fd43){var _0x573c24=_0x5029;_0x238c24[_0x573c24(0x2c9)]=_0x36fd43(requireCore());}(encUtf8,function(_0xeac569){var _0x2906ef=_0x5029;return _0xeac569[_0x2906ef(0x316)][_0x2906ef(0x3fa)];}));}(encUtf8$1)),encUtf8$1['exports'];}__name(requireEncUtf8,'requireEncUtf8');var encUtf8Exports=requireEncUtf8();const Utf8=getDefaultExportFromCjs(encUtf8Exports);var libTypedarrays$1={'exports':{}},libTypedarrays=libTypedarrays$1[_0x43e0c9(0x2c9)],hasRequiredLibTypedarrays;function requireLibTypedarrays(){return hasRequiredLibTypedarrays||(hasRequiredLibTypedarrays=0x1,function(_0x44c39a,_0x21b63a){(function(_0x569c8f,_0x5dda0f){var _0x2761d3=_0x5029;_0x44c39a[_0x2761d3(0x2c9)]=_0x5dda0f(requireCore());}(libTypedarrays,function(_0x29a69f){var _0x2f353d=_0x5029;return(function(){var _0x541b37=_0x5029;if(typeof ArrayBuffer==_0x541b37(0x3e7)){var _0x11db45=_0x29a69f,_0x225d44=_0x11db45['lib'],_0x1f3d3d=_0x225d44[_0x541b37(0x2ce)],_0x5190f6=_0x1f3d3d['init'],_0x58c89c=_0x1f3d3d['init']=function(_0x2c29ae){var _0x3928a5=_0x541b37;if(_0x2c29ae instanceof ArrayBuffer&&(_0x2c29ae=new Uint8Array(_0x2c29ae)),(_0x2c29ae instanceof Int8Array||typeof Uint8ClampedArray<'u'&&_0x2c29ae instanceof Uint8ClampedArray||_0x2c29ae instanceof Int16Array||_0x2c29ae instanceof Uint16Array||_0x2c29ae instanceof Int32Array||_0x2c29ae instanceof Uint32Array||_0x2c29ae instanceof Float32Array||_0x2c29ae instanceof Float64Array)&&(_0x2c29ae=new Uint8Array(_0x2c29ae[_0x3928a5(0x2f2)],_0x2c29ae[_0x3928a5(0x39b)],_0x2c29ae[_0x3928a5(0x1d5)])),_0x2c29ae instanceof Uint8Array){for(var _0x4204a6=_0x2c29ae[_0x3928a5(0x1d5)],_0x1b0f4f=[],_0x362e63=0x0;_0x362e63<_0x4204a6;_0x362e63++)_0x1b0f4f[_0x362e63>>>0x2]|=_0x2c29ae[_0x362e63]<<0x18-_0x362e63%0x4*0x8;_0x5190f6[_0x3928a5(0x314)](this,_0x1b0f4f,_0x4204a6);}else _0x5190f6[_0x3928a5(0x2ba)](this,arguments);};_0x58c89c[_0x541b37(0x145)]=_0x1f3d3d;}}()),_0x29a69f[_0x2f353d(0x2f7)][_0x2f353d(0x2ce)];}));}(libTypedarrays$1)),libTypedarrays$1['exports'];}__name(requireLibTypedarrays,_0x43e0c9(0x1f6));var libTypedarraysExports=requireLibTypedarrays();const WordArray=getDefaultExportFromCjs(libTypedarraysExports);var padNopadding$1={'exports':{}},padNopadding=padNopadding$1[_0x43e0c9(0x2c9)],hasRequiredPadNopadding;function requirePadNopadding(){var _0x524fea=_0x43e0c9;return hasRequiredPadNopadding||(hasRequiredPadNopadding=0x1,function(_0x4f2cb8,_0x5d5676){(function(_0x166342,_0x13dec1,_0x2e11ca){var _0x49c977=_0x5029;_0x4f2cb8[_0x49c977(0x2c9)]=_0x13dec1(requireCore(),requireCipherCore());}(padNopadding,function(_0x459360){var _0x2eb2bb=_0x5029;return _0x459360[_0x2eb2bb(0x3d2)][_0x2eb2bb(0x322)]={'pad':__name(function(){},_0x2eb2bb(0x3d2)),'unpad':__name(function(){},_0x2eb2bb(0x164))},_0x459360[_0x2eb2bb(0x3d2)][_0x2eb2bb(0x322)];}));}(padNopadding$1)),padNopadding$1[_0x524fea(0x2c9)];}__name(requirePadNopadding,'requirePadNopadding');var padNopaddingExports=requirePadNopadding();const NoPadding=getDefaultExportFromCjs(padNopaddingExports);function pkcs7Padding(_0x3d1bd3,_0x48d4e8){var _0x489e24=_0x43e0c9;const _0x116bae=_0x48d4e8-_0x3d1bd3[_0x489e24(0x233)]%_0x48d4e8,_0x36e9e6=String[_0x489e24(0x315)](_0x116bae)[_0x489e24(0x3c9)](_0x116bae);return _0x3d1bd3+_0x36e9e6;}__name(pkcs7Padding,_0x43e0c9(0xf5));function encrypt(_0x4058c3,_0x13cb7a){var _0x30de96=_0x43e0c9;const _0x18308d=WordArray['random'](0x10),_0x5010bc=pkcs7Padding(_0x4058c3,0x10),_0x39622f=AES[_0x30de96(0x353)](Utf8['parse'](_0x5010bc),Base64[_0x30de96(0x3eb)](_0x13cb7a),{'iv':_0x18308d,'padding':NoPadding});return _0x18308d[_0x30de96(0x354)](_0x39622f[_0x30de96(0x109)])[_0x30de96(0x22b)](Base64);}__name(encrypt,_0x43e0c9(0x353));function getAttachHeader(){var _0x5db43f=_0x43e0c9;const _0x2d581e=getGlobalObject()['__Key__'];if(_0x2d581e){const _0x1cae37={'time':Math['floor'](Date[_0x5db43f(0x1cb)]()/0x3e8),'domain':location[_0x5db43f(0x162)]};return encrypt(JSON['stringify'](_0x1cae37),_0x2d581e);}}__name(getAttachHeader,_0x43e0c9(0x425));var __defProp$7=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc$7=Object['getOwnPropertyDescriptor'],__decorateClass$7=__name((_0x3e5969,_0x8f67f8,_0x42878e,_0xfa62d6)=>{var _0x57b2d6=_0x43e0c9;for(var _0x40d685=_0xfa62d6>0x1?void 0x0:_0xfa62d6?__getOwnPropDesc$7(_0x8f67f8,_0x42878e):_0x8f67f8,_0x1de9d6=_0x3e5969[_0x57b2d6(0x233)]-0x1,_0x4225de;_0x1de9d6>=0x0;_0x1de9d6--)(_0x4225de=_0x3e5969[_0x1de9d6])&&(_0x40d685=(_0xfa62d6?_0x4225de(_0x8f67f8,_0x42878e,_0x40d685):_0x4225de(_0x40d685))||_0x40d685);return _0xfa62d6&&_0x40d685&&__defProp$7(_0x8f67f8,_0x42878e,_0x40d685),_0x40d685;},'__decorateClass$7'),__decorateParam$7=__name((_0x76db10,_0x12f591)=>(_0x10c403,_0x327940)=>_0x12f591(_0x10c403,_0x327940,_0x76db10),_0x43e0c9(0x265)),_a20;let DomainRequestService=(_a20=class{constructor(_0x2fc1d5){var _0x2b1dc7=_0x43e0c9;this['_httpService']=_0x2fc1d5,this[_0x2b1dc7(0xf2)]();}[_0x43e0c9(0xf2)](){var _0xb9dea4=_0x43e0c9;this[_0xb9dea4(0x141)][_0xb9dea4(0x16e)]({'interceptor':__name((_0x23e4aa,_0x5c671c)=>{var _0x540cda=_0xb9dea4;const _0x472886=_0x23e4aa[_0x540cda(0x113)],_0x408b63=getAttachHeader();return _0x408b63&&_0x472886[_0x540cda(0x116)](_0x540cda(0x20e),_0x408b63),_0x5c671c(_0x23e4aa);},'interceptor')});}},__name(_a20,_0x43e0c9(0x221)),_a20);DomainRequestService=__decorateClass$7([__decorateParam$7(0x0,Inject(HTTPService))],DomainRequestService);var __defProp$6=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc$6=Object[_0x43e0c9(0x33e)],__decorateClass$6=__name((_0x3eb517,_0x61efc3,_0x5c3255,_0x3d85aa)=>{var _0x5b96b7=_0x43e0c9;for(var _0x3b275d=_0x3d85aa>0x1?void 0x0:_0x3d85aa?__getOwnPropDesc$6(_0x61efc3,_0x5c3255):_0x61efc3,_0x46e82b=_0x3eb517[_0x5b96b7(0x233)]-0x1,_0x1d6fc9;_0x46e82b>=0x0;_0x46e82b--)(_0x1d6fc9=_0x3eb517[_0x46e82b])&&(_0x3b275d=(_0x3d85aa?_0x1d6fc9(_0x61efc3,_0x5c3255,_0x3b275d):_0x1d6fc9(_0x3b275d))||_0x3b275d);return _0x3d85aa&&_0x3b275d&&__defProp$6(_0x61efc3,_0x5c3255,_0x3b275d),_0x3b275d;},_0x43e0c9(0x1eb)),__decorateParam$6=__name((_0x233692,_0x7e23da)=>(_0x797c27,_0x5881ae)=>_0x7e23da(_0x797c27,_0x5881ae,_0x233692),'__decorateParam$6'),_a21;let DataLoaderService=(_a21=class extends RxDisposable{constructor(_0x332c08,_0x5268ba,_0x1232d8){var _0x16a77f=_0x43e0c9;super(),__publicField(this,_0x16a77f(0x362),new BehaviorSubject(null)),__publicField(this,_0x16a77f(0x338),this[_0x16a77f(0x362)]['asObservable']()),(this[_0x16a77f(0x11f)]=_0x332c08,this[_0x16a77f(0x118)]=_0x5268ba,this['_localCacheService']=_0x1232d8);}async['loadUnit'](_0x3c8d86,_0x1ad5e8,_0x4470bb){var _0x3deb49=_0x43e0c9;this[_0x3deb49(0x362)][_0x3deb49(0x2e5)]({'unitId':_0x3c8d86,'type':_0x1ad5e8,'subUnitId':_0x4470bb});let _0x47eda1=null;switch(_0x1ad5e8){case UniverType[_0x3deb49(0x202)]:{_0x47eda1=await this[_0x3deb49(0x3f4)](_0x3c8d86);break;}case UniverType[_0x3deb49(0x199)]:{_0x47eda1=await this[_0x3deb49(0x2a4)](_0x3c8d86);break;}default:{this[_0x3deb49(0x11f)][_0x3deb49(0x1c8)](_0x3deb49(0x112),_0x3deb49(0x1de));break;}}return _0x47eda1;}async[_0x43e0c9(0x3f4)](_0x3d3e36){var _0x1c3b9b=_0x43e0c9,_0x569790;let _0x4873fb=0x0;const _0x3fc2c6=await((_0x569790=this[_0x1c3b9b(0x289)])==null?void 0x0:_0x569790[_0x1c3b9b(0x268)](_0x3d3e36));return _0x3fc2c6&&(_0x3fc2c6[_0x1c3b9b(0x3f2)]||_0x3fc2c6[_0x1c3b9b(0x245)][_0x1c3b9b(0x233)]!==0x0)&&(_0x4873fb=_0x3fc2c6['rev']),_0x4873fb===0x0&&this[_0x1c3b9b(0x11f)]['debug'](_0x1c3b9b(0x112),_0x1c3b9b(0x21d)),this['_snapshotService'][_0x1c3b9b(0x419)](_0x3d3e36,_0x4873fb);}async[_0x43e0c9(0x2a4)](_0x56795e){var _0x19f2e9=_0x43e0c9,_0xcd3a31;let _0x34100a=0x0;const _0x28dea0=await((_0xcd3a31=this[_0x19f2e9(0x289)])==null?void 0x0:_0xcd3a31[_0x19f2e9(0x268)](_0x56795e));return _0x28dea0&&(_0x28dea0['awaitingChangeset']||_0x28dea0[_0x19f2e9(0x245)][_0x19f2e9(0x233)]!==0x0)&&(_0x34100a=_0x28dea0[_0x19f2e9(0x438)]),_0x34100a===0x0&&this[_0x19f2e9(0x11f)][_0x19f2e9(0x287)](_0x19f2e9(0x112),_0x19f2e9(0x21d)),this[_0x19f2e9(0x118)][_0x19f2e9(0x3bc)](_0x56795e,_0x34100a);}},__name(_a21,_0x43e0c9(0x3f8)),_a21);DataLoaderService=__decorateClass$6([__decorateParam$6(0x0,ILogService),__decorateParam$6(0x1,Inject(SnapshotService)),__decorateParam$6(0x2,Optional(ILocalCacheService))],DataLoaderService);var __defProp$5=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc$5=Object[_0x43e0c9(0x33e)],__decorateClass$5=__name((_0x546125,_0x9d2a91,_0x15347e,_0x368e43)=>{var _0x40ce9d=_0x43e0c9;for(var _0x331e40=_0x368e43>0x1?void 0x0:_0x368e43?__getOwnPropDesc$5(_0x9d2a91,_0x15347e):_0x9d2a91,_0x169e3e=_0x546125[_0x40ce9d(0x233)]-0x1,_0x2302e5;_0x169e3e>=0x0;_0x169e3e--)(_0x2302e5=_0x546125[_0x169e3e])&&(_0x331e40=(_0x368e43?_0x2302e5(_0x9d2a91,_0x15347e,_0x331e40):_0x2302e5(_0x331e40))||_0x331e40);return _0x368e43&&_0x331e40&&__defProp$5(_0x9d2a91,_0x15347e,_0x331e40),_0x331e40;},_0x43e0c9(0x3ce)),__decorateParam$5=__name((_0x283b4f,_0x1d5a00)=>(_0x373346,_0x57e6c2)=>_0x1d5a00(_0x373346,_0x57e6c2,_0x283b4f),_0x43e0c9(0x17d));const ALLOW_IMAGE_LIST=[_0x43e0c9(0x3d3),_0x43e0c9(0x3c1),_0x43e0c9(0x434),_0x43e0c9(0x15c),_0x43e0c9(0x23f)],ALLOW_IMAGE_SIZE=0x5*0x400*0x400,EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY=_0x43e0c9(0x28f),DEFAULT_EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY='/universer-api/stream/file/upload',EXCHANGE_SIGN_URL_SERVER_URL_KEY='EXCHANGE_SIGN_URL_SERVER_URL_KEY',DEFAULT_EXCHANGE_SIGN_URL_SERVER_URL_KEY='/universer-api/file/{fileID}/sign-url';var _a22;let CollaborationImageIoService=(_a22=class{constructor(_0x571a3f,_0x12a8a0,_0x5365d3){var _0xa1abbb=_0x43e0c9;__publicField(this,_0xa1abbb(0x19d),0x0),__publicField(this,'_change$',new Subject()),__publicField(this,_0xa1abbb(0x3d1),this[_0xa1abbb(0x31b)]),__publicField(this,_0xa1abbb(0x271),new Map()),(this[_0xa1abbb(0x141)]=_0x571a3f,this['_configService']=_0x12a8a0,this['_univerInstanceService']=_0x5365d3);}[_0x43e0c9(0x1e0)](_0x41d212){var _0x388361=_0x43e0c9;this[_0x388361(0x19d)]=_0x41d212,this[_0x388361(0x31b)]['next'](_0x41d212);}[_0x43e0c9(0x1f1)](_0x1682a7,_0x50f4f0){var _0xa7d264=_0x43e0c9;if(_0x50f4f0===ImageSourceType[_0xa7d264(0x288)]){const _0x54d50f=new Image();return _0x54d50f[_0xa7d264(0x1f4)]=_0x1682a7,_0x54d50f;}return this[_0xa7d264(0x271)][_0xa7d264(0x1c2)](_0x1682a7);}[_0x43e0c9(0x152)](_0x19b72b,_0x2bc5ce,_0xaf542c){var _0x5d6f60=_0x43e0c9;_0x2bc5ce===ImageSourceType[_0x5d6f60(0x288)]||_0xaf542c==null||this[_0x5d6f60(0x271)][_0x5d6f60(0x116)](_0x19b72b,_0xaf542c);}async[_0x43e0c9(0x2f1)](_0x386e7a){var _0x10aa1f=_0x43e0c9;try{const _0x12e85c=this[_0x10aa1f(0x3cb)](this[_0x10aa1f(0x360)](),''+_0x386e7a),_0x144c58=(await this[_0x10aa1f(0x141)][_0x10aa1f(0x1c2)](_0x12e85c))[_0x10aa1f(0x415)];if(_0x144c58[_0x10aa1f(0x1c8)]&&_0x144c58[_0x10aa1f(0x1c8)]['code']===ErrorCode['OK']){const _0x2b7ac4=new URL(_0x144c58[_0x10aa1f(0x24e)],this[_0x10aa1f(0x147)]())[_0x10aa1f(0x22b)]();return Promise[_0x10aa1f(0x3e1)](_0x2b7ac4);}return Promise[_0x10aa1f(0x41c)](_0x144c58[_0x10aa1f(0x1c8)]);}catch(_0x232c65){return Promise[_0x10aa1f(0x41c)](_0x232c65);}}async[_0x43e0c9(0x2d9)](_0xf3e79a){var _0x2c3da7=_0x43e0c9;let _0x4793c4='';if(!ALLOW_IMAGE_LIST['includes'](_0xf3e79a[_0x2c3da7(0x3b0)]))return this[_0x2c3da7(0x24d)](),Promise[_0x2c3da7(0x41c)](new Error(ImageUploadStatusType[_0x2c3da7(0x37a)]));if(_0xf3e79a[_0x2c3da7(0x23a)]>ALLOW_IMAGE_SIZE)return this[_0x2c3da7(0x24d)](),Promise[_0x2c3da7(0x41c)](new Error(ImageUploadStatusType[_0x2c3da7(0x174)]));try{const _0x42f744=new FormData();_0x42f744[_0x2c3da7(0x2a1)](_0x2c3da7(0x14b),_0xf3e79a);const _0x436631=this[_0x2c3da7(0x330)][_0x2c3da7(0x126)](),_0x561bc5=_0x436631==null?void 0x0:_0x436631['getUnitId']();if(!_0x561bc5)throw new Error('unitId\x20is\x20not\x20found');const _0x33b5ba=this[_0x2c3da7(0x1ec)]()+_0x2c3da7(0x34e)+_0xf3e79a[_0x2c3da7(0x23a)][_0x2c3da7(0x22b)]()+_0x2c3da7(0x1d2)+FileSource[_0x2c3da7(0x382)]+_0x2c3da7(0x1d0)+encodeURIComponent(_0x561bc5),_0x45c375=await(await fetch(_0x33b5ba,{'method':_0x2c3da7(0x12c),'body':_0x42f744}))[_0x2c3da7(0x449)]();if(typeof _0x45c375[_0x2c3da7(0x28e)]!=_0x2c3da7(0x17a))return this[_0x2c3da7(0x24d)](),Promise[_0x2c3da7(0x41c)](new Error(ImageUploadStatusType[_0x2c3da7(0x130)]));_0x4793c4=_0x45c375[_0x2c3da7(0x28e)];}catch{return this[_0x2c3da7(0x24d)](),Promise['reject'](new Error(ImageUploadStatusType[_0x2c3da7(0x130)]));}return new Promise((_0x1927e4,_0x14cea7)=>{var _0x2c0c5b=_0x2c3da7;const _0x12031a=new FileReader();_0x12031a[_0x2c0c5b(0x3fd)](_0xf3e79a),_0x12031a['onload']=_0xd51b=>{var _0x37c3ff=_0x2c0c5b,_0x1a314d;const _0xa38a17=(_0x1a314d=_0xd51b[_0x37c3ff(0x20b)])==null?void 0x0:_0x1a314d[_0x37c3ff(0xf3)];if(_0xa38a17==null){this['_decreaseWaiting'](),_0x14cea7(new Error(ImageUploadStatusType[_0x37c3ff(0x130)]));return;}const _0x11e44e=Tools[_0x37c3ff(0x436)](0x6);_0x1927e4({'imageId':_0x11e44e,'imageSourceType':ImageSourceType[_0x37c3ff(0x44b)],'source':_0x4793c4,'base64Cache':_0xa38a17,'status':ImageUploadStatusType[_0x37c3ff(0x259)]}),this[_0x37c3ff(0x24d)]();};});}[_0x43e0c9(0x1ec)](){var _0x548961=_0x43e0c9,_0xf6c05a,_0x4abe95;const _0xd7f36e=this['_configService']['getConfig'](EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY),_0x40b636=this[_0x548961(0x249)]['getConfig'](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x4abe95=(_0xf6c05a=_0x40b636==null?void 0x0:_0x40b636['uploadFileServerUrl'])!=null?_0xf6c05a:_0xd7f36e)!=null?_0x4abe95:DEFAULT_EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY;}[_0x43e0c9(0x360)](){var _0xe21afe=_0x43e0c9,_0x58cb18,_0x4e78cb;const _0x23fcd7=this[_0xe21afe(0x249)][_0xe21afe(0x15f)](EXCHANGE_SIGN_URL_SERVER_URL_KEY),_0x2e38a4=this[_0xe21afe(0x249)][_0xe21afe(0x15f)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x4e78cb=(_0x58cb18=_0x2e38a4==null?void 0x0:_0x2e38a4[_0xe21afe(0x1b3)])!=null?_0x58cb18:_0x23fcd7)!=null?_0x4e78cb:DEFAULT_EXCHANGE_SIGN_URL_SERVER_URL_KEY;}[_0x43e0c9(0x147)](){var _0x3e3445=_0x43e0c9,_0x49005c;const _0x610fe4=this[_0x3e3445(0x249)][_0x3e3445(0x15f)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x49005c=_0x610fe4==null?void 0x0:_0x610fe4[_0x3e3445(0x31d)])!=null?_0x49005c:location[_0x3e3445(0x2e0)];}['_replaceFileID'](_0xe2ed6a,_0x4ccb55){var _0x558e33=_0x43e0c9;return _0xe2ed6a[_0x558e33(0x3d6)](_0x558e33(0x211),_0x4ccb55);}['_decreaseWaiting'](){var _0x159c64=_0x43e0c9;this[_0x159c64(0x19d)]-=0x1,this[_0x159c64(0x31b)][_0x159c64(0x2e5)](this[_0x159c64(0x19d)]);}},__name(_a22,_0x43e0c9(0x148)),_a22);CollaborationImageIoService=__decorateClass$5([__decorateParam$5(0x0,Inject(HTTPService)),__decorateParam$5(0x1,IConfigService),__decorateParam$5(0x2,Inject(IUniverInstanceService))],CollaborationImageIoService);var __defProp$4=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc$4=Object[_0x43e0c9(0x33e)],__decorateClass$4=__name((_0x99b128,_0x7e0327,_0x21902f,_0x2508ea)=>{for(var _0x1bb1d4=_0x2508ea>0x1?void 0x0:_0x2508ea?__getOwnPropDesc$4(_0x7e0327,_0x21902f):_0x7e0327,_0x1540cc=_0x99b128['length']-0x1,_0x45b103;_0x1540cc>=0x0;_0x1540cc--)(_0x45b103=_0x99b128[_0x1540cc])&&(_0x1bb1d4=(_0x2508ea?_0x45b103(_0x7e0327,_0x21902f,_0x1bb1d4):_0x45b103(_0x1bb1d4))||_0x1bb1d4);return _0x2508ea&&_0x1bb1d4&&__defProp$4(_0x7e0327,_0x21902f,_0x1bb1d4),_0x1bb1d4;},_0x43e0c9(0x143)),__decorateParam$4=__name((_0x7aea30,_0x2e4f70)=>(_0x559073,_0x164b77)=>_0x2e4f70(_0x559073,_0x164b77,_0x7aea30),_0x43e0c9(0xf9));const DEFAULT_AUTHZ_URL_KEY=_0x43e0c9(0x2d4);var _a23;let MentionIoHttpService=(_a23=class{constructor(_0x67ad2f,_0x445d13){var _0x405f22=_0x43e0c9;this[_0x405f22(0x249)]=_0x67ad2f,this[_0x405f22(0x1b7)]=_0x445d13;}['_getAPIPrefixPath'](){var _0x44df39=_0x43e0c9,_0x273587,_0x483c1a;const _0x26ffc6=this[_0x44df39(0x249)][_0x44df39(0x15f)](AUTHZ_URL_KEY),_0x1a9092=this[_0x44df39(0x249)][_0x44df39(0x15f)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x483c1a=(_0x273587=_0x1a9092==null?void 0x0:_0x1a9092[_0x44df39(0x3af)])!=null?_0x273587:_0x26ffc6)!=null?_0x483c1a:DEFAULT_AUTHZ_URL_KEY;}async['list'](_0x1f63e5){var _0x565198=_0x43e0c9;const _0x189d3b=this[_0x565198(0x323)]()+_0x565198(0x2ad);return{'list':[{'title':_0x565198(0x26e),'mentions':(await this[_0x565198(0x1b7)][_0x565198(0x1c2)](_0x189d3b,{'params':{'objectID':_0x1f63e5[_0x565198(0x38e)],'unitID':_0x1f63e5[_0x565198(0x38e)]}}))['body'][_0x565198(0x2eb)][_0x565198(0x12e)](_0x246be2=>({'objectId':_0x246be2['id'],'name':_0x246be2[_0x565198(0x40e)][_0x565198(0x3e4)],'metadata':{'icon':_0x246be2[_0x565198(0x40e)][_0x565198(0x2ae)]},'label':_0x246be2[_0x565198(0x40e)]['name'],'objectType':MentionType[_0x565198(0x150)]})),'metadata':{},'type':MentionType[_0x565198(0x150)]}]};}},__name(_a23,_0x43e0c9(0x12f)),_a23);MentionIoHttpService=__decorateClass$4([__decorateParam$4(0x0,Inject(IConfigService)),__decorateParam$4(0x1,Inject(HTTPService))],MentionIoHttpService);var __defProp$3=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc$3=Object['getOwnPropertyDescriptor'],__decorateClass$3=__name((_0x45bba7,_0x46f71a,_0x5ab5e4,_0x2be8a0)=>{var _0x52d173=_0x43e0c9;for(var _0x55ed8c=_0x2be8a0>0x1?void 0x0:_0x2be8a0?__getOwnPropDesc$3(_0x46f71a,_0x5ab5e4):_0x46f71a,_0x4f24aa=_0x45bba7[_0x52d173(0x233)]-0x1,_0x528809;_0x4f24aa>=0x0;_0x4f24aa--)(_0x528809=_0x45bba7[_0x4f24aa])&&(_0x55ed8c=(_0x2be8a0?_0x528809(_0x46f71a,_0x5ab5e4,_0x55ed8c):_0x528809(_0x55ed8c))||_0x55ed8c);return _0x2be8a0&&_0x55ed8c&&__defProp$3(_0x46f71a,_0x5ab5e4,_0x55ed8c),_0x55ed8c;},_0x43e0c9(0x215)),__decorateParam$3=__name((_0x9e7dc,_0x23ca54)=>(_0x538319,_0x1ecc6b)=>_0x23ca54(_0x538319,_0x1ecc6b,_0x9e7dc),_0x43e0c9(0x210)),_a24;let PermissionService=(_a24=class extends RxDisposable{constructor(_0x5b876c,_0x1c3350,_0x2ae594,_0x3c3e6d,_0x39f3f9,_0x3cea38,_0x738784){var _0x8a2650=_0x43e0c9;super(),this[_0x8a2650(0x403)]=_0x5b876c,this['_univerInstanceService']=_0x1c3350,this['_permissionService']=_0x2ae594,this[_0x8a2650(0x3aa)]=_0x3c3e6d,this['_collaborationUIEventService']=_0x39f3f9,this[_0x8a2650(0x389)]=_0x3cea38,this['_undoRedoService']=_0x738784,this[_0x8a2650(0x3b8)](),this[_0x8a2650(0x216)]();}[_0x43e0c9(0x216)](){var _0x39734a=_0x43e0c9;const _0xaf9142=__name(async _0x271b32=>{var _0x33e343=_0x5029;(await this[_0x33e343(0x3aa)][_0x33e343(0x32d)](_0x271b32))['event$']['pipe'](filter(_0x1c3b9a=>_0x1c3b9a[_0x33e343(0x25d)]===CollaborationEvent['SHOULD_CLOSE_CONN']),_0x3e796d(this[_0x33e343(0x34a)]))[_0x33e343(0x352)](_0x179635=>{var _0x25219d=_0x33e343;const _0x35169a=_0x179635,{reason:_0x24fa33}=_0x35169a[_0x25219d(0x14c)];this['_collaborationUIEventService'][_0x25219d(0x43a)]({'id':CollaborationUIEventId['CLOSE_ROOM'],'data':_0x24fa33}),this['_permissionService'][_0x25219d(0x10b)](new WorkbookEditablePermission(_0x271b32)['id'],!0x1),this[_0x25219d(0x3aa)][_0x25219d(0x41d)](_0x271b32);});},_0x39734a(0x3cd));merge(this[_0x39734a(0x330)][_0x39734a(0x430)](UniverInstanceType[_0x39734a(0x202)]),this[_0x39734a(0x330)][_0x39734a(0x430)](UniverInstanceType[_0x39734a(0x199)]))[_0x39734a(0x1f0)](map(_0xb1c170=>_0xb1c170['getUnitId']()),filter(_0x2c3c90=>!isInternalEditorID(_0x2c3c90)),_0x3e796d(this[_0x39734a(0x34a)]))[_0x39734a(0x352)](_0x151c23=>{_0xaf9142(_0x151c23);});}[_0x43e0c9(0x3b8)](){var _0x5a8d2f=_0x43e0c9;const _0x211b0a=__name(async _0x1e8ccf=>{var _0x48ac6c=_0x5029;const _0x2e106e=await this[_0x48ac6c(0x3aa)]['requireSession'](_0x1e8ccf),_0xa42bfc=this[_0x48ac6c(0x403)][_0x48ac6c(0x1c2)](SheetPermissionInitController);_0x2e106e[_0x48ac6c(0x14f)]['pipe'](filter(_0x51cf1f=>_0x51cf1f[_0x48ac6c(0x25d)]===CollaborationEvent[_0x48ac6c(0x348)]),_0x3e796d(this['dispose$']))[_0x48ac6c(0x352)](_0x29dcd3=>{var _0x4acc32=_0x48ac6c;const _0x554c71=_0x29dcd3,{objectId:_0x1693bf}=_0x554c71[_0x4acc32(0x14c)];_0x1693bf===_0x1e8ccf?_0xa42bfc[_0x4acc32(0x32c)](_0x1e8ccf):_0xa42bfc[_0x4acc32(0x2aa)](_0x1e8ccf,_0x1693bf);});},_0x5a8d2f(0x42c));merge(this['_univerInstanceService'][_0x5a8d2f(0x430)](UniverInstanceType[_0x5a8d2f(0x202)]),this['_univerInstanceService'][_0x5a8d2f(0x430)](UniverInstanceType['UNIVER_DOC']))[_0x5a8d2f(0x1f0)](map(_0x3a371b=>_0x3a371b[_0x5a8d2f(0x2cb)]()),filter(_0x431040=>!isInternalEditorID(_0x431040)),_0x3e796d(this[_0x5a8d2f(0x34a)]))[_0x5a8d2f(0x352)](_0x380d46=>{_0x211b0a(_0x380d46);});}},__name(_a24,'PermissionService'),_a24);PermissionService=__decorateClass$3([__decorateParam$3(0x0,Inject(Injector)),__decorateParam$3(0x1,IUniverInstanceService),__decorateParam$3(0x2,IPermissionService),__decorateParam$3(0x3,Inject(CollaborationSessionService)),__decorateParam$3(0x4,Inject(CollaborationUIEventService)),__decorateParam$3(0x5,IAuthzIoService),__decorateParam$3(0x6,IUndoRedoService)],PermissionService);var __defProp$2=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc$2=Object[_0x43e0c9(0x33e)],__decorateClass$2=__name((_0x53fa13,_0x15275c,_0x151302,_0x2c7192)=>{var _0x99f532=_0x43e0c9;for(var _0x546740=_0x2c7192>0x1?void 0x0:_0x2c7192?__getOwnPropDesc$2(_0x15275c,_0x151302):_0x15275c,_0x24a9b0=_0x53fa13[_0x99f532(0x233)]-0x1,_0x2f50f6;_0x24a9b0>=0x0;_0x24a9b0--)(_0x2f50f6=_0x53fa13[_0x24a9b0])&&(_0x546740=(_0x2c7192?_0x2f50f6(_0x15275c,_0x151302,_0x546740):_0x2f50f6(_0x546740))||_0x546740);return _0x2c7192&&_0x546740&&__defProp$2(_0x15275c,_0x151302,_0x546740),_0x546740;},_0x43e0c9(0x42e)),__decorateParam$2=__name((_0x24c690,_0x1356e7)=>(_0xc699f4,_0x4933d5)=>_0x1356e7(_0xc699f4,_0x4933d5,_0x24c690),'__decorateParam$2'),_a25;let SnapshotServerOverHTTPService=(_a25=class{constructor(_0x1ce9e8,_0x466126){var _0x2f5020=_0x43e0c9;this[_0x2f5020(0x249)]=_0x1ce9e8,this[_0x2f5020(0x141)]=_0x466126;}async['getUnitOnRev'](_0x3bfc35,_0x16b434){var _0x3ffcf0=_0x43e0c9,_0x18de93;const {unitID:_0x5964c3,type:_0x176322,revision:revision=0x0}=_0x16b434,_0x1038c6=this[_0x3ffcf0(0x347)]()+'/'+_0x176322+_0x3ffcf0(0x40f)+_0x5964c3+_0x3ffcf0(0x3f5)+revision,_0x484815=(await this[_0x3ffcf0(0x141)]['get'](_0x1038c6))['body'],_0x6c44ab=(_0x18de93=_0x484815[_0x3ffcf0(0x29b)])==null?void 0x0:_0x18de93['workbook'];if(_0x6c44ab){const _0x463b80=_0x6c44ab==null?void 0x0:_0x6c44ab[_0x3ffcf0(0x3a2)],_0x489335=textEncoder['encode'](b64DecodeUnicode(_0x463b80));_0x6c44ab[_0x3ffcf0(0x3a2)]=_0x489335,Object['entries'](_0x6c44ab[_0x3ffcf0(0x20a)])['forEach'](([,_0x30405d])=>{var _0x5e3438=_0x3ffcf0;const _0x23cee0=_0x30405d[_0x5e3438(0x3a2)],_0xae9a56=textEncoder[_0x5e3438(0x103)](b64DecodeUnicode(_0x23cee0));_0x30405d[_0x5e3438(0x3a2)]=_0xae9a56;});}return _0x484815;}async[_0x43e0c9(0x2d0)](_0xab0b6,_0x2b9d74){var _0x44f0eb=_0x43e0c9;const {unitID:_0x3a30ec,type:_0x55f3e6,blockID:_0x3c8d83}=_0x2b9d74,_0x38dc4c=this[_0x44f0eb(0x264)]()+'/'+_0x55f3e6+_0x44f0eb(0x40f)+_0x3a30ec+'/block/'+_0x3c8d83;return(await this['_httpService'][_0x44f0eb(0x1c2)](_0x38dc4c))['body'];}async[_0x43e0c9(0x128)](_0x3d8917,_0x58fb5d){var _0x477141=_0x43e0c9;const {unitID:_0x153b96,type:_0x39ec66,blockID:_0x2bccfb}=_0x58fb5d,_0x23b4e2=this['_getAPIPrefix']()+'/block/'+_0x39ec66+_0x477141(0x40f)+_0x153b96+_0x477141(0x2e8)+_0x2bccfb;return(await this[_0x477141(0x141)][_0x477141(0x1c2)](_0x23b4e2))['body'];}async[_0x43e0c9(0xfc)](_0x73763c,_0x38e023){var _0xcaee5d=_0x43e0c9;const {unitID:_0x274050,type:_0x45c531,from:_0x39d17d,to:_0xc27716}=_0x38e023,_0x8d7954=this[_0xcaee5d(0x264)]()+'/'+_0x45c531+_0xcaee5d(0x40f)+_0x274050+'/fetchmissing?from='+_0x39d17d+'&to='+_0xc27716;return(await this[_0xcaee5d(0x141)]['get'](_0x8d7954))['body'];}[_0x43e0c9(0x347)](){var _0x598177=_0x43e0c9,_0x420cc8;return(_0x420cc8=this[_0x598177(0x249)][_0x598177(0x15f)](SNAPSHOT_URL_KEY))!=null?_0x420cc8:this[_0x598177(0x264)]();}[_0x43e0c9(0x264)](){var _0xabc0a1=_0x43e0c9,_0x2ac7eb,_0x1c03c5;const _0x227470=this['_configService'][_0xabc0a1(0x15f)](SNAPSHOT_SERVER_URL_KEY),_0xc73edc=this['_configService']['getConfig'](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x1c03c5=(_0x2ac7eb=_0xc73edc==null?void 0x0:_0xc73edc['snapshotServerUrl'])!=null?_0x2ac7eb:_0x227470)!=null?_0x1c03c5:DEFAULT_SNAPSHOT_SERVER_URL;}async['getResourcesRequest'](_0xaf6c95,_0x56cbbd){var _0x3e9aff=_0x43e0c9;const _0x40cbd5=_0x3e9aff(0x3e2)+_0x56cbbd[_0x3e9aff(0x3b0)]+_0x3e9aff(0x40f)+_0x56cbbd['unitID']+_0x3e9aff(0x304);return(await this[_0x3e9aff(0x141)]['get'](_0x40cbd5,{'params':{'resourceId':JSON[_0x3e9aff(0xff)](_0x56cbbd[_0x3e9aff(0x167)])}}))[_0x3e9aff(0x415)];}['saveSnapshot'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x43e0c9(0x44a)](){var _0x46831c=_0x43e0c9;throw new Error(_0x46831c(0x448));}[_0x43e0c9(0x38f)](){var _0x372632=_0x43e0c9;throw new Error(_0x372632(0x448));}[_0x43e0c9(0x3c8)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['getLatestCsReqIdBySid'](){var _0x18fb57=_0x43e0c9;throw new Error(_0x18fb57(0x448));}},__name(_a25,'SnapshotServerOverHTTPService'),_a25);SnapshotServerOverHTTPService=__decorateClass$2([__decorateParam$2(0x0,IConfigService),__decorateParam$2(0x1,Inject(HTTPService))],SnapshotServerOverHTTPService);var __defProp$1=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc$1=Object[_0x43e0c9(0x33e)],__decorateClass$1=__name((_0x3faac7,_0x2f159b,_0x5dbac3,_0x4b95af)=>{var _0x394c6d=_0x43e0c9;for(var _0x1ddf9a=_0x4b95af>0x1?void 0x0:_0x4b95af?__getOwnPropDesc$1(_0x2f159b,_0x5dbac3):_0x2f159b,_0x23b25a=_0x3faac7[_0x394c6d(0x233)]-0x1,_0x179765;_0x23b25a>=0x0;_0x23b25a--)(_0x179765=_0x3faac7[_0x23b25a])&&(_0x1ddf9a=(_0x4b95af?_0x179765(_0x2f159b,_0x5dbac3,_0x1ddf9a):_0x179765(_0x1ddf9a))||_0x1ddf9a);return _0x4b95af&&_0x1ddf9a&&__defProp$1(_0x2f159b,_0x5dbac3,_0x1ddf9a),_0x1ddf9a;},_0x43e0c9(0x2ac)),__decorateParam$1=__name((_0x448f6c,_0x27f442)=>(_0x4d5f56,_0x4f2e27)=>_0x27f442(_0x4d5f56,_0x4f2e27,_0x448f6c),_0x43e0c9(0x43b)),_a26;let CollaborativeUndoRedoService=(_a26=class extends LocalUndoRedoService{constructor(_0x3f7de7,_0x262490,_0x51fdab,_0x52290c,_0x80b5f1){var _0x5ed166=_0x43e0c9;super(_0x3f7de7,_0x262490,_0x51fdab),this[_0x5ed166(0x345)]=_0x52290c,this['_logService']=_0x80b5f1;}[_0x43e0c9(0x206)](_0x1efed1,_0x5e9ff3){var _0x5f5a12=_0x43e0c9;const _0x54d6fe=this['_getUndoStack'](_0x1efed1);if(_0x54d6fe)try{const _0x14aff9=this['_transformStack'](_0x54d6fe,_0x5e9ff3);this[_0x5f5a12(0x1a2)](_0x1efed1,_0x14aff9);}catch(_0x28261a){this[_0x5f5a12(0x11f)][_0x5f5a12(0x1c8)]('[CollaborationUndoRedoService]',_0x28261a),this[_0x5f5a12(0x219)](_0x1efed1);}const _0x560e6e=this[_0x5f5a12(0x2e6)](_0x1efed1);if(_0x560e6e)try{const _0x1a6362=this[_0x5f5a12(0x3b9)](_0x560e6e,_0x5e9ff3);this[_0x5f5a12(0x193)](_0x1efed1,_0x1a6362);}catch(_0x2a83af){this[_0x5f5a12(0x11f)]['error'](_0x2a83af),this[_0x5f5a12(0x437)](_0x1efed1);}}[_0x43e0c9(0x219)](_0x4e31b5){var _0x2ddb55=_0x43e0c9;const _0x2d350f=this[_0x2ddb55(0x34f)](_0x4e31b5);_0x2d350f&&(_0x2d350f['length']=0x0,this['_updateStatus']());}[_0x43e0c9(0x437)](_0x5e2316){var _0x20008e=_0x43e0c9;const _0x3ab21c=this[_0x20008e(0x2e6)](_0x5e2316);_0x3ab21c&&(_0x3ab21c['length']=0x0,this[_0x20008e(0x239)]());}[_0x43e0c9(0x1a2)](_0x1a75ef,_0x5322f3){this['_undoStacks']['set'](_0x1a75ef,_0x5322f3),this['_updateStatus']();}[_0x43e0c9(0x193)](_0x4e01c9,_0x5f57b8){var _0x2eda07=_0x43e0c9;this[_0x2eda07(0x129)][_0x2eda07(0x116)](_0x4e01c9,_0x5f57b8),this[_0x2eda07(0x239)]();}[_0x43e0c9(0x3b9)](_0x36fa99,_0x1b9b8f){var _0x1c7587=_0x43e0c9;const _0x356296=[];let _0x52fd09=_0x1b9b8f,_0x117dc7=_0x1b9b8f;for(let _0x52525d=_0x36fa99[_0x1c7587(0x233)]-0x1;_0x52525d>=0x0;_0x52525d--){const {unitID:_0x45c863,undoMutations:_0x2a5413,redoMutations:_0x1305af}=_0x36fa99[_0x52525d],_0xe5d665=this[_0x1c7587(0x345)][_0x1c7587(0x346)](_0x52fd09,_0x2a5413),_0x4d0a44=this[_0x1c7587(0x345)]['transformMutationsWithChangeset'](_0x117dc7,_0x1305af);if(isTransformMutationsWithChangesetFailure(_0xe5d665)||isTransformMutationsWithChangesetFailure(_0x4d0a44)){this[_0x1c7587(0x11f)][_0x1c7587(0x1c8)](_0x1c7587(0x2d7),_0x1c7587(0x318),_0xe5d665,_0x4d0a44);break;}_0x52fd09=_0xe5d665[_0x1c7587(0x1ef)],_0x117dc7=_0x4d0a44[_0x1c7587(0x1ef)],_0x356296[_0x1c7587(0x119)]({'unitID':_0x45c863,'undoMutations':_0xe5d665[_0x1c7587(0xfa)],'redoMutations':_0x4d0a44[_0x1c7587(0xfa)]});}return _0x356296[_0x1c7587(0x3c7)]();}},__name(_a26,'CollaborativeUndoRedoService'),_a26);CollaborativeUndoRedoService=__decorateClass$1([__decorateParam$1(0x0,IUniverInstanceService),__decorateParam$1(0x1,ICommandService),__decorateParam$1(0x2,IContextService),__decorateParam$1(0x3,ITransformService),__decorateParam$1(0x4,ILogService)],CollaborativeUndoRedoService);var __defProp2=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc=Object[_0x43e0c9(0x33e)],__defNormalProp2=__name((_0x13b1c2,_0x21e6de,_0x5e3369)=>_0x21e6de in _0x13b1c2?__defProp2(_0x13b1c2,_0x21e6de,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5e3369}):_0x13b1c2[_0x21e6de]=_0x5e3369,_0x43e0c9(0x3e3)),__decorateClass=__name((_0x4efefe,_0x3884b8,_0x50c52e,_0x3653ee)=>{for(var _0x52240a=_0x3653ee>0x1?void 0x0:_0x3653ee?__getOwnPropDesc(_0x3884b8,_0x50c52e):_0x3884b8,_0x128efc=_0x4efefe['length']-0x1,_0xc1974a;_0x128efc>=0x0;_0x128efc--)(_0xc1974a=_0x4efefe[_0x128efc])&&(_0x52240a=(_0x3653ee?_0xc1974a(_0x3884b8,_0x50c52e,_0x52240a):_0xc1974a(_0x52240a))||_0x52240a);return _0x3653ee&&_0x52240a&&__defProp2(_0x3884b8,_0x50c52e,_0x52240a),_0x52240a;},_0x43e0c9(0x18b)),__decorateParam=__name((_0x5dc78d,_0xbb80bf)=>(_0x467ea9,_0x3ec54e)=>_0xbb80bf(_0x467ea9,_0x3ec54e,_0x5dc78d),_0x43e0c9(0x278)),__publicField2=__name((_0x764111,_0x5b4e2a,_0x45bedb)=>__defNormalProp2(_0x764111,_0x5b4e2a+'',_0x45bedb),_0x43e0c9(0x311));const PLUGIN_NAME='UNIVER_COLLABORATION_CLIENT_PLUGIN';var _a27;let UniverCollaborationClientPlugin=(_a27=class extends Plugin{constructor(_0x235843=defaultPluginConfig,_0x5e3b80,_0x52364a,_0x111de5){var _0x9208f7=_0x43e0c9;super(),this['_config']=_0x235843,this[_0x9208f7(0x11f)]=_0x5e3b80,this['_injector']=_0x52364a,this[_0x9208f7(0x249)]=_0x111de5;const {..._0x3b59ff}=_0x523ccd({},defaultPluginConfig,this[_0x9208f7(0x139)]);this[_0x9208f7(0x249)][_0x9208f7(0x366)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,_0x3b59ff);}[_0x43e0c9(0x368)](){var _0x244b05=_0x43e0c9;this[_0x244b05(0x40c)](),this[_0x244b05(0x36f)]();}[_0x43e0c9(0x40c)](){var _0x4d39e6=_0x43e0c9,_0x5c24ca,_0x54419b,_0x211bb9,_0x39270b;this['_injector'][_0x4d39e6(0x3ae)](IUndoRedoService)&&this['_logService'][_0x4d39e6(0x1c8)](_0x4d39e6(0x224),_0x4d39e6(0x1f8));const _0x187877=mergeOverrideWithDependencies([[IUndoRedoService,{'useClass':CollaborativeUndoRedoService}],[CollaborationSessionService],[MemberService],[SheetTransformSelectionsService],[AuthServerService],[DomainRequestService],[CommentService],[PermissionService],[CollaborationUIEventService],[DataLoaderService],[ICollaborationSocketService,{'useClass':(_0x54419b=(_0x5c24ca=this[_0x4d39e6(0x139)])==null?void 0x0:_0x5c24ca[_0x4d39e6(0x435)])!=null?_0x54419b:CollaborationSocketService}],[ISnapshotServerService,{'useClass':SnapshotServerOverHTTPService}],[IAuthzIoService,{'useClass':AuthzIoHttpService}],[IImageIoService,{'useClass':CollaborationImageIoService}],[IMentionIOService,{'useClass':MentionIoHttpService}],[CollaborationController],[FileNameController]],(_0x211bb9=this[_0x4d39e6(0x139)])==null?void 0x0:_0x211bb9[_0x4d39e6(0x238)]);if(!((_0x39270b=this[_0x4d39e6(0x139)])!=null&&_0x39270b['enableSingleActiveInstanceLock'])){const _0x58b8e2=_0x187877[_0x4d39e6(0x20f)](([_0x211462])=>_0x211462===ISingleActiveUnitService);_0x58b8e2!==-0x1&&_0x187877[_0x4d39e6(0x414)](_0x58b8e2,0x1);}registerDependencies(this[_0x4d39e6(0x403)],_0x187877);}[_0x43e0c9(0x36f)](){var _0x4c3c16=_0x43e0c9,_0x33bc21,_0x5a3b34,_0x526c89;this[_0x4c3c16(0x403)][_0x4c3c16(0x1c2)](HTTPService)[_0x4c3c16(0x16e)]({'priority':0x14,'interceptor':ThresholdInterceptorFactory({'maxParallel':0x6})}),(_0x33bc21=this['_config'])!=null&&_0x33bc21[_0x4c3c16(0x42a)]||(_0x5a3b34=this['_injector']['get'](ILocalCacheService,Quantity[_0x4c3c16(0x204)]))==null||_0x5a3b34['disableLocalCache'](),(_0x526c89=this['_config'])!=null&&_0x526c89[_0x4c3c16(0x208)]&&touchDependencies(this[_0x4c3c16(0x403)],[[AuthServerService]]),touchDependencies(this[_0x4c3c16(0x403)],[[DomainRequestService],[CollaborationController],[PermissionService]]);}},__name(_a27,'UniverCollaborationClientPlugin'),_a27);__publicField2(UniverCollaborationClientPlugin,_0x43e0c9(0x2ab),PLUGIN_NAME),UniverCollaborationClientPlugin=__decorateClass([DependentOn(UniverCollaborationPlugin,UniverSheetsPlugin,UniverNetworkPlugin),__decorateParam(0x1,ILogService),__decorateParam(0x2,Inject(Injector)),__decorateParam(0x3,IConfigService)],UniverCollaborationClientPlugin);export{AUTHZ_URL_KEY,AuthzIoHttpService,AwaitingState,AwaitingWithPendingState,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,COLLAB_SUBMIT_CHANGESET_URL_KEY,COLLAB_WEB_SOCKET_URL_KEY,CollaborationController,CollaborationEntity,CollaborationImageIoService,CollaborationSession,CollaborationSessionService,CollaborationSocketService,CollaborationStatus,CollaborationUIEventId,CollaborationUIEventService,CollaborativeUndoRedoService,CommentService,ConflictState,DEFAULT_COLLAB_WEB_SOCKET_URL,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT,DataLoaderService,DocCollaborationEntity,FetchingMissState,HEARTBEAT_INTERVAL_KEY,HEARTBEAT_TIMEOUT_KEY,ICollaborationSocketService,ILocalCacheService,INetworkConditionService,ISingleActiveUnitService,LOCAL_CACHE_INTERVAL,LOCAL_CACHE_INTERVAL_KEY,LOGIN_URL_KEY,MemberService,MentionIoHttpService,OfflineState,PendingState,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY,RETRY_CONNECTING_MAX_COUNT_KEY,SEND_CHANGESET_TIMEOUT_KEY,SNAPSHOT_SERVER_URL_KEY,SNAPSHOT_URL_KEY,SessionStatus,SheetCollaborationEntity,SheetTransformSelectionsService,SnapshotServerOverHTTPService,SyncedState,UnitStatus,UniverCollaborationClientPlugin,deserializeToCombResponse,getLocalCacheKey,serializeCombRequest};
|
1
|
+
var _0x40530a=_0x192f;(function(_0x37a304,_0x2ba64e){var _0x498483=_0x192f,_0x283fd3=_0x37a304();while(!![]){try{var _0xb86dc=-parseInt(_0x498483(0x126))/0x1*(-parseInt(_0x498483(0x197))/0x2)+-parseInt(_0x498483(0x3a8))/0x3*(parseInt(_0x498483(0x25c))/0x4)+parseInt(_0x498483(0x2aa))/0x5+parseInt(_0x498483(0x1e3))/0x6*(parseInt(_0x498483(0x2a5))/0x7)+parseInt(_0x498483(0x105))/0x8*(parseInt(_0x498483(0x3bc))/0x9)+parseInt(_0x498483(0x39d))/0xa*(-parseInt(_0x498483(0x226))/0xb)+-parseInt(_0x498483(0x149))/0xc*(parseInt(_0x498483(0x259))/0xd);if(_0xb86dc===_0x2ba64e)break;else _0x283fd3['push'](_0x283fd3['shift']());}catch(_0x48b973){_0x283fd3['push'](_0x283fd3['shift']());}}}(_0x5db0,0x3bdee));var Li=Object['defineProperty'],Mi=(_0x547cf6,_0x466e41,_0x113812)=>_0x466e41 in _0x547cf6?Li(_0x547cf6,_0x466e41,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x113812}):_0x547cf6[_0x466e41]=_0x113812,N=(_0x34a496,_0x2805ac,_0x514c03)=>Mi(_0x34a496,typeof _0x2805ac!=_0x40530a(0x332)?_0x2805ac+'':_0x2805ac,_0x514c03);import{createIdentifier as _0x10b14f,Inject as _0x48db98,Injector as _0x19dc6b,Disposable as _0x551e1f,DisposableCollection as _0x4f67d6,toDisposable as _0x205e55,IConfigService as _0x5b62c8,ILogService as _0x6e98f,UserManagerService as _0x252bbe,UniverInstanceType as _0x4d2a26,IUniverInstanceService as _0x5609db,LocaleService as _0x5529ab,Optional as _0x5b33db,RxDisposable as _0x18f063,Tools as _0x544210,Rectangle as _0x48bee0,ICommandService as _0xc6fb7a,JSONX as _0x14fa94,CommandType as _0x29caaf,IPermissionService as _0x2912cc,IUndoRedoService as _0x84d590,sequenceExecute as _0x7fdad7,Workbook as _0xcd7ee5,MentionType as _0x791ab,IAuthzIoService as _0x544837,isInternalEditorID as _0x3b8065,LocalUndoRedoService as _0x543e42,IContextService as _0x353605,DependentOn as _0x3e377d,Plugin as _0x3596ec,merge as _0x4e300f,mergeOverrideWithDependencies as _0x520889,IMentionIOService as _0x13150e,registerDependencies as _0xd035a1,Quantity as _0x44fa0b,touchDependencies as _0x12b182}from'@univerjs/core';import{Subject as _0x3da80f,merge as _0x583ffc,of as _0xdc5b87,BehaviorSubject as _0x1379a3,takeUntil as _0xb4b3a,ReplaySubject as _0x400709,take as _0x4da358,map as _0x4d0067,shareReplay as _0x2de545,firstValueFrom as _0x48c009,concatMap as _0x61214b}from'rxjs';import{map as _0x130e36,take as _0x434d28,filter as _0x55f065,delay as _0x284d72,takeUntil as _0x14b72c}from'rxjs/operators';import{HTTPService as _0x3ce2dc,ISocketService as _0x2f4cab,MergeInterceptorFactory as _0x14191a,HTTPRequest as _0x47a0f4,UniverNetworkPlugin as _0x13bd6f,ThresholdInterceptorFactory as _0x2399ec}from'@univerjs/network';import{CollaborationEvent as _0x4b8a98,parseChangesetToProtocol as _0x55193b,ISnapshotServerService as _0x513fd2,isTransformMutationsWithChangesetSuccess as _0x5bbbc8,ITransformService as _0x3b018c,mapDocumentTypeToUniverType as _0x4c663c,RevisionService as _0x25256b,isTransformChangesetsSuccess as _0x1a324a,CompressMutationService as _0x422efc,parseProtocolChangeset as _0x286ee3,SnapshotService as _0x4e4c12,textEncoder as _0x35e2bc,b64DecodeUnicode as _0xcf2ac2,isTransformMutationsWithChangesetFailure as _0x578157,UniverCollaborationPlugin as _0x505413}from'@univerjs-pro/collaboration';import{ITelemetryService as _0x247e62}from'@univerjs/telemetry';import{RichTextEditingMutation as _0x3905df}from'@univerjs/docs';import{SheetsSelectionsService as _0xeb53fc,SetSelectionsOperation as _0x5e8588,InsertSheetMutation as _0x15d99d,EmptyMutation as _0x1137be,WorkbookEditablePermission as _0x57f5ad,SheetPermissionInitController as _0x146966,UniverSheetsPlugin as _0x2ed35b}from'@univerjs/sheets';import{ImageSourceType as _0x595b24,ImageUploadStatusType as _0x3fbe7b,IImageIoService as _0x27a32c}from'@univerjs/drawing';import{getGlobalObject as _0x25f0f0}from'@univerjs-pro/license';const En=_0x40530a(0x23f),In=_0x40530a(0x224),Tn=_0x40530a(0x11b),eo=_0x40530a(0x18a),Cn=0x7d0,Rn='COLLAB_WEB_SOCKET_URL',bn=_0x40530a(0x1ef),On=_0x40530a(0x37e),yn=_0x40530a(0xef),Nn=0x7530,Si='HEARTBEAT_TIMEOUT',Ei=0x4e20,Dn=0x4e20,Pn='RETRY_CONNECTING_MAX_COUNT',wn=0x3,to=_0x40530a(0xfc),io=0x3e8,Un='COLLAB_SUBMIT_CHANGESET_URL',An=_0x40530a(0x179),xn='LOGIN_URL_KEY',Ln=_0x40530a(0x326),no=_0x40530a(0x2b7),ro='/universer-api/uniscript';var Ii=(_0xc34e4a=>(_0xc34e4a[_0xc34e4a[_0x40530a(0x3c7)]=0x0]='UNDEFINED',_0xc34e4a[_0xc34e4a['OK']=0x1]='OK',_0xc34e4a[_0xc34e4a[_0x40530a(0x195)]=0x2]=_0x40530a(0x195),_0xc34e4a[_0xc34e4a[_0x40530a(0x356)]=0x3]=_0x40530a(0x356),_0xc34e4a[_0xc34e4a[_0x40530a(0x1d0)]=0x4]=_0x40530a(0x1d0),_0xc34e4a[_0xc34e4a[_0x40530a(0x121)]=0x5]=_0x40530a(0x121),_0xc34e4a[_0xc34e4a['ALREADY_EXISTS']=0x6]='ALREADY_EXISTS',_0xc34e4a[_0xc34e4a[_0x40530a(0x253)]=0x7]=_0x40530a(0x253),_0xc34e4a[_0xc34e4a['TOO_MANY_REQUESTS']=0x8]='TOO_MANY_REQUESTS',_0xc34e4a[_0xc34e4a[_0x40530a(0x351)]=0x9]=_0x40530a(0x351),_0xc34e4a[_0xc34e4a[_0x40530a(0x3d7)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0xc34e4a[_0xc34e4a[_0x40530a(0x2ff)]=0x1771]=_0x40530a(0x2ff),_0xc34e4a[_0xc34e4a[_0x40530a(0x100)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0xc34e4a[_0xc34e4a['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x40530a(0x2f6),_0xc34e4a[_0xc34e4a['APPLY_REJECT']=0x1b59]=_0x40530a(0x280),_0xc34e4a[_0xc34e4a[_0x40530a(0x29e)]=0x1b5a]=_0x40530a(0x29e),_0xc34e4a[_0xc34e4a[_0x40530a(0x210)]=0x1b5b]=_0x40530a(0x210),_0xc34e4a[_0xc34e4a['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x40530a(0x3e3),_0xc34e4a[_0xc34e4a[_0x40530a(0x3e1)]=0x1b5d]='APPLY_DUPLICATED',_0xc34e4a[_0xc34e4a[_0x40530a(0x292)]=0x1f41]=_0x40530a(0x292),_0xc34e4a[_0xc34e4a['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x40530a(0xf1),_0xc34e4a[_0xc34e4a['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0xc34e4a[_0xc34e4a[_0x40530a(0x17c)]=0x232b]=_0x40530a(0x17c),_0xc34e4a[_0xc34e4a[_0x40530a(0x399)]=0x232c]=_0x40530a(0x399),_0xc34e4a[_0xc34e4a['LICENSE_DISTRO_REJECTED']=0x232d]='LICENSE_DISTRO_REJECTED',_0xc34e4a[_0xc34e4a[_0x40530a(0x16f)]=0x2711]=_0x40530a(0x16f),_0xc34e4a[_0xc34e4a[_0x40530a(0x2d0)]=0x2712]=_0x40530a(0x2d0),_0xc34e4a[_0xc34e4a['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x40530a(0x190),_0xc34e4a[_0xc34e4a[_0x40530a(0x3be)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0xc34e4a[_0xc34e4a[_0x40530a(0x3d1)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0xc34e4a[_0xc34e4a['UNRECOGNIZED']=-0x1]=_0x40530a(0x3d8),_0xc34e4a))(Ii||{}),Q=(_0x31fed3=>(_0x31fed3[_0x31fed3[_0x40530a(0x3ab)]=0x0]=_0x40530a(0x3ab),_0x31fed3[_0x31fed3[_0x40530a(0x284)]=0x1]=_0x40530a(0x284),_0x31fed3[_0x31fed3[_0x40530a(0x39e)]=0x2]=_0x40530a(0x39e),_0x31fed3[_0x31fed3['UNIVER_SLIDE']=0x3]=_0x40530a(0x239),_0x31fed3[_0x31fed3[_0x40530a(0x10a)]=0x4]=_0x40530a(0x10a),_0x31fed3[_0x31fed3['UNRECOGNIZED']=-0x1]=_0x40530a(0x3d8),_0x31fed3))(Q||{}),F=(_0x14413c=>(_0x14413c[_0x14413c['UNKNOWN_CMD']=0x0]='UNKNOWN_CMD',_0x14413c[_0x14413c[_0x40530a(0x2fe)]=0x1]='HELLO',_0x14413c[_0x14413c[_0x40530a(0x17b)]=0x2]=_0x40530a(0x17b),_0x14413c[_0x14413c[_0x40530a(0x28a)]=0x3]=_0x40530a(0x28a),_0x14413c[_0x14413c['INGEST']=0x4]=_0x40530a(0x248),_0x14413c[_0x14413c[_0x40530a(0x1f0)]=0x5]=_0x40530a(0x1f0),_0x14413c[_0x14413c['RECV']=0x6]='RECV',_0x14413c[_0x14413c[_0x40530a(0x3d8)]=-0x1]=_0x40530a(0x3d8),_0x14413c))(F||{}),Ee=(_0x4cc4b1=>(_0x4cc4b1[_0x4cc4b1[_0x40530a(0x2b1)]=0x0]=_0x40530a(0x2b1),_0x4cc4b1[_0x4cc4b1['OK']=0x1]='OK',_0x4cc4b1[_0x4cc4b1['FAIL']=0x2]=_0x40530a(0x3cb),_0x4cc4b1[_0x4cc4b1['JOIN_ROOM_FULL']=0x3e9]=_0x40530a(0x30e),_0x4cc4b1[_0x4cc4b1[_0x40530a(0x1b9)]=0x3ea]=_0x40530a(0x1b9),_0x4cc4b1[_0x4cc4b1[_0x40530a(0x30b)]=0x3eb]=_0x40530a(0x30b),_0x4cc4b1[_0x4cc4b1[_0x40530a(0x113)]=0x3ec]=_0x40530a(0x113),_0x4cc4b1[_0x4cc4b1[_0x40530a(0x3d8)]=-0x1]='UNRECOGNIZED',_0x4cc4b1))(Ee||{}),Ti=(_0x172f9b=>(_0x172f9b[_0x172f9b[_0x40530a(0x16d)]=0x0]=_0x40530a(0x16d),_0x172f9b[_0x172f9b[_0x40530a(0x118)]=0x1]=_0x40530a(0x118),_0x172f9b[_0x172f9b['HttpExport']=0x2]=_0x40530a(0x36f),_0x172f9b[_0x172f9b[_0x40530a(0x2b0)]=0x3]=_0x40530a(0x2b0),_0x172f9b[_0x172f9b[_0x40530a(0x1ee)]=0x4]='UnitSnapshot',_0x172f9b[_0x172f9b[_0x40530a(0x3d8)]=-0x1]=_0x40530a(0x3d8),_0x172f9b))(Ti||{});const q=_0x40530a(0x1a7),Wt={};var se=(_0x4b9c62=>(_0x4b9c62[_0x40530a(0x288)]='OTHER_CLIENT_EDITING',_0x4b9c62[_0x40530a(0x356)]=_0x40530a(0x356),_0x4b9c62[_0x40530a(0xf9)]=_0x40530a(0xf9),_0x4b9c62['CLOSE_ROOM']=_0x40530a(0x2db),_0x4b9c62[_0x40530a(0x206)]=_0x40530a(0x206),_0x4b9c62[_0x40530a(0x327)]=_0x40530a(0x327),_0x4b9c62[_0x40530a(0x323)]=_0x40530a(0x323),_0x4b9c62[_0x40530a(0x161)]='SUBMIT_CHANGESET_TIMEOUT',_0x4b9c62))(se||{});class pe{constructor(){var _0x1dfeb5=_0x40530a;N(this,_0x1dfeb5(0x194),new _0x3da80f()),N(this,_0x1dfeb5(0x3e5),this[_0x1dfeb5(0x194)]['asObservable']());}[_0x40530a(0x2f2)](_0x161931){var _0x1baeb1=_0x40530a;this[_0x1baeb1(0x194)][_0x1baeb1(0x362)](_0x161931);}}const Mn=_0x10b14f('univer-pro.collaboration-client.network-condition.service');function $n(_0x54aa4e){var _0x4f11e7=_0x40530a,_0x42683c,_0x36149a,_0x38f950,_0x90628f,_0x585aff;const _0x265851=_0x54aa4e[_0x4f11e7(0x311)],_0x41f176=JSON[_0x4f11e7(0x274)](_0x265851);switch(_0x41f176['cmd']){case F[_0x4f11e7(0x1f0)]:case F['HELLO']:{const _0x2a5e16=_0x41f176[_0x4f11e7(0x380)];return{..._0x41f176,'data':_0x2a5e16,'cmd':_0x41f176['cmd']};}case F[_0x4f11e7(0x17b)]:{const _0x18971f=_0x41f176[_0x4f11e7(0x3a5)];return{..._0x41f176,'data':_0x18971f,'cmd':_0x41f176[_0x4f11e7(0x15f)]};}case F['RECV']:{const _0x3eedeb=_0x41f176[_0x4f11e7(0x37a)];switch(_0x3eedeb[_0x4f11e7(0x285)]){case _0x4b8a98[_0x4f11e7(0x173)]:return{..._0x41f176,'data':{..._0x3eedeb,'data':(_0x42683c=_0x3eedeb[_0x4f11e7(0x1e1)])==null?void 0x0:_0x42683c['cs']},'cmd':_0x41f176[_0x4f11e7(0x15f)]};case _0x4b8a98[_0x4f11e7(0x38f)]:return{..._0x41f176,'data':{..._0x3eedeb,'data':(_0x36149a=_0x3eedeb[_0x4f11e7(0x1ed)])==null?void 0x0:_0x36149a['cs']},'cmd':_0x41f176[_0x4f11e7(0x15f)]};case _0x4b8a98['NEW_CHANGESETS']:return{..._0x41f176,'data':{..._0x3eedeb,'data':(_0x38f950=_0x3eedeb[_0x4f11e7(0x25b)])==null?void 0x0:_0x38f950['cs']},'cmd':_0x41f176['cmd']};case _0x4b8a98[_0x4f11e7(0x1c7)]:return{..._0x41f176,'data':{..._0x3eedeb,'data':(_0x90628f=_0x3eedeb[_0x4f11e7(0x35f)])==null?void 0x0:_0x90628f['cs']},'cmd':_0x41f176['cmd']};case _0x4b8a98[_0x4f11e7(0x2fb)]:return{..._0x41f176,'data':{..._0x3eedeb,'data':(_0x585aff=_0x3eedeb['csShouldRetryEvent'])==null?void 0x0:_0x585aff['cs']},'cmd':_0x41f176['cmd']};case _0x4b8a98[_0x4f11e7(0xe1)]:return{..._0x41f176,'data':{..._0x3eedeb,'data':_0x3eedeb[_0x4f11e7(0x342)]},'cmd':_0x41f176[_0x4f11e7(0x15f)]};case _0x4b8a98[_0x4f11e7(0x193)]:return{..._0x41f176,'data':{..._0x3eedeb,'data':_0x3eedeb[_0x4f11e7(0x28e)]},'cmd':_0x41f176[_0x4f11e7(0x15f)]};case _0x4b8a98['USERS_LEAVE']:return{..._0x41f176,'data':{..._0x3eedeb,'data':_0x3eedeb[_0x4f11e7(0x19a)]},'cmd':_0x41f176[_0x4f11e7(0x15f)]};case _0x4b8a98[_0x4f11e7(0x200)]:return{..._0x41f176,'data':{..._0x3eedeb,'data':_0x3eedeb[_0x4f11e7(0x203)]},'cmd':_0x41f176['cmd']};case _0x4b8a98[_0x4f11e7(0x387)]:case _0x4b8a98[_0x4f11e7(0x2f5)]:return{..._0x41f176,'data':{..._0x3eedeb,'data':_0x3eedeb[_0x4f11e7(0x2d9)]},'cmd':_0x41f176[_0x4f11e7(0x15f)]};case _0x4b8a98[_0x4f11e7(0x12f)]:return{..._0x41f176,'data':{..._0x3eedeb,'data':_0x3eedeb['liveShareNewHost']},'cmd':_0x41f176[_0x4f11e7(0x15f)]};case _0x4b8a98[_0x4f11e7(0x1c0)]:return{..._0x41f176,'data':_0x3eedeb,'cmd':_0x41f176[_0x4f11e7(0x15f)]};case _0x4b8a98['COMMENT_UPDATE']:return{..._0x41f176,'data':{..._0x3eedeb,'data':_0x3eedeb['commentUpdateEvent']},'cmd':_0x41f176[_0x4f11e7(0x15f)]};case _0x4b8a98[_0x4f11e7(0x1ae)]:return{..._0x41f176,'data':{..._0x3eedeb,'data':_0x3eedeb['updatePermissionObjEvent']},'cmd':_0x41f176[_0x4f11e7(0x15f)]};case _0x4b8a98[_0x4f11e7(0x2e0)]:return{..._0x41f176,'data':{..._0x3eedeb,'data':_0x3eedeb['shouldCloseConn']},'cmd':_0x41f176['cmd']};case _0x4b8a98[_0x4f11e7(0x211)]:return{..._0x41f176,'data':{..._0x3eedeb,'data':_0x3eedeb[_0x4f11e7(0x333)]},'cmd':_0x41f176[_0x4f11e7(0x15f)]};default:return _0x41f176;}}default:return _0x41f176;}}function Hn(_0xf43d6){var _0x375202=_0x40530a;switch(_0xf43d6['cmd']){case F['HEARTBEAT']:case F[_0x375202(0x2fe)]:return JSON['stringify']({'cmd':_0xf43d6[_0x375202(0x15f)],'routeKey':_0xf43d6[_0x375202(0x205)]});case F[_0x375202(0x248)]:{let _0x14b9c6;switch(_0xf43d6['data'][_0x375202(0x285)]){case _0x4b8a98[_0x375202(0xe1)]:{_0x14b9c6={'eventID':_0x4b8a98[_0x375202(0xe1)],'updateCursorEvent':_0xf43d6[_0x375202(0x311)]['data']};break;}case _0x4b8a98[_0x375202(0x15e)]:{_0x14b9c6={'eventID':_0x4b8a98[_0x375202(0x15e)],'leaveEvent':_0xf43d6[_0x375202(0x311)][_0x375202(0x311)]};break;}case _0x4b8a98[_0x375202(0x193)]:{_0x14b9c6={'eventID':_0x4b8a98[_0x375202(0x193)],'joinEvent':_0xf43d6[_0x375202(0x311)][_0x375202(0x311)]};break;}case _0x4b8a98['LIVESHARE_NEW_HOST']:{_0x14b9c6={'eventID':_0x4b8a98['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0xf43d6[_0x375202(0x311)][_0x375202(0x311)]};break;}case _0x4b8a98[_0x375202(0x2f5)]:{_0x14b9c6={'eventID':_0x4b8a98[_0x375202(0x2f5)],'liveShareOperation':_0xf43d6['data'][_0x375202(0x311)]};break;}case _0x4b8a98['LIVESHARE_TERMINATE']:{_0x14b9c6={'eventID':_0x4b8a98[_0x375202(0x12f)],'liveShareTerminate':_0xf43d6[_0x375202(0x311)]['data']};break;}case _0x4b8a98['LIVESHARE_REQUEST_HOST']:{_0x14b9c6={'eventID':_0x4b8a98[_0x375202(0x157)],'liveShareRequestHost':_0xf43d6[_0x375202(0x311)]['data']};break;}case _0x4b8a98[_0x375202(0x387)]:{_0x14b9c6={'eventID':_0x4b8a98[_0x375202(0x387)]};break;}default:_0x14b9c6={'eventID':_0xf43d6[_0x375202(0x311)][_0x375202(0x285)]};}return JSON[_0x375202(0x372)]({'cmd':_0xf43d6[_0x375202(0x15f)],'routeKey':_0xf43d6['routeKey'],'collaMsg':_0x14b9c6});}case F[_0x375202(0x17b)]:return JSON['stringify']({'cmd':_0xf43d6[_0x375202(0x15f)],'routeKey':_0xf43d6[_0x375202(0x205)],'joinReq':_0xf43d6[_0x375202(0x311)]});case F[_0x375202(0x28a)]:return JSON[_0x375202(0x372)]({'cmd':_0xf43d6['cmd'],'routeKey':_0xf43d6[_0x375202(0x205)],'leaveReq':_0xf43d6[_0x375202(0x311)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var kn=Object[_0x40530a(0x27d)],jn=Object[_0x40530a(0x338)],Bn=(_0x315e00,_0x39996e,_0x4159cf,_0xe6da36)=>{var _0x152051=_0x40530a;for(var _0x351b6d=_0xe6da36>0x1?void 0x0:_0xe6da36?jn(_0x39996e,_0x4159cf):_0x39996e,_0x3fddf5=_0x315e00[_0x152051(0x37d)]-0x1,_0x42d706;_0x3fddf5>=0x0;_0x3fddf5--)(_0x42d706=_0x315e00[_0x3fddf5])&&(_0x351b6d=(_0xe6da36?_0x42d706(_0x39996e,_0x4159cf,_0x351b6d):_0x42d706(_0x351b6d))||_0x351b6d);return _0xe6da36&&_0x351b6d&&kn(_0x39996e,_0x4159cf,_0x351b6d),_0x351b6d;},Ue=(_0x278408,_0x5525f2)=>(_0xc1561b,_0x1c1542)=>_0x5525f2(_0xc1561b,_0x1c1542,_0x278408);const Ci=_0x10b14f(_0x40530a(0x345));function Fn(_0x3b3009,_0x13e7ef,_0x45adca){var _0x34a826=_0x40530a;return _0x3b3009+'/'+_0x13e7ef+_0x34a826(0x329)+_0x45adca+_0x34a826(0x318);}let Et=class extends _0x551e1f{constructor(_0x30eb60,_0x19c3e8,_0x2fe039,_0x4b47c8,_0xaf8f74){var _0x2f999f=_0x40530a;super(),this[_0x2f999f(0x3e0)]=_0x30eb60,this[_0x2f999f(0x28b)]=_0x19c3e8,this['_configService']=_0x2fe039,this[_0x2f999f(0x278)]=_0x4b47c8,this[_0x2f999f(0x255)]=_0xaf8f74;}[_0x40530a(0x2c9)](_0x13b423){var _0x2fb096=_0x40530a;const _0x3c3b62=this[_0x2fb096(0x3e0)][_0x2fb096(0x27f)](_0x2f4cab);if(!_0x3c3b62)throw new Error(_0x2fb096(0x27e));const _0x5c62b8=_0x3c3b62['createSocket'](_0x13b423);if(!_0x5c62b8)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x40b688=new _0x4f67d6(),_0x263d81=new _0x3da80f();_0x40b688[_0x2fb096(0x2a0)](_0x5c62b8[_0x2fb096(0x376)]['subscribe'](_0x5c1e89=>_0x263d81[_0x2fb096(0x362)](_0x5c1e89))),_0x40b688[_0x2fb096(0x2a0)](_0x205e55(()=>_0x263d81[_0x2fb096(0x2cf)]()));const _0x9f0599=new _0x3da80f();_0x40b688[_0x2fb096(0x2a0)](_0x5c62b8['error$'][_0x2fb096(0x1af)](_0x968687=>_0x9f0599[_0x2fb096(0x362)](_0x968687))),_0x40b688[_0x2fb096(0x2a0)](_0x205e55(()=>_0x9f0599[_0x2fb096(0x2cf)]()));const _0x57c37e=new _0x3da80f();_0x40b688[_0x2fb096(0x2a0)](_0x5c62b8[_0x2fb096(0x1d7)][_0x2fb096(0x1af)](_0x165ef3=>{const _0x3848e8=$n(_0x165ef3);_0x57c37e['next'](_0x3848e8);})),_0x40b688[_0x2fb096(0x2a0)](_0x205e55(()=>_0x57c37e['complete']()));let _0x5a5d43;const _0xd9f6a1=()=>{var _0x502dd0=_0x2fb096;_0x9f0599[_0x502dd0(0x362)](new Event(_0x502dd0(0x36e))),_0x263d81[_0x502dd0(0x362)](new CloseEvent(_0x502dd0(0x36e))),_0x5a5d43['close']();};return _0x5a5d43={'memberID':'','close$':_0x263d81['asObservable'](),'error$':_0x9f0599[_0x2fb096(0x303)](),'open$':_0x5c62b8[_0x2fb096(0x394)],'message$':_0x57c37e[_0x2fb096(0x303)](),'send':_0x16d4df=>{var _0x95755d=_0x2fb096;if(_0x16d4df['cmd']===F[_0x95755d(0x248)]){if(_0x16d4df['data']['eventID']===_0x4b8a98[_0x95755d(0x3a2)]){this[_0x95755d(0x354)](_0x5a5d43,_0x16d4df[_0x95755d(0x311)])[_0x95755d(0x377)](_0x336290=>{var _0x2d69bd=_0x95755d;this[_0x2d69bd(0x278)][_0x2d69bd(0xf4)](_0x336290),_0xd9f6a1();});return;}if(_0x16d4df[_0x95755d(0x311)]['eventID']===_0x4b8a98[_0x95755d(0x14c)]){const _0x1362dc=_0x16d4df[_0x95755d(0x311)];this['_fetchMissChangesets'](_0x1362dc)[_0x95755d(0x201)](_0x19176c=>{var _0x2a39a5=_0x95755d;_0x57c37e['next']({'cmd':F[_0x2a39a5(0x398)],'code':Ee['OK'],'routeKey':_0x1362dc['data'][_0x2a39a5(0x2f7)],'routeType':'','data':{'eventID':_0x4b8a98['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x19176c}}});})['catch'](_0x48cdb4=>{var _0x193bfc=_0x95755d;this[_0x193bfc(0x278)][_0x193bfc(0xf4)](_0x48cdb4),_0xd9f6a1();});return;}}_0x5c62b8['send'](Hn(_0x16d4df));},'close':()=>{var _0x442c22=_0x2fb096;_0x5c62b8['close'](),_0x40b688[_0x442c22(0x19c)]();}},_0x5a5d43;}async[_0x40530a(0x354)](_0xf88cc0,_0x188e0d){var _0x22448a=_0x40530a,_0x21d0fa,_0x2ee536;const {unitType:_0x2ba0ae,unitID:_0x2ca23f,changeset:_0x5ca4ed}=_0x188e0d[_0x22448a(0x311)],_0x5c45a0={'unitID':_0x2ca23f,'memberID':_0xf88cc0['memberID'],'type':_0x2ba0ae,'changeset':_0x55193b(_0x5ca4ed)},_0x52a84c=this['_configService']['getConfig'](Un),_0x4dc873=this[_0x22448a(0xf8)]['getConfig'](q),_0x3df987=Fn((_0x2ee536=(_0x21d0fa=_0x4dc873==null?void 0x0:_0x4dc873['collabSubmitChangesetUrl'])!=null?_0x21d0fa:_0x52a84c)!=null?_0x2ee536:An,_0x2ba0ae,_0x2ca23f);try{await this[_0x22448a(0x28b)]['post'](_0x3df987,{'body':_0x5c45a0});}catch(_0x4c349b){throw this[_0x22448a(0x278)][_0x22448a(0xf4)](_0x22448a(0x22f),_0x22448a(0x2bf)),_0x4c349b;}}async[_0x40530a(0x3d3)](_0x487fef){var _0x4605db=_0x40530a;const {unitID:_0x574ca4,from:_0x5a748b,to:_0x437443,unitType:_0x2ecb81}=_0x487fef['data'];return(await this[_0x4605db(0x255)][_0x4605db(0x233)]({'metadata':void 0x0},{'unitID':_0x574ca4,'type':_0x2ecb81,'from':_0x5a748b,'to':_0x437443}))[_0x4605db(0x18f)];}};Et=Bn([Ue(0x0,_0x48db98(_0x19dc6b)),Ue(0x1,_0x48db98(_0x3ce2dc)),Ue(0x2,_0x5b62c8),Ue(0x3,_0x6e98f),Ue(0x4,_0x513fd2)],Et);const Vn=_0x40530a(0x1cf);function Gn(_0x9726c7){var _0x478081=_0x40530a;return JSON['stringify'](_0x9726c7)[_0x478081(0x37d)];}class Ri{constructor(){var _0x2485a2=_0x40530a;N(this,_0x2485a2(0x128),new _0x3da80f()),N(this,_0x2485a2(0xe6),this[_0x2485a2(0x128)][_0x2485a2(0x303)]());}[_0x40530a(0x24b)](_0x4f8392){var _0x19d2b3=_0x40530a;this[_0x19d2b3(0x128)][_0x19d2b3(0x362)](_0x4f8392);}}var Wn=Object[_0x40530a(0x27d)],Kn=Object[_0x40530a(0x338)],Yn=(_0x42865d,_0x51f152,_0x27ba36,_0x827711)=>{var _0x147138=_0x40530a;for(var _0x3b6bf1=_0x827711>0x1?void 0x0:_0x827711?Kn(_0x51f152,_0x27ba36):_0x51f152,_0x296ed0=_0x42865d[_0x147138(0x37d)]-0x1,_0x149e0d;_0x296ed0>=0x0;_0x296ed0--)(_0x149e0d=_0x42865d[_0x296ed0])&&(_0x3b6bf1=(_0x827711?_0x149e0d(_0x51f152,_0x27ba36,_0x3b6bf1):_0x149e0d(_0x3b6bf1))||_0x3b6bf1);return _0x827711&&_0x3b6bf1&&Wn(_0x51f152,_0x27ba36,_0x3b6bf1),_0x3b6bf1;},Kt=(_0x4b2a5c,_0x573b28)=>(_0x3ea5d0,_0x553b20)=>_0x573b28(_0x3ea5d0,_0x553b20,_0x4b2a5c);let xe=class extends _0x551e1f{constructor(_0x25a58d,_0x811aa6){var _0x433bf4=_0x40530a;super(),N(this,_0x433bf4(0x2a7),new Map()),N(this,_0x433bf4(0x2e8),new _0x3da80f()),(this['_univerInstanceService']=_0x25a58d,this['_userManagerService']=_0x811aa6,this[_0x433bf4(0x3ae)](_0x583ffc(this[_0x433bf4(0x305)][_0x433bf4(0x10b)](_0x4d2a26[_0x433bf4(0x39e)])[_0x433bf4(0x330)](_0x130e36(_0x3b8c74=>_0x3b8c74['getUnitId']())),this[_0x433bf4(0x305)][_0x433bf4(0x10b)](_0x4d2a26[_0x433bf4(0x284)])[_0x433bf4(0x330)](_0x130e36(_0x2a7390=>_0x2a7390[_0x433bf4(0x13f)]())),this[_0x433bf4(0x305)][_0x433bf4(0x10b)](_0x4d2a26[_0x433bf4(0x239)])[_0x433bf4(0x330)](_0x130e36(_0x1ada82=>_0x1ada82[_0x433bf4(0x13f)]())))[_0x433bf4(0x1af)](_0x260a07=>this[_0x433bf4(0x1ba)](_0x260a07))));}[_0x40530a(0x297)](_0x1ffa38){var _0x5988cf=_0x40530a;return this[_0x5988cf(0x2a7)]['has'](_0x1ffa38)?_0xdc5b87(this['_roomMembers'][_0x5988cf(0x27f)](_0x1ffa38)):this[_0x5988cf(0x2e8)][_0x5988cf(0x330)](_0x130e36(_0xbc751d=>{var _0x406563=_0x5988cf;if(_0xbc751d===_0x1ffa38)return this[_0x406563(0x2a7)]['get'](_0xbc751d);}));}['setCurrentUser'](_0x336f93){var _0x1f9285=_0x40530a;this['_userManagerService'][_0x1f9285(0x33f)](_0x336f93);}[_0x40530a(0x286)](){var _0x1f006f=_0x40530a;return this[_0x1f006f(0x199)][_0x1f006f(0x286)]();}['updateMember'](_0x125555,_0x31ae60){var _0xb7ab9e=_0x40530a;let _0x19bd5f=this[_0xb7ab9e(0x2a7)][_0xb7ab9e(0x27f)](_0x125555);_0x19bd5f||(_0x19bd5f=new qn(),this[_0xb7ab9e(0x2a7)][_0xb7ab9e(0x2da)](_0x125555,_0x19bd5f),this[_0xb7ab9e(0x2e8)]['next'](_0x125555)),_0x19bd5f[_0xb7ab9e(0x214)](_0x31ae60);}[_0x40530a(0x35c)](_0xb10caf,_0x8c8193){var _0x288df7=_0x40530a;const _0x35ec9b=this[_0x288df7(0x2a7)][_0x288df7(0x27f)](_0xb10caf);_0x35ec9b&&_0x35ec9b[_0x288df7(0x35c)](_0x8c8193);}[_0x40530a(0x208)](_0x373393){var _0x55a042=_0x40530a;return this['_roomMembers'][_0x55a042(0x27f)](_0x373393);}[_0x40530a(0x1d5)](_0xba2953,_0x2e555d){var _0x49d330=_0x40530a;const _0x5aa554=this[_0x49d330(0x2a7)][_0x49d330(0x27f)](_0xba2953);if(_0x5aa554)return _0x5aa554[_0x49d330(0x1d5)](_0x2e555d);}['_removeRoom'](_0x43f4bc){var _0x53230a=_0x40530a;const _0x26261a=this[_0x53230a(0x2a7)]['get'](_0x43f4bc);_0x26261a&&(_0x26261a[_0x53230a(0x19c)](),this[_0x53230a(0x2a7)][_0x53230a(0x234)](_0x43f4bc));}['dispose'](){var _0x53fdc5=_0x40530a;this[_0x53fdc5(0x2a7)][_0x53fdc5(0xe9)](_0x1d5edd=>_0x1d5edd['dispose']()),this[_0x53fdc5(0x2a7)]['clear'](),this[_0x53fdc5(0x2e8)]['complete']();}};xe=Yn([Kt(0x0,_0x5609db),Kt(0x1,_0x48db98(_0x252bbe))],xe);class qn extends _0x551e1f{constructor(){var _0x224bce=_0x40530a;super(...arguments),N(this,_0x224bce(0x287),new Map()),N(this,'_members$',new _0x1379a3(this[_0x224bce(0x287)])),N(this,_0x224bce(0x33d),this[_0x224bce(0x335)]['asObservable']());}[_0x40530a(0x19c)](){var _0x243f75=_0x40530a;this[_0x243f75(0x287)][_0x243f75(0x386)]();}[_0x40530a(0x214)](_0x4d9687){var _0xde911=_0x40530a;this[_0xde911(0x287)][_0xde911(0x2da)](_0x4d9687[_0xde911(0x3a0)],_0x4d9687),this[_0xde911(0x36d)]();}[_0x40530a(0x35c)](_0x334469){var _0x3d9333=_0x40530a;this[_0x3d9333(0x287)][_0x3d9333(0x234)](_0x334469);}[_0x40530a(0x1d5)](_0x47ad39){var _0x1181e0=_0x40530a;return this[_0x1181e0(0x287)][_0x1181e0(0x27f)](_0x47ad39);}['getAllMembers'](){var _0x43f707=_0x40530a;return Array[_0x43f707(0x30d)](this[_0x43f707(0x287)][_0x43f707(0x124)]());}[_0x40530a(0x36d)](){var _0x52d753=_0x40530a;this[_0x52d753(0x335)][_0x52d753(0x362)](this['_members']);}}var zn=Object[_0x40530a(0x27d)],Jn=Object['getOwnPropertyDescriptor'],Xn=(_0x5a2ffc,_0x18f328,_0x2da44b,_0x5818c5)=>{var _0x2cd6f1=_0x40530a;for(var _0x389df7=_0x5818c5>0x1?void 0x0:_0x5818c5?Jn(_0x18f328,_0x2da44b):_0x18f328,_0x5b52ea=_0x5a2ffc[_0x2cd6f1(0x37d)]-0x1,_0x3c9fec;_0x5b52ea>=0x0;_0x5b52ea--)(_0x3c9fec=_0x5a2ffc[_0x5b52ea])&&(_0x389df7=(_0x5818c5?_0x3c9fec(_0x18f328,_0x2da44b,_0x389df7):_0x3c9fec(_0x389df7))||_0x389df7);return _0x5818c5&&_0x389df7&&zn(_0x18f328,_0x2da44b,_0x389df7),_0x389df7;},me=(_0x27f46e,_0x3c1364)=>(_0x428f84,_0x68e769)=>_0x3c1364(_0x428f84,_0x68e769,_0x27f46e),Te=(_0x4c1654=>(_0x4c1654[_0x4c1654[_0x40530a(0x146)]=0x0]=_0x40530a(0x146),_0x4c1654[_0x4c1654[_0x40530a(0x35e)]=0x1]=_0x40530a(0x35e),_0x4c1654[_0x4c1654[_0x40530a(0x3df)]=0x2]=_0x40530a(0x3df),_0x4c1654[_0x4c1654['ONLINE']=0x3]='ONLINE',_0x4c1654))(Te||{});const Yt={[Ee[_0x40530a(0x3cb)]]:_0x40530a(0x30f),[Ee[_0x40530a(0x30e)]]:_0x40530a(0x21e),[Ee[_0x40530a(0x1b9)]]:_0x40530a(0x1e9),[Ee[_0x40530a(0x30b)]]:_0x40530a(0x262),[Ee[_0x40530a(0x113)]]:_0x40530a(0x189)};let It=class extends _0x18f063{constructor(_0x4e190e,_0x11da46,_0x2e7671,_0x2a5770,_0x4a1e43,_0x18b72b,_0x22ae8d,_0x1b25e8,_0x10c42a){var _0x33ff7b=_0x40530a;super(),N(this,'_sessionStatus$',new _0x1379a3(0x0)),N(this,_0x33ff7b(0x143),this[_0x33ff7b(0x152)][_0x33ff7b(0x303)]()),N(this,_0x33ff7b(0x194),new _0x3da80f()),N(this,_0x33ff7b(0x3e5),this[_0x33ff7b(0x194)]['asObservable']()),N(this,_0x33ff7b(0x2c1)),N(this,_0x33ff7b(0x316)),N(this,_0x33ff7b(0x170)),N(this,_0x33ff7b(0x1c4),!0x1),N(this,'_telemetryInfo',null),(this['_unitID']=_0x4e190e,this[_0x33ff7b(0x278)]=_0x2e7671,this[_0x33ff7b(0xf8)]=_0x2a5770,this['_localeService']=_0x4a1e43,this['_memberService']=_0x18b72b,this[_0x33ff7b(0x245)]=_0x22ae8d,this['_collaborationUIEventService']=_0x1b25e8,this['_telemetryService']=_0x10c42a,this[_0x33ff7b(0x1c4)]=!!this[_0x33ff7b(0x20e)],_0x11da46[_0x33ff7b(0x330)](_0xb4b3a(this['dispose$']))['subscribe'](_0x480f7f=>{var _0x32db18=_0x33ff7b,_0x2a9680;typeof _0x480f7f>'u'||(this[_0x32db18(0x2c1)]=_0x480f7f,_0x480f7f?(this['_joinRoom'](_0x480f7f),this[_0x32db18(0x316)]=_0x480f7f[_0x32db18(0x1d7)][_0x32db18(0x1af)](_0x23e860=>{var _0x4c704c=_0x32db18;_0x23e860[_0x4c704c(0x205)]===this[_0x4c704c(0x21d)]&&this[_0x4c704c(0x1b1)](_0x23e860);})):(this[_0x32db18(0x358)](),this[_0x32db18(0x152)][_0x32db18(0x362)](0x2),(_0x2a9680=this[_0x32db18(0x316)])==null||_0x2a9680['unsubscribe'](),this[_0x32db18(0x316)]=null));}));}get[_0x40530a(0x232)](){var _0x236773=_0x40530a;return this[_0x236773(0x152)][_0x236773(0x3af)]();}['getMemberID'](){var _0x5b3a09=_0x40530a,_0xf49126,_0x3b1896;return(_0x3b1896=(_0xf49126=this[_0x5b3a09(0x2c1)])==null?void 0x0:_0xf49126[_0x5b3a09(0x3a0)])!=null?_0x3b1896:null;}['dispose'](){var _0x4056a8=_0x40530a;super[_0x4056a8(0x19c)](),this['dispose$']['next'](),this[_0x4056a8(0x1ce)][_0x4056a8(0x2cf)]();}[_0x40530a(0x1ff)](){var _0x2ba93b=_0x40530a,_0x3c4954,_0x59ed45;this[_0x2ba93b(0x358)](),(_0x3c4954=this[_0x2ba93b(0x2c1)])==null||_0x3c4954[_0x2ba93b(0x378)]({'cmd':F[_0x2ba93b(0x28a)],'data':{'roomID':this[_0x2ba93b(0x21d)]}}),(_0x59ed45=this[_0x2ba93b(0x2c1)])==null||_0x59ed45[_0x2ba93b(0x1ff)](),this[_0x2ba93b(0x194)][_0x2ba93b(0x2cf)](),this[_0x2ba93b(0x152)][_0x2ba93b(0x2cf)](),this['dispose']();}[_0x40530a(0x1b1)](_0x3b0cac){var _0xfa00b5=_0x40530a;_0x3b0cac[_0xfa00b5(0x15f)]===F[_0xfa00b5(0x17b)]?this[_0xfa00b5(0x119)](_0x3b0cac):_0x3b0cac[_0xfa00b5(0x15f)]===F[_0xfa00b5(0x398)]&&this['_onRecvEvent'](_0x3b0cac);}['_joinRoom'](_0x185891){var _0xada7b4=_0x40530a;this['_sessionStatus$'][_0xada7b4(0x362)](0x1),_0x185891[_0xada7b4(0x378)]({'cmd':F[_0xada7b4(0x17b)],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this[_0xada7b4(0x21d)]}]}});}[_0x40530a(0x119)](_0x525bdf){var _0x5df0fa=_0x40530a,_0x5b5d4d;if(_0x525bdf[_0x5df0fa(0x1fb)]in Yt){this['_collaborationUIEventService']['emitEvent']({'id':se[_0x5df0fa(0x206)],'data':Yt[_0x525bdf['code']]}),this['_sessionStatus$'][_0x5df0fa(0x362)](0x2);return;}this[_0x5df0fa(0x152)][_0x5df0fa(0x362)](0x3);const _0x397484=(_0x5b5d4d=_0x525bdf[_0x5df0fa(0x311)]['roomInfos'][this[_0x5df0fa(0x21d)]])==null?void 0x0:_0x5b5d4d[_0x5df0fa(0x269)];_0x397484&&_0x397484[_0x5df0fa(0xe9)](_0x54a892=>this[_0x5df0fa(0x1a2)][_0x5df0fa(0x214)](this['_unitID'],_0x54a892));}['_onRecvEvent'](_0x831c99){var _0xcf12bc=_0x40530a;try{const _0x270e82=_0x831c99[_0xcf12bc(0x311)];switch(_0x270e82['eventID']){case _0x4b8a98[_0xcf12bc(0x193)]:this['_onUserJoin'](_0x270e82),this[_0xcf12bc(0x194)][_0xcf12bc(0x362)](_0x270e82);break;case _0x4b8a98[_0xcf12bc(0x15e)]:this[_0xcf12bc(0x163)](_0x270e82),this['_event$'][_0xcf12bc(0x362)](_0x270e82);break;case _0x4b8a98[_0xcf12bc(0x38f)]:case _0x4b8a98['CHANGESET_SHOULD_RETRY']:this['_stopTelemetryCollaborationNewChangeset'](),this['_clearCollaborationTimeoutTimer'](),this[_0xcf12bc(0x194)]['next'](_0x270e82);break;case _0x4b8a98[_0xcf12bc(0x1c0)]:this['_logService'][_0xcf12bc(0xf4)](_0xcf12bc(0x29c)+JSON[_0xcf12bc(0x372)](_0x270e82)),this[_0xcf12bc(0x194)][_0xcf12bc(0x362)](_0x270e82);break;case _0x4b8a98[_0xcf12bc(0x24a)]:this[_0xcf12bc(0x245)][_0xcf12bc(0x24b)](_0x270e82[_0xcf12bc(0x311)]),this[_0xcf12bc(0x194)][_0xcf12bc(0x362)](_0x270e82);break;default:this[_0xcf12bc(0x194)][_0xcf12bc(0x362)](_0x270e82);}}catch(_0x3b4f26){this['_logService']['error'](_0x3b4f26,_0x831c99);}}[_0x40530a(0x132)](_0x2390bd){var _0x2a6439=_0x40530a;this[_0x2a6439(0x1a2)][_0x2a6439(0x214)](this[_0x2a6439(0x21d)],_0x2390bd[_0x2a6439(0x311)]);}[_0x40530a(0x163)](_0x284a2f){var _0x1b8b3a=_0x40530a;this[_0x1b8b3a(0x1a2)][_0x1b8b3a(0x35c)](this[_0x1b8b3a(0x21d)],_0x284a2f[_0x1b8b3a(0x311)][_0x1b8b3a(0x3a0)]);}async[_0x40530a(0x378)](_0x14762f,_0x518f35){var _0x2b6ab7=_0x40530a;if(this[_0x2b6ab7(0x232)]!==0x3||!this['_socket'])throw new Error(_0x2b6ab7(0x381));try{_0x14762f[_0x2b6ab7(0x285)]===_0x4b8a98['SUBMIT_CHANGESET']&&(this[_0x2b6ab7(0xed)](),this[_0x2b6ab7(0xe5)](_0x14762f)),this[_0x2b6ab7(0x2c1)][_0x2b6ab7(0x378)]({'cmd':F[_0x2b6ab7(0x248)],'routeKey':_0x518f35,'routeType':'','data':_0x14762f});}catch(_0x42aeb7){this['_logService'][_0x2b6ab7(0xf4)](_0x42aeb7);}}[_0x40530a(0xed)](){var _0x20fcd3=_0x40530a,_0x4ca55f;this['_collaborationTimeoutTimer']=setTimeout(()=>{var _0x5f4a8f=_0x192f;this[_0x5f4a8f(0x170)]=null,this[_0x5f4a8f(0x26c)][_0x5f4a8f(0x2f2)]({'id':se['SUBMIT_CHANGESET_TIMEOUT']});},(_0x4ca55f=this[_0x20fcd3(0xf8)][_0x20fcd3(0x21f)](Si))!=null?_0x4ca55f:Ei);}[_0x40530a(0xe7)](){var _0x723a6f=_0x40530a;this[_0x723a6f(0x170)]&&(clearTimeout(this['_collaborationTimeoutTimer']),this[_0x723a6f(0x170)]=null);}[_0x40530a(0xe5)](_0x5c2e84){var _0x39439a=_0x40530a;if(!this[_0x39439a(0x1c4)])return;const {data:_0x476321}=_0x5c2e84,{unitID:_0x39001d,changeset:_0x1c30b5}=_0x476321,{mutations:_0x43f396,type:_0x3f7caa}=_0x1c30b5;this[_0x39439a(0x1ac)]={'unitId':_0x39001d,'type':_0x3f7caa,'startTime':performance[_0x39439a(0x385)](),'stopTime':0x0,'duration':0x0,'size':Gn(_0x43f396)};}[_0x40530a(0x32c)](){var _0x245f8a=_0x40530a;if(this[_0x245f8a(0x1c4)]){if(!this[_0x245f8a(0x1ac)]){this['_logService']['error']('[CollaborationSession]',_0x245f8a(0x2a6));return;}this['_telemetryInfo'][_0x245f8a(0x185)]=performance[_0x245f8a(0x385)](),this[_0x245f8a(0x1ac)][_0x245f8a(0x3c0)]=this[_0x245f8a(0x1ac)]['stopTime']-this[_0x245f8a(0x1ac)][_0x245f8a(0x324)],this[_0x245f8a(0x20e)]['capture'](Vn,this['_telemetryInfo']),this[_0x245f8a(0x1ac)]=null;}}['_throwTelemetryCollaborationNewChangeset'](){var _0x3fe292=_0x40530a;this[_0x3fe292(0x1ac)]=null;}};It=Xn([me(0x2,_0x6e98f),me(0x3,_0x5b62c8),me(0x4,_0x48db98(_0x5529ab)),me(0x5,_0x48db98(xe)),me(0x6,_0x48db98(Ri)),me(0x7,_0x48db98(pe)),me(0x8,_0x5b33db(_0x247e62))],It);var Zn=Object[_0x40530a(0x27d)],Qn=Object[_0x40530a(0x338)],er=(_0x10e20c,_0x138417,_0x5a21eb,_0x108486)=>{var _0x37293f=_0x40530a;for(var _0x1c7f68=_0x108486>0x1?void 0x0:_0x108486?Qn(_0x138417,_0x5a21eb):_0x138417,_0x561072=_0x10e20c[_0x37293f(0x37d)]-0x1,_0x26af1f;_0x561072>=0x0;_0x561072--)(_0x26af1f=_0x10e20c[_0x561072])&&(_0x1c7f68=(_0x108486?_0x26af1f(_0x138417,_0x5a21eb,_0x1c7f68):_0x26af1f(_0x1c7f68))||_0x1c7f68);return _0x108486&&_0x1c7f68&&Zn(_0x138417,_0x5a21eb,_0x1c7f68),_0x1c7f68;},ge=(_0x1e8e50,_0x6ad42)=>(_0x409268,_0x223ff3)=>_0x6ad42(_0x409268,_0x223ff3,_0x1e8e50);let Le=class extends _0x551e1f{constructor(_0x51aa2a,_0x348fd0,_0x2d40f4,_0x561820,_0x22777a,_0x488b4f,_0x544b4d){var _0x13e29e=_0x40530a;super(),N(this,_0x13e29e(0x110),new _0x1379a3(void 0x0)),N(this,_0x13e29e(0x230),this[_0x13e29e(0x110)][_0x13e29e(0x303)]()),N(this,_0x13e29e(0x331),null),N(this,_0x13e29e(0x3de),new Map()),N(this,_0x13e29e(0x33b),new _0x1379a3(Te[_0x13e29e(0x146)])),N(this,_0x13e29e(0x396),this[_0x13e29e(0x33b)][_0x13e29e(0x303)]()),N(this,'_socketReady',!0x1),N(this,_0x13e29e(0x117)),N(this,_0x13e29e(0x2d6),0x0),N(this,'_sendHeartbeatTimer'),N(this,_0x13e29e(0x32a)),(this[_0x13e29e(0x3e0)]=_0x51aa2a,this[_0x13e29e(0x278)]=_0x348fd0,this[_0x13e29e(0xf8)]=_0x2d40f4,this['_socketService']=_0x561820,this['_httpService']=_0x22777a,this[_0x13e29e(0x26c)]=_0x488b4f,this[_0x13e29e(0x1cb)]=_0x544b4d,this[_0x13e29e(0x177)]());}get[_0x40530a(0x2c1)](){var _0x29cb15=_0x40530a;return this[_0x29cb15(0x110)][_0x29cb15(0x3af)]();}[_0x40530a(0x177)](){var _0x124bd4=_0x40530a;this[_0x124bd4(0x1cb)]&&this[_0x124bd4(0x3ae)](this['_networkConditionService'][_0x124bd4(0x348)]['subscribe'](_0x387a1c=>{var _0x2e7d2c=_0x124bd4;_0x387a1c&&!this['_socket']&&this[_0x2e7d2c(0x115)](),_0x387a1c||this[_0x2e7d2c(0x2bd)]();}));}[_0x40530a(0x19c)](){var _0x1b39a2=_0x40530a;super[_0x1b39a2(0x19c)](),this['_sessions'][_0x1b39a2(0xe9)](_0x456d66=>_0x456d66[_0x1b39a2(0x19c)]()),this[_0x1b39a2(0x3de)]['clear'](),this[_0x1b39a2(0x33b)]['complete']();}async[_0x40530a(0x3e8)](_0x13ceda){var _0x403e46=_0x40530a;if(this[_0x403e46(0x3de)][_0x403e46(0x2e9)](_0x13ceda))return this[_0x403e46(0x3de)][_0x403e46(0x27f)](_0x13ceda);this[_0x403e46(0x1e0)]();const _0x7e392f=this[_0x403e46(0x3e0)]['createInstance'](It,_0x13ceda,this[_0x403e46(0x110)][_0x403e46(0x303)]());return this[_0x403e46(0x3de)][_0x403e46(0x2da)](_0x13ceda,_0x7e392f),_0x7e392f;}[_0x40530a(0x17d)](_0x4b653c){var _0x2ca839=_0x40530a,_0x1a4d3c;const _0x4f01b1=this['_sessions'][_0x2ca839(0x27f)](_0x4b653c);_0x4f01b1&&(this[_0x2ca839(0x3de)][_0x2ca839(0x234)](_0x4b653c),_0x4f01b1[_0x2ca839(0x1ff)]()),this[_0x2ca839(0x3de)]['size']||(_0x1a4d3c=this[_0x2ca839(0x2c1)])==null||_0x1a4d3c[_0x2ca839(0x1ff)]();}[_0x40530a(0x115)](){var _0x274a70=_0x40530a;this['_retryCount']=0x0,this['_retryConnectingTimer']!=null&&(clearTimeout(this[_0x274a70(0x117)]),this[_0x274a70(0x117)]=null),this[_0x274a70(0x2fa)]();}async[_0x40530a(0x1ca)](){var _0x4011e5=_0x40530a,_0x599ad0,_0x53ca88,_0x4bad1c;const _0x24a1b6=this['_configService'][_0x4011e5(0x21f)](q),_0x4852d1=(_0x599ad0=_0x24a1b6==null?void 0x0:_0x24a1b6[_0x4011e5(0x306)])!=null?_0x599ad0:On;return(_0x4bad1c=(_0x53ca88=(await this[_0x4011e5(0x24d)]['get'](_0x4852d1,{'headers':{'Content-Type':_0x4011e5(0x229)}}))[_0x4011e5(0x37f)])==null?void 0x0:_0x53ca88[_0x4011e5(0x109)])!=null?_0x4bad1c:'';}[_0x40530a(0x334)](_0x555aa4){var _0x3aacff=_0x40530a,_0x388868,_0x57dd6c;const _0x2dc07a=this[_0x3aacff(0xf8)][_0x3aacff(0x21f)](Rn),_0x2a6b1d=this['_configService']['getConfig'](q),_0x226dab=(_0x57dd6c=(_0x388868=_0x2a6b1d==null?void 0x0:_0x2a6b1d[_0x3aacff(0x3bd)])!=null?_0x388868:_0x2dc07a)!=null?_0x57dd6c:bn,_0x5b0f9f=typeof window>'u'?new URL(_0x226dab):new URL(_0x226dab,window[_0x3aacff(0x1c9)][_0x3aacff(0x2ea)]);_0x5b0f9f[_0x3aacff(0x1f2)][_0x3aacff(0x2da)](_0x3aacff(0x164),_0x555aa4);const _0x29cc50=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x3aacff(0x1c9)][_0x3aacff(0x3a1)]);return _0x29cc50[_0x3aacff(0x27f)](_0x3aacff(0x393))&&_0x5b0f9f[_0x3aacff(0x1f2)][_0x3aacff(0x2da)](_0x3aacff(0x393),_0x29cc50[_0x3aacff(0x27f)](_0x3aacff(0x393))),_0x5b0f9f['toString']();}async[_0x40530a(0x147)](){var _0x5e41bd=_0x40530a;const _0x4e3b70=await this[_0x5e41bd(0x1ca)](),_0x53a9eb=this[_0x5e41bd(0x334)](_0x4e3b70),_0x222412=this[_0x5e41bd(0x29a)][_0x5e41bd(0x2c9)](_0x53a9eb);return this['_candidateSocket']=_0x222412,_0x222412;}async[_0x40530a(0x1e0)](){var _0x558e76=_0x40530a,_0x207c0f,_0x456020;try{const _0x3045c5=(_0x456020=(_0x207c0f=this[_0x558e76(0x2c1)])!=null?_0x207c0f:this['_candidateSocket'])!=null?_0x456020:await this[_0x558e76(0x147)]();if(_0x3045c5){const _0x17abd3=_0x3045c5[_0x558e76(0x378)];_0x3045c5[_0x558e76(0x378)]=_0x546bfc=>(this[_0x558e76(0x116)](),_0x17abd3['apply'](_0x3045c5,[_0x546bfc])),_0x3045c5[_0x558e76(0x1d7)][_0x558e76(0x1af)](_0x3cecfb=>this[_0x558e76(0x1f7)](_0x3045c5,_0x3cecfb)),_0x3045c5[_0x558e76(0x3bb)][_0x558e76(0x330)](_0x434d28(0x1))[_0x558e76(0x1af)](_0x2ccd7d=>this[_0x558e76(0x278)][_0x558e76(0xf4)](_0x558e76(0x32e),_0x2ccd7d)),_0x3045c5[_0x558e76(0x394)][_0x558e76(0x330)](_0x434d28(0x1))[_0x558e76(0x1af)](()=>{var _0x229387=_0x558e76;this[_0x229387(0x17f)](_0x3045c5);}),_0x3045c5[_0x558e76(0x376)][_0x558e76(0x330)](_0x434d28(0x1))[_0x558e76(0x1af)](_0x5d556a=>{var _0xb5133f=_0x558e76;this[_0xb5133f(0x278)][_0xb5133f(0x2d8)]('[CollaborationSessionService]',_0xb5133f(0x112),_0x5d556a),this[_0xb5133f(0x1c6)]();});}}catch(_0x5924b3){this['_logService'][_0x558e76(0xf4)](_0x5924b3),this[_0x558e76(0x1c6)]();}}[_0x40530a(0x17f)](_0x14c9ef){var _0x42b45d=_0x40530a;this['_logService'][_0x42b45d(0x2d8)](_0x42b45d(0x366),_0x42b45d(0x341)),_0x14c9ef[_0x42b45d(0x378)]({'cmd':F[_0x42b45d(0x2fe)]}),this[_0x42b45d(0x116)]();}['_onOffline'](){var _0x1774b7=_0x40530a;this['_socketReady']=!0x1,this[_0x1774b7(0x331)]=null,this[_0x1774b7(0x33b)][_0x1774b7(0x362)](Te[_0x1774b7(0x3df)]),this[_0x1774b7(0x110)][_0x1774b7(0x362)](null),this[_0x1774b7(0x181)](),this['_clearHeartbeatTimer']();}[_0x40530a(0x1c6)](){var _0x1421ff=_0x40530a,_0x702f5b;this[_0x1421ff(0x2bd)](),this[_0x1421ff(0x2d6)]<((_0x702f5b=this[_0x1421ff(0xf8)][_0x1421ff(0x21f)](Pn))!=null?_0x702f5b:wn)?(this[_0x1421ff(0x26c)][_0x1421ff(0x2f2)]({'id':se[_0x1421ff(0x327)]}),this['_tryReconnect']()):this[_0x1421ff(0x26c)]['emitEvent']({'id':se[_0x1421ff(0x323)]});}[_0x40530a(0x2fa)](){var _0x4880ea=_0x40530a,_0x983895;const _0x1f34c3=this[_0x4880ea(0x2d6)],_0x1471fe=this[_0x4880ea(0xf8)]['getConfig'](q),_0x293cfd=_0x1f34c3===0x0?0x0:((_0x983895=_0x1471fe==null?void 0x0:_0x1471fe[_0x4880ea(0x11c)])!=null?_0x983895:Dn)*0x2**_0x1f34c3;this[_0x4880ea(0x117)]=setTimeout(()=>{var _0x20000e=_0x4880ea;clearTimeout(this[_0x20000e(0x117)]),this[_0x20000e(0x117)]=null,this['_tryEnsureSocket']();},_0x293cfd),this['_retryCount']+=0x1;}[_0x40530a(0x1f7)](_0x1fcaa4,_0x4fb170){var _0x4921da=_0x40530a;const {cmd:_0x27570a}=_0x4fb170;_0x27570a===F[_0x4921da(0x2fe)]&&!this['_socketReady']&&(_0x1fcaa4[_0x4921da(0x3a0)]=_0x4fb170[_0x4921da(0x311)][_0x4921da(0x3a0)],this[_0x4921da(0x110)][_0x4921da(0x362)](_0x1fcaa4),this[_0x4921da(0x33b)][_0x4921da(0x362)](Te[_0x4921da(0x340)]),this[_0x4921da(0x261)]=!0x0,this['_candidateSocket']=null),_0x27570a===F[_0x4921da(0x1f0)]&&this[_0x4921da(0x181)](),this['_rescheduleHeartbeat']();}[_0x40530a(0x116)](){var _0x451e43=_0x40530a,_0x4eb3d4;this['_clearHeartbeatTimer'](),this[_0x451e43(0x1fc)]=setTimeout(()=>this[_0x451e43(0x2fd)](),(_0x4eb3d4=this[_0x451e43(0xf8)][_0x451e43(0x21f)](yn))!=null?_0x4eb3d4:Nn);}['_sendHeartbeat'](){var _0x79bcce=_0x40530a;this[_0x79bcce(0x2c1)][_0x79bcce(0x378)]({'cmd':F['HEARTBEAT']}),this['_waitForHeartbeatResponse']();}[_0x40530a(0x148)](){var _0x276666=_0x40530a,_0x1abdad;this['_timeoutTimer']=setTimeout(()=>this[_0x276666(0x1c6)](),(_0x1abdad=this[_0x276666(0xf8)][_0x276666(0x21f)](Si))!=null?_0x1abdad:Ei);}['_clearHeartbeatTimer'](){var _0x1cc560=_0x40530a;this[_0x1cc560(0x1fc)]!=null&&(clearTimeout(this[_0x1cc560(0x1fc)]),this[_0x1cc560(0x1fc)]=null);}[_0x40530a(0x181)](){var _0x73d437=_0x40530a;this[_0x73d437(0x32a)]!=null&&(clearTimeout(this[_0x73d437(0x32a)]),this['_timeoutTimer']=null);}};Le=er([ge(0x0,_0x48db98(_0x19dc6b)),ge(0x1,_0x6e98f),ge(0x2,_0x5b62c8),ge(0x3,Ci),ge(0x4,_0x48db98(_0x3ce2dc)),ge(0x5,_0x48db98(pe)),ge(0x6,_0x5b33db(Mn))],Le);const V=[];for(let n=0x0;n<0x100;++n)V[_0x40530a(0x20a)]((n+0x100)['toString'](0x10)['slice'](0x1));function tr(_0x1e4b10,_0x25064f=0x0){var _0x2c2895=_0x40530a;return(V[_0x1e4b10[_0x25064f+0x0]]+V[_0x1e4b10[_0x25064f+0x1]]+V[_0x1e4b10[_0x25064f+0x2]]+V[_0x1e4b10[_0x25064f+0x3]]+'-'+V[_0x1e4b10[_0x25064f+0x4]]+V[_0x1e4b10[_0x25064f+0x5]]+'-'+V[_0x1e4b10[_0x25064f+0x6]]+V[_0x1e4b10[_0x25064f+0x7]]+'-'+V[_0x1e4b10[_0x25064f+0x8]]+V[_0x1e4b10[_0x25064f+0x9]]+'-'+V[_0x1e4b10[_0x25064f+0xa]]+V[_0x1e4b10[_0x25064f+0xb]]+V[_0x1e4b10[_0x25064f+0xc]]+V[_0x1e4b10[_0x25064f+0xd]]+V[_0x1e4b10[_0x25064f+0xe]]+V[_0x1e4b10[_0x25064f+0xf]])[_0x2c2895(0x36c)]();}let ut;const ir=new Uint8Array(0x10);function nr(){var _0x14ce9e=_0x40530a;if(!ut){if(typeof crypto>'u'||!crypto['getRandomValues'])throw new Error(_0x14ce9e(0x276));ut=crypto[_0x14ce9e(0x2b6)][_0x14ce9e(0x30c)](crypto);}return ut(ir);}const rr=typeof crypto<'u'&&crypto[_0x40530a(0x30a)]&&crypto[_0x40530a(0x30a)][_0x40530a(0x30c)](crypto),qt={'randomUUID':rr};function sr(_0x352cb2,_0x5dce98,_0x182939){var _0x15a8ba=_0x40530a,_0x1ba47e,_0x40e450,_0x267e9b;if(qt[_0x15a8ba(0x30a)]&&!_0x352cb2)return qt[_0x15a8ba(0x30a)]();_0x352cb2=_0x352cb2||{};const _0x557448=(_0x267e9b=(_0x40e450=_0x352cb2[_0x15a8ba(0x2c6)])!=null?_0x40e450:(_0x1ba47e=_0x352cb2['rng'])==null?void 0x0:_0x1ba47e['call'](_0x352cb2))!=null?_0x267e9b:nr();if(_0x557448[_0x15a8ba(0x37d)]<0x10)throw new Error(_0x15a8ba(0x12b));return _0x557448[0x6]=_0x557448[0x6]&0xf|0x40,_0x557448[0x8]=_0x557448[0x8]&0x3f|0x80,tr(_0x557448);}const J=_0x10b14f(_0x40530a(0x150));function so(_0x5d78eb){return'unit-cache-'+_0x5d78eb;}var or=Object[_0x40530a(0x27d)],ar=Object[_0x40530a(0x338)],cr=(_0x2ba01e,_0x31a9f4,_0xcb4814,_0x17c2be)=>{var _0x2864b3=_0x40530a;for(var _0xf80124=_0x17c2be>0x1?void 0x0:_0x17c2be?ar(_0x31a9f4,_0xcb4814):_0x31a9f4,_0x136406=_0x2ba01e[_0x2864b3(0x37d)]-0x1,_0x39c913;_0x136406>=0x0;_0x136406--)(_0x39c913=_0x2ba01e[_0x136406])&&(_0xf80124=(_0x17c2be?_0x39c913(_0x31a9f4,_0xcb4814,_0xf80124):_0x39c913(_0xf80124))||_0xf80124);return _0x17c2be&&_0xf80124&&or(_0x31a9f4,_0xcb4814,_0xf80124),_0xf80124;},dt=(_0x3d694a,_0x5d7f8d)=>(_0x2fdc48,_0x38256b)=>_0x5d7f8d(_0x2fdc48,_0x38256b,_0x3d694a);function hr(_0x416565){const {unitID:_0x111185,mutations:_0x2c1b33}=_0x416565;return{'unitId':_0x111185,'subUnitId':_0x2c1b33[0x0]['params']['subUnitId']};}let it=class{constructor(_0x150f42,_0x414bf6,_0x48e976){var _0x39eb6a=_0x40530a;this['_injector']=_0x150f42,this[_0x39eb6a(0x2cd)]=_0x414bf6,this[_0x39eb6a(0x298)]=_0x48e976;}[_0x40530a(0x370)](_0x18e4cf){var _0x280581=_0x40530a,_0x1f55dc,_0x1b197d,_0x287843,_0x213e3c;const _0x41c9b2=this[_0x280581(0x3e0)][_0x280581(0x27f)](_0xeb53fc),{unitId:_0x3d399f,subUnitId:_0x543518}=hr(_0x18e4cf),_0x6da143=_0x41c9b2==null?void 0x0:_0x41c9b2[_0x280581(0x3e6)](_0x3d399f)[_0x280581(0x1a0)](),_0x18c43a=(_0x1b197d=(_0x1f55dc=this[_0x280581(0x298)]['getUnit'](_0x3d399f))==null?void 0x0:_0x1f55dc[_0x280581(0x310)]())==null?void 0x0:_0x1b197d[_0x280581(0x31f)]();if(_0x6da143['length']===0x0||!_0x3d399f||!_0x543518)return;const _0x931f8=[{'id':_0x5e8588['id'],'params':{'unitId':_0x3d399f,'subUnitId':_0x18c43a,'selections':_0x544210[_0x280581(0x137)](_0x6da143)}}],_0x239825=this[_0x280581(0x2cd)][_0x280581(0x225)](_0x18e4cf,_0x931f8);if(!_0x5bbbc8(_0x239825))throw _0x239825[_0x280581(0xf4)];const _0xcc8a64=(_0x213e3c=(_0x287843=_0x239825['m2Prime'][0x0])==null?void 0x0:_0x287843[_0x280581(0x131)])==null?void 0x0:_0x213e3c[_0x280581(0x14d)];if(Array['isArray'](_0xcc8a64)&&_0xcc8a64[_0x280581(0x37d)]){if(_0xcc8a64[_0x280581(0x37d)]===_0x931f8[0x0][_0x280581(0x131)][_0x280581(0x14d)][_0x280581(0x37d)]&&_0xcc8a64[_0x280581(0x169)]((_0x3144dd,_0x244610)=>_0x48bee0[_0x280581(0x18e)](_0x3144dd[_0x280581(0x14e)],_0x931f8[0x0][_0x280581(0x131)][_0x280581(0x14d)][_0x244610][_0x280581(0x14e)])))return;this[_0x280581(0x3e0)][_0x280581(0x27f)](_0xc6fb7a)[_0x280581(0x2d5)](_0x5e8588['id'],{'unitId':_0x3d399f,'subUnitId':_0x18c43a,'selections':_0xcc8a64});}}};it=cr([dt(0x0,_0x48db98(_0x19dc6b)),dt(0x1,_0x3b018c),dt(0x2,_0x5609db)],it);const ht=_0x10b14f('univer-pro.collaboration-client.single-active-unit-service');var bi=(_0x47f393=>(_0x47f393[_0x47f393['NO_OTHER_CLIENTS_EDITING']=0x0]='NO_OTHER_CLIENTS_EDITING',_0x47f393[_0x47f393[_0x40530a(0x15d)]=0x1]=_0x40530a(0x15d),_0x47f393))(bi||{});const _r=new Set([_0x15d99d['id']]);function zt(_0x1c489e,_0x32b554,_0x515ed3,_0x2dd185,_0x29f36c){var _0x8bde0b=_0x40530a,_0x34db00,_0x3a2a45,_0x113298,_0x58ebe5;const _0x5edea9=[];for(const _0x2fb4f1 of _0x1c489e)if(_r['has'](_0x2fb4f1['id'])){if(_0x5edea9[_0x8bde0b(0x37d)]>0x0)break;_0x5edea9['push'](_0x2fb4f1);break;}else _0x5edea9['push'](_0x2fb4f1);const _0x29d3ba=(_0x3a2a45=(_0x34db00=_0x29f36c[_0x8bde0b(0x286)]())==null?void 0x0:_0x34db00['userID'])!=null?_0x3a2a45:'unknown',_0xff2465=(_0x58ebe5=(_0x113298=_0x29f36c[_0x8bde0b(0x286)]())==null?void 0x0:_0x113298['memberID'])!=null?_0x58ebe5:_0x8bde0b(0x175);return{'changeset':{'unitID':_0x32b554,'type':_0x4c663c(_0x515ed3[_0x8bde0b(0x31e)](_0x32b554)),'baseRev':_0x2dd185[_0x8bde0b(0x1e7)](_0x32b554),'revision':0x0,'userID':_0x29d3ba,'memberID':_0xff2465,'mutations':_0x5edea9},'pendingMutations':_0x1c489e['slice'](_0x5edea9[_0x8bde0b(0x37d)])};}function lr(_0x17c60b,_0x2e322e,_0x124932,_0x3cbf5c,_0x3e794d){var _0x52f1d4=_0x40530a,_0x54d135,_0x23f2bc,_0xf21e9e,_0x45362e;const _0x1ba610=[_0x17c60b['reduce']((_0x3145ad,_0x5b79e2)=>{var _0x281fa0=_0x192f,_0x3123ad;const {id:_0x55dd00}=_0x3145ad,{id:_0x28ad1d,type:_0x349572}=_0x5b79e2,_0x385ec6=(_0x3123ad=_0x3145ad[_0x281fa0(0x131)])!=null?_0x3123ad:{'actions':null},_0x2f0adc=_0x5b79e2['params'];if(_0x55dd00&&_0x55dd00!==_0x28ad1d)throw new Error(_0x281fa0(0x238)+_0x55dd00+_0x281fa0(0x3e2)+_0x28ad1d+'.');return{..._0x3145ad,'id':_0x28ad1d,'type':_0x349572,'params':{'unitId':_0x2f0adc['unitId'],'textRanges':_0x2f0adc[_0x281fa0(0x3cc)],'actions':_0x14fa94[_0x281fa0(0x107)](_0x385ec6[_0x281fa0(0x3a4)],_0x2f0adc['actions'])}};},{})],_0xa11b14=(_0x23f2bc=(_0x54d135=_0x3e794d[_0x52f1d4(0x286)]())==null?void 0x0:_0x54d135['userID'])!=null?_0x23f2bc:_0x52f1d4(0x175),_0x396d53=(_0x45362e=(_0xf21e9e=_0x3e794d[_0x52f1d4(0x286)]())==null?void 0x0:_0xf21e9e[_0x52f1d4(0x3a0)])!=null?_0x45362e:_0x52f1d4(0x175);return{'changeset':{'unitID':_0x2e322e,'type':_0x4c663c(_0x124932['getUnitType'](_0x2e322e)),'baseRev':_0x3cbf5c['getCurrentRevOfUnit'](_0x2e322e),'revision':0x0,'userID':_0xa11b14,'memberID':_0x396d53,'mutations':_0x1ba610},'pendingMutations':[]};}function Oi(_0x497017,_0x29c580){var _0x30fa1c=_0x40530a;const _0x38ec27=new _0x400709(0x1);return setTimeout(()=>_0x38ec27[_0x30fa1c(0x362)](_0x29c580),_0x497017),_0x38ec27[_0x30fa1c(0x303)]()[_0x30fa1c(0x330)](_0x4da358(0x1));}const ur={'id':_0x1137be['id'],'type':_0x29caaf['MUTATION'],'params':{}};var dr=Object[_0x40530a(0x27d)],fr=Object['getOwnPropertyDescriptor'],Re=(_0x16a566,_0x27acf7,_0xb3e275,_0x185c2d)=>{var _0x4e4091=_0x40530a;for(var _0x68d9e=_0x185c2d>0x1?void 0x0:_0x185c2d?fr(_0x27acf7,_0xb3e275):_0x27acf7,_0x50da30=_0x16a566[_0x4e4091(0x37d)]-0x1,_0x43ae67;_0x50da30>=0x0;_0x50da30--)(_0x43ae67=_0x16a566[_0x50da30])&&(_0x68d9e=(_0x185c2d?_0x43ae67(_0x27acf7,_0xb3e275,_0x68d9e):_0x43ae67(_0x68d9e))||_0x68d9e);return _0x185c2d&&_0x68d9e&&dr(_0x27acf7,_0xb3e275,_0x68d9e),_0x68d9e;},A=(_0x1102f1,_0x2887da)=>(_0x7e1d0f,_0x57b2a7)=>_0x2887da(_0x7e1d0f,_0x57b2a7,_0x1102f1),yi=(_0x5c5cfa=>(_0x5c5cfa['NOT_COLLAB']=_0x40530a(0x2c0),_0x5c5cfa[_0x40530a(0x2d7)]=_0x40530a(0x106),_0x5c5cfa[_0x40530a(0x23b)]=_0x40530a(0x35a),_0x5c5cfa[_0x40530a(0x31a)]=_0x40530a(0x223),_0x5c5cfa['AWAITING_WITH_PENDING']=_0x40530a(0xf2),_0x5c5cfa[_0x40530a(0x375)]=_0x40530a(0x1df),_0x5c5cfa[_0x40530a(0xf9)]=_0x40530a(0x237),_0x5c5cfa[_0x40530a(0x3df)]='offline',_0x5c5cfa))(yi||{});const Ni=0xea60;class be{constructor(_0x205516,_0x3783bd,_0x1afa91,_0x9478b6,_0x3d1eef,_0x398ce5,_0x7de297,_0x3532c4,_0x15bfa5){var _0x562f84=_0x40530a;N(this,_0x562f84(0x2f3),null),N(this,_0x562f84(0x1f8),[]),(this[_0x562f84(0x2f7)]=_0x205516,this[_0x562f84(0x247)]=_0x3783bd,this[_0x562f84(0xff)]=_0x3d1eef,this['_commandService']=_0x398ce5,this[_0x562f84(0x293)]=_0x7de297,this[_0x562f84(0x31b)]=_0x3532c4,this[_0x562f84(0x2ca)]=_0x15bfa5,this['_awaitingChangeset']=_0x1afa91,this[_0x562f84(0x1f8)]=_0x9478b6);}[_0x40530a(0x23d)](_0x1bab72){var _0x3238bf=_0x40530a;const _0x433656=this[_0x3238bf(0x31b)][_0x3238bf(0x1e7)](this[_0x3238bf(0x2f7)]);return _0x1bab72[_0x3238bf(0x2d1)]>_0x433656+0x1?(this[_0x3238bf(0xff)][_0x3238bf(0x2f0)]({'from':_0x433656,'to':_0x1bab72[_0x3238bf(0x2d1)]-0x1}),!0x0):!0x1;}[_0x40530a(0x2b9)](_0x45eebd){var _0x190f80=_0x40530a;this[_0x190f80(0x293)][_0x190f80(0x168)](this[_0x190f80(0x2f7)],_0x45eebd);}[_0x40530a(0x308)](_0x4ee261){var _0x3ee985=_0x40530a,_0x3eae60,_0x426e23;(_0x426e23=(_0x3eae60=this['_handler'])[_0x3ee985(0x120)])==null||_0x426e23[_0x3ee985(0x2b8)](_0x3eae60,_0x4ee261);}['_transformIMECache'](_0x491393){var _0x2a4593=_0x40530a,_0x2198b8,_0x2e897a;return(_0x2e897a=(_0x2198b8=this[_0x2a4593(0xff)])[_0x2a4593(0x3d5)])==null?void 0x0:_0x2e897a[_0x2a4593(0x2b8)](_0x2198b8,_0x491393);}['_transformStateCache'](_0x185a03){var _0x4fe2b1=_0x40530a,_0xae57df,_0x237226;return(_0x237226=(_0xae57df=this[_0x4fe2b1(0xff)])[_0x4fe2b1(0x2de)])==null?void 0x0:_0x237226['call'](_0xae57df,_0x185a03);}[_0x40530a(0x1cc)](_0x196c38){var _0x4bb3b2=_0x40530a,_0x3caf00,_0x5b1d6a,_0x21136d;return(_0x21136d=(_0x5b1d6a=(_0x3caf00=this[_0x4bb3b2(0xff)])[_0x4bb3b2(0x3da)])==null?void 0x0:_0x5b1d6a[_0x4bb3b2(0x2b8)](_0x3caf00,_0x196c38))!=null?_0x21136d:_0x196c38;}['_transformRemoteChangesetByStateCache'](_0x345d41){var _0x63fa32=_0x40530a,_0x300cf0,_0x1ed69e,_0x126ec7;return(_0x126ec7=(_0x1ed69e=(_0x300cf0=this[_0x63fa32(0xff)])[_0x63fa32(0x315)])==null?void 0x0:_0x1ed69e[_0x63fa32(0x2b8)](_0x300cf0,_0x345d41))!=null?_0x126ec7:_0x345d41;}[_0x40530a(0x144)](_0x3ac051){var _0x58509c=_0x40530a,_0x551fe7,_0x5c4250;if(this[_0x58509c(0x247)]===Q[_0x58509c(0x284)]){const {unitID:_0x4ecc79,mutations:_0x53da8f,memberID:_0x319ffa}=_0x3ac051,_0x21d1df=_0x53da8f[0x0]['params'][_0x58509c(0x3cc)];Array[_0x58509c(0x38a)](_0x21d1df)&&_0x21d1df['length']>0x0&&((_0x5c4250=(_0x551fe7=this[_0x58509c(0xff)])['onSyncEditingCollabCursor'])==null||_0x5c4250[_0x58509c(0x2b8)](_0x551fe7,{'unitID':_0x4ecc79,'memberID':_0x319ffa,'textRanges':_0x21d1df}));}}[_0x40530a(0x352)](){var _0x21fc5e=_0x40530a,_0x593694;(_0x593694=this[_0x21fc5e(0x2ca)])==null||_0x593694[_0x21fc5e(0x34f)](this['unitID'],this[_0x21fc5e(0x247)],this['_awaitingChangeset'],this[_0x21fc5e(0x1f8)]);}[_0x40530a(0x1a8)](){var _0x1c0403=_0x40530a;return this[_0x1c0403(0x31b)][_0x1c0403(0x1e7)](this[_0x1c0403(0x2f7)]);}[_0x40530a(0x2a9)](){var _0x5ad99b=_0x40530a;this[_0x5ad99b(0x31b)][_0x5ad99b(0x1e4)](this[_0x5ad99b(0x2f7)]);}[_0x40530a(0x3d0)](_0x457898){var _0x2ba672=_0x40530a,_0x119a90;let _0x200b17=this[_0x2ba672(0x1cc)](_0x457898);_0x200b17=this['_transformRemoteChangesetByStateCache'](_0x200b17);const _0x4a958a=_0x7fdad7(_0x200b17['mutations'],this[_0x2ba672(0x3ad)],{'fromCollab':!0x0});if(!_0x4a958a[_0x2ba672(0x227)])throw _0x4a958a[_0x2ba672(0xf4)]instanceof Error?_0x4a958a['error']:new Error((_0x119a90=_0x4a958a[_0x2ba672(0xf4)])!=null?_0x119a90:_0x2ba672(0x1e8));this[_0x2ba672(0x1c3)](_0x200b17),this[_0x2ba672(0x389)](_0x200b17),this[_0x2ba672(0x2b9)](_0x457898),this[_0x2ba672(0x308)](_0x200b17),this['_syncEditingCollabCursor'](_0x200b17),this[_0x2ba672(0x2a9)]();}}let De=class extends be{constructor(_0x2095a5,_0x47b873,_0x27344a,_0x3d716d,_0x1ac20a,_0x18cc4c,_0x141767,_0x572d19,_0xbe2f8d,_0x445860){var _0x3a79e3=_0x40530a;super(_0x2095a5,_0x47b873,null,[],_0x27344a,_0x141767,_0x18cc4c,_0x3d716d,_0x445860),N(this,_0x3a79e3(0x1d4),_0x3a79e3(0x106)),(this[_0x3a79e3(0x3e0)]=_0x1ac20a,this['_logService']=_0x572d19,this[_0x3a79e3(0x2cd)]=_0xbe2f8d,this[_0x3a79e3(0x364)]=_0x445860);}[_0x40530a(0x159)](_0x108aeb){var _0x5a6c2e=_0x40530a;const _0x4a86c7=this['_injector'][_0x5a6c2e(0xe8)](oe,this[_0x5a6c2e(0x2f7)],this['type'],[_0x108aeb],this[_0x5a6c2e(0xff)]);return _0x4a86c7[_0x5a6c2e(0x3ba)](),_0x4a86c7[_0x5a6c2e(0x352)](),_0x4a86c7;}[_0x40530a(0x21c)](_0x53bfb4){var _0x5b0b9d=_0x40530a;if(this[_0x5b0b9d(0x23d)](_0x53bfb4))return this['_injector'][_0x5b0b9d(0xe8)](te,this['unitID'],this[_0x5b0b9d(0x247)],null,[],null,[_0x53bfb4],this[_0x5b0b9d(0xff)]);try{const _0x4d6c61=this[_0x5b0b9d(0x2cd)][_0x5b0b9d(0x225)](_0x53bfb4,[ur]);if(_0x5bbbc8(_0x4d6c61)){const {c1Prime:_0x29981f}=_0x4d6c61;return this[_0x5b0b9d(0x3d0)](_0x29981f),this;}throw _0x4d6c61[_0x5b0b9d(0xf4)];}catch(_0x46ced0){return this[_0x5b0b9d(0x278)][_0x5b0b9d(0xf4)](_0x46ced0),this[_0x5b0b9d(0x37b)](!0x1);}}[_0x40530a(0x37b)](_0x4663d1){var _0x3a4ca2=_0x40530a;return this[_0x3a4ca2(0x3e0)][_0x3a4ca2(0xe8)](de,this[_0x3a4ca2(0x2f7)],this['type'],null,[],this[_0x3a4ca2(0xff)],_0x4663d1);}['onRemoteAck'](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x40530a(0x379)](){var _0x486824=_0x40530a;throw new Error(_0x486824(0x295));}[_0x40530a(0x122)](){return this;}[_0x40530a(0x254)](){var _0x369d9b=_0x40530a;return this['_injector']['createInstance'](fe,this[_0x369d9b(0x2f7)],this['type'],null,[],this[_0x369d9b(0xff)]);}[_0x40530a(0x313)](){return this;}[_0x40530a(0x2e3)](){var _0x518d1a=_0x40530a;throw new Error(_0x518d1a(0x202));}[_0x40530a(0x222)](){var _0xd52dab=_0x40530a;const _0x2d1a0b=this['_revisionService']['getCurrentRevOfUnit'](this[_0xd52dab(0x2f7)]);return this[_0xd52dab(0xff)][_0xd52dab(0x2f0)]({'from':_0x2d1a0b,'to':0x0}),this[_0xd52dab(0x3e0)]['createInstance'](te,this[_0xd52dab(0x2f7)],this[_0xd52dab(0x247)],null,[],null,[],this['_handler']);}};De=Re([A(0x3,_0x48db98(_0x25256b)),A(0x4,_0x48db98(_0x19dc6b)),A(0x5,_0x84d590),A(0x6,_0xc6fb7a),A(0x7,_0x6e98f),A(0x8,_0x3b018c),A(0x9,_0x5b33db(J))],De);let oe=class extends be{constructor(_0xc40571,_0xa2e8f4,_0x1b3558,_0x32e37c,_0x997da7,_0x23942b,_0x3e80e5,_0x3462db,_0x27db3c,_0x1267f1,_0x3f886b,_0x5cc3f5,_0x482e63,_0x5404fa){var _0x4e48bd=_0x40530a;super(_0xc40571,_0xa2e8f4,null,_0x1b3558,_0x32e37c,_0x27db3c,_0x482e63,_0x23942b,_0x5404fa),N(this,'status',_0x4e48bd(0x35a)),N(this,_0x4e48bd(0x33a),null),N(this,'_sendingTimer',null),(this[_0x4e48bd(0x3e0)]=_0x997da7,this[_0x4e48bd(0x1a2)]=_0x3e80e5,this['_logService']=_0x3462db,this[_0x4e48bd(0xf8)]=_0x1267f1,this[_0x4e48bd(0x2cd)]=_0x3f886b,this[_0x4e48bd(0x305)]=_0x5cc3f5);}[_0x40530a(0x159)](_0x47f3c0){var _0x12bbbb=_0x40530a;return this[_0x12bbbb(0x1f8)][_0x12bbbb(0x20a)](_0x47f3c0),this[_0x12bbbb(0x352)](),this;}[_0x40530a(0x21c)](_0xba3838){var _0x1b0f15=_0x40530a;if(this[_0x1b0f15(0x23d)](_0xba3838))return this[_0x1b0f15(0x3d2)](),this[_0x1b0f15(0x3e0)][_0x1b0f15(0xe8)](te,this[_0x1b0f15(0x2f7)],this['type'],null,this[_0x1b0f15(0x1f8)],null,[_0xba3838],this[_0x1b0f15(0xff)]);try{const _0x282295=this['_transformService'][_0x1b0f15(0x225)](_0xba3838,this[_0x1b0f15(0x1f8)]);if(_0x5bbbc8(_0x282295)){const {c1Prime:_0xa53037,m2Prime:_0x25b259}=_0x282295;this[_0x1b0f15(0x3d0)](_0xa53037);const _0x228d67=this[_0x1b0f15(0x3e0)]['createInstance'](oe,this[_0x1b0f15(0x2f7)],this[_0x1b0f15(0x247)],_0x25b259,this[_0x1b0f15(0xff)]);this[_0x1b0f15(0x3d2)]();const _0x35367d=new Date()[_0x1b0f15(0x114)](),_0x24a8d7=this['_scheduleCompleteTimestamp']?Math['max'](this[_0x1b0f15(0x33a)]-_0x35367d,0x0):this[_0x1b0f15(0x18d)]();return _0x228d67[_0x1b0f15(0x3ba)](_0x24a8d7),_0x228d67;}throw _0x282295[_0x1b0f15(0xf4)];}catch(_0x323f55){return this[_0x1b0f15(0x278)]['error'](_0x323f55),this['_onConflict'](!0x1);}}['onRemoteAck'](){var _0x59880b=_0x40530a;throw new Error(_0x59880b(0x1bb));}[_0x40530a(0x379)](){var _0x3b25cc=_0x40530a;throw new Error(_0x3b25cc(0xf5));}[_0x40530a(0x122)](){return this;}[_0x40530a(0x254)](){var _0x44299b=_0x40530a;return this[_0x44299b(0x3d2)](),this['_injector'][_0x44299b(0xe8)](fe,this[_0x44299b(0x2f7)],this[_0x44299b(0x247)],null,this['_pendingMutations'],this['_handler']);}['toggleOnline'](){return this;}[_0x40530a(0x3ba)](_0x32f45d){var _0x127614=_0x40530a;const _0x1515fe=_0x32f45d!=null?_0x32f45d:this[_0x127614(0x18d)]();this['_scheduleCompleteTimestamp']=new Date()[_0x127614(0x114)]()+_0x1515fe,this[_0x127614(0x2ba)]=setTimeout(()=>{var _0x51b887=_0x127614;this['_clearScheduledTask']();let _0x10c888=null;switch(this['type']){case Q[_0x51b887(0x39e)]:{_0x10c888=zt(this[_0x51b887(0x1f8)],this['unitID'],this[_0x51b887(0x305)],this['_revisionService'],this[_0x51b887(0x1a2)]);break;}case Q[_0x51b887(0x284)]:{this[_0x51b887(0x1f8)][_0x51b887(0x169)](_0x381ca1=>_0x381ca1['id']===_0x3905df['id'])?_0x10c888=lr(this[_0x51b887(0x1f8)],this[_0x51b887(0x2f7)],this[_0x51b887(0x305)],this[_0x51b887(0x31b)],this[_0x51b887(0x1a2)]):_0x10c888=zt(this[_0x51b887(0x1f8)],this['unitID'],this[_0x51b887(0x305)],this[_0x51b887(0x31b)],this[_0x51b887(0x1a2)]);break;}default:throw new Error(_0x51b887(0x228)+this['type']+_0x51b887(0x21b));}const {changeset:_0x54d76e,pendingMutations:_0x5cb68e}=_0x10c888;this[_0x51b887(0xff)][_0x51b887(0xe4)](_0x54d76e);const _0xa76243=_0x5cb68e[_0x51b887(0x37d)]?this['_injector']['createInstance'](ae,this['unitID'],this['type'],_0x54d76e,_0x5cb68e,this[_0x51b887(0xff)],void 0x0):this[_0x51b887(0x3e0)][_0x51b887(0xe8)](ue,this[_0x51b887(0x2f7)],this[_0x51b887(0x247)],_0x54d76e,this[_0x51b887(0xff)]);_0xa76243[_0x51b887(0x352)](),this[_0x51b887(0xff)]['onStateChange'](this,_0xa76243);},_0x1515fe);}['_getSendChangesetTimeout'](){var _0x3c3b1b;const _0x532c89=this['_configService']['getConfig'](q);return(_0x3c3b1b=_0x532c89==null?void 0x0:_0x532c89['sendChangesetTimeout'])!=null?_0x3c3b1b:Cn;}[_0x40530a(0x2e3)](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x40530a(0x3d2)](){var _0x1ddd0b=_0x40530a;this[_0x1ddd0b(0x2ba)]!=null&&(clearTimeout(this[_0x1ddd0b(0x2ba)]),this[_0x1ddd0b(0x2ba)]=null);}[_0x40530a(0x37b)](_0xaabc1f){var _0xfe74cf=_0x40530a;return this['_clearScheduledTask'](),this['_injector']['createInstance'](de,this['unitID'],this['type'],null,this[_0xfe74cf(0x1f8)],this[_0xfe74cf(0xff)],_0xaabc1f);}};oe=Re([A(0x4,_0x48db98(_0x19dc6b)),A(0x5,_0x48db98(_0x25256b)),A(0x6,_0x48db98(xe)),A(0x7,_0x6e98f),A(0x8,_0xc6fb7a),A(0x9,_0x5b62c8),A(0xa,_0x3b018c),A(0xb,_0x5609db),A(0xc,_0x84d590),A(0xd,_0x5b33db(J))],oe);let ue=class extends be{constructor(_0x4a20e3,_0x355752,_0x944a10,_0x11a69b,_0x505530,_0x192928,_0x32583d,_0x34b515,_0x25ae80,_0x80ab73,_0x4bf876){var _0x24e4e3=_0x40530a;super(_0x4a20e3,_0x355752,_0x944a10,[],_0x11a69b,_0x32583d,_0x80ab73,_0x192928,_0x4bf876),N(this,_0x24e4e3(0x1d4),_0x24e4e3(0x223)),N(this,_0x24e4e3(0x1f9),0x0),N(this,'_resendTimer'),N(this,_0x24e4e3(0x3d6)),(this[_0x24e4e3(0x3e0)]=_0x505530,this[_0x24e4e3(0x278)]=_0x34b515,this['_transformService']=_0x25ae80);}['appendMutation'](_0x23aa19){var _0x14eb89=_0x40530a;this[_0x14eb89(0x3d2)]();const _0x3c0e73=this[_0x14eb89(0x3e0)]['createInstance'](ae,this[_0x14eb89(0x2f7)],this['type'],this[_0x14eb89(0x2f3)],[_0x23aa19],this[_0x14eb89(0xff)],this[_0x14eb89(0x25e)]);return _0x3c0e73[_0x14eb89(0x352)](),_0x3c0e73;}['onRemoteChangeset'](_0x5bebb6){var _0x581c1e=_0x40530a;if(this[_0x581c1e(0x23d)](_0x5bebb6))return this[_0x581c1e(0x3d2)](),this['_injector'][_0x581c1e(0xe8)](te,this['unitID'],this[_0x581c1e(0x247)],this[_0x581c1e(0x2f3)],[],null,[_0x5bebb6],this[_0x581c1e(0xff)]);try{const _0x18c579=this[_0x581c1e(0x2cd)][_0x581c1e(0x134)]([_0x5bebb6],[this[_0x581c1e(0x2f3)]],!0x1);if(_0x1a324a(_0x18c579)){const {c1Prime:_0x29ae34,c2Prime:_0x405e7d}=_0x18c579;this[_0x581c1e(0x3d0)](_0x29ae34[0x0]),_0x405e7d[0x0]['baseRev']=this[_0x581c1e(0x1a8)](),this[_0x581c1e(0x3d2)]();const _0x786457=this['_injector'][_0x581c1e(0xe8)](ue,this['unitID'],this[_0x581c1e(0x247)],_0x405e7d[0x0],this[_0x581c1e(0xff)]);return _0x786457[_0x581c1e(0x352)](),_0x786457;}return this[_0x581c1e(0x37b)](!0x1);}catch(_0x12c6da){return this[_0x581c1e(0x278)][_0x581c1e(0xf4)](_0x12c6da),this[_0x581c1e(0x37b)](!0x1);}}[_0x40530a(0x343)](_0x362b7e){var _0x346e33=_0x40530a;this[_0x346e33(0x3d2)]();const _0x23f798=this[_0x346e33(0x31b)][_0x346e33(0x1e7)](this[_0x346e33(0x2f7)]);if(_0x362b7e[_0x346e33(0x2d1)]<_0x23f798-0x1)return this;if(this[_0x346e33(0x23d)](_0x362b7e))return this[_0x346e33(0x3e0)]['createInstance'](te,this[_0x346e33(0x2f7)],this[_0x346e33(0x247)],null,[],this['_awaitingChangeset'],[],this['_handler']);this['_incrementRevisionNumber']();const _0xcd8de7=this[_0x346e33(0x3e0)]['createInstance'](De,this[_0x346e33(0x2f7)],this[_0x346e33(0x247)],this['_handler']);return _0xcd8de7[_0x346e33(0x352)](),_0xcd8de7;}['onRemoteRej'](_0x771117){var _0x174cfd=_0x40530a;return this[_0x174cfd(0x37b)](!!(_0x771117!=null&&_0x771117[_0x174cfd(0x38b)]));}[_0x40530a(0x122)](_0x3aadfc){var _0xab3808=_0x40530a;return this['_resendTimeout']>Ni?this[_0xab3808(0x254)]():(this[_0xab3808(0x25e)]=Oi(this[_0xab3808(0x1f9)],{'timeout':this[_0xab3808(0x1f9)],'reqId':_0x3aadfc[_0xab3808(0x2ec)]}),this[_0xab3808(0x3d6)]=this['_resendTimer'][_0xab3808(0x1af)](({reqId:_0x2a5a1d,timeout:_0x43138b})=>{var _0x42eaf7=_0xab3808;this[_0x42eaf7(0x1d2)](_0x2a5a1d,_0x43138b);}),this);}['toggleOffline'](){var _0xff9223=_0x40530a;return this[_0xff9223(0x3d2)](),this['_injector'][_0xff9223(0xe8)](fe,this[_0xff9223(0x2f7)],this[_0xff9223(0x247)],this[_0xff9223(0x2f3)],[],this[_0xff9223(0xff)]);}['toggleOnline'](){return this;}[_0x40530a(0x2e3)](){var _0x5c1682=_0x40530a;this[_0x5c1682(0xff)]['onSendChangeset'](this['_awaitingChangeset']);}[_0x40530a(0x37b)](_0x554dc2){var _0x13bdaa=_0x40530a;return this[_0x13bdaa(0x3d2)](),this['_injector'][_0x13bdaa(0xe8)](de,this['unitID'],this['type'],this['_awaitingChangeset'],[],this[_0x13bdaa(0xff)],_0x554dc2);}[_0x40530a(0x1d2)](_0x158d2a,_0x29d2ce){var _0x4933bb=_0x40530a,_0x21ba5c;_0x158d2a===((_0x21ba5c=this[_0x4933bb(0x2f3)])==null?void 0x0:_0x21ba5c[_0x4933bb(0x2ec)])&&(this[_0x4933bb(0x2e3)](),this[_0x4933bb(0x1f9)]=_0x29d2ce===0x0?0x3e8:_0x29d2ce*0x2);}[_0x40530a(0x3d2)](){var _0x3d2983=_0x40530a,_0x5b98a1;(_0x5b98a1=this['_sender'])==null||_0x5b98a1['unsubscribe'](),this[_0x3d2983(0x1f9)]=0x0;}};ue=Re([A(0x4,_0x48db98(_0x19dc6b)),A(0x5,_0x48db98(_0x25256b)),A(0x6,_0xc6fb7a),A(0x7,_0x6e98f),A(0x8,_0x3b018c),A(0x9,_0x84d590),A(0xa,_0x5b33db(J))],ue);let ae=class extends be{constructor(_0x1a0698,_0x3ad2c5,_0x4ad459,_0x4520b3,_0x1978ae,_0x252e4c,_0x28f17c,_0x54d6c9,_0x3ad9aa,_0x28f26c,_0x38e4ef,_0xdf8692,_0x53cafc){var _0x331b76=_0x40530a;super(_0x1a0698,_0x3ad2c5,_0x4ad459,_0x4520b3,_0x1978ae,_0x3ad9aa,_0xdf8692,_0x54d6c9,_0x53cafc),N(this,_0x331b76(0x1d4),_0x331b76(0xf2)),N(this,'_resendTimeout',0x0),N(this,_0x331b76(0x25e)),N(this,'_sender'),(this[_0x331b76(0x3e0)]=_0x28f17c,this[_0x331b76(0x278)]=_0x28f26c,this[_0x331b76(0x2cd)]=_0x38e4ef,this['localCacheService']=_0x53cafc,_0x252e4c&&(this[_0x331b76(0x25e)]=_0x252e4c,this['_sender']=this['_resendTimer'][_0x331b76(0x1af)](({reqId:_0x2f62a4,timeout:_0x559b47})=>{var _0x1de8c9=_0x331b76;this[_0x1de8c9(0x1d2)](_0x2f62a4,_0x559b47);})));}['appendMutation'](_0x1efade){var _0x2711aa=_0x40530a;return this['_pendingMutations'][_0x2711aa(0x20a)](_0x1efade),this;}[_0x40530a(0x21c)](_0x3904ba){var _0x251be3=_0x40530a;if(this['_checkMissing'](_0x3904ba))return this['_clearScheduledTask'](),this[_0x251be3(0x3e0)][_0x251be3(0xe8)](te,this[_0x251be3(0x2f7)],this['type'],this[_0x251be3(0x2f3)],this['_pendingMutations'],null,[_0x3904ba],this[_0x251be3(0xff)]);try{const _0x29f750=this[_0x251be3(0x2cd)][_0x251be3(0x134)]([_0x3904ba],[this[_0x251be3(0x2f3)]],!0x1);if(_0x1a324a(_0x29f750)){const {c1Prime:_0x10c376,c2Prime:_0x2bafec}=_0x29f750,_0x2e5a30=this[_0x251be3(0x2cd)][_0x251be3(0x225)](_0x10c376[0x0],this[_0x251be3(0x1f8)]);if(_0x5bbbc8(_0x2e5a30)){const {c1Prime:_0xdf81c2,m2Prime:_0x2aac36}=_0x2e5a30;return this[_0x251be3(0x3d0)](_0xdf81c2),_0x2bafec[0x0][_0x251be3(0x27a)]=this[_0x251be3(0x1a8)](),this[_0x251be3(0x3d2)](),this[_0x251be3(0x3e0)][_0x251be3(0xe8)](ae,this[_0x251be3(0x2f7)],this[_0x251be3(0x247)],_0x2bafec[0x0],_0x2aac36,this['_handler'],void 0x0);}throw _0x2e5a30[_0x251be3(0xf4)];}throw _0x29f750[_0x251be3(0xf4)];}catch(_0x4a65fd){return this[_0x251be3(0x278)]['error'](_0x4a65fd),this[_0x251be3(0x37b)](!0x1);}}[_0x40530a(0x343)](_0x5336e1){var _0x1b80b5=_0x40530a;if(this[_0x1b80b5(0x3d2)](),this[_0x1b80b5(0x23d)](_0x5336e1))return this[_0x1b80b5(0x3e0)][_0x1b80b5(0xe8)](te,this['unitID'],this['type'],null,this[_0x1b80b5(0x1f8)],this['_awaitingChangeset'],[],this[_0x1b80b5(0xff)]);this[_0x1b80b5(0x2a9)]();const _0x585d4b=this[_0x1b80b5(0x3e0)][_0x1b80b5(0xe8)](oe,this['unitID'],this[_0x1b80b5(0x247)],this[_0x1b80b5(0x1f8)],this[_0x1b80b5(0xff)]);return _0x585d4b[_0x1b80b5(0x3ba)](),_0x585d4b[_0x1b80b5(0x352)](),_0x585d4b;}[_0x40530a(0x379)](_0x4746e0){var _0x31f42e=_0x40530a;return this['_onConflict'](!!(_0x4746e0!=null&&_0x4746e0[_0x31f42e(0x38b)]));}['onRemoteRetry'](_0x4e3943){var _0x54fe7d=_0x40530a;return this[_0x54fe7d(0x1f9)]>Ni?this[_0x54fe7d(0x254)]():(this[_0x54fe7d(0x25e)]=Oi(this['_resendTimeout'],{'timeout':this[_0x54fe7d(0x1f9)],'reqId':_0x4e3943[_0x54fe7d(0x2ec)]}),this[_0x54fe7d(0x3d6)]=this[_0x54fe7d(0x25e)][_0x54fe7d(0x1af)](({reqId:_0x55d5e8,timeout:_0x1cf2e2})=>{var _0x145767=_0x54fe7d;this[_0x145767(0x1d2)](_0x55d5e8,_0x1cf2e2);}),this);}[_0x40530a(0x254)](){var _0x29a321=_0x40530a;return this[_0x29a321(0x3d2)](),this[_0x29a321(0x3e0)][_0x29a321(0xe8)](fe,this[_0x29a321(0x2f7)],this[_0x29a321(0x247)],this[_0x29a321(0x2f3)],this[_0x29a321(0x1f8)],this[_0x29a321(0xff)]);}[_0x40530a(0x313)](){return this;}[_0x40530a(0x2e3)](){var _0x2a173f=_0x40530a;this['_handler'][_0x2a173f(0xe4)](this['_awaitingChangeset']);}[_0x40530a(0x37b)](_0xfe6b8d){var _0x40d928=_0x40530a;return this[_0x40d928(0x3d2)](),this['_injector'][_0x40d928(0xe8)](de,this[_0x40d928(0x2f7)],this[_0x40d928(0x247)],null,this[_0x40d928(0x1f8)],this[_0x40d928(0xff)],_0xfe6b8d);}[_0x40530a(0x1d2)](_0x450196,_0x13420f){var _0x2da852=_0x40530a,_0x55e2e0;_0x450196===((_0x55e2e0=this[_0x2da852(0x2f3)])==null?void 0x0:_0x55e2e0[_0x2da852(0x2ec)])&&(this['resend'](),this['_resendTimeout']=_0x13420f===0x0?0x3e8:_0x13420f*0x2);}['_clearScheduledTask'](){var _0x13ee0f=_0x40530a,_0x3c6752;(_0x3c6752=this['_sender'])==null||_0x3c6752[_0x13ee0f(0x1de)](),this[_0x13ee0f(0x1f9)]=0x0;}};ae=Re([A(0x6,_0x48db98(_0x19dc6b)),A(0x7,_0x48db98(_0x25256b)),A(0x8,_0xc6fb7a),A(0x9,_0x6e98f),A(0xa,_0x3b018c),A(0xb,_0x84d590),A(0xc,_0x5b33db(J))],ae);let de=class extends be{constructor(_0x55f16f,_0x25e2bc,_0x15d4bf,_0x12eac9,_0x8b1234,_0x8e9b11=!0x1,_0x4b6ed3,_0x1250d1,_0x5ebca6,_0x24bbc1,_0x1fc525,_0x5c3bf,_0x174b7f){var _0x1c21f4=_0x40530a;super(_0x55f16f,_0x25e2bc,_0x15d4bf,_0x12eac9,_0x8b1234,_0x1250d1,_0x5ebca6,_0x24bbc1,_0x174b7f),N(this,_0x1c21f4(0x1d4),'conflict'),(this[_0x1c21f4(0x349)]=_0x8e9b11,this[_0x1c21f4(0x111)]=_0x4b6ed3,this[_0x1c21f4(0x153)]=_0x1fc525,this[_0x1c21f4(0x26c)]=_0x5c3bf,this[_0x1c21f4(0x364)]=_0x174b7f,this['_showConflictNotification'](),this[_0x1c21f4(0x13d)](),this[_0x1c21f4(0x183)]());}['appendMutation'](){return this;}['onRemoteChangeset'](){return this;}['onRemoteAck'](){return this;}[_0x40530a(0x379)](){return this;}[_0x40530a(0x122)](){return this;}[_0x40530a(0x254)](){return this;}['toggleOnline'](){return this;}[_0x40530a(0x2e3)](){var _0x1de261=_0x40530a;throw new Error(_0x1de261(0x11d));}[_0x40530a(0x13d)](){var _0x4d686d=_0x40530a,_0x5427d2;(_0x5427d2=this[_0x4d686d(0x2ca)])==null||_0x5427d2[_0x4d686d(0x34f)](this[_0x4d686d(0x2f7)],this[_0x4d686d(0x247)],null,[]);}[_0x40530a(0x322)](){var _0x30c5f4=_0x40530a;this[_0x30c5f4(0x349)]?this[_0x30c5f4(0x26c)][_0x30c5f4(0x2f2)]({'id':se[_0x30c5f4(0x356)]}):this[_0x30c5f4(0x26c)][_0x30c5f4(0x2f2)]({'id':se[_0x30c5f4(0xf9)]});}[_0x40530a(0x183)](){var _0x366c52=_0x40530a;this[_0x366c52(0x111)][_0x366c52(0x2f9)](new _0x57f5ad(this[_0x366c52(0x2f7)])['id'],!0x1);}};de=Re([A(0x6,_0x48db98(_0x2912cc)),A(0x7,_0xc6fb7a),A(0x8,_0x84d590),A(0x9,_0x48db98(_0x25256b)),A(0xa,_0x48db98(_0x5529ab)),A(0xb,_0x48db98(pe)),A(0xc,_0x5b33db(J))],de);let fe=class extends be{constructor(_0x475d63,_0x1716c3,_0xf24e55,_0x133c76,_0x22fadf,_0x7d6a0a,_0x418801,_0x4c8cda,_0x295344,_0x269472){var _0x3a7ea9=_0x40530a;super(_0x475d63,_0x1716c3,_0xf24e55,_0x133c76,_0x22fadf,_0x4c8cda,_0x295344,_0x418801,_0x269472),N(this,_0x3a7ea9(0x1d4),'offline'),this[_0x3a7ea9(0x3e0)]=_0x7d6a0a;}[_0x40530a(0x159)](_0x14a239){var _0x52de60=_0x40530a;return this[_0x52de60(0x1f8)][_0x52de60(0x20a)](_0x14a239),this[_0x52de60(0x352)](),this;}[_0x40530a(0x21c)](_0xf1be02){throw new Error('[OfflineState]:\x20received\x20changeset.');}[_0x40530a(0x343)](){var _0x569d79=_0x40530a;throw new Error(_0x569d79(0x12c));}['onRemoteRej'](){var _0x142214=_0x40530a;throw new Error(_0x142214(0x2be));}[_0x40530a(0x122)](){return this;}[_0x40530a(0x254)](){return this;}[_0x40530a(0x313)](){var _0x4b2b50=_0x40530a;const {_injector:_0x36d397,_pendingMutations:_0x568106,_awaitingChangeset:_0x4f166a,unitID:_0x32b392,_handler:_0x17bcaa,type:_0x542120}=this,_0x2dec91=Di(_0x36d397,_0x32b392,_0x542120,_0x4f166a,_0x568106,_0x17bcaa);return _0x2dec91 instanceof oe?_0x2dec91[_0x4b2b50(0x3ba)]():(_0x2dec91 instanceof ae||_0x2dec91 instanceof ue)&&_0x2dec91[_0x4b2b50(0x2e3)](),_0x2dec91;}[_0x40530a(0x2e3)](){var _0x66f9cb=_0x40530a;throw new Error(_0x66f9cb(0xfd));}};fe=Re([A(0x5,_0x48db98(_0x19dc6b)),A(0x6,_0x48db98(_0x25256b)),A(0x7,_0xc6fb7a),A(0x8,_0x84d590),A(0x9,_0x5b33db(J))],fe);let te=class extends be{constructor(_0x4c33a9,_0xd4473a,_0x387bef,_0x4d0f52,_0x4dd089,_0x2c1f5,_0x29e41d,_0xab7ff6,_0x225726,_0x5c92b9,_0x2694cc,_0x4cc81e,_0x2b0f5e,_0x583ba0){var _0x2f5391=_0x40530a;super(_0x4c33a9,_0xd4473a,_0x387bef,_0x4d0f52,_0x29e41d,_0x2694cc,_0x4cc81e,_0x225726,_0x583ba0),N(this,_0x2f5391(0x1d4),_0x2f5391(0x1df)),(this[_0x2f5391(0x355)]=_0x4dd089,this[_0x2f5391(0x2c7)]=_0x2c1f5,this[_0x2f5391(0x3e0)]=_0xab7ff6,this[_0x2f5391(0x278)]=_0x5c92b9,this[_0x2f5391(0x2cd)]=_0x2b0f5e,this[_0x2f5391(0x364)]=_0x583ba0);}[_0x40530a(0x20c)](_0x3ce416){var _0x62341d=_0x40530a;try{const _0x13fd9e=[..._0x3ce416,...this[_0x62341d(0x2c7)]],_0x23f826=[this[_0x62341d(0x2f3)]||this[_0x62341d(0x355)]][_0x62341d(0x361)](_0x4d7be3=>!!_0x4d7be3);let _0x4033d5,_0x3d08aa;if(_0x23f826[_0x62341d(0x37d)]){const _0x48069b=this['_transformService'][_0x62341d(0x134)](_0x13fd9e,_0x23f826,!0x1);if(!_0x1a324a(_0x48069b))throw _0x48069b[_0x62341d(0xf4)];_0x4033d5=_0x48069b['c1Prime'],_0x3d08aa=_0x48069b[_0x62341d(0x314)];}else _0x4033d5=_0x13fd9e,_0x3d08aa=[];let _0xeea709=this[_0x62341d(0x1f8)];_0x4033d5[_0x62341d(0xe9)](_0x3cb284=>{var _0x46958a=_0x62341d;let _0x273243;if(_0xeea709[_0x46958a(0x37d)]){const _0x134970=this['_transformService']['transformMutationsWithChangeset'](_0x3cb284,_0xeea709);if(!_0x5bbbc8(_0x134970))throw _0x134970['error'];_0x273243=_0x134970[_0x46958a(0x180)],_0xeea709=_0x134970[_0x46958a(0xf0)];}else _0x273243=_0x3cb284;this[_0x46958a(0x3d0)](_0x273243);}),this[_0x62341d(0x355)]&&this['_incrementRevisionNumber'](),this[_0x62341d(0x2f3)]&&_0x3d08aa[_0x62341d(0x37d)]&&(_0x3d08aa[0x0][_0x62341d(0x27a)]=this[_0x62341d(0x1a8)]());let _0x1d0e36;if(this['_awaitingChangeset']&&_0xeea709['length']!==0x0)_0x1d0e36=this[_0x62341d(0x3e0)][_0x62341d(0xe8)](ae,this[_0x62341d(0x2f7)],this[_0x62341d(0x247)],_0x3d08aa[0x0],_0xeea709,this['_handler'],void 0x0);else{if(this[_0x62341d(0x2f3)]&&_0xeea709[_0x62341d(0x37d)]===0x0)_0x3d08aa[0x0][_0x62341d(0x27a)]=this['_getCurrentRevision'](),_0x1d0e36=this['_injector']['createInstance'](ue,this['unitID'],this[_0x62341d(0x247)],_0x3d08aa[0x0],this['_handler']);else{if(_0xeea709[_0x62341d(0x37d)]!==0x0){const _0x34894c=this[_0x62341d(0x3e0)][_0x62341d(0xe8)](oe,this[_0x62341d(0x2f7)],this[_0x62341d(0x247)],_0xeea709,this[_0x62341d(0xff)]);_0x34894c[_0x62341d(0x3ba)](),_0x1d0e36=_0x34894c;}else _0x1d0e36=this[_0x62341d(0x3e0)]['createInstance'](De,this['unitID'],this[_0x62341d(0x247)],this['_handler']);}}return _0x1d0e36['_updateLocalCache'](),_0x1d0e36;}catch(_0x30e79c){return this[_0x62341d(0x278)][_0x62341d(0xf4)](_0x62341d(0xf6),_0x62341d(0x302),_0x30e79c),this[_0x62341d(0x3e0)][_0x62341d(0xe8)](de,this[_0x62341d(0x2f7)],this[_0x62341d(0x247)],this[_0x62341d(0x2f3)],this[_0x62341d(0x1f8)],this[_0x62341d(0xff)],!0x1);}}[_0x40530a(0x2e3)](){var _0x4c1f95=_0x40530a;throw new Error(_0x4c1f95(0x3d4));}['appendMutation'](_0x26929e){return this['_pendingMutations']['push'](_0x26929e),this;}[_0x40530a(0x21c)](_0x5ef95e){return this['_queuedRemoteChangesets']['push'](_0x5ef95e),this;}[_0x40530a(0x343)](_0x25063f){var _0x1f0487=_0x40530a;if(this[_0x1f0487(0x2f3)])return this['_acknowledgedAwaitingChangeset']=this[_0x1f0487(0x2f3)],this['_awaitingChangeset']=null,this;throw new Error(_0x1f0487(0x363));}[_0x40530a(0x379)](_0x2d662a){var _0x1b1117=_0x40530a;return this['_onConflict'](!!(_0x2d662a!=null&&_0x2d662a[_0x1b1117(0x38b)]));}[_0x40530a(0x122)](){return this;}[_0x40530a(0x254)](){var _0xe2eba6=_0x40530a;return this['_injector'][_0xe2eba6(0xe8)](fe,this[_0xe2eba6(0x2f7)],this[_0xe2eba6(0x247)],this['_awaitingChangeset'],this['_pendingMutations'],this[_0xe2eba6(0xff)]);}[_0x40530a(0x313)](){return this;}['_onConflict'](_0x43021e){var _0x822eb2=_0x40530a;return this['_injector'][_0x822eb2(0xe8)](de,this[_0x822eb2(0x2f7)],this[_0x822eb2(0x247)],this[_0x822eb2(0x2f3)],this['_pendingMutations'],this[_0x822eb2(0xff)],_0x43021e);}};te=Re([A(0x7,_0x48db98(_0x19dc6b)),A(0x8,_0x48db98(_0x25256b)),A(0x9,_0x6e98f),A(0xa,_0xc6fb7a),A(0xb,_0x84d590),A(0xc,_0x3b018c),A(0xd,_0x5b33db(J))],te);function Di(_0x49c1b1,_0x5b7dd9,_0x288855,_0x298bb7,_0x4530b7,_0x5082c3){var _0x45ed2d=_0x40530a;return _0x298bb7&&_0x4530b7[_0x45ed2d(0x37d)]?_0x49c1b1[_0x45ed2d(0xe8)](ae,_0x5b7dd9,_0x288855,_0x298bb7,_0x4530b7,_0x5082c3,void 0x0):_0x298bb7?_0x49c1b1[_0x45ed2d(0xe8)](ue,_0x5b7dd9,_0x288855,_0x298bb7,_0x5082c3):_0x4530b7[_0x45ed2d(0x37d)]?_0x49c1b1[_0x45ed2d(0xe8)](oe,_0x5b7dd9,_0x288855,_0x4530b7,_0x5082c3):_0x49c1b1[_0x45ed2d(0xe8)](De,_0x5b7dd9,_0x288855,_0x5082c3);}var vr=Object['defineProperty'],pr=Object['getOwnPropertyDescriptor'],Lt=(_0x1d98fd,_0xeffa96,_0x5f40c9,_0x15ad5b)=>{for(var _0x55ec40=_0x15ad5b>0x1?void 0x0:_0x15ad5b?pr(_0xeffa96,_0x5f40c9):_0xeffa96,_0x3508f8=_0x1d98fd['length']-0x1,_0x1784c6;_0x3508f8>=0x0;_0x3508f8--)(_0x1784c6=_0x1d98fd[_0x3508f8])&&(_0x55ec40=(_0x15ad5b?_0x1784c6(_0xeffa96,_0x5f40c9,_0x55ec40):_0x1784c6(_0x55ec40))||_0x55ec40);return _0x15ad5b&&_0x55ec40&&vr(_0xeffa96,_0x5f40c9,_0x55ec40),_0x55ec40;},k=(_0x36d359,_0x239572)=>(_0x3da14e,_0x428e78)=>_0x239572(_0x3da14e,_0x428e78,_0x36d359);let nt=class extends _0x18f063{constructor(_0x62cb51,_0x4120fb,_0x350f46,_0x9a297a,_0x2468f2,_0x47a903,_0x40c4fb,_0x4b47c6,_0x116f7c,_0x103cbb,_0x4acf8c,_0x4a4aa3,_0x4e49d4){var _0xd220f2=_0x40530a;super(),N(this,_0xd220f2(0x1d6),new _0x1379a3(null)),N(this,_0xd220f2(0x1c1),this[_0xd220f2(0x1d6)][_0xd220f2(0x303)]()),N(this,_0xd220f2(0x1eb)),N(this,_0xd220f2(0x22e),!0x1),N(this,_0xd220f2(0x279),''),N(this,_0xd220f2(0x353),0x0),N(this,_0xd220f2(0x396),this[_0xd220f2(0x1c1)][_0xd220f2(0x330)](_0x4d0067(_0x1dd7c5=>_0x1dd7c5?_0x1dd7c5[_0xd220f2(0x1d4)]:yi['OFFLINE']),_0x2de545(0x1))),N(this,_0xd220f2(0x3a3),!0x1),N(this,_0xd220f2(0xdf),[]),(this[_0xd220f2(0x2f7)]=_0x62cb51,this[_0xd220f2(0x1d1)]=_0x4120fb,this[_0xd220f2(0x215)]=_0x350f46,this['_injector']=_0x9a297a,this[_0xd220f2(0x357)]=_0x2468f2,this[_0xd220f2(0x153)]=_0x47a903,this['_revisionService']=_0x40c4fb,this[_0xd220f2(0x256)]=_0x4b47c6,this[_0xd220f2(0x278)]=_0x116f7c,this[_0xd220f2(0x3ad)]=_0x103cbb,this[_0xd220f2(0x111)]=_0x4acf8c,this[_0xd220f2(0x191)]=_0x4a4aa3,this[_0xd220f2(0x2ca)]=_0x4e49d4);}get[_0x40530a(0x3db)](){return this['_state'];}async[_0x40530a(0x3a9)](){var _0x8e9384=_0x40530a;if(this[_0x8e9384(0x3db)])throw new Error(_0x8e9384(0x22a));await this[_0x8e9384(0x221)]();}[_0x40530a(0x171)](){var _0x206a5d=_0x40530a;return this[_0x206a5d(0x22e)]=!0x0,_0x205e55(()=>{var _0x4ee645=_0x206a5d;this['_collaborationPaused']=!0x1,this[_0x4ee645(0x1b2)]();});}[_0x40530a(0x258)](_0x1f7d0a){var _0x1b2f30=_0x40530a;this[_0x1b2f30(0x1da)](_0x1f7d0a);}['_updateState'](_0x1856aa){var _0x54244e=_0x40530a;this['_state']=_0x1856aa,this[_0x54244e(0x1d6)][_0x54244e(0x362)](_0x1856aa);}async[_0x40530a(0x221)](){var _0xbba7e0=_0x40530a,_0x2691ce;this['_updateState'](await this[_0xbba7e0(0x19e)]()),this[_0xbba7e0(0x191)]&&((_0x2691ce=this[_0xbba7e0(0x191)])==null||_0x2691ce['editingUnit'](this[_0xbba7e0(0x2f7)]),this[_0xbba7e0(0x3ae)](this['_singleActiveUnitService'][_0xbba7e0(0x3c2)](this[_0xbba7e0(0x2f7)])[_0xbba7e0(0x1af)](_0x47e803=>{var _0x18d17d=_0xbba7e0;this[_0x18d17d(0x278)]['debug'](_0x18d17d(0x1aa),'editing\x20status\x20changed\x20to',_0x47e803),_0x47e803===bi[_0x18d17d(0x15d)]?(this['_eventService']['emitEvent']({'id':se[_0x18d17d(0x288)]}),this[_0x18d17d(0x111)][_0x18d17d(0x2f9)](new _0x57f5ad(this[_0x18d17d(0x2f7)])['id'],!0x1),this[_0x18d17d(0x111)][_0x18d17d(0x1b4)](!0x1)):(this[_0x18d17d(0x111)][_0x18d17d(0x2f9)](new _0x57f5ad(this['unitID'])['id'],!0x0),this[_0x18d17d(0x111)][_0x18d17d(0x1b4)](!0x0));})));let _0x28b947=!0x1;return this[_0xbba7e0(0x3ae)](this['session'][_0xbba7e0(0x143)][_0xbba7e0(0x1af)](_0x3ae9b7=>{var _0x196bda=_0xbba7e0;_0x3ae9b7===Te[_0x196bda(0x340)]?this[_0x196bda(0x1e2)](_0x28b947):_0x3ae9b7===Te['OFFLINE']&&(_0x28b947=!0x0,this['_toggleOffline']());})),this['disposeWithMe'](this[_0xbba7e0(0x1d1)][_0xbba7e0(0x3e5)]['subscribe'](_0x3fec54=>{var _0x1e68cf=_0xbba7e0;try{switch(_0x3fec54[_0x1e68cf(0x285)]){case _0x4b8a98['NEW_CHANGESETS']:{this['_onRemoteChangeset'](_0x286ee3(_0x3fec54[_0x1e68cf(0x311)]));break;}case _0x4b8a98[_0x1e68cf(0x38f)]:{this['_onRemoteACK'](_0x3fec54['data']);break;}case _0x4b8a98[_0x1e68cf(0x1c7)]:{this[_0x1e68cf(0x282)]();break;}case _0x4b8a98[_0x1e68cf(0x2fb)]:{this[_0x1e68cf(0x359)](_0x3fec54[_0x1e68cf(0x311)]);break;}case _0x4b8a98[_0x1e68cf(0x2c2)]:{this[_0x1e68cf(0x32b)](_0x3fec54[_0x1e68cf(0x311)]['changesets']['map'](_0x5aea98=>_0x286ee3(_0x5aea98)));break;}case _0x4b8a98['PERMISSION_REJ']:{this[_0x1e68cf(0x282)]({'isPermissionRej':!0x0});break;}case _0x4b8a98[_0x1e68cf(0x211)]:break;}}catch(_0x335d32){throw console['error']('Error\x20on\x20receiving\x20event',_0x335d32),_0x335d32;}})),this[_0xbba7e0(0x1eb)];}[_0x40530a(0x270)](){this['_transitionLocked']=!0x1;}['_lockTransition'](){var _0x2080fe=_0x40530a;if(this['_transitionLocked'])throw new Error(_0x2080fe(0x328));this[_0x2080fe(0x3a3)]=!0x0;}[_0x40530a(0x1da)](_0x479cc0){var _0xb9d96=_0x40530a;this[_0xb9d96(0x2d3)](),this[_0xb9d96(0x10e)](this['_state'][_0xb9d96(0x159)](_0x479cc0)),this[_0xb9d96(0x270)]();}[_0x40530a(0x32f)](_0x1684c4){var _0x28b90b=_0x40530a;if(!(_0x1684c4['revision']<=this[_0x28b90b(0x31b)]['getCurrentRevOfUnit'](this[_0x28b90b(0x2f7)]))){if(this['_collaborationPaused']){this[_0x28b90b(0xdf)][_0x28b90b(0x20a)](_0x1684c4);return;}this[_0x28b90b(0x244)](_0x1684c4);}}[_0x40530a(0x1b2)](){var _0x5c890c=_0x40530a;this['_remoteChangesetQueue'][_0x5c890c(0xe9)](_0x3034dd=>this[_0x5c890c(0x244)](_0x3034dd)),this[_0x5c890c(0xdf)]=[];}[_0x40530a(0x244)](_0x5b31b4){var _0x3c31bf=_0x40530a;const _0x21d8cd=this[_0x3c31bf(0x357)]['interceptor']['fetchThroughInterceptors'](this[_0x3c31bf(0x357)][_0x3c31bf(0xeb)][_0x3c31bf(0x17a)]()[_0x3c31bf(0x382)])(_0x5b31b4['mutations'],null)||_0x5b31b4[_0x3c31bf(0x1b5)],_0x5542c9={..._0x5b31b4,'mutations':_0x21d8cd};this[_0x3c31bf(0x2d3)](),this[_0x3c31bf(0x10e)](this[_0x3c31bf(0x1eb)][_0x3c31bf(0x21c)](_0x5542c9)),this[_0x3c31bf(0x270)]();}[_0x40530a(0x2a8)](_0x5ca25f){var _0x11f744=_0x40530a;this[_0x11f744(0x2d3)](),this[_0x11f744(0x10e)](this[_0x11f744(0x1eb)]['onRemoteAck'](_0x5ca25f)),this['_unlockTransition']();}['_onRemoteRejected'](_0x1f7f41){var _0x6cce58=_0x40530a;this[_0x6cce58(0x2d3)](),this[_0x6cce58(0x10e)](this[_0x6cce58(0x1eb)]['onRemoteRej'](_0x1f7f41)),this[_0x6cce58(0x270)]();}[_0x40530a(0x359)](_0x5e8aab){var _0x102fb3=_0x40530a;this[_0x102fb3(0x2d3)](),this['_updateState'](this[_0x102fb3(0x1eb)][_0x102fb3(0x122)](_0x5e8aab)),this[_0x102fb3(0x270)]();}[_0x40530a(0x32b)](_0x5745f0){var _0x621ce5=_0x40530a;if(!(this[_0x621ce5(0x1eb)]instanceof te))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0x556d33=_0x5745f0[_0x621ce5(0x20f)](_0x2b0b35=>{var _0x54c859=_0x621ce5;const _0x5f4049=this['_compressMutationService'][_0x54c859(0xeb)]['fetchThroughInterceptors'](this[_0x54c859(0x357)][_0x54c859(0xeb)][_0x54c859(0x17a)]()['COMPRESS_MUTATION_APPLY'])(_0x2b0b35['mutations'],null)||_0x2b0b35[_0x54c859(0x1b5)];return{..._0x2b0b35,'mutations':_0x5f4049};});this['_lockTransition'](),this[_0x621ce5(0x10e)](this[_0x621ce5(0x1eb)][_0x621ce5(0x20c)](_0x556d33)),this[_0x621ce5(0x270)]();}[_0x40530a(0x2dd)](){var _0x3e308b=_0x40530a;this[_0x3e308b(0x2d3)](),this[_0x3e308b(0x10e)](this[_0x3e308b(0x1eb)][_0x3e308b(0x254)]()),this[_0x3e308b(0x270)]();}['_toggleOnline'](_0x442f70=!0x1){var _0x19c45b=_0x40530a;this[_0x19c45b(0x2d3)](),this[_0x19c45b(0x10e)](this['_state'][_0x19c45b(0x313)]()),this['_unlockTransition']();const _0x3f63f9=this[_0x19c45b(0x1eb)];_0x442f70&&_0x3f63f9 instanceof De&&(this[_0x19c45b(0x2d3)](),this[_0x19c45b(0x10e)](_0x3f63f9[_0x19c45b(0x222)]()),this[_0x19c45b(0x270)]());}async[_0x40530a(0x19e)](){return new Promise(_0x4ad0ed=>{var _0xc7386a=_0x192f;this[_0xc7386a(0x1d1)][_0xc7386a(0x143)]['pipe'](_0x4da358(0x1))[_0xc7386a(0x1af)](async _0x28f002=>{var _0x1c85b5=_0xc7386a;_0x4ad0ed(await this['_createInitialStateImpl'](_0x28f002===Te[_0x1c85b5(0x340)]));});});}[_0x40530a(0x291)](){const _0x479b79=this['unitID'];return{'onStateChange':(_0x5d4f08,_0x1a7989)=>{var _0x4897bc=_0x192f;if(_0x5d4f08!==this[_0x4897bc(0x1eb)])throw new Error(_0x4897bc(0x294)+_0x5d4f08['status']+_0x4897bc(0x252)+_0x1a7989[_0x4897bc(0x1d4)]+'\x0aCurrent:\x20'+this[_0x4897bc(0x1eb)][_0x4897bc(0x1d4)]);this['_updateState'](_0x1a7989);},'onSendChangeset':_0x259e6e=>{var _0x1ad0d6=_0x192f;_0x259e6e[_0x1ad0d6(0x29b)]||(_0x259e6e['sid']=this[_0x1ad0d6(0x279)],_0x259e6e[_0x1ad0d6(0x2ec)]=++this[_0x1ad0d6(0x353)]);const _0x51b0f1={'eventID':_0x4b8a98[_0x1ad0d6(0x3a2)],'data':{'unitID':_0x259e6e[_0x1ad0d6(0x2f7)],'unitType':this[_0x1ad0d6(0x215)],'changeset':_0x259e6e,'memberID':this[_0x1ad0d6(0x1d1)]['getMemberID']()}};this['session'][_0x1ad0d6(0x378)](_0x51b0f1,this[_0x1ad0d6(0x2f7)]);},'onMissingChangesets':({from:_0x5ccafd,to:_0x50a12e})=>{var _0x591d48=_0x192f;this[_0x591d48(0x278)][_0x591d48(0x2d8)](_0x591d48(0x1aa),_0x591d48(0x29f)+_0x5ccafd+_0x591d48(0x2f1)+_0x50a12e);const _0x2685d1={'eventID':_0x4b8a98['FETCH_MISSING'],'data':{'unitID':_0x479b79,'unitType':this['_type'],'from':_0x5ccafd,'to':_0x50a12e}};this[_0x591d48(0x1d1)][_0x591d48(0x378)](_0x2685d1,this[_0x591d48(0x2f7)]);}};}async[_0x40530a(0x304)](_0x2241e2){var _0x21b4a8=_0x40530a,_0x42652c,_0x175fbc,_0x12e460;const _0x42c70b=await((_0x42652c=this['_localCacheService'])==null?void 0x0:_0x42652c[_0x21b4a8(0x2bb)](this[_0x21b4a8(0x2f7)])),_0x3e7cfb=(_0x175fbc=_0x42c70b==null?void 0x0:_0x42c70b[_0x21b4a8(0x1b5)])!=null?_0x175fbc:[],_0x158740=(_0x12e460=_0x42c70b==null?void 0x0:_0x42c70b[_0x21b4a8(0x1d8)])!=null?_0x12e460:null,_0x50fbca=!!(_0x158740!=null&&_0x158740[_0x21b4a8(0x29b)])&&!!(_0x158740!=null&&_0x158740[_0x21b4a8(0x2ec)]);this[_0x21b4a8(0x279)]=_0x50fbca?_0x158740[_0x21b4a8(0x29b)]:sr(),this[_0x21b4a8(0x353)]=_0x50fbca?_0x158740[_0x21b4a8(0x2ec)]:0x0;const _0x594d42=this[_0x21b4a8(0x2f7)];try{this[_0x21b4a8(0x1f6)](_0x158740,_0x3e7cfb);}catch(_0x50fcd1){this[_0x21b4a8(0x278)][_0x21b4a8(0xf4)](_0x50fcd1);}const _0x5475c3=this[_0x21b4a8(0x291)]();if(_0x2241e2){const _0x556c3b=Di(this[_0x21b4a8(0x3e0)],_0x594d42,this[_0x21b4a8(0x215)],_0x158740,_0x3e7cfb,_0x5475c3);return _0x556c3b instanceof oe?_0x556c3b[_0x21b4a8(0x3ba)]():(_0x556c3b instanceof ae||_0x556c3b instanceof ue)&&_0x556c3b[_0x21b4a8(0x2e3)](),_0x556c3b;}return this['_injector'][_0x21b4a8(0xe8)](fe,_0x594d42,this[_0x21b4a8(0x215)],_0x158740,_0x3e7cfb,_0x5475c3);}[_0x40530a(0x1f6)](_0x48fcbf,_0x289648){var _0x44c125=_0x40530a,_0x6701d2,_0x714dce;const _0x4d9dfd=this[_0x44c125(0x357)]['interceptor'][_0x44c125(0x38c)](this[_0x44c125(0x357)][_0x44c125(0xeb)][_0x44c125(0x17a)]()[_0x44c125(0x382)]);(_0x6701d2=_0x4d9dfd((_0x48fcbf==null?void 0x0:_0x48fcbf[_0x44c125(0x1b5)])||[],null))==null||_0x6701d2[_0x44c125(0xe9)](_0x203e83=>this[_0x44c125(0x3ad)][_0x44c125(0x2d5)](_0x203e83['id'],_0x203e83[_0x44c125(0x131)])),(_0x714dce=_0x4d9dfd(_0x289648||[],null))==null||_0x714dce[_0x44c125(0xe9)](_0x1b90f5=>this[_0x44c125(0x3ad)][_0x44c125(0x2d5)](_0x1b90f5['id'],_0x1b90f5['params']));}};nt=Lt([k(0x3,_0x48db98(_0x19dc6b)),k(0x4,_0x48db98(_0x422efc)),k(0x5,_0x48db98(_0x5529ab)),k(0x6,_0x48db98(_0x25256b)),k(0x7,_0x48db98(pe)),k(0x8,_0x6e98f),k(0x9,_0xc6fb7a),k(0xa,_0x2912cc),k(0xb,_0x5b33db(ht)),k(0xc,_0x5b33db(J))],nt);let Tt=class extends nt{constructor(_0x1b741f,_0x2970bc,_0x32bacf,_0x46ada3,_0x34b784,_0x1c1db1,_0x49f003,_0x89438c,_0x26213f,_0x50936b,_0x5b91f0,_0xf58816,_0x9048e5){var _0x28a15a=_0x40530a;super(_0x1b741f,_0x32bacf,_0x2970bc,_0x46ada3,_0x34b784,_0x1c1db1,_0x49f003,_0x89438c,_0x26213f,_0x50936b,_0x5b91f0,_0xf58816,_0x9048e5),N(this,_0x28a15a(0x3b9),null),(this['unitID']=_0x1b741f,this[_0x28a15a(0x247)]=_0x2970bc);}[_0x40530a(0x265)](_0xe0ba70){var _0x399fda=_0x40530a;this[_0x399fda(0x3b9)]=_0xe0ba70;}[_0x40530a(0x19c)](){var _0x28a823=_0x40530a;this[_0x28a823(0x3b9)]=null,super[_0x28a823(0x19c)]();}[_0x40530a(0x291)](){var _0xedba33=_0x40530a;const _0x367d48=super[_0xedba33(0x291)]();return _0x367d48[_0xedba33(0x3d5)]=_0x2ec225=>{var _0x4d6136=_0xedba33,_0x213144,_0x2aeba9;return(_0x2aeba9=(_0x213144=this[_0x4d6136(0x3b9)])==null?void 0x0:_0x213144[_0x4d6136(0x3d5)])==null?void 0x0:_0x2aeba9[_0x4d6136(0x2b8)](_0x213144,_0x2ec225);},_0x367d48[_0xedba33(0x2de)]=_0x3ac2cc=>{var _0xa3852c=_0xedba33,_0x340fc9,_0x4ec9fc;return(_0x4ec9fc=(_0x340fc9=this[_0xa3852c(0x3b9)])==null?void 0x0:_0x340fc9[_0xa3852c(0x2de)])==null?void 0x0:_0x4ec9fc['call'](_0x340fc9,_0x3ac2cc);},_0x367d48[_0xedba33(0x120)]=_0x38f50e=>{var _0x19f027=_0xedba33,_0x34e18b,_0x49f206;return(_0x49f206=(_0x34e18b=this[_0x19f027(0x3b9)])==null?void 0x0:_0x34e18b[_0x19f027(0x120)])==null?void 0x0:_0x49f206[_0x19f027(0x2b8)](_0x34e18b,_0x38f50e);},_0x367d48[_0xedba33(0x1f4)]=_0x48399c=>{var _0x37313d=_0xedba33,_0x22e8a8,_0x4de0bd;return(_0x4de0bd=(_0x22e8a8=this[_0x37313d(0x3b9)])==null?void 0x0:_0x22e8a8[_0x37313d(0x1f4)])==null?void 0x0:_0x4de0bd[_0x37313d(0x2b8)](_0x22e8a8,_0x48399c);},_0x367d48[_0xedba33(0x3da)]=_0x29d1b5=>{var _0x271629=_0xedba33,_0xb2598d,_0x2c7c30,_0x253eb5;if(!((_0xb2598d=this[_0x271629(0x3b9)])!=null&&_0xb2598d['onTransformRemoteChangesetByIMECache']))throw new Error(_0x271629(0x2af));return(_0x253eb5=(_0x2c7c30=this['_handlerCallback'])==null?void 0x0:_0x2c7c30[_0x271629(0x3da)])==null?void 0x0:_0x253eb5['call'](_0x2c7c30,_0x29d1b5);},_0x367d48[_0xedba33(0x315)]=_0x3f8049=>{var _0x376c76=_0xedba33,_0x554b76,_0x2be8b1,_0x543fdc;if(!((_0x554b76=this[_0x376c76(0x3b9)])!=null&&_0x554b76['onTransformRemoteChangesetByStateCache']))throw new Error(_0x376c76(0x1ea));return(_0x543fdc=(_0x2be8b1=this[_0x376c76(0x3b9)])==null?void 0x0:_0x2be8b1[_0x376c76(0x315)])==null?void 0x0:_0x543fdc[_0x376c76(0x2b8)](_0x2be8b1,_0x3f8049);},_0x367d48;}async[_0x40530a(0x221)](){var _0x58a28c=_0x40530a;const _0x3a3ef2=await super['_init']();return this[_0x58a28c(0x3ae)](this[_0x58a28c(0x3ad)][_0x58a28c(0x28d)]((_0x5b5c80,_0xad3e6a)=>{var _0x9ac629=_0x58a28c;if(_0x5b5c80['type']!==_0x29caaf[_0x9ac629(0x388)]||_0xad3e6a!=null&&_0xad3e6a['fromCollab']||_0xad3e6a!=null&&_0xad3e6a['onlyLocal']||_0x5b5c80['id']===_0x3905df['id'])return;const _0x4d26fd=_0x5b5c80[_0x9ac629(0x131)];if((_0x4d26fd==null?void 0x0:_0x4d26fd['unitId'])!==this[_0x9ac629(0x2f7)])return;const _0x3072a6=_0x5b5c80,_0x425ad0=this[_0x9ac629(0x357)][_0x9ac629(0xeb)]['fetchThroughInterceptors'](this[_0x9ac629(0x357)]['interceptor'][_0x9ac629(0x17a)]()[_0x9ac629(0x1b3)])([_0x3072a6],null)||[_0x3072a6];this[_0x9ac629(0x1da)](_0x425ad0[0x0]);})),_0x3a3ef2;}};Tt=Lt([k(0x3,_0x48db98(_0x19dc6b)),k(0x4,_0x48db98(_0x422efc)),k(0x5,_0x48db98(_0x5529ab)),k(0x6,_0x48db98(_0x25256b)),k(0x7,_0x48db98(pe)),k(0x8,_0x6e98f),k(0x9,_0xc6fb7a),k(0xa,_0x2912cc),k(0xb,_0x5b33db(ht)),k(0xc,_0x5b33db(J))],Tt);let Ct=class extends nt{constructor(_0x167b17,_0x3b56fc,_0x1c2b2c,_0x2d8719,_0x208575,_0x5e746a,_0x4c2202,_0x5e712a,_0x3dd3db,_0x283f9b,_0x1baeb3,_0x9e515b,_0x1c07a6,_0x2289a4){var _0x9de94=_0x40530a;super(_0x167b17,_0x1c2b2c,_0x3b56fc,_0x2d8719,_0x208575,_0x5e746a,_0x4c2202,_0x3dd3db,_0x283f9b,_0x1baeb3,_0x9e515b,_0x1c07a6,_0x2289a4),this[_0x9de94(0x2f7)]=_0x167b17,this[_0x9de94(0x247)]=_0x3b56fc,this['_sheetTransformSelectionsService']=_0x5e712a;}['_createHandler'](){var _0x50ba8d=_0x40530a;const _0x53ed31=super[_0x50ba8d(0x291)]();return _0x53ed31['onTransformSelections']=_0x2ce1d6=>this[_0x50ba8d(0x11e)][_0x50ba8d(0x370)](_0x2ce1d6),_0x53ed31;}async[_0x40530a(0x221)](){var _0x38f438=_0x40530a;const _0x16e64b=await super[_0x38f438(0x221)]();return this['disposeWithMe'](this[_0x38f438(0x3ad)][_0x38f438(0x28d)]((_0x4bd504,_0x1b3485)=>{var _0x141ee7=_0x38f438;if(_0x4bd504[_0x141ee7(0x247)]!==_0x29caaf['MUTATION']||_0x1b3485!=null&&_0x1b3485[_0x141ee7(0x241)]||_0x1b3485!=null&&_0x1b3485[_0x141ee7(0x35d)])return;const _0x2d77b0=_0x4bd504['params'];if((_0x2d77b0==null?void 0x0:_0x2d77b0[_0x141ee7(0x307)])!==this[_0x141ee7(0x2f7)])return;const _0x3b88c4=_0x4bd504,_0x897c02=this[_0x141ee7(0x357)]['interceptor'][_0x141ee7(0x38c)](this[_0x141ee7(0x357)][_0x141ee7(0xeb)]['getInterceptPoints']()[_0x141ee7(0x1b3)])([_0x3b88c4],null)||[_0x3b88c4];this[_0x141ee7(0x1da)](_0x897c02[0x0]);})),_0x16e64b;}};Ct=Lt([k(0x3,_0x48db98(_0x19dc6b)),k(0x4,_0x48db98(_0x422efc)),k(0x5,_0x48db98(_0x5529ab)),k(0x6,_0x48db98(_0x25256b)),k(0x7,_0x48db98(it)),k(0x8,_0x48db98(pe)),k(0x9,_0x6e98f),k(0xa,_0xc6fb7a),k(0xb,_0x2912cc),k(0xc,_0x5b33db(ht)),k(0xd,_0x5b33db(J))],Ct);var mr=Object[_0x40530a(0x27d)],gr=Object[_0x40530a(0x338)],Sr=(_0x2f6c53,_0x1a4ffd,_0x2e40b1,_0x14a36e)=>{for(var _0x1dfb63=_0x14a36e>0x1?void 0x0:_0x14a36e?gr(_0x1a4ffd,_0x2e40b1):_0x1a4ffd,_0x284119=_0x2f6c53['length']-0x1,_0x5a559a;_0x284119>=0x0;_0x284119--)(_0x5a559a=_0x2f6c53[_0x284119])&&(_0x1dfb63=(_0x14a36e?_0x5a559a(_0x1a4ffd,_0x2e40b1,_0x1dfb63):_0x5a559a(_0x1dfb63))||_0x1dfb63);return _0x14a36e&&_0x1dfb63&&mr(_0x1a4ffd,_0x2e40b1,_0x1dfb63),_0x1dfb63;},ft=(_0x4e5548,_0x5b2af4)=>(_0x4ed26e,_0x51d18f)=>_0x5b2af4(_0x4ed26e,_0x51d18f,_0x4e5548);let rt=class extends _0x18f063{constructor(_0x88beda,_0x4f4f17,_0x5c6cbc){var _0x53e811=_0x40530a;super(),N(this,_0x53e811(0x207),new Map()),N(this,_0x53e811(0x28f),new _0x3da80f()),N(this,'entityInit$',this[_0x53e811(0x28f)][_0x53e811(0x303)]()),(this[_0x53e811(0x3e0)]=_0x88beda,this[_0x53e811(0x2b5)]=_0x4f4f17,this[_0x53e811(0x305)]=_0x5c6cbc,this[_0x53e811(0x221)]());}[_0x40530a(0x19c)](){var _0x4e57e2=_0x40530a;super[_0x4e57e2(0x19c)](),this[_0x4e57e2(0x207)][_0x4e57e2(0xe9)](_0x2ec942=>_0x2ec942[_0x4e57e2(0x19c)]()),this[_0x4e57e2(0x207)][_0x4e57e2(0x386)]();}[_0x40530a(0x101)](_0x1ddbac){var _0x2c9a0=_0x40530a,_0x41ab59;return(_0x41ab59=this['_entities'][_0x2c9a0(0x27f)](_0x1ddbac))!=null?_0x41ab59:null;}[_0x40530a(0x243)](_0x2d44ea){var _0x225dad=_0x40530a;const _0x7f2141=this[_0x225dad(0x101)](_0x2d44ea);return _0x7f2141?_0xdc5b87(_0x7f2141):this[_0x225dad(0x28f)]['pipe'](_0x55f065(_0x187045=>_0x187045[_0x225dad(0x2f7)]===_0x2d44ea));}[_0x40530a(0x309)](_0x28db58){var _0x36d799=_0x40530a;return _0x48c009(this[_0x36d799(0x243)](_0x28db58)[_0x36d799(0x330)](_0x130e36(()=>{})));}[_0x40530a(0x221)](){var _0x267b64=_0x40530a;this[_0x267b64(0x305)][_0x267b64(0x250)](_0x4d2a26[_0x267b64(0x39e)])[_0x267b64(0x330)](_0xb4b3a(this[_0x267b64(0x1ce)]),_0x284d72(0x10))[_0x267b64(0x1af)](async _0x127e9c=>{var _0x2b92fe=_0x267b64;const _0x3be7b8=_0x127e9c[_0x2b92fe(0x13f)](),_0x54f844=await this['_startCollaboration'](_0x3be7b8,Q[_0x2b92fe(0x39e)]);this['_entities'][_0x2b92fe(0x2da)](_0x3be7b8,_0x54f844);}),this[_0x267b64(0x305)][_0x267b64(0x250)](_0x4d2a26['UNIVER_DOC'])['pipe'](_0xb4b3a(this[_0x267b64(0x1ce)]),_0x284d72(0x10))[_0x267b64(0x330)](_0x55f065(_0x5723c0=>!_0x5723c0[_0x267b64(0x13f)]()[_0x267b64(0x2c8)]('__')))[_0x267b64(0x1af)](async _0x3660cf=>{var _0x30dca5=_0x267b64;const _0x3a0cee=_0x3660cf[_0x30dca5(0x13f)](),_0x335107=await this[_0x30dca5(0x10d)](_0x3a0cee,Q['UNIVER_DOC']);this['_entities'][_0x30dca5(0x2da)](_0x3a0cee,_0x335107);}),_0x583ffc(this[_0x267b64(0x305)][_0x267b64(0x10b)](_0x4d2a26[_0x267b64(0x39e)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x4d2a26['UNIVER_DOC']))[_0x267b64(0x330)](_0xb4b3a(this[_0x267b64(0x1ce)]))[_0x267b64(0x1af)](_0x53964a=>{var _0x49a4b2=_0x267b64;const _0x1401ff=_0x53964a['getUnitId'](),_0x8dc5b1=this['_entities'][_0x49a4b2(0x27f)](_0x1401ff);_0x8dc5b1&&(_0x8dc5b1['dispose'](),this['_entities']['delete'](_0x1401ff));});}async['_startCollaboration'](_0xdca216,_0x4739c9){var _0x2f97e2=_0x40530a;const _0x1eebc9=await this['_collabSessionService']['requireSession'](_0xdca216),_0x289f12=this[_0x2f97e2(0x3e0)][_0x2f97e2(0xe8)](this['_getCtorByUniverType'](_0x4739c9),_0xdca216,_0x4739c9,_0x1eebc9);return await _0x289f12['init'](),this[_0x2f97e2(0x28f)][_0x2f97e2(0x362)](_0x289f12),_0x289f12;}[_0x40530a(0x275)](_0x25bd75){var _0x56ba83=_0x40530a;switch(_0x25bd75){case Q['UNIVER_DOC']:return Tt;case Q[_0x56ba83(0x39e)]:return Ct;default:throw new Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x25bd75);}}};function _0x5db0(){var _0x32caa0=['_collaborationUIEventService','target','BufferedBlockAlgorithm','objectType','_unlockTransition','initWorkbookPermissionChange','_createHmacHelper','listRoles','parse','_getCtorByUniverType','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','Native\x20crypto\x20module\x20could\x20not\x20be\x20used\x20to\x20get\x20secure\x20random\x20number.','_logService','_changesetSessionId','baseRev','loadDoc','randomBytes','defineProperty','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','get','APPLY_REJECT','&assign=','_onRemoteRejected','indexOf','UNIVER_DOC','eventID','getCurrentUser','_members','OTHER_CLIENT_EDITING','_getUploadFileURL','LEAVE','_http','unitId\x20is\x20not\x20found','onCommandExecuted','joinEvent','_entityInit$','patch','_createHandler','CONNECTOR_DATA_TOO_LARGE','_undoRedoService','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','[SyncedState]:\x20received\x20rejection.','override','waitForRoom$','_instanceService','json','_socketService','sid','save\x20fail\x20reason\x20is\x20','_initDependencies','APPLY_NON_SEQUENTIAL_REVISION','fetching\x20missing\x20changesets\x20from\x20','add','resourceIDs','_append','_transformStack','image/jpg','34629aleSyz','telemetry\x20info\x20is\x20not\x20initialized','_roomMembers','_onRemoteACK','_incrementRevisionNumber','929160sZkbmI','hostname','/universer-api/authz','copyFileMeta','_reverseMap','onTransformRemoteChangesetByIMECache\x20callback\x20is\x20not\x20added\x20yet.','UnitEmbedded','UNKNOWN_CODE','_xformMode','_clearUndo','reset','_collabSessionService','getRandomValues','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','call','_transformUndoredo','_sendingTimer','loadOfflineData','saveChangeset','_onOffline','[OfflineState]:\x20received\x20rejection.','submit\x20changeset\x20error!','not_collab','_socket','PSEUDO_FETCH_MISSING_RESULT','blockSize','_collaborationSessionService','extend','random','_queuedRemoteChangesets','startsWith','createSocket','_localCacheService','setWaitCount','url','_transformService','MD5','complete','YUUMI_URL_COL_OUT_OF_RANGE','revision','_iv','_lockTransition','confirm','executeCommand','_retryCount','SYNCED','debug','liveShareOperation','set','CLOSE_ROOM','_registerDependencies','_toggleOffline','onTransformState','putCollaborators','SHOULD_CLOSE_CONN','/universer-api/file/{fileID}/sign-url','saveSnapshot','resend','roles','algo','_substituteUndoStack','loadSheet','_roomCreated$','has','origin','Hasher','reqId','_initMergeInterceptor','_iKey','apply','onMissingChangesets','\x20to\x20','emitEvent','_awaitingChangeset','format','LIVESHARE_OPERATION','ENSURE_SNAPSHOT_EXECUTION','unitID','sigBytes','updatePermissionPoint','_tryReconnect','CHANGESET_SHOULD_RETRY','_clearRedo','_sendHeartbeat','HELLO','SNAPSHOT_INVALID_SNAPSHOT','name','src','failed\x20to\x20apply\x20missed\x20changesets!','asObservable','_createInitialStateImpl','_univerInstanceService','wsSessionTicketUrl','unitId','_transformSelections','readyForCollab','randomUUID','JOIN_ROOM_PERMISSION_DENIED','bind','from','JOIN_ROOM_FULL','session.join-failed','getActiveSheet','data','_hasher','toggleOnline','c2Prime','onTransformRemoteChangesetByStateCache','_socketMessageSubscription','_keySchedule','/new_changes','Univer','AWAITING','_revisionService','_change$','sin','getUnitType','getSheetId','_mode','headers','_showConflictNotification','SOCKET_FAILED','startTime','AUTHZ_URL_KEY','/universer-api/oidc/authpage','SOCKET_FAILED_RETRY','[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.','/unit/','_timeoutTimer','_onFetchMissResult','_stopTelemetryCollaborationNewChangeset','unitInfo$','[CollaborationSessionService]:\x20socket\x20error','_onRemoteChangeset','pipe','_candidateSocket','symbol','uniscriptRunEvent','_createSocketURL','_members$','finalize','buffer','getOwnPropertyDescriptor','action','_scheduleCompleteTimestamp','_status$','AES','members$','readInt32LE','setCurrentUser','ONLINE','socket\x20open.','updateCursorEvent','onRemoteAck','SerializableCipher','univer-pro.collaboration-client-socket-service','cfg','generateRandomId','online$','_isPermissionRej','getImage','join','Utf8','unpad','findIndex','updateOfflineData','createDecryptor','COMPLETION_FINISHED','_updateLocalCache','_changesetReqId','_submitChangeset','_acknowledgedAwaitingChangeset','PERMISSION_DENIED','_compressMutationService','_throwTelemetryCollaborationNewChangeset','_onRemoteRetry','pending','getResourcesRequest','removeMember','onlyLocal','JOINING','csRejEvent','_invKeySchedule','filter','next','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','localCacheService','socketService','[CollaborationSessionService]','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','decrypt','ERROR_IMAGE','href','put','toLowerCase','_emitMembers','connection\x20error','HttpExport','transformSelections','_waitCount','stringify','Decryptor','EvpKDF','FETCH_MISS','close$','catch','send','onRemoteRej','collaMsg','_onConflict','_authzIoService','length','/universer-api/user/session-ticket','body','infoRsp','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','COMPRESS_MUTATION_APPLY','getDeserializedSheetBlock','prototype','now','clear','LIVESHARE_FETCH_OPERATIONS','MUTATION','_transformStateCache','isArray','isPermissionRej','fetchThroughInterceptors','SUCCUSS','_parse','CHANGESET_ACK','charCodeAt','PERSON','_decreaseWaiting','runId','open$','list','status$','PasswordBasedCipher','RECV','LICENSE_EXPORT_SIZE_EXCEEDED','signUrlServerUrl','compute','enableSingleActiveInstanceLock','6590RwtoGi','UNIVER_SHEET','rev','memberID','search','SUBMIT_CHANGESET','_transitionLocked','actions','joinRsp','processBlock','size','3JsmPqF','init','People','UNIVER_UNKNOWN','execute','_commandService','disposeWithMe','getValue','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','salt','mixIn','BlockCipherMode','clamp','_unitInfo$','BASE64','objects','hasher','_handlerCallback','_schedule','error$','2799PPmfOC','collabWebSocketUrl','YUUMI_SUBSCRIPTION_NOT_FOUND','post','duration','byteOffset','getUnitStatus$','byteLength','encodeURIComponent','encryptBlock','saveImage','UNDEFINED','_hash','words','disableLocalCache','FAIL','textRanges','collaboratorID','downloadEndpointUrl','UUID','_executeRemoteChangeset','PY_RUNTIME_SCRIPT_ERROR','_clearScheduledTask','_fetchMissChangesets','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','onTransformIME','_sender','CHANGESET_REVISION_CONFILICT','UNRECOGNIZED','OPTIONAL','onTransformRemoteChangesetByIMECache','state','__creator','encode','_sessions','OFFLINE','_injector','APPLY_DUPLICATED','\x20-\x20','APPLY_PERMISSION_DENIED','auth.needGotoLoginAlert','event$','getWorkbookSelections','_data','requireSession','_remoteChangesetQueue','_initUnitPermissionChange','UPDATE_CURSOR','kdf','_doFinalize','onSendChangeset','_startTelemetryCollaborationNewChangeset','commentUpdate$','_clearCollaborationTimeoutTimer','createInstance','forEach','/-/object/-/batch_allowed','interceptor','/block/','_scheduleCollaborationTimeoutTimer','_replaceFileID','HEARTBEAT_INTERVAL','m2Prime','LICENSE_MAX_UNITS_EXCEEDED','awaiting_with_pending','ceil','error','[PendingState]:\x20received\x20rejection.','[FetchMissState]','_getRedoStack','_configService','CONFLICT','authzUrl','find','LOCAL_CACHE_INTERVAL','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','exports','_handler','SNAPSHOT_HAS_BEEN_REMOVED','getCollabEntity','entries','SHA1','_config','5464SFsexD','synced','compose','__Key__','ticket','UNIVER_PROJECT','getTypeOfUnitDisposed$','charAt','_startCollaboration','_updateState','keySize','_socket$','_permissionService','socket\x20close','GLOBAL_ROOMS_CNT_EXCEEDS','getTime','reconnect','_rescheduleHeartbeat','_retryConnectingTimer','HttpImport','_onJoinRoomEvent','allowed','SNAPSHOT_URL_KEY','retryConnectingInterval','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_sheetTransformSelectionsService','transformStack\x20failed!','onTransformSelections','UNAUTHENTICATED','onRemoteRetry','Pkcs7','values','UNIVER_COLLABORATION_CLIENT_PLUGIN','117673tdQUfo','refreshPermission','_commentUpdate$','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','reject','Random\x20bytes\x20length\x20must\x20be\x20>=\x2016','[OfflineState]:\x20received\x20acknowledgement.','Encryptor','\x22.\x20Please\x20configure\x20the\x20dynamicRequireTargets\x20or/and\x20ignoreDynamicRequires\x20option\x20of\x20@rollup/plugin-commonjs\x20appropriately\x20for\x20this\x20require\x20call\x20to\x20work.','LIVESHARE_TERMINATE','ciphertext','params','_onUserJoin','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','transformChangesets','_getAPIPrefix','_initCloseConn','deepClone','NoPadding','focused$','OpenSSL','getFocusedUnit','getSheetBlock','_clearLocalCache','objectID','getUnitId','reverse','registerHTTPInterceptor','_redoStacks','sessionStatus$','_syncEditingCollabCursor','getLatestCsReqIdBySid','IDLE','_createSocket','_waitForHeartbeatResponse','12MfpPVQ','/-/object/list','requestParams','FETCH_MISSING','selections','range','_initRequestHeader','collaboration-client.local-cache-service','loadUnit','_sessionStatus$','_localeService','_minBufferSize','_process','?size=','LIVESHARE_REQUEST_HOST','/universer-api/snapshot/','appendMutation','key','Base64','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','OTHER_CLIENTS_EDITING','USERS_LEAVE','cmd','_getLoginPath','SUBMIT_CHANGESET_TIMEOUT','listCollaborators','_onUserLeave','sessionTicket','HMAC','crypto','_createHelper','transformUndoRedo','every','string','batchAllowed','clone','Undefined','splice','YUUMI_UNABLE_LOAD_URL','_collaborationTimeoutTimer','pauseCollaboration','/allowed','PERMISSION_REJ','_HTTPService','unknown','/role','_listenToNetworkCondition','_keyPriorReset','/universer-api/comb','getInterceptPoints','JOIN','LICENSE_IMPORT_SIZE_EXCEEDED','closeSession','__esModule','_onConnectionOpen','c1Prime','_clearTimeoutTimer','ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=','_disableEditing','collaborators','stopTime','slice','concat','_doReset','session.room-cnt-exceeds','SEND_CHANGESET_TIMEOUT','lib','hasOwnProperty','_getSendChangesetTimeout','equals','changesets','YUUMI_RATE_OVER_LIMIT','_singleActiveUnitService','msCrypto','USERS_ENTER','_event$','INTERNAL_ERROR','_doCryptBlock','6xwGMox','resolve','_userManagerService','leaveEvent','_oKey','dispose','_getAPIPrefixPath','_createInitialState','_getUndoStack','getCurrentSelections','sheets','_memberService','_getDownloadEndpointURL','$super','uploadFileServerUrl','loginUrlKey','collaboration-client.config','_getCurrentRevision','createEncryptor','[CollaborationEntity]','StreamCipher','_telemetryInfo','WordArray','UPDATE_PERMISSION_OBJ','subscribe','enc','_onCombEvent','_exhaustRemoteChangesetQueue','COMPRESS_MUTATION_SEND','setShowComponents','mutations','POST','abs','/object/','JOIN_ROOM_NOT_EXISTS','_removeRoom','[PendingState]:\x20received\x20acknowledgement.','encrypt','_key','workbook','_nDataBytes','MSG_FOR_ERROR','state$','&source=','_transformIMECache','_shouldReportTelemetry','formatter','_onConnectionFailed','CHANGESET_REJ','image/gif','location','_getSessionTicket','_networkConditionService','_transformRemoteChangesetByIMECache','floor','dispose$','collaboration_new_changeset','NOT_FOUND','session','_resendWithTimeout','Could\x20not\x20dynamically\x20require\x20\x22','status','getMember','_state$','message$','awaitingChangeset','onload','_onLocalMutation','_snapshotService','file','HmacSHA1','unsubscribe','fetch_missing','_tryEnsureSocket','permissionRejEvent','_toggleOnline','366aNeQEg','incrementRevOfUnit','Cipher','/collaborator','getCurrentRevOfUnit','[CollaborationState]:\x20apply\x20error!','session.room-not-exists','onTransformRemoteChangesetByStateCache\x20callback\x20is\x20not\x20added\x20yet.','_state','function','csAckEvent','UnitSnapshot','ws://127.0.0.1:8000/universer-api/comb/connect','HEARTBEAT','title','searchParams','toString','onSyncEditingCollabCursor','_cipher','_replayCachedMutations','_onMessage','_pendingMutations','_resendTimeout','decryptBlock','code','_sendHeartbeatTimer','_nRounds','repeat','close','LIVESHARE_NEW_HOST','then','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','liveShareNewHost','mode','routeKey','JOIN_ROOM_FAILED','_entities','getRoom','_ENC_XFORM_MODE','push','_map','onMissedChangesetFetched','originalMeta','_telemetryService','map','APPLY_REVISION_CONFILICT','UNISCRIPT_RUN','withCredentials','BlockCipher','updateMember','_type','&to=','getSnapshotAPIPath','Base','image/png','Latin1','\x20in\x20_schedule.','onRemoteChangeset','_unitID','session.room-full','getConfig','updateCollaborator','_init','fetchMiss','awaiting','/universer-api/snapshot','transformMutationsWithChangeset','1683ePHscl','result','[PendingState]:\x20unhandled\x20univer\x20type:\x20','application/json','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','CipherParams','{fileID}','_updateStatus','_collaborationPaused','[CollaborationSession]','socket$','ERROR_EXCEED_SIZE','sessionStatus','fetchMissingChangesets','delete','iterations','avatar','conflict','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','UNIVER_SLIDE','default','PENDING','_prevBlock','_checkMissing','update','SNAPSHOT_SERVER_URL_KEY','pad','fromCollab','padding','getCollabEntity$','_applyRemoteChangeset','_commentService','fromCharCode','type','INGEST','onStarting','COMMENT_UPDATE','onCommentUpdate','[CollaborationUndoRedoService]','_httpService','DEFAULT_FILE_NAME','CBC','getTypeOfUnitAdded$','/universer-api/stream/file/upload','\x0aAfter:\x20','INVALID_ARGUMENT','toggleOffline','_snapshotServerService','_eventService','_loadSheet','onLocalMutation','5802199qSXUDC','subject','newCsEvent','1042604QelvqM','/fetchmissing?from=','_resendTimer','reduce','readAsDataURL','_socketReady','session.room-permission-denied','?url=','create','addHandlerCallback','ivSize','FileId','[DataLoaderService]','members','_imageSourceCache','localeService'];_0x5db0=function(){return _0x32caa0;};return _0x5db0();}rt=Sr([ft(0x0,_0x48db98(_0x19dc6b)),ft(0x1,_0x48db98(Le)),ft(0x2,_0x5609db)],rt);var Er=Object[_0x40530a(0x27d)],Ir=Object['getOwnPropertyDescriptor'],Tr=(_0x2666ce,_0x269ef6,_0x864485,_0x4f03b1)=>{var _0x230e30=_0x40530a;for(var _0x37d8c4=_0x4f03b1>0x1?void 0x0:_0x4f03b1?Ir(_0x269ef6,_0x864485):_0x269ef6,_0x4923d0=_0x2666ce[_0x230e30(0x37d)]-0x1,_0xa5a5d3;_0x4923d0>=0x0;_0x4923d0--)(_0xa5a5d3=_0x2666ce[_0x4923d0])&&(_0x37d8c4=(_0x4f03b1?_0xa5a5d3(_0x269ef6,_0x864485,_0x37d8c4):_0xa5a5d3(_0x37d8c4))||_0x37d8c4);return _0x4f03b1&&_0x37d8c4&&Er(_0x269ef6,_0x864485,_0x37d8c4),_0x37d8c4;},Jt=(_0x403096,_0x1b5289)=>(_0x43e3c1,_0x35c369)=>_0x1b5289(_0x43e3c1,_0x35c369,_0x403096);const Cr=_0x40530a(0x24e),Rr=_0x40530a(0x319);let Rt=class extends _0x551e1f{constructor(_0x304c88,_0x2e4db7){var _0x1bad33=_0x40530a;super(),this[_0x1bad33(0x305)]=_0x304c88,this[_0x1bad33(0xf8)]=_0x2e4db7,this[_0x1bad33(0x221)]();}['_init'](){var _0x4fd427=_0x40530a;this['disposeWithMe'](this[_0x4fd427(0x305)][_0x4fd427(0x139)][_0x4fd427(0x1af)](()=>{var _0xc8b390=_0x4fd427,_0x14df2a;const _0x78cec4=this[_0xc8b390(0x305)][_0xc8b390(0x13b)]();let _0x424a82=(_0x14df2a=this['_configService'][_0xc8b390(0x21f)](Cr))!=null?_0x14df2a:Rr;_0x78cec4 instanceof _0xcd7ee5&&(_0x424a82=_0x78cec4[_0xc8b390(0x300)]),document[_0xc8b390(0x1f1)]=_0x424a82;}));}};Rt=Tr([Jt(0x0,_0x5609db),Jt(0x1,_0x5b62c8)],Rt);var br=Object[_0x40530a(0x27d)],Or=Object['getOwnPropertyDescriptor'],yr=(_0x10b8b9,_0x825aa7,_0x5c993f,_0x4ee948)=>{var _0x20e09d=_0x40530a;for(var _0x9217a6=_0x4ee948>0x1?void 0x0:_0x4ee948?Or(_0x825aa7,_0x5c993f):_0x825aa7,_0x5d2f37=_0x10b8b9[_0x20e09d(0x37d)]-0x1,_0x4f27d3;_0x5d2f37>=0x0;_0x5d2f37--)(_0x4f27d3=_0x10b8b9[_0x5d2f37])&&(_0x9217a6=(_0x4ee948?_0x4f27d3(_0x825aa7,_0x5c993f,_0x9217a6):_0x4f27d3(_0x9217a6))||_0x9217a6);return _0x4ee948&&_0x9217a6&&br(_0x825aa7,_0x5c993f,_0x9217a6),_0x9217a6;},vt=(_0x58d095,_0x4271df)=>(_0x506815,_0xf8a3c7)=>_0x4271df(_0x506815,_0xf8a3c7,_0x58d095);let st=class{constructor(_0x590651,_0x51b307,_0x5e5bec){var _0x4bd619=_0x40530a;this['_configService']=_0x590651,this[_0x4bd619(0x24d)]=_0x51b307,this[_0x4bd619(0x26b)]=_0x5e5bec,this[_0x4bd619(0x3a9)]();}[_0x40530a(0x3a9)](){var _0x257271=_0x40530a;this[_0x257271(0x24d)][_0x257271(0x141)]({'priority':0x1,'interceptor':(_0x1716a8,_0x4d6c35)=>_0x4d6c35(_0x1716a8)[_0x257271(0x330)](_0x61214b(async _0x4f098d=>{var _0x4769c3=_0x257271;const _0x715087=_0x4f098d;if(_0x715087[_0x4769c3(0x1d4)]===0x191){if(typeof window>'u')throw new Error(_0x4769c3(0x367));if(window[_0x4769c3(0x2d4)](this['localeService']['t'](_0x4769c3(0x3e4)))){const _0x3ed3a2=window[_0x4769c3(0x3c4)](window[_0x4769c3(0x1c9)][_0x4769c3(0x36a)]);window[_0x4769c3(0x1c9)]['href']=this[_0x4769c3(0x160)]()+_0x4769c3(0x263)+_0x3ed3a2;}}return _0x715087;}))});}[_0x40530a(0x160)](){var _0x1263ce=_0x40530a,_0x260efc,_0x55ee62;const _0x2591ea=this[_0x1263ce(0xf8)]['getConfig'](xn),_0x3d6173=this[_0x1263ce(0xf8)][_0x1263ce(0x21f)](q);return(_0x55ee62=(_0x260efc=_0x3d6173==null?void 0x0:_0x3d6173[_0x1263ce(0x1a6)])!=null?_0x260efc:_0x2591ea)!=null?_0x55ee62:Ln;}};st=yr([vt(0x0,_0x5b62c8),vt(0x1,_0x48db98(_0x3ce2dc)),vt(0x2,_0x48db98(_0x5529ab))],st);var Nr=Object['defineProperty'],Dr=Object['getOwnPropertyDescriptor'],Pr=(_0x1d47ec,_0x235b51,_0x3436f8,_0x412f2d)=>{var _0x1a93a6=_0x40530a;for(var _0x1fdacd=_0x412f2d>0x1?void 0x0:_0x412f2d?Dr(_0x235b51,_0x3436f8):_0x235b51,_0x21a67f=_0x1d47ec[_0x1a93a6(0x37d)]-0x1,_0x4c4d7e;_0x21a67f>=0x0;_0x21a67f--)(_0x4c4d7e=_0x1d47ec[_0x21a67f])&&(_0x1fdacd=(_0x412f2d?_0x4c4d7e(_0x235b51,_0x3436f8,_0x1fdacd):_0x4c4d7e(_0x1fdacd))||_0x1fdacd);return _0x412f2d&&_0x1fdacd&&Nr(_0x235b51,_0x3436f8,_0x1fdacd),_0x1fdacd;},Xt=(_0x14e352,_0x38d446)=>(_0xe54e76,_0x5cb5a9)=>_0x38d446(_0xe54e76,_0x5cb5a9,_0x14e352);const Pi=_0x40530a(0x325),wr=_0x40530a(0x2ac);let bt=class extends _0x551e1f{constructor(_0x234118,_0xbd81d2){var _0x4dfefd=_0x40530a;super(),this['_HTTPService']=_0x234118,this[_0x4dfefd(0xf8)]=_0xbd81d2,this[_0x4dfefd(0x2ed)]();}['_initMergeInterceptor'](){var _0x11fb39=_0x40530a;const _0x4e0e71=this;this[_0x11fb39(0x3ae)](this[_0x11fb39(0x174)][_0x11fb39(0x141)]({'priority':0x3e7,'interceptor':_0x14191a({'isMatch'(_0x133313){var _0x59f095=_0x11fb39,_0x591cff;if(_0x133313['method']==='POST'&&((_0x591cff=_0x133313[_0x59f095(0x14b)])!=null&&_0x591cff[_0x59f095(0x37f)])){const {objectID:_0x2f21b5,objectType:_0x2cf084}=_0x133313['requestParams'][_0x59f095(0x37f)]||{};if(!_0x2f21b5||_0x2cf084===void 0x0)return!0x1;const _0x20fda6=_0x4e0e71[_0x59f095(0x19d)]()+'/'+_0x2cf084+'/object/'+_0x2f21b5+_0x59f095(0x172);if(_0x133313[_0x59f095(0x2cc)]===_0x20fda6)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x3ee499){var _0x3782c7=_0x11fb39,_0x4c1711;return(_0x4c1711=_0x3ee499[_0x3782c7(0x14b)])==null?void 0x0:_0x4c1711[_0x3782c7(0x37f)];},'mergeParamsToRequest'(_0x387cde,_0x470e13){var _0x20a3d0=_0x11fb39;const _0x3001c3=_0x4e0e71[_0x20a3d0(0x19d)]()+_0x20a3d0(0xea),_0x2284df=_0x387cde[_0x20a3d0(0x25f)]((_0x2fa100,_0x5e4a56)=>{var _0x1e7eb2=_0x20a3d0;const {unitID:_0x3c2cd1,objectID:_0x4dc39b,objectType:_0xc6d56f,actions:_0x313c1f}=_0x5e4a56;return _0x2fa100[_0x3c2cd1]||(_0x2fa100[_0x3c2cd1]={}),_0x2fa100[_0x3c2cd1][_0x4dc39b]||(_0x2fa100[_0x3c2cd1][_0x4dc39b]={'objectID':_0x4dc39b,'objectType':_0xc6d56f,'actions':[]}),_0x2fa100[_0x3c2cd1][_0x4dc39b][_0x1e7eb2(0x3a4)][_0x1e7eb2(0x20a)](..._0x313c1f),_0x2fa100;},{}),_0x1c29a7=[];for(const _0x803b3f in _0x2284df)for(const _0x1d311c in _0x2284df[_0x803b3f]){const {actions:_0x7fa0a7,objectType:_0x42cdc5}=_0x2284df[_0x803b3f][_0x1d311c],_0x2f6c49=[...new Set(_0x7fa0a7)];_0x1c29a7[_0x20a3d0(0x20a)]({'unitID':_0x803b3f,'objectID':_0x1d311c,'objectType':_0x42cdc5,'actions':_0x2f6c49});}return new _0x47a0f4(_0x20a3d0(0x1b6),_0x3001c3,{'headers':_0x470e13[_0x20a3d0(0x321)],'withCredentials':_0x470e13[_0x20a3d0(0x212)],'responseType':_0x470e13['responseType'],'body':{'requests':_0x1c29a7}});}},{'distributeResult'(_0x58cdbf,_0x4f374e){var _0x5459fb=_0x11fb39;const {objectActions:_0xd3bf14}=_0x58cdbf;return _0x4f374e[_0x5459fb(0x20f)](_0x43922f=>{var _0x2c469c=_0x5459fb;const {unitID:_0x29f02d,objectID:_0x1da4be,actions:_0x46f8d7}=_0x43922f,_0x352f93=_0xd3bf14[_0x2c469c(0xfb)](_0xe2ee83=>_0xe2ee83[_0x2c469c(0x2f7)]===_0x29f02d&&_0xe2ee83[_0x2c469c(0x13e)]===_0x1da4be),_0x13b8fc=_0x46f8d7['map'](_0x1d7cf1=>_0x352f93==null?void 0x0:_0x352f93[_0x2c469c(0x3a4)][_0x2c469c(0xfb)](_0x477bbe=>_0x477bbe[_0x2c469c(0x339)]===_0x1d7cf1))[_0x2c469c(0x361)](_0x377da1=>!!_0x377da1);return{'config':_0x43922f,'result':{'actions':_0x13b8fc,'error':_0x58cdbf[_0x2c469c(0xf4)]}};});}})}));}[_0x40530a(0x19d)](){var _0x5c2f80=_0x40530a,_0x5f26bf,_0xe2a34d;const _0x20fcfc=this['_configService'][_0x5c2f80(0x21f)](Pi),_0x57995e=this[_0x5c2f80(0xf8)][_0x5c2f80(0x21f)](q);return(_0xe2a34d=(_0x5f26bf=_0x57995e==null?void 0x0:_0x57995e[_0x5c2f80(0xfa)])!=null?_0x5f26bf:_0x20fcfc)!=null?_0xe2a34d:wr;}async[_0x40530a(0x264)](_0x3a2f63){var _0x10a6c9=_0x40530a;const _0x1810ad=this[_0x10a6c9(0x19d)]()+'/'+_0x3a2f63['objectType']+'/object';return(await this['_HTTPService'][_0x10a6c9(0x3bf)](_0x1810ad,{'body':_0x3a2f63}))[_0x10a6c9(0x37f)][_0x10a6c9(0x13e)]||'';}async[_0x40530a(0x395)](_0x4fb58c){var _0x4d3928=_0x40530a;const _0x25fe95=this[_0x4d3928(0x19d)]()+_0x4d3928(0x14a);return(await this[_0x4d3928(0x174)]['post'](_0x25fe95,{'body':_0x4fb58c}))[_0x4d3928(0x37f)][_0x4d3928(0x3b7)];}async[_0x40530a(0x23e)](_0x28bd8e){var _0x1d1012=_0x40530a;const _0x18ee77=this[_0x1d1012(0x19d)]()+'/'+_0x28bd8e[_0x1d1012(0x26f)]+_0x1d1012(0x1b8)+_0x28bd8e[_0x1d1012(0x13e)];await this[_0x1d1012(0x174)]['put'](_0x18ee77,{'body':_0x28bd8e});}async[_0x40530a(0x11a)](_0x504bf5){var _0xadf507=_0x40530a;const _0x56cbc4=this[_0xadf507(0x19d)]()+'/'+_0x504bf5[_0xadf507(0x26f)]+'/object/'+_0x504bf5[_0xadf507(0x13e)]+_0xadf507(0x172);return(await this[_0xadf507(0x174)][_0xadf507(0x3bf)](_0x56cbc4,{'body':_0x504bf5}))['body'][_0xadf507(0x3a4)];}async[_0x40530a(0x16b)](_0x41ab77){var _0x245584=_0x40530a;const _0x29138d=this[_0x245584(0x19d)]()+_0x245584(0xea);return(await this[_0x245584(0x174)][_0x245584(0x3bf)](_0x29138d,{'body':{'requests':_0x41ab77}}))[_0x245584(0x37f)]['objectActions'];}async[_0x40530a(0x273)](_0x571349){var _0x559fde=_0x40530a;const _0x50bc2a=this['_getAPIPrefixPath']()+'/'+_0x571349[_0x559fde(0x26f)]+_0x559fde(0x176),_0x2f9332=await this[_0x559fde(0x174)][_0x559fde(0x3bf)](_0x50bc2a,{'body':_0x571349});return{'roles':_0x2f9332[_0x559fde(0x37f)][_0x559fde(0x2e4)],'actions':_0x2f9332['body'][_0x559fde(0x3a4)]};}async['deleteCollaborator'](_0x4027a8){var _0x1775f5=_0x40530a;const _0x43a961=this['_getAPIPrefixPath']()+_0x1775f5(0x1e6);await this[_0x1775f5(0x174)]['delete'](_0x43a961,{'params':{'collaboratorID':_0x4027a8[_0x1775f5(0x3cd)],'objectID':_0x4027a8[_0x1775f5(0x13e)],'unitID':_0x4027a8['unitID']}});}async[_0x40530a(0x220)](_0x55864f){var _0x34b091=_0x40530a;const _0x338e0a=this[_0x34b091(0x19d)]()+_0x34b091(0x1e6);await this[_0x34b091(0x174)][_0x34b091(0x290)](_0x338e0a,{'body':_0x55864f});}async['createCollaborator'](_0x3b4252){var _0x2d0c93=_0x40530a;const _0x218599=this['_getAPIPrefixPath']()+_0x2d0c93(0x1e6);await this['_HTTPService'][_0x2d0c93(0x3bf)](_0x218599,{'body':_0x3b4252});}async[_0x40530a(0x162)](_0x1f7a6d){var _0x2904c9=_0x40530a;const _0x195f5c=this[_0x2904c9(0x19d)]()+_0x2904c9(0x1e6);return(await this[_0x2904c9(0x174)][_0x2904c9(0x27f)](_0x195f5c,{'params':{'objectID':_0x1f7a6d[_0x2904c9(0x13e)],'unitID':_0x1f7a6d['unitID']}}))[_0x2904c9(0x37f)][_0x2904c9(0x184)];}async[_0x40530a(0x2df)](_0x377fca){var _0x1377de=_0x40530a;const _0x503d8f=this[_0x1377de(0x19d)]()+_0x1377de(0x1e6);await this[_0x1377de(0x174)][_0x1377de(0x36b)](_0x503d8f,{'body':_0x377fca});}};bt=Pr([Xt(0x0,_0x48db98(_0x3ce2dc)),Xt(0x1,_0x48db98(_0x5b62c8))],bt);var pt=typeof globalThis<'u'?globalThis:typeof window<'u'?window:typeof global<'u'?global:typeof self<'u'?self:{};function ke(_0x8c9528){var _0x11de97=_0x40530a;return _0x8c9528&&_0x8c9528[_0x11de97(0x17e)]&&Object[_0x11de97(0x384)][_0x11de97(0x18c)][_0x11de97(0x2b8)](_0x8c9528,'default')?_0x8c9528[_0x11de97(0x23a)]:_0x8c9528;}var Ve={'exports':{}};function Ur(_0x522143){var _0x7c2254=_0x40530a;throw new Error(_0x7c2254(0x1d3)+_0x522143+_0x7c2254(0x12e));}var Ge={'exports':{}},Ar=Ge[_0x40530a(0xfe)],Zt;function ne(){var _0x699664=_0x40530a;return Zt||(Zt=0x1,function(_0x14b0ea,_0x33bcca){(function(_0xf3c25c,_0x55d275){var _0x4e982d=_0x192f;_0x14b0ea[_0x4e982d(0xfe)]=_0x55d275();}(Ar,function(){var _0x49c81c=_0x49c81c||function(_0x5cc7f1,_0x403e2){var _0x2c0094=_0x192f,_0x35d67c;if(typeof window<'u'&&window[_0x2c0094(0x166)]&&(_0x35d67c=window[_0x2c0094(0x166)]),typeof self<'u'&&self[_0x2c0094(0x166)]&&(_0x35d67c=self['crypto']),typeof globalThis<'u'&&globalThis[_0x2c0094(0x166)]&&(_0x35d67c=globalThis['crypto']),!_0x35d67c&&typeof window<'u'&&window[_0x2c0094(0x192)]&&(_0x35d67c=window[_0x2c0094(0x192)]),!_0x35d67c&&typeof pt<'u'&&pt[_0x2c0094(0x166)]&&(_0x35d67c=pt[_0x2c0094(0x166)]),!_0x35d67c&&typeof Ur=='function')try{_0x35d67c=require(_0x2c0094(0x166));}catch{}var _0x1f060a=function(){var _0x554c02=_0x2c0094;if(_0x35d67c){if(typeof _0x35d67c[_0x554c02(0x2b6)]==_0x554c02(0x1ec))try{return _0x35d67c[_0x554c02(0x2b6)](new Uint32Array(0x1))[0x0];}catch{}if(typeof _0x35d67c[_0x554c02(0x27c)]=='function')try{return _0x35d67c[_0x554c02(0x27c)](0x4)[_0x554c02(0x33e)]();}catch{}}throw new Error(_0x554c02(0x277));},_0x2fde95=Object[_0x2c0094(0x264)]||(function(){function _0x44c220(){}return function(_0x59267c){var _0x29f34c=_0x192f,_0x279fec;return _0x44c220[_0x29f34c(0x384)]=_0x59267c,_0x279fec=new _0x44c220(),_0x44c220[_0x29f34c(0x384)]=null,_0x279fec;};}()),_0x3f4a39={},_0x46c022=_0x3f4a39[_0x2c0094(0x18b)]={},_0x57a3d5=_0x46c022[_0x2c0094(0x218)]=(function(){return{'extend':function(_0x2cfcd9){var _0x423d31=_0x192f,_0x1994bb=_0x2fde95(this);return _0x2cfcd9&&_0x1994bb[_0x423d31(0x3b2)](_0x2cfcd9),(!_0x1994bb[_0x423d31(0x18c)]('init')||this['init']===_0x1994bb[_0x423d31(0x3a9)])&&(_0x1994bb[_0x423d31(0x3a9)]=function(){var _0x224aae=_0x423d31;_0x1994bb[_0x224aae(0x1a4)][_0x224aae(0x3a9)]['apply'](this,arguments);}),_0x1994bb[_0x423d31(0x3a9)][_0x423d31(0x384)]=_0x1994bb,_0x1994bb[_0x423d31(0x1a4)]=this,_0x1994bb;},'create':function(){var _0x5c5e8a=_0x192f,_0x22e719=this['extend']();return _0x22e719[_0x5c5e8a(0x3a9)][_0x5c5e8a(0x2ef)](_0x22e719,arguments),_0x22e719;},'init':function(){},'mixIn':function(_0x421f8e){var _0x46d128=_0x192f;for(var _0x14ddb7 in _0x421f8e)_0x421f8e[_0x46d128(0x18c)](_0x14ddb7)&&(this[_0x14ddb7]=_0x421f8e[_0x14ddb7]);_0x421f8e['hasOwnProperty'](_0x46d128(0x1f3))&&(this[_0x46d128(0x1f3)]=_0x421f8e[_0x46d128(0x1f3)]);},'clone':function(){var _0x38fbc3=_0x192f;return this['init'][_0x38fbc3(0x384)][_0x38fbc3(0x2c5)](this);}};}()),_0x444739=_0x46c022[_0x2c0094(0x1ad)]=_0x57a3d5[_0x2c0094(0x2c5)]({'init':function(_0x4a31ac,_0x23662b){var _0x480e75=_0x2c0094;_0x4a31ac=this[_0x480e75(0x3c9)]=_0x4a31ac||[],_0x23662b!=_0x403e2?this[_0x480e75(0x2f8)]=_0x23662b:this[_0x480e75(0x2f8)]=_0x4a31ac[_0x480e75(0x37d)]*0x4;},'toString':function(_0x26da67){return(_0x26da67||_0x100728)['stringify'](this);},'concat':function(_0x1bc525){var _0x5f2d2c=_0x2c0094,_0x30f4a8=this[_0x5f2d2c(0x3c9)],_0x30846b=_0x1bc525['words'],_0x5b1d2c=this[_0x5f2d2c(0x2f8)],_0x27eb7e=_0x1bc525['sigBytes'];if(this['clamp'](),_0x5b1d2c%0x4)for(var _0x7b8a65=0x0;_0x7b8a65<_0x27eb7e;_0x7b8a65++){var _0x3c18ae=_0x30846b[_0x7b8a65>>>0x2]>>>0x18-_0x7b8a65%0x4*0x8&0xff;_0x30f4a8[_0x5b1d2c+_0x7b8a65>>>0x2]|=_0x3c18ae<<0x18-(_0x5b1d2c+_0x7b8a65)%0x4*0x8;}else{for(var _0x58e394=0x0;_0x58e394<_0x27eb7e;_0x58e394+=0x4)_0x30f4a8[_0x5b1d2c+_0x58e394>>>0x2]=_0x30846b[_0x58e394>>>0x2];}return this[_0x5f2d2c(0x2f8)]+=_0x27eb7e,this;},'clamp':function(){var _0x3ea39e=_0x2c0094,_0x57e422=this['words'],_0x34473f=this[_0x3ea39e(0x2f8)];_0x57e422[_0x34473f>>>0x2]&=0xffffffff<<0x20-_0x34473f%0x4*0x8,_0x57e422[_0x3ea39e(0x37d)]=_0x5cc7f1[_0x3ea39e(0xf3)](_0x34473f/0x4);},'clone':function(){var _0x4015b7=_0x2c0094,_0x36e6f9=_0x57a3d5['clone'][_0x4015b7(0x2b8)](this);return _0x36e6f9['words']=this[_0x4015b7(0x3c9)][_0x4015b7(0x186)](0x0),_0x36e6f9;},'random':function(_0x3df148){for(var _0x4c44ee=[],_0x240e9d=0x0;_0x240e9d<_0x3df148;_0x240e9d+=0x4)_0x4c44ee['push'](_0x1f060a());return new _0x444739['init'](_0x4c44ee,_0x3df148);}}),_0x5a3d38=_0x3f4a39[_0x2c0094(0x1b0)]={},_0x100728=_0x5a3d38['Hex']={'stringify':function(_0x1b7aa9){var _0xd30ec1=_0x2c0094;for(var _0x559711=_0x1b7aa9[_0xd30ec1(0x3c9)],_0x42e4a1=_0x1b7aa9[_0xd30ec1(0x2f8)],_0x4933cc=[],_0x5d9823=0x0;_0x5d9823<_0x42e4a1;_0x5d9823++){var _0x309929=_0x559711[_0x5d9823>>>0x2]>>>0x18-_0x5d9823%0x4*0x8&0xff;_0x4933cc[_0xd30ec1(0x20a)]((_0x309929>>>0x4)['toString'](0x10)),_0x4933cc[_0xd30ec1(0x20a)]((_0x309929&0xf)[_0xd30ec1(0x1f3)](0x10));}return _0x4933cc['join']('');},'parse':function(_0x3def8d){var _0x499674=_0x2c0094;for(var _0x13e9f1=_0x3def8d['length'],_0x452d01=[],_0x1ede45=0x0;_0x1ede45<_0x13e9f1;_0x1ede45+=0x2)_0x452d01[_0x1ede45>>>0x3]|=parseInt(_0x3def8d['substr'](_0x1ede45,0x2),0x10)<<0x18-_0x1ede45%0x8*0x4;return new _0x444739[(_0x499674(0x3a9))](_0x452d01,_0x13e9f1/0x2);}},_0x3640fe=_0x5a3d38[_0x2c0094(0x21a)]={'stringify':function(_0x256488){var _0x10d3bc=_0x2c0094;for(var _0x2f3fc1=_0x256488[_0x10d3bc(0x3c9)],_0x1b20f5=_0x256488[_0x10d3bc(0x2f8)],_0x101809=[],_0x5b50c9=0x0;_0x5b50c9<_0x1b20f5;_0x5b50c9++){var _0x2a8457=_0x2f3fc1[_0x5b50c9>>>0x2]>>>0x18-_0x5b50c9%0x4*0x8&0xff;_0x101809[_0x10d3bc(0x20a)](String[_0x10d3bc(0x246)](_0x2a8457));}return _0x101809['join']('');},'parse':function(_0xc858b6){for(var _0x280fef=_0xc858b6['length'],_0xf636c=[],_0x39dd8a=0x0;_0x39dd8a<_0x280fef;_0x39dd8a++)_0xf636c[_0x39dd8a>>>0x2]|=(_0xc858b6['charCodeAt'](_0x39dd8a)&0xff)<<0x18-_0x39dd8a%0x4*0x8;return new _0x444739['init'](_0xf636c,_0x280fef);}},_0x44af34=_0x5a3d38[_0x2c0094(0x34c)]={'stringify':function(_0x3bc73c){var _0x202418=_0x2c0094;try{return decodeURIComponent(escape(_0x3640fe[_0x202418(0x372)](_0x3bc73c)));}catch{throw new Error('Malformed\x20UTF-8\x20data');}},'parse':function(_0x4155d6){var _0x2bfe1d=_0x2c0094;return _0x3640fe[_0x2bfe1d(0x274)](unescape(encodeURIComponent(_0x4155d6)));}},_0xe0efec=_0x46c022[_0x2c0094(0x26e)]=_0x57a3d5[_0x2c0094(0x2c5)]({'reset':function(){var _0x27457a=_0x2c0094;this[_0x27457a(0x3e7)]=new _0x444739['init'](),this[_0x27457a(0x1bf)]=0x0;},'_append':function(_0x557abe){var _0x3bdcbd=_0x2c0094;typeof _0x557abe==_0x3bdcbd(0x16a)&&(_0x557abe=_0x44af34[_0x3bdcbd(0x274)](_0x557abe)),this[_0x3bdcbd(0x3e7)][_0x3bdcbd(0x187)](_0x557abe),this[_0x3bdcbd(0x1bf)]+=_0x557abe[_0x3bdcbd(0x2f8)];},'_process':function(_0x853f47){var _0x4a588e=_0x2c0094,_0x5c42d4,_0x46c788=this['_data'],_0x475c9f=_0x46c788[_0x4a588e(0x3c9)],_0x2d0b91=_0x46c788[_0x4a588e(0x2f8)],_0x294500=this['blockSize'],_0x30fd3a=_0x294500*0x4,_0x3af542=_0x2d0b91/_0x30fd3a;_0x853f47?_0x3af542=_0x5cc7f1['ceil'](_0x3af542):_0x3af542=_0x5cc7f1['max']((_0x3af542|0x0)-this[_0x4a588e(0x154)],0x0);var _0x44eae3=_0x3af542*_0x294500,_0x5684c3=_0x5cc7f1['min'](_0x44eae3*0x4,_0x2d0b91);if(_0x44eae3){for(var _0x5b8892=0x0;_0x5b8892<_0x44eae3;_0x5b8892+=_0x294500)this['_doProcessBlock'](_0x475c9f,_0x5b8892);_0x5c42d4=_0x475c9f[_0x4a588e(0x16e)](0x0,_0x44eae3),_0x46c788[_0x4a588e(0x2f8)]-=_0x5684c3;}return new _0x444739[(_0x4a588e(0x3a9))](_0x5c42d4,_0x5684c3);},'clone':function(){var _0x38aca8=_0x2c0094,_0x6398c7=_0x57a3d5[_0x38aca8(0x16c)][_0x38aca8(0x2b8)](this);return _0x6398c7[_0x38aca8(0x3e7)]=this[_0x38aca8(0x3e7)]['clone'](),_0x6398c7;},'_minBufferSize':0x0});_0x46c022[_0x2c0094(0x2eb)]=_0xe0efec[_0x2c0094(0x2c5)]({'cfg':_0x57a3d5[_0x2c0094(0x2c5)](),'init':function(_0x3ec291){var _0x126b38=_0x2c0094;this[_0x126b38(0x346)]=this[_0x126b38(0x346)][_0x126b38(0x2c5)](_0x3ec291),this[_0x126b38(0x2b4)]();},'reset':function(){var _0x4f3103=_0x2c0094;_0xe0efec[_0x4f3103(0x2b4)][_0x4f3103(0x2b8)](this),this[_0x4f3103(0x188)]();},'update':function(_0x3d131c){var _0x2caa86=_0x2c0094;return this[_0x2caa86(0x2a2)](_0x3d131c),this[_0x2caa86(0x155)](),this;},'finalize':function(_0x104ae5){var _0x4db6ee=_0x2c0094;_0x104ae5&&this[_0x4db6ee(0x2a2)](_0x104ae5);var _0x36b9f4=this[_0x4db6ee(0xe3)]();return _0x36b9f4;},'blockSize':0x10,'_createHelper':function(_0xebbecf){return function(_0x34654f,_0x23fb06){var _0x21c743=_0x192f;return new _0xebbecf[(_0x21c743(0x3a9))](_0x23fb06)[_0x21c743(0x336)](_0x34654f);};},'_createHmacHelper':function(_0x850ed2){return function(_0xccc1c8,_0x15376c){var _0x5a5a40=_0x192f;return new _0x3f3964['HMAC']['init'](_0x850ed2,_0x15376c)[_0x5a5a40(0x336)](_0xccc1c8);};}});var _0x3f3964=_0x3f4a39[_0x2c0094(0x2e5)]={};return _0x3f4a39;}(Math);return _0x49c81c;}));}(Ge)),Ge[_0x699664(0xfe)];}var We={'exports':{}},xr=We['exports'],Qt;function wi(){var _0x2a44d3=_0x40530a;return Qt||(Qt=0x1,function(_0x189ce0,_0x2d7ece){(function(_0x348eb3,_0x1f1729){var _0x464b1f=_0x192f;_0x189ce0[_0x464b1f(0xfe)]=_0x1f1729(ne());}(xr,function(_0x2e6f94){return(function(){var _0x16400e=_0x192f,_0x1c12e4=_0x2e6f94,_0x3eec43=_0x1c12e4[_0x16400e(0x18b)],_0x1cf51f=_0x3eec43[_0x16400e(0x1ad)],_0x172bff=_0x1c12e4[_0x16400e(0x1b0)];_0x172bff['Base64']={'stringify':function(_0x2fe8de){var _0x5af478=_0x16400e,_0x2d2e77=_0x2fe8de[_0x5af478(0x3c9)],_0x29d109=_0x2fe8de['sigBytes'],_0x198333=this[_0x5af478(0x20b)];_0x2fe8de[_0x5af478(0x3b4)]();for(var _0x33d07f=[],_0x2cfe6c=0x0;_0x2cfe6c<_0x29d109;_0x2cfe6c+=0x3)for(var _0x3db3cd=_0x2d2e77[_0x2cfe6c>>>0x2]>>>0x18-_0x2cfe6c%0x4*0x8&0xff,_0x2b0229=_0x2d2e77[_0x2cfe6c+0x1>>>0x2]>>>0x18-(_0x2cfe6c+0x1)%0x4*0x8&0xff,_0x4672d4=_0x2d2e77[_0x2cfe6c+0x2>>>0x2]>>>0x18-(_0x2cfe6c+0x2)%0x4*0x8&0xff,_0xd0cf8d=_0x3db3cd<<0x10|_0x2b0229<<0x8|_0x4672d4,_0x5e1f4e=0x0;_0x5e1f4e<0x4&&_0x2cfe6c+_0x5e1f4e*0.75<_0x29d109;_0x5e1f4e++)_0x33d07f[_0x5af478(0x20a)](_0x198333['charAt'](_0xd0cf8d>>>0x6*(0x3-_0x5e1f4e)&0x3f));var _0xa96e8d=_0x198333[_0x5af478(0x10c)](0x40);if(_0xa96e8d){for(;_0x33d07f[_0x5af478(0x37d)]%0x4;)_0x33d07f[_0x5af478(0x20a)](_0xa96e8d);}return _0x33d07f[_0x5af478(0x34b)]('');},'parse':function(_0x1e35a3){var _0x59a0e8=_0x16400e,_0x356b94=_0x1e35a3[_0x59a0e8(0x37d)],_0x4f0655=this['_map'],_0x2d086a=this['_reverseMap'];if(!_0x2d086a){_0x2d086a=this[_0x59a0e8(0x2ae)]=[];for(var _0x502c6b=0x0;_0x502c6b<_0x4f0655[_0x59a0e8(0x37d)];_0x502c6b++)_0x2d086a[_0x4f0655[_0x59a0e8(0x390)](_0x502c6b)]=_0x502c6b;}var _0x38da69=_0x4f0655[_0x59a0e8(0x10c)](0x40);if(_0x38da69){var _0xa48c4=_0x1e35a3[_0x59a0e8(0x283)](_0x38da69);_0xa48c4!==-0x1&&(_0x356b94=_0xa48c4);}return _0x355624(_0x1e35a3,_0x356b94,_0x2d086a);},'_map':_0x16400e(0x182)};function _0x355624(_0x283dc4,_0x2dff30,_0x19676f){var _0x38d818=_0x16400e;for(var _0x3e1be8=[],_0x1ce751=0x0,_0x3d01e3=0x0;_0x3d01e3<_0x2dff30;_0x3d01e3++)if(_0x3d01e3%0x4){var _0x26293c=_0x19676f[_0x283dc4[_0x38d818(0x390)](_0x3d01e3-0x1)]<<_0x3d01e3%0x4*0x2,_0x5636b7=_0x19676f[_0x283dc4[_0x38d818(0x390)](_0x3d01e3)]>>>0x6-_0x3d01e3%0x4*0x2,_0x1d866c=_0x26293c|_0x5636b7;_0x3e1be8[_0x1ce751>>>0x2]|=_0x1d866c<<0x18-_0x1ce751%0x4*0x8,_0x1ce751++;}return _0x1cf51f[_0x38d818(0x264)](_0x3e1be8,_0x1ce751);}}()),_0x2e6f94['enc']['Base64'];}));}(We)),We[_0x2a44d3(0xfe)];}var Ke={'exports':{}},Lr=Ke[_0x40530a(0xfe)],ei;function Mr(){return ei||(ei=0x1,function(_0x808641,_0x3e2c03){(function(_0x5a9e46,_0x1c7e67){_0x808641['exports']=_0x1c7e67(ne());}(Lr,function(_0x5c0787){var _0x49da4b=_0x192f;return function(_0x28dc3a){var _0x2b5cd2=_0x192f,_0x577ff8=_0x5c0787,_0x362b07=_0x577ff8[_0x2b5cd2(0x18b)],_0x399b64=_0x362b07['WordArray'],_0x40b6c8=_0x362b07[_0x2b5cd2(0x2eb)],_0x359fcb=_0x577ff8['algo'],_0x5cd078=[];(function(){var _0x4bd37b=_0x2b5cd2;for(var _0x3a3a02=0x0;_0x3a3a02<0x40;_0x3a3a02++)_0x5cd078[_0x3a3a02]=_0x28dc3a[_0x4bd37b(0x1b7)](_0x28dc3a[_0x4bd37b(0x31d)](_0x3a3a02+0x1))*0x100000000|0x0;}());var _0x564b37=_0x359fcb[_0x2b5cd2(0x2ce)]=_0x40b6c8[_0x2b5cd2(0x2c5)]({'_doReset':function(){var _0x461162=_0x2b5cd2;this[_0x461162(0x3c8)]=new _0x399b64['init']([0x67452301,0xefcdab89,0x98badcfe,0x10325476]);},'_doProcessBlock':function(_0x1f171c,_0x1a3286){var _0x10e02b=_0x2b5cd2;for(var _0x43e7e0=0x0;_0x43e7e0<0x10;_0x43e7e0++){var _0x161bf5=_0x1a3286+_0x43e7e0,_0x56fdfb=_0x1f171c[_0x161bf5];_0x1f171c[_0x161bf5]=(_0x56fdfb<<0x8|_0x56fdfb>>>0x18)&0xff00ff|(_0x56fdfb<<0x18|_0x56fdfb>>>0x8)&0xff00ff00;}var _0xe2d150=this[_0x10e02b(0x3c8)][_0x10e02b(0x3c9)],_0x4a53e3=_0x1f171c[_0x1a3286+0x0],_0x53a8c5=_0x1f171c[_0x1a3286+0x1],_0x2d4aee=_0x1f171c[_0x1a3286+0x2],_0x55aba3=_0x1f171c[_0x1a3286+0x3],_0x5562f6=_0x1f171c[_0x1a3286+0x4],_0x1b4291=_0x1f171c[_0x1a3286+0x5],_0x37ce98=_0x1f171c[_0x1a3286+0x6],_0xac562d=_0x1f171c[_0x1a3286+0x7],_0x547516=_0x1f171c[_0x1a3286+0x8],_0x5cc950=_0x1f171c[_0x1a3286+0x9],_0x326877=_0x1f171c[_0x1a3286+0xa],_0xf30cbf=_0x1f171c[_0x1a3286+0xb],_0x569a13=_0x1f171c[_0x1a3286+0xc],_0x596045=_0x1f171c[_0x1a3286+0xd],_0xb0c558=_0x1f171c[_0x1a3286+0xe],_0x1302a0=_0x1f171c[_0x1a3286+0xf],_0x5b5a38=_0xe2d150[0x0],_0x2518c9=_0xe2d150[0x1],_0x3418ed=_0xe2d150[0x2],_0x40d99c=_0xe2d150[0x3];_0x5b5a38=_0x301807(_0x5b5a38,_0x2518c9,_0x3418ed,_0x40d99c,_0x4a53e3,0x7,_0x5cd078[0x0]),_0x40d99c=_0x301807(_0x40d99c,_0x5b5a38,_0x2518c9,_0x3418ed,_0x53a8c5,0xc,_0x5cd078[0x1]),_0x3418ed=_0x301807(_0x3418ed,_0x40d99c,_0x5b5a38,_0x2518c9,_0x2d4aee,0x11,_0x5cd078[0x2]),_0x2518c9=_0x301807(_0x2518c9,_0x3418ed,_0x40d99c,_0x5b5a38,_0x55aba3,0x16,_0x5cd078[0x3]),_0x5b5a38=_0x301807(_0x5b5a38,_0x2518c9,_0x3418ed,_0x40d99c,_0x5562f6,0x7,_0x5cd078[0x4]),_0x40d99c=_0x301807(_0x40d99c,_0x5b5a38,_0x2518c9,_0x3418ed,_0x1b4291,0xc,_0x5cd078[0x5]),_0x3418ed=_0x301807(_0x3418ed,_0x40d99c,_0x5b5a38,_0x2518c9,_0x37ce98,0x11,_0x5cd078[0x6]),_0x2518c9=_0x301807(_0x2518c9,_0x3418ed,_0x40d99c,_0x5b5a38,_0xac562d,0x16,_0x5cd078[0x7]),_0x5b5a38=_0x301807(_0x5b5a38,_0x2518c9,_0x3418ed,_0x40d99c,_0x547516,0x7,_0x5cd078[0x8]),_0x40d99c=_0x301807(_0x40d99c,_0x5b5a38,_0x2518c9,_0x3418ed,_0x5cc950,0xc,_0x5cd078[0x9]),_0x3418ed=_0x301807(_0x3418ed,_0x40d99c,_0x5b5a38,_0x2518c9,_0x326877,0x11,_0x5cd078[0xa]),_0x2518c9=_0x301807(_0x2518c9,_0x3418ed,_0x40d99c,_0x5b5a38,_0xf30cbf,0x16,_0x5cd078[0xb]),_0x5b5a38=_0x301807(_0x5b5a38,_0x2518c9,_0x3418ed,_0x40d99c,_0x569a13,0x7,_0x5cd078[0xc]),_0x40d99c=_0x301807(_0x40d99c,_0x5b5a38,_0x2518c9,_0x3418ed,_0x596045,0xc,_0x5cd078[0xd]),_0x3418ed=_0x301807(_0x3418ed,_0x40d99c,_0x5b5a38,_0x2518c9,_0xb0c558,0x11,_0x5cd078[0xe]),_0x2518c9=_0x301807(_0x2518c9,_0x3418ed,_0x40d99c,_0x5b5a38,_0x1302a0,0x16,_0x5cd078[0xf]),_0x5b5a38=_0x5c3d8f(_0x5b5a38,_0x2518c9,_0x3418ed,_0x40d99c,_0x53a8c5,0x5,_0x5cd078[0x10]),_0x40d99c=_0x5c3d8f(_0x40d99c,_0x5b5a38,_0x2518c9,_0x3418ed,_0x37ce98,0x9,_0x5cd078[0x11]),_0x3418ed=_0x5c3d8f(_0x3418ed,_0x40d99c,_0x5b5a38,_0x2518c9,_0xf30cbf,0xe,_0x5cd078[0x12]),_0x2518c9=_0x5c3d8f(_0x2518c9,_0x3418ed,_0x40d99c,_0x5b5a38,_0x4a53e3,0x14,_0x5cd078[0x13]),_0x5b5a38=_0x5c3d8f(_0x5b5a38,_0x2518c9,_0x3418ed,_0x40d99c,_0x1b4291,0x5,_0x5cd078[0x14]),_0x40d99c=_0x5c3d8f(_0x40d99c,_0x5b5a38,_0x2518c9,_0x3418ed,_0x326877,0x9,_0x5cd078[0x15]),_0x3418ed=_0x5c3d8f(_0x3418ed,_0x40d99c,_0x5b5a38,_0x2518c9,_0x1302a0,0xe,_0x5cd078[0x16]),_0x2518c9=_0x5c3d8f(_0x2518c9,_0x3418ed,_0x40d99c,_0x5b5a38,_0x5562f6,0x14,_0x5cd078[0x17]),_0x5b5a38=_0x5c3d8f(_0x5b5a38,_0x2518c9,_0x3418ed,_0x40d99c,_0x5cc950,0x5,_0x5cd078[0x18]),_0x40d99c=_0x5c3d8f(_0x40d99c,_0x5b5a38,_0x2518c9,_0x3418ed,_0xb0c558,0x9,_0x5cd078[0x19]),_0x3418ed=_0x5c3d8f(_0x3418ed,_0x40d99c,_0x5b5a38,_0x2518c9,_0x55aba3,0xe,_0x5cd078[0x1a]),_0x2518c9=_0x5c3d8f(_0x2518c9,_0x3418ed,_0x40d99c,_0x5b5a38,_0x547516,0x14,_0x5cd078[0x1b]),_0x5b5a38=_0x5c3d8f(_0x5b5a38,_0x2518c9,_0x3418ed,_0x40d99c,_0x596045,0x5,_0x5cd078[0x1c]),_0x40d99c=_0x5c3d8f(_0x40d99c,_0x5b5a38,_0x2518c9,_0x3418ed,_0x2d4aee,0x9,_0x5cd078[0x1d]),_0x3418ed=_0x5c3d8f(_0x3418ed,_0x40d99c,_0x5b5a38,_0x2518c9,_0xac562d,0xe,_0x5cd078[0x1e]),_0x2518c9=_0x5c3d8f(_0x2518c9,_0x3418ed,_0x40d99c,_0x5b5a38,_0x569a13,0x14,_0x5cd078[0x1f]),_0x5b5a38=_0x33cdf7(_0x5b5a38,_0x2518c9,_0x3418ed,_0x40d99c,_0x1b4291,0x4,_0x5cd078[0x20]),_0x40d99c=_0x33cdf7(_0x40d99c,_0x5b5a38,_0x2518c9,_0x3418ed,_0x547516,0xb,_0x5cd078[0x21]),_0x3418ed=_0x33cdf7(_0x3418ed,_0x40d99c,_0x5b5a38,_0x2518c9,_0xf30cbf,0x10,_0x5cd078[0x22]),_0x2518c9=_0x33cdf7(_0x2518c9,_0x3418ed,_0x40d99c,_0x5b5a38,_0xb0c558,0x17,_0x5cd078[0x23]),_0x5b5a38=_0x33cdf7(_0x5b5a38,_0x2518c9,_0x3418ed,_0x40d99c,_0x53a8c5,0x4,_0x5cd078[0x24]),_0x40d99c=_0x33cdf7(_0x40d99c,_0x5b5a38,_0x2518c9,_0x3418ed,_0x5562f6,0xb,_0x5cd078[0x25]),_0x3418ed=_0x33cdf7(_0x3418ed,_0x40d99c,_0x5b5a38,_0x2518c9,_0xac562d,0x10,_0x5cd078[0x26]),_0x2518c9=_0x33cdf7(_0x2518c9,_0x3418ed,_0x40d99c,_0x5b5a38,_0x326877,0x17,_0x5cd078[0x27]),_0x5b5a38=_0x33cdf7(_0x5b5a38,_0x2518c9,_0x3418ed,_0x40d99c,_0x596045,0x4,_0x5cd078[0x28]),_0x40d99c=_0x33cdf7(_0x40d99c,_0x5b5a38,_0x2518c9,_0x3418ed,_0x4a53e3,0xb,_0x5cd078[0x29]),_0x3418ed=_0x33cdf7(_0x3418ed,_0x40d99c,_0x5b5a38,_0x2518c9,_0x55aba3,0x10,_0x5cd078[0x2a]),_0x2518c9=_0x33cdf7(_0x2518c9,_0x3418ed,_0x40d99c,_0x5b5a38,_0x37ce98,0x17,_0x5cd078[0x2b]),_0x5b5a38=_0x33cdf7(_0x5b5a38,_0x2518c9,_0x3418ed,_0x40d99c,_0x5cc950,0x4,_0x5cd078[0x2c]),_0x40d99c=_0x33cdf7(_0x40d99c,_0x5b5a38,_0x2518c9,_0x3418ed,_0x569a13,0xb,_0x5cd078[0x2d]),_0x3418ed=_0x33cdf7(_0x3418ed,_0x40d99c,_0x5b5a38,_0x2518c9,_0x1302a0,0x10,_0x5cd078[0x2e]),_0x2518c9=_0x33cdf7(_0x2518c9,_0x3418ed,_0x40d99c,_0x5b5a38,_0x2d4aee,0x17,_0x5cd078[0x2f]),_0x5b5a38=_0x36c3b2(_0x5b5a38,_0x2518c9,_0x3418ed,_0x40d99c,_0x4a53e3,0x6,_0x5cd078[0x30]),_0x40d99c=_0x36c3b2(_0x40d99c,_0x5b5a38,_0x2518c9,_0x3418ed,_0xac562d,0xa,_0x5cd078[0x31]),_0x3418ed=_0x36c3b2(_0x3418ed,_0x40d99c,_0x5b5a38,_0x2518c9,_0xb0c558,0xf,_0x5cd078[0x32]),_0x2518c9=_0x36c3b2(_0x2518c9,_0x3418ed,_0x40d99c,_0x5b5a38,_0x1b4291,0x15,_0x5cd078[0x33]),_0x5b5a38=_0x36c3b2(_0x5b5a38,_0x2518c9,_0x3418ed,_0x40d99c,_0x569a13,0x6,_0x5cd078[0x34]),_0x40d99c=_0x36c3b2(_0x40d99c,_0x5b5a38,_0x2518c9,_0x3418ed,_0x55aba3,0xa,_0x5cd078[0x35]),_0x3418ed=_0x36c3b2(_0x3418ed,_0x40d99c,_0x5b5a38,_0x2518c9,_0x326877,0xf,_0x5cd078[0x36]),_0x2518c9=_0x36c3b2(_0x2518c9,_0x3418ed,_0x40d99c,_0x5b5a38,_0x53a8c5,0x15,_0x5cd078[0x37]),_0x5b5a38=_0x36c3b2(_0x5b5a38,_0x2518c9,_0x3418ed,_0x40d99c,_0x547516,0x6,_0x5cd078[0x38]),_0x40d99c=_0x36c3b2(_0x40d99c,_0x5b5a38,_0x2518c9,_0x3418ed,_0x1302a0,0xa,_0x5cd078[0x39]),_0x3418ed=_0x36c3b2(_0x3418ed,_0x40d99c,_0x5b5a38,_0x2518c9,_0x37ce98,0xf,_0x5cd078[0x3a]),_0x2518c9=_0x36c3b2(_0x2518c9,_0x3418ed,_0x40d99c,_0x5b5a38,_0x596045,0x15,_0x5cd078[0x3b]),_0x5b5a38=_0x36c3b2(_0x5b5a38,_0x2518c9,_0x3418ed,_0x40d99c,_0x5562f6,0x6,_0x5cd078[0x3c]),_0x40d99c=_0x36c3b2(_0x40d99c,_0x5b5a38,_0x2518c9,_0x3418ed,_0xf30cbf,0xa,_0x5cd078[0x3d]),_0x3418ed=_0x36c3b2(_0x3418ed,_0x40d99c,_0x5b5a38,_0x2518c9,_0x2d4aee,0xf,_0x5cd078[0x3e]),_0x2518c9=_0x36c3b2(_0x2518c9,_0x3418ed,_0x40d99c,_0x5b5a38,_0x5cc950,0x15,_0x5cd078[0x3f]),_0xe2d150[0x0]=_0xe2d150[0x0]+_0x5b5a38|0x0,_0xe2d150[0x1]=_0xe2d150[0x1]+_0x2518c9|0x0,_0xe2d150[0x2]=_0xe2d150[0x2]+_0x3418ed|0x0,_0xe2d150[0x3]=_0xe2d150[0x3]+_0x40d99c|0x0;},'_doFinalize':function(){var _0x6e4347=_0x2b5cd2,_0x3ca77d=this[_0x6e4347(0x3e7)],_0x345d28=_0x3ca77d[_0x6e4347(0x3c9)],_0x7f3f4e=this[_0x6e4347(0x1bf)]*0x8,_0x3c84fd=_0x3ca77d['sigBytes']*0x8;_0x345d28[_0x3c84fd>>>0x5]|=0x80<<0x18-_0x3c84fd%0x20;var _0x456820=_0x28dc3a[_0x6e4347(0x1cd)](_0x7f3f4e/0x100000000),_0xe2d8dc=_0x7f3f4e;_0x345d28[(_0x3c84fd+0x40>>>0x9<<0x4)+0xf]=(_0x456820<<0x8|_0x456820>>>0x18)&0xff00ff|(_0x456820<<0x18|_0x456820>>>0x8)&0xff00ff00,_0x345d28[(_0x3c84fd+0x40>>>0x9<<0x4)+0xe]=(_0xe2d8dc<<0x8|_0xe2d8dc>>>0x18)&0xff00ff|(_0xe2d8dc<<0x18|_0xe2d8dc>>>0x8)&0xff00ff00,_0x3ca77d['sigBytes']=(_0x345d28[_0x6e4347(0x37d)]+0x1)*0x4,this['_process']();for(var _0x4e097d=this[_0x6e4347(0x3c8)],_0x40ac57=_0x4e097d[_0x6e4347(0x3c9)],_0x2e2741=0x0;_0x2e2741<0x4;_0x2e2741++){var _0x4ac9b6=_0x40ac57[_0x2e2741];_0x40ac57[_0x2e2741]=(_0x4ac9b6<<0x8|_0x4ac9b6>>>0x18)&0xff00ff|(_0x4ac9b6<<0x18|_0x4ac9b6>>>0x8)&0xff00ff00;}return _0x4e097d;},'clone':function(){var _0xf366a7=_0x2b5cd2,_0xbdfa42=_0x40b6c8[_0xf366a7(0x16c)][_0xf366a7(0x2b8)](this);return _0xbdfa42[_0xf366a7(0x3c8)]=this['_hash']['clone'](),_0xbdfa42;}});function _0x301807(_0x4b5d14,_0x1ae032,_0x348bcd,_0x1157a9,_0x330a45,_0x93ef20,_0x5e5b5f){var _0x2a0a63=_0x4b5d14+(_0x1ae032&_0x348bcd|~_0x1ae032&_0x1157a9)+_0x330a45+_0x5e5b5f;return(_0x2a0a63<<_0x93ef20|_0x2a0a63>>>0x20-_0x93ef20)+_0x1ae032;}function _0x5c3d8f(_0x4192c5,_0x19980a,_0x904387,_0x138647,_0x1c05db,_0x2efc95,_0x5c844a){var _0x39d3b9=_0x4192c5+(_0x19980a&_0x138647|_0x904387&~_0x138647)+_0x1c05db+_0x5c844a;return(_0x39d3b9<<_0x2efc95|_0x39d3b9>>>0x20-_0x2efc95)+_0x19980a;}function _0x33cdf7(_0x118bb3,_0x3badd1,_0x503190,_0x3b7495,_0x35fa16,_0x937a13,_0x5d88cd){var _0x539524=_0x118bb3+(_0x3badd1^_0x503190^_0x3b7495)+_0x35fa16+_0x5d88cd;return(_0x539524<<_0x937a13|_0x539524>>>0x20-_0x937a13)+_0x3badd1;}function _0x36c3b2(_0x320563,_0x168f22,_0x3cc8e3,_0x4c9850,_0x23f1a8,_0x5e64a1,_0x1dc3d6){var _0x51e4b0=_0x320563+(_0x3cc8e3^(_0x168f22|~_0x4c9850))+_0x23f1a8+_0x1dc3d6;return(_0x51e4b0<<_0x5e64a1|_0x51e4b0>>>0x20-_0x5e64a1)+_0x168f22;}_0x577ff8[_0x2b5cd2(0x2ce)]=_0x40b6c8[_0x2b5cd2(0x167)](_0x564b37),_0x577ff8['HmacMD5']=_0x40b6c8[_0x2b5cd2(0x272)](_0x564b37);}(Math),_0x5c0787[_0x49da4b(0x2ce)];}));}(Ke)),Ke['exports'];}var Ye={'exports':{}},qe={'exports':{}},$r=qe[_0x40530a(0xfe)],ti;function Hr(){var _0x40b7b7=_0x40530a;return ti||(ti=0x1,function(_0x1b8073,_0x1a2178){(function(_0x2f912b,_0xabcf72){var _0x4c40b1=_0x192f;_0x1b8073[_0x4c40b1(0xfe)]=_0xabcf72(ne());}($r,function(_0x58e8c5){var _0x2089b8=_0x192f;return(function(){var _0x24bc65=_0x192f,_0x546899=_0x58e8c5,_0xfc1325=_0x546899[_0x24bc65(0x18b)],_0x1e5ab1=_0xfc1325[_0x24bc65(0x1ad)],_0x1bd817=_0xfc1325[_0x24bc65(0x2eb)],_0x229918=_0x546899[_0x24bc65(0x2e5)],_0x4ccbdc=[],_0x294286=_0x229918[_0x24bc65(0x103)]=_0x1bd817[_0x24bc65(0x2c5)]({'_doReset':function(){var _0x51c288=_0x24bc65;this[_0x51c288(0x3c8)]=new _0x1e5ab1[(_0x51c288(0x3a9))]([0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0]);},'_doProcessBlock':function(_0x4513c2,_0x3e501c){var _0x2deadf=_0x24bc65;for(var _0x10fb56=this[_0x2deadf(0x3c8)][_0x2deadf(0x3c9)],_0x57503e=_0x10fb56[0x0],_0x274e78=_0x10fb56[0x1],_0x3615da=_0x10fb56[0x2],_0x52e69d=_0x10fb56[0x3],_0x31efd0=_0x10fb56[0x4],_0x1014a7=0x0;_0x1014a7<0x50;_0x1014a7++){if(_0x1014a7<0x10)_0x4ccbdc[_0x1014a7]=_0x4513c2[_0x3e501c+_0x1014a7]|0x0;else{var _0xc1e40f=_0x4ccbdc[_0x1014a7-0x3]^_0x4ccbdc[_0x1014a7-0x8]^_0x4ccbdc[_0x1014a7-0xe]^_0x4ccbdc[_0x1014a7-0x10];_0x4ccbdc[_0x1014a7]=_0xc1e40f<<0x1|_0xc1e40f>>>0x1f;}var _0xbd4d00=(_0x57503e<<0x5|_0x57503e>>>0x1b)+_0x31efd0+_0x4ccbdc[_0x1014a7];_0x1014a7<0x14?_0xbd4d00+=(_0x274e78&_0x3615da|~_0x274e78&_0x52e69d)+0x5a827999:_0x1014a7<0x28?_0xbd4d00+=(_0x274e78^_0x3615da^_0x52e69d)+0x6ed9eba1:_0x1014a7<0x3c?_0xbd4d00+=(_0x274e78&_0x3615da|_0x274e78&_0x52e69d|_0x3615da&_0x52e69d)-0x70e44324:_0xbd4d00+=(_0x274e78^_0x3615da^_0x52e69d)-0x359d3e2a,_0x31efd0=_0x52e69d,_0x52e69d=_0x3615da,_0x3615da=_0x274e78<<0x1e|_0x274e78>>>0x2,_0x274e78=_0x57503e,_0x57503e=_0xbd4d00;}_0x10fb56[0x0]=_0x10fb56[0x0]+_0x57503e|0x0,_0x10fb56[0x1]=_0x10fb56[0x1]+_0x274e78|0x0,_0x10fb56[0x2]=_0x10fb56[0x2]+_0x3615da|0x0,_0x10fb56[0x3]=_0x10fb56[0x3]+_0x52e69d|0x0,_0x10fb56[0x4]=_0x10fb56[0x4]+_0x31efd0|0x0;},'_doFinalize':function(){var _0x474204=_0x24bc65,_0x191c59=this[_0x474204(0x3e7)],_0x125fe2=_0x191c59[_0x474204(0x3c9)],_0x4e62ef=this[_0x474204(0x1bf)]*0x8,_0x2b4d56=_0x191c59[_0x474204(0x2f8)]*0x8;return _0x125fe2[_0x2b4d56>>>0x5]|=0x80<<0x18-_0x2b4d56%0x20,_0x125fe2[(_0x2b4d56+0x40>>>0x9<<0x4)+0xe]=Math['floor'](_0x4e62ef/0x100000000),_0x125fe2[(_0x2b4d56+0x40>>>0x9<<0x4)+0xf]=_0x4e62ef,_0x191c59[_0x474204(0x2f8)]=_0x125fe2[_0x474204(0x37d)]*0x4,this[_0x474204(0x155)](),this[_0x474204(0x3c8)];},'clone':function(){var _0x240cb3=_0x24bc65,_0x53f15b=_0x1bd817[_0x240cb3(0x16c)][_0x240cb3(0x2b8)](this);return _0x53f15b[_0x240cb3(0x3c8)]=this[_0x240cb3(0x3c8)]['clone'](),_0x53f15b;}});_0x546899['SHA1']=_0x1bd817[_0x24bc65(0x167)](_0x294286),_0x546899[_0x24bc65(0x1dd)]=_0x1bd817['_createHmacHelper'](_0x294286);}()),_0x58e8c5[_0x2089b8(0x103)];}));}(qe)),qe[_0x40b7b7(0xfe)];}var ze={'exports':{}},kr=ze[_0x40530a(0xfe)],ii;function jr(){var _0x46027d=_0x40530a;return ii||(ii=0x1,function(_0x44f9bc,_0x1aaf4f){(function(_0xcde62,_0x573faa){var _0x523974=_0x192f;_0x44f9bc[_0x523974(0xfe)]=_0x573faa(ne());}(kr,function(_0x121acb){(function(){var _0x2a2bf8=_0x192f,_0xe11455=_0x121acb,_0x32e3ce=_0xe11455[_0x2a2bf8(0x18b)],_0x824567=_0x32e3ce[_0x2a2bf8(0x218)],_0x11fb8f=_0xe11455[_0x2a2bf8(0x1b0)],_0x2c0d8f=_0x11fb8f['Utf8'],_0x706d1a=_0xe11455['algo'];_0x706d1a[_0x2a2bf8(0x165)]=_0x824567[_0x2a2bf8(0x2c5)]({'init':function(_0x66f636,_0x1c92de){var _0x856fee=_0x2a2bf8;_0x66f636=this[_0x856fee(0x312)]=new _0x66f636[(_0x856fee(0x3a9))](),typeof _0x1c92de==_0x856fee(0x16a)&&(_0x1c92de=_0x2c0d8f[_0x856fee(0x274)](_0x1c92de));var _0x492d64=_0x66f636[_0x856fee(0x2c3)],_0x48f320=_0x492d64*0x4;_0x1c92de[_0x856fee(0x2f8)]>_0x48f320&&(_0x1c92de=_0x66f636[_0x856fee(0x336)](_0x1c92de)),_0x1c92de[_0x856fee(0x3b4)]();for(var _0x58c806=this[_0x856fee(0x19b)]=_0x1c92de[_0x856fee(0x16c)](),_0x4bab91=this['_iKey']=_0x1c92de[_0x856fee(0x16c)](),_0x55d8f8=_0x58c806['words'],_0x4775ef=_0x4bab91[_0x856fee(0x3c9)],_0x11156d=0x0;_0x11156d<_0x492d64;_0x11156d++)_0x55d8f8[_0x11156d]^=0x5c5c5c5c,_0x4775ef[_0x11156d]^=0x36363636;_0x58c806['sigBytes']=_0x4bab91[_0x856fee(0x2f8)]=_0x48f320,this['reset']();},'reset':function(){var _0x4c82e5=_0x2a2bf8,_0x56497b=this[_0x4c82e5(0x312)];_0x56497b[_0x4c82e5(0x2b4)](),_0x56497b['update'](this[_0x4c82e5(0x2ee)]);},'update':function(_0x574926){var _0x366f3f=_0x2a2bf8;return this[_0x366f3f(0x312)][_0x366f3f(0x23e)](_0x574926),this;},'finalize':function(_0x1fe71e){var _0x5d5075=_0x2a2bf8,_0xe44c93=this['_hasher'],_0x1d09d0=_0xe44c93['finalize'](_0x1fe71e);_0xe44c93['reset']();var _0x4bc607=_0xe44c93[_0x5d5075(0x336)](this[_0x5d5075(0x19b)][_0x5d5075(0x16c)]()['concat'](_0x1d09d0));return _0x4bc607;}});}());}));}(ze)),ze[_0x46027d(0xfe)];}var Br=Ye[_0x40530a(0xfe)],ni;function Ui(){return ni||(ni=0x1,function(_0x4011aa,_0x3dab98){(function(_0x584afb,_0x5264db,_0x32381e){var _0x15859f=_0x192f;_0x4011aa[_0x15859f(0xfe)]=_0x5264db(ne(),Hr(),jr());}(Br,function(_0x1bcc48){var _0x281da1=_0x192f;return(function(){var _0x1300ad=_0x192f,_0x2eee81=_0x1bcc48,_0x20934d=_0x2eee81['lib'],_0x29e127=_0x20934d[_0x1300ad(0x218)],_0x5b4825=_0x20934d[_0x1300ad(0x1ad)],_0x452dd8=_0x2eee81[_0x1300ad(0x2e5)],_0x597d29=_0x452dd8[_0x1300ad(0x2ce)],_0x2ccf31=_0x452dd8[_0x1300ad(0x374)]=_0x29e127[_0x1300ad(0x2c5)]({'cfg':_0x29e127[_0x1300ad(0x2c5)]({'keySize':0x80/0x20,'hasher':_0x597d29,'iterations':0x1}),'init':function(_0x5700a9){var _0x2dc9c6=_0x1300ad;this[_0x2dc9c6(0x346)]=this['cfg'][_0x2dc9c6(0x2c5)](_0x5700a9);},'compute':function(_0x2bcf63,_0x364586){var _0xc116da=_0x1300ad;for(var _0x2c922d,_0x441f41=this[_0xc116da(0x346)],_0x2117a1=_0x441f41[_0xc116da(0x3b8)][_0xc116da(0x264)](),_0x50d072=_0x5b4825[_0xc116da(0x264)](),_0x3f2fe2=_0x50d072[_0xc116da(0x3c9)],_0x583975=_0x441f41[_0xc116da(0x10f)],_0x51d0db=_0x441f41[_0xc116da(0x235)];_0x3f2fe2[_0xc116da(0x37d)]<_0x583975;){_0x2c922d&&_0x2117a1[_0xc116da(0x23e)](_0x2c922d),_0x2c922d=_0x2117a1['update'](_0x2bcf63)['finalize'](_0x364586),_0x2117a1[_0xc116da(0x2b4)]();for(var _0x1b0901=0x1;_0x1b0901<_0x51d0db;_0x1b0901++)_0x2c922d=_0x2117a1['finalize'](_0x2c922d),_0x2117a1[_0xc116da(0x2b4)]();_0x50d072[_0xc116da(0x187)](_0x2c922d);}return _0x50d072[_0xc116da(0x2f8)]=_0x583975*0x4,_0x50d072;}});_0x2eee81[_0x1300ad(0x374)]=function(_0x9c2a10,_0x2857ec,_0x2f2b45){var _0x421822=_0x1300ad;return _0x2ccf31[_0x421822(0x264)](_0x2f2b45)[_0x421822(0x39b)](_0x9c2a10,_0x2857ec);};}()),_0x1bcc48[_0x281da1(0x374)];}));}(Ye)),Ye['exports'];}var Je={'exports':{}},Fr=Je['exports'],ri;function Ai(){var _0x2cca48=_0x40530a;return ri||(ri=0x1,function(_0x2e8bea,_0x1f90c1){(function(_0x32e694,_0xb12b14,_0x264a0){var _0x1b261f=_0x192f;_0x2e8bea[_0x1b261f(0xfe)]=_0xb12b14(ne(),Ui());}(Fr,function(_0x3369a6){var _0x4a5b24=_0x192f;_0x3369a6[_0x4a5b24(0x18b)][_0x4a5b24(0x1e5)]||function(_0x2068ad){var _0x2f49af=_0x4a5b24,_0x5d337c=_0x3369a6,_0xa1d1eb=_0x5d337c[_0x2f49af(0x18b)],_0x3c7362=_0xa1d1eb[_0x2f49af(0x218)],_0x36c236=_0xa1d1eb[_0x2f49af(0x1ad)],_0x45264f=_0xa1d1eb['BufferedBlockAlgorithm'],_0x5d110b=_0x5d337c[_0x2f49af(0x1b0)];_0x5d110b[_0x2f49af(0x34c)];var _0x23bdd5=_0x5d110b[_0x2f49af(0x15b)],_0x2bde15=_0x5d337c['algo'],_0x50e2a7=_0x2bde15[_0x2f49af(0x374)],_0x4467e0=_0xa1d1eb[_0x2f49af(0x1e5)]=_0x45264f['extend']({'cfg':_0x3c7362[_0x2f49af(0x2c5)](),'createEncryptor':function(_0x322aad,_0x58e6d0){var _0x37c256=_0x2f49af;return this[_0x37c256(0x264)](this['_ENC_XFORM_MODE'],_0x322aad,_0x58e6d0);},'createDecryptor':function(_0x3507f9,_0x70bbba){return this['create'](this['_DEC_XFORM_MODE'],_0x3507f9,_0x70bbba);},'init':function(_0x8017ed,_0x5cafe3,_0x27a4b5){var _0x3e94f3=_0x2f49af;this[_0x3e94f3(0x346)]=this[_0x3e94f3(0x346)][_0x3e94f3(0x2c5)](_0x27a4b5),this[_0x3e94f3(0x2b2)]=_0x8017ed,this[_0x3e94f3(0x1bd)]=_0x5cafe3,this[_0x3e94f3(0x2b4)]();},'reset':function(){var _0xc3a0b9=_0x2f49af;_0x45264f[_0xc3a0b9(0x2b4)]['call'](this),this[_0xc3a0b9(0x188)]();},'process':function(_0x2f563b){return this['_append'](_0x2f563b),this['_process']();},'finalize':function(_0x460e93){var _0x3760e1=_0x2f49af;_0x460e93&&this[_0x3760e1(0x2a2)](_0x460e93);var _0x31e4d6=this['_doFinalize']();return _0x31e4d6;},'keySize':0x80/0x20,'ivSize':0x80/0x20,'_ENC_XFORM_MODE':0x1,'_DEC_XFORM_MODE':0x2,'_createHelper':(function(){function _0x2210c0(_0x1e4c69){var _0x1be5b3=_0x192f;return typeof _0x1e4c69==_0x1be5b3(0x16a)?_0x5ea58b:_0x1ea639;}return function(_0x510415){return{'encrypt':function(_0x1427b5,_0x4b50b1,_0x2a98d6){var _0x4caf89=_0x192f;return _0x2210c0(_0x4b50b1)[_0x4caf89(0x1bc)](_0x510415,_0x1427b5,_0x4b50b1,_0x2a98d6);},'decrypt':function(_0x19d11b,_0x3a2831,_0x5f3a84){var _0x144194=_0x192f;return _0x2210c0(_0x3a2831)[_0x144194(0x368)](_0x510415,_0x19d11b,_0x3a2831,_0x5f3a84);}};};}())});_0xa1d1eb[_0x2f49af(0x1ab)]=_0x4467e0[_0x2f49af(0x2c5)]({'_doFinalize':function(){var _0x607c9f=_0x2f49af,_0x257978=this[_0x607c9f(0x155)](!0x0);return _0x257978;},'blockSize':0x1});var _0x55d4f6=_0x5d337c[_0x2f49af(0x204)]={},_0x37b8a2=_0xa1d1eb[_0x2f49af(0x3b3)]=_0x3c7362['extend']({'createEncryptor':function(_0x148656,_0x3a7add){return this['Encryptor']['create'](_0x148656,_0x3a7add);},'createDecryptor':function(_0x26354,_0x283c8d){var _0x50122a=_0x2f49af;return this[_0x50122a(0x373)][_0x50122a(0x264)](_0x26354,_0x283c8d);},'init':function(_0x297e2b,_0x1a0abf){var _0x1abf6b=_0x2f49af;this[_0x1abf6b(0x1f5)]=_0x297e2b,this[_0x1abf6b(0x2d2)]=_0x1a0abf;}}),_0x5e7eef=_0x55d4f6[_0x2f49af(0x24f)]=(function(){var _0xb773=_0x2f49af,_0x342485=_0x37b8a2[_0xb773(0x2c5)]();_0x342485[_0xb773(0x12d)]=_0x342485[_0xb773(0x2c5)]({'processBlock':function(_0x576010,_0x21dd6e){var _0x146620=_0xb773,_0x364d73=this[_0x146620(0x1f5)],_0x1da848=_0x364d73['blockSize'];_0x4e824a[_0x146620(0x2b8)](this,_0x576010,_0x21dd6e,_0x1da848),_0x364d73[_0x146620(0x3c5)](_0x576010,_0x21dd6e),this['_prevBlock']=_0x576010[_0x146620(0x186)](_0x21dd6e,_0x21dd6e+_0x1da848);}}),_0x342485[_0xb773(0x373)]=_0x342485[_0xb773(0x2c5)]({'processBlock':function(_0x5827bb,_0x469a82){var _0x1df9c5=_0xb773,_0x11f9d2=this[_0x1df9c5(0x1f5)],_0x47f744=_0x11f9d2[_0x1df9c5(0x2c3)],_0x3ca1da=_0x5827bb[_0x1df9c5(0x186)](_0x469a82,_0x469a82+_0x47f744);_0x11f9d2[_0x1df9c5(0x1fa)](_0x5827bb,_0x469a82),_0x4e824a[_0x1df9c5(0x2b8)](this,_0x5827bb,_0x469a82,_0x47f744),this[_0x1df9c5(0x23c)]=_0x3ca1da;}});function _0x4e824a(_0x17b2c5,_0x65b2a5,_0xa7c1e4){var _0x4f7c2a=_0xb773,_0x59d4fd,_0x948b0e=this['_iv'];_0x948b0e?(_0x59d4fd=_0x948b0e,this[_0x4f7c2a(0x2d2)]=_0x2068ad):_0x59d4fd=this['_prevBlock'];for(var _0x399096=0x0;_0x399096<_0xa7c1e4;_0x399096++)_0x17b2c5[_0x65b2a5+_0x399096]^=_0x59d4fd[_0x399096];}return _0x342485;}()),_0x4b29d0=_0x5d337c['pad']={},_0x30a594=_0x4b29d0[_0x2f49af(0x123)]={'pad':function(_0x4b356c,_0x4a795c){var _0x1e3e3c=_0x2f49af;for(var _0xc5a6ac=_0x4a795c*0x4,_0x2e81a8=_0xc5a6ac-_0x4b356c[_0x1e3e3c(0x2f8)]%_0xc5a6ac,_0x397cd6=_0x2e81a8<<0x18|_0x2e81a8<<0x10|_0x2e81a8<<0x8|_0x2e81a8,_0x4bc91e=[],_0x3ef394=0x0;_0x3ef394<_0x2e81a8;_0x3ef394+=0x4)_0x4bc91e[_0x1e3e3c(0x20a)](_0x397cd6);var _0xb8f63a=_0x36c236[_0x1e3e3c(0x264)](_0x4bc91e,_0x2e81a8);_0x4b356c[_0x1e3e3c(0x187)](_0xb8f63a);},'unpad':function(_0x2345d0){var _0x1bc8b5=_0x2f49af,_0x2fa35d=_0x2345d0[_0x1bc8b5(0x3c9)][_0x2345d0[_0x1bc8b5(0x2f8)]-0x1>>>0x2]&0xff;_0x2345d0[_0x1bc8b5(0x2f8)]-=_0x2fa35d;}};_0xa1d1eb[_0x2f49af(0x213)]=_0x4467e0[_0x2f49af(0x2c5)]({'cfg':_0x4467e0['cfg'][_0x2f49af(0x2c5)]({'mode':_0x5e7eef,'padding':_0x30a594}),'reset':function(){var _0x3b6448=_0x2f49af,_0x35fc16;_0x4467e0[_0x3b6448(0x2b4)][_0x3b6448(0x2b8)](this);var _0x11a88a=this[_0x3b6448(0x346)],_0x3e96f9=_0x11a88a['iv'],_0x2d2ae6=_0x11a88a[_0x3b6448(0x204)];this[_0x3b6448(0x2b2)]==this['_ENC_XFORM_MODE']?_0x35fc16=_0x2d2ae6[_0x3b6448(0x1a9)]:(_0x35fc16=_0x2d2ae6[_0x3b6448(0x350)],this[_0x3b6448(0x154)]=0x1),this[_0x3b6448(0x320)]&&this[_0x3b6448(0x320)]['__creator']==_0x35fc16?this[_0x3b6448(0x320)][_0x3b6448(0x3a9)](this,_0x3e96f9&&_0x3e96f9['words']):(this[_0x3b6448(0x320)]=_0x35fc16[_0x3b6448(0x2b8)](_0x2d2ae6,this,_0x3e96f9&&_0x3e96f9['words']),this['_mode'][_0x3b6448(0x3dc)]=_0x35fc16);},'_doProcessBlock':function(_0x2507c4,_0x40dc7b){var _0xb2ab89=_0x2f49af;this[_0xb2ab89(0x320)][_0xb2ab89(0x3a6)](_0x2507c4,_0x40dc7b);},'_doFinalize':function(){var _0x53d315=_0x2f49af,_0x5a91dc,_0x27cf08=this[_0x53d315(0x346)][_0x53d315(0x242)];return this[_0x53d315(0x2b2)]==this[_0x53d315(0x209)]?(_0x27cf08['pad'](this[_0x53d315(0x3e7)],this[_0x53d315(0x2c3)]),_0x5a91dc=this[_0x53d315(0x155)](!0x0)):(_0x5a91dc=this[_0x53d315(0x155)](!0x0),_0x27cf08[_0x53d315(0x34d)](_0x5a91dc)),_0x5a91dc;},'blockSize':0x80/0x20});var _0x9d00b4=_0xa1d1eb[_0x2f49af(0x22b)]=_0x3c7362['extend']({'init':function(_0x4a2caa){this['mixIn'](_0x4a2caa);},'toString':function(_0x6459f3){var _0x257ee3=_0x2f49af;return(_0x6459f3||this[_0x257ee3(0x1c5)])['stringify'](this);}}),_0x472fca=_0x5d337c['format']={},_0x4982d8=_0x472fca[_0x2f49af(0x13a)]={'stringify':function(_0x4f5341){var _0x16b518=_0x2f49af,_0xaf9797,_0x482fc8=_0x4f5341['ciphertext'],_0x2964e9=_0x4f5341[_0x16b518(0x3b1)];return _0x2964e9?_0xaf9797=_0x36c236[_0x16b518(0x264)]([0x53616c74,0x65645f5f])[_0x16b518(0x187)](_0x2964e9)['concat'](_0x482fc8):_0xaf9797=_0x482fc8,_0xaf9797[_0x16b518(0x1f3)](_0x23bdd5);},'parse':function(_0xe1394){var _0x38a1df=_0x2f49af,_0x13fd88,_0x253ba4=_0x23bdd5[_0x38a1df(0x274)](_0xe1394),_0x496f22=_0x253ba4[_0x38a1df(0x3c9)];return _0x496f22[0x0]==0x53616c74&&_0x496f22[0x1]==0x65645f5f&&(_0x13fd88=_0x36c236[_0x38a1df(0x264)](_0x496f22['slice'](0x2,0x4)),_0x496f22[_0x38a1df(0x16e)](0x0,0x4),_0x253ba4[_0x38a1df(0x2f8)]-=0x10),_0x9d00b4[_0x38a1df(0x264)]({'ciphertext':_0x253ba4,'salt':_0x13fd88});}},_0x1ea639=_0xa1d1eb[_0x2f49af(0x344)]=_0x3c7362[_0x2f49af(0x2c5)]({'cfg':_0x3c7362[_0x2f49af(0x2c5)]({'format':_0x4982d8}),'encrypt':function(_0x4db84b,_0x4d2190,_0x387e47,_0x2fae4f){var _0x23e3cf=_0x2f49af;_0x2fae4f=this[_0x23e3cf(0x346)]['extend'](_0x2fae4f);var _0x583f82=_0x4db84b[_0x23e3cf(0x1a9)](_0x387e47,_0x2fae4f),_0x4d8111=_0x583f82[_0x23e3cf(0x336)](_0x4d2190),_0x4db614=_0x583f82[_0x23e3cf(0x346)];return _0x9d00b4['create']({'ciphertext':_0x4d8111,'key':_0x387e47,'iv':_0x4db614['iv'],'algorithm':_0x4db84b,'mode':_0x4db614[_0x23e3cf(0x204)],'padding':_0x4db614[_0x23e3cf(0x242)],'blockSize':_0x4db84b[_0x23e3cf(0x2c3)],'formatter':_0x2fae4f['format']});},'decrypt':function(_0x47b0f1,_0x2a916a,_0xb103e7,_0x3abf21){var _0xec6343=_0x2f49af;_0x3abf21=this[_0xec6343(0x346)][_0xec6343(0x2c5)](_0x3abf21),_0x2a916a=this['_parse'](_0x2a916a,_0x3abf21[_0xec6343(0x2f4)]);var _0x15fe84=_0x47b0f1['createDecryptor'](_0xb103e7,_0x3abf21)[_0xec6343(0x336)](_0x2a916a['ciphertext']);return _0x15fe84;},'_parse':function(_0x29f149,_0x2a075e){var _0x1964e6=_0x2f49af;return typeof _0x29f149==_0x1964e6(0x16a)?_0x2a075e[_0x1964e6(0x274)](_0x29f149,this):_0x29f149;}}),_0x2d8c0a=_0x5d337c[_0x2f49af(0xe2)]={},_0x14f857=_0x2d8c0a[_0x2f49af(0x13a)]={'execute':function(_0x48330b,_0x2907d0,_0x413769,_0x53e3d7,_0x3e6d69){var _0x52a908=_0x2f49af;if(_0x53e3d7||(_0x53e3d7=_0x36c236[_0x52a908(0x2c6)](0x40/0x8)),_0x3e6d69)var _0x5a17f4=_0x50e2a7[_0x52a908(0x264)]({'keySize':_0x2907d0+_0x413769,'hasher':_0x3e6d69})[_0x52a908(0x39b)](_0x48330b,_0x53e3d7);else var _0x5a17f4=_0x50e2a7[_0x52a908(0x264)]({'keySize':_0x2907d0+_0x413769})[_0x52a908(0x39b)](_0x48330b,_0x53e3d7);var _0x1df60c=_0x36c236['create'](_0x5a17f4[_0x52a908(0x3c9)]['slice'](_0x2907d0),_0x413769*0x4);return _0x5a17f4[_0x52a908(0x2f8)]=_0x2907d0*0x4,_0x9d00b4[_0x52a908(0x264)]({'key':_0x5a17f4,'iv':_0x1df60c,'salt':_0x53e3d7});}},_0x5ea58b=_0xa1d1eb[_0x2f49af(0x397)]=_0x1ea639[_0x2f49af(0x2c5)]({'cfg':_0x1ea639['cfg'][_0x2f49af(0x2c5)]({'kdf':_0x14f857}),'encrypt':function(_0x31107c,_0x33e4b3,_0x16efeb,_0x282941){var _0x594705=_0x2f49af;_0x282941=this[_0x594705(0x346)]['extend'](_0x282941);var _0x413153=_0x282941[_0x594705(0xe2)]['execute'](_0x16efeb,_0x31107c[_0x594705(0x10f)],_0x31107c[_0x594705(0x266)],_0x282941[_0x594705(0x3b1)],_0x282941[_0x594705(0x3b8)]);_0x282941['iv']=_0x413153['iv'];var _0x1a0189=_0x1ea639[_0x594705(0x1bc)][_0x594705(0x2b8)](this,_0x31107c,_0x33e4b3,_0x413153[_0x594705(0x15a)],_0x282941);return _0x1a0189[_0x594705(0x3b2)](_0x413153),_0x1a0189;},'decrypt':function(_0x3614a4,_0x3cf331,_0x207775,_0x1f4d37){var _0xa88919=_0x2f49af;_0x1f4d37=this[_0xa88919(0x346)]['extend'](_0x1f4d37),_0x3cf331=this[_0xa88919(0x38e)](_0x3cf331,_0x1f4d37['format']);var _0xf4f323=_0x1f4d37[_0xa88919(0xe2)][_0xa88919(0x3ac)](_0x207775,_0x3614a4[_0xa88919(0x10f)],_0x3614a4[_0xa88919(0x266)],_0x3cf331[_0xa88919(0x3b1)],_0x1f4d37[_0xa88919(0x3b8)]);_0x1f4d37['iv']=_0xf4f323['iv'];var _0x50b768=_0x1ea639[_0xa88919(0x368)][_0xa88919(0x2b8)](this,_0x3614a4,_0x3cf331,_0xf4f323[_0xa88919(0x15a)],_0x1f4d37);return _0x50b768;}});}();}));}(Je)),Je[_0x2cca48(0xfe)];}var Vr=Ve[_0x40530a(0xfe)],si;function Gr(){var _0x143957=_0x40530a;return si||(si=0x1,function(_0x73911e,_0x115077){(function(_0x199591,_0x445753,_0xabc448){var _0x4f81c8=_0x192f;_0x73911e[_0x4f81c8(0xfe)]=_0x445753(ne(),wi(),Mr(),Ui(),Ai());}(Vr,function(_0x47f8cc){var _0x8653b1=_0x192f;return(function(){var _0x268e87=_0x192f,_0x4db3c3=_0x47f8cc,_0x11cd56=_0x4db3c3[_0x268e87(0x18b)],_0x13f8a9=_0x11cd56[_0x268e87(0x213)],_0x37044d=_0x4db3c3['algo'],_0x1f14cc=[],_0x99cb38=[],_0x1c9142=[],_0x10e3ea=[],_0x43183e=[],_0x32f456=[],_0x4fe85c=[],_0x3914e3=[],_0x4385ec=[],_0x45b164=[];(function(){for(var _0x566125=[],_0x17970d=0x0;_0x17970d<0x100;_0x17970d++)_0x17970d<0x80?_0x566125[_0x17970d]=_0x17970d<<0x1:_0x566125[_0x17970d]=_0x17970d<<0x1^0x11b;for(var _0x301a71=0x0,_0x597ac1=0x0,_0x17970d=0x0;_0x17970d<0x100;_0x17970d++){var _0x3dfc4b=_0x597ac1^_0x597ac1<<0x1^_0x597ac1<<0x2^_0x597ac1<<0x3^_0x597ac1<<0x4;_0x3dfc4b=_0x3dfc4b>>>0x8^_0x3dfc4b&0xff^0x63,_0x1f14cc[_0x301a71]=_0x3dfc4b,_0x99cb38[_0x3dfc4b]=_0x301a71;var _0x50d582=_0x566125[_0x301a71],_0x1dd8d9=_0x566125[_0x50d582],_0x179324=_0x566125[_0x1dd8d9],_0x145b59=_0x566125[_0x3dfc4b]*0x101^_0x3dfc4b*0x1010100;_0x1c9142[_0x301a71]=_0x145b59<<0x18|_0x145b59>>>0x8,_0x10e3ea[_0x301a71]=_0x145b59<<0x10|_0x145b59>>>0x10,_0x43183e[_0x301a71]=_0x145b59<<0x8|_0x145b59>>>0x18,_0x32f456[_0x301a71]=_0x145b59;var _0x145b59=_0x179324*0x1010101^_0x1dd8d9*0x10001^_0x50d582*0x101^_0x301a71*0x1010100;_0x4fe85c[_0x3dfc4b]=_0x145b59<<0x18|_0x145b59>>>0x8,_0x3914e3[_0x3dfc4b]=_0x145b59<<0x10|_0x145b59>>>0x10,_0x4385ec[_0x3dfc4b]=_0x145b59<<0x8|_0x145b59>>>0x18,_0x45b164[_0x3dfc4b]=_0x145b59,_0x301a71?(_0x301a71=_0x50d582^_0x566125[_0x566125[_0x566125[_0x179324^_0x50d582]]],_0x597ac1^=_0x566125[_0x566125[_0x597ac1]]):_0x301a71=_0x597ac1=0x1;}}());var _0x1e76af=[0x0,0x1,0x2,0x4,0x8,0x10,0x20,0x40,0x80,0x1b,0x36],_0x4c7d3f=_0x37044d[_0x268e87(0x33c)]=_0x13f8a9[_0x268e87(0x2c5)]({'_doReset':function(){var _0xed4b2f=_0x268e87,_0x12f25b;if(!(this[_0xed4b2f(0x1fd)]&&this[_0xed4b2f(0x178)]===this[_0xed4b2f(0x1bd)])){for(var _0x3bf024=this[_0xed4b2f(0x178)]=this[_0xed4b2f(0x1bd)],_0x45f525=_0x3bf024[_0xed4b2f(0x3c9)],_0x75ca58=_0x3bf024[_0xed4b2f(0x2f8)]/0x4,_0x2b3e4a=this[_0xed4b2f(0x1fd)]=_0x75ca58+0x6,_0x3a6e8e=(_0x2b3e4a+0x1)*0x4,_0x2c8fc4=this[_0xed4b2f(0x317)]=[],_0x35e673=0x0;_0x35e673<_0x3a6e8e;_0x35e673++)_0x35e673<_0x75ca58?_0x2c8fc4[_0x35e673]=_0x45f525[_0x35e673]:(_0x12f25b=_0x2c8fc4[_0x35e673-0x1],_0x35e673%_0x75ca58?_0x75ca58>0x6&&_0x35e673%_0x75ca58==0x4&&(_0x12f25b=_0x1f14cc[_0x12f25b>>>0x18]<<0x18|_0x1f14cc[_0x12f25b>>>0x10&0xff]<<0x10|_0x1f14cc[_0x12f25b>>>0x8&0xff]<<0x8|_0x1f14cc[_0x12f25b&0xff]):(_0x12f25b=_0x12f25b<<0x8|_0x12f25b>>>0x18,_0x12f25b=_0x1f14cc[_0x12f25b>>>0x18]<<0x18|_0x1f14cc[_0x12f25b>>>0x10&0xff]<<0x10|_0x1f14cc[_0x12f25b>>>0x8&0xff]<<0x8|_0x1f14cc[_0x12f25b&0xff],_0x12f25b^=_0x1e76af[_0x35e673/_0x75ca58|0x0]<<0x18),_0x2c8fc4[_0x35e673]=_0x2c8fc4[_0x35e673-_0x75ca58]^_0x12f25b);for(var _0xf898ec=this[_0xed4b2f(0x360)]=[],_0x4ce610=0x0;_0x4ce610<_0x3a6e8e;_0x4ce610++){var _0x35e673=_0x3a6e8e-_0x4ce610;if(_0x4ce610%0x4)var _0x12f25b=_0x2c8fc4[_0x35e673];else var _0x12f25b=_0x2c8fc4[_0x35e673-0x4];_0x4ce610<0x4||_0x35e673<=0x4?_0xf898ec[_0x4ce610]=_0x12f25b:_0xf898ec[_0x4ce610]=_0x4fe85c[_0x1f14cc[_0x12f25b>>>0x18]]^_0x3914e3[_0x1f14cc[_0x12f25b>>>0x10&0xff]]^_0x4385ec[_0x1f14cc[_0x12f25b>>>0x8&0xff]]^_0x45b164[_0x1f14cc[_0x12f25b&0xff]];}}},'encryptBlock':function(_0x41cb04,_0x2316b4){var _0x2a68ee=_0x268e87;this[_0x2a68ee(0x196)](_0x41cb04,_0x2316b4,this[_0x2a68ee(0x317)],_0x1c9142,_0x10e3ea,_0x43183e,_0x32f456,_0x1f14cc);},'decryptBlock':function(_0x4bbe54,_0x2d4a86){var _0x2baab8=_0x268e87,_0x51e87b=_0x4bbe54[_0x2d4a86+0x1];_0x4bbe54[_0x2d4a86+0x1]=_0x4bbe54[_0x2d4a86+0x3],_0x4bbe54[_0x2d4a86+0x3]=_0x51e87b,this[_0x2baab8(0x196)](_0x4bbe54,_0x2d4a86,this[_0x2baab8(0x360)],_0x4fe85c,_0x3914e3,_0x4385ec,_0x45b164,_0x99cb38);var _0x51e87b=_0x4bbe54[_0x2d4a86+0x1];_0x4bbe54[_0x2d4a86+0x1]=_0x4bbe54[_0x2d4a86+0x3],_0x4bbe54[_0x2d4a86+0x3]=_0x51e87b;},'_doCryptBlock':function(_0x1e0c14,_0x332167,_0x4ebf7d,_0x3a0977,_0x2ec9b7,_0xa301b2,_0x319a27,_0x41feac){for(var _0x3b0600=this['_nRounds'],_0x297270=_0x1e0c14[_0x332167]^_0x4ebf7d[0x0],_0x492450=_0x1e0c14[_0x332167+0x1]^_0x4ebf7d[0x1],_0x360440=_0x1e0c14[_0x332167+0x2]^_0x4ebf7d[0x2],_0x23db4d=_0x1e0c14[_0x332167+0x3]^_0x4ebf7d[0x3],_0x4704fa=0x4,_0x29fa87=0x1;_0x29fa87<_0x3b0600;_0x29fa87++){var _0x27b68a=_0x3a0977[_0x297270>>>0x18]^_0x2ec9b7[_0x492450>>>0x10&0xff]^_0xa301b2[_0x360440>>>0x8&0xff]^_0x319a27[_0x23db4d&0xff]^_0x4ebf7d[_0x4704fa++],_0x3c2c02=_0x3a0977[_0x492450>>>0x18]^_0x2ec9b7[_0x360440>>>0x10&0xff]^_0xa301b2[_0x23db4d>>>0x8&0xff]^_0x319a27[_0x297270&0xff]^_0x4ebf7d[_0x4704fa++],_0x43bad1=_0x3a0977[_0x360440>>>0x18]^_0x2ec9b7[_0x23db4d>>>0x10&0xff]^_0xa301b2[_0x297270>>>0x8&0xff]^_0x319a27[_0x492450&0xff]^_0x4ebf7d[_0x4704fa++],_0x1be616=_0x3a0977[_0x23db4d>>>0x18]^_0x2ec9b7[_0x297270>>>0x10&0xff]^_0xa301b2[_0x492450>>>0x8&0xff]^_0x319a27[_0x360440&0xff]^_0x4ebf7d[_0x4704fa++];_0x297270=_0x27b68a,_0x492450=_0x3c2c02,_0x360440=_0x43bad1,_0x23db4d=_0x1be616;}var _0x27b68a=(_0x41feac[_0x297270>>>0x18]<<0x18|_0x41feac[_0x492450>>>0x10&0xff]<<0x10|_0x41feac[_0x360440>>>0x8&0xff]<<0x8|_0x41feac[_0x23db4d&0xff])^_0x4ebf7d[_0x4704fa++],_0x3c2c02=(_0x41feac[_0x492450>>>0x18]<<0x18|_0x41feac[_0x360440>>>0x10&0xff]<<0x10|_0x41feac[_0x23db4d>>>0x8&0xff]<<0x8|_0x41feac[_0x297270&0xff])^_0x4ebf7d[_0x4704fa++],_0x43bad1=(_0x41feac[_0x360440>>>0x18]<<0x18|_0x41feac[_0x23db4d>>>0x10&0xff]<<0x10|_0x41feac[_0x297270>>>0x8&0xff]<<0x8|_0x41feac[_0x492450&0xff])^_0x4ebf7d[_0x4704fa++],_0x1be616=(_0x41feac[_0x23db4d>>>0x18]<<0x18|_0x41feac[_0x297270>>>0x10&0xff]<<0x10|_0x41feac[_0x492450>>>0x8&0xff]<<0x8|_0x41feac[_0x360440&0xff])^_0x4ebf7d[_0x4704fa++];_0x1e0c14[_0x332167]=_0x27b68a,_0x1e0c14[_0x332167+0x1]=_0x3c2c02,_0x1e0c14[_0x332167+0x2]=_0x43bad1,_0x1e0c14[_0x332167+0x3]=_0x1be616;},'keySize':0x100/0x20});_0x4db3c3[_0x268e87(0x33c)]=_0x13f8a9[_0x268e87(0x167)](_0x4c7d3f);}()),_0x47f8cc[_0x8653b1(0x33c)];}));}(Ve)),Ve[_0x143957(0xfe)];}var Wr=Gr();const Kr=ke(Wr);var Yr=wi();const oi=ke(Yr);var Xe={'exports':{}},qr=Xe['exports'],ai;function zr(){var _0x3f774a=_0x40530a;return ai||(ai=0x1,function(_0x3e5b73,_0x2adb0d){(function(_0x302c6f,_0x76cd2f){var _0x742bb7=_0x192f;_0x3e5b73[_0x742bb7(0xfe)]=_0x76cd2f(ne());}(qr,function(_0x4f1f22){var _0x57f94b=_0x192f;return _0x4f1f22[_0x57f94b(0x1b0)][_0x57f94b(0x34c)];}));}(Xe)),Xe[_0x3f774a(0xfe)];}var Jr=zr();const Xr=ke(Jr);var Ze={'exports':{}},Zr=Ze['exports'],ci;function Qr(){var _0x17ea82=_0x40530a;return ci||(ci=0x1,function(_0x334e33,_0xd4f4d5){(function(_0x456024,_0x260753){var _0x43956b=_0x192f;_0x334e33[_0x43956b(0xfe)]=_0x260753(ne());}(Zr,function(_0x41ad52){var _0x2b83c5=_0x192f;return(function(){var _0x2600d8=_0x192f;if(typeof ArrayBuffer==_0x2600d8(0x1ec)){var _0x15fc43=_0x41ad52,_0xee8e26=_0x15fc43['lib'],_0x5d8050=_0xee8e26[_0x2600d8(0x1ad)],_0xffb500=_0x5d8050[_0x2600d8(0x3a9)],_0x35182a=_0x5d8050[_0x2600d8(0x3a9)]=function(_0xcd7ce4){var _0x3dc55b=_0x2600d8;if(_0xcd7ce4 instanceof ArrayBuffer&&(_0xcd7ce4=new Uint8Array(_0xcd7ce4)),(_0xcd7ce4 instanceof Int8Array||typeof Uint8ClampedArray<'u'&&_0xcd7ce4 instanceof Uint8ClampedArray||_0xcd7ce4 instanceof Int16Array||_0xcd7ce4 instanceof Uint16Array||_0xcd7ce4 instanceof Int32Array||_0xcd7ce4 instanceof Uint32Array||_0xcd7ce4 instanceof Float32Array||_0xcd7ce4 instanceof Float64Array)&&(_0xcd7ce4=new Uint8Array(_0xcd7ce4[_0x3dc55b(0x337)],_0xcd7ce4[_0x3dc55b(0x3c1)],_0xcd7ce4[_0x3dc55b(0x3c3)])),_0xcd7ce4 instanceof Uint8Array){for(var _0x230cf9=_0xcd7ce4[_0x3dc55b(0x3c3)],_0x350fe6=[],_0x340f62=0x0;_0x340f62<_0x230cf9;_0x340f62++)_0x350fe6[_0x340f62>>>0x2]|=_0xcd7ce4[_0x340f62]<<0x18-_0x340f62%0x4*0x8;_0xffb500[_0x3dc55b(0x2b8)](this,_0x350fe6,_0x230cf9);}else _0xffb500[_0x3dc55b(0x2ef)](this,arguments);};_0x35182a['prototype']=_0x5d8050;}}()),_0x41ad52[_0x2b83c5(0x18b)]['WordArray'];}));}(Ze)),Ze[_0x17ea82(0xfe)];}var es=Qr();const ts=ke(es);var Qe={'exports':{}},is=Qe[_0x40530a(0xfe)],hi;function ns(){var _0x4d863d=_0x40530a;return hi||(hi=0x1,function(_0x50411c,_0x1a9bb7){(function(_0x340cd0,_0x3c1ce2,_0x418bb6){var _0x2b1d0b=_0x192f;_0x50411c[_0x2b1d0b(0xfe)]=_0x3c1ce2(ne(),Ai());}(is,function(_0x28ca69){var _0x1e9b8f=_0x192f;return _0x28ca69[_0x1e9b8f(0x240)][_0x1e9b8f(0x138)]={'pad':function(){},'unpad':function(){}},_0x28ca69['pad']['NoPadding'];}));}(Qe)),Qe[_0x4d863d(0xfe)];}var rs=ns();const ss=ke(rs);function os(_0x40a550,_0x9a03ff){var _0x18b130=_0x40530a;const _0x34dc7e=_0x9a03ff-_0x40a550[_0x18b130(0x37d)]%_0x9a03ff,_0x5dbc6f=String['fromCharCode'](_0x34dc7e)[_0x18b130(0x1fe)](_0x34dc7e);return _0x40a550+_0x5dbc6f;}function as(_0x223381,_0x16f62c){var _0x3dfb12=_0x40530a;const _0xf2af42=ts[_0x3dfb12(0x2c6)](0x10),_0x106dce=os(_0x223381,0x10),_0x467e96=Kr[_0x3dfb12(0x1bc)](Xr[_0x3dfb12(0x274)](_0x106dce),oi['parse'](_0x16f62c),{'iv':_0xf2af42,'padding':ss});return _0xf2af42[_0x3dfb12(0x187)](_0x467e96[_0x3dfb12(0x130)])['toString'](oi);}function cs(){var _0x421c68=_0x40530a;const _0x2ee118=_0x25f0f0()[_0x421c68(0x108)];if(_0x2ee118){const _0x578195={'time':Math['floor'](Date[_0x421c68(0x385)]()/0x3e8),'domain':location[_0x421c68(0x2ab)]};return as(JSON['stringify'](_0x578195),_0x2ee118);}}var hs=Object[_0x40530a(0x27d)],_s=Object['getOwnPropertyDescriptor'],ls=(_0xd40562,_0x371d4d,_0x2eeb46,_0x154b7d)=>{var _0x166e4e=_0x40530a;for(var _0x1592d5=_0x154b7d>0x1?void 0x0:_0x154b7d?_s(_0x371d4d,_0x2eeb46):_0x371d4d,_0x36e5ae=_0xd40562[_0x166e4e(0x37d)]-0x1,_0x2611e3;_0x36e5ae>=0x0;_0x36e5ae--)(_0x2611e3=_0xd40562[_0x36e5ae])&&(_0x1592d5=(_0x154b7d?_0x2611e3(_0x371d4d,_0x2eeb46,_0x1592d5):_0x2611e3(_0x1592d5))||_0x1592d5);return _0x154b7d&&_0x1592d5&&hs(_0x371d4d,_0x2eeb46,_0x1592d5),_0x1592d5;},us=(_0x4af407,_0x5afdfa)=>(_0x580495,_0x549dcb)=>_0x5afdfa(_0x580495,_0x549dcb,_0x4af407);let ot=class{constructor(_0x161098){var _0x39a0fc=_0x40530a;this[_0x39a0fc(0x24d)]=_0x161098,this['_initRequestHeader']();}[_0x40530a(0x14f)](){var _0x527295=_0x40530a;this['_httpService'][_0x527295(0x141)]({'interceptor':(_0x258319,_0x31c0c2)=>{var _0x271c1b=_0x527295;const _0x472124=_0x258319[_0x271c1b(0x321)],_0x4a0b1e=cs();return _0x4a0b1e&&_0x472124['set']('x-univer-host',_0x4a0b1e),_0x31c0c2(_0x258319);}});}};ot=ls([us(0x0,_0x48db98(_0x3ce2dc))],ot);var ds=Object[_0x40530a(0x27d)],fs=Object[_0x40530a(0x338)],vs=(_0x2bb614,_0x236f74,_0xb27d3a,_0x54a1e3)=>{for(var _0x19d600=_0x54a1e3>0x1?void 0x0:_0x54a1e3?fs(_0x236f74,_0xb27d3a):_0x236f74,_0x392fed=_0x2bb614['length']-0x1,_0x11b5cd;_0x392fed>=0x0;_0x392fed--)(_0x11b5cd=_0x2bb614[_0x392fed])&&(_0x19d600=(_0x54a1e3?_0x11b5cd(_0x236f74,_0xb27d3a,_0x19d600):_0x11b5cd(_0x19d600))||_0x19d600);return _0x54a1e3&&_0x19d600&&ds(_0x236f74,_0xb27d3a,_0x19d600),_0x19d600;},mt=(_0x2179c5,_0x521cbc)=>(_0x4fad20,_0x529e06)=>_0x521cbc(_0x4fad20,_0x529e06,_0x2179c5);let Ot=class extends _0x18f063{constructor(_0x85f8d4,_0x5068d2,_0x41a146){var _0x431e52=_0x40530a;super(),N(this,'_unitInfo$',new _0x1379a3(null)),N(this,_0x431e52(0x32d),this[_0x431e52(0x3b5)][_0x431e52(0x303)]()),(this['_logService']=_0x85f8d4,this[_0x431e52(0x1db)]=_0x5068d2,this[_0x431e52(0x2ca)]=_0x41a146);}async[_0x40530a(0x151)](_0x229e2d,_0x39b5a1,_0x5f44d2){var _0x1b3bb8=_0x40530a;this[_0x1b3bb8(0x3b5)][_0x1b3bb8(0x362)]({'unitId':_0x229e2d,'type':_0x39b5a1,'subUnitId':_0x5f44d2});let _0x132926=null;switch(_0x39b5a1){case Q[_0x1b3bb8(0x39e)]:{_0x132926=await this[_0x1b3bb8(0x257)](_0x229e2d);break;}case Q[_0x1b3bb8(0x284)]:{_0x132926=await this['_loadDoc'](_0x229e2d);break;}default:{this[_0x1b3bb8(0x278)][_0x1b3bb8(0xf4)](_0x1b3bb8(0x268),'Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}return _0x132926;}async[_0x40530a(0x257)](_0x58c816){var _0x39d904=_0x40530a,_0x1919e8;let _0x49f92c=0x0;const _0x5cb3e4=await((_0x1919e8=this[_0x39d904(0x2ca)])==null?void 0x0:_0x1919e8[_0x39d904(0x2bb)](_0x58c816));return _0x5cb3e4&&(_0x5cb3e4['awaitingChangeset']||_0x5cb3e4[_0x39d904(0x1b5)][_0x39d904(0x37d)]!==0x0)&&(_0x49f92c=_0x5cb3e4[_0x39d904(0x39f)]),_0x49f92c===0x0&&this[_0x39d904(0x278)][_0x39d904(0x2d8)](_0x39d904(0x268),_0x39d904(0x129)),this['_snapshotService'][_0x39d904(0x2e7)](_0x58c816,_0x49f92c);}async['_loadDoc'](_0x57ed18){var _0xa79347=_0x40530a,_0x3be98e;let _0x308cb6=0x0;const _0x582b43=await((_0x3be98e=this[_0xa79347(0x2ca)])==null?void 0x0:_0x3be98e[_0xa79347(0x2bb)](_0x57ed18));return _0x582b43&&(_0x582b43[_0xa79347(0x1d8)]||_0x582b43[_0xa79347(0x1b5)]['length']!==0x0)&&(_0x308cb6=_0x582b43[_0xa79347(0x39f)]),_0x308cb6===0x0&&this['_logService'][_0xa79347(0x2d8)](_0xa79347(0x268),_0xa79347(0x129)),this[_0xa79347(0x1db)][_0xa79347(0x27b)](_0x57ed18,_0x308cb6);}};Ot=vs([mt(0x0,_0x6e98f),mt(0x1,_0x48db98(_0x4e4c12)),mt(0x2,_0x5b33db(J))],Ot);var ps=Object[_0x40530a(0x27d)],ms=Object[_0x40530a(0x338)],gs=(_0x4ecd2b,_0xb26a97,_0x3cb35f,_0x656c8c)=>{var _0x1435cc=_0x40530a;for(var _0x162487=_0x656c8c>0x1?void 0x0:_0x656c8c?ms(_0xb26a97,_0x3cb35f):_0xb26a97,_0xc270dc=_0x4ecd2b[_0x1435cc(0x37d)]-0x1,_0x442421;_0xc270dc>=0x0;_0xc270dc--)(_0x442421=_0x4ecd2b[_0xc270dc])&&(_0x162487=(_0x656c8c?_0x442421(_0xb26a97,_0x3cb35f,_0x162487):_0x442421(_0x162487))||_0x162487);return _0x656c8c&&_0x162487&&ps(_0xb26a97,_0x3cb35f,_0x162487),_0x162487;},gt=(_0x3871d1,_0x17a63a)=>(_0x5e6ad9,_0x5226eb)=>_0x17a63a(_0x5e6ad9,_0x5226eb,_0x3871d1);const Ss=[_0x40530a(0x219),'image/jpeg',_0x40530a(0x2a4),_0x40530a(0x1c8),'image/bmp'],Es=0x5*0x400*0x400,Is=_0x40530a(0x15c),Ts=_0x40530a(0x251),Cs='EXCHANGE_SIGN_URL_SERVER_URL_KEY',Rs=_0x40530a(0x2e1);function _0x192f(_0xb21a9e,_0x4a226f){var _0x5db002=_0x5db0();return _0x192f=function(_0x192f5d,_0x7f5404){_0x192f5d=_0x192f5d-0xdf;var _0x799787=_0x5db002[_0x192f5d];return _0x799787;},_0x192f(_0xb21a9e,_0x4a226f);}let yt=class{constructor(_0x16157c,_0x54dbc3,_0x4e34c4){var _0x524316=_0x40530a;N(this,'_waitCount',0x0),N(this,_0x524316(0x31c),new _0x3da80f()),N(this,'change$',this[_0x524316(0x31c)]),N(this,_0x524316(0x26a),new Map()),(this[_0x524316(0x24d)]=_0x16157c,this[_0x524316(0xf8)]=_0x54dbc3,this[_0x524316(0x305)]=_0x4e34c4);}[_0x40530a(0x2cb)](_0x14dd2a){var _0x5ba2e1=_0x40530a;this['_waitCount']=_0x14dd2a,this[_0x5ba2e1(0x31c)][_0x5ba2e1(0x362)](_0x14dd2a);}['getImageSourceCache'](_0x537d84,_0x54562d){var _0x943f1c=_0x40530a;if(_0x54562d===_0x595b24[_0x943f1c(0x3b6)]){const _0x427e02=new Image();return _0x427e02[_0x943f1c(0x301)]=_0x537d84,_0x427e02;}return this['_imageSourceCache']['get'](_0x537d84);}['addImageSourceCache'](_0x1ccd0c,_0x4fe258,_0x4fda1a){var _0x39a5ce=_0x40530a;_0x4fe258===_0x595b24[_0x39a5ce(0x3b6)]||_0x4fda1a==null||this[_0x39a5ce(0x26a)][_0x39a5ce(0x2da)](_0x1ccd0c,_0x4fda1a);}async[_0x40530a(0x34a)](_0x45cfde){var _0x326f5b=_0x40530a;try{const _0x13b319=this[_0x326f5b(0xee)](this['_getSignURL'](),''+_0x45cfde),_0x255d98=(await this['_httpService'][_0x326f5b(0x27f)](_0x13b319))[_0x326f5b(0x37f)];if(_0x255d98[_0x326f5b(0xf4)]&&_0x255d98['error'][_0x326f5b(0x1fb)]===Ii['OK']){const _0x444390=new URL(_0x255d98[_0x326f5b(0x2cc)],this[_0x326f5b(0x1a3)]())['toString']();return Promise[_0x326f5b(0x198)](_0x444390);}return Promise['reject'](_0x255d98[_0x326f5b(0xf4)]);}catch(_0x20eba2){return Promise['reject'](_0x20eba2);}}async[_0x40530a(0x3c6)](_0x560d27){var _0x17430e=_0x40530a;let _0x10cced='';if(!Ss['includes'](_0x560d27[_0x17430e(0x247)]))return this[_0x17430e(0x392)](),Promise[_0x17430e(0x12a)](new Error(_0x3fbe7b['ERROR_IMAGE_TYPE']));if(_0x560d27['size']>Es)return this[_0x17430e(0x392)](),Promise['reject'](new Error(_0x3fbe7b[_0x17430e(0x231)]));try{const _0x214d83=new FormData();_0x214d83['append'](_0x17430e(0x1dc),_0x560d27);const _0x17d8d5=this[_0x17430e(0x305)][_0x17430e(0x13b)](),_0x2a9af6=_0x17d8d5==null?void 0x0:_0x17d8d5['getUnitId']();if(!_0x2a9af6)throw new Error(_0x17430e(0x28c));const _0x18b967=this['_getUploadFileURL']()+_0x17430e(0x156)+_0x560d27[_0x17430e(0x3a7)][_0x17430e(0x1f3)]()+_0x17430e(0x1c2)+Ti['UnitEmbedded']+_0x17430e(0x281)+encodeURIComponent(_0x2a9af6),_0x31b357=await(await fetch(_0x18b967,{'method':_0x17430e(0x1b6),'body':_0x214d83}))[_0x17430e(0x299)]();if(typeof _0x31b357[_0x17430e(0x267)]!=_0x17430e(0x16a))return this[_0x17430e(0x392)](),Promise[_0x17430e(0x12a)](new Error(_0x3fbe7b[_0x17430e(0x369)]));_0x10cced=_0x31b357['FileId'];}catch{return this[_0x17430e(0x392)](),Promise[_0x17430e(0x12a)](new Error(_0x3fbe7b[_0x17430e(0x369)]));}return new Promise((_0x4fe5dc,_0x496356)=>{var _0x2d11e5=_0x17430e;const _0x2a14f2=new FileReader();_0x2a14f2[_0x2d11e5(0x260)](_0x560d27),_0x2a14f2[_0x2d11e5(0x1d9)]=_0x4f83db=>{var _0x452d56=_0x2d11e5,_0x4c6ae3;const _0x424b4a=(_0x4c6ae3=_0x4f83db[_0x452d56(0x26d)])==null?void 0x0:_0x4c6ae3[_0x452d56(0x227)];if(_0x424b4a==null){this[_0x452d56(0x392)](),_0x496356(new Error(_0x3fbe7b['ERROR_IMAGE']));return;}const _0x22d973=_0x544210[_0x452d56(0x347)](0x6);_0x4fe5dc({'imageId':_0x22d973,'imageSourceType':_0x595b24[_0x452d56(0x3cf)],'source':_0x10cced,'base64Cache':_0x424b4a,'status':_0x3fbe7b[_0x452d56(0x38d)]}),this[_0x452d56(0x392)]();};});}[_0x40530a(0x289)](){var _0x5b95b8=_0x40530a,_0x2f7e84,_0x5a4d37;const _0x8c4932=this[_0x5b95b8(0xf8)][_0x5b95b8(0x21f)](Is),_0x5a5582=this['_configService'][_0x5b95b8(0x21f)](q);return(_0x5a4d37=(_0x2f7e84=_0x5a5582==null?void 0x0:_0x5a5582[_0x5b95b8(0x1a5)])!=null?_0x2f7e84:_0x8c4932)!=null?_0x5a4d37:Ts;}['_getSignURL'](){var _0x1b7c96=_0x40530a,_0x176435,_0xd320bd;const _0x5d6077=this[_0x1b7c96(0xf8)][_0x1b7c96(0x21f)](Cs),_0x4eac84=this[_0x1b7c96(0xf8)]['getConfig'](q);return(_0xd320bd=(_0x176435=_0x4eac84==null?void 0x0:_0x4eac84[_0x1b7c96(0x39a)])!=null?_0x176435:_0x5d6077)!=null?_0xd320bd:Rs;}[_0x40530a(0x1a3)](){var _0x253810=_0x40530a,_0x51d2d3;const _0x1a0147=this[_0x253810(0xf8)][_0x253810(0x21f)](q);return(_0x51d2d3=_0x1a0147==null?void 0x0:_0x1a0147[_0x253810(0x3ce)])!=null?_0x51d2d3:location[_0x253810(0x2ea)];}[_0x40530a(0xee)](_0x1fe262,_0x52de53){var _0x48377d=_0x40530a;return _0x1fe262['replace'](_0x48377d(0x22c),_0x52de53);}[_0x40530a(0x392)](){var _0xb5e2f3=_0x40530a;this[_0xb5e2f3(0x371)]-=0x1,this['_change$'][_0xb5e2f3(0x362)](this[_0xb5e2f3(0x371)]);}};yt=gs([gt(0x0,_0x48db98(_0x3ce2dc)),gt(0x1,_0x5b62c8),gt(0x2,_0x48db98(_0x5609db))],yt);var bs=Object['defineProperty'],Os=Object['getOwnPropertyDescriptor'],ys=(_0x36bb92,_0x53f8f2,_0x5132f0,_0x20e154)=>{var _0x29a4f5=_0x40530a;for(var _0x2cbaa5=_0x20e154>0x1?void 0x0:_0x20e154?Os(_0x53f8f2,_0x5132f0):_0x53f8f2,_0x4bb968=_0x36bb92[_0x29a4f5(0x37d)]-0x1,_0x3268b1;_0x4bb968>=0x0;_0x4bb968--)(_0x3268b1=_0x36bb92[_0x4bb968])&&(_0x2cbaa5=(_0x20e154?_0x3268b1(_0x53f8f2,_0x5132f0,_0x2cbaa5):_0x3268b1(_0x2cbaa5))||_0x2cbaa5);return _0x20e154&&_0x2cbaa5&&bs(_0x53f8f2,_0x5132f0,_0x2cbaa5),_0x2cbaa5;},_i=(_0x3a7dd9,_0x4c6328)=>(_0x5b4648,_0x42db19)=>_0x4c6328(_0x5b4648,_0x42db19,_0x3a7dd9);const Ns=_0x40530a(0x2ac);let Nt=class{constructor(_0x254027,_0x2cddd9){var _0x563c5f=_0x40530a;this['_configService']=_0x254027,this[_0x563c5f(0x174)]=_0x2cddd9;}['_getAPIPrefixPath'](){var _0x2d36f=_0x40530a,_0x3b59a8,_0x16b8c4;const _0x19143e=this[_0x2d36f(0xf8)][_0x2d36f(0x21f)](Pi),_0x1afff4=this[_0x2d36f(0xf8)][_0x2d36f(0x21f)](q);return(_0x16b8c4=(_0x3b59a8=_0x1afff4==null?void 0x0:_0x1afff4['authzUrl'])!=null?_0x3b59a8:_0x19143e)!=null?_0x16b8c4:Ns;}async[_0x40530a(0x395)](_0x10dada){var _0x423bbf=_0x40530a;const _0x655a4=this[_0x423bbf(0x19d)]()+_0x423bbf(0x1e6);return{'list':[{'title':_0x423bbf(0x3aa),'mentions':(await this['_HTTPService'][_0x423bbf(0x27f)](_0x655a4,{'params':{'objectID':_0x10dada['unitId'],'unitID':_0x10dada[_0x423bbf(0x307)]}}))[_0x423bbf(0x37f)][_0x423bbf(0x184)][_0x423bbf(0x20f)](_0x2d4bed=>({'objectId':_0x2d4bed['id'],'name':_0x2d4bed[_0x423bbf(0x25a)][_0x423bbf(0x300)],'metadata':{'icon':_0x2d4bed[_0x423bbf(0x25a)][_0x423bbf(0x236)]},'label':_0x2d4bed[_0x423bbf(0x25a)][_0x423bbf(0x300)],'objectType':_0x791ab[_0x423bbf(0x391)]})),'metadata':{},'type':_0x791ab[_0x423bbf(0x391)]}]};}};Nt=ys([_i(0x0,_0x48db98(_0x5b62c8)),_i(0x1,_0x48db98(_0x3ce2dc))],Nt);var Ds=Object['defineProperty'],Ps=Object[_0x40530a(0x338)],ws=(_0x3d3e9d,_0x3831b3,_0x53d4dd,_0x1417c0)=>{var _0x22b1ee=_0x40530a;for(var _0x235c92=_0x1417c0>0x1?void 0x0:_0x1417c0?Ps(_0x3831b3,_0x53d4dd):_0x3831b3,_0x318f24=_0x3d3e9d[_0x22b1ee(0x37d)]-0x1,_0x5d3851;_0x318f24>=0x0;_0x318f24--)(_0x5d3851=_0x3d3e9d[_0x318f24])&&(_0x235c92=(_0x1417c0?_0x5d3851(_0x3831b3,_0x53d4dd,_0x235c92):_0x5d3851(_0x235c92))||_0x235c92);return _0x1417c0&&_0x235c92&&Ds(_0x3831b3,_0x53d4dd,_0x235c92),_0x235c92;},Se=(_0x21a0df,_0x31592a)=>(_0x411c79,_0x94a20)=>_0x31592a(_0x411c79,_0x94a20,_0x21a0df);let at=class extends _0x18f063{constructor(_0xdb1e9f,_0x5a4ddd,_0x4730aa,_0x1e0359,_0x2b46d0,_0x307122,_0x1c7dbc){var _0x3baf90=_0x40530a;super(),this['_injector']=_0xdb1e9f,this[_0x3baf90(0x305)]=_0x5a4ddd,this['_permissionService']=_0x4730aa,this[_0x3baf90(0x2c4)]=_0x1e0359,this[_0x3baf90(0x26c)]=_0x2b46d0,this[_0x3baf90(0x37c)]=_0x307122,this[_0x3baf90(0x293)]=_0x1c7dbc,this[_0x3baf90(0xe0)](),this[_0x3baf90(0x136)]();}['_initCloseConn'](){var _0x595ae7=_0x40530a;const _0xdaddb=async _0x364a8f=>{var _0x59994e=_0x192f;(await this[_0x59994e(0x2c4)][_0x59994e(0x3e8)](_0x364a8f))[_0x59994e(0x3e5)][_0x59994e(0x330)](_0x55f065(_0x4437bb=>_0x4437bb['eventID']===_0x4b8a98['SHOULD_CLOSE_CONN']),_0x14b72c(this[_0x59994e(0x1ce)]))['subscribe'](_0x4233dc=>{var _0x2cfde9=_0x59994e;const _0x3633dd=_0x4233dc,{reason:_0x20bdc0}=_0x3633dd[_0x2cfde9(0x311)];this['_collaborationUIEventService']['emitEvent']({'id':se['CLOSE_ROOM'],'data':_0x20bdc0}),this['_permissionService'][_0x2cfde9(0x2f9)](new _0x57f5ad(_0x364a8f)['id'],!0x1),this[_0x2cfde9(0x2c4)]['closeSession'](_0x364a8f);});};_0x583ffc(this[_0x595ae7(0x305)][_0x595ae7(0x250)](_0x4d2a26[_0x595ae7(0x39e)]),this[_0x595ae7(0x305)][_0x595ae7(0x250)](_0x4d2a26[_0x595ae7(0x284)]))[_0x595ae7(0x330)](_0x130e36(_0x5361cf=>_0x5361cf['getUnitId']()),_0x55f065(_0x1b62f3=>!_0x3b8065(_0x1b62f3)),_0x14b72c(this[_0x595ae7(0x1ce)]))['subscribe'](_0x2b9a74=>{_0xdaddb(_0x2b9a74);});}[_0x40530a(0xe0)](){var _0x40390f=_0x40530a;const _0x3ac35b=async _0x5f3d1b=>{var _0x427a58=_0x192f;const _0x5e9724=await this['_collaborationSessionService'][_0x427a58(0x3e8)](_0x5f3d1b),_0x31414b=this['_injector'][_0x427a58(0x27f)](_0x146966);_0x5e9724['event$']['pipe'](_0x55f065(_0x3ffcc4=>_0x3ffcc4['eventID']===_0x4b8a98[_0x427a58(0x1ae)]),_0x14b72c(this[_0x427a58(0x1ce)]))[_0x427a58(0x1af)](_0x3ab65b=>{var _0x388f8d=_0x427a58;const _0x51c6c6=_0x3ab65b,{objectId:_0xa302eb}=_0x51c6c6['data'];_0xa302eb===_0x5f3d1b?_0x31414b[_0x388f8d(0x271)](_0x5f3d1b):_0x31414b[_0x388f8d(0x127)](_0x5f3d1b,_0xa302eb);});};_0x583ffc(this[_0x40390f(0x305)]['getTypeOfUnitAdded$'](_0x4d2a26[_0x40390f(0x39e)]),this['_univerInstanceService'][_0x40390f(0x250)](_0x4d2a26[_0x40390f(0x284)]))[_0x40390f(0x330)](_0x130e36(_0x35443e=>_0x35443e['getUnitId']()),_0x55f065(_0x759776=>!_0x3b8065(_0x759776)),_0x14b72c(this[_0x40390f(0x1ce)]))[_0x40390f(0x1af)](_0x30facf=>{_0x3ac35b(_0x30facf);});}};at=ws([Se(0x0,_0x48db98(_0x19dc6b)),Se(0x1,_0x5609db),Se(0x2,_0x2912cc),Se(0x3,_0x48db98(Le)),Se(0x4,_0x48db98(pe)),Se(0x5,_0x544837),Se(0x6,_0x84d590)],at);var Us=Object[_0x40530a(0x27d)],As=Object[_0x40530a(0x338)],xs=(_0x37a4e2,_0x1c974f,_0x47e798,_0x485140)=>{var _0xde9efb=_0x40530a;for(var _0x49ca69=_0x485140>0x1?void 0x0:_0x485140?As(_0x1c974f,_0x47e798):_0x1c974f,_0x130b85=_0x37a4e2[_0xde9efb(0x37d)]-0x1,_0x3b5284;_0x130b85>=0x0;_0x130b85--)(_0x3b5284=_0x37a4e2[_0x130b85])&&(_0x49ca69=(_0x485140?_0x3b5284(_0x1c974f,_0x47e798,_0x49ca69):_0x3b5284(_0x49ca69))||_0x49ca69);return _0x485140&&_0x49ca69&&Us(_0x1c974f,_0x47e798,_0x49ca69),_0x49ca69;},li=(_0x4b44fa,_0x548218)=>(_0x1d15b7,_0x2bdd18)=>_0x548218(_0x1d15b7,_0x2bdd18,_0x4b44fa);let Dt=class{constructor(_0x272fa5,_0x36e65a){var _0x8b3c51=_0x40530a;this[_0x8b3c51(0xf8)]=_0x272fa5,this[_0x8b3c51(0x24d)]=_0x36e65a;}async['getUnitOnRev'](_0x1194b4,_0x53e993){var _0x36a3e1=_0x40530a,_0x2b79f0;const {unitID:_0x54e3d0,type:_0x515749,revision:_0x5cec67=0x0}=_0x53e993,_0x511c93=this['getSnapshotAPIPath']()+'/'+_0x515749+_0x36a3e1(0x329)+_0x54e3d0+'/rev/'+_0x5cec67,_0x513182=(await this[_0x36a3e1(0x24d)][_0x36a3e1(0x27f)](_0x511c93))[_0x36a3e1(0x37f)],_0x581df1=(_0x2b79f0=_0x513182['snapshot'])==null?void 0x0:_0x2b79f0[_0x36a3e1(0x1be)];if(_0x581df1){const _0x4f840e=_0x581df1==null?void 0x0:_0x581df1[_0x36a3e1(0x20d)],_0xb7c52f=_0x35e2bc[_0x36a3e1(0x3dd)](_0xcf2ac2(_0x4f840e));_0x581df1[_0x36a3e1(0x20d)]=_0xb7c52f,Object[_0x36a3e1(0x102)](_0x581df1[_0x36a3e1(0x1a1)])['forEach'](([,_0x256bce])=>{var _0x15bbd1=_0x36a3e1;const _0x271b9e=_0x256bce[_0x15bbd1(0x20d)],_0x213c7c=_0x35e2bc[_0x15bbd1(0x3dd)](_0xcf2ac2(_0x271b9e));_0x256bce[_0x15bbd1(0x20d)]=_0x213c7c;});}return _0x513182;}async[_0x40530a(0x13c)](_0x440848,_0xd5d14){var _0x9cb5d3=_0x40530a;const {unitID:_0x592822,type:_0x34fbfe,blockID:_0x30259a}=_0xd5d14,_0x3099ec=this[_0x9cb5d3(0x135)]()+'/'+_0x34fbfe+'/unit/'+_0x592822+_0x9cb5d3(0xec)+_0x30259a;return(await this[_0x9cb5d3(0x24d)][_0x9cb5d3(0x27f)](_0x3099ec))[_0x9cb5d3(0x37f)];}async[_0x40530a(0x383)](_0x174fa0,_0xaca63){var _0x40f179=_0x40530a;const {unitID:_0x5722d9,type:_0x41acbe,blockID:_0x126510}=_0xaca63,_0x4d2085=this[_0x40f179(0x135)]()+_0x40f179(0xec)+_0x41acbe+_0x40f179(0x329)+_0x5722d9+_0x40f179(0xec)+_0x126510;return(await this[_0x40f179(0x24d)]['get'](_0x4d2085))[_0x40f179(0x37f)];}async[_0x40530a(0x233)](_0x40e2b7,_0x44489b){var _0x1d6e24=_0x40530a;const {unitID:_0x51dc3e,type:_0x295bfa,from:_0x215aab,to:_0x2faaaf}=_0x44489b,_0x4af6e3=this[_0x1d6e24(0x135)]()+'/'+_0x295bfa+_0x1d6e24(0x329)+_0x51dc3e+_0x1d6e24(0x25d)+_0x215aab+_0x1d6e24(0x216)+_0x2faaaf;return(await this['_httpService'][_0x1d6e24(0x27f)](_0x4af6e3))[_0x1d6e24(0x37f)];}[_0x40530a(0x217)](){var _0x14dcc1=_0x40530a,_0x4e42ac;return(_0x4e42ac=this[_0x14dcc1(0xf8)][_0x14dcc1(0x21f)](Tn))!=null?_0x4e42ac:this[_0x14dcc1(0x135)]();}['_getAPIPrefix'](){var _0x1fd722=_0x40530a,_0x3a1bdb,_0x492793;const _0x80b447=this[_0x1fd722(0xf8)][_0x1fd722(0x21f)](En),_0x120093=this[_0x1fd722(0xf8)]['getConfig'](q);return(_0x492793=(_0x3a1bdb=_0x120093==null?void 0x0:_0x120093['snapshotServerUrl'])!=null?_0x3a1bdb:_0x80b447)!=null?_0x492793:In;}async[_0x40530a(0x35b)](_0x4268f5,_0x37aa4c){var _0x1c8104=_0x40530a;const _0x948e42=_0x1c8104(0x158)+_0x37aa4c['type']+_0x1c8104(0x329)+_0x37aa4c[_0x1c8104(0x2f7)]+'/resources';return(await this['_httpService'][_0x1c8104(0x27f)](_0x948e42,{'params':{'resourceId':JSON['stringify'](_0x37aa4c[_0x1c8104(0x2a1)])}}))['body'];}[_0x40530a(0x2e2)](){var _0x1779d5=_0x40530a;throw new Error(_0x1779d5(0x3b0));}['saveSheetBlock'](){var _0x2b4519=_0x40530a;throw new Error(_0x2b4519(0x3b0));}[_0x40530a(0x2bc)](){var _0x1d2c7b=_0x40530a;throw new Error(_0x1d2c7b(0x3b0));}[_0x40530a(0x2ad)](){var _0x167a30=_0x40530a;throw new Error(_0x167a30(0x3b0));}[_0x40530a(0x145)](){var _0x5661f8=_0x40530a;throw new Error(_0x5661f8(0x3b0));}};Dt=xs([li(0x0,_0x5b62c8),li(0x1,_0x48db98(_0x3ce2dc))],Dt);var Ls=Object[_0x40530a(0x27d)],Ms=Object['getOwnPropertyDescriptor'],$s=(_0x1915fd,_0x4a5d34,_0x449511,_0x309058)=>{var _0x591784=_0x40530a;for(var _0x45b274=_0x309058>0x1?void 0x0:_0x309058?Ms(_0x4a5d34,_0x449511):_0x4a5d34,_0x169c74=_0x1915fd[_0x591784(0x37d)]-0x1,_0x314160;_0x169c74>=0x0;_0x169c74--)(_0x314160=_0x1915fd[_0x169c74])&&(_0x45b274=(_0x309058?_0x314160(_0x4a5d34,_0x449511,_0x45b274):_0x314160(_0x45b274))||_0x45b274);return _0x309058&&_0x45b274&&Ls(_0x4a5d34,_0x449511,_0x45b274),_0x45b274;},Ae=(_0x794a65,_0x27dd01)=>(_0x19bdff,_0x4a733c)=>_0x27dd01(_0x19bdff,_0x4a733c,_0x794a65);let Pt=class extends _0x543e42{constructor(_0x30db00,_0x1d70a4,_0x57d8bf,_0x4ca199,_0x12a8a1){var _0x33bf03=_0x40530a;super(_0x30db00,_0x1d70a4,_0x57d8bf),this[_0x33bf03(0x2cd)]=_0x4ca199,this[_0x33bf03(0x278)]=_0x12a8a1;}[_0x40530a(0x168)](_0x521068,_0x581263){var _0x5b3dd3=_0x40530a;const _0x15cb82=this[_0x5b3dd3(0x19f)](_0x521068);if(_0x15cb82)try{const _0x594e28=this[_0x5b3dd3(0x2a3)](_0x15cb82,_0x581263);this[_0x5b3dd3(0x2e6)](_0x521068,_0x594e28);}catch(_0x52ff55){this['_logService'][_0x5b3dd3(0xf4)]('[CollaborationUndoRedoService]',_0x52ff55),this[_0x5b3dd3(0x2b3)](_0x521068);}const _0x5edee8=this[_0x5b3dd3(0xf7)](_0x521068);if(_0x5edee8)try{const _0x5a5593=this[_0x5b3dd3(0x2a3)](_0x5edee8,_0x581263);this['_substituteRedoStack'](_0x521068,_0x5a5593);}catch(_0x58edb8){this[_0x5b3dd3(0x278)][_0x5b3dd3(0xf4)](_0x58edb8),this[_0x5b3dd3(0x2fc)](_0x521068);}}[_0x40530a(0x2b3)](_0x13ac9b){var _0x272097=_0x40530a;const _0x57f21d=this[_0x272097(0x19f)](_0x13ac9b);_0x57f21d&&(_0x57f21d[_0x272097(0x37d)]=0x0,this[_0x272097(0x22d)]());}[_0x40530a(0x2fc)](_0x4fbfb8){var _0x3527f1=_0x40530a;const _0x1a0bc6=this[_0x3527f1(0xf7)](_0x4fbfb8);_0x1a0bc6&&(_0x1a0bc6['length']=0x0,this['_updateStatus']());}[_0x40530a(0x2e6)](_0x49a165,_0x372c84){var _0x3820be=_0x40530a;this['_undoStacks'][_0x3820be(0x2da)](_0x49a165,_0x372c84),this['_updateStatus']();}['_substituteRedoStack'](_0x1b5664,_0x58a3ff){var _0x7e76ab=_0x40530a;this[_0x7e76ab(0x142)][_0x7e76ab(0x2da)](_0x1b5664,_0x58a3ff),this[_0x7e76ab(0x22d)]();}[_0x40530a(0x2a3)](_0x138f5b,_0x16bfb8){var _0x5a5c52=_0x40530a;const _0x439f7a=[];let _0x212f3f=_0x16bfb8,_0x1614d1=_0x16bfb8;for(let _0x32ccf1=_0x138f5b[_0x5a5c52(0x37d)]-0x1;_0x32ccf1>=0x0;_0x32ccf1--){const {unitID:_0x54ce71,undoMutations:_0x3e7ff8,redoMutations:_0x45cb5d}=_0x138f5b[_0x32ccf1],_0x3e5a59=this['_transformService'][_0x5a5c52(0x225)](_0x212f3f,_0x3e7ff8),_0x46ef8b=this[_0x5a5c52(0x2cd)][_0x5a5c52(0x225)](_0x1614d1,_0x45cb5d);if(_0x578157(_0x3e5a59)||_0x578157(_0x46ef8b)){this['_logService'][_0x5a5c52(0xf4)](_0x5a5c52(0x24c),_0x5a5c52(0x11f),_0x3e5a59,_0x46ef8b);break;}_0x212f3f=_0x3e5a59['c1Prime'],_0x1614d1=_0x46ef8b['c1Prime'],_0x439f7a[_0x5a5c52(0x20a)]({'unitID':_0x54ce71,'undoMutations':_0x3e5a59[_0x5a5c52(0xf0)],'redoMutations':_0x46ef8b[_0x5a5c52(0xf0)]});}return _0x439f7a[_0x5a5c52(0x140)]();}};Pt=$s([Ae(0x0,_0x5609db),Ae(0x1,_0xc6fb7a),Ae(0x2,_0x353605),Ae(0x3,_0x3b018c),Ae(0x4,_0x6e98f)],Pt);var xi=Object[_0x40530a(0x27d)],Hs=Object[_0x40530a(0x338)],ks=(_0x2cd91b,_0x520101,_0x4e23e3)=>_0x520101 in _0x2cd91b?xi(_0x2cd91b,_0x520101,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4e23e3}):_0x2cd91b[_0x520101]=_0x4e23e3,js=(_0x1cfce5,_0x404868,_0x359115,_0x4ee7b2)=>{var _0x28087d=_0x40530a;for(var _0x39b47f=_0x4ee7b2>0x1?void 0x0:_0x4ee7b2?Hs(_0x404868,_0x359115):_0x404868,_0x2a3cc1=_0x1cfce5[_0x28087d(0x37d)]-0x1,_0x51cd0f;_0x2a3cc1>=0x0;_0x2a3cc1--)(_0x51cd0f=_0x1cfce5[_0x2a3cc1])&&(_0x39b47f=(_0x4ee7b2?_0x51cd0f(_0x404868,_0x359115,_0x39b47f):_0x51cd0f(_0x39b47f))||_0x39b47f);return _0x4ee7b2&&_0x39b47f&&xi(_0x404868,_0x359115,_0x39b47f),_0x39b47f;},St=(_0x1dcb26,_0x3bebc7)=>(_0x3c0e2a,_0xe72980)=>_0x3bebc7(_0x3c0e2a,_0xe72980,_0x1dcb26),Bs=(_0x337716,_0x28f915,_0x3f290f)=>ks(_0x337716,_0x28f915+'',_0x3f290f);const Fs=_0x40530a(0x125);let wt=class extends _0x3596ec{constructor(_0x9fc2e2=Wt,_0x3126d0,_0x14d9f5,_0x3a7ae6){var _0x564127=_0x40530a;super(),this[_0x564127(0x104)]=_0x9fc2e2,this[_0x564127(0x278)]=_0x3126d0,this['_injector']=_0x14d9f5,this[_0x564127(0xf8)]=_0x3a7ae6;const {..._0x1899a7}=_0x4e300f({},Wt,this[_0x564127(0x104)]);this[_0x564127(0xf8)]['setConfig'](q,_0x1899a7);}[_0x40530a(0x249)](){var _0x5cc447=_0x40530a;this[_0x5cc447(0x2dc)](),this[_0x5cc447(0x29d)]();}[_0x40530a(0x2dc)](){var _0x59d70e=_0x40530a,_0x3215d7,_0x131384,_0x409b97,_0x1cc046;this[_0x59d70e(0x3e0)][_0x59d70e(0x2e9)](_0x84d590)&&this[_0x59d70e(0x278)][_0x59d70e(0xf4)]('[UniverCollaborationClientPlugin]',_0x59d70e(0x133));const _0x5eb18e=_0x520889([[_0x84d590,{'useClass':Pt}],[Le],[xe],[it],[st],[ot],[Ri],[at],[pe],[Ot],[Ci,{'useClass':(_0x131384=(_0x3215d7=this[_0x59d70e(0x104)])==null?void 0x0:_0x3215d7[_0x59d70e(0x365)])!=null?_0x131384:Et}],[_0x513fd2,{'useClass':Dt}],[_0x544837,{'useClass':bt}],[_0x27a32c,{'useClass':yt}],[_0x13150e,{'useClass':Nt}],[rt],[Rt]],(_0x409b97=this['_config'])==null?void 0x0:_0x409b97[_0x59d70e(0x296)]);if(!((_0x1cc046=this[_0x59d70e(0x104)])!=null&&_0x1cc046[_0x59d70e(0x39c)])){const _0x3a8927=_0x5eb18e[_0x59d70e(0x34e)](([_0x52586f])=>_0x52586f===ht);_0x3a8927!==-0x1&&_0x5eb18e['splice'](_0x3a8927,0x1);}_0xd035a1(this[_0x59d70e(0x3e0)],_0x5eb18e);}[_0x40530a(0x29d)](){var _0x22bb7c=_0x40530a,_0x3db6ff,_0x38878d,_0x496b1d;this[_0x22bb7c(0x3e0)]['get'](_0x3ce2dc)[_0x22bb7c(0x141)]({'priority':0x14,'interceptor':_0x2399ec({'maxParallel':0x6})}),(_0x3db6ff=this['_config'])!=null&&_0x3db6ff['enableOfflineEditing']||(_0x38878d=this['_injector'][_0x22bb7c(0x27f)](J,_0x44fa0b[_0x22bb7c(0x3d9)]))==null||_0x38878d[_0x22bb7c(0x3ca)](),(_0x496b1d=this[_0x22bb7c(0x104)])!=null&&_0x496b1d['enableAuthServer']&&_0x12b182(this[_0x22bb7c(0x3e0)],[[st]]),_0x12b182(this[_0x22bb7c(0x3e0)],[[ot],[rt],[at]]);}};Bs(wt,'pluginName',Fs),wt=js([_0x3e377d(_0x505413,_0x2ed35b,_0x13bd6f),St(0x1,_0x6e98f),St(0x2,_0x48db98(_0x19dc6b)),St(0x3,_0x5b62c8)],wt);export{Pi as AUTHZ_URL_KEY,bt as AuthzIoHttpService,ue as AwaitingState,ae as AwaitingWithPendingState,q as COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,Un as COLLAB_SUBMIT_CHANGESET_URL_KEY,Rn as COLLAB_WEB_SOCKET_URL_KEY,rt as CollaborationController,nt as CollaborationEntity,yt as CollaborationImageIoService,It as CollaborationSession,Le as CollaborationSessionService,Et as CollaborationSocketService,yi as CollaborationStatus,se as CollaborationUIEventId,pe as CollaborationUIEventService,Pt as CollaborativeUndoRedoService,Ri as CommentService,de as ConflictState,bn as DEFAULT_COLLAB_WEB_SOCKET_URL,ro as DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT,Ot as DataLoaderService,Tt as DocCollaborationEntity,te as FetchingMissState,yn as HEARTBEAT_INTERVAL_KEY,Si as HEARTBEAT_TIMEOUT_KEY,Ci as ICollaborationSocketService,J as ILocalCacheService,Mn as INetworkConditionService,ht as ISingleActiveUnitService,io as LOCAL_CACHE_INTERVAL,to as LOCAL_CACHE_INTERVAL_KEY,xn as LOGIN_URL_KEY,xe as MemberService,Nt as MentionIoHttpService,fe as OfflineState,oe as PendingState,no as REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY,Pn as RETRY_CONNECTING_MAX_COUNT_KEY,eo as SEND_CHANGESET_TIMEOUT_KEY,En as SNAPSHOT_SERVER_URL_KEY,Tn as SNAPSHOT_URL_KEY,Te as SessionStatus,Ct as SheetCollaborationEntity,it as SheetTransformSelectionsService,Dt as SnapshotServerOverHTTPService,De as SyncedState,bi as UnitStatus,wt as UniverCollaborationClientPlugin,$n as deserializeToCombResponse,so as getLocalCacheKey,Hn as serializeCombRequest};
|