@univerjs-pro/collaboration-client 0.5.5-nightly.202501211606 → 0.5.5-nightly.202501220324
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +9 -9
package/lib/es/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
var _0x3589bd=_0x2984;(function(_0x3aacc2,_0x537d26){var _0x375017=_0x2984,_0x43308d=_0x3aacc2();while(!![]){try{var _0x5d8c27=parseInt(_0x375017(0xc8))/0x1+-parseInt(_0x375017(0x157))/0x2+parseInt(_0x375017(0x1b5))/0x3*(parseInt(_0x375017(0x342))/0x4)+-parseInt(_0x375017(0x2f8))/0x5*(-parseInt(_0x375017(0x13c))/0x6)+-parseInt(_0x375017(0x26d))/0x7*(-parseInt(_0x375017(0x29b))/0x8)+-parseInt(_0x375017(0x2be))/0x9*(-parseInt(_0x375017(0x20d))/0xa)+parseInt(_0x375017(0x32e))/0xb*(-parseInt(_0x375017(0xb4))/0xc);if(_0x5d8c27===_0x537d26)break;else _0x43308d['push'](_0x43308d['shift']());}catch(_0x5072d6){_0x43308d['push'](_0x43308d['shift']());}}}(_0x276e,0x68e16));var Li=Object[_0x3589bd(0x2f6)],Mi=(_0x2ce26f,_0x4472b5,_0x492f9c)=>_0x4472b5 in _0x2ce26f?Li(_0x2ce26f,_0x4472b5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x492f9c}):_0x2ce26f[_0x4472b5]=_0x492f9c,N=(_0x168227,_0x19ba8b,_0x33c1bf)=>Mi(_0x168227,typeof _0x19ba8b!=_0x3589bd(0x155)?_0x19ba8b+'':_0x19ba8b,_0x33c1bf);import{createIdentifier as _0x1890dd,Inject as _0x350123,Injector as _0x5aaee8,Disposable as _0xde5152,DisposableCollection as _0x456544,toDisposable as _0x117ca3,IConfigService as _0x59f592,ILogService as _0x400db2,UserManagerService as _0x3df8e8,UniverInstanceType as _0x3d2230,IUniverInstanceService as _0x7d7fce,LocaleService as _0x2720f2,Optional as _0x2f86e3,RxDisposable as _0x37e0d6,Tools as _0x238363,Rectangle as _0x175b66,ICommandService as _0x28eba8,JSONX as _0x5b9438,CommandType as _0x46d075,IPermissionService as _0x51f4d4,IUndoRedoService as _0xb22a67,sequenceExecute as _0x321e6c,Workbook as _0x3f64d6,MentionType as _0x569b8c,IAuthzIoService as _0xd01897,isInternalEditorID as _0x114da9,LocalUndoRedoService as _0x4cb185,IContextService as _0x29aef1,DependentOn as _0x12e7f4,Plugin as _0x3cd23f,merge as _0x1aefc4,mergeOverrideWithDependencies as _0x4dba32,IMentionIOService as _0x2daf30,registerDependencies as _0x295eb0,Quantity as _0x4a18e8,touchDependencies as _0x3cdbde}from'@univerjs/core';import{Subject as _0x8b1ca8,merge as _0x5663e3,of as _0x484d8b,BehaviorSubject as _0x3bd22c,takeUntil as _0x3200b3,ReplaySubject as _0x4e03ef,take as _0x202c5f,map as _0x4e4c51,shareReplay as _0x212837,firstValueFrom as _0x5b2a09,concatMap as _0x82345}from'rxjs';import{map as _0x2010b6,take as _0x52ac15,filter as _0x3ff271,delay as _0x470afa,takeUntil as _0x233930}from'rxjs/operators';import{HTTPService as _0x385ac4,ISocketService as _0x10066a,MergeInterceptorFactory as _0x481448,HTTPRequest as _0x53fc29,UniverNetworkPlugin as _0x3f6663,ThresholdInterceptorFactory as _0x38ac08}from'@univerjs/network';import{CollaborationEvent as _0x4a0013,parseChangesetToProtocol as _0x576b70,ISnapshotServerService as _0x56cf4d,isTransformMutationsWithChangesetSuccess as _0x19b84b,ITransformService as _0x37175a,mapDocumentTypeToUniverType as _0xdc4f28,RevisionService as _0x5e230d,isTransformChangesetsSuccess as _0x570ed4,CompressMutationService as _0x308286,parseProtocolChangeset as _0x2d78b0,SnapshotService as _0x421ac9,textEncoder as _0x2fc184,b64DecodeUnicode as _0x317674,isTransformMutationsWithChangesetFailure as _0xea06ae,UniverCollaborationPlugin as _0x3307b6}from'@univerjs-pro/collaboration';import{ITelemetryService as _0x1f9803}from'@univerjs/telemetry';import{RichTextEditingMutation as _0x2a54d5}from'@univerjs/docs';import{SheetsSelectionsService as _0x1f6654,SetSelectionsOperation as _0x5f854,InsertSheetMutation as _0x341edb,EmptyMutation as _0x3a0a0b,WorkbookEditablePermission as _0x535f4c,SheetPermissionInitController as _0x19fdc1,UniverSheetsPlugin as _0x23f43a}from'@univerjs/sheets';import{ImageSourceType as _0x2b5cbf,ImageUploadStatusType as _0x15eb04,IImageIoService as _0x543b7f}from'@univerjs/drawing';import{getGlobalObject as _0x336d26}from'@univerjs-pro/license';const En=_0x3589bd(0x37f),In=_0x3589bd(0x1df),Tn=_0x3589bd(0x149),eo=_0x3589bd(0x306),Cn=0x7d0,Rn='COLLAB_WEB_SOCKET_URL',bn=_0x3589bd(0xbf),On=_0x3589bd(0xa9),yn=_0x3589bd(0x131),Nn=0x7530,Si=_0x3589bd(0x33b),Ei=0x4e20,Dn=0x4e20,Pn=_0x3589bd(0x2eb),wn=0x3,to=_0x3589bd(0x2ea),io=0x3e8,Un=_0x3589bd(0x1b1),An='/universer-api/comb',xn='LOGIN_URL_KEY',Ln='/universer-api/oidc/authpage',no=_0x3589bd(0xce),ro='/universer-api/uniscript';var Ii=(_0x114cb8=>(_0x114cb8[_0x114cb8[_0x3589bd(0x333)]=0x0]=_0x3589bd(0x333),_0x114cb8[_0x114cb8['OK']=0x1]='OK',_0x114cb8[_0x114cb8[_0x3589bd(0x103)]=0x2]='INTERNAL_ERROR',_0x114cb8[_0x114cb8[_0x3589bd(0x126)]=0x3]=_0x3589bd(0x126),_0x114cb8[_0x114cb8[_0x3589bd(0x312)]=0x4]=_0x3589bd(0x312),_0x114cb8[_0x114cb8[_0x3589bd(0x328)]=0x5]='UNAUTHENTICATED',_0x114cb8[_0x114cb8[_0x3589bd(0x1fb)]=0x6]=_0x3589bd(0x1fb),_0x114cb8[_0x114cb8['INVALID_ARGUMENT']=0x7]=_0x3589bd(0xc6),_0x114cb8[_0x114cb8[_0x3589bd(0x23a)]=0x8]=_0x3589bd(0x23a),_0x114cb8[_0x114cb8['COMPLETION_FINISHED']=0x9]=_0x3589bd(0x261),_0x114cb8[_0x114cb8['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x3589bd(0x24b),_0x114cb8[_0x114cb8[_0x3589bd(0x178)]=0x1771]=_0x3589bd(0x178),_0x114cb8[_0x114cb8[_0x3589bd(0xb1)]=0x1772]=_0x3589bd(0xb1),_0x114cb8[_0x114cb8[_0x3589bd(0x18f)]=0x1773]=_0x3589bd(0x18f),_0x114cb8[_0x114cb8[_0x3589bd(0x278)]=0x1b59]=_0x3589bd(0x278),_0x114cb8[_0x114cb8[_0x3589bd(0x180)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x114cb8[_0x114cb8[_0x3589bd(0x159)]=0x1b5b]=_0x3589bd(0x159),_0x114cb8[_0x114cb8['APPLY_PERMISSION_DENIED']=0x1b5c]='APPLY_PERMISSION_DENIED',_0x114cb8[_0x114cb8['APPLY_DUPLICATED']=0x1b5d]=_0x3589bd(0x393),_0x114cb8[_0x114cb8[_0x3589bd(0x104)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x114cb8[_0x114cb8[_0x3589bd(0x231)]=0x2329]=_0x3589bd(0x231),_0x114cb8[_0x114cb8[_0x3589bd(0xa7)]=0x232a]=_0x3589bd(0xa7),_0x114cb8[_0x114cb8[_0x3589bd(0x135)]=0x232b]=_0x3589bd(0x135),_0x114cb8[_0x114cb8[_0x3589bd(0x2ed)]=0x232c]=_0x3589bd(0x2ed),_0x114cb8[_0x114cb8['LICENSE_DISTRO_REJECTED']=0x232d]=_0x3589bd(0x34d),_0x114cb8[_0x114cb8[_0x3589bd(0x264)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x114cb8[_0x114cb8[_0x3589bd(0x125)]=0x2712]=_0x3589bd(0x125),_0x114cb8[_0x114cb8['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x3589bd(0x3af),_0x114cb8[_0x114cb8['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x114cb8[_0x114cb8['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x3589bd(0x188),_0x114cb8[_0x114cb8['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x114cb8))(Ii||{}),Q=(_0x521350=>(_0x521350[_0x521350[_0x3589bd(0xe2)]=0x0]=_0x3589bd(0xe2),_0x521350[_0x521350[_0x3589bd(0x338)]=0x1]=_0x3589bd(0x338),_0x521350[_0x521350[_0x3589bd(0x38e)]=0x2]='UNIVER_SHEET',_0x521350[_0x521350[_0x3589bd(0x216)]=0x3]=_0x3589bd(0x216),_0x521350[_0x521350['UNIVER_PROJECT']=0x4]='UNIVER_PROJECT',_0x521350[_0x521350[_0x3589bd(0x259)]=-0x1]=_0x3589bd(0x259),_0x521350))(Q||{}),F=(_0x5b1bfa=>(_0x5b1bfa[_0x5b1bfa[_0x3589bd(0x2db)]=0x0]=_0x3589bd(0x2db),_0x5b1bfa[_0x5b1bfa[_0x3589bd(0x24d)]=0x1]=_0x3589bd(0x24d),_0x5b1bfa[_0x5b1bfa['JOIN']=0x2]='JOIN',_0x5b1bfa[_0x5b1bfa[_0x3589bd(0x331)]=0x3]=_0x3589bd(0x331),_0x5b1bfa[_0x5b1bfa[_0x3589bd(0x209)]=0x4]=_0x3589bd(0x209),_0x5b1bfa[_0x5b1bfa[_0x3589bd(0xcc)]=0x5]=_0x3589bd(0xcc),_0x5b1bfa[_0x5b1bfa[_0x3589bd(0x39a)]=0x6]=_0x3589bd(0x39a),_0x5b1bfa[_0x5b1bfa[_0x3589bd(0x259)]=-0x1]='UNRECOGNIZED',_0x5b1bfa))(F||{}),Ee=(_0x168c22=>(_0x168c22[_0x168c22[_0x3589bd(0x277)]=0x0]=_0x3589bd(0x277),_0x168c22[_0x168c22['OK']=0x1]='OK',_0x168c22[_0x168c22[_0x3589bd(0x363)]=0x2]=_0x3589bd(0x363),_0x168c22[_0x168c22['JOIN_ROOM_FULL']=0x3e9]=_0x3589bd(0x1e8),_0x168c22[_0x168c22[_0x3589bd(0x3aa)]=0x3ea]=_0x3589bd(0x3aa),_0x168c22[_0x168c22[_0x3589bd(0x1d0)]=0x3eb]=_0x3589bd(0x1d0),_0x168c22[_0x168c22[_0x3589bd(0x358)]=0x3ec]=_0x3589bd(0x358),_0x168c22[_0x168c22[_0x3589bd(0x259)]=-0x1]='UNRECOGNIZED',_0x168c22))(Ee||{}),Ti=(_0x50ea6d=>(_0x50ea6d[_0x50ea6d['Undefined']=0x0]=_0x3589bd(0x1c0),_0x50ea6d[_0x50ea6d[_0x3589bd(0x18c)]=0x1]='HttpImport',_0x50ea6d[_0x50ea6d[_0x3589bd(0x161)]=0x2]=_0x3589bd(0x161),_0x50ea6d[_0x50ea6d[_0x3589bd(0x2cd)]=0x3]=_0x3589bd(0x2cd),_0x50ea6d[_0x50ea6d[_0x3589bd(0x3a0)]=0x4]=_0x3589bd(0x3a0),_0x50ea6d[_0x50ea6d['UNRECOGNIZED']=-0x1]=_0x3589bd(0x259),_0x50ea6d))(Ti||{});const q=_0x3589bd(0x238),Wt={};var se=(_0x23a0e2=>(_0x23a0e2[_0x3589bd(0x1a5)]=_0x3589bd(0x1a5),_0x23a0e2[_0x3589bd(0x126)]='PERMISSION_DENIED',_0x23a0e2[_0x3589bd(0x152)]=_0x3589bd(0x152),_0x23a0e2[_0x3589bd(0x318)]='CLOSE_ROOM',_0x23a0e2[_0x3589bd(0xb3)]=_0x3589bd(0xb3),_0x23a0e2['SOCKET_FAILED_RETRY']=_0x3589bd(0x16e),_0x23a0e2[_0x3589bd(0x285)]='SOCKET_FAILED',_0x23a0e2['SUBMIT_CHANGESET_TIMEOUT']='SUBMIT_CHANGESET_TIMEOUT',_0x23a0e2))(se||{});class pe{constructor(){var _0x279627=_0x3589bd;N(this,_0x279627(0xbb),new _0x8b1ca8()),N(this,_0x279627(0xbc),this['_event$']['asObservable']());}[_0x3589bd(0x19e)](_0x46ce9a){var _0x15b097=_0x3589bd;this['_event$'][_0x15b097(0x226)](_0x46ce9a);}}const Mn=_0x1890dd(_0x3589bd(0xfa));function $n(_0x27b581){var _0x379dad=_0x3589bd,_0x5d1622,_0x25363f,_0x2dfb99,_0x36a0c3,_0x532122;const _0x2f8002=_0x27b581[_0x379dad(0x221)],_0x3db962=JSON[_0x379dad(0x271)](_0x2f8002);switch(_0x3db962[_0x379dad(0xb5)]){case F[_0x379dad(0xcc)]:case F['HELLO']:{const _0x239378=_0x3db962[_0x379dad(0x32b)];return{..._0x3db962,'data':_0x239378,'cmd':_0x3db962['cmd']};}case F[_0x379dad(0x378)]:{const _0x28ce7b=_0x3db962[_0x379dad(0xd4)];return{..._0x3db962,'data':_0x28ce7b,'cmd':_0x3db962['cmd']};}case F[_0x379dad(0x39a)]:{const _0x2e6748=_0x3db962['collaMsg'];switch(_0x2e6748['eventID']){case _0x4a0013['PERMISSION_REJ']:return{..._0x3db962,'data':{..._0x2e6748,'data':(_0x5d1622=_0x2e6748[_0x379dad(0x3b2)])==null?void 0x0:_0x5d1622['cs']},'cmd':_0x3db962[_0x379dad(0xb5)]};case _0x4a0013[_0x379dad(0x2af)]:return{..._0x3db962,'data':{..._0x2e6748,'data':(_0x25363f=_0x2e6748[_0x379dad(0x249)])==null?void 0x0:_0x25363f['cs']},'cmd':_0x3db962['cmd']};case _0x4a0013[_0x379dad(0x283)]:return{..._0x3db962,'data':{..._0x2e6748,'data':(_0x2dfb99=_0x2e6748['newCsEvent'])==null?void 0x0:_0x2dfb99['cs']},'cmd':_0x3db962[_0x379dad(0xb5)]};case _0x4a0013['CHANGESET_REJ']:return{..._0x3db962,'data':{..._0x2e6748,'data':(_0x36a0c3=_0x2e6748[_0x379dad(0x213)])==null?void 0x0:_0x36a0c3['cs']},'cmd':_0x3db962[_0x379dad(0xb5)]};case _0x4a0013['CHANGESET_SHOULD_RETRY']:return{..._0x3db962,'data':{..._0x2e6748,'data':(_0x532122=_0x2e6748[_0x379dad(0x1b2)])==null?void 0x0:_0x532122['cs']},'cmd':_0x3db962[_0x379dad(0xb5)]};case _0x4a0013[_0x379dad(0x12c)]:return{..._0x3db962,'data':{..._0x2e6748,'data':_0x2e6748[_0x379dad(0x11b)]},'cmd':_0x3db962[_0x379dad(0xb5)]};case _0x4a0013[_0x379dad(0x291)]:return{..._0x3db962,'data':{..._0x2e6748,'data':_0x2e6748[_0x379dad(0x1e4)]},'cmd':_0x3db962[_0x379dad(0xb5)]};case _0x4a0013[_0x379dad(0xee)]:return{..._0x3db962,'data':{..._0x2e6748,'data':_0x2e6748[_0x379dad(0x260)]},'cmd':_0x3db962[_0x379dad(0xb5)]};case _0x4a0013[_0x379dad(0x21e)]:return{..._0x3db962,'data':{..._0x2e6748,'data':_0x2e6748['liveShareNewHost']},'cmd':_0x3db962[_0x379dad(0xb5)]};case _0x4a0013['LIVESHARE_FETCH_OPERATIONS']:case _0x4a0013[_0x379dad(0x158)]:return{..._0x3db962,'data':{..._0x2e6748,'data':_0x2e6748[_0x379dad(0x35a)]},'cmd':_0x3db962['cmd']};case _0x4a0013[_0x379dad(0x1af)]:return{..._0x3db962,'data':{..._0x2e6748,'data':_0x2e6748[_0x379dad(0xd1)]},'cmd':_0x3db962[_0x379dad(0xb5)]};case _0x4a0013[_0x379dad(0x1cf)]:return{..._0x3db962,'data':_0x2e6748,'cmd':_0x3db962[_0x379dad(0xb5)]};case _0x4a0013[_0x379dad(0x1cd)]:return{..._0x3db962,'data':{..._0x2e6748,'data':_0x2e6748[_0x379dad(0x2b9)]},'cmd':_0x3db962[_0x379dad(0xb5)]};case _0x4a0013[_0x379dad(0x392)]:return{..._0x3db962,'data':{..._0x2e6748,'data':_0x2e6748[_0x379dad(0x2fb)]},'cmd':_0x3db962[_0x379dad(0xb5)]};case _0x4a0013['SHOULD_CLOSE_CONN']:return{..._0x3db962,'data':{..._0x2e6748,'data':_0x2e6748[_0x379dad(0x33d)]},'cmd':_0x3db962[_0x379dad(0xb5)]};case _0x4a0013[_0x379dad(0xd3)]:return{..._0x3db962,'data':{..._0x2e6748,'data':_0x2e6748[_0x379dad(0x2ba)]},'cmd':_0x3db962[_0x379dad(0xb5)]};default:return _0x3db962;}}default:return _0x3db962;}}function Hn(_0x4bdb2a){var _0x3d92e7=_0x3589bd;switch(_0x4bdb2a[_0x3d92e7(0xb5)]){case F[_0x3d92e7(0xcc)]:case F[_0x3d92e7(0x24d)]:return JSON[_0x3d92e7(0x388)]({'cmd':_0x4bdb2a['cmd'],'routeKey':_0x4bdb2a[_0x3d92e7(0xf6)]});case F[_0x3d92e7(0x209)]:{let _0x202725;switch(_0x4bdb2a[_0x3d92e7(0x221)][_0x3d92e7(0x340)]){case _0x4a0013['UPDATE_CURSOR']:{_0x202725={'eventID':_0x4a0013[_0x3d92e7(0x12c)],'updateCursorEvent':_0x4bdb2a[_0x3d92e7(0x221)][_0x3d92e7(0x221)]};break;}case _0x4a0013[_0x3d92e7(0xee)]:{_0x202725={'eventID':_0x4a0013[_0x3d92e7(0xee)],'leaveEvent':_0x4bdb2a[_0x3d92e7(0x221)][_0x3d92e7(0x221)]};break;}case _0x4a0013['USERS_ENTER']:{_0x202725={'eventID':_0x4a0013[_0x3d92e7(0x291)],'joinEvent':_0x4bdb2a['data'][_0x3d92e7(0x221)]};break;}case _0x4a0013['LIVESHARE_NEW_HOST']:{_0x202725={'eventID':_0x4a0013['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x4bdb2a[_0x3d92e7(0x221)][_0x3d92e7(0x221)]};break;}case _0x4a0013[_0x3d92e7(0x158)]:{_0x202725={'eventID':_0x4a0013['LIVESHARE_OPERATION'],'liveShareOperation':_0x4bdb2a['data'][_0x3d92e7(0x221)]};break;}case _0x4a0013[_0x3d92e7(0x1af)]:{_0x202725={'eventID':_0x4a0013[_0x3d92e7(0x1af)],'liveShareTerminate':_0x4bdb2a[_0x3d92e7(0x221)][_0x3d92e7(0x221)]};break;}case _0x4a0013['LIVESHARE_REQUEST_HOST']:{_0x202725={'eventID':_0x4a0013[_0x3d92e7(0x31b)],'liveShareRequestHost':_0x4bdb2a['data'][_0x3d92e7(0x221)]};break;}case _0x4a0013[_0x3d92e7(0x22a)]:{_0x202725={'eventID':_0x4a0013[_0x3d92e7(0x22a)]};break;}default:_0x202725={'eventID':_0x4bdb2a[_0x3d92e7(0x221)][_0x3d92e7(0x340)]};}return JSON[_0x3d92e7(0x388)]({'cmd':_0x4bdb2a[_0x3d92e7(0xb5)],'routeKey':_0x4bdb2a[_0x3d92e7(0xf6)],'collaMsg':_0x202725});}case F[_0x3d92e7(0x378)]:return JSON['stringify']({'cmd':_0x4bdb2a[_0x3d92e7(0xb5)],'routeKey':_0x4bdb2a[_0x3d92e7(0xf6)],'joinReq':_0x4bdb2a[_0x3d92e7(0x221)]});case F[_0x3d92e7(0x331)]:return JSON[_0x3d92e7(0x388)]({'cmd':_0x4bdb2a[_0x3d92e7(0xb5)],'routeKey':_0x4bdb2a[_0x3d92e7(0xf6)],'leaveReq':_0x4bdb2a[_0x3d92e7(0x221)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var kn=Object[_0x3589bd(0x2f6)],jn=Object[_0x3589bd(0x38f)],Bn=(_0x5d73aa,_0x56732c,_0x276ee2,_0x4831eb)=>{var _0x3c8c07=_0x3589bd;for(var _0x989b6c=_0x4831eb>0x1?void 0x0:_0x4831eb?jn(_0x56732c,_0x276ee2):_0x56732c,_0x30cd1e=_0x5d73aa[_0x3c8c07(0x2f2)]-0x1,_0x7b7586;_0x30cd1e>=0x0;_0x30cd1e--)(_0x7b7586=_0x5d73aa[_0x30cd1e])&&(_0x989b6c=(_0x4831eb?_0x7b7586(_0x56732c,_0x276ee2,_0x989b6c):_0x7b7586(_0x989b6c))||_0x989b6c);return _0x4831eb&&_0x989b6c&&kn(_0x56732c,_0x276ee2,_0x989b6c),_0x989b6c;},Ue=(_0x42e8f8,_0x32c53f)=>(_0x5f31f0,_0x380334)=>_0x32c53f(_0x5f31f0,_0x380334,_0x42e8f8);const Ci=_0x1890dd(_0x3589bd(0x211));function Fn(_0x5656fb,_0x110053,_0x23789f){var _0x534674=_0x3589bd;return _0x5656fb+'/'+_0x110053+_0x534674(0x240)+_0x23789f+'/new_changes';}let Et=class extends _0xde5152{constructor(_0x2d7585,_0x274d2c,_0x4894ef,_0x1bc6e0,_0xb121de){var _0x28093a=_0x3589bd;super(),this[_0x28093a(0x399)]=_0x2d7585,this[_0x28093a(0x334)]=_0x274d2c,this[_0x28093a(0x3b0)]=_0x4894ef,this[_0x28093a(0x136)]=_0x1bc6e0,this[_0x28093a(0x361)]=_0xb121de;}['createSocket'](_0x47e967){var _0x4c1cc7=_0x3589bd;const _0x159c87=this['_injector']['get'](_0x10066a);if(!_0x159c87)throw new Error(_0x4c1cc7(0xef));const _0x2a6887=_0x159c87[_0x4c1cc7(0x236)](_0x47e967);if(!_0x2a6887)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x265c26=new _0x456544(),_0x17782d=new _0x8b1ca8();_0x265c26['add'](_0x2a6887[_0x4c1cc7(0x36a)][_0x4c1cc7(0x320)](_0x2287b4=>_0x17782d['next'](_0x2287b4))),_0x265c26[_0x4c1cc7(0x168)](_0x117ca3(()=>_0x17782d[_0x4c1cc7(0x2d5)]()));const _0xfe3023=new _0x8b1ca8();_0x265c26[_0x4c1cc7(0x168)](_0x2a6887['error$'][_0x4c1cc7(0x320)](_0xffdb92=>_0xfe3023[_0x4c1cc7(0x226)](_0xffdb92))),_0x265c26[_0x4c1cc7(0x168)](_0x117ca3(()=>_0xfe3023[_0x4c1cc7(0x2d5)]()));const _0x189cf7=new _0x8b1ca8();_0x265c26['add'](_0x2a6887[_0x4c1cc7(0x130)]['subscribe'](_0x354e04=>{var _0x1807b2=_0x4c1cc7;const _0x46f4f9=$n(_0x354e04);_0x189cf7[_0x1807b2(0x226)](_0x46f4f9);})),_0x265c26['add'](_0x117ca3(()=>_0x189cf7['complete']()));let _0x2cac61;const _0x424220=()=>{var _0x339fbc=_0x4c1cc7;_0xfe3023[_0x339fbc(0x226)](new Event('connection\x20error')),_0x17782d[_0x339fbc(0x226)](new CloseEvent('connection\x20error')),_0x2cac61[_0x339fbc(0x198)]();};return _0x2cac61={'memberID':'','close$':_0x17782d[_0x4c1cc7(0x1bf)](),'error$':_0xfe3023[_0x4c1cc7(0x1bf)](),'open$':_0x2a6887[_0x4c1cc7(0x33c)],'message$':_0x189cf7[_0x4c1cc7(0x1bf)](),'send':_0x4a7500=>{var _0x279dbd=_0x4c1cc7;if(_0x4a7500[_0x279dbd(0xb5)]===F[_0x279dbd(0x209)]){if(_0x4a7500[_0x279dbd(0x221)]['eventID']===_0x4a0013['SUBMIT_CHANGESET']){this[_0x279dbd(0xb8)](_0x2cac61,_0x4a7500[_0x279dbd(0x221)])[_0x279dbd(0x141)](_0x385339=>{this['_logService']['error'](_0x385339),_0x424220();});return;}if(_0x4a7500['data'][_0x279dbd(0x340)]===_0x4a0013[_0x279dbd(0x14c)]){const _0x539d1b=_0x4a7500[_0x279dbd(0x221)];this['_fetchMissChangesets'](_0x539d1b)[_0x279dbd(0x279)](_0xa602f8=>{var _0xc98363=_0x279dbd;_0x189cf7[_0xc98363(0x226)]({'cmd':F[_0xc98363(0x39a)],'code':Ee['OK'],'routeKey':_0x539d1b[_0xc98363(0x221)][_0xc98363(0xc1)],'routeType':'','data':{'eventID':_0x4a0013[_0xc98363(0x1fc)],'data':{'changesets':_0xa602f8}}});})[_0x279dbd(0x141)](_0x11922d=>{var _0x17557a=_0x279dbd;this[_0x17557a(0x136)][_0x17557a(0xc2)](_0x11922d),_0x424220();});return;}}_0x2a6887[_0x279dbd(0x32d)](Hn(_0x4a7500));},'close':()=>{var _0xca8021=_0x4c1cc7;_0x2a6887[_0xca8021(0x198)](),_0x265c26[_0xca8021(0xd0)]();}},_0x2cac61;}async[_0x3589bd(0xb8)](_0x5a3d7e,_0x4a7e39){var _0x4aa653=_0x3589bd,_0x28e824,_0x460f60;const {unitType:_0x36bfa3,unitID:_0x2e8c2b,changeset:_0x2e11f9}=_0x4a7e39['data'],_0xaf3033={'unitID':_0x2e8c2b,'memberID':_0x5a3d7e[_0x4aa653(0x3a2)],'type':_0x36bfa3,'changeset':_0x576b70(_0x2e11f9)},_0x17a2e1=this['_configService']['getConfig'](Un),_0x3522e1=this[_0x4aa653(0x3b0)][_0x4aa653(0x17d)](q),_0x28bbed=Fn((_0x460f60=(_0x28e824=_0x3522e1==null?void 0x0:_0x3522e1[_0x4aa653(0xa0)])!=null?_0x28e824:_0x17a2e1)!=null?_0x460f60:An,_0x36bfa3,_0x2e8c2b);try{await this[_0x4aa653(0x334)][_0x4aa653(0x2c0)](_0x28bbed,{'body':_0xaf3033});}catch(_0x1a38c2){throw this[_0x4aa653(0x136)][_0x4aa653(0xc2)](_0x4aa653(0x248),_0x4aa653(0x2ca)),_0x1a38c2;}}async[_0x3589bd(0x329)](_0x236f1d){var _0x5a2988=_0x3589bd;const {unitID:_0x51be79,from:_0x3e47c2,to:_0x5167df,unitType:_0x57bdbe}=_0x236f1d[_0x5a2988(0x221)];return(await this[_0x5a2988(0x361)][_0x5a2988(0x276)]({'metadata':void 0x0},{'unitID':_0x51be79,'type':_0x57bdbe,'from':_0x3e47c2,'to':_0x5167df}))[_0x5a2988(0x255)];}};Et=Bn([Ue(0x0,_0x350123(_0x5aaee8)),Ue(0x1,_0x350123(_0x385ac4)),Ue(0x2,_0x59f592),Ue(0x3,_0x400db2),Ue(0x4,_0x56cf4d)],Et);const Vn=_0x3589bd(0x1f4);function Gn(_0x513652){var _0x2187f1=_0x3589bd;return JSON[_0x2187f1(0x388)](_0x513652)['length'];}class Ri{constructor(){var _0x284506=_0x3589bd;N(this,'_commentUpdate$',new _0x8b1ca8()),N(this,_0x284506(0x2dc),this[_0x284506(0x21c)][_0x284506(0x1bf)]());}['onCommentUpdate'](_0xead135){var _0x163f10=_0x3589bd;this[_0x163f10(0x21c)][_0x163f10(0x226)](_0xead135);}}var Wn=Object['defineProperty'],Kn=Object[_0x3589bd(0x38f)],Yn=(_0x3ad67a,_0x578b7a,_0x475faa,_0x373bec)=>{for(var _0xf7bfc=_0x373bec>0x1?void 0x0:_0x373bec?Kn(_0x578b7a,_0x475faa):_0x578b7a,_0x347372=_0x3ad67a['length']-0x1,_0x5b7f9b;_0x347372>=0x0;_0x347372--)(_0x5b7f9b=_0x3ad67a[_0x347372])&&(_0xf7bfc=(_0x373bec?_0x5b7f9b(_0x578b7a,_0x475faa,_0xf7bfc):_0x5b7f9b(_0xf7bfc))||_0xf7bfc);return _0x373bec&&_0xf7bfc&&Wn(_0x578b7a,_0x475faa,_0xf7bfc),_0xf7bfc;},Kt=(_0x1ef688,_0x4a766a)=>(_0xb9bb9,_0x1aa447)=>_0x4a766a(_0xb9bb9,_0x1aa447,_0x1ef688);let xe=class extends _0xde5152{constructor(_0x23bc3d,_0x3d89be){var _0x3bf770=_0x3589bd;super(),N(this,_0x3bf770(0x2e5),new Map()),N(this,'_roomCreated$',new _0x8b1ca8()),(this[_0x3bf770(0x25d)]=_0x23bc3d,this[_0x3bf770(0x2d2)]=_0x3d89be,this[_0x3bf770(0x145)](_0x5663e3(this[_0x3bf770(0x25d)][_0x3bf770(0x1d9)](_0x3d2230[_0x3bf770(0x38e)])[_0x3bf770(0x304)](_0x2010b6(_0x3a113e=>_0x3a113e[_0x3bf770(0x39f)]())),this[_0x3bf770(0x25d)][_0x3bf770(0x1d9)](_0x3d2230['UNIVER_DOC'])[_0x3bf770(0x304)](_0x2010b6(_0x50e1ea=>_0x50e1ea['getUnitId']())),this[_0x3bf770(0x25d)][_0x3bf770(0x1d9)](_0x3d2230[_0x3bf770(0x216)])[_0x3bf770(0x304)](_0x2010b6(_0x242935=>_0x242935[_0x3bf770(0x39f)]())))[_0x3bf770(0x320)](_0x2809bc=>this['_removeRoom'](_0x2809bc))));}[_0x3589bd(0x322)](_0x3ee909){var _0x566225=_0x3589bd;return this[_0x566225(0x2e5)][_0x566225(0x1c8)](_0x3ee909)?_0x484d8b(this[_0x566225(0x2e5)][_0x566225(0x1c6)](_0x3ee909)):this['_roomCreated$']['pipe'](_0x2010b6(_0x5585e0=>{var _0x228473=_0x566225;if(_0x5585e0===_0x3ee909)return this['_roomMembers'][_0x228473(0x1c6)](_0x5585e0);}));}[_0x3589bd(0x32c)](_0x564cf9){var _0x5711ad=_0x3589bd;this[_0x5711ad(0x2d2)][_0x5711ad(0x32c)](_0x564cf9);}[_0x3589bd(0x2fc)](){var _0x447c0f=_0x3589bd;return this[_0x447c0f(0x2d2)][_0x447c0f(0x2fc)]();}[_0x3589bd(0x1b0)](_0x3597b2,_0x26123d){var _0x25c1e6=_0x3589bd;let _0x5296ca=this[_0x25c1e6(0x2e5)][_0x25c1e6(0x1c6)](_0x3597b2);_0x5296ca||(_0x5296ca=new qn(),this['_roomMembers'][_0x25c1e6(0x24a)](_0x3597b2,_0x5296ca),this[_0x25c1e6(0x2ac)][_0x25c1e6(0x226)](_0x3597b2)),_0x5296ca['updateMember'](_0x26123d);}[_0x3589bd(0x344)](_0x2d8a7a,_0x16b15a){var _0x1b48e2=_0x3589bd;const _0x1fe6fe=this['_roomMembers'][_0x1b48e2(0x1c6)](_0x2d8a7a);_0x1fe6fe&&_0x1fe6fe['removeMember'](_0x16b15a);}[_0x3589bd(0x1ee)](_0x303e71){return this['_roomMembers']['get'](_0x303e71);}[_0x3589bd(0x142)](_0x5b8a50,_0x1df9a6){var _0x205435=_0x3589bd;const _0x5c9ac9=this['_roomMembers'][_0x205435(0x1c6)](_0x5b8a50);if(_0x5c9ac9)return _0x5c9ac9[_0x205435(0x142)](_0x1df9a6);}[_0x3589bd(0xfe)](_0x448681){var _0x2d0e40=_0x3589bd;const _0xf52bc0=this[_0x2d0e40(0x2e5)][_0x2d0e40(0x1c6)](_0x448681);_0xf52bc0&&(_0xf52bc0[_0x2d0e40(0xd0)](),this[_0x2d0e40(0x2e5)][_0x2d0e40(0xea)](_0x448681));}[_0x3589bd(0xd0)](){var _0x6317eb=_0x3589bd;this[_0x6317eb(0x2e5)]['forEach'](_0x2f89c8=>_0x2f89c8['dispose']()),this[_0x6317eb(0x2e5)][_0x6317eb(0x389)](),this[_0x6317eb(0x2ac)][_0x6317eb(0x2d5)]();}};xe=Yn([Kt(0x0,_0x7d7fce),Kt(0x1,_0x350123(_0x3df8e8))],xe);class qn extends _0xde5152{constructor(){var _0x5bf2e5=_0x3589bd;super(...arguments),N(this,'_members',new Map()),N(this,_0x5bf2e5(0xbd),new _0x3bd22c(this['_members'])),N(this,_0x5bf2e5(0x39b),this[_0x5bf2e5(0xbd)][_0x5bf2e5(0x1bf)]());}[_0x3589bd(0xd0)](){var _0x46b22d=_0x3589bd;this[_0x46b22d(0xdc)][_0x46b22d(0x389)]();}[_0x3589bd(0x1b0)](_0x47fd48){var _0x46fb2c=_0x3589bd;this[_0x46fb2c(0xdc)][_0x46fb2c(0x24a)](_0x47fd48[_0x46fb2c(0x3a2)],_0x47fd48),this['_emitMembers']();}['removeMember'](_0x17d60d){var _0x428586=_0x3589bd;this[_0x428586(0xdc)][_0x428586(0xea)](_0x17d60d);}[_0x3589bd(0x142)](_0x52e234){var _0x30e14a=_0x3589bd;return this[_0x30e14a(0xdc)][_0x30e14a(0x1c6)](_0x52e234);}[_0x3589bd(0x10b)](){var _0x2b1799=_0x3589bd;return Array['from'](this[_0x2b1799(0xdc)][_0x2b1799(0x195)]());}['_emitMembers'](){var _0x2047ae=_0x3589bd;this[_0x2047ae(0xbd)][_0x2047ae(0x226)](this[_0x2047ae(0xdc)]);}}var zn=Object[_0x3589bd(0x2f6)],Jn=Object[_0x3589bd(0x38f)],Xn=(_0x1fca57,_0x431e8a,_0x1ecb96,_0x5ab418)=>{var _0x30e8c2=_0x3589bd;for(var _0x1053e0=_0x5ab418>0x1?void 0x0:_0x5ab418?Jn(_0x431e8a,_0x1ecb96):_0x431e8a,_0x19627d=_0x1fca57[_0x30e8c2(0x2f2)]-0x1,_0x35245e;_0x19627d>=0x0;_0x19627d--)(_0x35245e=_0x1fca57[_0x19627d])&&(_0x1053e0=(_0x5ab418?_0x35245e(_0x431e8a,_0x1ecb96,_0x1053e0):_0x35245e(_0x1053e0))||_0x1053e0);return _0x5ab418&&_0x1053e0&&zn(_0x431e8a,_0x1ecb96,_0x1053e0),_0x1053e0;},me=(_0xda3841,_0x11046d)=>(_0x199e43,_0x468ccb)=>_0x11046d(_0x199e43,_0x468ccb,_0xda3841),Te=(_0xf4a65f=>(_0xf4a65f[_0xf4a65f[_0x3589bd(0xa5)]=0x0]=_0x3589bd(0xa5),_0xf4a65f[_0xf4a65f[_0x3589bd(0x297)]=0x1]=_0x3589bd(0x297),_0xf4a65f[_0xf4a65f[_0x3589bd(0x181)]=0x2]=_0x3589bd(0x181),_0xf4a65f[_0xf4a65f[_0x3589bd(0x2cc)]=0x3]=_0x3589bd(0x2cc),_0xf4a65f))(Te||{});function _0x276e(){var _0x29c75a=['_map','_transformSelections','textRanges','conflict','Utf8','originalMeta','commentUpdateEvent','uniscriptRunEvent','_revisionService','_resendTimer','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','27YzgseM','_createHmacHelper','post','href','_unitID','entries','_transformService','_candidateSocket','onLocalMutation','/universer-api/stream/file/upload','DEFAULT_FILE_NAME','[CollaborationEntity]','submit\x20changeset\x20error!','_schedule','ONLINE','UnitEmbedded','getMemberID','createInstance','fetchThroughInterceptors','loadDoc','_userManagerService','m2Prime','_disableEditing','complete','_transformUndoredo','_collaborationPaused','listCollaborators','processBlock','_applyRemoteChangeset','UNKNOWN_CMD','commentUpdate$','NOT_COLLAB','stopTime','NoPadding','reduce','find','PasswordBasedCipher','onRemoteAck','ERROR_IMAGE_TYPE','_roomMembers','_updateLocalCache','unitInfo$','_resendWithTimeout','unit-cache-','LOCAL_CACHE_INTERVAL','RETRY_CONNECTING_MAX_COUNT','EvpKDF','LICENSE_EXPORT_SIZE_EXCEEDED','_socket','_loadSheet','byteLength','lib','length','/universer-api/authz','Decryptor','dispose$','defineProperty','_tryReconnect','3009595yJvBjo','/-/object/-/batch_allowed','offline','updatePermissionObjEvent','getCurrentUser','_onRemoteACK','subject','filter','registerHTTPInterceptor','[SyncedState]:\x20received\x20rejection.','_remoteChangesetQueue','objectActions','pipe','updatePermissionPoint','SEND_CHANGESET_TIMEOUT','_collaborationTimeoutTimer','transformSelections','unitId\x20is\x20not\x20found','_awaitingChangeset','NO_OTHER_CLIENTS_EDITING','COMPRESS_MUTATION_SEND','execute','PERMISSION_REJ','function','_doReset','_replayCachedMutations','NOT_FOUND','_replaceFileID','algo','_unlockTransition','origin','mutations','CLOSE_ROOM','status$','entityInit$','LIVESHARE_REQUEST_HOST','keySize','error$','setConfig','reverse','subscribe','_isPermissionRej','waitForRoom$','_createInitialState','objectType','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_checkMissing','forEach','UNAUTHENTICATED','_fetchMissChangesets','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','infoRsp','setCurrentUser','send','649MlSXwp','SerializableCipher','unsubscribe','LEAVE','_collaborationUIEventService','UNDEFINED','_http','saveSheetBlock','sid','pauseCollaboration','UNIVER_DOC','apply','HmacMD5','HEARTBEAT_TIMEOUT','open$','shouldCloseConn','_stopTelemetryCollaborationNewChangeset','\x20to\x20','eventID','session.room-cnt-exceeds','76ieXNDl','duration','removeMember','OTHER_CLIENTS_EDITING','debug','enableSingleActiveInstanceLock','_doCryptBlock','createEncryptor','getUnitOnRev','default','reset','LICENSE_DISTRO_REJECTED','Hex','save\x20fail\x20reason\x20is\x20','saveSnapshot','getTypeOfUnitAdded$','_createSocketURL','_queuedRemoteChangesets','createDecryptor','_onRemoteRejected','/allowed','_onRemoteRetry','GLOBAL_ROOMS_CNT_EXCEEDS','_redoStacks','liveShareOperation','_clearHeartbeatTimer','_scheduleCompleteTimestamp','_state','_transformStack','min','focused$','_snapshotServerService','encryptBlock','FAIL','getSheetId','_getCtorByUniverType','mixIn','AWAITING_WITH_PENDING','toLowerCase','getCollabEntity','close$','getUnit','append','getInterceptPoints','rng','MUTATION','{fileID}','formatter','toggleOnline','_socketReady','status','splice','onCommentUpdate','blockSize','JOIN','roomInfos','_onRemoteChangeset','_sendingTimer','__esModule','localCacheService','_waitForHeartbeatResponse','SNAPSHOT_SERVER_URL_KEY','onlyLocal','location','image/png','_onUserJoin','hasOwnProperty','_parse','sessionStatus','exports','stringify','clear','_onOffline','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_undoRedoService','onStarting','UNIVER_SHEET','getOwnPropertyDescriptor','src','copyFileMeta','UPDATE_PERMISSION_OBJ','APPLY_DUPLICATED','_cipher','transformUndoRedo','indexOf','SUBMIT_CHANGESET','state','_injector','RECV','members$','CHANGESET_SHOULD_RETRY','_toggleOnline','_status$','getUnitId','UnitSnapshot','_localCacheService','memberID','x-univer-host','saveImage','SYNCED','_clearLocalCache','image/jpeg','_createHelper','update','JOIN_ROOM_NOT_EXISTS','change$','_hasher','_getLoginPath','online$','YUUMI_RATE_OVER_LIMIT','_configService','confirm','permissionRejEvent','_onCombEvent','actions','\x22.\x20Please\x20configure\x20the\x20dynamicRequireTargets\x20or/and\x20ignoreDynamicRequires\x20option\x20of\x20@rollup/plugin-commonjs\x20appropriately\x20for\x20this\x20require\x20call\x20to\x20work.','randomBytes','collabSubmitChangesetUrl','random','reject','objects','body','IDLE','_initMergeInterceptor','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','userID','/universer-api/user/session-ticket','selections','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','/object/','FETCH_MISS','_authzIoService','_type','_snapshotService','SNAPSHOT_HAS_BEEN_REMOVED','sendChangesetTimeout','JOIN_ROOM_FAILED','266244VYhYCR','cmd','interceptor','createCollaborator','_submitChangeset','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','[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.','_event$','event$','_members$','onTransformIME','ws://127.0.0.1:8000/universer-api/comb/connect','snapshotServerUrl','unitID','error','_onFetchMissResult','enableAuthServer','url','INVALID_ARGUMENT','univer-pro.collaboration-client.single-active-unit-service','475193dpdDsv','_socketService','CipherParams','_syncEditingCollabCursor','HEARTBEAT','mode','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_process','dispose','liveShareNewHost','incrementRevOfUnit','UNISCRIPT_RUN','joinRsp','_undoStacks','method','_key','_scheduleCollaborationTimeoutTimer','[CollaborationSessionService]:\x20socket\x20error','clamp','_transformRemoteChangesetByStateCache','_members','c1Prime','_initRequestHeader','_updateState','_getSendChangesetTimeout','SUCCUSS','UNIVER_UNKNOWN','unknown','onTransformSelections','COMPRESS_MUTATION_APPLY','[CollaborationUndoRedoService]','_lockTransition','max','loginUrlKey','delete','_entityInit$','every','retryConnectingInterval','USERS_LEAVE','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','pad','readAsDataURL','authzUrl','onCommandExecuted','image/jpg','Pkcs7','routeKey','localeService','collaboration-client.local-cache-service','failed\x20to\x20apply\x20missed\x20changesets!','univer-pro.collaboration-client.network-condition.service','ceil','_imageSourceCache','_change$','_removeRoom','_initDependencies','_keyPriorReset','loadOfflineData','baseRev','INTERNAL_ERROR','CONNECTOR_DATA_TOO_LARGE','disableLocalCache','salt','updateOfflineData','_toggleOffline','_onConflict','HMAC','getAllMembers','findIndex','concat','PERSON','_data','_networkConditionService','executeCommand','getRandomValues','byteOffset','now','_state$','getUnitStatus$','runId','/role','SHOULD_CLOSE_CONN','generateRandomId','updateCursorEvent','_changesetReqId','_shouldReportTelemetry','withCredentials','unitId','_onConnectionOpen','_nDataBytes','[UniverCollaborationClientPlugin]','ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=','kdf','YUUMI_URL_COL_OUT_OF_RANGE','PERMISSION_DENIED','avatar','_transformRemoteChangesetByIMECache','synced','padding','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','UPDATE_CURSOR','awaitingChangeset','getTime','session.room-full','message$','HEARTBEAT_INTERVAL','closeSession','buffer','enc','LICENSE_IMPORT_SIZE_EXCEEDED','_logService','_startCollaboration','_createHandler','resend','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','getImageSourceCache','6gnrVjA','init','_incrementRevisionNumber','search','fetching\x20missing\x20changesets\x20from\x20','catch','getMember','&to=','getCollabEntity$','disposeWithMe','charAt','transformMutationsWithChangeset','onSyncEditingCollabCursor','SNAPSHOT_URL_KEY','application/json','Encryptor','FETCH_MISSING','_substituteRedoStack','hostname','_sender','awaiting_with_pending','Base','CONFLICT','rev','socket$','symbol','decryptBlock','382268GJucnG','LIVESHARE_OPERATION','APPLY_REVISION_CONFILICT','CBC','&assign=','_startTelemetryCollaborationNewChangeset','_prevBlock','POST','decrypt','_timeoutTimer','HttpExport','[CollaborationSessionService]','onTransformState','_nRounds','members','fromCharCode','AES','add','WordArray','slice','_onMessage','compute','_getCurrentRevision','SOCKET_FAILED_RETRY','_initCloseConn','$super','_iKey','transformChangesets','revision','key','[PendingState]:\x20received\x20rejection.','loadSheet','_registerDependencies','SNAPSHOT_INVALID_SNAPSHOT','put','push','PENDING','signUrlServerUrl','getConfig','_commandService','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','APPLY_NON_SEQUENTIAL_REVISION','OFFLINE','_xformMode','Native\x20crypto\x20module\x20could\x20not\x20be\x20used\x20to\x20get\x20secure\x20random\x20number.','_onConnectionFailed','_unitInfo$','fromCollab','_ENC_XFORM_MODE','PY_RUNTIME_SCRIPT_ERROR','_onRecvEvent','BlockCipher','list','HttpImport','readyForCollab','Cipher','ENSURE_SNAPSHOT_EXECUTION','repeat','_retryConnectingTimer','_invKeySchedule','_acknowledgedAwaitingChangeset','toString','values','size','BASE64','close','fetch_missing','ERROR_EXCEED_SIZE','loadUnit','socket\x20open.','sigBytes','emitEvent','_clearCollaborationTimeoutTimer','_joinRoom','_hash','_reverseMap','onMissingChangesets','MD5','OTHER_CLIENT_EDITING','sin','downloadEndpointUrl','getUnitType','_httpService','saveChangeset','_socket$','headers','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_transformStateCache','LIVESHARE_TERMINATE','updateMember','COLLAB_SUBMIT_CHANGESET_URL','csShouldRetryEvent','session','/collaborator','106539IIcbqi','Univer','ciphertext','_HTTPService','requestParams','getCurrentRevOfUnit','BlockCipherMode','result','updateCollaborator','[PendingState]:\x20received\x20acknowledgement.','asObservable','Undefined','_telemetryService','[SyncedState]:\x20received\x20acknowledgement.','reqId','_collaborationSessionService','extend','get','toggleOffline','has','substr','abs','objectID','workbook','COMMENT_UPDATE','_rescheduleHeartbeat','MSG_FOR_ERROR','JOIN_ROOM_PERMISSION_DENIED','_iv','auth.needGotoLoginAlert','prototype','_append','_memberService','onRemoteRej','override','charCodeAt','getTypeOfUnitDisposed$','_instanceService','_keySchedule','setWaitCount','[PendingState]:\x20unhandled\x20univer\x20type:\x20','Malformed\x20UTF-8\x20data','/universer-api/snapshot','session.room-permission-denied','SHA1','_waitCount','onTransformRemoteChangesetByStateCache','joinEvent','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','responseType','onRemoteRetry','JOIN_ROOM_FULL','range','encodeURIComponent','_sessionStatus$','putCollaborators','sessionTicket','getRoom','_oKey','reconnect','encode','[FetchMissState]','_collabSessionService','collaboration_new_changeset','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','_compressMutationService','name','_retryCount','_pendingMutations','unpad','ALREADY_EXISTS','PSEUDO_FETCH_MISSING_RESULT','\x0aAfter:\x20','/object','_permissionService','readInt32LE','_listenToNetworkCondition','onStateChange','UUID','title','StreamCipher','_decreaseWaiting','onMissedChangesetFetched','_clearScheduledTask','INGEST','_createSocket','target','_socketMessageSubscription','577450FXzCWo','onTransformRemoteChangesetByStateCache\x20callback\x20is\x20not\x20added\x20yet.','_onLocalMutation','_getUndoStack','univer-pro.collaboration-client-socket-service','encrypt','csRejEvent','_executeRemoteChangeset','sessionStatus$','UNIVER_SLIDE','onRemoteChangeset','_sendHeartbeat','EXCHANGE_SIGN_URL_SERVER_URL_KEY','_throwTelemetryCollaborationNewChangeset','file','_commentUpdate$','_getUploadFileURL','LIVESHARE_NEW_HOST','_mode','initWorkbookPermissionChange','data','words','appendMutation','AWAITING','_sendHeartbeatTimer','next','crypto','create','_getSessionTicket','LIVESHARE_FETCH_OPERATIONS','fetchMiss','requireSession','includes','randomUUID','ticket','collaborators','LICENSE_MAX_UNITS_EXCEEDED','_initUnitPermissionChange','pluginName','/universer-api/file/{fileID}/sign-url','floor','createSocket','_updateStatus','collaboration-client.config','_getAPIPrefixPath','TOO_MANY_REQUESTS','addImageSourceCache','clone','[DataLoaderService]','replace','not_collab','/unit/','join','startTime','_resendTimeout','_getAPIPrefix','_clearUndo','_onUserLeave','_config','[CollaborationSession]','csAckEvent','set','CHANGESET_REVISION_CONFILICT','getSnapshotAPIPath','HELLO','onTransformRemoteChangesetByIMECache\x20callback\x20is\x20not\x20added\x20yet.','[OfflineState]:\x20received\x20acknowledgement.','isArray','uploadFileServerUrl','_getSignURL','c2Prime','telemetry\x20info\x20is\x20not\x20initialized','changesets','addHandlerCallback','getDeserializedSheetBlock','socketService','UNRECOGNIZED','getFocusedUnit','getWorkbookSelections','string','_univerInstanceService','searchParams','isPermissionRej','leaveEvent','COMPLETION_FINISHED','_telemetryInfo','_sheetTransformSelectionsService','YUUMI_UNABLE_LOAD_URL','collaboratorID','code','/rev/','finalize','allowed','ERROR_IMAGE','_singleActiveUnitService','_handlerCallback','7cknRPY','_doProcessBlock','deleteCollaborator','Error\x20on\x20receiving\x20event','parse','bind','_doFinalize','_clearTimeoutTimer','_eventService','fetchMissingChangesets','UNKNOWN_CODE','APPLY_REJECT','then','_tryEnsureSocket','setShowComponents','_commentService','?url=','&source=','ivSize','iterations','_transitionLocked','call','NEW_CHANGESETS','getCurrentSelections','SOCKET_FAILED','_getRedoStack','action','_changesetSessionId','format','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_handler','_entities','capture','onSendChangeset','AUTHZ_URL_KEY','params','USERS_ENTER','/block/','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','OpenSSL','_getDownloadEndpointURL','state$','JOINING','\x0aCurrent:\x20','_clearRedo','_init','37304FPPjWc','[OfflineState]:\x20received\x20rejection.','snapshot','onTransformRemoteChangesetByIMECache','editingUnit','_transformIMECache','_onJoinRoomEvent','BufferedBlockAlgorithm','UNIVER_COLLABORATION_CLIENT_PLUGIN','map','SUBMIT_CHANGESET_TIMEOUT','patch','type','cfg','_loadDoc','msCrypto','getImage','_roomCreated$','Base64','hasher','CHANGESET_ACK','_sessions','[CollaborationState]:\x20apply\x20error!','/fetchmissing?from='];_0x276e=function(){return _0x29c75a;};return _0x276e();}const Yt={[Ee[_0x3589bd(0x363)]]:'session.join-failed',[Ee['JOIN_ROOM_FULL']]:_0x3589bd(0x12f),[Ee['JOIN_ROOM_NOT_EXISTS']]:'session.room-not-exists',[Ee[_0x3589bd(0x1d0)]]:_0x3589bd(0x1e0),[Ee['GLOBAL_ROOMS_CNT_EXCEEDS']]:_0x3589bd(0x341)};let It=class extends _0x37e0d6{constructor(_0x4f0c64,_0x3b396d,_0x37b9da,_0x5e486b,_0xc60af9,_0x3b402e,_0x18a164,_0x55e0ef,_0x343d01){var _0xb7a7bd=_0x3589bd;super(),N(this,_0xb7a7bd(0x1eb),new _0x3bd22c(0x0)),N(this,_0xb7a7bd(0x215),this[_0xb7a7bd(0x1eb)]['asObservable']()),N(this,_0xb7a7bd(0xbb),new _0x8b1ca8()),N(this,_0xb7a7bd(0xbc),this[_0xb7a7bd(0xbb)][_0xb7a7bd(0x1bf)]()),N(this,_0xb7a7bd(0x2ee)),N(this,_0xb7a7bd(0x20c)),N(this,_0xb7a7bd(0x307)),N(this,_0xb7a7bd(0x11d),!0x1),N(this,'_telemetryInfo',null),(this[_0xb7a7bd(0x2c2)]=_0x4f0c64,this[_0xb7a7bd(0x136)]=_0x37b9da,this[_0xb7a7bd(0x3b0)]=_0x5e486b,this['_localeService']=_0xc60af9,this[_0xb7a7bd(0x1d5)]=_0x3b402e,this['_commentService']=_0x18a164,this[_0xb7a7bd(0x332)]=_0x55e0ef,this['_telemetryService']=_0x343d01,this[_0xb7a7bd(0x11d)]=!!this[_0xb7a7bd(0x1c1)],_0x3b396d[_0xb7a7bd(0x304)](_0x3200b3(this[_0xb7a7bd(0x2f5)]))['subscribe'](_0x276e1b=>{var _0x479cab=_0xb7a7bd,_0x3521ee;typeof _0x276e1b>'u'||(this[_0x479cab(0x2ee)]=_0x276e1b,_0x276e1b?(this['_joinRoom'](_0x276e1b),this['_socketMessageSubscription']=_0x276e1b[_0x479cab(0x130)][_0x479cab(0x320)](_0x458634=>{var _0x402655=_0x479cab;_0x458634[_0x402655(0xf6)]===this[_0x402655(0x2c2)]&&this[_0x402655(0x3b3)](_0x458634);})):(this[_0x479cab(0x21a)](),this[_0x479cab(0x1eb)][_0x479cab(0x226)](0x2),(_0x3521ee=this[_0x479cab(0x20c)])==null||_0x3521ee[_0x479cab(0x330)](),this['_socketMessageSubscription']=null));}));}get['sessionStatus'](){var _0x9c4e1b=_0x3589bd;return this[_0x9c4e1b(0x1eb)]['getValue']();}['getMemberID'](){var _0x1fdd3b=_0x3589bd,_0xee5900,_0x4e6878;return(_0x4e6878=(_0xee5900=this[_0x1fdd3b(0x2ee)])==null?void 0x0:_0xee5900['memberID'])!=null?_0x4e6878:null;}['dispose'](){var _0x130065=_0x3589bd;super[_0x130065(0xd0)](),this['dispose$']['next'](),this[_0x130065(0x2f5)][_0x130065(0x2d5)]();}[_0x3589bd(0x198)](){var _0x223df5=_0x3589bd,_0x2ec4d1,_0x16c81b;this[_0x223df5(0x21a)](),(_0x2ec4d1=this[_0x223df5(0x2ee)])==null||_0x2ec4d1[_0x223df5(0x32d)]({'cmd':F[_0x223df5(0x331)],'data':{'roomID':this[_0x223df5(0x2c2)]}}),(_0x16c81b=this[_0x223df5(0x2ee)])==null||_0x16c81b[_0x223df5(0x198)](),this[_0x223df5(0xbb)][_0x223df5(0x2d5)](),this[_0x223df5(0x1eb)][_0x223df5(0x2d5)](),this[_0x223df5(0xd0)]();}[_0x3589bd(0x3b3)](_0x4e2f0f){var _0x2aa5cc=_0x3589bd;_0x4e2f0f[_0x2aa5cc(0xb5)]===F[_0x2aa5cc(0x378)]?this[_0x2aa5cc(0x2a1)](_0x4e2f0f):_0x4e2f0f[_0x2aa5cc(0xb5)]===F[_0x2aa5cc(0x39a)]&&this['_onRecvEvent'](_0x4e2f0f);}[_0x3589bd(0x1a0)](_0x39c6af){var _0x198803=_0x3589bd;this[_0x198803(0x1eb)]['next'](0x1),_0x39c6af[_0x198803(0x32d)]({'cmd':F[_0x198803(0x378)],'routeKey':this[_0x198803(0x2c2)],'routeType':'','data':{'rooms':[{'roomID':this[_0x198803(0x2c2)]}]}});}[_0x3589bd(0x2a1)](_0x5de626){var _0xb623fd=_0x3589bd,_0x3f3be2;if(_0x5de626[_0xb623fd(0x266)]in Yt){this['_collaborationUIEventService']['emitEvent']({'id':se[_0xb623fd(0xb3)],'data':Yt[_0x5de626['code']]}),this[_0xb623fd(0x1eb)][_0xb623fd(0x226)](0x2);return;}this[_0xb623fd(0x1eb)][_0xb623fd(0x226)](0x3);const _0x24c316=(_0x3f3be2=_0x5de626[_0xb623fd(0x221)][_0xb623fd(0x379)][this[_0xb623fd(0x2c2)]])==null?void 0x0:_0x3f3be2[_0xb623fd(0x165)];_0x24c316&&_0x24c316[_0xb623fd(0x327)](_0x5affd4=>this[_0xb623fd(0x1d5)][_0xb623fd(0x1b0)](this['_unitID'],_0x5affd4));}[_0x3589bd(0x189)](_0x12fa4d){var _0x3be3fc=_0x3589bd;try{const _0xe92fdc=_0x12fa4d[_0x3be3fc(0x221)];switch(_0xe92fdc['eventID']){case _0x4a0013[_0x3be3fc(0x291)]:this[_0x3be3fc(0x383)](_0xe92fdc),this[_0x3be3fc(0xbb)]['next'](_0xe92fdc);break;case _0x4a0013[_0x3be3fc(0xee)]:this[_0x3be3fc(0x246)](_0xe92fdc),this[_0x3be3fc(0xbb)][_0x3be3fc(0x226)](_0xe92fdc);break;case _0x4a0013['CHANGESET_ACK']:case _0x4a0013[_0x3be3fc(0x39c)]:this[_0x3be3fc(0x33e)](),this[_0x3be3fc(0x19f)](),this['_event$']['next'](_0xe92fdc);break;case _0x4a0013[_0x3be3fc(0x1cf)]:this['_logService'][_0x3be3fc(0xc2)](_0x3be3fc(0x34f)+JSON[_0x3be3fc(0x388)](_0xe92fdc)),this[_0x3be3fc(0xbb)]['next'](_0xe92fdc);break;case _0x4a0013[_0x3be3fc(0x1cd)]:this[_0x3be3fc(0x27c)][_0x3be3fc(0x376)](_0xe92fdc[_0x3be3fc(0x221)]),this['_event$']['next'](_0xe92fdc);break;default:this[_0x3be3fc(0xbb)][_0x3be3fc(0x226)](_0xe92fdc);}}catch(_0x4789a2){this[_0x3be3fc(0x136)]['error'](_0x4789a2,_0x12fa4d);}}[_0x3589bd(0x383)](_0x4fea29){var _0x2a13b4=_0x3589bd;this['_memberService'][_0x2a13b4(0x1b0)](this[_0x2a13b4(0x2c2)],_0x4fea29[_0x2a13b4(0x221)]);}[_0x3589bd(0x246)](_0x5d168a){var _0x3f6f93=_0x3589bd;this[_0x3f6f93(0x1d5)]['removeMember'](this[_0x3f6f93(0x2c2)],_0x5d168a[_0x3f6f93(0x221)][_0x3f6f93(0x3a2)]);}async[_0x3589bd(0x32d)](_0x898654,_0x5eee95){var _0x1d021e=_0x3589bd;if(this[_0x1d021e(0x386)]!==0x3||!this[_0x1d021e(0x2ee)])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x898654['eventID']===_0x4a0013[_0x1d021e(0x397)]&&(this[_0x1d021e(0xd8)](),this[_0x1d021e(0x15c)](_0x898654)),this['_socket'][_0x1d021e(0x32d)]({'cmd':F[_0x1d021e(0x209)],'routeKey':_0x5eee95,'routeType':'','data':_0x898654});}catch(_0x1c9d16){this[_0x1d021e(0x136)][_0x1d021e(0xc2)](_0x1c9d16);}}[_0x3589bd(0xd8)](){var _0x4c895b=_0x3589bd,_0x2910fa;this[_0x4c895b(0x307)]=setTimeout(()=>{var _0xc59de1=_0x4c895b;this['_collaborationTimeoutTimer']=null,this['_collaborationUIEventService']['emitEvent']({'id':se[_0xc59de1(0x2a5)]});},(_0x2910fa=this[_0x4c895b(0x3b0)][_0x4c895b(0x17d)](Si))!=null?_0x2910fa:Ei);}[_0x3589bd(0x19f)](){var _0x87d714=_0x3589bd;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x87d714(0x307)]),this[_0x87d714(0x307)]=null);}[_0x3589bd(0x15c)](_0x46aff9){var _0x5d843a=_0x3589bd;if(!this[_0x5d843a(0x11d)])return;const {data:_0xd878f5}=_0x46aff9,{unitID:_0x2ddf9d,changeset:_0x2ec973}=_0xd878f5,{mutations:_0x430952,type:_0x24a83b}=_0x2ec973;this[_0x5d843a(0x262)]={'unitId':_0x2ddf9d,'type':_0x24a83b,'startTime':performance[_0x5d843a(0x114)](),'stopTime':0x0,'duration':0x0,'size':Gn(_0x430952)};}[_0x3589bd(0x33e)](){var _0x267f00=_0x3589bd;if(this[_0x267f00(0x11d)]){if(!this['_telemetryInfo']){this[_0x267f00(0x136)][_0x267f00(0xc2)](_0x267f00(0x248),_0x267f00(0x254));return;}this[_0x267f00(0x262)][_0x267f00(0x2de)]=performance[_0x267f00(0x114)](),this[_0x267f00(0x262)][_0x267f00(0x343)]=this['_telemetryInfo'][_0x267f00(0x2de)]-this[_0x267f00(0x262)][_0x267f00(0x242)],this[_0x267f00(0x1c1)][_0x267f00(0x28d)](Vn,this[_0x267f00(0x262)]),this[_0x267f00(0x262)]=null;}}[_0x3589bd(0x21a)](){this['_telemetryInfo']=null;}};It=Xn([me(0x2,_0x400db2),me(0x3,_0x59f592),me(0x4,_0x350123(_0x2720f2)),me(0x5,_0x350123(xe)),me(0x6,_0x350123(Ri)),me(0x7,_0x350123(pe)),me(0x8,_0x2f86e3(_0x1f9803))],It);var Zn=Object[_0x3589bd(0x2f6)],Qn=Object[_0x3589bd(0x38f)],er=(_0x481aee,_0xaf0a27,_0x354f26,_0x1f0b8e)=>{var _0xb2ae34=_0x3589bd;for(var _0x2ac314=_0x1f0b8e>0x1?void 0x0:_0x1f0b8e?Qn(_0xaf0a27,_0x354f26):_0xaf0a27,_0x412bc1=_0x481aee[_0xb2ae34(0x2f2)]-0x1,_0x1e3bfd;_0x412bc1>=0x0;_0x412bc1--)(_0x1e3bfd=_0x481aee[_0x412bc1])&&(_0x2ac314=(_0x1f0b8e?_0x1e3bfd(_0xaf0a27,_0x354f26,_0x2ac314):_0x1e3bfd(_0x2ac314))||_0x2ac314);return _0x1f0b8e&&_0x2ac314&&Zn(_0xaf0a27,_0x354f26,_0x2ac314),_0x2ac314;},ge=(_0x251238,_0x5b1faa)=>(_0x19a750,_0x49f064)=>_0x5b1faa(_0x19a750,_0x49f064,_0x251238);let Le=class extends _0xde5152{constructor(_0x30dea4,_0x9dc537,_0x1054bb,_0x154e28,_0x366963,_0xd472ac,_0x3b7043){var _0x38eeea=_0x3589bd;super(),N(this,_0x38eeea(0x1ab),new _0x3bd22c(void 0x0)),N(this,_0x38eeea(0x154),this[_0x38eeea(0x1ab)][_0x38eeea(0x1bf)]()),N(this,_0x38eeea(0x2c5),null),N(this,_0x38eeea(0x2b0),new Map()),N(this,'_status$',new _0x3bd22c(Te['IDLE'])),N(this,_0x38eeea(0x319),this[_0x38eeea(0x39e)][_0x38eeea(0x1bf)]()),N(this,_0x38eeea(0x373),!0x1),N(this,_0x38eeea(0x191)),N(this,_0x38eeea(0x1f8),0x0),N(this,_0x38eeea(0x225)),N(this,_0x38eeea(0x160)),(this[_0x38eeea(0x399)]=_0x30dea4,this['_logService']=_0x9dc537,this[_0x38eeea(0x3b0)]=_0x1054bb,this[_0x38eeea(0xc9)]=_0x154e28,this[_0x38eeea(0x1a9)]=_0x366963,this[_0x38eeea(0x332)]=_0xd472ac,this[_0x38eeea(0x110)]=_0x3b7043,this[_0x38eeea(0x201)]());}get[_0x3589bd(0x2ee)](){var _0x3f9282=_0x3589bd;return this[_0x3f9282(0x1ab)]['getValue']();}[_0x3589bd(0x201)](){var _0x23d557=_0x3589bd;this[_0x23d557(0x110)]&&this[_0x23d557(0x145)](this[_0x23d557(0x110)][_0x23d557(0x3ae)][_0x23d557(0x320)](_0x3e67b3=>{var _0x2707b0=_0x23d557;_0x3e67b3&&!this[_0x2707b0(0x2ee)]&&this[_0x2707b0(0x1f0)](),_0x3e67b3||this[_0x2707b0(0x38a)]();}));}[_0x3589bd(0xd0)](){var _0x4a781d=_0x3589bd;super['dispose'](),this[_0x4a781d(0x2b0)]['forEach'](_0x17ac25=>_0x17ac25['dispose']()),this['_sessions'][_0x4a781d(0x389)](),this['_status$'][_0x4a781d(0x2d5)]();}async[_0x3589bd(0x22c)](_0x942b90){var _0x2ad901=_0x3589bd;if(this[_0x2ad901(0x2b0)][_0x2ad901(0x1c8)](_0x942b90))return this[_0x2ad901(0x2b0)][_0x2ad901(0x1c6)](_0x942b90);this['_tryEnsureSocket']();const _0x3da3c3=this[_0x2ad901(0x399)]['createInstance'](It,_0x942b90,this[_0x2ad901(0x1ab)][_0x2ad901(0x1bf)]());return this['_sessions'][_0x2ad901(0x24a)](_0x942b90,_0x3da3c3),_0x3da3c3;}[_0x3589bd(0x132)](_0x1417a4){var _0x7ec342=_0x3589bd,_0x1252e4;const _0x1f297c=this[_0x7ec342(0x2b0)]['get'](_0x1417a4);_0x1f297c&&(this['_sessions'][_0x7ec342(0xea)](_0x1417a4),_0x1f297c[_0x7ec342(0x198)]()),this[_0x7ec342(0x2b0)][_0x7ec342(0x196)]||(_0x1252e4=this['_socket'])==null||_0x1252e4[_0x7ec342(0x198)]();}['reconnect'](){var _0x52460a=_0x3589bd;this[_0x52460a(0x1f8)]=0x0,this[_0x52460a(0x191)]!=null&&(clearTimeout(this[_0x52460a(0x191)]),this['_retryConnectingTimer']=null),this[_0x52460a(0x2f7)]();}async[_0x3589bd(0x229)](){var _0x2baa56=_0x3589bd,_0xe538fa,_0x5b21d7,_0x289527;const _0xad954b=this[_0x2baa56(0x3b0)]['getConfig'](q),_0x194736=(_0xe538fa=_0xad954b==null?void 0x0:_0xad954b['wsSessionTicketUrl'])!=null?_0xe538fa:On;return(_0x289527=(_0x5b21d7=(await this[_0x2baa56(0x1a9)][_0x2baa56(0x1c6)](_0x194736,{'headers':{'Content-Type':_0x2baa56(0x14a)}}))['body'])==null?void 0x0:_0x5b21d7[_0x2baa56(0x22f)])!=null?_0x289527:'';}[_0x3589bd(0x352)](_0x1aae39){var _0x4d8698=_0x3589bd,_0x483c01,_0x144e97;const _0x5e7390=this[_0x4d8698(0x3b0)][_0x4d8698(0x17d)](Rn),_0x404c9d=this[_0x4d8698(0x3b0)][_0x4d8698(0x17d)](q),_0x4d1e28=(_0x144e97=(_0x483c01=_0x404c9d==null?void 0x0:_0x404c9d['collabWebSocketUrl'])!=null?_0x483c01:_0x5e7390)!=null?_0x144e97:bn,_0x119b91=typeof window>'u'?new URL(_0x4d1e28):new URL(_0x4d1e28,window[_0x4d8698(0x381)][_0x4d8698(0x316)]);_0x119b91[_0x4d8698(0x25e)]['set'](_0x4d8698(0x1ed),_0x1aae39);const _0x4c6f33=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x4d8698(0x13f)]);return _0x4c6f33[_0x4d8698(0x1c6)](_0x4d8698(0x117))&&_0x119b91[_0x4d8698(0x25e)][_0x4d8698(0x24a)](_0x4d8698(0x117),_0x4c6f33[_0x4d8698(0x1c6)](_0x4d8698(0x117))),_0x119b91[_0x4d8698(0x194)]();}async[_0x3589bd(0x20a)](){var _0x3d3545=_0x3589bd;const _0x3bc0ea=await this['_getSessionTicket'](),_0x191cad=this[_0x3d3545(0x352)](_0x3bc0ea),_0x4c1f9e=this[_0x3d3545(0xc9)][_0x3d3545(0x236)](_0x191cad);return this[_0x3d3545(0x2c5)]=_0x4c1f9e,_0x4c1f9e;}async[_0x3589bd(0x27a)](){var _0x1119e3=_0x3589bd,_0x34e21e,_0x41358b;try{const _0x5da75f=(_0x41358b=(_0x34e21e=this[_0x1119e3(0x2ee)])!=null?_0x34e21e:this[_0x1119e3(0x2c5)])!=null?_0x41358b:await this[_0x1119e3(0x20a)]();if(_0x5da75f){const _0x3c4948=_0x5da75f[_0x1119e3(0x32d)];_0x5da75f[_0x1119e3(0x32d)]=_0xf91610=>(this[_0x1119e3(0x1ce)](),_0x3c4948[_0x1119e3(0x339)](_0x5da75f,[_0xf91610])),_0x5da75f['message$'][_0x1119e3(0x320)](_0x131938=>this[_0x1119e3(0x16b)](_0x5da75f,_0x131938)),_0x5da75f[_0x1119e3(0x31d)][_0x1119e3(0x304)](_0x52ac15(0x1))[_0x1119e3(0x320)](_0x60c93e=>this[_0x1119e3(0x136)][_0x1119e3(0xc2)](_0x1119e3(0xd9),_0x60c93e)),_0x5da75f[_0x1119e3(0x33c)][_0x1119e3(0x304)](_0x52ac15(0x1))[_0x1119e3(0x320)](()=>{this['_onConnectionOpen'](_0x5da75f);}),_0x5da75f['close$'][_0x1119e3(0x304)](_0x52ac15(0x1))[_0x1119e3(0x320)](_0x25a105=>{var _0x5119c6=_0x1119e3;this['_logService'][_0x5119c6(0x346)](_0x5119c6(0x162),'socket\x20close',_0x25a105),this['_onConnectionFailed']();});}}catch(_0x28a703){this[_0x1119e3(0x136)][_0x1119e3(0xc2)](_0x28a703),this[_0x1119e3(0x184)]();}}[_0x3589bd(0x120)](_0x175c5d){var _0x4fd520=_0x3589bd;this[_0x4fd520(0x136)][_0x4fd520(0x346)](_0x4fd520(0x162),_0x4fd520(0x19c)),_0x175c5d[_0x4fd520(0x32d)]({'cmd':F['HELLO']}),this[_0x4fd520(0x1ce)]();}[_0x3589bd(0x38a)](){var _0x2a56e1=_0x3589bd;this[_0x2a56e1(0x373)]=!0x1,this[_0x2a56e1(0x2c5)]=null,this[_0x2a56e1(0x39e)][_0x2a56e1(0x226)](Te[_0x2a56e1(0x181)]),this['_socket$'][_0x2a56e1(0x226)](null),this[_0x2a56e1(0x274)](),this[_0x2a56e1(0x35b)]();}[_0x3589bd(0x184)](){var _0x57bbf4=_0x3589bd,_0x16f6a3;this[_0x57bbf4(0x38a)](),this[_0x57bbf4(0x1f8)]<((_0x16f6a3=this[_0x57bbf4(0x3b0)][_0x57bbf4(0x17d)](Pn))!=null?_0x16f6a3:wn)?(this['_collaborationUIEventService']['emitEvent']({'id':se[_0x57bbf4(0x16e)]}),this['_tryReconnect']()):this[_0x57bbf4(0x332)]['emitEvent']({'id':se[_0x57bbf4(0x285)]});}[_0x3589bd(0x2f7)](){var _0x3eeb4b=_0x3589bd,_0x43e49a;const _0x3e57c7=this[_0x3eeb4b(0x1f8)],_0x4d4e6b=this[_0x3eeb4b(0x3b0)][_0x3eeb4b(0x17d)](q),_0x516950=_0x3e57c7===0x0?0x0:((_0x43e49a=_0x4d4e6b==null?void 0x0:_0x4d4e6b[_0x3eeb4b(0xed)])!=null?_0x43e49a:Dn)*0x2**_0x3e57c7;this[_0x3eeb4b(0x191)]=setTimeout(()=>{var _0x3d2072=_0x3eeb4b;clearTimeout(this[_0x3d2072(0x191)]),this[_0x3d2072(0x191)]=null,this[_0x3d2072(0x27a)]();},_0x516950),this[_0x3eeb4b(0x1f8)]+=0x1;}[_0x3589bd(0x16b)](_0x4c0f84,_0xffb462){var _0x51db3a=_0x3589bd;const {cmd:_0xa890f3}=_0xffb462;_0xa890f3===F[_0x51db3a(0x24d)]&&!this['_socketReady']&&(_0x4c0f84[_0x51db3a(0x3a2)]=_0xffb462[_0x51db3a(0x221)]['memberID'],this[_0x51db3a(0x1ab)][_0x51db3a(0x226)](_0x4c0f84),this[_0x51db3a(0x39e)]['next'](Te[_0x51db3a(0x2cc)]),this['_socketReady']=!0x0,this[_0x51db3a(0x2c5)]=null),_0xa890f3===F[_0x51db3a(0xcc)]&&this[_0x51db3a(0x274)](),this[_0x51db3a(0x1ce)]();}[_0x3589bd(0x1ce)](){var _0x35ce9f=_0x3589bd,_0x2f0fc;this[_0x35ce9f(0x35b)](),this['_sendHeartbeatTimer']=setTimeout(()=>this[_0x35ce9f(0x218)](),(_0x2f0fc=this['_configService'][_0x35ce9f(0x17d)](yn))!=null?_0x2f0fc:Nn);}['_sendHeartbeat'](){var _0x1ec8f4=_0x3589bd;this['_socket'][_0x1ec8f4(0x32d)]({'cmd':F[_0x1ec8f4(0xcc)]}),this[_0x1ec8f4(0x37e)]();}[_0x3589bd(0x37e)](){var _0x314f30=_0x3589bd,_0x246d24;this[_0x314f30(0x160)]=setTimeout(()=>this['_onConnectionFailed'](),(_0x246d24=this['_configService'][_0x314f30(0x17d)](Si))!=null?_0x246d24:Ei);}[_0x3589bd(0x35b)](){var _0x3a7bd9=_0x3589bd;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x3a7bd9(0x225)]),this[_0x3a7bd9(0x225)]=null);}['_clearTimeoutTimer'](){var _0x2ecdde=_0x3589bd;this[_0x2ecdde(0x160)]!=null&&(clearTimeout(this[_0x2ecdde(0x160)]),this[_0x2ecdde(0x160)]=null);}};Le=er([ge(0x0,_0x350123(_0x5aaee8)),ge(0x1,_0x400db2),ge(0x2,_0x59f592),ge(0x3,Ci),ge(0x4,_0x350123(_0x385ac4)),ge(0x5,_0x350123(pe)),ge(0x6,_0x2f86e3(Mn))],Le);const V=[];for(let n=0x0;n<0x100;++n)V[_0x3589bd(0x17a)]((n+0x100)['toString'](0x10)[_0x3589bd(0x16a)](0x1));function tr(_0x1424cc,_0x1b7c84=0x0){var _0x57d2c2=_0x3589bd;return(V[_0x1424cc[_0x1b7c84+0x0]]+V[_0x1424cc[_0x1b7c84+0x1]]+V[_0x1424cc[_0x1b7c84+0x2]]+V[_0x1424cc[_0x1b7c84+0x3]]+'-'+V[_0x1424cc[_0x1b7c84+0x4]]+V[_0x1424cc[_0x1b7c84+0x5]]+'-'+V[_0x1424cc[_0x1b7c84+0x6]]+V[_0x1424cc[_0x1b7c84+0x7]]+'-'+V[_0x1424cc[_0x1b7c84+0x8]]+V[_0x1424cc[_0x1b7c84+0x9]]+'-'+V[_0x1424cc[_0x1b7c84+0xa]]+V[_0x1424cc[_0x1b7c84+0xb]]+V[_0x1424cc[_0x1b7c84+0xc]]+V[_0x1424cc[_0x1b7c84+0xd]]+V[_0x1424cc[_0x1b7c84+0xe]]+V[_0x1424cc[_0x1b7c84+0xf]])[_0x57d2c2(0x368)]();}let ut;const ir=new Uint8Array(0x10);function nr(){var _0x4d0d47=_0x3589bd;if(!ut){if(typeof crypto>'u'||!crypto[_0x4d0d47(0x112)])throw new Error(_0x4d0d47(0x293));ut=crypto[_0x4d0d47(0x112)][_0x4d0d47(0x272)](crypto);}return ut(ir);}const rr=typeof crypto<'u'&&crypto['randomUUID']&&crypto[_0x3589bd(0x22e)][_0x3589bd(0x272)](crypto),qt={'randomUUID':rr};function sr(_0x4a6ece,_0x1f1e96,_0x68a915){var _0x5515b7=_0x3589bd,_0x290e48,_0x3d9aab,_0x5da2cf;if(qt[_0x5515b7(0x22e)]&&!_0x4a6ece)return qt[_0x5515b7(0x22e)]();_0x4a6ece=_0x4a6ece||{};const _0xf2325f=(_0x5da2cf=(_0x3d9aab=_0x4a6ece[_0x5515b7(0xa1)])!=null?_0x3d9aab:(_0x290e48=_0x4a6ece[_0x5515b7(0x36e)])==null?void 0x0:_0x290e48[_0x5515b7(0x282)](_0x4a6ece))!=null?_0x5da2cf:nr();if(_0xf2325f[_0x5515b7(0x2f2)]<0x10)throw new Error('Random\x20bytes\x20length\x20must\x20be\x20>=\x2016');return _0xf2325f[0x6]=_0xf2325f[0x6]&0xf|0x40,_0xf2325f[0x8]=_0xf2325f[0x8]&0x3f|0x80,tr(_0xf2325f);}const J=_0x1890dd(_0x3589bd(0xf8));function so(_0x39673b){var _0xc229df=_0x3589bd;return _0xc229df(0x2e9)+_0x39673b;}var or=Object[_0x3589bd(0x2f6)],ar=Object[_0x3589bd(0x38f)],cr=(_0x24a173,_0x31375b,_0x466bf3,_0x5a9aa5)=>{var _0x5f0272=_0x3589bd;for(var _0x3243f5=_0x5a9aa5>0x1?void 0x0:_0x5a9aa5?ar(_0x31375b,_0x466bf3):_0x31375b,_0x566b7b=_0x24a173[_0x5f0272(0x2f2)]-0x1,_0xbc46e9;_0x566b7b>=0x0;_0x566b7b--)(_0xbc46e9=_0x24a173[_0x566b7b])&&(_0x3243f5=(_0x5a9aa5?_0xbc46e9(_0x31375b,_0x466bf3,_0x3243f5):_0xbc46e9(_0x3243f5))||_0x3243f5);return _0x5a9aa5&&_0x3243f5&&or(_0x31375b,_0x466bf3,_0x3243f5),_0x3243f5;},dt=(_0x2daa8f,_0x392466)=>(_0x2b8203,_0x4c7fcb)=>_0x392466(_0x2b8203,_0x4c7fcb,_0x2daa8f);function hr(_0x2de8b1){var _0x47c441=_0x3589bd;const {unitID:_0xc805da,mutations:_0x46d3f6}=_0x2de8b1;return{'unitId':_0xc805da,'subUnitId':_0x46d3f6[0x0][_0x47c441(0x290)]['subUnitId']};}let it=class{constructor(_0x4c1f5,_0x3c15f5,_0x57be51){var _0x3cd8bd=_0x3589bd;this[_0x3cd8bd(0x399)]=_0x4c1f5,this[_0x3cd8bd(0x2c4)]=_0x3c15f5,this['_instanceService']=_0x57be51;}[_0x3589bd(0x308)](_0x5d670b){var _0x185a9a=_0x3589bd,_0x3bacbf,_0x18fe47,_0x4a29d0,_0x3cedfb;const _0x15a36b=this[_0x185a9a(0x399)][_0x185a9a(0x1c6)](_0x1f6654),{unitId:_0x2ff54a,subUnitId:_0x524730}=hr(_0x5d670b),_0x32b60c=_0x15a36b==null?void 0x0:_0x15a36b[_0x185a9a(0x25b)](_0x2ff54a)[_0x185a9a(0x284)](),_0x402a77=(_0x18fe47=(_0x3bacbf=this[_0x185a9a(0x1da)][_0x185a9a(0x36b)](_0x2ff54a))==null?void 0x0:_0x3bacbf['getActiveSheet']())==null?void 0x0:_0x18fe47[_0x185a9a(0x364)]();if(_0x32b60c[_0x185a9a(0x2f2)]===0x0||!_0x2ff54a||!_0x524730)return;const _0xb2647=[{'id':_0x5f854['id'],'params':{'unitId':_0x2ff54a,'subUnitId':_0x402a77,'selections':_0x238363['deepClone'](_0x32b60c)}}],_0x203897=this[_0x185a9a(0x2c4)][_0x185a9a(0x147)](_0x5d670b,_0xb2647);if(!_0x19b84b(_0x203897))throw _0x203897[_0x185a9a(0xc2)];const _0x2d0698=(_0x3cedfb=(_0x4a29d0=_0x203897[_0x185a9a(0x2d3)][0x0])==null?void 0x0:_0x4a29d0[_0x185a9a(0x290)])==null?void 0x0:_0x3cedfb[_0x185a9a(0xaa)];if(Array[_0x185a9a(0x250)](_0x2d0698)&&_0x2d0698['length']){if(_0x2d0698[_0x185a9a(0x2f2)]===_0xb2647[0x0][_0x185a9a(0x290)][_0x185a9a(0xaa)]['length']&&_0x2d0698[_0x185a9a(0xec)]((_0x3a97ef,_0x573048)=>_0x175b66['equals'](_0x3a97ef[_0x185a9a(0x1e9)],_0xb2647[0x0]['params'][_0x185a9a(0xaa)][_0x573048][_0x185a9a(0x1e9)])))return;this[_0x185a9a(0x399)]['get'](_0x28eba8)['executeCommand'](_0x5f854['id'],{'unitId':_0x2ff54a,'subUnitId':_0x402a77,'selections':_0x2d0698});}}};it=cr([dt(0x0,_0x350123(_0x5aaee8)),dt(0x1,_0x37175a),dt(0x2,_0x7d7fce)],it);const ht=_0x1890dd(_0x3589bd(0xc7));var bi=(_0x147481=>(_0x147481[_0x147481[_0x3589bd(0x30b)]=0x0]=_0x3589bd(0x30b),_0x147481[_0x147481[_0x3589bd(0x345)]=0x1]=_0x3589bd(0x345),_0x147481))(bi||{});const _r=new Set([_0x341edb['id']]);function zt(_0x36ad41,_0x1718df,_0x57e1cc,_0x1e02db,_0x1ef57f){var _0x2196dc=_0x3589bd,_0x2c9b6f,_0x874e1f,_0x1e5f66,_0x3af5bb;const _0x214a35=[];for(const _0x290e57 of _0x36ad41)if(_r[_0x2196dc(0x1c8)](_0x290e57['id'])){if(_0x214a35[_0x2196dc(0x2f2)]>0x0)break;_0x214a35['push'](_0x290e57);break;}else _0x214a35[_0x2196dc(0x17a)](_0x290e57);const _0x20bc91=(_0x874e1f=(_0x2c9b6f=_0x1ef57f[_0x2196dc(0x2fc)]())==null?void 0x0:_0x2c9b6f[_0x2196dc(0xa8)])!=null?_0x874e1f:_0x2196dc(0xe3),_0x4a2d44=(_0x3af5bb=(_0x1e5f66=_0x1ef57f[_0x2196dc(0x2fc)]())==null?void 0x0:_0x1e5f66[_0x2196dc(0x3a2)])!=null?_0x3af5bb:'unknown';return{'changeset':{'unitID':_0x1718df,'type':_0xdc4f28(_0x57e1cc[_0x2196dc(0x1a8)](_0x1718df)),'baseRev':_0x1e02db[_0x2196dc(0x1ba)](_0x1718df),'revision':0x0,'userID':_0x20bc91,'memberID':_0x4a2d44,'mutations':_0x214a35},'pendingMutations':_0x36ad41[_0x2196dc(0x16a)](_0x214a35[_0x2196dc(0x2f2)])};}function lr(_0x52c28d,_0x430437,_0x278c6d,_0x3682b6,_0x290a3c){var _0xcfed5f=_0x3589bd,_0x2ebe64,_0x590725,_0x71b434,_0x996d92;const _0x38f948=[_0x52c28d['reduce']((_0x464561,_0x2b52fc)=>{var _0x50b4e4=_0x2984,_0x36dddb;const {id:_0xb24dbe}=_0x464561,{id:_0x44d063,type:_0x3c5c98}=_0x2b52fc,_0xa23be7=(_0x36dddb=_0x464561['params'])!=null?_0x36dddb:{'actions':null},_0x789cb2=_0x2b52fc[_0x50b4e4(0x290)];if(_0xb24dbe&&_0xb24dbe!==_0x44d063)throw new Error(_0x50b4e4(0xb9)+_0xb24dbe+'\x20-\x20'+_0x44d063+'.');return{..._0x464561,'id':_0x44d063,'type':_0x3c5c98,'params':{'unitId':_0x789cb2[_0x50b4e4(0x11f)],'textRanges':_0x789cb2[_0x50b4e4(0x2b5)],'actions':_0x5b9438['compose'](_0xa23be7[_0x50b4e4(0x3b4)],_0x789cb2[_0x50b4e4(0x3b4)])}};},{})],_0x45ab62=(_0x590725=(_0x2ebe64=_0x290a3c[_0xcfed5f(0x2fc)]())==null?void 0x0:_0x2ebe64['userID'])!=null?_0x590725:_0xcfed5f(0xe3),_0x4563fe=(_0x996d92=(_0x71b434=_0x290a3c[_0xcfed5f(0x2fc)]())==null?void 0x0:_0x71b434[_0xcfed5f(0x3a2)])!=null?_0x996d92:_0xcfed5f(0xe3);return{'changeset':{'unitID':_0x430437,'type':_0xdc4f28(_0x278c6d[_0xcfed5f(0x1a8)](_0x430437)),'baseRev':_0x3682b6[_0xcfed5f(0x1ba)](_0x430437),'revision':0x0,'userID':_0x45ab62,'memberID':_0x4563fe,'mutations':_0x38f948},'pendingMutations':[]};}function Oi(_0x90fbf2,_0x3aad6b){var _0x213c5d=_0x3589bd;const _0x319151=new _0x4e03ef(0x1);return setTimeout(()=>_0x319151['next'](_0x3aad6b),_0x90fbf2),_0x319151[_0x213c5d(0x1bf)]()[_0x213c5d(0x304)](_0x202c5f(0x1));}const ur={'id':_0x3a0a0b['id'],'type':_0x46d075[_0x3589bd(0x36f)],'params':{}};var dr=Object[_0x3589bd(0x2f6)],fr=Object[_0x3589bd(0x38f)],Re=(_0x354b20,_0x4ba040,_0x4e26a3,_0x18e60f)=>{var _0x26ed35=_0x3589bd;for(var _0x5b075b=_0x18e60f>0x1?void 0x0:_0x18e60f?fr(_0x4ba040,_0x4e26a3):_0x4ba040,_0x5b80cc=_0x354b20[_0x26ed35(0x2f2)]-0x1,_0x2f58ca;_0x5b80cc>=0x0;_0x5b80cc--)(_0x2f58ca=_0x354b20[_0x5b80cc])&&(_0x5b075b=(_0x18e60f?_0x2f58ca(_0x4ba040,_0x4e26a3,_0x5b075b):_0x2f58ca(_0x5b075b))||_0x5b075b);return _0x18e60f&&_0x5b075b&&dr(_0x4ba040,_0x4e26a3,_0x5b075b),_0x5b075b;},A=(_0x2e33a5,_0xc7d929)=>(_0x322308,_0x5d2f52)=>_0xc7d929(_0x322308,_0x5d2f52,_0x2e33a5),yi=(_0x132b12=>(_0x132b12[_0x3589bd(0x2dd)]=_0x3589bd(0x23f),_0x132b12[_0x3589bd(0x3a5)]=_0x3589bd(0x129),_0x132b12[_0x3589bd(0x17b)]='pending',_0x132b12[_0x3589bd(0x224)]='awaiting',_0x132b12[_0x3589bd(0x367)]=_0x3589bd(0x150),_0x132b12[_0x3589bd(0xad)]=_0x3589bd(0x199),_0x132b12[_0x3589bd(0x152)]='conflict',_0x132b12[_0x3589bd(0x181)]='offline',_0x132b12))(yi||{});const Ni=0xea60;class be{constructor(_0x29da87,_0x3dbfc7,_0x1b5783,_0x125138,_0x2c65d4,_0x1b07a2,_0x4a4c06,_0x167ef4,_0x10bb79){var _0x5bbf9f=_0x3589bd;N(this,_0x5bbf9f(0x30a),null),N(this,_0x5bbf9f(0x1f9),[]),(this[_0x5bbf9f(0xc1)]=_0x29da87,this[_0x5bbf9f(0x2a7)]=_0x3dbfc7,this[_0x5bbf9f(0x28b)]=_0x2c65d4,this[_0x5bbf9f(0x17e)]=_0x1b07a2,this[_0x5bbf9f(0x38c)]=_0x4a4c06,this[_0x5bbf9f(0x2bb)]=_0x167ef4,this[_0x5bbf9f(0x3a1)]=_0x10bb79,this[_0x5bbf9f(0x30a)]=_0x1b5783,this['_pendingMutations']=_0x125138);}['_checkMissing'](_0x370866){var _0x4cfe25=_0x3589bd;const _0x2fdcee=this[_0x4cfe25(0x2bb)]['getCurrentRevOfUnit'](this[_0x4cfe25(0xc1)]);return _0x370866[_0x4cfe25(0x173)]>_0x2fdcee+0x1?(this[_0x4cfe25(0x28b)][_0x4cfe25(0x1a3)]({'from':_0x2fdcee,'to':_0x370866[_0x4cfe25(0x173)]-0x1}),!0x0):!0x1;}[_0x3589bd(0x2d6)](_0x442916){var _0x25d78c=_0x3589bd;this[_0x25d78c(0x38c)][_0x25d78c(0x395)](this[_0x25d78c(0xc1)],_0x442916);}['_transformSelections'](_0x1709c7){var _0x1ab358=_0x3589bd,_0x2dfe49,_0x5e5b62;(_0x5e5b62=(_0x2dfe49=this[_0x1ab358(0x28b)])[_0x1ab358(0xe4)])==null||_0x5e5b62[_0x1ab358(0x282)](_0x2dfe49,_0x1709c7);}[_0x3589bd(0x2a0)](_0x82897a){var _0x3beca5=_0x3589bd,_0x531f03,_0x4b5bbc;return(_0x4b5bbc=(_0x531f03=this['_handler'])['onTransformIME'])==null?void 0x0:_0x4b5bbc[_0x3beca5(0x282)](_0x531f03,_0x82897a);}[_0x3589bd(0x1ae)](_0x15d2d4){var _0x5d100e=_0x3589bd,_0x371a35,_0x2bd1b2;return(_0x2bd1b2=(_0x371a35=this[_0x5d100e(0x28b)])[_0x5d100e(0x163)])==null?void 0x0:_0x2bd1b2[_0x5d100e(0x282)](_0x371a35,_0x15d2d4);}['_transformRemoteChangesetByIMECache'](_0x204ef3){var _0x2c9082=_0x3589bd,_0x3519e5,_0xd8212b,_0x41ffc7;return(_0x41ffc7=(_0xd8212b=(_0x3519e5=this['_handler'])[_0x2c9082(0x29e)])==null?void 0x0:_0xd8212b[_0x2c9082(0x282)](_0x3519e5,_0x204ef3))!=null?_0x41ffc7:_0x204ef3;}[_0x3589bd(0xdb)](_0x3a4348){var _0x37af55,_0x554cf8,_0x4c4c36;return(_0x4c4c36=(_0x554cf8=(_0x37af55=this['_handler'])['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0x554cf8['call'](_0x37af55,_0x3a4348))!=null?_0x4c4c36:_0x3a4348;}[_0x3589bd(0xcb)](_0x1aeb79){var _0x2daf07=_0x3589bd,_0x412b3c,_0x7fb0ab;if(this['type']===Q[_0x2daf07(0x338)]){const {unitID:_0x8935b4,mutations:_0x29cb96,memberID:_0x57754a}=_0x1aeb79,_0x2d1655=_0x29cb96[0x0][_0x2daf07(0x290)][_0x2daf07(0x2b5)];Array[_0x2daf07(0x250)](_0x2d1655)&&_0x2d1655[_0x2daf07(0x2f2)]>0x0&&((_0x7fb0ab=(_0x412b3c=this[_0x2daf07(0x28b)])[_0x2daf07(0x148)])==null||_0x7fb0ab[_0x2daf07(0x282)](_0x412b3c,{'unitID':_0x8935b4,'memberID':_0x57754a,'textRanges':_0x2d1655}));}}['_updateLocalCache'](){var _0x4eeca8=_0x3589bd,_0x3113b6;(_0x3113b6=this[_0x4eeca8(0x3a1)])==null||_0x3113b6['updateOfflineData'](this['unitID'],this['type'],this['_awaitingChangeset'],this[_0x4eeca8(0x1f9)]);}[_0x3589bd(0x16d)](){var _0x53e189=_0x3589bd;return this[_0x53e189(0x2bb)][_0x53e189(0x1ba)](this[_0x53e189(0xc1)]);}[_0x3589bd(0x13e)](){var _0x5e7cf4=_0x3589bd;this[_0x5e7cf4(0x2bb)][_0x5e7cf4(0xd2)](this[_0x5e7cf4(0xc1)]);}[_0x3589bd(0x214)](_0x5272b4){var _0x2efc2d=_0x3589bd,_0x112f91;let _0x328985=this[_0x2efc2d(0x128)](_0x5272b4);_0x328985=this[_0x2efc2d(0xdb)](_0x328985);const _0x35a7ea=_0x321e6c(_0x328985[_0x2efc2d(0x317)],this[_0x2efc2d(0x17e)],{'fromCollab':!0x0});if(!_0x35a7ea['result'])throw _0x35a7ea[_0x2efc2d(0xc2)]instanceof Error?_0x35a7ea[_0x2efc2d(0xc2)]:new Error((_0x112f91=_0x35a7ea[_0x2efc2d(0xc2)])!=null?_0x112f91:_0x2efc2d(0x2b1));this[_0x2efc2d(0x2a0)](_0x328985),this[_0x2efc2d(0x1ae)](_0x328985),this['_transformUndoredo'](_0x5272b4),this[_0x2efc2d(0x2b4)](_0x328985),this['_syncEditingCollabCursor'](_0x328985),this[_0x2efc2d(0x13e)]();}}let De=class extends be{constructor(_0x46cd3b,_0x1634eb,_0xe27d08,_0x5e3a77,_0x178f9c,_0xe9db46,_0x304695,_0x8137ba,_0x28171b,_0x1f7c0d){var _0x36cde2=_0x3589bd;super(_0x46cd3b,_0x1634eb,null,[],_0xe27d08,_0x304695,_0xe9db46,_0x5e3a77,_0x1f7c0d),N(this,_0x36cde2(0x374),_0x36cde2(0x129)),(this[_0x36cde2(0x399)]=_0x178f9c,this[_0x36cde2(0x136)]=_0x8137ba,this[_0x36cde2(0x2c4)]=_0x28171b,this[_0x36cde2(0x37d)]=_0x1f7c0d);}[_0x3589bd(0x223)](_0x4ca4fe){var _0x32085c=_0x3589bd;const _0x4b3307=this[_0x32085c(0x399)][_0x32085c(0x2cf)](oe,this[_0x32085c(0xc1)],this[_0x32085c(0x2a7)],[_0x4ca4fe],this[_0x32085c(0x28b)]);return _0x4b3307[_0x32085c(0x2cb)](),_0x4b3307[_0x32085c(0x2e6)](),_0x4b3307;}[_0x3589bd(0x217)](_0x19e7cd){var _0x1dd1d0=_0x3589bd;if(this[_0x1dd1d0(0x326)](_0x19e7cd))return this['_injector']['createInstance'](te,this[_0x1dd1d0(0xc1)],this[_0x1dd1d0(0x2a7)],null,[],null,[_0x19e7cd],this[_0x1dd1d0(0x28b)]);try{const _0x331563=this[_0x1dd1d0(0x2c4)]['transformMutationsWithChangeset'](_0x19e7cd,[ur]);if(_0x19b84b(_0x331563)){const {c1Prime:_0x1362cf}=_0x331563;return this[_0x1dd1d0(0x214)](_0x1362cf),this;}throw _0x331563[_0x1dd1d0(0xc2)];}catch(_0x5dd013){return this[_0x1dd1d0(0x136)][_0x1dd1d0(0xc2)](_0x5dd013),this['_onConflict'](!0x1);}}[_0x3589bd(0x109)](_0x529bee){var _0x564238=_0x3589bd;return this[_0x564238(0x399)][_0x564238(0x2cf)](de,this[_0x564238(0xc1)],this[_0x564238(0x2a7)],null,[],this[_0x564238(0x28b)],_0x529bee);}['onRemoteAck'](){var _0x1146b6=_0x3589bd;throw new Error(_0x1146b6(0x1c2));}[_0x3589bd(0x1d6)](){var _0x41876c=_0x3589bd;throw new Error(_0x41876c(0x301));}[_0x3589bd(0x1e7)](){return this;}[_0x3589bd(0x1c7)](){var _0x400432=_0x3589bd;return this[_0x400432(0x399)][_0x400432(0x2cf)](fe,this[_0x400432(0xc1)],this['type'],null,[],this[_0x400432(0x28b)]);}[_0x3589bd(0x372)](){return this;}['resend'](){throw new Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}['fetchMiss'](){var _0x42912a=_0x3589bd;const _0x4db17a=this['_revisionService'][_0x42912a(0x1ba)](this[_0x42912a(0xc1)]);return this[_0x42912a(0x28b)][_0x42912a(0x1a3)]({'from':_0x4db17a,'to':0x0}),this['_injector']['createInstance'](te,this[_0x42912a(0xc1)],this[_0x42912a(0x2a7)],null,[],null,[],this[_0x42912a(0x28b)]);}};De=Re([A(0x3,_0x350123(_0x5e230d)),A(0x4,_0x350123(_0x5aaee8)),A(0x5,_0xb22a67),A(0x6,_0x28eba8),A(0x7,_0x400db2),A(0x8,_0x37175a),A(0x9,_0x2f86e3(J))],De);let oe=class extends be{constructor(_0x5164cb,_0x361c19,_0x952a81,_0x310f50,_0x4bb060,_0x42aef7,_0x22351f,_0xf0cf25,_0x542f4f,_0x57dbd7,_0x55399b,_0x1bb7a8,_0x3f86a1,_0x2063ae){var _0x10b441=_0x3589bd;super(_0x5164cb,_0x361c19,null,_0x952a81,_0x310f50,_0x542f4f,_0x3f86a1,_0x42aef7,_0x2063ae),N(this,'status','pending'),N(this,_0x10b441(0x35c),null),N(this,_0x10b441(0x37b),null),(this[_0x10b441(0x399)]=_0x4bb060,this[_0x10b441(0x1d5)]=_0x22351f,this[_0x10b441(0x136)]=_0xf0cf25,this['_configService']=_0x57dbd7,this[_0x10b441(0x2c4)]=_0x55399b,this[_0x10b441(0x25d)]=_0x1bb7a8);}[_0x3589bd(0x223)](_0x1e3f6f){var _0x191f07=_0x3589bd;return this[_0x191f07(0x1f9)][_0x191f07(0x17a)](_0x1e3f6f),this[_0x191f07(0x2e6)](),this;}[_0x3589bd(0x217)](_0x89acf0){var _0x4b096f=_0x3589bd;if(this[_0x4b096f(0x326)](_0x89acf0))return this[_0x4b096f(0x208)](),this[_0x4b096f(0x399)][_0x4b096f(0x2cf)](te,this[_0x4b096f(0xc1)],this['type'],null,this[_0x4b096f(0x1f9)],null,[_0x89acf0],this[_0x4b096f(0x28b)]);try{const _0x29b895=this[_0x4b096f(0x2c4)][_0x4b096f(0x147)](_0x89acf0,this[_0x4b096f(0x1f9)]);if(_0x19b84b(_0x29b895)){const {c1Prime:_0x5a3131,m2Prime:_0x14e7f0}=_0x29b895;this[_0x4b096f(0x214)](_0x5a3131);const _0x5cd83d=this[_0x4b096f(0x399)]['createInstance'](oe,this['unitID'],this[_0x4b096f(0x2a7)],_0x14e7f0,this[_0x4b096f(0x28b)]);this[_0x4b096f(0x208)]();const _0x2d44ee=new Date()['getTime'](),_0x47d016=this['_scheduleCompleteTimestamp']?Math[_0x4b096f(0xe8)](this['_scheduleCompleteTimestamp']-_0x2d44ee,0x0):this[_0x4b096f(0xe0)]();return _0x5cd83d[_0x4b096f(0x2cb)](_0x47d016),_0x5cd83d;}throw _0x29b895[_0x4b096f(0xc2)];}catch(_0x53705a){return this['_logService'][_0x4b096f(0xc2)](_0x53705a),this[_0x4b096f(0x109)](!0x1);}}[_0x3589bd(0x2e3)](){var _0x1db2fe=_0x3589bd;throw new Error(_0x1db2fe(0x1be));}['onRemoteRej'](){var _0x38f357=_0x3589bd;throw new Error(_0x38f357(0x175));}[_0x3589bd(0x1e7)](){return this;}['toggleOffline'](){var _0x346fc3=_0x3589bd;return this[_0x346fc3(0x208)](),this[_0x346fc3(0x399)][_0x346fc3(0x2cf)](fe,this[_0x346fc3(0xc1)],this[_0x346fc3(0x2a7)],null,this['_pendingMutations'],this[_0x346fc3(0x28b)]);}[_0x3589bd(0x372)](){return this;}[_0x3589bd(0x2cb)](_0x4b44ee){var _0x2668e7=_0x3589bd;const _0x3e59a5=_0x4b44ee!=null?_0x4b44ee:this[_0x2668e7(0xe0)]();this['_scheduleCompleteTimestamp']=new Date()[_0x2668e7(0x12e)]()+_0x3e59a5,this[_0x2668e7(0x37b)]=setTimeout(()=>{var _0x502dbf=_0x2668e7;this[_0x502dbf(0x208)]();let _0x5a501a=null;switch(this[_0x502dbf(0x2a7)]){case Q[_0x502dbf(0x38e)]:{_0x5a501a=zt(this['_pendingMutations'],this[_0x502dbf(0xc1)],this[_0x502dbf(0x25d)],this[_0x502dbf(0x2bb)],this[_0x502dbf(0x1d5)]);break;}case Q['UNIVER_DOC']:{this[_0x502dbf(0x1f9)][_0x502dbf(0xec)](_0x2f2a43=>_0x2f2a43['id']===_0x2a54d5['id'])?_0x5a501a=lr(this[_0x502dbf(0x1f9)],this['unitID'],this[_0x502dbf(0x25d)],this[_0x502dbf(0x2bb)],this[_0x502dbf(0x1d5)]):_0x5a501a=zt(this[_0x502dbf(0x1f9)],this['unitID'],this['_univerInstanceService'],this['_revisionService'],this['_memberService']);break;}default:throw new Error(_0x502dbf(0x1dd)+this[_0x502dbf(0x2a7)]+'\x20in\x20_schedule.');}const {changeset:_0x1b5c74,pendingMutations:_0x133992}=_0x5a501a;this[_0x502dbf(0x28b)][_0x502dbf(0x28e)](_0x1b5c74);const _0xdde85=_0x133992[_0x502dbf(0x2f2)]?this[_0x502dbf(0x399)][_0x502dbf(0x2cf)](ae,this[_0x502dbf(0xc1)],this[_0x502dbf(0x2a7)],_0x1b5c74,_0x133992,this[_0x502dbf(0x28b)],void 0x0):this[_0x502dbf(0x399)][_0x502dbf(0x2cf)](ue,this[_0x502dbf(0xc1)],this[_0x502dbf(0x2a7)],_0x1b5c74,this[_0x502dbf(0x28b)]);_0xdde85[_0x502dbf(0x2e6)](),this[_0x502dbf(0x28b)][_0x502dbf(0x202)](this,_0xdde85);},_0x3e59a5);}['_getSendChangesetTimeout'](){var _0x47435b=_0x3589bd,_0x221ac1;const _0x5a5aee=this[_0x47435b(0x3b0)][_0x47435b(0x17d)](q);return(_0x221ac1=_0x5a5aee==null?void 0x0:_0x5a5aee[_0x47435b(0xb2)])!=null?_0x221ac1:Cn;}['resend'](){var _0x4d1153=_0x3589bd;throw new Error(_0x4d1153(0xab));}[_0x3589bd(0x208)](){var _0x215951=_0x3589bd;this[_0x215951(0x37b)]!=null&&(clearTimeout(this[_0x215951(0x37b)]),this[_0x215951(0x37b)]=null);}['_onConflict'](_0x404a68){var _0x573e06=_0x3589bd;return this[_0x573e06(0x208)](),this[_0x573e06(0x399)][_0x573e06(0x2cf)](de,this[_0x573e06(0xc1)],this[_0x573e06(0x2a7)],null,this['_pendingMutations'],this[_0x573e06(0x28b)],_0x404a68);}};oe=Re([A(0x4,_0x350123(_0x5aaee8)),A(0x5,_0x350123(_0x5e230d)),A(0x6,_0x350123(xe)),A(0x7,_0x400db2),A(0x8,_0x28eba8),A(0x9,_0x59f592),A(0xa,_0x37175a),A(0xb,_0x7d7fce),A(0xc,_0xb22a67),A(0xd,_0x2f86e3(J))],oe);let ue=class extends be{constructor(_0x56c0ee,_0x1d2fd6,_0x371965,_0x32103e,_0x2174b6,_0x42edc0,_0x370e93,_0x4a055d,_0x496e0e,_0xd1c99c,_0xd0b723){var _0x52ae0f=_0x3589bd;super(_0x56c0ee,_0x1d2fd6,_0x371965,[],_0x32103e,_0x370e93,_0xd1c99c,_0x42edc0,_0xd0b723),N(this,_0x52ae0f(0x374),'awaiting'),N(this,_0x52ae0f(0x243),0x0),N(this,_0x52ae0f(0x2bc)),N(this,'_sender'),(this[_0x52ae0f(0x399)]=_0x2174b6,this[_0x52ae0f(0x136)]=_0x4a055d,this['_transformService']=_0x496e0e);}['appendMutation'](_0x591a05){var _0x5fc04e=_0x3589bd;this['_clearScheduledTask']();const _0x403c44=this[_0x5fc04e(0x399)][_0x5fc04e(0x2cf)](ae,this['unitID'],this[_0x5fc04e(0x2a7)],this['_awaitingChangeset'],[_0x591a05],this[_0x5fc04e(0x28b)],this['_resendTimer']);return _0x403c44[_0x5fc04e(0x2e6)](),_0x403c44;}[_0x3589bd(0x217)](_0x5462c9){var _0x500460=_0x3589bd;if(this[_0x500460(0x326)](_0x5462c9))return this[_0x500460(0x208)](),this[_0x500460(0x399)][_0x500460(0x2cf)](te,this[_0x500460(0xc1)],this[_0x500460(0x2a7)],this['_awaitingChangeset'],[],null,[_0x5462c9],this[_0x500460(0x28b)]);try{const _0x56ea3f=this[_0x500460(0x2c4)][_0x500460(0x172)]([_0x5462c9],[this['_awaitingChangeset']],!0x1);if(_0x570ed4(_0x56ea3f)){const {c1Prime:_0xa5690c,c2Prime:_0x2415e7}=_0x56ea3f;this[_0x500460(0x214)](_0xa5690c[0x0]),_0x2415e7[0x0][_0x500460(0x102)]=this[_0x500460(0x16d)](),this[_0x500460(0x208)]();const _0x3d375b=this['_injector'][_0x500460(0x2cf)](ue,this[_0x500460(0xc1)],this[_0x500460(0x2a7)],_0x2415e7[0x0],this[_0x500460(0x28b)]);return _0x3d375b[_0x500460(0x2e6)](),_0x3d375b;}return this[_0x500460(0x109)](!0x1);}catch(_0x570d78){return this['_logService'][_0x500460(0xc2)](_0x570d78),this['_onConflict'](!0x1);}}[_0x3589bd(0x2e3)](_0x1b41ee){var _0x3c8985=_0x3589bd;this[_0x3c8985(0x208)]();const _0x2db7ef=this[_0x3c8985(0x2bb)]['getCurrentRevOfUnit'](this[_0x3c8985(0xc1)]);if(_0x1b41ee['revision']<_0x2db7ef-0x1)return this;if(this[_0x3c8985(0x326)](_0x1b41ee))return this[_0x3c8985(0x399)]['createInstance'](te,this[_0x3c8985(0xc1)],this[_0x3c8985(0x2a7)],null,[],this['_awaitingChangeset'],[],this['_handler']);this[_0x3c8985(0x13e)]();const _0x2d04c7=this[_0x3c8985(0x399)][_0x3c8985(0x2cf)](De,this[_0x3c8985(0xc1)],this['type'],this[_0x3c8985(0x28b)]);return _0x2d04c7[_0x3c8985(0x2e6)](),_0x2d04c7;}[_0x3589bd(0x1d6)](_0x302589){var _0x5558c5=_0x3589bd;return this[_0x5558c5(0x109)](!!(_0x302589!=null&&_0x302589[_0x5558c5(0x25f)]));}[_0x3589bd(0x1e7)](_0x2c31c7){var _0x295a9e=_0x3589bd;return this['_resendTimeout']>Ni?this[_0x295a9e(0x1c7)]():(this[_0x295a9e(0x2bc)]=Oi(this['_resendTimeout'],{'timeout':this[_0x295a9e(0x243)],'reqId':_0x2c31c7[_0x295a9e(0x1c3)]}),this[_0x295a9e(0x14f)]=this[_0x295a9e(0x2bc)]['subscribe'](({reqId:_0xc41ab0,timeout:_0x35f120})=>{var _0x290ec8=_0x295a9e;this[_0x290ec8(0x2e8)](_0xc41ab0,_0x35f120);}),this);}['toggleOffline'](){var _0x325b3e=_0x3589bd;return this[_0x325b3e(0x208)](),this['_injector'][_0x325b3e(0x2cf)](fe,this['unitID'],this[_0x325b3e(0x2a7)],this[_0x325b3e(0x30a)],[],this[_0x325b3e(0x28b)]);}[_0x3589bd(0x372)](){return this;}[_0x3589bd(0x139)](){var _0x4f70b4=_0x3589bd;this[_0x4f70b4(0x28b)]['onSendChangeset'](this[_0x4f70b4(0x30a)]);}[_0x3589bd(0x109)](_0x1ed45e){var _0x6a655c=_0x3589bd;return this[_0x6a655c(0x208)](),this['_injector'][_0x6a655c(0x2cf)](de,this[_0x6a655c(0xc1)],this[_0x6a655c(0x2a7)],this[_0x6a655c(0x30a)],[],this[_0x6a655c(0x28b)],_0x1ed45e);}[_0x3589bd(0x2e8)](_0x1d9d13,_0x162453){var _0x3d7dcd=_0x3589bd,_0x4b80b7;_0x1d9d13===((_0x4b80b7=this[_0x3d7dcd(0x30a)])==null?void 0x0:_0x4b80b7[_0x3d7dcd(0x1c3)])&&(this[_0x3d7dcd(0x139)](),this[_0x3d7dcd(0x243)]=_0x162453===0x0?0x3e8:_0x162453*0x2);}[_0x3589bd(0x208)](){var _0x29ebf1=_0x3589bd,_0x5f21e9;(_0x5f21e9=this[_0x29ebf1(0x14f)])==null||_0x5f21e9[_0x29ebf1(0x330)](),this[_0x29ebf1(0x243)]=0x0;}};ue=Re([A(0x4,_0x350123(_0x5aaee8)),A(0x5,_0x350123(_0x5e230d)),A(0x6,_0x28eba8),A(0x7,_0x400db2),A(0x8,_0x37175a),A(0x9,_0xb22a67),A(0xa,_0x2f86e3(J))],ue);let ae=class extends be{constructor(_0x5522,_0x2faa8b,_0x13667f,_0x3e7500,_0x17488c,_0xe64894,_0xfea649,_0x151ef2,_0x4f75d6,_0x2737f2,_0x10e0bb,_0x51b6db,_0xef25bd){var _0x2460c8=_0x3589bd;super(_0x5522,_0x2faa8b,_0x13667f,_0x3e7500,_0x17488c,_0x4f75d6,_0x51b6db,_0x151ef2,_0xef25bd),N(this,_0x2460c8(0x374),_0x2460c8(0x150)),N(this,'_resendTimeout',0x0),N(this,_0x2460c8(0x2bc)),N(this,_0x2460c8(0x14f)),(this[_0x2460c8(0x399)]=_0xfea649,this[_0x2460c8(0x136)]=_0x2737f2,this[_0x2460c8(0x2c4)]=_0x10e0bb,this[_0x2460c8(0x37d)]=_0xef25bd,_0xe64894&&(this[_0x2460c8(0x2bc)]=_0xe64894,this['_sender']=this['_resendTimer']['subscribe'](({reqId:_0x2621dd,timeout:_0x40a56b})=>{this['_resendWithTimeout'](_0x2621dd,_0x40a56b);})));}[_0x3589bd(0x223)](_0x35adea){var _0x4914ed=_0x3589bd;return this['_pendingMutations'][_0x4914ed(0x17a)](_0x35adea),this;}[_0x3589bd(0x217)](_0x50d000){var _0x2fb3f9=_0x3589bd;if(this['_checkMissing'](_0x50d000))return this['_clearScheduledTask'](),this[_0x2fb3f9(0x399)][_0x2fb3f9(0x2cf)](te,this[_0x2fb3f9(0xc1)],this[_0x2fb3f9(0x2a7)],this[_0x2fb3f9(0x30a)],this[_0x2fb3f9(0x1f9)],null,[_0x50d000],this[_0x2fb3f9(0x28b)]);try{const _0x30ce66=this['_transformService'][_0x2fb3f9(0x172)]([_0x50d000],[this[_0x2fb3f9(0x30a)]],!0x1);if(_0x570ed4(_0x30ce66)){const {c1Prime:_0x59ef34,c2Prime:_0x3cb098}=_0x30ce66,_0x3edf2b=this[_0x2fb3f9(0x2c4)][_0x2fb3f9(0x147)](_0x59ef34[0x0],this[_0x2fb3f9(0x1f9)]);if(_0x19b84b(_0x3edf2b)){const {c1Prime:_0x4756dc,m2Prime:_0x1883fe}=_0x3edf2b;return this['_executeRemoteChangeset'](_0x4756dc),_0x3cb098[0x0][_0x2fb3f9(0x102)]=this['_getCurrentRevision'](),this[_0x2fb3f9(0x208)](),this[_0x2fb3f9(0x399)][_0x2fb3f9(0x2cf)](ae,this['unitID'],this[_0x2fb3f9(0x2a7)],_0x3cb098[0x0],_0x1883fe,this['_handler'],void 0x0);}throw _0x3edf2b[_0x2fb3f9(0xc2)];}throw _0x30ce66[_0x2fb3f9(0xc2)];}catch(_0x498c0a){return this[_0x2fb3f9(0x136)][_0x2fb3f9(0xc2)](_0x498c0a),this[_0x2fb3f9(0x109)](!0x1);}}[_0x3589bd(0x2e3)](_0x358aad){var _0x100180=_0x3589bd;if(this[_0x100180(0x208)](),this[_0x100180(0x326)](_0x358aad))return this[_0x100180(0x399)][_0x100180(0x2cf)](te,this['unitID'],this[_0x100180(0x2a7)],null,this[_0x100180(0x1f9)],this[_0x100180(0x30a)],[],this[_0x100180(0x28b)]);this['_incrementRevisionNumber']();const _0x5977f2=this[_0x100180(0x399)][_0x100180(0x2cf)](oe,this[_0x100180(0xc1)],this[_0x100180(0x2a7)],this['_pendingMutations'],this['_handler']);return _0x5977f2[_0x100180(0x2cb)](),_0x5977f2[_0x100180(0x2e6)](),_0x5977f2;}[_0x3589bd(0x1d6)](_0x52e1eb){var _0x226080=_0x3589bd;return this[_0x226080(0x109)](!!(_0x52e1eb!=null&&_0x52e1eb[_0x226080(0x25f)]));}[_0x3589bd(0x1e7)](_0x1802cd){var _0x2c3a37=_0x3589bd;return this[_0x2c3a37(0x243)]>Ni?this[_0x2c3a37(0x1c7)]():(this[_0x2c3a37(0x2bc)]=Oi(this[_0x2c3a37(0x243)],{'timeout':this[_0x2c3a37(0x243)],'reqId':_0x1802cd['reqId']}),this[_0x2c3a37(0x14f)]=this[_0x2c3a37(0x2bc)][_0x2c3a37(0x320)](({reqId:_0x326a0e,timeout:_0x4eaa72})=>{var _0x385dda=_0x2c3a37;this[_0x385dda(0x2e8)](_0x326a0e,_0x4eaa72);}),this);}['toggleOffline'](){var _0x5b58b5=_0x3589bd;return this['_clearScheduledTask'](),this[_0x5b58b5(0x399)][_0x5b58b5(0x2cf)](fe,this[_0x5b58b5(0xc1)],this[_0x5b58b5(0x2a7)],this[_0x5b58b5(0x30a)],this[_0x5b58b5(0x1f9)],this[_0x5b58b5(0x28b)]);}[_0x3589bd(0x372)](){return this;}[_0x3589bd(0x139)](){var _0x2a0648=_0x3589bd;this[_0x2a0648(0x28b)][_0x2a0648(0x28e)](this['_awaitingChangeset']);}[_0x3589bd(0x109)](_0x90bdf4){var _0x5ab170=_0x3589bd;return this[_0x5ab170(0x208)](),this['_injector']['createInstance'](de,this[_0x5ab170(0xc1)],this[_0x5ab170(0x2a7)],null,this['_pendingMutations'],this[_0x5ab170(0x28b)],_0x90bdf4);}[_0x3589bd(0x2e8)](_0x5c3039,_0x883ff3){var _0x39f27a=_0x3589bd,_0x2860ef;_0x5c3039===((_0x2860ef=this[_0x39f27a(0x30a)])==null?void 0x0:_0x2860ef[_0x39f27a(0x1c3)])&&(this[_0x39f27a(0x139)](),this['_resendTimeout']=_0x883ff3===0x0?0x3e8:_0x883ff3*0x2);}[_0x3589bd(0x208)](){var _0xdda9b2=_0x3589bd,_0x1b5ab6;(_0x1b5ab6=this[_0xdda9b2(0x14f)])==null||_0x1b5ab6[_0xdda9b2(0x330)](),this['_resendTimeout']=0x0;}};ae=Re([A(0x6,_0x350123(_0x5aaee8)),A(0x7,_0x350123(_0x5e230d)),A(0x8,_0x28eba8),A(0x9,_0x400db2),A(0xa,_0x37175a),A(0xb,_0xb22a67),A(0xc,_0x2f86e3(J))],ae);let de=class extends be{constructor(_0x1e9f38,_0x1b9202,_0x1f5d42,_0x2438cb,_0x2b77c0,_0x32d1a3=!0x1,_0x1cc04b,_0x349499,_0x265221,_0x109ae3,_0x35071a,_0x25a445,_0xba1c8b){var _0x353af7=_0x3589bd;super(_0x1e9f38,_0x1b9202,_0x1f5d42,_0x2438cb,_0x2b77c0,_0x349499,_0x265221,_0x109ae3,_0xba1c8b),N(this,'status',_0x353af7(0x2b6)),(this[_0x353af7(0x321)]=_0x32d1a3,this['_permissionService']=_0x1cc04b,this['_localeService']=_0x35071a,this[_0x353af7(0x332)]=_0x25a445,this[_0x353af7(0x37d)]=_0xba1c8b,this['_showConflictNotification'](),this['_clearLocalCache'](),this[_0x353af7(0x2d4)]());}['appendMutation'](){return this;}['onRemoteChangeset'](){return this;}[_0x3589bd(0x2e3)](){return this;}[_0x3589bd(0x1d6)](){return this;}[_0x3589bd(0x1e7)](){return this;}[_0x3589bd(0x1c7)](){return this;}[_0x3589bd(0x372)](){return this;}[_0x3589bd(0x139)](){var _0x513361=_0x3589bd;throw new Error(_0x513361(0x325));}[_0x3589bd(0x3a6)](){var _0x467a2d=_0x3589bd,_0x9c774d;(_0x9c774d=this[_0x467a2d(0x3a1)])==null||_0x9c774d[_0x467a2d(0x107)](this[_0x467a2d(0xc1)],this[_0x467a2d(0x2a7)],null,[]);}['_showConflictNotification'](){var _0x203ad2=_0x3589bd;this[_0x203ad2(0x321)]?this[_0x203ad2(0x332)]['emitEvent']({'id':se[_0x203ad2(0x126)]}):this[_0x203ad2(0x332)]['emitEvent']({'id':se[_0x203ad2(0x152)]});}[_0x3589bd(0x2d4)](){var _0x58cdf1=_0x3589bd;this[_0x58cdf1(0x1ff)][_0x58cdf1(0x305)](new _0x535f4c(this[_0x58cdf1(0xc1)])['id'],!0x1);}};de=Re([A(0x6,_0x350123(_0x51f4d4)),A(0x7,_0x28eba8),A(0x8,_0xb22a67),A(0x9,_0x350123(_0x5e230d)),A(0xa,_0x350123(_0x2720f2)),A(0xb,_0x350123(pe)),A(0xc,_0x2f86e3(J))],de);let fe=class extends be{constructor(_0x3a953b,_0x39ed84,_0x16846f,_0x469309,_0x244827,_0x34574a,_0x47fca1,_0x33e76e,_0x234699,_0x4aa57c){var _0x4ff0ea=_0x3589bd;super(_0x3a953b,_0x39ed84,_0x16846f,_0x469309,_0x244827,_0x33e76e,_0x234699,_0x47fca1,_0x4aa57c),N(this,_0x4ff0ea(0x374),_0x4ff0ea(0x2fa)),this['_injector']=_0x34574a;}[_0x3589bd(0x223)](_0x1cef68){var _0x18ec39=_0x3589bd;return this[_0x18ec39(0x1f9)]['push'](_0x1cef68),this[_0x18ec39(0x2e6)](),this;}[_0x3589bd(0x217)](_0x521029){throw new Error('[OfflineState]:\x20received\x20changeset.');}[_0x3589bd(0x2e3)](){var _0xdb90d5=_0x3589bd;throw new Error(_0xdb90d5(0x24f));}[_0x3589bd(0x1d6)](){var _0x38eb9f=_0x3589bd;throw new Error(_0x38eb9f(0x29c));}[_0x3589bd(0x1e7)](){return this;}[_0x3589bd(0x1c7)](){return this;}['toggleOnline'](){var _0x10d033=_0x3589bd;const {_injector:_0x21c73a,_pendingMutations:_0x17f0a8,_awaitingChangeset:_0x521522,unitID:_0x53f10d,_handler:_0x155901,type:_0x5a5342}=this,_0x4f1307=Di(_0x21c73a,_0x53f10d,_0x5a5342,_0x521522,_0x17f0a8,_0x155901);return _0x4f1307 instanceof oe?_0x4f1307['_schedule']():(_0x4f1307 instanceof ae||_0x4f1307 instanceof ue)&&_0x4f1307[_0x10d033(0x139)](),_0x4f1307;}[_0x3589bd(0x139)](){var _0x1b25e2=_0x3589bd;throw new Error(_0x1b25e2(0x2bd));}};fe=Re([A(0x5,_0x350123(_0x5aaee8)),A(0x6,_0x350123(_0x5e230d)),A(0x7,_0x28eba8),A(0x8,_0xb22a67),A(0x9,_0x2f86e3(J))],fe);let te=class extends be{constructor(_0x222aaf,_0x3dbb1b,_0x58628a,_0x50455b,_0x291bc6,_0x7e7dea,_0x5bfc9c,_0x438e67,_0x21b1a4,_0x1338b7,_0x3e8fce,_0x464b65,_0x2ce532,_0x222ede){var _0x56a8be=_0x3589bd;super(_0x222aaf,_0x3dbb1b,_0x58628a,_0x50455b,_0x5bfc9c,_0x3e8fce,_0x464b65,_0x21b1a4,_0x222ede),N(this,_0x56a8be(0x374),_0x56a8be(0x199)),(this[_0x56a8be(0x193)]=_0x291bc6,this['_queuedRemoteChangesets']=_0x7e7dea,this[_0x56a8be(0x399)]=_0x438e67,this['_logService']=_0x1338b7,this[_0x56a8be(0x2c4)]=_0x2ce532,this[_0x56a8be(0x37d)]=_0x222ede);}[_0x3589bd(0x207)](_0xd00ca6){var _0x5b3c66=_0x3589bd;try{const _0x149fed=[..._0xd00ca6,...this['_queuedRemoteChangesets']],_0x79afea=[this[_0x5b3c66(0x30a)]||this[_0x5b3c66(0x193)]][_0x5b3c66(0x2ff)](_0x197842=>!!_0x197842);let _0x1c3bbb,_0x46d6d7;if(_0x79afea['length']){const _0x18a6a3=this[_0x5b3c66(0x2c4)][_0x5b3c66(0x172)](_0x149fed,_0x79afea,!0x1);if(!_0x570ed4(_0x18a6a3))throw _0x18a6a3[_0x5b3c66(0xc2)];_0x1c3bbb=_0x18a6a3['c1Prime'],_0x46d6d7=_0x18a6a3[_0x5b3c66(0x253)];}else _0x1c3bbb=_0x149fed,_0x46d6d7=[];let _0x3308e6=this[_0x5b3c66(0x1f9)];_0x1c3bbb[_0x5b3c66(0x327)](_0x2c98e9=>{var _0x13ee3c=_0x5b3c66;let _0x1aeccf;if(_0x3308e6[_0x13ee3c(0x2f2)]){const _0x4fbdfe=this[_0x13ee3c(0x2c4)]['transformMutationsWithChangeset'](_0x2c98e9,_0x3308e6);if(!_0x19b84b(_0x4fbdfe))throw _0x4fbdfe[_0x13ee3c(0xc2)];_0x1aeccf=_0x4fbdfe['c1Prime'],_0x3308e6=_0x4fbdfe[_0x13ee3c(0x2d3)];}else _0x1aeccf=_0x2c98e9;this[_0x13ee3c(0x214)](_0x1aeccf);}),this['_acknowledgedAwaitingChangeset']&&this['_incrementRevisionNumber'](),this[_0x5b3c66(0x30a)]&&_0x46d6d7['length']&&(_0x46d6d7[0x0][_0x5b3c66(0x102)]=this['_getCurrentRevision']());let _0x196d3d;if(this[_0x5b3c66(0x30a)]&&_0x3308e6[_0x5b3c66(0x2f2)]!==0x0)_0x196d3d=this[_0x5b3c66(0x399)][_0x5b3c66(0x2cf)](ae,this[_0x5b3c66(0xc1)],this[_0x5b3c66(0x2a7)],_0x46d6d7[0x0],_0x3308e6,this[_0x5b3c66(0x28b)],void 0x0);else{if(this[_0x5b3c66(0x30a)]&&_0x3308e6['length']===0x0)_0x46d6d7[0x0][_0x5b3c66(0x102)]=this[_0x5b3c66(0x16d)](),_0x196d3d=this[_0x5b3c66(0x399)][_0x5b3c66(0x2cf)](ue,this[_0x5b3c66(0xc1)],this[_0x5b3c66(0x2a7)],_0x46d6d7[0x0],this[_0x5b3c66(0x28b)]);else{if(_0x3308e6['length']!==0x0){const _0x2cbefb=this['_injector']['createInstance'](oe,this['unitID'],this[_0x5b3c66(0x2a7)],_0x3308e6,this[_0x5b3c66(0x28b)]);_0x2cbefb['_schedule'](),_0x196d3d=_0x2cbefb;}else _0x196d3d=this[_0x5b3c66(0x399)]['createInstance'](De,this[_0x5b3c66(0xc1)],this[_0x5b3c66(0x2a7)],this[_0x5b3c66(0x28b)]);}}return _0x196d3d['_updateLocalCache'](),_0x196d3d;}catch(_0x2af080){return this['_logService']['error'](_0x5b3c66(0x1f2),_0x5b3c66(0xf9),_0x2af080),this[_0x5b3c66(0x399)]['createInstance'](de,this[_0x5b3c66(0xc1)],this['type'],this[_0x5b3c66(0x30a)],this[_0x5b3c66(0x1f9)],this[_0x5b3c66(0x28b)],!0x1);}}[_0x3589bd(0x139)](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x3589bd(0x223)](_0x3be283){var _0x34d5f6=_0x3589bd;return this[_0x34d5f6(0x1f9)][_0x34d5f6(0x17a)](_0x3be283),this;}[_0x3589bd(0x217)](_0x1fdf31){var _0x4492f1=_0x3589bd;return this[_0x4492f1(0x353)][_0x4492f1(0x17a)](_0x1fdf31),this;}[_0x3589bd(0x2e3)](_0x3aceb2){var _0x5c6f09=_0x3589bd;if(this[_0x5c6f09(0x30a)])return this['_acknowledgedAwaitingChangeset']=this[_0x5c6f09(0x30a)],this[_0x5c6f09(0x30a)]=null,this;throw new Error(_0x5c6f09(0x1ad));}[_0x3589bd(0x1d6)](_0x2f367f){var _0x1262db=_0x3589bd;return this[_0x1262db(0x109)](!!(_0x2f367f!=null&&_0x2f367f['isPermissionRej']));}[_0x3589bd(0x1e7)](){return this;}[_0x3589bd(0x1c7)](){var _0x4ec19d=_0x3589bd;return this[_0x4ec19d(0x399)][_0x4ec19d(0x2cf)](fe,this[_0x4ec19d(0xc1)],this['type'],this['_awaitingChangeset'],this[_0x4ec19d(0x1f9)],this[_0x4ec19d(0x28b)]);}[_0x3589bd(0x372)](){return this;}[_0x3589bd(0x109)](_0x4094f9){var _0x51ddf3=_0x3589bd;return this[_0x51ddf3(0x399)][_0x51ddf3(0x2cf)](de,this[_0x51ddf3(0xc1)],this[_0x51ddf3(0x2a7)],this[_0x51ddf3(0x30a)],this[_0x51ddf3(0x1f9)],this[_0x51ddf3(0x28b)],_0x4094f9);}};te=Re([A(0x7,_0x350123(_0x5aaee8)),A(0x8,_0x350123(_0x5e230d)),A(0x9,_0x400db2),A(0xa,_0x28eba8),A(0xb,_0xb22a67),A(0xc,_0x37175a),A(0xd,_0x2f86e3(J))],te);function Di(_0x3df7c8,_0x8791e9,_0x5f4440,_0x319c94,_0x58225a,_0x5bc164){var _0x2622d6=_0x3589bd;return _0x319c94&&_0x58225a[_0x2622d6(0x2f2)]?_0x3df7c8[_0x2622d6(0x2cf)](ae,_0x8791e9,_0x5f4440,_0x319c94,_0x58225a,_0x5bc164,void 0x0):_0x319c94?_0x3df7c8[_0x2622d6(0x2cf)](ue,_0x8791e9,_0x5f4440,_0x319c94,_0x5bc164):_0x58225a[_0x2622d6(0x2f2)]?_0x3df7c8['createInstance'](oe,_0x8791e9,_0x5f4440,_0x58225a,_0x5bc164):_0x3df7c8[_0x2622d6(0x2cf)](De,_0x8791e9,_0x5f4440,_0x5bc164);}var vr=Object[_0x3589bd(0x2f6)],pr=Object[_0x3589bd(0x38f)],Lt=(_0x8de52e,_0x2b66bd,_0x2d6a4f,_0x528dac)=>{var _0x39700b=_0x3589bd;for(var _0xa971=_0x528dac>0x1?void 0x0:_0x528dac?pr(_0x2b66bd,_0x2d6a4f):_0x2b66bd,_0x44ff57=_0x8de52e[_0x39700b(0x2f2)]-0x1,_0x4b72d9;_0x44ff57>=0x0;_0x44ff57--)(_0x4b72d9=_0x8de52e[_0x44ff57])&&(_0xa971=(_0x528dac?_0x4b72d9(_0x2b66bd,_0x2d6a4f,_0xa971):_0x4b72d9(_0xa971))||_0xa971);return _0x528dac&&_0xa971&&vr(_0x2b66bd,_0x2d6a4f,_0xa971),_0xa971;},k=(_0x109ce0,_0x111937)=>(_0x300e29,_0x33b3ec)=>_0x111937(_0x300e29,_0x33b3ec,_0x109ce0);let nt=class extends _0x37e0d6{constructor(_0x453ebd,_0x4bd8a1,_0x281054,_0x10bdb0,_0x5b194a,_0x5aa5cc,_0x2f6ff6,_0x406123,_0x168ff3,_0x2f033f,_0x1b04db,_0x17c89c,_0x438207){var _0xebf61b=_0x3589bd;super(),N(this,_0xebf61b(0x115),new _0x3bd22c(null)),N(this,_0xebf61b(0x296),this['_state$'][_0xebf61b(0x1bf)]()),N(this,_0xebf61b(0x35d)),N(this,_0xebf61b(0x2d7),!0x1),N(this,_0xebf61b(0x288),''),N(this,_0xebf61b(0x11c),0x0),N(this,'status$',this['state$'][_0xebf61b(0x304)](_0x4e4c51(_0x1d44d2=>_0x1d44d2?_0x1d44d2[_0xebf61b(0x374)]:yi[_0xebf61b(0x181)]),_0x212837(0x1))),N(this,'_transitionLocked',!0x1),N(this,_0xebf61b(0x302),[]),(this['unitID']=_0x453ebd,this[_0xebf61b(0x1b3)]=_0x4bd8a1,this[_0xebf61b(0xaf)]=_0x281054,this[_0xebf61b(0x399)]=_0x10bdb0,this['_compressMutationService']=_0x5b194a,this['_localeService']=_0x5aa5cc,this[_0xebf61b(0x2bb)]=_0x2f6ff6,this[_0xebf61b(0x275)]=_0x406123,this[_0xebf61b(0x136)]=_0x168ff3,this['_commandService']=_0x2f033f,this['_permissionService']=_0x1b04db,this[_0xebf61b(0x26b)]=_0x17c89c,this[_0xebf61b(0x3a1)]=_0x438207);}get[_0x3589bd(0x398)](){var _0x2d6f62=_0x3589bd;return this[_0x2d6f62(0x35d)];}async[_0x3589bd(0x13d)](){var _0x449236=_0x3589bd;if(this[_0x449236(0x398)])throw new Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x449236(0x29a)]();}[_0x3589bd(0x337)](){var _0x56c466=_0x3589bd;return this[_0x56c466(0x2d7)]=!0x0,_0x117ca3(()=>{var _0x237765=_0x56c466;this[_0x237765(0x2d7)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0x3589bd(0x2c6)](_0x8adbaa){var _0x355273=_0x3589bd;this[_0x355273(0x20f)](_0x8adbaa);}[_0x3589bd(0xdf)](_0x52c645){var _0x3a4466=_0x3589bd;this[_0x3a4466(0x35d)]=_0x52c645,this[_0x3a4466(0x115)][_0x3a4466(0x226)](_0x52c645);}async[_0x3589bd(0x29a)](){var _0x1dc420=_0x3589bd,_0xf9ddac;this[_0x1dc420(0xdf)](await this[_0x1dc420(0x323)]()),this[_0x1dc420(0x26b)]&&((_0xf9ddac=this[_0x1dc420(0x26b)])==null||_0xf9ddac[_0x1dc420(0x29f)](this[_0x1dc420(0xc1)]),this[_0x1dc420(0x145)](this[_0x1dc420(0x26b)][_0x1dc420(0x116)](this['unitID'])[_0x1dc420(0x320)](_0x498549=>{var _0x4f7413=_0x1dc420;this['_logService'][_0x4f7413(0x346)](_0x4f7413(0x2c9),'editing\x20status\x20changed\x20to',_0x498549),_0x498549===bi[_0x4f7413(0x345)]?(this[_0x4f7413(0x275)][_0x4f7413(0x19e)]({'id':se['OTHER_CLIENT_EDITING']}),this[_0x4f7413(0x1ff)][_0x4f7413(0x305)](new _0x535f4c(this[_0x4f7413(0xc1)])['id'],!0x1),this['_permissionService'][_0x4f7413(0x27b)](!0x1)):(this[_0x4f7413(0x1ff)][_0x4f7413(0x305)](new _0x535f4c(this['unitID'])['id'],!0x0),this[_0x4f7413(0x1ff)][_0x4f7413(0x27b)](!0x0));})));let _0x43e4f0=!0x1;return this[_0x1dc420(0x145)](this[_0x1dc420(0x1b3)]['sessionStatus$'][_0x1dc420(0x320)](_0x86fd2a=>{var _0x573bcc=_0x1dc420;_0x86fd2a===Te[_0x573bcc(0x2cc)]?this[_0x573bcc(0x39d)](_0x43e4f0):_0x86fd2a===Te['OFFLINE']&&(_0x43e4f0=!0x0,this[_0x573bcc(0x108)]());})),this[_0x1dc420(0x145)](this[_0x1dc420(0x1b3)][_0x1dc420(0xbc)]['subscribe'](_0x389ee6=>{var _0x549e7d=_0x1dc420;try{switch(_0x389ee6['eventID']){case _0x4a0013['NEW_CHANGESETS']:{this[_0x549e7d(0x37a)](_0x2d78b0(_0x389ee6[_0x549e7d(0x221)]));break;}case _0x4a0013[_0x549e7d(0x2af)]:{this[_0x549e7d(0x2fd)](_0x389ee6[_0x549e7d(0x221)]);break;}case _0x4a0013['CHANGESET_REJ']:{this['_onRemoteRejected']();break;}case _0x4a0013[_0x549e7d(0x39c)]:{this[_0x549e7d(0x357)](_0x389ee6[_0x549e7d(0x221)]);break;}case _0x4a0013[_0x549e7d(0x1fc)]:{this[_0x549e7d(0xc3)](_0x389ee6[_0x549e7d(0x221)]['changesets'][_0x549e7d(0x2a4)](_0x531cef=>_0x2d78b0(_0x531cef)));break;}case _0x4a0013[_0x549e7d(0x30e)]:{this[_0x549e7d(0x355)]({'isPermissionRej':!0x0});break;}case _0x4a0013[_0x549e7d(0xd3)]:break;}}catch(_0xb8fe7d){throw console[_0x549e7d(0xc2)](_0x549e7d(0x270),_0xb8fe7d),_0xb8fe7d;}})),this[_0x1dc420(0x35d)];}[_0x3589bd(0x315)](){this['_transitionLocked']=!0x1;}[_0x3589bd(0xe7)](){var _0xd9ee39=_0x3589bd;if(this['_transitionLocked'])throw new Error(_0xd9ee39(0xba));this[_0xd9ee39(0x281)]=!0x0;}[_0x3589bd(0x20f)](_0x185cb7){var _0x1cf2cf=_0x3589bd;this['_lockTransition'](),this[_0x1cf2cf(0xdf)](this[_0x1cf2cf(0x35d)][_0x1cf2cf(0x223)](_0x185cb7)),this[_0x1cf2cf(0x315)]();}[_0x3589bd(0x37a)](_0x34677c){var _0x43e4eb=_0x3589bd;if(!(_0x34677c[_0x43e4eb(0x173)]<=this[_0x43e4eb(0x2bb)][_0x43e4eb(0x1ba)](this[_0x43e4eb(0xc1)]))){if(this[_0x43e4eb(0x2d7)]){this[_0x43e4eb(0x302)][_0x43e4eb(0x17a)](_0x34677c);return;}this[_0x43e4eb(0x2da)](_0x34677c);}}['_exhaustRemoteChangesetQueue'](){var _0x26d8d9=_0x3589bd;this[_0x26d8d9(0x302)]['forEach'](_0x219890=>this[_0x26d8d9(0x2da)](_0x219890)),this['_remoteChangesetQueue']=[];}[_0x3589bd(0x2da)](_0x23d413){var _0x23dfdb=_0x3589bd;const _0x4a8947=this[_0x23dfdb(0x1f6)][_0x23dfdb(0xb6)][_0x23dfdb(0x2d0)](this[_0x23dfdb(0x1f6)][_0x23dfdb(0xb6)]['getInterceptPoints']()[_0x23dfdb(0xe5)])(_0x23d413[_0x23dfdb(0x317)],null)||_0x23d413['mutations'],_0x203577={..._0x23d413,'mutations':_0x4a8947};this[_0x23dfdb(0xe7)](),this[_0x23dfdb(0xdf)](this[_0x23dfdb(0x35d)][_0x23dfdb(0x217)](_0x203577)),this[_0x23dfdb(0x315)]();}['_onRemoteACK'](_0x247b49){var _0x17c0e0=_0x3589bd;this['_lockTransition'](),this[_0x17c0e0(0xdf)](this[_0x17c0e0(0x35d)][_0x17c0e0(0x2e3)](_0x247b49)),this['_unlockTransition']();}[_0x3589bd(0x355)](_0x577f39){var _0x3224f0=_0x3589bd;this['_lockTransition'](),this[_0x3224f0(0xdf)](this[_0x3224f0(0x35d)][_0x3224f0(0x1d6)](_0x577f39)),this[_0x3224f0(0x315)]();}['_onRemoteRetry'](_0x45d419){var _0x28c974=_0x3589bd;this['_lockTransition'](),this[_0x28c974(0xdf)](this['_state']['onRemoteRetry'](_0x45d419)),this[_0x28c974(0x315)]();}[_0x3589bd(0xc3)](_0x49cbc6){var _0x30da70=_0x3589bd;if(!(this[_0x30da70(0x35d)]instanceof te))throw new TypeError(_0x30da70(0x32a));const _0x1353ae=_0x49cbc6['map'](_0x2220be=>{var _0x9b576d=_0x30da70;const _0x37cf23=this[_0x9b576d(0x1f6)][_0x9b576d(0xb6)][_0x9b576d(0x2d0)](this[_0x9b576d(0x1f6)][_0x9b576d(0xb6)][_0x9b576d(0x36d)]()[_0x9b576d(0xe5)])(_0x2220be[_0x9b576d(0x317)],null)||_0x2220be[_0x9b576d(0x317)];return{..._0x2220be,'mutations':_0x37cf23};});this[_0x30da70(0xe7)](),this[_0x30da70(0xdf)](this[_0x30da70(0x35d)][_0x30da70(0x207)](_0x1353ae)),this[_0x30da70(0x315)]();}[_0x3589bd(0x108)](){var _0x302e1d=_0x3589bd;this[_0x302e1d(0xe7)](),this[_0x302e1d(0xdf)](this[_0x302e1d(0x35d)][_0x302e1d(0x1c7)]()),this[_0x302e1d(0x315)]();}['_toggleOnline'](_0x58a857=!0x1){var _0x304094=_0x3589bd;this[_0x304094(0xe7)](),this['_updateState'](this[_0x304094(0x35d)]['toggleOnline']()),this[_0x304094(0x315)]();const _0xe47ac1=this['_state'];_0x58a857&&_0xe47ac1 instanceof De&&(this[_0x304094(0xe7)](),this[_0x304094(0xdf)](_0xe47ac1[_0x304094(0x22b)]()),this[_0x304094(0x315)]());}async[_0x3589bd(0x323)](){return new Promise(_0x1a3794=>{var _0x526dc1=_0x2984;this['session'][_0x526dc1(0x215)][_0x526dc1(0x304)](_0x202c5f(0x1))[_0x526dc1(0x320)](async _0x4ec63b=>{var _0x4000e9=_0x526dc1;_0x1a3794(await this['_createInitialStateImpl'](_0x4ec63b===Te[_0x4000e9(0x2cc)]));});});}[_0x3589bd(0x138)](){var _0x2ea3e0=_0x3589bd;const _0x2095cd=this[_0x2ea3e0(0xc1)];return{'onStateChange':(_0x5e8ffe,_0x3757cb)=>{var _0x5eb7dd=_0x2ea3e0;if(_0x5e8ffe!==this[_0x5eb7dd(0x35d)])throw new Error(_0x5eb7dd(0x17f)+_0x5e8ffe[_0x5eb7dd(0x374)]+_0x5eb7dd(0x1fd)+_0x3757cb[_0x5eb7dd(0x374)]+_0x5eb7dd(0x298)+this['_state'][_0x5eb7dd(0x374)]);this[_0x5eb7dd(0xdf)](_0x3757cb);},'onSendChangeset':_0x42800f=>{var _0x17f0fd=_0x2ea3e0;_0x42800f[_0x17f0fd(0x336)]||(_0x42800f[_0x17f0fd(0x336)]=this['_changesetSessionId'],_0x42800f[_0x17f0fd(0x1c3)]=++this[_0x17f0fd(0x11c)]);const _0x29b19f={'eventID':_0x4a0013[_0x17f0fd(0x397)],'data':{'unitID':_0x42800f[_0x17f0fd(0xc1)],'unitType':this[_0x17f0fd(0xaf)],'changeset':_0x42800f,'memberID':this[_0x17f0fd(0x1b3)][_0x17f0fd(0x2ce)]()}};this['session'][_0x17f0fd(0x32d)](_0x29b19f,this[_0x17f0fd(0xc1)]);},'onMissingChangesets':({from:_0x126d03,to:_0x3326a7})=>{var _0x9f8fd8=_0x2ea3e0;this['_logService'][_0x9f8fd8(0x346)](_0x9f8fd8(0x2c9),_0x9f8fd8(0x140)+_0x126d03+_0x9f8fd8(0x33f)+_0x3326a7);const _0x119b5b={'eventID':_0x4a0013['FETCH_MISSING'],'data':{'unitID':_0x2095cd,'unitType':this[_0x9f8fd8(0xaf)],'from':_0x126d03,'to':_0x3326a7}};this[_0x9f8fd8(0x1b3)][_0x9f8fd8(0x32d)](_0x119b5b,this[_0x9f8fd8(0xc1)]);}};}async['_createInitialStateImpl'](_0x134b93){var _0x5d400e=_0x3589bd,_0x24e20b,_0x4c2451,_0x37545f;const _0x546ef7=await((_0x24e20b=this[_0x5d400e(0x3a1)])==null?void 0x0:_0x24e20b[_0x5d400e(0x101)](this[_0x5d400e(0xc1)])),_0x3fce53=(_0x4c2451=_0x546ef7==null?void 0x0:_0x546ef7['mutations'])!=null?_0x4c2451:[],_0x27d81c=(_0x37545f=_0x546ef7==null?void 0x0:_0x546ef7[_0x5d400e(0x12d)])!=null?_0x37545f:null,_0x4d0e6e=!!(_0x27d81c!=null&&_0x27d81c[_0x5d400e(0x336)])&&!!(_0x27d81c!=null&&_0x27d81c[_0x5d400e(0x1c3)]);this[_0x5d400e(0x288)]=_0x4d0e6e?_0x27d81c['sid']:sr(),this[_0x5d400e(0x11c)]=_0x4d0e6e?_0x27d81c[_0x5d400e(0x1c3)]:0x0;const _0x20a8c2=this['unitID'];try{this[_0x5d400e(0x311)](_0x27d81c,_0x3fce53);}catch(_0x5c29d2){this['_logService'][_0x5d400e(0xc2)](_0x5c29d2);}const _0x547f66=this[_0x5d400e(0x138)]();if(_0x134b93){const _0xbd7669=Di(this[_0x5d400e(0x399)],_0x20a8c2,this[_0x5d400e(0xaf)],_0x27d81c,_0x3fce53,_0x547f66);return _0xbd7669 instanceof oe?_0xbd7669[_0x5d400e(0x2cb)]():(_0xbd7669 instanceof ae||_0xbd7669 instanceof ue)&&_0xbd7669[_0x5d400e(0x139)](),_0xbd7669;}return this[_0x5d400e(0x399)][_0x5d400e(0x2cf)](fe,_0x20a8c2,this['_type'],_0x27d81c,_0x3fce53,_0x547f66);}[_0x3589bd(0x311)](_0x15cc92,_0x3ee1b4){var _0xc03efc=_0x3589bd,_0x3c6c75,_0x2950a9;const _0x312841=this[_0xc03efc(0x1f6)]['interceptor'][_0xc03efc(0x2d0)](this[_0xc03efc(0x1f6)][_0xc03efc(0xb6)][_0xc03efc(0x36d)]()[_0xc03efc(0xe5)]);(_0x3c6c75=_0x312841((_0x15cc92==null?void 0x0:_0x15cc92[_0xc03efc(0x317)])||[],null))==null||_0x3c6c75['forEach'](_0x4b7d26=>this[_0xc03efc(0x17e)]['executeCommand'](_0x4b7d26['id'],_0x4b7d26[_0xc03efc(0x290)])),(_0x2950a9=_0x312841(_0x3ee1b4||[],null))==null||_0x2950a9[_0xc03efc(0x327)](_0x41df70=>this[_0xc03efc(0x17e)][_0xc03efc(0x111)](_0x41df70['id'],_0x41df70[_0xc03efc(0x290)]));}};nt=Lt([k(0x3,_0x350123(_0x5aaee8)),k(0x4,_0x350123(_0x308286)),k(0x5,_0x350123(_0x2720f2)),k(0x6,_0x350123(_0x5e230d)),k(0x7,_0x350123(pe)),k(0x8,_0x400db2),k(0x9,_0x28eba8),k(0xa,_0x51f4d4),k(0xb,_0x2f86e3(ht)),k(0xc,_0x2f86e3(J))],nt);let Tt=class extends nt{constructor(_0x487724,_0x5c6f8c,_0x70549b,_0x108bc7,_0x2248fd,_0x144c2f,_0x512142,_0x4e1f29,_0x27deaf,_0x48f39d,_0x1ec104,_0x47e170,_0x3be9ed){var _0x51ce47=_0x3589bd;super(_0x487724,_0x70549b,_0x5c6f8c,_0x108bc7,_0x2248fd,_0x144c2f,_0x512142,_0x4e1f29,_0x27deaf,_0x48f39d,_0x1ec104,_0x47e170,_0x3be9ed),N(this,_0x51ce47(0x26c),null),(this[_0x51ce47(0xc1)]=_0x487724,this[_0x51ce47(0x2a7)]=_0x5c6f8c);}[_0x3589bd(0x256)](_0x3f9614){var _0x349b65=_0x3589bd;this[_0x349b65(0x26c)]=_0x3f9614;}['dispose'](){var _0xc25925=_0x3589bd;this[_0xc25925(0x26c)]=null,super[_0xc25925(0xd0)]();}[_0x3589bd(0x138)](){var _0x3edc22=_0x3589bd;const _0x33fbcc=super[_0x3edc22(0x138)]();return _0x33fbcc[_0x3edc22(0xbe)]=_0x4093c1=>{var _0x2bd54a=_0x3edc22,_0x4dec45,_0x567119;return(_0x567119=(_0x4dec45=this[_0x2bd54a(0x26c)])==null?void 0x0:_0x4dec45['onTransformIME'])==null?void 0x0:_0x567119[_0x2bd54a(0x282)](_0x4dec45,_0x4093c1);},_0x33fbcc[_0x3edc22(0x163)]=_0x121604=>{var _0x6d6220=_0x3edc22,_0x3fda04,_0x1f3945;return(_0x1f3945=(_0x3fda04=this['_handlerCallback'])==null?void 0x0:_0x3fda04[_0x6d6220(0x163)])==null?void 0x0:_0x1f3945[_0x6d6220(0x282)](_0x3fda04,_0x121604);},_0x33fbcc[_0x3edc22(0xe4)]=_0x5f5351=>{var _0x14b43d=_0x3edc22,_0x4d8bbd,_0x3c4f68;return(_0x3c4f68=(_0x4d8bbd=this[_0x14b43d(0x26c)])==null?void 0x0:_0x4d8bbd[_0x14b43d(0xe4)])==null?void 0x0:_0x3c4f68[_0x14b43d(0x282)](_0x4d8bbd,_0x5f5351);},_0x33fbcc['onSyncEditingCollabCursor']=_0x11fd5b=>{var _0x2a9315=_0x3edc22,_0x347a48,_0x2db6b6;return(_0x2db6b6=(_0x347a48=this[_0x2a9315(0x26c)])==null?void 0x0:_0x347a48[_0x2a9315(0x148)])==null?void 0x0:_0x2db6b6[_0x2a9315(0x282)](_0x347a48,_0x11fd5b);},_0x33fbcc[_0x3edc22(0x29e)]=_0x5aad24=>{var _0x354162=_0x3edc22,_0x385ae2,_0x450d11,_0x3b58a3;if(!((_0x385ae2=this[_0x354162(0x26c)])!=null&&_0x385ae2[_0x354162(0x29e)]))throw new Error(_0x354162(0x24e));return(_0x3b58a3=(_0x450d11=this[_0x354162(0x26c)])==null?void 0x0:_0x450d11['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x3b58a3['call'](_0x450d11,_0x5aad24);},_0x33fbcc[_0x3edc22(0x1e3)]=_0x97d2c0=>{var _0x59b903=_0x3edc22,_0xe57be9,_0x812ca3,_0x32adc8;if(!((_0xe57be9=this[_0x59b903(0x26c)])!=null&&_0xe57be9[_0x59b903(0x1e3)]))throw new Error(_0x59b903(0x20e));return(_0x32adc8=(_0x812ca3=this[_0x59b903(0x26c)])==null?void 0x0:_0x812ca3['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0x32adc8[_0x59b903(0x282)](_0x812ca3,_0x97d2c0);},_0x33fbcc;}async[_0x3589bd(0x29a)](){var _0x1af674=_0x3589bd;const _0x1e4fdf=await super[_0x1af674(0x29a)]();return this[_0x1af674(0x145)](this[_0x1af674(0x17e)][_0x1af674(0xf3)]((_0x584ff8,_0x8bd897)=>{var _0x281798=_0x1af674;if(_0x584ff8[_0x281798(0x2a7)]!==_0x46d075[_0x281798(0x36f)]||_0x8bd897!=null&&_0x8bd897[_0x281798(0x186)]||_0x8bd897!=null&&_0x8bd897[_0x281798(0x380)]||_0x584ff8['id']===_0x2a54d5['id'])return;const _0x3fa3a2=_0x584ff8['params'];if((_0x3fa3a2==null?void 0x0:_0x3fa3a2[_0x281798(0x11f)])!==this[_0x281798(0xc1)])return;const _0xc08990=_0x584ff8,_0x368288=this[_0x281798(0x1f6)][_0x281798(0xb6)][_0x281798(0x2d0)](this[_0x281798(0x1f6)]['interceptor'][_0x281798(0x36d)]()[_0x281798(0x30c)])([_0xc08990],null)||[_0xc08990];this['_onLocalMutation'](_0x368288[0x0]);})),_0x1e4fdf;}};Tt=Lt([k(0x3,_0x350123(_0x5aaee8)),k(0x4,_0x350123(_0x308286)),k(0x5,_0x350123(_0x2720f2)),k(0x6,_0x350123(_0x5e230d)),k(0x7,_0x350123(pe)),k(0x8,_0x400db2),k(0x9,_0x28eba8),k(0xa,_0x51f4d4),k(0xb,_0x2f86e3(ht)),k(0xc,_0x2f86e3(J))],Tt);let Ct=class extends nt{constructor(_0x555ce4,_0x4c8977,_0x48440d,_0x1747e3,_0x3193d3,_0x45fa53,_0x139e79,_0x3dc846,_0x350c10,_0x10bd22,_0x7d789c,_0x215e18,_0xb445ae,_0x3f2e9c){var _0xe6cfde=_0x3589bd;super(_0x555ce4,_0x48440d,_0x4c8977,_0x1747e3,_0x3193d3,_0x45fa53,_0x139e79,_0x350c10,_0x10bd22,_0x7d789c,_0x215e18,_0xb445ae,_0x3f2e9c),this[_0xe6cfde(0xc1)]=_0x555ce4,this[_0xe6cfde(0x2a7)]=_0x4c8977,this[_0xe6cfde(0x263)]=_0x3dc846;}['_createHandler'](){var _0x2fa311=_0x3589bd;const _0x280983=super['_createHandler']();return _0x280983[_0x2fa311(0xe4)]=_0x2191b9=>this[_0x2fa311(0x263)]['transformSelections'](_0x2191b9),_0x280983;}async[_0x3589bd(0x29a)](){var _0x4e5293=_0x3589bd;const _0x446a1c=await super['_init']();return this[_0x4e5293(0x145)](this[_0x4e5293(0x17e)]['onCommandExecuted']((_0x1cb716,_0x48ffad)=>{var _0x4a610e=_0x4e5293;if(_0x1cb716[_0x4a610e(0x2a7)]!==_0x46d075[_0x4a610e(0x36f)]||_0x48ffad!=null&&_0x48ffad[_0x4a610e(0x186)]||_0x48ffad!=null&&_0x48ffad[_0x4a610e(0x380)])return;const _0x1c610f=_0x1cb716['params'];if((_0x1c610f==null?void 0x0:_0x1c610f[_0x4a610e(0x11f)])!==this[_0x4a610e(0xc1)])return;const _0x50ceda=_0x1cb716,_0x3ee0a3=this['_compressMutationService'][_0x4a610e(0xb6)][_0x4a610e(0x2d0)](this[_0x4a610e(0x1f6)][_0x4a610e(0xb6)][_0x4a610e(0x36d)]()[_0x4a610e(0x30c)])([_0x50ceda],null)||[_0x50ceda];this['_onLocalMutation'](_0x3ee0a3[0x0]);})),_0x446a1c;}};Ct=Lt([k(0x3,_0x350123(_0x5aaee8)),k(0x4,_0x350123(_0x308286)),k(0x5,_0x350123(_0x2720f2)),k(0x6,_0x350123(_0x5e230d)),k(0x7,_0x350123(it)),k(0x8,_0x350123(pe)),k(0x9,_0x400db2),k(0xa,_0x28eba8),k(0xb,_0x51f4d4),k(0xc,_0x2f86e3(ht)),k(0xd,_0x2f86e3(J))],Ct);var mr=Object[_0x3589bd(0x2f6)],gr=Object[_0x3589bd(0x38f)],Sr=(_0x2587db,_0x5502a2,_0x253e1f,_0x373bb5)=>{var _0x4db78e=_0x3589bd;for(var _0x172c5b=_0x373bb5>0x1?void 0x0:_0x373bb5?gr(_0x5502a2,_0x253e1f):_0x5502a2,_0x5c3c31=_0x2587db[_0x4db78e(0x2f2)]-0x1,_0x62d8da;_0x5c3c31>=0x0;_0x5c3c31--)(_0x62d8da=_0x2587db[_0x5c3c31])&&(_0x172c5b=(_0x373bb5?_0x62d8da(_0x5502a2,_0x253e1f,_0x172c5b):_0x62d8da(_0x172c5b))||_0x172c5b);return _0x373bb5&&_0x172c5b&&mr(_0x5502a2,_0x253e1f,_0x172c5b),_0x172c5b;},ft=(_0x2aa85d,_0x4f9960)=>(_0x57455c,_0x52ab26)=>_0x4f9960(_0x57455c,_0x52ab26,_0x2aa85d);let rt=class extends _0x37e0d6{constructor(_0x4e4393,_0xee127a,_0x59f5fc){var _0x30e233=_0x3589bd;super(),N(this,_0x30e233(0x28c),new Map()),N(this,'_entityInit$',new _0x8b1ca8()),N(this,_0x30e233(0x31a),this[_0x30e233(0xeb)][_0x30e233(0x1bf)]()),(this['_injector']=_0x4e4393,this[_0x30e233(0x1f3)]=_0xee127a,this[_0x30e233(0x25d)]=_0x59f5fc,this[_0x30e233(0x29a)]());}['dispose'](){var _0x4d6243=_0x3589bd;super[_0x4d6243(0xd0)](),this[_0x4d6243(0x28c)][_0x4d6243(0x327)](_0x3e0e39=>_0x3e0e39[_0x4d6243(0xd0)]()),this[_0x4d6243(0x28c)][_0x4d6243(0x389)]();}[_0x3589bd(0x369)](_0x4e4333){var _0x13d227;return(_0x13d227=this['_entities']['get'](_0x4e4333))!=null?_0x13d227:null;}['getCollabEntity$'](_0x10d3c6){var _0x461261=_0x3589bd;const _0x33b91b=this[_0x461261(0x369)](_0x10d3c6);return _0x33b91b?_0x484d8b(_0x33b91b):this['_entityInit$'][_0x461261(0x304)](_0x3ff271(_0x16a09b=>_0x16a09b[_0x461261(0xc1)]===_0x10d3c6));}[_0x3589bd(0x18d)](_0x5958da){var _0x16923f=_0x3589bd;return _0x5b2a09(this[_0x16923f(0x144)](_0x5958da)[_0x16923f(0x304)](_0x2010b6(()=>{})));}[_0x3589bd(0x29a)](){var _0x4a42b7=_0x3589bd;this[_0x4a42b7(0x25d)]['getTypeOfUnitAdded$'](_0x3d2230[_0x4a42b7(0x38e)])['pipe'](_0x3200b3(this['dispose$']),_0x470afa(0x10))[_0x4a42b7(0x320)](async _0xbac7a0=>{var _0x1a7dee=_0x4a42b7;const _0x51e5e4=_0xbac7a0['getUnitId'](),_0x1ccde7=await this[_0x1a7dee(0x137)](_0x51e5e4,Q[_0x1a7dee(0x38e)]);this[_0x1a7dee(0x28c)][_0x1a7dee(0x24a)](_0x51e5e4,_0x1ccde7);}),this[_0x4a42b7(0x25d)]['getTypeOfUnitAdded$'](_0x3d2230[_0x4a42b7(0x338)])[_0x4a42b7(0x304)](_0x3200b3(this[_0x4a42b7(0x2f5)]),_0x470afa(0x10))['pipe'](_0x3ff271(_0x132ace=>!_0x132ace[_0x4a42b7(0x39f)]()['startsWith']('__')))[_0x4a42b7(0x320)](async _0x9b2dd=>{var _0x1fc8c4=_0x4a42b7;const _0x22ae81=_0x9b2dd['getUnitId'](),_0x1918b6=await this[_0x1fc8c4(0x137)](_0x22ae81,Q[_0x1fc8c4(0x338)]);this[_0x1fc8c4(0x28c)][_0x1fc8c4(0x24a)](_0x22ae81,_0x1918b6);}),_0x5663e3(this['_univerInstanceService'][_0x4a42b7(0x1d9)](_0x3d2230['UNIVER_SHEET']),this[_0x4a42b7(0x25d)]['getTypeOfUnitDisposed$'](_0x3d2230['UNIVER_DOC']))[_0x4a42b7(0x304)](_0x3200b3(this[_0x4a42b7(0x2f5)]))[_0x4a42b7(0x320)](_0x1ee35f=>{var _0xf9792e=_0x4a42b7;const _0x2d936b=_0x1ee35f[_0xf9792e(0x39f)](),_0x4f5416=this['_entities'][_0xf9792e(0x1c6)](_0x2d936b);_0x4f5416&&(_0x4f5416['dispose'](),this[_0xf9792e(0x28c)][_0xf9792e(0xea)](_0x2d936b));});}async[_0x3589bd(0x137)](_0x5079de,_0x4f1b40){var _0x4708d4=_0x3589bd;const _0x122582=await this['_collabSessionService'][_0x4708d4(0x22c)](_0x5079de),_0x65bfd7=this['_injector'][_0x4708d4(0x2cf)](this[_0x4708d4(0x365)](_0x4f1b40),_0x5079de,_0x4f1b40,_0x122582);return await _0x65bfd7[_0x4708d4(0x13d)](),this[_0x4708d4(0xeb)][_0x4708d4(0x226)](_0x65bfd7),_0x65bfd7;}[_0x3589bd(0x365)](_0x1e4259){var _0x184671=_0x3589bd;switch(_0x1e4259){case Q[_0x184671(0x338)]:return Tt;case Q[_0x184671(0x38e)]:return Ct;default:throw new Error(_0x184671(0x38b)+_0x1e4259);}}};rt=Sr([ft(0x0,_0x350123(_0x5aaee8)),ft(0x1,_0x350123(Le)),ft(0x2,_0x7d7fce)],rt);var Er=Object['defineProperty'],Ir=Object[_0x3589bd(0x38f)],Tr=(_0x17dc0d,_0x34b9b8,_0x6f6f19,_0x59e97a)=>{var _0x139ce5=_0x3589bd;for(var _0x4eaff2=_0x59e97a>0x1?void 0x0:_0x59e97a?Ir(_0x34b9b8,_0x6f6f19):_0x34b9b8,_0x289cee=_0x17dc0d[_0x139ce5(0x2f2)]-0x1,_0x11d7c4;_0x289cee>=0x0;_0x289cee--)(_0x11d7c4=_0x17dc0d[_0x289cee])&&(_0x4eaff2=(_0x59e97a?_0x11d7c4(_0x34b9b8,_0x6f6f19,_0x4eaff2):_0x11d7c4(_0x4eaff2))||_0x4eaff2);return _0x59e97a&&_0x4eaff2&&Er(_0x34b9b8,_0x6f6f19,_0x4eaff2),_0x4eaff2;},Jt=(_0x4c2330,_0x2518db)=>(_0x63d0cd,_0x2f7fca)=>_0x2518db(_0x63d0cd,_0x2f7fca,_0x4c2330);const Cr=_0x3589bd(0x2c8),Rr=_0x3589bd(0x1b6);let Rt=class extends _0xde5152{constructor(_0x1e648b,_0x270d00){var _0x36c70c=_0x3589bd;super(),this[_0x36c70c(0x25d)]=_0x1e648b,this[_0x36c70c(0x3b0)]=_0x270d00,this[_0x36c70c(0x29a)]();}[_0x3589bd(0x29a)](){var _0x1b2e6d=_0x3589bd;this[_0x1b2e6d(0x145)](this[_0x1b2e6d(0x25d)][_0x1b2e6d(0x360)][_0x1b2e6d(0x320)](()=>{var _0x4c35fa=_0x1b2e6d,_0x4a778a;const _0x1c1b94=this[_0x4c35fa(0x25d)]['getFocusedUnit']();let _0x4dff7c=(_0x4a778a=this[_0x4c35fa(0x3b0)][_0x4c35fa(0x17d)](Cr))!=null?_0x4a778a:Rr;_0x1c1b94 instanceof _0x3f64d6&&(_0x4dff7c=_0x1c1b94[_0x4c35fa(0x1f7)]),document[_0x4c35fa(0x204)]=_0x4dff7c;}));}};Rt=Tr([Jt(0x0,_0x7d7fce),Jt(0x1,_0x59f592)],Rt);var br=Object[_0x3589bd(0x2f6)],Or=Object[_0x3589bd(0x38f)],yr=(_0x400a8c,_0x50b96c,_0x24f1df,_0x44f441)=>{var _0x10c371=_0x3589bd;for(var _0x177c9b=_0x44f441>0x1?void 0x0:_0x44f441?Or(_0x50b96c,_0x24f1df):_0x50b96c,_0x5b553f=_0x400a8c[_0x10c371(0x2f2)]-0x1,_0x3be9b5;_0x5b553f>=0x0;_0x5b553f--)(_0x3be9b5=_0x400a8c[_0x5b553f])&&(_0x177c9b=(_0x44f441?_0x3be9b5(_0x50b96c,_0x24f1df,_0x177c9b):_0x3be9b5(_0x177c9b))||_0x177c9b);return _0x44f441&&_0x177c9b&&br(_0x50b96c,_0x24f1df,_0x177c9b),_0x177c9b;},vt=(_0x401017,_0x48b2a9)=>(_0x36c8da,_0x47752a)=>_0x48b2a9(_0x36c8da,_0x47752a,_0x401017);let st=class{constructor(_0xe53d6c,_0x11ea46,_0x55993c){var _0x456d0f=_0x3589bd;this[_0x456d0f(0x3b0)]=_0xe53d6c,this['_httpService']=_0x11ea46,this[_0x456d0f(0xf7)]=_0x55993c,this['init']();}[_0x3589bd(0x13d)](){var _0x33f7da=_0x3589bd;this[_0x33f7da(0x1a9)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x479f20,_0xd9136e)=>_0xd9136e(_0x479f20)[_0x33f7da(0x304)](_0x82345(async _0x1a053a=>{var _0x1563be=_0x33f7da;const _0x3ac484=_0x1a053a;if(_0x3ac484[_0x1563be(0x374)]===0x191){if(typeof window>'u')throw new Error(_0x1563be(0x1f5));if(window[_0x1563be(0x3b1)](this['localeService']['t'](_0x1563be(0x1d2)))){const _0x570cfb=window[_0x1563be(0x1ea)](window[_0x1563be(0x381)]['href']);window[_0x1563be(0x381)][_0x1563be(0x2c1)]=this[_0x1563be(0x3ad)]()+_0x1563be(0x27d)+_0x570cfb;}}return _0x3ac484;}))});}[_0x3589bd(0x3ad)](){var _0x19f0d9=_0x3589bd,_0x59787f,_0x2e4a3f;const _0x5c3a12=this['_configService']['getConfig'](xn),_0x159b17=this[_0x19f0d9(0x3b0)]['getConfig'](q);return(_0x2e4a3f=(_0x59787f=_0x159b17==null?void 0x0:_0x159b17[_0x19f0d9(0xe9)])!=null?_0x59787f:_0x5c3a12)!=null?_0x2e4a3f:Ln;}};st=yr([vt(0x0,_0x59f592),vt(0x1,_0x350123(_0x385ac4)),vt(0x2,_0x350123(_0x2720f2))],st);var Nr=Object[_0x3589bd(0x2f6)],Dr=Object[_0x3589bd(0x38f)],Pr=(_0x347c45,_0x6d6fc7,_0xe13ab8,_0x42868e)=>{var _0x501655=_0x3589bd;for(var _0xe63fc9=_0x42868e>0x1?void 0x0:_0x42868e?Dr(_0x6d6fc7,_0xe13ab8):_0x6d6fc7,_0x160669=_0x347c45[_0x501655(0x2f2)]-0x1,_0x5c7a37;_0x160669>=0x0;_0x160669--)(_0x5c7a37=_0x347c45[_0x160669])&&(_0xe63fc9=(_0x42868e?_0x5c7a37(_0x6d6fc7,_0xe13ab8,_0xe63fc9):_0x5c7a37(_0xe63fc9))||_0xe63fc9);return _0x42868e&&_0xe63fc9&&Nr(_0x6d6fc7,_0xe13ab8,_0xe63fc9),_0xe63fc9;},Xt=(_0x58ba3d,_0x139a5d)=>(_0x33d2c5,_0x225e73)=>_0x139a5d(_0x33d2c5,_0x225e73,_0x58ba3d);const Pi=_0x3589bd(0x28f),wr=_0x3589bd(0x2f3);function _0x2984(_0x134c35,_0x1d45c7){var _0x276ed7=_0x276e();return _0x2984=function(_0x298428,_0x13c4d4){_0x298428=_0x298428-0xa0;var _0x2f4514=_0x276ed7[_0x298428];return _0x2f4514;},_0x2984(_0x134c35,_0x1d45c7);}let bt=class extends _0xde5152{constructor(_0x40315f,_0x548d99){var _0x30e9e8=_0x3589bd;super(),this['_HTTPService']=_0x40315f,this[_0x30e9e8(0x3b0)]=_0x548d99,this['_initMergeInterceptor']();}[_0x3589bd(0xa6)](){var _0x52a2a3=_0x3589bd;const _0xf83982=this;this[_0x52a2a3(0x145)](this[_0x52a2a3(0x1b8)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':_0x481448({'isMatch'(_0x4086a6){var _0x4d3596=_0x52a2a3,_0x43355a;if(_0x4086a6[_0x4d3596(0xd6)]===_0x4d3596(0x15e)&&((_0x43355a=_0x4086a6[_0x4d3596(0x1b9)])!=null&&_0x43355a['body'])){const {objectID:_0x3810e7,objectType:_0x278f7a}=_0x4086a6[_0x4d3596(0x1b9)][_0x4d3596(0xa4)]||{};if(!_0x3810e7||_0x278f7a===void 0x0)return!0x1;const _0x342e2c=_0xf83982[_0x4d3596(0x239)]()+'/'+_0x278f7a+_0x4d3596(0xac)+_0x3810e7+_0x4d3596(0x356);if(_0x4086a6['url']===_0x342e2c)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x1837f4){var _0x3011ce=_0x52a2a3,_0x5e56f1;return(_0x5e56f1=_0x1837f4[_0x3011ce(0x1b9)])==null?void 0x0:_0x5e56f1[_0x3011ce(0xa4)];},'mergeParamsToRequest'(_0x1c9172,_0x489576){var _0x2f56b1=_0x52a2a3;const _0x5b0275=_0xf83982[_0x2f56b1(0x239)]()+'/-/object/-/batch_allowed',_0x31acf7=_0x1c9172[_0x2f56b1(0x2e0)]((_0x465e9e,_0x290bdb)=>{var _0x2f913b=_0x2f56b1;const {unitID:_0x57536f,objectID:_0x2208d4,objectType:_0x5eaeac,actions:_0x5b0ee4}=_0x290bdb;return _0x465e9e[_0x57536f]||(_0x465e9e[_0x57536f]={}),_0x465e9e[_0x57536f][_0x2208d4]||(_0x465e9e[_0x57536f][_0x2208d4]={'objectID':_0x2208d4,'objectType':_0x5eaeac,'actions':[]}),_0x465e9e[_0x57536f][_0x2208d4][_0x2f913b(0x3b4)][_0x2f913b(0x17a)](..._0x5b0ee4),_0x465e9e;},{}),_0x3c3915=[];for(const _0x2f75fe in _0x31acf7)for(const _0x52f992 in _0x31acf7[_0x2f75fe]){const {actions:_0x2e571d,objectType:_0x4b1cb0}=_0x31acf7[_0x2f75fe][_0x52f992],_0x32c23b=[...new Set(_0x2e571d)];_0x3c3915[_0x2f56b1(0x17a)]({'unitID':_0x2f75fe,'objectID':_0x52f992,'objectType':_0x4b1cb0,'actions':_0x32c23b});}return new _0x53fc29(_0x2f56b1(0x15e),_0x5b0275,{'headers':_0x489576[_0x2f56b1(0x1ac)],'withCredentials':_0x489576[_0x2f56b1(0x11e)],'responseType':_0x489576[_0x2f56b1(0x1e6)],'body':{'requests':_0x3c3915}});}},{'distributeResult'(_0x20f759,_0xe2ab13){const {objectActions:_0x854c88}=_0x20f759;return _0xe2ab13['map'](_0x5c63d2=>{var _0x42ff97=_0x2984;const {unitID:_0x4a903b,objectID:_0x5f11f8,actions:_0x100e79}=_0x5c63d2,_0x45525b=_0x854c88[_0x42ff97(0x2e1)](_0xbef407=>_0xbef407[_0x42ff97(0xc1)]===_0x4a903b&&_0xbef407[_0x42ff97(0x1cb)]===_0x5f11f8),_0x5871c0=_0x100e79[_0x42ff97(0x2a4)](_0x69ead7=>_0x45525b==null?void 0x0:_0x45525b[_0x42ff97(0x3b4)][_0x42ff97(0x2e1)](_0x173b8a=>_0x173b8a[_0x42ff97(0x287)]===_0x69ead7))[_0x42ff97(0x2ff)](_0x58d29a=>!!_0x58d29a);return{'config':_0x5c63d2,'result':{'actions':_0x5871c0,'error':_0x20f759[_0x42ff97(0xc2)]}};});}})}));}[_0x3589bd(0x239)](){var _0x26abec=_0x3589bd,_0x5446f3,_0x2250bf;const _0x5ea5e3=this['_configService']['getConfig'](Pi),_0x401482=this[_0x26abec(0x3b0)][_0x26abec(0x17d)](q);return(_0x2250bf=(_0x5446f3=_0x401482==null?void 0x0:_0x401482[_0x26abec(0xf2)])!=null?_0x5446f3:_0x5ea5e3)!=null?_0x2250bf:wr;}async['create'](_0x3807ab){var _0x3f37e1=_0x3589bd;const _0x30da18=this['_getAPIPrefixPath']()+'/'+_0x3807ab[_0x3f37e1(0x324)]+_0x3f37e1(0x1fe);return(await this['_HTTPService'][_0x3f37e1(0x2c0)](_0x30da18,{'body':_0x3807ab}))[_0x3f37e1(0xa4)][_0x3f37e1(0x1cb)]||'';}async[_0x3589bd(0x18b)](_0x56b0f3){var _0x2c1d10=_0x3589bd;const _0x50b10b=this[_0x2c1d10(0x239)]()+'/-/object/list';return(await this['_HTTPService'][_0x2c1d10(0x2c0)](_0x50b10b,{'body':_0x56b0f3}))[_0x2c1d10(0xa4)][_0x2c1d10(0xa3)];}async[_0x3589bd(0x3a9)](_0x63cac1){var _0x149fa8=_0x3589bd;const _0x19bd11=this['_getAPIPrefixPath']()+'/'+_0x63cac1['objectType']+_0x149fa8(0xac)+_0x63cac1['objectID'];await this[_0x149fa8(0x1b8)][_0x149fa8(0x179)](_0x19bd11,{'body':_0x63cac1});}async[_0x3589bd(0x269)](_0x3be18b){var _0xad5f22=_0x3589bd;const _0x4adfe0=this[_0xad5f22(0x239)]()+'/'+_0x3be18b[_0xad5f22(0x324)]+_0xad5f22(0xac)+_0x3be18b[_0xad5f22(0x1cb)]+_0xad5f22(0x356);return(await this[_0xad5f22(0x1b8)][_0xad5f22(0x2c0)](_0x4adfe0,{'body':_0x3be18b}))[_0xad5f22(0xa4)][_0xad5f22(0x3b4)];}async['batchAllowed'](_0x2e9530){var _0x1b1de6=_0x3589bd;const _0x170e3d=this[_0x1b1de6(0x239)]()+_0x1b1de6(0x2f9);return(await this[_0x1b1de6(0x1b8)][_0x1b1de6(0x2c0)](_0x170e3d,{'body':{'requests':_0x2e9530}}))[_0x1b1de6(0xa4)][_0x1b1de6(0x303)];}async['listRoles'](_0x321130){var _0x282e64=_0x3589bd;const _0x17695c=this['_getAPIPrefixPath']()+'/'+_0x321130[_0x282e64(0x324)]+_0x282e64(0x118),_0x51a4b2=await this[_0x282e64(0x1b8)]['post'](_0x17695c,{'body':_0x321130});return{'roles':_0x51a4b2[_0x282e64(0xa4)]['roles'],'actions':_0x51a4b2[_0x282e64(0xa4)]['actions']};}async[_0x3589bd(0x26f)](_0x55da40){var _0x1bd8ed=_0x3589bd;const _0x362eea=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x1bd8ed(0x1b8)][_0x1bd8ed(0xea)](_0x362eea,{'params':{'collaboratorID':_0x55da40[_0x1bd8ed(0x265)],'objectID':_0x55da40[_0x1bd8ed(0x1cb)],'unitID':_0x55da40[_0x1bd8ed(0xc1)]}});}async[_0x3589bd(0x1bd)](_0x3d48af){var _0x4bc77f=_0x3589bd;const _0x49d9c1=this[_0x4bc77f(0x239)]()+'/collaborator';await this[_0x4bc77f(0x1b8)][_0x4bc77f(0x2a6)](_0x49d9c1,{'body':_0x3d48af});}async[_0x3589bd(0xb7)](_0x51b24e){var _0x27f0b9=_0x3589bd;const _0x1c6f82=this[_0x27f0b9(0x239)]()+'/collaborator';await this[_0x27f0b9(0x1b8)][_0x27f0b9(0x2c0)](_0x1c6f82,{'body':_0x51b24e});}async[_0x3589bd(0x2d8)](_0x53cda9){var _0x3eea6e=_0x3589bd;const _0x3279ab=this['_getAPIPrefixPath']()+_0x3eea6e(0x1b4);return(await this['_HTTPService'][_0x3eea6e(0x1c6)](_0x3279ab,{'params':{'objectID':_0x53cda9['objectID'],'unitID':_0x53cda9['unitID']}}))['body'][_0x3eea6e(0x230)];}async[_0x3589bd(0x1ec)](_0x59d562){var _0x480763=_0x3589bd;const _0x53e2c6=this[_0x480763(0x239)]()+_0x480763(0x1b4);await this[_0x480763(0x1b8)][_0x480763(0x179)](_0x53e2c6,{'body':_0x59d562});}};bt=Pr([Xt(0x0,_0x350123(_0x385ac4)),Xt(0x1,_0x350123(_0x59f592))],bt);var pt=typeof globalThis<'u'?globalThis:typeof window<'u'?window:typeof global<'u'?global:typeof self<'u'?self:{};function ke(_0xd0f183){var _0x2dc640=_0x3589bd;return _0xd0f183&&_0xd0f183[_0x2dc640(0x37c)]&&Object[_0x2dc640(0x1d3)][_0x2dc640(0x384)][_0x2dc640(0x282)](_0xd0f183,_0x2dc640(0x34b))?_0xd0f183[_0x2dc640(0x34b)]:_0xd0f183;}var Ve={'exports':{}};function Ur(_0x418058){var _0x383189=_0x3589bd;throw new Error('Could\x20not\x20dynamically\x20require\x20\x22'+_0x418058+_0x383189(0x3b5));}var Ge={'exports':{}},Ar=Ge[_0x3589bd(0x387)],Zt;function ne(){var _0x3cbb24=_0x3589bd;return Zt||(Zt=0x1,function(_0x7afd6,_0x4f733d){(function(_0x355c64,_0xb47d2d){var _0x33fa54=_0x2984;_0x7afd6[_0x33fa54(0x387)]=_0xb47d2d();}(Ar,function(){var _0x308c61=_0x308c61||function(_0x3d9b92,_0x1d9537){var _0x4be4fb=_0x2984,_0x54d9d3;if(typeof window<'u'&&window['crypto']&&(_0x54d9d3=window[_0x4be4fb(0x227)]),typeof self<'u'&&self[_0x4be4fb(0x227)]&&(_0x54d9d3=self[_0x4be4fb(0x227)]),typeof globalThis<'u'&&globalThis[_0x4be4fb(0x227)]&&(_0x54d9d3=globalThis['crypto']),!_0x54d9d3&&typeof window<'u'&&window[_0x4be4fb(0x2aa)]&&(_0x54d9d3=window[_0x4be4fb(0x2aa)]),!_0x54d9d3&&typeof pt<'u'&&pt[_0x4be4fb(0x227)]&&(_0x54d9d3=pt[_0x4be4fb(0x227)]),!_0x54d9d3&&typeof Ur==_0x4be4fb(0x30f))try{_0x54d9d3=require('crypto');}catch{}var _0x576f8a=function(){var _0x363c6d=_0x4be4fb;if(_0x54d9d3){if(typeof _0x54d9d3[_0x363c6d(0x112)]==_0x363c6d(0x30f))try{return _0x54d9d3[_0x363c6d(0x112)](new Uint32Array(0x1))[0x0];}catch{}if(typeof _0x54d9d3[_0x363c6d(0x3b6)]==_0x363c6d(0x30f))try{return _0x54d9d3['randomBytes'](0x4)[_0x363c6d(0x200)]();}catch{}}throw new Error(_0x363c6d(0x183));},_0x51a4d0=Object['create']||(function(){function _0x419154(){}return function(_0xa6daa3){var _0x419a5c=_0x2984,_0xfce5ff;return _0x419154['prototype']=_0xa6daa3,_0xfce5ff=new _0x419154(),_0x419154[_0x419a5c(0x1d3)]=null,_0xfce5ff;};}()),_0x207286={},_0xef6f99=_0x207286[_0x4be4fb(0x2f1)]={},_0x14b4a6=_0xef6f99[_0x4be4fb(0x151)]=(function(){return{'extend':function(_0x45804b){var _0x2ce24b=_0x2984,_0x2cd4ff=_0x51a4d0(this);return _0x45804b&&_0x2cd4ff[_0x2ce24b(0x366)](_0x45804b),(!_0x2cd4ff[_0x2ce24b(0x384)]('init')||this['init']===_0x2cd4ff['init'])&&(_0x2cd4ff[_0x2ce24b(0x13d)]=function(){var _0x2e4163=_0x2ce24b;_0x2cd4ff[_0x2e4163(0x170)][_0x2e4163(0x13d)][_0x2e4163(0x339)](this,arguments);}),_0x2cd4ff['init'][_0x2ce24b(0x1d3)]=_0x2cd4ff,_0x2cd4ff[_0x2ce24b(0x170)]=this,_0x2cd4ff;},'create':function(){var _0x5f5d97=_0x2984,_0x436278=this[_0x5f5d97(0x1c5)]();return _0x436278[_0x5f5d97(0x13d)]['apply'](_0x436278,arguments),_0x436278;},'init':function(){},'mixIn':function(_0x4a1cea){var _0x266044=_0x2984;for(var _0x483f7f in _0x4a1cea)_0x4a1cea[_0x266044(0x384)](_0x483f7f)&&(this[_0x483f7f]=_0x4a1cea[_0x483f7f]);_0x4a1cea['hasOwnProperty']('toString')&&(this['toString']=_0x4a1cea[_0x266044(0x194)]);},'clone':function(){var _0x330076=_0x2984;return this[_0x330076(0x13d)]['prototype']['extend'](this);}};}()),_0x230318=_0xef6f99['WordArray']=_0x14b4a6[_0x4be4fb(0x1c5)]({'init':function(_0x52257f,_0x77b326){var _0x435d61=_0x4be4fb;_0x52257f=this[_0x435d61(0x222)]=_0x52257f||[],_0x77b326!=_0x1d9537?this[_0x435d61(0x19d)]=_0x77b326:this[_0x435d61(0x19d)]=_0x52257f[_0x435d61(0x2f2)]*0x4;},'toString':function(_0x44068d){var _0x19c565=_0x4be4fb;return(_0x44068d||_0x5b08e1)[_0x19c565(0x388)](this);},'concat':function(_0x314416){var _0x4e8e03=_0x4be4fb,_0x263cbf=this[_0x4e8e03(0x222)],_0xa94075=_0x314416[_0x4e8e03(0x222)],_0x2eadfd=this[_0x4e8e03(0x19d)],_0x55515e=_0x314416[_0x4e8e03(0x19d)];if(this['clamp'](),_0x2eadfd%0x4)for(var _0x1063c4=0x0;_0x1063c4<_0x55515e;_0x1063c4++){var _0x4c3fce=_0xa94075[_0x1063c4>>>0x2]>>>0x18-_0x1063c4%0x4*0x8&0xff;_0x263cbf[_0x2eadfd+_0x1063c4>>>0x2]|=_0x4c3fce<<0x18-(_0x2eadfd+_0x1063c4)%0x4*0x8;}else{for(var _0x370a1b=0x0;_0x370a1b<_0x55515e;_0x370a1b+=0x4)_0x263cbf[_0x2eadfd+_0x370a1b>>>0x2]=_0xa94075[_0x370a1b>>>0x2];}return this[_0x4e8e03(0x19d)]+=_0x55515e,this;},'clamp':function(){var _0xcb71b5=_0x4be4fb,_0x2ade85=this[_0xcb71b5(0x222)],_0x4a9537=this[_0xcb71b5(0x19d)];_0x2ade85[_0x4a9537>>>0x2]&=0xffffffff<<0x20-_0x4a9537%0x4*0x8,_0x2ade85[_0xcb71b5(0x2f2)]=_0x3d9b92[_0xcb71b5(0xfb)](_0x4a9537/0x4);},'clone':function(){var _0x206d94=_0x4be4fb,_0x2d04e6=_0x14b4a6['clone']['call'](this);return _0x2d04e6[_0x206d94(0x222)]=this['words'][_0x206d94(0x16a)](0x0),_0x2d04e6;},'random':function(_0x2899b2){var _0x3c0641=_0x4be4fb;for(var _0x1aaa0b=[],_0x296708=0x0;_0x296708<_0x2899b2;_0x296708+=0x4)_0x1aaa0b[_0x3c0641(0x17a)](_0x576f8a());return new _0x230318[(_0x3c0641(0x13d))](_0x1aaa0b,_0x2899b2);}}),_0x36a029=_0x207286['enc']={},_0x5b08e1=_0x36a029[_0x4be4fb(0x34e)]={'stringify':function(_0x552acc){var _0x43a57a=_0x4be4fb;for(var _0x5c2b96=_0x552acc[_0x43a57a(0x222)],_0x19a531=_0x552acc[_0x43a57a(0x19d)],_0x5dfadd=[],_0x49d768=0x0;_0x49d768<_0x19a531;_0x49d768++){var _0x2f6b3a=_0x5c2b96[_0x49d768>>>0x2]>>>0x18-_0x49d768%0x4*0x8&0xff;_0x5dfadd[_0x43a57a(0x17a)]((_0x2f6b3a>>>0x4)[_0x43a57a(0x194)](0x10)),_0x5dfadd[_0x43a57a(0x17a)]((_0x2f6b3a&0xf)[_0x43a57a(0x194)](0x10));}return _0x5dfadd[_0x43a57a(0x241)]('');},'parse':function(_0x4ad0bc){var _0x56fe0b=_0x4be4fb;for(var _0x1ead7b=_0x4ad0bc['length'],_0xc059d7=[],_0x54cbac=0x0;_0x54cbac<_0x1ead7b;_0x54cbac+=0x2)_0xc059d7[_0x54cbac>>>0x3]|=parseInt(_0x4ad0bc[_0x56fe0b(0x1c9)](_0x54cbac,0x2),0x10)<<0x18-_0x54cbac%0x8*0x4;return new _0x230318[(_0x56fe0b(0x13d))](_0xc059d7,_0x1ead7b/0x2);}},_0x2b9f69=_0x36a029['Latin1']={'stringify':function(_0x1beacb){var _0x8fbe73=_0x4be4fb;for(var _0x124cda=_0x1beacb[_0x8fbe73(0x222)],_0xc91d4f=_0x1beacb[_0x8fbe73(0x19d)],_0x27a531=[],_0x545bea=0x0;_0x545bea<_0xc91d4f;_0x545bea++){var _0xac4f78=_0x124cda[_0x545bea>>>0x2]>>>0x18-_0x545bea%0x4*0x8&0xff;_0x27a531[_0x8fbe73(0x17a)](String['fromCharCode'](_0xac4f78));}return _0x27a531[_0x8fbe73(0x241)]('');},'parse':function(_0x5bfea0){var _0x42dd72=_0x4be4fb;for(var _0x388450=_0x5bfea0['length'],_0x3bd001=[],_0x5cba3c=0x0;_0x5cba3c<_0x388450;_0x5cba3c++)_0x3bd001[_0x5cba3c>>>0x2]|=(_0x5bfea0[_0x42dd72(0x1d8)](_0x5cba3c)&0xff)<<0x18-_0x5cba3c%0x4*0x8;return new _0x230318[(_0x42dd72(0x13d))](_0x3bd001,_0x388450);}},_0x44d234=_0x36a029[_0x4be4fb(0x2b7)]={'stringify':function(_0x54df2f){var _0x522bea=_0x4be4fb;try{return decodeURIComponent(escape(_0x2b9f69[_0x522bea(0x388)](_0x54df2f)));}catch{throw new Error(_0x522bea(0x1de));}},'parse':function(_0x5db502){var _0x5448a6=_0x4be4fb;return _0x2b9f69[_0x5448a6(0x271)](unescape(encodeURIComponent(_0x5db502)));}},_0x289e09=_0xef6f99[_0x4be4fb(0x2a2)]=_0x14b4a6[_0x4be4fb(0x1c5)]({'reset':function(){var _0x42f637=_0x4be4fb;this['_data']=new _0x230318['init'](),this[_0x42f637(0x121)]=0x0;},'_append':function(_0xca9e3d){var _0x3f933d=_0x4be4fb;typeof _0xca9e3d=='string'&&(_0xca9e3d=_0x44d234[_0x3f933d(0x271)](_0xca9e3d)),this[_0x3f933d(0x10f)][_0x3f933d(0x10d)](_0xca9e3d),this[_0x3f933d(0x121)]+=_0xca9e3d[_0x3f933d(0x19d)];},'_process':function(_0x1323fe){var _0xe3508=_0x4be4fb,_0x322d74,_0xac795b=this[_0xe3508(0x10f)],_0x2fc320=_0xac795b[_0xe3508(0x222)],_0x31cc74=_0xac795b[_0xe3508(0x19d)],_0x4e7426=this[_0xe3508(0x377)],_0x16dde6=_0x4e7426*0x4,_0x23d9cc=_0x31cc74/_0x16dde6;_0x1323fe?_0x23d9cc=_0x3d9b92['ceil'](_0x23d9cc):_0x23d9cc=_0x3d9b92[_0xe3508(0xe8)]((_0x23d9cc|0x0)-this['_minBufferSize'],0x0);var _0x1d5b79=_0x23d9cc*_0x4e7426,_0x4f8536=_0x3d9b92[_0xe3508(0x35f)](_0x1d5b79*0x4,_0x31cc74);if(_0x1d5b79){for(var _0x1edee1=0x0;_0x1edee1<_0x1d5b79;_0x1edee1+=_0x4e7426)this[_0xe3508(0x26e)](_0x2fc320,_0x1edee1);_0x322d74=_0x2fc320[_0xe3508(0x375)](0x0,_0x1d5b79),_0xac795b[_0xe3508(0x19d)]-=_0x4f8536;}return new _0x230318[(_0xe3508(0x13d))](_0x322d74,_0x4f8536);},'clone':function(){var _0x50d5c8=_0x4be4fb,_0x40edaa=_0x14b4a6[_0x50d5c8(0x23c)][_0x50d5c8(0x282)](this);return _0x40edaa['_data']=this['_data'][_0x50d5c8(0x23c)](),_0x40edaa;},'_minBufferSize':0x0});_0xef6f99['Hasher']=_0x289e09[_0x4be4fb(0x1c5)]({'cfg':_0x14b4a6['extend'](),'init':function(_0x287496){var _0xf52845=_0x4be4fb;this['cfg']=this[_0xf52845(0x2a8)][_0xf52845(0x1c5)](_0x287496),this['reset']();},'reset':function(){var _0xd336ab=_0x4be4fb;_0x289e09[_0xd336ab(0x34c)][_0xd336ab(0x282)](this),this[_0xd336ab(0x310)]();},'update':function(_0x43e853){var _0x3f66c3=_0x4be4fb;return this[_0x3f66c3(0x1d4)](_0x43e853),this[_0x3f66c3(0xcf)](),this;},'finalize':function(_0xf77180){var _0x35120a=_0x4be4fb;_0xf77180&&this[_0x35120a(0x1d4)](_0xf77180);var _0x1712a9=this[_0x35120a(0x273)]();return _0x1712a9;},'blockSize':0x10,'_createHelper':function(_0x541193){return function(_0x2f6e95,_0xfb8ba4){var _0x3407ce=_0x2984;return new _0x541193[(_0x3407ce(0x13d))](_0xfb8ba4)[_0x3407ce(0x268)](_0x2f6e95);};},'_createHmacHelper':function(_0x487288){return function(_0x4bc194,_0x4a4baa){var _0x454c72=_0x2984;return new _0x4eb7b8[(_0x454c72(0x10a))][(_0x454c72(0x13d))](_0x487288,_0x4a4baa)[_0x454c72(0x268)](_0x4bc194);};}});var _0x4eb7b8=_0x207286[_0x4be4fb(0x314)]={};return _0x207286;}(Math);return _0x308c61;}));}(Ge)),Ge[_0x3cbb24(0x387)];}var We={'exports':{}},xr=We[_0x3589bd(0x387)],Qt;function wi(){var _0x2a76a5=_0x3589bd;return Qt||(Qt=0x1,function(_0x3a6518,_0x21100b){(function(_0x3c0bb3,_0x1e0d90){_0x3a6518['exports']=_0x1e0d90(ne());}(xr,function(_0x66bacc){var _0x4e0d86=_0x2984;return(function(){var _0x5336de=_0x2984,_0x5ab75d=_0x66bacc,_0x6fff2e=_0x5ab75d[_0x5336de(0x2f1)],_0x25de89=_0x6fff2e[_0x5336de(0x169)],_0x5e5737=_0x5ab75d['enc'];_0x5e5737['Base64']={'stringify':function(_0x3b769c){var _0x3fa1d1=_0x5336de,_0x4e6a47=_0x3b769c[_0x3fa1d1(0x222)],_0x390811=_0x3b769c['sigBytes'],_0x219a48=this[_0x3fa1d1(0x2b3)];_0x3b769c[_0x3fa1d1(0xda)]();for(var _0x4604b5=[],_0x450dc6=0x0;_0x450dc6<_0x390811;_0x450dc6+=0x3)for(var _0x3de189=_0x4e6a47[_0x450dc6>>>0x2]>>>0x18-_0x450dc6%0x4*0x8&0xff,_0x20b85c=_0x4e6a47[_0x450dc6+0x1>>>0x2]>>>0x18-(_0x450dc6+0x1)%0x4*0x8&0xff,_0x1a498a=_0x4e6a47[_0x450dc6+0x2>>>0x2]>>>0x18-(_0x450dc6+0x2)%0x4*0x8&0xff,_0x485df0=_0x3de189<<0x10|_0x20b85c<<0x8|_0x1a498a,_0x5bd2b8=0x0;_0x5bd2b8<0x4&&_0x450dc6+_0x5bd2b8*0.75<_0x390811;_0x5bd2b8++)_0x4604b5[_0x3fa1d1(0x17a)](_0x219a48[_0x3fa1d1(0x146)](_0x485df0>>>0x6*(0x3-_0x5bd2b8)&0x3f));var _0xc9328c=_0x219a48['charAt'](0x40);if(_0xc9328c){for(;_0x4604b5['length']%0x4;)_0x4604b5[_0x3fa1d1(0x17a)](_0xc9328c);}return _0x4604b5['join']('');},'parse':function(_0x3b26d6){var _0x4a2a68=_0x5336de,_0x4d6224=_0x3b26d6[_0x4a2a68(0x2f2)],_0x5be4a7=this[_0x4a2a68(0x2b3)],_0x3ccf55=this[_0x4a2a68(0x1a2)];if(!_0x3ccf55){_0x3ccf55=this['_reverseMap']=[];for(var _0x43fdbd=0x0;_0x43fdbd<_0x5be4a7['length'];_0x43fdbd++)_0x3ccf55[_0x5be4a7['charCodeAt'](_0x43fdbd)]=_0x43fdbd;}var _0x285c57=_0x5be4a7[_0x4a2a68(0x146)](0x40);if(_0x285c57){var _0x7abbb9=_0x3b26d6[_0x4a2a68(0x396)](_0x285c57);_0x7abbb9!==-0x1&&(_0x4d6224=_0x7abbb9);}return _0x35929a(_0x3b26d6,_0x4d6224,_0x3ccf55);},'_map':_0x5336de(0x123)};function _0x35929a(_0x34a97b,_0x1d2270,_0x2ca037){var _0x346e65=_0x5336de;for(var _0xccfe5c=[],_0x3577e7=0x0,_0x2f2b8a=0x0;_0x2f2b8a<_0x1d2270;_0x2f2b8a++)if(_0x2f2b8a%0x4){var _0x2ebca3=_0x2ca037[_0x34a97b[_0x346e65(0x1d8)](_0x2f2b8a-0x1)]<<_0x2f2b8a%0x4*0x2,_0x54f0ee=_0x2ca037[_0x34a97b[_0x346e65(0x1d8)](_0x2f2b8a)]>>>0x6-_0x2f2b8a%0x4*0x2,_0x25b10f=_0x2ebca3|_0x54f0ee;_0xccfe5c[_0x3577e7>>>0x2]|=_0x25b10f<<0x18-_0x3577e7%0x4*0x8,_0x3577e7++;}return _0x25de89['create'](_0xccfe5c,_0x3577e7);}}()),_0x66bacc[_0x4e0d86(0x134)][_0x4e0d86(0x2ad)];}));}(We)),We[_0x2a76a5(0x387)];}var Ke={'exports':{}},Lr=Ke['exports'],ei;function Mr(){var _0x282b97=_0x3589bd;return ei||(ei=0x1,function(_0x2f8c98,_0x1aff28){(function(_0x16d10d,_0xfaf086){var _0x4a3b2f=_0x2984;_0x2f8c98[_0x4a3b2f(0x387)]=_0xfaf086(ne());}(Lr,function(_0x2ea0e1){return function(_0x532220){var _0x2b0f7b=_0x2984,_0x5d3283=_0x2ea0e1,_0x134587=_0x5d3283[_0x2b0f7b(0x2f1)],_0x44238f=_0x134587[_0x2b0f7b(0x169)],_0x1585bc=_0x134587['Hasher'],_0xa4c586=_0x5d3283[_0x2b0f7b(0x314)],_0x52f788=[];(function(){var _0x192bd0=_0x2b0f7b;for(var _0x3b383c=0x0;_0x3b383c<0x40;_0x3b383c++)_0x52f788[_0x3b383c]=_0x532220[_0x192bd0(0x1ca)](_0x532220[_0x192bd0(0x1a6)](_0x3b383c+0x1))*0x100000000|0x0;}());var _0x5eba2b=_0xa4c586[_0x2b0f7b(0x1a4)]=_0x1585bc[_0x2b0f7b(0x1c5)]({'_doReset':function(){var _0x491456=_0x2b0f7b;this[_0x491456(0x1a1)]=new _0x44238f['init']([0x67452301,0xefcdab89,0x98badcfe,0x10325476]);},'_doProcessBlock':function(_0x170649,_0xde7f25){var _0x4dffe1=_0x2b0f7b;for(var _0x4846c9=0x0;_0x4846c9<0x10;_0x4846c9++){var _0x3ad3d0=_0xde7f25+_0x4846c9,_0x29c117=_0x170649[_0x3ad3d0];_0x170649[_0x3ad3d0]=(_0x29c117<<0x8|_0x29c117>>>0x18)&0xff00ff|(_0x29c117<<0x18|_0x29c117>>>0x8)&0xff00ff00;}var _0x25bcb2=this[_0x4dffe1(0x1a1)][_0x4dffe1(0x222)],_0x5940ab=_0x170649[_0xde7f25+0x0],_0x1aa4de=_0x170649[_0xde7f25+0x1],_0xce1df3=_0x170649[_0xde7f25+0x2],_0xe46bae=_0x170649[_0xde7f25+0x3],_0x3c55a5=_0x170649[_0xde7f25+0x4],_0x482e82=_0x170649[_0xde7f25+0x5],_0x346154=_0x170649[_0xde7f25+0x6],_0x3c41bd=_0x170649[_0xde7f25+0x7],_0x50fae0=_0x170649[_0xde7f25+0x8],_0x1253f7=_0x170649[_0xde7f25+0x9],_0x139743=_0x170649[_0xde7f25+0xa],_0x2f67d1=_0x170649[_0xde7f25+0xb],_0x108cb3=_0x170649[_0xde7f25+0xc],_0x972ae1=_0x170649[_0xde7f25+0xd],_0x285fa7=_0x170649[_0xde7f25+0xe],_0xf44928=_0x170649[_0xde7f25+0xf],_0x302c3d=_0x25bcb2[0x0],_0x51661c=_0x25bcb2[0x1],_0x439d66=_0x25bcb2[0x2],_0x7f45ae=_0x25bcb2[0x3];_0x302c3d=_0xd0c93f(_0x302c3d,_0x51661c,_0x439d66,_0x7f45ae,_0x5940ab,0x7,_0x52f788[0x0]),_0x7f45ae=_0xd0c93f(_0x7f45ae,_0x302c3d,_0x51661c,_0x439d66,_0x1aa4de,0xc,_0x52f788[0x1]),_0x439d66=_0xd0c93f(_0x439d66,_0x7f45ae,_0x302c3d,_0x51661c,_0xce1df3,0x11,_0x52f788[0x2]),_0x51661c=_0xd0c93f(_0x51661c,_0x439d66,_0x7f45ae,_0x302c3d,_0xe46bae,0x16,_0x52f788[0x3]),_0x302c3d=_0xd0c93f(_0x302c3d,_0x51661c,_0x439d66,_0x7f45ae,_0x3c55a5,0x7,_0x52f788[0x4]),_0x7f45ae=_0xd0c93f(_0x7f45ae,_0x302c3d,_0x51661c,_0x439d66,_0x482e82,0xc,_0x52f788[0x5]),_0x439d66=_0xd0c93f(_0x439d66,_0x7f45ae,_0x302c3d,_0x51661c,_0x346154,0x11,_0x52f788[0x6]),_0x51661c=_0xd0c93f(_0x51661c,_0x439d66,_0x7f45ae,_0x302c3d,_0x3c41bd,0x16,_0x52f788[0x7]),_0x302c3d=_0xd0c93f(_0x302c3d,_0x51661c,_0x439d66,_0x7f45ae,_0x50fae0,0x7,_0x52f788[0x8]),_0x7f45ae=_0xd0c93f(_0x7f45ae,_0x302c3d,_0x51661c,_0x439d66,_0x1253f7,0xc,_0x52f788[0x9]),_0x439d66=_0xd0c93f(_0x439d66,_0x7f45ae,_0x302c3d,_0x51661c,_0x139743,0x11,_0x52f788[0xa]),_0x51661c=_0xd0c93f(_0x51661c,_0x439d66,_0x7f45ae,_0x302c3d,_0x2f67d1,0x16,_0x52f788[0xb]),_0x302c3d=_0xd0c93f(_0x302c3d,_0x51661c,_0x439d66,_0x7f45ae,_0x108cb3,0x7,_0x52f788[0xc]),_0x7f45ae=_0xd0c93f(_0x7f45ae,_0x302c3d,_0x51661c,_0x439d66,_0x972ae1,0xc,_0x52f788[0xd]),_0x439d66=_0xd0c93f(_0x439d66,_0x7f45ae,_0x302c3d,_0x51661c,_0x285fa7,0x11,_0x52f788[0xe]),_0x51661c=_0xd0c93f(_0x51661c,_0x439d66,_0x7f45ae,_0x302c3d,_0xf44928,0x16,_0x52f788[0xf]),_0x302c3d=_0xcab08f(_0x302c3d,_0x51661c,_0x439d66,_0x7f45ae,_0x1aa4de,0x5,_0x52f788[0x10]),_0x7f45ae=_0xcab08f(_0x7f45ae,_0x302c3d,_0x51661c,_0x439d66,_0x346154,0x9,_0x52f788[0x11]),_0x439d66=_0xcab08f(_0x439d66,_0x7f45ae,_0x302c3d,_0x51661c,_0x2f67d1,0xe,_0x52f788[0x12]),_0x51661c=_0xcab08f(_0x51661c,_0x439d66,_0x7f45ae,_0x302c3d,_0x5940ab,0x14,_0x52f788[0x13]),_0x302c3d=_0xcab08f(_0x302c3d,_0x51661c,_0x439d66,_0x7f45ae,_0x482e82,0x5,_0x52f788[0x14]),_0x7f45ae=_0xcab08f(_0x7f45ae,_0x302c3d,_0x51661c,_0x439d66,_0x139743,0x9,_0x52f788[0x15]),_0x439d66=_0xcab08f(_0x439d66,_0x7f45ae,_0x302c3d,_0x51661c,_0xf44928,0xe,_0x52f788[0x16]),_0x51661c=_0xcab08f(_0x51661c,_0x439d66,_0x7f45ae,_0x302c3d,_0x3c55a5,0x14,_0x52f788[0x17]),_0x302c3d=_0xcab08f(_0x302c3d,_0x51661c,_0x439d66,_0x7f45ae,_0x1253f7,0x5,_0x52f788[0x18]),_0x7f45ae=_0xcab08f(_0x7f45ae,_0x302c3d,_0x51661c,_0x439d66,_0x285fa7,0x9,_0x52f788[0x19]),_0x439d66=_0xcab08f(_0x439d66,_0x7f45ae,_0x302c3d,_0x51661c,_0xe46bae,0xe,_0x52f788[0x1a]),_0x51661c=_0xcab08f(_0x51661c,_0x439d66,_0x7f45ae,_0x302c3d,_0x50fae0,0x14,_0x52f788[0x1b]),_0x302c3d=_0xcab08f(_0x302c3d,_0x51661c,_0x439d66,_0x7f45ae,_0x972ae1,0x5,_0x52f788[0x1c]),_0x7f45ae=_0xcab08f(_0x7f45ae,_0x302c3d,_0x51661c,_0x439d66,_0xce1df3,0x9,_0x52f788[0x1d]),_0x439d66=_0xcab08f(_0x439d66,_0x7f45ae,_0x302c3d,_0x51661c,_0x3c41bd,0xe,_0x52f788[0x1e]),_0x51661c=_0xcab08f(_0x51661c,_0x439d66,_0x7f45ae,_0x302c3d,_0x108cb3,0x14,_0x52f788[0x1f]),_0x302c3d=_0x349c53(_0x302c3d,_0x51661c,_0x439d66,_0x7f45ae,_0x482e82,0x4,_0x52f788[0x20]),_0x7f45ae=_0x349c53(_0x7f45ae,_0x302c3d,_0x51661c,_0x439d66,_0x50fae0,0xb,_0x52f788[0x21]),_0x439d66=_0x349c53(_0x439d66,_0x7f45ae,_0x302c3d,_0x51661c,_0x2f67d1,0x10,_0x52f788[0x22]),_0x51661c=_0x349c53(_0x51661c,_0x439d66,_0x7f45ae,_0x302c3d,_0x285fa7,0x17,_0x52f788[0x23]),_0x302c3d=_0x349c53(_0x302c3d,_0x51661c,_0x439d66,_0x7f45ae,_0x1aa4de,0x4,_0x52f788[0x24]),_0x7f45ae=_0x349c53(_0x7f45ae,_0x302c3d,_0x51661c,_0x439d66,_0x3c55a5,0xb,_0x52f788[0x25]),_0x439d66=_0x349c53(_0x439d66,_0x7f45ae,_0x302c3d,_0x51661c,_0x3c41bd,0x10,_0x52f788[0x26]),_0x51661c=_0x349c53(_0x51661c,_0x439d66,_0x7f45ae,_0x302c3d,_0x139743,0x17,_0x52f788[0x27]),_0x302c3d=_0x349c53(_0x302c3d,_0x51661c,_0x439d66,_0x7f45ae,_0x972ae1,0x4,_0x52f788[0x28]),_0x7f45ae=_0x349c53(_0x7f45ae,_0x302c3d,_0x51661c,_0x439d66,_0x5940ab,0xb,_0x52f788[0x29]),_0x439d66=_0x349c53(_0x439d66,_0x7f45ae,_0x302c3d,_0x51661c,_0xe46bae,0x10,_0x52f788[0x2a]),_0x51661c=_0x349c53(_0x51661c,_0x439d66,_0x7f45ae,_0x302c3d,_0x346154,0x17,_0x52f788[0x2b]),_0x302c3d=_0x349c53(_0x302c3d,_0x51661c,_0x439d66,_0x7f45ae,_0x1253f7,0x4,_0x52f788[0x2c]),_0x7f45ae=_0x349c53(_0x7f45ae,_0x302c3d,_0x51661c,_0x439d66,_0x108cb3,0xb,_0x52f788[0x2d]),_0x439d66=_0x349c53(_0x439d66,_0x7f45ae,_0x302c3d,_0x51661c,_0xf44928,0x10,_0x52f788[0x2e]),_0x51661c=_0x349c53(_0x51661c,_0x439d66,_0x7f45ae,_0x302c3d,_0xce1df3,0x17,_0x52f788[0x2f]),_0x302c3d=_0x5e09a3(_0x302c3d,_0x51661c,_0x439d66,_0x7f45ae,_0x5940ab,0x6,_0x52f788[0x30]),_0x7f45ae=_0x5e09a3(_0x7f45ae,_0x302c3d,_0x51661c,_0x439d66,_0x3c41bd,0xa,_0x52f788[0x31]),_0x439d66=_0x5e09a3(_0x439d66,_0x7f45ae,_0x302c3d,_0x51661c,_0x285fa7,0xf,_0x52f788[0x32]),_0x51661c=_0x5e09a3(_0x51661c,_0x439d66,_0x7f45ae,_0x302c3d,_0x482e82,0x15,_0x52f788[0x33]),_0x302c3d=_0x5e09a3(_0x302c3d,_0x51661c,_0x439d66,_0x7f45ae,_0x108cb3,0x6,_0x52f788[0x34]),_0x7f45ae=_0x5e09a3(_0x7f45ae,_0x302c3d,_0x51661c,_0x439d66,_0xe46bae,0xa,_0x52f788[0x35]),_0x439d66=_0x5e09a3(_0x439d66,_0x7f45ae,_0x302c3d,_0x51661c,_0x139743,0xf,_0x52f788[0x36]),_0x51661c=_0x5e09a3(_0x51661c,_0x439d66,_0x7f45ae,_0x302c3d,_0x1aa4de,0x15,_0x52f788[0x37]),_0x302c3d=_0x5e09a3(_0x302c3d,_0x51661c,_0x439d66,_0x7f45ae,_0x50fae0,0x6,_0x52f788[0x38]),_0x7f45ae=_0x5e09a3(_0x7f45ae,_0x302c3d,_0x51661c,_0x439d66,_0xf44928,0xa,_0x52f788[0x39]),_0x439d66=_0x5e09a3(_0x439d66,_0x7f45ae,_0x302c3d,_0x51661c,_0x346154,0xf,_0x52f788[0x3a]),_0x51661c=_0x5e09a3(_0x51661c,_0x439d66,_0x7f45ae,_0x302c3d,_0x972ae1,0x15,_0x52f788[0x3b]),_0x302c3d=_0x5e09a3(_0x302c3d,_0x51661c,_0x439d66,_0x7f45ae,_0x3c55a5,0x6,_0x52f788[0x3c]),_0x7f45ae=_0x5e09a3(_0x7f45ae,_0x302c3d,_0x51661c,_0x439d66,_0x2f67d1,0xa,_0x52f788[0x3d]),_0x439d66=_0x5e09a3(_0x439d66,_0x7f45ae,_0x302c3d,_0x51661c,_0xce1df3,0xf,_0x52f788[0x3e]),_0x51661c=_0x5e09a3(_0x51661c,_0x439d66,_0x7f45ae,_0x302c3d,_0x1253f7,0x15,_0x52f788[0x3f]),_0x25bcb2[0x0]=_0x25bcb2[0x0]+_0x302c3d|0x0,_0x25bcb2[0x1]=_0x25bcb2[0x1]+_0x51661c|0x0,_0x25bcb2[0x2]=_0x25bcb2[0x2]+_0x439d66|0x0,_0x25bcb2[0x3]=_0x25bcb2[0x3]+_0x7f45ae|0x0;},'_doFinalize':function(){var _0x5f1cf0=_0x2b0f7b,_0x4513a3=this[_0x5f1cf0(0x10f)],_0x460506=_0x4513a3[_0x5f1cf0(0x222)],_0x4740d5=this['_nDataBytes']*0x8,_0x1e6c72=_0x4513a3[_0x5f1cf0(0x19d)]*0x8;_0x460506[_0x1e6c72>>>0x5]|=0x80<<0x18-_0x1e6c72%0x20;var _0x53c822=_0x532220[_0x5f1cf0(0x235)](_0x4740d5/0x100000000),_0x5cf449=_0x4740d5;_0x460506[(_0x1e6c72+0x40>>>0x9<<0x4)+0xf]=(_0x53c822<<0x8|_0x53c822>>>0x18)&0xff00ff|(_0x53c822<<0x18|_0x53c822>>>0x8)&0xff00ff00,_0x460506[(_0x1e6c72+0x40>>>0x9<<0x4)+0xe]=(_0x5cf449<<0x8|_0x5cf449>>>0x18)&0xff00ff|(_0x5cf449<<0x18|_0x5cf449>>>0x8)&0xff00ff00,_0x4513a3[_0x5f1cf0(0x19d)]=(_0x460506[_0x5f1cf0(0x2f2)]+0x1)*0x4,this[_0x5f1cf0(0xcf)]();for(var _0x2c18fc=this[_0x5f1cf0(0x1a1)],_0x45b077=_0x2c18fc[_0x5f1cf0(0x222)],_0x1a5b33=0x0;_0x1a5b33<0x4;_0x1a5b33++){var _0x44fd4f=_0x45b077[_0x1a5b33];_0x45b077[_0x1a5b33]=(_0x44fd4f<<0x8|_0x44fd4f>>>0x18)&0xff00ff|(_0x44fd4f<<0x18|_0x44fd4f>>>0x8)&0xff00ff00;}return _0x2c18fc;},'clone':function(){var _0x1394c2=_0x2b0f7b,_0x1ab330=_0x1585bc[_0x1394c2(0x23c)][_0x1394c2(0x282)](this);return _0x1ab330['_hash']=this['_hash'][_0x1394c2(0x23c)](),_0x1ab330;}});function _0xd0c93f(_0x55af16,_0x516952,_0x348782,_0x536479,_0x1baf37,_0x7a7ecc,_0x4c71ae){var _0x24d235=_0x55af16+(_0x516952&_0x348782|~_0x516952&_0x536479)+_0x1baf37+_0x4c71ae;return(_0x24d235<<_0x7a7ecc|_0x24d235>>>0x20-_0x7a7ecc)+_0x516952;}function _0xcab08f(_0x29c059,_0xc8b809,_0x3ae2bc,_0x5308e8,_0x51bed6,_0x3e8e22,_0x151975){var _0x544917=_0x29c059+(_0xc8b809&_0x5308e8|_0x3ae2bc&~_0x5308e8)+_0x51bed6+_0x151975;return(_0x544917<<_0x3e8e22|_0x544917>>>0x20-_0x3e8e22)+_0xc8b809;}function _0x349c53(_0x21286b,_0x5ab4f4,_0x25d41,_0x52ab0c,_0x48d728,_0x426e81,_0x3784ca){var _0x2bf6ee=_0x21286b+(_0x5ab4f4^_0x25d41^_0x52ab0c)+_0x48d728+_0x3784ca;return(_0x2bf6ee<<_0x426e81|_0x2bf6ee>>>0x20-_0x426e81)+_0x5ab4f4;}function _0x5e09a3(_0x34d9b2,_0x449177,_0x3021a8,_0x3bea99,_0xfe8548,_0x3e4cbc,_0x21ef7d){var _0x54dc12=_0x34d9b2+(_0x3021a8^(_0x449177|~_0x3bea99))+_0xfe8548+_0x21ef7d;return(_0x54dc12<<_0x3e4cbc|_0x54dc12>>>0x20-_0x3e4cbc)+_0x449177;}_0x5d3283[_0x2b0f7b(0x1a4)]=_0x1585bc[_0x2b0f7b(0x3a8)](_0x5eba2b),_0x5d3283[_0x2b0f7b(0x33a)]=_0x1585bc[_0x2b0f7b(0x2bf)](_0x5eba2b);}(Math),_0x2ea0e1['MD5'];}));}(Ke)),Ke[_0x282b97(0x387)];}var Ye={'exports':{}},qe={'exports':{}},$r=qe['exports'],ti;function Hr(){return ti||(ti=0x1,function(_0x764600,_0xd3334b){(function(_0x45b9dd,_0x1bd815){var _0xd480a6=_0x2984;_0x764600[_0xd480a6(0x387)]=_0x1bd815(ne());}($r,function(_0x26413f){var _0x5481df=_0x2984;return(function(){var _0x2c0cac=_0x2984,_0xf2d34f=_0x26413f,_0x39eafb=_0xf2d34f[_0x2c0cac(0x2f1)],_0x5dab35=_0x39eafb[_0x2c0cac(0x169)],_0x5ea3df=_0x39eafb['Hasher'],_0x494aba=_0xf2d34f[_0x2c0cac(0x314)],_0x14e37c=[],_0xc4bfd1=_0x494aba[_0x2c0cac(0x1e1)]=_0x5ea3df[_0x2c0cac(0x1c5)]({'_doReset':function(){var _0x37226c=_0x2c0cac;this['_hash']=new _0x5dab35[(_0x37226c(0x13d))]([0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0]);},'_doProcessBlock':function(_0x486c2c,_0x469eb7){var _0x49e00e=_0x2c0cac;for(var _0x8e6e94=this['_hash'][_0x49e00e(0x222)],_0x2e4480=_0x8e6e94[0x0],_0x258356=_0x8e6e94[0x1],_0x3289b8=_0x8e6e94[0x2],_0x8447af=_0x8e6e94[0x3],_0x264f35=_0x8e6e94[0x4],_0x24e038=0x0;_0x24e038<0x50;_0x24e038++){if(_0x24e038<0x10)_0x14e37c[_0x24e038]=_0x486c2c[_0x469eb7+_0x24e038]|0x0;else{var _0x371868=_0x14e37c[_0x24e038-0x3]^_0x14e37c[_0x24e038-0x8]^_0x14e37c[_0x24e038-0xe]^_0x14e37c[_0x24e038-0x10];_0x14e37c[_0x24e038]=_0x371868<<0x1|_0x371868>>>0x1f;}var _0x141ca2=(_0x2e4480<<0x5|_0x2e4480>>>0x1b)+_0x264f35+_0x14e37c[_0x24e038];_0x24e038<0x14?_0x141ca2+=(_0x258356&_0x3289b8|~_0x258356&_0x8447af)+0x5a827999:_0x24e038<0x28?_0x141ca2+=(_0x258356^_0x3289b8^_0x8447af)+0x6ed9eba1:_0x24e038<0x3c?_0x141ca2+=(_0x258356&_0x3289b8|_0x258356&_0x8447af|_0x3289b8&_0x8447af)-0x70e44324:_0x141ca2+=(_0x258356^_0x3289b8^_0x8447af)-0x359d3e2a,_0x264f35=_0x8447af,_0x8447af=_0x3289b8,_0x3289b8=_0x258356<<0x1e|_0x258356>>>0x2,_0x258356=_0x2e4480,_0x2e4480=_0x141ca2;}_0x8e6e94[0x0]=_0x8e6e94[0x0]+_0x2e4480|0x0,_0x8e6e94[0x1]=_0x8e6e94[0x1]+_0x258356|0x0,_0x8e6e94[0x2]=_0x8e6e94[0x2]+_0x3289b8|0x0,_0x8e6e94[0x3]=_0x8e6e94[0x3]+_0x8447af|0x0,_0x8e6e94[0x4]=_0x8e6e94[0x4]+_0x264f35|0x0;},'_doFinalize':function(){var _0xed93dc=_0x2c0cac,_0x15ee5b=this[_0xed93dc(0x10f)],_0x268f5d=_0x15ee5b[_0xed93dc(0x222)],_0x5f22dd=this[_0xed93dc(0x121)]*0x8,_0x2102b2=_0x15ee5b[_0xed93dc(0x19d)]*0x8;return _0x268f5d[_0x2102b2>>>0x5]|=0x80<<0x18-_0x2102b2%0x20,_0x268f5d[(_0x2102b2+0x40>>>0x9<<0x4)+0xe]=Math['floor'](_0x5f22dd/0x100000000),_0x268f5d[(_0x2102b2+0x40>>>0x9<<0x4)+0xf]=_0x5f22dd,_0x15ee5b[_0xed93dc(0x19d)]=_0x268f5d[_0xed93dc(0x2f2)]*0x4,this[_0xed93dc(0xcf)](),this['_hash'];},'clone':function(){var _0x61a989=_0x2c0cac,_0x159433=_0x5ea3df[_0x61a989(0x23c)][_0x61a989(0x282)](this);return _0x159433[_0x61a989(0x1a1)]=this[_0x61a989(0x1a1)][_0x61a989(0x23c)](),_0x159433;}});_0xf2d34f['SHA1']=_0x5ea3df[_0x2c0cac(0x3a8)](_0xc4bfd1),_0xf2d34f['HmacSHA1']=_0x5ea3df[_0x2c0cac(0x2bf)](_0xc4bfd1);}()),_0x26413f[_0x5481df(0x1e1)];}));}(qe)),qe['exports'];}var ze={'exports':{}},kr=ze[_0x3589bd(0x387)],ii;function jr(){return ii||(ii=0x1,function(_0x565d9f,_0x28bbf7){(function(_0x4dffcc,_0x15c4a6){var _0x2277ca=_0x2984;_0x565d9f[_0x2277ca(0x387)]=_0x15c4a6(ne());}(kr,function(_0x52815b){(function(){var _0x51cf7d=_0x2984,_0x2251ff=_0x52815b,_0x444dd6=_0x2251ff[_0x51cf7d(0x2f1)],_0x12dcd5=_0x444dd6[_0x51cf7d(0x151)],_0x17e97f=_0x2251ff[_0x51cf7d(0x134)],_0x57b55b=_0x17e97f['Utf8'],_0x49c8cd=_0x2251ff['algo'];_0x49c8cd[_0x51cf7d(0x10a)]=_0x12dcd5[_0x51cf7d(0x1c5)]({'init':function(_0x3ee09a,_0x4c6c58){var _0x44d4b8=_0x51cf7d;_0x3ee09a=this[_0x44d4b8(0x3ac)]=new _0x3ee09a[(_0x44d4b8(0x13d))](),typeof _0x4c6c58=='string'&&(_0x4c6c58=_0x57b55b[_0x44d4b8(0x271)](_0x4c6c58));var _0x4f329e=_0x3ee09a['blockSize'],_0x2cde1c=_0x4f329e*0x4;_0x4c6c58[_0x44d4b8(0x19d)]>_0x2cde1c&&(_0x4c6c58=_0x3ee09a[_0x44d4b8(0x268)](_0x4c6c58)),_0x4c6c58['clamp']();for(var _0x2a334f=this[_0x44d4b8(0x1ef)]=_0x4c6c58[_0x44d4b8(0x23c)](),_0x130f69=this[_0x44d4b8(0x171)]=_0x4c6c58['clone'](),_0x176579=_0x2a334f['words'],_0x307ca9=_0x130f69[_0x44d4b8(0x222)],_0x2ead74=0x0;_0x2ead74<_0x4f329e;_0x2ead74++)_0x176579[_0x2ead74]^=0x5c5c5c5c,_0x307ca9[_0x2ead74]^=0x36363636;_0x2a334f[_0x44d4b8(0x19d)]=_0x130f69[_0x44d4b8(0x19d)]=_0x2cde1c,this[_0x44d4b8(0x34c)]();},'reset':function(){var _0x1e88cd=_0x51cf7d,_0x1d063d=this[_0x1e88cd(0x3ac)];_0x1d063d[_0x1e88cd(0x34c)](),_0x1d063d[_0x1e88cd(0x3a9)](this[_0x1e88cd(0x171)]);},'update':function(_0x55ea13){var _0x42ce54=_0x51cf7d;return this[_0x42ce54(0x3ac)][_0x42ce54(0x3a9)](_0x55ea13),this;},'finalize':function(_0x43c47b){var _0x4395d9=_0x51cf7d,_0x4346aa=this[_0x4395d9(0x3ac)],_0xb62325=_0x4346aa[_0x4395d9(0x268)](_0x43c47b);_0x4346aa[_0x4395d9(0x34c)]();var _0x1425cb=_0x4346aa[_0x4395d9(0x268)](this['_oKey'][_0x4395d9(0x23c)]()[_0x4395d9(0x10d)](_0xb62325));return _0x1425cb;}});}());}));}(ze)),ze['exports'];}var Br=Ye[_0x3589bd(0x387)],ni;function Ui(){var _0x58b09b=_0x3589bd;return ni||(ni=0x1,function(_0x1e19be,_0x4f27b2){(function(_0x33fd0e,_0x24678a,_0x250d7d){_0x1e19be['exports']=_0x24678a(ne(),Hr(),jr());}(Br,function(_0x3c7777){var _0x1e803a=_0x2984;return(function(){var _0x33b289=_0x2984,_0x1f14e7=_0x3c7777,_0x3773bb=_0x1f14e7[_0x33b289(0x2f1)],_0x219487=_0x3773bb[_0x33b289(0x151)],_0x1364df=_0x3773bb[_0x33b289(0x169)],_0x859a99=_0x1f14e7[_0x33b289(0x314)],_0x369d9b=_0x859a99[_0x33b289(0x1a4)],_0x26464c=_0x859a99['EvpKDF']=_0x219487[_0x33b289(0x1c5)]({'cfg':_0x219487[_0x33b289(0x1c5)]({'keySize':0x80/0x20,'hasher':_0x369d9b,'iterations':0x1}),'init':function(_0x31015b){var _0x3c88ae=_0x33b289;this[_0x3c88ae(0x2a8)]=this[_0x3c88ae(0x2a8)][_0x3c88ae(0x1c5)](_0x31015b);},'compute':function(_0x38af94,_0x43336c){var _0x19f2e4=_0x33b289;for(var _0x3c35ab,_0xe58d57=this[_0x19f2e4(0x2a8)],_0x4df450=_0xe58d57['hasher'][_0x19f2e4(0x228)](),_0x21429a=_0x1364df[_0x19f2e4(0x228)](),_0x24cb69=_0x21429a[_0x19f2e4(0x222)],_0x159cd6=_0xe58d57[_0x19f2e4(0x31c)],_0x54845e=_0xe58d57[_0x19f2e4(0x280)];_0x24cb69[_0x19f2e4(0x2f2)]<_0x159cd6;){_0x3c35ab&&_0x4df450[_0x19f2e4(0x3a9)](_0x3c35ab),_0x3c35ab=_0x4df450['update'](_0x38af94)[_0x19f2e4(0x268)](_0x43336c),_0x4df450[_0x19f2e4(0x34c)]();for(var _0x5872c0=0x1;_0x5872c0<_0x54845e;_0x5872c0++)_0x3c35ab=_0x4df450[_0x19f2e4(0x268)](_0x3c35ab),_0x4df450[_0x19f2e4(0x34c)]();_0x21429a['concat'](_0x3c35ab);}return _0x21429a[_0x19f2e4(0x19d)]=_0x159cd6*0x4,_0x21429a;}});_0x1f14e7[_0x33b289(0x2ec)]=function(_0x1b4a1d,_0x287ef1,_0x54c008){var _0x496b4b=_0x33b289;return _0x26464c[_0x496b4b(0x228)](_0x54c008)[_0x496b4b(0x16c)](_0x1b4a1d,_0x287ef1);};}()),_0x3c7777[_0x1e803a(0x2ec)];}));}(Ye)),Ye[_0x58b09b(0x387)];}var Je={'exports':{}},Fr=Je['exports'],ri;function Ai(){var _0x5ee734=_0x3589bd;return ri||(ri=0x1,function(_0x5b6efc,_0x131742){(function(_0x3fa195,_0x387cd4,_0x1c9936){_0x5b6efc['exports']=_0x387cd4(ne(),Ui());}(Fr,function(_0x5c7fc5){var _0x1e826f=_0x2984;_0x5c7fc5[_0x1e826f(0x2f1)][_0x1e826f(0x18e)]||function(_0x119bc9){var _0x4297cc=_0x1e826f,_0x41c099=_0x5c7fc5,_0xdcb738=_0x41c099['lib'],_0x498c3c=_0xdcb738['Base'],_0xa16d47=_0xdcb738[_0x4297cc(0x169)],_0x2ce690=_0xdcb738[_0x4297cc(0x2a2)],_0x3e7983=_0x41c099[_0x4297cc(0x134)];_0x3e7983[_0x4297cc(0x2b7)];var _0x316afb=_0x3e7983[_0x4297cc(0x2ad)],_0x933f6d=_0x41c099[_0x4297cc(0x314)],_0x3f8f46=_0x933f6d[_0x4297cc(0x2ec)],_0x343b4b=_0xdcb738['Cipher']=_0x2ce690['extend']({'cfg':_0x498c3c[_0x4297cc(0x1c5)](),'createEncryptor':function(_0x4e4988,_0x221e59){var _0x3a85fa=_0x4297cc;return this['create'](this[_0x3a85fa(0x187)],_0x4e4988,_0x221e59);},'createDecryptor':function(_0x2419a2,_0x53e444){var _0xec29a7=_0x4297cc;return this[_0xec29a7(0x228)](this['_DEC_XFORM_MODE'],_0x2419a2,_0x53e444);},'init':function(_0xc74592,_0xe58abf,_0x3e6790){var _0x1f16d4=_0x4297cc;this[_0x1f16d4(0x2a8)]=this['cfg'][_0x1f16d4(0x1c5)](_0x3e6790),this[_0x1f16d4(0x182)]=_0xc74592,this[_0x1f16d4(0xd7)]=_0xe58abf,this[_0x1f16d4(0x34c)]();},'reset':function(){var _0x41c3be=_0x4297cc;_0x2ce690[_0x41c3be(0x34c)][_0x41c3be(0x282)](this),this[_0x41c3be(0x310)]();},'process':function(_0x4faff1){var _0x1de7be=_0x4297cc;return this[_0x1de7be(0x1d4)](_0x4faff1),this['_process']();},'finalize':function(_0x53f5a4){var _0x1d18a8=_0x4297cc;_0x53f5a4&&this['_append'](_0x53f5a4);var _0x1eb88f=this[_0x1d18a8(0x273)]();return _0x1eb88f;},'keySize':0x80/0x20,'ivSize':0x80/0x20,'_ENC_XFORM_MODE':0x1,'_DEC_XFORM_MODE':0x2,'_createHelper':(function(){function _0xf57a6c(_0x5ae29e){var _0x4a089a=_0x2984;return typeof _0x5ae29e==_0x4a089a(0x25c)?_0x5b7a4d:_0x528892;}return function(_0x590aeb){return{'encrypt':function(_0x1ae58d,_0x22c4f5,_0x29dec1){var _0x54694e=_0x2984;return _0xf57a6c(_0x22c4f5)[_0x54694e(0x212)](_0x590aeb,_0x1ae58d,_0x22c4f5,_0x29dec1);},'decrypt':function(_0x3e3881,_0x207586,_0x2323ad){var _0x3b45b1=_0x2984;return _0xf57a6c(_0x207586)[_0x3b45b1(0x15f)](_0x590aeb,_0x3e3881,_0x207586,_0x2323ad);}};};}())});_0xdcb738[_0x4297cc(0x205)]=_0x343b4b[_0x4297cc(0x1c5)]({'_doFinalize':function(){var _0xde1964=_0x4297cc,_0xcf6930=this[_0xde1964(0xcf)](!0x0);return _0xcf6930;},'blockSize':0x1});var _0x351bf3=_0x41c099[_0x4297cc(0xcd)]={},_0x3c1360=_0xdcb738[_0x4297cc(0x1bb)]=_0x498c3c[_0x4297cc(0x1c5)]({'createEncryptor':function(_0x3b76bb,_0x5cb6a3){var _0xbe6a5c=_0x4297cc;return this[_0xbe6a5c(0x14b)][_0xbe6a5c(0x228)](_0x3b76bb,_0x5cb6a3);},'createDecryptor':function(_0x461a5c,_0x50fa09){var _0x43388d=_0x4297cc;return this[_0x43388d(0x2f4)][_0x43388d(0x228)](_0x461a5c,_0x50fa09);},'init':function(_0x1bf7aa,_0x1d66c5){var _0x5fbf92=_0x4297cc;this[_0x5fbf92(0x394)]=_0x1bf7aa,this[_0x5fbf92(0x1d1)]=_0x1d66c5;}}),_0x47fac5=_0x351bf3[_0x4297cc(0x15a)]=(function(){var _0x2842c6=_0x4297cc,_0x12d4d5=_0x3c1360[_0x2842c6(0x1c5)]();_0x12d4d5[_0x2842c6(0x14b)]=_0x12d4d5[_0x2842c6(0x1c5)]({'processBlock':function(_0x3554e6,_0x2567a2){var _0x1c3a74=_0x2842c6,_0x34dd9e=this[_0x1c3a74(0x394)],_0x199923=_0x34dd9e[_0x1c3a74(0x377)];_0x30ecb6[_0x1c3a74(0x282)](this,_0x3554e6,_0x2567a2,_0x199923),_0x34dd9e[_0x1c3a74(0x362)](_0x3554e6,_0x2567a2),this[_0x1c3a74(0x15d)]=_0x3554e6[_0x1c3a74(0x16a)](_0x2567a2,_0x2567a2+_0x199923);}}),_0x12d4d5['Decryptor']=_0x12d4d5[_0x2842c6(0x1c5)]({'processBlock':function(_0x4d7078,_0x4b697f){var _0x170a10=_0x2842c6,_0x31324f=this[_0x170a10(0x394)],_0x48ca08=_0x31324f[_0x170a10(0x377)],_0x23ef5b=_0x4d7078['slice'](_0x4b697f,_0x4b697f+_0x48ca08);_0x31324f[_0x170a10(0x156)](_0x4d7078,_0x4b697f),_0x30ecb6['call'](this,_0x4d7078,_0x4b697f,_0x48ca08),this['_prevBlock']=_0x23ef5b;}});function _0x30ecb6(_0xf7c250,_0x217dc9,_0x40b3b2){var _0x3f0351=_0x2842c6,_0x53e626,_0x552768=this[_0x3f0351(0x1d1)];_0x552768?(_0x53e626=_0x552768,this[_0x3f0351(0x1d1)]=_0x119bc9):_0x53e626=this['_prevBlock'];for(var _0xe21a44=0x0;_0xe21a44<_0x40b3b2;_0xe21a44++)_0xf7c250[_0x217dc9+_0xe21a44]^=_0x53e626[_0xe21a44];}return _0x12d4d5;}()),_0x404d6c=_0x41c099[_0x4297cc(0xf0)]={},_0x2751ab=_0x404d6c[_0x4297cc(0xf5)]={'pad':function(_0x3e343d,_0x480495){var _0x1a0010=_0x4297cc;for(var _0x4270f6=_0x480495*0x4,_0x2c46c3=_0x4270f6-_0x3e343d[_0x1a0010(0x19d)]%_0x4270f6,_0x2dcaed=_0x2c46c3<<0x18|_0x2c46c3<<0x10|_0x2c46c3<<0x8|_0x2c46c3,_0x5b3105=[],_0x10db5b=0x0;_0x10db5b<_0x2c46c3;_0x10db5b+=0x4)_0x5b3105[_0x1a0010(0x17a)](_0x2dcaed);var _0x3ee499=_0xa16d47['create'](_0x5b3105,_0x2c46c3);_0x3e343d[_0x1a0010(0x10d)](_0x3ee499);},'unpad':function(_0x1088c8){var _0x27cd63=_0x4297cc,_0xebd4b4=_0x1088c8['words'][_0x1088c8[_0x27cd63(0x19d)]-0x1>>>0x2]&0xff;_0x1088c8[_0x27cd63(0x19d)]-=_0xebd4b4;}};_0xdcb738[_0x4297cc(0x18a)]=_0x343b4b['extend']({'cfg':_0x343b4b[_0x4297cc(0x2a8)][_0x4297cc(0x1c5)]({'mode':_0x47fac5,'padding':_0x2751ab}),'reset':function(){var _0x47017b=_0x4297cc,_0x5586ce;_0x343b4b[_0x47017b(0x34c)][_0x47017b(0x282)](this);var _0x20930b=this[_0x47017b(0x2a8)],_0x5225e2=_0x20930b['iv'],_0x3eea39=_0x20930b[_0x47017b(0xcd)];this[_0x47017b(0x182)]==this[_0x47017b(0x187)]?_0x5586ce=_0x3eea39[_0x47017b(0x349)]:(_0x5586ce=_0x3eea39['createDecryptor'],this['_minBufferSize']=0x1),this[_0x47017b(0x21f)]&&this[_0x47017b(0x21f)]['__creator']==_0x5586ce?this[_0x47017b(0x21f)][_0x47017b(0x13d)](this,_0x5225e2&&_0x5225e2[_0x47017b(0x222)]):(this[_0x47017b(0x21f)]=_0x5586ce[_0x47017b(0x282)](_0x3eea39,this,_0x5225e2&&_0x5225e2[_0x47017b(0x222)]),this[_0x47017b(0x21f)]['__creator']=_0x5586ce);},'_doProcessBlock':function(_0x768cae,_0x3a707a){var _0x230133=_0x4297cc;this[_0x230133(0x21f)][_0x230133(0x2d9)](_0x768cae,_0x3a707a);},'_doFinalize':function(){var _0x232d05=_0x4297cc,_0x49ed10,_0xdabb8a=this[_0x232d05(0x2a8)][_0x232d05(0x12a)];return this['_xformMode']==this['_ENC_XFORM_MODE']?(_0xdabb8a[_0x232d05(0xf0)](this[_0x232d05(0x10f)],this[_0x232d05(0x377)]),_0x49ed10=this['_process'](!0x0)):(_0x49ed10=this[_0x232d05(0xcf)](!0x0),_0xdabb8a[_0x232d05(0x1fa)](_0x49ed10)),_0x49ed10;},'blockSize':0x80/0x20});var _0x134f44=_0xdcb738[_0x4297cc(0xca)]=_0x498c3c[_0x4297cc(0x1c5)]({'init':function(_0x4321fc){this['mixIn'](_0x4321fc);},'toString':function(_0x543dff){var _0x238782=_0x4297cc;return(_0x543dff||this[_0x238782(0x371)])[_0x238782(0x388)](this);}}),_0x143e9e=_0x41c099[_0x4297cc(0x289)]={},_0x5e1f7c=_0x143e9e['OpenSSL']={'stringify':function(_0x3d85f1){var _0x1c53e3=_0x4297cc,_0x410ce7,_0xfe49d4=_0x3d85f1[_0x1c53e3(0x1b7)],_0x5e39ae=_0x3d85f1['salt'];return _0x5e39ae?_0x410ce7=_0xa16d47[_0x1c53e3(0x228)]([0x53616c74,0x65645f5f])[_0x1c53e3(0x10d)](_0x5e39ae)[_0x1c53e3(0x10d)](_0xfe49d4):_0x410ce7=_0xfe49d4,_0x410ce7[_0x1c53e3(0x194)](_0x316afb);},'parse':function(_0x932ac7){var _0x3bdefa=_0x4297cc,_0x558893,_0x41e4a1=_0x316afb[_0x3bdefa(0x271)](_0x932ac7),_0x174618=_0x41e4a1[_0x3bdefa(0x222)];return _0x174618[0x0]==0x53616c74&&_0x174618[0x1]==0x65645f5f&&(_0x558893=_0xa16d47[_0x3bdefa(0x228)](_0x174618['slice'](0x2,0x4)),_0x174618['splice'](0x0,0x4),_0x41e4a1[_0x3bdefa(0x19d)]-=0x10),_0x134f44[_0x3bdefa(0x228)]({'ciphertext':_0x41e4a1,'salt':_0x558893});}},_0x528892=_0xdcb738[_0x4297cc(0x32f)]=_0x498c3c[_0x4297cc(0x1c5)]({'cfg':_0x498c3c[_0x4297cc(0x1c5)]({'format':_0x5e1f7c}),'encrypt':function(_0x344143,_0x2d41a9,_0x380e5b,_0x485e79){var _0x572a45=_0x4297cc;_0x485e79=this[_0x572a45(0x2a8)]['extend'](_0x485e79);var _0x2c5223=_0x344143[_0x572a45(0x349)](_0x380e5b,_0x485e79),_0x10180d=_0x2c5223['finalize'](_0x2d41a9),_0x15452e=_0x2c5223['cfg'];return _0x134f44['create']({'ciphertext':_0x10180d,'key':_0x380e5b,'iv':_0x15452e['iv'],'algorithm':_0x344143,'mode':_0x15452e[_0x572a45(0xcd)],'padding':_0x15452e[_0x572a45(0x12a)],'blockSize':_0x344143['blockSize'],'formatter':_0x485e79['format']});},'decrypt':function(_0x5b325a,_0x4a9893,_0x3f30c8,_0x188ce1){var _0x1ca87=_0x4297cc;_0x188ce1=this[_0x1ca87(0x2a8)][_0x1ca87(0x1c5)](_0x188ce1),_0x4a9893=this[_0x1ca87(0x385)](_0x4a9893,_0x188ce1['format']);var _0x4dd99f=_0x5b325a[_0x1ca87(0x354)](_0x3f30c8,_0x188ce1)[_0x1ca87(0x268)](_0x4a9893[_0x1ca87(0x1b7)]);return _0x4dd99f;},'_parse':function(_0x3252b4,_0x59c1e9){var _0xf31dd9=_0x4297cc;return typeof _0x3252b4==_0xf31dd9(0x25c)?_0x59c1e9['parse'](_0x3252b4,this):_0x3252b4;}}),_0x80464a=_0x41c099[_0x4297cc(0x124)]={},_0x32d8e5=_0x80464a[_0x4297cc(0x294)]={'execute':function(_0x5e39ad,_0x2835fe,_0x41a34e,_0x1424bd,_0x2f3628){var _0x182f1a=_0x4297cc;if(_0x1424bd||(_0x1424bd=_0xa16d47[_0x182f1a(0xa1)](0x40/0x8)),_0x2f3628)var _0x339918=_0x3f8f46['create']({'keySize':_0x2835fe+_0x41a34e,'hasher':_0x2f3628})[_0x182f1a(0x16c)](_0x5e39ad,_0x1424bd);else var _0x339918=_0x3f8f46[_0x182f1a(0x228)]({'keySize':_0x2835fe+_0x41a34e})[_0x182f1a(0x16c)](_0x5e39ad,_0x1424bd);var _0x2846e7=_0xa16d47[_0x182f1a(0x228)](_0x339918['words'][_0x182f1a(0x16a)](_0x2835fe),_0x41a34e*0x4);return _0x339918['sigBytes']=_0x2835fe*0x4,_0x134f44[_0x182f1a(0x228)]({'key':_0x339918,'iv':_0x2846e7,'salt':_0x1424bd});}},_0x5b7a4d=_0xdcb738[_0x4297cc(0x2e2)]=_0x528892['extend']({'cfg':_0x528892['cfg'][_0x4297cc(0x1c5)]({'kdf':_0x32d8e5}),'encrypt':function(_0x1e3783,_0x2ea202,_0x52f854,_0x2c963e){var _0x30f9bf=_0x4297cc;_0x2c963e=this[_0x30f9bf(0x2a8)][_0x30f9bf(0x1c5)](_0x2c963e);var _0x379b14=_0x2c963e[_0x30f9bf(0x124)][_0x30f9bf(0x30d)](_0x52f854,_0x1e3783[_0x30f9bf(0x31c)],_0x1e3783[_0x30f9bf(0x27f)],_0x2c963e[_0x30f9bf(0x106)],_0x2c963e[_0x30f9bf(0x2ae)]);_0x2c963e['iv']=_0x379b14['iv'];var _0xc6bb39=_0x528892[_0x30f9bf(0x212)][_0x30f9bf(0x282)](this,_0x1e3783,_0x2ea202,_0x379b14[_0x30f9bf(0x174)],_0x2c963e);return _0xc6bb39['mixIn'](_0x379b14),_0xc6bb39;},'decrypt':function(_0xca5e51,_0x6ba818,_0xb2135d,_0x2322b7){var _0x43b549=_0x4297cc;_0x2322b7=this[_0x43b549(0x2a8)][_0x43b549(0x1c5)](_0x2322b7),_0x6ba818=this[_0x43b549(0x385)](_0x6ba818,_0x2322b7[_0x43b549(0x289)]);var _0x5237d4=_0x2322b7[_0x43b549(0x124)][_0x43b549(0x30d)](_0xb2135d,_0xca5e51[_0x43b549(0x31c)],_0xca5e51['ivSize'],_0x6ba818[_0x43b549(0x106)],_0x2322b7[_0x43b549(0x2ae)]);_0x2322b7['iv']=_0x5237d4['iv'];var _0x3403de=_0x528892['decrypt'][_0x43b549(0x282)](this,_0xca5e51,_0x6ba818,_0x5237d4[_0x43b549(0x174)],_0x2322b7);return _0x3403de;}});}();}));}(Je)),Je[_0x5ee734(0x387)];}var Vr=Ve['exports'],si;function Gr(){return si||(si=0x1,function(_0x280865,_0x127716){(function(_0x3c8de4,_0x1d5eb6,_0x4e71f3){_0x280865['exports']=_0x1d5eb6(ne(),wi(),Mr(),Ui(),Ai());}(Vr,function(_0x5f48f5){var _0x58f90f=_0x2984;return(function(){var _0x481252=_0x2984,_0x46b1ce=_0x5f48f5,_0x4da0b2=_0x46b1ce[_0x481252(0x2f1)],_0x431897=_0x4da0b2[_0x481252(0x18a)],_0x291126=_0x46b1ce['algo'],_0x4a9e51=[],_0xdabc14=[],_0x1c55ee=[],_0x66dbd6=[],_0x2071ea=[],_0x396078=[],_0x368415=[],_0x2351a9=[],_0x23f459=[],_0x234801=[];(function(){for(var _0x5962cb=[],_0x13e24f=0x0;_0x13e24f<0x100;_0x13e24f++)_0x13e24f<0x80?_0x5962cb[_0x13e24f]=_0x13e24f<<0x1:_0x5962cb[_0x13e24f]=_0x13e24f<<0x1^0x11b;for(var _0x54633c=0x0,_0x132e97=0x0,_0x13e24f=0x0;_0x13e24f<0x100;_0x13e24f++){var _0x3590e9=_0x132e97^_0x132e97<<0x1^_0x132e97<<0x2^_0x132e97<<0x3^_0x132e97<<0x4;_0x3590e9=_0x3590e9>>>0x8^_0x3590e9&0xff^0x63,_0x4a9e51[_0x54633c]=_0x3590e9,_0xdabc14[_0x3590e9]=_0x54633c;var _0x8c7cf5=_0x5962cb[_0x54633c],_0x2f209f=_0x5962cb[_0x8c7cf5],_0x4568f2=_0x5962cb[_0x2f209f],_0x271c92=_0x5962cb[_0x3590e9]*0x101^_0x3590e9*0x1010100;_0x1c55ee[_0x54633c]=_0x271c92<<0x18|_0x271c92>>>0x8,_0x66dbd6[_0x54633c]=_0x271c92<<0x10|_0x271c92>>>0x10,_0x2071ea[_0x54633c]=_0x271c92<<0x8|_0x271c92>>>0x18,_0x396078[_0x54633c]=_0x271c92;var _0x271c92=_0x4568f2*0x1010101^_0x2f209f*0x10001^_0x8c7cf5*0x101^_0x54633c*0x1010100;_0x368415[_0x3590e9]=_0x271c92<<0x18|_0x271c92>>>0x8,_0x2351a9[_0x3590e9]=_0x271c92<<0x10|_0x271c92>>>0x10,_0x23f459[_0x3590e9]=_0x271c92<<0x8|_0x271c92>>>0x18,_0x234801[_0x3590e9]=_0x271c92,_0x54633c?(_0x54633c=_0x8c7cf5^_0x5962cb[_0x5962cb[_0x5962cb[_0x4568f2^_0x8c7cf5]]],_0x132e97^=_0x5962cb[_0x5962cb[_0x132e97]]):_0x54633c=_0x132e97=0x1;}}());var _0x5b9db2=[0x0,0x1,0x2,0x4,0x8,0x10,0x20,0x40,0x80,0x1b,0x36],_0x3c275e=_0x291126['AES']=_0x431897[_0x481252(0x1c5)]({'_doReset':function(){var _0xa8cb4d=_0x481252,_0x22f39b;if(!(this[_0xa8cb4d(0x164)]&&this['_keyPriorReset']===this[_0xa8cb4d(0xd7)])){for(var _0x6e0287=this[_0xa8cb4d(0x100)]=this[_0xa8cb4d(0xd7)],_0x4f9fa4=_0x6e0287[_0xa8cb4d(0x222)],_0x388889=_0x6e0287[_0xa8cb4d(0x19d)]/0x4,_0x7eb2aa=this[_0xa8cb4d(0x164)]=_0x388889+0x6,_0xa4a9cd=(_0x7eb2aa+0x1)*0x4,_0x16960d=this[_0xa8cb4d(0x1db)]=[],_0x56ac11=0x0;_0x56ac11<_0xa4a9cd;_0x56ac11++)_0x56ac11<_0x388889?_0x16960d[_0x56ac11]=_0x4f9fa4[_0x56ac11]:(_0x22f39b=_0x16960d[_0x56ac11-0x1],_0x56ac11%_0x388889?_0x388889>0x6&&_0x56ac11%_0x388889==0x4&&(_0x22f39b=_0x4a9e51[_0x22f39b>>>0x18]<<0x18|_0x4a9e51[_0x22f39b>>>0x10&0xff]<<0x10|_0x4a9e51[_0x22f39b>>>0x8&0xff]<<0x8|_0x4a9e51[_0x22f39b&0xff]):(_0x22f39b=_0x22f39b<<0x8|_0x22f39b>>>0x18,_0x22f39b=_0x4a9e51[_0x22f39b>>>0x18]<<0x18|_0x4a9e51[_0x22f39b>>>0x10&0xff]<<0x10|_0x4a9e51[_0x22f39b>>>0x8&0xff]<<0x8|_0x4a9e51[_0x22f39b&0xff],_0x22f39b^=_0x5b9db2[_0x56ac11/_0x388889|0x0]<<0x18),_0x16960d[_0x56ac11]=_0x16960d[_0x56ac11-_0x388889]^_0x22f39b);for(var _0x52058a=this[_0xa8cb4d(0x192)]=[],_0x4b090e=0x0;_0x4b090e<_0xa4a9cd;_0x4b090e++){var _0x56ac11=_0xa4a9cd-_0x4b090e;if(_0x4b090e%0x4)var _0x22f39b=_0x16960d[_0x56ac11];else var _0x22f39b=_0x16960d[_0x56ac11-0x4];_0x4b090e<0x4||_0x56ac11<=0x4?_0x52058a[_0x4b090e]=_0x22f39b:_0x52058a[_0x4b090e]=_0x368415[_0x4a9e51[_0x22f39b>>>0x18]]^_0x2351a9[_0x4a9e51[_0x22f39b>>>0x10&0xff]]^_0x23f459[_0x4a9e51[_0x22f39b>>>0x8&0xff]]^_0x234801[_0x4a9e51[_0x22f39b&0xff]];}}},'encryptBlock':function(_0x297b4f,_0x237368){var _0x35399c=_0x481252;this[_0x35399c(0x348)](_0x297b4f,_0x237368,this['_keySchedule'],_0x1c55ee,_0x66dbd6,_0x2071ea,_0x396078,_0x4a9e51);},'decryptBlock':function(_0x29c524,_0x1d21d1){var _0x316191=_0x481252,_0x5991ab=_0x29c524[_0x1d21d1+0x1];_0x29c524[_0x1d21d1+0x1]=_0x29c524[_0x1d21d1+0x3],_0x29c524[_0x1d21d1+0x3]=_0x5991ab,this[_0x316191(0x348)](_0x29c524,_0x1d21d1,this[_0x316191(0x192)],_0x368415,_0x2351a9,_0x23f459,_0x234801,_0xdabc14);var _0x5991ab=_0x29c524[_0x1d21d1+0x1];_0x29c524[_0x1d21d1+0x1]=_0x29c524[_0x1d21d1+0x3],_0x29c524[_0x1d21d1+0x3]=_0x5991ab;},'_doCryptBlock':function(_0x14e0a2,_0x2ea27e,_0x1526a7,_0x483dab,_0x302e1e,_0x5cb874,_0x2b326e,_0x56396f){var _0x56bbbb=_0x481252;for(var _0x124e39=this[_0x56bbbb(0x164)],_0x2f3177=_0x14e0a2[_0x2ea27e]^_0x1526a7[0x0],_0x2082a4=_0x14e0a2[_0x2ea27e+0x1]^_0x1526a7[0x1],_0x3f06f7=_0x14e0a2[_0x2ea27e+0x2]^_0x1526a7[0x2],_0x1a1596=_0x14e0a2[_0x2ea27e+0x3]^_0x1526a7[0x3],_0x2cba15=0x4,_0x2568c0=0x1;_0x2568c0<_0x124e39;_0x2568c0++){var _0x289e22=_0x483dab[_0x2f3177>>>0x18]^_0x302e1e[_0x2082a4>>>0x10&0xff]^_0x5cb874[_0x3f06f7>>>0x8&0xff]^_0x2b326e[_0x1a1596&0xff]^_0x1526a7[_0x2cba15++],_0x4315cc=_0x483dab[_0x2082a4>>>0x18]^_0x302e1e[_0x3f06f7>>>0x10&0xff]^_0x5cb874[_0x1a1596>>>0x8&0xff]^_0x2b326e[_0x2f3177&0xff]^_0x1526a7[_0x2cba15++],_0xa5176f=_0x483dab[_0x3f06f7>>>0x18]^_0x302e1e[_0x1a1596>>>0x10&0xff]^_0x5cb874[_0x2f3177>>>0x8&0xff]^_0x2b326e[_0x2082a4&0xff]^_0x1526a7[_0x2cba15++],_0xa556a7=_0x483dab[_0x1a1596>>>0x18]^_0x302e1e[_0x2f3177>>>0x10&0xff]^_0x5cb874[_0x2082a4>>>0x8&0xff]^_0x2b326e[_0x3f06f7&0xff]^_0x1526a7[_0x2cba15++];_0x2f3177=_0x289e22,_0x2082a4=_0x4315cc,_0x3f06f7=_0xa5176f,_0x1a1596=_0xa556a7;}var _0x289e22=(_0x56396f[_0x2f3177>>>0x18]<<0x18|_0x56396f[_0x2082a4>>>0x10&0xff]<<0x10|_0x56396f[_0x3f06f7>>>0x8&0xff]<<0x8|_0x56396f[_0x1a1596&0xff])^_0x1526a7[_0x2cba15++],_0x4315cc=(_0x56396f[_0x2082a4>>>0x18]<<0x18|_0x56396f[_0x3f06f7>>>0x10&0xff]<<0x10|_0x56396f[_0x1a1596>>>0x8&0xff]<<0x8|_0x56396f[_0x2f3177&0xff])^_0x1526a7[_0x2cba15++],_0xa5176f=(_0x56396f[_0x3f06f7>>>0x18]<<0x18|_0x56396f[_0x1a1596>>>0x10&0xff]<<0x10|_0x56396f[_0x2f3177>>>0x8&0xff]<<0x8|_0x56396f[_0x2082a4&0xff])^_0x1526a7[_0x2cba15++],_0xa556a7=(_0x56396f[_0x1a1596>>>0x18]<<0x18|_0x56396f[_0x2f3177>>>0x10&0xff]<<0x10|_0x56396f[_0x2082a4>>>0x8&0xff]<<0x8|_0x56396f[_0x3f06f7&0xff])^_0x1526a7[_0x2cba15++];_0x14e0a2[_0x2ea27e]=_0x289e22,_0x14e0a2[_0x2ea27e+0x1]=_0x4315cc,_0x14e0a2[_0x2ea27e+0x2]=_0xa5176f,_0x14e0a2[_0x2ea27e+0x3]=_0xa556a7;},'keySize':0x100/0x20});_0x46b1ce[_0x481252(0x167)]=_0x431897[_0x481252(0x3a8)](_0x3c275e);}()),_0x5f48f5[_0x58f90f(0x167)];}));}(Ve)),Ve['exports'];}var Wr=Gr();const Kr=ke(Wr);var Yr=wi();const oi=ke(Yr);var Xe={'exports':{}},qr=Xe['exports'],ai;function zr(){var _0x5fed75=_0x3589bd;return ai||(ai=0x1,function(_0x4d2576,_0x4ec0dd){(function(_0x289636,_0x2c42dd){var _0x710bd4=_0x2984;_0x4d2576[_0x710bd4(0x387)]=_0x2c42dd(ne());}(qr,function(_0x322dc2){var _0x4950fe=_0x2984;return _0x322dc2[_0x4950fe(0x134)][_0x4950fe(0x2b7)];}));}(Xe)),Xe[_0x5fed75(0x387)];}var Jr=zr();const Xr=ke(Jr);var Ze={'exports':{}},Zr=Ze[_0x3589bd(0x387)],ci;function Qr(){var _0x1efa0e=_0x3589bd;return ci||(ci=0x1,function(_0x3aefed,_0x3cb4b7){(function(_0xa6a9eb,_0x524f7e){var _0x5e9382=_0x2984;_0x3aefed[_0x5e9382(0x387)]=_0x524f7e(ne());}(Zr,function(_0x46f4f5){var _0x54fac6=_0x2984;return(function(){var _0x1b6217=_0x2984;if(typeof ArrayBuffer==_0x1b6217(0x30f)){var _0x2ab5ba=_0x46f4f5,_0x50149c=_0x2ab5ba['lib'],_0x31d228=_0x50149c[_0x1b6217(0x169)],_0x4e3dd7=_0x31d228[_0x1b6217(0x13d)],_0x288093=_0x31d228[_0x1b6217(0x13d)]=function(_0x1d9763){var _0x2fb5dd=_0x1b6217;if(_0x1d9763 instanceof ArrayBuffer&&(_0x1d9763=new Uint8Array(_0x1d9763)),(_0x1d9763 instanceof Int8Array||typeof Uint8ClampedArray<'u'&&_0x1d9763 instanceof Uint8ClampedArray||_0x1d9763 instanceof Int16Array||_0x1d9763 instanceof Uint16Array||_0x1d9763 instanceof Int32Array||_0x1d9763 instanceof Uint32Array||_0x1d9763 instanceof Float32Array||_0x1d9763 instanceof Float64Array)&&(_0x1d9763=new Uint8Array(_0x1d9763[_0x2fb5dd(0x133)],_0x1d9763[_0x2fb5dd(0x113)],_0x1d9763[_0x2fb5dd(0x2f0)])),_0x1d9763 instanceof Uint8Array){for(var _0x2c7712=_0x1d9763[_0x2fb5dd(0x2f0)],_0x3bd80f=[],_0x42daa8=0x0;_0x42daa8<_0x2c7712;_0x42daa8++)_0x3bd80f[_0x42daa8>>>0x2]|=_0x1d9763[_0x42daa8]<<0x18-_0x42daa8%0x4*0x8;_0x4e3dd7[_0x2fb5dd(0x282)](this,_0x3bd80f,_0x2c7712);}else _0x4e3dd7[_0x2fb5dd(0x339)](this,arguments);};_0x288093[_0x1b6217(0x1d3)]=_0x31d228;}}()),_0x46f4f5[_0x54fac6(0x2f1)][_0x54fac6(0x169)];}));}(Ze)),Ze[_0x1efa0e(0x387)];}var es=Qr();const ts=ke(es);var Qe={'exports':{}},is=Qe[_0x3589bd(0x387)],hi;function ns(){var _0x556e7b=_0x3589bd;return hi||(hi=0x1,function(_0x23a4c3,_0x3ed84a){(function(_0x29d29f,_0x31b5da,_0x40d641){var _0x171440=_0x2984;_0x23a4c3[_0x171440(0x387)]=_0x31b5da(ne(),Ai());}(is,function(_0x443873){var _0x35945b=_0x2984;return _0x443873[_0x35945b(0xf0)][_0x35945b(0x2df)]={'pad':function(){},'unpad':function(){}},_0x443873['pad'][_0x35945b(0x2df)];}));}(Qe)),Qe[_0x556e7b(0x387)];}var rs=ns();const ss=ke(rs);function os(_0x46626e,_0x1c6b96){var _0x29dfe5=_0x3589bd;const _0xcca191=_0x1c6b96-_0x46626e['length']%_0x1c6b96,_0x4f47fc=String[_0x29dfe5(0x166)](_0xcca191)[_0x29dfe5(0x190)](_0xcca191);return _0x46626e+_0x4f47fc;}function as(_0x14f870,_0x9aef5e){var _0x5b4d32=_0x3589bd;const _0x1184ea=ts[_0x5b4d32(0xa1)](0x10),_0x1a7a1c=os(_0x14f870,0x10),_0x4f17d5=Kr[_0x5b4d32(0x212)](Xr[_0x5b4d32(0x271)](_0x1a7a1c),oi[_0x5b4d32(0x271)](_0x9aef5e),{'iv':_0x1184ea,'padding':ss});return _0x1184ea['concat'](_0x4f17d5[_0x5b4d32(0x1b7)])[_0x5b4d32(0x194)](oi);}function cs(){var _0x49897f=_0x3589bd;const _0x11f0f0=_0x336d26()['__Key__'];if(_0x11f0f0){const _0x13b2c3={'time':Math[_0x49897f(0x235)](Date['now']()/0x3e8),'domain':location[_0x49897f(0x14e)]};return as(JSON[_0x49897f(0x388)](_0x13b2c3),_0x11f0f0);}}var hs=Object[_0x3589bd(0x2f6)],_s=Object[_0x3589bd(0x38f)],ls=(_0x8afa61,_0x35cf37,_0x4868f3,_0x4982b2)=>{var _0x2be74a=_0x3589bd;for(var _0x480f49=_0x4982b2>0x1?void 0x0:_0x4982b2?_s(_0x35cf37,_0x4868f3):_0x35cf37,_0x51e952=_0x8afa61[_0x2be74a(0x2f2)]-0x1,_0x3cdbed;_0x51e952>=0x0;_0x51e952--)(_0x3cdbed=_0x8afa61[_0x51e952])&&(_0x480f49=(_0x4982b2?_0x3cdbed(_0x35cf37,_0x4868f3,_0x480f49):_0x3cdbed(_0x480f49))||_0x480f49);return _0x4982b2&&_0x480f49&&hs(_0x35cf37,_0x4868f3,_0x480f49),_0x480f49;},us=(_0x3e1ac4,_0x5bca26)=>(_0x4bd863,_0x4ff384)=>_0x5bca26(_0x4bd863,_0x4ff384,_0x3e1ac4);let ot=class{constructor(_0x3eba47){var _0xdc0a2a=_0x3589bd;this[_0xdc0a2a(0x1a9)]=_0x3eba47,this['_initRequestHeader']();}[_0x3589bd(0xde)](){var _0x1e24ba=_0x3589bd;this[_0x1e24ba(0x1a9)][_0x1e24ba(0x300)]({'interceptor':(_0x75f941,_0x598728)=>{var _0x3ce620=_0x1e24ba;const _0x426e64=_0x75f941[_0x3ce620(0x1ac)],_0x1173d4=cs();return _0x1173d4&&_0x426e64[_0x3ce620(0x24a)](_0x3ce620(0x3a3),_0x1173d4),_0x598728(_0x75f941);}});}};ot=ls([us(0x0,_0x350123(_0x385ac4))],ot);var ds=Object[_0x3589bd(0x2f6)],fs=Object[_0x3589bd(0x38f)],vs=(_0x56038f,_0x3c9317,_0x343739,_0x234144)=>{var _0x46cdc5=_0x3589bd;for(var _0xde2741=_0x234144>0x1?void 0x0:_0x234144?fs(_0x3c9317,_0x343739):_0x3c9317,_0xbf8135=_0x56038f[_0x46cdc5(0x2f2)]-0x1,_0xda4c96;_0xbf8135>=0x0;_0xbf8135--)(_0xda4c96=_0x56038f[_0xbf8135])&&(_0xde2741=(_0x234144?_0xda4c96(_0x3c9317,_0x343739,_0xde2741):_0xda4c96(_0xde2741))||_0xde2741);return _0x234144&&_0xde2741&&ds(_0x3c9317,_0x343739,_0xde2741),_0xde2741;},mt=(_0xe0b170,_0x18a9b3)=>(_0x4deb90,_0xc8a17a)=>_0x18a9b3(_0x4deb90,_0xc8a17a,_0xe0b170);let Ot=class extends _0x37e0d6{constructor(_0x5a21a3,_0xae1530,_0x207a3a){var _0xa07ab4=_0x3589bd;super(),N(this,_0xa07ab4(0x185),new _0x3bd22c(null)),N(this,_0xa07ab4(0x2e7),this[_0xa07ab4(0x185)][_0xa07ab4(0x1bf)]()),(this[_0xa07ab4(0x136)]=_0x5a21a3,this['_snapshotService']=_0xae1530,this[_0xa07ab4(0x3a1)]=_0x207a3a);}async[_0x3589bd(0x19b)](_0x27491e,_0x5dbd72,_0x3890f8){var _0x83deda=_0x3589bd;this[_0x83deda(0x185)]['next']({'unitId':_0x27491e,'type':_0x5dbd72,'subUnitId':_0x3890f8});let _0x126284=null;switch(_0x5dbd72){case Q[_0x83deda(0x38e)]:{_0x126284=await this[_0x83deda(0x2ef)](_0x27491e);break;}case Q[_0x83deda(0x338)]:{_0x126284=await this[_0x83deda(0x2a9)](_0x27491e);break;}default:{this[_0x83deda(0x136)]['error'](_0x83deda(0x23d),'Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}return _0x126284;}async[_0x3589bd(0x2ef)](_0x26d60f){var _0x374644=_0x3589bd,_0x4b76e4;let _0x48e629=0x0;const _0x2df059=await((_0x4b76e4=this['_localCacheService'])==null?void 0x0:_0x4b76e4[_0x374644(0x101)](_0x26d60f));return _0x2df059&&(_0x2df059[_0x374644(0x12d)]||_0x2df059[_0x374644(0x317)][_0x374644(0x2f2)]!==0x0)&&(_0x48e629=_0x2df059[_0x374644(0x153)]),_0x48e629===0x0&&this[_0x374644(0x136)]['debug'](_0x374644(0x23d),_0x374644(0x13a)),this[_0x374644(0xb0)][_0x374644(0x176)](_0x26d60f,_0x48e629);}async['_loadDoc'](_0x201e54){var _0x48fc4a=_0x3589bd,_0x25d087;let _0x574954=0x0;const _0xe7598c=await((_0x25d087=this['_localCacheService'])==null?void 0x0:_0x25d087[_0x48fc4a(0x101)](_0x201e54));return _0xe7598c&&(_0xe7598c[_0x48fc4a(0x12d)]||_0xe7598c['mutations'][_0x48fc4a(0x2f2)]!==0x0)&&(_0x574954=_0xe7598c[_0x48fc4a(0x153)]),_0x574954===0x0&&this[_0x48fc4a(0x136)]['debug'](_0x48fc4a(0x23d),_0x48fc4a(0x13a)),this[_0x48fc4a(0xb0)][_0x48fc4a(0x2d1)](_0x201e54,_0x574954);}};Ot=vs([mt(0x0,_0x400db2),mt(0x1,_0x350123(_0x421ac9)),mt(0x2,_0x2f86e3(J))],Ot);var ps=Object[_0x3589bd(0x2f6)],ms=Object[_0x3589bd(0x38f)],gs=(_0x26da5c,_0x2fc279,_0x5ca27f,_0x5104f3)=>{for(var _0x31e3f2=_0x5104f3>0x1?void 0x0:_0x5104f3?ms(_0x2fc279,_0x5ca27f):_0x2fc279,_0x525fba=_0x26da5c['length']-0x1,_0x40799a;_0x525fba>=0x0;_0x525fba--)(_0x40799a=_0x26da5c[_0x525fba])&&(_0x31e3f2=(_0x5104f3?_0x40799a(_0x2fc279,_0x5ca27f,_0x31e3f2):_0x40799a(_0x31e3f2))||_0x31e3f2);return _0x5104f3&&_0x31e3f2&&ps(_0x2fc279,_0x5ca27f,_0x31e3f2),_0x31e3f2;},gt=(_0x25e125,_0x666c2e)=>(_0x1e3bad,_0x11f465)=>_0x666c2e(_0x1e3bad,_0x11f465,_0x25e125);const Ss=[_0x3589bd(0x382),_0x3589bd(0x3a7),_0x3589bd(0xf4),'image/gif','image/bmp'],Es=0x5*0x400*0x400,Is=_0x3589bd(0x12b),Ts=_0x3589bd(0x2c7),Cs=_0x3589bd(0x219),Rs=_0x3589bd(0x234);let yt=class{constructor(_0x3e66cd,_0xfd65e7,_0x3ff0bf){var _0x8b4f71=_0x3589bd;N(this,_0x8b4f71(0x1e2),0x0),N(this,_0x8b4f71(0xfd),new _0x8b1ca8()),N(this,_0x8b4f71(0x3ab),this['_change$']),N(this,_0x8b4f71(0xfc),new Map()),(this[_0x8b4f71(0x1a9)]=_0x3e66cd,this[_0x8b4f71(0x3b0)]=_0xfd65e7,this[_0x8b4f71(0x25d)]=_0x3ff0bf);}[_0x3589bd(0x1dc)](_0x43a91c){var _0x3c6122=_0x3589bd;this[_0x3c6122(0x1e2)]=_0x43a91c,this[_0x3c6122(0xfd)]['next'](_0x43a91c);}[_0x3589bd(0x13b)](_0x110cfa,_0x1b90fb){var _0x39d96a=_0x3589bd;if(_0x1b90fb===_0x2b5cbf[_0x39d96a(0x197)]){const _0x5b7b6b=new Image();return _0x5b7b6b[_0x39d96a(0x390)]=_0x110cfa,_0x5b7b6b;}return this[_0x39d96a(0xfc)][_0x39d96a(0x1c6)](_0x110cfa);}[_0x3589bd(0x23b)](_0x5571c3,_0x413162,_0xe64c4f){var _0xb11f69=_0x3589bd;_0x413162===_0x2b5cbf[_0xb11f69(0x197)]||_0xe64c4f==null||this[_0xb11f69(0xfc)][_0xb11f69(0x24a)](_0x5571c3,_0xe64c4f);}async[_0x3589bd(0x2ab)](_0x47f725){var _0x6105a=_0x3589bd;try{const _0xef2201=this[_0x6105a(0x313)](this[_0x6105a(0x252)](),''+_0x47f725),_0x58daa0=(await this[_0x6105a(0x1a9)][_0x6105a(0x1c6)](_0xef2201))[_0x6105a(0xa4)];if(_0x58daa0[_0x6105a(0xc2)]&&_0x58daa0[_0x6105a(0xc2)][_0x6105a(0x266)]===Ii['OK']){const _0x5590b5=new URL(_0x58daa0[_0x6105a(0xc5)],this[_0x6105a(0x295)]())[_0x6105a(0x194)]();return Promise['resolve'](_0x5590b5);}return Promise[_0x6105a(0xa2)](_0x58daa0[_0x6105a(0xc2)]);}catch(_0x442d91){return Promise[_0x6105a(0xa2)](_0x442d91);}}async[_0x3589bd(0x3a4)](_0xe6e5c5){var _0x57e318=_0x3589bd;let _0x285d40='';if(!Ss[_0x57e318(0x22d)](_0xe6e5c5['type']))return this['_decreaseWaiting'](),Promise['reject'](new Error(_0x15eb04[_0x57e318(0x2e4)]));if(_0xe6e5c5['size']>Es)return this[_0x57e318(0x206)](),Promise['reject'](new Error(_0x15eb04[_0x57e318(0x19a)]));try{const _0x167829=new FormData();_0x167829[_0x57e318(0x36c)](_0x57e318(0x21b),_0xe6e5c5);const _0x4a444d=this[_0x57e318(0x25d)][_0x57e318(0x25a)](),_0x1020bd=_0x4a444d==null?void 0x0:_0x4a444d[_0x57e318(0x39f)]();if(!_0x1020bd)throw new Error(_0x57e318(0x309));const _0xd3d3dd=this[_0x57e318(0x21d)]()+'?size='+_0xe6e5c5[_0x57e318(0x196)][_0x57e318(0x194)]()+_0x57e318(0x27e)+Ti[_0x57e318(0x2cd)]+_0x57e318(0x15b)+encodeURIComponent(_0x1020bd),_0x4ada62=await(await fetch(_0xd3d3dd,{'method':_0x57e318(0x15e),'body':_0x167829}))['json']();if(typeof _0x4ada62['FileId']!=_0x57e318(0x25c))return this[_0x57e318(0x206)](),Promise[_0x57e318(0xa2)](new Error(_0x15eb04['ERROR_IMAGE']));_0x285d40=_0x4ada62['FileId'];}catch{return this[_0x57e318(0x206)](),Promise[_0x57e318(0xa2)](new Error(_0x15eb04[_0x57e318(0x26a)]));}return new Promise((_0x21d13e,_0x21e221)=>{var _0x25e981=_0x57e318;const _0x26a6fe=new FileReader();_0x26a6fe[_0x25e981(0xf1)](_0xe6e5c5),_0x26a6fe['onload']=_0x5937d5=>{var _0x1275b8=_0x25e981,_0x349eb5;const _0x37acc3=(_0x349eb5=_0x5937d5[_0x1275b8(0x20b)])==null?void 0x0:_0x349eb5[_0x1275b8(0x1bc)];if(_0x37acc3==null){this[_0x1275b8(0x206)](),_0x21e221(new Error(_0x15eb04['ERROR_IMAGE']));return;}const _0x494bf3=_0x238363[_0x1275b8(0x11a)](0x6);_0x21d13e({'imageId':_0x494bf3,'imageSourceType':_0x2b5cbf[_0x1275b8(0x203)],'source':_0x285d40,'base64Cache':_0x37acc3,'status':_0x15eb04[_0x1275b8(0xe1)]}),this[_0x1275b8(0x206)]();};});}[_0x3589bd(0x21d)](){var _0x5975c3=_0x3589bd,_0xcc209f,_0x76fa3b;const _0x5c4c66=this[_0x5975c3(0x3b0)][_0x5975c3(0x17d)](Is),_0x40e5aa=this[_0x5975c3(0x3b0)][_0x5975c3(0x17d)](q);return(_0x76fa3b=(_0xcc209f=_0x40e5aa==null?void 0x0:_0x40e5aa[_0x5975c3(0x251)])!=null?_0xcc209f:_0x5c4c66)!=null?_0x76fa3b:Ts;}[_0x3589bd(0x252)](){var _0x598766=_0x3589bd,_0x12ab9b,_0x746a8b;const _0x11cba4=this['_configService'][_0x598766(0x17d)](Cs),_0x5c025a=this[_0x598766(0x3b0)][_0x598766(0x17d)](q);return(_0x746a8b=(_0x12ab9b=_0x5c025a==null?void 0x0:_0x5c025a[_0x598766(0x17c)])!=null?_0x12ab9b:_0x11cba4)!=null?_0x746a8b:Rs;}[_0x3589bd(0x295)](){var _0x2eb7a1=_0x3589bd,_0x5cd451;const _0x17b7ae=this[_0x2eb7a1(0x3b0)][_0x2eb7a1(0x17d)](q);return(_0x5cd451=_0x17b7ae==null?void 0x0:_0x17b7ae[_0x2eb7a1(0x1a7)])!=null?_0x5cd451:location[_0x2eb7a1(0x316)];}[_0x3589bd(0x313)](_0x207205,_0x4c74aa){var _0x19f36c=_0x3589bd;return _0x207205[_0x19f36c(0x23e)](_0x19f36c(0x370),_0x4c74aa);}[_0x3589bd(0x206)](){var _0x367e70=_0x3589bd;this[_0x367e70(0x1e2)]-=0x1,this[_0x367e70(0xfd)][_0x367e70(0x226)](this['_waitCount']);}};yt=gs([gt(0x0,_0x350123(_0x385ac4)),gt(0x1,_0x59f592),gt(0x2,_0x350123(_0x7d7fce))],yt);var bs=Object['defineProperty'],Os=Object[_0x3589bd(0x38f)],ys=(_0x5225e4,_0x9c524,_0x55bd43,_0x1cb9cb)=>{var _0x4033d=_0x3589bd;for(var _0x548ead=_0x1cb9cb>0x1?void 0x0:_0x1cb9cb?Os(_0x9c524,_0x55bd43):_0x9c524,_0x548dae=_0x5225e4[_0x4033d(0x2f2)]-0x1,_0x24cfa1;_0x548dae>=0x0;_0x548dae--)(_0x24cfa1=_0x5225e4[_0x548dae])&&(_0x548ead=(_0x1cb9cb?_0x24cfa1(_0x9c524,_0x55bd43,_0x548ead):_0x24cfa1(_0x548ead))||_0x548ead);return _0x1cb9cb&&_0x548ead&&bs(_0x9c524,_0x55bd43,_0x548ead),_0x548ead;},_i=(_0xaba426,_0x23f2bf)=>(_0x349089,_0x228679)=>_0x23f2bf(_0x349089,_0x228679,_0xaba426);const Ns='/universer-api/authz';let Nt=class{constructor(_0x48c266,_0x37c666){var _0x558036=_0x3589bd;this[_0x558036(0x3b0)]=_0x48c266,this[_0x558036(0x1b8)]=_0x37c666;}['_getAPIPrefixPath'](){var _0xb271d=_0x3589bd,_0x5dc241,_0x3f21c3;const _0x137cf4=this['_configService'][_0xb271d(0x17d)](Pi),_0x302fbf=this[_0xb271d(0x3b0)][_0xb271d(0x17d)](q);return(_0x3f21c3=(_0x5dc241=_0x302fbf==null?void 0x0:_0x302fbf[_0xb271d(0xf2)])!=null?_0x5dc241:_0x137cf4)!=null?_0x3f21c3:Ns;}async['list'](_0x415a74){var _0x4af25d=_0x3589bd;const _0x4e4f30=this[_0x4af25d(0x239)]()+_0x4af25d(0x1b4);return{'list':[{'title':'People','mentions':(await this[_0x4af25d(0x1b8)][_0x4af25d(0x1c6)](_0x4e4f30,{'params':{'objectID':_0x415a74[_0x4af25d(0x11f)],'unitID':_0x415a74[_0x4af25d(0x11f)]}}))[_0x4af25d(0xa4)][_0x4af25d(0x230)]['map'](_0x3fcdd8=>({'objectId':_0x3fcdd8['id'],'name':_0x3fcdd8[_0x4af25d(0x2fe)][_0x4af25d(0x1f7)],'metadata':{'icon':_0x3fcdd8[_0x4af25d(0x2fe)][_0x4af25d(0x127)]},'label':_0x3fcdd8[_0x4af25d(0x2fe)][_0x4af25d(0x1f7)],'objectType':_0x569b8c[_0x4af25d(0x10e)]})),'metadata':{},'type':_0x569b8c['PERSON']}]};}};Nt=ys([_i(0x0,_0x350123(_0x59f592)),_i(0x1,_0x350123(_0x385ac4))],Nt);var Ds=Object[_0x3589bd(0x2f6)],Ps=Object[_0x3589bd(0x38f)],ws=(_0x560009,_0x121c8e,_0x3fa6cf,_0xe0dd99)=>{var _0x19fee0=_0x3589bd;for(var _0x41378c=_0xe0dd99>0x1?void 0x0:_0xe0dd99?Ps(_0x121c8e,_0x3fa6cf):_0x121c8e,_0xf7501d=_0x560009[_0x19fee0(0x2f2)]-0x1,_0xa9d8e4;_0xf7501d>=0x0;_0xf7501d--)(_0xa9d8e4=_0x560009[_0xf7501d])&&(_0x41378c=(_0xe0dd99?_0xa9d8e4(_0x121c8e,_0x3fa6cf,_0x41378c):_0xa9d8e4(_0x41378c))||_0x41378c);return _0xe0dd99&&_0x41378c&&Ds(_0x121c8e,_0x3fa6cf,_0x41378c),_0x41378c;},Se=(_0x5bf421,_0x10fdc9)=>(_0x3f1059,_0x230700)=>_0x10fdc9(_0x3f1059,_0x230700,_0x5bf421);let at=class extends _0x37e0d6{constructor(_0x545779,_0x25ed43,_0x17f573,_0x5cb609,_0x149033,_0x57ce12,_0x31fea7){var _0x4dcbb0=_0x3589bd;super(),this[_0x4dcbb0(0x399)]=_0x545779,this[_0x4dcbb0(0x25d)]=_0x25ed43,this['_permissionService']=_0x17f573,this[_0x4dcbb0(0x1c4)]=_0x5cb609,this[_0x4dcbb0(0x332)]=_0x149033,this[_0x4dcbb0(0xae)]=_0x57ce12,this[_0x4dcbb0(0x38c)]=_0x31fea7,this[_0x4dcbb0(0x232)](),this[_0x4dcbb0(0x16f)]();}[_0x3589bd(0x16f)](){var _0x473f06=_0x3589bd;const _0x206f90=async _0x1ad2e9=>{var _0x5df970=_0x2984;(await this['_collaborationSessionService'][_0x5df970(0x22c)](_0x1ad2e9))[_0x5df970(0xbc)][_0x5df970(0x304)](_0x3ff271(_0x157e74=>_0x157e74[_0x5df970(0x340)]===_0x4a0013[_0x5df970(0x119)]),_0x233930(this['dispose$']))['subscribe'](_0x3daf38=>{var _0xb05cb5=_0x5df970;const _0x3e8f84=_0x3daf38,{reason:_0x56bbde}=_0x3e8f84[_0xb05cb5(0x221)];this[_0xb05cb5(0x332)][_0xb05cb5(0x19e)]({'id':se['CLOSE_ROOM'],'data':_0x56bbde}),this[_0xb05cb5(0x1ff)][_0xb05cb5(0x305)](new _0x535f4c(_0x1ad2e9)['id'],!0x1),this[_0xb05cb5(0x1c4)][_0xb05cb5(0x132)](_0x1ad2e9);});};_0x5663e3(this[_0x473f06(0x25d)][_0x473f06(0x351)](_0x3d2230[_0x473f06(0x38e)]),this[_0x473f06(0x25d)][_0x473f06(0x351)](_0x3d2230['UNIVER_DOC']))[_0x473f06(0x304)](_0x2010b6(_0x26587b=>_0x26587b['getUnitId']()),_0x3ff271(_0x36f908=>!_0x114da9(_0x36f908)),_0x233930(this[_0x473f06(0x2f5)]))[_0x473f06(0x320)](_0x25502d=>{_0x206f90(_0x25502d);});}[_0x3589bd(0x232)](){var _0x19b86e=_0x3589bd;const _0x747cfd=async _0x5197fa=>{var _0x277e7d=_0x2984;const _0x525bc1=await this[_0x277e7d(0x1c4)][_0x277e7d(0x22c)](_0x5197fa),_0x22db48=this[_0x277e7d(0x399)][_0x277e7d(0x1c6)](_0x19fdc1);_0x525bc1['event$']['pipe'](_0x3ff271(_0x29460a=>_0x29460a[_0x277e7d(0x340)]===_0x4a0013[_0x277e7d(0x392)]),_0x233930(this[_0x277e7d(0x2f5)]))['subscribe'](_0x45179f=>{var _0x3ae615=_0x277e7d;const _0x3b78da=_0x45179f,{objectId:_0x49d2dc}=_0x3b78da[_0x3ae615(0x221)];_0x49d2dc===_0x5197fa?_0x22db48[_0x3ae615(0x220)](_0x5197fa):_0x22db48['refreshPermission'](_0x5197fa,_0x49d2dc);});};_0x5663e3(this[_0x19b86e(0x25d)][_0x19b86e(0x351)](_0x3d2230['UNIVER_SHEET']),this[_0x19b86e(0x25d)]['getTypeOfUnitAdded$'](_0x3d2230[_0x19b86e(0x338)]))[_0x19b86e(0x304)](_0x2010b6(_0x50da7f=>_0x50da7f[_0x19b86e(0x39f)]()),_0x3ff271(_0x2b9f72=>!_0x114da9(_0x2b9f72)),_0x233930(this['dispose$']))[_0x19b86e(0x320)](_0x36b882=>{_0x747cfd(_0x36b882);});}};at=ws([Se(0x0,_0x350123(_0x5aaee8)),Se(0x1,_0x7d7fce),Se(0x2,_0x51f4d4),Se(0x3,_0x350123(Le)),Se(0x4,_0x350123(pe)),Se(0x5,_0xd01897),Se(0x6,_0xb22a67)],at);var Us=Object[_0x3589bd(0x2f6)],As=Object['getOwnPropertyDescriptor'],xs=(_0x152b86,_0x51ea04,_0x48b885,_0x2e4039)=>{var _0x481b34=_0x3589bd;for(var _0xa86fed=_0x2e4039>0x1?void 0x0:_0x2e4039?As(_0x51ea04,_0x48b885):_0x51ea04,_0x508841=_0x152b86[_0x481b34(0x2f2)]-0x1,_0x36830b;_0x508841>=0x0;_0x508841--)(_0x36830b=_0x152b86[_0x508841])&&(_0xa86fed=(_0x2e4039?_0x36830b(_0x51ea04,_0x48b885,_0xa86fed):_0x36830b(_0xa86fed))||_0xa86fed);return _0x2e4039&&_0xa86fed&&Us(_0x51ea04,_0x48b885,_0xa86fed),_0xa86fed;},li=(_0x24a20f,_0x5b2c71)=>(_0xba1fce,_0x277e8b)=>_0x5b2c71(_0xba1fce,_0x277e8b,_0x24a20f);let Dt=class{constructor(_0x2278bf,_0x22ce95){var _0x543280=_0x3589bd;this[_0x543280(0x3b0)]=_0x2278bf,this[_0x543280(0x1a9)]=_0x22ce95;}async[_0x3589bd(0x34a)](_0x5831f9,_0x31c770){var _0x5eff24=_0x3589bd,_0x136d2f;const {unitID:_0x3e9272,type:_0x1dcb58,revision:_0x1834ef=0x0}=_0x31c770,_0x355dba=this['getSnapshotAPIPath']()+'/'+_0x1dcb58+'/unit/'+_0x3e9272+_0x5eff24(0x267)+_0x1834ef,_0x1b8061=(await this[_0x5eff24(0x1a9)][_0x5eff24(0x1c6)](_0x355dba))[_0x5eff24(0xa4)],_0x3a1d9c=(_0x136d2f=_0x1b8061[_0x5eff24(0x29d)])==null?void 0x0:_0x136d2f[_0x5eff24(0x1cc)];if(_0x3a1d9c){const _0x2dfaf2=_0x3a1d9c==null?void 0x0:_0x3a1d9c[_0x5eff24(0x2b8)],_0x3bc280=_0x2fc184[_0x5eff24(0x1f1)](_0x317674(_0x2dfaf2));_0x3a1d9c[_0x5eff24(0x2b8)]=_0x3bc280,Object[_0x5eff24(0x2c3)](_0x3a1d9c['sheets'])['forEach'](([,_0x104c96])=>{var _0x288aed=_0x5eff24;const _0x1b790a=_0x104c96[_0x288aed(0x2b8)],_0x36478d=_0x2fc184[_0x288aed(0x1f1)](_0x317674(_0x1b790a));_0x104c96[_0x288aed(0x2b8)]=_0x36478d;});}return _0x1b8061;}async['getSheetBlock'](_0x15114b,_0x438884){var _0x17fc2a=_0x3589bd;const {unitID:_0x1c0e60,type:_0x148209,blockID:_0x4eae68}=_0x438884,_0x39f6a6=this[_0x17fc2a(0x244)]()+'/'+_0x148209+'/unit/'+_0x1c0e60+_0x17fc2a(0x292)+_0x4eae68;return(await this[_0x17fc2a(0x1a9)][_0x17fc2a(0x1c6)](_0x39f6a6))[_0x17fc2a(0xa4)];}async[_0x3589bd(0x257)](_0x625543,_0x478c65){var _0x3765bf=_0x3589bd;const {unitID:_0x27c47e,type:_0x4acb9b,blockID:_0x2b1cdc}=_0x478c65,_0x2d2062=this[_0x3765bf(0x244)]()+_0x3765bf(0x292)+_0x4acb9b+_0x3765bf(0x240)+_0x27c47e+_0x3765bf(0x292)+_0x2b1cdc;return(await this[_0x3765bf(0x1a9)]['get'](_0x2d2062))['body'];}async[_0x3589bd(0x276)](_0x473c12,_0x39366b){var _0x3ae026=_0x3589bd;const {unitID:_0x680e71,type:_0x1c63c3,from:_0x1b6c49,to:_0x2aed0b}=_0x39366b,_0x40eedb=this[_0x3ae026(0x244)]()+'/'+_0x1c63c3+'/unit/'+_0x680e71+_0x3ae026(0x2b2)+_0x1b6c49+_0x3ae026(0x143)+_0x2aed0b;return(await this[_0x3ae026(0x1a9)][_0x3ae026(0x1c6)](_0x40eedb))[_0x3ae026(0xa4)];}[_0x3589bd(0x24c)](){var _0x3fe309=_0x3589bd,_0x3f63f5;return(_0x3f63f5=this[_0x3fe309(0x3b0)]['getConfig'](Tn))!=null?_0x3f63f5:this[_0x3fe309(0x244)]();}[_0x3589bd(0x244)](){var _0x3aba3c=_0x3589bd,_0x32f712,_0x43ebce;const _0x349e7d=this[_0x3aba3c(0x3b0)][_0x3aba3c(0x17d)](En),_0x5a775a=this['_configService'][_0x3aba3c(0x17d)](q);return(_0x43ebce=(_0x32f712=_0x5a775a==null?void 0x0:_0x5a775a[_0x3aba3c(0xc0)])!=null?_0x32f712:_0x349e7d)!=null?_0x43ebce:In;}async['getResourcesRequest'](_0x223bd0,_0x3ee774){var _0x2fb6a9=_0x3589bd;const _0x3a0fb6='/universer-api/snapshot/'+_0x3ee774[_0x2fb6a9(0x2a7)]+_0x2fb6a9(0x240)+_0x3ee774[_0x2fb6a9(0xc1)]+'/resources';return(await this[_0x2fb6a9(0x1a9)]['get'](_0x3a0fb6,{'params':{'resourceId':JSON['stringify'](_0x3ee774['resourceIDs'])}}))[_0x2fb6a9(0xa4)];}[_0x3589bd(0x350)](){var _0x4cd7ea=_0x3589bd;throw new Error(_0x4cd7ea(0x1e5));}[_0x3589bd(0x335)](){var _0x5bc229=_0x3589bd;throw new Error(_0x5bc229(0x1e5));}[_0x3589bd(0x1aa)](){var _0xda7b7=_0x3589bd;throw new Error(_0xda7b7(0x1e5));}[_0x3589bd(0x391)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['getLatestCsReqIdBySid'](){var _0x4dc791=_0x3589bd;throw new Error(_0x4dc791(0x1e5));}};Dt=xs([li(0x0,_0x59f592),li(0x1,_0x350123(_0x385ac4))],Dt);var Ls=Object[_0x3589bd(0x2f6)],Ms=Object[_0x3589bd(0x38f)],$s=(_0x51e7bd,_0x511503,_0x3cbf55,_0x50269f)=>{var _0xcdef96=_0x3589bd;for(var _0x55d949=_0x50269f>0x1?void 0x0:_0x50269f?Ms(_0x511503,_0x3cbf55):_0x511503,_0x718805=_0x51e7bd[_0xcdef96(0x2f2)]-0x1,_0x7db941;_0x718805>=0x0;_0x718805--)(_0x7db941=_0x51e7bd[_0x718805])&&(_0x55d949=(_0x50269f?_0x7db941(_0x511503,_0x3cbf55,_0x55d949):_0x7db941(_0x55d949))||_0x55d949);return _0x50269f&&_0x55d949&&Ls(_0x511503,_0x3cbf55,_0x55d949),_0x55d949;},Ae=(_0x5a0f52,_0x2c7929)=>(_0x8594c2,_0x264f60)=>_0x2c7929(_0x8594c2,_0x264f60,_0x5a0f52);let Pt=class extends _0x4cb185{constructor(_0x56e199,_0x25028a,_0x5c2411,_0xe4f9,_0x5a4ecf){var _0x31ffc1=_0x3589bd;super(_0x56e199,_0x25028a,_0x5c2411),this[_0x31ffc1(0x2c4)]=_0xe4f9,this[_0x31ffc1(0x136)]=_0x5a4ecf;}['transformUndoRedo'](_0xf28267,_0x18dbd9){var _0x23d736=_0x3589bd;const _0x338c0c=this[_0x23d736(0x210)](_0xf28267);if(_0x338c0c)try{const _0x578d81=this[_0x23d736(0x35e)](_0x338c0c,_0x18dbd9);this['_substituteUndoStack'](_0xf28267,_0x578d81);}catch(_0x3d8de1){this[_0x23d736(0x136)][_0x23d736(0xc2)](_0x23d736(0xe6),_0x3d8de1),this[_0x23d736(0x245)](_0xf28267);}const _0x1c6fec=this[_0x23d736(0x286)](_0xf28267);if(_0x1c6fec)try{const _0x3b20d3=this[_0x23d736(0x35e)](_0x1c6fec,_0x18dbd9);this['_substituteRedoStack'](_0xf28267,_0x3b20d3);}catch(_0x1dba8a){this[_0x23d736(0x136)][_0x23d736(0xc2)](_0x1dba8a),this['_clearRedo'](_0xf28267);}}['_clearUndo'](_0x5a7805){var _0x8590b1=_0x3589bd;const _0x4e9644=this[_0x8590b1(0x210)](_0x5a7805);_0x4e9644&&(_0x4e9644[_0x8590b1(0x2f2)]=0x0,this['_updateStatus']());}[_0x3589bd(0x299)](_0xf462b5){var _0x591b30=_0x3589bd;const _0x37c9f5=this[_0x591b30(0x286)](_0xf462b5);_0x37c9f5&&(_0x37c9f5[_0x591b30(0x2f2)]=0x0,this[_0x591b30(0x237)]());}['_substituteUndoStack'](_0xae3532,_0x5210fa){var _0x3c024c=_0x3589bd;this[_0x3c024c(0xd5)][_0x3c024c(0x24a)](_0xae3532,_0x5210fa),this['_updateStatus']();}[_0x3589bd(0x14d)](_0x530ff,_0x49c6c8){var _0x1b60e6=_0x3589bd;this[_0x1b60e6(0x359)][_0x1b60e6(0x24a)](_0x530ff,_0x49c6c8),this['_updateStatus']();}[_0x3589bd(0x35e)](_0x1e3b0a,_0x206553){var _0x4e9a4c=_0x3589bd;const _0x4c6067=[];let _0xb8fdb1=_0x206553,_0x43bf90=_0x206553;for(let _0x443fce=_0x1e3b0a['length']-0x1;_0x443fce>=0x0;_0x443fce--){const {unitID:_0x3f3f93,undoMutations:_0x386fd7,redoMutations:_0x18210b}=_0x1e3b0a[_0x443fce],_0x518a38=this[_0x4e9a4c(0x2c4)][_0x4e9a4c(0x147)](_0xb8fdb1,_0x386fd7),_0x4318f8=this[_0x4e9a4c(0x2c4)]['transformMutationsWithChangeset'](_0x43bf90,_0x18210b);if(_0xea06ae(_0x518a38)||_0xea06ae(_0x4318f8)){this['_logService'][_0x4e9a4c(0xc2)](_0x4e9a4c(0xe6),'transformStack\x20failed!',_0x518a38,_0x4318f8);break;}_0xb8fdb1=_0x518a38[_0x4e9a4c(0xdd)],_0x43bf90=_0x4318f8[_0x4e9a4c(0xdd)],_0x4c6067[_0x4e9a4c(0x17a)]({'unitID':_0x3f3f93,'undoMutations':_0x518a38['m2Prime'],'redoMutations':_0x4318f8['m2Prime']});}return _0x4c6067[_0x4e9a4c(0x31f)]();}};Pt=$s([Ae(0x0,_0x7d7fce),Ae(0x1,_0x28eba8),Ae(0x2,_0x29aef1),Ae(0x3,_0x37175a),Ae(0x4,_0x400db2)],Pt);var xi=Object[_0x3589bd(0x2f6)],Hs=Object[_0x3589bd(0x38f)],ks=(_0x4d2389,_0x35b4fc,_0x611dbe)=>_0x35b4fc in _0x4d2389?xi(_0x4d2389,_0x35b4fc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x611dbe}):_0x4d2389[_0x35b4fc]=_0x611dbe,js=(_0x3c958c,_0x2017aa,_0x2de059,_0x26fbf2)=>{var _0x54b341=_0x3589bd;for(var _0xa78be8=_0x26fbf2>0x1?void 0x0:_0x26fbf2?Hs(_0x2017aa,_0x2de059):_0x2017aa,_0x5f4e3f=_0x3c958c[_0x54b341(0x2f2)]-0x1,_0x4fb4fc;_0x5f4e3f>=0x0;_0x5f4e3f--)(_0x4fb4fc=_0x3c958c[_0x5f4e3f])&&(_0xa78be8=(_0x26fbf2?_0x4fb4fc(_0x2017aa,_0x2de059,_0xa78be8):_0x4fb4fc(_0xa78be8))||_0xa78be8);return _0x26fbf2&&_0xa78be8&&xi(_0x2017aa,_0x2de059,_0xa78be8),_0xa78be8;},St=(_0xd1c318,_0x44b49b)=>(_0x2115f2,_0x3ab8ff)=>_0x44b49b(_0x2115f2,_0x3ab8ff,_0xd1c318),Bs=(_0x98c2fb,_0x4cacfa,_0x3e5363)=>ks(_0x98c2fb,_0x4cacfa+'',_0x3e5363);const Fs=_0x3589bd(0x2a3);let wt=class extends _0x3cd23f{constructor(_0x4ab8eb=Wt,_0x2d65c1,_0x434758,_0x392898){var _0x2042b2=_0x3589bd;super(),this[_0x2042b2(0x247)]=_0x4ab8eb,this[_0x2042b2(0x136)]=_0x2d65c1,this[_0x2042b2(0x399)]=_0x434758,this[_0x2042b2(0x3b0)]=_0x392898;const {..._0x4f4748}=_0x1aefc4({},Wt,this['_config']);this[_0x2042b2(0x3b0)][_0x2042b2(0x31e)](q,_0x4f4748);}[_0x3589bd(0x38d)](){this['_registerDependencies'](),this['_initDependencies']();}[_0x3589bd(0x177)](){var _0x2bd669=_0x3589bd,_0x447e5d,_0x2c367c,_0x26138d,_0x2b9a42;this[_0x2bd669(0x399)][_0x2bd669(0x1c8)](_0xb22a67)&&this[_0x2bd669(0x136)][_0x2bd669(0xc2)](_0x2bd669(0x122),_0x2bd669(0x28a));const _0x18bef5=_0x4dba32([[_0xb22a67,{'useClass':Pt}],[Le],[xe],[it],[st],[ot],[Ri],[at],[pe],[Ot],[Ci,{'useClass':(_0x2c367c=(_0x447e5d=this[_0x2bd669(0x247)])==null?void 0x0:_0x447e5d[_0x2bd669(0x258)])!=null?_0x2c367c:Et}],[_0x56cf4d,{'useClass':Dt}],[_0xd01897,{'useClass':bt}],[_0x543b7f,{'useClass':yt}],[_0x2daf30,{'useClass':Nt}],[rt],[Rt]],(_0x26138d=this[_0x2bd669(0x247)])==null?void 0x0:_0x26138d[_0x2bd669(0x1d7)]);if(!((_0x2b9a42=this[_0x2bd669(0x247)])!=null&&_0x2b9a42[_0x2bd669(0x347)])){const _0x4b0908=_0x18bef5[_0x2bd669(0x10c)](([_0xf37c85])=>_0xf37c85===ht);_0x4b0908!==-0x1&&_0x18bef5[_0x2bd669(0x375)](_0x4b0908,0x1);}_0x295eb0(this['_injector'],_0x18bef5);}[_0x3589bd(0xff)](){var _0x1994c1=_0x3589bd,_0x1aea5b,_0x37b603,_0x3cb7a7;this[_0x1994c1(0x399)][_0x1994c1(0x1c6)](_0x385ac4)[_0x1994c1(0x300)]({'priority':0x14,'interceptor':_0x38ac08({'maxParallel':0x6})}),(_0x1aea5b=this[_0x1994c1(0x247)])!=null&&_0x1aea5b['enableOfflineEditing']||(_0x37b603=this[_0x1994c1(0x399)][_0x1994c1(0x1c6)](J,_0x4a18e8['OPTIONAL']))==null||_0x37b603[_0x1994c1(0x105)](),(_0x3cb7a7=this[_0x1994c1(0x247)])!=null&&_0x3cb7a7[_0x1994c1(0xc4)]&&_0x3cdbde(this['_injector'],[[st]]),_0x3cdbde(this[_0x1994c1(0x399)],[[ot],[rt],[at]]);}};Bs(wt,_0x3589bd(0x233),Fs),wt=js([_0x12e7f4(_0x3307b6,_0x23f43a,_0x3f6663),St(0x1,_0x400db2),St(0x2,_0x350123(_0x5aaee8)),St(0x3,_0x59f592)],wt);export{Pi as AUTHZ_URL_KEY,bt as AuthzIoHttpService,ue as AwaitingState,ae as AwaitingWithPendingState,q as COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,Un as COLLAB_SUBMIT_CHANGESET_URL_KEY,Rn as COLLAB_WEB_SOCKET_URL_KEY,rt as CollaborationController,nt as CollaborationEntity,yt as CollaborationImageIoService,It as CollaborationSession,Le as CollaborationSessionService,Et as CollaborationSocketService,yi as CollaborationStatus,se as CollaborationUIEventId,pe as CollaborationUIEventService,Pt as CollaborativeUndoRedoService,Ri as CommentService,de as ConflictState,bn as DEFAULT_COLLAB_WEB_SOCKET_URL,ro as DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT,Ot as DataLoaderService,Tt as DocCollaborationEntity,te as FetchingMissState,yn as HEARTBEAT_INTERVAL_KEY,Si as HEARTBEAT_TIMEOUT_KEY,Ci as ICollaborationSocketService,J as ILocalCacheService,Mn as INetworkConditionService,ht as ISingleActiveUnitService,io as LOCAL_CACHE_INTERVAL,to as LOCAL_CACHE_INTERVAL_KEY,xn as LOGIN_URL_KEY,xe as MemberService,Nt as MentionIoHttpService,fe as OfflineState,oe as PendingState,no as REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY,Pn as RETRY_CONNECTING_MAX_COUNT_KEY,eo as SEND_CHANGESET_TIMEOUT_KEY,En as SNAPSHOT_SERVER_URL_KEY,Tn as SNAPSHOT_URL_KEY,Te as SessionStatus,Ct as SheetCollaborationEntity,it as SheetTransformSelectionsService,Dt as SnapshotServerOverHTTPService,De as SyncedState,bi as UnitStatus,wt as UniverCollaborationClientPlugin,$n as deserializeToCombResponse,so as getLocalCacheKey,Hn as serializeCombRequest};
|
1
|
+
var _0x43e0c9=_0x5029;(function(_0x405a8d,_0x13b38f){var _0x185800=_0x5029,_0x3f18e0=_0x405a8d();while(!![]){try{var _0x1f4e85=-parseInt(_0x185800(0x1ab))/0x1*(-parseInt(_0x185800(0x168))/0x2)+parseInt(_0x185800(0x1d8))/0x3+parseInt(_0x185800(0x2db))/0x4*(parseInt(_0x185800(0x1c1))/0x5)+parseInt(_0x185800(0x169))/0x6+parseInt(_0x185800(0x41e))/0x7*(parseInt(_0x185800(0x3d8))/0x8)+parseInt(_0x185800(0x253))/0x9+parseInt(_0x185800(0x3f6))/0xa*(-parseInt(_0x185800(0x301))/0xb);if(_0x1f4e85===_0x13b38f)break;else _0x3f18e0['push'](_0x3f18e0['shift']());}catch(_0x55769b){_0x3f18e0['push'](_0x3f18e0['shift']());}}}(_0x2fa0,0x5f826));var __defProp=Object[_0x43e0c9(0x1bc)],__defNormalProp=(_0x3c0992,_0x3ad421,_0x395262)=>_0x3ad421 in _0x3c0992?__defProp(_0x3c0992,_0x3ad421,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x395262}):_0x3c0992[_0x3ad421]=_0x395262,__name=(_0x63f3be,_0x9677aa)=>__defProp(_0x63f3be,_0x43e0c9(0x3e4),{'value':_0x9677aa,'configurable':!0x0}),__publicField=(_0x5a894e,_0x233ba0,_0x53c099)=>__defNormalProp(_0x5a894e,typeof _0x233ba0!=_0x43e0c9(0x149)?_0x233ba0+'':_0x233ba0,_0x53c099);import{createIdentifier,Inject,Injector,Disposable,DisposableCollection,toDisposable,IConfigService,ILogService,UserManagerService,UniverInstanceType,IUniverInstanceService,LocaleService,Optional,RxDisposable,Tools,Rectangle,ICommandService,JSONX,CommandType,IPermissionService,IUndoRedoService,sequenceExecute,Workbook,MentionType,IAuthzIoService,isInternalEditorID,LocalUndoRedoService,IContextService,DependentOn,Plugin,merge as _0x523ccd,mergeOverrideWithDependencies,IMentionIOService,registerDependencies,Quantity,touchDependencies}from'@univerjs/core';import{Subject,merge,of,BehaviorSubject,takeUntil,ReplaySubject,take as _0x4af4d9,map as _0x14d6b6,shareReplay,firstValueFrom,concatMap}from'rxjs';import{map,take,filter,delay,takeUntil as _0x3e796d}from'rxjs/operators';import{HTTPService,ISocketService,MergeInterceptorFactory,HTTPRequest,UniverNetworkPlugin,ThresholdInterceptorFactory}from'@univerjs/network';import{CollaborationEvent,parseChangesetToProtocol,ISnapshotServerService,isTransformMutationsWithChangesetSuccess,ITransformService,mapDocumentTypeToUniverType,RevisionService,isTransformChangesetsSuccess,CompressMutationService,parseProtocolChangeset,SnapshotService,textEncoder,b64DecodeUnicode,isTransformMutationsWithChangesetFailure,UniverCollaborationPlugin}from'@univerjs-pro/collaboration';import{ITelemetryService}from'@univerjs/telemetry';import{RichTextEditingMutation}from'@univerjs/docs';import{SheetsSelectionsService,SetSelectionsOperation,InsertSheetMutation,EmptyMutation,WorkbookEditablePermission,SheetPermissionInitController,UniverSheetsPlugin}from'@univerjs/sheets';import{ImageSourceType,ImageUploadStatusType,IImageIoService}from'@univerjs/drawing';import{getGlobalObject}from'@univerjs-pro/license';const SNAPSHOT_SERVER_URL_KEY='SNAPSHOT_SERVER_URL_KEY',DEFAULT_SNAPSHOT_SERVER_URL='/universer-api/snapshot',SNAPSHOT_URL_KEY='SNAPSHOT_URL_KEY',SEND_CHANGESET_TIMEOUT_KEY=_0x43e0c9(0x17c),DEFAULT_SEND_CHANGESET_TIMEOUT=0x7d0,COLLAB_WEB_SOCKET_URL_KEY=_0x43e0c9(0x2d6),DEFAULT_COLLAB_WEB_SOCKET_URL=_0x43e0c9(0x170),DEFAULT_WS_SESSION_TICKET_URL=_0x43e0c9(0x321),HEARTBEAT_INTERVAL_KEY=_0x43e0c9(0x326),DEFAULT_HEARTBEAT_INTERVAL=0x7530,HEARTBEAT_TIMEOUT_KEY=_0x43e0c9(0xf7),DEFAULT_HEARTBEAT_TIMEOUT=0x4e20,DEFAULT_RETRY_CONNECTING_INTERVAL=0x4e20,RETRY_CONNECTING_MAX_COUNT_KEY='RETRY_CONNECTING_MAX_COUNT',DEFAULT_RETRY_CONNECTING_MAX_COUNT=0x3,LOCAL_CACHE_INTERVAL_KEY=_0x43e0c9(0x1c9),LOCAL_CACHE_INTERVAL=0x3e8,COLLAB_SUBMIT_CHANGESET_URL_KEY='COLLAB_SUBMIT_CHANGESET_URL',DEFAULT_COLLAB_SUBMIT_CHANGESET_URL=_0x43e0c9(0x424),LOGIN_URL_KEY='LOGIN_URL_KEY',DEFAULT_LOGIN_URL=_0x43e0c9(0x217),REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY=_0x43e0c9(0x2dd),DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT=_0x43e0c9(0x2a5);var ErrorCode=(_0xaf126e=>(_0xaf126e[_0xaf126e['UNDEFINED']=0x0]=_0x43e0c9(0x16b),_0xaf126e[_0xaf126e['OK']=0x1]='OK',_0xaf126e[_0xaf126e[_0x43e0c9(0x156)]=0x2]=_0x43e0c9(0x156),_0xaf126e[_0xaf126e[_0x43e0c9(0x2bb)]=0x3]=_0x43e0c9(0x2bb),_0xaf126e[_0xaf126e[_0x43e0c9(0x344)]=0x4]=_0x43e0c9(0x344),_0xaf126e[_0xaf126e[_0x43e0c9(0x1a1)]=0x5]=_0x43e0c9(0x1a1),_0xaf126e[_0xaf126e[_0x43e0c9(0x409)]=0x6]=_0x43e0c9(0x409),_0xaf126e[_0xaf126e[_0x43e0c9(0x299)]=0x7]=_0x43e0c9(0x299),_0xaf126e[_0xaf126e['TOO_MANY_REQUESTS']=0x8]='TOO_MANY_REQUESTS',_0xaf126e[_0xaf126e[_0x43e0c9(0x1b8)]=0x9]='COMPLETION_FINISHED',_0xaf126e[_0xaf126e[_0x43e0c9(0x408)]=0x1389]=_0x43e0c9(0x408),_0xaf126e[_0xaf126e[_0x43e0c9(0x1fe)]=0x1771]=_0x43e0c9(0x1fe),_0xaf126e[_0xaf126e['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0xaf126e[_0xaf126e['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x43e0c9(0x3c6),_0xaf126e[_0xaf126e['APPLY_REJECT']=0x1b59]=_0x43e0c9(0x21a),_0xaf126e[_0xaf126e['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x43e0c9(0x428),_0xaf126e[_0xaf126e[_0x43e0c9(0x247)]=0x1b5b]=_0x43e0c9(0x247),_0xaf126e[_0xaf126e[_0x43e0c9(0x19a)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0xaf126e[_0xaf126e[_0x43e0c9(0x3d4)]=0x1b5d]=_0x43e0c9(0x3d4),_0xaf126e[_0xaf126e[_0x43e0c9(0x18a)]=0x1f41]=_0x43e0c9(0x18a),_0xaf126e[_0xaf126e[_0x43e0c9(0x35e)]=0x2329]=_0x43e0c9(0x35e),_0xaf126e[_0xaf126e[_0x43e0c9(0x3df)]=0x232a]=_0x43e0c9(0x3df),_0xaf126e[_0xaf126e[_0x43e0c9(0x3ef)]=0x232b]=_0x43e0c9(0x3ef),_0xaf126e[_0xaf126e[_0x43e0c9(0x339)]=0x232c]=_0x43e0c9(0x339),_0xaf126e[_0xaf126e[_0x43e0c9(0x2ec)]=0x232d]=_0x43e0c9(0x2ec),_0xaf126e[_0xaf126e['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x43e0c9(0x257),_0xaf126e[_0xaf126e[_0x43e0c9(0x242)]=0x2712]=_0x43e0c9(0x242),_0xaf126e[_0xaf126e[_0x43e0c9(0x222)]=0x2713]=_0x43e0c9(0x222),_0xaf126e[_0xaf126e[_0x43e0c9(0x1a3)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0xaf126e[_0xaf126e[_0x43e0c9(0x3e5)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0xaf126e[_0xaf126e[_0x43e0c9(0x18e)]=-0x1]=_0x43e0c9(0x18e),_0xaf126e))(ErrorCode||{}),UniverType=(_0x46cb73=>(_0x46cb73[_0x46cb73[_0x43e0c9(0x2fc)]=0x0]=_0x43e0c9(0x2fc),_0x46cb73[_0x46cb73[_0x43e0c9(0x199)]=0x1]='UNIVER_DOC',_0x46cb73[_0x46cb73[_0x43e0c9(0x202)]=0x2]='UNIVER_SHEET',_0x46cb73[_0x46cb73[_0x43e0c9(0x2ee)]=0x3]=_0x43e0c9(0x2ee),_0x46cb73[_0x46cb73[_0x43e0c9(0x440)]=0x4]=_0x43e0c9(0x440),_0x46cb73[_0x46cb73[_0x43e0c9(0x18e)]=-0x1]=_0x43e0c9(0x18e),_0x46cb73))(UniverType||{}),CombCmd=(_0x5430eb=>(_0x5430eb[_0x5430eb['UNKNOWN_CMD']=0x0]=_0x43e0c9(0x412),_0x5430eb[_0x5430eb['HELLO']=0x1]=_0x43e0c9(0x343),_0x5430eb[_0x5430eb[_0x43e0c9(0x3ba)]=0x2]=_0x43e0c9(0x3ba),_0x5430eb[_0x5430eb[_0x43e0c9(0x190)]=0x3]=_0x43e0c9(0x190),_0x5430eb[_0x5430eb[_0x43e0c9(0x137)]=0x4]=_0x43e0c9(0x137),_0x5430eb[_0x5430eb['HEARTBEAT']=0x5]=_0x43e0c9(0x3e0),_0x5430eb[_0x5430eb[_0x43e0c9(0x1d3)]=0x6]=_0x43e0c9(0x1d3),_0x5430eb[_0x5430eb['UNRECOGNIZED']=-0x1]=_0x43e0c9(0x18e),_0x5430eb))(CombCmd||{}),CmdRspCode=(_0x4e4e52=>(_0x4e4e52[_0x4e4e52['UNKNOWN_CODE']=0x0]='UNKNOWN_CODE',_0x4e4e52[_0x4e4e52['OK']=0x1]='OK',_0x4e4e52[_0x4e4e52[_0x43e0c9(0x1f3)]=0x2]=_0x43e0c9(0x1f3),_0x4e4e52[_0x4e4e52[_0x43e0c9(0x163)]=0x3e9]=_0x43e0c9(0x163),_0x4e4e52[_0x4e4e52['JOIN_ROOM_NOT_EXISTS']=0x3ea]=_0x43e0c9(0x2e4),_0x4e4e52[_0x4e4e52[_0x43e0c9(0x2f5)]=0x3eb]=_0x43e0c9(0x2f5),_0x4e4e52[_0x4e4e52[_0x43e0c9(0x384)]=0x3ec]=_0x43e0c9(0x384),_0x4e4e52[_0x4e4e52[_0x43e0c9(0x18e)]=-0x1]=_0x43e0c9(0x18e),_0x4e4e52))(CmdRspCode||{}),FileSource=(_0x25b0b7=>(_0x25b0b7[_0x25b0b7[_0x43e0c9(0x3d0)]=0x0]=_0x43e0c9(0x3d0),_0x25b0b7[_0x25b0b7[_0x43e0c9(0x1b1)]=0x1]=_0x43e0c9(0x1b1),_0x25b0b7[_0x25b0b7[_0x43e0c9(0x198)]=0x2]='HttpExport',_0x25b0b7[_0x25b0b7[_0x43e0c9(0x382)]=0x3]=_0x43e0c9(0x382),_0x25b0b7[_0x25b0b7['UnitSnapshot']=0x4]=_0x43e0c9(0x18c),_0x25b0b7[_0x25b0b7[_0x43e0c9(0x18e)]=-0x1]='UNRECOGNIZED',_0x25b0b7))(FileSource||{});const COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY=_0x43e0c9(0x122),defaultPluginConfig={};var CollaborationUIEventId=(_0x1ee9b3=>(_0x1ee9b3[_0x43e0c9(0x240)]=_0x43e0c9(0x240),_0x1ee9b3[_0x43e0c9(0x2bb)]=_0x43e0c9(0x2bb),_0x1ee9b3[_0x43e0c9(0x2a0)]='CONFLICT',_0x1ee9b3[_0x43e0c9(0x309)]=_0x43e0c9(0x309),_0x1ee9b3[_0x43e0c9(0x2b6)]=_0x43e0c9(0x2b6),_0x1ee9b3[_0x43e0c9(0x135)]=_0x43e0c9(0x135),_0x1ee9b3[_0x43e0c9(0x42d)]=_0x43e0c9(0x42d),_0x1ee9b3[_0x43e0c9(0x26f)]=_0x43e0c9(0x26f),_0x1ee9b3))(CollaborationUIEventId||{});const _CollaborationUIEventService=class _CollaborationUIEventService{constructor(){__publicField(this,'_event$',new Subject()),__publicField(this,'event$',this['_event$']['asObservable']());}[_0x43e0c9(0x43a)](_0x1c8846){var _0xfcaf7d=_0x43e0c9;this[_0xfcaf7d(0x228)][_0xfcaf7d(0x2e5)](_0x1c8846);}};__name(_CollaborationUIEventService,_0x43e0c9(0x19f));let CollaborationUIEventService=_CollaborationUIEventService;const INetworkConditionService=createIdentifier(_0x43e0c9(0x375));function deserializeToCombResponse(_0x325601){var _0x16b6f7=_0x43e0c9,_0x5e96c5,_0x513ecd,_0x379eba,_0x24f282,_0x5baf52;const _0x5641d5=_0x325601[_0x16b6f7(0x14c)],_0x4a8973=JSON['parse'](_0x5641d5);switch(_0x4a8973['cmd']){case CombCmd[_0x16b6f7(0x3e0)]:case CombCmd[_0x16b6f7(0x343)]:{const _0x1696ae=_0x4a8973['infoRsp'];return{..._0x4a8973,'data':_0x1696ae,'cmd':_0x4a8973[_0x16b6f7(0x1fb)]};}case CombCmd[_0x16b6f7(0x3ba)]:{const _0x171bd0=_0x4a8973[_0x16b6f7(0x1e6)];return{..._0x4a8973,'data':_0x171bd0,'cmd':_0x4a8973[_0x16b6f7(0x1fb)]};}case CombCmd[_0x16b6f7(0x1d3)]:{const _0x5111c4=_0x4a8973[_0x16b6f7(0x165)];switch(_0x5111c4[_0x16b6f7(0x25d)]){case CollaborationEvent[_0x16b6f7(0x3db)]:return{..._0x4a8973,'data':{..._0x5111c4,'data':(_0x5e96c5=_0x5111c4[_0x16b6f7(0x2b1)])==null?void 0x0:_0x5e96c5['cs']},'cmd':_0x4a8973[_0x16b6f7(0x1fb)]};case CollaborationEvent[_0x16b6f7(0x24c)]:return{..._0x4a8973,'data':{..._0x5111c4,'data':(_0x513ecd=_0x5111c4[_0x16b6f7(0x3b7)])==null?void 0x0:_0x513ecd['cs']},'cmd':_0x4a8973[_0x16b6f7(0x1fb)]};case CollaborationEvent['NEW_CHANGESETS']:return{..._0x4a8973,'data':{..._0x5111c4,'data':(_0x379eba=_0x5111c4[_0x16b6f7(0x1e8)])==null?void 0x0:_0x379eba['cs']},'cmd':_0x4a8973[_0x16b6f7(0x1fb)]};case CollaborationEvent[_0x16b6f7(0x26d)]:return{..._0x4a8973,'data':{..._0x5111c4,'data':(_0x24f282=_0x5111c4['csRejEvent'])==null?void 0x0:_0x24f282['cs']},'cmd':_0x4a8973[_0x16b6f7(0x1fb)]};case CollaborationEvent['CHANGESET_SHOULD_RETRY']:return{..._0x4a8973,'data':{..._0x5111c4,'data':(_0x5baf52=_0x5111c4[_0x16b6f7(0x333)])==null?void 0x0:_0x5baf52['cs']},'cmd':_0x4a8973['cmd']};case CollaborationEvent[_0x16b6f7(0x38d)]:return{..._0x4a8973,'data':{..._0x5111c4,'data':_0x5111c4[_0x16b6f7(0x260)]},'cmd':_0x4a8973['cmd']};case CollaborationEvent[_0x16b6f7(0x1c4)]:return{..._0x4a8973,'data':{..._0x5111c4,'data':_0x5111c4['joinEvent']},'cmd':_0x4a8973[_0x16b6f7(0x1fb)]};case CollaborationEvent[_0x16b6f7(0x2fe)]:return{..._0x4a8973,'data':{..._0x5111c4,'data':_0x5111c4['leaveEvent']},'cmd':_0x4a8973[_0x16b6f7(0x1fb)]};case CollaborationEvent[_0x16b6f7(0x209)]:return{..._0x4a8973,'data':{..._0x5111c4,'data':_0x5111c4[_0x16b6f7(0x136)]},'cmd':_0x4a8973[_0x16b6f7(0x1fb)]};case CollaborationEvent['LIVESHARE_FETCH_OPERATIONS']:case CollaborationEvent[_0x16b6f7(0x132)]:return{..._0x4a8973,'data':{..._0x5111c4,'data':_0x5111c4[_0x16b6f7(0x232)]},'cmd':_0x4a8973['cmd']};case CollaborationEvent['LIVESHARE_TERMINATE']:return{..._0x4a8973,'data':{..._0x5111c4,'data':_0x5111c4[_0x16b6f7(0x136)]},'cmd':_0x4a8973['cmd']};case CollaborationEvent[_0x16b6f7(0x292)]:return{..._0x4a8973,'data':_0x5111c4,'cmd':_0x4a8973['cmd']};case CollaborationEvent[_0x16b6f7(0x11a)]:return{..._0x4a8973,'data':{..._0x5111c4,'data':_0x5111c4['commentUpdateEvent']},'cmd':_0x4a8973[_0x16b6f7(0x1fb)]};case CollaborationEvent[_0x16b6f7(0x348)]:return{..._0x4a8973,'data':{..._0x5111c4,'data':_0x5111c4[_0x16b6f7(0x14d)]},'cmd':_0x4a8973[_0x16b6f7(0x1fb)]};case CollaborationEvent[_0x16b6f7(0x1aa)]:return{..._0x4a8973,'data':{..._0x5111c4,'data':_0x5111c4['shouldCloseConn']},'cmd':_0x4a8973[_0x16b6f7(0x1fb)]};case CollaborationEvent[_0x16b6f7(0x24b)]:return{..._0x4a8973,'data':{..._0x5111c4,'data':_0x5111c4[_0x16b6f7(0x361)]},'cmd':_0x4a8973[_0x16b6f7(0x1fb)]};default:return _0x4a8973;}}default:return _0x4a8973;}}__name(deserializeToCombResponse,_0x43e0c9(0x19c));function serializeCombRequest(_0x2a4325){var _0x33a7dc=_0x43e0c9;switch(_0x2a4325[_0x33a7dc(0x1fb)]){case CombCmd[_0x33a7dc(0x3e0)]:case CombCmd[_0x33a7dc(0x343)]:return JSON[_0x33a7dc(0xff)]({'cmd':_0x2a4325[_0x33a7dc(0x1fb)],'routeKey':_0x2a4325['routeKey']});case CombCmd[_0x33a7dc(0x137)]:{let _0x2fe129;switch(_0x2a4325[_0x33a7dc(0x14c)][_0x33a7dc(0x25d)]){case CollaborationEvent[_0x33a7dc(0x38d)]:{_0x2fe129={'eventID':CollaborationEvent[_0x33a7dc(0x38d)],'updateCursorEvent':_0x2a4325[_0x33a7dc(0x14c)][_0x33a7dc(0x14c)]};break;}case CollaborationEvent[_0x33a7dc(0x2fe)]:{_0x2fe129={'eventID':CollaborationEvent['USERS_LEAVE'],'leaveEvent':_0x2a4325[_0x33a7dc(0x14c)][_0x33a7dc(0x14c)]};break;}case CollaborationEvent['USERS_ENTER']:{_0x2fe129={'eventID':CollaborationEvent[_0x33a7dc(0x1c4)],'joinEvent':_0x2a4325[_0x33a7dc(0x14c)]['data']};break;}case CollaborationEvent[_0x33a7dc(0x209)]:{_0x2fe129={'eventID':CollaborationEvent[_0x33a7dc(0x209)],'liveShareNewHost':_0x2a4325[_0x33a7dc(0x14c)]['data']};break;}case CollaborationEvent[_0x33a7dc(0x132)]:{_0x2fe129={'eventID':CollaborationEvent[_0x33a7dc(0x132)],'liveShareOperation':_0x2a4325[_0x33a7dc(0x14c)][_0x33a7dc(0x14c)]};break;}case CollaborationEvent[_0x33a7dc(0x3b1)]:{_0x2fe129={'eventID':CollaborationEvent[_0x33a7dc(0x3b1)],'liveShareTerminate':_0x2a4325['data'][_0x33a7dc(0x14c)]};break;}case CollaborationEvent[_0x33a7dc(0x23c)]:{_0x2fe129={'eventID':CollaborationEvent[_0x33a7dc(0x23c)],'liveShareRequestHost':_0x2a4325[_0x33a7dc(0x14c)][_0x33a7dc(0x14c)]};break;}case CollaborationEvent['LIVESHARE_FETCH_OPERATIONS']:{_0x2fe129={'eventID':CollaborationEvent[_0x33a7dc(0x302)]};break;}default:_0x2fe129={'eventID':_0x2a4325[_0x33a7dc(0x14c)][_0x33a7dc(0x25d)]};}return JSON[_0x33a7dc(0xff)]({'cmd':_0x2a4325[_0x33a7dc(0x1fb)],'routeKey':_0x2a4325[_0x33a7dc(0x33f)],'collaMsg':_0x2fe129});}case CombCmd['JOIN']:return JSON[_0x33a7dc(0xff)]({'cmd':_0x2a4325[_0x33a7dc(0x1fb)],'routeKey':_0x2a4325['routeKey'],'joinReq':_0x2a4325[_0x33a7dc(0x14c)]});case CombCmd[_0x33a7dc(0x190)]:return JSON[_0x33a7dc(0xff)]({'cmd':_0x2a4325[_0x33a7dc(0x1fb)],'routeKey':_0x2a4325[_0x33a7dc(0x33f)],'leaveReq':_0x2a4325[_0x33a7dc(0x14c)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}function _0x2fa0(){var _0x1e8311=['[OfflineState]:\x20received\x20acknowledgement.','AuthServerService','has','authzUrl','type','LIVESHARE_TERMINATE','words','session.room-permission-denied','_lockTransition','synced','_transformRemoteChangesetByIMECache','csAckEvent','_initUnitPermissionChange','_transformStack','JOIN','sigBytes','loadDoc','_handler','online$','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_revisionService','image/jpeg','onCommentUpdate','removeMember','onTransformState','requireSha1','ENSURE_SNAPSHOT_EXECUTION','reverse','copyFileMeta','repeat','_updateState','_replaceFileID','Hasher','handleCloseConn','__decorateClass$5','_onJoinRoomEvent','Undefined','change$','pad','image/png','APPLY_DUPLICATED','_collabSessionService','replace','collaboration-client.local-cache-service','66536YiLcTA','transformSelections','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','PERMISSION_REJ','_updateLocalCache','_localeService','_showConflictNotification','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','HEARTBEAT','resolve','/universer-api/snapshot/','__defNormalProp','name','PY_RUNTIME_SCRIPT_ERROR','fetch_missing','function','SUBMIT_CHANGESET','changesets','memberID','parse','hasOwnProperty','withCredentials','resend','LICENSE_IMPORT_SIZE_EXCEEDED','Cipher','Latin1','awaitingChangeset','createTimerObservable$','_loadSheet','/rev/','21951980tbUmjB','executeCommand','DataLoaderService','_onConnectionOpen','Utf8','AuthzIoHttpService','_createHandler','readAsDataURL','_syncEditingCollabCursor','keySize','SheetTransformSelectionsService','createOnlineState','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','_injector','onTransformRemoteChangesetByStateCache','_sender','_onRemoteRetry','_startCollaboration','CHANGESET_REVISION_CONFILICT','ALREADY_EXISTS','_incrementRevisionNumber','members$','_registerDependencies','__esModule','subject','/unit/','__decorateClass$d','confirm','UNKNOWN_CMD','setShowComponents','splice','body','readInt32LE','members','decrypt','loadSheet','Native\x20crypto\x20module\x20could\x20not\x20be\x20used\x20to\x20get\x20secure\x20random\x20number.','socket$','reject','closeSession','483WkNmtB','_onCombEvent','_eventService','socket\x20close','batchAllowed','objects','/universer-api/comb','getAttachHeader','finalize','message$','APPLY_NON_SEQUENTIAL_REVISION','_timeoutTimer','enableOfflineEditing','_tryEnsureSocket','handleUnitPermissionChange','SOCKET_FAILED','__decorateClass$2','_socket$','getTypeOfUnitAdded$','_submitChangeset','catch','method','image/jpg','socketService','generateRandomId','_clearRedo','rev','textRanges','emitEvent','__decorateParam$1','_rescheduleHeartbeat','getMember','post','FETCH_MISS','UNIVER_PROJECT','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','unitID','commentUpdate$','_roomCreated$','_getCtorByUniverType','_getSessionTicket','BufferedBlockAlgorithm','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','json','saveSheetBlock','UUID','MD5','params','_initRequestHeader','result','duration','pkcs7Padding','/new_changes','HEARTBEAT_TIMEOUT','[CollaborationEntity]','__decorateParam$4','m2Prime','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','fetchMissingChangesets','state$','_removeRoom','stringify','_append','_onMessage','[FetchMissState]','encode','_unitID','min','_doProcessBlock','_socketMessageSubscription','__decorateParam$g','ciphertext','extend','updatePermissionPoint','getValue','__decorateParam$i','_candidateSocket','SyncedState','default','_transformUndoredo','[DataLoaderService]','headers','/-/object/list','_transformSelections','set','CBC','_snapshotService','push','COMMENT_UPDATE','_roomMembers','unsubscribe','execute','onTransformRemoteChangesetByIMECache','_logService','_nRounds','location','collaboration-client.config','status','range','_collaborationPaused','getFocusedUnit','_collaborationUIEventService','getDeserializedSheetBlock','_redoStacks','__decorateParam$d','_onRemoteACK','POST','startsWith','map','MentionIoHttpService','ERROR_IMAGE','_minBufferSize','LIVESHARE_OPERATION','socket\x20open.','searchParams','SOCKET_FAILED_RETRY','liveShareNewHost','INGEST','padding','_config','/object/','_oKey','_members','[PendingState]:\x20received\x20acknowledgement.','_getCurrentRevision','SerializableCipher','filter','_httpService','_doReset','__decorateClass$4','roles','prototype','actions','_getDownloadEndpointURL','CollaborationImageIoService','symbol','getActiveSheet','file','data','updatePermissionObjEvent','_cipher','event$','PERSON','_toggleOffline','addImageSourceCache','JOINING','clamp','close$','INTERNAL_ERROR','_socketReady','_undoRedoService','_permissionService','_createSocketURL','_prevBlock','image/gif','equals','_createInitialState','getConfig','/role','collabSubmitChangesetUrl','hostname','JOIN_ROOM_FULL','unpad','collaMsg','createEncryptor','resourceIDs','2arccjG','568602NOoYaW','_compressMutationService','UNDEFINED','_listenToNetworkCondition','mixIn','registerHTTPInterceptor','_entities','ws://127.0.0.1:8000/universer-api/comb/connect','_onOffline','_throwTelemetryCollaborationNewChangeset','onTransformIME','ERROR_EXCEED_SIZE','terminateWithError','__decorateClass$a','responseType','/allowed','ivSize','string','_retryCount','SEND_CHANGESET_TIMEOUT','__decorateParam$5','HMAC','SHA1','_instanceService','\x20-\x20','__decorateParam$8','BlockCipherMode','_commentUpdate$','reqId','assembleDocChangeset','_http','_onRemoteRejected','MUTATION','CONNECTOR_DATA_TOO_LARGE','__decorateClass','UnitSnapshot','requireHmac','UNRECOGNIZED','disposeWithMe','LEAVE','baseRev','_scheduleCompleteTimestamp','_substituteRedoStack','_checkMissing','onMissingChangesets','_map','[CollaborationSession]','HttpExport','UNIVER_DOC','APPLY_PERMISSION_DENIED','failed\x20to\x20apply\x20missed\x20changesets!','deserializeToCombResponse','_waitCount','_init','CollaborationUIEventService','[OfflineState]:\x20received\x20rejection.','UNAUTHENTICATED','_substituteUndoStack','YUUMI_SUBSCRIPTION_NOT_FOUND','_keyPriorReset','onMissedChangesetFetched','mode','_clearScheduledTask','compute','getCollabEntity','SHOULD_CLOSE_CONN','49751oPPjKh','put','xorBlock','_commandService','connection\x20error','CHANGESET_SHOULD_RETRY','HttpImport','_tryReconnect','signUrlServerUrl','CipherParams','_singleActiveUnitService','/object','_HTTPService','COMPLETION_FINISHED','setCurrentUser','_onConflict','sendChangesetTimeout','defineProperty','loginUrlKey','PasswordBasedCipher','clear','getCurrentRevOfUnit','615MyNeNX','get','_changesetReqId','USERS_ENTER','_pendingMutations','[SyncedState]:\x20received\x20acknowledgement.','_isPermissionRej','error','LOCAL_CACHE_INTERVAL','reconnect','now','_onLocalMutation','auth.needGotoLoginAlert','_iv','pauseCollaboration','&assign=','univer-pro.collaboration-client-socket-service','&source=','RECV','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','byteLength','session.join-failed','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','2322207IsBWXU','__decorateClass$8','crypto','/-/object/-/batch_allowed','_createInitialStateImpl','_getLoginPath','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_state$','setWaitCount','sin','toggleOnline','_createHelper','$super','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','joinRsp','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','newCsEvent','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','slice','__decorateClass$6','_getUploadFileURL','NOT_COLLAB','_createSocket','c1Prime','pipe','getImageSourceCache','BlockCipher','FAIL','src','_resendTimeout','requireLibTypedarrays','_retryConnectingTimer','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_schedule','_remoteChangesetQueue','cmd','AwaitingWithPendingState','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','SNAPSHOT_INVALID_SNAPSHOT','getInterceptPoints','patch','_keySchedule','UNIVER_SHEET','_type','OPTIONAL','runId','transformUndoRedo','complete','enableAuthServer','LIVESHARE_NEW_HOST','sheets','target','sid','_awaitingChangeset','x-univer-host','findIndex','__decorateParam$3','{fileID}','CollaborationState','_onRemoteChangeset','close','__decorateClass$3','_initCloseConn','/universer-api/oidc/authpage','?url=','_clearUndo','APPLY_REJECT','_initMergeInterceptor','init','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_executeRemoteChangeset','onTransformRemoteChangesetByStateCache\x20callback\x20is\x20not\x20added\x20yet.','onRemoteChangeset','DomainRequestService','YUUMI_RATE_OVER_LIMIT','hasher','[UniverCollaborationClientPlugin]','unknown','__decorateClass$b','_transformStateCache','_event$','_clearTimeoutTimer','\x20in\x20_schedule.','toString','awaiting_with_pending','random','_onFetchMissResult','createCollaborator','getTime','EvpKDF','liveShareOperation','length','getSheetId','updateCollaborator','[PendingState]:\x20received\x20rejection.','_shouldReportTelemetry','override','_updateStatus','size','__decorateClass$g','LIVESHARE_REQUEST_HOST','Malformed\x20UTF-8\x20data','_telemetryService','image/bmp','OTHER_CLIENT_EDITING','PendingState','YUUMI_URL_COL_OUT_OF_RANGE','then','OfflineState','mutations','_handlerCallback','APPLY_REVISION_CONFILICT','_mode','_configService','isPermissionRej','UNISCRIPT_RUN','CHANGESET_ACK','_decreaseWaiting','url','requireEvpkdf','onTransformSelections','_stopTelemetryCollaborationNewChangeset','_memberService','4054779oUWlqN','_commentService','extractTargetFromFirstChangeset','_unlockTransition','YUUMI_UNABLE_LOAD_URL','kdf','SUCCUSS','listCollaborators','dispose','commonjsRequire','eventID','_toggleOnline','updateMember','updateCursorEvent','toLowerCase','process','__decorateClass$f','_getAPIPrefix','__decorateParam$7','objectActions','revision','loadOfflineData','_scheduleCollaborationTimeoutTimer','status$','fetchMiss','deleteCollaborator','CHANGESET_REJ','People','SUBMIT_CHANGESET_TIMEOUT','[SyncedState]:\x20received\x20rejection.','_imageSourceCache','_collaborationTimeoutTimer','onRemoteRej','IDLE','\x0aAfter:\x20','Encryptor','_clearHeartbeatTimer','__decorateParam','open$','ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=','_joinRoom','sessionStatus$','AWAITING','_data','_doFinalize','PENDING','format','join','[CollaborationSessionService]:\x20socket\x20error','localCacheService','_entityInit$','_parse','debug','BASE64','_localCacheService','incrementRevOfUnit','_fetchMissChangesets','Could\x20not\x20dynamically\x20require\x20\x22','PSEUDO_FETCH_MISSING_RESULT','FileId','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_state','every','MSG_FOR_ERROR','Error\x20on\x20receiving\x20event','AUTHZ_URL_KEY','getRoom','Base64','getMemberID','_applyRemoteChangeset','INVALID_ARGUMENT','_createHmacHelper','snapshot','createSocket','substr','generateSubmitChangesPath','_replayCachedMutations','CONFLICT','append','Hex','sessionTicket','_loadDoc','/universer-api/uniscript','code','Decryptor','NO_OTHER_CLIENTS_EDITING','isArray','refreshPermission','pluginName','__decorateClass$1','/collaborator','avatar','pending','randomBytes','permissionRejEvent','floor','ConflictState','FetchingMissState','onRemoteAck','JOIN_ROOM_FAILED','getRandomValues','compose','_networkConditionService','apply','PERMISSION_DENIED','_queuedRemoteChangesets','_hash','OFFLINE','_resendTimer','StreamCipher','_changesetSessionId','stopTime','cryptoSecureRandomInt','onlyLocal','onLocalMutation','_onUserJoin','title','offline','exports','requireCipherCore','getUnitId','collaboration_new_changeset','reset','WordArray','msCrypto','getSheetBlock','interceptor','requireCore','\x20to\x20','/universer-api/authz','ticket','COLLAB_WEB_SOCKET_URL','[CollaborationUndoRedoService]','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','saveImage','_acknowledgedAwaitingChangeset','20924biVnXF','onSendChangeset','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_reverseMap','_sendHeartbeat','origin','_getSendChangesetTimeout','href','requestParams','JOIN_ROOM_NOT_EXISTS','next','_getRedoStack','__decorateParam$a','/block/','max','sessionStatus','collaborators','LICENSE_DISTRO_REJECTED','conflict','UNIVER_SLIDE','_ENC_XFORM_MODE','_socket','getImage','buffer','charCodeAt','charAt','JOIN_ROOM_PERMISSION_DENIED','_onUserLeave','lib','HmacMD5','COMPRESS_MUTATION_SEND','cfg','summaryChangesetSize','UNIVER_UNKNOWN','updateOfflineData','USERS_LEAVE','algo','waitForRoom$','11aCtdXP','LIVESHARE_FETCH_OPERATIONS','objectType','/resources','__decorateParam$c','requireAes','_onConnectionFailed','fetchThroughInterceptors','CLOSE_ROOM','COMPRESS_MUTATION_APPLY','_nDataBytes','blockSize','onCommandExecuted','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','formatter','ONLINE','__publicField','Base','send','call','fromCharCode','enc','listRoles','transformStack\x20failed!','_sheetTransformSelectionsService','salt','_change$','toggleOffline','downloadEndpointUrl','localeService','assembleSheetChangeset','_transformRemoteChangesetByStateCache','/universer-api/user/session-ticket','NoPadding','_getAPIPrefixPath','values','RoomMember','HEARTBEAT_INTERVAL','_status$','_onRecvEvent','add','onRemoteRetry','save\x20fail\x20reason\x20is\x20','initWorkbookPermissionChange','requireSession','_sendingTimer','telemetry\x20info\x20is\x20not\x20initialized','_univerInstanceService','abs','_sessions','csShouldRetryEvent','rng','session.room-full','state','search','unitInfo$','LICENSE_EXPORT_SIZE_EXCEEDED','getTypeOfUnitDisposed$','_process','create','error$','getOwnPropertyDescriptor','routeKey','_transitionLocked','AES','collabWebSocketUrl','HELLO','NOT_FOUND','_transformService','transformMutationsWithChangeset','getSnapshotAPIPath','UPDATE_PERMISSION_OBJ','update','dispose$','encodeURIComponent','FETCH_MISSING','_DEC_XFORM_MODE','?size=','_getUndoStack','OTHER_CLIENTS_EDITING','_xformMode','subscribe','encrypt','concat','indexOf','HmacSHA1','requireMd5','onStateChange','_members$','[CollaborationSessionService]','getCollabEntity$','_disableEditing','editing\x20status\x20changed\x20to','LICENSE_MAX_UNITS_EXCEEDED','appendMutation','_getSignURL','uniscriptRunEvent','_unitInfo$','_iKey','univer-pro.collaboration-client.single-active-unit-service','processBlock','setConfig','_hasher','onStarting','userID','FileNameController','delete','_sessionStatus$','_key','createDecryptor','_initDependencies','_userManagerService','_transformIMECache','_emitMembers','__decorateClass$c','fromCollab','univer-pro.collaboration-client.network-condition.service','randomUUID','encryptBlock','selections','_doCryptBlock','ERROR_IMAGE_TYPE','_sendHeartbeatTimer','onSyncEditingCollabCursor','CollaborationSessionService','bind','asObservable','_exhaustRemoteChangesetQueue','ceil','UnitEmbedded','clone','GLOBAL_ROOMS_CNT_EXCEEDS','not_collab','allowed','__creator','parseLoop','_authzIoService','subUnitId','unit-cache-','getUnit','UPDATE_CURSOR','unitId','saveChangeset','_startTelemetryCollaborationNewChangeset','_telemetryInfo','forEach','_snapshotServerService','objectID','getCurrentSelections','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','Random\x20bytes\x20length\x20must\x20be\x20>=\x2016','transformChangesets','deepClone','decryptBlock','byteOffset','CollaborationSocketService','session','fetching\x20missing\x20changesets\x20from\x20','createInstance','collaboratorID','_resendWithTimeout','originalMeta','capture','getCurrentUser','_waitForHeartbeatResponse','_clearLocalCache','awaiting','SYNCED','Pkcs7','_collaborationSessionService','OpenSSL'];_0x2fa0=function(){return _0x1e8311;};return _0x2fa0();}__name(serializeCombRequest,'serializeCombRequest');var __defProp$i=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc$i=Object[_0x43e0c9(0x33e)],__decorateClass$i=__name((_0x3e77b1,_0x19a17e,_0x538ec3,_0x36e9f9)=>{var _0x5a9f3a=_0x43e0c9;for(var _0x490aa7=_0x36e9f9>0x1?void 0x0:_0x36e9f9?__getOwnPropDesc$i(_0x19a17e,_0x538ec3):_0x19a17e,_0x4dfc82=_0x3e77b1[_0x5a9f3a(0x233)]-0x1,_0x231c28;_0x4dfc82>=0x0;_0x4dfc82--)(_0x231c28=_0x3e77b1[_0x4dfc82])&&(_0x490aa7=(_0x36e9f9?_0x231c28(_0x19a17e,_0x538ec3,_0x490aa7):_0x231c28(_0x490aa7))||_0x490aa7);return _0x36e9f9&&_0x490aa7&&__defProp$i(_0x19a17e,_0x538ec3,_0x490aa7),_0x490aa7;},'__decorateClass$i'),__decorateParam$i=__name((_0x512dca,_0x251eea)=>(_0x20f6dc,_0x4d0ca0)=>_0x251eea(_0x20f6dc,_0x4d0ca0,_0x512dca),_0x43e0c9(0x10d));const ICollaborationSocketService=createIdentifier(_0x43e0c9(0x1d1));function generateSubmitChangesPath(_0x253bf5,_0x4cb89a,_0x511e6e){var _0x56d922=_0x43e0c9;return _0x253bf5+'/'+_0x4cb89a+_0x56d922(0x40f)+_0x511e6e+_0x56d922(0xf6);}__name(generateSubmitChangesPath,_0x43e0c9(0x29e));var _a;let CollaborationSocketService=(_a=class extends Disposable{constructor(_0x290320,_0x5b1930,_0x17c26e,_0x3de643,_0x5835a3){var _0xacc825=_0x43e0c9;super(),this['_injector']=_0x290320,this[_0xacc825(0x187)]=_0x5b1930,this[_0xacc825(0x249)]=_0x17c26e,this[_0xacc825(0x11f)]=_0x3de643,this[_0xacc825(0x393)]=_0x5835a3;}[_0x43e0c9(0x29c)](_0x16ea35){var _0x1aea68=_0x43e0c9;const _0x1f490a=this['_injector'][_0x1aea68(0x1c2)](ISocketService);if(!_0x1f490a)throw new Error(_0x1aea68(0x402));const _0x25c7d5=_0x1f490a['createSocket'](_0x16ea35);if(!_0x25c7d5)throw new Error(_0x1aea68(0x1e7));const _0x48a0f6=new DisposableCollection(),_0x184aa8=new Subject();_0x48a0f6[_0x1aea68(0x329)](_0x25c7d5[_0x1aea68(0x155)][_0x1aea68(0x352)](_0xb8eb9e=>_0x184aa8['next'](_0xb8eb9e))),_0x48a0f6['add'](toDisposable(()=>_0x184aa8['complete']()));const _0x22af88=new Subject();_0x48a0f6['add'](_0x25c7d5[_0x1aea68(0x33d)][_0x1aea68(0x352)](_0xcb733d=>_0x22af88[_0x1aea68(0x2e5)](_0xcb733d))),_0x48a0f6[_0x1aea68(0x329)](toDisposable(()=>_0x22af88[_0x1aea68(0x207)]()));const _0x39c270=new Subject();_0x48a0f6[_0x1aea68(0x329)](_0x25c7d5[_0x1aea68(0x427)]['subscribe'](_0x3c05bf=>{const _0xdef5f=deserializeToCombResponse(_0x3c05bf);_0x39c270['next'](_0xdef5f);})),_0x48a0f6[_0x1aea68(0x329)](toDisposable(()=>_0x39c270[_0x1aea68(0x207)]()));let _0x268457;const _0x582415=__name(()=>{var _0x2f93e3=_0x1aea68;_0x22af88['next'](new Event(_0x2f93e3(0x1af))),_0x184aa8[_0x2f93e3(0x2e5)](new CloseEvent(_0x2f93e3(0x1af))),_0x268457['close']();},_0x1aea68(0x175));return _0x268457={'memberID':'','close$':_0x184aa8[_0x1aea68(0x37f)](),'error$':_0x22af88[_0x1aea68(0x37f)](),'open$':_0x25c7d5[_0x1aea68(0x279)],'message$':_0x39c270[_0x1aea68(0x37f)](),'send':__name(_0x1e6c5d=>{var _0x5f2833=_0x1aea68;if(_0x1e6c5d['cmd']===CombCmd[_0x5f2833(0x137)]){if(_0x1e6c5d['data'][_0x5f2833(0x25d)]===CollaborationEvent[_0x5f2833(0x3e8)]){this[_0x5f2833(0x431)](_0x268457,_0x1e6c5d['data'])[_0x5f2833(0x432)](_0x457b79=>{var _0x159753=_0x5f2833;this['_logService'][_0x159753(0x1c8)](_0x457b79),_0x582415();});return;}if(_0x1e6c5d['data']['eventID']===CollaborationEvent[_0x5f2833(0x34c)]){const _0x30481c=_0x1e6c5d[_0x5f2833(0x14c)];this[_0x5f2833(0x28b)](_0x30481c)[_0x5f2833(0x243)](_0x420b63=>{var _0x24eb16=_0x5f2833;_0x39c270[_0x24eb16(0x2e5)]({'cmd':CombCmd[_0x24eb16(0x1d3)],'code':CmdRspCode['OK'],'routeKey':_0x30481c['data'][_0x24eb16(0x442)],'routeType':'','data':{'eventID':CollaborationEvent['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x420b63}}});})[_0x5f2833(0x432)](_0x3833d1=>{var _0x4d4943=_0x5f2833;this[_0x4d4943(0x11f)][_0x4d4943(0x1c8)](_0x3833d1),_0x582415();});return;}}_0x25c7d5['send'](serializeCombRequest(_0x1e6c5d));},_0x1aea68(0x313)),'close':__name(()=>{var _0x14d35c=_0x1aea68;_0x25c7d5[_0x14d35c(0x214)](),_0x48a0f6[_0x14d35c(0x25b)]();},'close')},_0x268457;}async[_0x43e0c9(0x431)](_0x53814c,_0x106dea){var _0x5cb6cd=_0x43e0c9,_0x562336,_0x5c7f71;const {unitType:_0x41c20c,unitID:_0x4c2b3b,changeset:_0x5be064}=_0x106dea[_0x5cb6cd(0x14c)],_0x5cc30e={'unitID':_0x4c2b3b,'memberID':_0x53814c[_0x5cb6cd(0x3ea)],'type':_0x41c20c,'changeset':parseChangesetToProtocol(_0x5be064)},_0x1a35a4=this[_0x5cb6cd(0x249)]['getConfig'](COLLAB_SUBMIT_CHANGESET_URL_KEY),_0x416d36=this['_configService'][_0x5cb6cd(0x15f)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY),_0x516673=generateSubmitChangesPath((_0x5c7f71=(_0x562336=_0x416d36==null?void 0x0:_0x416d36[_0x5cb6cd(0x161)])!=null?_0x562336:_0x1a35a4)!=null?_0x5c7f71:DEFAULT_COLLAB_SUBMIT_CHANGESET_URL,_0x41c20c,_0x4c2b3b);try{await this[_0x5cb6cd(0x187)][_0x5cb6cd(0x43e)](_0x516673,{'body':_0x5cc30e});}catch(_0x5c84ba){throw this[_0x5cb6cd(0x11f)]['error']('[CollaborationSession]','submit\x20changeset\x20error!'),_0x5c84ba;}}async[_0x43e0c9(0x28b)](_0xd8f82){var _0x1dd193=_0x43e0c9;const {unitID:_0x529b0e,from:_0xbec9c8,to:_0x25f28c,unitType:_0x35d45c}=_0xd8f82[_0x1dd193(0x14c)];return(await this[_0x1dd193(0x393)][_0x1dd193(0xfc)]({'metadata':void 0x0},{'unitID':_0x529b0e,'type':_0x35d45c,'from':_0xbec9c8,'to':_0x25f28c}))[_0x1dd193(0x3e9)];}},__name(_a,_0x43e0c9(0x39c)),_a);CollaborationSocketService=__decorateClass$i([__decorateParam$i(0x0,Inject(Injector)),__decorateParam$i(0x1,Inject(HTTPService)),__decorateParam$i(0x2,IConfigService),__decorateParam$i(0x3,ILogService),__decorateParam$i(0x4,ISnapshotServerService)],CollaborationSocketService);const TELEMETRY_COLLABORATION_NEW_CHANGESET=_0x43e0c9(0x2cc);function summaryChangesetSize(_0x4883c3){var _0x5d9e4c=_0x43e0c9;return JSON[_0x5d9e4c(0xff)](_0x4883c3)['length'];}__name(summaryChangesetSize,_0x43e0c9(0x2fb));const _CommentService=class _CommentService{constructor(){var _0x5c10d1=_0x43e0c9;__publicField(this,_0x5c10d1(0x184),new Subject()),__publicField(this,_0x5c10d1(0x443),this[_0x5c10d1(0x184)][_0x5c10d1(0x37f)]());}[_0x43e0c9(0x3c2)](_0x54d623){var _0x1d4858=_0x43e0c9;this[_0x1d4858(0x184)][_0x1d4858(0x2e5)](_0x54d623);}};__name(_CommentService,'CommentService');let CommentService=_CommentService;var __defProp$h=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc$h=Object['getOwnPropertyDescriptor'],__decorateClass$h=__name((_0x32401c,_0x11f8a1,_0x17322e,_0x4f2e85)=>{var _0x49dd1f=_0x43e0c9;for(var _0xba6153=_0x4f2e85>0x1?void 0x0:_0x4f2e85?__getOwnPropDesc$h(_0x11f8a1,_0x17322e):_0x11f8a1,_0x2a8116=_0x32401c[_0x49dd1f(0x233)]-0x1,_0xea1a10;_0x2a8116>=0x0;_0x2a8116--)(_0xea1a10=_0x32401c[_0x2a8116])&&(_0xba6153=(_0x4f2e85?_0xea1a10(_0x11f8a1,_0x17322e,_0xba6153):_0xea1a10(_0xba6153))||_0xba6153);return _0x4f2e85&&_0xba6153&&__defProp$h(_0x11f8a1,_0x17322e,_0xba6153),_0xba6153;},'__decorateClass$h'),__decorateParam$h=__name((_0x192757,_0x379e89)=>(_0x33864b,_0x522999)=>_0x379e89(_0x33864b,_0x522999,_0x192757),'__decorateParam$h'),_a2;let MemberService=(_a2=class extends Disposable{constructor(_0x1c876b,_0x180d5b){var _0x2c2455=_0x43e0c9;super(),__publicField(this,_0x2c2455(0x11b),new Map()),__publicField(this,_0x2c2455(0x444),new Subject()),(this[_0x2c2455(0x330)]=_0x1c876b,this[_0x2c2455(0x370)]=_0x180d5b,this[_0x2c2455(0x18f)](merge(this[_0x2c2455(0x330)][_0x2c2455(0x33a)](UniverInstanceType[_0x2c2455(0x202)])[_0x2c2455(0x1f0)](map(_0x176857=>_0x176857[_0x2c2455(0x2cb)]())),this['_univerInstanceService'][_0x2c2455(0x33a)](UniverInstanceType[_0x2c2455(0x199)])[_0x2c2455(0x1f0)](map(_0x343a48=>_0x343a48[_0x2c2455(0x2cb)]())),this[_0x2c2455(0x330)][_0x2c2455(0x33a)](UniverInstanceType[_0x2c2455(0x2ee)])[_0x2c2455(0x1f0)](map(_0x45228c=>_0x45228c[_0x2c2455(0x2cb)]())))[_0x2c2455(0x352)](_0x23dc57=>this[_0x2c2455(0xfe)](_0x23dc57))));}[_0x43e0c9(0x300)](_0x480eed){var _0x37316d=_0x43e0c9;return this[_0x37316d(0x11b)][_0x37316d(0x3ae)](_0x480eed)?of(this['_roomMembers'][_0x37316d(0x1c2)](_0x480eed)):this[_0x37316d(0x444)][_0x37316d(0x1f0)](map(_0x52f8f1=>{var _0x233e56=_0x37316d;if(_0x52f8f1===_0x480eed)return this[_0x233e56(0x11b)]['get'](_0x52f8f1);}));}[_0x43e0c9(0x1b9)](_0x114650){var _0x11a7a7=_0x43e0c9;this[_0x11a7a7(0x370)][_0x11a7a7(0x1b9)](_0x114650);}[_0x43e0c9(0x3a4)](){var _0x14c083=_0x43e0c9;return this['_userManagerService'][_0x14c083(0x3a4)]();}[_0x43e0c9(0x25f)](_0x28f77f,_0x1bb357){var _0x11f726=_0x43e0c9;let _0x91238e=this[_0x11f726(0x11b)]['get'](_0x28f77f);_0x91238e||(_0x91238e=new RoomMember(),this[_0x11f726(0x11b)][_0x11f726(0x116)](_0x28f77f,_0x91238e),this[_0x11f726(0x444)][_0x11f726(0x2e5)](_0x28f77f)),_0x91238e[_0x11f726(0x25f)](_0x1bb357);}[_0x43e0c9(0x3c3)](_0x170098,_0x1b45e9){var _0x1f1f68=_0x43e0c9;const _0x51204c=this[_0x1f1f68(0x11b)][_0x1f1f68(0x1c2)](_0x170098);_0x51204c&&_0x51204c[_0x1f1f68(0x3c3)](_0x1b45e9);}[_0x43e0c9(0x295)](_0xbc6642){var _0x5d2014=_0x43e0c9;return this[_0x5d2014(0x11b)]['get'](_0xbc6642);}[_0x43e0c9(0x43d)](_0x32202e,_0x1b50ac){var _0x3282a0=_0x43e0c9;const _0x2acd32=this[_0x3282a0(0x11b)][_0x3282a0(0x1c2)](_0x32202e);if(_0x2acd32)return _0x2acd32['getMember'](_0x1b50ac);}[_0x43e0c9(0xfe)](_0x46e0c9){var _0x389dc4=_0x43e0c9;const _0x34e331=this[_0x389dc4(0x11b)]['get'](_0x46e0c9);_0x34e331&&(_0x34e331[_0x389dc4(0x25b)](),this['_roomMembers'][_0x389dc4(0x36b)](_0x46e0c9));}[_0x43e0c9(0x25b)](){var _0x42bb08=_0x43e0c9;this[_0x42bb08(0x11b)][_0x42bb08(0x392)](_0x9d96bb=>_0x9d96bb[_0x42bb08(0x25b)]()),this[_0x42bb08(0x11b)][_0x42bb08(0x1bf)](),this[_0x42bb08(0x444)]['complete']();}},__name(_a2,'MemberService'),_a2);MemberService=__decorateClass$h([__decorateParam$h(0x0,IUniverInstanceService),__decorateParam$h(0x1,Inject(UserManagerService))],MemberService);const _RoomMember=class _RoomMember extends Disposable{constructor(){var _0x402e2c=_0x43e0c9;super(...arguments),__publicField(this,'_members',new Map()),__publicField(this,_0x402e2c(0x359),new BehaviorSubject(this[_0x402e2c(0x13c)])),__publicField(this,_0x402e2c(0x40b),this[_0x402e2c(0x359)]['asObservable']());}['dispose'](){var _0x3697cc=_0x43e0c9;this[_0x3697cc(0x13c)][_0x3697cc(0x1bf)]();}['updateMember'](_0x3441a4){var _0x4dadf0=_0x43e0c9;this[_0x4dadf0(0x13c)][_0x4dadf0(0x116)](_0x3441a4[_0x4dadf0(0x3ea)],_0x3441a4),this[_0x4dadf0(0x372)]();}[_0x43e0c9(0x3c3)](_0x630261){var _0x228f98=_0x43e0c9;this[_0x228f98(0x13c)]['delete'](_0x630261);}[_0x43e0c9(0x43d)](_0x4f8a62){var _0x3bb6c8=_0x43e0c9;return this[_0x3bb6c8(0x13c)]['get'](_0x4f8a62);}['getAllMembers'](){var _0x376720=_0x43e0c9;return Array['from'](this['_members'][_0x376720(0x324)]());}[_0x43e0c9(0x372)](){var _0x3f21cb=_0x43e0c9;this['_members$'][_0x3f21cb(0x2e5)](this[_0x3f21cb(0x13c)]);}};__name(_RoomMember,_0x43e0c9(0x325));let RoomMember=_RoomMember;function _0x5029(_0x140c0a,_0x8b7373){var _0x2fa050=_0x2fa0();return _0x5029=function(_0x5029c0,_0x2908f0){_0x5029c0=_0x5029c0-0xf1;var _0xcf31ea=_0x2fa050[_0x5029c0];return _0xcf31ea;},_0x5029(_0x140c0a,_0x8b7373);}var __defProp$g=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc$g=Object[_0x43e0c9(0x33e)],__decorateClass$g=__name((_0x206632,_0x1efe22,_0x56e2c6,_0x381a22)=>{var _0x438899=_0x43e0c9;for(var _0x287218=_0x381a22>0x1?void 0x0:_0x381a22?__getOwnPropDesc$g(_0x1efe22,_0x56e2c6):_0x1efe22,_0x14efea=_0x206632[_0x438899(0x233)]-0x1,_0x4a9bb3;_0x14efea>=0x0;_0x14efea--)(_0x4a9bb3=_0x206632[_0x14efea])&&(_0x287218=(_0x381a22?_0x4a9bb3(_0x1efe22,_0x56e2c6,_0x287218):_0x4a9bb3(_0x287218))||_0x287218);return _0x381a22&&_0x287218&&__defProp$g(_0x1efe22,_0x56e2c6,_0x287218),_0x287218;},_0x43e0c9(0x23b)),__decorateParam$g=__name((_0x35b628,_0xdc3206)=>(_0x582ca0,_0x1e04ec)=>_0xdc3206(_0x582ca0,_0x1e04ec,_0x35b628),_0x43e0c9(0x108)),SessionStatus=(_0x359ea0=>(_0x359ea0[_0x359ea0[_0x43e0c9(0x274)]=0x0]='IDLE',_0x359ea0[_0x359ea0[_0x43e0c9(0x153)]=0x1]=_0x43e0c9(0x153),_0x359ea0[_0x359ea0[_0x43e0c9(0x2be)]=0x2]=_0x43e0c9(0x2be),_0x359ea0[_0x359ea0[_0x43e0c9(0x310)]=0x3]=_0x43e0c9(0x310),_0x359ea0))(SessionStatus||{});const FailedReason={[CmdRspCode[_0x43e0c9(0x1f3)]]:_0x43e0c9(0x1d6),[CmdRspCode[_0x43e0c9(0x163)]]:_0x43e0c9(0x335),[CmdRspCode[_0x43e0c9(0x2e4)]]:'session.room-not-exists',[CmdRspCode['JOIN_ROOM_PERMISSION_DENIED']]:_0x43e0c9(0x3b3),[CmdRspCode[_0x43e0c9(0x384)]]:'session.room-cnt-exceeds'};var _a3;let CollaborationSession=(_a3=class extends RxDisposable{constructor(_0x3d06d3,_0x1d7708,_0x24697f,_0x296fcf,_0x200e51,_0x394bbc,_0x4fb6f4,_0x4fe2b2,_0x533ee0){var _0x3064d0=_0x43e0c9;super(),__publicField(this,_0x3064d0(0x36c),new BehaviorSubject(0x0)),__publicField(this,'sessionStatus$',this[_0x3064d0(0x36c)][_0x3064d0(0x37f)]()),__publicField(this,_0x3064d0(0x228),new Subject()),__publicField(this,_0x3064d0(0x14f),this['_event$'][_0x3064d0(0x37f)]()),__publicField(this,_0x3064d0(0x2f0)),__publicField(this,_0x3064d0(0x107)),__publicField(this,'_collaborationTimeoutTimer'),__publicField(this,'_shouldReportTelemetry',!0x1),__publicField(this,_0x3064d0(0x391),null),(this[_0x3064d0(0x104)]=_0x3d06d3,this['_logService']=_0x24697f,this['_configService']=_0x296fcf,this['_localeService']=_0x200e51,this[_0x3064d0(0x252)]=_0x394bbc,this[_0x3064d0(0x254)]=_0x4fb6f4,this['_collaborationUIEventService']=_0x4fe2b2,this[_0x3064d0(0x23e)]=_0x533ee0,this[_0x3064d0(0x237)]=!!this[_0x3064d0(0x23e)],_0x1d7708[_0x3064d0(0x1f0)](takeUntil(this[_0x3064d0(0x34a)]))[_0x3064d0(0x352)](_0x5798ec=>{var _0xe9982=_0x3064d0,_0x340089;typeof _0x5798ec>'u'||(this[_0xe9982(0x2f0)]=_0x5798ec,_0x5798ec?(this['_joinRoom'](_0x5798ec),this['_socketMessageSubscription']=_0x5798ec[_0xe9982(0x427)][_0xe9982(0x352)](_0x4815d1=>{var _0x8823c3=_0xe9982;_0x4815d1['routeKey']===this[_0x8823c3(0x104)]&&this['_onCombEvent'](_0x4815d1);})):(this[_0xe9982(0x172)](),this[_0xe9982(0x36c)][_0xe9982(0x2e5)](0x2),(_0x340089=this['_socketMessageSubscription'])==null||_0x340089[_0xe9982(0x11c)](),this[_0xe9982(0x107)]=null));}));}get[_0x43e0c9(0x2ea)](){var _0x59ca35=_0x43e0c9;return this[_0x59ca35(0x36c)]['getValue']();}['getMemberID'](){var _0x3a0850=_0x43e0c9,_0x1aa253,_0x183b2d;return(_0x183b2d=(_0x1aa253=this[_0x3a0850(0x2f0)])==null?void 0x0:_0x1aa253['memberID'])!=null?_0x183b2d:null;}[_0x43e0c9(0x25b)](){var _0x570699=_0x43e0c9;super['dispose'](),this['dispose$'][_0x570699(0x2e5)](),this[_0x570699(0x34a)][_0x570699(0x207)]();}[_0x43e0c9(0x214)](){var _0x129353=_0x43e0c9,_0x54862c,_0x3dacf0;this[_0x129353(0x172)](),(_0x54862c=this[_0x129353(0x2f0)])==null||_0x54862c[_0x129353(0x313)]({'cmd':CombCmd[_0x129353(0x190)],'data':{'roomID':this['_unitID']}}),(_0x3dacf0=this[_0x129353(0x2f0)])==null||_0x3dacf0[_0x129353(0x214)](),this[_0x129353(0x228)]['complete'](),this['_sessionStatus$'][_0x129353(0x207)](),this[_0x129353(0x25b)]();}[_0x43e0c9(0x41f)](_0x572e94){var _0x4faf4c=_0x43e0c9;_0x572e94[_0x4faf4c(0x1fb)]===CombCmd['JOIN']?this[_0x4faf4c(0x3cf)](_0x572e94):_0x572e94[_0x4faf4c(0x1fb)]===CombCmd[_0x4faf4c(0x1d3)]&&this[_0x4faf4c(0x328)](_0x572e94);}[_0x43e0c9(0x27b)](_0x50f299){var _0x294c97=_0x43e0c9;this[_0x294c97(0x36c)]['next'](0x1),_0x50f299['send']({'cmd':CombCmd['JOIN'],'routeKey':this[_0x294c97(0x104)],'routeType':'','data':{'rooms':[{'roomID':this[_0x294c97(0x104)]}]}});}['_onJoinRoomEvent'](_0x4b6f4f){var _0x402f94=_0x43e0c9,_0x115820;if(_0x4b6f4f[_0x402f94(0x2a6)]in FailedReason){this[_0x402f94(0x127)][_0x402f94(0x43a)]({'id':CollaborationUIEventId['JOIN_ROOM_FAILED'],'data':FailedReason[_0x4b6f4f[_0x402f94(0x2a6)]]}),this[_0x402f94(0x36c)][_0x402f94(0x2e5)](0x2);return;}this[_0x402f94(0x36c)][_0x402f94(0x2e5)](0x3);const _0x11e49e=(_0x115820=_0x4b6f4f[_0x402f94(0x14c)]['roomInfos'][this[_0x402f94(0x104)]])==null?void 0x0:_0x115820[_0x402f94(0x417)];_0x11e49e&&_0x11e49e['forEach'](_0x1f2b80=>this['_memberService'][_0x402f94(0x25f)](this[_0x402f94(0x104)],_0x1f2b80));}['_onRecvEvent'](_0x27fa21){var _0x255a8f=_0x43e0c9;try{const _0x6889d4=_0x27fa21[_0x255a8f(0x14c)];switch(_0x6889d4[_0x255a8f(0x25d)]){case CollaborationEvent[_0x255a8f(0x1c4)]:this[_0x255a8f(0x2c6)](_0x6889d4),this[_0x255a8f(0x228)][_0x255a8f(0x2e5)](_0x6889d4);break;case CollaborationEvent[_0x255a8f(0x2fe)]:this[_0x255a8f(0x2f6)](_0x6889d4),this['_event$'][_0x255a8f(0x2e5)](_0x6889d4);break;case CollaborationEvent[_0x255a8f(0x24c)]:case CollaborationEvent['CHANGESET_SHOULD_RETRY']:this[_0x255a8f(0x251)](),this['_clearCollaborationTimeoutTimer'](),this[_0x255a8f(0x228)]['next'](_0x6889d4);break;case CollaborationEvent[_0x255a8f(0x292)]:this[_0x255a8f(0x11f)]['error'](_0x255a8f(0x32b)+JSON[_0x255a8f(0xff)](_0x6889d4)),this[_0x255a8f(0x228)]['next'](_0x6889d4);break;case CollaborationEvent[_0x255a8f(0x11a)]:this[_0x255a8f(0x254)][_0x255a8f(0x3c2)](_0x6889d4[_0x255a8f(0x14c)]),this['_event$'][_0x255a8f(0x2e5)](_0x6889d4);break;default:this['_event$'][_0x255a8f(0x2e5)](_0x6889d4);}}catch(_0x21a2c7){this[_0x255a8f(0x11f)][_0x255a8f(0x1c8)](_0x21a2c7,_0x27fa21);}}[_0x43e0c9(0x2c6)](_0x32af5d){var _0x3c58b8=_0x43e0c9;this[_0x3c58b8(0x252)][_0x3c58b8(0x25f)](this[_0x3c58b8(0x104)],_0x32af5d[_0x3c58b8(0x14c)]);}['_onUserLeave'](_0x473b46){var _0x14b43e=_0x43e0c9;this[_0x14b43e(0x252)][_0x14b43e(0x3c3)](this[_0x14b43e(0x104)],_0x473b46['data'][_0x14b43e(0x3ea)]);}async[_0x43e0c9(0x313)](_0x2105f0,_0x29d5d3){var _0xa37cec=_0x43e0c9;if(this[_0xa37cec(0x2ea)]!==0x3||!this['_socket'])throw new Error(_0xa37cec(0x1fd));try{_0x2105f0[_0xa37cec(0x25d)]===CollaborationEvent[_0xa37cec(0x3e8)]&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0xa37cec(0x390)](_0x2105f0)),this['_socket'][_0xa37cec(0x313)]({'cmd':CombCmd[_0xa37cec(0x137)],'routeKey':_0x29d5d3,'routeType':'','data':_0x2105f0});}catch(_0x5c30cd){this[_0xa37cec(0x11f)][_0xa37cec(0x1c8)](_0x5c30cd);}}[_0x43e0c9(0x269)](){var _0x594f83=_0x43e0c9,_0x5e210c;this[_0x594f83(0x272)]=setTimeout(()=>{var _0x430a09=_0x594f83;this[_0x430a09(0x272)]=null,this[_0x430a09(0x127)][_0x430a09(0x43a)]({'id':CollaborationUIEventId['SUBMIT_CHANGESET_TIMEOUT']});},(_0x5e210c=this[_0x594f83(0x249)]['getConfig'](HEARTBEAT_TIMEOUT_KEY))!=null?_0x5e210c:DEFAULT_HEARTBEAT_TIMEOUT);}['_clearCollaborationTimeoutTimer'](){var _0x3cdd09=_0x43e0c9;this[_0x3cdd09(0x272)]&&(clearTimeout(this[_0x3cdd09(0x272)]),this[_0x3cdd09(0x272)]=null);}[_0x43e0c9(0x390)](_0x1fcad4){var _0xe945c4=_0x43e0c9;if(!this['_shouldReportTelemetry'])return;const {data:_0x23f518}=_0x1fcad4,{unitID:_0x2d0f81,changeset:_0x24d70d}=_0x23f518,{mutations:_0x40c9a3,type:_0x83db7d}=_0x24d70d;this[_0xe945c4(0x391)]={'unitId':_0x2d0f81,'type':_0x83db7d,'startTime':performance[_0xe945c4(0x1cb)](),'stopTime':0x0,'duration':0x0,'size':summaryChangesetSize(_0x40c9a3)};}[_0x43e0c9(0x251)](){var _0x49ffd7=_0x43e0c9;if(this[_0x49ffd7(0x237)]){if(!this[_0x49ffd7(0x391)]){this['_logService']['error'](_0x49ffd7(0x197),_0x49ffd7(0x32f));return;}this[_0x49ffd7(0x391)][_0x49ffd7(0x2c2)]=performance[_0x49ffd7(0x1cb)](),this[_0x49ffd7(0x391)][_0x49ffd7(0xf4)]=this[_0x49ffd7(0x391)]['stopTime']-this[_0x49ffd7(0x391)]['startTime'],this[_0x49ffd7(0x23e)][_0x49ffd7(0x3a3)](TELEMETRY_COLLABORATION_NEW_CHANGESET,this[_0x49ffd7(0x391)]),this['_telemetryInfo']=null;}}[_0x43e0c9(0x172)](){var _0x56a98e=_0x43e0c9;this[_0x56a98e(0x391)]=null;}},__name(_a3,'CollaborationSession'),_a3);CollaborationSession=__decorateClass$g([__decorateParam$g(0x2,ILogService),__decorateParam$g(0x3,IConfigService),__decorateParam$g(0x4,Inject(LocaleService)),__decorateParam$g(0x5,Inject(MemberService)),__decorateParam$g(0x6,Inject(CommentService)),__decorateParam$g(0x7,Inject(CollaborationUIEventService)),__decorateParam$g(0x8,Optional(ITelemetryService))],CollaborationSession);var __defProp$f=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc$f=Object[_0x43e0c9(0x33e)],__decorateClass$f=__name((_0x29d4be,_0x46151d,_0x415ae5,_0x31e18b)=>{var _0x50cc74=_0x43e0c9;for(var _0x317281=_0x31e18b>0x1?void 0x0:_0x31e18b?__getOwnPropDesc$f(_0x46151d,_0x415ae5):_0x46151d,_0x2ac5e8=_0x29d4be[_0x50cc74(0x233)]-0x1,_0x588b9f;_0x2ac5e8>=0x0;_0x2ac5e8--)(_0x588b9f=_0x29d4be[_0x2ac5e8])&&(_0x317281=(_0x31e18b?_0x588b9f(_0x46151d,_0x415ae5,_0x317281):_0x588b9f(_0x317281))||_0x317281);return _0x31e18b&&_0x317281&&__defProp$f(_0x46151d,_0x415ae5,_0x317281),_0x317281;},_0x43e0c9(0x263)),__decorateParam$f=__name((_0x4903e1,_0x130926)=>(_0x1b26bc,_0x124e10)=>_0x130926(_0x1b26bc,_0x124e10,_0x4903e1),'__decorateParam$f'),_a4;let CollaborationSessionService=(_a4=class extends Disposable{constructor(_0x148ec9,_0x1d765e,_0x4b8929,_0x3e6c3a,_0x1cb48f,_0x389b10,_0x2c74c5){var _0x30e582=_0x43e0c9;super(),__publicField(this,'_socket$',new BehaviorSubject(void 0x0)),__publicField(this,_0x30e582(0x41b),this[_0x30e582(0x42f)]['asObservable']()),__publicField(this,_0x30e582(0x10e),null),__publicField(this,_0x30e582(0x332),new Map()),__publicField(this,_0x30e582(0x327),new BehaviorSubject(SessionStatus[_0x30e582(0x274)])),__publicField(this,_0x30e582(0x26a),this[_0x30e582(0x327)][_0x30e582(0x37f)]()),__publicField(this,_0x30e582(0x157),!0x1),__publicField(this,_0x30e582(0x1f7)),__publicField(this,_0x30e582(0x17b),0x0),__publicField(this,'_sendHeartbeatTimer'),__publicField(this,'_timeoutTimer'),(this[_0x30e582(0x403)]=_0x148ec9,this[_0x30e582(0x11f)]=_0x1d765e,this[_0x30e582(0x249)]=_0x4b8929,this['_socketService']=_0x3e6c3a,this[_0x30e582(0x141)]=_0x1cb48f,this[_0x30e582(0x127)]=_0x389b10,this['_networkConditionService']=_0x2c74c5,this[_0x30e582(0x16c)]());}get[_0x43e0c9(0x2f0)](){var _0x5303a6=_0x43e0c9;return this[_0x5303a6(0x42f)][_0x5303a6(0x10c)]();}[_0x43e0c9(0x16c)](){var _0x3c56ae=_0x43e0c9;this[_0x3c56ae(0x2b9)]&&this[_0x3c56ae(0x18f)](this[_0x3c56ae(0x2b9)][_0x3c56ae(0x3be)][_0x3c56ae(0x352)](_0x5b6d82=>{var _0x346a27=_0x3c56ae;_0x5b6d82&&!this[_0x346a27(0x2f0)]&&this['reconnect'](),_0x5b6d82||this[_0x346a27(0x171)]();}));}[_0x43e0c9(0x25b)](){var _0x133364=_0x43e0c9;super[_0x133364(0x25b)](),this[_0x133364(0x332)][_0x133364(0x392)](_0x50420d=>_0x50420d[_0x133364(0x25b)]()),this[_0x133364(0x332)][_0x133364(0x1bf)](),this[_0x133364(0x327)][_0x133364(0x207)]();}async[_0x43e0c9(0x32d)](_0x26efa2){var _0x4a6614=_0x43e0c9;if(this[_0x4a6614(0x332)][_0x4a6614(0x3ae)](_0x26efa2))return this[_0x4a6614(0x332)][_0x4a6614(0x1c2)](_0x26efa2);this[_0x4a6614(0x42b)]();const _0x3b0873=this['_injector'][_0x4a6614(0x39f)](CollaborationSession,_0x26efa2,this[_0x4a6614(0x42f)]['asObservable']());return this[_0x4a6614(0x332)][_0x4a6614(0x116)](_0x26efa2,_0x3b0873),_0x3b0873;}['closeSession'](_0x2175ea){var _0x5e9e63=_0x43e0c9,_0x27b8e1;const _0x20c764=this[_0x5e9e63(0x332)][_0x5e9e63(0x1c2)](_0x2175ea);_0x20c764&&(this['_sessions'][_0x5e9e63(0x36b)](_0x2175ea),_0x20c764['close']()),this['_sessions']['size']||(_0x27b8e1=this['_socket'])==null||_0x27b8e1['close']();}[_0x43e0c9(0x1ca)](){var _0x28340b=_0x43e0c9;this['_retryCount']=0x0,this['_retryConnectingTimer']!=null&&(clearTimeout(this[_0x28340b(0x1f7)]),this[_0x28340b(0x1f7)]=null),this[_0x28340b(0x1b2)]();}async[_0x43e0c9(0x446)](){var _0x5a5b94=_0x43e0c9,_0x415998,_0x4ac9c7,_0x5d3aec;const _0x6f62a7=this['_configService'][_0x5a5b94(0x15f)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY),_0xc6b9f0=(_0x415998=_0x6f62a7==null?void 0x0:_0x6f62a7['wsSessionTicketUrl'])!=null?_0x415998:DEFAULT_WS_SESSION_TICKET_URL;return(_0x5d3aec=(_0x4ac9c7=(await this[_0x5a5b94(0x141)]['get'](_0xc6b9f0,{'headers':{'Content-Type':'application/json'}}))[_0x5a5b94(0x415)])==null?void 0x0:_0x4ac9c7[_0x5a5b94(0x2d5)])!=null?_0x5d3aec:'';}['_createSocketURL'](_0x2466d2){var _0x504f8d=_0x43e0c9,_0x42483d,_0x3ed9da;const _0x38d716=this['_configService'][_0x504f8d(0x15f)](COLLAB_WEB_SOCKET_URL_KEY),_0x4349d0=this[_0x504f8d(0x249)][_0x504f8d(0x15f)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY),_0x5e9950=(_0x3ed9da=(_0x42483d=_0x4349d0==null?void 0x0:_0x4349d0[_0x504f8d(0x342)])!=null?_0x42483d:_0x38d716)!=null?_0x3ed9da:DEFAULT_COLLAB_WEB_SOCKET_URL,_0x9795fd=typeof window>'u'?new URL(_0x5e9950):new URL(_0x5e9950,window[_0x504f8d(0x121)]['origin']);_0x9795fd[_0x504f8d(0x134)][_0x504f8d(0x116)](_0x504f8d(0x2a3),_0x2466d2);const _0x460a4b=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x504f8d(0x121)][_0x504f8d(0x337)]);return _0x460a4b[_0x504f8d(0x1c2)](_0x504f8d(0x205))&&_0x9795fd[_0x504f8d(0x134)][_0x504f8d(0x116)]('runId',_0x460a4b[_0x504f8d(0x1c2)](_0x504f8d(0x205))),_0x9795fd[_0x504f8d(0x22b)]();}async[_0x43e0c9(0x1ee)](){var _0xd8969a=_0x43e0c9;const _0x1b3cb2=await this[_0xd8969a(0x446)](),_0x17e2bc=this[_0xd8969a(0x15a)](_0x1b3cb2),_0xe6eac1=this['_socketService'][_0xd8969a(0x29c)](_0x17e2bc);return this['_candidateSocket']=_0xe6eac1,_0xe6eac1;}async[_0x43e0c9(0x42b)](){var _0x24d1b0=_0x43e0c9,_0x3356ca,_0x58cc7a;try{const _0x248276=(_0x58cc7a=(_0x3356ca=this[_0x24d1b0(0x2f0)])!=null?_0x3356ca:this[_0x24d1b0(0x10e)])!=null?_0x58cc7a:await this[_0x24d1b0(0x1ee)]();if(_0x248276){const _0x3a7508=_0x248276['send'];_0x248276[_0x24d1b0(0x313)]=_0x24c64c=>(this['_rescheduleHeartbeat'](),_0x3a7508[_0x24d1b0(0x2ba)](_0x248276,[_0x24c64c])),_0x248276[_0x24d1b0(0x427)][_0x24d1b0(0x352)](_0x36e502=>this['_onMessage'](_0x248276,_0x36e502)),_0x248276[_0x24d1b0(0x33d)][_0x24d1b0(0x1f0)](take(0x1))['subscribe'](_0x28be5d=>this[_0x24d1b0(0x11f)][_0x24d1b0(0x1c8)](_0x24d1b0(0x283),_0x28be5d)),_0x248276[_0x24d1b0(0x279)]['pipe'](take(0x1))[_0x24d1b0(0x352)](()=>{var _0x3aeefa=_0x24d1b0;this[_0x3aeefa(0x3f9)](_0x248276);}),_0x248276['close$'][_0x24d1b0(0x1f0)](take(0x1))[_0x24d1b0(0x352)](_0x29e9cc=>{var _0x3bd28c=_0x24d1b0;this['_logService']['debug'](_0x3bd28c(0x35a),_0x3bd28c(0x421),_0x29e9cc),this[_0x3bd28c(0x307)]();});}}catch(_0xb60ad7){this[_0x24d1b0(0x11f)][_0x24d1b0(0x1c8)](_0xb60ad7),this[_0x24d1b0(0x307)]();}}[_0x43e0c9(0x3f9)](_0x474e03){var _0x287a8e=_0x43e0c9;this[_0x287a8e(0x11f)]['debug'](_0x287a8e(0x35a),_0x287a8e(0x133)),_0x474e03[_0x287a8e(0x313)]({'cmd':CombCmd['HELLO']}),this[_0x287a8e(0x43c)]();}[_0x43e0c9(0x171)](){var _0x58bcd9=_0x43e0c9;this[_0x58bcd9(0x157)]=!0x1,this['_candidateSocket']=null,this['_status$'][_0x58bcd9(0x2e5)](SessionStatus['OFFLINE']),this[_0x58bcd9(0x42f)]['next'](null),this['_clearTimeoutTimer'](),this[_0x58bcd9(0x277)]();}[_0x43e0c9(0x307)](){var _0x3fcbd0=_0x43e0c9,_0x46a4dd;this[_0x3fcbd0(0x171)](),this[_0x3fcbd0(0x17b)]<((_0x46a4dd=this[_0x3fcbd0(0x249)][_0x3fcbd0(0x15f)](RETRY_CONNECTING_MAX_COUNT_KEY))!=null?_0x46a4dd:DEFAULT_RETRY_CONNECTING_MAX_COUNT)?(this['_collaborationUIEventService'][_0x3fcbd0(0x43a)]({'id':CollaborationUIEventId[_0x3fcbd0(0x135)]}),this[_0x3fcbd0(0x1b2)]()):this[_0x3fcbd0(0x127)][_0x3fcbd0(0x43a)]({'id':CollaborationUIEventId['SOCKET_FAILED']});}[_0x43e0c9(0x1b2)](){var _0x59ad26=_0x43e0c9,_0x52f7ac;const _0x27fa5d=this[_0x59ad26(0x17b)],_0xca128f=this[_0x59ad26(0x249)][_0x59ad26(0x15f)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY),_0x47d0b8=_0x27fa5d===0x0?0x0:((_0x52f7ac=_0xca128f==null?void 0x0:_0xca128f['retryConnectingInterval'])!=null?_0x52f7ac:DEFAULT_RETRY_CONNECTING_INTERVAL)*0x2**_0x27fa5d;this['_retryConnectingTimer']=setTimeout(()=>{var _0x12b694=_0x59ad26;clearTimeout(this[_0x12b694(0x1f7)]),this[_0x12b694(0x1f7)]=null,this[_0x12b694(0x42b)]();},_0x47d0b8),this['_retryCount']+=0x1;}[_0x43e0c9(0x101)](_0x18ca9b,_0x2f37be){var _0x2588b9=_0x43e0c9;const {cmd:_0x38d69a}=_0x2f37be;_0x38d69a===CombCmd[_0x2588b9(0x343)]&&!this[_0x2588b9(0x157)]&&(_0x18ca9b['memberID']=_0x2f37be['data'][_0x2588b9(0x3ea)],this['_socket$'][_0x2588b9(0x2e5)](_0x18ca9b),this['_status$'][_0x2588b9(0x2e5)](SessionStatus[_0x2588b9(0x310)]),this['_socketReady']=!0x0,this[_0x2588b9(0x10e)]=null),_0x38d69a===CombCmd['HEARTBEAT']&&this[_0x2588b9(0x229)](),this['_rescheduleHeartbeat']();}[_0x43e0c9(0x43c)](){var _0x547106=_0x43e0c9,_0x1e1e18;this['_clearHeartbeatTimer'](),this['_sendHeartbeatTimer']=setTimeout(()=>this[_0x547106(0x2df)](),(_0x1e1e18=this[_0x547106(0x249)][_0x547106(0x15f)](HEARTBEAT_INTERVAL_KEY))!=null?_0x1e1e18:DEFAULT_HEARTBEAT_INTERVAL);}[_0x43e0c9(0x2df)](){var _0x14d223=_0x43e0c9;this[_0x14d223(0x2f0)][_0x14d223(0x313)]({'cmd':CombCmd['HEARTBEAT']}),this[_0x14d223(0x3a5)]();}[_0x43e0c9(0x3a5)](){var _0x3a6fdb=_0x43e0c9,_0x57de10;this[_0x3a6fdb(0x429)]=setTimeout(()=>this['_onConnectionFailed'](),(_0x57de10=this[_0x3a6fdb(0x249)][_0x3a6fdb(0x15f)](HEARTBEAT_TIMEOUT_KEY))!=null?_0x57de10:DEFAULT_HEARTBEAT_TIMEOUT);}[_0x43e0c9(0x277)](){var _0x25695e=_0x43e0c9;this[_0x25695e(0x37b)]!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this[_0x25695e(0x37b)]=null);}['_clearTimeoutTimer'](){var _0x174c7d=_0x43e0c9;this[_0x174c7d(0x429)]!=null&&(clearTimeout(this[_0x174c7d(0x429)]),this[_0x174c7d(0x429)]=null);}},__name(_a4,_0x43e0c9(0x37d)),_a4);CollaborationSessionService=__decorateClass$f([__decorateParam$f(0x0,Inject(Injector)),__decorateParam$f(0x1,ILogService),__decorateParam$f(0x2,IConfigService),__decorateParam$f(0x3,ICollaborationSocketService),__decorateParam$f(0x4,Inject(HTTPService)),__decorateParam$f(0x5,Inject(CollaborationUIEventService)),__decorateParam$f(0x6,Optional(INetworkConditionService))],CollaborationSessionService);const byteToHex=[];for(let i=0x0;i<0x100;++i)byteToHex['push']((i+0x100)[_0x43e0c9(0x22b)](0x10)[_0x43e0c9(0x1ea)](0x1));function unsafeStringify(_0xf788b2,_0x218a74=0x0){var _0x26b34a=_0x43e0c9;return(byteToHex[_0xf788b2[_0x218a74+0x0]]+byteToHex[_0xf788b2[_0x218a74+0x1]]+byteToHex[_0xf788b2[_0x218a74+0x2]]+byteToHex[_0xf788b2[_0x218a74+0x3]]+'-'+byteToHex[_0xf788b2[_0x218a74+0x4]]+byteToHex[_0xf788b2[_0x218a74+0x5]]+'-'+byteToHex[_0xf788b2[_0x218a74+0x6]]+byteToHex[_0xf788b2[_0x218a74+0x7]]+'-'+byteToHex[_0xf788b2[_0x218a74+0x8]]+byteToHex[_0xf788b2[_0x218a74+0x9]]+'-'+byteToHex[_0xf788b2[_0x218a74+0xa]]+byteToHex[_0xf788b2[_0x218a74+0xb]]+byteToHex[_0xf788b2[_0x218a74+0xc]]+byteToHex[_0xf788b2[_0x218a74+0xd]]+byteToHex[_0xf788b2[_0x218a74+0xe]]+byteToHex[_0xf788b2[_0x218a74+0xf]])[_0x26b34a(0x261)]();}__name(unsafeStringify,'unsafeStringify');let getRandomValues;const rnds8=new Uint8Array(0x10);function rng(){var _0xbe505d=_0x43e0c9;if(!getRandomValues){if(typeof crypto>'u'||!crypto[_0xbe505d(0x2b7)])throw new Error(_0xbe505d(0x30e));getRandomValues=crypto[_0xbe505d(0x2b7)][_0xbe505d(0x37e)](crypto);}return getRandomValues(rnds8);}__name(rng,_0x43e0c9(0x334));const randomUUID=typeof crypto<'u'&&crypto[_0x43e0c9(0x376)]&&crypto[_0x43e0c9(0x376)]['bind'](crypto),native={'randomUUID':randomUUID};function v4(_0x58876b,_0x56a43c,_0x594e65){var _0x3ea7a0=_0x43e0c9,_0x2cdeb5,_0x3cd998,_0x5bc202;if(native[_0x3ea7a0(0x376)]&&!_0x58876b)return native[_0x3ea7a0(0x376)]();_0x58876b=_0x58876b||{};const _0x256bbc=(_0x5bc202=(_0x3cd998=_0x58876b['random'])!=null?_0x3cd998:(_0x2cdeb5=_0x58876b['rng'])==null?void 0x0:_0x2cdeb5[_0x3ea7a0(0x314)](_0x58876b))!=null?_0x5bc202:rng();if(_0x256bbc[_0x3ea7a0(0x233)]<0x10)throw new Error(_0x3ea7a0(0x397));return _0x256bbc[0x6]=_0x256bbc[0x6]&0xf|0x40,_0x256bbc[0x8]=_0x256bbc[0x8]&0x3f|0x80,unsafeStringify(_0x256bbc);}__name(v4,'v4');const ILocalCacheService=createIdentifier(_0x43e0c9(0x3d7));function getLocalCacheKey(_0x140470){var _0x28d8af=_0x43e0c9;return _0x28d8af(0x38b)+_0x140470;}__name(getLocalCacheKey,'getLocalCacheKey');var __defProp$e=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc$e=Object[_0x43e0c9(0x33e)],__decorateClass$e=__name((_0x31ea01,_0x17bf1b,_0xf88263,_0x6354bd)=>{var _0x13583b=_0x43e0c9;for(var _0x1bf5fe=_0x6354bd>0x1?void 0x0:_0x6354bd?__getOwnPropDesc$e(_0x17bf1b,_0xf88263):_0x17bf1b,_0x5eff44=_0x31ea01[_0x13583b(0x233)]-0x1,_0x12d900;_0x5eff44>=0x0;_0x5eff44--)(_0x12d900=_0x31ea01[_0x5eff44])&&(_0x1bf5fe=(_0x6354bd?_0x12d900(_0x17bf1b,_0xf88263,_0x1bf5fe):_0x12d900(_0x1bf5fe))||_0x1bf5fe);return _0x6354bd&&_0x1bf5fe&&__defProp$e(_0x17bf1b,_0xf88263,_0x1bf5fe),_0x1bf5fe;},'__decorateClass$e'),__decorateParam$e=__name((_0xae802e,_0x16479f)=>(_0x10eb79,_0x54ad60)=>_0x16479f(_0x10eb79,_0x54ad60,_0xae802e),'__decorateParam$e');function extractTargetFromFirstChangeset(_0x35174d){var _0x2c9855=_0x43e0c9;const {unitID:_0x4e3976,mutations:_0x4beb73}=_0x35174d;return{'unitId':_0x4e3976,'subUnitId':_0x4beb73[0x0][_0x2c9855(0xf1)][_0x2c9855(0x38a)]};}__name(extractTargetFromFirstChangeset,_0x43e0c9(0x255));var _a5;let SheetTransformSelectionsService=(_a5=class{constructor(_0x31b81f,_0x43240e,_0x567ff3){var _0x1e494b=_0x43e0c9;this[_0x1e494b(0x403)]=_0x31b81f,this[_0x1e494b(0x345)]=_0x43240e,this[_0x1e494b(0x180)]=_0x567ff3;}[_0x43e0c9(0x3d9)](_0x42dd72){var _0x139f93=_0x43e0c9,_0x361b84,_0x517f5c,_0x16998e,_0x20ff4e;const _0xe50158=this[_0x139f93(0x403)]['get'](SheetsSelectionsService),{unitId:_0xa625cb,subUnitId:_0x2efcb4}=extractTargetFromFirstChangeset(_0x42dd72),_0x450ad7=_0xe50158==null?void 0x0:_0xe50158['getWorkbookSelections'](_0xa625cb)[_0x139f93(0x395)](),_0x6f744a=(_0x517f5c=(_0x361b84=this[_0x139f93(0x180)][_0x139f93(0x38c)](_0xa625cb))==null?void 0x0:_0x361b84[_0x139f93(0x14a)]())==null?void 0x0:_0x517f5c[_0x139f93(0x234)]();if(_0x450ad7['length']===0x0||!_0xa625cb||!_0x2efcb4)return;const _0x37cfeb=[{'id':SetSelectionsOperation['id'],'params':{'unitId':_0xa625cb,'subUnitId':_0x6f744a,'selections':Tools[_0x139f93(0x399)](_0x450ad7)}}],_0x524c50=this[_0x139f93(0x345)][_0x139f93(0x346)](_0x42dd72,_0x37cfeb);if(!isTransformMutationsWithChangesetSuccess(_0x524c50))throw _0x524c50[_0x139f93(0x1c8)];const _0x2e10c1=(_0x20ff4e=(_0x16998e=_0x524c50[_0x139f93(0xfa)][0x0])==null?void 0x0:_0x16998e[_0x139f93(0xf1)])==null?void 0x0:_0x20ff4e[_0x139f93(0x378)];if(Array[_0x139f93(0x2a9)](_0x2e10c1)&&_0x2e10c1['length']){if(_0x2e10c1['length']===_0x37cfeb[0x0][_0x139f93(0xf1)][_0x139f93(0x378)]['length']&&_0x2e10c1[_0x139f93(0x291)]((_0x2b6a07,_0x95b2fc)=>Rectangle[_0x139f93(0x15d)](_0x2b6a07[_0x139f93(0x124)],_0x37cfeb[0x0][_0x139f93(0xf1)]['selections'][_0x95b2fc][_0x139f93(0x124)])))return;this[_0x139f93(0x403)]['get'](ICommandService)[_0x139f93(0x3f7)](SetSelectionsOperation['id'],{'unitId':_0xa625cb,'subUnitId':_0x6f744a,'selections':_0x2e10c1});}}},__name(_a5,_0x43e0c9(0x400)),_a5);SheetTransformSelectionsService=__decorateClass$e([__decorateParam$e(0x0,Inject(Injector)),__decorateParam$e(0x1,ITransformService),__decorateParam$e(0x2,IUniverInstanceService)],SheetTransformSelectionsService);const ISingleActiveUnitService=createIdentifier(_0x43e0c9(0x364));var UnitStatus=(_0x51e8e6=>(_0x51e8e6[_0x51e8e6[_0x43e0c9(0x2a8)]=0x0]=_0x43e0c9(0x2a8),_0x51e8e6[_0x51e8e6['OTHER_CLIENTS_EDITING']=0x1]=_0x43e0c9(0x350),_0x51e8e6))(UnitStatus||{});const SINGLE_CHANGESET_MUTATIONS=new Set([InsertSheetMutation['id']]);function assembleSheetChangeset(_0x3af773,_0x46bfde,_0x28b6ba,_0xeed378,_0x2b711c){var _0x5ed008=_0x43e0c9,_0x30db51,_0x513bf4,_0x432911,_0x12313d;const _0x3b8edb=[];for(const _0x277bbd of _0x3af773)if(SINGLE_CHANGESET_MUTATIONS[_0x5ed008(0x3ae)](_0x277bbd['id'])){if(_0x3b8edb[_0x5ed008(0x233)]>0x0)break;_0x3b8edb[_0x5ed008(0x119)](_0x277bbd);break;}else _0x3b8edb[_0x5ed008(0x119)](_0x277bbd);const _0x46ab0a=(_0x513bf4=(_0x30db51=_0x2b711c[_0x5ed008(0x3a4)]())==null?void 0x0:_0x30db51[_0x5ed008(0x369)])!=null?_0x513bf4:_0x5ed008(0x225),_0x3d2ac1=(_0x12313d=(_0x432911=_0x2b711c[_0x5ed008(0x3a4)]())==null?void 0x0:_0x432911[_0x5ed008(0x3ea)])!=null?_0x12313d:_0x5ed008(0x225);return{'changeset':{'unitID':_0x46bfde,'type':mapDocumentTypeToUniverType(_0x28b6ba['getUnitType'](_0x46bfde)),'baseRev':_0xeed378[_0x5ed008(0x1c0)](_0x46bfde),'revision':0x0,'userID':_0x46ab0a,'memberID':_0x3d2ac1,'mutations':_0x3b8edb},'pendingMutations':_0x3af773[_0x5ed008(0x1ea)](_0x3b8edb['length'])};}__name(assembleSheetChangeset,_0x43e0c9(0x31f));function assembleDocChangeset(_0xcec60b,_0x4e82e1,_0x6c5deb,_0xc135c6,_0x4e263c){var _0x21de3e=_0x43e0c9,_0x5b5dd5,_0x41ee0c,_0x3311e5,_0x563f43;const _0x37eb5c=[_0xcec60b['reduce']((_0x5252ac,_0x4d32b9)=>{var _0x35fe8d=_0x5029,_0x23584c;const {id:_0x33fbbf}=_0x5252ac,{id:_0x343e08,type:_0x2fe794}=_0x4d32b9,_0x45ef8a=(_0x23584c=_0x5252ac[_0x35fe8d(0xf1)])!=null?_0x23584c:{'actions':null},_0x4b4dc9=_0x4d32b9[_0x35fe8d(0xf1)];if(_0x33fbbf&&_0x33fbbf!==_0x343e08)throw new Error(_0x35fe8d(0x396)+_0x33fbbf+_0x35fe8d(0x181)+_0x343e08+'.');return{..._0x5252ac,'id':_0x343e08,'type':_0x2fe794,'params':{'unitId':_0x4b4dc9[_0x35fe8d(0x38e)],'textRanges':_0x4b4dc9[_0x35fe8d(0x439)],'actions':JSONX[_0x35fe8d(0x2b8)](_0x45ef8a['actions'],_0x4b4dc9[_0x35fe8d(0x146)])}};},{})],_0x53704a=(_0x41ee0c=(_0x5b5dd5=_0x4e263c[_0x21de3e(0x3a4)]())==null?void 0x0:_0x5b5dd5['userID'])!=null?_0x41ee0c:'unknown',_0x556dd4=(_0x563f43=(_0x3311e5=_0x4e263c[_0x21de3e(0x3a4)]())==null?void 0x0:_0x3311e5[_0x21de3e(0x3ea)])!=null?_0x563f43:'unknown';return{'changeset':{'unitID':_0x4e82e1,'type':mapDocumentTypeToUniverType(_0x6c5deb['getUnitType'](_0x4e82e1)),'baseRev':_0xc135c6[_0x21de3e(0x1c0)](_0x4e82e1),'revision':0x0,'userID':_0x53704a,'memberID':_0x556dd4,'mutations':_0x37eb5c},'pendingMutations':[]};}__name(assembleDocChangeset,_0x43e0c9(0x186));function createTimerObservable$(_0xc67490,_0x1a2611){var _0x5b455b=_0x43e0c9;const _0x2657c1=new ReplaySubject(0x1);return setTimeout(()=>_0x2657c1['next'](_0x1a2611),_0xc67490),_0x2657c1[_0x5b455b(0x37f)]()[_0x5b455b(0x1f0)](_0x4af4d9(0x1));}__name(createTimerObservable$,_0x43e0c9(0x3f3));const EmptyMutationInfo={'id':EmptyMutation['id'],'type':CommandType[_0x43e0c9(0x189)],'params':{}};var __defProp$d=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc$d=Object[_0x43e0c9(0x33e)],__decorateClass$d=__name((_0x39618b,_0x58dbc9,_0x502951,_0x5de7c0)=>{for(var _0x22b9d9=_0x5de7c0>0x1?void 0x0:_0x5de7c0?__getOwnPropDesc$d(_0x58dbc9,_0x502951):_0x58dbc9,_0x16743c=_0x39618b['length']-0x1,_0x310f9c;_0x16743c>=0x0;_0x16743c--)(_0x310f9c=_0x39618b[_0x16743c])&&(_0x22b9d9=(_0x5de7c0?_0x310f9c(_0x58dbc9,_0x502951,_0x22b9d9):_0x310f9c(_0x22b9d9))||_0x22b9d9);return _0x5de7c0&&_0x22b9d9&&__defProp$d(_0x58dbc9,_0x502951,_0x22b9d9),_0x22b9d9;},_0x43e0c9(0x410)),__decorateParam$d=__name((_0x2d5878,_0x873cd5)=>(_0x4ee517,_0x20949a)=>_0x873cd5(_0x4ee517,_0x20949a,_0x2d5878),_0x43e0c9(0x12a)),CollaborationStatus=(_0x4c3e17=>(_0x4c3e17[_0x43e0c9(0x1ed)]=_0x43e0c9(0x385),_0x4c3e17[_0x43e0c9(0x3a8)]=_0x43e0c9(0x3b5),_0x4c3e17[_0x43e0c9(0x280)]=_0x43e0c9(0x2af),_0x4c3e17[_0x43e0c9(0x27d)]=_0x43e0c9(0x3a7),_0x4c3e17['AWAITING_WITH_PENDING']=_0x43e0c9(0x22c),_0x4c3e17[_0x43e0c9(0x43f)]='fetch_missing',_0x4c3e17[_0x43e0c9(0x2a0)]=_0x43e0c9(0x2ed),_0x4c3e17[_0x43e0c9(0x2be)]=_0x43e0c9(0x2c8),_0x4c3e17))(CollaborationStatus||{});const MAX_RETRY_TIMEOUT=0xea60,_CollaborationState=class _CollaborationState{constructor(_0x382919,_0x20adf1,_0x3d532b,_0x5f465d,_0x739b97,_0xf939d3,_0x5bb981,_0x1970e2,_0x3eadae){var _0xa8520e=_0x43e0c9;__publicField(this,_0xa8520e(0x20d),null),__publicField(this,_0xa8520e(0x1c5),[]),(this['unitID']=_0x382919,this['type']=_0x20adf1,this[_0xa8520e(0x3bd)]=_0x739b97,this[_0xa8520e(0x1ae)]=_0xf939d3,this['_undoRedoService']=_0x5bb981,this[_0xa8520e(0x3c0)]=_0x1970e2,this[_0xa8520e(0x289)]=_0x3eadae,this['_awaitingChangeset']=_0x3d532b,this['_pendingMutations']=_0x5f465d);}[_0x43e0c9(0x194)](_0x4f0b11){var _0x167e32=_0x43e0c9;const _0x49cb42=this['_revisionService'][_0x167e32(0x1c0)](this[_0x167e32(0x442)]);return _0x4f0b11[_0x167e32(0x267)]>_0x49cb42+0x1?(this[_0x167e32(0x3bd)][_0x167e32(0x195)]({'from':_0x49cb42,'to':_0x4f0b11[_0x167e32(0x267)]-0x1}),!0x0):!0x1;}[_0x43e0c9(0x111)](_0x53b7ef){var _0x229b67=_0x43e0c9;this[_0x229b67(0x158)][_0x229b67(0x206)](this['unitID'],_0x53b7ef);}[_0x43e0c9(0x115)](_0x1477be){var _0xbbfe07=_0x43e0c9,_0x5566ba,_0x3f37d8;(_0x3f37d8=(_0x5566ba=this['_handler'])[_0xbbfe07(0x250)])==null||_0x3f37d8[_0xbbfe07(0x314)](_0x5566ba,_0x1477be);}[_0x43e0c9(0x371)](_0x318a35){var _0x514359=_0x43e0c9,_0x146471,_0x3d6dca;return(_0x3d6dca=(_0x146471=this[_0x514359(0x3bd)])[_0x514359(0x173)])==null?void 0x0:_0x3d6dca['call'](_0x146471,_0x318a35);}[_0x43e0c9(0x227)](_0x459a83){var _0x413d89=_0x43e0c9,_0x3a0d91,_0x528732;return(_0x528732=(_0x3a0d91=this['_handler'])[_0x413d89(0x3c4)])==null?void 0x0:_0x528732[_0x413d89(0x314)](_0x3a0d91,_0x459a83);}[_0x43e0c9(0x3b6)](_0x42b0cc){var _0x342c63=_0x43e0c9,_0x1e5af7,_0x2157e7,_0x1861c6;return(_0x1861c6=(_0x2157e7=(_0x1e5af7=this['_handler'])[_0x342c63(0x11e)])==null?void 0x0:_0x2157e7[_0x342c63(0x314)](_0x1e5af7,_0x42b0cc))!=null?_0x1861c6:_0x42b0cc;}[_0x43e0c9(0x320)](_0x26bb64){var _0x3f56a9=_0x43e0c9,_0x3ed405,_0x238f26,_0x545ab5;return(_0x545ab5=(_0x238f26=(_0x3ed405=this[_0x3f56a9(0x3bd)])[_0x3f56a9(0x404)])==null?void 0x0:_0x238f26[_0x3f56a9(0x314)](_0x3ed405,_0x26bb64))!=null?_0x545ab5:_0x26bb64;}[_0x43e0c9(0x3fe)](_0x1a67ca){var _0x298cb6=_0x43e0c9,_0x55d47b,_0x3dd5f6;if(this[_0x298cb6(0x3b0)]===UniverType['UNIVER_DOC']){const {unitID:_0x363d7b,mutations:_0xe18d80,memberID:_0x5123cc}=_0x1a67ca,_0x54bfec=_0xe18d80[0x0][_0x298cb6(0xf1)][_0x298cb6(0x439)];Array['isArray'](_0x54bfec)&&_0x54bfec[_0x298cb6(0x233)]>0x0&&((_0x3dd5f6=(_0x55d47b=this[_0x298cb6(0x3bd)])[_0x298cb6(0x37c)])==null||_0x3dd5f6['call'](_0x55d47b,{'unitID':_0x363d7b,'memberID':_0x5123cc,'textRanges':_0x54bfec}));}}[_0x43e0c9(0x3dc)](){var _0x3aaf18=_0x43e0c9,_0x215fcd;(_0x215fcd=this[_0x3aaf18(0x289)])==null||_0x215fcd['updateOfflineData'](this['unitID'],this[_0x3aaf18(0x3b0)],this[_0x3aaf18(0x20d)],this[_0x3aaf18(0x1c5)]);}['_getCurrentRevision'](){var _0x2a0a9a=_0x43e0c9;return this[_0x2a0a9a(0x3c0)][_0x2a0a9a(0x1c0)](this[_0x2a0a9a(0x442)]);}[_0x43e0c9(0x40a)](){var _0x46309a=_0x43e0c9;this[_0x46309a(0x3c0)][_0x46309a(0x28a)](this['unitID']);}[_0x43e0c9(0x21e)](_0x2f1ebc){var _0x36feb4=_0x43e0c9,_0x3e896d;let _0x13b4bc=this[_0x36feb4(0x3b6)](_0x2f1ebc);_0x13b4bc=this[_0x36feb4(0x320)](_0x13b4bc);const _0x5cece8=sequenceExecute(_0x13b4bc[_0x36feb4(0x245)],this[_0x36feb4(0x1ae)],{'fromCollab':!0x0});if(!_0x5cece8[_0x36feb4(0xf3)])throw _0x5cece8['error']instanceof Error?_0x5cece8[_0x36feb4(0x1c8)]:new Error((_0x3e896d=_0x5cece8[_0x36feb4(0x1c8)])!=null?_0x3e896d:'[CollaborationState]:\x20apply\x20error!');this[_0x36feb4(0x371)](_0x13b4bc),this[_0x36feb4(0x227)](_0x13b4bc),this['_transformUndoredo'](_0x2f1ebc),this[_0x36feb4(0x115)](_0x13b4bc),this[_0x36feb4(0x3fe)](_0x13b4bc),this[_0x36feb4(0x40a)]();}};__name(_CollaborationState,_0x43e0c9(0x212));let CollaborationState=_CollaborationState;var _a6;let SyncedState=(_a6=class extends CollaborationState{constructor(_0x3a5a34,_0x529027,_0x29a46f,_0x31263a,_0x56f198,_0x1ebd7c,_0x1fd753,_0x5f4f2d,_0x5f4f52,_0xde86a7){var _0x89bcf7=_0x43e0c9;super(_0x3a5a34,_0x529027,null,[],_0x29a46f,_0x1fd753,_0x1ebd7c,_0x31263a,_0xde86a7),__publicField(this,_0x89bcf7(0x123),_0x89bcf7(0x3b5)),(this['_injector']=_0x56f198,this[_0x89bcf7(0x11f)]=_0x5f4f2d,this[_0x89bcf7(0x345)]=_0x5f4f52,this[_0x89bcf7(0x284)]=_0xde86a7);}[_0x43e0c9(0x35f)](_0x7a931c){var _0x4df65d=_0x43e0c9;const _0x1e976d=this['_injector'][_0x4df65d(0x39f)](PendingState,this[_0x4df65d(0x442)],this[_0x4df65d(0x3b0)],[_0x7a931c],this[_0x4df65d(0x3bd)]);return _0x1e976d[_0x4df65d(0x1f9)](),_0x1e976d[_0x4df65d(0x3dc)](),_0x1e976d;}[_0x43e0c9(0x220)](_0x27ad53){var _0x14a7d9=_0x43e0c9;if(this[_0x14a7d9(0x194)](_0x27ad53))return this[_0x14a7d9(0x403)][_0x14a7d9(0x39f)](FetchingMissState,this[_0x14a7d9(0x442)],this[_0x14a7d9(0x3b0)],null,[],null,[_0x27ad53],this[_0x14a7d9(0x3bd)]);try{const _0x5c1e40=this[_0x14a7d9(0x345)]['transformMutationsWithChangeset'](_0x27ad53,[EmptyMutationInfo]);if(isTransformMutationsWithChangesetSuccess(_0x5c1e40)){const {c1Prime:_0x2116a8}=_0x5c1e40;return this[_0x14a7d9(0x21e)](_0x2116a8),this;}throw _0x5c1e40[_0x14a7d9(0x1c8)];}catch(_0x48518f){return this[_0x14a7d9(0x11f)][_0x14a7d9(0x1c8)](_0x48518f),this[_0x14a7d9(0x1ba)](!0x1);}}['_onConflict'](_0xaf0574){var _0x7c05ba=_0x43e0c9;return this[_0x7c05ba(0x403)][_0x7c05ba(0x39f)](ConflictState,this[_0x7c05ba(0x442)],this['type'],null,[],this[_0x7c05ba(0x3bd)],_0xaf0574);}[_0x43e0c9(0x2b5)](){var _0x45466a=_0x43e0c9;throw new Error(_0x45466a(0x1c6));}['onRemoteRej'](){var _0x544756=_0x43e0c9;throw new Error(_0x544756(0x270));}[_0x43e0c9(0x32a)](){return this;}[_0x43e0c9(0x31c)](){var _0x3f0d34=_0x43e0c9;return this[_0x3f0d34(0x403)][_0x3f0d34(0x39f)](OfflineState,this[_0x3f0d34(0x442)],this[_0x3f0d34(0x3b0)],null,[],this[_0x3f0d34(0x3bd)]);}[_0x43e0c9(0x1e2)](){return this;}[_0x43e0c9(0x3ee)](){var _0xd80c9e=_0x43e0c9;throw new Error(_0xd80c9e(0x441));}[_0x43e0c9(0x26b)](){var _0x3ee3d3=_0x43e0c9;const _0x2ea5e4=this['_revisionService'][_0x3ee3d3(0x1c0)](this[_0x3ee3d3(0x442)]);return this['_handler']['onMissingChangesets']({'from':_0x2ea5e4,'to':0x0}),this['_injector'][_0x3ee3d3(0x39f)](FetchingMissState,this[_0x3ee3d3(0x442)],this[_0x3ee3d3(0x3b0)],null,[],null,[],this['_handler']);}},__name(_a6,_0x43e0c9(0x10f)),_a6);SyncedState=__decorateClass$d([__decorateParam$d(0x3,Inject(RevisionService)),__decorateParam$d(0x4,Inject(Injector)),__decorateParam$d(0x5,IUndoRedoService),__decorateParam$d(0x6,ICommandService),__decorateParam$d(0x7,ILogService),__decorateParam$d(0x8,ITransformService),__decorateParam$d(0x9,Optional(ILocalCacheService))],SyncedState);var _a7;let PendingState=(_a7=class extends CollaborationState{constructor(_0x75a533,_0x47ce3b,_0xef128d,_0x4af6d9,_0x3b399c,_0x2d3b58,_0x1889e0,_0x180ef4,_0x51f34c,_0x3fca1f,_0x577d9d,_0x51cc10,_0x9a5d5f,_0x3f417a){var _0x29dc9e=_0x43e0c9;super(_0x75a533,_0x47ce3b,null,_0xef128d,_0x4af6d9,_0x51f34c,_0x9a5d5f,_0x2d3b58,_0x3f417a),__publicField(this,_0x29dc9e(0x123),_0x29dc9e(0x2af)),__publicField(this,_0x29dc9e(0x192),null),__publicField(this,_0x29dc9e(0x32e),null),(this['_injector']=_0x3b399c,this[_0x29dc9e(0x252)]=_0x1889e0,this[_0x29dc9e(0x11f)]=_0x180ef4,this[_0x29dc9e(0x249)]=_0x3fca1f,this[_0x29dc9e(0x345)]=_0x577d9d,this[_0x29dc9e(0x330)]=_0x51cc10);}[_0x43e0c9(0x35f)](_0x13a8d7){var _0x15704e=_0x43e0c9;return this['_pendingMutations']['push'](_0x13a8d7),this[_0x15704e(0x3dc)](),this;}[_0x43e0c9(0x220)](_0x3ee2a6){var _0x5c79c0=_0x43e0c9;if(this['_checkMissing'](_0x3ee2a6))return this[_0x5c79c0(0x1a7)](),this[_0x5c79c0(0x403)][_0x5c79c0(0x39f)](FetchingMissState,this[_0x5c79c0(0x442)],this['type'],null,this['_pendingMutations'],null,[_0x3ee2a6],this['_handler']);try{const _0x4856bb=this[_0x5c79c0(0x345)]['transformMutationsWithChangeset'](_0x3ee2a6,this['_pendingMutations']);if(isTransformMutationsWithChangesetSuccess(_0x4856bb)){const {c1Prime:_0x182cde,m2Prime:_0x107595}=_0x4856bb;this['_executeRemoteChangeset'](_0x182cde);const _0x535d80=this[_0x5c79c0(0x403)][_0x5c79c0(0x39f)](PendingState,this[_0x5c79c0(0x442)],this[_0x5c79c0(0x3b0)],_0x107595,this[_0x5c79c0(0x3bd)]);this[_0x5c79c0(0x1a7)]();const _0x4f0639=new Date()['getTime'](),_0x2a92f6=this['_scheduleCompleteTimestamp']?Math[_0x5c79c0(0x2e9)](this[_0x5c79c0(0x192)]-_0x4f0639,0x0):this[_0x5c79c0(0x2e1)]();return _0x535d80[_0x5c79c0(0x1f9)](_0x2a92f6),_0x535d80;}throw _0x4856bb[_0x5c79c0(0x1c8)];}catch(_0x447903){return this[_0x5c79c0(0x11f)]['error'](_0x447903),this[_0x5c79c0(0x1ba)](!0x1);}}[_0x43e0c9(0x2b5)](){var _0x364946=_0x43e0c9;throw new Error(_0x364946(0x13d));}['onRemoteRej'](){var _0x9e299=_0x43e0c9;throw new Error(_0x9e299(0x236));}[_0x43e0c9(0x32a)](){return this;}[_0x43e0c9(0x31c)](){var _0x3d377d=_0x43e0c9;return this[_0x3d377d(0x1a7)](),this[_0x3d377d(0x403)][_0x3d377d(0x39f)](OfflineState,this[_0x3d377d(0x442)],this[_0x3d377d(0x3b0)],null,this['_pendingMutations'],this['_handler']);}[_0x43e0c9(0x1e2)](){return this;}[_0x43e0c9(0x1f9)](_0x3f3cdb){var _0xcda76d=_0x43e0c9;const _0x3913b2=_0x3f3cdb!=null?_0x3f3cdb:this[_0xcda76d(0x2e1)]();this['_scheduleCompleteTimestamp']=new Date()[_0xcda76d(0x230)]()+_0x3913b2,this[_0xcda76d(0x32e)]=setTimeout(()=>{var _0x5d0ca8=_0xcda76d;this['_clearScheduledTask']();let _0x5c5411=null;switch(this[_0x5d0ca8(0x3b0)]){case UniverType['UNIVER_SHEET']:{_0x5c5411=assembleSheetChangeset(this[_0x5d0ca8(0x1c5)],this[_0x5d0ca8(0x442)],this[_0x5d0ca8(0x330)],this[_0x5d0ca8(0x3c0)],this[_0x5d0ca8(0x252)]);break;}case UniverType['UNIVER_DOC']:{this['_pendingMutations'][_0x5d0ca8(0x291)](_0x33dd1f=>_0x33dd1f['id']===RichTextEditingMutation['id'])?_0x5c5411=assembleDocChangeset(this[_0x5d0ca8(0x1c5)],this[_0x5d0ca8(0x442)],this[_0x5d0ca8(0x330)],this[_0x5d0ca8(0x3c0)],this[_0x5d0ca8(0x252)]):_0x5c5411=assembleSheetChangeset(this[_0x5d0ca8(0x1c5)],this[_0x5d0ca8(0x442)],this['_univerInstanceService'],this[_0x5d0ca8(0x3c0)],this[_0x5d0ca8(0x252)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x5d0ca8(0x3b0)]+_0x5d0ca8(0x22a));}const {changeset:_0x7b110,pendingMutations:_0x256827}=_0x5c5411;this['_handler'][_0x5d0ca8(0x2dc)](_0x7b110);const _0x4f7814=_0x256827['length']?this['_injector'][_0x5d0ca8(0x39f)](AwaitingWithPendingState,this['unitID'],this['type'],_0x7b110,_0x256827,this[_0x5d0ca8(0x3bd)],void 0x0):this[_0x5d0ca8(0x403)][_0x5d0ca8(0x39f)](AwaitingState,this[_0x5d0ca8(0x442)],this[_0x5d0ca8(0x3b0)],_0x7b110,this[_0x5d0ca8(0x3bd)]);_0x4f7814[_0x5d0ca8(0x3dc)](),this[_0x5d0ca8(0x3bd)][_0x5d0ca8(0x358)](this,_0x4f7814);},_0x3913b2);}[_0x43e0c9(0x2e1)](){var _0x5134a2=_0x43e0c9,_0x1e9e3b;const _0x5b0e8f=this['_configService']['getConfig'](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x1e9e3b=_0x5b0e8f==null?void 0x0:_0x5b0e8f[_0x5134a2(0x1bb)])!=null?_0x1e9e3b:DEFAULT_SEND_CHANGESET_TIMEOUT;}['resend'](){var _0x55b895=_0x43e0c9;throw new Error(_0x55b895(0x2d8));}[_0x43e0c9(0x1a7)](){var _0x493d2a=_0x43e0c9;this[_0x493d2a(0x32e)]!=null&&(clearTimeout(this['_sendingTimer']),this[_0x493d2a(0x32e)]=null);}[_0x43e0c9(0x1ba)](_0x1de1c5){var _0x6413a3=_0x43e0c9;return this[_0x6413a3(0x1a7)](),this['_injector'][_0x6413a3(0x39f)](ConflictState,this['unitID'],this[_0x6413a3(0x3b0)],null,this['_pendingMutations'],this[_0x6413a3(0x3bd)],_0x1de1c5);}},__name(_a7,_0x43e0c9(0x241)),_a7);PendingState=__decorateClass$d([__decorateParam$d(0x4,Inject(Injector)),__decorateParam$d(0x5,Inject(RevisionService)),__decorateParam$d(0x6,Inject(MemberService)),__decorateParam$d(0x7,ILogService),__decorateParam$d(0x8,ICommandService),__decorateParam$d(0x9,IConfigService),__decorateParam$d(0xa,ITransformService),__decorateParam$d(0xb,IUniverInstanceService),__decorateParam$d(0xc,IUndoRedoService),__decorateParam$d(0xd,Optional(ILocalCacheService))],PendingState);var _a8;let AwaitingState=(_a8=class extends CollaborationState{constructor(_0x33435c,_0x278fe7,_0x15774d,_0x2101ce,_0xcde6e0,_0x2d9492,_0x5424e7,_0x3c0712,_0xba50a2,_0x86ee3a,_0x35e3c2){var _0x5cc60b=_0x43e0c9;super(_0x33435c,_0x278fe7,_0x15774d,[],_0x2101ce,_0x5424e7,_0x86ee3a,_0x2d9492,_0x35e3c2),__publicField(this,_0x5cc60b(0x123),_0x5cc60b(0x3a7)),__publicField(this,_0x5cc60b(0x1f5),0x0),__publicField(this,_0x5cc60b(0x2bf)),__publicField(this,_0x5cc60b(0x405)),(this[_0x5cc60b(0x403)]=_0xcde6e0,this[_0x5cc60b(0x11f)]=_0x3c0712,this[_0x5cc60b(0x345)]=_0xba50a2);}['appendMutation'](_0x196126){var _0x1d5645=_0x43e0c9;this[_0x1d5645(0x1a7)]();const _0x1a8907=this[_0x1d5645(0x403)][_0x1d5645(0x39f)](AwaitingWithPendingState,this[_0x1d5645(0x442)],this[_0x1d5645(0x3b0)],this['_awaitingChangeset'],[_0x196126],this[_0x1d5645(0x3bd)],this[_0x1d5645(0x2bf)]);return _0x1a8907[_0x1d5645(0x3dc)](),_0x1a8907;}[_0x43e0c9(0x220)](_0x2e8572){var _0x35702c=_0x43e0c9;if(this[_0x35702c(0x194)](_0x2e8572))return this[_0x35702c(0x1a7)](),this[_0x35702c(0x403)][_0x35702c(0x39f)](FetchingMissState,this[_0x35702c(0x442)],this[_0x35702c(0x3b0)],this[_0x35702c(0x20d)],[],null,[_0x2e8572],this[_0x35702c(0x3bd)]);try{const _0x3cfb08=this[_0x35702c(0x345)]['transformChangesets']([_0x2e8572],[this['_awaitingChangeset']],!0x1);if(isTransformChangesetsSuccess(_0x3cfb08)){const {c1Prime:_0x6e52a3,c2Prime:_0x1e059c}=_0x3cfb08;this[_0x35702c(0x21e)](_0x6e52a3[0x0]),_0x1e059c[0x0][_0x35702c(0x191)]=this['_getCurrentRevision'](),this[_0x35702c(0x1a7)]();const _0x178ab1=this[_0x35702c(0x403)][_0x35702c(0x39f)](AwaitingState,this[_0x35702c(0x442)],this[_0x35702c(0x3b0)],_0x1e059c[0x0],this[_0x35702c(0x3bd)]);return _0x178ab1[_0x35702c(0x3dc)](),_0x178ab1;}return this[_0x35702c(0x1ba)](!0x1);}catch(_0x118de7){return this[_0x35702c(0x11f)][_0x35702c(0x1c8)](_0x118de7),this[_0x35702c(0x1ba)](!0x1);}}[_0x43e0c9(0x2b5)](_0x3fd6ed){var _0x5540ba=_0x43e0c9;this[_0x5540ba(0x1a7)]();const _0x201ba0=this[_0x5540ba(0x3c0)][_0x5540ba(0x1c0)](this[_0x5540ba(0x442)]);if(_0x3fd6ed[_0x5540ba(0x267)]<_0x201ba0-0x1)return this;if(this[_0x5540ba(0x194)](_0x3fd6ed))return this[_0x5540ba(0x403)][_0x5540ba(0x39f)](FetchingMissState,this['unitID'],this[_0x5540ba(0x3b0)],null,[],this['_awaitingChangeset'],[],this[_0x5540ba(0x3bd)]);this[_0x5540ba(0x40a)]();const _0x4ed103=this[_0x5540ba(0x403)][_0x5540ba(0x39f)](SyncedState,this[_0x5540ba(0x442)],this[_0x5540ba(0x3b0)],this[_0x5540ba(0x3bd)]);return _0x4ed103[_0x5540ba(0x3dc)](),_0x4ed103;}[_0x43e0c9(0x273)](_0x1e3039){var _0x3df846=_0x43e0c9;return this[_0x3df846(0x1ba)](!!(_0x1e3039!=null&&_0x1e3039[_0x3df846(0x24a)]));}[_0x43e0c9(0x32a)](_0x3df99b){var _0x390500=_0x43e0c9;return this[_0x390500(0x1f5)]>MAX_RETRY_TIMEOUT?this[_0x390500(0x31c)]():(this[_0x390500(0x2bf)]=createTimerObservable$(this[_0x390500(0x1f5)],{'timeout':this[_0x390500(0x1f5)],'reqId':_0x3df99b[_0x390500(0x185)]}),this[_0x390500(0x405)]=this[_0x390500(0x2bf)][_0x390500(0x352)](({reqId:_0x4e30ae,timeout:_0x8d8937})=>{var _0x38c2dc=_0x390500;this[_0x38c2dc(0x3a1)](_0x4e30ae,_0x8d8937);}),this);}['toggleOffline'](){var _0x26df40=_0x43e0c9;return this[_0x26df40(0x1a7)](),this[_0x26df40(0x403)][_0x26df40(0x39f)](OfflineState,this[_0x26df40(0x442)],this[_0x26df40(0x3b0)],this[_0x26df40(0x20d)],[],this['_handler']);}['toggleOnline'](){return this;}[_0x43e0c9(0x3ee)](){var _0x2527cd=_0x43e0c9;this[_0x2527cd(0x3bd)][_0x2527cd(0x2dc)](this[_0x2527cd(0x20d)]);}['_onConflict'](_0xdedcba){var _0x41cff1=_0x43e0c9;return this[_0x41cff1(0x1a7)](),this[_0x41cff1(0x403)]['createInstance'](ConflictState,this[_0x41cff1(0x442)],this[_0x41cff1(0x3b0)],this[_0x41cff1(0x20d)],[],this[_0x41cff1(0x3bd)],_0xdedcba);}[_0x43e0c9(0x3a1)](_0x4d682f,_0xa2cce1){var _0x493ae9=_0x43e0c9,_0x45a3c9;_0x4d682f===((_0x45a3c9=this['_awaitingChangeset'])==null?void 0x0:_0x45a3c9['reqId'])&&(this[_0x493ae9(0x3ee)](),this[_0x493ae9(0x1f5)]=_0xa2cce1===0x0?0x3e8:_0xa2cce1*0x2);}[_0x43e0c9(0x1a7)](){var _0x58d109=_0x43e0c9,_0x315224;(_0x315224=this['_sender'])==null||_0x315224[_0x58d109(0x11c)](),this[_0x58d109(0x1f5)]=0x0;}},__name(_a8,'AwaitingState'),_a8);AwaitingState=__decorateClass$d([__decorateParam$d(0x4,Inject(Injector)),__decorateParam$d(0x5,Inject(RevisionService)),__decorateParam$d(0x6,ICommandService),__decorateParam$d(0x7,ILogService),__decorateParam$d(0x8,ITransformService),__decorateParam$d(0x9,IUndoRedoService),__decorateParam$d(0xa,Optional(ILocalCacheService))],AwaitingState);var _a9;let AwaitingWithPendingState=(_a9=class extends CollaborationState{constructor(_0x3c7796,_0x577e17,_0x1bc379,_0x42571d,_0x219b33,_0x434944,_0x102c31,_0x3a6e6d,_0x550cf4,_0x348916,_0x2478e0,_0x5c2522,_0x35e16f){var _0x2af873=_0x43e0c9;super(_0x3c7796,_0x577e17,_0x1bc379,_0x42571d,_0x219b33,_0x550cf4,_0x5c2522,_0x3a6e6d,_0x35e16f),__publicField(this,'status',_0x2af873(0x22c)),__publicField(this,'_resendTimeout',0x0),__publicField(this,_0x2af873(0x2bf)),__publicField(this,_0x2af873(0x405)),(this[_0x2af873(0x403)]=_0x102c31,this['_logService']=_0x348916,this[_0x2af873(0x345)]=_0x2478e0,this[_0x2af873(0x284)]=_0x35e16f,_0x434944&&(this[_0x2af873(0x2bf)]=_0x434944,this[_0x2af873(0x405)]=this[_0x2af873(0x2bf)]['subscribe'](({reqId:_0x278785,timeout:_0x36d045})=>{this['_resendWithTimeout'](_0x278785,_0x36d045);})));}['appendMutation'](_0x2ead80){var _0x343af4=_0x43e0c9;return this['_pendingMutations'][_0x343af4(0x119)](_0x2ead80),this;}['onRemoteChangeset'](_0x31332c){var _0x24f3d9=_0x43e0c9;if(this[_0x24f3d9(0x194)](_0x31332c))return this[_0x24f3d9(0x1a7)](),this['_injector'][_0x24f3d9(0x39f)](FetchingMissState,this[_0x24f3d9(0x442)],this[_0x24f3d9(0x3b0)],this[_0x24f3d9(0x20d)],this[_0x24f3d9(0x1c5)],null,[_0x31332c],this['_handler']);try{const _0x46bde5=this[_0x24f3d9(0x345)]['transformChangesets']([_0x31332c],[this[_0x24f3d9(0x20d)]],!0x1);if(isTransformChangesetsSuccess(_0x46bde5)){const {c1Prime:_0x4135c2,c2Prime:_0xcfbf54}=_0x46bde5,_0x471caf=this['_transformService'][_0x24f3d9(0x346)](_0x4135c2[0x0],this['_pendingMutations']);if(isTransformMutationsWithChangesetSuccess(_0x471caf)){const {c1Prime:_0x4f2e6a,m2Prime:_0x297c30}=_0x471caf;return this['_executeRemoteChangeset'](_0x4f2e6a),_0xcfbf54[0x0]['baseRev']=this[_0x24f3d9(0x13e)](),this[_0x24f3d9(0x1a7)](),this[_0x24f3d9(0x403)][_0x24f3d9(0x39f)](AwaitingWithPendingState,this[_0x24f3d9(0x442)],this['type'],_0xcfbf54[0x0],_0x297c30,this[_0x24f3d9(0x3bd)],void 0x0);}throw _0x471caf[_0x24f3d9(0x1c8)];}throw _0x46bde5[_0x24f3d9(0x1c8)];}catch(_0x55925a){return this[_0x24f3d9(0x11f)]['error'](_0x55925a),this['_onConflict'](!0x1);}}[_0x43e0c9(0x2b5)](_0x5ecea3){var _0x1bc3f8=_0x43e0c9;if(this[_0x1bc3f8(0x1a7)](),this['_checkMissing'](_0x5ecea3))return this[_0x1bc3f8(0x403)][_0x1bc3f8(0x39f)](FetchingMissState,this[_0x1bc3f8(0x442)],this[_0x1bc3f8(0x3b0)],null,this[_0x1bc3f8(0x1c5)],this[_0x1bc3f8(0x20d)],[],this[_0x1bc3f8(0x3bd)]);this[_0x1bc3f8(0x40a)]();const _0x267e43=this[_0x1bc3f8(0x403)][_0x1bc3f8(0x39f)](PendingState,this[_0x1bc3f8(0x442)],this[_0x1bc3f8(0x3b0)],this['_pendingMutations'],this[_0x1bc3f8(0x3bd)]);return _0x267e43[_0x1bc3f8(0x1f9)](),_0x267e43[_0x1bc3f8(0x3dc)](),_0x267e43;}[_0x43e0c9(0x273)](_0x11453b){return this['_onConflict'](!!(_0x11453b!=null&&_0x11453b['isPermissionRej']));}[_0x43e0c9(0x32a)](_0x2f03ed){var _0x1c390f=_0x43e0c9;return this[_0x1c390f(0x1f5)]>MAX_RETRY_TIMEOUT?this[_0x1c390f(0x31c)]():(this[_0x1c390f(0x2bf)]=createTimerObservable$(this[_0x1c390f(0x1f5)],{'timeout':this[_0x1c390f(0x1f5)],'reqId':_0x2f03ed[_0x1c390f(0x185)]}),this['_sender']=this[_0x1c390f(0x2bf)][_0x1c390f(0x352)](({reqId:_0x20b060,timeout:_0x268e3f})=>{this['_resendWithTimeout'](_0x20b060,_0x268e3f);}),this);}[_0x43e0c9(0x31c)](){var _0x54e823=_0x43e0c9;return this[_0x54e823(0x1a7)](),this[_0x54e823(0x403)][_0x54e823(0x39f)](OfflineState,this[_0x54e823(0x442)],this[_0x54e823(0x3b0)],this[_0x54e823(0x20d)],this[_0x54e823(0x1c5)],this[_0x54e823(0x3bd)]);}[_0x43e0c9(0x1e2)](){return this;}[_0x43e0c9(0x3ee)](){var _0x510bbf=_0x43e0c9;this[_0x510bbf(0x3bd)][_0x510bbf(0x2dc)](this[_0x510bbf(0x20d)]);}['_onConflict'](_0x22a440){var _0x1de77c=_0x43e0c9;return this['_clearScheduledTask'](),this['_injector']['createInstance'](ConflictState,this[_0x1de77c(0x442)],this['type'],null,this[_0x1de77c(0x1c5)],this[_0x1de77c(0x3bd)],_0x22a440);}[_0x43e0c9(0x3a1)](_0xa253ec,_0x35f70e){var _0x4151b0=_0x43e0c9,_0x5c50cb;_0xa253ec===((_0x5c50cb=this[_0x4151b0(0x20d)])==null?void 0x0:_0x5c50cb[_0x4151b0(0x185)])&&(this[_0x4151b0(0x3ee)](),this['_resendTimeout']=_0x35f70e===0x0?0x3e8:_0x35f70e*0x2);}[_0x43e0c9(0x1a7)](){var _0x172818=_0x43e0c9,_0x5d92c7;(_0x5d92c7=this[_0x172818(0x405)])==null||_0x5d92c7['unsubscribe'](),this[_0x172818(0x1f5)]=0x0;}},__name(_a9,_0x43e0c9(0x1fc)),_a9);AwaitingWithPendingState=__decorateClass$d([__decorateParam$d(0x6,Inject(Injector)),__decorateParam$d(0x7,Inject(RevisionService)),__decorateParam$d(0x8,ICommandService),__decorateParam$d(0x9,ILogService),__decorateParam$d(0xa,ITransformService),__decorateParam$d(0xb,IUndoRedoService),__decorateParam$d(0xc,Optional(ILocalCacheService))],AwaitingWithPendingState);var _a10;let ConflictState=(_a10=class extends CollaborationState{constructor(_0x26c81d,_0x9f1cf6,_0x5e9cfd,_0x36c3f6,_0x55b4e6,_0x12e7e9=!0x1,_0x30b9d1,_0x46fbbc,_0x2a7b34,_0x57f80b,_0x4f814d,_0x4ab292,_0x5adada){var _0x523690=_0x43e0c9;super(_0x26c81d,_0x9f1cf6,_0x5e9cfd,_0x36c3f6,_0x55b4e6,_0x46fbbc,_0x2a7b34,_0x57f80b,_0x5adada),__publicField(this,_0x523690(0x123),'conflict'),(this['_isPermissionRej']=_0x12e7e9,this[_0x523690(0x159)]=_0x30b9d1,this[_0x523690(0x3dd)]=_0x4f814d,this[_0x523690(0x127)]=_0x4ab292,this['localCacheService']=_0x5adada,this[_0x523690(0x3de)](),this[_0x523690(0x3a6)](),this['_disableEditing']());}['appendMutation'](){return this;}[_0x43e0c9(0x220)](){return this;}[_0x43e0c9(0x2b5)](){return this;}[_0x43e0c9(0x273)](){return this;}[_0x43e0c9(0x32a)](){return this;}['toggleOffline'](){return this;}['toggleOnline'](){return this;}[_0x43e0c9(0x3ee)](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x43e0c9(0x3a6)](){var _0x4fb550=_0x43e0c9,_0x3b3448;(_0x3b3448=this[_0x4fb550(0x289)])==null||_0x3b3448[_0x4fb550(0x2fd)](this[_0x4fb550(0x442)],this[_0x4fb550(0x3b0)],null,[]);}[_0x43e0c9(0x3de)](){var _0x2adef1=_0x43e0c9;this[_0x2adef1(0x1c7)]?this['_collaborationUIEventService'][_0x2adef1(0x43a)]({'id':CollaborationUIEventId['PERMISSION_DENIED']}):this['_collaborationUIEventService'][_0x2adef1(0x43a)]({'id':CollaborationUIEventId[_0x2adef1(0x2a0)]});}[_0x43e0c9(0x35c)](){var _0x55a82c=_0x43e0c9;this[_0x55a82c(0x159)]['updatePermissionPoint'](new WorkbookEditablePermission(this[_0x55a82c(0x442)])['id'],!0x1);}},__name(_a10,_0x43e0c9(0x2b3)),_a10);ConflictState=__decorateClass$d([__decorateParam$d(0x6,Inject(IPermissionService)),__decorateParam$d(0x7,ICommandService),__decorateParam$d(0x8,IUndoRedoService),__decorateParam$d(0x9,Inject(RevisionService)),__decorateParam$d(0xa,Inject(LocaleService)),__decorateParam$d(0xb,Inject(CollaborationUIEventService)),__decorateParam$d(0xc,Optional(ILocalCacheService))],ConflictState);var _a11;let OfflineState=(_a11=class extends CollaborationState{constructor(_0x586788,_0x3ce1cb,_0x2f04bd,_0x2951fa,_0xfcfae9,_0x3a72d5,_0x59ade1,_0x4d9ab6,_0x2fe44e,_0x40a541){var _0x590a72=_0x43e0c9;super(_0x586788,_0x3ce1cb,_0x2f04bd,_0x2951fa,_0xfcfae9,_0x4d9ab6,_0x2fe44e,_0x59ade1,_0x40a541),__publicField(this,_0x590a72(0x123),_0x590a72(0x2c8)),this[_0x590a72(0x403)]=_0x3a72d5;}['appendMutation'](_0x590483){var _0x4b9e49=_0x43e0c9;return this['_pendingMutations'][_0x4b9e49(0x119)](_0x590483),this['_updateLocalCache'](),this;}[_0x43e0c9(0x220)](_0x142b92){throw new Error('[OfflineState]:\x20received\x20changeset.');}[_0x43e0c9(0x2b5)](){var _0x21a461=_0x43e0c9;throw new Error(_0x21a461(0x3ac));}['onRemoteRej'](){var _0x2c4974=_0x43e0c9;throw new Error(_0x2c4974(0x1a0));}['onRemoteRetry'](){return this;}[_0x43e0c9(0x31c)](){return this;}['toggleOnline'](){var _0x114c10=_0x43e0c9;const {_injector:_0x2bfad5,_pendingMutations:_0x4cd98f,_awaitingChangeset:_0x3a815a,unitID:_0x2400a8,_handler:_0x5131b5,type:_0x5e1fa1}=this,_0x22a25c=createOnlineState(_0x2bfad5,_0x2400a8,_0x5e1fa1,_0x3a815a,_0x4cd98f,_0x5131b5);return _0x22a25c instanceof PendingState?_0x22a25c[_0x114c10(0x1f9)]():(_0x22a25c instanceof AwaitingWithPendingState||_0x22a25c instanceof AwaitingState)&&_0x22a25c['resend'](),_0x22a25c;}['resend'](){var _0x16e566=_0x43e0c9;throw new Error(_0x16e566(0x3da));}},__name(_a11,_0x43e0c9(0x244)),_a11);OfflineState=__decorateClass$d([__decorateParam$d(0x5,Inject(Injector)),__decorateParam$d(0x6,Inject(RevisionService)),__decorateParam$d(0x7,ICommandService),__decorateParam$d(0x8,IUndoRedoService),__decorateParam$d(0x9,Optional(ILocalCacheService))],OfflineState);var _a12;let FetchingMissState=(_a12=class extends CollaborationState{constructor(_0x713333,_0x5bc442,_0x45374e,_0x3ab25d,_0x365bca,_0x45a121,_0x28cf6c,_0x3a7d29,_0x1948f2,_0x10797c,_0x552fa9,_0x13a353,_0x53aaf6,_0x1fbf44){var _0x23e68e=_0x43e0c9;super(_0x713333,_0x5bc442,_0x45374e,_0x3ab25d,_0x28cf6c,_0x552fa9,_0x13a353,_0x1948f2,_0x1fbf44),__publicField(this,'status',_0x23e68e(0x3e6)),(this[_0x23e68e(0x2da)]=_0x365bca,this[_0x23e68e(0x2bc)]=_0x45a121,this[_0x23e68e(0x403)]=_0x3a7d29,this[_0x23e68e(0x11f)]=_0x10797c,this[_0x23e68e(0x345)]=_0x53aaf6,this[_0x23e68e(0x284)]=_0x1fbf44);}[_0x43e0c9(0x1a5)](_0x4eef64){var _0x244d1e=_0x43e0c9;try{const _0x284eeb=[..._0x4eef64,...this[_0x244d1e(0x2bc)]],_0x4642ce=[this[_0x244d1e(0x20d)]||this['_acknowledgedAwaitingChangeset']][_0x244d1e(0x140)](_0x1781f4=>!!_0x1781f4);let _0x23bb06,_0x47ac2c;if(_0x4642ce[_0x244d1e(0x233)]){const _0x23ed06=this[_0x244d1e(0x345)][_0x244d1e(0x398)](_0x284eeb,_0x4642ce,!0x1);if(!isTransformChangesetsSuccess(_0x23ed06))throw _0x23ed06['error'];_0x23bb06=_0x23ed06[_0x244d1e(0x1ef)],_0x47ac2c=_0x23ed06['c2Prime'];}else _0x23bb06=_0x284eeb,_0x47ac2c=[];let _0x329888=this[_0x244d1e(0x1c5)];_0x23bb06[_0x244d1e(0x392)](_0x20a4d2=>{var _0x148829=_0x244d1e;let _0x32ed3e;if(_0x329888[_0x148829(0x233)]){const _0x1e06f5=this[_0x148829(0x345)][_0x148829(0x346)](_0x20a4d2,_0x329888);if(!isTransformMutationsWithChangesetSuccess(_0x1e06f5))throw _0x1e06f5['error'];_0x32ed3e=_0x1e06f5['c1Prime'],_0x329888=_0x1e06f5[_0x148829(0xfa)];}else _0x32ed3e=_0x20a4d2;this[_0x148829(0x21e)](_0x32ed3e);}),this['_acknowledgedAwaitingChangeset']&&this[_0x244d1e(0x40a)](),this['_awaitingChangeset']&&_0x47ac2c['length']&&(_0x47ac2c[0x0]['baseRev']=this[_0x244d1e(0x13e)]());let _0x59c3a9;if(this[_0x244d1e(0x20d)]&&_0x329888['length']!==0x0)_0x59c3a9=this[_0x244d1e(0x403)][_0x244d1e(0x39f)](AwaitingWithPendingState,this[_0x244d1e(0x442)],this['type'],_0x47ac2c[0x0],_0x329888,this[_0x244d1e(0x3bd)],void 0x0);else{if(this[_0x244d1e(0x20d)]&&_0x329888['length']===0x0)_0x47ac2c[0x0][_0x244d1e(0x191)]=this[_0x244d1e(0x13e)](),_0x59c3a9=this[_0x244d1e(0x403)]['createInstance'](AwaitingState,this[_0x244d1e(0x442)],this['type'],_0x47ac2c[0x0],this[_0x244d1e(0x3bd)]);else{if(_0x329888[_0x244d1e(0x233)]!==0x0){const _0x118af6=this[_0x244d1e(0x403)][_0x244d1e(0x39f)](PendingState,this[_0x244d1e(0x442)],this['type'],_0x329888,this[_0x244d1e(0x3bd)]);_0x118af6['_schedule'](),_0x59c3a9=_0x118af6;}else _0x59c3a9=this[_0x244d1e(0x403)][_0x244d1e(0x39f)](SyncedState,this[_0x244d1e(0x442)],this[_0x244d1e(0x3b0)],this['_handler']);}}return _0x59c3a9[_0x244d1e(0x3dc)](),_0x59c3a9;}catch(_0x3b7ab9){return this[_0x244d1e(0x11f)][_0x244d1e(0x1c8)](_0x244d1e(0x102),_0x244d1e(0x19b),_0x3b7ab9),this[_0x244d1e(0x403)][_0x244d1e(0x39f)](ConflictState,this[_0x244d1e(0x442)],this[_0x244d1e(0x3b0)],this[_0x244d1e(0x20d)],this['_pendingMutations'],this[_0x244d1e(0x3bd)],!0x1);}}[_0x43e0c9(0x3ee)](){var _0x3a8001=_0x43e0c9;throw new Error(_0x3a8001(0x1e9));}[_0x43e0c9(0x35f)](_0x3b57c7){var _0x151837=_0x43e0c9;return this[_0x151837(0x1c5)][_0x151837(0x119)](_0x3b57c7),this;}['onRemoteChangeset'](_0x511327){var _0x1d0d1b=_0x43e0c9;return this['_queuedRemoteChangesets'][_0x1d0d1b(0x119)](_0x511327),this;}[_0x43e0c9(0x2b5)](_0xb51bd8){var _0x51f3fc=_0x43e0c9;if(this[_0x51f3fc(0x20d)])return this['_acknowledgedAwaitingChangeset']=this[_0x51f3fc(0x20d)],this['_awaitingChangeset']=null,this;throw new Error(_0x51f3fc(0xfb));}['onRemoteRej'](_0x56cbd1){var _0xc625f2=_0x43e0c9;return this['_onConflict'](!!(_0x56cbd1!=null&&_0x56cbd1[_0xc625f2(0x24a)]));}[_0x43e0c9(0x32a)](){return this;}[_0x43e0c9(0x31c)](){var _0x572313=_0x43e0c9;return this[_0x572313(0x403)][_0x572313(0x39f)](OfflineState,this[_0x572313(0x442)],this[_0x572313(0x3b0)],this[_0x572313(0x20d)],this[_0x572313(0x1c5)],this[_0x572313(0x3bd)]);}['toggleOnline'](){return this;}['_onConflict'](_0x1761c4){var _0x255262=_0x43e0c9;return this[_0x255262(0x403)]['createInstance'](ConflictState,this['unitID'],this[_0x255262(0x3b0)],this[_0x255262(0x20d)],this[_0x255262(0x1c5)],this[_0x255262(0x3bd)],_0x1761c4);}},__name(_a12,_0x43e0c9(0x2b4)),_a12);FetchingMissState=__decorateClass$d([__decorateParam$d(0x7,Inject(Injector)),__decorateParam$d(0x8,Inject(RevisionService)),__decorateParam$d(0x9,ILogService),__decorateParam$d(0xa,ICommandService),__decorateParam$d(0xb,IUndoRedoService),__decorateParam$d(0xc,ITransformService),__decorateParam$d(0xd,Optional(ILocalCacheService))],FetchingMissState);function createOnlineState(_0x237123,_0x12dc0,_0x58cae7,_0x5bc835,_0x579e69,_0x33cef3){var _0x28f223=_0x43e0c9;return _0x5bc835&&_0x579e69[_0x28f223(0x233)]?_0x237123[_0x28f223(0x39f)](AwaitingWithPendingState,_0x12dc0,_0x58cae7,_0x5bc835,_0x579e69,_0x33cef3,void 0x0):_0x5bc835?_0x237123[_0x28f223(0x39f)](AwaitingState,_0x12dc0,_0x58cae7,_0x5bc835,_0x33cef3):_0x579e69[_0x28f223(0x233)]?_0x237123[_0x28f223(0x39f)](PendingState,_0x12dc0,_0x58cae7,_0x579e69,_0x33cef3):_0x237123[_0x28f223(0x39f)](SyncedState,_0x12dc0,_0x58cae7,_0x33cef3);}__name(createOnlineState,_0x43e0c9(0x401));var __defProp$c=Object['defineProperty'],__getOwnPropDesc$c=Object[_0x43e0c9(0x33e)],__decorateClass$c=__name((_0x219cdc,_0x5d4243,_0xeccfa2,_0x396766)=>{var _0x327cc2=_0x43e0c9;for(var _0x27db5d=_0x396766>0x1?void 0x0:_0x396766?__getOwnPropDesc$c(_0x5d4243,_0xeccfa2):_0x5d4243,_0x52f153=_0x219cdc[_0x327cc2(0x233)]-0x1,_0x123e08;_0x52f153>=0x0;_0x52f153--)(_0x123e08=_0x219cdc[_0x52f153])&&(_0x27db5d=(_0x396766?_0x123e08(_0x5d4243,_0xeccfa2,_0x27db5d):_0x123e08(_0x27db5d))||_0x27db5d);return _0x396766&&_0x27db5d&&__defProp$c(_0x5d4243,_0xeccfa2,_0x27db5d),_0x27db5d;},_0x43e0c9(0x373)),__decorateParam$c=__name((_0x38fc03,_0x5476d1)=>(_0x8d4860,_0x47d2bf)=>_0x5476d1(_0x8d4860,_0x47d2bf,_0x38fc03),_0x43e0c9(0x305)),_a13;let CollaborationEntity=(_a13=class extends RxDisposable{constructor(_0x268f04,_0x10e3c5,_0x1cd8ce,_0x2cc734,_0x24d34d,_0x289473,_0x9dcd27,_0x36db77,_0xfe2288,_0x483ffd,_0x408c91,_0x27ce9f,_0x5a08a9){var _0x2bd8f5=_0x43e0c9;super(),__publicField(this,_0x2bd8f5(0x1df),new BehaviorSubject(null)),__publicField(this,_0x2bd8f5(0xfd),this[_0x2bd8f5(0x1df)][_0x2bd8f5(0x37f)]()),__publicField(this,_0x2bd8f5(0x290)),__publicField(this,_0x2bd8f5(0x125),!0x1),__publicField(this,_0x2bd8f5(0x2c1),''),__publicField(this,_0x2bd8f5(0x1c3),0x0),__publicField(this,_0x2bd8f5(0x26a),this[_0x2bd8f5(0xfd)]['pipe'](_0x14d6b6(_0x1bf4c3=>_0x1bf4c3?_0x1bf4c3['status']:CollaborationStatus[_0x2bd8f5(0x2be)]),shareReplay(0x1))),__publicField(this,_0x2bd8f5(0x340),!0x1),__publicField(this,'_remoteChangesetQueue',[]),(this[_0x2bd8f5(0x442)]=_0x268f04,this[_0x2bd8f5(0x39d)]=_0x10e3c5,this[_0x2bd8f5(0x203)]=_0x1cd8ce,this[_0x2bd8f5(0x403)]=_0x2cc734,this[_0x2bd8f5(0x16a)]=_0x24d34d,this[_0x2bd8f5(0x3dd)]=_0x289473,this[_0x2bd8f5(0x3c0)]=_0x9dcd27,this['_eventService']=_0x36db77,this[_0x2bd8f5(0x11f)]=_0xfe2288,this['_commandService']=_0x483ffd,this['_permissionService']=_0x408c91,this[_0x2bd8f5(0x1b5)]=_0x27ce9f,this[_0x2bd8f5(0x289)]=_0x5a08a9);}get[_0x43e0c9(0x336)](){var _0x4e5b27=_0x43e0c9;return this[_0x4e5b27(0x290)];}async[_0x43e0c9(0x21c)](){var _0x1e54e4=_0x43e0c9;if(this[_0x1e54e4(0x336)])throw new Error(_0x1e54e4(0x1d4));await this[_0x1e54e4(0x19e)]();}[_0x43e0c9(0x1cf)](){var _0x54a9f5=_0x43e0c9;return this[_0x54a9f5(0x125)]=!0x0,toDisposable(()=>{var _0x3addae=_0x54a9f5;this[_0x3addae(0x125)]=!0x1,this[_0x3addae(0x380)]();});}[_0x43e0c9(0x2c5)](_0x111e33){var _0x325721=_0x43e0c9;this[_0x325721(0x1cc)](_0x111e33);}[_0x43e0c9(0x3ca)](_0x49e831){var _0xea6817=_0x43e0c9;this[_0xea6817(0x290)]=_0x49e831,this['_state$'][_0xea6817(0x2e5)](_0x49e831);}async[_0x43e0c9(0x19e)](){var _0x1ef899=_0x43e0c9,_0x547d55;this[_0x1ef899(0x3ca)](await this[_0x1ef899(0x15e)]()),this['_singleActiveUnitService']&&((_0x547d55=this[_0x1ef899(0x1b5)])==null||_0x547d55['editingUnit'](this[_0x1ef899(0x442)]),this['disposeWithMe'](this[_0x1ef899(0x1b5)]['getUnitStatus$'](this[_0x1ef899(0x442)])['subscribe'](_0x1d7fe8=>{var _0x1b14cc=_0x1ef899;this[_0x1b14cc(0x11f)]['debug'](_0x1b14cc(0xf8),_0x1b14cc(0x35d),_0x1d7fe8),_0x1d7fe8===UnitStatus[_0x1b14cc(0x350)]?(this[_0x1b14cc(0x420)][_0x1b14cc(0x43a)]({'id':CollaborationUIEventId['OTHER_CLIENT_EDITING']}),this[_0x1b14cc(0x159)][_0x1b14cc(0x10b)](new WorkbookEditablePermission(this[_0x1b14cc(0x442)])['id'],!0x1),this[_0x1b14cc(0x159)][_0x1b14cc(0x413)](!0x1)):(this['_permissionService'][_0x1b14cc(0x10b)](new WorkbookEditablePermission(this['unitID'])['id'],!0x0),this['_permissionService']['setShowComponents'](!0x0));})));let _0x21aa71=!0x1;return this[_0x1ef899(0x18f)](this[_0x1ef899(0x39d)][_0x1ef899(0x27c)]['subscribe'](_0x354de0=>{var _0x284b0b=_0x1ef899;_0x354de0===SessionStatus[_0x284b0b(0x310)]?this[_0x284b0b(0x25e)](_0x21aa71):_0x354de0===SessionStatus[_0x284b0b(0x2be)]&&(_0x21aa71=!0x0,this[_0x284b0b(0x151)]());})),this[_0x1ef899(0x18f)](this[_0x1ef899(0x39d)]['event$'][_0x1ef899(0x352)](_0x34229a=>{var _0x574f12=_0x1ef899;try{switch(_0x34229a[_0x574f12(0x25d)]){case CollaborationEvent['NEW_CHANGESETS']:{this[_0x574f12(0x213)](parseProtocolChangeset(_0x34229a[_0x574f12(0x14c)]));break;}case CollaborationEvent[_0x574f12(0x24c)]:{this[_0x574f12(0x12b)](_0x34229a[_0x574f12(0x14c)]);break;}case CollaborationEvent[_0x574f12(0x26d)]:{this[_0x574f12(0x188)]();break;}case CollaborationEvent[_0x574f12(0x1b0)]:{this[_0x574f12(0x406)](_0x34229a['data']);break;}case CollaborationEvent[_0x574f12(0x28d)]:{this[_0x574f12(0x22e)](_0x34229a[_0x574f12(0x14c)]['changesets'][_0x574f12(0x12e)](_0x33879=>parseProtocolChangeset(_0x33879)));break;}case CollaborationEvent[_0x574f12(0x3db)]:{this[_0x574f12(0x188)]({'isPermissionRej':!0x0});break;}case CollaborationEvent['UNISCRIPT_RUN']:break;}}catch(_0x2c07a4){throw console[_0x574f12(0x1c8)](_0x574f12(0x293),_0x2c07a4),_0x2c07a4;}})),this['_state'];}[_0x43e0c9(0x256)](){var _0xf2503e=_0x43e0c9;this[_0xf2503e(0x340)]=!0x1;}['_lockTransition'](){var _0x39b661=_0x43e0c9;if(this[_0x39b661(0x340)])throw new Error('[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.');this[_0x39b661(0x340)]=!0x0;}[_0x43e0c9(0x1cc)](_0x44763b){var _0x2a24a3=_0x43e0c9;this[_0x2a24a3(0x3b4)](),this[_0x2a24a3(0x3ca)](this[_0x2a24a3(0x290)][_0x2a24a3(0x35f)](_0x44763b)),this['_unlockTransition']();}[_0x43e0c9(0x213)](_0x413997){var _0x2cfa95=_0x43e0c9;if(!(_0x413997[_0x2cfa95(0x267)]<=this[_0x2cfa95(0x3c0)][_0x2cfa95(0x1c0)](this[_0x2cfa95(0x442)]))){if(this[_0x2cfa95(0x125)]){this['_remoteChangesetQueue']['push'](_0x413997);return;}this[_0x2cfa95(0x298)](_0x413997);}}['_exhaustRemoteChangesetQueue'](){var _0x257fdc=_0x43e0c9;this[_0x257fdc(0x1fa)]['forEach'](_0x200634=>this[_0x257fdc(0x298)](_0x200634)),this[_0x257fdc(0x1fa)]=[];}['_applyRemoteChangeset'](_0x43dbb5){var _0x520f87=_0x43e0c9;const _0x4dabd5=this[_0x520f87(0x16a)]['interceptor'][_0x520f87(0x308)](this[_0x520f87(0x16a)]['interceptor']['getInterceptPoints']()[_0x520f87(0x30a)])(_0x43dbb5[_0x520f87(0x245)],null)||_0x43dbb5[_0x520f87(0x245)],_0x4743bd={..._0x43dbb5,'mutations':_0x4dabd5};this['_lockTransition'](),this[_0x520f87(0x3ca)](this[_0x520f87(0x290)][_0x520f87(0x220)](_0x4743bd)),this[_0x520f87(0x256)]();}['_onRemoteACK'](_0x6fced2){var _0x1ab4cc=_0x43e0c9;this['_lockTransition'](),this[_0x1ab4cc(0x3ca)](this['_state'][_0x1ab4cc(0x2b5)](_0x6fced2)),this[_0x1ab4cc(0x256)]();}[_0x43e0c9(0x188)](_0x2158ab){var _0x135190=_0x43e0c9;this[_0x135190(0x3b4)](),this[_0x135190(0x3ca)](this[_0x135190(0x290)][_0x135190(0x273)](_0x2158ab)),this[_0x135190(0x256)]();}[_0x43e0c9(0x406)](_0x595a97){var _0x296e6b=_0x43e0c9;this['_lockTransition'](),this[_0x296e6b(0x3ca)](this[_0x296e6b(0x290)]['onRemoteRetry'](_0x595a97)),this[_0x296e6b(0x256)]();}['_onFetchMissResult'](_0x7459cc){var _0x5ebfea=_0x43e0c9;if(!(this[_0x5ebfea(0x290)]instanceof FetchingMissState))throw new TypeError(_0x5ebfea(0x1e5));const _0x59153b=_0x7459cc[_0x5ebfea(0x12e)](_0x13e3a8=>{var _0x44ba1b=_0x5ebfea;const _0x5d80b3=this[_0x44ba1b(0x16a)][_0x44ba1b(0x2d1)][_0x44ba1b(0x308)](this['_compressMutationService'][_0x44ba1b(0x2d1)][_0x44ba1b(0x1ff)]()[_0x44ba1b(0x30a)])(_0x13e3a8[_0x44ba1b(0x245)],null)||_0x13e3a8['mutations'];return{..._0x13e3a8,'mutations':_0x5d80b3};});this[_0x5ebfea(0x3b4)](),this[_0x5ebfea(0x3ca)](this[_0x5ebfea(0x290)][_0x5ebfea(0x1a5)](_0x59153b)),this[_0x5ebfea(0x256)]();}[_0x43e0c9(0x151)](){var _0x189b33=_0x43e0c9;this[_0x189b33(0x3b4)](),this['_updateState'](this[_0x189b33(0x290)]['toggleOffline']()),this[_0x189b33(0x256)]();}[_0x43e0c9(0x25e)](_0x16679b=!0x1){var _0x2ec036=_0x43e0c9;this['_lockTransition'](),this[_0x2ec036(0x3ca)](this[_0x2ec036(0x290)]['toggleOnline']()),this[_0x2ec036(0x256)]();const _0x2e3bf2=this['_state'];_0x16679b&&_0x2e3bf2 instanceof SyncedState&&(this[_0x2ec036(0x3b4)](),this[_0x2ec036(0x3ca)](_0x2e3bf2[_0x2ec036(0x26b)]()),this[_0x2ec036(0x256)]());}async[_0x43e0c9(0x15e)](){return new Promise(_0x27c81e=>{var _0x11e588=_0x5029;this[_0x11e588(0x39d)][_0x11e588(0x27c)][_0x11e588(0x1f0)](_0x4af4d9(0x1))[_0x11e588(0x352)](async _0x402c37=>{var _0x1ee2e2=_0x11e588;_0x27c81e(await this[_0x1ee2e2(0x1dc)](_0x402c37===SessionStatus[_0x1ee2e2(0x310)]));});});}[_0x43e0c9(0x3fc)](){var _0x25996b=_0x43e0c9;const _0x5f3e6f=this['unitID'];return{'onStateChange':__name((_0xde17d4,_0x408f04)=>{var _0xa99cd9=_0x5029;if(_0xde17d4!==this[_0xa99cd9(0x290)])throw new Error(_0xa99cd9(0x3bf)+_0xde17d4[_0xa99cd9(0x123)]+_0xa99cd9(0x275)+_0x408f04[_0xa99cd9(0x123)]+'\x0aCurrent:\x20'+this[_0xa99cd9(0x290)][_0xa99cd9(0x123)]);this[_0xa99cd9(0x3ca)](_0x408f04);},_0x25996b(0x358)),'onSendChangeset':__name(_0x4790e1=>{var _0x52d01d=_0x25996b;_0x4790e1[_0x52d01d(0x20c)]||(_0x4790e1['sid']=this[_0x52d01d(0x2c1)],_0x4790e1[_0x52d01d(0x185)]=++this[_0x52d01d(0x1c3)]);const _0x508880={'eventID':CollaborationEvent['SUBMIT_CHANGESET'],'data':{'unitID':_0x4790e1[_0x52d01d(0x442)],'unitType':this['_type'],'changeset':_0x4790e1,'memberID':this[_0x52d01d(0x39d)][_0x52d01d(0x297)]()}};this['session'][_0x52d01d(0x313)](_0x508880,this[_0x52d01d(0x442)]);},_0x25996b(0x2dc)),'onMissingChangesets':__name(({from:_0x487f7e,to:_0x28b907})=>{var _0x4f9c09=_0x25996b;this[_0x4f9c09(0x11f)][_0x4f9c09(0x287)]('[CollaborationEntity]',_0x4f9c09(0x39e)+_0x487f7e+_0x4f9c09(0x2d3)+_0x28b907);const _0x3d9e7e={'eventID':CollaborationEvent[_0x4f9c09(0x34c)],'data':{'unitID':_0x5f3e6f,'unitType':this[_0x4f9c09(0x203)],'from':_0x487f7e,'to':_0x28b907}};this['session'][_0x4f9c09(0x313)](_0x3d9e7e,this[_0x4f9c09(0x442)]);},_0x25996b(0x195))};}async[_0x43e0c9(0x1dc)](_0x40c840){var _0x1d5267=_0x43e0c9,_0x3e8a79,_0x4bb1e2,_0x5d1da8;const _0x5840ea=await((_0x3e8a79=this[_0x1d5267(0x289)])==null?void 0x0:_0x3e8a79['loadOfflineData'](this[_0x1d5267(0x442)])),_0xf2ebe=(_0x4bb1e2=_0x5840ea==null?void 0x0:_0x5840ea[_0x1d5267(0x245)])!=null?_0x4bb1e2:[],_0x1dd4d0=(_0x5d1da8=_0x5840ea==null?void 0x0:_0x5840ea[_0x1d5267(0x3f2)])!=null?_0x5d1da8:null,_0x4fef31=!!(_0x1dd4d0!=null&&_0x1dd4d0['sid'])&&!!(_0x1dd4d0!=null&&_0x1dd4d0[_0x1d5267(0x185)]);this['_changesetSessionId']=_0x4fef31?_0x1dd4d0[_0x1d5267(0x20c)]:v4(),this[_0x1d5267(0x1c3)]=_0x4fef31?_0x1dd4d0[_0x1d5267(0x185)]:0x0;const _0x287d9c=this['unitID'];try{this['_replayCachedMutations'](_0x1dd4d0,_0xf2ebe);}catch(_0x5d2289){this[_0x1d5267(0x11f)]['error'](_0x5d2289);}const _0x5143ca=this['_createHandler']();if(_0x40c840){const _0xc7c042=createOnlineState(this['_injector'],_0x287d9c,this[_0x1d5267(0x203)],_0x1dd4d0,_0xf2ebe,_0x5143ca);return _0xc7c042 instanceof PendingState?_0xc7c042[_0x1d5267(0x1f9)]():(_0xc7c042 instanceof AwaitingWithPendingState||_0xc7c042 instanceof AwaitingState)&&_0xc7c042[_0x1d5267(0x3ee)](),_0xc7c042;}return this[_0x1d5267(0x403)][_0x1d5267(0x39f)](OfflineState,_0x287d9c,this[_0x1d5267(0x203)],_0x1dd4d0,_0xf2ebe,_0x5143ca);}[_0x43e0c9(0x29f)](_0x2afc38,_0x11e031){var _0x40685f=_0x43e0c9,_0x3150c1,_0x1263f8;const _0x2677f3=this[_0x40685f(0x16a)][_0x40685f(0x2d1)][_0x40685f(0x308)](this[_0x40685f(0x16a)][_0x40685f(0x2d1)][_0x40685f(0x1ff)]()[_0x40685f(0x30a)]);(_0x3150c1=_0x2677f3((_0x2afc38==null?void 0x0:_0x2afc38[_0x40685f(0x245)])||[],null))==null||_0x3150c1[_0x40685f(0x392)](_0x450c33=>this[_0x40685f(0x1ae)][_0x40685f(0x3f7)](_0x450c33['id'],_0x450c33['params'])),(_0x1263f8=_0x2677f3(_0x11e031||[],null))==null||_0x1263f8[_0x40685f(0x392)](_0x246390=>this['_commandService'][_0x40685f(0x3f7)](_0x246390['id'],_0x246390['params']));}},__name(_a13,'CollaborationEntity'),_a13);CollaborationEntity=__decorateClass$c([__decorateParam$c(0x3,Inject(Injector)),__decorateParam$c(0x4,Inject(CompressMutationService)),__decorateParam$c(0x5,Inject(LocaleService)),__decorateParam$c(0x6,Inject(RevisionService)),__decorateParam$c(0x7,Inject(CollaborationUIEventService)),__decorateParam$c(0x8,ILogService),__decorateParam$c(0x9,ICommandService),__decorateParam$c(0xa,IPermissionService),__decorateParam$c(0xb,Optional(ISingleActiveUnitService)),__decorateParam$c(0xc,Optional(ILocalCacheService))],CollaborationEntity);var _a14;let DocCollaborationEntity=(_a14=class extends CollaborationEntity{constructor(_0x4584d4,_0x538361,_0x462dde,_0x4d668b,_0x3b803c,_0x1e6bdd,_0x5a7063,_0x5142d0,_0x1095a6,_0x4c263a,_0x1e543d,_0x311a7f,_0x4c4954){var _0x3bcab=_0x43e0c9;super(_0x4584d4,_0x462dde,_0x538361,_0x4d668b,_0x3b803c,_0x1e6bdd,_0x5a7063,_0x5142d0,_0x1095a6,_0x4c263a,_0x1e543d,_0x311a7f,_0x4c4954),__publicField(this,_0x3bcab(0x246),null),(this[_0x3bcab(0x442)]=_0x4584d4,this[_0x3bcab(0x3b0)]=_0x538361);}['addHandlerCallback'](_0x11c948){var _0x2e2aee=_0x43e0c9;this[_0x2e2aee(0x246)]=_0x11c948;}['dispose'](){var _0x5b1287=_0x43e0c9;this[_0x5b1287(0x246)]=null,super[_0x5b1287(0x25b)]();}[_0x43e0c9(0x3fc)](){var _0x3af63d=_0x43e0c9;const _0x587bf5=super['_createHandler']();return _0x587bf5[_0x3af63d(0x173)]=_0x503a79=>{var _0x3b7329=_0x3af63d,_0x4e2956,_0x2b0f1e;return(_0x2b0f1e=(_0x4e2956=this[_0x3b7329(0x246)])==null?void 0x0:_0x4e2956[_0x3b7329(0x173)])==null?void 0x0:_0x2b0f1e[_0x3b7329(0x314)](_0x4e2956,_0x503a79);},_0x587bf5[_0x3af63d(0x3c4)]=_0x3dc51a=>{var _0x4822f5=_0x3af63d,_0x2843e4,_0x569073;return(_0x569073=(_0x2843e4=this[_0x4822f5(0x246)])==null?void 0x0:_0x2843e4[_0x4822f5(0x3c4)])==null?void 0x0:_0x569073[_0x4822f5(0x314)](_0x2843e4,_0x3dc51a);},_0x587bf5['onTransformSelections']=_0x5e20f5=>{var _0x340670=_0x3af63d,_0x39bfea,_0x273c92;return(_0x273c92=(_0x39bfea=this[_0x340670(0x246)])==null?void 0x0:_0x39bfea[_0x340670(0x250)])==null?void 0x0:_0x273c92['call'](_0x39bfea,_0x5e20f5);},_0x587bf5[_0x3af63d(0x37c)]=_0x341c8c=>{var _0x4bcc7f=_0x3af63d,_0x1d7d07,_0x1203ba;return(_0x1203ba=(_0x1d7d07=this['_handlerCallback'])==null?void 0x0:_0x1d7d07[_0x4bcc7f(0x37c)])==null?void 0x0:_0x1203ba['call'](_0x1d7d07,_0x341c8c);},_0x587bf5[_0x3af63d(0x11e)]=_0x56dcab=>{var _0x6cf43e=_0x3af63d,_0x1df6d8,_0x213dd8,_0xcac2ce;if(!((_0x1df6d8=this[_0x6cf43e(0x246)])!=null&&_0x1df6d8[_0x6cf43e(0x11e)]))throw new Error('onTransformRemoteChangesetByIMECache\x20callback\x20is\x20not\x20added\x20yet.');return(_0xcac2ce=(_0x213dd8=this[_0x6cf43e(0x246)])==null?void 0x0:_0x213dd8[_0x6cf43e(0x11e)])==null?void 0x0:_0xcac2ce['call'](_0x213dd8,_0x56dcab);},_0x587bf5[_0x3af63d(0x404)]=_0x4aac8d=>{var _0x43609b=_0x3af63d,_0x1d7312,_0x32f4fd,_0x337ba2;if(!((_0x1d7312=this[_0x43609b(0x246)])!=null&&_0x1d7312['onTransformRemoteChangesetByStateCache']))throw new Error(_0x43609b(0x21f));return(_0x337ba2=(_0x32f4fd=this[_0x43609b(0x246)])==null?void 0x0:_0x32f4fd[_0x43609b(0x404)])==null?void 0x0:_0x337ba2[_0x43609b(0x314)](_0x32f4fd,_0x4aac8d);},_0x587bf5;}async[_0x43e0c9(0x19e)](){var _0x4db805=_0x43e0c9;const _0xdaf83e=await super[_0x4db805(0x19e)]();return this['disposeWithMe'](this[_0x4db805(0x1ae)][_0x4db805(0x30d)]((_0x8b84cf,_0x401c64)=>{var _0x323656=_0x4db805;if(_0x8b84cf[_0x323656(0x3b0)]!==CommandType[_0x323656(0x189)]||_0x401c64!=null&&_0x401c64['fromCollab']||_0x401c64!=null&&_0x401c64['onlyLocal']||_0x8b84cf['id']===RichTextEditingMutation['id'])return;const _0x3d0157=_0x8b84cf[_0x323656(0xf1)];if((_0x3d0157==null?void 0x0:_0x3d0157[_0x323656(0x38e)])!==this[_0x323656(0x442)])return;const _0x18d9a5=_0x8b84cf,_0x526d5a=this['_compressMutationService'][_0x323656(0x2d1)]['fetchThroughInterceptors'](this['_compressMutationService']['interceptor']['getInterceptPoints']()[_0x323656(0x2f9)])([_0x18d9a5],null)||[_0x18d9a5];this[_0x323656(0x1cc)](_0x526d5a[0x0]);})),_0xdaf83e;}},__name(_a14,'DocCollaborationEntity'),_a14);DocCollaborationEntity=__decorateClass$c([__decorateParam$c(0x3,Inject(Injector)),__decorateParam$c(0x4,Inject(CompressMutationService)),__decorateParam$c(0x5,Inject(LocaleService)),__decorateParam$c(0x6,Inject(RevisionService)),__decorateParam$c(0x7,Inject(CollaborationUIEventService)),__decorateParam$c(0x8,ILogService),__decorateParam$c(0x9,ICommandService),__decorateParam$c(0xa,IPermissionService),__decorateParam$c(0xb,Optional(ISingleActiveUnitService)),__decorateParam$c(0xc,Optional(ILocalCacheService))],DocCollaborationEntity);var _a15;let SheetCollaborationEntity=(_a15=class extends CollaborationEntity{constructor(_0x885ff7,_0x388282,_0x563921,_0x29cfff,_0xf40966,_0x458cc6,_0x131235,_0x438a39,_0x2c1fc7,_0x49a01a,_0x35f94d,_0x7cb8ff,_0x4f4ebb,_0x2b52e8){var _0x3ba59f=_0x43e0c9;super(_0x885ff7,_0x563921,_0x388282,_0x29cfff,_0xf40966,_0x458cc6,_0x131235,_0x2c1fc7,_0x49a01a,_0x35f94d,_0x7cb8ff,_0x4f4ebb,_0x2b52e8),this[_0x3ba59f(0x442)]=_0x885ff7,this[_0x3ba59f(0x3b0)]=_0x388282,this[_0x3ba59f(0x319)]=_0x438a39;}['_createHandler'](){var _0x1a16af=_0x43e0c9;const _0x4d4cdd=super[_0x1a16af(0x3fc)]();return _0x4d4cdd['onTransformSelections']=_0x25f4a2=>this[_0x1a16af(0x319)][_0x1a16af(0x3d9)](_0x25f4a2),_0x4d4cdd;}async[_0x43e0c9(0x19e)](){var _0x28cd9d=_0x43e0c9;const _0x3518d3=await super['_init']();return this[_0x28cd9d(0x18f)](this['_commandService'][_0x28cd9d(0x30d)]((_0x5900f1,_0x14b1b2)=>{var _0x3ba2bf=_0x28cd9d;if(_0x5900f1['type']!==CommandType[_0x3ba2bf(0x189)]||_0x14b1b2!=null&&_0x14b1b2[_0x3ba2bf(0x374)]||_0x14b1b2!=null&&_0x14b1b2[_0x3ba2bf(0x2c4)])return;const _0x4de7d0=_0x5900f1[_0x3ba2bf(0xf1)];if((_0x4de7d0==null?void 0x0:_0x4de7d0[_0x3ba2bf(0x38e)])!==this[_0x3ba2bf(0x442)])return;const _0x2ab098=_0x5900f1,_0x4c365e=this[_0x3ba2bf(0x16a)]['interceptor'][_0x3ba2bf(0x308)](this[_0x3ba2bf(0x16a)][_0x3ba2bf(0x2d1)][_0x3ba2bf(0x1ff)]()[_0x3ba2bf(0x2f9)])([_0x2ab098],null)||[_0x2ab098];this[_0x3ba2bf(0x1cc)](_0x4c365e[0x0]);})),_0x3518d3;}},__name(_a15,'SheetCollaborationEntity'),_a15);SheetCollaborationEntity=__decorateClass$c([__decorateParam$c(0x3,Inject(Injector)),__decorateParam$c(0x4,Inject(CompressMutationService)),__decorateParam$c(0x5,Inject(LocaleService)),__decorateParam$c(0x6,Inject(RevisionService)),__decorateParam$c(0x7,Inject(SheetTransformSelectionsService)),__decorateParam$c(0x8,Inject(CollaborationUIEventService)),__decorateParam$c(0x9,ILogService),__decorateParam$c(0xa,ICommandService),__decorateParam$c(0xb,IPermissionService),__decorateParam$c(0xc,Optional(ISingleActiveUnitService)),__decorateParam$c(0xd,Optional(ILocalCacheService))],SheetCollaborationEntity);var __defProp$b=Object['defineProperty'],__getOwnPropDesc$b=Object[_0x43e0c9(0x33e)],__decorateClass$b=__name((_0x135eeb,_0x5d23c7,_0x2e86f9,_0x3e46bc)=>{var _0x288dc5=_0x43e0c9;for(var _0xc9fed1=_0x3e46bc>0x1?void 0x0:_0x3e46bc?__getOwnPropDesc$b(_0x5d23c7,_0x2e86f9):_0x5d23c7,_0x49343a=_0x135eeb[_0x288dc5(0x233)]-0x1,_0x4ec219;_0x49343a>=0x0;_0x49343a--)(_0x4ec219=_0x135eeb[_0x49343a])&&(_0xc9fed1=(_0x3e46bc?_0x4ec219(_0x5d23c7,_0x2e86f9,_0xc9fed1):_0x4ec219(_0xc9fed1))||_0xc9fed1);return _0x3e46bc&&_0xc9fed1&&__defProp$b(_0x5d23c7,_0x2e86f9,_0xc9fed1),_0xc9fed1;},_0x43e0c9(0x226)),__decorateParam$b=__name((_0x52a04e,_0x43ddfc)=>(_0x2985f5,_0x105fdc)=>_0x43ddfc(_0x2985f5,_0x105fdc,_0x52a04e),'__decorateParam$b'),_a16;let CollaborationController=(_a16=class extends RxDisposable{constructor(_0x31d7df,_0x452c0f,_0x1a29d6){var _0x5e5f99=_0x43e0c9;super(),__publicField(this,_0x5e5f99(0x16f),new Map()),__publicField(this,_0x5e5f99(0x285),new Subject()),__publicField(this,'entityInit$',this[_0x5e5f99(0x285)][_0x5e5f99(0x37f)]()),(this[_0x5e5f99(0x403)]=_0x31d7df,this[_0x5e5f99(0x3d5)]=_0x452c0f,this['_univerInstanceService']=_0x1a29d6,this['_init']());}[_0x43e0c9(0x25b)](){var _0x24fc0f=_0x43e0c9;super['dispose'](),this['_entities'][_0x24fc0f(0x392)](_0x2de2b7=>_0x2de2b7[_0x24fc0f(0x25b)]()),this[_0x24fc0f(0x16f)]['clear']();}['getCollabEntity'](_0x56ed05){var _0x3f805c=_0x43e0c9,_0x509196;return(_0x509196=this[_0x3f805c(0x16f)]['get'](_0x56ed05))!=null?_0x509196:null;}[_0x43e0c9(0x35b)](_0x3c2d9f){var _0x4645fb=_0x43e0c9;const _0x1f3a2a=this[_0x4645fb(0x1a9)](_0x3c2d9f);return _0x1f3a2a?of(_0x1f3a2a):this['_entityInit$'][_0x4645fb(0x1f0)](filter(_0x3f1ab9=>_0x3f1ab9[_0x4645fb(0x442)]===_0x3c2d9f));}['readyForCollab'](_0x38d1ba){var _0x3b4217=_0x43e0c9;return firstValueFrom(this[_0x3b4217(0x35b)](_0x38d1ba)['pipe'](map(()=>{})));}[_0x43e0c9(0x19e)](){var _0x4fbe8=_0x43e0c9;this[_0x4fbe8(0x330)][_0x4fbe8(0x430)](UniverInstanceType[_0x4fbe8(0x202)])[_0x4fbe8(0x1f0)](takeUntil(this[_0x4fbe8(0x34a)]),delay(0x10))[_0x4fbe8(0x352)](async _0x3194f6=>{var _0x554ade=_0x4fbe8;const _0x346fbb=_0x3194f6[_0x554ade(0x2cb)](),_0x55a730=await this['_startCollaboration'](_0x346fbb,UniverType['UNIVER_SHEET']);this[_0x554ade(0x16f)][_0x554ade(0x116)](_0x346fbb,_0x55a730);}),this['_univerInstanceService'][_0x4fbe8(0x430)](UniverInstanceType[_0x4fbe8(0x199)])['pipe'](takeUntil(this[_0x4fbe8(0x34a)]),delay(0x10))['pipe'](filter(_0x24d428=>!_0x24d428[_0x4fbe8(0x2cb)]()[_0x4fbe8(0x12d)]('__')))['subscribe'](async _0x1bb588=>{var _0x13acd5=_0x4fbe8;const _0x13d73f=_0x1bb588[_0x13acd5(0x2cb)](),_0x517533=await this['_startCollaboration'](_0x13d73f,UniverType['UNIVER_DOC']);this[_0x13acd5(0x16f)][_0x13acd5(0x116)](_0x13d73f,_0x517533);}),merge(this[_0x4fbe8(0x330)][_0x4fbe8(0x33a)](UniverInstanceType['UNIVER_SHEET']),this[_0x4fbe8(0x330)]['getTypeOfUnitDisposed$'](UniverInstanceType[_0x4fbe8(0x199)]))['pipe'](takeUntil(this[_0x4fbe8(0x34a)]))['subscribe'](_0x4808b0=>{var _0x39c165=_0x4fbe8;const _0x4b68f=_0x4808b0['getUnitId'](),_0x884662=this['_entities'][_0x39c165(0x1c2)](_0x4b68f);_0x884662&&(_0x884662[_0x39c165(0x25b)](),this[_0x39c165(0x16f)]['delete'](_0x4b68f));});}async[_0x43e0c9(0x407)](_0x12699e,_0x11b4e5){var _0x257162=_0x43e0c9;const _0x50ee56=await this[_0x257162(0x3d5)][_0x257162(0x32d)](_0x12699e),_0x2e39dd=this['_injector'][_0x257162(0x39f)](this[_0x257162(0x445)](_0x11b4e5),_0x12699e,_0x11b4e5,_0x50ee56);return await _0x2e39dd['init'](),this[_0x257162(0x285)][_0x257162(0x2e5)](_0x2e39dd),_0x2e39dd;}[_0x43e0c9(0x445)](_0x41286b){var _0x3ec9b6=_0x43e0c9;switch(_0x41286b){case UniverType[_0x3ec9b6(0x199)]:return DocCollaborationEntity;case UniverType['UNIVER_SHEET']:return SheetCollaborationEntity;default:throw new Error(_0x3ec9b6(0x1d7)+_0x41286b);}}},__name(_a16,'CollaborationController'),_a16);CollaborationController=__decorateClass$b([__decorateParam$b(0x0,Inject(Injector)),__decorateParam$b(0x1,Inject(CollaborationSessionService)),__decorateParam$b(0x2,IUniverInstanceService)],CollaborationController);var __defProp$a=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc$a=Object['getOwnPropertyDescriptor'],__decorateClass$a=__name((_0x127141,_0x53f6ea,_0x228323,_0x3dd26f)=>{for(var _0x4359ad=_0x3dd26f>0x1?void 0x0:_0x3dd26f?__getOwnPropDesc$a(_0x53f6ea,_0x228323):_0x53f6ea,_0x14fe05=_0x127141['length']-0x1,_0x22afba;_0x14fe05>=0x0;_0x14fe05--)(_0x22afba=_0x127141[_0x14fe05])&&(_0x4359ad=(_0x3dd26f?_0x22afba(_0x53f6ea,_0x228323,_0x4359ad):_0x22afba(_0x4359ad))||_0x4359ad);return _0x3dd26f&&_0x4359ad&&__defProp$a(_0x53f6ea,_0x228323,_0x4359ad),_0x4359ad;},_0x43e0c9(0x176)),__decorateParam$a=__name((_0x12cf91,_0x539f04)=>(_0x1ce2db,_0x1bb1cc)=>_0x539f04(_0x1ce2db,_0x1bb1cc,_0x12cf91),_0x43e0c9(0x2e7));const DEFAULT_FILE_NAME_KEY='DEFAULT_FILE_NAME',UNIVER_DEFAULT_FILE_NAME='Univer';var _a17;let FileNameController=(_a17=class extends Disposable{constructor(_0x3f480b,_0x12fbaa){var _0x53145c=_0x43e0c9;super(),this[_0x53145c(0x330)]=_0x3f480b,this[_0x53145c(0x249)]=_0x12fbaa,this[_0x53145c(0x19e)]();}[_0x43e0c9(0x19e)](){var _0x54d547=_0x43e0c9;this[_0x54d547(0x18f)](this[_0x54d547(0x330)]['focused$'][_0x54d547(0x352)](()=>{var _0x514ce1=_0x54d547,_0xb3c60d;const _0x3f5009=this[_0x514ce1(0x330)][_0x514ce1(0x126)]();let _0x1f6bbc=(_0xb3c60d=this[_0x514ce1(0x249)][_0x514ce1(0x15f)](DEFAULT_FILE_NAME_KEY))!=null?_0xb3c60d:UNIVER_DEFAULT_FILE_NAME;_0x3f5009 instanceof Workbook&&(_0x1f6bbc=_0x3f5009[_0x514ce1(0x3e4)]),document[_0x514ce1(0x2c7)]=_0x1f6bbc;}));}},__name(_a17,_0x43e0c9(0x36a)),_a17);FileNameController=__decorateClass$a([__decorateParam$a(0x0,IUniverInstanceService),__decorateParam$a(0x1,IConfigService)],FileNameController);var __defProp$9=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc$9=Object['getOwnPropertyDescriptor'],__decorateClass$9=__name((_0x2fa639,_0x168bee,_0x2d976b,_0x342d9a)=>{for(var _0x3277db=_0x342d9a>0x1?void 0x0:_0x342d9a?__getOwnPropDesc$9(_0x168bee,_0x2d976b):_0x168bee,_0x21365b=_0x2fa639['length']-0x1,_0x237953;_0x21365b>=0x0;_0x21365b--)(_0x237953=_0x2fa639[_0x21365b])&&(_0x3277db=(_0x342d9a?_0x237953(_0x168bee,_0x2d976b,_0x3277db):_0x237953(_0x3277db))||_0x3277db);return _0x342d9a&&_0x3277db&&__defProp$9(_0x168bee,_0x2d976b,_0x3277db),_0x3277db;},'__decorateClass$9'),__decorateParam$9=__name((_0x4e5d7f,_0x33e6c9)=>(_0xc27844,_0x5de7d8)=>_0x33e6c9(_0xc27844,_0x5de7d8,_0x4e5d7f),'__decorateParam$9'),_a18;let AuthServerService=(_a18=class{constructor(_0x31a397,_0x40c85f,_0x118eae){var _0x4df3ab=_0x43e0c9;this[_0x4df3ab(0x249)]=_0x31a397,this[_0x4df3ab(0x141)]=_0x40c85f,this['localeService']=_0x118eae,this[_0x4df3ab(0x21c)]();}[_0x43e0c9(0x21c)](){var _0x2972e2=_0x43e0c9;this[_0x2972e2(0x141)][_0x2972e2(0x16e)]({'priority':0x1,'interceptor':__name((_0x51f040,_0x5550e2)=>_0x5550e2(_0x51f040)[_0x2972e2(0x1f0)](concatMap(async _0x411ad3=>{var _0x5427f5=_0x2972e2;const _0x35f15a=_0x411ad3;if(_0x35f15a[_0x5427f5(0x123)]===0x191){if(typeof window>'u')throw new Error('[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.');if(window[_0x5427f5(0x411)](this[_0x5427f5(0x31e)]['t'](_0x5427f5(0x1cd)))){const _0x15e45b=window[_0x5427f5(0x34b)](window[_0x5427f5(0x121)][_0x5427f5(0x2e2)]);window[_0x5427f5(0x121)][_0x5427f5(0x2e2)]=this[_0x5427f5(0x1dd)]()+_0x5427f5(0x218)+_0x15e45b;}}return _0x35f15a;})),_0x2972e2(0x2d1))});}[_0x43e0c9(0x1dd)](){var _0xb4bc96=_0x43e0c9,_0x129939,_0x12877f;const _0x47ee21=this[_0xb4bc96(0x249)][_0xb4bc96(0x15f)](LOGIN_URL_KEY),_0x417ed8=this[_0xb4bc96(0x249)][_0xb4bc96(0x15f)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x12877f=(_0x129939=_0x417ed8==null?void 0x0:_0x417ed8[_0xb4bc96(0x1bd)])!=null?_0x129939:_0x47ee21)!=null?_0x12877f:DEFAULT_LOGIN_URL;}},__name(_a18,_0x43e0c9(0x3ad)),_a18);AuthServerService=__decorateClass$9([__decorateParam$9(0x0,IConfigService),__decorateParam$9(0x1,Inject(HTTPService)),__decorateParam$9(0x2,Inject(LocaleService))],AuthServerService);var __defProp$8=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc$8=Object[_0x43e0c9(0x33e)],__decorateClass$8=__name((_0x2f91c0,_0x37ccfa,_0x4b113b,_0x550c0e)=>{var _0x1356ce=_0x43e0c9;for(var _0x4b446e=_0x550c0e>0x1?void 0x0:_0x550c0e?__getOwnPropDesc$8(_0x37ccfa,_0x4b113b):_0x37ccfa,_0x4334e3=_0x2f91c0[_0x1356ce(0x233)]-0x1,_0x8f41fe;_0x4334e3>=0x0;_0x4334e3--)(_0x8f41fe=_0x2f91c0[_0x4334e3])&&(_0x4b446e=(_0x550c0e?_0x8f41fe(_0x37ccfa,_0x4b113b,_0x4b446e):_0x8f41fe(_0x4b446e))||_0x4b446e);return _0x550c0e&&_0x4b446e&&__defProp$8(_0x37ccfa,_0x4b113b,_0x4b446e),_0x4b446e;},_0x43e0c9(0x1d9)),__decorateParam$8=__name((_0x1db054,_0x44fdf2)=>(_0x36f2a4,_0xf2dda7)=>_0x44fdf2(_0x36f2a4,_0xf2dda7,_0x1db054),_0x43e0c9(0x182));const AUTHZ_URL_KEY=_0x43e0c9(0x294),DEFAULT_AUTHZ_URL_KEY$1=_0x43e0c9(0x2d4);var _a19;let AuthzIoHttpService=(_a19=class extends Disposable{constructor(_0x1f0115,_0x18399d){var _0x42f6c1=_0x43e0c9;super(),this[_0x42f6c1(0x1b7)]=_0x1f0115,this[_0x42f6c1(0x249)]=_0x18399d,this[_0x42f6c1(0x21b)]();}[_0x43e0c9(0x21b)](){var _0x1ebc8f=_0x43e0c9;const _0x13f688=this;this[_0x1ebc8f(0x18f)](this['_HTTPService'][_0x1ebc8f(0x16e)]({'priority':0x3e7,'interceptor':MergeInterceptorFactory({'isMatch'(_0x11e301){var _0x2d5265=_0x1ebc8f,_0x4f41d7;if(_0x11e301[_0x2d5265(0x433)]===_0x2d5265(0x12c)&&((_0x4f41d7=_0x11e301['requestParams'])!=null&&_0x4f41d7[_0x2d5265(0x415)])){const {objectID:_0x28029b,objectType:_0x4dc6ce}=_0x11e301[_0x2d5265(0x2e3)][_0x2d5265(0x415)]||{};if(!_0x28029b||_0x4dc6ce===void 0x0)return!0x1;const _0x2c917c=_0x13f688[_0x2d5265(0x323)]()+'/'+_0x4dc6ce+_0x2d5265(0x13a)+_0x28029b+_0x2d5265(0x178);if(_0x11e301[_0x2d5265(0x24e)]===_0x2c917c)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x16377b){var _0x912b34=_0x1ebc8f,_0x16148e;return(_0x16148e=_0x16377b[_0x912b34(0x2e3)])==null?void 0x0:_0x16148e[_0x912b34(0x415)];},'mergeParamsToRequest'(_0x3939bd,_0x30c01c){var _0x5724b1=_0x1ebc8f;const _0x5b55cc=_0x13f688[_0x5724b1(0x323)]()+_0x5724b1(0x1db),_0x3f318e=_0x3939bd['reduce']((_0x2c7c82,_0x4251bf)=>{var _0x4da031=_0x5724b1;const {unitID:_0x25e869,objectID:_0x28fadd,objectType:_0x402fd6,actions:_0x34cc03}=_0x4251bf;return _0x2c7c82[_0x25e869]||(_0x2c7c82[_0x25e869]={}),_0x2c7c82[_0x25e869][_0x28fadd]||(_0x2c7c82[_0x25e869][_0x28fadd]={'objectID':_0x28fadd,'objectType':_0x402fd6,'actions':[]}),_0x2c7c82[_0x25e869][_0x28fadd][_0x4da031(0x146)][_0x4da031(0x119)](..._0x34cc03),_0x2c7c82;},{}),_0x366b2f=[];for(const _0x46de5f in _0x3f318e)for(const _0x38a4fc in _0x3f318e[_0x46de5f]){const {actions:_0x30147b,objectType:_0x20ee60}=_0x3f318e[_0x46de5f][_0x38a4fc],_0x182813=[...new Set(_0x30147b)];_0x366b2f[_0x5724b1(0x119)]({'unitID':_0x46de5f,'objectID':_0x38a4fc,'objectType':_0x20ee60,'actions':_0x182813});}return new HTTPRequest(_0x5724b1(0x12c),_0x5b55cc,{'headers':_0x30c01c[_0x5724b1(0x113)],'withCredentials':_0x30c01c[_0x5724b1(0x3ed)],'responseType':_0x30c01c[_0x5724b1(0x177)],'body':{'requests':_0x366b2f}});}},{'distributeResult'(_0x334824,_0x4dd679){var _0x3f65fa=_0x1ebc8f;const {objectActions:_0x499371}=_0x334824;return _0x4dd679[_0x3f65fa(0x12e)](_0x3ddeae=>{var _0x16e552=_0x3f65fa;const {unitID:_0xe855f9,objectID:_0x54ecce,actions:_0x20a281}=_0x3ddeae,_0x106822=_0x499371['find'](_0x14fae2=>_0x14fae2['unitID']===_0xe855f9&&_0x14fae2[_0x16e552(0x394)]===_0x54ecce),_0x2bfdee=_0x20a281[_0x16e552(0x12e)](_0x408441=>_0x106822==null?void 0x0:_0x106822[_0x16e552(0x146)]['find'](_0x403e70=>_0x403e70['action']===_0x408441))['filter'](_0x47bb9d=>!!_0x47bb9d);return{'config':_0x3ddeae,'result':{'actions':_0x2bfdee,'error':_0x334824[_0x16e552(0x1c8)]}};});}})}));}[_0x43e0c9(0x323)](){var _0x509d8f=_0x43e0c9,_0x238d6c,_0x38d38a;const _0x51f600=this[_0x509d8f(0x249)][_0x509d8f(0x15f)](AUTHZ_URL_KEY),_0x54482a=this[_0x509d8f(0x249)][_0x509d8f(0x15f)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x38d38a=(_0x238d6c=_0x54482a==null?void 0x0:_0x54482a[_0x509d8f(0x3af)])!=null?_0x238d6c:_0x51f600)!=null?_0x38d38a:DEFAULT_AUTHZ_URL_KEY$1;}async['create'](_0x400433){var _0x248724=_0x43e0c9;const _0x46d4aa=this[_0x248724(0x323)]()+'/'+_0x400433['objectType']+_0x248724(0x1b6);return(await this[_0x248724(0x1b7)][_0x248724(0x43e)](_0x46d4aa,{'body':_0x400433}))[_0x248724(0x415)]['objectID']||'';}async['list'](_0x34cf12){var _0xd0d9aa=_0x43e0c9;const _0x1d70dd=this[_0xd0d9aa(0x323)]()+_0xd0d9aa(0x114);return(await this[_0xd0d9aa(0x1b7)][_0xd0d9aa(0x43e)](_0x1d70dd,{'body':_0x34cf12}))[_0xd0d9aa(0x415)][_0xd0d9aa(0x423)];}async[_0x43e0c9(0x349)](_0x21faf9){var _0x192043=_0x43e0c9;const _0x31ad34=this[_0x192043(0x323)]()+'/'+_0x21faf9[_0x192043(0x303)]+'/object/'+_0x21faf9[_0x192043(0x394)];await this['_HTTPService'][_0x192043(0x1ac)](_0x31ad34,{'body':_0x21faf9});}async[_0x43e0c9(0x386)](_0x577017){var _0x5942cf=_0x43e0c9;const _0xbc8598=this[_0x5942cf(0x323)]()+'/'+_0x577017[_0x5942cf(0x303)]+_0x5942cf(0x13a)+_0x577017[_0x5942cf(0x394)]+'/allowed';return(await this[_0x5942cf(0x1b7)][_0x5942cf(0x43e)](_0xbc8598,{'body':_0x577017}))[_0x5942cf(0x415)]['actions'];}async[_0x43e0c9(0x422)](_0x1d83e4){var _0xa2bd93=_0x43e0c9;const _0x1a2a47=this[_0xa2bd93(0x323)]()+_0xa2bd93(0x1db);return(await this['_HTTPService'][_0xa2bd93(0x43e)](_0x1a2a47,{'body':{'requests':_0x1d83e4}}))[_0xa2bd93(0x415)][_0xa2bd93(0x266)];}async[_0x43e0c9(0x317)](_0x3a6d82){var _0x4689a3=_0x43e0c9;const _0x2f91a2=this['_getAPIPrefixPath']()+'/'+_0x3a6d82[_0x4689a3(0x303)]+_0x4689a3(0x160),_0x2d4b68=await this[_0x4689a3(0x1b7)]['post'](_0x2f91a2,{'body':_0x3a6d82});return{'roles':_0x2d4b68[_0x4689a3(0x415)][_0x4689a3(0x144)],'actions':_0x2d4b68[_0x4689a3(0x415)][_0x4689a3(0x146)]};}async[_0x43e0c9(0x26c)](_0xa56cdb){var _0x3266fa=_0x43e0c9;const _0x122c02=this[_0x3266fa(0x323)]()+'/collaborator';await this[_0x3266fa(0x1b7)][_0x3266fa(0x36b)](_0x122c02,{'params':{'collaboratorID':_0xa56cdb[_0x3266fa(0x3a0)],'objectID':_0xa56cdb[_0x3266fa(0x394)],'unitID':_0xa56cdb[_0x3266fa(0x442)]}});}async[_0x43e0c9(0x235)](_0x347163){var _0x1d96ae=_0x43e0c9;const _0x198a1b=this[_0x1d96ae(0x323)]()+_0x1d96ae(0x2ad);await this[_0x1d96ae(0x1b7)][_0x1d96ae(0x200)](_0x198a1b,{'body':_0x347163});}async[_0x43e0c9(0x22f)](_0x365cfe){var _0x5de9d2=_0x43e0c9;const _0x2a7a22=this['_getAPIPrefixPath']()+_0x5de9d2(0x2ad);await this[_0x5de9d2(0x1b7)][_0x5de9d2(0x43e)](_0x2a7a22,{'body':_0x365cfe});}async[_0x43e0c9(0x25a)](_0xa8c608){var _0x562183=_0x43e0c9;const _0x5aa4f3=this['_getAPIPrefixPath']()+_0x562183(0x2ad);return(await this[_0x562183(0x1b7)][_0x562183(0x1c2)](_0x5aa4f3,{'params':{'objectID':_0xa8c608[_0x562183(0x394)],'unitID':_0xa8c608[_0x562183(0x442)]}}))[_0x562183(0x415)][_0x562183(0x2eb)];}async['putCollaborators'](_0x3b23be){var _0x205327=_0x43e0c9;const _0x54022c=this[_0x205327(0x323)]()+_0x205327(0x2ad);await this['_HTTPService']['put'](_0x54022c,{'body':_0x3b23be});}},__name(_a19,_0x43e0c9(0x3fb)),_a19);AuthzIoHttpService=__decorateClass$8([__decorateParam$8(0x0,Inject(HTTPService)),__decorateParam$8(0x1,Inject(IConfigService))],AuthzIoHttpService);var commonjsGlobal=typeof globalThis<'u'?globalThis:typeof window<'u'?window:typeof global<'u'?global:typeof self<'u'?self:{};function getDefaultExportFromCjs(_0x2dc769){var _0x5d5912=_0x43e0c9;return _0x2dc769&&_0x2dc769[_0x5d5912(0x40d)]&&Object['prototype']['hasOwnProperty'][_0x5d5912(0x314)](_0x2dc769,_0x5d5912(0x110))?_0x2dc769['default']:_0x2dc769;}__name(getDefaultExportFromCjs,'getDefaultExportFromCjs');var aes$1={'exports':{}};function commonjsRequire(_0x5cac79){var _0x375efb=_0x43e0c9;throw new Error(_0x375efb(0x28c)+_0x5cac79+'\x22.\x20Please\x20configure\x20the\x20dynamicRequireTargets\x20or/and\x20ignoreDynamicRequires\x20option\x20of\x20@rollup/plugin-commonjs\x20appropriately\x20for\x20this\x20require\x20call\x20to\x20work.');}__name(commonjsRequire,_0x43e0c9(0x25c));var core$1={'exports':{}},core=core$1[_0x43e0c9(0x2c9)],hasRequiredCore;function requireCore(){var _0xecaa11=_0x43e0c9;return hasRequiredCore||(hasRequiredCore=0x1,function(_0x94815f,_0x2e6cd7){(function(_0x5816af,_0x1a07cb){var _0x3d1023=_0x5029;_0x94815f[_0x3d1023(0x2c9)]=_0x1a07cb();}(core,function(){var _0x367ff4=_0x367ff4||function(_0x24dcbc,_0x138ec0){var _0x19d587=_0x5029,_0xe6b931;if(typeof window<'u'&&window[_0x19d587(0x1da)]&&(_0xe6b931=window[_0x19d587(0x1da)]),typeof self<'u'&&self[_0x19d587(0x1da)]&&(_0xe6b931=self[_0x19d587(0x1da)]),typeof globalThis<'u'&&globalThis['crypto']&&(_0xe6b931=globalThis[_0x19d587(0x1da)]),!_0xe6b931&&typeof window<'u'&&window[_0x19d587(0x2cf)]&&(_0xe6b931=window['msCrypto']),!_0xe6b931&&typeof commonjsGlobal<'u'&&commonjsGlobal[_0x19d587(0x1da)]&&(_0xe6b931=commonjsGlobal[_0x19d587(0x1da)]),!_0xe6b931&&typeof commonjsRequire==_0x19d587(0x3e7))try{_0xe6b931=require(_0x19d587(0x1da));}catch{}var _0x577a53=__name(function(){var _0xbe9997=_0x19d587;if(_0xe6b931){if(typeof _0xe6b931[_0xbe9997(0x2b7)]=='function')try{return _0xe6b931[_0xbe9997(0x2b7)](new Uint32Array(0x1))[0x0];}catch{}if(typeof _0xe6b931['randomBytes']=='function')try{return _0xe6b931[_0xbe9997(0x2b0)](0x4)[_0xbe9997(0x416)]();}catch{}}throw new Error(_0xbe9997(0x41a));},_0x19d587(0x2c3)),_0x167de8=Object[_0x19d587(0x33c)]||(function(){function _0x42d56a(){}return __name(_0x42d56a,'F'),function(_0x144b9d){var _0xd2dc61=_0x5029,_0x120495;return _0x42d56a[_0xd2dc61(0x145)]=_0x144b9d,_0x120495=new _0x42d56a(),_0x42d56a[_0xd2dc61(0x145)]=null,_0x120495;};}()),_0x4ec1ea={},_0x36d575=_0x4ec1ea[_0x19d587(0x2f7)]={},_0x61391d=_0x36d575[_0x19d587(0x312)]=(function(){var _0x37c50c=_0x19d587;return{'extend':__name(function(_0x35ef3f){var _0x5629ff=_0x5029,_0x34221f=_0x167de8(this);return _0x35ef3f&&_0x34221f[_0x5629ff(0x16d)](_0x35ef3f),(!_0x34221f[_0x5629ff(0x3ec)](_0x5629ff(0x21c))||this['init']===_0x34221f[_0x5629ff(0x21c)])&&(_0x34221f[_0x5629ff(0x21c)]=function(){var _0x3f6373=_0x5629ff;_0x34221f[_0x3f6373(0x1e4)][_0x3f6373(0x21c)][_0x3f6373(0x2ba)](this,arguments);}),_0x34221f[_0x5629ff(0x21c)][_0x5629ff(0x145)]=_0x34221f,_0x34221f[_0x5629ff(0x1e4)]=this,_0x34221f;},_0x37c50c(0x10a)),'create':__name(function(){var _0x3a1396=_0x37c50c,_0x561691=this['extend']();return _0x561691[_0x3a1396(0x21c)][_0x3a1396(0x2ba)](_0x561691,arguments),_0x561691;},_0x37c50c(0x33c)),'init':__name(function(){},'init'),'mixIn':__name(function(_0x580397){var _0x4f37c8=_0x37c50c;for(var _0x50b252 in _0x580397)_0x580397[_0x4f37c8(0x3ec)](_0x50b252)&&(this[_0x50b252]=_0x580397[_0x50b252]);_0x580397[_0x4f37c8(0x3ec)]('toString')&&(this['toString']=_0x580397[_0x4f37c8(0x22b)]);},_0x37c50c(0x16d)),'clone':__name(function(){var _0x273b40=_0x37c50c;return this[_0x273b40(0x21c)][_0x273b40(0x145)][_0x273b40(0x10a)](this);},_0x37c50c(0x383))};}()),_0x5d0d36=_0x36d575['WordArray']=_0x61391d['extend']({'init':__name(function(_0x1c75d2,_0x4bec66){var _0x518be6=_0x19d587;_0x1c75d2=this[_0x518be6(0x3b2)]=_0x1c75d2||[],_0x4bec66!=_0x138ec0?this[_0x518be6(0x3bb)]=_0x4bec66:this[_0x518be6(0x3bb)]=_0x1c75d2[_0x518be6(0x233)]*0x4;},'init'),'toString':__name(function(_0x566257){var _0x49df5b=_0x19d587;return(_0x566257||_0x3d394f)[_0x49df5b(0xff)](this);},'toString'),'concat':__name(function(_0x5bb6a8){var _0x286d0c=_0x19d587,_0x210558=this[_0x286d0c(0x3b2)],_0xa4099e=_0x5bb6a8['words'],_0x6c2c71=this[_0x286d0c(0x3bb)],_0x4b3933=_0x5bb6a8[_0x286d0c(0x3bb)];if(this[_0x286d0c(0x154)](),_0x6c2c71%0x4)for(var _0x2c6fd1=0x0;_0x2c6fd1<_0x4b3933;_0x2c6fd1++){var _0x45a0e4=_0xa4099e[_0x2c6fd1>>>0x2]>>>0x18-_0x2c6fd1%0x4*0x8&0xff;_0x210558[_0x6c2c71+_0x2c6fd1>>>0x2]|=_0x45a0e4<<0x18-(_0x6c2c71+_0x2c6fd1)%0x4*0x8;}else{for(var _0x390c5e=0x0;_0x390c5e<_0x4b3933;_0x390c5e+=0x4)_0x210558[_0x6c2c71+_0x390c5e>>>0x2]=_0xa4099e[_0x390c5e>>>0x2];}return this[_0x286d0c(0x3bb)]+=_0x4b3933,this;},_0x19d587(0x354)),'clamp':__name(function(){var _0x158898=_0x19d587,_0x4b38ed=this[_0x158898(0x3b2)],_0x2d9b50=this['sigBytes'];_0x4b38ed[_0x2d9b50>>>0x2]&=0xffffffff<<0x20-_0x2d9b50%0x4*0x8,_0x4b38ed[_0x158898(0x233)]=_0x24dcbc[_0x158898(0x381)](_0x2d9b50/0x4);},'clamp'),'clone':__name(function(){var _0x5063b8=_0x19d587,_0x2fde9e=_0x61391d['clone']['call'](this);return _0x2fde9e[_0x5063b8(0x3b2)]=this[_0x5063b8(0x3b2)]['slice'](0x0),_0x2fde9e;},_0x19d587(0x383)),'random':__name(function(_0x91d187){var _0x1f9136=_0x19d587;for(var _0x22c51e=[],_0x532c51=0x0;_0x532c51<_0x91d187;_0x532c51+=0x4)_0x22c51e[_0x1f9136(0x119)](_0x577a53());return new _0x5d0d36[(_0x1f9136(0x21c))](_0x22c51e,_0x91d187);},_0x19d587(0x22d))}),_0x3006af=_0x4ec1ea[_0x19d587(0x316)]={},_0x3d394f=_0x3006af[_0x19d587(0x2a2)]={'stringify':__name(function(_0x36d853){var _0x46b9f9=_0x19d587;for(var _0x12a13b=_0x36d853[_0x46b9f9(0x3b2)],_0xaa9f3=_0x36d853[_0x46b9f9(0x3bb)],_0x1d30ca=[],_0x5ced6c=0x0;_0x5ced6c<_0xaa9f3;_0x5ced6c++){var _0x4225db=_0x12a13b[_0x5ced6c>>>0x2]>>>0x18-_0x5ced6c%0x4*0x8&0xff;_0x1d30ca[_0x46b9f9(0x119)]((_0x4225db>>>0x4)[_0x46b9f9(0x22b)](0x10)),_0x1d30ca[_0x46b9f9(0x119)]((_0x4225db&0xf)[_0x46b9f9(0x22b)](0x10));}return _0x1d30ca[_0x46b9f9(0x282)]('');},_0x19d587(0xff)),'parse':__name(function(_0x31a8b0){var _0x4ad14b=_0x19d587;for(var _0x24affc=_0x31a8b0['length'],_0x331b66=[],_0x549554=0x0;_0x549554<_0x24affc;_0x549554+=0x2)_0x331b66[_0x549554>>>0x3]|=parseInt(_0x31a8b0[_0x4ad14b(0x29d)](_0x549554,0x2),0x10)<<0x18-_0x549554%0x8*0x4;return new _0x5d0d36['init'](_0x331b66,_0x24affc/0x2);},_0x19d587(0x3eb))},_0xf9ecf5=_0x3006af[_0x19d587(0x3f1)]={'stringify':__name(function(_0x42788d){var _0x40b4e8=_0x19d587;for(var _0x5cc32b=_0x42788d['words'],_0x264e2e=_0x42788d[_0x40b4e8(0x3bb)],_0x5e3081=[],_0x504eae=0x0;_0x504eae<_0x264e2e;_0x504eae++){var _0x5a570c=_0x5cc32b[_0x504eae>>>0x2]>>>0x18-_0x504eae%0x4*0x8&0xff;_0x5e3081[_0x40b4e8(0x119)](String[_0x40b4e8(0x315)](_0x5a570c));}return _0x5e3081[_0x40b4e8(0x282)]('');},_0x19d587(0xff)),'parse':__name(function(_0x52d631){var _0x38382b=_0x19d587;for(var _0x544733=_0x52d631[_0x38382b(0x233)],_0x1d4577=[],_0x577643=0x0;_0x577643<_0x544733;_0x577643++)_0x1d4577[_0x577643>>>0x2]|=(_0x52d631[_0x38382b(0x2f3)](_0x577643)&0xff)<<0x18-_0x577643%0x4*0x8;return new _0x5d0d36[(_0x38382b(0x21c))](_0x1d4577,_0x544733);},_0x19d587(0x3eb))},_0x1e5371=_0x3006af[_0x19d587(0x3fa)]={'stringify':__name(function(_0x57868a){var _0x28635e=_0x19d587;try{return decodeURIComponent(escape(_0xf9ecf5[_0x28635e(0xff)](_0x57868a)));}catch{throw new Error(_0x28635e(0x23d));}},_0x19d587(0xff)),'parse':__name(function(_0x3ea40d){var _0x1b50c4=_0x19d587;return _0xf9ecf5[_0x1b50c4(0x3eb)](unescape(encodeURIComponent(_0x3ea40d)));},_0x19d587(0x3eb))},_0x221bc2=_0x36d575[_0x19d587(0x447)]=_0x61391d[_0x19d587(0x10a)]({'reset':__name(function(){var _0x67cfbf=_0x19d587;this['_data']=new _0x5d0d36['init'](),this[_0x67cfbf(0x30b)]=0x0;},_0x19d587(0x2cd)),'_append':__name(function(_0x156ae1){var _0x2aa7bd=_0x19d587;typeof _0x156ae1=='string'&&(_0x156ae1=_0x1e5371['parse'](_0x156ae1)),this['_data'][_0x2aa7bd(0x354)](_0x156ae1),this[_0x2aa7bd(0x30b)]+=_0x156ae1[_0x2aa7bd(0x3bb)];},_0x19d587(0x100)),'_process':__name(function(_0x308f5b){var _0x14963e=_0x19d587,_0x50ecba,_0x41dd5b=this[_0x14963e(0x27e)],_0x43d3bc=_0x41dd5b[_0x14963e(0x3b2)],_0x4a96bb=_0x41dd5b[_0x14963e(0x3bb)],_0x32ad96=this['blockSize'],_0x334780=_0x32ad96*0x4,_0x2d252c=_0x4a96bb/_0x334780;_0x308f5b?_0x2d252c=_0x24dcbc['ceil'](_0x2d252c):_0x2d252c=_0x24dcbc['max']((_0x2d252c|0x0)-this[_0x14963e(0x131)],0x0);var _0x3ca171=_0x2d252c*_0x32ad96,_0x8c004e=_0x24dcbc[_0x14963e(0x105)](_0x3ca171*0x4,_0x4a96bb);if(_0x3ca171){for(var _0x15a803=0x0;_0x15a803<_0x3ca171;_0x15a803+=_0x32ad96)this[_0x14963e(0x106)](_0x43d3bc,_0x15a803);_0x50ecba=_0x43d3bc[_0x14963e(0x414)](0x0,_0x3ca171),_0x41dd5b[_0x14963e(0x3bb)]-=_0x8c004e;}return new _0x5d0d36['init'](_0x50ecba,_0x8c004e);},'_process'),'clone':__name(function(){var _0x188ade=_0x19d587,_0xc35d91=_0x61391d[_0x188ade(0x383)][_0x188ade(0x314)](this);return _0xc35d91[_0x188ade(0x27e)]=this[_0x188ade(0x27e)][_0x188ade(0x383)](),_0xc35d91;},_0x19d587(0x383)),'_minBufferSize':0x0});_0x36d575[_0x19d587(0x3cc)]=_0x221bc2['extend']({'cfg':_0x61391d['extend'](),'init':__name(function(_0x302976){var _0xd16420=_0x19d587;this[_0xd16420(0x2fa)]=this[_0xd16420(0x2fa)][_0xd16420(0x10a)](_0x302976),this[_0xd16420(0x2cd)]();},_0x19d587(0x21c)),'reset':__name(function(){var _0x4859dd=_0x19d587;_0x221bc2[_0x4859dd(0x2cd)][_0x4859dd(0x314)](this),this['_doReset']();},_0x19d587(0x2cd)),'update':__name(function(_0x32dd46){var _0x25c468=_0x19d587;return this['_append'](_0x32dd46),this[_0x25c468(0x33b)](),this;},_0x19d587(0x349)),'finalize':__name(function(_0x270315){var _0x173430=_0x19d587;_0x270315&&this['_append'](_0x270315);var _0x4c6737=this[_0x173430(0x27f)]();return _0x4c6737;},'finalize'),'blockSize':0x10,'_createHelper':__name(function(_0x20391c){return function(_0x26053c,_0x469e51){var _0x5b0270=_0x5029;return new _0x20391c[(_0x5b0270(0x21c))](_0x469e51)[_0x5b0270(0x426)](_0x26053c);};},_0x19d587(0x1e3)),'_createHmacHelper':__name(function(_0x4106ca){return function(_0x4eea35,_0x501008){var _0x21f363=_0x5029;return new _0x1528ad[(_0x21f363(0x17e))][(_0x21f363(0x21c))](_0x4106ca,_0x501008)[_0x21f363(0x426)](_0x4eea35);};},_0x19d587(0x29a))});var _0x1528ad=_0x4ec1ea[_0x19d587(0x2ff)]={};return _0x4ec1ea;}(Math);return _0x367ff4;}));}(core$1)),core$1[_0xecaa11(0x2c9)];}__name(requireCore,_0x43e0c9(0x2d2));var encBase64$1={'exports':{}},encBase64=encBase64$1[_0x43e0c9(0x2c9)],hasRequiredEncBase64;function requireEncBase64(){var _0x2879f7=_0x43e0c9;return hasRequiredEncBase64||(hasRequiredEncBase64=0x1,function(_0xfac425,_0x3c7210){(function(_0x40cb32,_0x16eec7){var _0x4f30fd=_0x5029;_0xfac425[_0x4f30fd(0x2c9)]=_0x16eec7(requireCore());}(encBase64,function(_0x219e9e){var _0x47b5c0=_0x5029;return(function(){var _0x1bd527=_0x5029,_0x2c286b=_0x219e9e,_0x202a12=_0x2c286b[_0x1bd527(0x2f7)],_0x30a91=_0x202a12[_0x1bd527(0x2ce)],_0x522e6e=_0x2c286b[_0x1bd527(0x316)];_0x522e6e[_0x1bd527(0x296)]={'stringify':__name(function(_0x30f89c){var _0x57a741=_0x1bd527,_0x20e59f=_0x30f89c[_0x57a741(0x3b2)],_0x35d747=_0x30f89c[_0x57a741(0x3bb)],_0x208ec3=this['_map'];_0x30f89c[_0x57a741(0x154)]();for(var _0x86b168=[],_0xbf788c=0x0;_0xbf788c<_0x35d747;_0xbf788c+=0x3)for(var _0x4111c1=_0x20e59f[_0xbf788c>>>0x2]>>>0x18-_0xbf788c%0x4*0x8&0xff,_0x42c9e3=_0x20e59f[_0xbf788c+0x1>>>0x2]>>>0x18-(_0xbf788c+0x1)%0x4*0x8&0xff,_0x4eb2e2=_0x20e59f[_0xbf788c+0x2>>>0x2]>>>0x18-(_0xbf788c+0x2)%0x4*0x8&0xff,_0x4ad57f=_0x4111c1<<0x10|_0x42c9e3<<0x8|_0x4eb2e2,_0x3f4bdf=0x0;_0x3f4bdf<0x4&&_0xbf788c+_0x3f4bdf*0.75<_0x35d747;_0x3f4bdf++)_0x86b168[_0x57a741(0x119)](_0x208ec3[_0x57a741(0x2f4)](_0x4ad57f>>>0x6*(0x3-_0x3f4bdf)&0x3f));var _0x10af37=_0x208ec3[_0x57a741(0x2f4)](0x40);if(_0x10af37){for(;_0x86b168['length']%0x4;)_0x86b168['push'](_0x10af37);}return _0x86b168[_0x57a741(0x282)]('');},'stringify'),'parse':__name(function(_0x409308){var _0xf371b2=_0x1bd527,_0x222b54=_0x409308[_0xf371b2(0x233)],_0x286a5f=this[_0xf371b2(0x196)],_0x1acf97=this[_0xf371b2(0x2de)];if(!_0x1acf97){_0x1acf97=this['_reverseMap']=[];for(var _0x572124=0x0;_0x572124<_0x286a5f[_0xf371b2(0x233)];_0x572124++)_0x1acf97[_0x286a5f[_0xf371b2(0x2f3)](_0x572124)]=_0x572124;}var _0x2a9bb3=_0x286a5f['charAt'](0x40);if(_0x2a9bb3){var _0x599c3c=_0x409308[_0xf371b2(0x355)](_0x2a9bb3);_0x599c3c!==-0x1&&(_0x222b54=_0x599c3c);}return _0x21eae0(_0x409308,_0x222b54,_0x1acf97);},'parse'),'_map':_0x1bd527(0x27a)};function _0x21eae0(_0x41c4ad,_0xef34a3,_0x2c3f29){var _0x2105b5=_0x1bd527;for(var _0x3eab8a=[],_0x16fe6f=0x0,_0x54fac8=0x0;_0x54fac8<_0xef34a3;_0x54fac8++)if(_0x54fac8%0x4){var _0x3b5698=_0x2c3f29[_0x41c4ad[_0x2105b5(0x2f3)](_0x54fac8-0x1)]<<_0x54fac8%0x4*0x2,_0x3064d7=_0x2c3f29[_0x41c4ad[_0x2105b5(0x2f3)](_0x54fac8)]>>>0x6-_0x54fac8%0x4*0x2,_0x5a7dfd=_0x3b5698|_0x3064d7;_0x3eab8a[_0x16fe6f>>>0x2]|=_0x5a7dfd<<0x18-_0x16fe6f%0x4*0x8,_0x16fe6f++;}return _0x30a91[_0x2105b5(0x33c)](_0x3eab8a,_0x16fe6f);}__name(_0x21eae0,_0x1bd527(0x388));}()),_0x219e9e[_0x47b5c0(0x316)][_0x47b5c0(0x296)];}));}(encBase64$1)),encBase64$1[_0x2879f7(0x2c9)];}__name(requireEncBase64,'requireEncBase64');var md5$1={'exports':{}},md5=md5$1[_0x43e0c9(0x2c9)],hasRequiredMd5;function requireMd5(){var _0x445232=_0x43e0c9;return hasRequiredMd5||(hasRequiredMd5=0x1,function(_0x1e1932,_0x292453){(function(_0x129e0e,_0x59f8d7){_0x1e1932['exports']=_0x59f8d7(requireCore());}(md5,function(_0x2020db){var _0x5efa8d=_0x5029;return function(_0x5419c2){var _0x137269=_0x5029,_0x1f1dca=_0x2020db,_0x4ce837=_0x1f1dca[_0x137269(0x2f7)],_0x48465c=_0x4ce837[_0x137269(0x2ce)],_0x5f0c68=_0x4ce837['Hasher'],_0x28afeb=_0x1f1dca['algo'],_0x384bf1=[];(function(){var _0x553e17=_0x137269;for(var _0x44b5cb=0x0;_0x44b5cb<0x40;_0x44b5cb++)_0x384bf1[_0x44b5cb]=_0x5419c2[_0x553e17(0x331)](_0x5419c2[_0x553e17(0x1e1)](_0x44b5cb+0x1))*0x100000000|0x0;}());var _0xdb31c5=_0x28afeb['MD5']=_0x5f0c68[_0x137269(0x10a)]({'_doReset':__name(function(){var _0x10f8ce=_0x137269;this['_hash']=new _0x48465c[(_0x10f8ce(0x21c))]([0x67452301,0xefcdab89,0x98badcfe,0x10325476]);},_0x137269(0x142)),'_doProcessBlock':__name(function(_0x2dbf25,_0x4a9f7b){var _0x25cc78=_0x137269;for(var _0x184028=0x0;_0x184028<0x10;_0x184028++){var _0x128f97=_0x4a9f7b+_0x184028,_0x4bcc34=_0x2dbf25[_0x128f97];_0x2dbf25[_0x128f97]=(_0x4bcc34<<0x8|_0x4bcc34>>>0x18)&0xff00ff|(_0x4bcc34<<0x18|_0x4bcc34>>>0x8)&0xff00ff00;}var _0x380b58=this[_0x25cc78(0x2bd)][_0x25cc78(0x3b2)],_0x16049f=_0x2dbf25[_0x4a9f7b+0x0],_0x42ea01=_0x2dbf25[_0x4a9f7b+0x1],_0x426730=_0x2dbf25[_0x4a9f7b+0x2],_0x1fb618=_0x2dbf25[_0x4a9f7b+0x3],_0x36d81c=_0x2dbf25[_0x4a9f7b+0x4],_0x2f0906=_0x2dbf25[_0x4a9f7b+0x5],_0x4431e4=_0x2dbf25[_0x4a9f7b+0x6],_0x4e3b93=_0x2dbf25[_0x4a9f7b+0x7],_0x10a924=_0x2dbf25[_0x4a9f7b+0x8],_0x155f8f=_0x2dbf25[_0x4a9f7b+0x9],_0x140e40=_0x2dbf25[_0x4a9f7b+0xa],_0x3def50=_0x2dbf25[_0x4a9f7b+0xb],_0x3fcead=_0x2dbf25[_0x4a9f7b+0xc],_0x5e9323=_0x2dbf25[_0x4a9f7b+0xd],_0x58db76=_0x2dbf25[_0x4a9f7b+0xe],_0x37fada=_0x2dbf25[_0x4a9f7b+0xf],_0x58593e=_0x380b58[0x0],_0x349c1e=_0x380b58[0x1],_0x3923f9=_0x380b58[0x2],_0x729e76=_0x380b58[0x3];_0x58593e=_0x57e147(_0x58593e,_0x349c1e,_0x3923f9,_0x729e76,_0x16049f,0x7,_0x384bf1[0x0]),_0x729e76=_0x57e147(_0x729e76,_0x58593e,_0x349c1e,_0x3923f9,_0x42ea01,0xc,_0x384bf1[0x1]),_0x3923f9=_0x57e147(_0x3923f9,_0x729e76,_0x58593e,_0x349c1e,_0x426730,0x11,_0x384bf1[0x2]),_0x349c1e=_0x57e147(_0x349c1e,_0x3923f9,_0x729e76,_0x58593e,_0x1fb618,0x16,_0x384bf1[0x3]),_0x58593e=_0x57e147(_0x58593e,_0x349c1e,_0x3923f9,_0x729e76,_0x36d81c,0x7,_0x384bf1[0x4]),_0x729e76=_0x57e147(_0x729e76,_0x58593e,_0x349c1e,_0x3923f9,_0x2f0906,0xc,_0x384bf1[0x5]),_0x3923f9=_0x57e147(_0x3923f9,_0x729e76,_0x58593e,_0x349c1e,_0x4431e4,0x11,_0x384bf1[0x6]),_0x349c1e=_0x57e147(_0x349c1e,_0x3923f9,_0x729e76,_0x58593e,_0x4e3b93,0x16,_0x384bf1[0x7]),_0x58593e=_0x57e147(_0x58593e,_0x349c1e,_0x3923f9,_0x729e76,_0x10a924,0x7,_0x384bf1[0x8]),_0x729e76=_0x57e147(_0x729e76,_0x58593e,_0x349c1e,_0x3923f9,_0x155f8f,0xc,_0x384bf1[0x9]),_0x3923f9=_0x57e147(_0x3923f9,_0x729e76,_0x58593e,_0x349c1e,_0x140e40,0x11,_0x384bf1[0xa]),_0x349c1e=_0x57e147(_0x349c1e,_0x3923f9,_0x729e76,_0x58593e,_0x3def50,0x16,_0x384bf1[0xb]),_0x58593e=_0x57e147(_0x58593e,_0x349c1e,_0x3923f9,_0x729e76,_0x3fcead,0x7,_0x384bf1[0xc]),_0x729e76=_0x57e147(_0x729e76,_0x58593e,_0x349c1e,_0x3923f9,_0x5e9323,0xc,_0x384bf1[0xd]),_0x3923f9=_0x57e147(_0x3923f9,_0x729e76,_0x58593e,_0x349c1e,_0x58db76,0x11,_0x384bf1[0xe]),_0x349c1e=_0x57e147(_0x349c1e,_0x3923f9,_0x729e76,_0x58593e,_0x37fada,0x16,_0x384bf1[0xf]),_0x58593e=_0x21ce6e(_0x58593e,_0x349c1e,_0x3923f9,_0x729e76,_0x42ea01,0x5,_0x384bf1[0x10]),_0x729e76=_0x21ce6e(_0x729e76,_0x58593e,_0x349c1e,_0x3923f9,_0x4431e4,0x9,_0x384bf1[0x11]),_0x3923f9=_0x21ce6e(_0x3923f9,_0x729e76,_0x58593e,_0x349c1e,_0x3def50,0xe,_0x384bf1[0x12]),_0x349c1e=_0x21ce6e(_0x349c1e,_0x3923f9,_0x729e76,_0x58593e,_0x16049f,0x14,_0x384bf1[0x13]),_0x58593e=_0x21ce6e(_0x58593e,_0x349c1e,_0x3923f9,_0x729e76,_0x2f0906,0x5,_0x384bf1[0x14]),_0x729e76=_0x21ce6e(_0x729e76,_0x58593e,_0x349c1e,_0x3923f9,_0x140e40,0x9,_0x384bf1[0x15]),_0x3923f9=_0x21ce6e(_0x3923f9,_0x729e76,_0x58593e,_0x349c1e,_0x37fada,0xe,_0x384bf1[0x16]),_0x349c1e=_0x21ce6e(_0x349c1e,_0x3923f9,_0x729e76,_0x58593e,_0x36d81c,0x14,_0x384bf1[0x17]),_0x58593e=_0x21ce6e(_0x58593e,_0x349c1e,_0x3923f9,_0x729e76,_0x155f8f,0x5,_0x384bf1[0x18]),_0x729e76=_0x21ce6e(_0x729e76,_0x58593e,_0x349c1e,_0x3923f9,_0x58db76,0x9,_0x384bf1[0x19]),_0x3923f9=_0x21ce6e(_0x3923f9,_0x729e76,_0x58593e,_0x349c1e,_0x1fb618,0xe,_0x384bf1[0x1a]),_0x349c1e=_0x21ce6e(_0x349c1e,_0x3923f9,_0x729e76,_0x58593e,_0x10a924,0x14,_0x384bf1[0x1b]),_0x58593e=_0x21ce6e(_0x58593e,_0x349c1e,_0x3923f9,_0x729e76,_0x5e9323,0x5,_0x384bf1[0x1c]),_0x729e76=_0x21ce6e(_0x729e76,_0x58593e,_0x349c1e,_0x3923f9,_0x426730,0x9,_0x384bf1[0x1d]),_0x3923f9=_0x21ce6e(_0x3923f9,_0x729e76,_0x58593e,_0x349c1e,_0x4e3b93,0xe,_0x384bf1[0x1e]),_0x349c1e=_0x21ce6e(_0x349c1e,_0x3923f9,_0x729e76,_0x58593e,_0x3fcead,0x14,_0x384bf1[0x1f]),_0x58593e=_0x58d1b2(_0x58593e,_0x349c1e,_0x3923f9,_0x729e76,_0x2f0906,0x4,_0x384bf1[0x20]),_0x729e76=_0x58d1b2(_0x729e76,_0x58593e,_0x349c1e,_0x3923f9,_0x10a924,0xb,_0x384bf1[0x21]),_0x3923f9=_0x58d1b2(_0x3923f9,_0x729e76,_0x58593e,_0x349c1e,_0x3def50,0x10,_0x384bf1[0x22]),_0x349c1e=_0x58d1b2(_0x349c1e,_0x3923f9,_0x729e76,_0x58593e,_0x58db76,0x17,_0x384bf1[0x23]),_0x58593e=_0x58d1b2(_0x58593e,_0x349c1e,_0x3923f9,_0x729e76,_0x42ea01,0x4,_0x384bf1[0x24]),_0x729e76=_0x58d1b2(_0x729e76,_0x58593e,_0x349c1e,_0x3923f9,_0x36d81c,0xb,_0x384bf1[0x25]),_0x3923f9=_0x58d1b2(_0x3923f9,_0x729e76,_0x58593e,_0x349c1e,_0x4e3b93,0x10,_0x384bf1[0x26]),_0x349c1e=_0x58d1b2(_0x349c1e,_0x3923f9,_0x729e76,_0x58593e,_0x140e40,0x17,_0x384bf1[0x27]),_0x58593e=_0x58d1b2(_0x58593e,_0x349c1e,_0x3923f9,_0x729e76,_0x5e9323,0x4,_0x384bf1[0x28]),_0x729e76=_0x58d1b2(_0x729e76,_0x58593e,_0x349c1e,_0x3923f9,_0x16049f,0xb,_0x384bf1[0x29]),_0x3923f9=_0x58d1b2(_0x3923f9,_0x729e76,_0x58593e,_0x349c1e,_0x1fb618,0x10,_0x384bf1[0x2a]),_0x349c1e=_0x58d1b2(_0x349c1e,_0x3923f9,_0x729e76,_0x58593e,_0x4431e4,0x17,_0x384bf1[0x2b]),_0x58593e=_0x58d1b2(_0x58593e,_0x349c1e,_0x3923f9,_0x729e76,_0x155f8f,0x4,_0x384bf1[0x2c]),_0x729e76=_0x58d1b2(_0x729e76,_0x58593e,_0x349c1e,_0x3923f9,_0x3fcead,0xb,_0x384bf1[0x2d]),_0x3923f9=_0x58d1b2(_0x3923f9,_0x729e76,_0x58593e,_0x349c1e,_0x37fada,0x10,_0x384bf1[0x2e]),_0x349c1e=_0x58d1b2(_0x349c1e,_0x3923f9,_0x729e76,_0x58593e,_0x426730,0x17,_0x384bf1[0x2f]),_0x58593e=_0x15253a(_0x58593e,_0x349c1e,_0x3923f9,_0x729e76,_0x16049f,0x6,_0x384bf1[0x30]),_0x729e76=_0x15253a(_0x729e76,_0x58593e,_0x349c1e,_0x3923f9,_0x4e3b93,0xa,_0x384bf1[0x31]),_0x3923f9=_0x15253a(_0x3923f9,_0x729e76,_0x58593e,_0x349c1e,_0x58db76,0xf,_0x384bf1[0x32]),_0x349c1e=_0x15253a(_0x349c1e,_0x3923f9,_0x729e76,_0x58593e,_0x2f0906,0x15,_0x384bf1[0x33]),_0x58593e=_0x15253a(_0x58593e,_0x349c1e,_0x3923f9,_0x729e76,_0x3fcead,0x6,_0x384bf1[0x34]),_0x729e76=_0x15253a(_0x729e76,_0x58593e,_0x349c1e,_0x3923f9,_0x1fb618,0xa,_0x384bf1[0x35]),_0x3923f9=_0x15253a(_0x3923f9,_0x729e76,_0x58593e,_0x349c1e,_0x140e40,0xf,_0x384bf1[0x36]),_0x349c1e=_0x15253a(_0x349c1e,_0x3923f9,_0x729e76,_0x58593e,_0x42ea01,0x15,_0x384bf1[0x37]),_0x58593e=_0x15253a(_0x58593e,_0x349c1e,_0x3923f9,_0x729e76,_0x10a924,0x6,_0x384bf1[0x38]),_0x729e76=_0x15253a(_0x729e76,_0x58593e,_0x349c1e,_0x3923f9,_0x37fada,0xa,_0x384bf1[0x39]),_0x3923f9=_0x15253a(_0x3923f9,_0x729e76,_0x58593e,_0x349c1e,_0x4431e4,0xf,_0x384bf1[0x3a]),_0x349c1e=_0x15253a(_0x349c1e,_0x3923f9,_0x729e76,_0x58593e,_0x5e9323,0x15,_0x384bf1[0x3b]),_0x58593e=_0x15253a(_0x58593e,_0x349c1e,_0x3923f9,_0x729e76,_0x36d81c,0x6,_0x384bf1[0x3c]),_0x729e76=_0x15253a(_0x729e76,_0x58593e,_0x349c1e,_0x3923f9,_0x3def50,0xa,_0x384bf1[0x3d]),_0x3923f9=_0x15253a(_0x3923f9,_0x729e76,_0x58593e,_0x349c1e,_0x426730,0xf,_0x384bf1[0x3e]),_0x349c1e=_0x15253a(_0x349c1e,_0x3923f9,_0x729e76,_0x58593e,_0x155f8f,0x15,_0x384bf1[0x3f]),_0x380b58[0x0]=_0x380b58[0x0]+_0x58593e|0x0,_0x380b58[0x1]=_0x380b58[0x1]+_0x349c1e|0x0,_0x380b58[0x2]=_0x380b58[0x2]+_0x3923f9|0x0,_0x380b58[0x3]=_0x380b58[0x3]+_0x729e76|0x0;},'_doProcessBlock'),'_doFinalize':__name(function(){var _0x952705=_0x137269,_0x2d5331=this[_0x952705(0x27e)],_0x5eb53b=_0x2d5331[_0x952705(0x3b2)],_0x3f9c43=this[_0x952705(0x30b)]*0x8,_0xb8d749=_0x2d5331['sigBytes']*0x8;_0x5eb53b[_0xb8d749>>>0x5]|=0x80<<0x18-_0xb8d749%0x20;var _0x2bf46a=_0x5419c2[_0x952705(0x2b2)](_0x3f9c43/0x100000000),_0x3c0f1a=_0x3f9c43;_0x5eb53b[(_0xb8d749+0x40>>>0x9<<0x4)+0xf]=(_0x2bf46a<<0x8|_0x2bf46a>>>0x18)&0xff00ff|(_0x2bf46a<<0x18|_0x2bf46a>>>0x8)&0xff00ff00,_0x5eb53b[(_0xb8d749+0x40>>>0x9<<0x4)+0xe]=(_0x3c0f1a<<0x8|_0x3c0f1a>>>0x18)&0xff00ff|(_0x3c0f1a<<0x18|_0x3c0f1a>>>0x8)&0xff00ff00,_0x2d5331[_0x952705(0x3bb)]=(_0x5eb53b[_0x952705(0x233)]+0x1)*0x4,this[_0x952705(0x33b)]();for(var _0xacdc83=this[_0x952705(0x2bd)],_0xa36a45=_0xacdc83[_0x952705(0x3b2)],_0x167298=0x0;_0x167298<0x4;_0x167298++){var _0x35b09b=_0xa36a45[_0x167298];_0xa36a45[_0x167298]=(_0x35b09b<<0x8|_0x35b09b>>>0x18)&0xff00ff|(_0x35b09b<<0x18|_0x35b09b>>>0x8)&0xff00ff00;}return _0xacdc83;},_0x137269(0x27f)),'clone':__name(function(){var _0x3a6ebf=_0x137269,_0x25fab5=_0x5f0c68['clone']['call'](this);return _0x25fab5[_0x3a6ebf(0x2bd)]=this[_0x3a6ebf(0x2bd)][_0x3a6ebf(0x383)](),_0x25fab5;},_0x137269(0x383))});function _0x57e147(_0x1bd106,_0x365559,_0x465842,_0x3e6787,_0x1306c5,_0x3465b5,_0xc95ce5){var _0x227b1c=_0x1bd106+(_0x365559&_0x465842|~_0x365559&_0x3e6787)+_0x1306c5+_0xc95ce5;return(_0x227b1c<<_0x3465b5|_0x227b1c>>>0x20-_0x3465b5)+_0x365559;}__name(_0x57e147,'FF');function _0x21ce6e(_0x472a65,_0x4d1550,_0x26caac,_0x39627e,_0x57feb0,_0x696d04,_0x1584a6){var _0x1b31cc=_0x472a65+(_0x4d1550&_0x39627e|_0x26caac&~_0x39627e)+_0x57feb0+_0x1584a6;return(_0x1b31cc<<_0x696d04|_0x1b31cc>>>0x20-_0x696d04)+_0x4d1550;}__name(_0x21ce6e,'GG');function _0x58d1b2(_0x106e87,_0x48632d,_0xf44beb,_0x22b256,_0x1440ad,_0x19dc25,_0x306995){var _0x199a74=_0x106e87+(_0x48632d^_0xf44beb^_0x22b256)+_0x1440ad+_0x306995;return(_0x199a74<<_0x19dc25|_0x199a74>>>0x20-_0x19dc25)+_0x48632d;}__name(_0x58d1b2,'HH');function _0x15253a(_0x2efdc0,_0x1dcb75,_0x1a5515,_0x3f3039,_0x194f69,_0x109c4e,_0x539d1c){var _0x5a8c66=_0x2efdc0+(_0x1a5515^(_0x1dcb75|~_0x3f3039))+_0x194f69+_0x539d1c;return(_0x5a8c66<<_0x109c4e|_0x5a8c66>>>0x20-_0x109c4e)+_0x1dcb75;}__name(_0x15253a,'II'),_0x1f1dca['MD5']=_0x5f0c68[_0x137269(0x1e3)](_0xdb31c5),_0x1f1dca[_0x137269(0x2f8)]=_0x5f0c68['_createHmacHelper'](_0xdb31c5);}(Math),_0x2020db[_0x5efa8d(0x44c)];}));}(md5$1)),md5$1[_0x445232(0x2c9)];}__name(requireMd5,_0x43e0c9(0x357));var evpkdf$1={'exports':{}},sha1$1={'exports':{}},sha1=sha1$1[_0x43e0c9(0x2c9)],hasRequiredSha1;function requireSha1(){var _0x3c54e8=_0x43e0c9;return hasRequiredSha1||(hasRequiredSha1=0x1,function(_0x55526d,_0x391430){(function(_0x246c0f,_0x259e21){var _0x3a3f34=_0x5029;_0x55526d[_0x3a3f34(0x2c9)]=_0x259e21(requireCore());}(sha1,function(_0x40b3a3){var _0x95fc13=_0x5029;return(function(){var _0x161f49=_0x5029,_0x5269ad=_0x40b3a3,_0x3e9c3b=_0x5269ad[_0x161f49(0x2f7)],_0x10b597=_0x3e9c3b[_0x161f49(0x2ce)],_0x5a8718=_0x3e9c3b[_0x161f49(0x3cc)],_0x58cca6=_0x5269ad[_0x161f49(0x2ff)],_0x5d90a5=[],_0x1fc9b5=_0x58cca6[_0x161f49(0x17f)]=_0x5a8718[_0x161f49(0x10a)]({'_doReset':__name(function(){var _0x40b90d=_0x161f49;this[_0x40b90d(0x2bd)]=new _0x10b597[(_0x40b90d(0x21c))]([0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0]);},_0x161f49(0x142)),'_doProcessBlock':__name(function(_0x406dfc,_0x4f1407){var _0x3374ca=_0x161f49;for(var _0x389833=this[_0x3374ca(0x2bd)]['words'],_0x102b83=_0x389833[0x0],_0xb0d0b3=_0x389833[0x1],_0x14e974=_0x389833[0x2],_0x5aac57=_0x389833[0x3],_0x591440=_0x389833[0x4],_0x137158=0x0;_0x137158<0x50;_0x137158++){if(_0x137158<0x10)_0x5d90a5[_0x137158]=_0x406dfc[_0x4f1407+_0x137158]|0x0;else{var _0x4c5098=_0x5d90a5[_0x137158-0x3]^_0x5d90a5[_0x137158-0x8]^_0x5d90a5[_0x137158-0xe]^_0x5d90a5[_0x137158-0x10];_0x5d90a5[_0x137158]=_0x4c5098<<0x1|_0x4c5098>>>0x1f;}var _0x496b24=(_0x102b83<<0x5|_0x102b83>>>0x1b)+_0x591440+_0x5d90a5[_0x137158];_0x137158<0x14?_0x496b24+=(_0xb0d0b3&_0x14e974|~_0xb0d0b3&_0x5aac57)+0x5a827999:_0x137158<0x28?_0x496b24+=(_0xb0d0b3^_0x14e974^_0x5aac57)+0x6ed9eba1:_0x137158<0x3c?_0x496b24+=(_0xb0d0b3&_0x14e974|_0xb0d0b3&_0x5aac57|_0x14e974&_0x5aac57)-0x70e44324:_0x496b24+=(_0xb0d0b3^_0x14e974^_0x5aac57)-0x359d3e2a,_0x591440=_0x5aac57,_0x5aac57=_0x14e974,_0x14e974=_0xb0d0b3<<0x1e|_0xb0d0b3>>>0x2,_0xb0d0b3=_0x102b83,_0x102b83=_0x496b24;}_0x389833[0x0]=_0x389833[0x0]+_0x102b83|0x0,_0x389833[0x1]=_0x389833[0x1]+_0xb0d0b3|0x0,_0x389833[0x2]=_0x389833[0x2]+_0x14e974|0x0,_0x389833[0x3]=_0x389833[0x3]+_0x5aac57|0x0,_0x389833[0x4]=_0x389833[0x4]+_0x591440|0x0;},'_doProcessBlock'),'_doFinalize':__name(function(){var _0x203843=_0x161f49,_0x5e6a2=this[_0x203843(0x27e)],_0x4f74c9=_0x5e6a2[_0x203843(0x3b2)],_0x142288=this[_0x203843(0x30b)]*0x8,_0x1a18dc=_0x5e6a2['sigBytes']*0x8;return _0x4f74c9[_0x1a18dc>>>0x5]|=0x80<<0x18-_0x1a18dc%0x20,_0x4f74c9[(_0x1a18dc+0x40>>>0x9<<0x4)+0xe]=Math[_0x203843(0x2b2)](_0x142288/0x100000000),_0x4f74c9[(_0x1a18dc+0x40>>>0x9<<0x4)+0xf]=_0x142288,_0x5e6a2[_0x203843(0x3bb)]=_0x4f74c9[_0x203843(0x233)]*0x4,this[_0x203843(0x33b)](),this[_0x203843(0x2bd)];},'_doFinalize'),'clone':__name(function(){var _0x289542=_0x161f49,_0x4af0a8=_0x5a8718[_0x289542(0x383)][_0x289542(0x314)](this);return _0x4af0a8[_0x289542(0x2bd)]=this['_hash'][_0x289542(0x383)](),_0x4af0a8;},_0x161f49(0x383))});_0x5269ad[_0x161f49(0x17f)]=_0x5a8718['_createHelper'](_0x1fc9b5),_0x5269ad[_0x161f49(0x356)]=_0x5a8718[_0x161f49(0x29a)](_0x1fc9b5);}()),_0x40b3a3[_0x95fc13(0x17f)];}));}(sha1$1)),sha1$1[_0x3c54e8(0x2c9)];}__name(requireSha1,_0x43e0c9(0x3c5));var hmac$1={'exports':{}},hmac=hmac$1[_0x43e0c9(0x2c9)],hasRequiredHmac;function requireHmac(){var _0xb38622=_0x43e0c9;return hasRequiredHmac||(hasRequiredHmac=0x1,function(_0x37ffda,_0xb3a4b3){(function(_0x1565e4,_0x33d5df){var _0x44e1d1=_0x5029;_0x37ffda[_0x44e1d1(0x2c9)]=_0x33d5df(requireCore());}(hmac,function(_0x23c537){(function(){var _0x2ae2ea=_0x5029,_0x904ef7=_0x23c537,_0x321aa1=_0x904ef7[_0x2ae2ea(0x2f7)],_0x39ce29=_0x321aa1['Base'],_0x264d0d=_0x904ef7[_0x2ae2ea(0x316)],_0x5a5bf4=_0x264d0d[_0x2ae2ea(0x3fa)],_0x3b7c2f=_0x904ef7['algo'];_0x3b7c2f[_0x2ae2ea(0x17e)]=_0x39ce29['extend']({'init':__name(function(_0x1c37a3,_0xa4683d){var _0x11d628=_0x2ae2ea;_0x1c37a3=this[_0x11d628(0x367)]=new _0x1c37a3[(_0x11d628(0x21c))](),typeof _0xa4683d==_0x11d628(0x17a)&&(_0xa4683d=_0x5a5bf4[_0x11d628(0x3eb)](_0xa4683d));var _0x36f11b=_0x1c37a3[_0x11d628(0x30c)],_0x2a9761=_0x36f11b*0x4;_0xa4683d[_0x11d628(0x3bb)]>_0x2a9761&&(_0xa4683d=_0x1c37a3[_0x11d628(0x426)](_0xa4683d)),_0xa4683d[_0x11d628(0x154)]();for(var _0x30a804=this[_0x11d628(0x13b)]=_0xa4683d['clone'](),_0x42b149=this[_0x11d628(0x363)]=_0xa4683d[_0x11d628(0x383)](),_0x381674=_0x30a804[_0x11d628(0x3b2)],_0x46bac0=_0x42b149[_0x11d628(0x3b2)],_0x91a2ce=0x0;_0x91a2ce<_0x36f11b;_0x91a2ce++)_0x381674[_0x91a2ce]^=0x5c5c5c5c,_0x46bac0[_0x91a2ce]^=0x36363636;_0x30a804[_0x11d628(0x3bb)]=_0x42b149[_0x11d628(0x3bb)]=_0x2a9761,this[_0x11d628(0x2cd)]();},_0x2ae2ea(0x21c)),'reset':__name(function(){var _0x1866d5=_0x2ae2ea,_0x1b0ce9=this[_0x1866d5(0x367)];_0x1b0ce9['reset'](),_0x1b0ce9['update'](this[_0x1866d5(0x363)]);},_0x2ae2ea(0x2cd)),'update':__name(function(_0x565ed3){var _0x24d738=_0x2ae2ea;return this[_0x24d738(0x367)]['update'](_0x565ed3),this;},'update'),'finalize':__name(function(_0x44ada6){var _0x1fd4ca=_0x2ae2ea,_0x206700=this[_0x1fd4ca(0x367)],_0x8e5c57=_0x206700[_0x1fd4ca(0x426)](_0x44ada6);_0x206700[_0x1fd4ca(0x2cd)]();var _0x1d53c7=_0x206700[_0x1fd4ca(0x426)](this['_oKey'][_0x1fd4ca(0x383)]()[_0x1fd4ca(0x354)](_0x8e5c57));return _0x1d53c7;},_0x2ae2ea(0x426))});}());}));}(hmac$1)),hmac$1[_0xb38622(0x2c9)];}__name(requireHmac,_0x43e0c9(0x18d));var evpkdf=evpkdf$1[_0x43e0c9(0x2c9)],hasRequiredEvpkdf;function requireEvpkdf(){var _0x4679e4=_0x43e0c9;return hasRequiredEvpkdf||(hasRequiredEvpkdf=0x1,function(_0x393750,_0x4f3c9f){(function(_0x3083be,_0x384378,_0x2acc12){var _0xa64b87=_0x5029;_0x393750[_0xa64b87(0x2c9)]=_0x384378(requireCore(),requireSha1(),requireHmac());}(evpkdf,function(_0x3319de){var _0xb400c0=_0x5029;return(function(){var _0x43116b=_0x5029,_0x571b58=_0x3319de,_0xbadd05=_0x571b58['lib'],_0x356647=_0xbadd05[_0x43116b(0x312)],_0x37fc6d=_0xbadd05[_0x43116b(0x2ce)],_0x30482c=_0x571b58[_0x43116b(0x2ff)],_0x3a34b4=_0x30482c[_0x43116b(0x44c)],_0x5e49be=_0x30482c[_0x43116b(0x231)]=_0x356647[_0x43116b(0x10a)]({'cfg':_0x356647['extend']({'keySize':0x80/0x20,'hasher':_0x3a34b4,'iterations':0x1}),'init':__name(function(_0x3fddab){var _0x280ec3=_0x43116b;this[_0x280ec3(0x2fa)]=this[_0x280ec3(0x2fa)][_0x280ec3(0x10a)](_0x3fddab);},'init'),'compute':__name(function(_0x10ba44,_0x246566){var _0x4a5cdb=_0x43116b;for(var _0x18f605,_0x99abe6=this[_0x4a5cdb(0x2fa)],_0x1076d0=_0x99abe6['hasher'][_0x4a5cdb(0x33c)](),_0x4cc4a4=_0x37fc6d[_0x4a5cdb(0x33c)](),_0xb9bcb=_0x4cc4a4['words'],_0x1f2abe=_0x99abe6[_0x4a5cdb(0x3ff)],_0xbc7f0e=_0x99abe6['iterations'];_0xb9bcb['length']<_0x1f2abe;){_0x18f605&&_0x1076d0[_0x4a5cdb(0x349)](_0x18f605),_0x18f605=_0x1076d0[_0x4a5cdb(0x349)](_0x10ba44)[_0x4a5cdb(0x426)](_0x246566),_0x1076d0[_0x4a5cdb(0x2cd)]();for(var _0x233cb2=0x1;_0x233cb2<_0xbc7f0e;_0x233cb2++)_0x18f605=_0x1076d0[_0x4a5cdb(0x426)](_0x18f605),_0x1076d0[_0x4a5cdb(0x2cd)]();_0x4cc4a4[_0x4a5cdb(0x354)](_0x18f605);}return _0x4cc4a4[_0x4a5cdb(0x3bb)]=_0x1f2abe*0x4,_0x4cc4a4;},_0x43116b(0x1a8))});_0x571b58[_0x43116b(0x231)]=function(_0x5a3938,_0x1de0cd,_0x167312){var _0x1c314d=_0x43116b;return _0x5e49be[_0x1c314d(0x33c)](_0x167312)['compute'](_0x5a3938,_0x1de0cd);};}()),_0x3319de[_0xb400c0(0x231)];}));}(evpkdf$1)),evpkdf$1[_0x4679e4(0x2c9)];}__name(requireEvpkdf,_0x43e0c9(0x24f));var cipherCore$1={'exports':{}},cipherCore=cipherCore$1['exports'],hasRequiredCipherCore;function requireCipherCore(){var _0xcf64f7=_0x43e0c9;return hasRequiredCipherCore||(hasRequiredCipherCore=0x1,function(_0x2d0117,_0x7a49bc){(function(_0x3f2115,_0x3824b1,_0x15947b){var _0x208f0a=_0x5029;_0x2d0117[_0x208f0a(0x2c9)]=_0x3824b1(requireCore(),requireEvpkdf());}(cipherCore,function(_0x2402dd){var _0x13edf3=_0x5029;_0x2402dd['lib'][_0x13edf3(0x3f0)]||function(_0x2d345d){var _0x17668a=_0x13edf3,_0x5ca3e6=_0x2402dd,_0x5c8dd3=_0x5ca3e6[_0x17668a(0x2f7)],_0x2b881c=_0x5c8dd3[_0x17668a(0x312)],_0x1edd3c=_0x5c8dd3['WordArray'],_0x1a7e9c=_0x5c8dd3[_0x17668a(0x447)],_0x2bda69=_0x5ca3e6[_0x17668a(0x316)];_0x2bda69[_0x17668a(0x3fa)];var _0x351f52=_0x2bda69[_0x17668a(0x296)],_0x5f4596=_0x5ca3e6[_0x17668a(0x2ff)],_0x1fcfa9=_0x5f4596[_0x17668a(0x231)],_0x3c5c01=_0x5c8dd3[_0x17668a(0x3f0)]=_0x1a7e9c[_0x17668a(0x10a)]({'cfg':_0x2b881c[_0x17668a(0x10a)](),'createEncryptor':__name(function(_0x1de4b9,_0x322152){var _0x11cb3b=_0x17668a;return this[_0x11cb3b(0x33c)](this[_0x11cb3b(0x2ef)],_0x1de4b9,_0x322152);},_0x17668a(0x166)),'createDecryptor':__name(function(_0x2ba41b,_0xe97da2){var _0x4f85f2=_0x17668a;return this[_0x4f85f2(0x33c)](this[_0x4f85f2(0x34d)],_0x2ba41b,_0xe97da2);},_0x17668a(0x36e)),'init':__name(function(_0x451033,_0x28ab87,_0x2139b8){var _0x1fb672=_0x17668a;this[_0x1fb672(0x2fa)]=this[_0x1fb672(0x2fa)][_0x1fb672(0x10a)](_0x2139b8),this[_0x1fb672(0x351)]=_0x451033,this['_key']=_0x28ab87,this[_0x1fb672(0x2cd)]();},_0x17668a(0x21c)),'reset':__name(function(){var _0x4a8d24=_0x17668a;_0x1a7e9c[_0x4a8d24(0x2cd)]['call'](this),this[_0x4a8d24(0x142)]();},_0x17668a(0x2cd)),'process':__name(function(_0x57a49c){var _0x3bb0af=_0x17668a;return this[_0x3bb0af(0x100)](_0x57a49c),this['_process']();},_0x17668a(0x262)),'finalize':__name(function(_0x2b6f75){var _0x5d9a95=_0x17668a;_0x2b6f75&&this[_0x5d9a95(0x100)](_0x2b6f75);var _0x189b37=this[_0x5d9a95(0x27f)]();return _0x189b37;},_0x17668a(0x426)),'keySize':0x80/0x20,'ivSize':0x80/0x20,'_ENC_XFORM_MODE':0x1,'_DEC_XFORM_MODE':0x2,'_createHelper':(function(){function _0xb35fdc(_0x4c8f15){return typeof _0x4c8f15=='string'?_0x429279:_0x2b2665;}return __name(_0xb35fdc,'selectCipherStrategy'),function(_0x5ab706){var _0x2206b0=_0x5029;return{'encrypt':__name(function(_0x2a90c1,_0x566f6f,_0x35eac6){var _0x1f2d57=_0x5029;return _0xb35fdc(_0x566f6f)[_0x1f2d57(0x353)](_0x5ab706,_0x2a90c1,_0x566f6f,_0x35eac6);},_0x2206b0(0x353)),'decrypt':__name(function(_0xe7a852,_0x301368,_0x917b28){var _0x59b0c4=_0x2206b0;return _0xb35fdc(_0x301368)[_0x59b0c4(0x418)](_0x5ab706,_0xe7a852,_0x301368,_0x917b28);},_0x2206b0(0x418))};};}())});_0x5c8dd3[_0x17668a(0x2c0)]=_0x3c5c01[_0x17668a(0x10a)]({'_doFinalize':__name(function(){var _0x2fdf92=_0x17668a,_0x2ba820=this[_0x2fdf92(0x33b)](!0x0);return _0x2ba820;},'_doFinalize'),'blockSize':0x1});var _0x251c40=_0x5ca3e6[_0x17668a(0x1a6)]={},_0x4cb9cd=_0x5c8dd3[_0x17668a(0x183)]=_0x2b881c[_0x17668a(0x10a)]({'createEncryptor':__name(function(_0x335f81,_0x8e63cf){var _0x429519=_0x17668a;return this[_0x429519(0x276)][_0x429519(0x33c)](_0x335f81,_0x8e63cf);},_0x17668a(0x166)),'createDecryptor':__name(function(_0x55ba8e,_0x2f2d9e){var _0x41a7d2=_0x17668a;return this[_0x41a7d2(0x2a7)][_0x41a7d2(0x33c)](_0x55ba8e,_0x2f2d9e);},_0x17668a(0x36e)),'init':__name(function(_0x92687,_0x293f4f){var _0x72af06=_0x17668a;this['_cipher']=_0x92687,this[_0x72af06(0x1ce)]=_0x293f4f;},_0x17668a(0x21c))}),_0x265a4e=_0x251c40[_0x17668a(0x117)]=(function(){var _0x459d5f=_0x17668a,_0x3372ba=_0x4cb9cd[_0x459d5f(0x10a)]();_0x3372ba[_0x459d5f(0x276)]=_0x3372ba[_0x459d5f(0x10a)]({'processBlock':__name(function(_0x53ab6e,_0x5d5445){var _0x4fc48a=_0x459d5f,_0x54e360=this[_0x4fc48a(0x14e)],_0x414ccd=_0x54e360[_0x4fc48a(0x30c)];_0x29b175[_0x4fc48a(0x314)](this,_0x53ab6e,_0x5d5445,_0x414ccd),_0x54e360[_0x4fc48a(0x377)](_0x53ab6e,_0x5d5445),this[_0x4fc48a(0x15b)]=_0x53ab6e[_0x4fc48a(0x1ea)](_0x5d5445,_0x5d5445+_0x414ccd);},_0x459d5f(0x365))}),_0x3372ba[_0x459d5f(0x2a7)]=_0x3372ba[_0x459d5f(0x10a)]({'processBlock':__name(function(_0x5913ec,_0x1794cc){var _0x32eb9e=_0x459d5f,_0x5894e8=this[_0x32eb9e(0x14e)],_0xe8a9e8=_0x5894e8[_0x32eb9e(0x30c)],_0x52081e=_0x5913ec[_0x32eb9e(0x1ea)](_0x1794cc,_0x1794cc+_0xe8a9e8);_0x5894e8[_0x32eb9e(0x39a)](_0x5913ec,_0x1794cc),_0x29b175[_0x32eb9e(0x314)](this,_0x5913ec,_0x1794cc,_0xe8a9e8),this[_0x32eb9e(0x15b)]=_0x52081e;},_0x459d5f(0x365))});function _0x29b175(_0x48b6c8,_0x22740a,_0x245309){var _0x380f12=_0x459d5f,_0x453dab,_0x68a54b=this[_0x380f12(0x1ce)];_0x68a54b?(_0x453dab=_0x68a54b,this[_0x380f12(0x1ce)]=_0x2d345d):_0x453dab=this[_0x380f12(0x15b)];for(var _0x106adf=0x0;_0x106adf<_0x245309;_0x106adf++)_0x48b6c8[_0x22740a+_0x106adf]^=_0x453dab[_0x106adf];}return __name(_0x29b175,_0x459d5f(0x1ad)),_0x3372ba;}()),_0x427435=_0x5ca3e6[_0x17668a(0x3d2)]={},_0x56b209=_0x427435[_0x17668a(0x3a9)]={'pad':__name(function(_0x13708b,_0x34ffd3){var _0x2912a2=_0x17668a;for(var _0x1eacf1=_0x34ffd3*0x4,_0x30f371=_0x1eacf1-_0x13708b[_0x2912a2(0x3bb)]%_0x1eacf1,_0x2b858a=_0x30f371<<0x18|_0x30f371<<0x10|_0x30f371<<0x8|_0x30f371,_0x4b1ef1=[],_0x384318=0x0;_0x384318<_0x30f371;_0x384318+=0x4)_0x4b1ef1[_0x2912a2(0x119)](_0x2b858a);var _0x22ce6c=_0x1edd3c[_0x2912a2(0x33c)](_0x4b1ef1,_0x30f371);_0x13708b[_0x2912a2(0x354)](_0x22ce6c);},'pad'),'unpad':__name(function(_0x346e89){var _0x439183=_0x17668a,_0xc8c34d=_0x346e89[_0x439183(0x3b2)][_0x346e89['sigBytes']-0x1>>>0x2]&0xff;_0x346e89[_0x439183(0x3bb)]-=_0xc8c34d;},_0x17668a(0x164))};_0x5c8dd3[_0x17668a(0x1f2)]=_0x3c5c01['extend']({'cfg':_0x3c5c01[_0x17668a(0x2fa)][_0x17668a(0x10a)]({'mode':_0x265a4e,'padding':_0x56b209}),'reset':__name(function(){var _0x456df5=_0x17668a,_0x3d8906;_0x3c5c01[_0x456df5(0x2cd)][_0x456df5(0x314)](this);var _0x4c1e6c=this[_0x456df5(0x2fa)],_0x443ba7=_0x4c1e6c['iv'],_0x263fae=_0x4c1e6c[_0x456df5(0x1a6)];this[_0x456df5(0x351)]==this[_0x456df5(0x2ef)]?_0x3d8906=_0x263fae[_0x456df5(0x166)]:(_0x3d8906=_0x263fae[_0x456df5(0x36e)],this[_0x456df5(0x131)]=0x1),this[_0x456df5(0x248)]&&this[_0x456df5(0x248)][_0x456df5(0x387)]==_0x3d8906?this[_0x456df5(0x248)][_0x456df5(0x21c)](this,_0x443ba7&&_0x443ba7[_0x456df5(0x3b2)]):(this[_0x456df5(0x248)]=_0x3d8906['call'](_0x263fae,this,_0x443ba7&&_0x443ba7[_0x456df5(0x3b2)]),this[_0x456df5(0x248)][_0x456df5(0x387)]=_0x3d8906);},_0x17668a(0x2cd)),'_doProcessBlock':__name(function(_0x33951f,_0x128ade){var _0x376fb4=_0x17668a;this['_mode'][_0x376fb4(0x365)](_0x33951f,_0x128ade);},_0x17668a(0x106)),'_doFinalize':__name(function(){var _0x4f6eb0=_0x17668a,_0x55f47c,_0x2f4157=this['cfg']['padding'];return this[_0x4f6eb0(0x351)]==this[_0x4f6eb0(0x2ef)]?(_0x2f4157[_0x4f6eb0(0x3d2)](this[_0x4f6eb0(0x27e)],this[_0x4f6eb0(0x30c)]),_0x55f47c=this[_0x4f6eb0(0x33b)](!0x0)):(_0x55f47c=this[_0x4f6eb0(0x33b)](!0x0),_0x2f4157[_0x4f6eb0(0x164)](_0x55f47c)),_0x55f47c;},'_doFinalize'),'blockSize':0x80/0x20});var _0x3747a3=_0x5c8dd3[_0x17668a(0x1b4)]=_0x2b881c[_0x17668a(0x10a)]({'init':__name(function(_0x177fc6){var _0x168b62=_0x17668a;this[_0x168b62(0x16d)](_0x177fc6);},'init'),'toString':__name(function(_0x3a9e3f){var _0x1c4b63=_0x17668a;return(_0x3a9e3f||this[_0x1c4b63(0x30f)])[_0x1c4b63(0xff)](this);},_0x17668a(0x22b))}),_0x2ee513=_0x5ca3e6[_0x17668a(0x281)]={},_0x5b9090=_0x2ee513[_0x17668a(0x3ab)]={'stringify':__name(function(_0x304347){var _0x3786d0=_0x17668a,_0x467fb7,_0x242457=_0x304347[_0x3786d0(0x109)],_0x592065=_0x304347['salt'];return _0x592065?_0x467fb7=_0x1edd3c[_0x3786d0(0x33c)]([0x53616c74,0x65645f5f])[_0x3786d0(0x354)](_0x592065)[_0x3786d0(0x354)](_0x242457):_0x467fb7=_0x242457,_0x467fb7[_0x3786d0(0x22b)](_0x351f52);},_0x17668a(0xff)),'parse':__name(function(_0x29d5d0){var _0x26ba13=_0x17668a,_0x55f38a,_0x5e7388=_0x351f52[_0x26ba13(0x3eb)](_0x29d5d0),_0x3b8983=_0x5e7388['words'];return _0x3b8983[0x0]==0x53616c74&&_0x3b8983[0x1]==0x65645f5f&&(_0x55f38a=_0x1edd3c[_0x26ba13(0x33c)](_0x3b8983[_0x26ba13(0x1ea)](0x2,0x4)),_0x3b8983[_0x26ba13(0x414)](0x0,0x4),_0x5e7388[_0x26ba13(0x3bb)]-=0x10),_0x3747a3[_0x26ba13(0x33c)]({'ciphertext':_0x5e7388,'salt':_0x55f38a});},_0x17668a(0x3eb))},_0x2b2665=_0x5c8dd3[_0x17668a(0x13f)]=_0x2b881c[_0x17668a(0x10a)]({'cfg':_0x2b881c[_0x17668a(0x10a)]({'format':_0x5b9090}),'encrypt':__name(function(_0x21dba5,_0x226eb9,_0x4351a1,_0x38d9bb){var _0x235dce=_0x17668a;_0x38d9bb=this[_0x235dce(0x2fa)][_0x235dce(0x10a)](_0x38d9bb);var _0x18a7b1=_0x21dba5[_0x235dce(0x166)](_0x4351a1,_0x38d9bb),_0x2b9bfe=_0x18a7b1[_0x235dce(0x426)](_0x226eb9),_0x44feb4=_0x18a7b1[_0x235dce(0x2fa)];return _0x3747a3[_0x235dce(0x33c)]({'ciphertext':_0x2b9bfe,'key':_0x4351a1,'iv':_0x44feb4['iv'],'algorithm':_0x21dba5,'mode':_0x44feb4[_0x235dce(0x1a6)],'padding':_0x44feb4[_0x235dce(0x138)],'blockSize':_0x21dba5[_0x235dce(0x30c)],'formatter':_0x38d9bb['format']});},_0x17668a(0x353)),'decrypt':__name(function(_0x879b5a,_0x1dd0f1,_0x3027f1,_0x36b132){var _0x4059c9=_0x17668a;_0x36b132=this[_0x4059c9(0x2fa)][_0x4059c9(0x10a)](_0x36b132),_0x1dd0f1=this['_parse'](_0x1dd0f1,_0x36b132['format']);var _0x22445d=_0x879b5a[_0x4059c9(0x36e)](_0x3027f1,_0x36b132)['finalize'](_0x1dd0f1['ciphertext']);return _0x22445d;},_0x17668a(0x418)),'_parse':__name(function(_0x2d4997,_0xbe47cc){var _0x53df13=_0x17668a;return typeof _0x2d4997=='string'?_0xbe47cc[_0x53df13(0x3eb)](_0x2d4997,this):_0x2d4997;},_0x17668a(0x286))}),_0x449cc4=_0x5ca3e6[_0x17668a(0x258)]={},_0x5d81e5=_0x449cc4['OpenSSL']={'execute':__name(function(_0xea32b,_0x3ec64e,_0x875bb2,_0x4d44e2,_0x59a03d){var _0x2c5f62=_0x17668a;if(_0x4d44e2||(_0x4d44e2=_0x1edd3c[_0x2c5f62(0x22d)](0x40/0x8)),_0x59a03d)var _0x5ac15a=_0x1fcfa9['create']({'keySize':_0x3ec64e+_0x875bb2,'hasher':_0x59a03d})[_0x2c5f62(0x1a8)](_0xea32b,_0x4d44e2);else var _0x5ac15a=_0x1fcfa9[_0x2c5f62(0x33c)]({'keySize':_0x3ec64e+_0x875bb2})[_0x2c5f62(0x1a8)](_0xea32b,_0x4d44e2);var _0x2a7334=_0x1edd3c['create'](_0x5ac15a[_0x2c5f62(0x3b2)][_0x2c5f62(0x1ea)](_0x3ec64e),_0x875bb2*0x4);return _0x5ac15a[_0x2c5f62(0x3bb)]=_0x3ec64e*0x4,_0x3747a3['create']({'key':_0x5ac15a,'iv':_0x2a7334,'salt':_0x4d44e2});},'execute')},_0x429279=_0x5c8dd3[_0x17668a(0x1be)]=_0x2b2665[_0x17668a(0x10a)]({'cfg':_0x2b2665[_0x17668a(0x2fa)]['extend']({'kdf':_0x5d81e5}),'encrypt':__name(function(_0x36b59f,_0x2e079b,_0xdfbb4c,_0x5bb452){var _0x135aaf=_0x17668a;_0x5bb452=this[_0x135aaf(0x2fa)][_0x135aaf(0x10a)](_0x5bb452);var _0x622c9f=_0x5bb452[_0x135aaf(0x258)][_0x135aaf(0x11d)](_0xdfbb4c,_0x36b59f['keySize'],_0x36b59f['ivSize'],_0x5bb452[_0x135aaf(0x31a)],_0x5bb452[_0x135aaf(0x223)]);_0x5bb452['iv']=_0x622c9f['iv'];var _0xa2c6c8=_0x2b2665[_0x135aaf(0x353)][_0x135aaf(0x314)](this,_0x36b59f,_0x2e079b,_0x622c9f['key'],_0x5bb452);return _0xa2c6c8[_0x135aaf(0x16d)](_0x622c9f),_0xa2c6c8;},_0x17668a(0x353)),'decrypt':__name(function(_0x5e67c9,_0x226fd9,_0x190e2e,_0x1e5720){var _0x56d606=_0x17668a;_0x1e5720=this['cfg']['extend'](_0x1e5720),_0x226fd9=this[_0x56d606(0x286)](_0x226fd9,_0x1e5720[_0x56d606(0x281)]);var _0x54a9f2=_0x1e5720[_0x56d606(0x258)][_0x56d606(0x11d)](_0x190e2e,_0x5e67c9[_0x56d606(0x3ff)],_0x5e67c9[_0x56d606(0x179)],_0x226fd9[_0x56d606(0x31a)],_0x1e5720[_0x56d606(0x223)]);_0x1e5720['iv']=_0x54a9f2['iv'];var _0xd9811a=_0x2b2665[_0x56d606(0x418)][_0x56d606(0x314)](this,_0x5e67c9,_0x226fd9,_0x54a9f2['key'],_0x1e5720);return _0xd9811a;},_0x17668a(0x418))});}();}));}(cipherCore$1)),cipherCore$1[_0xcf64f7(0x2c9)];}__name(requireCipherCore,_0x43e0c9(0x2ca));var aes=aes$1[_0x43e0c9(0x2c9)],hasRequiredAes;function requireAes(){var _0x2664d7=_0x43e0c9;return hasRequiredAes||(hasRequiredAes=0x1,function(_0xdd9064,_0x5cba6f){(function(_0x1d593b,_0x1e05d9,_0x28f6e9){var _0x461f3f=_0x5029;_0xdd9064[_0x461f3f(0x2c9)]=_0x1e05d9(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore());}(aes,function(_0x4930ec){var _0x2c8b93=_0x5029;return(function(){var _0x4cf687=_0x5029,_0x32c959=_0x4930ec,_0x4d45dd=_0x32c959[_0x4cf687(0x2f7)],_0x1f1fd4=_0x4d45dd[_0x4cf687(0x1f2)],_0x4d29bd=_0x32c959[_0x4cf687(0x2ff)],_0x2e1a3a=[],_0x4a9d42=[],_0x2d1d61=[],_0x59ae38=[],_0x1e419e=[],_0x2cf774=[],_0x2ec34e=[],_0x2592e1=[],_0x20b7cb=[],_0xd81cf1=[];(function(){for(var _0x37903c=[],_0x22d4c0=0x0;_0x22d4c0<0x100;_0x22d4c0++)_0x22d4c0<0x80?_0x37903c[_0x22d4c0]=_0x22d4c0<<0x1:_0x37903c[_0x22d4c0]=_0x22d4c0<<0x1^0x11b;for(var _0x1ceffc=0x0,_0x51daeb=0x0,_0x22d4c0=0x0;_0x22d4c0<0x100;_0x22d4c0++){var _0x2b8641=_0x51daeb^_0x51daeb<<0x1^_0x51daeb<<0x2^_0x51daeb<<0x3^_0x51daeb<<0x4;_0x2b8641=_0x2b8641>>>0x8^_0x2b8641&0xff^0x63,_0x2e1a3a[_0x1ceffc]=_0x2b8641,_0x4a9d42[_0x2b8641]=_0x1ceffc;var _0x115edd=_0x37903c[_0x1ceffc],_0x5da2d5=_0x37903c[_0x115edd],_0x3d74b7=_0x37903c[_0x5da2d5],_0x28745b=_0x37903c[_0x2b8641]*0x101^_0x2b8641*0x1010100;_0x2d1d61[_0x1ceffc]=_0x28745b<<0x18|_0x28745b>>>0x8,_0x59ae38[_0x1ceffc]=_0x28745b<<0x10|_0x28745b>>>0x10,_0x1e419e[_0x1ceffc]=_0x28745b<<0x8|_0x28745b>>>0x18,_0x2cf774[_0x1ceffc]=_0x28745b;var _0x28745b=_0x3d74b7*0x1010101^_0x5da2d5*0x10001^_0x115edd*0x101^_0x1ceffc*0x1010100;_0x2ec34e[_0x2b8641]=_0x28745b<<0x18|_0x28745b>>>0x8,_0x2592e1[_0x2b8641]=_0x28745b<<0x10|_0x28745b>>>0x10,_0x20b7cb[_0x2b8641]=_0x28745b<<0x8|_0x28745b>>>0x18,_0xd81cf1[_0x2b8641]=_0x28745b,_0x1ceffc?(_0x1ceffc=_0x115edd^_0x37903c[_0x37903c[_0x37903c[_0x3d74b7^_0x115edd]]],_0x51daeb^=_0x37903c[_0x37903c[_0x51daeb]]):_0x1ceffc=_0x51daeb=0x1;}}());var _0x458f66=[0x0,0x1,0x2,0x4,0x8,0x10,0x20,0x40,0x80,0x1b,0x36],_0x24cfd9=_0x4d29bd[_0x4cf687(0x341)]=_0x1f1fd4[_0x4cf687(0x10a)]({'_doReset':__name(function(){var _0x25b548=_0x4cf687,_0x466047;if(!(this[_0x25b548(0x120)]&&this['_keyPriorReset']===this[_0x25b548(0x36d)])){for(var _0x52da8d=this[_0x25b548(0x1a4)]=this[_0x25b548(0x36d)],_0x4af5d9=_0x52da8d['words'],_0x1bbd54=_0x52da8d[_0x25b548(0x3bb)]/0x4,_0x24cd6f=this[_0x25b548(0x120)]=_0x1bbd54+0x6,_0xd39ef=(_0x24cd6f+0x1)*0x4,_0x11a8ea=this['_keySchedule']=[],_0x25c75a=0x0;_0x25c75a<_0xd39ef;_0x25c75a++)_0x25c75a<_0x1bbd54?_0x11a8ea[_0x25c75a]=_0x4af5d9[_0x25c75a]:(_0x466047=_0x11a8ea[_0x25c75a-0x1],_0x25c75a%_0x1bbd54?_0x1bbd54>0x6&&_0x25c75a%_0x1bbd54==0x4&&(_0x466047=_0x2e1a3a[_0x466047>>>0x18]<<0x18|_0x2e1a3a[_0x466047>>>0x10&0xff]<<0x10|_0x2e1a3a[_0x466047>>>0x8&0xff]<<0x8|_0x2e1a3a[_0x466047&0xff]):(_0x466047=_0x466047<<0x8|_0x466047>>>0x18,_0x466047=_0x2e1a3a[_0x466047>>>0x18]<<0x18|_0x2e1a3a[_0x466047>>>0x10&0xff]<<0x10|_0x2e1a3a[_0x466047>>>0x8&0xff]<<0x8|_0x2e1a3a[_0x466047&0xff],_0x466047^=_0x458f66[_0x25c75a/_0x1bbd54|0x0]<<0x18),_0x11a8ea[_0x25c75a]=_0x11a8ea[_0x25c75a-_0x1bbd54]^_0x466047);for(var _0x475a53=this['_invKeySchedule']=[],_0x2bfc5f=0x0;_0x2bfc5f<_0xd39ef;_0x2bfc5f++){var _0x25c75a=_0xd39ef-_0x2bfc5f;if(_0x2bfc5f%0x4)var _0x466047=_0x11a8ea[_0x25c75a];else var _0x466047=_0x11a8ea[_0x25c75a-0x4];_0x2bfc5f<0x4||_0x25c75a<=0x4?_0x475a53[_0x2bfc5f]=_0x466047:_0x475a53[_0x2bfc5f]=_0x2ec34e[_0x2e1a3a[_0x466047>>>0x18]]^_0x2592e1[_0x2e1a3a[_0x466047>>>0x10&0xff]]^_0x20b7cb[_0x2e1a3a[_0x466047>>>0x8&0xff]]^_0xd81cf1[_0x2e1a3a[_0x466047&0xff]];}}},'_doReset'),'encryptBlock':__name(function(_0x4206ef,_0x117c51){var _0x21c355=_0x4cf687;this[_0x21c355(0x379)](_0x4206ef,_0x117c51,this[_0x21c355(0x201)],_0x2d1d61,_0x59ae38,_0x1e419e,_0x2cf774,_0x2e1a3a);},_0x4cf687(0x377)),'decryptBlock':__name(function(_0x230fab,_0x497a67){var _0x36e756=_0x4cf687,_0x6b3d04=_0x230fab[_0x497a67+0x1];_0x230fab[_0x497a67+0x1]=_0x230fab[_0x497a67+0x3],_0x230fab[_0x497a67+0x3]=_0x6b3d04,this[_0x36e756(0x379)](_0x230fab,_0x497a67,this['_invKeySchedule'],_0x2ec34e,_0x2592e1,_0x20b7cb,_0xd81cf1,_0x4a9d42);var _0x6b3d04=_0x230fab[_0x497a67+0x1];_0x230fab[_0x497a67+0x1]=_0x230fab[_0x497a67+0x3],_0x230fab[_0x497a67+0x3]=_0x6b3d04;},'decryptBlock'),'_doCryptBlock':__name(function(_0x5a4726,_0x5a5b66,_0x458cfa,_0x11dbf7,_0x5588f5,_0x3e2d19,_0x413c4e,_0x463c92){var _0x174868=_0x4cf687;for(var _0x18fc72=this[_0x174868(0x120)],_0x216df7=_0x5a4726[_0x5a5b66]^_0x458cfa[0x0],_0x628328=_0x5a4726[_0x5a5b66+0x1]^_0x458cfa[0x1],_0x3a239e=_0x5a4726[_0x5a5b66+0x2]^_0x458cfa[0x2],_0x13a951=_0x5a4726[_0x5a5b66+0x3]^_0x458cfa[0x3],_0x91a4d8=0x4,_0x16fe4a=0x1;_0x16fe4a<_0x18fc72;_0x16fe4a++){var _0x298ce4=_0x11dbf7[_0x216df7>>>0x18]^_0x5588f5[_0x628328>>>0x10&0xff]^_0x3e2d19[_0x3a239e>>>0x8&0xff]^_0x413c4e[_0x13a951&0xff]^_0x458cfa[_0x91a4d8++],_0xbe1fe=_0x11dbf7[_0x628328>>>0x18]^_0x5588f5[_0x3a239e>>>0x10&0xff]^_0x3e2d19[_0x13a951>>>0x8&0xff]^_0x413c4e[_0x216df7&0xff]^_0x458cfa[_0x91a4d8++],_0x424b24=_0x11dbf7[_0x3a239e>>>0x18]^_0x5588f5[_0x13a951>>>0x10&0xff]^_0x3e2d19[_0x216df7>>>0x8&0xff]^_0x413c4e[_0x628328&0xff]^_0x458cfa[_0x91a4d8++],_0x3e26db=_0x11dbf7[_0x13a951>>>0x18]^_0x5588f5[_0x216df7>>>0x10&0xff]^_0x3e2d19[_0x628328>>>0x8&0xff]^_0x413c4e[_0x3a239e&0xff]^_0x458cfa[_0x91a4d8++];_0x216df7=_0x298ce4,_0x628328=_0xbe1fe,_0x3a239e=_0x424b24,_0x13a951=_0x3e26db;}var _0x298ce4=(_0x463c92[_0x216df7>>>0x18]<<0x18|_0x463c92[_0x628328>>>0x10&0xff]<<0x10|_0x463c92[_0x3a239e>>>0x8&0xff]<<0x8|_0x463c92[_0x13a951&0xff])^_0x458cfa[_0x91a4d8++],_0xbe1fe=(_0x463c92[_0x628328>>>0x18]<<0x18|_0x463c92[_0x3a239e>>>0x10&0xff]<<0x10|_0x463c92[_0x13a951>>>0x8&0xff]<<0x8|_0x463c92[_0x216df7&0xff])^_0x458cfa[_0x91a4d8++],_0x424b24=(_0x463c92[_0x3a239e>>>0x18]<<0x18|_0x463c92[_0x13a951>>>0x10&0xff]<<0x10|_0x463c92[_0x216df7>>>0x8&0xff]<<0x8|_0x463c92[_0x628328&0xff])^_0x458cfa[_0x91a4d8++],_0x3e26db=(_0x463c92[_0x13a951>>>0x18]<<0x18|_0x463c92[_0x216df7>>>0x10&0xff]<<0x10|_0x463c92[_0x628328>>>0x8&0xff]<<0x8|_0x463c92[_0x3a239e&0xff])^_0x458cfa[_0x91a4d8++];_0x5a4726[_0x5a5b66]=_0x298ce4,_0x5a4726[_0x5a5b66+0x1]=_0xbe1fe,_0x5a4726[_0x5a5b66+0x2]=_0x424b24,_0x5a4726[_0x5a5b66+0x3]=_0x3e26db;},_0x4cf687(0x379)),'keySize':0x100/0x20});_0x32c959[_0x4cf687(0x341)]=_0x1f1fd4['_createHelper'](_0x24cfd9);}()),_0x4930ec[_0x2c8b93(0x341)];}));}(aes$1)),aes$1[_0x2664d7(0x2c9)];}__name(requireAes,_0x43e0c9(0x306));var aesExports=requireAes();const AES=getDefaultExportFromCjs(aesExports);var encBase64Exports=requireEncBase64();const Base64=getDefaultExportFromCjs(encBase64Exports);var encUtf8$1={'exports':{}},encUtf8=encUtf8$1[_0x43e0c9(0x2c9)],hasRequiredEncUtf8;function requireEncUtf8(){return hasRequiredEncUtf8||(hasRequiredEncUtf8=0x1,function(_0x238c24,_0x202d5b){(function(_0x188545,_0x36fd43){var _0x573c24=_0x5029;_0x238c24[_0x573c24(0x2c9)]=_0x36fd43(requireCore());}(encUtf8,function(_0xeac569){var _0x2906ef=_0x5029;return _0xeac569[_0x2906ef(0x316)][_0x2906ef(0x3fa)];}));}(encUtf8$1)),encUtf8$1['exports'];}__name(requireEncUtf8,'requireEncUtf8');var encUtf8Exports=requireEncUtf8();const Utf8=getDefaultExportFromCjs(encUtf8Exports);var libTypedarrays$1={'exports':{}},libTypedarrays=libTypedarrays$1[_0x43e0c9(0x2c9)],hasRequiredLibTypedarrays;function requireLibTypedarrays(){return hasRequiredLibTypedarrays||(hasRequiredLibTypedarrays=0x1,function(_0x44c39a,_0x21b63a){(function(_0x569c8f,_0x5dda0f){var _0x2761d3=_0x5029;_0x44c39a[_0x2761d3(0x2c9)]=_0x5dda0f(requireCore());}(libTypedarrays,function(_0x29a69f){var _0x2f353d=_0x5029;return(function(){var _0x541b37=_0x5029;if(typeof ArrayBuffer==_0x541b37(0x3e7)){var _0x11db45=_0x29a69f,_0x225d44=_0x11db45['lib'],_0x1f3d3d=_0x225d44[_0x541b37(0x2ce)],_0x5190f6=_0x1f3d3d['init'],_0x58c89c=_0x1f3d3d['init']=function(_0x2c29ae){var _0x3928a5=_0x541b37;if(_0x2c29ae instanceof ArrayBuffer&&(_0x2c29ae=new Uint8Array(_0x2c29ae)),(_0x2c29ae instanceof Int8Array||typeof Uint8ClampedArray<'u'&&_0x2c29ae instanceof Uint8ClampedArray||_0x2c29ae instanceof Int16Array||_0x2c29ae instanceof Uint16Array||_0x2c29ae instanceof Int32Array||_0x2c29ae instanceof Uint32Array||_0x2c29ae instanceof Float32Array||_0x2c29ae instanceof Float64Array)&&(_0x2c29ae=new Uint8Array(_0x2c29ae[_0x3928a5(0x2f2)],_0x2c29ae[_0x3928a5(0x39b)],_0x2c29ae[_0x3928a5(0x1d5)])),_0x2c29ae instanceof Uint8Array){for(var _0x4204a6=_0x2c29ae[_0x3928a5(0x1d5)],_0x1b0f4f=[],_0x362e63=0x0;_0x362e63<_0x4204a6;_0x362e63++)_0x1b0f4f[_0x362e63>>>0x2]|=_0x2c29ae[_0x362e63]<<0x18-_0x362e63%0x4*0x8;_0x5190f6[_0x3928a5(0x314)](this,_0x1b0f4f,_0x4204a6);}else _0x5190f6[_0x3928a5(0x2ba)](this,arguments);};_0x58c89c[_0x541b37(0x145)]=_0x1f3d3d;}}()),_0x29a69f[_0x2f353d(0x2f7)][_0x2f353d(0x2ce)];}));}(libTypedarrays$1)),libTypedarrays$1['exports'];}__name(requireLibTypedarrays,_0x43e0c9(0x1f6));var libTypedarraysExports=requireLibTypedarrays();const WordArray=getDefaultExportFromCjs(libTypedarraysExports);var padNopadding$1={'exports':{}},padNopadding=padNopadding$1[_0x43e0c9(0x2c9)],hasRequiredPadNopadding;function requirePadNopadding(){var _0x524fea=_0x43e0c9;return hasRequiredPadNopadding||(hasRequiredPadNopadding=0x1,function(_0x4f2cb8,_0x5d5676){(function(_0x166342,_0x13dec1,_0x2e11ca){var _0x49c977=_0x5029;_0x4f2cb8[_0x49c977(0x2c9)]=_0x13dec1(requireCore(),requireCipherCore());}(padNopadding,function(_0x459360){var _0x2eb2bb=_0x5029;return _0x459360[_0x2eb2bb(0x3d2)][_0x2eb2bb(0x322)]={'pad':__name(function(){},_0x2eb2bb(0x3d2)),'unpad':__name(function(){},_0x2eb2bb(0x164))},_0x459360[_0x2eb2bb(0x3d2)][_0x2eb2bb(0x322)];}));}(padNopadding$1)),padNopadding$1[_0x524fea(0x2c9)];}__name(requirePadNopadding,'requirePadNopadding');var padNopaddingExports=requirePadNopadding();const NoPadding=getDefaultExportFromCjs(padNopaddingExports);function pkcs7Padding(_0x3d1bd3,_0x48d4e8){var _0x489e24=_0x43e0c9;const _0x116bae=_0x48d4e8-_0x3d1bd3[_0x489e24(0x233)]%_0x48d4e8,_0x36e9e6=String[_0x489e24(0x315)](_0x116bae)[_0x489e24(0x3c9)](_0x116bae);return _0x3d1bd3+_0x36e9e6;}__name(pkcs7Padding,_0x43e0c9(0xf5));function encrypt(_0x4058c3,_0x13cb7a){var _0x30de96=_0x43e0c9;const _0x18308d=WordArray['random'](0x10),_0x5010bc=pkcs7Padding(_0x4058c3,0x10),_0x39622f=AES[_0x30de96(0x353)](Utf8['parse'](_0x5010bc),Base64[_0x30de96(0x3eb)](_0x13cb7a),{'iv':_0x18308d,'padding':NoPadding});return _0x18308d[_0x30de96(0x354)](_0x39622f[_0x30de96(0x109)])[_0x30de96(0x22b)](Base64);}__name(encrypt,_0x43e0c9(0x353));function getAttachHeader(){var _0x5db43f=_0x43e0c9;const _0x2d581e=getGlobalObject()['__Key__'];if(_0x2d581e){const _0x1cae37={'time':Math['floor'](Date[_0x5db43f(0x1cb)]()/0x3e8),'domain':location[_0x5db43f(0x162)]};return encrypt(JSON['stringify'](_0x1cae37),_0x2d581e);}}__name(getAttachHeader,_0x43e0c9(0x425));var __defProp$7=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc$7=Object['getOwnPropertyDescriptor'],__decorateClass$7=__name((_0x3e5969,_0x8f67f8,_0x42878e,_0xfa62d6)=>{var _0x57b2d6=_0x43e0c9;for(var _0x40d685=_0xfa62d6>0x1?void 0x0:_0xfa62d6?__getOwnPropDesc$7(_0x8f67f8,_0x42878e):_0x8f67f8,_0x1de9d6=_0x3e5969[_0x57b2d6(0x233)]-0x1,_0x4225de;_0x1de9d6>=0x0;_0x1de9d6--)(_0x4225de=_0x3e5969[_0x1de9d6])&&(_0x40d685=(_0xfa62d6?_0x4225de(_0x8f67f8,_0x42878e,_0x40d685):_0x4225de(_0x40d685))||_0x40d685);return _0xfa62d6&&_0x40d685&&__defProp$7(_0x8f67f8,_0x42878e,_0x40d685),_0x40d685;},'__decorateClass$7'),__decorateParam$7=__name((_0x76db10,_0x12f591)=>(_0x10c403,_0x327940)=>_0x12f591(_0x10c403,_0x327940,_0x76db10),_0x43e0c9(0x265)),_a20;let DomainRequestService=(_a20=class{constructor(_0x2fc1d5){var _0x2b1dc7=_0x43e0c9;this['_httpService']=_0x2fc1d5,this[_0x2b1dc7(0xf2)]();}[_0x43e0c9(0xf2)](){var _0xb9dea4=_0x43e0c9;this[_0xb9dea4(0x141)][_0xb9dea4(0x16e)]({'interceptor':__name((_0x23e4aa,_0x5c671c)=>{var _0x540cda=_0xb9dea4;const _0x472886=_0x23e4aa[_0x540cda(0x113)],_0x408b63=getAttachHeader();return _0x408b63&&_0x472886[_0x540cda(0x116)](_0x540cda(0x20e),_0x408b63),_0x5c671c(_0x23e4aa);},'interceptor')});}},__name(_a20,_0x43e0c9(0x221)),_a20);DomainRequestService=__decorateClass$7([__decorateParam$7(0x0,Inject(HTTPService))],DomainRequestService);var __defProp$6=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc$6=Object[_0x43e0c9(0x33e)],__decorateClass$6=__name((_0x3eb517,_0x61efc3,_0x5c3255,_0x3d85aa)=>{var _0x5b96b7=_0x43e0c9;for(var _0x3b275d=_0x3d85aa>0x1?void 0x0:_0x3d85aa?__getOwnPropDesc$6(_0x61efc3,_0x5c3255):_0x61efc3,_0x46e82b=_0x3eb517[_0x5b96b7(0x233)]-0x1,_0x1d6fc9;_0x46e82b>=0x0;_0x46e82b--)(_0x1d6fc9=_0x3eb517[_0x46e82b])&&(_0x3b275d=(_0x3d85aa?_0x1d6fc9(_0x61efc3,_0x5c3255,_0x3b275d):_0x1d6fc9(_0x3b275d))||_0x3b275d);return _0x3d85aa&&_0x3b275d&&__defProp$6(_0x61efc3,_0x5c3255,_0x3b275d),_0x3b275d;},_0x43e0c9(0x1eb)),__decorateParam$6=__name((_0x233692,_0x7e23da)=>(_0x797c27,_0x5881ae)=>_0x7e23da(_0x797c27,_0x5881ae,_0x233692),'__decorateParam$6'),_a21;let DataLoaderService=(_a21=class extends RxDisposable{constructor(_0x332c08,_0x5268ba,_0x1232d8){var _0x16a77f=_0x43e0c9;super(),__publicField(this,_0x16a77f(0x362),new BehaviorSubject(null)),__publicField(this,_0x16a77f(0x338),this[_0x16a77f(0x362)]['asObservable']()),(this[_0x16a77f(0x11f)]=_0x332c08,this[_0x16a77f(0x118)]=_0x5268ba,this['_localCacheService']=_0x1232d8);}async['loadUnit'](_0x3c8d86,_0x1ad5e8,_0x4470bb){var _0x3deb49=_0x43e0c9;this[_0x3deb49(0x362)][_0x3deb49(0x2e5)]({'unitId':_0x3c8d86,'type':_0x1ad5e8,'subUnitId':_0x4470bb});let _0x47eda1=null;switch(_0x1ad5e8){case UniverType[_0x3deb49(0x202)]:{_0x47eda1=await this[_0x3deb49(0x3f4)](_0x3c8d86);break;}case UniverType[_0x3deb49(0x199)]:{_0x47eda1=await this[_0x3deb49(0x2a4)](_0x3c8d86);break;}default:{this[_0x3deb49(0x11f)][_0x3deb49(0x1c8)](_0x3deb49(0x112),_0x3deb49(0x1de));break;}}return _0x47eda1;}async[_0x43e0c9(0x3f4)](_0x3d3e36){var _0x1c3b9b=_0x43e0c9,_0x569790;let _0x4873fb=0x0;const _0x3fc2c6=await((_0x569790=this[_0x1c3b9b(0x289)])==null?void 0x0:_0x569790[_0x1c3b9b(0x268)](_0x3d3e36));return _0x3fc2c6&&(_0x3fc2c6[_0x1c3b9b(0x3f2)]||_0x3fc2c6[_0x1c3b9b(0x245)][_0x1c3b9b(0x233)]!==0x0)&&(_0x4873fb=_0x3fc2c6['rev']),_0x4873fb===0x0&&this[_0x1c3b9b(0x11f)]['debug'](_0x1c3b9b(0x112),_0x1c3b9b(0x21d)),this['_snapshotService'][_0x1c3b9b(0x419)](_0x3d3e36,_0x4873fb);}async[_0x43e0c9(0x2a4)](_0x56795e){var _0x19f2e9=_0x43e0c9,_0xcd3a31;let _0x34100a=0x0;const _0x28dea0=await((_0xcd3a31=this[_0x19f2e9(0x289)])==null?void 0x0:_0xcd3a31[_0x19f2e9(0x268)](_0x56795e));return _0x28dea0&&(_0x28dea0['awaitingChangeset']||_0x28dea0[_0x19f2e9(0x245)][_0x19f2e9(0x233)]!==0x0)&&(_0x34100a=_0x28dea0[_0x19f2e9(0x438)]),_0x34100a===0x0&&this[_0x19f2e9(0x11f)][_0x19f2e9(0x287)](_0x19f2e9(0x112),_0x19f2e9(0x21d)),this[_0x19f2e9(0x118)][_0x19f2e9(0x3bc)](_0x56795e,_0x34100a);}},__name(_a21,_0x43e0c9(0x3f8)),_a21);DataLoaderService=__decorateClass$6([__decorateParam$6(0x0,ILogService),__decorateParam$6(0x1,Inject(SnapshotService)),__decorateParam$6(0x2,Optional(ILocalCacheService))],DataLoaderService);var __defProp$5=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc$5=Object[_0x43e0c9(0x33e)],__decorateClass$5=__name((_0x546125,_0x9d2a91,_0x15347e,_0x368e43)=>{var _0x40ce9d=_0x43e0c9;for(var _0x331e40=_0x368e43>0x1?void 0x0:_0x368e43?__getOwnPropDesc$5(_0x9d2a91,_0x15347e):_0x9d2a91,_0x169e3e=_0x546125[_0x40ce9d(0x233)]-0x1,_0x2302e5;_0x169e3e>=0x0;_0x169e3e--)(_0x2302e5=_0x546125[_0x169e3e])&&(_0x331e40=(_0x368e43?_0x2302e5(_0x9d2a91,_0x15347e,_0x331e40):_0x2302e5(_0x331e40))||_0x331e40);return _0x368e43&&_0x331e40&&__defProp$5(_0x9d2a91,_0x15347e,_0x331e40),_0x331e40;},_0x43e0c9(0x3ce)),__decorateParam$5=__name((_0x283b4f,_0x1d5a00)=>(_0x373346,_0x57e6c2)=>_0x1d5a00(_0x373346,_0x57e6c2,_0x283b4f),_0x43e0c9(0x17d));const ALLOW_IMAGE_LIST=[_0x43e0c9(0x3d3),_0x43e0c9(0x3c1),_0x43e0c9(0x434),_0x43e0c9(0x15c),_0x43e0c9(0x23f)],ALLOW_IMAGE_SIZE=0x5*0x400*0x400,EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY=_0x43e0c9(0x28f),DEFAULT_EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY='/universer-api/stream/file/upload',EXCHANGE_SIGN_URL_SERVER_URL_KEY='EXCHANGE_SIGN_URL_SERVER_URL_KEY',DEFAULT_EXCHANGE_SIGN_URL_SERVER_URL_KEY='/universer-api/file/{fileID}/sign-url';var _a22;let CollaborationImageIoService=(_a22=class{constructor(_0x571a3f,_0x12a8a0,_0x5365d3){var _0xa1abbb=_0x43e0c9;__publicField(this,_0xa1abbb(0x19d),0x0),__publicField(this,'_change$',new Subject()),__publicField(this,_0xa1abbb(0x3d1),this[_0xa1abbb(0x31b)]),__publicField(this,_0xa1abbb(0x271),new Map()),(this[_0xa1abbb(0x141)]=_0x571a3f,this['_configService']=_0x12a8a0,this['_univerInstanceService']=_0x5365d3);}[_0x43e0c9(0x1e0)](_0x41d212){var _0x388361=_0x43e0c9;this[_0x388361(0x19d)]=_0x41d212,this[_0x388361(0x31b)]['next'](_0x41d212);}[_0x43e0c9(0x1f1)](_0x1682a7,_0x50f4f0){var _0xa7d264=_0x43e0c9;if(_0x50f4f0===ImageSourceType[_0xa7d264(0x288)]){const _0x54d50f=new Image();return _0x54d50f[_0xa7d264(0x1f4)]=_0x1682a7,_0x54d50f;}return this[_0xa7d264(0x271)][_0xa7d264(0x1c2)](_0x1682a7);}[_0x43e0c9(0x152)](_0x19b72b,_0x2bc5ce,_0xaf542c){var _0x5d6f60=_0x43e0c9;_0x2bc5ce===ImageSourceType[_0x5d6f60(0x288)]||_0xaf542c==null||this[_0x5d6f60(0x271)][_0x5d6f60(0x116)](_0x19b72b,_0xaf542c);}async[_0x43e0c9(0x2f1)](_0x386e7a){var _0x10aa1f=_0x43e0c9;try{const _0x12e85c=this[_0x10aa1f(0x3cb)](this[_0x10aa1f(0x360)](),''+_0x386e7a),_0x144c58=(await this[_0x10aa1f(0x141)][_0x10aa1f(0x1c2)](_0x12e85c))[_0x10aa1f(0x415)];if(_0x144c58[_0x10aa1f(0x1c8)]&&_0x144c58[_0x10aa1f(0x1c8)]['code']===ErrorCode['OK']){const _0x2b7ac4=new URL(_0x144c58[_0x10aa1f(0x24e)],this[_0x10aa1f(0x147)]())[_0x10aa1f(0x22b)]();return Promise[_0x10aa1f(0x3e1)](_0x2b7ac4);}return Promise[_0x10aa1f(0x41c)](_0x144c58[_0x10aa1f(0x1c8)]);}catch(_0x232c65){return Promise[_0x10aa1f(0x41c)](_0x232c65);}}async[_0x43e0c9(0x2d9)](_0xf3e79a){var _0x2c3da7=_0x43e0c9;let _0x4793c4='';if(!ALLOW_IMAGE_LIST['includes'](_0xf3e79a[_0x2c3da7(0x3b0)]))return this[_0x2c3da7(0x24d)](),Promise[_0x2c3da7(0x41c)](new Error(ImageUploadStatusType[_0x2c3da7(0x37a)]));if(_0xf3e79a[_0x2c3da7(0x23a)]>ALLOW_IMAGE_SIZE)return this[_0x2c3da7(0x24d)](),Promise[_0x2c3da7(0x41c)](new Error(ImageUploadStatusType[_0x2c3da7(0x174)]));try{const _0x42f744=new FormData();_0x42f744[_0x2c3da7(0x2a1)](_0x2c3da7(0x14b),_0xf3e79a);const _0x436631=this[_0x2c3da7(0x330)][_0x2c3da7(0x126)](),_0x561bc5=_0x436631==null?void 0x0:_0x436631['getUnitId']();if(!_0x561bc5)throw new Error('unitId\x20is\x20not\x20found');const _0x33b5ba=this[_0x2c3da7(0x1ec)]()+_0x2c3da7(0x34e)+_0xf3e79a[_0x2c3da7(0x23a)][_0x2c3da7(0x22b)]()+_0x2c3da7(0x1d2)+FileSource[_0x2c3da7(0x382)]+_0x2c3da7(0x1d0)+encodeURIComponent(_0x561bc5),_0x45c375=await(await fetch(_0x33b5ba,{'method':_0x2c3da7(0x12c),'body':_0x42f744}))[_0x2c3da7(0x449)]();if(typeof _0x45c375[_0x2c3da7(0x28e)]!=_0x2c3da7(0x17a))return this[_0x2c3da7(0x24d)](),Promise[_0x2c3da7(0x41c)](new Error(ImageUploadStatusType[_0x2c3da7(0x130)]));_0x4793c4=_0x45c375[_0x2c3da7(0x28e)];}catch{return this[_0x2c3da7(0x24d)](),Promise['reject'](new Error(ImageUploadStatusType[_0x2c3da7(0x130)]));}return new Promise((_0x1927e4,_0x14cea7)=>{var _0x2c0c5b=_0x2c3da7;const _0x12031a=new FileReader();_0x12031a[_0x2c0c5b(0x3fd)](_0xf3e79a),_0x12031a['onload']=_0xd51b=>{var _0x37c3ff=_0x2c0c5b,_0x1a314d;const _0xa38a17=(_0x1a314d=_0xd51b[_0x37c3ff(0x20b)])==null?void 0x0:_0x1a314d[_0x37c3ff(0xf3)];if(_0xa38a17==null){this['_decreaseWaiting'](),_0x14cea7(new Error(ImageUploadStatusType[_0x37c3ff(0x130)]));return;}const _0x11e44e=Tools[_0x37c3ff(0x436)](0x6);_0x1927e4({'imageId':_0x11e44e,'imageSourceType':ImageSourceType[_0x37c3ff(0x44b)],'source':_0x4793c4,'base64Cache':_0xa38a17,'status':ImageUploadStatusType[_0x37c3ff(0x259)]}),this[_0x37c3ff(0x24d)]();};});}[_0x43e0c9(0x1ec)](){var _0x548961=_0x43e0c9,_0xf6c05a,_0x4abe95;const _0xd7f36e=this['_configService']['getConfig'](EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY),_0x40b636=this[_0x548961(0x249)]['getConfig'](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x4abe95=(_0xf6c05a=_0x40b636==null?void 0x0:_0x40b636['uploadFileServerUrl'])!=null?_0xf6c05a:_0xd7f36e)!=null?_0x4abe95:DEFAULT_EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY;}[_0x43e0c9(0x360)](){var _0xe21afe=_0x43e0c9,_0x58cb18,_0x4e78cb;const _0x23fcd7=this[_0xe21afe(0x249)][_0xe21afe(0x15f)](EXCHANGE_SIGN_URL_SERVER_URL_KEY),_0x2e38a4=this[_0xe21afe(0x249)][_0xe21afe(0x15f)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x4e78cb=(_0x58cb18=_0x2e38a4==null?void 0x0:_0x2e38a4[_0xe21afe(0x1b3)])!=null?_0x58cb18:_0x23fcd7)!=null?_0x4e78cb:DEFAULT_EXCHANGE_SIGN_URL_SERVER_URL_KEY;}[_0x43e0c9(0x147)](){var _0x3e3445=_0x43e0c9,_0x49005c;const _0x610fe4=this[_0x3e3445(0x249)][_0x3e3445(0x15f)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x49005c=_0x610fe4==null?void 0x0:_0x610fe4[_0x3e3445(0x31d)])!=null?_0x49005c:location[_0x3e3445(0x2e0)];}['_replaceFileID'](_0xe2ed6a,_0x4ccb55){var _0x558e33=_0x43e0c9;return _0xe2ed6a[_0x558e33(0x3d6)](_0x558e33(0x211),_0x4ccb55);}['_decreaseWaiting'](){var _0x159c64=_0x43e0c9;this[_0x159c64(0x19d)]-=0x1,this[_0x159c64(0x31b)][_0x159c64(0x2e5)](this[_0x159c64(0x19d)]);}},__name(_a22,_0x43e0c9(0x148)),_a22);CollaborationImageIoService=__decorateClass$5([__decorateParam$5(0x0,Inject(HTTPService)),__decorateParam$5(0x1,IConfigService),__decorateParam$5(0x2,Inject(IUniverInstanceService))],CollaborationImageIoService);var __defProp$4=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc$4=Object[_0x43e0c9(0x33e)],__decorateClass$4=__name((_0x99b128,_0x7e0327,_0x21902f,_0x2508ea)=>{for(var _0x1bb1d4=_0x2508ea>0x1?void 0x0:_0x2508ea?__getOwnPropDesc$4(_0x7e0327,_0x21902f):_0x7e0327,_0x1540cc=_0x99b128['length']-0x1,_0x45b103;_0x1540cc>=0x0;_0x1540cc--)(_0x45b103=_0x99b128[_0x1540cc])&&(_0x1bb1d4=(_0x2508ea?_0x45b103(_0x7e0327,_0x21902f,_0x1bb1d4):_0x45b103(_0x1bb1d4))||_0x1bb1d4);return _0x2508ea&&_0x1bb1d4&&__defProp$4(_0x7e0327,_0x21902f,_0x1bb1d4),_0x1bb1d4;},_0x43e0c9(0x143)),__decorateParam$4=__name((_0x7aea30,_0x2e4f70)=>(_0x559073,_0x164b77)=>_0x2e4f70(_0x559073,_0x164b77,_0x7aea30),_0x43e0c9(0xf9));const DEFAULT_AUTHZ_URL_KEY=_0x43e0c9(0x2d4);var _a23;let MentionIoHttpService=(_a23=class{constructor(_0x67ad2f,_0x445d13){var _0x405f22=_0x43e0c9;this[_0x405f22(0x249)]=_0x67ad2f,this[_0x405f22(0x1b7)]=_0x445d13;}['_getAPIPrefixPath'](){var _0x44df39=_0x43e0c9,_0x273587,_0x483c1a;const _0x26ffc6=this[_0x44df39(0x249)][_0x44df39(0x15f)](AUTHZ_URL_KEY),_0x1a9092=this[_0x44df39(0x249)][_0x44df39(0x15f)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x483c1a=(_0x273587=_0x1a9092==null?void 0x0:_0x1a9092[_0x44df39(0x3af)])!=null?_0x273587:_0x26ffc6)!=null?_0x483c1a:DEFAULT_AUTHZ_URL_KEY;}async['list'](_0x1f63e5){var _0x565198=_0x43e0c9;const _0x189d3b=this[_0x565198(0x323)]()+_0x565198(0x2ad);return{'list':[{'title':_0x565198(0x26e),'mentions':(await this[_0x565198(0x1b7)][_0x565198(0x1c2)](_0x189d3b,{'params':{'objectID':_0x1f63e5[_0x565198(0x38e)],'unitID':_0x1f63e5[_0x565198(0x38e)]}}))['body'][_0x565198(0x2eb)][_0x565198(0x12e)](_0x246be2=>({'objectId':_0x246be2['id'],'name':_0x246be2[_0x565198(0x40e)][_0x565198(0x3e4)],'metadata':{'icon':_0x246be2[_0x565198(0x40e)][_0x565198(0x2ae)]},'label':_0x246be2[_0x565198(0x40e)]['name'],'objectType':MentionType[_0x565198(0x150)]})),'metadata':{},'type':MentionType[_0x565198(0x150)]}]};}},__name(_a23,_0x43e0c9(0x12f)),_a23);MentionIoHttpService=__decorateClass$4([__decorateParam$4(0x0,Inject(IConfigService)),__decorateParam$4(0x1,Inject(HTTPService))],MentionIoHttpService);var __defProp$3=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc$3=Object['getOwnPropertyDescriptor'],__decorateClass$3=__name((_0x45bba7,_0x46f71a,_0x5ab5e4,_0x2be8a0)=>{var _0x52d173=_0x43e0c9;for(var _0x55ed8c=_0x2be8a0>0x1?void 0x0:_0x2be8a0?__getOwnPropDesc$3(_0x46f71a,_0x5ab5e4):_0x46f71a,_0x4f24aa=_0x45bba7[_0x52d173(0x233)]-0x1,_0x528809;_0x4f24aa>=0x0;_0x4f24aa--)(_0x528809=_0x45bba7[_0x4f24aa])&&(_0x55ed8c=(_0x2be8a0?_0x528809(_0x46f71a,_0x5ab5e4,_0x55ed8c):_0x528809(_0x55ed8c))||_0x55ed8c);return _0x2be8a0&&_0x55ed8c&&__defProp$3(_0x46f71a,_0x5ab5e4,_0x55ed8c),_0x55ed8c;},_0x43e0c9(0x215)),__decorateParam$3=__name((_0x9e7dc,_0x23ca54)=>(_0x538319,_0x1ecc6b)=>_0x23ca54(_0x538319,_0x1ecc6b,_0x9e7dc),_0x43e0c9(0x210)),_a24;let PermissionService=(_a24=class extends RxDisposable{constructor(_0x5b876c,_0x1c3350,_0x2ae594,_0x3c3e6d,_0x39f3f9,_0x3cea38,_0x738784){var _0x8a2650=_0x43e0c9;super(),this[_0x8a2650(0x403)]=_0x5b876c,this['_univerInstanceService']=_0x1c3350,this['_permissionService']=_0x2ae594,this[_0x8a2650(0x3aa)]=_0x3c3e6d,this['_collaborationUIEventService']=_0x39f3f9,this[_0x8a2650(0x389)]=_0x3cea38,this['_undoRedoService']=_0x738784,this[_0x8a2650(0x3b8)](),this[_0x8a2650(0x216)]();}[_0x43e0c9(0x216)](){var _0x39734a=_0x43e0c9;const _0xaf9142=__name(async _0x271b32=>{var _0x33e343=_0x5029;(await this[_0x33e343(0x3aa)][_0x33e343(0x32d)](_0x271b32))['event$']['pipe'](filter(_0x1c3b9a=>_0x1c3b9a[_0x33e343(0x25d)]===CollaborationEvent['SHOULD_CLOSE_CONN']),_0x3e796d(this[_0x33e343(0x34a)]))[_0x33e343(0x352)](_0x179635=>{var _0x25219d=_0x33e343;const _0x35169a=_0x179635,{reason:_0x24fa33}=_0x35169a[_0x25219d(0x14c)];this['_collaborationUIEventService'][_0x25219d(0x43a)]({'id':CollaborationUIEventId['CLOSE_ROOM'],'data':_0x24fa33}),this['_permissionService'][_0x25219d(0x10b)](new WorkbookEditablePermission(_0x271b32)['id'],!0x1),this[_0x25219d(0x3aa)][_0x25219d(0x41d)](_0x271b32);});},_0x39734a(0x3cd));merge(this[_0x39734a(0x330)][_0x39734a(0x430)](UniverInstanceType[_0x39734a(0x202)]),this[_0x39734a(0x330)][_0x39734a(0x430)](UniverInstanceType[_0x39734a(0x199)]))[_0x39734a(0x1f0)](map(_0xb1c170=>_0xb1c170['getUnitId']()),filter(_0x2c3c90=>!isInternalEditorID(_0x2c3c90)),_0x3e796d(this[_0x39734a(0x34a)]))[_0x39734a(0x352)](_0x151c23=>{_0xaf9142(_0x151c23);});}[_0x43e0c9(0x3b8)](){var _0x5a8d2f=_0x43e0c9;const _0x211b0a=__name(async _0x1e8ccf=>{var _0x48ac6c=_0x5029;const _0x2e106e=await this[_0x48ac6c(0x3aa)]['requireSession'](_0x1e8ccf),_0xa42bfc=this[_0x48ac6c(0x403)][_0x48ac6c(0x1c2)](SheetPermissionInitController);_0x2e106e[_0x48ac6c(0x14f)]['pipe'](filter(_0x51cf1f=>_0x51cf1f[_0x48ac6c(0x25d)]===CollaborationEvent[_0x48ac6c(0x348)]),_0x3e796d(this['dispose$']))[_0x48ac6c(0x352)](_0x29dcd3=>{var _0x4acc32=_0x48ac6c;const _0x554c71=_0x29dcd3,{objectId:_0x1693bf}=_0x554c71[_0x4acc32(0x14c)];_0x1693bf===_0x1e8ccf?_0xa42bfc[_0x4acc32(0x32c)](_0x1e8ccf):_0xa42bfc[_0x4acc32(0x2aa)](_0x1e8ccf,_0x1693bf);});},_0x5a8d2f(0x42c));merge(this['_univerInstanceService'][_0x5a8d2f(0x430)](UniverInstanceType[_0x5a8d2f(0x202)]),this['_univerInstanceService'][_0x5a8d2f(0x430)](UniverInstanceType['UNIVER_DOC']))[_0x5a8d2f(0x1f0)](map(_0x3a371b=>_0x3a371b[_0x5a8d2f(0x2cb)]()),filter(_0x431040=>!isInternalEditorID(_0x431040)),_0x3e796d(this[_0x5a8d2f(0x34a)]))[_0x5a8d2f(0x352)](_0x380d46=>{_0x211b0a(_0x380d46);});}},__name(_a24,'PermissionService'),_a24);PermissionService=__decorateClass$3([__decorateParam$3(0x0,Inject(Injector)),__decorateParam$3(0x1,IUniverInstanceService),__decorateParam$3(0x2,IPermissionService),__decorateParam$3(0x3,Inject(CollaborationSessionService)),__decorateParam$3(0x4,Inject(CollaborationUIEventService)),__decorateParam$3(0x5,IAuthzIoService),__decorateParam$3(0x6,IUndoRedoService)],PermissionService);var __defProp$2=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc$2=Object[_0x43e0c9(0x33e)],__decorateClass$2=__name((_0x53fa13,_0x15275c,_0x151302,_0x2c7192)=>{var _0x99f532=_0x43e0c9;for(var _0x546740=_0x2c7192>0x1?void 0x0:_0x2c7192?__getOwnPropDesc$2(_0x15275c,_0x151302):_0x15275c,_0x24a9b0=_0x53fa13[_0x99f532(0x233)]-0x1,_0x2f50f6;_0x24a9b0>=0x0;_0x24a9b0--)(_0x2f50f6=_0x53fa13[_0x24a9b0])&&(_0x546740=(_0x2c7192?_0x2f50f6(_0x15275c,_0x151302,_0x546740):_0x2f50f6(_0x546740))||_0x546740);return _0x2c7192&&_0x546740&&__defProp$2(_0x15275c,_0x151302,_0x546740),_0x546740;},_0x43e0c9(0x42e)),__decorateParam$2=__name((_0x24c690,_0x1356e7)=>(_0xc699f4,_0x4933d5)=>_0x1356e7(_0xc699f4,_0x4933d5,_0x24c690),'__decorateParam$2'),_a25;let SnapshotServerOverHTTPService=(_a25=class{constructor(_0x1ce9e8,_0x466126){var _0x2f5020=_0x43e0c9;this[_0x2f5020(0x249)]=_0x1ce9e8,this[_0x2f5020(0x141)]=_0x466126;}async['getUnitOnRev'](_0x3bfc35,_0x16b434){var _0x3ffcf0=_0x43e0c9,_0x18de93;const {unitID:_0x5964c3,type:_0x176322,revision:revision=0x0}=_0x16b434,_0x1038c6=this[_0x3ffcf0(0x347)]()+'/'+_0x176322+_0x3ffcf0(0x40f)+_0x5964c3+_0x3ffcf0(0x3f5)+revision,_0x484815=(await this[_0x3ffcf0(0x141)]['get'](_0x1038c6))['body'],_0x6c44ab=(_0x18de93=_0x484815[_0x3ffcf0(0x29b)])==null?void 0x0:_0x18de93['workbook'];if(_0x6c44ab){const _0x463b80=_0x6c44ab==null?void 0x0:_0x6c44ab[_0x3ffcf0(0x3a2)],_0x489335=textEncoder['encode'](b64DecodeUnicode(_0x463b80));_0x6c44ab[_0x3ffcf0(0x3a2)]=_0x489335,Object['entries'](_0x6c44ab[_0x3ffcf0(0x20a)])['forEach'](([,_0x30405d])=>{var _0x5e3438=_0x3ffcf0;const _0x23cee0=_0x30405d[_0x5e3438(0x3a2)],_0xae9a56=textEncoder[_0x5e3438(0x103)](b64DecodeUnicode(_0x23cee0));_0x30405d[_0x5e3438(0x3a2)]=_0xae9a56;});}return _0x484815;}async[_0x43e0c9(0x2d0)](_0xab0b6,_0x2b9d74){var _0x44f0eb=_0x43e0c9;const {unitID:_0x3a30ec,type:_0x55f3e6,blockID:_0x3c8d83}=_0x2b9d74,_0x38dc4c=this[_0x44f0eb(0x264)]()+'/'+_0x55f3e6+_0x44f0eb(0x40f)+_0x3a30ec+'/block/'+_0x3c8d83;return(await this['_httpService'][_0x44f0eb(0x1c2)](_0x38dc4c))['body'];}async[_0x43e0c9(0x128)](_0x3d8917,_0x58fb5d){var _0x477141=_0x43e0c9;const {unitID:_0x153b96,type:_0x39ec66,blockID:_0x2bccfb}=_0x58fb5d,_0x23b4e2=this['_getAPIPrefix']()+'/block/'+_0x39ec66+_0x477141(0x40f)+_0x153b96+_0x477141(0x2e8)+_0x2bccfb;return(await this[_0x477141(0x141)][_0x477141(0x1c2)](_0x23b4e2))['body'];}async[_0x43e0c9(0xfc)](_0x73763c,_0x38e023){var _0xcaee5d=_0x43e0c9;const {unitID:_0x274050,type:_0x45c531,from:_0x39d17d,to:_0xc27716}=_0x38e023,_0x8d7954=this[_0xcaee5d(0x264)]()+'/'+_0x45c531+_0xcaee5d(0x40f)+_0x274050+'/fetchmissing?from='+_0x39d17d+'&to='+_0xc27716;return(await this[_0xcaee5d(0x141)]['get'](_0x8d7954))['body'];}[_0x43e0c9(0x347)](){var _0x598177=_0x43e0c9,_0x420cc8;return(_0x420cc8=this[_0x598177(0x249)][_0x598177(0x15f)](SNAPSHOT_URL_KEY))!=null?_0x420cc8:this[_0x598177(0x264)]();}[_0x43e0c9(0x264)](){var _0xabc0a1=_0x43e0c9,_0x2ac7eb,_0x1c03c5;const _0x227470=this['_configService'][_0xabc0a1(0x15f)](SNAPSHOT_SERVER_URL_KEY),_0xc73edc=this['_configService']['getConfig'](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x1c03c5=(_0x2ac7eb=_0xc73edc==null?void 0x0:_0xc73edc['snapshotServerUrl'])!=null?_0x2ac7eb:_0x227470)!=null?_0x1c03c5:DEFAULT_SNAPSHOT_SERVER_URL;}async['getResourcesRequest'](_0xaf6c95,_0x56cbbd){var _0x3e9aff=_0x43e0c9;const _0x40cbd5=_0x3e9aff(0x3e2)+_0x56cbbd[_0x3e9aff(0x3b0)]+_0x3e9aff(0x40f)+_0x56cbbd['unitID']+_0x3e9aff(0x304);return(await this[_0x3e9aff(0x141)]['get'](_0x40cbd5,{'params':{'resourceId':JSON[_0x3e9aff(0xff)](_0x56cbbd[_0x3e9aff(0x167)])}}))[_0x3e9aff(0x415)];}['saveSnapshot'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x43e0c9(0x44a)](){var _0x46831c=_0x43e0c9;throw new Error(_0x46831c(0x448));}[_0x43e0c9(0x38f)](){var _0x372632=_0x43e0c9;throw new Error(_0x372632(0x448));}[_0x43e0c9(0x3c8)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['getLatestCsReqIdBySid'](){var _0x18fb57=_0x43e0c9;throw new Error(_0x18fb57(0x448));}},__name(_a25,'SnapshotServerOverHTTPService'),_a25);SnapshotServerOverHTTPService=__decorateClass$2([__decorateParam$2(0x0,IConfigService),__decorateParam$2(0x1,Inject(HTTPService))],SnapshotServerOverHTTPService);var __defProp$1=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc$1=Object[_0x43e0c9(0x33e)],__decorateClass$1=__name((_0x3faac7,_0x2f159b,_0x5dbac3,_0x4b95af)=>{var _0x394c6d=_0x43e0c9;for(var _0x1ddf9a=_0x4b95af>0x1?void 0x0:_0x4b95af?__getOwnPropDesc$1(_0x2f159b,_0x5dbac3):_0x2f159b,_0x23b25a=_0x3faac7[_0x394c6d(0x233)]-0x1,_0x179765;_0x23b25a>=0x0;_0x23b25a--)(_0x179765=_0x3faac7[_0x23b25a])&&(_0x1ddf9a=(_0x4b95af?_0x179765(_0x2f159b,_0x5dbac3,_0x1ddf9a):_0x179765(_0x1ddf9a))||_0x1ddf9a);return _0x4b95af&&_0x1ddf9a&&__defProp$1(_0x2f159b,_0x5dbac3,_0x1ddf9a),_0x1ddf9a;},_0x43e0c9(0x2ac)),__decorateParam$1=__name((_0x448f6c,_0x27f442)=>(_0x4d5f56,_0x4f2e27)=>_0x27f442(_0x4d5f56,_0x4f2e27,_0x448f6c),_0x43e0c9(0x43b)),_a26;let CollaborativeUndoRedoService=(_a26=class extends LocalUndoRedoService{constructor(_0x3f7de7,_0x262490,_0x51fdab,_0x52290c,_0x80b5f1){var _0x5ed166=_0x43e0c9;super(_0x3f7de7,_0x262490,_0x51fdab),this[_0x5ed166(0x345)]=_0x52290c,this['_logService']=_0x80b5f1;}[_0x43e0c9(0x206)](_0x1efed1,_0x5e9ff3){var _0x5f5a12=_0x43e0c9;const _0x54d6fe=this['_getUndoStack'](_0x1efed1);if(_0x54d6fe)try{const _0x14aff9=this['_transformStack'](_0x54d6fe,_0x5e9ff3);this[_0x5f5a12(0x1a2)](_0x1efed1,_0x14aff9);}catch(_0x28261a){this[_0x5f5a12(0x11f)][_0x5f5a12(0x1c8)]('[CollaborationUndoRedoService]',_0x28261a),this[_0x5f5a12(0x219)](_0x1efed1);}const _0x560e6e=this[_0x5f5a12(0x2e6)](_0x1efed1);if(_0x560e6e)try{const _0x1a6362=this[_0x5f5a12(0x3b9)](_0x560e6e,_0x5e9ff3);this[_0x5f5a12(0x193)](_0x1efed1,_0x1a6362);}catch(_0x2a83af){this[_0x5f5a12(0x11f)]['error'](_0x2a83af),this[_0x5f5a12(0x437)](_0x1efed1);}}[_0x43e0c9(0x219)](_0x4e31b5){var _0x2ddb55=_0x43e0c9;const _0x2d350f=this[_0x2ddb55(0x34f)](_0x4e31b5);_0x2d350f&&(_0x2d350f['length']=0x0,this['_updateStatus']());}[_0x43e0c9(0x437)](_0x5e2316){var _0x20008e=_0x43e0c9;const _0x3ab21c=this[_0x20008e(0x2e6)](_0x5e2316);_0x3ab21c&&(_0x3ab21c['length']=0x0,this[_0x20008e(0x239)]());}[_0x43e0c9(0x1a2)](_0x1a75ef,_0x5322f3){this['_undoStacks']['set'](_0x1a75ef,_0x5322f3),this['_updateStatus']();}[_0x43e0c9(0x193)](_0x4e01c9,_0x5f57b8){var _0x2eda07=_0x43e0c9;this[_0x2eda07(0x129)][_0x2eda07(0x116)](_0x4e01c9,_0x5f57b8),this[_0x2eda07(0x239)]();}[_0x43e0c9(0x3b9)](_0x36fa99,_0x1b9b8f){var _0x1c7587=_0x43e0c9;const _0x356296=[];let _0x52fd09=_0x1b9b8f,_0x117dc7=_0x1b9b8f;for(let _0x52525d=_0x36fa99[_0x1c7587(0x233)]-0x1;_0x52525d>=0x0;_0x52525d--){const {unitID:_0x45c863,undoMutations:_0x2a5413,redoMutations:_0x1305af}=_0x36fa99[_0x52525d],_0xe5d665=this[_0x1c7587(0x345)][_0x1c7587(0x346)](_0x52fd09,_0x2a5413),_0x4d0a44=this[_0x1c7587(0x345)]['transformMutationsWithChangeset'](_0x117dc7,_0x1305af);if(isTransformMutationsWithChangesetFailure(_0xe5d665)||isTransformMutationsWithChangesetFailure(_0x4d0a44)){this[_0x1c7587(0x11f)][_0x1c7587(0x1c8)](_0x1c7587(0x2d7),_0x1c7587(0x318),_0xe5d665,_0x4d0a44);break;}_0x52fd09=_0xe5d665[_0x1c7587(0x1ef)],_0x117dc7=_0x4d0a44[_0x1c7587(0x1ef)],_0x356296[_0x1c7587(0x119)]({'unitID':_0x45c863,'undoMutations':_0xe5d665[_0x1c7587(0xfa)],'redoMutations':_0x4d0a44[_0x1c7587(0xfa)]});}return _0x356296[_0x1c7587(0x3c7)]();}},__name(_a26,'CollaborativeUndoRedoService'),_a26);CollaborativeUndoRedoService=__decorateClass$1([__decorateParam$1(0x0,IUniverInstanceService),__decorateParam$1(0x1,ICommandService),__decorateParam$1(0x2,IContextService),__decorateParam$1(0x3,ITransformService),__decorateParam$1(0x4,ILogService)],CollaborativeUndoRedoService);var __defProp2=Object[_0x43e0c9(0x1bc)],__getOwnPropDesc=Object[_0x43e0c9(0x33e)],__defNormalProp2=__name((_0x13b1c2,_0x21e6de,_0x5e3369)=>_0x21e6de in _0x13b1c2?__defProp2(_0x13b1c2,_0x21e6de,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5e3369}):_0x13b1c2[_0x21e6de]=_0x5e3369,_0x43e0c9(0x3e3)),__decorateClass=__name((_0x4efefe,_0x3884b8,_0x50c52e,_0x3653ee)=>{for(var _0x52240a=_0x3653ee>0x1?void 0x0:_0x3653ee?__getOwnPropDesc(_0x3884b8,_0x50c52e):_0x3884b8,_0x128efc=_0x4efefe['length']-0x1,_0xc1974a;_0x128efc>=0x0;_0x128efc--)(_0xc1974a=_0x4efefe[_0x128efc])&&(_0x52240a=(_0x3653ee?_0xc1974a(_0x3884b8,_0x50c52e,_0x52240a):_0xc1974a(_0x52240a))||_0x52240a);return _0x3653ee&&_0x52240a&&__defProp2(_0x3884b8,_0x50c52e,_0x52240a),_0x52240a;},_0x43e0c9(0x18b)),__decorateParam=__name((_0x5dc78d,_0xbb80bf)=>(_0x467ea9,_0x3ec54e)=>_0xbb80bf(_0x467ea9,_0x3ec54e,_0x5dc78d),_0x43e0c9(0x278)),__publicField2=__name((_0x764111,_0x5b4e2a,_0x45bedb)=>__defNormalProp2(_0x764111,_0x5b4e2a+'',_0x45bedb),_0x43e0c9(0x311));const PLUGIN_NAME='UNIVER_COLLABORATION_CLIENT_PLUGIN';var _a27;let UniverCollaborationClientPlugin=(_a27=class extends Plugin{constructor(_0x235843=defaultPluginConfig,_0x5e3b80,_0x52364a,_0x111de5){var _0x9208f7=_0x43e0c9;super(),this['_config']=_0x235843,this[_0x9208f7(0x11f)]=_0x5e3b80,this['_injector']=_0x52364a,this[_0x9208f7(0x249)]=_0x111de5;const {..._0x3b59ff}=_0x523ccd({},defaultPluginConfig,this[_0x9208f7(0x139)]);this[_0x9208f7(0x249)][_0x9208f7(0x366)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,_0x3b59ff);}[_0x43e0c9(0x368)](){var _0x244b05=_0x43e0c9;this[_0x244b05(0x40c)](),this[_0x244b05(0x36f)]();}[_0x43e0c9(0x40c)](){var _0x4d39e6=_0x43e0c9,_0x5c24ca,_0x54419b,_0x211bb9,_0x39270b;this['_injector'][_0x4d39e6(0x3ae)](IUndoRedoService)&&this['_logService'][_0x4d39e6(0x1c8)](_0x4d39e6(0x224),_0x4d39e6(0x1f8));const _0x187877=mergeOverrideWithDependencies([[IUndoRedoService,{'useClass':CollaborativeUndoRedoService}],[CollaborationSessionService],[MemberService],[SheetTransformSelectionsService],[AuthServerService],[DomainRequestService],[CommentService],[PermissionService],[CollaborationUIEventService],[DataLoaderService],[ICollaborationSocketService,{'useClass':(_0x54419b=(_0x5c24ca=this[_0x4d39e6(0x139)])==null?void 0x0:_0x5c24ca[_0x4d39e6(0x435)])!=null?_0x54419b:CollaborationSocketService}],[ISnapshotServerService,{'useClass':SnapshotServerOverHTTPService}],[IAuthzIoService,{'useClass':AuthzIoHttpService}],[IImageIoService,{'useClass':CollaborationImageIoService}],[IMentionIOService,{'useClass':MentionIoHttpService}],[CollaborationController],[FileNameController]],(_0x211bb9=this[_0x4d39e6(0x139)])==null?void 0x0:_0x211bb9[_0x4d39e6(0x238)]);if(!((_0x39270b=this[_0x4d39e6(0x139)])!=null&&_0x39270b['enableSingleActiveInstanceLock'])){const _0x58b8e2=_0x187877[_0x4d39e6(0x20f)](([_0x211462])=>_0x211462===ISingleActiveUnitService);_0x58b8e2!==-0x1&&_0x187877[_0x4d39e6(0x414)](_0x58b8e2,0x1);}registerDependencies(this[_0x4d39e6(0x403)],_0x187877);}[_0x43e0c9(0x36f)](){var _0x4c3c16=_0x43e0c9,_0x33bc21,_0x5a3b34,_0x526c89;this[_0x4c3c16(0x403)][_0x4c3c16(0x1c2)](HTTPService)[_0x4c3c16(0x16e)]({'priority':0x14,'interceptor':ThresholdInterceptorFactory({'maxParallel':0x6})}),(_0x33bc21=this['_config'])!=null&&_0x33bc21[_0x4c3c16(0x42a)]||(_0x5a3b34=this['_injector']['get'](ILocalCacheService,Quantity[_0x4c3c16(0x204)]))==null||_0x5a3b34['disableLocalCache'](),(_0x526c89=this['_config'])!=null&&_0x526c89[_0x4c3c16(0x208)]&&touchDependencies(this[_0x4c3c16(0x403)],[[AuthServerService]]),touchDependencies(this[_0x4c3c16(0x403)],[[DomainRequestService],[CollaborationController],[PermissionService]]);}},__name(_a27,'UniverCollaborationClientPlugin'),_a27);__publicField2(UniverCollaborationClientPlugin,_0x43e0c9(0x2ab),PLUGIN_NAME),UniverCollaborationClientPlugin=__decorateClass([DependentOn(UniverCollaborationPlugin,UniverSheetsPlugin,UniverNetworkPlugin),__decorateParam(0x1,ILogService),__decorateParam(0x2,Inject(Injector)),__decorateParam(0x3,IConfigService)],UniverCollaborationClientPlugin);export{AUTHZ_URL_KEY,AuthzIoHttpService,AwaitingState,AwaitingWithPendingState,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,COLLAB_SUBMIT_CHANGESET_URL_KEY,COLLAB_WEB_SOCKET_URL_KEY,CollaborationController,CollaborationEntity,CollaborationImageIoService,CollaborationSession,CollaborationSessionService,CollaborationSocketService,CollaborationStatus,CollaborationUIEventId,CollaborationUIEventService,CollaborativeUndoRedoService,CommentService,ConflictState,DEFAULT_COLLAB_WEB_SOCKET_URL,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT,DataLoaderService,DocCollaborationEntity,FetchingMissState,HEARTBEAT_INTERVAL_KEY,HEARTBEAT_TIMEOUT_KEY,ICollaborationSocketService,ILocalCacheService,INetworkConditionService,ISingleActiveUnitService,LOCAL_CACHE_INTERVAL,LOCAL_CACHE_INTERVAL_KEY,LOGIN_URL_KEY,MemberService,MentionIoHttpService,OfflineState,PendingState,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY,RETRY_CONNECTING_MAX_COUNT_KEY,SEND_CHANGESET_TIMEOUT_KEY,SNAPSHOT_SERVER_URL_KEY,SNAPSHOT_URL_KEY,SessionStatus,SheetCollaborationEntity,SheetTransformSelectionsService,SnapshotServerOverHTTPService,SyncedState,UnitStatus,UniverCollaborationClientPlugin,deserializeToCombResponse,getLocalCacheKey,serializeCombRequest};
|