@univerjs-pro/collaboration-client 0.4.0-nightly.202410141606 → 0.4.0-nightly.202410151606

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x2da18b=_0x44b4;(function(_0x2f6bb3,_0x42ed5e){const _0x512045=_0x44b4,_0x49b530=_0x2f6bb3();while(!![]){try{const _0x30d6b9=parseInt(_0x512045(0x415))/0x1+-parseInt(_0x512045(0x374))/0x2*(-parseInt(_0x512045(0x3ea))/0x3)+parseInt(_0x512045(0x198))/0x4*(parseInt(_0x512045(0x48d))/0x5)+-parseInt(_0x512045(0x211))/0x6*(parseInt(_0x512045(0x232))/0x7)+-parseInt(_0x512045(0x13b))/0x8+-parseInt(_0x512045(0x1ac))/0x9+parseInt(_0x512045(0x359))/0xa*(-parseInt(_0x512045(0x26b))/0xb);if(_0x30d6b9===_0x42ed5e)break;else _0x49b530['push'](_0x49b530['shift']());}catch(_0x4931d9){_0x49b530['push'](_0x49b530['shift']());}}}(_0x10c1,0x4a2c5));var zs=Object[_0x2da18b(0x151)],Zs=(_0x5e2f1f,_0x37df1a,_0x350520)=>_0x37df1a in _0x5e2f1f?zs(_0x5e2f1f,_0x37df1a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x350520}):_0x5e2f1f[_0x37df1a]=_0x350520,l=(_0xc864d6,_0x26473f,_0x19c3bb)=>Zs(_0xc864d6,typeof _0x26473f!=_0x2da18b(0x33c)?_0x26473f+'':_0x26473f,_0x19c3bb);import{createIdentifier as _0x4f53b0,Inject as _0x24691e,Disposable as _0x3bc0d2,DisposableCollection as _0x15e5d9,toDisposable as _0xc09fc4,IConfigService as _0x4b95b7,ILogService as _0x16c619,UserManagerService as _0x2d6772,UniverInstanceType as _0x43baa3,IUniverInstanceService as _0x4af863,LocaleService as _0x1695f3,Optional as _0x1be607,RxDisposable as _0x13b3a6,Injector as _0x129c7a,Tools as _0x5ee8c7,ILocalStorageService as _0x3c9fa7,ICommandService as _0x18280b,JSONX as _0x34e2cd,CommandType as _0x109a6f,IPermissionService as _0x1892f6,IUndoRedoService as _0x37a9c2,sequenceExecute as _0x532db3,debounce as _0x77ae19,Rectangle as _0x34bc57,COLORS as _0x2af6c8,ColorKit as _0x581e9c,ThemeService as _0x5074d3,fromEventSubject as _0x10c8e6,useDependency as _0x2bb079,connectInjector as _0x35553f,Workbook as _0x40cd22,isInternalEditorID as _0x35eafb,LocalUndoRedoService as _0x122a1c,IContextService as _0x5eded2,DependentOn as _0x241aac,Plugin as _0x390594,touchDependencies as _0x120347,IAuthzIoService as _0x480b72,mergeOverrideWithDependencies as _0x42ac03}from'@univerjs/core';import{Subject as _0x526cd2,merge as _0x5799ee,takeUntil as _0x1cea38,BehaviorSubject as _0x295ce3,distinctUntilChanged as _0x49c724,fromEvent as _0x267a81,map as _0x63f2b0,shareReplay as _0x503b15,take as _0x409ffd,of as _0x2576f8,debounceTime as _0x10aa2e,filter as _0x2d3c1f,switchMap as _0xe06e10,combineLatest as _0x599ee5,concatMap as _0x3e80de,mapTo as _0x144e4a}from'rxjs';import{map as _0x5ddac4,take as _0x3101c1,filter as _0x333799,delay as _0x18a894,throttleTime as _0x71005e,takeUntil as _0x17e7c5,switchMap as _0x1e9fa8}from'rxjs/operators';import{MessageType as _0x35eeb1,Tooltip as _0xc9e9c9}from'@univerjs/design';import{IBeforeCloseService as _0x569db2,IMessageService as _0x349d24,INotificationService as _0x42d964,useObservable as _0x3636b2,BuiltInUIPart as _0x23ebca,IUIPartsService as _0x8ec652}from'@univerjs/ui';import{HTTPService as _0xa0ce64,WebSocketService as _0x2e1788,MergeInterceptorFactory as _0x618fae,HTTPRequest as _0x4e3080,IHTTPImplementation as _0x17534e,XHRHTTPImplementation as _0x79e78f,ThresholdInterceptorFactory as _0x337f4a}from'@univerjs/network';import{CollaborationEvent as _0x128ecb,parseChangesetToProtocol as _0x5d8917,ISnapshotServerService as _0x2cde65,isTransformMutationFailure as _0x43ac9d,isTransformMutationsWithChangesetSuccess as _0x524343,ITransformService as _0x418a36,RevisionService as _0x40a032,mapDocumentTypeToUniverType as _0x31e3bf,isTransformChangesetsSuccess as _0x51238a,CompressMutationService as _0x463628,parseProtocolChangeset as _0x373326,SnapshotService as _0x916a77,textEncoder as _0x4e00c2,b64DecodeUnicode as _0x24869c,isTransformMutationsWithChangesetFailure as _0x19d75d,UniverCollaborationPlugin as _0x4768dc}from'@univerjs-pro/collaboration';import{ITelemetryService as _0x3014d0}from'@univerjs/telemetry';import{DocSelectionManagerService as _0xd0d12d,RichTextEditingMutation as _0x11f4dd,SetTextSelectionsOperation as _0x12c35b,DocSkeletonManagerService as _0x386e72}from'@univerjs/docs';import{DocIMEInputManagerService as _0x188ac7,DocStateChangeManagerService as _0x417486,NodePositionConvertToCursor as _0x1ffb2a,isValidRectRange as _0x10f419,NodePositionConvertToRectRange as _0x2619ed,TEXT_RANGE_LAYER_INDEX as _0x470ec7,SetDocZoomRatioOperation as _0x1acd90}from'@univerjs/docs-ui';import{SheetsSelectionsService as _0x19b20b,SetSelectionsOperation as _0x3c7ab3,InsertSheetMutation as _0x59880b,EmptyMutation as _0x4af40d,WorkbookEditablePermission as _0x182d13,RefRangeService as _0x10ec28,EffectRefRangId as _0x3b7f59,handleIRemoveRow as _0x4f44cf,handleIRemoveCol as _0x4fb4f8,handleMoveRange as _0x3f4a82,handleInsertRow as _0x484fb6,handleInsertRangeMoveRight as _0x41db6a,handleInsertRangeMoveDown as _0x3a8b0e,handleInsertCol as _0x287ebd,handleDeleteRangeMoveUp as _0x19e925,handleDeleteRangeMoveLeft as _0x20d302,runRefRangeMutations as _0x3f0515,SetWorksheetActivateCommand as _0x390cc8}from'@univerjs/sheets';import{IRenderManagerService as _0x4031fb,Shape as _0x24438a,Rect as _0x2eb7b4,getColor as _0x35c7a2,RegularPolygon as _0x5f1bc5,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x44019e,Vector2 as _0x2adc66}from'@univerjs/engine-render';import{ImageSourceType as _0x4dff21,ImageUploadStatusType as _0x546962,IImageIoService as _0x330a1d}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x1f9a73,serializeRangeWithSheet as _0x811c4}from'@univerjs/engine-formula';import{SheetSkeletonManagerService as _0x17b47d,VIEWPORT_KEY as _0x48000c,getCoordByCell as _0x364cb7,getSheetObject as _0x41bfa0,SheetPermissionInitController as _0x25e324}from'@univerjs/sheets-ui';import _0x1e38e7,{forwardRef as _0x14ba75,useRef as _0xe64086,createElement as _0x1d57c6,useCallback as _0x54fd35}from'react';import{IRemoteInstanceService as _0x5658b1}from'@univerjs/rpc';import{getAttachHeader as _0x1c94eb}from'@univerjs-pro/license';const dn='SNAPSHOT_SERVER_URL_KEY',fn='/universer-api/snapshot',mn='SNAPSHOT_URL_KEY',Oa=_0x2da18b(0x1b5),gn=0x7d0,Sn=_0x2da18b(0x35f),pn=_0x2da18b(0x292),vn='HEARTBEAT_INTERVAL',In=0x7530,Ns=_0x2da18b(0x2b4),Us=0x4e20,En=0x4e20,Cn='RETRY_CONNECTING_MAX_COUNT',bn=0x3,Tn=_0x2da18b(0x264),Rn=0x3e8,On=_0x2da18b(0x391),Dn='/universer-api/comb',wn='LOGIN_URL_KEY',Pn=_0x2da18b(0x3bd);var Ms=(_0x319ab2=>(_0x319ab2[_0x319ab2['UNDEFINED']=0x0]=_0x2da18b(0x2e3),_0x319ab2[_0x319ab2['OK']=0x1]='OK',_0x319ab2[_0x319ab2[_0x2da18b(0x1bd)]=0x2]=_0x2da18b(0x1bd),_0x319ab2[_0x319ab2[_0x2da18b(0x14e)]=0x3]=_0x2da18b(0x14e),_0x319ab2[_0x319ab2['NOT_FOUND']=0x4]=_0x2da18b(0x489),_0x319ab2[_0x319ab2['UNAUTHENTICATED']=0x5]=_0x2da18b(0x178),_0x319ab2[_0x319ab2[_0x2da18b(0x228)]=0x6]='ALREADY_EXISTS',_0x319ab2[_0x319ab2[_0x2da18b(0x239)]=0x7]=_0x2da18b(0x239),_0x319ab2[_0x319ab2['TOO_MANY_REQUESTS']=0x8]=_0x2da18b(0x3bb),_0x319ab2[_0x319ab2[_0x2da18b(0x23f)]=0x9]=_0x2da18b(0x23f),_0x319ab2[_0x319ab2[_0x2da18b(0x262)]=0x1389]=_0x2da18b(0x262),_0x319ab2[_0x319ab2['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x2da18b(0x3ba),_0x319ab2[_0x319ab2['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x2da18b(0x2ac),_0x319ab2[_0x319ab2[_0x2da18b(0x2d3)]=0x1b59]=_0x2da18b(0x2d3),_0x319ab2[_0x319ab2[_0x2da18b(0x3e5)]=0x1b5a]=_0x2da18b(0x3e5),_0x319ab2[_0x319ab2[_0x2da18b(0x1a0)]=0x1b5b]=_0x2da18b(0x1a0),_0x319ab2[_0x319ab2[_0x2da18b(0x345)]=0x1b5c]=_0x2da18b(0x345),_0x319ab2[_0x319ab2[_0x2da18b(0x15b)]=0x1f41]=_0x2da18b(0x15b),_0x319ab2[_0x319ab2['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x2da18b(0x40a),_0x319ab2[_0x319ab2[_0x2da18b(0x190)]=0x232a]=_0x2da18b(0x190),_0x319ab2[_0x319ab2[_0x2da18b(0x12f)]=0x232b]=_0x2da18b(0x12f),_0x319ab2[_0x319ab2[_0x2da18b(0x426)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x319ab2[_0x319ab2[_0x2da18b(0x32f)]=0x232d]=_0x2da18b(0x32f),_0x319ab2[_0x319ab2[_0x2da18b(0x2bc)]=0x2711]=_0x2da18b(0x2bc),_0x319ab2[_0x319ab2[_0x2da18b(0x48f)]=0x2712]=_0x2da18b(0x48f),_0x319ab2[_0x319ab2[_0x2da18b(0x1f6)]=0x2713]=_0x2da18b(0x1f6),_0x319ab2[_0x319ab2[_0x2da18b(0x27b)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x319ab2[_0x319ab2['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x319ab2))(Ms||{}),H=(_0x29add4=>(_0x29add4[_0x29add4[_0x2da18b(0x22b)]=0x0]=_0x2da18b(0x22b),_0x29add4[_0x29add4['UNIVER_DOC']=0x1]='UNIVER_DOC',_0x29add4[_0x29add4[_0x2da18b(0x2d4)]=0x2]=_0x2da18b(0x2d4),_0x29add4[_0x29add4[_0x2da18b(0x41a)]=0x3]=_0x2da18b(0x41a),_0x29add4[_0x29add4[_0x2da18b(0x395)]=0x4]='UNIVER_PROJECT',_0x29add4[_0x29add4[_0x2da18b(0x311)]=-0x1]=_0x2da18b(0x311),_0x29add4))(H||{}),I=(_0x417b23=>(_0x417b23[_0x417b23[_0x2da18b(0x1a5)]=0x0]=_0x2da18b(0x1a5),_0x417b23[_0x417b23[_0x2da18b(0x3c4)]=0x1]='HELLO',_0x417b23[_0x417b23[_0x2da18b(0x2c9)]=0x2]=_0x2da18b(0x2c9),_0x417b23[_0x417b23[_0x2da18b(0x307)]=0x3]=_0x2da18b(0x307),_0x417b23[_0x417b23['INGEST']=0x4]='INGEST',_0x417b23[_0x417b23[_0x2da18b(0x316)]=0x5]='HEARTBEAT',_0x417b23[_0x417b23[_0x2da18b(0x270)]=0x6]=_0x2da18b(0x270),_0x417b23[_0x417b23[_0x2da18b(0x311)]=-0x1]=_0x2da18b(0x311),_0x417b23))(I||{}),kt=(_0x109008=>(_0x109008[_0x109008['UNKNOWN_CODE']=0x0]=_0x2da18b(0x40e),_0x109008[_0x109008['OK']=0x1]='OK',_0x109008[_0x109008[_0x2da18b(0x48a)]=0x2]=_0x2da18b(0x48a),_0x109008[_0x109008['UNRECOGNIZED']=-0x1]=_0x2da18b(0x311),_0x109008))(kt||{}),As=(_0x3b5e76=>(_0x3b5e76[_0x3b5e76[_0x2da18b(0x3da)]=0x0]='Undefined',_0x3b5e76[_0x3b5e76[_0x2da18b(0x32c)]=0x1]='HttpImport',_0x3b5e76[_0x3b5e76[_0x2da18b(0x451)]=0x2]=_0x2da18b(0x451),_0x3b5e76[_0x3b5e76[_0x2da18b(0x3b2)]=0x3]=_0x2da18b(0x3b2),_0x3b5e76[_0x3b5e76[_0x2da18b(0x200)]=0x4]=_0x2da18b(0x200),_0x3b5e76[_0x3b5e76['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x3b5e76))(As||{});const L='collaboration-client.config',yn={};function Nn(_0x2b0a77){const _0x3729ec=_0x2da18b;var _0x594e7e,_0x481e87,_0x2efcb5,_0x1b1be7;const _0xa4e39b=_0x2b0a77['data'],_0x3aad80=JSON[_0x3729ec(0x2f1)](_0xa4e39b);switch(_0x3aad80[_0x3729ec(0x3e8)]){case I[_0x3729ec(0x316)]:case I[_0x3729ec(0x3c4)]:{const _0x53bbb4=_0x3aad80[_0x3729ec(0x273)];return{..._0x3aad80,'data':_0x53bbb4,'cmd':_0x3aad80['cmd']};}case I['JOIN']:{const _0x1fa5e5=_0x3aad80[_0x3729ec(0x468)];return{..._0x3aad80,'data':_0x1fa5e5,'cmd':_0x3aad80[_0x3729ec(0x3e8)]};}case I[_0x3729ec(0x270)]:{const _0x38aa87=_0x3aad80[_0x3729ec(0x1f9)];switch(_0x38aa87[_0x3729ec(0x27d)]){case _0x128ecb[_0x3729ec(0x192)]:return{..._0x3aad80,'data':{..._0x38aa87,'data':(_0x594e7e=_0x38aa87[_0x3729ec(0x364)])==null?void 0x0:_0x594e7e['cs']},'cmd':_0x3aad80[_0x3729ec(0x3e8)]};case _0x128ecb[_0x3729ec(0x1c4)]:return{..._0x3aad80,'data':{..._0x38aa87,'data':(_0x481e87=_0x38aa87['csAckEvent'])==null?void 0x0:_0x481e87['cs']},'cmd':_0x3aad80[_0x3729ec(0x3e8)]};case _0x128ecb[_0x3729ec(0x2e8)]:return{..._0x3aad80,'data':{..._0x38aa87,'data':(_0x2efcb5=_0x38aa87[_0x3729ec(0x310)])==null?void 0x0:_0x2efcb5['cs']},'cmd':_0x3aad80[_0x3729ec(0x3e8)]};case _0x128ecb['CHANGESET_REJ']:return{..._0x3aad80,'data':{..._0x38aa87,'data':(_0x1b1be7=_0x38aa87[_0x3729ec(0x1ab)])==null?void 0x0:_0x1b1be7['cs']},'cmd':_0x3aad80[_0x3729ec(0x3e8)]};case _0x128ecb[_0x3729ec(0x360)]:return{..._0x3aad80,'data':{..._0x38aa87,'data':_0x38aa87[_0x3729ec(0x477)]},'cmd':_0x3aad80[_0x3729ec(0x3e8)]};case _0x128ecb[_0x3729ec(0x1cd)]:return{..._0x3aad80,'data':{..._0x38aa87,'data':_0x38aa87[_0x3729ec(0x349)]},'cmd':_0x3aad80['cmd']};case _0x128ecb['USERS_LEAVE']:return{..._0x3aad80,'data':{..._0x38aa87,'data':_0x38aa87[_0x3729ec(0x25c)]},'cmd':_0x3aad80[_0x3729ec(0x3e8)]};case _0x128ecb[_0x3729ec(0x149)]:return{..._0x3aad80,'data':{..._0x38aa87,'data':_0x38aa87['liveShareNewHost']},'cmd':_0x3aad80[_0x3729ec(0x3e8)]};case _0x128ecb[_0x3729ec(0x36a)]:case _0x128ecb[_0x3729ec(0x2f0)]:return{..._0x3aad80,'data':{..._0x38aa87,'data':_0x38aa87[_0x3729ec(0x2a0)]},'cmd':_0x3aad80[_0x3729ec(0x3e8)]};case _0x128ecb[_0x3729ec(0x3af)]:return{..._0x3aad80,'data':{..._0x38aa87,'data':_0x38aa87[_0x3729ec(0x1bc)]},'cmd':_0x3aad80['cmd']};case _0x128ecb[_0x3729ec(0x2c6)]:return{..._0x3aad80,'data':_0x38aa87,'cmd':_0x3aad80[_0x3729ec(0x3e8)]};case _0x128ecb[_0x3729ec(0x220)]:return{..._0x3aad80,'data':{..._0x38aa87,'data':_0x38aa87[_0x3729ec(0x377)]},'cmd':_0x3aad80[_0x3729ec(0x3e8)]};case _0x128ecb['UPDATE_PERMISSION_OBJ']:return{..._0x3aad80,'data':{..._0x38aa87,'data':_0x38aa87['updatePermissionObjEvent']},'cmd':_0x3aad80['cmd']};case _0x128ecb[_0x3729ec(0x1ce)]:return{..._0x3aad80,'data':{..._0x38aa87,'data':_0x38aa87[_0x3729ec(0x17d)]},'cmd':_0x3aad80[_0x3729ec(0x3e8)]};default:return _0x3aad80;}}default:return _0x3aad80;}}function Un(_0x2996d3){const _0x128d08=_0x2da18b;switch(_0x2996d3[_0x128d08(0x3e8)]){case I[_0x128d08(0x316)]:case I[_0x128d08(0x3c4)]:return JSON[_0x128d08(0x2ea)]({'cmd':_0x2996d3['cmd'],'routeKey':_0x2996d3[_0x128d08(0x267)]});case I['INGEST']:{let _0x479ac;switch(_0x2996d3[_0x128d08(0x247)][_0x128d08(0x27d)]){case _0x128ecb[_0x128d08(0x360)]:{_0x479ac={'eventID':_0x128ecb['UPDATE_CURSOR'],'updateCursorEvent':_0x2996d3[_0x128d08(0x247)][_0x128d08(0x247)]};break;}case _0x128ecb['USERS_LEAVE']:{_0x479ac={'eventID':_0x128ecb[_0x128d08(0x3a7)],'leaveEvent':_0x2996d3[_0x128d08(0x247)][_0x128d08(0x247)]};break;}case _0x128ecb[_0x128d08(0x1cd)]:{_0x479ac={'eventID':_0x128ecb['USERS_ENTER'],'joinEvent':_0x2996d3[_0x128d08(0x247)][_0x128d08(0x247)]};break;}case _0x128ecb[_0x128d08(0x149)]:{_0x479ac={'eventID':_0x128ecb[_0x128d08(0x149)],'liveShareNewHost':_0x2996d3['data'][_0x128d08(0x247)]};break;}case _0x128ecb['LIVESHARE_OPERATION']:{_0x479ac={'eventID':_0x128ecb[_0x128d08(0x2f0)],'liveShareOperation':_0x2996d3[_0x128d08(0x247)][_0x128d08(0x247)]};break;}case _0x128ecb[_0x128d08(0x3af)]:{_0x479ac={'eventID':_0x128ecb[_0x128d08(0x3af)],'liveShareTerminate':_0x2996d3[_0x128d08(0x247)][_0x128d08(0x247)]};break;}case _0x128ecb['LIVESHARE_REQUEST_HOST']:{_0x479ac={'eventID':_0x128ecb['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x2996d3['data'][_0x128d08(0x247)]};break;}case _0x128ecb[_0x128d08(0x36a)]:{_0x479ac={'eventID':_0x128ecb['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x479ac={'eventID':_0x2996d3[_0x128d08(0x247)][_0x128d08(0x27d)]};}return JSON[_0x128d08(0x2ea)]({'cmd':_0x2996d3[_0x128d08(0x3e8)],'routeKey':_0x2996d3[_0x128d08(0x267)],'collaMsg':_0x479ac});}case I[_0x128d08(0x2c9)]:return JSON[_0x128d08(0x2ea)]({'cmd':_0x2996d3[_0x128d08(0x3e8)],'routeKey':_0x2996d3['routeKey'],'joinReq':_0x2996d3[_0x128d08(0x247)]});case I[_0x128d08(0x307)]:return JSON[_0x128d08(0x2ea)]({'cmd':_0x2996d3[_0x128d08(0x3e8)],'routeKey':_0x2996d3[_0x128d08(0x267)],'leaveReq':_0x2996d3['data']});default:throw new Error(_0x128d08(0x388));}}var Mn=Object[_0x2da18b(0x151)],An=Object[_0x2da18b(0x2b8)],Ln=(_0x4fc695,_0x29e2b1,_0x2d930c,_0x193501)=>{const _0x7e0fe=_0x2da18b;for(var _0x2888be=_0x193501>0x1?void 0x0:_0x193501?An(_0x29e2b1,_0x2d930c):_0x29e2b1,_0x24c09d=_0x4fc695[_0x7e0fe(0x1a8)]-0x1,_0x271ec2;_0x24c09d>=0x0;_0x24c09d--)(_0x271ec2=_0x4fc695[_0x24c09d])&&(_0x2888be=(_0x193501?_0x271ec2(_0x29e2b1,_0x2d930c,_0x2888be):_0x271ec2(_0x2888be))||_0x2888be);return _0x193501&&_0x2888be&&Mn(_0x29e2b1,_0x2d930c,_0x2888be),_0x2888be;},Re=(_0x1451a1,_0x1d8610)=>(_0x1e8f67,_0x183590)=>_0x1d8610(_0x1e8f67,_0x183590,_0x1451a1);const Ls=_0x4f53b0(_0x2da18b(0x47d));function $n(_0x5d0d3a,_0x498b01,_0x2d6bb3){const _0x112d34=_0x2da18b;return _0x5d0d3a+'/'+_0x498b01+_0x112d34(0x413)+_0x2d6bb3+'/new_changes';}let Et=class extends _0x3bc0d2{constructor(_0x5c0f92,_0x3684b6,_0x4681a7,_0x4fa8cc,_0x4919fe){const _0x21baa5=_0x2da18b;super(),this[_0x21baa5(0x230)]=_0x5c0f92,this[_0x21baa5(0x475)]=_0x3684b6,this[_0x21baa5(0x205)]=_0x4681a7,this[_0x21baa5(0x356)]=_0x4fa8cc,this[_0x21baa5(0x3f0)]=_0x4919fe;}[_0x2da18b(0x248)](_0x2695f4){const _0x13a138=_0x2da18b,_0x2ddd55=this[_0x13a138(0x475)][_0x13a138(0x248)](_0x2695f4);if(!_0x2ddd55)throw new Error(_0x13a138(0x24e));const _0x161acb=new _0x15e5d9(),_0x147f2a=new _0x526cd2();_0x161acb[_0x13a138(0x358)](_0x2ddd55['close$'][_0x13a138(0x146)](_0x224513=>_0x147f2a[_0x13a138(0x33a)](_0x224513))),_0x161acb['add'](_0xc09fc4(()=>_0x147f2a['complete']()));const _0x580410=new _0x526cd2();_0x161acb[_0x13a138(0x358)](_0x2ddd55[_0x13a138(0x194)][_0x13a138(0x146)](_0x12b263=>_0x580410[_0x13a138(0x33a)](_0x12b263))),_0x161acb['add'](_0xc09fc4(()=>_0x580410[_0x13a138(0x3fd)]()));const _0x22ef1b=new _0x526cd2();_0x161acb[_0x13a138(0x358)](_0x2ddd55[_0x13a138(0x346)]['subscribe'](_0xc0936b=>{const _0x507a60=_0x13a138,_0x5aa513=Nn(_0xc0936b);_0x22ef1b[_0x507a60(0x33a)](_0x5aa513);})),_0x161acb[_0x13a138(0x358)](_0xc09fc4(()=>_0x22ef1b[_0x13a138(0x3fd)]()));let _0x3af7a0;const _0x2ad498=()=>{const _0x39ce78=_0x13a138;_0x580410['next'](new Event(_0x39ce78(0x168))),_0x147f2a['next'](new CloseEvent(_0x39ce78(0x168))),_0x3af7a0[_0x39ce78(0x31e)]();};return _0x3af7a0={'memberID':'','close$':_0x147f2a[_0x13a138(0x344)](),'error$':_0x580410[_0x13a138(0x344)](),'open$':_0x2ddd55['open$'],'message$':_0x22ef1b[_0x13a138(0x344)](),'send':_0x57d3ba=>{const _0xecab44=_0x13a138;if(_0x57d3ba[_0xecab44(0x3e8)]===I[_0xecab44(0x437)]){if(_0x57d3ba[_0xecab44(0x247)][_0xecab44(0x27d)]===_0x128ecb['SUBMIT_CHANGESET']){this[_0xecab44(0x202)](_0x3af7a0,_0x57d3ba[_0xecab44(0x247)])[_0xecab44(0x2cd)](_0x43ee4b=>{const _0x3ff543=_0xecab44;this[_0x3ff543(0x356)]['error'](_0x43ee4b),_0x2ad498();});return;}if(_0x57d3ba[_0xecab44(0x247)][_0xecab44(0x27d)]===_0x128ecb['FETCH_MISSING']){const _0x44b74c=_0x57d3ba[_0xecab44(0x247)];this[_0xecab44(0x353)](_0x44b74c)[_0xecab44(0x484)](_0x31c206=>{const _0x523f6a=_0xecab44;_0x22ef1b[_0x523f6a(0x33a)]({'cmd':I[_0x523f6a(0x270)],'code':kt['OK'],'routeKey':_0x44b74c[_0x523f6a(0x247)][_0x523f6a(0x1e5)],'routeType':'','data':{'eventID':_0x128ecb['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x31c206}}});})[_0xecab44(0x2cd)](_0x5965f5=>{this['_logService']['error'](_0x5965f5),_0x2ad498();});return;}}_0x2ddd55[_0xecab44(0x1ad)](Un(_0x57d3ba));},'close':()=>{_0x2ddd55['close'](),_0x161acb['dispose']();}},_0x3af7a0;}async[_0x2da18b(0x202)](_0x15fe1b,_0x5e8762){const _0x35f9da=_0x2da18b;var _0x2d8cc7,_0x45d4bc;const {unitType:_0x1ac7c6,unitID:_0x20c08a,changeset:_0x42277a}=_0x5e8762[_0x35f9da(0x247)],_0x89deb9={'unitID':_0x20c08a,'memberID':_0x15fe1b['memberID'],'type':_0x1ac7c6,'changeset':_0x5d8917(_0x42277a)},_0x41a7d4=this[_0x35f9da(0x205)][_0x35f9da(0x1bb)](On),_0x3e5914=this[_0x35f9da(0x205)]['getConfig'](L),_0x19588d=$n((_0x45d4bc=(_0x2d8cc7=_0x3e5914==null?void 0x0:_0x3e5914[_0x35f9da(0x43d)])!=null?_0x2d8cc7:_0x41a7d4)!=null?_0x45d4bc:Dn,_0x1ac7c6,_0x20c08a);try{await this[_0x35f9da(0x230)][_0x35f9da(0x41f)](_0x19588d,{'body':_0x89deb9});}catch(_0x193877){throw this[_0x35f9da(0x356)]['error'](_0x35f9da(0x1fe),'submit\x20changeset\x20error!'),_0x193877;}}async[_0x2da18b(0x353)](_0x10e71f){const _0x5724af=_0x2da18b,{unitID:_0x30f33f,from:_0x57f927,to:_0x3429a2,unitType:_0x19bf74}=_0x10e71f['data'];return(await this[_0x5724af(0x3f0)][_0x5724af(0x467)]({'metadata':void 0x0},{'unitID':_0x30f33f,'type':_0x19bf74,'from':_0x57f927,'to':_0x3429a2}))['changesets'];}};Et=Ln([Re(0x0,_0x24691e(_0xa0ce64)),Re(0x1,_0x24691e(_0x2e1788)),Re(0x2,_0x4b95b7),Re(0x3,_0x16c619),Re(0x4,_0x2cde65)],Et);const jn=_0x2da18b(0x27c);function xn(_0x26d82b){const _0x18255a=_0x2da18b;return JSON[_0x18255a(0x2ea)](_0x26d82b)[_0x18255a(0x1a8)];}class $s{constructor(){const _0x19b688=_0x2da18b;l(this,'_commentUpdate$',new _0x526cd2()),l(this,_0x19b688(0x333),this[_0x19b688(0x28a)][_0x19b688(0x344)]());}[_0x2da18b(0x302)](_0x811198){const _0x24f958=_0x2da18b;this[_0x24f958(0x28a)][_0x24f958(0x33a)](_0x811198);}}var Hn=Object[_0x2da18b(0x151)],kn=Object['getOwnPropertyDescriptor'],Bn=(_0x2f8b57,_0x1937d1,_0x37dce3,_0xf5f0fa)=>{const _0x1a6454=_0x2da18b;for(var _0x192bfe=_0xf5f0fa>0x1?void 0x0:_0xf5f0fa?kn(_0x1937d1,_0x37dce3):_0x1937d1,_0x216c21=_0x2f8b57[_0x1a6454(0x1a8)]-0x1,_0x71037c;_0x216c21>=0x0;_0x216c21--)(_0x71037c=_0x2f8b57[_0x216c21])&&(_0x192bfe=(_0xf5f0fa?_0x71037c(_0x1937d1,_0x37dce3,_0x192bfe):_0x71037c(_0x192bfe))||_0x192bfe);return _0xf5f0fa&&_0x192bfe&&Hn(_0x1937d1,_0x37dce3,_0x192bfe),_0x192bfe;},rs=(_0x4e45e5,_0x734c63)=>(_0x455d51,_0x2cd26f)=>_0x734c63(_0x455d51,_0x2cd26f,_0x4e45e5);let ae=class extends _0x3bc0d2{constructor(_0x1d77bf,_0xafb2bf){const _0x9153e=_0x2da18b;super(),l(this,_0x9153e(0x31b),new Map()),(this[_0x9153e(0x406)]=_0x1d77bf,this[_0x9153e(0x39a)]=_0xafb2bf,this[_0x9153e(0x206)](_0xc09fc4(_0x5799ee(this['_univerInstanceService'][_0x9153e(0x253)](_0x43baa3['UNIVER_SHEET'])[_0x9153e(0x29b)](_0x5ddac4(_0x439c34=>_0x439c34[_0x9153e(0x3d4)]())),this['_univerInstanceService'][_0x9153e(0x253)](_0x43baa3['UNIVER_DOC'])[_0x9153e(0x29b)](_0x5ddac4(_0x355257=>_0x355257[_0x9153e(0x3d4)]())),this[_0x9153e(0x406)][_0x9153e(0x253)](_0x43baa3[_0x9153e(0x41a)])['pipe'](_0x5ddac4(_0x2b9d55=>_0x2b9d55[_0x9153e(0x3d4)]())))[_0x9153e(0x146)](_0xd94d87=>this[_0x9153e(0x17c)](_0xd94d87)))));}[_0x2da18b(0x478)](_0x5ad615){const _0x5dd4ba=_0x2da18b;this[_0x5dd4ba(0x39a)][_0x5dd4ba(0x478)](_0x5ad615);}[_0x2da18b(0x458)](){return this['_userManagerService']['getCurrentUser']();}[_0x2da18b(0x378)](_0x43f12a,_0x44c339){const _0x518b47=_0x2da18b;let _0x1249bc=this[_0x518b47(0x31b)][_0x518b47(0x2dd)](_0x43f12a);_0x1249bc||(_0x1249bc=new Vn(),this[_0x518b47(0x31b)][_0x518b47(0x276)](_0x43f12a,_0x1249bc)),_0x1249bc[_0x518b47(0x378)](_0x44c339);}['removeMember'](_0x2db385,_0x28431f){const _0x5888cd=_0x2da18b,_0x1913a4=this[_0x5888cd(0x31b)][_0x5888cd(0x2dd)](_0x2db385);_0x1913a4&&_0x1913a4['removeMember'](_0x28431f);}[_0x2da18b(0x393)](_0x22e6a5){const _0x32026a=_0x2da18b;return this['_roomMembers'][_0x32026a(0x2dd)](_0x22e6a5);}['getMember'](_0x2981cc,_0x26620b){const _0x543db9=_0x2da18b,_0x13e669=this[_0x543db9(0x31b)][_0x543db9(0x2dd)](_0x2981cc);if(_0x13e669)return _0x13e669[_0x543db9(0x479)](_0x26620b);}[_0x2da18b(0x17c)](_0x9fa7ce){const _0x2435b2=_0x2da18b,_0xc3ed12=this[_0x2435b2(0x31b)][_0x2435b2(0x2dd)](_0x9fa7ce);_0xc3ed12&&(_0xc3ed12[_0x2435b2(0x18e)](),this[_0x2435b2(0x31b)][_0x2435b2(0x3b7)](_0x9fa7ce));}[_0x2da18b(0x18e)](){const _0xd2391b=_0x2da18b;this['_roomMembers'][_0xd2391b(0x137)](_0x26554e=>_0x26554e[_0xd2391b(0x18e)]()),this[_0xd2391b(0x31b)]['clear']();}};ae=Bn([rs(0x0,_0x4af863),rs(0x1,_0x24691e(_0x2d6772))],ae);class Vn extends _0x3bc0d2{constructor(){const _0x4db682=_0x2da18b;super(...arguments),l(this,_0x4db682(0x1db),new Map());}[_0x2da18b(0x18e)](){const _0x43ded0=_0x2da18b;this['_members'][_0x43ded0(0x31f)]();}['updateMember'](_0x22ec86){const _0x56a6ae=_0x2da18b;this[_0x56a6ae(0x1db)][_0x56a6ae(0x276)](_0x22ec86[_0x56a6ae(0x382)],_0x22ec86);}[_0x2da18b(0x36c)](_0x34f243){const _0x59f1b2=_0x2da18b;this[_0x59f1b2(0x1db)][_0x59f1b2(0x3b7)](_0x34f243);}[_0x2da18b(0x479)](_0x40c1a0){const _0x21f1a8=_0x2da18b;return this['_members'][_0x21f1a8(0x2dd)](_0x40c1a0);}}var Fn=Object[_0x2da18b(0x151)],Wn=Object[_0x2da18b(0x2b8)],Gn=(_0x28f2e3,_0x4b81db,_0x36fa34,_0x49e664)=>{const _0x529dc4=_0x2da18b;for(var _0x4e7a05=_0x49e664>0x1?void 0x0:_0x49e664?Wn(_0x4b81db,_0x36fa34):_0x4b81db,_0x56eb1f=_0x28f2e3[_0x529dc4(0x1a8)]-0x1,_0x1bd6da;_0x56eb1f>=0x0;_0x56eb1f--)(_0x1bd6da=_0x28f2e3[_0x56eb1f])&&(_0x4e7a05=(_0x49e664?_0x1bd6da(_0x4b81db,_0x36fa34,_0x4e7a05):_0x1bd6da(_0x4e7a05))||_0x4e7a05);return _0x49e664&&_0x4e7a05&&Fn(_0x4b81db,_0x36fa34,_0x4e7a05),_0x4e7a05;},J=(_0x243383,_0x5a7568)=>(_0x2a507e,_0x30c89f)=>_0x5a7568(_0x2a507e,_0x30c89f,_0x243383),G=(_0x5064b6=>(_0x5064b6[_0x5064b6['IDLE']=0x0]=_0x2da18b(0x46d),_0x5064b6[_0x5064b6['JOINING']=0x1]=_0x2da18b(0x162),_0x5064b6[_0x5064b6[_0x2da18b(0x2e9)]=0x2]=_0x2da18b(0x2e9),_0x5064b6[_0x5064b6[_0x2da18b(0x39c)]=0x3]=_0x2da18b(0x39c),_0x5064b6))(G||{});let Ct=class extends _0x13b3a6{constructor(_0x2171d0,_0x1b5b9b,_0x1a7640,_0x31abf0,_0x56dcea,_0x3863fb,_0x51dafb,_0x36a4ae,_0x2cef8e,_0x3dacbb){const _0x180625=_0x2da18b;super(),l(this,_0x180625(0x2b7),new _0x295ce3(0x0)),l(this,_0x180625(0x3fb),this[_0x180625(0x2b7)]['asObservable']()),l(this,'_event$',new _0x526cd2()),l(this,_0x180625(0x411),this[_0x180625(0x471)][_0x180625(0x344)]()),l(this,_0x180625(0x2b3)),l(this,_0x180625(0x44b)),l(this,_0x180625(0x215)),l(this,_0x180625(0x42e),!0x1),l(this,_0x180625(0x2a9),null),(this['_unitID']=_0x2171d0,this[_0x180625(0x356)]=_0x1a7640,this[_0x180625(0x24b)]=_0x31abf0,this[_0x180625(0x387)]=_0x56dcea,this[_0x180625(0x205)]=_0x3863fb,this[_0x180625(0x2cb)]=_0x51dafb,this[_0x180625(0x131)]=_0x36a4ae,this['_commentService']=_0x2cef8e,this['_telemetryService']=_0x3dacbb,this['_shouldReportTelemetry']=!!this[_0x180625(0x2dc)],_0x1b5b9b['pipe'](_0x1cea38(this[_0x180625(0x3ab)]))[_0x180625(0x146)](_0x17f0f8=>{const _0x524f52=_0x180625;var _0xc606c8;typeof _0x17f0f8>'u'||(this[_0x524f52(0x2b3)]=_0x17f0f8,_0x17f0f8?(this[_0x524f52(0x42a)](_0x17f0f8),this[_0x524f52(0x44b)]=_0x17f0f8['message$'][_0x524f52(0x146)](_0xeab8f2=>{const _0x2dab61=_0x524f52;_0xeab8f2[_0x2dab61(0x267)]===this[_0x2dab61(0x405)]&&this[_0x2dab61(0x3ae)](_0xeab8f2);})):(this[_0x524f52(0x357)](),this[_0x524f52(0x2b7)][_0x524f52(0x33a)](0x2),(_0xc606c8=this[_0x524f52(0x44b)])==null||_0xc606c8[_0x524f52(0x464)](),this[_0x524f52(0x44b)]=null));}),this[_0x180625(0x206)](this[_0x180625(0x24b)][_0x180625(0x446)](()=>{const _0x41f0c4=_0x180625;var _0x118964;(_0x118964=this[_0x41f0c4(0x2b3)])==null||_0x118964['send']({'cmd':I[_0x41f0c4(0x307)],'data':{'roomID':this[_0x41f0c4(0x405)]}});})));}get[_0x2da18b(0x36e)](){const _0xd3e826=_0x2da18b;return this[_0xd3e826(0x2b7)][_0xd3e826(0x331)]();}[_0x2da18b(0x23d)](){const _0x5c3565=_0x2da18b;var _0x28b207,_0x5626ef;return(_0x5626ef=(_0x28b207=this[_0x5c3565(0x2b3)])==null?void 0x0:_0x28b207['memberID'])!=null?_0x5626ef:null;}['dispose'](){const _0x57a55a=_0x2da18b;super[_0x57a55a(0x18e)](),this[_0x57a55a(0x3ab)][_0x57a55a(0x33a)](),this[_0x57a55a(0x3ab)][_0x57a55a(0x3fd)]();}[_0x2da18b(0x31e)](){const _0x117b42=_0x2da18b;var _0x368647,_0x3c5b3b;this[_0x117b42(0x357)](),(_0x368647=this[_0x117b42(0x2b3)])==null||_0x368647[_0x117b42(0x1ad)]({'cmd':I[_0x117b42(0x307)],'data':{'roomID':this[_0x117b42(0x405)]}}),(_0x3c5b3b=this['_socket'])==null||_0x3c5b3b[_0x117b42(0x31e)](),this[_0x117b42(0x471)][_0x117b42(0x3fd)](),this[_0x117b42(0x2b7)][_0x117b42(0x3fd)](),this[_0x117b42(0x18e)]();}[_0x2da18b(0x3ae)](_0x306eae){const _0x3d8cb1=_0x2da18b;_0x306eae[_0x3d8cb1(0x3e8)]===I[_0x3d8cb1(0x2c9)]?this[_0x3d8cb1(0x2a4)](_0x306eae):_0x306eae[_0x3d8cb1(0x3e8)]===I[_0x3d8cb1(0x270)]&&this[_0x3d8cb1(0x3a0)](_0x306eae);}[_0x2da18b(0x42a)](_0x1b3c29){const _0x29f12c=_0x2da18b;this[_0x29f12c(0x2b7)][_0x29f12c(0x33a)](0x1),_0x1b3c29[_0x29f12c(0x1ad)]({'cmd':I[_0x29f12c(0x2c9)],'routeKey':this[_0x29f12c(0x405)],'routeType':'','data':{'rooms':[{'roomID':this[_0x29f12c(0x405)]}]}});}['_onJoinRoomEvent'](_0x23fa61){const _0xc3dd89=_0x2da18b;var _0x4ca098;if(_0x23fa61[_0xc3dd89(0x2ff)]===kt[_0xc3dd89(0x48a)]){this[_0xc3dd89(0x387)][_0xc3dd89(0x240)]({'type':_0x35eeb1[_0xc3dd89(0x243)],'content':this[_0xc3dd89(0x2cb)]['t'](_0xc3dd89(0x488))}),this[_0xc3dd89(0x2b7)][_0xc3dd89(0x33a)](0x2);return;}this[_0xc3dd89(0x2b7)][_0xc3dd89(0x33a)](0x3);const _0x560844=(_0x4ca098=_0x23fa61[_0xc3dd89(0x247)][_0xc3dd89(0x27f)][this[_0xc3dd89(0x405)]])==null?void 0x0:_0x4ca098[_0xc3dd89(0x327)];_0x560844&&_0x560844[_0xc3dd89(0x137)](_0x3c0125=>this[_0xc3dd89(0x131)]['updateMember'](this[_0xc3dd89(0x405)],_0x3c0125));}['_onRecvEvent'](_0x5d32e5){const _0x18ef41=_0x2da18b;try{const _0x1d7533=_0x5d32e5['data'];switch(_0x1d7533[_0x18ef41(0x27d)]){case _0x128ecb[_0x18ef41(0x1cd)]:this[_0x18ef41(0x480)](_0x1d7533),this[_0x18ef41(0x471)][_0x18ef41(0x33a)](_0x1d7533);break;case _0x128ecb[_0x18ef41(0x3a7)]:this['_onUserLeave'](_0x1d7533),this[_0x18ef41(0x471)]['next'](_0x1d7533);break;case _0x128ecb['CHANGESET_ACK']:this[_0x18ef41(0x3d6)](),this[_0x18ef41(0x414)](),this['_event$'][_0x18ef41(0x33a)](_0x1d7533);break;case _0x128ecb[_0x18ef41(0x2c6)]:this[_0x18ef41(0x356)][_0x18ef41(0x490)](_0x18ef41(0x314)+JSON[_0x18ef41(0x2ea)](_0x1d7533)),this[_0x18ef41(0x471)][_0x18ef41(0x33a)](_0x1d7533);break;case _0x128ecb['COMMENT_UPDATE']:this[_0x18ef41(0x1b3)]['onCommentUpdate'](_0x1d7533['data']),this[_0x18ef41(0x471)][_0x18ef41(0x33a)](_0x1d7533);break;default:this[_0x18ef41(0x471)][_0x18ef41(0x33a)](_0x1d7533);}}catch(_0x4e33ec){this['_logService'][_0x18ef41(0x490)](_0x4e33ec,_0x5d32e5);}}[_0x2da18b(0x480)](_0x5eb860){const _0xa1b951=_0x2da18b;this['_memberService'][_0xa1b951(0x378)](this[_0xa1b951(0x405)],_0x5eb860[_0xa1b951(0x247)]);}[_0x2da18b(0x1b8)](_0xda120e){const _0x330a36=_0x2da18b;this[_0x330a36(0x131)][_0x330a36(0x36c)](this['_unitID'],_0xda120e[_0x330a36(0x247)][_0x330a36(0x382)]);}async['send'](_0x23d44b,_0x2b8904){const _0x33f7ce=_0x2da18b;if(this[_0x33f7ce(0x36e)]!==0x3||!this[_0x33f7ce(0x2b3)])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x23d44b[_0x33f7ce(0x27d)]===_0x128ecb[_0x33f7ce(0x46a)]&&(this[_0x33f7ce(0x2b9)](),this[_0x33f7ce(0x21e)](_0x23d44b)),this[_0x33f7ce(0x2b3)][_0x33f7ce(0x1ad)]({'cmd':I[_0x33f7ce(0x437)],'routeKey':_0x2b8904,'routeType':'','data':_0x23d44b});}catch(_0xcdbc3){this[_0x33f7ce(0x356)][_0x33f7ce(0x490)](_0xcdbc3);}}[_0x2da18b(0x2b9)](){const _0x42cbe2=_0x2da18b;var _0x58d993;this[_0x42cbe2(0x215)]=window['setTimeout'](()=>{const _0x4ea125=_0x42cbe2;this[_0x4ea125(0x215)]=null,this['_messageService'][_0x4ea125(0x240)]({'type':_0x35eeb1['Error'],'content':this['_localeService']['t'](_0x4ea125(0x1f7))});},(_0x58d993=this[_0x42cbe2(0x205)][_0x42cbe2(0x1bb)](Ns))!=null?_0x58d993:Us);}[_0x2da18b(0x414)](){this['_collaborationTimeoutTimer']&&(clearTimeout(this['_collaborationTimeoutTimer']),this['_collaborationTimeoutTimer']=null);}['_startTelemetryCollaborationNewChangeset'](_0x2da5e2){const _0x440de3=_0x2da18b;if(!this['_shouldReportTelemetry'])return;const {data:_0x3fc235}=_0x2da5e2,{unitID:_0x3f6097,changeset:_0x346b06}=_0x3fc235,{mutations:_0x421e92,type:_0x3f7444}=_0x346b06;this[_0x440de3(0x2a9)]={'unitId':_0x3f6097,'type':_0x3f7444,'startTime':performance[_0x440de3(0x44f)](),'stopTime':0x0,'duration':0x0,'size':xn(_0x421e92)};}[_0x2da18b(0x3d6)](){const _0x4672bb=_0x2da18b;if(this[_0x4672bb(0x42e)]){if(!this[_0x4672bb(0x2a9)]){this[_0x4672bb(0x356)][_0x4672bb(0x490)]('[CollaborationSession]',_0x4672bb(0x449));return;}this[_0x4672bb(0x2a9)][_0x4672bb(0x476)]=performance['now'](),this[_0x4672bb(0x2a9)][_0x4672bb(0x42d)]=this[_0x4672bb(0x2a9)][_0x4672bb(0x476)]-this[_0x4672bb(0x2a9)]['startTime'],this[_0x4672bb(0x2dc)]['capture'](jn,this[_0x4672bb(0x2a9)]),this[_0x4672bb(0x2a9)]=null;}}[_0x2da18b(0x357)](){const _0x4db91a=_0x2da18b;this[_0x4db91a(0x2a9)]=null;}};Ct=Gn([J(0x2,_0x16c619),J(0x3,_0x569db2),J(0x4,_0x349d24),J(0x5,_0x4b95b7),J(0x6,_0x24691e(_0x1695f3)),J(0x7,_0x24691e(ae)),J(0x8,_0x24691e($s)),J(0x9,_0x1be607(_0x3014d0))],Ct);var Yn=Object[_0x2da18b(0x151)],Kn=Object[_0x2da18b(0x2b8)],Xn=(_0x3d15e,_0xcc5bc1,_0x504d46,_0x313539)=>{for(var _0x162738=_0x313539>0x1?void 0x0:_0x313539?Kn(_0xcc5bc1,_0x504d46):_0xcc5bc1,_0x28cd4c=_0x3d15e['length']-0x1,_0x22f182;_0x28cd4c>=0x0;_0x28cd4c--)(_0x22f182=_0x3d15e[_0x28cd4c])&&(_0x162738=(_0x313539?_0x22f182(_0xcc5bc1,_0x504d46,_0x162738):_0x22f182(_0x162738))||_0x162738);return _0x313539&&_0x162738&&Yn(_0xcc5bc1,_0x504d46,_0x162738),_0x162738;},de=(_0x425001,_0x3a5577)=>(_0x2d995a,_0x1d8522)=>_0x3a5577(_0x2d995a,_0x1d8522,_0x425001);let ce=class extends _0x3bc0d2{constructor(_0x521e95,_0x42552c,_0x239a20,_0x67124a,_0x416282,_0xdb7a71){const _0x22e6ea=_0x2da18b;super(),l(this,_0x22e6ea(0x447),new _0x295ce3(void 0x0)),l(this,'socket$',this['_socket$'][_0x22e6ea(0x344)]()),l(this,_0x22e6ea(0x20d),null),l(this,_0x22e6ea(0x17e),new Map()),l(this,_0x22e6ea(0x155),new _0x295ce3(G['IDLE'])),l(this,_0x22e6ea(0x271),this['_status$']['asObservable']()),l(this,'_socketReady',!0x1),l(this,_0x22e6ea(0x38c)),l(this,_0x22e6ea(0x1b1),0x0),l(this,'_sendHeartbeatTimer'),l(this,_0x22e6ea(0x365)),(this['_injector']=_0x521e95,this[_0x22e6ea(0x2cb)]=_0x42552c,this[_0x22e6ea(0x387)]=_0x239a20,this[_0x22e6ea(0x356)]=_0x67124a,this[_0x22e6ea(0x205)]=_0x416282,this[_0x22e6ea(0x2ce)]=_0xdb7a71,this[_0x22e6ea(0x2f9)]());}get[_0x2da18b(0x2b3)](){const _0xd10d42=_0x2da18b;return this[_0xd10d42(0x447)][_0xd10d42(0x331)]();}[_0x2da18b(0x2f9)](){const _0x54bdde=_0x2da18b;this[_0x54bdde(0x3c5)](),this[_0x54bdde(0x432)]();}[_0x2da18b(0x18e)](){const _0x1c4fca=_0x2da18b;super[_0x1c4fca(0x18e)](),this[_0x1c4fca(0x17e)][_0x1c4fca(0x137)](_0x4eaf81=>_0x4eaf81[_0x1c4fca(0x18e)]()),this['_sessions'][_0x1c4fca(0x31f)](),this[_0x1c4fca(0x155)][_0x1c4fca(0x3fd)]();}async[_0x2da18b(0x19f)](_0x9a0da5){const _0x35c892=_0x2da18b;if(this[_0x35c892(0x17e)][_0x35c892(0x141)](_0x9a0da5))return this[_0x35c892(0x17e)][_0x35c892(0x2dd)](_0x9a0da5);this[_0x35c892(0x261)]();const _0x5625c0=this[_0x35c892(0x272)][_0x35c892(0x3cb)](Ct,_0x9a0da5,this[_0x35c892(0x447)]['asObservable']());return this['_sessions']['set'](_0x9a0da5,_0x5625c0),_0x5625c0;}['closeSession'](_0x38876b){const _0x418bdf=_0x2da18b;var _0xecfa30;const _0xe88d1d=this['_sessions'][_0x418bdf(0x2dd)](_0x38876b);_0xe88d1d&&(this[_0x418bdf(0x17e)][_0x418bdf(0x3b7)](_0x38876b),_0xe88d1d[_0x418bdf(0x31e)]()),this['_sessions'][_0x418bdf(0x1c1)]||(_0xecfa30=this['_socket'])==null||_0xecfa30['close']();}[_0x2da18b(0x165)](){const _0x3faa6f=_0x2da18b;this['_retryCount']=0x0,this[_0x3faa6f(0x38c)]!=null&&(clearTimeout(this[_0x3faa6f(0x38c)]),this[_0x3faa6f(0x38c)]=null),this[_0x3faa6f(0x161)]();}['_createSocket'](){const _0x2ac973=_0x2da18b;var _0x59f6aa,_0x34d5c0;const _0x46e1b4=this[_0x2ac973(0x205)][_0x2ac973(0x1bb)](Sn),_0xb57106=this['_configService'][_0x2ac973(0x1bb)](L),_0x2861ba=(_0x34d5c0=(_0x59f6aa=_0xb57106==null?void 0x0:_0xb57106['collabWebSocketUrl'])!=null?_0x59f6aa:_0x46e1b4)!=null?_0x34d5c0:pn,_0x1d1e4f=this['_socketService'][_0x2ac973(0x248)](_0x2861ba);return this[_0x2ac973(0x20d)]=_0x1d1e4f,_0x1d1e4f;}[_0x2da18b(0x261)](){const _0x5a595b=_0x2da18b;var _0x3128b2,_0x35e0d9;try{const _0x5894d9=(_0x35e0d9=(_0x3128b2=this[_0x5a595b(0x2b3)])!=null?_0x3128b2:this[_0x5a595b(0x20d)])!=null?_0x35e0d9:this['_createSocket']();if(_0x5894d9){const _0x51c047=_0x5894d9['send'];_0x5894d9[_0x5a595b(0x1ad)]=_0x489d27=>(this[_0x5a595b(0x3b8)](),_0x51c047[_0x5a595b(0x3f6)](_0x5894d9,[_0x489d27])),_0x5894d9[_0x5a595b(0x346)][_0x5a595b(0x146)](_0x3e1441=>this[_0x5a595b(0x257)](_0x5894d9,_0x3e1441)),_0x5894d9[_0x5a595b(0x194)][_0x5a595b(0x29b)](_0x3101c1(0x1))[_0x5a595b(0x146)](_0x2aaabc=>this['_logService'][_0x5a595b(0x490)]('[CollaborationSessionService]:\x20socket\x20error',_0x2aaabc)),_0x5894d9[_0x5a595b(0x1eb)][_0x5a595b(0x29b)](_0x3101c1(0x1))[_0x5a595b(0x146)](()=>{const _0xd8b671=_0x5a595b;this[_0xd8b671(0x1e6)](_0x5894d9);}),_0x5894d9['close$'][_0x5a595b(0x29b)](_0x3101c1(0x1))['subscribe'](_0x19a2d2=>{const _0x2fa35b=_0x5a595b;this['_logService'][_0x2fa35b(0x2e0)]('[CollaborationSessionService]',_0x2fa35b(0x2db),_0x19a2d2),this[_0x2fa35b(0x3f3)]();});}}catch(_0x460910){this['_logService'][_0x5a595b(0x490)](_0x460910),this[_0x5a595b(0x3f3)]();}}[_0x2da18b(0x1e6)](_0x24f91f){const _0x3cc63c=_0x2da18b;this[_0x3cc63c(0x356)][_0x3cc63c(0x2e0)]('[CollaborationSessionService]','socket\x20open.'),_0x24f91f['send']({'cmd':I[_0x3cc63c(0x3c4)]}),this[_0x3cc63c(0x3b8)]();}[_0x2da18b(0x3c5)](){const _0x58e744=_0x2da18b;window[_0x58e744(0x144)](_0x58e744(0x2c1),()=>this[_0x58e744(0x3a5)]());}[_0x2da18b(0x3a5)](){const _0x662c97=_0x2da18b;this['_socketReady']=!0x1,this['_candidateSocket']=null,this[_0x662c97(0x155)][_0x662c97(0x33a)](G['OFFLINE']),this[_0x662c97(0x447)][_0x662c97(0x33a)](null),this[_0x662c97(0x18d)](),this[_0x662c97(0x1ed)]();}[_0x2da18b(0x3f3)](){const _0x4750d2=_0x2da18b;var _0x54e240;this[_0x4750d2(0x3a5)](),this[_0x4750d2(0x1b1)]<((_0x54e240=this[_0x4750d2(0x205)][_0x4750d2(0x1bb)](Cn))!=null?_0x54e240:bn)?(this[_0x4750d2(0x387)][_0x4750d2(0x240)]({'key':_0x4750d2(0x31c),'type':_0x35eeb1[_0x4750d2(0x243)],'content':this[_0x4750d2(0x2cb)]['t'](_0x4750d2(0x15a))}),this['_tryReconnect']()):this[_0x4750d2(0x387)][_0x4750d2(0x240)]({'key':_0x4750d2(0x31c),'type':_0x35eeb1[_0x4750d2(0x15f)],'content':this[_0x4750d2(0x2cb)]['t'](_0x4750d2(0x2c8))});}[_0x2da18b(0x432)](){const _0x54c6a1=_0x2da18b,_0x402cff=()=>{const _0xe1e497=_0x44b4;this[_0xe1e497(0x2b3)]||this[_0xe1e497(0x165)]();},_0x41af48=()=>{const _0x53e4bd=_0x44b4;this[_0x53e4bd(0x2b3)]||document['visibilityState']===_0x53e4bd(0x208)||this[_0x53e4bd(0x165)]();};window['addEventListener'](_0x54c6a1(0x25a),_0x402cff),document[_0x54c6a1(0x144)](_0x54c6a1(0x492),_0x41af48);}[_0x2da18b(0x161)](){const _0x2d2683=_0x2da18b;var _0x4afd25;const _0x494a85=this[_0x2d2683(0x1b1)],_0x1ec575=this[_0x2d2683(0x205)][_0x2d2683(0x1bb)](L),_0x2f26dc=_0x494a85===0x0?0x0:((_0x4afd25=_0x1ec575==null?void 0x0:_0x1ec575[_0x2d2683(0x173)])!=null?_0x4afd25:En)*0x2**_0x494a85;this['_retryConnectingTimer']=window[_0x2d2683(0x1ee)](()=>{const _0x4eb66b=_0x2d2683;clearTimeout(this[_0x4eb66b(0x38c)]),this[_0x4eb66b(0x38c)]=null,this[_0x4eb66b(0x261)]();},_0x2f26dc),this['_retryCount']+=0x1;}[_0x2da18b(0x257)](_0x5c21ca,_0x5b2aed){const _0x4d0f00=_0x2da18b,{cmd:_0xbb6f24}=_0x5b2aed;_0xbb6f24===I['HELLO']&&!this[_0x4d0f00(0x189)]&&(_0x5c21ca[_0x4d0f00(0x382)]=_0x5b2aed['data'][_0x4d0f00(0x382)],this[_0x4d0f00(0x447)][_0x4d0f00(0x33a)](_0x5c21ca),this[_0x4d0f00(0x155)]['next'](G[_0x4d0f00(0x39c)]),this[_0x4d0f00(0x189)]=!0x0,this[_0x4d0f00(0x20d)]=null),_0xbb6f24===I[_0x4d0f00(0x316)]&&this[_0x4d0f00(0x18d)](),this[_0x4d0f00(0x3b8)]();}[_0x2da18b(0x3b8)](){const _0x55277a=_0x2da18b;var _0x4567bd;this[_0x55277a(0x1ed)](),this[_0x55277a(0x41b)]=window[_0x55277a(0x1ee)](()=>this[_0x55277a(0x439)](),(_0x4567bd=this[_0x55277a(0x205)][_0x55277a(0x1bb)](vn))!=null?_0x4567bd:In);}['_sendHeartbeat'](){const _0xefff09=_0x2da18b;this['_socket'][_0xefff09(0x1ad)]({'cmd':I['HEARTBEAT']}),this[_0xefff09(0x379)]();}[_0x2da18b(0x379)](){const _0x4a5649=_0x2da18b;var _0x1062ea;this[_0x4a5649(0x365)]=window[_0x4a5649(0x1ee)](()=>this['_onConnectionFailed'](),(_0x1062ea=this['_configService'][_0x4a5649(0x1bb)](Ns))!=null?_0x1062ea:Us);}[_0x2da18b(0x1ed)](){const _0x132628=_0x2da18b;this[_0x132628(0x41b)]!=null&&(clearTimeout(this[_0x132628(0x41b)]),this[_0x132628(0x41b)]=null);}[_0x2da18b(0x18d)](){const _0x350ecf=_0x2da18b;this[_0x350ecf(0x365)]!=null&&(clearTimeout(this[_0x350ecf(0x365)]),this[_0x350ecf(0x365)]=null);}};ce=Xn([de(0x0,_0x24691e(_0x129c7a)),de(0x1,_0x24691e(_0x1695f3)),de(0x2,_0x349d24),de(0x3,_0x16c619),de(0x4,_0x4b95b7),de(0x5,Ls)],ce);var Jn=Object['defineProperty'],qn=Object['getOwnPropertyDescriptor'],zn=(_0x252626,_0x4ed78b,_0x943e27,_0x47c64d)=>{const _0x48e6f7=_0x2da18b;for(var _0x55afb7=_0x47c64d>0x1?void 0x0:_0x47c64d?qn(_0x4ed78b,_0x943e27):_0x4ed78b,_0x5dce0f=_0x252626[_0x48e6f7(0x1a8)]-0x1,_0x4743da;_0x5dce0f>=0x0;_0x5dce0f--)(_0x4743da=_0x252626[_0x5dce0f])&&(_0x55afb7=(_0x47c64d?_0x4743da(_0x4ed78b,_0x943e27,_0x55afb7):_0x4743da(_0x55afb7))||_0x55afb7);return _0x47c64d&&_0x55afb7&&Jn(_0x4ed78b,_0x943e27,_0x55afb7),_0x55afb7;},ct=(_0x510387,_0x8c2fc8)=>(_0x51c2f0,_0x3d1205)=>_0x8c2fc8(_0x51c2f0,_0x3d1205,_0x510387);let Ye=class{constructor(_0x2781b1,_0x3b999e,_0x45b05b){const _0x545ade=_0x2da18b;this[_0x545ade(0x272)]=_0x2781b1,this[_0x545ade(0x32a)]=_0x3b999e,this['_renderManagerService']=_0x45b05b;}[_0x2da18b(0x2da)](_0x368dbd){const _0x244024=_0x2da18b;this[_0x244024(0x440)](_0x368dbd),this[_0x244024(0x2fa)](_0x368dbd);}[_0x2da18b(0x2ca)](_0x264315){const _0x3e3bd3=_0x2da18b,{unitID:_0x169f47}=_0x264315,_0x572639=this[_0x3e3bd3(0x38a)][_0x3e3bd3(0x3ff)](_0x169f47)[_0x3e3bd3(0x19b)](_0x188ac7),{redoCache:_0x56187a}=_0x572639['getUndoRedoMutationParamsCache']();if(_0x56187a[_0x3e3bd3(0x1a8)]===0x0)return _0x264315;let _0x6c42d1=_0x5ee8c7[_0x3e3bd3(0x1d9)](_0x264315[_0x3e3bd3(0x154)][0x0]);for(let _0x1fa541=0x0;_0x1fa541<_0x56187a[_0x3e3bd3(0x1a8)];_0x1fa541++){const _0x57226b={'id':_0x3e3bd3(0x16d),'params':{..._0x56187a[_0x1fa541]}},_0x4b286d=this['_transformService'][_0x3e3bd3(0x265)](_0x6c42d1,_0x57226b,!0x1);if(_0x43ac9d(_0x4b286d))throw _0x4b286d[_0x3e3bd3(0x490)];_0x6c42d1=_0x4b286d[_0x3e3bd3(0x28c)];}return{..._0x5ee8c7[_0x3e3bd3(0x1d9)](_0x264315),'mutations':[_0x6c42d1]};}['_transformUndoRedoStack'](_0x59931c){const _0x1669b1=_0x2da18b,{unitID:_0x5b72ab}=_0x59931c,_0x2bd941=this[_0x1669b1(0x38a)]['getRenderById'](_0x5b72ab)[_0x1669b1(0x19b)](_0x188ac7),{undoCache:_0x5d0468,redoCache:_0x5783d9}=_0x2bd941[_0x1669b1(0x352)]();if(_0x5d0468[_0x1669b1(0x1a8)]===0x0||_0x5783d9[_0x1669b1(0x1a8)]===0x0)return;const _0x400c0c=[],_0x7d22f2=[];let _0x5a2b89=_0x5ee8c7[_0x1669b1(0x1d9)](_0x59931c['mutations'][0x0]),_0xcb85af=_0x5ee8c7[_0x1669b1(0x1d9)](_0x59931c[_0x1669b1(0x154)][0x0]);for(let _0x12f3b9=_0x5d0468[_0x1669b1(0x1a8)]-0x1;_0x12f3b9>=0x0;_0x12f3b9--){const _0x16bb16={'id':_0x1669b1(0x16d),'params':{..._0x5d0468[_0x12f3b9]}},_0x1ecb8b={'id':_0x1669b1(0x16d),'params':{..._0x5783d9[_0x12f3b9]}},_0x306a1e=this[_0x1669b1(0x32a)]['transformMutation'](_0x5a2b89,_0x16bb16,!0x1),_0x366b86=this['_transformService'][_0x1669b1(0x265)](_0xcb85af,_0x1ecb8b,!0x1);if(_0x43ac9d(_0x306a1e))throw _0x306a1e[_0x1669b1(0x490)];if(_0x43ac9d(_0x366b86))throw _0x366b86['error'];_0x400c0c[_0x1669b1(0x2f6)](_0x306a1e['m2Prime']['params']),_0x7d22f2['unshift'](_0x366b86[_0x1669b1(0x22c)][_0x1669b1(0x338)]),_0x5a2b89=_0x306a1e[_0x1669b1(0x28c)],_0xcb85af=_0x366b86[_0x1669b1(0x28c)];}_0x2bd941[_0x1669b1(0x13f)]({'undoCache':_0x400c0c,'redoCache':_0x7d22f2});}[_0x2da18b(0x2fa)](_0x6f6c76){const _0x3c1908=_0x2da18b,{unitID:_0x5a339e}=_0x6f6c76,_0x388362=this['_renderManagerService'][_0x3c1908(0x3ff)](_0x5a339e)['with'](_0x188ac7),_0x2e63e1=_0x388362[_0x3c1908(0x487)]();if(_0x2e63e1==null)return;const _0x3b790c=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x6f6c76['unitID'],'actions':null,'textRanges':[_0x2e63e1]}}],_0x27dd12=this[_0x3c1908(0x32a)][_0x3c1908(0x18b)](_0x6f6c76,_0x3b790c);if(!_0x524343(_0x27dd12))throw _0x27dd12[_0x3c1908(0x490)];const _0x14537e=_0x27dd12['m2Prime'][0x0][_0x3c1908(0x338)][_0x3c1908(0x337)];Array[_0x3c1908(0x1f8)](_0x14537e)&&_0x14537e[_0x3c1908(0x1a8)]&&_0x388362['setActiveRange'](_0x14537e[0x0]);}};Ye=zn([ct(0x0,_0x24691e(_0x129c7a)),ct(0x1,_0x418a36),ct(0x2,_0x4031fb)],Ye);var Zn=Object['defineProperty'],Qn=Object[_0x2da18b(0x2b8)],er=(_0x118469,_0x1406d8,_0x43f6e3,_0x909d08)=>{for(var _0x159c37=_0x909d08>0x1?void 0x0:_0x909d08?Qn(_0x1406d8,_0x43f6e3):_0x1406d8,_0x10a7c5=_0x118469['length']-0x1,_0x46bef0;_0x10a7c5>=0x0;_0x10a7c5--)(_0x46bef0=_0x118469[_0x10a7c5])&&(_0x159c37=(_0x909d08?_0x46bef0(_0x1406d8,_0x43f6e3,_0x159c37):_0x46bef0(_0x159c37))||_0x159c37);return _0x909d08&&_0x159c37&&Zn(_0x1406d8,_0x43f6e3,_0x159c37),_0x159c37;},Oe=(_0x3bd514,_0x3743f2)=>(_0x1f2979,_0xbc92f7)=>_0x3743f2(_0x1f2979,_0xbc92f7,_0x3bd514);let D=class extends _0x3bc0d2{constructor(_0x12cff5,_0x162413,_0x5441a3,_0x366f48,_0x3c94c8){const _0x57be4b=_0x2da18b;super(),l(this,_0x57be4b(0x2c5),new Map()),l(this,_0x57be4b(0x481),new Map()),l(this,_0x57be4b(0x227),!0x1),(this[_0x57be4b(0x205)]=_0x12cff5,this[_0x57be4b(0x212)]=_0x162413,this[_0x57be4b(0x24b)]=_0x5441a3,this[_0x57be4b(0x2cb)]=_0x366f48,this[_0x57be4b(0x3b1)]=_0x3c94c8,this[_0x57be4b(0x47e)]());}['disableLocalCache'](){const _0x266f4c=_0x2da18b;this[_0x266f4c(0x227)]=!0x0;}[_0x2da18b(0x293)](){const _0x4aaccb=_0x2da18b;this[_0x4aaccb(0x227)]=!0x1;}[_0x2da18b(0x18e)](){const _0x3d2d8d=_0x2da18b;this[_0x3d2d8d(0x1a4)]()['then'](()=>super[_0x3d2d8d(0x18e)]());}async[_0x2da18b(0x1f0)](_0x4c7ac3){const _0xb891c2=_0x2da18b;return this[_0xb891c2(0x227)]?null:this[_0xb891c2(0x212)][_0xb891c2(0x3c8)](os(_0x4c7ac3));}async['saveOfflineData'](_0x63596d,_0x84891c){const _0x179f9a=_0x2da18b;return!!this[_0x179f9a(0x212)]['setItem'](_0x63596d,_0x84891c);}[_0x2da18b(0x48c)](_0x1da164,_0x595875,_0xf15743,_0x592916){const _0x5c5fbe=_0x2da18b,_0x6b3d72=this['_revisionService'][_0x5c5fbe(0x29c)](_0x1da164);this[_0x5c5fbe(0x2c5)][_0x5c5fbe(0x276)](_0x1da164,{'unitID':_0x1da164,'type':_0x595875,'awaitingChangeset':_0xf15743,'mutations':_0x592916,'rev':_0x6b3d72}),this[_0x5c5fbe(0x481)][_0x5c5fbe(0x141)](_0x1da164)||this[_0x5c5fbe(0x33e)](_0x1da164);}[_0x2da18b(0x33e)](_0xdce669){const _0x51ed6e=_0x2da18b,_0x4c0587=this[_0x51ed6e(0x2e5)]();_0x4c0587===0x0?this[_0x51ed6e(0x2f8)](_0xdce669):this[_0x51ed6e(0x481)][_0x51ed6e(0x276)](_0xdce669,setTimeout(()=>this[_0x51ed6e(0x2f8)](_0xdce669),_0x4c0587));}[_0x2da18b(0x2e5)](){const _0x568390=_0x2da18b;var _0x6222ff;return(_0x6222ff=this[_0x568390(0x205)][_0x568390(0x1bb)](Tn))!=null?_0x6222ff:Rn;}[_0x2da18b(0x2f8)](_0x5e0416){const _0x54093f=_0x2da18b,_0x448b50=this[_0x54093f(0x481)][_0x54093f(0x2dd)](_0x5e0416);return _0x448b50!==void 0x0&&window[_0x54093f(0x133)](_0x448b50),this[_0x54093f(0x212)][_0x54093f(0x428)](os(_0x5e0416),this[_0x54093f(0x2c5)]['get'](_0x5e0416))[_0x54093f(0x484)](()=>this['_saveTaskMap']['delete'](_0x5e0416));}async[_0x2da18b(0x1a4)](){const _0xbfb63=_0x2da18b,_0x554c19=[];this['_saveTaskMap'][_0xbfb63(0x137)]((_0x1cd2d9,_0x1d6fe8)=>{const _0x390b96=_0xbfb63;window['clearTimeout'](_0x1cd2d9),_0x554c19[_0x390b96(0x46c)](this[_0x390b96(0x2f8)](_0x1d6fe8)[_0x390b96(0x484)](()=>{const _0x47dfff=_0x390b96;this['_saveTaskMap'][_0x47dfff(0x3b7)](_0x1d6fe8);}));}),await Promise[_0xbfb63(0x17a)](_0x554c19);}[_0x2da18b(0x47e)](){const _0xdac067=_0x2da18b;this[_0xdac067(0x206)](this[_0xdac067(0x24b)][_0xdac067(0x16b)](()=>{const _0x5d0510=_0xdac067;if(this['_saveTaskMap'][_0x5d0510(0x1c1)])return this[_0x5d0510(0x2cb)]['t']('collaboration-client.offline-data-not-saved');}));}};D=er([Oe(0x0,_0x4b95b7),Oe(0x1,_0x3c9fa7),Oe(0x2,_0x569db2),Oe(0x3,_0x24691e(_0x1695f3)),Oe(0x4,_0x24691e(_0x40a032))],D);function os(_0x4d3580){return'unit-cache-'+_0x4d3580;}var tr=Object[_0x2da18b(0x151)],sr=Object[_0x2da18b(0x2b8)],ir=(_0x4a36db,_0x4db1ed,_0x5bb6eb,_0x1a3194)=>{const _0x1acdf5=_0x2da18b;for(var _0x383487=_0x1a3194>0x1?void 0x0:_0x1a3194?sr(_0x4db1ed,_0x5bb6eb):_0x4db1ed,_0x518d6c=_0x4a36db[_0x1acdf5(0x1a8)]-0x1,_0x4cf147;_0x518d6c>=0x0;_0x518d6c--)(_0x4cf147=_0x4a36db[_0x518d6c])&&(_0x383487=(_0x1a3194?_0x4cf147(_0x4db1ed,_0x5bb6eb,_0x383487):_0x4cf147(_0x383487))||_0x383487);return _0x1a3194&&_0x383487&&tr(_0x4db1ed,_0x5bb6eb,_0x383487),_0x383487;},ht=(_0x25638b,_0x28c138)=>(_0x4f6390,_0x1724b0)=>_0x28c138(_0x4f6390,_0x1724b0,_0x25638b);function nr(_0x280fd5){const _0x501564=_0x2da18b,{unitID:_0x3931bc,mutations:_0x1ee7c2}=_0x280fd5;return{'unitId':_0x3931bc,'subUnitId':_0x1ee7c2[0x0][_0x501564(0x338)]['subUnitId']};}let Ke=class{constructor(_0x11d95b,_0x42339a,_0x3cd56d){const _0x45fdfb=_0x2da18b;this[_0x45fdfb(0x272)]=_0x11d95b,this[_0x45fdfb(0x32a)]=_0x42339a,this[_0x45fdfb(0x231)]=_0x3cd56d;}[_0x2da18b(0x430)](_0x5c9958){const _0x557ee9=_0x2da18b;var _0x10876c,_0x3c60b1,_0x20d73b,_0x14d4b1;const _0xfb7047=this['_injector'][_0x557ee9(0x2dd)](_0x19b20b),{unitId:_0x154a44,subUnitId:_0x784466}=nr(_0x5c9958),_0x5b950b=_0xfb7047['getWorkbookSelections'](_0x154a44)[_0x557ee9(0x3c0)](),_0x1e0b15=(_0x3c60b1=(_0x10876c=this[_0x557ee9(0x231)][_0x557ee9(0x285)](_0x154a44))==null?void 0x0:_0x10876c[_0x557ee9(0x187)]())==null?void 0x0:_0x3c60b1[_0x557ee9(0x326)]();if(_0x5b950b['length']===0x0||!_0x154a44||!_0x784466)return;const _0x1a2c5f=[{'id':_0x3c7ab3['id'],'params':{'unitId':_0x154a44,'subUnitId':_0x1e0b15,'selections':_0x5ee8c7[_0x557ee9(0x1d9)](_0x5b950b)}}],_0x315938=this['_transformService'][_0x557ee9(0x18b)](_0x5c9958,_0x1a2c5f);if(!_0x524343(_0x315938))throw _0x315938[_0x557ee9(0x490)];const _0x80bb59=(_0x14d4b1=(_0x20d73b=_0x315938[_0x557ee9(0x22c)][0x0])==null?void 0x0:_0x20d73b[_0x557ee9(0x338)])==null?void 0x0:_0x14d4b1['selections'];Array[_0x557ee9(0x1f8)](_0x80bb59)&&_0x80bb59[_0x557ee9(0x1a8)]&&this[_0x557ee9(0x272)][_0x557ee9(0x2dd)](_0x18280b)[_0x557ee9(0x22a)](_0x3c7ab3['id'],{'unitId':_0x154a44,'subUnitId':_0x1e0b15,'selections':_0x80bb59});}};Ke=ir([ht(0x0,_0x24691e(_0x129c7a)),ht(0x1,_0x418a36),ht(0x2,_0x4af863)],Ke);const tt=_0x4f53b0(_0x2da18b(0x401));var js=(_0x225b2c=>(_0x225b2c[_0x225b2c[_0x2da18b(0x48e)]=0x0]=_0x2da18b(0x48e),_0x225b2c[_0x225b2c['OTHER_CLIENTS_EDITING']=0x1]='OTHER_CLIENTS_EDITING',_0x225b2c))(js||{});const as=0x7530,cs=_0x2da18b(0x47f);class rr extends _0x3bc0d2{constructor(){const _0x3d6c55=_0x2da18b;super(),l(this,_0x3d6c55(0x47b),_0x5ee8c7['generateRandomId']()),l(this,_0x3d6c55(0x491),new Set()),l(this,'_unitOnClients',new Map()),l(this,_0x3d6c55(0x35a),null),l(this,_0x3d6c55(0x36f),new Map()),l(this,_0x3d6c55(0x456),new Map()),this[_0x3d6c55(0x1c5)]();}[_0x2da18b(0x18e)](){const _0x2e0249=_0x2da18b;super[_0x2e0249(0x18e)](),this[_0x2e0249(0x36f)][_0x2e0249(0x137)]((_0x473c97,_0x2914ff)=>this['_removeClearOtherTimer'](_0x2914ff)),this[_0x2e0249(0x35a)]&&window[_0x2e0249(0x184)](this[_0x2e0249(0x35a)]);}['getUnitStatus$'](_0xbb53e8){const _0x2b7b5c=_0x2da18b;return this[_0x2b7b5c(0x30d)](_0xbb53e8)[_0x2b7b5c(0x29b)](_0x49c724());}[_0x2da18b(0x38f)](_0x41ec8d){const _0x2fe2fc=_0x2da18b;this[_0x2fe2fc(0x491)][_0x2fe2fc(0x1c1)]===0x0&&this[_0x2fe2fc(0x398)](),this[_0x2fe2fc(0x491)]['add'](_0x41ec8d),this[_0x2fe2fc(0x1fa)]({'type':0x0,'memberID':this[_0x2fe2fc(0x47b)],'unitIDs':[_0x41ec8d],'isForwarded':!0x1});}['disposeUnit'](_0x82d52b){const _0x3071a2=_0x2da18b;this['_selfUnitIDs']['delete'](_0x82d52b),this['_selfUnitIDs'][_0x3071a2(0x1c1)]===0x0&&this[_0x3071a2(0x35a)]&&window['clearInterval'](this['_heartbeatTimer']);}[_0x2da18b(0x1c5)](){const _0x2a4e18=_0x2da18b;this[_0x2a4e18(0x206)](_0xc09fc4(_0x267a81(window,_0x2a4e18(0x454))[_0x2a4e18(0x146)](_0x31cf85=>{const _0x2982cc=_0x2a4e18;if(_0x31cf85[_0x2982cc(0x1da)]!==cs||!_0x31cf85[_0x2982cc(0x295)])return;const _0x1eacac=JSON[_0x2982cc(0x2f1)](_0x31cf85[_0x2982cc(0x295)]);this['_handleEvent'](_0x1eacac);}))),window['addEventListener']('unload',()=>this[_0x2a4e18(0x1fa)]({'type':0x1,'memberID':this[_0x2a4e18(0x47b)],'unitIDs':Array['from'](this['_selfUnitIDs'])}));}[_0x2da18b(0x249)](_0x218703){const _0x5edaf6=_0x2da18b;switch(_0x218703[_0x5edaf6(0x3f5)]){case 0x0:this[_0x5edaf6(0x1c9)](_0x218703);break;case 0x1:this[_0x5edaf6(0x306)](_0x218703);break;case 0x2:this[_0x5edaf6(0x442)](_0x218703);break;}}[_0x2da18b(0x1c9)](_0x3c55f1){const _0x13f1b2=_0x2da18b,{unitIDs:_0x2b19a9,memberID:_0x51bf22,isForwarded:_0x34e20b}=_0x3c55f1;_0x2b19a9[_0x13f1b2(0x137)](_0x2c3111=>{const _0x818be=_0x13f1b2;if(!_0x34e20b&&this[_0x818be(0x174)][_0x818be(0x141)](_0x2c3111)&&this[_0x818be(0x30d)](_0x2c3111)[_0x818be(0x33a)](0x1),!this[_0x818be(0x174)][_0x818be(0x141)](_0x2c3111)||!this[_0x818be(0x174)][_0x818be(0x2dd)](_0x2c3111)['has'](_0x51bf22)){const _0x188246=this['_unitOnClients'][_0x818be(0x2dd)](_0x2c3111)||new Set();_0x188246[_0x818be(0x358)](_0x51bf22),this[_0x818be(0x174)]['set'](_0x2c3111,_0x188246),this['_scheduleClearOtherTimer'](_0x51bf22);}}),_0x34e20b||this[_0x13f1b2(0x1fa)]({'type':0x0,'memberID':this[_0x13f1b2(0x47b)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x2da18b(0x462)](_0x1778ea){const _0x5a310c=_0x2da18b;this['_removeClearOtherTimer'](_0x1778ea);const _0x48d9f4=window[_0x5a310c(0x1ee)](()=>{this['_unitOnClients']['forEach'](_0x19e9d6=>{_0x19e9d6['delete'](_0x1778ea);});},as*0x2);this[_0x5a310c(0x36f)][_0x5a310c(0x276)](_0x1778ea,_0x48d9f4);}[_0x2da18b(0x3ef)](_0x4e3b70){const _0x782581=_0x2da18b;if(this[_0x782581(0x36f)]['has'](_0x4e3b70)){const _0x456309=this[_0x782581(0x36f)][_0x782581(0x2dd)](_0x4e3b70);_0x456309&&window[_0x782581(0x133)](_0x456309),this[_0x782581(0x36f)][_0x782581(0x276)](_0x4e3b70,null);}}['_handleLeaveEvent'](_0x3dbe26){const {memberID:_0x359b94,unitIDs:_0x16206d}=_0x3dbe26;_0x16206d['forEach'](_0x24bc3b=>{const _0xe8b1b4=_0x44b4;var _0x44ace3;const _0x2be6a2=this[_0xe8b1b4(0x174)][_0xe8b1b4(0x2dd)](_0x24bc3b);_0x2be6a2&&(_0x2be6a2[_0xe8b1b4(0x3b7)](_0x359b94),(_0x44ace3=this['_ensureSubject'](_0x24bc3b))==null||_0x44ace3[_0xe8b1b4(0x33a)](_0x2be6a2[_0xe8b1b4(0x1c1)]===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x359b94);}[_0x2da18b(0x442)](_0x38911d){const _0x3ae61d=_0x2da18b;this[_0x3ae61d(0x462)](_0x38911d['memberID']);}[_0x2da18b(0x1fa)](_0x54b415){const _0x146e02=_0x2da18b;localStorage[_0x146e02(0x428)](cs,JSON[_0x146e02(0x2ea)](_0x54b415));}[_0x2da18b(0x398)](){const _0x273847=_0x2da18b;this[_0x273847(0x35a)]=window[_0x273847(0x3c7)](()=>{const _0x5bb9b8=_0x273847;this[_0x5bb9b8(0x1fa)]({'type':0x2,'memberID':this['_id']});},as);}[_0x2da18b(0x30d)](_0x37b76d){const _0x1f0969=_0x2da18b;return this[_0x1f0969(0x456)]['has'](_0x37b76d)||this['_unitStatus'][_0x1f0969(0x276)](_0x37b76d,new _0x295ce3(0x0)),this['_unitStatus'][_0x1f0969(0x2dd)](_0x37b76d);}}function xs(_0x5231b1){let _0x2cecf1='';for(const _0x33e5dc of _0x5231b1){const {startOffset:_0x6a0adc,endOffset:_0x3c3ea3,isActive:_0x3d483b}=_0x33e5dc;_0x2cecf1['length']&&(_0x2cecf1+=','),_0x2cecf1+=_0x6a0adc+':'+_0x3c3ea3+':'+(_0x3d483b?'1':'0');}return _0x2cecf1;}function or(_0x49578f){const _0x3d0ad2=_0x2da18b,_0x41ca5c=_0x49578f[_0x3d0ad2(0x134)](','),_0x4dea4f=[];for(const _0x587c6a of _0x41ca5c){const [_0xce85da,_0x1aa5c6,_0x3cf93e]=_0x587c6a['split'](':');_0x4dea4f[_0x3d0ad2(0x46c)]({'startOffset':Number(_0xce85da),'endOffset':Number(_0x1aa5c6),'collapsed':_0xce85da===_0x1aa5c6,'isActive':_0x3cf93e==='1'});}return _0x4dea4f[_0x3d0ad2(0x256)](_0x255573=>_0x255573[_0x3d0ad2(0x2d2)])||(_0x4dea4f[0x0][_0x3d0ad2(0x2d2)]=!0x0),_0x4dea4f;}class Bt extends _0x13b3a6{constructor(){const _0x2aa95d=_0x2da18b;super(...arguments),l(this,'_collabCursorState$',new _0x295ce3(null)),l(this,'collabCursorState$',this[_0x2aa95d(0x210)]['asObservable']());}[_0x2da18b(0x472)](_0x106b0a){const _0x256243=_0x2da18b,{unitID:_0xb7c77d,memberID:_0x456784,textRanges:_0x5652ca}=_0x106b0a,_0x54490b=xs(_0x5652ca),_0x3e8dcd={'unitID':_0xb7c77d,'memberID':_0x456784,'selection':_0x54490b};this[_0x256243(0x210)][_0x256243(0x33a)](_0x3e8dcd);}}var ar=Object[_0x2da18b(0x151)],cr=Object[_0x2da18b(0x2b8)],hr=(_0x406ea1,_0x5c5ef3,_0x3de5bc,_0x5c7e24)=>{const _0x8e5f89=_0x2da18b;for(var _0x2f827c=_0x5c7e24>0x1?void 0x0:_0x5c7e24?cr(_0x5c5ef3,_0x3de5bc):_0x5c5ef3,_0x1ce3ac=_0x406ea1[_0x8e5f89(0x1a8)]-0x1,_0x44dbed;_0x1ce3ac>=0x0;_0x1ce3ac--)(_0x44dbed=_0x406ea1[_0x1ce3ac])&&(_0x2f827c=(_0x5c7e24?_0x44dbed(_0x5c5ef3,_0x3de5bc,_0x2f827c):_0x44dbed(_0x2f827c))||_0x2f827c);return _0x5c7e24&&_0x2f827c&&ar(_0x5c5ef3,_0x3de5bc,_0x2f827c),_0x2f827c;},hs=(_0x30dcde,_0x10d47e)=>(_0x18836b,_0x18c59a)=>_0x10d47e(_0x18836b,_0x18c59a,_0x30dcde);let Xe=class{constructor(_0x39b7bb,_0x1057e9){const _0x4cfb21=_0x2da18b;this[_0x4cfb21(0x272)]=_0x39b7bb,this[_0x4cfb21(0x32a)]=_0x1057e9;}['transformSelections'](_0xb26759){const _0x464abb=_0x2da18b;var _0x266c0c;const _0x5051d6=this[_0x464abb(0x272)][_0x464abb(0x2dd)](_0xd0d12d),_0x4532b2=(_0x266c0c=_0x5051d6[_0x464abb(0x309)]())!=null?_0x266c0c:[];if(_0x4532b2['length']===0x0)return;const _0x1a1ee8=[{'id':_0x464abb(0x16d),'params':{'unitId':_0xb26759[_0x464abb(0x1e5)],'actions':null,'textRanges':_0x4532b2}}],_0x28c0a2=this[_0x464abb(0x32a)][_0x464abb(0x18b)](_0xb26759,_0x1a1ee8);if(!_0x524343(_0x28c0a2))throw _0x28c0a2[_0x464abb(0x490)];const _0x49727a=_0x28c0a2[_0x464abb(0x22c)][0x0][_0x464abb(0x338)]['textRanges'];Array[_0x464abb(0x1f8)](_0x49727a)&&_0x49727a[_0x464abb(0x1a8)]&&_0x5051d6[_0x464abb(0x396)](_0x49727a,!0x1);}};Xe=hr([hs(0x0,_0x24691e(_0x129c7a)),hs(0x1,_0x418a36)],Xe);const lr=new Set([_0x59880b['id']]);function ls(_0x42e1cf,_0x44816c,_0x4c3acd,_0x36be23,_0x48c211){const _0x2a0275=_0x2da18b;var _0x55933b,_0x2be7de,_0x11de2d,_0x79999e;const _0x23758f=[];for(const _0x2779de of _0x42e1cf)if(lr[_0x2a0275(0x141)](_0x2779de['id'])){if(_0x23758f[_0x2a0275(0x1a8)]>0x0)break;_0x23758f[_0x2a0275(0x46c)](_0x2779de);break;}else _0x23758f[_0x2a0275(0x46c)](_0x2779de);const _0x50e538=(_0x2be7de=(_0x55933b=_0x48c211[_0x2a0275(0x458)]())==null?void 0x0:_0x55933b['userID'])!=null?_0x2be7de:_0x2a0275(0x157),_0x31cf52=(_0x79999e=(_0x11de2d=_0x48c211[_0x2a0275(0x458)]())==null?void 0x0:_0x11de2d['memberID'])!=null?_0x79999e:_0x2a0275(0x157);return{'changeset':{'unitID':_0x44816c,'type':_0x31e3bf(_0x4c3acd[_0x2a0275(0x324)](_0x44816c)),'baseRev':_0x36be23[_0x2a0275(0x29c)](_0x44816c),'revision':0x0,'userID':_0x50e538,'memberID':_0x31cf52,'mutations':_0x23758f},'pendingMutations':_0x42e1cf[_0x2a0275(0x156)](_0x23758f['length'])};}function _r(_0x23c066,_0x219910,_0xea6d79,_0x20676c,_0x535b32){const _0x3a7d56=_0x2da18b;var _0x102584,_0x403c0b,_0xea79f8,_0x128656;const _0x4fb378=[_0x23c066[_0x3a7d56(0x1a1)]((_0x2eaa90,_0x200c42)=>{const _0x592eef=_0x3a7d56;var _0x54f2db;const {id:_0x376d12}=_0x2eaa90,{id:_0x22e2f8,type:_0x2b6ad5}=_0x200c42,_0x13f8f7=(_0x54f2db=_0x2eaa90[_0x592eef(0x338)])!=null?_0x54f2db:{'actions':null},_0x484ba2=_0x200c42['params'];if(_0x376d12&&_0x376d12!==_0x22e2f8)throw new Error(_0x592eef(0x1e4)+_0x376d12+_0x592eef(0x2aa)+_0x22e2f8+'.');return{..._0x2eaa90,'id':_0x22e2f8,'type':_0x2b6ad5,'params':{'unitId':_0x484ba2[_0x592eef(0x380)],'textRanges':_0x484ba2[_0x592eef(0x337)],'actions':_0x34e2cd['compose'](_0x13f8f7['actions'],_0x484ba2['actions'])}};},{})],_0x5e67aa=(_0x403c0b=(_0x102584=_0x535b32['getCurrentUser']())==null?void 0x0:_0x102584['userID'])!=null?_0x403c0b:_0x3a7d56(0x157),_0x4d9275=(_0x128656=(_0xea79f8=_0x535b32[_0x3a7d56(0x458)]())==null?void 0x0:_0xea79f8['memberID'])!=null?_0x128656:'unknown';return{'changeset':{'unitID':_0x219910,'type':_0x31e3bf(_0xea6d79[_0x3a7d56(0x324)](_0x219910)),'baseRev':_0x20676c['getCurrentRevOfUnit'](_0x219910),'revision':0x0,'userID':_0x5e67aa,'memberID':_0x4d9275,'mutations':_0x4fb378},'pendingMutations':[]};}const ur={'id':_0x4af40d['id'],'type':_0x109a6f[_0x2da18b(0x13e)],'params':{}};var dr=Object[_0x2da18b(0x151)],fr=Object[_0x2da18b(0x2b8)],le=(_0x3b96be,_0x101aac,_0x319485,_0x17f5e2)=>{const _0x5a22ba=_0x2da18b;for(var _0x32b970=_0x17f5e2>0x1?void 0x0:_0x17f5e2?fr(_0x101aac,_0x319485):_0x101aac,_0x4ae7f0=_0x3b96be[_0x5a22ba(0x1a8)]-0x1,_0x370ec0;_0x4ae7f0>=0x0;_0x4ae7f0--)(_0x370ec0=_0x3b96be[_0x4ae7f0])&&(_0x32b970=(_0x17f5e2?_0x370ec0(_0x101aac,_0x319485,_0x32b970):_0x370ec0(_0x32b970))||_0x32b970);return _0x17f5e2&&_0x32b970&&dr(_0x101aac,_0x319485,_0x32b970),_0x32b970;},m=(_0x500d0e,_0xc55775)=>(_0x5858dc,_0x1e5a66)=>_0xc55775(_0x5858dc,_0x1e5a66,_0x500d0e),w=(_0x11e3da=>(_0x11e3da[_0x2da18b(0x408)]='not_collab',_0x11e3da[_0x2da18b(0x258)]=_0x2da18b(0x287),_0x11e3da[_0x2da18b(0x18c)]=_0x2da18b(0x32b),_0x11e3da[_0x2da18b(0x435)]='awaiting',_0x11e3da[_0x2da18b(0x3a2)]=_0x2da18b(0x39b),_0x11e3da[_0x2da18b(0x263)]=_0x2da18b(0x24a),_0x11e3da['CONFLICT']=_0x2da18b(0x278),_0x11e3da[_0x2da18b(0x2e9)]=_0x2da18b(0x2c1),_0x11e3da))(w||{});class _e{constructor(_0x352cd8,_0x35bd86,_0x27432f,_0x107fd9,_0x36445d,_0x36f38b,_0x315fe4,_0x2461cd,_0xcc30d6){const _0x20ef2d=_0x2da18b;l(this,_0x20ef2d(0x288),null),l(this,'_pendingMutations',[]),(this[_0x20ef2d(0x1e5)]=_0x352cd8,this[_0x20ef2d(0x3f5)]=_0x35bd86,this[_0x20ef2d(0x429)]=_0x36445d,this[_0x20ef2d(0x457)]=_0x36f38b,this['_undoRedoService']=_0x315fe4,this[_0x20ef2d(0x3b1)]=_0x2461cd,this[_0x20ef2d(0x1e1)]=_0xcc30d6,this[_0x20ef2d(0x288)]=_0x27432f,this[_0x20ef2d(0x191)]=_0x107fd9);}[_0x2da18b(0x2c2)](_0x10591a){const _0x3c54fc=_0x2da18b,_0x5c2116=this[_0x3c54fc(0x3b1)][_0x3c54fc(0x29c)](this['unitID']);return _0x10591a[_0x3c54fc(0x14a)]>_0x5c2116+0x1?(this[_0x3c54fc(0x429)][_0x3c54fc(0x394)]({'from':_0x5c2116,'to':_0x10591a[_0x3c54fc(0x14a)]-0x1}),!0x0):!0x1;}[_0x2da18b(0x315)](_0x42b689){const _0x2af851=_0x2da18b;this[_0x2af851(0x473)]['transformUndoRedo'](this[_0x2af851(0x1e5)],_0x42b689);}['_transformSelections'](_0x5c6c7e){const _0x2aeb76=_0x2da18b;var _0x5a9491,_0x686242;(_0x686242=(_0x5a9491=this['_handler'])[_0x2aeb76(0x320)])==null||_0x686242[_0x2aeb76(0x19e)](_0x5a9491,_0x5c6c7e);}[_0x2da18b(0x3bc)](_0xd92734){const _0x325864=_0x2da18b;var _0xf8cf5f,_0x1b90d9;return(_0x1b90d9=(_0xf8cf5f=this[_0x325864(0x429)])['onTransformIME'])==null?void 0x0:_0x1b90d9[_0x325864(0x19e)](_0xf8cf5f,_0xd92734);}[_0x2da18b(0x24c)](_0x2091bf){const _0x19e0af=_0x2da18b;var _0x3a256e,_0x5a9ddc,_0x2aca14;return(_0x2aca14=(_0x5a9ddc=(_0x3a256e=this[_0x19e0af(0x429)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x5a9ddc[_0x19e0af(0x19e)](_0x3a256e,_0x2091bf))!=null?_0x2aca14:_0x2091bf;}[_0x2da18b(0x32e)](_0x35983e){const _0x1c1059=_0x2da18b;var _0xd4c56d,_0x3e7b46;if(this['type']===H[_0x1c1059(0x37b)]){const {unitID:_0x9abf3e,mutations:_0x2374a8,memberID:_0x3e1cde}=_0x35983e,_0x16ae8f=_0x2374a8[0x0][_0x1c1059(0x338)]['textRanges'];Array[_0x1c1059(0x1f8)](_0x16ae8f)&&_0x16ae8f['length']>0x0&&((_0x3e7b46=(_0xd4c56d=this[_0x1c1059(0x429)])['onSyncEditingCollabCursor'])==null||_0x3e7b46[_0x1c1059(0x19e)](_0xd4c56d,{'unitID':_0x9abf3e,'memberID':_0x3e1cde,'textRanges':_0x16ae8f}));}}['_updateLocalCache'](){const _0x4ff2c3=_0x2da18b;this['_localCacheService'][_0x4ff2c3(0x48c)](this[_0x4ff2c3(0x1e5)],this[_0x4ff2c3(0x3f5)],this[_0x4ff2c3(0x288)],this[_0x4ff2c3(0x191)]);}['_getCurrentRevision'](){const _0x50176d=_0x2da18b;return this['_revisionService'][_0x50176d(0x29c)](this['unitID']);}[_0x2da18b(0x195)](){const _0x5df38f=_0x2da18b;this[_0x5df38f(0x3b1)][_0x5df38f(0x182)](this[_0x5df38f(0x1e5)]);}[_0x2da18b(0x493)](_0x5d167b){const _0x313023=_0x2da18b;var _0x3b1e4f;const _0x213dd9=this[_0x313023(0x24c)](_0x5d167b),_0xa594d4=_0x532db3(_0x213dd9[_0x313023(0x154)],this['_commandService'],{'fromCollab':!0x0});if(!_0xa594d4[_0x313023(0x1a7)])throw _0xa594d4[_0x313023(0x490)]instanceof Error?_0xa594d4[_0x313023(0x490)]:new Error((_0x3b1e4f=_0xa594d4[_0x313023(0x490)])!=null?_0x3b1e4f:_0x313023(0x185));this['_transformIMECache'](_0x213dd9),this[_0x313023(0x315)](_0x5d167b),this['_transformSelections'](_0x213dd9),this[_0x313023(0x32e)](_0x213dd9),this[_0x313023(0x195)]();}}let Se=class extends _e{constructor(_0x3fd03a,_0x31e6a0,_0x4c73b6,_0x1a2f0a,_0x6718a6,_0x2bbec0,_0x2f355d,_0x5885c9,_0x16dd42,_0x35c60a){const _0x1f36a0=_0x2da18b;super(_0x3fd03a,_0x31e6a0,null,[],_0x4c73b6,_0x5885c9,_0x2f355d,_0x1a2f0a,_0x6718a6),l(this,_0x1f36a0(0x31a),_0x1f36a0(0x287)),(this['_injector']=_0x2bbec0,this[_0x1f36a0(0x356)]=_0x16dd42,this[_0x1f36a0(0x32a)]=_0x35c60a);}[_0x2da18b(0x150)](_0x4466de){const _0x220c54=_0x2da18b,_0x185a86=this['_injector']['createInstance'](K,this[_0x220c54(0x1e5)],this['type'],[_0x4466de],this[_0x220c54(0x429)]);return _0x185a86['_schedule'](),_0x185a86[_0x220c54(0x193)](),_0x185a86;}['onRemoteChangeset'](_0x43e247){const _0x282e16=_0x2da18b;if(this['_checkMissing'](_0x43e247))return this[_0x282e16(0x272)]['createInstance'](k,this[_0x282e16(0x1e5)],this[_0x282e16(0x3f5)],null,[],null,[_0x43e247],this[_0x282e16(0x429)]);try{const _0x4222b2=this[_0x282e16(0x32a)]['transformMutationsWithChangeset'](_0x43e247,[ur]);if(_0x524343(_0x4222b2)){const {c1Prime:_0x2fac01}=_0x4222b2;return this[_0x282e16(0x493)](_0x2fac01),this;}throw _0x4222b2[_0x282e16(0x490)];}catch(_0x466fc6){return this[_0x282e16(0x356)]['error'](_0x466fc6),this[_0x282e16(0x397)](!0x1);}}[_0x2da18b(0x397)](_0x2aa0d9){const _0x210a2c=_0x2da18b;return this[_0x210a2c(0x272)]['createInstance'](Q,this[_0x210a2c(0x1e5)],this[_0x210a2c(0x3f5)],null,[],this['_handler'],_0x2aa0d9);}[_0x2da18b(0x1b0)](){const _0x2cd970=_0x2da18b;throw new Error(_0x2cd970(0x269));}[_0x2da18b(0x3d0)](){const _0x392783=_0x2da18b;throw new Error(_0x392783(0x2fd));}['toggleOffline'](){const _0x19c831=_0x2da18b;return this[_0x19c831(0x272)][_0x19c831(0x3cb)](ee,this['unitID'],this[_0x19c831(0x3f5)],null,[],this['_handler']);}[_0x2da18b(0x21d)](){return this;}[_0x2da18b(0x1df)](){const _0x6c7bc2=_0x2da18b;throw new Error(_0x6c7bc2(0x335));}[_0x2da18b(0x3e3)](){const _0x263a47=_0x2da18b,_0x472965=this['_revisionService']['getCurrentRevOfUnit'](this['unitID']);return this['_handler'][_0x263a47(0x394)]({'from':_0x472965,'to':0x0}),this[_0x263a47(0x272)]['createInstance'](k,this[_0x263a47(0x1e5)],this[_0x263a47(0x3f5)],null,[],null,[],this['_handler']);}};Se=le([m(0x3,_0x24691e(_0x40a032)),m(0x4,_0x24691e(D)),m(0x5,_0x24691e(_0x129c7a)),m(0x6,_0x37a9c2),m(0x7,_0x18280b),m(0x8,_0x16c619),m(0x9,_0x418a36)],Se);let K=class extends _e{constructor(_0x46ee98,_0x430718,_0x476662,_0x170c63,_0x30e15d,_0x2a2e6e,_0x10f05e,_0x50b206,_0x48d9b1,_0x5e3e47,_0x2973f2,_0x3d99f7,_0x187b38,_0x18fc1b){const _0x5039e4=_0x2da18b;super(_0x46ee98,_0x430718,null,_0x476662,_0x170c63,_0x5e3e47,_0x18fc1b,_0x2a2e6e,_0x10f05e),l(this,_0x5039e4(0x31a),'pending'),l(this,_0x5039e4(0x431),null),l(this,'_sendingTimer',null),(this[_0x5039e4(0x272)]=_0x30e15d,this[_0x5039e4(0x131)]=_0x50b206,this[_0x5039e4(0x356)]=_0x48d9b1,this[_0x5039e4(0x205)]=_0x2973f2,this[_0x5039e4(0x32a)]=_0x3d99f7,this[_0x5039e4(0x406)]=_0x187b38);}['appendMutation'](_0x2faa3c){const _0x7566e0=_0x2da18b;return this[_0x7566e0(0x191)][_0x7566e0(0x46c)](_0x2faa3c),this[_0x7566e0(0x193)](),this;}[_0x2da18b(0x386)](_0x5a76f2){const _0x178101=_0x2da18b;if(this['_checkMissing'](_0x5a76f2))return this[_0x178101(0x3bf)](),this['_injector'][_0x178101(0x3cb)](k,this[_0x178101(0x1e5)],this[_0x178101(0x3f5)],null,this[_0x178101(0x191)],null,[_0x5a76f2],this['_handler']);try{const _0x48ebaf=this['_transformService']['transformMutationsWithChangeset'](_0x5a76f2,this[_0x178101(0x191)]);if(_0x524343(_0x48ebaf)){const {c1Prime:_0x34c456,m2Prime:_0x448f49}=_0x48ebaf;this[_0x178101(0x493)](_0x34c456);const _0x94175d=this[_0x178101(0x272)][_0x178101(0x3cb)](K,this['unitID'],this[_0x178101(0x3f5)],_0x448f49,this['_handler']);return this[_0x178101(0x3bf)](),_0x94175d[_0x178101(0x470)](this[_0x178101(0x431)]?Math[_0x178101(0x43c)](0x0,new Date()['getTime']()-this[_0x178101(0x431)]):this[_0x178101(0x1cc)]()),_0x94175d;}throw _0x48ebaf['error'];}catch(_0x3763df){return this[_0x178101(0x356)]['error'](_0x3763df),this[_0x178101(0x397)](!0x1);}}[_0x2da18b(0x1b0)](){const _0x5102cc=_0x2da18b;throw new Error(_0x5102cc(0x340));}['onRemoteRej'](){throw new Error('[PendingState]:\x20received\x20rejection.');}[_0x2da18b(0x233)](){const _0x51d723=_0x2da18b;return this[_0x51d723(0x3bf)](),this[_0x51d723(0x272)][_0x51d723(0x3cb)](ee,this[_0x51d723(0x1e5)],this['type'],null,this[_0x51d723(0x191)],this[_0x51d723(0x429)]);}[_0x2da18b(0x21d)](){return this;}[_0x2da18b(0x470)](_0x2643a9){const _0x27c0af=_0x2da18b,_0xb7babd=_0x2643a9!=null?_0x2643a9:this['_getSendChangesetTimeout']();this[_0x27c0af(0x431)]=new Date()[_0x27c0af(0x3a6)](),this[_0x27c0af(0x26d)]=window['setTimeout'](()=>{const _0xa27b75=_0x27c0af;this[_0xa27b75(0x3bf)]();let _0x4e5747=null;switch(this['type']){case H[_0xa27b75(0x2d4)]:{_0x4e5747=ls(this[_0xa27b75(0x191)],this[_0xa27b75(0x1e5)],this[_0xa27b75(0x406)],this[_0xa27b75(0x3b1)],this[_0xa27b75(0x131)]);break;}case H[_0xa27b75(0x37b)]:{this[_0xa27b75(0x191)][_0xa27b75(0x14b)](_0x5759aa=>_0x5759aa['id']===_0x11f4dd['id'])?_0x4e5747=_r(this[_0xa27b75(0x191)],this[_0xa27b75(0x1e5)],this[_0xa27b75(0x406)],this['_revisionService'],this[_0xa27b75(0x131)]):_0x4e5747=ls(this[_0xa27b75(0x191)],this[_0xa27b75(0x1e5)],this[_0xa27b75(0x406)],this[_0xa27b75(0x3b1)],this[_0xa27b75(0x131)]);break;}default:throw new Error(_0xa27b75(0x18f)+this[_0xa27b75(0x3f5)]+_0xa27b75(0x384));}const {changeset:_0x3d2b3d,pendingMutations:_0xefa832}=_0x4e5747;this[_0xa27b75(0x429)][_0xa27b75(0x164)](_0x3d2b3d);const _0x1dcd1b=_0xefa832['length']?this[_0xa27b75(0x272)][_0xa27b75(0x3cb)](X,this['unitID'],this[_0xa27b75(0x3f5)],_0x3d2b3d,_0xefa832,this['_handler']):this['_injector'][_0xa27b75(0x3cb)](Z,this[_0xa27b75(0x1e5)],this[_0xa27b75(0x3f5)],_0x3d2b3d,this[_0xa27b75(0x429)]);_0x1dcd1b[_0xa27b75(0x193)](),this[_0xa27b75(0x429)]['onStateChange'](this,_0x1dcd1b);},_0xb7babd);}[_0x2da18b(0x1cc)](){const _0x5f13b6=_0x2da18b;var _0x403d84;const _0xd944ba=this[_0x5f13b6(0x205)]['getConfig'](L);return(_0x403d84=_0xd944ba==null?void 0x0:_0xd944ba[_0x5f13b6(0x172)])!=null?_0x403d84:gn;}['resend'](){const _0x1343ee=_0x2da18b;throw new Error(_0x1343ee(0x385));}[_0x2da18b(0x3bf)](){const _0x3c0dfd=_0x2da18b;this[_0x3c0dfd(0x26d)]!=null&&(clearTimeout(this[_0x3c0dfd(0x26d)]),this[_0x3c0dfd(0x26d)]=null);}[_0x2da18b(0x397)](_0x4f8fb8){const _0x46284e=_0x2da18b;return this['_clearScheduledTask'](),this['_injector'][_0x46284e(0x3cb)](Q,this['unitID'],this[_0x46284e(0x3f5)],null,this[_0x46284e(0x191)],this[_0x46284e(0x429)],_0x4f8fb8);}};K=le([m(0x4,_0x24691e(_0x129c7a)),m(0x5,_0x24691e(_0x40a032)),m(0x6,_0x24691e(D)),m(0x7,_0x24691e(ae)),m(0x8,_0x16c619),m(0x9,_0x18280b),m(0xa,_0x4b95b7),m(0xb,_0x418a36),m(0xc,_0x4af863),m(0xd,_0x37a9c2)],K);let Z=class extends _e{constructor(_0x5f2d4c,_0x19b096,_0x4afacb,_0x3e78a4,_0x4cdb0c,_0x1e4ab7,_0xd6dae9,_0xce478e,_0x3d6b8b,_0x31105c,_0x73f26b){const _0x11ce61=_0x2da18b;super(_0x5f2d4c,_0x19b096,_0x4afacb,[],_0x3e78a4,_0xce478e,_0x73f26b,_0x1e4ab7,_0xd6dae9),l(this,_0x11ce61(0x31a),_0x11ce61(0x455)),(this[_0x11ce61(0x272)]=_0x4cdb0c,this[_0x11ce61(0x356)]=_0x3d6b8b,this[_0x11ce61(0x32a)]=_0x31105c);}[_0x2da18b(0x150)](_0x3fcd35){const _0x2e846d=_0x2da18b,_0x5f49ac=this[_0x2e846d(0x272)]['createInstance'](X,this[_0x2e846d(0x1e5)],this[_0x2e846d(0x3f5)],this['_awaitingChangeset'],[_0x3fcd35],this[_0x2e846d(0x429)]);return _0x5f49ac[_0x2e846d(0x193)](),_0x5f49ac;}[_0x2da18b(0x386)](_0x506c63){const _0x3a873d=_0x2da18b;if(this[_0x3a873d(0x2c2)](_0x506c63))return this['_injector'][_0x3a873d(0x3cb)](k,this[_0x3a873d(0x1e5)],this[_0x3a873d(0x3f5)],this[_0x3a873d(0x288)],[],null,[_0x506c63],this[_0x3a873d(0x429)]);try{const _0x1dc998=this[_0x3a873d(0x32a)][_0x3a873d(0x1b2)]([_0x506c63],[this[_0x3a873d(0x288)]],!0x1);if(_0x51238a(_0x1dc998)){const {c1Prime:_0x166ac2,c2Prime:_0x3b2bf7}=_0x1dc998;this[_0x3a873d(0x493)](_0x166ac2[0x0]),_0x3b2bf7[0x0][_0x3a873d(0x3cd)]=this[_0x3a873d(0x17b)]();const _0x134bc8=this[_0x3a873d(0x272)]['createInstance'](Z,this[_0x3a873d(0x1e5)],this[_0x3a873d(0x3f5)],_0x3b2bf7[0x0],this[_0x3a873d(0x429)]);return _0x134bc8[_0x3a873d(0x193)](),_0x134bc8;}return this[_0x3a873d(0x397)](!0x1);}catch(_0x1fe72d){return this['_logService'][_0x3a873d(0x490)](_0x1fe72d),this[_0x3a873d(0x397)](!0x1);}}[_0x2da18b(0x1b0)](_0x4ff1d3){const _0x579fe4=_0x2da18b,_0x36c981=this[_0x579fe4(0x3b1)][_0x579fe4(0x29c)](this[_0x579fe4(0x1e5)]);if(_0x4ff1d3[_0x579fe4(0x14a)]<_0x36c981-0x1)return this;if(this['_checkMissing'](_0x4ff1d3))return this[_0x579fe4(0x272)][_0x579fe4(0x3cb)](k,this['unitID'],this['type'],null,[],this[_0x579fe4(0x288)],[],this['_handler']);this['_incrementRevisionNumber']();const _0x1f549a=this['_injector'][_0x579fe4(0x3cb)](Se,this['unitID'],this[_0x579fe4(0x3f5)],this[_0x579fe4(0x429)]);return _0x1f549a['_updateLocalCache'](),_0x1f549a;}['onRemoteRej'](_0x6955b2){const _0x250358=_0x2da18b;return this[_0x250358(0x397)](!!(_0x6955b2!=null&&_0x6955b2['isPermissionRej']));}['toggleOffline'](){const _0x379d9b=_0x2da18b;return this[_0x379d9b(0x272)][_0x379d9b(0x3cb)](ee,this['unitID'],this[_0x379d9b(0x3f5)],this[_0x379d9b(0x288)],[],this['_handler']);}[_0x2da18b(0x21d)](){return this;}[_0x2da18b(0x1df)](){const _0x133276=_0x2da18b;this[_0x133276(0x429)][_0x133276(0x164)](this[_0x133276(0x288)]);}[_0x2da18b(0x397)](_0x16b2a3){const _0x5243d9=_0x2da18b;return this[_0x5243d9(0x272)]['createInstance'](Q,this[_0x5243d9(0x1e5)],this['type'],this['_awaitingChangeset'],[],this[_0x5243d9(0x429)],_0x16b2a3);}};Z=le([m(0x4,_0x24691e(_0x129c7a)),m(0x5,_0x24691e(_0x40a032)),m(0x6,_0x24691e(D)),m(0x7,_0x18280b),m(0x8,_0x16c619),m(0x9,_0x418a36),m(0xa,_0x37a9c2)],Z);let X=class extends _e{constructor(_0x45cde1,_0x512d34,_0x10715a,_0xf1d175,_0x55211d,_0x2d8894,_0x4dace2,_0xa97950,_0x1af48e,_0x546ce8,_0x1aac33,_0x283ce1){const _0x356bb4=_0x2da18b;super(_0x45cde1,_0x512d34,_0x10715a,_0xf1d175,_0x55211d,_0x1af48e,_0x283ce1,_0x4dace2,_0xa97950),l(this,'status',_0x356bb4(0x39b)),(this[_0x356bb4(0x272)]=_0x2d8894,this[_0x356bb4(0x356)]=_0x546ce8,this[_0x356bb4(0x32a)]=_0x1aac33);}[_0x2da18b(0x150)](_0x1287b7){const _0x1eabef=_0x2da18b;return this[_0x1eabef(0x191)][_0x1eabef(0x46c)](_0x1287b7),this;}[_0x2da18b(0x386)](_0x2ea2a1){const _0x20946d=_0x2da18b;if(this[_0x20946d(0x2c2)](_0x2ea2a1))return this['_injector'][_0x20946d(0x3cb)](k,this[_0x20946d(0x1e5)],this[_0x20946d(0x3f5)],this[_0x20946d(0x288)],this[_0x20946d(0x191)],null,[_0x2ea2a1],this[_0x20946d(0x429)]);try{const _0x2a9132=this[_0x20946d(0x32a)]['transformChangesets']([_0x2ea2a1],[this[_0x20946d(0x288)]],!0x1);if(_0x51238a(_0x2a9132)){const {c1Prime:_0x309ae2,c2Prime:_0x1f4d1a}=_0x2a9132,_0x3cb097=this[_0x20946d(0x32a)][_0x20946d(0x18b)](_0x309ae2[0x0],this[_0x20946d(0x191)]);if(_0x524343(_0x3cb097)){const {c1Prime:_0xb49bea,m2Prime:_0x3f660a}=_0x3cb097;return this[_0x20946d(0x493)](_0xb49bea),_0x1f4d1a[0x0][_0x20946d(0x3cd)]=this[_0x20946d(0x17b)](),this['_injector'][_0x20946d(0x3cb)](X,this[_0x20946d(0x1e5)],this[_0x20946d(0x3f5)],_0x1f4d1a[0x0],_0x3f660a,this[_0x20946d(0x429)]);}throw _0x3cb097['error'];}throw _0x2a9132[_0x20946d(0x490)];}catch(_0x50b884){return this[_0x20946d(0x356)][_0x20946d(0x490)](_0x50b884),this['_onConflict'](!0x1);}}[_0x2da18b(0x1b0)](_0x3f002a){const _0x3ca6dc=_0x2da18b;if(this[_0x3ca6dc(0x2c2)](_0x3f002a))return this[_0x3ca6dc(0x272)][_0x3ca6dc(0x3cb)](k,this[_0x3ca6dc(0x1e5)],this[_0x3ca6dc(0x3f5)],null,this['_pendingMutations'],this['_awaitingChangeset'],[],this[_0x3ca6dc(0x429)]);this[_0x3ca6dc(0x195)]();const _0x4f1b94=this[_0x3ca6dc(0x272)][_0x3ca6dc(0x3cb)](K,this[_0x3ca6dc(0x1e5)],this[_0x3ca6dc(0x3f5)],this[_0x3ca6dc(0x191)],this[_0x3ca6dc(0x429)]);return _0x4f1b94['_schedule'](),_0x4f1b94[_0x3ca6dc(0x193)](),_0x4f1b94;}[_0x2da18b(0x3d0)](_0x5efa6d){const _0xb26c11=_0x2da18b;return this['_onConflict'](!!(_0x5efa6d!=null&&_0x5efa6d[_0xb26c11(0x3e9)]));}[_0x2da18b(0x233)](){const _0x465399=_0x2da18b;return this['_injector'][_0x465399(0x3cb)](ee,this[_0x465399(0x1e5)],this[_0x465399(0x3f5)],this[_0x465399(0x288)],this[_0x465399(0x191)],this[_0x465399(0x429)]);}[_0x2da18b(0x21d)](){return this;}[_0x2da18b(0x1df)](){const _0x425bda=_0x2da18b;this['_handler'][_0x425bda(0x164)](this['_awaitingChangeset']);}['_onConflict'](_0xb2b4d2){const _0x175dbc=_0x2da18b;return this[_0x175dbc(0x272)][_0x175dbc(0x3cb)](Q,this['unitID'],this['type'],null,this[_0x175dbc(0x191)],this['_handler'],_0xb2b4d2);}};X=le([m(0x5,_0x24691e(_0x129c7a)),m(0x6,_0x24691e(_0x40a032)),m(0x7,_0x24691e(D)),m(0x8,_0x18280b),m(0x9,_0x16c619),m(0xa,_0x418a36),m(0xb,_0x37a9c2)],X);let Q=class extends _e{constructor(_0x25690b,_0x3a55d3,_0x40911c,_0x3d8619,_0x284f6b,_0x1b9d0c=!0x1,_0x10dca0,_0x42679e,_0x5df03e,_0x1cbc1d,_0xeb0f3c,_0x760c7,_0x3e2ac9){const _0x1a8980=_0x2da18b;super(_0x25690b,_0x3a55d3,_0x40911c,_0x3d8619,_0x284f6b,_0x42679e,_0x5df03e,_0xeb0f3c,_0x1cbc1d),l(this,_0x1a8980(0x31a),_0x1a8980(0x278)),(this[_0x1a8980(0x317)]=_0x1b9d0c,this['_permissionService']=_0x10dca0,this['_localeService']=_0x760c7,this['_notificationService']=_0x3e2ac9,this[_0x1a8980(0x13d)](),this[_0x1a8980(0x24d)](),this[_0x1a8980(0x260)]());}[_0x2da18b(0x150)](){return this;}[_0x2da18b(0x386)](){return this;}['onRemoteAck'](){return this;}['onRemoteRej'](){return this;}[_0x2da18b(0x233)](){return this;}['toggleOnline'](){return this;}[_0x2da18b(0x1df)](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}['_clearLocalCache'](){const _0x3e80ab=_0x2da18b;this[_0x3e80ab(0x1e1)][_0x3e80ab(0x48c)](this[_0x3e80ab(0x1e5)],this[_0x3e80ab(0x3f5)],null,[]);}[_0x2da18b(0x13d)](){const _0x545669=_0x2da18b;this[_0x545669(0x317)]?this[_0x545669(0x2f4)][_0x545669(0x240)]({'title':this[_0x545669(0x2cb)]['t'](_0x545669(0x15d)),'content':this[_0x545669(0x2cb)]['t']('permission.content'),'type':'error','duration':0x0}):this[_0x545669(0x2f4)]['show']({'title':this[_0x545669(0x2cb)]['t']('conflict.title'),'content':this[_0x545669(0x2cb)]['t'](_0x545669(0x416)),'type':_0x545669(0x490),'duration':0x0});}['_disableEditing'](){const _0x1b0ef8=_0x2da18b;this[_0x1b0ef8(0x28d)][_0x1b0ef8(0x35b)](new _0x182d13(this[_0x1b0ef8(0x1e5)])['id'],!0x1);}};Q=le([m(0x6,_0x24691e(_0x1892f6)),m(0x7,_0x18280b),m(0x8,_0x37a9c2),m(0x9,_0x24691e(D)),m(0xa,_0x24691e(_0x40a032)),m(0xb,_0x24691e(_0x1695f3)),m(0xc,_0x42d964)],Q);let ee=class extends _e{constructor(_0x3f695d,_0x5a19c3,_0x106497,_0x53c672,_0x1d41c5,_0x4eed24,_0x4f852b,_0x32f426,_0x1645c5,_0x41bf16){const _0x26f3f5=_0x2da18b;super(_0x3f695d,_0x5a19c3,_0x106497,_0x53c672,_0x1d41c5,_0x1645c5,_0x41bf16,_0x4f852b,_0x32f426),l(this,_0x26f3f5(0x31a),_0x26f3f5(0x2c1)),this[_0x26f3f5(0x272)]=_0x4eed24;}[_0x2da18b(0x150)](_0x4674e1){const _0x4ac564=_0x2da18b;return this['_pendingMutations'][_0x4ac564(0x46c)](_0x4674e1),this[_0x4ac564(0x193)](),this;}['onRemoteChangeset'](_0x406cde){const _0x3a429f=_0x2da18b;throw new Error(_0x3a429f(0x381));}['onRemoteAck'](){const _0x2e3753=_0x2da18b;throw new Error(_0x2e3753(0x289));}['onRemoteRej'](){const _0x5d53c6=_0x2da18b;throw new Error(_0x5d53c6(0x420));}[_0x2da18b(0x233)](){return this;}[_0x2da18b(0x21d)](){const _0x506a74=_0x2da18b,{_injector:_0x3250d1,_pendingMutations:_0x200b16,_awaitingChangeset:_0x43449a,unitID:_0x200c47,_handler:_0x374934,type:_0x3c8fbe}=this,_0x5e5e37=Hs(_0x3250d1,_0x200c47,_0x3c8fbe,_0x43449a,_0x200b16,_0x374934);return _0x5e5e37 instanceof K?_0x5e5e37['_schedule']():(_0x5e5e37 instanceof X||_0x5e5e37 instanceof Z)&&_0x5e5e37[_0x506a74(0x1df)](),_0x5e5e37;}[_0x2da18b(0x1df)](){const _0x3a2819=_0x2da18b;throw new Error(_0x3a2819(0x412));}};ee=le([m(0x5,_0x24691e(_0x129c7a)),m(0x6,_0x24691e(_0x40a032)),m(0x7,_0x24691e(D)),m(0x8,_0x18280b),m(0x9,_0x37a9c2)],ee);let k=class extends _e{constructor(_0xb02afa,_0x2d749f,_0x24be60,_0xb109aa,_0x2e9de7,_0x40eb28,_0x5245fc,_0x5f277a,_0x29bc7d,_0x453524,_0xd733e3,_0x6e3077,_0x529fc7,_0x58a419){const _0x41f718=_0x2da18b;super(_0xb02afa,_0x2d749f,_0x24be60,_0xb109aa,_0x5245fc,_0x6e3077,_0x529fc7,_0x29bc7d,_0x453524),l(this,_0x41f718(0x31a),_0x41f718(0x24a)),(this[_0x41f718(0x2ae)]=_0x2e9de7,this[_0x41f718(0x34f)]=_0x40eb28,this[_0x41f718(0x272)]=_0x5f277a,this[_0x41f718(0x356)]=_0xd733e3,this['_transformService']=_0x58a419);}[_0x2da18b(0x417)](_0x5a19f2){const _0x32ecc0=_0x2da18b;try{const _0x15270e=[..._0x5a19f2,...this[_0x32ecc0(0x34f)]],_0x30b903=[this[_0x32ecc0(0x288)]||this[_0x32ecc0(0x2ae)]]['filter'](_0x282e44=>!!_0x282e44);let _0x48be2f,_0x1f9f52;if(_0x30b903[_0x32ecc0(0x1a8)]){const _0x4ead27=this[_0x32ecc0(0x32a)][_0x32ecc0(0x1b2)](_0x15270e,_0x30b903,!0x1);if(!_0x51238a(_0x4ead27))throw _0x4ead27[_0x32ecc0(0x490)];_0x48be2f=_0x4ead27['c1Prime'],_0x1f9f52=_0x4ead27['c2Prime'];}else _0x48be2f=_0x15270e,_0x1f9f52=[];let _0x155203=this[_0x32ecc0(0x191)];_0x48be2f[_0x32ecc0(0x137)](_0x168dec=>{const _0x9eee32=_0x32ecc0;let _0x1201ab;if(_0x155203[_0x9eee32(0x1a8)]){const _0x177c09=this['_transformService'][_0x9eee32(0x18b)](_0x168dec,_0x155203);if(!_0x524343(_0x177c09))throw _0x177c09['error'];_0x1201ab=_0x177c09[_0x9eee32(0x43e)],_0x155203=_0x177c09[_0x9eee32(0x22c)];}else _0x1201ab=_0x168dec;this[_0x9eee32(0x493)](_0x1201ab);}),this['_acknowledgedAwaitingChangeset']&&this[_0x32ecc0(0x195)](),this[_0x32ecc0(0x288)]&&_0x1f9f52[_0x32ecc0(0x1a8)]&&(_0x1f9f52[0x0][_0x32ecc0(0x3cd)]=this[_0x32ecc0(0x17b)]());let _0x42614e;if(this[_0x32ecc0(0x288)]&&_0x155203[_0x32ecc0(0x1a8)]!==0x0)_0x42614e=this[_0x32ecc0(0x272)][_0x32ecc0(0x3cb)](X,this[_0x32ecc0(0x1e5)],this[_0x32ecc0(0x3f5)],_0x1f9f52[0x0],_0x155203,this[_0x32ecc0(0x429)]);else{if(this['_awaitingChangeset']&&_0x155203[_0x32ecc0(0x1a8)]===0x0)_0x1f9f52[0x0]['baseRev']=this[_0x32ecc0(0x17b)](),_0x42614e=this[_0x32ecc0(0x272)]['createInstance'](Z,this[_0x32ecc0(0x1e5)],this['type'],_0x1f9f52[0x0],this[_0x32ecc0(0x429)]);else{if(_0x155203[_0x32ecc0(0x1a8)]!==0x0){const _0xbac9a=this[_0x32ecc0(0x272)][_0x32ecc0(0x3cb)](K,this[_0x32ecc0(0x1e5)],this['type'],_0x155203,this[_0x32ecc0(0x429)]);_0xbac9a['_schedule'](),_0x42614e=_0xbac9a;}else _0x42614e=this[_0x32ecc0(0x272)]['createInstance'](Se,this[_0x32ecc0(0x1e5)],this[_0x32ecc0(0x3f5)],this[_0x32ecc0(0x429)]);}}return _0x42614e[_0x32ecc0(0x193)](),_0x42614e;}catch(_0x5af49e){return this[_0x32ecc0(0x356)][_0x32ecc0(0x490)]('[FetchMissState]','failed\x20to\x20apply\x20missed\x20changesets!',_0x5af49e),this[_0x32ecc0(0x272)][_0x32ecc0(0x3cb)](Q,this[_0x32ecc0(0x1e5)],this[_0x32ecc0(0x3f5)],this[_0x32ecc0(0x288)],this[_0x32ecc0(0x191)],this[_0x32ecc0(0x429)],!0x1);}}[_0x2da18b(0x1df)](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}['appendMutation'](_0x2660c4){const _0x3fcec4=_0x2da18b;return this[_0x3fcec4(0x191)][_0x3fcec4(0x46c)](_0x2660c4),this;}[_0x2da18b(0x386)](_0x1f8729){const _0x48ae8d=_0x2da18b;return this['_queuedRemoteChangesets'][_0x48ae8d(0x46c)](_0x1f8729),this;}[_0x2da18b(0x1b0)](_0x9d6913){const _0x2f64ba=_0x2da18b;if(this[_0x2f64ba(0x288)])return this[_0x2f64ba(0x2ae)]=this[_0x2f64ba(0x288)],this['_awaitingChangeset']=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x2da18b(0x3d0)](_0x44033a){const _0xce9078=_0x2da18b;return this[_0xce9078(0x397)](!!(_0x44033a!=null&&_0x44033a['isPermissionRej']));}[_0x2da18b(0x233)](){const _0x1dddf3=_0x2da18b;return this[_0x1dddf3(0x272)][_0x1dddf3(0x3cb)](ee,this['unitID'],this['type'],this[_0x1dddf3(0x288)],this[_0x1dddf3(0x191)],this[_0x1dddf3(0x429)]);}[_0x2da18b(0x21d)](){return this;}['_onConflict'](_0x4ad290){const _0x4353c2=_0x2da18b;return this[_0x4353c2(0x272)][_0x4353c2(0x3cb)](Q,this['unitID'],this[_0x4353c2(0x3f5)],this[_0x4353c2(0x288)],this[_0x4353c2(0x191)],this[_0x4353c2(0x429)],_0x4ad290);}};k=le([m(0x7,_0x24691e(_0x129c7a)),m(0x8,_0x24691e(_0x40a032)),m(0x9,_0x24691e(D)),m(0xa,_0x16c619),m(0xb,_0x18280b),m(0xc,_0x37a9c2),m(0xd,_0x418a36)],k);function Hs(_0x3d1239,_0x15d239,_0x16df40,_0x1bc4e5,_0x43404f,_0x496395){const _0x134847=_0x2da18b;return _0x1bc4e5&&_0x43404f[_0x134847(0x1a8)]?_0x3d1239[_0x134847(0x3cb)](X,_0x15d239,_0x16df40,_0x1bc4e5,_0x43404f,_0x496395):_0x1bc4e5?_0x3d1239[_0x134847(0x3cb)](Z,_0x15d239,_0x16df40,_0x1bc4e5,_0x496395):_0x43404f[_0x134847(0x1a8)]?_0x3d1239[_0x134847(0x3cb)](K,_0x15d239,_0x16df40,_0x43404f,_0x496395):_0x3d1239[_0x134847(0x3cb)](Se,_0x15d239,_0x16df40,_0x496395);}var mr=Object['defineProperty'],gr=Object['getOwnPropertyDescriptor'],Vt=(_0x33efe4,_0x4d1486,_0x19d39f,_0x1190de)=>{const _0x15eb3d=_0x2da18b;for(var _0x3e6772=_0x1190de>0x1?void 0x0:_0x1190de?gr(_0x4d1486,_0x19d39f):_0x4d1486,_0x28dd2e=_0x33efe4[_0x15eb3d(0x1a8)]-0x1,_0x19b9a7;_0x28dd2e>=0x0;_0x28dd2e--)(_0x19b9a7=_0x33efe4[_0x28dd2e])&&(_0x3e6772=(_0x1190de?_0x19b9a7(_0x4d1486,_0x19d39f,_0x3e6772):_0x19b9a7(_0x3e6772))||_0x3e6772);return _0x1190de&&_0x3e6772&&mr(_0x4d1486,_0x19d39f,_0x3e6772),_0x3e6772;},p=(_0xb446dd,_0x2921a0)=>(_0x5f4a31,_0x33aaed)=>_0x2921a0(_0x5f4a31,_0x33aaed,_0xb446dd);let Je=class extends _0x13b3a6{constructor(_0x1182a8,_0x232f13,_0x35ebf5,_0x1fd61b,_0x4ccaa0,_0x536ffc,_0x539e14,_0x3da82e,_0x123050,_0x4be3a4,_0x2c5381,_0x5ed7ee,_0x5005f3){const _0x4e179a=_0x2da18b;super(),l(this,_0x4e179a(0x438),new _0x295ce3(null)),l(this,_0x4e179a(0x16f),this[_0x4e179a(0x438)][_0x4e179a(0x344)]()),l(this,_0x4e179a(0x2fc)),l(this,_0x4e179a(0x42c),!0x1),l(this,'status$',this[_0x4e179a(0x16f)]['pipe'](_0x63f2b0(_0x38dfa2=>_0x38dfa2?_0x38dfa2[_0x4e179a(0x31a)]:w[_0x4e179a(0x2e9)]),_0x503b15(0x1))),l(this,_0x4e179a(0x148),!0x1),l(this,_0x4e179a(0x41d),[]),(this['unitID']=_0x1182a8,this[_0x4e179a(0x1d4)]=_0x232f13,this['_type']=_0x35ebf5,this[_0x4e179a(0x272)]=_0x1fd61b,this[_0x4e179a(0x1e1)]=_0x4ccaa0,this[_0x4e179a(0x142)]=_0x536ffc,this[_0x4e179a(0x2cb)]=_0x539e14,this['_revisionService']=_0x3da82e,this[_0x4e179a(0x356)]=_0x123050,this['_commandService']=_0x4be3a4,this[_0x4e179a(0x387)]=_0x2c5381,this['_permissionService']=_0x5ed7ee,this[_0x4e179a(0x19a)]=_0x5005f3);}get['state'](){const _0xeee63f=_0x2da18b;return this[_0xeee63f(0x2fc)];}async[_0x2da18b(0x266)](){const _0x4967e7=_0x2da18b;if(this['state'])throw new Error(_0x4967e7(0x3b6));await this['_init']();}['pauseCollaboration'](){const _0x1ece42=_0x2da18b;return this[_0x1ece42(0x42c)]=!0x0,_0xc09fc4(()=>{const _0x17260c=_0x1ece42;this[_0x17260c(0x42c)]=!0x1,this[_0x17260c(0x2d8)]();});}[_0x2da18b(0x26e)](_0x3cfae0){const _0x464fa1=_0x2da18b;this[_0x464fa1(0x2fc)]=_0x3cfae0,this[_0x464fa1(0x438)][_0x464fa1(0x33a)](_0x3cfae0);}async[_0x2da18b(0x1c5)](){const _0x535eb0=_0x2da18b;var _0x4c6282;this[_0x535eb0(0x26e)](await this[_0x535eb0(0x3ac)]()),this[_0x535eb0(0x19a)]&&((_0x4c6282=this['_singleActiveUnitService'])==null||_0x4c6282[_0x535eb0(0x38f)](this[_0x535eb0(0x1e5)]),this[_0x535eb0(0x206)](this[_0x535eb0(0x19a)][_0x535eb0(0x169)](this['unitID'])[_0x535eb0(0x146)](_0x543347=>{const _0x4b8589=_0x535eb0;this['_logService'][_0x4b8589(0x2e0)](_0x4b8589(0x34e),_0x4b8589(0x2a2),_0x543347),_0x543347===js[_0x4b8589(0x3f9)]?(this[_0x4b8589(0x387)][_0x4b8589(0x240)]({'content':this[_0x4b8589(0x2cb)]['t'](_0x4b8589(0x188)),'type':_0x35eeb1[_0x4b8589(0x243)]}),this[_0x4b8589(0x28d)]['updatePermissionPoint'](new _0x182d13(this['unitID'])['id'],!0x1)):this['_permissionService']['updatePermissionPoint'](new _0x182d13(this[_0x4b8589(0x1e5)])['id'],!0x0);})));let _0x5eb6d0=!0x1;return this['disposeWithMe'](this['session'][_0x535eb0(0x3fb)][_0x535eb0(0x146)](_0x270e0a=>{const _0x2f4498=_0x535eb0;_0x270e0a===G[_0x2f4498(0x39c)]?this[_0x2f4498(0x355)](_0x5eb6d0):_0x270e0a===G[_0x2f4498(0x2e9)]&&(_0x5eb6d0=!0x0,this[_0x2f4498(0x3ad)]());})),this[_0x535eb0(0x206)](this['session'][_0x535eb0(0x411)][_0x535eb0(0x146)](_0x4f22b7=>{const _0x393b4e=_0x535eb0;try{switch(_0x4f22b7[_0x393b4e(0x27d)]){case _0x128ecb[_0x393b4e(0x2e8)]:{this[_0x393b4e(0x3db)](_0x373326(_0x4f22b7[_0x393b4e(0x247)]));break;}case _0x128ecb['CHANGESET_ACK']:{this[_0x393b4e(0x410)](_0x4f22b7[_0x393b4e(0x247)]);break;}case _0x128ecb['CHANGESET_REJ']:{this[_0x393b4e(0x41c)]();break;}case _0x128ecb[_0x393b4e(0x450)]:{this[_0x393b4e(0x223)](_0x4f22b7[_0x393b4e(0x247)]['changesets'][_0x393b4e(0x2eb)](_0x2bf7ab=>_0x373326(_0x2bf7ab)));break;}case _0x128ecb[_0x393b4e(0x192)]:this[_0x393b4e(0x41c)]({'isPermissionRej':!0x0});}}catch(_0x48d3af){throw console['error'](_0x393b4e(0x37a),_0x48d3af),_0x48d3af;}})),this[_0x535eb0(0x2fc)];}['_unlockTransition'](){const _0x23fdd2=_0x2da18b;this[_0x23fdd2(0x148)]=!0x1;}[_0x2da18b(0x2f7)](){const _0x582ac1=_0x2da18b;if(this[_0x582ac1(0x148)])throw new Error(_0x582ac1(0x21c));this['_transitionLocked']=!0x0;}[_0x2da18b(0x2fe)](_0x40d0af){const _0x53c546=_0x2da18b;this['_lockTransition'](),this[_0x53c546(0x26e)](this[_0x53c546(0x2fc)][_0x53c546(0x150)](_0x40d0af)),this[_0x53c546(0x22f)]();}[_0x2da18b(0x3db)](_0x44ff85){const _0x55e457=_0x2da18b;if(!(_0x44ff85['revision']<=this['_revisionService'][_0x55e457(0x29c)](this['unitID']))){if(this[_0x55e457(0x42c)]){this['_remoteChangesetQueue'][_0x55e457(0x46c)](_0x44ff85);return;}this['_applyRemoteChangeset'](_0x44ff85);}}[_0x2da18b(0x2d8)](){const _0x5e7bfa=_0x2da18b;this['_remoteChangesetQueue'][_0x5e7bfa(0x137)](_0x8112c9=>this['_applyRemoteChangeset'](_0x8112c9)),this[_0x5e7bfa(0x41d)]=[];}[_0x2da18b(0x3ce)](_0x2d8a63){const _0x589496=_0x2da18b,_0x373c33=this['_compressMutationService']['interceptor'][_0x589496(0x427)](this[_0x589496(0x142)]['interceptor']['getInterceptPoints']()[_0x589496(0x436)])(_0x2d8a63[_0x589496(0x154)],null)||_0x2d8a63[_0x589496(0x154)],_0x39769e={..._0x2d8a63,'mutations':_0x373c33};this[_0x589496(0x2f7)](),this[_0x589496(0x26e)](this[_0x589496(0x2fc)]['onRemoteChangeset'](_0x39769e)),this[_0x589496(0x22f)]();}[_0x2da18b(0x410)](_0x119d33){const _0x2f95f2=_0x2da18b;this['_lockTransition'](),this[_0x2f95f2(0x26e)](this[_0x2f95f2(0x2fc)]['onRemoteAck'](_0x119d33)),this['_unlockTransition']();}['_onRemoteRejected'](_0x40e444){const _0x572cef=_0x2da18b;this[_0x572cef(0x2f7)](),this[_0x572cef(0x26e)](this[_0x572cef(0x2fc)]['onRemoteRej'](_0x40e444)),this['_unlockTransition']();}[_0x2da18b(0x223)](_0x50c4d9){const _0x2d34d4=_0x2da18b;if(!(this['_state']instanceof k))throw new TypeError(_0x2d34d4(0x419));const _0x2df356=_0x50c4d9['map'](_0x299dd6=>{const _0x38599a=_0x2d34d4,_0x25895e=this[_0x38599a(0x142)][_0x38599a(0x23c)]['fetchThroughInterceptors'](this[_0x38599a(0x142)]['interceptor'][_0x38599a(0x40c)]()[_0x38599a(0x436)])(_0x299dd6[_0x38599a(0x154)],null)||_0x299dd6[_0x38599a(0x154)];return{..._0x299dd6,'mutations':_0x25895e};});this['_lockTransition'](),this['_updateState'](this[_0x2d34d4(0x2fc)][_0x2d34d4(0x417)](_0x2df356)),this[_0x2d34d4(0x22f)]();}[_0x2da18b(0x3ad)](){const _0x2f4544=_0x2da18b;this[_0x2f4544(0x2f7)](),this[_0x2f4544(0x26e)](this[_0x2f4544(0x2fc)][_0x2f4544(0x233)]()),this[_0x2f4544(0x22f)]();}[_0x2da18b(0x355)](_0x91d647=!0x1){const _0x1e6cba=_0x2da18b;this[_0x1e6cba(0x2f7)](),this['_updateState'](this[_0x1e6cba(0x2fc)][_0x1e6cba(0x21d)]()),this['_unlockTransition']();const _0x322dec=this[_0x1e6cba(0x2fc)];_0x91d647&&_0x322dec instanceof Se&&(this[_0x1e6cba(0x2f7)](),this['_updateState'](_0x322dec[_0x1e6cba(0x3e3)]()),this['_unlockTransition']());}async['_createInitialState'](){return new Promise(_0x3899bb=>{const _0x24407f=_0x44b4;this['session'][_0x24407f(0x3fb)]['pipe'](_0x409ffd(0x1))['subscribe'](async _0x15de9b=>{const _0x52f21b=_0x24407f;_0x3899bb(await this['_createInitialStateImpl'](_0x15de9b===G[_0x52f21b(0x39c)]));});});}[_0x2da18b(0x1f3)](){const _0x115384=this['unitID'];return{'onStateChange':(_0x3e82b3,_0x186bce)=>{const _0x1003c5=_0x44b4;if(_0x3e82b3!==this[_0x1003c5(0x2fc)])throw new Error(_0x1003c5(0x38b)+_0x3e82b3[_0x1003c5(0x31a)]+_0x1003c5(0x171)+_0x186bce['status']+_0x1003c5(0x32d)+this[_0x1003c5(0x2fc)][_0x1003c5(0x31a)]);this['_updateState'](_0x186bce);},'onSendChangeset':_0x2f6f76=>{const _0x57c2cd=_0x44b4,_0xd1ebad={'eventID':_0x128ecb['SUBMIT_CHANGESET'],'data':{'unitID':_0x2f6f76[_0x57c2cd(0x1e5)],'unitType':this[_0x57c2cd(0x214)],'changeset':_0x2f6f76,'memberID':this['session']['getMemberID']()}};this[_0x57c2cd(0x1d4)][_0x57c2cd(0x1ad)](_0xd1ebad,this[_0x57c2cd(0x1e5)]);},'onMissingChangesets':({from:_0x44157c,to:_0x34bf36})=>{const _0x2d8a9f=_0x44b4;this[_0x2d8a9f(0x356)][_0x2d8a9f(0x2e0)]('[CollaborationEntity]',_0x2d8a9f(0x3e0)+_0x44157c+_0x2d8a9f(0x237)+_0x34bf36);const _0xa1caee={'eventID':_0x128ecb[_0x2d8a9f(0x37c)],'data':{'unitID':_0x115384,'unitType':this[_0x2d8a9f(0x214)],'from':_0x44157c,'to':_0x34bf36}};this[_0x2d8a9f(0x1d4)][_0x2d8a9f(0x1ad)](_0xa1caee,this[_0x2d8a9f(0x1e5)]);}};}async['_createInitialStateImpl'](_0x81670d){const _0x1b357c=_0x2da18b;var _0x37b2c3,_0x1a9c52;const _0x104ab1=await this[_0x1b357c(0x1e1)][_0x1b357c(0x1f0)](this['unitID']),_0x17b5a0=(_0x37b2c3=_0x104ab1==null?void 0x0:_0x104ab1['mutations'])!=null?_0x37b2c3:[],_0x253aa9=(_0x1a9c52=_0x104ab1==null?void 0x0:_0x104ab1[_0x1b357c(0x279)])!=null?_0x1a9c52:null,_0x440060=this[_0x1b357c(0x1e5)];try{this[_0x1b357c(0x25b)](_0x253aa9,_0x17b5a0);}catch(_0x4e12aa){this[_0x1b357c(0x356)]['error'](_0x4e12aa);}const _0x3316e7=this[_0x1b357c(0x1f3)]();if(_0x81670d){const _0x2afdf1=Hs(this[_0x1b357c(0x272)],_0x440060,this[_0x1b357c(0x214)],_0x253aa9,_0x17b5a0,_0x3316e7);return _0x2afdf1 instanceof K?_0x2afdf1[_0x1b357c(0x470)]():(_0x2afdf1 instanceof X||_0x2afdf1 instanceof Z)&&_0x2afdf1[_0x1b357c(0x1df)](),_0x2afdf1;}return this['_injector'][_0x1b357c(0x3cb)](ee,_0x440060,this[_0x1b357c(0x214)],_0x253aa9,_0x17b5a0,_0x3316e7);}[_0x2da18b(0x25b)](_0x32e703,_0xff780e){const _0x67dd6c=_0x2da18b;var _0x3cc63b,_0x3b7dc5;const _0x4a9379=this[_0x67dd6c(0x142)]['interceptor']['fetchThroughInterceptors'](this[_0x67dd6c(0x142)][_0x67dd6c(0x23c)][_0x67dd6c(0x40c)]()[_0x67dd6c(0x436)]);(_0x3cc63b=_0x4a9379((_0x32e703==null?void 0x0:_0x32e703[_0x67dd6c(0x154)])||[],null))==null||_0x3cc63b[_0x67dd6c(0x137)](_0x244161=>this[_0x67dd6c(0x457)][_0x67dd6c(0x22a)](_0x244161['id'],_0x244161['params'])),(_0x3b7dc5=_0x4a9379(_0xff780e||[],null))==null||_0x3b7dc5[_0x67dd6c(0x137)](_0x170ae4=>this[_0x67dd6c(0x457)]['executeCommand'](_0x170ae4['id'],_0x170ae4[_0x67dd6c(0x338)]));}};Je=Vt([p(0x3,_0x24691e(_0x129c7a)),p(0x4,_0x24691e(D)),p(0x5,_0x24691e(_0x463628)),p(0x6,_0x24691e(_0x1695f3)),p(0x7,_0x24691e(_0x40a032)),p(0x8,_0x16c619),p(0x9,_0x18280b),p(0xa,_0x349d24),p(0xb,_0x1892f6),p(0xc,_0x1be607(tt))],Je);let bt=class extends Je{constructor(_0x49cfd8,_0x5f023d,_0x5844d2,_0xff4131,_0x482c24,_0x22563d,_0xe49df2,_0x480891,_0x4ad5fe,_0x3b3e86,_0x1508a2,_0x53b100,_0xa4ea82,_0x434776,_0x119e3a,_0x7e855f,_0x3a51b2){const _0x57e407=_0x2da18b;super(_0x49cfd8,_0x5844d2,_0x5f023d,_0xff4131,_0x482c24,_0x22563d,_0xe49df2,_0x480891,_0xa4ea82,_0x434776,_0x119e3a,_0x7e855f,_0x3a51b2),this[_0x57e407(0x1e5)]=_0x49cfd8,this['type']=_0x5f023d,this[_0x57e407(0x36b)]=_0x4ad5fe,this[_0x57e407(0x199)]=_0x3b3e86,this[_0x57e407(0x423)]=_0x1508a2,this[_0x57e407(0x30a)]=_0x53b100;}[_0x2da18b(0x1f3)](){const _0x550ad3=_0x2da18b,_0x371cca=super[_0x550ad3(0x1f3)]();return _0x371cca[_0x550ad3(0x2a6)]=_0x6646e2=>this[_0x550ad3(0x199)][_0x550ad3(0x2da)](_0x6646e2),_0x371cca['onTransformSelections']=_0x4dfd7b=>this[_0x550ad3(0x423)][_0x550ad3(0x430)](_0x4dfd7b),_0x371cca[_0x550ad3(0x296)]=_0x23548d=>this[_0x550ad3(0x30a)][_0x550ad3(0x472)](_0x23548d),_0x371cca[_0x550ad3(0x21b)]=_0x36101c=>this[_0x550ad3(0x199)][_0x550ad3(0x2ca)](_0x36101c),_0x371cca;}async[_0x2da18b(0x1c5)](){const _0x40459f=_0x2da18b,_0x1a93f1=await super['_init']();return this[_0x40459f(0x206)](this[_0x40459f(0x457)][_0x40459f(0x3a9)]((_0x1cfef2,_0x4e3860)=>{const _0x2d9f7b=_0x40459f;if(_0x1cfef2[_0x2d9f7b(0x3f5)]!==_0x109a6f[_0x2d9f7b(0x13e)]||_0x4e3860!=null&&_0x4e3860['fromCollab']||_0x4e3860!=null&&_0x4e3860[_0x2d9f7b(0x40f)])return;const _0x322cff=_0x1cfef2[_0x2d9f7b(0x338)];if((_0x322cff==null?void 0x0:_0x322cff['unitId'])!==this['unitID'])return;let _0x5cb6b4=_0x1cfef2;if(_0x5cb6b4['id']===_0x11f4dd['id']){const _0x5e4efc=_0x5cb6b4[_0x2d9f7b(0x338)];_0x5cb6b4={'id':_0x11f4dd['id'],'type':_0x109a6f[_0x2d9f7b(0x13e)],'params':{'unitId':_0x5e4efc[_0x2d9f7b(0x380)],'actions':_0x5e4efc[_0x2d9f7b(0x2d5)],'textRanges':null}};}const _0x3a491f=this[_0x2d9f7b(0x142)][_0x2d9f7b(0x23c)][_0x2d9f7b(0x427)](this['_compressMutationService'][_0x2d9f7b(0x23c)]['getInterceptPoints']()['COMPRESS_MUTATION_SEND'])([_0x5cb6b4],null)||[_0x5cb6b4];this[_0x2d9f7b(0x2fe)](_0x3a491f[0x0]);})),_0x1a93f1;}};bt=Vt([p(0x3,_0x24691e(_0x129c7a)),p(0x4,_0x24691e(D)),p(0x5,_0x24691e(_0x463628)),p(0x6,_0x24691e(_0x1695f3)),p(0x7,_0x24691e(_0x40a032)),p(0x8,_0x24691e(_0x417486)),p(0x9,_0x24691e(Ye)),p(0xa,_0x24691e(Xe)),p(0xb,_0x24691e(Bt)),p(0xc,_0x16c619),p(0xd,_0x18280b),p(0xe,_0x349d24),p(0xf,_0x1892f6),p(0x10,_0x1be607(tt))],bt);let Tt=class extends Je{constructor(_0x3aad8d,_0x547fa0,_0x1b025a,_0xb058e,_0x1de29c,_0x5dbf28,_0x147589,_0x2a791c,_0x43112a,_0x42d2f2,_0x53c2b2,_0x1d2abd,_0x1c6862,_0x3b6ba0){const _0x1ce2bf=_0x2da18b;super(_0x3aad8d,_0x1b025a,_0x547fa0,_0xb058e,_0x1de29c,_0x5dbf28,_0x147589,_0x2a791c,_0x42d2f2,_0x53c2b2,_0x1d2abd,_0x1c6862,_0x3b6ba0),this[_0x1ce2bf(0x1e5)]=_0x3aad8d,this[_0x1ce2bf(0x3f5)]=_0x547fa0,this[_0x1ce2bf(0x39d)]=_0x43112a;}[_0x2da18b(0x1f3)](){const _0x218fff=_0x2da18b,_0x6e3ab7=super[_0x218fff(0x1f3)]();return _0x6e3ab7[_0x218fff(0x320)]=_0x54a79b=>this[_0x218fff(0x39d)]['transformSelections'](_0x54a79b),_0x6e3ab7;}async['_init'](){const _0xff54fb=_0x2da18b,_0x2c2d9e=await super[_0xff54fb(0x1c5)]();return this['disposeWithMe'](this['_commandService'][_0xff54fb(0x3a9)]((_0x206603,_0x1c2218)=>{const _0x2f13ec=_0xff54fb;if(_0x206603[_0x2f13ec(0x3f5)]!==_0x109a6f['MUTATION']||_0x1c2218!=null&&_0x1c2218['fromCollab']||_0x1c2218!=null&&_0x1c2218['onlyLocal'])return;const _0x1106ff=_0x206603['params'];if((_0x1106ff==null?void 0x0:_0x1106ff[_0x2f13ec(0x380)])!==this[_0x2f13ec(0x1e5)])return;const _0x967f58=_0x206603,_0x537682=this[_0x2f13ec(0x142)]['interceptor'][_0x2f13ec(0x427)](this['_compressMutationService'][_0x2f13ec(0x23c)][_0x2f13ec(0x40c)]()[_0x2f13ec(0x330)])([_0x967f58],null)||[_0x967f58];this[_0x2f13ec(0x2fe)](_0x537682[0x0]);})),_0x2c2d9e;}};Tt=Vt([p(0x3,_0x24691e(_0x129c7a)),p(0x4,_0x24691e(D)),p(0x5,_0x24691e(_0x463628)),p(0x6,_0x24691e(_0x1695f3)),p(0x7,_0x24691e(_0x40a032)),p(0x8,_0x24691e(Ke)),p(0x9,_0x16c619),p(0xa,_0x18280b),p(0xb,_0x349d24),p(0xc,_0x1892f6),p(0xd,_0x1be607(tt))],Tt);var Sr=Object[_0x2da18b(0x151)],pr=Object['getOwnPropertyDescriptor'],vr=(_0x568cb8,_0x53e91d,_0x142048,_0xb4b90b)=>{for(var _0x4b1354=_0xb4b90b>0x1?void 0x0:_0xb4b90b?pr(_0x53e91d,_0x142048):_0x53e91d,_0x255c03=_0x568cb8['length']-0x1,_0x2934e5;_0x255c03>=0x0;_0x255c03--)(_0x2934e5=_0x568cb8[_0x255c03])&&(_0x4b1354=(_0xb4b90b?_0x2934e5(_0x53e91d,_0x142048,_0x4b1354):_0x2934e5(_0x4b1354))||_0x4b1354);return _0xb4b90b&&_0x4b1354&&Sr(_0x53e91d,_0x142048,_0x4b1354),_0x4b1354;},lt=(_0x4002f1,_0x351468)=>(_0x191c58,_0x562d7a)=>_0x351468(_0x191c58,_0x562d7a,_0x4002f1);let Ae=class extends _0x13b3a6{constructor(_0x24ccbd,_0x2aa993,_0x4f467f){const _0x23be3c=_0x2da18b;super(),l(this,_0x23be3c(0x3d9),new Map()),l(this,_0x23be3c(0x41e),new _0x526cd2()),(this['_injector']=_0x24ccbd,this['_collabSessionService']=_0x2aa993,this[_0x23be3c(0x406)]=_0x4f467f,this[_0x23be3c(0x1c5)]());}['dispose'](){const _0x46b866=_0x2da18b;super[_0x46b866(0x18e)](),this[_0x46b866(0x3d9)][_0x46b866(0x137)](_0xfacb13=>_0xfacb13[_0x46b866(0x18e)]()),this['_entities']['clear']();}[_0x2da18b(0x45f)](_0x390703){const _0x14f1ec=_0x2da18b;var _0x345ead;return(_0x345ead=this['_entities'][_0x14f1ec(0x2dd)](_0x390703))!=null?_0x345ead:null;}[_0x2da18b(0x1f4)](_0x43cbeb){const _0x2ca4b7=_0x2da18b,_0x47b6ee=this[_0x2ca4b7(0x45f)](_0x43cbeb);return _0x47b6ee?_0x2576f8(_0x47b6ee):this['_entityInit$'][_0x2ca4b7(0x29b)](_0x333799(_0xcd5733=>_0xcd5733[_0x2ca4b7(0x1e5)]===_0x43cbeb));}[_0x2da18b(0x1c5)](){const _0x3af048=_0x2da18b;this[_0x3af048(0x406)][_0x3af048(0x26c)](_0x43baa3[_0x3af048(0x2d4)])[_0x3af048(0x29b)](_0x1cea38(this[_0x3af048(0x3ab)]),_0x18a894(0x10))[_0x3af048(0x146)](async _0x520972=>{const _0x4c74ca=_0x3af048,_0x29fb91=_0x520972['getUnitId'](),_0x31fdaf=await this[_0x4c74ca(0x2b6)](_0x29fb91,H[_0x4c74ca(0x2d4)]);this[_0x4c74ca(0x3d9)][_0x4c74ca(0x276)](_0x29fb91,_0x31fdaf);}),this[_0x3af048(0x406)][_0x3af048(0x26c)](_0x43baa3['UNIVER_DOC'])[_0x3af048(0x29b)](_0x1cea38(this['dispose$']),_0x18a894(0x10))['pipe'](_0x333799(_0x144f01=>!_0x144f01[_0x3af048(0x3d4)]()['startsWith']('__')))[_0x3af048(0x146)](async _0x19f4e1=>{const _0x176c57=_0x3af048,_0x4adf85=_0x19f4e1[_0x176c57(0x3d4)](),_0x2c7cc6=await this[_0x176c57(0x2b6)](_0x4adf85,H['UNIVER_DOC']);this[_0x176c57(0x3d9)]['set'](_0x4adf85,_0x2c7cc6);}),_0x5799ee(this['_univerInstanceService'][_0x3af048(0x253)](_0x43baa3[_0x3af048(0x2d4)]),this[_0x3af048(0x406)][_0x3af048(0x253)](_0x43baa3[_0x3af048(0x37b)]))['pipe'](_0x1cea38(this[_0x3af048(0x3ab)]))[_0x3af048(0x146)](_0xa41602=>{const _0x4773e5=_0x3af048,_0x31a0d6=_0xa41602['getUnitId'](),_0x473c23=this[_0x4773e5(0x3d9)]['get'](_0x31a0d6);_0x473c23&&(_0x473c23[_0x4773e5(0x18e)](),this[_0x4773e5(0x3d9)][_0x4773e5(0x3b7)](_0x31a0d6));});}async['_startCollaboration'](_0x40f3d3,_0x3a143b){const _0x3c4d6f=_0x2da18b,_0x2feed6=await this[_0x3c4d6f(0x235)][_0x3c4d6f(0x19f)](_0x40f3d3),_0x55a9ba=this[_0x3c4d6f(0x272)]['createInstance'](this[_0x3c4d6f(0x1f2)](_0x3a143b),_0x40f3d3,_0x3a143b,_0x2feed6);return await _0x55a9ba[_0x3c4d6f(0x266)](),this[_0x3c4d6f(0x41e)][_0x3c4d6f(0x33a)](_0x55a9ba),_0x55a9ba;}['_getCtorByUniverType'](_0x4cf8c1){const _0x435499=_0x2da18b;switch(_0x4cf8c1){case H[_0x435499(0x37b)]:return bt;case H[_0x435499(0x2d4)]:return Tt;default:throw new Error(_0x435499(0x350)+_0x4cf8c1);}}};Ae=vr([lt(0x0,_0x24691e(_0x129c7a)),lt(0x1,_0x24691e(ce)),lt(0x2,_0x4af863)],Ae);const _s=[_0x2da18b(0x1a9),_0x2da18b(0x38e),'verdancy600',_0x2da18b(0x304),_0x2da18b(0x363),_0x2da18b(0x298)];function _0x10c1(){const _0x16f173=['&to=','SNAPSHOT_INVALID_SNAPSHOT','TOO_MANY_REQUESTS','_transformIMECache','/universer-api/oidc/authpage','idSuffix','_clearScheduledTask','getCurrentSelections','_collabCursorController','getSkeleton','current','HELLO','_listenToOfflineEvent','_updateCollabCursors','setInterval','getItem','/allowed','registerRenderModule','createInstance','transformStack\x20failed!','baseRev','_applyRemoteChangeset','objectType','onRemoteRej','getViewport','0\x200\x2017\x2016','setShapeProps','getUnitId','icon','_stopTelemetryCollaborationNewChangeset','fillStyle','cursorInfo','_entities','Undefined','_onRemoteChangeset','toRgbString','focused$','_themeService','{fileID}','fetching\x20missing\x20changesets\x20from\x20','/object/','url(#off-line-single_clip0_910_343)','fetchMiss','confirm','APPLY_NON_SEQUENTIAL_REVISION','getImageSourceCache','_updateURLWithCurrentState','cmd','isPermissionRej','417qAFBuv','_hideTimer','ERROR_IMAGE_TYPE','univer-online-status-icon','fillText','_removeClearOtherTimer','_snapshotServerService','_hovered','onlineStatusIcon','_onConnectionFailed','setWaitCount','type','apply','_docSkeletonManagerService','_hover','OTHER_CLIENTS_EDITING','_cursor','sessionStatus$','_transformStack','complete','getCellPositionByOffset','getRenderById','_getDownloadEndpointURL','univer-pro.collaboration-client.single-active-unit-service','/resources','setParam','image/gif','_unitID','_univerInstanceService','objects','NOT_COLLAB','_anchor','LICENSE_MAX_UNITS_EXCEEDED','_colorAssignService','getInterceptPoints','lineTo','UNKNOWN_CODE','onlyLocal','_onRemoteACK','event$','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','/unit/','_clearCollaborationTimeoutTimer','490988pqZuOk','conflict.content','onMissedChangesetFetched','engine','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','UNIVER_SLIDE','_sendHeartbeatTimer','_onRemoteRejected','_remoteChangesetQueue','_entityInit$','post','[OfflineState]:\x20received\x20rejection.','includes','withCredentials','_docTransformSelectionsService','_decreaseWaiting','collab-rect-range-','LICENSE_EXPORT_SIZE_EXCEEDED','fetchThroughInterceptors','setItem','_handler','_joinRoom','append','_collaborationPaused','duration','_shouldReportTelemetry','DeleteRangeMoveLeftCommandId','transformSelections','_scheduleTimestamp','_listenToOnlineEvent','_colorIndex','endRow','AWAITING','COMPRESS_MUTATION_APPLY','INGEST','_state$','_sendHeartbeat','bottom','_lastPointer','max','collabSubmitChangesetUrl','c1Prime','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_transformUndoRedoStack','onStarting','_handleHeartbeatEvent','resourceIDs','_initStatusListener','registerRefRange','registerOnClose','_socket$','drawWith','telemetry\x20info\x20is\x20not\x20initialized','isEditing','_socketMessageSubscription','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','urlChange$','roomMembers','now','PSEUDO_FETCH_MISSING_RESULT','HttpExport','uploadFileServerUrl','_cursorInfo$','storage','awaiting','_unitStatus','_commandService','getCurrentUser','/rev/','image/jpeg','UPDATE_PERMISSION_OBJ','name','onlineStatus','listCollaborators','getCollabEntity','transformUndoRedo','getUnhiddenWorksheets','_scheduleClearOtherTimer','initWorkbookPermissionChange','unsubscribe','getMergeData','assignAColorForMemberID','fetchMissingChangesets','joinRsp','onload','SUBMIT_CHANGESET','number','push','IDLE','off-line-single_clip0_910_343','fill','_schedule','_event$','syncEditingCollabCursor','_undoRedoService','list','_ws','stopTime','updateCursorEvent','setCurrentUser','getMember','children','_id','registerHTTPInterceptor','univer-pro.collaboration-client-socket-service','_setupBeforeClosingHandler','ACTIVE_UNIT_EVENT_CHANNEL','_onUserJoin','_saveTaskMap','_removeCollabCursors','none','then','originalMeta','src','getActiveRange','session.room-full','NOT_FOUND','FAIL','hasOwnProperty','updateOfflineData','335BVSPNr','NO_OTHER_CLIENTS_EDITING','YUUMI_URL_COL_OUT_OF_RANGE','error','_selfUnitIDs','visibilitychange','_executeRemoteChangeset','x-univer-host','ranges','_getSheetObject','LICENSE_IMPORT_SIZE_EXCEEDED','moveTo','_memberService','_initCommandExecutedListener','clearTimeout','split','_getSnapshotAPIPrefix','replace','forEach','restore','_waitCount','/block/','1661056jchtRG','_session','_showConflictNotification','MUTATION','setUndoRedoMutationParamsCache','/-/object/list','has','_compressMutationService','collabStatus.notCollab','addEventListener','univer-online','subscribe','loadSheet','_transitionLocked','LIVESHARE_NEW_HOST','revision','every','_onCursorUpdate','_labelPosition','PERMISSION_DENIED','RemoveColCommandId','appendMutation','defineProperty','_document','className','mutations','_status$','slice','unknown','_clearUndo','/universer-api/snapshot/','session.will-retry','CONNECTOR_DATA_TOO_LARGE','_updateStatus','permission.title','_clearRedo','Error','_refreshCollabCursors','_tryReconnect','JOINING','onPointerMove$','onSendChangeset','reconnect','/object','_config','connection\x20error','getUnitStatus$','UUID','registerBeforeClose','DEFAULT_FILE_NAME','doc.mutation.rich-text-editing','_redoStacks','state$','_initMergeInterceptor','\x0aAfter:\x20','sendChangesetTimeout','retryConnectingInterval','_unitOnClients','create','_initRequestHeader','subunit','UNAUTHENTICATED','_onCursorDelete','all','_getCurrentRevision','_removeRoom','shouldCloseConn','_sessions','_getUndoStack','onPointerEnter$','getImage','incrementRevOfUnit','color','clearInterval','[CollaborationState]:\x20apply\x20error!','getParam','getActiveSheet','collaboration.single-unit.warning','_socketReady','subUnitId','transformMutationsWithChangeset','PENDING','_clearTimeoutTimer','dispose','[PendingState]:\x20unhandled\x20univer\x20type:\x20','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_pendingMutations','PERMISSION_REJ','_updateLocalCache','error$','_incrementRevisionNumber','on-line-single_clip0_910_349','_name','20660gyzauQ','_docTransformIMECacheService','_singleActiveUnitService','with','_handleHover','colorChannel1','call','requireSession','APPLY_REVISION_CONFILICT','reduce','_registerDependencies','_getRedoStack','exhaustSavingTask','UNKNOWN_CMD','beginPath','result','length','purple300','_setupSubUnitSync','csRejEvent','3451653tRVvGu','send','addObjects','_updateLocalCursor','onRemoteAck','_retryCount','transformChangesets','_commentService','encode','SEND_CHANGESET_TIMEOUT','setConfig','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_onUserLeave','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','prototype','getConfig','liveShareNewHost','INTERNAL_ERROR','#FFF','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','size','_initUnitPermissionChange','extend','CHANGESET_ACK','_init','ERROR_EXCEED_SIZE','putCollaborators','target','_handleJoinEvent','getCurrentUnitForType','translate(.97)','_getSendChangesetTimeout','USERS_ENTER','SHOULD_CLOSE_CONN','_initResize','assign','path','OnLineSingle','min','session','_getSignURL','_syncEditingCollabCursorService','batchAllowed','/universer-api/stream/file/upload','deepClone','key','_members','_initModules','defIds','off-line-single','resend','_getUploadFileURL','_localCacheService','_scene','&source=','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','unitID','_onConnectionOpen','snapshot','/collaborator','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','...','open$','_substituteRedoStack','_clearHeartbeatTimer','setTimeout','_anchorDot','loadOfflineData','collab-client.tooltip.reconnect','_getCtorByUniverType','_createHandler','getCollabEntity$','_startSheetCollabCursor','YUUMI_RATE_OVER_LIMIT','session.collaboration-timeout','isArray','collaMsg','_send','roomMembers$','currentSkeleton$','_refRangeService','[CollaborationSession]','currentTheme$','UnitSnapshot','_change$','_submitChangeset','getRelativeToViewportCoord','loginUrlKey','_configService','disposeWithMe','onMouseMove','hidden','_uiPartsService','resize','collaboration.closeRoom','/fetchmissing?from=','_candidateSocket','encodeURIComponent','saveSheetBlock','_collabCursorState$','61224gPqOTb','_localStorageService','collabStatus.syncing','_type','_collaborationTimeoutTimer','_shapes','onTransformChange$','responseType','updateCollaborator','subscribeEvent','onTransformRemoteChangesetByIMECache','[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.','toggleOnline','_startTelemetryCollaborationNewChangeset','_cursorShapes','COMMENT_UPDATE','_substituteUndoStack','loadDoc','_onFetchMissResult','concat','displayName','M0\x200H16V16H0z','_disabled','ALREADY_EXISTS','getOffsetConfig','executeCommand','UNIVER_UNKNOWN','m2Prime','currentColor','findNodePositionByCharIndex','_unlockTransition','_http','_instanceService','77DYdpzN','toggleOffline','collab-text-anchor-','_collabSessionService','override','\x20to\x20','_drawRectRange','INVALID_ARGUMENT','getResourcesRequest','sheetID','interceptor','getMemberID','url(#on-line-single_clip0_910_349)','COMPLETION_FINISHED','show','skeleton','[CollaborationUndoRedoService]','Warning','_collaborationSessionService','getRangePointData','url(#$1','data','createSocket','_handleEvent','fetch_missing','_beforeCloseService','_transformRemoteChangesetByIMECache','_clearLocalCache','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_replaceFileID','url','font','sheets','getTypeOfUnitDisposed$','AUTHZ_URL_KEY','cursorInfo$','some','_onMessage','SYNCED','getUniverSheetInstance','online','_replayCachedMutations','leaveEvent','getUnitOnRev','object','whenReady','_disableEditing','_tryEnsureSocket','CHANGESET_REVISION_CONFILICT','FETCH_MISS','LOCAL_CACHE_INTERVAL','transformMutation','init','routeKey','_getAPIPrefix','[SyncedState]:\x20received\x20acknowledgement.','put','11zjGdbU','getTypeOfUnitAdded$','_sendingTimer','_updateState','save','RECV','status$','_injector','infoRsp','defs','function','set','column','conflict','awaitingChangeset','localeService','YUUMI_SUBSCRIPTION_NOT_FOUND','collaboration_new_changeset','eventID','measureText','roomInfos','toString','collaboratorID','_collaborationController','saveSnapshot','entries','getUnit','hide','synced','_awaitingChangeset','[OfflineState]:\x20received\x20acknowledgement.','_commentUpdate$','closeSession','m1Prime','_permissionService','_drawTextRange','_startDocCollabCursor','svg','MoveRangeCommandId','ws://127.0.0.1:8000/universer-api/comb/connect','enableLocalCache','VIEW_MAIN','newValue','onSyncEditingCollabCursor','evenodd','gold400','OffLineSingle','attrs','pipe','getCurrentRevOfUnit','_getScale','FileId','collaborators','liveShareOperation','collabStatus.synced','editing\x20status\x20changed\x20to','getFocusedUnit','_onJoinRoomEvent','arc','onTransformIME','SUCCUSS','_eventUnsubscribe','_telemetryInfo','\x20-\x20','string','SNAPSHOT_HAS_BEEN_REMOVED','row','_acknowledgedAwaitingChangeset','saveChangeset','selection','_cursors','_roomMembers$','_socket','HEARTBEAT_TIMEOUT','registerComponent','_startCollaboration','_sessionStatus$','getOwnPropertyDescriptor','_scheduleCollaborationTimeoutTimer','height','_initStatusComponent','YUUMI_UNABLE_LOAD_URL','history','onRendered','rgba(255,\x20255,\x20255,\x200.01)','_online','offline','_checkMissing','readAsDataURL','Unknown\x20user','_cachedData','MSG_FOR_ERROR','json','session.connection-failed','JOIN','transformRemoteChangeset','_localeService','getDeserializedSheetBlock','catch','_socketService','getCollabCursors$','headers','requestParams','isActive','APPLY_REJECT','UNIVER_SHEET','actions','univer-offline','searchParams','_exhaustRemoteChangesetQueue','getSheetBySheetId','transformIMECache','socket\x20close','_telemetryService','get','_getAnchorBounding','collabStatus.offline','debug','collabCursorState$','onPointerLeave$','UNDEFINED','pushState','_getSaveTimeout','allowed','addObject','NEW_CHANGESETS','OFFLINE','stringify','map','_render','indexOf','filter','uni.network.url-service','LIVESHARE_OPERATION','parse','_getMergeRange','ERROR_IMAGE','_notificationService','file','unshift','_lockTransition','_saveCache','_initEventListeners','_transformPreviousActiveRange','_registerRenderDependencies','_state','[SyncedState]:\x20received\x20rejection.','_onLocalMutation','code','enableSingleActiveInstanceLock','_snapshotService','onCommentUpdate','POST','red300','href','_handleLeaveEvent','LEAVE','pluginName','getDocRanges','_docSyncEditingCollabCursorService','flatMap','update','_ensureSubject','roles','onlineStatusTitle','newCsEvent','UNRECOGNIZED','clipPath','univer-online-status-title','save\x20fail\x20reason\x20is\x20','_transformUndoredo','HEARTBEAT','_isPermissionRej','body','_color','status','_roomMembers','collaboration-session-retry','univer-online-status','close','clear','onTransformSelections','_assignedColors','find','_httpService','getUnitType','setAlpha','getSheetId','members','InsertRowCommandId','UniverIcon','_transformService','pending','HttpImport','\x0aCurrent:\x20','_syncEditingCollabCursor','LICENSE_DISTRO_REJECTED','COMPRESS_MUTATION_SEND','getValue','/universer-api/file/{fileID}/sign-url','commentUpdate$','collabStatus.fetchMiss','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','selections','textRanges','params','getCurrent','next','_imageSourceCache','symbol','_urlService','_scheduleSaving','width','[PendingState]:\x20received\x20acknowledgement.','change$','values','transform','asObservable','APPLY_PERMISSION_DENIED','message$','signUrlServerUrl','_sheetSkeletonManagerService','joinEvent','round','replaceState','?url=','text','[CollaborationEntity]','_queuedRemoteChangesets','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','[DataLoaderController]','getUndoRedoMutationParamsCache','_fetchMissChangesets','_range','_toggleOnline','_logService','_throwTelemetryCollaborationNewChangeset','add','2967380qjwJOw','_heartbeatTimer','updatePermissionPoint','createCollaborator','_loadSheet','closePath','COLLAB_WEB_SOCKET_URL','UPDATE_CURSOR','BASE64','patch','blue400','permissionRejEvent','_timeoutTimer','_getLoginPath','startsWith','getAncestorScale','1em','LIVESHARE_FETCH_OPERATIONS','_docStateChangeManagerService','removeMember','_HTTPService','sessionStatus','_clearOtherTimers','location','/universer-api/authz','from','_textBubble','6718OrOUqZ','Univer','_onRefRangeChange','commentUpdateEvent','updateMember','_waitForHeartbeatResponse','Error\x20on\x20receiving\x20event','UNIVER_DOC','FETCH_MISSING','_updateSubUnitFromURLParams','RemoveRowCommandId','activeSheet$','unitId','[OfflineState]:\x20received\x20changeset.','memberID','div','\x20in\x20_schedule.','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','onRemoteChangeset','_messageService','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','createElement','_renderManagerService','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_retryConnectingTimer','unitId\x20is\x20not\x20found','jiqing500','editingUnit','tag','COLLAB_SUBMIT_CHANGESET_URL','disableLocalCache','getRoom','onMissingChangesets','UNIVER_PROJECT','replaceTextRanges','_onConflict','_scheduleHeartbeat','black','_userManagerService','awaiting_with_pending','ONLINE','_sheetTransformSelectionsService','origin','reject','_onRecvEvent','objectID','AWAITING_WITH_PENDING','labelPosition','generateRandomId','_onOffline','getTime','USERS_LEAVE','DeleteRangeMoveUpCommandId','onCommandExecuted','/role','dispose$','_createInitialState','_toggleOffline','_onCombEvent','LIVESHARE_TERMINATE','_getAPIPrefixPath','_revisionService','UnitEmbedded','xlink:href','_context','#fff','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','delete','_rescheduleHeartbeat'];_0x10c1=function(){return _0x16f173;};return _0x10c1();}class Ft extends _0x3bc0d2{constructor(){const _0x48bfc0=_0x2da18b;super(...arguments),l(this,'_assignedColors',new Map()),l(this,_0x48bfc0(0x433),0x0);}['assignAColorForMemberID'](_0x17c1dd){const _0x50b755=_0x2da18b;if(this['_assignedColors'][_0x50b755(0x141)](_0x17c1dd))return this['_assignedColors'][_0x50b755(0x2dd)](_0x17c1dd);const _0x34e95d=_s[this['_colorIndex']];return this[_0x50b755(0x433)]=(this[_0x50b755(0x433)]+0x1)%_s['length'],this[_0x50b755(0x321)][_0x50b755(0x276)](_0x17c1dd,_0x34e95d),_0x34e95d;}}var Ir=Object[_0x2da18b(0x151)],Er=Object['getOwnPropertyDescriptor'],Cr=(_0x3f2ae1,_0x122815,_0x2b77d2,_0x35e794)=>{const _0x33277b=_0x2da18b;for(var _0x5a9fb6=_0x35e794>0x1?void 0x0:_0x35e794?Er(_0x122815,_0x2b77d2):_0x122815,_0x4f4277=_0x3f2ae1[_0x33277b(0x1a8)]-0x1,_0x1809cc;_0x4f4277>=0x0;_0x4f4277--)(_0x1809cc=_0x3f2ae1[_0x4f4277])&&(_0x5a9fb6=(_0x35e794?_0x1809cc(_0x122815,_0x2b77d2,_0x5a9fb6):_0x1809cc(_0x5a9fb6))||_0x5a9fb6);return _0x35e794&&_0x5a9fb6&&Ir(_0x122815,_0x2b77d2,_0x5a9fb6),_0x5a9fb6;},se=(_0x36c109,_0x290d5e)=>(_0x2c0210,_0x1b419c)=>_0x290d5e(_0x2c0210,_0x1b419c,_0x36c109);const br=0x12c,Tr=0x64;function _0x44b4(_0xb78ce5,_0x58ffd9){const _0x10c1a7=_0x10c1();return _0x44b4=function(_0x44b472,_0x7647c9){_0x44b472=_0x44b472-0x12c;let _0x50842e=_0x10c1a7[_0x44b472];return _0x50842e;},_0x44b4(_0xb78ce5,_0x58ffd9);}let Rt=class extends _0x13b3a6{constructor(_0x3f60bc,_0x1df59b,_0x2fc804,_0x5846c6,_0x5520f0,_0x9313d2,_0xb62ee8,_0x2d66d9,_0x46ca41){const _0x47edb2=_0x2da18b;super(),l(this,_0x47edb2(0x2c0),!0x1),l(this,_0x47edb2(0x1c5),!0x1),l(this,'_cursorInfo$',new _0x295ce3(new Map())),l(this,_0x47edb2(0x255),this[_0x47edb2(0x453)][_0x47edb2(0x344)]()),l(this,'_roomMembers$',new _0x295ce3([])),l(this,_0x47edb2(0x1fb),this[_0x47edb2(0x2b2)][_0x47edb2(0x29b)](_0x10aa2e(br))),l(this,_0x47edb2(0x1af),_0x77ae19(_0x32ab42=>{const _0x3e09be=_0x47edb2,_0x2ae62f={'eventID':_0x128ecb[_0x3e09be(0x360)],'data':{'unitID':this[_0x3e09be(0x1e5)],'memberID':this[_0x3e09be(0x13c)][_0x3e09be(0x23d)](),'selection':xs(_0x32ab42)}};this[_0x3e09be(0x13c)][_0x3e09be(0x1ad)](_0x2ae62f,this[_0x3e09be(0x1e5)]);},Tr)),(this[_0x47edb2(0x1e5)]=_0x3f60bc,this['_session']=_0x1df59b,this[_0x47edb2(0x272)]=_0x2fc804,this[_0x47edb2(0x40b)]=_0x5846c6,this['_memberService']=_0x5520f0,this['_syncEditingCollabCursorService']=_0x9313d2,this['_transformService']=_0xb62ee8,this[_0x47edb2(0x406)]=_0x2d66d9,this[_0x47edb2(0x457)]=_0x46ca41);}get[_0x2da18b(0x3d8)](){const _0x355933=_0x2da18b;return this[_0x355933(0x453)]['getValue']();}get['roomMembers'](){const _0x57e75c=_0x2da18b;return this[_0x57e75c(0x2b2)]['getValue']();}[_0x2da18b(0x18e)](){const _0x13d77a=_0x2da18b;super['dispose'](),this[_0x13d77a(0x453)][_0x13d77a(0x33a)](new Map()),this[_0x13d77a(0x453)][_0x13d77a(0x3fd)](),this[_0x13d77a(0x2b2)][_0x13d77a(0x33a)]([]),this[_0x13d77a(0x2b2)]['complete']();}[_0x2da18b(0x266)](){const _0x4d2969=_0x2da18b;this['_init']||(this[_0x4d2969(0x1c5)]=!0x0,this[_0x4d2969(0x13c)][_0x4d2969(0x3fb)]['pipe'](_0x1cea38(this[_0x4d2969(0x3ab)]))[_0x4d2969(0x146)](_0x1acb6c=>{const _0x28e3fd=_0x4d2969;_0x1acb6c===G[_0x28e3fd(0x39c)]?this[_0x28e3fd(0x355)]():this[_0x28e3fd(0x3ad)]();}),this['_session'][_0x4d2969(0x411)]['pipe'](_0x1cea38(this[_0x4d2969(0x3ab)]))[_0x4d2969(0x146)](_0x2fc679=>{const _0x23a639=_0x4d2969,_0x5d537d=_0x2fc679[_0x23a639(0x27d)];_0x5d537d===_0x128ecb[_0x23a639(0x360)]&&this[_0x23a639(0x14c)](_0x2fc679),_0x5d537d===_0x128ecb[_0x23a639(0x3a7)]&&this['_onCursorDelete'](_0x2fc679);}),this['disposeWithMe'](this[_0x4d2969(0x457)]['onCommandExecuted'](_0x4fbc5c=>{const _0xb86276=_0x4d2969,_0x539737=_0x4fbc5c[_0xb86276(0x338)];_0x539737!=null&&this[_0xb86276(0x2c0)]&&_0x4fbc5c['id']===_0x12c35b['id']&&_0x539737[_0xb86276(0x380)]===this[_0xb86276(0x1e5)]&&_0x539737[_0xb86276(0x44a)]===!0x1&&this[_0xb86276(0x1af)](_0x539737[_0xb86276(0x12d)]);})),this[_0x4d2969(0x1d6)][_0x4d2969(0x2e1)][_0x4d2969(0x29b)](_0x1cea38(this[_0x4d2969(0x3ab)]))[_0x4d2969(0x146)](_0x244ec9=>{const _0x4a1db6=_0x4d2969;if((_0x244ec9==null?void 0x0:_0x244ec9['unitID'])!==this['unitID'])return;const _0x367ab4={'eventID':_0x128ecb[_0x4a1db6(0x360)],'data':_0x244ec9};this[_0x4a1db6(0x14c)](_0x367ab4);}),this[_0x4d2969(0x206)](this[_0x4d2969(0x457)][_0x4d2969(0x3a9)](_0x32a4b8=>{const _0x48afbc=_0x4d2969;if(_0x32a4b8['params']==null)return;const _0x40ea4b=_0x32a4b8['params'];if(_0x32a4b8['id']!==_0x11f4dd['id']||_0x40ea4b[_0x48afbc(0x380)]!==this[_0x48afbc(0x1e5)])return;const _0x425f5b={'id':_0x48afbc(0x16d),'params':_0x40ea4b},_0x5e32df=this[_0x48afbc(0x3d8)];for(const [_0x32dae5,_0x3967a7]of _0x5e32df){const _0x105eb8={'id':_0x48afbc(0x16d),'params':{'unitId':this[_0x48afbc(0x1e5)],'actions':null,'textRanges':_0x3967a7[_0x48afbc(0x12d)]}},_0x1799f2=this[_0x48afbc(0x32a)]['transformMutation'](_0x425f5b,_0x105eb8,!0x1);if(_0x43ac9d(_0x1799f2))throw _0x1799f2[_0x48afbc(0x490)];_0x5e32df[_0x48afbc(0x276)](_0x32dae5,{..._0x3967a7,'ranges':_0x1799f2[_0x48afbc(0x22c)][_0x48afbc(0x338)][_0x48afbc(0x337)]});}queueMicrotask(()=>{const _0x32fb30=_0x48afbc;this[_0x32fb30(0x453)][_0x32fb30(0x33a)](_0x5e32df);});})));}[_0x2da18b(0x14c)](_0x321157){const _0x422d2e=_0x2da18b;var _0x4ddbc5,_0x440997;const {memberID:_0x58b170,selection:_0xfd1efb}=_0x321157[_0x422d2e(0x247)],_0x16377e=or(_0xfd1efb),_0x48d6c5=(_0x440997=(_0x4ddbc5=this[_0x422d2e(0x131)]['getMember'](this['unitID'],_0x58b170))==null?void 0x0:_0x4ddbc5[_0x422d2e(0x45c)])!=null?_0x440997:_0x422d2e(0x2c4),_0x32c8b2={'color':this['_colorAssignService'][_0x422d2e(0x466)](_0x58b170),'name':_0x48d6c5,'ranges':_0x16377e},_0x22479e=this[_0x422d2e(0x3d8)];_0x22479e[_0x422d2e(0x276)](_0x58b170,_0x32c8b2),this[_0x422d2e(0x453)][_0x422d2e(0x33a)](_0x22479e);}[_0x2da18b(0x179)](_0x1c0a6c){const _0x2bed74=_0x2da18b,{memberID:_0x126af0}=_0x1c0a6c[_0x2bed74(0x247)],_0x51e801=this[_0x2bed74(0x3d8)];_0x51e801[_0x2bed74(0x3b7)](_0x126af0),this[_0x2bed74(0x453)][_0x2bed74(0x33a)](_0x51e801);}[_0x2da18b(0x355)](){const _0x1ef1a4=_0x2da18b;var _0x35702a;if(this['_online']=!0x0,((_0x35702a=this[_0x1ef1a4(0x406)][_0x1ef1a4(0x2a3)]())==null?void 0x0:_0x35702a[_0x1ef1a4(0x3d4)]())!==this['unitID'])return;const _0x209204=this['_injector'][_0x1ef1a4(0x2dd)](_0xd0d12d)[_0x1ef1a4(0x309)]();Array[_0x1ef1a4(0x1f8)](_0x209204)&&_0x209204[_0x1ef1a4(0x1a8)]>0x0&&this[_0x1ef1a4(0x1af)](_0x209204);}[_0x2da18b(0x3ad)](){const _0x352f03=_0x2da18b;this[_0x352f03(0x2c0)]=!0x1;}};Rt=Cr([se(0x2,_0x24691e(_0x129c7a)),se(0x3,_0x24691e(Ft)),se(0x4,_0x24691e(ae)),se(0x5,_0x24691e(Bt)),se(0x6,_0x418a36),se(0x7,_0x4af863),se(0x8,_0x18280b)],Rt);var Rr=Object[_0x2da18b(0x151)],Or=Object[_0x2da18b(0x2b8)],Dr=(_0x42719b,_0x5e3831,_0x13d331,_0x2b8bbb)=>{const _0xbe23f2=_0x2da18b;for(var _0x55d476=_0x2b8bbb>0x1?void 0x0:_0x2b8bbb?Or(_0x5e3831,_0x13d331):_0x5e3831,_0x453dc8=_0x42719b[_0xbe23f2(0x1a8)]-0x1,_0x3f5442;_0x453dc8>=0x0;_0x453dc8--)(_0x3f5442=_0x42719b[_0x453dc8])&&(_0x55d476=(_0x2b8bbb?_0x3f5442(_0x5e3831,_0x13d331,_0x55d476):_0x3f5442(_0x55d476))||_0x55d476);return _0x2b8bbb&&_0x55d476&&Rr(_0x5e3831,_0x13d331,_0x55d476),_0x55d476;},fe=(_0x3c90a5,_0x399008)=>(_0x2ada7d,_0x5004ee)=>_0x399008(_0x2ada7d,_0x5004ee,_0x3c90a5);const wr=0x12c,Pr=0x64,yr=()=>{let _0xc4b322=[],_0x5206cb=!0x1;return _0x28217e=>{const _0x279336=_0x44b4;_0xc4b322[_0x279336(0x46c)](_0x28217e),_0x5206cb||(_0x5206cb=!0x0,setTimeout(()=>{_0xc4b322['forEach'](_0x4019ee=>_0x4019ee()),_0xc4b322=[],_0x5206cb=!0x1;}));};};let Ot=class extends _0x13b3a6{constructor(_0xc7e6d,_0x5de697,_0xe8f32d,_0x53d5ed,_0x5691fa,_0x3c0e39,_0x402f30,_0x274f2c){const _0x576ae4=_0x2da18b;super(),l(this,_0x576ae4(0x2c0),!0x1),l(this,'_init',!0x1),l(this,_0x576ae4(0x453),new _0x295ce3(new Map())),l(this,_0x576ae4(0x255),this[_0x576ae4(0x453)][_0x576ae4(0x344)]()),l(this,_0x576ae4(0x2b2),new _0x295ce3([])),l(this,_0x576ae4(0x1fb),this[_0x576ae4(0x2b2)][_0x576ae4(0x29b)](_0x10aa2e(wr))),l(this,'_updateLocalCursor',_0x77ae19((_0x1b56f3,_0x359f2c)=>{const _0x2745cf=_0x576ae4,_0x164959={'eventID':_0x128ecb[_0x2745cf(0x360)],'data':{'unitID':this[_0x2745cf(0x1e5)],'memberID':this[_0x2745cf(0x13c)][_0x2745cf(0x23d)](),'selection':_0x811c4(_0x1b56f3,_0x359f2c['range'])}};this[_0x2745cf(0x13c)][_0x2745cf(0x1ad)](_0x164959,this[_0x2745cf(0x1e5)]);},Pr)),(this[_0x576ae4(0x1e5)]=_0xc7e6d,this[_0x576ae4(0x13c)]=_0x5de697,this[_0x576ae4(0x272)]=_0xe8f32d,this[_0x576ae4(0x40b)]=_0x53d5ed,this[_0x576ae4(0x131)]=_0x5691fa,this['_univerInstanceService']=_0x3c0e39,this[_0x576ae4(0x457)]=_0x402f30,this[_0x576ae4(0x1fd)]=_0x274f2c);}get['cursorInfo'](){const _0x16738d=_0x2da18b;return this[_0x16738d(0x453)][_0x16738d(0x331)]();}get[_0x2da18b(0x44e)](){const _0x220798=_0x2da18b;return this[_0x220798(0x2b2)][_0x220798(0x331)]();}[_0x2da18b(0x18e)](){const _0x1a45fb=_0x2da18b;super[_0x1a45fb(0x18e)](),this['_cursorInfo$'][_0x1a45fb(0x33a)](new Map()),this[_0x1a45fb(0x453)][_0x1a45fb(0x3fd)](),this[_0x1a45fb(0x2b2)][_0x1a45fb(0x33a)]([]),this[_0x1a45fb(0x2b2)][_0x1a45fb(0x3fd)]();}[_0x2da18b(0x266)](){const _0x4e5604=_0x2da18b;this[_0x4e5604(0x1c5)]||(this[_0x4e5604(0x1c5)]=!0x0,this[_0x4e5604(0x13c)]['sessionStatus$'][_0x4e5604(0x29b)](_0x1cea38(this[_0x4e5604(0x3ab)]))['subscribe'](_0x3dc968=>{const _0x1400a8=_0x4e5604;_0x3dc968===G['ONLINE']?this[_0x1400a8(0x355)]():this[_0x1400a8(0x3ad)]();}),this[_0x4e5604(0x13c)]['event$'][_0x4e5604(0x29b)](_0x1cea38(this['dispose$']))[_0x4e5604(0x146)](_0x4e008a=>{const _0x201cff=_0x4e5604,_0x418e65=_0x4e008a[_0x201cff(0x27d)];_0x418e65===_0x128ecb[_0x201cff(0x360)]&&this[_0x201cff(0x14c)](_0x4e008a),_0x418e65===_0x128ecb[_0x201cff(0x3a7)]&&this[_0x201cff(0x179)](_0x4e008a);}),this['_onRefRangeChange'](),this['disposeWithMe'](this[_0x4e5604(0x457)][_0x4e5604(0x3a9)](_0x3667ee=>{const _0xcc1186=_0x4e5604;if(this['_online']&&_0x3667ee['id']===_0x3c7ab3['id']&&_0x3667ee[_0xcc1186(0x338)][_0xcc1186(0x380)]===this[_0xcc1186(0x1e5)]){const _0x3a2358=_0x3667ee[_0xcc1186(0x338)];this[_0xcc1186(0x1af)](_0x3a2358[_0xcc1186(0x18a)],_0x3a2358[_0xcc1186(0x336)][0x0]);}})));}[_0x2da18b(0x14c)](_0x1c1514){const _0x5dd63f=_0x2da18b;var _0x43ea29,_0x1f1cca;const {memberID:_0x1834e9,selection:_0x4698d2}=_0x1c1514[_0x5dd63f(0x247)],{sheetName:_0x273638,range:_0x2de9b2}=_0x1f9a73(_0x4698d2),_0x3d50bc={'name':(_0x1f1cca=(_0x43ea29=this[_0x5dd63f(0x131)][_0x5dd63f(0x479)](this[_0x5dd63f(0x1e5)],_0x1834e9))==null?void 0x0:_0x43ea29['name'])!=null?_0x1f1cca:_0x5dd63f(0x2c4),'range':this['_getMergeRange'](_0x273638,_0x2de9b2),'sheetID':_0x273638,'color':this['_colorAssignService']['assignAColorForMemberID'](_0x1834e9),'selection':_0x4698d2},_0x231a3a=this['cursorInfo'];_0x231a3a[_0x5dd63f(0x276)](_0x1834e9,_0x3d50bc),this[_0x5dd63f(0x453)][_0x5dd63f(0x33a)](_0x231a3a);}[_0x2da18b(0x179)](_0x396223){const _0x3973ef=_0x2da18b,{memberID:_0x31a8da}=_0x396223[_0x3973ef(0x247)],_0x5a90a7=this['cursorInfo'];_0x5a90a7[_0x3973ef(0x3b7)](_0x31a8da),this[_0x3973ef(0x453)][_0x3973ef(0x33a)](_0x5a90a7);}[_0x2da18b(0x2f2)](_0x39e934,_0x5494dd){const _0x14048f=_0x2da18b;var _0x138aa7,_0x5c5ec6;const _0x24a2bb=(_0x5c5ec6=(_0x138aa7=this[_0x14048f(0x406)][_0x14048f(0x259)](this['unitID']))==null?void 0x0:_0x138aa7[_0x14048f(0x2d9)](_0x39e934))==null?void 0x0:_0x5c5ec6[_0x14048f(0x465)]();return(_0x24a2bb==null?void 0x0:_0x24a2bb[_0x14048f(0x322)](_0x5eca41=>_0x34bc57['contains'](_0x5eca41,_0x5494dd)))||_0x5494dd;}[_0x2da18b(0x376)](){const _0x4b931f=_0x2da18b,_0x149863=new _0x15e5d9(),_0x233382=yr(),_0x97c0e1=()=>{const _0x5999e4=_0x44b4;_0x149863[_0x5999e4(0x18e)]();const _0x2a3e5a=(_0x3c0ae6,_0x5f0559,_0xccbb3d,_0x439ed3)=>{const _0x5543a1=_0x5999e4;let _0x5c54f3=[];switch(_0x3c0ae6['id']){case _0x3b7f59[_0x5543a1(0x42f)]:{_0x5c54f3=_0x20d302(_0x3c0ae6,_0x439ed3);break;}case _0x3b7f59[_0x5543a1(0x3a8)]:{_0x5c54f3=_0x19e925(_0x3c0ae6,_0x439ed3);break;}case _0x3b7f59['InsertColCommandId']:{_0x5c54f3=_0x287ebd(_0x3c0ae6,_0x439ed3);break;}case _0x3b7f59['InsertRangeMoveDownCommandId']:{_0x5c54f3=_0x3a8b0e(_0x3c0ae6,_0x439ed3);break;}case _0x3b7f59['InsertRangeMoveRightCommandId']:{_0x5c54f3=_0x41db6a(_0x3c0ae6,_0x439ed3);break;}case _0x3b7f59[_0x5543a1(0x328)]:{_0x5c54f3=_0x484fb6(_0x3c0ae6,_0x439ed3);break;}case _0x3b7f59[_0x5543a1(0x291)]:{_0x5c54f3=_0x3f4a82(_0x3c0ae6,_0x439ed3);break;}case _0x3b7f59[_0x5543a1(0x14f)]:{_0x5c54f3=_0x4fb4f8(_0x3c0ae6,_0x439ed3);break;}case _0x3b7f59[_0x5543a1(0x37e)]:{_0x5c54f3=_0x4f44cf(_0x3c0ae6,_0x439ed3);break;}}const _0x240345=_0x3f0515(_0x5c54f3,_0x439ed3),_0x1191f8=this[_0x5543a1(0x3d8)]['get'](_0x5f0559);if(_0x1191f8&&_0x240345){const _0x5ecd4f={..._0x1191f8,'range':_0x240345};this[_0x5543a1(0x3d8)][_0x5543a1(0x276)](_0x5f0559,_0x5ecd4f),_0x233382(()=>{const _0x5c1602=_0x5543a1,_0x165e99=this[_0x5c1602(0x1fd)][_0x5c1602(0x445)](_0x240345,_0x2455c5=>(_0x165e99[_0x5c1602(0x18e)](),_0x2a3e5a(_0x2455c5,_0x5f0559,_0xccbb3d,_0x240345)));_0x149863[_0x5c1602(0x358)](_0x165e99);});}return{'redos':[],'undos':[]};};this[_0x5999e4(0x3d8)]['forEach']((_0x257322,_0x30fbc8)=>{const _0x255037=_0x5999e4,{range:_0x3f4697,sheetID:_0x450a80}=_0x257322,_0x4aadbd=this[_0x255037(0x1fd)][_0x255037(0x445)](_0x3f4697,_0x564d42=>(_0x4aadbd[_0x255037(0x18e)](),_0x2a3e5a(_0x564d42,_0x30fbc8,_0x450a80,_0x3f4697)));_0x149863[_0x255037(0x358)](_0x4aadbd);});};this[_0x4b931f(0x206)](_0xc09fc4(this['_cursorInfo$'][_0x4b931f(0x146)](()=>{_0x97c0e1();})));}['_toggleOnline'](){const _0x5bdd66=_0x2da18b;var _0x50a98f,_0x51343d;if(this[_0x5bdd66(0x2c0)]=!0x0,((_0x50a98f=this[_0x5bdd66(0x406)][_0x5bdd66(0x2a3)]())==null?void 0x0:_0x50a98f['getUnitId']())!==this[_0x5bdd66(0x1e5)])return;const _0x142491=(_0x51343d=this['_injector'][_0x5bdd66(0x2dd)](_0x19b20b)[_0x5bdd66(0x3c0)]())==null?void 0x0:_0x51343d[0x0],_0x540e00=this[_0x5bdd66(0x406)][_0x5bdd66(0x1ca)](_0x43baa3[_0x5bdd66(0x2d4)])['getActiveSheet']();_0x142491&&_0x540e00&&this[_0x5bdd66(0x1af)](_0x540e00[_0x5bdd66(0x326)](),_0x142491);}[_0x2da18b(0x3ad)](){const _0x3b7df3=_0x2da18b;this[_0x3b7df3(0x2c0)]=!0x1;}};Ot=Dr([fe(0x2,_0x24691e(_0x129c7a)),fe(0x3,_0x24691e(Ft)),fe(0x4,_0x24691e(ae)),fe(0x5,_0x4af863),fe(0x6,_0x18280b),fe(0x7,_0x24691e(_0x10ec28))],Ot);var Nr=Object[_0x2da18b(0x151)],Ur=Object[_0x2da18b(0x2b8)],Mr=(_0x84a9be,_0x2d5d10,_0x50e0a9,_0x4e5762)=>{for(var _0x53574d=_0x4e5762>0x1?void 0x0:_0x4e5762?Ur(_0x2d5d10,_0x50e0a9):_0x2d5d10,_0x20f221=_0x84a9be['length']-0x1,_0x3edab3;_0x20f221>=0x0;_0x20f221--)(_0x3edab3=_0x84a9be[_0x20f221])&&(_0x53574d=(_0x4e5762?_0x3edab3(_0x2d5d10,_0x50e0a9,_0x53574d):_0x3edab3(_0x53574d))||_0x53574d);return _0x4e5762&&_0x53574d&&Nr(_0x2d5d10,_0x50e0a9,_0x53574d),_0x53574d;},_t=(_0x84734d,_0x3654bb)=>(_0x2a2a96,_0x4fa656)=>_0x3654bb(_0x2a2a96,_0x4fa656,_0x84734d);let pe=class extends _0x13b3a6{constructor(_0x101b73,_0x396df0,_0x14b525){const _0x271387=_0x2da18b;super(),l(this,'_entities',new Map()),l(this,'_entityInit$',new _0x526cd2()),(this[_0x271387(0x406)]=_0x101b73,this[_0x271387(0x272)]=_0x396df0,this['_collabSessionService']=_0x14b525,this[_0x271387(0x1c5)]());}[_0x2da18b(0x18e)](){const _0x28dd6d=_0x2da18b;super[_0x28dd6d(0x18e)](),this[_0x28dd6d(0x41e)]['complete'](),this[_0x28dd6d(0x3d9)][_0x28dd6d(0x137)](_0xdf66a5=>_0xdf66a5['dispose']());}[_0x2da18b(0x2cf)](_0x2ad094){const _0x175f80=_0x2da18b;return this[_0x175f80(0x3d9)]['has'](_0x2ad094)?this[_0x175f80(0x3d9)]['get'](_0x2ad094)[_0x175f80(0x255)]:this[_0x175f80(0x41e)][_0x175f80(0x29b)](_0x2d3c1f(_0x4ab843=>_0x4ab843[_0x175f80(0x1e5)]===_0x2ad094),_0xe06e10(_0x5e6b48=>_0x5e6b48[_0x175f80(0x255)]));}[_0x2da18b(0x1c5)](){const _0x428834=_0x2da18b;this[_0x428834(0x406)]['getTypeOfUnitAdded$'](_0x43baa3[_0x428834(0x2d4)])[_0x428834(0x29b)](_0x1cea38(this[_0x428834(0x3ab)]))[_0x428834(0x146)](async _0x5d1385=>{const _0x2c2d24=_0x428834,_0x100b14=_0x5d1385[_0x2c2d24(0x3d4)](),_0x1e15bb=await this[_0x2c2d24(0x1f5)](_0x100b14);this['_entityInit$'][_0x2c2d24(0x33a)](_0x1e15bb),this[_0x2c2d24(0x3d9)][_0x2c2d24(0x276)](_0x100b14,_0x1e15bb);}),this[_0x428834(0x406)][_0x428834(0x26c)](_0x43baa3[_0x428834(0x37b)])['pipe'](_0x1cea38(this[_0x428834(0x3ab)]))['pipe'](_0x2d3c1f(_0x40d8ee=>!_0x40d8ee['getUnitId']()[_0x428834(0x367)]('__')))[_0x428834(0x146)](async _0x297ff4=>{const _0x39d8ed=_0x428834,_0x224247=_0x297ff4[_0x39d8ed(0x3d4)](),_0x348ca2=await this[_0x39d8ed(0x28f)](_0x224247);this[_0x39d8ed(0x41e)][_0x39d8ed(0x33a)](_0x348ca2),this[_0x39d8ed(0x3d9)][_0x39d8ed(0x276)](_0x224247,_0x348ca2);}),_0x5799ee(this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x43baa3[_0x428834(0x37b)]),this[_0x428834(0x406)][_0x428834(0x253)](_0x43baa3[_0x428834(0x2d4)]))['pipe'](_0x1cea38(this[_0x428834(0x3ab)]))['subscribe'](_0x1b87f0=>{const _0x47b2aa=_0x428834,_0x4c2b80=_0x1b87f0[_0x47b2aa(0x3d4)](),_0x55b98e=this['_entities'][_0x47b2aa(0x2dd)](_0x4c2b80);_0x55b98e&&(_0x55b98e[_0x47b2aa(0x18e)](),this[_0x47b2aa(0x3d9)]['delete'](_0x4c2b80));});}async[_0x2da18b(0x1f5)](_0x40f8a8){const _0x6c388c=_0x2da18b,_0x40b495=await this[_0x6c388c(0x235)][_0x6c388c(0x19f)](_0x40f8a8),_0x3846ac=this['_injector'][_0x6c388c(0x3cb)](Ot,_0x40f8a8,_0x40b495);return _0x3846ac[_0x6c388c(0x266)](),_0x3846ac;}async[_0x2da18b(0x28f)](_0x3a318a){const _0x1f6940=_0x2da18b,_0x2f90c0=await this[_0x1f6940(0x235)]['requireSession'](_0x3a318a),_0x48b235=this[_0x1f6940(0x272)][_0x1f6940(0x3cb)](Rt,_0x3a318a,_0x2f90c0);return _0x48b235[_0x1f6940(0x266)](),_0x48b235;}};pe=Mr([_t(0x0,_0x4af863),_t(0x1,_0x24691e(_0x129c7a)),_t(0x2,_0x24691e(ce))],pe);const Le=0x14,us=0xc8,ut=0x4,Ar=0x5;function Lr(_0x1338ce,_0x3ff89b){const _0x813612=_0x2da18b;let {radius:_0x23783d,width:_0xc8a293,height:_0x3e0fc7}=_0x3ff89b;_0x23783d=_0x23783d!=null?_0x23783d:0x0,_0xc8a293=_0xc8a293!=null?_0xc8a293:0x1e,_0x3e0fc7=_0x3e0fc7!=null?_0x3e0fc7:0x1e;let _0x12560f=0x0,_0x1a51d9=0x0,_0x41369f=0x0;_0x12560f=_0x1a51d9=_0x41369f=Math[_0x813612(0x1d3)](_0x23783d,_0xc8a293/0x2,_0x3e0fc7/0x2),_0x1338ce[_0x813612(0x1a6)](),_0x1338ce[_0x813612(0x130)](_0x12560f,0x0),_0x1338ce[_0x813612(0x40d)](_0xc8a293-_0x1a51d9,0x0),_0x1338ce[_0x813612(0x2a5)](_0xc8a293-_0x1a51d9,_0x1a51d9,_0x1a51d9,Math['PI']*0x3/0x2,0x0,!0x1),_0x1338ce[_0x813612(0x40d)](_0xc8a293,_0x3e0fc7-_0x41369f),_0x1338ce[_0x813612(0x2a5)](_0xc8a293-_0x41369f,_0x3e0fc7-_0x41369f,_0x41369f,0x0,Math['PI']/0x2,!0x1),_0x1338ce[_0x813612(0x40d)](0x0,_0x3e0fc7),_0x1338ce[_0x813612(0x40d)](0x0,_0x12560f),_0x1338ce[_0x813612(0x2a5)](_0x12560f,_0x12560f,_0x12560f,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1338ce[_0x813612(0x35e)](),_0x3ff89b['fill']&&(_0x1338ce[_0x813612(0x26f)](),_0x1338ce[_0x813612(0x3d7)]=_0x3ff89b[_0x813612(0x46f)],_0x3ff89b['fillRule']===_0x813612(0x297)?_0x1338ce[_0x813612(0x46f)](_0x813612(0x297)):_0x1338ce[_0x813612(0x46f)](),_0x1338ce[_0x813612(0x138)]());}class st extends _0x24438a{constructor(_0x9aec8e,_0x2d223){const _0x486cdd=_0x2da18b;super(_0x9aec8e,_0x2d223),l(this,_0x486cdd(0x183)),l(this,'text'),(this['color']=_0x2d223==null?void 0x0:_0x2d223[_0x486cdd(0x183)],this[_0x486cdd(0x34d)]=_0x2d223==null?void 0x0:_0x2d223['text']);}static['drawWith'](_0xf60049,_0x52a26a){const _0x32d11d=_0x2da18b,{text:_0x835e71,color:_0x29f61c}=_0x52a26a;_0xf60049[_0x32d11d(0x26f)](),_0xf60049[_0x32d11d(0x251)]=_0x32d11d(0x43f);const _0x4ab4b1=_0xf60049[_0x32d11d(0x27e)](_0x835e71)[_0x32d11d(0x33f)],_0x1ef306=Math[_0x32d11d(0x1d3)](_0x4ab4b1+0x2*ut,us);Lr(_0xf60049,{'height':Le,'radius':0x4,'width':_0x1ef306,'fill':_0x29f61c,'evented':!0x1}),_0xf60049[_0x32d11d(0x3d7)]=_0x32d11d(0x1be);const _0x19d402=ut,_0x59fd1f=Le-Ar,_0x14f3a5=us-0x2*ut;if(_0x4ab4b1>_0x14f3a5){let _0x274d19='',_0xff2991=0x0;for(const _0x55c5da of _0x835e71){const _0x5c3ddb=_0xf60049[_0x32d11d(0x27e)](_0x55c5da)[_0x32d11d(0x33f)];if(_0xff2991+_0x5c3ddb<=_0x14f3a5-_0xf60049['measureText'](_0x32d11d(0x1ea))[_0x32d11d(0x33f)])_0x274d19+=_0x55c5da,_0xff2991+=_0x5c3ddb;else{_0x274d19+=_0x32d11d(0x1ea);break;}}_0xf60049['fillText'](_0x274d19,_0x19d402,_0x59fd1f);}else _0xf60049[_0x32d11d(0x3ee)](_0x835e71,_0x19d402,_0x59fd1f);_0xf60049[_0x32d11d(0x138)]();}['_draw'](_0x36104e){st['drawWith'](_0x36104e,this);}}const dt=_0x2da18b(0x234),$r='collab-text-range-',jr=_0x2da18b(0x425),De=0x6,xr=1.5,ft=0x4,Hr=1.5,kr=_0x2da18b(0x2bf);class ds{constructor(_0x7f7493,_0x2a6f9e,_0x7a150e,_0x4d1b01){const _0x36dc0e=_0x2da18b;l(this,_0x36dc0e(0x216),[]),l(this,'_anchor',null),l(this,_0x36dc0e(0x373),null),l(this,_0x36dc0e(0x1ef),null),l(this,_0x36dc0e(0x3eb),null),l(this,_0x36dc0e(0x2a8),null),(this[_0x36dc0e(0x3fa)]=_0x7f7493,this['_scene']=_0x2a6f9e,this['_docSkeleton']=_0x7a150e,this[_0x36dc0e(0x152)]=_0x4d1b01,this[_0x36dc0e(0x2ec)]());}set[_0x2da18b(0x3f8)](_0x4c7a25){const _0x512a6f=_0x2da18b;_0x4c7a25?(this['_anchorDot']&&this['_anchorDot'][_0x512a6f(0x286)](),this['_textBubble']&&this[_0x512a6f(0x373)]['show']()):(this['_anchorDot']&&this[_0x512a6f(0x1ef)]['show'](),this[_0x512a6f(0x373)]&&this['_textBubble'][_0x512a6f(0x286)]());}[_0x2da18b(0x18e)](){const _0xea56ef=_0x2da18b;for(const _0x58997b of this['_shapes'])_0x58997b[_0xea56ef(0x18e)]();this[_0xea56ef(0x373)]&&this['_textBubble']['dispose'](),this[_0xea56ef(0x1ef)]&&this[_0xea56ef(0x1ef)][_0xea56ef(0x18e)](),this[_0xea56ef(0x409)]&&this[_0xea56ef(0x409)][_0xea56ef(0x18e)](),this[_0xea56ef(0x2a8)]&&this[_0xea56ef(0x2a8)]();}[_0x2da18b(0x2ec)](){const _0x144374=_0x2da18b;var _0x48efa3;const {_docSkeleton:_0x3b2d46,_document:_0x42f4cd}=this,{color:_0x3b165c,name:_0x328e42,ranges:_0x4e0874}=this[_0x144374(0x3fa)],_0x5f22d5=_0x42f4cd[_0x144374(0x229)](),{docsLeft:_0x30258d,docsTop:_0x5a5ed9}=_0x5f22d5,_0x1f457c=new _0x1ffb2a(_0x5f22d5,_0x3b2d46);for(const {startOffset:_0x477ec7,endOffset:_0x5f50bc,collapsed:_0x3beb2c,isActive:_0x192c1e}of _0x4e0874){const _0x3616b0=_0x3b2d46[_0x144374(0x22e)](_0x477ec7),_0x528e51=_0x3b2d46[_0x144374(0x22e)](_0x5f50bc);if(_0x192c1e){const {contentBoxPointGroup:_0x174512}=_0x1f457c[_0x144374(0x245)](_0x528e51,_0x528e51);if(_0x174512['length']===0x0)continue;this['_drawAnchor'](_0x3b165c,_0x174512,_0x30258d,_0x5a5ed9,_0x328e42),this[_0x144374(0x2a8)]=this[_0x144374(0x19c)]();}if(!_0x3beb2c&&_0x3616b0&&_0x528e51){if(_0x10f419(_0x3616b0,_0x528e51)){const _0x5e6d35=new _0x2619ed(_0x5f22d5,_0x3b2d46),{pointGroup:_0x37cb08}=(_0x48efa3=_0x5e6d35[_0x144374(0x245)](_0x3616b0,_0x528e51))!=null?_0x48efa3:{};if(_0x37cb08==null||_0x37cb08[_0x144374(0x1a8)]===0x0)continue;this[_0x144374(0x238)](_0x3b165c,_0x37cb08,_0x30258d,_0x5a5ed9);}else{const {contentBoxPointGroup:_0x2aee94}=_0x1f457c[_0x144374(0x245)](_0x3616b0,_0x528e51);if(_0x2aee94[_0x144374(0x1a8)]===0x0)continue;this[_0x144374(0x28e)](_0x3b165c,_0x2aee94,_0x30258d,_0x5a5ed9);}}}}['_drawAnchor'](_0x5400ec,_0x42ce68,_0x4053fe,_0x1b3e33,_0x18984f){const _0x50bb0f=_0x2da18b,_0x356078=this[_0x50bb0f(0x2de)](_0x42ce68),{left:_0x2c369c,top:_0x53ad27,height:_0x54ef94}=_0x356078,_0x5b173b=this[_0x50bb0f(0x29d)](),_0x2e6ea9=Hr/_0x5b173b,_0x5be27b=new _0x2eb7b4(dt+_0x5ee8c7[_0x50bb0f(0x3a4)](De),{'left':_0x2c369c+_0x4053fe-_0x2e6ea9,'top':_0x53ad27+_0x1b3e33,'height':_0x54ef94,'width':xr,'fill':_0x5400ec||_0x35c7a2(_0x2af6c8[_0x50bb0f(0x399)],0x0),'strokeWidth':_0x2e6ea9,'stroke':kr,'evented':!0x0});this[_0x50bb0f(0x409)]=_0x5be27b,this[_0x50bb0f(0x1e2)][_0x50bb0f(0x2e7)](_0x5be27b,_0x470ec7);const _0x1ae337=new _0x2eb7b4(dt+_0x5ee8c7[_0x50bb0f(0x3a4)](De),{'left':_0x2c369c+_0x4053fe-_0x2e6ea9,'top':_0x53ad27+_0x1b3e33-ft/0x2,'height':ft,'width':ft,'fill':_0x5400ec||_0x35c7a2(_0x2af6c8[_0x50bb0f(0x399)],0x0),'strokeWidth':0x0,'stroke':_0x5400ec||_0x35c7a2(_0x2af6c8['black'],0x0),'evented':!0x1});this[_0x50bb0f(0x1ef)]=_0x1ae337,this[_0x50bb0f(0x1e2)][_0x50bb0f(0x2e7)](_0x1ae337,_0x470ec7);const _0x1c8db1=new st(dt+_0x5ee8c7[_0x50bb0f(0x3a4)](De),{'left':_0x2c369c+_0x4053fe-_0x2e6ea9,'top':_0x53ad27+_0x1b3e33-Le,'text':_0x18984f,'color':_0x5400ec});this[_0x50bb0f(0x373)]=_0x1c8db1,this[_0x50bb0f(0x1e2)][_0x50bb0f(0x2e7)](_0x1c8db1,_0x470ec7),this[_0x50bb0f(0x3f8)]=!0x1;}['_handleHover'](){const _0x32cd2b=_0x2da18b,_0x9cc89c=this[_0x32cd2b(0x409)][_0x32cd2b(0x180)][_0x32cd2b(0x21a)](()=>{const _0x755411=_0x32cd2b;this[_0x755411(0x3f8)]=!0x0;}),_0xfbdd45=this['_anchor'][_0x32cd2b(0x2e2)][_0x32cd2b(0x21a)](()=>{const _0x32b208=_0x32cd2b;this[_0x32b208(0x3eb)]&&clearTimeout(this[_0x32b208(0x3eb)]),this[_0x32b208(0x3eb)]=setTimeout(()=>{const _0xcd2b0c=_0x32b208;this[_0xcd2b0c(0x3f8)]=!0x1;},0x7d0);});return()=>{const _0x11dcf=_0x32cd2b;_0x9cc89c[_0x11dcf(0x464)](),_0xfbdd45[_0x11dcf(0x464)]();};}[_0x2da18b(0x28e)](_0x3d2375,_0x2ae13f,_0x8ae330,_0x1bae2f){const _0x23732d=_0x2da18b,_0x13075b=new _0x581e9c(_0x3d2375)[_0x23732d(0x325)](0.2)['toRgbString'](),_0x4e519e=new _0x5f1bc5($r+_0x5ee8c7['generateRandomId'](De),{'pointsGroup':_0x2ae13f,'fill':_0x13075b||_0x35c7a2(_0x2af6c8[_0x23732d(0x399)],0.2),'left':_0x8ae330,'top':_0x1bae2f,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x23732d(0x216)][_0x23732d(0x46c)](_0x4e519e),this['_scene']['addObject'](_0x4e519e,_0x470ec7);}['_drawRectRange'](_0x5bad6a,_0x282371,_0x2d0453,_0x33d45b){const _0x5e0ac9=_0x2da18b,_0x225248=new _0x581e9c(_0x5bad6a)[_0x5e0ac9(0x325)](0.2)[_0x5e0ac9(0x3dc)](),_0x5a8cb6=new _0x5f1bc5(jr+_0x5ee8c7[_0x5e0ac9(0x3a4)](De),{'pointsGroup':_0x282371,'fill':_0x225248||_0x35c7a2(_0x2af6c8[_0x5e0ac9(0x399)],0.2),'left':_0x2d0453,'top':_0x33d45b,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5e0ac9(0x216)][_0x5e0ac9(0x46c)](_0x5a8cb6),this[_0x5e0ac9(0x1e2)][_0x5e0ac9(0x2e7)](_0x5a8cb6,_0x470ec7);}[_0x2da18b(0x2de)](_0x5e1725){const _0x388319=_0x5e1725[0x0],_0x4b7f40=_0x388319[0x0],_0x739b2f=_0x388319[0x2],{x:_0x5e185c,y:_0x18148d}=_0x4b7f40,{x:_0x20ac83,y:_0x1882de}=_0x739b2f;return{'left':_0x5e185c,'top':_0x18148d,'width':_0x20ac83-_0x5e185c,'height':_0x1882de-_0x18148d};}[_0x2da18b(0x29d)](){const _0x3506ac=_0x2da18b,{scaleX:_0x1cb7df,scaleY:_0x410214}=this[_0x3506ac(0x1e2)]['getAncestorScale']();return Math[_0x3506ac(0x43c)](_0x1cb7df,_0x410214);}}var Br=Object['defineProperty'],Vr=Object[_0x2da18b(0x2b8)],Fr=(_0x4c3415,_0xda4471,_0x13c738,_0x501c96)=>{const _0x294e0d=_0x2da18b;for(var _0x1b0040=_0x501c96>0x1?void 0x0:_0x501c96?Vr(_0xda4471,_0x13c738):_0xda4471,_0x609ccd=_0x4c3415[_0x294e0d(0x1a8)]-0x1,_0x4b5351;_0x609ccd>=0x0;_0x609ccd--)(_0x4b5351=_0x4c3415[_0x609ccd])&&(_0x1b0040=(_0x501c96?_0x4b5351(_0xda4471,_0x13c738,_0x1b0040):_0x4b5351(_0x1b0040))||_0x1b0040);return _0x501c96&&_0x1b0040&&Br(_0xda4471,_0x13c738,_0x1b0040),_0x1b0040;},xe=(_0x454218,_0x1691b6)=>(_0x3c0e91,_0x2ad7b5)=>_0x1691b6(_0x3c0e91,_0x2ad7b5,_0x454218);let Dt=class extends _0x13b3a6{constructor(_0x444a02,_0x478a71,_0x420c8f,_0x5a57e0,_0x3d26bf){const _0x424113=_0x2da18b;super(),l(this,_0x424113(0x21f),[]),l(this,'_cursors',[]),(this[_0x424113(0x3b4)]=_0x444a02,this[_0x424113(0x3f7)]=_0x478a71,this[_0x424113(0x3c1)]=_0x420c8f,this['_commandService']=_0x5a57e0,this[_0x424113(0x3de)]=_0x3d26bf,this[_0x424113(0x1c5)]());}[_0x2da18b(0x1c5)](){const _0x3e6cd7=_0x2da18b,_0x77808d=this[_0x3e6cd7(0x3b4)][_0x3e6cd7(0x380)],_0x1fd101=this[_0x3e6cd7(0x3f7)];this[_0x3e6cd7(0x206)](_0x599ee5([this[_0x3e6cd7(0x3c1)][_0x3e6cd7(0x2cf)](_0x77808d),this[_0x3e6cd7(0x3de)][_0x3e6cd7(0x1ff)]])[_0x3e6cd7(0x29b)](_0x5ddac4(([_0x4277ef,_0x375132])=>({'skeleton':_0x1fd101[_0x3e6cd7(0x3c2)](),'cursors':[..._0x4277ef['values']()][_0x3e6cd7(0x30b)](_0x522849=>({..._0x522849,'color':_0x375132[_0x522849[_0x3e6cd7(0x183)]]}))})))[_0x3e6cd7(0x146)](_0x5c6fdc=>{const _0x11136a=_0x3e6cd7;if(this[_0x11136a(0x482)](),_0x5c6fdc){const {skeleton:_0x2b1e88,cursors:_0x51e786}=_0x5c6fdc;this[_0x11136a(0x3c6)](_0x2b1e88,_0x51e786);}})),this[_0x3e6cd7(0x1cf)](),this[_0x3e6cd7(0x132)]();}['_updateCollabCursors'](_0x408ed1,_0x36dd88){const _0x2a0c38=_0x2da18b,{scene:_0x550cf8,mainComponent:_0x13b553}=this[_0x2a0c38(0x3b4)],_0x198390=_0x36dd88[_0x2a0c38(0x2eb)](_0x12ca62=>new ds(_0x12ca62,_0x550cf8,_0x408ed1,_0x13b553));this[_0x2a0c38(0x21f)]=_0x198390,this[_0x2a0c38(0x2b1)]=_0x36dd88;}[_0x2da18b(0x160)](){const _0x2419de=_0x2da18b;this[_0x2419de(0x482)]();const {scene:_0x50c31d,mainComponent:_0x2675d9}=this[_0x2419de(0x3b4)],_0x4347f4=this[_0x2419de(0x3f7)]['getSkeleton'](),_0x5d749e=this[_0x2419de(0x2b1)][_0x2419de(0x2eb)](_0x5efe0c=>new ds(_0x5efe0c,_0x50c31d,_0x4347f4,_0x2675d9));this[_0x2419de(0x21f)]=_0x5d749e;}[_0x2da18b(0x482)](){const _0x39b0ee=_0x2da18b;this[_0x39b0ee(0x21f)][_0x39b0ee(0x137)](_0x32c0ec=>_0x32c0ec['dispose']()),this['_cursorShapes']=[];}[_0x2da18b(0x132)](){const _0x3d796f=_0x2da18b,_0x196e83=[_0x1acd90['id']];this[_0x3d796f(0x206)](this['_commandService'][_0x3d796f(0x3a9)](_0x48a8e8=>{const _0x742d20=_0x3d796f;_0x196e83[_0x742d20(0x421)](_0x48a8e8['id'])&&_0x48a8e8[_0x742d20(0x338)][_0x742d20(0x380)]===this['_context']['unitId']&&this[_0x742d20(0x160)]();}));}[_0x2da18b(0x1cf)](){const _0x2959e9=_0x2da18b;this['disposeWithMe'](_0x10c8e6(this['_context'][_0x2959e9(0x418)][_0x2959e9(0x217)])[_0x2959e9(0x29b)](_0x333799(_0xa59f75=>_0xa59f75[_0x2959e9(0x3f5)]===_0x44019e[_0x2959e9(0x20a)]),_0x71005e(0x10))['subscribe'](()=>{const _0x47b29d=_0x2959e9;this[_0x47b29d(0x160)]();}));}};Dt=Fr([xe(0x1,_0x24691e(_0x386e72)),xe(0x2,_0x24691e(pe)),xe(0x3,_0x18280b),xe(0x4,_0x24691e(_0x5074d3))],Dt);const Wr=0x1,Gr=1.5;class Yr extends _0x24438a{constructor(_0x564ea1,_0xd637dc){const _0x575db1=_0x2da18b;super(_0x564ea1,_0xd637dc),l(this,_0x575db1(0x319)),l(this,'_hovered',!0x1),l(this,_0x575db1(0x354)),l(this,'_name',''),l(this,_0x575db1(0x14d),'top'),l(this,'_backgroundColor'),(_0xd637dc&&this['setShapeProps'](_0xd637dc),this['onPointerEnter$']['subscribeEvent'](()=>this[_0x575db1(0x3d3)]({'hovered':!0x0})),this['onPointerLeave$'][_0x575db1(0x21a)](()=>this[_0x575db1(0x3d3)]({'hovered':!0x1})));}[_0x2da18b(0x3d3)](_0x59999b){const _0x189373=_0x2da18b;var _0x3db351,_0x243ef9,_0x39e881,_0x408837,_0x1ae896,_0x97de11;this[_0x189373(0x319)]=(_0x3db351=_0x59999b['color'])!=null?_0x3db351:this[_0x189373(0x319)],this[_0x189373(0x3f1)]=(_0x243ef9=_0x59999b['hovered'])!=null?_0x243ef9:this['_hovered'],this[_0x189373(0x354)]=(_0x39e881=_0x59999b['range'])!=null?_0x39e881:this[_0x189373(0x354)],this[_0x189373(0x197)]=(_0x408837=_0x59999b[_0x189373(0x45c)])!=null?_0x408837:this['_name'],this[_0x189373(0x14d)]=(_0x1ae896=_0x59999b[_0x189373(0x3a3)])!=null?_0x1ae896:this[_0x189373(0x14d)],this['_backgroundColor']=(_0x97de11=_0x59999b['backgroundColor'])!=null?_0x97de11:this['_backgroundColor'],this['transformByState']({'width':_0x59999b['width'],'height':_0x59999b[_0x189373(0x2ba)]});}[_0x2da18b(0x207)](_0x50e98c){const _0xb18b53=_0x2da18b,{row:_0x31065e,column:_0x5e5d55}=_0x50e98c;if(_0x31065e>=this[_0xb18b53(0x354)]['startRow']&&_0x31065e<=this[_0xb18b53(0x354)][_0xb18b53(0x434)]&&_0x5e5d55>=this[_0xb18b53(0x354)]['startColumn']&&_0x5e5d55<=this['_range']['endColumn']){this[_0xb18b53(0x3d3)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}['triggerDblclick'](_0x1dcfac){return!0x1;}['_draw'](_0x28cc24){const _0x41964e=_0x2da18b;_0x2eb7b4[_0x41964e(0x448)](_0x28cc24,{'width':this[_0x41964e(0x33f)],'height':this[_0x41964e(0x2ba)],'strokeWidth':Gr,'stroke':this[_0x41964e(0x319)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x41964e(0x3f1)]&&(_0x28cc24[_0x41964e(0x26f)](),_0x28cc24[_0x41964e(0x343)](0x1,0x0,0x0,0x1,this[_0x41964e(0x33f)],this[_0x41964e(0x14d)]===_0x41964e(0x43a)?0x0:-Le),st['drawWith'](_0x28cc24,{'text':this[_0x41964e(0x197)],'color':this['_color']}),_0x28cc24['restore']());}}var Kr=Object['defineProperty'],Xr=Object[_0x2da18b(0x2b8)],Jr=(_0x5e67fc,_0x55365b,_0x1e6c36,_0xfea32a)=>{const _0x2e6d4c=_0x2da18b;for(var _0x484eba=_0xfea32a>0x1?void 0x0:_0xfea32a?Xr(_0x55365b,_0x1e6c36):_0x55365b,_0x2ef9f5=_0x5e67fc[_0x2e6d4c(0x1a8)]-0x1,_0xd4f006;_0x2ef9f5>=0x0;_0x2ef9f5--)(_0xd4f006=_0x5e67fc[_0x2ef9f5])&&(_0x484eba=(_0xfea32a?_0xd4f006(_0x55365b,_0x1e6c36,_0x484eba):_0xd4f006(_0x484eba))||_0x484eba);return _0xfea32a&&_0x484eba&&Kr(_0x55365b,_0x1e6c36,_0x484eba),_0x484eba;},mt=(_0x210dce,_0x4cd47d)=>(_0x3584c8,_0x284e1e)=>_0x4cd47d(_0x3584c8,_0x284e1e,_0x210dce);const qr=0x1389;let wt=class extends _0x13b3a6{constructor(_0x393bc8,_0x3d256e,_0x4ac59f,_0x1bfc94){const _0x1eda9c=_0x2da18b;super(),l(this,_0x1eda9c(0x2b1),new Set()),l(this,_0x1eda9c(0x43b),null),(this['_context']=_0x393bc8,this[_0x1eda9c(0x348)]=_0x3d256e,this[_0x1eda9c(0x3c1)]=_0x4ac59f,this['_themeService']=_0x1bfc94,this[_0x1eda9c(0x1c5)]());}[_0x2da18b(0x1c5)](){const _0x542e41=_0x2da18b;this['_sheetSkeletonManagerService'][_0x542e41(0x1fc)][_0x542e41(0x29b)](_0x17e7c5(this[_0x542e41(0x3ab)]),_0x1e9fa8(_0x1a0760=>{const _0x1259e2=_0x542e41;if(_0x1a0760){const _0xd532fa=_0x1a0760['sheetId'];return _0x599ee5(this[_0x1259e2(0x3c1)][_0x1259e2(0x2cf)](this['_context'][_0x1259e2(0x380)]),this[_0x1259e2(0x3de)]['currentTheme$'])[_0x1259e2(0x29b)](_0x5ddac4(([_0x26078e,_0x4fbaa3])=>{const _0x34a086=_0x1259e2,_0x1749f0=new Map();return _0x26078e[_0x34a086(0x137)]((_0x10568f,_0x14ff80)=>{const _0x120f6e=_0x34a086;if(_0x10568f[_0x120f6e(0x23b)]===_0xd532fa){const _0x3950c5={..._0x10568f};_0x3950c5['color']=_0x4fbaa3[_0x10568f[_0x120f6e(0x183)]],_0x1749f0[_0x120f6e(0x276)](_0x14ff80,_0x3950c5);}}),{'skeleton':_0x1a0760,'cursors':_0x1749f0};}));}return _0x2576f8({'skeleton':null,'cursors':new Map()});}))[_0x542e41(0x146)](({skeleton:_0x2193ee,cursors:_0x1444a9})=>{const _0x5db3f9=_0x542e41;this[_0x5db3f9(0x482)](),_0x2193ee&&this[_0x5db3f9(0x3c6)](_0x2193ee,_0x1444a9);}),this[_0x542e41(0x348)]['currentSkeleton$']['subscribe'](_0x1e52ac=>{const _0x752c89=_0x542e41;if(_0x1e52ac==null)return;const {skeleton:_0x180f4f}=_0x1e52ac,{scene:_0x71e36}=this['_context'];_0x71e36[_0x752c89(0x163)][_0x752c89(0x21a)](_0x77ae19(_0x44e579=>{const _0x4a8cb4=_0x752c89;var _0x879068,_0x32067f;const {offsetX:_0x4af944,offsetY:_0x540b78}=_0x44e579,{x:_0x3e78af,y:_0x5c76d1}=_0x71e36[_0x4a8cb4(0x203)](_0x2adc66['FromArray']([_0x4af944,_0x540b78])),{scaleX:_0x386b83,scaleY:_0x31018d}=_0x71e36[_0x4a8cb4(0x368)](),_0x4833f3=_0x71e36[_0x4a8cb4(0x3d1)](_0x48000c[_0x4a8cb4(0x294)]),_0x409d76=_0x71e36['getVpScrollXYInfoByPosToVp'](_0x2adc66['FromArray']([_0x3e78af,_0x5c76d1]),_0x4833f3),_0x493e2d=_0x180f4f[_0x4a8cb4(0x3fe)](_0x4af944,_0x540b78,_0x386b83,_0x31018d,_0x409d76);((_0x879068=this[_0x4a8cb4(0x43b)])==null?void 0x0:_0x879068[_0x4a8cb4(0x277)])===_0x493e2d[_0x4a8cb4(0x277)]&&((_0x32067f=this[_0x4a8cb4(0x43b)])==null?void 0x0:_0x32067f[_0x4a8cb4(0x2ad)])===_0x493e2d[_0x4a8cb4(0x2ad)]||this[_0x4a8cb4(0x2b1)][_0x4a8cb4(0x137)](_0x217bfd=>{const _0x4f57d8=_0x4a8cb4;_0x217bfd[_0x4f57d8(0x207)](_0x493e2d);});},0x64));});}[_0x2da18b(0x3c6)](_0x44c563,_0x446257){const _0x365ffb=_0x2da18b;var _0x297f8e;const _0x45bf84=(_0x297f8e=this[_0x365ffb(0x348)][_0x365ffb(0x339)]())==null?void 0x0:_0x297f8e[_0x365ffb(0x241)];if(!_0x45bf84)return;const _0x157a69=this[_0x365ffb(0x12e)]();if(!_0x157a69)return;this[_0x365ffb(0x2b1)][_0x365ffb(0x137)](_0x11b94d=>{_0x11b94d['makeDirty']();});const {scene:_0x325387}=_0x157a69,_0x1fdf10=zr(Array['from'](_0x446257['values']()))[_0x365ffb(0x2eb)](_0x58aa1a=>{const {color:_0x80cb60,range:_0x4b99ed,name:_0x477b68,selection:_0x24699c,sheetID:_0x344b6b}=_0x58aa1a,{startColumn:_0x5e219c,startRow:_0x1827df,endColumn:_0x30146b,endRow:_0x2ec232}=_0x4b99ed,_0x5398e0=_0x364cb7(_0x1827df,_0x5e219c,_0x325387,_0x45bf84),_0x50a81a=_0x364cb7(_0x2ec232,_0x30146b,_0x325387,_0x45bf84),{columnHeaderHeightAndMarginTop:_0xcdc5cc}=_0x45bf84,{startX:_0x25d731,startY:_0xf24d35}=_0x5398e0,{endX:_0x2eee43,endY:_0x2bde3e}=_0x50a81a,_0x196465=_0x2eee43-_0x25d731,_0x17ff7b=_0x2bde3e-_0xf24d35,_0x4b2130={'labelPosition':_0xf24d35-_0xcdc5cc>=Le?'top':'bottom','sheetID':_0x344b6b,'range':_0x4b99ed,'color':_0x80cb60,'name':_0x477b68,'selection':_0x24699c,'left':_0x25d731,'top':_0xf24d35,'width':_0x196465,'height':_0x17ff7b,'evented':!0x1,'zIndex':qr};return new Yr(_0x477b68,_0x4b2130);});_0x325387[_0x365ffb(0x1ae)](_0x1fdf10,Wr),this[_0x365ffb(0x2b1)]=new Set(_0x1fdf10);}[_0x2da18b(0x482)](){const _0x1c4945=_0x2da18b;var _0x2315e4;(_0x2315e4=this['_cursors'])==null||_0x2315e4[_0x1c4945(0x137)](_0x1309dd=>_0x1309dd[_0x1c4945(0x18e)]());}['_getSheetObject'](){const _0x5e3f61=_0x2da18b;return _0x41bfa0(this[_0x5e3f61(0x3b4)]['unit'],this['_context']);}};wt=Jr([mt(0x1,_0x24691e(_0x17b47d)),mt(0x2,_0x24691e(pe)),mt(0x3,_0x24691e(_0x5074d3))],wt);function zr(_0x2529d4){const _0x9318c=_0x2da18b,_0x3cb0ff=new Map();return _0x2529d4['forEach'](_0xc0c255=>{const _0x29c232=_0x44b4;if(_0x3cb0ff[_0x29c232(0x141)](_0xc0c255[_0x29c232(0x2b0)])){const _0x40c8a4=_0x3cb0ff[_0x29c232(0x2dd)](_0xc0c255[_0x29c232(0x2b0)]);_0x40c8a4['name']+=',\x20'+_0xc0c255[_0x29c232(0x45c)];}else _0x3cb0ff[_0x29c232(0x276)](_0xc0c255['selection'],_0xc0c255);}),Array[_0x9318c(0x372)](_0x3cb0ff[_0x9318c(0x342)]());}var N=function(){const _0x5c7ca6=_0x2da18b;return N=Object[_0x5c7ca6(0x1d0)]||function(_0x144434){const _0x1a99be=_0x5c7ca6;for(var _0x2fa9ab,_0x239b2f=0x1,_0x1b94a5=arguments['length'];_0x239b2f<_0x1b94a5;_0x239b2f++){_0x2fa9ab=arguments[_0x239b2f];for(var _0x53c768 in _0x2fa9ab)Object[_0x1a99be(0x1ba)][_0x1a99be(0x48b)][_0x1a99be(0x19e)](_0x2fa9ab,_0x53c768)&&(_0x144434[_0x53c768]=_0x2fa9ab[_0x53c768]);}return _0x144434;},N[_0x5c7ca6(0x3f6)](this,arguments);},Zr=function(_0xa1c8f8,_0xdfb39b){const _0x2736b6=_0x2da18b;var _0x1f63c0={};for(var _0x34fe43 in _0xa1c8f8)Object['prototype'][_0x2736b6(0x48b)]['call'](_0xa1c8f8,_0x34fe43)&&_0xdfb39b[_0x2736b6(0x2ed)](_0x34fe43)<0x0&&(_0x1f63c0[_0x34fe43]=_0xa1c8f8[_0x34fe43]);if(_0xa1c8f8!=null&&typeof Object['getOwnPropertySymbols']==_0x2736b6(0x275)){for(var _0x2d6c6b=0x0,_0x34fe43=Object['getOwnPropertySymbols'](_0xa1c8f8);_0x2d6c6b<_0x34fe43[_0x2736b6(0x1a8)];_0x2d6c6b++)_0xdfb39b[_0x2736b6(0x2ed)](_0x34fe43[_0x2d6c6b])<0x0&&Object[_0x2736b6(0x1ba)]['propertyIsEnumerable'][_0x2736b6(0x19e)](_0xa1c8f8,_0x34fe43[_0x2d6c6b])&&(_0x1f63c0[_0x34fe43[_0x2d6c6b]]=_0xa1c8f8[_0x34fe43[_0x2d6c6b]]);}return _0x1f63c0;},Wt=_0x14ba75(function(_0x5bb23e,_0x59b958){const _0x3ba100=_0x2da18b;var _0x5ce6d4=_0x5bb23e[_0x3ba100(0x3d5)],_0xef4fef=_0x5bb23e['id'],_0x381ab8=_0x5bb23e[_0x3ba100(0x153)],_0x3b3733=_0x5bb23e['extend'],_0x561a85=Zr(_0x5bb23e,[_0x3ba100(0x3d5),'id',_0x3ba100(0x153),_0x3ba100(0x1c3)]),_0x13f0c0='univerjs-icon\x20univerjs-icon-'['concat'](_0xef4fef,'\x20')[_0x3ba100(0x224)](_0x381ab8||'')['trim'](),_0x1548ff=_0xe64086('_'['concat'](to()));return ks(_0x5ce6d4,''[_0x3ba100(0x224)](_0xef4fef),{'defIds':_0x5ce6d4[_0x3ba100(0x1dd)],'idSuffix':_0x1548ff[_0x3ba100(0x3c3)]},N({'ref':_0x59b958,'className':_0x13f0c0},_0x561a85),_0x3b3733);});function ks(_0x417918,_0x3a23af,_0x3b3c35,_0xea1e10,_0x320500){const _0x450ca5=_0x2da18b;return _0x1d57c6(_0x417918[_0x450ca5(0x390)],N(N({'key':_0x3a23af},Qr(_0x417918,_0x3b3c35,_0x320500)),_0xea1e10),(eo(_0x417918,_0x3b3c35)[_0x450ca5(0x47a)]||[])[_0x450ca5(0x2eb)](function(_0x1fee2f,_0x34ebf3){const _0x2479f7=_0x450ca5;return ks(_0x1fee2f,''['concat'](_0x3a23af,'-')[_0x2479f7(0x224)](_0x417918[_0x2479f7(0x390)],'-')[_0x2479f7(0x224)](_0x34ebf3),_0x3b3c35,void 0x0,_0x320500);}));}function Qr(_0x330cff,_0x337a3f,_0x2ed27e){const _0x9fdf53=_0x2da18b;var _0x202bcf=N({},_0x330cff['attrs']);_0x2ed27e!=null&&_0x2ed27e[_0x9fdf53(0x19d)]&&_0x202bcf[_0x9fdf53(0x46f)]==='colorChannel1'&&(_0x202bcf['fill']=_0x2ed27e[_0x9fdf53(0x19d)]);var _0x4b1fd2=_0x337a3f[_0x9fdf53(0x1dd)];return!_0x4b1fd2||_0x4b1fd2['length']===0x0||(_0x330cff[_0x9fdf53(0x390)]==='use'&&_0x202bcf['xlink:href']&&(_0x202bcf[_0x9fdf53(0x3b3)]=_0x202bcf[_0x9fdf53(0x3b3)]+_0x337a3f['idSuffix']),Object[_0x9fdf53(0x284)](_0x202bcf)[_0x9fdf53(0x137)](function(_0x544801){const _0x592f89=_0x9fdf53;var _0x5490fa=_0x544801[0x0],_0x286439=_0x544801[0x1];typeof _0x286439==_0x592f89(0x2ab)&&(_0x202bcf[_0x5490fa]=_0x286439[_0x592f89(0x136)](/url\(#(.*)\)/,_0x592f89(0x246)[_0x592f89(0x224)](_0x337a3f['idSuffix'],')')));})),_0x202bcf;}function eo(_0x1f691f,_0xb3fc52){const _0x530a2d=_0x2da18b;var _0x45a651,_0x4c78dd=_0xb3fc52[_0x530a2d(0x1dd)];return!_0x4c78dd||_0x4c78dd[_0x530a2d(0x1a8)]===0x0?_0x1f691f:_0x1f691f[_0x530a2d(0x390)]===_0x530a2d(0x274)&&(!((_0x45a651=_0x1f691f[_0x530a2d(0x47a)])===null||_0x45a651===void 0x0)&&_0x45a651[_0x530a2d(0x1a8)])?N(N({},_0x1f691f),{'children':_0x1f691f['children'][_0x530a2d(0x2eb)](function(_0x22e307){const _0x5ac507=_0x530a2d;return typeof _0x22e307[_0x5ac507(0x29a)]['id']==_0x5ac507(0x2ab)&&_0x4c78dd&&_0x4c78dd['indexOf'](_0x22e307[_0x5ac507(0x29a)]['id'])>-0x1?N(N({},_0x22e307),{'attrs':N(N({},_0x22e307[_0x5ac507(0x29a)]),{'id':_0x22e307[_0x5ac507(0x29a)]['id']+_0xb3fc52[_0x5ac507(0x3be)]})}):_0x22e307;})}):_0x1f691f;}function to(){return Math['random']()['toString'](0x24)['substring'](0x2,0x8);}Wt[_0x2da18b(0x225)]=_0x2da18b(0x329);var so={'tag':_0x2da18b(0x290),'attrs':{'fill':_0x2da18b(0x483),'viewBox':'0\x200\x2016\x2016','width':_0x2da18b(0x369),'height':_0x2da18b(0x369)},'children':[{'tag':'g','attrs':{'clipPath':_0x2da18b(0x3e2)},'children':[{'tag':_0x2da18b(0x1d1),'attrs':{'stroke':_0x2da18b(0x22d),'d':_0x2da18b(0x1c0),'strokeLinecap':_0x2da18b(0x34a),'strokeLinejoin':_0x2da18b(0x34a),'strokeWidth':1.2}}]},{'tag':_0x2da18b(0x274),'attrs':{},'children':[{'tag':_0x2da18b(0x312),'attrs':{'id':_0x2da18b(0x46e)},'children':[{'tag':_0x2da18b(0x1d1),'attrs':{'fill':_0x2da18b(0x3b5),'d':_0x2da18b(0x226)}}]}]}],'defIds':[_0x2da18b(0x46e)]},Bs=_0x14ba75(function(_0x52e876,_0x488241){const _0xb370d2=_0x2da18b;return _0x1d57c6(Wt,Object[_0xb370d2(0x1d0)]({},_0x52e876,{'id':_0xb370d2(0x1de),'ref':_0x488241,'icon':so}));});Bs['displayName']=_0x2da18b(0x299);var io={'tag':_0x2da18b(0x290),'attrs':{'fill':_0x2da18b(0x483),'viewBox':_0x2da18b(0x3d2),'width':'1em','height':_0x2da18b(0x369)},'children':[{'tag':'g','attrs':{'clipPath':_0x2da18b(0x23e)},'children':[{'tag':_0x2da18b(0x1d1),'attrs':{'stroke':_0x2da18b(0x22d),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x2da18b(0x34a),'strokeLinejoin':_0x2da18b(0x34a),'strokeWidth':1.2}}]},{'tag':_0x2da18b(0x274),'attrs':{},'children':[{'tag':_0x2da18b(0x312),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x2da18b(0x1d1),'attrs':{'fill':'#fff','d':'M0\x200H16V16H0z','transform':_0x2da18b(0x1cb)}}]}]}],'defIds':[_0x2da18b(0x196)]},Vs=_0x14ba75(function(_0x2fbe11,_0x544621){return _0x1d57c6(Wt,Object['assign']({},_0x2fbe11,{'id':'on-line-single','ref':_0x544621,'icon':io}));});Vs[_0x2da18b(0x225)]=_0x2da18b(0x1d2);function Fs(_0x113817){const _0x1c77c3=_0x2da18b;var _0x2935d5,_0xc160e1,_0x4abfdd='';if(typeof _0x113817==_0x1c77c3(0x2ab)||typeof _0x113817==_0x1c77c3(0x46b))_0x4abfdd+=_0x113817;else{if(typeof _0x113817==_0x1c77c3(0x25e)){if(Array[_0x1c77c3(0x1f8)](_0x113817)){var _0x1ed988=_0x113817[_0x1c77c3(0x1a8)];for(_0x2935d5=0x0;_0x2935d5<_0x1ed988;_0x2935d5++)_0x113817[_0x2935d5]&&(_0xc160e1=Fs(_0x113817[_0x2935d5]))&&(_0x4abfdd&&(_0x4abfdd+='\x20'),_0x4abfdd+=_0xc160e1);}else{for(_0xc160e1 in _0x113817)_0x113817[_0xc160e1]&&(_0x4abfdd&&(_0x4abfdd+='\x20'),_0x4abfdd+=_0xc160e1);}}}return _0x4abfdd;}function no(){for(var _0x7ff285,_0x3f87a0,_0x313fbb=0x0,_0x4381b3='',_0x4f8dac=arguments['length'];_0x313fbb<_0x4f8dac;_0x313fbb++)(_0x7ff285=arguments[_0x313fbb])&&(_0x3f87a0=Fs(_0x7ff285))&&(_0x4381b3&&(_0x4381b3+='\x20'),_0x4381b3+=_0x3f87a0);return _0x4381b3;}const ro=_0x2da18b(0x3ed),oo=_0x2da18b(0x313),ao=_0x2da18b(0x31d),co=_0x2da18b(0x145),ho=_0x2da18b(0x2d6),we={'onlineStatusIcon':ro,'onlineStatusTitle':oo,'onlineStatus':ao,'online':co,'offline':ho};function lo(_0x525c85){const _0x584cb2=_0x2da18b;switch(_0x525c85){case w[_0x584cb2(0x2e9)]:return _0x584cb2(0x2df);case w['CONFLICT']:return'collabStatus.conflict';case w[_0x584cb2(0x263)]:return _0x584cb2(0x334);case w[_0x584cb2(0x408)]:return _0x584cb2(0x143);case w[_0x584cb2(0x18c)]:case w[_0x584cb2(0x435)]:case w['AWAITING_WITH_PENDING']:return _0x584cb2(0x213);case w[_0x584cb2(0x258)]:return _0x584cb2(0x2a1);}}function _o(_0x5c8a42){const _0x55b8f7=_0x2da18b,{status$:_0x5dca2a}=_0x5c8a42,_0x52de21=_0x3636b2(_0x5dca2a,w['NOT_COLLAB']),_0x274c00=_0x2bb079(_0x1695f3),_0x33c8d8=_0x2bb079(ce),_0x1ed6c4=_0x52de21!==w['OFFLINE'],_0x1fdbc5=_0x274c00['t'](lo(_0x52de21)),_0x421213=no(we[_0x55b8f7(0x45d)],{[we[_0x55b8f7(0x25a)]]:_0x1ed6c4,[we[_0x55b8f7(0x2c1)]]:!_0x1ed6c4}),_0x53e2e6=_0x1ed6c4?_0x1e38e7['createElement'](Vs,null):_0x1e38e7[_0x55b8f7(0x389)](Bs,null),_0x158f22=_0x54fd35(()=>{_0x1ed6c4||_0x33c8d8['reconnect']();},[_0x1ed6c4,_0x33c8d8]);function _0x29252b(){const _0x4e9967=_0x55b8f7;return _0x1e38e7[_0x4e9967(0x389)](_0x4e9967(0x383),{'className':_0x421213,'onClick':_0x158f22},_0x1e38e7[_0x4e9967(0x389)](_0x4e9967(0x383),{'className':we[_0x4e9967(0x3f2)]},_0x53e2e6),_0x1e38e7[_0x4e9967(0x389)](_0x4e9967(0x383),{'className':we[_0x4e9967(0x30f)]},_0x1fdbc5));}return _0x1ed6c4?_0x29252b():_0x1e38e7[_0x55b8f7(0x389)](_0xc9e9c9,{'title':_0x274c00['t'](_0x55b8f7(0x1f1))},_0x29252b());}var uo=Object[_0x2da18b(0x151)],fo=Object['getOwnPropertyDescriptor'],mo=(_0x1235bc,_0x5122c8,_0xd50bd7,_0x2bf1ad)=>{const _0x11d83f=_0x2da18b;for(var _0x397398=_0x2bf1ad>0x1?void 0x0:_0x2bf1ad?fo(_0x5122c8,_0xd50bd7):_0x5122c8,_0x4b0cb2=_0x1235bc[_0x11d83f(0x1a8)]-0x1,_0x36f623;_0x4b0cb2>=0x0;_0x4b0cb2--)(_0x36f623=_0x1235bc[_0x4b0cb2])&&(_0x397398=(_0x2bf1ad?_0x36f623(_0x5122c8,_0xd50bd7,_0x397398):_0x36f623(_0x397398))||_0x397398);return _0x2bf1ad&&_0x397398&&uo(_0x5122c8,_0xd50bd7,_0x397398),_0x397398;},He=(_0x355d51,_0x1e07a9)=>(_0x557248,_0x1deb5d)=>_0x1e07a9(_0x557248,_0x1deb5d,_0x355d51);let Ue=class extends _0x3bc0d2{constructor(_0x4b0908,_0x431a2f,_0x11c75f,_0x127cad){const _0x95d188=_0x2da18b;super(),l(this,_0x95d188(0x155),new _0x295ce3(w[_0x95d188(0x408)])),(this[_0x95d188(0x406)]=_0x4b0908,this[_0x95d188(0x209)]=_0x431a2f,this['_injector']=_0x11c75f,this[_0x95d188(0x282)]=_0x127cad,this[_0x95d188(0x2bb)](),this[_0x95d188(0x444)]());}[_0x2da18b(0x444)](){const _0x1ceb29=_0x2da18b;this[_0x1ceb29(0x206)](this[_0x1ceb29(0x406)]['focused$'][_0x1ceb29(0x29b)](_0xe06e10(()=>{const _0x13a589=_0x1ceb29,_0x598d40=this[_0x13a589(0x406)]['getFocusedUnit']();return _0x598d40?this[_0x13a589(0x282)][_0x13a589(0x1f4)](_0x598d40[_0x13a589(0x3d4)]()):_0x2576f8(null);}),_0xe06e10(_0x1879ce=>_0x1879ce?_0x1879ce[_0x1ceb29(0x271)]:_0x2576f8(w[_0x1ceb29(0x408)])))[_0x1ceb29(0x146)](_0x435c8c=>{const _0x4943d4=_0x1ceb29;this[_0x4943d4(0x155)][_0x4943d4(0x33a)](_0x435c8c);}));}[_0x2da18b(0x2bb)](){const _0x12ac0a=_0x2da18b;this['disposeWithMe'](this[_0x12ac0a(0x209)][_0x12ac0a(0x2b5)](_0x23ebca['HEADER_MENU'],()=>_0x35553f(go({'status$':this[_0x12ac0a(0x155)]['asObservable']()}),this[_0x12ac0a(0x272)])));}};Ue=mo([He(0x0,_0x4af863),He(0x1,_0x8ec652),He(0x2,_0x24691e(_0x129c7a)),He(0x3,_0x24691e(Ae))],Ue);function go(_0x40b28c){const {status$:_0x36649c}=_0x40b28c;return function(){const _0x55cede=_0x44b4;return _0x1e38e7[_0x55cede(0x389)](_o,{'status$':_0x36649c});};}const Ws=_0x4f53b0(_0x2da18b(0x2ef));var So=Object['defineProperty'],po=Object[_0x2da18b(0x2b8)],vo=(_0x219500,_0x409eeb,_0x2387f2,_0x32c61e)=>{const _0x3c6568=_0x2da18b;for(var _0x386cdf=_0x32c61e>0x1?void 0x0:_0x32c61e?po(_0x409eeb,_0x2387f2):_0x409eeb,_0x818da3=_0x219500[_0x3c6568(0x1a8)]-0x1,_0x2fc36c;_0x818da3>=0x0;_0x818da3--)(_0x2fc36c=_0x219500[_0x818da3])&&(_0x386cdf=(_0x32c61e?_0x2fc36c(_0x409eeb,_0x2387f2,_0x386cdf):_0x2fc36c(_0x386cdf))||_0x386cdf);return _0x32c61e&&_0x386cdf&&So(_0x409eeb,_0x2387f2,_0x386cdf),_0x386cdf;},me=(_0x43869b,_0x5f0382)=>(_0x23fc4d,_0x5c591b)=>_0x5f0382(_0x23fc4d,_0x5c591b,_0x43869b);let qe=class extends _0x13b3a6{constructor(_0x46014f,_0x5df42c,_0x316540,_0x36781b,_0x296d05,_0x47be93){const _0x1cd19b=_0x2da18b;super(),this['_urlService']=_0x46014f,this['_logService']=_0x5df42c,this['_commandService']=_0x316540,this[_0x1cd19b(0x1e1)]=_0x36781b,this[_0x1cd19b(0x301)]=_0x296d05,_0x47be93?_0x47be93==null||_0x47be93[_0x1cd19b(0x25f)]()['then'](()=>this[_0x1cd19b(0x1c5)]()):(this['_logService'][_0x1cd19b(0x2e0)](_0x1cd19b(0x351),_0x1cd19b(0x1b7)),this['_init']());}async[_0x2da18b(0x1c5)](){const _0x49c8a5=_0x2da18b,_0x2d44fb=this['_urlService'][_0x49c8a5(0x186)]('unit'),_0xca1f50=this[_0x49c8a5(0x33d)]['getParam'](_0x49c8a5(0x3f5));if(!_0x2d44fb||!_0xca1f50){this['_logService'][_0x49c8a5(0x2e0)](_0x49c8a5(0x351),_0x49c8a5(0x1e9));return;}switch(Number(_0xca1f50)){case H[_0x49c8a5(0x2d4)]:{const _0x12ccd7=await this[_0x49c8a5(0x35d)](_0x2d44fb);this[_0x49c8a5(0x1aa)](_0x12ccd7);break;}case H['UNIVER_DOC']:{await this['_loadDoc'](_0x2d44fb);break;}default:{this['_logService'][_0x49c8a5(0x490)](_0x49c8a5(0x351),_0x49c8a5(0x1b9));break;}}}async['_setupSubUnitSync'](_0x367fab){const _0x469715=_0x2da18b;await this[_0x469715(0x37d)](_0x367fab),_0x367fab[_0x469715(0x37f)][_0x469715(0x29b)](_0x1cea38(this['dispose$']))[_0x469715(0x146)](_0x594ae7=>{const _0x55714f=_0x469715;_0x594ae7&&this[_0x55714f(0x3e7)](_0x594ae7);}),this['_urlService'][_0x469715(0x44d)]['pipe'](_0x1cea38(this[_0x469715(0x3ab)]))['subscribe'](()=>this[_0x469715(0x37d)](_0x367fab));}['_updateURLWithCurrentState'](_0x1fbb76,_0x5e748f=!0x1){const _0x31f440=_0x2da18b,_0x77dacf=this['_urlService'][_0x31f440(0x186)](_0x31f440(0x177));_0x1fbb76[_0x31f440(0x326)]()!==_0x77dacf&&this[_0x31f440(0x33d)]['setParam']('subunit',_0x1fbb76[_0x31f440(0x326)](),_0x5e748f);}async['_updateSubUnitFromURLParams'](_0x55dd99){const _0x5c285a=_0x2da18b;var _0x175ee9;const _0x1e069c=this[_0x5c285a(0x33d)][_0x5c285a(0x186)]('subunit');if(!_0x1e069c||!_0x55dd99['getSheetBySheetId'](_0x1e069c)){const _0xa8c053=_0x55dd99[_0x5c285a(0x461)]()[0x0],_0x48ee35=_0x55dd99[_0x5c285a(0x2d9)](_0xa8c053);if(!_0x48ee35)return;this['_updateURLWithCurrentState'](_0x48ee35,!0x0),await this[_0x5c285a(0x457)]['executeCommand'](_0x390cc8['id'],{'unitId':_0x55dd99[_0x5c285a(0x3d4)](),'subUnitId':_0xa8c053});return;}((_0x175ee9=_0x55dd99['getActiveSheet']())==null?void 0x0:_0x175ee9[_0x5c285a(0x326)]())!==_0x1e069c&&await this[_0x5c285a(0x457)][_0x5c285a(0x22a)](_0x390cc8['id'],{'unitId':_0x55dd99[_0x5c285a(0x3d4)](),'subUnitId':_0x1e069c});}async[_0x2da18b(0x35d)](_0x441963){const _0x21276e=_0x2da18b;let _0x34711d=0x0;const _0x5124a=await this[_0x21276e(0x1e1)][_0x21276e(0x1f0)](_0x441963);return _0x5124a&&(_0x5124a['awaitingChangeset']||_0x5124a['mutations'][_0x21276e(0x1a8)]!==0x0)&&(_0x34711d=_0x5124a['rev']),_0x34711d===0x0&&this[_0x21276e(0x356)]['debug']('[DataLoaderController]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x21276e(0x301)][_0x21276e(0x147)](_0x441963,_0x34711d);}async['_loadDoc'](_0xf21324){const _0x4bc0e7=_0x2da18b;let _0x12d3d3=0x0;const _0x87e937=await this[_0x4bc0e7(0x1e1)][_0x4bc0e7(0x1f0)](_0xf21324);return _0x87e937&&(_0x87e937[_0x4bc0e7(0x279)]||_0x87e937[_0x4bc0e7(0x154)][_0x4bc0e7(0x1a8)]!==0x0)&&(_0x12d3d3=_0x87e937['rev']),_0x12d3d3===0x0&&this[_0x4bc0e7(0x356)][_0x4bc0e7(0x2e0)](_0x4bc0e7(0x351),_0x4bc0e7(0x44c)),this[_0x4bc0e7(0x301)][_0x4bc0e7(0x222)](_0xf21324,_0x12d3d3);}};qe=vo([me(0x0,Ws),me(0x1,_0x16c619),me(0x2,_0x18280b),me(0x3,_0x24691e(D)),me(0x4,_0x24691e(_0x916a77)),me(0x5,_0x1be607(_0x5658b1))],qe);var Io=Object[_0x2da18b(0x151)],Eo=Object[_0x2da18b(0x2b8)],Co=(_0x3e544a,_0x205ce1,_0x346cdf,_0x1885d1)=>{for(var _0xbe1812=_0x1885d1>0x1?void 0x0:_0x1885d1?Eo(_0x205ce1,_0x346cdf):_0x205ce1,_0x123491=_0x3e544a['length']-0x1,_0x13b70e;_0x123491>=0x0;_0x123491--)(_0x13b70e=_0x3e544a[_0x123491])&&(_0xbe1812=(_0x1885d1?_0x13b70e(_0x205ce1,_0x346cdf,_0xbe1812):_0x13b70e(_0xbe1812))||_0xbe1812);return _0x1885d1&&_0xbe1812&&Io(_0x205ce1,_0x346cdf,_0xbe1812),_0xbe1812;},fs=(_0x22e2fb,_0x53827b)=>(_0x2d4225,_0x43e6bd)=>_0x53827b(_0x2d4225,_0x43e6bd,_0x22e2fb);const bo=_0x2da18b(0x16c),To=_0x2da18b(0x375);let ze=class extends _0x3bc0d2{constructor(_0x3a7249,_0x4fe11f){const _0x2204dd=_0x2da18b;super(),this[_0x2204dd(0x406)]=_0x3a7249,this['_configService']=_0x4fe11f,this[_0x2204dd(0x1c5)]();}[_0x2da18b(0x1c5)](){const _0x4987ad=_0x2da18b;this[_0x4987ad(0x206)](this[_0x4987ad(0x406)][_0x4987ad(0x3dd)][_0x4987ad(0x146)](()=>{const _0x293825=_0x4987ad;var _0x3e3eae;const _0x1a33a3=this[_0x293825(0x406)]['getFocusedUnit']();let _0x50f502=(_0x3e3eae=this['_configService'][_0x293825(0x1bb)](bo))!=null?_0x3e3eae:To;_0x1a33a3 instanceof _0x40cd22&&(_0x50f502=_0x1a33a3['name']),document['title']=_0x50f502;}));}};ze=Co([fs(0x0,_0x4af863),fs(0x1,_0x4b95b7)],ze);var Ro=Object['defineProperty'],Oo=Object[_0x2da18b(0x2b8)],Do=(_0x45271a,_0x544272,_0x38e01d,_0x4770f8)=>{const _0x535f20=_0x2da18b;for(var _0x32ac79=_0x4770f8>0x1?void 0x0:_0x4770f8?Oo(_0x544272,_0x38e01d):_0x544272,_0x4136b8=_0x45271a[_0x535f20(0x1a8)]-0x1,_0x5e6562;_0x4136b8>=0x0;_0x4136b8--)(_0x5e6562=_0x45271a[_0x4136b8])&&(_0x32ac79=(_0x4770f8?_0x5e6562(_0x544272,_0x38e01d,_0x32ac79):_0x5e6562(_0x32ac79))||_0x32ac79);return _0x4770f8&&_0x32ac79&&Ro(_0x544272,_0x38e01d,_0x32ac79),_0x32ac79;},gt=(_0x1d3637,_0x20f9be)=>(_0x4307df,_0x2046db)=>_0x20f9be(_0x4307df,_0x2046db,_0x1d3637);let Ze=class{constructor(_0x18c189,_0x21c7d6,_0x440768){const _0x455d6e=_0x2da18b;this[_0x455d6e(0x205)]=_0x18c189,this[_0x455d6e(0x323)]=_0x21c7d6,this[_0x455d6e(0x27a)]=_0x440768,this[_0x455d6e(0x266)]();}[_0x2da18b(0x266)](){const _0x48ea38=_0x2da18b;this[_0x48ea38(0x323)][_0x48ea38(0x47c)]({'priority':0x1,'interceptor':(_0x4109e2,_0x176f6f)=>_0x176f6f(_0x4109e2)['pipe'](_0x3e80de(async _0x216226=>{const _0x458ad6=_0x48ea38,_0x81bef5=_0x216226;if(_0x81bef5[_0x458ad6(0x31a)]===0x191&&window[_0x458ad6(0x3e4)](this['localeService']['t']('auth.needGotoLoginAlert'))){const _0x37d61b=window[_0x458ad6(0x20e)](window[_0x458ad6(0x370)][_0x458ad6(0x305)]);window[_0x458ad6(0x370)][_0x458ad6(0x305)]=this[_0x458ad6(0x366)]()+_0x458ad6(0x34c)+_0x37d61b;}return _0x81bef5;}))});}[_0x2da18b(0x366)](){const _0x19175b=_0x2da18b;var _0x8b4d25,_0x2f3a84;const _0x886f4=this[_0x19175b(0x205)]['getConfig'](wn),_0x328134=this[_0x19175b(0x205)][_0x19175b(0x1bb)](L);return(_0x2f3a84=(_0x8b4d25=_0x328134==null?void 0x0:_0x328134[_0x19175b(0x204)])!=null?_0x8b4d25:_0x886f4)!=null?_0x2f3a84:Pn;}};Ze=Do([gt(0x0,_0x4b95b7),gt(0x1,_0x24691e(_0xa0ce64)),gt(0x2,_0x24691e(_0x1695f3))],Ze);var wo=Object[_0x2da18b(0x151)],Po=Object[_0x2da18b(0x2b8)],yo=(_0x355449,_0x5575a5,_0x22f8ad,_0x2860c4)=>{for(var _0x1f4cc8=_0x2860c4>0x1?void 0x0:_0x2860c4?Po(_0x5575a5,_0x22f8ad):_0x5575a5,_0x11631f=_0x355449['length']-0x1,_0x4df5d2;_0x11631f>=0x0;_0x11631f--)(_0x4df5d2=_0x355449[_0x11631f])&&(_0x1f4cc8=(_0x2860c4?_0x4df5d2(_0x5575a5,_0x22f8ad,_0x1f4cc8):_0x4df5d2(_0x1f4cc8))||_0x1f4cc8);return _0x2860c4&&_0x1f4cc8&&wo(_0x5575a5,_0x22f8ad,_0x1f4cc8),_0x1f4cc8;},ms=(_0x57f6fc,_0x32f4ba)=>(_0xcf8871,_0x5e06ce)=>_0x32f4ba(_0xcf8871,_0x5e06ce,_0x57f6fc);const No=_0x2da18b(0x254),Uo=_0x2da18b(0x371);let Pt=class extends _0x3bc0d2{constructor(_0x2d5650,_0x4241b4){const _0x380bbb=_0x2da18b;super(),this[_0x380bbb(0x36d)]=_0x2d5650,this['_configService']=_0x4241b4,this[_0x380bbb(0x170)]();}[_0x2da18b(0x170)](){const _0x216eef=_0x2da18b,_0x4f960b=this;this['disposeWithMe'](this['_HTTPService'][_0x216eef(0x47c)]({'priority':0x3e7,'interceptor':_0x618fae({'isMatch'(_0x335034){const _0x1fb38d=_0x216eef;var _0x422e75;if(_0x335034['method']==='POST'&&((_0x422e75=_0x335034[_0x1fb38d(0x2d1)])!=null&&_0x422e75[_0x1fb38d(0x318)])){const {objectID:_0x1fef63,objectType:_0x1032a4}=_0x335034['requestParams'][_0x1fb38d(0x318)]||{};if(!_0x1fef63||_0x1032a4===void 0x0)return!0x1;const _0x752254=_0x4f960b[_0x1fb38d(0x3b0)]()+'/'+_0x1032a4+_0x1fb38d(0x3e1)+_0x1fef63+_0x1fb38d(0x3c9);if(_0x335034[_0x1fb38d(0x250)]===_0x752254)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x3f393d){const _0x585872=_0x216eef;var _0x40d4d8;return(_0x40d4d8=_0x3f393d[_0x585872(0x2d1)])==null?void 0x0:_0x40d4d8[_0x585872(0x318)];},'mergeParamsToRequest'(_0x55c39e,_0x14e090){const _0xde8a4c=_0x216eef,_0x41ac7d=_0x4f960b[_0xde8a4c(0x3b0)]()+'/-/object/-/batch_allowed',_0x256d55=_0x55c39e['reduce']((_0x15a094,_0x5e5f9e)=>{const _0x3e7dc8=_0xde8a4c,{unitID:_0x3d6dbc,objectID:_0x2dab00,objectType:_0x39df98,actions:_0x2d576d}=_0x5e5f9e;return _0x15a094[_0x3d6dbc]||(_0x15a094[_0x3d6dbc]={}),_0x15a094[_0x3d6dbc][_0x2dab00]||(_0x15a094[_0x3d6dbc][_0x2dab00]={'objectID':_0x2dab00,'objectType':_0x39df98,'actions':[]}),_0x15a094[_0x3d6dbc][_0x2dab00][_0x3e7dc8(0x2d5)][_0x3e7dc8(0x46c)](..._0x2d576d),_0x15a094;},{}),_0x25ae1e=[];for(const _0x1d3f2b in _0x256d55)for(const _0x29781b in _0x256d55[_0x1d3f2b]){const {actions:_0x2c0be1,objectType:_0x20d616}=_0x256d55[_0x1d3f2b][_0x29781b],_0x46af7a=[...new Set(_0x2c0be1)];_0x25ae1e[_0xde8a4c(0x46c)]({'unitID':_0x1d3f2b,'objectID':_0x29781b,'objectType':_0x20d616,'actions':_0x46af7a});}return new _0x4e3080(_0xde8a4c(0x303),_0x41ac7d,{'headers':_0x14e090[_0xde8a4c(0x2d0)],'withCredentials':_0x14e090[_0xde8a4c(0x422)],'responseType':_0x14e090[_0xde8a4c(0x218)],'body':{'requests':_0x25ae1e}});}},{'distributeResult'(_0x58811a,_0xbe1f45){const _0x15e8a2=_0x216eef,{objectActions:_0x3622f1}=_0x58811a;return _0xbe1f45[_0x15e8a2(0x2eb)](_0x5858ba=>{const _0xe6d7f=_0x15e8a2,{unitID:_0x38dd96,objectID:_0x592f8e,actions:_0x1f20ff}=_0x5858ba,_0x134265=_0x3622f1[_0xe6d7f(0x322)](_0x32e06d=>_0x32e06d[_0xe6d7f(0x1e5)]===_0x38dd96&&_0x32e06d[_0xe6d7f(0x3a1)]===_0x592f8e),_0x2af429=_0x1f20ff['map'](_0x23b653=>_0x134265==null?void 0x0:_0x134265[_0xe6d7f(0x2d5)][_0xe6d7f(0x322)](_0x37a2b5=>_0x37a2b5['action']===_0x23b653))[_0xe6d7f(0x2ee)](_0x6a7e=>!!_0x6a7e);return{'config':_0x5858ba,'result':{'actions':_0x2af429,'error':_0x58811a['error']}};});}})}));}[_0x2da18b(0x3b0)](){const _0x48cb6b=_0x2da18b;var _0x443827,_0x5e6cd5;const _0x5f34ef=this['_configService'][_0x48cb6b(0x1bb)](No),_0x5b7556=this[_0x48cb6b(0x205)][_0x48cb6b(0x1bb)](L);return(_0x5e6cd5=(_0x443827=_0x5b7556==null?void 0x0:_0x5b7556['authzUrl'])!=null?_0x443827:_0x5f34ef)!=null?_0x5e6cd5:Uo;}async[_0x2da18b(0x175)](_0x4649e9){const _0x596838=_0x2da18b,_0x3a30c8=this[_0x596838(0x3b0)]()+'/'+_0x4649e9[_0x596838(0x3cf)]+_0x596838(0x166);return(await this[_0x596838(0x36d)][_0x596838(0x41f)](_0x3a30c8,{'body':_0x4649e9}))[_0x596838(0x318)]['objectID']||'';}async[_0x2da18b(0x474)](_0x48747f){const _0x2e7aa4=_0x2da18b,_0x2d4c39=this[_0x2e7aa4(0x3b0)]()+_0x2e7aa4(0x140);return(await this['_HTTPService']['post'](_0x2d4c39,{'body':_0x48747f}))[_0x2e7aa4(0x318)][_0x2e7aa4(0x407)];}async[_0x2da18b(0x30c)](_0x3f0720){const _0x58d869=_0x2da18b,_0x277ff1=this[_0x58d869(0x3b0)]()+'/'+_0x3f0720[_0x58d869(0x3cf)]+'/object/'+_0x3f0720[_0x58d869(0x3a1)];await this['_HTTPService'][_0x58d869(0x26a)](_0x277ff1,{'body':_0x3f0720});}async[_0x2da18b(0x2e6)](_0x4d7388){const _0x539618=_0x2da18b,_0x469a5d=this[_0x539618(0x3b0)]()+'/'+_0x4d7388[_0x539618(0x3cf)]+'/object/'+_0x4d7388[_0x539618(0x3a1)]+'/allowed';return(await this[_0x539618(0x36d)]['post'](_0x469a5d,{'body':_0x4d7388}))[_0x539618(0x318)][_0x539618(0x2d5)];}async[_0x2da18b(0x1d7)](_0x403ee7){const _0x583f05=_0x2da18b,_0x18f6c0=this[_0x583f05(0x3b0)]()+'/-/object/-/batch_allowed';return(await this[_0x583f05(0x36d)][_0x583f05(0x41f)](_0x18f6c0,{'body':{'requests':_0x403ee7}}))[_0x583f05(0x318)]['objectActions'];}async['listRoles'](_0x5621f6){const _0x5c535f=_0x2da18b,_0x108f90=this[_0x5c535f(0x3b0)]()+'/'+_0x5621f6['objectType']+_0x5c535f(0x3aa),_0x3da173=await this['_HTTPService'][_0x5c535f(0x41f)](_0x108f90,{'body':_0x5621f6});return{'roles':_0x3da173[_0x5c535f(0x318)][_0x5c535f(0x30e)],'actions':_0x3da173['body'][_0x5c535f(0x2d5)]};}async['deleteCollaborator'](_0x1c2381){const _0x4ff1b1=_0x2da18b,_0x1e4050=this[_0x4ff1b1(0x3b0)]()+'/collaborator';await this[_0x4ff1b1(0x36d)][_0x4ff1b1(0x3b7)](_0x1e4050,{'params':{'collaboratorID':_0x1c2381[_0x4ff1b1(0x281)],'objectID':_0x1c2381[_0x4ff1b1(0x3a1)],'unitID':_0x1c2381['unitID']}});}async[_0x2da18b(0x219)](_0x54a8d4){const _0x17da33=_0x2da18b,_0x7159ff=this[_0x17da33(0x3b0)]()+'/collaborator';await this[_0x17da33(0x36d)][_0x17da33(0x362)](_0x7159ff,{'body':_0x54a8d4});}async[_0x2da18b(0x35c)](_0x46409f){const _0x4901cf=_0x2da18b,_0x27cbc4=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x4901cf(0x36d)][_0x4901cf(0x41f)](_0x27cbc4,{'body':_0x46409f});}async[_0x2da18b(0x45e)](_0x5a04c3){const _0x54bdc0=_0x2da18b,_0x53d9e3=this[_0x54bdc0(0x3b0)]()+_0x54bdc0(0x1e8);return(await this[_0x54bdc0(0x36d)][_0x54bdc0(0x2dd)](_0x53d9e3,{'params':{'objectID':_0x5a04c3[_0x54bdc0(0x3a1)],'unitID':_0x5a04c3['unitID']}}))['body'][_0x54bdc0(0x29f)];}async[_0x2da18b(0x1c7)](_0x1f6ca6){const _0x4a48e0=_0x2da18b,_0x593080=this[_0x4a48e0(0x3b0)]()+'/collaborator';await this[_0x4a48e0(0x36d)]['put'](_0x593080,{'body':_0x1f6ca6});}};Pt=yo([ms(0x0,_0x24691e(_0xa0ce64)),ms(0x1,_0x24691e(_0x4b95b7))],Pt);var Mo=Object[_0x2da18b(0x151)],Ao=Object[_0x2da18b(0x2b8)],Lo=(_0x518eda,_0x28fe70,_0x5bd469,_0x324698)=>{const _0x42d108=_0x2da18b;for(var _0x428204=_0x324698>0x1?void 0x0:_0x324698?Ao(_0x28fe70,_0x5bd469):_0x28fe70,_0x5d60f8=_0x518eda[_0x42d108(0x1a8)]-0x1,_0x4e54c6;_0x5d60f8>=0x0;_0x5d60f8--)(_0x4e54c6=_0x518eda[_0x5d60f8])&&(_0x428204=(_0x324698?_0x4e54c6(_0x28fe70,_0x5bd469,_0x428204):_0x4e54c6(_0x428204))||_0x428204);return _0x324698&&_0x428204&&Mo(_0x28fe70,_0x5bd469,_0x428204),_0x428204;},$o=(_0x2f43c6,_0x4f1453)=>(_0x2d32e6,_0x1d518f)=>_0x4f1453(_0x2d32e6,_0x1d518f,_0x2f43c6);let Qe=class{constructor(_0x2212d5){const _0x3d90e6=_0x2da18b;this[_0x3d90e6(0x323)]=_0x2212d5,this[_0x3d90e6(0x176)]();}[_0x2da18b(0x176)](){const _0x243c89=_0x2da18b;this[_0x243c89(0x323)][_0x243c89(0x47c)]({'interceptor':(_0x327211,_0x6dd6aa)=>{const _0x4065a2=_0x243c89,_0x306860=_0x327211[_0x4065a2(0x2d0)],_0x4e027c=_0x1c94eb();return _0x4e027c&&_0x306860[_0x4065a2(0x276)](_0x4065a2(0x12c),_0x4e027c),_0x6dd6aa(_0x327211);}});}};Qe=Lo([$o(0x0,_0x24691e(_0xa0ce64))],Qe);var jo=Object[_0x2da18b(0x151)],xo=Object[_0x2da18b(0x2b8)],Ho=(_0x327f1d,_0x374ee2,_0x59225d,_0x285b6e)=>{const _0x33832c=_0x2da18b;for(var _0x394c8f=_0x285b6e>0x1?void 0x0:_0x285b6e?xo(_0x374ee2,_0x59225d):_0x374ee2,_0xd47e75=_0x327f1d[_0x33832c(0x1a8)]-0x1,_0x4c59a2;_0xd47e75>=0x0;_0xd47e75--)(_0x4c59a2=_0x327f1d[_0xd47e75])&&(_0x394c8f=(_0x285b6e?_0x4c59a2(_0x374ee2,_0x59225d,_0x394c8f):_0x4c59a2(_0x394c8f))||_0x394c8f);return _0x285b6e&&_0x394c8f&&jo(_0x374ee2,_0x59225d,_0x394c8f),_0x394c8f;},St=(_0xfc18b8,_0x4b6f86)=>(_0x190abf,_0x271597)=>_0x4b6f86(_0x190abf,_0x271597,_0xfc18b8);const ko=['image/png',_0x2da18b(0x45a),'image/jpg',_0x2da18b(0x404),'image/bmp'],Bo=0x5*0x400*0x400,Vo='EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY',Fo=_0x2da18b(0x1d8),Wo='EXCHANGE_SIGN_URL_SERVER_URL_KEY',Go=_0x2da18b(0x332);let yt=class{constructor(_0x4ac000,_0x2f7b70,_0x437618){const _0x27aaeb=_0x2da18b;l(this,_0x27aaeb(0x139),0x0),l(this,_0x27aaeb(0x201),new _0x526cd2()),l(this,_0x27aaeb(0x341),this[_0x27aaeb(0x201)]),l(this,'_imageSourceCache',new Map()),(this[_0x27aaeb(0x323)]=_0x4ac000,this[_0x27aaeb(0x205)]=_0x2f7b70,this[_0x27aaeb(0x406)]=_0x437618);}[_0x2da18b(0x3f4)](_0x298bcf){const _0x5096a1=_0x2da18b;this[_0x5096a1(0x139)]=_0x298bcf,this['_change$']['next'](_0x298bcf);}[_0x2da18b(0x3e6)](_0x51c071,_0x1a774c){const _0x331b9d=_0x2da18b;if(_0x1a774c===_0x4dff21[_0x331b9d(0x361)]){const _0x98ba4a=new Image();return _0x98ba4a[_0x331b9d(0x486)]=_0x51c071,_0x98ba4a;}return this['_imageSourceCache'][_0x331b9d(0x2dd)](_0x51c071);}['addImageSourceCache'](_0x322649,_0x157e56,_0x3ecf10){const _0x927037=_0x2da18b;_0x157e56===_0x4dff21[_0x927037(0x361)]||_0x3ecf10==null||this[_0x927037(0x33b)][_0x927037(0x276)](_0x322649,_0x3ecf10);}async[_0x2da18b(0x181)](_0x38f228){const _0x344012=_0x2da18b;try{const _0x52b386=this[_0x344012(0x24f)](this[_0x344012(0x1d5)](),''+_0x38f228),_0x18e29d=(await this[_0x344012(0x323)][_0x344012(0x2dd)](_0x52b386))[_0x344012(0x318)];if(_0x18e29d[_0x344012(0x490)]&&_0x18e29d[_0x344012(0x490)][_0x344012(0x2ff)]===Ms['OK']){const _0x1ab53a=new URL(_0x18e29d[_0x344012(0x250)],this['_getDownloadEndpointURL']())[_0x344012(0x280)]();return Promise['resolve'](_0x1ab53a);}return Promise[_0x344012(0x39f)](_0x18e29d[_0x344012(0x490)]);}catch(_0x3b2954){return Promise['reject'](_0x3b2954);}}async['saveImage'](_0x430458){const _0x7e9e32=_0x2da18b;let _0x17ad63='';if(!ko[_0x7e9e32(0x421)](_0x430458[_0x7e9e32(0x3f5)]))return this['_decreaseWaiting'](),Promise[_0x7e9e32(0x39f)](new Error(_0x546962[_0x7e9e32(0x3ec)]));if(_0x430458[_0x7e9e32(0x1c1)]>Bo)return this[_0x7e9e32(0x424)](),Promise[_0x7e9e32(0x39f)](new Error(_0x546962[_0x7e9e32(0x1c6)]));try{const _0xaa1703=new FormData();_0xaa1703[_0x7e9e32(0x42b)](_0x7e9e32(0x2f5),_0x430458);const _0x24d259=this['_univerInstanceService']['getFocusedUnit'](),_0x357bf3=_0x24d259==null?void 0x0:_0x24d259['getUnitId']();if(!_0x357bf3)throw new Error(_0x7e9e32(0x38d));const _0x5d96e5=this['_getUploadFileURL']()+'?size='+_0x430458[_0x7e9e32(0x1c1)]['toString']()+_0x7e9e32(0x1e3)+As[_0x7e9e32(0x3b2)]+'&assign='+encodeURIComponent(_0x357bf3),_0x884896=await(await fetch(_0x5d96e5,{'method':_0x7e9e32(0x303),'body':_0xaa1703}))[_0x7e9e32(0x2c7)]();if(typeof _0x884896[_0x7e9e32(0x29e)]!=_0x7e9e32(0x2ab))return this[_0x7e9e32(0x424)](),Promise[_0x7e9e32(0x39f)](new Error(_0x546962['ERROR_IMAGE']));_0x17ad63=_0x884896[_0x7e9e32(0x29e)];}catch{return this[_0x7e9e32(0x424)](),Promise[_0x7e9e32(0x39f)](new Error(_0x546962[_0x7e9e32(0x2f3)]));}return new Promise((_0x43efdf,_0x271b7a)=>{const _0x33f2c5=_0x7e9e32,_0x5c0e22=new FileReader();_0x5c0e22[_0x33f2c5(0x2c3)](_0x430458),_0x5c0e22[_0x33f2c5(0x469)]=_0x2aca06=>{const _0x39c1a5=_0x33f2c5;var _0x16d63a;const _0x925a86=(_0x16d63a=_0x2aca06[_0x39c1a5(0x1c8)])==null?void 0x0:_0x16d63a['result'];if(_0x925a86==null){this['_decreaseWaiting'](),_0x271b7a(new Error(_0x546962['ERROR_IMAGE']));return;}const _0x84037e=_0x5ee8c7[_0x39c1a5(0x3a4)](0x6);_0x43efdf({'imageId':_0x84037e,'imageSourceType':_0x4dff21[_0x39c1a5(0x16a)],'source':_0x17ad63,'base64Cache':_0x925a86,'status':_0x546962[_0x39c1a5(0x2a7)]}),this[_0x39c1a5(0x424)]();};});}[_0x2da18b(0x1e0)](){const _0xe11b1c=_0x2da18b;var _0x29b7a9,_0x5b61d3;const _0x5f4767=this[_0xe11b1c(0x205)][_0xe11b1c(0x1bb)](Vo),_0x2fd5db=this[_0xe11b1c(0x205)][_0xe11b1c(0x1bb)](L);return(_0x5b61d3=(_0x29b7a9=_0x2fd5db==null?void 0x0:_0x2fd5db[_0xe11b1c(0x452)])!=null?_0x29b7a9:_0x5f4767)!=null?_0x5b61d3:Fo;}[_0x2da18b(0x1d5)](){const _0x3ff4ef=_0x2da18b;var _0x524db8,_0xd32751;const _0xc2b5bb=this[_0x3ff4ef(0x205)][_0x3ff4ef(0x1bb)](Wo),_0x5a2024=this[_0x3ff4ef(0x205)]['getConfig'](L);return(_0xd32751=(_0x524db8=_0x5a2024==null?void 0x0:_0x5a2024[_0x3ff4ef(0x347)])!=null?_0x524db8:_0xc2b5bb)!=null?_0xd32751:Go;}[_0x2da18b(0x400)](){const _0x47f3ee=_0x2da18b;var _0x4c177e;const _0x18a682=this[_0x47f3ee(0x205)][_0x47f3ee(0x1bb)](L);return(_0x4c177e=_0x18a682==null?void 0x0:_0x18a682['downloadEndpointUrl'])!=null?_0x4c177e:location[_0x47f3ee(0x39e)];}['_replaceFileID'](_0xf62be6,_0x27fec5){const _0x5b69cf=_0x2da18b;return _0xf62be6[_0x5b69cf(0x136)](_0x5b69cf(0x3df),_0x27fec5);}[_0x2da18b(0x424)](){const _0x1c9701=_0x2da18b;this[_0x1c9701(0x139)]-=0x1,this[_0x1c9701(0x201)][_0x1c9701(0x33a)](this[_0x1c9701(0x139)]);}};yt=Ho([St(0x0,_0x24691e(_0xa0ce64)),St(0x1,_0x4b95b7),St(0x2,_0x24691e(_0x4af863))],yt);var Yo=Object[_0x2da18b(0x151)],Ko=Object[_0x2da18b(0x2b8)],Xo=(_0x136839,_0x32c2a8,_0x2aa345,_0x14e2cb)=>{const _0x2ddcd4=_0x2da18b;for(var _0xeec393=_0x14e2cb>0x1?void 0x0:_0x14e2cb?Ko(_0x32c2a8,_0x2aa345):_0x32c2a8,_0x3e20ad=_0x136839[_0x2ddcd4(0x1a8)]-0x1,_0x61ffff;_0x3e20ad>=0x0;_0x3e20ad--)(_0x61ffff=_0x136839[_0x3e20ad])&&(_0xeec393=(_0x14e2cb?_0x61ffff(_0x32c2a8,_0x2aa345,_0xeec393):_0x61ffff(_0xeec393))||_0xeec393);return _0x14e2cb&&_0xeec393&&Yo(_0x32c2a8,_0x2aa345,_0xeec393),_0xeec393;},Pe=(_0xdc4fce,_0x29835a)=>(_0x5cdd5b,_0x1cc473)=>_0x29835a(_0x5cdd5b,_0x1cc473,_0xdc4fce);let et=class extends _0x13b3a6{constructor(_0x5657de,_0x148119,_0x4a6ba0,_0x3ba385,_0x1de660){const _0x5044fc=_0x2da18b;super(),this['_injector']=_0x5657de,this[_0x5044fc(0x406)]=_0x148119,this['_permissionService']=_0x4a6ba0,this[_0x5044fc(0x244)]=_0x3ba385,this[_0x5044fc(0x2cb)]=_0x1de660,this[_0x5044fc(0x1c2)](),this['_initCloseConn']();}['_initCloseConn'](){const _0x5de420=_0x2da18b,_0x4dcf40=async _0x15e7ee=>{const _0x1c12da=_0x44b4;(await this[_0x1c12da(0x244)][_0x1c12da(0x19f)](_0x15e7ee))[_0x1c12da(0x411)][_0x1c12da(0x29b)](_0x333799(_0x26ef49=>_0x26ef49['eventID']===_0x128ecb[_0x1c12da(0x1ce)]),_0x17e7c5(this[_0x1c12da(0x3ab)]))[_0x1c12da(0x146)](_0x6435ba=>{const _0x2180f5=_0x1c12da,_0x8d9919=_0x6435ba,{reason:_0x15cd8a}=_0x8d9919['data'];this['_injector'][_0x2180f5(0x2dd)](_0x349d24)['show']({'type':_0x35eeb1[_0x2180f5(0x15f)],'content':this['_localeService']['t'](_0x2180f5(0x20b))+'('+_0x15cd8a+')'}),this[_0x2180f5(0x28d)]['updatePermissionPoint'](new _0x182d13(_0x15e7ee)['id'],!0x1),this[_0x2180f5(0x244)][_0x2180f5(0x28b)](_0x15e7ee);});};_0x5799ee(this[_0x5de420(0x406)][_0x5de420(0x26c)](_0x43baa3['UNIVER_SHEET']),this[_0x5de420(0x406)][_0x5de420(0x26c)](_0x43baa3['UNIVER_DOC']))['pipe'](_0x5ddac4(_0x5cd911=>_0x5cd911[_0x5de420(0x3d4)]()),_0x333799(_0xa5c69c=>!_0x35eafb(_0xa5c69c)),_0x17e7c5(this[_0x5de420(0x3ab)]))[_0x5de420(0x146)](_0x3ee11c=>{_0x4dcf40(_0x3ee11c);});}[_0x2da18b(0x1c2)](){const _0x2d0906=_0x2da18b,_0x540d0e=async _0x361842=>{const _0x186c88=_0x44b4;(await this[_0x186c88(0x244)][_0x186c88(0x19f)](_0x361842))[_0x186c88(0x411)][_0x186c88(0x29b)](_0x333799(_0x129e2f=>_0x129e2f[_0x186c88(0x27d)]===_0x128ecb[_0x186c88(0x45b)]),_0x17e7c5(this['dispose$']))[_0x186c88(0x146)](_0x1c12e4=>{const _0x467066=_0x186c88,_0x16d2cb=_0x1c12e4,{objectId:_0x494435}=_0x16d2cb[_0x467066(0x247)],_0x11224f=this['_injector'][_0x467066(0x2dd)](_0x25e324);_0x494435===_0x361842?_0x11224f[_0x467066(0x463)](_0x361842):_0x11224f['refreshPermission'](_0x361842,_0x494435);});};_0x5799ee(this[_0x2d0906(0x406)][_0x2d0906(0x26c)](_0x43baa3[_0x2d0906(0x2d4)]),this[_0x2d0906(0x406)][_0x2d0906(0x26c)](_0x43baa3[_0x2d0906(0x37b)]))[_0x2d0906(0x29b)](_0x5ddac4(_0x22ff17=>_0x22ff17[_0x2d0906(0x3d4)]()),_0x333799(_0x5a4556=>!_0x35eafb(_0x5a4556)),_0x17e7c5(this[_0x2d0906(0x3ab)]))[_0x2d0906(0x146)](_0x4a0cfc=>{_0x540d0e(_0x4a0cfc);});}};et=Xo([Pe(0x0,_0x24691e(_0x129c7a)),Pe(0x1,_0x4af863),Pe(0x2,_0x1892f6),Pe(0x3,_0x24691e(ce)),Pe(0x4,_0x24691e(_0x1695f3))],et);var Jo=Object['defineProperty'],qo=Object[_0x2da18b(0x2b8)],zo=(_0x5b5549,_0xea5247,_0x139834,_0x4fd6d7)=>{const _0x50a30b=_0x2da18b;for(var _0x2b719f=_0x4fd6d7>0x1?void 0x0:_0x4fd6d7?qo(_0xea5247,_0x139834):_0xea5247,_0x47c9bd=_0x5b5549[_0x50a30b(0x1a8)]-0x1,_0x3013a1;_0x47c9bd>=0x0;_0x47c9bd--)(_0x3013a1=_0x5b5549[_0x47c9bd])&&(_0x2b719f=(_0x4fd6d7?_0x3013a1(_0xea5247,_0x139834,_0x2b719f):_0x3013a1(_0x2b719f))||_0x2b719f);return _0x4fd6d7&&_0x2b719f&&Jo(_0xea5247,_0x139834,_0x2b719f),_0x2b719f;},gs=(_0x461b1c,_0x23d078)=>(_0x53971d,_0xb64c4f)=>_0x23d078(_0x53971d,_0xb64c4f,_0x461b1c);let Nt=class{constructor(_0x1cd955,_0x43c19a){const _0x34bd21=_0x2da18b;this[_0x34bd21(0x205)]=_0x1cd955,this[_0x34bd21(0x323)]=_0x43c19a;}async[_0x2da18b(0x25d)](_0x4e1792,_0x46a5c3){const _0x221fe3=_0x2da18b;var _0x5047cc;const {unitID:_0x4e803b,type:_0x4431c3,revision:_0x3bab14=0x0}=_0x46a5c3,_0x23b910=this['_getSnapshotAPIPrefix']()+'/'+_0x4431c3+_0x221fe3(0x413)+_0x4e803b+_0x221fe3(0x459)+_0x3bab14,_0x29255b=(await this['_httpService'][_0x221fe3(0x2dd)](_0x23b910))[_0x221fe3(0x318)],_0x101eb1=(_0x5047cc=_0x29255b[_0x221fe3(0x1e7)])==null?void 0x0:_0x5047cc['workbook'];if(_0x101eb1){const _0x5e8810=_0x101eb1==null?void 0x0:_0x101eb1[_0x221fe3(0x485)],_0x2c7c95=_0x4e00c2[_0x221fe3(0x1b4)](_0x24869c(_0x5e8810));_0x101eb1[_0x221fe3(0x485)]=_0x2c7c95,Object[_0x221fe3(0x284)](_0x101eb1[_0x221fe3(0x252)])[_0x221fe3(0x137)](([,_0x58ad68])=>{const _0x224c98=_0x221fe3,_0x31dd54=_0x58ad68[_0x224c98(0x485)],_0x38105b=_0x4e00c2[_0x224c98(0x1b4)](_0x24869c(_0x31dd54));_0x58ad68['originalMeta']=_0x38105b;});}return _0x29255b;}async['getSheetBlock'](_0x43c3bb,_0x5314a0){const _0x3aafdd=_0x2da18b,{unitID:_0x26d4e3,type:_0x152a69,blockID:_0x414b99}=_0x5314a0,_0x132c19=this[_0x3aafdd(0x268)]()+'/'+_0x152a69+_0x3aafdd(0x413)+_0x26d4e3+_0x3aafdd(0x13a)+_0x414b99;return(await this['_httpService'][_0x3aafdd(0x2dd)](_0x132c19))['body'];}async[_0x2da18b(0x2cc)](_0x98b172,_0x4c01a3){const _0x535f63=_0x2da18b,{unitID:_0x591f0a,type:_0x67706e,blockID:_0x452521}=_0x4c01a3,_0x18f12f=this[_0x535f63(0x268)]()+_0x535f63(0x13a)+_0x67706e+_0x535f63(0x413)+_0x591f0a+_0x535f63(0x13a)+_0x452521;return(await this[_0x535f63(0x323)]['get'](_0x18f12f))[_0x535f63(0x318)];}async[_0x2da18b(0x467)](_0x26cc44,_0xa7144e){const _0x585587=_0x2da18b,{unitID:_0x39ace7,type:_0x537a5d,from:_0x9696bb,to:_0x605162}=_0xa7144e,_0x36bc92=this[_0x585587(0x268)]()+'/'+_0x537a5d+_0x585587(0x413)+_0x39ace7+_0x585587(0x20c)+_0x9696bb+_0x585587(0x3b9)+_0x605162;return(await this[_0x585587(0x323)]['get'](_0x36bc92))['body'];}[_0x2da18b(0x135)](){const _0x5041ba=_0x2da18b;var _0xdb9efa;return(_0xdb9efa=this[_0x5041ba(0x205)]['getConfig'](mn))!=null?_0xdb9efa:this['_getAPIPrefix']();}[_0x2da18b(0x268)](){const _0x4611f8=_0x2da18b;var _0x4031c1,_0x6024c;const _0x595ba2=this[_0x4611f8(0x205)][_0x4611f8(0x1bb)](dn),_0x38ced2=this[_0x4611f8(0x205)][_0x4611f8(0x1bb)](L);return(_0x6024c=(_0x4031c1=_0x38ced2==null?void 0x0:_0x38ced2['snapshotServerUrl'])!=null?_0x4031c1:_0x595ba2)!=null?_0x6024c:fn;}async[_0x2da18b(0x23a)](_0x564a1b,_0x25bd97){const _0x1b881d=_0x2da18b,_0x5a7d25=_0x1b881d(0x159)+_0x25bd97[_0x1b881d(0x3f5)]+_0x1b881d(0x413)+_0x25bd97['unitID']+_0x1b881d(0x402);return(await this['_httpService'][_0x1b881d(0x2dd)](_0x5a7d25,{'params':{'resourceId':JSON[_0x1b881d(0x2ea)](_0x25bd97[_0x1b881d(0x443)])}}))[_0x1b881d(0x318)];}[_0x2da18b(0x283)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x2da18b(0x20f)](){const _0x5f4977=_0x2da18b;throw new Error(_0x5f4977(0x1bf));}[_0x2da18b(0x2af)](){const _0x174625=_0x2da18b;throw new Error(_0x174625(0x1bf));}['copyFileMeta'](){const _0x351772=_0x2da18b;throw new Error(_0x351772(0x1bf));}};Nt=zo([gs(0x0,_0x4b95b7),gs(0x1,_0x24691e(_0xa0ce64))],Nt);var Zo=Object[_0x2da18b(0x151)],Qo=Object[_0x2da18b(0x2b8)],ea=(_0x216a51,_0x781ecc,_0x5dd19f,_0x508bd7)=>{for(var _0x18dcc4=_0x508bd7>0x1?void 0x0:_0x508bd7?Qo(_0x781ecc,_0x5dd19f):_0x781ecc,_0x4e012e=_0x216a51['length']-0x1,_0x48ef1b;_0x4e012e>=0x0;_0x4e012e--)(_0x48ef1b=_0x216a51[_0x4e012e])&&(_0x18dcc4=(_0x508bd7?_0x48ef1b(_0x781ecc,_0x5dd19f,_0x18dcc4):_0x48ef1b(_0x18dcc4))||_0x18dcc4);return _0x508bd7&&_0x18dcc4&&Zo(_0x781ecc,_0x5dd19f,_0x18dcc4),_0x18dcc4;},ye=(_0x365a99,_0x14b149)=>(_0x265b44,_0x2c556f)=>_0x14b149(_0x265b44,_0x2c556f,_0x365a99);let Ut=class extends _0x122a1c{constructor(_0x27ae92,_0x44b851,_0x31756e,_0x15da1a,_0xf61c97){const _0x5d2dd7=_0x2da18b;super(_0x27ae92,_0x44b851,_0x31756e),this[_0x5d2dd7(0x32a)]=_0x15da1a,this['_logService']=_0xf61c97;}[_0x2da18b(0x460)](_0x5de1d7,_0x151e68){const _0x6e0c82=_0x2da18b,_0x5348f6=this[_0x6e0c82(0x17f)](_0x5de1d7);if(_0x5348f6)try{const _0x35e4c0=this['_transformStack'](_0x5348f6,_0x151e68);this[_0x6e0c82(0x221)](_0x5de1d7,_0x35e4c0);}catch(_0x291100){this[_0x6e0c82(0x356)]['error']('[CollaborationUndoRedoService]',_0x291100),this[_0x6e0c82(0x158)](_0x5de1d7);}const _0x421e83=this[_0x6e0c82(0x1a3)](_0x5de1d7);if(_0x421e83)try{const _0x1dac5a=this[_0x6e0c82(0x3fc)](_0x421e83,_0x151e68);this[_0x6e0c82(0x1ec)](_0x5de1d7,_0x1dac5a);}catch(_0x10b1c9){this['_logService'][_0x6e0c82(0x490)](_0x10b1c9),this['_clearRedo'](_0x5de1d7);}}[_0x2da18b(0x158)](_0x4dc5f5){const _0x1d9d6f=_0x2da18b,_0x453348=this[_0x1d9d6f(0x17f)](_0x4dc5f5);_0x453348&&(_0x453348[_0x1d9d6f(0x1a8)]=0x0,this[_0x1d9d6f(0x15c)]());}[_0x2da18b(0x15e)](_0x37f0a0){const _0x500a72=_0x2da18b,_0x213abb=this[_0x500a72(0x1a3)](_0x37f0a0);_0x213abb&&(_0x213abb[_0x500a72(0x1a8)]=0x0,this['_updateStatus']());}['_substituteUndoStack'](_0x25066c,_0x680798){const _0x12872a=_0x2da18b;this['_undoStacks'][_0x12872a(0x276)](_0x25066c,_0x680798),this[_0x12872a(0x15c)]();}['_substituteRedoStack'](_0x3f2e28,_0x51b056){const _0x59aa3b=_0x2da18b;this[_0x59aa3b(0x16e)][_0x59aa3b(0x276)](_0x3f2e28,_0x51b056),this['_updateStatus']();}['_transformStack'](_0x38fb16,_0xb8c44c){const _0x33310f=_0x2da18b,_0x6f7aaf=[];let _0x5abf45=_0xb8c44c,_0xd8c687=_0xb8c44c;for(let _0x240a0f=_0x38fb16[_0x33310f(0x1a8)]-0x1;_0x240a0f>=0x0;_0x240a0f--){const {unitID:_0x5bb1c6,undoMutations:_0x5e8d60,redoMutations:_0x33245b}=_0x38fb16[_0x240a0f],_0x17be8b=this[_0x33310f(0x32a)][_0x33310f(0x18b)](_0x5abf45,_0x5e8d60),_0x214c9c=this['_transformService'][_0x33310f(0x18b)](_0xd8c687,_0x33245b);if(_0x19d75d(_0x17be8b)||_0x19d75d(_0x214c9c)){this[_0x33310f(0x356)][_0x33310f(0x490)](_0x33310f(0x242),_0x33310f(0x3cc),_0x17be8b,_0x214c9c);break;}_0x5abf45=_0x17be8b[_0x33310f(0x43e)],_0xd8c687=_0x214c9c[_0x33310f(0x43e)],_0x6f7aaf[_0x33310f(0x46c)]({'unitID':_0x5bb1c6,'undoMutations':_0x17be8b[_0x33310f(0x22c)],'redoMutations':_0x214c9c[_0x33310f(0x22c)]});}return _0x6f7aaf['reverse']();}};Ut=ea([ye(0x0,_0x4af863),ye(0x1,_0x18280b),ye(0x2,_0x5eded2),ye(0x3,_0x418a36),ye(0x4,_0x16c619)],Ut);class ta extends _0x13b3a6{constructor(){const _0x46a21c=_0x2da18b;super(),l(this,_0x46a21c(0x44d)),this[_0x46a21c(0x44d)]=_0x267a81(window,'popstate')[_0x46a21c(0x29b)](_0x1cea38(this[_0x46a21c(0x3ab)]),_0x503b15(0x1),_0x144e4a(void 0x0));}[_0x2da18b(0x403)](_0x337f5d,_0x452600,_0x10d240=!0x1){const _0x49740b=_0x2da18b,_0xbe3598=new URL(window[_0x49740b(0x370)][_0x49740b(0x305)]);_0xbe3598[_0x49740b(0x2d7)][_0x49740b(0x276)](_0x337f5d,_0x452600),_0x10d240?window['history'][_0x49740b(0x34b)]('','',_0xbe3598[_0x49740b(0x280)]()):window[_0x49740b(0x2bd)][_0x49740b(0x2e4)]('','',_0xbe3598['toString']());}['removeParam'](_0x353bfc,_0x32fba0=!0x1){const _0x135641=_0x2da18b,_0x19452d=new URL(window['location'][_0x135641(0x305)]);_0x19452d[_0x135641(0x2d7)][_0x135641(0x3b7)](_0x353bfc),_0x32fba0?window[_0x135641(0x2bd)][_0x135641(0x34b)]('','',_0x19452d[_0x135641(0x280)]()):window[_0x135641(0x2bd)][_0x135641(0x2e4)]('','',_0x19452d[_0x135641(0x280)]());}[_0x2da18b(0x186)](_0x4db901){const _0x1d5c1e=_0x2da18b;var _0xddf630;return(_0xddf630=new URL(window[_0x1d5c1e(0x370)][_0x1d5c1e(0x305)])[_0x1d5c1e(0x2d7)][_0x1d5c1e(0x2dd)](_0x4db901))!=null?_0xddf630:void 0x0;}}var Gs=Object[_0x2da18b(0x151)],sa=Object[_0x2da18b(0x2b8)],ia=(_0x30caa0,_0x4668a2,_0x37bbac)=>_0x4668a2 in _0x30caa0?Gs(_0x30caa0,_0x4668a2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x37bbac}):_0x30caa0[_0x4668a2]=_0x37bbac,na=(_0x16dac2,_0x4eb0e1,_0x1ffa07,_0x3e2641)=>{const _0x1abc5b=_0x2da18b;for(var _0x28cef7=_0x3e2641>0x1?void 0x0:_0x3e2641?sa(_0x4eb0e1,_0x1ffa07):_0x4eb0e1,_0xe065af=_0x16dac2[_0x1abc5b(0x1a8)]-0x1,_0x5b0ca0;_0xe065af>=0x0;_0xe065af--)(_0x5b0ca0=_0x16dac2[_0xe065af])&&(_0x28cef7=(_0x3e2641?_0x5b0ca0(_0x4eb0e1,_0x1ffa07,_0x28cef7):_0x5b0ca0(_0x28cef7))||_0x28cef7);return _0x3e2641&&_0x28cef7&&Gs(_0x4eb0e1,_0x1ffa07,_0x28cef7),_0x28cef7;},ke=(_0x48ee86,_0x57e80f)=>(_0x3da036,_0x5effd4)=>_0x57e80f(_0x3da036,_0x5effd4,_0x48ee86),ra=(_0x437fb4,_0x4dd4fe,_0x4b1c38)=>ia(_0x437fb4,_0x4dd4fe+'',_0x4b1c38);const oa='UNIVER_COLLABORATION_CLIENT_PLUGIN';let Mt=class extends _0x390594{constructor(_0x423d64=yn,_0x2953b0,_0xa694f6,_0x17efd3,_0x2475ea){const _0x3649ab=_0x2da18b;super(),this[_0x3649ab(0x167)]=_0x423d64,this['_logService']=_0x2953b0,this[_0x3649ab(0x38a)]=_0xa694f6,this[_0x3649ab(0x272)]=_0x17efd3,this[_0x3649ab(0x205)]=_0x2475ea;const {..._0x450d0d}=this[_0x3649ab(0x167)];this[_0x3649ab(0x205)][_0x3649ab(0x1b6)](L,_0x450d0d);}[_0x2da18b(0x441)](){const _0x482596=_0x2da18b;this[_0x482596(0x1a2)](),_0x120347(this[_0x482596(0x272)],[[pe],[qe],[et]]);}['onReady'](){_0x120347(this['_injector'],[[ze]]);}[_0x2da18b(0x2be)](){const _0x453e4b=_0x2da18b;this[_0x453e4b(0x2fb)]();}[_0x2da18b(0x1a2)](){const _0x108aa1=_0x2da18b;var _0x12ab99,_0x359bac,_0x4208ab,_0x435bfb;this[_0x108aa1(0x272)][_0x108aa1(0x141)](_0x37a9c2)&&this[_0x108aa1(0x356)][_0x108aa1(0x490)]('[UniverCollaborationClientPlugin]','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x550b11=[[_0x37a9c2,{'useClass':Ut}],[ce],[Ft],[_0xa0ce64],[Ws,{'useClass':ta}],[ae],[D],[_0x2e1788],[Ke],[Xe],[Ye],[Bt],[Ze],[Qe],[$s],[et],[Ls,{'useClass':(_0x359bac=(_0x12ab99=this[_0x108aa1(0x167)])==null?void 0x0:_0x12ab99['socketService'])!=null?_0x359bac:Et}],[_0x17534e,{'useClass':_0x79e78f}],[_0x2cde65,{'useClass':Nt}],[_0x480b72,{'useClass':Pt}],[_0x330a1d,{'useClass':yt}],[Ae],[qe],[Ue],[ze],[pe]];(_0x4208ab=this['_config'])!=null&&_0x4208ab[_0x108aa1(0x300)]&&_0x550b11['push']([tt,{'useClass':rr}]),_0x550b11=_0x42ac03(_0x550b11,(_0x435bfb=this[_0x108aa1(0x167)])==null?void 0x0:_0x435bfb[_0x108aa1(0x236)]),_0x550b11[_0x108aa1(0x137)](_0x3ac214=>this[_0x108aa1(0x272)][_0x108aa1(0x358)](_0x3ac214)),this[_0x108aa1(0x1dc)]();}[_0x2da18b(0x2fb)](){const _0x54d777=_0x2da18b;this['disposeWithMe'](this[_0x54d777(0x38a)][_0x54d777(0x3ca)](_0x43baa3[_0x54d777(0x37b)],[Dt])),this[_0x54d777(0x206)](this[_0x54d777(0x38a)][_0x54d777(0x3ca)](_0x43baa3[_0x54d777(0x2d4)],[wt]));}['_initModules'](){const _0x5f2440=_0x2da18b;var _0x39904e,_0x1a9d83;this[_0x5f2440(0x272)][_0x5f2440(0x2dd)](_0xa0ce64)[_0x5f2440(0x47c)]({'priority':0x14,'interceptor':_0x337f4a({'maxParallel':0x6})}),this[_0x5f2440(0x272)][_0x5f2440(0x2dd)](Qe),(_0x39904e=this['_config'])!=null&&_0x39904e['enableOfflineEditing']||this[_0x5f2440(0x272)]['get'](D)[_0x5f2440(0x392)](),(_0x1a9d83=this['_config'])!=null&&_0x1a9d83['enableAuthServer']&&this[_0x5f2440(0x272)][_0x5f2440(0x2dd)](Ze),this['_injector'][_0x5f2440(0x2dd)](Ae),this[_0x5f2440(0x272)]['has'](Ue)&&this[_0x5f2440(0x272)][_0x5f2440(0x2dd)](Ue);}};ra(Mt,_0x2da18b(0x308),oa),Mt=na([_0x241aac(_0x4768dc),ke(0x1,_0x16c619),ke(0x2,_0x4031fb),ke(0x3,_0x24691e(_0x129c7a)),ke(0x4,_0x4b95b7)],Mt);export{No as AUTHZ_URL_KEY,Pt as AuthzIoHttpService,On as COLLAB_SUBMIT_CHANGESET_URL_KEY,Sn as COLLAB_WEB_SOCKET_URL_KEY,Ae as CollaborationController,Je as CollaborationEntity,Ct as CollaborationSession,ce as CollaborationSessionService,Et as CollaborationSocketService,w as CollaborationStatus,_o as CollaborationStatusDisplay,$s as CommentService,qe as DataLoaderController,Ue as DesktopCollaborationStatusDisplayController,bt as DocCollaborationEntity,vn as HEARTBEAT_INTERVAL_KEY,Ns as HEARTBEAT_TIMEOUT_KEY,Ls as ICollaborationSocketService,Ws as IURLService,yt as ImageIoService,Tn as LOCAL_CACHE_INTERVAL_KEY,wn as LOGIN_URL_KEY,D as LocalCacheService,Cn as RETRY_CONNECTING_MAX_COUNT_KEY,Oa as SEND_CHANGESET_TIMEOUT_KEY,dn as SNAPSHOT_SERVER_URL_KEY,mn as SNAPSHOT_URL_KEY,G as SessionStatus,Yr as SheetCollabCursorShape,Tt as SheetCollaborationEntity,Nt as SnapshotServerOverHTTPService,Mt as UniverCollaborationClientPlugin,ta as WebURLService,Nn as deserializeToCombResponse,Un as serializeCombRequest};
1
+ const _0x598a93=_0x5340;(function(_0x5b3fa7,_0x1617c9){const _0x256d33=_0x5340,_0x1646e8=_0x5b3fa7();while(!![]){try{const _0x13920a=-parseInt(_0x256d33(0x170))/0x1*(-parseInt(_0x256d33(0x2e5))/0x2)+parseInt(_0x256d33(0x410))/0x3+parseInt(_0x256d33(0x25e))/0x4+-parseInt(_0x256d33(0x244))/0x5*(parseInt(_0x256d33(0x435))/0x6)+-parseInt(_0x256d33(0x1ae))/0x7*(parseInt(_0x256d33(0x28a))/0x8)+parseInt(_0x256d33(0x381))/0x9+parseInt(_0x256d33(0x3ea))/0xa*(-parseInt(_0x256d33(0x2e9))/0xb);if(_0x13920a===_0x1617c9)break;else _0x1646e8['push'](_0x1646e8['shift']());}catch(_0x58f75d){_0x1646e8['push'](_0x1646e8['shift']());}}}(_0x3306,0x2f3d1));var zs=Object[_0x598a93(0x171)],Zs=(_0x515659,_0x7530b7,_0x545f45)=>_0x7530b7 in _0x515659?zs(_0x515659,_0x7530b7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x545f45}):_0x515659[_0x7530b7]=_0x545f45,l=(_0xdcb4cf,_0x164696,_0x28afd6)=>Zs(_0xdcb4cf,typeof _0x164696!=_0x598a93(0x344)?_0x164696+'':_0x164696,_0x28afd6);import{createIdentifier as _0x9eee89,Inject as _0x592774,Disposable as _0x24edb8,DisposableCollection as _0x1b0473,toDisposable as _0x440d86,IConfigService as _0x3fc6a0,ILogService as _0x1281de,UserManagerService as _0x50b499,UniverInstanceType as _0x33d049,IUniverInstanceService as _0x191290,LocaleService as _0x2af7ec,Optional as _0x3372cb,RxDisposable as _0x39a217,Injector as _0x579617,Tools as _0x4105cf,ILocalStorageService as _0x86e459,ICommandService as _0xbb225b,JSONX as _0xae478c,CommandType as _0x1887aa,IPermissionService as _0x28af49,IUndoRedoService as _0x3f0b63,sequenceExecute as _0x4a38aa,debounce as _0x568d4b,Rectangle as _0x3f2a8c,COLORS as _0x911f97,ColorKit as _0x9714c3,ThemeService as _0x3777c2,fromEventSubject as _0x7c5a3d,useDependency as _0xded923,connectInjector as _0x2efead,Workbook as _0x3496f4,isInternalEditorID as _0x52b31a,LocalUndoRedoService as _0x397fe3,IContextService as _0x1f167d,DependentOn as _0xe01fa7,Plugin as _0x17f00c,touchDependencies as _0x4a1714,IAuthzIoService as _0x3072eb,mergeOverrideWithDependencies as _0xc4cf65}from'@univerjs/core';import{Subject as _0x2199d6,merge as _0x4c82f1,takeUntil as _0x5c2c79,BehaviorSubject as _0x59597c,distinctUntilChanged as _0x555c3a,fromEvent as _0xa48ff6,map as _0x58c153,shareReplay as _0x55473f,take as _0x593d58,of as _0x3fea04,debounceTime as _0x430a49,filter as _0x5e94e4,switchMap as _0x1a7b4a,combineLatest as _0x340b21,concatMap as _0x3ee968,mapTo as _0x28c444}from'rxjs';import{map as _0x4eca0b,take as _0x5e1341,filter as _0x34901b,delay as _0x3af41b,throttleTime as _0x14157e,takeUntil as _0x156b4c,switchMap as _0xaf9045}from'rxjs/operators';import{MessageType as _0x19f1bd,Tooltip as _0x1ccb4c}from'@univerjs/design';import{IBeforeCloseService as _0x4fb0d0,IMessageService as _0x369676,INotificationService as _0x2d6a0c,useObservable as _0x21a4be,BuiltInUIPart as _0x1a86c4,IUIPartsService as _0x3e243b}from'@univerjs/ui';import{HTTPService as _0x4b4f20,WebSocketService as _0x2cafbe,MergeInterceptorFactory as _0x4eeb0d,HTTPRequest as _0x5a9dc5,IHTTPImplementation as _0x4b4147,XHRHTTPImplementation as _0x1796a8,ThresholdInterceptorFactory as _0x20176e}from'@univerjs/network';import{CollaborationEvent as _0x5e9e5f,parseChangesetToProtocol as _0x49c839,ISnapshotServerService as _0x33411f,isTransformMutationFailure as _0x5396e5,isTransformMutationsWithChangesetSuccess as _0x347ce0,ITransformService as _0x4cfc78,RevisionService as _0x3fcef9,mapDocumentTypeToUniverType as _0x3dbbe0,isTransformChangesetsSuccess as _0x78f6fa,CompressMutationService as _0x425aac,parseProtocolChangeset as _0x24cdf8,SnapshotService as _0x59f861,textEncoder as _0x6f55a9,b64DecodeUnicode as _0x20cdb8,isTransformMutationsWithChangesetFailure as _0x53b98b,UniverCollaborationPlugin as _0x20c1b9}from'@univerjs-pro/collaboration';import{ITelemetryService as _0x5c9e3c}from'@univerjs/telemetry';import{DocSelectionManagerService as _0x42d514,RichTextEditingMutation as _0x37a233,SetTextSelectionsOperation as _0x35a191,DocSkeletonManagerService as _0x6f5374}from'@univerjs/docs';import{DocIMEInputManagerService as _0x3dcf31,DocStateChangeManagerService as _0x37e77c,NodePositionConvertToCursor as _0x37e9f6,isValidRectRange as _0x115f80,NodePositionConvertToRectRange as _0x4a0b4b,TEXT_RANGE_LAYER_INDEX as _0xb1a49e,SetDocZoomRatioOperation as _0x43d454}from'@univerjs/docs-ui';import{SheetsSelectionsService as _0x429ce4,SetSelectionsOperation as _0x283825,InsertSheetMutation as _0x365d49,EmptyMutation as _0x3f7cff,WorkbookEditablePermission as _0x1d1f35,RefRangeService as _0x129b96,EffectRefRangId as _0x4c6334,handleIRemoveRow as _0x1b9105,handleIRemoveCol as _0x3811e5,handleMoveRange as _0x579d32,handleInsertRow as _0x4f2dd1,handleInsertRangeMoveRight as _0x8bbe00,handleInsertRangeMoveDown as _0xf87b15,handleInsertCol as _0x3087b4,handleDeleteRangeMoveUp as _0x2dbb76,handleDeleteRangeMoveLeft as _0x2cb8ab,runRefRangeMutations as _0x3a7354,SetWorksheetActivateCommand as _0x3794d4}from'@univerjs/sheets';import{IRenderManagerService as _0x101da8,Shape as _0x5e2e32,Rect as _0x5ad1b3,getColor as _0x5a30ab,RegularPolygon as _0x5ce008,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x1c8336,Vector2 as _0x366f7a}from'@univerjs/engine-render';import{ImageSourceType as _0x3c6cb4,ImageUploadStatusType as _0x272978,IImageIoService as _0x11fcdb}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x52f227,serializeRangeWithSheet as _0x43a483}from'@univerjs/engine-formula';import{SheetSkeletonManagerService as _0xb93504,VIEWPORT_KEY as _0x5688e5,getCoordByCell as _0x59d862,getSheetObject as _0x1e1911,SheetPermissionInitController as _0x59bf05}from'@univerjs/sheets-ui';import _0x5657df,{forwardRef as _0xd76e5f,useRef as _0x5a5d9c,createElement as _0x4a815b,useCallback as _0x207aaf}from'react';import{IRemoteInstanceService as _0x4a0241}from'@univerjs/rpc';import{getAttachHeader as _0x41a78e}from'@univerjs-pro/license';const dn=_0x598a93(0x378),fn='/universer-api/snapshot',mn=_0x598a93(0x37b),Oa=_0x598a93(0x392),gn=0x7d0,Sn=_0x598a93(0x15b),pn='ws://127.0.0.1:8000/universer-api/comb/connect',vn=_0x598a93(0x393),In=0x7530,Ns=_0x598a93(0x3bf),Us=0x4e20,En=0x4e20,Cn=_0x598a93(0x260),bn=0x3,Tn='LOCAL_CACHE_INTERVAL',Rn=0x3e8,On=_0x598a93(0x1b9),Dn=_0x598a93(0x265),wn=_0x598a93(0x271),Pn=_0x598a93(0x372);var Ms=(_0x1a7426=>(_0x1a7426[_0x1a7426[_0x598a93(0x138)]=0x0]=_0x598a93(0x138),_0x1a7426[_0x1a7426['OK']=0x1]='OK',_0x1a7426[_0x1a7426[_0x598a93(0x27b)]=0x2]=_0x598a93(0x27b),_0x1a7426[_0x1a7426[_0x598a93(0x3eb)]=0x3]=_0x598a93(0x3eb),_0x1a7426[_0x1a7426[_0x598a93(0x137)]=0x4]=_0x598a93(0x137),_0x1a7426[_0x1a7426[_0x598a93(0x164)]=0x5]='UNAUTHENTICATED',_0x1a7426[_0x1a7426[_0x598a93(0x3bb)]=0x6]='ALREADY_EXISTS',_0x1a7426[_0x1a7426[_0x598a93(0x11a)]=0x7]=_0x598a93(0x11a),_0x1a7426[_0x1a7426[_0x598a93(0x223)]=0x8]=_0x598a93(0x223),_0x1a7426[_0x1a7426[_0x598a93(0x296)]=0x9]=_0x598a93(0x296),_0x1a7426[_0x1a7426[_0x598a93(0x2d7)]=0x1389]=_0x598a93(0x2d7),_0x1a7426[_0x1a7426[_0x598a93(0x160)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x1a7426[_0x1a7426[_0x598a93(0x262)]=0x1772]=_0x598a93(0x262),_0x1a7426[_0x1a7426[_0x598a93(0x1c9)]=0x1b59]=_0x598a93(0x1c9),_0x1a7426[_0x1a7426['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x598a93(0x389),_0x1a7426[_0x1a7426[_0x598a93(0x374)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x1a7426[_0x1a7426['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x598a93(0x13f),_0x1a7426[_0x1a7426[_0x598a93(0x3fd)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x1a7426[_0x1a7426[_0x598a93(0x22d)]=0x2329]=_0x598a93(0x22d),_0x1a7426[_0x1a7426[_0x598a93(0x35d)]=0x232a]=_0x598a93(0x35d),_0x1a7426[_0x1a7426['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x1a7426[_0x1a7426[_0x598a93(0x437)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x1a7426[_0x1a7426[_0x598a93(0x2f8)]=0x232d]=_0x598a93(0x2f8),_0x1a7426[_0x1a7426[_0x598a93(0x443)]=0x2711]=_0x598a93(0x443),_0x1a7426[_0x1a7426[_0x598a93(0x3ca)]=0x2712]=_0x598a93(0x3ca),_0x1a7426[_0x1a7426['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x598a93(0x184),_0x1a7426[_0x1a7426['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x1a7426[_0x1a7426['UNRECOGNIZED']=-0x1]=_0x598a93(0x1bf),_0x1a7426))(Ms||{}),H=(_0x32ff69=>(_0x32ff69[_0x32ff69[_0x598a93(0x436)]=0x0]=_0x598a93(0x436),_0x32ff69[_0x32ff69[_0x598a93(0x17d)]=0x1]='UNIVER_DOC',_0x32ff69[_0x32ff69[_0x598a93(0x174)]=0x2]=_0x598a93(0x174),_0x32ff69[_0x32ff69[_0x598a93(0x2ec)]=0x3]=_0x598a93(0x2ec),_0x32ff69[_0x32ff69[_0x598a93(0x3b6)]=0x4]=_0x598a93(0x3b6),_0x32ff69[_0x32ff69[_0x598a93(0x1bf)]=-0x1]=_0x598a93(0x1bf),_0x32ff69))(H||{}),I=(_0x15989f=>(_0x15989f[_0x15989f[_0x598a93(0x1b8)]=0x0]=_0x598a93(0x1b8),_0x15989f[_0x15989f[_0x598a93(0x2c7)]=0x1]=_0x598a93(0x2c7),_0x15989f[_0x15989f[_0x598a93(0x362)]=0x2]='JOIN',_0x15989f[_0x15989f[_0x598a93(0x359)]=0x3]=_0x598a93(0x359),_0x15989f[_0x15989f['INGEST']=0x4]='INGEST',_0x15989f[_0x15989f[_0x598a93(0x406)]=0x5]=_0x598a93(0x406),_0x15989f[_0x15989f[_0x598a93(0x2e1)]=0x6]=_0x598a93(0x2e1),_0x15989f[_0x15989f[_0x598a93(0x1bf)]=-0x1]='UNRECOGNIZED',_0x15989f))(I||{}),kt=(_0xba0662=>(_0xba0662[_0xba0662[_0x598a93(0x292)]=0x0]=_0x598a93(0x292),_0xba0662[_0xba0662['OK']=0x1]='OK',_0xba0662[_0xba0662[_0x598a93(0x469)]=0x2]='FAIL',_0xba0662[_0xba0662[_0x598a93(0x1bf)]=-0x1]=_0x598a93(0x1bf),_0xba0662))(kt||{}),As=(_0x1bc636=>(_0x1bc636[_0x1bc636['Undefined']=0x0]='Undefined',_0x1bc636[_0x1bc636['HttpImport']=0x1]='HttpImport',_0x1bc636[_0x1bc636['HttpExport']=0x2]=_0x598a93(0x2fb),_0x1bc636[_0x1bc636[_0x598a93(0x16b)]=0x3]=_0x598a93(0x16b),_0x1bc636[_0x1bc636[_0x598a93(0x21d)]=0x4]=_0x598a93(0x21d),_0x1bc636[_0x1bc636[_0x598a93(0x1bf)]=-0x1]=_0x598a93(0x1bf),_0x1bc636))(As||{});const L=_0x598a93(0x45d),yn={};function Nn(_0x4d6ead){const _0x4a684b=_0x598a93;var _0xee0659,_0x470000,_0x1bffaf,_0x3b5254;const _0x52d6c7=_0x4d6ead[_0x4a684b(0x249)],_0x5ba889=JSON[_0x4a684b(0x143)](_0x52d6c7);switch(_0x5ba889['cmd']){case I['HEARTBEAT']:case I[_0x4a684b(0x2c7)]:{const _0x2b88b9=_0x5ba889[_0x4a684b(0x375)];return{..._0x5ba889,'data':_0x2b88b9,'cmd':_0x5ba889[_0x4a684b(0x42c)]};}case I[_0x4a684b(0x362)]:{const _0x47c326=_0x5ba889[_0x4a684b(0x1a2)];return{..._0x5ba889,'data':_0x47c326,'cmd':_0x5ba889[_0x4a684b(0x42c)]};}case I[_0x4a684b(0x2e1)]:{const _0x4ba6ab=_0x5ba889[_0x4a684b(0x430)];switch(_0x4ba6ab['eventID']){case _0x5e9e5f[_0x4a684b(0x1db)]:return{..._0x5ba889,'data':{..._0x4ba6ab,'data':(_0xee0659=_0x4ba6ab[_0x4a684b(0x3ed)])==null?void 0x0:_0xee0659['cs']},'cmd':_0x5ba889[_0x4a684b(0x42c)]};case _0x5e9e5f[_0x4a684b(0x127)]:return{..._0x5ba889,'data':{..._0x4ba6ab,'data':(_0x470000=_0x4ba6ab[_0x4a684b(0x319)])==null?void 0x0:_0x470000['cs']},'cmd':_0x5ba889[_0x4a684b(0x42c)]};case _0x5e9e5f[_0x4a684b(0x18f)]:return{..._0x5ba889,'data':{..._0x4ba6ab,'data':(_0x1bffaf=_0x4ba6ab[_0x4a684b(0x313)])==null?void 0x0:_0x1bffaf['cs']},'cmd':_0x5ba889[_0x4a684b(0x42c)]};case _0x5e9e5f[_0x4a684b(0x3d0)]:return{..._0x5ba889,'data':{..._0x4ba6ab,'data':(_0x3b5254=_0x4ba6ab[_0x4a684b(0x1e9)])==null?void 0x0:_0x3b5254['cs']},'cmd':_0x5ba889[_0x4a684b(0x42c)]};case _0x5e9e5f[_0x4a684b(0x294)]:return{..._0x5ba889,'data':{..._0x4ba6ab,'data':_0x4ba6ab[_0x4a684b(0x19f)]},'cmd':_0x5ba889[_0x4a684b(0x42c)]};case _0x5e9e5f['USERS_ENTER']:return{..._0x5ba889,'data':{..._0x4ba6ab,'data':_0x4ba6ab['joinEvent']},'cmd':_0x5ba889[_0x4a684b(0x42c)]};case _0x5e9e5f[_0x4a684b(0x289)]:return{..._0x5ba889,'data':{..._0x4ba6ab,'data':_0x4ba6ab[_0x4a684b(0x477)]},'cmd':_0x5ba889[_0x4a684b(0x42c)]};case _0x5e9e5f['LIVESHARE_NEW_HOST']:return{..._0x5ba889,'data':{..._0x4ba6ab,'data':_0x4ba6ab['liveShareNewHost']},'cmd':_0x5ba889[_0x4a684b(0x42c)]};case _0x5e9e5f[_0x4a684b(0x36e)]:case _0x5e9e5f[_0x4a684b(0x3a8)]:return{..._0x5ba889,'data':{..._0x4ba6ab,'data':_0x4ba6ab['liveShareOperation']},'cmd':_0x5ba889[_0x4a684b(0x42c)]};case _0x5e9e5f['LIVESHARE_TERMINATE']:return{..._0x5ba889,'data':{..._0x4ba6ab,'data':_0x4ba6ab[_0x4a684b(0x356)]},'cmd':_0x5ba889[_0x4a684b(0x42c)]};case _0x5e9e5f[_0x4a684b(0x40b)]:return{..._0x5ba889,'data':_0x4ba6ab,'cmd':_0x5ba889[_0x4a684b(0x42c)]};case _0x5e9e5f[_0x4a684b(0x3f2)]:return{..._0x5ba889,'data':{..._0x4ba6ab,'data':_0x4ba6ab[_0x4a684b(0x2ae)]},'cmd':_0x5ba889[_0x4a684b(0x42c)]};case _0x5e9e5f[_0x4a684b(0x31f)]:return{..._0x5ba889,'data':{..._0x4ba6ab,'data':_0x4ba6ab[_0x4a684b(0x1ab)]},'cmd':_0x5ba889['cmd']};case _0x5e9e5f['SHOULD_CLOSE_CONN']:return{..._0x5ba889,'data':{..._0x4ba6ab,'data':_0x4ba6ab[_0x4a684b(0x1f3)]},'cmd':_0x5ba889[_0x4a684b(0x42c)]};default:return _0x5ba889;}}default:return _0x5ba889;}}function Un(_0xbcd260){const _0x1b9061=_0x598a93;switch(_0xbcd260['cmd']){case I[_0x1b9061(0x406)]:case I[_0x1b9061(0x2c7)]:return JSON['stringify']({'cmd':_0xbcd260[_0x1b9061(0x42c)],'routeKey':_0xbcd260['routeKey']});case I[_0x1b9061(0x3ec)]:{let _0x5e2ddf;switch(_0xbcd260[_0x1b9061(0x249)][_0x1b9061(0x1a6)]){case _0x5e9e5f[_0x1b9061(0x294)]:{_0x5e2ddf={'eventID':_0x5e9e5f[_0x1b9061(0x294)],'updateCursorEvent':_0xbcd260[_0x1b9061(0x249)][_0x1b9061(0x249)]};break;}case _0x5e9e5f[_0x1b9061(0x289)]:{_0x5e2ddf={'eventID':_0x5e9e5f['USERS_LEAVE'],'leaveEvent':_0xbcd260[_0x1b9061(0x249)][_0x1b9061(0x249)]};break;}case _0x5e9e5f['USERS_ENTER']:{_0x5e2ddf={'eventID':_0x5e9e5f[_0x1b9061(0x43a)],'joinEvent':_0xbcd260[_0x1b9061(0x249)][_0x1b9061(0x249)]};break;}case _0x5e9e5f['LIVESHARE_NEW_HOST']:{_0x5e2ddf={'eventID':_0x5e9e5f[_0x1b9061(0x450)],'liveShareNewHost':_0xbcd260[_0x1b9061(0x249)][_0x1b9061(0x249)]};break;}case _0x5e9e5f[_0x1b9061(0x3a8)]:{_0x5e2ddf={'eventID':_0x5e9e5f[_0x1b9061(0x3a8)],'liveShareOperation':_0xbcd260[_0x1b9061(0x249)][_0x1b9061(0x249)]};break;}case _0x5e9e5f[_0x1b9061(0x2cd)]:{_0x5e2ddf={'eventID':_0x5e9e5f['LIVESHARE_TERMINATE'],'liveShareTerminate':_0xbcd260['data'][_0x1b9061(0x249)]};break;}case _0x5e9e5f[_0x1b9061(0x1eb)]:{_0x5e2ddf={'eventID':_0x5e9e5f[_0x1b9061(0x1eb)],'liveShareRequestHost':_0xbcd260[_0x1b9061(0x249)][_0x1b9061(0x249)]};break;}case _0x5e9e5f[_0x1b9061(0x36e)]:{_0x5e2ddf={'eventID':_0x5e9e5f['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x5e2ddf={'eventID':_0xbcd260[_0x1b9061(0x249)]['eventID']};}return JSON[_0x1b9061(0x126)]({'cmd':_0xbcd260[_0x1b9061(0x42c)],'routeKey':_0xbcd260['routeKey'],'collaMsg':_0x5e2ddf});}case I[_0x1b9061(0x362)]:return JSON[_0x1b9061(0x126)]({'cmd':_0xbcd260['cmd'],'routeKey':_0xbcd260[_0x1b9061(0x431)],'joinReq':_0xbcd260[_0x1b9061(0x249)]});case I[_0x1b9061(0x359)]:return JSON['stringify']({'cmd':_0xbcd260[_0x1b9061(0x42c)],'routeKey':_0xbcd260['routeKey'],'leaveReq':_0xbcd260[_0x1b9061(0x249)]});default:throw new Error(_0x1b9061(0x158));}}var Mn=Object[_0x598a93(0x171)],An=Object['getOwnPropertyDescriptor'],Ln=(_0x34b1fd,_0x1d4347,_0x48b368,_0x57dc47)=>{const _0x3e899b=_0x598a93;for(var _0x27fbc4=_0x57dc47>0x1?void 0x0:_0x57dc47?An(_0x1d4347,_0x48b368):_0x1d4347,_0x4b034a=_0x34b1fd[_0x3e899b(0x45e)]-0x1,_0x56eea3;_0x4b034a>=0x0;_0x4b034a--)(_0x56eea3=_0x34b1fd[_0x4b034a])&&(_0x27fbc4=(_0x57dc47?_0x56eea3(_0x1d4347,_0x48b368,_0x27fbc4):_0x56eea3(_0x27fbc4))||_0x27fbc4);return _0x57dc47&&_0x27fbc4&&Mn(_0x1d4347,_0x48b368,_0x27fbc4),_0x27fbc4;},Re=(_0x4111c3,_0x30f335)=>(_0x415543,_0x571ca7)=>_0x30f335(_0x415543,_0x571ca7,_0x4111c3);const Ls=_0x9eee89('univer-pro.collaboration-client-socket-service');function $n(_0x1c64f0,_0x4d4d4a,_0x58f5b6){const _0x28096d=_0x598a93;return _0x1c64f0+'/'+_0x4d4d4a+'/unit/'+_0x58f5b6+_0x28096d(0x414);}let Et=class extends _0x24edb8{constructor(_0x2651c9,_0x20538e,_0x1bf210,_0x4b1b3e,_0x1c8d7e){const _0x363d49=_0x598a93;super(),this[_0x363d49(0x446)]=_0x2651c9,this[_0x363d49(0x453)]=_0x20538e,this[_0x363d49(0x2c2)]=_0x1bf210,this[_0x363d49(0x345)]=_0x4b1b3e,this[_0x363d49(0x2b8)]=_0x1c8d7e;}[_0x598a93(0x21b)](_0xa2358e){const _0x5e75f2=_0x598a93,_0x4855b3=this['_ws']['createSocket'](_0xa2358e);if(!_0x4855b3)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x1c7f4e=new _0x1b0473(),_0x5268c5=new _0x2199d6();_0x1c7f4e[_0x5e75f2(0x187)](_0x4855b3[_0x5e75f2(0x46e)][_0x5e75f2(0x19e)](_0x19e286=>_0x5268c5[_0x5e75f2(0x12a)](_0x19e286))),_0x1c7f4e[_0x5e75f2(0x187)](_0x440d86(()=>_0x5268c5['complete']()));const _0x1a0712=new _0x2199d6();_0x1c7f4e[_0x5e75f2(0x187)](_0x4855b3['error$'][_0x5e75f2(0x19e)](_0x3ebf4a=>_0x1a0712[_0x5e75f2(0x12a)](_0x3ebf4a))),_0x1c7f4e['add'](_0x440d86(()=>_0x1a0712[_0x5e75f2(0x30a)]()));const _0x20a0b3=new _0x2199d6();_0x1c7f4e[_0x5e75f2(0x187)](_0x4855b3[_0x5e75f2(0x156)][_0x5e75f2(0x19e)](_0x594efd=>{const _0x4eef16=Nn(_0x594efd);_0x20a0b3['next'](_0x4eef16);})),_0x1c7f4e['add'](_0x440d86(()=>_0x20a0b3[_0x5e75f2(0x30a)]()));let _0x3fcdc6;const _0x25c70d=()=>{const _0x11d6a5=_0x5e75f2;_0x1a0712[_0x11d6a5(0x12a)](new Event(_0x11d6a5(0x2c3))),_0x5268c5[_0x11d6a5(0x12a)](new CloseEvent(_0x11d6a5(0x2c3))),_0x3fcdc6[_0x11d6a5(0x191)]();};return _0x3fcdc6={'memberID':'','close$':_0x5268c5[_0x5e75f2(0x1b6)](),'error$':_0x1a0712[_0x5e75f2(0x1b6)](),'open$':_0x4855b3[_0x5e75f2(0x205)],'message$':_0x20a0b3[_0x5e75f2(0x1b6)](),'send':_0x2ad6b8=>{const _0x4ce711=_0x5e75f2;if(_0x2ad6b8[_0x4ce711(0x42c)]===I['INGEST']){if(_0x2ad6b8[_0x4ce711(0x249)][_0x4ce711(0x1a6)]===_0x5e9e5f[_0x4ce711(0x236)]){this['_submitChangeset'](_0x3fcdc6,_0x2ad6b8[_0x4ce711(0x249)])[_0x4ce711(0x41f)](_0x18cc0e=>{const _0x1b08a8=_0x4ce711;this[_0x1b08a8(0x345)][_0x1b08a8(0x379)](_0x18cc0e),_0x25c70d();});return;}if(_0x2ad6b8[_0x4ce711(0x249)][_0x4ce711(0x1a6)]===_0x5e9e5f[_0x4ce711(0x401)]){const _0x432694=_0x2ad6b8[_0x4ce711(0x249)];this[_0x4ce711(0x459)](_0x432694)['then'](_0xa2c78c=>{const _0x8dcf40=_0x4ce711;_0x20a0b3['next']({'cmd':I['RECV'],'code':kt['OK'],'routeKey':_0x432694[_0x8dcf40(0x249)][_0x8dcf40(0x3a6)],'routeType':'','data':{'eventID':_0x5e9e5f[_0x8dcf40(0x17e)],'data':{'changesets':_0xa2c78c}}});})[_0x4ce711(0x41f)](_0x1194a3=>{const _0x10adfb=_0x4ce711;this[_0x10adfb(0x345)][_0x10adfb(0x379)](_0x1194a3),_0x25c70d();});return;}}_0x4855b3[_0x4ce711(0x31c)](Un(_0x2ad6b8));},'close':()=>{const _0xdc2e4=_0x5e75f2;_0x4855b3[_0xdc2e4(0x191)](),_0x1c7f4e[_0xdc2e4(0x308)]();}},_0x3fcdc6;}async[_0x598a93(0x419)](_0x3ccef0,_0x5059ad){const _0x2ab4c7=_0x598a93;var _0x309104,_0x91da03;const {unitType:_0x2d6a5c,unitID:_0x3a1abe,changeset:_0x2e1540}=_0x5059ad[_0x2ab4c7(0x249)],_0x2433b5={'unitID':_0x3a1abe,'memberID':_0x3ccef0[_0x2ab4c7(0x1b2)],'type':_0x2d6a5c,'changeset':_0x49c839(_0x2e1540)},_0x59dc5f=this[_0x2ab4c7(0x2c2)][_0x2ab4c7(0x12d)](On),_0x29cef3=this[_0x2ab4c7(0x2c2)][_0x2ab4c7(0x12d)](L),_0x58d478=$n((_0x91da03=(_0x309104=_0x29cef3==null?void 0x0:_0x29cef3[_0x2ab4c7(0x411)])!=null?_0x309104:_0x59dc5f)!=null?_0x91da03:Dn,_0x2d6a5c,_0x3a1abe);try{await this[_0x2ab4c7(0x446)][_0x2ab4c7(0x441)](_0x58d478,{'body':_0x2433b5});}catch(_0x30ffbf){throw this['_logService'][_0x2ab4c7(0x379)]('[CollaborationSession]','submit\x20changeset\x20error!'),_0x30ffbf;}}async[_0x598a93(0x459)](_0x169d7f){const _0x2d583c=_0x598a93,{unitID:_0x13bf96,from:_0x5a8792,to:_0x5a5f22,unitType:_0x4d8117}=_0x169d7f['data'];return(await this['_snapshotServerService'][_0x2d583c(0x39a)]({'metadata':void 0x0},{'unitID':_0x13bf96,'type':_0x4d8117,'from':_0x5a8792,'to':_0x5a5f22}))[_0x2d583c(0x230)];}};Et=Ln([Re(0x0,_0x592774(_0x4b4f20)),Re(0x1,_0x592774(_0x2cafbe)),Re(0x2,_0x3fc6a0),Re(0x3,_0x1281de),Re(0x4,_0x33411f)],Et);const jn=_0x598a93(0x341);function xn(_0x544fa7){const _0x2a67c0=_0x598a93;return JSON[_0x2a67c0(0x126)](_0x544fa7)[_0x2a67c0(0x45e)];}function _0x3306(){const _0x4a00a9=['_hover','_getSnapshotAPIPrefix','UniverIcon','isPermissionRej','_schedule','url(#on-line-single_clip0_910_349)','getUnhiddenWorksheets','_lockTransition','readAsDataURL','_handleEvent','labelPosition','LIVESHARE_FETCH_OPERATIONS','hidden','onlyLocal','_scheduleClearOtherTimer','/universer-api/oidc/authpage','isActive','APPLY_REVISION_CONFILICT','infoRsp','disposeUnit','_members','SNAPSHOT_SERVER_URL_KEY','error','/object/','SNAPSHOT_URL_KEY','authzUrl','localeService','currentSkeleton$','sheetID','getMergeData','2928951DJdVGL','_eventUnsubscribe','_hovered','_getSheetObject','collabWebSocketUrl','_send','transformRemoteChangeset','prototype','APPLY_NON_SEQUENTIAL_REVISION','OffLineSingle','_clearTimeoutTimer','on-line-single_clip0_910_349','/-/object/-/batch_allowed','isArray','unshift','MoveRangeCommandId','isEditing','SEND_CHANGESET_TIMEOUT','HEARTBEAT_INTERVAL','actions','executeCommand','setCurrentUser','fetchMiss','unsubscribe','_transformIMECache','fetchMissingChangesets','concat','_getCurrentRevision','_hideTimer','withCredentials','_showConflictNotification','collab-text-range-','getTypeOfUnitAdded$','body','[OfflineState]:\x20received\x20changeset.','_status$','collabStatus.fetchMiss','unitID','backgroundColor','LIVESHARE_OPERATION','RemoveRowCommandId','toRgbString','min','_updateLocalCursor','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_scheduleSaving','column','function','closeSession','syncEditingCollabCursor','univer-online','_handleHover','url','UNIVER_PROJECT','image/png','updateMember','\x20to\x20','_onCursorDelete','ALREADY_EXISTS','getWorkbookSelections','_telemetryInfo','_online','HEARTBEAT_TIMEOUT','_throwTelemetryCollaborationNewChangeset','PENDING','getFocusedUnit','_setupBeforeClosingHandler','measureText','\x0aCurrent:\x20','listRoles','create','_disabled','_sessions','YUUMI_URL_COL_OUT_OF_RANGE','image/gif','transformMutationsWithChangeset','&assign=','registerRenderModule','auth.needGotoLoginAlert','CHANGESET_REJ','_instanceService','_initCloseConn','POST','_getRedoStack','createCollaborator','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','name','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','indexOf','UUID','Error\x20on\x20receiving\x20event','getMemberID','height','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_substituteRedoStack','_lastPointer','uni.network.url-service','/-/object/list','_queuedRemoteChangesets','_drawRectRange','_handleJoinEvent','assignAColorForMemberID','interceptor','reject','/resources','10SZgcly','PERMISSION_DENIED','INGEST','permissionRejEvent','some','_onRemoteChangeset','FETCH_MISS','_httpService','COMMENT_UPDATE','_commentService','collabStatus.syncing','_getUploadFileURL','_isPermissionRej','_initStatusComponent','_backgroundColor','setItem','collab-client.tooltip.reconnect','mutations','rev','CONNECTOR_DATA_TOO_LARGE','_handleLeaveEvent','session','drawWith','FETCH_MISSING','getUnitType','apply','reconnect','endRow','HEARTBEAT','members','makeDirty','unit-cache-','session.will-retry','MSG_FOR_ERROR','onCommentUpdate','_compressMutationService','[PendingState]:\x20received\x20rejection.','_collaborationController','247047mTKIhR','collabSubmitChangesetUrl','endColumn','_onRemoteRejected','/new_changes','toggleOnline','onPointerMove$','compose','assign','_submitChangeset','replaceState','AWAITING_WITH_PENDING','getUniverSheetInstance','removeMember','setTimeout','catch','_clearLocalCache','storage','_themeService','_rescheduleHeartbeat','registerRefRange','onMissingChangesets','/universer-api/file/{fileID}/sign-url','editingUnit','translate(.97)','_waitForHeartbeatResponse','_clearOtherTimers','_applyRemoteChangeset','cmd','_session','getSheetBySheetId','_onRemoteACK','collaMsg','routeKey','startRow','onMissedChangesetFetched','0\x200\x2017\x2016','1151112GnYNxR','UNIVER_UNKNOWN','LICENSE_EXPORT_SIZE_EXCEEDED','#FFF','_unlockTransition','USERS_ENTER','_transformSelections','transformIMECache','revision','_ensureSubject','_range','_replaceFileID','post','loadOfflineData','YUUMI_UNABLE_LOAD_URL','enableAuthServer','InsertRangeMoveDownCommandId','_http','_initStatusListener','text','_initEventListeners','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','currentTheme$','socket$','SUCCUSS','getUnitOnRev','FromArray','LIVESHARE_NEW_HOST','_onCursorUpdate','loadDoc','_ws','status','list','color','fetchThroughInterceptors','_anchorDot','_fetchMissChangesets','univer-online-status','setInterval','_saveCache','collaboration-client.config','length','createElement','failed\x20to\x20apply\x20missed\x20changesets!','_toggleOffline','disableLocalCache','target','children','_removeRoom','createInstance','getRelativeToViewportCoord','snapshotServerUrl','FAIL','setParam','_collaborationTimeoutTimer','collab-rect-range-','triggerDblclick','close$','unitId','responseType','_entities','_roomMembers','stopTime','verdancy600','_startTelemetryCollaborationNewChangeset','_initUnitPermissionChange','leaveEvent','unload','bottom','getCurrent','_textBubble','onTransformChange$','objects','_onCombEvent','getValue','getImage','getResourcesRequest','startsWith','_sheetSkeletonManagerService','fillRule','[CollaborationState]:\x20apply\x20error!','requireSession','_cursor','_onUserLeave','unknown','now','_cachedData','INVALID_ARGUMENT','whenReady','_roomMembers$','OFFLINE','_exhaustRemoteChangesetQueue','_syncEditingCollabCursor','_injector','getSheetId','_loadDoc','_docSyncEditingCollabCursorService','[SyncedState]:\x20received\x20acknowledgement.','getActiveSheet','stringify','CHANGESET_ACK','_unitID','_socket$','next','requestParams','registerComponent','getConfig','_collabSessionService','_shapes','_commentUpdate$','contains','_getAPIPrefixPath','addObject','_getSignURL','top','range','NOT_FOUND','UNDEFINED','_docTransformIMECacheService','Unknown\x20user','m2Prime','onTransformIME','awaiting_with_pending','transformByState','APPLY_PERMISSION_DENIED','displayName','resend','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','parse','_color','slice','title','disposeWithMe','BASE64','_onFetchMissResult','_getAnchorBounding','clearTimeout','getUnitId','transformStack\x20failed!','size','_initCommandExecutedListener','string','key','image/bmp','reduce','colorChannel1','_candidateSocket','message$','_notificationService','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_tryEnsureSocket','_incrementRevisionNumber','COLLAB_WEB_SOCKET_URL','_collaborationPaused','getRoom','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','getSkeleton','SNAPSHOT_INVALID_SNAPSHOT','_transformUndoredo','NO_OTHER_CLIENTS_EDITING','_refRangeService','UNAUTHENTICATED','result','_retryCount','ERROR_EXCEED_SIZE','_onRecvEvent','onSyncEditingCollabCursor','setAlpha','UnitEmbedded','objectActions','src','toggleOffline','getCurrentRevOfUnit','170TZijkd','defineProperty','code','cursorInfo$','UNIVER_SHEET','get','updateOfflineData','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','getRangePointData','collabStatus.synced','_singleActiveUnitService','hasOwnProperty','sendChangesetTimeout','UNIVER_DOC','PSEUDO_FETCH_MISSING_RESULT','_messageService','roomMembers','_handleHeartbeatEvent','_getAPIPrefix','_drawTextRange','YUUMI_RATE_OVER_LIMIT','_getSaveTimeout','_removeCollabCursors','add','override','_labelPosition','_type','_transformUndoRedoStack','_assignedColors','ERROR_IMAGE','collabCursorState$','NEW_CHANGESETS','_transformRemoteChangesetByIMECache','close','black','put','_collabCursorState$','_collabCursorController','subUnitId','_removeClearOtherTimer','_transitionLocked','_decreaseWaiting','_imageSourceCache','_updateCollabCursors','beginPath','attrs','subscribe','updateCursorEvent','change$','_startSheetCollabCursor','joinRsp','onSendChangeset','_docSkeleton','width','eventID','_onJoinRoomEvent','univerjs-icon\x20univerjs-icon-','idSuffix','sessionStatus$','updatePermissionObjEvent','collaboration.closeRoom','defIds','1652vcgnVH','has','tag','fetch_missing','memberID','_listenToOnlineEvent','_loadSheet','_setupSubUnitSync','asObservable','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','UNKNOWN_CMD','COLLAB_SUBMIT_CHANGESET_URL','_urlService','action','_scene','newValue','m1Prime','UNRECOGNIZED','_telemetryService','addImageSourceCache','_scheduleTimestamp','restore','_context','pending','rgba(255,\x20255,\x20255,\x200.01)','loginUrlKey','icon','APPLY_REJECT','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','getOwnPropertyDescriptor','SHOULD_CLOSE_CONN','univer-online-status-icon','_startCollaboration','[SyncedState]:\x20received\x20rejection.','_updateState','_transformService','ranges','univer-pro.collaboration-client.single-active-unit-service','_toggleOnline','_sendHeartbeat','Warning','hovered','_event$','_onUserJoin','IDLE','PERMISSION_REJ','[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.','_createHandler','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_transformStack','defs','_heartbeatTimer','\x20in\x20_schedule.','cursorInfo','getOffsetConfig','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','deepClone','objectType','csRejEvent','_substituteUndoStack','LIVESHARE_REQUEST_HOST','updateCollaborator','[CollaborationUndoRedoService]','...','clipPath','setWaitCount','InsertRowCommandId','_clearCollaborationTimeoutTimer','shouldCloseConn','getCollabEntity$','dispose$','xlink:href','split','M0\x200H16V16H0z','session.connection-failed','univer-online-status-title','getTime','_initMergeInterceptor','status$','toString','collaboratorID','selection','addEventListener','map','setShapeProps','_onRefRangeChange','open$','_clearScheduledTask','event$','current','lineTo','registerOnClose','_sendingTimer','/role','_registerDependencies','/collaborator','_docSkeletonManagerService','_onLocalMutation','_checkMissing','getItem','/unit/','_colorAssignService','session.collaboration-timeout','fillText','init','startTime','conflict','registerBeforeClose','createSocket','_document','UnitSnapshot','show','hide','/universer-api/authz','appendMutation','purple300','TOO_MANY_REQUESTS','ERROR_IMAGE_TYPE','_socketService','&source=','online','CONFLICT','searchParams','_sessionStatus$','[FetchMissState]','pipe','LICENSE_MAX_UNITS_EXCEEDED','random','userID','changesets','getCurrentSelections','_collaborationSessionService','_undoRedoService','offline','history','SUBMIT_CHANGESET','getAncestorScale','_unitOnClients','_updateLocalCache','filter','_cursors','max','className','onReady','_socket','onRemoteChangeset','getUndoRedoMutationParamsCache','with','/allowed','5wcvzdO','popstate','svg','incrementRevOfUnit','_getLoginPath','data','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','[CollaborationSessionService]:\x20socket\x20error','getTypeOfUnitDisposed$','_retryConnectingTimer','round','fromCollab','socketService','sheetId','UNIVER_COLLABORATION_CLIENT_PLUGIN','Error','Univer','_socketMessageSubscription','reverse','find','getParam','_state$','originalMeta','enableOfflineEditing','onPointerLeave$','getCollabCursors$','988484dYRIwb','_renderManagerService','RETRY_CONNECTING_MAX_COUNT','_permissionService','SNAPSHOT_HAS_BEEN_REMOVED','/object','forEach','/universer-api/comb','COMPRESS_MUTATION_APPLY','engine','clearInterval','replaceTextRanges','collaboration-client.offline-data-not-saved','_drawAnchor','_pendingMutations','closePath','transformMutation','transformUndoRedo','onPointerEnter$','LOGIN_URL_KEY','c1Prime','_entityInit$','transform','initWorkbookPermissionChange','debug','getMember','/fetchmissing?from=','getViewport','_getSendChangesetTimeout','INTERNAL_ERROR','_startDocCollabCursor','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','params','encodeURIComponent','onCommandExecuted','signUrlServerUrl','_snapshotService','/rev/','[PendingState]:\x20unhandled\x20univer\x20type:\x20','collaboration-session-retry','DEFAULT_FILE_NAME','_createInitialStateImpl','image/jpeg','USERS_LEAVE','7584QnNlgT','[DataLoaderController]','getActiveRange','transformChangesets','copyFileMeta','subunit','_init','_awaitingChangeset','UNKNOWN_CODE','_replayCachedMutations','UPDATE_CURSOR','univer-offline','COMPLETION_FINISHED','_commandService','headers','all','DeleteRangeMoveLeftCommandId','saveSheetBlock','?size=','type','onRemoteRej','_draw','_id','_listenToOfflineEvent','urlChange$','batchAllowed','collaboration.single-unit.warning','focused$','font','onlineStatus','currentColor','_docStateChangeManagerService','_name','/block/','roomMembers$','_stopTelemetryCollaborationNewChangeset','commentUpdateEvent','values','uploadFileServerUrl','_revisionService','getImageSourceCache','_initRequestHeader','OTHER_CLIENTS_EDITING','error$','_cursorInfo$','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_snapshotServerService','textRanges','_updateURLWithCurrentState','href','_localStorageService','location','unitId\x20is\x20not\x20found','_syncEditingCollabCursorService','fillStyle','getInterceptPoints','_configService','connection\x20error','_colorIndex','_clearRedo','_anchor','HELLO','delete','registerHTTPInterceptor','_getUndoStack','_timeoutTimer','_clearHeartbeatTimer','LIVESHARE_TERMINATE','getDocRanges','row','saveImage','ACTIVE_UNIT_EVENT_CHANNEL','InsertRangeMoveRightCommandId','_getScale','VIEW_MAIN','getCurrentUser','method','CHANGESET_REVISION_CONFILICT','_sendHeartbeatTimer','exhaustSavingTask','[CollaborationSessionService]','conflict.content','_cursorShapes','awaitingChangeset','_config','unit','_tryReconnect','RECV','NOT_COLLAB','encode','_userManagerService','4430nCIOmT','_initModules','none','_clearUndo','4646290vReWur','_getCtorByUniverType','_state','UNIVER_SLIDE','baseRev','_shouldReportTelemetry','_createSocket','_onConnectionFailed','\x0aAfter:\x20','subscribeEvent','getRenderById','_unitStatus','addObjects','AWAITING','blue400','LICENSE_DISTRO_REJECTED','_getMergeRange','evenodd','HttpExport','_localCacheService','getSheetBlock','not_collab','_onConflict','_executeRemoteChangeset','_updateStatus','1em','onMouseMove','transformSelections','_scheduleCollaborationTimeoutTimer','updatePermissionPoint','MUTATION','dispose','_saveTaskMap','complete','_scheduleHeartbeat','from','awaiting','selections','arc','doc.mutation.rich-text-editing','loadSheet','_waitCount','newCsEvent','set','_onConnectionOpen','_redoStacks','DeleteRangeMoveUpCommandId','getCollabEntity','csAckEvent','_undoStacks','patch','send','collabStatus.conflict','_remoteChangesetQueue','UPDATE_PERMISSION_OBJ','JOINING','_acknowledgedAwaitingChangeset','state$','_selfUnitIDs','substring','_beforeCloseService','session.room-full','call','InsertColCommandId','SYNCED','_socketReady','objectID','onTransformRemoteChangesetByIMECache','replace','_handler','onTransformSelections','fill','off-line-single_clip0_910_343','setActiveRange','_localeService','onRemoteAck','onStateChange','trim','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','[CollaborationEntity]','update','gold400','generateRandomId','collab-text-anchor-','synced','then','pushState','removeParam','collaboration_new_changeset','_createInitialState','_univerInstanceService','symbol','_logService','path','onlineStatusTitle','_memberService','_HTTPService','{fileID}','getUnitStatus$','jiqing500','_change$','push','_joinRoom','save','#fff','div','FileId','_transformPreviousActiveRange','[UniverCollaborationClientPlugin]','liveShareNewHost','_render','findNodePositionByCharIndex','LEAVE','_onOffline','resourceIDs','clear','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','includes','ONLINE','_refreshCollabCursors','retryConnectingInterval','JOIN'];_0x3306=function(){return _0x4a00a9;};return _0x3306();}class $s{constructor(){const _0x3a4397=_0x598a93;l(this,_0x3a4397(0x130),new _0x2199d6()),l(this,'commentUpdate$',this[_0x3a4397(0x130)]['asObservable']());}[_0x598a93(0x40c)](_0x59638b){this['_commentUpdate$']['next'](_0x59638b);}}var Hn=Object[_0x598a93(0x171)],kn=Object['getOwnPropertyDescriptor'],Bn=(_0xbc00a7,_0xbe3d2e,_0x3941c6,_0x4ae520)=>{for(var _0x41fce3=_0x4ae520>0x1?void 0x0:_0x4ae520?kn(_0xbe3d2e,_0x3941c6):_0xbe3d2e,_0x1f7236=_0xbc00a7['length']-0x1,_0x15b012;_0x1f7236>=0x0;_0x1f7236--)(_0x15b012=_0xbc00a7[_0x1f7236])&&(_0x41fce3=(_0x4ae520?_0x15b012(_0xbe3d2e,_0x3941c6,_0x41fce3):_0x15b012(_0x41fce3))||_0x41fce3);return _0x4ae520&&_0x41fce3&&Hn(_0xbe3d2e,_0x3941c6,_0x41fce3),_0x41fce3;},rs=(_0x23a70b,_0x21748f)=>(_0x570815,_0x5e1f77)=>_0x21748f(_0x570815,_0x5e1f77,_0x23a70b);let ae=class extends _0x24edb8{constructor(_0xbfd734,_0x4be8e5){const _0x294422=_0x598a93;super(),l(this,_0x294422(0x472),new Map()),(this['_univerInstanceService']=_0xbfd734,this['_userManagerService']=_0x4be8e5,this['disposeWithMe'](_0x440d86(_0x4c82f1(this[_0x294422(0x343)][_0x294422(0x24c)](_0x33d049[_0x294422(0x174)])['pipe'](_0x4eca0b(_0x162cfd=>_0x162cfd[_0x294422(0x14c)]())),this[_0x294422(0x343)]['getTypeOfUnitDisposed$'](_0x33d049[_0x294422(0x17d)])[_0x294422(0x22c)](_0x4eca0b(_0x57ff96=>_0x57ff96[_0x294422(0x14c)]())),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x33d049[_0x294422(0x2ec)])[_0x294422(0x22c)](_0x4eca0b(_0x39a596=>_0x39a596[_0x294422(0x14c)]())))[_0x294422(0x19e)](_0x344ae1=>this[_0x294422(0x465)](_0x344ae1)))));}[_0x598a93(0x396)](_0x3d97d1){const _0x4bba85=_0x598a93;this['_userManagerService'][_0x4bba85(0x396)](_0x3d97d1);}[_0x598a93(0x2d5)](){const _0x18d775=_0x598a93;return this[_0x18d775(0x2e4)]['getCurrentUser']();}[_0x598a93(0x3b8)](_0x25e53f,_0x4ee509){const _0x2aab3d=_0x598a93;let _0x47e0b3=this['_roomMembers'][_0x2aab3d(0x175)](_0x25e53f);_0x47e0b3||(_0x47e0b3=new Vn(),this[_0x2aab3d(0x472)][_0x2aab3d(0x314)](_0x25e53f,_0x47e0b3)),_0x47e0b3[_0x2aab3d(0x3b8)](_0x4ee509);}[_0x598a93(0x41d)](_0x4fd00e,_0x32bc74){const _0x3891be=_0x598a93,_0x149add=this['_roomMembers'][_0x3891be(0x175)](_0x4fd00e);_0x149add&&_0x149add[_0x3891be(0x41d)](_0x32bc74);}[_0x598a93(0x15d)](_0x4b06e7){const _0x5cddde=_0x598a93;return this[_0x5cddde(0x472)]['get'](_0x4b06e7);}[_0x598a93(0x277)](_0x240ed8,_0x239b85){const _0x584a4c=_0x598a93,_0x457e94=this[_0x584a4c(0x472)][_0x584a4c(0x175)](_0x240ed8);if(_0x457e94)return _0x457e94[_0x584a4c(0x277)](_0x239b85);}[_0x598a93(0x465)](_0x1c980c){const _0x553f1a=_0x598a93,_0x42d337=this[_0x553f1a(0x472)][_0x553f1a(0x175)](_0x1c980c);_0x42d337&&(_0x42d337[_0x553f1a(0x308)](),this[_0x553f1a(0x472)]['delete'](_0x1c980c));}[_0x598a93(0x308)](){const _0x1c4b84=_0x598a93;this[_0x1c4b84(0x472)][_0x1c4b84(0x264)](_0x1316f9=>_0x1316f9[_0x1c4b84(0x308)]()),this[_0x1c4b84(0x472)][_0x1c4b84(0x35c)]();}};ae=Bn([rs(0x0,_0x191290),rs(0x1,_0x592774(_0x50b499))],ae);class Vn extends _0x24edb8{constructor(){const _0x230a3a=_0x598a93;super(...arguments),l(this,_0x230a3a(0x377),new Map());}['dispose'](){const _0x4b3e74=_0x598a93;this[_0x4b3e74(0x377)]['clear']();}[_0x598a93(0x3b8)](_0x4b150e){const _0x20fb06=_0x598a93;this['_members'][_0x20fb06(0x314)](_0x4b150e['memberID'],_0x4b150e);}[_0x598a93(0x41d)](_0x2dc234){const _0x1603c6=_0x598a93;this[_0x1603c6(0x377)][_0x1603c6(0x2c8)](_0x2dc234);}[_0x598a93(0x277)](_0xe1d004){const _0x4dd94f=_0x598a93;return this[_0x4dd94f(0x377)]['get'](_0xe1d004);}}var Fn=Object['defineProperty'],Wn=Object['getOwnPropertyDescriptor'],Gn=(_0x580a4e,_0x12b7e1,_0x8f1d5c,_0x4530ed)=>{const _0x2533bb=_0x598a93;for(var _0x18426c=_0x4530ed>0x1?void 0x0:_0x4530ed?Wn(_0x12b7e1,_0x8f1d5c):_0x12b7e1,_0x402329=_0x580a4e[_0x2533bb(0x45e)]-0x1,_0x1dab37;_0x402329>=0x0;_0x402329--)(_0x1dab37=_0x580a4e[_0x402329])&&(_0x18426c=(_0x4530ed?_0x1dab37(_0x12b7e1,_0x8f1d5c,_0x18426c):_0x1dab37(_0x18426c))||_0x18426c);return _0x4530ed&&_0x18426c&&Fn(_0x12b7e1,_0x8f1d5c,_0x18426c),_0x18426c;},J=(_0x18ff4b,_0x5d02ff)=>(_0x1b2927,_0x53fdcb)=>_0x5d02ff(_0x1b2927,_0x53fdcb,_0x18ff4b),G=(_0x58b319=>(_0x58b319[_0x58b319[_0x598a93(0x1da)]=0x0]=_0x598a93(0x1da),_0x58b319[_0x58b319[_0x598a93(0x320)]=0x1]='JOINING',_0x58b319[_0x58b319[_0x598a93(0x11d)]=0x2]='OFFLINE',_0x58b319[_0x58b319['ONLINE']=0x3]=_0x598a93(0x35f),_0x58b319))(G||{});let Ct=class extends _0x39a217{constructor(_0x1cf149,_0x128a24,_0x540712,_0x58e55c,_0x2e4575,_0x35f43a,_0x515940,_0x585f77,_0x5c105b,_0x4a3236){const _0xa1cffc=_0x598a93;super(),l(this,'_sessionStatus$',new _0x59597c(0x0)),l(this,_0xa1cffc(0x1aa),this[_0xa1cffc(0x22a)]['asObservable']()),l(this,_0xa1cffc(0x1d8),new _0x2199d6()),l(this,'event$',this[_0xa1cffc(0x1d8)][_0xa1cffc(0x1b6)]()),l(this,'_socket'),l(this,_0xa1cffc(0x255)),l(this,_0xa1cffc(0x46b)),l(this,_0xa1cffc(0x2ee),!0x1),l(this,_0xa1cffc(0x3bd),null),(this[_0xa1cffc(0x128)]=_0x1cf149,this[_0xa1cffc(0x345)]=_0x540712,this['_beforeCloseService']=_0x58e55c,this[_0xa1cffc(0x17f)]=_0x2e4575,this[_0xa1cffc(0x2c2)]=_0x35f43a,this['_localeService']=_0x515940,this[_0xa1cffc(0x348)]=_0x585f77,this['_commentService']=_0x5c105b,this[_0xa1cffc(0x1c0)]=_0x4a3236,this[_0xa1cffc(0x2ee)]=!!this[_0xa1cffc(0x1c0)],_0x128a24[_0xa1cffc(0x22c)](_0x5c2c79(this[_0xa1cffc(0x1f5)]))[_0xa1cffc(0x19e)](_0x3a2fab=>{const _0x1a7648=_0xa1cffc;var _0x135757;typeof _0x3a2fab>'u'||(this[_0x1a7648(0x23f)]=_0x3a2fab,_0x3a2fab?(this[_0x1a7648(0x34f)](_0x3a2fab),this[_0x1a7648(0x255)]=_0x3a2fab[_0x1a7648(0x156)][_0x1a7648(0x19e)](_0x414974=>{const _0x49265c=_0x1a7648;_0x414974[_0x49265c(0x431)]===this[_0x49265c(0x128)]&&this[_0x49265c(0x47e)](_0x414974);})):(this[_0x1a7648(0x3c0)](),this[_0x1a7648(0x22a)]['next'](0x2),(_0x135757=this[_0x1a7648(0x255)])==null||_0x135757['unsubscribe'](),this['_socketMessageSubscription']=null));}),this[_0xa1cffc(0x147)](this[_0xa1cffc(0x325)][_0xa1cffc(0x20a)](()=>{const _0x53ac2c=_0xa1cffc;var _0x259477;(_0x259477=this['_socket'])==null||_0x259477['send']({'cmd':I[_0x53ac2c(0x359)],'data':{'roomID':this[_0x53ac2c(0x128)]}});})));}get['sessionStatus'](){return this['_sessionStatus$']['getValue']();}[_0x598a93(0x3dc)](){const _0x132b58=_0x598a93;var _0x314cd6,_0x3fe651;return(_0x3fe651=(_0x314cd6=this[_0x132b58(0x23f)])==null?void 0x0:_0x314cd6[_0x132b58(0x1b2)])!=null?_0x3fe651:null;}[_0x598a93(0x308)](){const _0x1a682c=_0x598a93;super[_0x1a682c(0x308)](),this[_0x1a682c(0x1f5)][_0x1a682c(0x12a)](),this[_0x1a682c(0x1f5)]['complete']();}['close'](){const _0x4b6d46=_0x598a93;var _0x41f437,_0x4fa170;this[_0x4b6d46(0x3c0)](),(_0x41f437=this[_0x4b6d46(0x23f)])==null||_0x41f437[_0x4b6d46(0x31c)]({'cmd':I[_0x4b6d46(0x359)],'data':{'roomID':this[_0x4b6d46(0x128)]}}),(_0x4fa170=this[_0x4b6d46(0x23f)])==null||_0x4fa170['close'](),this[_0x4b6d46(0x1d8)][_0x4b6d46(0x30a)](),this['_sessionStatus$'][_0x4b6d46(0x30a)](),this['dispose']();}['_onCombEvent'](_0x46e7d2){const _0x3fb026=_0x598a93;_0x46e7d2['cmd']===I[_0x3fb026(0x362)]?this['_onJoinRoomEvent'](_0x46e7d2):_0x46e7d2[_0x3fb026(0x42c)]===I['RECV']&&this[_0x3fb026(0x168)](_0x46e7d2);}['_joinRoom'](_0x529d38){const _0xb60e2c=_0x598a93;this[_0xb60e2c(0x22a)][_0xb60e2c(0x12a)](0x1),_0x529d38[_0xb60e2c(0x31c)]({'cmd':I[_0xb60e2c(0x362)],'routeKey':this[_0xb60e2c(0x128)],'routeType':'','data':{'rooms':[{'roomID':this[_0xb60e2c(0x128)]}]}});}[_0x598a93(0x1a7)](_0x223bbe){const _0x5d1a9d=_0x598a93;var _0x39057a;if(_0x223bbe[_0x5d1a9d(0x172)]===kt[_0x5d1a9d(0x469)]){this[_0x5d1a9d(0x17f)][_0x5d1a9d(0x21e)]({'type':_0x19f1bd[_0x5d1a9d(0x1d6)],'content':this['_localeService']['t'](_0x5d1a9d(0x326))}),this[_0x5d1a9d(0x22a)]['next'](0x2);return;}this[_0x5d1a9d(0x22a)]['next'](0x3);const _0x4681fd=(_0x39057a=_0x223bbe[_0x5d1a9d(0x249)]['roomInfos'][this['_unitID']])==null?void 0x0:_0x39057a[_0x5d1a9d(0x407)];_0x4681fd&&_0x4681fd['forEach'](_0x11ecb4=>this[_0x5d1a9d(0x348)]['updateMember'](this['_unitID'],_0x11ecb4));}[_0x598a93(0x168)](_0x326bd8){const _0x10d350=_0x598a93;try{const _0xf0a39d=_0x326bd8[_0x10d350(0x249)];switch(_0xf0a39d[_0x10d350(0x1a6)]){case _0x5e9e5f[_0x10d350(0x43a)]:this[_0x10d350(0x1d9)](_0xf0a39d),this['_event$'][_0x10d350(0x12a)](_0xf0a39d);break;case _0x5e9e5f['USERS_LEAVE']:this[_0x10d350(0x116)](_0xf0a39d),this['_event$'][_0x10d350(0x12a)](_0xf0a39d);break;case _0x5e9e5f['CHANGESET_ACK']:this[_0x10d350(0x2ad)](),this[_0x10d350(0x1f2)](),this[_0x10d350(0x1d8)][_0x10d350(0x12a)](_0xf0a39d);break;case _0x5e9e5f['MSG_FOR_ERROR']:this[_0x10d350(0x345)][_0x10d350(0x379)]('save\x20fail\x20reason\x20is\x20'+JSON[_0x10d350(0x126)](_0xf0a39d)),this[_0x10d350(0x1d8)]['next'](_0xf0a39d);break;case _0x5e9e5f[_0x10d350(0x3f2)]:this[_0x10d350(0x3f3)][_0x10d350(0x40c)](_0xf0a39d[_0x10d350(0x249)]),this['_event$'][_0x10d350(0x12a)](_0xf0a39d);break;default:this[_0x10d350(0x1d8)][_0x10d350(0x12a)](_0xf0a39d);}}catch(_0x3d68ae){this[_0x10d350(0x345)][_0x10d350(0x379)](_0x3d68ae,_0x326bd8);}}[_0x598a93(0x1d9)](_0x399910){const _0x1aa4b1=_0x598a93;this['_memberService'][_0x1aa4b1(0x3b8)](this[_0x1aa4b1(0x128)],_0x399910[_0x1aa4b1(0x249)]);}['_onUserLeave'](_0x567fb2){const _0x1f0e24=_0x598a93;this[_0x1f0e24(0x348)][_0x1f0e24(0x41d)](this['_unitID'],_0x567fb2[_0x1f0e24(0x249)]['memberID']);}async[_0x598a93(0x31c)](_0x4cc37c,_0x12adaf){const _0x19be39=_0x598a93;if(this['sessionStatus']!==0x3||!this[_0x19be39(0x23f)])throw new Error(_0x19be39(0x1e5));try{_0x4cc37c[_0x19be39(0x1a6)]===_0x5e9e5f[_0x19be39(0x236)]&&(this[_0x19be39(0x305)](),this[_0x19be39(0x475)](_0x4cc37c)),this['_socket']['send']({'cmd':I[_0x19be39(0x3ec)],'routeKey':_0x12adaf,'routeType':'','data':_0x4cc37c});}catch(_0x285ec8){this[_0x19be39(0x345)][_0x19be39(0x379)](_0x285ec8);}}[_0x598a93(0x305)](){const _0x32c712=_0x598a93;var _0x1697b7;this[_0x32c712(0x46b)]=window[_0x32c712(0x41e)](()=>{const _0xdd91bb=_0x32c712;this['_collaborationTimeoutTimer']=null,this[_0xdd91bb(0x17f)][_0xdd91bb(0x21e)]({'type':_0x19f1bd[_0xdd91bb(0x253)],'content':this[_0xdd91bb(0x333)]['t'](_0xdd91bb(0x215))});},(_0x1697b7=this['_configService']['getConfig'](Ns))!=null?_0x1697b7:Us);}[_0x598a93(0x1f2)](){const _0x47f6de=_0x598a93;this[_0x47f6de(0x46b)]&&(clearTimeout(this[_0x47f6de(0x46b)]),this[_0x47f6de(0x46b)]=null);}[_0x598a93(0x475)](_0x4a67ca){const _0x3bfa2c=_0x598a93;if(!this['_shouldReportTelemetry'])return;const {data:_0x441ec1}=_0x4a67ca,{unitID:_0x67ed36,changeset:_0x5242f1}=_0x441ec1,{mutations:_0x38fec8,type:_0x3862a3}=_0x5242f1;this['_telemetryInfo']={'unitId':_0x67ed36,'type':_0x3862a3,'startTime':performance[_0x3bfa2c(0x118)](),'stopTime':0x0,'duration':0x0,'size':xn(_0x38fec8)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x4bcca7=_0x598a93;if(this[_0x4bcca7(0x2ee)]){if(!this[_0x4bcca7(0x3bd)]){this[_0x4bcca7(0x345)][_0x4bcca7(0x379)]('[CollaborationSession]','telemetry\x20info\x20is\x20not\x20initialized');return;}this[_0x4bcca7(0x3bd)]['stopTime']=performance[_0x4bcca7(0x118)](),this[_0x4bcca7(0x3bd)]['duration']=this[_0x4bcca7(0x3bd)][_0x4bcca7(0x473)]-this[_0x4bcca7(0x3bd)][_0x4bcca7(0x218)],this[_0x4bcca7(0x1c0)]['capture'](jn,this[_0x4bcca7(0x3bd)]),this[_0x4bcca7(0x3bd)]=null;}}[_0x598a93(0x3c0)](){const _0x5e4e2c=_0x598a93;this[_0x5e4e2c(0x3bd)]=null;}};Ct=Gn([J(0x2,_0x1281de),J(0x3,_0x4fb0d0),J(0x4,_0x369676),J(0x5,_0x3fc6a0),J(0x6,_0x592774(_0x2af7ec)),J(0x7,_0x592774(ae)),J(0x8,_0x592774($s)),J(0x9,_0x3372cb(_0x5c9e3c))],Ct);var Yn=Object[_0x598a93(0x171)],Kn=Object[_0x598a93(0x1cb)],Xn=(_0x4b225d,_0x80386e,_0x509708,_0x12444c)=>{const _0xeb0a5c=_0x598a93;for(var _0x4efeb3=_0x12444c>0x1?void 0x0:_0x12444c?Kn(_0x80386e,_0x509708):_0x80386e,_0x2b5885=_0x4b225d[_0xeb0a5c(0x45e)]-0x1,_0x460f68;_0x2b5885>=0x0;_0x2b5885--)(_0x460f68=_0x4b225d[_0x2b5885])&&(_0x4efeb3=(_0x12444c?_0x460f68(_0x80386e,_0x509708,_0x4efeb3):_0x460f68(_0x4efeb3))||_0x4efeb3);return _0x12444c&&_0x4efeb3&&Yn(_0x80386e,_0x509708,_0x4efeb3),_0x4efeb3;},de=(_0x4ec836,_0xf8ba4d)=>(_0x56af56,_0x10b12a)=>_0xf8ba4d(_0x56af56,_0x10b12a,_0x4ec836);let ce=class extends _0x24edb8{constructor(_0x263096,_0x229eb2,_0x4d8be1,_0x2b1318,_0x4b22b2,_0xe164d){const _0xad2070=_0x598a93;super(),l(this,'_socket$',new _0x59597c(void 0x0)),l(this,_0xad2070(0x44c),this[_0xad2070(0x129)][_0xad2070(0x1b6)]()),l(this,_0xad2070(0x155),null),l(this,_0xad2070(0x3c9),new Map()),l(this,_0xad2070(0x3a4),new _0x59597c(G[_0xad2070(0x1da)])),l(this,_0xad2070(0x1fd),this[_0xad2070(0x3a4)]['asObservable']()),l(this,_0xad2070(0x32a),!0x1),l(this,_0xad2070(0x24d)),l(this,'_retryCount',0x0),l(this,_0xad2070(0x2d8)),l(this,_0xad2070(0x2cb)),(this[_0xad2070(0x120)]=_0x263096,this['_localeService']=_0x229eb2,this['_messageService']=_0x4d8be1,this['_logService']=_0x2b1318,this['_configService']=_0x4b22b2,this[_0xad2070(0x225)]=_0xe164d,this[_0xad2070(0x449)]());}get[_0x598a93(0x23f)](){return this['_socket$']['getValue']();}[_0x598a93(0x449)](){const _0x49dd81=_0x598a93;this[_0x49dd81(0x2a1)](),this[_0x49dd81(0x1b3)]();}[_0x598a93(0x308)](){const _0x467ba1=_0x598a93;super['dispose'](),this[_0x467ba1(0x3c9)][_0x467ba1(0x264)](_0x1d2b3d=>_0x1d2b3d[_0x467ba1(0x308)]()),this[_0x467ba1(0x3c9)][_0x467ba1(0x35c)](),this[_0x467ba1(0x3a4)][_0x467ba1(0x30a)]();}async[_0x598a93(0x486)](_0x3e9d51){const _0x44ed2c=_0x598a93;if(this['_sessions'][_0x44ed2c(0x1af)](_0x3e9d51))return this[_0x44ed2c(0x3c9)][_0x44ed2c(0x175)](_0x3e9d51);this[_0x44ed2c(0x159)]();const _0x1306aa=this[_0x44ed2c(0x120)][_0x44ed2c(0x466)](Ct,_0x3e9d51,this[_0x44ed2c(0x129)][_0x44ed2c(0x1b6)]());return this[_0x44ed2c(0x3c9)][_0x44ed2c(0x314)](_0x3e9d51,_0x1306aa),_0x1306aa;}[_0x598a93(0x3b1)](_0x598836){const _0xb55783=_0x598a93;var _0xba5a02;const _0x11790e=this[_0xb55783(0x3c9)][_0xb55783(0x175)](_0x598836);_0x11790e&&(this[_0xb55783(0x3c9)][_0xb55783(0x2c8)](_0x598836),_0x11790e[_0xb55783(0x191)]()),this[_0xb55783(0x3c9)]['size']||(_0xba5a02=this[_0xb55783(0x23f)])==null||_0xba5a02['close']();}[_0x598a93(0x404)](){const _0x1cb917=_0x598a93;this['_retryCount']=0x0,this['_retryConnectingTimer']!=null&&(clearTimeout(this['_retryConnectingTimer']),this[_0x1cb917(0x24d)]=null),this['_tryReconnect']();}[_0x598a93(0x2ef)](){const _0xd98efb=_0x598a93;var _0x59e41a,_0x6798ec;const _0x388238=this['_configService'][_0xd98efb(0x12d)](Sn),_0x2d38cc=this['_configService'][_0xd98efb(0x12d)](L),_0x7636e0=(_0x6798ec=(_0x59e41a=_0x2d38cc==null?void 0x0:_0x2d38cc[_0xd98efb(0x385)])!=null?_0x59e41a:_0x388238)!=null?_0x6798ec:pn,_0x28d83a=this['_socketService']['createSocket'](_0x7636e0);return this['_candidateSocket']=_0x28d83a,_0x28d83a;}['_tryEnsureSocket'](){const _0x161cc4=_0x598a93;var _0x41ae1c,_0x514cff;try{const _0x2034ac=(_0x514cff=(_0x41ae1c=this[_0x161cc4(0x23f)])!=null?_0x41ae1c:this[_0x161cc4(0x155)])!=null?_0x514cff:this[_0x161cc4(0x2ef)]();if(_0x2034ac){const _0x1d24ef=_0x2034ac[_0x161cc4(0x31c)];_0x2034ac[_0x161cc4(0x31c)]=_0x2ca631=>(this['_rescheduleHeartbeat'](),_0x1d24ef[_0x161cc4(0x403)](_0x2034ac,[_0x2ca631])),_0x2034ac[_0x161cc4(0x156)][_0x161cc4(0x19e)](_0x50d535=>this['_onMessage'](_0x2034ac,_0x50d535)),_0x2034ac[_0x161cc4(0x2b5)][_0x161cc4(0x22c)](_0x5e1341(0x1))[_0x161cc4(0x19e)](_0x58a9e7=>this[_0x161cc4(0x345)]['error'](_0x161cc4(0x24b),_0x58a9e7)),_0x2034ac['open$'][_0x161cc4(0x22c)](_0x5e1341(0x1))[_0x161cc4(0x19e)](()=>{const _0x362704=_0x161cc4;this[_0x362704(0x315)](_0x2034ac);}),_0x2034ac[_0x161cc4(0x46e)][_0x161cc4(0x22c)](_0x5e1341(0x1))['subscribe'](_0x4b9afc=>{const _0x2585ef=_0x161cc4;this[_0x2585ef(0x345)]['debug'](_0x2585ef(0x2da),'socket\x20close',_0x4b9afc),this[_0x2585ef(0x2f0)]();});}}catch(_0x4cc8cf){this[_0x161cc4(0x345)][_0x161cc4(0x379)](_0x4cc8cf),this[_0x161cc4(0x2f0)]();}}[_0x598a93(0x315)](_0x56cae5){const _0x16d58c=_0x598a93;this['_logService'][_0x16d58c(0x276)](_0x16d58c(0x2da),'socket\x20open.'),_0x56cae5[_0x16d58c(0x31c)]({'cmd':I[_0x16d58c(0x2c7)]}),this[_0x16d58c(0x423)]();}[_0x598a93(0x2a1)](){const _0x3bcf7d=_0x598a93;window[_0x3bcf7d(0x201)](_0x3bcf7d(0x234),()=>this[_0x3bcf7d(0x35a)]());}[_0x598a93(0x35a)](){const _0x1eaecd=_0x598a93;this[_0x1eaecd(0x32a)]=!0x1,this[_0x1eaecd(0x155)]=null,this[_0x1eaecd(0x3a4)][_0x1eaecd(0x12a)](G[_0x1eaecd(0x11d)]),this['_socket$'][_0x1eaecd(0x12a)](null),this['_clearTimeoutTimer'](),this[_0x1eaecd(0x2cc)]();}[_0x598a93(0x2f0)](){const _0x29c810=_0x598a93;var _0x2f6c86;this[_0x29c810(0x35a)](),this[_0x29c810(0x166)]<((_0x2f6c86=this['_configService'][_0x29c810(0x12d)](Cn))!=null?_0x2f6c86:bn)?(this[_0x29c810(0x17f)][_0x29c810(0x21e)]({'key':_0x29c810(0x285),'type':_0x19f1bd[_0x29c810(0x1d6)],'content':this[_0x29c810(0x333)]['t'](_0x29c810(0x40a))}),this['_tryReconnect']()):this['_messageService']['show']({'key':_0x29c810(0x285),'type':_0x19f1bd[_0x29c810(0x253)],'content':this['_localeService']['t'](_0x29c810(0x1f9))});}[_0x598a93(0x1b3)](){const _0x363648=_0x598a93,_0x31fede=()=>{const _0x4f80d4=_0x5340;this[_0x4f80d4(0x23f)]||this[_0x4f80d4(0x404)]();},_0x4146a2=()=>{const _0x2257b8=_0x5340;this[_0x2257b8(0x23f)]||document['visibilityState']===_0x2257b8(0x36f)||this['reconnect']();};window[_0x363648(0x201)](_0x363648(0x227),_0x31fede),document[_0x363648(0x201)]('visibilitychange',_0x4146a2);}[_0x598a93(0x2e0)](){const _0x21008e=_0x598a93;var _0x28d791;const _0x16a34f=this['_retryCount'],_0x3d1100=this['_configService'][_0x21008e(0x12d)](L),_0x2bd59d=_0x16a34f===0x0?0x0:((_0x28d791=_0x3d1100==null?void 0x0:_0x3d1100[_0x21008e(0x361)])!=null?_0x28d791:En)*0x2**_0x16a34f;this[_0x21008e(0x24d)]=window[_0x21008e(0x41e)](()=>{const _0xbbcaff=_0x21008e;clearTimeout(this[_0xbbcaff(0x24d)]),this['_retryConnectingTimer']=null,this['_tryEnsureSocket']();},_0x2bd59d),this[_0x21008e(0x166)]+=0x1;}['_onMessage'](_0x47c2f1,_0x15453e){const _0x3bfe92=_0x598a93,{cmd:_0x547a97}=_0x15453e;_0x547a97===I[_0x3bfe92(0x2c7)]&&!this[_0x3bfe92(0x32a)]&&(_0x47c2f1['memberID']=_0x15453e['data']['memberID'],this[_0x3bfe92(0x129)]['next'](_0x47c2f1),this[_0x3bfe92(0x3a4)]['next'](G[_0x3bfe92(0x35f)]),this[_0x3bfe92(0x32a)]=!0x0,this[_0x3bfe92(0x155)]=null),_0x547a97===I[_0x3bfe92(0x406)]&&this[_0x3bfe92(0x38b)](),this[_0x3bfe92(0x423)]();}[_0x598a93(0x423)](){const _0x3faa7f=_0x598a93;var _0x3e490c;this[_0x3faa7f(0x2cc)](),this['_sendHeartbeatTimer']=window[_0x3faa7f(0x41e)](()=>this['_sendHeartbeat'](),(_0x3e490c=this['_configService'][_0x3faa7f(0x12d)](vn))!=null?_0x3e490c:In);}[_0x598a93(0x1d5)](){const _0x5bc8c2=_0x598a93;this[_0x5bc8c2(0x23f)]['send']({'cmd':I[_0x5bc8c2(0x406)]}),this[_0x5bc8c2(0x429)]();}['_waitForHeartbeatResponse'](){const _0x54a921=_0x598a93;var _0x44e2bc;this[_0x54a921(0x2cb)]=window[_0x54a921(0x41e)](()=>this['_onConnectionFailed'](),(_0x44e2bc=this[_0x54a921(0x2c2)][_0x54a921(0x12d)](Ns))!=null?_0x44e2bc:Us);}['_clearHeartbeatTimer'](){const _0x2d8929=_0x598a93;this[_0x2d8929(0x2d8)]!=null&&(clearTimeout(this[_0x2d8929(0x2d8)]),this['_sendHeartbeatTimer']=null);}[_0x598a93(0x38b)](){const _0x29fede=_0x598a93;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x29fede(0x2cb)]),this[_0x29fede(0x2cb)]=null);}};ce=Xn([de(0x0,_0x592774(_0x579617)),de(0x1,_0x592774(_0x2af7ec)),de(0x2,_0x369676),de(0x3,_0x1281de),de(0x4,_0x3fc6a0),de(0x5,Ls)],ce);var Jn=Object[_0x598a93(0x171)],qn=Object['getOwnPropertyDescriptor'],zn=(_0x35f688,_0x260368,_0x293e05,_0x23d0e5)=>{const _0x5be8f4=_0x598a93;for(var _0x3ec46a=_0x23d0e5>0x1?void 0x0:_0x23d0e5?qn(_0x260368,_0x293e05):_0x260368,_0x1abd17=_0x35f688[_0x5be8f4(0x45e)]-0x1,_0x59c60e;_0x1abd17>=0x0;_0x1abd17--)(_0x59c60e=_0x35f688[_0x1abd17])&&(_0x3ec46a=(_0x23d0e5?_0x59c60e(_0x260368,_0x293e05,_0x3ec46a):_0x59c60e(_0x3ec46a))||_0x3ec46a);return _0x23d0e5&&_0x3ec46a&&Jn(_0x260368,_0x293e05,_0x3ec46a),_0x3ec46a;},ct=(_0x5e4b17,_0x109fa3)=>(_0x4cb89a,_0x1fade1)=>_0x109fa3(_0x4cb89a,_0x1fade1,_0x5e4b17);let Ye=class{constructor(_0x2a48fe,_0x3e8b63,_0x5ee0fe){const _0x43586f=_0x598a93;this[_0x43586f(0x120)]=_0x2a48fe,this[_0x43586f(0x1d1)]=_0x3e8b63,this[_0x43586f(0x25f)]=_0x5ee0fe;}[_0x598a93(0x43c)](_0x5e184f){const _0x660fb0=_0x598a93;this['_transformUndoRedoStack'](_0x5e184f),this[_0x660fb0(0x354)](_0x5e184f);}[_0x598a93(0x387)](_0x37378b){const _0x25c748=_0x598a93,{unitID:_0x7b79e3}=_0x37378b,_0x14a19e=this['_renderManagerService'][_0x25c748(0x2f3)](_0x7b79e3)['with'](_0x3dcf31),{redoCache:_0x4cbb8b}=_0x14a19e[_0x25c748(0x241)]();if(_0x4cbb8b[_0x25c748(0x45e)]===0x0)return _0x37378b;let _0x5587b7=_0x4105cf[_0x25c748(0x1e7)](_0x37378b[_0x25c748(0x3fb)][0x0]);for(let _0x45cfb1=0x0;_0x45cfb1<_0x4cbb8b[_0x25c748(0x45e)];_0x45cfb1++){const _0x433fec={'id':_0x25c748(0x310),'params':{..._0x4cbb8b[_0x45cfb1]}},_0x2d5ddf=this['_transformService']['transformMutation'](_0x5587b7,_0x433fec,!0x1);if(_0x5396e5(_0x2d5ddf))throw _0x2d5ddf[_0x25c748(0x379)];_0x5587b7=_0x2d5ddf['m1Prime'];}return{..._0x4105cf[_0x25c748(0x1e7)](_0x37378b),'mutations':[_0x5587b7]};}[_0x598a93(0x18b)](_0x21390b){const _0x5d9b07=_0x598a93,{unitID:_0x3eca21}=_0x21390b,_0x131b86=this['_renderManagerService'][_0x5d9b07(0x2f3)](_0x3eca21)[_0x5d9b07(0x242)](_0x3dcf31),{undoCache:_0x37a773,redoCache:_0x4d2256}=_0x131b86[_0x5d9b07(0x241)]();if(_0x37a773[_0x5d9b07(0x45e)]===0x0||_0x4d2256[_0x5d9b07(0x45e)]===0x0)return;const _0x2c3541=[],_0x3985b9=[];let _0x13f836=_0x4105cf[_0x5d9b07(0x1e7)](_0x21390b[_0x5d9b07(0x3fb)][0x0]),_0x55169f=_0x4105cf[_0x5d9b07(0x1e7)](_0x21390b[_0x5d9b07(0x3fb)][0x0]);for(let _0x240007=_0x37a773[_0x5d9b07(0x45e)]-0x1;_0x240007>=0x0;_0x240007--){const _0x437263={'id':'doc.mutation.rich-text-editing','params':{..._0x37a773[_0x240007]}},_0x282699={'id':'doc.mutation.rich-text-editing','params':{..._0x4d2256[_0x240007]}},_0x1ed1cc=this['_transformService'][_0x5d9b07(0x26e)](_0x13f836,_0x437263,!0x1),_0x476b66=this[_0x5d9b07(0x1d1)]['transformMutation'](_0x55169f,_0x282699,!0x1);if(_0x5396e5(_0x1ed1cc))throw _0x1ed1cc[_0x5d9b07(0x379)];if(_0x5396e5(_0x476b66))throw _0x476b66['error'];_0x2c3541[_0x5d9b07(0x38f)](_0x1ed1cc[_0x5d9b07(0x13b)][_0x5d9b07(0x27e)]),_0x3985b9[_0x5d9b07(0x38f)](_0x476b66[_0x5d9b07(0x13b)][_0x5d9b07(0x27e)]),_0x13f836=_0x1ed1cc[_0x5d9b07(0x1be)],_0x55169f=_0x476b66[_0x5d9b07(0x1be)];}_0x131b86['setUndoRedoMutationParamsCache']({'undoCache':_0x2c3541,'redoCache':_0x3985b9});}[_0x598a93(0x354)](_0x4b008f){const _0xd097c0=_0x598a93,{unitID:_0x37bbe9}=_0x4b008f,_0x5340f0=this[_0xd097c0(0x25f)][_0xd097c0(0x2f3)](_0x37bbe9)['with'](_0x3dcf31),_0x33fc66=_0x5340f0[_0xd097c0(0x28c)]();if(_0x33fc66==null)return;const _0x3450ec=[{'id':_0xd097c0(0x310),'params':{'unitId':_0x4b008f[_0xd097c0(0x3a6)],'actions':null,'textRanges':[_0x33fc66]}}],_0xc5989c=this[_0xd097c0(0x1d1)][_0xd097c0(0x3cc)](_0x4b008f,_0x3450ec);if(!_0x347ce0(_0xc5989c))throw _0xc5989c['error'];const _0x391b0f=_0xc5989c[_0xd097c0(0x13b)][0x0][_0xd097c0(0x27e)][_0xd097c0(0x2b9)];Array[_0xd097c0(0x38e)](_0x391b0f)&&_0x391b0f[_0xd097c0(0x45e)]&&_0x5340f0[_0xd097c0(0x332)](_0x391b0f[0x0]);}};Ye=zn([ct(0x0,_0x592774(_0x579617)),ct(0x1,_0x4cfc78),ct(0x2,_0x101da8)],Ye);var Zn=Object[_0x598a93(0x171)],Qn=Object[_0x598a93(0x1cb)],er=(_0xf6815f,_0x5736ee,_0x598d13,_0x40c17b)=>{const _0x4e6880=_0x598a93;for(var _0x10134a=_0x40c17b>0x1?void 0x0:_0x40c17b?Qn(_0x5736ee,_0x598d13):_0x5736ee,_0x4dcc4c=_0xf6815f[_0x4e6880(0x45e)]-0x1,_0x1ca4e5;_0x4dcc4c>=0x0;_0x4dcc4c--)(_0x1ca4e5=_0xf6815f[_0x4dcc4c])&&(_0x10134a=(_0x40c17b?_0x1ca4e5(_0x5736ee,_0x598d13,_0x10134a):_0x1ca4e5(_0x10134a))||_0x10134a);return _0x40c17b&&_0x10134a&&Zn(_0x5736ee,_0x598d13,_0x10134a),_0x10134a;},Oe=(_0x111f1b,_0x325f8a)=>(_0x131009,_0x501789)=>_0x325f8a(_0x131009,_0x501789,_0x111f1b);let D=class extends _0x24edb8{constructor(_0x29b0c3,_0x3eb84b,_0x2d41f5,_0x4817c4,_0x4c77f8){const _0x2d8e0f=_0x598a93;super(),l(this,_0x2d8e0f(0x119),new Map()),l(this,'_saveTaskMap',new Map()),l(this,_0x2d8e0f(0x3c8),!0x1),(this['_configService']=_0x29b0c3,this[_0x2d8e0f(0x2bc)]=_0x3eb84b,this[_0x2d8e0f(0x325)]=_0x2d41f5,this[_0x2d8e0f(0x333)]=_0x4817c4,this[_0x2d8e0f(0x2b1)]=_0x4c77f8,this['_setupBeforeClosingHandler']());}[_0x598a93(0x462)](){this['_disabled']=!0x0;}['enableLocalCache'](){const _0x5adf08=_0x598a93;this[_0x5adf08(0x3c8)]=!0x1;}[_0x598a93(0x308)](){const _0x13c98d=_0x598a93;this['exhaustSavingTask']()['then'](()=>super[_0x13c98d(0x308)]());}async[_0x598a93(0x442)](_0x49c9a1){const _0x1ecd7f=_0x598a93;return this[_0x1ecd7f(0x3c8)]?null:this[_0x1ecd7f(0x2bc)][_0x1ecd7f(0x212)](os(_0x49c9a1));}async['saveOfflineData'](_0x2db203,_0x5366ca){const _0x5277f6=_0x598a93;return!!this[_0x5277f6(0x2bc)][_0x5277f6(0x3f9)](_0x2db203,_0x5366ca);}[_0x598a93(0x176)](_0x3ec966,_0x201f78,_0x246d1d,_0x45c5f8){const _0x28be7b=_0x598a93,_0x2a8aa1=this[_0x28be7b(0x2b1)][_0x28be7b(0x16f)](_0x3ec966);this['_cachedData'][_0x28be7b(0x314)](_0x3ec966,{'unitID':_0x3ec966,'type':_0x201f78,'awaitingChangeset':_0x246d1d,'mutations':_0x45c5f8,'rev':_0x2a8aa1}),this[_0x28be7b(0x309)][_0x28be7b(0x1af)](_0x3ec966)||this[_0x28be7b(0x3ae)](_0x3ec966);}[_0x598a93(0x3ae)](_0x1f637e){const _0x3657dc=_0x598a93,_0x1b7ba8=this['_getSaveTimeout']();_0x1b7ba8===0x0?this[_0x3657dc(0x45c)](_0x1f637e):this[_0x3657dc(0x309)][_0x3657dc(0x314)](_0x1f637e,setTimeout(()=>this[_0x3657dc(0x45c)](_0x1f637e),_0x1b7ba8));}[_0x598a93(0x185)](){const _0x25e86c=_0x598a93;var _0x30ad3a;return(_0x30ad3a=this[_0x25e86c(0x2c2)]['getConfig'](Tn))!=null?_0x30ad3a:Rn;}[_0x598a93(0x45c)](_0x39d02f){const _0x3f4ce4=_0x598a93,_0x19d183=this['_saveTaskMap'][_0x3f4ce4(0x175)](_0x39d02f);return _0x19d183!==void 0x0&&window[_0x3f4ce4(0x14b)](_0x19d183),this['_localStorageService']['setItem'](os(_0x39d02f),this[_0x3f4ce4(0x119)][_0x3f4ce4(0x175)](_0x39d02f))[_0x3f4ce4(0x33e)](()=>this[_0x3f4ce4(0x309)][_0x3f4ce4(0x2c8)](_0x39d02f));}async[_0x598a93(0x2d9)](){const _0x4cd2e2=_0x598a93,_0x3f8557=[];this[_0x4cd2e2(0x309)][_0x4cd2e2(0x264)]((_0x3a28cd,_0x52d644)=>{const _0x5887bc=_0x4cd2e2;window['clearTimeout'](_0x3a28cd),_0x3f8557[_0x5887bc(0x34e)](this['_saveCache'](_0x52d644)[_0x5887bc(0x33e)](()=>{const _0x205b83=_0x5887bc;this[_0x205b83(0x309)][_0x205b83(0x2c8)](_0x52d644);}));}),await Promise[_0x4cd2e2(0x299)](_0x3f8557);}[_0x598a93(0x3c3)](){const _0x3ee665=_0x598a93;this[_0x3ee665(0x147)](this[_0x3ee665(0x325)][_0x3ee665(0x21a)](()=>{const _0x19b078=_0x3ee665;if(this[_0x19b078(0x309)][_0x19b078(0x14e)])return this[_0x19b078(0x333)]['t'](_0x19b078(0x26a));}));}};D=er([Oe(0x0,_0x3fc6a0),Oe(0x1,_0x86e459),Oe(0x2,_0x4fb0d0),Oe(0x3,_0x592774(_0x2af7ec)),Oe(0x4,_0x592774(_0x3fcef9))],D);function os(_0x31300e){const _0x4973a1=_0x598a93;return _0x4973a1(0x409)+_0x31300e;}var tr=Object[_0x598a93(0x171)],sr=Object[_0x598a93(0x1cb)],ir=(_0x39b7ce,_0x442322,_0x50488d,_0x1a7a81)=>{const _0x3be2da=_0x598a93;for(var _0x3bcbd2=_0x1a7a81>0x1?void 0x0:_0x1a7a81?sr(_0x442322,_0x50488d):_0x442322,_0x55d882=_0x39b7ce[_0x3be2da(0x45e)]-0x1,_0x46a925;_0x55d882>=0x0;_0x55d882--)(_0x46a925=_0x39b7ce[_0x55d882])&&(_0x3bcbd2=(_0x1a7a81?_0x46a925(_0x442322,_0x50488d,_0x3bcbd2):_0x46a925(_0x3bcbd2))||_0x3bcbd2);return _0x1a7a81&&_0x3bcbd2&&tr(_0x442322,_0x50488d,_0x3bcbd2),_0x3bcbd2;},ht=(_0x3a19ff,_0x3869d8)=>(_0x452040,_0x3569b5)=>_0x3869d8(_0x452040,_0x3569b5,_0x3a19ff);function nr(_0x423c7b){const _0x40ae87=_0x598a93,{unitID:_0x61044d,mutations:_0x296e04}=_0x423c7b;return{'unitId':_0x61044d,'subUnitId':_0x296e04[0x0][_0x40ae87(0x27e)][_0x40ae87(0x196)]};}let Ke=class{constructor(_0xcac192,_0x308b5b,_0x22a699){const _0x36460a=_0x598a93;this[_0x36460a(0x120)]=_0xcac192,this[_0x36460a(0x1d1)]=_0x308b5b,this[_0x36460a(0x3d1)]=_0x22a699;}['transformSelections'](_0x197518){const _0x597b5a=_0x598a93;var _0x13a719,_0x25296b,_0x95fad5,_0x2bbd8e;const _0x29309f=this[_0x597b5a(0x120)]['get'](_0x429ce4),{unitId:_0x232d0e,subUnitId:_0x285e68}=nr(_0x197518),_0x2e7e16=_0x29309f[_0x597b5a(0x3bc)](_0x232d0e)[_0x597b5a(0x231)](),_0xc3a270=(_0x25296b=(_0x13a719=this[_0x597b5a(0x3d1)]['getUnit'](_0x232d0e))==null?void 0x0:_0x13a719[_0x597b5a(0x125)]())==null?void 0x0:_0x25296b[_0x597b5a(0x121)]();if(_0x2e7e16[_0x597b5a(0x45e)]===0x0||!_0x232d0e||!_0x285e68)return;const _0x4367a6=[{'id':_0x283825['id'],'params':{'unitId':_0x232d0e,'subUnitId':_0xc3a270,'selections':_0x4105cf[_0x597b5a(0x1e7)](_0x2e7e16)}}],_0x275cd0=this['_transformService'][_0x597b5a(0x3cc)](_0x197518,_0x4367a6);if(!_0x347ce0(_0x275cd0))throw _0x275cd0[_0x597b5a(0x379)];const _0x52fd8d=(_0x2bbd8e=(_0x95fad5=_0x275cd0[_0x597b5a(0x13b)][0x0])==null?void 0x0:_0x95fad5['params'])==null?void 0x0:_0x2bbd8e['selections'];Array['isArray'](_0x52fd8d)&&_0x52fd8d[_0x597b5a(0x45e)]&&this['_injector'][_0x597b5a(0x175)](_0xbb225b)['executeCommand'](_0x283825['id'],{'unitId':_0x232d0e,'subUnitId':_0xc3a270,'selections':_0x52fd8d});}};Ke=ir([ht(0x0,_0x592774(_0x579617)),ht(0x1,_0x4cfc78),ht(0x2,_0x191290)],Ke);const tt=_0x9eee89(_0x598a93(0x1d3));var js=(_0xd2c52c=>(_0xd2c52c[_0xd2c52c[_0x598a93(0x162)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0xd2c52c[_0xd2c52c['OTHER_CLIENTS_EDITING']=0x1]='OTHER_CLIENTS_EDITING',_0xd2c52c))(js||{});const as=0x7530,cs=_0x598a93(0x2d1);class rr extends _0x24edb8{constructor(){const _0x40f9b6=_0x598a93;super(),l(this,_0x40f9b6(0x2a0),_0x4105cf[_0x40f9b6(0x33b)]()),l(this,_0x40f9b6(0x323),new Set()),l(this,'_unitOnClients',new Map()),l(this,_0x40f9b6(0x1e1),null),l(this,_0x40f9b6(0x42a),new Map()),l(this,'_unitStatus',new Map()),this[_0x40f9b6(0x290)]();}[_0x598a93(0x308)](){const _0x45bf54=_0x598a93;super[_0x45bf54(0x308)](),this[_0x45bf54(0x42a)][_0x45bf54(0x264)]((_0x2f29d1,_0x3fa2ea)=>this[_0x45bf54(0x197)](_0x3fa2ea)),this[_0x45bf54(0x1e1)]&&window['clearInterval'](this[_0x45bf54(0x1e1)]);}['getUnitStatus$'](_0x586394){const _0xb24729=_0x598a93;return this[_0xb24729(0x43e)](_0x586394)['pipe'](_0x555c3a());}[_0x598a93(0x427)](_0x3481e2){const _0x586293=_0x598a93;this[_0x586293(0x323)][_0x586293(0x14e)]===0x0&&this[_0x586293(0x30b)](),this[_0x586293(0x323)][_0x586293(0x187)](_0x3481e2),this[_0x586293(0x386)]({'type':0x0,'memberID':this[_0x586293(0x2a0)],'unitIDs':[_0x3481e2],'isForwarded':!0x1});}[_0x598a93(0x376)](_0x5cbc05){const _0xb30af6=_0x598a93;this['_selfUnitIDs'][_0xb30af6(0x2c8)](_0x5cbc05),this['_selfUnitIDs'][_0xb30af6(0x14e)]===0x0&&this[_0xb30af6(0x1e1)]&&window[_0xb30af6(0x268)](this['_heartbeatTimer']);}['_init'](){const _0x220525=_0x598a93;this['disposeWithMe'](_0x440d86(_0xa48ff6(window,_0x220525(0x421))[_0x220525(0x19e)](_0x3b2ce9=>{const _0x58aeaf=_0x220525;if(_0x3b2ce9[_0x58aeaf(0x151)]!==cs||!_0x3b2ce9[_0x58aeaf(0x1bd)])return;const _0x11ef12=JSON[_0x58aeaf(0x143)](_0x3b2ce9[_0x58aeaf(0x1bd)]);this[_0x58aeaf(0x36c)](_0x11ef12);}))),window[_0x220525(0x201)](_0x220525(0x478),()=>this[_0x220525(0x386)]({'type':0x1,'memberID':this[_0x220525(0x2a0)],'unitIDs':Array[_0x220525(0x30c)](this[_0x220525(0x323)])}));}[_0x598a93(0x36c)](_0x10fa38){const _0x445642=_0x598a93;switch(_0x10fa38[_0x445642(0x29d)]){case 0x0:this['_handleJoinEvent'](_0x10fa38);break;case 0x1:this[_0x445642(0x3fe)](_0x10fa38);break;case 0x2:this[_0x445642(0x181)](_0x10fa38);break;}}[_0x598a93(0x3e5)](_0x40b7c8){const _0x4e83d0=_0x598a93,{unitIDs:_0x5ea899,memberID:_0x5563d2,isForwarded:_0x1f2764}=_0x40b7c8;_0x5ea899[_0x4e83d0(0x264)](_0x43518e=>{const _0x4926e8=_0x4e83d0;if(!_0x1f2764&&this['_unitOnClients']['has'](_0x43518e)&&this[_0x4926e8(0x43e)](_0x43518e)[_0x4926e8(0x12a)](0x1),!this['_unitOnClients'][_0x4926e8(0x1af)](_0x43518e)||!this['_unitOnClients'][_0x4926e8(0x175)](_0x43518e)['has'](_0x5563d2)){const _0x21217b=this[_0x4926e8(0x238)][_0x4926e8(0x175)](_0x43518e)||new Set();_0x21217b['add'](_0x5563d2),this[_0x4926e8(0x238)][_0x4926e8(0x314)](_0x43518e,_0x21217b),this[_0x4926e8(0x371)](_0x5563d2);}}),_0x1f2764||this[_0x4e83d0(0x386)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x4e83d0(0x323)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x1a2056){const _0x3173bf=_0x598a93;this['_removeClearOtherTimer'](_0x1a2056);const _0x1b87f1=window[_0x3173bf(0x41e)](()=>{const _0x4575bf=_0x3173bf;this[_0x4575bf(0x238)][_0x4575bf(0x264)](_0x5651eb=>{const _0x2cc621=_0x4575bf;_0x5651eb[_0x2cc621(0x2c8)](_0x1a2056);});},as*0x2);this['_clearOtherTimers']['set'](_0x1a2056,_0x1b87f1);}[_0x598a93(0x197)](_0x29dcd6){const _0x152841=_0x598a93;if(this['_clearOtherTimers'][_0x152841(0x1af)](_0x29dcd6)){const _0x468500=this[_0x152841(0x42a)]['get'](_0x29dcd6);_0x468500&&window['clearTimeout'](_0x468500),this[_0x152841(0x42a)][_0x152841(0x314)](_0x29dcd6,null);}}[_0x598a93(0x3fe)](_0x1c8334){const _0x3cb5b4=_0x598a93,{memberID:_0x98db5a,unitIDs:_0x15b1d3}=_0x1c8334;_0x15b1d3[_0x3cb5b4(0x264)](_0x279792=>{const _0x30b844=_0x3cb5b4;var _0xbaae81;const _0x35bc56=this[_0x30b844(0x238)][_0x30b844(0x175)](_0x279792);_0x35bc56&&(_0x35bc56['delete'](_0x98db5a),(_0xbaae81=this[_0x30b844(0x43e)](_0x279792))==null||_0xbaae81['next'](_0x35bc56[_0x30b844(0x14e)]===0x0?0x0:0x1));}),this[_0x3cb5b4(0x197)](_0x98db5a);}['_handleHeartbeatEvent'](_0x467bf8){this['_scheduleClearOtherTimer'](_0x467bf8['memberID']);}[_0x598a93(0x386)](_0x3df538){const _0x202f32=_0x598a93;localStorage[_0x202f32(0x3f9)](cs,JSON[_0x202f32(0x126)](_0x3df538));}[_0x598a93(0x30b)](){const _0x225414=_0x598a93;this[_0x225414(0x1e1)]=window[_0x225414(0x45b)](()=>{const _0x47592e=_0x225414;this[_0x47592e(0x386)]({'type':0x2,'memberID':this[_0x47592e(0x2a0)]});},as);}['_ensureSubject'](_0x4cb70f){const _0x181637=_0x598a93;return this['_unitStatus'][_0x181637(0x1af)](_0x4cb70f)||this[_0x181637(0x2f4)][_0x181637(0x314)](_0x4cb70f,new _0x59597c(0x0)),this['_unitStatus'][_0x181637(0x175)](_0x4cb70f);}}function xs(_0x1b60fe){const _0x24572a=_0x598a93;let _0x13d8e4='';for(const _0x1081f2 of _0x1b60fe){const {startOffset:_0x385015,endOffset:_0x51cc36,isActive:_0x279bb2}=_0x1081f2;_0x13d8e4[_0x24572a(0x45e)]&&(_0x13d8e4+=','),_0x13d8e4+=_0x385015+':'+_0x51cc36+':'+(_0x279bb2?'1':'0');}return _0x13d8e4;}function or(_0x550114){const _0x575213=_0x598a93,_0x1b92aa=_0x550114[_0x575213(0x1f7)](','),_0x14f23f=[];for(const _0x24cc59 of _0x1b92aa){const [_0x1609e0,_0x4dc1ff,_0x277896]=_0x24cc59['split'](':');_0x14f23f[_0x575213(0x34e)]({'startOffset':Number(_0x1609e0),'endOffset':Number(_0x4dc1ff),'collapsed':_0x1609e0===_0x4dc1ff,'isActive':_0x277896==='1'});}return _0x14f23f[_0x575213(0x3ee)](_0x141977=>_0x141977['isActive'])||(_0x14f23f[0x0][_0x575213(0x373)]=!0x0),_0x14f23f;}class Bt extends _0x39a217{constructor(){const _0x5ac2a1=_0x598a93;super(...arguments),l(this,'_collabCursorState$',new _0x59597c(null)),l(this,_0x5ac2a1(0x18e),this[_0x5ac2a1(0x194)]['asObservable']());}[_0x598a93(0x3b2)](_0x14e625){const _0x3f1bd0=_0x598a93,{unitID:_0xaf30c6,memberID:_0x26a7dc,textRanges:_0x2d513c}=_0x14e625,_0xfbc56e=xs(_0x2d513c),_0x286ca4={'unitID':_0xaf30c6,'memberID':_0x26a7dc,'selection':_0xfbc56e};this[_0x3f1bd0(0x194)][_0x3f1bd0(0x12a)](_0x286ca4);}}var ar=Object['defineProperty'],cr=Object[_0x598a93(0x1cb)],hr=(_0x13edbc,_0x196f41,_0x49907d,_0x512d06)=>{const _0x1568c2=_0x598a93;for(var _0x236a15=_0x512d06>0x1?void 0x0:_0x512d06?cr(_0x196f41,_0x49907d):_0x196f41,_0x7f2c7b=_0x13edbc[_0x1568c2(0x45e)]-0x1,_0x590546;_0x7f2c7b>=0x0;_0x7f2c7b--)(_0x590546=_0x13edbc[_0x7f2c7b])&&(_0x236a15=(_0x512d06?_0x590546(_0x196f41,_0x49907d,_0x236a15):_0x590546(_0x236a15))||_0x236a15);return _0x512d06&&_0x236a15&&ar(_0x196f41,_0x49907d,_0x236a15),_0x236a15;},hs=(_0xc12ee5,_0x514dc3)=>(_0x5fa056,_0x4064b2)=>_0x514dc3(_0x5fa056,_0x4064b2,_0xc12ee5);let Xe=class{constructor(_0x2afc82,_0x16e681){const _0x52d299=_0x598a93;this[_0x52d299(0x120)]=_0x2afc82,this[_0x52d299(0x1d1)]=_0x16e681;}[_0x598a93(0x304)](_0x2f24e9){const _0x3273f2=_0x598a93;var _0x4d529f;const _0x39ee6=this['_injector']['get'](_0x42d514),_0x187dd0=(_0x4d529f=_0x39ee6[_0x3273f2(0x2ce)]())!=null?_0x4d529f:[];if(_0x187dd0[_0x3273f2(0x45e)]===0x0)return;const _0x27e272=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2f24e9[_0x3273f2(0x3a6)],'actions':null,'textRanges':_0x187dd0}}],_0x322b2a=this[_0x3273f2(0x1d1)][_0x3273f2(0x3cc)](_0x2f24e9,_0x27e272);if(!_0x347ce0(_0x322b2a))throw _0x322b2a[_0x3273f2(0x379)];const _0x11003f=_0x322b2a[_0x3273f2(0x13b)][0x0][_0x3273f2(0x27e)]['textRanges'];Array[_0x3273f2(0x38e)](_0x11003f)&&_0x11003f[_0x3273f2(0x45e)]&&_0x39ee6[_0x3273f2(0x269)](_0x11003f,!0x1);}};Xe=hr([hs(0x0,_0x592774(_0x579617)),hs(0x1,_0x4cfc78)],Xe);const lr=new Set([_0x365d49['id']]);function ls(_0x38dbbc,_0xdad9a7,_0x3fab9f,_0x437e5e,_0x817a57){const _0xebd8e7=_0x598a93;var _0xbdf362,_0x360005,_0x442336,_0x2636c6;const _0x3ffbe5=[];for(const _0x4c3e0c of _0x38dbbc)if(lr[_0xebd8e7(0x1af)](_0x4c3e0c['id'])){if(_0x3ffbe5[_0xebd8e7(0x45e)]>0x0)break;_0x3ffbe5[_0xebd8e7(0x34e)](_0x4c3e0c);break;}else _0x3ffbe5['push'](_0x4c3e0c);const _0x2fd9d4=(_0x360005=(_0xbdf362=_0x817a57[_0xebd8e7(0x2d5)]())==null?void 0x0:_0xbdf362[_0xebd8e7(0x22f)])!=null?_0x360005:_0xebd8e7(0x117),_0x52053d=(_0x2636c6=(_0x442336=_0x817a57[_0xebd8e7(0x2d5)]())==null?void 0x0:_0x442336[_0xebd8e7(0x1b2)])!=null?_0x2636c6:_0xebd8e7(0x117);return{'changeset':{'unitID':_0xdad9a7,'type':_0x3dbbe0(_0x3fab9f[_0xebd8e7(0x402)](_0xdad9a7)),'baseRev':_0x437e5e[_0xebd8e7(0x16f)](_0xdad9a7),'revision':0x0,'userID':_0x2fd9d4,'memberID':_0x52053d,'mutations':_0x3ffbe5},'pendingMutations':_0x38dbbc[_0xebd8e7(0x145)](_0x3ffbe5[_0xebd8e7(0x45e)])};}function _r(_0x1918cd,_0x2e0e72,_0x435a7f,_0x35ca70,_0x4ff89f){const _0x5af702=_0x598a93;var _0x317800,_0x5c9368,_0x2c6167,_0x403e3e;const _0x2b77d1=[_0x1918cd['reduce']((_0x39246d,_0x133503)=>{const _0x521bd3=_0x5340;var _0x416a7e;const {id:_0x2d9c4c}=_0x39246d,{id:_0x5a6134,type:_0x2fbb46}=_0x133503,_0x71a763=(_0x416a7e=_0x39246d[_0x521bd3(0x27e)])!=null?_0x416a7e:{'actions':null},_0x4578b3=_0x133503['params'];if(_0x2d9c4c&&_0x2d9c4c!==_0x5a6134)throw new Error(_0x521bd3(0x1de)+_0x2d9c4c+'\x20-\x20'+_0x5a6134+'.');return{..._0x39246d,'id':_0x5a6134,'type':_0x2fbb46,'params':{'unitId':_0x4578b3[_0x521bd3(0x46f)],'textRanges':_0x4578b3[_0x521bd3(0x2b9)],'actions':_0xae478c[_0x521bd3(0x417)](_0x71a763[_0x521bd3(0x394)],_0x4578b3['actions'])}};},{})],_0x57a6b8=(_0x5c9368=(_0x317800=_0x4ff89f[_0x5af702(0x2d5)]())==null?void 0x0:_0x317800[_0x5af702(0x22f)])!=null?_0x5c9368:_0x5af702(0x117),_0x517c75=(_0x403e3e=(_0x2c6167=_0x4ff89f[_0x5af702(0x2d5)]())==null?void 0x0:_0x2c6167[_0x5af702(0x1b2)])!=null?_0x403e3e:_0x5af702(0x117);return{'changeset':{'unitID':_0x2e0e72,'type':_0x3dbbe0(_0x435a7f['getUnitType'](_0x2e0e72)),'baseRev':_0x35ca70['getCurrentRevOfUnit'](_0x2e0e72),'revision':0x0,'userID':_0x57a6b8,'memberID':_0x517c75,'mutations':_0x2b77d1},'pendingMutations':[]};}const ur={'id':_0x3f7cff['id'],'type':_0x1887aa[_0x598a93(0x307)],'params':{}};var dr=Object[_0x598a93(0x171)],fr=Object[_0x598a93(0x1cb)],le=(_0x404a11,_0x4c6cd8,_0x315fb0,_0x2393cc)=>{const _0x5b8028=_0x598a93;for(var _0x1044e9=_0x2393cc>0x1?void 0x0:_0x2393cc?fr(_0x4c6cd8,_0x315fb0):_0x4c6cd8,_0x5a4fa2=_0x404a11[_0x5b8028(0x45e)]-0x1,_0x1005a8;_0x5a4fa2>=0x0;_0x5a4fa2--)(_0x1005a8=_0x404a11[_0x5a4fa2])&&(_0x1044e9=(_0x2393cc?_0x1005a8(_0x4c6cd8,_0x315fb0,_0x1044e9):_0x1005a8(_0x1044e9))||_0x1044e9);return _0x2393cc&&_0x1044e9&&dr(_0x4c6cd8,_0x315fb0,_0x1044e9),_0x1044e9;},m=(_0x1553a7,_0x5c0ee9)=>(_0x258e9b,_0x4efeb1)=>_0x5c0ee9(_0x258e9b,_0x4efeb1,_0x1553a7),w=(_0x3ef5d0=>(_0x3ef5d0['NOT_COLLAB']=_0x598a93(0x2fe),_0x3ef5d0[_0x598a93(0x329)]=_0x598a93(0x33d),_0x3ef5d0['PENDING']=_0x598a93(0x1c5),_0x3ef5d0['AWAITING']=_0x598a93(0x30d),_0x3ef5d0['AWAITING_WITH_PENDING']=_0x598a93(0x13d),_0x3ef5d0['FETCH_MISS']='fetch_missing',_0x3ef5d0[_0x598a93(0x228)]=_0x598a93(0x219),_0x3ef5d0[_0x598a93(0x11d)]=_0x598a93(0x234),_0x3ef5d0))(w||{});class _e{constructor(_0x476a9d,_0xc160bf,_0x31df3a,_0x374a13,_0x563409,_0x1cdeae,_0x2ed211,_0x32391,_0x14a848){const _0x5e710b=_0x598a93;l(this,_0x5e710b(0x291),null),l(this,_0x5e710b(0x26c),[]),(this[_0x5e710b(0x3a6)]=_0x476a9d,this[_0x5e710b(0x29d)]=_0xc160bf,this['_handler']=_0x563409,this[_0x5e710b(0x297)]=_0x1cdeae,this['_undoRedoService']=_0x2ed211,this[_0x5e710b(0x2b1)]=_0x32391,this[_0x5e710b(0x2fc)]=_0x14a848,this['_awaitingChangeset']=_0x31df3a,this[_0x5e710b(0x26c)]=_0x374a13);}['_checkMissing'](_0x3fb1c9){const _0x265112=_0x598a93,_0x3a3cf8=this['_revisionService'][_0x265112(0x16f)](this[_0x265112(0x3a6)]);return _0x3fb1c9[_0x265112(0x43d)]>_0x3a3cf8+0x1?(this[_0x265112(0x32e)][_0x265112(0x425)]({'from':_0x3a3cf8,'to':_0x3fb1c9[_0x265112(0x43d)]-0x1}),!0x0):!0x1;}[_0x598a93(0x161)](_0x120e28){const _0x574b1b=_0x598a93;this[_0x574b1b(0x233)][_0x574b1b(0x26f)](this['unitID'],_0x120e28);}[_0x598a93(0x43b)](_0x42f4c5){const _0x1f9b67=_0x598a93;var _0x275334,_0x48b6bf;(_0x48b6bf=(_0x275334=this[_0x1f9b67(0x32e)])['onTransformSelections'])==null||_0x48b6bf[_0x1f9b67(0x327)](_0x275334,_0x42f4c5);}[_0x598a93(0x399)](_0x21cef0){const _0x59244b=_0x598a93;var _0x4769d2,_0x2b1610;return(_0x2b1610=(_0x4769d2=this['_handler'])[_0x59244b(0x13c)])==null?void 0x0:_0x2b1610[_0x59244b(0x327)](_0x4769d2,_0x21cef0);}[_0x598a93(0x190)](_0x1a8ad7){const _0x36b59f=_0x598a93;var _0x305c0f,_0x17f2f6,_0x36cb68;return(_0x36cb68=(_0x17f2f6=(_0x305c0f=this[_0x36b59f(0x32e)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x17f2f6[_0x36b59f(0x327)](_0x305c0f,_0x1a8ad7))!=null?_0x36cb68:_0x1a8ad7;}['_syncEditingCollabCursor'](_0x57219c){const _0x5dc88a=_0x598a93;var _0x2ba080,_0x528fc6;if(this[_0x5dc88a(0x29d)]===H[_0x5dc88a(0x17d)]){const {unitID:_0x31ae36,mutations:_0x1aceca,memberID:_0x531398}=_0x57219c,_0x251663=_0x1aceca[0x0][_0x5dc88a(0x27e)][_0x5dc88a(0x2b9)];Array['isArray'](_0x251663)&&_0x251663[_0x5dc88a(0x45e)]>0x0&&((_0x528fc6=(_0x2ba080=this[_0x5dc88a(0x32e)])[_0x5dc88a(0x169)])==null||_0x528fc6[_0x5dc88a(0x327)](_0x2ba080,{'unitID':_0x31ae36,'memberID':_0x531398,'textRanges':_0x251663}));}}[_0x598a93(0x239)](){const _0x47abf3=_0x598a93;this[_0x47abf3(0x2fc)][_0x47abf3(0x176)](this[_0x47abf3(0x3a6)],this[_0x47abf3(0x29d)],this[_0x47abf3(0x291)],this[_0x47abf3(0x26c)]);}[_0x598a93(0x39c)](){const _0x2c716a=_0x598a93;return this[_0x2c716a(0x2b1)][_0x2c716a(0x16f)](this['unitID']);}[_0x598a93(0x15a)](){const _0xf8c89=_0x598a93;this[_0xf8c89(0x2b1)][_0xf8c89(0x247)](this[_0xf8c89(0x3a6)]);}[_0x598a93(0x300)](_0x3502d7){const _0x451cb2=_0x598a93;var _0x3d20de;const _0x231b6c=this[_0x451cb2(0x190)](_0x3502d7),_0x152c12=_0x4a38aa(_0x231b6c['mutations'],this[_0x451cb2(0x297)],{'fromCollab':!0x0});if(!_0x152c12[_0x451cb2(0x165)])throw _0x152c12[_0x451cb2(0x379)]instanceof Error?_0x152c12[_0x451cb2(0x379)]:new Error((_0x3d20de=_0x152c12['error'])!=null?_0x3d20de:_0x451cb2(0x485));this['_transformIMECache'](_0x231b6c),this['_transformUndoredo'](_0x3502d7),this[_0x451cb2(0x43b)](_0x231b6c),this[_0x451cb2(0x11f)](_0x231b6c),this[_0x451cb2(0x15a)]();}}let Se=class extends _e{constructor(_0x482599,_0x3d7b7d,_0x3bf9d6,_0x565dee,_0x22913e,_0x110a02,_0x48ae74,_0x576226,_0x2c733f,_0x48ab51){const _0x112868=_0x598a93;super(_0x482599,_0x3d7b7d,null,[],_0x3bf9d6,_0x576226,_0x48ae74,_0x565dee,_0x22913e),l(this,'status',_0x112868(0x33d)),(this['_injector']=_0x110a02,this[_0x112868(0x345)]=_0x2c733f,this[_0x112868(0x1d1)]=_0x48ab51);}[_0x598a93(0x221)](_0x23826c){const _0x391fc0=_0x598a93,_0x55078a=this[_0x391fc0(0x120)][_0x391fc0(0x466)](K,this[_0x391fc0(0x3a6)],this[_0x391fc0(0x29d)],[_0x23826c],this[_0x391fc0(0x32e)]);return _0x55078a[_0x391fc0(0x367)](),_0x55078a['_updateLocalCache'](),_0x55078a;}[_0x598a93(0x240)](_0xf45c3d){const _0x4c64a6=_0x598a93;if(this['_checkMissing'](_0xf45c3d))return this[_0x4c64a6(0x120)][_0x4c64a6(0x466)](k,this[_0x4c64a6(0x3a6)],this[_0x4c64a6(0x29d)],null,[],null,[_0xf45c3d],this['_handler']);try{const _0x398327=this[_0x4c64a6(0x1d1)]['transformMutationsWithChangeset'](_0xf45c3d,[ur]);if(_0x347ce0(_0x398327)){const {c1Prime:_0x44362d}=_0x398327;return this[_0x4c64a6(0x300)](_0x44362d),this;}throw _0x398327[_0x4c64a6(0x379)];}catch(_0x4d9e63){return this[_0x4c64a6(0x345)]['error'](_0x4d9e63),this[_0x4c64a6(0x2ff)](!0x1);}}['_onConflict'](_0x1bc8fe){const _0x2b199b=_0x598a93;return this[_0x2b199b(0x120)]['createInstance'](Q,this[_0x2b199b(0x3a6)],this[_0x2b199b(0x29d)],null,[],this['_handler'],_0x1bc8fe);}['onRemoteAck'](){const _0xe8c316=_0x598a93;throw new Error(_0xe8c316(0x124));}[_0x598a93(0x29e)](){const _0x44d0e5=_0x598a93;throw new Error(_0x44d0e5(0x1cf));}['toggleOffline'](){const _0x5478db=_0x598a93;return this['_injector'][_0x5478db(0x466)](ee,this[_0x5478db(0x3a6)],this[_0x5478db(0x29d)],null,[],this[_0x5478db(0x32e)]);}[_0x598a93(0x415)](){return this;}[_0x598a93(0x141)](){const _0x3d9a53=_0x598a93;throw new Error(_0x3d9a53(0x3d8));}['fetchMiss'](){const _0x1b24f7=_0x598a93,_0x36bd88=this[_0x1b24f7(0x2b1)]['getCurrentRevOfUnit'](this['unitID']);return this['_handler'][_0x1b24f7(0x425)]({'from':_0x36bd88,'to':0x0}),this[_0x1b24f7(0x120)][_0x1b24f7(0x466)](k,this['unitID'],this[_0x1b24f7(0x29d)],null,[],null,[],this[_0x1b24f7(0x32e)]);}};Se=le([m(0x3,_0x592774(_0x3fcef9)),m(0x4,_0x592774(D)),m(0x5,_0x592774(_0x579617)),m(0x6,_0x3f0b63),m(0x7,_0xbb225b),m(0x8,_0x1281de),m(0x9,_0x4cfc78)],Se);let K=class extends _e{constructor(_0x1ccfa3,_0x47de0e,_0x2579d5,_0x561448,_0x10adcf,_0x5dc7e5,_0x2f5c1b,_0x3c6470,_0x35e00d,_0x123f98,_0x77383,_0x5ab6cd,_0xafd8d4,_0x46b4d4){const _0x56caf0=_0x598a93;super(_0x1ccfa3,_0x47de0e,null,_0x2579d5,_0x561448,_0x123f98,_0x46b4d4,_0x5dc7e5,_0x2f5c1b),l(this,'status','pending'),l(this,'_scheduleTimestamp',null),l(this,'_sendingTimer',null),(this['_injector']=_0x10adcf,this[_0x56caf0(0x348)]=_0x3c6470,this[_0x56caf0(0x345)]=_0x35e00d,this[_0x56caf0(0x2c2)]=_0x77383,this[_0x56caf0(0x1d1)]=_0x5ab6cd,this[_0x56caf0(0x343)]=_0xafd8d4);}[_0x598a93(0x221)](_0x51922d){const _0x12dbd2=_0x598a93;return this[_0x12dbd2(0x26c)]['push'](_0x51922d),this[_0x12dbd2(0x239)](),this;}[_0x598a93(0x240)](_0x3bf2ad){const _0x13ee12=_0x598a93;if(this[_0x13ee12(0x211)](_0x3bf2ad))return this[_0x13ee12(0x206)](),this[_0x13ee12(0x120)][_0x13ee12(0x466)](k,this['unitID'],this['type'],null,this[_0x13ee12(0x26c)],null,[_0x3bf2ad],this[_0x13ee12(0x32e)]);try{const _0x3d4698=this['_transformService'][_0x13ee12(0x3cc)](_0x3bf2ad,this[_0x13ee12(0x26c)]);if(_0x347ce0(_0x3d4698)){const {c1Prime:_0x3e142c,m2Prime:_0xf2db55}=_0x3d4698;this['_executeRemoteChangeset'](_0x3e142c);const _0x176eb8=this[_0x13ee12(0x120)][_0x13ee12(0x466)](K,this[_0x13ee12(0x3a6)],this[_0x13ee12(0x29d)],_0xf2db55,this[_0x13ee12(0x32e)]);return this[_0x13ee12(0x206)](),_0x176eb8['_schedule'](this['_scheduleTimestamp']?Math[_0x13ee12(0x23c)](0x0,new Date()[_0x13ee12(0x1fb)]()-this['_scheduleTimestamp']):this[_0x13ee12(0x27a)]()),_0x176eb8;}throw _0x3d4698['error'];}catch(_0x45a374){return this[_0x13ee12(0x345)][_0x13ee12(0x379)](_0x45a374),this[_0x13ee12(0x2ff)](!0x1);}}['onRemoteAck'](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x598a93(0x29e)](){const _0x5325f8=_0x598a93;throw new Error(_0x5325f8(0x40e));}[_0x598a93(0x16e)](){const _0x3c12e3=_0x598a93;return this[_0x3c12e3(0x206)](),this[_0x3c12e3(0x120)][_0x3c12e3(0x466)](ee,this[_0x3c12e3(0x3a6)],this[_0x3c12e3(0x29d)],null,this['_pendingMutations'],this[_0x3c12e3(0x32e)]);}['toggleOnline'](){return this;}[_0x598a93(0x367)](_0x25c025){const _0x25955d=_0x598a93,_0x33417d=_0x25c025!=null?_0x25c025:this[_0x25955d(0x27a)]();this[_0x25955d(0x1c2)]=new Date()[_0x25955d(0x1fb)](),this[_0x25955d(0x20b)]=window['setTimeout'](()=>{const _0x213146=_0x25955d;this[_0x213146(0x206)]();let _0x2b74ee=null;switch(this['type']){case H[_0x213146(0x174)]:{_0x2b74ee=ls(this[_0x213146(0x26c)],this['unitID'],this[_0x213146(0x343)],this[_0x213146(0x2b1)],this[_0x213146(0x348)]);break;}case H['UNIVER_DOC']:{this[_0x213146(0x26c)]['every'](_0x2e6109=>_0x2e6109['id']===_0x37a233['id'])?_0x2b74ee=_r(this['_pendingMutations'],this['unitID'],this['_univerInstanceService'],this[_0x213146(0x2b1)],this[_0x213146(0x348)]):_0x2b74ee=ls(this['_pendingMutations'],this[_0x213146(0x3a6)],this[_0x213146(0x343)],this['_revisionService'],this[_0x213146(0x348)]);break;}default:throw new Error(_0x213146(0x284)+this[_0x213146(0x29d)]+_0x213146(0x1e2));}const {changeset:_0x584d96,pendingMutations:_0x5c935b}=_0x2b74ee;this[_0x213146(0x32e)]['onSendChangeset'](_0x584d96);const _0x2916a1=_0x5c935b[_0x213146(0x45e)]?this['_injector']['createInstance'](X,this[_0x213146(0x3a6)],this[_0x213146(0x29d)],_0x584d96,_0x5c935b,this[_0x213146(0x32e)]):this['_injector'][_0x213146(0x466)](Z,this[_0x213146(0x3a6)],this[_0x213146(0x29d)],_0x584d96,this[_0x213146(0x32e)]);_0x2916a1[_0x213146(0x239)](),this['_handler'][_0x213146(0x335)](this,_0x2916a1);},_0x33417d);}[_0x598a93(0x27a)](){const _0x1ddd6b=_0x598a93;var _0x48563b;const _0xe2daf8=this[_0x1ddd6b(0x2c2)][_0x1ddd6b(0x12d)](L);return(_0x48563b=_0xe2daf8==null?void 0x0:_0xe2daf8[_0x1ddd6b(0x17c)])!=null?_0x48563b:gn;}[_0x598a93(0x141)](){const _0x2a48bc=_0x598a93;throw new Error(_0x2a48bc(0x3ad));}[_0x598a93(0x206)](){const _0x2d18dc=_0x598a93;this[_0x2d18dc(0x20b)]!=null&&(clearTimeout(this[_0x2d18dc(0x20b)]),this[_0x2d18dc(0x20b)]=null);}[_0x598a93(0x2ff)](_0x55d06a){const _0x1fa1b6=_0x598a93;return this['_clearScheduledTask'](),this[_0x1fa1b6(0x120)][_0x1fa1b6(0x466)](Q,this[_0x1fa1b6(0x3a6)],this['type'],null,this['_pendingMutations'],this[_0x1fa1b6(0x32e)],_0x55d06a);}};K=le([m(0x4,_0x592774(_0x579617)),m(0x5,_0x592774(_0x3fcef9)),m(0x6,_0x592774(D)),m(0x7,_0x592774(ae)),m(0x8,_0x1281de),m(0x9,_0xbb225b),m(0xa,_0x3fc6a0),m(0xb,_0x4cfc78),m(0xc,_0x191290),m(0xd,_0x3f0b63)],K);let Z=class extends _e{constructor(_0x19bc22,_0x702ea,_0x2b9d6d,_0x11fd26,_0x20a77f,_0x12221e,_0x154fa0,_0xb9751a,_0x24119c,_0x4bc6cb,_0x4ecda5){const _0x338310=_0x598a93;super(_0x19bc22,_0x702ea,_0x2b9d6d,[],_0x11fd26,_0xb9751a,_0x4ecda5,_0x12221e,_0x154fa0),l(this,_0x338310(0x454),_0x338310(0x30d)),(this[_0x338310(0x120)]=_0x20a77f,this[_0x338310(0x345)]=_0x24119c,this[_0x338310(0x1d1)]=_0x4bc6cb);}['appendMutation'](_0xdf6bcf){const _0x4001c3=_0x598a93,_0x123d9b=this['_injector'][_0x4001c3(0x466)](X,this[_0x4001c3(0x3a6)],this[_0x4001c3(0x29d)],this[_0x4001c3(0x291)],[_0xdf6bcf],this[_0x4001c3(0x32e)]);return _0x123d9b[_0x4001c3(0x239)](),_0x123d9b;}[_0x598a93(0x240)](_0x34e02f){const _0x4afb13=_0x598a93;if(this[_0x4afb13(0x211)](_0x34e02f))return this[_0x4afb13(0x120)][_0x4afb13(0x466)](k,this['unitID'],this['type'],this['_awaitingChangeset'],[],null,[_0x34e02f],this[_0x4afb13(0x32e)]);try{const _0x229e54=this['_transformService'][_0x4afb13(0x28d)]([_0x34e02f],[this[_0x4afb13(0x291)]],!0x1);if(_0x78f6fa(_0x229e54)){const {c1Prime:_0x1ccdcc,c2Prime:_0x1c3122}=_0x229e54;this[_0x4afb13(0x300)](_0x1ccdcc[0x0]),_0x1c3122[0x0][_0x4afb13(0x2ed)]=this[_0x4afb13(0x39c)]();const _0x2dfaf0=this['_injector'][_0x4afb13(0x466)](Z,this[_0x4afb13(0x3a6)],this[_0x4afb13(0x29d)],_0x1c3122[0x0],this['_handler']);return _0x2dfaf0[_0x4afb13(0x239)](),_0x2dfaf0;}return this[_0x4afb13(0x2ff)](!0x1);}catch(_0x2acd83){return this[_0x4afb13(0x345)][_0x4afb13(0x379)](_0x2acd83),this['_onConflict'](!0x1);}}['onRemoteAck'](_0xd75991){const _0x2b62b2=_0x598a93,_0x3435f1=this['_revisionService'][_0x2b62b2(0x16f)](this[_0x2b62b2(0x3a6)]);if(_0xd75991[_0x2b62b2(0x43d)]<_0x3435f1-0x1)return this;if(this[_0x2b62b2(0x211)](_0xd75991))return this[_0x2b62b2(0x120)]['createInstance'](k,this[_0x2b62b2(0x3a6)],this[_0x2b62b2(0x29d)],null,[],this[_0x2b62b2(0x291)],[],this[_0x2b62b2(0x32e)]);this[_0x2b62b2(0x15a)]();const _0xe9ccf4=this[_0x2b62b2(0x120)][_0x2b62b2(0x466)](Se,this[_0x2b62b2(0x3a6)],this['type'],this[_0x2b62b2(0x32e)]);return _0xe9ccf4[_0x2b62b2(0x239)](),_0xe9ccf4;}[_0x598a93(0x29e)](_0xf6d3e0){const _0x3ad2fd=_0x598a93;return this['_onConflict'](!!(_0xf6d3e0!=null&&_0xf6d3e0[_0x3ad2fd(0x366)]));}[_0x598a93(0x16e)](){const _0x3e20d2=_0x598a93;return this[_0x3e20d2(0x120)][_0x3e20d2(0x466)](ee,this['unitID'],this[_0x3e20d2(0x29d)],this[_0x3e20d2(0x291)],[],this[_0x3e20d2(0x32e)]);}['toggleOnline'](){return this;}[_0x598a93(0x141)](){const _0x3ceaf1=_0x598a93;this[_0x3ceaf1(0x32e)][_0x3ceaf1(0x1a3)](this[_0x3ceaf1(0x291)]);}[_0x598a93(0x2ff)](_0xa4ab60){const _0x3cef7e=_0x598a93;return this['_injector'][_0x3cef7e(0x466)](Q,this[_0x3cef7e(0x3a6)],this[_0x3cef7e(0x29d)],this[_0x3cef7e(0x291)],[],this[_0x3cef7e(0x32e)],_0xa4ab60);}};function _0x5340(_0x5ac105,_0x58421f){const _0x3306ec=_0x3306();return _0x5340=function(_0x5340e3,_0x5d8143){_0x5340e3=_0x5340e3-0x116;let _0x3ced3f=_0x3306ec[_0x5340e3];return _0x3ced3f;},_0x5340(_0x5ac105,_0x58421f);}Z=le([m(0x4,_0x592774(_0x579617)),m(0x5,_0x592774(_0x3fcef9)),m(0x6,_0x592774(D)),m(0x7,_0xbb225b),m(0x8,_0x1281de),m(0x9,_0x4cfc78),m(0xa,_0x3f0b63)],Z);let X=class extends _e{constructor(_0x5506d4,_0x5aafd1,_0x3cc4dc,_0x123375,_0x221600,_0x4b3b34,_0x3f11cf,_0x43d1da,_0x24a136,_0x6a43cc,_0x155cd1,_0x3f357e){const _0x548e63=_0x598a93;super(_0x5506d4,_0x5aafd1,_0x3cc4dc,_0x123375,_0x221600,_0x24a136,_0x3f357e,_0x3f11cf,_0x43d1da),l(this,_0x548e63(0x454),_0x548e63(0x13d)),(this[_0x548e63(0x120)]=_0x4b3b34,this[_0x548e63(0x345)]=_0x6a43cc,this[_0x548e63(0x1d1)]=_0x155cd1);}[_0x598a93(0x221)](_0xc52b67){const _0x1c69a3=_0x598a93;return this[_0x1c69a3(0x26c)][_0x1c69a3(0x34e)](_0xc52b67),this;}['onRemoteChangeset'](_0xa01979){const _0x2a45dd=_0x598a93;if(this[_0x2a45dd(0x211)](_0xa01979))return this[_0x2a45dd(0x120)]['createInstance'](k,this['unitID'],this[_0x2a45dd(0x29d)],this[_0x2a45dd(0x291)],this[_0x2a45dd(0x26c)],null,[_0xa01979],this['_handler']);try{const _0x3fe058=this[_0x2a45dd(0x1d1)][_0x2a45dd(0x28d)]([_0xa01979],[this['_awaitingChangeset']],!0x1);if(_0x78f6fa(_0x3fe058)){const {c1Prime:_0x5aa97b,c2Prime:_0x267df1}=_0x3fe058,_0x40c67d=this['_transformService'][_0x2a45dd(0x3cc)](_0x5aa97b[0x0],this[_0x2a45dd(0x26c)]);if(_0x347ce0(_0x40c67d)){const {c1Prime:_0x4ef4e9,m2Prime:_0x2a07fc}=_0x40c67d;return this[_0x2a45dd(0x300)](_0x4ef4e9),_0x267df1[0x0][_0x2a45dd(0x2ed)]=this[_0x2a45dd(0x39c)](),this[_0x2a45dd(0x120)][_0x2a45dd(0x466)](X,this[_0x2a45dd(0x3a6)],this[_0x2a45dd(0x29d)],_0x267df1[0x0],_0x2a07fc,this[_0x2a45dd(0x32e)]);}throw _0x40c67d[_0x2a45dd(0x379)];}throw _0x3fe058[_0x2a45dd(0x379)];}catch(_0x4393e2){return this[_0x2a45dd(0x345)]['error'](_0x4393e2),this[_0x2a45dd(0x2ff)](!0x1);}}[_0x598a93(0x334)](_0x5f5609){const _0x44eec0=_0x598a93;if(this[_0x44eec0(0x211)](_0x5f5609))return this[_0x44eec0(0x120)]['createInstance'](k,this['unitID'],this[_0x44eec0(0x29d)],null,this[_0x44eec0(0x26c)],this[_0x44eec0(0x291)],[],this[_0x44eec0(0x32e)]);this[_0x44eec0(0x15a)]();const _0x9fc814=this['_injector'][_0x44eec0(0x466)](K,this['unitID'],this[_0x44eec0(0x29d)],this['_pendingMutations'],this[_0x44eec0(0x32e)]);return _0x9fc814[_0x44eec0(0x367)](),_0x9fc814[_0x44eec0(0x239)](),_0x9fc814;}[_0x598a93(0x29e)](_0x435e82){const _0x21ef38=_0x598a93;return this[_0x21ef38(0x2ff)](!!(_0x435e82!=null&&_0x435e82[_0x21ef38(0x366)]));}[_0x598a93(0x16e)](){const _0x1d6e7d=_0x598a93;return this[_0x1d6e7d(0x120)][_0x1d6e7d(0x466)](ee,this['unitID'],this[_0x1d6e7d(0x29d)],this['_awaitingChangeset'],this[_0x1d6e7d(0x26c)],this[_0x1d6e7d(0x32e)]);}[_0x598a93(0x415)](){return this;}[_0x598a93(0x141)](){const _0x13f74e=_0x598a93;this['_handler'][_0x13f74e(0x1a3)](this[_0x13f74e(0x291)]);}[_0x598a93(0x2ff)](_0x4a24bc){const _0x57ae4b=_0x598a93;return this[_0x57ae4b(0x120)][_0x57ae4b(0x466)](Q,this[_0x57ae4b(0x3a6)],this[_0x57ae4b(0x29d)],null,this[_0x57ae4b(0x26c)],this[_0x57ae4b(0x32e)],_0x4a24bc);}};X=le([m(0x5,_0x592774(_0x579617)),m(0x6,_0x592774(_0x3fcef9)),m(0x7,_0x592774(D)),m(0x8,_0xbb225b),m(0x9,_0x1281de),m(0xa,_0x4cfc78),m(0xb,_0x3f0b63)],X);let Q=class extends _e{constructor(_0x120c8b,_0x2654a8,_0x1a7f7a,_0x339a84,_0x10e2d6,_0x12d248=!0x1,_0x5e6c4d,_0x1aba54,_0x5d1ef1,_0x47e2b0,_0x256156,_0x1a439a,_0x256e09){const _0x140a2f=_0x598a93;super(_0x120c8b,_0x2654a8,_0x1a7f7a,_0x339a84,_0x10e2d6,_0x1aba54,_0x5d1ef1,_0x256156,_0x47e2b0),l(this,_0x140a2f(0x454),'conflict'),(this['_isPermissionRej']=_0x12d248,this[_0x140a2f(0x261)]=_0x5e6c4d,this[_0x140a2f(0x333)]=_0x1a439a,this[_0x140a2f(0x157)]=_0x256e09,this[_0x140a2f(0x39f)](),this[_0x140a2f(0x420)](),this['_disableEditing']());}['appendMutation'](){return this;}[_0x598a93(0x240)](){return this;}[_0x598a93(0x334)](){return this;}['onRemoteRej'](){return this;}[_0x598a93(0x16e)](){return this;}[_0x598a93(0x415)](){return this;}['resend'](){const _0x498e01=_0x598a93;throw new Error(_0x498e01(0x1e6));}[_0x598a93(0x420)](){const _0xe76bec=_0x598a93;this[_0xe76bec(0x2fc)][_0xe76bec(0x176)](this[_0xe76bec(0x3a6)],this[_0xe76bec(0x29d)],null,[]);}[_0x598a93(0x39f)](){const _0x49dc96=_0x598a93;this[_0x49dc96(0x3f6)]?this[_0x49dc96(0x157)][_0x49dc96(0x21e)]({'title':this['_localeService']['t']('permission.title'),'content':this[_0x49dc96(0x333)]['t']('permission.content'),'type':_0x49dc96(0x379),'duration':0x0}):this[_0x49dc96(0x157)][_0x49dc96(0x21e)]({'title':this['_localeService']['t']('conflict.title'),'content':this[_0x49dc96(0x333)]['t'](_0x49dc96(0x2db)),'type':_0x49dc96(0x379),'duration':0x0});}['_disableEditing'](){const _0x377bdc=_0x598a93;this['_permissionService'][_0x377bdc(0x306)](new _0x1d1f35(this[_0x377bdc(0x3a6)])['id'],!0x1);}};Q=le([m(0x6,_0x592774(_0x28af49)),m(0x7,_0xbb225b),m(0x8,_0x3f0b63),m(0x9,_0x592774(D)),m(0xa,_0x592774(_0x3fcef9)),m(0xb,_0x592774(_0x2af7ec)),m(0xc,_0x2d6a0c)],Q);let ee=class extends _e{constructor(_0x46ef6f,_0x3b2bee,_0x4ca102,_0x342b37,_0x28de39,_0x14041d,_0x13611,_0x3ba8d6,_0x252108,_0x186b9c){const _0x36c8e8=_0x598a93;super(_0x46ef6f,_0x3b2bee,_0x4ca102,_0x342b37,_0x28de39,_0x252108,_0x186b9c,_0x13611,_0x3ba8d6),l(this,_0x36c8e8(0x454),_0x36c8e8(0x234)),this[_0x36c8e8(0x120)]=_0x14041d;}['appendMutation'](_0x42c030){const _0xafc481=_0x598a93;return this[_0xafc481(0x26c)]['push'](_0x42c030),this[_0xafc481(0x239)](),this;}[_0x598a93(0x240)](_0x15fc1c){const _0x355e17=_0x598a93;throw new Error(_0x355e17(0x3a3));}[_0x598a93(0x334)](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){throw new Error('[OfflineState]:\x20received\x20rejection.');}[_0x598a93(0x16e)](){return this;}['toggleOnline'](){const _0x4bc746=_0x598a93,{_injector:_0x306334,_pendingMutations:_0x4fc093,_awaitingChangeset:_0x9b915f,unitID:_0x1feecf,_handler:_0x2bc647,type:_0x3124e1}=this,_0x3b430c=Hs(_0x306334,_0x1feecf,_0x3124e1,_0x9b915f,_0x4fc093,_0x2bc647);return _0x3b430c instanceof K?_0x3b430c[_0x4bc746(0x367)]():(_0x3b430c instanceof X||_0x3b430c instanceof Z)&&_0x3b430c[_0x4bc746(0x141)](),_0x3b430c;}['resend'](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};ee=le([m(0x5,_0x592774(_0x579617)),m(0x6,_0x592774(_0x3fcef9)),m(0x7,_0x592774(D)),m(0x8,_0xbb225b),m(0x9,_0x3f0b63)],ee);let k=class extends _e{constructor(_0x392b74,_0x42c6e2,_0x447b63,_0x58d1e2,_0x228009,_0xa9c409,_0x38f88e,_0x2e7e24,_0x3638ac,_0x347964,_0x5ec2bf,_0x30e1f1,_0x4a87bd,_0x45ff19){const _0x27a6b8=_0x598a93;super(_0x392b74,_0x42c6e2,_0x447b63,_0x58d1e2,_0x38f88e,_0x30e1f1,_0x4a87bd,_0x3638ac,_0x347964),l(this,_0x27a6b8(0x454),_0x27a6b8(0x1b1)),(this['_acknowledgedAwaitingChangeset']=_0x228009,this[_0x27a6b8(0x3e3)]=_0xa9c409,this[_0x27a6b8(0x120)]=_0x2e7e24,this[_0x27a6b8(0x345)]=_0x5ec2bf,this[_0x27a6b8(0x1d1)]=_0x45ff19);}[_0x598a93(0x433)](_0x311605){const _0x596897=_0x598a93;try{const _0x21b3b9=[..._0x311605,...this[_0x596897(0x3e3)]],_0x3f5e9c=[this['_awaitingChangeset']||this['_acknowledgedAwaitingChangeset']][_0x596897(0x23a)](_0x5d4b49=>!!_0x5d4b49);let _0x8b8403,_0x3c41cd;if(_0x3f5e9c[_0x596897(0x45e)]){const _0x866c32=this[_0x596897(0x1d1)][_0x596897(0x28d)](_0x21b3b9,_0x3f5e9c,!0x1);if(!_0x78f6fa(_0x866c32))throw _0x866c32[_0x596897(0x379)];_0x8b8403=_0x866c32[_0x596897(0x272)],_0x3c41cd=_0x866c32['c2Prime'];}else _0x8b8403=_0x21b3b9,_0x3c41cd=[];let _0x542a02=this[_0x596897(0x26c)];_0x8b8403['forEach'](_0x3e835a=>{const _0x5ddf08=_0x596897;let _0x3c0cc1;if(_0x542a02['length']){const _0x55f259=this[_0x5ddf08(0x1d1)][_0x5ddf08(0x3cc)](_0x3e835a,_0x542a02);if(!_0x347ce0(_0x55f259))throw _0x55f259[_0x5ddf08(0x379)];_0x3c0cc1=_0x55f259[_0x5ddf08(0x272)],_0x542a02=_0x55f259[_0x5ddf08(0x13b)];}else _0x3c0cc1=_0x3e835a;this[_0x5ddf08(0x300)](_0x3c0cc1);}),this[_0x596897(0x321)]&&this[_0x596897(0x15a)](),this[_0x596897(0x291)]&&_0x3c41cd[_0x596897(0x45e)]&&(_0x3c41cd[0x0][_0x596897(0x2ed)]=this['_getCurrentRevision']());let _0x3e66bf;if(this[_0x596897(0x291)]&&_0x542a02['length']!==0x0)_0x3e66bf=this[_0x596897(0x120)][_0x596897(0x466)](X,this[_0x596897(0x3a6)],this[_0x596897(0x29d)],_0x3c41cd[0x0],_0x542a02,this['_handler']);else{if(this['_awaitingChangeset']&&_0x542a02[_0x596897(0x45e)]===0x0)_0x3c41cd[0x0]['baseRev']=this[_0x596897(0x39c)](),_0x3e66bf=this[_0x596897(0x120)][_0x596897(0x466)](Z,this[_0x596897(0x3a6)],this[_0x596897(0x29d)],_0x3c41cd[0x0],this['_handler']);else{if(_0x542a02['length']!==0x0){const _0x1f8d5e=this[_0x596897(0x120)][_0x596897(0x466)](K,this[_0x596897(0x3a6)],this[_0x596897(0x29d)],_0x542a02,this[_0x596897(0x32e)]);_0x1f8d5e['_schedule'](),_0x3e66bf=_0x1f8d5e;}else _0x3e66bf=this[_0x596897(0x120)][_0x596897(0x466)](Se,this['unitID'],this[_0x596897(0x29d)],this[_0x596897(0x32e)]);}}return _0x3e66bf[_0x596897(0x239)](),_0x3e66bf;}catch(_0x44400e){return this[_0x596897(0x345)][_0x596897(0x379)](_0x596897(0x22b),_0x596897(0x460),_0x44400e),this['_injector']['createInstance'](Q,this[_0x596897(0x3a6)],this[_0x596897(0x29d)],this['_awaitingChangeset'],this[_0x596897(0x26c)],this[_0x596897(0x32e)],!0x1);}}[_0x598a93(0x141)](){const _0x47eb9c=_0x598a93;throw new Error(_0x47eb9c(0x142));}[_0x598a93(0x221)](_0x52bcc9){const _0x1ce636=_0x598a93;return this[_0x1ce636(0x26c)][_0x1ce636(0x34e)](_0x52bcc9),this;}[_0x598a93(0x240)](_0x577d64){const _0x5a388c=_0x598a93;return this['_queuedRemoteChangesets'][_0x5a388c(0x34e)](_0x577d64),this;}[_0x598a93(0x334)](_0x22b9a9){const _0x59d092=_0x598a93;if(this[_0x59d092(0x291)])return this[_0x59d092(0x321)]=this['_awaitingChangeset'],this[_0x59d092(0x291)]=null,this;throw new Error(_0x59d092(0x27d));}[_0x598a93(0x29e)](_0x15a51d){const _0x36395a=_0x598a93;return this[_0x36395a(0x2ff)](!!(_0x15a51d!=null&&_0x15a51d[_0x36395a(0x366)]));}[_0x598a93(0x16e)](){const _0x3f549f=_0x598a93;return this[_0x3f549f(0x120)][_0x3f549f(0x466)](ee,this[_0x3f549f(0x3a6)],this[_0x3f549f(0x29d)],this[_0x3f549f(0x291)],this[_0x3f549f(0x26c)],this[_0x3f549f(0x32e)]);}[_0x598a93(0x415)](){return this;}[_0x598a93(0x2ff)](_0x22bd17){const _0x24fba3=_0x598a93;return this[_0x24fba3(0x120)]['createInstance'](Q,this[_0x24fba3(0x3a6)],this[_0x24fba3(0x29d)],this[_0x24fba3(0x291)],this[_0x24fba3(0x26c)],this[_0x24fba3(0x32e)],_0x22bd17);}};k=le([m(0x7,_0x592774(_0x579617)),m(0x8,_0x592774(_0x3fcef9)),m(0x9,_0x592774(D)),m(0xa,_0x1281de),m(0xb,_0xbb225b),m(0xc,_0x3f0b63),m(0xd,_0x4cfc78)],k);function Hs(_0x41c97e,_0x36979c,_0x38811c,_0x5e3229,_0x304bdc,_0x47afc3){const _0x4a6dcc=_0x598a93;return _0x5e3229&&_0x304bdc[_0x4a6dcc(0x45e)]?_0x41c97e['createInstance'](X,_0x36979c,_0x38811c,_0x5e3229,_0x304bdc,_0x47afc3):_0x5e3229?_0x41c97e['createInstance'](Z,_0x36979c,_0x38811c,_0x5e3229,_0x47afc3):_0x304bdc[_0x4a6dcc(0x45e)]?_0x41c97e[_0x4a6dcc(0x466)](K,_0x36979c,_0x38811c,_0x304bdc,_0x47afc3):_0x41c97e[_0x4a6dcc(0x466)](Se,_0x36979c,_0x38811c,_0x47afc3);}var mr=Object[_0x598a93(0x171)],gr=Object[_0x598a93(0x1cb)],Vt=(_0x4c4c7e,_0x2c92ec,_0x1bd631,_0xe670d5)=>{const _0x45b6b6=_0x598a93;for(var _0x235271=_0xe670d5>0x1?void 0x0:_0xe670d5?gr(_0x2c92ec,_0x1bd631):_0x2c92ec,_0x5b66e4=_0x4c4c7e[_0x45b6b6(0x45e)]-0x1,_0x30d2da;_0x5b66e4>=0x0;_0x5b66e4--)(_0x30d2da=_0x4c4c7e[_0x5b66e4])&&(_0x235271=(_0xe670d5?_0x30d2da(_0x2c92ec,_0x1bd631,_0x235271):_0x30d2da(_0x235271))||_0x235271);return _0xe670d5&&_0x235271&&mr(_0x2c92ec,_0x1bd631,_0x235271),_0x235271;},p=(_0x45104d,_0x29d828)=>(_0x46ea85,_0xd366b5)=>_0x29d828(_0x46ea85,_0xd366b5,_0x45104d);let Je=class extends _0x39a217{constructor(_0x530a91,_0x6b701a,_0x226b4c,_0xf54d0b,_0x103c3b,_0x4d8cd3,_0x5772cb,_0x214f7d,_0x13fb74,_0x52ac9d,_0x56279b,_0x2793bb,_0x203bd6){const _0x340f6f=_0x598a93;super(),l(this,_0x340f6f(0x259),new _0x59597c(null)),l(this,'state$',this['_state$'][_0x340f6f(0x1b6)]()),l(this,_0x340f6f(0x2eb)),l(this,_0x340f6f(0x15c),!0x1),l(this,_0x340f6f(0x1fd),this[_0x340f6f(0x322)][_0x340f6f(0x22c)](_0x58c153(_0xe8e5d=>_0xe8e5d?_0xe8e5d[_0x340f6f(0x454)]:w['OFFLINE']),_0x55473f(0x1))),l(this,'_transitionLocked',!0x1),l(this,_0x340f6f(0x31e),[]),(this[_0x340f6f(0x3a6)]=_0x530a91,this[_0x340f6f(0x3ff)]=_0x6b701a,this[_0x340f6f(0x18a)]=_0x226b4c,this[_0x340f6f(0x120)]=_0xf54d0b,this[_0x340f6f(0x2fc)]=_0x103c3b,this[_0x340f6f(0x40d)]=_0x4d8cd3,this['_localeService']=_0x5772cb,this[_0x340f6f(0x2b1)]=_0x214f7d,this[_0x340f6f(0x345)]=_0x13fb74,this[_0x340f6f(0x297)]=_0x52ac9d,this['_messageService']=_0x56279b,this[_0x340f6f(0x261)]=_0x2793bb,this[_0x340f6f(0x17a)]=_0x203bd6);}get['state'](){const _0x3573f8=_0x598a93;return this[_0x3573f8(0x2eb)];}async['init'](){const _0x3fc53c=_0x598a93;if(this['state'])throw new Error(_0x3fc53c(0x3de));await this[_0x3fc53c(0x290)]();}['pauseCollaboration'](){return this['_collaborationPaused']=!0x0,_0x440d86(()=>{const _0x4febc9=_0x5340;this[_0x4febc9(0x15c)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0x598a93(0x1d0)](_0x1828cb){const _0x9972b5=_0x598a93;this['_state']=_0x1828cb,this[_0x9972b5(0x259)][_0x9972b5(0x12a)](_0x1828cb);}async[_0x598a93(0x290)](){const _0x1c6029=_0x598a93;var _0x1e675a;this[_0x1c6029(0x1d0)](await this[_0x1c6029(0x342)]()),this[_0x1c6029(0x17a)]&&((_0x1e675a=this[_0x1c6029(0x17a)])==null||_0x1e675a[_0x1c6029(0x427)](this['unitID']),this['disposeWithMe'](this[_0x1c6029(0x17a)][_0x1c6029(0x34b)](this[_0x1c6029(0x3a6)])['subscribe'](_0x111658=>{const _0x5344c1=_0x1c6029;this[_0x5344c1(0x345)]['debug'](_0x5344c1(0x338),'editing\x20status\x20changed\x20to',_0x111658),_0x111658===js[_0x5344c1(0x2b4)]?(this[_0x5344c1(0x17f)]['show']({'content':this['_localeService']['t'](_0x5344c1(0x2a4)),'type':_0x19f1bd['Warning']}),this[_0x5344c1(0x261)][_0x5344c1(0x306)](new _0x1d1f35(this[_0x5344c1(0x3a6)])['id'],!0x1)):this[_0x5344c1(0x261)][_0x5344c1(0x306)](new _0x1d1f35(this[_0x5344c1(0x3a6)])['id'],!0x0);})));let _0x9de7b1=!0x1;return this[_0x1c6029(0x147)](this[_0x1c6029(0x3ff)][_0x1c6029(0x1aa)][_0x1c6029(0x19e)](_0x394624=>{const _0x15cb51=_0x1c6029;_0x394624===G[_0x15cb51(0x35f)]?this['_toggleOnline'](_0x9de7b1):_0x394624===G['OFFLINE']&&(_0x9de7b1=!0x0,this['_toggleOffline']());})),this[_0x1c6029(0x147)](this[_0x1c6029(0x3ff)][_0x1c6029(0x207)][_0x1c6029(0x19e)](_0x235cbc=>{const _0x4f385b=_0x1c6029;try{switch(_0x235cbc[_0x4f385b(0x1a6)]){case _0x5e9e5f['NEW_CHANGESETS']:{this['_onRemoteChangeset'](_0x24cdf8(_0x235cbc[_0x4f385b(0x249)]));break;}case _0x5e9e5f['CHANGESET_ACK']:{this[_0x4f385b(0x42f)](_0x235cbc[_0x4f385b(0x249)]);break;}case _0x5e9e5f[_0x4f385b(0x3d0)]:{this[_0x4f385b(0x413)]();break;}case _0x5e9e5f[_0x4f385b(0x17e)]:{this['_onFetchMissResult'](_0x235cbc['data'][_0x4f385b(0x230)][_0x4f385b(0x202)](_0x39f227=>_0x24cdf8(_0x39f227)));break;}case _0x5e9e5f[_0x4f385b(0x1db)]:this[_0x4f385b(0x413)]({'isPermissionRej':!0x0});}}catch(_0x2e8f4b){throw console[_0x4f385b(0x379)](_0x4f385b(0x3db),_0x2e8f4b),_0x2e8f4b;}})),this[_0x1c6029(0x2eb)];}[_0x598a93(0x439)](){const _0x4e6c78=_0x598a93;this[_0x4e6c78(0x198)]=!0x1;}[_0x598a93(0x36a)](){const _0x139de8=_0x598a93;if(this[_0x139de8(0x198)])throw new Error(_0x139de8(0x1dc));this[_0x139de8(0x198)]=!0x0;}[_0x598a93(0x210)](_0x304e7b){const _0x32fe7e=_0x598a93;this['_lockTransition'](),this[_0x32fe7e(0x1d0)](this['_state'][_0x32fe7e(0x221)](_0x304e7b)),this[_0x32fe7e(0x439)]();}[_0x598a93(0x3ef)](_0x100da8){const _0x140e7d=_0x598a93;if(!(_0x100da8[_0x140e7d(0x43d)]<=this[_0x140e7d(0x2b1)][_0x140e7d(0x16f)](this[_0x140e7d(0x3a6)]))){if(this[_0x140e7d(0x15c)]){this[_0x140e7d(0x31e)][_0x140e7d(0x34e)](_0x100da8);return;}this[_0x140e7d(0x42b)](_0x100da8);}}[_0x598a93(0x11e)](){const _0x3c7ac8=_0x598a93;this[_0x3c7ac8(0x31e)]['forEach'](_0x46d60d=>this[_0x3c7ac8(0x42b)](_0x46d60d)),this[_0x3c7ac8(0x31e)]=[];}[_0x598a93(0x42b)](_0x56650c){const _0x307ef1=_0x598a93,_0x390bfe=this[_0x307ef1(0x40d)][_0x307ef1(0x3e7)][_0x307ef1(0x457)](this[_0x307ef1(0x40d)]['interceptor'][_0x307ef1(0x2c1)]()[_0x307ef1(0x266)])(_0x56650c[_0x307ef1(0x3fb)],null)||_0x56650c[_0x307ef1(0x3fb)],_0x1f9f7b={..._0x56650c,'mutations':_0x390bfe};this[_0x307ef1(0x36a)](),this[_0x307ef1(0x1d0)](this[_0x307ef1(0x2eb)][_0x307ef1(0x240)](_0x1f9f7b)),this[_0x307ef1(0x439)]();}['_onRemoteACK'](_0x11c505){const _0x5c7a3a=_0x598a93;this['_lockTransition'](),this[_0x5c7a3a(0x1d0)](this[_0x5c7a3a(0x2eb)][_0x5c7a3a(0x334)](_0x11c505)),this['_unlockTransition']();}[_0x598a93(0x413)](_0x2b7b8b){const _0x58039c=_0x598a93;this['_lockTransition'](),this['_updateState'](this[_0x58039c(0x2eb)][_0x58039c(0x29e)](_0x2b7b8b)),this['_unlockTransition']();}[_0x598a93(0x149)](_0x3ca909){const _0x54a928=_0x598a93;if(!(this[_0x54a928(0x2eb)]instanceof k))throw new TypeError(_0x54a928(0x177));const _0xdec815=_0x3ca909[_0x54a928(0x202)](_0x10195f=>{const _0xb88dd7=_0x54a928,_0x462076=this[_0xb88dd7(0x40d)]['interceptor'][_0xb88dd7(0x457)](this['_compressMutationService']['interceptor'][_0xb88dd7(0x2c1)]()[_0xb88dd7(0x266)])(_0x10195f['mutations'],null)||_0x10195f[_0xb88dd7(0x3fb)];return{..._0x10195f,'mutations':_0x462076};});this[_0x54a928(0x36a)](),this[_0x54a928(0x1d0)](this[_0x54a928(0x2eb)]['onMissedChangesetFetched'](_0xdec815)),this[_0x54a928(0x439)]();}['_toggleOffline'](){const _0x225286=_0x598a93;this['_lockTransition'](),this[_0x225286(0x1d0)](this[_0x225286(0x2eb)][_0x225286(0x16e)]()),this['_unlockTransition']();}[_0x598a93(0x1d4)](_0x1058d8=!0x1){const _0x1747b1=_0x598a93;this['_lockTransition'](),this[_0x1747b1(0x1d0)](this[_0x1747b1(0x2eb)][_0x1747b1(0x415)]()),this[_0x1747b1(0x439)]();const _0x3b65df=this['_state'];_0x1058d8&&_0x3b65df instanceof Se&&(this[_0x1747b1(0x36a)](),this[_0x1747b1(0x1d0)](_0x3b65df[_0x1747b1(0x397)]()),this[_0x1747b1(0x439)]());}async['_createInitialState'](){return new Promise(_0x5453a9=>{const _0x9ba0e9=_0x5340;this[_0x9ba0e9(0x3ff)][_0x9ba0e9(0x1aa)]['pipe'](_0x593d58(0x1))[_0x9ba0e9(0x19e)](async _0x2a0688=>{const _0x1adab0=_0x9ba0e9;_0x5453a9(await this[_0x1adab0(0x287)](_0x2a0688===G[_0x1adab0(0x35f)]));});});}[_0x598a93(0x1dd)](){const _0x4a0394=_0x598a93,_0x19fc3a=this[_0x4a0394(0x3a6)];return{'onStateChange':(_0x5a25c5,_0x317b26)=>{const _0x4a6644=_0x4a0394;if(_0x5a25c5!==this['_state'])throw new Error(_0x4a6644(0x1ca)+_0x5a25c5[_0x4a6644(0x454)]+_0x4a6644(0x2f1)+_0x317b26['status']+_0x4a6644(0x3c5)+this['_state'][_0x4a6644(0x454)]);this[_0x4a6644(0x1d0)](_0x317b26);},'onSendChangeset':_0x20891c=>{const _0x2deda7=_0x4a0394,_0x54bbc7={'eventID':_0x5e9e5f[_0x2deda7(0x236)],'data':{'unitID':_0x20891c['unitID'],'unitType':this[_0x2deda7(0x18a)],'changeset':_0x20891c,'memberID':this[_0x2deda7(0x3ff)][_0x2deda7(0x3dc)]()}};this[_0x2deda7(0x3ff)][_0x2deda7(0x31c)](_0x54bbc7,this[_0x2deda7(0x3a6)]);},'onMissingChangesets':({from:_0xc30ba9,to:_0x13ec9d})=>{const _0x5cfb32=_0x4a0394;this[_0x5cfb32(0x345)][_0x5cfb32(0x276)](_0x5cfb32(0x338),'fetching\x20missing\x20changesets\x20from\x20'+_0xc30ba9+_0x5cfb32(0x3b9)+_0x13ec9d);const _0x21b8c5={'eventID':_0x5e9e5f[_0x5cfb32(0x401)],'data':{'unitID':_0x19fc3a,'unitType':this[_0x5cfb32(0x18a)],'from':_0xc30ba9,'to':_0x13ec9d}};this[_0x5cfb32(0x3ff)][_0x5cfb32(0x31c)](_0x21b8c5,this[_0x5cfb32(0x3a6)]);}};}async[_0x598a93(0x287)](_0x3788fb){const _0xc102b0=_0x598a93;var _0xcf91b2,_0x2e4f7a;const _0x1ae0d6=await this[_0xc102b0(0x2fc)][_0xc102b0(0x442)](this[_0xc102b0(0x3a6)]),_0x425a4b=(_0xcf91b2=_0x1ae0d6==null?void 0x0:_0x1ae0d6[_0xc102b0(0x3fb)])!=null?_0xcf91b2:[],_0x1a170b=(_0x2e4f7a=_0x1ae0d6==null?void 0x0:_0x1ae0d6['awaitingChangeset'])!=null?_0x2e4f7a:null,_0x406a06=this[_0xc102b0(0x3a6)];try{this['_replayCachedMutations'](_0x1a170b,_0x425a4b);}catch(_0x13d1c9){this[_0xc102b0(0x345)]['error'](_0x13d1c9);}const _0x12f6cf=this[_0xc102b0(0x1dd)]();if(_0x3788fb){const _0x370ba2=Hs(this['_injector'],_0x406a06,this[_0xc102b0(0x18a)],_0x1a170b,_0x425a4b,_0x12f6cf);return _0x370ba2 instanceof K?_0x370ba2[_0xc102b0(0x367)]():(_0x370ba2 instanceof X||_0x370ba2 instanceof Z)&&_0x370ba2[_0xc102b0(0x141)](),_0x370ba2;}return this[_0xc102b0(0x120)][_0xc102b0(0x466)](ee,_0x406a06,this['_type'],_0x1a170b,_0x425a4b,_0x12f6cf);}[_0x598a93(0x293)](_0x44bfa1,_0x2b8432){const _0xcae903=_0x598a93;var _0x52a9e9,_0x3cb87c;const _0x29e6eb=this[_0xcae903(0x40d)][_0xcae903(0x3e7)]['fetchThroughInterceptors'](this[_0xcae903(0x40d)]['interceptor'][_0xcae903(0x2c1)]()[_0xcae903(0x266)]);(_0x52a9e9=_0x29e6eb((_0x44bfa1==null?void 0x0:_0x44bfa1[_0xcae903(0x3fb)])||[],null))==null||_0x52a9e9[_0xcae903(0x264)](_0x1e707a=>this[_0xcae903(0x297)][_0xcae903(0x395)](_0x1e707a['id'],_0x1e707a['params'])),(_0x3cb87c=_0x29e6eb(_0x2b8432||[],null))==null||_0x3cb87c[_0xcae903(0x264)](_0x346586=>this[_0xcae903(0x297)][_0xcae903(0x395)](_0x346586['id'],_0x346586['params']));}};Je=Vt([p(0x3,_0x592774(_0x579617)),p(0x4,_0x592774(D)),p(0x5,_0x592774(_0x425aac)),p(0x6,_0x592774(_0x2af7ec)),p(0x7,_0x592774(_0x3fcef9)),p(0x8,_0x1281de),p(0x9,_0xbb225b),p(0xa,_0x369676),p(0xb,_0x28af49),p(0xc,_0x3372cb(tt))],Je);let bt=class extends Je{constructor(_0x37e620,_0x1d17bb,_0x79792,_0x45efbc,_0x5d50c9,_0x53398e,_0x284ef3,_0x1b47aa,_0x4d189f,_0x522d18,_0x5641e4,_0x54c9d2,_0x5e40fb,_0x45ddc1,_0x3c12f1,_0x2041dc,_0x4ba8a0){const _0x22180f=_0x598a93;super(_0x37e620,_0x79792,_0x1d17bb,_0x45efbc,_0x5d50c9,_0x53398e,_0x284ef3,_0x1b47aa,_0x5e40fb,_0x45ddc1,_0x3c12f1,_0x2041dc,_0x4ba8a0),this[_0x22180f(0x3a6)]=_0x37e620,this[_0x22180f(0x29d)]=_0x1d17bb,this[_0x22180f(0x2a9)]=_0x4d189f,this[_0x22180f(0x139)]=_0x522d18,this['_docTransformSelectionsService']=_0x5641e4,this[_0x22180f(0x123)]=_0x54c9d2;}['_createHandler'](){const _0x4914fe=_0x598a93,_0x52b80d=super['_createHandler']();return _0x52b80d['onTransformIME']=_0x38420b=>this['_docTransformIMECacheService'][_0x4914fe(0x43c)](_0x38420b),_0x52b80d['onTransformSelections']=_0x1455cf=>this['_docTransformSelectionsService'][_0x4914fe(0x304)](_0x1455cf),_0x52b80d[_0x4914fe(0x169)]=_0x270618=>this[_0x4914fe(0x123)][_0x4914fe(0x3b2)](_0x270618),_0x52b80d[_0x4914fe(0x32c)]=_0x3aaa60=>this[_0x4914fe(0x139)][_0x4914fe(0x387)](_0x3aaa60),_0x52b80d;}async[_0x598a93(0x290)](){const _0x163d03=_0x598a93,_0x91198a=await super[_0x163d03(0x290)]();return this[_0x163d03(0x147)](this[_0x163d03(0x297)][_0x163d03(0x280)]((_0x11e120,_0x395b70)=>{const _0x537c95=_0x163d03;if(_0x11e120[_0x537c95(0x29d)]!==_0x1887aa[_0x537c95(0x307)]||_0x395b70!=null&&_0x395b70[_0x537c95(0x24f)]||_0x395b70!=null&&_0x395b70[_0x537c95(0x370)])return;const _0x1e3f6e=_0x11e120[_0x537c95(0x27e)];if((_0x1e3f6e==null?void 0x0:_0x1e3f6e[_0x537c95(0x46f)])!==this[_0x537c95(0x3a6)])return;let _0x51eb12=_0x11e120;if(_0x51eb12['id']===_0x37a233['id']){const _0x29601e=_0x51eb12[_0x537c95(0x27e)];_0x51eb12={'id':_0x37a233['id'],'type':_0x1887aa[_0x537c95(0x307)],'params':{'unitId':_0x29601e['unitId'],'actions':_0x29601e[_0x537c95(0x394)],'textRanges':null}};}const _0x33259f=this['_compressMutationService'][_0x537c95(0x3e7)]['fetchThroughInterceptors'](this[_0x537c95(0x40d)]['interceptor']['getInterceptPoints']()['COMPRESS_MUTATION_SEND'])([_0x51eb12],null)||[_0x51eb12];this[_0x537c95(0x210)](_0x33259f[0x0]);})),_0x91198a;}};bt=Vt([p(0x3,_0x592774(_0x579617)),p(0x4,_0x592774(D)),p(0x5,_0x592774(_0x425aac)),p(0x6,_0x592774(_0x2af7ec)),p(0x7,_0x592774(_0x3fcef9)),p(0x8,_0x592774(_0x37e77c)),p(0x9,_0x592774(Ye)),p(0xa,_0x592774(Xe)),p(0xb,_0x592774(Bt)),p(0xc,_0x1281de),p(0xd,_0xbb225b),p(0xe,_0x369676),p(0xf,_0x28af49),p(0x10,_0x3372cb(tt))],bt);let Tt=class extends Je{constructor(_0x3796e8,_0x29b7c5,_0xf562c4,_0x3d8355,_0x1513a7,_0x1efb7c,_0x148678,_0x4270ee,_0x3cd2cf,_0x45c859,_0xcb2e5a,_0x292df0,_0x2247ec,_0x162545){const _0x1dc5a6=_0x598a93;super(_0x3796e8,_0xf562c4,_0x29b7c5,_0x3d8355,_0x1513a7,_0x1efb7c,_0x148678,_0x4270ee,_0x45c859,_0xcb2e5a,_0x292df0,_0x2247ec,_0x162545),this['unitID']=_0x3796e8,this[_0x1dc5a6(0x29d)]=_0x29b7c5,this['_sheetTransformSelectionsService']=_0x3cd2cf;}[_0x598a93(0x1dd)](){const _0x208643=_0x598a93,_0x3e17d6=super[_0x208643(0x1dd)]();return _0x3e17d6[_0x208643(0x32f)]=_0x46b508=>this['_sheetTransformSelectionsService']['transformSelections'](_0x46b508),_0x3e17d6;}async[_0x598a93(0x290)](){const _0x55ee3a=_0x598a93,_0x21e437=await super[_0x55ee3a(0x290)]();return this['disposeWithMe'](this[_0x55ee3a(0x297)]['onCommandExecuted']((_0x3dd69a,_0x2d351b)=>{const _0x27bb95=_0x55ee3a;if(_0x3dd69a[_0x27bb95(0x29d)]!==_0x1887aa['MUTATION']||_0x2d351b!=null&&_0x2d351b[_0x27bb95(0x24f)]||_0x2d351b!=null&&_0x2d351b['onlyLocal'])return;const _0x34faaf=_0x3dd69a[_0x27bb95(0x27e)];if((_0x34faaf==null?void 0x0:_0x34faaf[_0x27bb95(0x46f)])!==this[_0x27bb95(0x3a6)])return;const _0x19a949=_0x3dd69a,_0x3c6157=this[_0x27bb95(0x40d)][_0x27bb95(0x3e7)][_0x27bb95(0x457)](this[_0x27bb95(0x40d)][_0x27bb95(0x3e7)][_0x27bb95(0x2c1)]()['COMPRESS_MUTATION_SEND'])([_0x19a949],null)||[_0x19a949];this[_0x27bb95(0x210)](_0x3c6157[0x0]);})),_0x21e437;}};Tt=Vt([p(0x3,_0x592774(_0x579617)),p(0x4,_0x592774(D)),p(0x5,_0x592774(_0x425aac)),p(0x6,_0x592774(_0x2af7ec)),p(0x7,_0x592774(_0x3fcef9)),p(0x8,_0x592774(Ke)),p(0x9,_0x1281de),p(0xa,_0xbb225b),p(0xb,_0x369676),p(0xc,_0x28af49),p(0xd,_0x3372cb(tt))],Tt);var Sr=Object[_0x598a93(0x171)],pr=Object[_0x598a93(0x1cb)],vr=(_0x551174,_0x1e5341,_0x1b589e,_0x5e7e72)=>{for(var _0x1f6f8c=_0x5e7e72>0x1?void 0x0:_0x5e7e72?pr(_0x1e5341,_0x1b589e):_0x1e5341,_0x37230f=_0x551174['length']-0x1,_0x3621be;_0x37230f>=0x0;_0x37230f--)(_0x3621be=_0x551174[_0x37230f])&&(_0x1f6f8c=(_0x5e7e72?_0x3621be(_0x1e5341,_0x1b589e,_0x1f6f8c):_0x3621be(_0x1f6f8c))||_0x1f6f8c);return _0x5e7e72&&_0x1f6f8c&&Sr(_0x1e5341,_0x1b589e,_0x1f6f8c),_0x1f6f8c;},lt=(_0x472a92,_0x5be17)=>(_0x3813b5,_0x4eb9cc)=>_0x5be17(_0x3813b5,_0x4eb9cc,_0x472a92);let Ae=class extends _0x39a217{constructor(_0x195a44,_0x2e1a10,_0x2a7ee5){const _0x2f0a5d=_0x598a93;super(),l(this,_0x2f0a5d(0x471),new Map()),l(this,_0x2f0a5d(0x273),new _0x2199d6()),(this[_0x2f0a5d(0x120)]=_0x195a44,this[_0x2f0a5d(0x12e)]=_0x2e1a10,this['_univerInstanceService']=_0x2a7ee5,this[_0x2f0a5d(0x290)]());}['dispose'](){const _0x142604=_0x598a93;super['dispose'](),this[_0x142604(0x471)]['forEach'](_0x1a795b=>_0x1a795b[_0x142604(0x308)]()),this[_0x142604(0x471)][_0x142604(0x35c)]();}['getCollabEntity'](_0x3d2c00){const _0x45aa8b=_0x598a93;var _0x40d53b;return(_0x40d53b=this[_0x45aa8b(0x471)][_0x45aa8b(0x175)](_0x3d2c00))!=null?_0x40d53b:null;}[_0x598a93(0x1f4)](_0x4eedec){const _0x3244c1=_0x598a93,_0x5caa36=this[_0x3244c1(0x318)](_0x4eedec);return _0x5caa36?_0x3fea04(_0x5caa36):this[_0x3244c1(0x273)][_0x3244c1(0x22c)](_0x34901b(_0x351de6=>_0x351de6['unitID']===_0x4eedec));}['_init'](){const _0x21c1a2=_0x598a93;this[_0x21c1a2(0x343)]['getTypeOfUnitAdded$'](_0x33d049[_0x21c1a2(0x174)])[_0x21c1a2(0x22c)](_0x5c2c79(this[_0x21c1a2(0x1f5)]),_0x3af41b(0x10))[_0x21c1a2(0x19e)](async _0x12adf5=>{const _0x5b9453=_0x21c1a2,_0x44af64=_0x12adf5[_0x5b9453(0x14c)](),_0x12cad3=await this[_0x5b9453(0x1ce)](_0x44af64,H[_0x5b9453(0x174)]);this[_0x5b9453(0x471)][_0x5b9453(0x314)](_0x44af64,_0x12cad3);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x33d049['UNIVER_DOC'])[_0x21c1a2(0x22c)](_0x5c2c79(this['dispose$']),_0x3af41b(0x10))['pipe'](_0x34901b(_0x169018=>!_0x169018['getUnitId']()['startsWith']('__')))[_0x21c1a2(0x19e)](async _0x3d7ecc=>{const _0x181588=_0x21c1a2,_0x426b25=_0x3d7ecc[_0x181588(0x14c)](),_0x38540c=await this[_0x181588(0x1ce)](_0x426b25,H['UNIVER_DOC']);this[_0x181588(0x471)]['set'](_0x426b25,_0x38540c);}),_0x4c82f1(this['_univerInstanceService'][_0x21c1a2(0x24c)](_0x33d049[_0x21c1a2(0x174)]),this[_0x21c1a2(0x343)][_0x21c1a2(0x24c)](_0x33d049[_0x21c1a2(0x17d)]))[_0x21c1a2(0x22c)](_0x5c2c79(this[_0x21c1a2(0x1f5)]))['subscribe'](_0x7ca119=>{const _0xea1f33=_0x21c1a2,_0x1eeb29=_0x7ca119['getUnitId'](),_0xd5e7b1=this[_0xea1f33(0x471)][_0xea1f33(0x175)](_0x1eeb29);_0xd5e7b1&&(_0xd5e7b1['dispose'](),this[_0xea1f33(0x471)][_0xea1f33(0x2c8)](_0x1eeb29));});}async[_0x598a93(0x1ce)](_0x15b672,_0x3a8d43){const _0xf3a3c7=_0x598a93,_0x6ae4ae=await this['_collabSessionService'][_0xf3a3c7(0x486)](_0x15b672),_0x409167=this['_injector']['createInstance'](this[_0xf3a3c7(0x2ea)](_0x3a8d43),_0x15b672,_0x3a8d43,_0x6ae4ae);return await _0x409167[_0xf3a3c7(0x217)](),this[_0xf3a3c7(0x273)][_0xf3a3c7(0x12a)](_0x409167),_0x409167;}['_getCtorByUniverType'](_0x498ae6){const _0x23c1dc=_0x598a93;switch(_0x498ae6){case H['UNIVER_DOC']:return bt;case H[_0x23c1dc(0x174)]:return Tt;default:throw new Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x498ae6);}}};Ae=vr([lt(0x0,_0x592774(_0x579617)),lt(0x1,_0x592774(ce)),lt(0x2,_0x191290)],Ae);const _s=[_0x598a93(0x222),_0x598a93(0x34c),_0x598a93(0x474),'red300',_0x598a93(0x2f7),_0x598a93(0x33a)];class Ft extends _0x24edb8{constructor(){const _0x435d2d=_0x598a93;super(...arguments),l(this,_0x435d2d(0x18c),new Map()),l(this,_0x435d2d(0x2c4),0x0);}['assignAColorForMemberID'](_0x2c060e){const _0x5bd66c=_0x598a93;if(this[_0x5bd66c(0x18c)][_0x5bd66c(0x1af)](_0x2c060e))return this[_0x5bd66c(0x18c)][_0x5bd66c(0x175)](_0x2c060e);const _0x2ab43f=_s[this['_colorIndex']];return this[_0x5bd66c(0x2c4)]=(this[_0x5bd66c(0x2c4)]+0x1)%_s[_0x5bd66c(0x45e)],this['_assignedColors'][_0x5bd66c(0x314)](_0x2c060e,_0x2ab43f),_0x2ab43f;}}var Ir=Object[_0x598a93(0x171)],Er=Object[_0x598a93(0x1cb)],Cr=(_0x107a90,_0x20b928,_0x3bf268,_0xe94693)=>{const _0x3340b9=_0x598a93;for(var _0x5ad816=_0xe94693>0x1?void 0x0:_0xe94693?Er(_0x20b928,_0x3bf268):_0x20b928,_0x379eba=_0x107a90[_0x3340b9(0x45e)]-0x1,_0x37e34a;_0x379eba>=0x0;_0x379eba--)(_0x37e34a=_0x107a90[_0x379eba])&&(_0x5ad816=(_0xe94693?_0x37e34a(_0x20b928,_0x3bf268,_0x5ad816):_0x37e34a(_0x5ad816))||_0x5ad816);return _0xe94693&&_0x5ad816&&Ir(_0x20b928,_0x3bf268,_0x5ad816),_0x5ad816;},se=(_0x3c9871,_0x48d6a1)=>(_0x36095f,_0x5c0812)=>_0x48d6a1(_0x36095f,_0x5c0812,_0x3c9871);const br=0x12c,Tr=0x64;let Rt=class extends _0x39a217{constructor(_0x5a2aad,_0xe07aa9,_0x541fdd,_0x38f55f,_0x3494ac,_0x4f1b65,_0xad7226,_0x3d8ff9,_0x11e8cb){const _0x193fbe=_0x598a93;super(),l(this,_0x193fbe(0x3be),!0x1),l(this,'_init',!0x1),l(this,'_cursorInfo$',new _0x59597c(new Map())),l(this,_0x193fbe(0x173),this[_0x193fbe(0x2b6)][_0x193fbe(0x1b6)]()),l(this,_0x193fbe(0x11c),new _0x59597c([])),l(this,'roomMembers$',this['_roomMembers$']['pipe'](_0x430a49(br))),l(this,_0x193fbe(0x3ac),_0x568d4b(_0x32cdf8=>{const _0xb221c8=_0x193fbe,_0x5b1f17={'eventID':_0x5e9e5f['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0xb221c8(0x42d)]['getMemberID'](),'selection':xs(_0x32cdf8)}};this[_0xb221c8(0x42d)][_0xb221c8(0x31c)](_0x5b1f17,this['unitID']);},Tr)),(this[_0x193fbe(0x3a6)]=_0x5a2aad,this['_session']=_0xe07aa9,this[_0x193fbe(0x120)]=_0x541fdd,this[_0x193fbe(0x214)]=_0x38f55f,this[_0x193fbe(0x348)]=_0x3494ac,this['_syncEditingCollabCursorService']=_0x4f1b65,this[_0x193fbe(0x1d1)]=_0xad7226,this[_0x193fbe(0x343)]=_0x3d8ff9,this[_0x193fbe(0x297)]=_0x11e8cb);}get[_0x598a93(0x1e3)](){const _0x5dbd35=_0x598a93;return this[_0x5dbd35(0x2b6)]['getValue']();}get['roomMembers'](){const _0x376624=_0x598a93;return this[_0x376624(0x11c)][_0x376624(0x47f)]();}[_0x598a93(0x308)](){const _0x433f29=_0x598a93;super[_0x433f29(0x308)](),this[_0x433f29(0x2b6)][_0x433f29(0x12a)](new Map()),this[_0x433f29(0x2b6)][_0x433f29(0x30a)](),this[_0x433f29(0x11c)][_0x433f29(0x12a)]([]),this[_0x433f29(0x11c)][_0x433f29(0x30a)]();}[_0x598a93(0x217)](){const _0x22424a=_0x598a93;this['_init']||(this[_0x22424a(0x290)]=!0x0,this[_0x22424a(0x42d)][_0x22424a(0x1aa)][_0x22424a(0x22c)](_0x5c2c79(this['dispose$']))[_0x22424a(0x19e)](_0x18a1c9=>{const _0x57a354=_0x22424a;_0x18a1c9===G[_0x57a354(0x35f)]?this[_0x57a354(0x1d4)]():this[_0x57a354(0x461)]();}),this[_0x22424a(0x42d)]['event$'][_0x22424a(0x22c)](_0x5c2c79(this['dispose$']))[_0x22424a(0x19e)](_0x45e022=>{const _0x538b4c=_0x22424a,_0x13b84b=_0x45e022[_0x538b4c(0x1a6)];_0x13b84b===_0x5e9e5f['UPDATE_CURSOR']&&this[_0x538b4c(0x451)](_0x45e022),_0x13b84b===_0x5e9e5f[_0x538b4c(0x289)]&&this[_0x538b4c(0x3ba)](_0x45e022);}),this[_0x22424a(0x147)](this['_commandService'][_0x22424a(0x280)](_0x112486=>{const _0x133d3f=_0x22424a,_0xb0f72b=_0x112486[_0x133d3f(0x27e)];_0xb0f72b!=null&&this[_0x133d3f(0x3be)]&&_0x112486['id']===_0x35a191['id']&&_0xb0f72b[_0x133d3f(0x46f)]===this[_0x133d3f(0x3a6)]&&_0xb0f72b[_0x133d3f(0x391)]===!0x1&&this[_0x133d3f(0x3ac)](_0xb0f72b[_0x133d3f(0x1d2)]);})),this[_0x22424a(0x2bf)]['collabCursorState$'][_0x22424a(0x22c)](_0x5c2c79(this[_0x22424a(0x1f5)]))[_0x22424a(0x19e)](_0x30f2f1=>{const _0x4c11fc=_0x22424a;if((_0x30f2f1==null?void 0x0:_0x30f2f1[_0x4c11fc(0x3a6)])!==this['unitID'])return;const _0x23a840={'eventID':_0x5e9e5f[_0x4c11fc(0x294)],'data':_0x30f2f1};this[_0x4c11fc(0x451)](_0x23a840);}),this[_0x22424a(0x147)](this[_0x22424a(0x297)][_0x22424a(0x280)](_0x27c1c1=>{const _0x32c86f=_0x22424a;if(_0x27c1c1[_0x32c86f(0x27e)]==null)return;const _0x2a980a=_0x27c1c1[_0x32c86f(0x27e)];if(_0x27c1c1['id']!==_0x37a233['id']||_0x2a980a['unitId']!==this[_0x32c86f(0x3a6)])return;const _0x2c5269={'id':_0x32c86f(0x310),'params':_0x2a980a},_0x60f598=this[_0x32c86f(0x1e3)];for(const [_0x208ba5,_0x4cf312]of _0x60f598){const _0xa5497d={'id':_0x32c86f(0x310),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x4cf312[_0x32c86f(0x1d2)]}},_0x504076=this[_0x32c86f(0x1d1)][_0x32c86f(0x26e)](_0x2c5269,_0xa5497d,!0x1);if(_0x5396e5(_0x504076))throw _0x504076['error'];_0x60f598[_0x32c86f(0x314)](_0x208ba5,{..._0x4cf312,'ranges':_0x504076[_0x32c86f(0x13b)][_0x32c86f(0x27e)]['textRanges']});}queueMicrotask(()=>{const _0x3b6537=_0x32c86f;this[_0x3b6537(0x2b6)][_0x3b6537(0x12a)](_0x60f598);});})));}[_0x598a93(0x451)](_0x3a2e96){const _0x12a30b=_0x598a93;var _0x70afde,_0x382c13;const {memberID:_0x164afa,selection:_0x254c81}=_0x3a2e96[_0x12a30b(0x249)],_0x2a0366=or(_0x254c81),_0x3a6072=(_0x382c13=(_0x70afde=this['_memberService'][_0x12a30b(0x277)](this['unitID'],_0x164afa))==null?void 0x0:_0x70afde[_0x12a30b(0x3d7)])!=null?_0x382c13:_0x12a30b(0x13a),_0x24368d={'color':this['_colorAssignService'][_0x12a30b(0x3e6)](_0x164afa),'name':_0x3a6072,'ranges':_0x2a0366},_0x537ca3=this[_0x12a30b(0x1e3)];_0x537ca3[_0x12a30b(0x314)](_0x164afa,_0x24368d),this[_0x12a30b(0x2b6)][_0x12a30b(0x12a)](_0x537ca3);}[_0x598a93(0x3ba)](_0x2650e6){const _0x3fbe7a=_0x598a93,{memberID:_0x1801a4}=_0x2650e6[_0x3fbe7a(0x249)],_0x27f9a7=this[_0x3fbe7a(0x1e3)];_0x27f9a7[_0x3fbe7a(0x2c8)](_0x1801a4),this['_cursorInfo$'][_0x3fbe7a(0x12a)](_0x27f9a7);}[_0x598a93(0x1d4)](){const _0xa1ae9d=_0x598a93;var _0x32fe57;if(this[_0xa1ae9d(0x3be)]=!0x0,((_0x32fe57=this[_0xa1ae9d(0x343)][_0xa1ae9d(0x3c2)]())==null?void 0x0:_0x32fe57['getUnitId']())!==this[_0xa1ae9d(0x3a6)])return;const _0x617a1e=this[_0xa1ae9d(0x120)]['get'](_0x42d514)[_0xa1ae9d(0x2ce)]();Array[_0xa1ae9d(0x38e)](_0x617a1e)&&_0x617a1e[_0xa1ae9d(0x45e)]>0x0&&this[_0xa1ae9d(0x3ac)](_0x617a1e);}[_0x598a93(0x461)](){const _0x4dd6c0=_0x598a93;this[_0x4dd6c0(0x3be)]=!0x1;}};Rt=Cr([se(0x2,_0x592774(_0x579617)),se(0x3,_0x592774(Ft)),se(0x4,_0x592774(ae)),se(0x5,_0x592774(Bt)),se(0x6,_0x4cfc78),se(0x7,_0x191290),se(0x8,_0xbb225b)],Rt);var Rr=Object['defineProperty'],Or=Object['getOwnPropertyDescriptor'],Dr=(_0x19c7fc,_0x6d5f5c,_0x241620,_0x4d6c6a)=>{for(var _0x34c5ee=_0x4d6c6a>0x1?void 0x0:_0x4d6c6a?Or(_0x6d5f5c,_0x241620):_0x6d5f5c,_0x4ca8e9=_0x19c7fc['length']-0x1,_0x908e78;_0x4ca8e9>=0x0;_0x4ca8e9--)(_0x908e78=_0x19c7fc[_0x4ca8e9])&&(_0x34c5ee=(_0x4d6c6a?_0x908e78(_0x6d5f5c,_0x241620,_0x34c5ee):_0x908e78(_0x34c5ee))||_0x34c5ee);return _0x4d6c6a&&_0x34c5ee&&Rr(_0x6d5f5c,_0x241620,_0x34c5ee),_0x34c5ee;},fe=(_0x45dead,_0x8970d5)=>(_0x25d982,_0x4f945a)=>_0x8970d5(_0x25d982,_0x4f945a,_0x45dead);const wr=0x12c,Pr=0x64,yr=()=>{let _0x1d57e1=[],_0x49e9c6=!0x1;return _0x59083f=>{const _0x239d80=_0x5340;_0x1d57e1[_0x239d80(0x34e)](_0x59083f),_0x49e9c6||(_0x49e9c6=!0x0,setTimeout(()=>{const _0x11de8c=_0x239d80;_0x1d57e1[_0x11de8c(0x264)](_0x5686a6=>_0x5686a6()),_0x1d57e1=[],_0x49e9c6=!0x1;}));};};let Ot=class extends _0x39a217{constructor(_0x4ff6b4,_0x29396e,_0x37f424,_0x430c35,_0x2903dc,_0x7e063c,_0x15cc76,_0x1b0d21){const _0x51fa4e=_0x598a93;super(),l(this,_0x51fa4e(0x3be),!0x1),l(this,'_init',!0x1),l(this,_0x51fa4e(0x2b6),new _0x59597c(new Map())),l(this,'cursorInfo$',this[_0x51fa4e(0x2b6)]['asObservable']()),l(this,_0x51fa4e(0x11c),new _0x59597c([])),l(this,_0x51fa4e(0x2ac),this[_0x51fa4e(0x11c)][_0x51fa4e(0x22c)](_0x430a49(wr))),l(this,_0x51fa4e(0x3ac),_0x568d4b((_0x4fd02c,_0x1377b7)=>{const _0x54f469=_0x51fa4e,_0x1f6ac1={'eventID':_0x5e9e5f[_0x54f469(0x294)],'data':{'unitID':this[_0x54f469(0x3a6)],'memberID':this['_session'][_0x54f469(0x3dc)](),'selection':_0x43a483(_0x4fd02c,_0x1377b7[_0x54f469(0x136)])}};this[_0x54f469(0x42d)][_0x54f469(0x31c)](_0x1f6ac1,this[_0x54f469(0x3a6)]);},Pr)),(this[_0x51fa4e(0x3a6)]=_0x4ff6b4,this[_0x51fa4e(0x42d)]=_0x29396e,this['_injector']=_0x37f424,this['_colorAssignService']=_0x430c35,this['_memberService']=_0x2903dc,this['_univerInstanceService']=_0x7e063c,this[_0x51fa4e(0x297)]=_0x15cc76,this[_0x51fa4e(0x163)]=_0x1b0d21);}get['cursorInfo'](){const _0x3aa59f=_0x598a93;return this[_0x3aa59f(0x2b6)]['getValue']();}get[_0x598a93(0x180)](){const _0x12fd5a=_0x598a93;return this[_0x12fd5a(0x11c)][_0x12fd5a(0x47f)]();}[_0x598a93(0x308)](){const _0x34bc5f=_0x598a93;super[_0x34bc5f(0x308)](),this[_0x34bc5f(0x2b6)][_0x34bc5f(0x12a)](new Map()),this[_0x34bc5f(0x2b6)][_0x34bc5f(0x30a)](),this[_0x34bc5f(0x11c)]['next']([]),this[_0x34bc5f(0x11c)][_0x34bc5f(0x30a)]();}[_0x598a93(0x217)](){const _0x25cdfe=_0x598a93;this[_0x25cdfe(0x290)]||(this['_init']=!0x0,this['_session']['sessionStatus$']['pipe'](_0x5c2c79(this['dispose$']))[_0x25cdfe(0x19e)](_0x760a71=>{const _0x271065=_0x25cdfe;_0x760a71===G[_0x271065(0x35f)]?this[_0x271065(0x1d4)]():this[_0x271065(0x461)]();}),this['_session']['event$'][_0x25cdfe(0x22c)](_0x5c2c79(this[_0x25cdfe(0x1f5)]))[_0x25cdfe(0x19e)](_0x19b995=>{const _0x45a164=_0x25cdfe,_0x2a2c28=_0x19b995['eventID'];_0x2a2c28===_0x5e9e5f['UPDATE_CURSOR']&&this[_0x45a164(0x451)](_0x19b995),_0x2a2c28===_0x5e9e5f[_0x45a164(0x289)]&&this[_0x45a164(0x3ba)](_0x19b995);}),this[_0x25cdfe(0x204)](),this['disposeWithMe'](this[_0x25cdfe(0x297)][_0x25cdfe(0x280)](_0x103899=>{const _0x100efb=_0x25cdfe;if(this[_0x100efb(0x3be)]&&_0x103899['id']===_0x283825['id']&&_0x103899[_0x100efb(0x27e)][_0x100efb(0x46f)]===this[_0x100efb(0x3a6)]){const _0xf483c=_0x103899['params'];this[_0x100efb(0x3ac)](_0xf483c['subUnitId'],_0xf483c[_0x100efb(0x30e)][0x0]);}})));}[_0x598a93(0x451)](_0x44b03b){const _0x17a21a=_0x598a93;var _0x245311,_0x539b14;const {memberID:_0x4c7d33,selection:_0x2a74b6}=_0x44b03b[_0x17a21a(0x249)],{sheetName:_0x5a66e7,range:_0x381aa1}=_0x52f227(_0x2a74b6),_0x4476af={'name':(_0x539b14=(_0x245311=this[_0x17a21a(0x348)][_0x17a21a(0x277)](this[_0x17a21a(0x3a6)],_0x4c7d33))==null?void 0x0:_0x245311['name'])!=null?_0x539b14:_0x17a21a(0x13a),'range':this[_0x17a21a(0x2f9)](_0x5a66e7,_0x381aa1),'sheetID':_0x5a66e7,'color':this[_0x17a21a(0x214)][_0x17a21a(0x3e6)](_0x4c7d33),'selection':_0x2a74b6},_0x145aa6=this['cursorInfo'];_0x145aa6[_0x17a21a(0x314)](_0x4c7d33,_0x4476af),this[_0x17a21a(0x2b6)]['next'](_0x145aa6);}['_onCursorDelete'](_0x40348d){const _0x9d2afd=_0x598a93,{memberID:_0x58848d}=_0x40348d['data'],_0x3e0c5b=this[_0x9d2afd(0x1e3)];_0x3e0c5b[_0x9d2afd(0x2c8)](_0x58848d),this[_0x9d2afd(0x2b6)]['next'](_0x3e0c5b);}[_0x598a93(0x2f9)](_0x338483,_0x4d90b8){const _0x2f831b=_0x598a93;var _0x159988,_0x5b5bf8;const _0x2ac640=(_0x5b5bf8=(_0x159988=this[_0x2f831b(0x343)][_0x2f831b(0x41c)](this[_0x2f831b(0x3a6)]))==null?void 0x0:_0x159988[_0x2f831b(0x42e)](_0x338483))==null?void 0x0:_0x5b5bf8[_0x2f831b(0x380)]();return(_0x2ac640==null?void 0x0:_0x2ac640[_0x2f831b(0x257)](_0x19765d=>_0x3f2a8c[_0x2f831b(0x131)](_0x19765d,_0x4d90b8)))||_0x4d90b8;}[_0x598a93(0x204)](){const _0x214e6b=_0x598a93,_0x2e6d45=new _0x1b0473(),_0x4fe172=yr(),_0x611a5a=()=>{const _0x49b31a=_0x5340;_0x2e6d45[_0x49b31a(0x308)]();const _0x443794=(_0x32c246,_0x1eb555,_0x3739e5,_0x158fe8)=>{const _0x4322ae=_0x49b31a;let _0x4e0030=[];switch(_0x32c246['id']){case _0x4c6334[_0x4322ae(0x29a)]:{_0x4e0030=_0x2cb8ab(_0x32c246,_0x158fe8);break;}case _0x4c6334[_0x4322ae(0x317)]:{_0x4e0030=_0x2dbb76(_0x32c246,_0x158fe8);break;}case _0x4c6334[_0x4322ae(0x328)]:{_0x4e0030=_0x3087b4(_0x32c246,_0x158fe8);break;}case _0x4c6334[_0x4322ae(0x445)]:{_0x4e0030=_0xf87b15(_0x32c246,_0x158fe8);break;}case _0x4c6334[_0x4322ae(0x2d2)]:{_0x4e0030=_0x8bbe00(_0x32c246,_0x158fe8);break;}case _0x4c6334[_0x4322ae(0x1f1)]:{_0x4e0030=_0x4f2dd1(_0x32c246,_0x158fe8);break;}case _0x4c6334[_0x4322ae(0x390)]:{_0x4e0030=_0x579d32(_0x32c246,_0x158fe8);break;}case _0x4c6334['RemoveColCommandId']:{_0x4e0030=_0x3811e5(_0x32c246,_0x158fe8);break;}case _0x4c6334[_0x4322ae(0x3a9)]:{_0x4e0030=_0x1b9105(_0x32c246,_0x158fe8);break;}}const _0xa6a72f=_0x3a7354(_0x4e0030,_0x158fe8),_0x1b34c4=this['cursorInfo'][_0x4322ae(0x175)](_0x1eb555);if(_0x1b34c4&&_0xa6a72f){const _0x3e6f81={..._0x1b34c4,'range':_0xa6a72f};this[_0x4322ae(0x1e3)][_0x4322ae(0x314)](_0x1eb555,_0x3e6f81),_0x4fe172(()=>{const _0x4e9726=_0x4322ae,_0x165392=this[_0x4e9726(0x163)][_0x4e9726(0x424)](_0xa6a72f,_0x3e5fbb=>(_0x165392[_0x4e9726(0x308)](),_0x443794(_0x3e5fbb,_0x1eb555,_0x3739e5,_0xa6a72f)));_0x2e6d45['add'](_0x165392);});}return{'redos':[],'undos':[]};};this[_0x49b31a(0x1e3)][_0x49b31a(0x264)]((_0x823c84,_0x2697ab)=>{const _0x39da30=_0x49b31a,{range:_0x12e938,sheetID:_0x1b75e2}=_0x823c84,_0x38de90=this['_refRangeService'][_0x39da30(0x424)](_0x12e938,_0x14e60e=>(_0x38de90[_0x39da30(0x308)](),_0x443794(_0x14e60e,_0x2697ab,_0x1b75e2,_0x12e938)));_0x2e6d45[_0x39da30(0x187)](_0x38de90);});};this[_0x214e6b(0x147)](_0x440d86(this[_0x214e6b(0x2b6)][_0x214e6b(0x19e)](()=>{_0x611a5a();})));}[_0x598a93(0x1d4)](){const _0x207044=_0x598a93;var _0x59a53c,_0x55bcea;if(this[_0x207044(0x3be)]=!0x0,((_0x59a53c=this['_univerInstanceService'][_0x207044(0x3c2)]())==null?void 0x0:_0x59a53c[_0x207044(0x14c)]())!==this[_0x207044(0x3a6)])return;const _0x2499df=(_0x55bcea=this[_0x207044(0x120)][_0x207044(0x175)](_0x429ce4)['getCurrentSelections']())==null?void 0x0:_0x55bcea[0x0],_0x41e7d0=this[_0x207044(0x343)]['getCurrentUnitForType'](_0x33d049[_0x207044(0x174)])['getActiveSheet']();_0x2499df&&_0x41e7d0&&this[_0x207044(0x3ac)](_0x41e7d0['getSheetId'](),_0x2499df);}[_0x598a93(0x461)](){const _0x2dceb7=_0x598a93;this[_0x2dceb7(0x3be)]=!0x1;}};Ot=Dr([fe(0x2,_0x592774(_0x579617)),fe(0x3,_0x592774(Ft)),fe(0x4,_0x592774(ae)),fe(0x5,_0x191290),fe(0x6,_0xbb225b),fe(0x7,_0x592774(_0x129b96))],Ot);var Nr=Object[_0x598a93(0x171)],Ur=Object['getOwnPropertyDescriptor'],Mr=(_0x55fe48,_0x388502,_0x13d6f5,_0x1f3328)=>{const _0x375a87=_0x598a93;for(var _0x185c93=_0x1f3328>0x1?void 0x0:_0x1f3328?Ur(_0x388502,_0x13d6f5):_0x388502,_0x17d754=_0x55fe48[_0x375a87(0x45e)]-0x1,_0x39bbcb;_0x17d754>=0x0;_0x17d754--)(_0x39bbcb=_0x55fe48[_0x17d754])&&(_0x185c93=(_0x1f3328?_0x39bbcb(_0x388502,_0x13d6f5,_0x185c93):_0x39bbcb(_0x185c93))||_0x185c93);return _0x1f3328&&_0x185c93&&Nr(_0x388502,_0x13d6f5,_0x185c93),_0x185c93;},_t=(_0x1b8f46,_0x56970e)=>(_0x359704,_0x479072)=>_0x56970e(_0x359704,_0x479072,_0x1b8f46);let pe=class extends _0x39a217{constructor(_0x1e57e6,_0x1e08c9,_0x52ffd3){const _0xfe4cf=_0x598a93;super(),l(this,'_entities',new Map()),l(this,_0xfe4cf(0x273),new _0x2199d6()),(this[_0xfe4cf(0x343)]=_0x1e57e6,this[_0xfe4cf(0x120)]=_0x1e08c9,this[_0xfe4cf(0x12e)]=_0x52ffd3,this[_0xfe4cf(0x290)]());}[_0x598a93(0x308)](){const _0x46b4d1=_0x598a93;super['dispose'](),this[_0x46b4d1(0x273)][_0x46b4d1(0x30a)](),this[_0x46b4d1(0x471)][_0x46b4d1(0x264)](_0x4c8602=>_0x4c8602['dispose']());}['getCollabCursors$'](_0x3530ef){const _0x1cd568=_0x598a93;return this[_0x1cd568(0x471)][_0x1cd568(0x1af)](_0x3530ef)?this[_0x1cd568(0x471)]['get'](_0x3530ef)[_0x1cd568(0x173)]:this[_0x1cd568(0x273)][_0x1cd568(0x22c)](_0x5e94e4(_0x4c823a=>_0x4c823a[_0x1cd568(0x3a6)]===_0x3530ef),_0x1a7b4a(_0x198c2d=>_0x198c2d[_0x1cd568(0x173)]));}[_0x598a93(0x290)](){const _0x2fb165=_0x598a93;this['_univerInstanceService'][_0x2fb165(0x3a1)](_0x33d049[_0x2fb165(0x174)])[_0x2fb165(0x22c)](_0x5c2c79(this[_0x2fb165(0x1f5)]))[_0x2fb165(0x19e)](async _0x359f8f=>{const _0x137711=_0x2fb165,_0x44159b=_0x359f8f[_0x137711(0x14c)](),_0x3c8d93=await this[_0x137711(0x1a1)](_0x44159b);this['_entityInit$'][_0x137711(0x12a)](_0x3c8d93),this[_0x137711(0x471)]['set'](_0x44159b,_0x3c8d93);}),this[_0x2fb165(0x343)][_0x2fb165(0x3a1)](_0x33d049[_0x2fb165(0x17d)])['pipe'](_0x5c2c79(this[_0x2fb165(0x1f5)]))[_0x2fb165(0x22c)](_0x5e94e4(_0x2f7843=>!_0x2f7843['getUnitId']()[_0x2fb165(0x482)]('__')))[_0x2fb165(0x19e)](async _0x4c38d3=>{const _0x3756a8=_0x2fb165,_0x4c7d29=_0x4c38d3[_0x3756a8(0x14c)](),_0x5baea6=await this[_0x3756a8(0x27c)](_0x4c7d29);this['_entityInit$'][_0x3756a8(0x12a)](_0x5baea6),this[_0x3756a8(0x471)][_0x3756a8(0x314)](_0x4c7d29,_0x5baea6);}),_0x4c82f1(this['_univerInstanceService'][_0x2fb165(0x24c)](_0x33d049[_0x2fb165(0x17d)]),this[_0x2fb165(0x343)][_0x2fb165(0x24c)](_0x33d049[_0x2fb165(0x174)]))['pipe'](_0x5c2c79(this[_0x2fb165(0x1f5)]))[_0x2fb165(0x19e)](_0x2e44b9=>{const _0x323c08=_0x2fb165,_0x9080e9=_0x2e44b9[_0x323c08(0x14c)](),_0x7d11fe=this[_0x323c08(0x471)][_0x323c08(0x175)](_0x9080e9);_0x7d11fe&&(_0x7d11fe[_0x323c08(0x308)](),this['_entities'][_0x323c08(0x2c8)](_0x9080e9));});}async[_0x598a93(0x1a1)](_0x1ceab2){const _0x10fc73=_0x598a93,_0x325d71=await this[_0x10fc73(0x12e)]['requireSession'](_0x1ceab2),_0x5ecc9d=this['_injector'][_0x10fc73(0x466)](Ot,_0x1ceab2,_0x325d71);return _0x5ecc9d[_0x10fc73(0x217)](),_0x5ecc9d;}async[_0x598a93(0x27c)](_0x563874){const _0x1951b7=_0x598a93,_0x324956=await this['_collabSessionService'][_0x1951b7(0x486)](_0x563874),_0x24938d=this[_0x1951b7(0x120)][_0x1951b7(0x466)](Rt,_0x563874,_0x324956);return _0x24938d[_0x1951b7(0x217)](),_0x24938d;}};pe=Mr([_t(0x0,_0x191290),_t(0x1,_0x592774(_0x579617)),_t(0x2,_0x592774(ce))],pe);const Le=0x14,us=0xc8,ut=0x4,Ar=0x5;function Lr(_0x7a9890,_0x498f61){const _0x5fb97b=_0x598a93;let {radius:_0x13965c,width:_0x36b270,height:_0x130375}=_0x498f61;_0x13965c=_0x13965c!=null?_0x13965c:0x0,_0x36b270=_0x36b270!=null?_0x36b270:0x1e,_0x130375=_0x130375!=null?_0x130375:0x1e;let _0x58c31c=0x0,_0x5c02c2=0x0,_0x7f6bfa=0x0;_0x58c31c=_0x5c02c2=_0x7f6bfa=Math[_0x5fb97b(0x3ab)](_0x13965c,_0x36b270/0x2,_0x130375/0x2),_0x7a9890[_0x5fb97b(0x19c)](),_0x7a9890['moveTo'](_0x58c31c,0x0),_0x7a9890[_0x5fb97b(0x209)](_0x36b270-_0x5c02c2,0x0),_0x7a9890['arc'](_0x36b270-_0x5c02c2,_0x5c02c2,_0x5c02c2,Math['PI']*0x3/0x2,0x0,!0x1),_0x7a9890[_0x5fb97b(0x209)](_0x36b270,_0x130375-_0x7f6bfa),_0x7a9890[_0x5fb97b(0x30f)](_0x36b270-_0x7f6bfa,_0x130375-_0x7f6bfa,_0x7f6bfa,0x0,Math['PI']/0x2,!0x1),_0x7a9890[_0x5fb97b(0x209)](0x0,_0x130375),_0x7a9890['lineTo'](0x0,_0x58c31c),_0x7a9890['arc'](_0x58c31c,_0x58c31c,_0x58c31c,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x7a9890[_0x5fb97b(0x26d)](),_0x498f61[_0x5fb97b(0x330)]&&(_0x7a9890[_0x5fb97b(0x350)](),_0x7a9890['fillStyle']=_0x498f61[_0x5fb97b(0x330)],_0x498f61[_0x5fb97b(0x484)]===_0x5fb97b(0x2fa)?_0x7a9890[_0x5fb97b(0x330)](_0x5fb97b(0x2fa)):_0x7a9890[_0x5fb97b(0x330)](),_0x7a9890['restore']());}class st extends _0x5e2e32{constructor(_0x5da031,_0x1c8661){const _0x5c2194=_0x598a93;super(_0x5da031,_0x1c8661),l(this,'color'),l(this,'text'),(this[_0x5c2194(0x456)]=_0x1c8661==null?void 0x0:_0x1c8661['color'],this[_0x5c2194(0x448)]=_0x1c8661==null?void 0x0:_0x1c8661[_0x5c2194(0x448)]);}static['drawWith'](_0x7df0d3,_0x4799c3){const _0x12cc17=_0x598a93,{text:_0x5839f4,color:_0x504e41}=_0x4799c3;_0x7df0d3[_0x12cc17(0x350)](),_0x7df0d3[_0x12cc17(0x2a6)]=_0x12cc17(0x44a);const _0x1dcda2=_0x7df0d3[_0x12cc17(0x3c4)](_0x5839f4)['width'],_0x492bc2=Math[_0x12cc17(0x3ab)](_0x1dcda2+0x2*ut,us);Lr(_0x7df0d3,{'height':Le,'radius':0x4,'width':_0x492bc2,'fill':_0x504e41,'evented':!0x1}),_0x7df0d3[_0x12cc17(0x2c0)]=_0x12cc17(0x438);const _0x42bd2c=ut,_0x4cb2e5=Le-Ar,_0x543850=us-0x2*ut;if(_0x1dcda2>_0x543850){let _0x48efbe='',_0x4e0c1e=0x0;for(const _0x4595e4 of _0x5839f4){const _0x6692a=_0x7df0d3[_0x12cc17(0x3c4)](_0x4595e4)[_0x12cc17(0x1a5)];if(_0x4e0c1e+_0x6692a<=_0x543850-_0x7df0d3[_0x12cc17(0x3c4)](_0x12cc17(0x1ee))['width'])_0x48efbe+=_0x4595e4,_0x4e0c1e+=_0x6692a;else{_0x48efbe+='...';break;}}_0x7df0d3[_0x12cc17(0x216)](_0x48efbe,_0x42bd2c,_0x4cb2e5);}else _0x7df0d3['fillText'](_0x5839f4,_0x42bd2c,_0x4cb2e5);_0x7df0d3['restore']();}['_draw'](_0x1222fb){const _0x2ed24a=_0x598a93;st[_0x2ed24a(0x400)](_0x1222fb,this);}}const dt=_0x598a93(0x33c),$r=_0x598a93(0x3a0),jr=_0x598a93(0x46c),De=0x6,xr=1.5,ft=0x4,Hr=1.5,kr=_0x598a93(0x1c6);class ds{constructor(_0x21f06b,_0x21e422,_0x1f1308,_0x3ec263){const _0x4c13ee=_0x598a93;l(this,_0x4c13ee(0x12f),[]),l(this,_0x4c13ee(0x2c6),null),l(this,'_textBubble',null),l(this,_0x4c13ee(0x458),null),l(this,_0x4c13ee(0x39d),null),l(this,'_eventUnsubscribe',null),(this[_0x4c13ee(0x487)]=_0x21f06b,this[_0x4c13ee(0x1bc)]=_0x21e422,this[_0x4c13ee(0x1a4)]=_0x1f1308,this[_0x4c13ee(0x21c)]=_0x3ec263,this[_0x4c13ee(0x357)]());}set[_0x598a93(0x363)](_0x5f2aae){const _0x209ce6=_0x598a93;_0x5f2aae?(this[_0x209ce6(0x458)]&&this[_0x209ce6(0x458)][_0x209ce6(0x21f)](),this[_0x209ce6(0x47b)]&&this[_0x209ce6(0x47b)][_0x209ce6(0x21e)]()):(this[_0x209ce6(0x458)]&&this['_anchorDot'][_0x209ce6(0x21e)](),this['_textBubble']&&this[_0x209ce6(0x47b)][_0x209ce6(0x21f)]());}[_0x598a93(0x308)](){const _0x95765d=_0x598a93;for(const _0x41b706 of this[_0x95765d(0x12f)])_0x41b706[_0x95765d(0x308)]();this[_0x95765d(0x47b)]&&this[_0x95765d(0x47b)][_0x95765d(0x308)](),this['_anchorDot']&&this['_anchorDot'][_0x95765d(0x308)](),this['_anchor']&&this[_0x95765d(0x2c6)][_0x95765d(0x308)](),this[_0x95765d(0x382)]&&this['_eventUnsubscribe']();}[_0x598a93(0x357)](){const _0x3c162b=_0x598a93;var _0x501ca8;const {_docSkeleton:_0x12a2a3,_document:_0xf9dc5f}=this,{color:_0x417950,name:_0x5040c5,ranges:_0x36d6d4}=this[_0x3c162b(0x487)],_0x469d78=_0xf9dc5f[_0x3c162b(0x1e4)](),{docsLeft:_0x21d17d,docsTop:_0x27394a}=_0x469d78,_0x104c17=new _0x37e9f6(_0x469d78,_0x12a2a3);for(const {startOffset:_0x431b8c,endOffset:_0x285270,collapsed:_0x3236c2,isActive:_0x537055}of _0x36d6d4){const _0x41d8a5=_0x12a2a3[_0x3c162b(0x358)](_0x431b8c),_0xe13fb8=_0x12a2a3['findNodePositionByCharIndex'](_0x285270);if(_0x537055){const {contentBoxPointGroup:_0xf9c338}=_0x104c17['getRangePointData'](_0xe13fb8,_0xe13fb8);if(_0xf9c338[_0x3c162b(0x45e)]===0x0)continue;this['_drawAnchor'](_0x417950,_0xf9c338,_0x21d17d,_0x27394a,_0x5040c5),this[_0x3c162b(0x382)]=this[_0x3c162b(0x3b4)]();}if(!_0x3236c2&&_0x41d8a5&&_0xe13fb8){if(_0x115f80(_0x41d8a5,_0xe13fb8)){const _0x11e0fa=new _0x4a0b4b(_0x469d78,_0x12a2a3),{pointGroup:_0xc92e07}=(_0x501ca8=_0x11e0fa[_0x3c162b(0x178)](_0x41d8a5,_0xe13fb8))!=null?_0x501ca8:{};if(_0xc92e07==null||_0xc92e07[_0x3c162b(0x45e)]===0x0)continue;this[_0x3c162b(0x3e4)](_0x417950,_0xc92e07,_0x21d17d,_0x27394a);}else{const {contentBoxPointGroup:_0x5c6865}=_0x104c17['getRangePointData'](_0x41d8a5,_0xe13fb8);if(_0x5c6865['length']===0x0)continue;this['_drawTextRange'](_0x417950,_0x5c6865,_0x21d17d,_0x27394a);}}}}[_0x598a93(0x26b)](_0x3df3c3,_0x775882,_0x113cd8,_0x5f272a,_0x531aeb){const _0x3b9209=_0x598a93,_0x3afdfb=this[_0x3b9209(0x14a)](_0x775882),{left:_0x2bf784,top:_0x221098,height:_0x10c638}=_0x3afdfb,_0x3f8733=this[_0x3b9209(0x2d3)](),_0x5861a5=Hr/_0x3f8733,_0x3836c3=new _0x5ad1b3(dt+_0x4105cf[_0x3b9209(0x33b)](De),{'left':_0x2bf784+_0x113cd8-_0x5861a5,'top':_0x221098+_0x5f272a,'height':_0x10c638,'width':xr,'fill':_0x3df3c3||_0x5a30ab(_0x911f97[_0x3b9209(0x192)],0x0),'strokeWidth':_0x5861a5,'stroke':kr,'evented':!0x0});this[_0x3b9209(0x2c6)]=_0x3836c3,this['_scene']['addObject'](_0x3836c3,_0xb1a49e);const _0x3bbce7=new _0x5ad1b3(dt+_0x4105cf[_0x3b9209(0x33b)](De),{'left':_0x2bf784+_0x113cd8-_0x5861a5,'top':_0x221098+_0x5f272a-ft/0x2,'height':ft,'width':ft,'fill':_0x3df3c3||_0x5a30ab(_0x911f97[_0x3b9209(0x192)],0x0),'strokeWidth':0x0,'stroke':_0x3df3c3||_0x5a30ab(_0x911f97[_0x3b9209(0x192)],0x0),'evented':!0x1});this[_0x3b9209(0x458)]=_0x3bbce7,this['_scene'][_0x3b9209(0x133)](_0x3bbce7,_0xb1a49e);const _0x595197=new st(dt+_0x4105cf['generateRandomId'](De),{'left':_0x2bf784+_0x113cd8-_0x5861a5,'top':_0x221098+_0x5f272a-Le,'text':_0x531aeb,'color':_0x3df3c3});this[_0x3b9209(0x47b)]=_0x595197,this[_0x3b9209(0x1bc)][_0x3b9209(0x133)](_0x595197,_0xb1a49e),this['_hover']=!0x1;}[_0x598a93(0x3b4)](){const _0x3a1e84=_0x598a93,_0x397cd=this[_0x3a1e84(0x2c6)][_0x3a1e84(0x270)][_0x3a1e84(0x2f2)](()=>{this['_hover']=!0x0;}),_0x3e7c62=this['_anchor']['onPointerLeave$'][_0x3a1e84(0x2f2)](()=>{const _0x191abb=_0x3a1e84;this[_0x191abb(0x39d)]&&clearTimeout(this[_0x191abb(0x39d)]),this[_0x191abb(0x39d)]=setTimeout(()=>{const _0x30b993=_0x191abb;this[_0x30b993(0x363)]=!0x1;},0x7d0);});return()=>{const _0x4b0601=_0x3a1e84;_0x397cd['unsubscribe'](),_0x3e7c62[_0x4b0601(0x398)]();};}[_0x598a93(0x183)](_0x4abc9d,_0x4d42ec,_0x398d49,_0x400285){const _0x330d89=_0x598a93,_0x2fb2e2=new _0x9714c3(_0x4abc9d)[_0x330d89(0x16a)](0.2)[_0x330d89(0x3aa)](),_0x3e5829=new _0x5ce008($r+_0x4105cf[_0x330d89(0x33b)](De),{'pointsGroup':_0x4d42ec,'fill':_0x2fb2e2||_0x5a30ab(_0x911f97[_0x330d89(0x192)],0.2),'left':_0x398d49,'top':_0x400285,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x330d89(0x12f)][_0x330d89(0x34e)](_0x3e5829),this[_0x330d89(0x1bc)][_0x330d89(0x133)](_0x3e5829,_0xb1a49e);}[_0x598a93(0x3e4)](_0x26c442,_0x176939,_0x5743af,_0x4233ed){const _0xb71f04=_0x598a93,_0x53900f=new _0x9714c3(_0x26c442)[_0xb71f04(0x16a)](0.2)[_0xb71f04(0x3aa)](),_0x4aacb7=new _0x5ce008(jr+_0x4105cf[_0xb71f04(0x33b)](De),{'pointsGroup':_0x176939,'fill':_0x53900f||_0x5a30ab(_0x911f97[_0xb71f04(0x192)],0.2),'left':_0x5743af,'top':_0x4233ed,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x4aacb7),this[_0xb71f04(0x1bc)][_0xb71f04(0x133)](_0x4aacb7,_0xb1a49e);}[_0x598a93(0x14a)](_0x4a29ff){const _0x416c58=_0x4a29ff[0x0],_0x490461=_0x416c58[0x0],_0x22bdf8=_0x416c58[0x2],{x:_0x4041be,y:_0x219202}=_0x490461,{x:_0x518d98,y:_0x3b7568}=_0x22bdf8;return{'left':_0x4041be,'top':_0x219202,'width':_0x518d98-_0x4041be,'height':_0x3b7568-_0x219202};}['_getScale'](){const _0x5027fd=_0x598a93,{scaleX:_0xb22ce2,scaleY:_0x43def8}=this['_scene'][_0x5027fd(0x237)]();return Math[_0x5027fd(0x23c)](_0xb22ce2,_0x43def8);}}var Br=Object['defineProperty'],Vr=Object[_0x598a93(0x1cb)],Fr=(_0x2654f3,_0x3d4357,_0x118430,_0x4c00d0)=>{const _0x4381b5=_0x598a93;for(var _0x15e6c6=_0x4c00d0>0x1?void 0x0:_0x4c00d0?Vr(_0x3d4357,_0x118430):_0x3d4357,_0x44b5d7=_0x2654f3[_0x4381b5(0x45e)]-0x1,_0x456ce5;_0x44b5d7>=0x0;_0x44b5d7--)(_0x456ce5=_0x2654f3[_0x44b5d7])&&(_0x15e6c6=(_0x4c00d0?_0x456ce5(_0x3d4357,_0x118430,_0x15e6c6):_0x456ce5(_0x15e6c6))||_0x15e6c6);return _0x4c00d0&&_0x15e6c6&&Br(_0x3d4357,_0x118430,_0x15e6c6),_0x15e6c6;},xe=(_0x543b21,_0x5989f9)=>(_0x401349,_0xfb3a68)=>_0x5989f9(_0x401349,_0xfb3a68,_0x543b21);let Dt=class extends _0x39a217{constructor(_0x50c031,_0x4a6159,_0x18b029,_0x428c4b,_0x4316c0){const _0x3fb0d8=_0x598a93;super(),l(this,_0x3fb0d8(0x2dc),[]),l(this,_0x3fb0d8(0x23b),[]),(this['_context']=_0x50c031,this[_0x3fb0d8(0x20f)]=_0x4a6159,this[_0x3fb0d8(0x195)]=_0x18b029,this[_0x3fb0d8(0x297)]=_0x428c4b,this[_0x3fb0d8(0x422)]=_0x4316c0,this[_0x3fb0d8(0x290)]());}[_0x598a93(0x290)](){const _0x44a89a=_0x598a93,_0x3fbc5e=this[_0x44a89a(0x1c4)][_0x44a89a(0x46f)],_0x42a114=this[_0x44a89a(0x20f)];this[_0x44a89a(0x147)](_0x340b21([this[_0x44a89a(0x195)][_0x44a89a(0x25d)](_0x3fbc5e),this['_themeService'][_0x44a89a(0x44b)]])[_0x44a89a(0x22c)](_0x4eca0b(([_0x4999cd,_0x547895])=>({'skeleton':_0x42a114[_0x44a89a(0x15f)](),'cursors':[..._0x4999cd[_0x44a89a(0x2af)]()]['flatMap'](_0x7d46ac=>({..._0x7d46ac,'color':_0x547895[_0x7d46ac[_0x44a89a(0x456)]]}))})))[_0x44a89a(0x19e)](_0x30d3a5=>{const _0x30feba=_0x44a89a;if(this[_0x30feba(0x186)](),_0x30d3a5){const {skeleton:_0x5cfa7e,cursors:_0x4c061e}=_0x30d3a5;this[_0x30feba(0x19b)](_0x5cfa7e,_0x4c061e);}})),this['_initResize'](),this[_0x44a89a(0x14f)]();}['_updateCollabCursors'](_0x64f02a,_0x440a80){const _0x571e1d=_0x598a93,{scene:_0x3db6e9,mainComponent:_0x58131d}=this[_0x571e1d(0x1c4)],_0x5792ba=_0x440a80[_0x571e1d(0x202)](_0x37b130=>new ds(_0x37b130,_0x3db6e9,_0x64f02a,_0x58131d));this[_0x571e1d(0x2dc)]=_0x5792ba,this[_0x571e1d(0x23b)]=_0x440a80;}[_0x598a93(0x360)](){const _0x877c8c=_0x598a93;this[_0x877c8c(0x186)]();const {scene:_0xa0ca9f,mainComponent:_0x79c9cd}=this['_context'],_0x2b0108=this['_docSkeletonManagerService']['getSkeleton'](),_0xd98165=this[_0x877c8c(0x23b)][_0x877c8c(0x202)](_0x554827=>new ds(_0x554827,_0xa0ca9f,_0x2b0108,_0x79c9cd));this['_cursorShapes']=_0xd98165;}['_removeCollabCursors'](){const _0x5c7c77=_0x598a93;this[_0x5c7c77(0x2dc)][_0x5c7c77(0x264)](_0x55da90=>_0x55da90[_0x5c7c77(0x308)]()),this['_cursorShapes']=[];}['_initCommandExecutedListener'](){const _0x16296f=_0x598a93,_0x34a799=[_0x43d454['id']];this['disposeWithMe'](this[_0x16296f(0x297)][_0x16296f(0x280)](_0x852503=>{const _0x3f0b06=_0x16296f;_0x34a799['includes'](_0x852503['id'])&&_0x852503[_0x3f0b06(0x27e)]['unitId']===this['_context'][_0x3f0b06(0x46f)]&&this[_0x3f0b06(0x360)]();}));}['_initResize'](){const _0x357e9c=_0x598a93;this[_0x357e9c(0x147)](_0x7c5a3d(this[_0x357e9c(0x1c4)][_0x357e9c(0x267)][_0x357e9c(0x47c)])[_0x357e9c(0x22c)](_0x34901b(_0x485d39=>_0x485d39[_0x357e9c(0x29d)]===_0x1c8336['resize']),_0x14157e(0x10))[_0x357e9c(0x19e)](()=>{const _0x316a0a=_0x357e9c;this[_0x316a0a(0x360)]();}));}};Dt=Fr([xe(0x1,_0x592774(_0x6f5374)),xe(0x2,_0x592774(pe)),xe(0x3,_0xbb225b),xe(0x4,_0x592774(_0x3777c2))],Dt);const Wr=0x1,Gr=1.5;class Yr extends _0x5e2e32{constructor(_0x845f3,_0x59c6ee){const _0x524301=_0x598a93;super(_0x845f3,_0x59c6ee),l(this,_0x524301(0x144)),l(this,_0x524301(0x383),!0x1),l(this,_0x524301(0x43f)),l(this,'_name',''),l(this,'_labelPosition',_0x524301(0x135)),l(this,_0x524301(0x3f8)),(_0x59c6ee&&this[_0x524301(0x203)](_0x59c6ee),this['onPointerEnter$'][_0x524301(0x2f2)](()=>this[_0x524301(0x203)]({'hovered':!0x0})),this[_0x524301(0x25c)][_0x524301(0x2f2)](()=>this[_0x524301(0x203)]({'hovered':!0x1})));}['setShapeProps'](_0x4b13f5){const _0x432088=_0x598a93;var _0x37ed85,_0x1dae68,_0x2c8318,_0x5cae64,_0x42ac2e,_0x12f81b;this[_0x432088(0x144)]=(_0x37ed85=_0x4b13f5[_0x432088(0x456)])!=null?_0x37ed85:this[_0x432088(0x144)],this[_0x432088(0x383)]=(_0x1dae68=_0x4b13f5[_0x432088(0x1d7)])!=null?_0x1dae68:this[_0x432088(0x383)],this['_range']=(_0x2c8318=_0x4b13f5[_0x432088(0x136)])!=null?_0x2c8318:this[_0x432088(0x43f)],this[_0x432088(0x2aa)]=(_0x5cae64=_0x4b13f5[_0x432088(0x3d7)])!=null?_0x5cae64:this[_0x432088(0x2aa)],this[_0x432088(0x189)]=(_0x42ac2e=_0x4b13f5[_0x432088(0x36d)])!=null?_0x42ac2e:this['_labelPosition'],this[_0x432088(0x3f8)]=(_0x12f81b=_0x4b13f5[_0x432088(0x3a7)])!=null?_0x12f81b:this[_0x432088(0x3f8)],this[_0x432088(0x13e)]({'width':_0x4b13f5[_0x432088(0x1a5)],'height':_0x4b13f5[_0x432088(0x3dd)]});}[_0x598a93(0x303)](_0xc91da8){const _0x285d91=_0x598a93,{row:_0x2743ee,column:_0x40a1ea}=_0xc91da8;if(_0x2743ee>=this[_0x285d91(0x43f)][_0x285d91(0x432)]&&_0x2743ee<=this['_range'][_0x285d91(0x405)]&&_0x40a1ea>=this['_range']['startColumn']&&_0x40a1ea<=this[_0x285d91(0x43f)][_0x285d91(0x412)]){this[_0x285d91(0x203)]({'hovered':!0x0});return;}this[_0x285d91(0x203)]({'hovered':!0x1});}[_0x598a93(0x46d)](_0x23846f){return!0x1;}[_0x598a93(0x29f)](_0x5553f9){const _0x17d02b=_0x598a93;_0x5ad1b3[_0x17d02b(0x400)](_0x5553f9,{'width':this[_0x17d02b(0x1a5)],'height':this['height'],'strokeWidth':Gr,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x17d02b(0x3f8)]}),this['_hovered']&&(_0x5553f9[_0x17d02b(0x350)](),_0x5553f9[_0x17d02b(0x274)](0x1,0x0,0x0,0x1,this[_0x17d02b(0x1a5)],this[_0x17d02b(0x189)]===_0x17d02b(0x479)?0x0:-Le),st[_0x17d02b(0x400)](_0x5553f9,{'text':this[_0x17d02b(0x2aa)],'color':this['_color']}),_0x5553f9[_0x17d02b(0x1c3)]());}}var Kr=Object[_0x598a93(0x171)],Xr=Object[_0x598a93(0x1cb)],Jr=(_0x155b30,_0x577c45,_0x1f2115,_0x4ff4ac)=>{const _0x46e3f7=_0x598a93;for(var _0x3ce917=_0x4ff4ac>0x1?void 0x0:_0x4ff4ac?Xr(_0x577c45,_0x1f2115):_0x577c45,_0x461cab=_0x155b30[_0x46e3f7(0x45e)]-0x1,_0x1a36b0;_0x461cab>=0x0;_0x461cab--)(_0x1a36b0=_0x155b30[_0x461cab])&&(_0x3ce917=(_0x4ff4ac?_0x1a36b0(_0x577c45,_0x1f2115,_0x3ce917):_0x1a36b0(_0x3ce917))||_0x3ce917);return _0x4ff4ac&&_0x3ce917&&Kr(_0x577c45,_0x1f2115,_0x3ce917),_0x3ce917;},mt=(_0x188db2,_0x1c3e64)=>(_0x18097b,_0x36119d)=>_0x1c3e64(_0x18097b,_0x36119d,_0x188db2);const qr=0x1389;let wt=class extends _0x39a217{constructor(_0x32ef13,_0x1be6f5,_0x2541a,_0x330438){const _0x2f9634=_0x598a93;super(),l(this,_0x2f9634(0x23b),new Set()),l(this,_0x2f9634(0x3e0),null),(this[_0x2f9634(0x1c4)]=_0x32ef13,this[_0x2f9634(0x483)]=_0x1be6f5,this[_0x2f9634(0x195)]=_0x2541a,this[_0x2f9634(0x422)]=_0x330438,this['_init']());}[_0x598a93(0x290)](){const _0x5aae2f=_0x598a93;this['_sheetSkeletonManagerService'][_0x5aae2f(0x37e)][_0x5aae2f(0x22c)](_0x156b4c(this[_0x5aae2f(0x1f5)]),_0xaf9045(_0x4f7874=>{const _0x33d627=_0x5aae2f;if(_0x4f7874){const _0x3764cd=_0x4f7874[_0x33d627(0x251)];return _0x340b21(this[_0x33d627(0x195)][_0x33d627(0x25d)](this[_0x33d627(0x1c4)][_0x33d627(0x46f)]),this[_0x33d627(0x422)][_0x33d627(0x44b)])[_0x33d627(0x22c)](_0x4eca0b(([_0x1929a8,_0x308d35])=>{const _0x3995b6=_0x33d627,_0x43d8c3=new Map();return _0x1929a8[_0x3995b6(0x264)]((_0xbe6cf2,_0x4607b1)=>{const _0x7e184=_0x3995b6;if(_0xbe6cf2[_0x7e184(0x37f)]===_0x3764cd){const _0x46239a={..._0xbe6cf2};_0x46239a[_0x7e184(0x456)]=_0x308d35[_0xbe6cf2['color']],_0x43d8c3[_0x7e184(0x314)](_0x4607b1,_0x46239a);}}),{'skeleton':_0x4f7874,'cursors':_0x43d8c3};}));}return _0x3fea04({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x1899a0,cursors:_0x1643f5})=>{const _0x55174f=_0x5aae2f;this[_0x55174f(0x186)](),_0x1899a0&&this['_updateCollabCursors'](_0x1899a0,_0x1643f5);}),this[_0x5aae2f(0x483)][_0x5aae2f(0x37e)][_0x5aae2f(0x19e)](_0x5b47f9=>{const _0x368579=_0x5aae2f;if(_0x5b47f9==null)return;const {skeleton:_0x354fec}=_0x5b47f9,{scene:_0x21fc43}=this[_0x368579(0x1c4)];_0x21fc43[_0x368579(0x416)]['subscribeEvent'](_0x568d4b(_0x102cad=>{const _0x3d19ea=_0x368579;var _0x132007,_0x527e27;const {offsetX:_0x65df8d,offsetY:_0x378c15}=_0x102cad,{x:_0x11d044,y:_0x2c3c2f}=_0x21fc43[_0x3d19ea(0x467)](_0x366f7a['FromArray']([_0x65df8d,_0x378c15])),{scaleX:_0x7c16b1,scaleY:_0x40b93e}=_0x21fc43[_0x3d19ea(0x237)](),_0x2aaaba=_0x21fc43[_0x3d19ea(0x279)](_0x5688e5[_0x3d19ea(0x2d4)]),_0x2c16c9=_0x21fc43['getVpScrollXYInfoByPosToVp'](_0x366f7a[_0x3d19ea(0x44f)]([_0x11d044,_0x2c3c2f]),_0x2aaaba),_0x3c757e=_0x354fec['getCellPositionByOffset'](_0x65df8d,_0x378c15,_0x7c16b1,_0x40b93e,_0x2c16c9);((_0x132007=this['_lastPointer'])==null?void 0x0:_0x132007[_0x3d19ea(0x3af)])===_0x3c757e[_0x3d19ea(0x3af)]&&((_0x527e27=this[_0x3d19ea(0x3e0)])==null?void 0x0:_0x527e27['row'])===_0x3c757e[_0x3d19ea(0x2cf)]||this[_0x3d19ea(0x23b)][_0x3d19ea(0x264)](_0xbf4e4a=>{const _0x7d9a3e=_0x3d19ea;_0xbf4e4a[_0x7d9a3e(0x303)](_0x3c757e);});},0x64));});}[_0x598a93(0x19b)](_0x6c7007,_0x49ea57){const _0x5216fd=_0x598a93;var _0x1108de;const _0x33bf19=(_0x1108de=this['_sheetSkeletonManagerService'][_0x5216fd(0x47a)]())==null?void 0x0:_0x1108de['skeleton'];if(!_0x33bf19)return;const _0x2f3df8=this[_0x5216fd(0x384)]();if(!_0x2f3df8)return;this[_0x5216fd(0x23b)][_0x5216fd(0x264)](_0x21269d=>{const _0x126a66=_0x5216fd;_0x21269d[_0x126a66(0x408)]();});const {scene:_0x1d8fae}=_0x2f3df8,_0x2e1ae3=zr(Array[_0x5216fd(0x30c)](_0x49ea57['values']()))[_0x5216fd(0x202)](_0x20323a=>{const _0x4d5bf5=_0x5216fd,{color:_0x59353e,range:_0x557c0c,name:_0x18372d,selection:_0x1202c9,sheetID:_0x5c1284}=_0x20323a,{startColumn:_0x1313f4,startRow:_0x1434ea,endColumn:_0x37086c,endRow:_0x2c7df5}=_0x557c0c,_0x1a68f6=_0x59d862(_0x1434ea,_0x1313f4,_0x1d8fae,_0x33bf19),_0x327de1=_0x59d862(_0x2c7df5,_0x37086c,_0x1d8fae,_0x33bf19),{columnHeaderHeightAndMarginTop:_0x2f3b9e}=_0x33bf19,{startX:_0x3e0dfc,startY:_0x17e542}=_0x1a68f6,{endX:_0x35f73b,endY:_0xab06ba}=_0x327de1,_0x36576c=_0x35f73b-_0x3e0dfc,_0x4d7221=_0xab06ba-_0x17e542,_0x1af6f9={'labelPosition':_0x17e542-_0x2f3b9e>=Le?'top':_0x4d5bf5(0x479),'sheetID':_0x5c1284,'range':_0x557c0c,'color':_0x59353e,'name':_0x18372d,'selection':_0x1202c9,'left':_0x3e0dfc,'top':_0x17e542,'width':_0x36576c,'height':_0x4d7221,'evented':!0x1,'zIndex':qr};return new Yr(_0x18372d,_0x1af6f9);});_0x1d8fae[_0x5216fd(0x2f5)](_0x2e1ae3,Wr),this[_0x5216fd(0x23b)]=new Set(_0x2e1ae3);}[_0x598a93(0x186)](){const _0x46a795=_0x598a93;var _0x12f1e6;(_0x12f1e6=this['_cursors'])==null||_0x12f1e6[_0x46a795(0x264)](_0x36b3ee=>_0x36b3ee[_0x46a795(0x308)]());}[_0x598a93(0x384)](){const _0xc95620=_0x598a93;return _0x1e1911(this[_0xc95620(0x1c4)][_0xc95620(0x2df)],this[_0xc95620(0x1c4)]);}};wt=Jr([mt(0x1,_0x592774(_0xb93504)),mt(0x2,_0x592774(pe)),mt(0x3,_0x592774(_0x3777c2))],wt);function zr(_0x2449fc){const _0x4594b7=_0x598a93,_0x370c2d=new Map();return _0x2449fc[_0x4594b7(0x264)](_0x1e96b8=>{const _0x4115bf=_0x4594b7;if(_0x370c2d['has'](_0x1e96b8[_0x4115bf(0x200)])){const _0x58c523=_0x370c2d[_0x4115bf(0x175)](_0x1e96b8[_0x4115bf(0x200)]);_0x58c523[_0x4115bf(0x3d7)]+=',\x20'+_0x1e96b8['name'];}else _0x370c2d[_0x4115bf(0x314)](_0x1e96b8[_0x4115bf(0x200)],_0x1e96b8);}),Array[_0x4594b7(0x30c)](_0x370c2d[_0x4594b7(0x2af)]());}var N=function(){const _0x15648f=_0x598a93;return N=Object[_0x15648f(0x418)]||function(_0x50e18a){const _0x46e656=_0x15648f;for(var _0x4734d4,_0x4fa284=0x1,_0x3f518b=arguments[_0x46e656(0x45e)];_0x4fa284<_0x3f518b;_0x4fa284++){_0x4734d4=arguments[_0x4fa284];for(var _0x4162a1 in _0x4734d4)Object[_0x46e656(0x388)][_0x46e656(0x17b)][_0x46e656(0x327)](_0x4734d4,_0x4162a1)&&(_0x50e18a[_0x4162a1]=_0x4734d4[_0x4162a1]);}return _0x50e18a;},N[_0x15648f(0x403)](this,arguments);},Zr=function(_0x205ae9,_0x24ea7e){const _0x1a7f33=_0x598a93;var _0x207cff={};for(var _0x194e83 in _0x205ae9)Object[_0x1a7f33(0x388)][_0x1a7f33(0x17b)][_0x1a7f33(0x327)](_0x205ae9,_0x194e83)&&_0x24ea7e[_0x1a7f33(0x3d9)](_0x194e83)<0x0&&(_0x207cff[_0x194e83]=_0x205ae9[_0x194e83]);if(_0x205ae9!=null&&typeof Object['getOwnPropertySymbols']==_0x1a7f33(0x3b0)){for(var _0x110c31=0x0,_0x194e83=Object['getOwnPropertySymbols'](_0x205ae9);_0x110c31<_0x194e83['length'];_0x110c31++)_0x24ea7e['indexOf'](_0x194e83[_0x110c31])<0x0&&Object[_0x1a7f33(0x388)]['propertyIsEnumerable'][_0x1a7f33(0x327)](_0x205ae9,_0x194e83[_0x110c31])&&(_0x207cff[_0x194e83[_0x110c31]]=_0x205ae9[_0x194e83[_0x110c31]]);}return _0x207cff;},Wt=_0xd76e5f(function(_0x4197d0,_0x38b014){const _0x3e0c0a=_0x598a93;var _0x5037a3=_0x4197d0[_0x3e0c0a(0x1c8)],_0x3e12cf=_0x4197d0['id'],_0xa64b8c=_0x4197d0[_0x3e0c0a(0x23d)],_0x92c74=_0x4197d0['extend'],_0x461230=Zr(_0x4197d0,[_0x3e0c0a(0x1c8),'id',_0x3e0c0a(0x23d),'extend']),_0x320248=_0x3e0c0a(0x1a8)['concat'](_0x3e12cf,'\x20')[_0x3e0c0a(0x39b)](_0xa64b8c||'')[_0x3e0c0a(0x336)](),_0x1cfe52=_0x5a5d9c('_'['concat'](to()));return ks(_0x5037a3,''[_0x3e0c0a(0x39b)](_0x3e12cf),{'defIds':_0x5037a3[_0x3e0c0a(0x1ad)],'idSuffix':_0x1cfe52[_0x3e0c0a(0x208)]},N({'ref':_0x38b014,'className':_0x320248},_0x461230),_0x92c74);});function ks(_0x45b408,_0x251687,_0x441251,_0x32edf3,_0x20d755){const _0x3aba10=_0x598a93;return _0x4a815b(_0x45b408[_0x3aba10(0x1b0)],N(N({'key':_0x251687},Qr(_0x45b408,_0x441251,_0x20d755)),_0x32edf3),(eo(_0x45b408,_0x441251)['children']||[])[_0x3aba10(0x202)](function(_0x58af11,_0x2f46ce){const _0x3e9d1c=_0x3aba10;return ks(_0x58af11,''[_0x3e9d1c(0x39b)](_0x251687,'-')['concat'](_0x45b408[_0x3e9d1c(0x1b0)],'-')[_0x3e9d1c(0x39b)](_0x2f46ce),_0x441251,void 0x0,_0x20d755);}));}function Qr(_0x26b645,_0x1da1d8,_0x2b27ba){const _0x43140e=_0x598a93;var _0x39e680=N({},_0x26b645[_0x43140e(0x19d)]);_0x2b27ba!=null&&_0x2b27ba['colorChannel1']&&_0x39e680[_0x43140e(0x330)]===_0x43140e(0x154)&&(_0x39e680[_0x43140e(0x330)]=_0x2b27ba[_0x43140e(0x154)]);var _0x5dba47=_0x1da1d8[_0x43140e(0x1ad)];return!_0x5dba47||_0x5dba47[_0x43140e(0x45e)]===0x0||(_0x26b645[_0x43140e(0x1b0)]==='use'&&_0x39e680[_0x43140e(0x1f6)]&&(_0x39e680[_0x43140e(0x1f6)]=_0x39e680[_0x43140e(0x1f6)]+_0x1da1d8['idSuffix']),Object['entries'](_0x39e680)[_0x43140e(0x264)](function(_0x2d4214){const _0x19db99=_0x43140e;var _0x21544e=_0x2d4214[0x0],_0x593cf7=_0x2d4214[0x1];typeof _0x593cf7==_0x19db99(0x150)&&(_0x39e680[_0x21544e]=_0x593cf7[_0x19db99(0x32d)](/url\(#(.*)\)/,'url(#$1'[_0x19db99(0x39b)](_0x1da1d8[_0x19db99(0x1a9)],')')));})),_0x39e680;}function eo(_0x40637a,_0x53b05a){const _0x153a46=_0x598a93;var _0x1392f6,_0x57b76d=_0x53b05a['defIds'];return!_0x57b76d||_0x57b76d[_0x153a46(0x45e)]===0x0?_0x40637a:_0x40637a['tag']===_0x153a46(0x1e0)&&(!((_0x1392f6=_0x40637a[_0x153a46(0x464)])===null||_0x1392f6===void 0x0)&&_0x1392f6[_0x153a46(0x45e)])?N(N({},_0x40637a),{'children':_0x40637a[_0x153a46(0x464)][_0x153a46(0x202)](function(_0x21e1a7){const _0x4e8ed5=_0x153a46;return typeof _0x21e1a7[_0x4e8ed5(0x19d)]['id']==_0x4e8ed5(0x150)&&_0x57b76d&&_0x57b76d[_0x4e8ed5(0x3d9)](_0x21e1a7['attrs']['id'])>-0x1?N(N({},_0x21e1a7),{'attrs':N(N({},_0x21e1a7[_0x4e8ed5(0x19d)]),{'id':_0x21e1a7['attrs']['id']+_0x53b05a[_0x4e8ed5(0x1a9)]})}):_0x21e1a7;})}):_0x40637a;}function to(){const _0x585d85=_0x598a93;return Math[_0x585d85(0x22e)]()[_0x585d85(0x1fe)](0x24)[_0x585d85(0x324)](0x2,0x8);}Wt[_0x598a93(0x140)]=_0x598a93(0x365);var so={'tag':'svg','attrs':{'fill':_0x598a93(0x2e7),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x598a93(0x302)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0x598a93(0x346),'attrs':{'stroke':_0x598a93(0x2a8),'d':_0x598a93(0x1b7),'strokeLinecap':_0x598a93(0x24e),'strokeLinejoin':_0x598a93(0x24e),'strokeWidth':1.2}}]},{'tag':_0x598a93(0x1e0),'attrs':{},'children':[{'tag':_0x598a93(0x1ef),'attrs':{'id':_0x598a93(0x331)},'children':[{'tag':_0x598a93(0x346),'attrs':{'fill':'#fff','d':_0x598a93(0x1f8)}}]}]}],'defIds':[_0x598a93(0x331)]},Bs=_0xd76e5f(function(_0x5e6ac6,_0xc91461){const _0x8a91a7=_0x598a93;return _0x4a815b(Wt,Object[_0x8a91a7(0x418)]({},_0x5e6ac6,{'id':'off-line-single','ref':_0xc91461,'icon':so}));});Bs[_0x598a93(0x140)]=_0x598a93(0x38a);var io={'tag':_0x598a93(0x246),'attrs':{'fill':_0x598a93(0x2e7),'viewBox':_0x598a93(0x434),'width':'1em','height':_0x598a93(0x302)},'children':[{'tag':'g','attrs':{'clipPath':_0x598a93(0x368)},'children':[{'tag':_0x598a93(0x346),'attrs':{'stroke':_0x598a93(0x2a8),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x598a93(0x24e),'strokeLinejoin':_0x598a93(0x24e),'strokeWidth':1.2}}]},{'tag':_0x598a93(0x1e0),'attrs':{},'children':[{'tag':_0x598a93(0x1ef),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x598a93(0x346),'attrs':{'fill':_0x598a93(0x351),'d':_0x598a93(0x1f8),'transform':_0x598a93(0x428)}}]}]}],'defIds':[_0x598a93(0x38c)]},Vs=_0xd76e5f(function(_0x278e9a,_0x300a2f){const _0x2d55d8=_0x598a93;return _0x4a815b(Wt,Object[_0x2d55d8(0x418)]({},_0x278e9a,{'id':'on-line-single','ref':_0x300a2f,'icon':io}));});Vs[_0x598a93(0x140)]='OnLineSingle';function Fs(_0x138e71){const _0x40aec3=_0x598a93;var _0x1041a2,_0x391e14,_0x29b7f8='';if(typeof _0x138e71=='string'||typeof _0x138e71=='number')_0x29b7f8+=_0x138e71;else{if(typeof _0x138e71=='object'){if(Array[_0x40aec3(0x38e)](_0x138e71)){var _0x1619ba=_0x138e71[_0x40aec3(0x45e)];for(_0x1041a2=0x0;_0x1041a2<_0x1619ba;_0x1041a2++)_0x138e71[_0x1041a2]&&(_0x391e14=Fs(_0x138e71[_0x1041a2]))&&(_0x29b7f8&&(_0x29b7f8+='\x20'),_0x29b7f8+=_0x391e14);}else{for(_0x391e14 in _0x138e71)_0x138e71[_0x391e14]&&(_0x29b7f8&&(_0x29b7f8+='\x20'),_0x29b7f8+=_0x391e14);}}}return _0x29b7f8;}function no(){const _0x36470a=_0x598a93;for(var _0x586eb7,_0x18e8f4,_0xa228b=0x0,_0x5d648e='',_0x1e377b=arguments[_0x36470a(0x45e)];_0xa228b<_0x1e377b;_0xa228b++)(_0x586eb7=arguments[_0xa228b])&&(_0x18e8f4=Fs(_0x586eb7))&&(_0x5d648e&&(_0x5d648e+='\x20'),_0x5d648e+=_0x18e8f4);return _0x5d648e;}const ro=_0x598a93(0x1cd),oo=_0x598a93(0x1fa),ao=_0x598a93(0x45a),co=_0x598a93(0x3b3),ho=_0x598a93(0x295),we={'onlineStatusIcon':ro,'onlineStatusTitle':oo,'onlineStatus':ao,'online':co,'offline':ho};function lo(_0x3cdcab){const _0x53c2f1=_0x598a93;switch(_0x3cdcab){case w[_0x53c2f1(0x11d)]:return'collabStatus.offline';case w[_0x53c2f1(0x228)]:return _0x53c2f1(0x31d);case w[_0x53c2f1(0x3f0)]:return _0x53c2f1(0x3a5);case w[_0x53c2f1(0x2e2)]:return'collabStatus.notCollab';case w[_0x53c2f1(0x3c1)]:case w[_0x53c2f1(0x2f6)]:case w[_0x53c2f1(0x41b)]:return _0x53c2f1(0x3f4);case w[_0x53c2f1(0x329)]:return _0x53c2f1(0x179);}}function _o(_0x1ce8ce){const _0x1c69fc=_0x598a93,{status$:_0x3f2cfd}=_0x1ce8ce,_0x8c267c=_0x21a4be(_0x3f2cfd,w['NOT_COLLAB']),_0x1b9395=_0xded923(_0x2af7ec),_0x5c4eec=_0xded923(ce),_0xb17c95=_0x8c267c!==w[_0x1c69fc(0x11d)],_0x1ec412=_0x1b9395['t'](lo(_0x8c267c)),_0x5c9da1=no(we[_0x1c69fc(0x2a7)],{[we[_0x1c69fc(0x227)]]:_0xb17c95,[we['offline']]:!_0xb17c95}),_0x51f8d6=_0xb17c95?_0x5657df[_0x1c69fc(0x45f)](Vs,null):_0x5657df[_0x1c69fc(0x45f)](Bs,null),_0x230304=_0x207aaf(()=>{_0xb17c95||_0x5c4eec['reconnect']();},[_0xb17c95,_0x5c4eec]);function _0x245952(){const _0xb36fe6=_0x1c69fc;return _0x5657df[_0xb36fe6(0x45f)](_0xb36fe6(0x352),{'className':_0x5c9da1,'onClick':_0x230304},_0x5657df[_0xb36fe6(0x45f)](_0xb36fe6(0x352),{'className':we['onlineStatusIcon']},_0x51f8d6),_0x5657df['createElement'](_0xb36fe6(0x352),{'className':we[_0xb36fe6(0x347)]},_0x1ec412));}return _0xb17c95?_0x245952():_0x5657df[_0x1c69fc(0x45f)](_0x1ccb4c,{'title':_0x1b9395['t'](_0x1c69fc(0x3fa))},_0x245952());}var uo=Object[_0x598a93(0x171)],fo=Object['getOwnPropertyDescriptor'],mo=(_0x54bdc0,_0x28ec8e,_0x2160ed,_0x27393a)=>{const _0x51a3ea=_0x598a93;for(var _0x13ee79=_0x27393a>0x1?void 0x0:_0x27393a?fo(_0x28ec8e,_0x2160ed):_0x28ec8e,_0xeba96d=_0x54bdc0[_0x51a3ea(0x45e)]-0x1,_0x4a2cce;_0xeba96d>=0x0;_0xeba96d--)(_0x4a2cce=_0x54bdc0[_0xeba96d])&&(_0x13ee79=(_0x27393a?_0x4a2cce(_0x28ec8e,_0x2160ed,_0x13ee79):_0x4a2cce(_0x13ee79))||_0x13ee79);return _0x27393a&&_0x13ee79&&uo(_0x28ec8e,_0x2160ed,_0x13ee79),_0x13ee79;},He=(_0x1fae7c,_0x58a066)=>(_0x3cc05c,_0x3ea54c)=>_0x58a066(_0x3cc05c,_0x3ea54c,_0x1fae7c);let Ue=class extends _0x24edb8{constructor(_0x39898,_0x1e2c0a,_0x1c27df,_0xd38ba9){const _0x12d163=_0x598a93;super(),l(this,_0x12d163(0x3a4),new _0x59597c(w[_0x12d163(0x2e2)])),(this[_0x12d163(0x343)]=_0x39898,this['_uiPartsService']=_0x1e2c0a,this[_0x12d163(0x120)]=_0x1c27df,this[_0x12d163(0x40f)]=_0xd38ba9,this[_0x12d163(0x3f7)](),this['_initStatusListener']());}[_0x598a93(0x447)](){const _0x28001f=_0x598a93;this['disposeWithMe'](this[_0x28001f(0x343)]['focused$'][_0x28001f(0x22c)](_0x1a7b4a(()=>{const _0x3fbe24=_0x28001f,_0x46ba92=this['_univerInstanceService']['getFocusedUnit']();return _0x46ba92?this[_0x3fbe24(0x40f)][_0x3fbe24(0x1f4)](_0x46ba92[_0x3fbe24(0x14c)]()):_0x3fea04(null);}),_0x1a7b4a(_0x4c9559=>_0x4c9559?_0x4c9559[_0x28001f(0x1fd)]:_0x3fea04(w[_0x28001f(0x2e2)])))[_0x28001f(0x19e)](_0x1bbe9c=>{const _0x1852e5=_0x28001f;this[_0x1852e5(0x3a4)][_0x1852e5(0x12a)](_0x1bbe9c);}));}[_0x598a93(0x3f7)](){const _0x404f16=_0x598a93;this[_0x404f16(0x147)](this['_uiPartsService'][_0x404f16(0x12c)](_0x1a86c4['HEADER_MENU'],()=>_0x2efead(go({'status$':this['_status$'][_0x404f16(0x1b6)]()}),this[_0x404f16(0x120)])));}};Ue=mo([He(0x0,_0x191290),He(0x1,_0x3e243b),He(0x2,_0x592774(_0x579617)),He(0x3,_0x592774(Ae))],Ue);function go(_0x29baa8){const {status$:_0x4c6093}=_0x29baa8;return function(){const _0x31e670=_0x5340;return _0x5657df[_0x31e670(0x45f)](_o,{'status$':_0x4c6093});};}const Ws=_0x9eee89(_0x598a93(0x3e1));var So=Object[_0x598a93(0x171)],po=Object[_0x598a93(0x1cb)],vo=(_0x381da0,_0x2617c5,_0x20e86e,_0x4b0bf9)=>{const _0x3cccdd=_0x598a93;for(var _0x1a3977=_0x4b0bf9>0x1?void 0x0:_0x4b0bf9?po(_0x2617c5,_0x20e86e):_0x2617c5,_0x2bf47a=_0x381da0[_0x3cccdd(0x45e)]-0x1,_0xb1b9b0;_0x2bf47a>=0x0;_0x2bf47a--)(_0xb1b9b0=_0x381da0[_0x2bf47a])&&(_0x1a3977=(_0x4b0bf9?_0xb1b9b0(_0x2617c5,_0x20e86e,_0x1a3977):_0xb1b9b0(_0x1a3977))||_0x1a3977);return _0x4b0bf9&&_0x1a3977&&So(_0x2617c5,_0x20e86e,_0x1a3977),_0x1a3977;},me=(_0x263606,_0x2c231b)=>(_0x2c38e8,_0x40db4d)=>_0x2c231b(_0x2c38e8,_0x40db4d,_0x263606);let qe=class extends _0x39a217{constructor(_0x855b30,_0x33acc3,_0x5cc380,_0x14c903,_0x5d6ad2,_0x5ee086){const _0x255016=_0x598a93;super(),this[_0x255016(0x1ba)]=_0x855b30,this['_logService']=_0x33acc3,this[_0x255016(0x297)]=_0x5cc380,this[_0x255016(0x2fc)]=_0x14c903,this[_0x255016(0x282)]=_0x5d6ad2,_0x5ee086?_0x5ee086==null||_0x5ee086[_0x255016(0x11b)]()[_0x255016(0x33e)](()=>this[_0x255016(0x290)]()):(this[_0x255016(0x345)]['debug'](_0x255016(0x28b),_0x255016(0x15e)),this['_init']());}async['_init'](){const _0x550c3e=_0x598a93,_0x2c238c=this[_0x550c3e(0x1ba)][_0x550c3e(0x258)](_0x550c3e(0x2df)),_0x53a9c7=this[_0x550c3e(0x1ba)][_0x550c3e(0x258)](_0x550c3e(0x29d));if(!_0x2c238c||!_0x53a9c7){this['_logService'][_0x550c3e(0x276)](_0x550c3e(0x28b),_0x550c3e(0x3d6));return;}switch(Number(_0x53a9c7)){case H[_0x550c3e(0x174)]:{const _0x174469=await this[_0x550c3e(0x1b4)](_0x2c238c);this[_0x550c3e(0x1b5)](_0x174469);break;}case H['UNIVER_DOC']:{await this[_0x550c3e(0x122)](_0x2c238c);break;}default:{this[_0x550c3e(0x345)]['error']('[DataLoaderController]',_0x550c3e(0x24a));break;}}}async[_0x598a93(0x1b5)](_0x578f01){const _0x18d75f=_0x598a93;await this['_updateSubUnitFromURLParams'](_0x578f01),_0x578f01['activeSheet$']['pipe'](_0x5c2c79(this[_0x18d75f(0x1f5)]))[_0x18d75f(0x19e)](_0x504184=>{const _0x21af82=_0x18d75f;_0x504184&&this[_0x21af82(0x2ba)](_0x504184);}),this[_0x18d75f(0x1ba)][_0x18d75f(0x2a2)][_0x18d75f(0x22c)](_0x5c2c79(this['dispose$']))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x578f01));}['_updateURLWithCurrentState'](_0x2bb377,_0x18a63e=!0x1){const _0x479d7c=_0x598a93,_0x4b2776=this[_0x479d7c(0x1ba)][_0x479d7c(0x258)](_0x479d7c(0x28f));_0x2bb377[_0x479d7c(0x121)]()!==_0x4b2776&&this[_0x479d7c(0x1ba)]['setParam'](_0x479d7c(0x28f),_0x2bb377['getSheetId'](),_0x18a63e);}async['_updateSubUnitFromURLParams'](_0x1a534f){const _0x3cfc24=_0x598a93;var _0x47f37f;const _0x1ed1f4=this[_0x3cfc24(0x1ba)][_0x3cfc24(0x258)]('subunit');if(!_0x1ed1f4||!_0x1a534f['getSheetBySheetId'](_0x1ed1f4)){const _0x64871f=_0x1a534f[_0x3cfc24(0x369)]()[0x0],_0x166126=_0x1a534f['getSheetBySheetId'](_0x64871f);if(!_0x166126)return;this[_0x3cfc24(0x2ba)](_0x166126,!0x0),await this[_0x3cfc24(0x297)][_0x3cfc24(0x395)](_0x3794d4['id'],{'unitId':_0x1a534f[_0x3cfc24(0x14c)](),'subUnitId':_0x64871f});return;}((_0x47f37f=_0x1a534f[_0x3cfc24(0x125)]())==null?void 0x0:_0x47f37f[_0x3cfc24(0x121)]())!==_0x1ed1f4&&await this[_0x3cfc24(0x297)][_0x3cfc24(0x395)](_0x3794d4['id'],{'unitId':_0x1a534f['getUnitId'](),'subUnitId':_0x1ed1f4});}async['_loadSheet'](_0xb65679){const _0x2eb41f=_0x598a93;let _0x392b21=0x0;const _0x590fd1=await this[_0x2eb41f(0x2fc)][_0x2eb41f(0x442)](_0xb65679);return _0x590fd1&&(_0x590fd1[_0x2eb41f(0x2dd)]||_0x590fd1[_0x2eb41f(0x3fb)]['length']!==0x0)&&(_0x392b21=_0x590fd1[_0x2eb41f(0x3fc)]),_0x392b21===0x0&&this['_logService']['debug'](_0x2eb41f(0x28b),_0x2eb41f(0x2b7)),this[_0x2eb41f(0x282)][_0x2eb41f(0x311)](_0xb65679,_0x392b21);}async[_0x598a93(0x122)](_0x3fca3c){const _0x3b567d=_0x598a93;let _0x109c70=0x0;const _0x2d1f1a=await this[_0x3b567d(0x2fc)][_0x3b567d(0x442)](_0x3fca3c);return _0x2d1f1a&&(_0x2d1f1a['awaitingChangeset']||_0x2d1f1a[_0x3b567d(0x3fb)][_0x3b567d(0x45e)]!==0x0)&&(_0x109c70=_0x2d1f1a[_0x3b567d(0x3fc)]),_0x109c70===0x0&&this[_0x3b567d(0x345)][_0x3b567d(0x276)]('[DataLoaderController]',_0x3b567d(0x2b7)),this[_0x3b567d(0x282)][_0x3b567d(0x452)](_0x3fca3c,_0x109c70);}};qe=vo([me(0x0,Ws),me(0x1,_0x1281de),me(0x2,_0xbb225b),me(0x3,_0x592774(D)),me(0x4,_0x592774(_0x59f861)),me(0x5,_0x3372cb(_0x4a0241))],qe);var Io=Object[_0x598a93(0x171)],Eo=Object['getOwnPropertyDescriptor'],Co=(_0x35bac0,_0x47d293,_0x1e3ce6,_0x22b941)=>{const _0x2d1080=_0x598a93;for(var _0x432b5f=_0x22b941>0x1?void 0x0:_0x22b941?Eo(_0x47d293,_0x1e3ce6):_0x47d293,_0x230bfc=_0x35bac0[_0x2d1080(0x45e)]-0x1,_0x2ec242;_0x230bfc>=0x0;_0x230bfc--)(_0x2ec242=_0x35bac0[_0x230bfc])&&(_0x432b5f=(_0x22b941?_0x2ec242(_0x47d293,_0x1e3ce6,_0x432b5f):_0x2ec242(_0x432b5f))||_0x432b5f);return _0x22b941&&_0x432b5f&&Io(_0x47d293,_0x1e3ce6,_0x432b5f),_0x432b5f;},fs=(_0xb5445c,_0x72e0bc)=>(_0x42886c,_0x1866a7)=>_0x72e0bc(_0x42886c,_0x1866a7,_0xb5445c);const bo=_0x598a93(0x286),To=_0x598a93(0x254);let ze=class extends _0x24edb8{constructor(_0x3aa5c4,_0x21655d){const _0x5295a3=_0x598a93;super(),this[_0x5295a3(0x343)]=_0x3aa5c4,this[_0x5295a3(0x2c2)]=_0x21655d,this[_0x5295a3(0x290)]();}['_init'](){const _0x90b46f=_0x598a93;this[_0x90b46f(0x147)](this[_0x90b46f(0x343)][_0x90b46f(0x2a5)][_0x90b46f(0x19e)](()=>{const _0x1aa80b=_0x90b46f;var _0x31ca85;const _0xe4d4d6=this[_0x1aa80b(0x343)][_0x1aa80b(0x3c2)]();let _0x1d0db9=(_0x31ca85=this[_0x1aa80b(0x2c2)][_0x1aa80b(0x12d)](bo))!=null?_0x31ca85:To;_0xe4d4d6 instanceof _0x3496f4&&(_0x1d0db9=_0xe4d4d6[_0x1aa80b(0x3d7)]),document[_0x1aa80b(0x146)]=_0x1d0db9;}));}};ze=Co([fs(0x0,_0x191290),fs(0x1,_0x3fc6a0)],ze);var Ro=Object[_0x598a93(0x171)],Oo=Object[_0x598a93(0x1cb)],Do=(_0x468052,_0x462c46,_0x425ae3,_0x46ac28)=>{const _0x49fd36=_0x598a93;for(var _0x45fa98=_0x46ac28>0x1?void 0x0:_0x46ac28?Oo(_0x462c46,_0x425ae3):_0x462c46,_0xde74f3=_0x468052[_0x49fd36(0x45e)]-0x1,_0x3c5e3c;_0xde74f3>=0x0;_0xde74f3--)(_0x3c5e3c=_0x468052[_0xde74f3])&&(_0x45fa98=(_0x46ac28?_0x3c5e3c(_0x462c46,_0x425ae3,_0x45fa98):_0x3c5e3c(_0x45fa98))||_0x45fa98);return _0x46ac28&&_0x45fa98&&Ro(_0x462c46,_0x425ae3,_0x45fa98),_0x45fa98;},gt=(_0x1d0c07,_0x279285)=>(_0x55ae1b,_0x3accf6)=>_0x279285(_0x55ae1b,_0x3accf6,_0x1d0c07);let Ze=class{constructor(_0x3adefb,_0x101482,_0x4b412e){const _0x21ec1a=_0x598a93;this[_0x21ec1a(0x2c2)]=_0x3adefb,this[_0x21ec1a(0x3f1)]=_0x101482,this[_0x21ec1a(0x37d)]=_0x4b412e,this['init']();}[_0x598a93(0x217)](){const _0xd066ae=_0x598a93;this[_0xd066ae(0x3f1)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x50c385,_0x55e063)=>_0x55e063(_0x50c385)['pipe'](_0x3ee968(async _0x273d1e=>{const _0x4c3ec7=_0xd066ae,_0x4d2f17=_0x273d1e;if(_0x4d2f17['status']===0x191&&window['confirm'](this[_0x4c3ec7(0x37d)]['t'](_0x4c3ec7(0x3cf)))){const _0x10a186=window[_0x4c3ec7(0x27f)](window[_0x4c3ec7(0x2bd)]['href']);window[_0x4c3ec7(0x2bd)][_0x4c3ec7(0x2bb)]=this[_0x4c3ec7(0x248)]()+'?url='+_0x10a186;}return _0x4d2f17;}))});}[_0x598a93(0x248)](){const _0x45c6ea=_0x598a93;var _0x4f877f,_0x3330fa;const _0x2ce100=this[_0x45c6ea(0x2c2)][_0x45c6ea(0x12d)](wn),_0x4347ea=this[_0x45c6ea(0x2c2)][_0x45c6ea(0x12d)](L);return(_0x3330fa=(_0x4f877f=_0x4347ea==null?void 0x0:_0x4347ea[_0x45c6ea(0x1c7)])!=null?_0x4f877f:_0x2ce100)!=null?_0x3330fa:Pn;}};Ze=Do([gt(0x0,_0x3fc6a0),gt(0x1,_0x592774(_0x4b4f20)),gt(0x2,_0x592774(_0x2af7ec))],Ze);var wo=Object[_0x598a93(0x171)],Po=Object['getOwnPropertyDescriptor'],yo=(_0x575941,_0x61b503,_0x372419,_0x2fff0e)=>{const _0x4afeb3=_0x598a93;for(var _0x1e2d8a=_0x2fff0e>0x1?void 0x0:_0x2fff0e?Po(_0x61b503,_0x372419):_0x61b503,_0x5989c1=_0x575941[_0x4afeb3(0x45e)]-0x1,_0xee64a1;_0x5989c1>=0x0;_0x5989c1--)(_0xee64a1=_0x575941[_0x5989c1])&&(_0x1e2d8a=(_0x2fff0e?_0xee64a1(_0x61b503,_0x372419,_0x1e2d8a):_0xee64a1(_0x1e2d8a))||_0x1e2d8a);return _0x2fff0e&&_0x1e2d8a&&wo(_0x61b503,_0x372419,_0x1e2d8a),_0x1e2d8a;},ms=(_0x2beef3,_0x73cfeb)=>(_0x505183,_0x16548e)=>_0x73cfeb(_0x505183,_0x16548e,_0x2beef3);const No='AUTHZ_URL_KEY',Uo=_0x598a93(0x220);let Pt=class extends _0x24edb8{constructor(_0x1f59ac,_0x47a027){const _0x273001=_0x598a93;super(),this[_0x273001(0x349)]=_0x1f59ac,this[_0x273001(0x2c2)]=_0x47a027,this[_0x273001(0x1fc)]();}[_0x598a93(0x1fc)](){const _0x5cbb93=_0x598a93,_0x395c86=this;this['disposeWithMe'](this[_0x5cbb93(0x349)][_0x5cbb93(0x2c9)]({'priority':0x3e7,'interceptor':_0x4eeb0d({'isMatch'(_0x2e6b19){const _0x3547dd=_0x5cbb93;var _0x548de0;if(_0x2e6b19[_0x3547dd(0x2d6)]===_0x3547dd(0x3d3)&&((_0x548de0=_0x2e6b19['requestParams'])!=null&&_0x548de0[_0x3547dd(0x3a2)])){const {objectID:_0x166639,objectType:_0x2c1637}=_0x2e6b19[_0x3547dd(0x12b)][_0x3547dd(0x3a2)]||{};if(!_0x166639||_0x2c1637===void 0x0)return!0x1;const _0x34146f=_0x395c86[_0x3547dd(0x132)]()+'/'+_0x2c1637+_0x3547dd(0x37a)+_0x166639+_0x3547dd(0x243);if(_0x2e6b19[_0x3547dd(0x3b5)]===_0x34146f)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x2ab2e9){const _0x30918c=_0x5cbb93;var _0x596305;return(_0x596305=_0x2ab2e9[_0x30918c(0x12b)])==null?void 0x0:_0x596305['body'];},'mergeParamsToRequest'(_0x369d10,_0x244b65){const _0x36e530=_0x5cbb93,_0x39af6d=_0x395c86[_0x36e530(0x132)]()+_0x36e530(0x38d),_0x30a725=_0x369d10[_0x36e530(0x153)]((_0xcd931,_0x136522)=>{const _0x17c9c8=_0x36e530,{unitID:_0x317e90,objectID:_0x2f08f9,objectType:_0x140053,actions:_0x280da6}=_0x136522;return _0xcd931[_0x317e90]||(_0xcd931[_0x317e90]={}),_0xcd931[_0x317e90][_0x2f08f9]||(_0xcd931[_0x317e90][_0x2f08f9]={'objectID':_0x2f08f9,'objectType':_0x140053,'actions':[]}),_0xcd931[_0x317e90][_0x2f08f9][_0x17c9c8(0x394)][_0x17c9c8(0x34e)](..._0x280da6),_0xcd931;},{}),_0x4407fc=[];for(const _0xb6cc2c in _0x30a725)for(const _0x33262a in _0x30a725[_0xb6cc2c]){const {actions:_0x3a421c,objectType:_0x23d0b8}=_0x30a725[_0xb6cc2c][_0x33262a],_0x47daac=[...new Set(_0x3a421c)];_0x4407fc['push']({'unitID':_0xb6cc2c,'objectID':_0x33262a,'objectType':_0x23d0b8,'actions':_0x47daac});}return new _0x5a9dc5(_0x36e530(0x3d3),_0x39af6d,{'headers':_0x244b65[_0x36e530(0x298)],'withCredentials':_0x244b65[_0x36e530(0x39e)],'responseType':_0x244b65[_0x36e530(0x470)],'body':{'requests':_0x4407fc}});}},{'distributeResult'(_0x1ee57f,_0x530c03){const _0x151b24=_0x5cbb93,{objectActions:_0x254aae}=_0x1ee57f;return _0x530c03[_0x151b24(0x202)](_0x265d40=>{const _0x12f72f=_0x151b24,{unitID:_0x49916d,objectID:_0x1ad275,actions:_0x4803ce}=_0x265d40,_0x538d87=_0x254aae[_0x12f72f(0x257)](_0x4e8bba=>_0x4e8bba[_0x12f72f(0x3a6)]===_0x49916d&&_0x4e8bba[_0x12f72f(0x32b)]===_0x1ad275),_0x2ba536=_0x4803ce['map'](_0x1b7e15=>_0x538d87==null?void 0x0:_0x538d87[_0x12f72f(0x394)][_0x12f72f(0x257)](_0x5df8c9=>_0x5df8c9[_0x12f72f(0x1bb)]===_0x1b7e15))[_0x12f72f(0x23a)](_0xb23e38=>!!_0xb23e38);return{'config':_0x265d40,'result':{'actions':_0x2ba536,'error':_0x1ee57f[_0x12f72f(0x379)]}};});}})}));}[_0x598a93(0x132)](){const _0x4ec848=_0x598a93;var _0xacf9d5,_0x3f378c;const _0x1a6735=this[_0x4ec848(0x2c2)]['getConfig'](No),_0x5746c1=this['_configService'][_0x4ec848(0x12d)](L);return(_0x3f378c=(_0xacf9d5=_0x5746c1==null?void 0x0:_0x5746c1[_0x4ec848(0x37c)])!=null?_0xacf9d5:_0x1a6735)!=null?_0x3f378c:Uo;}async[_0x598a93(0x3c7)](_0x562dcb){const _0x11bffc=_0x598a93,_0x287b85=this[_0x11bffc(0x132)]()+'/'+_0x562dcb[_0x11bffc(0x1e8)]+_0x11bffc(0x263);return(await this['_HTTPService'][_0x11bffc(0x441)](_0x287b85,{'body':_0x562dcb}))[_0x11bffc(0x3a2)]['objectID']||'';}async[_0x598a93(0x455)](_0x218932){const _0xbca4f1=_0x598a93,_0x208a0f=this[_0xbca4f1(0x132)]()+_0xbca4f1(0x3e2);return(await this[_0xbca4f1(0x349)]['post'](_0x208a0f,{'body':_0x218932}))[_0xbca4f1(0x3a2)][_0xbca4f1(0x47d)];}async[_0x598a93(0x339)](_0x2c445e){const _0x38f64e=_0x598a93,_0x439f61=this[_0x38f64e(0x132)]()+'/'+_0x2c445e[_0x38f64e(0x1e8)]+'/object/'+_0x2c445e[_0x38f64e(0x32b)];await this['_HTTPService'][_0x38f64e(0x193)](_0x439f61,{'body':_0x2c445e});}async['allowed'](_0x41713b){const _0x276b89=_0x598a93,_0x1efba0=this[_0x276b89(0x132)]()+'/'+_0x41713b[_0x276b89(0x1e8)]+_0x276b89(0x37a)+_0x41713b[_0x276b89(0x32b)]+'/allowed';return(await this[_0x276b89(0x349)]['post'](_0x1efba0,{'body':_0x41713b}))[_0x276b89(0x3a2)][_0x276b89(0x394)];}async[_0x598a93(0x2a3)](_0x2605e8){const _0x3debd7=_0x598a93,_0x586660=this[_0x3debd7(0x132)]()+_0x3debd7(0x38d);return(await this[_0x3debd7(0x349)][_0x3debd7(0x441)](_0x586660,{'body':{'requests':_0x2605e8}}))[_0x3debd7(0x3a2)][_0x3debd7(0x16c)];}async[_0x598a93(0x3c6)](_0x24f716){const _0x1846e4=_0x598a93,_0xe57cf9=this['_getAPIPrefixPath']()+'/'+_0x24f716[_0x1846e4(0x1e8)]+_0x1846e4(0x20c),_0xff8927=await this[_0x1846e4(0x349)][_0x1846e4(0x441)](_0xe57cf9,{'body':_0x24f716});return{'roles':_0xff8927[_0x1846e4(0x3a2)]['roles'],'actions':_0xff8927[_0x1846e4(0x3a2)][_0x1846e4(0x394)]};}async['deleteCollaborator'](_0xe0ffcc){const _0x2cc9c2=_0x598a93,_0x2bbe24=this['_getAPIPrefixPath']()+_0x2cc9c2(0x20e);await this[_0x2cc9c2(0x349)][_0x2cc9c2(0x2c8)](_0x2bbe24,{'params':{'collaboratorID':_0xe0ffcc[_0x2cc9c2(0x1ff)],'objectID':_0xe0ffcc[_0x2cc9c2(0x32b)],'unitID':_0xe0ffcc[_0x2cc9c2(0x3a6)]}});}async[_0x598a93(0x1ec)](_0x50b4ac){const _0xd9ae79=_0x598a93,_0x5d8969=this[_0xd9ae79(0x132)]()+_0xd9ae79(0x20e);await this['_HTTPService'][_0xd9ae79(0x31b)](_0x5d8969,{'body':_0x50b4ac});}async[_0x598a93(0x3d5)](_0xf753a9){const _0x3aa825=_0x598a93,_0x1443ef=this[_0x3aa825(0x132)]()+_0x3aa825(0x20e);await this['_HTTPService']['post'](_0x1443ef,{'body':_0xf753a9});}async['listCollaborators'](_0x783a5e){const _0x543242=_0x598a93,_0x3cbb65=this[_0x543242(0x132)]()+_0x543242(0x20e);return(await this['_HTTPService'][_0x543242(0x175)](_0x3cbb65,{'params':{'objectID':_0x783a5e['objectID'],'unitID':_0x783a5e[_0x543242(0x3a6)]}}))[_0x543242(0x3a2)]['collaborators'];}async['putCollaborators'](_0x438e52){const _0x343e06=_0x598a93,_0x158ab9=this[_0x343e06(0x132)]()+'/collaborator';await this[_0x343e06(0x349)][_0x343e06(0x193)](_0x158ab9,{'body':_0x438e52});}};Pt=yo([ms(0x0,_0x592774(_0x4b4f20)),ms(0x1,_0x592774(_0x3fc6a0))],Pt);var Mo=Object[_0x598a93(0x171)],Ao=Object[_0x598a93(0x1cb)],Lo=(_0xb97942,_0x51b550,_0x541087,_0x77a24a)=>{for(var _0x42fcc5=_0x77a24a>0x1?void 0x0:_0x77a24a?Ao(_0x51b550,_0x541087):_0x51b550,_0x51fa96=_0xb97942['length']-0x1,_0x346491;_0x51fa96>=0x0;_0x51fa96--)(_0x346491=_0xb97942[_0x51fa96])&&(_0x42fcc5=(_0x77a24a?_0x346491(_0x51b550,_0x541087,_0x42fcc5):_0x346491(_0x42fcc5))||_0x42fcc5);return _0x77a24a&&_0x42fcc5&&Mo(_0x51b550,_0x541087,_0x42fcc5),_0x42fcc5;},$o=(_0x3c7a2f,_0x423fd4)=>(_0xed7375,_0x35e25f)=>_0x423fd4(_0xed7375,_0x35e25f,_0x3c7a2f);let Qe=class{constructor(_0x348077){const _0x49e5f3=_0x598a93;this[_0x49e5f3(0x3f1)]=_0x348077,this[_0x49e5f3(0x2b3)]();}[_0x598a93(0x2b3)](){const _0xe29d50=_0x598a93;this[_0xe29d50(0x3f1)][_0xe29d50(0x2c9)]({'interceptor':(_0x31c472,_0x1c2f7c)=>{const _0x27e9a8=_0xe29d50,_0x5d77b8=_0x31c472['headers'],_0x370f40=_0x41a78e();return _0x370f40&&_0x5d77b8[_0x27e9a8(0x314)]('x-univer-host',_0x370f40),_0x1c2f7c(_0x31c472);}});}};Qe=Lo([$o(0x0,_0x592774(_0x4b4f20))],Qe);var jo=Object[_0x598a93(0x171)],xo=Object[_0x598a93(0x1cb)],Ho=(_0x1089c9,_0x48bbd9,_0x1bcc4c,_0x51a04f)=>{const _0x39a48c=_0x598a93;for(var _0x61f055=_0x51a04f>0x1?void 0x0:_0x51a04f?xo(_0x48bbd9,_0x1bcc4c):_0x48bbd9,_0x568726=_0x1089c9[_0x39a48c(0x45e)]-0x1,_0x2a636e;_0x568726>=0x0;_0x568726--)(_0x2a636e=_0x1089c9[_0x568726])&&(_0x61f055=(_0x51a04f?_0x2a636e(_0x48bbd9,_0x1bcc4c,_0x61f055):_0x2a636e(_0x61f055))||_0x61f055);return _0x51a04f&&_0x61f055&&jo(_0x48bbd9,_0x1bcc4c,_0x61f055),_0x61f055;},St=(_0xbfed82,_0x4c8b9b)=>(_0x6471d2,_0x2eb165)=>_0x4c8b9b(_0x6471d2,_0x2eb165,_0xbfed82);const ko=[_0x598a93(0x3b7),_0x598a93(0x288),'image/jpg',_0x598a93(0x3cb),_0x598a93(0x152)],Bo=0x5*0x400*0x400,Vo='EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY',Fo='/universer-api/stream/file/upload',Wo='EXCHANGE_SIGN_URL_SERVER_URL_KEY',Go=_0x598a93(0x426);let yt=class{constructor(_0x3f170e,_0x2df50d,_0x476e75){const _0x3774b6=_0x598a93;l(this,'_waitCount',0x0),l(this,_0x3774b6(0x34d),new _0x2199d6()),l(this,_0x3774b6(0x1a0),this[_0x3774b6(0x34d)]),l(this,_0x3774b6(0x19a),new Map()),(this['_httpService']=_0x3f170e,this[_0x3774b6(0x2c2)]=_0x2df50d,this[_0x3774b6(0x343)]=_0x476e75);}[_0x598a93(0x1f0)](_0x1f8b2d){const _0x2aba19=_0x598a93;this['_waitCount']=_0x1f8b2d,this[_0x2aba19(0x34d)][_0x2aba19(0x12a)](_0x1f8b2d);}[_0x598a93(0x2b2)](_0x2bbbea,_0x4aef3f){const _0x10340d=_0x598a93;if(_0x4aef3f===_0x3c6cb4['BASE64']){const _0x1bdf06=new Image();return _0x1bdf06[_0x10340d(0x16d)]=_0x2bbbea,_0x1bdf06;}return this[_0x10340d(0x19a)][_0x10340d(0x175)](_0x2bbbea);}[_0x598a93(0x1c1)](_0x471363,_0x4131db,_0x47347a){const _0x15c215=_0x598a93;_0x4131db===_0x3c6cb4[_0x15c215(0x148)]||_0x47347a==null||this[_0x15c215(0x19a)][_0x15c215(0x314)](_0x471363,_0x47347a);}async[_0x598a93(0x480)](_0x3bf968){const _0x11f2ad=_0x598a93;try{const _0x1eecb9=this['_replaceFileID'](this[_0x11f2ad(0x134)](),''+_0x3bf968),_0xd2bfea=(await this[_0x11f2ad(0x3f1)]['get'](_0x1eecb9))[_0x11f2ad(0x3a2)];if(_0xd2bfea['error']&&_0xd2bfea[_0x11f2ad(0x379)][_0x11f2ad(0x172)]===Ms['OK']){const _0x3141a5=new URL(_0xd2bfea['url'],this['_getDownloadEndpointURL']())['toString']();return Promise['resolve'](_0x3141a5);}return Promise[_0x11f2ad(0x3e8)](_0xd2bfea[_0x11f2ad(0x379)]);}catch(_0x535d9f){return Promise[_0x11f2ad(0x3e8)](_0x535d9f);}}async[_0x598a93(0x2d0)](_0x338b4a){const _0x102b09=_0x598a93;let _0x5f1a07='';if(!ko[_0x102b09(0x35e)](_0x338b4a['type']))return this[_0x102b09(0x199)](),Promise['reject'](new Error(_0x272978[_0x102b09(0x224)]));if(_0x338b4a[_0x102b09(0x14e)]>Bo)return this['_decreaseWaiting'](),Promise[_0x102b09(0x3e8)](new Error(_0x272978[_0x102b09(0x167)]));try{const _0x5ad7b2=new FormData();_0x5ad7b2['append']('file',_0x338b4a);const _0x31f64f=this[_0x102b09(0x343)][_0x102b09(0x3c2)](),_0x1242c8=_0x31f64f==null?void 0x0:_0x31f64f['getUnitId']();if(!_0x1242c8)throw new Error(_0x102b09(0x2be));const _0x3bc259=this[_0x102b09(0x3f5)]()+_0x102b09(0x29c)+_0x338b4a[_0x102b09(0x14e)][_0x102b09(0x1fe)]()+_0x102b09(0x226)+As[_0x102b09(0x16b)]+_0x102b09(0x3cd)+encodeURIComponent(_0x1242c8),_0x2cf2e3=await(await fetch(_0x3bc259,{'method':'POST','body':_0x5ad7b2}))['json']();if(typeof _0x2cf2e3[_0x102b09(0x353)]!=_0x102b09(0x150))return this[_0x102b09(0x199)](),Promise[_0x102b09(0x3e8)](new Error(_0x272978[_0x102b09(0x18d)]));_0x5f1a07=_0x2cf2e3[_0x102b09(0x353)];}catch{return this[_0x102b09(0x199)](),Promise[_0x102b09(0x3e8)](new Error(_0x272978['ERROR_IMAGE']));}return new Promise((_0x279e7a,_0x1ae202)=>{const _0x518869=_0x102b09,_0x398fbd=new FileReader();_0x398fbd[_0x518869(0x36b)](_0x338b4a),_0x398fbd['onload']=_0x38fe5c=>{const _0x36f2ab=_0x518869;var _0x382c94;const _0x1ed657=(_0x382c94=_0x38fe5c[_0x36f2ab(0x463)])==null?void 0x0:_0x382c94[_0x36f2ab(0x165)];if(_0x1ed657==null){this[_0x36f2ab(0x199)](),_0x1ae202(new Error(_0x272978[_0x36f2ab(0x18d)]));return;}const _0x3670ca=_0x4105cf['generateRandomId'](0x6);_0x279e7a({'imageId':_0x3670ca,'imageSourceType':_0x3c6cb4[_0x36f2ab(0x3da)],'source':_0x5f1a07,'base64Cache':_0x1ed657,'status':_0x272978[_0x36f2ab(0x44d)]}),this['_decreaseWaiting']();};});}['_getUploadFileURL'](){const _0x35c8e8=_0x598a93;var _0x462dd6,_0x5922b7;const _0x59cc73=this[_0x35c8e8(0x2c2)][_0x35c8e8(0x12d)](Vo),_0x2ce828=this[_0x35c8e8(0x2c2)][_0x35c8e8(0x12d)](L);return(_0x5922b7=(_0x462dd6=_0x2ce828==null?void 0x0:_0x2ce828[_0x35c8e8(0x2b0)])!=null?_0x462dd6:_0x59cc73)!=null?_0x5922b7:Fo;}['_getSignURL'](){const _0xe7ae9e=_0x598a93;var _0x53b7ee,_0x4ac00f;const _0x303183=this['_configService'][_0xe7ae9e(0x12d)](Wo),_0x51055a=this['_configService'][_0xe7ae9e(0x12d)](L);return(_0x4ac00f=(_0x53b7ee=_0x51055a==null?void 0x0:_0x51055a[_0xe7ae9e(0x281)])!=null?_0x53b7ee:_0x303183)!=null?_0x4ac00f:Go;}['_getDownloadEndpointURL'](){const _0x2ad508=_0x598a93;var _0x420172;const _0x1e7c7c=this[_0x2ad508(0x2c2)][_0x2ad508(0x12d)](L);return(_0x420172=_0x1e7c7c==null?void 0x0:_0x1e7c7c['downloadEndpointUrl'])!=null?_0x420172:location['origin'];}[_0x598a93(0x440)](_0x2223b7,_0x1d0755){const _0x2b37de=_0x598a93;return _0x2223b7[_0x2b37de(0x32d)](_0x2b37de(0x34a),_0x1d0755);}[_0x598a93(0x199)](){const _0x1c2a63=_0x598a93;this[_0x1c2a63(0x312)]-=0x1,this['_change$'][_0x1c2a63(0x12a)](this['_waitCount']);}};yt=Ho([St(0x0,_0x592774(_0x4b4f20)),St(0x1,_0x3fc6a0),St(0x2,_0x592774(_0x191290))],yt);var Yo=Object['defineProperty'],Ko=Object[_0x598a93(0x1cb)],Xo=(_0x3f6376,_0x26beac,_0x16fac3,_0x5b107b)=>{const _0x3df8bf=_0x598a93;for(var _0x14f5b4=_0x5b107b>0x1?void 0x0:_0x5b107b?Ko(_0x26beac,_0x16fac3):_0x26beac,_0x3a2f30=_0x3f6376[_0x3df8bf(0x45e)]-0x1,_0x31ab87;_0x3a2f30>=0x0;_0x3a2f30--)(_0x31ab87=_0x3f6376[_0x3a2f30])&&(_0x14f5b4=(_0x5b107b?_0x31ab87(_0x26beac,_0x16fac3,_0x14f5b4):_0x31ab87(_0x14f5b4))||_0x14f5b4);return _0x5b107b&&_0x14f5b4&&Yo(_0x26beac,_0x16fac3,_0x14f5b4),_0x14f5b4;},Pe=(_0x2edc32,_0x2dfb29)=>(_0xd01fd9,_0x3815b0)=>_0x2dfb29(_0xd01fd9,_0x3815b0,_0x2edc32);let et=class extends _0x39a217{constructor(_0x165037,_0x461695,_0x178da0,_0x38e006,_0x198f01){const _0x550177=_0x598a93;super(),this['_injector']=_0x165037,this['_univerInstanceService']=_0x461695,this[_0x550177(0x261)]=_0x178da0,this[_0x550177(0x232)]=_0x38e006,this[_0x550177(0x333)]=_0x198f01,this[_0x550177(0x476)](),this[_0x550177(0x3d2)]();}[_0x598a93(0x3d2)](){const _0x45e03f=_0x598a93,_0x3278c8=async _0x3194a1=>{const _0x30af93=_0x5340;(await this[_0x30af93(0x232)]['requireSession'](_0x3194a1))['event$'][_0x30af93(0x22c)](_0x34901b(_0x281c22=>_0x281c22['eventID']===_0x5e9e5f[_0x30af93(0x1cc)]),_0x156b4c(this[_0x30af93(0x1f5)]))['subscribe'](_0x39666e=>{const _0x55477a=_0x30af93,_0x4026c5=_0x39666e,{reason:_0x400771}=_0x4026c5[_0x55477a(0x249)];this[_0x55477a(0x120)][_0x55477a(0x175)](_0x369676)[_0x55477a(0x21e)]({'type':_0x19f1bd['Error'],'content':this[_0x55477a(0x333)]['t'](_0x55477a(0x1ac))+'('+_0x400771+')'}),this[_0x55477a(0x261)][_0x55477a(0x306)](new _0x1d1f35(_0x3194a1)['id'],!0x1),this[_0x55477a(0x232)]['closeSession'](_0x3194a1);});};_0x4c82f1(this['_univerInstanceService'][_0x45e03f(0x3a1)](_0x33d049[_0x45e03f(0x174)]),this[_0x45e03f(0x343)][_0x45e03f(0x3a1)](_0x33d049[_0x45e03f(0x17d)]))['pipe'](_0x4eca0b(_0x5b7487=>_0x5b7487[_0x45e03f(0x14c)]()),_0x34901b(_0x2c37b7=>!_0x52b31a(_0x2c37b7)),_0x156b4c(this['dispose$']))[_0x45e03f(0x19e)](_0x27111a=>{_0x3278c8(_0x27111a);});}[_0x598a93(0x476)](){const _0xacd82c=_0x598a93,_0x282886=async _0x44786d=>{const _0x29e46c=_0x5340;(await this['_collaborationSessionService'][_0x29e46c(0x486)](_0x44786d))[_0x29e46c(0x207)][_0x29e46c(0x22c)](_0x34901b(_0x1d2bf8=>_0x1d2bf8['eventID']===_0x5e9e5f[_0x29e46c(0x31f)]),_0x156b4c(this[_0x29e46c(0x1f5)]))[_0x29e46c(0x19e)](_0x5eb3e8=>{const _0x2491d1=_0x29e46c,_0x14ff7c=_0x5eb3e8,{objectId:_0x58036e}=_0x14ff7c[_0x2491d1(0x249)],_0x54ae7d=this[_0x2491d1(0x120)][_0x2491d1(0x175)](_0x59bf05);_0x58036e===_0x44786d?_0x54ae7d[_0x2491d1(0x275)](_0x44786d):_0x54ae7d['refreshPermission'](_0x44786d,_0x58036e);});};_0x4c82f1(this[_0xacd82c(0x343)][_0xacd82c(0x3a1)](_0x33d049[_0xacd82c(0x174)]),this[_0xacd82c(0x343)]['getTypeOfUnitAdded$'](_0x33d049['UNIVER_DOC']))['pipe'](_0x4eca0b(_0x45ba20=>_0x45ba20[_0xacd82c(0x14c)]()),_0x34901b(_0x44fc15=>!_0x52b31a(_0x44fc15)),_0x156b4c(this[_0xacd82c(0x1f5)]))[_0xacd82c(0x19e)](_0xe15450=>{_0x282886(_0xe15450);});}};et=Xo([Pe(0x0,_0x592774(_0x579617)),Pe(0x1,_0x191290),Pe(0x2,_0x28af49),Pe(0x3,_0x592774(ce)),Pe(0x4,_0x592774(_0x2af7ec))],et);var Jo=Object['defineProperty'],qo=Object[_0x598a93(0x1cb)],zo=(_0x5e42b2,_0x5c3995,_0x3ce440,_0x13a942)=>{const _0x53af2e=_0x598a93;for(var _0xf830ee=_0x13a942>0x1?void 0x0:_0x13a942?qo(_0x5c3995,_0x3ce440):_0x5c3995,_0x330c92=_0x5e42b2[_0x53af2e(0x45e)]-0x1,_0xb5305d;_0x330c92>=0x0;_0x330c92--)(_0xb5305d=_0x5e42b2[_0x330c92])&&(_0xf830ee=(_0x13a942?_0xb5305d(_0x5c3995,_0x3ce440,_0xf830ee):_0xb5305d(_0xf830ee))||_0xf830ee);return _0x13a942&&_0xf830ee&&Jo(_0x5c3995,_0x3ce440,_0xf830ee),_0xf830ee;},gs=(_0x19b6e4,_0xa80698)=>(_0x28eca3,_0x573bac)=>_0xa80698(_0x28eca3,_0x573bac,_0x19b6e4);let Nt=class{constructor(_0x2df433,_0x248133){const _0x2114fe=_0x598a93;this[_0x2114fe(0x2c2)]=_0x2df433,this[_0x2114fe(0x3f1)]=_0x248133;}async[_0x598a93(0x44e)](_0x24fab8,_0x12637d){const _0x168754=_0x598a93;var _0x26389c;const {unitID:_0x2b9bd8,type:_0x15d37b,revision:_0x4b796e=0x0}=_0x12637d,_0x1e707b=this[_0x168754(0x364)]()+'/'+_0x15d37b+_0x168754(0x213)+_0x2b9bd8+_0x168754(0x283)+_0x4b796e,_0x1ede9a=(await this[_0x168754(0x3f1)][_0x168754(0x175)](_0x1e707b))['body'],_0x51d720=(_0x26389c=_0x1ede9a['snapshot'])==null?void 0x0:_0x26389c['workbook'];if(_0x51d720){const _0x411991=_0x51d720==null?void 0x0:_0x51d720[_0x168754(0x25a)],_0x29c53c=_0x6f55a9['encode'](_0x20cdb8(_0x411991));_0x51d720[_0x168754(0x25a)]=_0x29c53c,Object['entries'](_0x51d720['sheets'])[_0x168754(0x264)](([,_0x442c7f])=>{const _0x2f1820=_0x168754,_0x44a1a7=_0x442c7f[_0x2f1820(0x25a)],_0x314228=_0x6f55a9[_0x2f1820(0x2e3)](_0x20cdb8(_0x44a1a7));_0x442c7f[_0x2f1820(0x25a)]=_0x314228;});}return _0x1ede9a;}async[_0x598a93(0x2fd)](_0x28931f,_0x1cd085){const _0x48e71a=_0x598a93,{unitID:_0x5b6151,type:_0xcc7bb6,blockID:_0x54c9da}=_0x1cd085,_0x290a7a=this[_0x48e71a(0x182)]()+'/'+_0xcc7bb6+_0x48e71a(0x213)+_0x5b6151+_0x48e71a(0x2ab)+_0x54c9da;return(await this['_httpService']['get'](_0x290a7a))[_0x48e71a(0x3a2)];}async['getDeserializedSheetBlock'](_0x2c8557,_0x4d1722){const _0x468441=_0x598a93,{unitID:_0x510591,type:_0x36a62f,blockID:_0x42f94a}=_0x4d1722,_0x29b604=this[_0x468441(0x182)]()+_0x468441(0x2ab)+_0x36a62f+_0x468441(0x213)+_0x510591+'/block/'+_0x42f94a;return(await this[_0x468441(0x3f1)][_0x468441(0x175)](_0x29b604))[_0x468441(0x3a2)];}async[_0x598a93(0x39a)](_0x511813,_0xbbb37e){const _0x1ebe78=_0x598a93,{unitID:_0x36433e,type:_0x3c84eb,from:_0x33e87c,to:_0x2d6791}=_0xbbb37e,_0x53bc05=this[_0x1ebe78(0x182)]()+'/'+_0x3c84eb+_0x1ebe78(0x213)+_0x36433e+_0x1ebe78(0x278)+_0x33e87c+'&to='+_0x2d6791;return(await this['_httpService'][_0x1ebe78(0x175)](_0x53bc05))['body'];}[_0x598a93(0x364)](){const _0x93e022=_0x598a93;var _0x11d040;return(_0x11d040=this[_0x93e022(0x2c2)]['getConfig'](mn))!=null?_0x11d040:this['_getAPIPrefix']();}[_0x598a93(0x182)](){const _0xb2e76b=_0x598a93;var _0x474d41,_0x5cde6d;const _0xd82eaa=this[_0xb2e76b(0x2c2)][_0xb2e76b(0x12d)](dn),_0x2a23a7=this[_0xb2e76b(0x2c2)][_0xb2e76b(0x12d)](L);return(_0x5cde6d=(_0x474d41=_0x2a23a7==null?void 0x0:_0x2a23a7[_0xb2e76b(0x468)])!=null?_0x474d41:_0xd82eaa)!=null?_0x5cde6d:fn;}async[_0x598a93(0x481)](_0x4482d8,_0x27f2fe){const _0x244ed0=_0x598a93,_0x3dfa9d='/universer-api/snapshot/'+_0x27f2fe['type']+_0x244ed0(0x213)+_0x27f2fe[_0x244ed0(0x3a6)]+_0x244ed0(0x3e9);return(await this[_0x244ed0(0x3f1)]['get'](_0x3dfa9d,{'params':{'resourceId':JSON[_0x244ed0(0x126)](_0x27f2fe[_0x244ed0(0x35b)])}}))[_0x244ed0(0x3a2)];}['saveSnapshot'](){const _0xa3c1b1=_0x598a93;throw new Error(_0xa3c1b1(0x337));}[_0x598a93(0x29b)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['saveChangeset'](){const _0x395485=_0x598a93;throw new Error(_0x395485(0x337));}[_0x598a93(0x28e)](){const _0x2ce2cc=_0x598a93;throw new Error(_0x2ce2cc(0x337));}};Nt=zo([gs(0x0,_0x3fc6a0),gs(0x1,_0x592774(_0x4b4f20))],Nt);var Zo=Object[_0x598a93(0x171)],Qo=Object['getOwnPropertyDescriptor'],ea=(_0x929dcf,_0x3afa5b,_0x5e6653,_0x1e9e14)=>{const _0x53cd88=_0x598a93;for(var _0x11ec50=_0x1e9e14>0x1?void 0x0:_0x1e9e14?Qo(_0x3afa5b,_0x5e6653):_0x3afa5b,_0x3e0952=_0x929dcf[_0x53cd88(0x45e)]-0x1,_0x2823e1;_0x3e0952>=0x0;_0x3e0952--)(_0x2823e1=_0x929dcf[_0x3e0952])&&(_0x11ec50=(_0x1e9e14?_0x2823e1(_0x3afa5b,_0x5e6653,_0x11ec50):_0x2823e1(_0x11ec50))||_0x11ec50);return _0x1e9e14&&_0x11ec50&&Zo(_0x3afa5b,_0x5e6653,_0x11ec50),_0x11ec50;},ye=(_0x17f17a,_0x5a8889)=>(_0x56a2fe,_0xe4c374)=>_0x5a8889(_0x56a2fe,_0xe4c374,_0x17f17a);let Ut=class extends _0x397fe3{constructor(_0x232a05,_0x3bb7b3,_0x3f75c8,_0x4cc0e8,_0x1b0832){const _0x2a092b=_0x598a93;super(_0x232a05,_0x3bb7b3,_0x3f75c8),this['_transformService']=_0x4cc0e8,this[_0x2a092b(0x345)]=_0x1b0832;}['transformUndoRedo'](_0x1db808,_0x33ea91){const _0x712ded=_0x598a93,_0x4299c3=this[_0x712ded(0x2ca)](_0x1db808);if(_0x4299c3)try{const _0x2da043=this['_transformStack'](_0x4299c3,_0x33ea91);this[_0x712ded(0x1ea)](_0x1db808,_0x2da043);}catch(_0x401a59){this[_0x712ded(0x345)][_0x712ded(0x379)](_0x712ded(0x1ed),_0x401a59),this[_0x712ded(0x2e8)](_0x1db808);}const _0x3147f7=this[_0x712ded(0x3d4)](_0x1db808);if(_0x3147f7)try{const _0x5e591a=this[_0x712ded(0x1df)](_0x3147f7,_0x33ea91);this[_0x712ded(0x3df)](_0x1db808,_0x5e591a);}catch(_0x95968d){this[_0x712ded(0x345)][_0x712ded(0x379)](_0x95968d),this[_0x712ded(0x2c5)](_0x1db808);}}[_0x598a93(0x2e8)](_0x7caa34){const _0x33d51b=_0x598a93,_0xded9f5=this[_0x33d51b(0x2ca)](_0x7caa34);_0xded9f5&&(_0xded9f5['length']=0x0,this['_updateStatus']());}[_0x598a93(0x2c5)](_0xcb80c7){const _0x51eed8=_0x598a93,_0x46e268=this[_0x51eed8(0x3d4)](_0xcb80c7);_0x46e268&&(_0x46e268[_0x51eed8(0x45e)]=0x0,this[_0x51eed8(0x301)]());}[_0x598a93(0x1ea)](_0x57ffc0,_0xfcba76){const _0x40dedd=_0x598a93;this[_0x40dedd(0x31a)][_0x40dedd(0x314)](_0x57ffc0,_0xfcba76),this['_updateStatus']();}['_substituteRedoStack'](_0x40c20b,_0x3c2b4c){const _0x372a45=_0x598a93;this[_0x372a45(0x316)][_0x372a45(0x314)](_0x40c20b,_0x3c2b4c),this[_0x372a45(0x301)]();}[_0x598a93(0x1df)](_0x15fa4d,_0x1d162a){const _0x85457c=_0x598a93,_0x46466a=[];let _0x4804b9=_0x1d162a,_0x47f692=_0x1d162a;for(let _0x5e611a=_0x15fa4d[_0x85457c(0x45e)]-0x1;_0x5e611a>=0x0;_0x5e611a--){const {unitID:_0x43be11,undoMutations:_0x4e5bc5,redoMutations:_0x4fe2be}=_0x15fa4d[_0x5e611a],_0x2236f7=this[_0x85457c(0x1d1)][_0x85457c(0x3cc)](_0x4804b9,_0x4e5bc5),_0x10bda7=this[_0x85457c(0x1d1)][_0x85457c(0x3cc)](_0x47f692,_0x4fe2be);if(_0x53b98b(_0x2236f7)||_0x53b98b(_0x10bda7)){this['_logService'][_0x85457c(0x379)](_0x85457c(0x1ed),_0x85457c(0x14d),_0x2236f7,_0x10bda7);break;}_0x4804b9=_0x2236f7[_0x85457c(0x272)],_0x47f692=_0x10bda7[_0x85457c(0x272)],_0x46466a[_0x85457c(0x34e)]({'unitID':_0x43be11,'undoMutations':_0x2236f7[_0x85457c(0x13b)],'redoMutations':_0x10bda7['m2Prime']});}return _0x46466a[_0x85457c(0x256)]();}};Ut=ea([ye(0x0,_0x191290),ye(0x1,_0xbb225b),ye(0x2,_0x1f167d),ye(0x3,_0x4cfc78),ye(0x4,_0x1281de)],Ut);class ta extends _0x39a217{constructor(){const _0x460b13=_0x598a93;super(),l(this,_0x460b13(0x2a2)),this[_0x460b13(0x2a2)]=_0xa48ff6(window,_0x460b13(0x245))[_0x460b13(0x22c)](_0x5c2c79(this[_0x460b13(0x1f5)]),_0x55473f(0x1),_0x28c444(void 0x0));}[_0x598a93(0x46a)](_0x181a07,_0x5716ff,_0x51c37d=!0x1){const _0x176dfd=_0x598a93,_0xfc7dd1=new URL(window[_0x176dfd(0x2bd)][_0x176dfd(0x2bb)]);_0xfc7dd1[_0x176dfd(0x229)][_0x176dfd(0x314)](_0x181a07,_0x5716ff),_0x51c37d?window['history']['replaceState']('','',_0xfc7dd1[_0x176dfd(0x1fe)]()):window[_0x176dfd(0x235)]['pushState']('','',_0xfc7dd1[_0x176dfd(0x1fe)]());}[_0x598a93(0x340)](_0x51ef8e,_0x4c07d9=!0x1){const _0x2ed36e=_0x598a93,_0x5bea4d=new URL(window[_0x2ed36e(0x2bd)][_0x2ed36e(0x2bb)]);_0x5bea4d['searchParams']['delete'](_0x51ef8e),_0x4c07d9?window[_0x2ed36e(0x235)][_0x2ed36e(0x41a)]('','',_0x5bea4d[_0x2ed36e(0x1fe)]()):window[_0x2ed36e(0x235)][_0x2ed36e(0x33f)]('','',_0x5bea4d[_0x2ed36e(0x1fe)]());}[_0x598a93(0x258)](_0x2406f6){const _0x689e61=_0x598a93;var _0x20db3f;return(_0x20db3f=new URL(window[_0x689e61(0x2bd)]['href'])[_0x689e61(0x229)][_0x689e61(0x175)](_0x2406f6))!=null?_0x20db3f:void 0x0;}}var Gs=Object[_0x598a93(0x171)],sa=Object[_0x598a93(0x1cb)],ia=(_0xb65b1d,_0x4b6eba,_0x1216db)=>_0x4b6eba in _0xb65b1d?Gs(_0xb65b1d,_0x4b6eba,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1216db}):_0xb65b1d[_0x4b6eba]=_0x1216db,na=(_0x25f31b,_0x39bce5,_0x232169,_0x46a1a5)=>{const _0x332e08=_0x598a93;for(var _0x1c4ad1=_0x46a1a5>0x1?void 0x0:_0x46a1a5?sa(_0x39bce5,_0x232169):_0x39bce5,_0x25c876=_0x25f31b[_0x332e08(0x45e)]-0x1,_0x4ae1fd;_0x25c876>=0x0;_0x25c876--)(_0x4ae1fd=_0x25f31b[_0x25c876])&&(_0x1c4ad1=(_0x46a1a5?_0x4ae1fd(_0x39bce5,_0x232169,_0x1c4ad1):_0x4ae1fd(_0x1c4ad1))||_0x1c4ad1);return _0x46a1a5&&_0x1c4ad1&&Gs(_0x39bce5,_0x232169,_0x1c4ad1),_0x1c4ad1;},ke=(_0x589854,_0x1aface)=>(_0x42ea88,_0x286984)=>_0x1aface(_0x42ea88,_0x286984,_0x589854),ra=(_0x2136e7,_0x401951,_0x1e90f1)=>ia(_0x2136e7,_0x401951+'',_0x1e90f1);const oa=_0x598a93(0x252);let Mt=class extends _0x17f00c{constructor(_0x783b70=yn,_0x142240,_0x5e17e6,_0x58ff3c,_0x19670c){const _0x55ecf6=_0x598a93;super(),this[_0x55ecf6(0x2de)]=_0x783b70,this['_logService']=_0x142240,this[_0x55ecf6(0x25f)]=_0x5e17e6,this[_0x55ecf6(0x120)]=_0x58ff3c,this[_0x55ecf6(0x2c2)]=_0x19670c;const {..._0x37b370}=this[_0x55ecf6(0x2de)];this['_configService']['setConfig'](L,_0x37b370);}['onStarting'](){const _0x243fac=_0x598a93;this[_0x243fac(0x20d)](),_0x4a1714(this['_injector'],[[pe],[qe],[et]]);}[_0x598a93(0x23e)](){const _0x228bbb=_0x598a93;_0x4a1714(this[_0x228bbb(0x120)],[[ze]]);}['onRendered'](){this['_registerRenderDependencies']();}[_0x598a93(0x20d)](){const _0x28a0a8=_0x598a93;var _0x5a24e9,_0x5c58a6,_0x34ca80,_0x3425af;this[_0x28a0a8(0x120)][_0x28a0a8(0x1af)](_0x3f0b63)&&this[_0x28a0a8(0x345)][_0x28a0a8(0x379)](_0x28a0a8(0x355),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x2360ee=[[_0x3f0b63,{'useClass':Ut}],[ce],[Ft],[_0x4b4f20],[Ws,{'useClass':ta}],[ae],[D],[_0x2cafbe],[Ke],[Xe],[Ye],[Bt],[Ze],[Qe],[$s],[et],[Ls,{'useClass':(_0x5c58a6=(_0x5a24e9=this[_0x28a0a8(0x2de)])==null?void 0x0:_0x5a24e9[_0x28a0a8(0x250)])!=null?_0x5c58a6:Et}],[_0x4b4147,{'useClass':_0x1796a8}],[_0x33411f,{'useClass':Nt}],[_0x3072eb,{'useClass':Pt}],[_0x11fcdb,{'useClass':yt}],[Ae],[qe],[Ue],[ze],[pe]];(_0x34ca80=this[_0x28a0a8(0x2de)])!=null&&_0x34ca80['enableSingleActiveInstanceLock']&&_0x2360ee[_0x28a0a8(0x34e)]([tt,{'useClass':rr}]),_0x2360ee=_0xc4cf65(_0x2360ee,(_0x3425af=this[_0x28a0a8(0x2de)])==null?void 0x0:_0x3425af[_0x28a0a8(0x188)]),_0x2360ee['forEach'](_0x71f527=>this[_0x28a0a8(0x120)][_0x28a0a8(0x187)](_0x71f527)),this[_0x28a0a8(0x2e6)]();}['_registerRenderDependencies'](){const _0x993c6b=_0x598a93;this[_0x993c6b(0x147)](this[_0x993c6b(0x25f)][_0x993c6b(0x3ce)](_0x33d049[_0x993c6b(0x17d)],[Dt])),this[_0x993c6b(0x147)](this['_renderManagerService'][_0x993c6b(0x3ce)](_0x33d049[_0x993c6b(0x174)],[wt]));}[_0x598a93(0x2e6)](){const _0x3a82ad=_0x598a93;var _0x3b2219,_0x139cb4;this[_0x3a82ad(0x120)][_0x3a82ad(0x175)](_0x4b4f20)['registerHTTPInterceptor']({'priority':0x14,'interceptor':_0x20176e({'maxParallel':0x6})}),this[_0x3a82ad(0x120)][_0x3a82ad(0x175)](Qe),(_0x3b2219=this[_0x3a82ad(0x2de)])!=null&&_0x3b2219[_0x3a82ad(0x25b)]||this[_0x3a82ad(0x120)][_0x3a82ad(0x175)](D)[_0x3a82ad(0x462)](),(_0x139cb4=this['_config'])!=null&&_0x139cb4[_0x3a82ad(0x444)]&&this[_0x3a82ad(0x120)][_0x3a82ad(0x175)](Ze),this[_0x3a82ad(0x120)][_0x3a82ad(0x175)](Ae),this[_0x3a82ad(0x120)][_0x3a82ad(0x1af)](Ue)&&this[_0x3a82ad(0x120)][_0x3a82ad(0x175)](Ue);}};ra(Mt,'pluginName',oa),Mt=na([_0xe01fa7(_0x20c1b9),ke(0x1,_0x1281de),ke(0x2,_0x101da8),ke(0x3,_0x592774(_0x579617)),ke(0x4,_0x3fc6a0)],Mt);export{No as AUTHZ_URL_KEY,Pt as AuthzIoHttpService,On as COLLAB_SUBMIT_CHANGESET_URL_KEY,Sn as COLLAB_WEB_SOCKET_URL_KEY,Ae as CollaborationController,Je as CollaborationEntity,Ct as CollaborationSession,ce as CollaborationSessionService,Et as CollaborationSocketService,w as CollaborationStatus,_o as CollaborationStatusDisplay,$s as CommentService,qe as DataLoaderController,Ue as DesktopCollaborationStatusDisplayController,bt as DocCollaborationEntity,vn as HEARTBEAT_INTERVAL_KEY,Ns as HEARTBEAT_TIMEOUT_KEY,Ls as ICollaborationSocketService,Ws as IURLService,yt as ImageIoService,Tn as LOCAL_CACHE_INTERVAL_KEY,wn as LOGIN_URL_KEY,D as LocalCacheService,Cn as RETRY_CONNECTING_MAX_COUNT_KEY,Oa as SEND_CHANGESET_TIMEOUT_KEY,dn as SNAPSHOT_SERVER_URL_KEY,mn as SNAPSHOT_URL_KEY,G as SessionStatus,Yr as SheetCollabCursorShape,Tt as SheetCollaborationEntity,Nt as SnapshotServerOverHTTPService,Mt as UniverCollaborationClientPlugin,ta as WebURLService,Nn as deserializeToCombResponse,Un as serializeCombRequest};