@univerjs-pro/collaboration-client 0.5.4 → 0.5.5-experimental.20250123-34738ff

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- var _0x24947f=_0x2266;(function(_0x5120ce,_0x212f50){var _0x227ba1=_0x2266,_0x5b539c=_0x5120ce();while(!![]){try{var _0x735090=parseInt(_0x227ba1(0x17f))/0x1+-parseInt(_0x227ba1(0x409))/0x2*(parseInt(_0x227ba1(0x161))/0x3)+parseInt(_0x227ba1(0x32a))/0x4+parseInt(_0x227ba1(0x3d2))/0x5*(-parseInt(_0x227ba1(0x1ac))/0x6)+parseInt(_0x227ba1(0x22d))/0x7+-parseInt(_0x227ba1(0x1d2))/0x8*(parseInt(_0x227ba1(0x1d8))/0x9)+parseInt(_0x227ba1(0x254))/0xa*(-parseInt(_0x227ba1(0x2a3))/0xb);if(_0x735090===_0x212f50)break;else _0x5b539c['push'](_0x5b539c['shift']());}catch(_0x1ffb6c){_0x5b539c['push'](_0x5b539c['shift']());}}}(_0x395a,0xd3368));var Li=Object[_0x24947f(0x2ee)],Mi=(_0x41cf60,_0x38cd3b,_0x1f81c6)=>_0x38cd3b in _0x41cf60?Li(_0x41cf60,_0x38cd3b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1f81c6}):_0x41cf60[_0x38cd3b]=_0x1f81c6,N=(_0x13655a,_0x4468e2,_0x5d1e81)=>Mi(_0x13655a,typeof _0x4468e2!=_0x24947f(0x240)?_0x4468e2+'':_0x4468e2,_0x5d1e81);import{createIdentifier as _0x54590c,Inject as _0x2c893e,Injector as _0x47c619,Disposable as _0x99d30c,DisposableCollection as _0x3e4306,toDisposable as _0x50d33e,IConfigService as _0x14e586,ILogService as _0xb67ae9,UserManagerService as _0x3b1d08,UniverInstanceType as _0x5289d3,IUniverInstanceService as _0x1443af,LocaleService as _0x4f5132,Optional as _0x433af4,RxDisposable as _0xd51a1a,Tools as _0x5aefb7,Rectangle as _0x591d96,ICommandService as _0xb31905,JSONX as _0x4d41d7,CommandType as _0x2f0eda,IPermissionService as _0x2ee679,IUndoRedoService as _0x6cc440,sequenceExecute as _0x14706b,Workbook as _0x2568af,MentionType as _0x5dc93c,IAuthzIoService as _0x353692,isInternalEditorID as _0x27d82c,LocalUndoRedoService as _0x3f3940,IContextService as _0x41374f,DependentOn as _0x1a63b7,Plugin as _0x52c535,merge as _0x267ba1,mergeOverrideWithDependencies as _0xe2a3a9,IMentionIOService as _0x5a36b0,registerDependencies as _0x365908,Quantity as _0x2d5d77,touchDependencies as _0x571d78}from'@univerjs/core';import{Subject as _0xf92f12,merge as _0x14b0b2,of as _0x3ddd94,BehaviorSubject as _0x4e33c6,takeUntil as _0x5d80f9,ReplaySubject as _0x38d184,take as _0x56ccab,map as _0x2dc63b,shareReplay as _0x504617,firstValueFrom as _0x15e76c,concatMap as _0x9dc838}from'rxjs';import{map as _0x5e6a8b,take as _0x16c6ff,filter as _0x435be6,delay as _0x335d30,takeUntil as _0x18dbba}from'rxjs/operators';import{HTTPService as _0x2ccc1a,ISocketService as _0x597eb0,MergeInterceptorFactory as _0x30e3c1,HTTPRequest as _0x4db6ae,UniverNetworkPlugin as _0x227a87,ThresholdInterceptorFactory as _0x95300f}from'@univerjs/network';import{CollaborationEvent as _0x5b603b,parseChangesetToProtocol as _0x572073,ISnapshotServerService as _0x2013f0,isTransformMutationsWithChangesetSuccess as _0x3229d7,ITransformService as _0x303fbe,mapDocumentTypeToUniverType as _0xbcd09c,RevisionService as _0x4c63f1,isTransformChangesetsSuccess as _0x3b13ac,CompressMutationService as _0x1d59ea,parseProtocolChangeset as _0x21ca95,SnapshotService as _0x35ae70,textEncoder as _0x663c9c,b64DecodeUnicode as _0x2264c9,isTransformMutationsWithChangesetFailure as _0x732167,UniverCollaborationPlugin as _0x42c108}from'@univerjs-pro/collaboration';import{ITelemetryService as _0x55d84e}from'@univerjs/telemetry';import{RichTextEditingMutation as _0x5ea005}from'@univerjs/docs';import{SheetsSelectionsService as _0xdb1513,SetSelectionsOperation as _0x26ab67,InsertSheetMutation as _0xbe7bb1,EmptyMutation as _0x240145,WorkbookEditablePermission as _0x5ec447,SheetPermissionInitController as _0x397b93,UniverSheetsPlugin as _0x3d3f1a}from'@univerjs/sheets';import{ImageSourceType as _0x3456fa,ImageUploadStatusType as _0x6d133d,IImageIoService as _0x599b72}from'@univerjs/drawing';import{getGlobalObject as _0x54ad49}from'@univerjs-pro/license';const En=_0x24947f(0x3f6),In=_0x24947f(0x363),Tn=_0x24947f(0x1a4),eo=_0x24947f(0x29c),Cn=0x7d0,bn=_0x24947f(0x220),Rn=_0x24947f(0x27c),On='/universer-api/user/session-ticket',yn=_0x24947f(0x2e8),Nn=0x7530,Si='HEARTBEAT_TIMEOUT',Ei=0x4e20,Dn=0x4e20,Pn=_0x24947f(0x328),wn=0x3,to=_0x24947f(0x3b7),io=0x3e8,Un=_0x24947f(0x30d),An=_0x24947f(0x3eb),xn=_0x24947f(0x3ba),Ln=_0x24947f(0x2b1),no='REMOTE_UNISCRIPT_EXECUTION_ENDPOINT',ro=_0x24947f(0x434);var Ii=(_0x4737aa=>(_0x4737aa[_0x4737aa[_0x24947f(0x372)]=0x0]=_0x24947f(0x372),_0x4737aa[_0x4737aa['OK']=0x1]='OK',_0x4737aa[_0x4737aa[_0x24947f(0x419)]=0x2]=_0x24947f(0x419),_0x4737aa[_0x4737aa['PERMISSION_DENIED']=0x3]=_0x24947f(0x16f),_0x4737aa[_0x4737aa[_0x24947f(0x1cc)]=0x4]=_0x24947f(0x1cc),_0x4737aa[_0x4737aa[_0x24947f(0x2fc)]=0x5]=_0x24947f(0x2fc),_0x4737aa[_0x4737aa[_0x24947f(0x435)]=0x6]=_0x24947f(0x435),_0x4737aa[_0x4737aa[_0x24947f(0x1d1)]=0x7]=_0x24947f(0x1d1),_0x4737aa[_0x4737aa[_0x24947f(0x2ea)]=0x8]='TOO_MANY_REQUESTS',_0x4737aa[_0x4737aa['COMPLETION_FINISHED']=0x9]=_0x24947f(0x19c),_0x4737aa[_0x4737aa[_0x24947f(0x26f)]=0x1389]=_0x24947f(0x26f),_0x4737aa[_0x4737aa['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x4737aa[_0x4737aa[_0x24947f(0x247)]=0x1772]=_0x24947f(0x247),_0x4737aa[_0x4737aa['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x24947f(0x167),_0x4737aa[_0x4737aa['APPLY_REJECT']=0x1b59]=_0x24947f(0x39d),_0x4737aa[_0x4737aa[_0x24947f(0x390)]=0x1b5a]=_0x24947f(0x390),_0x4737aa[_0x4737aa[_0x24947f(0x199)]=0x1b5b]=_0x24947f(0x199),_0x4737aa[_0x4737aa[_0x24947f(0x350)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x4737aa[_0x4737aa[_0x24947f(0x269)]=0x1b5d]=_0x24947f(0x269),_0x4737aa[_0x4737aa[_0x24947f(0x424)]=0x1f41]=_0x24947f(0x424),_0x4737aa[_0x4737aa[_0x24947f(0x2af)]=0x2329]=_0x24947f(0x2af),_0x4737aa[_0x4737aa['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x24947f(0x2ca),_0x4737aa[_0x4737aa[_0x24947f(0x3b6)]=0x232b]=_0x24947f(0x3b6),_0x4737aa[_0x4737aa[_0x24947f(0x25e)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x4737aa[_0x4737aa['LICENSE_DISTRO_REJECTED']=0x232d]=_0x24947f(0x370),_0x4737aa[_0x4737aa[_0x24947f(0x3de)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x4737aa[_0x4737aa[_0x24947f(0x19e)]=0x2712]=_0x24947f(0x19e),_0x4737aa[_0x4737aa[_0x24947f(0x202)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x4737aa[_0x4737aa[_0x24947f(0x2d5)]=0x2714]=_0x24947f(0x2d5),_0x4737aa[_0x4737aa[_0x24947f(0x2bd)]=-0x1]=_0x24947f(0x2bd),_0x4737aa))(Ii||{}),Q=(_0x21f8e9=>(_0x21f8e9[_0x21f8e9[_0x24947f(0x358)]=0x0]=_0x24947f(0x358),_0x21f8e9[_0x21f8e9[_0x24947f(0x313)]=0x1]='UNIVER_DOC',_0x21f8e9[_0x21f8e9[_0x24947f(0x308)]=0x2]='UNIVER_SHEET',_0x21f8e9[_0x21f8e9[_0x24947f(0x1b2)]=0x3]=_0x24947f(0x1b2),_0x21f8e9[_0x21f8e9[_0x24947f(0x387)]=0x4]='UNIVER_PROJECT',_0x21f8e9[_0x21f8e9['UNRECOGNIZED']=-0x1]=_0x24947f(0x2bd),_0x21f8e9))(Q||{}),F=(_0x5e3cd2=>(_0x5e3cd2[_0x5e3cd2[_0x24947f(0x3a9)]=0x0]=_0x24947f(0x3a9),_0x5e3cd2[_0x5e3cd2['HELLO']=0x1]='HELLO',_0x5e3cd2[_0x5e3cd2[_0x24947f(0x213)]=0x2]='JOIN',_0x5e3cd2[_0x5e3cd2[_0x24947f(0x1d9)]=0x3]='LEAVE',_0x5e3cd2[_0x5e3cd2[_0x24947f(0x3f7)]=0x4]='INGEST',_0x5e3cd2[_0x5e3cd2[_0x24947f(0x1c4)]=0x5]='HEARTBEAT',_0x5e3cd2[_0x5e3cd2[_0x24947f(0x3f1)]=0x6]=_0x24947f(0x3f1),_0x5e3cd2[_0x5e3cd2[_0x24947f(0x2bd)]=-0x1]=_0x24947f(0x2bd),_0x5e3cd2))(F||{}),Ee=(_0x52392a=>(_0x52392a[_0x52392a[_0x24947f(0x316)]=0x0]=_0x24947f(0x316),_0x52392a[_0x52392a['OK']=0x1]='OK',_0x52392a[_0x52392a[_0x24947f(0x3c7)]=0x2]='FAIL',_0x52392a[_0x52392a['JOIN_ROOM_FULL']=0x3e9]=_0x24947f(0x3e4),_0x52392a[_0x52392a[_0x24947f(0x19b)]=0x3ea]='JOIN_ROOM_NOT_EXISTS',_0x52392a[_0x52392a[_0x24947f(0x1e4)]=0x3eb]=_0x24947f(0x1e4),_0x52392a[_0x52392a['GLOBAL_ROOMS_CNT_EXCEEDS']=0x3ec]='GLOBAL_ROOMS_CNT_EXCEEDS',_0x52392a[_0x52392a[_0x24947f(0x2bd)]=-0x1]='UNRECOGNIZED',_0x52392a))(Ee||{}),Ti=(_0x322401=>(_0x322401[_0x322401[_0x24947f(0x374)]=0x0]=_0x24947f(0x374),_0x322401[_0x322401[_0x24947f(0x252)]=0x1]=_0x24947f(0x252),_0x322401[_0x322401['HttpExport']=0x2]=_0x24947f(0x255),_0x322401[_0x322401[_0x24947f(0x341)]=0x3]=_0x24947f(0x341),_0x322401[_0x322401['UnitSnapshot']=0x4]=_0x24947f(0x2ff),_0x322401[_0x322401[_0x24947f(0x2bd)]=-0x1]=_0x24947f(0x2bd),_0x322401))(Ti||{});const q=_0x24947f(0x31b),Wt={};var se=(_0x2ca04f=>(_0x2ca04f[_0x24947f(0x3ae)]=_0x24947f(0x3ae),_0x2ca04f[_0x24947f(0x16f)]=_0x24947f(0x16f),_0x2ca04f['CONFLICT']='CONFLICT',_0x2ca04f[_0x24947f(0x33c)]=_0x24947f(0x33c),_0x2ca04f['JOIN_ROOM_FAILED']=_0x24947f(0x25a),_0x2ca04f['SOCKET_FAILED_RETRY']=_0x24947f(0x179),_0x2ca04f[_0x24947f(0x1f1)]=_0x24947f(0x1f1),_0x2ca04f['SUBMIT_CHANGESET_TIMEOUT']=_0x24947f(0x37b),_0x2ca04f))(se||{});class pe{constructor(){var _0x57ae81=_0x24947f;N(this,_0x57ae81(0x3e3),new _0xf92f12()),N(this,_0x57ae81(0x340),this[_0x57ae81(0x3e3)][_0x57ae81(0x378)]());}[_0x24947f(0x1fd)](_0x4ae3a0){var _0xd62b9=_0x24947f;this[_0xd62b9(0x3e3)][_0xd62b9(0x27e)](_0x4ae3a0);}}const Mn=_0x54590c(_0x24947f(0x433));function $n(_0x24048e){var _0x3b2974=_0x24947f,_0x499fe0,_0x204f8e,_0x453246,_0x50429f,_0x160214;const _0xb3652d=_0x24048e[_0x3b2974(0x3a4)],_0x1a53b7=JSON[_0x3b2974(0x274)](_0xb3652d);switch(_0x1a53b7[_0x3b2974(0x1c9)]){case F[_0x3b2974(0x1c4)]:case F[_0x3b2974(0x1b8)]:{const _0x3de8af=_0x1a53b7[_0x3b2974(0x3aa)];return{..._0x1a53b7,'data':_0x3de8af,'cmd':_0x1a53b7['cmd']};}case F[_0x3b2974(0x213)]:{const _0x2b1b0d=_0x1a53b7[_0x3b2974(0x2a6)];return{..._0x1a53b7,'data':_0x2b1b0d,'cmd':_0x1a53b7['cmd']};}case F[_0x3b2974(0x3f1)]:{const _0x1909cf=_0x1a53b7[_0x3b2974(0x3bb)];switch(_0x1909cf['eventID']){case _0x5b603b[_0x3b2974(0x270)]:return{..._0x1a53b7,'data':{..._0x1909cf,'data':(_0x499fe0=_0x1909cf['permissionRejEvent'])==null?void 0x0:_0x499fe0['cs']},'cmd':_0x1a53b7[_0x3b2974(0x1c9)]};case _0x5b603b[_0x3b2974(0x1fe)]:return{..._0x1a53b7,'data':{..._0x1909cf,'data':(_0x204f8e=_0x1909cf[_0x3b2974(0x3c9)])==null?void 0x0:_0x204f8e['cs']},'cmd':_0x1a53b7[_0x3b2974(0x1c9)]};case _0x5b603b[_0x3b2974(0x40a)]:return{..._0x1a53b7,'data':{..._0x1909cf,'data':(_0x453246=_0x1909cf[_0x3b2974(0x388)])==null?void 0x0:_0x453246['cs']},'cmd':_0x1a53b7[_0x3b2974(0x1c9)]};case _0x5b603b[_0x3b2974(0x3a1)]:return{..._0x1a53b7,'data':{..._0x1909cf,'data':(_0x50429f=_0x1909cf[_0x3b2974(0x39c)])==null?void 0x0:_0x50429f['cs']},'cmd':_0x1a53b7[_0x3b2974(0x1c9)]};case _0x5b603b['CHANGESET_SHOULD_RETRY']:return{..._0x1a53b7,'data':{..._0x1909cf,'data':(_0x160214=_0x1909cf[_0x3b2974(0x333)])==null?void 0x0:_0x160214['cs']},'cmd':_0x1a53b7[_0x3b2974(0x1c9)]};case _0x5b603b[_0x3b2974(0x32d)]:return{..._0x1a53b7,'data':{..._0x1909cf,'data':_0x1909cf[_0x3b2974(0x33a)]},'cmd':_0x1a53b7[_0x3b2974(0x1c9)]};case _0x5b603b[_0x3b2974(0x246)]:return{..._0x1a53b7,'data':{..._0x1909cf,'data':_0x1909cf['joinEvent']},'cmd':_0x1a53b7[_0x3b2974(0x1c9)]};case _0x5b603b[_0x3b2974(0x2d7)]:return{..._0x1a53b7,'data':{..._0x1909cf,'data':_0x1909cf[_0x3b2974(0x200)]},'cmd':_0x1a53b7[_0x3b2974(0x1c9)]};case _0x5b603b[_0x3b2974(0x359)]:return{..._0x1a53b7,'data':{..._0x1909cf,'data':_0x1909cf[_0x3b2974(0x1be)]},'cmd':_0x1a53b7[_0x3b2974(0x1c9)]};case _0x5b603b[_0x3b2974(0x37a)]:case _0x5b603b[_0x3b2974(0x1a2)]:return{..._0x1a53b7,'data':{..._0x1909cf,'data':_0x1909cf[_0x3b2974(0x3fc)]},'cmd':_0x1a53b7[_0x3b2974(0x1c9)]};case _0x5b603b[_0x3b2974(0x339)]:return{..._0x1a53b7,'data':{..._0x1909cf,'data':_0x1909cf[_0x3b2974(0x1be)]},'cmd':_0x1a53b7[_0x3b2974(0x1c9)]};case _0x5b603b['MSG_FOR_ERROR']:return{..._0x1a53b7,'data':_0x1909cf,'cmd':_0x1a53b7[_0x3b2974(0x1c9)]};case _0x5b603b['COMMENT_UPDATE']:return{..._0x1a53b7,'data':{..._0x1909cf,'data':_0x1909cf[_0x3b2974(0x2e9)]},'cmd':_0x1a53b7[_0x3b2974(0x1c9)]};case _0x5b603b['UPDATE_PERMISSION_OBJ']:return{..._0x1a53b7,'data':{..._0x1909cf,'data':_0x1909cf[_0x3b2974(0x3da)]},'cmd':_0x1a53b7['cmd']};case _0x5b603b[_0x3b2974(0x1c7)]:return{..._0x1a53b7,'data':{..._0x1909cf,'data':_0x1909cf['shouldCloseConn']},'cmd':_0x1a53b7['cmd']};case _0x5b603b[_0x3b2974(0x3ca)]:return{..._0x1a53b7,'data':{..._0x1909cf,'data':_0x1909cf[_0x3b2974(0x35d)]},'cmd':_0x1a53b7[_0x3b2974(0x1c9)]};default:return _0x1a53b7;}}default:return _0x1a53b7;}}function Hn(_0x1fdf42){var _0x469048=_0x24947f;switch(_0x1fdf42[_0x469048(0x1c9)]){case F[_0x469048(0x1c4)]:case F[_0x469048(0x1b8)]:return JSON[_0x469048(0x1d0)]({'cmd':_0x1fdf42[_0x469048(0x1c9)],'routeKey':_0x1fdf42[_0x469048(0x222)]});case F[_0x469048(0x3f7)]:{let _0x5aa066;switch(_0x1fdf42[_0x469048(0x3a4)]['eventID']){case _0x5b603b[_0x469048(0x32d)]:{_0x5aa066={'eventID':_0x5b603b['UPDATE_CURSOR'],'updateCursorEvent':_0x1fdf42['data'][_0x469048(0x3a4)]};break;}case _0x5b603b[_0x469048(0x2d7)]:{_0x5aa066={'eventID':_0x5b603b[_0x469048(0x2d7)],'leaveEvent':_0x1fdf42[_0x469048(0x3a4)][_0x469048(0x3a4)]};break;}case _0x5b603b[_0x469048(0x246)]:{_0x5aa066={'eventID':_0x5b603b[_0x469048(0x246)],'joinEvent':_0x1fdf42[_0x469048(0x3a4)][_0x469048(0x3a4)]};break;}case _0x5b603b['LIVESHARE_NEW_HOST']:{_0x5aa066={'eventID':_0x5b603b[_0x469048(0x359)],'liveShareNewHost':_0x1fdf42['data']['data']};break;}case _0x5b603b[_0x469048(0x1a2)]:{_0x5aa066={'eventID':_0x5b603b[_0x469048(0x1a2)],'liveShareOperation':_0x1fdf42[_0x469048(0x3a4)]['data']};break;}case _0x5b603b[_0x469048(0x339)]:{_0x5aa066={'eventID':_0x5b603b['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x1fdf42[_0x469048(0x3a4)]['data']};break;}case _0x5b603b[_0x469048(0x29d)]:{_0x5aa066={'eventID':_0x5b603b[_0x469048(0x29d)],'liveShareRequestHost':_0x1fdf42['data'][_0x469048(0x3a4)]};break;}case _0x5b603b[_0x469048(0x37a)]:{_0x5aa066={'eventID':_0x5b603b['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x5aa066={'eventID':_0x1fdf42[_0x469048(0x3a4)][_0x469048(0x298)]};}return JSON[_0x469048(0x1d0)]({'cmd':_0x1fdf42[_0x469048(0x1c9)],'routeKey':_0x1fdf42[_0x469048(0x222)],'collaMsg':_0x5aa066});}case F[_0x469048(0x213)]:return JSON[_0x469048(0x1d0)]({'cmd':_0x1fdf42[_0x469048(0x1c9)],'routeKey':_0x1fdf42[_0x469048(0x222)],'joinReq':_0x1fdf42[_0x469048(0x3a4)]});case F['LEAVE']:return JSON[_0x469048(0x1d0)]({'cmd':_0x1fdf42[_0x469048(0x1c9)],'routeKey':_0x1fdf42[_0x469048(0x222)],'leaveReq':_0x1fdf42['data']});default:throw new Error(_0x469048(0x185));}}var kn=Object['defineProperty'],jn=Object[_0x24947f(0x2d4)],Bn=(_0x208f7c,_0x5f0f1f,_0x489982,_0xc970bc)=>{var _0x491780=_0x24947f;for(var _0x1aafa6=_0xc970bc>0x1?void 0x0:_0xc970bc?jn(_0x5f0f1f,_0x489982):_0x5f0f1f,_0x39d9e6=_0x208f7c[_0x491780(0x334)]-0x1,_0x273727;_0x39d9e6>=0x0;_0x39d9e6--)(_0x273727=_0x208f7c[_0x39d9e6])&&(_0x1aafa6=(_0xc970bc?_0x273727(_0x5f0f1f,_0x489982,_0x1aafa6):_0x273727(_0x1aafa6))||_0x1aafa6);return _0xc970bc&&_0x1aafa6&&kn(_0x5f0f1f,_0x489982,_0x1aafa6),_0x1aafa6;},Ue=(_0x44282d,_0x2f3825)=>(_0x48c04e,_0x12cfac)=>_0x2f3825(_0x48c04e,_0x12cfac,_0x44282d);const Ci=_0x54590c(_0x24947f(0x3cf));function Fn(_0xb84bad,_0x4bac5c,_0x53f499){var _0x1fa3ba=_0x24947f;return _0xb84bad+'/'+_0x4bac5c+_0x1fa3ba(0x3e1)+_0x53f499+'/new_changes';}let Et=class extends _0x99d30c{constructor(_0x4690c1,_0x16974a,_0x180ad1,_0x56ce3c,_0x2f28e7){var _0x387083=_0x24947f;super(),this[_0x387083(0x2ac)]=_0x4690c1,this[_0x387083(0x376)]=_0x16974a,this[_0x387083(0x1aa)]=_0x180ad1,this[_0x387083(0x1d7)]=_0x56ce3c,this['_snapshotServerService']=_0x2f28e7;}['createSocket'](_0x1c055a){var _0x247fcd=_0x24947f;const _0x1669d2=this['_injector']['get'](_0x597eb0);if(!_0x1669d2)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!');const _0x467fc1=_0x1669d2['createSocket'](_0x1c055a);if(!_0x467fc1)throw new Error(_0x247fcd(0x268));const _0x530d4a=new _0x3e4306(),_0xadfb46=new _0xf92f12();_0x530d4a[_0x247fcd(0x1f8)](_0x467fc1[_0x247fcd(0x3ef)][_0x247fcd(0x30e)](_0x1f3951=>_0xadfb46[_0x247fcd(0x27e)](_0x1f3951))),_0x530d4a[_0x247fcd(0x1f8)](_0x50d33e(()=>_0xadfb46['complete']()));const _0x2802db=new _0xf92f12();_0x530d4a[_0x247fcd(0x1f8)](_0x467fc1[_0x247fcd(0x18f)][_0x247fcd(0x30e)](_0x12a13f=>_0x2802db['next'](_0x12a13f))),_0x530d4a[_0x247fcd(0x1f8)](_0x50d33e(()=>_0x2802db['complete']()));const _0x484a8d=new _0xf92f12();_0x530d4a[_0x247fcd(0x1f8)](_0x467fc1['message$']['subscribe'](_0x32a4eb=>{var _0x3183ab=_0x247fcd;const _0xeba271=$n(_0x32a4eb);_0x484a8d[_0x3183ab(0x27e)](_0xeba271);})),_0x530d4a[_0x247fcd(0x1f8)](_0x50d33e(()=>_0x484a8d[_0x247fcd(0x36d)]()));let _0x5390a7;const _0x3823d4=()=>{var _0x11d8b6=_0x247fcd;_0x2802db[_0x11d8b6(0x27e)](new Event(_0x11d8b6(0x3fa))),_0xadfb46[_0x11d8b6(0x27e)](new CloseEvent(_0x11d8b6(0x3fa))),_0x5390a7['close']();};return _0x5390a7={'memberID':'','close$':_0xadfb46[_0x247fcd(0x378)](),'error$':_0x2802db[_0x247fcd(0x378)](),'open$':_0x467fc1[_0x247fcd(0x31a)],'message$':_0x484a8d[_0x247fcd(0x378)](),'send':_0x42225c=>{var _0x567895=_0x247fcd;if(_0x42225c[_0x567895(0x1c9)]===F[_0x567895(0x3f7)]){if(_0x42225c[_0x567895(0x3a4)][_0x567895(0x298)]===_0x5b603b[_0x567895(0x314)]){this[_0x567895(0x22c)](_0x5390a7,_0x42225c[_0x567895(0x3a4)])['catch'](_0x3266a3=>{var _0x420ec9=_0x567895;this[_0x420ec9(0x1d7)][_0x420ec9(0x197)](_0x3266a3),_0x3823d4();});return;}if(_0x42225c['data'][_0x567895(0x298)]===_0x5b603b[_0x567895(0x28e)]){const _0x5716e3=_0x42225c[_0x567895(0x3a4)];this[_0x567895(0x1ce)](_0x5716e3)['then'](_0x4a00b7=>{var _0x1e40c5=_0x567895;_0x484a8d[_0x1e40c5(0x27e)]({'cmd':F[_0x1e40c5(0x3f1)],'code':Ee['OK'],'routeKey':_0x5716e3[_0x1e40c5(0x3a4)][_0x1e40c5(0x3c4)],'routeType':'','data':{'eventID':_0x5b603b[_0x1e40c5(0x2d9)],'data':{'changesets':_0x4a00b7}}});})[_0x567895(0x3c5)](_0x5d6320=>{var _0x3fd410=_0x567895;this[_0x3fd410(0x1d7)][_0x3fd410(0x197)](_0x5d6320),_0x3823d4();});return;}}_0x467fc1[_0x567895(0x2cd)](Hn(_0x42225c));},'close':()=>{var _0x351a4b=_0x247fcd;_0x467fc1[_0x351a4b(0x2ef)](),_0x530d4a[_0x351a4b(0x402)]();}},_0x5390a7;}async[_0x24947f(0x22c)](_0x180561,_0x5309f2){var _0x48ed72=_0x24947f,_0x2f7c2f,_0x38a19e;const {unitType:_0x35b9ff,unitID:_0x133b6e,changeset:_0x57510d}=_0x5309f2['data'],_0x3207ba={'unitID':_0x133b6e,'memberID':_0x180561[_0x48ed72(0x2b7)],'type':_0x35b9ff,'changeset':_0x572073(_0x57510d)},_0x1e213d=this['_configService'][_0x48ed72(0x3b4)](Un),_0xe79b76=this[_0x48ed72(0x1aa)][_0x48ed72(0x3b4)](q),_0x2f3e78=Fn((_0x38a19e=(_0x2f7c2f=_0xe79b76==null?void 0x0:_0xe79b76[_0x48ed72(0x1b7)])!=null?_0x2f7c2f:_0x1e213d)!=null?_0x38a19e:An,_0x35b9ff,_0x133b6e);try{await this[_0x48ed72(0x376)][_0x48ed72(0x2d1)](_0x2f3e78,{'body':_0x3207ba});}catch(_0x160563){throw this[_0x48ed72(0x1d7)]['error'](_0x48ed72(0x297),_0x48ed72(0x277)),_0x160563;}}async[_0x24947f(0x1ce)](_0x515b22){var _0x4eb771=_0x24947f;const {unitID:_0x55d20e,from:_0x3628a5,to:_0x319a3c,unitType:_0x3a4a48}=_0x515b22['data'];return(await this['_snapshotServerService'][_0x4eb771(0x217)]({'metadata':void 0x0},{'unitID':_0x55d20e,'type':_0x3a4a48,'from':_0x3628a5,'to':_0x319a3c}))[_0x4eb771(0x1a3)];}};Et=Bn([Ue(0x0,_0x2c893e(_0x47c619)),Ue(0x1,_0x2c893e(_0x2ccc1a)),Ue(0x2,_0x14e586),Ue(0x3,_0xb67ae9),Ue(0x4,_0x2013f0)],Et);const Vn=_0x24947f(0x1f3);function Gn(_0x25d541){var _0x4971c4=_0x24947f;return JSON[_0x4971c4(0x1d0)](_0x25d541)[_0x4971c4(0x334)];}class bi{constructor(){var _0x2925c2=_0x24947f;N(this,_0x2925c2(0x3b5),new _0xf92f12()),N(this,_0x2925c2(0x299),this[_0x2925c2(0x3b5)][_0x2925c2(0x378)]());}[_0x24947f(0x17e)](_0x1fda17){var _0x54aad7=_0x24947f;this[_0x54aad7(0x3b5)]['next'](_0x1fda17);}}var Wn=Object[_0x24947f(0x2ee)],Kn=Object[_0x24947f(0x2d4)],Yn=(_0x357ca6,_0x3c3695,_0x4b4d76,_0x1e8555)=>{var _0x59aacf=_0x24947f;for(var _0x2da2ec=_0x1e8555>0x1?void 0x0:_0x1e8555?Kn(_0x3c3695,_0x4b4d76):_0x3c3695,_0x5eaf3a=_0x357ca6[_0x59aacf(0x334)]-0x1,_0x52e793;_0x5eaf3a>=0x0;_0x5eaf3a--)(_0x52e793=_0x357ca6[_0x5eaf3a])&&(_0x2da2ec=(_0x1e8555?_0x52e793(_0x3c3695,_0x4b4d76,_0x2da2ec):_0x52e793(_0x2da2ec))||_0x2da2ec);return _0x1e8555&&_0x2da2ec&&Wn(_0x3c3695,_0x4b4d76,_0x2da2ec),_0x2da2ec;},Kt=(_0x27336c,_0x4db4e3)=>(_0x5c7163,_0x24b44c)=>_0x4db4e3(_0x5c7163,_0x24b44c,_0x27336c);let xe=class extends _0x99d30c{constructor(_0x2004bf,_0x1e9d85){var _0x49001e=_0x24947f;super(),N(this,_0x49001e(0x1a7),new Map()),N(this,'_roomCreated$',new _0xf92f12()),(this[_0x49001e(0x3b3)]=_0x2004bf,this[_0x49001e(0x1ed)]=_0x1e9d85,this[_0x49001e(0x2c8)](_0x14b0b2(this[_0x49001e(0x3b3)]['getTypeOfUnitDisposed$'](_0x5289d3[_0x49001e(0x308)])[_0x49001e(0x342)](_0x5e6a8b(_0x42dced=>_0x42dced[_0x49001e(0x2cf)]())),this[_0x49001e(0x3b3)][_0x49001e(0x391)](_0x5289d3[_0x49001e(0x313)])[_0x49001e(0x342)](_0x5e6a8b(_0x38017b=>_0x38017b[_0x49001e(0x2cf)]())),this[_0x49001e(0x3b3)][_0x49001e(0x391)](_0x5289d3[_0x49001e(0x1b2)])[_0x49001e(0x342)](_0x5e6a8b(_0x5b8c1a=>_0x5b8c1a[_0x49001e(0x2cf)]())))[_0x49001e(0x30e)](_0x17724b=>this[_0x49001e(0x366)](_0x17724b))));}[_0x24947f(0x29e)](_0x1ab351){var _0xa3152c=_0x24947f;return this[_0xa3152c(0x1a7)]['has'](_0x1ab351)?_0x3ddd94(this[_0xa3152c(0x1a7)][_0xa3152c(0x2f7)](_0x1ab351)):this[_0xa3152c(0x36a)]['pipe'](_0x5e6a8b(_0x3aaae3=>{var _0x560bbc=_0xa3152c;if(_0x3aaae3===_0x1ab351)return this[_0x560bbc(0x1a7)][_0x560bbc(0x2f7)](_0x3aaae3);}));}[_0x24947f(0x2b2)](_0x5b45f9){var _0xcc4172=_0x24947f;this[_0xcc4172(0x1ed)]['setCurrentUser'](_0x5b45f9);}['getCurrentUser'](){return this['_userManagerService']['getCurrentUser']();}['updateMember'](_0x56f433,_0x342c34){var _0x4c9eaf=_0x24947f;let _0x35150f=this[_0x4c9eaf(0x1a7)][_0x4c9eaf(0x2f7)](_0x56f433);_0x35150f||(_0x35150f=new qn(),this['_roomMembers']['set'](_0x56f433,_0x35150f),this[_0x4c9eaf(0x36a)]['next'](_0x56f433)),_0x35150f[_0x4c9eaf(0x37c)](_0x342c34);}[_0x24947f(0x3dc)](_0x5c431e,_0x25ee74){var _0x47077f=_0x24947f;const _0x8c85ef=this['_roomMembers'][_0x47077f(0x2f7)](_0x5c431e);_0x8c85ef&&_0x8c85ef[_0x47077f(0x3dc)](_0x25ee74);}[_0x24947f(0x26a)](_0x1e2534){var _0x31c411=_0x24947f;return this[_0x31c411(0x1a7)][_0x31c411(0x2f7)](_0x1e2534);}[_0x24947f(0x3f9)](_0xf06fb6,_0x2f0fa0){var _0x8ebb1e=_0x24947f;const _0x4ec2ce=this[_0x8ebb1e(0x1a7)][_0x8ebb1e(0x2f7)](_0xf06fb6);if(_0x4ec2ce)return _0x4ec2ce[_0x8ebb1e(0x3f9)](_0x2f0fa0);}[_0x24947f(0x366)](_0xe9d9b0){var _0x2505ab=_0x24947f;const _0xb7a924=this['_roomMembers'][_0x2505ab(0x2f7)](_0xe9d9b0);_0xb7a924&&(_0xb7a924[_0x2505ab(0x402)](),this['_roomMembers']['delete'](_0xe9d9b0));}[_0x24947f(0x402)](){var _0x305dc2=_0x24947f;this[_0x305dc2(0x1a7)][_0x305dc2(0x2d3)](_0x61720f=>_0x61720f[_0x305dc2(0x402)]()),this[_0x305dc2(0x1a7)][_0x305dc2(0x226)](),this['_roomCreated$']['complete']();}};xe=Yn([Kt(0x0,_0x1443af),Kt(0x1,_0x2c893e(_0x3b1d08))],xe);class qn extends _0x99d30c{constructor(){var _0x4ef36a=_0x24947f;super(...arguments),N(this,_0x4ef36a(0x23f),new Map()),N(this,_0x4ef36a(0x1f2),new _0x4e33c6(this[_0x4ef36a(0x23f)])),N(this,_0x4ef36a(0x437),this[_0x4ef36a(0x1f2)][_0x4ef36a(0x378)]());}[_0x24947f(0x402)](){var _0x2f5eef=_0x24947f;this[_0x2f5eef(0x23f)][_0x2f5eef(0x226)]();}[_0x24947f(0x37c)](_0x5a1065){var _0x4a351f=_0x24947f;this['_members'][_0x4a351f(0x423)](_0x5a1065[_0x4a351f(0x2b7)],_0x5a1065),this['_emitMembers']();}[_0x24947f(0x3dc)](_0x3043bf){var _0x217a4b=_0x24947f;this['_members'][_0x217a4b(0x201)](_0x3043bf);}[_0x24947f(0x3f9)](_0x1adbcb){var _0x47abe7=_0x24947f;return this[_0x47abe7(0x23f)][_0x47abe7(0x2f7)](_0x1adbcb);}['getAllMembers'](){var _0x5d9e1=_0x24947f;return Array['from'](this['_members'][_0x5d9e1(0x3dd)]());}['_emitMembers'](){var _0x49d411=_0x24947f;this[_0x49d411(0x1f2)][_0x49d411(0x27e)](this[_0x49d411(0x23f)]);}}var zn=Object[_0x24947f(0x2ee)],Jn=Object[_0x24947f(0x2d4)],Xn=(_0x9d306f,_0x36bf2d,_0x31ef68,_0x11d753)=>{var _0x2c25e8=_0x24947f;for(var _0x3f320b=_0x11d753>0x1?void 0x0:_0x11d753?Jn(_0x36bf2d,_0x31ef68):_0x36bf2d,_0x2198f8=_0x9d306f[_0x2c25e8(0x334)]-0x1,_0x370550;_0x2198f8>=0x0;_0x2198f8--)(_0x370550=_0x9d306f[_0x2198f8])&&(_0x3f320b=(_0x11d753?_0x370550(_0x36bf2d,_0x31ef68,_0x3f320b):_0x370550(_0x3f320b))||_0x3f320b);return _0x11d753&&_0x3f320b&&zn(_0x36bf2d,_0x31ef68,_0x3f320b),_0x3f320b;},me=(_0x3759d3,_0x3a6f3d)=>(_0x681748,_0x41f3ba)=>_0x3a6f3d(_0x681748,_0x41f3ba,_0x3759d3),Te=(_0x25236c=>(_0x25236c[_0x25236c[_0x24947f(0x428)]=0x0]=_0x24947f(0x428),_0x25236c[_0x25236c['JOINING']=0x1]=_0x24947f(0x229),_0x25236c[_0x25236c[_0x24947f(0x3af)]=0x2]=_0x24947f(0x3af),_0x25236c[_0x25236c[_0x24947f(0x244)]=0x3]='ONLINE',_0x25236c))(Te||{});const Yt={[Ee[_0x24947f(0x3c7)]]:_0x24947f(0x306),[Ee[_0x24947f(0x3e4)]]:'session.room-full',[Ee[_0x24947f(0x19b)]]:'session.room-not-exists',[Ee[_0x24947f(0x1e4)]]:_0x24947f(0x2be),[Ee[_0x24947f(0x19a)]]:_0x24947f(0x3e6)};let It=class extends _0xd51a1a{constructor(_0x51a78e,_0x241dae,_0x41ec49,_0x3d0de9,_0x1277e9,_0x58b75a,_0x22bb9a,_0x104566,_0x3b4a35){var _0x4ab1f7=_0x24947f;super(),N(this,_0x4ab1f7(0x29a),new _0x4e33c6(0x0)),N(this,_0x4ab1f7(0x3a6),this[_0x4ab1f7(0x29a)]['asObservable']()),N(this,_0x4ab1f7(0x3e3),new _0xf92f12()),N(this,_0x4ab1f7(0x340),this[_0x4ab1f7(0x3e3)][_0x4ab1f7(0x378)]()),N(this,_0x4ab1f7(0x225)),N(this,_0x4ab1f7(0x343)),N(this,'_collaborationTimeoutTimer'),N(this,_0x4ab1f7(0x432),!0x1),N(this,'_telemetryInfo',null),(this['_unitID']=_0x51a78e,this[_0x4ab1f7(0x1d7)]=_0x41ec49,this[_0x4ab1f7(0x1aa)]=_0x3d0de9,this[_0x4ab1f7(0x1ee)]=_0x1277e9,this[_0x4ab1f7(0x196)]=_0x58b75a,this[_0x4ab1f7(0x438)]=_0x22bb9a,this[_0x4ab1f7(0x193)]=_0x104566,this[_0x4ab1f7(0x24d)]=_0x3b4a35,this[_0x4ab1f7(0x432)]=!!this[_0x4ab1f7(0x24d)],_0x241dae[_0x4ab1f7(0x342)](_0x5d80f9(this[_0x4ab1f7(0x30b)]))['subscribe'](_0x759216=>{var _0x14905f=_0x4ab1f7,_0x1533db;typeof _0x759216>'u'||(this[_0x14905f(0x225)]=_0x759216,_0x759216?(this[_0x14905f(0x43b)](_0x759216),this[_0x14905f(0x343)]=_0x759216[_0x14905f(0x2b8)][_0x14905f(0x30e)](_0x4782e5=>{var _0x5e5627=_0x14905f;_0x4782e5['routeKey']===this[_0x5e5627(0x158)]&&this[_0x5e5627(0x3f8)](_0x4782e5);})):(this['_throwTelemetryCollaborationNewChangeset'](),this[_0x14905f(0x29a)]['next'](0x2),(_0x1533db=this[_0x14905f(0x343)])==null||_0x1533db[_0x14905f(0x21f)](),this[_0x14905f(0x343)]=null));}));}get['sessionStatus'](){var _0x24ac2e=_0x24947f;return this[_0x24ac2e(0x29a)][_0x24ac2e(0x282)]();}[_0x24947f(0x22f)](){var _0x30bb1b=_0x24947f,_0x4418cb,_0x16e99d;return(_0x16e99d=(_0x4418cb=this[_0x30bb1b(0x225)])==null?void 0x0:_0x4418cb[_0x30bb1b(0x2b7)])!=null?_0x16e99d:null;}[_0x24947f(0x402)](){var _0x70b09a=_0x24947f;super[_0x70b09a(0x402)](),this[_0x70b09a(0x30b)][_0x70b09a(0x27e)](),this[_0x70b09a(0x30b)][_0x70b09a(0x36d)]();}['close'](){var _0x2c4118=_0x24947f,_0x5779b9,_0x42f610;this['_throwTelemetryCollaborationNewChangeset'](),(_0x5779b9=this['_socket'])==null||_0x5779b9[_0x2c4118(0x2cd)]({'cmd':F[_0x2c4118(0x1d9)],'data':{'roomID':this[_0x2c4118(0x158)]}}),(_0x42f610=this[_0x2c4118(0x225)])==null||_0x42f610[_0x2c4118(0x2ef)](),this[_0x2c4118(0x3e3)][_0x2c4118(0x36d)](),this[_0x2c4118(0x29a)]['complete'](),this['dispose']();}[_0x24947f(0x3f8)](_0x359d8d){var _0x5af5fd=_0x24947f;_0x359d8d[_0x5af5fd(0x1c9)]===F[_0x5af5fd(0x213)]?this['_onJoinRoomEvent'](_0x359d8d):_0x359d8d['cmd']===F['RECV']&&this['_onRecvEvent'](_0x359d8d);}[_0x24947f(0x43b)](_0x45f76c){var _0x1b9bca=_0x24947f;this[_0x1b9bca(0x29a)]['next'](0x1),_0x45f76c[_0x1b9bca(0x2cd)]({'cmd':F[_0x1b9bca(0x213)],'routeKey':this[_0x1b9bca(0x158)],'routeType':'','data':{'rooms':[{'roomID':this[_0x1b9bca(0x158)]}]}});}[_0x24947f(0x210)](_0xa5af0d){var _0x1593a8=_0x24947f,_0x350807;if(_0xa5af0d[_0x1593a8(0x23a)]in Yt){this['_collaborationUIEventService'][_0x1593a8(0x1fd)]({'id':se[_0x1593a8(0x25a)],'data':Yt[_0xa5af0d[_0x1593a8(0x23a)]]}),this['_sessionStatus$'][_0x1593a8(0x27e)](0x2);return;}this[_0x1593a8(0x29a)]['next'](0x3);const _0xdfd2ae=(_0x350807=_0xa5af0d[_0x1593a8(0x3a4)][_0x1593a8(0x2c7)][this[_0x1593a8(0x158)]])==null?void 0x0:_0x350807[_0x1593a8(0x2b9)];_0xdfd2ae&&_0xdfd2ae[_0x1593a8(0x2d3)](_0x5a5227=>this[_0x1593a8(0x196)]['updateMember'](this[_0x1593a8(0x158)],_0x5a5227));}['_onRecvEvent'](_0x14adc9){var _0x1aab02=_0x24947f;try{const _0x55b12a=_0x14adc9[_0x1aab02(0x3a4)];switch(_0x55b12a[_0x1aab02(0x298)]){case _0x5b603b['USERS_ENTER']:this[_0x1aab02(0x1af)](_0x55b12a),this[_0x1aab02(0x3e3)]['next'](_0x55b12a);break;case _0x5b603b['USERS_LEAVE']:this[_0x1aab02(0x32b)](_0x55b12a),this[_0x1aab02(0x3e3)][_0x1aab02(0x27e)](_0x55b12a);break;case _0x5b603b['CHANGESET_ACK']:case _0x5b603b[_0x1aab02(0x20b)]:this[_0x1aab02(0x3ed)](),this[_0x1aab02(0x15d)](),this[_0x1aab02(0x3e3)][_0x1aab02(0x27e)](_0x55b12a);break;case _0x5b603b[_0x1aab02(0x1a9)]:this[_0x1aab02(0x1d7)][_0x1aab02(0x197)](_0x1aab02(0x19f)+JSON[_0x1aab02(0x1d0)](_0x55b12a)),this[_0x1aab02(0x3e3)][_0x1aab02(0x27e)](_0x55b12a);break;case _0x5b603b[_0x1aab02(0x223)]:this['_commentService'][_0x1aab02(0x17e)](_0x55b12a[_0x1aab02(0x3a4)]),this[_0x1aab02(0x3e3)][_0x1aab02(0x27e)](_0x55b12a);break;default:this[_0x1aab02(0x3e3)][_0x1aab02(0x27e)](_0x55b12a);}}catch(_0x5a3802){this[_0x1aab02(0x1d7)][_0x1aab02(0x197)](_0x5a3802,_0x14adc9);}}[_0x24947f(0x1af)](_0x5aa301){var _0x464156=_0x24947f;this['_memberService'][_0x464156(0x37c)](this[_0x464156(0x158)],_0x5aa301[_0x464156(0x3a4)]);}[_0x24947f(0x32b)](_0x1122ed){var _0x13323d=_0x24947f;this[_0x13323d(0x196)][_0x13323d(0x3dc)](this[_0x13323d(0x158)],_0x1122ed[_0x13323d(0x3a4)][_0x13323d(0x2b7)]);}async[_0x24947f(0x2cd)](_0x11651a,_0x33b9f8){var _0x241557=_0x24947f;if(this['sessionStatus']!==0x3||!this[_0x241557(0x225)])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x11651a[_0x241557(0x298)]===_0x5b603b[_0x241557(0x314)]&&(this[_0x241557(0x26c)](),this[_0x241557(0x413)](_0x11651a)),this['_socket']['send']({'cmd':F[_0x241557(0x3f7)],'routeKey':_0x33b9f8,'routeType':'','data':_0x11651a});}catch(_0x226a49){this['_logService']['error'](_0x226a49);}}[_0x24947f(0x26c)](){var _0x559d40=_0x24947f,_0x33fa03;this[_0x559d40(0x39f)]=setTimeout(()=>{var _0xb2099d=_0x559d40;this[_0xb2099d(0x39f)]=null,this[_0xb2099d(0x193)][_0xb2099d(0x1fd)]({'id':se[_0xb2099d(0x37b)]});},(_0x33fa03=this[_0x559d40(0x1aa)][_0x559d40(0x3b4)](Si))!=null?_0x33fa03:Ei);}[_0x24947f(0x15d)](){var _0x431333=_0x24947f;this[_0x431333(0x39f)]&&(clearTimeout(this[_0x431333(0x39f)]),this[_0x431333(0x39f)]=null);}[_0x24947f(0x413)](_0x3701f6){var _0x2e4967=_0x24947f;if(!this[_0x2e4967(0x432)])return;const {data:_0xd242a8}=_0x3701f6,{unitID:_0x55e93f,changeset:_0x29877d}=_0xd242a8,{mutations:_0x22a1ec,type:_0x5b5a2c}=_0x29877d;this['_telemetryInfo']={'unitId':_0x55e93f,'type':_0x5b5a2c,'startTime':performance[_0x2e4967(0x2b0)](),'stopTime':0x0,'duration':0x0,'size':Gn(_0x22a1ec)};}[_0x24947f(0x3ed)](){var _0x2eacb6=_0x24947f;if(this[_0x2eacb6(0x432)]){if(!this[_0x2eacb6(0x407)]){this[_0x2eacb6(0x1d7)][_0x2eacb6(0x197)]('[CollaborationSession]',_0x2eacb6(0x417));return;}this[_0x2eacb6(0x407)][_0x2eacb6(0x212)]=performance[_0x2eacb6(0x2b0)](),this[_0x2eacb6(0x407)][_0x2eacb6(0x221)]=this[_0x2eacb6(0x407)]['stopTime']-this[_0x2eacb6(0x407)][_0x2eacb6(0x16e)],this[_0x2eacb6(0x24d)][_0x2eacb6(0x397)](Vn,this[_0x2eacb6(0x407)]),this[_0x2eacb6(0x407)]=null;}}[_0x24947f(0x183)](){var _0x3b0f8a=_0x24947f;this[_0x3b0f8a(0x407)]=null;}};It=Xn([me(0x2,_0xb67ae9),me(0x3,_0x14e586),me(0x4,_0x2c893e(_0x4f5132)),me(0x5,_0x2c893e(xe)),me(0x6,_0x2c893e(bi)),me(0x7,_0x2c893e(pe)),me(0x8,_0x433af4(_0x55d84e))],It);var Zn=Object[_0x24947f(0x2ee)],Qn=Object['getOwnPropertyDescriptor'],er=(_0x223653,_0x3bb7fd,_0x1f1c93,_0x531e2a)=>{var _0x1d9ad9=_0x24947f;for(var _0x355823=_0x531e2a>0x1?void 0x0:_0x531e2a?Qn(_0x3bb7fd,_0x1f1c93):_0x3bb7fd,_0x1b4e60=_0x223653[_0x1d9ad9(0x334)]-0x1,_0x455a1f;_0x1b4e60>=0x0;_0x1b4e60--)(_0x455a1f=_0x223653[_0x1b4e60])&&(_0x355823=(_0x531e2a?_0x455a1f(_0x3bb7fd,_0x1f1c93,_0x355823):_0x455a1f(_0x355823))||_0x355823);return _0x531e2a&&_0x355823&&Zn(_0x3bb7fd,_0x1f1c93,_0x355823),_0x355823;},ge=(_0x5977b8,_0x929b87)=>(_0x524f9c,_0x42cc38)=>_0x929b87(_0x524f9c,_0x42cc38,_0x5977b8);let Le=class extends _0x99d30c{constructor(_0x4d007e,_0x5e85d0,_0x57bd9a,_0x2de691,_0x493fcc,_0x279a5b,_0x227097){var _0x5b07e6=_0x24947f;super(),N(this,_0x5b07e6(0x42b),new _0x4e33c6(void 0x0)),N(this,'socket$',this['_socket$'][_0x5b07e6(0x378)]()),N(this,'_candidateSocket',null),N(this,'_sessions',new Map()),N(this,_0x5b07e6(0x24a),new _0x4e33c6(Te['IDLE'])),N(this,_0x5b07e6(0x162),this[_0x5b07e6(0x24a)]['asObservable']()),N(this,_0x5b07e6(0x403),!0x1),N(this,_0x5b07e6(0x22a)),N(this,_0x5b07e6(0x344),0x0),N(this,_0x5b07e6(0x1a0)),N(this,_0x5b07e6(0x32e)),(this[_0x5b07e6(0x2ac)]=_0x4d007e,this[_0x5b07e6(0x1d7)]=_0x5e85d0,this[_0x5b07e6(0x1aa)]=_0x57bd9a,this['_socketService']=_0x2de691,this['_httpService']=_0x493fcc,this[_0x5b07e6(0x193)]=_0x279a5b,this[_0x5b07e6(0x24f)]=_0x227097,this['_listenToNetworkCondition']());}get['_socket'](){var _0x10ea10=_0x24947f;return this['_socket$'][_0x10ea10(0x282)]();}['_listenToNetworkCondition'](){var _0x3df6dd=_0x24947f;this[_0x3df6dd(0x24f)]&&this['disposeWithMe'](this['_networkConditionService'][_0x3df6dd(0x195)]['subscribe'](_0x3f2072=>{var _0x2c9f95=_0x3df6dd;_0x3f2072&&!this[_0x2c9f95(0x225)]&&this[_0x2c9f95(0x15e)](),_0x3f2072||this['_onOffline']();}));}[_0x24947f(0x402)](){var _0x38ae03=_0x24947f;super[_0x38ae03(0x402)](),this[_0x38ae03(0x15f)]['forEach'](_0x229b27=>_0x229b27['dispose']()),this[_0x38ae03(0x15f)][_0x38ae03(0x226)](),this['_status$']['complete']();}async[_0x24947f(0x23c)](_0x3ad982){var _0x135286=_0x24947f;if(this[_0x135286(0x15f)][_0x135286(0x28a)](_0x3ad982))return this[_0x135286(0x15f)][_0x135286(0x2f7)](_0x3ad982);this[_0x135286(0x1b9)]();const _0x227d01=this[_0x135286(0x2ac)][_0x135286(0x356)](It,_0x3ad982,this['_socket$'][_0x135286(0x378)]());return this[_0x135286(0x15f)][_0x135286(0x423)](_0x3ad982,_0x227d01),_0x227d01;}[_0x24947f(0x1d5)](_0x654843){var _0x3092c5=_0x24947f,_0x2fccee;const _0x594dfe=this[_0x3092c5(0x15f)][_0x3092c5(0x2f7)](_0x654843);_0x594dfe&&(this[_0x3092c5(0x15f)][_0x3092c5(0x201)](_0x654843),_0x594dfe[_0x3092c5(0x2ef)]()),this[_0x3092c5(0x15f)][_0x3092c5(0x323)]||(_0x2fccee=this['_socket'])==null||_0x2fccee['close']();}[_0x24947f(0x15e)](){var _0x71b5df=_0x24947f;this[_0x71b5df(0x344)]=0x0,this[_0x71b5df(0x22a)]!=null&&(clearTimeout(this[_0x71b5df(0x22a)]),this[_0x71b5df(0x22a)]=null),this[_0x71b5df(0x2b4)]();}async[_0x24947f(0x442)](){var _0x5a86de=_0x24947f,_0x42c825,_0x88d9d8,_0x430861;const _0x13cca9=this['_configService'][_0x5a86de(0x3b4)](q),_0x53f73b=(_0x42c825=_0x13cca9==null?void 0x0:_0x13cca9[_0x5a86de(0x22b)])!=null?_0x42c825:On;return(_0x430861=(_0x88d9d8=(await this[_0x5a86de(0x311)][_0x5a86de(0x2f7)](_0x53f73b,{'headers':{'Content-Type':_0x5a86de(0x427)}}))[_0x5a86de(0x445)])==null?void 0x0:_0x88d9d8[_0x5a86de(0x414)])!=null?_0x430861:'';}[_0x24947f(0x2a2)](_0x1410b0){var _0x2ace1d=_0x24947f,_0x466693,_0x29413d;const _0x322fc8=this[_0x2ace1d(0x1aa)]['getConfig'](bn),_0xb5dacb=this['_configService'][_0x2ace1d(0x3b4)](q),_0x10da8c=(_0x29413d=(_0x466693=_0xb5dacb==null?void 0x0:_0xb5dacb[_0x2ace1d(0x3cb)])!=null?_0x466693:_0x322fc8)!=null?_0x29413d:Rn,_0x4dfdee=typeof window>'u'?new URL(_0x10da8c):new URL(_0x10da8c,window[_0x2ace1d(0x364)][_0x2ace1d(0x3f2)]);_0x4dfdee[_0x2ace1d(0x154)][_0x2ace1d(0x423)](_0x2ace1d(0x1c3),_0x1410b0);const _0x57ffef=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x2ace1d(0x364)]['search']);return _0x57ffef[_0x2ace1d(0x2f7)](_0x2ace1d(0x1bc))&&_0x4dfdee['searchParams']['set'](_0x2ace1d(0x1bc),_0x57ffef[_0x2ace1d(0x2f7)](_0x2ace1d(0x1bc))),_0x4dfdee[_0x2ace1d(0x27f)]();}async[_0x24947f(0x267)](){var _0x39f1e4=_0x24947f;const _0x109a93=await this[_0x39f1e4(0x442)](),_0x1c1367=this['_createSocketURL'](_0x109a93),_0x2f5268=this[_0x39f1e4(0x26d)]['createSocket'](_0x1c1367);return this[_0x39f1e4(0x214)]=_0x2f5268,_0x2f5268;}async[_0x24947f(0x1b9)](){var _0x1c7cd7=_0x24947f,_0x4e9077,_0x4389fa;try{const _0x30df84=(_0x4389fa=(_0x4e9077=this[_0x1c7cd7(0x225)])!=null?_0x4e9077:this[_0x1c7cd7(0x214)])!=null?_0x4389fa:await this[_0x1c7cd7(0x267)]();if(_0x30df84){const _0x59b904=_0x30df84[_0x1c7cd7(0x2cd)];_0x30df84[_0x1c7cd7(0x2cd)]=_0x18bebc=>(this[_0x1c7cd7(0x16d)](),_0x59b904[_0x1c7cd7(0x443)](_0x30df84,[_0x18bebc])),_0x30df84['message$'][_0x1c7cd7(0x30e)](_0x56a573=>this[_0x1c7cd7(0x338)](_0x30df84,_0x56a573)),_0x30df84[_0x1c7cd7(0x18f)][_0x1c7cd7(0x342)](_0x16c6ff(0x1))[_0x1c7cd7(0x30e)](_0x47c268=>this['_logService'][_0x1c7cd7(0x197)](_0x1c7cd7(0x30c),_0x47c268)),_0x30df84['open$'][_0x1c7cd7(0x342)](_0x16c6ff(0x1))[_0x1c7cd7(0x30e)](()=>{var _0x21f52e=_0x1c7cd7;this[_0x21f52e(0x3fd)](_0x30df84);}),_0x30df84[_0x1c7cd7(0x3ef)][_0x1c7cd7(0x342)](_0x16c6ff(0x1))['subscribe'](_0x5b0fdf=>{var _0x6ca96d=_0x1c7cd7;this[_0x6ca96d(0x1d7)][_0x6ca96d(0x31e)]('[CollaborationSessionService]',_0x6ca96d(0x20e),_0x5b0fdf),this[_0x6ca96d(0x235)]();});}}catch(_0x2d6307){this['_logService']['error'](_0x2d6307),this[_0x1c7cd7(0x235)]();}}[_0x24947f(0x3fd)](_0x30a1a0){var _0x1b83c0=_0x24947f;this[_0x1b83c0(0x1d7)]['debug']('[CollaborationSessionService]',_0x1b83c0(0x3e5)),_0x30a1a0[_0x1b83c0(0x2cd)]({'cmd':F[_0x1b83c0(0x1b8)]}),this[_0x1b83c0(0x16d)]();}[_0x24947f(0x2b3)](){var _0x26b814=_0x24947f;this[_0x26b814(0x403)]=!0x1,this[_0x26b814(0x214)]=null,this[_0x26b814(0x24a)][_0x26b814(0x27e)](Te[_0x26b814(0x3af)]),this[_0x26b814(0x42b)][_0x26b814(0x27e)](null),this[_0x26b814(0x3f0)](),this[_0x26b814(0x23e)]();}[_0x24947f(0x235)](){var _0x2b534e=_0x24947f,_0x38780a;this[_0x2b534e(0x2b3)](),this['_retryCount']<((_0x38780a=this[_0x2b534e(0x1aa)]['getConfig'](Pn))!=null?_0x38780a:wn)?(this[_0x2b534e(0x193)][_0x2b534e(0x1fd)]({'id':se['SOCKET_FAILED_RETRY']}),this[_0x2b534e(0x2b4)]()):this['_collaborationUIEventService'][_0x2b534e(0x1fd)]({'id':se[_0x2b534e(0x1f1)]});}[_0x24947f(0x2b4)](){var _0x147147=_0x24947f,_0x183c91;const _0x1206e9=this[_0x147147(0x344)],_0x2a42e9=this[_0x147147(0x1aa)][_0x147147(0x3b4)](q),_0x51be8c=_0x1206e9===0x0?0x0:((_0x183c91=_0x2a42e9==null?void 0x0:_0x2a42e9[_0x147147(0x1ff)])!=null?_0x183c91:Dn)*0x2**_0x1206e9;this[_0x147147(0x22a)]=setTimeout(()=>{var _0x40f568=_0x147147;clearTimeout(this[_0x40f568(0x22a)]),this[_0x40f568(0x22a)]=null,this[_0x40f568(0x1b9)]();},_0x51be8c),this[_0x147147(0x344)]+=0x1;}[_0x24947f(0x338)](_0x57c4e3,_0x3a0dee){var _0x43edce=_0x24947f;const {cmd:_0x544f96}=_0x3a0dee;_0x544f96===F[_0x43edce(0x1b8)]&&!this[_0x43edce(0x403)]&&(_0x57c4e3[_0x43edce(0x2b7)]=_0x3a0dee[_0x43edce(0x3a4)][_0x43edce(0x2b7)],this[_0x43edce(0x42b)][_0x43edce(0x27e)](_0x57c4e3),this[_0x43edce(0x24a)][_0x43edce(0x27e)](Te[_0x43edce(0x244)]),this[_0x43edce(0x403)]=!0x0,this[_0x43edce(0x214)]=null),_0x544f96===F[_0x43edce(0x1c4)]&&this[_0x43edce(0x3f0)](),this[_0x43edce(0x16d)]();}[_0x24947f(0x16d)](){var _0x5a799c=_0x24947f,_0x504195;this['_clearHeartbeatTimer'](),this[_0x5a799c(0x1a0)]=setTimeout(()=>this[_0x5a799c(0x396)](),(_0x504195=this[_0x5a799c(0x1aa)][_0x5a799c(0x3b4)](yn))!=null?_0x504195:Nn);}['_sendHeartbeat'](){var _0x143bba=_0x24947f;this[_0x143bba(0x225)]['send']({'cmd':F['HEARTBEAT']}),this[_0x143bba(0x36f)]();}[_0x24947f(0x36f)](){var _0x501627=_0x24947f,_0x1549c6;this[_0x501627(0x32e)]=setTimeout(()=>this[_0x501627(0x235)](),(_0x1549c6=this[_0x501627(0x1aa)][_0x501627(0x3b4)](Si))!=null?_0x1549c6:Ei);}['_clearHeartbeatTimer'](){var _0x163884=_0x24947f;this[_0x163884(0x1a0)]!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this['_sendHeartbeatTimer']=null);}[_0x24947f(0x3f0)](){var _0x386734=_0x24947f;this[_0x386734(0x32e)]!=null&&(clearTimeout(this[_0x386734(0x32e)]),this[_0x386734(0x32e)]=null);}};Le=er([ge(0x0,_0x2c893e(_0x47c619)),ge(0x1,_0xb67ae9),ge(0x2,_0x14e586),ge(0x3,Ci),ge(0x4,_0x2c893e(_0x2ccc1a)),ge(0x5,_0x2c893e(pe)),ge(0x6,_0x433af4(Mn))],Le);const V=[];for(let n=0x0;n<0x100;++n)V[_0x24947f(0x32c)]((n+0x100)['toString'](0x10)['slice'](0x1));function tr(_0x38aa66,_0x184192=0x0){return(V[_0x38aa66[_0x184192+0x0]]+V[_0x38aa66[_0x184192+0x1]]+V[_0x38aa66[_0x184192+0x2]]+V[_0x38aa66[_0x184192+0x3]]+'-'+V[_0x38aa66[_0x184192+0x4]]+V[_0x38aa66[_0x184192+0x5]]+'-'+V[_0x38aa66[_0x184192+0x6]]+V[_0x38aa66[_0x184192+0x7]]+'-'+V[_0x38aa66[_0x184192+0x8]]+V[_0x38aa66[_0x184192+0x9]]+'-'+V[_0x38aa66[_0x184192+0xa]]+V[_0x38aa66[_0x184192+0xb]]+V[_0x38aa66[_0x184192+0xc]]+V[_0x38aa66[_0x184192+0xd]]+V[_0x38aa66[_0x184192+0xe]]+V[_0x38aa66[_0x184192+0xf]])['toLowerCase']();}let ut;const ir=new Uint8Array(0x10);function nr(){var _0x1a14a5=_0x24947f;if(!ut){if(typeof crypto>'u'||!crypto[_0x1a14a5(0x3f4)])throw new Error(_0x1a14a5(0x3d3));ut=crypto['getRandomValues']['bind'](crypto);}return ut(ir);}const rr=typeof crypto<'u'&&crypto[_0x24947f(0x182)]&&crypto[_0x24947f(0x182)][_0x24947f(0x441)](crypto),qt={'randomUUID':rr};function sr(_0x432975,_0x5432f2,_0x11176c){var _0x46ddd1=_0x24947f,_0x952427,_0x227cf5,_0x4eaa17;if(qt['randomUUID']&&!_0x432975)return qt[_0x46ddd1(0x182)]();_0x432975=_0x432975||{};const _0x6e9558=(_0x4eaa17=(_0x227cf5=_0x432975['random'])!=null?_0x227cf5:(_0x952427=_0x432975[_0x46ddd1(0x365)])==null?void 0x0:_0x952427[_0x46ddd1(0x2ce)](_0x432975))!=null?_0x4eaa17:nr();if(_0x6e9558['length']<0x10)throw new Error(_0x46ddd1(0x3bf));return _0x6e9558[0x6]=_0x6e9558[0x6]&0xf|0x40,_0x6e9558[0x8]=_0x6e9558[0x8]&0x3f|0x80,tr(_0x6e9558);}const J=_0x54590c(_0x24947f(0x2ae));function so(_0x6262e7){var _0x5d92af=_0x24947f;return _0x5d92af(0x2e5)+_0x6262e7;}var or=Object['defineProperty'],ar=Object[_0x24947f(0x2d4)],cr=(_0x1c862c,_0x16e66a,_0x1e15a7,_0x20ef2b)=>{var _0xcbf683=_0x24947f;for(var _0x48535b=_0x20ef2b>0x1?void 0x0:_0x20ef2b?ar(_0x16e66a,_0x1e15a7):_0x16e66a,_0x343ffb=_0x1c862c[_0xcbf683(0x334)]-0x1,_0x23ff6c;_0x343ffb>=0x0;_0x343ffb--)(_0x23ff6c=_0x1c862c[_0x343ffb])&&(_0x48535b=(_0x20ef2b?_0x23ff6c(_0x16e66a,_0x1e15a7,_0x48535b):_0x23ff6c(_0x48535b))||_0x48535b);return _0x20ef2b&&_0x48535b&&or(_0x16e66a,_0x1e15a7,_0x48535b),_0x48535b;},dt=(_0x4a0a37,_0x2eae67)=>(_0x3ec725,_0x3544bd)=>_0x2eae67(_0x3ec725,_0x3544bd,_0x4a0a37);function _0x395a(){var _0x1da538=['subscribe','saveChangeset','abs','_httpService','_keyPriorReset','UNIVER_DOC','SUBMIT_CHANGESET','_getSignURL','UNKNOWN_CODE','onMissedChangesetFetched','_transformUndoredo','NoPadding','open$','collaboration-client.config','_collabSessionService','AUTHZ_URL_KEY','debug','\x20to\x20','random','blockSize','confirm','size','_pendingMutations','update','UUID','string','RETRY_CONNECTING_MAX_COUNT','Error\x20on\x20receiving\x20event','534668NDwJCl','_onUserLeave','push','UPDATE_CURSOR','_timeoutTimer','_doFinalize','_onRemoteRejected','getImage','_revisionService','csShouldRetryEvent','length','prototype','slice','init','_onMessage','LIVESHARE_TERMINATE','updateCursorEvent','Base','CLOSE_ROOM','downloadEndpointUrl','_cipher','/universer-api/authz','event$','UnitEmbedded','pipe','_socketMessageSubscription','_retryCount','readyForCollab','_updateLocalCache','_getDownloadEndpointURL','awaiting','PERSON','onRemoteRej','Pkcs7','_collaborationSessionService','[SyncedState]:\x20received\x20rejection.','generateRandomId','getFocusedUnit','APPLY_PERMISSION_DENIED','Encryptor','onTransformRemoteChangesetByStateCache\x20callback\x20is\x20not\x20added\x20yet.','_checkMissing','_incrementRevisionNumber','HmacMD5','createInstance','buffer','UNIVER_UNKNOWN','LIVESHARE_NEW_HOST','MUTATION','create','snapshotServerUrl','uniscriptRunEvent','EvpKDF','fetch_missing','addImageSourceCache','getCollabEntity','[CollaborationEntity]','/universer-api/snapshot','location','rng','_removeRoom','_replayCachedMutations','isPermissionRej','_HTTPService','_roomCreated$','_imageSourceCache','_toggleOnline','complete','concat','_waitForHeartbeatResponse','LICENSE_DISTRO_REJECTED','_xformMode','UNDEFINED','/-/object/list','Undefined','setShowComponents','_http','m2Prime','asObservable','reqId','LIVESHARE_FETCH_OPERATIONS','SUBMIT_CHANGESET_TIMEOUT','updateMember','status','_ENC_XFORM_MODE','byteLength','NOT_COLLAB','c1Prime','patch','toggleOnline','_undoStacks','_createHmacHelper','put','UNIVER_PROJECT','newCsEvent','_syncEditingCollabCursor','People','CBC','_doCryptBlock','_state$','$super','_compressMutationService','APPLY_NON_SEQUENTIAL_REVISION','getTypeOfUnitDisposed$','_getRedoStack','onSendChangeset','every','selections','_sendHeartbeat','capture','_loadDoc','_sheetTransformSelectionsService','target','?url=','csRejEvent','APPLY_REJECT','c2Prime','_collaborationTimeoutTimer','fetchThroughInterceptors','CHANGESET_REJ','setConfig','execute','data','AWAITING_WITH_PENDING','sessionStatus$','_doReset','workbook','UNKNOWN_CMD','infoRsp','POST','_transformService','CipherParams','OTHER_CLIENT_EDITING','OFFLINE','localeService','onTransformState','/universer-api/file/{fileID}/sign-url','_univerInstanceService','getConfig','_commentUpdate$','LICENSE_IMPORT_SIZE_EXCEEDED','LOCAL_CACHE_INTERVAL','includes','executeCommand','LOGIN_URL_KEY','collaMsg','_singleActiveUnitService','responseType','Hex','Random\x20bytes\x20length\x20must\x20be\x20>=\x2016','_transformSelections','_handlerCallback','max','Hasher','unitID','catch','name','FAIL','addHandlerCallback','csAckEvent','UNISCRIPT_RUN','collabWebSocketUrl','saveSnapshot','COMPRESS_MUTATION_APPLY','_key','univer-pro.collaboration-client-socket-service','_initUnitPermissionChange','_commandService','5915jHVkmZ','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','HMAC','onTransformRemoteChangesetByIMECache','_data','list','COMPRESS_MUTATION_SEND','onRemoteAck','updatePermissionObjEvent','incrementRevOfUnit','removeMember','values','YUUMI_UNABLE_LOAD_URL','getCurrentUser','_hash','/unit/','setWaitCount','_event$','JOIN_ROOM_FULL','socket\x20open.','session.room-cnt-exceeds','image/bmp','_eventService','[SyncedState]:\x20received\x20acknowledgement.','putCollaborators','/universer-api/comb','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_stopTelemetryCollaborationNewChangeset','getSheetBlock','close$','_clearTimeoutTimer','RECV','origin','mode','getRandomValues','updateOfflineData','SNAPSHOT_SERVER_URL_KEY','INGEST','_onCombEvent','getMember','connection\x20error','_parse','liveShareOperation','_onConnectionOpen','_config','ceil','padding','_applyRemoteChangeset','dispose','_socketReady','_undoRedoService','_keySchedule','BASE64','_telemetryInfo','_clearScheduledTask','28154CwoaWA','NEW_CHANGESETS','OpenSSL','unknown','_init','transformMutationsWithChangeset','_hasher','PasswordBasedCipher','encryptBlock','kdf','_startTelemetryCollaborationNewChangeset','ticket','_scheduleCompleteTimestamp','_loadSheet','telemetry\x20info\x20is\x20not\x20initialized','&assign=','INTERNAL_ERROR','json','_entityInit$','replace','transformSelections','revision','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_authzIoService','awaiting_with_pending','ivSize','set','CONNECTOR_DATA_TOO_LARGE','_permissionService','_instanceService','application/json','IDLE','state','_queuedRemoteChangesets','_socket$','createEncryptor','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_map','_iv','NO_OTHER_CLIENTS_EDITING','reset','_shouldReportTelemetry','univer-pro.collaboration-client.network-condition.service','/universer-api/uniscript','ALREADY_EXISTS','_invKeySchedule','members$','_commentService','session','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_joinRoom','userID','_createHelper','baseRev','saveImage','mutations','bind','_getSessionTicket','apply','_onLocalMutation','body','msCrypto','sigBytes','getInterceptPoints','onSyncEditingCollabCursor','Base64','appendMutation','objects','listCollaborators','mixIn','searchParams','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_decreaseWaiting','_awaitingChangeset','_unitID','reject','onlyLocal','transformUndoRedo','_transitionLocked','_clearCollaborationTimeoutTimer','reconnect','_sessions','_getCtorByUniverType','75DXVecp','status$','change$','_sendingTimer','url','originalMeta','ENSURE_SNAPSHOT_EXECUTION','Decryptor','_initCloseConn','_transformRemoteChangesetByIMECache','enc','src','_rescheduleHeartbeat','startTime','PERMISSION_DENIED','onCommandExecuted','resend','getUnitOnRev','href','compute','/-/object/-/batch_allowed','clamp','WordArray','_acknowledgedAwaitingChangeset','SOCKET_FAILED_RETRY','getCollabEntity$','pending','onRemoteRetry','[PendingState]:\x20received\x20acknowledgement.','onCommentUpdate','1314894lETvZr','[OfflineState]:\x20received\x20changeset.','map','randomUUID','_throwTelemetryCollaborationNewChangeset','algo','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','format','_lockTransition','hasOwnProperty','iterations','decryptBlock','&to=','_resendTimeout','actions','getCurrentRevOfUnit','error$','_oKey','/universer-api/snapshot/','textRanges','_collaborationUIEventService','image/jpeg','online$','_memberService','error','_startCollaboration','APPLY_REVISION_CONFILICT','GLOBAL_ROOMS_CNT_EXCEEDS','JOIN_ROOM_NOT_EXISTS','COMPLETION_FINISHED','_schedule','YUUMI_URL_COL_OUT_OF_RANGE','save\x20fail\x20reason\x20is\x20','_sendHeartbeatTimer','sheets','LIVESHARE_OPERATION','changesets','SNAPSHOT_URL_KEY','univer-pro.collaboration-client.single-active-unit-service','_substituteRedoStack','_roomMembers','/object/','MSG_FOR_ERROR','_configService','Univer','3474XHHUik','createCollaborator','getSnapshotAPIPath','_onUserJoin','requestParams','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','UNIVER_SLIDE','_doProcessBlock','roles','_process','_createInitialStateImpl','collabSubmitChangesetUrl','HELLO','_tryEnsureSocket','salt','collaborators','runId','_nRounds','liveShareNewHost','encrypt','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','[UniverCollaborationClientPlugin]','withCredentials','sessionTicket','HEARTBEAT','_sender','[FetchMissState]','SHOULD_CLOSE_CONN','UNIVER_COLLABORATION_CLIENT_PLUGIN','cmd','SHA1','disableLocalCache','NOT_FOUND','clone','_fetchMissChangesets','decrypt','stringify','INVALID_ARGUMENT','8pVmsIH','title','_createInitialState','closeSession','fetching\x20missing\x20changesets\x20from\x20','_logService','8100009ayQtAU','LEAVE','sid','BlockCipherMode','\x20in\x20_schedule.','Latin1','fetchMiss','exports','getImageSourceCache','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','ERROR_EXCEED_SIZE','?size=','JOIN_ROOM_PERMISSION_DENIED','failed\x20to\x20apply\x20missed\x20changesets!','Could\x20not\x20dynamically\x20require\x20\x22','floor','Malformed\x20UTF-8\x20data','createDecryptor','not_collab','isArray','type','_userManagerService','_localeService','default','readInt32LE','SOCKET_FAILED','_members$','collaboration_new_changeset','_clearUndo','filter','_clearRedo','onTransformRemoteChangesetByStateCache','add','objectActions','cfg','_substituteUndoStack','params','emitEvent','CHANGESET_ACK','retryConnectingInterval','leaveEvent','delete','YUUMI_RATE_OVER_LIMIT','_getSendChangesetTimeout','/block/','range','/collaborator','result','_replaceFileID','[OfflineState]:\x20received\x20rejection.','onRemoteChangeset','CHANGESET_SHOULD_RETRY','localCacheService','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','socket\x20close','[PendingState]:\x20received\x20rejection.','_onJoinRoomEvent','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','stopTime','JOIN','_candidateSocket','_updateState','/object','fetchMissingChangesets','\x0aAfter:\x20','listRoles','MD5','_transformRemoteChangesetByStateCache','subUnitId','FileId','subject','unsubscribe','COLLAB_WEB_SOCKET_URL','duration','routeKey','COMMENT_UPDATE','_unlockTransition','_socket','clear','_getUndoStack','onTransformSelections','JOINING','_retryConnectingTimer','wsSessionTicketUrl','_submitChangeset','11075036OlKJmv','_handler','getMemberID','_collaborationPaused','registerHTTPInterceptor','_changesetReqId','[PendingState]:\x20unhandled\x20univer\x20type:\x20','equals','_onConnectionFailed','lib','_append','loadOfflineData','byteOffset','code','_getAPIPrefix','requireSession','splice','_clearHeartbeatTimer','_members','symbol','SerializableCipher','getWorkbookSelections','extend','ONLINE','getTypeOfUnitAdded$','USERS_ENTER','SNAPSHOT_HAS_BEEN_REMOVED','rev','conflict','_status$','FETCH_MISS','ERROR_IMAGE','_telemetryService','_getLoginPath','_networkConditionService','\x0aCurrent:\x20','AES','HttpImport','getTime','1143490rsctCi','HttpExport','__creator','[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.','transformChangesets','fromCharCode','JOIN_ROOM_FAILED','_localCacheService','_transformIMECache','_change$','LICENSE_EXPORT_SIZE_EXCEEDED','getLatestCsReqIdBySid','CONFLICT','resourceIDs','_entities','getActiveSheet','snapshot','loginUrlKey','_remoteChangesetQueue','_createSocket','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','APPLY_DUPLICATED','getRoom','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_scheduleCollaborationTimeoutTimer','_socketService','ciphertext','CHANGESET_REVISION_CONFILICT','PERMISSION_REJ','_resendTimer','unitId\x20is\x20not\x20found','entityInit$','parse','image/png','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','submit\x20changeset\x20error!','fromCollab','pluginName','[CollaborationUndoRedoService]','auth.needGotoLoginAlert','ws://127.0.0.1:8000/universer-api/comb/connect','_transformStateCache','next','toString','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','\x20-\x20','getValue','find','interceptor','OPTIONAL','_state','uploadFileServerUrl','image/jpg','encode','has','charCodeAt','_changesetSessionId','DEFAULT_FILE_NAME','FETCH_MISSING','_isPermissionRej','_exhaustRemoteChangesetQueue','_resendWithTimeout','getResourcesRequest','synced','readAsDataURL','Utf8','_getCurrentRevision','[CollaborationSession]','eventID','commentUpdate$','_sessionStatus$','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','SEND_CHANGESET_TIMEOUT','LIVESHARE_REQUEST_HOST','waitForRoom$','headers','substr','/resources','_createSocketURL','22ieOgdL','updatePermissionPoint','crypto','joinRsp','sendChangesetTimeout','_registerDependencies','[DataLoaderService]','_createHandler','OTHER_CLIENTS_EDITING','_injector','_iKey','collaboration-client.local-cache-service','LICENSE_MAX_UNITS_EXCEEDED','now','/universer-api/oidc/authpage','setCurrentUser','_onOffline','_tryReconnect','file','[CollaborationState]:\x20apply\x20error!','memberID','message$','members','startsWith','Native\x20crypto\x20module\x20could\x20not\x20be\x20used\x20to\x20get\x20secure\x20random\x20number.','_initDependencies','UNRECOGNIZED','session.room-permission-denied','join','hasher','_executeRemoteChangeset','objectType','_onFetchMissResult','onStarting','key','_DEC_XFORM_MODE','roomInfos','disposeWithMe','entries','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','getUnitType','_disableEditing','send','call','getUnitId','offline','post','/universer-api/stream/file/upload','forEach','getOwnPropertyDescriptor','YUUMI_SUBSCRIPTION_NOT_FOUND','ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=','USERS_LEAVE','EXCHANGE_SIGN_URL_SERVER_URL_KEY','PSEUDO_FETCH_MISSING_RESULT','indexOf','onTransformIME','_onRemoteACK','_unitInfo$','pad','toggleOffline','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','deleteCollaborator','_prevBlock','_showConflictNotification','_getAPIPrefixPath','unit-cache-','_getUploadFileURL','refreshPermission','HEARTBEAT_INTERVAL','commentUpdateEvent','TOO_MANY_REQUESTS','_updateStatus','words','_snapshotService','defineProperty','close','objectID','batchAllowed','_clearLocalCache','finalize','_waitCount','awaitingChangeset','formatter','get','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_nDataBytes','_toggleOffline','unitId','UNAUTHENTICATED','signUrlServerUrl','function','UnitSnapshot','transformStack\x20failed!','BufferedBlockAlgorithm','keySize','initWorkbookPermissionChange','state$','_onConflict','session.join-failed','_type','UNIVER_SHEET','_mode','action','dispose$','[CollaborationSessionService]:\x20socket\x20error','COLLAB_SUBMIT_CHANGESET_URL'];_0x395a=function(){return _0x1da538;};return _0x395a();}function hr(_0x213c81){var _0x4bd720=_0x24947f;const {unitID:_0x296da8,mutations:_0x257130}=_0x213c81;return{'unitId':_0x296da8,'subUnitId':_0x257130[0x0][_0x4bd720(0x1fc)][_0x4bd720(0x21c)]};}let it=class{constructor(_0x374fac,_0x40aba7,_0x37bbfb){var _0x5bc17b=_0x24947f;this[_0x5bc17b(0x2ac)]=_0x374fac,this['_transformService']=_0x40aba7,this[_0x5bc17b(0x426)]=_0x37bbfb;}[_0x24947f(0x41d)](_0x2c2bba){var _0x3d8002=_0x24947f,_0x5774b8,_0x53fab7,_0x5775dc,_0xd092f2;const _0x1aa664=this[_0x3d8002(0x2ac)][_0x3d8002(0x2f7)](_0xdb1513),{unitId:_0x346625,subUnitId:_0x10088c}=hr(_0x2c2bba),_0x58a32b=_0x1aa664==null?void 0x0:_0x1aa664[_0x3d8002(0x242)](_0x346625)['getCurrentSelections'](),_0x31318d=(_0x53fab7=(_0x5774b8=this[_0x3d8002(0x426)]['getUnit'](_0x346625))==null?void 0x0:_0x5774b8[_0x3d8002(0x263)]())==null?void 0x0:_0x53fab7['getSheetId']();if(_0x58a32b[_0x3d8002(0x334)]===0x0||!_0x346625||!_0x10088c)return;const _0x5516ee=[{'id':_0x26ab67['id'],'params':{'unitId':_0x346625,'subUnitId':_0x31318d,'selections':_0x5aefb7['deepClone'](_0x58a32b)}}],_0x106f3c=this['_transformService'][_0x3d8002(0x40e)](_0x2c2bba,_0x5516ee);if(!_0x3229d7(_0x106f3c))throw _0x106f3c[_0x3d8002(0x197)];const _0x455c2f=(_0xd092f2=(_0x5775dc=_0x106f3c[_0x3d8002(0x377)][0x0])==null?void 0x0:_0x5775dc[_0x3d8002(0x1fc)])==null?void 0x0:_0xd092f2[_0x3d8002(0x395)];if(Array[_0x3d8002(0x1eb)](_0x455c2f)&&_0x455c2f[_0x3d8002(0x334)]){if(_0x455c2f[_0x3d8002(0x334)]===_0x5516ee[0x0][_0x3d8002(0x1fc)][_0x3d8002(0x395)][_0x3d8002(0x334)]&&_0x455c2f['every']((_0x58d442,_0x438365)=>_0x591d96[_0x3d8002(0x234)](_0x58d442[_0x3d8002(0x205)],_0x5516ee[0x0][_0x3d8002(0x1fc)]['selections'][_0x438365][_0x3d8002(0x205)])))return;this[_0x3d8002(0x2ac)][_0x3d8002(0x2f7)](_0xb31905)['executeCommand'](_0x26ab67['id'],{'unitId':_0x346625,'subUnitId':_0x31318d,'selections':_0x455c2f});}}};it=cr([dt(0x0,_0x2c893e(_0x47c619)),dt(0x1,_0x303fbe),dt(0x2,_0x1443af)],it);const ht=_0x54590c(_0x24947f(0x1a5));var Ri=(_0x6d80ac=>(_0x6d80ac[_0x6d80ac[_0x24947f(0x430)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x6d80ac[_0x6d80ac[_0x24947f(0x2ab)]=0x1]='OTHER_CLIENTS_EDITING',_0x6d80ac))(Ri||{});const _r=new Set([_0xbe7bb1['id']]);function zt(_0x193568,_0x332375,_0x1e4df8,_0x2c6873,_0x53a4a9){var _0x225c60=_0x24947f,_0x515827,_0x20efb7,_0x31ce6a,_0x3c7871;const _0x4e94b9=[];for(const _0x56bfe3 of _0x193568)if(_r[_0x225c60(0x28a)](_0x56bfe3['id'])){if(_0x4e94b9[_0x225c60(0x334)]>0x0)break;_0x4e94b9[_0x225c60(0x32c)](_0x56bfe3);break;}else _0x4e94b9['push'](_0x56bfe3);const _0xe79555=(_0x20efb7=(_0x515827=_0x53a4a9[_0x225c60(0x3df)]())==null?void 0x0:_0x515827[_0x225c60(0x43c)])!=null?_0x20efb7:_0x225c60(0x40c),_0x5e4c25=(_0x3c7871=(_0x31ce6a=_0x53a4a9['getCurrentUser']())==null?void 0x0:_0x31ce6a[_0x225c60(0x2b7)])!=null?_0x3c7871:_0x225c60(0x40c);return{'changeset':{'unitID':_0x332375,'type':_0xbcd09c(_0x1e4df8[_0x225c60(0x2cb)](_0x332375)),'baseRev':_0x2c6873[_0x225c60(0x18e)](_0x332375),'revision':0x0,'userID':_0xe79555,'memberID':_0x5e4c25,'mutations':_0x4e94b9},'pendingMutations':_0x193568['slice'](_0x4e94b9['length'])};}function lr(_0x427599,_0x98d713,_0xcb2751,_0x3d7f4e,_0x3f0222){var _0x595bbe=_0x24947f,_0x1d4e50,_0x5adfad,_0x10a997,_0x51c175;const _0x2926eb=[_0x427599['reduce']((_0x5269df,_0xe87e0b)=>{var _0x5f44ef=_0x2266,_0x144ba1;const {id:_0x4dcbf6}=_0x5269df,{id:_0x1c1eb5,type:_0x438910}=_0xe87e0b,_0x406fea=(_0x144ba1=_0x5269df[_0x5f44ef(0x1fc)])!=null?_0x144ba1:{'actions':null},_0x1f4141=_0xe87e0b[_0x5f44ef(0x1fc)];if(_0x4dcbf6&&_0x4dcbf6!==_0x1c1eb5)throw new Error(_0x5f44ef(0x276)+_0x4dcbf6+_0x5f44ef(0x281)+_0x1c1eb5+'.');return{..._0x5269df,'id':_0x1c1eb5,'type':_0x438910,'params':{'unitId':_0x1f4141[_0x5f44ef(0x2fb)],'textRanges':_0x1f4141[_0x5f44ef(0x192)],'actions':_0x4d41d7['compose'](_0x406fea[_0x5f44ef(0x18d)],_0x1f4141['actions'])}};},{})],_0x39b032=(_0x5adfad=(_0x1d4e50=_0x3f0222[_0x595bbe(0x3df)]())==null?void 0x0:_0x1d4e50[_0x595bbe(0x43c)])!=null?_0x5adfad:_0x595bbe(0x40c),_0x37e733=(_0x51c175=(_0x10a997=_0x3f0222[_0x595bbe(0x3df)]())==null?void 0x0:_0x10a997[_0x595bbe(0x2b7)])!=null?_0x51c175:'unknown';return{'changeset':{'unitID':_0x98d713,'type':_0xbcd09c(_0xcb2751[_0x595bbe(0x2cb)](_0x98d713)),'baseRev':_0x3d7f4e[_0x595bbe(0x18e)](_0x98d713),'revision':0x0,'userID':_0x39b032,'memberID':_0x37e733,'mutations':_0x2926eb},'pendingMutations':[]};}function Oi(_0x4d03cf,_0x54f407){var _0x842fc8=_0x24947f;const _0x420f78=new _0x38d184(0x1);return setTimeout(()=>_0x420f78[_0x842fc8(0x27e)](_0x54f407),_0x4d03cf),_0x420f78[_0x842fc8(0x378)]()[_0x842fc8(0x342)](_0x56ccab(0x1));}const ur={'id':_0x240145['id'],'type':_0x2f0eda[_0x24947f(0x35a)],'params':{}};var dr=Object[_0x24947f(0x2ee)],fr=Object[_0x24947f(0x2d4)],be=(_0x12a09f,_0x444767,_0x387f63,_0x573fd4)=>{for(var _0x1f9434=_0x573fd4>0x1?void 0x0:_0x573fd4?fr(_0x444767,_0x387f63):_0x444767,_0x30b27e=_0x12a09f['length']-0x1,_0x3cfac1;_0x30b27e>=0x0;_0x30b27e--)(_0x3cfac1=_0x12a09f[_0x30b27e])&&(_0x1f9434=(_0x573fd4?_0x3cfac1(_0x444767,_0x387f63,_0x1f9434):_0x3cfac1(_0x1f9434))||_0x1f9434);return _0x573fd4&&_0x1f9434&&dr(_0x444767,_0x387f63,_0x1f9434),_0x1f9434;},A=(_0x3f1342,_0xc421d4)=>(_0x45cbfd,_0xa29134)=>_0xc421d4(_0x45cbfd,_0xa29134,_0x3f1342),yi=(_0x379409=>(_0x379409[_0x24947f(0x380)]=_0x24947f(0x1ea),_0x379409['SYNCED']='synced',_0x379409['PENDING']=_0x24947f(0x17b),_0x379409['AWAITING']=_0x24947f(0x348),_0x379409[_0x24947f(0x3a5)]=_0x24947f(0x421),_0x379409[_0x24947f(0x24b)]=_0x24947f(0x35f),_0x379409[_0x24947f(0x260)]=_0x24947f(0x249),_0x379409[_0x24947f(0x3af)]=_0x24947f(0x2d0),_0x379409))(yi||{});const Ni=0xea60;class Re{constructor(_0x11e42b,_0x3a3201,_0x10e6e2,_0x1e3965,_0x450b72,_0x27d605,_0x552d32,_0x128475,_0x653e56){var _0x50c0db=_0x24947f;N(this,_0x50c0db(0x157),null),N(this,'_pendingMutations',[]),(this['unitID']=_0x11e42b,this['type']=_0x3a3201,this['_handler']=_0x450b72,this[_0x50c0db(0x3d1)]=_0x27d605,this[_0x50c0db(0x404)]=_0x552d32,this['_revisionService']=_0x128475,this[_0x50c0db(0x25b)]=_0x653e56,this[_0x50c0db(0x157)]=_0x10e6e2,this[_0x50c0db(0x324)]=_0x1e3965);}['_checkMissing'](_0x2956ad){var _0x3c6e11=_0x24947f;const _0x3327f7=this[_0x3c6e11(0x332)][_0x3c6e11(0x18e)](this[_0x3c6e11(0x3c4)]);return _0x2956ad['revision']>_0x3327f7+0x1?(this[_0x3c6e11(0x22e)]['onMissingChangesets']({'from':_0x3327f7,'to':_0x2956ad[_0x3c6e11(0x41e)]-0x1}),!0x0):!0x1;}[_0x24947f(0x318)](_0x2fe5ac){var _0x4fe9ca=_0x24947f;this['_undoRedoService']['transformUndoRedo'](this[_0x4fe9ca(0x3c4)],_0x2fe5ac);}[_0x24947f(0x3c0)](_0x4bec57){var _0x1bb998=_0x24947f,_0x25c7f6,_0xd47484;(_0xd47484=(_0x25c7f6=this[_0x1bb998(0x22e)])[_0x1bb998(0x228)])==null||_0xd47484['call'](_0x25c7f6,_0x4bec57);}[_0x24947f(0x25c)](_0x1e8594){var _0x29ab89=_0x24947f,_0x532f29,_0x3a954e;return(_0x3a954e=(_0x532f29=this[_0x29ab89(0x22e)])[_0x29ab89(0x2db)])==null?void 0x0:_0x3a954e[_0x29ab89(0x2ce)](_0x532f29,_0x1e8594);}['_transformStateCache'](_0x1cf9a7){var _0x34af17=_0x24947f,_0x11ab01,_0x45b7c8;return(_0x45b7c8=(_0x11ab01=this['_handler'])[_0x34af17(0x3b1)])==null?void 0x0:_0x45b7c8[_0x34af17(0x2ce)](_0x11ab01,_0x1cf9a7);}[_0x24947f(0x16a)](_0x202f07){var _0x30eec7=_0x24947f,_0x468bc7,_0x3eabcf,_0x26d9ce;return(_0x26d9ce=(_0x3eabcf=(_0x468bc7=this[_0x30eec7(0x22e)])[_0x30eec7(0x3d5)])==null?void 0x0:_0x3eabcf[_0x30eec7(0x2ce)](_0x468bc7,_0x202f07))!=null?_0x26d9ce:_0x202f07;}[_0x24947f(0x21b)](_0x50f882){var _0xea0e8d=_0x24947f,_0x50b6be,_0x2a7fe0,_0x37b5c6;return(_0x37b5c6=(_0x2a7fe0=(_0x50b6be=this[_0xea0e8d(0x22e)])[_0xea0e8d(0x1f7)])==null?void 0x0:_0x2a7fe0[_0xea0e8d(0x2ce)](_0x50b6be,_0x50f882))!=null?_0x37b5c6:_0x50f882;}['_syncEditingCollabCursor'](_0x5a9fbf){var _0x561c1f=_0x24947f,_0x122e17,_0x1f4d3f;if(this[_0x561c1f(0x1ec)]===Q['UNIVER_DOC']){const {unitID:_0x2f91ab,mutations:_0x3c2c9b,memberID:_0x158a5c}=_0x5a9fbf,_0x573ceb=_0x3c2c9b[0x0][_0x561c1f(0x1fc)][_0x561c1f(0x192)];Array[_0x561c1f(0x1eb)](_0x573ceb)&&_0x573ceb[_0x561c1f(0x334)]>0x0&&((_0x1f4d3f=(_0x122e17=this[_0x561c1f(0x22e)])[_0x561c1f(0x449)])==null||_0x1f4d3f[_0x561c1f(0x2ce)](_0x122e17,{'unitID':_0x2f91ab,'memberID':_0x158a5c,'textRanges':_0x573ceb}));}}[_0x24947f(0x346)](){var _0x8cd041=_0x24947f,_0x2842c1;(_0x2842c1=this[_0x8cd041(0x25b)])==null||_0x2842c1['updateOfflineData'](this[_0x8cd041(0x3c4)],this['type'],this[_0x8cd041(0x157)],this[_0x8cd041(0x324)]);}[_0x24947f(0x296)](){var _0x5373e4=_0x24947f;return this[_0x5373e4(0x332)][_0x5373e4(0x18e)](this['unitID']);}[_0x24947f(0x354)](){var _0x51c90e=_0x24947f;this['_revisionService'][_0x51c90e(0x3db)](this['unitID']);}['_executeRemoteChangeset'](_0x48556a){var _0x2592eb=_0x24947f,_0x1c594b;let _0x1b9a49=this[_0x2592eb(0x16a)](_0x48556a);_0x1b9a49=this[_0x2592eb(0x21b)](_0x1b9a49);const _0x300001=_0x14706b(_0x1b9a49[_0x2592eb(0x440)],this[_0x2592eb(0x3d1)],{'fromCollab':!0x0});if(!_0x300001[_0x2592eb(0x207)])throw _0x300001[_0x2592eb(0x197)]instanceof Error?_0x300001[_0x2592eb(0x197)]:new Error((_0x1c594b=_0x300001[_0x2592eb(0x197)])!=null?_0x1c594b:_0x2592eb(0x2b6));this[_0x2592eb(0x25c)](_0x1b9a49),this[_0x2592eb(0x27d)](_0x1b9a49),this['_transformUndoredo'](_0x48556a),this['_transformSelections'](_0x1b9a49),this[_0x2592eb(0x389)](_0x1b9a49),this[_0x2592eb(0x354)]();}}let De=class extends Re{constructor(_0x21e606,_0x571382,_0x82e0c2,_0x1a98f0,_0x2560ef,_0x852c5a,_0x2f7e62,_0x2fc0bb,_0x3c7804,_0x20b1f8){var _0x1a658d=_0x24947f;super(_0x21e606,_0x571382,null,[],_0x82e0c2,_0x2f7e62,_0x852c5a,_0x1a98f0,_0x20b1f8),N(this,_0x1a658d(0x37d),_0x1a658d(0x293)),(this[_0x1a658d(0x2ac)]=_0x2560ef,this[_0x1a658d(0x1d7)]=_0x2fc0bb,this['_transformService']=_0x3c7804,this['localCacheService']=_0x20b1f8);}[_0x24947f(0x44b)](_0xb8a333){var _0x25cc83=_0x24947f;const _0x49ef76=this[_0x25cc83(0x2ac)][_0x25cc83(0x356)](oe,this[_0x25cc83(0x3c4)],this[_0x25cc83(0x1ec)],[_0xb8a333],this[_0x25cc83(0x22e)]);return _0x49ef76[_0x25cc83(0x19d)](),_0x49ef76['_updateLocalCache'](),_0x49ef76;}[_0x24947f(0x20a)](_0x13b068){var _0x93cc6e=_0x24947f;if(this[_0x93cc6e(0x353)](_0x13b068))return this['_injector'][_0x93cc6e(0x356)](te,this[_0x93cc6e(0x3c4)],this[_0x93cc6e(0x1ec)],null,[],null,[_0x13b068],this[_0x93cc6e(0x22e)]);try{const _0x19ebed=this['_transformService'][_0x93cc6e(0x40e)](_0x13b068,[ur]);if(_0x3229d7(_0x19ebed)){const {c1Prime:_0x19ec0e}=_0x19ebed;return this[_0x93cc6e(0x2c1)](_0x19ec0e),this;}throw _0x19ebed[_0x93cc6e(0x197)];}catch(_0x3a6e2b){return this['_logService'][_0x93cc6e(0x197)](_0x3a6e2b),this['_onConflict'](!0x1);}}[_0x24947f(0x305)](_0x5beba5){var _0x58340d=_0x24947f;return this[_0x58340d(0x2ac)][_0x58340d(0x356)](de,this[_0x58340d(0x3c4)],this['type'],null,[],this[_0x58340d(0x22e)],_0x5beba5);}[_0x24947f(0x3d9)](){var _0x29ea72=_0x24947f;throw new Error(_0x29ea72(0x3e9));}[_0x24947f(0x34a)](){var _0x2f1581=_0x24947f;throw new Error(_0x2f1581(0x34d));}[_0x24947f(0x17c)](){return this;}[_0x24947f(0x2df)](){var _0x24e98f=_0x24947f;return this[_0x24e98f(0x2ac)]['createInstance'](fe,this[_0x24e98f(0x3c4)],this[_0x24e98f(0x1ec)],null,[],this[_0x24e98f(0x22e)]);}[_0x24947f(0x383)](){return this;}[_0x24947f(0x171)](){var _0x17c336=_0x24947f;throw new Error(_0x17c336(0x1c0));}[_0x24947f(0x1de)](){var _0x4ee963=_0x24947f;const _0x17e810=this['_revisionService'][_0x4ee963(0x18e)](this[_0x4ee963(0x3c4)]);return this['_handler']['onMissingChangesets']({'from':_0x17e810,'to':0x0}),this[_0x4ee963(0x2ac)]['createInstance'](te,this[_0x4ee963(0x3c4)],this[_0x4ee963(0x1ec)],null,[],null,[],this[_0x4ee963(0x22e)]);}};De=be([A(0x3,_0x2c893e(_0x4c63f1)),A(0x4,_0x2c893e(_0x47c619)),A(0x5,_0x6cc440),A(0x6,_0xb31905),A(0x7,_0xb67ae9),A(0x8,_0x303fbe),A(0x9,_0x433af4(J))],De);let oe=class extends Re{constructor(_0x5cc19b,_0x5bb18c,_0x5651fa,_0xf2c79,_0x122597,_0x327857,_0x1f2aa5,_0x23b907,_0x5047d6,_0x3da29a,_0x23cf2f,_0x48f11a,_0xb17c27,_0x4c33c){var _0x54e547=_0x24947f;super(_0x5cc19b,_0x5bb18c,null,_0x5651fa,_0xf2c79,_0x5047d6,_0xb17c27,_0x327857,_0x4c33c),N(this,_0x54e547(0x37d),_0x54e547(0x17b)),N(this,_0x54e547(0x415),null),N(this,_0x54e547(0x164),null),(this[_0x54e547(0x2ac)]=_0x122597,this[_0x54e547(0x196)]=_0x1f2aa5,this[_0x54e547(0x1d7)]=_0x23b907,this[_0x54e547(0x1aa)]=_0x3da29a,this[_0x54e547(0x3ac)]=_0x23cf2f,this[_0x54e547(0x3b3)]=_0x48f11a);}[_0x24947f(0x44b)](_0x151035){var _0x403779=_0x24947f;return this['_pendingMutations'][_0x403779(0x32c)](_0x151035),this['_updateLocalCache'](),this;}[_0x24947f(0x20a)](_0x311a86){var _0x54a8d2=_0x24947f;if(this[_0x54a8d2(0x353)](_0x311a86))return this[_0x54a8d2(0x408)](),this[_0x54a8d2(0x2ac)][_0x54a8d2(0x356)](te,this[_0x54a8d2(0x3c4)],this[_0x54a8d2(0x1ec)],null,this[_0x54a8d2(0x324)],null,[_0x311a86],this['_handler']);try{const _0x268757=this[_0x54a8d2(0x3ac)]['transformMutationsWithChangeset'](_0x311a86,this[_0x54a8d2(0x324)]);if(_0x3229d7(_0x268757)){const {c1Prime:_0x3dc0d1,m2Prime:_0x5dc96c}=_0x268757;this[_0x54a8d2(0x2c1)](_0x3dc0d1);const _0x39aca4=this[_0x54a8d2(0x2ac)][_0x54a8d2(0x356)](oe,this['unitID'],this[_0x54a8d2(0x1ec)],_0x5dc96c,this['_handler']);this[_0x54a8d2(0x408)]();const _0x308a67=new Date()[_0x54a8d2(0x253)](),_0x6cb8b4=this[_0x54a8d2(0x415)]?Math[_0x54a8d2(0x3c2)](this[_0x54a8d2(0x415)]-_0x308a67,0x0):this[_0x54a8d2(0x203)]();return _0x39aca4['_schedule'](_0x6cb8b4),_0x39aca4;}throw _0x268757[_0x54a8d2(0x197)];}catch(_0x48aa28){return this[_0x54a8d2(0x1d7)][_0x54a8d2(0x197)](_0x48aa28),this[_0x54a8d2(0x305)](!0x1);}}['onRemoteAck'](){var _0x310dca=_0x24947f;throw new Error(_0x310dca(0x17d));}[_0x24947f(0x34a)](){var _0x313f7d=_0x24947f;throw new Error(_0x313f7d(0x20f));}['onRemoteRetry'](){return this;}[_0x24947f(0x2df)](){var _0x5d92d3=_0x24947f;return this[_0x5d92d3(0x408)](),this[_0x5d92d3(0x2ac)][_0x5d92d3(0x356)](fe,this[_0x5d92d3(0x3c4)],this['type'],null,this[_0x5d92d3(0x324)],this[_0x5d92d3(0x22e)]);}[_0x24947f(0x383)](){return this;}[_0x24947f(0x19d)](_0x3fcbb2){var _0x12eb1c=_0x24947f;const _0x3334ef=_0x3fcbb2!=null?_0x3fcbb2:this[_0x12eb1c(0x203)]();this[_0x12eb1c(0x415)]=new Date()[_0x12eb1c(0x253)]()+_0x3334ef,this['_sendingTimer']=setTimeout(()=>{var _0x2fd995=_0x12eb1c;this['_clearScheduledTask']();let _0x18854b=null;switch(this['type']){case Q[_0x2fd995(0x308)]:{_0x18854b=zt(this[_0x2fd995(0x324)],this[_0x2fd995(0x3c4)],this[_0x2fd995(0x3b3)],this[_0x2fd995(0x332)],this[_0x2fd995(0x196)]);break;}case Q[_0x2fd995(0x313)]:{this[_0x2fd995(0x324)][_0x2fd995(0x394)](_0x4f5f03=>_0x4f5f03['id']===_0x5ea005['id'])?_0x18854b=lr(this[_0x2fd995(0x324)],this[_0x2fd995(0x3c4)],this[_0x2fd995(0x3b3)],this[_0x2fd995(0x332)],this['_memberService']):_0x18854b=zt(this[_0x2fd995(0x324)],this[_0x2fd995(0x3c4)],this[_0x2fd995(0x3b3)],this[_0x2fd995(0x332)],this[_0x2fd995(0x196)]);break;}default:throw new Error(_0x2fd995(0x233)+this['type']+_0x2fd995(0x1dc));}const {changeset:_0x326b21,pendingMutations:_0x5cbaf2}=_0x18854b;this[_0x2fd995(0x22e)]['onSendChangeset'](_0x326b21);const _0x2cd3dd=_0x5cbaf2[_0x2fd995(0x334)]?this[_0x2fd995(0x2ac)][_0x2fd995(0x356)](ae,this[_0x2fd995(0x3c4)],this['type'],_0x326b21,_0x5cbaf2,this[_0x2fd995(0x22e)],void 0x0):this['_injector'][_0x2fd995(0x356)](ue,this['unitID'],this[_0x2fd995(0x1ec)],_0x326b21,this['_handler']);_0x2cd3dd['_updateLocalCache'](),this[_0x2fd995(0x22e)]['onStateChange'](this,_0x2cd3dd);},_0x3334ef);}['_getSendChangesetTimeout'](){var _0x4ffe3a=_0x24947f,_0x606a31;const _0x95dc61=this[_0x4ffe3a(0x1aa)][_0x4ffe3a(0x3b4)](q);return(_0x606a31=_0x95dc61==null?void 0x0:_0x95dc61[_0x4ffe3a(0x2a7)])!=null?_0x606a31:Cn;}[_0x24947f(0x171)](){var _0x3cea3c=_0x24947f;throw new Error(_0x3cea3c(0x26b));}['_clearScheduledTask'](){var _0x39e3d6=_0x24947f;this[_0x39e3d6(0x164)]!=null&&(clearTimeout(this[_0x39e3d6(0x164)]),this[_0x39e3d6(0x164)]=null);}['_onConflict'](_0x226ba7){var _0x483f84=_0x24947f;return this[_0x483f84(0x408)](),this[_0x483f84(0x2ac)][_0x483f84(0x356)](de,this['unitID'],this[_0x483f84(0x1ec)],null,this[_0x483f84(0x324)],this[_0x483f84(0x22e)],_0x226ba7);}};oe=be([A(0x4,_0x2c893e(_0x47c619)),A(0x5,_0x2c893e(_0x4c63f1)),A(0x6,_0x2c893e(xe)),A(0x7,_0xb67ae9),A(0x8,_0xb31905),A(0x9,_0x14e586),A(0xa,_0x303fbe),A(0xb,_0x1443af),A(0xc,_0x6cc440),A(0xd,_0x433af4(J))],oe);let ue=class extends Re{constructor(_0x196033,_0x2c9740,_0x307af7,_0x497a56,_0x35a4a9,_0x4b682e,_0x432307,_0xf6fe86,_0x9bc0e9,_0x1e9be9,_0x1f8a69){var _0x20e175=_0x24947f;super(_0x196033,_0x2c9740,_0x307af7,[],_0x497a56,_0x432307,_0x1e9be9,_0x4b682e,_0x1f8a69),N(this,_0x20e175(0x37d),'awaiting'),N(this,_0x20e175(0x18c),0x0),N(this,'_resendTimer'),N(this,_0x20e175(0x1c5)),(this[_0x20e175(0x2ac)]=_0x35a4a9,this['_logService']=_0xf6fe86,this[_0x20e175(0x3ac)]=_0x9bc0e9);}[_0x24947f(0x44b)](_0x2221ec){var _0x1412ee=_0x24947f;this[_0x1412ee(0x408)]();const _0x1b49b7=this[_0x1412ee(0x2ac)][_0x1412ee(0x356)](ae,this[_0x1412ee(0x3c4)],this[_0x1412ee(0x1ec)],this['_awaitingChangeset'],[_0x2221ec],this[_0x1412ee(0x22e)],this['_resendTimer']);return _0x1b49b7[_0x1412ee(0x346)](),_0x1b49b7;}['onRemoteChangeset'](_0x15a8fb){var _0x5da943=_0x24947f;if(this['_checkMissing'](_0x15a8fb))return this[_0x5da943(0x408)](),this['_injector'][_0x5da943(0x356)](te,this[_0x5da943(0x3c4)],this[_0x5da943(0x1ec)],this[_0x5da943(0x157)],[],null,[_0x15a8fb],this[_0x5da943(0x22e)]);try{const _0x419797=this[_0x5da943(0x3ac)]['transformChangesets']([_0x15a8fb],[this[_0x5da943(0x157)]],!0x1);if(_0x3b13ac(_0x419797)){const {c1Prime:_0x34455d,c2Prime:_0x2eb32c}=_0x419797;this['_executeRemoteChangeset'](_0x34455d[0x0]),_0x2eb32c[0x0][_0x5da943(0x43e)]=this[_0x5da943(0x296)](),this[_0x5da943(0x408)]();const _0x2686b9=this[_0x5da943(0x2ac)]['createInstance'](ue,this[_0x5da943(0x3c4)],this[_0x5da943(0x1ec)],_0x2eb32c[0x0],this[_0x5da943(0x22e)]);return _0x2686b9[_0x5da943(0x346)](),_0x2686b9;}return this[_0x5da943(0x305)](!0x1);}catch(_0x48d89c){return this[_0x5da943(0x1d7)][_0x5da943(0x197)](_0x48d89c),this[_0x5da943(0x305)](!0x1);}}[_0x24947f(0x3d9)](_0x3e2f9f){var _0x564189=_0x24947f;this[_0x564189(0x408)]();const _0x11d9f4=this[_0x564189(0x332)]['getCurrentRevOfUnit'](this[_0x564189(0x3c4)]);if(_0x3e2f9f[_0x564189(0x41e)]<_0x11d9f4-0x1)return this;if(this[_0x564189(0x353)](_0x3e2f9f))return this['_injector'][_0x564189(0x356)](te,this[_0x564189(0x3c4)],this[_0x564189(0x1ec)],null,[],this[_0x564189(0x157)],[],this[_0x564189(0x22e)]);this['_incrementRevisionNumber']();const _0x1887e8=this[_0x564189(0x2ac)][_0x564189(0x356)](De,this[_0x564189(0x3c4)],this[_0x564189(0x1ec)],this['_handler']);return _0x1887e8[_0x564189(0x346)](),_0x1887e8;}['onRemoteRej'](_0x238977){var _0x5506b4=_0x24947f;return this[_0x5506b4(0x305)](!!(_0x238977!=null&&_0x238977['isPermissionRej']));}[_0x24947f(0x17c)](_0x2d7b75){var _0x40b4e4=_0x24947f;return this[_0x40b4e4(0x18c)]>Ni?this[_0x40b4e4(0x2df)]():(this[_0x40b4e4(0x271)]=Oi(this[_0x40b4e4(0x18c)],{'timeout':this['_resendTimeout'],'reqId':_0x2d7b75[_0x40b4e4(0x379)]}),this[_0x40b4e4(0x1c5)]=this[_0x40b4e4(0x271)][_0x40b4e4(0x30e)](({reqId:_0x334a19,timeout:_0x245c3e})=>{var _0x53f244=_0x40b4e4;this[_0x53f244(0x291)](_0x334a19,_0x245c3e);}),this);}[_0x24947f(0x2df)](){var _0x3c5d03=_0x24947f;return this[_0x3c5d03(0x408)](),this[_0x3c5d03(0x2ac)][_0x3c5d03(0x356)](fe,this[_0x3c5d03(0x3c4)],this['type'],this[_0x3c5d03(0x157)],[],this[_0x3c5d03(0x22e)]);}[_0x24947f(0x383)](){return this;}[_0x24947f(0x171)](){var _0x58187c=_0x24947f;this[_0x58187c(0x22e)][_0x58187c(0x393)](this[_0x58187c(0x157)]);}[_0x24947f(0x305)](_0xcb9e92){var _0x1a261e=_0x24947f;return this[_0x1a261e(0x408)](),this[_0x1a261e(0x2ac)][_0x1a261e(0x356)](de,this['unitID'],this['type'],this[_0x1a261e(0x157)],[],this[_0x1a261e(0x22e)],_0xcb9e92);}[_0x24947f(0x291)](_0x3fd5db,_0xd0ab26){var _0x206911=_0x24947f,_0x578735;_0x3fd5db===((_0x578735=this[_0x206911(0x157)])==null?void 0x0:_0x578735[_0x206911(0x379)])&&(this[_0x206911(0x171)](),this[_0x206911(0x18c)]=_0xd0ab26===0x0?0x3e8:_0xd0ab26*0x2);}[_0x24947f(0x408)](){var _0x3862b9=_0x24947f,_0x4a0323;(_0x4a0323=this[_0x3862b9(0x1c5)])==null||_0x4a0323[_0x3862b9(0x21f)](),this[_0x3862b9(0x18c)]=0x0;}};ue=be([A(0x4,_0x2c893e(_0x47c619)),A(0x5,_0x2c893e(_0x4c63f1)),A(0x6,_0xb31905),A(0x7,_0xb67ae9),A(0x8,_0x303fbe),A(0x9,_0x6cc440),A(0xa,_0x433af4(J))],ue);function _0x2266(_0x100f48,_0x286fad){var _0x395a4d=_0x395a();return _0x2266=function(_0x226667,_0x373a6b){_0x226667=_0x226667-0x152;var _0x563fcc=_0x395a4d[_0x226667];return _0x563fcc;},_0x2266(_0x100f48,_0x286fad);}let ae=class extends Re{constructor(_0x201034,_0x506254,_0x74ae4f,_0x5aec2f,_0x3c6c9d,_0x262434,_0x179908,_0x3fdd0e,_0x271441,_0x3daf37,_0x52230c,_0x23f465,_0x49e111){var _0xf2d301=_0x24947f;super(_0x201034,_0x506254,_0x74ae4f,_0x5aec2f,_0x3c6c9d,_0x271441,_0x23f465,_0x3fdd0e,_0x49e111),N(this,'status',_0xf2d301(0x421)),N(this,'_resendTimeout',0x0),N(this,'_resendTimer'),N(this,'_sender'),(this[_0xf2d301(0x2ac)]=_0x179908,this[_0xf2d301(0x1d7)]=_0x3daf37,this[_0xf2d301(0x3ac)]=_0x52230c,this[_0xf2d301(0x20c)]=_0x49e111,_0x262434&&(this[_0xf2d301(0x271)]=_0x262434,this['_sender']=this[_0xf2d301(0x271)]['subscribe'](({reqId:_0x3d6976,timeout:_0x1b4917})=>{var _0x247709=_0xf2d301;this[_0x247709(0x291)](_0x3d6976,_0x1b4917);})));}[_0x24947f(0x44b)](_0x313500){var _0x46abc2=_0x24947f;return this[_0x46abc2(0x324)]['push'](_0x313500),this;}[_0x24947f(0x20a)](_0x576945){var _0xb562d5=_0x24947f;if(this['_checkMissing'](_0x576945))return this[_0xb562d5(0x408)](),this[_0xb562d5(0x2ac)][_0xb562d5(0x356)](te,this[_0xb562d5(0x3c4)],this[_0xb562d5(0x1ec)],this[_0xb562d5(0x157)],this[_0xb562d5(0x324)],null,[_0x576945],this['_handler']);try{const _0x1bb659=this[_0xb562d5(0x3ac)][_0xb562d5(0x258)]([_0x576945],[this[_0xb562d5(0x157)]],!0x1);if(_0x3b13ac(_0x1bb659)){const {c1Prime:_0x2a83b0,c2Prime:_0x2ff5c6}=_0x1bb659,_0x492113=this[_0xb562d5(0x3ac)][_0xb562d5(0x40e)](_0x2a83b0[0x0],this[_0xb562d5(0x324)]);if(_0x3229d7(_0x492113)){const {c1Prime:_0x1ecf11,m2Prime:_0x55d73b}=_0x492113;return this[_0xb562d5(0x2c1)](_0x1ecf11),_0x2ff5c6[0x0][_0xb562d5(0x43e)]=this[_0xb562d5(0x296)](),this[_0xb562d5(0x408)](),this[_0xb562d5(0x2ac)][_0xb562d5(0x356)](ae,this[_0xb562d5(0x3c4)],this[_0xb562d5(0x1ec)],_0x2ff5c6[0x0],_0x55d73b,this['_handler'],void 0x0);}throw _0x492113['error'];}throw _0x1bb659[_0xb562d5(0x197)];}catch(_0x3dccd0){return this[_0xb562d5(0x1d7)]['error'](_0x3dccd0),this[_0xb562d5(0x305)](!0x1);}}[_0x24947f(0x3d9)](_0x3ab06b){var _0x847355=_0x24947f;if(this[_0x847355(0x408)](),this[_0x847355(0x353)](_0x3ab06b))return this[_0x847355(0x2ac)]['createInstance'](te,this[_0x847355(0x3c4)],this[_0x847355(0x1ec)],null,this[_0x847355(0x324)],this['_awaitingChangeset'],[],this[_0x847355(0x22e)]);this['_incrementRevisionNumber']();const _0x2ffd6d=this[_0x847355(0x2ac)][_0x847355(0x356)](oe,this[_0x847355(0x3c4)],this[_0x847355(0x1ec)],this[_0x847355(0x324)],this[_0x847355(0x22e)]);return _0x2ffd6d[_0x847355(0x19d)](),_0x2ffd6d['_updateLocalCache'](),_0x2ffd6d;}[_0x24947f(0x34a)](_0x1cf591){var _0x5ca445=_0x24947f;return this[_0x5ca445(0x305)](!!(_0x1cf591!=null&&_0x1cf591[_0x5ca445(0x368)]));}['onRemoteRetry'](_0x1e55f8){var _0x2946c6=_0x24947f;return this['_resendTimeout']>Ni?this['toggleOffline']():(this[_0x2946c6(0x271)]=Oi(this[_0x2946c6(0x18c)],{'timeout':this[_0x2946c6(0x18c)],'reqId':_0x1e55f8[_0x2946c6(0x379)]}),this[_0x2946c6(0x1c5)]=this[_0x2946c6(0x271)][_0x2946c6(0x30e)](({reqId:_0x5c8bf5,timeout:_0x5485ba})=>{var _0x40a688=_0x2946c6;this[_0x40a688(0x291)](_0x5c8bf5,_0x5485ba);}),this);}[_0x24947f(0x2df)](){var _0x425218=_0x24947f;return this[_0x425218(0x408)](),this[_0x425218(0x2ac)][_0x425218(0x356)](fe,this['unitID'],this[_0x425218(0x1ec)],this[_0x425218(0x157)],this[_0x425218(0x324)],this['_handler']);}[_0x24947f(0x383)](){return this;}[_0x24947f(0x171)](){var _0x52b2a9=_0x24947f;this[_0x52b2a9(0x22e)][_0x52b2a9(0x393)](this[_0x52b2a9(0x157)]);}[_0x24947f(0x305)](_0x46fee7){var _0x1892d0=_0x24947f;return this[_0x1892d0(0x408)](),this['_injector']['createInstance'](de,this['unitID'],this[_0x1892d0(0x1ec)],null,this[_0x1892d0(0x324)],this[_0x1892d0(0x22e)],_0x46fee7);}[_0x24947f(0x291)](_0x4ff92f,_0x4e5abe){var _0x138c08=_0x24947f,_0x1aa728;_0x4ff92f===((_0x1aa728=this['_awaitingChangeset'])==null?void 0x0:_0x1aa728[_0x138c08(0x379)])&&(this[_0x138c08(0x171)](),this[_0x138c08(0x18c)]=_0x4e5abe===0x0?0x3e8:_0x4e5abe*0x2);}[_0x24947f(0x408)](){var _0x1f7ac7=_0x24947f,_0x448444;(_0x448444=this['_sender'])==null||_0x448444[_0x1f7ac7(0x21f)](),this[_0x1f7ac7(0x18c)]=0x0;}};ae=be([A(0x6,_0x2c893e(_0x47c619)),A(0x7,_0x2c893e(_0x4c63f1)),A(0x8,_0xb31905),A(0x9,_0xb67ae9),A(0xa,_0x303fbe),A(0xb,_0x6cc440),A(0xc,_0x433af4(J))],ae);let de=class extends Re{constructor(_0x3a489d,_0x2e2408,_0x35f92c,_0x411c6f,_0x3538fe,_0x46e20d=!0x1,_0x3e6b77,_0x24f5f8,_0x5dfd23,_0x5bd529,_0x2f3f70,_0x6491c4,_0x29bb71){var _0x4390ed=_0x24947f;super(_0x3a489d,_0x2e2408,_0x35f92c,_0x411c6f,_0x3538fe,_0x24f5f8,_0x5dfd23,_0x5bd529,_0x29bb71),N(this,_0x4390ed(0x37d),_0x4390ed(0x249)),(this['_isPermissionRej']=_0x46e20d,this[_0x4390ed(0x425)]=_0x3e6b77,this[_0x4390ed(0x1ee)]=_0x2f3f70,this[_0x4390ed(0x193)]=_0x6491c4,this[_0x4390ed(0x20c)]=_0x29bb71,this[_0x4390ed(0x2e3)](),this[_0x4390ed(0x2f2)](),this['_disableEditing']());}[_0x24947f(0x44b)](){return this;}[_0x24947f(0x20a)](){return this;}[_0x24947f(0x3d9)](){return this;}[_0x24947f(0x34a)](){return this;}[_0x24947f(0x17c)](){return this;}[_0x24947f(0x2df)](){return this;}[_0x24947f(0x383)](){return this;}[_0x24947f(0x171)](){var _0x2da4ca=_0x24947f;throw new Error(_0x2da4ca(0x2f8));}[_0x24947f(0x2f2)](){var _0x44f845=_0x24947f,_0x56eb05;(_0x56eb05=this[_0x44f845(0x25b)])==null||_0x56eb05[_0x44f845(0x3f5)](this['unitID'],this[_0x44f845(0x1ec)],null,[]);}[_0x24947f(0x2e3)](){var _0x58a899=_0x24947f;this[_0x58a899(0x28f)]?this['_collaborationUIEventService'][_0x58a899(0x1fd)]({'id':se[_0x58a899(0x16f)]}):this[_0x58a899(0x193)][_0x58a899(0x1fd)]({'id':se[_0x58a899(0x260)]});}[_0x24947f(0x2cc)](){var _0x1e3f31=_0x24947f;this[_0x1e3f31(0x425)]['updatePermissionPoint'](new _0x5ec447(this[_0x1e3f31(0x3c4)])['id'],!0x1);}};de=be([A(0x6,_0x2c893e(_0x2ee679)),A(0x7,_0xb31905),A(0x8,_0x6cc440),A(0x9,_0x2c893e(_0x4c63f1)),A(0xa,_0x2c893e(_0x4f5132)),A(0xb,_0x2c893e(pe)),A(0xc,_0x433af4(J))],de);let fe=class extends Re{constructor(_0x21322b,_0x4e4cff,_0x1ccd5e,_0x23fc17,_0x1f66ed,_0x7f3f6,_0x2b5589,_0x9cba38,_0x392281,_0x4a1380){var _0x537354=_0x24947f;super(_0x21322b,_0x4e4cff,_0x1ccd5e,_0x23fc17,_0x1f66ed,_0x9cba38,_0x392281,_0x2b5589,_0x4a1380),N(this,_0x537354(0x37d),_0x537354(0x2d0)),this['_injector']=_0x7f3f6;}[_0x24947f(0x44b)](_0x27b468){var _0x16ead4=_0x24947f;return this[_0x16ead4(0x324)][_0x16ead4(0x32c)](_0x27b468),this[_0x16ead4(0x346)](),this;}[_0x24947f(0x20a)](_0x573856){var _0x103099=_0x24947f;throw new Error(_0x103099(0x180));}[_0x24947f(0x3d9)](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){var _0x51dfb0=_0x24947f;throw new Error(_0x51dfb0(0x209));}[_0x24947f(0x17c)](){return this;}['toggleOffline'](){return this;}['toggleOnline'](){var _0x4e69eb=_0x24947f;const {_injector:_0x3bada8,_pendingMutations:_0x540bda,_awaitingChangeset:_0x5752fc,unitID:_0x4c96ac,_handler:_0x2d0aa9,type:_0x26d3f2}=this,_0x18f8ce=Di(_0x3bada8,_0x4c96ac,_0x26d3f2,_0x5752fc,_0x540bda,_0x2d0aa9);return _0x18f8ce instanceof oe?_0x18f8ce[_0x4e69eb(0x19d)]():(_0x18f8ce instanceof ae||_0x18f8ce instanceof ue)&&_0x18f8ce[_0x4e69eb(0x171)](),_0x18f8ce;}[_0x24947f(0x171)](){var _0x4ad4c0=_0x24947f;throw new Error(_0x4ad4c0(0x20d));}};fe=be([A(0x5,_0x2c893e(_0x47c619)),A(0x6,_0x2c893e(_0x4c63f1)),A(0x7,_0xb31905),A(0x8,_0x6cc440),A(0x9,_0x433af4(J))],fe);let te=class extends Re{constructor(_0x509aa1,_0x4a1a34,_0x36acb0,_0x21e27a,_0xd4fb,_0x3fd49d,_0x59183a,_0x22c94a,_0x56b9ce,_0x340a05,_0x2c2b45,_0x4ed72b,_0x5560ae,_0x36922c){var _0x3c48e5=_0x24947f;super(_0x509aa1,_0x4a1a34,_0x36acb0,_0x21e27a,_0x59183a,_0x2c2b45,_0x4ed72b,_0x56b9ce,_0x36922c),N(this,_0x3c48e5(0x37d),'fetch_missing'),(this[_0x3c48e5(0x178)]=_0xd4fb,this[_0x3c48e5(0x42a)]=_0x3fd49d,this['_injector']=_0x22c94a,this[_0x3c48e5(0x1d7)]=_0x340a05,this[_0x3c48e5(0x3ac)]=_0x5560ae,this[_0x3c48e5(0x20c)]=_0x36922c);}[_0x24947f(0x317)](_0x485d48){var _0x10d392=_0x24947f;try{const _0x1354f9=[..._0x485d48,...this[_0x10d392(0x42a)]],_0x27d81=[this['_awaitingChangeset']||this[_0x10d392(0x178)]][_0x10d392(0x1f5)](_0xdc83b7=>!!_0xdc83b7);let _0x1281da,_0x2f13e4;if(_0x27d81[_0x10d392(0x334)]){const _0x2df01d=this[_0x10d392(0x3ac)][_0x10d392(0x258)](_0x1354f9,_0x27d81,!0x1);if(!_0x3b13ac(_0x2df01d))throw _0x2df01d[_0x10d392(0x197)];_0x1281da=_0x2df01d[_0x10d392(0x381)],_0x2f13e4=_0x2df01d[_0x10d392(0x39e)];}else _0x1281da=_0x1354f9,_0x2f13e4=[];let _0x53a5eb=this[_0x10d392(0x324)];_0x1281da[_0x10d392(0x2d3)](_0x464321=>{var _0xaa3d16=_0x10d392;let _0x4d0a81;if(_0x53a5eb['length']){const _0x35cea9=this[_0xaa3d16(0x3ac)][_0xaa3d16(0x40e)](_0x464321,_0x53a5eb);if(!_0x3229d7(_0x35cea9))throw _0x35cea9['error'];_0x4d0a81=_0x35cea9[_0xaa3d16(0x381)],_0x53a5eb=_0x35cea9['m2Prime'];}else _0x4d0a81=_0x464321;this[_0xaa3d16(0x2c1)](_0x4d0a81);}),this['_acknowledgedAwaitingChangeset']&&this[_0x10d392(0x354)](),this[_0x10d392(0x157)]&&_0x2f13e4['length']&&(_0x2f13e4[0x0][_0x10d392(0x43e)]=this[_0x10d392(0x296)]());let _0x237d4a;if(this[_0x10d392(0x157)]&&_0x53a5eb[_0x10d392(0x334)]!==0x0)_0x237d4a=this[_0x10d392(0x2ac)][_0x10d392(0x356)](ae,this[_0x10d392(0x3c4)],this['type'],_0x2f13e4[0x0],_0x53a5eb,this['_handler'],void 0x0);else{if(this['_awaitingChangeset']&&_0x53a5eb[_0x10d392(0x334)]===0x0)_0x2f13e4[0x0][_0x10d392(0x43e)]=this[_0x10d392(0x296)](),_0x237d4a=this['_injector'][_0x10d392(0x356)](ue,this[_0x10d392(0x3c4)],this[_0x10d392(0x1ec)],_0x2f13e4[0x0],this[_0x10d392(0x22e)]);else{if(_0x53a5eb[_0x10d392(0x334)]!==0x0){const _0x294ffc=this[_0x10d392(0x2ac)]['createInstance'](oe,this[_0x10d392(0x3c4)],this[_0x10d392(0x1ec)],_0x53a5eb,this['_handler']);_0x294ffc[_0x10d392(0x19d)](),_0x237d4a=_0x294ffc;}else _0x237d4a=this['_injector'][_0x10d392(0x356)](De,this['unitID'],this[_0x10d392(0x1ec)],this['_handler']);}}return _0x237d4a[_0x10d392(0x346)](),_0x237d4a;}catch(_0x4d221c){return this[_0x10d392(0x1d7)][_0x10d392(0x197)](_0x10d392(0x1c6),_0x10d392(0x1e5),_0x4d221c),this[_0x10d392(0x2ac)]['createInstance'](de,this[_0x10d392(0x3c4)],this[_0x10d392(0x1ec)],this[_0x10d392(0x157)],this['_pendingMutations'],this[_0x10d392(0x22e)],!0x1);}}['resend'](){var _0x4530ec=_0x24947f;throw new Error(_0x4530ec(0x155));}[_0x24947f(0x44b)](_0x3f22f8){var _0x1e7f59=_0x24947f;return this['_pendingMutations'][_0x1e7f59(0x32c)](_0x3f22f8),this;}['onRemoteChangeset'](_0x1fcff0){var _0x261d2c=_0x24947f;return this[_0x261d2c(0x42a)][_0x261d2c(0x32c)](_0x1fcff0),this;}[_0x24947f(0x3d9)](_0x12a78e){var _0x46bdaf=_0x24947f;if(this[_0x46bdaf(0x157)])return this[_0x46bdaf(0x178)]=this[_0x46bdaf(0x157)],this[_0x46bdaf(0x157)]=null,this;throw new Error(_0x46bdaf(0x2e0));}['onRemoteRej'](_0x533901){var _0x12e1a3=_0x24947f;return this[_0x12e1a3(0x305)](!!(_0x533901!=null&&_0x533901[_0x12e1a3(0x368)]));}[_0x24947f(0x17c)](){return this;}[_0x24947f(0x2df)](){var _0xf6973b=_0x24947f;return this['_injector'][_0xf6973b(0x356)](fe,this[_0xf6973b(0x3c4)],this[_0xf6973b(0x1ec)],this['_awaitingChangeset'],this[_0xf6973b(0x324)],this['_handler']);}[_0x24947f(0x383)](){return this;}[_0x24947f(0x305)](_0x44a4f7){var _0x351b56=_0x24947f;return this[_0x351b56(0x2ac)][_0x351b56(0x356)](de,this[_0x351b56(0x3c4)],this[_0x351b56(0x1ec)],this[_0x351b56(0x157)],this[_0x351b56(0x324)],this[_0x351b56(0x22e)],_0x44a4f7);}};te=be([A(0x7,_0x2c893e(_0x47c619)),A(0x8,_0x2c893e(_0x4c63f1)),A(0x9,_0xb67ae9),A(0xa,_0xb31905),A(0xb,_0x6cc440),A(0xc,_0x303fbe),A(0xd,_0x433af4(J))],te);function Di(_0xae984e,_0x43e768,_0x31baeb,_0x1803c2,_0x35f039,_0x39f04b){var _0x452b03=_0x24947f;return _0x1803c2&&_0x35f039['length']?_0xae984e[_0x452b03(0x356)](ae,_0x43e768,_0x31baeb,_0x1803c2,_0x35f039,_0x39f04b,void 0x0):_0x1803c2?_0xae984e[_0x452b03(0x356)](ue,_0x43e768,_0x31baeb,_0x1803c2,_0x39f04b):_0x35f039['length']?_0xae984e['createInstance'](oe,_0x43e768,_0x31baeb,_0x35f039,_0x39f04b):_0xae984e[_0x452b03(0x356)](De,_0x43e768,_0x31baeb,_0x39f04b);}var vr=Object[_0x24947f(0x2ee)],pr=Object[_0x24947f(0x2d4)],Lt=(_0x496445,_0x21b4ce,_0x50d522,_0x4057c0)=>{var _0x3993b2=_0x24947f;for(var _0x198eac=_0x4057c0>0x1?void 0x0:_0x4057c0?pr(_0x21b4ce,_0x50d522):_0x21b4ce,_0x4125f5=_0x496445[_0x3993b2(0x334)]-0x1,_0x18e88b;_0x4125f5>=0x0;_0x4125f5--)(_0x18e88b=_0x496445[_0x4125f5])&&(_0x198eac=(_0x4057c0?_0x18e88b(_0x21b4ce,_0x50d522,_0x198eac):_0x18e88b(_0x198eac))||_0x198eac);return _0x4057c0&&_0x198eac&&vr(_0x21b4ce,_0x50d522,_0x198eac),_0x198eac;},k=(_0x5f28f1,_0x27be54)=>(_0x3d26ee,_0x43bfae)=>_0x27be54(_0x3d26ee,_0x43bfae,_0x5f28f1);let nt=class extends _0xd51a1a{constructor(_0x1485c9,_0x19b495,_0x141075,_0x25ecb6,_0x39100e,_0x237a28,_0x5a5f21,_0x3e60a5,_0x2f8ea8,_0xf679e0,_0xf02cdc,_0xea32d7,_0x336373){var _0x22e92a=_0x24947f;super(),N(this,_0x22e92a(0x38d),new _0x4e33c6(null)),N(this,_0x22e92a(0x304),this['_state$']['asObservable']()),N(this,_0x22e92a(0x286)),N(this,'_collaborationPaused',!0x1),N(this,_0x22e92a(0x28c),''),N(this,_0x22e92a(0x232),0x0),N(this,_0x22e92a(0x162),this[_0x22e92a(0x304)][_0x22e92a(0x342)](_0x2dc63b(_0x5456a1=>_0x5456a1?_0x5456a1[_0x22e92a(0x37d)]:yi[_0x22e92a(0x3af)]),_0x504617(0x1))),N(this,_0x22e92a(0x15c),!0x1),N(this,_0x22e92a(0x266),[]),(this[_0x22e92a(0x3c4)]=_0x1485c9,this[_0x22e92a(0x439)]=_0x19b495,this[_0x22e92a(0x307)]=_0x141075,this[_0x22e92a(0x2ac)]=_0x25ecb6,this['_compressMutationService']=_0x39100e,this['_localeService']=_0x237a28,this[_0x22e92a(0x332)]=_0x5a5f21,this[_0x22e92a(0x3e8)]=_0x3e60a5,this[_0x22e92a(0x1d7)]=_0x2f8ea8,this['_commandService']=_0xf679e0,this['_permissionService']=_0xf02cdc,this['_singleActiveUnitService']=_0xea32d7,this['_localCacheService']=_0x336373);}get[_0x24947f(0x429)](){return this['_state'];}async[_0x24947f(0x337)](){var _0x400138=_0x24947f;if(this[_0x400138(0x429)])throw new Error(_0x400138(0x43a));await this['_init']();}['pauseCollaboration'](){var _0x5423e8=_0x24947f;return this[_0x5423e8(0x230)]=!0x0,_0x50d33e(()=>{var _0x113388=_0x5423e8;this[_0x113388(0x230)]=!0x1,this[_0x113388(0x290)]();});}['onLocalMutation'](_0x352d45){this['_onLocalMutation'](_0x352d45);}[_0x24947f(0x215)](_0x201c74){var _0x3f6e5c=_0x24947f;this['_state']=_0x201c74,this[_0x3f6e5c(0x38d)]['next'](_0x201c74);}async[_0x24947f(0x40d)](){var _0x27d15b=_0x24947f,_0x3932d8;this['_updateState'](await this[_0x27d15b(0x1d4)]()),this[_0x27d15b(0x3bc)]&&((_0x3932d8=this['_singleActiveUnitService'])==null||_0x3932d8['editingUnit'](this['unitID']),this['disposeWithMe'](this[_0x27d15b(0x3bc)]['getUnitStatus$'](this[_0x27d15b(0x3c4)])['subscribe'](_0x3ed0b2=>{var _0x332d95=_0x27d15b;this[_0x332d95(0x1d7)]['debug'](_0x332d95(0x362),'editing\x20status\x20changed\x20to',_0x3ed0b2),_0x3ed0b2===Ri[_0x332d95(0x2ab)]?(this[_0x332d95(0x3e8)][_0x332d95(0x1fd)]({'id':se[_0x332d95(0x3ae)]}),this[_0x332d95(0x425)][_0x332d95(0x2a4)](new _0x5ec447(this[_0x332d95(0x3c4)])['id'],!0x1),this[_0x332d95(0x425)][_0x332d95(0x375)](!0x1)):(this[_0x332d95(0x425)][_0x332d95(0x2a4)](new _0x5ec447(this['unitID'])['id'],!0x0),this[_0x332d95(0x425)][_0x332d95(0x375)](!0x0));})));let _0x535656=!0x1;return this[_0x27d15b(0x2c8)](this['session']['sessionStatus$'][_0x27d15b(0x30e)](_0x4aa07b=>{var _0x231a1f=_0x27d15b;_0x4aa07b===Te[_0x231a1f(0x244)]?this[_0x231a1f(0x36c)](_0x535656):_0x4aa07b===Te[_0x231a1f(0x3af)]&&(_0x535656=!0x0,this[_0x231a1f(0x2fa)]());})),this[_0x27d15b(0x2c8)](this[_0x27d15b(0x439)][_0x27d15b(0x340)][_0x27d15b(0x30e)](_0x3f7f6e=>{var _0x52d30f=_0x27d15b;try{switch(_0x3f7f6e[_0x52d30f(0x298)]){case _0x5b603b[_0x52d30f(0x40a)]:{this['_onRemoteChangeset'](_0x21ca95(_0x3f7f6e['data']));break;}case _0x5b603b[_0x52d30f(0x1fe)]:{this['_onRemoteACK'](_0x3f7f6e[_0x52d30f(0x3a4)]);break;}case _0x5b603b[_0x52d30f(0x3a1)]:{this[_0x52d30f(0x330)]();break;}case _0x5b603b['CHANGESET_SHOULD_RETRY']:{this['_onRemoteRetry'](_0x3f7f6e['data']);break;}case _0x5b603b[_0x52d30f(0x2d9)]:{this[_0x52d30f(0x2c3)](_0x3f7f6e['data']['changesets']['map'](_0x4a853a=>_0x21ca95(_0x4a853a)));break;}case _0x5b603b[_0x52d30f(0x270)]:{this[_0x52d30f(0x330)]({'isPermissionRej':!0x0});break;}case _0x5b603b['UNISCRIPT_RUN']:break;}}catch(_0x58e09d){throw console[_0x52d30f(0x197)](_0x52d30f(0x329),_0x58e09d),_0x58e09d;}})),this[_0x27d15b(0x286)];}[_0x24947f(0x224)](){var _0x53bc6e=_0x24947f;this[_0x53bc6e(0x15c)]=!0x1;}[_0x24947f(0x187)](){var _0x3cdc61=_0x24947f;if(this[_0x3cdc61(0x15c)])throw new Error(_0x3cdc61(0x257));this[_0x3cdc61(0x15c)]=!0x0;}[_0x24947f(0x444)](_0x4ed5c4){var _0x6fd8e6=_0x24947f;this['_lockTransition'](),this['_updateState'](this[_0x6fd8e6(0x286)][_0x6fd8e6(0x44b)](_0x4ed5c4)),this[_0x6fd8e6(0x224)]();}['_onRemoteChangeset'](_0x5119f5){var _0x3de1f6=_0x24947f;if(!(_0x5119f5['revision']<=this['_revisionService'][_0x3de1f6(0x18e)](this['unitID']))){if(this[_0x3de1f6(0x230)]){this[_0x3de1f6(0x266)]['push'](_0x5119f5);return;}this[_0x3de1f6(0x401)](_0x5119f5);}}[_0x24947f(0x290)](){var _0x2d1b61=_0x24947f;this[_0x2d1b61(0x266)]['forEach'](_0x55ed35=>this[_0x2d1b61(0x401)](_0x55ed35)),this[_0x2d1b61(0x266)]=[];}[_0x24947f(0x401)](_0x357025){var _0x332628=_0x24947f;const _0x5075bc=this[_0x332628(0x38f)][_0x332628(0x284)][_0x332628(0x3a0)](this['_compressMutationService'][_0x332628(0x284)][_0x332628(0x448)]()[_0x332628(0x3cd)])(_0x357025['mutations'],null)||_0x357025[_0x332628(0x440)],_0x4d4859={..._0x357025,'mutations':_0x5075bc};this[_0x332628(0x187)](),this['_updateState'](this[_0x332628(0x286)][_0x332628(0x20a)](_0x4d4859)),this['_unlockTransition']();}[_0x24947f(0x2dc)](_0x2fcc67){var _0x1e79ed=_0x24947f;this[_0x1e79ed(0x187)](),this[_0x1e79ed(0x215)](this[_0x1e79ed(0x286)]['onRemoteAck'](_0x2fcc67)),this[_0x1e79ed(0x224)]();}['_onRemoteRejected'](_0x4bf5c9){var _0x25c212=_0x24947f;this['_lockTransition'](),this[_0x25c212(0x215)](this[_0x25c212(0x286)][_0x25c212(0x34a)](_0x4bf5c9)),this[_0x25c212(0x224)]();}['_onRemoteRetry'](_0x1e622c){var _0x3c8512=_0x24947f;this[_0x3c8512(0x187)](),this[_0x3c8512(0x215)](this[_0x3c8512(0x286)][_0x3c8512(0x17c)](_0x1e622c)),this[_0x3c8512(0x224)]();}['_onFetchMissResult'](_0x4cc3c3){var _0x53c1cc=_0x24947f;if(!(this[_0x53c1cc(0x286)]instanceof te))throw new TypeError(_0x53c1cc(0x280));const _0x7724c3=_0x4cc3c3[_0x53c1cc(0x181)](_0x3d89a2=>{var _0x334e44=_0x53c1cc;const _0x5d5986=this['_compressMutationService'][_0x334e44(0x284)][_0x334e44(0x3a0)](this[_0x334e44(0x38f)][_0x334e44(0x284)][_0x334e44(0x448)]()[_0x334e44(0x3cd)])(_0x3d89a2[_0x334e44(0x440)],null)||_0x3d89a2[_0x334e44(0x440)];return{..._0x3d89a2,'mutations':_0x5d5986};});this[_0x53c1cc(0x187)](),this[_0x53c1cc(0x215)](this[_0x53c1cc(0x286)][_0x53c1cc(0x317)](_0x7724c3)),this[_0x53c1cc(0x224)]();}[_0x24947f(0x2fa)](){var _0x4880fa=_0x24947f;this['_lockTransition'](),this[_0x4880fa(0x215)](this[_0x4880fa(0x286)]['toggleOffline']()),this[_0x4880fa(0x224)]();}['_toggleOnline'](_0x4fedb4=!0x1){var _0x2abc93=_0x24947f;this[_0x2abc93(0x187)](),this[_0x2abc93(0x215)](this[_0x2abc93(0x286)][_0x2abc93(0x383)]()),this[_0x2abc93(0x224)]();const _0x548184=this[_0x2abc93(0x286)];_0x4fedb4&&_0x548184 instanceof De&&(this[_0x2abc93(0x187)](),this[_0x2abc93(0x215)](_0x548184['fetchMiss']()),this[_0x2abc93(0x224)]());}async[_0x24947f(0x1d4)](){return new Promise(_0x107d1a=>{var _0x3e2fd0=_0x2266;this[_0x3e2fd0(0x439)]['sessionStatus$'][_0x3e2fd0(0x342)](_0x56ccab(0x1))[_0x3e2fd0(0x30e)](async _0x3f2a28=>{var _0x5c4d98=_0x3e2fd0;_0x107d1a(await this[_0x5c4d98(0x1b6)](_0x3f2a28===Te['ONLINE']));});});}[_0x24947f(0x2aa)](){var _0x56f585=_0x24947f;const _0x147ff7=this[_0x56f585(0x3c4)];return{'onStateChange':(_0x49ccc1,_0x22ae33)=>{var _0x292351=_0x56f585;if(_0x49ccc1!==this[_0x292351(0x286)])throw new Error(_0x292351(0x1e1)+_0x49ccc1[_0x292351(0x37d)]+_0x292351(0x218)+_0x22ae33[_0x292351(0x37d)]+_0x292351(0x250)+this[_0x292351(0x286)]['status']);this[_0x292351(0x215)](_0x22ae33);},'onSendChangeset':_0x12c9a0=>{var _0x553096=_0x56f585;_0x12c9a0['sid']||(_0x12c9a0[_0x553096(0x1da)]=this[_0x553096(0x28c)],_0x12c9a0[_0x553096(0x379)]=++this['_changesetReqId']);const _0x1f8807={'eventID':_0x5b603b[_0x553096(0x314)],'data':{'unitID':_0x12c9a0['unitID'],'unitType':this[_0x553096(0x307)],'changeset':_0x12c9a0,'memberID':this['session']['getMemberID']()}};this[_0x553096(0x439)][_0x553096(0x2cd)](_0x1f8807,this[_0x553096(0x3c4)]);},'onMissingChangesets':({from:_0x41831d,to:_0x55d98c})=>{var _0x4950d5=_0x56f585;this['_logService']['debug'](_0x4950d5(0x362),_0x4950d5(0x1d6)+_0x41831d+_0x4950d5(0x31f)+_0x55d98c);const _0x2249c9={'eventID':_0x5b603b[_0x4950d5(0x28e)],'data':{'unitID':_0x147ff7,'unitType':this[_0x4950d5(0x307)],'from':_0x41831d,'to':_0x55d98c}};this[_0x4950d5(0x439)][_0x4950d5(0x2cd)](_0x2249c9,this[_0x4950d5(0x3c4)]);}};}async[_0x24947f(0x1b6)](_0x587cf1){var _0x4728dc=_0x24947f,_0x402dba,_0x3b725d,_0x2c7a76;const _0x38e27a=await((_0x402dba=this[_0x4728dc(0x25b)])==null?void 0x0:_0x402dba['loadOfflineData'](this[_0x4728dc(0x3c4)])),_0x1c52c0=(_0x3b725d=_0x38e27a==null?void 0x0:_0x38e27a[_0x4728dc(0x440)])!=null?_0x3b725d:[],_0xf410d4=(_0x2c7a76=_0x38e27a==null?void 0x0:_0x38e27a[_0x4728dc(0x2f5)])!=null?_0x2c7a76:null,_0x51d87a=!!(_0xf410d4!=null&&_0xf410d4[_0x4728dc(0x1da)])&&!!(_0xf410d4!=null&&_0xf410d4['reqId']);this[_0x4728dc(0x28c)]=_0x51d87a?_0xf410d4[_0x4728dc(0x1da)]:sr(),this[_0x4728dc(0x232)]=_0x51d87a?_0xf410d4[_0x4728dc(0x379)]:0x0;const _0x531c56=this[_0x4728dc(0x3c4)];try{this['_replayCachedMutations'](_0xf410d4,_0x1c52c0);}catch(_0x522ca5){this['_logService'][_0x4728dc(0x197)](_0x522ca5);}const _0x339305=this[_0x4728dc(0x2aa)]();if(_0x587cf1){const _0x1d1f98=Di(this['_injector'],_0x531c56,this[_0x4728dc(0x307)],_0xf410d4,_0x1c52c0,_0x339305);return _0x1d1f98 instanceof oe?_0x1d1f98[_0x4728dc(0x19d)]():(_0x1d1f98 instanceof ae||_0x1d1f98 instanceof ue)&&_0x1d1f98[_0x4728dc(0x171)](),_0x1d1f98;}return this[_0x4728dc(0x2ac)][_0x4728dc(0x356)](fe,_0x531c56,this['_type'],_0xf410d4,_0x1c52c0,_0x339305);}[_0x24947f(0x367)](_0x5ca296,_0x5e0b78){var _0x1e8d63=_0x24947f,_0x5a1c79,_0x14f756;const _0x54c0b=this[_0x1e8d63(0x38f)][_0x1e8d63(0x284)][_0x1e8d63(0x3a0)](this[_0x1e8d63(0x38f)][_0x1e8d63(0x284)][_0x1e8d63(0x448)]()['COMPRESS_MUTATION_APPLY']);(_0x5a1c79=_0x54c0b((_0x5ca296==null?void 0x0:_0x5ca296[_0x1e8d63(0x440)])||[],null))==null||_0x5a1c79[_0x1e8d63(0x2d3)](_0x52cd8b=>this[_0x1e8d63(0x3d1)][_0x1e8d63(0x3b9)](_0x52cd8b['id'],_0x52cd8b['params'])),(_0x14f756=_0x54c0b(_0x5e0b78||[],null))==null||_0x14f756[_0x1e8d63(0x2d3)](_0x1ab774=>this[_0x1e8d63(0x3d1)]['executeCommand'](_0x1ab774['id'],_0x1ab774['params']));}};nt=Lt([k(0x3,_0x2c893e(_0x47c619)),k(0x4,_0x2c893e(_0x1d59ea)),k(0x5,_0x2c893e(_0x4f5132)),k(0x6,_0x2c893e(_0x4c63f1)),k(0x7,_0x2c893e(pe)),k(0x8,_0xb67ae9),k(0x9,_0xb31905),k(0xa,_0x2ee679),k(0xb,_0x433af4(ht)),k(0xc,_0x433af4(J))],nt);let Tt=class extends nt{constructor(_0x571292,_0x135daf,_0x32d306,_0x175d2d,_0x11ab74,_0x3a199b,_0x508d0e,_0x344f7b,_0x24a55f,_0x4eb7f6,_0x3ea849,_0x154fda,_0x1ffa26){var _0x8d85bb=_0x24947f;super(_0x571292,_0x32d306,_0x135daf,_0x175d2d,_0x11ab74,_0x3a199b,_0x508d0e,_0x344f7b,_0x24a55f,_0x4eb7f6,_0x3ea849,_0x154fda,_0x1ffa26),N(this,_0x8d85bb(0x3c1),null),(this[_0x8d85bb(0x3c4)]=_0x571292,this['type']=_0x135daf);}[_0x24947f(0x3c8)](_0xfa721){var _0xb13fe4=_0x24947f;this[_0xb13fe4(0x3c1)]=_0xfa721;}[_0x24947f(0x402)](){this['_handlerCallback']=null,super['dispose']();}['_createHandler'](){var _0x5d1bc2=_0x24947f;const _0x41ea7c=super[_0x5d1bc2(0x2aa)]();return _0x41ea7c[_0x5d1bc2(0x2db)]=_0xd1be33=>{var _0xa4274b=_0x5d1bc2,_0x16cd15,_0x2872bb;return(_0x2872bb=(_0x16cd15=this[_0xa4274b(0x3c1)])==null?void 0x0:_0x16cd15[_0xa4274b(0x2db)])==null?void 0x0:_0x2872bb[_0xa4274b(0x2ce)](_0x16cd15,_0xd1be33);},_0x41ea7c['onTransformState']=_0x1c1fa8=>{var _0x470486=_0x5d1bc2,_0x4a4782,_0x511806;return(_0x511806=(_0x4a4782=this['_handlerCallback'])==null?void 0x0:_0x4a4782[_0x470486(0x3b1)])==null?void 0x0:_0x511806['call'](_0x4a4782,_0x1c1fa8);},_0x41ea7c[_0x5d1bc2(0x228)]=_0x514067=>{var _0x51ee7b=_0x5d1bc2,_0x2119d8,_0xde1be9;return(_0xde1be9=(_0x2119d8=this[_0x51ee7b(0x3c1)])==null?void 0x0:_0x2119d8['onTransformSelections'])==null?void 0x0:_0xde1be9['call'](_0x2119d8,_0x514067);},_0x41ea7c[_0x5d1bc2(0x449)]=_0x150ee9=>{var _0x380710=_0x5d1bc2,_0x49c765,_0x4f9597;return(_0x4f9597=(_0x49c765=this['_handlerCallback'])==null?void 0x0:_0x49c765[_0x380710(0x449)])==null?void 0x0:_0x4f9597[_0x380710(0x2ce)](_0x49c765,_0x150ee9);},_0x41ea7c['onTransformRemoteChangesetByIMECache']=_0x6eca56=>{var _0x5760ff=_0x5d1bc2,_0x3e47dc,_0x4b6976,_0x20444e;if(!((_0x3e47dc=this['_handlerCallback'])!=null&&_0x3e47dc[_0x5760ff(0x3d5)]))throw new Error('onTransformRemoteChangesetByIMECache\x20callback\x20is\x20not\x20added\x20yet.');return(_0x20444e=(_0x4b6976=this[_0x5760ff(0x3c1)])==null?void 0x0:_0x4b6976['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x20444e['call'](_0x4b6976,_0x6eca56);},_0x41ea7c[_0x5d1bc2(0x1f7)]=_0x41897d=>{var _0x3f9f98=_0x5d1bc2,_0x4cf32a,_0xf73c57,_0x238a6f;if(!((_0x4cf32a=this[_0x3f9f98(0x3c1)])!=null&&_0x4cf32a[_0x3f9f98(0x1f7)]))throw new Error(_0x3f9f98(0x352));return(_0x238a6f=(_0xf73c57=this[_0x3f9f98(0x3c1)])==null?void 0x0:_0xf73c57[_0x3f9f98(0x1f7)])==null?void 0x0:_0x238a6f[_0x3f9f98(0x2ce)](_0xf73c57,_0x41897d);},_0x41ea7c;}async[_0x24947f(0x40d)](){var _0xbf43d3=_0x24947f;const _0x53d6a6=await super[_0xbf43d3(0x40d)]();return this['disposeWithMe'](this[_0xbf43d3(0x3d1)][_0xbf43d3(0x170)]((_0x22fc3f,_0x38d460)=>{var _0x104a2b=_0xbf43d3;if(_0x22fc3f[_0x104a2b(0x1ec)]!==_0x2f0eda['MUTATION']||_0x38d460!=null&&_0x38d460[_0x104a2b(0x278)]||_0x38d460!=null&&_0x38d460[_0x104a2b(0x15a)]||_0x22fc3f['id']===_0x5ea005['id'])return;const _0x58867e=_0x22fc3f[_0x104a2b(0x1fc)];if((_0x58867e==null?void 0x0:_0x58867e['unitId'])!==this[_0x104a2b(0x3c4)])return;const _0x27f4b7=_0x22fc3f,_0x188f28=this['_compressMutationService'][_0x104a2b(0x284)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x104a2b(0x284)]['getInterceptPoints']()[_0x104a2b(0x3d8)])([_0x27f4b7],null)||[_0x27f4b7];this[_0x104a2b(0x444)](_0x188f28[0x0]);})),_0x53d6a6;}};Tt=Lt([k(0x3,_0x2c893e(_0x47c619)),k(0x4,_0x2c893e(_0x1d59ea)),k(0x5,_0x2c893e(_0x4f5132)),k(0x6,_0x2c893e(_0x4c63f1)),k(0x7,_0x2c893e(pe)),k(0x8,_0xb67ae9),k(0x9,_0xb31905),k(0xa,_0x2ee679),k(0xb,_0x433af4(ht)),k(0xc,_0x433af4(J))],Tt);let Ct=class extends nt{constructor(_0x138b3f,_0x251b25,_0x1f7d7a,_0x1ac8be,_0x453611,_0x5f44aa,_0x32ab49,_0x24d032,_0x4d9dbe,_0x3fd82a,_0x3494fd,_0x46d150,_0xc9121a,_0xe70d97){var _0x2ba1fc=_0x24947f;super(_0x138b3f,_0x1f7d7a,_0x251b25,_0x1ac8be,_0x453611,_0x5f44aa,_0x32ab49,_0x4d9dbe,_0x3fd82a,_0x3494fd,_0x46d150,_0xc9121a,_0xe70d97),this[_0x2ba1fc(0x3c4)]=_0x138b3f,this[_0x2ba1fc(0x1ec)]=_0x251b25,this[_0x2ba1fc(0x399)]=_0x24d032;}[_0x24947f(0x2aa)](){var _0x52255b=_0x24947f;const _0x1ec636=super[_0x52255b(0x2aa)]();return _0x1ec636[_0x52255b(0x228)]=_0x43bcf=>this[_0x52255b(0x399)][_0x52255b(0x41d)](_0x43bcf),_0x1ec636;}async[_0x24947f(0x40d)](){var _0x10e977=_0x24947f;const _0x45a070=await super[_0x10e977(0x40d)]();return this[_0x10e977(0x2c8)](this[_0x10e977(0x3d1)][_0x10e977(0x170)]((_0x46fd3a,_0xd41b1d)=>{var _0x42eaa1=_0x10e977;if(_0x46fd3a[_0x42eaa1(0x1ec)]!==_0x2f0eda[_0x42eaa1(0x35a)]||_0xd41b1d!=null&&_0xd41b1d[_0x42eaa1(0x278)]||_0xd41b1d!=null&&_0xd41b1d[_0x42eaa1(0x15a)])return;const _0x3716f3=_0x46fd3a[_0x42eaa1(0x1fc)];if((_0x3716f3==null?void 0x0:_0x3716f3[_0x42eaa1(0x2fb)])!==this['unitID'])return;const _0x155aa6=_0x46fd3a,_0x593d35=this[_0x42eaa1(0x38f)]['interceptor']['fetchThroughInterceptors'](this[_0x42eaa1(0x38f)]['interceptor'][_0x42eaa1(0x448)]()[_0x42eaa1(0x3d8)])([_0x155aa6],null)||[_0x155aa6];this[_0x42eaa1(0x444)](_0x593d35[0x0]);})),_0x45a070;}};Ct=Lt([k(0x3,_0x2c893e(_0x47c619)),k(0x4,_0x2c893e(_0x1d59ea)),k(0x5,_0x2c893e(_0x4f5132)),k(0x6,_0x2c893e(_0x4c63f1)),k(0x7,_0x2c893e(it)),k(0x8,_0x2c893e(pe)),k(0x9,_0xb67ae9),k(0xa,_0xb31905),k(0xb,_0x2ee679),k(0xc,_0x433af4(ht)),k(0xd,_0x433af4(J))],Ct);var mr=Object[_0x24947f(0x2ee)],gr=Object['getOwnPropertyDescriptor'],Sr=(_0x3eae68,_0x3a500f,_0x185bc7,_0x1265ad)=>{var _0x11c353=_0x24947f;for(var _0x5bf3f1=_0x1265ad>0x1?void 0x0:_0x1265ad?gr(_0x3a500f,_0x185bc7):_0x3a500f,_0x3f1f57=_0x3eae68[_0x11c353(0x334)]-0x1,_0x196e22;_0x3f1f57>=0x0;_0x3f1f57--)(_0x196e22=_0x3eae68[_0x3f1f57])&&(_0x5bf3f1=(_0x1265ad?_0x196e22(_0x3a500f,_0x185bc7,_0x5bf3f1):_0x196e22(_0x5bf3f1))||_0x5bf3f1);return _0x1265ad&&_0x5bf3f1&&mr(_0x3a500f,_0x185bc7,_0x5bf3f1),_0x5bf3f1;},ft=(_0x393837,_0xca9bf4)=>(_0xf3de9a,_0x5e4bcf)=>_0xca9bf4(_0xf3de9a,_0x5e4bcf,_0x393837);let rt=class extends _0xd51a1a{constructor(_0x2de163,_0x783715,_0x20ed29){var _0xae244a=_0x24947f;super(),N(this,'_entities',new Map()),N(this,'_entityInit$',new _0xf92f12()),N(this,_0xae244a(0x273),this[_0xae244a(0x41b)][_0xae244a(0x378)]()),(this[_0xae244a(0x2ac)]=_0x2de163,this[_0xae244a(0x31c)]=_0x783715,this['_univerInstanceService']=_0x20ed29,this['_init']());}[_0x24947f(0x402)](){var _0x3f9ce5=_0x24947f;super[_0x3f9ce5(0x402)](),this[_0x3f9ce5(0x262)]['forEach'](_0x130af1=>_0x130af1[_0x3f9ce5(0x402)]()),this[_0x3f9ce5(0x262)]['clear']();}[_0x24947f(0x361)](_0x2dd60b){var _0xe2f793=_0x24947f,_0x2ca9bf;return(_0x2ca9bf=this[_0xe2f793(0x262)][_0xe2f793(0x2f7)](_0x2dd60b))!=null?_0x2ca9bf:null;}[_0x24947f(0x17a)](_0x4d2190){var _0x50a726=_0x24947f;const _0x113dbb=this['getCollabEntity'](_0x4d2190);return _0x113dbb?_0x3ddd94(_0x113dbb):this[_0x50a726(0x41b)][_0x50a726(0x342)](_0x435be6(_0x345bcf=>_0x345bcf[_0x50a726(0x3c4)]===_0x4d2190));}[_0x24947f(0x345)](_0x1a2ff3){var _0x4779b6=_0x24947f;return _0x15e76c(this[_0x4779b6(0x17a)](_0x1a2ff3)['pipe'](_0x5e6a8b(()=>{})));}['_init'](){var _0x1ddab0=_0x24947f;this[_0x1ddab0(0x3b3)][_0x1ddab0(0x245)](_0x5289d3['UNIVER_SHEET'])[_0x1ddab0(0x342)](_0x5d80f9(this[_0x1ddab0(0x30b)]),_0x335d30(0x10))[_0x1ddab0(0x30e)](async _0x49940b=>{var _0x1a2a9b=_0x1ddab0;const _0x381a88=_0x49940b[_0x1a2a9b(0x2cf)](),_0x37d895=await this[_0x1a2a9b(0x198)](_0x381a88,Q['UNIVER_SHEET']);this[_0x1a2a9b(0x262)][_0x1a2a9b(0x423)](_0x381a88,_0x37d895);}),this[_0x1ddab0(0x3b3)][_0x1ddab0(0x245)](_0x5289d3[_0x1ddab0(0x313)])[_0x1ddab0(0x342)](_0x5d80f9(this[_0x1ddab0(0x30b)]),_0x335d30(0x10))[_0x1ddab0(0x342)](_0x435be6(_0x4dedc5=>!_0x4dedc5[_0x1ddab0(0x2cf)]()[_0x1ddab0(0x2ba)]('__')))[_0x1ddab0(0x30e)](async _0x4e2180=>{var _0x1a5b00=_0x1ddab0;const _0x452201=_0x4e2180[_0x1a5b00(0x2cf)](),_0x4a726d=await this['_startCollaboration'](_0x452201,Q[_0x1a5b00(0x313)]);this[_0x1a5b00(0x262)]['set'](_0x452201,_0x4a726d);}),_0x14b0b2(this[_0x1ddab0(0x3b3)][_0x1ddab0(0x391)](_0x5289d3[_0x1ddab0(0x308)]),this[_0x1ddab0(0x3b3)][_0x1ddab0(0x391)](_0x5289d3[_0x1ddab0(0x313)]))[_0x1ddab0(0x342)](_0x5d80f9(this['dispose$']))[_0x1ddab0(0x30e)](_0x415ce8=>{var _0x1a7ef4=_0x1ddab0;const _0x748fb3=_0x415ce8[_0x1a7ef4(0x2cf)](),_0x40dc82=this['_entities'][_0x1a7ef4(0x2f7)](_0x748fb3);_0x40dc82&&(_0x40dc82['dispose'](),this[_0x1a7ef4(0x262)][_0x1a7ef4(0x201)](_0x748fb3));});}async[_0x24947f(0x198)](_0x2f61a2,_0xeac1b8){var _0x317d7b=_0x24947f;const _0xd6c905=await this[_0x317d7b(0x31c)][_0x317d7b(0x23c)](_0x2f61a2),_0x296bfe=this[_0x317d7b(0x2ac)][_0x317d7b(0x356)](this[_0x317d7b(0x160)](_0xeac1b8),_0x2f61a2,_0xeac1b8,_0xd6c905);return await _0x296bfe[_0x317d7b(0x337)](),this['_entityInit$'][_0x317d7b(0x27e)](_0x296bfe),_0x296bfe;}['_getCtorByUniverType'](_0x213bd0){var _0x2c91dc=_0x24947f;switch(_0x213bd0){case Q[_0x2c91dc(0x313)]:return Tt;case Q[_0x2c91dc(0x308)]:return Ct;default:throw new Error(_0x2c91dc(0x29b)+_0x213bd0);}}};rt=Sr([ft(0x0,_0x2c893e(_0x47c619)),ft(0x1,_0x2c893e(Le)),ft(0x2,_0x1443af)],rt);var Er=Object[_0x24947f(0x2ee)],Ir=Object['getOwnPropertyDescriptor'],Tr=(_0x3c238a,_0x2c2237,_0x2bb078,_0x5d7586)=>{var _0x47d781=_0x24947f;for(var _0x21915d=_0x5d7586>0x1?void 0x0:_0x5d7586?Ir(_0x2c2237,_0x2bb078):_0x2c2237,_0x1caa12=_0x3c238a[_0x47d781(0x334)]-0x1,_0x27972b;_0x1caa12>=0x0;_0x1caa12--)(_0x27972b=_0x3c238a[_0x1caa12])&&(_0x21915d=(_0x5d7586?_0x27972b(_0x2c2237,_0x2bb078,_0x21915d):_0x27972b(_0x21915d))||_0x21915d);return _0x5d7586&&_0x21915d&&Er(_0x2c2237,_0x2bb078,_0x21915d),_0x21915d;},Jt=(_0x235387,_0x384f13)=>(_0x4dca39,_0x3ef7f1)=>_0x384f13(_0x4dca39,_0x3ef7f1,_0x235387);const Cr=_0x24947f(0x28d),br=_0x24947f(0x1ab);let bt=class extends _0x99d30c{constructor(_0xa637d9,_0x3cc03){var _0x26c1e3=_0x24947f;super(),this[_0x26c1e3(0x3b3)]=_0xa637d9,this['_configService']=_0x3cc03,this[_0x26c1e3(0x40d)]();}[_0x24947f(0x40d)](){var _0x5b04bf=_0x24947f;this[_0x5b04bf(0x2c8)](this['_univerInstanceService']['focused$'][_0x5b04bf(0x30e)](()=>{var _0x2f1542=_0x5b04bf,_0x32b356;const _0x1ab916=this['_univerInstanceService'][_0x2f1542(0x34f)]();let _0x4bc955=(_0x32b356=this[_0x2f1542(0x1aa)][_0x2f1542(0x3b4)](Cr))!=null?_0x32b356:br;_0x1ab916 instanceof _0x2568af&&(_0x4bc955=_0x1ab916[_0x2f1542(0x3c6)]),document[_0x2f1542(0x1d3)]=_0x4bc955;}));}};bt=Tr([Jt(0x0,_0x1443af),Jt(0x1,_0x14e586)],bt);var Rr=Object[_0x24947f(0x2ee)],Or=Object[_0x24947f(0x2d4)],yr=(_0xc17b1a,_0x5a8a1a,_0x3b6771,_0x48ea5b)=>{var _0x34cf47=_0x24947f;for(var _0x31dd2e=_0x48ea5b>0x1?void 0x0:_0x48ea5b?Or(_0x5a8a1a,_0x3b6771):_0x5a8a1a,_0x31acdf=_0xc17b1a[_0x34cf47(0x334)]-0x1,_0x5a3bf8;_0x31acdf>=0x0;_0x31acdf--)(_0x5a3bf8=_0xc17b1a[_0x31acdf])&&(_0x31dd2e=(_0x48ea5b?_0x5a3bf8(_0x5a8a1a,_0x3b6771,_0x31dd2e):_0x5a3bf8(_0x31dd2e))||_0x31dd2e);return _0x48ea5b&&_0x31dd2e&&Rr(_0x5a8a1a,_0x3b6771,_0x31dd2e),_0x31dd2e;},vt=(_0x323043,_0x27e3f2)=>(_0x43f9a6,_0x39227a)=>_0x27e3f2(_0x43f9a6,_0x39227a,_0x323043);let st=class{constructor(_0x2a19f3,_0x49813a,_0xe3ba7e){var _0x5a7358=_0x24947f;this[_0x5a7358(0x1aa)]=_0x2a19f3,this['_httpService']=_0x49813a,this[_0x5a7358(0x3b0)]=_0xe3ba7e,this[_0x5a7358(0x337)]();}[_0x24947f(0x337)](){var _0x388245=_0x24947f;this[_0x388245(0x311)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x54c93f,_0x2ff087)=>_0x2ff087(_0x54c93f)[_0x388245(0x342)](_0x9dc838(async _0x438dcd=>{var _0x4c1e2a=_0x388245;const _0x2d81f5=_0x438dcd;if(_0x2d81f5[_0x4c1e2a(0x37d)]===0x191){if(typeof window>'u')throw new Error(_0x4c1e2a(0x211));if(window[_0x4c1e2a(0x322)](this[_0x4c1e2a(0x3b0)]['t'](_0x4c1e2a(0x27b)))){const _0x21f040=window['encodeURIComponent'](window[_0x4c1e2a(0x364)]['href']);window[_0x4c1e2a(0x364)][_0x4c1e2a(0x173)]=this[_0x4c1e2a(0x24e)]()+_0x4c1e2a(0x39b)+_0x21f040;}}return _0x2d81f5;}))});}['_getLoginPath'](){var _0x109eda=_0x24947f,_0x2b0791,_0x331d13;const _0x13e0bf=this[_0x109eda(0x1aa)][_0x109eda(0x3b4)](xn),_0x119205=this[_0x109eda(0x1aa)][_0x109eda(0x3b4)](q);return(_0x331d13=(_0x2b0791=_0x119205==null?void 0x0:_0x119205[_0x109eda(0x265)])!=null?_0x2b0791:_0x13e0bf)!=null?_0x331d13:Ln;}};st=yr([vt(0x0,_0x14e586),vt(0x1,_0x2c893e(_0x2ccc1a)),vt(0x2,_0x2c893e(_0x4f5132))],st);var Nr=Object[_0x24947f(0x2ee)],Dr=Object[_0x24947f(0x2d4)],Pr=(_0x7e86c2,_0x5e9a67,_0x2da4de,_0x38f9da)=>{for(var _0x572024=_0x38f9da>0x1?void 0x0:_0x38f9da?Dr(_0x5e9a67,_0x2da4de):_0x5e9a67,_0x5c8b01=_0x7e86c2['length']-0x1,_0x555d50;_0x5c8b01>=0x0;_0x5c8b01--)(_0x555d50=_0x7e86c2[_0x5c8b01])&&(_0x572024=(_0x38f9da?_0x555d50(_0x5e9a67,_0x2da4de,_0x572024):_0x555d50(_0x572024))||_0x572024);return _0x38f9da&&_0x572024&&Nr(_0x5e9a67,_0x2da4de,_0x572024),_0x572024;},Xt=(_0x5ad065,_0xcd237)=>(_0xe63cc9,_0x49cfa5)=>_0xcd237(_0xe63cc9,_0x49cfa5,_0x5ad065);const Pi=_0x24947f(0x31d),wr=_0x24947f(0x33f);let Rt=class extends _0x99d30c{constructor(_0x23f197,_0x49aa38){var _0x21f78f=_0x24947f;super(),this[_0x21f78f(0x369)]=_0x23f197,this['_configService']=_0x49aa38,this['_initMergeInterceptor']();}['_initMergeInterceptor'](){var _0x440a59=_0x24947f;const _0x874625=this;this[_0x440a59(0x2c8)](this['_HTTPService'][_0x440a59(0x231)]({'priority':0x3e7,'interceptor':_0x30e3c1({'isMatch'(_0x34ff94){var _0x2a9a62=_0x440a59,_0x17f101;if(_0x34ff94['method']===_0x2a9a62(0x3ab)&&((_0x17f101=_0x34ff94[_0x2a9a62(0x1b0)])!=null&&_0x17f101[_0x2a9a62(0x445)])){const {objectID:_0x3815f6,objectType:_0xea99de}=_0x34ff94[_0x2a9a62(0x1b0)][_0x2a9a62(0x445)]||{};if(!_0x3815f6||_0xea99de===void 0x0)return!0x1;const _0x12562b=_0x874625['_getAPIPrefixPath']()+'/'+_0xea99de+_0x2a9a62(0x1a8)+_0x3815f6+'/allowed';if(_0x34ff94['url']===_0x12562b)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x6311f2){var _0x1b3c69=_0x440a59,_0x331fed;return(_0x331fed=_0x6311f2['requestParams'])==null?void 0x0:_0x331fed[_0x1b3c69(0x445)];},'mergeParamsToRequest'(_0x383ad0,_0x4fddbf){var _0x2036d3=_0x440a59;const _0x139f3f=_0x874625['_getAPIPrefixPath']()+'/-/object/-/batch_allowed',_0xdbe915=_0x383ad0['reduce']((_0x74b466,_0xa4dce3)=>{var _0x4be6e9=_0x2266;const {unitID:_0x331493,objectID:_0xa17081,objectType:_0x556556,actions:_0x5eeede}=_0xa4dce3;return _0x74b466[_0x331493]||(_0x74b466[_0x331493]={}),_0x74b466[_0x331493][_0xa17081]||(_0x74b466[_0x331493][_0xa17081]={'objectID':_0xa17081,'objectType':_0x556556,'actions':[]}),_0x74b466[_0x331493][_0xa17081]['actions'][_0x4be6e9(0x32c)](..._0x5eeede),_0x74b466;},{}),_0x1eca9c=[];for(const _0x40188d in _0xdbe915)for(const _0x2cb404 in _0xdbe915[_0x40188d]){const {actions:_0x15e221,objectType:_0x508c6d}=_0xdbe915[_0x40188d][_0x2cb404],_0x217943=[...new Set(_0x15e221)];_0x1eca9c['push']({'unitID':_0x40188d,'objectID':_0x2cb404,'objectType':_0x508c6d,'actions':_0x217943});}return new _0x4db6ae('POST',_0x139f3f,{'headers':_0x4fddbf[_0x2036d3(0x29f)],'withCredentials':_0x4fddbf[_0x2036d3(0x1c2)],'responseType':_0x4fddbf[_0x2036d3(0x3bd)],'body':{'requests':_0x1eca9c}});}},{'distributeResult'(_0x244540,_0x643fce){var _0x41f951=_0x440a59;const {objectActions:_0x52996b}=_0x244540;return _0x643fce[_0x41f951(0x181)](_0x18fa1f=>{var _0x2c4cf3=_0x41f951;const {unitID:_0x4a1a2e,objectID:_0x42a404,actions:_0x4fff7f}=_0x18fa1f,_0x3336f2=_0x52996b[_0x2c4cf3(0x283)](_0x38eed0=>_0x38eed0['unitID']===_0x4a1a2e&&_0x38eed0[_0x2c4cf3(0x2f0)]===_0x42a404),_0x4c6b7e=_0x4fff7f['map'](_0xb49b2e=>_0x3336f2==null?void 0x0:_0x3336f2[_0x2c4cf3(0x18d)][_0x2c4cf3(0x283)](_0xd9ac9a=>_0xd9ac9a[_0x2c4cf3(0x30a)]===_0xb49b2e))[_0x2c4cf3(0x1f5)](_0x2aaf28=>!!_0x2aaf28);return{'config':_0x18fa1f,'result':{'actions':_0x4c6b7e,'error':_0x244540[_0x2c4cf3(0x197)]}};});}})}));}['_getAPIPrefixPath'](){var _0x41561a=_0x24947f,_0x5f36f4,_0x19c140;const _0xfa8d85=this[_0x41561a(0x1aa)][_0x41561a(0x3b4)](Pi),_0x1abbaa=this[_0x41561a(0x1aa)][_0x41561a(0x3b4)](q);return(_0x19c140=(_0x5f36f4=_0x1abbaa==null?void 0x0:_0x1abbaa['authzUrl'])!=null?_0x5f36f4:_0xfa8d85)!=null?_0x19c140:wr;}async[_0x24947f(0x35b)](_0x41ff81){var _0x52f24f=_0x24947f;const _0x2cb255=this[_0x52f24f(0x2e4)]()+'/'+_0x41ff81[_0x52f24f(0x2c2)]+_0x52f24f(0x216);return(await this[_0x52f24f(0x369)]['post'](_0x2cb255,{'body':_0x41ff81}))['body'][_0x52f24f(0x2f0)]||'';}async[_0x24947f(0x3d7)](_0x105282){var _0x579d2f=_0x24947f;const _0x26cde1=this['_getAPIPrefixPath']()+_0x579d2f(0x373);return(await this[_0x579d2f(0x369)][_0x579d2f(0x2d1)](_0x26cde1,{'body':_0x105282}))['body'][_0x579d2f(0x44c)];}async[_0x24947f(0x325)](_0x2a4eec){var _0x208d13=_0x24947f;const _0x17ffa6=this[_0x208d13(0x2e4)]()+'/'+_0x2a4eec[_0x208d13(0x2c2)]+_0x208d13(0x1a8)+_0x2a4eec[_0x208d13(0x2f0)];await this[_0x208d13(0x369)]['put'](_0x17ffa6,{'body':_0x2a4eec});}async['allowed'](_0x51457c){var _0x55a50c=_0x24947f;const _0x2d9a74=this[_0x55a50c(0x2e4)]()+'/'+_0x51457c['objectType']+_0x55a50c(0x1a8)+_0x51457c[_0x55a50c(0x2f0)]+'/allowed';return(await this['_HTTPService']['post'](_0x2d9a74,{'body':_0x51457c}))[_0x55a50c(0x445)][_0x55a50c(0x18d)];}async[_0x24947f(0x2f1)](_0x33805c){var _0x72eb25=_0x24947f;const _0x394baf=this[_0x72eb25(0x2e4)]()+_0x72eb25(0x175);return(await this[_0x72eb25(0x369)][_0x72eb25(0x2d1)](_0x394baf,{'body':{'requests':_0x33805c}}))['body'][_0x72eb25(0x1f9)];}async[_0x24947f(0x219)](_0x4afc78){var _0x3dc50a=_0x24947f;const _0x225ab3=this[_0x3dc50a(0x2e4)]()+'/'+_0x4afc78[_0x3dc50a(0x2c2)]+'/role',_0x4fd6a0=await this['_HTTPService'][_0x3dc50a(0x2d1)](_0x225ab3,{'body':_0x4afc78});return{'roles':_0x4fd6a0[_0x3dc50a(0x445)][_0x3dc50a(0x1b4)],'actions':_0x4fd6a0[_0x3dc50a(0x445)][_0x3dc50a(0x18d)]};}async[_0x24947f(0x2e1)](_0x4b560a){var _0x4942fc=_0x24947f;const _0x5f3e25=this[_0x4942fc(0x2e4)]()+'/collaborator';await this[_0x4942fc(0x369)][_0x4942fc(0x201)](_0x5f3e25,{'params':{'collaboratorID':_0x4b560a['collaboratorID'],'objectID':_0x4b560a['objectID'],'unitID':_0x4b560a[_0x4942fc(0x3c4)]}});}async['updateCollaborator'](_0x1923df){var _0x40c361=_0x24947f;const _0x24a16f=this[_0x40c361(0x2e4)]()+_0x40c361(0x206);await this[_0x40c361(0x369)][_0x40c361(0x382)](_0x24a16f,{'body':_0x1923df});}async[_0x24947f(0x1ad)](_0x111097){var _0x18d3ee=_0x24947f;const _0x228d85=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x18d3ee(0x369)][_0x18d3ee(0x2d1)](_0x228d85,{'body':_0x111097});}async[_0x24947f(0x152)](_0x36ddd9){var _0xb24acb=_0x24947f;const _0x9e30f6=this['_getAPIPrefixPath']()+_0xb24acb(0x206);return(await this[_0xb24acb(0x369)][_0xb24acb(0x2f7)](_0x9e30f6,{'params':{'objectID':_0x36ddd9[_0xb24acb(0x2f0)],'unitID':_0x36ddd9[_0xb24acb(0x3c4)]}}))['body'][_0xb24acb(0x1bb)];}async[_0x24947f(0x3ea)](_0x45404d){var _0x3d0d08=_0x24947f;const _0x25aa70=this[_0x3d0d08(0x2e4)]()+_0x3d0d08(0x206);await this[_0x3d0d08(0x369)][_0x3d0d08(0x386)](_0x25aa70,{'body':_0x45404d});}};Rt=Pr([Xt(0x0,_0x2c893e(_0x2ccc1a)),Xt(0x1,_0x2c893e(_0x14e586))],Rt);var pt=typeof globalThis<'u'?globalThis:typeof window<'u'?window:typeof global<'u'?global:typeof self<'u'?self:{};function ke(_0x334e23){var _0xf0a38=_0x24947f;return _0x334e23&&_0x334e23['__esModule']&&Object[_0xf0a38(0x335)][_0xf0a38(0x188)][_0xf0a38(0x2ce)](_0x334e23,_0xf0a38(0x1ef))?_0x334e23['default']:_0x334e23;}var Ve={'exports':{}};function Ur(_0x469c94){var _0x58e41d=_0x24947f;throw new Error(_0x58e41d(0x1e6)+_0x469c94+'\x22.\x20Please\x20configure\x20the\x20dynamicRequireTargets\x20or/and\x20ignoreDynamicRequires\x20option\x20of\x20@rollup/plugin-commonjs\x20appropriately\x20for\x20this\x20require\x20call\x20to\x20work.');}var Ge={'exports':{}},Ar=Ge[_0x24947f(0x1df)],Zt;function ne(){var _0x84dec8=_0x24947f;return Zt||(Zt=0x1,function(_0x3ab665,_0x41bfbc){(function(_0x44841c,_0x1e82f6){var _0x3d0dc0=_0x2266;_0x3ab665[_0x3d0dc0(0x1df)]=_0x1e82f6();}(Ar,function(){var _0x2cf2da=_0x2cf2da||function(_0x91b0bf,_0x4c2c52){var _0x2a7ff1=_0x2266,_0x62d74d;if(typeof window<'u'&&window[_0x2a7ff1(0x2a5)]&&(_0x62d74d=window[_0x2a7ff1(0x2a5)]),typeof self<'u'&&self[_0x2a7ff1(0x2a5)]&&(_0x62d74d=self[_0x2a7ff1(0x2a5)]),typeof globalThis<'u'&&globalThis[_0x2a7ff1(0x2a5)]&&(_0x62d74d=globalThis[_0x2a7ff1(0x2a5)]),!_0x62d74d&&typeof window<'u'&&window[_0x2a7ff1(0x446)]&&(_0x62d74d=window[_0x2a7ff1(0x446)]),!_0x62d74d&&typeof pt<'u'&&pt[_0x2a7ff1(0x2a5)]&&(_0x62d74d=pt[_0x2a7ff1(0x2a5)]),!_0x62d74d&&typeof Ur==_0x2a7ff1(0x2fe))try{_0x62d74d=require(_0x2a7ff1(0x2a5));}catch{}var _0x26f04c=function(){var _0x41c2fe=_0x2a7ff1;if(_0x62d74d){if(typeof _0x62d74d[_0x41c2fe(0x3f4)]==_0x41c2fe(0x2fe))try{return _0x62d74d[_0x41c2fe(0x3f4)](new Uint32Array(0x1))[0x0];}catch{}if(typeof _0x62d74d['randomBytes']==_0x41c2fe(0x2fe))try{return _0x62d74d['randomBytes'](0x4)[_0x41c2fe(0x1f0)]();}catch{}}throw new Error(_0x41c2fe(0x2bb));},_0x139178=Object[_0x2a7ff1(0x35b)]||(function(){function _0x5c3032(){}return function(_0x5ec863){var _0x9f1b65=_0x2266,_0x5ea4f8;return _0x5c3032[_0x9f1b65(0x335)]=_0x5ec863,_0x5ea4f8=new _0x5c3032(),_0x5c3032[_0x9f1b65(0x335)]=null,_0x5ea4f8;};}()),_0x590d0e={},_0x500a59=_0x590d0e[_0x2a7ff1(0x236)]={},_0x30f7d2=_0x500a59[_0x2a7ff1(0x33b)]=(function(){return{'extend':function(_0x55fde6){var _0x2f6ebd=_0x2266,_0x35354d=_0x139178(this);return _0x55fde6&&_0x35354d['mixIn'](_0x55fde6),(!_0x35354d[_0x2f6ebd(0x188)](_0x2f6ebd(0x337))||this['init']===_0x35354d['init'])&&(_0x35354d[_0x2f6ebd(0x337)]=function(){var _0xcaf018=_0x2f6ebd;_0x35354d['$super'][_0xcaf018(0x337)][_0xcaf018(0x443)](this,arguments);}),_0x35354d['init'][_0x2f6ebd(0x335)]=_0x35354d,_0x35354d[_0x2f6ebd(0x38e)]=this,_0x35354d;},'create':function(){var _0x41ef5b=_0x2266,_0x16958d=this[_0x41ef5b(0x243)]();return _0x16958d[_0x41ef5b(0x337)][_0x41ef5b(0x443)](_0x16958d,arguments),_0x16958d;},'init':function(){},'mixIn':function(_0x832b1e){var _0x527cd7=_0x2266;for(var _0x50263f in _0x832b1e)_0x832b1e[_0x527cd7(0x188)](_0x50263f)&&(this[_0x50263f]=_0x832b1e[_0x50263f]);_0x832b1e['hasOwnProperty'](_0x527cd7(0x27f))&&(this[_0x527cd7(0x27f)]=_0x832b1e[_0x527cd7(0x27f)]);},'clone':function(){var _0xc255a7=_0x2266;return this[_0xc255a7(0x337)]['prototype']['extend'](this);}};}()),_0x239488=_0x500a59[_0x2a7ff1(0x177)]=_0x30f7d2['extend']({'init':function(_0x208e75,_0x4395f8){var _0x2965e0=_0x2a7ff1;_0x208e75=this[_0x2965e0(0x2ec)]=_0x208e75||[],_0x4395f8!=_0x4c2c52?this[_0x2965e0(0x447)]=_0x4395f8:this['sigBytes']=_0x208e75['length']*0x4;},'toString':function(_0x1349ed){return(_0x1349ed||_0x2f4a3b)['stringify'](this);},'concat':function(_0x19f506){var _0xd4e9c5=_0x2a7ff1,_0xa685be=this[_0xd4e9c5(0x2ec)],_0x5249e5=_0x19f506[_0xd4e9c5(0x2ec)],_0x365fb8=this[_0xd4e9c5(0x447)],_0x415f39=_0x19f506[_0xd4e9c5(0x447)];if(this[_0xd4e9c5(0x176)](),_0x365fb8%0x4)for(var _0x3bb40f=0x0;_0x3bb40f<_0x415f39;_0x3bb40f++){var _0x1ac12e=_0x5249e5[_0x3bb40f>>>0x2]>>>0x18-_0x3bb40f%0x4*0x8&0xff;_0xa685be[_0x365fb8+_0x3bb40f>>>0x2]|=_0x1ac12e<<0x18-(_0x365fb8+_0x3bb40f)%0x4*0x8;}else{for(var _0x595696=0x0;_0x595696<_0x415f39;_0x595696+=0x4)_0xa685be[_0x365fb8+_0x595696>>>0x2]=_0x5249e5[_0x595696>>>0x2];}return this[_0xd4e9c5(0x447)]+=_0x415f39,this;},'clamp':function(){var _0x18395b=_0x2a7ff1,_0x4619fa=this['words'],_0x3fc4a9=this['sigBytes'];_0x4619fa[_0x3fc4a9>>>0x2]&=0xffffffff<<0x20-_0x3fc4a9%0x4*0x8,_0x4619fa['length']=_0x91b0bf[_0x18395b(0x3ff)](_0x3fc4a9/0x4);},'clone':function(){var _0x258aa6=_0x2a7ff1,_0x4dd115=_0x30f7d2[_0x258aa6(0x1cd)]['call'](this);return _0x4dd115['words']=this['words'][_0x258aa6(0x336)](0x0),_0x4dd115;},'random':function(_0xdfa603){var _0x37d032=_0x2a7ff1;for(var _0x51aeb1=[],_0x1de68e=0x0;_0x1de68e<_0xdfa603;_0x1de68e+=0x4)_0x51aeb1[_0x37d032(0x32c)](_0x26f04c());return new _0x239488[(_0x37d032(0x337))](_0x51aeb1,_0xdfa603);}}),_0x22a449=_0x590d0e[_0x2a7ff1(0x16b)]={},_0x2f4a3b=_0x22a449[_0x2a7ff1(0x3be)]={'stringify':function(_0x397644){var _0x171baf=_0x2a7ff1;for(var _0xd47390=_0x397644[_0x171baf(0x2ec)],_0x1e525a=_0x397644['sigBytes'],_0x2979e5=[],_0x2a363a=0x0;_0x2a363a<_0x1e525a;_0x2a363a++){var _0x3084db=_0xd47390[_0x2a363a>>>0x2]>>>0x18-_0x2a363a%0x4*0x8&0xff;_0x2979e5[_0x171baf(0x32c)]((_0x3084db>>>0x4)['toString'](0x10)),_0x2979e5[_0x171baf(0x32c)]((_0x3084db&0xf)[_0x171baf(0x27f)](0x10));}return _0x2979e5[_0x171baf(0x2bf)]('');},'parse':function(_0x594873){var _0x37dacf=_0x2a7ff1;for(var _0x24bcc1=_0x594873['length'],_0x5a2558=[],_0x27b5c2=0x0;_0x27b5c2<_0x24bcc1;_0x27b5c2+=0x2)_0x5a2558[_0x27b5c2>>>0x3]|=parseInt(_0x594873[_0x37dacf(0x2a0)](_0x27b5c2,0x2),0x10)<<0x18-_0x27b5c2%0x8*0x4;return new _0x239488[(_0x37dacf(0x337))](_0x5a2558,_0x24bcc1/0x2);}},_0x2ca3c3=_0x22a449[_0x2a7ff1(0x1dd)]={'stringify':function(_0x12671c){var _0x2322b9=_0x2a7ff1;for(var _0xd519ff=_0x12671c['words'],_0x194ceb=_0x12671c[_0x2322b9(0x447)],_0x109f14=[],_0xe43afa=0x0;_0xe43afa<_0x194ceb;_0xe43afa++){var _0x479989=_0xd519ff[_0xe43afa>>>0x2]>>>0x18-_0xe43afa%0x4*0x8&0xff;_0x109f14[_0x2322b9(0x32c)](String[_0x2322b9(0x259)](_0x479989));}return _0x109f14[_0x2322b9(0x2bf)]('');},'parse':function(_0x461b3b){var _0x2a0567=_0x2a7ff1;for(var _0x3412e4=_0x461b3b[_0x2a0567(0x334)],_0x3a2b7e=[],_0x2bf8d6=0x0;_0x2bf8d6<_0x3412e4;_0x2bf8d6++)_0x3a2b7e[_0x2bf8d6>>>0x2]|=(_0x461b3b[_0x2a0567(0x28b)](_0x2bf8d6)&0xff)<<0x18-_0x2bf8d6%0x4*0x8;return new _0x239488[(_0x2a0567(0x337))](_0x3a2b7e,_0x3412e4);}},_0x3bc21d=_0x22a449[_0x2a7ff1(0x295)]={'stringify':function(_0x6eaa9){var _0x3639f2=_0x2a7ff1;try{return decodeURIComponent(escape(_0x2ca3c3[_0x3639f2(0x1d0)](_0x6eaa9)));}catch{throw new Error(_0x3639f2(0x1e8));}},'parse':function(_0x1bd5bf){var _0x226000=_0x2a7ff1;return _0x2ca3c3[_0x226000(0x274)](unescape(encodeURIComponent(_0x1bd5bf)));}},_0x2c52f0=_0x500a59[_0x2a7ff1(0x301)]=_0x30f7d2[_0x2a7ff1(0x243)]({'reset':function(){var _0x364d0b=_0x2a7ff1;this[_0x364d0b(0x3d6)]=new _0x239488[(_0x364d0b(0x337))](),this[_0x364d0b(0x2f9)]=0x0;},'_append':function(_0x55ad89){var _0x3613c7=_0x2a7ff1;typeof _0x55ad89==_0x3613c7(0x327)&&(_0x55ad89=_0x3bc21d[_0x3613c7(0x274)](_0x55ad89)),this[_0x3613c7(0x3d6)][_0x3613c7(0x36e)](_0x55ad89),this[_0x3613c7(0x2f9)]+=_0x55ad89[_0x3613c7(0x447)];},'_process':function(_0x32a29e){var _0x40720e=_0x2a7ff1,_0xdb6701,_0x37da37=this[_0x40720e(0x3d6)],_0x12c91e=_0x37da37[_0x40720e(0x2ec)],_0xf3e714=_0x37da37[_0x40720e(0x447)],_0x161f98=this[_0x40720e(0x321)],_0x264c3c=_0x161f98*0x4,_0x1cf1c5=_0xf3e714/_0x264c3c;_0x32a29e?_0x1cf1c5=_0x91b0bf[_0x40720e(0x3ff)](_0x1cf1c5):_0x1cf1c5=_0x91b0bf[_0x40720e(0x3c2)]((_0x1cf1c5|0x0)-this['_minBufferSize'],0x0);var _0x585a6b=_0x1cf1c5*_0x161f98,_0x1560e8=_0x91b0bf['min'](_0x585a6b*0x4,_0xf3e714);if(_0x585a6b){for(var _0x2f7d5e=0x0;_0x2f7d5e<_0x585a6b;_0x2f7d5e+=_0x161f98)this[_0x40720e(0x1b3)](_0x12c91e,_0x2f7d5e);_0xdb6701=_0x12c91e[_0x40720e(0x23d)](0x0,_0x585a6b),_0x37da37[_0x40720e(0x447)]-=_0x1560e8;}return new _0x239488['init'](_0xdb6701,_0x1560e8);},'clone':function(){var _0x367ff7=_0x2a7ff1,_0x9c0d04=_0x30f7d2[_0x367ff7(0x1cd)][_0x367ff7(0x2ce)](this);return _0x9c0d04[_0x367ff7(0x3d6)]=this['_data'][_0x367ff7(0x1cd)](),_0x9c0d04;},'_minBufferSize':0x0});_0x500a59[_0x2a7ff1(0x3c3)]=_0x2c52f0[_0x2a7ff1(0x243)]({'cfg':_0x30f7d2[_0x2a7ff1(0x243)](),'init':function(_0x520a8f){var _0xd9d92f=_0x2a7ff1;this[_0xd9d92f(0x1fa)]=this['cfg'][_0xd9d92f(0x243)](_0x520a8f),this[_0xd9d92f(0x431)]();},'reset':function(){var _0x249804=_0x2a7ff1;_0x2c52f0[_0x249804(0x431)][_0x249804(0x2ce)](this),this[_0x249804(0x3a7)]();},'update':function(_0x9890ea){var _0x534066=_0x2a7ff1;return this[_0x534066(0x237)](_0x9890ea),this[_0x534066(0x1b5)](),this;},'finalize':function(_0xd9b989){var _0x4cea6b=_0x2a7ff1;_0xd9b989&&this['_append'](_0xd9b989);var _0x1745da=this[_0x4cea6b(0x32f)]();return _0x1745da;},'blockSize':0x10,'_createHelper':function(_0x1a653b){return function(_0x5028a1,_0x596ecb){var _0x39adf7=_0x2266;return new _0x1a653b[(_0x39adf7(0x337))](_0x596ecb)[_0x39adf7(0x2f3)](_0x5028a1);};},'_createHmacHelper':function(_0xb7f0be){return function(_0x4e5cf1,_0x34c182){var _0x3ba36e=_0x2266;return new _0x4b409f[(_0x3ba36e(0x3d4))]['init'](_0xb7f0be,_0x34c182)[_0x3ba36e(0x2f3)](_0x4e5cf1);};}});var _0x4b409f=_0x590d0e[_0x2a7ff1(0x184)]={};return _0x590d0e;}(Math);return _0x2cf2da;}));}(Ge)),Ge[_0x84dec8(0x1df)];}var We={'exports':{}},xr=We[_0x24947f(0x1df)],Qt;function wi(){var _0x27b511=_0x24947f;return Qt||(Qt=0x1,function(_0x4c4f2a,_0x33d384){(function(_0x40e586,_0x464d07){_0x4c4f2a['exports']=_0x464d07(ne());}(xr,function(_0x1362a8){var _0x202aba=_0x2266;return(function(){var _0x300801=_0x2266,_0x3f109e=_0x1362a8,_0x4725cf=_0x3f109e[_0x300801(0x236)],_0x19e583=_0x4725cf[_0x300801(0x177)],_0x4acca4=_0x3f109e[_0x300801(0x16b)];_0x4acca4[_0x300801(0x44a)]={'stringify':function(_0xd74db9){var _0x1a93ff=_0x300801,_0x18092e=_0xd74db9[_0x1a93ff(0x2ec)],_0x58b694=_0xd74db9[_0x1a93ff(0x447)],_0x4aff5d=this[_0x1a93ff(0x42e)];_0xd74db9[_0x1a93ff(0x176)]();for(var _0x3610d3=[],_0x4b30c1=0x0;_0x4b30c1<_0x58b694;_0x4b30c1+=0x3)for(var _0x244608=_0x18092e[_0x4b30c1>>>0x2]>>>0x18-_0x4b30c1%0x4*0x8&0xff,_0x424595=_0x18092e[_0x4b30c1+0x1>>>0x2]>>>0x18-(_0x4b30c1+0x1)%0x4*0x8&0xff,_0x3b2bd5=_0x18092e[_0x4b30c1+0x2>>>0x2]>>>0x18-(_0x4b30c1+0x2)%0x4*0x8&0xff,_0x2bfb0a=_0x244608<<0x10|_0x424595<<0x8|_0x3b2bd5,_0x19d2df=0x0;_0x19d2df<0x4&&_0x4b30c1+_0x19d2df*0.75<_0x58b694;_0x19d2df++)_0x3610d3[_0x1a93ff(0x32c)](_0x4aff5d['charAt'](_0x2bfb0a>>>0x6*(0x3-_0x19d2df)&0x3f));var _0x4d1825=_0x4aff5d['charAt'](0x40);if(_0x4d1825){for(;_0x3610d3[_0x1a93ff(0x334)]%0x4;)_0x3610d3[_0x1a93ff(0x32c)](_0x4d1825);}return _0x3610d3[_0x1a93ff(0x2bf)]('');},'parse':function(_0x521d72){var _0x43de70=_0x300801,_0x4b375e=_0x521d72[_0x43de70(0x334)],_0x3b51e1=this[_0x43de70(0x42e)],_0x1b6377=this['_reverseMap'];if(!_0x1b6377){_0x1b6377=this['_reverseMap']=[];for(var _0x1765ab=0x0;_0x1765ab<_0x3b51e1['length'];_0x1765ab++)_0x1b6377[_0x3b51e1[_0x43de70(0x28b)](_0x1765ab)]=_0x1765ab;}var _0x1b4729=_0x3b51e1['charAt'](0x40);if(_0x1b4729){var _0x5294ad=_0x521d72[_0x43de70(0x2da)](_0x1b4729);_0x5294ad!==-0x1&&(_0x4b375e=_0x5294ad);}return _0xc2e88f(_0x521d72,_0x4b375e,_0x1b6377);},'_map':_0x300801(0x2d6)};function _0xc2e88f(_0x52d821,_0x4628cd,_0x98514a){var _0x3b6b0a=_0x300801;for(var _0x3fb5fd=[],_0x11300c=0x0,_0xf74185=0x0;_0xf74185<_0x4628cd;_0xf74185++)if(_0xf74185%0x4){var _0x12c9a6=_0x98514a[_0x52d821[_0x3b6b0a(0x28b)](_0xf74185-0x1)]<<_0xf74185%0x4*0x2,_0x2740ee=_0x98514a[_0x52d821[_0x3b6b0a(0x28b)](_0xf74185)]>>>0x6-_0xf74185%0x4*0x2,_0x2acb06=_0x12c9a6|_0x2740ee;_0x3fb5fd[_0x11300c>>>0x2]|=_0x2acb06<<0x18-_0x11300c%0x4*0x8,_0x11300c++;}return _0x19e583[_0x3b6b0a(0x35b)](_0x3fb5fd,_0x11300c);}}()),_0x1362a8[_0x202aba(0x16b)][_0x202aba(0x44a)];}));}(We)),We[_0x27b511(0x1df)];}var Ke={'exports':{}},Lr=Ke['exports'],ei;function Mr(){return ei||(ei=0x1,function(_0x1ba76f,_0x3a84b5){(function(_0x2c7df7,_0x1b2b5d){var _0x3c158f=_0x2266;_0x1ba76f[_0x3c158f(0x1df)]=_0x1b2b5d(ne());}(Lr,function(_0x230e22){var _0x8425e5=_0x2266;return function(_0x3f847a){var _0x5a5bc7=_0x2266,_0xa3505f=_0x230e22,_0x25aae=_0xa3505f[_0x5a5bc7(0x236)],_0x2df65d=_0x25aae[_0x5a5bc7(0x177)],_0x5d8c5f=_0x25aae[_0x5a5bc7(0x3c3)],_0x548a29=_0xa3505f[_0x5a5bc7(0x184)],_0x1c8692=[];(function(){var _0x173011=_0x5a5bc7;for(var _0x106cdb=0x0;_0x106cdb<0x40;_0x106cdb++)_0x1c8692[_0x106cdb]=_0x3f847a[_0x173011(0x310)](_0x3f847a['sin'](_0x106cdb+0x1))*0x100000000|0x0;}());var _0x35207c=_0x548a29[_0x5a5bc7(0x21a)]=_0x5d8c5f[_0x5a5bc7(0x243)]({'_doReset':function(){this['_hash']=new _0x2df65d['init']([0x67452301,0xefcdab89,0x98badcfe,0x10325476]);},'_doProcessBlock':function(_0x1461cd,_0x4b4c7c){var _0x4f165b=_0x5a5bc7;for(var _0x4bcbfc=0x0;_0x4bcbfc<0x10;_0x4bcbfc++){var _0x5d5cf7=_0x4b4c7c+_0x4bcbfc,_0x5911d7=_0x1461cd[_0x5d5cf7];_0x1461cd[_0x5d5cf7]=(_0x5911d7<<0x8|_0x5911d7>>>0x18)&0xff00ff|(_0x5911d7<<0x18|_0x5911d7>>>0x8)&0xff00ff00;}var _0x3d207c=this[_0x4f165b(0x3e0)]['words'],_0x31e020=_0x1461cd[_0x4b4c7c+0x0],_0x4322aa=_0x1461cd[_0x4b4c7c+0x1],_0x3f8e6c=_0x1461cd[_0x4b4c7c+0x2],_0x1e5d0a=_0x1461cd[_0x4b4c7c+0x3],_0x54ca59=_0x1461cd[_0x4b4c7c+0x4],_0x43b5af=_0x1461cd[_0x4b4c7c+0x5],_0x8eca86=_0x1461cd[_0x4b4c7c+0x6],_0x41e463=_0x1461cd[_0x4b4c7c+0x7],_0x84b4e9=_0x1461cd[_0x4b4c7c+0x8],_0x4d5fba=_0x1461cd[_0x4b4c7c+0x9],_0x5e5386=_0x1461cd[_0x4b4c7c+0xa],_0x59b8b4=_0x1461cd[_0x4b4c7c+0xb],_0x3e19a3=_0x1461cd[_0x4b4c7c+0xc],_0x50cdf0=_0x1461cd[_0x4b4c7c+0xd],_0x14ade3=_0x1461cd[_0x4b4c7c+0xe],_0x3d2335=_0x1461cd[_0x4b4c7c+0xf],_0x253c96=_0x3d207c[0x0],_0x15144a=_0x3d207c[0x1],_0xa938da=_0x3d207c[0x2],_0x230d07=_0x3d207c[0x3];_0x253c96=_0x1ee92e(_0x253c96,_0x15144a,_0xa938da,_0x230d07,_0x31e020,0x7,_0x1c8692[0x0]),_0x230d07=_0x1ee92e(_0x230d07,_0x253c96,_0x15144a,_0xa938da,_0x4322aa,0xc,_0x1c8692[0x1]),_0xa938da=_0x1ee92e(_0xa938da,_0x230d07,_0x253c96,_0x15144a,_0x3f8e6c,0x11,_0x1c8692[0x2]),_0x15144a=_0x1ee92e(_0x15144a,_0xa938da,_0x230d07,_0x253c96,_0x1e5d0a,0x16,_0x1c8692[0x3]),_0x253c96=_0x1ee92e(_0x253c96,_0x15144a,_0xa938da,_0x230d07,_0x54ca59,0x7,_0x1c8692[0x4]),_0x230d07=_0x1ee92e(_0x230d07,_0x253c96,_0x15144a,_0xa938da,_0x43b5af,0xc,_0x1c8692[0x5]),_0xa938da=_0x1ee92e(_0xa938da,_0x230d07,_0x253c96,_0x15144a,_0x8eca86,0x11,_0x1c8692[0x6]),_0x15144a=_0x1ee92e(_0x15144a,_0xa938da,_0x230d07,_0x253c96,_0x41e463,0x16,_0x1c8692[0x7]),_0x253c96=_0x1ee92e(_0x253c96,_0x15144a,_0xa938da,_0x230d07,_0x84b4e9,0x7,_0x1c8692[0x8]),_0x230d07=_0x1ee92e(_0x230d07,_0x253c96,_0x15144a,_0xa938da,_0x4d5fba,0xc,_0x1c8692[0x9]),_0xa938da=_0x1ee92e(_0xa938da,_0x230d07,_0x253c96,_0x15144a,_0x5e5386,0x11,_0x1c8692[0xa]),_0x15144a=_0x1ee92e(_0x15144a,_0xa938da,_0x230d07,_0x253c96,_0x59b8b4,0x16,_0x1c8692[0xb]),_0x253c96=_0x1ee92e(_0x253c96,_0x15144a,_0xa938da,_0x230d07,_0x3e19a3,0x7,_0x1c8692[0xc]),_0x230d07=_0x1ee92e(_0x230d07,_0x253c96,_0x15144a,_0xa938da,_0x50cdf0,0xc,_0x1c8692[0xd]),_0xa938da=_0x1ee92e(_0xa938da,_0x230d07,_0x253c96,_0x15144a,_0x14ade3,0x11,_0x1c8692[0xe]),_0x15144a=_0x1ee92e(_0x15144a,_0xa938da,_0x230d07,_0x253c96,_0x3d2335,0x16,_0x1c8692[0xf]),_0x253c96=_0x256fe0(_0x253c96,_0x15144a,_0xa938da,_0x230d07,_0x4322aa,0x5,_0x1c8692[0x10]),_0x230d07=_0x256fe0(_0x230d07,_0x253c96,_0x15144a,_0xa938da,_0x8eca86,0x9,_0x1c8692[0x11]),_0xa938da=_0x256fe0(_0xa938da,_0x230d07,_0x253c96,_0x15144a,_0x59b8b4,0xe,_0x1c8692[0x12]),_0x15144a=_0x256fe0(_0x15144a,_0xa938da,_0x230d07,_0x253c96,_0x31e020,0x14,_0x1c8692[0x13]),_0x253c96=_0x256fe0(_0x253c96,_0x15144a,_0xa938da,_0x230d07,_0x43b5af,0x5,_0x1c8692[0x14]),_0x230d07=_0x256fe0(_0x230d07,_0x253c96,_0x15144a,_0xa938da,_0x5e5386,0x9,_0x1c8692[0x15]),_0xa938da=_0x256fe0(_0xa938da,_0x230d07,_0x253c96,_0x15144a,_0x3d2335,0xe,_0x1c8692[0x16]),_0x15144a=_0x256fe0(_0x15144a,_0xa938da,_0x230d07,_0x253c96,_0x54ca59,0x14,_0x1c8692[0x17]),_0x253c96=_0x256fe0(_0x253c96,_0x15144a,_0xa938da,_0x230d07,_0x4d5fba,0x5,_0x1c8692[0x18]),_0x230d07=_0x256fe0(_0x230d07,_0x253c96,_0x15144a,_0xa938da,_0x14ade3,0x9,_0x1c8692[0x19]),_0xa938da=_0x256fe0(_0xa938da,_0x230d07,_0x253c96,_0x15144a,_0x1e5d0a,0xe,_0x1c8692[0x1a]),_0x15144a=_0x256fe0(_0x15144a,_0xa938da,_0x230d07,_0x253c96,_0x84b4e9,0x14,_0x1c8692[0x1b]),_0x253c96=_0x256fe0(_0x253c96,_0x15144a,_0xa938da,_0x230d07,_0x50cdf0,0x5,_0x1c8692[0x1c]),_0x230d07=_0x256fe0(_0x230d07,_0x253c96,_0x15144a,_0xa938da,_0x3f8e6c,0x9,_0x1c8692[0x1d]),_0xa938da=_0x256fe0(_0xa938da,_0x230d07,_0x253c96,_0x15144a,_0x41e463,0xe,_0x1c8692[0x1e]),_0x15144a=_0x256fe0(_0x15144a,_0xa938da,_0x230d07,_0x253c96,_0x3e19a3,0x14,_0x1c8692[0x1f]),_0x253c96=_0x42437f(_0x253c96,_0x15144a,_0xa938da,_0x230d07,_0x43b5af,0x4,_0x1c8692[0x20]),_0x230d07=_0x42437f(_0x230d07,_0x253c96,_0x15144a,_0xa938da,_0x84b4e9,0xb,_0x1c8692[0x21]),_0xa938da=_0x42437f(_0xa938da,_0x230d07,_0x253c96,_0x15144a,_0x59b8b4,0x10,_0x1c8692[0x22]),_0x15144a=_0x42437f(_0x15144a,_0xa938da,_0x230d07,_0x253c96,_0x14ade3,0x17,_0x1c8692[0x23]),_0x253c96=_0x42437f(_0x253c96,_0x15144a,_0xa938da,_0x230d07,_0x4322aa,0x4,_0x1c8692[0x24]),_0x230d07=_0x42437f(_0x230d07,_0x253c96,_0x15144a,_0xa938da,_0x54ca59,0xb,_0x1c8692[0x25]),_0xa938da=_0x42437f(_0xa938da,_0x230d07,_0x253c96,_0x15144a,_0x41e463,0x10,_0x1c8692[0x26]),_0x15144a=_0x42437f(_0x15144a,_0xa938da,_0x230d07,_0x253c96,_0x5e5386,0x17,_0x1c8692[0x27]),_0x253c96=_0x42437f(_0x253c96,_0x15144a,_0xa938da,_0x230d07,_0x50cdf0,0x4,_0x1c8692[0x28]),_0x230d07=_0x42437f(_0x230d07,_0x253c96,_0x15144a,_0xa938da,_0x31e020,0xb,_0x1c8692[0x29]),_0xa938da=_0x42437f(_0xa938da,_0x230d07,_0x253c96,_0x15144a,_0x1e5d0a,0x10,_0x1c8692[0x2a]),_0x15144a=_0x42437f(_0x15144a,_0xa938da,_0x230d07,_0x253c96,_0x8eca86,0x17,_0x1c8692[0x2b]),_0x253c96=_0x42437f(_0x253c96,_0x15144a,_0xa938da,_0x230d07,_0x4d5fba,0x4,_0x1c8692[0x2c]),_0x230d07=_0x42437f(_0x230d07,_0x253c96,_0x15144a,_0xa938da,_0x3e19a3,0xb,_0x1c8692[0x2d]),_0xa938da=_0x42437f(_0xa938da,_0x230d07,_0x253c96,_0x15144a,_0x3d2335,0x10,_0x1c8692[0x2e]),_0x15144a=_0x42437f(_0x15144a,_0xa938da,_0x230d07,_0x253c96,_0x3f8e6c,0x17,_0x1c8692[0x2f]),_0x253c96=_0x14938f(_0x253c96,_0x15144a,_0xa938da,_0x230d07,_0x31e020,0x6,_0x1c8692[0x30]),_0x230d07=_0x14938f(_0x230d07,_0x253c96,_0x15144a,_0xa938da,_0x41e463,0xa,_0x1c8692[0x31]),_0xa938da=_0x14938f(_0xa938da,_0x230d07,_0x253c96,_0x15144a,_0x14ade3,0xf,_0x1c8692[0x32]),_0x15144a=_0x14938f(_0x15144a,_0xa938da,_0x230d07,_0x253c96,_0x43b5af,0x15,_0x1c8692[0x33]),_0x253c96=_0x14938f(_0x253c96,_0x15144a,_0xa938da,_0x230d07,_0x3e19a3,0x6,_0x1c8692[0x34]),_0x230d07=_0x14938f(_0x230d07,_0x253c96,_0x15144a,_0xa938da,_0x1e5d0a,0xa,_0x1c8692[0x35]),_0xa938da=_0x14938f(_0xa938da,_0x230d07,_0x253c96,_0x15144a,_0x5e5386,0xf,_0x1c8692[0x36]),_0x15144a=_0x14938f(_0x15144a,_0xa938da,_0x230d07,_0x253c96,_0x4322aa,0x15,_0x1c8692[0x37]),_0x253c96=_0x14938f(_0x253c96,_0x15144a,_0xa938da,_0x230d07,_0x84b4e9,0x6,_0x1c8692[0x38]),_0x230d07=_0x14938f(_0x230d07,_0x253c96,_0x15144a,_0xa938da,_0x3d2335,0xa,_0x1c8692[0x39]),_0xa938da=_0x14938f(_0xa938da,_0x230d07,_0x253c96,_0x15144a,_0x8eca86,0xf,_0x1c8692[0x3a]),_0x15144a=_0x14938f(_0x15144a,_0xa938da,_0x230d07,_0x253c96,_0x50cdf0,0x15,_0x1c8692[0x3b]),_0x253c96=_0x14938f(_0x253c96,_0x15144a,_0xa938da,_0x230d07,_0x54ca59,0x6,_0x1c8692[0x3c]),_0x230d07=_0x14938f(_0x230d07,_0x253c96,_0x15144a,_0xa938da,_0x59b8b4,0xa,_0x1c8692[0x3d]),_0xa938da=_0x14938f(_0xa938da,_0x230d07,_0x253c96,_0x15144a,_0x3f8e6c,0xf,_0x1c8692[0x3e]),_0x15144a=_0x14938f(_0x15144a,_0xa938da,_0x230d07,_0x253c96,_0x4d5fba,0x15,_0x1c8692[0x3f]),_0x3d207c[0x0]=_0x3d207c[0x0]+_0x253c96|0x0,_0x3d207c[0x1]=_0x3d207c[0x1]+_0x15144a|0x0,_0x3d207c[0x2]=_0x3d207c[0x2]+_0xa938da|0x0,_0x3d207c[0x3]=_0x3d207c[0x3]+_0x230d07|0x0;},'_doFinalize':function(){var _0x4b8aa6=_0x5a5bc7,_0x2a5677=this[_0x4b8aa6(0x3d6)],_0x34601e=_0x2a5677['words'],_0x208bb7=this['_nDataBytes']*0x8,_0x1a8cd6=_0x2a5677[_0x4b8aa6(0x447)]*0x8;_0x34601e[_0x1a8cd6>>>0x5]|=0x80<<0x18-_0x1a8cd6%0x20;var _0x329cb5=_0x3f847a['floor'](_0x208bb7/0x100000000),_0x42e225=_0x208bb7;_0x34601e[(_0x1a8cd6+0x40>>>0x9<<0x4)+0xf]=(_0x329cb5<<0x8|_0x329cb5>>>0x18)&0xff00ff|(_0x329cb5<<0x18|_0x329cb5>>>0x8)&0xff00ff00,_0x34601e[(_0x1a8cd6+0x40>>>0x9<<0x4)+0xe]=(_0x42e225<<0x8|_0x42e225>>>0x18)&0xff00ff|(_0x42e225<<0x18|_0x42e225>>>0x8)&0xff00ff00,_0x2a5677[_0x4b8aa6(0x447)]=(_0x34601e['length']+0x1)*0x4,this['_process']();for(var _0x4d5686=this['_hash'],_0x4f1270=_0x4d5686['words'],_0x559cae=0x0;_0x559cae<0x4;_0x559cae++){var _0x3380de=_0x4f1270[_0x559cae];_0x4f1270[_0x559cae]=(_0x3380de<<0x8|_0x3380de>>>0x18)&0xff00ff|(_0x3380de<<0x18|_0x3380de>>>0x8)&0xff00ff00;}return _0x4d5686;},'clone':function(){var _0x533880=_0x5a5bc7,_0xf995df=_0x5d8c5f[_0x533880(0x1cd)]['call'](this);return _0xf995df[_0x533880(0x3e0)]=this[_0x533880(0x3e0)][_0x533880(0x1cd)](),_0xf995df;}});function _0x1ee92e(_0x2ebce5,_0x524b20,_0x1fc956,_0x3cf41b,_0x43369a,_0x1cbcec,_0x3c1ee6){var _0x2d22ac=_0x2ebce5+(_0x524b20&_0x1fc956|~_0x524b20&_0x3cf41b)+_0x43369a+_0x3c1ee6;return(_0x2d22ac<<_0x1cbcec|_0x2d22ac>>>0x20-_0x1cbcec)+_0x524b20;}function _0x256fe0(_0x4cc508,_0x44c9f5,_0x549383,_0x423be7,_0x4a5d65,_0x12063d,_0x372c5e){var _0xf9e523=_0x4cc508+(_0x44c9f5&_0x423be7|_0x549383&~_0x423be7)+_0x4a5d65+_0x372c5e;return(_0xf9e523<<_0x12063d|_0xf9e523>>>0x20-_0x12063d)+_0x44c9f5;}function _0x42437f(_0x52c2f6,_0x49327c,_0x329b75,_0x529052,_0x2afd9b,_0x357771,_0x490ba5){var _0x42edaa=_0x52c2f6+(_0x49327c^_0x329b75^_0x529052)+_0x2afd9b+_0x490ba5;return(_0x42edaa<<_0x357771|_0x42edaa>>>0x20-_0x357771)+_0x49327c;}function _0x14938f(_0x421bc8,_0x1f20a6,_0x503bbb,_0xaa8495,_0x233fdc,_0x3cd75d,_0x2fc5d5){var _0x1e4896=_0x421bc8+(_0x503bbb^(_0x1f20a6|~_0xaa8495))+_0x233fdc+_0x2fc5d5;return(_0x1e4896<<_0x3cd75d|_0x1e4896>>>0x20-_0x3cd75d)+_0x1f20a6;}_0xa3505f[_0x5a5bc7(0x21a)]=_0x5d8c5f[_0x5a5bc7(0x43d)](_0x35207c),_0xa3505f[_0x5a5bc7(0x355)]=_0x5d8c5f['_createHmacHelper'](_0x35207c);}(Math),_0x230e22[_0x8425e5(0x21a)];}));}(Ke)),Ke['exports'];}var Ye={'exports':{}},qe={'exports':{}},$r=qe[_0x24947f(0x1df)],ti;function Hr(){var _0x4bd903=_0x24947f;return ti||(ti=0x1,function(_0x2add37,_0x52194c){(function(_0x2c4cc5,_0x4920be){var _0x5e76c6=_0x2266;_0x2add37[_0x5e76c6(0x1df)]=_0x4920be(ne());}($r,function(_0x134887){var _0x3532ff=_0x2266;return(function(){var _0x26c0c5=_0x2266,_0x3e4795=_0x134887,_0x25e4ca=_0x3e4795[_0x26c0c5(0x236)],_0x198258=_0x25e4ca[_0x26c0c5(0x177)],_0x4158bf=_0x25e4ca['Hasher'],_0x3c67ca=_0x3e4795[_0x26c0c5(0x184)],_0x5d61e1=[],_0x44f224=_0x3c67ca['SHA1']=_0x4158bf[_0x26c0c5(0x243)]({'_doReset':function(){var _0x2608a4=_0x26c0c5;this[_0x2608a4(0x3e0)]=new _0x198258['init']([0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0]);},'_doProcessBlock':function(_0x3c37f7,_0x42cc2f){var _0x490691=_0x26c0c5;for(var _0x51d5e3=this[_0x490691(0x3e0)]['words'],_0x164c95=_0x51d5e3[0x0],_0x496922=_0x51d5e3[0x1],_0xc2d3f=_0x51d5e3[0x2],_0x561247=_0x51d5e3[0x3],_0x54419c=_0x51d5e3[0x4],_0x578c55=0x0;_0x578c55<0x50;_0x578c55++){if(_0x578c55<0x10)_0x5d61e1[_0x578c55]=_0x3c37f7[_0x42cc2f+_0x578c55]|0x0;else{var _0x4980b9=_0x5d61e1[_0x578c55-0x3]^_0x5d61e1[_0x578c55-0x8]^_0x5d61e1[_0x578c55-0xe]^_0x5d61e1[_0x578c55-0x10];_0x5d61e1[_0x578c55]=_0x4980b9<<0x1|_0x4980b9>>>0x1f;}var _0x2cc379=(_0x164c95<<0x5|_0x164c95>>>0x1b)+_0x54419c+_0x5d61e1[_0x578c55];_0x578c55<0x14?_0x2cc379+=(_0x496922&_0xc2d3f|~_0x496922&_0x561247)+0x5a827999:_0x578c55<0x28?_0x2cc379+=(_0x496922^_0xc2d3f^_0x561247)+0x6ed9eba1:_0x578c55<0x3c?_0x2cc379+=(_0x496922&_0xc2d3f|_0x496922&_0x561247|_0xc2d3f&_0x561247)-0x70e44324:_0x2cc379+=(_0x496922^_0xc2d3f^_0x561247)-0x359d3e2a,_0x54419c=_0x561247,_0x561247=_0xc2d3f,_0xc2d3f=_0x496922<<0x1e|_0x496922>>>0x2,_0x496922=_0x164c95,_0x164c95=_0x2cc379;}_0x51d5e3[0x0]=_0x51d5e3[0x0]+_0x164c95|0x0,_0x51d5e3[0x1]=_0x51d5e3[0x1]+_0x496922|0x0,_0x51d5e3[0x2]=_0x51d5e3[0x2]+_0xc2d3f|0x0,_0x51d5e3[0x3]=_0x51d5e3[0x3]+_0x561247|0x0,_0x51d5e3[0x4]=_0x51d5e3[0x4]+_0x54419c|0x0;},'_doFinalize':function(){var _0x4ec1aa=_0x26c0c5,_0x4fd9a0=this[_0x4ec1aa(0x3d6)],_0x133459=_0x4fd9a0[_0x4ec1aa(0x2ec)],_0x590dc6=this[_0x4ec1aa(0x2f9)]*0x8,_0x6c5aea=_0x4fd9a0[_0x4ec1aa(0x447)]*0x8;return _0x133459[_0x6c5aea>>>0x5]|=0x80<<0x18-_0x6c5aea%0x20,_0x133459[(_0x6c5aea+0x40>>>0x9<<0x4)+0xe]=Math[_0x4ec1aa(0x1e7)](_0x590dc6/0x100000000),_0x133459[(_0x6c5aea+0x40>>>0x9<<0x4)+0xf]=_0x590dc6,_0x4fd9a0[_0x4ec1aa(0x447)]=_0x133459[_0x4ec1aa(0x334)]*0x4,this[_0x4ec1aa(0x1b5)](),this[_0x4ec1aa(0x3e0)];},'clone':function(){var _0x3576ba=_0x26c0c5,_0x37b401=_0x4158bf[_0x3576ba(0x1cd)]['call'](this);return _0x37b401[_0x3576ba(0x3e0)]=this['_hash'][_0x3576ba(0x1cd)](),_0x37b401;}});_0x3e4795[_0x26c0c5(0x1ca)]=_0x4158bf[_0x26c0c5(0x43d)](_0x44f224),_0x3e4795['HmacSHA1']=_0x4158bf[_0x26c0c5(0x385)](_0x44f224);}()),_0x134887[_0x3532ff(0x1ca)];}));}(qe)),qe[_0x4bd903(0x1df)];}var ze={'exports':{}},kr=ze['exports'],ii;function jr(){var _0x3e30e6=_0x24947f;return ii||(ii=0x1,function(_0x3364fb,_0x4b106f){(function(_0x50e0ba,_0x5ac4f2){_0x3364fb['exports']=_0x5ac4f2(ne());}(kr,function(_0x26f731){(function(){var _0x2c9491=_0x2266,_0x5efcd8=_0x26f731,_0x58c0a3=_0x5efcd8[_0x2c9491(0x236)],_0x248018=_0x58c0a3['Base'],_0x2b741b=_0x5efcd8[_0x2c9491(0x16b)],_0x84b204=_0x2b741b[_0x2c9491(0x295)],_0x362388=_0x5efcd8[_0x2c9491(0x184)];_0x362388['HMAC']=_0x248018[_0x2c9491(0x243)]({'init':function(_0xa3b2e2,_0x393331){var _0x3e0a7a=_0x2c9491;_0xa3b2e2=this['_hasher']=new _0xa3b2e2[(_0x3e0a7a(0x337))](),typeof _0x393331==_0x3e0a7a(0x327)&&(_0x393331=_0x84b204[_0x3e0a7a(0x274)](_0x393331));var _0x2ad59d=_0xa3b2e2[_0x3e0a7a(0x321)],_0x4f144d=_0x2ad59d*0x4;_0x393331[_0x3e0a7a(0x447)]>_0x4f144d&&(_0x393331=_0xa3b2e2[_0x3e0a7a(0x2f3)](_0x393331)),_0x393331[_0x3e0a7a(0x176)]();for(var _0x570f68=this[_0x3e0a7a(0x190)]=_0x393331[_0x3e0a7a(0x1cd)](),_0x1bb077=this['_iKey']=_0x393331[_0x3e0a7a(0x1cd)](),_0x40a9cb=_0x570f68[_0x3e0a7a(0x2ec)],_0x4f8091=_0x1bb077[_0x3e0a7a(0x2ec)],_0x2ea029=0x0;_0x2ea029<_0x2ad59d;_0x2ea029++)_0x40a9cb[_0x2ea029]^=0x5c5c5c5c,_0x4f8091[_0x2ea029]^=0x36363636;_0x570f68[_0x3e0a7a(0x447)]=_0x1bb077[_0x3e0a7a(0x447)]=_0x4f144d,this['reset']();},'reset':function(){var _0x2cf11d=_0x2c9491,_0x215884=this[_0x2cf11d(0x40f)];_0x215884[_0x2cf11d(0x431)](),_0x215884[_0x2cf11d(0x325)](this[_0x2cf11d(0x2ad)]);},'update':function(_0x45b4d6){var _0x273d19=_0x2c9491;return this[_0x273d19(0x40f)]['update'](_0x45b4d6),this;},'finalize':function(_0x45ef0e){var _0xf0a70c=_0x2c9491,_0x3c8e7a=this['_hasher'],_0x324706=_0x3c8e7a[_0xf0a70c(0x2f3)](_0x45ef0e);_0x3c8e7a[_0xf0a70c(0x431)]();var _0x150f7f=_0x3c8e7a[_0xf0a70c(0x2f3)](this['_oKey'][_0xf0a70c(0x1cd)]()[_0xf0a70c(0x36e)](_0x324706));return _0x150f7f;}});}());}));}(ze)),ze[_0x3e30e6(0x1df)];}var Br=Ye['exports'],ni;function Ui(){var _0x40b2a0=_0x24947f;return ni||(ni=0x1,function(_0x2dd1b2,_0x22eb3e){(function(_0x111c19,_0x5422ca,_0x290e6c){var _0x510754=_0x2266;_0x2dd1b2[_0x510754(0x1df)]=_0x5422ca(ne(),Hr(),jr());}(Br,function(_0x332b65){var _0x51d0d5=_0x2266;return(function(){var _0x865f99=_0x2266,_0x3efa7=_0x332b65,_0x2ba6be=_0x3efa7[_0x865f99(0x236)],_0x540e99=_0x2ba6be[_0x865f99(0x33b)],_0xa67c4c=_0x2ba6be[_0x865f99(0x177)],_0x178470=_0x3efa7[_0x865f99(0x184)],_0x1d17fa=_0x178470[_0x865f99(0x21a)],_0x1b6393=_0x178470['EvpKDF']=_0x540e99[_0x865f99(0x243)]({'cfg':_0x540e99['extend']({'keySize':0x80/0x20,'hasher':_0x1d17fa,'iterations':0x1}),'init':function(_0x2026b9){var _0xa30ce5=_0x865f99;this[_0xa30ce5(0x1fa)]=this[_0xa30ce5(0x1fa)]['extend'](_0x2026b9);},'compute':function(_0x3b0ad9,_0xbe24fa){var _0x46f20f=_0x865f99;for(var _0x51ce69,_0x59e6f9=this[_0x46f20f(0x1fa)],_0x4572db=_0x59e6f9['hasher'][_0x46f20f(0x35b)](),_0x9155fe=_0xa67c4c['create'](),_0x1fe12c=_0x9155fe[_0x46f20f(0x2ec)],_0x9b7fc=_0x59e6f9['keySize'],_0x4a7a63=_0x59e6f9[_0x46f20f(0x189)];_0x1fe12c[_0x46f20f(0x334)]<_0x9b7fc;){_0x51ce69&&_0x4572db['update'](_0x51ce69),_0x51ce69=_0x4572db[_0x46f20f(0x325)](_0x3b0ad9)[_0x46f20f(0x2f3)](_0xbe24fa),_0x4572db['reset']();for(var _0x45e638=0x1;_0x45e638<_0x4a7a63;_0x45e638++)_0x51ce69=_0x4572db[_0x46f20f(0x2f3)](_0x51ce69),_0x4572db['reset']();_0x9155fe[_0x46f20f(0x36e)](_0x51ce69);}return _0x9155fe[_0x46f20f(0x447)]=_0x9b7fc*0x4,_0x9155fe;}});_0x3efa7[_0x865f99(0x35e)]=function(_0x703e9a,_0x531da1,_0xac010c){var _0x3058a9=_0x865f99;return _0x1b6393[_0x3058a9(0x35b)](_0xac010c)['compute'](_0x703e9a,_0x531da1);};}()),_0x332b65[_0x51d0d5(0x35e)];}));}(Ye)),Ye[_0x40b2a0(0x1df)];}var Je={'exports':{}},Fr=Je['exports'],ri;function Ai(){return ri||(ri=0x1,function(_0x571105,_0x232c2d){(function(_0x5088a0,_0x5d1e79,_0x3d46df){_0x571105['exports']=_0x5d1e79(ne(),Ui());}(Fr,function(_0x1227e3){_0x1227e3['lib']['Cipher']||function(_0x250851){var _0x26edaf=_0x2266,_0x3447b1=_0x1227e3,_0x34b5f0=_0x3447b1[_0x26edaf(0x236)],_0x3e87f6=_0x34b5f0[_0x26edaf(0x33b)],_0x42251d=_0x34b5f0[_0x26edaf(0x177)],_0x591a3b=_0x34b5f0[_0x26edaf(0x301)],_0x1210f8=_0x3447b1['enc'];_0x1210f8[_0x26edaf(0x295)];var _0xc92a6a=_0x1210f8[_0x26edaf(0x44a)],_0x388bbe=_0x3447b1[_0x26edaf(0x184)],_0x34d6af=_0x388bbe['EvpKDF'],_0x19b627=_0x34b5f0['Cipher']=_0x591a3b['extend']({'cfg':_0x3e87f6['extend'](),'createEncryptor':function(_0x3b9140,_0x4a9f9c){return this['create'](this['_ENC_XFORM_MODE'],_0x3b9140,_0x4a9f9c);},'createDecryptor':function(_0x2043b1,_0x3617c3){var _0x340fcf=_0x26edaf;return this[_0x340fcf(0x35b)](this[_0x340fcf(0x2c6)],_0x2043b1,_0x3617c3);},'init':function(_0x4355f5,_0x509408,_0x201b49){var _0x479978=_0x26edaf;this['cfg']=this[_0x479978(0x1fa)][_0x479978(0x243)](_0x201b49),this[_0x479978(0x371)]=_0x4355f5,this[_0x479978(0x3ce)]=_0x509408,this[_0x479978(0x431)]();},'reset':function(){var _0x158614=_0x26edaf;_0x591a3b[_0x158614(0x431)]['call'](this),this['_doReset']();},'process':function(_0x4c4093){var _0x2ddff3=_0x26edaf;return this['_append'](_0x4c4093),this[_0x2ddff3(0x1b5)]();},'finalize':function(_0x430146){var _0x530b85=_0x26edaf;_0x430146&&this[_0x530b85(0x237)](_0x430146);var _0x415bfa=this['_doFinalize']();return _0x415bfa;},'keySize':0x80/0x20,'ivSize':0x80/0x20,'_ENC_XFORM_MODE':0x1,'_DEC_XFORM_MODE':0x2,'_createHelper':(function(){function _0x5dbe62(_0xb854e){return typeof _0xb854e=='string'?_0x43662d:_0x414864;}return function(_0x152087){return{'encrypt':function(_0x1b3e7b,_0x65421,_0x5200d8){var _0x36d963=_0x2266;return _0x5dbe62(_0x65421)[_0x36d963(0x1bf)](_0x152087,_0x1b3e7b,_0x65421,_0x5200d8);},'decrypt':function(_0x365ce2,_0x272706,_0x3ee8e5){var _0x188590=_0x2266;return _0x5dbe62(_0x272706)[_0x188590(0x1cf)](_0x152087,_0x365ce2,_0x272706,_0x3ee8e5);}};};}())});_0x34b5f0['StreamCipher']=_0x19b627[_0x26edaf(0x243)]({'_doFinalize':function(){var _0x183f1f=this['_process'](!0x0);return _0x183f1f;},'blockSize':0x1});var _0x5759bb=_0x3447b1[_0x26edaf(0x3f3)]={},_0x4402a9=_0x34b5f0[_0x26edaf(0x1db)]=_0x3e87f6[_0x26edaf(0x243)]({'createEncryptor':function(_0x49209b,_0xd7b288){var _0x5f13de=_0x26edaf;return this[_0x5f13de(0x351)]['create'](_0x49209b,_0xd7b288);},'createDecryptor':function(_0x32c56f,_0x55fa96){var _0x1f58c0=_0x26edaf;return this[_0x1f58c0(0x168)][_0x1f58c0(0x35b)](_0x32c56f,_0x55fa96);},'init':function(_0x1f8c6c,_0x35a1db){var _0xdfc174=_0x26edaf;this[_0xdfc174(0x33e)]=_0x1f8c6c,this[_0xdfc174(0x42f)]=_0x35a1db;}}),_0x132a7b=_0x5759bb[_0x26edaf(0x38b)]=(function(){var _0x32963b=_0x26edaf,_0x23052c=_0x4402a9[_0x32963b(0x243)]();_0x23052c[_0x32963b(0x351)]=_0x23052c[_0x32963b(0x243)]({'processBlock':function(_0x1e9547,_0x31ec16){var _0x324c53=_0x32963b,_0x5d62cd=this[_0x324c53(0x33e)],_0x1c34af=_0x5d62cd[_0x324c53(0x321)];_0x15c025[_0x324c53(0x2ce)](this,_0x1e9547,_0x31ec16,_0x1c34af),_0x5d62cd[_0x324c53(0x411)](_0x1e9547,_0x31ec16),this[_0x324c53(0x2e2)]=_0x1e9547[_0x324c53(0x336)](_0x31ec16,_0x31ec16+_0x1c34af);}}),_0x23052c['Decryptor']=_0x23052c['extend']({'processBlock':function(_0x10d306,_0x3c9ae4){var _0x3ae289=_0x32963b,_0x5841a1=this['_cipher'],_0x500175=_0x5841a1[_0x3ae289(0x321)],_0x3f2006=_0x10d306[_0x3ae289(0x336)](_0x3c9ae4,_0x3c9ae4+_0x500175);_0x5841a1[_0x3ae289(0x18a)](_0x10d306,_0x3c9ae4),_0x15c025['call'](this,_0x10d306,_0x3c9ae4,_0x500175),this[_0x3ae289(0x2e2)]=_0x3f2006;}});function _0x15c025(_0x5a4060,_0x1102f3,_0x5ed15c){var _0x143de0=_0x32963b,_0xff195e,_0x203772=this[_0x143de0(0x42f)];_0x203772?(_0xff195e=_0x203772,this['_iv']=_0x250851):_0xff195e=this[_0x143de0(0x2e2)];for(var _0x365968=0x0;_0x365968<_0x5ed15c;_0x365968++)_0x5a4060[_0x1102f3+_0x365968]^=_0xff195e[_0x365968];}return _0x23052c;}()),_0x4ce595=_0x3447b1['pad']={},_0x4f743c=_0x4ce595[_0x26edaf(0x34b)]={'pad':function(_0x5d1c3a,_0x1b1203){var _0x454c2d=_0x26edaf;for(var _0x41d9c4=_0x1b1203*0x4,_0x4438b2=_0x41d9c4-_0x5d1c3a[_0x454c2d(0x447)]%_0x41d9c4,_0x5ecb73=_0x4438b2<<0x18|_0x4438b2<<0x10|_0x4438b2<<0x8|_0x4438b2,_0x37bbc3=[],_0x31a9e3=0x0;_0x31a9e3<_0x4438b2;_0x31a9e3+=0x4)_0x37bbc3[_0x454c2d(0x32c)](_0x5ecb73);var _0x572aa8=_0x42251d[_0x454c2d(0x35b)](_0x37bbc3,_0x4438b2);_0x5d1c3a[_0x454c2d(0x36e)](_0x572aa8);},'unpad':function(_0x404f97){var _0x5425e5=_0x26edaf,_0x267f42=_0x404f97['words'][_0x404f97['sigBytes']-0x1>>>0x2]&0xff;_0x404f97[_0x5425e5(0x447)]-=_0x267f42;}};_0x34b5f0['BlockCipher']=_0x19b627['extend']({'cfg':_0x19b627[_0x26edaf(0x1fa)][_0x26edaf(0x243)]({'mode':_0x132a7b,'padding':_0x4f743c}),'reset':function(){var _0x2f5131=_0x26edaf,_0x324983;_0x19b627[_0x2f5131(0x431)]['call'](this);var _0x228bfe=this[_0x2f5131(0x1fa)],_0xa9602b=_0x228bfe['iv'],_0x28442d=_0x228bfe['mode'];this[_0x2f5131(0x371)]==this['_ENC_XFORM_MODE']?_0x324983=_0x28442d[_0x2f5131(0x42c)]:(_0x324983=_0x28442d[_0x2f5131(0x1e9)],this['_minBufferSize']=0x1),this[_0x2f5131(0x309)]&&this[_0x2f5131(0x309)][_0x2f5131(0x256)]==_0x324983?this['_mode'][_0x2f5131(0x337)](this,_0xa9602b&&_0xa9602b[_0x2f5131(0x2ec)]):(this[_0x2f5131(0x309)]=_0x324983[_0x2f5131(0x2ce)](_0x28442d,this,_0xa9602b&&_0xa9602b[_0x2f5131(0x2ec)]),this['_mode'][_0x2f5131(0x256)]=_0x324983);},'_doProcessBlock':function(_0x4f7f24,_0xb1f59c){var _0x573d9b=_0x26edaf;this[_0x573d9b(0x309)]['processBlock'](_0x4f7f24,_0xb1f59c);},'_doFinalize':function(){var _0xab4c75=_0x26edaf,_0x6cc72,_0x139f51=this[_0xab4c75(0x1fa)]['padding'];return this['_xformMode']==this[_0xab4c75(0x37e)]?(_0x139f51[_0xab4c75(0x2de)](this[_0xab4c75(0x3d6)],this[_0xab4c75(0x321)]),_0x6cc72=this[_0xab4c75(0x1b5)](!0x0)):(_0x6cc72=this['_process'](!0x0),_0x139f51['unpad'](_0x6cc72)),_0x6cc72;},'blockSize':0x80/0x20});var _0x2d75f2=_0x34b5f0[_0x26edaf(0x3ad)]=_0x3e87f6[_0x26edaf(0x243)]({'init':function(_0xe83f6f){var _0x99acd5=_0x26edaf;this[_0x99acd5(0x153)](_0xe83f6f);},'toString':function(_0x505328){var _0x391bf5=_0x26edaf;return(_0x505328||this[_0x391bf5(0x2f6)])['stringify'](this);}}),_0x592e94=_0x3447b1[_0x26edaf(0x186)]={},_0x1eac0d=_0x592e94[_0x26edaf(0x40b)]={'stringify':function(_0x28c18b){var _0x1f0094=_0x26edaf,_0x2c9fe8,_0x308c0a=_0x28c18b[_0x1f0094(0x26e)],_0x52e55d=_0x28c18b[_0x1f0094(0x1ba)];return _0x52e55d?_0x2c9fe8=_0x42251d[_0x1f0094(0x35b)]([0x53616c74,0x65645f5f])[_0x1f0094(0x36e)](_0x52e55d)['concat'](_0x308c0a):_0x2c9fe8=_0x308c0a,_0x2c9fe8[_0x1f0094(0x27f)](_0xc92a6a);},'parse':function(_0x469a1c){var _0x43a2ab=_0x26edaf,_0x5bfe24,_0x578a48=_0xc92a6a[_0x43a2ab(0x274)](_0x469a1c),_0x150459=_0x578a48[_0x43a2ab(0x2ec)];return _0x150459[0x0]==0x53616c74&&_0x150459[0x1]==0x65645f5f&&(_0x5bfe24=_0x42251d[_0x43a2ab(0x35b)](_0x150459[_0x43a2ab(0x336)](0x2,0x4)),_0x150459[_0x43a2ab(0x23d)](0x0,0x4),_0x578a48[_0x43a2ab(0x447)]-=0x10),_0x2d75f2[_0x43a2ab(0x35b)]({'ciphertext':_0x578a48,'salt':_0x5bfe24});}},_0x414864=_0x34b5f0[_0x26edaf(0x241)]=_0x3e87f6[_0x26edaf(0x243)]({'cfg':_0x3e87f6[_0x26edaf(0x243)]({'format':_0x1eac0d}),'encrypt':function(_0x5c9d82,_0x566068,_0x1a0348,_0x2a74e8){var _0x39cdd7=_0x26edaf;_0x2a74e8=this[_0x39cdd7(0x1fa)][_0x39cdd7(0x243)](_0x2a74e8);var _0xa8e2e9=_0x5c9d82[_0x39cdd7(0x42c)](_0x1a0348,_0x2a74e8),_0x194a9=_0xa8e2e9[_0x39cdd7(0x2f3)](_0x566068),_0x50f5d8=_0xa8e2e9[_0x39cdd7(0x1fa)];return _0x2d75f2['create']({'ciphertext':_0x194a9,'key':_0x1a0348,'iv':_0x50f5d8['iv'],'algorithm':_0x5c9d82,'mode':_0x50f5d8[_0x39cdd7(0x3f3)],'padding':_0x50f5d8[_0x39cdd7(0x400)],'blockSize':_0x5c9d82['blockSize'],'formatter':_0x2a74e8[_0x39cdd7(0x186)]});},'decrypt':function(_0x48b275,_0x259d1e,_0x5d88d6,_0x3ddf70){var _0x3c4591=_0x26edaf;_0x3ddf70=this[_0x3c4591(0x1fa)][_0x3c4591(0x243)](_0x3ddf70),_0x259d1e=this[_0x3c4591(0x3fb)](_0x259d1e,_0x3ddf70[_0x3c4591(0x186)]);var _0x30acf0=_0x48b275[_0x3c4591(0x1e9)](_0x5d88d6,_0x3ddf70)['finalize'](_0x259d1e['ciphertext']);return _0x30acf0;},'_parse':function(_0x3aa86b,_0x1d19b0){var _0x7c98a5=_0x26edaf;return typeof _0x3aa86b==_0x7c98a5(0x327)?_0x1d19b0[_0x7c98a5(0x274)](_0x3aa86b,this):_0x3aa86b;}}),_0x46b088=_0x3447b1[_0x26edaf(0x412)]={},_0x1aa9eb=_0x46b088[_0x26edaf(0x40b)]={'execute':function(_0xadfc95,_0x43352f,_0x4f555f,_0x3be279,_0x3a4ce3){var _0x5d3025=_0x26edaf;if(_0x3be279||(_0x3be279=_0x42251d[_0x5d3025(0x320)](0x40/0x8)),_0x3a4ce3)var _0x29e874=_0x34d6af[_0x5d3025(0x35b)]({'keySize':_0x43352f+_0x4f555f,'hasher':_0x3a4ce3})[_0x5d3025(0x174)](_0xadfc95,_0x3be279);else var _0x29e874=_0x34d6af[_0x5d3025(0x35b)]({'keySize':_0x43352f+_0x4f555f})['compute'](_0xadfc95,_0x3be279);var _0x1f8144=_0x42251d[_0x5d3025(0x35b)](_0x29e874[_0x5d3025(0x2ec)][_0x5d3025(0x336)](_0x43352f),_0x4f555f*0x4);return _0x29e874['sigBytes']=_0x43352f*0x4,_0x2d75f2['create']({'key':_0x29e874,'iv':_0x1f8144,'salt':_0x3be279});}},_0x43662d=_0x34b5f0[_0x26edaf(0x410)]=_0x414864['extend']({'cfg':_0x414864[_0x26edaf(0x1fa)][_0x26edaf(0x243)]({'kdf':_0x1aa9eb}),'encrypt':function(_0x4ed878,_0x5d5d12,_0xe5216,_0x108491){var _0x4ecab0=_0x26edaf;_0x108491=this[_0x4ecab0(0x1fa)][_0x4ecab0(0x243)](_0x108491);var _0x285ec4=_0x108491[_0x4ecab0(0x412)][_0x4ecab0(0x3a3)](_0xe5216,_0x4ed878['keySize'],_0x4ed878[_0x4ecab0(0x422)],_0x108491[_0x4ecab0(0x1ba)],_0x108491[_0x4ecab0(0x2c0)]);_0x108491['iv']=_0x285ec4['iv'];var _0x114202=_0x414864[_0x4ecab0(0x1bf)][_0x4ecab0(0x2ce)](this,_0x4ed878,_0x5d5d12,_0x285ec4['key'],_0x108491);return _0x114202[_0x4ecab0(0x153)](_0x285ec4),_0x114202;},'decrypt':function(_0x4e2737,_0xfe7d9,_0x3190fc,_0x3885db){var _0x4c94d3=_0x26edaf;_0x3885db=this['cfg'][_0x4c94d3(0x243)](_0x3885db),_0xfe7d9=this[_0x4c94d3(0x3fb)](_0xfe7d9,_0x3885db['format']);var _0x4caefc=_0x3885db['kdf'][_0x4c94d3(0x3a3)](_0x3190fc,_0x4e2737[_0x4c94d3(0x302)],_0x4e2737[_0x4c94d3(0x422)],_0xfe7d9[_0x4c94d3(0x1ba)],_0x3885db[_0x4c94d3(0x2c0)]);_0x3885db['iv']=_0x4caefc['iv'];var _0x5290a9=_0x414864['decrypt'][_0x4c94d3(0x2ce)](this,_0x4e2737,_0xfe7d9,_0x4caefc[_0x4c94d3(0x2c5)],_0x3885db);return _0x5290a9;}});}();}));}(Je)),Je['exports'];}var Vr=Ve[_0x24947f(0x1df)],si;function Gr(){var _0x330aa8=_0x24947f;return si||(si=0x1,function(_0xa0a63e,_0x181f6e){(function(_0x4a248d,_0x33f933,_0x38efa5){_0xa0a63e['exports']=_0x33f933(ne(),wi(),Mr(),Ui(),Ai());}(Vr,function(_0x4a167f){return(function(){var _0x51dab9=_0x2266,_0x4fc87f=_0x4a167f,_0x1a6e00=_0x4fc87f['lib'],_0x16ce65=_0x1a6e00['BlockCipher'],_0x2959f1=_0x4fc87f[_0x51dab9(0x184)],_0x42c35b=[],_0x41b8b0=[],_0x1a1d35=[],_0x2ef1ae=[],_0x4801d3=[],_0x34dcc7=[],_0x315e2a=[],_0xedddde=[],_0x5c8364=[],_0x2cce6d=[];(function(){for(var _0x4ecd28=[],_0x5b5858=0x0;_0x5b5858<0x100;_0x5b5858++)_0x5b5858<0x80?_0x4ecd28[_0x5b5858]=_0x5b5858<<0x1:_0x4ecd28[_0x5b5858]=_0x5b5858<<0x1^0x11b;for(var _0x46818a=0x0,_0x175ac6=0x0,_0x5b5858=0x0;_0x5b5858<0x100;_0x5b5858++){var _0x456749=_0x175ac6^_0x175ac6<<0x1^_0x175ac6<<0x2^_0x175ac6<<0x3^_0x175ac6<<0x4;_0x456749=_0x456749>>>0x8^_0x456749&0xff^0x63,_0x42c35b[_0x46818a]=_0x456749,_0x41b8b0[_0x456749]=_0x46818a;var _0x2a59f1=_0x4ecd28[_0x46818a],_0x5688f7=_0x4ecd28[_0x2a59f1],_0x1f75bd=_0x4ecd28[_0x5688f7],_0x1d01c6=_0x4ecd28[_0x456749]*0x101^_0x456749*0x1010100;_0x1a1d35[_0x46818a]=_0x1d01c6<<0x18|_0x1d01c6>>>0x8,_0x2ef1ae[_0x46818a]=_0x1d01c6<<0x10|_0x1d01c6>>>0x10,_0x4801d3[_0x46818a]=_0x1d01c6<<0x8|_0x1d01c6>>>0x18,_0x34dcc7[_0x46818a]=_0x1d01c6;var _0x1d01c6=_0x1f75bd*0x1010101^_0x5688f7*0x10001^_0x2a59f1*0x101^_0x46818a*0x1010100;_0x315e2a[_0x456749]=_0x1d01c6<<0x18|_0x1d01c6>>>0x8,_0xedddde[_0x456749]=_0x1d01c6<<0x10|_0x1d01c6>>>0x10,_0x5c8364[_0x456749]=_0x1d01c6<<0x8|_0x1d01c6>>>0x18,_0x2cce6d[_0x456749]=_0x1d01c6,_0x46818a?(_0x46818a=_0x2a59f1^_0x4ecd28[_0x4ecd28[_0x4ecd28[_0x1f75bd^_0x2a59f1]]],_0x175ac6^=_0x4ecd28[_0x4ecd28[_0x175ac6]]):_0x46818a=_0x175ac6=0x1;}}());var _0x3b4409=[0x0,0x1,0x2,0x4,0x8,0x10,0x20,0x40,0x80,0x1b,0x36],_0x55a8d5=_0x2959f1[_0x51dab9(0x251)]=_0x16ce65[_0x51dab9(0x243)]({'_doReset':function(){var _0x360859=_0x51dab9,_0x196ee8;if(!(this[_0x360859(0x1bd)]&&this[_0x360859(0x312)]===this[_0x360859(0x3ce)])){for(var _0x4f506a=this[_0x360859(0x312)]=this['_key'],_0x164f7e=_0x4f506a['words'],_0x2df29c=_0x4f506a[_0x360859(0x447)]/0x4,_0xf8d9bd=this[_0x360859(0x1bd)]=_0x2df29c+0x6,_0x499dde=(_0xf8d9bd+0x1)*0x4,_0x3bc160=this[_0x360859(0x405)]=[],_0x7ed127=0x0;_0x7ed127<_0x499dde;_0x7ed127++)_0x7ed127<_0x2df29c?_0x3bc160[_0x7ed127]=_0x164f7e[_0x7ed127]:(_0x196ee8=_0x3bc160[_0x7ed127-0x1],_0x7ed127%_0x2df29c?_0x2df29c>0x6&&_0x7ed127%_0x2df29c==0x4&&(_0x196ee8=_0x42c35b[_0x196ee8>>>0x18]<<0x18|_0x42c35b[_0x196ee8>>>0x10&0xff]<<0x10|_0x42c35b[_0x196ee8>>>0x8&0xff]<<0x8|_0x42c35b[_0x196ee8&0xff]):(_0x196ee8=_0x196ee8<<0x8|_0x196ee8>>>0x18,_0x196ee8=_0x42c35b[_0x196ee8>>>0x18]<<0x18|_0x42c35b[_0x196ee8>>>0x10&0xff]<<0x10|_0x42c35b[_0x196ee8>>>0x8&0xff]<<0x8|_0x42c35b[_0x196ee8&0xff],_0x196ee8^=_0x3b4409[_0x7ed127/_0x2df29c|0x0]<<0x18),_0x3bc160[_0x7ed127]=_0x3bc160[_0x7ed127-_0x2df29c]^_0x196ee8);for(var _0x35f2aa=this[_0x360859(0x436)]=[],_0x36ab80=0x0;_0x36ab80<_0x499dde;_0x36ab80++){var _0x7ed127=_0x499dde-_0x36ab80;if(_0x36ab80%0x4)var _0x196ee8=_0x3bc160[_0x7ed127];else var _0x196ee8=_0x3bc160[_0x7ed127-0x4];_0x36ab80<0x4||_0x7ed127<=0x4?_0x35f2aa[_0x36ab80]=_0x196ee8:_0x35f2aa[_0x36ab80]=_0x315e2a[_0x42c35b[_0x196ee8>>>0x18]]^_0xedddde[_0x42c35b[_0x196ee8>>>0x10&0xff]]^_0x5c8364[_0x42c35b[_0x196ee8>>>0x8&0xff]]^_0x2cce6d[_0x42c35b[_0x196ee8&0xff]];}}},'encryptBlock':function(_0x3b5649,_0x129d13){var _0xa09a2c=_0x51dab9;this[_0xa09a2c(0x38c)](_0x3b5649,_0x129d13,this[_0xa09a2c(0x405)],_0x1a1d35,_0x2ef1ae,_0x4801d3,_0x34dcc7,_0x42c35b);},'decryptBlock':function(_0x42f171,_0x288b62){var _0x318ebb=_0x51dab9,_0x4222a8=_0x42f171[_0x288b62+0x1];_0x42f171[_0x288b62+0x1]=_0x42f171[_0x288b62+0x3],_0x42f171[_0x288b62+0x3]=_0x4222a8,this[_0x318ebb(0x38c)](_0x42f171,_0x288b62,this['_invKeySchedule'],_0x315e2a,_0xedddde,_0x5c8364,_0x2cce6d,_0x41b8b0);var _0x4222a8=_0x42f171[_0x288b62+0x1];_0x42f171[_0x288b62+0x1]=_0x42f171[_0x288b62+0x3],_0x42f171[_0x288b62+0x3]=_0x4222a8;},'_doCryptBlock':function(_0x533ef0,_0x484858,_0x377f7b,_0x165541,_0x340c51,_0x570b9b,_0x5d385a,_0x31350c){var _0x275c21=_0x51dab9;for(var _0x1a7a48=this[_0x275c21(0x1bd)],_0x16f457=_0x533ef0[_0x484858]^_0x377f7b[0x0],_0x55588d=_0x533ef0[_0x484858+0x1]^_0x377f7b[0x1],_0x26fdbd=_0x533ef0[_0x484858+0x2]^_0x377f7b[0x2],_0x44d7c7=_0x533ef0[_0x484858+0x3]^_0x377f7b[0x3],_0x519e9b=0x4,_0x3499a3=0x1;_0x3499a3<_0x1a7a48;_0x3499a3++){var _0x44211e=_0x165541[_0x16f457>>>0x18]^_0x340c51[_0x55588d>>>0x10&0xff]^_0x570b9b[_0x26fdbd>>>0x8&0xff]^_0x5d385a[_0x44d7c7&0xff]^_0x377f7b[_0x519e9b++],_0x386090=_0x165541[_0x55588d>>>0x18]^_0x340c51[_0x26fdbd>>>0x10&0xff]^_0x570b9b[_0x44d7c7>>>0x8&0xff]^_0x5d385a[_0x16f457&0xff]^_0x377f7b[_0x519e9b++],_0x49e038=_0x165541[_0x26fdbd>>>0x18]^_0x340c51[_0x44d7c7>>>0x10&0xff]^_0x570b9b[_0x16f457>>>0x8&0xff]^_0x5d385a[_0x55588d&0xff]^_0x377f7b[_0x519e9b++],_0x4e191b=_0x165541[_0x44d7c7>>>0x18]^_0x340c51[_0x16f457>>>0x10&0xff]^_0x570b9b[_0x55588d>>>0x8&0xff]^_0x5d385a[_0x26fdbd&0xff]^_0x377f7b[_0x519e9b++];_0x16f457=_0x44211e,_0x55588d=_0x386090,_0x26fdbd=_0x49e038,_0x44d7c7=_0x4e191b;}var _0x44211e=(_0x31350c[_0x16f457>>>0x18]<<0x18|_0x31350c[_0x55588d>>>0x10&0xff]<<0x10|_0x31350c[_0x26fdbd>>>0x8&0xff]<<0x8|_0x31350c[_0x44d7c7&0xff])^_0x377f7b[_0x519e9b++],_0x386090=(_0x31350c[_0x55588d>>>0x18]<<0x18|_0x31350c[_0x26fdbd>>>0x10&0xff]<<0x10|_0x31350c[_0x44d7c7>>>0x8&0xff]<<0x8|_0x31350c[_0x16f457&0xff])^_0x377f7b[_0x519e9b++],_0x49e038=(_0x31350c[_0x26fdbd>>>0x18]<<0x18|_0x31350c[_0x44d7c7>>>0x10&0xff]<<0x10|_0x31350c[_0x16f457>>>0x8&0xff]<<0x8|_0x31350c[_0x55588d&0xff])^_0x377f7b[_0x519e9b++],_0x4e191b=(_0x31350c[_0x44d7c7>>>0x18]<<0x18|_0x31350c[_0x16f457>>>0x10&0xff]<<0x10|_0x31350c[_0x55588d>>>0x8&0xff]<<0x8|_0x31350c[_0x26fdbd&0xff])^_0x377f7b[_0x519e9b++];_0x533ef0[_0x484858]=_0x44211e,_0x533ef0[_0x484858+0x1]=_0x386090,_0x533ef0[_0x484858+0x2]=_0x49e038,_0x533ef0[_0x484858+0x3]=_0x4e191b;},'keySize':0x100/0x20});_0x4fc87f['AES']=_0x16ce65[_0x51dab9(0x43d)](_0x55a8d5);}()),_0x4a167f['AES'];}));}(Ve)),Ve[_0x330aa8(0x1df)];}var Wr=Gr();const Kr=ke(Wr);var Yr=wi();const oi=ke(Yr);var Xe={'exports':{}},qr=Xe[_0x24947f(0x1df)],ai;function zr(){return ai||(ai=0x1,function(_0x36a7dd,_0x4add2b){(function(_0x4209fc,_0x3d94f9){var _0x18e7a1=_0x2266;_0x36a7dd[_0x18e7a1(0x1df)]=_0x3d94f9(ne());}(qr,function(_0x33774b){var _0x36cdbd=_0x2266;return _0x33774b[_0x36cdbd(0x16b)]['Utf8'];}));}(Xe)),Xe['exports'];}var Jr=zr();const Xr=ke(Jr);var Ze={'exports':{}},Zr=Ze['exports'],ci;function Qr(){return ci||(ci=0x1,function(_0x58673c,_0x13c31c){(function(_0x345715,_0x30dc2c){var _0x1fad22=_0x2266;_0x58673c[_0x1fad22(0x1df)]=_0x30dc2c(ne());}(Zr,function(_0x432132){var _0x1ae2d1=_0x2266;return(function(){var _0x11d0b4=_0x2266;if(typeof ArrayBuffer==_0x11d0b4(0x2fe)){var _0x3304c9=_0x432132,_0x110134=_0x3304c9[_0x11d0b4(0x236)],_0x554a71=_0x110134[_0x11d0b4(0x177)],_0x12784d=_0x554a71[_0x11d0b4(0x337)],_0x3a379f=_0x554a71['init']=function(_0xb73685){var _0x4fd11c=_0x11d0b4;if(_0xb73685 instanceof ArrayBuffer&&(_0xb73685=new Uint8Array(_0xb73685)),(_0xb73685 instanceof Int8Array||typeof Uint8ClampedArray<'u'&&_0xb73685 instanceof Uint8ClampedArray||_0xb73685 instanceof Int16Array||_0xb73685 instanceof Uint16Array||_0xb73685 instanceof Int32Array||_0xb73685 instanceof Uint32Array||_0xb73685 instanceof Float32Array||_0xb73685 instanceof Float64Array)&&(_0xb73685=new Uint8Array(_0xb73685[_0x4fd11c(0x357)],_0xb73685[_0x4fd11c(0x239)],_0xb73685[_0x4fd11c(0x37f)])),_0xb73685 instanceof Uint8Array){for(var _0x2f32bb=_0xb73685[_0x4fd11c(0x37f)],_0x3cdb33=[],_0x157c9e=0x0;_0x157c9e<_0x2f32bb;_0x157c9e++)_0x3cdb33[_0x157c9e>>>0x2]|=_0xb73685[_0x157c9e]<<0x18-_0x157c9e%0x4*0x8;_0x12784d[_0x4fd11c(0x2ce)](this,_0x3cdb33,_0x2f32bb);}else _0x12784d[_0x4fd11c(0x443)](this,arguments);};_0x3a379f['prototype']=_0x554a71;}}()),_0x432132['lib'][_0x1ae2d1(0x177)];}));}(Ze)),Ze['exports'];}var es=Qr();const ts=ke(es);var Qe={'exports':{}},is=Qe[_0x24947f(0x1df)],hi;function ns(){var _0x535fae=_0x24947f;return hi||(hi=0x1,function(_0x45e3ac,_0xb05872){(function(_0x281a60,_0x17d08c,_0x2e6684){var _0x935b6f=_0x2266;_0x45e3ac[_0x935b6f(0x1df)]=_0x17d08c(ne(),Ai());}(is,function(_0x596a7d){var _0x21fd18=_0x2266;return _0x596a7d['pad']['NoPadding']={'pad':function(){},'unpad':function(){}},_0x596a7d[_0x21fd18(0x2de)][_0x21fd18(0x319)];}));}(Qe)),Qe[_0x535fae(0x1df)];}var rs=ns();const ss=ke(rs);function os(_0x3460db,_0x54dbc8){var _0xfe2b95=_0x24947f;const _0x366d47=_0x54dbc8-_0x3460db['length']%_0x54dbc8,_0x2a27c5=String[_0xfe2b95(0x259)](_0x366d47)['repeat'](_0x366d47);return _0x3460db+_0x2a27c5;}function as(_0x448ac5,_0x1a3378){var _0x42762b=_0x24947f;const _0x1db4cd=ts['random'](0x10),_0x2d6052=os(_0x448ac5,0x10),_0x2aa94c=Kr[_0x42762b(0x1bf)](Xr[_0x42762b(0x274)](_0x2d6052),oi[_0x42762b(0x274)](_0x1a3378),{'iv':_0x1db4cd,'padding':ss});return _0x1db4cd[_0x42762b(0x36e)](_0x2aa94c[_0x42762b(0x26e)])[_0x42762b(0x27f)](oi);}function cs(){var _0x12524a=_0x24947f;const _0x1cad18=_0x54ad49()['__Key__'];if(_0x1cad18){const _0x17c68a={'time':Math[_0x12524a(0x1e7)](Date[_0x12524a(0x2b0)]()/0x3e8),'domain':location['hostname']};return as(JSON[_0x12524a(0x1d0)](_0x17c68a),_0x1cad18);}}var hs=Object[_0x24947f(0x2ee)],_s=Object[_0x24947f(0x2d4)],ls=(_0x10f204,_0x113da2,_0x53726d,_0xcdde9c)=>{var _0x11db81=_0x24947f;for(var _0x521b95=_0xcdde9c>0x1?void 0x0:_0xcdde9c?_s(_0x113da2,_0x53726d):_0x113da2,_0x4aca36=_0x10f204[_0x11db81(0x334)]-0x1,_0x15f525;_0x4aca36>=0x0;_0x4aca36--)(_0x15f525=_0x10f204[_0x4aca36])&&(_0x521b95=(_0xcdde9c?_0x15f525(_0x113da2,_0x53726d,_0x521b95):_0x15f525(_0x521b95))||_0x521b95);return _0xcdde9c&&_0x521b95&&hs(_0x113da2,_0x53726d,_0x521b95),_0x521b95;},us=(_0x572dc8,_0x300c68)=>(_0x5749ac,_0x3fcd9b)=>_0x300c68(_0x5749ac,_0x3fcd9b,_0x572dc8);let ot=class{constructor(_0x360920){var _0x39793c=_0x24947f;this[_0x39793c(0x311)]=_0x360920,this['_initRequestHeader']();}['_initRequestHeader'](){var _0x56c54f=_0x24947f;this[_0x56c54f(0x311)][_0x56c54f(0x231)]({'interceptor':(_0x1245a7,_0x53c35e)=>{var _0x50ad2e=_0x56c54f;const _0xb26b62=_0x1245a7[_0x50ad2e(0x29f)],_0x41ab76=cs();return _0x41ab76&&_0xb26b62['set']('x-univer-host',_0x41ab76),_0x53c35e(_0x1245a7);}});}};ot=ls([us(0x0,_0x2c893e(_0x2ccc1a))],ot);var ds=Object[_0x24947f(0x2ee)],fs=Object[_0x24947f(0x2d4)],vs=(_0x325fee,_0x2135e3,_0x1aa872,_0x36c565)=>{var _0x4e300a=_0x24947f;for(var _0x3130e8=_0x36c565>0x1?void 0x0:_0x36c565?fs(_0x2135e3,_0x1aa872):_0x2135e3,_0x1f50d5=_0x325fee[_0x4e300a(0x334)]-0x1,_0x2c7379;_0x1f50d5>=0x0;_0x1f50d5--)(_0x2c7379=_0x325fee[_0x1f50d5])&&(_0x3130e8=(_0x36c565?_0x2c7379(_0x2135e3,_0x1aa872,_0x3130e8):_0x2c7379(_0x3130e8))||_0x3130e8);return _0x36c565&&_0x3130e8&&ds(_0x2135e3,_0x1aa872,_0x3130e8),_0x3130e8;},mt=(_0x1b353d,_0x3e76f5)=>(_0x53d927,_0x2bd3c5)=>_0x3e76f5(_0x53d927,_0x2bd3c5,_0x1b353d);let Ot=class extends _0xd51a1a{constructor(_0x26e99b,_0x3e2286,_0x3618d4){var _0x164c02=_0x24947f;super(),N(this,_0x164c02(0x2dd),new _0x4e33c6(null)),N(this,'unitInfo$',this[_0x164c02(0x2dd)]['asObservable']()),(this[_0x164c02(0x1d7)]=_0x26e99b,this[_0x164c02(0x2ed)]=_0x3e2286,this['_localCacheService']=_0x3618d4);}async['loadUnit'](_0x27d25e,_0x1ca435,_0x5a8010){var _0xc5a33=_0x24947f;this[_0xc5a33(0x2dd)]['next']({'unitId':_0x27d25e,'type':_0x1ca435,'subUnitId':_0x5a8010});let _0x233ec7=null;switch(_0x1ca435){case Q[_0xc5a33(0x308)]:{_0x233ec7=await this[_0xc5a33(0x416)](_0x27d25e);break;}case Q['UNIVER_DOC']:{_0x233ec7=await this[_0xc5a33(0x398)](_0x27d25e);break;}default:{this[_0xc5a33(0x1d7)][_0xc5a33(0x197)](_0xc5a33(0x2a9),_0xc5a33(0x1b1));break;}}return _0x233ec7;}async[_0x24947f(0x416)](_0x59acf0){var _0x243fc9=_0x24947f,_0x1f4beb;let _0x362a33=0x0;const _0x48bc8a=await((_0x1f4beb=this[_0x243fc9(0x25b)])==null?void 0x0:_0x1f4beb[_0x243fc9(0x238)](_0x59acf0));return _0x48bc8a&&(_0x48bc8a['awaitingChangeset']||_0x48bc8a[_0x243fc9(0x440)][_0x243fc9(0x334)]!==0x0)&&(_0x362a33=_0x48bc8a[_0x243fc9(0x248)]),_0x362a33===0x0&&this[_0x243fc9(0x1d7)]['debug']('[DataLoaderService]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x243fc9(0x2ed)]['loadSheet'](_0x59acf0,_0x362a33);}async[_0x24947f(0x398)](_0x452115){var _0x1077ac=_0x24947f,_0x2b7c99;let _0x5485f5=0x0;const _0x178edd=await((_0x2b7c99=this[_0x1077ac(0x25b)])==null?void 0x0:_0x2b7c99[_0x1077ac(0x238)](_0x452115));return _0x178edd&&(_0x178edd[_0x1077ac(0x2f5)]||_0x178edd[_0x1077ac(0x440)][_0x1077ac(0x334)]!==0x0)&&(_0x5485f5=_0x178edd[_0x1077ac(0x248)]),_0x5485f5===0x0&&this[_0x1077ac(0x1d7)][_0x1077ac(0x31e)](_0x1077ac(0x2a9),_0x1077ac(0x42d)),this['_snapshotService']['loadDoc'](_0x452115,_0x5485f5);}};Ot=vs([mt(0x0,_0xb67ae9),mt(0x1,_0x2c893e(_0x35ae70)),mt(0x2,_0x433af4(J))],Ot);var ps=Object[_0x24947f(0x2ee)],ms=Object[_0x24947f(0x2d4)],gs=(_0x86c93e,_0x4707b0,_0x459242,_0x53beb4)=>{var _0x1f1760=_0x24947f;for(var _0x2579af=_0x53beb4>0x1?void 0x0:_0x53beb4?ms(_0x4707b0,_0x459242):_0x4707b0,_0x1bc196=_0x86c93e[_0x1f1760(0x334)]-0x1,_0x2429b4;_0x1bc196>=0x0;_0x1bc196--)(_0x2429b4=_0x86c93e[_0x1bc196])&&(_0x2579af=(_0x53beb4?_0x2429b4(_0x4707b0,_0x459242,_0x2579af):_0x2429b4(_0x2579af))||_0x2579af);return _0x53beb4&&_0x2579af&&ps(_0x4707b0,_0x459242,_0x2579af),_0x2579af;},gt=(_0x477da8,_0x2824de)=>(_0x5c361f,_0x4157ae)=>_0x2824de(_0x5c361f,_0x4157ae,_0x477da8);const Ss=[_0x24947f(0x275),_0x24947f(0x194),_0x24947f(0x288),'image/gif',_0x24947f(0x3e7)],Es=0x5*0x400*0x400,Is='EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY',Ts=_0x24947f(0x2d2),Cs=_0x24947f(0x2d8),bs=_0x24947f(0x3b2);let yt=class{constructor(_0x58f6f4,_0x407ee2,_0x4bfd71){var _0x16379d=_0x24947f;N(this,_0x16379d(0x2f4),0x0),N(this,_0x16379d(0x25d),new _0xf92f12()),N(this,_0x16379d(0x163),this['_change$']),N(this,_0x16379d(0x36b),new Map()),(this[_0x16379d(0x311)]=_0x58f6f4,this[_0x16379d(0x1aa)]=_0x407ee2,this['_univerInstanceService']=_0x4bfd71);}[_0x24947f(0x3e2)](_0x19688c){var _0x19a997=_0x24947f;this[_0x19a997(0x2f4)]=_0x19688c,this[_0x19a997(0x25d)][_0x19a997(0x27e)](_0x19688c);}[_0x24947f(0x1e0)](_0x5da714,_0x5e8793){var _0x2ef3bb=_0x24947f;if(_0x5e8793===_0x3456fa[_0x2ef3bb(0x406)]){const _0x4ce534=new Image();return _0x4ce534[_0x2ef3bb(0x16c)]=_0x5da714,_0x4ce534;}return this[_0x2ef3bb(0x36b)][_0x2ef3bb(0x2f7)](_0x5da714);}[_0x24947f(0x360)](_0x4eeff3,_0x4f105b,_0x4bc2bd){var _0x245d80=_0x24947f;_0x4f105b===_0x3456fa[_0x245d80(0x406)]||_0x4bc2bd==null||this[_0x245d80(0x36b)][_0x245d80(0x423)](_0x4eeff3,_0x4bc2bd);}async[_0x24947f(0x331)](_0x2d035c){var _0x4c8980=_0x24947f;try{const _0x1e415f=this[_0x4c8980(0x208)](this[_0x4c8980(0x315)](),''+_0x2d035c),_0x3e1713=(await this[_0x4c8980(0x311)]['get'](_0x1e415f))['body'];if(_0x3e1713[_0x4c8980(0x197)]&&_0x3e1713[_0x4c8980(0x197)][_0x4c8980(0x23a)]===Ii['OK']){const _0x85ce73=new URL(_0x3e1713[_0x4c8980(0x165)],this[_0x4c8980(0x347)]())['toString']();return Promise['resolve'](_0x85ce73);}return Promise[_0x4c8980(0x159)](_0x3e1713['error']);}catch(_0x125326){return Promise[_0x4c8980(0x159)](_0x125326);}}async[_0x24947f(0x43f)](_0x389047){var _0x2d129d=_0x24947f;let _0x5eec6b='';if(!Ss[_0x2d129d(0x3b8)](_0x389047[_0x2d129d(0x1ec)]))return this[_0x2d129d(0x156)](),Promise[_0x2d129d(0x159)](new Error(_0x6d133d['ERROR_IMAGE_TYPE']));if(_0x389047[_0x2d129d(0x323)]>Es)return this[_0x2d129d(0x156)](),Promise['reject'](new Error(_0x6d133d[_0x2d129d(0x1e2)]));try{const _0x371937=new FormData();_0x371937['append'](_0x2d129d(0x2b5),_0x389047);const _0x1a2c59=this[_0x2d129d(0x3b3)][_0x2d129d(0x34f)](),_0x58ef2c=_0x1a2c59==null?void 0x0:_0x1a2c59[_0x2d129d(0x2cf)]();if(!_0x58ef2c)throw new Error(_0x2d129d(0x272));const _0x29e078=this[_0x2d129d(0x2e6)]()+_0x2d129d(0x1e3)+_0x389047[_0x2d129d(0x323)][_0x2d129d(0x27f)]()+'&source='+Ti['UnitEmbedded']+_0x2d129d(0x418)+encodeURIComponent(_0x58ef2c),_0x1a282c=await(await fetch(_0x29e078,{'method':_0x2d129d(0x3ab),'body':_0x371937}))[_0x2d129d(0x41a)]();if(typeof _0x1a282c[_0x2d129d(0x21d)]!=_0x2d129d(0x327))return this[_0x2d129d(0x156)](),Promise[_0x2d129d(0x159)](new Error(_0x6d133d['ERROR_IMAGE']));_0x5eec6b=_0x1a282c[_0x2d129d(0x21d)];}catch{return this[_0x2d129d(0x156)](),Promise['reject'](new Error(_0x6d133d['ERROR_IMAGE']));}return new Promise((_0xcabde8,_0x59b2ed)=>{var _0x43716e=_0x2d129d;const _0x171bbe=new FileReader();_0x171bbe[_0x43716e(0x294)](_0x389047),_0x171bbe['onload']=_0x3a490d=>{var _0x1b5aea=_0x43716e,_0x54fe7a;const _0x2a2f86=(_0x54fe7a=_0x3a490d[_0x1b5aea(0x39a)])==null?void 0x0:_0x54fe7a[_0x1b5aea(0x207)];if(_0x2a2f86==null){this['_decreaseWaiting'](),_0x59b2ed(new Error(_0x6d133d[_0x1b5aea(0x24c)]));return;}const _0x1f39e1=_0x5aefb7[_0x1b5aea(0x34e)](0x6);_0xcabde8({'imageId':_0x1f39e1,'imageSourceType':_0x3456fa[_0x1b5aea(0x326)],'source':_0x5eec6b,'base64Cache':_0x2a2f86,'status':_0x6d133d['SUCCUSS']}),this[_0x1b5aea(0x156)]();};});}[_0x24947f(0x2e6)](){var _0x1e231e=_0x24947f,_0x464fd9,_0x54041c;const _0x177ce0=this['_configService'][_0x1e231e(0x3b4)](Is),_0x2a8ce7=this[_0x1e231e(0x1aa)]['getConfig'](q);return(_0x54041c=(_0x464fd9=_0x2a8ce7==null?void 0x0:_0x2a8ce7[_0x1e231e(0x287)])!=null?_0x464fd9:_0x177ce0)!=null?_0x54041c:Ts;}[_0x24947f(0x315)](){var _0x418cae=_0x24947f,_0xbcebfe,_0x292a8f;const _0x1b5dd7=this[_0x418cae(0x1aa)]['getConfig'](Cs),_0x2fec1c=this['_configService']['getConfig'](q);return(_0x292a8f=(_0xbcebfe=_0x2fec1c==null?void 0x0:_0x2fec1c[_0x418cae(0x2fd)])!=null?_0xbcebfe:_0x1b5dd7)!=null?_0x292a8f:bs;}[_0x24947f(0x347)](){var _0xa00690=_0x24947f,_0x23d713;const _0x231450=this[_0xa00690(0x1aa)][_0xa00690(0x3b4)](q);return(_0x23d713=_0x231450==null?void 0x0:_0x231450[_0xa00690(0x33d)])!=null?_0x23d713:location['origin'];}[_0x24947f(0x208)](_0x17f24d,_0x3561c2){var _0x52d6b5=_0x24947f;return _0x17f24d[_0x52d6b5(0x41c)]('{fileID}',_0x3561c2);}[_0x24947f(0x156)](){var _0x3c7e0b=_0x24947f;this['_waitCount']-=0x1,this[_0x3c7e0b(0x25d)]['next'](this[_0x3c7e0b(0x2f4)]);}};yt=gs([gt(0x0,_0x2c893e(_0x2ccc1a)),gt(0x1,_0x14e586),gt(0x2,_0x2c893e(_0x1443af))],yt);var Rs=Object[_0x24947f(0x2ee)],Os=Object[_0x24947f(0x2d4)],ys=(_0x1701a6,_0x3654bf,_0x2a3626,_0x421af4)=>{for(var _0x4f6445=_0x421af4>0x1?void 0x0:_0x421af4?Os(_0x3654bf,_0x2a3626):_0x3654bf,_0x2de05e=_0x1701a6['length']-0x1,_0x2408bb;_0x2de05e>=0x0;_0x2de05e--)(_0x2408bb=_0x1701a6[_0x2de05e])&&(_0x4f6445=(_0x421af4?_0x2408bb(_0x3654bf,_0x2a3626,_0x4f6445):_0x2408bb(_0x4f6445))||_0x4f6445);return _0x421af4&&_0x4f6445&&Rs(_0x3654bf,_0x2a3626,_0x4f6445),_0x4f6445;},_i=(_0x2c4ce5,_0x3b6d3d)=>(_0x16a31,_0x4a07b0)=>_0x3b6d3d(_0x16a31,_0x4a07b0,_0x2c4ce5);const Ns='/universer-api/authz';let Nt=class{constructor(_0x12e0bc,_0x34771e){var _0x546466=_0x24947f;this['_configService']=_0x12e0bc,this[_0x546466(0x369)]=_0x34771e;}['_getAPIPrefixPath'](){var _0x3098f3=_0x24947f,_0x34fec6,_0x407488;const _0x30774a=this[_0x3098f3(0x1aa)][_0x3098f3(0x3b4)](Pi),_0x47aa2d=this[_0x3098f3(0x1aa)][_0x3098f3(0x3b4)](q);return(_0x407488=(_0x34fec6=_0x47aa2d==null?void 0x0:_0x47aa2d['authzUrl'])!=null?_0x34fec6:_0x30774a)!=null?_0x407488:Ns;}async['list'](_0x4a4a8e){var _0xff04c9=_0x24947f;const _0xf96e5=this[_0xff04c9(0x2e4)]()+'/collaborator';return{'list':[{'title':_0xff04c9(0x38a),'mentions':(await this[_0xff04c9(0x369)][_0xff04c9(0x2f7)](_0xf96e5,{'params':{'objectID':_0x4a4a8e[_0xff04c9(0x2fb)],'unitID':_0x4a4a8e[_0xff04c9(0x2fb)]}}))[_0xff04c9(0x445)]['collaborators'][_0xff04c9(0x181)](_0x9bd98f=>({'objectId':_0x9bd98f['id'],'name':_0x9bd98f[_0xff04c9(0x21e)][_0xff04c9(0x3c6)],'metadata':{'icon':_0x9bd98f[_0xff04c9(0x21e)]['avatar']},'label':_0x9bd98f[_0xff04c9(0x21e)][_0xff04c9(0x3c6)],'objectType':_0x5dc93c[_0xff04c9(0x349)]})),'metadata':{},'type':_0x5dc93c[_0xff04c9(0x349)]}]};}};Nt=ys([_i(0x0,_0x2c893e(_0x14e586)),_i(0x1,_0x2c893e(_0x2ccc1a))],Nt);var Ds=Object[_0x24947f(0x2ee)],Ps=Object[_0x24947f(0x2d4)],ws=(_0x165d1c,_0x5cf0c1,_0x205f31,_0x481c05)=>{var _0x55e076=_0x24947f;for(var _0x481ff9=_0x481c05>0x1?void 0x0:_0x481c05?Ps(_0x5cf0c1,_0x205f31):_0x5cf0c1,_0x1711df=_0x165d1c[_0x55e076(0x334)]-0x1,_0x481dba;_0x1711df>=0x0;_0x1711df--)(_0x481dba=_0x165d1c[_0x1711df])&&(_0x481ff9=(_0x481c05?_0x481dba(_0x5cf0c1,_0x205f31,_0x481ff9):_0x481dba(_0x481ff9))||_0x481ff9);return _0x481c05&&_0x481ff9&&Ds(_0x5cf0c1,_0x205f31,_0x481ff9),_0x481ff9;},Se=(_0x14568c,_0x16972e)=>(_0xc186f9,_0x50445d)=>_0x16972e(_0xc186f9,_0x50445d,_0x14568c);let at=class extends _0xd51a1a{constructor(_0x1b6a76,_0x55fdad,_0x253063,_0x5f2d68,_0x414433,_0x27b01a,_0x1028e6){var _0x193318=_0x24947f;super(),this[_0x193318(0x2ac)]=_0x1b6a76,this[_0x193318(0x3b3)]=_0x55fdad,this[_0x193318(0x425)]=_0x253063,this['_collaborationSessionService']=_0x5f2d68,this['_collaborationUIEventService']=_0x414433,this[_0x193318(0x420)]=_0x27b01a,this[_0x193318(0x404)]=_0x1028e6,this[_0x193318(0x3d0)](),this['_initCloseConn']();}[_0x24947f(0x169)](){var _0x29af74=_0x24947f;const _0x4cabb3=async _0x4a32d5=>{var _0x21bf16=_0x2266;(await this[_0x21bf16(0x34c)][_0x21bf16(0x23c)](_0x4a32d5))[_0x21bf16(0x340)][_0x21bf16(0x342)](_0x435be6(_0x1bbac3=>_0x1bbac3[_0x21bf16(0x298)]===_0x5b603b[_0x21bf16(0x1c7)]),_0x18dbba(this['dispose$']))[_0x21bf16(0x30e)](_0x5c311b=>{var _0x54c7c4=_0x21bf16;const _0x5771d4=_0x5c311b,{reason:_0x1305d5}=_0x5771d4[_0x54c7c4(0x3a4)];this[_0x54c7c4(0x193)]['emitEvent']({'id':se[_0x54c7c4(0x33c)],'data':_0x1305d5}),this[_0x54c7c4(0x425)][_0x54c7c4(0x2a4)](new _0x5ec447(_0x4a32d5)['id'],!0x1),this['_collaborationSessionService'][_0x54c7c4(0x1d5)](_0x4a32d5);});};_0x14b0b2(this[_0x29af74(0x3b3)]['getTypeOfUnitAdded$'](_0x5289d3[_0x29af74(0x308)]),this[_0x29af74(0x3b3)]['getTypeOfUnitAdded$'](_0x5289d3[_0x29af74(0x313)]))['pipe'](_0x5e6a8b(_0xbb2a3a=>_0xbb2a3a[_0x29af74(0x2cf)]()),_0x435be6(_0x3202be=>!_0x27d82c(_0x3202be)),_0x18dbba(this[_0x29af74(0x30b)]))[_0x29af74(0x30e)](_0x132cd6=>{_0x4cabb3(_0x132cd6);});}[_0x24947f(0x3d0)](){var _0x6ad8d1=_0x24947f;const _0x56d995=async _0x296ea1=>{var _0x3fd870=_0x2266;const _0x2743c7=await this[_0x3fd870(0x34c)][_0x3fd870(0x23c)](_0x296ea1),_0x7d6ee5=this[_0x3fd870(0x2ac)][_0x3fd870(0x2f7)](_0x397b93);_0x2743c7['event$'][_0x3fd870(0x342)](_0x435be6(_0xff1fe6=>_0xff1fe6[_0x3fd870(0x298)]===_0x5b603b['UPDATE_PERMISSION_OBJ']),_0x18dbba(this[_0x3fd870(0x30b)]))[_0x3fd870(0x30e)](_0x15322c=>{var _0x2ea1c0=_0x3fd870;const _0xb6918e=_0x15322c,{objectId:_0x2ae7c8}=_0xb6918e[_0x2ea1c0(0x3a4)];_0x2ae7c8===_0x296ea1?_0x7d6ee5[_0x2ea1c0(0x303)](_0x296ea1):_0x7d6ee5[_0x2ea1c0(0x2e7)](_0x296ea1,_0x2ae7c8);});};_0x14b0b2(this[_0x6ad8d1(0x3b3)][_0x6ad8d1(0x245)](_0x5289d3[_0x6ad8d1(0x308)]),this[_0x6ad8d1(0x3b3)]['getTypeOfUnitAdded$'](_0x5289d3['UNIVER_DOC']))[_0x6ad8d1(0x342)](_0x5e6a8b(_0x3de9c9=>_0x3de9c9[_0x6ad8d1(0x2cf)]()),_0x435be6(_0x5d4526=>!_0x27d82c(_0x5d4526)),_0x18dbba(this['dispose$']))[_0x6ad8d1(0x30e)](_0x581319=>{_0x56d995(_0x581319);});}};at=ws([Se(0x0,_0x2c893e(_0x47c619)),Se(0x1,_0x1443af),Se(0x2,_0x2ee679),Se(0x3,_0x2c893e(Le)),Se(0x4,_0x2c893e(pe)),Se(0x5,_0x353692),Se(0x6,_0x6cc440)],at);var Us=Object[_0x24947f(0x2ee)],As=Object[_0x24947f(0x2d4)],xs=(_0x312f89,_0x1791ae,_0x1ccd7b,_0x18d013)=>{var _0x3024bb=_0x24947f;for(var _0x901796=_0x18d013>0x1?void 0x0:_0x18d013?As(_0x1791ae,_0x1ccd7b):_0x1791ae,_0x12e362=_0x312f89[_0x3024bb(0x334)]-0x1,_0x5d6b52;_0x12e362>=0x0;_0x12e362--)(_0x5d6b52=_0x312f89[_0x12e362])&&(_0x901796=(_0x18d013?_0x5d6b52(_0x1791ae,_0x1ccd7b,_0x901796):_0x5d6b52(_0x901796))||_0x901796);return _0x18d013&&_0x901796&&Us(_0x1791ae,_0x1ccd7b,_0x901796),_0x901796;},li=(_0xa60b38,_0x5a3b3b)=>(_0x5c63a3,_0x3f2221)=>_0x5a3b3b(_0x5c63a3,_0x3f2221,_0xa60b38);let Dt=class{constructor(_0x184d94,_0x57ecbc){var _0x3243df=_0x24947f;this[_0x3243df(0x1aa)]=_0x184d94,this[_0x3243df(0x311)]=_0x57ecbc;}async[_0x24947f(0x172)](_0x21f4fd,_0x55905b){var _0x2e89d6=_0x24947f,_0x15e07c;const {unitID:_0x458573,type:_0x8f48c4,revision:_0x2a08cf=0x0}=_0x55905b,_0x1e03be=this[_0x2e89d6(0x1ae)]()+'/'+_0x8f48c4+'/unit/'+_0x458573+'/rev/'+_0x2a08cf,_0x1e110c=(await this[_0x2e89d6(0x311)][_0x2e89d6(0x2f7)](_0x1e03be))[_0x2e89d6(0x445)],_0x41433c=(_0x15e07c=_0x1e110c[_0x2e89d6(0x264)])==null?void 0x0:_0x15e07c[_0x2e89d6(0x3a8)];if(_0x41433c){const _0x42a756=_0x41433c==null?void 0x0:_0x41433c[_0x2e89d6(0x166)],_0x45b2ba=_0x663c9c[_0x2e89d6(0x289)](_0x2264c9(_0x42a756));_0x41433c[_0x2e89d6(0x166)]=_0x45b2ba,Object[_0x2e89d6(0x2c9)](_0x41433c[_0x2e89d6(0x1a1)])['forEach'](([,_0x309bed])=>{var _0x143ac4=_0x2e89d6;const _0xadb346=_0x309bed[_0x143ac4(0x166)],_0x44f412=_0x663c9c[_0x143ac4(0x289)](_0x2264c9(_0xadb346));_0x309bed[_0x143ac4(0x166)]=_0x44f412;});}return _0x1e110c;}async[_0x24947f(0x3ee)](_0x34cc52,_0x5e3109){var _0x4bf46f=_0x24947f;const {unitID:_0x1f6719,type:_0x47fbf7,blockID:_0x13821e}=_0x5e3109,_0x26dfd3=this['_getAPIPrefix']()+'/'+_0x47fbf7+_0x4bf46f(0x3e1)+_0x1f6719+_0x4bf46f(0x204)+_0x13821e;return(await this[_0x4bf46f(0x311)][_0x4bf46f(0x2f7)](_0x26dfd3))['body'];}async['getDeserializedSheetBlock'](_0x1dbb88,_0x38abee){var _0x576147=_0x24947f;const {unitID:_0x2b7f36,type:_0x2865b0,blockID:_0x287e67}=_0x38abee,_0x55f9ed=this[_0x576147(0x23b)]()+'/block/'+_0x2865b0+_0x576147(0x3e1)+_0x2b7f36+_0x576147(0x204)+_0x287e67;return(await this[_0x576147(0x311)][_0x576147(0x2f7)](_0x55f9ed))['body'];}async['fetchMissingChangesets'](_0x38d6db,_0x342bd3){var _0x20c84c=_0x24947f;const {unitID:_0x25d051,type:_0x55f678,from:_0x24f44c,to:_0x4bf083}=_0x342bd3,_0x4d525b=this[_0x20c84c(0x23b)]()+'/'+_0x55f678+'/unit/'+_0x25d051+'/fetchmissing?from='+_0x24f44c+_0x20c84c(0x18b)+_0x4bf083;return(await this['_httpService']['get'](_0x4d525b))[_0x20c84c(0x445)];}['getSnapshotAPIPath'](){var _0x40ce63;return(_0x40ce63=this['_configService']['getConfig'](Tn))!=null?_0x40ce63:this['_getAPIPrefix']();}[_0x24947f(0x23b)](){var _0x565642=_0x24947f,_0x524348,_0x4ba5ed;const _0x21d7f8=this[_0x565642(0x1aa)][_0x565642(0x3b4)](En),_0x56dad1=this[_0x565642(0x1aa)]['getConfig'](q);return(_0x4ba5ed=(_0x524348=_0x56dad1==null?void 0x0:_0x56dad1[_0x565642(0x35c)])!=null?_0x524348:_0x21d7f8)!=null?_0x4ba5ed:In;}async[_0x24947f(0x292)](_0x260d0a,_0x43f50e){var _0x1e5a15=_0x24947f;const _0x1cdfb4=_0x1e5a15(0x191)+_0x43f50e[_0x1e5a15(0x1ec)]+_0x1e5a15(0x3e1)+_0x43f50e[_0x1e5a15(0x3c4)]+_0x1e5a15(0x2a1);return(await this[_0x1e5a15(0x311)]['get'](_0x1cdfb4,{'params':{'resourceId':JSON[_0x1e5a15(0x1d0)](_0x43f50e[_0x1e5a15(0x261)])}}))[_0x1e5a15(0x445)];}[_0x24947f(0x3cc)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['saveSheetBlock'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x24947f(0x30f)](){var _0x4cddfc=_0x24947f;throw new Error(_0x4cddfc(0x3ec));}['copyFileMeta'](){var _0x34ae64=_0x24947f;throw new Error(_0x34ae64(0x3ec));}[_0x24947f(0x25f)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};Dt=xs([li(0x0,_0x14e586),li(0x1,_0x2c893e(_0x2ccc1a))],Dt);var Ls=Object[_0x24947f(0x2ee)],Ms=Object[_0x24947f(0x2d4)],$s=(_0x10f2f3,_0x4d2896,_0x54d27d,_0x3a9f25)=>{var _0x413d39=_0x24947f;for(var _0x579531=_0x3a9f25>0x1?void 0x0:_0x3a9f25?Ms(_0x4d2896,_0x54d27d):_0x4d2896,_0x57d648=_0x10f2f3[_0x413d39(0x334)]-0x1,_0x258e45;_0x57d648>=0x0;_0x57d648--)(_0x258e45=_0x10f2f3[_0x57d648])&&(_0x579531=(_0x3a9f25?_0x258e45(_0x4d2896,_0x54d27d,_0x579531):_0x258e45(_0x579531))||_0x579531);return _0x3a9f25&&_0x579531&&Ls(_0x4d2896,_0x54d27d,_0x579531),_0x579531;},Ae=(_0x53fed2,_0x8d2582)=>(_0x32bbfa,_0x2dbf3e)=>_0x8d2582(_0x32bbfa,_0x2dbf3e,_0x53fed2);let Pt=class extends _0x3f3940{constructor(_0x57ac02,_0x222e36,_0x2f35bb,_0x16e4c6,_0x69ac86){var _0x32343c=_0x24947f;super(_0x57ac02,_0x222e36,_0x2f35bb),this[_0x32343c(0x3ac)]=_0x16e4c6,this[_0x32343c(0x1d7)]=_0x69ac86;}[_0x24947f(0x15b)](_0x13752d,_0x26fd26){var _0x1155f6=_0x24947f;const _0x2ac21d=this['_getUndoStack'](_0x13752d);if(_0x2ac21d)try{const _0x329edd=this['_transformStack'](_0x2ac21d,_0x26fd26);this[_0x1155f6(0x1fb)](_0x13752d,_0x329edd);}catch(_0x32864a){this[_0x1155f6(0x1d7)][_0x1155f6(0x197)](_0x1155f6(0x27a),_0x32864a),this[_0x1155f6(0x1f4)](_0x13752d);}const _0x549f8d=this[_0x1155f6(0x392)](_0x13752d);if(_0x549f8d)try{const _0x5976ad=this['_transformStack'](_0x549f8d,_0x26fd26);this['_substituteRedoStack'](_0x13752d,_0x5976ad);}catch(_0x2a3b0e){this[_0x1155f6(0x1d7)]['error'](_0x2a3b0e),this[_0x1155f6(0x1f6)](_0x13752d);}}['_clearUndo'](_0x274e47){var _0x34b40b=_0x24947f;const _0x311dc9=this[_0x34b40b(0x227)](_0x274e47);_0x311dc9&&(_0x311dc9[_0x34b40b(0x334)]=0x0,this[_0x34b40b(0x2eb)]());}[_0x24947f(0x1f6)](_0x325259){var _0x5b7257=_0x24947f;const _0x549604=this[_0x5b7257(0x392)](_0x325259);_0x549604&&(_0x549604[_0x5b7257(0x334)]=0x0,this['_updateStatus']());}[_0x24947f(0x1fb)](_0xa0bc81,_0xbeb39b){var _0x4c144f=_0x24947f;this[_0x4c144f(0x384)][_0x4c144f(0x423)](_0xa0bc81,_0xbeb39b),this[_0x4c144f(0x2eb)]();}[_0x24947f(0x1a6)](_0x24003a,_0x2bb2a0){var _0x19536b=_0x24947f;this['_redoStacks'][_0x19536b(0x423)](_0x24003a,_0x2bb2a0),this[_0x19536b(0x2eb)]();}['_transformStack'](_0x5e2ac4,_0x43ab57){var _0x2774db=_0x24947f;const _0x37c133=[];let _0x51c0a7=_0x43ab57,_0x55f394=_0x43ab57;for(let _0x1d74ca=_0x5e2ac4[_0x2774db(0x334)]-0x1;_0x1d74ca>=0x0;_0x1d74ca--){const {unitID:_0x18e494,undoMutations:_0xcf6df4,redoMutations:_0x42e1f9}=_0x5e2ac4[_0x1d74ca],_0x540f61=this[_0x2774db(0x3ac)][_0x2774db(0x40e)](_0x51c0a7,_0xcf6df4),_0x201e8a=this[_0x2774db(0x3ac)][_0x2774db(0x40e)](_0x55f394,_0x42e1f9);if(_0x732167(_0x540f61)||_0x732167(_0x201e8a)){this['_logService'][_0x2774db(0x197)](_0x2774db(0x27a),_0x2774db(0x300),_0x540f61,_0x201e8a);break;}_0x51c0a7=_0x540f61[_0x2774db(0x381)],_0x55f394=_0x201e8a[_0x2774db(0x381)],_0x37c133[_0x2774db(0x32c)]({'unitID':_0x18e494,'undoMutations':_0x540f61[_0x2774db(0x377)],'redoMutations':_0x201e8a[_0x2774db(0x377)]});}return _0x37c133['reverse']();}};Pt=$s([Ae(0x0,_0x1443af),Ae(0x1,_0xb31905),Ae(0x2,_0x41374f),Ae(0x3,_0x303fbe),Ae(0x4,_0xb67ae9)],Pt);var xi=Object[_0x24947f(0x2ee)],Hs=Object[_0x24947f(0x2d4)],ks=(_0xbda1ed,_0x3c7fa3,_0xb8004a)=>_0x3c7fa3 in _0xbda1ed?xi(_0xbda1ed,_0x3c7fa3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xb8004a}):_0xbda1ed[_0x3c7fa3]=_0xb8004a,js=(_0x28cad5,_0x27d2ce,_0x16c4c7,_0x2e806c)=>{var _0x41b6f7=_0x24947f;for(var _0x56e8c5=_0x2e806c>0x1?void 0x0:_0x2e806c?Hs(_0x27d2ce,_0x16c4c7):_0x27d2ce,_0x34f2c4=_0x28cad5[_0x41b6f7(0x334)]-0x1,_0xe14473;_0x34f2c4>=0x0;_0x34f2c4--)(_0xe14473=_0x28cad5[_0x34f2c4])&&(_0x56e8c5=(_0x2e806c?_0xe14473(_0x27d2ce,_0x16c4c7,_0x56e8c5):_0xe14473(_0x56e8c5))||_0x56e8c5);return _0x2e806c&&_0x56e8c5&&xi(_0x27d2ce,_0x16c4c7,_0x56e8c5),_0x56e8c5;},St=(_0x7baf1,_0xcb46d1)=>(_0x5a0616,_0x1b5eb2)=>_0xcb46d1(_0x5a0616,_0x1b5eb2,_0x7baf1),Bs=(_0x4c13b5,_0x4f9e06,_0x7c186)=>ks(_0x4c13b5,_0x4f9e06+'',_0x7c186);const Fs=_0x24947f(0x1c8);let wt=class extends _0x52c535{constructor(_0x4f9e14=Wt,_0x2f30c3,_0x477c5d,_0x1c4eba){var _0x108532=_0x24947f;super(),this[_0x108532(0x3fe)]=_0x4f9e14,this[_0x108532(0x1d7)]=_0x2f30c3,this[_0x108532(0x2ac)]=_0x477c5d,this[_0x108532(0x1aa)]=_0x1c4eba;const {..._0x48e44e}=_0x267ba1({},Wt,this[_0x108532(0x3fe)]);this[_0x108532(0x1aa)][_0x108532(0x3a2)](q,_0x48e44e);}[_0x24947f(0x2c4)](){var _0x578633=_0x24947f;this[_0x578633(0x2a8)](),this[_0x578633(0x2bc)]();}['_registerDependencies'](){var _0x4d0658=_0x24947f,_0x440527,_0x147654,_0x1fd05b,_0x2fbe49;this[_0x4d0658(0x2ac)][_0x4d0658(0x28a)](_0x6cc440)&&this[_0x4d0658(0x1d7)][_0x4d0658(0x197)](_0x4d0658(0x1c1),_0x4d0658(0x41f));const _0x84de6f=_0xe2a3a9([[_0x6cc440,{'useClass':Pt}],[Le],[xe],[it],[st],[ot],[bi],[at],[pe],[Ot],[Ci,{'useClass':(_0x147654=(_0x440527=this[_0x4d0658(0x3fe)])==null?void 0x0:_0x440527['socketService'])!=null?_0x147654:Et}],[_0x2013f0,{'useClass':Dt}],[_0x353692,{'useClass':Rt}],[_0x599b72,{'useClass':yt}],[_0x5a36b0,{'useClass':Nt}],[rt],[bt]],(_0x1fd05b=this['_config'])==null?void 0x0:_0x1fd05b['override']);if(!((_0x2fbe49=this['_config'])!=null&&_0x2fbe49['enableSingleActiveInstanceLock'])){const _0x4869df=_0x84de6f['findIndex'](([_0x4ea837])=>_0x4ea837===ht);_0x4869df!==-0x1&&_0x84de6f['splice'](_0x4869df,0x1);}_0x365908(this['_injector'],_0x84de6f);}[_0x24947f(0x2bc)](){var _0x504090=_0x24947f,_0x21bff4,_0x3ff49d,_0x23ab8a;this[_0x504090(0x2ac)][_0x504090(0x2f7)](_0x2ccc1a)[_0x504090(0x231)]({'priority':0x14,'interceptor':_0x95300f({'maxParallel':0x6})}),(_0x21bff4=this[_0x504090(0x3fe)])!=null&&_0x21bff4['enableOfflineEditing']||(_0x3ff49d=this[_0x504090(0x2ac)][_0x504090(0x2f7)](J,_0x2d5d77[_0x504090(0x285)]))==null||_0x3ff49d[_0x504090(0x1cb)](),(_0x23ab8a=this[_0x504090(0x3fe)])!=null&&_0x23ab8a['enableAuthServer']&&_0x571d78(this[_0x504090(0x2ac)],[[st]]),_0x571d78(this[_0x504090(0x2ac)],[[ot],[rt],[at]]);}};Bs(wt,_0x24947f(0x279),Fs),wt=js([_0x1a63b7(_0x42c108,_0x3d3f1a,_0x227a87),St(0x1,_0xb67ae9),St(0x2,_0x2c893e(_0x47c619)),St(0x3,_0x14e586)],wt);export{Pi as AUTHZ_URL_KEY,Rt as AuthzIoHttpService,ue as AwaitingState,ae as AwaitingWithPendingState,q as COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,Un as COLLAB_SUBMIT_CHANGESET_URL_KEY,bn 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,bi as CommentService,de as ConflictState,Rn 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,Ri as UnitStatus,wt as UniverCollaborationClientPlugin,$n as deserializeToCombResponse,so as getLocalCacheKey,Hn as serializeCombRequest};
1
+ var _0x4eebac=_0x5570;(function(_0x86bd3c,_0x373d7d){var _0x48743d=_0x5570,_0x1f742e=_0x86bd3c();while(!![]){try{var _0x253dc2=-parseInt(_0x48743d(0x20e))/0x1+-parseInt(_0x48743d(0x14f))/0x2*(-parseInt(_0x48743d(0x388))/0x3)+-parseInt(_0x48743d(0x34a))/0x4*(-parseInt(_0x48743d(0x372))/0x5)+-parseInt(_0x48743d(0x2a6))/0x6*(parseInt(_0x48743d(0x278))/0x7)+parseInt(_0x48743d(0x369))/0x8+-parseInt(_0x48743d(0x19d))/0x9*(-parseInt(_0x48743d(0x146))/0xa)+-parseInt(_0x48743d(0x18a))/0xb*(parseInt(_0x48743d(0x381))/0xc);if(_0x253dc2===_0x373d7d)break;else _0x1f742e['push'](_0x1f742e['shift']());}catch(_0x4722be){_0x1f742e['push'](_0x1f742e['shift']());}}}(_0x2476,0x4feac));var __defProp=Object[_0x4eebac(0x18f)],__defNormalProp=(_0x546ec6,_0x58f7cf,_0x18136e)=>_0x58f7cf in _0x546ec6?__defProp(_0x546ec6,_0x58f7cf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x18136e}):_0x546ec6[_0x58f7cf]=_0x18136e,__name=(_0x492383,_0x23273a)=>__defProp(_0x492383,'name',{'value':_0x23273a,'configurable':!0x0}),__publicField=(_0x29a2ed,_0xd9abd8,_0x18a3de)=>__defNormalProp(_0x29a2ed,typeof _0xd9abd8!=_0x4eebac(0x3a6)?_0xd9abd8+'':_0xd9abd8,_0x18a3de);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 _0x3db844,mergeOverrideWithDependencies,IMentionIOService,registerDependencies,Quantity,touchDependencies}from'@univerjs/core';import{Subject,merge,of,BehaviorSubject,takeUntil,ReplaySubject,take as _0x3e406a,map as _0x274555,shareReplay,firstValueFrom,concatMap}from'rxjs';import{map,take,filter,delay,takeUntil as _0x42afd6}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=_0x4eebac(0x3d6),DEFAULT_SNAPSHOT_SERVER_URL=_0x4eebac(0x346),SNAPSHOT_URL_KEY=_0x4eebac(0x257),SEND_CHANGESET_TIMEOUT_KEY=_0x4eebac(0x3d4),DEFAULT_SEND_CHANGESET_TIMEOUT=0x7d0,COLLAB_WEB_SOCKET_URL_KEY=_0x4eebac(0x111),DEFAULT_COLLAB_WEB_SOCKET_URL=_0x4eebac(0x181),DEFAULT_WS_SESSION_TICKET_URL=_0x4eebac(0x298),HEARTBEAT_INTERVAL_KEY='HEARTBEAT_INTERVAL',DEFAULT_HEARTBEAT_INTERVAL=0x7530,HEARTBEAT_TIMEOUT_KEY='HEARTBEAT_TIMEOUT',DEFAULT_HEARTBEAT_TIMEOUT=0x4e20,DEFAULT_RETRY_CONNECTING_INTERVAL=0x4e20,RETRY_CONNECTING_MAX_COUNT_KEY=_0x4eebac(0x37e),DEFAULT_RETRY_CONNECTING_MAX_COUNT=0x3,LOCAL_CACHE_INTERVAL_KEY='LOCAL_CACHE_INTERVAL',LOCAL_CACHE_INTERVAL=0x3e8,COLLAB_SUBMIT_CHANGESET_URL_KEY=_0x4eebac(0x39b),DEFAULT_COLLAB_SUBMIT_CHANGESET_URL=_0x4eebac(0x12a),LOGIN_URL_KEY='LOGIN_URL_KEY',DEFAULT_LOGIN_URL=_0x4eebac(0x3a0),REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY='REMOTE_UNISCRIPT_EXECUTION_ENDPOINT',DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT=_0x4eebac(0x269);var ErrorCode=(_0x465a7f=>(_0x465a7f[_0x465a7f[_0x4eebac(0x41e)]=0x0]=_0x4eebac(0x41e),_0x465a7f[_0x465a7f['OK']=0x1]='OK',_0x465a7f[_0x465a7f[_0x4eebac(0x164)]=0x2]=_0x4eebac(0x164),_0x465a7f[_0x465a7f[_0x4eebac(0x3fd)]=0x3]=_0x4eebac(0x3fd),_0x465a7f[_0x465a7f[_0x4eebac(0x1d8)]=0x4]=_0x4eebac(0x1d8),_0x465a7f[_0x465a7f[_0x4eebac(0x1ff)]=0x5]=_0x4eebac(0x1ff),_0x465a7f[_0x465a7f[_0x4eebac(0x342)]=0x6]='ALREADY_EXISTS',_0x465a7f[_0x465a7f['INVALID_ARGUMENT']=0x7]=_0x4eebac(0x400),_0x465a7f[_0x465a7f[_0x4eebac(0x3c5)]=0x8]='TOO_MANY_REQUESTS',_0x465a7f[_0x465a7f['COMPLETION_FINISHED']=0x9]=_0x4eebac(0x350),_0x465a7f[_0x465a7f[_0x4eebac(0x1da)]=0x1389]=_0x4eebac(0x1da),_0x465a7f[_0x465a7f[_0x4eebac(0x1de)]=0x1771]=_0x4eebac(0x1de),_0x465a7f[_0x465a7f['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x4eebac(0x409),_0x465a7f[_0x465a7f[_0x4eebac(0x162)]=0x1773]=_0x4eebac(0x162),_0x465a7f[_0x465a7f[_0x4eebac(0x3e8)]=0x1b59]=_0x4eebac(0x3e8),_0x465a7f[_0x465a7f[_0x4eebac(0x1dc)]=0x1b5a]=_0x4eebac(0x1dc),_0x465a7f[_0x465a7f[_0x4eebac(0xff)]=0x1b5b]=_0x4eebac(0xff),_0x465a7f[_0x465a7f['APPLY_PERMISSION_DENIED']=0x1b5c]='APPLY_PERMISSION_DENIED',_0x465a7f[_0x465a7f[_0x4eebac(0x29b)]=0x1b5d]=_0x4eebac(0x29b),_0x465a7f[_0x465a7f[_0x4eebac(0x27d)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x465a7f[_0x465a7f['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x4eebac(0x444),_0x465a7f[_0x465a7f[_0x4eebac(0x23c)]=0x232a]=_0x4eebac(0x23c),_0x465a7f[_0x465a7f[_0x4eebac(0x112)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x465a7f[_0x465a7f[_0x4eebac(0x11b)]=0x232c]=_0x4eebac(0x11b),_0x465a7f[_0x465a7f[_0x4eebac(0x172)]=0x232d]=_0x4eebac(0x172),_0x465a7f[_0x465a7f['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x4eebac(0x431),_0x465a7f[_0x465a7f[_0x4eebac(0x14b)]=0x2712]=_0x4eebac(0x14b),_0x465a7f[_0x465a7f[_0x4eebac(0x3be)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x465a7f[_0x465a7f[_0x4eebac(0x248)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x465a7f[_0x465a7f[_0x4eebac(0x208)]=0x2af9]=_0x4eebac(0x208),_0x465a7f[_0x465a7f[_0x4eebac(0x1fa)]=-0x1]='UNRECOGNIZED',_0x465a7f))(ErrorCode||{}),UniverType=(_0x2027eb=>(_0x2027eb[_0x2027eb[_0x4eebac(0x1a4)]=0x0]=_0x4eebac(0x1a4),_0x2027eb[_0x2027eb['UNIVER_DOC']=0x1]=_0x4eebac(0x420),_0x2027eb[_0x2027eb[_0x4eebac(0x435)]=0x2]='UNIVER_SHEET',_0x2027eb[_0x2027eb[_0x4eebac(0x32b)]=0x3]=_0x4eebac(0x32b),_0x2027eb[_0x2027eb[_0x4eebac(0x348)]=0x4]='UNIVER_PROJECT',_0x2027eb[_0x2027eb[_0x4eebac(0x1fa)]=-0x1]=_0x4eebac(0x1fa),_0x2027eb))(UniverType||{}),CombCmd=(_0x10078b=>(_0x10078b[_0x10078b['UNKNOWN_CMD']=0x0]=_0x4eebac(0x270),_0x10078b[_0x10078b['HELLO']=0x1]=_0x4eebac(0x11f),_0x10078b[_0x10078b[_0x4eebac(0x241)]=0x2]=_0x4eebac(0x241),_0x10078b[_0x10078b[_0x4eebac(0x316)]=0x3]='LEAVE',_0x10078b[_0x10078b[_0x4eebac(0x16a)]=0x4]=_0x4eebac(0x16a),_0x10078b[_0x10078b[_0x4eebac(0x2f2)]=0x5]=_0x4eebac(0x2f2),_0x10078b[_0x10078b[_0x4eebac(0x379)]=0x6]=_0x4eebac(0x379),_0x10078b[_0x10078b['UNRECOGNIZED']=-0x1]=_0x4eebac(0x1fa),_0x10078b))(CombCmd||{}),CmdRspCode=(_0x1afca5=>(_0x1afca5[_0x1afca5[_0x4eebac(0x302)]=0x0]=_0x4eebac(0x302),_0x1afca5[_0x1afca5['OK']=0x1]='OK',_0x1afca5[_0x1afca5['FAIL']=0x2]='FAIL',_0x1afca5[_0x1afca5[_0x4eebac(0x125)]=0x3e9]='JOIN_ROOM_FULL',_0x1afca5[_0x1afca5[_0x4eebac(0x399)]=0x3ea]=_0x4eebac(0x399),_0x1afca5[_0x1afca5[_0x4eebac(0x3e4)]=0x3eb]=_0x4eebac(0x3e4),_0x1afca5[_0x1afca5[_0x4eebac(0x15c)]=0x3ec]=_0x4eebac(0x15c),_0x1afca5[_0x1afca5['UNRECOGNIZED']=-0x1]=_0x4eebac(0x1fa),_0x1afca5))(CmdRspCode||{}),FileSource=(_0xe39469=>(_0xe39469[_0xe39469[_0x4eebac(0x2aa)]=0x0]=_0x4eebac(0x2aa),_0xe39469[_0xe39469[_0x4eebac(0x1bb)]=0x1]=_0x4eebac(0x1bb),_0xe39469[_0xe39469[_0x4eebac(0x3c2)]=0x2]='HttpExport',_0xe39469[_0xe39469['UnitEmbedded']=0x3]=_0x4eebac(0x286),_0xe39469[_0xe39469['UnitSnapshot']=0x4]=_0x4eebac(0x2dd),_0xe39469[_0xe39469[_0x4eebac(0x1fa)]=-0x1]=_0x4eebac(0x1fa),_0xe39469))(FileSource||{});const COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY=_0x4eebac(0x1a3),defaultPluginConfig={};var CollaborationUIEventId=(_0x2755b2=>(_0x2755b2[_0x4eebac(0x43b)]=_0x4eebac(0x43b),_0x2755b2[_0x4eebac(0x3fd)]=_0x4eebac(0x3fd),_0x2755b2[_0x4eebac(0x1d0)]=_0x4eebac(0x1d0),_0x2755b2[_0x4eebac(0x365)]=_0x4eebac(0x365),_0x2755b2['JOIN_ROOM_FAILED']=_0x4eebac(0x200),_0x2755b2[_0x4eebac(0x2c0)]=_0x4eebac(0x2c0),_0x2755b2['SOCKET_FAILED']=_0x4eebac(0x1a8),_0x2755b2[_0x4eebac(0x319)]=_0x4eebac(0x319),_0x2755b2))(CollaborationUIEventId||{});const _CollaborationUIEventService=class _CollaborationUIEventService{constructor(){var _0x2e39e7=_0x4eebac;__publicField(this,_0x2e39e7(0x1f9),new Subject()),__publicField(this,_0x2e39e7(0x368),this['_event$'][_0x2e39e7(0x39c)]());}[_0x4eebac(0x414)](_0x3d2b71){var _0x20e629=_0x4eebac;this[_0x20e629(0x1f9)][_0x20e629(0x225)](_0x3d2b71);}};__name(_CollaborationUIEventService,'CollaborationUIEventService');let CollaborationUIEventService=_CollaborationUIEventService;const INetworkConditionService=createIdentifier(_0x4eebac(0x1fc));function deserializeToCombResponse(_0x5559af){var _0x177db6=_0x4eebac,_0x392c13,_0x32119a,_0x36f0d2,_0x3a89ee,_0x41b197;const _0x539374=_0x5559af[_0x177db6(0x142)],_0x281878=JSON['parse'](_0x539374);switch(_0x281878[_0x177db6(0x3a4)]){case CombCmd[_0x177db6(0x2f2)]:case CombCmd[_0x177db6(0x11f)]:{const _0x376cf7=_0x281878['infoRsp'];return{..._0x281878,'data':_0x376cf7,'cmd':_0x281878[_0x177db6(0x3a4)]};}case CombCmd[_0x177db6(0x241)]:{const _0x1b8fa9=_0x281878['joinRsp'];return{..._0x281878,'data':_0x1b8fa9,'cmd':_0x281878[_0x177db6(0x3a4)]};}case CombCmd[_0x177db6(0x379)]:{const _0x4ef4aa=_0x281878['collaMsg'];switch(_0x4ef4aa[_0x177db6(0x315)]){case CollaborationEvent[_0x177db6(0x204)]:return{..._0x281878,'data':{..._0x4ef4aa,'data':(_0x392c13=_0x4ef4aa[_0x177db6(0x119)])==null?void 0x0:_0x392c13['cs']},'cmd':_0x281878[_0x177db6(0x3a4)]};case CollaborationEvent[_0x177db6(0x271)]:return{..._0x281878,'data':{..._0x4ef4aa,'data':(_0x32119a=_0x4ef4aa['csAckEvent'])==null?void 0x0:_0x32119a['cs']},'cmd':_0x281878[_0x177db6(0x3a4)]};case CollaborationEvent[_0x177db6(0x416)]:return{..._0x281878,'data':{..._0x4ef4aa,'data':(_0x36f0d2=_0x4ef4aa[_0x177db6(0x122)])==null?void 0x0:_0x36f0d2['cs']},'cmd':_0x281878[_0x177db6(0x3a4)]};case CollaborationEvent[_0x177db6(0x3f0)]:return{..._0x281878,'data':{..._0x4ef4aa,'data':(_0x3a89ee=_0x4ef4aa[_0x177db6(0x277)])==null?void 0x0:_0x3a89ee['cs']},'cmd':_0x281878[_0x177db6(0x3a4)]};case CollaborationEvent[_0x177db6(0x38f)]:return{..._0x281878,'data':{..._0x4ef4aa,'data':(_0x41b197=_0x4ef4aa[_0x177db6(0x31b)])==null?void 0x0:_0x41b197['cs']},'cmd':_0x281878['cmd']};case CollaborationEvent['UPDATE_CURSOR']:return{..._0x281878,'data':{..._0x4ef4aa,'data':_0x4ef4aa[_0x177db6(0x183)]},'cmd':_0x281878[_0x177db6(0x3a4)]};case CollaborationEvent['USERS_ENTER']:return{..._0x281878,'data':{..._0x4ef4aa,'data':_0x4ef4aa[_0x177db6(0x117)]},'cmd':_0x281878[_0x177db6(0x3a4)]};case CollaborationEvent['USERS_LEAVE']:return{..._0x281878,'data':{..._0x4ef4aa,'data':_0x4ef4aa[_0x177db6(0x2e2)]},'cmd':_0x281878[_0x177db6(0x3a4)]};case CollaborationEvent[_0x177db6(0x312)]:return{..._0x281878,'data':{..._0x4ef4aa,'data':_0x4ef4aa[_0x177db6(0x3bc)]},'cmd':_0x281878[_0x177db6(0x3a4)]};case CollaborationEvent[_0x177db6(0x441)]:case CollaborationEvent[_0x177db6(0x11e)]:return{..._0x281878,'data':{..._0x4ef4aa,'data':_0x4ef4aa[_0x177db6(0x43e)]},'cmd':_0x281878['cmd']};case CollaborationEvent[_0x177db6(0x327)]:return{..._0x281878,'data':{..._0x4ef4aa,'data':_0x4ef4aa[_0x177db6(0x3bc)]},'cmd':_0x281878['cmd']};case CollaborationEvent[_0x177db6(0x3a8)]:return{..._0x281878,'data':_0x4ef4aa,'cmd':_0x281878[_0x177db6(0x3a4)]};case CollaborationEvent[_0x177db6(0x26a)]:return{..._0x281878,'data':{..._0x4ef4aa,'data':_0x4ef4aa[_0x177db6(0x1aa)]},'cmd':_0x281878[_0x177db6(0x3a4)]};case CollaborationEvent['UPDATE_PERMISSION_OBJ']:return{..._0x281878,'data':{..._0x4ef4aa,'data':_0x4ef4aa[_0x177db6(0x173)]},'cmd':_0x281878[_0x177db6(0x3a4)]};case CollaborationEvent[_0x177db6(0x1a0)]:return{..._0x281878,'data':{..._0x4ef4aa,'data':_0x4ef4aa[_0x177db6(0x29a)]},'cmd':_0x281878[_0x177db6(0x3a4)]};case CollaborationEvent[_0x177db6(0x25c)]:return{..._0x281878,'data':{..._0x4ef4aa,'data':_0x4ef4aa[_0x177db6(0x247)]},'cmd':_0x281878[_0x177db6(0x3a4)]};default:return _0x281878;}}default:return _0x281878;}}__name(deserializeToCombResponse,_0x4eebac(0x2fe));function serializeCombRequest(_0x162fa6){var _0x5e726f=_0x4eebac;switch(_0x162fa6['cmd']){case CombCmd[_0x5e726f(0x2f2)]:case CombCmd[_0x5e726f(0x11f)]:return JSON[_0x5e726f(0x42b)]({'cmd':_0x162fa6[_0x5e726f(0x3a4)],'routeKey':_0x162fa6[_0x5e726f(0x194)]});case CombCmd[_0x5e726f(0x16a)]:{let _0x1e7ff2;switch(_0x162fa6[_0x5e726f(0x142)][_0x5e726f(0x315)]){case CollaborationEvent[_0x5e726f(0x234)]:{_0x1e7ff2={'eventID':CollaborationEvent['UPDATE_CURSOR'],'updateCursorEvent':_0x162fa6['data'][_0x5e726f(0x142)]};break;}case CollaborationEvent[_0x5e726f(0x374)]:{_0x1e7ff2={'eventID':CollaborationEvent[_0x5e726f(0x374)],'leaveEvent':_0x162fa6[_0x5e726f(0x142)][_0x5e726f(0x142)]};break;}case CollaborationEvent[_0x5e726f(0x35d)]:{_0x1e7ff2={'eventID':CollaborationEvent['USERS_ENTER'],'joinEvent':_0x162fa6[_0x5e726f(0x142)]['data']};break;}case CollaborationEvent[_0x5e726f(0x312)]:{_0x1e7ff2={'eventID':CollaborationEvent[_0x5e726f(0x312)],'liveShareNewHost':_0x162fa6[_0x5e726f(0x142)][_0x5e726f(0x142)]};break;}case CollaborationEvent[_0x5e726f(0x11e)]:{_0x1e7ff2={'eventID':CollaborationEvent[_0x5e726f(0x11e)],'liveShareOperation':_0x162fa6[_0x5e726f(0x142)][_0x5e726f(0x142)]};break;}case CollaborationEvent[_0x5e726f(0x327)]:{_0x1e7ff2={'eventID':CollaborationEvent[_0x5e726f(0x327)],'liveShareTerminate':_0x162fa6[_0x5e726f(0x142)][_0x5e726f(0x142)]};break;}case CollaborationEvent[_0x5e726f(0x377)]:{_0x1e7ff2={'eventID':CollaborationEvent['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x162fa6[_0x5e726f(0x142)]['data']};break;}case CollaborationEvent[_0x5e726f(0x441)]:{_0x1e7ff2={'eventID':CollaborationEvent[_0x5e726f(0x441)]};break;}default:_0x1e7ff2={'eventID':_0x162fa6['data']['eventID']};}return JSON[_0x5e726f(0x42b)]({'cmd':_0x162fa6['cmd'],'routeKey':_0x162fa6['routeKey'],'collaMsg':_0x1e7ff2});}case CombCmd['JOIN']:return JSON[_0x5e726f(0x42b)]({'cmd':_0x162fa6[_0x5e726f(0x3a4)],'routeKey':_0x162fa6[_0x5e726f(0x194)],'joinReq':_0x162fa6['data']});case CombCmd[_0x5e726f(0x316)]:return JSON[_0x5e726f(0x42b)]({'cmd':_0x162fa6['cmd'],'routeKey':_0x162fa6[_0x5e726f(0x194)],'leaveReq':_0x162fa6[_0x5e726f(0x142)]});default:throw new Error(_0x5e726f(0x2b8));}}__name(serializeCombRequest,'serializeCombRequest');var __defProp$i=Object[_0x4eebac(0x18f)],__getOwnPropDesc$i=Object[_0x4eebac(0x2a7)],__decorateClass$i=__name((_0x6fc6e0,_0x313856,_0xd946e0,_0x1771d6)=>{var _0x10c55d=_0x4eebac;for(var _0x4e4b49=_0x1771d6>0x1?void 0x0:_0x1771d6?__getOwnPropDesc$i(_0x313856,_0xd946e0):_0x313856,_0x14c846=_0x6fc6e0[_0x10c55d(0x25b)]-0x1,_0x418247;_0x14c846>=0x0;_0x14c846--)(_0x418247=_0x6fc6e0[_0x14c846])&&(_0x4e4b49=(_0x1771d6?_0x418247(_0x313856,_0xd946e0,_0x4e4b49):_0x418247(_0x4e4b49))||_0x4e4b49);return _0x1771d6&&_0x4e4b49&&__defProp$i(_0x313856,_0xd946e0,_0x4e4b49),_0x4e4b49;},'__decorateClass$i'),__decorateParam$i=__name((_0x2c860e,_0xe2f9)=>(_0x593bd3,_0x3d83e9)=>_0xe2f9(_0x593bd3,_0x3d83e9,_0x2c860e),_0x4eebac(0x14c));const ICollaborationSocketService=createIdentifier('univer-pro.collaboration-client-socket-service');function generateSubmitChangesPath(_0x13394d,_0x5b68f4,_0x9940f8){return _0x13394d+'/'+_0x5b68f4+'/unit/'+_0x9940f8+'/new_changes';}__name(generateSubmitChangesPath,_0x4eebac(0x1f3));var _a;let CollaborationSocketService=(_a=class extends Disposable{constructor(_0x19c230,_0x530d3a,_0x494ad2,_0x428dc7,_0x3e4888){var _0x39e104=_0x4eebac;super(),this[_0x39e104(0x2d3)]=_0x19c230,this[_0x39e104(0x3cb)]=_0x530d3a,this[_0x39e104(0x238)]=_0x494ad2,this[_0x39e104(0x23a)]=_0x428dc7,this[_0x39e104(0x2cf)]=_0x3e4888;}['createSocket'](_0x413c93){var _0x222511=_0x4eebac;const _0x11ca8e=this[_0x222511(0x2d3)]['get'](ISocketService);if(!_0x11ca8e)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!');const _0x534a91=_0x11ca8e[_0x222511(0x2f9)](_0x413c93);if(!_0x534a91)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x32dbea=new DisposableCollection(),_0x25813e=new Subject();_0x32dbea[_0x222511(0x21f)](_0x534a91[_0x222511(0x264)][_0x222511(0x127)](_0x2e8a65=>_0x25813e['next'](_0x2e8a65))),_0x32dbea[_0x222511(0x21f)](toDisposable(()=>_0x25813e[_0x222511(0x12d)]()));const _0x50b1e7=new Subject();_0x32dbea[_0x222511(0x21f)](_0x534a91['error$'][_0x222511(0x127)](_0x5089eb=>_0x50b1e7[_0x222511(0x225)](_0x5089eb))),_0x32dbea[_0x222511(0x21f)](toDisposable(()=>_0x50b1e7[_0x222511(0x12d)]()));const _0x5572e0=new Subject();_0x32dbea[_0x222511(0x21f)](_0x534a91['message$'][_0x222511(0x127)](_0x203946=>{var _0x59899d=_0x222511;const _0xbb93c7=deserializeToCombResponse(_0x203946);_0x5572e0[_0x59899d(0x225)](_0xbb93c7);})),_0x32dbea[_0x222511(0x21f)](toDisposable(()=>_0x5572e0[_0x222511(0x12d)]()));let _0x41e150;const _0x24c07d=__name(()=>{var _0x53dfd0=_0x222511;_0x50b1e7[_0x53dfd0(0x225)](new Event(_0x53dfd0(0x228))),_0x25813e[_0x53dfd0(0x225)](new CloseEvent(_0x53dfd0(0x228))),_0x41e150[_0x53dfd0(0x39d)]();},_0x222511(0x3eb));return _0x41e150={'memberID':'','close$':_0x25813e['asObservable'](),'error$':_0x50b1e7[_0x222511(0x39c)](),'open$':_0x534a91[_0x222511(0x311)],'message$':_0x5572e0[_0x222511(0x39c)](),'send':__name(_0x3d9f8a=>{var _0x5ba9f4=_0x222511;if(_0x3d9f8a['cmd']===CombCmd[_0x5ba9f4(0x16a)]){if(_0x3d9f8a[_0x5ba9f4(0x142)][_0x5ba9f4(0x315)]===CollaborationEvent[_0x5ba9f4(0x33e)]){this['_submitChangeset'](_0x41e150,_0x3d9f8a[_0x5ba9f4(0x142)])[_0x5ba9f4(0x2b9)](_0x519675=>{var _0x1a218c=_0x5ba9f4;this[_0x1a218c(0x23a)][_0x1a218c(0x154)](_0x519675),_0x24c07d();});return;}if(_0x3d9f8a['data'][_0x5ba9f4(0x315)]===CollaborationEvent['FETCH_MISSING']){const _0x278b64=_0x3d9f8a[_0x5ba9f4(0x142)];this['_fetchMissChangesets'](_0x278b64)['then'](_0x50664b=>{var _0x3a2177=_0x5ba9f4;_0x5572e0[_0x3a2177(0x225)]({'cmd':CombCmd[_0x3a2177(0x379)],'code':CmdRspCode['OK'],'routeKey':_0x278b64['data'][_0x3a2177(0x31d)],'routeType':'','data':{'eventID':CollaborationEvent['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x50664b}}});})['catch'](_0x183d9e=>{var _0x2fa284=_0x5ba9f4;this[_0x2fa284(0x23a)][_0x2fa284(0x154)](_0x183d9e),_0x24c07d();});return;}}_0x534a91[_0x5ba9f4(0x1cc)](serializeCombRequest(_0x3d9f8a));},_0x222511(0x1cc)),'close':__name(()=>{var _0x537432=_0x222511;_0x534a91[_0x537432(0x39d)](),_0x32dbea[_0x537432(0x273)]();},_0x222511(0x39d))},_0x41e150;}async[_0x4eebac(0x284)](_0x312739,_0x1f84ab){var _0x1a22c8=_0x4eebac,_0x293cc2,_0x1f9df6;const {unitType:_0xb8e204,unitID:_0x11ed13,changeset:_0x37f41b}=_0x1f84ab['data'],_0x4996fc={'unitID':_0x11ed13,'memberID':_0x312739[_0x1a22c8(0x2a5)],'type':_0xb8e204,'changeset':parseChangesetToProtocol(_0x37f41b)},_0x1c7434=this[_0x1a22c8(0x238)][_0x1a22c8(0x363)](COLLAB_SUBMIT_CHANGESET_URL_KEY),_0x52a7d6=this[_0x1a22c8(0x238)][_0x1a22c8(0x363)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY),_0x1b0a9c=generateSubmitChangesPath((_0x1f9df6=(_0x293cc2=_0x52a7d6==null?void 0x0:_0x52a7d6[_0x1a22c8(0x407)])!=null?_0x293cc2:_0x1c7434)!=null?_0x1f9df6:DEFAULT_COLLAB_SUBMIT_CHANGESET_URL,_0xb8e204,_0x11ed13);try{await this[_0x1a22c8(0x3cb)][_0x1a22c8(0x370)](_0x1b0a9c,{'body':_0x4996fc});}catch(_0xbad15b){throw this[_0x1a22c8(0x23a)][_0x1a22c8(0x154)](_0x1a22c8(0x235),'submit\x20changeset\x20error!'),_0xbad15b;}}async[_0x4eebac(0x2ac)](_0x2ce09a){var _0x63ffea=_0x4eebac;const {unitID:_0x54b592,from:_0x54eee8,to:_0x13cbe4,unitType:_0x365d8f}=_0x2ce09a['data'];return(await this[_0x63ffea(0x2cf)][_0x63ffea(0x30f)]({'metadata':void 0x0},{'unitID':_0x54b592,'type':_0x365d8f,'from':_0x54eee8,'to':_0x13cbe4}))[_0x63ffea(0x1e6)];}},__name(_a,_0x4eebac(0x20d)),_a);CollaborationSocketService=__decorateClass$i([__decorateParam$i(0x0,Inject(Injector)),__decorateParam$i(0x1,Inject(HTTPService)),__decorateParam$i(0x2,IConfigService),__decorateParam$i(0x3,ILogService),__decorateParam$i(0x4,ISnapshotServerService)],CollaborationSocketService);const TELEMETRY_COLLABORATION_NEW_CHANGESET='collaboration_new_changeset';function summaryChangesetSize(_0x578713){var _0x30151d=_0x4eebac;return JSON[_0x30151d(0x42b)](_0x578713)[_0x30151d(0x25b)];}__name(summaryChangesetSize,'summaryChangesetSize');const _CommentService=class _CommentService{constructor(){var _0x1811e4=_0x4eebac;__publicField(this,_0x1811e4(0x322),new Subject()),__publicField(this,_0x1811e4(0x23e),this[_0x1811e4(0x322)][_0x1811e4(0x39c)]());}[_0x4eebac(0x2bb)](_0x4be5a6){var _0x466ae9=_0x4eebac;this[_0x466ae9(0x322)][_0x466ae9(0x225)](_0x4be5a6);}};__name(_CommentService,_0x4eebac(0x202));let CommentService=_CommentService;var __defProp$h=Object[_0x4eebac(0x18f)],__getOwnPropDesc$h=Object[_0x4eebac(0x2a7)],__decorateClass$h=__name((_0x241ef4,_0xe4633e,_0x12904f,_0x11683b)=>{var _0x4817fb=_0x4eebac;for(var _0x17d14a=_0x11683b>0x1?void 0x0:_0x11683b?__getOwnPropDesc$h(_0xe4633e,_0x12904f):_0xe4633e,_0x30f372=_0x241ef4[_0x4817fb(0x25b)]-0x1,_0x584489;_0x30f372>=0x0;_0x30f372--)(_0x584489=_0x241ef4[_0x30f372])&&(_0x17d14a=(_0x11683b?_0x584489(_0xe4633e,_0x12904f,_0x17d14a):_0x584489(_0x17d14a))||_0x17d14a);return _0x11683b&&_0x17d14a&&__defProp$h(_0xe4633e,_0x12904f,_0x17d14a),_0x17d14a;},_0x4eebac(0x3ae)),__decorateParam$h=__name((_0x312797,_0x305656)=>(_0x52b93e,_0x323c85)=>_0x305656(_0x52b93e,_0x323c85,_0x312797),'__decorateParam$h'),_a2;let MemberService=(_a2=class extends Disposable{constructor(_0x1aa02f,_0x3296cf){var _0x166d72=_0x4eebac;super(),__publicField(this,_0x166d72(0x1b2),new Map()),__publicField(this,_0x166d72(0x3c3),new Subject()),(this['_univerInstanceService']=_0x1aa02f,this[_0x166d72(0x243)]=_0x3296cf,this[_0x166d72(0x378)](merge(this[_0x166d72(0x256)][_0x166d72(0x102)](UniverInstanceType[_0x166d72(0x435)])[_0x166d72(0x385)](map(_0x5b9978=>_0x5b9978[_0x166d72(0x31e)]())),this[_0x166d72(0x256)][_0x166d72(0x102)](UniverInstanceType[_0x166d72(0x420)])[_0x166d72(0x385)](map(_0x5ea141=>_0x5ea141[_0x166d72(0x31e)]())),this[_0x166d72(0x256)][_0x166d72(0x102)](UniverInstanceType[_0x166d72(0x32b)])['pipe'](map(_0x3ec7de=>_0x3ec7de[_0x166d72(0x31e)]())))[_0x166d72(0x127)](_0xe7829f=>this[_0x166d72(0x2d8)](_0xe7829f))));}[_0x4eebac(0x412)](_0x312409){var _0xa93269=_0x4eebac;return this['_roomMembers'][_0xa93269(0x33c)](_0x312409)?of(this[_0xa93269(0x1b2)][_0xa93269(0x28a)](_0x312409)):this[_0xa93269(0x3c3)][_0xa93269(0x385)](map(_0x1e70af=>{var _0x541f14=_0xa93269;if(_0x1e70af===_0x312409)return this[_0x541f14(0x1b2)][_0x541f14(0x28a)](_0x1e70af);}));}[_0x4eebac(0x2ca)](_0x194b96){var _0x8778a1=_0x4eebac;this[_0x8778a1(0x243)][_0x8778a1(0x2ca)](_0x194b96);}['getCurrentUser'](){var _0x34b58d=_0x4eebac;return this[_0x34b58d(0x243)][_0x34b58d(0x101)]();}[_0x4eebac(0x27c)](_0xa242f3,_0x4238f7){var _0x34d458=_0x4eebac;let _0x2548a0=this[_0x34d458(0x1b2)][_0x34d458(0x28a)](_0xa242f3);_0x2548a0||(_0x2548a0=new RoomMember(),this['_roomMembers'][_0x34d458(0x36d)](_0xa242f3,_0x2548a0),this[_0x34d458(0x3c3)][_0x34d458(0x225)](_0xa242f3)),_0x2548a0[_0x34d458(0x27c)](_0x4238f7);}['removeMember'](_0x572b97,_0x593546){var _0x40a07f=_0x4eebac;const _0x1c79ca=this['_roomMembers'][_0x40a07f(0x28a)](_0x572b97);_0x1c79ca&&_0x1c79ca['removeMember'](_0x593546);}['getRoom'](_0x1b7801){var _0x4146d3=_0x4eebac;return this[_0x4146d3(0x1b2)][_0x4146d3(0x28a)](_0x1b7801);}['getMember'](_0x485e11,_0x16c53a){var _0x96501b=_0x4eebac;const _0x294da1=this[_0x96501b(0x1b2)][_0x96501b(0x28a)](_0x485e11);if(_0x294da1)return _0x294da1[_0x96501b(0x361)](_0x16c53a);}['_removeRoom'](_0x2d6011){var _0x43151a=_0x4eebac;const _0x262da0=this[_0x43151a(0x1b2)][_0x43151a(0x28a)](_0x2d6011);_0x262da0&&(_0x262da0['dispose'](),this[_0x43151a(0x1b2)][_0x43151a(0x390)](_0x2d6011));}[_0x4eebac(0x273)](){var _0x5d3ef5=_0x4eebac;this[_0x5d3ef5(0x1b2)][_0x5d3ef5(0x436)](_0x1ab985=>_0x1ab985[_0x5d3ef5(0x273)]()),this[_0x5d3ef5(0x1b2)]['clear'](),this['_roomCreated$'][_0x5d3ef5(0x12d)]();}},__name(_a2,_0x4eebac(0x11d)),_a2);MemberService=__decorateClass$h([__decorateParam$h(0x0,IUniverInstanceService),__decorateParam$h(0x1,Inject(UserManagerService))],MemberService);const _RoomMember=class _RoomMember extends Disposable{constructor(){var _0x190b80=_0x4eebac;super(...arguments),__publicField(this,_0x190b80(0x3f9),new Map()),__publicField(this,_0x190b80(0x10d),new BehaviorSubject(this[_0x190b80(0x3f9)])),__publicField(this,_0x190b80(0x131),this['_members$']['asObservable']());}['dispose'](){var _0x4fe609=_0x4eebac;this['_members'][_0x4fe609(0x398)]();}['updateMember'](_0xb667ca){var _0x13c9a1=_0x4eebac;this[_0x13c9a1(0x3f9)][_0x13c9a1(0x36d)](_0xb667ca[_0x13c9a1(0x2a5)],_0xb667ca),this[_0x13c9a1(0x185)]();}['removeMember'](_0x540dd1){var _0x1980af=_0x4eebac;this[_0x1980af(0x3f9)][_0x1980af(0x390)](_0x540dd1);}[_0x4eebac(0x361)](_0x3f01ac){var _0x487df3=_0x4eebac;return this[_0x487df3(0x3f9)][_0x487df3(0x28a)](_0x3f01ac);}[_0x4eebac(0x25d)](){var _0x50e574=_0x4eebac;return Array[_0x50e574(0x1d3)](this[_0x50e574(0x3f9)][_0x50e574(0x135)]());}[_0x4eebac(0x185)](){var _0x44f48f=_0x4eebac;this[_0x44f48f(0x10d)][_0x44f48f(0x225)](this['_members']);}};__name(_RoomMember,_0x4eebac(0x2a9));let RoomMember=_RoomMember;var __defProp$g=Object[_0x4eebac(0x18f)],__getOwnPropDesc$g=Object[_0x4eebac(0x2a7)],__decorateClass$g=__name((_0x44fc86,_0x55e589,_0x13e369,_0xc7c0c2)=>{var _0x52222d=_0x4eebac;for(var _0x9f2925=_0xc7c0c2>0x1?void 0x0:_0xc7c0c2?__getOwnPropDesc$g(_0x55e589,_0x13e369):_0x55e589,_0x319b83=_0x44fc86[_0x52222d(0x25b)]-0x1,_0x4f9f29;_0x319b83>=0x0;_0x319b83--)(_0x4f9f29=_0x44fc86[_0x319b83])&&(_0x9f2925=(_0xc7c0c2?_0x4f9f29(_0x55e589,_0x13e369,_0x9f2925):_0x4f9f29(_0x9f2925))||_0x9f2925);return _0xc7c0c2&&_0x9f2925&&__defProp$g(_0x55e589,_0x13e369,_0x9f2925),_0x9f2925;},_0x4eebac(0x3a1)),__decorateParam$g=__name((_0x162ffa,_0x136f09)=>(_0x4d3b18,_0x312597)=>_0x136f09(_0x4d3b18,_0x312597,_0x162ffa),_0x4eebac(0x3e9)),SessionStatus=(_0x5288d0=>(_0x5288d0[_0x5288d0[_0x4eebac(0x253)]=0x0]=_0x4eebac(0x253),_0x5288d0[_0x5288d0['JOINING']=0x1]=_0x4eebac(0x104),_0x5288d0[_0x5288d0['OFFLINE']=0x2]=_0x4eebac(0x1ba),_0x5288d0[_0x5288d0['ONLINE']=0x3]=_0x4eebac(0x1f6),_0x5288d0))(SessionStatus||{});const FailedReason={[CmdRspCode[_0x4eebac(0x429)]]:'session.join-failed',[CmdRspCode[_0x4eebac(0x125)]]:_0x4eebac(0x3e3),[CmdRspCode[_0x4eebac(0x399)]]:'session.room-not-exists',[CmdRspCode[_0x4eebac(0x3e4)]]:'session.room-permission-denied',[CmdRspCode['GLOBAL_ROOMS_CNT_EXCEEDS']]:'session.room-cnt-exceeds'};var _a3;let CollaborationSession=(_a3=class extends RxDisposable{constructor(_0x536e10,_0x113790,_0x4a013e,_0x5b54f1,_0x5f0943,_0x415473,_0x2478ca,_0x4e815a,_0x40205a){var _0x1cd699=_0x4eebac;super(),__publicField(this,'_sessionStatus$',new BehaviorSubject(0x0)),__publicField(this,_0x1cd699(0x24b),this[_0x1cd699(0x29e)][_0x1cd699(0x39c)]()),__publicField(this,'_event$',new Subject()),__publicField(this,_0x1cd699(0x368),this[_0x1cd699(0x1f9)][_0x1cd699(0x39c)]()),__publicField(this,_0x1cd699(0x38d)),__publicField(this,'_socketMessageSubscription'),__publicField(this,_0x1cd699(0x1fd)),__publicField(this,_0x1cd699(0x37d),!0x1),__publicField(this,_0x1cd699(0x143),null),(this[_0x1cd699(0x120)]=_0x536e10,this[_0x1cd699(0x23a)]=_0x4a013e,this[_0x1cd699(0x238)]=_0x5b54f1,this[_0x1cd699(0x3b8)]=_0x5f0943,this['_memberService']=_0x415473,this[_0x1cd699(0x357)]=_0x2478ca,this[_0x1cd699(0x3f1)]=_0x4e815a,this['_telemetryService']=_0x40205a,this[_0x1cd699(0x37d)]=!!this[_0x1cd699(0x1f7)],_0x113790[_0x1cd699(0x385)](takeUntil(this[_0x1cd699(0x168)]))[_0x1cd699(0x127)](_0x15f1db=>{var _0x2c10f4=_0x1cd699,_0x2ce60c;typeof _0x15f1db>'u'||(this[_0x2c10f4(0x38d)]=_0x15f1db,_0x15f1db?(this['_joinRoom'](_0x15f1db),this['_socketMessageSubscription']=_0x15f1db[_0x2c10f4(0x3ff)][_0x2c10f4(0x127)](_0x32bc22=>{var _0x534d9c=_0x2c10f4;_0x32bc22[_0x534d9c(0x194)]===this[_0x534d9c(0x120)]&&this['_onCombEvent'](_0x32bc22);})):(this[_0x2c10f4(0x108)](),this['_sessionStatus$'][_0x2c10f4(0x225)](0x2),(_0x2ce60c=this[_0x2c10f4(0x2fd)])==null||_0x2ce60c[_0x2c10f4(0x23f)](),this[_0x2c10f4(0x2fd)]=null));}));}get[_0x4eebac(0x13d)](){var _0x1208d6=_0x4eebac;return this[_0x1208d6(0x29e)][_0x1208d6(0x30a)]();}[_0x4eebac(0x335)](){var _0x28c9db=_0x4eebac,_0x2875e7,_0x397907;return(_0x397907=(_0x2875e7=this['_socket'])==null?void 0x0:_0x2875e7[_0x28c9db(0x2a5)])!=null?_0x397907:null;}[_0x4eebac(0x273)](){var _0x376c39=_0x4eebac;super[_0x376c39(0x273)](),this[_0x376c39(0x168)]['next'](),this[_0x376c39(0x168)][_0x376c39(0x12d)]();}[_0x4eebac(0x39d)](){var _0x5d984d=_0x4eebac,_0x4090c6,_0x2dcc22;this[_0x5d984d(0x108)](),(_0x4090c6=this['_socket'])==null||_0x4090c6[_0x5d984d(0x1cc)]({'cmd':CombCmd[_0x5d984d(0x316)],'data':{'roomID':this[_0x5d984d(0x120)]}}),(_0x2dcc22=this[_0x5d984d(0x38d)])==null||_0x2dcc22[_0x5d984d(0x39d)](),this[_0x5d984d(0x1f9)][_0x5d984d(0x12d)](),this[_0x5d984d(0x29e)][_0x5d984d(0x12d)](),this[_0x5d984d(0x273)]();}[_0x4eebac(0x1ce)](_0x28f190){var _0x57251b=_0x4eebac;_0x28f190[_0x57251b(0x3a4)]===CombCmd[_0x57251b(0x241)]?this['_onJoinRoomEvent'](_0x28f190):_0x28f190[_0x57251b(0x3a4)]===CombCmd[_0x57251b(0x379)]&&this[_0x57251b(0x27a)](_0x28f190);}['_joinRoom'](_0xf600a5){var _0x1cf6e0=_0x4eebac;this[_0x1cf6e0(0x29e)][_0x1cf6e0(0x225)](0x1),_0xf600a5[_0x1cf6e0(0x1cc)]({'cmd':CombCmd['JOIN'],'routeKey':this[_0x1cf6e0(0x120)],'routeType':'','data':{'rooms':[{'roomID':this[_0x1cf6e0(0x120)]}]}});}[_0x4eebac(0x19e)](_0x2f6c47){var _0x7df9a6=_0x4eebac,_0x102357;if(_0x2f6c47['code']in FailedReason){this[_0x7df9a6(0x3f1)][_0x7df9a6(0x414)]({'id':CollaborationUIEventId[_0x7df9a6(0x200)],'data':FailedReason[_0x2f6c47[_0x7df9a6(0x21e)]]}),this[_0x7df9a6(0x29e)][_0x7df9a6(0x225)](0x2);return;}this[_0x7df9a6(0x29e)][_0x7df9a6(0x225)](0x3);const _0x19b568=(_0x102357=_0x2f6c47[_0x7df9a6(0x142)][_0x7df9a6(0x169)][this[_0x7df9a6(0x120)]])==null?void 0x0:_0x102357[_0x7df9a6(0x239)];_0x19b568&&_0x19b568[_0x7df9a6(0x436)](_0x25e241=>this[_0x7df9a6(0x153)][_0x7df9a6(0x27c)](this[_0x7df9a6(0x120)],_0x25e241));}[_0x4eebac(0x27a)](_0x5167ec){var _0x5b79a3=_0x4eebac;try{const _0x32c016=_0x5167ec[_0x5b79a3(0x142)];switch(_0x32c016[_0x5b79a3(0x315)]){case CollaborationEvent[_0x5b79a3(0x35d)]:this[_0x5b79a3(0x15b)](_0x32c016),this[_0x5b79a3(0x1f9)][_0x5b79a3(0x225)](_0x32c016);break;case CollaborationEvent['USERS_LEAVE']:this[_0x5b79a3(0x2c9)](_0x32c016),this[_0x5b79a3(0x1f9)]['next'](_0x32c016);break;case CollaborationEvent[_0x5b79a3(0x271)]:case CollaborationEvent[_0x5b79a3(0x38f)]:this['_stopTelemetryCollaborationNewChangeset'](),this['_clearCollaborationTimeoutTimer'](),this['_event$'][_0x5b79a3(0x225)](_0x32c016);break;case CollaborationEvent[_0x5b79a3(0x3a8)]:this['_logService'][_0x5b79a3(0x154)](_0x5b79a3(0x34e)+JSON[_0x5b79a3(0x42b)](_0x32c016)),this[_0x5b79a3(0x1f9)][_0x5b79a3(0x225)](_0x32c016);break;case CollaborationEvent[_0x5b79a3(0x26a)]:this[_0x5b79a3(0x357)][_0x5b79a3(0x2bb)](_0x32c016[_0x5b79a3(0x142)]),this['_event$'][_0x5b79a3(0x225)](_0x32c016);break;default:this['_event$'][_0x5b79a3(0x225)](_0x32c016);}}catch(_0x7d5029){this[_0x5b79a3(0x23a)][_0x5b79a3(0x154)](_0x7d5029,_0x5167ec);}}[_0x4eebac(0x15b)](_0x2f1bff){var _0x5f42be=_0x4eebac;this['_memberService'][_0x5f42be(0x27c)](this['_unitID'],_0x2f1bff[_0x5f42be(0x142)]);}[_0x4eebac(0x2c9)](_0x2d0ec6){var _0x34814c=_0x4eebac;this[_0x34814c(0x153)][_0x34814c(0x447)](this[_0x34814c(0x120)],_0x2d0ec6[_0x34814c(0x142)]['memberID']);}async['send'](_0x408433,_0x4a1296){var _0x482765=_0x4eebac;if(this['sessionStatus']!==0x3||!this[_0x482765(0x38d)])throw new Error(_0x482765(0x3df));try{_0x408433[_0x482765(0x315)]===CollaborationEvent[_0x482765(0x33e)]&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x482765(0x227)](_0x408433)),this[_0x482765(0x38d)][_0x482765(0x1cc)]({'cmd':CombCmd[_0x482765(0x16a)],'routeKey':_0x4a1296,'routeType':'','data':_0x408433});}catch(_0x2be491){this[_0x482765(0x23a)][_0x482765(0x154)](_0x2be491);}}[_0x4eebac(0x25f)](){var _0x45af00=_0x4eebac,_0x38dcf3;this[_0x45af00(0x1fd)]=setTimeout(()=>{var _0x389a82=_0x45af00;this[_0x389a82(0x1fd)]=null,this['_collaborationUIEventService']['emitEvent']({'id':CollaborationUIEventId[_0x389a82(0x319)]});},(_0x38dcf3=this[_0x45af00(0x238)]['getConfig'](HEARTBEAT_TIMEOUT_KEY))!=null?_0x38dcf3:DEFAULT_HEARTBEAT_TIMEOUT);}['_clearCollaborationTimeoutTimer'](){var _0x18e4db=_0x4eebac;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x18e4db(0x1fd)]),this['_collaborationTimeoutTimer']=null);}[_0x4eebac(0x227)](_0x22cd93){var _0x470009=_0x4eebac;if(!this[_0x470009(0x37d)])return;const {data:_0xd8bf2c}=_0x22cd93,{unitID:_0x21d8ee,changeset:_0x21680b}=_0xd8bf2c,{mutations:_0x42c21c,type:_0x32e411}=_0x21680b;this[_0x470009(0x143)]={'unitId':_0x21d8ee,'type':_0x32e411,'startTime':performance[_0x470009(0x1c9)](),'stopTime':0x0,'duration':0x0,'size':summaryChangesetSize(_0x42c21c)};}[_0x4eebac(0x23b)](){var _0x21dbaf=_0x4eebac;if(this[_0x21dbaf(0x37d)]){if(!this[_0x21dbaf(0x143)]){this[_0x21dbaf(0x23a)][_0x21dbaf(0x154)](_0x21dbaf(0x235),_0x21dbaf(0x3f2));return;}this[_0x21dbaf(0x143)][_0x21dbaf(0x3c4)]=performance[_0x21dbaf(0x1c9)](),this[_0x21dbaf(0x143)][_0x21dbaf(0x14a)]=this[_0x21dbaf(0x143)]['stopTime']-this[_0x21dbaf(0x143)][_0x21dbaf(0x280)],this[_0x21dbaf(0x1f7)][_0x21dbaf(0x21d)](TELEMETRY_COLLABORATION_NEW_CHANGESET,this[_0x21dbaf(0x143)]),this['_telemetryInfo']=null;}}['_throwTelemetryCollaborationNewChangeset'](){var _0x220cd3=_0x4eebac;this[_0x220cd3(0x143)]=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[_0x4eebac(0x18f)],__getOwnPropDesc$f=Object['getOwnPropertyDescriptor'],__decorateClass$f=__name((_0x1b92e0,_0x241a7c,_0x1bf650,_0x3d69dd)=>{var _0x54813d=_0x4eebac;for(var _0x5eb54b=_0x3d69dd>0x1?void 0x0:_0x3d69dd?__getOwnPropDesc$f(_0x241a7c,_0x1bf650):_0x241a7c,_0x305597=_0x1b92e0[_0x54813d(0x25b)]-0x1,_0xe2a728;_0x305597>=0x0;_0x305597--)(_0xe2a728=_0x1b92e0[_0x305597])&&(_0x5eb54b=(_0x3d69dd?_0xe2a728(_0x241a7c,_0x1bf650,_0x5eb54b):_0xe2a728(_0x5eb54b))||_0x5eb54b);return _0x3d69dd&&_0x5eb54b&&__defProp$f(_0x241a7c,_0x1bf650,_0x5eb54b),_0x5eb54b;},_0x4eebac(0x353)),__decorateParam$f=__name((_0x2453db,_0x4b32bf)=>(_0x2391cc,_0x14abbc)=>_0x4b32bf(_0x2391cc,_0x14abbc,_0x2453db),_0x4eebac(0x2d9)),_a4;let CollaborationSessionService=(_a4=class extends Disposable{constructor(_0x5c5ead,_0x30d3de,_0xbdd02,_0xc83e31,_0x4fd9ec,_0x2e07f8,_0x312b17){var _0x5265a2=_0x4eebac;super(),__publicField(this,'_socket$',new BehaviorSubject(void 0x0)),__publicField(this,'socket$',this[_0x5265a2(0x318)][_0x5265a2(0x39c)]()),__publicField(this,'_candidateSocket',null),__publicField(this,'_sessions',new Map()),__publicField(this,_0x5265a2(0x1b7),new BehaviorSubject(SessionStatus[_0x5265a2(0x253)])),__publicField(this,'status$',this[_0x5265a2(0x1b7)][_0x5265a2(0x39c)]()),__publicField(this,_0x5265a2(0x2a3),!0x1),__publicField(this,'_retryConnectingTimer'),__publicField(this,_0x5265a2(0x2dc),0x0),__publicField(this,_0x5265a2(0x3e0)),__publicField(this,_0x5265a2(0x27e)),(this['_injector']=_0x5c5ead,this[_0x5265a2(0x23a)]=_0x30d3de,this[_0x5265a2(0x238)]=_0xbdd02,this[_0x5265a2(0x1d4)]=_0xc83e31,this[_0x5265a2(0x129)]=_0x4fd9ec,this[_0x5265a2(0x3f1)]=_0x2e07f8,this[_0x5265a2(0x276)]=_0x312b17,this[_0x5265a2(0x2b2)]());}get['_socket'](){var _0x2eae22=_0x4eebac;return this[_0x2eae22(0x318)][_0x2eae22(0x30a)]();}[_0x4eebac(0x2b2)](){var _0x4c320e=_0x4eebac;this['_networkConditionService']&&this['disposeWithMe'](this[_0x4c320e(0x276)][_0x4c320e(0x152)][_0x4c320e(0x127)](_0x825aa0=>{var _0x1ce365=_0x4c320e;_0x825aa0&&!this['_socket']&&this[_0x1ce365(0x274)](),_0x825aa0||this['_onOffline']();}));}[_0x4eebac(0x273)](){var _0x34a24a=_0x4eebac;super[_0x34a24a(0x273)](),this[_0x34a24a(0x128)][_0x34a24a(0x436)](_0x47b2f8=>_0x47b2f8[_0x34a24a(0x273)]()),this[_0x34a24a(0x128)]['clear'](),this[_0x34a24a(0x1b7)]['complete']();}async[_0x4eebac(0x21c)](_0x557877){var _0x4bc2cc=_0x4eebac;if(this['_sessions']['has'](_0x557877))return this[_0x4bc2cc(0x128)][_0x4bc2cc(0x28a)](_0x557877);this[_0x4bc2cc(0x216)]();const _0x47d6b8=this[_0x4bc2cc(0x2d3)][_0x4bc2cc(0x145)](CollaborationSession,_0x557877,this['_socket$'][_0x4bc2cc(0x39c)]());return this[_0x4bc2cc(0x128)][_0x4bc2cc(0x36d)](_0x557877,_0x47d6b8),_0x47d6b8;}[_0x4eebac(0x2da)](_0x2d4e25){var _0x256ef9=_0x4eebac,_0xa4b3c;const _0x4bc6af=this[_0x256ef9(0x128)][_0x256ef9(0x28a)](_0x2d4e25);_0x4bc6af&&(this['_sessions'][_0x256ef9(0x390)](_0x2d4e25),_0x4bc6af[_0x256ef9(0x39d)]()),this[_0x256ef9(0x128)]['size']||(_0xa4b3c=this[_0x256ef9(0x38d)])==null||_0xa4b3c[_0x256ef9(0x39d)]();}[_0x4eebac(0x274)](){var _0x322d4e=_0x4eebac;this[_0x322d4e(0x2dc)]=0x0,this[_0x322d4e(0x2a1)]!=null&&(clearTimeout(this[_0x322d4e(0x2a1)]),this[_0x322d4e(0x2a1)]=null),this['_tryReconnect']();}async[_0x4eebac(0x323)](){var _0x4eea11=_0x4eebac,_0x18dd6a,_0x34dfb9,_0x28a7c9;const _0x249ec4=this[_0x4eea11(0x238)][_0x4eea11(0x363)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY),_0x53b3bd=(_0x18dd6a=_0x249ec4==null?void 0x0:_0x249ec4[_0x4eea11(0x2df)])!=null?_0x18dd6a:DEFAULT_WS_SESSION_TICKET_URL;return(_0x28a7c9=(_0x34dfb9=(await this['_httpService']['get'](_0x53b3bd,{'headers':{'Content-Type':_0x4eea11(0x1f1)}}))['body'])==null?void 0x0:_0x34dfb9[_0x4eea11(0x233)])!=null?_0x28a7c9:'';}['_createSocketURL'](_0x5d07f9){var _0x4a6249=_0x4eebac,_0x327d4f,_0x5e2340;const _0x6043f=this[_0x4a6249(0x238)][_0x4a6249(0x363)](COLLAB_WEB_SOCKET_URL_KEY),_0x24666b=this['_configService'][_0x4a6249(0x363)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY),_0x5a0cb2=(_0x5e2340=(_0x327d4f=_0x24666b==null?void 0x0:_0x24666b['collabWebSocketUrl'])!=null?_0x327d4f:_0x6043f)!=null?_0x5e2340:DEFAULT_COLLAB_WEB_SOCKET_URL,_0x398f57=typeof window>'u'?new URL(_0x5a0cb2):new URL(_0x5a0cb2,window['location']['origin']);_0x398f57[_0x4a6249(0x1d5)][_0x4a6249(0x36d)]('sessionTicket',_0x5d07f9);const _0x4c9e54=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x4a6249(0x404)]['search']);return _0x4c9e54[_0x4a6249(0x28a)](_0x4a6249(0x17f))&&_0x398f57['searchParams'][_0x4a6249(0x36d)](_0x4a6249(0x17f),_0x4c9e54[_0x4a6249(0x28a)](_0x4a6249(0x17f))),_0x398f57[_0x4a6249(0x13a)]();}async['_createSocket'](){var _0x288fd3=_0x4eebac;const _0x441ec9=await this[_0x288fd3(0x323)](),_0x26d0cc=this[_0x288fd3(0x18d)](_0x441ec9),_0x139b26=this['_socketService']['createSocket'](_0x26d0cc);return this[_0x288fd3(0x1b1)]=_0x139b26,_0x139b26;}async[_0x4eebac(0x216)](){var _0x2f3b93=_0x4eebac,_0x4f5b47,_0x4e9f9b;try{const _0x2cdeb6=(_0x4e9f9b=(_0x4f5b47=this[_0x2f3b93(0x38d)])!=null?_0x4f5b47:this[_0x2f3b93(0x1b1)])!=null?_0x4e9f9b:await this[_0x2f3b93(0x446)]();if(_0x2cdeb6){const _0x128d4b=_0x2cdeb6[_0x2f3b93(0x1cc)];_0x2cdeb6[_0x2f3b93(0x1cc)]=_0xa32a3d=>(this[_0x2f3b93(0x32f)](),_0x128d4b[_0x2f3b93(0x35c)](_0x2cdeb6,[_0xa32a3d])),_0x2cdeb6[_0x2f3b93(0x3ff)][_0x2f3b93(0x127)](_0x4ca9ea=>this[_0x2f3b93(0x124)](_0x2cdeb6,_0x4ca9ea)),_0x2cdeb6['error$'][_0x2f3b93(0x385)](take(0x1))[_0x2f3b93(0x127)](_0xafc7a2=>this[_0x2f3b93(0x23a)][_0x2f3b93(0x154)]('[CollaborationSessionService]:\x20socket\x20error',_0xafc7a2)),_0x2cdeb6['open$'][_0x2f3b93(0x385)](take(0x1))['subscribe'](()=>{var _0x486435=_0x2f3b93;this[_0x486435(0x3ea)](_0x2cdeb6);}),_0x2cdeb6['close$']['pipe'](take(0x1))[_0x2f3b93(0x127)](_0x29cb7b=>{var _0x20e482=_0x2f3b93;this[_0x20e482(0x23a)]['debug'](_0x20e482(0x1e4),_0x20e482(0x3d9),_0x29cb7b),this[_0x20e482(0x3fe)]();});}}catch(_0x1ed2e9){this['_logService'][_0x2f3b93(0x154)](_0x1ed2e9),this[_0x2f3b93(0x3fe)]();}}[_0x4eebac(0x3ea)](_0x355c5b){var _0x27796c=_0x4eebac;this[_0x27796c(0x23a)][_0x27796c(0x1f8)]('[CollaborationSessionService]',_0x27796c(0x1e8)),_0x355c5b[_0x27796c(0x1cc)]({'cmd':CombCmd[_0x27796c(0x11f)]}),this[_0x27796c(0x32f)]();}['_onOffline'](){var _0x3fda16=_0x4eebac;this[_0x3fda16(0x2a3)]=!0x1,this[_0x3fda16(0x1b1)]=null,this[_0x3fda16(0x1b7)][_0x3fda16(0x225)](SessionStatus[_0x3fda16(0x1ba)]),this[_0x3fda16(0x318)][_0x3fda16(0x225)](null),this['_clearTimeoutTimer'](),this['_clearHeartbeatTimer']();}[_0x4eebac(0x3fe)](){var _0x520666=_0x4eebac,_0x2d30cc;this[_0x520666(0x1df)](),this['_retryCount']<((_0x2d30cc=this[_0x520666(0x238)][_0x520666(0x363)](RETRY_CONNECTING_MAX_COUNT_KEY))!=null?_0x2d30cc:DEFAULT_RETRY_CONNECTING_MAX_COUNT)?(this[_0x520666(0x3f1)][_0x520666(0x414)]({'id':CollaborationUIEventId[_0x520666(0x2c0)]}),this[_0x520666(0x262)]()):this[_0x520666(0x3f1)]['emitEvent']({'id':CollaborationUIEventId[_0x520666(0x1a8)]});}[_0x4eebac(0x262)](){var _0x3600a5=_0x4eebac,_0x5280fb;const _0x3f023e=this[_0x3600a5(0x2dc)],_0x504399=this[_0x3600a5(0x238)][_0x3600a5(0x363)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY),_0x6e455b=_0x3f023e===0x0?0x0:((_0x5280fb=_0x504399==null?void 0x0:_0x504399[_0x3600a5(0x437)])!=null?_0x5280fb:DEFAULT_RETRY_CONNECTING_INTERVAL)*0x2**_0x3f023e;this[_0x3600a5(0x2a1)]=setTimeout(()=>{var _0x279b3c=_0x3600a5;clearTimeout(this[_0x279b3c(0x2a1)]),this[_0x279b3c(0x2a1)]=null,this[_0x279b3c(0x216)]();},_0x6e455b),this['_retryCount']+=0x1;}[_0x4eebac(0x124)](_0x383edd,_0x555843){var _0x311533=_0x4eebac;const {cmd:_0x55fb37}=_0x555843;_0x55fb37===CombCmd[_0x311533(0x11f)]&&!this['_socketReady']&&(_0x383edd['memberID']=_0x555843[_0x311533(0x142)][_0x311533(0x2a5)],this[_0x311533(0x318)]['next'](_0x383edd),this[_0x311533(0x1b7)][_0x311533(0x225)](SessionStatus[_0x311533(0x1f6)]),this[_0x311533(0x2a3)]=!0x0,this[_0x311533(0x1b1)]=null),_0x55fb37===CombCmd[_0x311533(0x2f2)]&&this[_0x311533(0x2f5)](),this[_0x311533(0x32f)]();}[_0x4eebac(0x32f)](){var _0x304cf1=_0x4eebac,_0xa5bc0;this[_0x304cf1(0x10a)](),this[_0x304cf1(0x3e0)]=setTimeout(()=>this[_0x304cf1(0x34b)](),(_0xa5bc0=this[_0x304cf1(0x238)][_0x304cf1(0x363)](HEARTBEAT_INTERVAL_KEY))!=null?_0xa5bc0:DEFAULT_HEARTBEAT_INTERVAL);}[_0x4eebac(0x34b)](){var _0x172065=_0x4eebac;this[_0x172065(0x38d)][_0x172065(0x1cc)]({'cmd':CombCmd[_0x172065(0x2f2)]}),this[_0x172065(0x26e)]();}[_0x4eebac(0x26e)](){var _0x4309c7=_0x4eebac,_0x5b07cf;this['_timeoutTimer']=setTimeout(()=>this[_0x4309c7(0x3fe)](),(_0x5b07cf=this[_0x4309c7(0x238)][_0x4309c7(0x363)](HEARTBEAT_TIMEOUT_KEY))!=null?_0x5b07cf:DEFAULT_HEARTBEAT_TIMEOUT);}[_0x4eebac(0x10a)](){var _0x198081=_0x4eebac;this[_0x198081(0x3e0)]!=null&&(clearTimeout(this[_0x198081(0x3e0)]),this[_0x198081(0x3e0)]=null);}[_0x4eebac(0x2f5)](){var _0x18a475=_0x4eebac;this[_0x18a475(0x27e)]!=null&&(clearTimeout(this[_0x18a475(0x27e)]),this['_timeoutTimer']=null);}},__name(_a4,_0x4eebac(0x1a6)),_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[_0x4eebac(0x2cd)]((i+0x100)[_0x4eebac(0x13a)](0x10)[_0x4eebac(0x3fa)](0x1));function unsafeStringify(_0x533ecc,_0x18b772=0x0){var _0x16d536=_0x4eebac;return(byteToHex[_0x533ecc[_0x18b772+0x0]]+byteToHex[_0x533ecc[_0x18b772+0x1]]+byteToHex[_0x533ecc[_0x18b772+0x2]]+byteToHex[_0x533ecc[_0x18b772+0x3]]+'-'+byteToHex[_0x533ecc[_0x18b772+0x4]]+byteToHex[_0x533ecc[_0x18b772+0x5]]+'-'+byteToHex[_0x533ecc[_0x18b772+0x6]]+byteToHex[_0x533ecc[_0x18b772+0x7]]+'-'+byteToHex[_0x533ecc[_0x18b772+0x8]]+byteToHex[_0x533ecc[_0x18b772+0x9]]+'-'+byteToHex[_0x533ecc[_0x18b772+0xa]]+byteToHex[_0x533ecc[_0x18b772+0xb]]+byteToHex[_0x533ecc[_0x18b772+0xc]]+byteToHex[_0x533ecc[_0x18b772+0xd]]+byteToHex[_0x533ecc[_0x18b772+0xe]]+byteToHex[_0x533ecc[_0x18b772+0xf]])[_0x16d536(0x406)]();}__name(unsafeStringify,'unsafeStringify');let getRandomValues;const rnds8=new Uint8Array(0x10);function rng(){var _0x4f055b=_0x4eebac;if(!getRandomValues){if(typeof crypto>'u'||!crypto[_0x4f055b(0x197)])throw new Error(_0x4f055b(0x36c));getRandomValues=crypto['getRandomValues']['bind'](crypto);}return getRandomValues(rnds8);}__name(rng,_0x4eebac(0x2ce));const randomUUID=typeof crypto<'u'&&crypto[_0x4eebac(0x1f2)]&&crypto[_0x4eebac(0x1f2)][_0x4eebac(0x133)](crypto),native={'randomUUID':randomUUID};function v4(_0x2aea44,_0x4e0b62,_0xc4dbb){var _0x3fc6fd=_0x4eebac,_0x32aa97,_0x31b3cc,_0x4c3200;if(native[_0x3fc6fd(0x1f2)]&&!_0x2aea44)return native[_0x3fc6fd(0x1f2)]();_0x2aea44=_0x2aea44||{};const _0x166d25=(_0x4c3200=(_0x31b3cc=_0x2aea44[_0x3fc6fd(0x14e)])!=null?_0x31b3cc:(_0x32aa97=_0x2aea44[_0x3fc6fd(0x2ce)])==null?void 0x0:_0x32aa97['call'](_0x2aea44))!=null?_0x4c3200:rng();if(_0x166d25['length']<0x10)throw new Error('Random\x20bytes\x20length\x20must\x20be\x20>=\x2016');return _0x166d25[0x6]=_0x166d25[0x6]&0xf|0x40,_0x166d25[0x8]=_0x166d25[0x8]&0x3f|0x80,unsafeStringify(_0x166d25);}__name(v4,'v4');const ILocalCacheService=createIdentifier(_0x4eebac(0x196));function getLocalCacheKey(_0x372af3){var _0x51b19=_0x4eebac;return _0x51b19(0x17b)+_0x372af3;}__name(getLocalCacheKey,'getLocalCacheKey');var __defProp$e=Object[_0x4eebac(0x18f)],__getOwnPropDesc$e=Object[_0x4eebac(0x2a7)],__decorateClass$e=__name((_0x33cf32,_0x10d269,_0xe6cc22,_0x292409)=>{var _0x131f5b=_0x4eebac;for(var _0x2e0db9=_0x292409>0x1?void 0x0:_0x292409?__getOwnPropDesc$e(_0x10d269,_0xe6cc22):_0x10d269,_0x5311cb=_0x33cf32[_0x131f5b(0x25b)]-0x1,_0x10a647;_0x5311cb>=0x0;_0x5311cb--)(_0x10a647=_0x33cf32[_0x5311cb])&&(_0x2e0db9=(_0x292409?_0x10a647(_0x10d269,_0xe6cc22,_0x2e0db9):_0x10a647(_0x2e0db9))||_0x2e0db9);return _0x292409&&_0x2e0db9&&__defProp$e(_0x10d269,_0xe6cc22,_0x2e0db9),_0x2e0db9;},_0x4eebac(0x114)),__decorateParam$e=__name((_0x3f7362,_0xf84969)=>(_0x5a1e6d,_0x4ee46a)=>_0xf84969(_0x5a1e6d,_0x4ee46a,_0x3f7362),_0x4eebac(0x42a));function extractTargetFromFirstChangeset(_0x13dd8b){var _0x4aed2c=_0x4eebac;const {unitID:_0xae2117,mutations:_0x293c2a}=_0x13dd8b;return{'unitId':_0xae2117,'subUnitId':_0x293c2a[0x0][_0x4aed2c(0x148)][_0x4aed2c(0x138)]};}__name(extractTargetFromFirstChangeset,'extractTargetFromFirstChangeset');var _a5;let SheetTransformSelectionsService=(_a5=class{constructor(_0x2ff508,_0x25df63,_0x46d751){var _0x235509=_0x4eebac;this[_0x235509(0x2d3)]=_0x2ff508,this[_0x235509(0x176)]=_0x25df63,this['_instanceService']=_0x46d751;}['transformSelections'](_0x34a099){var _0x24c953=_0x4eebac,_0x2e5051,_0x333146,_0x1bacef,_0x1d0bb1;const _0x50057a=this['_injector']['get'](SheetsSelectionsService),{unitId:_0xe5f3aa,subUnitId:_0x3c2826}=extractTargetFromFirstChangeset(_0x34a099),_0x4e583a=_0x50057a==null?void 0x0:_0x50057a['getWorkbookSelections'](_0xe5f3aa)[_0x24c953(0x2b6)](),_0x213423=(_0x333146=(_0x2e5051=this[_0x24c953(0x28f)][_0x24c953(0x40f)](_0xe5f3aa))==null?void 0x0:_0x2e5051[_0x24c953(0x3d0)]())==null?void 0x0:_0x333146['getSheetId']();if(_0x4e583a['length']===0x0||!_0xe5f3aa||!_0x3c2826)return;const _0x537dde=[{'id':SetSelectionsOperation['id'],'params':{'unitId':_0xe5f3aa,'subUnitId':_0x213423,'selections':Tools[_0x24c953(0x425)](_0x4e583a)}}],_0x48d645=this[_0x24c953(0x176)]['transformMutationsWithChangeset'](_0x34a099,_0x537dde);if(!isTransformMutationsWithChangesetSuccess(_0x48d645))throw _0x48d645[_0x24c953(0x154)];const _0x518fd6=(_0x1d0bb1=(_0x1bacef=_0x48d645[_0x24c953(0x2af)][0x0])==null?void 0x0:_0x1bacef['params'])==null?void 0x0:_0x1d0bb1[_0x24c953(0x2c3)];if(Array[_0x24c953(0x103)](_0x518fd6)&&_0x518fd6[_0x24c953(0x25b)]){if(_0x518fd6[_0x24c953(0x25b)]===_0x537dde[0x0][_0x24c953(0x148)][_0x24c953(0x2c3)][_0x24c953(0x25b)]&&_0x518fd6[_0x24c953(0x259)]((_0x2c39d2,_0x5c3e8b)=>Rectangle[_0x24c953(0x1e3)](_0x2c39d2[_0x24c953(0x28c)],_0x537dde[0x0][_0x24c953(0x148)][_0x24c953(0x2c3)][_0x5c3e8b][_0x24c953(0x28c)])))return;this[_0x24c953(0x2d3)][_0x24c953(0x28a)](ICommandService)[_0x24c953(0x210)](SetSelectionsOperation['id'],{'unitId':_0xe5f3aa,'subUnitId':_0x213423,'selections':_0x518fd6});}}},__name(_a5,_0x4eebac(0x41a)),_a5);SheetTransformSelectionsService=__decorateClass$e([__decorateParam$e(0x0,Inject(Injector)),__decorateParam$e(0x1,ITransformService),__decorateParam$e(0x2,IUniverInstanceService)],SheetTransformSelectionsService);const ISingleActiveUnitService=createIdentifier(_0x4eebac(0x16f));var UnitStatus=(_0x51e001=>(_0x51e001[_0x51e001[_0x4eebac(0x158)]=0x0]=_0x4eebac(0x158),_0x51e001[_0x51e001[_0x4eebac(0x10b)]=0x1]=_0x4eebac(0x10b),_0x51e001))(UnitStatus||{});const SINGLE_CHANGESET_MUTATIONS=new Set([InsertSheetMutation['id']]);function assembleSheetChangeset(_0x440f30,_0x5cac15,_0x9ecab,_0x4d25bc,_0x1b7487){var _0x573c7d=_0x4eebac,_0xadb0a6,_0x122144,_0x510713,_0x11e215;const _0x5f4ae8=[];for(const _0x545505 of _0x440f30)if(SINGLE_CHANGESET_MUTATIONS[_0x573c7d(0x33c)](_0x545505['id'])){if(_0x5f4ae8['length']>0x0)break;_0x5f4ae8[_0x573c7d(0x2cd)](_0x545505);break;}else _0x5f4ae8[_0x573c7d(0x2cd)](_0x545505);const _0x26b7b5=(_0x122144=(_0xadb0a6=_0x1b7487['getCurrentUser']())==null?void 0x0:_0xadb0a6['userID'])!=null?_0x122144:_0x573c7d(0x2b0),_0x3dcc20=(_0x11e215=(_0x510713=_0x1b7487[_0x573c7d(0x101)]())==null?void 0x0:_0x510713[_0x573c7d(0x2a5)])!=null?_0x11e215:_0x573c7d(0x2b0);return{'changeset':{'unitID':_0x5cac15,'type':mapDocumentTypeToUniverType(_0x9ecab[_0x573c7d(0x289)](_0x5cac15)),'baseRev':_0x4d25bc[_0x573c7d(0x186)](_0x5cac15),'revision':0x0,'userID':_0x26b7b5,'memberID':_0x3dcc20,'mutations':_0x5f4ae8},'pendingMutations':_0x440f30[_0x573c7d(0x3fa)](_0x5f4ae8[_0x573c7d(0x25b)])};}__name(assembleSheetChangeset,'assembleSheetChangeset');function assembleDocChangeset(_0x38e130,_0x2b066b,_0x2b7587,_0xd8381,_0x1de14b){var _0x59de24=_0x4eebac,_0x25ae79,_0x3be6a7,_0x3d7d93,_0x132de4;const _0x5b9d61=[_0x38e130[_0x59de24(0x16e)]((_0x4f3ae4,_0x50be1c)=>{var _0x1017b5=_0x59de24,_0x25980f;const {id:_0x3b9a45}=_0x4f3ae4,{id:_0x58a85d,type:_0x49f516}=_0x50be1c,_0x1d706f=(_0x25980f=_0x4f3ae4[_0x1017b5(0x148)])!=null?_0x25980f:{'actions':null},_0xd52f6e=_0x50be1c[_0x1017b5(0x148)];if(_0x3b9a45&&_0x3b9a45!==_0x58a85d)throw new Error(_0x1017b5(0x156)+_0x3b9a45+_0x1017b5(0x394)+_0x58a85d+'.');return{..._0x4f3ae4,'id':_0x58a85d,'type':_0x49f516,'params':{'unitId':_0xd52f6e[_0x1017b5(0x2d6)],'textRanges':_0xd52f6e[_0x1017b5(0x2d2)],'actions':JSONX[_0x1017b5(0x18e)](_0x1d706f[_0x1017b5(0x3c1)],_0xd52f6e[_0x1017b5(0x3c1)])}};},{})],_0x3760a5=(_0x3be6a7=(_0x25ae79=_0x1de14b['getCurrentUser']())==null?void 0x0:_0x25ae79[_0x59de24(0x275)])!=null?_0x3be6a7:'unknown',_0x4f8a51=(_0x132de4=(_0x3d7d93=_0x1de14b['getCurrentUser']())==null?void 0x0:_0x3d7d93[_0x59de24(0x2a5)])!=null?_0x132de4:_0x59de24(0x2b0);return{'changeset':{'unitID':_0x2b066b,'type':mapDocumentTypeToUniverType(_0x2b7587['getUnitType'](_0x2b066b)),'baseRev':_0xd8381[_0x59de24(0x186)](_0x2b066b),'revision':0x0,'userID':_0x3760a5,'memberID':_0x4f8a51,'mutations':_0x5b9d61},'pendingMutations':[]};}__name(assembleDocChangeset,'assembleDocChangeset');function createTimerObservable$(_0x201327,_0x27527a){var _0x4ba0f4=_0x4eebac;const _0x56e750=new ReplaySubject(0x1);return setTimeout(()=>_0x56e750[_0x4ba0f4(0x225)](_0x27527a),_0x201327),_0x56e750['asObservable']()[_0x4ba0f4(0x385)](_0x3e406a(0x1));}__name(createTimerObservable$,_0x4eebac(0x205));const EmptyMutationInfo={'id':EmptyMutation['id'],'type':CommandType[_0x4eebac(0x3f6)],'params':{}};var __defProp$d=Object[_0x4eebac(0x18f)],__getOwnPropDesc$d=Object[_0x4eebac(0x2a7)],__decorateClass$d=__name((_0x2aacf3,_0x3fc1c5,_0x38bf5c,_0x2c8957)=>{var _0x5b3823=_0x4eebac;for(var _0x32950f=_0x2c8957>0x1?void 0x0:_0x2c8957?__getOwnPropDesc$d(_0x3fc1c5,_0x38bf5c):_0x3fc1c5,_0x245265=_0x2aacf3[_0x5b3823(0x25b)]-0x1,_0x176894;_0x245265>=0x0;_0x245265--)(_0x176894=_0x2aacf3[_0x245265])&&(_0x32950f=(_0x2c8957?_0x176894(_0x3fc1c5,_0x38bf5c,_0x32950f):_0x176894(_0x32950f))||_0x32950f);return _0x2c8957&&_0x32950f&&__defProp$d(_0x3fc1c5,_0x38bf5c,_0x32950f),_0x32950f;},_0x4eebac(0x39f)),__decorateParam$d=__name((_0x3548f1,_0x197046)=>(_0x415164,_0x338345)=>_0x197046(_0x415164,_0x338345,_0x3548f1),_0x4eebac(0x2cb)),CollaborationStatus=(_0x57ee9f=>(_0x57ee9f['NOT_COLLAB']=_0x4eebac(0x352),_0x57ee9f[_0x4eebac(0x18b)]='synced',_0x57ee9f[_0x4eebac(0x113)]=_0x4eebac(0x3b4),_0x57ee9f[_0x4eebac(0x401)]=_0x4eebac(0x43a),_0x57ee9f[_0x4eebac(0x1ca)]=_0x4eebac(0x1ab),_0x57ee9f[_0x4eebac(0x11c)]=_0x4eebac(0x428),_0x57ee9f[_0x4eebac(0x1d0)]=_0x4eebac(0x3fb),_0x57ee9f[_0x4eebac(0x1ba)]=_0x4eebac(0x23d),_0x57ee9f))(CollaborationStatus||{});const MAX_RETRY_TIMEOUT=0xea60,_CollaborationState=class _CollaborationState{constructor(_0x55c3ca,_0x2595b0,_0x48a355,_0x3ab766,_0x4648e2,_0x20ab09,_0x6e09e4,_0x595d4e,_0x3d591b){var _0x5d3e3e=_0x4eebac;__publicField(this,'_awaitingChangeset',null),__publicField(this,'_pendingMutations',[]),(this[_0x5d3e3e(0x31d)]=_0x55c3ca,this['type']=_0x2595b0,this[_0x5d3e3e(0x3b2)]=_0x4648e2,this[_0x5d3e3e(0x10c)]=_0x20ab09,this['_undoRedoService']=_0x6e09e4,this['_revisionService']=_0x595d4e,this['_localCacheService']=_0x3d591b,this['_awaitingChangeset']=_0x48a355,this[_0x5d3e3e(0x321)]=_0x3ab766);}[_0x4eebac(0x174)](_0x3ef140){var _0x14b721=_0x4eebac;const _0x36275f=this['_revisionService']['getCurrentRevOfUnit'](this['unitID']);return _0x3ef140[_0x14b721(0x382)]>_0x36275f+0x1?(this[_0x14b721(0x3b2)]['onMissingChangesets']({'from':_0x36275f,'to':_0x3ef140['revision']-0x1}),!0x0):!0x1;}[_0x4eebac(0x2d0)](_0x51f568){var _0x490233=_0x4eebac;this[_0x490233(0x166)]['transformUndoRedo'](this[_0x490233(0x31d)],_0x51f568);}['_transformSelections'](_0x5e4648){var _0x5e28bd=_0x4eebac,_0x2d52e4,_0x2352c3;(_0x2352c3=(_0x2d52e4=this['_handler'])[_0x5e28bd(0x251)])==null||_0x2352c3[_0x5e28bd(0x413)](_0x2d52e4,_0x5e4648);}[_0x4eebac(0x384)](_0x5c9ca5){var _0xb22c52=_0x4eebac,_0x3818b9,_0x392235;return(_0x392235=(_0x3818b9=this['_handler'])[_0xb22c52(0x3dd)])==null?void 0x0:_0x392235['call'](_0x3818b9,_0x5c9ca5);}['_transformStateCache'](_0x505916){var _0x5bce80=_0x4eebac,_0x279bb6,_0xb51d78;return(_0xb51d78=(_0x279bb6=this[_0x5bce80(0x3b2)])[_0x5bce80(0x3cf)])==null?void 0x0:_0xb51d78[_0x5bce80(0x413)](_0x279bb6,_0x505916);}[_0x4eebac(0x34d)](_0x5575e1){var _0x4a64b0=_0x4eebac,_0x42dc82,_0x130b87,_0x1b06b9;return(_0x1b06b9=(_0x130b87=(_0x42dc82=this['_handler'])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x130b87[_0x4a64b0(0x413)](_0x42dc82,_0x5575e1))!=null?_0x1b06b9:_0x5575e1;}[_0x4eebac(0x126)](_0x530596){var _0x11e59f=_0x4eebac,_0x43ac8e,_0x412a8a,_0xc00920;return(_0xc00920=(_0x412a8a=(_0x43ac8e=this[_0x11e59f(0x3b2)])[_0x11e59f(0x22f)])==null?void 0x0:_0x412a8a['call'](_0x43ac8e,_0x530596))!=null?_0xc00920:_0x530596;}['_syncEditingCollabCursor'](_0xbf88f2){var _0x5d1533=_0x4eebac,_0x5d8e5d,_0x1252bb;if(this[_0x5d1533(0x41c)]===UniverType['UNIVER_DOC']){const {unitID:_0x274203,mutations:_0x17b8a1,memberID:_0x4110e4}=_0xbf88f2,_0x5d2086=_0x17b8a1[0x0][_0x5d1533(0x148)][_0x5d1533(0x2d2)];Array['isArray'](_0x5d2086)&&_0x5d2086[_0x5d1533(0x25b)]>0x0&&((_0x1252bb=(_0x5d8e5d=this[_0x5d1533(0x3b2)])['onSyncEditingCollabCursor'])==null||_0x1252bb[_0x5d1533(0x413)](_0x5d8e5d,{'unitID':_0x274203,'memberID':_0x4110e4,'textRanges':_0x5d2086}));}}[_0x4eebac(0x2c6)](){var _0xe4ebab=_0x4eebac,_0x34d825;(_0x34d825=this[_0xe4ebab(0x2c4)])==null||_0x34d825[_0xe4ebab(0x22a)](this[_0xe4ebab(0x31d)],this[_0xe4ebab(0x41c)],this[_0xe4ebab(0x27f)],this[_0xe4ebab(0x321)]);}[_0x4eebac(0x150)](){var _0x4d13d1=_0x4eebac;return this[_0x4d13d1(0x28b)][_0x4d13d1(0x186)](this[_0x4d13d1(0x31d)]);}[_0x4eebac(0x42e)](){var _0x51e374=_0x4eebac;this[_0x51e374(0x28b)]['incrementRevOfUnit'](this[_0x51e374(0x31d)]);}[_0x4eebac(0x222)](_0x23b549){var _0x1b49aa=_0x4eebac,_0xa9f95e;let _0x2a4017=this[_0x1b49aa(0x34d)](_0x23b549);_0x2a4017=this[_0x1b49aa(0x126)](_0x2a4017);const _0x5d26b2=sequenceExecute(_0x2a4017['mutations'],this[_0x1b49aa(0x10c)],{'fromCollab':!0x0});if(!_0x5d26b2[_0x1b49aa(0x331)])throw _0x5d26b2['error']instanceof Error?_0x5d26b2[_0x1b49aa(0x154)]:new Error((_0xa9f95e=_0x5d26b2['error'])!=null?_0xa9f95e:'[CollaborationState]:\x20apply\x20error!');this[_0x1b49aa(0x384)](_0x2a4017),this[_0x1b49aa(0x1b6)](_0x2a4017),this['_transformUndoredo'](_0x23b549),this[_0x1b49aa(0x244)](_0x2a4017),this[_0x1b49aa(0x30d)](_0x2a4017),this[_0x1b49aa(0x42e)]();}};__name(_CollaborationState,_0x4eebac(0x13e));let CollaborationState=_CollaborationState;var _a6;let SyncedState=(_a6=class extends CollaborationState{constructor(_0x5a3130,_0x2e3f2b,_0x55bafd,_0x50ce13,_0x1c14d5,_0xbeeb20,_0x36c163,_0x592b67,_0x5e2992,_0x501eb7){var _0x408594=_0x4eebac;super(_0x5a3130,_0x2e3f2b,null,[],_0x55bafd,_0x36c163,_0xbeeb20,_0x50ce13,_0x501eb7),__publicField(this,_0x408594(0x299),_0x408594(0x397)),(this['_injector']=_0x1c14d5,this[_0x408594(0x23a)]=_0x592b67,this[_0x408594(0x176)]=_0x5e2992,this[_0x408594(0x341)]=_0x501eb7);}[_0x4eebac(0x3c8)](_0x585175){var _0x5c895=_0x4eebac;const _0x2c3448=this['_injector']['createInstance'](PendingState,this[_0x5c895(0x31d)],this[_0x5c895(0x41c)],[_0x585175],this[_0x5c895(0x3b2)]);return _0x2c3448['_schedule'](),_0x2c3448['_updateLocalCache'](),_0x2c3448;}[_0x4eebac(0x2e4)](_0x20c7ec){var _0x53f68c=_0x4eebac;if(this['_checkMissing'](_0x20c7ec))return this['_injector'][_0x53f68c(0x145)](FetchingMissState,this[_0x53f68c(0x31d)],this[_0x53f68c(0x41c)],null,[],null,[_0x20c7ec],this[_0x53f68c(0x3b2)]);try{const _0x16514c=this[_0x53f68c(0x176)]['transformMutationsWithChangeset'](_0x20c7ec,[EmptyMutationInfo]);if(isTransformMutationsWithChangesetSuccess(_0x16514c)){const {c1Prime:_0x10c1ae}=_0x16514c;return this[_0x53f68c(0x222)](_0x10c1ae),this;}throw _0x16514c[_0x53f68c(0x154)];}catch(_0x37b5ef){return this[_0x53f68c(0x23a)][_0x53f68c(0x154)](_0x37b5ef),this['_onConflict'](!0x1);}}['_onConflict'](_0x559623){var _0x2461b5=_0x4eebac;return this['_injector'][_0x2461b5(0x145)](ConflictState,this['unitID'],this[_0x2461b5(0x41c)],null,[],this[_0x2461b5(0x3b2)],_0x559623);}[_0x4eebac(0x287)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x4eebac(0x38c)](){var _0x171364=_0x4eebac;throw new Error(_0x171364(0x279));}[_0x4eebac(0x334)](){return this;}[_0x4eebac(0x3a5)](){var _0x29a314=_0x4eebac;return this[_0x29a314(0x2d3)][_0x29a314(0x145)](OfflineState,this[_0x29a314(0x31d)],this[_0x29a314(0x41c)],null,[],this[_0x29a314(0x3b2)]);}[_0x4eebac(0x2a8)](){return this;}[_0x4eebac(0x375)](){var _0x268578=_0x4eebac;throw new Error(_0x268578(0x13c));}[_0x4eebac(0x1c4)](){var _0x3df9fc=_0x4eebac;const _0x238436=this[_0x3df9fc(0x28b)][_0x3df9fc(0x186)](this[_0x3df9fc(0x31d)]);return this[_0x3df9fc(0x3b2)]['onMissingChangesets']({'from':_0x238436,'to':0x0}),this[_0x3df9fc(0x2d3)][_0x3df9fc(0x145)](FetchingMissState,this[_0x3df9fc(0x31d)],this[_0x3df9fc(0x41c)],null,[],null,[],this[_0x3df9fc(0x3b2)]);}},__name(_a6,_0x4eebac(0x2e5)),_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(_0x2a8349,_0x3956fa,_0x1175c9,_0x8433b0,_0x454ea8,_0x5525aa,_0x4f49cf,_0x1110f9,_0x106d61,_0x40a34e,_0x92d7a5,_0x3e12ff,_0x4d7846,_0x50c121){var _0x2a2b96=_0x4eebac;super(_0x2a8349,_0x3956fa,null,_0x1175c9,_0x8433b0,_0x106d61,_0x4d7846,_0x5525aa,_0x50c121),__publicField(this,'status','pending'),__publicField(this,_0x2a2b96(0x12f),null),__publicField(this,'_sendingTimer',null),(this['_injector']=_0x454ea8,this[_0x2a2b96(0x153)]=_0x4f49cf,this[_0x2a2b96(0x23a)]=_0x1110f9,this[_0x2a2b96(0x238)]=_0x40a34e,this[_0x2a2b96(0x176)]=_0x92d7a5,this[_0x2a2b96(0x256)]=_0x3e12ff);}[_0x4eebac(0x3c8)](_0xaf64e2){var _0x13421d=_0x4eebac;return this[_0x13421d(0x321)]['push'](_0xaf64e2),this[_0x13421d(0x2c6)](),this;}['onRemoteChangeset'](_0x50ecbb){var _0x1b23ad=_0x4eebac;if(this[_0x1b23ad(0x174)](_0x50ecbb))return this['_clearScheduledTask'](),this[_0x1b23ad(0x2d3)][_0x1b23ad(0x145)](FetchingMissState,this['unitID'],this[_0x1b23ad(0x41c)],null,this['_pendingMutations'],null,[_0x50ecbb],this[_0x1b23ad(0x3b2)]);try{const _0x3b2ad3=this[_0x1b23ad(0x176)][_0x1b23ad(0x26c)](_0x50ecbb,this[_0x1b23ad(0x321)]);if(isTransformMutationsWithChangesetSuccess(_0x3b2ad3)){const {c1Prime:_0x257e3e,m2Prime:_0x2cf196}=_0x3b2ad3;this[_0x1b23ad(0x222)](_0x257e3e);const _0x4120eb=this[_0x1b23ad(0x2d3)][_0x1b23ad(0x145)](PendingState,this[_0x1b23ad(0x31d)],this[_0x1b23ad(0x41c)],_0x2cf196,this['_handler']);this['_clearScheduledTask']();const _0x2d5c8f=new Date()[_0x1b23ad(0x261)](),_0xd38917=this[_0x1b23ad(0x12f)]?Math[_0x1b23ad(0x32a)](this[_0x1b23ad(0x12f)]-_0x2d5c8f,0x0):this[_0x1b23ad(0x236)]();return _0x4120eb[_0x1b23ad(0x252)](_0xd38917),_0x4120eb;}throw _0x3b2ad3[_0x1b23ad(0x154)];}catch(_0x3e2c44){return this[_0x1b23ad(0x23a)][_0x1b23ad(0x154)](_0x3e2c44),this[_0x1b23ad(0x199)](!0x1);}}[_0x4eebac(0x287)](){var _0x484469=_0x4eebac;throw new Error(_0x484469(0x439));}[_0x4eebac(0x38c)](){var _0x30be50=_0x4eebac;throw new Error(_0x30be50(0x1c7));}[_0x4eebac(0x334)](){return this;}['toggleOffline'](){var _0x5244a2=_0x4eebac;return this[_0x5244a2(0x1cd)](),this[_0x5244a2(0x2d3)]['createInstance'](OfflineState,this['unitID'],this['type'],null,this[_0x5244a2(0x321)],this[_0x5244a2(0x3b2)]);}[_0x4eebac(0x2a8)](){return this;}[_0x4eebac(0x252)](_0x441bf5){var _0x409c41=_0x4eebac;const _0x5e1e67=_0x441bf5!=null?_0x441bf5:this[_0x409c41(0x236)]();this[_0x409c41(0x12f)]=new Date()[_0x409c41(0x261)]()+_0x5e1e67,this[_0x409c41(0x35e)]=setTimeout(()=>{var _0x36a118=_0x409c41;this[_0x36a118(0x1cd)]();let _0x3c9f9b=null;switch(this[_0x36a118(0x41c)]){case UniverType[_0x36a118(0x435)]:{_0x3c9f9b=assembleSheetChangeset(this['_pendingMutations'],this[_0x36a118(0x31d)],this[_0x36a118(0x256)],this[_0x36a118(0x28b)],this[_0x36a118(0x153)]);break;}case UniverType[_0x36a118(0x420)]:{this[_0x36a118(0x321)][_0x36a118(0x259)](_0x41f9cd=>_0x41f9cd['id']===RichTextEditingMutation['id'])?_0x3c9f9b=assembleDocChangeset(this[_0x36a118(0x321)],this[_0x36a118(0x31d)],this[_0x36a118(0x256)],this[_0x36a118(0x28b)],this[_0x36a118(0x153)]):_0x3c9f9b=assembleSheetChangeset(this[_0x36a118(0x321)],this['unitID'],this['_univerInstanceService'],this['_revisionService'],this[_0x36a118(0x153)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x36a118(0x41c)]+_0x36a118(0x347));}const {changeset:_0x345af0,pendingMutations:_0x539044}=_0x3c9f9b;this[_0x36a118(0x3b2)][_0x36a118(0x2ff)](_0x345af0);const _0x5c0980=_0x539044[_0x36a118(0x25b)]?this[_0x36a118(0x2d3)][_0x36a118(0x145)](AwaitingWithPendingState,this[_0x36a118(0x31d)],this[_0x36a118(0x41c)],_0x345af0,_0x539044,this['_handler'],void 0x0):this['_injector'][_0x36a118(0x145)](AwaitingState,this[_0x36a118(0x31d)],this[_0x36a118(0x41c)],_0x345af0,this['_handler']);_0x5c0980['_updateLocalCache'](),this[_0x36a118(0x3b2)]['onStateChange'](this,_0x5c0980);},_0x5e1e67);}[_0x4eebac(0x236)](){var _0x1354f9=_0x4eebac,_0x1e483f;const _0x58797b=this[_0x1354f9(0x238)][_0x1354f9(0x363)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x1e483f=_0x58797b==null?void 0x0:_0x58797b['sendChangesetTimeout'])!=null?_0x1e483f:DEFAULT_SEND_CHANGESET_TIMEOUT;}[_0x4eebac(0x375)](){var _0x2599e8=_0x4eebac;throw new Error(_0x2599e8(0x171));}[_0x4eebac(0x1cd)](){var _0xac59e4=_0x4eebac;this['_sendingTimer']!=null&&(clearTimeout(this[_0xac59e4(0x35e)]),this['_sendingTimer']=null);}[_0x4eebac(0x199)](_0x30caa9){var _0x2236eb=_0x4eebac;return this['_clearScheduledTask'](),this['_injector'][_0x2236eb(0x145)](ConflictState,this[_0x2236eb(0x31d)],this[_0x2236eb(0x41c)],null,this[_0x2236eb(0x321)],this[_0x2236eb(0x3b2)],_0x30caa9);}},__name(_a7,'PendingState'),_a7);PendingState=__decorateClass$d([__decorateParam$d(0x4,Inject(Injector)),__decorateParam$d(0x5,Inject(RevisionService)),__decorateParam$d(0x6,Inject(MemberService)),__decorateParam$d(0x7,ILogService),__decorateParam$d(0x8,ICommandService),__decorateParam$d(0x9,IConfigService),__decorateParam$d(0xa,ITransformService),__decorateParam$d(0xb,IUniverInstanceService),__decorateParam$d(0xc,IUndoRedoService),__decorateParam$d(0xd,Optional(ILocalCacheService))],PendingState);var _a8;let AwaitingState=(_a8=class extends CollaborationState{constructor(_0x208c88,_0x26d6af,_0x2fdc1e,_0x5ed2d6,_0x2901ce,_0x50eff1,_0x3c1ca8,_0xbe82cf,_0x13f1f3,_0x5e6b28,_0xf2100f){var _0x12e8db=_0x4eebac;super(_0x208c88,_0x26d6af,_0x2fdc1e,[],_0x5ed2d6,_0x3c1ca8,_0x5e6b28,_0x50eff1,_0xf2100f),__publicField(this,'status','awaiting'),__publicField(this,_0x12e8db(0x2f8),0x0),__publicField(this,_0x12e8db(0x25e)),__publicField(this,'_sender'),(this[_0x12e8db(0x2d3)]=_0x2901ce,this['_logService']=_0xbe82cf,this[_0x12e8db(0x176)]=_0x13f1f3);}[_0x4eebac(0x3c8)](_0xe042ee){var _0x22578=_0x4eebac;this[_0x22578(0x1cd)]();const _0x48e254=this[_0x22578(0x2d3)][_0x22578(0x145)](AwaitingWithPendingState,this['unitID'],this[_0x22578(0x41c)],this['_awaitingChangeset'],[_0xe042ee],this[_0x22578(0x3b2)],this[_0x22578(0x25e)]);return _0x48e254[_0x22578(0x2c6)](),_0x48e254;}[_0x4eebac(0x2e4)](_0x245cfe){var _0x3b3400=_0x4eebac;if(this[_0x3b3400(0x174)](_0x245cfe))return this[_0x3b3400(0x1cd)](),this[_0x3b3400(0x2d3)][_0x3b3400(0x145)](FetchingMissState,this[_0x3b3400(0x31d)],this[_0x3b3400(0x41c)],this['_awaitingChangeset'],[],null,[_0x245cfe],this[_0x3b3400(0x3b2)]);try{const _0x374ec2=this[_0x3b3400(0x176)][_0x3b3400(0x34f)]([_0x245cfe],[this['_awaitingChangeset']],!0x1);if(isTransformChangesetsSuccess(_0x374ec2)){const {c1Prime:_0x5e3595,c2Prime:_0x3b96b9}=_0x374ec2;this[_0x3b3400(0x222)](_0x5e3595[0x0]),_0x3b96b9[0x0]['baseRev']=this['_getCurrentRevision'](),this[_0x3b3400(0x1cd)]();const _0xcffe8b=this[_0x3b3400(0x2d3)]['createInstance'](AwaitingState,this[_0x3b3400(0x31d)],this[_0x3b3400(0x41c)],_0x3b96b9[0x0],this['_handler']);return _0xcffe8b[_0x3b3400(0x2c6)](),_0xcffe8b;}return this[_0x3b3400(0x199)](!0x1);}catch(_0x380763){return this[_0x3b3400(0x23a)][_0x3b3400(0x154)](_0x380763),this[_0x3b3400(0x199)](!0x1);}}[_0x4eebac(0x287)](_0x3948a2){var _0x5d0f35=_0x4eebac;this[_0x5d0f35(0x1cd)]();const _0x491fb4=this[_0x5d0f35(0x28b)][_0x5d0f35(0x186)](this[_0x5d0f35(0x31d)]);if(_0x3948a2['revision']<_0x491fb4-0x1)return this;if(this[_0x5d0f35(0x174)](_0x3948a2))return this[_0x5d0f35(0x2d3)][_0x5d0f35(0x145)](FetchingMissState,this['unitID'],this[_0x5d0f35(0x41c)],null,[],this[_0x5d0f35(0x27f)],[],this['_handler']);this[_0x5d0f35(0x42e)]();const _0x2b22e7=this[_0x5d0f35(0x2d3)][_0x5d0f35(0x145)](SyncedState,this[_0x5d0f35(0x31d)],this[_0x5d0f35(0x41c)],this[_0x5d0f35(0x3b2)]);return _0x2b22e7[_0x5d0f35(0x2c6)](),_0x2b22e7;}[_0x4eebac(0x38c)](_0x22f7f8){var _0x58905a=_0x4eebac;return this['_onConflict'](!!(_0x22f7f8!=null&&_0x22f7f8[_0x58905a(0x37f)]));}[_0x4eebac(0x334)](_0x408453){var _0x30da14=_0x4eebac;return this[_0x30da14(0x2f8)]>MAX_RETRY_TIMEOUT?this[_0x30da14(0x3a5)]():(this[_0x30da14(0x25e)]=createTimerObservable$(this[_0x30da14(0x2f8)],{'timeout':this['_resendTimeout'],'reqId':_0x408453[_0x30da14(0x16d)]}),this[_0x30da14(0x179)]=this[_0x30da14(0x25e)]['subscribe'](({reqId:_0x195896,timeout:_0x16b98a})=>{var _0x85a5e5=_0x30da14;this[_0x85a5e5(0x354)](_0x195896,_0x16b98a);}),this);}[_0x4eebac(0x3a5)](){var _0x3d87bc=_0x4eebac;return this[_0x3d87bc(0x1cd)](),this[_0x3d87bc(0x2d3)][_0x3d87bc(0x145)](OfflineState,this[_0x3d87bc(0x31d)],this[_0x3d87bc(0x41c)],this[_0x3d87bc(0x27f)],[],this[_0x3d87bc(0x3b2)]);}[_0x4eebac(0x2a8)](){return this;}['resend'](){var _0x3f9897=_0x4eebac;this[_0x3f9897(0x3b2)][_0x3f9897(0x2ff)](this[_0x3f9897(0x27f)]);}[_0x4eebac(0x199)](_0x8a0010){var _0x15621d=_0x4eebac;return this[_0x15621d(0x1cd)](),this[_0x15621d(0x2d3)][_0x15621d(0x145)](ConflictState,this[_0x15621d(0x31d)],this[_0x15621d(0x41c)],this[_0x15621d(0x27f)],[],this[_0x15621d(0x3b2)],_0x8a0010);}['_resendWithTimeout'](_0xe9f328,_0xf41641){var _0x31abcf=_0x4eebac,_0x2ce4d7;_0xe9f328===((_0x2ce4d7=this[_0x31abcf(0x27f)])==null?void 0x0:_0x2ce4d7[_0x31abcf(0x16d)])&&(this[_0x31abcf(0x375)](),this[_0x31abcf(0x2f8)]=_0xf41641===0x0?0x3e8:_0xf41641*0x2);}[_0x4eebac(0x1cd)](){var _0x46a8ae=_0x4eebac,_0x32194c;(_0x32194c=this[_0x46a8ae(0x179)])==null||_0x32194c[_0x46a8ae(0x23f)](),this[_0x46a8ae(0x2f8)]=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(_0x44af87,_0x31f232,_0x32f39f,_0x400a2a,_0x3ff3db,_0x118365,_0x366f90,_0x5e55f2,_0x5cee0e,_0x5c7a19,_0x155804,_0xb1666d,_0x469ed2){var _0x152a6e=_0x4eebac;super(_0x44af87,_0x31f232,_0x32f39f,_0x400a2a,_0x3ff3db,_0x5cee0e,_0xb1666d,_0x5e55f2,_0x469ed2),__publicField(this,_0x152a6e(0x299),_0x152a6e(0x1ab)),__publicField(this,'_resendTimeout',0x0),__publicField(this,_0x152a6e(0x25e)),__publicField(this,_0x152a6e(0x179)),(this[_0x152a6e(0x2d3)]=_0x366f90,this[_0x152a6e(0x23a)]=_0x5c7a19,this['_transformService']=_0x155804,this[_0x152a6e(0x341)]=_0x469ed2,_0x118365&&(this[_0x152a6e(0x25e)]=_0x118365,this[_0x152a6e(0x179)]=this[_0x152a6e(0x25e)]['subscribe'](({reqId:_0xfd57e0,timeout:_0x56e23a})=>{var _0x3d72aa=_0x152a6e;this[_0x3d72aa(0x354)](_0xfd57e0,_0x56e23a);})));}[_0x4eebac(0x3c8)](_0x2a3129){var _0xcca505=_0x4eebac;return this[_0xcca505(0x321)][_0xcca505(0x2cd)](_0x2a3129),this;}[_0x4eebac(0x2e4)](_0x3a0c1d){var _0x24437c=_0x4eebac;if(this[_0x24437c(0x174)](_0x3a0c1d))return this[_0x24437c(0x1cd)](),this[_0x24437c(0x2d3)][_0x24437c(0x145)](FetchingMissState,this[_0x24437c(0x31d)],this[_0x24437c(0x41c)],this[_0x24437c(0x27f)],this[_0x24437c(0x321)],null,[_0x3a0c1d],this['_handler']);try{const _0xdbba02=this[_0x24437c(0x176)]['transformChangesets']([_0x3a0c1d],[this[_0x24437c(0x27f)]],!0x1);if(isTransformChangesetsSuccess(_0xdbba02)){const {c1Prime:_0x13c861,c2Prime:_0x2791e1}=_0xdbba02,_0x1a2c86=this[_0x24437c(0x176)][_0x24437c(0x26c)](_0x13c861[0x0],this['_pendingMutations']);if(isTransformMutationsWithChangesetSuccess(_0x1a2c86)){const {c1Prime:_0x55ad6b,m2Prime:_0x20bfd2}=_0x1a2c86;return this[_0x24437c(0x222)](_0x55ad6b),_0x2791e1[0x0]['baseRev']=this[_0x24437c(0x150)](),this[_0x24437c(0x1cd)](),this[_0x24437c(0x2d3)]['createInstance'](AwaitingWithPendingState,this['unitID'],this[_0x24437c(0x41c)],_0x2791e1[0x0],_0x20bfd2,this['_handler'],void 0x0);}throw _0x1a2c86[_0x24437c(0x154)];}throw _0xdbba02[_0x24437c(0x154)];}catch(_0x30a79b){return this[_0x24437c(0x23a)]['error'](_0x30a79b),this[_0x24437c(0x199)](!0x1);}}['onRemoteAck'](_0xdb852c){var _0x52b8a9=_0x4eebac;if(this['_clearScheduledTask'](),this[_0x52b8a9(0x174)](_0xdb852c))return this[_0x52b8a9(0x2d3)][_0x52b8a9(0x145)](FetchingMissState,this[_0x52b8a9(0x31d)],this[_0x52b8a9(0x41c)],null,this[_0x52b8a9(0x321)],this[_0x52b8a9(0x27f)],[],this[_0x52b8a9(0x3b2)]);this[_0x52b8a9(0x42e)]();const _0x28813a=this[_0x52b8a9(0x2d3)][_0x52b8a9(0x145)](PendingState,this[_0x52b8a9(0x31d)],this[_0x52b8a9(0x41c)],this[_0x52b8a9(0x321)],this[_0x52b8a9(0x3b2)]);return _0x28813a['_schedule'](),_0x28813a['_updateLocalCache'](),_0x28813a;}[_0x4eebac(0x38c)](_0x58d0b6){var _0x5a85b5=_0x4eebac;return this[_0x5a85b5(0x199)](!!(_0x58d0b6!=null&&_0x58d0b6[_0x5a85b5(0x37f)]));}[_0x4eebac(0x334)](_0x349fb3){var _0x4256f0=_0x4eebac;return this[_0x4256f0(0x2f8)]>MAX_RETRY_TIMEOUT?this[_0x4256f0(0x3a5)]():(this[_0x4256f0(0x25e)]=createTimerObservable$(this[_0x4256f0(0x2f8)],{'timeout':this['_resendTimeout'],'reqId':_0x349fb3[_0x4256f0(0x16d)]}),this[_0x4256f0(0x179)]=this[_0x4256f0(0x25e)]['subscribe'](({reqId:_0x750f72,timeout:_0x54e6a3})=>{var _0xbfca0c=_0x4256f0;this[_0xbfca0c(0x354)](_0x750f72,_0x54e6a3);}),this);}[_0x4eebac(0x3a5)](){var _0x4a5c27=_0x4eebac;return this[_0x4a5c27(0x1cd)](),this[_0x4a5c27(0x2d3)][_0x4a5c27(0x145)](OfflineState,this[_0x4a5c27(0x31d)],this['type'],this['_awaitingChangeset'],this[_0x4a5c27(0x321)],this[_0x4a5c27(0x3b2)]);}[_0x4eebac(0x2a8)](){return this;}[_0x4eebac(0x375)](){var _0x2de02c=_0x4eebac;this[_0x2de02c(0x3b2)][_0x2de02c(0x2ff)](this[_0x2de02c(0x27f)]);}[_0x4eebac(0x199)](_0x1ffd0b){var _0x1e842b=_0x4eebac;return this[_0x1e842b(0x1cd)](),this[_0x1e842b(0x2d3)][_0x1e842b(0x145)](ConflictState,this[_0x1e842b(0x31d)],this[_0x1e842b(0x41c)],null,this[_0x1e842b(0x321)],this['_handler'],_0x1ffd0b);}['_resendWithTimeout'](_0xd3810b,_0x1f81e4){var _0x24884b=_0x4eebac,_0x400cf7;_0xd3810b===((_0x400cf7=this['_awaitingChangeset'])==null?void 0x0:_0x400cf7['reqId'])&&(this[_0x24884b(0x375)](),this['_resendTimeout']=_0x1f81e4===0x0?0x3e8:_0x1f81e4*0x2);}[_0x4eebac(0x1cd)](){var _0x3fcf0c=_0x4eebac,_0x4114e9;(_0x4114e9=this[_0x3fcf0c(0x179)])==null||_0x4114e9[_0x3fcf0c(0x23f)](),this[_0x3fcf0c(0x2f8)]=0x0;}},__name(_a9,'AwaitingWithPendingState'),_a9);AwaitingWithPendingState=__decorateClass$d([__decorateParam$d(0x6,Inject(Injector)),__decorateParam$d(0x7,Inject(RevisionService)),__decorateParam$d(0x8,ICommandService),__decorateParam$d(0x9,ILogService),__decorateParam$d(0xa,ITransformService),__decorateParam$d(0xb,IUndoRedoService),__decorateParam$d(0xc,Optional(ILocalCacheService))],AwaitingWithPendingState);var _a10;let ConflictState=(_a10=class extends CollaborationState{constructor(_0x24acff,_0x13b886,_0x27564a,_0x17fce5,_0x367c40,_0x37783e=!0x1,_0x2f5014,_0x58b0a8,_0x3690ca,_0xcc5555,_0x401eb1,_0x50030d,_0x532c95){var _0x10273c=_0x4eebac;super(_0x24acff,_0x13b886,_0x27564a,_0x17fce5,_0x367c40,_0x58b0a8,_0x3690ca,_0xcc5555,_0x532c95),__publicField(this,'status',_0x10273c(0x3fb)),(this['_isPermissionRej']=_0x37783e,this[_0x10273c(0x325)]=_0x2f5014,this[_0x10273c(0x3b8)]=_0x401eb1,this[_0x10273c(0x3f1)]=_0x50030d,this[_0x10273c(0x341)]=_0x532c95,this[_0x10273c(0x345)](),this[_0x10273c(0x40a)](),this[_0x10273c(0x2ae)]());}[_0x4eebac(0x3c8)](){return this;}[_0x4eebac(0x2e4)](){return this;}['onRemoteAck'](){return this;}[_0x4eebac(0x38c)](){return this;}[_0x4eebac(0x334)](){return this;}[_0x4eebac(0x3a5)](){return this;}[_0x4eebac(0x2a8)](){return this;}['resend'](){var _0x476d12=_0x4eebac;throw new Error(_0x476d12(0x392));}['_clearLocalCache'](){var _0x3a43d9=_0x4eebac,_0x572b20;(_0x572b20=this[_0x3a43d9(0x2c4)])==null||_0x572b20[_0x3a43d9(0x22a)](this['unitID'],this[_0x3a43d9(0x41c)],null,[]);}[_0x4eebac(0x345)](){var _0x3b7a37=_0x4eebac;this['_isPermissionRej']?this['_collaborationUIEventService'][_0x3b7a37(0x414)]({'id':CollaborationUIEventId[_0x3b7a37(0x3fd)]}):this[_0x3b7a37(0x3f1)][_0x3b7a37(0x414)]({'id':CollaborationUIEventId[_0x3b7a37(0x1d0)]});}[_0x4eebac(0x2ae)](){var _0x19168f=_0x4eebac;this[_0x19168f(0x325)][_0x19168f(0x3bd)](new WorkbookEditablePermission(this[_0x19168f(0x31d)])['id'],!0x1);}},__name(_a10,_0x4eebac(0x332)),_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(_0x3dcf53,_0x13eaf9,_0x5d6cf7,_0x3d9563,_0x31b46c,_0x2efc5b,_0x33f774,_0x17899f,_0x227570,_0x2bbd82){var _0x2f530c=_0x4eebac;super(_0x3dcf53,_0x13eaf9,_0x5d6cf7,_0x3d9563,_0x31b46c,_0x17899f,_0x227570,_0x33f774,_0x2bbd82),__publicField(this,_0x2f530c(0x299),'offline'),this[_0x2f530c(0x2d3)]=_0x2efc5b;}['appendMutation'](_0x2bbfc3){var _0x4b3ba7=_0x4eebac;return this['_pendingMutations'][_0x4b3ba7(0x2cd)](_0x2bbfc3),this[_0x4b3ba7(0x2c6)](),this;}[_0x4eebac(0x2e4)](_0x37c700){var _0x2300bf=_0x4eebac;throw new Error(_0x2300bf(0x373));}['onRemoteAck'](){var _0x270792=_0x4eebac;throw new Error(_0x270792(0x386));}[_0x4eebac(0x38c)](){var _0x451bc2=_0x4eebac;throw new Error(_0x451bc2(0x2d5));}[_0x4eebac(0x334)](){return this;}[_0x4eebac(0x3a5)](){return this;}['toggleOnline'](){var _0x15448a=_0x4eebac;const {_injector:_0x1018a2,_pendingMutations:_0x384928,_awaitingChangeset:_0x5bd007,unitID:_0x328e81,_handler:_0xc2f37d,type:_0x44e237}=this,_0x327189=createOnlineState(_0x1018a2,_0x328e81,_0x44e237,_0x5bd007,_0x384928,_0xc2f37d);return _0x327189 instanceof PendingState?_0x327189[_0x15448a(0x252)]():(_0x327189 instanceof AwaitingWithPendingState||_0x327189 instanceof AwaitingState)&&_0x327189[_0x15448a(0x375)](),_0x327189;}[_0x4eebac(0x375)](){var _0x5abd41=_0x4eebac;throw new Error(_0x5abd41(0x15a));}},__name(_a11,_0x4eebac(0x402)),_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(_0x40b04c,_0x3531fa,_0x159559,_0x432489,_0x2f7299,_0x3050db,_0x12c62a,_0x562d7f,_0x2507c8,_0x88783a,_0x2a598b,_0x376ae1,_0x1a722a,_0x461c76){var _0x33ae7c=_0x4eebac;super(_0x40b04c,_0x3531fa,_0x159559,_0x432489,_0x12c62a,_0x2a598b,_0x376ae1,_0x2507c8,_0x461c76),__publicField(this,_0x33ae7c(0x299),'fetch_missing'),(this[_0x33ae7c(0x240)]=_0x2f7299,this[_0x33ae7c(0x40e)]=_0x3050db,this['_injector']=_0x562d7f,this[_0x33ae7c(0x23a)]=_0x88783a,this[_0x33ae7c(0x176)]=_0x1a722a,this[_0x33ae7c(0x341)]=_0x461c76);}[_0x4eebac(0x3d8)](_0x55c866){var _0x4595eb=_0x4eebac;try{const _0x5642ec=[..._0x55c866,...this[_0x4595eb(0x40e)]],_0xcc10b3=[this[_0x4595eb(0x27f)]||this[_0x4595eb(0x240)]][_0x4595eb(0x281)](_0x3c4d80=>!!_0x3c4d80);let _0x521ed5,_0xa03c7a;if(_0xcc10b3[_0x4595eb(0x25b)]){const _0x49b6be=this[_0x4595eb(0x176)][_0x4595eb(0x34f)](_0x5642ec,_0xcc10b3,!0x1);if(!isTransformChangesetsSuccess(_0x49b6be))throw _0x49b6be[_0x4595eb(0x154)];_0x521ed5=_0x49b6be[_0x4595eb(0x19a)],_0xa03c7a=_0x49b6be[_0x4595eb(0x182)];}else _0x521ed5=_0x5642ec,_0xa03c7a=[];let _0x1b2bd5=this[_0x4595eb(0x321)];_0x521ed5[_0x4595eb(0x436)](_0x39f8e2=>{var _0x4d4541=_0x4595eb;let _0x5c47d0;if(_0x1b2bd5['length']){const _0x4cdfc3=this[_0x4d4541(0x176)][_0x4d4541(0x26c)](_0x39f8e2,_0x1b2bd5);if(!isTransformMutationsWithChangesetSuccess(_0x4cdfc3))throw _0x4cdfc3[_0x4d4541(0x154)];_0x5c47d0=_0x4cdfc3['c1Prime'],_0x1b2bd5=_0x4cdfc3['m2Prime'];}else _0x5c47d0=_0x39f8e2;this[_0x4d4541(0x222)](_0x5c47d0);}),this[_0x4595eb(0x240)]&&this[_0x4595eb(0x42e)](),this['_awaitingChangeset']&&_0xa03c7a[_0x4595eb(0x25b)]&&(_0xa03c7a[0x0][_0x4595eb(0x29c)]=this[_0x4595eb(0x150)]());let _0x23d955;if(this[_0x4595eb(0x27f)]&&_0x1b2bd5['length']!==0x0)_0x23d955=this[_0x4595eb(0x2d3)][_0x4595eb(0x145)](AwaitingWithPendingState,this['unitID'],this[_0x4595eb(0x41c)],_0xa03c7a[0x0],_0x1b2bd5,this['_handler'],void 0x0);else{if(this[_0x4595eb(0x27f)]&&_0x1b2bd5[_0x4595eb(0x25b)]===0x0)_0xa03c7a[0x0][_0x4595eb(0x29c)]=this['_getCurrentRevision'](),_0x23d955=this[_0x4595eb(0x2d3)][_0x4595eb(0x145)](AwaitingState,this[_0x4595eb(0x31d)],this[_0x4595eb(0x41c)],_0xa03c7a[0x0],this[_0x4595eb(0x3b2)]);else{if(_0x1b2bd5['length']!==0x0){const _0x1ead37=this['_injector'][_0x4595eb(0x145)](PendingState,this['unitID'],this[_0x4595eb(0x41c)],_0x1b2bd5,this[_0x4595eb(0x3b2)]);_0x1ead37[_0x4595eb(0x252)](),_0x23d955=_0x1ead37;}else _0x23d955=this[_0x4595eb(0x2d3)][_0x4595eb(0x145)](SyncedState,this[_0x4595eb(0x31d)],this['type'],this[_0x4595eb(0x3b2)]);}}return _0x23d955[_0x4595eb(0x2c6)](),_0x23d955;}catch(_0x5119c9){return this[_0x4595eb(0x23a)][_0x4595eb(0x154)]('[FetchMissState]','failed\x20to\x20apply\x20missed\x20changesets!',_0x5119c9),this['_injector'][_0x4595eb(0x145)](ConflictState,this[_0x4595eb(0x31d)],this['type'],this[_0x4595eb(0x27f)],this[_0x4595eb(0x321)],this[_0x4595eb(0x3b2)],!0x1);}}[_0x4eebac(0x375)](){var _0x40e043=_0x4eebac;throw new Error(_0x40e043(0x419));}[_0x4eebac(0x3c8)](_0xf9eebf){var _0x3bd201=_0x4eebac;return this[_0x3bd201(0x321)][_0x3bd201(0x2cd)](_0xf9eebf),this;}[_0x4eebac(0x2e4)](_0x43fb9f){var _0x2c925a=_0x4eebac;return this[_0x2c925a(0x40e)][_0x2c925a(0x2cd)](_0x43fb9f),this;}[_0x4eebac(0x287)](_0x556b99){var _0x2d3ef3=_0x4eebac;if(this['_awaitingChangeset'])return this[_0x2d3ef3(0x240)]=this[_0x2d3ef3(0x27f)],this['_awaitingChangeset']=null,this;throw new Error(_0x2d3ef3(0x2c7));}[_0x4eebac(0x38c)](_0x1f912e){var _0x3feab7=_0x4eebac;return this[_0x3feab7(0x199)](!!(_0x1f912e!=null&&_0x1f912e['isPermissionRej']));}['onRemoteRetry'](){return this;}['toggleOffline'](){var _0x533e3a=_0x4eebac;return this[_0x533e3a(0x2d3)]['createInstance'](OfflineState,this['unitID'],this[_0x533e3a(0x41c)],this['_awaitingChangeset'],this['_pendingMutations'],this[_0x533e3a(0x3b2)]);}[_0x4eebac(0x2a8)](){return this;}['_onConflict'](_0xd7467c){var _0x28809f=_0x4eebac;return this['_injector']['createInstance'](ConflictState,this[_0x28809f(0x31d)],this[_0x28809f(0x41c)],this['_awaitingChangeset'],this[_0x28809f(0x321)],this[_0x28809f(0x3b2)],_0xd7467c);}},__name(_a12,_0x4eebac(0x2a4)),_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(_0x4d98ff,_0x1d07c8,_0x54ff41,_0x4ce212,_0x465026,_0x53cd33){var _0x175666=_0x4eebac;return _0x4ce212&&_0x465026['length']?_0x4d98ff[_0x175666(0x145)](AwaitingWithPendingState,_0x1d07c8,_0x54ff41,_0x4ce212,_0x465026,_0x53cd33,void 0x0):_0x4ce212?_0x4d98ff['createInstance'](AwaitingState,_0x1d07c8,_0x54ff41,_0x4ce212,_0x53cd33):_0x465026[_0x175666(0x25b)]?_0x4d98ff[_0x175666(0x145)](PendingState,_0x1d07c8,_0x54ff41,_0x465026,_0x53cd33):_0x4d98ff[_0x175666(0x145)](SyncedState,_0x1d07c8,_0x54ff41,_0x53cd33);}__name(createOnlineState,'createOnlineState');var __defProp$c=Object[_0x4eebac(0x18f)],__getOwnPropDesc$c=Object[_0x4eebac(0x2a7)],__decorateClass$c=__name((_0x125abc,_0x54a93b,_0x4ef024,_0x3a0883)=>{var _0x43094e=_0x4eebac;for(var _0x4c4b45=_0x3a0883>0x1?void 0x0:_0x3a0883?__getOwnPropDesc$c(_0x54a93b,_0x4ef024):_0x54a93b,_0x15c910=_0x125abc[_0x43094e(0x25b)]-0x1,_0x2988b5;_0x15c910>=0x0;_0x15c910--)(_0x2988b5=_0x125abc[_0x15c910])&&(_0x4c4b45=(_0x3a0883?_0x2988b5(_0x54a93b,_0x4ef024,_0x4c4b45):_0x2988b5(_0x4c4b45))||_0x4c4b45);return _0x3a0883&&_0x4c4b45&&__defProp$c(_0x54a93b,_0x4ef024,_0x4c4b45),_0x4c4b45;},_0x4eebac(0x30e)),__decorateParam$c=__name((_0x576e21,_0x23787f)=>(_0x3eb4a1,_0xfb5810)=>_0x23787f(_0x3eb4a1,_0xfb5810,_0x576e21),_0x4eebac(0x3f8)),_a13;let CollaborationEntity=(_a13=class extends RxDisposable{constructor(_0x482f65,_0x2f40c7,_0x5ccc86,_0x1c71e3,_0x36e3f4,_0x396069,_0x29e2c9,_0x2c74c2,_0x4985d9,_0x418d4d,_0x293d90,_0x3bfc29,_0x8f45cb){var _0x53e028=_0x4eebac;super(),__publicField(this,_0x53e028(0x3ce),new BehaviorSubject(null)),__publicField(this,_0x53e028(0x395),this[_0x53e028(0x3ce)][_0x53e028(0x39c)]()),__publicField(this,_0x53e028(0x214)),__publicField(this,_0x53e028(0x33b),!0x1),__publicField(this,_0x53e028(0x36b),''),__publicField(this,_0x53e028(0x218),0x0),__publicField(this,_0x53e028(0x31c),this[_0x53e028(0x395)][_0x53e028(0x385)](_0x274555(_0x3ebafd=>_0x3ebafd?_0x3ebafd[_0x53e028(0x299)]:CollaborationStatus['OFFLINE']),shareReplay(0x1))),__publicField(this,'_transitionLocked',!0x1),__publicField(this,'_remoteChangesetQueue',[]),(this[_0x53e028(0x31d)]=_0x482f65,this[_0x53e028(0x424)]=_0x2f40c7,this[_0x53e028(0x3a2)]=_0x5ccc86,this['_injector']=_0x1c71e3,this['_compressMutationService']=_0x36e3f4,this[_0x53e028(0x3b8)]=_0x396069,this[_0x53e028(0x28b)]=_0x29e2c9,this[_0x53e028(0x2ba)]=_0x2c74c2,this[_0x53e028(0x23a)]=_0x4985d9,this[_0x53e028(0x10c)]=_0x418d4d,this['_permissionService']=_0x293d90,this[_0x53e028(0x30c)]=_0x3bfc29,this[_0x53e028(0x2c4)]=_0x8f45cb);}get[_0x4eebac(0x391)](){var _0x43805c=_0x4eebac;return this[_0x43805c(0x214)];}async[_0x4eebac(0x351)](){var _0x55315a=_0x4eebac;if(this[_0x55315a(0x391)])throw new Error(_0x55315a(0x123));await this[_0x55315a(0x303)]();}['pauseCollaboration'](){var _0x3741ff=_0x4eebac;return this[_0x3741ff(0x33b)]=!0x0,toDisposable(()=>{var _0x51a2ea=_0x3741ff;this[_0x51a2ea(0x33b)]=!0x1,this[_0x51a2ea(0x229)]();});}[_0x4eebac(0x282)](_0x2db7cb){this['_onLocalMutation'](_0x2db7cb);}[_0x4eebac(0x13b)](_0x219524){var _0xf3e0e4=_0x4eebac;this[_0xf3e0e4(0x214)]=_0x219524,this[_0xf3e0e4(0x3ce)][_0xf3e0e4(0x225)](_0x219524);}async[_0x4eebac(0x303)](){var _0x4e91bf=_0x4eebac,_0x10bae5;this['_updateState'](await this[_0x4e91bf(0x1a7)]()),this['_singleActiveUnitService']&&((_0x10bae5=this[_0x4e91bf(0x30c)])==null||_0x10bae5[_0x4e91bf(0x177)](this[_0x4e91bf(0x31d)]),this[_0x4e91bf(0x378)](this[_0x4e91bf(0x30c)][_0x4e91bf(0x313)](this[_0x4e91bf(0x31d)])['subscribe'](_0xf64bf5=>{var _0x2b2eae=_0x4e91bf;this[_0x2b2eae(0x23a)][_0x2b2eae(0x1f8)](_0x2b2eae(0x107),'editing\x20status\x20changed\x20to',_0xf64bf5),_0xf64bf5===UnitStatus[_0x2b2eae(0x10b)]?(this[_0x2b2eae(0x2ba)][_0x2b2eae(0x414)]({'id':CollaborationUIEventId['OTHER_CLIENT_EDITING']}),this[_0x2b2eae(0x325)]['updatePermissionPoint'](new WorkbookEditablePermission(this['unitID'])['id'],!0x1),this[_0x2b2eae(0x325)][_0x2b2eae(0x21b)](!0x1)):(this['_permissionService'][_0x2b2eae(0x3bd)](new WorkbookEditablePermission(this['unitID'])['id'],!0x0),this['_permissionService'][_0x2b2eae(0x21b)](!0x0));})));let _0x3df7ab=!0x1;return this[_0x4e91bf(0x378)](this['session'][_0x4e91bf(0x24b)][_0x4e91bf(0x127)](_0x4c60d7=>{var _0x3dc690=_0x4e91bf;_0x4c60d7===SessionStatus['ONLINE']?this['_toggleOnline'](_0x3df7ab):_0x4c60d7===SessionStatus['OFFLINE']&&(_0x3df7ab=!0x0,this[_0x3dc690(0x358)]());})),this['disposeWithMe'](this[_0x4e91bf(0x424)][_0x4e91bf(0x368)]['subscribe'](_0x28c597=>{var _0xda9e49=_0x4e91bf;try{switch(_0x28c597['eventID']){case CollaborationEvent[_0xda9e49(0x416)]:{this[_0xda9e49(0x1a2)](parseProtocolChangeset(_0x28c597[_0xda9e49(0x142)]));break;}case CollaborationEvent[_0xda9e49(0x271)]:{this['_onRemoteACK'](_0x28c597[_0xda9e49(0x142)]);break;}case CollaborationEvent[_0xda9e49(0x3f0)]:{this[_0xda9e49(0x405)]();break;}case CollaborationEvent[_0xda9e49(0x38f)]:{this[_0xda9e49(0x3a9)](_0x28c597['data']);break;}case CollaborationEvent[_0xda9e49(0x324)]:{this[_0xda9e49(0x10e)](_0x28c597[_0xda9e49(0x142)]['changesets'][_0xda9e49(0x106)](_0x448148=>parseProtocolChangeset(_0x448148)));break;}case CollaborationEvent[_0xda9e49(0x204)]:{this['_onRemoteRejected']({'isPermissionRej':!0x0});break;}case CollaborationEvent[_0xda9e49(0x25c)]:break;}}catch(_0x38f337){throw console['error']('Error\x20on\x20receiving\x20event',_0x38f337),_0x38f337;}})),this[_0x4e91bf(0x214)];}[_0x4eebac(0x403)](){var _0x52cb98=_0x4eebac;this[_0x52cb98(0x2c8)]=!0x1;}[_0x4eebac(0x32c)](){var _0x2c5027=_0x4eebac;if(this[_0x2c5027(0x2c8)])throw new Error(_0x2c5027(0x14d));this[_0x2c5027(0x2c8)]=!0x0;}[_0x4eebac(0x2b4)](_0x2c3bff){var _0x2e7eef=_0x4eebac;this[_0x2e7eef(0x32c)](),this[_0x2e7eef(0x13b)](this[_0x2e7eef(0x214)][_0x2e7eef(0x3c8)](_0x2c3bff)),this[_0x2e7eef(0x403)]();}[_0x4eebac(0x1a2)](_0x473c3a){var _0x34f0c7=_0x4eebac;if(!(_0x473c3a['revision']<=this[_0x34f0c7(0x28b)]['getCurrentRevOfUnit'](this['unitID']))){if(this['_collaborationPaused']){this['_remoteChangesetQueue'][_0x34f0c7(0x2cd)](_0x473c3a);return;}this['_applyRemoteChangeset'](_0x473c3a);}}[_0x4eebac(0x229)](){var _0x48045e=_0x4eebac;this['_remoteChangesetQueue']['forEach'](_0x32e36c=>this[_0x48045e(0x1f4)](_0x32e36c)),this[_0x48045e(0x18c)]=[];}[_0x4eebac(0x1f4)](_0x218ed0){var _0x1f4dbe=_0x4eebac;const _0x42ad71=this['_compressMutationService'][_0x1f4dbe(0x2c1)]['fetchThroughInterceptors'](this[_0x1f4dbe(0x116)][_0x1f4dbe(0x2c1)][_0x1f4dbe(0x2fb)]()[_0x1f4dbe(0x2de)])(_0x218ed0[_0x1f4dbe(0x387)],null)||_0x218ed0[_0x1f4dbe(0x387)],_0x377ab0={..._0x218ed0,'mutations':_0x42ad71};this[_0x1f4dbe(0x32c)](),this[_0x1f4dbe(0x13b)](this['_state'][_0x1f4dbe(0x2e4)](_0x377ab0)),this[_0x1f4dbe(0x403)]();}['_onRemoteACK'](_0xcc3c3f){var _0x32d8c0=_0x4eebac;this[_0x32d8c0(0x32c)](),this[_0x32d8c0(0x13b)](this[_0x32d8c0(0x214)]['onRemoteAck'](_0xcc3c3f)),this['_unlockTransition']();}[_0x4eebac(0x405)](_0x4bb206){var _0x21d657=_0x4eebac;this['_lockTransition'](),this[_0x21d657(0x13b)](this[_0x21d657(0x214)][_0x21d657(0x38c)](_0x4bb206)),this[_0x21d657(0x403)]();}['_onRemoteRetry'](_0x268c91){var _0x136d6d=_0x4eebac;this[_0x136d6d(0x32c)](),this[_0x136d6d(0x13b)](this['_state'][_0x136d6d(0x334)](_0x268c91)),this[_0x136d6d(0x403)]();}[_0x4eebac(0x10e)](_0x3326d0){var _0x5477f0=_0x4eebac;if(!(this[_0x5477f0(0x214)]instanceof FetchingMissState))throw new TypeError(_0x5477f0(0x29d));const _0x1d181a=_0x3326d0[_0x5477f0(0x106)](_0x5a053f=>{var _0x5b90f6=_0x5477f0;const _0x2459f8=this['_compressMutationService'][_0x5b90f6(0x2c1)][_0x5b90f6(0x1b3)](this['_compressMutationService'][_0x5b90f6(0x2c1)]['getInterceptPoints']()['COMPRESS_MUTATION_APPLY'])(_0x5a053f[_0x5b90f6(0x387)],null)||_0x5a053f[_0x5b90f6(0x387)];return{..._0x5a053f,'mutations':_0x2459f8};});this[_0x5477f0(0x32c)](),this['_updateState'](this[_0x5477f0(0x214)][_0x5477f0(0x3d8)](_0x1d181a)),this[_0x5477f0(0x403)]();}[_0x4eebac(0x358)](){var _0x25200a=_0x4eebac;this[_0x25200a(0x32c)](),this[_0x25200a(0x13b)](this[_0x25200a(0x214)][_0x25200a(0x3a5)]()),this[_0x25200a(0x403)]();}[_0x4eebac(0x258)](_0x56055a=!0x1){var _0x2f7fce=_0x4eebac;this[_0x2f7fce(0x32c)](),this['_updateState'](this['_state'][_0x2f7fce(0x2a8)]()),this[_0x2f7fce(0x403)]();const _0x15a54f=this[_0x2f7fce(0x214)];_0x56055a&&_0x15a54f instanceof SyncedState&&(this[_0x2f7fce(0x32c)](),this['_updateState'](_0x15a54f[_0x2f7fce(0x1c4)]()),this[_0x2f7fce(0x403)]());}async[_0x4eebac(0x1a7)](){return new Promise(_0x300855=>{var _0x47ca0f=_0x5570;this['session'][_0x47ca0f(0x24b)][_0x47ca0f(0x385)](_0x3e406a(0x1))['subscribe'](async _0x5ced0d=>{var _0x594f3e=_0x47ca0f;_0x300855(await this[_0x594f3e(0x187)](_0x5ced0d===SessionStatus[_0x594f3e(0x1f6)]));});});}['_createHandler'](){var _0x492ac5=_0x4eebac;const _0xc779ff=this[_0x492ac5(0x31d)];return{'onStateChange':__name((_0x19c1d4,_0x26cf2e)=>{var _0x1e675f=_0x492ac5;if(_0x19c1d4!==this['_state'])throw new Error(_0x1e675f(0x232)+_0x19c1d4[_0x1e675f(0x299)]+'\x0aAfter:\x20'+_0x26cf2e[_0x1e675f(0x299)]+_0x1e675f(0x393)+this[_0x1e675f(0x214)][_0x1e675f(0x299)]);this[_0x1e675f(0x13b)](_0x26cf2e);},'onStateChange'),'onSendChangeset':__name(_0x1649d6=>{var _0x2dcb58=_0x492ac5;_0x1649d6[_0x2dcb58(0x144)]||(_0x1649d6['sid']=this['_changesetSessionId'],_0x1649d6[_0x2dcb58(0x16d)]=++this[_0x2dcb58(0x218)]);const _0x3a3fb9={'eventID':CollaborationEvent['SUBMIT_CHANGESET'],'data':{'unitID':_0x1649d6[_0x2dcb58(0x31d)],'unitType':this['_type'],'changeset':_0x1649d6,'memberID':this[_0x2dcb58(0x424)][_0x2dcb58(0x335)]()}};this[_0x2dcb58(0x424)][_0x2dcb58(0x1cc)](_0x3a3fb9,this['unitID']);},_0x492ac5(0x2ff)),'onMissingChangesets':__name(({from:_0x471ae5,to:_0x50aa3c})=>{var _0x1141ce=_0x492ac5;this[_0x1141ce(0x23a)][_0x1141ce(0x1f8)]('[CollaborationEntity]',_0x1141ce(0x2e9)+_0x471ae5+_0x1141ce(0x1b4)+_0x50aa3c);const _0x3e774a={'eventID':CollaborationEvent[_0x1141ce(0x3aa)],'data':{'unitID':_0xc779ff,'unitType':this['_type'],'from':_0x471ae5,'to':_0x50aa3c}};this[_0x1141ce(0x424)]['send'](_0x3e774a,this[_0x1141ce(0x31d)]);},_0x492ac5(0x191))};}async[_0x4eebac(0x187)](_0x9cafad){var _0xb52550=_0x4eebac,_0x322bd9,_0x53c251,_0x3baeb6;const _0x4de93a=await((_0x322bd9=this[_0xb52550(0x2c4)])==null?void 0x0:_0x322bd9['loadOfflineData'](this['unitID'])),_0xed7e1b=(_0x53c251=_0x4de93a==null?void 0x0:_0x4de93a[_0xb52550(0x387)])!=null?_0x53c251:[],_0x30c56e=(_0x3baeb6=_0x4de93a==null?void 0x0:_0x4de93a[_0xb52550(0x151)])!=null?_0x3baeb6:null,_0x4e0437=!!(_0x30c56e!=null&&_0x30c56e[_0xb52550(0x144)])&&!!(_0x30c56e!=null&&_0x30c56e[_0xb52550(0x16d)]);this['_changesetSessionId']=_0x4e0437?_0x30c56e[_0xb52550(0x144)]:v4(),this['_changesetReqId']=_0x4e0437?_0x30c56e[_0xb52550(0x16d)]:0x0;const _0xbdcb3a=this[_0xb52550(0x31d)];try{this[_0xb52550(0x1a1)](_0x30c56e,_0xed7e1b);}catch(_0x1ac5ac){this[_0xb52550(0x23a)][_0xb52550(0x154)](_0x1ac5ac);}const _0x1d466e=this['_createHandler']();if(_0x9cafad){const _0x69f00b=createOnlineState(this['_injector'],_0xbdcb3a,this[_0xb52550(0x3a2)],_0x30c56e,_0xed7e1b,_0x1d466e);return _0x69f00b instanceof PendingState?_0x69f00b[_0xb52550(0x252)]():(_0x69f00b instanceof AwaitingWithPendingState||_0x69f00b instanceof AwaitingState)&&_0x69f00b[_0xb52550(0x375)](),_0x69f00b;}return this['_injector'][_0xb52550(0x145)](OfflineState,_0xbdcb3a,this[_0xb52550(0x3a2)],_0x30c56e,_0xed7e1b,_0x1d466e);}[_0x4eebac(0x1a1)](_0x1ab989,_0x16a177){var _0x2f6838=_0x4eebac,_0x2ecdf6,_0x26549e;const _0x466370=this['_compressMutationService'][_0x2f6838(0x2c1)][_0x2f6838(0x1b3)](this[_0x2f6838(0x116)][_0x2f6838(0x2c1)][_0x2f6838(0x2fb)]()['COMPRESS_MUTATION_APPLY']);(_0x2ecdf6=_0x466370((_0x1ab989==null?void 0x0:_0x1ab989['mutations'])||[],null))==null||_0x2ecdf6['forEach'](_0x6cda5e=>this[_0x2f6838(0x10c)][_0x2f6838(0x210)](_0x6cda5e['id'],_0x6cda5e[_0x2f6838(0x148)])),(_0x26549e=_0x466370(_0x16a177||[],null))==null||_0x26549e[_0x2f6838(0x436)](_0x4d7bb5=>this['_commandService'][_0x2f6838(0x210)](_0x4d7bb5['id'],_0x4d7bb5[_0x2f6838(0x148)]));}},__name(_a13,_0x4eebac(0x17e)),_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(_0x9752ec,_0x36d80b,_0x2ba5e1,_0x2ff23d,_0x44123c,_0x334345,_0x4aa4bb,_0x13f5e7,_0x28938a,_0x161cc3,_0x173ae6,_0x4c55ce,_0x9c93b8){var _0x26492e=_0x4eebac;super(_0x9752ec,_0x2ba5e1,_0x36d80b,_0x2ff23d,_0x44123c,_0x334345,_0x4aa4bb,_0x13f5e7,_0x28938a,_0x161cc3,_0x173ae6,_0x4c55ce,_0x9c93b8),__publicField(this,'_handlerCallback',null),(this[_0x26492e(0x31d)]=_0x9752ec,this[_0x26492e(0x41c)]=_0x36d80b);}[_0x4eebac(0x39a)](_0x4d21fd){var _0x4631c0=_0x4eebac;this[_0x4631c0(0x336)]=_0x4d21fd;}[_0x4eebac(0x273)](){var _0x11f4d4=_0x4eebac;this['_handlerCallback']=null,super[_0x11f4d4(0x273)]();}[_0x4eebac(0x1d2)](){var _0x181f6e=_0x4eebac;const _0x53f1e1=super[_0x181f6e(0x1d2)]();return _0x53f1e1[_0x181f6e(0x3dd)]=_0x24f6ec=>{var _0x19d2ce=_0x181f6e,_0xe3e096,_0x3845e4;return(_0x3845e4=(_0xe3e096=this[_0x19d2ce(0x336)])==null?void 0x0:_0xe3e096[_0x19d2ce(0x3dd)])==null?void 0x0:_0x3845e4[_0x19d2ce(0x413)](_0xe3e096,_0x24f6ec);},_0x53f1e1[_0x181f6e(0x3cf)]=_0x3bce64=>{var _0x2792dc=_0x181f6e,_0x303e5a,_0x29a097;return(_0x29a097=(_0x303e5a=this[_0x2792dc(0x336)])==null?void 0x0:_0x303e5a[_0x2792dc(0x3cf)])==null?void 0x0:_0x29a097[_0x2792dc(0x413)](_0x303e5a,_0x3bce64);},_0x53f1e1[_0x181f6e(0x251)]=_0x148309=>{var _0x4778d4=_0x181f6e,_0x3a5d29,_0x526718;return(_0x526718=(_0x3a5d29=this[_0x4778d4(0x336)])==null?void 0x0:_0x3a5d29[_0x4778d4(0x251)])==null?void 0x0:_0x526718[_0x4778d4(0x413)](_0x3a5d29,_0x148309);},_0x53f1e1[_0x181f6e(0x1c0)]=_0x18d6d2=>{var _0xc8a1cf=_0x181f6e,_0x413964,_0x5c938c;return(_0x5c938c=(_0x413964=this[_0xc8a1cf(0x336)])==null?void 0x0:_0x413964[_0xc8a1cf(0x1c0)])==null?void 0x0:_0x5c938c[_0xc8a1cf(0x413)](_0x413964,_0x18d6d2);},_0x53f1e1[_0x181f6e(0x100)]=_0x4075e7=>{var _0x37212c=_0x181f6e,_0x4b4d53,_0x169324,_0xeea8d4;if(!((_0x4b4d53=this[_0x37212c(0x336)])!=null&&_0x4b4d53['onTransformRemoteChangesetByIMECache']))throw new Error(_0x37212c(0x16b));return(_0xeea8d4=(_0x169324=this[_0x37212c(0x336)])==null?void 0x0:_0x169324[_0x37212c(0x100)])==null?void 0x0:_0xeea8d4[_0x37212c(0x413)](_0x169324,_0x4075e7);},_0x53f1e1['onTransformRemoteChangesetByStateCache']=_0x6fee8c=>{var _0x4ef22a=_0x181f6e,_0x14aa91,_0x5e587d,_0x546b00;if(!((_0x14aa91=this['_handlerCallback'])!=null&&_0x14aa91[_0x4ef22a(0x22f)]))throw new Error(_0x4ef22a(0x2e3));return(_0x546b00=(_0x5e587d=this[_0x4ef22a(0x336)])==null?void 0x0:_0x5e587d[_0x4ef22a(0x22f)])==null?void 0x0:_0x546b00[_0x4ef22a(0x413)](_0x5e587d,_0x6fee8c);},_0x53f1e1;}async['_init'](){var _0x1711e9=_0x4eebac;const _0x116765=await super[_0x1711e9(0x303)]();return this[_0x1711e9(0x378)](this[_0x1711e9(0x10c)][_0x1711e9(0x41b)]((_0x1735de,_0x8528aa)=>{var _0x607026=_0x1711e9;if(_0x1735de[_0x607026(0x41c)]!==CommandType[_0x607026(0x3f6)]||_0x8528aa!=null&&_0x8528aa[_0x607026(0x443)]||_0x8528aa!=null&&_0x8528aa[_0x607026(0x224)]||_0x1735de['id']===RichTextEditingMutation['id'])return;const _0x2a2ea6=_0x1735de[_0x607026(0x148)];if((_0x2a2ea6==null?void 0x0:_0x2a2ea6['unitId'])!==this[_0x607026(0x31d)])return;const _0x1f9a09=_0x1735de,_0x5dcf52=this[_0x607026(0x116)][_0x607026(0x2c1)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x607026(0x2c1)][_0x607026(0x2fb)]()[_0x607026(0x32d)])([_0x1f9a09],null)||[_0x1f9a09];this[_0x607026(0x2b4)](_0x5dcf52[0x0]);})),_0x116765;}},__name(_a14,_0x4eebac(0x1f5)),_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(_0x89478d,_0x44b7a8,_0x1c53e0,_0x7f42c,_0x5d0076,_0x39f40a,_0x37da65,_0x3fad5b,_0x22679d,_0x195fad,_0x2ba773,_0x46a7ca,_0x4c7f0f,_0x27fe2e){var _0x1d43f3=_0x4eebac;super(_0x89478d,_0x1c53e0,_0x44b7a8,_0x7f42c,_0x5d0076,_0x39f40a,_0x37da65,_0x22679d,_0x195fad,_0x2ba773,_0x46a7ca,_0x4c7f0f,_0x27fe2e),this['unitID']=_0x89478d,this[_0x1d43f3(0x41c)]=_0x44b7a8,this['_sheetTransformSelectionsService']=_0x3fad5b;}[_0x4eebac(0x1d2)](){var _0x234298=_0x4eebac;const _0x413bb7=super[_0x234298(0x1d2)]();return _0x413bb7[_0x234298(0x251)]=_0x244d1a=>this[_0x234298(0x1ec)][_0x234298(0x294)](_0x244d1a),_0x413bb7;}async[_0x4eebac(0x303)](){var _0x2b4a27=_0x4eebac;const _0x284af3=await super[_0x2b4a27(0x303)]();return this[_0x2b4a27(0x378)](this[_0x2b4a27(0x10c)][_0x2b4a27(0x41b)]((_0x104f32,_0x76758c)=>{var _0x26a4de=_0x2b4a27;if(_0x104f32[_0x26a4de(0x41c)]!==CommandType[_0x26a4de(0x3f6)]||_0x76758c!=null&&_0x76758c[_0x26a4de(0x443)]||_0x76758c!=null&&_0x76758c[_0x26a4de(0x224)])return;const _0xde4c04=_0x104f32[_0x26a4de(0x148)];if((_0xde4c04==null?void 0x0:_0xde4c04[_0x26a4de(0x2d6)])!==this[_0x26a4de(0x31d)])return;const _0x233f68=_0x104f32,_0x16d6d6=this[_0x26a4de(0x116)][_0x26a4de(0x2c1)]['fetchThroughInterceptors'](this[_0x26a4de(0x116)][_0x26a4de(0x2c1)][_0x26a4de(0x2fb)]()['COMPRESS_MUTATION_SEND'])([_0x233f68],null)||[_0x233f68];this[_0x26a4de(0x2b4)](_0x16d6d6[0x0]);})),_0x284af3;}},__name(_a15,_0x4eebac(0x246)),_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[_0x4eebac(0x18f)],__getOwnPropDesc$b=Object[_0x4eebac(0x2a7)],__decorateClass$b=__name((_0xf7810d,_0x32b753,_0x544e07,_0x3a7a61)=>{var _0x1bdca1=_0x4eebac;for(var _0x3c3429=_0x3a7a61>0x1?void 0x0:_0x3a7a61?__getOwnPropDesc$b(_0x32b753,_0x544e07):_0x32b753,_0x4d9167=_0xf7810d[_0x1bdca1(0x25b)]-0x1,_0x44b270;_0x4d9167>=0x0;_0x4d9167--)(_0x44b270=_0xf7810d[_0x4d9167])&&(_0x3c3429=(_0x3a7a61?_0x44b270(_0x32b753,_0x544e07,_0x3c3429):_0x44b270(_0x3c3429))||_0x3c3429);return _0x3a7a61&&_0x3c3429&&__defProp$b(_0x32b753,_0x544e07,_0x3c3429),_0x3c3429;},_0x4eebac(0x2ea)),__decorateParam$b=__name((_0x281b81,_0xbd2b10)=>(_0x5797cb,_0x521688)=>_0xbd2b10(_0x5797cb,_0x521688,_0x281b81),_0x4eebac(0x42f)),_a16;let CollaborationController=(_a16=class extends RxDisposable{constructor(_0x28e834,_0x3b952f,_0x3695c6){var _0xd413b3=_0x4eebac;super(),__publicField(this,_0xd413b3(0x226),new Map()),__publicField(this,'_entityInit$',new Subject()),__publicField(this,_0xd413b3(0x38a),this['_entityInit$'][_0xd413b3(0x39c)]()),(this[_0xd413b3(0x2d3)]=_0x28e834,this[_0xd413b3(0x349)]=_0x3b952f,this[_0xd413b3(0x256)]=_0x3695c6,this[_0xd413b3(0x303)]());}[_0x4eebac(0x273)](){var _0x252a42=_0x4eebac;super[_0x252a42(0x273)](),this['_entities'][_0x252a42(0x436)](_0x235301=>_0x235301[_0x252a42(0x273)]()),this[_0x252a42(0x226)]['clear']();}[_0x4eebac(0x260)](_0x131c06){var _0x2e229f=_0x4eebac,_0x7fdd79;return(_0x7fdd79=this[_0x2e229f(0x226)][_0x2e229f(0x28a)](_0x131c06))!=null?_0x7fdd79:null;}[_0x4eebac(0x380)](_0xbdb597){var _0x1c4931=_0x4eebac;const _0x4965f6=this['getCollabEntity'](_0xbdb597);return _0x4965f6?of(_0x4965f6):this[_0x1c4931(0x2ee)]['pipe'](filter(_0x1ef285=>_0x1ef285[_0x1c4931(0x31d)]===_0xbdb597));}['readyForCollab'](_0x4bfcd8){var _0x413100=_0x4eebac;return firstValueFrom(this[_0x413100(0x380)](_0x4bfcd8)['pipe'](map(()=>{})));}[_0x4eebac(0x303)](){var _0x1c28b1=_0x4eebac;this[_0x1c28b1(0x256)][_0x1c28b1(0x1a5)](UniverInstanceType[_0x1c28b1(0x435)])[_0x1c28b1(0x385)](takeUntil(this[_0x1c28b1(0x168)]),delay(0x10))['subscribe'](async _0x3a4ebc=>{var _0x4dc4bd=_0x1c28b1;const _0x432e71=_0x3a4ebc[_0x4dc4bd(0x31e)](),_0x76d052=await this[_0x4dc4bd(0x15d)](_0x432e71,UniverType[_0x4dc4bd(0x435)]);this[_0x4dc4bd(0x226)][_0x4dc4bd(0x36d)](_0x432e71,_0x76d052);}),this[_0x1c28b1(0x256)]['getTypeOfUnitAdded$'](UniverInstanceType[_0x1c28b1(0x420)])[_0x1c28b1(0x385)](takeUntil(this[_0x1c28b1(0x168)]),delay(0x10))[_0x1c28b1(0x385)](filter(_0x367c33=>!_0x367c33['getUnitId']()[_0x1c28b1(0x213)]('__')))[_0x1c28b1(0x127)](async _0x3f0620=>{var _0x2aa4be=_0x1c28b1;const _0x256e0a=_0x3f0620['getUnitId'](),_0x42be38=await this[_0x2aa4be(0x15d)](_0x256e0a,UniverType[_0x2aa4be(0x420)]);this[_0x2aa4be(0x226)][_0x2aa4be(0x36d)](_0x256e0a,_0x42be38);}),merge(this['_univerInstanceService'][_0x1c28b1(0x102)](UniverInstanceType[_0x1c28b1(0x435)]),this[_0x1c28b1(0x256)][_0x1c28b1(0x102)](UniverInstanceType[_0x1c28b1(0x420)]))[_0x1c28b1(0x385)](takeUntil(this['dispose$']))[_0x1c28b1(0x127)](_0xa87c6e=>{var _0x4daa8d=_0x1c28b1;const _0xdf0f06=_0xa87c6e['getUnitId'](),_0x3edad7=this[_0x4daa8d(0x226)][_0x4daa8d(0x28a)](_0xdf0f06);_0x3edad7&&(_0x3edad7['dispose'](),this['_entities'][_0x4daa8d(0x390)](_0xdf0f06));});}async[_0x4eebac(0x15d)](_0x2fa450,_0x34ef1d){var _0x5759da=_0x4eebac;const _0x56d154=await this[_0x5759da(0x349)][_0x5759da(0x21c)](_0x2fa450),_0x4f82af=this[_0x5759da(0x2d3)][_0x5759da(0x145)](this[_0x5759da(0x1b5)](_0x34ef1d),_0x2fa450,_0x34ef1d,_0x56d154);return await _0x4f82af[_0x5759da(0x351)](),this['_entityInit$'][_0x5759da(0x225)](_0x4f82af),_0x4f82af;}['_getCtorByUniverType'](_0x2cc40c){var _0x2019e7=_0x4eebac;switch(_0x2cc40c){case UniverType['UNIVER_DOC']:return DocCollaborationEntity;case UniverType[_0x2019e7(0x435)]:return SheetCollaborationEntity;default:throw new Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x2cc40c);}}},__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['defineProperty'],__getOwnPropDesc$a=Object[_0x4eebac(0x2a7)],__decorateClass$a=__name((_0x44561c,_0x1c26b2,_0x599a6b,_0x4a7b06)=>{var _0x57bbc7=_0x4eebac;for(var _0x3c5319=_0x4a7b06>0x1?void 0x0:_0x4a7b06?__getOwnPropDesc$a(_0x1c26b2,_0x599a6b):_0x1c26b2,_0x741dd5=_0x44561c[_0x57bbc7(0x25b)]-0x1,_0x56cc38;_0x741dd5>=0x0;_0x741dd5--)(_0x56cc38=_0x44561c[_0x741dd5])&&(_0x3c5319=(_0x4a7b06?_0x56cc38(_0x1c26b2,_0x599a6b,_0x3c5319):_0x56cc38(_0x3c5319))||_0x3c5319);return _0x4a7b06&&_0x3c5319&&__defProp$a(_0x1c26b2,_0x599a6b,_0x3c5319),_0x3c5319;},_0x4eebac(0x360)),__decorateParam$a=__name((_0x440585,_0x4a49a5)=>(_0x58ae20,_0x1ae452)=>_0x4a49a5(_0x58ae20,_0x1ae452,_0x440585),'__decorateParam$a');const DEFAULT_FILE_NAME_KEY='DEFAULT_FILE_NAME',UNIVER_DEFAULT_FILE_NAME=_0x4eebac(0x16c);var _a17;let FileNameController=(_a17=class extends Disposable{constructor(_0x3313a3,_0x3a099e){var _0x36ccd7=_0x4eebac;super(),this['_univerInstanceService']=_0x3313a3,this[_0x36ccd7(0x238)]=_0x3a099e,this[_0x36ccd7(0x303)]();}['_init'](){var _0xbe9ca1=_0x4eebac;this['disposeWithMe'](this[_0xbe9ca1(0x256)]['focused$']['subscribe'](()=>{var _0x44833b=_0xbe9ca1,_0x51c7bc;const _0x4266d8=this[_0x44833b(0x256)][_0x44833b(0x36a)]();let _0x118b26=(_0x51c7bc=this[_0x44833b(0x238)][_0x44833b(0x363)](DEFAULT_FILE_NAME_KEY))!=null?_0x51c7bc:UNIVER_DEFAULT_FILE_NAME;_0x4266d8 instanceof Workbook&&(_0x118b26=_0x4266d8['name']),document['title']=_0x118b26;}));}},__name(_a17,'FileNameController'),_a17);FileNameController=__decorateClass$a([__decorateParam$a(0x0,IUniverInstanceService),__decorateParam$a(0x1,IConfigService)],FileNameController);var __defProp$9=Object['defineProperty'],__getOwnPropDesc$9=Object['getOwnPropertyDescriptor'],__decorateClass$9=__name((_0x287d38,_0x10a80f,_0x2c76c6,_0x187ed9)=>{var _0x5132af=_0x4eebac;for(var _0x454e3d=_0x187ed9>0x1?void 0x0:_0x187ed9?__getOwnPropDesc$9(_0x10a80f,_0x2c76c6):_0x10a80f,_0x189a60=_0x287d38[_0x5132af(0x25b)]-0x1,_0x2b0259;_0x189a60>=0x0;_0x189a60--)(_0x2b0259=_0x287d38[_0x189a60])&&(_0x454e3d=(_0x187ed9?_0x2b0259(_0x10a80f,_0x2c76c6,_0x454e3d):_0x2b0259(_0x454e3d))||_0x454e3d);return _0x187ed9&&_0x454e3d&&__defProp$9(_0x10a80f,_0x2c76c6,_0x454e3d),_0x454e3d;},_0x4eebac(0x3ed)),__decorateParam$9=__name((_0x46ef80,_0x462b10)=>(_0x1b6a59,_0x18699e)=>_0x462b10(_0x1b6a59,_0x18699e,_0x46ef80),_0x4eebac(0x3af)),_a18;let AuthServerService=(_a18=class{constructor(_0x221252,_0x3c3eff,_0x1caaf6){var _0x1312f0=_0x4eebac;this[_0x1312f0(0x238)]=_0x221252,this[_0x1312f0(0x129)]=_0x3c3eff,this[_0x1312f0(0x132)]=_0x1caaf6,this[_0x1312f0(0x351)]();}[_0x4eebac(0x351)](){var _0x495f72=_0x4eebac;this[_0x495f72(0x129)][_0x495f72(0x36e)]({'priority':0x1,'interceptor':__name((_0x382fb7,_0x108101)=>_0x108101(_0x382fb7)[_0x495f72(0x385)](concatMap(async _0x3c19b9=>{var _0x3b74e6=_0x495f72;const _0x2ca25a=_0x3c19b9;if(_0x2ca25a[_0x3b74e6(0x299)]===0x191){if(typeof window>'u')throw new Error(_0x3b74e6(0x175));if(window[_0x3b74e6(0x2fc)](this[_0x3b74e6(0x132)]['t'](_0x3b74e6(0x24a)))){const _0x4aa287=window['encodeURIComponent'](window[_0x3b74e6(0x404)]['href']);window[_0x3b74e6(0x404)]['href']=this[_0x3b74e6(0x1e5)]()+_0x3b74e6(0x427)+_0x4aa287;}}return _0x2ca25a;})),_0x495f72(0x2c1))});}['_getLoginPath'](){var _0x1244e9=_0x4eebac,_0x5a6faf,_0x4ecc27;const _0x436c8e=this[_0x1244e9(0x238)]['getConfig'](LOGIN_URL_KEY),_0x5e8990=this[_0x1244e9(0x238)][_0x1244e9(0x363)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x4ecc27=(_0x5a6faf=_0x5e8990==null?void 0x0:_0x5e8990['loginUrlKey'])!=null?_0x5a6faf:_0x436c8e)!=null?_0x4ecc27:DEFAULT_LOGIN_URL;}},__name(_a18,_0x4eebac(0x1cb)),_a18);AuthServerService=__decorateClass$9([__decorateParam$9(0x0,IConfigService),__decorateParam$9(0x1,Inject(HTTPService)),__decorateParam$9(0x2,Inject(LocaleService))],AuthServerService);var __defProp$8=Object['defineProperty'],__getOwnPropDesc$8=Object[_0x4eebac(0x2a7)],__decorateClass$8=__name((_0x3d2255,_0x24be64,_0x4a30b5,_0x1e981d)=>{for(var _0x47d10c=_0x1e981d>0x1?void 0x0:_0x1e981d?__getOwnPropDesc$8(_0x24be64,_0x4a30b5):_0x24be64,_0x44281c=_0x3d2255['length']-0x1,_0x3ea0d3;_0x44281c>=0x0;_0x44281c--)(_0x3ea0d3=_0x3d2255[_0x44281c])&&(_0x47d10c=(_0x1e981d?_0x3ea0d3(_0x24be64,_0x4a30b5,_0x47d10c):_0x3ea0d3(_0x47d10c))||_0x47d10c);return _0x1e981d&&_0x47d10c&&__defProp$8(_0x24be64,_0x4a30b5,_0x47d10c),_0x47d10c;},_0x4eebac(0x220)),__decorateParam$8=__name((_0x2c2076,_0x3f5fa4)=>(_0x352603,_0x3678c0)=>_0x3f5fa4(_0x352603,_0x3678c0,_0x2c2076),_0x4eebac(0x3a7));const AUTHZ_URL_KEY='AUTHZ_URL_KEY',DEFAULT_AUTHZ_URL_KEY$1=_0x4eebac(0x24c);var _a19;let AuthzIoHttpService=(_a19=class extends Disposable{constructor(_0x92f730,_0x4a0cf5){var _0x48335f=_0x4eebac;super(),this[_0x48335f(0x3cd)]=_0x92f730,this[_0x48335f(0x238)]=_0x4a0cf5,this['_initMergeInterceptor']();}[_0x4eebac(0x41f)](){var _0x111c30=_0x4eebac;const _0x1740e4=this;this[_0x111c30(0x378)](this['_HTTPService'][_0x111c30(0x36e)]({'priority':0x3e7,'interceptor':MergeInterceptorFactory({'isMatch'(_0x4a4138){var _0x4ce3e6=_0x111c30,_0x238649;if(_0x4a4138[_0x4ce3e6(0x2c5)]===_0x4ce3e6(0x15f)&&((_0x238649=_0x4a4138['requestParams'])!=null&&_0x238649[_0x4ce3e6(0x326)])){const {objectID:_0x10bbf5,objectType:_0x2cf400}=_0x4a4138['requestParams'][_0x4ce3e6(0x326)]||{};if(!_0x10bbf5||_0x2cf400===void 0x0)return!0x1;const _0x499684=_0x1740e4['_getAPIPrefixPath']()+'/'+_0x2cf400+_0x4ce3e6(0x3b9)+_0x10bbf5+_0x4ce3e6(0x2ed);if(_0x4a4138['url']===_0x499684)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x5477c6){var _0x1dde57=_0x111c30,_0x30a509;return(_0x30a509=_0x5477c6[_0x1dde57(0x20a)])==null?void 0x0:_0x30a509[_0x1dde57(0x326)];},'mergeParamsToRequest'(_0x42b788,_0x611178){var _0x46b538=_0x111c30;const _0x16e46a=_0x1740e4[_0x46b538(0x3fc)]()+'/-/object/-/batch_allowed',_0x5d9eef=_0x42b788[_0x46b538(0x16e)]((_0xedf8d,_0x134c07)=>{var _0x3a7a07=_0x46b538;const {unitID:_0x46ff90,objectID:_0xf1e2f3,objectType:_0x2a85c5,actions:_0x384638}=_0x134c07;return _0xedf8d[_0x46ff90]||(_0xedf8d[_0x46ff90]={}),_0xedf8d[_0x46ff90][_0xf1e2f3]||(_0xedf8d[_0x46ff90][_0xf1e2f3]={'objectID':_0xf1e2f3,'objectType':_0x2a85c5,'actions':[]}),_0xedf8d[_0x46ff90][_0xf1e2f3][_0x3a7a07(0x3c1)]['push'](..._0x384638),_0xedf8d;},{}),_0x34e602=[];for(const _0x24e12f in _0x5d9eef)for(const _0x3a3a2f in _0x5d9eef[_0x24e12f]){const {actions:_0x151b04,objectType:_0x26b819}=_0x5d9eef[_0x24e12f][_0x3a3a2f],_0x55dcc0=[...new Set(_0x151b04)];_0x34e602[_0x46b538(0x2cd)]({'unitID':_0x24e12f,'objectID':_0x3a3a2f,'objectType':_0x26b819,'actions':_0x55dcc0});}return new HTTPRequest(_0x46b538(0x15f),_0x16e46a,{'headers':_0x611178[_0x46b538(0x376)],'withCredentials':_0x611178[_0x46b538(0x207)],'responseType':_0x611178[_0x46b538(0x22c)],'body':{'requests':_0x34e602}});}},{'distributeResult'(_0xf7c8bc,_0x1d0628){var _0x16ac34=_0x111c30;const {objectActions:_0x750531}=_0xf7c8bc;return _0x1d0628[_0x16ac34(0x106)](_0x42b968=>{var _0x75ff6a=_0x16ac34;const {unitID:_0x31a5ec,objectID:_0x4d016e,actions:_0x835ec1}=_0x42b968,_0x24f34a=_0x750531['find'](_0x5d1c4a=>_0x5d1c4a[_0x75ff6a(0x31d)]===_0x31a5ec&&_0x5d1c4a[_0x75ff6a(0x163)]===_0x4d016e),_0xef8a2=_0x835ec1[_0x75ff6a(0x106)](_0x43f77e=>_0x24f34a==null?void 0x0:_0x24f34a[_0x75ff6a(0x3c1)]['find'](_0x20bcd4=>_0x20bcd4[_0x75ff6a(0x362)]===_0x43f77e))[_0x75ff6a(0x281)](_0x3aa640=>!!_0x3aa640);return{'config':_0x42b968,'result':{'actions':_0xef8a2,'error':_0xf7c8bc['error']}};});}})}));}[_0x4eebac(0x3fc)](){var _0x4c3235=_0x4eebac,_0x1630a8,_0xb302f7;const _0x30de72=this['_configService'][_0x4c3235(0x363)](AUTHZ_URL_KEY),_0xa41914=this[_0x4c3235(0x238)][_0x4c3235(0x363)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0xb302f7=(_0x1630a8=_0xa41914==null?void 0x0:_0xa41914[_0x4c3235(0x295)])!=null?_0x1630a8:_0x30de72)!=null?_0xb302f7:DEFAULT_AUTHZ_URL_KEY$1;}async[_0x4eebac(0x254)](_0xb9f93b){var _0xf7d041=_0x4eebac;const _0x5f1148=this[_0xf7d041(0x3fc)]()+'/'+_0xb9f93b[_0xf7d041(0x1a9)]+_0xf7d041(0x3c9);return(await this['_HTTPService'][_0xf7d041(0x370)](_0x5f1148,{'body':_0xb9f93b}))[_0xf7d041(0x326)][_0xf7d041(0x163)]||'';}async[_0x4eebac(0x2bd)](_0x3cd773){var _0x34f555=_0x4eebac;const _0x502bda=this[_0x34f555(0x3fc)]()+_0x34f555(0x330);return(await this[_0x34f555(0x3cd)]['post'](_0x502bda,{'body':_0x3cd773}))['body']['objects'];}async[_0x4eebac(0x442)](_0x7392f7){var _0x30717b=_0x4eebac;const _0x3904db=this[_0x30717b(0x3fc)]()+'/'+_0x7392f7['objectType']+_0x30717b(0x3b9)+_0x7392f7[_0x30717b(0x163)];await this[_0x30717b(0x3cd)][_0x30717b(0x2f6)](_0x3904db,{'body':_0x7392f7});}async[_0x4eebac(0x24d)](_0x1a052e){var _0x5e7ff2=_0x4eebac;const _0x244e53=this['_getAPIPrefixPath']()+'/'+_0x1a052e['objectType']+_0x5e7ff2(0x3b9)+_0x1a052e['objectID']+_0x5e7ff2(0x2ed);return(await this['_HTTPService']['post'](_0x244e53,{'body':_0x1a052e}))[_0x5e7ff2(0x326)]['actions'];}async['batchAllowed'](_0xa25a4){var _0xcb435c=_0x4eebac;const _0x302b13=this[_0xcb435c(0x3fc)]()+_0xcb435c(0x339);return(await this[_0xcb435c(0x3cd)][_0xcb435c(0x370)](_0x302b13,{'body':{'requests':_0xa25a4}}))[_0xcb435c(0x326)][_0xcb435c(0x300)];}async[_0x4eebac(0x3e6)](_0x103bac){var _0x2e6a64=_0x4eebac;const _0x233b7a=this[_0x2e6a64(0x3fc)]()+'/'+_0x103bac[_0x2e6a64(0x1a9)]+_0x2e6a64(0x109),_0x345670=await this[_0x2e6a64(0x3cd)][_0x2e6a64(0x370)](_0x233b7a,{'body':_0x103bac});return{'roles':_0x345670[_0x2e6a64(0x326)]['roles'],'actions':_0x345670['body']['actions']};}async[_0x4eebac(0x43d)](_0x143634){var _0x438242=_0x4eebac;const _0x1696dd=this[_0x438242(0x3fc)]()+_0x438242(0x3b3);await this[_0x438242(0x3cd)][_0x438242(0x390)](_0x1696dd,{'params':{'collaboratorID':_0x143634[_0x438242(0x136)],'objectID':_0x143634[_0x438242(0x163)],'unitID':_0x143634[_0x438242(0x31d)]}});}async[_0x4eebac(0x367)](_0x55ef20){var _0x11aea1=_0x4eebac;const _0xfbedc5=this[_0x11aea1(0x3fc)]()+_0x11aea1(0x3b3);await this['_HTTPService'][_0x11aea1(0x3ca)](_0xfbedc5,{'body':_0x55ef20});}async['createCollaborator'](_0x4c097d){var _0x2dfb3d=_0x4eebac;const _0x206fc0=this[_0x2dfb3d(0x3fc)]()+_0x2dfb3d(0x3b3);await this[_0x2dfb3d(0x3cd)][_0x2dfb3d(0x370)](_0x206fc0,{'body':_0x4c097d});}async[_0x4eebac(0x29f)](_0x3427b7){var _0x48868f=_0x4eebac;const _0xe1bbad=this[_0x48868f(0x3fc)]()+_0x48868f(0x3b3);return(await this[_0x48868f(0x3cd)][_0x48868f(0x28a)](_0xe1bbad,{'params':{'objectID':_0x3427b7[_0x48868f(0x163)],'unitID':_0x3427b7[_0x48868f(0x31d)]}}))[_0x48868f(0x326)][_0x48868f(0x2cc)];}async['putCollaborators'](_0x2e083d){var _0x454bb8=_0x4eebac;const _0xe727c2=this[_0x454bb8(0x3fc)]()+_0x454bb8(0x3b3);await this[_0x454bb8(0x3cd)][_0x454bb8(0x2f6)](_0xe727c2,{'body':_0x2e083d});}},__name(_a19,_0x4eebac(0x438)),_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(_0x314908){var _0x5d4dbf=_0x4eebac;return _0x314908&&_0x314908[_0x5d4dbf(0x37c)]&&Object[_0x5d4dbf(0x430)][_0x5d4dbf(0x21a)][_0x5d4dbf(0x413)](_0x314908,_0x5d4dbf(0x2c2))?_0x314908[_0x5d4dbf(0x2c2)]:_0x314908;}__name(getDefaultExportFromCjs,'getDefaultExportFromCjs');var aes$1={'exports':{}};function commonjsRequire(_0x4eca02){var _0xee4ca6=_0x4eebac;throw new Error(_0xee4ca6(0x1b0)+_0x4eca02+'\x22.\x20Please\x20configure\x20the\x20dynamicRequireTargets\x20or/and\x20ignoreDynamicRequires\x20option\x20of\x20@rollup/plugin-commonjs\x20appropriately\x20for\x20this\x20require\x20call\x20to\x20work.');}__name(commonjsRequire,'commonjsRequire');var core$1={'exports':{}},core=core$1[_0x4eebac(0x3b0)],hasRequiredCore;function requireCore(){var _0x19e009=_0x4eebac;return hasRequiredCore||(hasRequiredCore=0x1,function(_0x4f6dee,_0x58afd7){(function(_0x244f25,_0x5198ed){var _0x492ee7=_0x5570;_0x4f6dee[_0x492ee7(0x3b0)]=_0x5198ed();}(core,function(){var _0x4195d2=_0x4195d2||function(_0x5ec389,_0x45a633){var _0x15fdea=_0x5570,_0x4e5180;if(typeof window<'u'&&window[_0x15fdea(0x320)]&&(_0x4e5180=window['crypto']),typeof self<'u'&&self['crypto']&&(_0x4e5180=self[_0x15fdea(0x320)]),typeof globalThis<'u'&&globalThis[_0x15fdea(0x320)]&&(_0x4e5180=globalThis[_0x15fdea(0x320)]),!_0x4e5180&&typeof window<'u'&&window[_0x15fdea(0x421)]&&(_0x4e5180=window['msCrypto']),!_0x4e5180&&typeof commonjsGlobal<'u'&&commonjsGlobal[_0x15fdea(0x320)]&&(_0x4e5180=commonjsGlobal[_0x15fdea(0x320)]),!_0x4e5180&&typeof commonjsRequire==_0x15fdea(0x249))try{_0x4e5180=require(_0x15fdea(0x320));}catch{}var _0x35aeb7=__name(function(){var _0x1a8791=_0x15fdea;if(_0x4e5180){if(typeof _0x4e5180[_0x1a8791(0x197)]=='function')try{return _0x4e5180[_0x1a8791(0x197)](new Uint32Array(0x1))[0x0];}catch{}if(typeof _0x4e5180[_0x1a8791(0x2f4)]==_0x1a8791(0x249))try{return _0x4e5180['randomBytes'](0x4)[_0x1a8791(0x1ee)]();}catch{}}throw new Error(_0x1a8791(0x2f1));},'cryptoSecureRandomInt'),_0x22af24=Object[_0x15fdea(0x254)]||(function(){function _0x347443(){}return __name(_0x347443,'F'),function(_0x2dbb04){var _0x2d8ba8=_0x5570,_0x49c1cb;return _0x347443['prototype']=_0x2dbb04,_0x49c1cb=new _0x347443(),_0x347443[_0x2d8ba8(0x430)]=null,_0x49c1cb;};}()),_0x363e9b={},_0x3f166a=_0x363e9b['lib']={},_0x2a1ee5=_0x3f166a[_0x15fdea(0x159)]=(function(){var _0x25174f=_0x15fdea;return{'extend':__name(function(_0x49762a){var _0x3b3632=_0x5570,_0x4f38f4=_0x22af24(this);return _0x49762a&&_0x4f38f4[_0x3b3632(0x3f5)](_0x49762a),(!_0x4f38f4[_0x3b3632(0x21a)](_0x3b3632(0x351))||this['init']===_0x4f38f4[_0x3b3632(0x351)])&&(_0x4f38f4['init']=function(){var _0x5cf013=_0x3b3632;_0x4f38f4['$super']['init'][_0x5cf013(0x35c)](this,arguments);}),_0x4f38f4[_0x3b3632(0x351)]['prototype']=_0x4f38f4,_0x4f38f4['$super']=this,_0x4f38f4;},_0x25174f(0x3d7)),'create':__name(function(){var _0x572ee1=_0x25174f,_0x10ecc2=this[_0x572ee1(0x3d7)]();return _0x10ecc2[_0x572ee1(0x351)][_0x572ee1(0x35c)](_0x10ecc2,arguments),_0x10ecc2;},_0x25174f(0x254)),'init':__name(function(){},_0x25174f(0x351)),'mixIn':__name(function(_0xdfc1c6){var _0x313513=_0x25174f;for(var _0x116873 in _0xdfc1c6)_0xdfc1c6[_0x313513(0x21a)](_0x116873)&&(this[_0x116873]=_0xdfc1c6[_0x116873]);_0xdfc1c6['hasOwnProperty'](_0x313513(0x13a))&&(this['toString']=_0xdfc1c6[_0x313513(0x13a)]);},_0x25174f(0x3f5)),'clone':__name(function(){var _0x3cf3ca=_0x25174f;return this[_0x3cf3ca(0x351)][_0x3cf3ca(0x430)]['extend'](this);},_0x25174f(0x215))};}()),_0x815a3a=_0x3f166a[_0x15fdea(0x237)]=_0x2a1ee5['extend']({'init':__name(function(_0x3ab60d,_0xb61232){var _0x11ba76=_0x15fdea;_0x3ab60d=this[_0x11ba76(0x418)]=_0x3ab60d||[],_0xb61232!=_0x45a633?this[_0x11ba76(0x3ad)]=_0xb61232:this[_0x11ba76(0x3ad)]=_0x3ab60d['length']*0x4;},_0x15fdea(0x351)),'toString':__name(function(_0x4ddfc8){var _0x4f849c=_0x15fdea;return(_0x4ddfc8||_0xe7e7c2)[_0x4f849c(0x42b)](this);},_0x15fdea(0x13a)),'concat':__name(function(_0x164a94){var _0x35069e=_0x15fdea,_0x2ed15f=this[_0x35069e(0x418)],_0x4359d6=_0x164a94[_0x35069e(0x418)],_0x2fe844=this[_0x35069e(0x3ad)],_0x25003d=_0x164a94[_0x35069e(0x3ad)];if(this[_0x35069e(0x449)](),_0x2fe844%0x4)for(var _0x33995b=0x0;_0x33995b<_0x25003d;_0x33995b++){var _0x59d597=_0x4359d6[_0x33995b>>>0x2]>>>0x18-_0x33995b%0x4*0x8&0xff;_0x2ed15f[_0x2fe844+_0x33995b>>>0x2]|=_0x59d597<<0x18-(_0x2fe844+_0x33995b)%0x4*0x8;}else{for(var _0x3a2b65=0x0;_0x3a2b65<_0x25003d;_0x3a2b65+=0x4)_0x2ed15f[_0x2fe844+_0x3a2b65>>>0x2]=_0x4359d6[_0x3a2b65>>>0x2];}return this[_0x35069e(0x3ad)]+=_0x25003d,this;},_0x15fdea(0x3f7)),'clamp':__name(function(){var _0xf57050=_0x15fdea,_0x271c3a=this[_0xf57050(0x418)],_0x222214=this[_0xf57050(0x3ad)];_0x271c3a[_0x222214>>>0x2]&=0xffffffff<<0x20-_0x222214%0x4*0x8,_0x271c3a['length']=_0x5ec389[_0xf57050(0x3b1)](_0x222214/0x4);},_0x15fdea(0x449)),'clone':__name(function(){var _0x4fc785=_0x15fdea,_0xfe72df=_0x2a1ee5[_0x4fc785(0x215)][_0x4fc785(0x413)](this);return _0xfe72df[_0x4fc785(0x418)]=this['words'][_0x4fc785(0x3fa)](0x0),_0xfe72df;},_0x15fdea(0x215)),'random':__name(function(_0x2eb7a6){var _0x35b4f2=_0x15fdea;for(var _0x203604=[],_0x1d5f0f=0x0;_0x1d5f0f<_0x2eb7a6;_0x1d5f0f+=0x4)_0x203604[_0x35b4f2(0x2cd)](_0x35aeb7());return new _0x815a3a[(_0x35b4f2(0x351))](_0x203604,_0x2eb7a6);},_0x15fdea(0x14e))}),_0x113adb=_0x363e9b[_0x15fdea(0x3e2)]={},_0xe7e7c2=_0x113adb[_0x15fdea(0x27b)]={'stringify':__name(function(_0x311d18){var _0xbd0a99=_0x15fdea;for(var _0x1f5ee9=_0x311d18[_0xbd0a99(0x418)],_0x18cbc4=_0x311d18[_0xbd0a99(0x3ad)],_0x2d745d=[],_0x2ea7cb=0x0;_0x2ea7cb<_0x18cbc4;_0x2ea7cb++){var _0xfcb29=_0x1f5ee9[_0x2ea7cb>>>0x2]>>>0x18-_0x2ea7cb%0x4*0x8&0xff;_0x2d745d[_0xbd0a99(0x2cd)]((_0xfcb29>>>0x4)[_0xbd0a99(0x13a)](0x10)),_0x2d745d[_0xbd0a99(0x2cd)]((_0xfcb29&0xf)['toString'](0x10));}return _0x2d745d[_0xbd0a99(0x1c6)]('');},_0x15fdea(0x42b)),'parse':__name(function(_0x537c9b){var _0x4d35a1=_0x15fdea;for(var _0x492fba=_0x537c9b[_0x4d35a1(0x25b)],_0x23b80a=[],_0x13199e=0x0;_0x13199e<_0x492fba;_0x13199e+=0x2)_0x23b80a[_0x13199e>>>0x3]|=parseInt(_0x537c9b['substr'](_0x13199e,0x2),0x10)<<0x18-_0x13199e%0x8*0x4;return new _0x815a3a['init'](_0x23b80a,_0x492fba/0x2);},'parse')},_0x375774=_0x113adb[_0x15fdea(0x1bd)]={'stringify':__name(function(_0x226c64){var _0x3bbae7=_0x15fdea;for(var _0x17c38b=_0x226c64[_0x3bbae7(0x418)],_0x1fd007=_0x226c64[_0x3bbae7(0x3ad)],_0x596eb2=[],_0x465d24=0x0;_0x465d24<_0x1fd007;_0x465d24++){var _0x51c967=_0x17c38b[_0x465d24>>>0x2]>>>0x18-_0x465d24%0x4*0x8&0xff;_0x596eb2[_0x3bbae7(0x2cd)](String['fromCharCode'](_0x51c967));}return _0x596eb2[_0x3bbae7(0x1c6)]('');},_0x15fdea(0x42b)),'parse':__name(function(_0x1e9950){var _0xb64e35=_0x15fdea;for(var _0x238987=_0x1e9950[_0xb64e35(0x25b)],_0x4ba841=[],_0x1f5012=0x0;_0x1f5012<_0x238987;_0x1f5012++)_0x4ba841[_0x1f5012>>>0x2]|=(_0x1e9950[_0xb64e35(0x2e1)](_0x1f5012)&0xff)<<0x18-_0x1f5012%0x4*0x8;return new _0x815a3a[(_0xb64e35(0x351))](_0x4ba841,_0x238987);},_0x15fdea(0x3d3))},_0x4a243=_0x113adb[_0x15fdea(0x250)]={'stringify':__name(function(_0x5f4c6e){var _0x4d6fbc=_0x15fdea;try{return decodeURIComponent(escape(_0x375774['stringify'](_0x5f4c6e)));}catch{throw new Error(_0x4d6fbc(0x41d));}},'stringify'),'parse':__name(function(_0x8fd9b6){var _0x46469b=_0x15fdea;return _0x375774[_0x46469b(0x3d3)](unescape(encodeURIComponent(_0x8fd9b6)));},_0x15fdea(0x3d3))},_0x2a47ac=_0x3f166a[_0x15fdea(0x203)]=_0x2a1ee5[_0x15fdea(0x3d7)]({'reset':__name(function(){var _0xa1b567=_0x15fdea;this[_0xa1b567(0x1fb)]=new _0x815a3a['init'](),this[_0xa1b567(0x15e)]=0x0;},'reset'),'_append':__name(function(_0x3f8cb0){var _0x36f428=_0x15fdea;typeof _0x3f8cb0==_0x36f428(0x20f)&&(_0x3f8cb0=_0x4a243[_0x36f428(0x3d3)](_0x3f8cb0)),this[_0x36f428(0x1fb)][_0x36f428(0x3f7)](_0x3f8cb0),this['_nDataBytes']+=_0x3f8cb0[_0x36f428(0x3ad)];},_0x15fdea(0x1c5)),'_process':__name(function(_0x56e25f){var _0xfbef57=_0x15fdea,_0x5c0a82,_0x414544=this[_0xfbef57(0x1fb)],_0x44fda2=_0x414544['words'],_0x513105=_0x414544[_0xfbef57(0x3ad)],_0x453607=this[_0xfbef57(0x3ef)],_0x55adaf=_0x453607*0x4,_0x422ffc=_0x513105/_0x55adaf;_0x56e25f?_0x422ffc=_0x5ec389['ceil'](_0x422ffc):_0x422ffc=_0x5ec389[_0xfbef57(0x32a)]((_0x422ffc|0x0)-this[_0xfbef57(0x411)],0x0);var _0x3ea9c7=_0x422ffc*_0x453607,_0x435a2b=_0x5ec389[_0xfbef57(0x297)](_0x3ea9c7*0x4,_0x513105);if(_0x3ea9c7){for(var _0x26fa44=0x0;_0x26fa44<_0x3ea9c7;_0x26fa44+=_0x453607)this[_0xfbef57(0x3ec)](_0x44fda2,_0x26fa44);_0x5c0a82=_0x44fda2[_0xfbef57(0x26b)](0x0,_0x3ea9c7),_0x414544[_0xfbef57(0x3ad)]-=_0x435a2b;}return new _0x815a3a[(_0xfbef57(0x351))](_0x5c0a82,_0x435a2b);},_0x15fdea(0x141)),'clone':__name(function(){var _0x454029=_0x15fdea,_0x2a3866=_0x2a1ee5['clone'][_0x454029(0x413)](this);return _0x2a3866[_0x454029(0x1fb)]=this[_0x454029(0x1fb)][_0x454029(0x215)](),_0x2a3866;},_0x15fdea(0x215)),'_minBufferSize':0x0});_0x3f166a[_0x15fdea(0x288)]=_0x2a47ac['extend']({'cfg':_0x2a1ee5[_0x15fdea(0x3d7)](),'init':__name(function(_0xaecc11){var _0x3ef468=_0x15fdea;this[_0x3ef468(0x3bb)]=this[_0x3ef468(0x3bb)][_0x3ef468(0x3d7)](_0xaecc11),this[_0x3ef468(0x33d)]();},_0x15fdea(0x351)),'reset':__name(function(){var _0x3df010=_0x15fdea;_0x2a47ac[_0x3df010(0x33d)]['call'](this),this[_0x3df010(0x130)]();},_0x15fdea(0x33d)),'update':__name(function(_0x21fe82){var _0x2fc40d=_0x15fdea;return this[_0x2fc40d(0x1c5)](_0x21fe82),this[_0x2fc40d(0x141)](),this;},_0x15fdea(0x442)),'finalize':__name(function(_0x4f1e12){var _0x8f1d39=_0x15fdea;_0x4f1e12&&this[_0x8f1d39(0x1c5)](_0x4f1e12);var _0x482da2=this[_0x8f1d39(0x2b5)]();return _0x482da2;},_0x15fdea(0x1ef)),'blockSize':0x10,'_createHelper':__name(function(_0x5df561){return function(_0x213fa0,_0x4337b0){var _0x2be221=_0x5570;return new _0x5df561['init'](_0x4337b0)[_0x2be221(0x1ef)](_0x213fa0);};},_0x15fdea(0x31f)),'_createHmacHelper':__name(function(_0x217725){return function(_0x28d7a5,_0x311666){var _0x57666f=_0x5570;return new _0x5576b2[(_0x57666f(0x343))][(_0x57666f(0x351))](_0x217725,_0x311666)[_0x57666f(0x1ef)](_0x28d7a5);};},_0x15fdea(0x296))});var _0x5576b2=_0x363e9b[_0x15fdea(0x265)]={};return _0x363e9b;}(Math);return _0x4195d2;}));}(core$1)),core$1[_0x19e009(0x3b0)];}__name(requireCore,'requireCore');var encBase64$1={'exports':{}},encBase64=encBase64$1['exports'],hasRequiredEncBase64;function requireEncBase64(){var _0x30f872=_0x4eebac;return hasRequiredEncBase64||(hasRequiredEncBase64=0x1,function(_0x48d15e,_0x528117){(function(_0x1d81e3,_0x5bed8f){var _0x16b387=_0x5570;_0x48d15e[_0x16b387(0x3b0)]=_0x5bed8f(requireCore());}(encBase64,function(_0x191e19){var _0x6fed3=_0x5570;return(function(){var _0x355922=_0x5570,_0x33dede=_0x191e19,_0x2deaa2=_0x33dede[_0x355922(0x307)],_0x96e843=_0x2deaa2['WordArray'],_0x55efb1=_0x33dede[_0x355922(0x3e2)];_0x55efb1[_0x355922(0x422)]={'stringify':__name(function(_0x491706){var _0x33ec10=_0x355922,_0x31ad89=_0x491706[_0x33ec10(0x418)],_0x5b60c1=_0x491706[_0x33ec10(0x3ad)],_0x3d130=this[_0x33ec10(0x3d1)];_0x491706['clamp']();for(var _0x531ff8=[],_0x89c38f=0x0;_0x89c38f<_0x5b60c1;_0x89c38f+=0x3)for(var _0x2cd58d=_0x31ad89[_0x89c38f>>>0x2]>>>0x18-_0x89c38f%0x4*0x8&0xff,_0x472a8a=_0x31ad89[_0x89c38f+0x1>>>0x2]>>>0x18-(_0x89c38f+0x1)%0x4*0x8&0xff,_0x1f6502=_0x31ad89[_0x89c38f+0x2>>>0x2]>>>0x18-(_0x89c38f+0x2)%0x4*0x8&0xff,_0x3d0984=_0x2cd58d<<0x10|_0x472a8a<<0x8|_0x1f6502,_0x5835ec=0x0;_0x5835ec<0x4&&_0x89c38f+_0x5835ec*0.75<_0x5b60c1;_0x5835ec++)_0x531ff8[_0x33ec10(0x2cd)](_0x3d130[_0x33ec10(0x42c)](_0x3d0984>>>0x6*(0x3-_0x5835ec)&0x3f));var _0x36ca3d=_0x3d130[_0x33ec10(0x42c)](0x40);if(_0x36ca3d){for(;_0x531ff8['length']%0x4;)_0x531ff8['push'](_0x36ca3d);}return _0x531ff8[_0x33ec10(0x1c6)]('');},'stringify'),'parse':__name(function(_0x5df72f){var _0x40b90b=_0x355922,_0x5345e0=_0x5df72f[_0x40b90b(0x25b)],_0x5a39e4=this[_0x40b90b(0x3d1)],_0x2028bc=this[_0x40b90b(0x137)];if(!_0x2028bc){_0x2028bc=this['_reverseMap']=[];for(var _0xbc0fa7=0x0;_0xbc0fa7<_0x5a39e4['length'];_0xbc0fa7++)_0x2028bc[_0x5a39e4[_0x40b90b(0x2e1)](_0xbc0fa7)]=_0xbc0fa7;}var _0x4d56bd=_0x5a39e4[_0x40b90b(0x42c)](0x40);if(_0x4d56bd){var _0x23adcc=_0x5df72f[_0x40b90b(0x267)](_0x4d56bd);_0x23adcc!==-0x1&&(_0x5345e0=_0x23adcc);}return _0xe34d08(_0x5df72f,_0x5345e0,_0x2028bc);},_0x355922(0x3d3)),'_map':'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='};function _0xe34d08(_0x51349f,_0x240c27,_0x5db555){var _0x50d893=_0x355922;for(var _0x1290fc=[],_0x32a84c=0x0,_0x2c49e5=0x0;_0x2c49e5<_0x240c27;_0x2c49e5++)if(_0x2c49e5%0x4){var _0x1f02a8=_0x5db555[_0x51349f[_0x50d893(0x2e1)](_0x2c49e5-0x1)]<<_0x2c49e5%0x4*0x2,_0x24881f=_0x5db555[_0x51349f['charCodeAt'](_0x2c49e5)]>>>0x6-_0x2c49e5%0x4*0x2,_0x3b204a=_0x1f02a8|_0x24881f;_0x1290fc[_0x32a84c>>>0x2]|=_0x3b204a<<0x18-_0x32a84c%0x4*0x8,_0x32a84c++;}return _0x96e843[_0x50d893(0x254)](_0x1290fc,_0x32a84c);}__name(_0xe34d08,_0x355922(0x2a0));}()),_0x191e19[_0x6fed3(0x3e2)][_0x6fed3(0x422)];}));}(encBase64$1)),encBase64$1[_0x30f872(0x3b0)];}__name(requireEncBase64,'requireEncBase64');var md5$1={'exports':{}},md5=md5$1[_0x4eebac(0x3b0)],hasRequiredMd5;function requireMd5(){var _0x356880=_0x4eebac;return hasRequiredMd5||(hasRequiredMd5=0x1,function(_0x5ea6f4,_0x103bc0){(function(_0x3aa93f,_0x10456d){var _0x4312c9=_0x5570;_0x5ea6f4[_0x4312c9(0x3b0)]=_0x10456d(requireCore());}(md5,function(_0x28f54c){var _0x71b4c1=_0x5570;return function(_0x2f3fae){var _0x5a2188=_0x5570,_0x12525c=_0x28f54c,_0x1d549b=_0x12525c[_0x5a2188(0x307)],_0x539258=_0x1d549b[_0x5a2188(0x237)],_0x13b709=_0x1d549b[_0x5a2188(0x288)],_0x359295=_0x12525c[_0x5a2188(0x265)],_0x1a2fc3=[];(function(){var _0x14aff3=_0x5a2188;for(var _0x33541c=0x0;_0x33541c<0x40;_0x33541c++)_0x1a2fc3[_0x33541c]=_0x2f3fae[_0x14aff3(0x2fa)](_0x2f3fae[_0x14aff3(0x1be)](_0x33541c+0x1))*0x100000000|0x0;}());var _0x3cdf1d=_0x359295[_0x5a2188(0x19b)]=_0x13b709[_0x5a2188(0x3d7)]({'_doReset':__name(function(){var _0x5adaf2=_0x5a2188;this[_0x5adaf2(0x2f3)]=new _0x539258['init']([0x67452301,0xefcdab89,0x98badcfe,0x10325476]);},_0x5a2188(0x130)),'_doProcessBlock':__name(function(_0x3dbf5d,_0x1a5c3d){var _0xcb7164=_0x5a2188;for(var _0x52d3a8=0x0;_0x52d3a8<0x10;_0x52d3a8++){var _0x2ec6b3=_0x1a5c3d+_0x52d3a8,_0x13d147=_0x3dbf5d[_0x2ec6b3];_0x3dbf5d[_0x2ec6b3]=(_0x13d147<<0x8|_0x13d147>>>0x18)&0xff00ff|(_0x13d147<<0x18|_0x13d147>>>0x8)&0xff00ff00;}var _0x255dc2=this[_0xcb7164(0x2f3)]['words'],_0x496036=_0x3dbf5d[_0x1a5c3d+0x0],_0x5174db=_0x3dbf5d[_0x1a5c3d+0x1],_0x338919=_0x3dbf5d[_0x1a5c3d+0x2],_0xb06878=_0x3dbf5d[_0x1a5c3d+0x3],_0x18af08=_0x3dbf5d[_0x1a5c3d+0x4],_0x5486d0=_0x3dbf5d[_0x1a5c3d+0x5],_0x26bb52=_0x3dbf5d[_0x1a5c3d+0x6],_0x4df556=_0x3dbf5d[_0x1a5c3d+0x7],_0x2188b0=_0x3dbf5d[_0x1a5c3d+0x8],_0xf15330=_0x3dbf5d[_0x1a5c3d+0x9],_0x112481=_0x3dbf5d[_0x1a5c3d+0xa],_0x5093ef=_0x3dbf5d[_0x1a5c3d+0xb],_0x340716=_0x3dbf5d[_0x1a5c3d+0xc],_0x5651fa=_0x3dbf5d[_0x1a5c3d+0xd],_0x5a4c36=_0x3dbf5d[_0x1a5c3d+0xe],_0x2585c8=_0x3dbf5d[_0x1a5c3d+0xf],_0x2083b2=_0x255dc2[0x0],_0x2764eb=_0x255dc2[0x1],_0xcc3739=_0x255dc2[0x2],_0x4b7730=_0x255dc2[0x3];_0x2083b2=_0xcf032(_0x2083b2,_0x2764eb,_0xcc3739,_0x4b7730,_0x496036,0x7,_0x1a2fc3[0x0]),_0x4b7730=_0xcf032(_0x4b7730,_0x2083b2,_0x2764eb,_0xcc3739,_0x5174db,0xc,_0x1a2fc3[0x1]),_0xcc3739=_0xcf032(_0xcc3739,_0x4b7730,_0x2083b2,_0x2764eb,_0x338919,0x11,_0x1a2fc3[0x2]),_0x2764eb=_0xcf032(_0x2764eb,_0xcc3739,_0x4b7730,_0x2083b2,_0xb06878,0x16,_0x1a2fc3[0x3]),_0x2083b2=_0xcf032(_0x2083b2,_0x2764eb,_0xcc3739,_0x4b7730,_0x18af08,0x7,_0x1a2fc3[0x4]),_0x4b7730=_0xcf032(_0x4b7730,_0x2083b2,_0x2764eb,_0xcc3739,_0x5486d0,0xc,_0x1a2fc3[0x5]),_0xcc3739=_0xcf032(_0xcc3739,_0x4b7730,_0x2083b2,_0x2764eb,_0x26bb52,0x11,_0x1a2fc3[0x6]),_0x2764eb=_0xcf032(_0x2764eb,_0xcc3739,_0x4b7730,_0x2083b2,_0x4df556,0x16,_0x1a2fc3[0x7]),_0x2083b2=_0xcf032(_0x2083b2,_0x2764eb,_0xcc3739,_0x4b7730,_0x2188b0,0x7,_0x1a2fc3[0x8]),_0x4b7730=_0xcf032(_0x4b7730,_0x2083b2,_0x2764eb,_0xcc3739,_0xf15330,0xc,_0x1a2fc3[0x9]),_0xcc3739=_0xcf032(_0xcc3739,_0x4b7730,_0x2083b2,_0x2764eb,_0x112481,0x11,_0x1a2fc3[0xa]),_0x2764eb=_0xcf032(_0x2764eb,_0xcc3739,_0x4b7730,_0x2083b2,_0x5093ef,0x16,_0x1a2fc3[0xb]),_0x2083b2=_0xcf032(_0x2083b2,_0x2764eb,_0xcc3739,_0x4b7730,_0x340716,0x7,_0x1a2fc3[0xc]),_0x4b7730=_0xcf032(_0x4b7730,_0x2083b2,_0x2764eb,_0xcc3739,_0x5651fa,0xc,_0x1a2fc3[0xd]),_0xcc3739=_0xcf032(_0xcc3739,_0x4b7730,_0x2083b2,_0x2764eb,_0x5a4c36,0x11,_0x1a2fc3[0xe]),_0x2764eb=_0xcf032(_0x2764eb,_0xcc3739,_0x4b7730,_0x2083b2,_0x2585c8,0x16,_0x1a2fc3[0xf]),_0x2083b2=_0x5c84d1(_0x2083b2,_0x2764eb,_0xcc3739,_0x4b7730,_0x5174db,0x5,_0x1a2fc3[0x10]),_0x4b7730=_0x5c84d1(_0x4b7730,_0x2083b2,_0x2764eb,_0xcc3739,_0x26bb52,0x9,_0x1a2fc3[0x11]),_0xcc3739=_0x5c84d1(_0xcc3739,_0x4b7730,_0x2083b2,_0x2764eb,_0x5093ef,0xe,_0x1a2fc3[0x12]),_0x2764eb=_0x5c84d1(_0x2764eb,_0xcc3739,_0x4b7730,_0x2083b2,_0x496036,0x14,_0x1a2fc3[0x13]),_0x2083b2=_0x5c84d1(_0x2083b2,_0x2764eb,_0xcc3739,_0x4b7730,_0x5486d0,0x5,_0x1a2fc3[0x14]),_0x4b7730=_0x5c84d1(_0x4b7730,_0x2083b2,_0x2764eb,_0xcc3739,_0x112481,0x9,_0x1a2fc3[0x15]),_0xcc3739=_0x5c84d1(_0xcc3739,_0x4b7730,_0x2083b2,_0x2764eb,_0x2585c8,0xe,_0x1a2fc3[0x16]),_0x2764eb=_0x5c84d1(_0x2764eb,_0xcc3739,_0x4b7730,_0x2083b2,_0x18af08,0x14,_0x1a2fc3[0x17]),_0x2083b2=_0x5c84d1(_0x2083b2,_0x2764eb,_0xcc3739,_0x4b7730,_0xf15330,0x5,_0x1a2fc3[0x18]),_0x4b7730=_0x5c84d1(_0x4b7730,_0x2083b2,_0x2764eb,_0xcc3739,_0x5a4c36,0x9,_0x1a2fc3[0x19]),_0xcc3739=_0x5c84d1(_0xcc3739,_0x4b7730,_0x2083b2,_0x2764eb,_0xb06878,0xe,_0x1a2fc3[0x1a]),_0x2764eb=_0x5c84d1(_0x2764eb,_0xcc3739,_0x4b7730,_0x2083b2,_0x2188b0,0x14,_0x1a2fc3[0x1b]),_0x2083b2=_0x5c84d1(_0x2083b2,_0x2764eb,_0xcc3739,_0x4b7730,_0x5651fa,0x5,_0x1a2fc3[0x1c]),_0x4b7730=_0x5c84d1(_0x4b7730,_0x2083b2,_0x2764eb,_0xcc3739,_0x338919,0x9,_0x1a2fc3[0x1d]),_0xcc3739=_0x5c84d1(_0xcc3739,_0x4b7730,_0x2083b2,_0x2764eb,_0x4df556,0xe,_0x1a2fc3[0x1e]),_0x2764eb=_0x5c84d1(_0x2764eb,_0xcc3739,_0x4b7730,_0x2083b2,_0x340716,0x14,_0x1a2fc3[0x1f]),_0x2083b2=_0x474998(_0x2083b2,_0x2764eb,_0xcc3739,_0x4b7730,_0x5486d0,0x4,_0x1a2fc3[0x20]),_0x4b7730=_0x474998(_0x4b7730,_0x2083b2,_0x2764eb,_0xcc3739,_0x2188b0,0xb,_0x1a2fc3[0x21]),_0xcc3739=_0x474998(_0xcc3739,_0x4b7730,_0x2083b2,_0x2764eb,_0x5093ef,0x10,_0x1a2fc3[0x22]),_0x2764eb=_0x474998(_0x2764eb,_0xcc3739,_0x4b7730,_0x2083b2,_0x5a4c36,0x17,_0x1a2fc3[0x23]),_0x2083b2=_0x474998(_0x2083b2,_0x2764eb,_0xcc3739,_0x4b7730,_0x5174db,0x4,_0x1a2fc3[0x24]),_0x4b7730=_0x474998(_0x4b7730,_0x2083b2,_0x2764eb,_0xcc3739,_0x18af08,0xb,_0x1a2fc3[0x25]),_0xcc3739=_0x474998(_0xcc3739,_0x4b7730,_0x2083b2,_0x2764eb,_0x4df556,0x10,_0x1a2fc3[0x26]),_0x2764eb=_0x474998(_0x2764eb,_0xcc3739,_0x4b7730,_0x2083b2,_0x112481,0x17,_0x1a2fc3[0x27]),_0x2083b2=_0x474998(_0x2083b2,_0x2764eb,_0xcc3739,_0x4b7730,_0x5651fa,0x4,_0x1a2fc3[0x28]),_0x4b7730=_0x474998(_0x4b7730,_0x2083b2,_0x2764eb,_0xcc3739,_0x496036,0xb,_0x1a2fc3[0x29]),_0xcc3739=_0x474998(_0xcc3739,_0x4b7730,_0x2083b2,_0x2764eb,_0xb06878,0x10,_0x1a2fc3[0x2a]),_0x2764eb=_0x474998(_0x2764eb,_0xcc3739,_0x4b7730,_0x2083b2,_0x26bb52,0x17,_0x1a2fc3[0x2b]),_0x2083b2=_0x474998(_0x2083b2,_0x2764eb,_0xcc3739,_0x4b7730,_0xf15330,0x4,_0x1a2fc3[0x2c]),_0x4b7730=_0x474998(_0x4b7730,_0x2083b2,_0x2764eb,_0xcc3739,_0x340716,0xb,_0x1a2fc3[0x2d]),_0xcc3739=_0x474998(_0xcc3739,_0x4b7730,_0x2083b2,_0x2764eb,_0x2585c8,0x10,_0x1a2fc3[0x2e]),_0x2764eb=_0x474998(_0x2764eb,_0xcc3739,_0x4b7730,_0x2083b2,_0x338919,0x17,_0x1a2fc3[0x2f]),_0x2083b2=_0x2c801c(_0x2083b2,_0x2764eb,_0xcc3739,_0x4b7730,_0x496036,0x6,_0x1a2fc3[0x30]),_0x4b7730=_0x2c801c(_0x4b7730,_0x2083b2,_0x2764eb,_0xcc3739,_0x4df556,0xa,_0x1a2fc3[0x31]),_0xcc3739=_0x2c801c(_0xcc3739,_0x4b7730,_0x2083b2,_0x2764eb,_0x5a4c36,0xf,_0x1a2fc3[0x32]),_0x2764eb=_0x2c801c(_0x2764eb,_0xcc3739,_0x4b7730,_0x2083b2,_0x5486d0,0x15,_0x1a2fc3[0x33]),_0x2083b2=_0x2c801c(_0x2083b2,_0x2764eb,_0xcc3739,_0x4b7730,_0x340716,0x6,_0x1a2fc3[0x34]),_0x4b7730=_0x2c801c(_0x4b7730,_0x2083b2,_0x2764eb,_0xcc3739,_0xb06878,0xa,_0x1a2fc3[0x35]),_0xcc3739=_0x2c801c(_0xcc3739,_0x4b7730,_0x2083b2,_0x2764eb,_0x112481,0xf,_0x1a2fc3[0x36]),_0x2764eb=_0x2c801c(_0x2764eb,_0xcc3739,_0x4b7730,_0x2083b2,_0x5174db,0x15,_0x1a2fc3[0x37]),_0x2083b2=_0x2c801c(_0x2083b2,_0x2764eb,_0xcc3739,_0x4b7730,_0x2188b0,0x6,_0x1a2fc3[0x38]),_0x4b7730=_0x2c801c(_0x4b7730,_0x2083b2,_0x2764eb,_0xcc3739,_0x2585c8,0xa,_0x1a2fc3[0x39]),_0xcc3739=_0x2c801c(_0xcc3739,_0x4b7730,_0x2083b2,_0x2764eb,_0x26bb52,0xf,_0x1a2fc3[0x3a]),_0x2764eb=_0x2c801c(_0x2764eb,_0xcc3739,_0x4b7730,_0x2083b2,_0x5651fa,0x15,_0x1a2fc3[0x3b]),_0x2083b2=_0x2c801c(_0x2083b2,_0x2764eb,_0xcc3739,_0x4b7730,_0x18af08,0x6,_0x1a2fc3[0x3c]),_0x4b7730=_0x2c801c(_0x4b7730,_0x2083b2,_0x2764eb,_0xcc3739,_0x5093ef,0xa,_0x1a2fc3[0x3d]),_0xcc3739=_0x2c801c(_0xcc3739,_0x4b7730,_0x2083b2,_0x2764eb,_0x338919,0xf,_0x1a2fc3[0x3e]),_0x2764eb=_0x2c801c(_0x2764eb,_0xcc3739,_0x4b7730,_0x2083b2,_0xf15330,0x15,_0x1a2fc3[0x3f]),_0x255dc2[0x0]=_0x255dc2[0x0]+_0x2083b2|0x0,_0x255dc2[0x1]=_0x255dc2[0x1]+_0x2764eb|0x0,_0x255dc2[0x2]=_0x255dc2[0x2]+_0xcc3739|0x0,_0x255dc2[0x3]=_0x255dc2[0x3]+_0x4b7730|0x0;},_0x5a2188(0x3ec)),'_doFinalize':__name(function(){var _0x362a1c=_0x5a2188,_0x381eeb=this['_data'],_0x451686=_0x381eeb['words'],_0x28dad0=this[_0x362a1c(0x15e)]*0x8,_0x6503ad=_0x381eeb[_0x362a1c(0x3ad)]*0x8;_0x451686[_0x6503ad>>>0x5]|=0x80<<0x18-_0x6503ad%0x20;var _0x25557e=_0x2f3fae[_0x362a1c(0x2bf)](_0x28dad0/0x100000000),_0x530aed=_0x28dad0;_0x451686[(_0x6503ad+0x40>>>0x9<<0x4)+0xf]=(_0x25557e<<0x8|_0x25557e>>>0x18)&0xff00ff|(_0x25557e<<0x18|_0x25557e>>>0x8)&0xff00ff00,_0x451686[(_0x6503ad+0x40>>>0x9<<0x4)+0xe]=(_0x530aed<<0x8|_0x530aed>>>0x18)&0xff00ff|(_0x530aed<<0x18|_0x530aed>>>0x8)&0xff00ff00,_0x381eeb[_0x362a1c(0x3ad)]=(_0x451686[_0x362a1c(0x25b)]+0x1)*0x4,this[_0x362a1c(0x141)]();for(var _0x4ee2ad=this[_0x362a1c(0x2f3)],_0x163152=_0x4ee2ad[_0x362a1c(0x418)],_0x2518d0=0x0;_0x2518d0<0x4;_0x2518d0++){var _0x4ca227=_0x163152[_0x2518d0];_0x163152[_0x2518d0]=(_0x4ca227<<0x8|_0x4ca227>>>0x18)&0xff00ff|(_0x4ca227<<0x18|_0x4ca227>>>0x8)&0xff00ff00;}return _0x4ee2ad;},'_doFinalize'),'clone':__name(function(){var _0x510eb2=_0x5a2188,_0xb0103=_0x13b709[_0x510eb2(0x215)][_0x510eb2(0x413)](this);return _0xb0103[_0x510eb2(0x2f3)]=this[_0x510eb2(0x2f3)][_0x510eb2(0x215)](),_0xb0103;},_0x5a2188(0x215))});function _0xcf032(_0x1f3557,_0x3e13bf,_0xc6bfd6,_0x1f2333,_0x3ed276,_0x27a19c,_0x7f754c){var _0x1999a3=_0x1f3557+(_0x3e13bf&_0xc6bfd6|~_0x3e13bf&_0x1f2333)+_0x3ed276+_0x7f754c;return(_0x1999a3<<_0x27a19c|_0x1999a3>>>0x20-_0x27a19c)+_0x3e13bf;}__name(_0xcf032,'FF');function _0x5c84d1(_0x2b8454,_0x52b315,_0x50d35c,_0x34ee79,_0x2f10b5,_0x3ca222,_0x425e7f){var _0x45e22c=_0x2b8454+(_0x52b315&_0x34ee79|_0x50d35c&~_0x34ee79)+_0x2f10b5+_0x425e7f;return(_0x45e22c<<_0x3ca222|_0x45e22c>>>0x20-_0x3ca222)+_0x52b315;}__name(_0x5c84d1,'GG');function _0x474998(_0x4db988,_0x40a1f2,_0x156b38,_0x3f2137,_0x34d4e0,_0x3165ad,_0xe361f4){var _0x4843b0=_0x4db988+(_0x40a1f2^_0x156b38^_0x3f2137)+_0x34d4e0+_0xe361f4;return(_0x4843b0<<_0x3165ad|_0x4843b0>>>0x20-_0x3165ad)+_0x40a1f2;}__name(_0x474998,'HH');function _0x2c801c(_0x29c8e1,_0x58de45,_0x475fea,_0x2c4165,_0x64079d,_0xcdf1e0,_0x386168){var _0x32bfad=_0x29c8e1+(_0x475fea^(_0x58de45|~_0x2c4165))+_0x64079d+_0x386168;return(_0x32bfad<<_0xcdf1e0|_0x32bfad>>>0x20-_0xcdf1e0)+_0x58de45;}__name(_0x2c801c,'II'),_0x12525c[_0x5a2188(0x19b)]=_0x13b709[_0x5a2188(0x31f)](_0x3cdf1d),_0x12525c['HmacMD5']=_0x13b709[_0x5a2188(0x296)](_0x3cdf1d);}(Math),_0x28f54c[_0x71b4c1(0x19b)];}));}(md5$1)),md5$1[_0x356880(0x3b0)];}__name(requireMd5,_0x4eebac(0x445));var evpkdf$1={'exports':{}},sha1$1={'exports':{}},sha1=sha1$1[_0x4eebac(0x3b0)],hasRequiredSha1;function requireSha1(){return hasRequiredSha1||(hasRequiredSha1=0x1,function(_0x569501,_0x508142){(function(_0x8baf54,_0x50c774){_0x569501['exports']=_0x50c774(requireCore());}(sha1,function(_0x349e87){var _0x47420c=_0x5570;return(function(){var _0x905a39=_0x5570,_0x9c49c8=_0x349e87,_0x160a90=_0x9c49c8[_0x905a39(0x307)],_0x5038d8=_0x160a90[_0x905a39(0x237)],_0x4bba64=_0x160a90[_0x905a39(0x288)],_0x136d8f=_0x9c49c8[_0x905a39(0x265)],_0x1dbcb1=[],_0x6c8f3d=_0x136d8f[_0x905a39(0x180)]=_0x4bba64[_0x905a39(0x3d7)]({'_doReset':__name(function(){var _0x36e590=_0x905a39;this[_0x36e590(0x2f3)]=new _0x5038d8[(_0x36e590(0x351))]([0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0]);},_0x905a39(0x130)),'_doProcessBlock':__name(function(_0x2976fa,_0x547abb){var _0x265975=_0x905a39;for(var _0x2472e3=this[_0x265975(0x2f3)][_0x265975(0x418)],_0x1438a3=_0x2472e3[0x0],_0x3d3548=_0x2472e3[0x1],_0x2f8a19=_0x2472e3[0x2],_0xc54537=_0x2472e3[0x3],_0x568ae7=_0x2472e3[0x4],_0x8de61c=0x0;_0x8de61c<0x50;_0x8de61c++){if(_0x8de61c<0x10)_0x1dbcb1[_0x8de61c]=_0x2976fa[_0x547abb+_0x8de61c]|0x0;else{var _0x23fe35=_0x1dbcb1[_0x8de61c-0x3]^_0x1dbcb1[_0x8de61c-0x8]^_0x1dbcb1[_0x8de61c-0xe]^_0x1dbcb1[_0x8de61c-0x10];_0x1dbcb1[_0x8de61c]=_0x23fe35<<0x1|_0x23fe35>>>0x1f;}var _0x449754=(_0x1438a3<<0x5|_0x1438a3>>>0x1b)+_0x568ae7+_0x1dbcb1[_0x8de61c];_0x8de61c<0x14?_0x449754+=(_0x3d3548&_0x2f8a19|~_0x3d3548&_0xc54537)+0x5a827999:_0x8de61c<0x28?_0x449754+=(_0x3d3548^_0x2f8a19^_0xc54537)+0x6ed9eba1:_0x8de61c<0x3c?_0x449754+=(_0x3d3548&_0x2f8a19|_0x3d3548&_0xc54537|_0x2f8a19&_0xc54537)-0x70e44324:_0x449754+=(_0x3d3548^_0x2f8a19^_0xc54537)-0x359d3e2a,_0x568ae7=_0xc54537,_0xc54537=_0x2f8a19,_0x2f8a19=_0x3d3548<<0x1e|_0x3d3548>>>0x2,_0x3d3548=_0x1438a3,_0x1438a3=_0x449754;}_0x2472e3[0x0]=_0x2472e3[0x0]+_0x1438a3|0x0,_0x2472e3[0x1]=_0x2472e3[0x1]+_0x3d3548|0x0,_0x2472e3[0x2]=_0x2472e3[0x2]+_0x2f8a19|0x0,_0x2472e3[0x3]=_0x2472e3[0x3]+_0xc54537|0x0,_0x2472e3[0x4]=_0x2472e3[0x4]+_0x568ae7|0x0;},_0x905a39(0x3ec)),'_doFinalize':__name(function(){var _0x329e76=_0x905a39,_0xf23ebb=this[_0x329e76(0x1fb)],_0x2b0d72=_0xf23ebb[_0x329e76(0x418)],_0x49707f=this[_0x329e76(0x15e)]*0x8,_0x2ec70e=_0xf23ebb[_0x329e76(0x3ad)]*0x8;return _0x2b0d72[_0x2ec70e>>>0x5]|=0x80<<0x18-_0x2ec70e%0x20,_0x2b0d72[(_0x2ec70e+0x40>>>0x9<<0x4)+0xe]=Math[_0x329e76(0x2bf)](_0x49707f/0x100000000),_0x2b0d72[(_0x2ec70e+0x40>>>0x9<<0x4)+0xf]=_0x49707f,_0xf23ebb[_0x329e76(0x3ad)]=_0x2b0d72['length']*0x4,this['_process'](),this['_hash'];},_0x905a39(0x2b5)),'clone':__name(function(){var _0x547041=_0x905a39,_0x194726=_0x4bba64[_0x547041(0x215)][_0x547041(0x413)](this);return _0x194726['_hash']=this[_0x547041(0x2f3)][_0x547041(0x215)](),_0x194726;},_0x905a39(0x215))});_0x9c49c8[_0x905a39(0x180)]=_0x4bba64[_0x905a39(0x31f)](_0x6c8f3d),_0x9c49c8[_0x905a39(0x40c)]=_0x4bba64[_0x905a39(0x296)](_0x6c8f3d);}()),_0x349e87[_0x47420c(0x180)];}));}(sha1$1)),sha1$1['exports'];}__name(requireSha1,_0x4eebac(0x10f));var hmac$1={'exports':{}},hmac=hmac$1[_0x4eebac(0x3b0)],hasRequiredHmac;function requireHmac(){var _0x35d5a7=_0x4eebac;return hasRequiredHmac||(hasRequiredHmac=0x1,function(_0x2f117f,_0x43531e){(function(_0x7f3448,_0xde92fa){var _0x1a9c55=_0x5570;_0x2f117f[_0x1a9c55(0x3b0)]=_0xde92fa(requireCore());}(hmac,function(_0x45bbb2){(function(){var _0xf97c02=_0x5570,_0x45c94f=_0x45bbb2,_0x170a35=_0x45c94f['lib'],_0x43a807=_0x170a35[_0xf97c02(0x159)],_0x53b284=_0x45c94f['enc'],_0x5de2a0=_0x53b284[_0xf97c02(0x250)],_0x5c83c2=_0x45c94f['algo'];_0x5c83c2[_0xf97c02(0x343)]=_0x43a807[_0xf97c02(0x3d7)]({'init':__name(function(_0x555965,_0x2d5daa){var _0x17bf88=_0xf97c02;_0x555965=this['_hasher']=new _0x555965['init'](),typeof _0x2d5daa==_0x17bf88(0x20f)&&(_0x2d5daa=_0x5de2a0['parse'](_0x2d5daa));var _0x5c5e66=_0x555965[_0x17bf88(0x3ef)],_0x4dfc0=_0x5c5e66*0x4;_0x2d5daa['sigBytes']>_0x4dfc0&&(_0x2d5daa=_0x555965[_0x17bf88(0x1ef)](_0x2d5daa)),_0x2d5daa['clamp']();for(var _0x4bc9ec=this[_0x17bf88(0x11a)]=_0x2d5daa[_0x17bf88(0x215)](),_0x39bd44=this[_0x17bf88(0x3de)]=_0x2d5daa[_0x17bf88(0x215)](),_0x2ee6e7=_0x4bc9ec['words'],_0x4cb425=_0x39bd44[_0x17bf88(0x418)],_0x37278a=0x0;_0x37278a<_0x5c5e66;_0x37278a++)_0x2ee6e7[_0x37278a]^=0x5c5c5c5c,_0x4cb425[_0x37278a]^=0x36363636;_0x4bc9ec[_0x17bf88(0x3ad)]=_0x39bd44[_0x17bf88(0x3ad)]=_0x4dfc0,this[_0x17bf88(0x33d)]();},_0xf97c02(0x351)),'reset':__name(function(){var _0x5afd03=_0xf97c02,_0x27cc34=this[_0x5afd03(0x193)];_0x27cc34['reset'](),_0x27cc34['update'](this[_0x5afd03(0x3de)]);},_0xf97c02(0x33d)),'update':__name(function(_0x62ea15){var _0x50e4ee=_0xf97c02;return this[_0x50e4ee(0x193)][_0x50e4ee(0x442)](_0x62ea15),this;},_0xf97c02(0x442)),'finalize':__name(function(_0x3ecc02){var _0x3906f5=_0xf97c02,_0x353de7=this[_0x3906f5(0x193)],_0x25c0c1=_0x353de7[_0x3906f5(0x1ef)](_0x3ecc02);_0x353de7[_0x3906f5(0x33d)]();var _0x388701=_0x353de7[_0x3906f5(0x1ef)](this[_0x3906f5(0x11a)][_0x3906f5(0x215)]()[_0x3906f5(0x3f7)](_0x25c0c1));return _0x388701;},_0xf97c02(0x1ef))});}());}));}(hmac$1)),hmac$1[_0x35d5a7(0x3b0)];}__name(requireHmac,_0x4eebac(0x305));var evpkdf=evpkdf$1['exports'],hasRequiredEvpkdf;function requireEvpkdf(){var _0x118e62=_0x4eebac;return hasRequiredEvpkdf||(hasRequiredEvpkdf=0x1,function(_0x4012a8,_0x40565e){(function(_0x42ab10,_0x5ba17d,_0xa0ebe8){_0x4012a8['exports']=_0x5ba17d(requireCore(),requireSha1(),requireHmac());}(evpkdf,function(_0x24d215){return(function(){var _0x5d7bc8=_0x5570,_0x4bb90d=_0x24d215,_0xfd3a86=_0x4bb90d[_0x5d7bc8(0x307)],_0x115b3d=_0xfd3a86[_0x5d7bc8(0x159)],_0x1c59e6=_0xfd3a86['WordArray'],_0x913046=_0x4bb90d[_0x5d7bc8(0x265)],_0x51d3c8=_0x913046['MD5'],_0x485286=_0x913046[_0x5d7bc8(0x1d1)]=_0x115b3d[_0x5d7bc8(0x3d7)]({'cfg':_0x115b3d['extend']({'keySize':0x80/0x20,'hasher':_0x51d3c8,'iterations':0x1}),'init':__name(function(_0x4a9b87){var _0xd160e9=_0x5d7bc8;this['cfg']=this[_0xd160e9(0x3bb)][_0xd160e9(0x3d7)](_0x4a9b87);},_0x5d7bc8(0x351)),'compute':__name(function(_0x74edb1,_0x593d1b){var _0x1b6d1a=_0x5d7bc8;for(var _0x2ffd23,_0x51d85f=this[_0x1b6d1a(0x3bb)],_0x5e5c33=_0x51d85f[_0x1b6d1a(0x33f)]['create'](),_0x94dadb=_0x1c59e6['create'](),_0x5ab221=_0x94dadb[_0x1b6d1a(0x418)],_0x53970f=_0x51d85f[_0x1b6d1a(0x43c)],_0x1d998b=_0x51d85f[_0x1b6d1a(0x426)];_0x5ab221[_0x1b6d1a(0x25b)]<_0x53970f;){_0x2ffd23&&_0x5e5c33['update'](_0x2ffd23),_0x2ffd23=_0x5e5c33['update'](_0x74edb1)['finalize'](_0x593d1b),_0x5e5c33[_0x1b6d1a(0x33d)]();for(var _0x2f868f=0x1;_0x2f868f<_0x1d998b;_0x2f868f++)_0x2ffd23=_0x5e5c33[_0x1b6d1a(0x1ef)](_0x2ffd23),_0x5e5c33[_0x1b6d1a(0x33d)]();_0x94dadb[_0x1b6d1a(0x3f7)](_0x2ffd23);}return _0x94dadb[_0x1b6d1a(0x3ad)]=_0x53970f*0x4,_0x94dadb;},_0x5d7bc8(0x3ac))});_0x4bb90d['EvpKDF']=function(_0x47325b,_0x148960,_0xfc06c0){var _0x22a41e=_0x5d7bc8;return _0x485286['create'](_0xfc06c0)[_0x22a41e(0x3ac)](_0x47325b,_0x148960);};}()),_0x24d215['EvpKDF'];}));}(evpkdf$1)),evpkdf$1[_0x118e62(0x3b0)];}__name(requireEvpkdf,'requireEvpkdf');var cipherCore$1={'exports':{}},cipherCore=cipherCore$1[_0x4eebac(0x3b0)],hasRequiredCipherCore;function requireCipherCore(){return hasRequiredCipherCore||(hasRequiredCipherCore=0x1,function(_0x1a1835,_0x233835){(function(_0x128e26,_0x503fcc,_0x2ed58e){var _0xf4d91e=_0x5570;_0x1a1835[_0xf4d91e(0x3b0)]=_0x503fcc(requireCore(),requireEvpkdf());}(cipherCore,function(_0x2d8698){var _0x5cff80=_0x5570;_0x2d8698[_0x5cff80(0x307)]['Cipher']||function(_0x12ec1e){var _0x429cd8=_0x5cff80,_0x55ec41=_0x2d8698,_0x544b1d=_0x55ec41[_0x429cd8(0x307)],_0x4c8cbe=_0x544b1d[_0x429cd8(0x159)],_0x2404aa=_0x544b1d['WordArray'],_0x4e4049=_0x544b1d[_0x429cd8(0x203)],_0xdd9b23=_0x55ec41[_0x429cd8(0x3e2)];_0xdd9b23['Utf8'];var _0x3942e8=_0xdd9b23[_0x429cd8(0x422)],_0x28b425=_0x55ec41['algo'],_0x5b8787=_0x28b425[_0x429cd8(0x1d1)],_0x3bd624=_0x544b1d[_0x429cd8(0x268)]=_0x4e4049[_0x429cd8(0x3d7)]({'cfg':_0x4c8cbe['extend'](),'createEncryptor':__name(function(_0x296d3c,_0x2e9d1b){var _0x40b9d1=_0x429cd8;return this[_0x40b9d1(0x254)](this[_0x40b9d1(0x3f3)],_0x296d3c,_0x2e9d1b);},_0x429cd8(0x139)),'createDecryptor':__name(function(_0x5b49b9,_0x58b867){var _0x551ba6=_0x429cd8;return this['create'](this[_0x551ba6(0x2f7)],_0x5b49b9,_0x58b867);},_0x429cd8(0x19c)),'init':__name(function(_0x17398e,_0x4b3225,_0x74c3ce){var _0x52f49f=_0x429cd8;this[_0x52f49f(0x3bb)]=this[_0x52f49f(0x3bb)]['extend'](_0x74c3ce),this[_0x52f49f(0x337)]=_0x17398e,this[_0x52f49f(0x1ac)]=_0x4b3225,this['reset']();},'init'),'reset':__name(function(){var _0x5da4ad=_0x429cd8;_0x4e4049['reset'][_0x5da4ad(0x413)](this),this[_0x5da4ad(0x130)]();},_0x429cd8(0x33d)),'process':__name(function(_0x2e9c74){var _0x4aeb92=_0x429cd8;return this['_append'](_0x2e9c74),this[_0x4aeb92(0x141)]();},_0x429cd8(0x190)),'finalize':__name(function(_0x586960){var _0x34e9ff=_0x429cd8;_0x586960&&this[_0x34e9ff(0x1c5)](_0x586960);var _0x5be8fb=this[_0x34e9ff(0x2b5)]();return _0x5be8fb;},_0x429cd8(0x1ef)),'keySize':0x80/0x20,'ivSize':0x80/0x20,'_ENC_XFORM_MODE':0x1,'_DEC_XFORM_MODE':0x2,'_createHelper':(function(){var _0x13c82b=_0x429cd8;function _0x2bc59d(_0x2b920c){var _0x1bff55=_0x5570;return typeof _0x2b920c==_0x1bff55(0x20f)?_0x31e20b:_0x4fb0f9;}return __name(_0x2bc59d,_0x13c82b(0x1d6)),function(_0x32b759){var _0x19dfe9=_0x13c82b;return{'encrypt':__name(function(_0x2d8cc4,_0x11769f,_0x29e9d6){return _0x2bc59d(_0x11769f)['encrypt'](_0x32b759,_0x2d8cc4,_0x11769f,_0x29e9d6);},_0x19dfe9(0x212)),'decrypt':__name(function(_0x5801d7,_0x4b0c0a,_0x18946a){var _0x55c5b2=_0x19dfe9;return _0x2bc59d(_0x4b0c0a)[_0x55c5b2(0x231)](_0x32b759,_0x5801d7,_0x4b0c0a,_0x18946a);},_0x19dfe9(0x231))};};}())});_0x544b1d['StreamCipher']=_0x3bd624['extend']({'_doFinalize':__name(function(){var _0x3f92be=_0x429cd8,_0x10fe4c=this[_0x3f92be(0x141)](!0x0);return _0x10fe4c;},_0x429cd8(0x2b5)),'blockSize':0x1});var _0x10c69b=_0x55ec41[_0x429cd8(0x389)]={},_0x5a8b46=_0x544b1d[_0x429cd8(0x306)]=_0x4c8cbe['extend']({'createEncryptor':__name(function(_0x243959,_0x4fd918){var _0x41eb7d=_0x429cd8;return this[_0x41eb7d(0x221)][_0x41eb7d(0x254)](_0x243959,_0x4fd918);},_0x429cd8(0x139)),'createDecryptor':__name(function(_0x437e0f,_0x3e9fb7){var _0x2984a4=_0x429cd8;return this['Decryptor'][_0x2984a4(0x254)](_0x437e0f,_0x3e9fb7);},'createDecryptor'),'init':__name(function(_0x4aa300,_0x2adeea){var _0x4fa600=_0x429cd8;this[_0x4fa600(0x195)]=_0x4aa300,this['_iv']=_0x2adeea;},_0x429cd8(0x351))}),_0x281c29=_0x10c69b[_0x429cd8(0x22d)]=(function(){var _0x57b8fe=_0x429cd8,_0x24a3d2=_0x5a8b46[_0x57b8fe(0x3d7)]();_0x24a3d2[_0x57b8fe(0x221)]=_0x24a3d2[_0x57b8fe(0x3d7)]({'processBlock':__name(function(_0xad0c84,_0x4891f6){var _0x2e8e6a=_0x57b8fe,_0x511ede=this[_0x2e8e6a(0x195)],_0x43ceb2=_0x511ede[_0x2e8e6a(0x3ef)];_0x1b6b09['call'](this,_0xad0c84,_0x4891f6,_0x43ceb2),_0x511ede[_0x2e8e6a(0x304)](_0xad0c84,_0x4891f6),this[_0x2e8e6a(0x35a)]=_0xad0c84[_0x2e8e6a(0x3fa)](_0x4891f6,_0x4891f6+_0x43ceb2);},_0x57b8fe(0x13f))}),_0x24a3d2['Decryptor']=_0x24a3d2[_0x57b8fe(0x3d7)]({'processBlock':__name(function(_0x17c8a8,_0x943ddd){var _0x1b5594=_0x57b8fe,_0x6c2d04=this[_0x1b5594(0x195)],_0x32c415=_0x6c2d04['blockSize'],_0x22ad03=_0x17c8a8[_0x1b5594(0x3fa)](_0x943ddd,_0x943ddd+_0x32c415);_0x6c2d04[_0x1b5594(0x396)](_0x17c8a8,_0x943ddd),_0x1b6b09[_0x1b5594(0x413)](this,_0x17c8a8,_0x943ddd,_0x32c415),this[_0x1b5594(0x35a)]=_0x22ad03;},'processBlock')});function _0x1b6b09(_0x50ff0f,_0x37009d,_0x33dc5e){var _0x5b4a33=_0x57b8fe,_0x57f681,_0x5ae9ad=this['_iv'];_0x5ae9ad?(_0x57f681=_0x5ae9ad,this['_iv']=_0x12ec1e):_0x57f681=this[_0x5b4a33(0x35a)];for(var _0x419d2d=0x0;_0x419d2d<_0x33dc5e;_0x419d2d++)_0x50ff0f[_0x37009d+_0x419d2d]^=_0x57f681[_0x419d2d];}return __name(_0x1b6b09,'xorBlock'),_0x24a3d2;}()),_0x21cedf=_0x55ec41[_0x429cd8(0x17c)]={},_0x27cd3a=_0x21cedf[_0x429cd8(0x3e1)]={'pad':__name(function(_0x427327,_0x1ed818){var _0x37c29f=_0x429cd8;for(var _0x49e316=_0x1ed818*0x4,_0x19feff=_0x49e316-_0x427327['sigBytes']%_0x49e316,_0x454d5f=_0x19feff<<0x18|_0x19feff<<0x10|_0x19feff<<0x8|_0x19feff,_0x27bca9=[],_0x5d8200=0x0;_0x5d8200<_0x19feff;_0x5d8200+=0x4)_0x27bca9[_0x37c29f(0x2cd)](_0x454d5f);var _0x2f8f62=_0x2404aa[_0x37c29f(0x254)](_0x27bca9,_0x19feff);_0x427327[_0x37c29f(0x3f7)](_0x2f8f62);},'pad'),'unpad':__name(function(_0x2cf449){var _0x2bc3c3=_0x429cd8,_0x20af5f=_0x2cf449['words'][_0x2cf449[_0x2bc3c3(0x3ad)]-0x1>>>0x2]&0xff;_0x2cf449[_0x2bc3c3(0x3ad)]-=_0x20af5f;},_0x429cd8(0x3d5))};_0x544b1d[_0x429cd8(0x242)]=_0x3bd624['extend']({'cfg':_0x3bd624[_0x429cd8(0x3bb)][_0x429cd8(0x3d7)]({'mode':_0x281c29,'padding':_0x27cd3a}),'reset':__name(function(){var _0x575128=_0x429cd8,_0x177471;_0x3bd624[_0x575128(0x33d)][_0x575128(0x413)](this);var _0x5af8e6=this[_0x575128(0x3bb)],_0x58271d=_0x5af8e6['iv'],_0x15d19d=_0x5af8e6[_0x575128(0x389)];this[_0x575128(0x337)]==this['_ENC_XFORM_MODE']?_0x177471=_0x15d19d['createEncryptor']:(_0x177471=_0x15d19d[_0x575128(0x19c)],this[_0x575128(0x411)]=0x1),this[_0x575128(0x209)]&&this[_0x575128(0x209)][_0x575128(0x165)]==_0x177471?this[_0x575128(0x209)][_0x575128(0x351)](this,_0x58271d&&_0x58271d[_0x575128(0x418)]):(this['_mode']=_0x177471[_0x575128(0x413)](_0x15d19d,this,_0x58271d&&_0x58271d['words']),this['_mode'][_0x575128(0x165)]=_0x177471);},_0x429cd8(0x33d)),'_doProcessBlock':__name(function(_0x22ddfa,_0xdfc760){var _0xe92dee=_0x429cd8;this[_0xe92dee(0x209)][_0xe92dee(0x13f)](_0x22ddfa,_0xdfc760);},_0x429cd8(0x3ec)),'_doFinalize':__name(function(){var _0x1abd4b=_0x429cd8,_0x24e4f6,_0x2c3766=this[_0x1abd4b(0x3bb)][_0x1abd4b(0x42d)];return this[_0x1abd4b(0x337)]==this[_0x1abd4b(0x3f3)]?(_0x2c3766['pad'](this[_0x1abd4b(0x1fb)],this[_0x1abd4b(0x3ef)]),_0x24e4f6=this[_0x1abd4b(0x141)](!0x0)):(_0x24e4f6=this['_process'](!0x0),_0x2c3766[_0x1abd4b(0x3d5)](_0x24e4f6)),_0x24e4f6;},_0x429cd8(0x2b5)),'blockSize':0x80/0x20});var _0x234cf7=_0x544b1d[_0x429cd8(0x3ba)]=_0x4c8cbe[_0x429cd8(0x3d7)]({'init':__name(function(_0x803042){var _0x335f8c=_0x429cd8;this[_0x335f8c(0x3f5)](_0x803042);},_0x429cd8(0x351)),'toString':__name(function(_0xdb5a51){var _0x3f82a3=_0x429cd8;return(_0xdb5a51||this[_0x3f82a3(0x356)])[_0x3f82a3(0x42b)](this);},'toString')}),_0xf0943=_0x55ec41[_0x429cd8(0x2eb)]={},_0x3be532=_0xf0943[_0x429cd8(0x105)]={'stringify':__name(function(_0x5e9bbe){var _0x59c70b=_0x429cd8,_0x5a2132,_0x106591=_0x5e9bbe[_0x59c70b(0x434)],_0xba6471=_0x5e9bbe[_0x59c70b(0x110)];return _0xba6471?_0x5a2132=_0x2404aa['create']([0x53616c74,0x65645f5f])[_0x59c70b(0x3f7)](_0xba6471)[_0x59c70b(0x3f7)](_0x106591):_0x5a2132=_0x106591,_0x5a2132[_0x59c70b(0x13a)](_0x3942e8);},_0x429cd8(0x42b)),'parse':__name(function(_0x2845a6){var _0x5ef5a4=_0x429cd8,_0x5cbd85,_0x31542c=_0x3942e8[_0x5ef5a4(0x3d3)](_0x2845a6),_0x20809f=_0x31542c['words'];return _0x20809f[0x0]==0x53616c74&&_0x20809f[0x1]==0x65645f5f&&(_0x5cbd85=_0x2404aa[_0x5ef5a4(0x254)](_0x20809f[_0x5ef5a4(0x3fa)](0x2,0x4)),_0x20809f[_0x5ef5a4(0x26b)](0x0,0x4),_0x31542c[_0x5ef5a4(0x3ad)]-=0x10),_0x234cf7['create']({'ciphertext':_0x31542c,'salt':_0x5cbd85});},'parse')},_0x4fb0f9=_0x544b1d['SerializableCipher']=_0x4c8cbe[_0x429cd8(0x3d7)]({'cfg':_0x4c8cbe[_0x429cd8(0x3d7)]({'format':_0x3be532}),'encrypt':__name(function(_0x1a8f30,_0x10ddaf,_0x51a005,_0x4f5c64){var _0x37c123=_0x429cd8;_0x4f5c64=this[_0x37c123(0x3bb)][_0x37c123(0x3d7)](_0x4f5c64);var _0x37a363=_0x1a8f30[_0x37c123(0x139)](_0x51a005,_0x4f5c64),_0x192b12=_0x37a363[_0x37c123(0x1ef)](_0x10ddaf),_0x30bd4a=_0x37a363[_0x37c123(0x3bb)];return _0x234cf7[_0x37c123(0x254)]({'ciphertext':_0x192b12,'key':_0x51a005,'iv':_0x30bd4a['iv'],'algorithm':_0x1a8f30,'mode':_0x30bd4a['mode'],'padding':_0x30bd4a[_0x37c123(0x42d)],'blockSize':_0x1a8f30[_0x37c123(0x3ef)],'formatter':_0x4f5c64[_0x37c123(0x2eb)]});},'encrypt'),'decrypt':__name(function(_0x30af7b,_0x3a97f0,_0x472b7e,_0x550fc7){var _0x4ebbd8=_0x429cd8;_0x550fc7=this[_0x4ebbd8(0x3bb)][_0x4ebbd8(0x3d7)](_0x550fc7),_0x3a97f0=this[_0x4ebbd8(0x155)](_0x3a97f0,_0x550fc7[_0x4ebbd8(0x2eb)]);var _0x1bb639=_0x30af7b['createDecryptor'](_0x472b7e,_0x550fc7)[_0x4ebbd8(0x1ef)](_0x3a97f0[_0x4ebbd8(0x434)]);return _0x1bb639;},_0x429cd8(0x231)),'_parse':__name(function(_0x4e94a5,_0x1b0836){var _0x211fb1=_0x429cd8;return typeof _0x4e94a5=='string'?_0x1b0836[_0x211fb1(0x3d3)](_0x4e94a5,this):_0x4e94a5;},_0x429cd8(0x155))}),_0x2bec7d=_0x55ec41['kdf']={},_0x2acce=_0x2bec7d['OpenSSL']={'execute':__name(function(_0x560c1f,_0x2cc5bc,_0x4b2798,_0x16878f,_0x4bf19b){var _0x1dae3f=_0x429cd8;if(_0x16878f||(_0x16878f=_0x2404aa[_0x1dae3f(0x14e)](0x40/0x8)),_0x4bf19b)var _0x8dba8b=_0x5b8787[_0x1dae3f(0x254)]({'keySize':_0x2cc5bc+_0x4b2798,'hasher':_0x4bf19b})[_0x1dae3f(0x3ac)](_0x560c1f,_0x16878f);else var _0x8dba8b=_0x5b8787['create']({'keySize':_0x2cc5bc+_0x4b2798})['compute'](_0x560c1f,_0x16878f);var _0x5dbbee=_0x2404aa['create'](_0x8dba8b[_0x1dae3f(0x418)][_0x1dae3f(0x3fa)](_0x2cc5bc),_0x4b2798*0x4);return _0x8dba8b[_0x1dae3f(0x3ad)]=_0x2cc5bc*0x4,_0x234cf7[_0x1dae3f(0x254)]({'key':_0x8dba8b,'iv':_0x5dbbee,'salt':_0x16878f});},_0x429cd8(0x178))},_0x31e20b=_0x544b1d[_0x429cd8(0x308)]=_0x4fb0f9[_0x429cd8(0x3d7)]({'cfg':_0x4fb0f9[_0x429cd8(0x3bb)]['extend']({'kdf':_0x2acce}),'encrypt':__name(function(_0x36523,_0x129ba4,_0x20ec85,_0x1b14f5){var _0xdb4e21=_0x429cd8;_0x1b14f5=this['cfg'][_0xdb4e21(0x3d7)](_0x1b14f5);var _0x2baa87=_0x1b14f5['kdf'][_0xdb4e21(0x178)](_0x20ec85,_0x36523[_0xdb4e21(0x43c)],_0x36523['ivSize'],_0x1b14f5[_0xdb4e21(0x110)],_0x1b14f5[_0xdb4e21(0x33f)]);_0x1b14f5['iv']=_0x2baa87['iv'];var _0x4107f0=_0x4fb0f9[_0xdb4e21(0x212)][_0xdb4e21(0x413)](this,_0x36523,_0x129ba4,_0x2baa87[_0xdb4e21(0x19f)],_0x1b14f5);return _0x4107f0['mixIn'](_0x2baa87),_0x4107f0;},_0x429cd8(0x212)),'decrypt':__name(function(_0x2c3858,_0x1286d6,_0x2c8043,_0x554fc5){var _0x954cf3=_0x429cd8;_0x554fc5=this[_0x954cf3(0x3bb)][_0x954cf3(0x3d7)](_0x554fc5),_0x1286d6=this[_0x954cf3(0x155)](_0x1286d6,_0x554fc5[_0x954cf3(0x2eb)]);var _0xd1bc00=_0x554fc5[_0x954cf3(0x359)][_0x954cf3(0x178)](_0x2c8043,_0x2c3858[_0x954cf3(0x43c)],_0x2c3858[_0x954cf3(0x366)],_0x1286d6['salt'],_0x554fc5['hasher']);_0x554fc5['iv']=_0xd1bc00['iv'];var _0x307540=_0x4fb0f9[_0x954cf3(0x231)][_0x954cf3(0x413)](this,_0x2c3858,_0x1286d6,_0xd1bc00['key'],_0x554fc5);return _0x307540;},_0x429cd8(0x231))});}();}));}(cipherCore$1)),cipherCore$1['exports'];}__name(requireCipherCore,_0x4eebac(0x22b));var aes=aes$1[_0x4eebac(0x3b0)],hasRequiredAes;function requireAes(){var _0x1f32af=_0x4eebac;return hasRequiredAes||(hasRequiredAes=0x1,function(_0x3e5aad,_0xc57030){(function(_0x292f26,_0x37d2e3,_0x3f2e3c){_0x3e5aad['exports']=_0x37d2e3(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore());}(aes,function(_0x34e6cc){var _0x240746=_0x5570;return(function(){var _0x603d7a=_0x5570,_0x55c03f=_0x34e6cc,_0x82fb44=_0x55c03f[_0x603d7a(0x307)],_0x122ada=_0x82fb44[_0x603d7a(0x242)],_0x16671f=_0x55c03f[_0x603d7a(0x265)],_0x2f9543=[],_0x9f43fe=[],_0x5f1312=[],_0x53f118=[],_0x59a675=[],_0x58a6b0=[],_0x592218=[],_0x3b855b=[],_0x30ed12=[],_0x5bbc32=[];(function(){for(var _0x487eca=[],_0x1430ed=0x0;_0x1430ed<0x100;_0x1430ed++)_0x1430ed<0x80?_0x487eca[_0x1430ed]=_0x1430ed<<0x1:_0x487eca[_0x1430ed]=_0x1430ed<<0x1^0x11b;for(var _0x145449=0x0,_0x3b4adc=0x0,_0x1430ed=0x0;_0x1430ed<0x100;_0x1430ed++){var _0x2d4549=_0x3b4adc^_0x3b4adc<<0x1^_0x3b4adc<<0x2^_0x3b4adc<<0x3^_0x3b4adc<<0x4;_0x2d4549=_0x2d4549>>>0x8^_0x2d4549&0xff^0x63,_0x2f9543[_0x145449]=_0x2d4549,_0x9f43fe[_0x2d4549]=_0x145449;var _0x4ea8f8=_0x487eca[_0x145449],_0xe3f4fe=_0x487eca[_0x4ea8f8],_0x5e5389=_0x487eca[_0xe3f4fe],_0x51eaae=_0x487eca[_0x2d4549]*0x101^_0x2d4549*0x1010100;_0x5f1312[_0x145449]=_0x51eaae<<0x18|_0x51eaae>>>0x8,_0x53f118[_0x145449]=_0x51eaae<<0x10|_0x51eaae>>>0x10,_0x59a675[_0x145449]=_0x51eaae<<0x8|_0x51eaae>>>0x18,_0x58a6b0[_0x145449]=_0x51eaae;var _0x51eaae=_0x5e5389*0x1010101^_0xe3f4fe*0x10001^_0x4ea8f8*0x101^_0x145449*0x1010100;_0x592218[_0x2d4549]=_0x51eaae<<0x18|_0x51eaae>>>0x8,_0x3b855b[_0x2d4549]=_0x51eaae<<0x10|_0x51eaae>>>0x10,_0x30ed12[_0x2d4549]=_0x51eaae<<0x8|_0x51eaae>>>0x18,_0x5bbc32[_0x2d4549]=_0x51eaae,_0x145449?(_0x145449=_0x4ea8f8^_0x487eca[_0x487eca[_0x487eca[_0x5e5389^_0x4ea8f8]]],_0x3b4adc^=_0x487eca[_0x487eca[_0x3b4adc]]):_0x145449=_0x3b4adc=0x1;}}());var _0x262138=[0x0,0x1,0x2,0x4,0x8,0x10,0x20,0x40,0x80,0x1b,0x36],_0x3830f0=_0x16671f['AES']=_0x122ada[_0x603d7a(0x3d7)]({'_doReset':__name(function(){var _0x4f5e69=_0x603d7a,_0x33ee94;if(!(this[_0x4f5e69(0x329)]&&this[_0x4f5e69(0x1fe)]===this[_0x4f5e69(0x1ac)])){for(var _0x39df83=this[_0x4f5e69(0x1fe)]=this[_0x4f5e69(0x1ac)],_0x1108f1=_0x39df83[_0x4f5e69(0x418)],_0x52c92e=_0x39df83['sigBytes']/0x4,_0x4d2c5b=this[_0x4f5e69(0x329)]=_0x52c92e+0x6,_0x340159=(_0x4d2c5b+0x1)*0x4,_0x62b829=this[_0x4f5e69(0x2be)]=[],_0x314296=0x0;_0x314296<_0x340159;_0x314296++)_0x314296<_0x52c92e?_0x62b829[_0x314296]=_0x1108f1[_0x314296]:(_0x33ee94=_0x62b829[_0x314296-0x1],_0x314296%_0x52c92e?_0x52c92e>0x6&&_0x314296%_0x52c92e==0x4&&(_0x33ee94=_0x2f9543[_0x33ee94>>>0x18]<<0x18|_0x2f9543[_0x33ee94>>>0x10&0xff]<<0x10|_0x2f9543[_0x33ee94>>>0x8&0xff]<<0x8|_0x2f9543[_0x33ee94&0xff]):(_0x33ee94=_0x33ee94<<0x8|_0x33ee94>>>0x18,_0x33ee94=_0x2f9543[_0x33ee94>>>0x18]<<0x18|_0x2f9543[_0x33ee94>>>0x10&0xff]<<0x10|_0x2f9543[_0x33ee94>>>0x8&0xff]<<0x8|_0x2f9543[_0x33ee94&0xff],_0x33ee94^=_0x262138[_0x314296/_0x52c92e|0x0]<<0x18),_0x62b829[_0x314296]=_0x62b829[_0x314296-_0x52c92e]^_0x33ee94);for(var _0x332a96=this[_0x4f5e69(0x3e7)]=[],_0x34a6fa=0x0;_0x34a6fa<_0x340159;_0x34a6fa++){var _0x314296=_0x340159-_0x34a6fa;if(_0x34a6fa%0x4)var _0x33ee94=_0x62b829[_0x314296];else var _0x33ee94=_0x62b829[_0x314296-0x4];_0x34a6fa<0x4||_0x314296<=0x4?_0x332a96[_0x34a6fa]=_0x33ee94:_0x332a96[_0x34a6fa]=_0x592218[_0x2f9543[_0x33ee94>>>0x18]]^_0x3b855b[_0x2f9543[_0x33ee94>>>0x10&0xff]]^_0x30ed12[_0x2f9543[_0x33ee94>>>0x8&0xff]]^_0x5bbc32[_0x2f9543[_0x33ee94&0xff]];}}},_0x603d7a(0x130)),'encryptBlock':__name(function(_0x13a4db,_0x5bbd2a){var _0x3a266d=_0x603d7a;this[_0x3a266d(0x2e6)](_0x13a4db,_0x5bbd2a,this[_0x3a266d(0x2be)],_0x5f1312,_0x53f118,_0x59a675,_0x58a6b0,_0x2f9543);},_0x603d7a(0x304)),'decryptBlock':__name(function(_0x2cb5d3,_0x4d9a28){var _0x419f91=_0x603d7a,_0x13e11e=_0x2cb5d3[_0x4d9a28+0x1];_0x2cb5d3[_0x4d9a28+0x1]=_0x2cb5d3[_0x4d9a28+0x3],_0x2cb5d3[_0x4d9a28+0x3]=_0x13e11e,this[_0x419f91(0x2e6)](_0x2cb5d3,_0x4d9a28,this['_invKeySchedule'],_0x592218,_0x3b855b,_0x30ed12,_0x5bbc32,_0x9f43fe);var _0x13e11e=_0x2cb5d3[_0x4d9a28+0x1];_0x2cb5d3[_0x4d9a28+0x1]=_0x2cb5d3[_0x4d9a28+0x3],_0x2cb5d3[_0x4d9a28+0x3]=_0x13e11e;},_0x603d7a(0x396)),'_doCryptBlock':__name(function(_0x2b82e3,_0xaa0559,_0x328b83,_0x41c9a4,_0x3cd722,_0x1a43a2,_0x158509,_0x59d047){var _0xb9da11=_0x603d7a;for(var _0xa4f463=this[_0xb9da11(0x329)],_0x507c9d=_0x2b82e3[_0xaa0559]^_0x328b83[0x0],_0x348856=_0x2b82e3[_0xaa0559+0x1]^_0x328b83[0x1],_0x4ff957=_0x2b82e3[_0xaa0559+0x2]^_0x328b83[0x2],_0x22fda2=_0x2b82e3[_0xaa0559+0x3]^_0x328b83[0x3],_0x19093c=0x4,_0x34f244=0x1;_0x34f244<_0xa4f463;_0x34f244++){var _0x4342a1=_0x41c9a4[_0x507c9d>>>0x18]^_0x3cd722[_0x348856>>>0x10&0xff]^_0x1a43a2[_0x4ff957>>>0x8&0xff]^_0x158509[_0x22fda2&0xff]^_0x328b83[_0x19093c++],_0x1c8402=_0x41c9a4[_0x348856>>>0x18]^_0x3cd722[_0x4ff957>>>0x10&0xff]^_0x1a43a2[_0x22fda2>>>0x8&0xff]^_0x158509[_0x507c9d&0xff]^_0x328b83[_0x19093c++],_0x2a6af5=_0x41c9a4[_0x4ff957>>>0x18]^_0x3cd722[_0x22fda2>>>0x10&0xff]^_0x1a43a2[_0x507c9d>>>0x8&0xff]^_0x158509[_0x348856&0xff]^_0x328b83[_0x19093c++],_0x307df4=_0x41c9a4[_0x22fda2>>>0x18]^_0x3cd722[_0x507c9d>>>0x10&0xff]^_0x1a43a2[_0x348856>>>0x8&0xff]^_0x158509[_0x4ff957&0xff]^_0x328b83[_0x19093c++];_0x507c9d=_0x4342a1,_0x348856=_0x1c8402,_0x4ff957=_0x2a6af5,_0x22fda2=_0x307df4;}var _0x4342a1=(_0x59d047[_0x507c9d>>>0x18]<<0x18|_0x59d047[_0x348856>>>0x10&0xff]<<0x10|_0x59d047[_0x4ff957>>>0x8&0xff]<<0x8|_0x59d047[_0x22fda2&0xff])^_0x328b83[_0x19093c++],_0x1c8402=(_0x59d047[_0x348856>>>0x18]<<0x18|_0x59d047[_0x4ff957>>>0x10&0xff]<<0x10|_0x59d047[_0x22fda2>>>0x8&0xff]<<0x8|_0x59d047[_0x507c9d&0xff])^_0x328b83[_0x19093c++],_0x2a6af5=(_0x59d047[_0x4ff957>>>0x18]<<0x18|_0x59d047[_0x22fda2>>>0x10&0xff]<<0x10|_0x59d047[_0x507c9d>>>0x8&0xff]<<0x8|_0x59d047[_0x348856&0xff])^_0x328b83[_0x19093c++],_0x307df4=(_0x59d047[_0x22fda2>>>0x18]<<0x18|_0x59d047[_0x507c9d>>>0x10&0xff]<<0x10|_0x59d047[_0x348856>>>0x8&0xff]<<0x8|_0x59d047[_0x4ff957&0xff])^_0x328b83[_0x19093c++];_0x2b82e3[_0xaa0559]=_0x4342a1,_0x2b82e3[_0xaa0559+0x1]=_0x1c8402,_0x2b82e3[_0xaa0559+0x2]=_0x2a6af5,_0x2b82e3[_0xaa0559+0x3]=_0x307df4;},_0x603d7a(0x2e6)),'keySize':0x100/0x20});_0x55c03f[_0x603d7a(0x415)]=_0x122ada[_0x603d7a(0x31f)](_0x3830f0);}()),_0x34e6cc[_0x240746(0x415)];}));}(aes$1)),aes$1[_0x1f32af(0x3b0)];}__name(requireAes,_0x4eebac(0x160));var aesExports=requireAes();const AES=getDefaultExportFromCjs(aesExports);var encBase64Exports=requireEncBase64();const Base64=getDefaultExportFromCjs(encBase64Exports);var encUtf8$1={'exports':{}},encUtf8=encUtf8$1[_0x4eebac(0x3b0)],hasRequiredEncUtf8;function requireEncUtf8(){var _0x32fcb8=_0x4eebac;return hasRequiredEncUtf8||(hasRequiredEncUtf8=0x1,function(_0x5f28bd,_0x24371a){(function(_0x5c1988,_0x1f9866){_0x5f28bd['exports']=_0x1f9866(requireCore());}(encUtf8,function(_0x21a4d1){var _0x3ffb19=_0x5570;return _0x21a4d1['enc'][_0x3ffb19(0x250)];}));}(encUtf8$1)),encUtf8$1[_0x32fcb8(0x3b0)];}__name(requireEncUtf8,_0x4eebac(0x1c3));var encUtf8Exports=requireEncUtf8();function _0x2476(){var _0x1f72d1=['_entityInit$','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','saveChangeset','Native\x20crypto\x20module\x20could\x20not\x20be\x20used\x20to\x20get\x20secure\x20random\x20number.','HEARTBEAT','_hash','randomBytes','_clearTimeoutTimer','put','_DEC_XFORM_MODE','_resendTimeout','createSocket','abs','getInterceptPoints','confirm','_socketMessageSubscription','deserializeToCombResponse','onSendChangeset','objectActions','originalMeta','UNKNOWN_CODE','_init','encryptBlock','requireHmac','BlockCipherMode','lib','PasswordBasedCipher','unitId\x20is\x20not\x20found','getValue','file','_singleActiveUnitService','_syncEditingCollabCursor','__decorateClass$c','fetchMissingChangesets','append','open$','LIVESHARE_NEW_HOST','getUnitStatus$','buffer','eventID','LEAVE','rev','_socket$','SUBMIT_CHANGESET_TIMEOUT','subject','csShouldRetryEvent','status$','unitID','getUnitId','_createHelper','crypto','_pendingMutations','_commentUpdate$','_getSessionTicket','PSEUDO_FETCH_MISSING_RESULT','_permissionService','body','LIVESHARE_TERMINATE','_clearUndo','_nRounds','max','UNIVER_SLIDE','_lockTransition','COMPRESS_MUTATION_SEND','__decorateParam','_rescheduleHeartbeat','/-/object/list','result','ConflictState','getImage','onRemoteRetry','getMemberID','_handlerCallback','_xformMode','uploadFileServerUrl','/-/object/-/batch_allowed','setConfig','_collaborationPaused','has','reset','SUBMIT_CHANGESET','hasher','__decorateClass$3','localCacheService','ALREADY_EXISTS','HMAC','_registerDependencies','_showConflictNotification','/universer-api/snapshot','\x20in\x20_schedule.','UNIVER_PROJECT','_collabSessionService','4EOCYvY','_sendHeartbeat','reject','_transformRemoteChangesetByIMECache','save\x20fail\x20reason\x20is\x20','transformChangesets','COMPLETION_FINISHED','init','not_collab','__decorateClass$f','_resendWithTimeout','_change$','formatter','_commentService','_toggleOffline','kdf','_prevBlock','UniverCollaborationClientPlugin','apply','USERS_ENTER','_sendingTimer','[DataLoaderService]','__decorateClass$a','getMember','action','getConfig','image/bmp','CLOSE_ROOM','ivSize','updateCollaborator','event$','4906016SbWDqh','getFocusedUnit','_changesetSessionId','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','set','registerHTTPInterceptor','_substituteRedoStack','post','_updateStatus','554015eBSDpd','[OfflineState]:\x20received\x20changeset.','USERS_LEAVE','resend','headers','LIVESHARE_REQUEST_HOST','disposeWithMe','RECV','_replaceFileID','onload','__esModule','_shouldReportTelemetry','RETRY_CONNECTING_MAX_COUNT','isPermissionRej','getCollabEntity$','4932SCLrae','revision','_loadDoc','_transformIMECache','pipe','[OfflineState]:\x20received\x20acknowledgement.','mutations','23337QcuPrE','mode','entityInit$','ERROR_IMAGE_TYPE','onRemoteRej','_socket','_snapshotService','CHANGESET_SHOULD_RETRY','delete','state','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','\x0aCurrent:\x20','\x20-\x20','state$','decryptBlock','synced','clear','JOIN_ROOM_NOT_EXISTS','addHandlerCallback','COLLAB_SUBMIT_CHANGESET_URL','asObservable','close','_transformStack','__decorateClass$d','/universer-api/oidc/authpage','__decorateClass$g','_type','byteLength','cmd','toggleOffline','symbol','__decorateParam$8','MSG_FOR_ERROR','_onRemoteRetry','FETCH_MISSING','_initDependencies','compute','sigBytes','__decorateClass$h','__decorateParam$9','exports','ceil','_handler','/collaborator','pending','avatar','__decorateParam$7','_undoStacks','_localeService','/object/','CipherParams','cfg','liveShareNewHost','updatePermissionPoint','YUUMI_RATE_OVER_LIMIT','saveSheetBlock','getLatestCsReqIdBySid','actions','HttpExport','_roomCreated$','stopTime','TOO_MANY_REQUESTS','_decreaseWaiting','sheets','appendMutation','/object','patch','_http','NoPadding','_HTTPService','_state$','onTransformState','getActiveSheet','_map','saveImage','parse','SEND_CHANGESET_TIMEOUT','unpad','SNAPSHOT_SERVER_URL_KEY','extend','onMissedChangesetFetched','socket\x20close','_initUnitPermissionChange','replace','initWorkbookPermissionChange','onTransformIME','_iKey','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_sendHeartbeatTimer','Pkcs7','enc','session.room-full','JOIN_ROOM_PERMISSION_DENIED','__decorateParam$1','listRoles','_invKeySchedule','APPLY_REJECT','__decorateParam$g','_onConnectionOpen','terminateWithError','_doProcessBlock','__decorateClass$9','__decorateClass$1','blockSize','CHANGESET_REJ','_collaborationUIEventService','telemetry\x20info\x20is\x20not\x20initialized','_ENC_XFORM_MODE','BASE64','mixIn','MUTATION','concat','__decorateParam$c','_members','slice','conflict','_getAPIPrefixPath','PERMISSION_DENIED','_onConnectionFailed','message$','INVALID_ARGUMENT','AWAITING','OfflineState','_unlockTransition','location','_onRemoteRejected','toLowerCase','collabSubmitChangesetUrl','size','SNAPSHOT_HAS_BEEN_REMOVED','_clearLocalCache','{fileID}','HmacSHA1','_unitInfo$','_queuedRemoteChangesets','getUnit','DomainRequestService','_minBufferSize','waitForRoom$','call','emitEvent','AES','NEW_CHANGESETS','/fetchmissing?from=','words','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','SheetTransformSelectionsService','onCommandExecuted','type','Malformed\x20UTF-8\x20data','UNDEFINED','_initMergeInterceptor','UNIVER_DOC','msCrypto','Base64','__decorateClass$5','session','deepClone','iterations','?url=','fetch_missing','FAIL','__decorateParam$e','stringify','charAt','padding','_incrementRevisionNumber','__decorateParam$b','prototype','YUUMI_UNABLE_LOAD_URL','_config','override','ciphertext','UNIVER_SHEET','forEach','retryConnectingInterval','AuthzIoHttpService','[PendingState]:\x20received\x20acknowledgement.','awaiting','OTHER_CLIENT_EDITING','keySize','deleteCollaborator','liveShareOperation','origin','reverse','LIVESHARE_FETCH_OPERATIONS','update','fromCollab','LICENSE_MAX_UNITS_EXCEEDED','requireMd5','_createSocket','removeMember','image/jpeg','clamp','APPLY_REVISION_CONFILICT','onTransformRemoteChangesetByIMECache','getCurrentUser','getTypeOfUnitDisposed$','isArray','JOINING','OpenSSL','map','[CollaborationEntity]','_throwTelemetryCollaborationNewChangeset','/role','_clearHeartbeatTimer','OTHER_CLIENTS_EDITING','_commandService','_members$','_onFetchMissResult','requireSha1','salt','COLLAB_WEB_SOCKET_URL','LICENSE_IMPORT_SIZE_EXCEEDED','PENDING','__decorateClass$e','_substituteUndoStack','_compressMutationService','joinEvent','PERSON','permissionRejEvent','_oKey','LICENSE_EXPORT_SIZE_EXCEEDED','FETCH_MISS','MemberService','LIVESHARE_OPERATION','HELLO','_unitID','SUCCUSS','newCsEvent','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_onMessage','JOIN_ROOM_FULL','_transformRemoteChangesetByStateCache','subscribe','_sessions','_httpService','/universer-api/comb','image/jpg','[UniverCollaborationClientPlugin]','complete','addImageSourceCache','_scheduleCompleteTimestamp','_doReset','members$','localeService','bind','_loadSheet','values','collaboratorID','_reverseMap','subUnitId','createEncryptor','toString','_updateState','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','sessionStatus','CollaborationState','processBlock','refreshPermission','_process','data','_telemetryInfo','sid','createInstance','1518630zetsrF','loadSheet','params','snapshotServerUrl','duration','YUUMI_URL_COL_OUT_OF_RANGE','__decorateParam$i','[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.','random','134Vpgwlu','_getCurrentRevision','awaitingChangeset','online$','_memberService','error','_parse','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','__decorateParam$4','NO_OTHER_CLIENTS_EDITING','Base','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_onUserJoin','GLOBAL_ROOMS_CNT_EXCEEDS','_startCollaboration','_nDataBytes','POST','requireAes','readAsDataURL','ENSURE_SNAPSHOT_EXECUTION','objectID','INTERNAL_ERROR','__creator','_undoRedoService','__decorateClass$4','dispose$','roomInfos','INGEST','onTransformRemoteChangesetByIMECache\x20callback\x20is\x20not\x20added\x20yet.','Univer','reqId','reduce','univer-pro.collaboration-client.single-active-unit-service','/rev/','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','LICENSE_DISTRO_REJECTED','updatePermissionObjEvent','_checkMissing','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','_transformService','editingUnit','execute','_sender','__decorateParam$6','unit-cache-','pad','disableLocalCache','CollaborationEntity','runId','SHA1','ws://127.0.0.1:8000/universer-api/comb/connect','c2Prime','updateCursorEvent','ERROR_EXCEED_SIZE','_emitMembers','getCurrentRevOfUnit','_createInitialStateImpl','__decorateClass$7','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','16500ErjTrD','SYNCED','_remoteChangesetQueue','_createSocketURL','compose','defineProperty','process','onMissingChangesets','name','_hasher','routeKey','_cipher','collaboration-client.local-cache-service','getRandomValues','_imageSourceCache','_onConflict','c1Prime','MD5','createDecryptor','9GgEoOh','_onJoinRoomEvent','key','SHOULD_CLOSE_CONN','_replayCachedMutations','_onRemoteChangeset','collaboration-client.config','UNIVER_UNKNOWN','getTypeOfUnitAdded$','CollaborationSessionService','_createInitialState','SOCKET_FAILED','objectType','commentUpdateEvent','awaiting_with_pending','_key','hostname','handleCloseConn','handleUnitPermissionChange','Could\x20not\x20dynamically\x20require\x20\x22','_candidateSocket','_roomMembers','fetchThroughInterceptors','\x20to\x20','_getCtorByUniverType','_transformStateCache','_status$','loadUnit','/universer-api/stream/file/upload','OFFLINE','HttpImport','/block/','Latin1','sin','image/png','onSyncEditingCollabCursor','&assign=','_getAPIPrefix','requireEncUtf8','fetchMiss','_append','join','[PendingState]:\x20received\x20rejection.','FileId','now','AWAITING_WITH_PENDING','AuthServerService','send','_clearScheduledTask','_onCombEvent','change$','CONFLICT','EvpKDF','_createHandler','from','_socketService','searchParams','selectCipherStrategy','_getUndoStack','NOT_FOUND','MentionIoHttpService','CHANGESET_REVISION_CONFILICT','/universer-api/file/{fileID}/sign-url','APPLY_NON_SEQUENTIAL_REVISION','__decorateParam$5','SNAPSHOT_INVALID_SNAPSHOT','_onOffline','_getDownloadEndpointURL','getSnapshotAPIPath','_getSignURL','equals','[CollaborationSessionService]','_getLoginPath','changesets','__decorateParam$3','socket\x20open.','fromCharCode','byteOffset','pluginName','_sheetTransformSelectionsService','transformUndoRedo','readInt32LE','finalize','enableSingleActiveInstanceLock','application/json','randomUUID','generateSubmitChangesPath','_applyRemoteChangeset','DocCollaborationEntity','ONLINE','_telemetryService','debug','_event$','UNRECOGNIZED','_data','univer-pro.collaboration-client.network-condition.service','_collaborationTimeoutTimer','_keyPriorReset','UNAUTHENTICATED','JOIN_ROOM_FAILED','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','CommentService','BufferedBlockAlgorithm','PERMISSION_REJ','createTimerObservable$','enableOfflineEditing','withCredentials','PY_RUNTIME_SCRIPT_ERROR','_mode','requestParams','UUID','transformStack\x20failed!','CollaborationSocketService','255014RptjHT','string','executeCommand','signUrlServerUrl','encrypt','startsWith','_state','clone','_tryEnsureSocket','_initCloseConn','_changesetReqId','getResourcesRequest','hasOwnProperty','setShowComponents','requireSession','capture','code','add','__decorateClass$8','Encryptor','_executeRemoteChangeset','[CollaborationUndoRedoService]','onlyLocal','next','_entities','_startTelemetryCollaborationNewChangeset','connection\x20error','_exhaustRemoteChangesetQueue','updateOfflineData','requireCipherCore','responseType','CBC','copyFileMeta','onTransformRemoteChangesetByStateCache','ERROR_IMAGE','decrypt','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','ticket','UPDATE_CURSOR','[CollaborationSession]','_getSendChangesetTimeout','WordArray','_configService','members','_logService','_stopTelemetryCollaborationNewChangeset','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','offline','commentUpdate$','unsubscribe','_acknowledgedAwaitingChangeset','JOIN','BlockCipher','_userManagerService','_transformSelections','repeat','SheetCollaborationEntity','uniscriptRunEvent','YUUMI_SUBSCRIPTION_NOT_FOUND','function','auth.needGotoLoginAlert','sessionStatus$','/universer-api/authz','allowed','&source=','encode','Utf8','onTransformSelections','_schedule','IDLE','create','__decorateClass$2','_univerInstanceService','SNAPSHOT_URL_KEY','_toggleOnline','every','__decorateClass$6','length','UNISCRIPT_RUN','getAllMembers','_resendTimer','_scheduleCollaborationTimeoutTimer','getCollabEntity','getTime','_tryReconnect','EXCHANGE_SIGN_URL_SERVER_URL_KEY','close$','algo','pkcs7Padding','indexOf','Cipher','/universer-api/uniscript','COMMENT_UPDATE','splice','transformMutationsWithChangeset','__decorateParam$2','_waitForHeartbeatResponse','loadDoc','UNKNOWN_CMD','CHANGESET_ACK','_authzIoService','dispose','reconnect','userID','_networkConditionService','csRejEvent','1387799ddIhEa','[SyncedState]:\x20received\x20rejection.','_onRecvEvent','Hex','updateMember','CONNECTOR_DATA_TOO_LARGE','_timeoutTimer','_awaitingChangeset','startTime','filter','onLocalMutation','requireLibTypedarrays','_submitChangeset','json','UnitEmbedded','onRemoteAck','Hasher','getUnitType','get','_revisionService','range','CollaborativeUndoRedoService','CollaborationImageIoService','_instanceService','_collaborationSessionService','DataLoaderService','__defNormalProp','_getUploadFileURL','transformSelections','authzUrl','_createHmacHelper','min','/universer-api/user/session-ticket','status','shouldCloseConn','APPLY_DUPLICATED','baseRev','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_sessionStatus$','listCollaborators','parseLoop','_retryConnectingTimer','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_socketReady','FetchingMissState','memberID','6vkhYwJ','getOwnPropertyDescriptor','toggleOnline','RoomMember','Undefined','_getRedoStack','_fetchMissChangesets','resourceIDs','_disableEditing','m2Prime','unknown','_waitCount','_listenToNetworkCondition','loadOfflineData','_onLocalMutation','_doFinalize','getCurrentSelections','onStarting','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','catch','_eventService','onCommentUpdate','socketService','list','_keySchedule','floor','SOCKET_FAILED_RETRY','interceptor','default','selections','_localCacheService','method','_updateLocalCache','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_transitionLocked','_onUserLeave','setCurrentUser','__decorateParam$d','collaborators','push','rng','_snapshotServerService','_transformUndoredo','getUnitOnRev','textRanges','_injector','entries','[OfflineState]:\x20received\x20rejection.','unitId','getSheetBlock','_removeRoom','__decorateParam$f','closeSession','generateRandomId','_retryCount','UnitSnapshot','COMPRESS_MUTATION_APPLY','wsSessionTicketUrl','/universer-api/snapshot/','charCodeAt','leaveEvent','onTransformRemoteChangesetByStateCache\x20callback\x20is\x20not\x20added\x20yet.','onRemoteChangeset','SyncedState','_doCryptBlock','_clearRedo','/unit/','fetching\x20missing\x20changesets\x20from\x20','__decorateClass$b','format','resolve','/allowed'];_0x2476=function(){return _0x1f72d1;};return _0x2476();}const Utf8=getDefaultExportFromCjs(encUtf8Exports);var libTypedarrays$1={'exports':{}},libTypedarrays=libTypedarrays$1[_0x4eebac(0x3b0)],hasRequiredLibTypedarrays;function requireLibTypedarrays(){var _0x21b717=_0x4eebac;return hasRequiredLibTypedarrays||(hasRequiredLibTypedarrays=0x1,function(_0x1beebf,_0x48e2c7){(function(_0x41b34d,_0x2408a2){var _0x32db78=_0x5570;_0x1beebf[_0x32db78(0x3b0)]=_0x2408a2(requireCore());}(libTypedarrays,function(_0x3dc49e){var _0x3ce45b=_0x5570;return(function(){var _0x1db7a9=_0x5570;if(typeof ArrayBuffer=='function'){var _0x566c97=_0x3dc49e,_0x709f0f=_0x566c97[_0x1db7a9(0x307)],_0x214c16=_0x709f0f[_0x1db7a9(0x237)],_0x15d208=_0x214c16[_0x1db7a9(0x351)],_0x1a5773=_0x214c16['init']=function(_0x5f095b){var _0x5db562=_0x1db7a9;if(_0x5f095b instanceof ArrayBuffer&&(_0x5f095b=new Uint8Array(_0x5f095b)),(_0x5f095b instanceof Int8Array||typeof Uint8ClampedArray<'u'&&_0x5f095b instanceof Uint8ClampedArray||_0x5f095b instanceof Int16Array||_0x5f095b instanceof Uint16Array||_0x5f095b instanceof Int32Array||_0x5f095b instanceof Uint32Array||_0x5f095b instanceof Float32Array||_0x5f095b instanceof Float64Array)&&(_0x5f095b=new Uint8Array(_0x5f095b[_0x5db562(0x314)],_0x5f095b[_0x5db562(0x1ea)],_0x5f095b[_0x5db562(0x3a3)])),_0x5f095b instanceof Uint8Array){for(var _0x5dd9ca=_0x5f095b[_0x5db562(0x3a3)],_0x52a340=[],_0x30ddc5=0x0;_0x30ddc5<_0x5dd9ca;_0x30ddc5++)_0x52a340[_0x30ddc5>>>0x2]|=_0x5f095b[_0x30ddc5]<<0x18-_0x30ddc5%0x4*0x8;_0x15d208[_0x5db562(0x413)](this,_0x52a340,_0x5dd9ca);}else _0x15d208[_0x5db562(0x35c)](this,arguments);};_0x1a5773['prototype']=_0x214c16;}}()),_0x3dc49e[_0x3ce45b(0x307)]['WordArray'];}));}(libTypedarrays$1)),libTypedarrays$1[_0x21b717(0x3b0)];}function _0x5570(_0x70114e,_0x47600a){var _0x24769d=_0x2476();return _0x5570=function(_0x5570a0,_0x4ff9c4){_0x5570a0=_0x5570a0-0xff;var _0xde49ac=_0x24769d[_0x5570a0];return _0xde49ac;},_0x5570(_0x70114e,_0x47600a);}__name(requireLibTypedarrays,_0x4eebac(0x283));var libTypedarraysExports=requireLibTypedarrays();const WordArray=getDefaultExportFromCjs(libTypedarraysExports);var padNopadding$1={'exports':{}},padNopadding=padNopadding$1['exports'],hasRequiredPadNopadding;function requirePadNopadding(){return hasRequiredPadNopadding||(hasRequiredPadNopadding=0x1,function(_0x4b16a6,_0x4149ea){(function(_0x58e264,_0x5b27d3,_0x3d2524){_0x4b16a6['exports']=_0x5b27d3(requireCore(),requireCipherCore());}(padNopadding,function(_0x25f0e2){var _0xa965e6=_0x5570;return _0x25f0e2[_0xa965e6(0x17c)][_0xa965e6(0x3cc)]={'pad':__name(function(){},_0xa965e6(0x17c)),'unpad':__name(function(){},'unpad')},_0x25f0e2[_0xa965e6(0x17c)][_0xa965e6(0x3cc)];}));}(padNopadding$1)),padNopadding$1['exports'];}__name(requirePadNopadding,'requirePadNopadding');var padNopaddingExports=requirePadNopadding();const NoPadding=getDefaultExportFromCjs(padNopaddingExports);function pkcs7Padding(_0x5a8bbc,_0x5e95f5){var _0x3030d0=_0x4eebac;const _0x4d3896=_0x5e95f5-_0x5a8bbc[_0x3030d0(0x25b)]%_0x5e95f5,_0x542048=String[_0x3030d0(0x1e9)](_0x4d3896)[_0x3030d0(0x245)](_0x4d3896);return _0x5a8bbc+_0x542048;}__name(pkcs7Padding,_0x4eebac(0x266));function encrypt(_0x4fbd6c,_0x40ce41){var _0x32537b=_0x4eebac;const _0x1f7fd4=WordArray['random'](0x10),_0x23f58f=pkcs7Padding(_0x4fbd6c,0x10),_0x311901=AES[_0x32537b(0x212)](Utf8[_0x32537b(0x3d3)](_0x23f58f),Base64[_0x32537b(0x3d3)](_0x40ce41),{'iv':_0x1f7fd4,'padding':NoPadding});return _0x1f7fd4['concat'](_0x311901['ciphertext'])[_0x32537b(0x13a)](Base64);}__name(encrypt,_0x4eebac(0x212));function getAttachHeader(){var _0x31f9d2=_0x4eebac;const _0x13b855=getGlobalObject()['__Key__'];if(_0x13b855){const _0x1874e5={'time':Math[_0x31f9d2(0x2bf)](Date[_0x31f9d2(0x1c9)]()/0x3e8),'domain':location[_0x31f9d2(0x1ad)]};return encrypt(JSON[_0x31f9d2(0x42b)](_0x1874e5),_0x13b855);}}__name(getAttachHeader,'getAttachHeader');var __defProp$7=Object[_0x4eebac(0x18f)],__getOwnPropDesc$7=Object['getOwnPropertyDescriptor'],__decorateClass$7=__name((_0x2e77c9,_0xcc1cbf,_0x2ed80a,_0x2d9449)=>{var _0x342afb=_0x4eebac;for(var _0x4b4626=_0x2d9449>0x1?void 0x0:_0x2d9449?__getOwnPropDesc$7(_0xcc1cbf,_0x2ed80a):_0xcc1cbf,_0xdd6695=_0x2e77c9[_0x342afb(0x25b)]-0x1,_0x4591da;_0xdd6695>=0x0;_0xdd6695--)(_0x4591da=_0x2e77c9[_0xdd6695])&&(_0x4b4626=(_0x2d9449?_0x4591da(_0xcc1cbf,_0x2ed80a,_0x4b4626):_0x4591da(_0x4b4626))||_0x4b4626);return _0x2d9449&&_0x4b4626&&__defProp$7(_0xcc1cbf,_0x2ed80a,_0x4b4626),_0x4b4626;},_0x4eebac(0x188)),__decorateParam$7=__name((_0x26d1f5,_0x114e04)=>(_0x57c1c0,_0x26d80d)=>_0x114e04(_0x57c1c0,_0x26d80d,_0x26d1f5),_0x4eebac(0x3b6)),_a20;let DomainRequestService=(_a20=class{constructor(_0x532ef7){var _0x23da17=_0x4eebac;this[_0x23da17(0x129)]=_0x532ef7,this['_initRequestHeader']();}['_initRequestHeader'](){var _0x1844d4=_0x4eebac;this[_0x1844d4(0x129)]['registerHTTPInterceptor']({'interceptor':__name((_0x1e30c2,_0xa61104)=>{var _0x1d3773=_0x1844d4;const _0x19c340=_0x1e30c2['headers'],_0x261123=getAttachHeader();return _0x261123&&_0x19c340[_0x1d3773(0x36d)]('x-univer-host',_0x261123),_0xa61104(_0x1e30c2);},_0x1844d4(0x2c1))});}},__name(_a20,_0x4eebac(0x410)),_a20);DomainRequestService=__decorateClass$7([__decorateParam$7(0x0,Inject(HTTPService))],DomainRequestService);var __defProp$6=Object['defineProperty'],__getOwnPropDesc$6=Object[_0x4eebac(0x2a7)],__decorateClass$6=__name((_0x2f0d87,_0x124cf9,_0x2072d0,_0x16d79c)=>{var _0xeed3ce=_0x4eebac;for(var _0x3ab266=_0x16d79c>0x1?void 0x0:_0x16d79c?__getOwnPropDesc$6(_0x124cf9,_0x2072d0):_0x124cf9,_0x9bb6c0=_0x2f0d87[_0xeed3ce(0x25b)]-0x1,_0x20eb54;_0x9bb6c0>=0x0;_0x9bb6c0--)(_0x20eb54=_0x2f0d87[_0x9bb6c0])&&(_0x3ab266=(_0x16d79c?_0x20eb54(_0x124cf9,_0x2072d0,_0x3ab266):_0x20eb54(_0x3ab266))||_0x3ab266);return _0x16d79c&&_0x3ab266&&__defProp$6(_0x124cf9,_0x2072d0,_0x3ab266),_0x3ab266;},_0x4eebac(0x25a)),__decorateParam$6=__name((_0x5e7b33,_0x5b4e41)=>(_0x223b87,_0x2379e1)=>_0x5b4e41(_0x223b87,_0x2379e1,_0x5e7b33),_0x4eebac(0x17a)),_a21;let DataLoaderService=(_a21=class extends RxDisposable{constructor(_0x3ac7d3,_0x3ad087,_0x526a86){var _0x138e85=_0x4eebac;super(),__publicField(this,_0x138e85(0x40d),new BehaviorSubject(null)),__publicField(this,'unitInfo$',this[_0x138e85(0x40d)][_0x138e85(0x39c)]()),(this[_0x138e85(0x23a)]=_0x3ac7d3,this[_0x138e85(0x38e)]=_0x3ad087,this[_0x138e85(0x2c4)]=_0x526a86);}async[_0x4eebac(0x1b8)](_0x5cc8e9,_0x791dee,_0x55a35e){var _0x4edb8a=_0x4eebac;this[_0x4edb8a(0x40d)][_0x4edb8a(0x225)]({'unitId':_0x5cc8e9,'type':_0x791dee,'subUnitId':_0x55a35e});let _0x434958=null;switch(_0x791dee){case UniverType['UNIVER_SHEET']:{_0x434958=await this['_loadSheet'](_0x5cc8e9);break;}case UniverType['UNIVER_DOC']:{_0x434958=await this[_0x4edb8a(0x383)](_0x5cc8e9);break;}default:{this[_0x4edb8a(0x23a)][_0x4edb8a(0x154)](_0x4edb8a(0x35f),_0x4edb8a(0x2ef));break;}}return _0x434958;}async[_0x4eebac(0x134)](_0x416cc4){var _0x3a32d5=_0x4eebac,_0x5ccf62;let _0x55eeac=0x0;const _0x17a8ff=await((_0x5ccf62=this['_localCacheService'])==null?void 0x0:_0x5ccf62[_0x3a32d5(0x2b3)](_0x416cc4));return _0x17a8ff&&(_0x17a8ff['awaitingChangeset']||_0x17a8ff['mutations'][_0x3a32d5(0x25b)]!==0x0)&&(_0x55eeac=_0x17a8ff[_0x3a32d5(0x317)]),_0x55eeac===0x0&&this['_logService'][_0x3a32d5(0x1f8)](_0x3a32d5(0x35f),_0x3a32d5(0x2a2)),this['_snapshotService'][_0x3a32d5(0x147)](_0x416cc4,_0x55eeac);}async['_loadDoc'](_0x49550a){var _0x299fb3=_0x4eebac,_0x452ef9;let _0x397eb0=0x0;const _0x392c0f=await((_0x452ef9=this[_0x299fb3(0x2c4)])==null?void 0x0:_0x452ef9[_0x299fb3(0x2b3)](_0x49550a));return _0x392c0f&&(_0x392c0f[_0x299fb3(0x151)]||_0x392c0f[_0x299fb3(0x387)]['length']!==0x0)&&(_0x397eb0=_0x392c0f['rev']),_0x397eb0===0x0&&this[_0x299fb3(0x23a)][_0x299fb3(0x1f8)](_0x299fb3(0x35f),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this['_snapshotService'][_0x299fb3(0x26f)](_0x49550a,_0x397eb0);}},__name(_a21,_0x4eebac(0x291)),_a21);DataLoaderService=__decorateClass$6([__decorateParam$6(0x0,ILogService),__decorateParam$6(0x1,Inject(SnapshotService)),__decorateParam$6(0x2,Optional(ILocalCacheService))],DataLoaderService);var __defProp$5=Object[_0x4eebac(0x18f)],__getOwnPropDesc$5=Object[_0x4eebac(0x2a7)],__decorateClass$5=__name((_0xd7a16c,_0x1dc655,_0x3324f6,_0x3d1cfd)=>{var _0x29072b=_0x4eebac;for(var _0x468a14=_0x3d1cfd>0x1?void 0x0:_0x3d1cfd?__getOwnPropDesc$5(_0x1dc655,_0x3324f6):_0x1dc655,_0xaa1301=_0xd7a16c[_0x29072b(0x25b)]-0x1,_0x557b74;_0xaa1301>=0x0;_0xaa1301--)(_0x557b74=_0xd7a16c[_0xaa1301])&&(_0x468a14=(_0x3d1cfd?_0x557b74(_0x1dc655,_0x3324f6,_0x468a14):_0x557b74(_0x468a14))||_0x468a14);return _0x3d1cfd&&_0x468a14&&__defProp$5(_0x1dc655,_0x3324f6,_0x468a14),_0x468a14;},_0x4eebac(0x423)),__decorateParam$5=__name((_0x35c29f,_0x4719ba)=>(_0x12a5dc,_0x3a9321)=>_0x4719ba(_0x12a5dc,_0x3a9321,_0x35c29f),_0x4eebac(0x1dd));const ALLOW_IMAGE_LIST=[_0x4eebac(0x1bf),_0x4eebac(0x448),_0x4eebac(0x12b),'image/gif',_0x4eebac(0x364)],ALLOW_IMAGE_SIZE=0x5*0x400*0x400,EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY=_0x4eebac(0x201),DEFAULT_EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY=_0x4eebac(0x1b9),EXCHANGE_SIGN_URL_SERVER_URL_KEY=_0x4eebac(0x263),DEFAULT_EXCHANGE_SIGN_URL_SERVER_URL_KEY=_0x4eebac(0x1db);var _a22;let CollaborationImageIoService=(_a22=class{constructor(_0x2a94c3,_0x3149d6,_0x2ddce5){var _0x1f3bc4=_0x4eebac;__publicField(this,_0x1f3bc4(0x2b1),0x0),__publicField(this,_0x1f3bc4(0x355),new Subject()),__publicField(this,_0x1f3bc4(0x1cf),this['_change$']),__publicField(this,'_imageSourceCache',new Map()),(this[_0x1f3bc4(0x129)]=_0x2a94c3,this[_0x1f3bc4(0x238)]=_0x3149d6,this[_0x1f3bc4(0x256)]=_0x2ddce5);}['setWaitCount'](_0x29c4b8){var _0x1f21b4=_0x4eebac;this[_0x1f21b4(0x2b1)]=_0x29c4b8,this[_0x1f21b4(0x355)][_0x1f21b4(0x225)](_0x29c4b8);}['getImageSourceCache'](_0x1ce7a2,_0x58cb1e){var _0x3e499d=_0x4eebac;if(_0x58cb1e===ImageSourceType[_0x3e499d(0x3f4)]){const _0x5d18e4=new Image();return _0x5d18e4['src']=_0x1ce7a2,_0x5d18e4;}return this[_0x3e499d(0x198)][_0x3e499d(0x28a)](_0x1ce7a2);}[_0x4eebac(0x12e)](_0x3a179b,_0x4c8423,_0x4d88b7){var _0x5b4e76=_0x4eebac;_0x4c8423===ImageSourceType[_0x5b4e76(0x3f4)]||_0x4d88b7==null||this[_0x5b4e76(0x198)][_0x5b4e76(0x36d)](_0x3a179b,_0x4d88b7);}async[_0x4eebac(0x333)](_0x22d261){var _0x2388cd=_0x4eebac;try{const _0x38d952=this[_0x2388cd(0x37a)](this[_0x2388cd(0x1e2)](),''+_0x22d261),_0x3595f4=(await this[_0x2388cd(0x129)][_0x2388cd(0x28a)](_0x38d952))[_0x2388cd(0x326)];if(_0x3595f4[_0x2388cd(0x154)]&&_0x3595f4[_0x2388cd(0x154)][_0x2388cd(0x21e)]===ErrorCode['OK']){const _0x7d3cd0=new URL(_0x3595f4['url'],this[_0x2388cd(0x1e0)]())['toString']();return Promise[_0x2388cd(0x2ec)](_0x7d3cd0);}return Promise['reject'](_0x3595f4[_0x2388cd(0x154)]);}catch(_0x4b467c){return Promise['reject'](_0x4b467c);}}async[_0x4eebac(0x3d2)](_0x121f73){var _0xaab2fe=_0x4eebac;let _0x4ef140='';if(!ALLOW_IMAGE_LIST['includes'](_0x121f73[_0xaab2fe(0x41c)]))return this[_0xaab2fe(0x3c6)](),Promise[_0xaab2fe(0x34c)](new Error(ImageUploadStatusType[_0xaab2fe(0x38b)]));if(_0x121f73[_0xaab2fe(0x408)]>ALLOW_IMAGE_SIZE)return this[_0xaab2fe(0x3c6)](),Promise['reject'](new Error(ImageUploadStatusType[_0xaab2fe(0x184)]));try{const _0x56d587=new FormData();_0x56d587[_0xaab2fe(0x310)](_0xaab2fe(0x30b),_0x121f73);const _0xbf9d1b=this[_0xaab2fe(0x256)][_0xaab2fe(0x36a)](),_0x287edd=_0xbf9d1b==null?void 0x0:_0xbf9d1b[_0xaab2fe(0x31e)]();if(!_0x287edd)throw new Error(_0xaab2fe(0x309));const _0x499541=this[_0xaab2fe(0x293)]()+'?size='+_0x121f73[_0xaab2fe(0x408)][_0xaab2fe(0x13a)]()+_0xaab2fe(0x24e)+FileSource[_0xaab2fe(0x286)]+_0xaab2fe(0x1c1)+encodeURIComponent(_0x287edd),_0x402fd6=await(await fetch(_0x499541,{'method':'POST','body':_0x56d587}))[_0xaab2fe(0x285)]();if(typeof _0x402fd6[_0xaab2fe(0x1c8)]!=_0xaab2fe(0x20f))return this['_decreaseWaiting'](),Promise[_0xaab2fe(0x34c)](new Error(ImageUploadStatusType[_0xaab2fe(0x230)]));_0x4ef140=_0x402fd6[_0xaab2fe(0x1c8)];}catch{return this[_0xaab2fe(0x3c6)](),Promise[_0xaab2fe(0x34c)](new Error(ImageUploadStatusType['ERROR_IMAGE']));}return new Promise((_0x2ab504,_0x4c53d3)=>{var _0x43a029=_0xaab2fe;const _0x3fd664=new FileReader();_0x3fd664[_0x43a029(0x161)](_0x121f73),_0x3fd664[_0x43a029(0x37b)]=_0x368f96=>{var _0x587289=_0x43a029,_0x482ab7;const _0x17c400=(_0x482ab7=_0x368f96['target'])==null?void 0x0:_0x482ab7[_0x587289(0x331)];if(_0x17c400==null){this[_0x587289(0x3c6)](),_0x4c53d3(new Error(ImageUploadStatusType['ERROR_IMAGE']));return;}const _0x282fc1=Tools[_0x587289(0x2db)](0x6);_0x2ab504({'imageId':_0x282fc1,'imageSourceType':ImageSourceType[_0x587289(0x20b)],'source':_0x4ef140,'base64Cache':_0x17c400,'status':ImageUploadStatusType[_0x587289(0x121)]}),this[_0x587289(0x3c6)]();};});}[_0x4eebac(0x293)](){var _0x4c5572=_0x4eebac,_0x2ba38e,_0x1d0122;const _0x2cf353=this[_0x4c5572(0x238)][_0x4c5572(0x363)](EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY),_0x4f2bad=this[_0x4c5572(0x238)][_0x4c5572(0x363)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x1d0122=(_0x2ba38e=_0x4f2bad==null?void 0x0:_0x4f2bad[_0x4c5572(0x338)])!=null?_0x2ba38e:_0x2cf353)!=null?_0x1d0122:DEFAULT_EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY;}['_getSignURL'](){var _0x1b9bc8=_0x4eebac,_0x37304f,_0x2c136e;const _0x42ae68=this[_0x1b9bc8(0x238)][_0x1b9bc8(0x363)](EXCHANGE_SIGN_URL_SERVER_URL_KEY),_0x92f6a2=this[_0x1b9bc8(0x238)][_0x1b9bc8(0x363)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x2c136e=(_0x37304f=_0x92f6a2==null?void 0x0:_0x92f6a2[_0x1b9bc8(0x211)])!=null?_0x37304f:_0x42ae68)!=null?_0x2c136e:DEFAULT_EXCHANGE_SIGN_URL_SERVER_URL_KEY;}[_0x4eebac(0x1e0)](){var _0x9b6013=_0x4eebac,_0x1fe33b;const _0x50456f=this[_0x9b6013(0x238)][_0x9b6013(0x363)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x1fe33b=_0x50456f==null?void 0x0:_0x50456f['downloadEndpointUrl'])!=null?_0x1fe33b:location[_0x9b6013(0x43f)];}[_0x4eebac(0x37a)](_0x3f7913,_0xd3cd9d){var _0x18601d=_0x4eebac;return _0x3f7913[_0x18601d(0x3db)](_0x18601d(0x40b),_0xd3cd9d);}[_0x4eebac(0x3c6)](){var _0x405860=_0x4eebac;this[_0x405860(0x2b1)]-=0x1,this[_0x405860(0x355)][_0x405860(0x225)](this[_0x405860(0x2b1)]);}},__name(_a22,_0x4eebac(0x28e)),_a22);CollaborationImageIoService=__decorateClass$5([__decorateParam$5(0x0,Inject(HTTPService)),__decorateParam$5(0x1,IConfigService),__decorateParam$5(0x2,Inject(IUniverInstanceService))],CollaborationImageIoService);var __defProp$4=Object[_0x4eebac(0x18f)],__getOwnPropDesc$4=Object[_0x4eebac(0x2a7)],__decorateClass$4=__name((_0x37b8de,_0x25d46a,_0x2ee8bf,_0x1f895b)=>{var _0xa5d86f=_0x4eebac;for(var _0x3fb838=_0x1f895b>0x1?void 0x0:_0x1f895b?__getOwnPropDesc$4(_0x25d46a,_0x2ee8bf):_0x25d46a,_0x37ae31=_0x37b8de[_0xa5d86f(0x25b)]-0x1,_0x396e0c;_0x37ae31>=0x0;_0x37ae31--)(_0x396e0c=_0x37b8de[_0x37ae31])&&(_0x3fb838=(_0x1f895b?_0x396e0c(_0x25d46a,_0x2ee8bf,_0x3fb838):_0x396e0c(_0x3fb838))||_0x3fb838);return _0x1f895b&&_0x3fb838&&__defProp$4(_0x25d46a,_0x2ee8bf,_0x3fb838),_0x3fb838;},_0x4eebac(0x167)),__decorateParam$4=__name((_0x4f1d97,_0x46a41a)=>(_0x2981a9,_0x5e134c)=>_0x46a41a(_0x2981a9,_0x5e134c,_0x4f1d97),_0x4eebac(0x157));const DEFAULT_AUTHZ_URL_KEY=_0x4eebac(0x24c);var _a23;let MentionIoHttpService=(_a23=class{constructor(_0x140c6b,_0x372dff){var _0x3b1a35=_0x4eebac;this[_0x3b1a35(0x238)]=_0x140c6b,this['_HTTPService']=_0x372dff;}[_0x4eebac(0x3fc)](){var _0x1fb790=_0x4eebac,_0xaa001b,_0xc283e6;const _0x4f5c32=this[_0x1fb790(0x238)][_0x1fb790(0x363)](AUTHZ_URL_KEY),_0x3ea824=this['_configService']['getConfig'](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0xc283e6=(_0xaa001b=_0x3ea824==null?void 0x0:_0x3ea824[_0x1fb790(0x295)])!=null?_0xaa001b:_0x4f5c32)!=null?_0xc283e6:DEFAULT_AUTHZ_URL_KEY;}async[_0x4eebac(0x2bd)](_0x67bc56){var _0x1575bb=_0x4eebac;const _0x425b4a=this['_getAPIPrefixPath']()+_0x1575bb(0x3b3);return{'list':[{'title':'People','mentions':(await this['_HTTPService'][_0x1575bb(0x28a)](_0x425b4a,{'params':{'objectID':_0x67bc56[_0x1575bb(0x2d6)],'unitID':_0x67bc56['unitId']}}))['body'][_0x1575bb(0x2cc)][_0x1575bb(0x106)](_0x4ac758=>({'objectId':_0x4ac758['id'],'name':_0x4ac758[_0x1575bb(0x31a)][_0x1575bb(0x192)],'metadata':{'icon':_0x4ac758[_0x1575bb(0x31a)][_0x1575bb(0x3b5)]},'label':_0x4ac758[_0x1575bb(0x31a)][_0x1575bb(0x192)],'objectType':MentionType['PERSON']})),'metadata':{},'type':MentionType[_0x1575bb(0x118)]}]};}},__name(_a23,_0x4eebac(0x1d9)),_a23);MentionIoHttpService=__decorateClass$4([__decorateParam$4(0x0,Inject(IConfigService)),__decorateParam$4(0x1,Inject(HTTPService))],MentionIoHttpService);var __defProp$3=Object[_0x4eebac(0x18f)],__getOwnPropDesc$3=Object[_0x4eebac(0x2a7)],__decorateClass$3=__name((_0xb07935,_0x595c48,_0x578ef1,_0x5db3db)=>{var _0xb25c33=_0x4eebac;for(var _0x1887db=_0x5db3db>0x1?void 0x0:_0x5db3db?__getOwnPropDesc$3(_0x595c48,_0x578ef1):_0x595c48,_0x389398=_0xb07935[_0xb25c33(0x25b)]-0x1,_0x59ca66;_0x389398>=0x0;_0x389398--)(_0x59ca66=_0xb07935[_0x389398])&&(_0x1887db=(_0x5db3db?_0x59ca66(_0x595c48,_0x578ef1,_0x1887db):_0x59ca66(_0x1887db))||_0x1887db);return _0x5db3db&&_0x1887db&&__defProp$3(_0x595c48,_0x578ef1,_0x1887db),_0x1887db;},_0x4eebac(0x340)),__decorateParam$3=__name((_0x37b976,_0x3727c4)=>(_0x4a7964,_0x2848c1)=>_0x3727c4(_0x4a7964,_0x2848c1,_0x37b976),_0x4eebac(0x1e7)),_a24;let PermissionService=(_a24=class extends RxDisposable{constructor(_0x49f1cf,_0x462f94,_0x5287bf,_0x2fa098,_0x2119d0,_0x588a70,_0x39e03f){var _0x278dc3=_0x4eebac;super(),this['_injector']=_0x49f1cf,this[_0x278dc3(0x256)]=_0x462f94,this['_permissionService']=_0x5287bf,this['_collaborationSessionService']=_0x2fa098,this[_0x278dc3(0x3f1)]=_0x2119d0,this[_0x278dc3(0x272)]=_0x588a70,this[_0x278dc3(0x166)]=_0x39e03f,this[_0x278dc3(0x3da)](),this[_0x278dc3(0x217)]();}[_0x4eebac(0x217)](){var _0x10ec31=_0x4eebac;const _0x5acbd4=__name(async _0x2945b4=>{var _0x520f3d=_0x5570;(await this[_0x520f3d(0x290)][_0x520f3d(0x21c)](_0x2945b4))[_0x520f3d(0x368)][_0x520f3d(0x385)](filter(_0x1e3689=>_0x1e3689[_0x520f3d(0x315)]===CollaborationEvent[_0x520f3d(0x1a0)]),_0x42afd6(this[_0x520f3d(0x168)]))[_0x520f3d(0x127)](_0x1d0f67=>{var _0x14d706=_0x520f3d;const _0x665fe6=_0x1d0f67,{reason:_0x263668}=_0x665fe6[_0x14d706(0x142)];this[_0x14d706(0x3f1)][_0x14d706(0x414)]({'id':CollaborationUIEventId[_0x14d706(0x365)],'data':_0x263668}),this[_0x14d706(0x325)][_0x14d706(0x3bd)](new WorkbookEditablePermission(_0x2945b4)['id'],!0x1),this[_0x14d706(0x290)]['closeSession'](_0x2945b4);});},_0x10ec31(0x1ae));merge(this[_0x10ec31(0x256)][_0x10ec31(0x1a5)](UniverInstanceType[_0x10ec31(0x435)]),this['_univerInstanceService']['getTypeOfUnitAdded$'](UniverInstanceType['UNIVER_DOC']))['pipe'](map(_0x18a89f=>_0x18a89f['getUnitId']()),filter(_0x4d4149=>!isInternalEditorID(_0x4d4149)),_0x42afd6(this['dispose$']))[_0x10ec31(0x127)](_0x408e79=>{_0x5acbd4(_0x408e79);});}[_0x4eebac(0x3da)](){var _0xa41f54=_0x4eebac;const _0x32c4c6=__name(async _0x2e3cec=>{var _0x5015cd=_0x5570;const _0x5623f5=await this['_collaborationSessionService'][_0x5015cd(0x21c)](_0x2e3cec),_0x404f60=this[_0x5015cd(0x2d3)]['get'](SheetPermissionInitController);_0x5623f5[_0x5015cd(0x368)][_0x5015cd(0x385)](filter(_0x1a5021=>_0x1a5021[_0x5015cd(0x315)]===CollaborationEvent['UPDATE_PERMISSION_OBJ']),_0x42afd6(this['dispose$']))[_0x5015cd(0x127)](_0xed64e=>{var _0x4c2418=_0x5015cd;const _0x1b888d=_0xed64e,{objectId:_0x67bf94}=_0x1b888d[_0x4c2418(0x142)];_0x67bf94===_0x2e3cec?_0x404f60[_0x4c2418(0x3dc)](_0x2e3cec):_0x404f60[_0x4c2418(0x140)](_0x2e3cec,_0x67bf94);});},_0xa41f54(0x1af));merge(this['_univerInstanceService']['getTypeOfUnitAdded$'](UniverInstanceType[_0xa41f54(0x435)]),this[_0xa41f54(0x256)][_0xa41f54(0x1a5)](UniverInstanceType['UNIVER_DOC']))['pipe'](map(_0x2ac406=>_0x2ac406[_0xa41f54(0x31e)]()),filter(_0x262d59=>!isInternalEditorID(_0x262d59)),_0x42afd6(this['dispose$']))[_0xa41f54(0x127)](_0x48ddb9=>{_0x32c4c6(_0x48ddb9);});}},__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[_0x4eebac(0x18f)],__getOwnPropDesc$2=Object[_0x4eebac(0x2a7)],__decorateClass$2=__name((_0x339105,_0x432c25,_0x3b26e1,_0x260fd7)=>{var _0x3e6798=_0x4eebac;for(var _0x138780=_0x260fd7>0x1?void 0x0:_0x260fd7?__getOwnPropDesc$2(_0x432c25,_0x3b26e1):_0x432c25,_0x483faa=_0x339105[_0x3e6798(0x25b)]-0x1,_0xb01f43;_0x483faa>=0x0;_0x483faa--)(_0xb01f43=_0x339105[_0x483faa])&&(_0x138780=(_0x260fd7?_0xb01f43(_0x432c25,_0x3b26e1,_0x138780):_0xb01f43(_0x138780))||_0x138780);return _0x260fd7&&_0x138780&&__defProp$2(_0x432c25,_0x3b26e1,_0x138780),_0x138780;},_0x4eebac(0x255)),__decorateParam$2=__name((_0x778a34,_0x3cb463)=>(_0x37c76d,_0x5b8992)=>_0x3cb463(_0x37c76d,_0x5b8992,_0x778a34),_0x4eebac(0x26d)),_a25;let SnapshotServerOverHTTPService=(_a25=class{constructor(_0x46ec8a,_0x5db1cf){var _0x253248=_0x4eebac;this[_0x253248(0x238)]=_0x46ec8a,this[_0x253248(0x129)]=_0x5db1cf;}async[_0x4eebac(0x2d1)](_0x188d8d,_0x1b7349){var _0x5de573=_0x4eebac,_0x5698fc;const {unitID:_0x2095e7,type:_0x52784b,revision:revision=0x0}=_0x1b7349,_0x51d984=this[_0x5de573(0x1e1)]()+'/'+_0x52784b+'/unit/'+_0x2095e7+_0x5de573(0x170)+revision,_0x448863=(await this[_0x5de573(0x129)]['get'](_0x51d984))[_0x5de573(0x326)],_0x46550e=(_0x5698fc=_0x448863['snapshot'])==null?void 0x0:_0x5698fc['workbook'];if(_0x46550e){const _0x25b039=_0x46550e==null?void 0x0:_0x46550e[_0x5de573(0x301)],_0x4cd79d=textEncoder[_0x5de573(0x24f)](b64DecodeUnicode(_0x25b039));_0x46550e[_0x5de573(0x301)]=_0x4cd79d,Object[_0x5de573(0x2d4)](_0x46550e[_0x5de573(0x3c7)])['forEach'](([,_0x4eff8a])=>{var _0x54fbb3=_0x5de573;const _0xdff2d=_0x4eff8a[_0x54fbb3(0x301)],_0x490f5a=textEncoder[_0x54fbb3(0x24f)](b64DecodeUnicode(_0xdff2d));_0x4eff8a[_0x54fbb3(0x301)]=_0x490f5a;});}return _0x448863;}async[_0x4eebac(0x2d7)](_0x2ef7eb,_0x23c300){var _0x535ef0=_0x4eebac;const {unitID:_0x945a08,type:_0x40710c,blockID:_0x3de159}=_0x23c300,_0x2429c0=this[_0x535ef0(0x1c2)]()+'/'+_0x40710c+_0x535ef0(0x2e8)+_0x945a08+'/block/'+_0x3de159;return(await this[_0x535ef0(0x129)][_0x535ef0(0x28a)](_0x2429c0))[_0x535ef0(0x326)];}async['getDeserializedSheetBlock'](_0x4b4c06,_0xafd728){var _0x3ae30d=_0x4eebac;const {unitID:_0x1222a3,type:_0x56b077,blockID:_0x351444}=_0xafd728,_0x818320=this[_0x3ae30d(0x1c2)]()+_0x3ae30d(0x1bc)+_0x56b077+'/unit/'+_0x1222a3+_0x3ae30d(0x1bc)+_0x351444;return(await this[_0x3ae30d(0x129)]['get'](_0x818320))[_0x3ae30d(0x326)];}async['fetchMissingChangesets'](_0x5f317a,_0x4ccaac){var _0x368889=_0x4eebac;const {unitID:_0xd03c9f,type:_0x30583f,from:_0x41a286,to:_0x549976}=_0x4ccaac,_0x1f30f9=this[_0x368889(0x1c2)]()+'/'+_0x30583f+_0x368889(0x2e8)+_0xd03c9f+_0x368889(0x417)+_0x41a286+'&to='+_0x549976;return(await this['_httpService'][_0x368889(0x28a)](_0x1f30f9))[_0x368889(0x326)];}[_0x4eebac(0x1e1)](){var _0x258e1b=_0x4eebac,_0x591460;return(_0x591460=this[_0x258e1b(0x238)][_0x258e1b(0x363)](SNAPSHOT_URL_KEY))!=null?_0x591460:this[_0x258e1b(0x1c2)]();}['_getAPIPrefix'](){var _0x12b4ea=_0x4eebac,_0x36ac81,_0x1799be;const _0x181173=this[_0x12b4ea(0x238)]['getConfig'](SNAPSHOT_SERVER_URL_KEY),_0x382ef4=this['_configService'][_0x12b4ea(0x363)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x1799be=(_0x36ac81=_0x382ef4==null?void 0x0:_0x382ef4[_0x12b4ea(0x149)])!=null?_0x36ac81:_0x181173)!=null?_0x1799be:DEFAULT_SNAPSHOT_SERVER_URL;}async[_0x4eebac(0x219)](_0x296eef,_0x3ee311){var _0x4eeeee=_0x4eebac;const _0x94217d=_0x4eeeee(0x2e0)+_0x3ee311['type']+_0x4eeeee(0x2e8)+_0x3ee311[_0x4eeeee(0x31d)]+'/resources';return(await this['_httpService'][_0x4eeeee(0x28a)](_0x94217d,{'params':{'resourceId':JSON[_0x4eeeee(0x42b)](_0x3ee311[_0x4eeeee(0x2ad)])}}))[_0x4eeeee(0x326)];}['saveSnapshot'](){var _0x5e8d8c=_0x4eebac;throw new Error(_0x5e8d8c(0x189));}[_0x4eebac(0x3bf)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x4eebac(0x2f0)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x4eebac(0x22e)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x4eebac(0x3c0)](){var _0x5d401f=_0x4eebac;throw new Error(_0x5d401f(0x189));}},__name(_a25,'SnapshotServerOverHTTPService'),_a25);SnapshotServerOverHTTPService=__decorateClass$2([__decorateParam$2(0x0,IConfigService),__decorateParam$2(0x1,Inject(HTTPService))],SnapshotServerOverHTTPService);var __defProp$1=Object[_0x4eebac(0x18f)],__getOwnPropDesc$1=Object['getOwnPropertyDescriptor'],__decorateClass$1=__name((_0x5bd78a,_0xb144c2,_0xb1a6c7,_0x487d15)=>{for(var _0x2c437c=_0x487d15>0x1?void 0x0:_0x487d15?__getOwnPropDesc$1(_0xb144c2,_0xb1a6c7):_0xb144c2,_0x259576=_0x5bd78a['length']-0x1,_0x40718c;_0x259576>=0x0;_0x259576--)(_0x40718c=_0x5bd78a[_0x259576])&&(_0x2c437c=(_0x487d15?_0x40718c(_0xb144c2,_0xb1a6c7,_0x2c437c):_0x40718c(_0x2c437c))||_0x2c437c);return _0x487d15&&_0x2c437c&&__defProp$1(_0xb144c2,_0xb1a6c7,_0x2c437c),_0x2c437c;},_0x4eebac(0x3ee)),__decorateParam$1=__name((_0x4765de,_0x2eb207)=>(_0x164426,_0x5149d6)=>_0x2eb207(_0x164426,_0x5149d6,_0x4765de),_0x4eebac(0x3e5)),_a26;let CollaborativeUndoRedoService=(_a26=class extends LocalUndoRedoService{constructor(_0x49395f,_0x3ef651,_0x3186bb,_0x16b8a6,_0x535c45){var _0x191ada=_0x4eebac;super(_0x49395f,_0x3ef651,_0x3186bb),this[_0x191ada(0x176)]=_0x16b8a6,this['_logService']=_0x535c45;}[_0x4eebac(0x1ed)](_0x24d94f,_0x384b58){var _0x51f99d=_0x4eebac;const _0x3009e7=this[_0x51f99d(0x1d7)](_0x24d94f);if(_0x3009e7)try{const _0x3225d9=this[_0x51f99d(0x39e)](_0x3009e7,_0x384b58);this[_0x51f99d(0x115)](_0x24d94f,_0x3225d9);}catch(_0x33fbe7){this[_0x51f99d(0x23a)][_0x51f99d(0x154)](_0x51f99d(0x223),_0x33fbe7),this['_clearUndo'](_0x24d94f);}const _0x170f5a=this[_0x51f99d(0x2ab)](_0x24d94f);if(_0x170f5a)try{const _0x23b5b6=this[_0x51f99d(0x39e)](_0x170f5a,_0x384b58);this['_substituteRedoStack'](_0x24d94f,_0x23b5b6);}catch(_0x9eadbc){this['_logService'][_0x51f99d(0x154)](_0x9eadbc),this[_0x51f99d(0x2e7)](_0x24d94f);}}[_0x4eebac(0x328)](_0x211a0a){var _0x5ce74d=_0x4eebac;const _0x11b8e6=this[_0x5ce74d(0x1d7)](_0x211a0a);_0x11b8e6&&(_0x11b8e6[_0x5ce74d(0x25b)]=0x0,this[_0x5ce74d(0x371)]());}['_clearRedo'](_0x143501){var _0x4bae00=_0x4eebac;const _0x45bd39=this[_0x4bae00(0x2ab)](_0x143501);_0x45bd39&&(_0x45bd39[_0x4bae00(0x25b)]=0x0,this['_updateStatus']());}[_0x4eebac(0x115)](_0x315add,_0x4b70ed){var _0x333816=_0x4eebac;this[_0x333816(0x3b7)][_0x333816(0x36d)](_0x315add,_0x4b70ed),this[_0x333816(0x371)]();}[_0x4eebac(0x36f)](_0x3ba5a9,_0x507d5c){this['_redoStacks']['set'](_0x3ba5a9,_0x507d5c),this['_updateStatus']();}[_0x4eebac(0x39e)](_0x28a6ca,_0x16fd90){var _0x3d651a=_0x4eebac;const _0x318324=[];let _0x41735f=_0x16fd90,_0x59b3ff=_0x16fd90;for(let _0x5cbdfd=_0x28a6ca[_0x3d651a(0x25b)]-0x1;_0x5cbdfd>=0x0;_0x5cbdfd--){const {unitID:_0xb02c5b,undoMutations:_0xda85b9,redoMutations:_0xb4f78f}=_0x28a6ca[_0x5cbdfd],_0xe1a9db=this['_transformService'][_0x3d651a(0x26c)](_0x41735f,_0xda85b9),_0x5fd23b=this['_transformService']['transformMutationsWithChangeset'](_0x59b3ff,_0xb4f78f);if(isTransformMutationsWithChangesetFailure(_0xe1a9db)||isTransformMutationsWithChangesetFailure(_0x5fd23b)){this['_logService'][_0x3d651a(0x154)](_0x3d651a(0x223),_0x3d651a(0x20c),_0xe1a9db,_0x5fd23b);break;}_0x41735f=_0xe1a9db[_0x3d651a(0x19a)],_0x59b3ff=_0x5fd23b[_0x3d651a(0x19a)],_0x318324[_0x3d651a(0x2cd)]({'unitID':_0xb02c5b,'undoMutations':_0xe1a9db['m2Prime'],'redoMutations':_0x5fd23b[_0x3d651a(0x2af)]});}return _0x318324[_0x3d651a(0x440)]();}},__name(_a26,_0x4eebac(0x28d)),_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[_0x4eebac(0x18f)],__getOwnPropDesc=Object[_0x4eebac(0x2a7)],__defNormalProp2=__name((_0x31a15f,_0x4bfacf,_0x414f0e)=>_0x4bfacf in _0x31a15f?__defProp2(_0x31a15f,_0x4bfacf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x414f0e}):_0x31a15f[_0x4bfacf]=_0x414f0e,_0x4eebac(0x292)),__decorateClass=__name((_0x3573d7,_0x358b7e,_0x1e605f,_0x3bade9)=>{var _0x1b04ef=_0x4eebac;for(var _0x4efd11=_0x3bade9>0x1?void 0x0:_0x3bade9?__getOwnPropDesc(_0x358b7e,_0x1e605f):_0x358b7e,_0x9c8d89=_0x3573d7[_0x1b04ef(0x25b)]-0x1,_0x192fa5;_0x9c8d89>=0x0;_0x9c8d89--)(_0x192fa5=_0x3573d7[_0x9c8d89])&&(_0x4efd11=(_0x3bade9?_0x192fa5(_0x358b7e,_0x1e605f,_0x4efd11):_0x192fa5(_0x4efd11))||_0x4efd11);return _0x3bade9&&_0x4efd11&&__defProp2(_0x358b7e,_0x1e605f,_0x4efd11),_0x4efd11;},'__decorateClass'),__decorateParam=__name((_0x35417a,_0x1fb8cb)=>(_0xd2b679,_0x541d6b)=>_0x1fb8cb(_0xd2b679,_0x541d6b,_0x35417a),_0x4eebac(0x32e)),__publicField2=__name((_0x1bd3bf,_0x5f3699,_0x3baf6b)=>__defNormalProp2(_0x1bd3bf,_0x5f3699+'',_0x3baf6b),'__publicField');const PLUGIN_NAME='UNIVER_COLLABORATION_CLIENT_PLUGIN';var _a27;let UniverCollaborationClientPlugin=(_a27=class extends Plugin{constructor(_0xc44f37=defaultPluginConfig,_0x3b5426,_0x2ed635,_0xc64542){var _0x4e068a=_0x4eebac;super(),this[_0x4e068a(0x432)]=_0xc44f37,this[_0x4e068a(0x23a)]=_0x3b5426,this[_0x4e068a(0x2d3)]=_0x2ed635,this['_configService']=_0xc64542;const {..._0x22daf8}=_0x3db844({},defaultPluginConfig,this[_0x4e068a(0x432)]);this['_configService'][_0x4e068a(0x33a)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,_0x22daf8);}[_0x4eebac(0x2b7)](){var _0x447d18=_0x4eebac;this[_0x447d18(0x344)](),this[_0x447d18(0x3ab)]();}[_0x4eebac(0x344)](){var _0x2f1529=_0x4eebac,_0x325a2f,_0x36503b,_0x96e715,_0x5a8fea;this[_0x2f1529(0x2d3)][_0x2f1529(0x33c)](IUndoRedoService)&&this[_0x2f1529(0x23a)][_0x2f1529(0x154)](_0x2f1529(0x12c),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');const _0x4ee811=mergeOverrideWithDependencies([[IUndoRedoService,{'useClass':CollaborativeUndoRedoService}],[CollaborationSessionService],[MemberService],[SheetTransformSelectionsService],[AuthServerService],[DomainRequestService],[CommentService],[PermissionService],[CollaborationUIEventService],[DataLoaderService],[ICollaborationSocketService,{'useClass':(_0x36503b=(_0x325a2f=this[_0x2f1529(0x432)])==null?void 0x0:_0x325a2f[_0x2f1529(0x2bc)])!=null?_0x36503b:CollaborationSocketService}],[ISnapshotServerService,{'useClass':SnapshotServerOverHTTPService}],[IAuthzIoService,{'useClass':AuthzIoHttpService}],[IImageIoService,{'useClass':CollaborationImageIoService}],[IMentionIOService,{'useClass':MentionIoHttpService}],[CollaborationController],[FileNameController]],(_0x96e715=this[_0x2f1529(0x432)])==null?void 0x0:_0x96e715[_0x2f1529(0x433)]);if(!((_0x5a8fea=this[_0x2f1529(0x432)])!=null&&_0x5a8fea[_0x2f1529(0x1f0)])){const _0x46c391=_0x4ee811['findIndex'](([_0x201a18])=>_0x201a18===ISingleActiveUnitService);_0x46c391!==-0x1&&_0x4ee811[_0x2f1529(0x26b)](_0x46c391,0x1);}registerDependencies(this[_0x2f1529(0x2d3)],_0x4ee811);}[_0x4eebac(0x3ab)](){var _0x37983a=_0x4eebac,_0x347b47,_0x236957,_0x379df0;this[_0x37983a(0x2d3)][_0x37983a(0x28a)](HTTPService)['registerHTTPInterceptor']({'priority':0x14,'interceptor':ThresholdInterceptorFactory({'maxParallel':0x6})}),(_0x347b47=this['_config'])!=null&&_0x347b47[_0x37983a(0x206)]||(_0x236957=this['_injector'][_0x37983a(0x28a)](ILocalCacheService,Quantity['OPTIONAL']))==null||_0x236957[_0x37983a(0x17d)](),(_0x379df0=this[_0x37983a(0x432)])!=null&&_0x379df0['enableAuthServer']&&touchDependencies(this[_0x37983a(0x2d3)],[[AuthServerService]]),touchDependencies(this[_0x37983a(0x2d3)],[[DomainRequestService],[CollaborationController],[PermissionService]]);}},__name(_a27,_0x4eebac(0x35b)),_a27);__publicField2(UniverCollaborationClientPlugin,_0x4eebac(0x1eb),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};