@univerjs-pro/collaboration-client 0.3.0-alpha.0 → 0.3.0

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 _0x44ade9=_0x3787;(function(_0x82c57a,_0xc7d35b){const _0x18824d=_0x3787,_0x21d388=_0x82c57a();while(!![]){try{const _0x3933a9=-parseInt(_0x18824d(0x3cb))/0x1+parseInt(_0x18824d(0x239))/0x2*(parseInt(_0x18824d(0x400))/0x3)+-parseInt(_0x18824d(0x358))/0x4*(-parseInt(_0x18824d(0x1c2))/0x5)+parseInt(_0x18824d(0x382))/0x6*(-parseInt(_0x18824d(0x21d))/0x7)+parseInt(_0x18824d(0x171))/0x8+-parseInt(_0x18824d(0x294))/0x9*(parseInt(_0x18824d(0x178))/0xa)+parseInt(_0x18824d(0x2be))/0xb*(parseInt(_0x18824d(0x445))/0xc);if(_0x3933a9===_0xc7d35b)break;else _0x21d388['push'](_0x21d388['shift']());}catch(_0x47c1dc){_0x21d388['push'](_0x21d388['shift']());}}}(_0x340c,0x3c076));var zs=Object['defineProperty'],Zs=(_0x1ad0a1,_0x4a05e0,_0x3fe0ce)=>_0x4a05e0 in _0x1ad0a1?zs(_0x1ad0a1,_0x4a05e0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3fe0ce}):_0x1ad0a1[_0x4a05e0]=_0x3fe0ce,l=(_0x3545be,_0x5f109a,_0x5dc2c8)=>Zs(_0x3545be,typeof _0x5f109a!=_0x44ade9(0x34f)?_0x5f109a+'':_0x5f109a,_0x5dc2c8);import{createIdentifier as _0x8e889b,Inject as _0x180372,Disposable as _0x17cf1f,DisposableCollection as _0x4207d6,toDisposable as _0x3e741a,IConfigService as _0x1fe23f,ILogService as _0x4611a9,UserManagerService as _0x4df292,UniverInstanceType as _0xb0e7e8,IUniverInstanceService as _0x4c19c5,LocaleService as _0x787113,Optional as _0x4edbf0,RxDisposable as _0x1d444,Injector as _0x15d871,Tools as _0x110341,ILocalStorageService as _0x1364f5,ICommandService as _0x2bc808,JSONX as _0xe8b1b1,CommandType as _0x101550,IPermissionService as _0x7677d9,IUndoRedoService as _0x3cf637,sequenceExecute as _0x546da2,Rectangle as _0x2ef7c7,debounce as _0x137993,OnLifecycle as _0x2cff12,LifecycleStages as _0x1e5de5,COLORS as _0x110dca,ColorKit as _0x249e91,ThemeService as _0x76412c,fromEventSubject as _0x13c7e9,useDependency as _0x24777e,connectInjector as _0x25174f,Workbook as _0x24fa7c,isInternalEditorID as _0x52dbe5,LocalUndoRedoService as _0x5c3dd8,IContextService as _0x3c1d68,DependentOn as _0x2cd2d8,Plugin as _0x14c22f,IAuthzIoService as _0x4d7a53,mergeOverrideWithDependencies as _0x43541f}from'@univerjs/core';import{Subject as _0x3827c1,merge as _0x527d28,takeUntil as _0x275af9,BehaviorSubject as _0x531abd,distinctUntilChanged as _0x49184f,fromEvent as _0x3b552f,map as _0xa2248a,shareReplay as _0x227687,take as _0xf17119,of as _0x6cc13d,debounceTime as _0x4134cc,filter as _0xfe2c4,switchMap as _0x5dc56b,combineLatest as _0x570be0,concatMap as _0x557746,mapTo as _0x351ffb}from'rxjs';import{map as _0x49da78,take as _0x590898,filter as _0x5be455,delay as _0x233073,throttleTime as _0x3a86b0,takeUntil as _0x24c4a1,switchMap as _0x3dab9b}from'rxjs/operators';import{MessageType as _0x73f118,Tooltip as _0x2cf8ae}from'@univerjs/design';import{IBeforeCloseService as _0x4d8086,IMessageService as _0x251714,INotificationService as _0xc8419c,useObservable as _0x3a7045,BuiltInUIPart as _0x41ee47,IUIPartsService as _0x3cdef0}from'@univerjs/ui';import{HTTPService as _0x53dfff,WebSocketService as _0x4e064e,MergeInterceptorFactory as _0x4bc933,HTTPRequest as _0x564c02,IHTTPImplementation as _0x23f73e,XHRHTTPImplementation as _0x1fbb96,ThresholdInterceptorFactory as _0x53e64b}from'@univerjs/network';import{CollaborationEvent as _0x2db775,parseChangesetToProtocol as _0x224350,ISnapshotServerService as _0x23ecb2,isTransformMutationFailure as _0x458f83,isTransformMutationsWithChangesetSuccess as _0x24ef98,ITransformService as _0x446e46,RevisionService as _0x2123f3,mapDocumentTypeToUniverType as _0x469599,isTransformChangesetsSuccess as _0x584035,CompressMutationService as _0x44773b,parseProtocolChangeset as _0x4310c0,SnapshotService as _0x27b45c,textEncoder as _0x10489f,b64DecodeUnicode as _0x41914f,isTransformMutationsWithChangesetFailure as _0x4a3e3f,UniverCollaborationPlugin as _0x558b0a}from'@univerjs-pro/collaboration';import{ITelemetryService as _0xf5a62e}from'@univerjs/telemetry';import{DocSelectionManagerService as _0x56b8b2,RichTextEditingMutation as _0x27d3d0,SetTextSelectionsOperation as _0x506c91,DocSkeletonManagerService as _0x5570b9}from'@univerjs/docs';import{DocIMEInputManagerService as _0x1301a3,DocStateChangeManagerService as _0x2b0039,NodePositionConvertToCursor as _0x2066cd,isValidRectRange as _0x328ef9,NodePositionConvertToRectRange as _0x286ca0,TEXT_RANGE_LAYER_INDEX as _0x31e632,SetDocZoomRatioOperation as _0x47953c}from'@univerjs/docs-ui';import{SheetsSelectionsService as _0x472097,SetSelectionsOperation as _0x152456,InsertSheetMutation as _0x1f929a,EmptyMutation as _0x4fd1b4,WorkbookEditablePermission as _0x4f24bc,RefRangeService as _0xe89218,EffectRefRangId as _0x46ccd7,handleIRemoveRow as _0x57f47d,handleIRemoveCol as _0x310158,handleMoveRange as _0x845f5d,handleInsertRow as _0x41f48b,handleInsertRangeMoveRight as _0x9f95c2,handleInsertRangeMoveDown as _0x327694,handleInsertCol as _0x47a306,handleDeleteRangeMoveUp as _0x55810d,handleDeleteRangeMoveLeft as _0x238bf1,runRefRangeMutations as _0xa217ee,SetWorksheetActivateCommand as _0x226f68}from'@univerjs/sheets';import{IRenderManagerService as _0xc776ff,Shape as _0x425f9c,Rect as _0x81b34c,getColor as _0x15026d,RegularPolygon as _0x5e6974,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x453ffe,Vector2 as _0x4941ed}from'@univerjs/engine-render';import{ImageSourceType as _0x21fbb6,ImageUploadStatusType as _0x44d395,IImageIoService as _0x5d9034}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x3b7c25,serializeRangeWithSheet as _0x225488}from'@univerjs/engine-formula';import{SheetSkeletonManagerService as _0xfbaa46,VIEWPORT_KEY as _0x40a6ae,getCoordByCell as _0xa8bbdf,getSheetObject as _0x292b3d,SheetPermissionInitController as _0x359d53}from'@univerjs/sheets-ui';import _0x306310,{forwardRef as _0x19138a,useRef as _0x2079f7,createElement as _0x1f11c0,useCallback as _0x6e72a5}from'react';import _0x59a36c from'clsx';import{IRemoteInstanceService as _0x18edfc}from'@univerjs/rpc';import{getAttachHeader as _0x512ff6}from'@univerjs-pro/license';const fn=_0x44ade9(0x2a4),mn='/universer-api/snapshot',gn=_0x44ade9(0x43d),Da=_0x44ade9(0x40c),Sn=0x7d0,pn=_0x44ade9(0x28b),vn=_0x44ade9(0x19f),In='HEARTBEAT_INTERVAL',En=0x7530,Us=_0x44ade9(0x3c5),Ms=0x4e20,Cn=0x4e20,bn=_0x44ade9(0x19a),Tn=0x3,Rn=_0x44ade9(0x2a2),On=0x3e8,Dn=_0x44ade9(0x3bb),wn=_0x44ade9(0x1df),Pn=_0x44ade9(0x3a0),yn=_0x44ade9(0x2b1);var As=(_0x4826df=>(_0x4826df[_0x4826df[_0x44ade9(0x2c5)]=0x0]=_0x44ade9(0x2c5),_0x4826df[_0x4826df['OK']=0x1]='OK',_0x4826df[_0x4826df['INTERNAL_ERROR']=0x2]=_0x44ade9(0x459),_0x4826df[_0x4826df['PERMISSION_DENIED']=0x3]=_0x44ade9(0x1a8),_0x4826df[_0x4826df[_0x44ade9(0x24a)]=0x4]=_0x44ade9(0x24a),_0x4826df[_0x4826df[_0x44ade9(0x14d)]=0x5]=_0x44ade9(0x14d),_0x4826df[_0x4826df['ALREADY_EXISTS']=0x6]=_0x44ade9(0x4aa),_0x4826df[_0x4826df[_0x44ade9(0x1c1)]=0x7]=_0x44ade9(0x1c1),_0x4826df[_0x4826df[_0x44ade9(0x20d)]=0x8]=_0x44ade9(0x20d),_0x4826df[_0x4826df[_0x44ade9(0x33c)]=0x9]=_0x44ade9(0x33c),_0x4826df[_0x4826df[_0x44ade9(0x32a)]=0x1389]=_0x44ade9(0x32a),_0x4826df[_0x4826df[_0x44ade9(0x435)]=0x1771]=_0x44ade9(0x435),_0x4826df[_0x4826df['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x44ade9(0x21e),_0x4826df[_0x4826df[_0x44ade9(0x342)]=0x1b59]='APPLY_REJECT',_0x4826df[_0x4826df[_0x44ade9(0x3bc)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x4826df[_0x4826df[_0x44ade9(0x469)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x4826df[_0x4826df[_0x44ade9(0x3e2)]=0x1b5c]=_0x44ade9(0x3e2),_0x4826df[_0x4826df[_0x44ade9(0x262)]=0x1f41]=_0x44ade9(0x262),_0x4826df[_0x4826df[_0x44ade9(0x22a)]=0x2329]=_0x44ade9(0x22a),_0x4826df[_0x4826df[_0x44ade9(0x365)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x4826df[_0x4826df[_0x44ade9(0x402)]=0x232b]=_0x44ade9(0x402),_0x4826df[_0x4826df[_0x44ade9(0x1c5)]=0x232c]=_0x44ade9(0x1c5),_0x4826df[_0x4826df[_0x44ade9(0x372)]=0x232d]=_0x44ade9(0x372),_0x4826df[_0x4826df['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x44ade9(0x1c0),_0x4826df[_0x4826df[_0x44ade9(0x478)]=0x2712]=_0x44ade9(0x478),_0x4826df[_0x4826df[_0x44ade9(0x491)]=0x2713]=_0x44ade9(0x491),_0x4826df[_0x4826df[_0x44ade9(0x43b)]=0x2714]=_0x44ade9(0x43b),_0x4826df[_0x4826df['UNRECOGNIZED']=-0x1]=_0x44ade9(0x269),_0x4826df))(As||{}),H=(_0x253d6f=>(_0x253d6f[_0x253d6f['UNIVER_UNKNOWN']=0x0]=_0x44ade9(0x490),_0x253d6f[_0x253d6f[_0x44ade9(0x3b0)]=0x1]=_0x44ade9(0x3b0),_0x253d6f[_0x253d6f['UNIVER_SHEET']=0x2]=_0x44ade9(0x233),_0x253d6f[_0x253d6f['UNIVER_SLIDE']=0x3]=_0x44ade9(0x2e7),_0x253d6f[_0x253d6f['UNIVER_PROJECT']=0x4]=_0x44ade9(0x1e7),_0x253d6f[_0x253d6f[_0x44ade9(0x269)]=-0x1]=_0x44ade9(0x269),_0x253d6f))(H||{}),I=(_0x226cab=>(_0x226cab[_0x226cab['UNKNOWN_CMD']=0x0]=_0x44ade9(0x355),_0x226cab[_0x226cab[_0x44ade9(0x38f)]=0x1]=_0x44ade9(0x38f),_0x226cab[_0x226cab['JOIN']=0x2]='JOIN',_0x226cab[_0x226cab[_0x44ade9(0x414)]=0x3]=_0x44ade9(0x414),_0x226cab[_0x226cab[_0x44ade9(0x3a8)]=0x4]=_0x44ade9(0x3a8),_0x226cab[_0x226cab[_0x44ade9(0x3c9)]=0x5]=_0x44ade9(0x3c9),_0x226cab[_0x226cab['RECV']=0x6]=_0x44ade9(0x2e6),_0x226cab[_0x226cab[_0x44ade9(0x269)]=-0x1]=_0x44ade9(0x269),_0x226cab))(I||{}),Vt=(_0x1b954e=>(_0x1b954e[_0x1b954e[_0x44ade9(0x14a)]=0x0]=_0x44ade9(0x14a),_0x1b954e[_0x1b954e['OK']=0x1]='OK',_0x1b954e[_0x1b954e[_0x44ade9(0x16c)]=0x2]=_0x44ade9(0x16c),_0x1b954e[_0x1b954e[_0x44ade9(0x269)]=-0x1]='UNRECOGNIZED',_0x1b954e))(Vt||{}),Ls=(_0x315d1b=>(_0x315d1b[_0x315d1b[_0x44ade9(0x222)]=0x0]=_0x44ade9(0x222),_0x315d1b[_0x315d1b[_0x44ade9(0x26e)]=0x1]=_0x44ade9(0x26e),_0x315d1b[_0x315d1b['HttpExport']=0x2]=_0x44ade9(0x24c),_0x315d1b[_0x315d1b[_0x44ade9(0x42a)]=0x3]=_0x44ade9(0x42a),_0x315d1b[_0x315d1b['UnitSnapshot']=0x4]=_0x44ade9(0x1a9),_0x315d1b[_0x315d1b[_0x44ade9(0x269)]=-0x1]=_0x44ade9(0x269),_0x315d1b))(Ls||{});const L='collaboration-client.config',Nn={};function Un(_0x318776){const _0x448300=_0x44ade9;var _0x590da2,_0x1cf30d,_0x7daf90,_0x21a2b7;const _0x1c1ce1=_0x318776[_0x448300(0x3c3)],_0x49b55e=JSON[_0x448300(0x2e2)](_0x1c1ce1);switch(_0x49b55e[_0x448300(0x257)]){case I[_0x448300(0x3c9)]:case I[_0x448300(0x38f)]:{const _0x1596ef=_0x49b55e[_0x448300(0x33d)];return{..._0x49b55e,'data':_0x1596ef,'cmd':_0x49b55e[_0x448300(0x257)]};}case I[_0x448300(0x17f)]:{const _0x5c6248=_0x49b55e[_0x448300(0x432)];return{..._0x49b55e,'data':_0x5c6248,'cmd':_0x49b55e[_0x448300(0x257)]};}case I['RECV']:{const _0x395cc3=_0x49b55e['collaMsg'];switch(_0x395cc3[_0x448300(0x2ac)]){case _0x2db775['PERMISSION_REJ']:return{..._0x49b55e,'data':{..._0x395cc3,'data':(_0x590da2=_0x395cc3[_0x448300(0x1b4)])==null?void 0x0:_0x590da2['cs']},'cmd':_0x49b55e['cmd']};case _0x2db775[_0x448300(0x33e)]:return{..._0x49b55e,'data':{..._0x395cc3,'data':(_0x1cf30d=_0x395cc3[_0x448300(0x48f)])==null?void 0x0:_0x1cf30d['cs']},'cmd':_0x49b55e[_0x448300(0x257)]};case _0x2db775[_0x448300(0x3c7)]:return{..._0x49b55e,'data':{..._0x395cc3,'data':(_0x7daf90=_0x395cc3[_0x448300(0x396)])==null?void 0x0:_0x7daf90['cs']},'cmd':_0x49b55e[_0x448300(0x257)]};case _0x2db775['CHANGESET_REJ']:return{..._0x49b55e,'data':{..._0x395cc3,'data':(_0x21a2b7=_0x395cc3[_0x448300(0x1d9)])==null?void 0x0:_0x21a2b7['cs']},'cmd':_0x49b55e[_0x448300(0x257)]};case _0x2db775[_0x448300(0x1f9)]:return{..._0x49b55e,'data':{..._0x395cc3,'data':_0x395cc3[_0x448300(0x388)]},'cmd':_0x49b55e[_0x448300(0x257)]};case _0x2db775['USERS_ENTER']:return{..._0x49b55e,'data':{..._0x395cc3,'data':_0x395cc3[_0x448300(0x451)]},'cmd':_0x49b55e[_0x448300(0x257)]};case _0x2db775[_0x448300(0x2f4)]:return{..._0x49b55e,'data':{..._0x395cc3,'data':_0x395cc3[_0x448300(0x2c1)]},'cmd':_0x49b55e[_0x448300(0x257)]};case _0x2db775[_0x448300(0x4a8)]:return{..._0x49b55e,'data':{..._0x395cc3,'data':_0x395cc3[_0x448300(0x453)]},'cmd':_0x49b55e[_0x448300(0x257)]};case _0x2db775[_0x448300(0x32e)]:case _0x2db775[_0x448300(0x3b9)]:return{..._0x49b55e,'data':{..._0x395cc3,'data':_0x395cc3[_0x448300(0x148)]},'cmd':_0x49b55e[_0x448300(0x257)]};case _0x2db775['LIVESHARE_TERMINATE']:return{..._0x49b55e,'data':{..._0x395cc3,'data':_0x395cc3['liveShareNewHost']},'cmd':_0x49b55e[_0x448300(0x257)]};case _0x2db775[_0x448300(0x176)]:return{..._0x49b55e,'data':_0x395cc3,'cmd':_0x49b55e[_0x448300(0x257)]};case _0x2db775[_0x448300(0x436)]:return{..._0x49b55e,'data':{..._0x395cc3,'data':_0x395cc3[_0x448300(0x338)]},'cmd':_0x49b55e[_0x448300(0x257)]};case _0x2db775[_0x448300(0x3ea)]:return{..._0x49b55e,'data':{..._0x395cc3,'data':_0x395cc3[_0x448300(0x4a6)]},'cmd':_0x49b55e[_0x448300(0x257)]};case _0x2db775[_0x448300(0x447)]:return{..._0x49b55e,'data':{..._0x395cc3,'data':_0x395cc3[_0x448300(0x1be)]},'cmd':_0x49b55e[_0x448300(0x257)]};default:return _0x49b55e;}}default:return _0x49b55e;}}function Mn(_0xa75d1e){const _0x3d13fa=_0x44ade9;switch(_0xa75d1e['cmd']){case I[_0x3d13fa(0x3c9)]:case I[_0x3d13fa(0x38f)]:return JSON[_0x3d13fa(0x41d)]({'cmd':_0xa75d1e[_0x3d13fa(0x257)],'routeKey':_0xa75d1e[_0x3d13fa(0x274)]});case I[_0x3d13fa(0x3a8)]:{let _0x48c18a;switch(_0xa75d1e[_0x3d13fa(0x3c3)][_0x3d13fa(0x2ac)]){case _0x2db775[_0x3d13fa(0x1f9)]:{_0x48c18a={'eventID':_0x2db775[_0x3d13fa(0x1f9)],'updateCursorEvent':_0xa75d1e['data'][_0x3d13fa(0x3c3)]};break;}case _0x2db775['USERS_LEAVE']:{_0x48c18a={'eventID':_0x2db775[_0x3d13fa(0x2f4)],'leaveEvent':_0xa75d1e[_0x3d13fa(0x3c3)][_0x3d13fa(0x3c3)]};break;}case _0x2db775[_0x3d13fa(0x37f)]:{_0x48c18a={'eventID':_0x2db775[_0x3d13fa(0x37f)],'joinEvent':_0xa75d1e[_0x3d13fa(0x3c3)][_0x3d13fa(0x3c3)]};break;}case _0x2db775[_0x3d13fa(0x4a8)]:{_0x48c18a={'eventID':_0x2db775[_0x3d13fa(0x4a8)],'liveShareNewHost':_0xa75d1e[_0x3d13fa(0x3c3)][_0x3d13fa(0x3c3)]};break;}case _0x2db775[_0x3d13fa(0x3b9)]:{_0x48c18a={'eventID':_0x2db775[_0x3d13fa(0x3b9)],'liveShareOperation':_0xa75d1e[_0x3d13fa(0x3c3)]['data']};break;}case _0x2db775[_0x3d13fa(0x179)]:{_0x48c18a={'eventID':_0x2db775['LIVESHARE_TERMINATE'],'liveShareTerminate':_0xa75d1e[_0x3d13fa(0x3c3)][_0x3d13fa(0x3c3)]};break;}case _0x2db775[_0x3d13fa(0x237)]:{_0x48c18a={'eventID':_0x2db775[_0x3d13fa(0x237)],'liveShareRequestHost':_0xa75d1e[_0x3d13fa(0x3c3)][_0x3d13fa(0x3c3)]};break;}case _0x2db775['LIVESHARE_FETCH_OPERATIONS']:{_0x48c18a={'eventID':_0x2db775[_0x3d13fa(0x32e)]};break;}default:_0x48c18a={'eventID':_0xa75d1e[_0x3d13fa(0x3c3)][_0x3d13fa(0x2ac)]};}return JSON['stringify']({'cmd':_0xa75d1e[_0x3d13fa(0x257)],'routeKey':_0xa75d1e[_0x3d13fa(0x274)],'collaMsg':_0x48c18a});}case I[_0x3d13fa(0x17f)]:return JSON['stringify']({'cmd':_0xa75d1e[_0x3d13fa(0x257)],'routeKey':_0xa75d1e['routeKey'],'joinReq':_0xa75d1e[_0x3d13fa(0x3c3)]});case I[_0x3d13fa(0x414)]:return JSON[_0x3d13fa(0x41d)]({'cmd':_0xa75d1e[_0x3d13fa(0x257)],'routeKey':_0xa75d1e['routeKey'],'leaveReq':_0xa75d1e[_0x3d13fa(0x3c3)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var An=Object[_0x44ade9(0x421)],Ln=Object[_0x44ade9(0x418)],$n=(_0x339fb9,_0x4419b3,_0x1a6ea6,_0xd166b5)=>{const _0x2a7eee=_0x44ade9;for(var _0x217238=_0xd166b5>0x1?void 0x0:_0xd166b5?Ln(_0x4419b3,_0x1a6ea6):_0x4419b3,_0x41845b=_0x339fb9[_0x2a7eee(0x192)]-0x1,_0x49fda0;_0x41845b>=0x0;_0x41845b--)(_0x49fda0=_0x339fb9[_0x41845b])&&(_0x217238=(_0xd166b5?_0x49fda0(_0x4419b3,_0x1a6ea6,_0x217238):_0x49fda0(_0x217238))||_0x217238);return _0xd166b5&&_0x217238&&An(_0x4419b3,_0x1a6ea6,_0x217238),_0x217238;},Re=(_0x1a8694,_0x304e87)=>(_0xd0a93f,_0x133710)=>_0x304e87(_0xd0a93f,_0x133710,_0x1a8694);const $s=_0x8e889b(_0x44ade9(0x1cf));function jn(_0x533e47,_0x2a52d6,_0x236b63){const _0x36ef85=_0x44ade9;return _0x533e47+'/'+_0x2a52d6+_0x36ef85(0x40f)+_0x236b63+_0x36ef85(0x29b);}let Tt=class extends _0x17cf1f{constructor(_0x1a16c2,_0x42b92c,_0xfe50e,_0x51498d,_0x1d57ee){const _0x3e16f5=_0x44ade9;super(),this[_0x3e16f5(0x2a1)]=_0x1a16c2,this[_0x3e16f5(0x408)]=_0x42b92c,this['_configService']=_0xfe50e,this[_0x3e16f5(0x1a3)]=_0x51498d,this[_0x3e16f5(0x367)]=_0x1d57ee;}[_0x44ade9(0x41c)](_0x2e3d02){const _0x103135=_0x44ade9,_0x547585=this[_0x103135(0x408)][_0x103135(0x41c)](_0x2e3d02);if(!_0x547585)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x2b6483=new _0x4207d6(),_0x2d1aac=new _0x3827c1();_0x2b6483[_0x103135(0x377)](_0x547585[_0x103135(0x35b)][_0x103135(0x3dc)](_0x5a96b3=>_0x2d1aac['next'](_0x5a96b3))),_0x2b6483['add'](_0x3e741a(()=>_0x2d1aac[_0x103135(0x19c)]()));const _0x217941=new _0x3827c1();_0x2b6483['add'](_0x547585[_0x103135(0x341)][_0x103135(0x3dc)](_0x4c1a71=>_0x217941[_0x103135(0x34e)](_0x4c1a71))),_0x2b6483[_0x103135(0x377)](_0x3e741a(()=>_0x217941[_0x103135(0x19c)]()));const _0x417458=new _0x3827c1();_0x2b6483[_0x103135(0x377)](_0x547585[_0x103135(0x441)][_0x103135(0x3dc)](_0xefa305=>{const _0x217a0f=_0x103135,_0xa4c2d9=Un(_0xefa305);_0x417458[_0x217a0f(0x34e)](_0xa4c2d9);})),_0x2b6483[_0x103135(0x377)](_0x3e741a(()=>_0x417458[_0x103135(0x19c)]()));let _0x575390;const _0x2ad6c6=()=>{const _0x26c655=_0x103135;_0x217941[_0x26c655(0x34e)](new Event(_0x26c655(0x40a))),_0x2d1aac[_0x26c655(0x34e)](new CloseEvent('connection\x20error')),_0x575390['close']();};return _0x575390={'memberID':'','close$':_0x2d1aac[_0x103135(0x458)](),'error$':_0x217941['asObservable'](),'open$':_0x547585[_0x103135(0x482)],'message$':_0x417458['asObservable'](),'send':_0x168b04=>{const _0x581965=_0x103135;if(_0x168b04[_0x581965(0x257)]===I[_0x581965(0x3a8)]){if(_0x168b04[_0x581965(0x3c3)][_0x581965(0x2ac)]===_0x2db775[_0x581965(0x356)]){this[_0x581965(0x312)](_0x575390,_0x168b04[_0x581965(0x3c3)])[_0x581965(0x1eb)](_0x2c8fd8=>{const _0x5e9ae1=_0x581965;this[_0x5e9ae1(0x1a3)]['error'](_0x2c8fd8),_0x2ad6c6();});return;}if(_0x168b04['data'][_0x581965(0x2ac)]===_0x2db775['FETCH_MISSING']){const _0x3849e9=_0x168b04[_0x581965(0x3c3)];this[_0x581965(0x34d)](_0x3849e9)[_0x581965(0x301)](_0x396870=>{const _0x485be9=_0x581965;_0x417458[_0x485be9(0x34e)]({'cmd':I[_0x485be9(0x2e6)],'code':Vt['OK'],'routeKey':_0x3849e9[_0x485be9(0x3c3)][_0x485be9(0x42f)],'routeType':'','data':{'eventID':_0x2db775[_0x485be9(0x3d4)],'data':{'changesets':_0x396870}}});})[_0x581965(0x1eb)](_0x151f46=>{const _0x4c033b=_0x581965;this[_0x4c033b(0x1a3)][_0x4c033b(0x1c9)](_0x151f46),_0x2ad6c6();});return;}}_0x547585['send'](Mn(_0x168b04));},'close':()=>{const _0x1e1784=_0x103135;_0x547585[_0x1e1784(0x2b8)](),_0x2b6483['dispose']();}},_0x575390;}async[_0x44ade9(0x312)](_0x2a25b9,_0x4f2cdb){const _0x5da352=_0x44ade9;var _0x2a89b5,_0x3f5a0f;const {unitType:_0x3dc384,unitID:_0x563a22,changeset:_0x278199}=_0x4f2cdb[_0x5da352(0x3c3)],_0x5e03bd={'unitID':_0x563a22,'memberID':_0x2a25b9[_0x5da352(0x143)],'type':_0x3dc384,'changeset':_0x224350(_0x278199)},_0x327851=this[_0x5da352(0x251)]['getConfig'](Dn),_0x3a11a9=this[_0x5da352(0x251)][_0x5da352(0x31b)](L),_0x2041e3=jn((_0x3f5a0f=(_0x2a89b5=_0x3a11a9==null?void 0x0:_0x3a11a9['collabSubmitChangesetUrl'])!=null?_0x2a89b5:_0x327851)!=null?_0x3f5a0f:wn,_0x3dc384,_0x563a22);try{await this[_0x5da352(0x2a1)][_0x5da352(0x277)](_0x2041e3,{'body':_0x5e03bd});}catch(_0x35d51d){throw this[_0x5da352(0x1a3)][_0x5da352(0x1c9)](_0x5da352(0x2b0),'submit\x20changeset\x20error!'),_0x35d51d;}}async[_0x44ade9(0x34d)](_0x3522b5){const _0x3b1059=_0x44ade9,{unitID:_0x5e2e81,from:_0x4369bb,to:_0x1df5bf,unitType:_0x3ebb50}=_0x3522b5[_0x3b1059(0x3c3)];return(await this[_0x3b1059(0x367)][_0x3b1059(0x35e)]({'metadata':void 0x0},{'unitID':_0x5e2e81,'type':_0x3ebb50,'from':_0x4369bb,'to':_0x1df5bf}))['changesets'];}};Tt=$n([Re(0x0,_0x180372(_0x53dfff)),Re(0x1,_0x180372(_0x4e064e)),Re(0x2,_0x1fe23f),Re(0x3,_0x4611a9),Re(0x4,_0x23ecb2)],Tt);const xn=_0x44ade9(0x433);function Hn(_0x34b936){const _0xb65f19=_0x44ade9;return JSON[_0xb65f19(0x41d)](_0x34b936)[_0xb65f19(0x192)];}class js{constructor(){const _0x14be81=_0x44ade9;l(this,_0x14be81(0x1e8),new _0x3827c1()),l(this,'commentUpdate$',this[_0x14be81(0x1e8)][_0x14be81(0x458)]());}[_0x44ade9(0x3f3)](_0x24ad22){const _0x3d4876=_0x44ade9;this[_0x3d4876(0x1e8)][_0x3d4876(0x34e)](_0x24ad22);}}var kn=Object[_0x44ade9(0x421)],Bn=Object[_0x44ade9(0x418)],Vn=(_0x2c6913,_0x13bfe4,_0x45adfe,_0x2b874b)=>{for(var _0x479300=_0x2b874b>0x1?void 0x0:_0x2b874b?Bn(_0x13bfe4,_0x45adfe):_0x13bfe4,_0xcc3c1=_0x2c6913['length']-0x1,_0x32b321;_0xcc3c1>=0x0;_0xcc3c1--)(_0x32b321=_0x2c6913[_0xcc3c1])&&(_0x479300=(_0x2b874b?_0x32b321(_0x13bfe4,_0x45adfe,_0x479300):_0x32b321(_0x479300))||_0x479300);return _0x2b874b&&_0x479300&&kn(_0x13bfe4,_0x45adfe,_0x479300),_0x479300;},os=(_0x19d1f5,_0x51759c)=>(_0x238aa5,_0x2ec343)=>_0x51759c(_0x238aa5,_0x2ec343,_0x19d1f5);let ae=class extends _0x17cf1f{constructor(_0x3b55cd,_0x395336){const _0x1e4214=_0x44ade9;super(),l(this,_0x1e4214(0x2cc),new Map()),(this[_0x1e4214(0x470)]=_0x3b55cd,this[_0x1e4214(0x232)]=_0x395336,this['disposeWithMe'](_0x3e741a(_0x527d28(this[_0x1e4214(0x470)][_0x1e4214(0x456)](_0xb0e7e8[_0x1e4214(0x233)])[_0x1e4214(0x2e0)](_0x49da78(_0x2a7b61=>_0x2a7b61[_0x1e4214(0x49d)]())),this[_0x1e4214(0x470)][_0x1e4214(0x456)](_0xb0e7e8[_0x1e4214(0x3b0)])[_0x1e4214(0x2e0)](_0x49da78(_0x591f8e=>_0x591f8e[_0x1e4214(0x49d)]())),this[_0x1e4214(0x470)]['getTypeOfUnitDisposed$'](_0xb0e7e8[_0x1e4214(0x2e7)])[_0x1e4214(0x2e0)](_0x49da78(_0x5509f1=>_0x5509f1[_0x1e4214(0x49d)]())))[_0x1e4214(0x3dc)](_0x198966=>this['_removeRoom'](_0x198966)))));}['setCurrentUser'](_0x53eea8){const _0x51ea13=_0x44ade9;this['_userManagerService'][_0x51ea13(0x168)](_0x53eea8);}[_0x44ade9(0x2d0)](){const _0x4ae38b=_0x44ade9;return this[_0x4ae38b(0x232)][_0x4ae38b(0x2d0)]();}[_0x44ade9(0x426)](_0x18f9ee,_0x793ca0){const _0xb1f2c3=_0x44ade9;let _0x192ec7=this[_0xb1f2c3(0x2cc)][_0xb1f2c3(0x28e)](_0x18f9ee);_0x192ec7||(_0x192ec7=new Fn(),this[_0xb1f2c3(0x2cc)][_0xb1f2c3(0x48c)](_0x18f9ee,_0x192ec7)),_0x192ec7['updateMember'](_0x793ca0);}['removeMember'](_0x2e6dd5,_0x471e44){const _0x360ab7=_0x44ade9,_0x497d56=this[_0x360ab7(0x2cc)][_0x360ab7(0x28e)](_0x2e6dd5);_0x497d56&&_0x497d56['removeMember'](_0x471e44);}[_0x44ade9(0x415)](_0x3cd9ac){return this['_roomMembers']['get'](_0x3cd9ac);}[_0x44ade9(0x30c)](_0x2ca0d9,_0xc2461b){const _0x37045b=_0x44ade9,_0x457871=this['_roomMembers'][_0x37045b(0x28e)](_0x2ca0d9);if(_0x457871)return _0x457871['getMember'](_0xc2461b);}[_0x44ade9(0x220)](_0x1122ef){const _0x18cf79=_0x44ade9,_0x543c99=this['_roomMembers'][_0x18cf79(0x28e)](_0x1122ef);_0x543c99&&(_0x543c99[_0x18cf79(0x2c9)](),this[_0x18cf79(0x2cc)]['delete'](_0x1122ef));}[_0x44ade9(0x2c9)](){const _0x53ea91=_0x44ade9;this[_0x53ea91(0x2cc)]['forEach'](_0x52e2e4=>_0x52e2e4[_0x53ea91(0x2c9)]()),this[_0x53ea91(0x2cc)]['clear']();}};ae=Vn([os(0x0,_0x4c19c5),os(0x1,_0x180372(_0x4df292))],ae);class Fn extends _0x17cf1f{constructor(){const _0x4a8314=_0x44ade9;super(...arguments),l(this,_0x4a8314(0x211),new Map());}[_0x44ade9(0x2c9)](){const _0x2138e1=_0x44ade9;this[_0x2138e1(0x211)][_0x2138e1(0x2d5)]();}[_0x44ade9(0x426)](_0x15f93d){const _0x16f68b=_0x44ade9;this[_0x16f68b(0x211)]['set'](_0x15f93d[_0x16f68b(0x143)],_0x15f93d);}[_0x44ade9(0x45b)](_0x4acfa9){const _0x1e1194=_0x44ade9;this['_members'][_0x1e1194(0x467)](_0x4acfa9);}[_0x44ade9(0x30c)](_0x258491){const _0x3e4ca6=_0x44ade9;return this[_0x3e4ca6(0x211)]['get'](_0x258491);}}var Wn=Object['defineProperty'],Gn=Object[_0x44ade9(0x418)],Yn=(_0x393fb7,_0x1f59a6,_0x365d2a,_0x242230)=>{const _0x3cf907=_0x44ade9;for(var _0x207c0d=_0x242230>0x1?void 0x0:_0x242230?Gn(_0x1f59a6,_0x365d2a):_0x1f59a6,_0x3009c2=_0x393fb7[_0x3cf907(0x192)]-0x1,_0x38b40b;_0x3009c2>=0x0;_0x3009c2--)(_0x38b40b=_0x393fb7[_0x3009c2])&&(_0x207c0d=(_0x242230?_0x38b40b(_0x1f59a6,_0x365d2a,_0x207c0d):_0x38b40b(_0x207c0d))||_0x207c0d);return _0x242230&&_0x207c0d&&Wn(_0x1f59a6,_0x365d2a,_0x207c0d),_0x207c0d;},J=(_0x5d90e7,_0x3b819b)=>(_0x3d0ff7,_0xf282d5)=>_0x3b819b(_0x3d0ff7,_0xf282d5,_0x5d90e7),G=(_0x39a2e4=>(_0x39a2e4[_0x39a2e4[_0x44ade9(0x390)]=0x0]=_0x44ade9(0x390),_0x39a2e4[_0x39a2e4[_0x44ade9(0x293)]=0x1]=_0x44ade9(0x293),_0x39a2e4[_0x39a2e4[_0x44ade9(0x1c6)]=0x2]=_0x44ade9(0x1c6),_0x39a2e4[_0x39a2e4[_0x44ade9(0x19b)]=0x3]=_0x44ade9(0x19b),_0x39a2e4))(G||{});let Rt=class extends _0x1d444{constructor(_0x54ec2d,_0x2d5ed0,_0x20a380,_0x30a760,_0x698589,_0x33f0b9,_0x4e248d,_0x226635,_0x4e6027,_0x405d58){const _0x3b71a1=_0x44ade9;super(),l(this,'_sessionStatus$',new _0x531abd(0x0)),l(this,_0x3b71a1(0x27c),this['_sessionStatus$']['asObservable']()),l(this,_0x3b71a1(0x1c7),new _0x3827c1()),l(this,'event$',this[_0x3b71a1(0x1c7)][_0x3b71a1(0x458)]()),l(this,_0x3b71a1(0x316)),l(this,_0x3b71a1(0x289)),l(this,_0x3b71a1(0x25c)),l(this,'_shouldReportTelemetry',!0x1),l(this,_0x3b71a1(0x13b),null),(this[_0x3b71a1(0x248)]=_0x54ec2d,this[_0x3b71a1(0x1a3)]=_0x20a380,this[_0x3b71a1(0x2c8)]=_0x30a760,this[_0x3b71a1(0x333)]=_0x698589,this[_0x3b71a1(0x251)]=_0x33f0b9,this[_0x3b71a1(0x267)]=_0x4e248d,this[_0x3b71a1(0x450)]=_0x226635,this[_0x3b71a1(0x3d6)]=_0x4e6027,this[_0x3b71a1(0x487)]=_0x405d58,this['_shouldReportTelemetry']=!!this[_0x3b71a1(0x487)],_0x2d5ed0[_0x3b71a1(0x2e0)](_0x275af9(this[_0x3b71a1(0x424)]))[_0x3b71a1(0x3dc)](_0x4b9492=>{const _0x10bdcb=_0x3b71a1;var _0x557a32;typeof _0x4b9492>'u'||(this[_0x10bdcb(0x316)]=_0x4b9492,_0x4b9492?(this[_0x10bdcb(0x360)](_0x4b9492),this[_0x10bdcb(0x289)]=_0x4b9492['message$']['subscribe'](_0x4446e9=>{const _0x291771=_0x10bdcb;_0x4446e9[_0x291771(0x274)]===this[_0x291771(0x248)]&&this[_0x291771(0x279)](_0x4446e9);})):(this[_0x10bdcb(0x16f)](),this[_0x10bdcb(0x42e)][_0x10bdcb(0x34e)](0x2),(_0x557a32=this['_socketMessageSubscription'])==null||_0x557a32[_0x10bdcb(0x205)](),this[_0x10bdcb(0x289)]=null));}),this[_0x3b71a1(0x26d)](this[_0x3b71a1(0x2c8)][_0x3b71a1(0x3e4)](()=>{const _0x388cf4=_0x3b71a1;var _0x21ff5c;(_0x21ff5c=this['_socket'])==null||_0x21ff5c['send']({'cmd':I[_0x388cf4(0x414)],'data':{'roomID':this[_0x388cf4(0x248)]}});})));}get[_0x44ade9(0x3fd)](){const _0x5019ea=_0x44ade9;return this[_0x5019ea(0x42e)][_0x5019ea(0x299)]();}[_0x44ade9(0x31f)](){const _0x4fa2c3=_0x44ade9;var _0x248349,_0x30abb6;return(_0x30abb6=(_0x248349=this['_socket'])==null?void 0x0:_0x248349[_0x4fa2c3(0x143)])!=null?_0x30abb6:null;}[_0x44ade9(0x2c9)](){const _0x145a16=_0x44ade9;super[_0x145a16(0x2c9)](),this[_0x145a16(0x424)][_0x145a16(0x34e)](),this[_0x145a16(0x424)][_0x145a16(0x19c)]();}[_0x44ade9(0x2b8)](){const _0x3f00ec=_0x44ade9;var _0x1568ac,_0x13ee88;this['_throwTelemetryCollaborationNewChangeset'](),(_0x1568ac=this['_socket'])==null||_0x1568ac['send']({'cmd':I[_0x3f00ec(0x414)],'data':{'roomID':this[_0x3f00ec(0x248)]}}),(_0x13ee88=this[_0x3f00ec(0x316)])==null||_0x13ee88['close'](),this['_event$'][_0x3f00ec(0x19c)](),this['_sessionStatus$'][_0x3f00ec(0x19c)](),this[_0x3f00ec(0x2c9)]();}[_0x44ade9(0x279)](_0x289343){const _0x4c2d62=_0x44ade9;_0x289343[_0x4c2d62(0x257)]===I[_0x4c2d62(0x17f)]?this[_0x4c2d62(0x223)](_0x289343):_0x289343[_0x4c2d62(0x257)]===I[_0x4c2d62(0x2e6)]&&this[_0x4c2d62(0x258)](_0x289343);}['_joinRoom'](_0x31b2a7){const _0x1e7478=_0x44ade9;this[_0x1e7478(0x42e)]['next'](0x1),_0x31b2a7[_0x1e7478(0x359)]({'cmd':I[_0x1e7478(0x17f)],'routeKey':this[_0x1e7478(0x248)],'routeType':'','data':{'rooms':[{'roomID':this[_0x1e7478(0x248)]}]}});}['_onJoinRoomEvent'](_0x2d3cf5){const _0x503a91=_0x44ade9;var _0x3af8f0;if(_0x2d3cf5[_0x503a91(0x252)]===Vt[_0x503a91(0x16c)]){this[_0x503a91(0x333)][_0x503a91(0x15d)]({'type':_0x73f118[_0x503a91(0x466)],'content':this[_0x503a91(0x267)]['t'](_0x503a91(0x1f7))}),this['_sessionStatus$'][_0x503a91(0x34e)](0x2);return;}this[_0x503a91(0x42e)][_0x503a91(0x34e)](0x3);const _0x10f093=(_0x3af8f0=_0x2d3cf5[_0x503a91(0x3c3)][_0x503a91(0x42b)][this[_0x503a91(0x248)]])==null?void 0x0:_0x3af8f0['members'];_0x10f093&&_0x10f093[_0x503a91(0x362)](_0x1b5754=>this[_0x503a91(0x450)][_0x503a91(0x426)](this[_0x503a91(0x248)],_0x1b5754));}[_0x44ade9(0x258)](_0x30e231){const _0x2b25cf=_0x44ade9;try{const _0x5c8ef9=_0x30e231[_0x2b25cf(0x3c3)];switch(_0x5c8ef9[_0x2b25cf(0x2ac)]){case _0x2db775[_0x2b25cf(0x37f)]:this['_onUserJoin'](_0x5c8ef9),this['_event$'][_0x2b25cf(0x34e)](_0x5c8ef9);break;case _0x2db775['USERS_LEAVE']:this[_0x2b25cf(0x34c)](_0x5c8ef9),this['_event$'][_0x2b25cf(0x34e)](_0x5c8ef9);break;case _0x2db775['CHANGESET_ACK']:this[_0x2b25cf(0x186)](),this['_clearCollaborationTimeoutTimer'](),this[_0x2b25cf(0x1c7)][_0x2b25cf(0x34e)](_0x5c8ef9);break;case _0x2db775[_0x2b25cf(0x176)]:this[_0x2b25cf(0x1a3)][_0x2b25cf(0x1c9)](_0x2b25cf(0x39b)+JSON[_0x2b25cf(0x41d)](_0x5c8ef9)),this[_0x2b25cf(0x1c7)][_0x2b25cf(0x34e)](_0x5c8ef9);break;case _0x2db775['COMMENT_UPDATE']:this[_0x2b25cf(0x3d6)][_0x2b25cf(0x3f3)](_0x5c8ef9['data']),this[_0x2b25cf(0x1c7)][_0x2b25cf(0x34e)](_0x5c8ef9);break;default:this[_0x2b25cf(0x1c7)][_0x2b25cf(0x34e)](_0x5c8ef9);}}catch(_0x577a38){this[_0x2b25cf(0x1a3)][_0x2b25cf(0x1c9)](_0x577a38,_0x30e231);}}['_onUserJoin'](_0x128d13){const _0x46ec45=_0x44ade9;this[_0x46ec45(0x450)][_0x46ec45(0x426)](this[_0x46ec45(0x248)],_0x128d13[_0x46ec45(0x3c3)]);}[_0x44ade9(0x34c)](_0x551a54){const _0xa9fe66=_0x44ade9;this['_memberService']['removeMember'](this['_unitID'],_0x551a54[_0xa9fe66(0x3c3)][_0xa9fe66(0x143)]);}async['send'](_0x1ac96a,_0x5b0682){const _0x44fe0e=_0x44ade9;if(this['sessionStatus']!==0x3||!this[_0x44fe0e(0x316)])throw new Error(_0x44fe0e(0x245));try{_0x1ac96a[_0x44fe0e(0x2ac)]===_0x2db775[_0x44fe0e(0x356)]&&(this[_0x44fe0e(0x3f2)](),this[_0x44fe0e(0x264)](_0x1ac96a)),this[_0x44fe0e(0x316)][_0x44fe0e(0x359)]({'cmd':I[_0x44fe0e(0x3a8)],'routeKey':_0x5b0682,'routeType':'','data':_0x1ac96a});}catch(_0x200186){this['_logService'][_0x44fe0e(0x1c9)](_0x200186);}}[_0x44ade9(0x3f2)](){const _0x5ccdd9=_0x44ade9;var _0x1e3108;this[_0x5ccdd9(0x25c)]=window[_0x5ccdd9(0x471)](()=>{const _0x2d55be=_0x5ccdd9;this[_0x2d55be(0x25c)]=null,this[_0x2d55be(0x333)][_0x2d55be(0x15d)]({'type':_0x73f118[_0x2d55be(0x3a1)],'content':this[_0x2d55be(0x267)]['t'](_0x2d55be(0x42d))});},(_0x1e3108=this['_configService'][_0x5ccdd9(0x31b)](Us))!=null?_0x1e3108:Ms);}[_0x44ade9(0x24d)](){const _0x2558b3=_0x44ade9;this[_0x2558b3(0x25c)]&&(clearTimeout(this[_0x2558b3(0x25c)]),this['_collaborationTimeoutTimer']=null);}[_0x44ade9(0x264)](_0x4e5154){const _0xe2953e=_0x44ade9;if(!this[_0xe2953e(0x479)])return;const {data:_0x55f6cd}=_0x4e5154,{unitID:_0x730c99,changeset:_0x3dc150}=_0x55f6cd,{mutations:_0xecb351,type:_0x4cd723}=_0x3dc150;this['_telemetryInfo']={'unitId':_0x730c99,'type':_0x4cd723,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':Hn(_0xecb351)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x47bae8=_0x44ade9;if(this[_0x47bae8(0x479)]){if(!this['_telemetryInfo']){this[_0x47bae8(0x1a3)][_0x47bae8(0x1c9)](_0x47bae8(0x2b0),'telemetry\x20info\x20is\x20not\x20initialized');return;}this[_0x47bae8(0x13b)][_0x47bae8(0x39f)]=performance['now'](),this[_0x47bae8(0x13b)]['duration']=this[_0x47bae8(0x13b)][_0x47bae8(0x39f)]-this[_0x47bae8(0x13b)][_0x47bae8(0x406)],this[_0x47bae8(0x487)][_0x47bae8(0x443)](xn,this[_0x47bae8(0x13b)]),this[_0x47bae8(0x13b)]=null;}}[_0x44ade9(0x16f)](){const _0x2481be=_0x44ade9;this[_0x2481be(0x13b)]=null;}};Rt=Yn([J(0x2,_0x4611a9),J(0x3,_0x4d8086),J(0x4,_0x251714),J(0x5,_0x1fe23f),J(0x6,_0x180372(_0x787113)),J(0x7,_0x180372(ae)),J(0x8,_0x180372(js)),J(0x9,_0x4edbf0(_0xf5a62e))],Rt);var Kn=Object[_0x44ade9(0x421)],Xn=Object[_0x44ade9(0x418)],Jn=(_0x4a5ebf,_0x37ddef,_0x720d63,_0x9a6575)=>{const _0x4853d3=_0x44ade9;for(var _0x2e34ee=_0x9a6575>0x1?void 0x0:_0x9a6575?Xn(_0x37ddef,_0x720d63):_0x37ddef,_0x246d2a=_0x4a5ebf[_0x4853d3(0x192)]-0x1,_0x54331c;_0x246d2a>=0x0;_0x246d2a--)(_0x54331c=_0x4a5ebf[_0x246d2a])&&(_0x2e34ee=(_0x9a6575?_0x54331c(_0x37ddef,_0x720d63,_0x2e34ee):_0x54331c(_0x2e34ee))||_0x2e34ee);return _0x9a6575&&_0x2e34ee&&Kn(_0x37ddef,_0x720d63,_0x2e34ee),_0x2e34ee;},de=(_0x4368fc,_0x180326)=>(_0x2bfde3,_0x50e2f4)=>_0x180326(_0x2bfde3,_0x50e2f4,_0x4368fc);let ce=class extends _0x17cf1f{constructor(_0x30eff6,_0x2d8e8e,_0x8d5414,_0x5144fa,_0x2d0668,_0x1c16b0){const _0x172a02=_0x44ade9;super(),l(this,'_socket$',new _0x531abd(void 0x0)),l(this,_0x172a02(0x240),this[_0x172a02(0x3e3)]['asObservable']()),l(this,_0x172a02(0x3d8),null),l(this,_0x172a02(0x1c3),new Map()),l(this,_0x172a02(0x1b9),new _0x531abd(G[_0x172a02(0x390)])),l(this,_0x172a02(0x210),this['_status$'][_0x172a02(0x458)]()),l(this,_0x172a02(0x39e),!0x1),l(this,_0x172a02(0x261)),l(this,_0x172a02(0x373),0x0),l(this,_0x172a02(0x4a7)),l(this,'_timeoutTimer'),(this['_injector']=_0x30eff6,this[_0x172a02(0x267)]=_0x2d8e8e,this[_0x172a02(0x333)]=_0x8d5414,this['_logService']=_0x5144fa,this[_0x172a02(0x251)]=_0x2d0668,this[_0x172a02(0x2c3)]=_0x1c16b0,this[_0x172a02(0x3a9)]());}get[_0x44ade9(0x316)](){const _0x31ff57=_0x44ade9;return this[_0x31ff57(0x3e3)]['getValue']();}['_initEventListeners'](){const _0x3ef654=_0x44ade9;this[_0x3ef654(0x161)](),this[_0x3ef654(0x164)]();}[_0x44ade9(0x2c9)](){const _0x18169c=_0x44ade9;super[_0x18169c(0x2c9)](),this[_0x18169c(0x1c3)][_0x18169c(0x362)](_0x5ea4dd=>_0x5ea4dd[_0x18169c(0x2c9)]()),this['_sessions']['clear'](),this[_0x18169c(0x1b9)][_0x18169c(0x19c)]();}async[_0x44ade9(0x256)](_0x48c189){const _0xff96bb=_0x44ade9;if(this[_0xff96bb(0x1c3)][_0xff96bb(0x22f)](_0x48c189))return this['_sessions'][_0xff96bb(0x28e)](_0x48c189);this[_0xff96bb(0x346)]();const _0x16bb78=this[_0xff96bb(0x181)]['createInstance'](Rt,_0x48c189,this['_socket$'][_0xff96bb(0x458)]());return this[_0xff96bb(0x1c3)][_0xff96bb(0x48c)](_0x48c189,_0x16bb78),_0x16bb78;}[_0x44ade9(0x1b0)](_0x40a629){const _0x566107=_0x44ade9;var _0x5ccd0f;const _0x820bd=this[_0x566107(0x1c3)][_0x566107(0x28e)](_0x40a629);_0x820bd&&(this[_0x566107(0x1c3)][_0x566107(0x467)](_0x40a629),_0x820bd['close']()),this[_0x566107(0x1c3)][_0x566107(0x311)]||(_0x5ccd0f=this[_0x566107(0x316)])==null||_0x5ccd0f[_0x566107(0x2b8)]();}['reconnect'](){const _0x2a09a2=_0x44ade9;this['_retryCount']=0x0,this[_0x2a09a2(0x261)]!=null&&(clearTimeout(this[_0x2a09a2(0x261)]),this[_0x2a09a2(0x261)]=null),this[_0x2a09a2(0x326)]();}[_0x44ade9(0x40b)](){const _0x1ade29=_0x44ade9;var _0x30cd19,_0x4c16b2;const _0x4efa4e=this['_configService']['getConfig'](pn),_0x48b243=this[_0x1ade29(0x251)][_0x1ade29(0x31b)](L),_0x1d3bf9=(_0x4c16b2=(_0x30cd19=_0x48b243==null?void 0x0:_0x48b243[_0x1ade29(0x302)])!=null?_0x30cd19:_0x4efa4e)!=null?_0x4c16b2:vn,_0x15ba18=this[_0x1ade29(0x2c3)][_0x1ade29(0x41c)](_0x1d3bf9);return this[_0x1ade29(0x3d8)]=_0x15ba18,_0x15ba18;}[_0x44ade9(0x346)](){const _0x26ea20=_0x44ade9;var _0x4eb668,_0x999857;try{const _0x4b574b=(_0x999857=(_0x4eb668=this[_0x26ea20(0x316)])!=null?_0x4eb668:this['_candidateSocket'])!=null?_0x999857:this[_0x26ea20(0x40b)]();if(_0x4b574b){const _0x48ee18=_0x4b574b['send'];_0x4b574b[_0x26ea20(0x359)]=_0x3c7225=>(this['_rescheduleHeartbeat'](),_0x48ee18['apply'](_0x4b574b,[_0x3c7225])),_0x4b574b[_0x26ea20(0x441)]['subscribe'](_0x55747a=>this[_0x26ea20(0x1ef)](_0x4b574b,_0x55747a)),_0x4b574b[_0x26ea20(0x341)][_0x26ea20(0x2e0)](_0x590898(0x1))[_0x26ea20(0x3dc)](_0x23910a=>this[_0x26ea20(0x1a3)]['error'](_0x26ea20(0x322),_0x23910a)),_0x4b574b[_0x26ea20(0x482)][_0x26ea20(0x2e0)](_0x590898(0x1))[_0x26ea20(0x3dc)](()=>{this['_onConnectionOpen'](_0x4b574b);}),_0x4b574b[_0x26ea20(0x35b)][_0x26ea20(0x2e0)](_0x590898(0x1))[_0x26ea20(0x3dc)](_0x41e24a=>{const _0x474f2b=_0x26ea20;this['_logService'][_0x474f2b(0x33b)](_0x474f2b(0x3ce),_0x474f2b(0x20a),_0x41e24a),this[_0x474f2b(0x141)]();});}}catch(_0x17774c){this[_0x26ea20(0x1a3)]['error'](_0x17774c),this['_onConnectionFailed']();}}[_0x44ade9(0x397)](_0x861d87){const _0x325e63=_0x44ade9;this['_logService'][_0x325e63(0x33b)]('[CollaborationSessionService]','socket\x20open.'),_0x861d87[_0x325e63(0x359)]({'cmd':I[_0x325e63(0x38f)]}),this[_0x325e63(0x167)]();}[_0x44ade9(0x161)](){const _0x1e01dc=_0x44ade9;window[_0x1e01dc(0x3ec)](_0x1e01dc(0x241),()=>this[_0x1e01dc(0x182)]());}['_onOffline'](){const _0xb63d19=_0x44ade9;this['_socketReady']=!0x1,this[_0xb63d19(0x3d8)]=null,this[_0xb63d19(0x1b9)][_0xb63d19(0x34e)](G[_0xb63d19(0x1c6)]),this[_0xb63d19(0x3e3)][_0xb63d19(0x34e)](null),this[_0xb63d19(0x139)](),this['_clearHeartbeatTimer']();}['_onConnectionFailed'](){const _0x338f07=_0x44ade9;var _0x226e58;this[_0x338f07(0x182)](),this[_0x338f07(0x373)]<((_0x226e58=this[_0x338f07(0x251)]['getConfig'](bn))!=null?_0x226e58:Tn)?(this[_0x338f07(0x333)]['show']({'key':_0x338f07(0x14b),'type':_0x73f118[_0x338f07(0x466)],'content':this[_0x338f07(0x267)]['t'](_0x338f07(0x290))}),this[_0x338f07(0x326)]()):this[_0x338f07(0x333)]['show']({'key':_0x338f07(0x14b),'type':_0x73f118[_0x338f07(0x3a1)],'content':this[_0x338f07(0x267)]['t'](_0x338f07(0x204))});}['_listenToOnlineEvent'](){const _0x1c34f7=_0x44ade9,_0x5e1430=()=>{const _0x2f8104=_0x3787;this[_0x2f8104(0x316)]||this[_0x2f8104(0x19e)]();},_0x42699d=()=>{const _0x3d2c53=_0x3787;this[_0x3d2c53(0x316)]||document[_0x3d2c53(0x3d5)]===_0x3d2c53(0x214)||this['reconnect']();};window['addEventListener']('online',_0x5e1430),document[_0x1c34f7(0x3ec)](_0x1c34f7(0x147),_0x42699d);}[_0x44ade9(0x326)](){const _0x1c118b=_0x44ade9;var _0x4b2a16;const _0x9b9990=this[_0x1c118b(0x373)],_0x4dad5d=this[_0x1c118b(0x251)][_0x1c118b(0x31b)](L),_0x19c6b7=_0x9b9990===0x0?0x0:((_0x4b2a16=_0x4dad5d==null?void 0x0:_0x4dad5d[_0x1c118b(0x224)])!=null?_0x4b2a16:Cn)*0x2**_0x9b9990;this[_0x1c118b(0x261)]=window[_0x1c118b(0x471)](()=>{const _0x56d84b=_0x1c118b;clearTimeout(this[_0x56d84b(0x261)]),this['_retryConnectingTimer']=null,this[_0x56d84b(0x346)]();},_0x19c6b7),this[_0x1c118b(0x373)]+=0x1;}['_onMessage'](_0x49ffad,_0x5d0e4b){const _0x183d5f=_0x44ade9,{cmd:_0x44b626}=_0x5d0e4b;_0x44b626===I[_0x183d5f(0x38f)]&&!this['_socketReady']&&(_0x49ffad[_0x183d5f(0x143)]=_0x5d0e4b['data'][_0x183d5f(0x143)],this['_socket$'][_0x183d5f(0x34e)](_0x49ffad),this['_status$'][_0x183d5f(0x34e)](G[_0x183d5f(0x19b)]),this[_0x183d5f(0x39e)]=!0x0,this[_0x183d5f(0x3d8)]=null),_0x44b626===I[_0x183d5f(0x3c9)]&&this['_clearTimeoutTimer'](),this[_0x183d5f(0x167)]();}['_rescheduleHeartbeat'](){const _0x1b473b=_0x44ade9;var _0x48ae92;this[_0x1b473b(0x429)](),this['_sendHeartbeatTimer']=window['setTimeout'](()=>this[_0x1b473b(0x378)](),(_0x48ae92=this[_0x1b473b(0x251)]['getConfig'](In))!=null?_0x48ae92:En);}['_sendHeartbeat'](){const _0xa59bcc=_0x44ade9;this[_0xa59bcc(0x316)][_0xa59bcc(0x359)]({'cmd':I['HEARTBEAT']}),this[_0xa59bcc(0x2d2)]();}['_waitForHeartbeatResponse'](){const _0x5ea3a8=_0x44ade9;var _0x3a0c8c;this[_0x5ea3a8(0x21b)]=window[_0x5ea3a8(0x471)](()=>this['_onConnectionFailed'](),(_0x3a0c8c=this[_0x5ea3a8(0x251)][_0x5ea3a8(0x31b)](Us))!=null?_0x3a0c8c:Ms);}[_0x44ade9(0x429)](){const _0x589a67=_0x44ade9;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x589a67(0x4a7)]),this['_sendHeartbeatTimer']=null);}['_clearTimeoutTimer'](){this['_timeoutTimer']!=null&&(clearTimeout(this['_timeoutTimer']),this['_timeoutTimer']=null);}};ce=Jn([de(0x0,_0x180372(_0x15d871)),de(0x1,_0x180372(_0x787113)),de(0x2,_0x251714),de(0x3,_0x4611a9),de(0x4,_0x1fe23f),de(0x5,$s)],ce);var qn=Object[_0x44ade9(0x421)],zn=Object['getOwnPropertyDescriptor'],Zn=(_0xb06dd,_0x183869,_0x2af8b7,_0x451958)=>{const _0x3cbfb9=_0x44ade9;for(var _0x4f78b6=_0x451958>0x1?void 0x0:_0x451958?zn(_0x183869,_0x2af8b7):_0x183869,_0x564e97=_0xb06dd[_0x3cbfb9(0x192)]-0x1,_0x14afb9;_0x564e97>=0x0;_0x564e97--)(_0x14afb9=_0xb06dd[_0x564e97])&&(_0x4f78b6=(_0x451958?_0x14afb9(_0x183869,_0x2af8b7,_0x4f78b6):_0x14afb9(_0x4f78b6))||_0x4f78b6);return _0x451958&&_0x4f78b6&&qn(_0x183869,_0x2af8b7,_0x4f78b6),_0x4f78b6;},_t=(_0x53f4e9,_0x26a6fc)=>(_0x3a58d1,_0x2d62ae)=>_0x26a6fc(_0x3a58d1,_0x2d62ae,_0x53f4e9);let Ze=class{constructor(_0x500263,_0x1a8c0d,_0x48d411){const _0xcb155d=_0x44ade9;this[_0xcb155d(0x181)]=_0x500263,this[_0xcb155d(0x16a)]=_0x1a8c0d,this[_0xcb155d(0x268)]=_0x48d411;}[_0x44ade9(0x3b3)](_0x45fd31){const _0x21dbda=_0x44ade9;this[_0x21dbda(0x2bf)](_0x45fd31),this[_0x21dbda(0x1d3)](_0x45fd31);}['transformRemoteChangeset'](_0x37e2dc){const _0x666a69=_0x44ade9,{unitID:_0x49ba16}=_0x37e2dc,_0x5cd694=this['_renderManagerService']['getRenderById'](_0x49ba16)[_0x666a69(0x449)](_0x1301a3),{redoCache:_0x46da25}=_0x5cd694[_0x666a69(0x3ca)]();if(_0x46da25[_0x666a69(0x192)]===0x0)return _0x37e2dc;let _0x56c58b=_0x110341[_0x666a69(0x401)](_0x37e2dc[_0x666a69(0x230)][0x0]);for(let _0x9a628d=0x0;_0x9a628d<_0x46da25[_0x666a69(0x192)];_0x9a628d++){const _0x94cf9f={'id':_0x666a69(0x41a),'params':{..._0x46da25[_0x9a628d]}},_0x575b25=this[_0x666a69(0x16a)][_0x666a69(0x2b5)](_0x56c58b,_0x94cf9f,!0x1);if(_0x458f83(_0x575b25))throw _0x575b25['error'];_0x56c58b=_0x575b25[_0x666a69(0x295)];}return{..._0x110341[_0x666a69(0x401)](_0x37e2dc),'mutations':[_0x56c58b]};}[_0x44ade9(0x2bf)](_0x13a09b){const _0x4aff65=_0x44ade9,{unitID:_0x4e45b7}=_0x13a09b,_0x1a950a=this['_renderManagerService'][_0x4aff65(0x39c)](_0x4e45b7)[_0x4aff65(0x449)](_0x1301a3),{undoCache:_0x487441,redoCache:_0x40630f}=_0x1a950a['getUndoRedoMutationParamsCache']();if(_0x487441[_0x4aff65(0x192)]===0x0||_0x40630f['length']===0x0)return;const _0x26ec02=[],_0x4b1fef=[];let _0xd3be6e=_0x110341[_0x4aff65(0x401)](_0x13a09b['mutations'][0x0]),_0x28a74b=_0x110341[_0x4aff65(0x401)](_0x13a09b['mutations'][0x0]);for(let _0x1edcfb=_0x487441[_0x4aff65(0x192)]-0x1;_0x1edcfb>=0x0;_0x1edcfb--){const _0x3fa09c={'id':_0x4aff65(0x41a),'params':{..._0x487441[_0x1edcfb]}},_0x4d0b30={'id':_0x4aff65(0x41a),'params':{..._0x40630f[_0x1edcfb]}},_0x272b57=this[_0x4aff65(0x16a)][_0x4aff65(0x2b5)](_0xd3be6e,_0x3fa09c,!0x1),_0x38542b=this['_transformService'][_0x4aff65(0x2b5)](_0x28a74b,_0x4d0b30,!0x1);if(_0x458f83(_0x272b57))throw _0x272b57['error'];if(_0x458f83(_0x38542b))throw _0x38542b[_0x4aff65(0x1c9)];_0x26ec02[_0x4aff65(0x36d)](_0x272b57['m2Prime'][_0x4aff65(0x1d5)]),_0x4b1fef[_0x4aff65(0x36d)](_0x38542b[_0x4aff65(0x483)][_0x4aff65(0x1d5)]),_0xd3be6e=_0x272b57[_0x4aff65(0x295)],_0x28a74b=_0x38542b[_0x4aff65(0x295)];}_0x1a950a['setUndoRedoMutationParamsCache']({'undoCache':_0x26ec02,'redoCache':_0x4b1fef});}[_0x44ade9(0x1d3)](_0x56dd94){const _0x126955=_0x44ade9,{unitID:_0x33ab62}=_0x56dd94,_0x283737=this[_0x126955(0x268)][_0x126955(0x39c)](_0x33ab62)['with'](_0x1301a3),_0x5d3375=_0x283737['getActiveRange']();if(_0x5d3375==null)return;const _0x23bbc3=[{'id':_0x126955(0x41a),'params':{'unitId':_0x56dd94[_0x126955(0x42f)],'actions':null,'textRanges':[_0x5d3375]}}],_0x397bc7=this[_0x126955(0x16a)][_0x126955(0x169)](_0x56dd94,_0x23bbc3);if(!_0x24ef98(_0x397bc7))throw _0x397bc7[_0x126955(0x1c9)];const _0x5175e1=_0x397bc7['m2Prime'][0x0][_0x126955(0x1d5)][_0x126955(0x2b9)];Array[_0x126955(0x254)](_0x5175e1)&&_0x5175e1[_0x126955(0x192)]&&_0x283737['setActiveRange'](_0x5175e1[0x0]);}};Ze=Zn([_t(0x0,_0x180372(_0x15d871)),_t(0x1,_0x446e46),_t(0x2,_0xc776ff)],Ze);var Qn=Object[_0x44ade9(0x421)],er=Object[_0x44ade9(0x418)],tr=(_0x8473b0,_0x38da6f,_0x56ca78,_0x28b519)=>{for(var _0x3b6ae6=_0x28b519>0x1?void 0x0:_0x28b519?er(_0x38da6f,_0x56ca78):_0x38da6f,_0x544ba4=_0x8473b0['length']-0x1,_0x48959b;_0x544ba4>=0x0;_0x544ba4--)(_0x48959b=_0x8473b0[_0x544ba4])&&(_0x3b6ae6=(_0x28b519?_0x48959b(_0x38da6f,_0x56ca78,_0x3b6ae6):_0x48959b(_0x3b6ae6))||_0x3b6ae6);return _0x28b519&&_0x3b6ae6&&Qn(_0x38da6f,_0x56ca78,_0x3b6ae6),_0x3b6ae6;},Oe=(_0x1aac80,_0x38c58d)=>(_0x208ddc,_0x208e13)=>_0x38c58d(_0x208ddc,_0x208e13,_0x1aac80);let D=class extends _0x17cf1f{constructor(_0x4f32,_0x4ba384,_0x5c235e,_0x3c660e,_0x203e07){const _0x2aa64c=_0x44ade9;super(),l(this,_0x2aa64c(0x3f8),new Map()),l(this,'_saveTaskMap',new Map()),l(this,_0x2aa64c(0x24f),!0x1),(this[_0x2aa64c(0x251)]=_0x4f32,this['_localStorageService']=_0x4ba384,this['_beforeCloseService']=_0x5c235e,this[_0x2aa64c(0x267)]=_0x3c660e,this[_0x2aa64c(0x3fa)]=_0x203e07,this['_setupBeforeClosingHandler']());}[_0x44ade9(0x403)](){const _0x522b78=_0x44ade9;this[_0x522b78(0x24f)]=!0x0;}[_0x44ade9(0x1a2)](){const _0xf36b48=_0x44ade9;this[_0xf36b48(0x24f)]=!0x1;}[_0x44ade9(0x2c9)](){const _0x513a7c=_0x44ade9;this[_0x513a7c(0x364)]()['then'](()=>super['dispose']());}async[_0x44ade9(0x45f)](_0x36a85f){const _0x4ee166=_0x44ade9;return this[_0x4ee166(0x24f)]?null:this[_0x4ee166(0x22e)][_0x4ee166(0x335)](as(_0x36a85f));}async[_0x44ade9(0x2ae)](_0x1c7009,_0x4a9c9d){const _0x40557f=_0x44ade9;return!!this[_0x40557f(0x22e)][_0x40557f(0x15f)](_0x1c7009,_0x4a9c9d);}[_0x44ade9(0x3b7)](_0x4bb450,_0xf4a277,_0x3bf880,_0x47b01d){const _0x749fbe=_0x44ade9,_0x371d79=this[_0x749fbe(0x3fa)]['getCurrentRevOfUnit'](_0x4bb450);this[_0x749fbe(0x3f8)][_0x749fbe(0x48c)](_0x4bb450,{'unitID':_0x4bb450,'type':_0xf4a277,'awaitingChangeset':_0x3bf880,'mutations':_0x47b01d,'rev':_0x371d79}),this[_0x749fbe(0x15c)]['has'](_0x4bb450)||this[_0x749fbe(0x1c4)](_0x4bb450);}[_0x44ade9(0x1c4)](_0x357312){const _0x1d8aff=_0x44ade9,_0x6124a2=this[_0x1d8aff(0x196)]();_0x6124a2===0x0?this[_0x1d8aff(0x444)](_0x357312):this[_0x1d8aff(0x15c)][_0x1d8aff(0x48c)](_0x357312,setTimeout(()=>this['_saveCache'](_0x357312),_0x6124a2));}['_getSaveTimeout'](){const _0x107b15=_0x44ade9;var _0x331332;return(_0x331332=this[_0x107b15(0x251)][_0x107b15(0x31b)](Rn))!=null?_0x331332:On;}[_0x44ade9(0x444)](_0x482460){const _0x30dfac=_0x44ade9,_0x540d9e=this['_saveTaskMap'][_0x30dfac(0x28e)](_0x482460);return _0x540d9e!==void 0x0&&window['clearTimeout'](_0x540d9e),this[_0x30dfac(0x22e)][_0x30dfac(0x15f)](as(_0x482460),this[_0x30dfac(0x3f8)][_0x30dfac(0x28e)](_0x482460))[_0x30dfac(0x301)](()=>this[_0x30dfac(0x15c)]['delete'](_0x482460));}async['exhaustSavingTask'](){const _0x297e8a=_0x44ade9,_0x490cb0=[];this[_0x297e8a(0x15c)][_0x297e8a(0x362)]((_0x183e8f,_0x42b4f7)=>{const _0x518d1e=_0x297e8a;window[_0x518d1e(0x30e)](_0x183e8f),_0x490cb0[_0x518d1e(0x23e)](this['_saveCache'](_0x42b4f7)[_0x518d1e(0x301)](()=>{const _0x1f71e6=_0x518d1e;this[_0x1f71e6(0x15c)][_0x1f71e6(0x467)](_0x42b4f7);}));}),await Promise[_0x297e8a(0x3f5)](_0x490cb0);}[_0x44ade9(0x275)](){const _0x104d22=_0x44ade9;this['disposeWithMe'](this[_0x104d22(0x2c8)][_0x104d22(0x497)](()=>{const _0xed66a0=_0x104d22;if(this['_saveTaskMap']['size'])return this[_0xed66a0(0x267)]['t']('collaboration-client.offline-data-not-saved');}));}};D=tr([Oe(0x0,_0x1fe23f),Oe(0x1,_0x1364f5),Oe(0x2,_0x4d8086),Oe(0x3,_0x180372(_0x787113)),Oe(0x4,_0x180372(_0x2123f3))],D);function as(_0x2b1bde){const _0x516560=_0x44ade9;return _0x516560(0x3d2)+_0x2b1bde;}var sr=Object[_0x44ade9(0x421)],ir=Object[_0x44ade9(0x418)],nr=(_0x44b0c5,_0x5b60a4,_0x1958f1,_0x507c01)=>{const _0x45aa2d=_0x44ade9;for(var _0x4720a0=_0x507c01>0x1?void 0x0:_0x507c01?ir(_0x5b60a4,_0x1958f1):_0x5b60a4,_0xd24172=_0x44b0c5[_0x45aa2d(0x192)]-0x1,_0x2993f3;_0xd24172>=0x0;_0xd24172--)(_0x2993f3=_0x44b0c5[_0xd24172])&&(_0x4720a0=(_0x507c01?_0x2993f3(_0x5b60a4,_0x1958f1,_0x4720a0):_0x2993f3(_0x4720a0))||_0x4720a0);return _0x507c01&&_0x4720a0&&sr(_0x5b60a4,_0x1958f1,_0x4720a0),_0x4720a0;},ut=(_0x50e419,_0x25c46c)=>(_0x2d0773,_0x29d3cc)=>_0x25c46c(_0x2d0773,_0x29d3cc,_0x50e419);function rr(_0x3bde8f){const _0x140ddf=_0x44ade9,{unitID:_0x252baa,mutations:_0x3d2204}=_0x3bde8f;return{'unitId':_0x252baa,'subUnitId':_0x3d2204[0x0][_0x140ddf(0x1d5)]['subUnitId']};}let Qe=class{constructor(_0x5cfeb4,_0xf7ed68,_0x10ec34){const _0x347641=_0x44ade9;this[_0x347641(0x181)]=_0x5cfeb4,this[_0x347641(0x16a)]=_0xf7ed68,this['_instanceService']=_0x10ec34;}[_0x44ade9(0x46a)](_0x2226d6){const _0x2835bd=_0x44ade9;var _0x3c1959,_0x35512e,_0xd05bf,_0x4146d8;const _0x2f3420=this[_0x2835bd(0x181)]['get'](_0x472097),{unitId:_0x3d4541,subUnitId:_0x5ef196}=rr(_0x2226d6),_0x42e44a=_0x2f3420[_0x2835bd(0x46c)](_0x3d4541)[_0x2835bd(0x25b)](),_0x45be60=(_0x35512e=(_0x3c1959=this['_instanceService']['getUnit'](_0x3d4541))==null?void 0x0:_0x3c1959['getActiveSheet']())==null?void 0x0:_0x35512e['getSheetId']();if(_0x42e44a['length']===0x0||!_0x3d4541||!_0x5ef196)return;const _0x5d3291=[{'id':_0x152456['id'],'params':{'unitId':_0x3d4541,'subUnitId':_0x45be60,'selections':_0x110341[_0x2835bd(0x401)](_0x42e44a)}}],_0x4f9bd2=this[_0x2835bd(0x16a)][_0x2835bd(0x169)](_0x2226d6,_0x5d3291);if(!_0x24ef98(_0x4f9bd2))throw _0x4f9bd2[_0x2835bd(0x1c9)];const _0x5dd0c2=(_0x4146d8=(_0xd05bf=_0x4f9bd2['m2Prime'][0x0])==null?void 0x0:_0xd05bf[_0x2835bd(0x1d5)])==null?void 0x0:_0x4146d8[_0x2835bd(0x265)];Array[_0x2835bd(0x254)](_0x5dd0c2)&&_0x5dd0c2['length']&&this[_0x2835bd(0x181)][_0x2835bd(0x28e)](_0x2bc808)[_0x2835bd(0x323)](_0x152456['id'],{'unitId':_0x3d4541,'subUnitId':_0x45be60,'selections':_0x5dd0c2});}};Qe=nr([ut(0x0,_0x180372(_0x15d871)),ut(0x1,_0x446e46),ut(0x2,_0x4c19c5)],Qe);const nt=_0x8e889b('univer-pro.collaboration-client.single-active-unit-service');var xs=(_0xd93e9b=>(_0xd93e9b[_0xd93e9b[_0x44ade9(0x30b)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0xd93e9b[_0xd93e9b[_0x44ade9(0x46e)]=0x1]=_0x44ade9(0x46e),_0xd93e9b))(xs||{});const cs=0x7530,hs=_0x44ade9(0x1b1);class or extends _0x17cf1f{constructor(){const _0x276031=_0x44ade9;super(),l(this,'_id',_0x110341[_0x276031(0x31d)]()),l(this,_0x276031(0x25f),new Set()),l(this,_0x276031(0x30a),new Map()),l(this,'_heartbeatTimer',null),l(this,_0x276031(0x1a4),new Map()),l(this,_0x276031(0x291),new Map()),this['_init']();}[_0x44ade9(0x2c9)](){const _0x234c5d=_0x44ade9;super[_0x234c5d(0x2c9)](),this[_0x234c5d(0x1a4)][_0x234c5d(0x362)]((_0x2ac118,_0x5cddea)=>this[_0x234c5d(0x36e)](_0x5cddea)),this['_heartbeatTimer']&&window[_0x234c5d(0x381)](this[_0x234c5d(0x194)]);}[_0x44ade9(0x398)](_0x566471){const _0x153032=_0x44ade9;return this[_0x153032(0x26b)](_0x566471)[_0x153032(0x2e0)](_0x49184f());}[_0x44ade9(0x235)](_0x54b763){const _0x882972=_0x44ade9;this[_0x882972(0x25f)][_0x882972(0x311)]===0x0&&this[_0x882972(0x4a1)](),this['_selfUnitIDs'][_0x882972(0x377)](_0x54b763),this[_0x882972(0x425)]({'type':0x0,'memberID':this[_0x882972(0x40e)],'unitIDs':[_0x54b763],'isForwarded':!0x1});}[_0x44ade9(0x156)](_0x2d1cfc){const _0x20edfb=_0x44ade9;this['_selfUnitIDs'][_0x20edfb(0x467)](_0x2d1cfc),this['_selfUnitIDs'][_0x20edfb(0x311)]===0x0&&this[_0x20edfb(0x194)]&&window[_0x20edfb(0x381)](this[_0x20edfb(0x194)]);}[_0x44ade9(0x2af)](){const _0x380a62=_0x44ade9;this[_0x380a62(0x26d)](_0x3e741a(_0x3b552f(window,_0x380a62(0x146))['subscribe'](_0x466a3a=>{const _0x128b56=_0x380a62;if(_0x466a3a['key']!==hs||!_0x466a3a[_0x128b56(0x344)])return;const _0x4495f2=JSON['parse'](_0x466a3a[_0x128b56(0x344)]);this[_0x128b56(0x345)](_0x4495f2);}))),window[_0x380a62(0x3ec)](_0x380a62(0x22c),()=>this['_send']({'type':0x1,'memberID':this[_0x380a62(0x40e)],'unitIDs':Array[_0x380a62(0x2cd)](this[_0x380a62(0x25f)])}));}[_0x44ade9(0x345)](_0x33cab0){const _0x1a9f5e=_0x44ade9;switch(_0x33cab0[_0x1a9f5e(0x150)]){case 0x0:this[_0x1a9f5e(0x1d8)](_0x33cab0);break;case 0x1:this['_handleLeaveEvent'](_0x33cab0);break;case 0x2:this[_0x1a9f5e(0x157)](_0x33cab0);break;}}['_handleJoinEvent'](_0x31b886){const _0xb88741=_0x44ade9,{unitIDs:_0x51477d,memberID:_0x4e6e3d,isForwarded:_0x340747}=_0x31b886;_0x51477d['forEach'](_0x4a166a=>{const _0x5171a7=_0x3787;if(!_0x340747&&this[_0x5171a7(0x30a)]['has'](_0x4a166a)&&this['_ensureSubject'](_0x4a166a)[_0x5171a7(0x34e)](0x1),!this[_0x5171a7(0x30a)][_0x5171a7(0x22f)](_0x4a166a)||!this[_0x5171a7(0x30a)][_0x5171a7(0x28e)](_0x4a166a)[_0x5171a7(0x22f)](_0x4e6e3d)){const _0x2fea69=this[_0x5171a7(0x30a)][_0x5171a7(0x28e)](_0x4a166a)||new Set();_0x2fea69['add'](_0x4e6e3d),this['_unitOnClients']['set'](_0x4a166a,_0x2fea69),this[_0x5171a7(0x242)](_0x4e6e3d);}}),_0x340747||this[_0xb88741(0x425)]({'type':0x0,'memberID':this[_0xb88741(0x40e)],'unitIDs':[...this[_0xb88741(0x25f)]],'isForwarded':!0x0});}[_0x44ade9(0x242)](_0x35803d){const _0x539ec4=_0x44ade9;this[_0x539ec4(0x36e)](_0x35803d);const _0xf360e9=window[_0x539ec4(0x471)](()=>{const _0x40ee21=_0x539ec4;this[_0x40ee21(0x30a)]['forEach'](_0x1f35cd=>{const _0xc6fecf=_0x40ee21;_0x1f35cd[_0xc6fecf(0x467)](_0x35803d);});},cs*0x2);this['_clearOtherTimers'][_0x539ec4(0x48c)](_0x35803d,_0xf360e9);}[_0x44ade9(0x36e)](_0xd7c5ed){const _0x3c5ac5=_0x44ade9;if(this['_clearOtherTimers'][_0x3c5ac5(0x22f)](_0xd7c5ed)){const _0x39d1e8=this[_0x3c5ac5(0x1a4)]['get'](_0xd7c5ed);_0x39d1e8&&window[_0x3c5ac5(0x30e)](_0x39d1e8),this[_0x3c5ac5(0x1a4)][_0x3c5ac5(0x48c)](_0xd7c5ed,null);}}[_0x44ade9(0x14c)](_0x5573a0){const _0x4b3272=_0x44ade9,{memberID:_0x1d0892,unitIDs:_0x4b9de2}=_0x5573a0;_0x4b9de2[_0x4b3272(0x362)](_0x185689=>{const _0x261045=_0x4b3272;var _0x1da5ff;const _0x3a868b=this[_0x261045(0x30a)]['get'](_0x185689);_0x3a868b&&(_0x3a868b[_0x261045(0x467)](_0x1d0892),(_0x1da5ff=this['_ensureSubject'](_0x185689))==null||_0x1da5ff[_0x261045(0x34e)](_0x3a868b[_0x261045(0x311)]===0x0?0x0:0x1));}),this[_0x4b3272(0x36e)](_0x1d0892);}[_0x44ade9(0x157)](_0x2c553b){const _0x22ca32=_0x44ade9;this[_0x22ca32(0x242)](_0x2c553b[_0x22ca32(0x143)]);}['_send'](_0x1d5eee){const _0x2623e5=_0x44ade9;localStorage[_0x2623e5(0x15f)](hs,JSON[_0x2623e5(0x41d)](_0x1d5eee));}[_0x44ade9(0x4a1)](){const _0x4a5b95=_0x44ade9;this[_0x4a5b95(0x194)]=window[_0x4a5b95(0x480)](()=>{this['_send']({'type':0x2,'memberID':this['_id']});},cs);}[_0x44ade9(0x26b)](_0x4735e0){const _0x1f3b08=_0x44ade9;return this['_unitStatus']['has'](_0x4735e0)||this[_0x1f3b08(0x291)][_0x1f3b08(0x48c)](_0x4735e0,new _0x531abd(0x0)),this['_unitStatus'][_0x1f3b08(0x28e)](_0x4735e0);}}function Hs(_0x5bdc9d){let _0x3a0920='';for(const _0x46cb8e of _0x5bdc9d){const {startOffset:_0x4dd525,endOffset:_0x4f8a61,isActive:_0x1ee93f}=_0x46cb8e;_0x3a0920['length']&&(_0x3a0920+=','),_0x3a0920+=_0x4dd525+':'+_0x4f8a61+':'+(_0x1ee93f?'1':'0');}return _0x3a0920;}function ar(_0x51b86b){const _0x4d6b41=_0x44ade9,_0x44785a=_0x51b86b[_0x4d6b41(0x3c0)](','),_0x5d2639=[];for(const _0x161a2f of _0x44785a){const [_0x1acaa7,_0x37c958,_0x5bc85e]=_0x161a2f[_0x4d6b41(0x3c0)](':');_0x5d2639[_0x4d6b41(0x23e)]({'startOffset':Number(_0x1acaa7),'endOffset':Number(_0x37c958),'collapsed':_0x1acaa7===_0x37c958,'isActive':_0x5bc85e==='1'});}return _0x5d2639['some'](_0x5b2466=>_0x5b2466[_0x4d6b41(0x29d)])||(_0x5d2639[0x0][_0x4d6b41(0x29d)]=!0x0),_0x5d2639;}class Ft extends _0x1d444{constructor(){const _0x159b7e=_0x44ade9;super(...arguments),l(this,_0x159b7e(0x284),new _0x531abd(null)),l(this,_0x159b7e(0x2e8),this[_0x159b7e(0x284)][_0x159b7e(0x458)]());}[_0x44ade9(0x2bb)](_0x163c64){const _0x2e335b=_0x44ade9,{unitID:_0x2bb5bf,memberID:_0x38bc6a,textRanges:_0x263695}=_0x163c64,_0xf297ac=Hs(_0x263695),_0x2cc922={'unitID':_0x2bb5bf,'memberID':_0x38bc6a,'selection':_0xf297ac};this[_0x2e335b(0x284)][_0x2e335b(0x34e)](_0x2cc922);}}var cr=Object['defineProperty'],hr=Object[_0x44ade9(0x418)],lr=(_0x3c4ca5,_0xff1528,_0x361243,_0x4e1fcc)=>{const _0x45356f=_0x44ade9;for(var _0x1345a8=_0x4e1fcc>0x1?void 0x0:_0x4e1fcc?hr(_0xff1528,_0x361243):_0xff1528,_0x2d34a1=_0x3c4ca5[_0x45356f(0x192)]-0x1,_0x16ffab;_0x2d34a1>=0x0;_0x2d34a1--)(_0x16ffab=_0x3c4ca5[_0x2d34a1])&&(_0x1345a8=(_0x4e1fcc?_0x16ffab(_0xff1528,_0x361243,_0x1345a8):_0x16ffab(_0x1345a8))||_0x1345a8);return _0x4e1fcc&&_0x1345a8&&cr(_0xff1528,_0x361243,_0x1345a8),_0x1345a8;},ls=(_0x2a1bac,_0x567669)=>(_0x1d739e,_0x1e20e8)=>_0x567669(_0x1d739e,_0x1e20e8,_0x2a1bac);let et=class{constructor(_0x41c1ed,_0x311737){this['_injector']=_0x41c1ed,this['_transformService']=_0x311737;}[_0x44ade9(0x46a)](_0x3f0667){const _0x4878e1=_0x44ade9;var _0x3fef7f;const _0x42e375=this[_0x4878e1(0x181)][_0x4878e1(0x28e)](_0x56b8b2),_0x415b34=(_0x3fef7f=_0x42e375[_0x4878e1(0x3bd)]())!=null?_0x3fef7f:[];if(_0x415b34['length']===0x0)return;const _0xc912f5=[{'id':_0x4878e1(0x41a),'params':{'unitId':_0x3f0667[_0x4878e1(0x42f)],'actions':null,'textRanges':_0x415b34}}],_0x157eaa=this[_0x4878e1(0x16a)][_0x4878e1(0x169)](_0x3f0667,_0xc912f5);if(!_0x24ef98(_0x157eaa))throw _0x157eaa['error'];const _0x4ccc3d=_0x157eaa[_0x4878e1(0x483)][0x0]['params'][_0x4878e1(0x2b9)];Array['isArray'](_0x4ccc3d)&&_0x4ccc3d[_0x4878e1(0x192)]&&_0x42e375[_0x4878e1(0x298)](_0x4ccc3d,!0x1);}};et=lr([ls(0x0,_0x180372(_0x15d871)),ls(0x1,_0x446e46)],et);const _r=new Set([_0x1f929a['id']]);function _s(_0x3aefc1,_0xa30229,_0x12c67f,_0x80113c,_0x58ef99){const _0x3746fd=_0x44ade9;var _0x300879,_0x606d59,_0x1aa93a,_0x2043e7;const _0x4bdf69=[];for(const _0x121f93 of _0x3aefc1)if(_r[_0x3746fd(0x22f)](_0x121f93['id'])){if(_0x4bdf69[_0x3746fd(0x192)]>0x0)break;_0x4bdf69['push'](_0x121f93);break;}else _0x4bdf69[_0x3746fd(0x23e)](_0x121f93);const _0x502c3a=(_0x606d59=(_0x300879=_0x58ef99['getCurrentUser']())==null?void 0x0:_0x300879[_0x3746fd(0x455)])!=null?_0x606d59:_0x3746fd(0x353),_0x21fff7=(_0x2043e7=(_0x1aa93a=_0x58ef99[_0x3746fd(0x2d0)]())==null?void 0x0:_0x1aa93a[_0x3746fd(0x143)])!=null?_0x2043e7:'unknown';return{'changeset':{'unitID':_0xa30229,'type':_0x469599(_0x12c67f[_0x3746fd(0x48d)](_0xa30229)),'baseRev':_0x80113c[_0x3746fd(0x409)](_0xa30229),'revision':0x0,'userID':_0x502c3a,'memberID':_0x21fff7,'mutations':_0x4bdf69},'pendingMutations':_0x3aefc1[_0x3746fd(0x1ac)](_0x4bdf69[_0x3746fd(0x192)])};}function ur(_0x340e4f,_0x3ed5b6,_0x5c358b,_0x1dbf65,_0xa1f0fa){const _0x9c3969=_0x44ade9;var _0x270789,_0x278190,_0x558ac4,_0x1f4e93;const _0x45749f=[_0x340e4f[_0x9c3969(0x2e4)]((_0x36a244,_0x3964fa)=>{const _0x2f8409=_0x9c3969;var _0x482167;const {id:_0x3e8ea6}=_0x36a244,{id:_0x57ed0b,type:_0x48131f}=_0x3964fa,_0x41618c=(_0x482167=_0x36a244[_0x2f8409(0x1d5)])!=null?_0x482167:{'actions':null},_0x5bcd2d=_0x3964fa[_0x2f8409(0x1d5)];if(_0x3e8ea6&&_0x3e8ea6!==_0x57ed0b)throw new Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x3e8ea6+_0x2f8409(0x31a)+_0x57ed0b+'.');return{..._0x36a244,'id':_0x57ed0b,'type':_0x48131f,'params':{'unitId':_0x5bcd2d[_0x2f8409(0x288)],'textRanges':_0x5bcd2d['textRanges'],'actions':_0xe8b1b1['compose'](_0x41618c['actions'],_0x5bcd2d['actions'])}};},{})],_0x130a9d=(_0x278190=(_0x270789=_0xa1f0fa[_0x9c3969(0x2d0)]())==null?void 0x0:_0x270789[_0x9c3969(0x455)])!=null?_0x278190:_0x9c3969(0x353),_0x2f56c0=(_0x1f4e93=(_0x558ac4=_0xa1f0fa['getCurrentUser']())==null?void 0x0:_0x558ac4[_0x9c3969(0x143)])!=null?_0x1f4e93:_0x9c3969(0x353);return{'changeset':{'unitID':_0x3ed5b6,'type':_0x469599(_0x5c358b[_0x9c3969(0x48d)](_0x3ed5b6)),'baseRev':_0x1dbf65[_0x9c3969(0x409)](_0x3ed5b6),'revision':0x0,'userID':_0x130a9d,'memberID':_0x2f56c0,'mutations':_0x45749f},'pendingMutations':[]};}const dr={'id':_0x4fd1b4['id'],'type':_0x101550['MUTATION'],'params':{}};var fr=Object[_0x44ade9(0x421)],mr=Object[_0x44ade9(0x418)],le=(_0x176afc,_0x3d0dee,_0x2505ee,_0x3cc91f)=>{const _0x521836=_0x44ade9;for(var _0x700f45=_0x3cc91f>0x1?void 0x0:_0x3cc91f?mr(_0x3d0dee,_0x2505ee):_0x3d0dee,_0x430280=_0x176afc[_0x521836(0x192)]-0x1,_0x3af4d4;_0x430280>=0x0;_0x430280--)(_0x3af4d4=_0x176afc[_0x430280])&&(_0x700f45=(_0x3cc91f?_0x3af4d4(_0x3d0dee,_0x2505ee,_0x700f45):_0x3af4d4(_0x700f45))||_0x700f45);return _0x3cc91f&&_0x700f45&&fr(_0x3d0dee,_0x2505ee,_0x700f45),_0x700f45;},m=(_0x2583f1,_0x409cf5)=>(_0x25e060,_0x2a33d9)=>_0x409cf5(_0x25e060,_0x2a33d9,_0x2583f1),w=(_0xdec016=>(_0xdec016[_0x44ade9(0x23c)]=_0x44ade9(0x3eb),_0xdec016['SYNCED']='synced',_0xdec016[_0x44ade9(0x3b8)]=_0x44ade9(0x1c8),_0xdec016[_0x44ade9(0x2c6)]=_0x44ade9(0x461),_0xdec016[_0x44ade9(0x2b4)]=_0x44ade9(0x3e1),_0xdec016[_0x44ade9(0x2f8)]=_0x44ade9(0x206),_0xdec016[_0x44ade9(0x32d)]='conflict',_0xdec016[_0x44ade9(0x1c6)]=_0x44ade9(0x241),_0xdec016))(w||{});class _e{constructor(_0x1ce3d6,_0xdbe1af,_0x1efc17,_0x526e64,_0x243ef6,_0x3f3d8c,_0x36d25a,_0x2ee9cc,_0x15d25f){const _0x204e89=_0x44ade9;l(this,'_awaitingChangeset',null),l(this,_0x204e89(0x348),[]),(this[_0x204e89(0x42f)]=_0x1ce3d6,this[_0x204e89(0x150)]=_0xdbe1af,this[_0x204e89(0x28c)]=_0x243ef6,this[_0x204e89(0x1a6)]=_0x3f3d8c,this[_0x204e89(0x3a5)]=_0x36d25a,this[_0x204e89(0x3fa)]=_0x2ee9cc,this[_0x204e89(0x15b)]=_0x15d25f,this[_0x204e89(0x363)]=_0x1efc17,this[_0x204e89(0x348)]=_0x526e64);}[_0x44ade9(0x3f4)](_0x841290){const _0x55e281=_0x44ade9,_0x1643ab=this[_0x55e281(0x3fa)][_0x55e281(0x409)](this['unitID']);return _0x841290[_0x55e281(0x2fb)]>_0x1643ab+0x1?(this['_handler'][_0x55e281(0x392)]({'from':_0x1643ab,'to':_0x841290[_0x55e281(0x2fb)]-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x260515){const _0x1af705=_0x44ade9;this[_0x1af705(0x3a5)][_0x1af705(0x1a1)](this['unitID'],_0x260515);}[_0x44ade9(0x380)](_0x4b989f){const _0x16a7f2=_0x44ade9;var _0x207b19,_0x2ac0fe;(_0x2ac0fe=(_0x207b19=this[_0x16a7f2(0x28c)])[_0x16a7f2(0x3e9)])==null||_0x2ac0fe[_0x16a7f2(0x303)](_0x207b19,_0x4b989f);}['_transformIMECache'](_0x188ec7){const _0x2d794e=_0x44ade9;var _0x54708b,_0x72cc2e;return(_0x72cc2e=(_0x54708b=this['_handler'])[_0x2d794e(0x2a8)])==null?void 0x0:_0x72cc2e[_0x2d794e(0x303)](_0x54708b,_0x188ec7);}[_0x44ade9(0x33f)](_0x2dd76f){const _0x200fdb=_0x44ade9;var _0x2719ce,_0x53e480,_0x46013a;return(_0x46013a=(_0x53e480=(_0x2719ce=this[_0x200fdb(0x28c)])[_0x200fdb(0x37b)])==null?void 0x0:_0x53e480[_0x200fdb(0x303)](_0x2719ce,_0x2dd76f))!=null?_0x46013a:_0x2dd76f;}['_syncEditingCollabCursor'](_0x548c34){const _0x1d06d0=_0x44ade9;var _0x3d0b45,_0x5e3882;if(this[_0x1d06d0(0x150)]===H[_0x1d06d0(0x3b0)]){const {unitID:_0x513e58,mutations:_0x133171,memberID:_0xf98b64}=_0x548c34,_0x25964a=_0x133171[0x0][_0x1d06d0(0x1d5)]['textRanges'];Array[_0x1d06d0(0x254)](_0x25964a)&&_0x25964a['length']>0x0&&((_0x5e3882=(_0x3d0b45=this[_0x1d06d0(0x28c)])['onSyncEditingCollabCursor'])==null||_0x5e3882['call'](_0x3d0b45,{'unitID':_0x513e58,'memberID':_0xf98b64,'textRanges':_0x25964a}));}}['_updateLocalCache'](){const _0x441aeb=_0x44ade9;this[_0x441aeb(0x15b)][_0x441aeb(0x3b7)](this[_0x441aeb(0x42f)],this[_0x441aeb(0x150)],this[_0x441aeb(0x363)],this[_0x441aeb(0x348)]);}[_0x44ade9(0x366)](){const _0x8614d4=_0x44ade9;return this['_revisionService'][_0x8614d4(0x409)](this['unitID']);}[_0x44ade9(0x332)](){const _0x4c2068=_0x44ade9;this[_0x4c2068(0x3fa)][_0x4c2068(0x354)](this[_0x4c2068(0x42f)]);}['_executeRemoteChangeset'](_0x1bae07){const _0x1aca56=_0x44ade9;var _0x2ade0d;const _0x1e7281=this[_0x1aca56(0x33f)](_0x1bae07),_0x510fd6=_0x546da2(_0x1e7281[_0x1aca56(0x230)],this[_0x1aca56(0x1a6)],{'fromCollab':!0x0});if(!_0x510fd6[_0x1aca56(0x234)])throw _0x510fd6[_0x1aca56(0x1c9)]instanceof Error?_0x510fd6[_0x1aca56(0x1c9)]:new Error((_0x2ade0d=_0x510fd6[_0x1aca56(0x1c9)])!=null?_0x2ade0d:_0x1aca56(0x477));this[_0x1aca56(0x485)](_0x1e7281),this['_transformUndoredo'](_0x1bae07),this[_0x1aca56(0x380)](_0x1e7281),this[_0x1aca56(0x2bd)](_0x1e7281),this['_incrementRevisionNumber']();}}let pe=class extends _e{constructor(_0x482070,_0x1ba0da,_0xa43c6a,_0x4c7f7f,_0x32f113,_0xf0bd09,_0x5a4552,_0x212a37,_0x1a308b,_0x28e31e){const _0x2f5d51=_0x44ade9;super(_0x482070,_0x1ba0da,null,[],_0xa43c6a,_0x212a37,_0x5a4552,_0x4c7f7f,_0x32f113),l(this,_0x2f5d51(0x14f),'synced'),(this['_injector']=_0xf0bd09,this[_0x2f5d51(0x1a3)]=_0x1a308b,this[_0x2f5d51(0x16a)]=_0x28e31e);}[_0x44ade9(0x2e5)](_0x47bbba){const _0x395963=_0x44ade9,_0x297d55=this[_0x395963(0x181)][_0x395963(0x307)](K,this[_0x395963(0x42f)],this[_0x395963(0x150)],[_0x47bbba],this[_0x395963(0x28c)]);return _0x297d55[_0x395963(0x2bc)](),_0x297d55[_0x395963(0x347)](),_0x297d55;}[_0x44ade9(0x464)](_0x1e79fc){const _0x558c0a=_0x44ade9;if(this[_0x558c0a(0x3f4)](_0x1e79fc))return this[_0x558c0a(0x181)][_0x558c0a(0x307)](k,this['unitID'],this[_0x558c0a(0x150)],null,[],null,[_0x1e79fc],this[_0x558c0a(0x28c)]);try{const _0x4f8978=this[_0x558c0a(0x16a)][_0x558c0a(0x169)](_0x1e79fc,[dr]);if(_0x24ef98(_0x4f8978)){const {c1Prime:_0x452c35}=_0x4f8978;return this[_0x558c0a(0x13e)](_0x452c35),this;}throw _0x4f8978[_0x558c0a(0x1c9)];}catch(_0x1c86e5){return this[_0x558c0a(0x1a3)]['error'](_0x1c86e5),this[_0x558c0a(0x37e)](!0x1);}}[_0x44ade9(0x37e)](_0x348aee){const _0x3ded12=_0x44ade9;return this[_0x3ded12(0x181)][_0x3ded12(0x307)](ee,this['unitID'],this[_0x3ded12(0x150)],null,[],this[_0x3ded12(0x28c)],_0x348aee);}[_0x44ade9(0x4ac)](){const _0x2b96ae=_0x44ade9;throw new Error(_0x2b96ae(0x3f9));}[_0x44ade9(0x324)](){const _0xbb7779=_0x44ade9;throw new Error(_0xbb7779(0x15e));}[_0x44ade9(0x1e2)](){const _0x47888a=_0x44ade9;return this['_injector'][_0x47888a(0x307)](te,this[_0x47888a(0x42f)],this[_0x47888a(0x150)],null,[],this[_0x47888a(0x28c)]);}['toggleOnline'](){return this;}['resend'](){const _0xd68166=_0x44ade9;throw new Error(_0xd68166(0x1af));}[_0x44ade9(0x488)](){const _0xbc7ecb=_0x44ade9,_0x5358fb=this[_0xbc7ecb(0x3fa)][_0xbc7ecb(0x409)](this['unitID']);return this[_0xbc7ecb(0x28c)]['onMissingChangesets']({'from':_0x5358fb,'to':0x0}),this[_0xbc7ecb(0x181)][_0xbc7ecb(0x307)](k,this[_0xbc7ecb(0x42f)],this[_0xbc7ecb(0x150)],null,[],null,[],this['_handler']);}};pe=le([m(0x3,_0x180372(_0x2123f3)),m(0x4,_0x180372(D)),m(0x5,_0x180372(_0x15d871)),m(0x6,_0x3cf637),m(0x7,_0x2bc808),m(0x8,_0x4611a9),m(0x9,_0x446e46)],pe);let K=class extends _e{constructor(_0x1be74d,_0x23b81e,_0x5f58c6,_0x20e303,_0x38fc47,_0x3583fd,_0x302b82,_0x40d368,_0x31aacc,_0xb5850c,_0x29bc62,_0xad9dba,_0xd8a3ef,_0x1a9f95){const _0x47babf=_0x44ade9;super(_0x1be74d,_0x23b81e,null,_0x5f58c6,_0x20e303,_0xb5850c,_0x1a9f95,_0x3583fd,_0x302b82),l(this,_0x47babf(0x14f),_0x47babf(0x1c8)),l(this,_0x47babf(0x21a),null),l(this,_0x47babf(0x18b),null),(this['_injector']=_0x38fc47,this['_memberService']=_0x40d368,this[_0x47babf(0x1a3)]=_0x31aacc,this['_configService']=_0x29bc62,this[_0x47babf(0x16a)]=_0xad9dba,this[_0x47babf(0x470)]=_0xd8a3ef);}[_0x44ade9(0x2e5)](_0x5929bf){const _0x54b99c=_0x44ade9;return this[_0x54b99c(0x348)]['push'](_0x5929bf),this[_0x54b99c(0x347)](),this;}[_0x44ade9(0x464)](_0x8fc663){const _0x2eacfa=_0x44ade9;if(this[_0x2eacfa(0x3f4)](_0x8fc663))return this[_0x2eacfa(0x43a)](),this[_0x2eacfa(0x181)]['createInstance'](k,this['unitID'],this[_0x2eacfa(0x150)],null,this[_0x2eacfa(0x348)],null,[_0x8fc663],this[_0x2eacfa(0x28c)]);try{const _0x1c7ca1=this[_0x2eacfa(0x16a)][_0x2eacfa(0x169)](_0x8fc663,this[_0x2eacfa(0x348)]);if(_0x24ef98(_0x1c7ca1)){const {c1Prime:_0x2a8baf,m2Prime:_0x21eba5}=_0x1c7ca1;this[_0x2eacfa(0x13e)](_0x2a8baf);const _0x393461=this['_injector'][_0x2eacfa(0x307)](K,this[_0x2eacfa(0x42f)],this['type'],_0x21eba5,this[_0x2eacfa(0x28c)]);return this[_0x2eacfa(0x43a)](),_0x393461[_0x2eacfa(0x2bc)](this[_0x2eacfa(0x21a)]?Math[_0x2eacfa(0x21f)](0x0,new Date()['getTime']()-this[_0x2eacfa(0x21a)]):this[_0x2eacfa(0x32c)]()),_0x393461;}throw _0x1c7ca1[_0x2eacfa(0x1c9)];}catch(_0x32ff31){return this[_0x2eacfa(0x1a3)][_0x2eacfa(0x1c9)](_0x32ff31),this[_0x2eacfa(0x37e)](!0x1);}}[_0x44ade9(0x4ac)](){const _0x4d230d=_0x44ade9;throw new Error(_0x4d230d(0x393));}[_0x44ade9(0x324)](){const _0x36238e=_0x44ade9;throw new Error(_0x36238e(0x1e0));}['toggleOffline'](){const _0x551176=_0x44ade9;return this[_0x551176(0x43a)](),this[_0x551176(0x181)][_0x551176(0x307)](te,this[_0x551176(0x42f)],this['type'],null,this['_pendingMutations'],this[_0x551176(0x28c)]);}['toggleOnline'](){return this;}[_0x44ade9(0x2bc)](_0x48b9e8){const _0x4f02ca=_0x44ade9,_0x151ca1=_0x48b9e8!=null?_0x48b9e8:this[_0x4f02ca(0x32c)]();this[_0x4f02ca(0x21a)]=new Date()['getTime'](),this[_0x4f02ca(0x18b)]=window[_0x4f02ca(0x471)](()=>{const _0x484351=_0x4f02ca;this[_0x484351(0x43a)]();let _0x5b662d=null;switch(this[_0x484351(0x150)]){case H[_0x484351(0x233)]:{_0x5b662d=_s(this[_0x484351(0x348)],this[_0x484351(0x42f)],this['_univerInstanceService'],this[_0x484351(0x3fa)],this[_0x484351(0x450)]);break;}case H[_0x484351(0x3b0)]:{this[_0x484351(0x348)]['every'](_0x57def3=>_0x57def3['id']===_0x27d3d0['id'])?_0x5b662d=ur(this[_0x484351(0x348)],this[_0x484351(0x42f)],this[_0x484351(0x470)],this[_0x484351(0x3fa)],this[_0x484351(0x450)]):_0x5b662d=_s(this[_0x484351(0x348)],this[_0x484351(0x42f)],this[_0x484351(0x470)],this[_0x484351(0x3fa)],this[_0x484351(0x450)]);break;}default:throw new Error(_0x484351(0x462)+this[_0x484351(0x150)]+'\x20in\x20_schedule.');}const {changeset:_0x179533,pendingMutations:_0xf5325f}=_0x5b662d;this[_0x484351(0x28c)]['onSendChangeset'](_0x179533);const _0x5d27bf=_0xf5325f['length']?this['_injector'][_0x484351(0x307)](X,this['unitID'],this[_0x484351(0x150)],_0x179533,_0xf5325f,this[_0x484351(0x28c)]):this['_injector'][_0x484351(0x307)](Q,this['unitID'],this[_0x484351(0x150)],_0x179533,this[_0x484351(0x28c)]);_0x5d27bf[_0x484351(0x347)](),this[_0x484351(0x28c)]['onStateChange'](this,_0x5d27bf);},_0x151ca1);}[_0x44ade9(0x32c)](){var _0x387e2f;const _0x448b94=this['_configService']['getConfig'](L);return(_0x387e2f=_0x448b94==null?void 0x0:_0x448b94['sendChangesetTimeout'])!=null?_0x387e2f:Sn;}['resend'](){const _0x49fc14=_0x44ade9;throw new Error(_0x49fc14(0x1fb));}[_0x44ade9(0x43a)](){const _0x4434fc=_0x44ade9;this[_0x4434fc(0x18b)]!=null&&(clearTimeout(this[_0x4434fc(0x18b)]),this['_sendingTimer']=null);}['_onConflict'](_0x3b0021){const _0x5b1a3a=_0x44ade9;return this[_0x5b1a3a(0x43a)](),this['_injector'][_0x5b1a3a(0x307)](ee,this['unitID'],this[_0x5b1a3a(0x150)],null,this[_0x5b1a3a(0x348)],this[_0x5b1a3a(0x28c)],_0x3b0021);}};K=le([m(0x4,_0x180372(_0x15d871)),m(0x5,_0x180372(_0x2123f3)),m(0x6,_0x180372(D)),m(0x7,_0x180372(ae)),m(0x8,_0x4611a9),m(0x9,_0x2bc808),m(0xa,_0x1fe23f),m(0xb,_0x446e46),m(0xc,_0x4c19c5),m(0xd,_0x3cf637)],K);let Q=class extends _e{constructor(_0x22b5e4,_0x584d30,_0x2aa159,_0x1aec6b,_0x14f6ab,_0x56a0b5,_0x554746,_0x2349c7,_0x265365,_0x364643,_0x58578b){const _0x389d4c=_0x44ade9;super(_0x22b5e4,_0x584d30,_0x2aa159,[],_0x1aec6b,_0x2349c7,_0x58578b,_0x56a0b5,_0x554746),l(this,_0x389d4c(0x14f),_0x389d4c(0x461)),(this[_0x389d4c(0x181)]=_0x14f6ab,this['_logService']=_0x265365,this[_0x389d4c(0x16a)]=_0x364643);}[_0x44ade9(0x2e5)](_0x4eac98){const _0x545685=_0x44ade9,_0x481bc8=this['_injector'][_0x545685(0x307)](X,this[_0x545685(0x42f)],this['type'],this[_0x545685(0x363)],[_0x4eac98],this['_handler']);return _0x481bc8[_0x545685(0x347)](),_0x481bc8;}[_0x44ade9(0x464)](_0x4e4b88){const _0x449520=_0x44ade9;if(this[_0x449520(0x3f4)](_0x4e4b88))return this[_0x449520(0x181)][_0x449520(0x307)](k,this[_0x449520(0x42f)],this[_0x449520(0x150)],this[_0x449520(0x363)],[],null,[_0x4e4b88],this[_0x449520(0x28c)]);try{const _0x43b60f=this[_0x449520(0x16a)][_0x449520(0x2b6)]([_0x4e4b88],[this[_0x449520(0x363)]],!0x1);if(_0x584035(_0x43b60f)){const {c1Prime:_0x44beaa,c2Prime:_0x2d9dbc}=_0x43b60f;this[_0x449520(0x13e)](_0x44beaa[0x0]),_0x2d9dbc[0x0]['baseRev']=this[_0x449520(0x366)]();const _0x388ab5=this[_0x449520(0x181)][_0x449520(0x307)](Q,this['unitID'],this[_0x449520(0x150)],_0x2d9dbc[0x0],this[_0x449520(0x28c)]);return _0x388ab5['_updateLocalCache'](),_0x388ab5;}return this[_0x449520(0x37e)](!0x1);}catch(_0x11ff7a){return this[_0x449520(0x1a3)][_0x449520(0x1c9)](_0x11ff7a),this[_0x449520(0x37e)](!0x1);}}[_0x44ade9(0x4ac)](_0x5c31d7){const _0x3d6e51=_0x44ade9,_0x5049c3=this[_0x3d6e51(0x3fa)][_0x3d6e51(0x409)](this[_0x3d6e51(0x42f)]);if(_0x5c31d7[_0x3d6e51(0x2fb)]<_0x5049c3-0x1)return this;if(this[_0x3d6e51(0x3f4)](_0x5c31d7))return this[_0x3d6e51(0x181)][_0x3d6e51(0x307)](k,this[_0x3d6e51(0x42f)],this[_0x3d6e51(0x150)],null,[],this[_0x3d6e51(0x363)],[],this[_0x3d6e51(0x28c)]);this[_0x3d6e51(0x332)]();const _0x465e59=this[_0x3d6e51(0x181)][_0x3d6e51(0x307)](pe,this['unitID'],this[_0x3d6e51(0x150)],this[_0x3d6e51(0x28c)]);return _0x465e59['_updateLocalCache'](),_0x465e59;}[_0x44ade9(0x324)](_0xc1de67){return this['_onConflict'](!!(_0xc1de67!=null&&_0xc1de67['isPermissionRej']));}[_0x44ade9(0x1e2)](){const _0x112e8b=_0x44ade9;return this[_0x112e8b(0x181)]['createInstance'](te,this[_0x112e8b(0x42f)],this[_0x112e8b(0x150)],this[_0x112e8b(0x363)],[],this[_0x112e8b(0x28c)]);}[_0x44ade9(0x493)](){return this;}['resend'](){const _0x10755d=_0x44ade9;this[_0x10755d(0x28c)]['onSendChangeset'](this[_0x10755d(0x363)]);}[_0x44ade9(0x37e)](_0x99ebee){const _0x112ffa=_0x44ade9;return this[_0x112ffa(0x181)][_0x112ffa(0x307)](ee,this[_0x112ffa(0x42f)],this[_0x112ffa(0x150)],this['_awaitingChangeset'],[],this[_0x112ffa(0x28c)],_0x99ebee);}};Q=le([m(0x4,_0x180372(_0x15d871)),m(0x5,_0x180372(_0x2123f3)),m(0x6,_0x180372(D)),m(0x7,_0x2bc808),m(0x8,_0x4611a9),m(0x9,_0x446e46),m(0xa,_0x3cf637)],Q);let X=class extends _e{constructor(_0x315157,_0x47dc8b,_0xc457c5,_0x1eeac3,_0xa17c39,_0x3a0fc3,_0xb38109,_0x4ba71a,_0x5540b2,_0x88ece8,_0x2e6808,_0x4155d4){const _0x245bd5=_0x44ade9;super(_0x315157,_0x47dc8b,_0xc457c5,_0x1eeac3,_0xa17c39,_0x5540b2,_0x4155d4,_0xb38109,_0x4ba71a),l(this,_0x245bd5(0x14f),'awaiting_with_pending'),(this[_0x245bd5(0x181)]=_0x3a0fc3,this['_logService']=_0x88ece8,this[_0x245bd5(0x16a)]=_0x2e6808);}[_0x44ade9(0x2e5)](_0x281abf){const _0xb48f79=_0x44ade9;return this[_0xb48f79(0x348)][_0xb48f79(0x23e)](_0x281abf),this;}[_0x44ade9(0x464)](_0x384656){const _0x18a433=_0x44ade9;if(this['_checkMissing'](_0x384656))return this['_injector']['createInstance'](k,this['unitID'],this[_0x18a433(0x150)],this[_0x18a433(0x363)],this[_0x18a433(0x348)],null,[_0x384656],this[_0x18a433(0x28c)]);try{const _0xb283b6=this['_transformService']['transformChangesets']([_0x384656],[this[_0x18a433(0x363)]],!0x1);if(_0x584035(_0xb283b6)){const {c1Prime:_0x2cb358,c2Prime:_0x2385ea}=_0xb283b6,_0x36c46f=this[_0x18a433(0x16a)][_0x18a433(0x169)](_0x2cb358[0x0],this[_0x18a433(0x348)]);if(_0x24ef98(_0x36c46f)){const {c1Prime:_0x3754e0,m2Prime:_0x2bf4d2}=_0x36c46f;return this[_0x18a433(0x13e)](_0x3754e0),_0x2385ea[0x0]['baseRev']=this[_0x18a433(0x366)](),this[_0x18a433(0x181)][_0x18a433(0x307)](X,this['unitID'],this[_0x18a433(0x150)],_0x2385ea[0x0],_0x2bf4d2,this[_0x18a433(0x28c)]);}throw _0x36c46f[_0x18a433(0x1c9)];}throw _0xb283b6[_0x18a433(0x1c9)];}catch(_0x16adb2){return this['_logService']['error'](_0x16adb2),this[_0x18a433(0x37e)](!0x1);}}['onRemoteAck'](_0x53d7b3){const _0x4c4ea6=_0x44ade9;if(this[_0x4c4ea6(0x3f4)](_0x53d7b3))return this[_0x4c4ea6(0x181)]['createInstance'](k,this[_0x4c4ea6(0x42f)],this[_0x4c4ea6(0x150)],null,this[_0x4c4ea6(0x348)],this[_0x4c4ea6(0x363)],[],this['_handler']);this['_incrementRevisionNumber']();const _0x5d90b3=this['_injector'][_0x4c4ea6(0x307)](K,this[_0x4c4ea6(0x42f)],this[_0x4c4ea6(0x150)],this[_0x4c4ea6(0x348)],this['_handler']);return _0x5d90b3['_schedule'](),_0x5d90b3[_0x4c4ea6(0x347)](),_0x5d90b3;}[_0x44ade9(0x324)](_0x33e7fb){return this['_onConflict'](!!(_0x33e7fb!=null&&_0x33e7fb['isPermissionRej']));}['toggleOffline'](){const _0x4acbdc=_0x44ade9;return this[_0x4acbdc(0x181)]['createInstance'](te,this[_0x4acbdc(0x42f)],this[_0x4acbdc(0x150)],this[_0x4acbdc(0x363)],this['_pendingMutations'],this[_0x4acbdc(0x28c)]);}['toggleOnline'](){return this;}[_0x44ade9(0x386)](){const _0x54897b=_0x44ade9;this[_0x54897b(0x28c)][_0x54897b(0x3a2)](this['_awaitingChangeset']);}['_onConflict'](_0x4052c5){const _0xe2e858=_0x44ade9;return this[_0xe2e858(0x181)]['createInstance'](ee,this['unitID'],this[_0xe2e858(0x150)],null,this[_0xe2e858(0x348)],this[_0xe2e858(0x28c)],_0x4052c5);}};X=le([m(0x5,_0x180372(_0x15d871)),m(0x6,_0x180372(_0x2123f3)),m(0x7,_0x180372(D)),m(0x8,_0x2bc808),m(0x9,_0x4611a9),m(0xa,_0x446e46),m(0xb,_0x3cf637)],X);let ee=class extends _e{constructor(_0x2fd519,_0x4ded06,_0x5563ab,_0x5e86b5,_0x27d275,_0x370693=!0x1,_0x1ff82e,_0x5598f4,_0x1eb088,_0xb89d2c,_0x2b6ba6,_0x34d6db,_0x3452cb){const _0x20fb37=_0x44ade9;super(_0x2fd519,_0x4ded06,_0x5563ab,_0x5e86b5,_0x27d275,_0x5598f4,_0x1eb088,_0x2b6ba6,_0xb89d2c),l(this,'status',_0x20fb37(0x1ec)),(this[_0x20fb37(0x163)]=_0x370693,this['_permissionService']=_0x1ff82e,this[_0x20fb37(0x267)]=_0x34d6db,this[_0x20fb37(0x286)]=_0x3452cb,this[_0x20fb37(0x20b)](),this['_clearLocalCache'](),this[_0x20fb37(0x2df)]());}[_0x44ade9(0x2e5)](){return this;}['onRemoteChangeset'](){return this;}[_0x44ade9(0x4ac)](){return this;}['onRemoteRej'](){return this;}[_0x44ade9(0x1e2)](){return this;}[_0x44ade9(0x493)](){return this;}[_0x44ade9(0x386)](){const _0x7b7c2=_0x44ade9;throw new Error(_0x7b7c2(0x1ad));}[_0x44ade9(0x174)](){const _0x462650=_0x44ade9;this[_0x462650(0x15b)][_0x462650(0x3b7)](this[_0x462650(0x42f)],this[_0x462650(0x150)],null,[]);}[_0x44ade9(0x20b)](){const _0x3fc09d=_0x44ade9;this[_0x3fc09d(0x163)]?this[_0x3fc09d(0x286)][_0x3fc09d(0x15d)]({'title':this['_localeService']['t']('permission.title'),'content':this[_0x3fc09d(0x267)]['t']('permission.content'),'type':'error','duration':0x0}):this[_0x3fc09d(0x286)][_0x3fc09d(0x15d)]({'title':this[_0x3fc09d(0x267)]['t'](_0x3fc09d(0x3b1)),'content':this[_0x3fc09d(0x267)]['t']('conflict.content'),'type':'error','duration':0x0});}[_0x44ade9(0x2df)](){const _0x4ecc1d=_0x44ade9;this[_0x4ecc1d(0x44f)]['updatePermissionPoint'](new _0x4f24bc(this[_0x4ecc1d(0x42f)])['id'],!0x1);}};ee=le([m(0x6,_0x180372(_0x7677d9)),m(0x7,_0x2bc808),m(0x8,_0x3cf637),m(0x9,_0x180372(D)),m(0xa,_0x180372(_0x2123f3)),m(0xb,_0x180372(_0x787113)),m(0xc,_0xc8419c)],ee);let te=class extends _e{constructor(_0x33f37d,_0x3c924b,_0x56c021,_0x2180bc,_0x59853e,_0x123221,_0x287af7,_0x4e3e0f,_0x2c27b0,_0x258480){const _0x4fd3a1=_0x44ade9;super(_0x33f37d,_0x3c924b,_0x56c021,_0x2180bc,_0x59853e,_0x2c27b0,_0x258480,_0x287af7,_0x4e3e0f),l(this,_0x4fd3a1(0x14f),'offline'),this[_0x4fd3a1(0x181)]=_0x123221;}[_0x44ade9(0x2e5)](_0x1abb22){const _0x2928ea=_0x44ade9;return this['_pendingMutations'][_0x2928ea(0x23e)](_0x1abb22),this[_0x2928ea(0x347)](),this;}['onRemoteChangeset'](_0xc7c50){const _0x4fcc7f=_0x44ade9;throw new Error(_0x4fcc7f(0x263));}['onRemoteAck'](){const _0x5cf9f4=_0x44ade9;throw new Error(_0x5cf9f4(0x47d));}[_0x44ade9(0x324)](){const _0x44ffab=_0x44ade9;throw new Error(_0x44ffab(0x37c));}[_0x44ade9(0x1e2)](){return this;}[_0x44ade9(0x493)](){const _0xf84449=_0x44ade9,{_injector:_0x2b478b,_pendingMutations:_0xb86c12,_awaitingChangeset:_0x146d0d,unitID:_0x27e82d,_handler:_0xb31bac,type:_0x358f0b}=this,_0x2ed4a9=ks(_0x2b478b,_0x27e82d,_0x358f0b,_0x146d0d,_0xb86c12,_0xb31bac);return _0x2ed4a9 instanceof K?_0x2ed4a9['_schedule']():(_0x2ed4a9 instanceof X||_0x2ed4a9 instanceof Q)&&_0x2ed4a9[_0xf84449(0x386)](),_0x2ed4a9;}[_0x44ade9(0x386)](){const _0x1e7a24=_0x44ade9;throw new Error(_0x1e7a24(0x208));}};te=le([m(0x5,_0x180372(_0x15d871)),m(0x6,_0x180372(_0x2123f3)),m(0x7,_0x180372(D)),m(0x8,_0x2bc808),m(0x9,_0x3cf637)],te);let k=class extends _e{constructor(_0x49a235,_0x1526fa,_0x30dce5,_0x2d8db8,_0x2fe45f,_0x3f85f6,_0x21acaf,_0x5dc409,_0x5efb2d,_0x5007bc,_0xd4de34,_0x697e84,_0x4762ea,_0x3979dd){const _0x54c448=_0x44ade9;super(_0x49a235,_0x1526fa,_0x30dce5,_0x2d8db8,_0x21acaf,_0x697e84,_0x4762ea,_0x5efb2d,_0x5007bc),l(this,_0x54c448(0x14f),_0x54c448(0x206)),(this[_0x54c448(0x387)]=_0x2fe45f,this[_0x54c448(0x3db)]=_0x3f85f6,this[_0x54c448(0x181)]=_0x5dc409,this[_0x54c448(0x1a3)]=_0xd4de34,this['_transformService']=_0x3979dd);}['onMissedChangesetFetched'](_0x2c65d6){const _0x42a451=_0x44ade9;try{const _0x51c68e=[..._0x2c65d6,...this[_0x42a451(0x3db)]],_0x460de2=[this[_0x42a451(0x363)]||this[_0x42a451(0x387)]]['filter'](_0x53e549=>!!_0x53e549);let _0x5f51fc,_0x429e49;if(_0x460de2[_0x42a451(0x192)]){const _0x238ea1=this['_transformService']['transformChangesets'](_0x51c68e,_0x460de2,!0x1);if(!_0x584035(_0x238ea1))throw _0x238ea1['error'];_0x5f51fc=_0x238ea1[_0x42a451(0x496)],_0x429e49=_0x238ea1[_0x42a451(0x2a0)];}else _0x5f51fc=_0x51c68e,_0x429e49=[];let _0x31d157=this[_0x42a451(0x348)];_0x5f51fc[_0x42a451(0x362)](_0x4cb430=>{const _0xa39be=_0x42a451;let _0x481df4;if(_0x31d157[_0xa39be(0x192)]){const _0x56a79f=this[_0xa39be(0x16a)][_0xa39be(0x169)](_0x4cb430,_0x31d157);if(!_0x24ef98(_0x56a79f))throw _0x56a79f['error'];_0x481df4=_0x56a79f[_0xa39be(0x496)],_0x31d157=_0x56a79f[_0xa39be(0x483)];}else _0x481df4=_0x4cb430;this[_0xa39be(0x13e)](_0x481df4);}),this[_0x42a451(0x387)]&&this['_incrementRevisionNumber'](),this[_0x42a451(0x363)]&&_0x429e49[_0x42a451(0x192)]&&(_0x429e49[0x0][_0x42a451(0x219)]=this[_0x42a451(0x366)]());let _0x99d278;if(this[_0x42a451(0x363)]&&_0x31d157['length']!==0x0)_0x99d278=this[_0x42a451(0x181)][_0x42a451(0x307)](X,this[_0x42a451(0x42f)],this['type'],_0x429e49[0x0],_0x31d157,this[_0x42a451(0x28c)]);else{if(this['_awaitingChangeset']&&_0x31d157[_0x42a451(0x192)]===0x0)_0x429e49[0x0][_0x42a451(0x219)]=this['_getCurrentRevision'](),_0x99d278=this[_0x42a451(0x181)][_0x42a451(0x307)](Q,this['unitID'],this[_0x42a451(0x150)],_0x429e49[0x0],this[_0x42a451(0x28c)]);else{if(_0x31d157[_0x42a451(0x192)]!==0x0){const _0x286d42=this[_0x42a451(0x181)][_0x42a451(0x307)](K,this[_0x42a451(0x42f)],this[_0x42a451(0x150)],_0x31d157,this[_0x42a451(0x28c)]);_0x286d42[_0x42a451(0x2bc)](),_0x99d278=_0x286d42;}else _0x99d278=this[_0x42a451(0x181)][_0x42a451(0x307)](pe,this[_0x42a451(0x42f)],this[_0x42a451(0x150)],this[_0x42a451(0x28c)]);}}return _0x99d278[_0x42a451(0x347)](),_0x99d278;}catch(_0x3b0fc1){return this[_0x42a451(0x1a3)][_0x42a451(0x1c9)](_0x42a451(0x492),_0x42a451(0x325),_0x3b0fc1),this[_0x42a451(0x181)][_0x42a451(0x307)](ee,this[_0x42a451(0x42f)],this[_0x42a451(0x150)],this[_0x42a451(0x363)],this[_0x42a451(0x348)],this['_handler'],!0x1);}}[_0x44ade9(0x386)](){const _0xf6ffa1=_0x44ade9;throw new Error(_0xf6ffa1(0x282));}['appendMutation'](_0x4d0854){const _0x7ed61=_0x44ade9;return this[_0x7ed61(0x348)][_0x7ed61(0x23e)](_0x4d0854),this;}['onRemoteChangeset'](_0xe65caa){const _0x124999=_0x44ade9;return this[_0x124999(0x3db)][_0x124999(0x23e)](_0xe65caa),this;}[_0x44ade9(0x4ac)](_0x3db5a6){const _0xa9ea88=_0x44ade9;if(this[_0xa9ea88(0x363)])return this['_acknowledgedAwaitingChangeset']=this['_awaitingChangeset'],this['_awaitingChangeset']=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x44ade9(0x324)](_0x576c60){const _0x5a6f7f=_0x44ade9;return this[_0x5a6f7f(0x37e)](!!(_0x576c60!=null&&_0x576c60['isPermissionRej']));}['toggleOffline'](){const _0x4bc408=_0x44ade9;return this[_0x4bc408(0x181)]['createInstance'](te,this[_0x4bc408(0x42f)],this[_0x4bc408(0x150)],this[_0x4bc408(0x363)],this['_pendingMutations'],this[_0x4bc408(0x28c)]);}[_0x44ade9(0x493)](){return this;}[_0x44ade9(0x37e)](_0x6e644){const _0x58a963=_0x44ade9;return this[_0x58a963(0x181)][_0x58a963(0x307)](ee,this[_0x58a963(0x42f)],this[_0x58a963(0x150)],this[_0x58a963(0x363)],this['_pendingMutations'],this[_0x58a963(0x28c)],_0x6e644);}};k=le([m(0x7,_0x180372(_0x15d871)),m(0x8,_0x180372(_0x2123f3)),m(0x9,_0x180372(D)),m(0xa,_0x4611a9),m(0xb,_0x2bc808),m(0xc,_0x3cf637),m(0xd,_0x446e46)],k);function ks(_0x29b29d,_0x2ebfb5,_0xad767f,_0x4b4171,_0x18a195,_0x1f5cbb){const _0x133f74=_0x44ade9;return _0x4b4171&&_0x18a195['length']?_0x29b29d[_0x133f74(0x307)](X,_0x2ebfb5,_0xad767f,_0x4b4171,_0x18a195,_0x1f5cbb):_0x4b4171?_0x29b29d[_0x133f74(0x307)](Q,_0x2ebfb5,_0xad767f,_0x4b4171,_0x1f5cbb):_0x18a195[_0x133f74(0x192)]?_0x29b29d[_0x133f74(0x307)](K,_0x2ebfb5,_0xad767f,_0x18a195,_0x1f5cbb):_0x29b29d[_0x133f74(0x307)](pe,_0x2ebfb5,_0xad767f,_0x1f5cbb);}var gr=Object[_0x44ade9(0x421)],Sr=Object[_0x44ade9(0x418)],Wt=(_0x308f6f,_0x1f93d8,_0x16f42a,_0x478a02)=>{const _0x233815=_0x44ade9;for(var _0x544abd=_0x478a02>0x1?void 0x0:_0x478a02?Sr(_0x1f93d8,_0x16f42a):_0x1f93d8,_0x2f463d=_0x308f6f[_0x233815(0x192)]-0x1,_0x2becf0;_0x2f463d>=0x0;_0x2f463d--)(_0x2becf0=_0x308f6f[_0x2f463d])&&(_0x544abd=(_0x478a02?_0x2becf0(_0x1f93d8,_0x16f42a,_0x544abd):_0x2becf0(_0x544abd))||_0x544abd);return _0x478a02&&_0x544abd&&gr(_0x1f93d8,_0x16f42a,_0x544abd),_0x544abd;},p=(_0x2b3017,_0x3085eb)=>(_0x462660,_0x119b42)=>_0x3085eb(_0x462660,_0x119b42,_0x2b3017);let tt=class extends _0x1d444{constructor(_0x3a655e,_0xd60564,_0x52e26f,_0x741c74,_0x1ac4ed,_0x2a2965,_0x3e024f,_0x1e5a10,_0x22cc23,_0x4ffb39,_0x5c0766,_0x37371c,_0x4df079){const _0x29f6e4=_0x44ade9;super(),l(this,_0x29f6e4(0x3e7),new _0x531abd(null)),l(this,_0x29f6e4(0x213),this[_0x29f6e4(0x3e7)][_0x29f6e4(0x458)]()),l(this,_0x29f6e4(0x2c4)),l(this,_0x29f6e4(0x374),!0x1),l(this,_0x29f6e4(0x210),this['state$']['pipe'](_0xa2248a(_0x425f09=>_0x425f09?_0x425f09[_0x29f6e4(0x14f)]:w[_0x29f6e4(0x1c6)]),_0x227687(0x1))),l(this,'_transitionLocked',!0x1),l(this,_0x29f6e4(0x17b),[]),(this[_0x29f6e4(0x42f)]=_0x3a655e,this[_0x29f6e4(0x343)]=_0xd60564,this[_0x29f6e4(0x308)]=_0x52e26f,this[_0x29f6e4(0x181)]=_0x741c74,this[_0x29f6e4(0x15b)]=_0x1ac4ed,this['_compressMutationService']=_0x2a2965,this[_0x29f6e4(0x267)]=_0x3e024f,this[_0x29f6e4(0x3fa)]=_0x1e5a10,this[_0x29f6e4(0x1a3)]=_0x22cc23,this[_0x29f6e4(0x1a6)]=_0x4ffb39,this[_0x29f6e4(0x333)]=_0x5c0766,this[_0x29f6e4(0x44f)]=_0x37371c,this['_singleActiveUnitService']=_0x4df079);}get['state'](){return this['_state'];}async[_0x44ade9(0x38c)](){const _0x1042e2=_0x44ade9;if(this['state'])throw new Error(_0x1042e2(0x2fe));await this['_init']();}['pauseCollaboration'](){const _0xbb905b=_0x44ade9;return this[_0xbb905b(0x374)]=!0x0,_0x3e741a(()=>{const _0x3ac56c=_0xbb905b;this['_collaborationPaused']=!0x1,this[_0x3ac56c(0x428)]();});}[_0x44ade9(0x474)](_0x81949e){const _0x231641=_0x44ade9;this[_0x231641(0x2c4)]=_0x81949e,this[_0x231641(0x3e7)][_0x231641(0x34e)](_0x81949e);}async[_0x44ade9(0x2af)](){const _0x418bf4=_0x44ade9;var _0x50ae26;this[_0x418bf4(0x474)](await this[_0x418bf4(0x3f6)]()),this[_0x418bf4(0x319)]&&((_0x50ae26=this[_0x418bf4(0x319)])==null||_0x50ae26[_0x418bf4(0x235)](this[_0x418bf4(0x42f)]),this[_0x418bf4(0x26d)](this[_0x418bf4(0x319)][_0x418bf4(0x398)](this[_0x418bf4(0x42f)])['subscribe'](_0x3cfba9=>{const _0x48886a=_0x418bf4;this[_0x48886a(0x1a3)][_0x48886a(0x33b)](_0x48886a(0x1dd),'editing\x20status\x20changed\x20to',_0x3cfba9),_0x3cfba9===xs['OTHER_CLIENTS_EDITING']?(this['_messageService'][_0x48886a(0x15d)]({'content':this[_0x48886a(0x267)]['t']('collaboration.single-unit.warning'),'type':_0x73f118[_0x48886a(0x466)]}),this[_0x48886a(0x44f)][_0x48886a(0x2ce)](new _0x4f24bc(this['unitID'])['id'],!0x1)):this[_0x48886a(0x44f)][_0x48886a(0x2ce)](new _0x4f24bc(this['unitID'])['id'],!0x0);})));let _0x5ed94b=!0x1;return this[_0x418bf4(0x26d)](this['session'][_0x418bf4(0x27c)][_0x418bf4(0x3dc)](_0x21d5db=>{const _0x3dd5b6=_0x418bf4;_0x21d5db===G[_0x3dd5b6(0x19b)]?this['_toggleOnline'](_0x5ed94b):_0x21d5db===G[_0x3dd5b6(0x1c6)]&&(_0x5ed94b=!0x0,this[_0x3dd5b6(0x2f1)]());})),this[_0x418bf4(0x26d)](this[_0x418bf4(0x343)][_0x418bf4(0x271)][_0x418bf4(0x3dc)](_0x26d8e6=>{const _0x4370dc=_0x418bf4;try{switch(_0x26d8e6[_0x4370dc(0x2ac)]){case _0x2db775[_0x4370dc(0x3c7)]:{this['_onRemoteChangeset'](_0x4310c0(_0x26d8e6[_0x4370dc(0x3c3)]));break;}case _0x2db775['CHANGESET_ACK']:{this['_onRemoteACK'](_0x26d8e6[_0x4370dc(0x3c3)]);break;}case _0x2db775['CHANGESET_REJ']:{this[_0x4370dc(0x1ea)]();break;}case _0x2db775['PSEUDO_FETCH_MISSING_RESULT']:{this[_0x4370dc(0x2cb)](_0x26d8e6[_0x4370dc(0x3c3)]['changesets'][_0x4370dc(0x2aa)](_0x1ac7a6=>_0x4310c0(_0x1ac7a6)));break;}case _0x2db775[_0x4370dc(0x1e3)]:this[_0x4370dc(0x1ea)]({'isPermissionRej':!0x0});}}catch(_0xbd6faf){throw console[_0x4370dc(0x1c9)]('Error\x20on\x20receiving\x20event',_0xbd6faf),_0xbd6faf;}})),this[_0x418bf4(0x2c4)];}[_0x44ade9(0x26c)](){const _0x48ab56=_0x44ade9;this[_0x48ab56(0x3b4)]=!0x1;}[_0x44ade9(0x3a3)](){const _0x238031=_0x44ade9;if(this['_transitionLocked'])throw new Error(_0x238031(0x1d7));this[_0x238031(0x3b4)]=!0x0;}['_onLocalMutation'](_0x580513){const _0x5bb849=_0x44ade9;this[_0x5bb849(0x3a3)](),this['_updateState'](this['_state']['appendMutation'](_0x580513)),this[_0x5bb849(0x26c)]();}[_0x44ade9(0x1db)](_0x43988b){const _0x26b312=_0x44ade9;if(!(_0x43988b[_0x26b312(0x2fb)]<=this[_0x26b312(0x3fa)][_0x26b312(0x409)](this[_0x26b312(0x42f)]))){if(this[_0x26b312(0x374)]){this[_0x26b312(0x17b)]['push'](_0x43988b);return;}this[_0x26b312(0x297)](_0x43988b);}}['_exhaustRemoteChangesetQueue'](){const _0x24ecba=_0x44ade9;this[_0x24ecba(0x17b)][_0x24ecba(0x362)](_0x34b468=>this[_0x24ecba(0x297)](_0x34b468)),this[_0x24ecba(0x17b)]=[];}[_0x44ade9(0x297)](_0x5a9e1c){const _0x31c9db=_0x44ade9,_0x37c0e0=this['_compressMutationService']['interceptor'][_0x31c9db(0x18e)](this[_0x31c9db(0x203)][_0x31c9db(0x3ee)][_0x31c9db(0x1f0)]()[_0x31c9db(0x420)])(_0x5a9e1c[_0x31c9db(0x230)],null)||_0x5a9e1c['mutations'],_0x402f2d={..._0x5a9e1c,'mutations':_0x37c0e0};this['_lockTransition'](),this[_0x31c9db(0x474)](this[_0x31c9db(0x2c4)]['onRemoteChangeset'](_0x402f2d)),this['_unlockTransition']();}[_0x44ade9(0x225)](_0x487801){const _0x5a6e8a=_0x44ade9;this[_0x5a6e8a(0x3a3)](),this[_0x5a6e8a(0x474)](this['_state'][_0x5a6e8a(0x4ac)](_0x487801)),this[_0x5a6e8a(0x26c)]();}[_0x44ade9(0x1ea)](_0x44919b){const _0x44a5a5=_0x44ade9;this['_lockTransition'](),this['_updateState'](this['_state'][_0x44a5a5(0x324)](_0x44919b)),this[_0x44a5a5(0x26c)]();}['_onFetchMissResult'](_0x41175d){const _0x3d49ae=_0x44ade9;if(!(this['_state']instanceof k))throw new TypeError(_0x3d49ae(0x18a));const _0x20e3a4=_0x41175d[_0x3d49ae(0x2aa)](_0x93b5c4=>{const _0x9ebb7d=_0x3d49ae,_0x468401=this[_0x9ebb7d(0x203)]['interceptor'][_0x9ebb7d(0x18e)](this[_0x9ebb7d(0x203)]['interceptor'][_0x9ebb7d(0x1f0)]()[_0x9ebb7d(0x420)])(_0x93b5c4[_0x9ebb7d(0x230)],null)||_0x93b5c4['mutations'];return{..._0x93b5c4,'mutations':_0x468401};});this['_lockTransition'](),this[_0x3d49ae(0x474)](this[_0x3d49ae(0x2c4)][_0x3d49ae(0x2ed)](_0x20e3a4)),this['_unlockTransition']();}[_0x44ade9(0x2f1)](){const _0x1f0ced=_0x44ade9;this['_lockTransition'](),this[_0x1f0ced(0x474)](this['_state'][_0x1f0ced(0x1e2)]()),this[_0x1f0ced(0x26c)]();}[_0x44ade9(0x160)](_0x10ba5b=!0x1){const _0x2c3b0e=_0x44ade9;this[_0x2c3b0e(0x3a3)](),this['_updateState'](this[_0x2c3b0e(0x2c4)][_0x2c3b0e(0x493)]()),this[_0x2c3b0e(0x26c)]();const _0x2cb9b3=this[_0x2c3b0e(0x2c4)];_0x10ba5b&&_0x2cb9b3 instanceof pe&&(this[_0x2c3b0e(0x3a3)](),this[_0x2c3b0e(0x474)](_0x2cb9b3['fetchMiss']()),this['_unlockTransition']());}async['_createInitialState'](){return new Promise(_0x4a75a7=>{const _0x2f35f5=_0x3787;this[_0x2f35f5(0x343)][_0x2f35f5(0x27c)][_0x2f35f5(0x2e0)](_0xf17119(0x1))[_0x2f35f5(0x3dc)](async _0x4a0c13=>{const _0x6b9ee5=_0x2f35f5;_0x4a75a7(await this[_0x6b9ee5(0x1f4)](_0x4a0c13===G[_0x6b9ee5(0x19b)]));});});}['_createHandler'](){const _0x5cf7df=_0x44ade9,_0x37fa35=this[_0x5cf7df(0x42f)];return{'onStateChange':(_0x2240d6,_0xd08486)=>{const _0xa759ab=_0x5cf7df;if(_0x2240d6!==this['_state'])throw new Error(_0xa759ab(0x15a)+_0x2240d6[_0xa759ab(0x14f)]+'\x0aAfter:\x20'+_0xd08486[_0xa759ab(0x14f)]+'\x0aCurrent:\x20'+this['_state']['status']);this[_0xa759ab(0x474)](_0xd08486);},'onSendChangeset':_0x4a3a9a=>{const _0x1f8f79=_0x5cf7df,_0x25b217={'eventID':_0x2db775['SUBMIT_CHANGESET'],'data':{'unitID':_0x4a3a9a[_0x1f8f79(0x42f)],'unitType':this[_0x1f8f79(0x308)],'changeset':_0x4a3a9a,'memberID':this[_0x1f8f79(0x343)][_0x1f8f79(0x31f)]()}};this['session'][_0x1f8f79(0x359)](_0x25b217,this['unitID']);},'onMissingChangesets':({from:_0x1b52da,to:_0x3e4086})=>{const _0xbac190=_0x5cf7df;this[_0xbac190(0x1a3)]['debug'](_0xbac190(0x1dd),_0xbac190(0x43e)+_0x1b52da+_0xbac190(0x231)+_0x3e4086);const _0x5291a1={'eventID':_0x2db775[_0xbac190(0x41e)],'data':{'unitID':_0x37fa35,'unitType':this[_0xbac190(0x308)],'from':_0x1b52da,'to':_0x3e4086}};this[_0xbac190(0x343)][_0xbac190(0x359)](_0x5291a1,this['unitID']);}};}async['_createInitialStateImpl'](_0x295ff0){const _0x4f4593=_0x44ade9;var _0x599935,_0x249113;const _0x4ee104=await this[_0x4f4593(0x15b)]['loadOfflineData'](this[_0x4f4593(0x42f)]),_0x4a8ebf=(_0x599935=_0x4ee104==null?void 0x0:_0x4ee104['mutations'])!=null?_0x599935:[],_0xa48be8=(_0x249113=_0x4ee104==null?void 0x0:_0x4ee104['awaitingChangeset'])!=null?_0x249113:null,_0x22d0e2=this[_0x4f4593(0x42f)];try{this[_0x4f4593(0x2a9)](_0xa48be8,_0x4a8ebf);}catch(_0x4f1e2e){this[_0x4f4593(0x1a3)][_0x4f4593(0x1c9)](_0x4f1e2e);}const _0x300a23=this[_0x4f4593(0x162)]();if(_0x295ff0){const _0x31fe37=ks(this[_0x4f4593(0x181)],_0x22d0e2,this[_0x4f4593(0x308)],_0xa48be8,_0x4a8ebf,_0x300a23);return _0x31fe37 instanceof K?_0x31fe37[_0x4f4593(0x2bc)]():(_0x31fe37 instanceof X||_0x31fe37 instanceof Q)&&_0x31fe37[_0x4f4593(0x386)](),_0x31fe37;}return this[_0x4f4593(0x181)][_0x4f4593(0x307)](te,_0x22d0e2,this[_0x4f4593(0x308)],_0xa48be8,_0x4a8ebf,_0x300a23);}[_0x44ade9(0x2a9)](_0xf24431,_0x35ee47){const _0x57b96c=_0x44ade9;var _0x2fda52,_0x43e7f1;const _0x4cac71=this[_0x57b96c(0x203)][_0x57b96c(0x3ee)][_0x57b96c(0x18e)](this[_0x57b96c(0x203)][_0x57b96c(0x3ee)][_0x57b96c(0x1f0)]()['COMPRESS_MUTATION_APPLY']);(_0x2fda52=_0x4cac71((_0xf24431==null?void 0x0:_0xf24431[_0x57b96c(0x230)])||[],null))==null||_0x2fda52[_0x57b96c(0x362)](_0x2797e4=>this[_0x57b96c(0x1a6)][_0x57b96c(0x323)](_0x2797e4['id'],_0x2797e4[_0x57b96c(0x1d5)])),(_0x43e7f1=_0x4cac71(_0x35ee47||[],null))==null||_0x43e7f1['forEach'](_0x343ca4=>this['_commandService'][_0x57b96c(0x323)](_0x343ca4['id'],_0x343ca4['params']));}};tt=Wt([p(0x3,_0x180372(_0x15d871)),p(0x4,_0x180372(D)),p(0x5,_0x180372(_0x44773b)),p(0x6,_0x180372(_0x787113)),p(0x7,_0x180372(_0x2123f3)),p(0x8,_0x4611a9),p(0x9,_0x2bc808),p(0xa,_0x251714),p(0xb,_0x7677d9),p(0xc,_0x4edbf0(nt))],tt);let Ot=class extends tt{constructor(_0x1661d2,_0x2cc0e1,_0x51277f,_0x92c8f5,_0x1b2aa2,_0x43d53e,_0x5b74e2,_0x5bb3d9,_0x349b17,_0x3e8e5b,_0x5437bd,_0x580130,_0x22e1db,_0x114452,_0x2225b8,_0x570681,_0x2d3551){const _0x4e1450=_0x44ade9;super(_0x1661d2,_0x51277f,_0x2cc0e1,_0x92c8f5,_0x1b2aa2,_0x43d53e,_0x5b74e2,_0x5bb3d9,_0x22e1db,_0x114452,_0x2225b8,_0x570681,_0x2d3551),this[_0x4e1450(0x42f)]=_0x1661d2,this[_0x4e1450(0x150)]=_0x2cc0e1,this[_0x4e1450(0x2b7)]=_0x349b17,this['_docTransformIMECacheService']=_0x3e8e5b,this['_docTransformSelectionsService']=_0x5437bd,this['_docSyncEditingCollabCursorService']=_0x580130;}[_0x44ade9(0x162)](){const _0x5884aa=_0x44ade9,_0x20db0b=super['_createHandler']();return _0x20db0b[_0x5884aa(0x2a8)]=_0x5a8070=>this['_docTransformIMECacheService'][_0x5884aa(0x3b3)](_0x5a8070),_0x20db0b[_0x5884aa(0x3e9)]=_0x28ed9b=>this[_0x5884aa(0x314)]['transformSelections'](_0x28ed9b),_0x20db0b[_0x5884aa(0x368)]=_0x16ab29=>this[_0x5884aa(0x38b)][_0x5884aa(0x2bb)](_0x16ab29),_0x20db0b['onTransformRemoteChangesetByIMECache']=_0x2f40fa=>this[_0x5884aa(0x47f)][_0x5884aa(0x3e5)](_0x2f40fa),_0x20db0b;}async[_0x44ade9(0x2af)](){const _0x343a79=_0x44ade9,_0x32391b=await super[_0x343a79(0x2af)]();return this['disposeWithMe'](this[_0x343a79(0x1a6)][_0x343a79(0x226)]((_0x25f122,_0x11f597)=>{const _0x3c41e2=_0x343a79;if(_0x25f122[_0x3c41e2(0x150)]!==_0x101550[_0x3c41e2(0x3ac)]||_0x11f597!=null&&_0x11f597[_0x3c41e2(0x145)]||_0x11f597!=null&&_0x11f597[_0x3c41e2(0x29c)])return;const _0x295574=_0x25f122['params'];if((_0x295574==null?void 0x0:_0x295574[_0x3c41e2(0x288)])!==this[_0x3c41e2(0x42f)])return;let _0x45294b=_0x25f122;if(_0x45294b['id']===_0x27d3d0['id']){const _0x46128a=_0x45294b[_0x3c41e2(0x1d5)];_0x45294b={'id':_0x27d3d0['id'],'type':_0x101550[_0x3c41e2(0x3ac)],'params':{'unitId':_0x46128a['unitId'],'actions':_0x46128a[_0x3c41e2(0x39a)],'textRanges':null}};}const _0x298078=this[_0x3c41e2(0x203)][_0x3c41e2(0x3ee)][_0x3c41e2(0x18e)](this[_0x3c41e2(0x203)][_0x3c41e2(0x3ee)][_0x3c41e2(0x1f0)]()[_0x3c41e2(0x17a)])([_0x45294b],null)||[_0x45294b];this[_0x3c41e2(0x440)](_0x298078[0x0]);})),_0x32391b;}};function _0x3787(_0x381a05,_0x268411){const _0x340ca7=_0x340c();return _0x3787=function(_0x3787e9,_0x3300e6){_0x3787e9=_0x3787e9-0x137;let _0x34373a=_0x340ca7[_0x3787e9];return _0x34373a;},_0x3787(_0x381a05,_0x268411);}Ot=Wt([p(0x3,_0x180372(_0x15d871)),p(0x4,_0x180372(D)),p(0x5,_0x180372(_0x44773b)),p(0x6,_0x180372(_0x787113)),p(0x7,_0x180372(_0x2123f3)),p(0x8,_0x180372(_0x2b0039)),p(0x9,_0x180372(Ze)),p(0xa,_0x180372(et)),p(0xb,_0x180372(Ft)),p(0xc,_0x4611a9),p(0xd,_0x2bc808),p(0xe,_0x251714),p(0xf,_0x7677d9),p(0x10,_0x4edbf0(nt))],Ot);let Dt=class extends tt{constructor(_0x52230c,_0x1eb976,_0x24b573,_0x1e01fa,_0x481b6b,_0x571c7e,_0xe0a282,_0x21a7e1,_0x11071d,_0x5e6ed2,_0x27fec7,_0x48d5de,_0x55ff55,_0x519f5b){const _0x4f1f12=_0x44ade9;super(_0x52230c,_0x24b573,_0x1eb976,_0x1e01fa,_0x481b6b,_0x571c7e,_0xe0a282,_0x21a7e1,_0x5e6ed2,_0x27fec7,_0x48d5de,_0x55ff55,_0x519f5b),this[_0x4f1f12(0x42f)]=_0x52230c,this[_0x4f1f12(0x150)]=_0x1eb976,this['_sheetTransformSelectionsService']=_0x11071d;}[_0x44ade9(0x162)](){const _0x1cdfeb=_0x44ade9,_0x905c24=super[_0x1cdfeb(0x162)]();return _0x905c24[_0x1cdfeb(0x3e9)]=_0x197ac8=>this[_0x1cdfeb(0x30d)][_0x1cdfeb(0x46a)](_0x197ac8),_0x905c24;}async[_0x44ade9(0x2af)](){const _0x2c3ace=_0x44ade9,_0x34a132=await super['_init']();return this[_0x2c3ace(0x26d)](this[_0x2c3ace(0x1a6)][_0x2c3ace(0x226)]((_0x21f905,_0x19de6a)=>{const _0x6737af=_0x2c3ace;if(_0x21f905[_0x6737af(0x150)]!==_0x101550[_0x6737af(0x3ac)]||_0x19de6a!=null&&_0x19de6a['fromCollab']||_0x19de6a!=null&&_0x19de6a['onlyLocal'])return;const _0x6fb12e=_0x21f905[_0x6737af(0x1d5)];if((_0x6fb12e==null?void 0x0:_0x6fb12e[_0x6737af(0x288)])!==this['unitID'])return;const _0x48ca78=_0x21f905,_0x1c531e=this['_compressMutationService'][_0x6737af(0x3ee)][_0x6737af(0x18e)](this['_compressMutationService']['interceptor'][_0x6737af(0x1f0)]()[_0x6737af(0x17a)])([_0x48ca78],null)||[_0x48ca78];this[_0x6737af(0x440)](_0x1c531e[0x0]);})),_0x34a132;}};Dt=Wt([p(0x3,_0x180372(_0x15d871)),p(0x4,_0x180372(D)),p(0x5,_0x180372(_0x44773b)),p(0x6,_0x180372(_0x787113)),p(0x7,_0x180372(_0x2123f3)),p(0x8,_0x180372(Qe)),p(0x9,_0x4611a9),p(0xa,_0x2bc808),p(0xb,_0x251714),p(0xc,_0x7677d9),p(0xd,_0x4edbf0(nt))],Dt);var pr=Object[_0x44ade9(0x421)],vr=Object[_0x44ade9(0x418)],Ir=(_0x1f6026,_0x30db88,_0x5f189d,_0x5bf09e)=>{const _0x391034=_0x44ade9;for(var _0x29b263=_0x5bf09e>0x1?void 0x0:_0x5bf09e?vr(_0x30db88,_0x5f189d):_0x30db88,_0x59c9c0=_0x1f6026[_0x391034(0x192)]-0x1,_0x159245;_0x59c9c0>=0x0;_0x59c9c0--)(_0x159245=_0x1f6026[_0x59c9c0])&&(_0x29b263=(_0x5bf09e?_0x159245(_0x30db88,_0x5f189d,_0x29b263):_0x159245(_0x29b263))||_0x29b263);return _0x5bf09e&&_0x29b263&&pr(_0x30db88,_0x5f189d,_0x29b263),_0x29b263;},dt=(_0x2ff1fa,_0x2e12c0)=>(_0xc7b3a2,_0x44cd60)=>_0x2e12c0(_0xc7b3a2,_0x44cd60,_0x2ff1fa);let Ae=class extends _0x1d444{constructor(_0x3f380f,_0x533d3c,_0x3c72a9){const _0x4746ab=_0x44ade9;super(),l(this,_0x4746ab(0x46d),new Map()),l(this,_0x4746ab(0x260),new _0x3827c1()),(this['_injector']=_0x3f380f,this[_0x4746ab(0x21c)]=_0x533d3c,this[_0x4746ab(0x470)]=_0x3c72a9,this['_init']());}['dispose'](){const _0x493a22=_0x44ade9;super[_0x493a22(0x2c9)](),this['_entities'][_0x493a22(0x362)](_0x5e4701=>_0x5e4701['dispose']()),this[_0x493a22(0x46d)][_0x493a22(0x2d5)]();}[_0x44ade9(0x2d7)](_0x8f6dc6){const _0x4072ad=_0x44ade9;var _0x4102c0;return(_0x4102c0=this['_entities'][_0x4072ad(0x28e)](_0x8f6dc6))!=null?_0x4102c0:null;}[_0x44ade9(0x3ad)](_0x5929be){const _0x4e2f4a=_0x44ade9,_0x14ee5d=this[_0x4e2f4a(0x2d7)](_0x5929be);return _0x14ee5d?_0x6cc13d(_0x14ee5d):this[_0x4e2f4a(0x260)][_0x4e2f4a(0x2e0)](_0x5be455(_0x2208be=>_0x2208be[_0x4e2f4a(0x42f)]===_0x5929be));}[_0x44ade9(0x2af)](){const _0x3ef14f=_0x44ade9;this[_0x3ef14f(0x470)][_0x3ef14f(0x1a7)](_0xb0e7e8[_0x3ef14f(0x233)])[_0x3ef14f(0x2e0)](_0x275af9(this['dispose$']),_0x233073(0x10))[_0x3ef14f(0x3dc)](async _0x4b3944=>{const _0x1e779d=_0x3ef14f,_0x276f93=_0x4b3944[_0x1e779d(0x49d)](),_0x568769=await this[_0x1e779d(0x304)](_0x276f93,H[_0x1e779d(0x233)]);this[_0x1e779d(0x46d)]['set'](_0x276f93,_0x568769);}),this[_0x3ef14f(0x470)][_0x3ef14f(0x1a7)](_0xb0e7e8[_0x3ef14f(0x3b0)])[_0x3ef14f(0x2e0)](_0x275af9(this[_0x3ef14f(0x424)]),_0x233073(0x10))[_0x3ef14f(0x2e0)](_0x5be455(_0x52c470=>!_0x52c470[_0x3ef14f(0x49d)]()['startsWith']('__')))['subscribe'](async _0x40f460=>{const _0x57f699=_0x3ef14f,_0x171d5b=_0x40f460[_0x57f699(0x49d)](),_0x5ebe86=await this['_startCollaboration'](_0x171d5b,H[_0x57f699(0x3b0)]);this[_0x57f699(0x46d)][_0x57f699(0x48c)](_0x171d5b,_0x5ebe86);}),_0x527d28(this[_0x3ef14f(0x470)]['getTypeOfUnitDisposed$'](_0xb0e7e8[_0x3ef14f(0x233)]),this['_univerInstanceService'][_0x3ef14f(0x456)](_0xb0e7e8['UNIVER_DOC']))['pipe'](_0x275af9(this[_0x3ef14f(0x424)]))['subscribe'](_0x2d4078=>{const _0x5aa246=_0x3ef14f,_0x303197=_0x2d4078['getUnitId'](),_0x39d55e=this[_0x5aa246(0x46d)][_0x5aa246(0x28e)](_0x303197);_0x39d55e&&(_0x39d55e['dispose'](),this[_0x5aa246(0x46d)][_0x5aa246(0x467)](_0x303197));});}async[_0x44ade9(0x304)](_0x37696e,_0x5d0b8f){const _0x140eb3=_0x44ade9,_0x45e0a6=await this[_0x140eb3(0x21c)]['requireSession'](_0x37696e),_0x524115=this[_0x140eb3(0x181)][_0x140eb3(0x307)](this[_0x140eb3(0x320)](_0x5d0b8f),_0x37696e,_0x5d0b8f,_0x45e0a6);return await _0x524115[_0x140eb3(0x38c)](),this['_entityInit$'][_0x140eb3(0x34e)](_0x524115),_0x524115;}['_getCtorByUniverType'](_0xa75919){const _0x54b0b4=_0x44ade9;switch(_0xa75919){case H[_0x54b0b4(0x3b0)]:return Ot;case H['UNIVER_SHEET']:return Dt;default:throw new Error(_0x54b0b4(0x188)+_0xa75919);}}};Ae=Ir([dt(0x0,_0x180372(_0x15d871)),dt(0x1,_0x180372(ce)),dt(0x2,_0x4c19c5)],Ae);const us=['purple300','jiqing500',_0x44ade9(0x3e6),_0x44ade9(0x385),_0x44ade9(0x416),_0x44ade9(0x1aa)];class Gt extends _0x17cf1f{constructor(){const _0x376416=_0x44ade9;super(...arguments),l(this,_0x376416(0x3d1),new Map()),l(this,'_colorIndex',0x0);}[_0x44ade9(0x1d2)](_0x1d8221){const _0x3f9cfa=_0x44ade9;if(this[_0x3f9cfa(0x3d1)]['has'](_0x1d8221))return this[_0x3f9cfa(0x3d1)]['get'](_0x1d8221);const _0xdeb987=us[this[_0x3f9cfa(0x3c6)]];return this['_colorIndex']=(this[_0x3f9cfa(0x3c6)]+0x1)%us[_0x3f9cfa(0x192)],this[_0x3f9cfa(0x3d1)]['set'](_0x1d8221,_0xdeb987),_0xdeb987;}}var Er=Object[_0x44ade9(0x421)],Cr=Object[_0x44ade9(0x418)],br=(_0xc17dc1,_0x4cfa09,_0x190bd6,_0x2b1564)=>{for(var _0x42930=_0x2b1564>0x1?void 0x0:_0x2b1564?Cr(_0x4cfa09,_0x190bd6):_0x4cfa09,_0x4c6e72=_0xc17dc1['length']-0x1,_0x22bcf1;_0x4c6e72>=0x0;_0x4c6e72--)(_0x22bcf1=_0xc17dc1[_0x4c6e72])&&(_0x42930=(_0x2b1564?_0x22bcf1(_0x4cfa09,_0x190bd6,_0x42930):_0x22bcf1(_0x42930))||_0x42930);return _0x2b1564&&_0x42930&&Er(_0x4cfa09,_0x190bd6,_0x42930),_0x42930;},fe=(_0x6c9e8,_0x524dfc)=>(_0x2c43ad,_0x2db469)=>_0x524dfc(_0x2c43ad,_0x2db469,_0x6c9e8);const Tr=0x12c,Rr=0x64,Or=()=>{let _0x272e73=[],_0x5197d3=!0x1;return _0x3baa14=>{const _0x1e6d44=_0x3787;_0x272e73[_0x1e6d44(0x23e)](_0x3baa14),_0x5197d3||(_0x5197d3=!0x0,setTimeout(()=>{const _0x5eb89f=_0x1e6d44;_0x272e73[_0x5eb89f(0x362)](_0x302434=>_0x302434()),_0x272e73=[],_0x5197d3=!0x1;}));};};let wt=class extends _0x1d444{constructor(_0x3e9858,_0x26c320,_0x475369,_0x18c281,_0x2143c0,_0x44b460,_0x42d4e0,_0x10f7ac){const _0x3eca5b=_0x44ade9;super(),l(this,_0x3eca5b(0x1e6),!0x1),l(this,'_init',!0x1),l(this,_0x3eca5b(0x35f),new _0x531abd(new Map())),l(this,'cursorInfo$',this[_0x3eca5b(0x35f)][_0x3eca5b(0x458)]()),l(this,_0x3eca5b(0x1fc),new _0x531abd([])),l(this,_0x3eca5b(0x137),this[_0x3eca5b(0x1fc)][_0x3eca5b(0x2e0)](_0x4134cc(Tr))),l(this,_0x3eca5b(0x36b),_0x137993((_0x462f67,_0x921d9c)=>{const _0x56ef5a=_0x3eca5b,_0x1bea48={'eventID':_0x2db775[_0x56ef5a(0x1f9)],'data':{'unitID':this[_0x56ef5a(0x42f)],'memberID':this[_0x56ef5a(0x395)][_0x56ef5a(0x31f)](),'selection':_0x225488(_0x462f67,_0x921d9c['range'])}};this[_0x56ef5a(0x395)][_0x56ef5a(0x359)](_0x1bea48,this[_0x56ef5a(0x42f)]);},Rr)),(this['unitID']=_0x3e9858,this['_session']=_0x26c320,this['_injector']=_0x475369,this[_0x3eca5b(0x144)]=_0x18c281,this['_memberService']=_0x2143c0,this[_0x3eca5b(0x470)]=_0x44b460,this[_0x3eca5b(0x1a6)]=_0x42d4e0,this[_0x3eca5b(0x404)]=_0x10f7ac);}get[_0x44ade9(0x3f7)](){const _0x368554=_0x44ade9;return this[_0x368554(0x35f)][_0x368554(0x299)]();}get[_0x44ade9(0x2f2)](){const _0x1ab653=_0x44ade9;return this[_0x1ab653(0x1fc)][_0x1ab653(0x299)]();}[_0x44ade9(0x2c9)](){const _0x3c0794=_0x44ade9;super[_0x3c0794(0x2c9)](),this['_cursorInfo$'][_0x3c0794(0x34e)](new Map()),this[_0x3c0794(0x35f)][_0x3c0794(0x19c)](),this[_0x3c0794(0x1fc)][_0x3c0794(0x34e)]([]),this['_roomMembers$']['complete']();}[_0x44ade9(0x38c)](){const _0x41ec11=_0x44ade9;this[_0x41ec11(0x2af)]||(this[_0x41ec11(0x2af)]=!0x0,this[_0x41ec11(0x395)][_0x41ec11(0x27c)][_0x41ec11(0x2e0)](_0x275af9(this['dispose$']))[_0x41ec11(0x3dc)](_0x26ad96=>{const _0x715df2=_0x41ec11;_0x26ad96===G[_0x715df2(0x19b)]?this['_toggleOnline']():this[_0x715df2(0x2f1)]();}),this['_session']['event$']['pipe'](_0x275af9(this[_0x41ec11(0x424)]))[_0x41ec11(0x3dc)](_0x51f0cb=>{const _0x57febe=_0x41ec11,_0x4fb295=_0x51f0cb[_0x57febe(0x2ac)];_0x4fb295===_0x2db775[_0x57febe(0x1f9)]&&this[_0x57febe(0x3cd)](_0x51f0cb),_0x4fb295===_0x2db775[_0x57febe(0x2f4)]&&this['_onCursorDelete'](_0x51f0cb);}),this[_0x41ec11(0x2dc)](),this[_0x41ec11(0x26d)](this[_0x41ec11(0x1a6)][_0x41ec11(0x226)](_0x5127c2=>{const _0x165ee1=_0x41ec11;if(this[_0x165ee1(0x1e6)]&&_0x5127c2['id']===_0x152456['id']&&_0x5127c2[_0x165ee1(0x1d5)][_0x165ee1(0x288)]===this['unitID']){const _0x547c41=_0x5127c2[_0x165ee1(0x1d5)];this[_0x165ee1(0x36b)](_0x547c41['subUnitId'],_0x547c41[_0x165ee1(0x265)][0x0]);}})));}[_0x44ade9(0x3cd)](_0xf27e1e){const _0x4ac408=_0x44ade9;var _0x2b0f52,_0x382eb2;const {memberID:_0x551652,selection:_0x82057e}=_0xf27e1e[_0x4ac408(0x3c3)],{sheetName:_0x4f77f4,range:_0x553df6}=_0x3b7c25(_0x82057e),_0x4d5a58={'name':(_0x382eb2=(_0x2b0f52=this[_0x4ac408(0x450)]['getMember'](this['unitID'],_0x551652))==null?void 0x0:_0x2b0f52[_0x4ac408(0x4a9)])!=null?_0x382eb2:'Unknown\x20user','range':this[_0x4ac408(0x41f)](_0x4f77f4,_0x553df6),'sheetID':_0x4f77f4,'color':this[_0x4ac408(0x144)][_0x4ac408(0x1d2)](_0x551652),'selection':_0x82057e},_0x529f87=this[_0x4ac408(0x3f7)];_0x529f87['set'](_0x551652,_0x4d5a58),this[_0x4ac408(0x35f)][_0x4ac408(0x34e)](_0x529f87);}['_onCursorDelete'](_0x2e8eb7){const _0x21a272=_0x44ade9,{memberID:_0x1ab4c4}=_0x2e8eb7[_0x21a272(0x3c3)],_0x1645bd=this[_0x21a272(0x3f7)];_0x1645bd[_0x21a272(0x467)](_0x1ab4c4),this[_0x21a272(0x35f)][_0x21a272(0x34e)](_0x1645bd);}['_getMergeRange'](_0x30658f,_0x54e7cf){const _0x99dc6e=_0x44ade9;var _0x14efd0,_0x7d3a9f;const _0x792af8=(_0x7d3a9f=(_0x14efd0=this[_0x99dc6e(0x470)]['getUniverSheetInstance'](this[_0x99dc6e(0x42f)]))==null?void 0x0:_0x14efd0['getSheetBySheetId'](_0x30658f))==null?void 0x0:_0x7d3a9f[_0x99dc6e(0x2f6)]();return(_0x792af8==null?void 0x0:_0x792af8['find'](_0x63fdd8=>_0x2ef7c7[_0x99dc6e(0x35c)](_0x63fdd8,_0x54e7cf)))||_0x54e7cf;}[_0x44ade9(0x2dc)](){const _0x29c0b9=_0x44ade9,_0x2037c3=new _0x4207d6(),_0x5bb4ac=Or(),_0xf3946=()=>{const _0x16253f=_0x3787;_0x2037c3[_0x16253f(0x2c9)]();const _0x19c42c=(_0x4bb97c,_0x514e19,_0x5a8957,_0x3f23b7)=>{const _0x2781a0=_0x16253f;let _0x16a6c9=[];switch(_0x4bb97c['id']){case _0x46ccd7[_0x2781a0(0x270)]:{_0x16a6c9=_0x238bf1(_0x4bb97c,_0x3f23b7);break;}case _0x46ccd7[_0x2781a0(0x1b3)]:{_0x16a6c9=_0x55810d(_0x4bb97c,_0x3f23b7);break;}case _0x46ccd7[_0x2781a0(0x166)]:{_0x16a6c9=_0x47a306(_0x4bb97c,_0x3f23b7);break;}case _0x46ccd7['InsertRangeMoveDownCommandId']:{_0x16a6c9=_0x327694(_0x4bb97c,_0x3f23b7);break;}case _0x46ccd7[_0x2781a0(0x30f)]:{_0x16a6c9=_0x9f95c2(_0x4bb97c,_0x3f23b7);break;}case _0x46ccd7[_0x2781a0(0x45e)]:{_0x16a6c9=_0x41f48b(_0x4bb97c,_0x3f23b7);break;}case _0x46ccd7['MoveRangeCommandId']:{_0x16a6c9=_0x845f5d(_0x4bb97c,_0x3f23b7);break;}case _0x46ccd7[_0x2781a0(0x2eb)]:{_0x16a6c9=_0x310158(_0x4bb97c,_0x3f23b7);break;}case _0x46ccd7[_0x2781a0(0x183)]:{_0x16a6c9=_0x57f47d(_0x4bb97c,_0x3f23b7);break;}}const _0x3d1ff8=_0xa217ee(_0x16a6c9,_0x3f23b7),_0x3e2278=this[_0x2781a0(0x3f7)][_0x2781a0(0x28e)](_0x514e19);if(_0x3e2278&&_0x3d1ff8){const _0x247a58={..._0x3e2278,'range':_0x3d1ff8};this[_0x2781a0(0x3f7)]['set'](_0x514e19,_0x247a58),_0x5bb4ac(()=>{const _0x4dd374=_0x2781a0,_0x535fb2=this[_0x4dd374(0x404)][_0x4dd374(0x198)](_0x3d1ff8,_0x416bec=>(_0x535fb2[_0x4dd374(0x2c9)](),_0x19c42c(_0x416bec,_0x514e19,_0x5a8957,_0x3d1ff8)));_0x2037c3[_0x4dd374(0x377)](_0x535fb2);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x16253f(0x362)]((_0x2cba21,_0x175bf2)=>{const _0x1827b7=_0x16253f,{range:_0x407617,sheetID:_0x3c6fb1}=_0x2cba21,_0x3e3566=this[_0x1827b7(0x404)][_0x1827b7(0x198)](_0x407617,_0x41631c=>(_0x3e3566[_0x1827b7(0x2c9)](),_0x19c42c(_0x41631c,_0x175bf2,_0x3c6fb1,_0x407617)));_0x2037c3['add'](_0x3e3566);});};this[_0x29c0b9(0x26d)](_0x3e741a(this[_0x29c0b9(0x35f)]['subscribe'](()=>{_0xf3946();})));}['_toggleOnline'](){const _0x4be640=_0x44ade9;var _0x1f7354,_0x160c1b;if(this['_online']=!0x0,((_0x1f7354=this[_0x4be640(0x470)][_0x4be640(0x140)]())==null?void 0x0:_0x1f7354[_0x4be640(0x49d)]())!==this[_0x4be640(0x42f)])return;const _0x59d2d0=(_0x160c1b=this['_injector'][_0x4be640(0x28e)](_0x472097)[_0x4be640(0x25b)]())==null?void 0x0:_0x160c1b[0x0],_0x402f78=this[_0x4be640(0x470)][_0x4be640(0x200)](_0xb0e7e8['UNIVER_SHEET'])['getActiveSheet']();_0x59d2d0&&_0x402f78&&this[_0x4be640(0x36b)](_0x402f78['getSheetId'](),_0x59d2d0);}[_0x44ade9(0x2f1)](){const _0x1c7c13=_0x44ade9;this[_0x1c7c13(0x1e6)]=!0x1;}};wt=br([fe(0x2,_0x180372(_0x15d871)),fe(0x3,_0x180372(Gt)),fe(0x4,_0x180372(ae)),fe(0x5,_0x4c19c5),fe(0x6,_0x2bc808),fe(0x7,_0x180372(_0xe89218))],wt);var Dr=Object['defineProperty'],wr=Object[_0x44ade9(0x418)],Pr=(_0x23a83d,_0x3ad2a5,_0x49532c,_0x3dcdc0)=>{const _0x45a001=_0x44ade9;for(var _0x18b29e=_0x3dcdc0>0x1?void 0x0:_0x3dcdc0?wr(_0x3ad2a5,_0x49532c):_0x3ad2a5,_0x4c552e=_0x23a83d[_0x45a001(0x192)]-0x1,_0x246cfc;_0x4c552e>=0x0;_0x4c552e--)(_0x246cfc=_0x23a83d[_0x4c552e])&&(_0x18b29e=(_0x3dcdc0?_0x246cfc(_0x3ad2a5,_0x49532c,_0x18b29e):_0x246cfc(_0x18b29e))||_0x18b29e);return _0x3dcdc0&&_0x18b29e&&Dr(_0x3ad2a5,_0x49532c,_0x18b29e),_0x18b29e;},ie=(_0x541857,_0x1e768b)=>(_0x41e392,_0x43572d)=>_0x1e768b(_0x41e392,_0x43572d,_0x541857);const yr=0x12c,Nr=0x64;let Pt=class extends _0x1d444{constructor(_0x3927a6,_0x5602c7,_0x19f6f9,_0x63d5f4,_0x32e18b,_0x2329db,_0x408262,_0x58faf2,_0x36f278){const _0x583958=_0x44ade9;super(),l(this,_0x583958(0x1e6),!0x1),l(this,_0x583958(0x2af),!0x1),l(this,'_cursorInfo$',new _0x531abd(new Map())),l(this,_0x583958(0x46b),this['_cursorInfo$']['asObservable']()),l(this,_0x583958(0x1fc),new _0x531abd([])),l(this,_0x583958(0x137),this[_0x583958(0x1fc)][_0x583958(0x2e0)](_0x4134cc(yr))),l(this,_0x583958(0x36b),_0x137993(_0x8e094c=>{const _0x3481bb=_0x583958,_0x38f62d={'eventID':_0x2db775['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x3481bb(0x395)]['getMemberID'](),'selection':Hs(_0x8e094c)}};this['_session'][_0x3481bb(0x359)](_0x38f62d,this[_0x3481bb(0x42f)]);},Nr)),(this[_0x583958(0x42f)]=_0x3927a6,this['_session']=_0x5602c7,this[_0x583958(0x181)]=_0x19f6f9,this[_0x583958(0x144)]=_0x63d5f4,this[_0x583958(0x450)]=_0x32e18b,this[_0x583958(0x2e9)]=_0x2329db,this[_0x583958(0x16a)]=_0x408262,this[_0x583958(0x470)]=_0x58faf2,this['_commandService']=_0x36f278);}get[_0x44ade9(0x3f7)](){const _0xed3773=_0x44ade9;return this[_0xed3773(0x35f)][_0xed3773(0x299)]();}get['roomMembers'](){const _0x117540=_0x44ade9;return this['_roomMembers$'][_0x117540(0x299)]();}[_0x44ade9(0x2c9)](){const _0x3f6ba8=_0x44ade9;super[_0x3f6ba8(0x2c9)](),this[_0x3f6ba8(0x35f)][_0x3f6ba8(0x34e)](new Map()),this[_0x3f6ba8(0x35f)][_0x3f6ba8(0x19c)](),this[_0x3f6ba8(0x1fc)][_0x3f6ba8(0x34e)]([]),this[_0x3f6ba8(0x1fc)][_0x3f6ba8(0x19c)]();}['init'](){const _0x17c389=_0x44ade9;this[_0x17c389(0x2af)]||(this[_0x17c389(0x2af)]=!0x0,this[_0x17c389(0x395)][_0x17c389(0x27c)][_0x17c389(0x2e0)](_0x275af9(this[_0x17c389(0x424)]))['subscribe'](_0x177efe=>{const _0x14a1d1=_0x17c389;_0x177efe===G[_0x14a1d1(0x19b)]?this[_0x14a1d1(0x160)]():this['_toggleOffline']();}),this[_0x17c389(0x395)]['event$'][_0x17c389(0x2e0)](_0x275af9(this[_0x17c389(0x424)]))[_0x17c389(0x3dc)](_0x35c8fc=>{const _0x20b7bd=_0x17c389,_0x3c0d41=_0x35c8fc[_0x20b7bd(0x2ac)];_0x3c0d41===_0x2db775[_0x20b7bd(0x1f9)]&&this['_onCursorUpdate'](_0x35c8fc),_0x3c0d41===_0x2db775[_0x20b7bd(0x2f4)]&&this[_0x20b7bd(0x32f)](_0x35c8fc);}),this['disposeWithMe'](this[_0x17c389(0x1a6)][_0x17c389(0x226)](_0x1e742e=>{const _0x13c958=_0x17c389,_0x190d2c=_0x1e742e[_0x13c958(0x1d5)];_0x190d2c!=null&&this[_0x13c958(0x1e6)]&&_0x1e742e['id']===_0x506c91['id']&&_0x190d2c[_0x13c958(0x288)]===this[_0x13c958(0x42f)]&&_0x190d2c[_0x13c958(0x2ef)]===!0x1&&this[_0x13c958(0x36b)](_0x190d2c[_0x13c958(0x379)]);})),this['_syncEditingCollabCursorService'][_0x17c389(0x2e8)]['pipe'](_0x275af9(this[_0x17c389(0x424)]))['subscribe'](_0x360d8d=>{const _0xf896c3=_0x17c389;if((_0x360d8d==null?void 0x0:_0x360d8d[_0xf896c3(0x42f)])!==this[_0xf896c3(0x42f)])return;const _0x3176b7={'eventID':_0x2db775[_0xf896c3(0x1f9)],'data':_0x360d8d};this[_0xf896c3(0x3cd)](_0x3176b7);}),this[_0x17c389(0x26d)](this[_0x17c389(0x1a6)][_0x17c389(0x226)](_0x4a1db3=>{const _0x3200c8=_0x17c389;if(_0x4a1db3['params']==null)return;const _0x466669=_0x4a1db3[_0x3200c8(0x1d5)];if(_0x4a1db3['id']!==_0x27d3d0['id']||_0x466669[_0x3200c8(0x288)]!==this['unitID'])return;const _0x4391f1={'id':'doc.mutation.rich-text-editing','params':_0x466669},_0xb00a4e=this[_0x3200c8(0x3f7)];for(const [_0x47adf2,_0x54b3a9]of _0xb00a4e){const _0x1de869={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x3200c8(0x42f)],'actions':null,'textRanges':_0x54b3a9['ranges']}},_0x18d155=this[_0x3200c8(0x16a)][_0x3200c8(0x2b5)](_0x4391f1,_0x1de869,!0x1);if(_0x458f83(_0x18d155))throw _0x18d155['error'];_0xb00a4e[_0x3200c8(0x48c)](_0x47adf2,{..._0x54b3a9,'ranges':_0x18d155[_0x3200c8(0x483)]['params']['textRanges']});}queueMicrotask(()=>{const _0x38b2f4=_0x3200c8;this['_cursorInfo$'][_0x38b2f4(0x34e)](_0xb00a4e);});})));}[_0x44ade9(0x3cd)](_0x3c388b){const _0x763ba4=_0x44ade9;var _0x312b70,_0x48c055;const {memberID:_0x9a5e25,selection:_0x249776}=_0x3c388b['data'],_0x26ccb0=ar(_0x249776),_0x4da817=(_0x48c055=(_0x312b70=this[_0x763ba4(0x450)]['getMember'](this['unitID'],_0x9a5e25))==null?void 0x0:_0x312b70[_0x763ba4(0x4a9)])!=null?_0x48c055:_0x763ba4(0x389),_0x3425ae={'color':this['_colorAssignService'][_0x763ba4(0x1d2)](_0x9a5e25),'name':_0x4da817,'ranges':_0x26ccb0},_0x46c90c=this[_0x763ba4(0x3f7)];_0x46c90c['set'](_0x9a5e25,_0x3425ae),this[_0x763ba4(0x35f)]['next'](_0x46c90c);}['_onCursorDelete'](_0x5d38fa){const _0x2126c5=_0x44ade9,{memberID:_0x2a4c4b}=_0x5d38fa['data'],_0x429846=this[_0x2126c5(0x3f7)];_0x429846['delete'](_0x2a4c4b),this['_cursorInfo$'][_0x2126c5(0x34e)](_0x429846);}['_toggleOnline'](){const _0x20f986=_0x44ade9;var _0x202f3b;if(this[_0x20f986(0x1e6)]=!0x0,((_0x202f3b=this[_0x20f986(0x470)][_0x20f986(0x140)]())==null?void 0x0:_0x202f3b[_0x20f986(0x49d)]())!==this[_0x20f986(0x42f)])return;const _0x3ef3a0=this['_injector'][_0x20f986(0x28e)](_0x56b8b2)[_0x20f986(0x3bd)]();Array['isArray'](_0x3ef3a0)&&_0x3ef3a0[_0x20f986(0x192)]>0x0&&this[_0x20f986(0x36b)](_0x3ef3a0);}[_0x44ade9(0x2f1)](){const _0x408e4c=_0x44ade9;this[_0x408e4c(0x1e6)]=!0x1;}};Pt=Pr([ie(0x2,_0x180372(_0x15d871)),ie(0x3,_0x180372(Gt)),ie(0x4,_0x180372(ae)),ie(0x5,_0x180372(Ft)),ie(0x6,_0x446e46),ie(0x7,_0x4c19c5),ie(0x8,_0x2bc808)],Pt);var Ur=Object[_0x44ade9(0x421)],Mr=Object[_0x44ade9(0x418)],Ar=(_0x27535e,_0x497665,_0x2d8083,_0x1ef27c)=>{for(var _0x5b8464=_0x1ef27c>0x1?void 0x0:_0x1ef27c?Mr(_0x497665,_0x2d8083):_0x497665,_0x418069=_0x27535e['length']-0x1,_0x40adb9;_0x418069>=0x0;_0x418069--)(_0x40adb9=_0x27535e[_0x418069])&&(_0x5b8464=(_0x1ef27c?_0x40adb9(_0x497665,_0x2d8083,_0x5b8464):_0x40adb9(_0x5b8464))||_0x5b8464);return _0x1ef27c&&_0x5b8464&&Ur(_0x497665,_0x2d8083,_0x5b8464),_0x5b8464;},ft=(_0x1d2dd1,_0x380226)=>(_0x2625cc,_0x69ae09)=>_0x380226(_0x2625cc,_0x69ae09,_0x1d2dd1);let ge=class extends _0x1d444{constructor(_0x33807d,_0x217282,_0x286dd2){const _0x504109=_0x44ade9;super(),l(this,_0x504109(0x46d),new Map()),l(this,_0x504109(0x260),new _0x3827c1()),(this['_univerInstanceService']=_0x33807d,this[_0x504109(0x181)]=_0x217282,this[_0x504109(0x21c)]=_0x286dd2,this[_0x504109(0x2af)]());}[_0x44ade9(0x2c9)](){const _0x15969d=_0x44ade9;super[_0x15969d(0x2c9)](),this[_0x15969d(0x260)][_0x15969d(0x19c)](),this['_entities'][_0x15969d(0x362)](_0x246777=>_0x246777['dispose']());}[_0x44ade9(0x329)](_0x78516d){const _0x4690c0=_0x44ade9;return this[_0x4690c0(0x46d)][_0x4690c0(0x22f)](_0x78516d)?this[_0x4690c0(0x46d)][_0x4690c0(0x28e)](_0x78516d)[_0x4690c0(0x46b)]:this['_entityInit$'][_0x4690c0(0x2e0)](_0xfe2c4(_0x28b65c=>_0x28b65c['unitID']===_0x78516d),_0x5dc56b(_0x12def8=>_0x12def8['cursorInfo$']));}['_init'](){const _0x5bf0e6=_0x44ade9;this[_0x5bf0e6(0x470)][_0x5bf0e6(0x1a7)](_0xb0e7e8[_0x5bf0e6(0x233)])['pipe'](_0x275af9(this['dispose$']))[_0x5bf0e6(0x3dc)](async _0x428995=>{const _0x2e7bca=_0x5bf0e6,_0x4b8371=_0x428995[_0x2e7bca(0x49d)](),_0x4c183c=await this[_0x2e7bca(0x32b)](_0x4b8371);this[_0x2e7bca(0x260)][_0x2e7bca(0x34e)](_0x4c183c),this['_entities'][_0x2e7bca(0x48c)](_0x4b8371,_0x4c183c);}),this[_0x5bf0e6(0x470)][_0x5bf0e6(0x1a7)](_0xb0e7e8[_0x5bf0e6(0x3b0)])[_0x5bf0e6(0x2e0)](_0x275af9(this[_0x5bf0e6(0x424)]))['pipe'](_0xfe2c4(_0x13c5e7=>!_0x13c5e7['getUnitId']()[_0x5bf0e6(0x1e4)]('__')))[_0x5bf0e6(0x3dc)](async _0x423718=>{const _0x176b17=_0x5bf0e6,_0xa25ab=_0x423718[_0x176b17(0x49d)](),_0x3ccb44=await this[_0x176b17(0x276)](_0xa25ab);this[_0x176b17(0x260)][_0x176b17(0x34e)](_0x3ccb44),this['_entities'][_0x176b17(0x48c)](_0xa25ab,_0x3ccb44);}),_0x527d28(this[_0x5bf0e6(0x470)][_0x5bf0e6(0x456)](_0xb0e7e8[_0x5bf0e6(0x3b0)]),this[_0x5bf0e6(0x470)]['getTypeOfUnitDisposed$'](_0xb0e7e8[_0x5bf0e6(0x233)]))[_0x5bf0e6(0x2e0)](_0x275af9(this[_0x5bf0e6(0x424)]))[_0x5bf0e6(0x3dc)](_0x5ea4cc=>{const _0x5924ed=_0x5bf0e6,_0x8e4f93=_0x5ea4cc[_0x5924ed(0x49d)](),_0x2c4d9a=this['_entities'][_0x5924ed(0x28e)](_0x8e4f93);_0x2c4d9a&&(_0x2c4d9a[_0x5924ed(0x2c9)](),this['_entities'][_0x5924ed(0x467)](_0x8e4f93));});}async['_startSheetCollabCursor'](_0x5aa2ea){const _0x218471=_0x44ade9,_0x3d7134=await this[_0x218471(0x21c)]['requireSession'](_0x5aa2ea),_0x8ea3af=this[_0x218471(0x181)][_0x218471(0x307)](wt,_0x5aa2ea,_0x3d7134);return _0x8ea3af[_0x218471(0x38c)](),_0x8ea3af;}async[_0x44ade9(0x276)](_0x1df317){const _0x1fa776=_0x44ade9,_0x230457=await this['_collabSessionService'][_0x1fa776(0x256)](_0x1df317),_0x1d75f8=this[_0x1fa776(0x181)][_0x1fa776(0x307)](Pt,_0x1df317,_0x230457);return _0x1d75f8[_0x1fa776(0x38c)](),_0x1d75f8;}};ge=Ar([_0x2cff12(_0x1e5de5[_0x44ade9(0x427)],ge),ft(0x0,_0x4c19c5),ft(0x1,_0x180372(_0x15d871)),ft(0x2,_0x180372(ce))],ge);const Le=0x14,ds=0xc8,mt=0x4,Lr=0x5;function $r(_0x17c8d4,_0x5afb1b){const _0x1fb22c=_0x44ade9;let {radius:_0x42d198,width:_0x36b021,height:_0x10a12c}=_0x5afb1b;_0x42d198=_0x42d198!=null?_0x42d198:0x0,_0x36b021=_0x36b021!=null?_0x36b021:0x1e,_0x10a12c=_0x10a12c!=null?_0x10a12c:0x1e;let _0x558350=0x0,_0x12673b=0x0,_0x21b870=0x0;_0x558350=_0x12673b=_0x21b870=Math[_0x1fb22c(0x218)](_0x42d198,_0x36b021/0x2,_0x10a12c/0x2),_0x17c8d4['beginPath'](),_0x17c8d4[_0x1fb22c(0x2a6)](_0x558350,0x0),_0x17c8d4[_0x1fb22c(0x35a)](_0x36b021-_0x12673b,0x0),_0x17c8d4['arc'](_0x36b021-_0x12673b,_0x12673b,_0x12673b,Math['PI']*0x3/0x2,0x0,!0x1),_0x17c8d4['lineTo'](_0x36b021,_0x10a12c-_0x21b870),_0x17c8d4[_0x1fb22c(0x47c)](_0x36b021-_0x21b870,_0x10a12c-_0x21b870,_0x21b870,0x0,Math['PI']/0x2,!0x1),_0x17c8d4[_0x1fb22c(0x35a)](0x0,_0x10a12c),_0x17c8d4['lineTo'](0x0,_0x558350),_0x17c8d4[_0x1fb22c(0x47c)](_0x558350,_0x558350,_0x558350,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x17c8d4['closePath'](),_0x5afb1b[_0x1fb22c(0x209)]&&(_0x17c8d4[_0x1fb22c(0x1d0)](),_0x17c8d4[_0x1fb22c(0x3d7)]=_0x5afb1b[_0x1fb22c(0x209)],_0x5afb1b[_0x1fb22c(0x4ad)]==='evenodd'?_0x17c8d4[_0x1fb22c(0x209)]('evenodd'):_0x17c8d4[_0x1fb22c(0x209)](),_0x17c8d4['restore']());}class rt extends _0x425f9c{constructor(_0x519347,_0x3136b5){const _0x107b4d=_0x44ade9;super(_0x519347,_0x3136b5),l(this,_0x107b4d(0x49e)),l(this,_0x107b4d(0x18f)),(this[_0x107b4d(0x49e)]=_0x3136b5==null?void 0x0:_0x3136b5[_0x107b4d(0x49e)],this[_0x107b4d(0x18f)]=_0x3136b5==null?void 0x0:_0x3136b5['text']);}static['drawWith'](_0x3d8625,_0x4377a5){const _0x25cd97=_0x44ade9,{text:_0xd198f8,color:_0x3a6516}=_0x4377a5;_0x3d8625[_0x25cd97(0x1d0)](),_0x3d8625[_0x25cd97(0x1e1)]=_0x25cd97(0x2dd);const _0x19aa68=_0x3d8625[_0x25cd97(0x1bc)](_0xd198f8)[_0x25cd97(0x175)],_0x5c48f8=Math['min'](_0x19aa68+0x2*mt,ds);$r(_0x3d8625,{'height':Le,'radius':0x4,'width':_0x5c48f8,'fill':_0x3a6516,'evented':!0x1}),_0x3d8625[_0x25cd97(0x3d7)]=_0x25cd97(0x327);const _0x737ce7=mt,_0x368e69=Le-Lr,_0xa1f90a=ds-0x2*mt;if(_0x19aa68>_0xa1f90a){let _0x162e2c='',_0x582a3c=0x0;for(const _0x2f6376 of _0xd198f8){const _0xbbb0a2=_0x3d8625[_0x25cd97(0x1bc)](_0x2f6376)['width'];if(_0x582a3c+_0xbbb0a2<=_0xa1f90a-_0x3d8625[_0x25cd97(0x1bc)]('...')['width'])_0x162e2c+=_0x2f6376,_0x582a3c+=_0xbbb0a2;else{_0x162e2c+=_0x25cd97(0x1ba);break;}}_0x3d8625['fillText'](_0x162e2c,_0x737ce7,_0x368e69);}else _0x3d8625[_0x25cd97(0x20e)](_0xd198f8,_0x737ce7,_0x368e69);_0x3d8625[_0x25cd97(0x3a6)]();}['_draw'](_0x4f3a69){rt['drawWith'](_0x4f3a69,this);}}const gt=_0x44ade9(0x1cc),jr=_0x44ade9(0x13a),xr=_0x44ade9(0x33a),De=0x6,Hr=1.5,St=0x4,kr=1.5,Br=_0x44ade9(0x20f);class fs{constructor(_0x237f9b,_0x1604c8,_0x2dc80d,_0x8e574c){const _0xf45443=_0x44ade9;l(this,_0xf45443(0x36c),[]),l(this,_0xf45443(0x376),null),l(this,_0xf45443(0x37a),null),l(this,'_anchorDot',null),l(this,_0xf45443(0x292),null),l(this,'_eventUnsubscribe',null),(this['_cursor']=_0x237f9b,this[_0xf45443(0x1de)]=_0x1604c8,this[_0xf45443(0x47b)]=_0x2dc80d,this[_0xf45443(0x45d)]=_0x8e574c,this['_render']());}set[_0x44ade9(0x454)](_0x1c25a7){const _0x5e2794=_0x44ade9;_0x1c25a7?(this[_0x5e2794(0x1bf)]&&this['_anchorDot'][_0x5e2794(0x48e)](),this[_0x5e2794(0x37a)]&&this[_0x5e2794(0x37a)]['show']()):(this[_0x5e2794(0x1bf)]&&this[_0x5e2794(0x1bf)][_0x5e2794(0x15d)](),this['_textBubble']&&this['_textBubble'][_0x5e2794(0x48e)]());}['dispose'](){const _0x1ba885=_0x44ade9;for(const _0x20f68b of this['_shapes'])_0x20f68b[_0x1ba885(0x2c9)]();this[_0x1ba885(0x37a)]&&this[_0x1ba885(0x37a)]['dispose'](),this[_0x1ba885(0x1bf)]&&this[_0x1ba885(0x1bf)][_0x1ba885(0x2c9)](),this['_anchor']&&this[_0x1ba885(0x376)][_0x1ba885(0x2c9)](),this[_0x1ba885(0x45c)]&&this[_0x1ba885(0x45c)]();}[_0x44ade9(0x177)](){const _0x50b6e9=_0x44ade9;var _0x33db98;const {_docSkeleton:_0x28284b,_document:_0x22fbe0}=this,{color:_0x452f45,name:_0x6cbcd5,ranges:_0x5c4184}=this[_0x50b6e9(0x2a3)],_0x16d73f=_0x22fbe0[_0x50b6e9(0x438)](),{docsLeft:_0x5a5186,docsTop:_0x36eabd}=_0x16d73f,_0x62bfea=new _0x2066cd(_0x16d73f,_0x28284b);for(const {startOffset:_0x42f1c2,endOffset:_0x16bb07,collapsed:_0x557a28,isActive:_0x1705da}of _0x5c4184){const _0x543fac=_0x28284b['findNodePositionByCharIndex'](_0x42f1c2),_0x4cef9b=_0x28284b[_0x50b6e9(0x465)](_0x16bb07);if(_0x1705da){const {contentBoxPointGroup:_0x1a60c4}=_0x62bfea[_0x50b6e9(0x215)](_0x4cef9b,_0x4cef9b);if(_0x1a60c4[_0x50b6e9(0x192)]===0x0)continue;this[_0x50b6e9(0x246)](_0x452f45,_0x1a60c4,_0x5a5186,_0x36eabd,_0x6cbcd5),this['_eventUnsubscribe']=this['_handleHover']();}if(!_0x557a28&&_0x543fac&&_0x4cef9b){if(_0x328ef9(_0x543fac,_0x4cef9b)){const _0x511c49=new _0x286ca0(_0x16d73f,_0x28284b),{pointGroup:_0x5b09c1}=(_0x33db98=_0x511c49['getRangePointData'](_0x543fac,_0x4cef9b))!=null?_0x33db98:{};if(_0x5b09c1==null||_0x5b09c1[_0x50b6e9(0x192)]===0x0)continue;this[_0x50b6e9(0x2c0)](_0x452f45,_0x5b09c1,_0x5a5186,_0x36eabd);}else{const {contentBoxPointGroup:_0x4c6290}=_0x62bfea['getRangePointData'](_0x543fac,_0x4cef9b);if(_0x4c6290[_0x50b6e9(0x192)]===0x0)continue;this[_0x50b6e9(0x468)](_0x452f45,_0x4c6290,_0x5a5186,_0x36eabd);}}}}[_0x44ade9(0x246)](_0x36cc9d,_0x2a9233,_0x10a7f0,_0x12861c,_0x493ecf){const _0x8af3fe=_0x44ade9,_0x355f85=this[_0x8af3fe(0x457)](_0x2a9233),{left:_0x51a7ec,top:_0x58cb18,height:_0x380b80}=_0x355f85,_0x3f88a8=this[_0x8af3fe(0x23d)](),_0x572c8e=kr/_0x3f88a8,_0x5b17a3=new _0x81b34c(gt+_0x110341[_0x8af3fe(0x31d)](De),{'left':_0x51a7ec+_0x10a7f0-_0x572c8e,'top':_0x58cb18+_0x12861c,'height':_0x380b80,'width':Hr,'fill':_0x36cc9d||_0x15026d(_0x110dca[_0x8af3fe(0x3ff)],0x0),'strokeWidth':_0x572c8e,'stroke':Br,'evented':!0x0});this['_anchor']=_0x5b17a3,this[_0x8af3fe(0x1de)][_0x8af3fe(0x23a)](_0x5b17a3,_0x31e632);const _0x2b5093=new _0x81b34c(gt+_0x110341['generateRandomId'](De),{'left':_0x51a7ec+_0x10a7f0-_0x572c8e,'top':_0x58cb18+_0x12861c-St/0x2,'height':St,'width':St,'fill':_0x36cc9d||_0x15026d(_0x110dca[_0x8af3fe(0x3ff)],0x0),'strokeWidth':0x0,'stroke':_0x36cc9d||_0x15026d(_0x110dca[_0x8af3fe(0x3ff)],0x0),'evented':!0x1});this[_0x8af3fe(0x1bf)]=_0x2b5093,this[_0x8af3fe(0x1de)][_0x8af3fe(0x23a)](_0x2b5093,_0x31e632);const _0x84a2f1=new rt(gt+_0x110341[_0x8af3fe(0x31d)](De),{'left':_0x51a7ec+_0x10a7f0-_0x572c8e,'top':_0x58cb18+_0x12861c-Le,'text':_0x493ecf,'color':_0x36cc9d});this['_textBubble']=_0x84a2f1,this[_0x8af3fe(0x1de)][_0x8af3fe(0x23a)](_0x84a2f1,_0x31e632),this[_0x8af3fe(0x454)]=!0x1;}[_0x44ade9(0x375)](){const _0x1cc19b=_0x44ade9,_0x491dfa=this[_0x1cc19b(0x376)][_0x1cc19b(0x155)][_0x1cc19b(0x197)](()=>{const _0x587a9e=_0x1cc19b;this[_0x587a9e(0x454)]=!0x0;}),_0x554004=this[_0x1cc19b(0x376)][_0x1cc19b(0x313)][_0x1cc19b(0x197)](()=>{const _0x5ab6d2=_0x1cc19b;this['_hideTimer']&&clearTimeout(this['_hideTimer']),this[_0x5ab6d2(0x292)]=setTimeout(()=>{const _0x4885e1=_0x5ab6d2;this[_0x4885e1(0x454)]=!0x1;},0x7d0);});return()=>{_0x491dfa['unsubscribe'](),_0x554004['unsubscribe']();};}[_0x44ade9(0x468)](_0x1849ce,_0xc9e38f,_0x43d33b,_0x3b7c73){const _0x35d911=_0x44ade9,_0x1ad77f=new _0x249e91(_0x1849ce)[_0x35d911(0x227)](0.2)[_0x35d911(0x305)](),_0x9e4d3e=new _0x5e6974(jr+_0x110341['generateRandomId'](De),{'pointsGroup':_0xc9e38f,'fill':_0x1ad77f||_0x15026d(_0x110dca['black'],0.2),'left':_0x43d33b,'top':_0x3b7c73,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x35d911(0x23e)](_0x9e4d3e),this[_0x35d911(0x1de)][_0x35d911(0x23a)](_0x9e4d3e,_0x31e632);}[_0x44ade9(0x2c0)](_0x28a4d9,_0x1ca881,_0x56ead4,_0x7b0199){const _0x27fb01=_0x44ade9,_0x2bae42=new _0x249e91(_0x28a4d9)[_0x27fb01(0x227)](0.2)[_0x27fb01(0x305)](),_0x40eeaa=new _0x5e6974(xr+_0x110341[_0x27fb01(0x31d)](De),{'pointsGroup':_0x1ca881,'fill':_0x2bae42||_0x15026d(_0x110dca[_0x27fb01(0x3ff)],0.2),'left':_0x56ead4,'top':_0x7b0199,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x40eeaa),this[_0x27fb01(0x1de)][_0x27fb01(0x23a)](_0x40eeaa,_0x31e632);}[_0x44ade9(0x457)](_0x3cacbc){const _0x4e54e6=_0x3cacbc[0x0],_0x4aab36=_0x4e54e6[0x0],_0x4ff3fc=_0x4e54e6[0x2],{x:_0x50c33d,y:_0x5276d1}=_0x4aab36,{x:_0x3cbe81,y:_0x170477}=_0x4ff3fc;return{'left':_0x50c33d,'top':_0x5276d1,'width':_0x3cbe81-_0x50c33d,'height':_0x170477-_0x5276d1};}[_0x44ade9(0x23d)](){const _0x2ba984=_0x44ade9,{scaleX:_0x441883,scaleY:_0x4c1655}=this[_0x2ba984(0x1de)][_0x2ba984(0x2d1)]();return Math[_0x2ba984(0x21f)](_0x441883,_0x4c1655);}}var Vr=Object['defineProperty'],Fr=Object[_0x44ade9(0x418)],Wr=(_0x1d3596,_0x1947e3,_0x5bf6ff,_0x3fd53a)=>{const _0x12da0e=_0x44ade9;for(var _0x401706=_0x3fd53a>0x1?void 0x0:_0x3fd53a?Fr(_0x1947e3,_0x5bf6ff):_0x1947e3,_0x14982a=_0x1d3596[_0x12da0e(0x192)]-0x1,_0x5c2a22;_0x14982a>=0x0;_0x14982a--)(_0x5c2a22=_0x1d3596[_0x14982a])&&(_0x401706=(_0x3fd53a?_0x5c2a22(_0x1947e3,_0x5bf6ff,_0x401706):_0x5c2a22(_0x401706))||_0x401706);return _0x3fd53a&&_0x401706&&Vr(_0x1947e3,_0x5bf6ff,_0x401706),_0x401706;},ke=(_0x5997d9,_0x483892)=>(_0x5d75ba,_0x23807e)=>_0x483892(_0x5d75ba,_0x23807e,_0x5997d9);let We=class extends _0x1d444{constructor(_0x2d618c,_0x302458,_0x3acc5d,_0x1c5a0d,_0x4fefba){const _0x4fefb3=_0x44ade9;super(),l(this,_0x4fefb3(0x48b),[]),l(this,'_cursors',[]),(this[_0x4fefb3(0x476)]=_0x2d618c,this[_0x4fefb3(0x499)]=_0x302458,this[_0x4fefb3(0x191)]=_0x3acc5d,this[_0x4fefb3(0x1a6)]=_0x1c5a0d,this['_themeService']=_0x4fefba,this[_0x4fefb3(0x2af)]());}[_0x44ade9(0x2af)](){const _0x3c8514=_0x44ade9,_0x5a761d=this[_0x3c8514(0x476)]['unitId'],_0x5a73c9=this[_0x3c8514(0x499)];this[_0x3c8514(0x26d)](_0x570be0([this[_0x3c8514(0x191)]['getCollabCursors$'](_0x5a761d),this[_0x3c8514(0x281)][_0x3c8514(0x49b)]])[_0x3c8514(0x2e0)](_0x49da78(([_0x59db84,_0x4c7040])=>({'skeleton':_0x5a73c9[_0x3c8514(0x25d)](),'cursors':[..._0x59db84['values']()]['flatMap'](_0x543f9b=>({..._0x543f9b,'color':_0x4c7040[_0x543f9b[_0x3c8514(0x49e)]]}))})))[_0x3c8514(0x3dc)](_0x797f56=>{const _0xfc33d3=_0x3c8514;if(this[_0xfc33d3(0x187)](),_0x797f56){const {skeleton:_0xd8aecd,cursors:_0x5ac331}=_0x797f56;this['_updateCollabCursors'](_0xd8aecd,_0x5ac331);}})),this[_0x3c8514(0x3a4)](),this[_0x3c8514(0x47a)]();}[_0x44ade9(0x195)](_0x379117,_0x3fa6c9){const _0x5c79dc=_0x44ade9,{scene:_0x12b758,mainComponent:_0x5055c7}=this[_0x5c79dc(0x476)],_0x25eb5b=_0x3fa6c9['map'](_0x3f3ea1=>new fs(_0x3f3ea1,_0x12b758,_0x379117,_0x5055c7));this['_cursorShapes']=_0x25eb5b,this[_0x5c79dc(0x3cf)]=_0x3fa6c9;}[_0x44ade9(0x48a)](){const _0x93c856=_0x44ade9;this[_0x93c856(0x187)]();const {scene:_0x4a2cc8,mainComponent:_0x24e536}=this['_context'],_0x1f3309=this[_0x93c856(0x499)][_0x93c856(0x25d)](),_0x529cc=this['_cursors'][_0x93c856(0x2aa)](_0xa9292=>new fs(_0xa9292,_0x4a2cc8,_0x1f3309,_0x24e536));this['_cursorShapes']=_0x529cc;}[_0x44ade9(0x187)](){const _0x5673fc=_0x44ade9;this[_0x5673fc(0x48b)]['forEach'](_0xdcf997=>_0xdcf997[_0x5673fc(0x2c9)]()),this[_0x5673fc(0x48b)]=[];}[_0x44ade9(0x47a)](){const _0x1fcbbd=_0x44ade9,_0x340c00=[_0x47953c['id']];this[_0x1fcbbd(0x26d)](this[_0x1fcbbd(0x1a6)][_0x1fcbbd(0x226)](_0x48ef72=>{const _0x3197e5=_0x1fcbbd;_0x340c00['includes'](_0x48ef72['id'])&&_0x48ef72[_0x3197e5(0x1d5)][_0x3197e5(0x288)]===this[_0x3197e5(0x476)][_0x3197e5(0x288)]&&this['_refreshCollabCursors']();}));}['_initResize'](){const _0x4c9593=_0x44ade9;this[_0x4c9593(0x26d)](_0x13c7e9(this[_0x4c9593(0x476)][_0x4c9593(0x31c)][_0x4c9593(0x212)])['pipe'](_0x5be455(_0x3dba55=>_0x3dba55[_0x4c9593(0x150)]===_0x453ffe[_0x4c9593(0x13f)]),_0x3a86b0(0x10))[_0x4c9593(0x3dc)](()=>{const _0x50ca3d=_0x4c9593;this[_0x50ca3d(0x48a)]();}));}};We=Wr([_0x2cff12(_0x1e5de5[_0x44ade9(0x437)],We),ke(0x1,_0x180372(_0x5570b9)),ke(0x2,_0x180372(ge)),ke(0x3,_0x2bc808),ke(0x4,_0x180372(_0x76412c))],We);const Gr=0x1,Yr=1.5;class Kr extends _0x425f9c{constructor(_0x38adbc,_0x668018){const _0x3e2582=_0x44ade9;super(_0x38adbc,_0x668018),l(this,_0x3e2582(0x45a)),l(this,_0x3e2582(0x37d),!0x1),l(this,_0x3e2582(0x17d)),l(this,_0x3e2582(0x1bd),''),l(this,_0x3e2582(0x207),_0x3e2582(0x315)),l(this,_0x3e2582(0x2fd)),(_0x668018&&this['setShapeProps'](_0x668018),this[_0x3e2582(0x155)][_0x3e2582(0x197)](()=>this[_0x3e2582(0x3fb)]({'hovered':!0x0})),this[_0x3e2582(0x313)][_0x3e2582(0x197)](()=>this[_0x3e2582(0x3fb)]({'hovered':!0x1})));}[_0x44ade9(0x3fb)](_0x56d8f7){const _0x5ef64e=_0x44ade9;var _0x1ec0d3,_0xce19a3,_0x397b7b,_0x559c54,_0x10399d,_0x36db6c;this[_0x5ef64e(0x45a)]=(_0x1ec0d3=_0x56d8f7[_0x5ef64e(0x49e)])!=null?_0x1ec0d3:this[_0x5ef64e(0x45a)],this[_0x5ef64e(0x37d)]=(_0xce19a3=_0x56d8f7[_0x5ef64e(0x4a3)])!=null?_0xce19a3:this[_0x5ef64e(0x37d)],this['_range']=(_0x397b7b=_0x56d8f7['range'])!=null?_0x397b7b:this[_0x5ef64e(0x17d)],this[_0x5ef64e(0x1bd)]=(_0x559c54=_0x56d8f7[_0x5ef64e(0x4a9)])!=null?_0x559c54:this[_0x5ef64e(0x1bd)],this['_labelPosition']=(_0x10399d=_0x56d8f7[_0x5ef64e(0x4ae)])!=null?_0x10399d:this[_0x5ef64e(0x207)],this[_0x5ef64e(0x2fd)]=(_0x36db6c=_0x56d8f7['backgroundColor'])!=null?_0x36db6c:this[_0x5ef64e(0x2fd)],this[_0x5ef64e(0x287)]({'width':_0x56d8f7[_0x5ef64e(0x175)],'height':_0x56d8f7[_0x5ef64e(0x1b2)]});}[_0x44ade9(0x2ab)](_0x3d404b){const _0x298c72=_0x44ade9,{row:_0x1e2599,column:_0x5cfec3}=_0x3d404b;if(_0x1e2599>=this[_0x298c72(0x17d)]['startRow']&&_0x1e2599<=this['_range']['endRow']&&_0x5cfec3>=this[_0x298c72(0x17d)][_0x298c72(0x422)]&&_0x5cfec3<=this['_range'][_0x298c72(0x14e)]){this[_0x298c72(0x3fb)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x44ade9(0x310)](_0x2ff61e){return!0x1;}[_0x44ade9(0x1fd)](_0x42a54b){const _0x4af2c3=_0x44ade9;_0x81b34c[_0x4af2c3(0x412)](_0x42a54b,{'width':this[_0x4af2c3(0x175)],'height':this['height'],'strokeWidth':Yr,'stroke':this[_0x4af2c3(0x45a)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x4af2c3(0x37d)]&&(_0x42a54b[_0x4af2c3(0x1d0)](),_0x42a54b['transform'](0x1,0x0,0x0,0x1,this[_0x4af2c3(0x175)],this['_labelPosition']===_0x4af2c3(0x1ce)?0x0:-Le),rt[_0x4af2c3(0x412)](_0x42a54b,{'text':this[_0x4af2c3(0x1bd)],'color':this['_color']}),_0x42a54b[_0x4af2c3(0x3a6)]());}}var Xr=Object['defineProperty'],Jr=Object[_0x44ade9(0x418)],qr=(_0x374c3d,_0x4ca08a,_0x550b8b,_0x155e99)=>{const _0x469347=_0x44ade9;for(var _0x67c8fc=_0x155e99>0x1?void 0x0:_0x155e99?Jr(_0x4ca08a,_0x550b8b):_0x4ca08a,_0x1ca5ca=_0x374c3d[_0x469347(0x192)]-0x1,_0xf075bf;_0x1ca5ca>=0x0;_0x1ca5ca--)(_0xf075bf=_0x374c3d[_0x1ca5ca])&&(_0x67c8fc=(_0x155e99?_0xf075bf(_0x4ca08a,_0x550b8b,_0x67c8fc):_0xf075bf(_0x67c8fc))||_0x67c8fc);return _0x155e99&&_0x67c8fc&&Xr(_0x4ca08a,_0x550b8b,_0x67c8fc),_0x67c8fc;},pt=(_0x4828c5,_0xe9eef6)=>(_0x53de40,_0xaf7e10)=>_0xe9eef6(_0x53de40,_0xaf7e10,_0x4828c5);const zr=0x1389;let yt=class extends _0x1d444{constructor(_0x168558,_0x4444f9,_0x22b929,_0x41889){const _0x1c4d49=_0x44ade9;super(),l(this,'_cursors',new Set()),l(this,_0x1c4d49(0x28f),null),(this[_0x1c4d49(0x476)]=_0x168558,this['_sheetSkeletonManagerService']=_0x4444f9,this[_0x1c4d49(0x191)]=_0x22b929,this['_themeService']=_0x41889,this[_0x1c4d49(0x2af)]());}['_init'](){const _0x1f6e02=_0x44ade9;this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x1f6e02(0x2e0)](_0x24c4a1(this['dispose$']),_0x3dab9b(_0x3ab6bb=>{const _0x34d5f5=_0x1f6e02;if(_0x3ab6bb){const _0x46385d=_0x3ab6bb[_0x34d5f5(0x489)];return _0x570be0(this['_collabCursorController']['getCollabCursors$'](this[_0x34d5f5(0x476)][_0x34d5f5(0x288)]),this[_0x34d5f5(0x281)][_0x34d5f5(0x49b)])[_0x34d5f5(0x2e0)](_0x49da78(([_0x2c8eb9,_0x47ccf0])=>{const _0x1bc25d=new Map();return _0x2c8eb9['forEach']((_0x21afc8,_0x2cf873)=>{const _0xd8548c=_0x3787;if(_0x21afc8[_0xd8548c(0x46f)]===_0x46385d){const _0x5af1f1={..._0x21afc8};_0x5af1f1[_0xd8548c(0x49e)]=_0x47ccf0[_0x21afc8[_0xd8548c(0x49e)]],_0x1bc25d['set'](_0x2cf873,_0x5af1f1);}}),{'skeleton':_0x3ab6bb,'cursors':_0x1bc25d};}));}return _0x6cc13d({'skeleton':null,'cursors':new Map()});}))[_0x1f6e02(0x3dc)](({skeleton:_0x1e6b66,cursors:_0x16e058})=>{const _0x547f21=_0x1f6e02;this['_removeCollabCursors'](),_0x1e6b66&&this[_0x547f21(0x195)](_0x1e6b66,_0x16e058);}),this[_0x1f6e02(0x3b5)][_0x1f6e02(0x27a)][_0x1f6e02(0x3dc)](_0x5726f8=>{const _0x5e0479=_0x1f6e02;if(_0x5726f8==null)return;const {skeleton:_0xb8a048}=_0x5726f8,{scene:_0x48dff4}=this[_0x5e0479(0x476)];_0x48dff4[_0x5e0479(0x2d9)][_0x5e0479(0x197)](_0x137993(_0x7dffb3=>{const _0x28a631=_0x5e0479;var _0x510f5a,_0x198f1c;const {offsetX:_0x722d1a,offsetY:_0x2b6d95}=_0x7dffb3,{x:_0x57aa2a,y:_0x369ed2}=_0x48dff4[_0x28a631(0x494)](_0x4941ed['FromArray']([_0x722d1a,_0x2b6d95])),{scaleX:_0x1e9e07,scaleY:_0x5490b2}=_0x48dff4[_0x28a631(0x2d1)](),_0x424170=_0x48dff4[_0x28a631(0x486)](_0x40a6ae['VIEW_MAIN']),_0x190850=_0x48dff4['getVpScrollXYInfoByPosToVp'](_0x4941ed['FromArray']([_0x57aa2a,_0x369ed2]),_0x424170),_0x542bac=_0xb8a048[_0x28a631(0x1f6)](_0x722d1a,_0x2b6d95,_0x1e9e07,_0x5490b2,_0x190850);((_0x510f5a=this['_lastPointer'])==null?void 0x0:_0x510f5a[_0x28a631(0x1b6)])===_0x542bac['column']&&((_0x198f1c=this[_0x28a631(0x28f)])==null?void 0x0:_0x198f1c[_0x28a631(0x31e)])===_0x542bac[_0x28a631(0x31e)]||this[_0x28a631(0x3cf)][_0x28a631(0x362)](_0x48d120=>{_0x48d120['onMouseMove'](_0x542bac);});},0x64));});}[_0x44ade9(0x195)](_0x4708de,_0xaab59b){const _0x43706b=_0x44ade9;var _0x8cab13;const _0x818ec0=(_0x8cab13=this[_0x43706b(0x3b5)]['getCurrent']())==null?void 0x0:_0x8cab13[_0x43706b(0x439)];if(!_0x818ec0)return;const _0x302b1a=this['_getSheetObject']();if(!_0x302b1a)return;this[_0x43706b(0x3cf)][_0x43706b(0x362)](_0x5d53b0=>{const _0x6d798c=_0x43706b;_0x5d53b0[_0x6d798c(0x2db)]();});const {scene:_0x3b1576}=_0x302b1a,_0x36faa3=Zr(Array[_0x43706b(0x2cd)](_0xaab59b[_0x43706b(0x280)]()))[_0x43706b(0x2aa)](_0x696a75=>{const _0x5f2f56=_0x43706b,{color:_0x46ecf6,range:_0x488c01,name:_0x35194d,selection:_0x55c700,sheetID:_0x1609d1}=_0x696a75,{startColumn:_0x5bb51e,startRow:_0xc1e595,endColumn:_0x5da2b7,endRow:_0x54d9ac}=_0x488c01,_0x16f0fe=_0xa8bbdf(_0xc1e595,_0x5bb51e,_0x3b1576,_0x818ec0),_0x1ff27b=_0xa8bbdf(_0x54d9ac,_0x5da2b7,_0x3b1576,_0x818ec0),{columnHeaderHeightAndMarginTop:_0x11eac4}=_0x818ec0,{startX:_0x2129fe,startY:_0x20503c}=_0x16f0fe,{endX:_0x44304b,endY:_0x1c1422}=_0x1ff27b,_0x1e08a9=_0x44304b-_0x2129fe,_0x5052ee=_0x1c1422-_0x20503c,_0x29f3ec={'labelPosition':_0x20503c-_0x11eac4>=Le?'top':_0x5f2f56(0x1ce),'sheetID':_0x1609d1,'range':_0x488c01,'color':_0x46ecf6,'name':_0x35194d,'selection':_0x55c700,'left':_0x2129fe,'top':_0x20503c,'width':_0x1e08a9,'height':_0x5052ee,'evented':!0x1,'zIndex':zr};return new Kr(_0x35194d,_0x29f3ec);});_0x3b1576['addObjects'](_0x36faa3,Gr),this[_0x43706b(0x3cf)]=new Set(_0x36faa3);}[_0x44ade9(0x187)](){const _0x26b758=_0x44ade9;var _0x369dc2;(_0x369dc2=this[_0x26b758(0x3cf)])==null||_0x369dc2[_0x26b758(0x362)](_0x2226f9=>_0x2226f9[_0x26b758(0x2c9)]());}[_0x44ade9(0x2ca)](){const _0x48cd68=_0x44ade9;return _0x292b3d(this[_0x48cd68(0x476)][_0x48cd68(0x1ff)],this[_0x48cd68(0x476)]);}};yt=qr([pt(0x1,_0x180372(_0xfbaa46)),pt(0x2,_0x180372(ge)),pt(0x3,_0x180372(_0x76412c))],yt);function Zr(_0x2b413f){const _0x31d020=_0x44ade9,_0x341190=new Map();return _0x2b413f[_0x31d020(0x362)](_0x424bd1=>{const _0x37c42b=_0x31d020;if(_0x341190[_0x37c42b(0x22f)](_0x424bd1[_0x37c42b(0x1f1)])){const _0x513bb2=_0x341190['get'](_0x424bd1[_0x37c42b(0x1f1)]);_0x513bb2[_0x37c42b(0x4a9)]+=',\x20'+_0x424bd1[_0x37c42b(0x4a9)];}else _0x341190['set'](_0x424bd1[_0x37c42b(0x1f1)],_0x424bd1);}),Array[_0x31d020(0x2cd)](_0x341190[_0x31d020(0x280)]());}var N=function(){const _0x4fecbd=_0x44ade9;return N=Object[_0x4fecbd(0x336)]||function(_0x301e2a){const _0x3433ea=_0x4fecbd;for(var _0x48f7c3,_0x62c2ea=0x1,_0x1da84c=arguments[_0x3433ea(0x192)];_0x62c2ea<_0x1da84c;_0x62c2ea++){_0x48f7c3=arguments[_0x62c2ea];for(var _0x1fbe5a in _0x48f7c3)Object[_0x3433ea(0x49a)][_0x3433ea(0x216)][_0x3433ea(0x303)](_0x48f7c3,_0x1fbe5a)&&(_0x301e2a[_0x1fbe5a]=_0x48f7c3[_0x1fbe5a]);}return _0x301e2a;},N[_0x4fecbd(0x2da)](this,arguments);},Qr=function(_0x3f1c81,_0x52e131){const _0x599d7e=_0x44ade9;var _0x212d73={};for(var _0x212716 in _0x3f1c81)Object['prototype'][_0x599d7e(0x216)][_0x599d7e(0x303)](_0x3f1c81,_0x212716)&&_0x52e131['indexOf'](_0x212716)<0x0&&(_0x212d73[_0x212716]=_0x3f1c81[_0x212716]);if(_0x3f1c81!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x26162b=0x0,_0x212716=Object[_0x599d7e(0x434)](_0x3f1c81);_0x26162b<_0x212716['length'];_0x26162b++)_0x52e131[_0x599d7e(0x42c)](_0x212716[_0x26162b])<0x0&&Object[_0x599d7e(0x49a)][_0x599d7e(0x38d)]['call'](_0x3f1c81,_0x212716[_0x26162b])&&(_0x212d73[_0x212716[_0x26162b]]=_0x3f1c81[_0x212716[_0x26162b]]);}return _0x212d73;},Yt=_0x19138a(function(_0x2109ad,_0x56c1df){const _0x4a68b7=_0x44ade9;var _0x5b7d0d=_0x2109ad[_0x4a68b7(0x3d3)],_0x2c0c3c=_0x2109ad['id'],_0x1cfbd8=_0x2109ad[_0x4a68b7(0x2d3)],_0xb2cbc9=_0x2109ad[_0x4a68b7(0x29a)],_0x45b7c9=Qr(_0x2109ad,['icon','id',_0x4a68b7(0x2d3),'extend']),_0x3c8781='univerjs-icon\x20univerjs-icon-'[_0x4a68b7(0x17c)](_0x2c0c3c,'\x20')[_0x4a68b7(0x17c)](_0x1cfbd8||'')['trim'](),_0x3d1979=_0x2079f7('_'[_0x4a68b7(0x17c)](so()));return Bs(_0x5b7d0d,''['concat'](_0x2c0c3c),{'defIds':_0x5b7d0d['defIds'],'idSuffix':_0x3d1979[_0x4a68b7(0x285)]},N({'ref':_0x56c1df,'className':_0x3c8781},_0x45b7c9),_0xb2cbc9);});function Bs(_0x395ca3,_0x205c6c,_0x215fc1,_0xc323c4,_0x12560c){const _0x3b0c63=_0x44ade9;return _0x1f11c0(_0x395ca3[_0x3b0c63(0x165)],N(N({'key':_0x205c6c},eo(_0x395ca3,_0x215fc1,_0x12560c)),_0xc323c4),(to(_0x395ca3,_0x215fc1)['children']||[])[_0x3b0c63(0x2aa)](function(_0x2a6917,_0x54887c){const _0x485186=_0x3b0c63;return Bs(_0x2a6917,''[_0x485186(0x17c)](_0x205c6c,'-')[_0x485186(0x17c)](_0x395ca3[_0x485186(0x165)],'-')['concat'](_0x54887c),_0x215fc1,void 0x0,_0x12560c);}));}function eo(_0x1ce04a,_0x5b060d,_0xe132c1){const _0x2a0d88=_0x44ade9;var _0x5ad04b=N({},_0x1ce04a[_0x2a0d88(0x25e)]);_0xe132c1!=null&&_0xe132c1[_0x2a0d88(0x419)]&&_0x5ad04b[_0x2a0d88(0x209)]==='colorChannel1'&&(_0x5ad04b[_0x2a0d88(0x209)]=_0xe132c1['colorChannel1']);var _0x3ccbc4=_0x5b060d[_0x2a0d88(0x36f)];return!_0x3ccbc4||_0x3ccbc4[_0x2a0d88(0x192)]===0x0||(_0x1ce04a[_0x2a0d88(0x165)]==='use'&&_0x5ad04b[_0x2a0d88(0x221)]&&(_0x5ad04b[_0x2a0d88(0x221)]=_0x5ad04b[_0x2a0d88(0x221)]+_0x5b060d[_0x2a0d88(0x2f7)]),Object[_0x2a0d88(0x405)](_0x5ad04b)[_0x2a0d88(0x362)](function(_0x5a0c23){const _0x531df9=_0x2a0d88;var _0x5b2e87=_0x5a0c23[0x0],_0x2e2046=_0x5a0c23[0x1];typeof _0x2e2046==_0x531df9(0x296)&&(_0x5ad04b[_0x5b2e87]=_0x2e2046[_0x531df9(0x3af)](/url\(#(.*)\)/,_0x531df9(0x3aa)[_0x531df9(0x17c)](_0x5b060d['idSuffix'],')')));})),_0x5ad04b;}function to(_0x9ba6c6,_0x832d49){const _0x93c588=_0x44ade9;var _0x26cbcb,_0x5eb71d=_0x832d49[_0x93c588(0x36f)];return!_0x5eb71d||_0x5eb71d[_0x93c588(0x192)]===0x0?_0x9ba6c6:_0x9ba6c6[_0x93c588(0x165)]===_0x93c588(0x2f3)&&(!((_0x26cbcb=_0x9ba6c6[_0x93c588(0x236)])===null||_0x26cbcb===void 0x0)&&_0x26cbcb[_0x93c588(0x192)])?N(N({},_0x9ba6c6),{'children':_0x9ba6c6[_0x93c588(0x236)][_0x93c588(0x2aa)](function(_0x10f2eb){const _0x110815=_0x93c588;return typeof _0x10f2eb[_0x110815(0x25e)]['id']=='string'&&_0x5eb71d&&_0x5eb71d[_0x110815(0x42c)](_0x10f2eb[_0x110815(0x25e)]['id'])>-0x1?N(N({},_0x10f2eb),{'attrs':N(N({},_0x10f2eb[_0x110815(0x25e)]),{'id':_0x10f2eb[_0x110815(0x25e)]['id']+_0x832d49[_0x110815(0x2f7)]})}):_0x10f2eb;})}):_0x9ba6c6;}function so(){const _0x4c278e=_0x44ade9;return Math[_0x4c278e(0x442)]()[_0x4c278e(0x1cb)](0x24)[_0x4c278e(0x18d)](0x2,0x8);}Yt['displayName']=_0x44ade9(0x1ee);var io={'tag':'svg','attrs':{'fill':_0x44ade9(0x25a),'viewBox':'0\x200\x2016\x2016','width':_0x44ade9(0x2fa),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':_0x44ade9(0x383),'d':_0x44ade9(0x34a),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x44ade9(0x2e3),'attrs':{'id':_0x44ade9(0x159)},'children':[{'tag':_0x44ade9(0x350),'attrs':{'fill':'#fff','d':_0x44ade9(0x26f)}}]}]}],'defIds':[_0x44ade9(0x159)]},Vs=_0x19138a(function(_0x377c28,_0x2b0899){const _0x5a1a4e=_0x44ade9;return _0x1f11c0(Yt,Object[_0x5a1a4e(0x336)]({},_0x377c28,{'id':_0x5a1a4e(0x1da),'ref':_0x2b0899,'icon':io}));});Vs[_0x44ade9(0x40d)]='OffLineSingle';var no={'tag':_0x44ade9(0x484),'attrs':{'fill':'none','viewBox':_0x44ade9(0x4a0),'width':_0x44ade9(0x2fa),'height':_0x44ade9(0x2fa)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':'path','attrs':{'stroke':_0x44ade9(0x383),'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':_0x44ade9(0x369),'strokeLinejoin':_0x44ade9(0x369),'strokeWidth':1.2}}]},{'tag':_0x44ade9(0x2f3),'attrs':{},'children':[{'tag':_0x44ade9(0x2e3),'attrs':{'id':_0x44ade9(0x3ae)},'children':[{'tag':'path','attrs':{'fill':_0x44ade9(0x1ab),'d':'M0\x200H16V16H0z','transform':_0x44ade9(0x1b5)}}]}]}],'defIds':[_0x44ade9(0x3ae)]},Fs=_0x19138a(function(_0x2fa27c,_0x49bf5d){const _0x250436=_0x44ade9;return _0x1f11c0(Yt,Object[_0x250436(0x336)]({},_0x2fa27c,{'id':'on-line-single','ref':_0x49bf5d,'icon':no}));});function _0x340c(){const _0x1f2bec=['_fetchMissChangesets','next','symbol','path','_initCloseConn','encode','unknown','incrementRevOfUnit','UNKNOWN_CMD','SUBMIT_CHANGESET','urlChange$','12004BvQVkV','send','lineTo','close$','contains','_change$','fetchMissingChangesets','_cursorInfo$','_joinRoom','onlineStatusIcon','forEach','_awaitingChangeset','exhaustSavingTask','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_getCurrentRevision','_snapshotServerService','onSyncEditingCollabCursor','round','_registerRenderDependencies','_updateLocalCursor','_shapes','unshift','_removeClearOtherTimer','defIds','_initModules','Univer','LICENSE_DISTRO_REJECTED','_retryCount','_collaborationPaused','_handleHover','_anchor','add','_sendHeartbeat','ranges','_textBubble','onTransformRemoteChangesetByIMECache','[OfflineState]:\x20received\x20rejection.','_hovered','_onConflict','USERS_ENTER','_transformSelections','clearInterval','6OaBQFG','currentColor','saveSnapshot','red300','resend','_acknowledgedAwaitingChangeset','updateCursorEvent','Unknown\x20user','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_docSyncEditingCollabCursorService','init','propertyIsEnumerable','Ready','HELLO','IDLE','filter','onMissingChangesets','[PendingState]:\x20received\x20acknowledgement.','change$','_session','newCsEvent','_onConnectionOpen','getUnitStatus$','univer-online-status-title','actions','save\x20fail\x20reason\x20is\x20','getRenderById','/role','_socketReady','stopTime','LOGIN_URL_KEY','Error','onSendChangeset','_lockTransition','_initResize','_undoRedoService','restore','&assign=','INGEST','_initEventListeners','url(#$1','univer-offline','MUTATION','getCollabEntity$','on-line-single_clip0_910_349','replace','UNIVER_DOC','conflict.title','title','transformIMECache','_transitionLocked','_sheetSkeletonManagerService','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','updateOfflineData','PENDING','LIVESHARE_OPERATION','UNIVER_COLLABORATION_CLIENT_PLUGIN','COLLAB_SUBMIT_CHANGESET_URL','APPLY_NON_SEQUENTIAL_REVISION','getDocRanges','downloadEndpointUrl','getUnhiddenWorksheets','split','popstate','[DataLoaderController]','data','collabStatus.conflict','HEARTBEAT_TIMEOUT','_colorIndex','NEW_CHANGESETS','createElement','HEARTBEAT','getUndoRedoMutationParamsCache','76627zGyCXZ','?url=','_onCursorUpdate','[CollaborationSessionService]','_cursors','_decreaseWaiting','_assignedColors','unit-cache-','icon','PSEUDO_FETCH_MISSING_RESULT','visibilityState','_commentService','fillStyle','_candidateSocket','transformStack\x20failed!','_httpService','_queuedRemoteChangesets','subscribe','[CollaborationUndoRedoService]','readAsDataURL','HEADER_MENU','file','awaiting_with_pending','APPLY_PERMISSION_DENIED','_socket$','registerOnClose','transformRemoteChangeset','verdancy600','_state$','location','onTransformSelections','UPDATE_PERMISSION_OBJ','not_collab','addEventListener','_getSnapshotAPIPrefix','interceptor','_waitCount','/collaborator','DEFAULT_FILE_NAME','_scheduleCollaborationTimeoutTimer','onCommentUpdate','_checkMissing','all','_createInitialState','cursorInfo','_cachedData','[SyncedState]:\x20received\x20acknowledgement.','_revisionService','setShapeProps','body','sessionStatus','_snapshotService','black','65271ZhXMYE','deepClone','LICENSE_IMPORT_SIZE_EXCEEDED','disableLocalCache','_refRangeService','entries','startTime','getResourcesRequest','_ws','getCurrentRevOfUnit','connection\x20error','_createSocket','SEND_CHANGESET_TIMEOUT','displayName','_id','/unit/','_getRedoStack','requestParams','drawWith','override','LEAVE','getRoom','blue400','refreshPermission','getOwnPropertyDescriptor','colorChannel1','doc.mutation.rich-text-editing','x-univer-host','createSocket','stringify','FETCH_MISSING','_getMergeRange','COMPRESS_MUTATION_APPLY','defineProperty','startColumn','_getAPIPrefixPath','dispose$','_send','updateMember','Starting','_exhaustRemoteChangesetQueue','_clearHeartbeatTimer','UnitEmbedded','roomInfos','indexOf','session.collaboration-timeout','_sessionStatus$','unitID','FileId','putCollaborators','joinRsp','collaboration_new_changeset','getOwnPropertySymbols','SNAPSHOT_INVALID_SNAPSHOT','COMMENT_UPDATE','Steady','getOffsetConfig','skeleton','_clearScheduledTask','YUUMI_SUBSCRIPTION_NOT_FOUND','collabStatus.notCollab','SNAPSHOT_URL_KEY','fetching\x20missing\x20changesets\x20from\x20','/universer-api/authz','_onLocalMutation','message$','random','capture','_saveCache','5772giKPrl','listRoles','SHOULD_CLOSE_CONN','_getAPIPrefix','with','saveImage','POST','collaborators','_initRequestHeader','_collaborationController','_permissionService','_memberService','joinEvent','/universer-api/snapshot/','liveShareNewHost','_hover','userID','getTypeOfUnitDisposed$','_getAnchorBounding','asObservable','INTERNAL_ERROR','_color','removeMember','_eventUnsubscribe','_document','InsertRowCommandId','loadOfflineData','action','awaiting','[PendingState]:\x20unhandled\x20univer\x20type:\x20','rev','onRemoteChangeset','findNodePositionByCharIndex','Warning','delete','_drawTextRange','APPLY_REVISION_CONFILICT','transformSelections','cursorInfo$','getWorkbookSelections','_entities','OTHER_CLIENTS_EDITING','sheetID','_univerInstanceService','setTimeout','_registerDependencies','/resources','_updateState','socketService','_context','[CollaborationState]:\x20apply\x20error!','YUUMI_URL_COL_OUT_OF_RANGE','_shouldReportTelemetry','_initCommandExecutedListener','_docSkeleton','arc','[OfflineState]:\x20received\x20acknowledgement.','authzUrl','_docTransformIMECacheService','setInterval','_uiPartsService','open$','m2Prime','svg','_transformIMECache','getViewport','_telemetryService','fetchMiss','sheetId','_refreshCollabCursors','_cursorShapes','set','getUnitType','hide','csAckEvent','UNIVER_UNKNOWN','YUUMI_RATE_OVER_LIMIT','[FetchMissState]','toggleOnline','getRelativeToViewportCoord','allowed','c1Prime','registerBeforeClose','searchParams','_docSkeletonManagerService','prototype','currentTheme$','_urlService','getUnitId','color','find','0\x200\x2017\x2016','_scheduleHeartbeat','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','hovered','_loadDoc','ERROR_IMAGE_TYPE','updatePermissionObjEvent','_sendHeartbeatTimer','LIVESHARE_NEW_HOST','name','ALREADY_EXISTS','_getUndoStack','onRemoteAck','fillRule','labelPosition','roomMembers$','url','_clearTimeoutTimer','collab-text-range-','_telemetryInfo','_loadSheet','unitId\x20is\x20not\x20found','_executeRemoteChangeset','resize','getFocusedUnit','_onConnectionFailed','collabStatus.synced','memberID','_colorAssignService','fromCollab','storage','visibilitychange','liveShareOperation','encodeURIComponent','UNKNOWN_CODE','collaboration-session-retry','_handleLeaveEvent','UNAUTHENTICATED','endColumn','status','type','src','copyFileMeta','online','_imageSourceCache','onPointerEnter$','disposeUnit','_handleHeartbeatEvent','_clearRedo','off-line-single_clip0_910_343','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_localCacheService','_saveTaskMap','show','[SyncedState]:\x20received\x20rejection.','setItem','_toggleOnline','_listenToOfflineEvent','_createHandler','_isPermissionRej','_listenToOnlineEvent','tag','InsertColCommandId','_rescheduleHeartbeat','setCurrentUser','transformMutationsWithChangeset','_transformService','_initStatusComponent','FAIL','_getUploadFileURL','getActiveSheet','_throwTelemetryCollaborationNewChangeset','objectID','3581536rMRjzw','workbook','?size=','_clearLocalCache','width','MSG_FOR_ERROR','_render','23890kKWDoK','LIVESHARE_TERMINATE','COMPRESS_MUTATION_SEND','_remoteChangesetQueue','concat','_range','pushState','JOIN','/universer-api/stream/file/upload','_injector','_onOffline','RemoveRowCommandId','_substituteUndoStack','/fetchmissing?from=','_stopTelemetryCollaborationNewChangeset','_removeCollabCursors','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','getSheetBySheetId','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_sendingTimer','deleteCollaborator','substring','fetchThroughInterceptors','text','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_collabCursorController','length','setConfig','_heartbeatTimer','_updateCollabCursors','_getSaveTimeout','subscribeEvent','registerRefRange','univer-online','RETRY_CONNECTING_MAX_COUNT','ONLINE','complete','originalMeta','reconnect','ws://127.0.0.1:8000/universer-api/comb/connect','_getDownloadEndpointURL','transformUndoRedo','enableLocalCache','_logService','_clearOtherTimers','awaitingChangeset','_commandService','getTypeOfUnitAdded$','PERMISSION_DENIED','UnitSnapshot','gold400','#fff','slice','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','image/bmp','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','closeSession','ACTIVE_UNIT_EVENT_CHANNEL','height','DeleteRangeMoveUpCommandId','permissionRejEvent','translate(.97)','column','replaceState','_config','_status$','...','getUnitOnRev','measureText','_name','shouldCloseConn','_anchorDot','YUUMI_UNABLE_LOAD_URL','INVALID_ARGUMENT','135MmhLHo','_sessions','_scheduleSaving','LICENSE_EXPORT_SIZE_EXCEEDED','OFFLINE','_event$','pending','error','sheets','toString','collab-text-anchor-','_setupSubUnitSync','bottom','univer-pro.collaboration-client-socket-service','save','registerHTTPInterceptor','assignAColorForMemberID','_transformPreviousActiveRange','put','params','_collaborationSessionService','[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.','_handleJoinEvent','csRejEvent','off-line-single','_onRemoteChangeset','onlineStatusTitle','[CollaborationEntity]','_scene','/universer-api/comb','[PendingState]:\x20received\x20rejection.','font','toggleOffline','PERMISSION_REJ','startsWith','_initStatusListener','_online','UNIVER_PROJECT','_commentUpdate$','/rev/','_onRemoteRejected','catch','conflict','_updateURLWithCurrentState','UniverIcon','_onMessage','getInterceptPoints','selection','onlineStatus','registerComponent','_createInitialStateImpl','loadSheet','getCellPositionByOffset','session.room-full','OnLineSingle','UPDATE_CURSOR','AUTHZ_URL_KEY','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_roomMembers$','_draw','append','unit','getCurrentUnitForType','/object','collab-client.tooltip.reconnect','_compressMutationService','session.connection-failed','unsubscribe','fetch_missing','_labelPosition','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','fill','socket\x20close','_showConflictNotification','_updateStatus','TOO_MANY_REQUESTS','fillText','rgba(255,\x20255,\x20255,\x200.01)','status$','_members','onTransformChange$','state$','hidden','getRangePointData','hasOwnProperty','headers','min','baseRev','_scheduleTimestamp','_timeoutTimer','_collabSessionService','387359tkxntZ','SNAPSHOT_HAS_BEEN_REMOVED','max','_removeRoom','xlink:href','Undefined','_onJoinRoomEvent','retryConnectingInterval','_onRemoteACK','onCommandExecuted','setAlpha','method','/block/','LICENSE_MAX_UNITS_EXCEEDED','includes','unload','onload','_localStorageService','has','mutations','\x20to\x20','_userManagerService','UNIVER_SHEET','result','editingUnit','children','LIVESHARE_REQUEST_HOST','list','2WrGzNE','addObject','image/jpg','NOT_COLLAB','_getScale','push','getSheetBlock','socket$','offline','_scheduleClearOtherTimer','ERROR_IMAGE','withCredentials','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_drawAnchor','href','_unitID','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','NOT_FOUND','_getLoginPath','HttpExport','_clearCollaborationTimeoutTimer','focused$','_disabled','registerRenderModule','_configService','code','reject','isArray','updateCollaborator','requireSession','cmd','_onRecvEvent','loginUrlKey','none','getCurrentSelections','_collaborationTimeoutTimer','getSkeleton','attrs','_selfUnitIDs','_entityInit$','_retryConnectingTimer','CONNECTOR_DATA_TOO_LARGE','[OfflineState]:\x20received\x20changeset.','_startTelemetryCollaborationNewChangeset','selections','collabStatus.offline','_localeService','_renderManagerService','UNRECOGNIZED','div','_ensureSubject','_unlockTransition','disposeWithMe','HttpImport','M0\x200H16V16H0z','DeleteRangeMoveLeftCommandId','event$','_clearUndo','getSheetId','routeKey','_setupBeforeClosingHandler','_startDocCollabCursor','post','onStarting','_onCombEvent','currentSkeleton$','resolve','sessionStatus$','univer-online-status','_undoStacks','_getSignURL','values','_themeService','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_HTTPService','_collabCursorState$','current','_notificationService','transformByState','unitId','_socketMessageSubscription','enableSingleActiveInstanceLock','COLLAB_WEB_SOCKET_URL','_handler','history','get','_lastPointer','session.will-retry','_unitStatus','_hideTimer','JOINING','837hJcJPx','m1Prime','string','_applyRemoteChangeset','replaceTextRanges','getValue','extend','/new_changes','onlyLocal','isActive','saveChangeset','auth.needGotoLoginAlert','c2Prime','_http','LOCAL_CACHE_INTERVAL','_cursor','SNAPSHOT_SERVER_URL_KEY','_initMergeInterceptor','moveTo','update','onTransformIME','_replayCachedMutations','map','onMouseMove','eventID','EXCHANGE_SIGN_URL_SERVER_URL_KEY','saveOfflineData','_init','[CollaborationSession]','/universer-api/oidc/authpage','getImageSourceCache','create','AWAITING_WITH_PENDING','transformMutation','transformChangesets','_docStateChangeManagerService','close','textRanges','onRendered','syncEditingCollabCursor','_schedule','_syncEditingCollabCursor','1133zQOmhF','_transformUndoRedoStack','_drawRectRange','leaveEvent','/universer-api/file/{fileID}/sign-url','_socketService','_state','UNDEFINED','AWAITING','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_beforeCloseService','dispose','_getSheetObject','_onFetchMissResult','_roomMembers','from','updatePermissionPoint','loadDoc','getCurrentUser','getAncestorScale','_waitForHeartbeatResponse','className','addImageSourceCache','clear','_transformStack','getCollabEntity','subunit','onPointerMove$','apply','makeDirty','_onRefRangeChange','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','BASE64','_disableEditing','pipe','_updateSubUnitFromURLParams','parse','clipPath','reduce','appendMutation','RECV','UNIVER_SLIDE','collabCursorState$','_syncEditingCollabCursorService','snapshot','RemoveColCommandId','uni.network.url-service','onMissedChangesetFetched','_initUnitPermissionChange','isEditing','objectType','_toggleOffline','roomMembers','defs','USERS_LEAVE','univer-online-status-icon','getMergeData','idSuffix','FETCH_MISS','objects','1em','revision','/-/object/-/batch_allowed','_backgroundColor','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','removeParam','UUID','then','collabWebSocketUrl','call','_startCollaboration','toRgbString','saveSheetBlock','createInstance','_type','SYNCED','_unitOnClients','NO_OTHER_CLIENTS_EDITING','getMember','_sheetTransformSelectionsService','clearTimeout','InsertRangeMoveRightCommandId','triggerDblclick','size','_submitChangeset','onPointerLeave$','_docTransformSelectionsService','top','_socket','_replaceFileID','batchAllowed','_singleActiveUnitService','\x20-\x20','getConfig','engine','generateRandomId','row','getMemberID','_getCtorByUniverType','&source=','[CollaborationSessionService]:\x20socket\x20error','executeCommand','onRemoteRej','failed\x20to\x20apply\x20missed\x20changesets!','_tryReconnect','#FFF','collaboration.closeRoom','getCollabCursors$','CHANGESET_REVISION_CONFILICT','_startSheetCollabCursor','_getSendChangesetTimeout','CONFLICT','LIVESHARE_FETCH_OPERATIONS','_onCursorDelete','json','/object/','_incrementRevisionNumber','_messageService','getImage','getItem','assign','localeService','commentUpdateEvent','activeSheet$','collab-rect-range-','debug','COMPLETION_FINISHED','infoRsp','CHANGESET_ACK','_transformRemoteChangesetByIMECache','uploadFileServerUrl','error$','APPLY_REJECT','session','newValue','_handleEvent','_tryEnsureSocket','_updateLocalCache','_pendingMutations','getParam','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','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_onUserLeave'];_0x340c=function(){return _0x1f2bec;};return _0x340c();}Fs['displayName']=_0x44ade9(0x1f8);const ro=_0x44ade9(0x2f5),oo=_0x44ade9(0x399),ao=_0x44ade9(0x27d),co=_0x44ade9(0x199),ho=_0x44ade9(0x3ab),we={'onlineStatusIcon':ro,'onlineStatusTitle':oo,'onlineStatus':ao,'online':co,'offline':ho};function lo(_0x5e09c3){const _0x231238=_0x44ade9;switch(_0x5e09c3){case w['OFFLINE']:return _0x231238(0x266);case w[_0x231238(0x32d)]:return _0x231238(0x3c4);case w[_0x231238(0x2f8)]:return'collabStatus.fetchMiss';case w[_0x231238(0x23c)]:return _0x231238(0x43c);case w['PENDING']:case w[_0x231238(0x2c6)]:case w[_0x231238(0x2b4)]:return'collabStatus.syncing';case w[_0x231238(0x309)]:return _0x231238(0x142);}}function _o(_0x2ef1d7){const _0x1d645a=_0x44ade9,{status$:_0x3602de}=_0x2ef1d7,_0x1cb08c=_0x3a7045(_0x3602de,w['NOT_COLLAB']),_0x27ec0e=_0x24777e(_0x787113),_0x35e658=_0x24777e(ce),_0x52bd35=_0x1cb08c!==w[_0x1d645a(0x1c6)],_0x4b5a13=_0x27ec0e['t'](lo(_0x1cb08c)),_0x4439b5=_0x59a36c(we[_0x1d645a(0x1f2)],{[we[_0x1d645a(0x153)]]:_0x52bd35,[we[_0x1d645a(0x241)]]:!_0x52bd35}),_0x58f066=_0x52bd35?_0x306310['createElement'](Fs,null):_0x306310['createElement'](Vs,null),_0x1d77a9=_0x6e72a5(()=>{const _0xa9cdad=_0x1d645a;_0x52bd35||_0x35e658[_0xa9cdad(0x19e)]();},[_0x52bd35,_0x35e658]);function _0x390979(){const _0x5aad57=_0x1d645a;return _0x306310[_0x5aad57(0x3c8)](_0x5aad57(0x26a),{'className':_0x4439b5,'onClick':_0x1d77a9},_0x306310['createElement'](_0x5aad57(0x26a),{'className':we[_0x5aad57(0x361)]},_0x58f066),_0x306310[_0x5aad57(0x3c8)]('div',{'className':we[_0x5aad57(0x1dc)]},_0x4b5a13));}return _0x52bd35?_0x390979():_0x306310[_0x1d645a(0x3c8)](_0x2cf8ae,{'title':_0x27ec0e['t'](_0x1d645a(0x202))},_0x390979());}var uo=Object[_0x44ade9(0x421)],fo=Object[_0x44ade9(0x418)],mo=(_0x5bbea4,_0x20f388,_0x262de2,_0x42adf0)=>{for(var _0x4b8ac0=_0x42adf0>0x1?void 0x0:_0x42adf0?fo(_0x20f388,_0x262de2):_0x20f388,_0x59f29b=_0x5bbea4['length']-0x1,_0x4d9a04;_0x59f29b>=0x0;_0x59f29b--)(_0x4d9a04=_0x5bbea4[_0x59f29b])&&(_0x4b8ac0=(_0x42adf0?_0x4d9a04(_0x20f388,_0x262de2,_0x4b8ac0):_0x4d9a04(_0x4b8ac0))||_0x4b8ac0);return _0x42adf0&&_0x4b8ac0&&uo(_0x20f388,_0x262de2,_0x4b8ac0),_0x4b8ac0;},Be=(_0x23a85a,_0x18b420)=>(_0x184e4b,_0x1ad6c9)=>_0x18b420(_0x184e4b,_0x1ad6c9,_0x23a85a);let Ue=class extends _0x17cf1f{constructor(_0x143db0,_0x4df715,_0x4b8004,_0x1abe48){const _0x9b1ad6=_0x44ade9;super(),l(this,_0x9b1ad6(0x1b9),new _0x531abd(w[_0x9b1ad6(0x23c)])),(this[_0x9b1ad6(0x470)]=_0x143db0,this[_0x9b1ad6(0x481)]=_0x4df715,this[_0x9b1ad6(0x181)]=_0x4b8004,this[_0x9b1ad6(0x44e)]=_0x1abe48,this[_0x9b1ad6(0x16b)](),this[_0x9b1ad6(0x1e5)]());}[_0x44ade9(0x1e5)](){const _0x2f62e4=_0x44ade9;this['disposeWithMe'](this['_univerInstanceService'][_0x2f62e4(0x24e)]['pipe'](_0x5dc56b(()=>{const _0x4cb293=_0x2f62e4,_0x18981b=this['_univerInstanceService'][_0x4cb293(0x140)]();return _0x18981b?this[_0x4cb293(0x44e)][_0x4cb293(0x3ad)](_0x18981b[_0x4cb293(0x49d)]()):_0x6cc13d(null);}),_0x5dc56b(_0x51d2ab=>_0x51d2ab?_0x51d2ab[_0x2f62e4(0x210)]:_0x6cc13d(w[_0x2f62e4(0x23c)])))[_0x2f62e4(0x3dc)](_0x2e912e=>{const _0x22a70e=_0x2f62e4;this[_0x22a70e(0x1b9)][_0x22a70e(0x34e)](_0x2e912e);}));}['_initStatusComponent'](){const _0x196d86=_0x44ade9;this[_0x196d86(0x26d)](this[_0x196d86(0x481)][_0x196d86(0x1f3)](_0x41ee47[_0x196d86(0x3df)],()=>_0x25174f(go({'status$':this[_0x196d86(0x1b9)][_0x196d86(0x458)]()}),this['_injector'])));}};Ue=mo([Be(0x0,_0x4c19c5),Be(0x1,_0x3cdef0),Be(0x2,_0x180372(_0x15d871)),Be(0x3,_0x180372(Ae))],Ue);function go(_0x52d7b3){const {status$:_0x39a784}=_0x52d7b3;return function(){return _0x306310['createElement'](_o,{'status$':_0x39a784});};}const Ws=_0x8e889b(_0x44ade9(0x2ec));var So=Object[_0x44ade9(0x421)],po=Object[_0x44ade9(0x418)],vo=(_0x4be94d,_0x13f114,_0x49357f,_0x1654c7)=>{const _0x4ea86f=_0x44ade9;for(var _0x3108a0=_0x1654c7>0x1?void 0x0:_0x1654c7?po(_0x13f114,_0x49357f):_0x13f114,_0x1b9b74=_0x4be94d[_0x4ea86f(0x192)]-0x1,_0x57164c;_0x1b9b74>=0x0;_0x1b9b74--)(_0x57164c=_0x4be94d[_0x1b9b74])&&(_0x3108a0=(_0x1654c7?_0x57164c(_0x13f114,_0x49357f,_0x3108a0):_0x57164c(_0x3108a0))||_0x3108a0);return _0x1654c7&&_0x3108a0&&So(_0x13f114,_0x49357f,_0x3108a0),_0x3108a0;},me=(_0x405d74,_0x1c14ba)=>(_0x172f45,_0x432a7d)=>_0x1c14ba(_0x172f45,_0x432a7d,_0x405d74);let Ge=class extends _0x1d444{constructor(_0x1bc4d9,_0x2064bc,_0x3bfa23,_0x210374,_0x5e62e3,_0x4c4241){const _0x5c3afd=_0x44ade9;super(),this[_0x5c3afd(0x49c)]=_0x1bc4d9,this[_0x5c3afd(0x1a3)]=_0x2064bc,this[_0x5c3afd(0x1a6)]=_0x3bfa23,this[_0x5c3afd(0x15b)]=_0x210374,this['_snapshotService']=_0x5e62e3,_0x4c4241?_0x4c4241==null||_0x4c4241['whenReady']()[_0x5c3afd(0x301)](()=>this[_0x5c3afd(0x2af)]()):(this[_0x5c3afd(0x1a3)]['debug'](_0x5c3afd(0x3c2),_0x5c3afd(0x4a2)),this['_init']());}async[_0x44ade9(0x2af)](){const _0x38876c=_0x44ade9,_0x560076=this[_0x38876c(0x49c)][_0x38876c(0x349)](_0x38876c(0x1ff)),_0x5ecdb6=this[_0x38876c(0x49c)][_0x38876c(0x349)]('type');if(!_0x560076||!_0x5ecdb6){this[_0x38876c(0x1a3)]['debug'](_0x38876c(0x3c2),_0x38876c(0x190));return;}switch(Number(_0x5ecdb6)){case H[_0x38876c(0x233)]:{const _0x2b6fc9=await this[_0x38876c(0x13c)](_0x560076);this[_0x38876c(0x1cd)](_0x2b6fc9);break;}case H[_0x38876c(0x3b0)]:{await this['_loadDoc'](_0x560076);break;}default:{this['_logService']['error'](_0x38876c(0x3c2),_0x38876c(0x2c7));break;}}}async[_0x44ade9(0x1cd)](_0x38a552){const _0x4f0b1b=_0x44ade9;await this['_updateSubUnitFromURLParams'](_0x38a552),_0x38a552[_0x4f0b1b(0x339)][_0x4f0b1b(0x2e0)](_0x275af9(this[_0x4f0b1b(0x424)]))[_0x4f0b1b(0x3dc)](_0x2f4aa5=>{const _0x3e6b85=_0x4f0b1b;_0x2f4aa5&&this[_0x3e6b85(0x1ed)](_0x2f4aa5);}),this[_0x4f0b1b(0x49c)][_0x4f0b1b(0x357)]['pipe'](_0x275af9(this[_0x4f0b1b(0x424)]))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x38a552));}['_updateURLWithCurrentState'](_0x8ee9c3,_0x2258c2=!0x1){const _0x2b81ee=_0x44ade9,_0x4cac76=this['_urlService'][_0x2b81ee(0x349)](_0x2b81ee(0x2d8));_0x8ee9c3[_0x2b81ee(0x273)]()!==_0x4cac76&&this[_0x2b81ee(0x49c)]['setParam'](_0x2b81ee(0x2d8),_0x8ee9c3[_0x2b81ee(0x273)](),_0x2258c2);}async[_0x44ade9(0x2e1)](_0x235d44){const _0x2c6d52=_0x44ade9;var _0x2d0be7;const _0x22b3d2=this[_0x2c6d52(0x49c)][_0x2c6d52(0x349)](_0x2c6d52(0x2d8));if(!_0x22b3d2||!_0x235d44[_0x2c6d52(0x189)](_0x22b3d2)){const _0xb6c402=_0x235d44[_0x2c6d52(0x3bf)]()[0x0],_0x4adbde=_0x235d44[_0x2c6d52(0x189)](_0xb6c402);if(!_0x4adbde)return;this[_0x2c6d52(0x1ed)](_0x4adbde,!0x0),await this[_0x2c6d52(0x1a6)][_0x2c6d52(0x323)](_0x226f68['id'],{'unitId':_0x235d44[_0x2c6d52(0x49d)](),'subUnitId':_0xb6c402});return;}((_0x2d0be7=_0x235d44[_0x2c6d52(0x16e)]())==null?void 0x0:_0x2d0be7['getSheetId']())!==_0x22b3d2&&await this[_0x2c6d52(0x1a6)][_0x2c6d52(0x323)](_0x226f68['id'],{'unitId':_0x235d44[_0x2c6d52(0x49d)](),'subUnitId':_0x22b3d2});}async[_0x44ade9(0x13c)](_0x391229){const _0xa0318f=_0x44ade9;let _0x234fb4=0x0;const _0x429b38=await this[_0xa0318f(0x15b)][_0xa0318f(0x45f)](_0x391229);return _0x429b38&&(_0x429b38[_0xa0318f(0x1a5)]||_0x429b38['mutations']['length']!==0x0)&&(_0x234fb4=_0x429b38[_0xa0318f(0x463)]),_0x234fb4===0x0&&this[_0xa0318f(0x1a3)]['debug'](_0xa0318f(0x3c2),_0xa0318f(0x249)),this['_snapshotService'][_0xa0318f(0x1f5)](_0x391229,_0x234fb4);}async[_0x44ade9(0x4a4)](_0x14d006){const _0x527408=_0x44ade9;let _0x24d6bb=0x0;const _0x6f463b=await this['_localCacheService']['loadOfflineData'](_0x14d006);return _0x6f463b&&(_0x6f463b['awaitingChangeset']||_0x6f463b[_0x527408(0x230)][_0x527408(0x192)]!==0x0)&&(_0x24d6bb=_0x6f463b[_0x527408(0x463)]),_0x24d6bb===0x0&&this[_0x527408(0x1a3)][_0x527408(0x33b)]('[DataLoaderController]',_0x527408(0x249)),this[_0x527408(0x3fe)][_0x527408(0x2cf)](_0x14d006,_0x24d6bb);}};Ge=vo([_0x2cff12(_0x1e5de5['Starting'],Ge),me(0x0,Ws),me(0x1,_0x4611a9),me(0x2,_0x2bc808),me(0x3,_0x180372(D)),me(0x4,_0x180372(_0x27b45c)),me(0x5,_0x4edbf0(_0x18edfc))],Ge);var Io=Object[_0x44ade9(0x421)],Eo=Object[_0x44ade9(0x418)],Co=(_0x9f6217,_0x377d19,_0x3719a5,_0x3c2eaf)=>{const _0x1296ea=_0x44ade9;for(var _0x3171ca=_0x3c2eaf>0x1?void 0x0:_0x3c2eaf?Eo(_0x377d19,_0x3719a5):_0x377d19,_0x1fbc63=_0x9f6217[_0x1296ea(0x192)]-0x1,_0x1336d3;_0x1fbc63>=0x0;_0x1fbc63--)(_0x1336d3=_0x9f6217[_0x1fbc63])&&(_0x3171ca=(_0x3c2eaf?_0x1336d3(_0x377d19,_0x3719a5,_0x3171ca):_0x1336d3(_0x3171ca))||_0x3171ca);return _0x3c2eaf&&_0x3171ca&&Io(_0x377d19,_0x3719a5,_0x3171ca),_0x3171ca;},ms=(_0x4958d2,_0x8bd6eb)=>(_0x457f95,_0x3d687f)=>_0x8bd6eb(_0x457f95,_0x3d687f,_0x4958d2);const bo=_0x44ade9(0x3f1),To=_0x44ade9(0x371);let Ye=class extends _0x17cf1f{constructor(_0x4f2fe1,_0x4678f0){const _0x558378=_0x44ade9;super(),this['_univerInstanceService']=_0x4f2fe1,this[_0x558378(0x251)]=_0x4678f0,this[_0x558378(0x2af)]();}[_0x44ade9(0x2af)](){const _0x2245b9=_0x44ade9;this[_0x2245b9(0x26d)](_0x3e741a(this['_univerInstanceService']['focused$'][_0x2245b9(0x3dc)](()=>{const _0x5db228=_0x2245b9;var _0x234197;const _0x30a06b=this[_0x5db228(0x470)][_0x5db228(0x140)]();let _0x6f9449=(_0x234197=this[_0x5db228(0x251)][_0x5db228(0x31b)](bo))!=null?_0x234197:To;_0x30a06b instanceof _0x24fa7c&&(_0x6f9449=_0x30a06b[_0x5db228(0x4a9)]),document[_0x5db228(0x3b2)]=_0x6f9449;})));}};Ye=Co([_0x2cff12(_0x1e5de5[_0x44ade9(0x38e)],Ye),ms(0x0,_0x4c19c5),ms(0x1,_0x1fe23f)],Ye);var Ro=Object[_0x44ade9(0x421)],Oo=Object['getOwnPropertyDescriptor'],Do=(_0x15ab63,_0x3fe690,_0x474ec2,_0xbfde05)=>{const _0x5ef1cf=_0x44ade9;for(var _0x987bf5=_0xbfde05>0x1?void 0x0:_0xbfde05?Oo(_0x3fe690,_0x474ec2):_0x3fe690,_0x3e34df=_0x15ab63[_0x5ef1cf(0x192)]-0x1,_0x339279;_0x3e34df>=0x0;_0x3e34df--)(_0x339279=_0x15ab63[_0x3e34df])&&(_0x987bf5=(_0xbfde05?_0x339279(_0x3fe690,_0x474ec2,_0x987bf5):_0x339279(_0x987bf5))||_0x987bf5);return _0xbfde05&&_0x987bf5&&Ro(_0x3fe690,_0x474ec2,_0x987bf5),_0x987bf5;},vt=(_0x5b0f89,_0x47a11f)=>(_0x422268,_0x4ce9b5)=>_0x47a11f(_0x422268,_0x4ce9b5,_0x5b0f89);let st=class{constructor(_0x3bdc7d,_0xb79d20,_0x30c6c5){const _0x4014eb=_0x44ade9;this[_0x4014eb(0x251)]=_0x3bdc7d,this[_0x4014eb(0x3da)]=_0xb79d20,this['localeService']=_0x30c6c5,this[_0x4014eb(0x38c)]();}[_0x44ade9(0x38c)](){const _0x934619=_0x44ade9;this[_0x934619(0x3da)][_0x934619(0x1d1)]({'priority':0x1,'interceptor':(_0x1f7938,_0x3597e9)=>_0x3597e9(_0x1f7938)['pipe'](_0x557746(async _0x4467c8=>{const _0x38d6f7=_0x934619,_0x5645fd=_0x4467c8;if(_0x5645fd[_0x38d6f7(0x14f)]===0x191&&window['confirm'](this[_0x38d6f7(0x337)]['t'](_0x38d6f7(0x29f)))){const _0x513f56=window[_0x38d6f7(0x149)](window[_0x38d6f7(0x3e8)][_0x38d6f7(0x247)]);window['location'][_0x38d6f7(0x247)]=this[_0x38d6f7(0x24b)]()+_0x38d6f7(0x3cc)+_0x513f56;}return _0x5645fd;}))});}[_0x44ade9(0x24b)](){const _0x435ae0=_0x44ade9;var _0x497cdf,_0x4a814e;const _0x3bb64a=this['_configService'][_0x435ae0(0x31b)](Pn),_0x23f5d4=this[_0x435ae0(0x251)][_0x435ae0(0x31b)](L);return(_0x4a814e=(_0x497cdf=_0x23f5d4==null?void 0x0:_0x23f5d4[_0x435ae0(0x259)])!=null?_0x497cdf:_0x3bb64a)!=null?_0x4a814e:yn;}};st=Do([vt(0x0,_0x1fe23f),vt(0x1,_0x180372(_0x53dfff)),vt(0x2,_0x180372(_0x787113))],st);var wo=Object['defineProperty'],Po=Object[_0x44ade9(0x418)],yo=(_0x3dad6d,_0x5a4b63,_0x49eca5,_0x65ee0a)=>{const _0x5dc22a=_0x44ade9;for(var _0x1ee57f=_0x65ee0a>0x1?void 0x0:_0x65ee0a?Po(_0x5a4b63,_0x49eca5):_0x5a4b63,_0x1f8260=_0x3dad6d[_0x5dc22a(0x192)]-0x1,_0x3551d7;_0x1f8260>=0x0;_0x1f8260--)(_0x3551d7=_0x3dad6d[_0x1f8260])&&(_0x1ee57f=(_0x65ee0a?_0x3551d7(_0x5a4b63,_0x49eca5,_0x1ee57f):_0x3551d7(_0x1ee57f))||_0x1ee57f);return _0x65ee0a&&_0x1ee57f&&wo(_0x5a4b63,_0x49eca5,_0x1ee57f),_0x1ee57f;},gs=(_0x556cbd,_0x4b468a)=>(_0x5830d9,_0x55c460)=>_0x4b468a(_0x5830d9,_0x55c460,_0x556cbd);const No=_0x44ade9(0x1fa),Uo=_0x44ade9(0x43f);let Nt=class extends _0x17cf1f{constructor(_0x48f808,_0x41df92){const _0x20658f=_0x44ade9;super(),this['_HTTPService']=_0x48f808,this[_0x20658f(0x251)]=_0x41df92,this[_0x20658f(0x2a5)]();}['_initMergeInterceptor'](){const _0x89634=_0x44ade9,_0x41894c=this;this['disposeWithMe'](this[_0x89634(0x283)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':_0x4bc933({'isMatch'(_0x56837f){const _0x25335e=_0x89634;var _0x6e51e1;if(_0x56837f[_0x25335e(0x228)]===_0x25335e(0x44b)&&((_0x6e51e1=_0x56837f[_0x25335e(0x411)])!=null&&_0x6e51e1['body'])){const {objectID:_0x19d667,objectType:_0xffe3f8}=_0x56837f[_0x25335e(0x411)][_0x25335e(0x3fc)]||{};if(!_0x19d667||_0xffe3f8===void 0x0)return!0x1;const _0x293a92=_0x41894c['_getAPIPrefixPath']()+'/'+_0xffe3f8+_0x25335e(0x331)+_0x19d667+'/allowed';if(_0x56837f[_0x25335e(0x138)]===_0x293a92)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x46328e){const _0x3bb346=_0x89634;var _0x12dbda;return(_0x12dbda=_0x46328e[_0x3bb346(0x411)])==null?void 0x0:_0x12dbda[_0x3bb346(0x3fc)];},'mergeParamsToRequest'(_0x2f63d6,_0x40daa9){const _0x10844e=_0x89634,_0x2e7ee1=_0x41894c['_getAPIPrefixPath']()+'/-/object/-/batch_allowed',_0x151a85=_0x2f63d6['reduce']((_0x5a683d,_0x4f8979)=>{const _0x4fb71d=_0x3787,{unitID:_0x2c5b1e,objectID:_0x55d54c,objectType:_0x344033,actions:_0x4ddf81}=_0x4f8979;return _0x5a683d[_0x2c5b1e]||(_0x5a683d[_0x2c5b1e]={}),_0x5a683d[_0x2c5b1e][_0x55d54c]||(_0x5a683d[_0x2c5b1e][_0x55d54c]={'objectID':_0x55d54c,'objectType':_0x344033,'actions':[]}),_0x5a683d[_0x2c5b1e][_0x55d54c][_0x4fb71d(0x39a)][_0x4fb71d(0x23e)](..._0x4ddf81),_0x5a683d;},{}),_0x2b5109=[];for(const _0x276bfa in _0x151a85)for(const _0x17a440 in _0x151a85[_0x276bfa]){const {actions:_0x1afdf3,objectType:_0x2d6bca}=_0x151a85[_0x276bfa][_0x17a440],_0x41194a=[...new Set(_0x1afdf3)];_0x2b5109[_0x10844e(0x23e)]({'unitID':_0x276bfa,'objectID':_0x17a440,'objectType':_0x2d6bca,'actions':_0x41194a});}return new _0x564c02(_0x10844e(0x44b),_0x2e7ee1,{'headers':_0x40daa9['headers'],'withCredentials':_0x40daa9[_0x10844e(0x244)],'responseType':_0x40daa9['responseType'],'body':{'requests':_0x2b5109}});}},{'distributeResult'(_0x40a4ff,_0x43a3fd){const _0x351f37=_0x89634,{objectActions:_0x53a203}=_0x40a4ff;return _0x43a3fd[_0x351f37(0x2aa)](_0x53b17b=>{const _0x246532=_0x351f37,{unitID:_0x245d24,objectID:_0x286eea,actions:_0x597c3d}=_0x53b17b,_0x478e2d=_0x53a203['find'](_0x3ecab7=>_0x3ecab7['unitID']===_0x245d24&&_0x3ecab7[_0x246532(0x170)]===_0x286eea),_0x56d4c9=_0x597c3d[_0x246532(0x2aa)](_0x4684ed=>_0x478e2d==null?void 0x0:_0x478e2d[_0x246532(0x39a)][_0x246532(0x49f)](_0x20358a=>_0x20358a[_0x246532(0x460)]===_0x4684ed))[_0x246532(0x391)](_0x4547f4=>!!_0x4547f4);return{'config':_0x53b17b,'result':{'actions':_0x56d4c9,'error':_0x40a4ff['error']}};});}})}));}[_0x44ade9(0x423)](){const _0x5262a9=_0x44ade9;var _0x13c158,_0x35ce32;const _0x1bf053=this[_0x5262a9(0x251)]['getConfig'](No),_0x985979=this[_0x5262a9(0x251)][_0x5262a9(0x31b)](L);return(_0x35ce32=(_0x13c158=_0x985979==null?void 0x0:_0x985979[_0x5262a9(0x47e)])!=null?_0x13c158:_0x1bf053)!=null?_0x35ce32:Uo;}async[_0x44ade9(0x2b3)](_0x581afa){const _0x575f7f=_0x44ade9,_0x2b5693=this[_0x575f7f(0x423)]()+'/'+_0x581afa[_0x575f7f(0x2f0)]+_0x575f7f(0x201);return(await this['_HTTPService'][_0x575f7f(0x277)](_0x2b5693,{'body':_0x581afa}))[_0x575f7f(0x3fc)][_0x575f7f(0x170)]||'';}async[_0x44ade9(0x238)](_0x4e6edb){const _0x2d5b55=_0x44ade9,_0x29416a=this[_0x2d5b55(0x423)]()+'/-/object/list';return(await this[_0x2d5b55(0x283)][_0x2d5b55(0x277)](_0x29416a,{'body':_0x4e6edb}))[_0x2d5b55(0x3fc)][_0x2d5b55(0x2f9)];}async[_0x44ade9(0x2a7)](_0x472be4){const _0x367112=_0x44ade9,_0x32aeb8=this[_0x367112(0x423)]()+'/'+_0x472be4[_0x367112(0x2f0)]+'/object/'+_0x472be4[_0x367112(0x170)];await this['_HTTPService'][_0x367112(0x1d4)](_0x32aeb8,{'body':_0x472be4});}async[_0x44ade9(0x495)](_0x452e20){const _0x1fcf69=_0x44ade9,_0x197e36=this[_0x1fcf69(0x423)]()+'/'+_0x452e20[_0x1fcf69(0x2f0)]+_0x1fcf69(0x331)+_0x452e20[_0x1fcf69(0x170)]+'/allowed';return(await this[_0x1fcf69(0x283)][_0x1fcf69(0x277)](_0x197e36,{'body':_0x452e20}))[_0x1fcf69(0x3fc)][_0x1fcf69(0x39a)];}async[_0x44ade9(0x318)](_0x421ce9){const _0x298a0b=_0x44ade9,_0xc8280=this[_0x298a0b(0x423)]()+_0x298a0b(0x2fc);return(await this[_0x298a0b(0x283)][_0x298a0b(0x277)](_0xc8280,{'body':{'requests':_0x421ce9}}))[_0x298a0b(0x3fc)]['objectActions'];}async[_0x44ade9(0x446)](_0x967973){const _0x2a3b66=_0x44ade9,_0x3474f3=this[_0x2a3b66(0x423)]()+'/'+_0x967973[_0x2a3b66(0x2f0)]+_0x2a3b66(0x39d),_0x484cfa=await this[_0x2a3b66(0x283)][_0x2a3b66(0x277)](_0x3474f3,{'body':_0x967973});return{'roles':_0x484cfa[_0x2a3b66(0x3fc)]['roles'],'actions':_0x484cfa[_0x2a3b66(0x3fc)]['actions']};}async[_0x44ade9(0x18c)](_0x1eb857){const _0x44b8d3=_0x44ade9,_0x1a6608=this[_0x44b8d3(0x423)]()+_0x44b8d3(0x3f0);await this['_HTTPService']['delete'](_0x1a6608,{'params':{'collaboratorID':_0x1eb857['collaboratorID'],'objectID':_0x1eb857[_0x44b8d3(0x170)],'unitID':_0x1eb857[_0x44b8d3(0x42f)]}});}async[_0x44ade9(0x255)](_0x54e020){const _0x36cd67=_0x44ade9,_0x25e327=this['_getAPIPrefixPath']()+_0x36cd67(0x3f0);await this[_0x36cd67(0x283)]['patch'](_0x25e327,{'body':_0x54e020});}async['createCollaborator'](_0x53c65f){const _0x317eea=_0x44ade9,_0x283764=this[_0x317eea(0x423)]()+_0x317eea(0x3f0);await this[_0x317eea(0x283)][_0x317eea(0x277)](_0x283764,{'body':_0x53c65f});}async['listCollaborators'](_0x411156){const _0x53696d=_0x44ade9,_0x3d9eeb=this[_0x53696d(0x423)]()+_0x53696d(0x3f0);return(await this[_0x53696d(0x283)]['get'](_0x3d9eeb,{'params':{'objectID':_0x411156[_0x53696d(0x170)],'unitID':_0x411156[_0x53696d(0x42f)]}}))[_0x53696d(0x3fc)][_0x53696d(0x44c)];}async[_0x44ade9(0x431)](_0x1eb973){const _0x35021a=_0x44ade9,_0x58c316=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x35021a(0x283)][_0x35021a(0x1d4)](_0x58c316,{'body':_0x1eb973});}};Nt=yo([gs(0x0,_0x180372(_0x53dfff)),gs(0x1,_0x180372(_0x1fe23f))],Nt);var Mo=Object[_0x44ade9(0x421)],Ao=Object['getOwnPropertyDescriptor'],Lo=(_0x21c62e,_0x3a0f52,_0x524a7c,_0x2b4a1d)=>{const _0xb3d7f5=_0x44ade9;for(var _0x56ecf7=_0x2b4a1d>0x1?void 0x0:_0x2b4a1d?Ao(_0x3a0f52,_0x524a7c):_0x3a0f52,_0x31495a=_0x21c62e[_0xb3d7f5(0x192)]-0x1,_0x5513c4;_0x31495a>=0x0;_0x31495a--)(_0x5513c4=_0x21c62e[_0x31495a])&&(_0x56ecf7=(_0x2b4a1d?_0x5513c4(_0x3a0f52,_0x524a7c,_0x56ecf7):_0x5513c4(_0x56ecf7))||_0x56ecf7);return _0x2b4a1d&&_0x56ecf7&&Mo(_0x3a0f52,_0x524a7c,_0x56ecf7),_0x56ecf7;},$o=(_0x4ccc86,_0x1371af)=>(_0xae6f60,_0xc3f4c)=>_0x1371af(_0xae6f60,_0xc3f4c,_0x4ccc86);let it=class{constructor(_0x404b0c){const _0x48b98c=_0x44ade9;this[_0x48b98c(0x3da)]=_0x404b0c,this[_0x48b98c(0x44d)]();}[_0x44ade9(0x44d)](){const _0x17be4a=_0x44ade9;this[_0x17be4a(0x3da)][_0x17be4a(0x1d1)]({'interceptor':(_0x551e2d,_0x3d0f29)=>{const _0x2f8c5b=_0x17be4a,_0x587cf2=_0x551e2d[_0x2f8c5b(0x217)],_0x402d3f=_0x512ff6();return _0x402d3f&&_0x587cf2[_0x2f8c5b(0x48c)](_0x2f8c5b(0x41b),_0x402d3f),_0x3d0f29(_0x551e2d);}});}};it=Lo([$o(0x0,_0x180372(_0x53dfff))],it);var jo=Object[_0x44ade9(0x421)],xo=Object[_0x44ade9(0x418)],Ho=(_0xfcbe0f,_0x21b4a4,_0x88b26b,_0x27e719)=>{const _0x56d46c=_0x44ade9;for(var _0x26ba14=_0x27e719>0x1?void 0x0:_0x27e719?xo(_0x21b4a4,_0x88b26b):_0x21b4a4,_0x2e3028=_0xfcbe0f[_0x56d46c(0x192)]-0x1,_0x3c1d8e;_0x2e3028>=0x0;_0x2e3028--)(_0x3c1d8e=_0xfcbe0f[_0x2e3028])&&(_0x26ba14=(_0x27e719?_0x3c1d8e(_0x21b4a4,_0x88b26b,_0x26ba14):_0x3c1d8e(_0x26ba14))||_0x26ba14);return _0x27e719&&_0x26ba14&&jo(_0x21b4a4,_0x88b26b,_0x26ba14),_0x26ba14;},It=(_0x3e8d38,_0x8255d1)=>(_0x3d4e12,_0x31097c)=>_0x8255d1(_0x3d4e12,_0x31097c,_0x3e8d38);const ko=['image/png','image/jpeg',_0x44ade9(0x23b),'image/gif',_0x44ade9(0x1ae)],Bo=0x5*0x400*0x400,Vo=_0x44ade9(0x3b6),Fo=_0x44ade9(0x180),Wo=_0x44ade9(0x2ad),Go=_0x44ade9(0x2c2);let Ut=class{constructor(_0x355f7f,_0x3799c7,_0x5e0458){const _0x3100bf=_0x44ade9;l(this,'_waitCount',0x0),l(this,_0x3100bf(0x35d),new _0x3827c1()),l(this,_0x3100bf(0x394),this[_0x3100bf(0x35d)]),l(this,_0x3100bf(0x154),new Map()),(this[_0x3100bf(0x3da)]=_0x355f7f,this[_0x3100bf(0x251)]=_0x3799c7,this['_univerInstanceService']=_0x5e0458);}['setWaitCount'](_0x15a8a0){const _0x3e605a=_0x44ade9;this[_0x3e605a(0x3ef)]=_0x15a8a0,this['_change$']['next'](_0x15a8a0);}[_0x44ade9(0x2b2)](_0x405243,_0x3fbf7d){const _0x4605e5=_0x44ade9;if(_0x3fbf7d===_0x21fbb6[_0x4605e5(0x2de)]){const _0xe75171=new Image();return _0xe75171[_0x4605e5(0x151)]=_0x405243,_0xe75171;}return this['_imageSourceCache'][_0x4605e5(0x28e)](_0x405243);}[_0x44ade9(0x2d4)](_0x3e4702,_0xf7d005,_0x403535){const _0x40772d=_0x44ade9;_0xf7d005===_0x21fbb6['BASE64']||_0x403535==null||this[_0x40772d(0x154)][_0x40772d(0x48c)](_0x3e4702,_0x403535);}async[_0x44ade9(0x334)](_0x1664bd){const _0x1ac6a0=_0x44ade9;try{const _0x38a158=this['_replaceFileID'](this[_0x1ac6a0(0x27f)](),''+_0x1664bd),_0xce2475=(await this[_0x1ac6a0(0x3da)][_0x1ac6a0(0x28e)](_0x38a158))[_0x1ac6a0(0x3fc)];if(_0xce2475['error']&&_0xce2475['error'][_0x1ac6a0(0x252)]===As['OK']){const _0x3f14c6=new URL(_0xce2475[_0x1ac6a0(0x138)],this['_getDownloadEndpointURL']())['toString']();return Promise[_0x1ac6a0(0x27b)](_0x3f14c6);}return Promise[_0x1ac6a0(0x253)](_0xce2475['error']);}catch(_0x46f2a5){return Promise[_0x1ac6a0(0x253)](_0x46f2a5);}}async[_0x44ade9(0x44a)](_0x1b22d0){const _0x108f42=_0x44ade9;let _0x123af4='';if(!ko[_0x108f42(0x22b)](_0x1b22d0['type']))return this[_0x108f42(0x3d0)](),Promise[_0x108f42(0x253)](new Error(_0x44d395[_0x108f42(0x4a5)]));if(_0x1b22d0[_0x108f42(0x311)]>Bo)return this[_0x108f42(0x3d0)](),Promise[_0x108f42(0x253)](new Error(_0x44d395['ERROR_EXCEED_SIZE']));try{const _0x575680=new FormData();_0x575680[_0x108f42(0x1fe)](_0x108f42(0x3e0),_0x1b22d0);const _0x5bba04=this[_0x108f42(0x470)][_0x108f42(0x140)](),_0x1f6e98=_0x5bba04==null?void 0x0:_0x5bba04[_0x108f42(0x49d)]();if(!_0x1f6e98)throw new Error(_0x108f42(0x13d));const _0x2e2ac2=this[_0x108f42(0x16d)]()+_0x108f42(0x173)+_0x1b22d0[_0x108f42(0x311)][_0x108f42(0x1cb)]()+_0x108f42(0x321)+Ls[_0x108f42(0x42a)]+_0x108f42(0x3a7)+encodeURIComponent(_0x1f6e98),_0x1be888=await(await fetch(_0x2e2ac2,{'method':'POST','body':_0x575680}))[_0x108f42(0x330)]();if(typeof _0x1be888[_0x108f42(0x430)]!=_0x108f42(0x296))return this[_0x108f42(0x3d0)](),Promise[_0x108f42(0x253)](new Error(_0x44d395['ERROR_IMAGE']));_0x123af4=_0x1be888[_0x108f42(0x430)];}catch{return this[_0x108f42(0x3d0)](),Promise[_0x108f42(0x253)](new Error(_0x44d395[_0x108f42(0x243)]));}return new Promise((_0x5d697a,_0x405dac)=>{const _0x51f0c6=_0x108f42,_0x502d71=new FileReader();_0x502d71[_0x51f0c6(0x3de)](_0x1b22d0),_0x502d71[_0x51f0c6(0x22d)]=_0x5bfc62=>{const _0x377f2f=_0x51f0c6;var _0x33480b;const _0x215d2c=(_0x33480b=_0x5bfc62['target'])==null?void 0x0:_0x33480b[_0x377f2f(0x234)];if(_0x215d2c==null){this[_0x377f2f(0x3d0)](),_0x405dac(new Error(_0x44d395[_0x377f2f(0x243)]));return;}const _0x3783d=_0x110341[_0x377f2f(0x31d)](0x6);_0x5d697a({'imageId':_0x3783d,'imageSourceType':_0x21fbb6[_0x377f2f(0x300)],'source':_0x123af4,'base64Cache':_0x215d2c,'status':_0x44d395['SUCCUSS']}),this[_0x377f2f(0x3d0)]();};});}['_getUploadFileURL'](){const _0x5e6a9b=_0x44ade9;var _0x306764,_0x434846;const _0x4e783d=this[_0x5e6a9b(0x251)][_0x5e6a9b(0x31b)](Vo),_0x503eac=this[_0x5e6a9b(0x251)][_0x5e6a9b(0x31b)](L);return(_0x434846=(_0x306764=_0x503eac==null?void 0x0:_0x503eac[_0x5e6a9b(0x340)])!=null?_0x306764:_0x4e783d)!=null?_0x434846:Fo;}[_0x44ade9(0x27f)](){const _0x39a938=_0x44ade9;var _0x18ac71,_0x165569;const _0x4b1e8f=this[_0x39a938(0x251)]['getConfig'](Wo),_0x37c5eb=this[_0x39a938(0x251)]['getConfig'](L);return(_0x165569=(_0x18ac71=_0x37c5eb==null?void 0x0:_0x37c5eb['signUrlServerUrl'])!=null?_0x18ac71:_0x4b1e8f)!=null?_0x165569:Go;}[_0x44ade9(0x1a0)](){const _0x2136e7=_0x44ade9;var _0x3a8ac4;const _0x4f2d33=this[_0x2136e7(0x251)][_0x2136e7(0x31b)](L);return(_0x3a8ac4=_0x4f2d33==null?void 0x0:_0x4f2d33[_0x2136e7(0x3be)])!=null?_0x3a8ac4:location['origin'];}[_0x44ade9(0x317)](_0xd7b853,_0x168d7e){const _0x20b7f2=_0x44ade9;return _0xd7b853[_0x20b7f2(0x3af)]('{fileID}',_0x168d7e);}[_0x44ade9(0x3d0)](){const _0x365ea9=_0x44ade9;this['_waitCount']-=0x1,this[_0x365ea9(0x35d)][_0x365ea9(0x34e)](this[_0x365ea9(0x3ef)]);}};Ut=Ho([It(0x0,_0x180372(_0x53dfff)),It(0x1,_0x1fe23f),It(0x2,_0x180372(_0x4c19c5))],Ut);var Yo=Object[_0x44ade9(0x421)],Ko=Object[_0x44ade9(0x418)],Xo=(_0x414003,_0x475dc2,_0x24b2fb,_0x587dad)=>{const _0x1d496a=_0x44ade9;for(var _0x318ffb=_0x587dad>0x1?void 0x0:_0x587dad?Ko(_0x475dc2,_0x24b2fb):_0x475dc2,_0x7fb5fd=_0x414003[_0x1d496a(0x192)]-0x1,_0x548615;_0x7fb5fd>=0x0;_0x7fb5fd--)(_0x548615=_0x414003[_0x7fb5fd])&&(_0x318ffb=(_0x587dad?_0x548615(_0x475dc2,_0x24b2fb,_0x318ffb):_0x548615(_0x318ffb))||_0x318ffb);return _0x587dad&&_0x318ffb&&Yo(_0x475dc2,_0x24b2fb,_0x318ffb),_0x318ffb;},Pe=(_0x5a4e04,_0x5a9a92)=>(_0x219bcb,_0x1cabb3)=>_0x5a9a92(_0x219bcb,_0x1cabb3,_0x5a4e04);let Ke=class extends _0x1d444{constructor(_0x49247c,_0xd1efbd,_0x780b86,_0x2c4a76,_0x50755b){const _0x2ec021=_0x44ade9;super(),this[_0x2ec021(0x181)]=_0x49247c,this[_0x2ec021(0x470)]=_0xd1efbd,this['_permissionService']=_0x780b86,this['_collaborationSessionService']=_0x2c4a76,this[_0x2ec021(0x267)]=_0x50755b,this[_0x2ec021(0x2ee)](),this[_0x2ec021(0x351)]();}[_0x44ade9(0x351)](){const _0x57804c=_0x44ade9,_0x2232f4=async _0x1882cc=>{const _0x5d0938=_0x3787;(await this['_collaborationSessionService'][_0x5d0938(0x256)](_0x1882cc))[_0x5d0938(0x271)][_0x5d0938(0x2e0)](_0x5be455(_0x3f8635=>_0x3f8635[_0x5d0938(0x2ac)]===_0x2db775[_0x5d0938(0x447)]),_0x24c4a1(this['dispose$']))[_0x5d0938(0x3dc)](_0x3a61af=>{const _0x14147f=_0x5d0938,_0x44823f=_0x3a61af,{reason:_0x174028}=_0x44823f[_0x14147f(0x3c3)];this['_injector'][_0x14147f(0x28e)](_0x251714)[_0x14147f(0x15d)]({'type':_0x73f118['Error'],'content':this['_localeService']['t'](_0x14147f(0x328))+'('+_0x174028+')'}),this[_0x14147f(0x44f)][_0x14147f(0x2ce)](new _0x4f24bc(_0x1882cc)['id'],!0x1),this['_collaborationSessionService'][_0x14147f(0x1b0)](_0x1882cc);});};_0x527d28(this['_univerInstanceService'][_0x57804c(0x1a7)](_0xb0e7e8[_0x57804c(0x233)]),this['_univerInstanceService'][_0x57804c(0x1a7)](_0xb0e7e8[_0x57804c(0x3b0)]))[_0x57804c(0x2e0)](_0x49da78(_0x15403c=>_0x15403c[_0x57804c(0x49d)]()),_0x5be455(_0x8c6669=>!_0x52dbe5(_0x8c6669)),_0x24c4a1(this[_0x57804c(0x424)]))[_0x57804c(0x3dc)](_0x34597e=>{_0x2232f4(_0x34597e);});}[_0x44ade9(0x2ee)](){const _0x4cf273=_0x44ade9,_0x1e53b8=async _0x19eb81=>{const _0xa19b1a=_0x3787;(await this[_0xa19b1a(0x1d6)]['requireSession'](_0x19eb81))[_0xa19b1a(0x271)]['pipe'](_0x5be455(_0xf02abb=>_0xf02abb[_0xa19b1a(0x2ac)]===_0x2db775[_0xa19b1a(0x3ea)]),_0x24c4a1(this['dispose$']))[_0xa19b1a(0x3dc)](_0x6ce833=>{const _0x547df3=_0xa19b1a,_0x262246=_0x6ce833,{objectId:_0x2661db}=_0x262246[_0x547df3(0x3c3)],_0x66fa32=this['_injector']['get'](_0x359d53);_0x2661db===_0x19eb81?_0x66fa32['initWorkbookPermissionChange'](_0x19eb81):_0x66fa32[_0x547df3(0x417)](_0x19eb81,_0x2661db);});};_0x527d28(this[_0x4cf273(0x470)]['getTypeOfUnitAdded$'](_0xb0e7e8['UNIVER_SHEET']),this[_0x4cf273(0x470)][_0x4cf273(0x1a7)](_0xb0e7e8[_0x4cf273(0x3b0)]))[_0x4cf273(0x2e0)](_0x49da78(_0x4aa118=>_0x4aa118['getUnitId']()),_0x5be455(_0x577647=>!_0x52dbe5(_0x577647)),_0x24c4a1(this[_0x4cf273(0x424)]))['subscribe'](_0xdcf4d=>{_0x1e53b8(_0xdcf4d);});}};Ke=Xo([_0x2cff12(_0x1e5de5['Starting'],Ke),Pe(0x0,_0x180372(_0x15d871)),Pe(0x1,_0x4c19c5),Pe(0x2,_0x7677d9),Pe(0x3,_0x180372(ce)),Pe(0x4,_0x180372(_0x787113))],Ke);var Jo=Object[_0x44ade9(0x421)],qo=Object[_0x44ade9(0x418)],zo=(_0xb10ec4,_0x17b482,_0x53bbd8,_0x4efe8d)=>{for(var _0x5eda36=_0x4efe8d>0x1?void 0x0:_0x4efe8d?qo(_0x17b482,_0x53bbd8):_0x17b482,_0x1ab96c=_0xb10ec4['length']-0x1,_0x40e99d;_0x1ab96c>=0x0;_0x1ab96c--)(_0x40e99d=_0xb10ec4[_0x1ab96c])&&(_0x5eda36=(_0x4efe8d?_0x40e99d(_0x17b482,_0x53bbd8,_0x5eda36):_0x40e99d(_0x5eda36))||_0x5eda36);return _0x4efe8d&&_0x5eda36&&Jo(_0x17b482,_0x53bbd8,_0x5eda36),_0x5eda36;},Ss=(_0x26241b,_0x358ff9)=>(_0x367206,_0x38efd9)=>_0x358ff9(_0x367206,_0x38efd9,_0x26241b);let Mt=class{constructor(_0x2d6930,_0x5e98e0){const _0x6a04fc=_0x44ade9;this[_0x6a04fc(0x251)]=_0x2d6930,this[_0x6a04fc(0x3da)]=_0x5e98e0;}async[_0x44ade9(0x1bb)](_0x348f5c,_0x1d046f){const _0x4e6c8d=_0x44ade9;var _0xabf6a0;const {unitID:_0xd6d73d,type:_0x4af28f,revision:_0x503016=0x0}=_0x1d046f,_0xfa3f6a=this[_0x4e6c8d(0x3ed)]()+'/'+_0x4af28f+'/unit/'+_0xd6d73d+_0x4e6c8d(0x1e9)+_0x503016,_0xae2609=(await this[_0x4e6c8d(0x3da)][_0x4e6c8d(0x28e)](_0xfa3f6a))['body'],_0x5d5b27=(_0xabf6a0=_0xae2609[_0x4e6c8d(0x2ea)])==null?void 0x0:_0xabf6a0[_0x4e6c8d(0x172)];if(_0x5d5b27){const _0x5b547d=_0x5d5b27==null?void 0x0:_0x5d5b27[_0x4e6c8d(0x19d)],_0x62a608=_0x10489f[_0x4e6c8d(0x352)](_0x41914f(_0x5b547d));_0x5d5b27[_0x4e6c8d(0x19d)]=_0x62a608,Object[_0x4e6c8d(0x405)](_0x5d5b27[_0x4e6c8d(0x1ca)])[_0x4e6c8d(0x362)](([,_0x485ece])=>{const _0x14c469=_0x4e6c8d,_0x4b001a=_0x485ece[_0x14c469(0x19d)],_0xd4de71=_0x10489f['encode'](_0x41914f(_0x4b001a));_0x485ece['originalMeta']=_0xd4de71;});}return _0xae2609;}async[_0x44ade9(0x23f)](_0x1b02b9,_0x48b010){const _0xefd19b=_0x44ade9,{unitID:_0x42df6a,type:_0x3e9697,blockID:_0x1cfe9b}=_0x48b010,_0x1c6152=this['_getAPIPrefix']()+'/'+_0x3e9697+_0xefd19b(0x40f)+_0x42df6a+_0xefd19b(0x229)+_0x1cfe9b;return(await this['_httpService'][_0xefd19b(0x28e)](_0x1c6152))['body'];}async['getDeserializedSheetBlock'](_0x4b5bad,_0x36fc91){const _0x5af86c=_0x44ade9,{unitID:_0x48d880,type:_0x41a307,blockID:_0x34d48e}=_0x36fc91,_0x1308bd=this[_0x5af86c(0x448)]()+_0x5af86c(0x229)+_0x41a307+_0x5af86c(0x40f)+_0x48d880+_0x5af86c(0x229)+_0x34d48e;return(await this['_httpService'][_0x5af86c(0x28e)](_0x1308bd))[_0x5af86c(0x3fc)];}async[_0x44ade9(0x35e)](_0x1322ed,_0x29ba2a){const _0x1abb36=_0x44ade9,{unitID:_0x3ddc2f,type:_0x97f9c5,from:_0x4e7787,to:_0x1c2de2}=_0x29ba2a,_0xfa8d06=this['_getAPIPrefix']()+'/'+_0x97f9c5+_0x1abb36(0x40f)+_0x3ddc2f+_0x1abb36(0x185)+_0x4e7787+'&to='+_0x1c2de2;return(await this[_0x1abb36(0x3da)]['get'](_0xfa8d06))[_0x1abb36(0x3fc)];}[_0x44ade9(0x3ed)](){const _0xc0dcde=_0x44ade9;var _0x3bf5cf;return(_0x3bf5cf=this[_0xc0dcde(0x251)][_0xc0dcde(0x31b)](gn))!=null?_0x3bf5cf:this['_getAPIPrefix']();}[_0x44ade9(0x448)](){const _0x4ca957=_0x44ade9;var _0x3037cb,_0x52d9d1;const _0x2a9935=this[_0x4ca957(0x251)][_0x4ca957(0x31b)](fn),_0x706c2f=this[_0x4ca957(0x251)][_0x4ca957(0x31b)](L);return(_0x52d9d1=(_0x3037cb=_0x706c2f==null?void 0x0:_0x706c2f['snapshotServerUrl'])!=null?_0x3037cb:_0x2a9935)!=null?_0x52d9d1:mn;}async[_0x44ade9(0x407)](_0x53574f,_0x4132be){const _0xff949f=_0x44ade9,_0x279145=_0xff949f(0x452)+_0x4132be[_0xff949f(0x150)]+'/unit/'+_0x4132be[_0xff949f(0x42f)]+_0xff949f(0x473);return(await this[_0xff949f(0x3da)][_0xff949f(0x28e)](_0x279145,{'params':{'resourceId':JSON['stringify'](_0x4132be['resourceIDs'])}}))['body'];}[_0x44ade9(0x384)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x44ade9(0x306)](){const _0x32b225=_0x44ade9;throw new Error(_0x32b225(0x34b));}[_0x44ade9(0x29e)](){const _0x1381d3=_0x44ade9;throw new Error(_0x1381d3(0x34b));}[_0x44ade9(0x152)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};Mt=zo([Ss(0x0,_0x1fe23f),Ss(0x1,_0x180372(_0x53dfff))],Mt);var Zo=Object['defineProperty'],Qo=Object[_0x44ade9(0x418)],ea=(_0x5866d4,_0x3a2d9e,_0x2a486c,_0x2295b8)=>{for(var _0x20fc78=_0x2295b8>0x1?void 0x0:_0x2295b8?Qo(_0x3a2d9e,_0x2a486c):_0x3a2d9e,_0x88cd4d=_0x5866d4['length']-0x1,_0x31e3b5;_0x88cd4d>=0x0;_0x88cd4d--)(_0x31e3b5=_0x5866d4[_0x88cd4d])&&(_0x20fc78=(_0x2295b8?_0x31e3b5(_0x3a2d9e,_0x2a486c,_0x20fc78):_0x31e3b5(_0x20fc78))||_0x20fc78);return _0x2295b8&&_0x20fc78&&Zo(_0x3a2d9e,_0x2a486c,_0x20fc78),_0x20fc78;},ye=(_0xfef054,_0xe5e666)=>(_0x2f79d1,_0x51f915)=>_0xe5e666(_0x2f79d1,_0x51f915,_0xfef054);let At=class extends _0x5c3dd8{constructor(_0x2c69d9,_0x3a9b78,_0x37259b,_0x23bcd9,_0x4727c5){const _0xa0c1da=_0x44ade9;super(_0x2c69d9,_0x3a9b78,_0x37259b),this[_0xa0c1da(0x16a)]=_0x23bcd9,this['_logService']=_0x4727c5;}[_0x44ade9(0x1a1)](_0x35bba4,_0x15d250){const _0xe8192d=_0x44ade9,_0x57055d=this['_getUndoStack'](_0x35bba4);if(_0x57055d)try{const _0x13c16e=this[_0xe8192d(0x2d6)](_0x57055d,_0x15d250);this['_substituteUndoStack'](_0x35bba4,_0x13c16e);}catch(_0x28ba66){this[_0xe8192d(0x1a3)][_0xe8192d(0x1c9)](_0xe8192d(0x3dd),_0x28ba66),this[_0xe8192d(0x272)](_0x35bba4);}const _0x4b72ef=this['_getRedoStack'](_0x35bba4);if(_0x4b72ef)try{const _0x1a1c2d=this['_transformStack'](_0x4b72ef,_0x15d250);this['_substituteRedoStack'](_0x35bba4,_0x1a1c2d);}catch(_0x1cc23e){this[_0xe8192d(0x1a3)][_0xe8192d(0x1c9)](_0x1cc23e),this[_0xe8192d(0x158)](_0x35bba4);}}['_clearUndo'](_0x2caf09){const _0x18cf35=_0x44ade9,_0x4543be=this[_0x18cf35(0x4ab)](_0x2caf09);_0x4543be&&(_0x4543be[_0x18cf35(0x192)]=0x0,this['_updateStatus']());}[_0x44ade9(0x158)](_0x51bdfd){const _0x318923=_0x44ade9,_0x4942d5=this[_0x318923(0x410)](_0x51bdfd);_0x4942d5&&(_0x4942d5['length']=0x0,this[_0x318923(0x20c)]());}[_0x44ade9(0x184)](_0x2ed384,_0x5528d0){const _0x465a8e=_0x44ade9;this[_0x465a8e(0x27e)][_0x465a8e(0x48c)](_0x2ed384,_0x5528d0),this['_updateStatus']();}['_substituteRedoStack'](_0x47f870,_0x1f7eca){const _0x20d410=_0x44ade9;this['_redoStacks'][_0x20d410(0x48c)](_0x47f870,_0x1f7eca),this[_0x20d410(0x20c)]();}[_0x44ade9(0x2d6)](_0x2f926f,_0x54fe11){const _0x343150=_0x44ade9,_0x52c4be=[];let _0x5e14ee=_0x54fe11,_0x3fed63=_0x54fe11;for(let _0x33675c=_0x2f926f['length']-0x1;_0x33675c>=0x0;_0x33675c--){const {unitID:_0x218400,undoMutations:_0x5fb6eb,redoMutations:_0x263ef0}=_0x2f926f[_0x33675c],_0x7e9cf0=this[_0x343150(0x16a)]['transformMutationsWithChangeset'](_0x5e14ee,_0x5fb6eb),_0x460c24=this[_0x343150(0x16a)][_0x343150(0x169)](_0x3fed63,_0x263ef0);if(_0x4a3e3f(_0x7e9cf0)||_0x4a3e3f(_0x460c24)){this[_0x343150(0x1a3)][_0x343150(0x1c9)]('[CollaborationUndoRedoService]',_0x343150(0x3d9),_0x7e9cf0,_0x460c24);break;}_0x5e14ee=_0x7e9cf0['c1Prime'],_0x3fed63=_0x460c24['c1Prime'],_0x52c4be['push']({'unitID':_0x218400,'undoMutations':_0x7e9cf0[_0x343150(0x483)],'redoMutations':_0x460c24['m2Prime']});}return _0x52c4be['reverse']();}};At=ea([ye(0x0,_0x4c19c5),ye(0x1,_0x2bc808),ye(0x2,_0x3c1d68),ye(0x3,_0x446e46),ye(0x4,_0x4611a9)],At);class ta extends _0x1d444{constructor(){const _0x4e9cb8=_0x44ade9;super(),l(this,_0x4e9cb8(0x357)),this[_0x4e9cb8(0x357)]=_0x3b552f(window,_0x4e9cb8(0x3c1))[_0x4e9cb8(0x2e0)](_0x275af9(this['dispose$']),_0x227687(0x1),_0x351ffb(void 0x0));}['setParam'](_0x11cf7b,_0x42d85c,_0x48f3e6=!0x1){const _0x27ec82=_0x44ade9,_0x3ab407=new URL(window['location']['href']);_0x3ab407[_0x27ec82(0x498)][_0x27ec82(0x48c)](_0x11cf7b,_0x42d85c),_0x48f3e6?window[_0x27ec82(0x28d)]['replaceState']('','',_0x3ab407[_0x27ec82(0x1cb)]()):window['history']['pushState']('','',_0x3ab407[_0x27ec82(0x1cb)]());}[_0x44ade9(0x2ff)](_0x23c9c7,_0x106a4c=!0x1){const _0x27f554=_0x44ade9,_0x3c7c35=new URL(window['location'][_0x27f554(0x247)]);_0x3c7c35[_0x27f554(0x498)][_0x27f554(0x467)](_0x23c9c7),_0x106a4c?window['history'][_0x27f554(0x1b7)]('','',_0x3c7c35['toString']()):window[_0x27f554(0x28d)][_0x27f554(0x17e)]('','',_0x3c7c35[_0x27f554(0x1cb)]());}[_0x44ade9(0x349)](_0x22ed3c){const _0x1757f3=_0x44ade9;var _0x1bb718;return(_0x1bb718=new URL(window['location']['href'])[_0x1757f3(0x498)][_0x1757f3(0x28e)](_0x22ed3c))!=null?_0x1bb718:void 0x0;}}var Gs=Object[_0x44ade9(0x421)],sa=Object['getOwnPropertyDescriptor'],ia=(_0x36e687,_0x5bcc9c,_0x15141)=>_0x5bcc9c in _0x36e687?Gs(_0x36e687,_0x5bcc9c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x15141}):_0x36e687[_0x5bcc9c]=_0x15141,na=(_0x32eae7,_0x519c6c,_0x52842d,_0x6dada9)=>{const _0x355416=_0x44ade9;for(var _0x115816=_0x6dada9>0x1?void 0x0:_0x6dada9?sa(_0x519c6c,_0x52842d):_0x519c6c,_0x36a8b0=_0x32eae7[_0x355416(0x192)]-0x1,_0x1e3a1f;_0x36a8b0>=0x0;_0x36a8b0--)(_0x1e3a1f=_0x32eae7[_0x36a8b0])&&(_0x115816=(_0x6dada9?_0x1e3a1f(_0x519c6c,_0x52842d,_0x115816):_0x1e3a1f(_0x115816))||_0x115816);return _0x6dada9&&_0x115816&&Gs(_0x519c6c,_0x52842d,_0x115816),_0x115816;},Ve=(_0x2e51ac,_0x596fb0)=>(_0x14a241,_0x2bef78)=>_0x596fb0(_0x14a241,_0x2bef78,_0x2e51ac),ra=(_0x5df2f9,_0x5ad212,_0x3ebadd)=>ia(_0x5df2f9,_0x5ad212+'',_0x3ebadd);const oa=_0x44ade9(0x3ba);let Lt=class extends _0x14c22f{constructor(_0x216da7=Nn,_0x30be50,_0x5ac062,_0x175949,_0x5a1a6c){const _0x35ea7e=_0x44ade9;super(),this['_config']=_0x216da7,this[_0x35ea7e(0x1a3)]=_0x30be50,this[_0x35ea7e(0x268)]=_0x5ac062,this[_0x35ea7e(0x181)]=_0x175949,this[_0x35ea7e(0x251)]=_0x5a1a6c;const {..._0x2d62de}=this[_0x35ea7e(0x1b8)];this[_0x35ea7e(0x251)][_0x35ea7e(0x193)](L,_0x2d62de);}[_0x44ade9(0x278)](){this['_registerDependencies']();}[_0x44ade9(0x2ba)](){const _0x252007=_0x44ade9;this[_0x252007(0x36a)]();}[_0x44ade9(0x472)](){const _0x36b4fa=_0x44ade9;var _0x34d956,_0x462e59,_0xe2c86d,_0x3fb1ca;this['_injector']['has'](_0x3cf637)&&this[_0x36b4fa(0x1a3)][_0x36b4fa(0x1c9)]('[UniverCollaborationClientPlugin]',_0x36b4fa(0x38a));let _0x80c2b9=[[_0x3cf637,{'useClass':At}],[ce],[Gt],[_0x53dfff],[Ws,{'useClass':ta}],[ae],[D],[_0x4e064e],[Qe],[et],[Ze],[Ft],[st],[it],[js],[Ke],[$s,{'useClass':(_0x462e59=(_0x34d956=this[_0x36b4fa(0x1b8)])==null?void 0x0:_0x34d956[_0x36b4fa(0x475)])!=null?_0x462e59:Tt}],[_0x23f73e,{'useClass':_0x1fbb96}],[_0x23ecb2,{'useClass':Mt}],[_0x4d7a53,{'useClass':Nt}],[_0x5d9034,{'useClass':Ut}],[Ae],[Ge],[Ue],[Ye],[ge]];(_0xe2c86d=this['_config'])!=null&&_0xe2c86d[_0x36b4fa(0x28a)]&&_0x80c2b9[_0x36b4fa(0x23e)]([nt,{'useClass':or}]),_0x80c2b9=_0x43541f(_0x80c2b9,(_0x3fb1ca=this[_0x36b4fa(0x1b8)])==null?void 0x0:_0x3fb1ca[_0x36b4fa(0x413)]),_0x80c2b9[_0x36b4fa(0x362)](_0x3918df=>this['_injector'][_0x36b4fa(0x377)](_0x3918df)),this[_0x36b4fa(0x370)]();}['_registerRenderDependencies'](){const _0x15e4af=_0x44ade9;this[_0x15e4af(0x26d)](this[_0x15e4af(0x268)]['registerRenderModule'](_0xb0e7e8['UNIVER_DOC'],[We])),this['disposeWithMe'](this[_0x15e4af(0x268)][_0x15e4af(0x250)](_0xb0e7e8[_0x15e4af(0x233)],[yt]));}[_0x44ade9(0x370)](){const _0x3d1aca=_0x44ade9;var _0x9c5889,_0x33e1f4;this['_injector']['get'](_0x53dfff)[_0x3d1aca(0x1d1)]({'priority':0x14,'interceptor':_0x53e64b({'maxParallel':0x6})}),this['_injector'][_0x3d1aca(0x28e)](it),(_0x9c5889=this[_0x3d1aca(0x1b8)])!=null&&_0x9c5889['enableOfflineEditing']||this['_injector'][_0x3d1aca(0x28e)](D)[_0x3d1aca(0x403)](),(_0x33e1f4=this[_0x3d1aca(0x1b8)])!=null&&_0x33e1f4['enableAuthServer']&&this[_0x3d1aca(0x181)][_0x3d1aca(0x28e)](st),this[_0x3d1aca(0x181)][_0x3d1aca(0x28e)](Ae),this['_injector'][_0x3d1aca(0x22f)](Ue)&&this['_injector'][_0x3d1aca(0x28e)](Ue);}};ra(Lt,'pluginName',oa),Lt=na([_0x2cd2d8(_0x558b0a),Ve(0x1,_0x4611a9),Ve(0x2,_0xc776ff),Ve(0x3,_0x180372(_0x15d871)),Ve(0x4,_0x1fe23f)],Lt);export{No as AUTHZ_URL_KEY,Nt as AuthzIoHttpService,Dn as COLLAB_SUBMIT_CHANGESET_URL_KEY,pn as COLLAB_WEB_SOCKET_URL_KEY,Ae as CollaborationController,tt as CollaborationEntity,Rt as CollaborationSession,ce as CollaborationSessionService,Tt as CollaborationSocketService,w as CollaborationStatus,_o as CollaborationStatusDisplay,js as CommentService,Ge as DataLoaderController,Ue as DesktopCollaborationStatusDisplayController,Ot as DocCollaborationEntity,In as HEARTBEAT_INTERVAL_KEY,Us as HEARTBEAT_TIMEOUT_KEY,$s as ICollaborationSocketService,Ws as IURLService,Ut as ImageIoService,Rn as LOCAL_CACHE_INTERVAL_KEY,Pn as LOGIN_URL_KEY,D as LocalCacheService,bn as RETRY_CONNECTING_MAX_COUNT_KEY,Da as SEND_CHANGESET_TIMEOUT_KEY,fn as SNAPSHOT_SERVER_URL_KEY,gn as SNAPSHOT_URL_KEY,G as SessionStatus,Kr as SheetCollabCursorShape,Dt as SheetCollaborationEntity,Mt as SnapshotServerOverHTTPService,Lt as UniverCollaborationClientPlugin,ta as WebURLService,Un as deserializeToCombResponse,Mn as serializeCombRequest};
1
+ const _0x7011be=_0x312b;(function(_0x2448c2,_0x289c31){const _0x2ec18d=_0x312b,_0x234f7e=_0x2448c2();while(!![]){try{const _0x4ef9c5=parseInt(_0x2ec18d(0x21d))/0x1*(-parseInt(_0x2ec18d(0x4cd))/0x2)+-parseInt(_0x2ec18d(0x2f0))/0x3*(parseInt(_0x2ec18d(0x33d))/0x4)+parseInt(_0x2ec18d(0x1b7))/0x5+parseInt(_0x2ec18d(0x435))/0x6*(parseInt(_0x2ec18d(0x1b1))/0x7)+-parseInt(_0x2ec18d(0x1e7))/0x8*(-parseInt(_0x2ec18d(0x246))/0x9)+-parseInt(_0x2ec18d(0x320))/0xa+parseInt(_0x2ec18d(0x392))/0xb*(-parseInt(_0x2ec18d(0x2ce))/0xc);if(_0x4ef9c5===_0x289c31)break;else _0x234f7e['push'](_0x234f7e['shift']());}catch(_0x2e63c3){_0x234f7e['push'](_0x234f7e['shift']());}}}(_0xf131,0x26d7a));var zs=Object[_0x7011be(0x38b)],Zs=(_0x2c100c,_0x456b6c,_0x56d66d)=>_0x456b6c in _0x2c100c?zs(_0x2c100c,_0x456b6c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x56d66d}):_0x2c100c[_0x456b6c]=_0x56d66d,l=(_0x47422b,_0x43f394,_0x6c7130)=>Zs(_0x47422b,typeof _0x43f394!=_0x7011be(0x4d5)?_0x43f394+'':_0x43f394,_0x6c7130);import{createIdentifier as _0x1e5b71,Inject as _0x4f6f98,Disposable as _0xd7d44c,DisposableCollection as _0x45d03e,toDisposable as _0x4b6fbe,IConfigService as _0x516197,ILogService as _0x2f2df5,UserManagerService as _0x16eb3c,UniverInstanceType as _0x223004,IUniverInstanceService as _0x29e7a7,LocaleService as _0x95964d,Optional as _0x59d638,RxDisposable as _0x101c13,Injector as _0x8f002c,Tools as _0x14f99b,ILocalStorageService as _0x594a58,ICommandService as _0x2cea1d,JSONX as _0x42b912,CommandType as _0xba6e30,IPermissionService as _0x28c276,IUndoRedoService as _0x2334b3,sequenceExecute as _0x621390,Rectangle as _0x32f126,debounce as _0x3c0cdf,OnLifecycle as _0x4a01a1,LifecycleStages as _0x268ec2,COLORS as _0x133fd5,ColorKit as _0x146cd6,ThemeService as _0x5d9d21,fromEventSubject as _0x331c20,useDependency as _0x147122,connectInjector as _0xbbe883,Workbook as _0x1b7a0e,isInternalEditorID as _0x1b37cc,LocalUndoRedoService as _0x4b8f0d,IContextService as _0x55e323,DependentOn as _0xc3da8d,Plugin as _0x1cfc3b,IAuthzIoService as _0x485c8a,mergeOverrideWithDependencies as _0x130074}from'@univerjs/core';import{Subject as _0x4339d0,merge as _0x2b5f15,takeUntil as _0x25a74d,BehaviorSubject as _0x2048f5,distinctUntilChanged as _0x4814b2,fromEvent as _0x446249,map as _0x39d5f6,shareReplay as _0x290704,take as _0x4d0f5c,of as _0x1f8bdc,debounceTime as _0x3d52b8,filter as _0x1e07a2,switchMap as _0x396bbc,combineLatest as _0x25e7d9,concatMap as _0x156a35,mapTo as _0x5cdfe1}from'rxjs';import{map as _0x4b1d28,take as _0x577ed3,filter as _0x273b1e,delay as _0x2e63b2,throttleTime as _0x46d884,takeUntil as _0x559853,switchMap as _0x2b4b41}from'rxjs/operators';import{MessageType as _0x5638e0,Tooltip as _0x5d56c6}from'@univerjs/design';import{IBeforeCloseService as _0x3d7ec6,IMessageService as _0x13bf44,INotificationService as _0x4ed61f,useObservable as _0x58f9f3,BuiltInUIPart as _0x23bd16,IUIPartsService as _0x59ba8f}from'@univerjs/ui';import{HTTPService as _0x263986,WebSocketService as _0x3cd3ec,MergeInterceptorFactory as _0x144d61,HTTPRequest as _0x2b95ea,IHTTPImplementation as _0x3aeab2,XHRHTTPImplementation as _0x28fad5,ThresholdInterceptorFactory as _0x5485d7}from'@univerjs/network';import{CollaborationEvent as _0x3edc6c,parseChangesetToProtocol as _0x5ea06f,ISnapshotServerService as _0x2b166c,isTransformMutationFailure as _0x1870ea,isTransformMutationsWithChangesetSuccess as _0x50faaa,ITransformService as _0x49c306,RevisionService as _0xd9ea18,mapDocumentTypeToUniverType as _0x47e8e5,isTransformChangesetsSuccess as _0x571ad7,CompressMutationService as _0x479762,parseProtocolChangeset as _0x3d95ae,SnapshotService as _0x41eb9e,textEncoder as _0x16f5f9,b64DecodeUnicode as _0x5316b9,isTransformMutationsWithChangesetFailure as _0x1e8ba7,UniverCollaborationPlugin as _0x19c1c0}from'@univerjs-pro/collaboration';import{ITelemetryService as _0x544e05}from'@univerjs/telemetry';import{DocSelectionManagerService as _0x1198ee,RichTextEditingMutation as _0x565f33,SetTextSelectionsOperation as _0x30bff4,DocSkeletonManagerService as _0x46bdda}from'@univerjs/docs';import{DocIMEInputManagerService as _0xe82a9,DocStateChangeManagerService as _0x21dbbb,NodePositionConvertToCursor as _0x559cdc,isValidRectRange as _0x585369,NodePositionConvertToRectRange as _0x562558,TEXT_RANGE_LAYER_INDEX as _0xb477f6,SetDocZoomRatioOperation as _0x527e19}from'@univerjs/docs-ui';import{SheetsSelectionsService as _0x23d40e,SetSelectionsOperation as _0x49df62,InsertSheetMutation as _0x2abee6,EmptyMutation as _0x64ba06,WorkbookEditablePermission as _0x37edea,RefRangeService as _0x5f205b,EffectRefRangId as _0x217673,handleIRemoveRow as _0x57f03f,handleIRemoveCol as _0x554a8c,handleMoveRange as _0x35b8eb,handleInsertRow as _0x468758,handleInsertRangeMoveRight as _0x393880,handleInsertRangeMoveDown as _0x418883,handleInsertCol as _0x3ad79c,handleDeleteRangeMoveUp as _0x18bdab,handleDeleteRangeMoveLeft as _0x38a975,runRefRangeMutations as _0x140a5c,SetWorksheetActivateCommand as _0x330d5c}from'@univerjs/sheets';import{IRenderManagerService as _0x5d47cb,Shape as _0x1390df,Rect as _0x406574,getColor as _0x409cfa,RegularPolygon as _0x3731ab,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x223d13,Vector2 as _0x25b778}from'@univerjs/engine-render';import{ImageSourceType as _0x5687f1,ImageUploadStatusType as _0x51de88,IImageIoService as _0x934fc7}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x1f6a7e,serializeRangeWithSheet as _0x26b6ee}from'@univerjs/engine-formula';import{SheetSkeletonManagerService as _0x23732c,VIEWPORT_KEY as _0x2ddac5,getCoordByCell as _0x39aa42,getSheetObject as _0xc97df6,SheetPermissionInitController as _0x223460}from'@univerjs/sheets-ui';import _0x193848,{forwardRef as _0x5bcfca,useRef as _0x4907ca,createElement as _0x2ec225,useCallback as _0x309442}from'react';import _0x26e85f from'clsx';import{IRemoteInstanceService as _0xc60c98}from'@univerjs/rpc';import{getAttachHeader as _0x1a079a}from'@univerjs-pro/license';const fn='SNAPSHOT_SERVER_URL_KEY',mn=_0x7011be(0x2cf),gn='SNAPSHOT_URL_KEY',Da=_0x7011be(0x233),Sn=0x7d0,pn=_0x7011be(0x3bb),vn=_0x7011be(0x444),In=_0x7011be(0x46e),En=0x7530,Us='HEARTBEAT_TIMEOUT',Ms=0x4e20,Cn=0x4e20,bn='RETRY_CONNECTING_MAX_COUNT',Tn=0x3,Rn=_0x7011be(0x308),On=0x3e8,Dn=_0x7011be(0x3b4),wn=_0x7011be(0x28d),Pn='LOGIN_URL_KEY',yn='/universer-api/oidc/authpage';var As=(_0xf95158=>(_0xf95158[_0xf95158[_0x7011be(0x1eb)]=0x0]='UNDEFINED',_0xf95158[_0xf95158['OK']=0x1]='OK',_0xf95158[_0xf95158['INTERNAL_ERROR']=0x2]=_0x7011be(0x45b),_0xf95158[_0xf95158[_0x7011be(0x4c1)]=0x3]=_0x7011be(0x4c1),_0xf95158[_0xf95158[_0x7011be(0x407)]=0x4]=_0x7011be(0x407),_0xf95158[_0xf95158[_0x7011be(0x3d1)]=0x5]=_0x7011be(0x3d1),_0xf95158[_0xf95158['ALREADY_EXISTS']=0x6]=_0x7011be(0x3ee),_0xf95158[_0xf95158[_0x7011be(0x1a4)]=0x7]='INVALID_ARGUMENT',_0xf95158[_0xf95158[_0x7011be(0x2ef)]=0x8]=_0x7011be(0x2ef),_0xf95158[_0xf95158[_0x7011be(0x454)]=0x9]=_0x7011be(0x454),_0xf95158[_0xf95158[_0x7011be(0x35a)]=0x1389]=_0x7011be(0x35a),_0xf95158[_0xf95158[_0x7011be(0x17f)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0xf95158[_0xf95158['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0xf95158[_0xf95158[_0x7011be(0x44a)]=0x1b59]=_0x7011be(0x44a),_0xf95158[_0xf95158[_0x7011be(0x478)]=0x1b5a]=_0x7011be(0x478),_0xf95158[_0xf95158[_0x7011be(0x34e)]=0x1b5b]=_0x7011be(0x34e),_0xf95158[_0xf95158[_0x7011be(0x28a)]=0x1b5c]=_0x7011be(0x28a),_0xf95158[_0xf95158[_0x7011be(0x2b2)]=0x1f41]=_0x7011be(0x2b2),_0xf95158[_0xf95158['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0xf95158[_0xf95158['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x7011be(0x4b2),_0xf95158[_0xf95158[_0x7011be(0x42f)]=0x232b]=_0x7011be(0x42f),_0xf95158[_0xf95158[_0x7011be(0x31b)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0xf95158[_0xf95158[_0x7011be(0x2c5)]=0x232d]=_0x7011be(0x2c5),_0xf95158[_0xf95158[_0x7011be(0x4b5)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0xf95158[_0xf95158['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x7011be(0x21c),_0xf95158[_0xf95158[_0x7011be(0x4e4)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0xf95158[_0xf95158[_0x7011be(0x479)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0xf95158[_0xf95158['UNRECOGNIZED']=-0x1]=_0x7011be(0x309),_0xf95158))(As||{}),H=(_0x367300=>(_0x367300[_0x367300[_0x7011be(0x1e2)]=0x0]=_0x7011be(0x1e2),_0x367300[_0x367300[_0x7011be(0x1a0)]=0x1]=_0x7011be(0x1a0),_0x367300[_0x367300['UNIVER_SHEET']=0x2]=_0x7011be(0x42d),_0x367300[_0x367300['UNIVER_SLIDE']=0x3]=_0x7011be(0x3c1),_0x367300[_0x367300[_0x7011be(0x312)]=0x4]=_0x7011be(0x312),_0x367300[_0x367300[_0x7011be(0x309)]=-0x1]=_0x7011be(0x309),_0x367300))(H||{}),I=(_0x2a4fa3=>(_0x2a4fa3[_0x2a4fa3[_0x7011be(0x4b9)]=0x0]=_0x7011be(0x4b9),_0x2a4fa3[_0x2a4fa3[_0x7011be(0x45f)]=0x1]=_0x7011be(0x45f),_0x2a4fa3[_0x2a4fa3[_0x7011be(0x1b8)]=0x2]=_0x7011be(0x1b8),_0x2a4fa3[_0x2a4fa3[_0x7011be(0x229)]=0x3]='LEAVE',_0x2a4fa3[_0x2a4fa3[_0x7011be(0x17c)]=0x4]=_0x7011be(0x17c),_0x2a4fa3[_0x2a4fa3[_0x7011be(0x29b)]=0x5]=_0x7011be(0x29b),_0x2a4fa3[_0x2a4fa3['RECV']=0x6]=_0x7011be(0x297),_0x2a4fa3[_0x2a4fa3['UNRECOGNIZED']=-0x1]=_0x7011be(0x309),_0x2a4fa3))(I||{}),Vt=(_0x4aed47=>(_0x4aed47[_0x4aed47[_0x7011be(0x2be)]=0x0]=_0x7011be(0x2be),_0x4aed47[_0x4aed47['OK']=0x1]='OK',_0x4aed47[_0x4aed47['FAIL']=0x2]=_0x7011be(0x1fa),_0x4aed47[_0x4aed47[_0x7011be(0x309)]=-0x1]=_0x7011be(0x309),_0x4aed47))(Vt||{}),Ls=(_0x38ef61=>(_0x38ef61[_0x38ef61[_0x7011be(0x469)]=0x0]='Undefined',_0x38ef61[_0x38ef61[_0x7011be(0x3f7)]=0x1]=_0x7011be(0x3f7),_0x38ef61[_0x38ef61[_0x7011be(0x37f)]=0x2]=_0x7011be(0x37f),_0x38ef61[_0x38ef61[_0x7011be(0x268)]=0x3]=_0x7011be(0x268),_0x38ef61[_0x38ef61['UnitSnapshot']=0x4]=_0x7011be(0x2fe),_0x38ef61[_0x38ef61[_0x7011be(0x309)]=-0x1]=_0x7011be(0x309),_0x38ef61))(Ls||{});const L='collaboration-client.config',Nn={};function Un(_0x41160d){const _0x3bfbb5=_0x7011be;var _0x171081,_0x2a2adb,_0x3e4a2b,_0x18c9a0;const _0x162eff=_0x41160d[_0x3bfbb5(0x253)],_0x54c31b=JSON['parse'](_0x162eff);switch(_0x54c31b['cmd']){case I[_0x3bfbb5(0x29b)]:case I[_0x3bfbb5(0x45f)]:{const _0x24cddc=_0x54c31b[_0x3bfbb5(0x29d)];return{..._0x54c31b,'data':_0x24cddc,'cmd':_0x54c31b[_0x3bfbb5(0x318)]};}case I[_0x3bfbb5(0x1b8)]:{const _0x35f5e0=_0x54c31b[_0x3bfbb5(0x425)];return{..._0x54c31b,'data':_0x35f5e0,'cmd':_0x54c31b[_0x3bfbb5(0x318)]};}case I['RECV']:{const _0x5b6854=_0x54c31b['collaMsg'];switch(_0x5b6854[_0x3bfbb5(0x2fb)]){case _0x3edc6c['PERMISSION_REJ']:return{..._0x54c31b,'data':{..._0x5b6854,'data':(_0x171081=_0x5b6854[_0x3bfbb5(0x1fb)])==null?void 0x0:_0x171081['cs']},'cmd':_0x54c31b['cmd']};case _0x3edc6c[_0x3bfbb5(0x324)]:return{..._0x54c31b,'data':{..._0x5b6854,'data':(_0x2a2adb=_0x5b6854[_0x3bfbb5(0x1cd)])==null?void 0x0:_0x2a2adb['cs']},'cmd':_0x54c31b[_0x3bfbb5(0x318)]};case _0x3edc6c[_0x3bfbb5(0x4d7)]:return{..._0x54c31b,'data':{..._0x5b6854,'data':(_0x3e4a2b=_0x5b6854[_0x3bfbb5(0x4b6)])==null?void 0x0:_0x3e4a2b['cs']},'cmd':_0x54c31b[_0x3bfbb5(0x318)]};case _0x3edc6c[_0x3bfbb5(0x20e)]:return{..._0x54c31b,'data':{..._0x5b6854,'data':(_0x18c9a0=_0x5b6854[_0x3bfbb5(0x38e)])==null?void 0x0:_0x18c9a0['cs']},'cmd':_0x54c31b[_0x3bfbb5(0x318)]};case _0x3edc6c['UPDATE_CURSOR']:return{..._0x54c31b,'data':{..._0x5b6854,'data':_0x5b6854[_0x3bfbb5(0x177)]},'cmd':_0x54c31b['cmd']};case _0x3edc6c[_0x3bfbb5(0x202)]:return{..._0x54c31b,'data':{..._0x5b6854,'data':_0x5b6854['joinEvent']},'cmd':_0x54c31b[_0x3bfbb5(0x318)]};case _0x3edc6c['USERS_LEAVE']:return{..._0x54c31b,'data':{..._0x5b6854,'data':_0x5b6854[_0x3bfbb5(0x301)]},'cmd':_0x54c31b[_0x3bfbb5(0x318)]};case _0x3edc6c[_0x3bfbb5(0x352)]:return{..._0x54c31b,'data':{..._0x5b6854,'data':_0x5b6854[_0x3bfbb5(0x22e)]},'cmd':_0x54c31b[_0x3bfbb5(0x318)]};case _0x3edc6c['LIVESHARE_FETCH_OPERATIONS']:case _0x3edc6c[_0x3bfbb5(0x4ab)]:return{..._0x54c31b,'data':{..._0x5b6854,'data':_0x5b6854[_0x3bfbb5(0x342)]},'cmd':_0x54c31b[_0x3bfbb5(0x318)]};case _0x3edc6c[_0x3bfbb5(0x196)]:return{..._0x54c31b,'data':{..._0x5b6854,'data':_0x5b6854[_0x3bfbb5(0x22e)]},'cmd':_0x54c31b[_0x3bfbb5(0x318)]};case _0x3edc6c[_0x3bfbb5(0x295)]:return{..._0x54c31b,'data':_0x5b6854,'cmd':_0x54c31b[_0x3bfbb5(0x318)]};case _0x3edc6c[_0x3bfbb5(0x3e9)]:return{..._0x54c31b,'data':{..._0x5b6854,'data':_0x5b6854['commentUpdateEvent']},'cmd':_0x54c31b[_0x3bfbb5(0x318)]};case _0x3edc6c['UPDATE_PERMISSION_OBJ']:return{..._0x54c31b,'data':{..._0x5b6854,'data':_0x5b6854['updatePermissionObjEvent']},'cmd':_0x54c31b[_0x3bfbb5(0x318)]};case _0x3edc6c[_0x3bfbb5(0x214)]:return{..._0x54c31b,'data':{..._0x5b6854,'data':_0x5b6854[_0x3bfbb5(0x1ea)]},'cmd':_0x54c31b[_0x3bfbb5(0x318)]};default:return _0x54c31b;}}default:return _0x54c31b;}}function Mn(_0x5448e6){const _0x21b571=_0x7011be;switch(_0x5448e6[_0x21b571(0x318)]){case I['HEARTBEAT']:case I[_0x21b571(0x45f)]:return JSON[_0x21b571(0x3ec)]({'cmd':_0x5448e6[_0x21b571(0x318)],'routeKey':_0x5448e6['routeKey']});case I[_0x21b571(0x17c)]:{let _0x24fdd6;switch(_0x5448e6[_0x21b571(0x253)][_0x21b571(0x2fb)]){case _0x3edc6c[_0x21b571(0x17b)]:{_0x24fdd6={'eventID':_0x3edc6c[_0x21b571(0x17b)],'updateCursorEvent':_0x5448e6['data'][_0x21b571(0x253)]};break;}case _0x3edc6c[_0x21b571(0x33f)]:{_0x24fdd6={'eventID':_0x3edc6c[_0x21b571(0x33f)],'leaveEvent':_0x5448e6[_0x21b571(0x253)]['data']};break;}case _0x3edc6c[_0x21b571(0x202)]:{_0x24fdd6={'eventID':_0x3edc6c[_0x21b571(0x202)],'joinEvent':_0x5448e6[_0x21b571(0x253)]['data']};break;}case _0x3edc6c[_0x21b571(0x352)]:{_0x24fdd6={'eventID':_0x3edc6c[_0x21b571(0x352)],'liveShareNewHost':_0x5448e6[_0x21b571(0x253)]['data']};break;}case _0x3edc6c['LIVESHARE_OPERATION']:{_0x24fdd6={'eventID':_0x3edc6c[_0x21b571(0x4ab)],'liveShareOperation':_0x5448e6[_0x21b571(0x253)][_0x21b571(0x253)]};break;}case _0x3edc6c[_0x21b571(0x196)]:{_0x24fdd6={'eventID':_0x3edc6c[_0x21b571(0x196)],'liveShareTerminate':_0x5448e6['data'][_0x21b571(0x253)]};break;}case _0x3edc6c[_0x21b571(0x419)]:{_0x24fdd6={'eventID':_0x3edc6c[_0x21b571(0x419)],'liveShareRequestHost':_0x5448e6[_0x21b571(0x253)][_0x21b571(0x253)]};break;}case _0x3edc6c[_0x21b571(0x463)]:{_0x24fdd6={'eventID':_0x3edc6c['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x24fdd6={'eventID':_0x5448e6[_0x21b571(0x253)][_0x21b571(0x2fb)]};}return JSON[_0x21b571(0x3ec)]({'cmd':_0x5448e6[_0x21b571(0x318)],'routeKey':_0x5448e6[_0x21b571(0x289)],'collaMsg':_0x24fdd6});}case I[_0x21b571(0x1b8)]:return JSON[_0x21b571(0x3ec)]({'cmd':_0x5448e6[_0x21b571(0x318)],'routeKey':_0x5448e6[_0x21b571(0x289)],'joinReq':_0x5448e6['data']});case I[_0x21b571(0x229)]:return JSON[_0x21b571(0x3ec)]({'cmd':_0x5448e6[_0x21b571(0x318)],'routeKey':_0x5448e6[_0x21b571(0x289)],'leaveReq':_0x5448e6[_0x21b571(0x253)]});default:throw new Error(_0x21b571(0x206));}}var An=Object[_0x7011be(0x38b)],Ln=Object[_0x7011be(0x24f)],$n=(_0x311a9d,_0x5346c7,_0x165ea7,_0x22ee75)=>{const _0x3787aa=_0x7011be;for(var _0x4d6a9b=_0x22ee75>0x1?void 0x0:_0x22ee75?Ln(_0x5346c7,_0x165ea7):_0x5346c7,_0x48ad53=_0x311a9d[_0x3787aa(0x2db)]-0x1,_0x24123d;_0x48ad53>=0x0;_0x48ad53--)(_0x24123d=_0x311a9d[_0x48ad53])&&(_0x4d6a9b=(_0x22ee75?_0x24123d(_0x5346c7,_0x165ea7,_0x4d6a9b):_0x24123d(_0x4d6a9b))||_0x4d6a9b);return _0x22ee75&&_0x4d6a9b&&An(_0x5346c7,_0x165ea7,_0x4d6a9b),_0x4d6a9b;},Re=(_0x28191d,_0x3ca9fb)=>(_0x12e306,_0x2ec696)=>_0x3ca9fb(_0x12e306,_0x2ec696,_0x28191d);const $s=_0x1e5b71(_0x7011be(0x3b8));function jn(_0xe99f79,_0x518402,_0x56975b){return _0xe99f79+'/'+_0x518402+'/unit/'+_0x56975b+'/new_changes';}let Tt=class extends _0xd7d44c{constructor(_0x4ca663,_0x3f15b7,_0x2ec823,_0x12c19f,_0x5442a5){const _0x17eb02=_0x7011be;super(),this['_http']=_0x4ca663,this[_0x17eb02(0x1ae)]=_0x3f15b7,this[_0x17eb02(0x1c9)]=_0x2ec823,this[_0x17eb02(0x1b4)]=_0x12c19f,this[_0x17eb02(0x26b)]=_0x5442a5;}[_0x7011be(0x231)](_0x2287b2){const _0x59ba64=_0x7011be,_0x2196b9=this[_0x59ba64(0x1ae)][_0x59ba64(0x231)](_0x2287b2);if(!_0x2196b9)throw new Error(_0x59ba64(0x225));const _0x515697=new _0x45d03e(),_0x59cd77=new _0x4339d0();_0x515697[_0x59ba64(0x3cb)](_0x2196b9[_0x59ba64(0x43e)]['subscribe'](_0x1e928b=>_0x59cd77[_0x59ba64(0x40f)](_0x1e928b))),_0x515697[_0x59ba64(0x3cb)](_0x4b6fbe(()=>_0x59cd77[_0x59ba64(0x4e0)]()));const _0x152294=new _0x4339d0();_0x515697[_0x59ba64(0x3cb)](_0x2196b9['error$'][_0x59ba64(0x376)](_0x37482b=>_0x152294[_0x59ba64(0x40f)](_0x37482b))),_0x515697['add'](_0x4b6fbe(()=>_0x152294[_0x59ba64(0x4e0)]()));const _0x36ea04=new _0x4339d0();_0x515697['add'](_0x2196b9['message$'][_0x59ba64(0x376)](_0x4fa25a=>{const _0x4aadb6=_0x59ba64,_0x1b5511=Un(_0x4fa25a);_0x36ea04[_0x4aadb6(0x40f)](_0x1b5511);})),_0x515697['add'](_0x4b6fbe(()=>_0x36ea04[_0x59ba64(0x4e0)]()));let _0x1e9748;const _0x3f631b=()=>{const _0x3f6b9e=_0x59ba64;_0x152294[_0x3f6b9e(0x40f)](new Event(_0x3f6b9e(0x23d))),_0x59cd77[_0x3f6b9e(0x40f)](new CloseEvent(_0x3f6b9e(0x23d))),_0x1e9748[_0x3f6b9e(0x3fb)]();};return _0x1e9748={'memberID':'','close$':_0x59cd77[_0x59ba64(0x1f7)](),'error$':_0x152294[_0x59ba64(0x1f7)](),'open$':_0x2196b9[_0x59ba64(0x1ec)],'message$':_0x36ea04[_0x59ba64(0x1f7)](),'send':_0x5d4576=>{const _0x45544a=_0x59ba64;if(_0x5d4576[_0x45544a(0x318)]===I[_0x45544a(0x17c)]){if(_0x5d4576[_0x45544a(0x253)][_0x45544a(0x2fb)]===_0x3edc6c[_0x45544a(0x3ef)]){this[_0x45544a(0x258)](_0x1e9748,_0x5d4576[_0x45544a(0x253)])[_0x45544a(0x4a1)](_0x2fa5d5=>{const _0x5ce52b=_0x45544a;this[_0x5ce52b(0x1b4)][_0x5ce52b(0x174)](_0x2fa5d5),_0x3f631b();});return;}if(_0x5d4576[_0x45544a(0x253)][_0x45544a(0x2fb)]===_0x3edc6c[_0x45544a(0x1d8)]){const _0x1da208=_0x5d4576[_0x45544a(0x253)];this['_fetchMissChangesets'](_0x1da208)[_0x45544a(0x26e)](_0x57fc9f=>{const _0x5dfec7=_0x45544a;_0x36ea04[_0x5dfec7(0x40f)]({'cmd':I['RECV'],'code':Vt['OK'],'routeKey':_0x1da208[_0x5dfec7(0x253)]['unitID'],'routeType':'','data':{'eventID':_0x3edc6c[_0x5dfec7(0x468)],'data':{'changesets':_0x57fc9f}}});})[_0x45544a(0x4a1)](_0x23baaf=>{const _0x122094=_0x45544a;this[_0x122094(0x1b4)][_0x122094(0x174)](_0x23baaf),_0x3f631b();});return;}}_0x2196b9[_0x45544a(0x4bb)](Mn(_0x5d4576));},'close':()=>{const _0x2e49a0=_0x59ba64;_0x2196b9['close'](),_0x515697[_0x2e49a0(0x326)]();}},_0x1e9748;}async[_0x7011be(0x258)](_0x4bd0c3,_0x347401){const _0x5a4dce=_0x7011be;var _0x4c0d4d,_0x2bd581;const {unitType:_0x4a7067,unitID:_0x30635f,changeset:_0x23392f}=_0x347401[_0x5a4dce(0x253)],_0x2ef972={'unitID':_0x30635f,'memberID':_0x4bd0c3[_0x5a4dce(0x22a)],'type':_0x4a7067,'changeset':_0x5ea06f(_0x23392f)},_0x180221=this[_0x5a4dce(0x1c9)][_0x5a4dce(0x34f)](Dn),_0x3fb725=this[_0x5a4dce(0x1c9)][_0x5a4dce(0x34f)](L),_0x21fa53=jn((_0x2bd581=(_0x4c0d4d=_0x3fb725==null?void 0x0:_0x3fb725['collabSubmitChangesetUrl'])!=null?_0x4c0d4d:_0x180221)!=null?_0x2bd581:wn,_0x4a7067,_0x30635f);try{await this[_0x5a4dce(0x38a)]['post'](_0x21fa53,{'body':_0x2ef972});}catch(_0x4f83ec){throw this['_logService']['error']('[CollaborationSession]',_0x5a4dce(0x2d4)),_0x4f83ec;}}async['_fetchMissChangesets'](_0x1dda6b){const _0xd7805f=_0x7011be,{unitID:_0x2b0cac,from:_0x1c5954,to:_0x4c7e82,unitType:_0x1c7cf6}=_0x1dda6b['data'];return(await this['_snapshotServerService'][_0xd7805f(0x262)]({'metadata':void 0x0},{'unitID':_0x2b0cac,'type':_0x1c7cf6,'from':_0x1c5954,'to':_0x4c7e82}))[_0xd7805f(0x19d)];}};Tt=$n([Re(0x0,_0x4f6f98(_0x263986)),Re(0x1,_0x4f6f98(_0x3cd3ec)),Re(0x2,_0x516197),Re(0x3,_0x2f2df5),Re(0x4,_0x2b166c)],Tt);const xn='collaboration_new_changeset';function Hn(_0x18c190){return JSON['stringify'](_0x18c190)['length'];}class js{constructor(){const _0x44094c=_0x7011be;l(this,_0x44094c(0x283),new _0x4339d0()),l(this,'commentUpdate$',this[_0x44094c(0x283)][_0x44094c(0x1f7)]());}[_0x7011be(0x41e)](_0x5e5858){const _0x4689cf=_0x7011be;this[_0x4689cf(0x283)][_0x4689cf(0x40f)](_0x5e5858);}}var kn=Object[_0x7011be(0x38b)],Bn=Object['getOwnPropertyDescriptor'],Vn=(_0x383d9a,_0x17ed06,_0x4b083d,_0x285777)=>{const _0x252fb1=_0x7011be;for(var _0x38881c=_0x285777>0x1?void 0x0:_0x285777?Bn(_0x17ed06,_0x4b083d):_0x17ed06,_0x277726=_0x383d9a[_0x252fb1(0x2db)]-0x1,_0x5ef37f;_0x277726>=0x0;_0x277726--)(_0x5ef37f=_0x383d9a[_0x277726])&&(_0x38881c=(_0x285777?_0x5ef37f(_0x17ed06,_0x4b083d,_0x38881c):_0x5ef37f(_0x38881c))||_0x38881c);return _0x285777&&_0x38881c&&kn(_0x17ed06,_0x4b083d,_0x38881c),_0x38881c;},os=(_0x44f592,_0x511043)=>(_0x41d1c2,_0x19ab16)=>_0x511043(_0x41d1c2,_0x19ab16,_0x44f592);let ae=class extends _0xd7d44c{constructor(_0x4918ad,_0x2793e6){const _0x4a9fdf=_0x7011be;super(),l(this,_0x4a9fdf(0x1be),new Map()),(this[_0x4a9fdf(0x2c3)]=_0x4918ad,this[_0x4a9fdf(0x4aa)]=_0x2793e6,this[_0x4a9fdf(0x26d)](_0x4b6fbe(_0x2b5f15(this['_univerInstanceService'][_0x4a9fdf(0x2fc)](_0x223004['UNIVER_SHEET'])['pipe'](_0x4b1d28(_0x180a2e=>_0x180a2e[_0x4a9fdf(0x3bf)]())),this[_0x4a9fdf(0x2c3)][_0x4a9fdf(0x2fc)](_0x223004[_0x4a9fdf(0x1a0)])['pipe'](_0x4b1d28(_0x3e6cc8=>_0x3e6cc8[_0x4a9fdf(0x3bf)]())),this['_univerInstanceService'][_0x4a9fdf(0x2fc)](_0x223004[_0x4a9fdf(0x3c1)])['pipe'](_0x4b1d28(_0x4eb0c8=>_0x4eb0c8['getUnitId']())))[_0x4a9fdf(0x376)](_0x5bd838=>this['_removeRoom'](_0x5bd838)))));}[_0x7011be(0x28c)](_0x4812b3){const _0x24cece=_0x7011be;this['_userManagerService'][_0x24cece(0x28c)](_0x4812b3);}[_0x7011be(0x389)](){const _0x105d10=_0x7011be;return this[_0x105d10(0x4aa)][_0x105d10(0x389)]();}['updateMember'](_0x49f8c3,_0x54289b){const _0x11a996=_0x7011be;let _0x5cdc06=this[_0x11a996(0x1be)][_0x11a996(0x3be)](_0x49f8c3);_0x5cdc06||(_0x5cdc06=new Fn(),this[_0x11a996(0x1be)][_0x11a996(0x2e0)](_0x49f8c3,_0x5cdc06)),_0x5cdc06[_0x11a996(0x38c)](_0x54289b);}['removeMember'](_0x582e1a,_0x4f7db3){const _0x31ed8a=_0x7011be,_0x40a642=this[_0x31ed8a(0x1be)][_0x31ed8a(0x3be)](_0x582e1a);_0x40a642&&_0x40a642[_0x31ed8a(0x261)](_0x4f7db3);}['getRoom'](_0x355055){const _0x2fb82e=_0x7011be;return this[_0x2fb82e(0x1be)][_0x2fb82e(0x3be)](_0x355055);}['getMember'](_0x19453a,_0x215d44){const _0x43e406=_0x7011be,_0x23df45=this[_0x43e406(0x1be)]['get'](_0x19453a);if(_0x23df45)return _0x23df45[_0x43e406(0x2a1)](_0x215d44);}[_0x7011be(0x4dc)](_0x4f5c22){const _0x3e2c97=_0x7011be,_0x297524=this[_0x3e2c97(0x1be)][_0x3e2c97(0x3be)](_0x4f5c22);_0x297524&&(_0x297524[_0x3e2c97(0x326)](),this[_0x3e2c97(0x1be)][_0x3e2c97(0x415)](_0x4f5c22));}[_0x7011be(0x326)](){const _0x4096e7=_0x7011be;this[_0x4096e7(0x1be)][_0x4096e7(0x429)](_0x6422c2=>_0x6422c2[_0x4096e7(0x326)]()),this[_0x4096e7(0x1be)][_0x4096e7(0x2d3)]();}};ae=Vn([os(0x0,_0x29e7a7),os(0x1,_0x4f6f98(_0x16eb3c))],ae);class Fn extends _0xd7d44c{constructor(){const _0x3ca2d7=_0x7011be;super(...arguments),l(this,_0x3ca2d7(0x44e),new Map());}['dispose'](){const _0x437855=_0x7011be;this[_0x437855(0x44e)][_0x437855(0x2d3)]();}[_0x7011be(0x38c)](_0x1d0490){const _0xee0acf=_0x7011be;this['_members'][_0xee0acf(0x2e0)](_0x1d0490[_0xee0acf(0x22a)],_0x1d0490);}[_0x7011be(0x261)](_0x122253){const _0x221f3c=_0x7011be;this[_0x221f3c(0x44e)][_0x221f3c(0x415)](_0x122253);}['getMember'](_0x3e931d){const _0x48e158=_0x7011be;return this[_0x48e158(0x44e)][_0x48e158(0x3be)](_0x3e931d);}}var Wn=Object['defineProperty'],Gn=Object[_0x7011be(0x24f)],Yn=(_0x18d92c,_0x222862,_0x434284,_0x5ec5d3)=>{const _0x449f15=_0x7011be;for(var _0x491710=_0x5ec5d3>0x1?void 0x0:_0x5ec5d3?Gn(_0x222862,_0x434284):_0x222862,_0xb83d0e=_0x18d92c[_0x449f15(0x2db)]-0x1,_0xeb0991;_0xb83d0e>=0x0;_0xb83d0e--)(_0xeb0991=_0x18d92c[_0xb83d0e])&&(_0x491710=(_0x5ec5d3?_0xeb0991(_0x222862,_0x434284,_0x491710):_0xeb0991(_0x491710))||_0x491710);return _0x5ec5d3&&_0x491710&&Wn(_0x222862,_0x434284,_0x491710),_0x491710;},J=(_0x2698a6,_0x49c139)=>(_0x171f53,_0x447a81)=>_0x49c139(_0x171f53,_0x447a81,_0x2698a6),G=(_0x137075=>(_0x137075[_0x137075['IDLE']=0x0]='IDLE',_0x137075[_0x137075[_0x7011be(0x36a)]=0x1]=_0x7011be(0x36a),_0x137075[_0x137075['OFFLINE']=0x2]=_0x7011be(0x2ca),_0x137075[_0x137075['ONLINE']=0x3]='ONLINE',_0x137075))(G||{});let Rt=class extends _0x101c13{constructor(_0x593dc5,_0x2bcc59,_0x2bd2b1,_0x25d641,_0x50b537,_0x23b879,_0x3045be,_0xbc37e5,_0x3236d6,_0x2e8928){const _0x3fdcb6=_0x7011be;super(),l(this,'_sessionStatus$',new _0x2048f5(0x0)),l(this,'sessionStatus$',this['_sessionStatus$'][_0x3fdcb6(0x1f7)]()),l(this,_0x3fdcb6(0x251),new _0x4339d0()),l(this,_0x3fdcb6(0x27f),this[_0x3fdcb6(0x251)][_0x3fdcb6(0x1f7)]()),l(this,_0x3fdcb6(0x337)),l(this,_0x3fdcb6(0x33a)),l(this,_0x3fdcb6(0x4a7)),l(this,_0x3fdcb6(0x38d),!0x1),l(this,_0x3fdcb6(0x412),null),(this[_0x3fdcb6(0x330)]=_0x593dc5,this['_logService']=_0x2bd2b1,this[_0x3fdcb6(0x45d)]=_0x25d641,this[_0x3fdcb6(0x398)]=_0x50b537,this[_0x3fdcb6(0x1c9)]=_0x23b879,this['_localeService']=_0x3045be,this[_0x3fdcb6(0x328)]=_0xbc37e5,this['_commentService']=_0x3236d6,this[_0x3fdcb6(0x25c)]=_0x2e8928,this[_0x3fdcb6(0x38d)]=!!this[_0x3fdcb6(0x25c)],_0x2bcc59['pipe'](_0x25a74d(this[_0x3fdcb6(0x3f3)]))['subscribe'](_0x409212=>{const _0x522dcf=_0x3fdcb6;var _0x294ebb;typeof _0x409212>'u'||(this[_0x522dcf(0x337)]=_0x409212,_0x409212?(this[_0x522dcf(0x200)](_0x409212),this[_0x522dcf(0x33a)]=_0x409212[_0x522dcf(0x20f)][_0x522dcf(0x376)](_0x5f1d75=>{const _0x43e9fb=_0x522dcf;_0x5f1d75[_0x43e9fb(0x289)]===this[_0x43e9fb(0x330)]&&this[_0x43e9fb(0x1a6)](_0x5f1d75);})):(this[_0x522dcf(0x29f)](),this[_0x522dcf(0x414)][_0x522dcf(0x40f)](0x2),(_0x294ebb=this[_0x522dcf(0x33a)])==null||_0x294ebb[_0x522dcf(0x416)](),this[_0x522dcf(0x33a)]=null));}),this[_0x3fdcb6(0x26d)](this[_0x3fdcb6(0x45d)]['registerOnClose'](()=>{const _0x2f53a8=_0x3fdcb6;var _0xcf85d7;(_0xcf85d7=this[_0x2f53a8(0x337)])==null||_0xcf85d7[_0x2f53a8(0x4bb)]({'cmd':I[_0x2f53a8(0x229)],'data':{'roomID':this[_0x2f53a8(0x330)]}});})));}get[_0x7011be(0x20c)](){const _0x2237c3=_0x7011be;return this[_0x2237c3(0x414)][_0x2237c3(0x2d5)]();}[_0x7011be(0x34b)](){const _0x509921=_0x7011be;var _0x477f01,_0x490c94;return(_0x490c94=(_0x477f01=this[_0x509921(0x337)])==null?void 0x0:_0x477f01[_0x509921(0x22a)])!=null?_0x490c94:null;}['dispose'](){const _0x5b8378=_0x7011be;super[_0x5b8378(0x326)](),this['dispose$'][_0x5b8378(0x40f)](),this[_0x5b8378(0x3f3)][_0x5b8378(0x4e0)]();}['close'](){const _0x4e4486=_0x7011be;var _0x419e57,_0x34ab32;this[_0x4e4486(0x29f)](),(_0x419e57=this[_0x4e4486(0x337)])==null||_0x419e57[_0x4e4486(0x4bb)]({'cmd':I[_0x4e4486(0x229)],'data':{'roomID':this[_0x4e4486(0x330)]}}),(_0x34ab32=this['_socket'])==null||_0x34ab32[_0x4e4486(0x3fb)](),this[_0x4e4486(0x251)][_0x4e4486(0x4e0)](),this[_0x4e4486(0x414)][_0x4e4486(0x4e0)](),this[_0x4e4486(0x326)]();}[_0x7011be(0x1a6)](_0xb36002){const _0x3feb36=_0x7011be;_0xb36002[_0x3feb36(0x318)]===I[_0x3feb36(0x1b8)]?this[_0x3feb36(0x404)](_0xb36002):_0xb36002[_0x3feb36(0x318)]===I[_0x3feb36(0x297)]&&this['_onRecvEvent'](_0xb36002);}['_joinRoom'](_0x75ed9e){const _0x5dbbfa=_0x7011be;this['_sessionStatus$'][_0x5dbbfa(0x40f)](0x1),_0x75ed9e[_0x5dbbfa(0x4bb)]({'cmd':I['JOIN'],'routeKey':this[_0x5dbbfa(0x330)],'routeType':'','data':{'rooms':[{'roomID':this[_0x5dbbfa(0x330)]}]}});}['_onJoinRoomEvent'](_0x40b7e7){const _0x4c97e4=_0x7011be;var _0x2251c9;if(_0x40b7e7[_0x4c97e4(0x35f)]===Vt[_0x4c97e4(0x1fa)]){this[_0x4c97e4(0x398)][_0x4c97e4(0x2ee)]({'type':_0x5638e0[_0x4c97e4(0x3a8)],'content':this[_0x4c97e4(0x2f8)]['t'](_0x4c97e4(0x3f4))}),this[_0x4c97e4(0x414)][_0x4c97e4(0x40f)](0x2);return;}this[_0x4c97e4(0x414)][_0x4c97e4(0x40f)](0x3);const _0x569688=(_0x2251c9=_0x40b7e7[_0x4c97e4(0x253)][_0x4c97e4(0x3af)][this['_unitID']])==null?void 0x0:_0x2251c9[_0x4c97e4(0x2d7)];_0x569688&&_0x569688[_0x4c97e4(0x429)](_0x33cdef=>this[_0x4c97e4(0x328)][_0x4c97e4(0x38c)](this[_0x4c97e4(0x330)],_0x33cdef));}[_0x7011be(0x176)](_0x16c4c1){const _0x44e642=_0x7011be;try{const _0x202c31=_0x16c4c1[_0x44e642(0x253)];switch(_0x202c31[_0x44e642(0x2fb)]){case _0x3edc6c[_0x44e642(0x202)]:this[_0x44e642(0x3f2)](_0x202c31),this['_event$']['next'](_0x202c31);break;case _0x3edc6c[_0x44e642(0x33f)]:this[_0x44e642(0x224)](_0x202c31),this[_0x44e642(0x251)]['next'](_0x202c31);break;case _0x3edc6c[_0x44e642(0x324)]:this[_0x44e642(0x203)](),this[_0x44e642(0x4b8)](),this[_0x44e642(0x251)][_0x44e642(0x40f)](_0x202c31);break;case _0x3edc6c[_0x44e642(0x295)]:this[_0x44e642(0x1b4)][_0x44e642(0x174)](_0x44e642(0x448)+JSON['stringify'](_0x202c31)),this[_0x44e642(0x251)][_0x44e642(0x40f)](_0x202c31);break;case _0x3edc6c[_0x44e642(0x3e9)]:this[_0x44e642(0x48f)][_0x44e642(0x41e)](_0x202c31['data']),this['_event$'][_0x44e642(0x40f)](_0x202c31);break;default:this[_0x44e642(0x251)]['next'](_0x202c31);}}catch(_0x38938f){this[_0x44e642(0x1b4)][_0x44e642(0x174)](_0x38938f,_0x16c4c1);}}[_0x7011be(0x3f2)](_0x1f4957){const _0x558d50=_0x7011be;this[_0x558d50(0x328)][_0x558d50(0x38c)](this['_unitID'],_0x1f4957['data']);}[_0x7011be(0x224)](_0x3a6bf8){const _0x1423b5=_0x7011be;this[_0x1423b5(0x328)][_0x1423b5(0x261)](this[_0x1423b5(0x330)],_0x3a6bf8[_0x1423b5(0x253)][_0x1423b5(0x22a)]);}async['send'](_0x18fa8f,_0x216a67){const _0x443323=_0x7011be;if(this[_0x443323(0x20c)]!==0x3||!this[_0x443323(0x337)])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x18fa8f[_0x443323(0x2fb)]===_0x3edc6c[_0x443323(0x3ef)]&&(this[_0x443323(0x25b)](),this[_0x443323(0x2ec)](_0x18fa8f)),this[_0x443323(0x337)][_0x443323(0x4bb)]({'cmd':I[_0x443323(0x17c)],'routeKey':_0x216a67,'routeType':'','data':_0x18fa8f});}catch(_0x25cf50){this[_0x443323(0x1b4)]['error'](_0x25cf50);}}['_scheduleCollaborationTimeoutTimer'](){const _0x229829=_0x7011be;var _0x259728;this[_0x229829(0x4a7)]=window[_0x229829(0x42a)](()=>{const _0x5f55a9=_0x229829;this[_0x5f55a9(0x4a7)]=null,this['_messageService']['show']({'type':_0x5638e0[_0x5f55a9(0x270)],'content':this[_0x5f55a9(0x2f8)]['t'](_0x5f55a9(0x2bf))});},(_0x259728=this['_configService'][_0x229829(0x34f)](Us))!=null?_0x259728:Ms);}['_clearCollaborationTimeoutTimer'](){const _0x1d8d30=_0x7011be;this[_0x1d8d30(0x4a7)]&&(clearTimeout(this['_collaborationTimeoutTimer']),this[_0x1d8d30(0x4a7)]=null);}[_0x7011be(0x2ec)](_0x33ec5b){const _0x32a8d5=_0x7011be;if(!this['_shouldReportTelemetry'])return;const {data:_0x5c997a}=_0x33ec5b,{unitID:_0x20627a,changeset:_0x2c7fdc}=_0x5c997a,{mutations:_0x15ace7,type:_0x3e626f}=_0x2c7fdc;this[_0x32a8d5(0x412)]={'unitId':_0x20627a,'type':_0x3e626f,'startTime':performance[_0x32a8d5(0x240)](),'stopTime':0x0,'duration':0x0,'size':Hn(_0x15ace7)};}[_0x7011be(0x203)](){const _0x5f3694=_0x7011be;if(this[_0x5f3694(0x38d)]){if(!this[_0x5f3694(0x412)]){this[_0x5f3694(0x1b4)][_0x5f3694(0x174)](_0x5f3694(0x273),_0x5f3694(0x1e8));return;}this[_0x5f3694(0x412)][_0x5f3694(0x3c8)]=performance[_0x5f3694(0x240)](),this['_telemetryInfo'][_0x5f3694(0x1af)]=this[_0x5f3694(0x412)][_0x5f3694(0x3c8)]-this[_0x5f3694(0x412)]['startTime'],this['_telemetryService'][_0x5f3694(0x2dd)](xn,this[_0x5f3694(0x412)]),this[_0x5f3694(0x412)]=null;}}[_0x7011be(0x29f)](){const _0xac1766=_0x7011be;this[_0xac1766(0x412)]=null;}};Rt=Yn([J(0x2,_0x2f2df5),J(0x3,_0x3d7ec6),J(0x4,_0x13bf44),J(0x5,_0x516197),J(0x6,_0x4f6f98(_0x95964d)),J(0x7,_0x4f6f98(ae)),J(0x8,_0x4f6f98(js)),J(0x9,_0x59d638(_0x544e05))],Rt);var Kn=Object['defineProperty'],Xn=Object[_0x7011be(0x24f)],Jn=(_0x3e639e,_0x55cd10,_0x4c0103,_0x441769)=>{const _0x15063e=_0x7011be;for(var _0x2fc807=_0x441769>0x1?void 0x0:_0x441769?Xn(_0x55cd10,_0x4c0103):_0x55cd10,_0x1ce7f0=_0x3e639e[_0x15063e(0x2db)]-0x1,_0xc9a733;_0x1ce7f0>=0x0;_0x1ce7f0--)(_0xc9a733=_0x3e639e[_0x1ce7f0])&&(_0x2fc807=(_0x441769?_0xc9a733(_0x55cd10,_0x4c0103,_0x2fc807):_0xc9a733(_0x2fc807))||_0x2fc807);return _0x441769&&_0x2fc807&&Kn(_0x55cd10,_0x4c0103,_0x2fc807),_0x2fc807;},de=(_0x573325,_0x42da99)=>(_0x3c9ee0,_0x36ac43)=>_0x42da99(_0x3c9ee0,_0x36ac43,_0x573325);let ce=class extends _0xd7d44c{constructor(_0x54cfa0,_0x4ffd12,_0x487efc,_0x4f92f6,_0x574a2f,_0xaef51c){const _0x3e5571=_0x7011be;super(),l(this,_0x3e5571(0x183),new _0x2048f5(void 0x0)),l(this,_0x3e5571(0x2dc),this[_0x3e5571(0x183)][_0x3e5571(0x1f7)]()),l(this,_0x3e5571(0x356),null),l(this,'_sessions',new Map()),l(this,_0x3e5571(0x45c),new _0x2048f5(G[_0x3e5571(0x35d)])),l(this,_0x3e5571(0x294),this['_status$'][_0x3e5571(0x1f7)]()),l(this,_0x3e5571(0x486),!0x1),l(this,_0x3e5571(0x236)),l(this,'_retryCount',0x0),l(this,_0x3e5571(0x3d7)),l(this,'_timeoutTimer'),(this[_0x3e5571(0x47c)]=_0x54cfa0,this[_0x3e5571(0x2f8)]=_0x4ffd12,this['_messageService']=_0x487efc,this[_0x3e5571(0x1b4)]=_0x4f92f6,this['_configService']=_0x574a2f,this[_0x3e5571(0x311)]=_0xaef51c,this[_0x3e5571(0x3e8)]());}get[_0x7011be(0x337)](){const _0x1001f2=_0x7011be;return this['_socket$'][_0x1001f2(0x2d5)]();}[_0x7011be(0x3e8)](){const _0x22b63e=_0x7011be;this['_listenToOfflineEvent'](),this[_0x22b63e(0x31e)]();}[_0x7011be(0x326)](){const _0x17ca10=_0x7011be;super[_0x17ca10(0x326)](),this[_0x17ca10(0x263)][_0x17ca10(0x429)](_0x4ef4d8=>_0x4ef4d8[_0x17ca10(0x326)]()),this['_sessions'][_0x17ca10(0x2d3)](),this[_0x17ca10(0x45c)][_0x17ca10(0x4e0)]();}async['requireSession'](_0x4bdfa2){const _0x6afe38=_0x7011be;if(this['_sessions']['has'](_0x4bdfa2))return this[_0x6afe38(0x263)][_0x6afe38(0x3be)](_0x4bdfa2);this[_0x6afe38(0x302)]();const _0x2852b4=this['_injector']['createInstance'](Rt,_0x4bdfa2,this[_0x6afe38(0x183)][_0x6afe38(0x1f7)]());return this[_0x6afe38(0x263)][_0x6afe38(0x2e0)](_0x4bdfa2,_0x2852b4),_0x2852b4;}[_0x7011be(0x3d4)](_0x4cc127){const _0x1f7cc9=_0x7011be;var _0x5e2515;const _0x117652=this['_sessions']['get'](_0x4cc127);_0x117652&&(this[_0x1f7cc9(0x263)][_0x1f7cc9(0x415)](_0x4cc127),_0x117652['close']()),this['_sessions'][_0x1f7cc9(0x43c)]||(_0x5e2515=this['_socket'])==null||_0x5e2515[_0x1f7cc9(0x3fb)]();}[_0x7011be(0x375)](){const _0x56c8dc=_0x7011be;this[_0x56c8dc(0x487)]=0x0,this[_0x56c8dc(0x236)]!=null&&(clearTimeout(this[_0x56c8dc(0x236)]),this['_retryConnectingTimer']=null),this[_0x56c8dc(0x495)]();}[_0x7011be(0x3a4)](){const _0x573886=_0x7011be;var _0x9a833f,_0x41e8c6;const _0x22d064=this[_0x573886(0x1c9)][_0x573886(0x34f)](pn),_0x2d79e3=this[_0x573886(0x1c9)][_0x573886(0x34f)](L),_0x46e39b=(_0x41e8c6=(_0x9a833f=_0x2d79e3==null?void 0x0:_0x2d79e3[_0x573886(0x3f5)])!=null?_0x9a833f:_0x22d064)!=null?_0x41e8c6:vn,_0x32d6a9=this[_0x573886(0x311)][_0x573886(0x231)](_0x46e39b);return this[_0x573886(0x356)]=_0x32d6a9,_0x32d6a9;}[_0x7011be(0x302)](){const _0x45e7ac=_0x7011be;var _0xdd57f2,_0x2604f1;try{const _0x43093a=(_0x2604f1=(_0xdd57f2=this[_0x45e7ac(0x337)])!=null?_0xdd57f2:this[_0x45e7ac(0x356)])!=null?_0x2604f1:this['_createSocket']();if(_0x43093a){const _0x3594c6=_0x43093a[_0x45e7ac(0x4bb)];_0x43093a[_0x45e7ac(0x4bb)]=_0x5aa801=>(this[_0x45e7ac(0x3cd)](),_0x3594c6['apply'](_0x43093a,[_0x5aa801])),_0x43093a[_0x45e7ac(0x20f)][_0x45e7ac(0x376)](_0x59e9cc=>this[_0x45e7ac(0x291)](_0x43093a,_0x59e9cc)),_0x43093a[_0x45e7ac(0x18e)][_0x45e7ac(0x185)](_0x577ed3(0x1))['subscribe'](_0x588404=>this[_0x45e7ac(0x1b4)][_0x45e7ac(0x174)](_0x45e7ac(0x27c),_0x588404)),_0x43093a['open$'][_0x45e7ac(0x185)](_0x577ed3(0x1))[_0x45e7ac(0x376)](()=>{const _0x36a2ca=_0x45e7ac;this[_0x36a2ca(0x30b)](_0x43093a);}),_0x43093a['close$']['pipe'](_0x577ed3(0x1))[_0x45e7ac(0x376)](_0x345abd=>{const _0x4f49d2=_0x45e7ac;this[_0x4f49d2(0x1b4)][_0x4f49d2(0x368)](_0x4f49d2(0x1e1),_0x4f49d2(0x3da),_0x345abd),this['_onConnectionFailed']();});}}catch(_0x2c3254){this[_0x45e7ac(0x1b4)][_0x45e7ac(0x174)](_0x2c3254),this[_0x45e7ac(0x446)]();}}[_0x7011be(0x30b)](_0x57ff44){const _0x3fccdc=_0x7011be;this[_0x3fccdc(0x1b4)][_0x3fccdc(0x368)](_0x3fccdc(0x1e1),'socket\x20open.'),_0x57ff44[_0x3fccdc(0x4bb)]({'cmd':I[_0x3fccdc(0x45f)]}),this['_rescheduleHeartbeat']();}[_0x7011be(0x439)](){const _0x538eca=_0x7011be;window[_0x538eca(0x441)](_0x538eca(0x3e3),()=>this[_0x538eca(0x4ce)]());}[_0x7011be(0x4ce)](){const _0x2a7543=_0x7011be;this[_0x2a7543(0x486)]=!0x1,this[_0x2a7543(0x356)]=null,this[_0x2a7543(0x45c)][_0x2a7543(0x40f)](G[_0x2a7543(0x2ca)]),this[_0x2a7543(0x183)][_0x2a7543(0x40f)](null),this['_clearTimeoutTimer'](),this['_clearHeartbeatTimer']();}[_0x7011be(0x446)](){const _0x39f2b0=_0x7011be;var _0x8e1203;this[_0x39f2b0(0x4ce)](),this[_0x39f2b0(0x487)]<((_0x8e1203=this[_0x39f2b0(0x1c9)][_0x39f2b0(0x34f)](bn))!=null?_0x8e1203:Tn)?(this['_messageService'][_0x39f2b0(0x2ee)]({'key':_0x39f2b0(0x1aa),'type':_0x5638e0['Warning'],'content':this[_0x39f2b0(0x2f8)]['t']('session.will-retry')}),this[_0x39f2b0(0x495)]()):this[_0x39f2b0(0x398)]['show']({'key':_0x39f2b0(0x1aa),'type':_0x5638e0[_0x39f2b0(0x270)],'content':this[_0x39f2b0(0x2f8)]['t'](_0x39f2b0(0x1ac))});}[_0x7011be(0x31e)](){const _0x45b3f4=_0x7011be,_0x283b5c=()=>{const _0x2ce230=_0x312b;this[_0x2ce230(0x337)]||this[_0x2ce230(0x375)]();},_0x5eb947=()=>{const _0x4d955c=_0x312b;this[_0x4d955c(0x337)]||document[_0x4d955c(0x455)]==='hidden'||this['reconnect']();};window[_0x45b3f4(0x441)](_0x45b3f4(0x32c),_0x283b5c),document[_0x45b3f4(0x441)]('visibilitychange',_0x5eb947);}[_0x7011be(0x495)](){const _0x5b221c=_0x7011be;var _0x579835;const _0x4643f7=this['_retryCount'],_0x54b5a0=this[_0x5b221c(0x1c9)][_0x5b221c(0x34f)](L),_0x288345=_0x4643f7===0x0?0x0:((_0x579835=_0x54b5a0==null?void 0x0:_0x54b5a0[_0x5b221c(0x4d2)])!=null?_0x579835:Cn)*0x2**_0x4643f7;this[_0x5b221c(0x236)]=window[_0x5b221c(0x42a)](()=>{const _0x54afdb=_0x5b221c;clearTimeout(this[_0x54afdb(0x236)]),this['_retryConnectingTimer']=null,this[_0x54afdb(0x302)]();},_0x288345),this[_0x5b221c(0x487)]+=0x1;}[_0x7011be(0x291)](_0x4289b2,_0x42e38e){const _0x11ccd7=_0x7011be,{cmd:_0x42cc39}=_0x42e38e;_0x42cc39===I[_0x11ccd7(0x45f)]&&!this['_socketReady']&&(_0x4289b2['memberID']=_0x42e38e[_0x11ccd7(0x253)][_0x11ccd7(0x22a)],this[_0x11ccd7(0x183)][_0x11ccd7(0x40f)](_0x4289b2),this[_0x11ccd7(0x45c)][_0x11ccd7(0x40f)](G[_0x11ccd7(0x493)]),this['_socketReady']=!0x0,this['_candidateSocket']=null),_0x42cc39===I[_0x11ccd7(0x29b)]&&this[_0x11ccd7(0x4ad)](),this[_0x11ccd7(0x3cd)]();}[_0x7011be(0x3cd)](){const _0x9a3f24=_0x7011be;var _0x4dbf45;this[_0x9a3f24(0x430)](),this[_0x9a3f24(0x3d7)]=window['setTimeout'](()=>this[_0x9a3f24(0x230)](),(_0x4dbf45=this[_0x9a3f24(0x1c9)]['getConfig'](In))!=null?_0x4dbf45:En);}[_0x7011be(0x230)](){const _0x3338a6=_0x7011be;this['_socket']['send']({'cmd':I[_0x3338a6(0x29b)]}),this[_0x3338a6(0x41b)]();}[_0x7011be(0x41b)](){const _0x3d365a=_0x7011be;var _0x1735bd;this[_0x3d365a(0x3ba)]=window['setTimeout'](()=>this[_0x3d365a(0x446)](),(_0x1735bd=this[_0x3d365a(0x1c9)]['getConfig'](Us))!=null?_0x1735bd:Ms);}[_0x7011be(0x430)](){const _0x471b17=_0x7011be;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x471b17(0x3d7)]),this[_0x471b17(0x3d7)]=null);}['_clearTimeoutTimer'](){const _0x29a9be=_0x7011be;this[_0x29a9be(0x3ba)]!=null&&(clearTimeout(this[_0x29a9be(0x3ba)]),this[_0x29a9be(0x3ba)]=null);}};ce=Jn([de(0x0,_0x4f6f98(_0x8f002c)),de(0x1,_0x4f6f98(_0x95964d)),de(0x2,_0x13bf44),de(0x3,_0x2f2df5),de(0x4,_0x516197),de(0x5,$s)],ce);var qn=Object[_0x7011be(0x38b)],zn=Object[_0x7011be(0x24f)],Zn=(_0x4398e7,_0x59ce6b,_0x2693f5,_0x3d11b8)=>{const _0x252425=_0x7011be;for(var _0x433d3b=_0x3d11b8>0x1?void 0x0:_0x3d11b8?zn(_0x59ce6b,_0x2693f5):_0x59ce6b,_0x2931de=_0x4398e7[_0x252425(0x2db)]-0x1,_0x49a965;_0x2931de>=0x0;_0x2931de--)(_0x49a965=_0x4398e7[_0x2931de])&&(_0x433d3b=(_0x3d11b8?_0x49a965(_0x59ce6b,_0x2693f5,_0x433d3b):_0x49a965(_0x433d3b))||_0x433d3b);return _0x3d11b8&&_0x433d3b&&qn(_0x59ce6b,_0x2693f5,_0x433d3b),_0x433d3b;},_t=(_0x205cf9,_0xe249b2)=>(_0x4964c7,_0x1a13e2)=>_0xe249b2(_0x4964c7,_0x1a13e2,_0x205cf9);let Ze=class{constructor(_0x1b76c6,_0x4d3935,_0x57a23d){const _0x1eb033=_0x7011be;this[_0x1eb033(0x47c)]=_0x1b76c6,this['_transformService']=_0x4d3935,this['_renderManagerService']=_0x57a23d;}[_0x7011be(0x3a2)](_0x349a1b){const _0x534380=_0x7011be;this[_0x534380(0x4d3)](_0x349a1b),this[_0x534380(0x3c6)](_0x349a1b);}[_0x7011be(0x179)](_0x568ffd){const _0x243e50=_0x7011be,{unitID:_0x46a75d}=_0x568ffd,_0x29b71b=this[_0x243e50(0x18b)][_0x243e50(0x2f5)](_0x46a75d)['with'](_0xe82a9),{redoCache:_0x170593}=_0x29b71b['getUndoRedoMutationParamsCache']();if(_0x170593[_0x243e50(0x2db)]===0x0)return _0x568ffd;let _0x29b635=_0x14f99b[_0x243e50(0x271)](_0x568ffd[_0x243e50(0x459)][0x0]);for(let _0x4f119a=0x0;_0x4f119a<_0x170593['length'];_0x4f119a++){const _0x2c4b63={'id':_0x243e50(0x450),'params':{..._0x170593[_0x4f119a]}},_0x371531=this['_transformService'][_0x243e50(0x47b)](_0x29b635,_0x2c4b63,!0x1);if(_0x1870ea(_0x371531))throw _0x371531['error'];_0x29b635=_0x371531[_0x243e50(0x385)];}return{..._0x14f99b['deepClone'](_0x568ffd),'mutations':[_0x29b635]};}[_0x7011be(0x4d3)](_0x972e16){const _0x305059=_0x7011be,{unitID:_0x135165}=_0x972e16,_0x210d1c=this['_renderManagerService'][_0x305059(0x2f5)](_0x135165)[_0x305059(0x204)](_0xe82a9),{undoCache:_0x242a41,redoCache:_0x3554ea}=_0x210d1c[_0x305059(0x1dc)]();if(_0x242a41[_0x305059(0x2db)]===0x0||_0x3554ea[_0x305059(0x2db)]===0x0)return;const _0x44d51e=[],_0x5e33f2=[];let _0xb46685=_0x14f99b[_0x305059(0x271)](_0x972e16[_0x305059(0x459)][0x0]),_0x23fb06=_0x14f99b[_0x305059(0x271)](_0x972e16[_0x305059(0x459)][0x0]);for(let _0x10c92d=_0x242a41[_0x305059(0x2db)]-0x1;_0x10c92d>=0x0;_0x10c92d--){const _0x3cc0b9={'id':_0x305059(0x450),'params':{..._0x242a41[_0x10c92d]}},_0x2ee2f2={'id':_0x305059(0x450),'params':{..._0x3554ea[_0x10c92d]}},_0x1818c3=this[_0x305059(0x26f)]['transformMutation'](_0xb46685,_0x3cc0b9,!0x1),_0x56abf9=this[_0x305059(0x26f)][_0x305059(0x47b)](_0x23fb06,_0x2ee2f2,!0x1);if(_0x1870ea(_0x1818c3))throw _0x1818c3[_0x305059(0x174)];if(_0x1870ea(_0x56abf9))throw _0x56abf9[_0x305059(0x174)];_0x44d51e[_0x305059(0x466)](_0x1818c3[_0x305059(0x1d5)][_0x305059(0x329)]),_0x5e33f2[_0x305059(0x466)](_0x56abf9[_0x305059(0x1d5)][_0x305059(0x329)]),_0xb46685=_0x1818c3[_0x305059(0x385)],_0x23fb06=_0x56abf9[_0x305059(0x385)];}_0x210d1c['setUndoRedoMutationParamsCache']({'undoCache':_0x44d51e,'redoCache':_0x5e33f2});}[_0x7011be(0x3c6)](_0x21c51e){const _0x5afcb8=_0x7011be,{unitID:_0x2a7daa}=_0x21c51e,_0x227996=this[_0x5afcb8(0x18b)]['getRenderById'](_0x2a7daa)[_0x5afcb8(0x204)](_0xe82a9),_0x381b30=_0x227996['getActiveRange']();if(_0x381b30==null)return;const _0x3c4f65=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x21c51e[_0x5afcb8(0x363)],'actions':null,'textRanges':[_0x381b30]}}],_0xa10ff0=this[_0x5afcb8(0x26f)][_0x5afcb8(0x37b)](_0x21c51e,_0x3c4f65);if(!_0x50faaa(_0xa10ff0))throw _0xa10ff0['error'];const _0x3cf0f5=_0xa10ff0[_0x5afcb8(0x1d5)][0x0][_0x5afcb8(0x329)]['textRanges'];Array[_0x5afcb8(0x383)](_0x3cf0f5)&&_0x3cf0f5['length']&&_0x227996[_0x5afcb8(0x496)](_0x3cf0f5[0x0]);}};Ze=Zn([_t(0x0,_0x4f6f98(_0x8f002c)),_t(0x1,_0x49c306),_t(0x2,_0x5d47cb)],Ze);var Qn=Object[_0x7011be(0x38b)],er=Object[_0x7011be(0x24f)],tr=(_0x4378cf,_0x5d52e6,_0x1cda95,_0x331bd3)=>{const _0xc86abc=_0x7011be;for(var _0x22777f=_0x331bd3>0x1?void 0x0:_0x331bd3?er(_0x5d52e6,_0x1cda95):_0x5d52e6,_0x24f6b8=_0x4378cf[_0xc86abc(0x2db)]-0x1,_0x450e1b;_0x24f6b8>=0x0;_0x24f6b8--)(_0x450e1b=_0x4378cf[_0x24f6b8])&&(_0x22777f=(_0x331bd3?_0x450e1b(_0x5d52e6,_0x1cda95,_0x22777f):_0x450e1b(_0x22777f))||_0x22777f);return _0x331bd3&&_0x22777f&&Qn(_0x5d52e6,_0x1cda95,_0x22777f),_0x22777f;},Oe=(_0x3c1fae,_0xbb9939)=>(_0x1199d6,_0x5b9360)=>_0xbb9939(_0x1199d6,_0x5b9360,_0x3c1fae);let D=class extends _0xd7d44c{constructor(_0x51aaec,_0x484064,_0x4553fd,_0x475e76,_0x490d04){const _0x4a3eb8=_0x7011be;super(),l(this,_0x4a3eb8(0x3aa),new Map()),l(this,_0x4a3eb8(0x2e3),new Map()),l(this,'_disabled',!0x1),(this[_0x4a3eb8(0x1c9)]=_0x51aaec,this[_0x4a3eb8(0x464)]=_0x484064,this['_beforeCloseService']=_0x4553fd,this[_0x4a3eb8(0x2f8)]=_0x475e76,this[_0x4a3eb8(0x4c8)]=_0x490d04,this[_0x4a3eb8(0x4d6)]());}['disableLocalCache'](){const _0x5c5c0b=_0x7011be;this[_0x5c5c0b(0x266)]=!0x0;}[_0x7011be(0x3b2)](){const _0x4002f7=_0x7011be;this[_0x4002f7(0x266)]=!0x1;}[_0x7011be(0x326)](){const _0x3386a2=_0x7011be;this[_0x3386a2(0x4d0)]()['then'](()=>super[_0x3386a2(0x326)]());}async['loadOfflineData'](_0x586c7d){const _0x5e7b44=_0x7011be;return this['_disabled']?null:this[_0x5e7b44(0x464)][_0x5e7b44(0x260)](as(_0x586c7d));}async['saveOfflineData'](_0x2bec35,_0x2e3602){const _0x3c9d3a=_0x7011be;return!!this['_localStorageService'][_0x3c9d3a(0x35e)](_0x2bec35,_0x2e3602);}[_0x7011be(0x39a)](_0x4b76de,_0x21655f,_0xb956f6,_0x213367){const _0x38c355=_0x7011be,_0x2338b6=this[_0x38c355(0x4c8)][_0x38c355(0x334)](_0x4b76de);this[_0x38c355(0x3aa)]['set'](_0x4b76de,{'unitID':_0x4b76de,'type':_0x21655f,'awaitingChangeset':_0xb956f6,'mutations':_0x213367,'rev':_0x2338b6}),this[_0x38c355(0x2e3)][_0x38c355(0x436)](_0x4b76de)||this[_0x38c355(0x386)](_0x4b76de);}[_0x7011be(0x386)](_0xf2d841){const _0xbc56bf=_0x7011be,_0x324951=this['_getSaveTimeout']();_0x324951===0x0?this[_0xbc56bf(0x300)](_0xf2d841):this[_0xbc56bf(0x2e3)][_0xbc56bf(0x2e0)](_0xf2d841,setTimeout(()=>this[_0xbc56bf(0x300)](_0xf2d841),_0x324951));}[_0x7011be(0x4e5)](){const _0x358334=_0x7011be;var _0x47b7ff;return(_0x47b7ff=this[_0x358334(0x1c9)]['getConfig'](Rn))!=null?_0x47b7ff:On;}['_saveCache'](_0x499ad3){const _0x1ba20e=_0x7011be,_0x4c12aa=this[_0x1ba20e(0x2e3)][_0x1ba20e(0x3be)](_0x499ad3);return _0x4c12aa!==void 0x0&&window['clearTimeout'](_0x4c12aa),this['_localStorageService']['setItem'](as(_0x499ad3),this[_0x1ba20e(0x3aa)]['get'](_0x499ad3))[_0x1ba20e(0x26e)](()=>this[_0x1ba20e(0x2e3)][_0x1ba20e(0x415)](_0x499ad3));}async[_0x7011be(0x4d0)](){const _0x4d1b9a=_0x7011be,_0x35753b=[];this[_0x4d1b9a(0x2e3)][_0x4d1b9a(0x429)]((_0x40ee5a,_0x58514f)=>{const _0x1b6fb1=_0x4d1b9a;window[_0x1b6fb1(0x351)](_0x40ee5a),_0x35753b[_0x1b6fb1(0x1c4)](this[_0x1b6fb1(0x300)](_0x58514f)[_0x1b6fb1(0x26e)](()=>{const _0x1a9d1d=_0x1b6fb1;this[_0x1a9d1d(0x2e3)][_0x1a9d1d(0x415)](_0x58514f);}));}),await Promise[_0x4d1b9a(0x350)](_0x35753b);}[_0x7011be(0x4d6)](){const _0x607885=_0x7011be;this[_0x607885(0x26d)](this[_0x607885(0x45d)]['registerBeforeClose'](()=>{const _0x36d03b=_0x607885;if(this[_0x36d03b(0x2e3)][_0x36d03b(0x43c)])return this[_0x36d03b(0x2f8)]['t'](_0x36d03b(0x187));}));}};function _0x312b(_0x49904b,_0x15565f){const _0xf13147=_0xf131();return _0x312b=function(_0x312b5f,_0x4ae738){_0x312b5f=_0x312b5f-0x174;let _0xfe5917=_0xf13147[_0x312b5f];return _0xfe5917;},_0x312b(_0x49904b,_0x15565f);}D=tr([Oe(0x0,_0x516197),Oe(0x1,_0x594a58),Oe(0x2,_0x3d7ec6),Oe(0x3,_0x4f6f98(_0x95964d)),Oe(0x4,_0x4f6f98(_0xd9ea18))],D);function as(_0x222712){return'unit-cache-'+_0x222712;}var sr=Object[_0x7011be(0x38b)],ir=Object[_0x7011be(0x24f)],nr=(_0x44510c,_0x1fc967,_0x521c9f,_0x2308a3)=>{const _0x28cdf5=_0x7011be;for(var _0x2650ba=_0x2308a3>0x1?void 0x0:_0x2308a3?ir(_0x1fc967,_0x521c9f):_0x1fc967,_0x56a5d0=_0x44510c[_0x28cdf5(0x2db)]-0x1,_0x5cb8fb;_0x56a5d0>=0x0;_0x56a5d0--)(_0x5cb8fb=_0x44510c[_0x56a5d0])&&(_0x2650ba=(_0x2308a3?_0x5cb8fb(_0x1fc967,_0x521c9f,_0x2650ba):_0x5cb8fb(_0x2650ba))||_0x2650ba);return _0x2308a3&&_0x2650ba&&sr(_0x1fc967,_0x521c9f,_0x2650ba),_0x2650ba;},ut=(_0x3f54f9,_0x9deb04)=>(_0x52de98,_0x1a1b75)=>_0x9deb04(_0x52de98,_0x1a1b75,_0x3f54f9);function rr(_0x606bc4){const _0x133bee=_0x7011be,{unitID:_0x3beb9b,mutations:_0x51b2b2}=_0x606bc4;return{'unitId':_0x3beb9b,'subUnitId':_0x51b2b2[0x0][_0x133bee(0x329)][_0x133bee(0x30f)]};}let Qe=class{constructor(_0x4b9ff3,_0x96243f,_0x118a81){const _0x3097bb=_0x7011be;this[_0x3097bb(0x47c)]=_0x4b9ff3,this[_0x3097bb(0x26f)]=_0x96243f,this[_0x3097bb(0x3ac)]=_0x118a81;}[_0x7011be(0x250)](_0x6bedff){const _0x509f1c=_0x7011be;var _0x299ded,_0x5a34c1,_0x113336,_0x4f0180;const _0x4724bb=this[_0x509f1c(0x47c)][_0x509f1c(0x3be)](_0x23d40e),{unitId:_0x882239,subUnitId:_0x3690ca}=rr(_0x6bedff),_0x53ce5b=_0x4724bb[_0x509f1c(0x367)](_0x882239)[_0x509f1c(0x489)](),_0x223fba=(_0x5a34c1=(_0x299ded=this[_0x509f1c(0x3ac)]['getUnit'](_0x882239))==null?void 0x0:_0x299ded[_0x509f1c(0x23c)]())==null?void 0x0:_0x5a34c1[_0x509f1c(0x3ff)]();if(_0x53ce5b[_0x509f1c(0x2db)]===0x0||!_0x882239||!_0x3690ca)return;const _0x35d72e=[{'id':_0x49df62['id'],'params':{'unitId':_0x882239,'subUnitId':_0x223fba,'selections':_0x14f99b[_0x509f1c(0x271)](_0x53ce5b)}}],_0x1b49de=this['_transformService'][_0x509f1c(0x37b)](_0x6bedff,_0x35d72e);if(!_0x50faaa(_0x1b49de))throw _0x1b49de[_0x509f1c(0x174)];const _0x570ae8=(_0x4f0180=(_0x113336=_0x1b49de[_0x509f1c(0x1d5)][0x0])==null?void 0x0:_0x113336[_0x509f1c(0x329)])==null?void 0x0:_0x4f0180[_0x509f1c(0x39b)];Array[_0x509f1c(0x383)](_0x570ae8)&&_0x570ae8[_0x509f1c(0x2db)]&&this[_0x509f1c(0x47c)][_0x509f1c(0x3be)](_0x2cea1d)[_0x509f1c(0x431)](_0x49df62['id'],{'unitId':_0x882239,'subUnitId':_0x223fba,'selections':_0x570ae8});}};Qe=nr([ut(0x0,_0x4f6f98(_0x8f002c)),ut(0x1,_0x49c306),ut(0x2,_0x29e7a7)],Qe);const nt=_0x1e5b71(_0x7011be(0x1c7));function _0xf131(){const _0x14c2d4=['_timeoutTimer','COLLAB_WEB_SOCKET_URL','_name','c2Prime','get','getUnitId','xlink:href','UNIVER_SLIDE','_compressMutationService','conflict.content','_collabCursorController','off-line-single_clip0_910_343','_transformPreviousActiveRange','getDocRanges','stopTime','_getAPIPrefix','socketService','add','_lockTransition','_rescheduleHeartbeat','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','sendChangesetTimeout','currentColor','UNAUTHENTICATED','0\x200\x2017\x2016','_schedule','closeSession','session','_handleHeartbeatEvent','_sendHeartbeatTimer','authzUrl','hide','socket\x20close','colorChannel1','interceptor','values','_awaitingChangeset','target','_refRangeService','[CollaborationState]:\x20apply\x20error!','className','offline','override','_transformStack','onTransformChange$','getUnitOnRev','_initEventListeners','COMMENT_UPDATE','moveTo','getUnitStatus$','stringify','getRangePointData','ALREADY_EXISTS','SUBMIT_CHANGESET','_transformIMECache','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_onUserJoin','dispose$','session.room-full','collabWebSocketUrl','_drawRectRange','HttpImport','patch','[DataLoaderController]','_type','close','selection','fetchMiss','newValue','getSheetId','url(#$1','_onRemoteRejected','_removeClearOtherTimer','loadOfflineData','_onJoinRoomEvent','_initCloseConn','saveImage','NOT_FOUND','/universer-api/authz','_hideTimer','x-univer-host','_entityInit$','EXCHANGE_SIGN_URL_SERVER_URL_KEY','_localCacheService','_showConflictNotification','next','_undoStacks','[CollaborationEntity]','_telemetryInfo','trim','_sessionStatus$','delete','unsubscribe','saveSnapshot','_unitStatus','LIVESHARE_REQUEST_HOST','_substituteRedoStack','_waitForHeartbeatResponse','_shapes','_assignedColors','onCommentUpdate','_handleHover','onTransformIME','enableAuthServer','_send','div','getViewport','joinRsp','flatMap','cursorInfo$','UniverIcon','forEach','setTimeout','VIEW_MAIN','_getSendChangesetTimeout','UNIVER_SHEET','_initModules','LICENSE_IMPORT_SIZE_EXCEEDED','_clearHeartbeatTimer','executeCommand','row','call','list','318gUIAOl','has','DEFAULT_FILE_NAME','Starting','_listenToOfflineEvent','onRemoteAck','addObject','size','[PendingState]:\x20received\x20acknowledgement.','close$','onTransformRemoteChangesetByIMECache','_clearLocalCache','addEventListener','resourceIDs','unitId\x20is\x20not\x20found','ws://127.0.0.1:8000/universer-api/comb/connect','auth.needGotoLoginAlert','_onConnectionFailed','/role','save\x20fail\x20reason\x20is\x20','children','APPLY_REJECT','replace','hasOwnProperty','registerRenderModule','_members','_getCtorByUniverType','doc.mutation.rich-text-editing','_eventUnsubscribe','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_getDownloadEndpointURL','COMPLETION_FINISHED','visibilityState','/resources','replaceTextRanges','univer-online-status','mutations','_cursorShapes','INTERNAL_ERROR','_status$','_beforeCloseService','onStateChange','HELLO','triggerDblclick','prototype','[OfflineState]:\x20received\x20changeset.','LIVESHARE_FETCH_OPERATIONS','_localStorageService','_redoStacks','unshift','width','PSEUDO_FETCH_MISSING_RESULT','Undefined','[UniverCollaborationClientPlugin]','BASE64','/allowed','_createInitialStateImpl','HEARTBEAT_INTERVAL','/collaborator','/object/','skeleton','_substituteUndoStack','_color','onMissedChangesetFetched','Ready','title','registerHTTPInterceptor','APPLY_NON_SEQUENTIAL_REVISION','YUUMI_SUBSCRIPTION_NOT_FOUND','max','transformMutation','_injector','cursorInfo','_getSignURL','getSheetBlock','_sendingTimer','black','top','on-line-single','ranges','toggleOnline','_socketReady','_retryCount','_anchorDot','getCurrentSelections','pushState','subunit','_permissionService','{fileID}','_state','_commentService','ERROR_IMAGE','getSkeleton','backgroundColor','ONLINE','[OfflineState]:\x20received\x20acknowledgement.','_tryReconnect','setActiveRange','snapshotServerUrl','onlineStatusIcon','image/jpeg','incrementRevOfUnit','_getCurrentRevision','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','post','href','location','userID','catch','unknown','\x20to\x20','includes','setShapeProps','_transformUndoredo','_collaborationTimeoutTimer','_collaborationSessionService','collabStatus.conflict','_userManagerService','LIVESHARE_OPERATION','_clearUndo','_clearTimeoutTimer','_startDocCollabCursor','M0\x200H16V16H0z','url(#on-line-single_clip0_910_349)','addObjects','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_transitionLocked','_remoteChangesetQueue','YUUMI_UNABLE_LOAD_URL','newCsEvent','type','_clearCollaborationTimeoutTimer','UNKNOWN_CMD','univerjs-icon\x20univerjs-icon-','send','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','PERMISSION_REJ','[SyncedState]:\x20received\x20acknowledgement.','registerComponent','fillRule','PERMISSION_DENIED','UNIVER_COLLABORATION_CLIENT_PLUGIN','_updateStatus','copyFileMeta','labelPosition','url','getTypeOfUnitAdded$','_revisionService','_updateSubUnitFromURLParams','_handleJoinEvent','_hovered','AUTHZ_URL_KEY','201466xcyryB','_onOffline','[PendingState]:\x20received\x20rejection.','exhaustSavingTask','getAncestorScale','retryConnectingInterval','_transformUndoRedoStack','currentTheme$','symbol','_setupBeforeClosingHandler','NEW_CHANGESETS','_sheetTransformSelectionsService','_handleLeaveEvent','sheetId','_replayCachedMutations','_removeRoom','getRelativeToViewportCoord','withCredentials','_handleEvent','complete','_createHandler','_getUploadFileURL','objectType','YUUMI_RATE_OVER_LIMIT','_getSaveTimeout','error','fillText','_onRecvEvent','updateCursorEvent','objects','transformRemoteChangeset','originalMeta','UPDATE_CURSOR','INGEST','encodeURIComponent','&to=','SNAPSHOT_INVALID_SNAPSHOT','_transformRemoteChangesetByIMECache','random','isEditing','_socket$','CONFLICT','pipe','reduce','collaboration-client.offline-data-not-saved','PENDING','save','startColumn','_renderManagerService','getImage','color','error$','fetching\x20missing\x20changesets\x20from\x20','reverse','awaitingChangeset','findNodePositionByCharIndex','allowed','NOT_COLLAB','getCurrent','LIVESHARE_TERMINATE','_collabSessionService','arc','failed\x20to\x20apply\x20missed\x20changesets!','_clearScheduledTask','_draw','AWAITING','changesets','restore','#fff','UNIVER_DOC','urlChange$','_acknowledgedAwaitingChangeset','OTHER_CLIENTS_EDITING','INVALID_ARGUMENT','onRendered','_onCombEvent','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','isPermissionRej','textRanges','collaboration-session-retry','_docTransformIMECacheService','session.connection-failed','conflict','_ws','duration','_scene','20279lrGOtY','fetchThroughInterceptors','getOwnPropertySymbols','_logService','none','icon','828785uqbRNd','JOIN','_collaborationPaused','min','UPDATE_PERMISSION_OBJ','resize','synced','_roomMembers','_collabCursorState$','bottom','_onCursorDelete','method','deleteCollaborator','push','collaboratorID','revision','univer-pro.collaboration-client.single-active-unit-service','_onFetchMissResult','_configService','onlineStatusTitle','createInstance','startRow','csAckEvent','body','Error\x20on\x20receiving\x20event','actions','onMouseMove','_state$','assign','_loadDoc','m2Prime','requireSession','slice','FETCH_MISSING','_clearOtherTimers','use','putCollaborators','getUndoRedoMutationParamsCache','font','_waitCount','_anchor','propertyIsEnumerable','[CollaborationSessionService]','UNIVER_UNKNOWN','_unitOnClients','indexOf','transformUndoRedo','_heartbeatTimer','16WpWRdy','telemetry\x20info\x20is\x20not\x20initialized','FETCH_MISS','shouldCloseConn','UNDEFINED','open$','_online','DeleteRangeMoveLeftCommandId','toggleOffline','text','&assign=','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_getAPIPrefixPath','find','FileId','_init','asObservable','_onRefRangeChange','defIds','FAIL','permissionRejEvent','_range','_change$','0\x200\x2016\x2016','getImageSourceCache','_joinRoom','parse','USERS_ENTER','_stopTelemetryCollaborationNewChangeset','with','split','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','?url=','name','history','makeDirty','_getMergeRange','sessionStatus','pluginName','CHANGESET_REJ','message$','getVpScrollXYInfoByPosToVp','_context','currentSkeleton$','/-/object/list','SHOULD_CLOSE_CONN','image/png','result','_sheetSkeletonManagerService','onlyLocal','collabStatus.synced','baseRev','update','YUUMI_URL_COL_OUT_OF_RANGE','1PITAxm','requestParams','#FFF','_httpService','drawWith','collabStatus.fetchMiss','getFocusedUnit','_onUserLeave','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','idSuffix','tag','getTime','LEAVE','memberID','unload','_pendingMutations','conflict.title','liveShareNewHost','roomMembers$','_sendHeartbeat','createSocket','_decreaseWaiting','SEND_CHANGESET_TIMEOUT','getUnitType','_updateState','_retryConnectingTimer','_initMergeInterceptor','collabStatus.offline','collabCursorState$','Unknown\x20user','clearInterval','getActiveSheet','connection\x20error','_colorAssignService','put','now','collabStatus.syncing','engine','roles','_scheduleClearOtherTimer','saveChangeset','1400931qUQmCA','_docSkeletonManagerService','objectID','_config','resend','getInterceptPoints','_textBubble','_onConflict','_checkMissing','getOwnPropertyDescriptor','transformSelections','_event$','image/gif','data','fillStyle','[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.','_getLoginPath','transformChangesets','_submitChangeset','Univer','unit','_scheduleCollaborationTimeoutTimer','_telemetryService','_onRemoteChangeset','toString','syncEditingCollabCursor','getItem','removeMember','fetchMissingChangesets','_sessions','POST','src','_disabled','collab-text-range-','UnitEmbedded','_startCollaboration','disableLocalCache','_snapshotServerService','rev','disposeWithMe','then','_transformService','Error','deepClone','createElement','[CollaborationSession]','initWorkbookPermissionChange','some','setParam','storage','roomMembers','_getSheetObject','_cursors','getParam','[CollaborationSessionService]:\x20socket\x20error','entries','_labelPosition','event$','_queuedRemoteChangesets','_notificationService','onSendChangeset','_commentUpdate$','getUnhiddenWorksheets','_unlockTransition','listRoles','searchParams','_removeCollabCursors','routeKey','APPLY_PERMISSION_DENIED','_ensureSubject','setCurrentUser','/universer-api/comb','...','onRemoteRej','_transformSelections','_onMessage','ACTIVE_UNIT_EVENT_CHANNEL','downloadEndpointUrl','status$','MSG_FOR_ERROR','_refreshCollabCursors','RECV','awaiting','_registerRenderDependencies','_getSnapshotAPIPrefix','HEARTBEAT','disposeUnit','infoRsp','permission.content','_throwTelemetryCollaborationNewChangeset','_exhaustRemoteChangesetQueue','getMember','RemoveColCommandId','_onLocalMutation','image/jpg','fromCollab','pending','_cursor','height','_isPermissionRej','compose','_lastPointer','string','/-/object/-/batch_allowed','defs','map','_drawTextRange','appendMutation','CONNECTOR_DATA_TOO_LARGE','headers','onCommandExecuted','transformStack\x20failed!','_themeService','SYNCED','_roomMembers$','_HTTPService','_loadSheet','responseType','_hover','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','UNKNOWN_CODE','session.collaboration-timeout','uploadFileServerUrl','1em','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_univerInstanceService','_initResize','LICENSE_DISTRO_REJECTED','_commandService','path','[FetchMissState]','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','OFFLINE','_applyRemoteChangeset','RemoveRowCommandId','AWAITING_WITH_PENDING','12PMEGOL','/universer-api/snapshot','_toggleOnline','getMergeData','/universer-api/snapshot/','clear','submit\x20changeset\x20error!','getValue','every','members','onPointerLeave$','evenodd','jiqing500','length','socket$','capture','svg','onMissingChangesets','set','startsWith','univer-online-status-title','_saveTaskMap','_singleActiveUnitService','onTransformSelections','_updateCollabCursors','/rev/','displayName','subscribeEvent','hovered','?size=','_startTelemetryCollaborationNewChangeset','onSyncEditingCollabCursor','show','TOO_MANY_REQUESTS','66wrYjuW','_updateURLWithCurrentState','fetch_missing','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_entities','getRenderById','_docSyncEditingCollabCursorService','resolve','_localeService','_onRemoteACK','_updateLocalCache','eventID','getTypeOfUnitDisposed$','gold400','UnitSnapshot','encode','_saveCache','leaveEvent','_tryEnsureSocket','change$','onload','_clearRedo','localeService','_docTransformSelectionsService','LOCAL_CACHE_INTERVAL','UNRECOGNIZED','onPointerEnter$','_onConnectionOpen','lineTo','verdancy600','MUTATION','subUnitId','_createInitialState','_socketService','UNIVER_PROJECT','loadDoc','_handler','_scheduleHeartbeat','pauseCollaboration','translate(.97)','cmd','COMPRESS_MUTATION_SEND','collaboration.single-unit.warning','LICENSE_EXPORT_SIZE_EXCEEDED','_updateLocalCursor','_getUndoStack','_listenToOnlineEvent','status','505660DWnDOx','getCollabCursors$','_imageSourceCache','json','CHANGESET_ACK','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','dispose','InsertRowCommandId','_memberService','params','_registerDependencies','replaceState','online','_undoRedoService','onRemoteChangeset','_colorIndex','_unitID','reject','setAlpha','NO_OTHER_CLIENTS_EDITING','getCurrentRevOfUnit','removeParam','updateCollaborator','_socket','_incrementRevisionNumber','measureText','_socketMessageSubscription','create','enableSingleActiveInstanceLock','29656kpcLyQ','setConfig','USERS_LEAVE','_initStatusComponent','_disableEditing','liveShareOperation','COMPRESS_MUTATION_APPLY','key','_initCommandExecutedListener','toRgbString','enableOfflineEditing','_session','setWaitCount','_backgroundColor','getMemberID','collaborators','[PendingState]:\x20unhandled\x20univer\x20type:\x20','APPLY_REVISION_CONFILICT','getConfig','all','clearTimeout','LIVESHARE_NEW_HOST','_getScale','getCollabEntity$','on-line-single_clip0_910_349','_candidateSocket','_urlService','_syncEditingCollabCursor','substring','CHANGESET_REVISION_CONFILICT','round','editingUnit','IDLE','setItem','code','_replaceFileID','state','attrs','unitID','sessionStatus$','concat','_scheduleTimestamp','getWorkbookSelections','debug','onlineStatus','JOINING','unitId','_setupSubUnitSync','_selfUnitIDs','registerRefRange','createCollaborator','getResourcesRequest','/block/','popstate','getOffsetConfig','extend','reconnect','subscribe','_id','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','from','editing\x20status\x20changed\x20to','transformMutationsWithChangeset','state$','rgba(255,\x20255,\x20255,\x200.01)','getCollabEntity','HttpExport','_startSheetCollabCursor','univer-online-status-icon','blue400','isArray','uni.network.url-service','m1Prime','_scheduleSaving','[OfflineState]:\x20received\x20rejection.','readAsDataURL','getCurrentUser','_http','defineProperty','updateMember','_shouldReportTelemetry','csRejEvent','objectActions','isActive','getSheetBySheetId','1728221KXYCsw','filter','generateRandomId','init','function','_uiPartsService','_messageService','_executeRemoteChangeset','updateOfflineData','selections','updatePermissionPoint','_onCursorUpdate','_toggleOffline','_render','onStarting','snapshot','transformIMECache','transform','_createSocket','purple300','transformByState','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','Warning','_getRedoStack','_cachedData','_initRequestHeader','_instanceService','_getAnchorBounding','collab-client.tooltip.reconnect','roomInfos','setInterval','assignAColorForMemberID','enableLocalCache','_cursorInfo$','COLLAB_SUBMIT_CHANGESET_URL','&source=','fill','/unit/','univer-pro.collaboration-client-socket-service','origin'];_0xf131=function(){return _0x14c2d4;};return _0xf131();}var xs=(_0x2c544f=>(_0x2c544f[_0x2c544f[_0x7011be(0x333)]=0x0]=_0x7011be(0x333),_0x2c544f[_0x2c544f[_0x7011be(0x1a3)]=0x1]=_0x7011be(0x1a3),_0x2c544f))(xs||{});const cs=0x7530,hs=_0x7011be(0x292);class or extends _0xd7d44c{constructor(){const _0x3654fe=_0x7011be;super(),l(this,_0x3654fe(0x377),_0x14f99b[_0x3654fe(0x394)]()),l(this,'_selfUnitIDs',new Set()),l(this,'_unitOnClients',new Map()),l(this,_0x3654fe(0x1e6),null),l(this,_0x3654fe(0x1d9),new Map()),l(this,_0x3654fe(0x418),new Map()),this[_0x3654fe(0x1f6)]();}['dispose'](){const _0x4e24ee=_0x7011be;super[_0x4e24ee(0x326)](),this['_clearOtherTimers'][_0x4e24ee(0x429)]((_0x37aa7f,_0x56c2c6)=>this['_removeClearOtherTimer'](_0x56c2c6)),this[_0x4e24ee(0x1e6)]&&window[_0x4e24ee(0x23b)](this[_0x4e24ee(0x1e6)]);}[_0x7011be(0x3eb)](_0x3ef02c){const _0xd0681f=_0x7011be;return this[_0xd0681f(0x28b)](_0x3ef02c)['pipe'](_0x4814b2());}[_0x7011be(0x35c)](_0x1fbc36){const _0x2c4323=_0x7011be;this[_0x2c4323(0x36d)][_0x2c4323(0x43c)]===0x0&&this['_scheduleHeartbeat'](),this[_0x2c4323(0x36d)][_0x2c4323(0x3cb)](_0x1fbc36),this[_0x2c4323(0x422)]({'type':0x0,'memberID':this[_0x2c4323(0x377)],'unitIDs':[_0x1fbc36],'isForwarded':!0x1});}[_0x7011be(0x29c)](_0x36c21f){const _0x2a06f8=_0x7011be;this[_0x2a06f8(0x36d)][_0x2a06f8(0x415)](_0x36c21f),this['_selfUnitIDs'][_0x2a06f8(0x43c)]===0x0&&this['_heartbeatTimer']&&window[_0x2a06f8(0x23b)](this[_0x2a06f8(0x1e6)]);}[_0x7011be(0x1f6)](){const _0x1fe930=_0x7011be;this[_0x1fe930(0x26d)](_0x4b6fbe(_0x446249(window,_0x1fe930(0x277))[_0x1fe930(0x376)](_0x4dd6df=>{const _0x252fc0=_0x1fe930;if(_0x4dd6df[_0x252fc0(0x344)]!==hs||!_0x4dd6df[_0x252fc0(0x3fe)])return;const _0x4ab76b=JSON[_0x252fc0(0x201)](_0x4dd6df['newValue']);this[_0x252fc0(0x4df)](_0x4ab76b);}))),window['addEventListener'](_0x1fe930(0x22b),()=>this[_0x1fe930(0x422)]({'type':0x1,'memberID':this[_0x1fe930(0x377)],'unitIDs':Array[_0x1fe930(0x379)](this[_0x1fe930(0x36d)])}));}[_0x7011be(0x4df)](_0x2797c2){const _0x2c4134=_0x7011be;switch(_0x2797c2[_0x2c4134(0x4b7)]){case 0x0:this['_handleJoinEvent'](_0x2797c2);break;case 0x1:this[_0x2c4134(0x4d9)](_0x2797c2);break;case 0x2:this[_0x2c4134(0x3d6)](_0x2797c2);break;}}[_0x7011be(0x4ca)](_0x201959){const _0x5764d5=_0x7011be,{unitIDs:_0x5de2d3,memberID:_0x2a8656,isForwarded:_0x33333d}=_0x201959;_0x5de2d3[_0x5764d5(0x429)](_0x1f85ea=>{const _0x1fc9e8=_0x5764d5;if(!_0x33333d&&this[_0x1fc9e8(0x1e3)][_0x1fc9e8(0x436)](_0x1f85ea)&&this[_0x1fc9e8(0x28b)](_0x1f85ea)[_0x1fc9e8(0x40f)](0x1),!this[_0x1fc9e8(0x1e3)][_0x1fc9e8(0x436)](_0x1f85ea)||!this[_0x1fc9e8(0x1e3)]['get'](_0x1f85ea)[_0x1fc9e8(0x436)](_0x2a8656)){const _0x13d784=this[_0x1fc9e8(0x1e3)][_0x1fc9e8(0x3be)](_0x1f85ea)||new Set();_0x13d784[_0x1fc9e8(0x3cb)](_0x2a8656),this[_0x1fc9e8(0x1e3)][_0x1fc9e8(0x2e0)](_0x1f85ea,_0x13d784),this[_0x1fc9e8(0x244)](_0x2a8656);}}),_0x33333d||this['_send']({'type':0x0,'memberID':this[_0x5764d5(0x377)],'unitIDs':[...this[_0x5764d5(0x36d)]],'isForwarded':!0x0});}[_0x7011be(0x244)](_0x6a7d98){const _0xac2a60=_0x7011be;this[_0xac2a60(0x402)](_0x6a7d98);const _0x4cc9ca=window[_0xac2a60(0x42a)](()=>{const _0x277be8=_0xac2a60;this[_0x277be8(0x1e3)][_0x277be8(0x429)](_0x39defe=>{const _0x24a96b=_0x277be8;_0x39defe[_0x24a96b(0x415)](_0x6a7d98);});},cs*0x2);this[_0xac2a60(0x1d9)][_0xac2a60(0x2e0)](_0x6a7d98,_0x4cc9ca);}[_0x7011be(0x402)](_0x25cf53){const _0x5653b7=_0x7011be;if(this[_0x5653b7(0x1d9)][_0x5653b7(0x436)](_0x25cf53)){const _0x40bf1=this[_0x5653b7(0x1d9)][_0x5653b7(0x3be)](_0x25cf53);_0x40bf1&&window[_0x5653b7(0x351)](_0x40bf1),this[_0x5653b7(0x1d9)][_0x5653b7(0x2e0)](_0x25cf53,null);}}[_0x7011be(0x4d9)](_0xbad65b){const _0x16540a=_0x7011be,{memberID:_0x490f0f,unitIDs:_0x31bb4e}=_0xbad65b;_0x31bb4e[_0x16540a(0x429)](_0x5aea3f=>{const _0x34c2c8=_0x16540a;var _0x32b6ba;const _0x31a5ce=this[_0x34c2c8(0x1e3)][_0x34c2c8(0x3be)](_0x5aea3f);_0x31a5ce&&(_0x31a5ce[_0x34c2c8(0x415)](_0x490f0f),(_0x32b6ba=this[_0x34c2c8(0x28b)](_0x5aea3f))==null||_0x32b6ba['next'](_0x31a5ce['size']===0x0?0x0:0x1));}),this[_0x16540a(0x402)](_0x490f0f);}['_handleHeartbeatEvent'](_0x4b4117){const _0x1a7a2d=_0x7011be;this['_scheduleClearOtherTimer'](_0x4b4117[_0x1a7a2d(0x22a)]);}['_send'](_0x11570f){const _0x2099e9=_0x7011be;localStorage[_0x2099e9(0x35e)](hs,JSON[_0x2099e9(0x3ec)](_0x11570f));}[_0x7011be(0x315)](){const _0x57ab46=_0x7011be;this['_heartbeatTimer']=window[_0x57ab46(0x3b0)](()=>{const _0x455de0=_0x57ab46;this[_0x455de0(0x422)]({'type':0x2,'memberID':this[_0x455de0(0x377)]});},cs);}[_0x7011be(0x28b)](_0x5211f2){const _0x1857b2=_0x7011be;return this[_0x1857b2(0x418)][_0x1857b2(0x436)](_0x5211f2)||this[_0x1857b2(0x418)][_0x1857b2(0x2e0)](_0x5211f2,new _0x2048f5(0x0)),this[_0x1857b2(0x418)][_0x1857b2(0x3be)](_0x5211f2);}}function Hs(_0x9bcde2){const _0x5ddb4a=_0x7011be;let _0x571ad3='';for(const _0x1d6f20 of _0x9bcde2){const {startOffset:_0x2ed6c1,endOffset:_0xac14f9,isActive:_0x308ad1}=_0x1d6f20;_0x571ad3[_0x5ddb4a(0x2db)]&&(_0x571ad3+=','),_0x571ad3+=_0x2ed6c1+':'+_0xac14f9+':'+(_0x308ad1?'1':'0');}return _0x571ad3;}function ar(_0x43ce9a){const _0x51bb11=_0x7011be,_0x190662=_0x43ce9a[_0x51bb11(0x205)](','),_0x5a11ad=[];for(const _0x5ab62d of _0x190662){const [_0x597797,_0xa452f1,_0x294d42]=_0x5ab62d[_0x51bb11(0x205)](':');_0x5a11ad['push']({'startOffset':Number(_0x597797),'endOffset':Number(_0xa452f1),'collapsed':_0x597797===_0xa452f1,'isActive':_0x294d42==='1'});}return _0x5a11ad[_0x51bb11(0x275)](_0x2e99df=>_0x2e99df[_0x51bb11(0x390)])||(_0x5a11ad[0x0][_0x51bb11(0x390)]=!0x0),_0x5a11ad;}class Ft extends _0x101c13{constructor(){const _0x2359f9=_0x7011be;super(...arguments),l(this,_0x2359f9(0x1bf),new _0x2048f5(null)),l(this,_0x2359f9(0x239),this[_0x2359f9(0x1bf)][_0x2359f9(0x1f7)]());}[_0x7011be(0x25f)](_0x3a4bf8){const _0x4c7d0a=_0x7011be,{unitID:_0x4fa140,memberID:_0x2976c9,textRanges:_0x55ef15}=_0x3a4bf8,_0x3cb392=Hs(_0x55ef15),_0x1f54a4={'unitID':_0x4fa140,'memberID':_0x2976c9,'selection':_0x3cb392};this[_0x4c7d0a(0x1bf)][_0x4c7d0a(0x40f)](_0x1f54a4);}}var cr=Object[_0x7011be(0x38b)],hr=Object[_0x7011be(0x24f)],lr=(_0x687a45,_0x4f9eb2,_0x266f7a,_0x4148c8)=>{const _0x1d6533=_0x7011be;for(var _0x3ef731=_0x4148c8>0x1?void 0x0:_0x4148c8?hr(_0x4f9eb2,_0x266f7a):_0x4f9eb2,_0x5192a9=_0x687a45[_0x1d6533(0x2db)]-0x1,_0x41c4ea;_0x5192a9>=0x0;_0x5192a9--)(_0x41c4ea=_0x687a45[_0x5192a9])&&(_0x3ef731=(_0x4148c8?_0x41c4ea(_0x4f9eb2,_0x266f7a,_0x3ef731):_0x41c4ea(_0x3ef731))||_0x3ef731);return _0x4148c8&&_0x3ef731&&cr(_0x4f9eb2,_0x266f7a,_0x3ef731),_0x3ef731;},ls=(_0x229ccf,_0x363480)=>(_0x1919e0,_0x256bd5)=>_0x363480(_0x1919e0,_0x256bd5,_0x229ccf);let et=class{constructor(_0x109a9a,_0x11dd5c){const _0x5da744=_0x7011be;this['_injector']=_0x109a9a,this[_0x5da744(0x26f)]=_0x11dd5c;}[_0x7011be(0x250)](_0xe4acdc){const _0x3bf859=_0x7011be;var _0x5ba50f;const _0x15e6bd=this[_0x3bf859(0x47c)]['get'](_0x1198ee),_0x627476=(_0x5ba50f=_0x15e6bd[_0x3bf859(0x3c7)]())!=null?_0x5ba50f:[];if(_0x627476[_0x3bf859(0x2db)]===0x0)return;const _0x1da7cb=[{'id':_0x3bf859(0x450),'params':{'unitId':_0xe4acdc[_0x3bf859(0x363)],'actions':null,'textRanges':_0x627476}}],_0x4270c7=this[_0x3bf859(0x26f)][_0x3bf859(0x37b)](_0xe4acdc,_0x1da7cb);if(!_0x50faaa(_0x4270c7))throw _0x4270c7[_0x3bf859(0x174)];const _0x38f935=_0x4270c7[_0x3bf859(0x1d5)][0x0][_0x3bf859(0x329)][_0x3bf859(0x1a9)];Array[_0x3bf859(0x383)](_0x38f935)&&_0x38f935[_0x3bf859(0x2db)]&&_0x15e6bd[_0x3bf859(0x457)](_0x38f935,!0x1);}};et=lr([ls(0x0,_0x4f6f98(_0x8f002c)),ls(0x1,_0x49c306)],et);const _r=new Set([_0x2abee6['id']]);function _s(_0x2f2815,_0x58c493,_0x202719,_0x5278c2,_0x22a054){const _0x97c7a9=_0x7011be;var _0x10b592,_0x476a35,_0x4874d5,_0x20ab53;const _0x161d11=[];for(const _0x319872 of _0x2f2815)if(_r[_0x97c7a9(0x436)](_0x319872['id'])){if(_0x161d11[_0x97c7a9(0x2db)]>0x0)break;_0x161d11[_0x97c7a9(0x1c4)](_0x319872);break;}else _0x161d11[_0x97c7a9(0x1c4)](_0x319872);const _0x2577b1=(_0x476a35=(_0x10b592=_0x22a054[_0x97c7a9(0x389)]())==null?void 0x0:_0x10b592[_0x97c7a9(0x4a0)])!=null?_0x476a35:'unknown',_0x2844fb=(_0x20ab53=(_0x4874d5=_0x22a054[_0x97c7a9(0x389)]())==null?void 0x0:_0x4874d5['memberID'])!=null?_0x20ab53:_0x97c7a9(0x4a2);return{'changeset':{'unitID':_0x58c493,'type':_0x47e8e5(_0x202719[_0x97c7a9(0x234)](_0x58c493)),'baseRev':_0x5278c2[_0x97c7a9(0x334)](_0x58c493),'revision':0x0,'userID':_0x2577b1,'memberID':_0x2844fb,'mutations':_0x161d11},'pendingMutations':_0x2f2815[_0x97c7a9(0x1d7)](_0x161d11[_0x97c7a9(0x2db)])};}function ur(_0x12e95f,_0x1b1e3b,_0x45f0c9,_0x3d4791,_0x4d79c9){const _0x1ea0dc=_0x7011be;var _0x39df04,_0x3b8f95,_0x3d1aec,_0x3f7030;const _0x87db76=[_0x12e95f[_0x1ea0dc(0x186)]((_0x45a61e,_0x4efafd)=>{const _0xa86b1b=_0x1ea0dc;var _0x54f5f6;const {id:_0x5dd86c}=_0x45a61e,{id:_0x4042d8,type:_0x3f5c66}=_0x4efafd,_0x5918b6=(_0x54f5f6=_0x45a61e[_0xa86b1b(0x329)])!=null?_0x54f5f6:{'actions':null},_0x195303=_0x4efafd[_0xa86b1b(0x329)];if(_0x5dd86c&&_0x5dd86c!==_0x4042d8)throw new Error(_0xa86b1b(0x49c)+_0x5dd86c+'\x20-\x20'+_0x4042d8+'.');return{..._0x45a61e,'id':_0x4042d8,'type':_0x3f5c66,'params':{'unitId':_0x195303[_0xa86b1b(0x36b)],'textRanges':_0x195303['textRanges'],'actions':_0x42b912[_0xa86b1b(0x2aa)](_0x5918b6[_0xa86b1b(0x1d0)],_0x195303['actions'])}};},{})],_0x952dfc=(_0x3b8f95=(_0x39df04=_0x4d79c9['getCurrentUser']())==null?void 0x0:_0x39df04[_0x1ea0dc(0x4a0)])!=null?_0x3b8f95:_0x1ea0dc(0x4a2),_0x33760e=(_0x3f7030=(_0x3d1aec=_0x4d79c9[_0x1ea0dc(0x389)]())==null?void 0x0:_0x3d1aec[_0x1ea0dc(0x22a)])!=null?_0x3f7030:'unknown';return{'changeset':{'unitID':_0x1b1e3b,'type':_0x47e8e5(_0x45f0c9[_0x1ea0dc(0x234)](_0x1b1e3b)),'baseRev':_0x3d4791[_0x1ea0dc(0x334)](_0x1b1e3b),'revision':0x0,'userID':_0x952dfc,'memberID':_0x33760e,'mutations':_0x87db76},'pendingMutations':[]};}const dr={'id':_0x64ba06['id'],'type':_0xba6e30[_0x7011be(0x30e)],'params':{}};var fr=Object[_0x7011be(0x38b)],mr=Object['getOwnPropertyDescriptor'],le=(_0x36de1d,_0x3b4bde,_0x3babfe,_0x5cc37b)=>{for(var _0x5c9782=_0x5cc37b>0x1?void 0x0:_0x5cc37b?mr(_0x3b4bde,_0x3babfe):_0x3b4bde,_0x4b7449=_0x36de1d['length']-0x1,_0xf07abd;_0x4b7449>=0x0;_0x4b7449--)(_0xf07abd=_0x36de1d[_0x4b7449])&&(_0x5c9782=(_0x5cc37b?_0xf07abd(_0x3b4bde,_0x3babfe,_0x5c9782):_0xf07abd(_0x5c9782))||_0x5c9782);return _0x5cc37b&&_0x5c9782&&fr(_0x3b4bde,_0x3babfe,_0x5c9782),_0x5c9782;},m=(_0x584ddb,_0x5209e7)=>(_0x4b3544,_0x2ef523)=>_0x5209e7(_0x4b3544,_0x2ef523,_0x584ddb),w=(_0x2b6d52=>(_0x2b6d52[_0x7011be(0x194)]='not_collab',_0x2b6d52['SYNCED']=_0x7011be(0x1bd),_0x2b6d52['PENDING']=_0x7011be(0x2a6),_0x2b6d52[_0x7011be(0x19c)]=_0x7011be(0x298),_0x2b6d52[_0x7011be(0x2cd)]='awaiting_with_pending',_0x2b6d52[_0x7011be(0x1e9)]=_0x7011be(0x2f2),_0x2b6d52[_0x7011be(0x184)]=_0x7011be(0x1ad),_0x2b6d52[_0x7011be(0x2ca)]=_0x7011be(0x3e3),_0x2b6d52))(w||{});class _e{constructor(_0x2c3347,_0x42d97f,_0x5e32a4,_0x214ad9,_0x4badff,_0x27ca4a,_0x182fbc,_0x19016d,_0x5126b7){const _0x596ab3=_0x7011be;l(this,'_awaitingChangeset',null),l(this,_0x596ab3(0x22c),[]),(this['unitID']=_0x2c3347,this[_0x596ab3(0x4b7)]=_0x42d97f,this[_0x596ab3(0x314)]=_0x4badff,this[_0x596ab3(0x2c6)]=_0x27ca4a,this['_undoRedoService']=_0x182fbc,this[_0x596ab3(0x4c8)]=_0x19016d,this['_localCacheService']=_0x5126b7,this[_0x596ab3(0x3de)]=_0x5e32a4,this[_0x596ab3(0x22c)]=_0x214ad9);}[_0x7011be(0x24e)](_0x4b615f){const _0x3365cd=_0x7011be,_0x569ab2=this[_0x3365cd(0x4c8)][_0x3365cd(0x334)](this['unitID']);return _0x4b615f[_0x3365cd(0x1c6)]>_0x569ab2+0x1?(this[_0x3365cd(0x314)][_0x3365cd(0x2df)]({'from':_0x569ab2,'to':_0x4b615f[_0x3365cd(0x1c6)]-0x1}),!0x0):!0x1;}[_0x7011be(0x4a6)](_0x433c4e){const _0x376df3=_0x7011be;this[_0x376df3(0x32d)]['transformUndoRedo'](this[_0x376df3(0x363)],_0x433c4e);}['_transformSelections'](_0xe761f4){const _0x414af6=_0x7011be;var _0x38e4c5,_0x5b1fd6;(_0x5b1fd6=(_0x38e4c5=this['_handler'])[_0x414af6(0x2e5)])==null||_0x5b1fd6['call'](_0x38e4c5,_0xe761f4);}[_0x7011be(0x3f0)](_0x5a1a45){const _0x5eabf7=_0x7011be;var _0x35da8c,_0x3c027d;return(_0x3c027d=(_0x35da8c=this[_0x5eabf7(0x314)])[_0x5eabf7(0x420)])==null?void 0x0:_0x3c027d[_0x5eabf7(0x433)](_0x35da8c,_0x5a1a45);}[_0x7011be(0x180)](_0x277050){const _0x4c28ed=_0x7011be;var _0x22a8c4,_0x2e00cc,_0x5c6e10;return(_0x5c6e10=(_0x2e00cc=(_0x22a8c4=this[_0x4c28ed(0x314)])[_0x4c28ed(0x43f)])==null?void 0x0:_0x2e00cc[_0x4c28ed(0x433)](_0x22a8c4,_0x277050))!=null?_0x5c6e10:_0x277050;}[_0x7011be(0x358)](_0x1fdcd0){const _0x45c40f=_0x7011be;var _0x1e78f9,_0x4fe286;if(this[_0x45c40f(0x4b7)]===H[_0x45c40f(0x1a0)]){const {unitID:_0x24df91,mutations:_0x483b2d,memberID:_0x4eec03}=_0x1fdcd0,_0x468053=_0x483b2d[0x0]['params'][_0x45c40f(0x1a9)];Array[_0x45c40f(0x383)](_0x468053)&&_0x468053[_0x45c40f(0x2db)]>0x0&&((_0x4fe286=(_0x1e78f9=this[_0x45c40f(0x314)])['onSyncEditingCollabCursor'])==null||_0x4fe286[_0x45c40f(0x433)](_0x1e78f9,{'unitID':_0x24df91,'memberID':_0x4eec03,'textRanges':_0x468053}));}}[_0x7011be(0x2fa)](){const _0x5519fb=_0x7011be;this[_0x5519fb(0x40d)][_0x5519fb(0x39a)](this[_0x5519fb(0x363)],this['type'],this[_0x5519fb(0x3de)],this[_0x5519fb(0x22c)]);}[_0x7011be(0x49b)](){const _0x44fc07=_0x7011be;return this['_revisionService'][_0x44fc07(0x334)](this[_0x44fc07(0x363)]);}[_0x7011be(0x338)](){const _0x37b282=_0x7011be;this['_revisionService'][_0x37b282(0x49a)](this[_0x37b282(0x363)]);}[_0x7011be(0x399)](_0x3356ff){const _0x896eb=_0x7011be;var _0x44eb82;const _0x3c246d=this[_0x896eb(0x180)](_0x3356ff),_0x58cd1e=_0x621390(_0x3c246d[_0x896eb(0x459)],this['_commandService'],{'fromCollab':!0x0});if(!_0x58cd1e[_0x896eb(0x216)])throw _0x58cd1e['error']instanceof Error?_0x58cd1e[_0x896eb(0x174)]:new Error((_0x44eb82=_0x58cd1e[_0x896eb(0x174)])!=null?_0x44eb82:_0x896eb(0x3e1));this['_transformIMECache'](_0x3c246d),this[_0x896eb(0x4a6)](_0x3356ff),this[_0x896eb(0x290)](_0x3c246d),this[_0x896eb(0x358)](_0x3c246d),this[_0x896eb(0x338)]();}}let pe=class extends _e{constructor(_0x344c3a,_0x5b9ba5,_0x26625f,_0x261f46,_0x5a8735,_0x264627,_0x549c9b,_0x2bbe9b,_0x351e0f,_0x42698d){const _0x4db020=_0x7011be;super(_0x344c3a,_0x5b9ba5,null,[],_0x26625f,_0x2bbe9b,_0x549c9b,_0x261f46,_0x5a8735),l(this,'status','synced'),(this[_0x4db020(0x47c)]=_0x264627,this[_0x4db020(0x1b4)]=_0x351e0f,this[_0x4db020(0x26f)]=_0x42698d);}[_0x7011be(0x2b1)](_0x42df7c){const _0x37869f=_0x7011be,_0x25814f=this['_injector']['createInstance'](K,this[_0x37869f(0x363)],this[_0x37869f(0x4b7)],[_0x42df7c],this['_handler']);return _0x25814f['_schedule'](),_0x25814f['_updateLocalCache'](),_0x25814f;}[_0x7011be(0x32e)](_0x114074){const _0x240190=_0x7011be;if(this[_0x240190(0x24e)](_0x114074))return this['_injector'][_0x240190(0x1cb)](k,this[_0x240190(0x363)],this[_0x240190(0x4b7)],null,[],null,[_0x114074],this[_0x240190(0x314)]);try{const _0x1cd47f=this[_0x240190(0x26f)][_0x240190(0x37b)](_0x114074,[dr]);if(_0x50faaa(_0x1cd47f)){const {c1Prime:_0x12b40f}=_0x1cd47f;return this['_executeRemoteChangeset'](_0x12b40f),this;}throw _0x1cd47f[_0x240190(0x174)];}catch(_0x1affd9){return this[_0x240190(0x1b4)][_0x240190(0x174)](_0x1affd9),this['_onConflict'](!0x1);}}['_onConflict'](_0x49f032){const _0x41c4c8=_0x7011be;return this[_0x41c4c8(0x47c)]['createInstance'](ee,this[_0x41c4c8(0x363)],this[_0x41c4c8(0x4b7)],null,[],this['_handler'],_0x49f032);}[_0x7011be(0x43a)](){const _0x5c5dd8=_0x7011be;throw new Error(_0x5c5dd8(0x4be));}[_0x7011be(0x28f)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}['toggleOffline'](){const _0x1bc8fd=_0x7011be;return this[_0x1bc8fd(0x47c)][_0x1bc8fd(0x1cb)](te,this[_0x1bc8fd(0x363)],this['type'],null,[],this[_0x1bc8fd(0x314)]);}[_0x7011be(0x485)](){return this;}[_0x7011be(0x24a)](){const _0x232de1=_0x7011be;throw new Error(_0x232de1(0x378));}[_0x7011be(0x3fd)](){const _0xb0b6b4=_0x7011be,_0x1dc9b4=this[_0xb0b6b4(0x4c8)]['getCurrentRevOfUnit'](this[_0xb0b6b4(0x363)]);return this['_handler'][_0xb0b6b4(0x2df)]({'from':_0x1dc9b4,'to':0x0}),this['_injector'][_0xb0b6b4(0x1cb)](k,this[_0xb0b6b4(0x363)],this[_0xb0b6b4(0x4b7)],null,[],null,[],this[_0xb0b6b4(0x314)]);}};pe=le([m(0x3,_0x4f6f98(_0xd9ea18)),m(0x4,_0x4f6f98(D)),m(0x5,_0x4f6f98(_0x8f002c)),m(0x6,_0x2334b3),m(0x7,_0x2cea1d),m(0x8,_0x2f2df5),m(0x9,_0x49c306)],pe);let K=class extends _e{constructor(_0x2e02d4,_0x30022f,_0x152fbd,_0x1a6d51,_0x2e1a04,_0x4926c0,_0x5d68aa,_0x1aa068,_0x22a595,_0x36ceaa,_0x4e6d2a,_0x2e33b0,_0x24958f,_0x1cac90){const _0xf0bdd3=_0x7011be;super(_0x2e02d4,_0x30022f,null,_0x152fbd,_0x1a6d51,_0x36ceaa,_0x1cac90,_0x4926c0,_0x5d68aa),l(this,'status',_0xf0bdd3(0x2a6)),l(this,_0xf0bdd3(0x366),null),l(this,_0xf0bdd3(0x480),null),(this[_0xf0bdd3(0x47c)]=_0x2e1a04,this['_memberService']=_0x1aa068,this[_0xf0bdd3(0x1b4)]=_0x22a595,this['_configService']=_0x4e6d2a,this[_0xf0bdd3(0x26f)]=_0x2e33b0,this[_0xf0bdd3(0x2c3)]=_0x24958f);}[_0x7011be(0x2b1)](_0x5de19d){const _0x4c7b44=_0x7011be;return this[_0x4c7b44(0x22c)][_0x4c7b44(0x1c4)](_0x5de19d),this[_0x4c7b44(0x2fa)](),this;}[_0x7011be(0x32e)](_0x528c67){const _0x43187b=_0x7011be;if(this[_0x43187b(0x24e)](_0x528c67))return this[_0x43187b(0x19a)](),this[_0x43187b(0x47c)][_0x43187b(0x1cb)](k,this['unitID'],this[_0x43187b(0x4b7)],null,this[_0x43187b(0x22c)],null,[_0x528c67],this[_0x43187b(0x314)]);try{const _0x72701d=this[_0x43187b(0x26f)][_0x43187b(0x37b)](_0x528c67,this['_pendingMutations']);if(_0x50faaa(_0x72701d)){const {c1Prime:_0x4ecc77,m2Prime:_0x5e769f}=_0x72701d;this[_0x43187b(0x399)](_0x4ecc77);const _0x31a5b3=this[_0x43187b(0x47c)][_0x43187b(0x1cb)](K,this[_0x43187b(0x363)],this[_0x43187b(0x4b7)],_0x5e769f,this[_0x43187b(0x314)]);return this[_0x43187b(0x19a)](),_0x31a5b3[_0x43187b(0x3d3)](this[_0x43187b(0x366)]?Math[_0x43187b(0x47a)](0x0,new Date()['getTime']()-this[_0x43187b(0x366)]):this[_0x43187b(0x42c)]()),_0x31a5b3;}throw _0x72701d[_0x43187b(0x174)];}catch(_0x59deaa){return this[_0x43187b(0x1b4)]['error'](_0x59deaa),this[_0x43187b(0x24d)](!0x1);}}['onRemoteAck'](){const _0x1c8785=_0x7011be;throw new Error(_0x1c8785(0x43d));}[_0x7011be(0x28f)](){const _0x35f6cf=_0x7011be;throw new Error(_0x35f6cf(0x4cf));}[_0x7011be(0x1ef)](){const _0x6ca23c=_0x7011be;return this['_clearScheduledTask'](),this[_0x6ca23c(0x47c)][_0x6ca23c(0x1cb)](te,this[_0x6ca23c(0x363)],this[_0x6ca23c(0x4b7)],null,this[_0x6ca23c(0x22c)],this[_0x6ca23c(0x314)]);}[_0x7011be(0x485)](){return this;}[_0x7011be(0x3d3)](_0x181d45){const _0x196c7c=_0x7011be,_0x1104d3=_0x181d45!=null?_0x181d45:this[_0x196c7c(0x42c)]();this['_scheduleTimestamp']=new Date()[_0x196c7c(0x228)](),this[_0x196c7c(0x480)]=window[_0x196c7c(0x42a)](()=>{const _0x4a5756=_0x196c7c;this[_0x4a5756(0x19a)]();let _0xdac004=null;switch(this['type']){case H[_0x4a5756(0x42d)]:{_0xdac004=_s(this[_0x4a5756(0x22c)],this[_0x4a5756(0x363)],this[_0x4a5756(0x2c3)],this[_0x4a5756(0x4c8)],this[_0x4a5756(0x328)]);break;}case H[_0x4a5756(0x1a0)]:{this[_0x4a5756(0x22c)][_0x4a5756(0x2d6)](_0x482181=>_0x482181['id']===_0x565f33['id'])?_0xdac004=ur(this[_0x4a5756(0x22c)],this[_0x4a5756(0x363)],this[_0x4a5756(0x2c3)],this[_0x4a5756(0x4c8)],this[_0x4a5756(0x328)]):_0xdac004=_s(this['_pendingMutations'],this[_0x4a5756(0x363)],this['_univerInstanceService'],this[_0x4a5756(0x4c8)],this['_memberService']);break;}default:throw new Error(_0x4a5756(0x34d)+this[_0x4a5756(0x4b7)]+'\x20in\x20_schedule.');}const {changeset:_0x1cf526,pendingMutations:_0x328e74}=_0xdac004;this['_handler'][_0x4a5756(0x282)](_0x1cf526);const _0x54056a=_0x328e74[_0x4a5756(0x2db)]?this[_0x4a5756(0x47c)]['createInstance'](X,this['unitID'],this[_0x4a5756(0x4b7)],_0x1cf526,_0x328e74,this[_0x4a5756(0x314)]):this['_injector'][_0x4a5756(0x1cb)](Q,this[_0x4a5756(0x363)],this[_0x4a5756(0x4b7)],_0x1cf526,this[_0x4a5756(0x314)]);_0x54056a[_0x4a5756(0x2fa)](),this['_handler'][_0x4a5756(0x45e)](this,_0x54056a);},_0x1104d3);}[_0x7011be(0x42c)](){const _0x3736a3=_0x7011be;var _0x2be93f;const _0x4763ee=this[_0x3736a3(0x1c9)][_0x3736a3(0x34f)](L);return(_0x2be93f=_0x4763ee==null?void 0x0:_0x4763ee[_0x3736a3(0x3cf)])!=null?_0x2be93f:Sn;}[_0x7011be(0x24a)](){const _0x1901ed=_0x7011be;throw new Error(_0x1901ed(0x325));}[_0x7011be(0x19a)](){const _0xa1d675=_0x7011be;this[_0xa1d675(0x480)]!=null&&(clearTimeout(this[_0xa1d675(0x480)]),this[_0xa1d675(0x480)]=null);}[_0x7011be(0x24d)](_0x15175c){const _0x489edc=_0x7011be;return this[_0x489edc(0x19a)](),this[_0x489edc(0x47c)]['createInstance'](ee,this['unitID'],this[_0x489edc(0x4b7)],null,this[_0x489edc(0x22c)],this[_0x489edc(0x314)],_0x15175c);}};K=le([m(0x4,_0x4f6f98(_0x8f002c)),m(0x5,_0x4f6f98(_0xd9ea18)),m(0x6,_0x4f6f98(D)),m(0x7,_0x4f6f98(ae)),m(0x8,_0x2f2df5),m(0x9,_0x2cea1d),m(0xa,_0x516197),m(0xb,_0x49c306),m(0xc,_0x29e7a7),m(0xd,_0x2334b3)],K);let Q=class extends _e{constructor(_0x4c1d0b,_0x25def5,_0x3ca604,_0x4d6b16,_0x228cea,_0x352f27,_0x240390,_0x152b10,_0x27b76d,_0x5dbe0e,_0x121f82){const _0x4ff5ea=_0x7011be;super(_0x4c1d0b,_0x25def5,_0x3ca604,[],_0x4d6b16,_0x152b10,_0x121f82,_0x352f27,_0x240390),l(this,'status',_0x4ff5ea(0x298)),(this[_0x4ff5ea(0x47c)]=_0x228cea,this[_0x4ff5ea(0x1b4)]=_0x27b76d,this['_transformService']=_0x5dbe0e);}['appendMutation'](_0x384113){const _0x56f428=_0x7011be,_0x300c80=this[_0x56f428(0x47c)][_0x56f428(0x1cb)](X,this[_0x56f428(0x363)],this[_0x56f428(0x4b7)],this[_0x56f428(0x3de)],[_0x384113],this[_0x56f428(0x314)]);return _0x300c80[_0x56f428(0x2fa)](),_0x300c80;}['onRemoteChangeset'](_0x27431e){const _0x4d4229=_0x7011be;if(this[_0x4d4229(0x24e)](_0x27431e))return this['_injector'][_0x4d4229(0x1cb)](k,this[_0x4d4229(0x363)],this[_0x4d4229(0x4b7)],this[_0x4d4229(0x3de)],[],null,[_0x27431e],this[_0x4d4229(0x314)]);try{const _0x2a271b=this[_0x4d4229(0x26f)]['transformChangesets']([_0x27431e],[this['_awaitingChangeset']],!0x1);if(_0x571ad7(_0x2a271b)){const {c1Prime:_0x4c7992,c2Prime:_0x8a8190}=_0x2a271b;this[_0x4d4229(0x399)](_0x4c7992[0x0]),_0x8a8190[0x0][_0x4d4229(0x21a)]=this[_0x4d4229(0x49b)]();const _0x320d6a=this[_0x4d4229(0x47c)][_0x4d4229(0x1cb)](Q,this[_0x4d4229(0x363)],this[_0x4d4229(0x4b7)],_0x8a8190[0x0],this[_0x4d4229(0x314)]);return _0x320d6a[_0x4d4229(0x2fa)](),_0x320d6a;}return this['_onConflict'](!0x1);}catch(_0x510bbe){return this[_0x4d4229(0x1b4)][_0x4d4229(0x174)](_0x510bbe),this['_onConflict'](!0x1);}}[_0x7011be(0x43a)](_0xb20d29){const _0x3bb196=_0x7011be,_0x337ee1=this[_0x3bb196(0x4c8)][_0x3bb196(0x334)](this[_0x3bb196(0x363)]);if(_0xb20d29[_0x3bb196(0x1c6)]<_0x337ee1-0x1)return this;if(this[_0x3bb196(0x24e)](_0xb20d29))return this[_0x3bb196(0x47c)][_0x3bb196(0x1cb)](k,this[_0x3bb196(0x363)],this[_0x3bb196(0x4b7)],null,[],this['_awaitingChangeset'],[],this[_0x3bb196(0x314)]);this['_incrementRevisionNumber']();const _0x44cb9=this[_0x3bb196(0x47c)]['createInstance'](pe,this['unitID'],this[_0x3bb196(0x4b7)],this[_0x3bb196(0x314)]);return _0x44cb9['_updateLocalCache'](),_0x44cb9;}[_0x7011be(0x28f)](_0x5c1dcc){const _0x58d875=_0x7011be;return this[_0x58d875(0x24d)](!!(_0x5c1dcc!=null&&_0x5c1dcc['isPermissionRej']));}[_0x7011be(0x1ef)](){const _0x5d4ff2=_0x7011be;return this[_0x5d4ff2(0x47c)][_0x5d4ff2(0x1cb)](te,this[_0x5d4ff2(0x363)],this[_0x5d4ff2(0x4b7)],this[_0x5d4ff2(0x3de)],[],this[_0x5d4ff2(0x314)]);}['toggleOnline'](){return this;}['resend'](){const _0x535123=_0x7011be;this['_handler'][_0x535123(0x282)](this[_0x535123(0x3de)]);}['_onConflict'](_0x138caf){const _0x53a895=_0x7011be;return this[_0x53a895(0x47c)][_0x53a895(0x1cb)](ee,this[_0x53a895(0x363)],this[_0x53a895(0x4b7)],this['_awaitingChangeset'],[],this[_0x53a895(0x314)],_0x138caf);}};Q=le([m(0x4,_0x4f6f98(_0x8f002c)),m(0x5,_0x4f6f98(_0xd9ea18)),m(0x6,_0x4f6f98(D)),m(0x7,_0x2cea1d),m(0x8,_0x2f2df5),m(0x9,_0x49c306),m(0xa,_0x2334b3)],Q);let X=class extends _e{constructor(_0xf0282a,_0x5158d8,_0x206550,_0x3dca7d,_0x4fdff9,_0x24dcf9,_0x32f387,_0x380e5f,_0x57fa1a,_0x46e57a,_0x242e6e,_0x115d4d){const _0x152cf9=_0x7011be;super(_0xf0282a,_0x5158d8,_0x206550,_0x3dca7d,_0x4fdff9,_0x57fa1a,_0x115d4d,_0x32f387,_0x380e5f),l(this,_0x152cf9(0x31f),'awaiting_with_pending'),(this['_injector']=_0x24dcf9,this['_logService']=_0x46e57a,this['_transformService']=_0x242e6e);}[_0x7011be(0x2b1)](_0x1cbdf3){const _0x2e4033=_0x7011be;return this[_0x2e4033(0x22c)]['push'](_0x1cbdf3),this;}[_0x7011be(0x32e)](_0xc03a0c){const _0x8a8504=_0x7011be;if(this['_checkMissing'](_0xc03a0c))return this['_injector'][_0x8a8504(0x1cb)](k,this[_0x8a8504(0x363)],this[_0x8a8504(0x4b7)],this[_0x8a8504(0x3de)],this['_pendingMutations'],null,[_0xc03a0c],this[_0x8a8504(0x314)]);try{const _0x6d0849=this['_transformService'][_0x8a8504(0x257)]([_0xc03a0c],[this['_awaitingChangeset']],!0x1);if(_0x571ad7(_0x6d0849)){const {c1Prime:_0x4d4781,c2Prime:_0x5b8a03}=_0x6d0849,_0x4c235d=this['_transformService'][_0x8a8504(0x37b)](_0x4d4781[0x0],this[_0x8a8504(0x22c)]);if(_0x50faaa(_0x4c235d)){const {c1Prime:_0xa848ba,m2Prime:_0x3fb880}=_0x4c235d;return this[_0x8a8504(0x399)](_0xa848ba),_0x5b8a03[0x0][_0x8a8504(0x21a)]=this['_getCurrentRevision'](),this['_injector'][_0x8a8504(0x1cb)](X,this[_0x8a8504(0x363)],this[_0x8a8504(0x4b7)],_0x5b8a03[0x0],_0x3fb880,this['_handler']);}throw _0x4c235d[_0x8a8504(0x174)];}throw _0x6d0849[_0x8a8504(0x174)];}catch(_0x4ae900){return this[_0x8a8504(0x1b4)][_0x8a8504(0x174)](_0x4ae900),this['_onConflict'](!0x1);}}['onRemoteAck'](_0x2c0af5){const _0x5daae5=_0x7011be;if(this[_0x5daae5(0x24e)](_0x2c0af5))return this['_injector']['createInstance'](k,this[_0x5daae5(0x363)],this[_0x5daae5(0x4b7)],null,this[_0x5daae5(0x22c)],this[_0x5daae5(0x3de)],[],this[_0x5daae5(0x314)]);this[_0x5daae5(0x338)]();const _0xe85799=this[_0x5daae5(0x47c)][_0x5daae5(0x1cb)](K,this[_0x5daae5(0x363)],this[_0x5daae5(0x4b7)],this[_0x5daae5(0x22c)],this[_0x5daae5(0x314)]);return _0xe85799[_0x5daae5(0x3d3)](),_0xe85799[_0x5daae5(0x2fa)](),_0xe85799;}['onRemoteRej'](_0x131e01){const _0x9387a2=_0x7011be;return this[_0x9387a2(0x24d)](!!(_0x131e01!=null&&_0x131e01[_0x9387a2(0x1a8)]));}[_0x7011be(0x1ef)](){const _0x5f5d86=_0x7011be;return this[_0x5f5d86(0x47c)][_0x5f5d86(0x1cb)](te,this['unitID'],this[_0x5f5d86(0x4b7)],this[_0x5f5d86(0x3de)],this['_pendingMutations'],this[_0x5f5d86(0x314)]);}['toggleOnline'](){return this;}[_0x7011be(0x24a)](){const _0x494421=_0x7011be;this[_0x494421(0x314)][_0x494421(0x282)](this['_awaitingChangeset']);}[_0x7011be(0x24d)](_0x15038b){const _0x2c1dfe=_0x7011be;return this[_0x2c1dfe(0x47c)]['createInstance'](ee,this['unitID'],this['type'],null,this[_0x2c1dfe(0x22c)],this[_0x2c1dfe(0x314)],_0x15038b);}};X=le([m(0x5,_0x4f6f98(_0x8f002c)),m(0x6,_0x4f6f98(_0xd9ea18)),m(0x7,_0x4f6f98(D)),m(0x8,_0x2cea1d),m(0x9,_0x2f2df5),m(0xa,_0x49c306),m(0xb,_0x2334b3)],X);let ee=class extends _e{constructor(_0x588641,_0x532a07,_0x4b43ba,_0xae6077,_0x4a5e78,_0x227d8c=!0x1,_0x9257d6,_0x4897a4,_0x4a91dc,_0x368ebc,_0x588789,_0x416960,_0x1fcfa0){const _0x2eba64=_0x7011be;super(_0x588641,_0x532a07,_0x4b43ba,_0xae6077,_0x4a5e78,_0x4897a4,_0x4a91dc,_0x588789,_0x368ebc),l(this,_0x2eba64(0x31f),_0x2eba64(0x1ad)),(this[_0x2eba64(0x2a9)]=_0x227d8c,this['_permissionService']=_0x9257d6,this[_0x2eba64(0x2f8)]=_0x416960,this[_0x2eba64(0x281)]=_0x1fcfa0,this[_0x2eba64(0x40e)](),this[_0x2eba64(0x440)](),this[_0x2eba64(0x341)]());}[_0x7011be(0x2b1)](){return this;}['onRemoteChangeset'](){return this;}[_0x7011be(0x43a)](){return this;}['onRemoteRej'](){return this;}[_0x7011be(0x1ef)](){return this;}['toggleOnline'](){return this;}[_0x7011be(0x24a)](){const _0x447ed9=_0x7011be;throw new Error(_0x447ed9(0x2f3));}[_0x7011be(0x440)](){const _0x3ff48f=_0x7011be;this[_0x3ff48f(0x40d)][_0x3ff48f(0x39a)](this[_0x3ff48f(0x363)],this[_0x3ff48f(0x4b7)],null,[]);}['_showConflictNotification'](){const _0x3426c7=_0x7011be;this[_0x3426c7(0x2a9)]?this[_0x3426c7(0x281)][_0x3426c7(0x2ee)]({'title':this[_0x3426c7(0x2f8)]['t']('permission.title'),'content':this[_0x3426c7(0x2f8)]['t'](_0x3426c7(0x29e)),'type':_0x3426c7(0x174),'duration':0x0}):this[_0x3426c7(0x281)][_0x3426c7(0x2ee)]({'title':this['_localeService']['t'](_0x3426c7(0x22d)),'content':this[_0x3426c7(0x2f8)]['t'](_0x3426c7(0x3c3)),'type':_0x3426c7(0x174),'duration':0x0});}['_disableEditing'](){const _0x5db9e8=_0x7011be;this['_permissionService'][_0x5db9e8(0x39c)](new _0x37edea(this[_0x5db9e8(0x363)])['id'],!0x1);}};ee=le([m(0x6,_0x4f6f98(_0x28c276)),m(0x7,_0x2cea1d),m(0x8,_0x2334b3),m(0x9,_0x4f6f98(D)),m(0xa,_0x4f6f98(_0xd9ea18)),m(0xb,_0x4f6f98(_0x95964d)),m(0xc,_0x4ed61f)],ee);let te=class extends _e{constructor(_0x3f1f4d,_0x5427b1,_0x5735c3,_0x34a0b1,_0x4e7df7,_0x31d893,_0x36aeb1,_0x5a6656,_0x32681,_0x3878b7){super(_0x3f1f4d,_0x5427b1,_0x5735c3,_0x34a0b1,_0x4e7df7,_0x32681,_0x3878b7,_0x36aeb1,_0x5a6656),l(this,'status','offline'),this['_injector']=_0x31d893;}[_0x7011be(0x2b1)](_0xec2d78){const _0x55e7fc=_0x7011be;return this[_0x55e7fc(0x22c)][_0x55e7fc(0x1c4)](_0xec2d78),this[_0x55e7fc(0x2fa)](),this;}[_0x7011be(0x32e)](_0x8cf63e){const _0x28082c=_0x7011be;throw new Error(_0x28082c(0x462));}[_0x7011be(0x43a)](){const _0x12d77d=_0x7011be;throw new Error(_0x12d77d(0x494));}['onRemoteRej'](){const _0x3af6bc=_0x7011be;throw new Error(_0x3af6bc(0x387));}[_0x7011be(0x1ef)](){return this;}[_0x7011be(0x485)](){const _0x2bd220=_0x7011be,{_injector:_0x4869dc,_pendingMutations:_0x80a733,_awaitingChangeset:_0x2e43c3,unitID:_0x5d7062,_handler:_0x47809e,type:_0x2341b6}=this,_0x133a20=ks(_0x4869dc,_0x5d7062,_0x2341b6,_0x2e43c3,_0x80a733,_0x47809e);return _0x133a20 instanceof K?_0x133a20[_0x2bd220(0x3d3)]():(_0x133a20 instanceof X||_0x133a20 instanceof Q)&&_0x133a20[_0x2bd220(0x24a)](),_0x133a20;}[_0x7011be(0x24a)](){const _0x57c99d=_0x7011be;throw new Error(_0x57c99d(0x4bc));}};te=le([m(0x5,_0x4f6f98(_0x8f002c)),m(0x6,_0x4f6f98(_0xd9ea18)),m(0x7,_0x4f6f98(D)),m(0x8,_0x2cea1d),m(0x9,_0x2334b3)],te);let k=class extends _e{constructor(_0x1d1d1f,_0x26acb0,_0x1ecaae,_0x42d37b,_0x56a755,_0x4713ac,_0x3321cd,_0x377341,_0x25a3c0,_0x4d56d8,_0x889ad,_0x172046,_0x5e994d,_0x2aede2){const _0x5423ee=_0x7011be;super(_0x1d1d1f,_0x26acb0,_0x1ecaae,_0x42d37b,_0x3321cd,_0x172046,_0x5e994d,_0x25a3c0,_0x4d56d8),l(this,_0x5423ee(0x31f),_0x5423ee(0x2f2)),(this[_0x5423ee(0x1a2)]=_0x56a755,this[_0x5423ee(0x280)]=_0x4713ac,this[_0x5423ee(0x47c)]=_0x377341,this[_0x5423ee(0x1b4)]=_0x889ad,this[_0x5423ee(0x26f)]=_0x2aede2);}[_0x7011be(0x474)](_0x58b747){const _0x7875c7=_0x7011be;try{const _0x1db938=[..._0x58b747,...this[_0x7875c7(0x280)]],_0xc4f32a=[this['_awaitingChangeset']||this[_0x7875c7(0x1a2)]]['filter'](_0x4e4d5d=>!!_0x4e4d5d);let _0x1f8db3,_0x17e94a;if(_0xc4f32a[_0x7875c7(0x2db)]){const _0x375312=this[_0x7875c7(0x26f)]['transformChangesets'](_0x1db938,_0xc4f32a,!0x1);if(!_0x571ad7(_0x375312))throw _0x375312[_0x7875c7(0x174)];_0x1f8db3=_0x375312['c1Prime'],_0x17e94a=_0x375312[_0x7875c7(0x3bd)];}else _0x1f8db3=_0x1db938,_0x17e94a=[];let _0x2cae0b=this[_0x7875c7(0x22c)];_0x1f8db3[_0x7875c7(0x429)](_0x528f22=>{const _0x58e4d3=_0x7875c7;let _0x2ac0d4;if(_0x2cae0b[_0x58e4d3(0x2db)]){const _0x160c75=this[_0x58e4d3(0x26f)]['transformMutationsWithChangeset'](_0x528f22,_0x2cae0b);if(!_0x50faaa(_0x160c75))throw _0x160c75[_0x58e4d3(0x174)];_0x2ac0d4=_0x160c75['c1Prime'],_0x2cae0b=_0x160c75['m2Prime'];}else _0x2ac0d4=_0x528f22;this[_0x58e4d3(0x399)](_0x2ac0d4);}),this[_0x7875c7(0x1a2)]&&this[_0x7875c7(0x338)](),this[_0x7875c7(0x3de)]&&_0x17e94a[_0x7875c7(0x2db)]&&(_0x17e94a[0x0][_0x7875c7(0x21a)]=this[_0x7875c7(0x49b)]());let _0x2b7d7d;if(this[_0x7875c7(0x3de)]&&_0x2cae0b[_0x7875c7(0x2db)]!==0x0)_0x2b7d7d=this[_0x7875c7(0x47c)][_0x7875c7(0x1cb)](X,this[_0x7875c7(0x363)],this['type'],_0x17e94a[0x0],_0x2cae0b,this[_0x7875c7(0x314)]);else{if(this[_0x7875c7(0x3de)]&&_0x2cae0b[_0x7875c7(0x2db)]===0x0)_0x17e94a[0x0]['baseRev']=this[_0x7875c7(0x49b)](),_0x2b7d7d=this[_0x7875c7(0x47c)][_0x7875c7(0x1cb)](Q,this['unitID'],this[_0x7875c7(0x4b7)],_0x17e94a[0x0],this[_0x7875c7(0x314)]);else{if(_0x2cae0b[_0x7875c7(0x2db)]!==0x0){const _0x284f1b=this['_injector'][_0x7875c7(0x1cb)](K,this[_0x7875c7(0x363)],this[_0x7875c7(0x4b7)],_0x2cae0b,this[_0x7875c7(0x314)]);_0x284f1b[_0x7875c7(0x3d3)](),_0x2b7d7d=_0x284f1b;}else _0x2b7d7d=this[_0x7875c7(0x47c)][_0x7875c7(0x1cb)](pe,this[_0x7875c7(0x363)],this[_0x7875c7(0x4b7)],this['_handler']);}}return _0x2b7d7d[_0x7875c7(0x2fa)](),_0x2b7d7d;}catch(_0x55bbdd){return this[_0x7875c7(0x1b4)][_0x7875c7(0x174)](_0x7875c7(0x2c8),_0x7875c7(0x199),_0x55bbdd),this[_0x7875c7(0x47c)]['createInstance'](ee,this[_0x7875c7(0x363)],this['type'],this[_0x7875c7(0x3de)],this[_0x7875c7(0x22c)],this[_0x7875c7(0x314)],!0x1);}}[_0x7011be(0x24a)](){const _0x443025=_0x7011be;throw new Error(_0x443025(0x1f2));}[_0x7011be(0x2b1)](_0x5f519a){const _0x4e6978=_0x7011be;return this['_pendingMutations'][_0x4e6978(0x1c4)](_0x5f519a),this;}[_0x7011be(0x32e)](_0x15e052){const _0x3ec263=_0x7011be;return this[_0x3ec263(0x280)][_0x3ec263(0x1c4)](_0x15e052),this;}[_0x7011be(0x43a)](_0x2ea95c){const _0x24fdde=_0x7011be;if(this['_awaitingChangeset'])return this[_0x24fdde(0x1a2)]=this[_0x24fdde(0x3de)],this[_0x24fdde(0x3de)]=null,this;throw new Error(_0x24fdde(0x2bd));}[_0x7011be(0x28f)](_0x2e83b1){const _0x663740=_0x7011be;return this['_onConflict'](!!(_0x2e83b1!=null&&_0x2e83b1[_0x663740(0x1a8)]));}[_0x7011be(0x1ef)](){const _0x35c9bb=_0x7011be;return this[_0x35c9bb(0x47c)][_0x35c9bb(0x1cb)](te,this[_0x35c9bb(0x363)],this['type'],this[_0x35c9bb(0x3de)],this[_0x35c9bb(0x22c)],this[_0x35c9bb(0x314)]);}['toggleOnline'](){return this;}[_0x7011be(0x24d)](_0x4c6c24){const _0x3c145e=_0x7011be;return this[_0x3c145e(0x47c)][_0x3c145e(0x1cb)](ee,this['unitID'],this[_0x3c145e(0x4b7)],this['_awaitingChangeset'],this['_pendingMutations'],this['_handler'],_0x4c6c24);}};k=le([m(0x7,_0x4f6f98(_0x8f002c)),m(0x8,_0x4f6f98(_0xd9ea18)),m(0x9,_0x4f6f98(D)),m(0xa,_0x2f2df5),m(0xb,_0x2cea1d),m(0xc,_0x2334b3),m(0xd,_0x49c306)],k);function ks(_0x3c5952,_0x2c1e2e,_0x2e363b,_0x472832,_0x1f55c2,_0x8fa6fd){const _0x2f3723=_0x7011be;return _0x472832&&_0x1f55c2[_0x2f3723(0x2db)]?_0x3c5952[_0x2f3723(0x1cb)](X,_0x2c1e2e,_0x2e363b,_0x472832,_0x1f55c2,_0x8fa6fd):_0x472832?_0x3c5952[_0x2f3723(0x1cb)](Q,_0x2c1e2e,_0x2e363b,_0x472832,_0x8fa6fd):_0x1f55c2[_0x2f3723(0x2db)]?_0x3c5952[_0x2f3723(0x1cb)](K,_0x2c1e2e,_0x2e363b,_0x1f55c2,_0x8fa6fd):_0x3c5952[_0x2f3723(0x1cb)](pe,_0x2c1e2e,_0x2e363b,_0x8fa6fd);}var gr=Object[_0x7011be(0x38b)],Sr=Object['getOwnPropertyDescriptor'],Wt=(_0x505b9c,_0x2d4612,_0x39169a,_0x5681e9)=>{const _0x356ea4=_0x7011be;for(var _0x3dd06a=_0x5681e9>0x1?void 0x0:_0x5681e9?Sr(_0x2d4612,_0x39169a):_0x2d4612,_0x3c8123=_0x505b9c[_0x356ea4(0x2db)]-0x1,_0x5e5809;_0x3c8123>=0x0;_0x3c8123--)(_0x5e5809=_0x505b9c[_0x3c8123])&&(_0x3dd06a=(_0x5681e9?_0x5e5809(_0x2d4612,_0x39169a,_0x3dd06a):_0x5e5809(_0x3dd06a))||_0x3dd06a);return _0x5681e9&&_0x3dd06a&&gr(_0x2d4612,_0x39169a,_0x3dd06a),_0x3dd06a;},p=(_0x2923e2,_0x1f1972)=>(_0xe8ff0e,_0x16f796)=>_0x1f1972(_0xe8ff0e,_0x16f796,_0x2923e2);let tt=class extends _0x101c13{constructor(_0xe1b99a,_0x33ccd8,_0x2a7f71,_0x440356,_0x4181ce,_0x3342e1,_0x27c0ef,_0x36be5b,_0x1fc59e,_0x3578d8,_0xba40d5,_0x53165e,_0x13952c){const _0x26e9de=_0x7011be;super(),l(this,'_state$',new _0x2048f5(null)),l(this,_0x26e9de(0x37c),this[_0x26e9de(0x1d2)][_0x26e9de(0x1f7)]()),l(this,'_state'),l(this,_0x26e9de(0x1b9),!0x1),l(this,_0x26e9de(0x294),this[_0x26e9de(0x37c)][_0x26e9de(0x185)](_0x39d5f6(_0x52cefc=>_0x52cefc?_0x52cefc[_0x26e9de(0x31f)]:w[_0x26e9de(0x2ca)]),_0x290704(0x1))),l(this,_0x26e9de(0x4b3),!0x1),l(this,_0x26e9de(0x4b4),[]),(this[_0x26e9de(0x363)]=_0xe1b99a,this[_0x26e9de(0x3d5)]=_0x33ccd8,this[_0x26e9de(0x3fa)]=_0x2a7f71,this[_0x26e9de(0x47c)]=_0x440356,this[_0x26e9de(0x40d)]=_0x4181ce,this[_0x26e9de(0x3c2)]=_0x3342e1,this[_0x26e9de(0x2f8)]=_0x27c0ef,this['_revisionService']=_0x36be5b,this[_0x26e9de(0x1b4)]=_0x1fc59e,this['_commandService']=_0x3578d8,this[_0x26e9de(0x398)]=_0xba40d5,this['_permissionService']=_0x53165e,this[_0x26e9de(0x2e4)]=_0x13952c);}get['state'](){const _0xf98a12=_0x7011be;return this[_0xf98a12(0x48e)];}async[_0x7011be(0x395)](){const _0x461b87=_0x7011be;if(this[_0x461b87(0x361)])throw new Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x461b87(0x1f6)]();}[_0x7011be(0x316)](){const _0x599e6f=_0x7011be;return this[_0x599e6f(0x1b9)]=!0x0,_0x4b6fbe(()=>{const _0x28f516=_0x599e6f;this[_0x28f516(0x1b9)]=!0x1,this[_0x28f516(0x2a0)]();});}[_0x7011be(0x235)](_0x37dc69){this['_state']=_0x37dc69,this['_state$']['next'](_0x37dc69);}async[_0x7011be(0x1f6)](){const _0x134f1c=_0x7011be;var _0x51051e;this[_0x134f1c(0x235)](await this[_0x134f1c(0x310)]()),this[_0x134f1c(0x2e4)]&&((_0x51051e=this[_0x134f1c(0x2e4)])==null||_0x51051e['editingUnit'](this[_0x134f1c(0x363)]),this['disposeWithMe'](this[_0x134f1c(0x2e4)]['getUnitStatus$'](this[_0x134f1c(0x363)])[_0x134f1c(0x376)](_0x255d8b=>{const _0x14fa27=_0x134f1c;this[_0x14fa27(0x1b4)][_0x14fa27(0x368)](_0x14fa27(0x411),_0x14fa27(0x37a),_0x255d8b),_0x255d8b===xs['OTHER_CLIENTS_EDITING']?(this[_0x14fa27(0x398)]['show']({'content':this[_0x14fa27(0x2f8)]['t'](_0x14fa27(0x31a)),'type':_0x5638e0[_0x14fa27(0x3a8)]}),this['_permissionService']['updatePermissionPoint'](new _0x37edea(this[_0x14fa27(0x363)])['id'],!0x1)):this[_0x14fa27(0x48c)][_0x14fa27(0x39c)](new _0x37edea(this[_0x14fa27(0x363)])['id'],!0x0);})));let _0x3af31d=!0x1;return this[_0x134f1c(0x26d)](this[_0x134f1c(0x3d5)][_0x134f1c(0x364)]['subscribe'](_0x8f0e70=>{const _0x3242ce=_0x134f1c;_0x8f0e70===G['ONLINE']?this['_toggleOnline'](_0x3af31d):_0x8f0e70===G['OFFLINE']&&(_0x3af31d=!0x0,this[_0x3242ce(0x39e)]());})),this['disposeWithMe'](this[_0x134f1c(0x3d5)][_0x134f1c(0x27f)][_0x134f1c(0x376)](_0x16f80a=>{const _0x58e556=_0x134f1c;try{switch(_0x16f80a[_0x58e556(0x2fb)]){case _0x3edc6c[_0x58e556(0x4d7)]:{this[_0x58e556(0x25d)](_0x3d95ae(_0x16f80a[_0x58e556(0x253)]));break;}case _0x3edc6c[_0x58e556(0x324)]:{this[_0x58e556(0x2f9)](_0x16f80a[_0x58e556(0x253)]);break;}case _0x3edc6c['CHANGESET_REJ']:{this[_0x58e556(0x401)]();break;}case _0x3edc6c['PSEUDO_FETCH_MISSING_RESULT']:{this[_0x58e556(0x1c8)](_0x16f80a[_0x58e556(0x253)][_0x58e556(0x19d)][_0x58e556(0x2af)](_0x5a7a34=>_0x3d95ae(_0x5a7a34)));break;}case _0x3edc6c[_0x58e556(0x4bd)]:this[_0x58e556(0x401)]({'isPermissionRej':!0x0});}}catch(_0x429fcf){throw console[_0x58e556(0x174)](_0x58e556(0x1cf),_0x429fcf),_0x429fcf;}})),this[_0x134f1c(0x48e)];}[_0x7011be(0x285)](){const _0x1e1454=_0x7011be;this[_0x1e1454(0x4b3)]=!0x1;}['_lockTransition'](){const _0x3ff7f5=_0x7011be;if(this[_0x3ff7f5(0x4b3)])throw new Error(_0x3ff7f5(0x255));this['_transitionLocked']=!0x0;}['_onLocalMutation'](_0x2cbd43){const _0x300a47=_0x7011be;this[_0x300a47(0x3cc)](),this[_0x300a47(0x235)](this[_0x300a47(0x48e)][_0x300a47(0x2b1)](_0x2cbd43)),this[_0x300a47(0x285)]();}[_0x7011be(0x25d)](_0x58d35b){const _0x42838c=_0x7011be;if(!(_0x58d35b['revision']<=this[_0x42838c(0x4c8)]['getCurrentRevOfUnit'](this[_0x42838c(0x363)]))){if(this['_collaborationPaused']){this[_0x42838c(0x4b4)][_0x42838c(0x1c4)](_0x58d35b);return;}this[_0x42838c(0x2cb)](_0x58d35b);}}['_exhaustRemoteChangesetQueue'](){const _0x85ae71=_0x7011be;this[_0x85ae71(0x4b4)][_0x85ae71(0x429)](_0x11a830=>this[_0x85ae71(0x2cb)](_0x11a830)),this[_0x85ae71(0x4b4)]=[];}[_0x7011be(0x2cb)](_0x843564){const _0x261098=_0x7011be,_0x2c353a=this[_0x261098(0x3c2)][_0x261098(0x3dc)][_0x261098(0x1b2)](this[_0x261098(0x3c2)][_0x261098(0x3dc)][_0x261098(0x24b)]()[_0x261098(0x343)])(_0x843564['mutations'],null)||_0x843564[_0x261098(0x459)],_0x1b038c={..._0x843564,'mutations':_0x2c353a};this[_0x261098(0x3cc)](),this[_0x261098(0x235)](this[_0x261098(0x48e)][_0x261098(0x32e)](_0x1b038c)),this[_0x261098(0x285)]();}['_onRemoteACK'](_0x1057a3){const _0x4f9f3d=_0x7011be;this[_0x4f9f3d(0x3cc)](),this[_0x4f9f3d(0x235)](this[_0x4f9f3d(0x48e)][_0x4f9f3d(0x43a)](_0x1057a3)),this[_0x4f9f3d(0x285)]();}[_0x7011be(0x401)](_0x56fb7d){const _0x24cff2=_0x7011be;this[_0x24cff2(0x3cc)](),this['_updateState'](this[_0x24cff2(0x48e)]['onRemoteRej'](_0x56fb7d)),this[_0x24cff2(0x285)]();}[_0x7011be(0x1c8)](_0x16eca2){const _0x4571f5=_0x7011be;if(!(this[_0x4571f5(0x48e)]instanceof k))throw new TypeError(_0x4571f5(0x3f1));const _0x33b143=_0x16eca2[_0x4571f5(0x2af)](_0x1a7bd7=>{const _0x2b2376=_0x4571f5,_0x1295bd=this[_0x2b2376(0x3c2)][_0x2b2376(0x3dc)][_0x2b2376(0x1b2)](this[_0x2b2376(0x3c2)][_0x2b2376(0x3dc)][_0x2b2376(0x24b)]()[_0x2b2376(0x343)])(_0x1a7bd7[_0x2b2376(0x459)],null)||_0x1a7bd7['mutations'];return{..._0x1a7bd7,'mutations':_0x1295bd};});this[_0x4571f5(0x3cc)](),this[_0x4571f5(0x235)](this[_0x4571f5(0x48e)][_0x4571f5(0x474)](_0x33b143)),this['_unlockTransition']();}[_0x7011be(0x39e)](){const _0x4df300=_0x7011be;this['_lockTransition'](),this[_0x4df300(0x235)](this[_0x4df300(0x48e)]['toggleOffline']()),this['_unlockTransition']();}[_0x7011be(0x2d0)](_0x2c13ee=!0x1){const _0x170cea=_0x7011be;this[_0x170cea(0x3cc)](),this['_updateState'](this['_state'][_0x170cea(0x485)]()),this[_0x170cea(0x285)]();const _0x11ffda=this[_0x170cea(0x48e)];_0x2c13ee&&_0x11ffda instanceof pe&&(this[_0x170cea(0x3cc)](),this[_0x170cea(0x235)](_0x11ffda[_0x170cea(0x3fd)]()),this[_0x170cea(0x285)]());}async['_createInitialState'](){return new Promise(_0x2a4a9b=>{const _0x223447=_0x312b;this[_0x223447(0x3d5)][_0x223447(0x364)][_0x223447(0x185)](_0x4d0f5c(0x1))[_0x223447(0x376)](async _0x714c8c=>{const _0x567e36=_0x223447;_0x2a4a9b(await this[_0x567e36(0x46d)](_0x714c8c===G['ONLINE']));});});}[_0x7011be(0x4e1)](){const _0x3fec8a=_0x7011be,_0x41bec3=this[_0x3fec8a(0x363)];return{'onStateChange':(_0x2cfb07,_0x289613)=>{const _0x4e1073=_0x3fec8a;if(_0x2cfb07!==this[_0x4e1073(0x48e)])throw new Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x2cfb07[_0x4e1073(0x31f)]+'\x0aAfter:\x20'+_0x289613[_0x4e1073(0x31f)]+'\x0aCurrent:\x20'+this[_0x4e1073(0x48e)][_0x4e1073(0x31f)]);this[_0x4e1073(0x235)](_0x289613);},'onSendChangeset':_0x4a7576=>{const _0x34a753=_0x3fec8a,_0x2cf878={'eventID':_0x3edc6c['SUBMIT_CHANGESET'],'data':{'unitID':_0x4a7576['unitID'],'unitType':this[_0x34a753(0x3fa)],'changeset':_0x4a7576,'memberID':this[_0x34a753(0x3d5)][_0x34a753(0x34b)]()}};this[_0x34a753(0x3d5)][_0x34a753(0x4bb)](_0x2cf878,this[_0x34a753(0x363)]);},'onMissingChangesets':({from:_0x171e58,to:_0x3aa942})=>{const _0x161d59=_0x3fec8a;this[_0x161d59(0x1b4)][_0x161d59(0x368)]('[CollaborationEntity]',_0x161d59(0x18f)+_0x171e58+_0x161d59(0x4a3)+_0x3aa942);const _0x55e040={'eventID':_0x3edc6c[_0x161d59(0x1d8)],'data':{'unitID':_0x41bec3,'unitType':this[_0x161d59(0x3fa)],'from':_0x171e58,'to':_0x3aa942}};this[_0x161d59(0x3d5)][_0x161d59(0x4bb)](_0x55e040,this[_0x161d59(0x363)]);}};}async['_createInitialStateImpl'](_0x182500){const _0x30d2bd=_0x7011be;var _0x592d88,_0x254460;const _0x3dc02e=await this[_0x30d2bd(0x40d)][_0x30d2bd(0x403)](this[_0x30d2bd(0x363)]),_0x5875eb=(_0x592d88=_0x3dc02e==null?void 0x0:_0x3dc02e[_0x30d2bd(0x459)])!=null?_0x592d88:[],_0x4cf22b=(_0x254460=_0x3dc02e==null?void 0x0:_0x3dc02e['awaitingChangeset'])!=null?_0x254460:null,_0x45873d=this[_0x30d2bd(0x363)];try{this['_replayCachedMutations'](_0x4cf22b,_0x5875eb);}catch(_0xedd2b0){this[_0x30d2bd(0x1b4)][_0x30d2bd(0x174)](_0xedd2b0);}const _0x564a37=this['_createHandler']();if(_0x182500){const _0x48972c=ks(this[_0x30d2bd(0x47c)],_0x45873d,this[_0x30d2bd(0x3fa)],_0x4cf22b,_0x5875eb,_0x564a37);return _0x48972c instanceof K?_0x48972c['_schedule']():(_0x48972c instanceof X||_0x48972c instanceof Q)&&_0x48972c[_0x30d2bd(0x24a)](),_0x48972c;}return this[_0x30d2bd(0x47c)][_0x30d2bd(0x1cb)](te,_0x45873d,this[_0x30d2bd(0x3fa)],_0x4cf22b,_0x5875eb,_0x564a37);}[_0x7011be(0x4db)](_0x577960,_0x1044ec){const _0x1f3331=_0x7011be;var _0x1038b0,_0x5acd84;const _0x1d4cec=this[_0x1f3331(0x3c2)][_0x1f3331(0x3dc)][_0x1f3331(0x1b2)](this['_compressMutationService'][_0x1f3331(0x3dc)][_0x1f3331(0x24b)]()['COMPRESS_MUTATION_APPLY']);(_0x1038b0=_0x1d4cec((_0x577960==null?void 0x0:_0x577960[_0x1f3331(0x459)])||[],null))==null||_0x1038b0['forEach'](_0x41c9c9=>this[_0x1f3331(0x2c6)][_0x1f3331(0x431)](_0x41c9c9['id'],_0x41c9c9[_0x1f3331(0x329)])),(_0x5acd84=_0x1d4cec(_0x1044ec||[],null))==null||_0x5acd84['forEach'](_0x52f9db=>this[_0x1f3331(0x2c6)]['executeCommand'](_0x52f9db['id'],_0x52f9db[_0x1f3331(0x329)]));}};tt=Wt([p(0x3,_0x4f6f98(_0x8f002c)),p(0x4,_0x4f6f98(D)),p(0x5,_0x4f6f98(_0x479762)),p(0x6,_0x4f6f98(_0x95964d)),p(0x7,_0x4f6f98(_0xd9ea18)),p(0x8,_0x2f2df5),p(0x9,_0x2cea1d),p(0xa,_0x13bf44),p(0xb,_0x28c276),p(0xc,_0x59d638(nt))],tt);let Ot=class extends tt{constructor(_0x42c9ba,_0x4fe291,_0x48da4b,_0x4a7bed,_0x26ecdc,_0x1e2639,_0x12fd87,_0x280dee,_0x2fdb26,_0x19b374,_0x388e3e,_0x4b8c93,_0x5cfd08,_0x13e5ec,_0x4725ed,_0x5da595,_0x2713bc){const _0x256875=_0x7011be;super(_0x42c9ba,_0x48da4b,_0x4fe291,_0x4a7bed,_0x26ecdc,_0x1e2639,_0x12fd87,_0x280dee,_0x5cfd08,_0x13e5ec,_0x4725ed,_0x5da595,_0x2713bc),this[_0x256875(0x363)]=_0x42c9ba,this[_0x256875(0x4b7)]=_0x4fe291,this['_docStateChangeManagerService']=_0x2fdb26,this['_docTransformIMECacheService']=_0x19b374,this[_0x256875(0x307)]=_0x388e3e,this[_0x256875(0x2f6)]=_0x4b8c93;}['_createHandler'](){const _0xd1bd75=_0x7011be,_0x25e8b0=super[_0xd1bd75(0x4e1)]();return _0x25e8b0['onTransformIME']=_0x406589=>this[_0xd1bd75(0x1ab)][_0xd1bd75(0x3a2)](_0x406589),_0x25e8b0['onTransformSelections']=_0x197864=>this[_0xd1bd75(0x307)][_0xd1bd75(0x250)](_0x197864),_0x25e8b0[_0xd1bd75(0x2ed)]=_0x5e55f6=>this[_0xd1bd75(0x2f6)][_0xd1bd75(0x25f)](_0x5e55f6),_0x25e8b0[_0xd1bd75(0x43f)]=_0x12dd36=>this[_0xd1bd75(0x1ab)][_0xd1bd75(0x179)](_0x12dd36),_0x25e8b0;}async[_0x7011be(0x1f6)](){const _0x262411=_0x7011be,_0x1433bf=await super[_0x262411(0x1f6)]();return this[_0x262411(0x26d)](this[_0x262411(0x2c6)][_0x262411(0x2b4)]((_0x39ee1f,_0x1d4723)=>{const _0x358732=_0x262411;if(_0x39ee1f['type']!==_0xba6e30[_0x358732(0x30e)]||_0x1d4723!=null&&_0x1d4723[_0x358732(0x2a5)]||_0x1d4723!=null&&_0x1d4723[_0x358732(0x218)])return;const _0x15d939=_0x39ee1f[_0x358732(0x329)];if((_0x15d939==null?void 0x0:_0x15d939[_0x358732(0x36b)])!==this[_0x358732(0x363)])return;let _0x40ac88=_0x39ee1f;if(_0x40ac88['id']===_0x565f33['id']){const _0x2f3e16=_0x40ac88['params'];_0x40ac88={'id':_0x565f33['id'],'type':_0xba6e30[_0x358732(0x30e)],'params':{'unitId':_0x2f3e16['unitId'],'actions':_0x2f3e16[_0x358732(0x1d0)],'textRanges':null}};}const _0x52ad5c=this[_0x358732(0x3c2)][_0x358732(0x3dc)][_0x358732(0x1b2)](this[_0x358732(0x3c2)][_0x358732(0x3dc)][_0x358732(0x24b)]()[_0x358732(0x319)])([_0x40ac88],null)||[_0x40ac88];this[_0x358732(0x2a3)](_0x52ad5c[0x0]);})),_0x1433bf;}};Ot=Wt([p(0x3,_0x4f6f98(_0x8f002c)),p(0x4,_0x4f6f98(D)),p(0x5,_0x4f6f98(_0x479762)),p(0x6,_0x4f6f98(_0x95964d)),p(0x7,_0x4f6f98(_0xd9ea18)),p(0x8,_0x4f6f98(_0x21dbbb)),p(0x9,_0x4f6f98(Ze)),p(0xa,_0x4f6f98(et)),p(0xb,_0x4f6f98(Ft)),p(0xc,_0x2f2df5),p(0xd,_0x2cea1d),p(0xe,_0x13bf44),p(0xf,_0x28c276),p(0x10,_0x59d638(nt))],Ot);let Dt=class extends tt{constructor(_0x56d186,_0x4755c8,_0x26ccca,_0x53fdaa,_0x1aec0d,_0x1a5cad,_0x3d64da,_0x19d6bb,_0x4ddd7d,_0x3c0f2c,_0x442225,_0x219e27,_0x2cab58,_0x5d1ebd){const _0x4e69fe=_0x7011be;super(_0x56d186,_0x26ccca,_0x4755c8,_0x53fdaa,_0x1aec0d,_0x1a5cad,_0x3d64da,_0x19d6bb,_0x3c0f2c,_0x442225,_0x219e27,_0x2cab58,_0x5d1ebd),this[_0x4e69fe(0x363)]=_0x56d186,this[_0x4e69fe(0x4b7)]=_0x4755c8,this['_sheetTransformSelectionsService']=_0x4ddd7d;}[_0x7011be(0x4e1)](){const _0x395168=_0x7011be,_0x1539b7=super[_0x395168(0x4e1)]();return _0x1539b7[_0x395168(0x2e5)]=_0x4139b4=>this[_0x395168(0x4d8)][_0x395168(0x250)](_0x4139b4),_0x1539b7;}async[_0x7011be(0x1f6)](){const _0x7e9bb4=_0x7011be,_0x3d7382=await super[_0x7e9bb4(0x1f6)]();return this[_0x7e9bb4(0x26d)](this[_0x7e9bb4(0x2c6)][_0x7e9bb4(0x2b4)]((_0x816f25,_0x141a46)=>{const _0x829b07=_0x7e9bb4;if(_0x816f25['type']!==_0xba6e30['MUTATION']||_0x141a46!=null&&_0x141a46['fromCollab']||_0x141a46!=null&&_0x141a46[_0x829b07(0x218)])return;const _0x55cbaa=_0x816f25[_0x829b07(0x329)];if((_0x55cbaa==null?void 0x0:_0x55cbaa[_0x829b07(0x36b)])!==this[_0x829b07(0x363)])return;const _0x406423=_0x816f25,_0x4004e1=this[_0x829b07(0x3c2)][_0x829b07(0x3dc)][_0x829b07(0x1b2)](this[_0x829b07(0x3c2)][_0x829b07(0x3dc)][_0x829b07(0x24b)]()['COMPRESS_MUTATION_SEND'])([_0x406423],null)||[_0x406423];this['_onLocalMutation'](_0x4004e1[0x0]);})),_0x3d7382;}};Dt=Wt([p(0x3,_0x4f6f98(_0x8f002c)),p(0x4,_0x4f6f98(D)),p(0x5,_0x4f6f98(_0x479762)),p(0x6,_0x4f6f98(_0x95964d)),p(0x7,_0x4f6f98(_0xd9ea18)),p(0x8,_0x4f6f98(Qe)),p(0x9,_0x2f2df5),p(0xa,_0x2cea1d),p(0xb,_0x13bf44),p(0xc,_0x28c276),p(0xd,_0x59d638(nt))],Dt);var pr=Object[_0x7011be(0x38b)],vr=Object['getOwnPropertyDescriptor'],Ir=(_0x42728b,_0x35be38,_0x1ea2ff,_0x1bd345)=>{const _0x3d9160=_0x7011be;for(var _0x591be2=_0x1bd345>0x1?void 0x0:_0x1bd345?vr(_0x35be38,_0x1ea2ff):_0x35be38,_0x13d701=_0x42728b[_0x3d9160(0x2db)]-0x1,_0x57d463;_0x13d701>=0x0;_0x13d701--)(_0x57d463=_0x42728b[_0x13d701])&&(_0x591be2=(_0x1bd345?_0x57d463(_0x35be38,_0x1ea2ff,_0x591be2):_0x57d463(_0x591be2))||_0x591be2);return _0x1bd345&&_0x591be2&&pr(_0x35be38,_0x1ea2ff,_0x591be2),_0x591be2;},dt=(_0x31a3f5,_0x2c13b8)=>(_0x5a4a6e,_0x55e8a0)=>_0x2c13b8(_0x5a4a6e,_0x55e8a0,_0x31a3f5);let Ae=class extends _0x101c13{constructor(_0x50fe5d,_0x110343,_0x206214){const _0x394ed3=_0x7011be;super(),l(this,_0x394ed3(0x2f4),new Map()),l(this,_0x394ed3(0x40b),new _0x4339d0()),(this[_0x394ed3(0x47c)]=_0x50fe5d,this['_collabSessionService']=_0x110343,this[_0x394ed3(0x2c3)]=_0x206214,this[_0x394ed3(0x1f6)]());}[_0x7011be(0x326)](){const _0x2b2c0d=_0x7011be;super[_0x2b2c0d(0x326)](),this[_0x2b2c0d(0x2f4)][_0x2b2c0d(0x429)](_0x520540=>_0x520540[_0x2b2c0d(0x326)]()),this['_entities'][_0x2b2c0d(0x2d3)]();}[_0x7011be(0x37e)](_0x4e95be){const _0x30abcf=_0x7011be;var _0x3c2970;return(_0x3c2970=this[_0x30abcf(0x2f4)][_0x30abcf(0x3be)](_0x4e95be))!=null?_0x3c2970:null;}['getCollabEntity$'](_0x200db5){const _0x25da69=_0x7011be,_0x34a6c3=this[_0x25da69(0x37e)](_0x200db5);return _0x34a6c3?_0x1f8bdc(_0x34a6c3):this['_entityInit$'][_0x25da69(0x185)](_0x273b1e(_0xc9fb91=>_0xc9fb91[_0x25da69(0x363)]===_0x200db5));}[_0x7011be(0x1f6)](){const _0x4fe7ce=_0x7011be;this[_0x4fe7ce(0x2c3)][_0x4fe7ce(0x4c7)](_0x223004[_0x4fe7ce(0x42d)])[_0x4fe7ce(0x185)](_0x25a74d(this['dispose$']),_0x2e63b2(0x10))[_0x4fe7ce(0x376)](async _0x4fae28=>{const _0x274150=_0x4fe7ce,_0x27d202=_0x4fae28[_0x274150(0x3bf)](),_0x577907=await this['_startCollaboration'](_0x27d202,H[_0x274150(0x42d)]);this[_0x274150(0x2f4)]['set'](_0x27d202,_0x577907);}),this[_0x4fe7ce(0x2c3)][_0x4fe7ce(0x4c7)](_0x223004['UNIVER_DOC'])[_0x4fe7ce(0x185)](_0x25a74d(this[_0x4fe7ce(0x3f3)]),_0x2e63b2(0x10))['pipe'](_0x273b1e(_0x47d69d=>!_0x47d69d['getUnitId']()[_0x4fe7ce(0x2e1)]('__')))[_0x4fe7ce(0x376)](async _0x36cfc6=>{const _0x1c3335=_0x4fe7ce,_0x2537d6=_0x36cfc6['getUnitId'](),_0x476e19=await this[_0x1c3335(0x269)](_0x2537d6,H[_0x1c3335(0x1a0)]);this[_0x1c3335(0x2f4)][_0x1c3335(0x2e0)](_0x2537d6,_0x476e19);}),_0x2b5f15(this[_0x4fe7ce(0x2c3)][_0x4fe7ce(0x2fc)](_0x223004[_0x4fe7ce(0x42d)]),this['_univerInstanceService'][_0x4fe7ce(0x2fc)](_0x223004['UNIVER_DOC']))[_0x4fe7ce(0x185)](_0x25a74d(this[_0x4fe7ce(0x3f3)]))[_0x4fe7ce(0x376)](_0x16a61c=>{const _0x767be2=_0x4fe7ce,_0x56bcda=_0x16a61c[_0x767be2(0x3bf)](),_0x314681=this[_0x767be2(0x2f4)][_0x767be2(0x3be)](_0x56bcda);_0x314681&&(_0x314681[_0x767be2(0x326)](),this['_entities'][_0x767be2(0x415)](_0x56bcda));});}async[_0x7011be(0x269)](_0x40aeb3,_0x46c25f){const _0x10acfc=_0x7011be,_0x29ebbe=await this[_0x10acfc(0x197)]['requireSession'](_0x40aeb3),_0x30ca22=this[_0x10acfc(0x47c)][_0x10acfc(0x1cb)](this[_0x10acfc(0x44f)](_0x46c25f),_0x40aeb3,_0x46c25f,_0x29ebbe);return await _0x30ca22[_0x10acfc(0x395)](),this['_entityInit$'][_0x10acfc(0x40f)](_0x30ca22),_0x30ca22;}[_0x7011be(0x44f)](_0x146ac6){const _0x59684a=_0x7011be;switch(_0x146ac6){case H[_0x59684a(0x1a0)]:return Ot;case H[_0x59684a(0x42d)]:return Dt;default:throw new Error(_0x59684a(0x452)+_0x146ac6);}}};Ae=Ir([dt(0x0,_0x4f6f98(_0x8f002c)),dt(0x1,_0x4f6f98(ce)),dt(0x2,_0x29e7a7)],Ae);const us=[_0x7011be(0x3a5),_0x7011be(0x2da),_0x7011be(0x30d),'red300',_0x7011be(0x382),_0x7011be(0x2fd)];class Gt extends _0xd7d44c{constructor(){const _0x35d845=_0x7011be;super(...arguments),l(this,'_assignedColors',new Map()),l(this,_0x35d845(0x32f),0x0);}[_0x7011be(0x3b1)](_0x5ed1c3){const _0x579b4f=_0x7011be;if(this[_0x579b4f(0x41d)][_0x579b4f(0x436)](_0x5ed1c3))return this[_0x579b4f(0x41d)]['get'](_0x5ed1c3);const _0x42c46e=us[this[_0x579b4f(0x32f)]];return this[_0x579b4f(0x32f)]=(this[_0x579b4f(0x32f)]+0x1)%us[_0x579b4f(0x2db)],this[_0x579b4f(0x41d)]['set'](_0x5ed1c3,_0x42c46e),_0x42c46e;}}var Er=Object[_0x7011be(0x38b)],Cr=Object[_0x7011be(0x24f)],br=(_0x1d2c27,_0x560b1f,_0x4dbedb,_0x520479)=>{const _0x2f59bd=_0x7011be;for(var _0x3a4b57=_0x520479>0x1?void 0x0:_0x520479?Cr(_0x560b1f,_0x4dbedb):_0x560b1f,_0x504b22=_0x1d2c27[_0x2f59bd(0x2db)]-0x1,_0x29e355;_0x504b22>=0x0;_0x504b22--)(_0x29e355=_0x1d2c27[_0x504b22])&&(_0x3a4b57=(_0x520479?_0x29e355(_0x560b1f,_0x4dbedb,_0x3a4b57):_0x29e355(_0x3a4b57))||_0x3a4b57);return _0x520479&&_0x3a4b57&&Er(_0x560b1f,_0x4dbedb,_0x3a4b57),_0x3a4b57;},fe=(_0x1ae2b7,_0x427dd8)=>(_0x47b3e0,_0x566158)=>_0x427dd8(_0x47b3e0,_0x566158,_0x1ae2b7);const Tr=0x12c,Rr=0x64,Or=()=>{let _0x5a9637=[],_0x555b84=!0x1;return _0x545dc1=>{const _0x5d2bdd=_0x312b;_0x5a9637[_0x5d2bdd(0x1c4)](_0x545dc1),_0x555b84||(_0x555b84=!0x0,setTimeout(()=>{const _0x473889=_0x5d2bdd;_0x5a9637[_0x473889(0x429)](_0x43f395=>_0x43f395()),_0x5a9637=[],_0x555b84=!0x1;}));};};let wt=class extends _0x101c13{constructor(_0x39dcbf,_0x21acb1,_0x422b2b,_0x2f2d6f,_0x1b912c,_0x5271b2,_0x458187,_0x42adc9){const _0x1d4a15=_0x7011be;super(),l(this,_0x1d4a15(0x1ed),!0x1),l(this,_0x1d4a15(0x1f6),!0x1),l(this,_0x1d4a15(0x3b3),new _0x2048f5(new Map())),l(this,'cursorInfo$',this[_0x1d4a15(0x3b3)]['asObservable']()),l(this,'_roomMembers$',new _0x2048f5([])),l(this,_0x1d4a15(0x22f),this[_0x1d4a15(0x2b8)]['pipe'](_0x3d52b8(Tr))),l(this,_0x1d4a15(0x31c),_0x3c0cdf((_0x1c6ff5,_0x822894)=>{const _0x17fe56=_0x1d4a15,_0x2b31b5={'eventID':_0x3edc6c['UPDATE_CURSOR'],'data':{'unitID':this[_0x17fe56(0x363)],'memberID':this[_0x17fe56(0x348)][_0x17fe56(0x34b)](),'selection':_0x26b6ee(_0x1c6ff5,_0x822894['range'])}};this[_0x17fe56(0x348)][_0x17fe56(0x4bb)](_0x2b31b5,this[_0x17fe56(0x363)]);},Rr)),(this[_0x1d4a15(0x363)]=_0x39dcbf,this[_0x1d4a15(0x348)]=_0x21acb1,this[_0x1d4a15(0x47c)]=_0x422b2b,this[_0x1d4a15(0x23e)]=_0x2f2d6f,this[_0x1d4a15(0x328)]=_0x1b912c,this[_0x1d4a15(0x2c3)]=_0x5271b2,this['_commandService']=_0x458187,this['_refRangeService']=_0x42adc9);}get[_0x7011be(0x47d)](){const _0x35adcb=_0x7011be;return this[_0x35adcb(0x3b3)][_0x35adcb(0x2d5)]();}get[_0x7011be(0x278)](){const _0x8c21cf=_0x7011be;return this[_0x8c21cf(0x2b8)][_0x8c21cf(0x2d5)]();}[_0x7011be(0x326)](){const _0x3cd4f6=_0x7011be;super[_0x3cd4f6(0x326)](),this[_0x3cd4f6(0x3b3)]['next'](new Map()),this[_0x3cd4f6(0x3b3)][_0x3cd4f6(0x4e0)](),this[_0x3cd4f6(0x2b8)]['next']([]),this['_roomMembers$']['complete']();}[_0x7011be(0x395)](){const _0x4245de=_0x7011be;this[_0x4245de(0x1f6)]||(this[_0x4245de(0x1f6)]=!0x0,this[_0x4245de(0x348)][_0x4245de(0x364)]['pipe'](_0x25a74d(this[_0x4245de(0x3f3)]))['subscribe'](_0x21253c=>{const _0x2b918c=_0x4245de;_0x21253c===G[_0x2b918c(0x493)]?this[_0x2b918c(0x2d0)]():this['_toggleOffline']();}),this[_0x4245de(0x348)][_0x4245de(0x27f)][_0x4245de(0x185)](_0x25a74d(this['dispose$']))[_0x4245de(0x376)](_0xeb587e=>{const _0x16f254=_0x4245de,_0x25f0c1=_0xeb587e['eventID'];_0x25f0c1===_0x3edc6c[_0x16f254(0x17b)]&&this[_0x16f254(0x39d)](_0xeb587e),_0x25f0c1===_0x3edc6c['USERS_LEAVE']&&this[_0x16f254(0x1c1)](_0xeb587e);}),this[_0x4245de(0x1f8)](),this[_0x4245de(0x26d)](this[_0x4245de(0x2c6)][_0x4245de(0x2b4)](_0x1d644c=>{const _0x14a9c6=_0x4245de;if(this[_0x14a9c6(0x1ed)]&&_0x1d644c['id']===_0x49df62['id']&&_0x1d644c[_0x14a9c6(0x329)]['unitId']===this[_0x14a9c6(0x363)]){const _0x27c7de=_0x1d644c[_0x14a9c6(0x329)];this[_0x14a9c6(0x31c)](_0x27c7de[_0x14a9c6(0x30f)],_0x27c7de[_0x14a9c6(0x39b)][0x0]);}})));}[_0x7011be(0x39d)](_0x567dbc){const _0x158024=_0x7011be;var _0x65041d,_0x4d464;const {memberID:_0x515abc,selection:_0x151ec2}=_0x567dbc['data'],{sheetName:_0x1cce09,range:_0x293c9a}=_0x1f6a7e(_0x151ec2),_0x2b41a5={'name':(_0x4d464=(_0x65041d=this['_memberService'][_0x158024(0x2a1)](this[_0x158024(0x363)],_0x515abc))==null?void 0x0:_0x65041d[_0x158024(0x208)])!=null?_0x4d464:_0x158024(0x23a),'range':this[_0x158024(0x20b)](_0x1cce09,_0x293c9a),'sheetID':_0x1cce09,'color':this[_0x158024(0x23e)]['assignAColorForMemberID'](_0x515abc),'selection':_0x151ec2},_0x578bad=this['cursorInfo'];_0x578bad[_0x158024(0x2e0)](_0x515abc,_0x2b41a5),this[_0x158024(0x3b3)][_0x158024(0x40f)](_0x578bad);}[_0x7011be(0x1c1)](_0x8e9dfa){const _0x2aa4f9=_0x7011be,{memberID:_0x2fc3cd}=_0x8e9dfa[_0x2aa4f9(0x253)],_0x1293ac=this[_0x2aa4f9(0x47d)];_0x1293ac[_0x2aa4f9(0x415)](_0x2fc3cd),this['_cursorInfo$'][_0x2aa4f9(0x40f)](_0x1293ac);}[_0x7011be(0x20b)](_0x9c4781,_0xffc67){const _0x5ab22a=_0x7011be;var _0x527839,_0x18654b;const _0x270554=(_0x18654b=(_0x527839=this['_univerInstanceService']['getUniverSheetInstance'](this[_0x5ab22a(0x363)]))==null?void 0x0:_0x527839[_0x5ab22a(0x391)](_0x9c4781))==null?void 0x0:_0x18654b[_0x5ab22a(0x2d1)]();return(_0x270554==null?void 0x0:_0x270554[_0x5ab22a(0x1f4)](_0x33d544=>_0x32f126['contains'](_0x33d544,_0xffc67)))||_0xffc67;}['_onRefRangeChange'](){const _0x1ed77d=_0x7011be,_0x24262c=new _0x45d03e(),_0x2dbef3=Or(),_0x3ff0df=()=>{const _0x229f59=_0x312b;_0x24262c['dispose']();const _0x5a5a84=(_0x186f66,_0x1f6e01,_0x4c09ca,_0x740abe)=>{const _0xb1f2dd=_0x312b;let _0x4527e9=[];switch(_0x186f66['id']){case _0x217673[_0xb1f2dd(0x1ee)]:{_0x4527e9=_0x38a975(_0x186f66,_0x740abe);break;}case _0x217673['DeleteRangeMoveUpCommandId']:{_0x4527e9=_0x18bdab(_0x186f66,_0x740abe);break;}case _0x217673['InsertColCommandId']:{_0x4527e9=_0x3ad79c(_0x186f66,_0x740abe);break;}case _0x217673['InsertRangeMoveDownCommandId']:{_0x4527e9=_0x418883(_0x186f66,_0x740abe);break;}case _0x217673['InsertRangeMoveRightCommandId']:{_0x4527e9=_0x393880(_0x186f66,_0x740abe);break;}case _0x217673[_0xb1f2dd(0x327)]:{_0x4527e9=_0x468758(_0x186f66,_0x740abe);break;}case _0x217673['MoveRangeCommandId']:{_0x4527e9=_0x35b8eb(_0x186f66,_0x740abe);break;}case _0x217673[_0xb1f2dd(0x2a2)]:{_0x4527e9=_0x554a8c(_0x186f66,_0x740abe);break;}case _0x217673[_0xb1f2dd(0x2cc)]:{_0x4527e9=_0x57f03f(_0x186f66,_0x740abe);break;}}const _0x36a6f1=_0x140a5c(_0x4527e9,_0x740abe),_0x34c313=this['cursorInfo'][_0xb1f2dd(0x3be)](_0x1f6e01);if(_0x34c313&&_0x36a6f1){const _0x295c62={..._0x34c313,'range':_0x36a6f1};this['cursorInfo']['set'](_0x1f6e01,_0x295c62),_0x2dbef3(()=>{const _0x307202=_0xb1f2dd,_0x872449=this['_refRangeService'][_0x307202(0x36e)](_0x36a6f1,_0x2dd881=>(_0x872449[_0x307202(0x326)](),_0x5a5a84(_0x2dd881,_0x1f6e01,_0x4c09ca,_0x36a6f1)));_0x24262c[_0x307202(0x3cb)](_0x872449);});}return{'redos':[],'undos':[]};};this[_0x229f59(0x47d)][_0x229f59(0x429)]((_0x2fd1b3,_0x1e5947)=>{const _0x4cb477=_0x229f59,{range:_0x49a543,sheetID:_0x3c839b}=_0x2fd1b3,_0x888a9=this[_0x4cb477(0x3e0)][_0x4cb477(0x36e)](_0x49a543,_0x3897b7=>(_0x888a9[_0x4cb477(0x326)](),_0x5a5a84(_0x3897b7,_0x1e5947,_0x3c839b,_0x49a543)));_0x24262c[_0x4cb477(0x3cb)](_0x888a9);});};this['disposeWithMe'](_0x4b6fbe(this[_0x1ed77d(0x3b3)][_0x1ed77d(0x376)](()=>{_0x3ff0df();})));}[_0x7011be(0x2d0)](){const _0x573aaa=_0x7011be;var _0x4e09ae,_0x5a70dd;if(this[_0x573aaa(0x1ed)]=!0x0,((_0x4e09ae=this['_univerInstanceService'][_0x573aaa(0x223)]())==null?void 0x0:_0x4e09ae[_0x573aaa(0x3bf)]())!==this[_0x573aaa(0x363)])return;const _0x4e38a5=(_0x5a70dd=this[_0x573aaa(0x47c)][_0x573aaa(0x3be)](_0x23d40e)['getCurrentSelections']())==null?void 0x0:_0x5a70dd[0x0],_0x3281ae=this[_0x573aaa(0x2c3)]['getCurrentUnitForType'](_0x223004[_0x573aaa(0x42d)])[_0x573aaa(0x23c)]();_0x4e38a5&&_0x3281ae&&this[_0x573aaa(0x31c)](_0x3281ae['getSheetId'](),_0x4e38a5);}[_0x7011be(0x39e)](){const _0x1170bf=_0x7011be;this[_0x1170bf(0x1ed)]=!0x1;}};wt=br([fe(0x2,_0x4f6f98(_0x8f002c)),fe(0x3,_0x4f6f98(Gt)),fe(0x4,_0x4f6f98(ae)),fe(0x5,_0x29e7a7),fe(0x6,_0x2cea1d),fe(0x7,_0x4f6f98(_0x5f205b))],wt);var Dr=Object[_0x7011be(0x38b)],wr=Object[_0x7011be(0x24f)],Pr=(_0x3000fd,_0x30b5d9,_0x1a3e06,_0xf81253)=>{const _0x51eef7=_0x7011be;for(var _0x5d4445=_0xf81253>0x1?void 0x0:_0xf81253?wr(_0x30b5d9,_0x1a3e06):_0x30b5d9,_0x3db3f7=_0x3000fd[_0x51eef7(0x2db)]-0x1,_0x55a7ae;_0x3db3f7>=0x0;_0x3db3f7--)(_0x55a7ae=_0x3000fd[_0x3db3f7])&&(_0x5d4445=(_0xf81253?_0x55a7ae(_0x30b5d9,_0x1a3e06,_0x5d4445):_0x55a7ae(_0x5d4445))||_0x5d4445);return _0xf81253&&_0x5d4445&&Dr(_0x30b5d9,_0x1a3e06,_0x5d4445),_0x5d4445;},ie=(_0x51b8b4,_0x3e22fd)=>(_0x4acac7,_0x273c99)=>_0x3e22fd(_0x4acac7,_0x273c99,_0x51b8b4);const yr=0x12c,Nr=0x64;let Pt=class extends _0x101c13{constructor(_0x51e1d5,_0x417451,_0x2dafad,_0xebbdef,_0x4e7ab6,_0x43c4d2,_0x4cc1d7,_0x2f29cb,_0x32308d){const _0x138b5a=_0x7011be;super(),l(this,_0x138b5a(0x1ed),!0x1),l(this,'_init',!0x1),l(this,_0x138b5a(0x3b3),new _0x2048f5(new Map())),l(this,'cursorInfo$',this[_0x138b5a(0x3b3)][_0x138b5a(0x1f7)]()),l(this,'_roomMembers$',new _0x2048f5([])),l(this,_0x138b5a(0x22f),this['_roomMembers$']['pipe'](_0x3d52b8(yr))),l(this,_0x138b5a(0x31c),_0x3c0cdf(_0x26656d=>{const _0x9bae8f=_0x138b5a,_0xb8ad6b={'eventID':_0x3edc6c['UPDATE_CURSOR'],'data':{'unitID':this[_0x9bae8f(0x363)],'memberID':this[_0x9bae8f(0x348)]['getMemberID'](),'selection':Hs(_0x26656d)}};this[_0x9bae8f(0x348)]['send'](_0xb8ad6b,this[_0x9bae8f(0x363)]);},Nr)),(this[_0x138b5a(0x363)]=_0x51e1d5,this[_0x138b5a(0x348)]=_0x417451,this[_0x138b5a(0x47c)]=_0x2dafad,this[_0x138b5a(0x23e)]=_0xebbdef,this[_0x138b5a(0x328)]=_0x4e7ab6,this['_syncEditingCollabCursorService']=_0x43c4d2,this['_transformService']=_0x4cc1d7,this[_0x138b5a(0x2c3)]=_0x2f29cb,this['_commandService']=_0x32308d);}get['cursorInfo'](){const _0x244b05=_0x7011be;return this[_0x244b05(0x3b3)]['getValue']();}get['roomMembers'](){const _0x465bc3=_0x7011be;return this['_roomMembers$'][_0x465bc3(0x2d5)]();}[_0x7011be(0x326)](){const _0x3816c5=_0x7011be;super[_0x3816c5(0x326)](),this[_0x3816c5(0x3b3)][_0x3816c5(0x40f)](new Map()),this[_0x3816c5(0x3b3)][_0x3816c5(0x4e0)](),this[_0x3816c5(0x2b8)][_0x3816c5(0x40f)]([]),this[_0x3816c5(0x2b8)][_0x3816c5(0x4e0)]();}[_0x7011be(0x395)](){const _0x300a4f=_0x7011be;this[_0x300a4f(0x1f6)]||(this[_0x300a4f(0x1f6)]=!0x0,this['_session'][_0x300a4f(0x364)][_0x300a4f(0x185)](_0x25a74d(this['dispose$']))[_0x300a4f(0x376)](_0x56ad2c=>{const _0x31b522=_0x300a4f;_0x56ad2c===G[_0x31b522(0x493)]?this[_0x31b522(0x2d0)]():this[_0x31b522(0x39e)]();}),this[_0x300a4f(0x348)][_0x300a4f(0x27f)][_0x300a4f(0x185)](_0x25a74d(this[_0x300a4f(0x3f3)]))[_0x300a4f(0x376)](_0x16dba5=>{const _0x4d3efe=_0x300a4f,_0x26c837=_0x16dba5[_0x4d3efe(0x2fb)];_0x26c837===_0x3edc6c[_0x4d3efe(0x17b)]&&this['_onCursorUpdate'](_0x16dba5),_0x26c837===_0x3edc6c['USERS_LEAVE']&&this[_0x4d3efe(0x1c1)](_0x16dba5);}),this['disposeWithMe'](this[_0x300a4f(0x2c6)][_0x300a4f(0x2b4)](_0x21756e=>{const _0x997de2=_0x300a4f,_0x241eec=_0x21756e[_0x997de2(0x329)];_0x241eec!=null&&this[_0x997de2(0x1ed)]&&_0x21756e['id']===_0x30bff4['id']&&_0x241eec[_0x997de2(0x36b)]===this['unitID']&&_0x241eec[_0x997de2(0x182)]===!0x1&&this[_0x997de2(0x31c)](_0x241eec[_0x997de2(0x484)]);})),this['_syncEditingCollabCursorService'][_0x300a4f(0x239)][_0x300a4f(0x185)](_0x25a74d(this[_0x300a4f(0x3f3)]))[_0x300a4f(0x376)](_0x1ca43a=>{const _0x406140=_0x300a4f;if((_0x1ca43a==null?void 0x0:_0x1ca43a['unitID'])!==this['unitID'])return;const _0xd80e89={'eventID':_0x3edc6c[_0x406140(0x17b)],'data':_0x1ca43a};this['_onCursorUpdate'](_0xd80e89);}),this['disposeWithMe'](this[_0x300a4f(0x2c6)][_0x300a4f(0x2b4)](_0x1c0455=>{const _0x3a0551=_0x300a4f;if(_0x1c0455[_0x3a0551(0x329)]==null)return;const _0x5a120d=_0x1c0455[_0x3a0551(0x329)];if(_0x1c0455['id']!==_0x565f33['id']||_0x5a120d[_0x3a0551(0x36b)]!==this[_0x3a0551(0x363)])return;const _0xf9a867={'id':_0x3a0551(0x450),'params':_0x5a120d},_0x1ffc22=this[_0x3a0551(0x47d)];for(const [_0x14eae3,_0x21c824]of _0x1ffc22){const _0x25e9a0={'id':_0x3a0551(0x450),'params':{'unitId':this[_0x3a0551(0x363)],'actions':null,'textRanges':_0x21c824['ranges']}},_0xb2fa32=this[_0x3a0551(0x26f)]['transformMutation'](_0xf9a867,_0x25e9a0,!0x1);if(_0x1870ea(_0xb2fa32))throw _0xb2fa32[_0x3a0551(0x174)];_0x1ffc22[_0x3a0551(0x2e0)](_0x14eae3,{..._0x21c824,'ranges':_0xb2fa32['m2Prime'][_0x3a0551(0x329)][_0x3a0551(0x1a9)]});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x1ffc22);});})));}[_0x7011be(0x39d)](_0x54f049){const _0x36c4b0=_0x7011be;var _0x441595,_0x306f99;const {memberID:_0x3e3cc6,selection:_0xa8000b}=_0x54f049['data'],_0x8edf7e=ar(_0xa8000b),_0x675afe=(_0x306f99=(_0x441595=this[_0x36c4b0(0x328)]['getMember'](this[_0x36c4b0(0x363)],_0x3e3cc6))==null?void 0x0:_0x441595['name'])!=null?_0x306f99:_0x36c4b0(0x23a),_0xa52a45={'color':this[_0x36c4b0(0x23e)][_0x36c4b0(0x3b1)](_0x3e3cc6),'name':_0x675afe,'ranges':_0x8edf7e},_0x1c6f8b=this[_0x36c4b0(0x47d)];_0x1c6f8b[_0x36c4b0(0x2e0)](_0x3e3cc6,_0xa52a45),this[_0x36c4b0(0x3b3)][_0x36c4b0(0x40f)](_0x1c6f8b);}[_0x7011be(0x1c1)](_0x503301){const _0x3d1147=_0x7011be,{memberID:_0x46ae3a}=_0x503301['data'],_0x5dde61=this['cursorInfo'];_0x5dde61[_0x3d1147(0x415)](_0x46ae3a),this[_0x3d1147(0x3b3)][_0x3d1147(0x40f)](_0x5dde61);}['_toggleOnline'](){const _0x48a9de=_0x7011be;var _0x174e08;if(this[_0x48a9de(0x1ed)]=!0x0,((_0x174e08=this[_0x48a9de(0x2c3)][_0x48a9de(0x223)]())==null?void 0x0:_0x174e08[_0x48a9de(0x3bf)]())!==this[_0x48a9de(0x363)])return;const _0x43933a=this[_0x48a9de(0x47c)][_0x48a9de(0x3be)](_0x1198ee)[_0x48a9de(0x3c7)]();Array[_0x48a9de(0x383)](_0x43933a)&&_0x43933a[_0x48a9de(0x2db)]>0x0&&this[_0x48a9de(0x31c)](_0x43933a);}[_0x7011be(0x39e)](){const _0x2dd987=_0x7011be;this[_0x2dd987(0x1ed)]=!0x1;}};Pt=Pr([ie(0x2,_0x4f6f98(_0x8f002c)),ie(0x3,_0x4f6f98(Gt)),ie(0x4,_0x4f6f98(ae)),ie(0x5,_0x4f6f98(Ft)),ie(0x6,_0x49c306),ie(0x7,_0x29e7a7),ie(0x8,_0x2cea1d)],Pt);var Ur=Object[_0x7011be(0x38b)],Mr=Object[_0x7011be(0x24f)],Ar=(_0x52c3f7,_0x543b04,_0x3d823d,_0x334b11)=>{for(var _0x5713dd=_0x334b11>0x1?void 0x0:_0x334b11?Mr(_0x543b04,_0x3d823d):_0x543b04,_0x4c81a4=_0x52c3f7['length']-0x1,_0x466ea5;_0x4c81a4>=0x0;_0x4c81a4--)(_0x466ea5=_0x52c3f7[_0x4c81a4])&&(_0x5713dd=(_0x334b11?_0x466ea5(_0x543b04,_0x3d823d,_0x5713dd):_0x466ea5(_0x5713dd))||_0x5713dd);return _0x334b11&&_0x5713dd&&Ur(_0x543b04,_0x3d823d,_0x5713dd),_0x5713dd;},ft=(_0x15b795,_0xf2af68)=>(_0x2d928f,_0x59fce0)=>_0xf2af68(_0x2d928f,_0x59fce0,_0x15b795);let ge=class extends _0x101c13{constructor(_0x2b26eb,_0x106919,_0x29d054){const _0x579db0=_0x7011be;super(),l(this,_0x579db0(0x2f4),new Map()),l(this,_0x579db0(0x40b),new _0x4339d0()),(this['_univerInstanceService']=_0x2b26eb,this[_0x579db0(0x47c)]=_0x106919,this['_collabSessionService']=_0x29d054,this[_0x579db0(0x1f6)]());}[_0x7011be(0x326)](){const _0x5841ef=_0x7011be;super['dispose'](),this['_entityInit$'][_0x5841ef(0x4e0)](),this[_0x5841ef(0x2f4)]['forEach'](_0x25b343=>_0x25b343[_0x5841ef(0x326)]());}[_0x7011be(0x321)](_0x144187){const _0x5838fb=_0x7011be;return this['_entities'][_0x5838fb(0x436)](_0x144187)?this['_entities']['get'](_0x144187)[_0x5838fb(0x427)]:this[_0x5838fb(0x40b)][_0x5838fb(0x185)](_0x1e07a2(_0x2e797b=>_0x2e797b[_0x5838fb(0x363)]===_0x144187),_0x396bbc(_0xbbff10=>_0xbbff10[_0x5838fb(0x427)]));}[_0x7011be(0x1f6)](){const _0x413b82=_0x7011be;this[_0x413b82(0x2c3)][_0x413b82(0x4c7)](_0x223004[_0x413b82(0x42d)])['pipe'](_0x25a74d(this[_0x413b82(0x3f3)]))[_0x413b82(0x376)](async _0x287bf7=>{const _0xd6de53=_0x413b82,_0x81220e=_0x287bf7[_0xd6de53(0x3bf)](),_0x470c74=await this[_0xd6de53(0x380)](_0x81220e);this[_0xd6de53(0x40b)][_0xd6de53(0x40f)](_0x470c74),this[_0xd6de53(0x2f4)][_0xd6de53(0x2e0)](_0x81220e,_0x470c74);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x223004[_0x413b82(0x1a0)])[_0x413b82(0x185)](_0x25a74d(this['dispose$']))['pipe'](_0x1e07a2(_0x5f5812=>!_0x5f5812[_0x413b82(0x3bf)]()[_0x413b82(0x2e1)]('__')))[_0x413b82(0x376)](async _0x1d3171=>{const _0x1ff4df=_0x413b82,_0x5d4942=_0x1d3171['getUnitId'](),_0x2ae921=await this[_0x1ff4df(0x4ae)](_0x5d4942);this[_0x1ff4df(0x40b)][_0x1ff4df(0x40f)](_0x2ae921),this[_0x1ff4df(0x2f4)]['set'](_0x5d4942,_0x2ae921);}),_0x2b5f15(this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x223004[_0x413b82(0x1a0)]),this[_0x413b82(0x2c3)][_0x413b82(0x2fc)](_0x223004[_0x413b82(0x42d)]))[_0x413b82(0x185)](_0x25a74d(this['dispose$']))[_0x413b82(0x376)](_0x1028b7=>{const _0x15209c=_0x413b82,_0xbdc25e=_0x1028b7[_0x15209c(0x3bf)](),_0x83e901=this[_0x15209c(0x2f4)][_0x15209c(0x3be)](_0xbdc25e);_0x83e901&&(_0x83e901['dispose'](),this[_0x15209c(0x2f4)][_0x15209c(0x415)](_0xbdc25e));});}async[_0x7011be(0x380)](_0x3e186c){const _0x331c52=_0x7011be,_0xae1e21=await this['_collabSessionService']['requireSession'](_0x3e186c),_0x51636a=this[_0x331c52(0x47c)]['createInstance'](wt,_0x3e186c,_0xae1e21);return _0x51636a[_0x331c52(0x395)](),_0x51636a;}async['_startDocCollabCursor'](_0x3d3f5f){const _0x1a90b3=_0x7011be,_0x296c7a=await this['_collabSessionService'][_0x1a90b3(0x1d6)](_0x3d3f5f),_0x46bd8d=this[_0x1a90b3(0x47c)][_0x1a90b3(0x1cb)](Pt,_0x3d3f5f,_0x296c7a);return _0x46bd8d[_0x1a90b3(0x395)](),_0x46bd8d;}};ge=Ar([_0x4a01a1(_0x268ec2[_0x7011be(0x438)],ge),ft(0x0,_0x29e7a7),ft(0x1,_0x4f6f98(_0x8f002c)),ft(0x2,_0x4f6f98(ce))],ge);const Le=0x14,ds=0xc8,mt=0x4,Lr=0x5;function $r(_0x199817,_0x547a19){const _0x422f7f=_0x7011be;let {radius:_0x58ce47,width:_0x5c4abf,height:_0xa28665}=_0x547a19;_0x58ce47=_0x58ce47!=null?_0x58ce47:0x0,_0x5c4abf=_0x5c4abf!=null?_0x5c4abf:0x1e,_0xa28665=_0xa28665!=null?_0xa28665:0x1e;let _0x570c55=0x0,_0x40a488=0x0,_0x4eff7c=0x0;_0x570c55=_0x40a488=_0x4eff7c=Math[_0x422f7f(0x1ba)](_0x58ce47,_0x5c4abf/0x2,_0xa28665/0x2),_0x199817['beginPath'](),_0x199817[_0x422f7f(0x3ea)](_0x570c55,0x0),_0x199817['lineTo'](_0x5c4abf-_0x40a488,0x0),_0x199817[_0x422f7f(0x198)](_0x5c4abf-_0x40a488,_0x40a488,_0x40a488,Math['PI']*0x3/0x2,0x0,!0x1),_0x199817['lineTo'](_0x5c4abf,_0xa28665-_0x4eff7c),_0x199817[_0x422f7f(0x198)](_0x5c4abf-_0x4eff7c,_0xa28665-_0x4eff7c,_0x4eff7c,0x0,Math['PI']/0x2,!0x1),_0x199817[_0x422f7f(0x30c)](0x0,_0xa28665),_0x199817[_0x422f7f(0x30c)](0x0,_0x570c55),_0x199817[_0x422f7f(0x198)](_0x570c55,_0x570c55,_0x570c55,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x199817['closePath'](),_0x547a19['fill']&&(_0x199817[_0x422f7f(0x189)](),_0x199817[_0x422f7f(0x254)]=_0x547a19[_0x422f7f(0x3b6)],_0x547a19[_0x422f7f(0x4c0)]==='evenodd'?_0x199817[_0x422f7f(0x3b6)](_0x422f7f(0x2d9)):_0x199817['fill'](),_0x199817[_0x422f7f(0x19e)]());}class rt extends _0x1390df{constructor(_0x3888a9,_0x28283e){const _0x31c14a=_0x7011be;super(_0x3888a9,_0x28283e),l(this,_0x31c14a(0x18d)),l(this,_0x31c14a(0x1f0)),(this['color']=_0x28283e==null?void 0x0:_0x28283e[_0x31c14a(0x18d)],this[_0x31c14a(0x1f0)]=_0x28283e==null?void 0x0:_0x28283e[_0x31c14a(0x1f0)]);}static[_0x7011be(0x221)](_0x2e3de9,_0x2a36b0){const _0x5eda9a=_0x7011be,{text:_0x464526,color:_0x2288ce}=_0x2a36b0;_0x2e3de9[_0x5eda9a(0x189)](),_0x2e3de9[_0x5eda9a(0x1dd)]=_0x5eda9a(0x3ce);const _0x5b8715=_0x2e3de9['measureText'](_0x464526)[_0x5eda9a(0x467)],_0x18660e=Math[_0x5eda9a(0x1ba)](_0x5b8715+0x2*mt,ds);$r(_0x2e3de9,{'height':Le,'radius':0x4,'width':_0x18660e,'fill':_0x2288ce,'evented':!0x1}),_0x2e3de9[_0x5eda9a(0x254)]=_0x5eda9a(0x21f);const _0x41a9b7=mt,_0x1533d8=Le-Lr,_0x3fe59c=ds-0x2*mt;if(_0x5b8715>_0x3fe59c){let _0x54c21f='',_0x59e3fd=0x0;for(const _0x3a1d10 of _0x464526){const _0x2c113f=_0x2e3de9[_0x5eda9a(0x339)](_0x3a1d10)[_0x5eda9a(0x467)];if(_0x59e3fd+_0x2c113f<=_0x3fe59c-_0x2e3de9['measureText'](_0x5eda9a(0x28e))[_0x5eda9a(0x467)])_0x54c21f+=_0x3a1d10,_0x59e3fd+=_0x2c113f;else{_0x54c21f+='...';break;}}_0x2e3de9[_0x5eda9a(0x175)](_0x54c21f,_0x41a9b7,_0x1533d8);}else _0x2e3de9[_0x5eda9a(0x175)](_0x464526,_0x41a9b7,_0x1533d8);_0x2e3de9[_0x5eda9a(0x19e)]();}[_0x7011be(0x19b)](_0x4f1170){rt['drawWith'](_0x4f1170,this);}}const gt='collab-text-anchor-',jr=_0x7011be(0x267),xr='collab-rect-range-',De=0x6,Hr=1.5,St=0x4,kr=1.5,Br=_0x7011be(0x37d);class fs{constructor(_0x5c1335,_0x228461,_0xed8b20,_0x21c968){const _0x278cb2=_0x7011be;l(this,_0x278cb2(0x41c),[]),l(this,_0x278cb2(0x1df),null),l(this,_0x278cb2(0x24c),null),l(this,'_anchorDot',null),l(this,'_hideTimer',null),l(this,_0x278cb2(0x451),null),(this['_cursor']=_0x5c1335,this['_scene']=_0x228461,this['_docSkeleton']=_0xed8b20,this['_document']=_0x21c968,this[_0x278cb2(0x39f)]());}set['_hover'](_0x21cf27){const _0x10c6be=_0x7011be;_0x21cf27?(this[_0x10c6be(0x488)]&&this[_0x10c6be(0x488)]['hide'](),this['_textBubble']&&this[_0x10c6be(0x24c)][_0x10c6be(0x2ee)]()):(this[_0x10c6be(0x488)]&&this['_anchorDot'][_0x10c6be(0x2ee)](),this[_0x10c6be(0x24c)]&&this['_textBubble'][_0x10c6be(0x3d9)]());}[_0x7011be(0x326)](){const _0x250b4d=_0x7011be;for(const _0x16642b of this['_shapes'])_0x16642b[_0x250b4d(0x326)]();this[_0x250b4d(0x24c)]&&this[_0x250b4d(0x24c)]['dispose'](),this[_0x250b4d(0x488)]&&this[_0x250b4d(0x488)][_0x250b4d(0x326)](),this[_0x250b4d(0x1df)]&&this['_anchor'][_0x250b4d(0x326)](),this[_0x250b4d(0x451)]&&this['_eventUnsubscribe']();}[_0x7011be(0x39f)](){const _0x14f889=_0x7011be;var _0x331a4f;const {_docSkeleton:_0x13156f,_document:_0x3f6077}=this,{color:_0x458920,name:_0x52521a,ranges:_0x111989}=this[_0x14f889(0x2a7)],_0x14086f=_0x3f6077[_0x14f889(0x373)](),{docsLeft:_0x157168,docsTop:_0x3fd842}=_0x14086f,_0x5358e0=new _0x559cdc(_0x14086f,_0x13156f);for(const {startOffset:_0x2e10da,endOffset:_0x3cfd33,collapsed:_0xc3f07e,isActive:_0x1429a6}of _0x111989){const _0x28d2d4=_0x13156f[_0x14f889(0x192)](_0x2e10da),_0x912cd5=_0x13156f[_0x14f889(0x192)](_0x3cfd33);if(_0x1429a6){const {contentBoxPointGroup:_0x9add8a}=_0x5358e0['getRangePointData'](_0x912cd5,_0x912cd5);if(_0x9add8a[_0x14f889(0x2db)]===0x0)continue;this['_drawAnchor'](_0x458920,_0x9add8a,_0x157168,_0x3fd842,_0x52521a),this[_0x14f889(0x451)]=this[_0x14f889(0x41f)]();}if(!_0xc3f07e&&_0x28d2d4&&_0x912cd5){if(_0x585369(_0x28d2d4,_0x912cd5)){const _0x39da65=new _0x562558(_0x14086f,_0x13156f),{pointGroup:_0x5d490a}=(_0x331a4f=_0x39da65['getRangePointData'](_0x28d2d4,_0x912cd5))!=null?_0x331a4f:{};if(_0x5d490a==null||_0x5d490a[_0x14f889(0x2db)]===0x0)continue;this[_0x14f889(0x3f6)](_0x458920,_0x5d490a,_0x157168,_0x3fd842);}else{const {contentBoxPointGroup:_0x5a6e42}=_0x5358e0[_0x14f889(0x3ed)](_0x28d2d4,_0x912cd5);if(_0x5a6e42['length']===0x0)continue;this[_0x14f889(0x2b0)](_0x458920,_0x5a6e42,_0x157168,_0x3fd842);}}}}['_drawAnchor'](_0x4585bc,_0x5cbe09,_0x292083,_0x568863,_0x4322de){const _0x1ca998=_0x7011be,_0x11e4c3=this[_0x1ca998(0x3ad)](_0x5cbe09),{left:_0x20a1bd,top:_0x2d4605,height:_0x2ed75a}=_0x11e4c3,_0x10d9a6=this[_0x1ca998(0x353)](),_0xcc9bae=kr/_0x10d9a6,_0x57b5c0=new _0x406574(gt+_0x14f99b[_0x1ca998(0x394)](De),{'left':_0x20a1bd+_0x292083-_0xcc9bae,'top':_0x2d4605+_0x568863,'height':_0x2ed75a,'width':Hr,'fill':_0x4585bc||_0x409cfa(_0x133fd5[_0x1ca998(0x481)],0x0),'strokeWidth':_0xcc9bae,'stroke':Br,'evented':!0x0});this[_0x1ca998(0x1df)]=_0x57b5c0,this[_0x1ca998(0x1b0)]['addObject'](_0x57b5c0,_0xb477f6);const _0x48fd9e=new _0x406574(gt+_0x14f99b['generateRandomId'](De),{'left':_0x20a1bd+_0x292083-_0xcc9bae,'top':_0x2d4605+_0x568863-St/0x2,'height':St,'width':St,'fill':_0x4585bc||_0x409cfa(_0x133fd5[_0x1ca998(0x481)],0x0),'strokeWidth':0x0,'stroke':_0x4585bc||_0x409cfa(_0x133fd5['black'],0x0),'evented':!0x1});this['_anchorDot']=_0x48fd9e,this[_0x1ca998(0x1b0)][_0x1ca998(0x43b)](_0x48fd9e,_0xb477f6);const _0x24ffec=new rt(gt+_0x14f99b[_0x1ca998(0x394)](De),{'left':_0x20a1bd+_0x292083-_0xcc9bae,'top':_0x2d4605+_0x568863-Le,'text':_0x4322de,'color':_0x4585bc});this[_0x1ca998(0x24c)]=_0x24ffec,this[_0x1ca998(0x1b0)][_0x1ca998(0x43b)](_0x24ffec,_0xb477f6),this['_hover']=!0x1;}[_0x7011be(0x41f)](){const _0xa9cd1d=_0x7011be,_0x434ad5=this[_0xa9cd1d(0x1df)][_0xa9cd1d(0x30a)][_0xa9cd1d(0x2e9)](()=>{const _0x315fdc=_0xa9cd1d;this[_0x315fdc(0x2bc)]=!0x0;}),_0x4f1f7a=this[_0xa9cd1d(0x1df)][_0xa9cd1d(0x2d8)][_0xa9cd1d(0x2e9)](()=>{const _0x1bc430=_0xa9cd1d;this[_0x1bc430(0x409)]&&clearTimeout(this[_0x1bc430(0x409)]),this['_hideTimer']=setTimeout(()=>{const _0x1f529f=_0x1bc430;this[_0x1f529f(0x2bc)]=!0x1;},0x7d0);});return()=>{const _0x5c6d85=_0xa9cd1d;_0x434ad5[_0x5c6d85(0x416)](),_0x4f1f7a['unsubscribe']();};}[_0x7011be(0x2b0)](_0x24f514,_0x48167c,_0x5c0456,_0x246911){const _0x421ac2=_0x7011be,_0x550834=new _0x146cd6(_0x24f514)['setAlpha'](0.2)['toRgbString'](),_0x2670ab=new _0x3731ab(jr+_0x14f99b[_0x421ac2(0x394)](De),{'pointsGroup':_0x48167c,'fill':_0x550834||_0x409cfa(_0x133fd5[_0x421ac2(0x481)],0.2),'left':_0x5c0456,'top':_0x246911,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x421ac2(0x41c)][_0x421ac2(0x1c4)](_0x2670ab),this[_0x421ac2(0x1b0)][_0x421ac2(0x43b)](_0x2670ab,_0xb477f6);}['_drawRectRange'](_0x108981,_0x2fa731,_0x3d6d20,_0x1ae575){const _0x3fb343=_0x7011be,_0x3e1ec1=new _0x146cd6(_0x108981)[_0x3fb343(0x332)](0.2)[_0x3fb343(0x346)](),_0x119133=new _0x3731ab(xr+_0x14f99b[_0x3fb343(0x394)](De),{'pointsGroup':_0x2fa731,'fill':_0x3e1ec1||_0x409cfa(_0x133fd5[_0x3fb343(0x481)],0.2),'left':_0x3d6d20,'top':_0x1ae575,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3fb343(0x41c)][_0x3fb343(0x1c4)](_0x119133),this[_0x3fb343(0x1b0)]['addObject'](_0x119133,_0xb477f6);}[_0x7011be(0x3ad)](_0x1eaed8){const _0x47fbfe=_0x1eaed8[0x0],_0x2a1d46=_0x47fbfe[0x0],_0x8edd42=_0x47fbfe[0x2],{x:_0x4ddbf5,y:_0x40d32a}=_0x2a1d46,{x:_0x12d968,y:_0x4cada8}=_0x8edd42;return{'left':_0x4ddbf5,'top':_0x40d32a,'width':_0x12d968-_0x4ddbf5,'height':_0x4cada8-_0x40d32a};}[_0x7011be(0x353)](){const _0x1a5329=_0x7011be,{scaleX:_0x3f767f,scaleY:_0x53ec95}=this[_0x1a5329(0x1b0)]['getAncestorScale']();return Math[_0x1a5329(0x47a)](_0x3f767f,_0x53ec95);}}var Vr=Object[_0x7011be(0x38b)],Fr=Object['getOwnPropertyDescriptor'],Wr=(_0x2a582d,_0x4fab1c,_0x3f5bd9,_0x1accec)=>{const _0x2a0ff2=_0x7011be;for(var _0x2aae79=_0x1accec>0x1?void 0x0:_0x1accec?Fr(_0x4fab1c,_0x3f5bd9):_0x4fab1c,_0x4535e1=_0x2a582d[_0x2a0ff2(0x2db)]-0x1,_0x527320;_0x4535e1>=0x0;_0x4535e1--)(_0x527320=_0x2a582d[_0x4535e1])&&(_0x2aae79=(_0x1accec?_0x527320(_0x4fab1c,_0x3f5bd9,_0x2aae79):_0x527320(_0x2aae79))||_0x2aae79);return _0x1accec&&_0x2aae79&&Vr(_0x4fab1c,_0x3f5bd9,_0x2aae79),_0x2aae79;},ke=(_0x327902,_0x43f531)=>(_0xf32657,_0xad4892)=>_0x43f531(_0xf32657,_0xad4892,_0x327902);let We=class extends _0x101c13{constructor(_0x1e0fb5,_0x7e422d,_0x1c0a61,_0x21d27c,_0x3b7e28){const _0x439e80=_0x7011be;super(),l(this,_0x439e80(0x45a),[]),l(this,_0x439e80(0x27a),[]),(this['_context']=_0x1e0fb5,this[_0x439e80(0x247)]=_0x7e422d,this[_0x439e80(0x3c4)]=_0x1c0a61,this[_0x439e80(0x2c6)]=_0x21d27c,this['_themeService']=_0x3b7e28,this['_init']());}[_0x7011be(0x1f6)](){const _0x3c0138=_0x7011be,_0x2b3559=this[_0x3c0138(0x211)][_0x3c0138(0x36b)],_0x42fc67=this[_0x3c0138(0x247)];this['disposeWithMe'](_0x25e7d9([this[_0x3c0138(0x3c4)][_0x3c0138(0x321)](_0x2b3559),this['_themeService'][_0x3c0138(0x4d4)]])['pipe'](_0x4b1d28(([_0x422311,_0x221656])=>({'skeleton':_0x42fc67[_0x3c0138(0x491)](),'cursors':[..._0x422311[_0x3c0138(0x3dd)]()][_0x3c0138(0x426)](_0x324c87=>({..._0x324c87,'color':_0x221656[_0x324c87['color']]}))})))['subscribe'](_0x1a3bd3=>{const _0x3b6452=_0x3c0138;if(this[_0x3b6452(0x288)](),_0x1a3bd3){const {skeleton:_0x3ee8c0,cursors:_0x37b400}=_0x1a3bd3;this[_0x3b6452(0x2e6)](_0x3ee8c0,_0x37b400);}})),this[_0x3c0138(0x2c4)](),this[_0x3c0138(0x345)]();}[_0x7011be(0x2e6)](_0x32679f,_0x57a126){const _0x1c9b35=_0x7011be,{scene:_0x21a219,mainComponent:_0x2450c5}=this[_0x1c9b35(0x211)],_0x2f5c49=_0x57a126[_0x1c9b35(0x2af)](_0x4bc550=>new fs(_0x4bc550,_0x21a219,_0x32679f,_0x2450c5));this[_0x1c9b35(0x45a)]=_0x2f5c49,this[_0x1c9b35(0x27a)]=_0x57a126;}[_0x7011be(0x296)](){const _0x1ca863=_0x7011be;this['_removeCollabCursors']();const {scene:_0x4ff4c6,mainComponent:_0x1d3fd1}=this[_0x1ca863(0x211)],_0x469056=this[_0x1ca863(0x247)]['getSkeleton'](),_0x3e0ea1=this['_cursors'][_0x1ca863(0x2af)](_0x47ed69=>new fs(_0x47ed69,_0x4ff4c6,_0x469056,_0x1d3fd1));this[_0x1ca863(0x45a)]=_0x3e0ea1;}['_removeCollabCursors'](){const _0x3ec83f=_0x7011be;this[_0x3ec83f(0x45a)]['forEach'](_0x23a511=>_0x23a511['dispose']()),this[_0x3ec83f(0x45a)]=[];}[_0x7011be(0x345)](){const _0x521f7a=_0x7011be,_0x19c8c2=[_0x527e19['id']];this[_0x521f7a(0x26d)](this[_0x521f7a(0x2c6)][_0x521f7a(0x2b4)](_0x53b0ed=>{const _0x161209=_0x521f7a;_0x19c8c2[_0x161209(0x4a4)](_0x53b0ed['id'])&&_0x53b0ed[_0x161209(0x329)][_0x161209(0x36b)]===this[_0x161209(0x211)][_0x161209(0x36b)]&&this[_0x161209(0x296)]();}));}[_0x7011be(0x2c4)](){const _0x52f8e5=_0x7011be;this[_0x52f8e5(0x26d)](_0x331c20(this[_0x52f8e5(0x211)][_0x52f8e5(0x242)][_0x52f8e5(0x3e6)])['pipe'](_0x273b1e(_0x2a9bf0=>_0x2a9bf0[_0x52f8e5(0x4b7)]===_0x223d13[_0x52f8e5(0x1bc)]),_0x46d884(0x10))[_0x52f8e5(0x376)](()=>{const _0x184b9a=_0x52f8e5;this[_0x184b9a(0x296)]();}));}};We=Wr([_0x4a01a1(_0x268ec2['Steady'],We),ke(0x1,_0x4f6f98(_0x46bdda)),ke(0x2,_0x4f6f98(ge)),ke(0x3,_0x2cea1d),ke(0x4,_0x4f6f98(_0x5d9d21))],We);const Gr=0x1,Yr=1.5;class Kr extends _0x1390df{constructor(_0x3f3a3d,_0x50216f){const _0x497b9b=_0x7011be;super(_0x3f3a3d,_0x50216f),l(this,_0x497b9b(0x473)),l(this,_0x497b9b(0x4cb),!0x1),l(this,'_range'),l(this,'_name',''),l(this,_0x497b9b(0x27e),_0x497b9b(0x482)),l(this,_0x497b9b(0x34a)),(_0x50216f&&this['setShapeProps'](_0x50216f),this['onPointerEnter$']['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x497b9b(0x2d8)][_0x497b9b(0x2e9)](()=>this[_0x497b9b(0x4a5)]({'hovered':!0x1})));}[_0x7011be(0x4a5)](_0x159081){const _0x3ad4fb=_0x7011be;var _0x11d10e,_0x13bf03,_0x4c35c2,_0xcba6c1,_0x2db159,_0x2f66b3;this['_color']=(_0x11d10e=_0x159081['color'])!=null?_0x11d10e:this[_0x3ad4fb(0x473)],this['_hovered']=(_0x13bf03=_0x159081[_0x3ad4fb(0x2ea)])!=null?_0x13bf03:this['_hovered'],this[_0x3ad4fb(0x1fc)]=(_0x4c35c2=_0x159081['range'])!=null?_0x4c35c2:this[_0x3ad4fb(0x1fc)],this[_0x3ad4fb(0x3bc)]=(_0xcba6c1=_0x159081['name'])!=null?_0xcba6c1:this['_name'],this[_0x3ad4fb(0x27e)]=(_0x2db159=_0x159081[_0x3ad4fb(0x4c5)])!=null?_0x2db159:this[_0x3ad4fb(0x27e)],this[_0x3ad4fb(0x34a)]=(_0x2f66b3=_0x159081[_0x3ad4fb(0x492)])!=null?_0x2f66b3:this['_backgroundColor'],this[_0x3ad4fb(0x3a6)]({'width':_0x159081[_0x3ad4fb(0x467)],'height':_0x159081[_0x3ad4fb(0x2a8)]});}[_0x7011be(0x1d1)](_0x1b4fee){const _0xcd8082=_0x7011be,{row:_0x59cc6e,column:_0x35bf04}=_0x1b4fee;if(_0x59cc6e>=this[_0xcd8082(0x1fc)][_0xcd8082(0x1cc)]&&_0x59cc6e<=this[_0xcd8082(0x1fc)]['endRow']&&_0x35bf04>=this[_0xcd8082(0x1fc)][_0xcd8082(0x18a)]&&_0x35bf04<=this[_0xcd8082(0x1fc)]['endColumn']){this['setShapeProps']({'hovered':!0x0});return;}this[_0xcd8082(0x4a5)]({'hovered':!0x1});}[_0x7011be(0x460)](_0x8eb302){return!0x1;}['_draw'](_0x17ed99){const _0xdd63d5=_0x7011be;_0x406574['drawWith'](_0x17ed99,{'width':this[_0xdd63d5(0x467)],'height':this[_0xdd63d5(0x2a8)],'strokeWidth':Yr,'stroke':this[_0xdd63d5(0x473)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0xdd63d5(0x4cb)]&&(_0x17ed99[_0xdd63d5(0x189)](),_0x17ed99[_0xdd63d5(0x3a3)](0x1,0x0,0x0,0x1,this[_0xdd63d5(0x467)],this[_0xdd63d5(0x27e)]===_0xdd63d5(0x1c0)?0x0:-Le),rt['drawWith'](_0x17ed99,{'text':this['_name'],'color':this['_color']}),_0x17ed99[_0xdd63d5(0x19e)]());}}var Xr=Object['defineProperty'],Jr=Object['getOwnPropertyDescriptor'],qr=(_0x4a9e5f,_0x59751d,_0x2d5b9a,_0x3ef9fc)=>{const _0x4bebd1=_0x7011be;for(var _0x438ce7=_0x3ef9fc>0x1?void 0x0:_0x3ef9fc?Jr(_0x59751d,_0x2d5b9a):_0x59751d,_0x249cd0=_0x4a9e5f[_0x4bebd1(0x2db)]-0x1,_0x1f725b;_0x249cd0>=0x0;_0x249cd0--)(_0x1f725b=_0x4a9e5f[_0x249cd0])&&(_0x438ce7=(_0x3ef9fc?_0x1f725b(_0x59751d,_0x2d5b9a,_0x438ce7):_0x1f725b(_0x438ce7))||_0x438ce7);return _0x3ef9fc&&_0x438ce7&&Xr(_0x59751d,_0x2d5b9a,_0x438ce7),_0x438ce7;},pt=(_0x53e64c,_0x3cf330)=>(_0x24d733,_0x4e70d7)=>_0x3cf330(_0x24d733,_0x4e70d7,_0x53e64c);const zr=0x1389;let yt=class extends _0x101c13{constructor(_0x5ba4bc,_0x1aa9d7,_0x3ff9b3,_0x4b2d9b){const _0x5e94b2=_0x7011be;super(),l(this,_0x5e94b2(0x27a),new Set()),l(this,_0x5e94b2(0x2ab),null),(this[_0x5e94b2(0x211)]=_0x5ba4bc,this['_sheetSkeletonManagerService']=_0x1aa9d7,this[_0x5e94b2(0x3c4)]=_0x3ff9b3,this[_0x5e94b2(0x2b6)]=_0x4b2d9b,this[_0x5e94b2(0x1f6)]());}[_0x7011be(0x1f6)](){const _0x10d6c2=_0x7011be;this[_0x10d6c2(0x217)][_0x10d6c2(0x212)][_0x10d6c2(0x185)](_0x559853(this[_0x10d6c2(0x3f3)]),_0x2b4b41(_0x492142=>{const _0x594b98=_0x10d6c2;if(_0x492142){const _0x322472=_0x492142[_0x594b98(0x4da)];return _0x25e7d9(this['_collabCursorController'][_0x594b98(0x321)](this[_0x594b98(0x211)][_0x594b98(0x36b)]),this['_themeService']['currentTheme$'])['pipe'](_0x4b1d28(([_0x226ca3,_0x3c4632])=>{const _0x51ffcb=_0x594b98,_0x38d756=new Map();return _0x226ca3[_0x51ffcb(0x429)]((_0x5e6f87,_0x4fc75e)=>{const _0x22cb6e=_0x51ffcb;if(_0x5e6f87['sheetID']===_0x322472){const _0x59867f={..._0x5e6f87};_0x59867f[_0x22cb6e(0x18d)]=_0x3c4632[_0x5e6f87[_0x22cb6e(0x18d)]],_0x38d756[_0x22cb6e(0x2e0)](_0x4fc75e,_0x59867f);}}),{'skeleton':_0x492142,'cursors':_0x38d756};}));}return _0x1f8bdc({'skeleton':null,'cursors':new Map()});}))[_0x10d6c2(0x376)](({skeleton:_0x2b6e22,cursors:_0xb51df1})=>{const _0x41a4b5=_0x10d6c2;this[_0x41a4b5(0x288)](),_0x2b6e22&&this[_0x41a4b5(0x2e6)](_0x2b6e22,_0xb51df1);}),this['_sheetSkeletonManagerService'][_0x10d6c2(0x212)][_0x10d6c2(0x376)](_0x25145d=>{const _0x1b7a94=_0x10d6c2;if(_0x25145d==null)return;const {skeleton:_0x4b11f7}=_0x25145d,{scene:_0x3c6e68}=this[_0x1b7a94(0x211)];_0x3c6e68['onPointerMove$'][_0x1b7a94(0x2e9)](_0x3c0cdf(_0x8a6292=>{const _0x24cb7f=_0x1b7a94;var _0x2066e1,_0x1fb072;const {offsetX:_0x377732,offsetY:_0x379a9f}=_0x8a6292,{x:_0x47e01b,y:_0x55cb43}=_0x3c6e68[_0x24cb7f(0x4dd)](_0x25b778['FromArray']([_0x377732,_0x379a9f])),{scaleX:_0x45c7a0,scaleY:_0x280683}=_0x3c6e68[_0x24cb7f(0x4d1)](),_0x457f0c=_0x3c6e68[_0x24cb7f(0x424)](_0x2ddac5[_0x24cb7f(0x42b)]),_0x2a8b75=_0x3c6e68[_0x24cb7f(0x210)](_0x25b778['FromArray']([_0x47e01b,_0x55cb43]),_0x457f0c),_0x5600a9=_0x4b11f7['getCellPositionByOffset'](_0x377732,_0x379a9f,_0x45c7a0,_0x280683,_0x2a8b75);((_0x2066e1=this[_0x24cb7f(0x2ab)])==null?void 0x0:_0x2066e1['column'])===_0x5600a9['column']&&((_0x1fb072=this[_0x24cb7f(0x2ab)])==null?void 0x0:_0x1fb072['row'])===_0x5600a9[_0x24cb7f(0x432)]||this['_cursors'][_0x24cb7f(0x429)](_0x2defaf=>{const _0x1e017d=_0x24cb7f;_0x2defaf[_0x1e017d(0x1d1)](_0x5600a9);});},0x64));});}[_0x7011be(0x2e6)](_0x293f9b,_0x15e8e4){const _0x10b682=_0x7011be;var _0x44249e;const _0x417da9=(_0x44249e=this[_0x10b682(0x217)][_0x10b682(0x195)]())==null?void 0x0:_0x44249e[_0x10b682(0x471)];if(!_0x417da9)return;const _0x3481a4=this[_0x10b682(0x279)]();if(!_0x3481a4)return;this['_cursors'][_0x10b682(0x429)](_0x40e97b=>{const _0x29cb0b=_0x10b682;_0x40e97b[_0x29cb0b(0x20a)]();});const {scene:_0x5108d3}=_0x3481a4,_0xec30fa=Zr(Array['from'](_0x15e8e4[_0x10b682(0x3dd)]()))['map'](_0x4b4a81=>{const _0xca78c=_0x10b682,{color:_0x3717f4,range:_0x2b9ea9,name:_0x4c2416,selection:_0x63f532,sheetID:_0x34ebc2}=_0x4b4a81,{startColumn:_0x6aa968,startRow:_0x210bec,endColumn:_0x29e58b,endRow:_0x1b7eaf}=_0x2b9ea9,_0x906630=_0x39aa42(_0x210bec,_0x6aa968,_0x5108d3,_0x417da9),_0x25dd86=_0x39aa42(_0x1b7eaf,_0x29e58b,_0x5108d3,_0x417da9),{columnHeaderHeightAndMarginTop:_0x410882}=_0x417da9,{startX:_0x276eff,startY:_0x1feaac}=_0x906630,{endX:_0x1be371,endY:_0x55bb81}=_0x25dd86,_0x29eab7=_0x1be371-_0x276eff,_0x4fe8b9=_0x55bb81-_0x1feaac,_0x3fe1f1={'labelPosition':_0x1feaac-_0x410882>=Le?_0xca78c(0x482):'bottom','sheetID':_0x34ebc2,'range':_0x2b9ea9,'color':_0x3717f4,'name':_0x4c2416,'selection':_0x63f532,'left':_0x276eff,'top':_0x1feaac,'width':_0x29eab7,'height':_0x4fe8b9,'evented':!0x1,'zIndex':zr};return new Kr(_0x4c2416,_0x3fe1f1);});_0x5108d3[_0x10b682(0x4b1)](_0xec30fa,Gr),this[_0x10b682(0x27a)]=new Set(_0xec30fa);}['_removeCollabCursors'](){const _0x2d3daa=_0x7011be;var _0xaf8494;(_0xaf8494=this[_0x2d3daa(0x27a)])==null||_0xaf8494[_0x2d3daa(0x429)](_0x14a1ee=>_0x14a1ee[_0x2d3daa(0x326)]());}[_0x7011be(0x279)](){const _0x227cd5=_0x7011be;return _0xc97df6(this['_context'][_0x227cd5(0x25a)],this[_0x227cd5(0x211)]);}};yt=qr([pt(0x1,_0x4f6f98(_0x23732c)),pt(0x2,_0x4f6f98(ge)),pt(0x3,_0x4f6f98(_0x5d9d21))],yt);function Zr(_0x235117){const _0x3612a2=_0x7011be,_0x14a262=new Map();return _0x235117['forEach'](_0x34beba=>{const _0x525141=_0x312b;if(_0x14a262[_0x525141(0x436)](_0x34beba[_0x525141(0x3fc)])){const _0xe01d65=_0x14a262[_0x525141(0x3be)](_0x34beba[_0x525141(0x3fc)]);_0xe01d65[_0x525141(0x208)]+=',\x20'+_0x34beba['name'];}else _0x14a262['set'](_0x34beba[_0x525141(0x3fc)],_0x34beba);}),Array[_0x3612a2(0x379)](_0x14a262[_0x3612a2(0x3dd)]());}var N=function(){return N=Object['assign']||function(_0x410a2e){const _0x34f659=_0x312b;for(var _0x4055a7,_0x2007ba=0x1,_0x2ec02f=arguments['length'];_0x2007ba<_0x2ec02f;_0x2007ba++){_0x4055a7=arguments[_0x2007ba];for(var _0x5c3c05 in _0x4055a7)Object[_0x34f659(0x461)][_0x34f659(0x44c)][_0x34f659(0x433)](_0x4055a7,_0x5c3c05)&&(_0x410a2e[_0x5c3c05]=_0x4055a7[_0x5c3c05]);}return _0x410a2e;},N['apply'](this,arguments);},Qr=function(_0x13e5da,_0x928cbf){const _0x1c13f0=_0x7011be;var _0x4e6917={};for(var _0x1e63ba in _0x13e5da)Object[_0x1c13f0(0x461)][_0x1c13f0(0x44c)][_0x1c13f0(0x433)](_0x13e5da,_0x1e63ba)&&_0x928cbf[_0x1c13f0(0x1e4)](_0x1e63ba)<0x0&&(_0x4e6917[_0x1e63ba]=_0x13e5da[_0x1e63ba]);if(_0x13e5da!=null&&typeof Object['getOwnPropertySymbols']==_0x1c13f0(0x396)){for(var _0x1a1fc9=0x0,_0x1e63ba=Object[_0x1c13f0(0x1b3)](_0x13e5da);_0x1a1fc9<_0x1e63ba[_0x1c13f0(0x2db)];_0x1a1fc9++)_0x928cbf['indexOf'](_0x1e63ba[_0x1a1fc9])<0x0&&Object[_0x1c13f0(0x461)][_0x1c13f0(0x1e0)][_0x1c13f0(0x433)](_0x13e5da,_0x1e63ba[_0x1a1fc9])&&(_0x4e6917[_0x1e63ba[_0x1a1fc9]]=_0x13e5da[_0x1e63ba[_0x1a1fc9]]);}return _0x4e6917;},Yt=_0x5bcfca(function(_0x565caf,_0x1ebc5f){const _0x6a52fb=_0x7011be;var _0x587c52=_0x565caf[_0x6a52fb(0x1b6)],_0x3bcd03=_0x565caf['id'],_0x4abae6=_0x565caf[_0x6a52fb(0x3e2)],_0x41ea9c=_0x565caf[_0x6a52fb(0x374)],_0x366a5f=Qr(_0x565caf,['icon','id',_0x6a52fb(0x3e2),_0x6a52fb(0x374)]),_0x144f09=_0x6a52fb(0x4ba)[_0x6a52fb(0x365)](_0x3bcd03,'\x20')[_0x6a52fb(0x365)](_0x4abae6||'')[_0x6a52fb(0x413)](),_0x198cce=_0x4907ca('_'[_0x6a52fb(0x365)](so()));return Bs(_0x587c52,''[_0x6a52fb(0x365)](_0x3bcd03),{'defIds':_0x587c52[_0x6a52fb(0x1f9)],'idSuffix':_0x198cce['current']},N({'ref':_0x1ebc5f,'className':_0x144f09},_0x366a5f),_0x41ea9c);});function Bs(_0x9a02f7,_0x30dff1,_0xa397e1,_0x1465c5,_0x3b615e){const _0x7675d8=_0x7011be;return _0x2ec225(_0x9a02f7[_0x7675d8(0x227)],N(N({'key':_0x30dff1},eo(_0x9a02f7,_0xa397e1,_0x3b615e)),_0x1465c5),(to(_0x9a02f7,_0xa397e1)[_0x7675d8(0x449)]||[])[_0x7675d8(0x2af)](function(_0x349006,_0x51a079){const _0x4c5ce5=_0x7675d8;return Bs(_0x349006,''[_0x4c5ce5(0x365)](_0x30dff1,'-')[_0x4c5ce5(0x365)](_0x9a02f7['tag'],'-')[_0x4c5ce5(0x365)](_0x51a079),_0xa397e1,void 0x0,_0x3b615e);}));}function eo(_0x290e0f,_0x7c5de2,_0x4cc194){const _0x1ae53b=_0x7011be;var _0x3e214c=N({},_0x290e0f['attrs']);_0x4cc194!=null&&_0x4cc194[_0x1ae53b(0x3db)]&&_0x3e214c[_0x1ae53b(0x3b6)]==='colorChannel1'&&(_0x3e214c['fill']=_0x4cc194[_0x1ae53b(0x3db)]);var _0x4ba9cb=_0x7c5de2['defIds'];return!_0x4ba9cb||_0x4ba9cb[_0x1ae53b(0x2db)]===0x0||(_0x290e0f[_0x1ae53b(0x227)]===_0x1ae53b(0x1da)&&_0x3e214c['xlink:href']&&(_0x3e214c[_0x1ae53b(0x3c0)]=_0x3e214c[_0x1ae53b(0x3c0)]+_0x7c5de2[_0x1ae53b(0x226)]),Object[_0x1ae53b(0x27d)](_0x3e214c)[_0x1ae53b(0x429)](function(_0x25f319){const _0x1f47eb=_0x1ae53b;var _0x2bcf88=_0x25f319[0x0],_0x4e0177=_0x25f319[0x1];typeof _0x4e0177==_0x1f47eb(0x2ac)&&(_0x3e214c[_0x2bcf88]=_0x4e0177['replace'](/url\(#(.*)\)/,_0x1f47eb(0x400)[_0x1f47eb(0x365)](_0x7c5de2['idSuffix'],')')));})),_0x3e214c;}function to(_0x15f0e6,_0x2f22c3){const _0x32100d=_0x7011be;var _0x2d0761,_0x3e2119=_0x2f22c3[_0x32100d(0x1f9)];return!_0x3e2119||_0x3e2119[_0x32100d(0x2db)]===0x0?_0x15f0e6:_0x15f0e6[_0x32100d(0x227)]===_0x32100d(0x2ae)&&(!((_0x2d0761=_0x15f0e6['children'])===null||_0x2d0761===void 0x0)&&_0x2d0761[_0x32100d(0x2db)])?N(N({},_0x15f0e6),{'children':_0x15f0e6[_0x32100d(0x449)][_0x32100d(0x2af)](function(_0x45487d){const _0x10509d=_0x32100d;return typeof _0x45487d[_0x10509d(0x362)]['id']==_0x10509d(0x2ac)&&_0x3e2119&&_0x3e2119[_0x10509d(0x1e4)](_0x45487d[_0x10509d(0x362)]['id'])>-0x1?N(N({},_0x45487d),{'attrs':N(N({},_0x45487d[_0x10509d(0x362)]),{'id':_0x45487d[_0x10509d(0x362)]['id']+_0x2f22c3[_0x10509d(0x226)]})}):_0x45487d;})}):_0x15f0e6;}function so(){const _0x2184ff=_0x7011be;return Math[_0x2184ff(0x181)]()[_0x2184ff(0x25e)](0x24)[_0x2184ff(0x359)](0x2,0x8);}Yt[_0x7011be(0x2e8)]=_0x7011be(0x428);var io={'tag':_0x7011be(0x2de),'attrs':{'fill':_0x7011be(0x1b5),'viewBox':_0x7011be(0x1fe),'width':_0x7011be(0x2c1),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0x7011be(0x2c7),'attrs':{'stroke':_0x7011be(0x3d0),'d':'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','strokeLinecap':'round','strokeLinejoin':_0x7011be(0x35b),'strokeWidth':1.2}}]},{'tag':_0x7011be(0x2ae),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x7011be(0x3c5)},'children':[{'tag':_0x7011be(0x2c7),'attrs':{'fill':_0x7011be(0x19f),'d':_0x7011be(0x4af)}}]}]}],'defIds':[_0x7011be(0x3c5)]},Vs=_0x5bcfca(function(_0x5e110f,_0x37ea3a){const _0x4c3b16=_0x7011be;return _0x2ec225(Yt,Object[_0x4c3b16(0x1d3)]({},_0x5e110f,{'id':'off-line-single','ref':_0x37ea3a,'icon':io}));});Vs[_0x7011be(0x2e8)]='OffLineSingle';var no={'tag':'svg','attrs':{'fill':_0x7011be(0x1b5),'viewBox':_0x7011be(0x3d2),'width':_0x7011be(0x2c1),'height':_0x7011be(0x2c1)},'children':[{'tag':'g','attrs':{'clipPath':_0x7011be(0x4b0)},'children':[{'tag':_0x7011be(0x2c7),'attrs':{'stroke':_0x7011be(0x3d0),'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':_0x7011be(0x35b),'strokeLinejoin':_0x7011be(0x35b),'strokeWidth':1.2}}]},{'tag':_0x7011be(0x2ae),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x7011be(0x355)},'children':[{'tag':_0x7011be(0x2c7),'attrs':{'fill':_0x7011be(0x19f),'d':_0x7011be(0x4af),'transform':_0x7011be(0x317)}}]}]}],'defIds':[_0x7011be(0x355)]},Fs=_0x5bcfca(function(_0x3b2cc1,_0x235bc7){const _0x532f4b=_0x7011be;return _0x2ec225(Yt,Object[_0x532f4b(0x1d3)]({},_0x3b2cc1,{'id':_0x532f4b(0x483),'ref':_0x235bc7,'icon':no}));});Fs['displayName']='OnLineSingle';const ro=_0x7011be(0x381),oo=_0x7011be(0x2e2),ao=_0x7011be(0x458),co='univer-online',ho='univer-offline',we={'onlineStatusIcon':ro,'onlineStatusTitle':oo,'onlineStatus':ao,'online':co,'offline':ho};function lo(_0x3dfa76){const _0x42d924=_0x7011be;switch(_0x3dfa76){case w['OFFLINE']:return _0x42d924(0x238);case w[_0x42d924(0x184)]:return _0x42d924(0x4a9);case w[_0x42d924(0x1e9)]:return _0x42d924(0x222);case w['NOT_COLLAB']:return'collabStatus.notCollab';case w[_0x42d924(0x188)]:case w[_0x42d924(0x19c)]:case w[_0x42d924(0x2cd)]:return _0x42d924(0x241);case w[_0x42d924(0x2b7)]:return _0x42d924(0x219);}}function _o(_0x17a69e){const _0x11b14d=_0x7011be,{status$:_0xe7a8ff}=_0x17a69e,_0x106e95=_0x58f9f3(_0xe7a8ff,w['NOT_COLLAB']),_0x21b80e=_0x147122(_0x95964d),_0x5aacd3=_0x147122(ce),_0x420298=_0x106e95!==w[_0x11b14d(0x2ca)],_0x9cb72f=_0x21b80e['t'](lo(_0x106e95)),_0x5a5340=_0x26e85f(we[_0x11b14d(0x369)],{[we['online']]:_0x420298,[we['offline']]:!_0x420298}),_0x2d56c5=_0x420298?_0x193848[_0x11b14d(0x272)](Fs,null):_0x193848[_0x11b14d(0x272)](Vs,null),_0x15d0ae=_0x309442(()=>{_0x420298||_0x5aacd3['reconnect']();},[_0x420298,_0x5aacd3]);function _0x6ea57b(){const _0x386529=_0x11b14d;return _0x193848['createElement'](_0x386529(0x423),{'className':_0x5a5340,'onClick':_0x15d0ae},_0x193848[_0x386529(0x272)](_0x386529(0x423),{'className':we[_0x386529(0x498)]},_0x2d56c5),_0x193848[_0x386529(0x272)](_0x386529(0x423),{'className':we[_0x386529(0x1ca)]},_0x9cb72f));}return _0x420298?_0x6ea57b():_0x193848[_0x11b14d(0x272)](_0x5d56c6,{'title':_0x21b80e['t'](_0x11b14d(0x3ae))},_0x6ea57b());}var uo=Object[_0x7011be(0x38b)],fo=Object[_0x7011be(0x24f)],mo=(_0x364686,_0x64fb3e,_0x12145d,_0x3015bd)=>{const _0xc2004d=_0x7011be;for(var _0x49dc67=_0x3015bd>0x1?void 0x0:_0x3015bd?fo(_0x64fb3e,_0x12145d):_0x64fb3e,_0x5dace7=_0x364686[_0xc2004d(0x2db)]-0x1,_0x5ead37;_0x5dace7>=0x0;_0x5dace7--)(_0x5ead37=_0x364686[_0x5dace7])&&(_0x49dc67=(_0x3015bd?_0x5ead37(_0x64fb3e,_0x12145d,_0x49dc67):_0x5ead37(_0x49dc67))||_0x49dc67);return _0x3015bd&&_0x49dc67&&uo(_0x64fb3e,_0x12145d,_0x49dc67),_0x49dc67;},Be=(_0x343840,_0x17368d)=>(_0x2b33b2,_0x5c4588)=>_0x17368d(_0x2b33b2,_0x5c4588,_0x343840);let Ue=class extends _0xd7d44c{constructor(_0x5eb291,_0x544339,_0xdeaf51,_0x12f32d){const _0x42f1d6=_0x7011be;super(),l(this,_0x42f1d6(0x45c),new _0x2048f5(w['NOT_COLLAB'])),(this['_univerInstanceService']=_0x5eb291,this[_0x42f1d6(0x397)]=_0x544339,this['_injector']=_0xdeaf51,this['_collaborationController']=_0x12f32d,this[_0x42f1d6(0x340)](),this['_initStatusListener']());}['_initStatusListener'](){const _0x19b533=_0x7011be;this[_0x19b533(0x26d)](this['_univerInstanceService']['focused$'][_0x19b533(0x185)](_0x396bbc(()=>{const _0x35ef2b=_0x19b533,_0x382d7c=this[_0x35ef2b(0x2c3)]['getFocusedUnit']();return _0x382d7c?this['_collaborationController'][_0x35ef2b(0x354)](_0x382d7c[_0x35ef2b(0x3bf)]()):_0x1f8bdc(null);}),_0x396bbc(_0x5395bb=>_0x5395bb?_0x5395bb[_0x19b533(0x294)]:_0x1f8bdc(w['NOT_COLLAB'])))['subscribe'](_0x5bbfc8=>{const _0x2ba96d=_0x19b533;this[_0x2ba96d(0x45c)][_0x2ba96d(0x40f)](_0x5bbfc8);}));}['_initStatusComponent'](){const _0x38a264=_0x7011be;this[_0x38a264(0x26d)](this[_0x38a264(0x397)][_0x38a264(0x4bf)](_0x23bd16['HEADER_MENU'],()=>_0xbbe883(go({'status$':this[_0x38a264(0x45c)][_0x38a264(0x1f7)]()}),this['_injector'])));}};Ue=mo([Be(0x0,_0x29e7a7),Be(0x1,_0x59ba8f),Be(0x2,_0x4f6f98(_0x8f002c)),Be(0x3,_0x4f6f98(Ae))],Ue);function go(_0x35ec7b){const {status$:_0x1df387}=_0x35ec7b;return function(){const _0x5093c3=_0x312b;return _0x193848[_0x5093c3(0x272)](_o,{'status$':_0x1df387});};}const Ws=_0x1e5b71(_0x7011be(0x384));var So=Object['defineProperty'],po=Object[_0x7011be(0x24f)],vo=(_0x58d2f1,_0xbb8ef7,_0xd170fe,_0x490113)=>{for(var _0x594bb2=_0x490113>0x1?void 0x0:_0x490113?po(_0xbb8ef7,_0xd170fe):_0xbb8ef7,_0x1c33c6=_0x58d2f1['length']-0x1,_0x35f029;_0x1c33c6>=0x0;_0x1c33c6--)(_0x35f029=_0x58d2f1[_0x1c33c6])&&(_0x594bb2=(_0x490113?_0x35f029(_0xbb8ef7,_0xd170fe,_0x594bb2):_0x35f029(_0x594bb2))||_0x594bb2);return _0x490113&&_0x594bb2&&So(_0xbb8ef7,_0xd170fe,_0x594bb2),_0x594bb2;},me=(_0x287011,_0x48b92b)=>(_0x41ebcb,_0x23d270)=>_0x48b92b(_0x41ebcb,_0x23d270,_0x287011);let Ge=class extends _0x101c13{constructor(_0x3be14e,_0x10e65c,_0x20ba20,_0x4a1811,_0x38c02d,_0x3a2e9d){const _0x5eca34=_0x7011be;super(),this[_0x5eca34(0x357)]=_0x3be14e,this[_0x5eca34(0x1b4)]=_0x10e65c,this[_0x5eca34(0x2c6)]=_0x20ba20,this[_0x5eca34(0x40d)]=_0x4a1811,this['_snapshotService']=_0x38c02d,_0x3a2e9d?_0x3a2e9d==null||_0x3a2e9d['whenReady']()[_0x5eca34(0x26e)](()=>this[_0x5eca34(0x1f6)]()):(this[_0x5eca34(0x1b4)][_0x5eca34(0x368)](_0x5eca34(0x3f9),_0x5eca34(0x3a7)),this[_0x5eca34(0x1f6)]());}async['_init'](){const _0x35bb95=_0x7011be,_0x417fa0=this[_0x35bb95(0x357)]['getParam'](_0x35bb95(0x25a)),_0x57951=this['_urlService'][_0x35bb95(0x27b)](_0x35bb95(0x4b7));if(!_0x417fa0||!_0x57951){this[_0x35bb95(0x1b4)][_0x35bb95(0x368)](_0x35bb95(0x3f9),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x57951)){case H[_0x35bb95(0x42d)]:{const _0xc1aa67=await this[_0x35bb95(0x2ba)](_0x417fa0);this[_0x35bb95(0x36c)](_0xc1aa67);break;}case H[_0x35bb95(0x1a0)]:{await this[_0x35bb95(0x1d4)](_0x417fa0);break;}default:{this[_0x35bb95(0x1b4)][_0x35bb95(0x174)](_0x35bb95(0x3f9),_0x35bb95(0x1a7));break;}}}async[_0x7011be(0x36c)](_0x22c257){const _0x4a5e96=_0x7011be;await this[_0x4a5e96(0x4c9)](_0x22c257),_0x22c257['activeSheet$'][_0x4a5e96(0x185)](_0x25a74d(this[_0x4a5e96(0x3f3)]))['subscribe'](_0x26a220=>{const _0x248808=_0x4a5e96;_0x26a220&&this[_0x248808(0x2f1)](_0x26a220);}),this[_0x4a5e96(0x357)][_0x4a5e96(0x1a1)][_0x4a5e96(0x185)](_0x25a74d(this[_0x4a5e96(0x3f3)]))[_0x4a5e96(0x376)](()=>this[_0x4a5e96(0x4c9)](_0x22c257));}[_0x7011be(0x2f1)](_0x49858b,_0x227415=!0x1){const _0x4611b6=_0x7011be,_0x409e9c=this[_0x4611b6(0x357)][_0x4611b6(0x27b)](_0x4611b6(0x48b));_0x49858b[_0x4611b6(0x3ff)]()!==_0x409e9c&&this[_0x4611b6(0x357)][_0x4611b6(0x276)](_0x4611b6(0x48b),_0x49858b[_0x4611b6(0x3ff)](),_0x227415);}async[_0x7011be(0x4c9)](_0x3a44b8){const _0x24be86=_0x7011be;var _0x2cc9b6;const _0x230f59=this['_urlService'][_0x24be86(0x27b)](_0x24be86(0x48b));if(!_0x230f59||!_0x3a44b8[_0x24be86(0x391)](_0x230f59)){const _0x58f381=_0x3a44b8[_0x24be86(0x284)]()[0x0],_0x52d5d3=_0x3a44b8['getSheetBySheetId'](_0x58f381);if(!_0x52d5d3)return;this[_0x24be86(0x2f1)](_0x52d5d3,!0x0),await this[_0x24be86(0x2c6)][_0x24be86(0x431)](_0x330d5c['id'],{'unitId':_0x3a44b8[_0x24be86(0x3bf)](),'subUnitId':_0x58f381});return;}((_0x2cc9b6=_0x3a44b8[_0x24be86(0x23c)]())==null?void 0x0:_0x2cc9b6[_0x24be86(0x3ff)]())!==_0x230f59&&await this['_commandService'][_0x24be86(0x431)](_0x330d5c['id'],{'unitId':_0x3a44b8['getUnitId'](),'subUnitId':_0x230f59});}async[_0x7011be(0x2ba)](_0x31894e){const _0x1e45bd=_0x7011be;let _0x3a0945=0x0;const _0xb7e1cd=await this['_localCacheService'][_0x1e45bd(0x403)](_0x31894e);return _0xb7e1cd&&(_0xb7e1cd[_0x1e45bd(0x191)]||_0xb7e1cd['mutations'][_0x1e45bd(0x2db)]!==0x0)&&(_0x3a0945=_0xb7e1cd[_0x1e45bd(0x26c)]),_0x3a0945===0x0&&this['_logService'][_0x1e45bd(0x368)](_0x1e45bd(0x3f9),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this['_snapshotService']['loadSheet'](_0x31894e,_0x3a0945);}async['_loadDoc'](_0x113d39){const _0xc1508e=_0x7011be;let _0x210356=0x0;const _0x3283f6=await this[_0xc1508e(0x40d)][_0xc1508e(0x403)](_0x113d39);return _0x3283f6&&(_0x3283f6[_0xc1508e(0x191)]||_0x3283f6[_0xc1508e(0x459)]['length']!==0x0)&&(_0x210356=_0x3283f6[_0xc1508e(0x26c)]),_0x210356===0x0&&this[_0xc1508e(0x1b4)][_0xc1508e(0x368)]('[DataLoaderController]',_0xc1508e(0x2c2)),this['_snapshotService'][_0xc1508e(0x313)](_0x113d39,_0x210356);}};Ge=vo([_0x4a01a1(_0x268ec2[_0x7011be(0x438)],Ge),me(0x0,Ws),me(0x1,_0x2f2df5),me(0x2,_0x2cea1d),me(0x3,_0x4f6f98(D)),me(0x4,_0x4f6f98(_0x41eb9e)),me(0x5,_0x59d638(_0xc60c98))],Ge);var Io=Object[_0x7011be(0x38b)],Eo=Object[_0x7011be(0x24f)],Co=(_0x43aecd,_0x5ded6a,_0x4e46da,_0x505453)=>{const _0x141ba9=_0x7011be;for(var _0x5c7fb3=_0x505453>0x1?void 0x0:_0x505453?Eo(_0x5ded6a,_0x4e46da):_0x5ded6a,_0x51f7a8=_0x43aecd[_0x141ba9(0x2db)]-0x1,_0x581c8a;_0x51f7a8>=0x0;_0x51f7a8--)(_0x581c8a=_0x43aecd[_0x51f7a8])&&(_0x5c7fb3=(_0x505453?_0x581c8a(_0x5ded6a,_0x4e46da,_0x5c7fb3):_0x581c8a(_0x5c7fb3))||_0x5c7fb3);return _0x505453&&_0x5c7fb3&&Io(_0x5ded6a,_0x4e46da,_0x5c7fb3),_0x5c7fb3;},ms=(_0x26b538,_0x241193)=>(_0x39d678,_0xd8b7dd)=>_0x241193(_0x39d678,_0xd8b7dd,_0x26b538);const bo=_0x7011be(0x437),To=_0x7011be(0x259);let Ye=class extends _0xd7d44c{constructor(_0x321e51,_0x387d94){const _0x10a7b2=_0x7011be;super(),this[_0x10a7b2(0x2c3)]=_0x321e51,this[_0x10a7b2(0x1c9)]=_0x387d94,this[_0x10a7b2(0x1f6)]();}[_0x7011be(0x1f6)](){const _0x4aebf5=_0x7011be;this[_0x4aebf5(0x26d)](_0x4b6fbe(this[_0x4aebf5(0x2c3)]['focused$']['subscribe'](()=>{const _0x20b529=_0x4aebf5;var _0x5634ce;const _0x2936c1=this[_0x20b529(0x2c3)][_0x20b529(0x223)]();let _0x384119=(_0x5634ce=this['_configService']['getConfig'](bo))!=null?_0x5634ce:To;_0x2936c1 instanceof _0x1b7a0e&&(_0x384119=_0x2936c1[_0x20b529(0x208)]),document[_0x20b529(0x476)]=_0x384119;})));}};Ye=Co([_0x4a01a1(_0x268ec2[_0x7011be(0x475)],Ye),ms(0x0,_0x29e7a7),ms(0x1,_0x516197)],Ye);var Ro=Object[_0x7011be(0x38b)],Oo=Object[_0x7011be(0x24f)],Do=(_0x52e670,_0x58afc3,_0x24406e,_0x1a3d7c)=>{const _0x197f71=_0x7011be;for(var _0x2b41cf=_0x1a3d7c>0x1?void 0x0:_0x1a3d7c?Oo(_0x58afc3,_0x24406e):_0x58afc3,_0x36390d=_0x52e670[_0x197f71(0x2db)]-0x1,_0x44e49;_0x36390d>=0x0;_0x36390d--)(_0x44e49=_0x52e670[_0x36390d])&&(_0x2b41cf=(_0x1a3d7c?_0x44e49(_0x58afc3,_0x24406e,_0x2b41cf):_0x44e49(_0x2b41cf))||_0x2b41cf);return _0x1a3d7c&&_0x2b41cf&&Ro(_0x58afc3,_0x24406e,_0x2b41cf),_0x2b41cf;},vt=(_0xb1024f,_0x55401b)=>(_0x4a2988,_0x23083e)=>_0x55401b(_0x4a2988,_0x23083e,_0xb1024f);let st=class{constructor(_0x37b21a,_0x164823,_0x3166a5){const _0x43080b=_0x7011be;this['_configService']=_0x37b21a,this[_0x43080b(0x220)]=_0x164823,this[_0x43080b(0x306)]=_0x3166a5,this[_0x43080b(0x395)]();}['init'](){const _0x5dddf1=_0x7011be;this[_0x5dddf1(0x220)][_0x5dddf1(0x477)]({'priority':0x1,'interceptor':(_0x53f33d,_0x415b07)=>_0x415b07(_0x53f33d)[_0x5dddf1(0x185)](_0x156a35(async _0x44b106=>{const _0x232f8c=_0x5dddf1,_0x512477=_0x44b106;if(_0x512477[_0x232f8c(0x31f)]===0x191&&window['confirm'](this[_0x232f8c(0x306)]['t'](_0x232f8c(0x445)))){const _0x436192=window[_0x232f8c(0x17d)](window['location'][_0x232f8c(0x49e)]);window[_0x232f8c(0x49f)][_0x232f8c(0x49e)]=this[_0x232f8c(0x256)]()+_0x232f8c(0x207)+_0x436192;}return _0x512477;}))});}['_getLoginPath'](){const _0x25cdc5=_0x7011be;var _0x1a49af,_0x2fab81;const _0x474b23=this[_0x25cdc5(0x1c9)]['getConfig'](Pn),_0x2d1281=this['_configService'][_0x25cdc5(0x34f)](L);return(_0x2fab81=(_0x1a49af=_0x2d1281==null?void 0x0:_0x2d1281['loginUrlKey'])!=null?_0x1a49af:_0x474b23)!=null?_0x2fab81:yn;}};st=Do([vt(0x0,_0x516197),vt(0x1,_0x4f6f98(_0x263986)),vt(0x2,_0x4f6f98(_0x95964d))],st);var wo=Object['defineProperty'],Po=Object[_0x7011be(0x24f)],yo=(_0x4c8eeb,_0x60ee4d,_0x335f30,_0x373a35)=>{for(var _0x4df74e=_0x373a35>0x1?void 0x0:_0x373a35?Po(_0x60ee4d,_0x335f30):_0x60ee4d,_0x4f964d=_0x4c8eeb['length']-0x1,_0x3a7888;_0x4f964d>=0x0;_0x4f964d--)(_0x3a7888=_0x4c8eeb[_0x4f964d])&&(_0x4df74e=(_0x373a35?_0x3a7888(_0x60ee4d,_0x335f30,_0x4df74e):_0x3a7888(_0x4df74e))||_0x4df74e);return _0x373a35&&_0x4df74e&&wo(_0x60ee4d,_0x335f30,_0x4df74e),_0x4df74e;},gs=(_0x479d5c,_0x2b0add)=>(_0x207796,_0x421ae9)=>_0x2b0add(_0x207796,_0x421ae9,_0x479d5c);const No=_0x7011be(0x4cc),Uo=_0x7011be(0x408);let Nt=class extends _0xd7d44c{constructor(_0x18e3f6,_0x20e44f){const _0x2f0977=_0x7011be;super(),this[_0x2f0977(0x2b9)]=_0x18e3f6,this[_0x2f0977(0x1c9)]=_0x20e44f,this[_0x2f0977(0x237)]();}[_0x7011be(0x237)](){const _0x414b58=_0x7011be,_0x3f9b73=this;this[_0x414b58(0x26d)](this['_HTTPService'][_0x414b58(0x477)]({'priority':0x3e7,'interceptor':_0x144d61({'isMatch'(_0x4ad625){const _0x445e34=_0x414b58;var _0x1b73f5;if(_0x4ad625[_0x445e34(0x1c2)]===_0x445e34(0x264)&&((_0x1b73f5=_0x4ad625[_0x445e34(0x21e)])!=null&&_0x1b73f5['body'])){const {objectID:_0x206314,objectType:_0x110fc5}=_0x4ad625[_0x445e34(0x21e)]['body']||{};if(!_0x206314||_0x110fc5===void 0x0)return!0x1;const _0x3308a0=_0x3f9b73[_0x445e34(0x1f3)]()+'/'+_0x110fc5+_0x445e34(0x470)+_0x206314+_0x445e34(0x46c);if(_0x4ad625[_0x445e34(0x4c6)]===_0x3308a0)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x581696){const _0x321b32=_0x414b58;var _0x13794d;return(_0x13794d=_0x581696['requestParams'])==null?void 0x0:_0x13794d[_0x321b32(0x1ce)];},'mergeParamsToRequest'(_0x2714f7,_0x33c367){const _0x150b1d=_0x414b58,_0x233f3f=_0x3f9b73[_0x150b1d(0x1f3)]()+'/-/object/-/batch_allowed',_0x472c35=_0x2714f7[_0x150b1d(0x186)]((_0x669240,_0x17bcc9)=>{const _0x145b12=_0x150b1d,{unitID:_0x22b958,objectID:_0x366640,objectType:_0x376f5a,actions:_0x3138bf}=_0x17bcc9;return _0x669240[_0x22b958]||(_0x669240[_0x22b958]={}),_0x669240[_0x22b958][_0x366640]||(_0x669240[_0x22b958][_0x366640]={'objectID':_0x366640,'objectType':_0x376f5a,'actions':[]}),_0x669240[_0x22b958][_0x366640]['actions'][_0x145b12(0x1c4)](..._0x3138bf),_0x669240;},{}),_0x150427=[];for(const _0x4b324f in _0x472c35)for(const _0x1c62f8 in _0x472c35[_0x4b324f]){const {actions:_0x5532f5,objectType:_0x58d01d}=_0x472c35[_0x4b324f][_0x1c62f8],_0xac4434=[...new Set(_0x5532f5)];_0x150427[_0x150b1d(0x1c4)]({'unitID':_0x4b324f,'objectID':_0x1c62f8,'objectType':_0x58d01d,'actions':_0xac4434});}return new _0x2b95ea('POST',_0x233f3f,{'headers':_0x33c367['headers'],'withCredentials':_0x33c367[_0x150b1d(0x4de)],'responseType':_0x33c367[_0x150b1d(0x2bb)],'body':{'requests':_0x150427}});}},{'distributeResult'(_0x534586,_0x3193da){const _0x574347=_0x414b58,{objectActions:_0x517f45}=_0x534586;return _0x3193da[_0x574347(0x2af)](_0x510b9e=>{const _0x20fb6b=_0x574347,{unitID:_0x12e881,objectID:_0x507316,actions:_0x337718}=_0x510b9e,_0x418c61=_0x517f45['find'](_0x965d31=>_0x965d31[_0x20fb6b(0x363)]===_0x12e881&&_0x965d31[_0x20fb6b(0x248)]===_0x507316),_0x43f2ef=_0x337718[_0x20fb6b(0x2af)](_0x20d39f=>_0x418c61==null?void 0x0:_0x418c61['actions']['find'](_0x3edf32=>_0x3edf32['action']===_0x20d39f))[_0x20fb6b(0x393)](_0x182cb8=>!!_0x182cb8);return{'config':_0x510b9e,'result':{'actions':_0x43f2ef,'error':_0x534586[_0x20fb6b(0x174)]}};});}})}));}['_getAPIPrefixPath'](){const _0x2feb35=_0x7011be;var _0x47008d,_0x2790f5;const _0x51af0b=this['_configService'][_0x2feb35(0x34f)](No),_0x5b4736=this[_0x2feb35(0x1c9)][_0x2feb35(0x34f)](L);return(_0x2790f5=(_0x47008d=_0x5b4736==null?void 0x0:_0x5b4736[_0x2feb35(0x3d8)])!=null?_0x47008d:_0x51af0b)!=null?_0x2790f5:Uo;}async[_0x7011be(0x33b)](_0x20bae3){const _0x42d560=_0x7011be,_0x39c93c=this[_0x42d560(0x1f3)]()+'/'+_0x20bae3[_0x42d560(0x4e3)]+'/object';return(await this['_HTTPService'][_0x42d560(0x49d)](_0x39c93c,{'body':_0x20bae3}))[_0x42d560(0x1ce)][_0x42d560(0x248)]||'';}async[_0x7011be(0x434)](_0x3ff893){const _0x29fd48=_0x7011be,_0x1723fc=this[_0x29fd48(0x1f3)]()+_0x29fd48(0x213);return(await this[_0x29fd48(0x2b9)][_0x29fd48(0x49d)](_0x1723fc,{'body':_0x3ff893}))[_0x29fd48(0x1ce)][_0x29fd48(0x178)];}async[_0x7011be(0x21b)](_0x43497b){const _0xbee312=_0x7011be,_0x4c030e=this['_getAPIPrefixPath']()+'/'+_0x43497b[_0xbee312(0x4e3)]+'/object/'+_0x43497b[_0xbee312(0x248)];await this[_0xbee312(0x2b9)][_0xbee312(0x23f)](_0x4c030e,{'body':_0x43497b});}async[_0x7011be(0x193)](_0x3764d8){const _0xa4d00=_0x7011be,_0x17cb69=this['_getAPIPrefixPath']()+'/'+_0x3764d8['objectType']+_0xa4d00(0x470)+_0x3764d8[_0xa4d00(0x248)]+'/allowed';return(await this[_0xa4d00(0x2b9)][_0xa4d00(0x49d)](_0x17cb69,{'body':_0x3764d8}))[_0xa4d00(0x1ce)][_0xa4d00(0x1d0)];}async['batchAllowed'](_0x1e7b70){const _0x14c3ac=_0x7011be,_0x33b312=this[_0x14c3ac(0x1f3)]()+_0x14c3ac(0x2ad);return(await this['_HTTPService']['post'](_0x33b312,{'body':{'requests':_0x1e7b70}}))['body'][_0x14c3ac(0x38f)];}async[_0x7011be(0x286)](_0x8afb97){const _0x4721d0=_0x7011be,_0x4533e1=this['_getAPIPrefixPath']()+'/'+_0x8afb97['objectType']+_0x4721d0(0x447),_0x3349d7=await this['_HTTPService'][_0x4721d0(0x49d)](_0x4533e1,{'body':_0x8afb97});return{'roles':_0x3349d7[_0x4721d0(0x1ce)][_0x4721d0(0x243)],'actions':_0x3349d7[_0x4721d0(0x1ce)][_0x4721d0(0x1d0)]};}async[_0x7011be(0x1c3)](_0xaa61ac){const _0x47c396=_0x7011be,_0x38b38b=this['_getAPIPrefixPath']()+_0x47c396(0x46f);await this[_0x47c396(0x2b9)][_0x47c396(0x415)](_0x38b38b,{'params':{'collaboratorID':_0xaa61ac[_0x47c396(0x1c5)],'objectID':_0xaa61ac['objectID'],'unitID':_0xaa61ac['unitID']}});}async[_0x7011be(0x336)](_0x39d232){const _0x30c8ba=_0x7011be,_0x9ff85e=this[_0x30c8ba(0x1f3)]()+_0x30c8ba(0x46f);await this[_0x30c8ba(0x2b9)][_0x30c8ba(0x3f8)](_0x9ff85e,{'body':_0x39d232});}async[_0x7011be(0x36f)](_0x560e1d){const _0x12f7ec=_0x7011be,_0x398725=this[_0x12f7ec(0x1f3)]()+_0x12f7ec(0x46f);await this['_HTTPService']['post'](_0x398725,{'body':_0x560e1d});}async['listCollaborators'](_0x1cf6b6){const _0x39bf3c=_0x7011be,_0x1b7a5c=this[_0x39bf3c(0x1f3)]()+_0x39bf3c(0x46f);return(await this[_0x39bf3c(0x2b9)][_0x39bf3c(0x3be)](_0x1b7a5c,{'params':{'objectID':_0x1cf6b6['objectID'],'unitID':_0x1cf6b6['unitID']}}))[_0x39bf3c(0x1ce)][_0x39bf3c(0x34c)];}async[_0x7011be(0x1db)](_0x206eda){const _0x333c65=_0x7011be,_0xbd1668=this['_getAPIPrefixPath']()+_0x333c65(0x46f);await this['_HTTPService'][_0x333c65(0x23f)](_0xbd1668,{'body':_0x206eda});}};Nt=yo([gs(0x0,_0x4f6f98(_0x263986)),gs(0x1,_0x4f6f98(_0x516197))],Nt);var Mo=Object[_0x7011be(0x38b)],Ao=Object[_0x7011be(0x24f)],Lo=(_0x4ed184,_0x4c3337,_0x3f1c37,_0x26c823)=>{const _0x455227=_0x7011be;for(var _0x141729=_0x26c823>0x1?void 0x0:_0x26c823?Ao(_0x4c3337,_0x3f1c37):_0x4c3337,_0x362d83=_0x4ed184[_0x455227(0x2db)]-0x1,_0x5e096c;_0x362d83>=0x0;_0x362d83--)(_0x5e096c=_0x4ed184[_0x362d83])&&(_0x141729=(_0x26c823?_0x5e096c(_0x4c3337,_0x3f1c37,_0x141729):_0x5e096c(_0x141729))||_0x141729);return _0x26c823&&_0x141729&&Mo(_0x4c3337,_0x3f1c37,_0x141729),_0x141729;},$o=(_0x147aae,_0x269096)=>(_0x540c72,_0x103246)=>_0x269096(_0x540c72,_0x103246,_0x147aae);let it=class{constructor(_0x16134a){const _0x382563=_0x7011be;this[_0x382563(0x220)]=_0x16134a,this[_0x382563(0x3ab)]();}[_0x7011be(0x3ab)](){const _0x1089ec=_0x7011be;this['_httpService'][_0x1089ec(0x477)]({'interceptor':(_0x5b67b0,_0x389476)=>{const _0x4d0c8e=_0x1089ec,_0x274309=_0x5b67b0[_0x4d0c8e(0x2b3)],_0xbe5edd=_0x1a079a();return _0xbe5edd&&_0x274309[_0x4d0c8e(0x2e0)](_0x4d0c8e(0x40a),_0xbe5edd),_0x389476(_0x5b67b0);}});}};it=Lo([$o(0x0,_0x4f6f98(_0x263986))],it);var jo=Object[_0x7011be(0x38b)],xo=Object[_0x7011be(0x24f)],Ho=(_0x4e6bdf,_0x895196,_0x177eb1,_0x1fc3ab)=>{const _0x270925=_0x7011be;for(var _0x97fe2d=_0x1fc3ab>0x1?void 0x0:_0x1fc3ab?xo(_0x895196,_0x177eb1):_0x895196,_0x29b976=_0x4e6bdf[_0x270925(0x2db)]-0x1,_0xe392aa;_0x29b976>=0x0;_0x29b976--)(_0xe392aa=_0x4e6bdf[_0x29b976])&&(_0x97fe2d=(_0x1fc3ab?_0xe392aa(_0x895196,_0x177eb1,_0x97fe2d):_0xe392aa(_0x97fe2d))||_0x97fe2d);return _0x1fc3ab&&_0x97fe2d&&jo(_0x895196,_0x177eb1,_0x97fe2d),_0x97fe2d;},It=(_0x3b8ea1,_0x3ca232)=>(_0xcc418e,_0x54de90)=>_0x3ca232(_0xcc418e,_0x54de90,_0x3b8ea1);const ko=[_0x7011be(0x215),_0x7011be(0x499),_0x7011be(0x2a4),_0x7011be(0x252),'image/bmp'],Bo=0x5*0x400*0x400,Vo='EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY',Fo='/universer-api/stream/file/upload',Wo=_0x7011be(0x40c),Go='/universer-api/file/{fileID}/sign-url';let Ut=class{constructor(_0x59a9d7,_0x4dedf4,_0x33db1c){const _0x4caacb=_0x7011be;l(this,_0x4caacb(0x1de),0x0),l(this,_0x4caacb(0x1fd),new _0x4339d0()),l(this,_0x4caacb(0x303),this[_0x4caacb(0x1fd)]),l(this,_0x4caacb(0x322),new Map()),(this[_0x4caacb(0x220)]=_0x59a9d7,this[_0x4caacb(0x1c9)]=_0x4dedf4,this[_0x4caacb(0x2c3)]=_0x33db1c);}[_0x7011be(0x349)](_0x48bac2){const _0x5a2de7=_0x7011be;this[_0x5a2de7(0x1de)]=_0x48bac2,this[_0x5a2de7(0x1fd)][_0x5a2de7(0x40f)](_0x48bac2);}[_0x7011be(0x1ff)](_0x154383,_0x5a4f7c){const _0x3513fb=_0x7011be;if(_0x5a4f7c===_0x5687f1[_0x3513fb(0x46b)]){const _0x53f07d=new Image();return _0x53f07d[_0x3513fb(0x265)]=_0x154383,_0x53f07d;}return this[_0x3513fb(0x322)][_0x3513fb(0x3be)](_0x154383);}['addImageSourceCache'](_0x24d2e3,_0x2260e7,_0x55a3ce){const _0x254003=_0x7011be;_0x2260e7===_0x5687f1[_0x254003(0x46b)]||_0x55a3ce==null||this[_0x254003(0x322)][_0x254003(0x2e0)](_0x24d2e3,_0x55a3ce);}async[_0x7011be(0x18c)](_0x57a467){const _0x18810c=_0x7011be;try{const _0x54d89f=this[_0x18810c(0x360)](this['_getSignURL'](),''+_0x57a467),_0x5316a2=(await this['_httpService']['get'](_0x54d89f))[_0x18810c(0x1ce)];if(_0x5316a2[_0x18810c(0x174)]&&_0x5316a2[_0x18810c(0x174)][_0x18810c(0x35f)]===As['OK']){const _0x3bb9c2=new URL(_0x5316a2[_0x18810c(0x4c6)],this[_0x18810c(0x453)]())[_0x18810c(0x25e)]();return Promise[_0x18810c(0x2f7)](_0x3bb9c2);}return Promise[_0x18810c(0x331)](_0x5316a2[_0x18810c(0x174)]);}catch(_0x3bafe5){return Promise['reject'](_0x3bafe5);}}async[_0x7011be(0x406)](_0x28451f){const _0x5df594=_0x7011be;let _0x21896f='';if(!ko[_0x5df594(0x4a4)](_0x28451f[_0x5df594(0x4b7)]))return this[_0x5df594(0x232)](),Promise[_0x5df594(0x331)](new Error(_0x51de88['ERROR_IMAGE_TYPE']));if(_0x28451f[_0x5df594(0x43c)]>Bo)return this[_0x5df594(0x232)](),Promise[_0x5df594(0x331)](new Error(_0x51de88['ERROR_EXCEED_SIZE']));try{const _0xfe03ea=new FormData();_0xfe03ea['append']('file',_0x28451f);const _0x400d3e=this[_0x5df594(0x2c3)]['getFocusedUnit'](),_0x3a4cf8=_0x400d3e==null?void 0x0:_0x400d3e['getUnitId']();if(!_0x3a4cf8)throw new Error(_0x5df594(0x443));const _0x18c563=this[_0x5df594(0x4e2)]()+_0x5df594(0x2eb)+_0x28451f['size']['toString']()+_0x5df594(0x3b5)+Ls[_0x5df594(0x268)]+_0x5df594(0x1f1)+encodeURIComponent(_0x3a4cf8),_0x188423=await(await fetch(_0x18c563,{'method':_0x5df594(0x264),'body':_0xfe03ea}))[_0x5df594(0x323)]();if(typeof _0x188423[_0x5df594(0x1f5)]!='string')return this[_0x5df594(0x232)](),Promise[_0x5df594(0x331)](new Error(_0x51de88['ERROR_IMAGE']));_0x21896f=_0x188423[_0x5df594(0x1f5)];}catch{return this[_0x5df594(0x232)](),Promise[_0x5df594(0x331)](new Error(_0x51de88[_0x5df594(0x490)]));}return new Promise((_0x4dab4d,_0x4e2bf5)=>{const _0x2a5d34=_0x5df594,_0x15486e=new FileReader();_0x15486e[_0x2a5d34(0x388)](_0x28451f),_0x15486e[_0x2a5d34(0x304)]=_0x15a39d=>{const _0x4cefa3=_0x2a5d34;var _0x2932f3;const _0x2fe598=(_0x2932f3=_0x15a39d[_0x4cefa3(0x3df)])==null?void 0x0:_0x2932f3[_0x4cefa3(0x216)];if(_0x2fe598==null){this[_0x4cefa3(0x232)](),_0x4e2bf5(new Error(_0x51de88[_0x4cefa3(0x490)]));return;}const _0x511688=_0x14f99b[_0x4cefa3(0x394)](0x6);_0x4dab4d({'imageId':_0x511688,'imageSourceType':_0x5687f1['UUID'],'source':_0x21896f,'base64Cache':_0x2fe598,'status':_0x51de88['SUCCUSS']}),this['_decreaseWaiting']();};});}[_0x7011be(0x4e2)](){const _0x5d44d3=_0x7011be;var _0x53b862,_0x32a758;const _0x11ee22=this[_0x5d44d3(0x1c9)][_0x5d44d3(0x34f)](Vo),_0x2a1b51=this[_0x5d44d3(0x1c9)][_0x5d44d3(0x34f)](L);return(_0x32a758=(_0x53b862=_0x2a1b51==null?void 0x0:_0x2a1b51[_0x5d44d3(0x2c0)])!=null?_0x53b862:_0x11ee22)!=null?_0x32a758:Fo;}[_0x7011be(0x47e)](){const _0x34b6d9=_0x7011be;var _0x263ef0,_0x4ea365;const _0x3a65dd=this[_0x34b6d9(0x1c9)][_0x34b6d9(0x34f)](Wo),_0x5360cb=this[_0x34b6d9(0x1c9)]['getConfig'](L);return(_0x4ea365=(_0x263ef0=_0x5360cb==null?void 0x0:_0x5360cb['signUrlServerUrl'])!=null?_0x263ef0:_0x3a65dd)!=null?_0x4ea365:Go;}['_getDownloadEndpointURL'](){const _0x4d0b3b=_0x7011be;var _0x58c390;const _0x20e825=this[_0x4d0b3b(0x1c9)][_0x4d0b3b(0x34f)](L);return(_0x58c390=_0x20e825==null?void 0x0:_0x20e825[_0x4d0b3b(0x293)])!=null?_0x58c390:location[_0x4d0b3b(0x3b9)];}[_0x7011be(0x360)](_0x31d402,_0x2d319f){const _0x3c45b9=_0x7011be;return _0x31d402[_0x3c45b9(0x44b)](_0x3c45b9(0x48d),_0x2d319f);}['_decreaseWaiting'](){const _0x597e57=_0x7011be;this['_waitCount']-=0x1,this[_0x597e57(0x1fd)]['next'](this[_0x597e57(0x1de)]);}};Ut=Ho([It(0x0,_0x4f6f98(_0x263986)),It(0x1,_0x516197),It(0x2,_0x4f6f98(_0x29e7a7))],Ut);var Yo=Object[_0x7011be(0x38b)],Ko=Object[_0x7011be(0x24f)],Xo=(_0x2328d1,_0x563320,_0x2ceddb,_0x3de608)=>{const _0x3688f7=_0x7011be;for(var _0x5eb72b=_0x3de608>0x1?void 0x0:_0x3de608?Ko(_0x563320,_0x2ceddb):_0x563320,_0x5619a6=_0x2328d1[_0x3688f7(0x2db)]-0x1,_0x203cf7;_0x5619a6>=0x0;_0x5619a6--)(_0x203cf7=_0x2328d1[_0x5619a6])&&(_0x5eb72b=(_0x3de608?_0x203cf7(_0x563320,_0x2ceddb,_0x5eb72b):_0x203cf7(_0x5eb72b))||_0x5eb72b);return _0x3de608&&_0x5eb72b&&Yo(_0x563320,_0x2ceddb,_0x5eb72b),_0x5eb72b;},Pe=(_0x771227,_0x2914d8)=>(_0x65a525,_0x1288e9)=>_0x2914d8(_0x65a525,_0x1288e9,_0x771227);let Ke=class extends _0x101c13{constructor(_0x3443f6,_0x184305,_0x5a4fdd,_0x53a4f4,_0x4e1f2d){const _0x4f19cb=_0x7011be;super(),this['_injector']=_0x3443f6,this[_0x4f19cb(0x2c3)]=_0x184305,this[_0x4f19cb(0x48c)]=_0x5a4fdd,this[_0x4f19cb(0x4a8)]=_0x53a4f4,this[_0x4f19cb(0x2f8)]=_0x4e1f2d,this['_initUnitPermissionChange'](),this[_0x4f19cb(0x405)]();}[_0x7011be(0x405)](){const _0x1ebb79=_0x7011be,_0x248b68=async _0x247a0e=>{const _0x1100f4=_0x312b;(await this[_0x1100f4(0x4a8)][_0x1100f4(0x1d6)](_0x247a0e))[_0x1100f4(0x27f)]['pipe'](_0x273b1e(_0x45994f=>_0x45994f[_0x1100f4(0x2fb)]===_0x3edc6c[_0x1100f4(0x214)]),_0x559853(this['dispose$']))['subscribe'](_0xee61c4=>{const _0x38f0c8=_0x1100f4,_0x53e17a=_0xee61c4,{reason:_0x5637cf}=_0x53e17a[_0x38f0c8(0x253)];this['_injector'][_0x38f0c8(0x3be)](_0x13bf44)[_0x38f0c8(0x2ee)]({'type':_0x5638e0[_0x38f0c8(0x270)],'content':this[_0x38f0c8(0x2f8)]['t']('collaboration.closeRoom')+'('+_0x5637cf+')'}),this[_0x38f0c8(0x48c)]['updatePermissionPoint'](new _0x37edea(_0x247a0e)['id'],!0x1),this[_0x38f0c8(0x4a8)][_0x38f0c8(0x3d4)](_0x247a0e);});};_0x2b5f15(this['_univerInstanceService'][_0x1ebb79(0x4c7)](_0x223004[_0x1ebb79(0x42d)]),this[_0x1ebb79(0x2c3)][_0x1ebb79(0x4c7)](_0x223004[_0x1ebb79(0x1a0)]))[_0x1ebb79(0x185)](_0x4b1d28(_0x1e80e1=>_0x1e80e1['getUnitId']()),_0x273b1e(_0x4c1bb9=>!_0x1b37cc(_0x4c1bb9)),_0x559853(this[_0x1ebb79(0x3f3)]))['subscribe'](_0x2af62e=>{_0x248b68(_0x2af62e);});}['_initUnitPermissionChange'](){const _0x4418ec=_0x7011be,_0x372828=async _0x844349=>{const _0x3eadba=_0x312b;(await this[_0x3eadba(0x4a8)]['requireSession'](_0x844349))['event$'][_0x3eadba(0x185)](_0x273b1e(_0x1878b6=>_0x1878b6[_0x3eadba(0x2fb)]===_0x3edc6c[_0x3eadba(0x1bb)]),_0x559853(this[_0x3eadba(0x3f3)]))['subscribe'](_0x2840b3=>{const _0x1e9e6d=_0x3eadba,_0x722295=_0x2840b3,{objectId:_0x5391a4}=_0x722295[_0x1e9e6d(0x253)],_0x124a4e=this[_0x1e9e6d(0x47c)][_0x1e9e6d(0x3be)](_0x223460);_0x5391a4===_0x844349?_0x124a4e[_0x1e9e6d(0x274)](_0x844349):_0x124a4e['refreshPermission'](_0x844349,_0x5391a4);});};_0x2b5f15(this[_0x4418ec(0x2c3)][_0x4418ec(0x4c7)](_0x223004['UNIVER_SHEET']),this[_0x4418ec(0x2c3)][_0x4418ec(0x4c7)](_0x223004[_0x4418ec(0x1a0)]))[_0x4418ec(0x185)](_0x4b1d28(_0x1c54eb=>_0x1c54eb[_0x4418ec(0x3bf)]()),_0x273b1e(_0x5bc424=>!_0x1b37cc(_0x5bc424)),_0x559853(this[_0x4418ec(0x3f3)]))[_0x4418ec(0x376)](_0x3d4c9d=>{_0x372828(_0x3d4c9d);});}};Ke=Xo([_0x4a01a1(_0x268ec2[_0x7011be(0x438)],Ke),Pe(0x0,_0x4f6f98(_0x8f002c)),Pe(0x1,_0x29e7a7),Pe(0x2,_0x28c276),Pe(0x3,_0x4f6f98(ce)),Pe(0x4,_0x4f6f98(_0x95964d))],Ke);var Jo=Object[_0x7011be(0x38b)],qo=Object[_0x7011be(0x24f)],zo=(_0x276a27,_0xa700cc,_0x18a140,_0x4488f7)=>{const _0x42558b=_0x7011be;for(var _0x435a76=_0x4488f7>0x1?void 0x0:_0x4488f7?qo(_0xa700cc,_0x18a140):_0xa700cc,_0x36b4fb=_0x276a27[_0x42558b(0x2db)]-0x1,_0x4943bb;_0x36b4fb>=0x0;_0x36b4fb--)(_0x4943bb=_0x276a27[_0x36b4fb])&&(_0x435a76=(_0x4488f7?_0x4943bb(_0xa700cc,_0x18a140,_0x435a76):_0x4943bb(_0x435a76))||_0x435a76);return _0x4488f7&&_0x435a76&&Jo(_0xa700cc,_0x18a140,_0x435a76),_0x435a76;},Ss=(_0x4f2ea6,_0x1ffd4f)=>(_0x2e0eff,_0x28d2af)=>_0x1ffd4f(_0x2e0eff,_0x28d2af,_0x4f2ea6);let Mt=class{constructor(_0x1c8f20,_0x531633){const _0x1314b4=_0x7011be;this['_configService']=_0x1c8f20,this[_0x1314b4(0x220)]=_0x531633;}async[_0x7011be(0x3e7)](_0x4d8c98,_0x2e383b){const _0x1c2f3e=_0x7011be;var _0x33b4fe;const {unitID:_0x153d51,type:_0x146d48,revision:_0x5b7eb1=0x0}=_0x2e383b,_0x7c43ee=this['_getSnapshotAPIPrefix']()+'/'+_0x146d48+_0x1c2f3e(0x3b7)+_0x153d51+_0x1c2f3e(0x2e7)+_0x5b7eb1,_0x215ff0=(await this[_0x1c2f3e(0x220)][_0x1c2f3e(0x3be)](_0x7c43ee))[_0x1c2f3e(0x1ce)],_0x5a6587=(_0x33b4fe=_0x215ff0[_0x1c2f3e(0x3a1)])==null?void 0x0:_0x33b4fe['workbook'];if(_0x5a6587){const _0x2a3a72=_0x5a6587==null?void 0x0:_0x5a6587[_0x1c2f3e(0x17a)],_0x23bb6b=_0x16f5f9[_0x1c2f3e(0x2ff)](_0x5316b9(_0x2a3a72));_0x5a6587[_0x1c2f3e(0x17a)]=_0x23bb6b,Object[_0x1c2f3e(0x27d)](_0x5a6587['sheets'])[_0x1c2f3e(0x429)](([,_0x2987c8])=>{const _0x26fea3=_0x1c2f3e,_0x4c696d=_0x2987c8['originalMeta'],_0x188f0f=_0x16f5f9[_0x26fea3(0x2ff)](_0x5316b9(_0x4c696d));_0x2987c8[_0x26fea3(0x17a)]=_0x188f0f;});}return _0x215ff0;}async[_0x7011be(0x47f)](_0xfecbf7,_0x57b303){const _0x4b6800=_0x7011be,{unitID:_0x1b2a48,type:_0x23b963,blockID:_0xc5011e}=_0x57b303,_0x22713d=this[_0x4b6800(0x3c9)]()+'/'+_0x23b963+_0x4b6800(0x3b7)+_0x1b2a48+'/block/'+_0xc5011e;return(await this[_0x4b6800(0x220)][_0x4b6800(0x3be)](_0x22713d))['body'];}async['getDeserializedSheetBlock'](_0x28c805,_0x310e90){const _0x5d26c5=_0x7011be,{unitID:_0x1825d3,type:_0x3a0b74,blockID:_0x243f7c}=_0x310e90,_0x1d9f02=this[_0x5d26c5(0x3c9)]()+_0x5d26c5(0x371)+_0x3a0b74+'/unit/'+_0x1825d3+_0x5d26c5(0x371)+_0x243f7c;return(await this[_0x5d26c5(0x220)][_0x5d26c5(0x3be)](_0x1d9f02))[_0x5d26c5(0x1ce)];}async[_0x7011be(0x262)](_0x27984d,_0x884eca){const _0x318d0c=_0x7011be,{unitID:_0x4f7c50,type:_0x22cf16,from:_0x58a5ec,to:_0x4b29f9}=_0x884eca,_0x10c014=this[_0x318d0c(0x3c9)]()+'/'+_0x22cf16+_0x318d0c(0x3b7)+_0x4f7c50+'/fetchmissing?from='+_0x58a5ec+_0x318d0c(0x17e)+_0x4b29f9;return(await this[_0x318d0c(0x220)][_0x318d0c(0x3be)](_0x10c014))[_0x318d0c(0x1ce)];}[_0x7011be(0x29a)](){const _0xdb4f04=_0x7011be;var _0x1c197c;return(_0x1c197c=this[_0xdb4f04(0x1c9)][_0xdb4f04(0x34f)](gn))!=null?_0x1c197c:this[_0xdb4f04(0x3c9)]();}[_0x7011be(0x3c9)](){const _0xb60b93=_0x7011be;var _0x3b4456,_0x1d4e6d;const _0x66abe9=this['_configService'][_0xb60b93(0x34f)](fn),_0x3ef6ed=this[_0xb60b93(0x1c9)]['getConfig'](L);return(_0x1d4e6d=(_0x3b4456=_0x3ef6ed==null?void 0x0:_0x3ef6ed[_0xb60b93(0x497)])!=null?_0x3b4456:_0x66abe9)!=null?_0x1d4e6d:mn;}async[_0x7011be(0x370)](_0x26f650,_0x1d5265){const _0x4d418f=_0x7011be,_0x304d5f=_0x4d418f(0x2d2)+_0x1d5265[_0x4d418f(0x4b7)]+'/unit/'+_0x1d5265[_0x4d418f(0x363)]+_0x4d418f(0x456);return(await this[_0x4d418f(0x220)][_0x4d418f(0x3be)](_0x304d5f,{'params':{'resourceId':JSON[_0x4d418f(0x3ec)](_0x1d5265[_0x4d418f(0x442)])}}))[_0x4d418f(0x1ce)];}[_0x7011be(0x417)](){const _0x9d8683=_0x7011be;throw new Error(_0x9d8683(0x2c9));}['saveSheetBlock'](){const _0x493665=_0x7011be;throw new Error(_0x493665(0x2c9));}[_0x7011be(0x245)](){const _0x224b44=_0x7011be;throw new Error(_0x224b44(0x2c9));}[_0x7011be(0x4c4)](){const _0x4422c9=_0x7011be;throw new Error(_0x4422c9(0x2c9));}};Mt=zo([Ss(0x0,_0x516197),Ss(0x1,_0x4f6f98(_0x263986))],Mt);var Zo=Object['defineProperty'],Qo=Object[_0x7011be(0x24f)],ea=(_0xff2c90,_0x5cec58,_0x1cdb31,_0x40523)=>{for(var _0x5c4c3a=_0x40523>0x1?void 0x0:_0x40523?Qo(_0x5cec58,_0x1cdb31):_0x5cec58,_0x4a52ad=_0xff2c90['length']-0x1,_0x39ec89;_0x4a52ad>=0x0;_0x4a52ad--)(_0x39ec89=_0xff2c90[_0x4a52ad])&&(_0x5c4c3a=(_0x40523?_0x39ec89(_0x5cec58,_0x1cdb31,_0x5c4c3a):_0x39ec89(_0x5c4c3a))||_0x5c4c3a);return _0x40523&&_0x5c4c3a&&Zo(_0x5cec58,_0x1cdb31,_0x5c4c3a),_0x5c4c3a;},ye=(_0x3237a4,_0x2ad93e)=>(_0xc44f00,_0x535dbd)=>_0x2ad93e(_0xc44f00,_0x535dbd,_0x3237a4);let At=class extends _0x4b8f0d{constructor(_0x2407a2,_0x3eccbe,_0x17fd01,_0x1ebfbb,_0x31eec3){super(_0x2407a2,_0x3eccbe,_0x17fd01),this['_transformService']=_0x1ebfbb,this['_logService']=_0x31eec3;}[_0x7011be(0x1e5)](_0x5cee0d,_0x54c16e){const _0x2a37bb=_0x7011be,_0x5d59cb=this[_0x2a37bb(0x31d)](_0x5cee0d);if(_0x5d59cb)try{const _0x2e1cb4=this[_0x2a37bb(0x3e5)](_0x5d59cb,_0x54c16e);this[_0x2a37bb(0x472)](_0x5cee0d,_0x2e1cb4);}catch(_0x31c917){this[_0x2a37bb(0x1b4)]['error']('[CollaborationUndoRedoService]',_0x31c917),this[_0x2a37bb(0x4ac)](_0x5cee0d);}const _0x28b2d4=this['_getRedoStack'](_0x5cee0d);if(_0x28b2d4)try{const _0x22f06c=this[_0x2a37bb(0x3e5)](_0x28b2d4,_0x54c16e);this[_0x2a37bb(0x41a)](_0x5cee0d,_0x22f06c);}catch(_0x3b1264){this[_0x2a37bb(0x1b4)][_0x2a37bb(0x174)](_0x3b1264),this[_0x2a37bb(0x305)](_0x5cee0d);}}[_0x7011be(0x4ac)](_0x5efdab){const _0x2d9fc7=_0x7011be,_0xcc6742=this[_0x2d9fc7(0x31d)](_0x5efdab);_0xcc6742&&(_0xcc6742[_0x2d9fc7(0x2db)]=0x0,this[_0x2d9fc7(0x4c3)]());}[_0x7011be(0x305)](_0x6379cc){const _0x3616d0=_0x7011be,_0x1c28e8=this[_0x3616d0(0x3a9)](_0x6379cc);_0x1c28e8&&(_0x1c28e8[_0x3616d0(0x2db)]=0x0,this[_0x3616d0(0x4c3)]());}[_0x7011be(0x472)](_0x3e27e7,_0x357e9f){const _0x587040=_0x7011be;this[_0x587040(0x410)][_0x587040(0x2e0)](_0x3e27e7,_0x357e9f),this[_0x587040(0x4c3)]();}[_0x7011be(0x41a)](_0x467750,_0x4ae38f){const _0x41ccc5=_0x7011be;this[_0x41ccc5(0x465)][_0x41ccc5(0x2e0)](_0x467750,_0x4ae38f),this[_0x41ccc5(0x4c3)]();}[_0x7011be(0x3e5)](_0x4ae351,_0x5ef106){const _0x48925d=_0x7011be,_0x232d22=[];let _0x3e3d8a=_0x5ef106,_0x1d26f8=_0x5ef106;for(let _0x239bf1=_0x4ae351[_0x48925d(0x2db)]-0x1;_0x239bf1>=0x0;_0x239bf1--){const {unitID:_0xf751e5,undoMutations:_0x55d986,redoMutations:_0x56aff5}=_0x4ae351[_0x239bf1],_0x5e7eb8=this[_0x48925d(0x26f)][_0x48925d(0x37b)](_0x3e3d8a,_0x55d986),_0x349013=this[_0x48925d(0x26f)]['transformMutationsWithChangeset'](_0x1d26f8,_0x56aff5);if(_0x1e8ba7(_0x5e7eb8)||_0x1e8ba7(_0x349013)){this[_0x48925d(0x1b4)][_0x48925d(0x174)]('[CollaborationUndoRedoService]',_0x48925d(0x2b5),_0x5e7eb8,_0x349013);break;}_0x3e3d8a=_0x5e7eb8['c1Prime'],_0x1d26f8=_0x349013['c1Prime'],_0x232d22[_0x48925d(0x1c4)]({'unitID':_0xf751e5,'undoMutations':_0x5e7eb8['m2Prime'],'redoMutations':_0x349013[_0x48925d(0x1d5)]});}return _0x232d22[_0x48925d(0x190)]();}};At=ea([ye(0x0,_0x29e7a7),ye(0x1,_0x2cea1d),ye(0x2,_0x55e323),ye(0x3,_0x49c306),ye(0x4,_0x2f2df5)],At);class ta extends _0x101c13{constructor(){const _0xe74d94=_0x7011be;super(),l(this,_0xe74d94(0x1a1)),this[_0xe74d94(0x1a1)]=_0x446249(window,_0xe74d94(0x372))[_0xe74d94(0x185)](_0x25a74d(this[_0xe74d94(0x3f3)]),_0x290704(0x1),_0x5cdfe1(void 0x0));}[_0x7011be(0x276)](_0x462b51,_0x441a89,_0x4f2467=!0x1){const _0x45d8df=_0x7011be,_0x4a6827=new URL(window['location'][_0x45d8df(0x49e)]);_0x4a6827['searchParams'][_0x45d8df(0x2e0)](_0x462b51,_0x441a89),_0x4f2467?window[_0x45d8df(0x209)][_0x45d8df(0x32b)]('','',_0x4a6827[_0x45d8df(0x25e)]()):window['history'][_0x45d8df(0x48a)]('','',_0x4a6827['toString']());}[_0x7011be(0x335)](_0xac55b0,_0x376ac5=!0x1){const _0x52a82c=_0x7011be,_0x3d3225=new URL(window[_0x52a82c(0x49f)][_0x52a82c(0x49e)]);_0x3d3225[_0x52a82c(0x287)][_0x52a82c(0x415)](_0xac55b0),_0x376ac5?window[_0x52a82c(0x209)][_0x52a82c(0x32b)]('','',_0x3d3225[_0x52a82c(0x25e)]()):window[_0x52a82c(0x209)]['pushState']('','',_0x3d3225[_0x52a82c(0x25e)]());}[_0x7011be(0x27b)](_0x5d8305){const _0x34b1fd=_0x7011be;var _0x116059;return(_0x116059=new URL(window[_0x34b1fd(0x49f)][_0x34b1fd(0x49e)])[_0x34b1fd(0x287)][_0x34b1fd(0x3be)](_0x5d8305))!=null?_0x116059:void 0x0;}}var Gs=Object[_0x7011be(0x38b)],sa=Object[_0x7011be(0x24f)],ia=(_0x5b90b6,_0x3bf7f3,_0x2dff81)=>_0x3bf7f3 in _0x5b90b6?Gs(_0x5b90b6,_0x3bf7f3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2dff81}):_0x5b90b6[_0x3bf7f3]=_0x2dff81,na=(_0x140f86,_0x4a5125,_0x1e06a1,_0xa3242f)=>{const _0x5f960f=_0x7011be;for(var _0x6d4345=_0xa3242f>0x1?void 0x0:_0xa3242f?sa(_0x4a5125,_0x1e06a1):_0x4a5125,_0x30ea82=_0x140f86[_0x5f960f(0x2db)]-0x1,_0x1623ec;_0x30ea82>=0x0;_0x30ea82--)(_0x1623ec=_0x140f86[_0x30ea82])&&(_0x6d4345=(_0xa3242f?_0x1623ec(_0x4a5125,_0x1e06a1,_0x6d4345):_0x1623ec(_0x6d4345))||_0x6d4345);return _0xa3242f&&_0x6d4345&&Gs(_0x4a5125,_0x1e06a1,_0x6d4345),_0x6d4345;},Ve=(_0x215e4c,_0x326d93)=>(_0x57255f,_0x45a9bc)=>_0x326d93(_0x57255f,_0x45a9bc,_0x215e4c),ra=(_0x1a6522,_0x17ad28,_0x5e6b19)=>ia(_0x1a6522,_0x17ad28+'',_0x5e6b19);const oa=_0x7011be(0x4c2);let Lt=class extends _0x1cfc3b{constructor(_0x474a19=Nn,_0x1bbbc8,_0x275d61,_0x9f3d87,_0x348d3a){const _0x3b7342=_0x7011be;super(),this[_0x3b7342(0x249)]=_0x474a19,this[_0x3b7342(0x1b4)]=_0x1bbbc8,this[_0x3b7342(0x18b)]=_0x275d61,this[_0x3b7342(0x47c)]=_0x9f3d87,this[_0x3b7342(0x1c9)]=_0x348d3a;const {..._0x52bd3d}=this[_0x3b7342(0x249)];this[_0x3b7342(0x1c9)][_0x3b7342(0x33e)](L,_0x52bd3d);}[_0x7011be(0x3a0)](){this['_registerDependencies']();}[_0x7011be(0x1a5)](){this['_registerRenderDependencies']();}[_0x7011be(0x32a)](){const _0x2ec000=_0x7011be;var _0x28c017,_0x61cd36,_0x5822b0,_0x39427a;this[_0x2ec000(0x47c)]['has'](_0x2334b3)&&this[_0x2ec000(0x1b4)][_0x2ec000(0x174)](_0x2ec000(0x46a),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x2235ab=[[_0x2334b3,{'useClass':At}],[ce],[Gt],[_0x263986],[Ws,{'useClass':ta}],[ae],[D],[_0x3cd3ec],[Qe],[et],[Ze],[Ft],[st],[it],[js],[Ke],[$s,{'useClass':(_0x61cd36=(_0x28c017=this[_0x2ec000(0x249)])==null?void 0x0:_0x28c017[_0x2ec000(0x3ca)])!=null?_0x61cd36:Tt}],[_0x3aeab2,{'useClass':_0x28fad5}],[_0x2b166c,{'useClass':Mt}],[_0x485c8a,{'useClass':Nt}],[_0x934fc7,{'useClass':Ut}],[Ae],[Ge],[Ue],[Ye],[ge]];(_0x5822b0=this['_config'])!=null&&_0x5822b0[_0x2ec000(0x33c)]&&_0x2235ab[_0x2ec000(0x1c4)]([nt,{'useClass':or}]),_0x2235ab=_0x130074(_0x2235ab,(_0x39427a=this[_0x2ec000(0x249)])==null?void 0x0:_0x39427a[_0x2ec000(0x3e4)]),_0x2235ab[_0x2ec000(0x429)](_0x247906=>this[_0x2ec000(0x47c)][_0x2ec000(0x3cb)](_0x247906)),this[_0x2ec000(0x42e)]();}[_0x7011be(0x299)](){const _0x34a21e=_0x7011be;this[_0x34a21e(0x26d)](this[_0x34a21e(0x18b)][_0x34a21e(0x44d)](_0x223004[_0x34a21e(0x1a0)],[We])),this[_0x34a21e(0x26d)](this[_0x34a21e(0x18b)][_0x34a21e(0x44d)](_0x223004[_0x34a21e(0x42d)],[yt]));}[_0x7011be(0x42e)](){const _0x53279c=_0x7011be;var _0x3e70c4,_0xa8dd13;this[_0x53279c(0x47c)][_0x53279c(0x3be)](_0x263986)[_0x53279c(0x477)]({'priority':0x14,'interceptor':_0x5485d7({'maxParallel':0x6})}),this['_injector'][_0x53279c(0x3be)](it),(_0x3e70c4=this['_config'])!=null&&_0x3e70c4[_0x53279c(0x347)]||this[_0x53279c(0x47c)]['get'](D)[_0x53279c(0x26a)](),(_0xa8dd13=this[_0x53279c(0x249)])!=null&&_0xa8dd13[_0x53279c(0x421)]&&this['_injector'][_0x53279c(0x3be)](st),this[_0x53279c(0x47c)][_0x53279c(0x3be)](Ae),this['_injector'][_0x53279c(0x436)](Ue)&&this['_injector'][_0x53279c(0x3be)](Ue);}};ra(Lt,_0x7011be(0x20d),oa),Lt=na([_0xc3da8d(_0x19c1c0),Ve(0x1,_0x2f2df5),Ve(0x2,_0x5d47cb),Ve(0x3,_0x4f6f98(_0x8f002c)),Ve(0x4,_0x516197)],Lt);export{No as AUTHZ_URL_KEY,Nt as AuthzIoHttpService,Dn as COLLAB_SUBMIT_CHANGESET_URL_KEY,pn as COLLAB_WEB_SOCKET_URL_KEY,Ae as CollaborationController,tt as CollaborationEntity,Rt as CollaborationSession,ce as CollaborationSessionService,Tt as CollaborationSocketService,w as CollaborationStatus,_o as CollaborationStatusDisplay,js as CommentService,Ge as DataLoaderController,Ue as DesktopCollaborationStatusDisplayController,Ot as DocCollaborationEntity,In as HEARTBEAT_INTERVAL_KEY,Us as HEARTBEAT_TIMEOUT_KEY,$s as ICollaborationSocketService,Ws as IURLService,Ut as ImageIoService,Rn as LOCAL_CACHE_INTERVAL_KEY,Pn as LOGIN_URL_KEY,D as LocalCacheService,bn as RETRY_CONNECTING_MAX_COUNT_KEY,Da as SEND_CHANGESET_TIMEOUT_KEY,fn as SNAPSHOT_SERVER_URL_KEY,gn as SNAPSHOT_URL_KEY,G as SessionStatus,Kr as SheetCollabCursorShape,Dt as SheetCollaborationEntity,Mt as SnapshotServerOverHTTPService,Lt as UniverCollaborationClientPlugin,ta as WebURLService,Un as deserializeToCombResponse,Mn as serializeCombRequest};