@univerjs-pro/collaboration-client 0.3.0-alpha.1 → 0.3.0-nightly.202410101606

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 _0x27ba00=_0x1a62;(function(_0xedfb6b,_0x187e7b){const _0x1c2e52=_0x1a62,_0x28aeb4=_0xedfb6b();while(!![]){try{const _0x1c3a43=parseInt(_0x1c2e52(0x13d))/0x1*(-parseInt(_0x1c2e52(0x30c))/0x2)+-parseInt(_0x1c2e52(0x1da))/0x3*(parseInt(_0x1c2e52(0x2ca))/0x4)+parseInt(_0x1c2e52(0x222))/0x5+parseInt(_0x1c2e52(0x376))/0x6+-parseInt(_0x1c2e52(0x249))/0x7*(parseInt(_0x1c2e52(0x17b))/0x8)+-parseInt(_0x1c2e52(0x238))/0x9+parseInt(_0x1c2e52(0x343))/0xa*(parseInt(_0x1c2e52(0x221))/0xb);if(_0x1c3a43===_0x187e7b)break;else _0x28aeb4['push'](_0x28aeb4['shift']());}catch(_0x2c42ff){_0x28aeb4['push'](_0x28aeb4['shift']());}}}(_0x40b2,0x829b3));var zs=Object[_0x27ba00(0x198)],Zs=(_0x2f96aa,_0x5cc6be,_0x2899d9)=>_0x5cc6be in _0x2f96aa?zs(_0x2f96aa,_0x5cc6be,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2899d9}):_0x2f96aa[_0x5cc6be]=_0x2899d9,l=(_0x50fd13,_0x5bdfc4,_0x483473)=>Zs(_0x50fd13,typeof _0x5bdfc4!='symbol'?_0x5bdfc4+'':_0x5bdfc4,_0x483473);import{createIdentifier as _0x2d9842,Inject as _0x27d762,Disposable as _0x10a60d,DisposableCollection as _0x23cc70,toDisposable as _0x10763a,IConfigService as _0xeb1b98,ILogService as _0x1dd153,UserManagerService as _0x5a5fa2,UniverInstanceType as _0x28cb79,IUniverInstanceService as _0x4a4945,LocaleService as _0x5d963b,Optional as _0x3a7ea6,RxDisposable as _0x504ec7,Injector as _0x2a6c13,Tools as _0x38eaa3,ILocalStorageService as _0x441955,ICommandService as _0xf80f3b,JSONX as _0x1eddbc,CommandType as _0x38cb05,IPermissionService as _0xdc2a7e,IUndoRedoService as _0x3b566c,sequenceExecute as _0x312bc3,Rectangle as _0x3b9a06,debounce as _0x224ffa,OnLifecycle as _0x43e6ff,LifecycleStages as _0x2baed3,COLORS as _0x460073,ColorKit as _0x870dc0,ThemeService as _0x5574a0,fromEventSubject as _0x3a4206,useDependency as _0x18c223,connectInjector as _0x2c7159,Workbook as _0xcbf837,isInternalEditorID as _0x3682dd,LocalUndoRedoService as _0x231523,IContextService as _0x3eb638,DependentOn as _0x954fb6,Plugin as _0x2b5559,IAuthzIoService as _0x295788,mergeOverrideWithDependencies as _0x40b69d}from'@univerjs/core';import{Subject as _0x1a4ff5,merge as _0x4c28c6,takeUntil as _0x350758,BehaviorSubject as _0x23c814,distinctUntilChanged as _0x8c1afe,fromEvent as _0x1d5cc2,map as _0x5a8977,shareReplay as _0x416754,take as _0x542947,of as _0x215f7f,debounceTime as _0x907c69,filter as _0x3a4a54,switchMap as _0xdc9d7a,combineLatest as _0x1d8b8d,concatMap as _0x28894e,mapTo as _0x5a384c}from'rxjs';import{map as _0x42ddbb,take as _0xf7175c,filter as _0x2e3311,delay as _0x580b83,throttleTime as _0x25ed9c,takeUntil as _0x541db9,switchMap as _0x170d0f}from'rxjs/operators';import{MessageType as _0x104514,Tooltip as _0x22317b}from'@univerjs/design';import{IBeforeCloseService as _0x5e457c,IMessageService as _0x17da32,INotificationService as _0x3319e0,useObservable as _0x1a9e47,BuiltInUIPart as _0x3b6b42,IUIPartsService as _0x37e53f}from'@univerjs/ui';import{HTTPService as _0x3fd702,WebSocketService as _0x2e30ea,MergeInterceptorFactory as _0x2966fa,HTTPRequest as _0x1ccb75,IHTTPImplementation as _0xcdd277,XHRHTTPImplementation as _0x1a818b,ThresholdInterceptorFactory as _0x18dec9}from'@univerjs/network';import{CollaborationEvent as _0x6fa194,parseChangesetToProtocol as _0x348189,ISnapshotServerService as _0x2638ed,isTransformMutationFailure as _0x25fecd,isTransformMutationsWithChangesetSuccess as _0x1476be,ITransformService as _0x29f88d,RevisionService as _0x3a9a12,mapDocumentTypeToUniverType as _0x49b8c6,isTransformChangesetsSuccess as _0x246037,CompressMutationService as _0x1aacdc,parseProtocolChangeset as _0x3e0428,SnapshotService as _0x55dfa3,textEncoder as _0x55dc89,b64DecodeUnicode as _0x21fcd3,isTransformMutationsWithChangesetFailure as _0x539600,UniverCollaborationPlugin as _0x15fcc2}from'@univerjs-pro/collaboration';import{ITelemetryService as _0x3c3c5e}from'@univerjs/telemetry';import{DocSelectionManagerService as _0x4f65a4,RichTextEditingMutation as _0x4ee1d3,SetTextSelectionsOperation as _0x5dfba4,DocSkeletonManagerService as _0x12f84e}from'@univerjs/docs';import{DocIMEInputManagerService as _0x24ee3e,DocStateChangeManagerService as _0x1981c4,NodePositionConvertToCursor as _0x368f8a,isValidRectRange as _0x4de1d0,NodePositionConvertToRectRange as _0x511433,TEXT_RANGE_LAYER_INDEX as _0x5e95a3,SetDocZoomRatioOperation as _0x3b6457}from'@univerjs/docs-ui';import{SheetsSelectionsService as _0x3145be,SetSelectionsOperation as _0x5b7f43,InsertSheetMutation as _0x2e3a28,EmptyMutation as _0x574c93,WorkbookEditablePermission as _0x474cf8,RefRangeService as _0x3cb22f,EffectRefRangId as _0x415f84,handleIRemoveRow as _0x120052,handleIRemoveCol as _0x4684c4,handleMoveRange as _0x1ec3fa,handleInsertRow as _0x519be2,handleInsertRangeMoveRight as _0x5c4fbb,handleInsertRangeMoveDown as _0x3f46b0,handleInsertCol as _0x54694a,handleDeleteRangeMoveUp as _0x4e8d6c,handleDeleteRangeMoveLeft as _0x325c1a,runRefRangeMutations as _0x4c70ed,SetWorksheetActivateCommand as _0x19e4e3}from'@univerjs/sheets';import{IRenderManagerService as _0x57cdea,Shape as _0x916b9e,Rect as _0x3dd5a3,getColor as _0x54377d,RegularPolygon as _0x3f4a1e,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x510a85,Vector2 as _0x52f556}from'@univerjs/engine-render';import{ImageSourceType as _0x3669a1,ImageUploadStatusType as _0x49c411,IImageIoService as _0xdaa1d3}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x40c2a5,serializeRangeWithSheet as _0x4dc523}from'@univerjs/engine-formula';import{SheetSkeletonManagerService as _0x485edb,VIEWPORT_KEY as _0x4cba9b,getCoordByCell as _0x8c95be,getSheetObject as _0xd2383f,SheetPermissionInitController as _0xfc27fa}from'@univerjs/sheets-ui';import _0x3ebc85,{forwardRef as _0x58d378,useRef as _0x1984ee,createElement as _0x86cf07,useCallback as _0x692936}from'react';import _0x501083 from'clsx';import{IRemoteInstanceService as _0x321b9c}from'@univerjs/rpc';import{getAttachHeader as _0x371ad3}from'@univerjs-pro/license';const fn=_0x27ba00(0x11c),mn=_0x27ba00(0xc5),gn='SNAPSHOT_URL_KEY',Da='SEND_CHANGESET_TIMEOUT',Sn=0x7d0,pn=_0x27ba00(0x1fc),vn='ws://127.0.0.1:8000/universer-api/comb/connect',In=_0x27ba00(0x2e9),En=0x7530,Us=_0x27ba00(0x320),Ms=0x4e20,Cn=0x4e20,bn=_0x27ba00(0x19a),Tn=0x3,Rn='LOCAL_CACHE_INTERVAL',On=0x3e8,Dn='COLLAB_SUBMIT_CHANGESET_URL',wn='/universer-api/comb',Pn=_0x27ba00(0x121),yn=_0x27ba00(0x24b);var As=(_0x21507c=>(_0x21507c[_0x21507c[_0x27ba00(0x36d)]=0x0]='UNDEFINED',_0x21507c[_0x21507c['OK']=0x1]='OK',_0x21507c[_0x21507c['INTERNAL_ERROR']=0x2]=_0x27ba00(0x15a),_0x21507c[_0x21507c[_0x27ba00(0x3cb)]=0x3]=_0x27ba00(0x3cb),_0x21507c[_0x21507c[_0x27ba00(0x264)]=0x4]='NOT_FOUND',_0x21507c[_0x21507c[_0x27ba00(0x2e5)]=0x5]=_0x27ba00(0x2e5),_0x21507c[_0x21507c['ALREADY_EXISTS']=0x6]=_0x27ba00(0x1f7),_0x21507c[_0x21507c[_0x27ba00(0x365)]=0x7]=_0x27ba00(0x365),_0x21507c[_0x21507c[_0x27ba00(0x131)]=0x8]='TOO_MANY_REQUESTS',_0x21507c[_0x21507c['COMPLETION_FINISHED']=0x9]='COMPLETION_FINISHED',_0x21507c[_0x21507c[_0x27ba00(0x383)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x21507c[_0x21507c[_0x27ba00(0x214)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x21507c[_0x21507c[_0x27ba00(0x2be)]=0x1772]=_0x27ba00(0x2be),_0x21507c[_0x21507c['APPLY_REJECT']=0x1b59]=_0x27ba00(0x275),_0x21507c[_0x21507c[_0x27ba00(0x3b3)]=0x1b5a]=_0x27ba00(0x3b3),_0x21507c[_0x21507c[_0x27ba00(0x215)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x21507c[_0x21507c[_0x27ba00(0x278)]=0x1b5c]=_0x27ba00(0x278),_0x21507c[_0x21507c[_0x27ba00(0x1e7)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x21507c[_0x21507c[_0x27ba00(0x3c4)]=0x2329]=_0x27ba00(0x3c4),_0x21507c[_0x21507c[_0x27ba00(0x316)]=0x232a]=_0x27ba00(0x316),_0x21507c[_0x21507c['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x21507c[_0x21507c[_0x27ba00(0x2dc)]=0x232c]=_0x27ba00(0x2dc),_0x21507c[_0x21507c['LICENSE_DISTRO_REJECTED']=0x232d]=_0x27ba00(0x2ad),_0x21507c[_0x21507c[_0x27ba00(0x322)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x21507c[_0x21507c[_0x27ba00(0x241)]=0x2712]=_0x27ba00(0x241),_0x21507c[_0x21507c[_0x27ba00(0x135)]=0x2713]=_0x27ba00(0x135),_0x21507c[_0x21507c[_0x27ba00(0x1c5)]=0x2714]=_0x27ba00(0x1c5),_0x21507c[_0x21507c[_0x27ba00(0xec)]=-0x1]=_0x27ba00(0xec),_0x21507c))(As||{}),H=(_0x181582=>(_0x181582[_0x181582[_0x27ba00(0x7a)]=0x0]=_0x27ba00(0x7a),_0x181582[_0x181582[_0x27ba00(0x2e3)]=0x1]='UNIVER_DOC',_0x181582[_0x181582[_0x27ba00(0xdf)]=0x2]=_0x27ba00(0xdf),_0x181582[_0x181582['UNIVER_SLIDE']=0x3]='UNIVER_SLIDE',_0x181582[_0x181582[_0x27ba00(0xfa)]=0x4]='UNIVER_PROJECT',_0x181582[_0x181582[_0x27ba00(0xec)]=-0x1]=_0x27ba00(0xec),_0x181582))(H||{}),I=(_0x3a8d45=>(_0x3a8d45[_0x3a8d45[_0x27ba00(0x1d2)]=0x0]=_0x27ba00(0x1d2),_0x3a8d45[_0x3a8d45['HELLO']=0x1]=_0x27ba00(0x167),_0x3a8d45[_0x3a8d45[_0x27ba00(0x32d)]=0x2]=_0x27ba00(0x32d),_0x3a8d45[_0x3a8d45['LEAVE']=0x3]='LEAVE',_0x3a8d45[_0x3a8d45[_0x27ba00(0x287)]=0x4]=_0x27ba00(0x287),_0x3a8d45[_0x3a8d45[_0x27ba00(0x301)]=0x5]=_0x27ba00(0x301),_0x3a8d45[_0x3a8d45[_0x27ba00(0x156)]=0x6]=_0x27ba00(0x156),_0x3a8d45[_0x3a8d45[_0x27ba00(0xec)]=-0x1]=_0x27ba00(0xec),_0x3a8d45))(I||{}),Vt=(_0x3ffc63=>(_0x3ffc63[_0x3ffc63[_0x27ba00(0x11f)]=0x0]=_0x27ba00(0x11f),_0x3ffc63[_0x3ffc63['OK']=0x1]='OK',_0x3ffc63[_0x3ffc63[_0x27ba00(0x2f5)]=0x2]='FAIL',_0x3ffc63[_0x3ffc63[_0x27ba00(0xec)]=-0x1]=_0x27ba00(0xec),_0x3ffc63))(Vt||{}),Ls=(_0x3eb387=>(_0x3eb387[_0x3eb387[_0x27ba00(0x3c7)]=0x0]=_0x27ba00(0x3c7),_0x3eb387[_0x3eb387['HttpImport']=0x1]='HttpImport',_0x3eb387[_0x3eb387['HttpExport']=0x2]=_0x27ba00(0x2a2),_0x3eb387[_0x3eb387[_0x27ba00(0x185)]=0x3]=_0x27ba00(0x185),_0x3eb387[_0x3eb387['UnitSnapshot']=0x4]='UnitSnapshot',_0x3eb387[_0x3eb387[_0x27ba00(0xec)]=-0x1]=_0x27ba00(0xec),_0x3eb387))(Ls||{});const L=_0x27ba00(0x35c),Nn={};function Un(_0x246427){const _0x1917f7=_0x27ba00;var _0x373863,_0x211054,_0x10c328,_0x2eb5f9;const _0x10d978=_0x246427[_0x1917f7(0x216)],_0x3f3c2c=JSON[_0x1917f7(0xfc)](_0x10d978);switch(_0x3f3c2c[_0x1917f7(0xbb)]){case I[_0x1917f7(0x301)]:case I[_0x1917f7(0x167)]:{const _0x3edb36=_0x3f3c2c[_0x1917f7(0xa0)];return{..._0x3f3c2c,'data':_0x3edb36,'cmd':_0x3f3c2c[_0x1917f7(0xbb)]};}case I[_0x1917f7(0x32d)]:{const _0xc66e5f=_0x3f3c2c[_0x1917f7(0x2ed)];return{..._0x3f3c2c,'data':_0xc66e5f,'cmd':_0x3f3c2c[_0x1917f7(0xbb)]};}case I['RECV']:{const _0x2a4c76=_0x3f3c2c[_0x1917f7(0x33b)];switch(_0x2a4c76[_0x1917f7(0xc3)]){case _0x6fa194[_0x1917f7(0x1d3)]:return{..._0x3f3c2c,'data':{..._0x2a4c76,'data':(_0x373863=_0x2a4c76['permissionRejEvent'])==null?void 0x0:_0x373863['cs']},'cmd':_0x3f3c2c['cmd']};case _0x6fa194[_0x1917f7(0xdc)]:return{..._0x3f3c2c,'data':{..._0x2a4c76,'data':(_0x211054=_0x2a4c76[_0x1917f7(0xaf)])==null?void 0x0:_0x211054['cs']},'cmd':_0x3f3c2c[_0x1917f7(0xbb)]};case _0x6fa194[_0x1917f7(0xad)]:return{..._0x3f3c2c,'data':{..._0x2a4c76,'data':(_0x10c328=_0x2a4c76[_0x1917f7(0x115)])==null?void 0x0:_0x10c328['cs']},'cmd':_0x3f3c2c[_0x1917f7(0xbb)]};case _0x6fa194[_0x1917f7(0x308)]:return{..._0x3f3c2c,'data':{..._0x2a4c76,'data':(_0x2eb5f9=_0x2a4c76[_0x1917f7(0x25f)])==null?void 0x0:_0x2eb5f9['cs']},'cmd':_0x3f3c2c[_0x1917f7(0xbb)]};case _0x6fa194[_0x1917f7(0x378)]:return{..._0x3f3c2c,'data':{..._0x2a4c76,'data':_0x2a4c76[_0x1917f7(0x2ea)]},'cmd':_0x3f3c2c[_0x1917f7(0xbb)]};case _0x6fa194[_0x1917f7(0x120)]:return{..._0x3f3c2c,'data':{..._0x2a4c76,'data':_0x2a4c76['joinEvent']},'cmd':_0x3f3c2c['cmd']};case _0x6fa194[_0x1917f7(0x386)]:return{..._0x3f3c2c,'data':{..._0x2a4c76,'data':_0x2a4c76[_0x1917f7(0x368)]},'cmd':_0x3f3c2c[_0x1917f7(0xbb)]};case _0x6fa194[_0x1917f7(0x1f2)]:return{..._0x3f3c2c,'data':{..._0x2a4c76,'data':_0x2a4c76['liveShareNewHost']},'cmd':_0x3f3c2c['cmd']};case _0x6fa194['LIVESHARE_FETCH_OPERATIONS']:case _0x6fa194[_0x1917f7(0x335)]:return{..._0x3f3c2c,'data':{..._0x2a4c76,'data':_0x2a4c76['liveShareOperation']},'cmd':_0x3f3c2c['cmd']};case _0x6fa194['LIVESHARE_TERMINATE']:return{..._0x3f3c2c,'data':{..._0x2a4c76,'data':_0x2a4c76[_0x1917f7(0x2d3)]},'cmd':_0x3f3c2c[_0x1917f7(0xbb)]};case _0x6fa194[_0x1917f7(0x3ba)]:return{..._0x3f3c2c,'data':_0x2a4c76,'cmd':_0x3f3c2c[_0x1917f7(0xbb)]};case _0x6fa194[_0x1917f7(0x3c2)]:return{..._0x3f3c2c,'data':{..._0x2a4c76,'data':_0x2a4c76['commentUpdateEvent']},'cmd':_0x3f3c2c['cmd']};case _0x6fa194[_0x1917f7(0x3a7)]:return{..._0x3f3c2c,'data':{..._0x2a4c76,'data':_0x2a4c76[_0x1917f7(0xeb)]},'cmd':_0x3f3c2c[_0x1917f7(0xbb)]};case _0x6fa194['SHOULD_CLOSE_CONN']:return{..._0x3f3c2c,'data':{..._0x2a4c76,'data':_0x2a4c76[_0x1917f7(0x2b7)]},'cmd':_0x3f3c2c[_0x1917f7(0xbb)]};default:return _0x3f3c2c;}}default:return _0x3f3c2c;}}function Mn(_0x20a36d){const _0x126122=_0x27ba00;switch(_0x20a36d[_0x126122(0xbb)]){case I[_0x126122(0x301)]:case I['HELLO']:return JSON[_0x126122(0xea)]({'cmd':_0x20a36d['cmd'],'routeKey':_0x20a36d[_0x126122(0x2fb)]});case I['INGEST']:{let _0x1ca286;switch(_0x20a36d[_0x126122(0x216)][_0x126122(0xc3)]){case _0x6fa194[_0x126122(0x378)]:{_0x1ca286={'eventID':_0x6fa194[_0x126122(0x378)],'updateCursorEvent':_0x20a36d[_0x126122(0x216)]['data']};break;}case _0x6fa194[_0x126122(0x386)]:{_0x1ca286={'eventID':_0x6fa194[_0x126122(0x386)],'leaveEvent':_0x20a36d[_0x126122(0x216)][_0x126122(0x216)]};break;}case _0x6fa194[_0x126122(0x120)]:{_0x1ca286={'eventID':_0x6fa194[_0x126122(0x120)],'joinEvent':_0x20a36d[_0x126122(0x216)]['data']};break;}case _0x6fa194[_0x126122(0x1f2)]:{_0x1ca286={'eventID':_0x6fa194[_0x126122(0x1f2)],'liveShareNewHost':_0x20a36d[_0x126122(0x216)][_0x126122(0x216)]};break;}case _0x6fa194['LIVESHARE_OPERATION']:{_0x1ca286={'eventID':_0x6fa194[_0x126122(0x335)],'liveShareOperation':_0x20a36d[_0x126122(0x216)][_0x126122(0x216)]};break;}case _0x6fa194[_0x126122(0x1b9)]:{_0x1ca286={'eventID':_0x6fa194['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x20a36d[_0x126122(0x216)][_0x126122(0x216)]};break;}case _0x6fa194[_0x126122(0x286)]:{_0x1ca286={'eventID':_0x6fa194[_0x126122(0x286)],'liveShareRequestHost':_0x20a36d['data']['data']};break;}case _0x6fa194[_0x126122(0x1f5)]:{_0x1ca286={'eventID':_0x6fa194[_0x126122(0x1f5)]};break;}default:_0x1ca286={'eventID':_0x20a36d[_0x126122(0x216)][_0x126122(0xc3)]};}return JSON[_0x126122(0xea)]({'cmd':_0x20a36d[_0x126122(0xbb)],'routeKey':_0x20a36d[_0x126122(0x2fb)],'collaMsg':_0x1ca286});}case I['JOIN']:return JSON[_0x126122(0xea)]({'cmd':_0x20a36d[_0x126122(0xbb)],'routeKey':_0x20a36d['routeKey'],'joinReq':_0x20a36d[_0x126122(0x216)]});case I[_0x126122(0xf3)]:return JSON[_0x126122(0xea)]({'cmd':_0x20a36d[_0x126122(0xbb)],'routeKey':_0x20a36d['routeKey'],'leaveReq':_0x20a36d[_0x126122(0x216)]});default:throw new Error(_0x126122(0x3c9));}}var An=Object[_0x27ba00(0x198)],Ln=Object[_0x27ba00(0x280)],$n=(_0x135807,_0x13e416,_0x1379a4,_0x2d1338)=>{const _0x3cbdbf=_0x27ba00;for(var _0x530427=_0x2d1338>0x1?void 0x0:_0x2d1338?Ln(_0x13e416,_0x1379a4):_0x13e416,_0x612af=_0x135807[_0x3cbdbf(0x117)]-0x1,_0x328419;_0x612af>=0x0;_0x612af--)(_0x328419=_0x135807[_0x612af])&&(_0x530427=(_0x2d1338?_0x328419(_0x13e416,_0x1379a4,_0x530427):_0x328419(_0x530427))||_0x530427);return _0x2d1338&&_0x530427&&An(_0x13e416,_0x1379a4,_0x530427),_0x530427;},Re=(_0x1a7619,_0x8a114)=>(_0x11cc41,_0x45a91c)=>_0x8a114(_0x11cc41,_0x45a91c,_0x1a7619);const $s=_0x2d9842(_0x27ba00(0x2a1));function jn(_0x1cfe3c,_0x4705d4,_0x2c4586){const _0x11ee4a=_0x27ba00;return _0x1cfe3c+'/'+_0x4705d4+'/unit/'+_0x2c4586+_0x11ee4a(0x32b);}let Tt=class extends _0x10a60d{constructor(_0x2067d7,_0x33038f,_0x37c2cd,_0x20c809,_0xb600ac){const _0x402d19=_0x27ba00;super(),this[_0x402d19(0x25b)]=_0x2067d7,this['_ws']=_0x33038f,this[_0x402d19(0x19e)]=_0x37c2cd,this['_logService']=_0x20c809,this[_0x402d19(0x395)]=_0xb600ac;}[_0x27ba00(0x253)](_0x505a45){const _0x3bda55=_0x27ba00,_0x5846b1=this[_0x3bda55(0x2bc)]['createSocket'](_0x505a45);if(!_0x5846b1)throw new Error(_0x3bda55(0x389));const _0x10f52e=new _0x23cc70(),_0x1d34df=new _0x1a4ff5();_0x10f52e['add'](_0x5846b1[_0x3bda55(0x1ed)][_0x3bda55(0x3c1)](_0x3d5b22=>_0x1d34df['next'](_0x3d5b22))),_0x10f52e[_0x3bda55(0x30d)](_0x10763a(()=>_0x1d34df[_0x3bda55(0x373)]()));const _0x572c8c=new _0x1a4ff5();_0x10f52e[_0x3bda55(0x30d)](_0x5846b1[_0x3bda55(0xb4)]['subscribe'](_0x195de7=>_0x572c8c[_0x3bda55(0x8c)](_0x195de7))),_0x10f52e[_0x3bda55(0x30d)](_0x10763a(()=>_0x572c8c[_0x3bda55(0x373)]()));const _0x3de35e=new _0x1a4ff5();_0x10f52e[_0x3bda55(0x30d)](_0x5846b1['message$'][_0x3bda55(0x3c1)](_0x5e7900=>{const _0x4abc5b=_0x3bda55,_0x358d53=Un(_0x5e7900);_0x3de35e[_0x4abc5b(0x8c)](_0x358d53);})),_0x10f52e[_0x3bda55(0x30d)](_0x10763a(()=>_0x3de35e[_0x3bda55(0x373)]()));let _0x4301b9;const _0xbddeec=()=>{const _0x33d725=_0x3bda55;_0x572c8c['next'](new Event(_0x33d725(0x3c8))),_0x1d34df[_0x33d725(0x8c)](new CloseEvent('connection\x20error')),_0x4301b9[_0x33d725(0x369)]();};return _0x4301b9={'memberID':'','close$':_0x1d34df[_0x3bda55(0x14e)](),'error$':_0x572c8c[_0x3bda55(0x14e)](),'open$':_0x5846b1[_0x3bda55(0x104)],'message$':_0x3de35e[_0x3bda55(0x14e)](),'send':_0x292efa=>{const _0x52d559=_0x3bda55;if(_0x292efa['cmd']===I[_0x52d559(0x287)]){if(_0x292efa[_0x52d559(0x216)][_0x52d559(0xc3)]===_0x6fa194[_0x52d559(0x18f)]){this[_0x52d559(0x3d7)](_0x4301b9,_0x292efa[_0x52d559(0x216)])[_0x52d559(0x269)](_0x2687cd=>{const _0x426c33=_0x52d559;this[_0x426c33(0xd6)][_0x426c33(0x1e5)](_0x2687cd),_0xbddeec();});return;}if(_0x292efa[_0x52d559(0x216)]['eventID']===_0x6fa194[_0x52d559(0x18d)]){const _0x4739b6=_0x292efa[_0x52d559(0x216)];this[_0x52d559(0x385)](_0x4739b6)[_0x52d559(0x20c)](_0x2b03c2=>{const _0x2cfc3e=_0x52d559;_0x3de35e['next']({'cmd':I[_0x2cfc3e(0x156)],'code':Vt['OK'],'routeKey':_0x4739b6[_0x2cfc3e(0x216)][_0x2cfc3e(0x12c)],'routeType':'','data':{'eventID':_0x6fa194[_0x2cfc3e(0x3cc)],'data':{'changesets':_0x2b03c2}}});})[_0x52d559(0x269)](_0x5f5968=>{this['_logService']['error'](_0x5f5968),_0xbddeec();});return;}}_0x5846b1['send'](Mn(_0x292efa));},'close':()=>{const _0x537e7e=_0x3bda55;_0x5846b1['close'](),_0x10f52e[_0x537e7e(0x323)]();}},_0x4301b9;}async[_0x27ba00(0x3d7)](_0x2fa485,_0x115e85){const _0xbf201f=_0x27ba00;var _0x1a6519,_0x7d963d;const {unitType:_0x302ef4,unitID:_0x2fada5,changeset:_0x3b855b}=_0x115e85['data'],_0x21ac81={'unitID':_0x2fada5,'memberID':_0x2fa485['memberID'],'type':_0x302ef4,'changeset':_0x348189(_0x3b855b)},_0x48cf16=this[_0xbf201f(0x19e)][_0xbf201f(0x3c6)](Dn),_0x2b9ea7=this[_0xbf201f(0x19e)][_0xbf201f(0x3c6)](L),_0x3d7acc=jn((_0x7d963d=(_0x1a6519=_0x2b9ea7==null?void 0x0:_0x2b9ea7[_0xbf201f(0x2c3)])!=null?_0x1a6519:_0x48cf16)!=null?_0x7d963d:wn,_0x302ef4,_0x2fada5);try{await this[_0xbf201f(0x25b)][_0xbf201f(0x1c7)](_0x3d7acc,{'body':_0x21ac81});}catch(_0x3136f0){throw this[_0xbf201f(0xd6)]['error'](_0xbf201f(0xaa),_0xbf201f(0xf5)),_0x3136f0;}}async['_fetchMissChangesets'](_0x5bd645){const _0x57dd6f=_0x27ba00,{unitID:_0x4b49a1,from:_0x3ee781,to:_0x405deb,unitType:_0x25079e}=_0x5bd645[_0x57dd6f(0x216)];return(await this[_0x57dd6f(0x395)][_0x57dd6f(0x1c0)]({'metadata':void 0x0},{'unitID':_0x4b49a1,'type':_0x25079e,'from':_0x3ee781,'to':_0x405deb}))[_0x57dd6f(0x218)];}};function _0x40b2(){const _0x2d0986=['updateCursorEvent','textRanges','push','joinRsp','_selfUnitIDs','key','userID','getUndoRedoMutationParamsCache','fetching\x20missing\x20changesets\x20from\x20','_collaborationPaused','subunit','FAIL','_renderManagerService','put','setActiveRange','_timeoutTimer','currentTheme$','routeKey','arc','&to=','getResourcesRequest','_registerRenderDependencies','onPointerMove$','HEARTBEAT','_incrementRevisionNumber','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','onRemoteChangeset','[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.','_refreshCollabCursors','?size=','CHANGESET_REJ','from','_members','skeleton','8XNrMmb','add','univerjs-icon\x20univerjs-icon-','UUID','withCredentials','clearTimeout','enableSingleActiveInstanceLock','exhaustSavingTask','_onRemoteACK','jiqing500','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','NOT_COLLAB','beginPath','setInterval','generateRandomId','_clearCollaborationTimeoutTimer','pipe','_undoStacks','_initStatusListener','updateMember','HEARTBEAT_TIMEOUT','call','YUUMI_UNABLE_LOAD_URL','dispose','Starting','snapshotServerUrl','_onUserJoin','_scene','evenodd','isPermissionRej','_transformService','/new_changes','baseRev','JOIN','includes','saveImage','_syncEditingCollabCursor','reduce','_send','size','sheetID','LIVESHARE_OPERATION','popstate','[CollaborationUndoRedoService]','NO_OTHER_CLIENTS_EDITING','FromArray','FileId','collaMsg','univer-online','getRenderById','_getLoginPath','collabStatus.fetchMiss','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_handleJoinEvent','getSheetBySheetId','12910RXLtRS','toString','[CollaborationSessionService]','show','loadOfflineData','/fetchmissing?from=','_checkMissing','_config','getImageSourceCache','_decreaseWaiting','onCommentUpdate','_cachedData','\x0aCurrent:\x20','all','onload','session.room-full','setCurrentUser','visibilityState','color','_roomMembers','univer-pro.collaboration-client.single-active-unit-service','COMPRESS_MUTATION_SEND','event$','searchParams','Univer','collaboration-client.config','_getSheetObject','children','_waitCount','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','m1Prime','getCurrentSelections','_createInitialState','Warning','INVALID_ARGUMENT','_getCtorByUniverType','getSheetBlock','leaveEvent','close','_HTTPService','0\x200\x2016\x2016','session.will-retry','UNDEFINED','_sendHeartbeat','_candidateSocket','objects','set','collab-text-range-','complete','incrementRevOfUnit','getCellPositionByOffset','697944trgzpu','_listenToOnlineEvent','UPDATE_CURSOR','c1Prime','snapshot','_onFetchMissResult','capture','entries','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','PENDING','rgba(255,\x20255,\x20255,\x200.01)','saveSheetBlock','_initCloseConn','CHANGESET_REVISION_CONFILICT','setParam','_fetchMissChangesets','USERS_LEAVE','registerRefRange','_uiPartsService','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','compose','lineTo','urlChange$','setTimeout','cursorInfo','getUnhiddenWorksheets','collabWebSocketUrl','_saveCache','forEach','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_snapshotServerService','restore','updateCollaborator','transformChangesets','_telemetryService','_lockTransition','_createSocket','className','_transformRemoteChangesetByIMECache','attrs','_queuedRemoteChangesets','UNIVER_COLLABORATION_CLIENT_PLUGIN','pending','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','saveChangeset','toRgbString','uni.network.url-service','_unitID','UPDATE_PERMISSION_OBJ','onMouseMove','substring','_scheduleHeartbeat','getParam','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','conflict.title','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','appendMutation','_socketService','getMemberID','hide','APPLY_NON_SEQUENTIAL_REVISION','_handler','_colorAssignService','addObject','roomMembers$','originalMeta','transformMutationsWithChangeset','MSG_FOR_ERROR','resolve','cursorInfo$','mutations','visibilitychange','reverse','confirm','subscribe','COMMENT_UPDATE','_hover','LICENSE_MAX_UNITS_EXCEEDED','_joinRoom','getConfig','Undefined','connection\x20error','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','currentSkeleton$','PERMISSION_DENIED','PSEUDO_FETCH_MISSING_RESULT','_transformSelections','_acknowledgedAwaitingChangeset','/collaborator','OTHER_CLIENTS_EDITING','registerComponent','\x20to\x20','_showConflictNotification','none','_drawTextRange','displayName','_submitChangeset','range','_clearHeartbeatTimer','/unit/','_undoRedoService','_sendingTimer','onRemoteAck','encodeURIComponent','_pendingMutations','onSendChangeset','[FetchMissState]','addImageSourceCache','workbook','getActiveRange','collaboration.closeRoom','toggleOnline','_initCommandExecutedListener','defIds','_getSignURL','getValue','copyFileMeta','_startCollaboration','onPointerLeave$','_imageSourceCache','reject','url(#$1','_revisionService','gold400','verdancy600','_localStorageService','UNIVER_UNKNOWN','_init','_cursors','update','VIEW_MAIN','_getRedoStack','members','_sendHeartbeatTimer','transformStack\x20failed!','OnLineSingle','_collabCursorState$','createInstance','_online','getOwnPropertySymbols','/object/','_retryCount','doc.mutation.rich-text-editing','_saveTaskMap','next','localeService','synced','_transformIMECache','_awaitingChangeset','_onRecvEvent','_handleHover','_updateURLWithCurrentState','_transformStack','getItem','currentColor','_substituteUndoStack','_eventUnsubscribe','objectID','collabStatus.offline','_onRemoteRejected','getMember','Error\x20on\x20receiving\x20event','bottom','_listenToOfflineEvent','infoRsp','onTransformChange$','signUrlServerUrl','clearInterval','_permissionService','_onCursorUpdate','_scheduleCollaborationTimeoutTimer','...','sessionStatus','roles','[CollaborationSession]','FETCH_MISS','onRemoteRej','NEW_CHANGESETS','selections','csAckEvent','ranges','setShapeProps','change$','0\x200\x2017\x2016','error$','_unitOnClients','executeCommand','startTime','params','onlineStatus','indexOf','cmd','getUnit','_sheetSkeletonManagerService','session','onTransformIME','DEFAULT_FILE_NAME','append','/-/object/-/batch_allowed','eventID','collabStatus.syncing','/universer-api/snapshot','defs','state','_ensureSubject','_socket$','_heartbeatTimer','now','_onRemoteChangeset','assignAColorForMemberID','_type','font','assign','?url=','revision','getTime','top','type','_logService','_exhaustRemoteChangesetQueue','apply','_clearTimeoutTimer','_startTelemetryCollaborationNewChangeset','UniverIcon','CHANGESET_ACK','_getUploadFileURL','updatePermissionPoint','UNIVER_SHEET','purple300','delete','getUnitType','_univerInstanceService','_httpService','replace','_updateSubUnitFromURLParams','awaiting','hasOwnProperty','listCollaborators','stringify','updatePermissionObjEvent','UNRECOGNIZED','makeDirty','[OfflineState]:\x20received\x20acknowledgement.','_collabCursorController','_beforeCloseService','AUTHZ_URL_KEY','_docTransformIMECacheService','LEAVE','[PendingState]:\x20received\x20acknowledgement.','submit\x20changeset\x20error!','enableOfflineEditing','_transformUndoredo','round','_loadDoc','UNIVER_PROJECT','getCollabCursors$','parse','1em','getOffsetConfig','_tryEnsureSocket','transformUndoRedo','_name','status','_toggleOffline','open$','result','readAsDataURL','tag','roomMembers','body','_initUnitPermissionChange','_replayCachedMutations','sessionStatus$','_retryConnectingTimer','removeMember','_cursorShapes','startColumn','_themeService','_drawAnchor','save','onlineStatusTitle','newCsEvent','off-line-single','length','collaboration.single-unit.warning','collaboration-client.offline-data-not-saved','_color','_rescheduleHeartbeat','SNAPSHOT_SERVER_URL_KEY','resize','[DataLoaderController]','UNKNOWN_CODE','USERS_ENTER','LOGIN_URL_KEY','_docTransformSelectionsService','_roomMembers$','every','collab-rect-range-','transformIMECache','getUnitStatus$','send','InsertRowCommandId','_localCacheService','_labelPosition','unitID','_stopTelemetryCollaborationNewChangeset','_localeService','unsubscribe','_state','TOO_MANY_REQUESTS','dispose$','_scheduleSaving','newValue','YUUMI_RATE_OVER_LIMIT','\x0aAfter:\x20','_collabSessionService','_context','CONFLICT','resend','onMissedChangesetFetched','collaboratorID','35939GeFpDn','rev','_clearRedo','onMissingChangesets','propertyIsEnumerable','_status$','_clearScheduledTask','_loadSheet','subUnitId','addObjects','getUnitOnRev','_schedule','_remoteChangesetQueue','use','toggleOffline','_notificationService','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','asObservable','_clearOtherTimers','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','createElement','getWorkbookSelections','_docSyncEditingCollabCursorService','onSyncEditingCollabCursor','headers','RECV','_messageService','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','measureText','INTERNAL_ERROR','resourceIDs','_commentService','retryConnectingInterval','_substituteRedoStack','onlyLocal','_instanceService','online','collabCursorState$','setUndoRedoMutationParamsCache','hidden','isArray','_sheetTransformSelectionsService','HELLO','_onOffline','disposeWithMe','column','status$','ONLINE','string','socketService','_throwTelemetryCollaborationNewChangeset','fetchMiss','endColumn','_getAPIPrefix','[CollaborationEntity]','_registerDependencies','idSuffix','getCurrentRevOfUnit','getTypeOfUnitDisposed$','_disableEditing','_sessionStatus$','/universer-api/stream/file/upload','140776hkDPnp','reconnect','onCommandExecuted','split','clear','onPointerEnter$','closePath','width','_session','_cursorInfo$','UnitEmbedded','unit-cache-','_syncEditingCollabCursorService','_createHandler','_docSkeleton','_getScale','socket$','_getSendChangesetTimeout','FETCH_MISSING','trim','SUBMIT_CHANGESET','[OfflineState]:\x20received\x20changeset.','[UniverCollaborationClientPlugin]','getViewport','focused$','red300','_createInitialStateImpl','fill','transform','defineProperty','socket\x20close','RETRY_CONNECTING_MAX_COUNT','_docStateChangeManagerService','icon','_textBubble','_configService','COMPRESS_MUTATION_APPLY','_initModules','addEventListener','_drawRectRange','_shouldReportTelemetry','unit','_unitStatus','_socketReady','_getMergeRange','extend','requestParams','_getAPIPrefixPath','values','image/jpeg','_handleHeartbeatEvent','loadSheet','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_commandService','getImage','_toggleOnline','div','collaboration-session-retry','getCollabEntity','collaborators','createCollaborator','interceptor','LIVESHARE_TERMINATE','_backgroundColor','slice','setItem','height','responseType','getCurrent','fetchMissingChangesets','BASE64','_getDownloadEndpointURL','onStateChange','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','YUUMI_SUBSCRIPTION_NOT_FOUND','_onConnectionOpen','post','on-line-single_clip0_910_349','IDLE','colorChannel1','_socket','RemoveRowCommandId','path','_cursor','_disabled','[CollaborationState]:\x20apply\x20error!','max','UNKNOWN_CMD','PERMISSION_REJ','hovered','min','target','_removeClearOtherTimer','href','/object','159723biHSeu','_scheduleTimestamp','memberID','get','replaceState','file','_event$','telemetry\x20info\x20is\x20not\x20initialized','transformRemoteChangeset','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','transformMutation','error','getTypeOfUnitAdded$','CONNECTOR_DATA_TOO_LARGE','_initResize','/resources','_updateLocalCache','_userManagerService','_setupSubUnitSync','close$','isActive','[SyncedState]:\x20received\x20acknowledgement.','_tryReconnect','OFFLINE','LIVESHARE_NEW_HOST','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_refRangeService','LIVESHARE_FETCH_OPERATIONS','_applyRemoteChangeset','ALREADY_EXISTS','_draw','getAncestorScale','#fff','location','COLLAB_WEB_SOCKET_URL','moveTo','unknown','/allowed','_onCursorDelete','_compressMutationService','_anchorDot','sendChangesetTimeout','_initMergeInterceptor','concat','collab-text-anchor-','AWAITING_WITH_PENDING','find','awaiting_with_pending','_unlockTransition','with','then','_updateStatus','activeSheet$','code','save\x20fail\x20reason\x20is\x20','_getSaveTimeout','black','startsWith','SNAPSHOT_INVALID_SNAPSHOT','APPLY_REVISION_CONFILICT','data','encode','changesets','objectType','unitId','AWAITING','_initRequestHeader','onTransformSelections','DeleteRangeMoveLeftCommandId','getCurrentUser','getSkeleton','19217EkHFSE','2402445OaqDGy','requireSession','_updateLocalCursor','refreshPermission','_shapes','debug','&source=','/block/','_updateState','prototype','_singleActiveUnitService','UNIVER_SLIDE','xlink:href','drawWith','getRoom','editingUnit','endRow','src','image/png','_scheduleClearOtherTimer','collabStatus.notCollab','SYNCED','4763700RBSHPR','image/bmp','_onJoinRoomEvent','url','selection','text','closeSession','map','unload','YUUMI_URL_COL_OUT_OF_RANGE','getUnitId','objectActions','x-univer-host','subscribeEvent','conflict.content','getSheetId','JOINING','294GdflwS','setAlpha','/universer-api/oidc/authpage','{fileID}','_anchor','url(#on-line-single_clip0_910_349)','_range','_id','_change$','_state$','createSocket','_setupBeforeClosingHandler','_initStatusComponent','_assignedColors','syncEditingCollabCursor','override','_entities','_render','_http','_onRefRangeChange','_startSheetCollabCursor','_onMessage','csRejEvent','fetch_missing','univer-online-status-icon','has','registerOnClose','NOT_FOUND','_updateCollabCursors','filter','findNodePositionByCharIndex','_onCombEvent','catch','registerRenderModule','_memberService','getCollabEntity$','_collaborationSessionService','unshift','offline','getRangePointData','_removeRoom','_onConflict','storage','_transformPreviousActiveRange','APPLY_REJECT','_collaborationTimeoutTimer','[PendingState]:\x20received\x20rejection.','APPLY_PERMISSION_DENIED','init','Error','_initEventListeners','backgroundColor','_removeCollabCursors','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','onStarting','getOwnPropertyDescriptor','_colorIndex','session.collaboration-timeout','loadDoc','getDeserializedSheetBlock','off-line-single_clip0_910_343','LIVESHARE_REQUEST_HOST','INGEST','_isPermissionRej','transformSelections','pluginName','fetchThroughInterceptors','/universer-api/file/{fileID}/sign-url','some','_redoStacks','history','_onLocalMutation','fillStyle','_waitForHeartbeatResponse','_transformUndoRedoStack','_urlService','commentUpdate$','_clearLocalCache','_entityInit$','row','_commentUpdate$','pushState','[PendingState]:\x20unhandled\x20univer\x20type:\x20','create','setConfig','Ready','_snapshotService','[CollaborationSessionService]:\x20socket\x20error','univer-pro.collaboration-client-socket-service','HttpExport','getFocusedUnit','_hideTimer','state$','_injector','_docSkeletonManagerService','c2Prime','flatMap','deepClone','_onUserLeave','sheets','LICENSE_DISTRO_REJECTED','method','awaitingChangeset','_sessions','_socketMessageSubscription','MUTATION','getMergeData','fillText','disableLocalCache','fillRule','shouldCloseConn','ACTIVE_UNIT_EVENT_CHANNEL','SUCCUSS','stopTime','_transitionLocked','_ws','_clearUndo','SNAPSHOT_HAS_BEEN_REMOVED','deleteCollaborator','\x20-\x20','m2Prime','saveOfflineData','collabSubmitChangesetUrl','Unknown\x20user','_telemetryInfo','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_getCurrentRevision','_getAnchorBounding','current','68SEXKPU','_lastPointer','Steady','actions','svg','list','getVpScrollXYInfoByPosToVp','permission.content','EXCHANGE_SIGN_URL_SERVER_URL_KEY','liveShareNewHost','transformByState','getInterceptPoints','_startDocCollabCursor','_getUndoStack','_onConnectionFailed','_hovered','M0\x200H16V16H0z','/rev/','LICENSE_EXPORT_SIZE_EXCEEDED','name','_executeRemoteChangeset','ERROR_IMAGE','_collaborationController','updateOfflineData','registerHTTPInterceptor','UNIVER_DOC','univer-online-status-title','UNAUTHENTICATED','roomInfos','InsertRangeMoveDownCommandId','_replaceFileID','HEARTBEAT_INTERVAL'];_0x40b2=function(){return _0x2d0986;};return _0x40b2();}Tt=$n([Re(0x0,_0x27d762(_0x3fd702)),Re(0x1,_0x27d762(_0x2e30ea)),Re(0x2,_0xeb1b98),Re(0x3,_0x1dd153),Re(0x4,_0x2638ed)],Tt);const xn='collaboration_new_changeset';function Hn(_0x38b9b6){const _0x343c6a=_0x27ba00;return JSON['stringify'](_0x38b9b6)[_0x343c6a(0x117)];}class js{constructor(){const _0x5f35bc=_0x27ba00;l(this,'_commentUpdate$',new _0x1a4ff5()),l(this,_0x5f35bc(0x295),this[_0x5f35bc(0x299)][_0x5f35bc(0x14e)]());}[_0x27ba00(0x34d)](_0x3c9bff){const _0x213e77=_0x27ba00;this[_0x213e77(0x299)][_0x213e77(0x8c)](_0x3c9bff);}}var kn=Object[_0x27ba00(0x198)],Bn=Object[_0x27ba00(0x280)],Vn=(_0x4cc1f8,_0x4c3292,_0x19f3b2,_0x517a8b)=>{const _0x42131e=_0x27ba00;for(var _0x1b180d=_0x517a8b>0x1?void 0x0:_0x517a8b?Bn(_0x4c3292,_0x19f3b2):_0x4c3292,_0x47169c=_0x4cc1f8[_0x42131e(0x117)]-0x1,_0xce720b;_0x47169c>=0x0;_0x47169c--)(_0xce720b=_0x4cc1f8[_0x47169c])&&(_0x1b180d=(_0x517a8b?_0xce720b(_0x4c3292,_0x19f3b2,_0x1b180d):_0xce720b(_0x1b180d))||_0x1b180d);return _0x517a8b&&_0x1b180d&&kn(_0x4c3292,_0x19f3b2,_0x1b180d),_0x1b180d;},os=(_0xc5519,_0x4d3fd5)=>(_0x1fbee1,_0x128bce)=>_0x4d3fd5(_0x1fbee1,_0x128bce,_0xc5519);let ae=class extends _0x10a60d{constructor(_0x356561,_0x2328b5){const _0x5c809c=_0x27ba00;super(),l(this,_0x5c809c(0x356),new Map()),(this[_0x5c809c(0xe3)]=_0x356561,this[_0x5c809c(0x1eb)]=_0x2328b5,this[_0x5c809c(0x169)](_0x10763a(_0x4c28c6(this[_0x5c809c(0xe3)]['getTypeOfUnitDisposed$'](_0x28cb79[_0x5c809c(0xdf)])[_0x5c809c(0x31c)](_0x42ddbb(_0x5f59b2=>_0x5f59b2[_0x5c809c(0x242)]())),this[_0x5c809c(0xe3)]['getTypeOfUnitDisposed$'](_0x28cb79[_0x5c809c(0x2e3)])['pipe'](_0x42ddbb(_0x36c580=>_0x36c580[_0x5c809c(0x242)]())),this[_0x5c809c(0xe3)][_0x5c809c(0x177)](_0x28cb79[_0x5c809c(0x22d)])[_0x5c809c(0x31c)](_0x42ddbb(_0x165296=>_0x165296[_0x5c809c(0x242)]())))['subscribe'](_0x4d0b19=>this[_0x5c809c(0x271)](_0x4d0b19)))));}[_0x27ba00(0x353)](_0x3bb58f){const _0x47d62b=_0x27ba00;this[_0x47d62b(0x1eb)][_0x47d62b(0x353)](_0x3bb58f);}['getCurrentUser'](){const _0x590d4c=_0x27ba00;return this[_0x590d4c(0x1eb)][_0x590d4c(0x21f)]();}[_0x27ba00(0x31f)](_0x3fe1a2,_0x4d9c14){const _0x2255aa=_0x27ba00;let _0x144e72=this[_0x2255aa(0x356)][_0x2255aa(0x1dd)](_0x3fe1a2);_0x144e72||(_0x144e72=new Fn(),this['_roomMembers'][_0x2255aa(0x371)](_0x3fe1a2,_0x144e72)),_0x144e72[_0x2255aa(0x31f)](_0x4d9c14);}[_0x27ba00(0x10e)](_0x13e0fe,_0x46249a){const _0x3d41ea=_0x27ba00,_0x562f0b=this['_roomMembers'][_0x3d41ea(0x1dd)](_0x13e0fe);_0x562f0b&&_0x562f0b[_0x3d41ea(0x10e)](_0x46249a);}[_0x27ba00(0x230)](_0x26afc5){const _0x171c25=_0x27ba00;return this[_0x171c25(0x356)][_0x171c25(0x1dd)](_0x26afc5);}[_0x27ba00(0x9c)](_0x1fc153,_0x337fa6){const _0x198cdb=_0x27ba00,_0x1cf574=this[_0x198cdb(0x356)][_0x198cdb(0x1dd)](_0x1fc153);if(_0x1cf574)return _0x1cf574[_0x198cdb(0x9c)](_0x337fa6);}['_removeRoom'](_0x1cea28){const _0x9110d9=_0x27ba00,_0x3a9a1a=this['_roomMembers'][_0x9110d9(0x1dd)](_0x1cea28);_0x3a9a1a&&(_0x3a9a1a['dispose'](),this[_0x9110d9(0x356)][_0x9110d9(0xe1)](_0x1cea28));}[_0x27ba00(0x323)](){const _0x7f948=_0x27ba00;this['_roomMembers'][_0x7f948(0x392)](_0x4bfa69=>_0x4bfa69[_0x7f948(0x323)]()),this[_0x7f948(0x356)][_0x7f948(0x17f)]();}};ae=Vn([os(0x0,_0x4a4945),os(0x1,_0x27d762(_0x5a5fa2))],ae);class Fn extends _0x10a60d{constructor(){const _0x46a04f=_0x27ba00;super(...arguments),l(this,_0x46a04f(0x30a),new Map());}[_0x27ba00(0x323)](){const _0x3a5a4c=_0x27ba00;this[_0x3a5a4c(0x30a)][_0x3a5a4c(0x17f)]();}[_0x27ba00(0x31f)](_0x35e659){const _0x44bf8b=_0x27ba00;this[_0x44bf8b(0x30a)][_0x44bf8b(0x371)](_0x35e659[_0x44bf8b(0x1dc)],_0x35e659);}[_0x27ba00(0x10e)](_0x4b1136){const _0x39b2ca=_0x27ba00;this[_0x39b2ca(0x30a)][_0x39b2ca(0xe1)](_0x4b1136);}[_0x27ba00(0x9c)](_0x4a4bcf){const _0x5bac86=_0x27ba00;return this[_0x5bac86(0x30a)][_0x5bac86(0x1dd)](_0x4a4bcf);}}var Wn=Object['defineProperty'],Gn=Object[_0x27ba00(0x280)],Yn=(_0x384b65,_0x4b19e0,_0x439cde,_0x1e4245)=>{const _0x19c734=_0x27ba00;for(var _0x255612=_0x1e4245>0x1?void 0x0:_0x1e4245?Gn(_0x4b19e0,_0x439cde):_0x4b19e0,_0x4b5f56=_0x384b65[_0x19c734(0x117)]-0x1,_0x87577a;_0x4b5f56>=0x0;_0x4b5f56--)(_0x87577a=_0x384b65[_0x4b5f56])&&(_0x255612=(_0x1e4245?_0x87577a(_0x4b19e0,_0x439cde,_0x255612):_0x87577a(_0x255612))||_0x255612);return _0x1e4245&&_0x255612&&Wn(_0x4b19e0,_0x439cde,_0x255612),_0x255612;},J=(_0x13d70f,_0x33883b)=>(_0x1a067c,_0x275723)=>_0x33883b(_0x1a067c,_0x275723,_0x13d70f),G=(_0x17e40b=>(_0x17e40b[_0x17e40b[_0x27ba00(0x1c9)]=0x0]=_0x27ba00(0x1c9),_0x17e40b[_0x17e40b[_0x27ba00(0x248)]=0x1]=_0x27ba00(0x248),_0x17e40b[_0x17e40b['OFFLINE']=0x2]=_0x27ba00(0x1f1),_0x17e40b[_0x17e40b[_0x27ba00(0x16c)]=0x3]=_0x27ba00(0x16c),_0x17e40b))(G||{});let Rt=class extends _0x504ec7{constructor(_0x32dfae,_0x2e8f39,_0x2ca5ca,_0x4d203b,_0x43eaea,_0x4feb1f,_0x2939cf,_0x2664b3,_0x1b3e89,_0x3ac457){const _0x19369f=_0x27ba00;super(),l(this,_0x19369f(0x179),new _0x23c814(0x0)),l(this,_0x19369f(0x10c),this['_sessionStatus$'][_0x19369f(0x14e)]()),l(this,_0x19369f(0x1e0),new _0x1a4ff5()),l(this,'event$',this[_0x19369f(0x1e0)][_0x19369f(0x14e)]()),l(this,_0x19369f(0x1cb)),l(this,'_socketMessageSubscription'),l(this,_0x19369f(0x276)),l(this,_0x19369f(0x1a3),!0x1),l(this,_0x19369f(0x2c5),null),(this[_0x19369f(0x3a6)]=_0x32dfae,this['_logService']=_0x2ca5ca,this[_0x19369f(0xf0)]=_0x4d203b,this['_messageService']=_0x43eaea,this[_0x19369f(0x19e)]=_0x4feb1f,this[_0x19369f(0x12e)]=_0x2939cf,this[_0x19369f(0x26b)]=_0x2664b3,this['_commentService']=_0x1b3e89,this[_0x19369f(0x399)]=_0x3ac457,this[_0x19369f(0x1a3)]=!!this[_0x19369f(0x399)],_0x2e8f39[_0x19369f(0x31c)](_0x350758(this['dispose$']))[_0x19369f(0x3c1)](_0x3b4d58=>{const _0x404783=_0x19369f;var _0x15f59c;typeof _0x3b4d58>'u'||(this[_0x404783(0x1cb)]=_0x3b4d58,_0x3b4d58?(this[_0x404783(0x3c5)](_0x3b4d58),this[_0x404783(0x2b1)]=_0x3b4d58['message$'][_0x404783(0x3c1)](_0x57bc02=>{const _0x4a3ba7=_0x404783;_0x57bc02[_0x4a3ba7(0x2fb)]===this[_0x4a3ba7(0x3a6)]&&this['_onCombEvent'](_0x57bc02);})):(this[_0x404783(0x16f)](),this[_0x404783(0x179)][_0x404783(0x8c)](0x2),(_0x15f59c=this[_0x404783(0x2b1)])==null||_0x15f59c[_0x404783(0x12f)](),this[_0x404783(0x2b1)]=null));}),this[_0x19369f(0x169)](this[_0x19369f(0xf0)][_0x19369f(0x263)](()=>{const _0x31cbb3=_0x19369f;var _0x316400;(_0x316400=this['_socket'])==null||_0x316400[_0x31cbb3(0x128)]({'cmd':I[_0x31cbb3(0xf3)],'data':{'roomID':this['_unitID']}});})));}get[_0x27ba00(0xa8)](){const _0x34fdc2=_0x27ba00;return this[_0x34fdc2(0x179)][_0x34fdc2(0x6f)]();}['getMemberID'](){const _0x3dab55=_0x27ba00;var _0x96a837,_0x204cc1;return(_0x204cc1=(_0x96a837=this[_0x3dab55(0x1cb)])==null?void 0x0:_0x96a837['memberID'])!=null?_0x204cc1:null;}[_0x27ba00(0x323)](){const _0x3bad29=_0x27ba00;super[_0x3bad29(0x323)](),this['dispose$'][_0x3bad29(0x8c)](),this['dispose$'][_0x3bad29(0x373)]();}[_0x27ba00(0x369)](){const _0x2b98a4=_0x27ba00;var _0x152dab,_0x24022e;this[_0x2b98a4(0x16f)](),(_0x152dab=this[_0x2b98a4(0x1cb)])==null||_0x152dab[_0x2b98a4(0x128)]({'cmd':I[_0x2b98a4(0xf3)],'data':{'roomID':this[_0x2b98a4(0x3a6)]}}),(_0x24022e=this[_0x2b98a4(0x1cb)])==null||_0x24022e[_0x2b98a4(0x369)](),this[_0x2b98a4(0x1e0)]['complete'](),this[_0x2b98a4(0x179)][_0x2b98a4(0x373)](),this[_0x2b98a4(0x323)]();}[_0x27ba00(0x268)](_0x4f2ab6){const _0x5ce3eb=_0x27ba00;_0x4f2ab6[_0x5ce3eb(0xbb)]===I[_0x5ce3eb(0x32d)]?this[_0x5ce3eb(0x23a)](_0x4f2ab6):_0x4f2ab6[_0x5ce3eb(0xbb)]===I[_0x5ce3eb(0x156)]&&this[_0x5ce3eb(0x91)](_0x4f2ab6);}[_0x27ba00(0x3c5)](_0x1bb5cf){const _0x19c4b9=_0x27ba00;this[_0x19c4b9(0x179)]['next'](0x1),_0x1bb5cf['send']({'cmd':I[_0x19c4b9(0x32d)],'routeKey':this[_0x19c4b9(0x3a6)],'routeType':'','data':{'rooms':[{'roomID':this[_0x19c4b9(0x3a6)]}]}});}['_onJoinRoomEvent'](_0x22e8d1){const _0x17a19b=_0x27ba00;var _0x47da4d;if(_0x22e8d1[_0x17a19b(0x20f)]===Vt[_0x17a19b(0x2f5)]){this[_0x17a19b(0x157)][_0x17a19b(0x346)]({'type':_0x104514['Warning'],'content':this[_0x17a19b(0x12e)]['t'](_0x17a19b(0x352))}),this[_0x17a19b(0x179)][_0x17a19b(0x8c)](0x2);return;}this[_0x17a19b(0x179)]['next'](0x3);const _0x305579=(_0x47da4d=_0x22e8d1[_0x17a19b(0x216)][_0x17a19b(0x2e6)][this[_0x17a19b(0x3a6)]])==null?void 0x0:_0x47da4d[_0x17a19b(0x80)];_0x305579&&_0x305579[_0x17a19b(0x392)](_0x47408f=>this[_0x17a19b(0x26b)][_0x17a19b(0x31f)](this[_0x17a19b(0x3a6)],_0x47408f));}['_onRecvEvent'](_0x41d6d2){const _0x21edeb=_0x27ba00;try{const _0x308f4f=_0x41d6d2[_0x21edeb(0x216)];switch(_0x308f4f[_0x21edeb(0xc3)]){case _0x6fa194['USERS_ENTER']:this[_0x21edeb(0x326)](_0x308f4f),this[_0x21edeb(0x1e0)][_0x21edeb(0x8c)](_0x308f4f);break;case _0x6fa194[_0x21edeb(0x386)]:this[_0x21edeb(0x2ab)](_0x308f4f),this[_0x21edeb(0x1e0)][_0x21edeb(0x8c)](_0x308f4f);break;case _0x6fa194['CHANGESET_ACK']:this[_0x21edeb(0x12d)](),this['_clearCollaborationTimeoutTimer'](),this[_0x21edeb(0x1e0)]['next'](_0x308f4f);break;case _0x6fa194[_0x21edeb(0x3ba)]:this[_0x21edeb(0xd6)][_0x21edeb(0x1e5)](_0x21edeb(0x210)+JSON[_0x21edeb(0xea)](_0x308f4f)),this['_event$'][_0x21edeb(0x8c)](_0x308f4f);break;case _0x6fa194[_0x21edeb(0x3c2)]:this[_0x21edeb(0x15c)][_0x21edeb(0x34d)](_0x308f4f['data']),this[_0x21edeb(0x1e0)][_0x21edeb(0x8c)](_0x308f4f);break;default:this[_0x21edeb(0x1e0)][_0x21edeb(0x8c)](_0x308f4f);}}catch(_0x59a967){this[_0x21edeb(0xd6)][_0x21edeb(0x1e5)](_0x59a967,_0x41d6d2);}}[_0x27ba00(0x326)](_0x5a8557){const _0x5a018a=_0x27ba00;this[_0x5a018a(0x26b)]['updateMember'](this[_0x5a018a(0x3a6)],_0x5a8557[_0x5a018a(0x216)]);}[_0x27ba00(0x2ab)](_0x160c61){const _0x51c3=_0x27ba00;this[_0x51c3(0x26b)][_0x51c3(0x10e)](this[_0x51c3(0x3a6)],_0x160c61['data']['memberID']);}async['send'](_0xa36be4,_0x38b175){const _0x58dcb1=_0x27ba00;if(this[_0x58dcb1(0xa8)]!==0x3||!this[_0x58dcb1(0x1cb)])throw new Error(_0x58dcb1(0x158));try{_0xa36be4[_0x58dcb1(0xc3)]===_0x6fa194['SUBMIT_CHANGESET']&&(this[_0x58dcb1(0xa6)](),this['_startTelemetryCollaborationNewChangeset'](_0xa36be4)),this[_0x58dcb1(0x1cb)][_0x58dcb1(0x128)]({'cmd':I[_0x58dcb1(0x287)],'routeKey':_0x38b175,'routeType':'','data':_0xa36be4});}catch(_0x424485){this['_logService']['error'](_0x424485);}}[_0x27ba00(0xa6)](){const _0x527a14=_0x27ba00;var _0x547b98;this[_0x527a14(0x276)]=window[_0x527a14(0x38d)](()=>{const _0x358239=_0x527a14;this[_0x358239(0x276)]=null,this[_0x358239(0x157)]['show']({'type':_0x104514[_0x358239(0x27a)],'content':this[_0x358239(0x12e)]['t'](_0x358239(0x282))});},(_0x547b98=this[_0x527a14(0x19e)][_0x527a14(0x3c6)](Us))!=null?_0x547b98:Ms);}[_0x27ba00(0x31b)](){const _0x544234=_0x27ba00;this[_0x544234(0x276)]&&(clearTimeout(this[_0x544234(0x276)]),this[_0x544234(0x276)]=null);}[_0x27ba00(0xda)](_0x5001e1){const _0x17c506=_0x27ba00;if(!this['_shouldReportTelemetry'])return;const {data:_0x358c4a}=_0x5001e1,{unitID:_0x396b72,changeset:_0x21b60d}=_0x358c4a,{mutations:_0x23bd8e,type:_0x442c7a}=_0x21b60d;this[_0x17c506(0x2c5)]={'unitId':_0x396b72,'type':_0x442c7a,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':Hn(_0x23bd8e)};}[_0x27ba00(0x12d)](){const _0x3bd34c=_0x27ba00;if(this[_0x3bd34c(0x1a3)]){if(!this[_0x3bd34c(0x2c5)]){this['_logService'][_0x3bd34c(0x1e5)](_0x3bd34c(0xaa),_0x3bd34c(0x1e1));return;}this[_0x3bd34c(0x2c5)][_0x3bd34c(0x2ba)]=performance[_0x3bd34c(0xcb)](),this[_0x3bd34c(0x2c5)]['duration']=this['_telemetryInfo']['stopTime']-this[_0x3bd34c(0x2c5)][_0x3bd34c(0xb7)],this[_0x3bd34c(0x399)][_0x3bd34c(0x37c)](xn,this[_0x3bd34c(0x2c5)]),this[_0x3bd34c(0x2c5)]=null;}}['_throwTelemetryCollaborationNewChangeset'](){const _0x104c3d=_0x27ba00;this[_0x104c3d(0x2c5)]=null;}};Rt=Yn([J(0x2,_0x1dd153),J(0x3,_0x5e457c),J(0x4,_0x17da32),J(0x5,_0xeb1b98),J(0x6,_0x27d762(_0x5d963b)),J(0x7,_0x27d762(ae)),J(0x8,_0x27d762(js)),J(0x9,_0x3a7ea6(_0x3c3c5e))],Rt);var Kn=Object[_0x27ba00(0x198)],Xn=Object[_0x27ba00(0x280)],Jn=(_0x238753,_0x166839,_0x288666,_0x270c1e)=>{const _0x43320f=_0x27ba00;for(var _0x37b847=_0x270c1e>0x1?void 0x0:_0x270c1e?Xn(_0x166839,_0x288666):_0x166839,_0x5a9d23=_0x238753[_0x43320f(0x117)]-0x1,_0x22eaaf;_0x5a9d23>=0x0;_0x5a9d23--)(_0x22eaaf=_0x238753[_0x5a9d23])&&(_0x37b847=(_0x270c1e?_0x22eaaf(_0x166839,_0x288666,_0x37b847):_0x22eaaf(_0x37b847))||_0x37b847);return _0x270c1e&&_0x37b847&&Kn(_0x166839,_0x288666,_0x37b847),_0x37b847;},de=(_0x33d616,_0x34b3c5)=>(_0x2c7874,_0x2dfa1a)=>_0x34b3c5(_0x2c7874,_0x2dfa1a,_0x33d616);let ce=class extends _0x10a60d{constructor(_0x1ccd87,_0x427964,_0xc9525f,_0x17583a,_0x1f67d2,_0x56ff90){const _0x59619a=_0x27ba00;super(),l(this,_0x59619a(0xc9),new _0x23c814(void 0x0)),l(this,_0x59619a(0x18b),this[_0x59619a(0xc9)][_0x59619a(0x14e)]()),l(this,'_candidateSocket',null),l(this,_0x59619a(0x2b0),new Map()),l(this,_0x59619a(0x142),new _0x23c814(G[_0x59619a(0x1c9)])),l(this,_0x59619a(0x16b),this['_status$']['asObservable']()),l(this,'_socketReady',!0x1),l(this,'_retryConnectingTimer'),l(this,_0x59619a(0x89),0x0),l(this,_0x59619a(0x81)),l(this,_0x59619a(0x2f9)),(this[_0x59619a(0x2a6)]=_0x1ccd87,this[_0x59619a(0x12e)]=_0x427964,this[_0x59619a(0x157)]=_0xc9525f,this[_0x59619a(0xd6)]=_0x17583a,this[_0x59619a(0x19e)]=_0x1f67d2,this[_0x59619a(0x3b0)]=_0x56ff90,this[_0x59619a(0x27b)]());}get[_0x27ba00(0x1cb)](){const _0x181b1c=_0x27ba00;return this[_0x181b1c(0xc9)][_0x181b1c(0x6f)]();}['_initEventListeners'](){const _0x277343=_0x27ba00;this[_0x277343(0x9f)](),this[_0x277343(0x377)]();}[_0x27ba00(0x323)](){const _0x21f50b=_0x27ba00;super['dispose'](),this[_0x21f50b(0x2b0)][_0x21f50b(0x392)](_0x2a5a5d=>_0x2a5a5d['dispose']()),this[_0x21f50b(0x2b0)][_0x21f50b(0x17f)](),this[_0x21f50b(0x142)][_0x21f50b(0x373)]();}async[_0x27ba00(0x223)](_0x364ca2){const _0xebb98b=_0x27ba00;if(this[_0xebb98b(0x2b0)]['has'](_0x364ca2))return this[_0xebb98b(0x2b0)][_0xebb98b(0x1dd)](_0x364ca2);this[_0xebb98b(0xff)]();const _0x194008=this[_0xebb98b(0x2a6)][_0xebb98b(0x85)](Rt,_0x364ca2,this[_0xebb98b(0xc9)][_0xebb98b(0x14e)]());return this[_0xebb98b(0x2b0)][_0xebb98b(0x371)](_0x364ca2,_0x194008),_0x194008;}[_0x27ba00(0x23e)](_0x50d77b){const _0x54a265=_0x27ba00;var _0x2befbd;const _0x2d57e2=this[_0x54a265(0x2b0)][_0x54a265(0x1dd)](_0x50d77b);_0x2d57e2&&(this[_0x54a265(0x2b0)]['delete'](_0x50d77b),_0x2d57e2[_0x54a265(0x369)]()),this['_sessions'][_0x54a265(0x333)]||(_0x2befbd=this[_0x54a265(0x1cb)])==null||_0x2befbd[_0x54a265(0x369)]();}[_0x27ba00(0x17c)](){const _0x20be18=_0x27ba00;this[_0x20be18(0x89)]=0x0,this[_0x20be18(0x10d)]!=null&&(clearTimeout(this[_0x20be18(0x10d)]),this[_0x20be18(0x10d)]=null),this[_0x20be18(0x1f0)]();}[_0x27ba00(0x39b)](){const _0x2c3306=_0x27ba00;var _0x52992b,_0x3e4baf;const _0x139bd8=this[_0x2c3306(0x19e)]['getConfig'](pn),_0xece8be=this[_0x2c3306(0x19e)]['getConfig'](L),_0x405082=(_0x3e4baf=(_0x52992b=_0xece8be==null?void 0x0:_0xece8be[_0x2c3306(0x390)])!=null?_0x52992b:_0x139bd8)!=null?_0x3e4baf:vn,_0x5392c5=this[_0x2c3306(0x3b0)]['createSocket'](_0x405082);return this[_0x2c3306(0x36f)]=_0x5392c5,_0x5392c5;}[_0x27ba00(0xff)](){const _0x20ff7e=_0x27ba00;var _0x85c947,_0x5ecf77;try{const _0x1b4da4=(_0x5ecf77=(_0x85c947=this[_0x20ff7e(0x1cb)])!=null?_0x85c947:this['_candidateSocket'])!=null?_0x5ecf77:this['_createSocket']();if(_0x1b4da4){const _0x24edfc=_0x1b4da4['send'];_0x1b4da4['send']=_0x2097d1=>(this[_0x20ff7e(0x11b)](),_0x24edfc['apply'](_0x1b4da4,[_0x2097d1])),_0x1b4da4['message$'][_0x20ff7e(0x3c1)](_0x657b0a=>this[_0x20ff7e(0x25e)](_0x1b4da4,_0x657b0a)),_0x1b4da4[_0x20ff7e(0xb4)][_0x20ff7e(0x31c)](_0xf7175c(0x1))[_0x20ff7e(0x3c1)](_0xb9f822=>this[_0x20ff7e(0xd6)]['error'](_0x20ff7e(0x2a0),_0xb9f822)),_0x1b4da4[_0x20ff7e(0x104)]['pipe'](_0xf7175c(0x1))['subscribe'](()=>{const _0x16bcd3=_0x20ff7e;this[_0x16bcd3(0x1c6)](_0x1b4da4);}),_0x1b4da4[_0x20ff7e(0x1ed)]['pipe'](_0xf7175c(0x1))['subscribe'](_0x22d474=>{const _0x14656a=_0x20ff7e;this['_logService'][_0x14656a(0x227)]('[CollaborationSessionService]',_0x14656a(0x199),_0x22d474),this['_onConnectionFailed']();});}}catch(_0x145e5d){this[_0x20ff7e(0xd6)][_0x20ff7e(0x1e5)](_0x145e5d),this[_0x20ff7e(0x2d8)]();}}[_0x27ba00(0x1c6)](_0x489f1e){const _0x2835e2=_0x27ba00;this[_0x2835e2(0xd6)][_0x2835e2(0x227)](_0x2835e2(0x345),'socket\x20open.'),_0x489f1e[_0x2835e2(0x128)]({'cmd':I['HELLO']}),this['_rescheduleHeartbeat']();}['_listenToOfflineEvent'](){const _0x4b0660=_0x27ba00;window[_0x4b0660(0x1a1)](_0x4b0660(0x26f),()=>this[_0x4b0660(0x168)]());}['_onOffline'](){const _0x145de5=_0x27ba00;this[_0x145de5(0x1a6)]=!0x1,this['_candidateSocket']=null,this[_0x145de5(0x142)]['next'](G['OFFLINE']),this[_0x145de5(0xc9)][_0x145de5(0x8c)](null),this[_0x145de5(0xd9)](),this[_0x145de5(0x3d9)]();}[_0x27ba00(0x2d8)](){const _0x1f4fa7=_0x27ba00;var _0x31a3c9;this[_0x1f4fa7(0x168)](),this[_0x1f4fa7(0x89)]<((_0x31a3c9=this[_0x1f4fa7(0x19e)][_0x1f4fa7(0x3c6)](bn))!=null?_0x31a3c9:Tn)?(this[_0x1f4fa7(0x157)][_0x1f4fa7(0x346)]({'key':_0x1f4fa7(0x1b4),'type':_0x104514[_0x1f4fa7(0x364)],'content':this[_0x1f4fa7(0x12e)]['t'](_0x1f4fa7(0x36c))}),this[_0x1f4fa7(0x1f0)]()):this[_0x1f4fa7(0x157)][_0x1f4fa7(0x346)]({'key':'collaboration-session-retry','type':_0x104514[_0x1f4fa7(0x27a)],'content':this[_0x1f4fa7(0x12e)]['t']('session.connection-failed')});}[_0x27ba00(0x377)](){const _0x4b91f3=_0x27ba00,_0x3f9716=()=>{const _0x1f68a8=_0x1a62;this['_socket']||this[_0x1f68a8(0x17c)]();},_0x16f2c2=()=>{const _0x5accb5=_0x1a62;this['_socket']||document[_0x5accb5(0x354)]===_0x5accb5(0x164)||this[_0x5accb5(0x17c)]();};window[_0x4b91f3(0x1a1)](_0x4b91f3(0x161),_0x3f9716),document['addEventListener'](_0x4b91f3(0x3be),_0x16f2c2);}[_0x27ba00(0x1f0)](){const _0x35090b=_0x27ba00;var _0x243824;const _0x3f8d35=this[_0x35090b(0x89)],_0xc39be1=this[_0x35090b(0x19e)][_0x35090b(0x3c6)](L),_0x378cc6=_0x3f8d35===0x0?0x0:((_0x243824=_0xc39be1==null?void 0x0:_0xc39be1[_0x35090b(0x15d)])!=null?_0x243824:Cn)*0x2**_0x3f8d35;this[_0x35090b(0x10d)]=window[_0x35090b(0x38d)](()=>{const _0x31def3=_0x35090b;clearTimeout(this[_0x31def3(0x10d)]),this[_0x31def3(0x10d)]=null,this[_0x31def3(0xff)]();},_0x378cc6),this[_0x35090b(0x89)]+=0x1;}[_0x27ba00(0x25e)](_0x31d7cf,_0x35294a){const _0x864147=_0x27ba00,{cmd:_0x485237}=_0x35294a;_0x485237===I[_0x864147(0x167)]&&!this[_0x864147(0x1a6)]&&(_0x31d7cf['memberID']=_0x35294a['data'][_0x864147(0x1dc)],this['_socket$'][_0x864147(0x8c)](_0x31d7cf),this[_0x864147(0x142)][_0x864147(0x8c)](G['ONLINE']),this[_0x864147(0x1a6)]=!0x0,this['_candidateSocket']=null),_0x485237===I['HEARTBEAT']&&this[_0x864147(0xd9)](),this[_0x864147(0x11b)]();}[_0x27ba00(0x11b)](){const _0x396a50=_0x27ba00;var _0x1df8dd;this['_clearHeartbeatTimer'](),this['_sendHeartbeatTimer']=window['setTimeout'](()=>this[_0x396a50(0x36e)](),(_0x1df8dd=this[_0x396a50(0x19e)][_0x396a50(0x3c6)](In))!=null?_0x1df8dd:En);}[_0x27ba00(0x36e)](){const _0x2b9845=_0x27ba00;this[_0x2b9845(0x1cb)][_0x2b9845(0x128)]({'cmd':I[_0x2b9845(0x301)]}),this['_waitForHeartbeatResponse']();}[_0x27ba00(0x292)](){const _0x34a431=_0x27ba00;var _0x25e6d4;this[_0x34a431(0x2f9)]=window[_0x34a431(0x38d)](()=>this[_0x34a431(0x2d8)](),(_0x25e6d4=this[_0x34a431(0x19e)][_0x34a431(0x3c6)](Us))!=null?_0x25e6d4:Ms);}[_0x27ba00(0x3d9)](){const _0x326a7a=_0x27ba00;this[_0x326a7a(0x81)]!=null&&(clearTimeout(this[_0x326a7a(0x81)]),this['_sendHeartbeatTimer']=null);}[_0x27ba00(0xd9)](){const _0xcc38ea=_0x27ba00;this[_0xcc38ea(0x2f9)]!=null&&(clearTimeout(this[_0xcc38ea(0x2f9)]),this[_0xcc38ea(0x2f9)]=null);}};ce=Jn([de(0x0,_0x27d762(_0x2a6c13)),de(0x1,_0x27d762(_0x5d963b)),de(0x2,_0x17da32),de(0x3,_0x1dd153),de(0x4,_0xeb1b98),de(0x5,$s)],ce);var qn=Object[_0x27ba00(0x198)],zn=Object[_0x27ba00(0x280)],Zn=(_0x54814d,_0x1e2fa7,_0x5239f2,_0x2b4d24)=>{for(var _0x2c43f4=_0x2b4d24>0x1?void 0x0:_0x2b4d24?zn(_0x1e2fa7,_0x5239f2):_0x1e2fa7,_0x1a5caa=_0x54814d['length']-0x1,_0x24f7e1;_0x1a5caa>=0x0;_0x1a5caa--)(_0x24f7e1=_0x54814d[_0x1a5caa])&&(_0x2c43f4=(_0x2b4d24?_0x24f7e1(_0x1e2fa7,_0x5239f2,_0x2c43f4):_0x24f7e1(_0x2c43f4))||_0x2c43f4);return _0x2b4d24&&_0x2c43f4&&qn(_0x1e2fa7,_0x5239f2,_0x2c43f4),_0x2c43f4;},_t=(_0x7c1bef,_0x6ea014)=>(_0x2d9bc3,_0x1ed6fa)=>_0x6ea014(_0x2d9bc3,_0x1ed6fa,_0x7c1bef);let Ze=class{constructor(_0x2481a4,_0x3df513,_0x5a3342){const _0x41041e=_0x27ba00;this[_0x41041e(0x2a6)]=_0x2481a4,this[_0x41041e(0x32a)]=_0x3df513,this[_0x41041e(0x2f6)]=_0x5a3342;}['transformIMECache'](_0x16c4c2){const _0x343582=_0x27ba00;this[_0x343582(0x293)](_0x16c4c2),this['_transformPreviousActiveRange'](_0x16c4c2);}['transformRemoteChangeset'](_0x18eb5f){const _0x516cf9=_0x27ba00,{unitID:_0x2ebd97}=_0x18eb5f,_0x56690a=this[_0x516cf9(0x2f6)][_0x516cf9(0x33d)](_0x2ebd97)[_0x516cf9(0x20b)](_0x24ee3e),{redoCache:_0x1b816b}=_0x56690a[_0x516cf9(0x2f1)]();if(_0x1b816b[_0x516cf9(0x117)]===0x0)return _0x18eb5f;let _0x27260c=_0x38eaa3['deepClone'](_0x18eb5f['mutations'][0x0]);for(let _0x46f351=0x0;_0x46f351<_0x1b816b[_0x516cf9(0x117)];_0x46f351++){const _0x463811={'id':_0x516cf9(0x8a),'params':{..._0x1b816b[_0x46f351]}},_0x9ffcde=this[_0x516cf9(0x32a)][_0x516cf9(0x1e4)](_0x27260c,_0x463811,!0x1);if(_0x25fecd(_0x9ffcde))throw _0x9ffcde[_0x516cf9(0x1e5)];_0x27260c=_0x9ffcde[_0x516cf9(0x361)];}return{..._0x38eaa3[_0x516cf9(0x2aa)](_0x18eb5f),'mutations':[_0x27260c]};}['_transformUndoRedoStack'](_0x8c168e){const _0xf76d9d=_0x27ba00,{unitID:_0x4c3511}=_0x8c168e,_0x3c9d41=this[_0xf76d9d(0x2f6)][_0xf76d9d(0x33d)](_0x4c3511)[_0xf76d9d(0x20b)](_0x24ee3e),{undoCache:_0x42839f,redoCache:_0x4c64fe}=_0x3c9d41[_0xf76d9d(0x2f1)]();if(_0x42839f[_0xf76d9d(0x117)]===0x0||_0x4c64fe[_0xf76d9d(0x117)]===0x0)return;const _0x5cd82c=[],_0x2fb8c1=[];let _0x40c80c=_0x38eaa3[_0xf76d9d(0x2aa)](_0x8c168e['mutations'][0x0]),_0x1266ab=_0x38eaa3[_0xf76d9d(0x2aa)](_0x8c168e[_0xf76d9d(0x3bd)][0x0]);for(let _0x249cea=_0x42839f[_0xf76d9d(0x117)]-0x1;_0x249cea>=0x0;_0x249cea--){const _0xf276e8={'id':_0xf76d9d(0x8a),'params':{..._0x42839f[_0x249cea]}},_0x4d9dae={'id':_0xf76d9d(0x8a),'params':{..._0x4c64fe[_0x249cea]}},_0x393e91=this[_0xf76d9d(0x32a)][_0xf76d9d(0x1e4)](_0x40c80c,_0xf276e8,!0x1),_0x1f2dd6=this[_0xf76d9d(0x32a)][_0xf76d9d(0x1e4)](_0x1266ab,_0x4d9dae,!0x1);if(_0x25fecd(_0x393e91))throw _0x393e91[_0xf76d9d(0x1e5)];if(_0x25fecd(_0x1f2dd6))throw _0x1f2dd6[_0xf76d9d(0x1e5)];_0x5cd82c[_0xf76d9d(0x26e)](_0x393e91['m2Prime'][_0xf76d9d(0xb8)]),_0x2fb8c1[_0xf76d9d(0x26e)](_0x1f2dd6[_0xf76d9d(0x2c1)][_0xf76d9d(0xb8)]),_0x40c80c=_0x393e91[_0xf76d9d(0x361)],_0x1266ab=_0x1f2dd6['m1Prime'];}_0x3c9d41[_0xf76d9d(0x163)]({'undoCache':_0x5cd82c,'redoCache':_0x2fb8c1});}[_0x27ba00(0x274)](_0x2d81da){const _0x4790c1=_0x27ba00,{unitID:_0x124fbf}=_0x2d81da,_0x5be081=this[_0x4790c1(0x2f6)][_0x4790c1(0x33d)](_0x124fbf)['with'](_0x24ee3e),_0x31daec=_0x5be081[_0x4790c1(0x69)]();if(_0x31daec==null)return;const _0x38b44c=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2d81da[_0x4790c1(0x12c)],'actions':null,'textRanges':[_0x31daec]}}],_0x28d6ff=this[_0x4790c1(0x32a)][_0x4790c1(0x3b9)](_0x2d81da,_0x38b44c);if(!_0x1476be(_0x28d6ff))throw _0x28d6ff['error'];const _0x2f2c65=_0x28d6ff['m2Prime'][0x0][_0x4790c1(0xb8)][_0x4790c1(0x2eb)];Array[_0x4790c1(0x165)](_0x2f2c65)&&_0x2f2c65['length']&&_0x5be081[_0x4790c1(0x2f8)](_0x2f2c65[0x0]);}};Ze=Zn([_t(0x0,_0x27d762(_0x2a6c13)),_t(0x1,_0x29f88d),_t(0x2,_0x57cdea)],Ze);var Qn=Object[_0x27ba00(0x198)],er=Object[_0x27ba00(0x280)],tr=(_0xd5aa50,_0x282a34,_0x2c05bd,_0x4ce97c)=>{for(var _0x55eada=_0x4ce97c>0x1?void 0x0:_0x4ce97c?er(_0x282a34,_0x2c05bd):_0x282a34,_0x352a60=_0xd5aa50['length']-0x1,_0x5c0d79;_0x352a60>=0x0;_0x352a60--)(_0x5c0d79=_0xd5aa50[_0x352a60])&&(_0x55eada=(_0x4ce97c?_0x5c0d79(_0x282a34,_0x2c05bd,_0x55eada):_0x5c0d79(_0x55eada))||_0x55eada);return _0x4ce97c&&_0x55eada&&Qn(_0x282a34,_0x2c05bd,_0x55eada),_0x55eada;},Oe=(_0x4b1391,_0x2266f0)=>(_0x2e679e,_0x5b0923)=>_0x2266f0(_0x2e679e,_0x5b0923,_0x4b1391);let D=class extends _0x10a60d{constructor(_0x5f4bd5,_0x1a89b1,_0x8146ef,_0x31dbab,_0x30153c){const _0x1898cb=_0x27ba00;super(),l(this,_0x1898cb(0x34e),new Map()),l(this,'_saveTaskMap',new Map()),l(this,_0x1898cb(0x1cf),!0x1),(this['_configService']=_0x5f4bd5,this['_localStorageService']=_0x1a89b1,this['_beforeCloseService']=_0x8146ef,this[_0x1898cb(0x12e)]=_0x31dbab,this['_revisionService']=_0x30153c,this['_setupBeforeClosingHandler']());}[_0x27ba00(0x2b5)](){const _0x435f00=_0x27ba00;this[_0x435f00(0x1cf)]=!0x0;}['enableLocalCache'](){this['_disabled']=!0x1;}[_0x27ba00(0x323)](){const _0x7c46a2=_0x27ba00;this[_0x7c46a2(0x313)]()[_0x7c46a2(0x20c)](()=>super['dispose']());}async[_0x27ba00(0x347)](_0xfe1276){const _0x2ac018=_0x27ba00;return this[_0x2ac018(0x1cf)]?null:this[_0x2ac018(0x79)][_0x2ac018(0x95)](as(_0xfe1276));}async[_0x27ba00(0x2c2)](_0x139823,_0x34a4f3){const _0x4c5369=_0x27ba00;return!!this[_0x4c5369(0x79)][_0x4c5369(0x1bc)](_0x139823,_0x34a4f3);}['updateOfflineData'](_0x1cb988,_0x12afbd,_0x6fde6c,_0xb32ad0){const _0x1b216c=_0x27ba00,_0x27fdd9=this[_0x1b216c(0x76)]['getCurrentRevOfUnit'](_0x1cb988);this[_0x1b216c(0x34e)][_0x1b216c(0x371)](_0x1cb988,{'unitID':_0x1cb988,'type':_0x12afbd,'awaitingChangeset':_0x6fde6c,'mutations':_0xb32ad0,'rev':_0x27fdd9}),this[_0x1b216c(0x8b)][_0x1b216c(0x262)](_0x1cb988)||this[_0x1b216c(0x133)](_0x1cb988);}[_0x27ba00(0x133)](_0x47720a){const _0x84e5c6=_0x27ba00,_0x52e011=this[_0x84e5c6(0x211)]();_0x52e011===0x0?this[_0x84e5c6(0x391)](_0x47720a):this['_saveTaskMap'][_0x84e5c6(0x371)](_0x47720a,setTimeout(()=>this['_saveCache'](_0x47720a),_0x52e011));}[_0x27ba00(0x211)](){const _0x592285=_0x27ba00;var _0x859b96;return(_0x859b96=this[_0x592285(0x19e)][_0x592285(0x3c6)](Rn))!=null?_0x859b96:On;}[_0x27ba00(0x391)](_0x311288){const _0x595957=_0x27ba00,_0x394682=this['_saveTaskMap'][_0x595957(0x1dd)](_0x311288);return _0x394682!==void 0x0&&window[_0x595957(0x311)](_0x394682),this['_localStorageService'][_0x595957(0x1bc)](as(_0x311288),this[_0x595957(0x34e)][_0x595957(0x1dd)](_0x311288))[_0x595957(0x20c)](()=>this[_0x595957(0x8b)][_0x595957(0xe1)](_0x311288));}async[_0x27ba00(0x313)](){const _0xadfb83=_0x27ba00,_0xc07681=[];this[_0xadfb83(0x8b)][_0xadfb83(0x392)]((_0xaa59c9,_0x47065a)=>{const _0x24924b=_0xadfb83;window['clearTimeout'](_0xaa59c9),_0xc07681[_0x24924b(0x2ec)](this[_0x24924b(0x391)](_0x47065a)[_0x24924b(0x20c)](()=>{const _0x3a925d=_0x24924b;this[_0x3a925d(0x8b)][_0x3a925d(0xe1)](_0x47065a);}));}),await Promise[_0xadfb83(0x350)](_0xc07681);}[_0x27ba00(0x254)](){const _0x4c8293=_0x27ba00;this[_0x4c8293(0x169)](this[_0x4c8293(0xf0)]['registerBeforeClose'](()=>{const _0x5ccde9=_0x4c8293;if(this['_saveTaskMap']['size'])return this[_0x5ccde9(0x12e)]['t'](_0x5ccde9(0x119));}));}};D=tr([Oe(0x0,_0xeb1b98),Oe(0x1,_0x441955),Oe(0x2,_0x5e457c),Oe(0x3,_0x27d762(_0x5d963b)),Oe(0x4,_0x27d762(_0x3a9a12))],D);function as(_0x16620){const _0xa79439=_0x27ba00;return _0xa79439(0x186)+_0x16620;}var sr=Object[_0x27ba00(0x198)],ir=Object[_0x27ba00(0x280)],nr=(_0x1dc61f,_0x23c682,_0x7a3da0,_0x21d651)=>{const _0x4cb59f=_0x27ba00;for(var _0x4a61f7=_0x21d651>0x1?void 0x0:_0x21d651?ir(_0x23c682,_0x7a3da0):_0x23c682,_0x45280e=_0x1dc61f[_0x4cb59f(0x117)]-0x1,_0x44d12e;_0x45280e>=0x0;_0x45280e--)(_0x44d12e=_0x1dc61f[_0x45280e])&&(_0x4a61f7=(_0x21d651?_0x44d12e(_0x23c682,_0x7a3da0,_0x4a61f7):_0x44d12e(_0x4a61f7))||_0x4a61f7);return _0x21d651&&_0x4a61f7&&sr(_0x23c682,_0x7a3da0,_0x4a61f7),_0x4a61f7;},ut=(_0x356e93,_0x7d35ff)=>(_0x214518,_0x430201)=>_0x7d35ff(_0x214518,_0x430201,_0x356e93);function rr(_0x2c71ba){const _0x1c0a5c=_0x27ba00,{unitID:_0x2611bd,mutations:_0x362055}=_0x2c71ba;return{'unitId':_0x2611bd,'subUnitId':_0x362055[0x0][_0x1c0a5c(0xb8)][_0x1c0a5c(0x145)]};}let Qe=class{constructor(_0x302a43,_0x18c368,_0x2ef2e7){const _0x5bf57e=_0x27ba00;this['_injector']=_0x302a43,this['_transformService']=_0x18c368,this[_0x5bf57e(0x160)]=_0x2ef2e7;}[_0x27ba00(0x289)](_0x41255b){const _0x99ecad=_0x27ba00;var _0x40b9ec,_0x14f05b,_0x435951,_0x2c616b;const _0x5d1fc1=this[_0x99ecad(0x2a6)][_0x99ecad(0x1dd)](_0x3145be),{unitId:_0x18f7ca,subUnitId:_0x541e36}=rr(_0x41255b),_0x5c7cc9=_0x5d1fc1[_0x99ecad(0x152)](_0x18f7ca)[_0x99ecad(0x362)](),_0x4342d1=(_0x14f05b=(_0x40b9ec=this['_instanceService'][_0x99ecad(0xbc)](_0x18f7ca))==null?void 0x0:_0x40b9ec['getActiveSheet']())==null?void 0x0:_0x14f05b['getSheetId']();if(_0x5c7cc9[_0x99ecad(0x117)]===0x0||!_0x18f7ca||!_0x541e36)return;const _0x3629a9=[{'id':_0x5b7f43['id'],'params':{'unitId':_0x18f7ca,'subUnitId':_0x4342d1,'selections':_0x38eaa3['deepClone'](_0x5c7cc9)}}],_0x3c9d65=this['_transformService'][_0x99ecad(0x3b9)](_0x41255b,_0x3629a9);if(!_0x1476be(_0x3c9d65))throw _0x3c9d65['error'];const _0x1fd895=(_0x2c616b=(_0x435951=_0x3c9d65[_0x99ecad(0x2c1)][0x0])==null?void 0x0:_0x435951[_0x99ecad(0xb8)])==null?void 0x0:_0x2c616b['selections'];Array['isArray'](_0x1fd895)&&_0x1fd895[_0x99ecad(0x117)]&&this[_0x99ecad(0x2a6)][_0x99ecad(0x1dd)](_0xf80f3b)['executeCommand'](_0x5b7f43['id'],{'unitId':_0x18f7ca,'subUnitId':_0x4342d1,'selections':_0x1fd895});}};Qe=nr([ut(0x0,_0x27d762(_0x2a6c13)),ut(0x1,_0x29f88d),ut(0x2,_0x4a4945)],Qe);const nt=_0x2d9842(_0x27ba00(0x357));var xs=(_0x2905c2=>(_0x2905c2[_0x2905c2[_0x27ba00(0x338)]=0x0]=_0x27ba00(0x338),_0x2905c2[_0x2905c2['OTHER_CLIENTS_EDITING']=0x1]=_0x27ba00(0x3d0),_0x2905c2))(xs||{});const cs=0x7530,hs=_0x27ba00(0x2b8);class or extends _0x10a60d{constructor(){const _0x2c6008=_0x27ba00;super(),l(this,_0x2c6008(0x250),_0x38eaa3[_0x2c6008(0x31a)]()),l(this,_0x2c6008(0x2ee),new Set()),l(this,_0x2c6008(0xb5),new Map()),l(this,'_heartbeatTimer',null),l(this,_0x2c6008(0x14f),new Map()),l(this,'_unitStatus',new Map()),this[_0x2c6008(0x7b)]();}[_0x27ba00(0x323)](){const _0x3db844=_0x27ba00;super[_0x3db844(0x323)](),this[_0x3db844(0x14f)]['forEach']((_0xaf1ca4,_0x35c836)=>this['_removeClearOtherTimer'](_0x35c836)),this[_0x3db844(0xca)]&&window[_0x3db844(0xa3)](this[_0x3db844(0xca)]);}['getUnitStatus$'](_0x5c7998){const _0x2f4633=_0x27ba00;return this[_0x2f4633(0xc8)](_0x5c7998)[_0x2f4633(0x31c)](_0x8c1afe());}[_0x27ba00(0x231)](_0x6fb85b){const _0x3d8d11=_0x27ba00;this[_0x3d8d11(0x2ee)]['size']===0x0&&this[_0x3d8d11(0x3aa)](),this[_0x3d8d11(0x2ee)][_0x3d8d11(0x30d)](_0x6fb85b),this[_0x3d8d11(0x332)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x6fb85b],'isForwarded':!0x1});}['disposeUnit'](_0x4781ee){const _0x8813ef=_0x27ba00;this[_0x8813ef(0x2ee)][_0x8813ef(0xe1)](_0x4781ee),this[_0x8813ef(0x2ee)]['size']===0x0&&this[_0x8813ef(0xca)]&&window['clearInterval'](this[_0x8813ef(0xca)]);}[_0x27ba00(0x7b)](){const _0x5002de=_0x27ba00;this['disposeWithMe'](_0x10763a(_0x1d5cc2(window,_0x5002de(0x273))['subscribe'](_0x180791=>{const _0x2ea726=_0x5002de;if(_0x180791[_0x2ea726(0x2ef)]!==hs||!_0x180791[_0x2ea726(0x134)])return;const _0x26f8f6=JSON[_0x2ea726(0xfc)](_0x180791['newValue']);this['_handleEvent'](_0x26f8f6);}))),window[_0x5002de(0x1a1)](_0x5002de(0x240),()=>this[_0x5002de(0x332)]({'type':0x1,'memberID':this[_0x5002de(0x250)],'unitIDs':Array[_0x5002de(0x309)](this[_0x5002de(0x2ee)])}));}['_handleEvent'](_0x540797){const _0x17ce15=_0x27ba00;switch(_0x540797['type']){case 0x0:this[_0x17ce15(0x341)](_0x540797);break;case 0x1:this['_handleLeaveEvent'](_0x540797);break;case 0x2:this[_0x17ce15(0x1ad)](_0x540797);break;}}[_0x27ba00(0x341)](_0xe78f1f){const _0x1d8f89=_0x27ba00,{unitIDs:_0x3d67e4,memberID:_0x3b7691,isForwarded:_0x5aff9c}=_0xe78f1f;_0x3d67e4[_0x1d8f89(0x392)](_0x42764b=>{const _0x4a2397=_0x1d8f89;if(!_0x5aff9c&&this['_unitOnClients'][_0x4a2397(0x262)](_0x42764b)&&this[_0x4a2397(0xc8)](_0x42764b)['next'](0x1),!this['_unitOnClients'][_0x4a2397(0x262)](_0x42764b)||!this[_0x4a2397(0xb5)][_0x4a2397(0x1dd)](_0x42764b)['has'](_0x3b7691)){const _0xc36d28=this[_0x4a2397(0xb5)][_0x4a2397(0x1dd)](_0x42764b)||new Set();_0xc36d28[_0x4a2397(0x30d)](_0x3b7691),this[_0x4a2397(0xb5)][_0x4a2397(0x371)](_0x42764b,_0xc36d28),this[_0x4a2397(0x235)](_0x3b7691);}}),_0x5aff9c||this[_0x1d8f89(0x332)]({'type':0x0,'memberID':this[_0x1d8f89(0x250)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x49bdda){const _0x2228f9=_0x27ba00;this[_0x2228f9(0x1d7)](_0x49bdda);const _0x340330=window[_0x2228f9(0x38d)](()=>{const _0x18cd4c=_0x2228f9;this[_0x18cd4c(0xb5)][_0x18cd4c(0x392)](_0x1efa34=>{_0x1efa34['delete'](_0x49bdda);});},cs*0x2);this[_0x2228f9(0x14f)]['set'](_0x49bdda,_0x340330);}['_removeClearOtherTimer'](_0x33edfb){const _0x388ac7=_0x27ba00;if(this['_clearOtherTimers'][_0x388ac7(0x262)](_0x33edfb)){const _0x392225=this[_0x388ac7(0x14f)][_0x388ac7(0x1dd)](_0x33edfb);_0x392225&&window[_0x388ac7(0x311)](_0x392225),this[_0x388ac7(0x14f)][_0x388ac7(0x371)](_0x33edfb,null);}}['_handleLeaveEvent'](_0x5dd7cd){const _0x11ae38=_0x27ba00,{memberID:_0x4a3c72,unitIDs:_0x111e42}=_0x5dd7cd;_0x111e42[_0x11ae38(0x392)](_0x3bd653=>{const _0x13a0ab=_0x11ae38;var _0x5b7839;const _0x44cd50=this['_unitOnClients'][_0x13a0ab(0x1dd)](_0x3bd653);_0x44cd50&&(_0x44cd50[_0x13a0ab(0xe1)](_0x4a3c72),(_0x5b7839=this[_0x13a0ab(0xc8)](_0x3bd653))==null||_0x5b7839[_0x13a0ab(0x8c)](_0x44cd50['size']===0x0?0x0:0x1));}),this[_0x11ae38(0x1d7)](_0x4a3c72);}[_0x27ba00(0x1ad)](_0x2a9f55){const _0x553dc2=_0x27ba00;this['_scheduleClearOtherTimer'](_0x2a9f55[_0x553dc2(0x1dc)]);}['_send'](_0x4bdb9a){const _0x317f7d=_0x27ba00;localStorage[_0x317f7d(0x1bc)](hs,JSON[_0x317f7d(0xea)](_0x4bdb9a));}[_0x27ba00(0x3aa)](){const _0x527b90=_0x27ba00;this['_heartbeatTimer']=window[_0x527b90(0x319)](()=>{const _0x158d3f=_0x527b90;this[_0x158d3f(0x332)]({'type':0x2,'memberID':this['_id']});},cs);}[_0x27ba00(0xc8)](_0x6881c7){const _0x24a809=_0x27ba00;return this['_unitStatus'][_0x24a809(0x262)](_0x6881c7)||this[_0x24a809(0x1a5)][_0x24a809(0x371)](_0x6881c7,new _0x23c814(0x0)),this[_0x24a809(0x1a5)][_0x24a809(0x1dd)](_0x6881c7);}}function Hs(_0x576f7b){const _0x160529=_0x27ba00;let _0x1b66f5='';for(const _0x376522 of _0x576f7b){const {startOffset:_0xf63585,endOffset:_0x3290db,isActive:_0x4cd5e6}=_0x376522;_0x1b66f5[_0x160529(0x117)]&&(_0x1b66f5+=','),_0x1b66f5+=_0xf63585+':'+_0x3290db+':'+(_0x4cd5e6?'1':'0');}return _0x1b66f5;}function ar(_0x28187c){const _0x54ff85=_0x27ba00,_0x3ded91=_0x28187c[_0x54ff85(0x17e)](','),_0x58225c=[];for(const _0x443368 of _0x3ded91){const [_0x26b332,_0x4d192b,_0x227778]=_0x443368[_0x54ff85(0x17e)](':');_0x58225c['push']({'startOffset':Number(_0x26b332),'endOffset':Number(_0x4d192b),'collapsed':_0x26b332===_0x4d192b,'isActive':_0x227778==='1'});}return _0x58225c[_0x54ff85(0x28d)](_0x43014b=>_0x43014b[_0x54ff85(0x1ee)])||(_0x58225c[0x0][_0x54ff85(0x1ee)]=!0x0),_0x58225c;}class Ft extends _0x504ec7{constructor(){const _0x4f35f5=_0x27ba00;super(...arguments),l(this,_0x4f35f5(0x84),new _0x23c814(null)),l(this,_0x4f35f5(0x162),this[_0x4f35f5(0x84)][_0x4f35f5(0x14e)]());}['syncEditingCollabCursor'](_0x4fe31c){const _0x621620=_0x27ba00,{unitID:_0x42b568,memberID:_0x3fe3b1,textRanges:_0x4941bd}=_0x4fe31c,_0x4e255c=Hs(_0x4941bd),_0xeb2b8={'unitID':_0x42b568,'memberID':_0x3fe3b1,'selection':_0x4e255c};this[_0x621620(0x84)]['next'](_0xeb2b8);}}var cr=Object[_0x27ba00(0x198)],hr=Object[_0x27ba00(0x280)],lr=(_0x55255f,_0x3dddc9,_0x29eed0,_0x1f49a3)=>{const _0x33472c=_0x27ba00;for(var _0x1a4e31=_0x1f49a3>0x1?void 0x0:_0x1f49a3?hr(_0x3dddc9,_0x29eed0):_0x3dddc9,_0x37634e=_0x55255f[_0x33472c(0x117)]-0x1,_0x53a4f6;_0x37634e>=0x0;_0x37634e--)(_0x53a4f6=_0x55255f[_0x37634e])&&(_0x1a4e31=(_0x1f49a3?_0x53a4f6(_0x3dddc9,_0x29eed0,_0x1a4e31):_0x53a4f6(_0x1a4e31))||_0x1a4e31);return _0x1f49a3&&_0x1a4e31&&cr(_0x3dddc9,_0x29eed0,_0x1a4e31),_0x1a4e31;},ls=(_0x132a35,_0x288b1b)=>(_0x690f5e,_0x18f762)=>_0x288b1b(_0x690f5e,_0x18f762,_0x132a35);let et=class{constructor(_0x3785f6,_0x17acab){const _0x1a25a4=_0x27ba00;this[_0x1a25a4(0x2a6)]=_0x3785f6,this[_0x1a25a4(0x32a)]=_0x17acab;}['transformSelections'](_0x54f679){const _0x2297ad=_0x27ba00;var _0x10bcf9;const _0x7078c8=this[_0x2297ad(0x2a6)]['get'](_0x4f65a4),_0x5a125c=(_0x10bcf9=_0x7078c8['getDocRanges']())!=null?_0x10bcf9:[];if(_0x5a125c['length']===0x0)return;const _0x5762ef=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x54f679[_0x2297ad(0x12c)],'actions':null,'textRanges':_0x5a125c}}],_0x1f5536=this[_0x2297ad(0x32a)]['transformMutationsWithChangeset'](_0x54f679,_0x5762ef);if(!_0x1476be(_0x1f5536))throw _0x1f5536[_0x2297ad(0x1e5)];const _0x3cd70e=_0x1f5536[_0x2297ad(0x2c1)][0x0]['params'][_0x2297ad(0x2eb)];Array[_0x2297ad(0x165)](_0x3cd70e)&&_0x3cd70e[_0x2297ad(0x117)]&&_0x7078c8['replaceTextRanges'](_0x3cd70e,!0x1);}};et=lr([ls(0x0,_0x27d762(_0x2a6c13)),ls(0x1,_0x29f88d)],et);const _r=new Set([_0x2e3a28['id']]);function _s(_0x3ae618,_0x2ed45d,_0x96faed,_0x4762fa,_0x5ca0be){const _0x68cad8=_0x27ba00;var _0x39a0b6,_0xac87a7,_0x3b2b5f,_0x3220ac;const _0x25815a=[];for(const _0x1678cd of _0x3ae618)if(_r[_0x68cad8(0x262)](_0x1678cd['id'])){if(_0x25815a['length']>0x0)break;_0x25815a['push'](_0x1678cd);break;}else _0x25815a[_0x68cad8(0x2ec)](_0x1678cd);const _0x5da737=(_0xac87a7=(_0x39a0b6=_0x5ca0be['getCurrentUser']())==null?void 0x0:_0x39a0b6['userID'])!=null?_0xac87a7:_0x68cad8(0x1fe),_0x4ec50d=(_0x3220ac=(_0x3b2b5f=_0x5ca0be[_0x68cad8(0x21f)]())==null?void 0x0:_0x3b2b5f[_0x68cad8(0x1dc)])!=null?_0x3220ac:_0x68cad8(0x1fe);return{'changeset':{'unitID':_0x2ed45d,'type':_0x49b8c6(_0x96faed[_0x68cad8(0xe2)](_0x2ed45d)),'baseRev':_0x4762fa[_0x68cad8(0x176)](_0x2ed45d),'revision':0x0,'userID':_0x5da737,'memberID':_0x4ec50d,'mutations':_0x25815a},'pendingMutations':_0x3ae618[_0x68cad8(0x1bb)](_0x25815a[_0x68cad8(0x117)])};}function ur(_0x9a6efb,_0x2df891,_0x2e1872,_0x3685b5,_0x23adbf){const _0x4b6788=_0x27ba00;var _0x23a765,_0x58157d,_0x56c086,_0x39c70c;const _0x540fab=[_0x9a6efb[_0x4b6788(0x331)]((_0x40cdb8,_0x1c1a88)=>{const _0x2dc608=_0x4b6788;var _0x187fbd;const {id:_0x87ff94}=_0x40cdb8,{id:_0x831470,type:_0x101883}=_0x1c1a88,_0x285ecd=(_0x187fbd=_0x40cdb8[_0x2dc608(0xb8)])!=null?_0x187fbd:{'actions':null},_0x37f07d=_0x1c1a88['params'];if(_0x87ff94&&_0x87ff94!==_0x831470)throw new Error(_0x2dc608(0x150)+_0x87ff94+_0x2dc608(0x2c0)+_0x831470+'.');return{..._0x40cdb8,'id':_0x831470,'type':_0x101883,'params':{'unitId':_0x37f07d[_0x2dc608(0x21a)],'textRanges':_0x37f07d[_0x2dc608(0x2eb)],'actions':_0x1eddbc[_0x2dc608(0x38a)](_0x285ecd[_0x2dc608(0x2cd)],_0x37f07d[_0x2dc608(0x2cd)])}};},{})],_0x5de392=(_0x58157d=(_0x23a765=_0x23adbf['getCurrentUser']())==null?void 0x0:_0x23a765[_0x4b6788(0x2f0)])!=null?_0x58157d:'unknown',_0x20d1f9=(_0x39c70c=(_0x56c086=_0x23adbf[_0x4b6788(0x21f)]())==null?void 0x0:_0x56c086[_0x4b6788(0x1dc)])!=null?_0x39c70c:_0x4b6788(0x1fe);return{'changeset':{'unitID':_0x2df891,'type':_0x49b8c6(_0x2e1872[_0x4b6788(0xe2)](_0x2df891)),'baseRev':_0x3685b5[_0x4b6788(0x176)](_0x2df891),'revision':0x0,'userID':_0x5de392,'memberID':_0x20d1f9,'mutations':_0x540fab},'pendingMutations':[]};}const dr={'id':_0x574c93['id'],'type':_0x38cb05[_0x27ba00(0x2b2)],'params':{}};var fr=Object[_0x27ba00(0x198)],mr=Object[_0x27ba00(0x280)],le=(_0x676d48,_0x2c1314,_0x592713,_0x220914)=>{const _0x3b3e27=_0x27ba00;for(var _0x3c434a=_0x220914>0x1?void 0x0:_0x220914?mr(_0x2c1314,_0x592713):_0x2c1314,_0x50e256=_0x676d48[_0x3b3e27(0x117)]-0x1,_0x56fc3d;_0x50e256>=0x0;_0x50e256--)(_0x56fc3d=_0x676d48[_0x50e256])&&(_0x3c434a=(_0x220914?_0x56fc3d(_0x2c1314,_0x592713,_0x3c434a):_0x56fc3d(_0x3c434a))||_0x3c434a);return _0x220914&&_0x3c434a&&fr(_0x2c1314,_0x592713,_0x3c434a),_0x3c434a;},m=(_0x28de5f,_0x394801)=>(_0x200f19,_0xb9b236)=>_0x394801(_0x200f19,_0xb9b236,_0x28de5f),w=(_0x345e77=>(_0x345e77[_0x27ba00(0x317)]='not_collab',_0x345e77['SYNCED']='synced',_0x345e77['PENDING']=_0x27ba00(0x3a1),_0x345e77[_0x27ba00(0x21b)]=_0x27ba00(0xe7),_0x345e77[_0x27ba00(0x207)]=_0x27ba00(0x209),_0x345e77['FETCH_MISS']=_0x27ba00(0x260),_0x345e77[_0x27ba00(0x139)]='conflict',_0x345e77[_0x27ba00(0x1f1)]='offline',_0x345e77))(w||{});function _0x1a62(_0x15e139,_0x1ce824){const _0x40b2b5=_0x40b2();return _0x1a62=function(_0x1a6233,_0x259199){_0x1a6233=_0x1a6233-0x68;let _0x71c8b4=_0x40b2b5[_0x1a6233];return _0x71c8b4;},_0x1a62(_0x15e139,_0x1ce824);}class _e{constructor(_0x1a209a,_0x1f9476,_0x3aa0cf,_0x56838c,_0x3ba420,_0x420c92,_0x426a72,_0x4c29f0,_0xc394d7){const _0x44b793=_0x27ba00;l(this,_0x44b793(0x90),null),l(this,_0x44b793(0x3df),[]),(this[_0x44b793(0x12c)]=_0x1a209a,this[_0x44b793(0xd5)]=_0x1f9476,this[_0x44b793(0x3b4)]=_0x3ba420,this[_0x44b793(0x1b0)]=_0x420c92,this['_undoRedoService']=_0x426a72,this[_0x44b793(0x76)]=_0x4c29f0,this[_0x44b793(0x12a)]=_0xc394d7,this[_0x44b793(0x90)]=_0x3aa0cf,this[_0x44b793(0x3df)]=_0x56838c);}[_0x27ba00(0x349)](_0x1c65f5){const _0x11307e=_0x27ba00,_0x5e3bd4=this[_0x11307e(0x76)][_0x11307e(0x176)](this[_0x11307e(0x12c)]);return _0x1c65f5[_0x11307e(0xd2)]>_0x5e3bd4+0x1?(this[_0x11307e(0x3b4)][_0x11307e(0x140)]({'from':_0x5e3bd4,'to':_0x1c65f5[_0x11307e(0xd2)]-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x3999bc){const _0x15e6ec=_0x27ba00;this[_0x15e6ec(0x3db)][_0x15e6ec(0x100)](this[_0x15e6ec(0x12c)],_0x3999bc);}[_0x27ba00(0x3cd)](_0x1cb54d){const _0x53fb0f=_0x27ba00;var _0x2bc907,_0x3571d5;(_0x3571d5=(_0x2bc907=this[_0x53fb0f(0x3b4)])[_0x53fb0f(0x21d)])==null||_0x3571d5[_0x53fb0f(0x321)](_0x2bc907,_0x1cb54d);}[_0x27ba00(0x8f)](_0x301834){const _0x51c408=_0x27ba00;var _0x27510a,_0x38d085;return(_0x38d085=(_0x27510a=this['_handler'])[_0x51c408(0xbf)])==null?void 0x0:_0x38d085[_0x51c408(0x321)](_0x27510a,_0x301834);}['_transformRemoteChangesetByIMECache'](_0xaf194){const _0x5a3834=_0x27ba00;var _0x2162d3,_0x258e49,_0x558e42;return(_0x558e42=(_0x258e49=(_0x2162d3=this[_0x5a3834(0x3b4)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x258e49[_0x5a3834(0x321)](_0x2162d3,_0xaf194))!=null?_0x558e42:_0xaf194;}[_0x27ba00(0x330)](_0x58a387){const _0x364e6d=_0x27ba00;var _0x570b54,_0x1e5c85;if(this[_0x364e6d(0xd5)]===H[_0x364e6d(0x2e3)]){const {unitID:_0x22b64f,mutations:_0x36e2cf,memberID:_0x32ed9}=_0x58a387,_0x7605bc=_0x36e2cf[0x0][_0x364e6d(0xb8)][_0x364e6d(0x2eb)];Array['isArray'](_0x7605bc)&&_0x7605bc[_0x364e6d(0x117)]>0x0&&((_0x1e5c85=(_0x570b54=this['_handler'])[_0x364e6d(0x154)])==null||_0x1e5c85['call'](_0x570b54,{'unitID':_0x22b64f,'memberID':_0x32ed9,'textRanges':_0x7605bc}));}}[_0x27ba00(0x1ea)](){const _0x3b336d=_0x27ba00;this['_localCacheService'][_0x3b336d(0x2e1)](this[_0x3b336d(0x12c)],this[_0x3b336d(0xd5)],this[_0x3b336d(0x90)],this['_pendingMutations']);}[_0x27ba00(0x2c7)](){const _0x6a2b1a=_0x27ba00;return this[_0x6a2b1a(0x76)][_0x6a2b1a(0x176)](this[_0x6a2b1a(0x12c)]);}[_0x27ba00(0x302)](){const _0x34ef48=_0x27ba00;this['_revisionService'][_0x34ef48(0x374)](this['unitID']);}[_0x27ba00(0x2de)](_0x39162c){const _0x43f216=_0x27ba00;var _0x2f86a8;const _0xd7fb97=this[_0x43f216(0x39d)](_0x39162c),_0x3797cd=_0x312bc3(_0xd7fb97['mutations'],this[_0x43f216(0x1b0)],{'fromCollab':!0x0});if(!_0x3797cd['result'])throw _0x3797cd[_0x43f216(0x1e5)]instanceof Error?_0x3797cd[_0x43f216(0x1e5)]:new Error((_0x2f86a8=_0x3797cd[_0x43f216(0x1e5)])!=null?_0x2f86a8:_0x43f216(0x1d0));this[_0x43f216(0x8f)](_0xd7fb97),this[_0x43f216(0xf7)](_0x39162c),this[_0x43f216(0x3cd)](_0xd7fb97),this[_0x43f216(0x330)](_0xd7fb97),this[_0x43f216(0x302)]();}}let pe=class extends _e{constructor(_0x42f56b,_0x323b68,_0x1cb354,_0x5196fa,_0x242eaf,_0x4948fd,_0x3c88fc,_0x9bbac6,_0x21da03,_0x34d5a2){const _0x3ea643=_0x27ba00;super(_0x42f56b,_0x323b68,null,[],_0x1cb354,_0x9bbac6,_0x3c88fc,_0x5196fa,_0x242eaf),l(this,_0x3ea643(0x102),_0x3ea643(0x8e)),(this[_0x3ea643(0x2a6)]=_0x4948fd,this[_0x3ea643(0xd6)]=_0x21da03,this['_transformService']=_0x34d5a2);}[_0x27ba00(0x3af)](_0x193c68){const _0x23130e=_0x27ba00,_0x932cfe=this['_injector'][_0x23130e(0x85)](K,this[_0x23130e(0x12c)],this[_0x23130e(0xd5)],[_0x193c68],this['_handler']);return _0x932cfe[_0x23130e(0x148)](),_0x932cfe['_updateLocalCache'](),_0x932cfe;}['onRemoteChangeset'](_0x2d4fe1){const _0x4067f2=_0x27ba00;if(this[_0x4067f2(0x349)](_0x2d4fe1))return this[_0x4067f2(0x2a6)][_0x4067f2(0x85)](k,this[_0x4067f2(0x12c)],this[_0x4067f2(0xd5)],null,[],null,[_0x2d4fe1],this[_0x4067f2(0x3b4)]);try{const _0x46d780=this[_0x4067f2(0x32a)]['transformMutationsWithChangeset'](_0x2d4fe1,[dr]);if(_0x1476be(_0x46d780)){const {c1Prime:_0x10b561}=_0x46d780;return this[_0x4067f2(0x2de)](_0x10b561),this;}throw _0x46d780[_0x4067f2(0x1e5)];}catch(_0x10876e){return this[_0x4067f2(0xd6)][_0x4067f2(0x1e5)](_0x10876e),this[_0x4067f2(0x272)](!0x1);}}['_onConflict'](_0x5774c6){const _0x1a7fc7=_0x27ba00;return this[_0x1a7fc7(0x2a6)][_0x1a7fc7(0x85)](ee,this[_0x1a7fc7(0x12c)],this[_0x1a7fc7(0xd5)],null,[],this[_0x1a7fc7(0x3b4)],_0x5774c6);}[_0x27ba00(0x3dd)](){const _0x598a6b=_0x27ba00;throw new Error(_0x598a6b(0x1ef));}[_0x27ba00(0xac)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}[_0x27ba00(0x14b)](){const _0xadb52f=_0x27ba00;return this[_0xadb52f(0x2a6)][_0xadb52f(0x85)](te,this[_0xadb52f(0x12c)],this[_0xadb52f(0xd5)],null,[],this[_0xadb52f(0x3b4)]);}[_0x27ba00(0x6b)](){return this;}[_0x27ba00(0x13a)](){const _0x115ee7=_0x27ba00;throw new Error(_0x115ee7(0x1af));}[_0x27ba00(0x170)](){const _0x14448b=_0x27ba00,_0x168eb3=this['_revisionService'][_0x14448b(0x176)](this['unitID']);return this[_0x14448b(0x3b4)][_0x14448b(0x140)]({'from':_0x168eb3,'to':0x0}),this[_0x14448b(0x2a6)]['createInstance'](k,this['unitID'],this['type'],null,[],null,[],this['_handler']);}};pe=le([m(0x3,_0x27d762(_0x3a9a12)),m(0x4,_0x27d762(D)),m(0x5,_0x27d762(_0x2a6c13)),m(0x6,_0x3b566c),m(0x7,_0xf80f3b),m(0x8,_0x1dd153),m(0x9,_0x29f88d)],pe);let K=class extends _e{constructor(_0x5985f7,_0x404724,_0x158bc0,_0x2531fb,_0x28121a,_0x2042fc,_0xa34621,_0x169706,_0x4f8382,_0x4aba6c,_0x52b7bb,_0x5dccb3,_0x20592d,_0xbb32a8){const _0xf6f517=_0x27ba00;super(_0x5985f7,_0x404724,null,_0x158bc0,_0x2531fb,_0x4aba6c,_0xbb32a8,_0x2042fc,_0xa34621),l(this,_0xf6f517(0x102),_0xf6f517(0x3a1)),l(this,_0xf6f517(0x1db),null),l(this,_0xf6f517(0x3dc),null),(this[_0xf6f517(0x2a6)]=_0x28121a,this[_0xf6f517(0x26b)]=_0x169706,this[_0xf6f517(0xd6)]=_0x4f8382,this['_configService']=_0x52b7bb,this[_0xf6f517(0x32a)]=_0x5dccb3,this['_univerInstanceService']=_0x20592d);}[_0x27ba00(0x3af)](_0x587e27){const _0x12fcd4=_0x27ba00;return this[_0x12fcd4(0x3df)][_0x12fcd4(0x2ec)](_0x587e27),this[_0x12fcd4(0x1ea)](),this;}[_0x27ba00(0x304)](_0xf5d39f){const _0x476eda=_0x27ba00;if(this[_0x476eda(0x349)](_0xf5d39f))return this[_0x476eda(0x143)](),this['_injector'][_0x476eda(0x85)](k,this[_0x476eda(0x12c)],this[_0x476eda(0xd5)],null,this[_0x476eda(0x3df)],null,[_0xf5d39f],this[_0x476eda(0x3b4)]);try{const _0x59c1eb=this['_transformService'][_0x476eda(0x3b9)](_0xf5d39f,this['_pendingMutations']);if(_0x1476be(_0x59c1eb)){const {c1Prime:_0x396861,m2Prime:_0x5c1116}=_0x59c1eb;this['_executeRemoteChangeset'](_0x396861);const _0x50d624=this[_0x476eda(0x2a6)]['createInstance'](K,this['unitID'],this[_0x476eda(0xd5)],_0x5c1116,this[_0x476eda(0x3b4)]);return this[_0x476eda(0x143)](),_0x50d624[_0x476eda(0x148)](this[_0x476eda(0x1db)]?Math[_0x476eda(0x1d1)](0x0,new Date()[_0x476eda(0xd3)]()-this[_0x476eda(0x1db)]):this['_getSendChangesetTimeout']()),_0x50d624;}throw _0x59c1eb[_0x476eda(0x1e5)];}catch(_0x55523c){return this[_0x476eda(0xd6)][_0x476eda(0x1e5)](_0x55523c),this[_0x476eda(0x272)](!0x1);}}[_0x27ba00(0x3dd)](){const _0x13c0d4=_0x27ba00;throw new Error(_0x13c0d4(0xf4));}['onRemoteRej'](){const _0x58ccfd=_0x27ba00;throw new Error(_0x58ccfd(0x277));}[_0x27ba00(0x14b)](){const _0xcb98ab=_0x27ba00;return this[_0xcb98ab(0x143)](),this[_0xcb98ab(0x2a6)]['createInstance'](te,this['unitID'],this[_0xcb98ab(0xd5)],null,this['_pendingMutations'],this[_0xcb98ab(0x3b4)]);}[_0x27ba00(0x6b)](){return this;}[_0x27ba00(0x148)](_0x914997){const _0x4e5ff8=_0x27ba00,_0x4a2a16=_0x914997!=null?_0x914997:this[_0x4e5ff8(0x18c)]();this['_scheduleTimestamp']=new Date()[_0x4e5ff8(0xd3)](),this[_0x4e5ff8(0x3dc)]=window[_0x4e5ff8(0x38d)](()=>{const _0x3e8624=_0x4e5ff8;this['_clearScheduledTask']();let _0x2d6845=null;switch(this[_0x3e8624(0xd5)]){case H[_0x3e8624(0xdf)]:{_0x2d6845=_s(this[_0x3e8624(0x3df)],this[_0x3e8624(0x12c)],this['_univerInstanceService'],this[_0x3e8624(0x76)],this['_memberService']);break;}case H[_0x3e8624(0x2e3)]:{this[_0x3e8624(0x3df)][_0x3e8624(0x124)](_0x3ee0c2=>_0x3ee0c2['id']===_0x4ee1d3['id'])?_0x2d6845=ur(this[_0x3e8624(0x3df)],this['unitID'],this[_0x3e8624(0xe3)],this[_0x3e8624(0x76)],this[_0x3e8624(0x26b)]):_0x2d6845=_s(this[_0x3e8624(0x3df)],this[_0x3e8624(0x12c)],this[_0x3e8624(0xe3)],this[_0x3e8624(0x76)],this[_0x3e8624(0x26b)]);break;}default:throw new Error(_0x3e8624(0x29b)+this['type']+'\x20in\x20_schedule.');}const {changeset:_0x4c60a4,pendingMutations:_0x5eed45}=_0x2d6845;this[_0x3e8624(0x3b4)][_0x3e8624(0x3e0)](_0x4c60a4);const _0x9de8ee=_0x5eed45[_0x3e8624(0x117)]?this[_0x3e8624(0x2a6)]['createInstance'](X,this[_0x3e8624(0x12c)],this['type'],_0x4c60a4,_0x5eed45,this[_0x3e8624(0x3b4)]):this[_0x3e8624(0x2a6)][_0x3e8624(0x85)](Q,this[_0x3e8624(0x12c)],this[_0x3e8624(0xd5)],_0x4c60a4,this[_0x3e8624(0x3b4)]);_0x9de8ee['_updateLocalCache'](),this[_0x3e8624(0x3b4)][_0x3e8624(0x1c3)](this,_0x9de8ee);},_0x4a2a16);}[_0x27ba00(0x18c)](){const _0x2adece=_0x27ba00;var _0x242186;const _0x509921=this[_0x2adece(0x19e)]['getConfig'](L);return(_0x242186=_0x509921==null?void 0x0:_0x509921[_0x2adece(0x203)])!=null?_0x242186:Sn;}[_0x27ba00(0x13a)](){const _0x1dce56=_0x27ba00;throw new Error(_0x1dce56(0x37e));}[_0x27ba00(0x143)](){const _0x3f01e2=_0x27ba00;this[_0x3f01e2(0x3dc)]!=null&&(clearTimeout(this[_0x3f01e2(0x3dc)]),this['_sendingTimer']=null);}['_onConflict'](_0x2cc754){const _0x47de65=_0x27ba00;return this[_0x47de65(0x143)](),this[_0x47de65(0x2a6)][_0x47de65(0x85)](ee,this[_0x47de65(0x12c)],this[_0x47de65(0xd5)],null,this[_0x47de65(0x3df)],this[_0x47de65(0x3b4)],_0x2cc754);}};K=le([m(0x4,_0x27d762(_0x2a6c13)),m(0x5,_0x27d762(_0x3a9a12)),m(0x6,_0x27d762(D)),m(0x7,_0x27d762(ae)),m(0x8,_0x1dd153),m(0x9,_0xf80f3b),m(0xa,_0xeb1b98),m(0xb,_0x29f88d),m(0xc,_0x4a4945),m(0xd,_0x3b566c)],K);let Q=class extends _e{constructor(_0x3d1cc8,_0xef980d,_0x2c7ce7,_0x3421fd,_0x11cfa,_0x1dde62,_0x165d41,_0xed1279,_0x5133f2,_0x110319,_0x111e54){const _0x3cafaf=_0x27ba00;super(_0x3d1cc8,_0xef980d,_0x2c7ce7,[],_0x3421fd,_0xed1279,_0x111e54,_0x1dde62,_0x165d41),l(this,_0x3cafaf(0x102),_0x3cafaf(0xe7)),(this[_0x3cafaf(0x2a6)]=_0x11cfa,this[_0x3cafaf(0xd6)]=_0x5133f2,this[_0x3cafaf(0x32a)]=_0x110319);}[_0x27ba00(0x3af)](_0x583f95){const _0x38d4cb=_0x27ba00,_0xdceff1=this['_injector']['createInstance'](X,this[_0x38d4cb(0x12c)],this['type'],this[_0x38d4cb(0x90)],[_0x583f95],this['_handler']);return _0xdceff1[_0x38d4cb(0x1ea)](),_0xdceff1;}[_0x27ba00(0x304)](_0x4c7fb9){const _0x17d9bb=_0x27ba00;if(this['_checkMissing'](_0x4c7fb9))return this['_injector'][_0x17d9bb(0x85)](k,this['unitID'],this[_0x17d9bb(0xd5)],this['_awaitingChangeset'],[],null,[_0x4c7fb9],this[_0x17d9bb(0x3b4)]);try{const _0x52e349=this['_transformService'][_0x17d9bb(0x398)]([_0x4c7fb9],[this[_0x17d9bb(0x90)]],!0x1);if(_0x246037(_0x52e349)){const {c1Prime:_0x12c794,c2Prime:_0x7e279b}=_0x52e349;this[_0x17d9bb(0x2de)](_0x12c794[0x0]),_0x7e279b[0x0][_0x17d9bb(0x32c)]=this[_0x17d9bb(0x2c7)]();const _0xabcd0=this[_0x17d9bb(0x2a6)]['createInstance'](Q,this['unitID'],this[_0x17d9bb(0xd5)],_0x7e279b[0x0],this['_handler']);return _0xabcd0['_updateLocalCache'](),_0xabcd0;}return this[_0x17d9bb(0x272)](!0x1);}catch(_0x2c1341){return this[_0x17d9bb(0xd6)][_0x17d9bb(0x1e5)](_0x2c1341),this[_0x17d9bb(0x272)](!0x1);}}[_0x27ba00(0x3dd)](_0x3e8304){const _0x39e957=_0x27ba00,_0xf3aa5a=this[_0x39e957(0x76)]['getCurrentRevOfUnit'](this['unitID']);if(_0x3e8304['revision']<_0xf3aa5a-0x1)return this;if(this[_0x39e957(0x349)](_0x3e8304))return this[_0x39e957(0x2a6)][_0x39e957(0x85)](k,this[_0x39e957(0x12c)],this[_0x39e957(0xd5)],null,[],this[_0x39e957(0x90)],[],this[_0x39e957(0x3b4)]);this['_incrementRevisionNumber']();const _0x4f148d=this['_injector'][_0x39e957(0x85)](pe,this['unitID'],this['type'],this['_handler']);return _0x4f148d[_0x39e957(0x1ea)](),_0x4f148d;}[_0x27ba00(0xac)](_0x34a849){const _0x562ccc=_0x27ba00;return this['_onConflict'](!!(_0x34a849!=null&&_0x34a849[_0x562ccc(0x329)]));}[_0x27ba00(0x14b)](){const _0x4745c6=_0x27ba00;return this[_0x4745c6(0x2a6)]['createInstance'](te,this[_0x4745c6(0x12c)],this['type'],this['_awaitingChangeset'],[],this['_handler']);}[_0x27ba00(0x6b)](){return this;}[_0x27ba00(0x13a)](){const _0x5e5762=_0x27ba00;this[_0x5e5762(0x3b4)]['onSendChangeset'](this[_0x5e5762(0x90)]);}[_0x27ba00(0x272)](_0x3c85cc){const _0x17b13a=_0x27ba00;return this['_injector'][_0x17b13a(0x85)](ee,this[_0x17b13a(0x12c)],this[_0x17b13a(0xd5)],this['_awaitingChangeset'],[],this[_0x17b13a(0x3b4)],_0x3c85cc);}};Q=le([m(0x4,_0x27d762(_0x2a6c13)),m(0x5,_0x27d762(_0x3a9a12)),m(0x6,_0x27d762(D)),m(0x7,_0xf80f3b),m(0x8,_0x1dd153),m(0x9,_0x29f88d),m(0xa,_0x3b566c)],Q);let X=class extends _e{constructor(_0x242d53,_0x40a6e0,_0x47e45e,_0x4cf66f,_0x335b8f,_0x7dd3b5,_0x42e4eb,_0xec7f51,_0x39ad74,_0x36b824,_0x1dc8e3,_0x16101d){const _0x524fa2=_0x27ba00;super(_0x242d53,_0x40a6e0,_0x47e45e,_0x4cf66f,_0x335b8f,_0x39ad74,_0x16101d,_0x42e4eb,_0xec7f51),l(this,_0x524fa2(0x102),_0x524fa2(0x209)),(this[_0x524fa2(0x2a6)]=_0x7dd3b5,this[_0x524fa2(0xd6)]=_0x36b824,this['_transformService']=_0x1dc8e3);}[_0x27ba00(0x3af)](_0x10e1b5){const _0x36b1b6=_0x27ba00;return this[_0x36b1b6(0x3df)][_0x36b1b6(0x2ec)](_0x10e1b5),this;}['onRemoteChangeset'](_0x39a7f4){const _0x3cc945=_0x27ba00;if(this[_0x3cc945(0x349)](_0x39a7f4))return this[_0x3cc945(0x2a6)]['createInstance'](k,this[_0x3cc945(0x12c)],this[_0x3cc945(0xd5)],this['_awaitingChangeset'],this[_0x3cc945(0x3df)],null,[_0x39a7f4],this[_0x3cc945(0x3b4)]);try{const _0x27273f=this[_0x3cc945(0x32a)][_0x3cc945(0x398)]([_0x39a7f4],[this['_awaitingChangeset']],!0x1);if(_0x246037(_0x27273f)){const {c1Prime:_0x1f560f,c2Prime:_0x1bb68c}=_0x27273f,_0x4626e5=this[_0x3cc945(0x32a)][_0x3cc945(0x3b9)](_0x1f560f[0x0],this[_0x3cc945(0x3df)]);if(_0x1476be(_0x4626e5)){const {c1Prime:_0x1da1fc,m2Prime:_0x2d6fd8}=_0x4626e5;return this[_0x3cc945(0x2de)](_0x1da1fc),_0x1bb68c[0x0][_0x3cc945(0x32c)]=this[_0x3cc945(0x2c7)](),this[_0x3cc945(0x2a6)][_0x3cc945(0x85)](X,this[_0x3cc945(0x12c)],this[_0x3cc945(0xd5)],_0x1bb68c[0x0],_0x2d6fd8,this[_0x3cc945(0x3b4)]);}throw _0x4626e5['error'];}throw _0x27273f[_0x3cc945(0x1e5)];}catch(_0x45652a){return this[_0x3cc945(0xd6)][_0x3cc945(0x1e5)](_0x45652a),this[_0x3cc945(0x272)](!0x1);}}[_0x27ba00(0x3dd)](_0x76b480){const _0x577a02=_0x27ba00;if(this[_0x577a02(0x349)](_0x76b480))return this[_0x577a02(0x2a6)][_0x577a02(0x85)](k,this[_0x577a02(0x12c)],this[_0x577a02(0xd5)],null,this[_0x577a02(0x3df)],this[_0x577a02(0x90)],[],this[_0x577a02(0x3b4)]);this[_0x577a02(0x302)]();const _0x13769f=this[_0x577a02(0x2a6)][_0x577a02(0x85)](K,this[_0x577a02(0x12c)],this[_0x577a02(0xd5)],this[_0x577a02(0x3df)],this[_0x577a02(0x3b4)]);return _0x13769f['_schedule'](),_0x13769f['_updateLocalCache'](),_0x13769f;}['onRemoteRej'](_0x49f09a){const _0x11425e=_0x27ba00;return this[_0x11425e(0x272)](!!(_0x49f09a!=null&&_0x49f09a[_0x11425e(0x329)]));}[_0x27ba00(0x14b)](){const _0x897540=_0x27ba00;return this[_0x897540(0x2a6)][_0x897540(0x85)](te,this[_0x897540(0x12c)],this['type'],this[_0x897540(0x90)],this['_pendingMutations'],this[_0x897540(0x3b4)]);}[_0x27ba00(0x6b)](){return this;}[_0x27ba00(0x13a)](){const _0x3f709f=_0x27ba00;this[_0x3f709f(0x3b4)][_0x3f709f(0x3e0)](this['_awaitingChangeset']);}[_0x27ba00(0x272)](_0x5b2c6e){const _0x243d44=_0x27ba00;return this[_0x243d44(0x2a6)]['createInstance'](ee,this[_0x243d44(0x12c)],this['type'],null,this['_pendingMutations'],this['_handler'],_0x5b2c6e);}};X=le([m(0x5,_0x27d762(_0x2a6c13)),m(0x6,_0x27d762(_0x3a9a12)),m(0x7,_0x27d762(D)),m(0x8,_0xf80f3b),m(0x9,_0x1dd153),m(0xa,_0x29f88d),m(0xb,_0x3b566c)],X);let ee=class extends _e{constructor(_0x223e24,_0x35bb02,_0x4a74d7,_0x2cb14f,_0x341422,_0x52776c=!0x1,_0x5e8e23,_0x452e30,_0xa709ee,_0x41a59f,_0x97a16c,_0x4d2d72,_0x4dd821){const _0x2af2ef=_0x27ba00;super(_0x223e24,_0x35bb02,_0x4a74d7,_0x2cb14f,_0x341422,_0x452e30,_0xa709ee,_0x97a16c,_0x41a59f),l(this,_0x2af2ef(0x102),'conflict'),(this[_0x2af2ef(0x288)]=_0x52776c,this[_0x2af2ef(0xa4)]=_0x5e8e23,this['_localeService']=_0x4d2d72,this[_0x2af2ef(0x14c)]=_0x4dd821,this['_showConflictNotification'](),this['_clearLocalCache'](),this[_0x2af2ef(0x178)]());}[_0x27ba00(0x3af)](){return this;}[_0x27ba00(0x304)](){return this;}[_0x27ba00(0x3dd)](){return this;}[_0x27ba00(0xac)](){return this;}['toggleOffline'](){return this;}[_0x27ba00(0x6b)](){return this;}[_0x27ba00(0x13a)](){const _0x45302d=_0x27ba00;throw new Error(_0x45302d(0x14d));}[_0x27ba00(0x296)](){const _0x326484=_0x27ba00;this[_0x326484(0x12a)][_0x326484(0x2e1)](this['unitID'],this[_0x326484(0xd5)],null,[]);}[_0x27ba00(0x3d3)](){const _0x137848=_0x27ba00;this['_isPermissionRej']?this[_0x137848(0x14c)][_0x137848(0x346)]({'title':this[_0x137848(0x12e)]['t']('permission.title'),'content':this[_0x137848(0x12e)]['t'](_0x137848(0x2d1)),'type':_0x137848(0x1e5),'duration':0x0}):this[_0x137848(0x14c)][_0x137848(0x346)]({'title':this['_localeService']['t'](_0x137848(0x3ad)),'content':this['_localeService']['t'](_0x137848(0x246)),'type':'error','duration':0x0});}[_0x27ba00(0x178)](){const _0x3ef40e=_0x27ba00;this[_0x3ef40e(0xa4)][_0x3ef40e(0xde)](new _0x474cf8(this[_0x3ef40e(0x12c)])['id'],!0x1);}};ee=le([m(0x6,_0x27d762(_0xdc2a7e)),m(0x7,_0xf80f3b),m(0x8,_0x3b566c),m(0x9,_0x27d762(D)),m(0xa,_0x27d762(_0x3a9a12)),m(0xb,_0x27d762(_0x5d963b)),m(0xc,_0x3319e0)],ee);let te=class extends _e{constructor(_0x117a6c,_0x11b7aa,_0x4824d5,_0x3bb7fa,_0x3d2a2a,_0x2f0351,_0x459df9,_0x214e3f,_0x575bfe,_0x4505ad){const _0x4c9850=_0x27ba00;super(_0x117a6c,_0x11b7aa,_0x4824d5,_0x3bb7fa,_0x3d2a2a,_0x575bfe,_0x4505ad,_0x459df9,_0x214e3f),l(this,_0x4c9850(0x102),'offline'),this[_0x4c9850(0x2a6)]=_0x2f0351;}['appendMutation'](_0x13fd67){const _0x2a878e=_0x27ba00;return this[_0x2a878e(0x3df)]['push'](_0x13fd67),this['_updateLocalCache'](),this;}[_0x27ba00(0x304)](_0x3fb73d){const _0x469d1c=_0x27ba00;throw new Error(_0x469d1c(0x190));}[_0x27ba00(0x3dd)](){const _0x392e37=_0x27ba00;throw new Error(_0x392e37(0xee));}['onRemoteRej'](){throw new Error('[OfflineState]:\x20received\x20rejection.');}[_0x27ba00(0x14b)](){return this;}[_0x27ba00(0x6b)](){const _0x5640ea=_0x27ba00,{_injector:_0x36367c,_pendingMutations:_0x18cdfe,_awaitingChangeset:_0x7c5751,unitID:_0x5cebdd,_handler:_0x1625ac,type:_0x507d6e}=this,_0xead6bf=ks(_0x36367c,_0x5cebdd,_0x507d6e,_0x7c5751,_0x18cdfe,_0x1625ac);return _0xead6bf instanceof K?_0xead6bf[_0x5640ea(0x148)]():(_0xead6bf instanceof X||_0xead6bf instanceof Q)&&_0xead6bf['resend'](),_0xead6bf;}[_0x27ba00(0x13a)](){const _0x46d9fa=_0x27ba00;throw new Error(_0x46d9fa(0x2c6));}};te=le([m(0x5,_0x27d762(_0x2a6c13)),m(0x6,_0x27d762(_0x3a9a12)),m(0x7,_0x27d762(D)),m(0x8,_0xf80f3b),m(0x9,_0x3b566c)],te);let k=class extends _e{constructor(_0xaeead2,_0x48eeba,_0x2be9b4,_0x4d8bf4,_0x597ca0,_0x33dc12,_0x19bdd6,_0x12788c,_0x4f3bc9,_0x428a9f,_0x4ff787,_0xc0c135,_0x4d65c6,_0x16a2f6){const _0x1050b3=_0x27ba00;super(_0xaeead2,_0x48eeba,_0x2be9b4,_0x4d8bf4,_0x19bdd6,_0xc0c135,_0x4d65c6,_0x4f3bc9,_0x428a9f),l(this,_0x1050b3(0x102),_0x1050b3(0x260)),(this[_0x1050b3(0x3ce)]=_0x597ca0,this[_0x1050b3(0x39f)]=_0x33dc12,this[_0x1050b3(0x2a6)]=_0x12788c,this[_0x1050b3(0xd6)]=_0x4ff787,this[_0x1050b3(0x32a)]=_0x16a2f6);}[_0x27ba00(0x13b)](_0x3a7bca){const _0x40f2b6=_0x27ba00;try{const _0x1a45ce=[..._0x3a7bca,...this[_0x40f2b6(0x39f)]],_0x48d8eb=[this[_0x40f2b6(0x90)]||this[_0x40f2b6(0x3ce)]][_0x40f2b6(0x266)](_0x19f597=>!!_0x19f597);let _0x31b0a7,_0x340cab;if(_0x48d8eb['length']){const _0x472440=this[_0x40f2b6(0x32a)]['transformChangesets'](_0x1a45ce,_0x48d8eb,!0x1);if(!_0x246037(_0x472440))throw _0x472440['error'];_0x31b0a7=_0x472440[_0x40f2b6(0x379)],_0x340cab=_0x472440[_0x40f2b6(0x2a8)];}else _0x31b0a7=_0x1a45ce,_0x340cab=[];let _0x38ca51=this[_0x40f2b6(0x3df)];_0x31b0a7[_0x40f2b6(0x392)](_0x33f4d4=>{const _0x245392=_0x40f2b6;let _0xd807a7;if(_0x38ca51[_0x245392(0x117)]){const _0x333e98=this[_0x245392(0x32a)][_0x245392(0x3b9)](_0x33f4d4,_0x38ca51);if(!_0x1476be(_0x333e98))throw _0x333e98[_0x245392(0x1e5)];_0xd807a7=_0x333e98[_0x245392(0x379)],_0x38ca51=_0x333e98[_0x245392(0x2c1)];}else _0xd807a7=_0x33f4d4;this[_0x245392(0x2de)](_0xd807a7);}),this[_0x40f2b6(0x3ce)]&&this['_incrementRevisionNumber'](),this[_0x40f2b6(0x90)]&&_0x340cab[_0x40f2b6(0x117)]&&(_0x340cab[0x0][_0x40f2b6(0x32c)]=this[_0x40f2b6(0x2c7)]());let _0x20d2fb;if(this[_0x40f2b6(0x90)]&&_0x38ca51[_0x40f2b6(0x117)]!==0x0)_0x20d2fb=this[_0x40f2b6(0x2a6)][_0x40f2b6(0x85)](X,this[_0x40f2b6(0x12c)],this[_0x40f2b6(0xd5)],_0x340cab[0x0],_0x38ca51,this[_0x40f2b6(0x3b4)]);else{if(this['_awaitingChangeset']&&_0x38ca51[_0x40f2b6(0x117)]===0x0)_0x340cab[0x0]['baseRev']=this[_0x40f2b6(0x2c7)](),_0x20d2fb=this[_0x40f2b6(0x2a6)][_0x40f2b6(0x85)](Q,this[_0x40f2b6(0x12c)],this[_0x40f2b6(0xd5)],_0x340cab[0x0],this[_0x40f2b6(0x3b4)]);else{if(_0x38ca51[_0x40f2b6(0x117)]!==0x0){const _0x43cd2a=this[_0x40f2b6(0x2a6)][_0x40f2b6(0x85)](K,this['unitID'],this[_0x40f2b6(0xd5)],_0x38ca51,this['_handler']);_0x43cd2a[_0x40f2b6(0x148)](),_0x20d2fb=_0x43cd2a;}else _0x20d2fb=this[_0x40f2b6(0x2a6)][_0x40f2b6(0x85)](pe,this[_0x40f2b6(0x12c)],this['type'],this[_0x40f2b6(0x3b4)]);}}return _0x20d2fb['_updateLocalCache'](),_0x20d2fb;}catch(_0x19b2a6){return this[_0x40f2b6(0xd6)][_0x40f2b6(0x1e5)](_0x40f2b6(0x3e1),'failed\x20to\x20apply\x20missed\x20changesets!',_0x19b2a6),this[_0x40f2b6(0x2a6)][_0x40f2b6(0x85)](ee,this[_0x40f2b6(0x12c)],this[_0x40f2b6(0xd5)],this[_0x40f2b6(0x90)],this['_pendingMutations'],this[_0x40f2b6(0x3b4)],!0x1);}}[_0x27ba00(0x13a)](){const _0x31c694=_0x27ba00;throw new Error(_0x31c694(0x360));}[_0x27ba00(0x3af)](_0x1198b4){const _0x1ce95a=_0x27ba00;return this[_0x1ce95a(0x3df)][_0x1ce95a(0x2ec)](_0x1198b4),this;}['onRemoteChangeset'](_0x39e662){const _0xcebe76=_0x27ba00;return this[_0xcebe76(0x39f)]['push'](_0x39e662),this;}[_0x27ba00(0x3dd)](_0x589a93){const _0x36f85c=_0x27ba00;if(this[_0x36f85c(0x90)])return this[_0x36f85c(0x3ce)]=this[_0x36f85c(0x90)],this[_0x36f85c(0x90)]=null,this;throw new Error(_0x36f85c(0x1f3));}['onRemoteRej'](_0x19f231){const _0x3ac6d8=_0x27ba00;return this['_onConflict'](!!(_0x19f231!=null&&_0x19f231[_0x3ac6d8(0x329)]));}['toggleOffline'](){const _0x29e276=_0x27ba00;return this[_0x29e276(0x2a6)][_0x29e276(0x85)](te,this[_0x29e276(0x12c)],this[_0x29e276(0xd5)],this[_0x29e276(0x90)],this['_pendingMutations'],this[_0x29e276(0x3b4)]);}[_0x27ba00(0x6b)](){return this;}['_onConflict'](_0x183524){const _0xbf004e=_0x27ba00;return this[_0xbf004e(0x2a6)][_0xbf004e(0x85)](ee,this[_0xbf004e(0x12c)],this['type'],this['_awaitingChangeset'],this['_pendingMutations'],this['_handler'],_0x183524);}};k=le([m(0x7,_0x27d762(_0x2a6c13)),m(0x8,_0x27d762(_0x3a9a12)),m(0x9,_0x27d762(D)),m(0xa,_0x1dd153),m(0xb,_0xf80f3b),m(0xc,_0x3b566c),m(0xd,_0x29f88d)],k);function ks(_0x56363c,_0x57de9b,_0x493cc5,_0x598054,_0xcb8155,_0xe3b50d){const _0x38a2a1=_0x27ba00;return _0x598054&&_0xcb8155[_0x38a2a1(0x117)]?_0x56363c['createInstance'](X,_0x57de9b,_0x493cc5,_0x598054,_0xcb8155,_0xe3b50d):_0x598054?_0x56363c[_0x38a2a1(0x85)](Q,_0x57de9b,_0x493cc5,_0x598054,_0xe3b50d):_0xcb8155[_0x38a2a1(0x117)]?_0x56363c[_0x38a2a1(0x85)](K,_0x57de9b,_0x493cc5,_0xcb8155,_0xe3b50d):_0x56363c[_0x38a2a1(0x85)](pe,_0x57de9b,_0x493cc5,_0xe3b50d);}var gr=Object[_0x27ba00(0x198)],Sr=Object[_0x27ba00(0x280)],Wt=(_0xc94cc3,_0x463e8c,_0xd9340b,_0x3f4a57)=>{const _0x1ad5e3=_0x27ba00;for(var _0x20aec2=_0x3f4a57>0x1?void 0x0:_0x3f4a57?Sr(_0x463e8c,_0xd9340b):_0x463e8c,_0x441eee=_0xc94cc3[_0x1ad5e3(0x117)]-0x1,_0xfb4153;_0x441eee>=0x0;_0x441eee--)(_0xfb4153=_0xc94cc3[_0x441eee])&&(_0x20aec2=(_0x3f4a57?_0xfb4153(_0x463e8c,_0xd9340b,_0x20aec2):_0xfb4153(_0x20aec2))||_0x20aec2);return _0x3f4a57&&_0x20aec2&&gr(_0x463e8c,_0xd9340b,_0x20aec2),_0x20aec2;},p=(_0x2fef99,_0x288045)=>(_0x56d0d9,_0x3112fd)=>_0x288045(_0x56d0d9,_0x3112fd,_0x2fef99);let tt=class extends _0x504ec7{constructor(_0x2de608,_0x55374c,_0xa50033,_0x41e67f,_0x2d74f2,_0x4da8ec,_0xdd5688,_0x14ed20,_0x75229c,_0x5cdbbb,_0xb10d92,_0x9fb1e1,_0x56eeef){const _0x3ea55c=_0x27ba00;super(),l(this,'_state$',new _0x23c814(null)),l(this,_0x3ea55c(0x2a5),this[_0x3ea55c(0x252)]['asObservable']()),l(this,_0x3ea55c(0x130)),l(this,'_collaborationPaused',!0x1),l(this,_0x3ea55c(0x16b),this[_0x3ea55c(0x2a5)][_0x3ea55c(0x31c)](_0x5a8977(_0x29dedb=>_0x29dedb?_0x29dedb[_0x3ea55c(0x102)]:w[_0x3ea55c(0x1f1)]),_0x416754(0x1))),l(this,'_transitionLocked',!0x1),l(this,_0x3ea55c(0x149),[]),(this[_0x3ea55c(0x12c)]=_0x2de608,this['session']=_0x55374c,this[_0x3ea55c(0xce)]=_0xa50033,this[_0x3ea55c(0x2a6)]=_0x41e67f,this[_0x3ea55c(0x12a)]=_0x2d74f2,this[_0x3ea55c(0x201)]=_0x4da8ec,this[_0x3ea55c(0x12e)]=_0xdd5688,this[_0x3ea55c(0x76)]=_0x14ed20,this[_0x3ea55c(0xd6)]=_0x75229c,this[_0x3ea55c(0x1b0)]=_0x5cdbbb,this['_messageService']=_0xb10d92,this[_0x3ea55c(0xa4)]=_0x9fb1e1,this[_0x3ea55c(0x22c)]=_0x56eeef);}get[_0x27ba00(0xc7)](){return this['_state'];}async[_0x27ba00(0x279)](){const _0x53193a=_0x27ba00;if(this['state'])throw new Error(_0x53193a(0x394));await this[_0x53193a(0x7b)]();}['pauseCollaboration'](){const _0x2e7322=_0x27ba00;return this[_0x2e7322(0x2f3)]=!0x0,_0x10763a(()=>{const _0x36c82d=_0x2e7322;this[_0x36c82d(0x2f3)]=!0x1,this[_0x36c82d(0xd7)]();});}[_0x27ba00(0x22a)](_0x147323){const _0x54fd7e=_0x27ba00;this[_0x54fd7e(0x130)]=_0x147323,this['_state$'][_0x54fd7e(0x8c)](_0x147323);}async[_0x27ba00(0x7b)](){const _0x46a9b6=_0x27ba00;var _0x942176;this[_0x46a9b6(0x22a)](await this[_0x46a9b6(0x363)]()),this[_0x46a9b6(0x22c)]&&((_0x942176=this[_0x46a9b6(0x22c)])==null||_0x942176[_0x46a9b6(0x231)](this[_0x46a9b6(0x12c)]),this[_0x46a9b6(0x169)](this['_singleActiveUnitService'][_0x46a9b6(0x127)](this[_0x46a9b6(0x12c)])[_0x46a9b6(0x3c1)](_0x10083a=>{const _0x1f391a=_0x46a9b6;this[_0x1f391a(0xd6)][_0x1f391a(0x227)](_0x1f391a(0x173),'editing\x20status\x20changed\x20to',_0x10083a),_0x10083a===xs[_0x1f391a(0x3d0)]?(this[_0x1f391a(0x157)]['show']({'content':this[_0x1f391a(0x12e)]['t'](_0x1f391a(0x118)),'type':_0x104514[_0x1f391a(0x364)]}),this[_0x1f391a(0xa4)][_0x1f391a(0xde)](new _0x474cf8(this[_0x1f391a(0x12c)])['id'],!0x1)):this[_0x1f391a(0xa4)][_0x1f391a(0xde)](new _0x474cf8(this[_0x1f391a(0x12c)])['id'],!0x0);})));let _0x3cb16d=!0x1;return this[_0x46a9b6(0x169)](this[_0x46a9b6(0xbe)]['sessionStatus$'][_0x46a9b6(0x3c1)](_0x9b5db9=>{const _0xf1074e=_0x46a9b6;_0x9b5db9===G[_0xf1074e(0x16c)]?this[_0xf1074e(0x1b2)](_0x3cb16d):_0x9b5db9===G[_0xf1074e(0x1f1)]&&(_0x3cb16d=!0x0,this[_0xf1074e(0x103)]());})),this[_0x46a9b6(0x169)](this[_0x46a9b6(0xbe)][_0x46a9b6(0x359)]['subscribe'](_0x5167d8=>{const _0x1d609f=_0x46a9b6;try{switch(_0x5167d8[_0x1d609f(0xc3)]){case _0x6fa194[_0x1d609f(0xad)]:{this[_0x1d609f(0xcc)](_0x3e0428(_0x5167d8[_0x1d609f(0x216)]));break;}case _0x6fa194[_0x1d609f(0xdc)]:{this[_0x1d609f(0x314)](_0x5167d8[_0x1d609f(0x216)]);break;}case _0x6fa194[_0x1d609f(0x308)]:{this[_0x1d609f(0x9b)]();break;}case _0x6fa194[_0x1d609f(0x3cc)]:{this[_0x1d609f(0x37b)](_0x5167d8[_0x1d609f(0x216)][_0x1d609f(0x218)]['map'](_0x271f8f=>_0x3e0428(_0x271f8f)));break;}case _0x6fa194[_0x1d609f(0x1d3)]:this[_0x1d609f(0x9b)]({'isPermissionRej':!0x0});}}catch(_0x295c08){throw console['error'](_0x1d609f(0x9d),_0x295c08),_0x295c08;}})),this[_0x46a9b6(0x130)];}[_0x27ba00(0x20a)](){const _0x11b92b=_0x27ba00;this[_0x11b92b(0x2bb)]=!0x1;}[_0x27ba00(0x39a)](){const _0x12eb92=_0x27ba00;if(this[_0x12eb92(0x2bb)])throw new Error(_0x12eb92(0x305));this[_0x12eb92(0x2bb)]=!0x0;}[_0x27ba00(0x290)](_0x2c98f1){const _0x27e353=_0x27ba00;this[_0x27e353(0x39a)](),this[_0x27e353(0x22a)](this['_state']['appendMutation'](_0x2c98f1)),this[_0x27e353(0x20a)]();}[_0x27ba00(0xcc)](_0x91923e){const _0x35857e=_0x27ba00;if(!(_0x91923e['revision']<=this[_0x35857e(0x76)]['getCurrentRevOfUnit'](this[_0x35857e(0x12c)]))){if(this[_0x35857e(0x2f3)]){this[_0x35857e(0x149)][_0x35857e(0x2ec)](_0x91923e);return;}this[_0x35857e(0x1f6)](_0x91923e);}}['_exhaustRemoteChangesetQueue'](){const _0x16568e=_0x27ba00;this[_0x16568e(0x149)][_0x16568e(0x392)](_0x3dd111=>this[_0x16568e(0x1f6)](_0x3dd111)),this[_0x16568e(0x149)]=[];}[_0x27ba00(0x1f6)](_0x6702d4){const _0x1e9d19=_0x27ba00,_0x54fc31=this['_compressMutationService'][_0x1e9d19(0x1b8)][_0x1e9d19(0x28b)](this[_0x1e9d19(0x201)][_0x1e9d19(0x1b8)]['getInterceptPoints']()['COMPRESS_MUTATION_APPLY'])(_0x6702d4['mutations'],null)||_0x6702d4['mutations'],_0x1df506={..._0x6702d4,'mutations':_0x54fc31};this['_lockTransition'](),this[_0x1e9d19(0x22a)](this[_0x1e9d19(0x130)]['onRemoteChangeset'](_0x1df506)),this[_0x1e9d19(0x20a)]();}[_0x27ba00(0x314)](_0xaaa208){const _0x3086eb=_0x27ba00;this[_0x3086eb(0x39a)](),this[_0x3086eb(0x22a)](this['_state'][_0x3086eb(0x3dd)](_0xaaa208)),this['_unlockTransition']();}['_onRemoteRejected'](_0x27ed3b){const _0x2dc655=_0x27ba00;this[_0x2dc655(0x39a)](),this[_0x2dc655(0x22a)](this[_0x2dc655(0x130)][_0x2dc655(0xac)](_0x27ed3b)),this['_unlockTransition']();}[_0x27ba00(0x37b)](_0x4decfe){const _0x2679a9=_0x27ba00;if(!(this[_0x2679a9(0x130)]instanceof k))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0x4822b6=_0x4decfe[_0x2679a9(0x23f)](_0x60ec62=>{const _0xf4699a=_0x2679a9,_0x449ae7=this[_0xf4699a(0x201)][_0xf4699a(0x1b8)][_0xf4699a(0x28b)](this['_compressMutationService'][_0xf4699a(0x1b8)]['getInterceptPoints']()['COMPRESS_MUTATION_APPLY'])(_0x60ec62[_0xf4699a(0x3bd)],null)||_0x60ec62[_0xf4699a(0x3bd)];return{..._0x60ec62,'mutations':_0x449ae7};});this['_lockTransition'](),this[_0x2679a9(0x22a)](this[_0x2679a9(0x130)][_0x2679a9(0x13b)](_0x4822b6)),this[_0x2679a9(0x20a)]();}[_0x27ba00(0x103)](){const _0x5e6775=_0x27ba00;this[_0x5e6775(0x39a)](),this[_0x5e6775(0x22a)](this[_0x5e6775(0x130)]['toggleOffline']()),this[_0x5e6775(0x20a)]();}[_0x27ba00(0x1b2)](_0x52c6ff=!0x1){const _0x27d90b=_0x27ba00;this[_0x27d90b(0x39a)](),this['_updateState'](this[_0x27d90b(0x130)][_0x27d90b(0x6b)]()),this[_0x27d90b(0x20a)]();const _0x44f050=this[_0x27d90b(0x130)];_0x52c6ff&&_0x44f050 instanceof pe&&(this['_lockTransition'](),this['_updateState'](_0x44f050[_0x27d90b(0x170)]()),this['_unlockTransition']());}async[_0x27ba00(0x363)](){return new Promise(_0x49540e=>{const _0x519ca7=_0x1a62;this[_0x519ca7(0xbe)][_0x519ca7(0x10c)][_0x519ca7(0x31c)](_0x542947(0x1))['subscribe'](async _0x5ece21=>{const _0x558ccd=_0x519ca7;_0x49540e(await this[_0x558ccd(0x195)](_0x5ece21===G[_0x558ccd(0x16c)]));});});}['_createHandler'](){const _0x27275a=_0x27ba00,_0x5fbf61=this[_0x27275a(0x12c)];return{'onStateChange':(_0x1f3d45,_0xe2e488)=>{const _0x17e139=_0x27275a;if(_0x1f3d45!==this[_0x17e139(0x130)])throw new Error(_0x17e139(0x3ac)+_0x1f3d45['status']+_0x17e139(0x136)+_0xe2e488[_0x17e139(0x102)]+_0x17e139(0x34f)+this[_0x17e139(0x130)][_0x17e139(0x102)]);this[_0x17e139(0x22a)](_0xe2e488);},'onSendChangeset':_0x1833a4=>{const _0x33e3b7=_0x27275a,_0x4f202e={'eventID':_0x6fa194['SUBMIT_CHANGESET'],'data':{'unitID':_0x1833a4['unitID'],'unitType':this['_type'],'changeset':_0x1833a4,'memberID':this[_0x33e3b7(0xbe)][_0x33e3b7(0x3b1)]()}};this['session'][_0x33e3b7(0x128)](_0x4f202e,this['unitID']);},'onMissingChangesets':({from:_0x545ce3,to:_0x4a5733})=>{const _0x227d1c=_0x27275a;this[_0x227d1c(0xd6)][_0x227d1c(0x227)](_0x227d1c(0x173),_0x227d1c(0x2f2)+_0x545ce3+_0x227d1c(0x3d2)+_0x4a5733);const _0x23242a={'eventID':_0x6fa194[_0x227d1c(0x18d)],'data':{'unitID':_0x5fbf61,'unitType':this[_0x227d1c(0xce)],'from':_0x545ce3,'to':_0x4a5733}};this['session']['send'](_0x23242a,this[_0x227d1c(0x12c)]);}};}async[_0x27ba00(0x195)](_0xe4da17){const _0x33dd0e=_0x27ba00;var _0x35b386,_0x3e25a5;const _0x335ab2=await this['_localCacheService'][_0x33dd0e(0x347)](this[_0x33dd0e(0x12c)]),_0x384ad7=(_0x35b386=_0x335ab2==null?void 0x0:_0x335ab2[_0x33dd0e(0x3bd)])!=null?_0x35b386:[],_0x3d092f=(_0x3e25a5=_0x335ab2==null?void 0x0:_0x335ab2[_0x33dd0e(0x2af)])!=null?_0x3e25a5:null,_0x2f0c88=this[_0x33dd0e(0x12c)];try{this[_0x33dd0e(0x10b)](_0x3d092f,_0x384ad7);}catch(_0xb24b5d){this[_0x33dd0e(0xd6)][_0x33dd0e(0x1e5)](_0xb24b5d);}const _0x2e48b9=this[_0x33dd0e(0x188)]();if(_0xe4da17){const _0x44070e=ks(this[_0x33dd0e(0x2a6)],_0x2f0c88,this[_0x33dd0e(0xce)],_0x3d092f,_0x384ad7,_0x2e48b9);return _0x44070e instanceof K?_0x44070e[_0x33dd0e(0x148)]():(_0x44070e instanceof X||_0x44070e instanceof Q)&&_0x44070e[_0x33dd0e(0x13a)](),_0x44070e;}return this['_injector']['createInstance'](te,_0x2f0c88,this[_0x33dd0e(0xce)],_0x3d092f,_0x384ad7,_0x2e48b9);}[_0x27ba00(0x10b)](_0x20f621,_0x48d544){const _0x5e4c63=_0x27ba00;var _0x636b1,_0x1eea94;const _0x5601bd=this[_0x5e4c63(0x201)][_0x5e4c63(0x1b8)][_0x5e4c63(0x28b)](this[_0x5e4c63(0x201)][_0x5e4c63(0x1b8)][_0x5e4c63(0x2d5)]()[_0x5e4c63(0x19f)]);(_0x636b1=_0x5601bd((_0x20f621==null?void 0x0:_0x20f621[_0x5e4c63(0x3bd)])||[],null))==null||_0x636b1[_0x5e4c63(0x392)](_0x631944=>this[_0x5e4c63(0x1b0)][_0x5e4c63(0xb6)](_0x631944['id'],_0x631944[_0x5e4c63(0xb8)])),(_0x1eea94=_0x5601bd(_0x48d544||[],null))==null||_0x1eea94[_0x5e4c63(0x392)](_0x4ec5aa=>this[_0x5e4c63(0x1b0)][_0x5e4c63(0xb6)](_0x4ec5aa['id'],_0x4ec5aa[_0x5e4c63(0xb8)]));}};tt=Wt([p(0x3,_0x27d762(_0x2a6c13)),p(0x4,_0x27d762(D)),p(0x5,_0x27d762(_0x1aacdc)),p(0x6,_0x27d762(_0x5d963b)),p(0x7,_0x27d762(_0x3a9a12)),p(0x8,_0x1dd153),p(0x9,_0xf80f3b),p(0xa,_0x17da32),p(0xb,_0xdc2a7e),p(0xc,_0x3a7ea6(nt))],tt);let Ot=class extends tt{constructor(_0x50f47c,_0x143e81,_0x2149b9,_0x51879f,_0x2b6970,_0x2eccad,_0x175767,_0x3e3513,_0x159d99,_0x383d5d,_0x32ef00,_0x11bbf3,_0x2681d8,_0x4ceaff,_0xabf5a,_0x1fdd5f,_0x48e012){const _0x25e891=_0x27ba00;super(_0x50f47c,_0x2149b9,_0x143e81,_0x51879f,_0x2b6970,_0x2eccad,_0x175767,_0x3e3513,_0x2681d8,_0x4ceaff,_0xabf5a,_0x1fdd5f,_0x48e012),this[_0x25e891(0x12c)]=_0x50f47c,this[_0x25e891(0xd5)]=_0x143e81,this[_0x25e891(0x19b)]=_0x159d99,this['_docTransformIMECacheService']=_0x383d5d,this[_0x25e891(0x122)]=_0x32ef00,this['_docSyncEditingCollabCursorService']=_0x11bbf3;}[_0x27ba00(0x188)](){const _0x5b470d=_0x27ba00,_0x15a44b=super[_0x5b470d(0x188)]();return _0x15a44b['onTransformIME']=_0x581236=>this[_0x5b470d(0xf2)][_0x5b470d(0x126)](_0x581236),_0x15a44b[_0x5b470d(0x21d)]=_0x2baf48=>this[_0x5b470d(0x122)][_0x5b470d(0x289)](_0x2baf48),_0x15a44b[_0x5b470d(0x154)]=_0x4e45e1=>this[_0x5b470d(0x153)][_0x5b470d(0x257)](_0x4e45e1),_0x15a44b['onTransformRemoteChangesetByIMECache']=_0x4eeed5=>this['_docTransformIMECacheService'][_0x5b470d(0x1e2)](_0x4eeed5),_0x15a44b;}async['_init'](){const _0x118652=_0x27ba00,_0x7f97a7=await super[_0x118652(0x7b)]();return this['disposeWithMe'](this[_0x118652(0x1b0)]['onCommandExecuted']((_0x3443e8,_0x470672)=>{const _0x400111=_0x118652;if(_0x3443e8[_0x400111(0xd5)]!==_0x38cb05[_0x400111(0x2b2)]||_0x470672!=null&&_0x470672['fromCollab']||_0x470672!=null&&_0x470672[_0x400111(0x15f)])return;const _0x1c21c9=_0x3443e8[_0x400111(0xb8)];if((_0x1c21c9==null?void 0x0:_0x1c21c9[_0x400111(0x21a)])!==this['unitID'])return;let _0x390c77=_0x3443e8;if(_0x390c77['id']===_0x4ee1d3['id']){const _0x4b457a=_0x390c77[_0x400111(0xb8)];_0x390c77={'id':_0x4ee1d3['id'],'type':_0x38cb05[_0x400111(0x2b2)],'params':{'unitId':_0x4b457a[_0x400111(0x21a)],'actions':_0x4b457a[_0x400111(0x2cd)],'textRanges':null}};}const _0x1b1ff5=this['_compressMutationService'][_0x400111(0x1b8)][_0x400111(0x28b)](this[_0x400111(0x201)][_0x400111(0x1b8)][_0x400111(0x2d5)]()[_0x400111(0x358)])([_0x390c77],null)||[_0x390c77];this['_onLocalMutation'](_0x1b1ff5[0x0]);})),_0x7f97a7;}};Ot=Wt([p(0x3,_0x27d762(_0x2a6c13)),p(0x4,_0x27d762(D)),p(0x5,_0x27d762(_0x1aacdc)),p(0x6,_0x27d762(_0x5d963b)),p(0x7,_0x27d762(_0x3a9a12)),p(0x8,_0x27d762(_0x1981c4)),p(0x9,_0x27d762(Ze)),p(0xa,_0x27d762(et)),p(0xb,_0x27d762(Ft)),p(0xc,_0x1dd153),p(0xd,_0xf80f3b),p(0xe,_0x17da32),p(0xf,_0xdc2a7e),p(0x10,_0x3a7ea6(nt))],Ot);let Dt=class extends tt{constructor(_0x3d7341,_0xdfe188,_0x3049ad,_0x27b41c,_0x376827,_0x5c42f7,_0x69a08a,_0x219aab,_0xaaacf2,_0x2cd701,_0x504f07,_0x43305e,_0x3a6134,_0x13f2e4){const _0xa011be=_0x27ba00;super(_0x3d7341,_0x3049ad,_0xdfe188,_0x27b41c,_0x376827,_0x5c42f7,_0x69a08a,_0x219aab,_0x2cd701,_0x504f07,_0x43305e,_0x3a6134,_0x13f2e4),this[_0xa011be(0x12c)]=_0x3d7341,this['type']=_0xdfe188,this[_0xa011be(0x166)]=_0xaaacf2;}[_0x27ba00(0x188)](){const _0x24ab7b=_0x27ba00,_0x77d0fb=super['_createHandler']();return _0x77d0fb[_0x24ab7b(0x21d)]=_0x539581=>this['_sheetTransformSelectionsService'][_0x24ab7b(0x289)](_0x539581),_0x77d0fb;}async[_0x27ba00(0x7b)](){const _0x10dd08=_0x27ba00,_0x315566=await super[_0x10dd08(0x7b)]();return this[_0x10dd08(0x169)](this['_commandService'][_0x10dd08(0x17d)]((_0x2e391f,_0x5c107f)=>{const _0x491dd7=_0x10dd08;if(_0x2e391f['type']!==_0x38cb05[_0x491dd7(0x2b2)]||_0x5c107f!=null&&_0x5c107f['fromCollab']||_0x5c107f!=null&&_0x5c107f['onlyLocal'])return;const _0x36b26e=_0x2e391f[_0x491dd7(0xb8)];if((_0x36b26e==null?void 0x0:_0x36b26e[_0x491dd7(0x21a)])!==this[_0x491dd7(0x12c)])return;const _0x32b622=_0x2e391f,_0x5d0c03=this[_0x491dd7(0x201)][_0x491dd7(0x1b8)][_0x491dd7(0x28b)](this[_0x491dd7(0x201)][_0x491dd7(0x1b8)]['getInterceptPoints']()[_0x491dd7(0x358)])([_0x32b622],null)||[_0x32b622];this[_0x491dd7(0x290)](_0x5d0c03[0x0]);})),_0x315566;}};Dt=Wt([p(0x3,_0x27d762(_0x2a6c13)),p(0x4,_0x27d762(D)),p(0x5,_0x27d762(_0x1aacdc)),p(0x6,_0x27d762(_0x5d963b)),p(0x7,_0x27d762(_0x3a9a12)),p(0x8,_0x27d762(Qe)),p(0x9,_0x1dd153),p(0xa,_0xf80f3b),p(0xb,_0x17da32),p(0xc,_0xdc2a7e),p(0xd,_0x3a7ea6(nt))],Dt);var pr=Object['defineProperty'],vr=Object[_0x27ba00(0x280)],Ir=(_0x5a54c0,_0x1b7c17,_0x565472,_0x11b6a0)=>{const _0xfb9227=_0x27ba00;for(var _0x413dff=_0x11b6a0>0x1?void 0x0:_0x11b6a0?vr(_0x1b7c17,_0x565472):_0x1b7c17,_0x29bf72=_0x5a54c0[_0xfb9227(0x117)]-0x1,_0x256b24;_0x29bf72>=0x0;_0x29bf72--)(_0x256b24=_0x5a54c0[_0x29bf72])&&(_0x413dff=(_0x11b6a0?_0x256b24(_0x1b7c17,_0x565472,_0x413dff):_0x256b24(_0x413dff))||_0x413dff);return _0x11b6a0&&_0x413dff&&pr(_0x1b7c17,_0x565472,_0x413dff),_0x413dff;},dt=(_0x28b993,_0x4ae90d)=>(_0x535968,_0x354e10)=>_0x4ae90d(_0x535968,_0x354e10,_0x28b993);let Ae=class extends _0x504ec7{constructor(_0x275dbd,_0x39a85f,_0x35f2f2){const _0x22e816=_0x27ba00;super(),l(this,_0x22e816(0x259),new Map()),l(this,_0x22e816(0x297),new _0x1a4ff5()),(this[_0x22e816(0x2a6)]=_0x275dbd,this[_0x22e816(0x137)]=_0x39a85f,this['_univerInstanceService']=_0x35f2f2,this[_0x22e816(0x7b)]());}[_0x27ba00(0x323)](){const _0x7e0571=_0x27ba00;super[_0x7e0571(0x323)](),this[_0x7e0571(0x259)][_0x7e0571(0x392)](_0x88a05d=>_0x88a05d[_0x7e0571(0x323)]()),this[_0x7e0571(0x259)][_0x7e0571(0x17f)]();}['getCollabEntity'](_0xc893fd){const _0x31c0d5=_0x27ba00;var _0x253e10;return(_0x253e10=this[_0x31c0d5(0x259)][_0x31c0d5(0x1dd)](_0xc893fd))!=null?_0x253e10:null;}[_0x27ba00(0x26c)](_0x39b2ff){const _0x1274ae=_0x27ba00,_0x57ae14=this[_0x1274ae(0x1b5)](_0x39b2ff);return _0x57ae14?_0x215f7f(_0x57ae14):this[_0x1274ae(0x297)][_0x1274ae(0x31c)](_0x2e3311(_0x308b00=>_0x308b00[_0x1274ae(0x12c)]===_0x39b2ff));}[_0x27ba00(0x7b)](){const _0x624b65=_0x27ba00;this[_0x624b65(0xe3)][_0x624b65(0x1e6)](_0x28cb79[_0x624b65(0xdf)])[_0x624b65(0x31c)](_0x350758(this['dispose$']),_0x580b83(0x10))[_0x624b65(0x3c1)](async _0xd20f87=>{const _0x2ffe72=_0x624b65,_0x47f279=_0xd20f87[_0x2ffe72(0x242)](),_0x174648=await this['_startCollaboration'](_0x47f279,H[_0x2ffe72(0xdf)]);this[_0x2ffe72(0x259)]['set'](_0x47f279,_0x174648);}),this[_0x624b65(0xe3)]['getTypeOfUnitAdded$'](_0x28cb79['UNIVER_DOC'])[_0x624b65(0x31c)](_0x350758(this[_0x624b65(0x132)]),_0x580b83(0x10))[_0x624b65(0x31c)](_0x2e3311(_0xdd6daf=>!_0xdd6daf[_0x624b65(0x242)]()[_0x624b65(0x213)]('__')))[_0x624b65(0x3c1)](async _0x50cf33=>{const _0x18c3aa=_0x624b65,_0xe433ee=_0x50cf33[_0x18c3aa(0x242)](),_0x3d5728=await this[_0x18c3aa(0x71)](_0xe433ee,H[_0x18c3aa(0x2e3)]);this['_entities']['set'](_0xe433ee,_0x3d5728);}),_0x4c28c6(this[_0x624b65(0xe3)][_0x624b65(0x177)](_0x28cb79[_0x624b65(0xdf)]),this[_0x624b65(0xe3)][_0x624b65(0x177)](_0x28cb79['UNIVER_DOC']))[_0x624b65(0x31c)](_0x350758(this['dispose$']))['subscribe'](_0x498edf=>{const _0x33cedb=_0x624b65,_0x41acb2=_0x498edf[_0x33cedb(0x242)](),_0x46d251=this[_0x33cedb(0x259)]['get'](_0x41acb2);_0x46d251&&(_0x46d251[_0x33cedb(0x323)](),this[_0x33cedb(0x259)][_0x33cedb(0xe1)](_0x41acb2));});}async[_0x27ba00(0x71)](_0x10af43,_0x2a43cb){const _0xe37e59=_0x27ba00,_0x9a83fd=await this['_collabSessionService'][_0xe37e59(0x223)](_0x10af43),_0x28bef4=this[_0xe37e59(0x2a6)][_0xe37e59(0x85)](this['_getCtorByUniverType'](_0x2a43cb),_0x10af43,_0x2a43cb,_0x9a83fd);return await _0x28bef4[_0xe37e59(0x279)](),this[_0xe37e59(0x297)][_0xe37e59(0x8c)](_0x28bef4),_0x28bef4;}[_0x27ba00(0x366)](_0x2fda1e){const _0x277f2f=_0x27ba00;switch(_0x2fda1e){case H[_0x277f2f(0x2e3)]:return Ot;case H[_0x277f2f(0xdf)]:return Dt;default:throw new Error(_0x277f2f(0x1c4)+_0x2fda1e);}}};Ae=Ir([dt(0x0,_0x27d762(_0x2a6c13)),dt(0x1,_0x27d762(ce)),dt(0x2,_0x4a4945)],Ae);const us=[_0x27ba00(0xe0),_0x27ba00(0x315),_0x27ba00(0x78),_0x27ba00(0x194),'blue400',_0x27ba00(0x77)];class Gt extends _0x10a60d{constructor(){const _0x9e15b7=_0x27ba00;super(...arguments),l(this,_0x9e15b7(0x256),new Map()),l(this,_0x9e15b7(0x281),0x0);}[_0x27ba00(0xcd)](_0x461372){const _0x1cc1c4=_0x27ba00;if(this[_0x1cc1c4(0x256)][_0x1cc1c4(0x262)](_0x461372))return this[_0x1cc1c4(0x256)]['get'](_0x461372);const _0x3ab62d=us[this['_colorIndex']];return this[_0x1cc1c4(0x281)]=(this[_0x1cc1c4(0x281)]+0x1)%us[_0x1cc1c4(0x117)],this[_0x1cc1c4(0x256)][_0x1cc1c4(0x371)](_0x461372,_0x3ab62d),_0x3ab62d;}}var Er=Object['defineProperty'],Cr=Object[_0x27ba00(0x280)],br=(_0x34ab53,_0x388502,_0xe46b1b,_0x267aac)=>{for(var _0x18958d=_0x267aac>0x1?void 0x0:_0x267aac?Cr(_0x388502,_0xe46b1b):_0x388502,_0xcb01b7=_0x34ab53['length']-0x1,_0x2f0301;_0xcb01b7>=0x0;_0xcb01b7--)(_0x2f0301=_0x34ab53[_0xcb01b7])&&(_0x18958d=(_0x267aac?_0x2f0301(_0x388502,_0xe46b1b,_0x18958d):_0x2f0301(_0x18958d))||_0x18958d);return _0x267aac&&_0x18958d&&Er(_0x388502,_0xe46b1b,_0x18958d),_0x18958d;},fe=(_0x264ce6,_0x392478)=>(_0x5a004a,_0x2094e6)=>_0x392478(_0x5a004a,_0x2094e6,_0x264ce6);const Tr=0x12c,Rr=0x64,Or=()=>{let _0x52d89f=[],_0x45a1ca=!0x1;return _0x3f4661=>{const _0x593b24=_0x1a62;_0x52d89f[_0x593b24(0x2ec)](_0x3f4661),_0x45a1ca||(_0x45a1ca=!0x0,setTimeout(()=>{const _0x115ec9=_0x593b24;_0x52d89f[_0x115ec9(0x392)](_0xb136d=>_0xb136d()),_0x52d89f=[],_0x45a1ca=!0x1;}));};};let wt=class extends _0x504ec7{constructor(_0x9db3e6,_0x30f8a6,_0x40ee44,_0x16af02,_0x561244,_0x19e735,_0x3f6f69,_0x189411){const _0x11a4ce=_0x27ba00;super(),l(this,_0x11a4ce(0x86),!0x1),l(this,_0x11a4ce(0x7b),!0x1),l(this,_0x11a4ce(0x184),new _0x23c814(new Map())),l(this,_0x11a4ce(0x3bc),this[_0x11a4ce(0x184)][_0x11a4ce(0x14e)]()),l(this,_0x11a4ce(0x123),new _0x23c814([])),l(this,_0x11a4ce(0x3b7),this['_roomMembers$'][_0x11a4ce(0x31c)](_0x907c69(Tr))),l(this,_0x11a4ce(0x224),_0x224ffa((_0x7a07ce,_0x46a1f3)=>{const _0x25efa2=_0x11a4ce,_0x5a684c={'eventID':_0x6fa194[_0x25efa2(0x378)],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0x25efa2(0x3b1)](),'selection':_0x4dc523(_0x7a07ce,_0x46a1f3[_0x25efa2(0x3d8)])}};this[_0x25efa2(0x183)][_0x25efa2(0x128)](_0x5a684c,this['unitID']);},Rr)),(this[_0x11a4ce(0x12c)]=_0x9db3e6,this[_0x11a4ce(0x183)]=_0x30f8a6,this[_0x11a4ce(0x2a6)]=_0x40ee44,this['_colorAssignService']=_0x16af02,this[_0x11a4ce(0x26b)]=_0x561244,this[_0x11a4ce(0xe3)]=_0x19e735,this[_0x11a4ce(0x1b0)]=_0x3f6f69,this[_0x11a4ce(0x1f4)]=_0x189411);}get[_0x27ba00(0x38e)](){const _0xcf65b6=_0x27ba00;return this[_0xcf65b6(0x184)][_0xcf65b6(0x6f)]();}get[_0x27ba00(0x108)](){const _0x7bdbe5=_0x27ba00;return this[_0x7bdbe5(0x123)][_0x7bdbe5(0x6f)]();}['dispose'](){const _0x2bf969=_0x27ba00;super['dispose'](),this[_0x2bf969(0x184)][_0x2bf969(0x8c)](new Map()),this['_cursorInfo$'][_0x2bf969(0x373)](),this[_0x2bf969(0x123)][_0x2bf969(0x8c)]([]),this['_roomMembers$']['complete']();}[_0x27ba00(0x279)](){const _0x5197aa=_0x27ba00;this[_0x5197aa(0x7b)]||(this['_init']=!0x0,this[_0x5197aa(0x183)][_0x5197aa(0x10c)][_0x5197aa(0x31c)](_0x350758(this[_0x5197aa(0x132)]))[_0x5197aa(0x3c1)](_0xcaf145=>{const _0x46cbcc=_0x5197aa;_0xcaf145===G['ONLINE']?this[_0x46cbcc(0x1b2)]():this['_toggleOffline']();}),this[_0x5197aa(0x183)][_0x5197aa(0x359)][_0x5197aa(0x31c)](_0x350758(this['dispose$']))[_0x5197aa(0x3c1)](_0x3803ea=>{const _0x57cd84=_0x5197aa,_0x502ec3=_0x3803ea[_0x57cd84(0xc3)];_0x502ec3===_0x6fa194['UPDATE_CURSOR']&&this[_0x57cd84(0xa5)](_0x3803ea),_0x502ec3===_0x6fa194[_0x57cd84(0x386)]&&this['_onCursorDelete'](_0x3803ea);}),this[_0x5197aa(0x25c)](),this[_0x5197aa(0x169)](this['_commandService'][_0x5197aa(0x17d)](_0x21a5cf=>{const _0x2a8077=_0x5197aa;if(this[_0x2a8077(0x86)]&&_0x21a5cf['id']===_0x5b7f43['id']&&_0x21a5cf[_0x2a8077(0xb8)][_0x2a8077(0x21a)]===this[_0x2a8077(0x12c)]){const _0x53ca45=_0x21a5cf['params'];this[_0x2a8077(0x224)](_0x53ca45[_0x2a8077(0x145)],_0x53ca45[_0x2a8077(0xae)][0x0]);}})));}['_onCursorUpdate'](_0x33c9eb){const _0x5d9f39=_0x27ba00;var _0x1e5943,_0x6de4e8;const {memberID:_0x568a00,selection:_0x4e28c2}=_0x33c9eb[_0x5d9f39(0x216)],{sheetName:_0x21202c,range:_0x3c1465}=_0x40c2a5(_0x4e28c2),_0x2ba7e7={'name':(_0x6de4e8=(_0x1e5943=this[_0x5d9f39(0x26b)]['getMember'](this[_0x5d9f39(0x12c)],_0x568a00))==null?void 0x0:_0x1e5943['name'])!=null?_0x6de4e8:_0x5d9f39(0x2c4),'range':this['_getMergeRange'](_0x21202c,_0x3c1465),'sheetID':_0x21202c,'color':this[_0x5d9f39(0x3b5)][_0x5d9f39(0xcd)](_0x568a00),'selection':_0x4e28c2},_0x38cd08=this[_0x5d9f39(0x38e)];_0x38cd08['set'](_0x568a00,_0x2ba7e7),this['_cursorInfo$'][_0x5d9f39(0x8c)](_0x38cd08);}[_0x27ba00(0x200)](_0x3c775c){const _0x27f3e2=_0x27ba00,{memberID:_0x5f333d}=_0x3c775c['data'],_0xf3f1c8=this[_0x27f3e2(0x38e)];_0xf3f1c8[_0x27f3e2(0xe1)](_0x5f333d),this[_0x27f3e2(0x184)][_0x27f3e2(0x8c)](_0xf3f1c8);}[_0x27ba00(0x1a7)](_0x2e7833,_0x184875){const _0x3f16bb=_0x27ba00;var _0xc05086,_0xef96a8;const _0x2b41bc=(_0xef96a8=(_0xc05086=this[_0x3f16bb(0xe3)]['getUniverSheetInstance'](this[_0x3f16bb(0x12c)]))==null?void 0x0:_0xc05086[_0x3f16bb(0x342)](_0x2e7833))==null?void 0x0:_0xef96a8[_0x3f16bb(0x2b3)]();return(_0x2b41bc==null?void 0x0:_0x2b41bc[_0x3f16bb(0x208)](_0x5eec1f=>_0x3b9a06['contains'](_0x5eec1f,_0x184875)))||_0x184875;}[_0x27ba00(0x25c)](){const _0x57299f=_0x27ba00,_0x2c620b=new _0x23cc70(),_0x511f33=Or(),_0x45f534=()=>{const _0x3d7177=_0x1a62;_0x2c620b['dispose']();const _0x3d5575=(_0x496463,_0x23553e,_0x17f195,_0x15a9b1)=>{const _0x37cb89=_0x1a62;let _0x4ebb95=[];switch(_0x496463['id']){case _0x415f84[_0x37cb89(0x21e)]:{_0x4ebb95=_0x325c1a(_0x496463,_0x15a9b1);break;}case _0x415f84['DeleteRangeMoveUpCommandId']:{_0x4ebb95=_0x4e8d6c(_0x496463,_0x15a9b1);break;}case _0x415f84['InsertColCommandId']:{_0x4ebb95=_0x54694a(_0x496463,_0x15a9b1);break;}case _0x415f84[_0x37cb89(0x2e7)]:{_0x4ebb95=_0x3f46b0(_0x496463,_0x15a9b1);break;}case _0x415f84['InsertRangeMoveRightCommandId']:{_0x4ebb95=_0x5c4fbb(_0x496463,_0x15a9b1);break;}case _0x415f84[_0x37cb89(0x129)]:{_0x4ebb95=_0x519be2(_0x496463,_0x15a9b1);break;}case _0x415f84['MoveRangeCommandId']:{_0x4ebb95=_0x1ec3fa(_0x496463,_0x15a9b1);break;}case _0x415f84['RemoveColCommandId']:{_0x4ebb95=_0x4684c4(_0x496463,_0x15a9b1);break;}case _0x415f84[_0x37cb89(0x1cc)]:{_0x4ebb95=_0x120052(_0x496463,_0x15a9b1);break;}}const _0x55fa75=_0x4c70ed(_0x4ebb95,_0x15a9b1),_0x8f9a95=this[_0x37cb89(0x38e)]['get'](_0x23553e);if(_0x8f9a95&&_0x55fa75){const _0xb46a05={..._0x8f9a95,'range':_0x55fa75};this[_0x37cb89(0x38e)][_0x37cb89(0x371)](_0x23553e,_0xb46a05),_0x511f33(()=>{const _0x27faec=_0x37cb89,_0x234cb1=this[_0x27faec(0x1f4)][_0x27faec(0x387)](_0x55fa75,_0x1f1bb9=>(_0x234cb1[_0x27faec(0x323)](),_0x3d5575(_0x1f1bb9,_0x23553e,_0x17f195,_0x55fa75)));_0x2c620b[_0x27faec(0x30d)](_0x234cb1);});}return{'redos':[],'undos':[]};};this[_0x3d7177(0x38e)][_0x3d7177(0x392)]((_0x519c67,_0x53c397)=>{const _0x22ab1d=_0x3d7177,{range:_0x53fcd3,sheetID:_0xbeeb70}=_0x519c67,_0x34314e=this[_0x22ab1d(0x1f4)][_0x22ab1d(0x387)](_0x53fcd3,_0xf51453=>(_0x34314e[_0x22ab1d(0x323)](),_0x3d5575(_0xf51453,_0x53c397,_0xbeeb70,_0x53fcd3)));_0x2c620b['add'](_0x34314e);});};this[_0x57299f(0x169)](_0x10763a(this[_0x57299f(0x184)][_0x57299f(0x3c1)](()=>{_0x45f534();})));}[_0x27ba00(0x1b2)](){const _0xc99746=_0x27ba00;var _0x1959e3,_0xda3341;if(this[_0xc99746(0x86)]=!0x0,((_0x1959e3=this[_0xc99746(0xe3)][_0xc99746(0x2a3)]())==null?void 0x0:_0x1959e3[_0xc99746(0x242)]())!==this['unitID'])return;const _0x2756af=(_0xda3341=this[_0xc99746(0x2a6)][_0xc99746(0x1dd)](_0x3145be)[_0xc99746(0x362)]())==null?void 0x0:_0xda3341[0x0],_0x5a97d0=this[_0xc99746(0xe3)]['getCurrentUnitForType'](_0x28cb79[_0xc99746(0xdf)])['getActiveSheet']();_0x2756af&&_0x5a97d0&&this[_0xc99746(0x224)](_0x5a97d0[_0xc99746(0x247)](),_0x2756af);}[_0x27ba00(0x103)](){const _0x3363ad=_0x27ba00;this[_0x3363ad(0x86)]=!0x1;}};wt=br([fe(0x2,_0x27d762(_0x2a6c13)),fe(0x3,_0x27d762(Gt)),fe(0x4,_0x27d762(ae)),fe(0x5,_0x4a4945),fe(0x6,_0xf80f3b),fe(0x7,_0x27d762(_0x3cb22f))],wt);var Dr=Object['defineProperty'],wr=Object['getOwnPropertyDescriptor'],Pr=(_0x487424,_0x13e661,_0x15a549,_0x149454)=>{for(var _0xf80f69=_0x149454>0x1?void 0x0:_0x149454?wr(_0x13e661,_0x15a549):_0x13e661,_0x47a51b=_0x487424['length']-0x1,_0x41ada7;_0x47a51b>=0x0;_0x47a51b--)(_0x41ada7=_0x487424[_0x47a51b])&&(_0xf80f69=(_0x149454?_0x41ada7(_0x13e661,_0x15a549,_0xf80f69):_0x41ada7(_0xf80f69))||_0xf80f69);return _0x149454&&_0xf80f69&&Dr(_0x13e661,_0x15a549,_0xf80f69),_0xf80f69;},ie=(_0x114afa,_0x400938)=>(_0x4af8e6,_0x5e7c34)=>_0x400938(_0x4af8e6,_0x5e7c34,_0x114afa);const yr=0x12c,Nr=0x64;let Pt=class extends _0x504ec7{constructor(_0x5ea5cb,_0x3c16ff,_0x245cd2,_0xc0afed,_0x4b1e44,_0x2ec4d2,_0x5e0b95,_0x421579,_0x399aeb){const _0xd1bb87=_0x27ba00;super(),l(this,_0xd1bb87(0x86),!0x1),l(this,_0xd1bb87(0x7b),!0x1),l(this,'_cursorInfo$',new _0x23c814(new Map())),l(this,'cursorInfo$',this[_0xd1bb87(0x184)][_0xd1bb87(0x14e)]()),l(this,_0xd1bb87(0x123),new _0x23c814([])),l(this,_0xd1bb87(0x3b7),this[_0xd1bb87(0x123)]['pipe'](_0x907c69(yr))),l(this,_0xd1bb87(0x224),_0x224ffa(_0x1f0934=>{const _0x50deb5=_0xd1bb87,_0x5f00e0={'eventID':_0x6fa194[_0x50deb5(0x378)],'data':{'unitID':this[_0x50deb5(0x12c)],'memberID':this[_0x50deb5(0x183)][_0x50deb5(0x3b1)](),'selection':Hs(_0x1f0934)}};this[_0x50deb5(0x183)]['send'](_0x5f00e0,this['unitID']);},Nr)),(this[_0xd1bb87(0x12c)]=_0x5ea5cb,this[_0xd1bb87(0x183)]=_0x3c16ff,this['_injector']=_0x245cd2,this[_0xd1bb87(0x3b5)]=_0xc0afed,this[_0xd1bb87(0x26b)]=_0x4b1e44,this[_0xd1bb87(0x187)]=_0x2ec4d2,this[_0xd1bb87(0x32a)]=_0x5e0b95,this[_0xd1bb87(0xe3)]=_0x421579,this[_0xd1bb87(0x1b0)]=_0x399aeb);}get[_0x27ba00(0x38e)](){const _0x400093=_0x27ba00;return this['_cursorInfo$'][_0x400093(0x6f)]();}get['roomMembers'](){const _0x560467=_0x27ba00;return this[_0x560467(0x123)]['getValue']();}[_0x27ba00(0x323)](){const _0x33d21a=_0x27ba00;super[_0x33d21a(0x323)](),this['_cursorInfo$'][_0x33d21a(0x8c)](new Map()),this[_0x33d21a(0x184)][_0x33d21a(0x373)](),this['_roomMembers$'][_0x33d21a(0x8c)]([]),this[_0x33d21a(0x123)][_0x33d21a(0x373)]();}[_0x27ba00(0x279)](){const _0x262065=_0x27ba00;this[_0x262065(0x7b)]||(this[_0x262065(0x7b)]=!0x0,this[_0x262065(0x183)][_0x262065(0x10c)][_0x262065(0x31c)](_0x350758(this[_0x262065(0x132)]))[_0x262065(0x3c1)](_0x4782a2=>{const _0x184799=_0x262065;_0x4782a2===G['ONLINE']?this[_0x184799(0x1b2)]():this[_0x184799(0x103)]();}),this['_session'][_0x262065(0x359)]['pipe'](_0x350758(this[_0x262065(0x132)]))['subscribe'](_0x3d822c=>{const _0x9a595b=_0x262065,_0x2ff3c3=_0x3d822c[_0x9a595b(0xc3)];_0x2ff3c3===_0x6fa194['UPDATE_CURSOR']&&this[_0x9a595b(0xa5)](_0x3d822c),_0x2ff3c3===_0x6fa194[_0x9a595b(0x386)]&&this[_0x9a595b(0x200)](_0x3d822c);}),this['disposeWithMe'](this['_commandService'][_0x262065(0x17d)](_0x94b001=>{const _0x1ac480=_0x262065,_0x36ed0a=_0x94b001[_0x1ac480(0xb8)];_0x36ed0a!=null&&this['_online']&&_0x94b001['id']===_0x5dfba4['id']&&_0x36ed0a[_0x1ac480(0x21a)]===this[_0x1ac480(0x12c)]&&_0x36ed0a['isEditing']===!0x1&&this[_0x1ac480(0x224)](_0x36ed0a[_0x1ac480(0xb0)]);})),this['_syncEditingCollabCursorService'][_0x262065(0x162)][_0x262065(0x31c)](_0x350758(this[_0x262065(0x132)]))['subscribe'](_0x27d152=>{const _0x33566b=_0x262065;if((_0x27d152==null?void 0x0:_0x27d152[_0x33566b(0x12c)])!==this[_0x33566b(0x12c)])return;const _0x238111={'eventID':_0x6fa194[_0x33566b(0x378)],'data':_0x27d152};this[_0x33566b(0xa5)](_0x238111);}),this[_0x262065(0x169)](this[_0x262065(0x1b0)][_0x262065(0x17d)](_0x479463=>{const _0x4a3674=_0x262065;if(_0x479463[_0x4a3674(0xb8)]==null)return;const _0x2d21ef=_0x479463[_0x4a3674(0xb8)];if(_0x479463['id']!==_0x4ee1d3['id']||_0x2d21ef[_0x4a3674(0x21a)]!==this['unitID'])return;const _0x2c1336={'id':_0x4a3674(0x8a),'params':_0x2d21ef},_0x2e8895=this[_0x4a3674(0x38e)];for(const [_0x32c5b5,_0x2198e5]of _0x2e8895){const _0x3c4ade={'id':'doc.mutation.rich-text-editing','params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x2198e5[_0x4a3674(0xb0)]}},_0x56ac7b=this[_0x4a3674(0x32a)][_0x4a3674(0x1e4)](_0x2c1336,_0x3c4ade,!0x1);if(_0x25fecd(_0x56ac7b))throw _0x56ac7b[_0x4a3674(0x1e5)];_0x2e8895[_0x4a3674(0x371)](_0x32c5b5,{..._0x2198e5,'ranges':_0x56ac7b['m2Prime'][_0x4a3674(0xb8)]['textRanges']});}queueMicrotask(()=>{const _0xc38cac=_0x4a3674;this[_0xc38cac(0x184)]['next'](_0x2e8895);});})));}['_onCursorUpdate'](_0x56a4c6){const _0x901335=_0x27ba00;var _0x9b4514,_0x40bdc4;const {memberID:_0x1458f5,selection:_0x13100b}=_0x56a4c6['data'],_0x3cd998=ar(_0x13100b),_0x1318e6=(_0x40bdc4=(_0x9b4514=this[_0x901335(0x26b)][_0x901335(0x9c)](this[_0x901335(0x12c)],_0x1458f5))==null?void 0x0:_0x9b4514[_0x901335(0x2dd)])!=null?_0x40bdc4:_0x901335(0x2c4),_0x15c487={'color':this[_0x901335(0x3b5)][_0x901335(0xcd)](_0x1458f5),'name':_0x1318e6,'ranges':_0x3cd998},_0x172270=this[_0x901335(0x38e)];_0x172270[_0x901335(0x371)](_0x1458f5,_0x15c487),this['_cursorInfo$'][_0x901335(0x8c)](_0x172270);}[_0x27ba00(0x200)](_0xf43d05){const _0x59dec1=_0x27ba00,{memberID:_0x5d73f7}=_0xf43d05[_0x59dec1(0x216)],_0x2b0423=this['cursorInfo'];_0x2b0423[_0x59dec1(0xe1)](_0x5d73f7),this[_0x59dec1(0x184)][_0x59dec1(0x8c)](_0x2b0423);}[_0x27ba00(0x1b2)](){const _0x5b2519=_0x27ba00;var _0x313a80;if(this[_0x5b2519(0x86)]=!0x0,((_0x313a80=this['_univerInstanceService'][_0x5b2519(0x2a3)]())==null?void 0x0:_0x313a80[_0x5b2519(0x242)]())!==this[_0x5b2519(0x12c)])return;const _0x4e45bb=this[_0x5b2519(0x2a6)][_0x5b2519(0x1dd)](_0x4f65a4)['getDocRanges']();Array['isArray'](_0x4e45bb)&&_0x4e45bb[_0x5b2519(0x117)]>0x0&&this[_0x5b2519(0x224)](_0x4e45bb);}[_0x27ba00(0x103)](){const _0x501a8c=_0x27ba00;this[_0x501a8c(0x86)]=!0x1;}};Pt=Pr([ie(0x2,_0x27d762(_0x2a6c13)),ie(0x3,_0x27d762(Gt)),ie(0x4,_0x27d762(ae)),ie(0x5,_0x27d762(Ft)),ie(0x6,_0x29f88d),ie(0x7,_0x4a4945),ie(0x8,_0xf80f3b)],Pt);var Ur=Object[_0x27ba00(0x198)],Mr=Object[_0x27ba00(0x280)],Ar=(_0x4c5384,_0x5bd1be,_0x5704f3,_0x1c6254)=>{const _0x2a1a3f=_0x27ba00;for(var _0x2a7901=_0x1c6254>0x1?void 0x0:_0x1c6254?Mr(_0x5bd1be,_0x5704f3):_0x5bd1be,_0x2a73ec=_0x4c5384[_0x2a1a3f(0x117)]-0x1,_0x17f497;_0x2a73ec>=0x0;_0x2a73ec--)(_0x17f497=_0x4c5384[_0x2a73ec])&&(_0x2a7901=(_0x1c6254?_0x17f497(_0x5bd1be,_0x5704f3,_0x2a7901):_0x17f497(_0x2a7901))||_0x2a7901);return _0x1c6254&&_0x2a7901&&Ur(_0x5bd1be,_0x5704f3,_0x2a7901),_0x2a7901;},ft=(_0xcfd8f5,_0x2a80c6)=>(_0x502bed,_0x664f27)=>_0x2a80c6(_0x502bed,_0x664f27,_0xcfd8f5);let ge=class extends _0x504ec7{constructor(_0x17bace,_0x2085db,_0x3a71ce){const _0x494a1e=_0x27ba00;super(),l(this,'_entities',new Map()),l(this,_0x494a1e(0x297),new _0x1a4ff5()),(this[_0x494a1e(0xe3)]=_0x17bace,this[_0x494a1e(0x2a6)]=_0x2085db,this[_0x494a1e(0x137)]=_0x3a71ce,this[_0x494a1e(0x7b)]());}['dispose'](){const _0x5e3f00=_0x27ba00;super[_0x5e3f00(0x323)](),this[_0x5e3f00(0x297)][_0x5e3f00(0x373)](),this[_0x5e3f00(0x259)]['forEach'](_0x59c68c=>_0x59c68c[_0x5e3f00(0x323)]());}[_0x27ba00(0xfb)](_0x3c7246){const _0x5e1173=_0x27ba00;return this[_0x5e1173(0x259)][_0x5e1173(0x262)](_0x3c7246)?this[_0x5e1173(0x259)][_0x5e1173(0x1dd)](_0x3c7246)[_0x5e1173(0x3bc)]:this[_0x5e1173(0x297)][_0x5e1173(0x31c)](_0x3a4a54(_0x5f207d=>_0x5f207d[_0x5e1173(0x12c)]===_0x3c7246),_0xdc9d7a(_0x280101=>_0x280101[_0x5e1173(0x3bc)]));}[_0x27ba00(0x7b)](){const _0xbdd24f=_0x27ba00;this[_0xbdd24f(0xe3)][_0xbdd24f(0x1e6)](_0x28cb79[_0xbdd24f(0xdf)])[_0xbdd24f(0x31c)](_0x350758(this[_0xbdd24f(0x132)]))['subscribe'](async _0x3374a5=>{const _0x6f4b28=_0xbdd24f,_0x1391ac=_0x3374a5[_0x6f4b28(0x242)](),_0x495668=await this[_0x6f4b28(0x25d)](_0x1391ac);this[_0x6f4b28(0x297)][_0x6f4b28(0x8c)](_0x495668),this[_0x6f4b28(0x259)][_0x6f4b28(0x371)](_0x1391ac,_0x495668);}),this[_0xbdd24f(0xe3)]['getTypeOfUnitAdded$'](_0x28cb79[_0xbdd24f(0x2e3)])[_0xbdd24f(0x31c)](_0x350758(this['dispose$']))[_0xbdd24f(0x31c)](_0x3a4a54(_0x3200c2=>!_0x3200c2[_0xbdd24f(0x242)]()['startsWith']('__')))[_0xbdd24f(0x3c1)](async _0x864f54=>{const _0x40335d=_0xbdd24f,_0xf04da3=_0x864f54[_0x40335d(0x242)](),_0x14d16a=await this['_startDocCollabCursor'](_0xf04da3);this[_0x40335d(0x297)][_0x40335d(0x8c)](_0x14d16a),this['_entities']['set'](_0xf04da3,_0x14d16a);}),_0x4c28c6(this[_0xbdd24f(0xe3)][_0xbdd24f(0x177)](_0x28cb79[_0xbdd24f(0x2e3)]),this[_0xbdd24f(0xe3)]['getTypeOfUnitDisposed$'](_0x28cb79[_0xbdd24f(0xdf)]))[_0xbdd24f(0x31c)](_0x350758(this[_0xbdd24f(0x132)]))[_0xbdd24f(0x3c1)](_0x3b1fd5=>{const _0x55759e=_0xbdd24f,_0x4a0bcc=_0x3b1fd5[_0x55759e(0x242)](),_0x4d933c=this[_0x55759e(0x259)][_0x55759e(0x1dd)](_0x4a0bcc);_0x4d933c&&(_0x4d933c[_0x55759e(0x323)](),this[_0x55759e(0x259)][_0x55759e(0xe1)](_0x4a0bcc));});}async['_startSheetCollabCursor'](_0x300ead){const _0x5912d9=_0x27ba00,_0x32ab80=await this[_0x5912d9(0x137)][_0x5912d9(0x223)](_0x300ead),_0x5cb0fc=this[_0x5912d9(0x2a6)][_0x5912d9(0x85)](wt,_0x300ead,_0x32ab80);return _0x5cb0fc[_0x5912d9(0x279)](),_0x5cb0fc;}async[_0x27ba00(0x2d6)](_0x26c781){const _0x58a434=_0x27ba00,_0x409f27=await this[_0x58a434(0x137)][_0x58a434(0x223)](_0x26c781),_0x4de6bb=this[_0x58a434(0x2a6)][_0x58a434(0x85)](Pt,_0x26c781,_0x409f27);return _0x4de6bb[_0x58a434(0x279)](),_0x4de6bb;}};ge=Ar([_0x43e6ff(_0x2baed3['Starting'],ge),ft(0x0,_0x4a4945),ft(0x1,_0x27d762(_0x2a6c13)),ft(0x2,_0x27d762(ce))],ge);const Le=0x14,ds=0xc8,mt=0x4,Lr=0x5;function $r(_0x11c9a5,_0x224d9b){const _0x4b7d9b=_0x27ba00;let {radius:_0x274428,width:_0x385f3f,height:_0x4333b0}=_0x224d9b;_0x274428=_0x274428!=null?_0x274428:0x0,_0x385f3f=_0x385f3f!=null?_0x385f3f:0x1e,_0x4333b0=_0x4333b0!=null?_0x4333b0:0x1e;let _0x39b9dd=0x0,_0x3e16cf=0x0,_0x5d0653=0x0;_0x39b9dd=_0x3e16cf=_0x5d0653=Math[_0x4b7d9b(0x1d5)](_0x274428,_0x385f3f/0x2,_0x4333b0/0x2),_0x11c9a5[_0x4b7d9b(0x318)](),_0x11c9a5[_0x4b7d9b(0x1fd)](_0x39b9dd,0x0),_0x11c9a5[_0x4b7d9b(0x38b)](_0x385f3f-_0x3e16cf,0x0),_0x11c9a5['arc'](_0x385f3f-_0x3e16cf,_0x3e16cf,_0x3e16cf,Math['PI']*0x3/0x2,0x0,!0x1),_0x11c9a5['lineTo'](_0x385f3f,_0x4333b0-_0x5d0653),_0x11c9a5[_0x4b7d9b(0x2fc)](_0x385f3f-_0x5d0653,_0x4333b0-_0x5d0653,_0x5d0653,0x0,Math['PI']/0x2,!0x1),_0x11c9a5[_0x4b7d9b(0x38b)](0x0,_0x4333b0),_0x11c9a5['lineTo'](0x0,_0x39b9dd),_0x11c9a5[_0x4b7d9b(0x2fc)](_0x39b9dd,_0x39b9dd,_0x39b9dd,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x11c9a5[_0x4b7d9b(0x181)](),_0x224d9b['fill']&&(_0x11c9a5['save'](),_0x11c9a5['fillStyle']=_0x224d9b[_0x4b7d9b(0x196)],_0x224d9b[_0x4b7d9b(0x2b6)]==='evenodd'?_0x11c9a5['fill'](_0x4b7d9b(0x328)):_0x11c9a5['fill'](),_0x11c9a5[_0x4b7d9b(0x396)]());}class rt extends _0x916b9e{constructor(_0x318fed,_0x2d6bac){const _0x39a12e=_0x27ba00;super(_0x318fed,_0x2d6bac),l(this,_0x39a12e(0x355)),l(this,'text'),(this[_0x39a12e(0x355)]=_0x2d6bac==null?void 0x0:_0x2d6bac[_0x39a12e(0x355)],this[_0x39a12e(0x23d)]=_0x2d6bac==null?void 0x0:_0x2d6bac['text']);}static[_0x27ba00(0x22f)](_0x437efa,_0x35a75b){const _0x5c8597=_0x27ba00,{text:_0x7e1184,color:_0x34ce90}=_0x35a75b;_0x437efa[_0x5c8597(0x113)](),_0x437efa[_0x5c8597(0xcf)]=_0x5c8597(0x303);const _0x161939=_0x437efa[_0x5c8597(0x159)](_0x7e1184)['width'],_0x1dc864=Math[_0x5c8597(0x1d5)](_0x161939+0x2*mt,ds);$r(_0x437efa,{'height':Le,'radius':0x4,'width':_0x1dc864,'fill':_0x34ce90,'evented':!0x1}),_0x437efa[_0x5c8597(0x291)]='#FFF';const _0x2ab9fc=mt,_0x5a62d7=Le-Lr,_0x58d728=ds-0x2*mt;if(_0x161939>_0x58d728){let _0x2dc880='',_0x96228b=0x0;for(const _0x5ebc59 of _0x7e1184){const _0x13910a=_0x437efa[_0x5c8597(0x159)](_0x5ebc59)[_0x5c8597(0x182)];if(_0x96228b+_0x13910a<=_0x58d728-_0x437efa[_0x5c8597(0x159)](_0x5c8597(0xa7))[_0x5c8597(0x182)])_0x2dc880+=_0x5ebc59,_0x96228b+=_0x13910a;else{_0x2dc880+='...';break;}}_0x437efa[_0x5c8597(0x2b4)](_0x2dc880,_0x2ab9fc,_0x5a62d7);}else _0x437efa[_0x5c8597(0x2b4)](_0x7e1184,_0x2ab9fc,_0x5a62d7);_0x437efa['restore']();}[_0x27ba00(0x1f8)](_0x65bf7f){const _0x56180a=_0x27ba00;rt[_0x56180a(0x22f)](_0x65bf7f,this);}}const gt=_0x27ba00(0x206),jr=_0x27ba00(0x372),xr=_0x27ba00(0x125),De=0x6,Hr=1.5,St=0x4,kr=1.5,Br=_0x27ba00(0x380);class fs{constructor(_0x58cc67,_0x11ffc3,_0xfe0f93,_0x41186a){const _0xdcc944=_0x27ba00;l(this,_0xdcc944(0x226),[]),l(this,_0xdcc944(0x24d),null),l(this,'_textBubble',null),l(this,_0xdcc944(0x202),null),l(this,'_hideTimer',null),l(this,_0xdcc944(0x98),null),(this[_0xdcc944(0x1ce)]=_0x58cc67,this['_scene']=_0x11ffc3,this[_0xdcc944(0x189)]=_0xfe0f93,this['_document']=_0x41186a,this[_0xdcc944(0x25a)]());}set[_0x27ba00(0x3c3)](_0x1d8c84){const _0x4bc492=_0x27ba00;_0x1d8c84?(this['_anchorDot']&&this['_anchorDot'][_0x4bc492(0x3b2)](),this[_0x4bc492(0x19d)]&&this[_0x4bc492(0x19d)][_0x4bc492(0x346)]()):(this[_0x4bc492(0x202)]&&this[_0x4bc492(0x202)][_0x4bc492(0x346)](),this[_0x4bc492(0x19d)]&&this[_0x4bc492(0x19d)][_0x4bc492(0x3b2)]());}[_0x27ba00(0x323)](){const _0xb500d1=_0x27ba00;for(const _0x7efd86 of this['_shapes'])_0x7efd86['dispose']();this[_0xb500d1(0x19d)]&&this[_0xb500d1(0x19d)][_0xb500d1(0x323)](),this[_0xb500d1(0x202)]&&this[_0xb500d1(0x202)][_0xb500d1(0x323)](),this[_0xb500d1(0x24d)]&&this[_0xb500d1(0x24d)][_0xb500d1(0x323)](),this[_0xb500d1(0x98)]&&this[_0xb500d1(0x98)]();}['_render'](){const _0xb4751c=_0x27ba00;var _0x160aad;const {_docSkeleton:_0x59734d,_document:_0x52e384}=this,{color:_0x54dc8d,name:_0x1d0a32,ranges:_0x5d3b2a}=this[_0xb4751c(0x1ce)],_0x4bb0f2=_0x52e384[_0xb4751c(0xfe)](),{docsLeft:_0x19cb74,docsTop:_0x4f7cfb}=_0x4bb0f2,_0x26b5b4=new _0x368f8a(_0x4bb0f2,_0x59734d);for(const {startOffset:_0x39f572,endOffset:_0x299ce3,collapsed:_0x110c11,isActive:_0x459675}of _0x5d3b2a){const _0x348c66=_0x59734d['findNodePositionByCharIndex'](_0x39f572),_0x4a1998=_0x59734d[_0xb4751c(0x267)](_0x299ce3);if(_0x459675){const {contentBoxPointGroup:_0x37b285}=_0x26b5b4[_0xb4751c(0x270)](_0x4a1998,_0x4a1998);if(_0x37b285[_0xb4751c(0x117)]===0x0)continue;this[_0xb4751c(0x112)](_0x54dc8d,_0x37b285,_0x19cb74,_0x4f7cfb,_0x1d0a32),this['_eventUnsubscribe']=this[_0xb4751c(0x92)]();}if(!_0x110c11&&_0x348c66&&_0x4a1998){if(_0x4de1d0(_0x348c66,_0x4a1998)){const _0x344076=new _0x511433(_0x4bb0f2,_0x59734d),{pointGroup:_0x413866}=(_0x160aad=_0x344076['getRangePointData'](_0x348c66,_0x4a1998))!=null?_0x160aad:{};if(_0x413866==null||_0x413866[_0xb4751c(0x117)]===0x0)continue;this[_0xb4751c(0x1a2)](_0x54dc8d,_0x413866,_0x19cb74,_0x4f7cfb);}else{const {contentBoxPointGroup:_0x3236d6}=_0x26b5b4[_0xb4751c(0x270)](_0x348c66,_0x4a1998);if(_0x3236d6['length']===0x0)continue;this[_0xb4751c(0x3d5)](_0x54dc8d,_0x3236d6,_0x19cb74,_0x4f7cfb);}}}}[_0x27ba00(0x112)](_0xa114e5,_0x465fbd,_0x413423,_0x45ce0f,_0xb12a92){const _0x43020a=_0x27ba00,_0x3dafb9=this['_getAnchorBounding'](_0x465fbd),{left:_0x47e49b,top:_0x117686,height:_0x226ad7}=_0x3dafb9,_0x299d4a=this[_0x43020a(0x18a)](),_0x4f4c4b=kr/_0x299d4a,_0x1e1c6c=new _0x3dd5a3(gt+_0x38eaa3[_0x43020a(0x31a)](De),{'left':_0x47e49b+_0x413423-_0x4f4c4b,'top':_0x117686+_0x45ce0f,'height':_0x226ad7,'width':Hr,'fill':_0xa114e5||_0x54377d(_0x460073['black'],0x0),'strokeWidth':_0x4f4c4b,'stroke':Br,'evented':!0x0});this[_0x43020a(0x24d)]=_0x1e1c6c,this['_scene'][_0x43020a(0x3b6)](_0x1e1c6c,_0x5e95a3);const _0x47362d=new _0x3dd5a3(gt+_0x38eaa3['generateRandomId'](De),{'left':_0x47e49b+_0x413423-_0x4f4c4b,'top':_0x117686+_0x45ce0f-St/0x2,'height':St,'width':St,'fill':_0xa114e5||_0x54377d(_0x460073['black'],0x0),'strokeWidth':0x0,'stroke':_0xa114e5||_0x54377d(_0x460073[_0x43020a(0x212)],0x0),'evented':!0x1});this['_anchorDot']=_0x47362d,this[_0x43020a(0x327)][_0x43020a(0x3b6)](_0x47362d,_0x5e95a3);const _0x3b7012=new rt(gt+_0x38eaa3['generateRandomId'](De),{'left':_0x47e49b+_0x413423-_0x4f4c4b,'top':_0x117686+_0x45ce0f-Le,'text':_0xb12a92,'color':_0xa114e5});this[_0x43020a(0x19d)]=_0x3b7012,this['_scene'][_0x43020a(0x3b6)](_0x3b7012,_0x5e95a3),this[_0x43020a(0x3c3)]=!0x1;}[_0x27ba00(0x92)](){const _0x5d4fc4=_0x27ba00,_0x3efea3=this[_0x5d4fc4(0x24d)][_0x5d4fc4(0x180)][_0x5d4fc4(0x245)](()=>{const _0x4d404e=_0x5d4fc4;this[_0x4d404e(0x3c3)]=!0x0;}),_0x91979f=this[_0x5d4fc4(0x24d)][_0x5d4fc4(0x72)]['subscribeEvent'](()=>{const _0xd6696d=_0x5d4fc4;this[_0xd6696d(0x2a4)]&&clearTimeout(this['_hideTimer']),this[_0xd6696d(0x2a4)]=setTimeout(()=>{const _0x2e2b61=_0xd6696d;this[_0x2e2b61(0x3c3)]=!0x1;},0x7d0);});return()=>{const _0x3f18c5=_0x5d4fc4;_0x3efea3[_0x3f18c5(0x12f)](),_0x91979f[_0x3f18c5(0x12f)]();};}[_0x27ba00(0x3d5)](_0x547bb2,_0x5510ee,_0x1c0f97,_0x5a3b74){const _0x27b901=_0x27ba00,_0x341e1a=new _0x870dc0(_0x547bb2)[_0x27b901(0x24a)](0.2)[_0x27b901(0x3a4)](),_0x307122=new _0x3f4a1e(jr+_0x38eaa3['generateRandomId'](De),{'pointsGroup':_0x5510ee,'fill':_0x341e1a||_0x54377d(_0x460073[_0x27b901(0x212)],0.2),'left':_0x1c0f97,'top':_0x5a3b74,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x27b901(0x226)][_0x27b901(0x2ec)](_0x307122),this[_0x27b901(0x327)][_0x27b901(0x3b6)](_0x307122,_0x5e95a3);}['_drawRectRange'](_0x103310,_0xccc3b5,_0x653c71,_0x1e5e02){const _0xf8ccb0=_0x27ba00,_0x42118f=new _0x870dc0(_0x103310)['setAlpha'](0.2)[_0xf8ccb0(0x3a4)](),_0x45a6f6=new _0x3f4a1e(xr+_0x38eaa3['generateRandomId'](De),{'pointsGroup':_0xccc3b5,'fill':_0x42118f||_0x54377d(_0x460073[_0xf8ccb0(0x212)],0.2),'left':_0x653c71,'top':_0x1e5e02,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xf8ccb0(0x226)][_0xf8ccb0(0x2ec)](_0x45a6f6),this[_0xf8ccb0(0x327)][_0xf8ccb0(0x3b6)](_0x45a6f6,_0x5e95a3);}[_0x27ba00(0x2c8)](_0x15f745){const _0x54d6da=_0x15f745[0x0],_0x41f55b=_0x54d6da[0x0],_0x27ec47=_0x54d6da[0x2],{x:_0x3447a3,y:_0x520338}=_0x41f55b,{x:_0xd1a1fb,y:_0x4edd92}=_0x27ec47;return{'left':_0x3447a3,'top':_0x520338,'width':_0xd1a1fb-_0x3447a3,'height':_0x4edd92-_0x520338};}['_getScale'](){const _0x4b52e3=_0x27ba00,{scaleX:_0x5144a2,scaleY:_0x1df60b}=this[_0x4b52e3(0x327)]['getAncestorScale']();return Math[_0x4b52e3(0x1d1)](_0x5144a2,_0x1df60b);}}var Vr=Object['defineProperty'],Fr=Object[_0x27ba00(0x280)],Wr=(_0x1164c7,_0x232ada,_0x23d024,_0x4d3ff7)=>{const _0x5783f6=_0x27ba00;for(var _0x1aab4c=_0x4d3ff7>0x1?void 0x0:_0x4d3ff7?Fr(_0x232ada,_0x23d024):_0x232ada,_0x4a8329=_0x1164c7[_0x5783f6(0x117)]-0x1,_0x3f4273;_0x4a8329>=0x0;_0x4a8329--)(_0x3f4273=_0x1164c7[_0x4a8329])&&(_0x1aab4c=(_0x4d3ff7?_0x3f4273(_0x232ada,_0x23d024,_0x1aab4c):_0x3f4273(_0x1aab4c))||_0x1aab4c);return _0x4d3ff7&&_0x1aab4c&&Vr(_0x232ada,_0x23d024,_0x1aab4c),_0x1aab4c;},ke=(_0x19b8c5,_0x4c9909)=>(_0x1461c7,_0x4045b1)=>_0x4c9909(_0x1461c7,_0x4045b1,_0x19b8c5);let We=class extends _0x504ec7{constructor(_0x51f7c8,_0x21d9df,_0x1b9663,_0x50bf73,_0x53bd8e){const _0x12b37f=_0x27ba00;super(),l(this,_0x12b37f(0x10f),[]),l(this,_0x12b37f(0x7c),[]),(this[_0x12b37f(0x138)]=_0x51f7c8,this[_0x12b37f(0x2a7)]=_0x21d9df,this[_0x12b37f(0xef)]=_0x1b9663,this[_0x12b37f(0x1b0)]=_0x50bf73,this[_0x12b37f(0x111)]=_0x53bd8e,this[_0x12b37f(0x7b)]());}[_0x27ba00(0x7b)](){const _0x53afe9=_0x27ba00,_0x1b6ca3=this[_0x53afe9(0x138)][_0x53afe9(0x21a)],_0x2b5dcc=this['_docSkeletonManagerService'];this['disposeWithMe'](_0x1d8b8d([this[_0x53afe9(0xef)][_0x53afe9(0xfb)](_0x1b6ca3),this[_0x53afe9(0x111)][_0x53afe9(0x2fa)]])[_0x53afe9(0x31c)](_0x42ddbb(([_0x2dbf47,_0x28eb61])=>({'skeleton':_0x2b5dcc[_0x53afe9(0x220)](),'cursors':[..._0x2dbf47[_0x53afe9(0x1ab)]()][_0x53afe9(0x2a9)](_0x58d7e6=>({..._0x58d7e6,'color':_0x28eb61[_0x58d7e6['color']]}))})))['subscribe'](_0x2f483e=>{if(this['_removeCollabCursors'](),_0x2f483e){const {skeleton:_0x627b1d,cursors:_0x41e76d}=_0x2f483e;this['_updateCollabCursors'](_0x627b1d,_0x41e76d);}})),this['_initResize'](),this[_0x53afe9(0x6c)]();}[_0x27ba00(0x265)](_0x3a9ef9,_0x4e769a){const _0x2571e0=_0x27ba00,{scene:_0x51ce4e,mainComponent:_0xf9ce60}=this[_0x2571e0(0x138)],_0x37679a=_0x4e769a[_0x2571e0(0x23f)](_0x53d09f=>new fs(_0x53d09f,_0x51ce4e,_0x3a9ef9,_0xf9ce60));this[_0x2571e0(0x10f)]=_0x37679a,this[_0x2571e0(0x7c)]=_0x4e769a;}[_0x27ba00(0x306)](){const _0x24f623=_0x27ba00;this['_removeCollabCursors']();const {scene:_0x5ec7bb,mainComponent:_0x5332d7}=this[_0x24f623(0x138)],_0x424dbb=this[_0x24f623(0x2a7)][_0x24f623(0x220)](),_0x268be6=this[_0x24f623(0x7c)]['map'](_0xfecdb8=>new fs(_0xfecdb8,_0x5ec7bb,_0x424dbb,_0x5332d7));this[_0x24f623(0x10f)]=_0x268be6;}['_removeCollabCursors'](){const _0x1246c0=_0x27ba00;this[_0x1246c0(0x10f)]['forEach'](_0x4f2b8f=>_0x4f2b8f['dispose']()),this['_cursorShapes']=[];}[_0x27ba00(0x6c)](){const _0xff9261=_0x27ba00,_0x3ad2a5=[_0x3b6457['id']];this['disposeWithMe'](this[_0xff9261(0x1b0)][_0xff9261(0x17d)](_0x39bac5=>{const _0x2fd57b=_0xff9261;_0x3ad2a5['includes'](_0x39bac5['id'])&&_0x39bac5['params'][_0x2fd57b(0x21a)]===this[_0x2fd57b(0x138)][_0x2fd57b(0x21a)]&&this[_0x2fd57b(0x306)]();}));}[_0x27ba00(0x1e8)](){const _0x2e9c68=_0x27ba00;this[_0x2e9c68(0x169)](_0x3a4206(this[_0x2e9c68(0x138)]['engine'][_0x2e9c68(0xa1)])[_0x2e9c68(0x31c)](_0x2e3311(_0x346cc6=>_0x346cc6[_0x2e9c68(0xd5)]===_0x510a85[_0x2e9c68(0x11d)]),_0x25ed9c(0x10))['subscribe'](()=>{const _0x3d4f7c=_0x2e9c68;this[_0x3d4f7c(0x306)]();}));}};We=Wr([_0x43e6ff(_0x2baed3[_0x27ba00(0x2cc)],We),ke(0x1,_0x27d762(_0x12f84e)),ke(0x2,_0x27d762(ge)),ke(0x3,_0xf80f3b),ke(0x4,_0x27d762(_0x5574a0))],We);const Gr=0x1,Yr=1.5;class Kr extends _0x916b9e{constructor(_0x3b6948,_0x422467){const _0x1b0a82=_0x27ba00;super(_0x3b6948,_0x422467),l(this,_0x1b0a82(0x11a)),l(this,'_hovered',!0x1),l(this,_0x1b0a82(0x24f)),l(this,'_name',''),l(this,'_labelPosition',_0x1b0a82(0xd4)),l(this,_0x1b0a82(0x1ba)),(_0x422467&&this['setShapeProps'](_0x422467),this[_0x1b0a82(0x180)][_0x1b0a82(0x245)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x1b0a82(0x72)]['subscribeEvent'](()=>this[_0x1b0a82(0xb1)]({'hovered':!0x1})));}[_0x27ba00(0xb1)](_0x15671a){const _0x1dc174=_0x27ba00;var _0x430573,_0x5ef9e8,_0x20a976,_0x1a2292,_0x43d8b9,_0x4c3fe4;this[_0x1dc174(0x11a)]=(_0x430573=_0x15671a['color'])!=null?_0x430573:this['_color'],this[_0x1dc174(0x2d9)]=(_0x5ef9e8=_0x15671a[_0x1dc174(0x1d4)])!=null?_0x5ef9e8:this[_0x1dc174(0x2d9)],this[_0x1dc174(0x24f)]=(_0x20a976=_0x15671a['range'])!=null?_0x20a976:this[_0x1dc174(0x24f)],this[_0x1dc174(0x101)]=(_0x1a2292=_0x15671a['name'])!=null?_0x1a2292:this['_name'],this[_0x1dc174(0x12b)]=(_0x43d8b9=_0x15671a['labelPosition'])!=null?_0x43d8b9:this[_0x1dc174(0x12b)],this[_0x1dc174(0x1ba)]=(_0x4c3fe4=_0x15671a[_0x1dc174(0x27c)])!=null?_0x4c3fe4:this['_backgroundColor'],this[_0x1dc174(0x2d4)]({'width':_0x15671a[_0x1dc174(0x182)],'height':_0x15671a[_0x1dc174(0x1bd)]});}[_0x27ba00(0x3a8)](_0x27447c){const _0x166f01=_0x27ba00,{row:_0x3c77f8,column:_0x5d787e}=_0x27447c;if(_0x3c77f8>=this['_range']['startRow']&&_0x3c77f8<=this[_0x166f01(0x24f)][_0x166f01(0x232)]&&_0x5d787e>=this[_0x166f01(0x24f)][_0x166f01(0x110)]&&_0x5d787e<=this['_range'][_0x166f01(0x171)]){this[_0x166f01(0xb1)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}['triggerDblclick'](_0x4f51fb){return!0x1;}[_0x27ba00(0x1f8)](_0x4215d0){const _0x39d357=_0x27ba00;_0x3dd5a3['drawWith'](_0x4215d0,{'width':this[_0x39d357(0x182)],'height':this[_0x39d357(0x1bd)],'strokeWidth':Yr,'stroke':this[_0x39d357(0x11a)],'evented':!0x1,'fill':this[_0x39d357(0x1ba)]}),this[_0x39d357(0x2d9)]&&(_0x4215d0[_0x39d357(0x113)](),_0x4215d0[_0x39d357(0x197)](0x1,0x0,0x0,0x1,this[_0x39d357(0x182)],this[_0x39d357(0x12b)]===_0x39d357(0x9e)?0x0:-Le),rt[_0x39d357(0x22f)](_0x4215d0,{'text':this[_0x39d357(0x101)],'color':this[_0x39d357(0x11a)]}),_0x4215d0['restore']());}}var Xr=Object[_0x27ba00(0x198)],Jr=Object[_0x27ba00(0x280)],qr=(_0x40b366,_0x1d93c9,_0x2c1a72,_0x3e2b65)=>{const _0x5d8991=_0x27ba00;for(var _0xd45d61=_0x3e2b65>0x1?void 0x0:_0x3e2b65?Jr(_0x1d93c9,_0x2c1a72):_0x1d93c9,_0x4a444c=_0x40b366[_0x5d8991(0x117)]-0x1,_0x43241a;_0x4a444c>=0x0;_0x4a444c--)(_0x43241a=_0x40b366[_0x4a444c])&&(_0xd45d61=(_0x3e2b65?_0x43241a(_0x1d93c9,_0x2c1a72,_0xd45d61):_0x43241a(_0xd45d61))||_0xd45d61);return _0x3e2b65&&_0xd45d61&&Xr(_0x1d93c9,_0x2c1a72,_0xd45d61),_0xd45d61;},pt=(_0x59ab0d,_0x883ce6)=>(_0x4e6d7d,_0x180ff7)=>_0x883ce6(_0x4e6d7d,_0x180ff7,_0x59ab0d);const zr=0x1389;let yt=class extends _0x504ec7{constructor(_0x55aae7,_0x46492d,_0x283e8c,_0x3e2f58){const _0x4b5c91=_0x27ba00;super(),l(this,'_cursors',new Set()),l(this,_0x4b5c91(0x2cb),null),(this[_0x4b5c91(0x138)]=_0x55aae7,this['_sheetSkeletonManagerService']=_0x46492d,this[_0x4b5c91(0xef)]=_0x283e8c,this[_0x4b5c91(0x111)]=_0x3e2f58,this[_0x4b5c91(0x7b)]());}[_0x27ba00(0x7b)](){const _0x56cbff=_0x27ba00;this['_sheetSkeletonManagerService'][_0x56cbff(0x3ca)]['pipe'](_0x541db9(this['dispose$']),_0x170d0f(_0x334461=>{const _0x5d495c=_0x56cbff;if(_0x334461){const _0x5a8a2b=_0x334461['sheetId'];return _0x1d8b8d(this[_0x5d495c(0xef)][_0x5d495c(0xfb)](this['_context'][_0x5d495c(0x21a)]),this[_0x5d495c(0x111)][_0x5d495c(0x2fa)])[_0x5d495c(0x31c)](_0x42ddbb(([_0x2fca93,_0x3be887])=>{const _0x2a9e62=new Map();return _0x2fca93['forEach']((_0x3f52d7,_0x15da65)=>{const _0x27fe3f=_0x1a62;if(_0x3f52d7[_0x27fe3f(0x334)]===_0x5a8a2b){const _0x524985={..._0x3f52d7};_0x524985[_0x27fe3f(0x355)]=_0x3be887[_0x3f52d7[_0x27fe3f(0x355)]],_0x2a9e62['set'](_0x15da65,_0x524985);}}),{'skeleton':_0x334461,'cursors':_0x2a9e62};}));}return _0x215f7f({'skeleton':null,'cursors':new Map()});}))[_0x56cbff(0x3c1)](({skeleton:_0x53eb21,cursors:_0x245999})=>{const _0x5c9b27=_0x56cbff;this[_0x5c9b27(0x27d)](),_0x53eb21&&this[_0x5c9b27(0x265)](_0x53eb21,_0x245999);}),this[_0x56cbff(0xbd)][_0x56cbff(0x3ca)]['subscribe'](_0x41b602=>{const _0xc48189=_0x56cbff;if(_0x41b602==null)return;const {skeleton:_0x86b643}=_0x41b602,{scene:_0xbbdfec}=this[_0xc48189(0x138)];_0xbbdfec[_0xc48189(0x300)][_0xc48189(0x245)](_0x224ffa(_0x503405=>{const _0x2175da=_0xc48189;var _0x366555,_0x2d5ce2;const {offsetX:_0x3b10da,offsetY:_0x48612e}=_0x503405,{x:_0x5a092c,y:_0x4c53a6}=_0xbbdfec['getRelativeToViewportCoord'](_0x52f556['FromArray']([_0x3b10da,_0x48612e])),{scaleX:_0x5adaef,scaleY:_0x5104ba}=_0xbbdfec[_0x2175da(0x1f9)](),_0x256989=_0xbbdfec[_0x2175da(0x192)](_0x4cba9b[_0x2175da(0x7e)]),_0x426ae9=_0xbbdfec[_0x2175da(0x2d0)](_0x52f556[_0x2175da(0x339)]([_0x5a092c,_0x4c53a6]),_0x256989),_0x29f502=_0x86b643[_0x2175da(0x375)](_0x3b10da,_0x48612e,_0x5adaef,_0x5104ba,_0x426ae9);((_0x366555=this[_0x2175da(0x2cb)])==null?void 0x0:_0x366555[_0x2175da(0x16a)])===_0x29f502[_0x2175da(0x16a)]&&((_0x2d5ce2=this[_0x2175da(0x2cb)])==null?void 0x0:_0x2d5ce2['row'])===_0x29f502[_0x2175da(0x298)]||this['_cursors'][_0x2175da(0x392)](_0x51a495=>{_0x51a495['onMouseMove'](_0x29f502);});},0x64));});}['_updateCollabCursors'](_0x3bc52e,_0x49fc91){const _0x280196=_0x27ba00;var _0x34d376;const _0x3e44d6=(_0x34d376=this['_sheetSkeletonManagerService'][_0x280196(0x1bf)]())==null?void 0x0:_0x34d376[_0x280196(0x30b)];if(!_0x3e44d6)return;const _0x4c960c=this[_0x280196(0x35d)]();if(!_0x4c960c)return;this['_cursors'][_0x280196(0x392)](_0x452fde=>{const _0x23bf47=_0x280196;_0x452fde[_0x23bf47(0xed)]();});const {scene:_0x2a091b}=_0x4c960c,_0x5dce31=Zr(Array[_0x280196(0x309)](_0x49fc91[_0x280196(0x1ab)]()))[_0x280196(0x23f)](_0x5312d0=>{const _0x55cac0=_0x280196,{color:_0x54e414,range:_0x303ef7,name:_0x68e1a2,selection:_0x560199,sheetID:_0x64d297}=_0x5312d0,{startColumn:_0x33ac09,startRow:_0x1d340,endColumn:_0xef94a8,endRow:_0x38cd6c}=_0x303ef7,_0xa25ec7=_0x8c95be(_0x1d340,_0x33ac09,_0x2a091b,_0x3e44d6),_0x1db916=_0x8c95be(_0x38cd6c,_0xef94a8,_0x2a091b,_0x3e44d6),{columnHeaderHeightAndMarginTop:_0x5186ec}=_0x3e44d6,{startX:_0x309163,startY:_0x1fa61c}=_0xa25ec7,{endX:_0x455467,endY:_0x591a57}=_0x1db916,_0x4f1146=_0x455467-_0x309163,_0x151337=_0x591a57-_0x1fa61c,_0x1cb64c={'labelPosition':_0x1fa61c-_0x5186ec>=Le?_0x55cac0(0xd4):_0x55cac0(0x9e),'sheetID':_0x64d297,'range':_0x303ef7,'color':_0x54e414,'name':_0x68e1a2,'selection':_0x560199,'left':_0x309163,'top':_0x1fa61c,'width':_0x4f1146,'height':_0x151337,'evented':!0x1,'zIndex':zr};return new Kr(_0x68e1a2,_0x1cb64c);});_0x2a091b[_0x280196(0x146)](_0x5dce31,Gr),this[_0x280196(0x7c)]=new Set(_0x5dce31);}['_removeCollabCursors'](){const _0x4735a6=_0x27ba00;var _0x63904b;(_0x63904b=this[_0x4735a6(0x7c)])==null||_0x63904b[_0x4735a6(0x392)](_0x2f8541=>_0x2f8541[_0x4735a6(0x323)]());}[_0x27ba00(0x35d)](){const _0x479a26=_0x27ba00;return _0xd2383f(this[_0x479a26(0x138)][_0x479a26(0x1a4)],this['_context']);}};yt=qr([pt(0x1,_0x27d762(_0x485edb)),pt(0x2,_0x27d762(ge)),pt(0x3,_0x27d762(_0x5574a0))],yt);function Zr(_0x4619c2){const _0x56f51c=_0x27ba00,_0x2554da=new Map();return _0x4619c2['forEach'](_0x2f3287=>{const _0x300b73=_0x1a62;if(_0x2554da['has'](_0x2f3287['selection'])){const _0x19915e=_0x2554da[_0x300b73(0x1dd)](_0x2f3287[_0x300b73(0x23c)]);_0x19915e[_0x300b73(0x2dd)]+=',\x20'+_0x2f3287[_0x300b73(0x2dd)];}else _0x2554da[_0x300b73(0x371)](_0x2f3287[_0x300b73(0x23c)],_0x2f3287);}),Array[_0x56f51c(0x309)](_0x2554da[_0x56f51c(0x1ab)]());}var N=function(){const _0x91fefa=_0x27ba00;return N=Object[_0x91fefa(0xd0)]||function(_0x16cb0c){const _0x276356=_0x91fefa;for(var _0x452865,_0x5f11d5=0x1,_0x1b4629=arguments[_0x276356(0x117)];_0x5f11d5<_0x1b4629;_0x5f11d5++){_0x452865=arguments[_0x5f11d5];for(var _0x4fa6db in _0x452865)Object[_0x276356(0x22b)][_0x276356(0xe8)][_0x276356(0x321)](_0x452865,_0x4fa6db)&&(_0x16cb0c[_0x4fa6db]=_0x452865[_0x4fa6db]);}return _0x16cb0c;},N[_0x91fefa(0xd8)](this,arguments);},Qr=function(_0x23b956,_0xedade){const _0x4c4fe2=_0x27ba00;var _0x5d309c={};for(var _0x3dcbf in _0x23b956)Object['prototype'][_0x4c4fe2(0xe8)][_0x4c4fe2(0x321)](_0x23b956,_0x3dcbf)&&_0xedade[_0x4c4fe2(0xba)](_0x3dcbf)<0x0&&(_0x5d309c[_0x3dcbf]=_0x23b956[_0x3dcbf]);if(_0x23b956!=null&&typeof Object[_0x4c4fe2(0x87)]=='function'){for(var _0x430650=0x0,_0x3dcbf=Object[_0x4c4fe2(0x87)](_0x23b956);_0x430650<_0x3dcbf['length'];_0x430650++)_0xedade[_0x4c4fe2(0xba)](_0x3dcbf[_0x430650])<0x0&&Object[_0x4c4fe2(0x22b)][_0x4c4fe2(0x141)][_0x4c4fe2(0x321)](_0x23b956,_0x3dcbf[_0x430650])&&(_0x5d309c[_0x3dcbf[_0x430650]]=_0x23b956[_0x3dcbf[_0x430650]]);}return _0x5d309c;},Yt=_0x58d378(function(_0x49ddf6,_0x1d18ee){const _0x512944=_0x27ba00;var _0x3ec117=_0x49ddf6[_0x512944(0x19c)],_0x46f078=_0x49ddf6['id'],_0x4e2fa0=_0x49ddf6[_0x512944(0x39c)],_0x24ebae=_0x49ddf6[_0x512944(0x1a8)],_0x2a107d=Qr(_0x49ddf6,[_0x512944(0x19c),'id',_0x512944(0x39c),'extend']),_0x4143c9=_0x512944(0x30e)['concat'](_0x46f078,'\x20')[_0x512944(0x205)](_0x4e2fa0||'')[_0x512944(0x18e)](),_0x214747=_0x1984ee('_'[_0x512944(0x205)](so()));return Bs(_0x3ec117,''[_0x512944(0x205)](_0x46f078),{'defIds':_0x3ec117[_0x512944(0x6d)],'idSuffix':_0x214747[_0x512944(0x2c9)]},N({'ref':_0x1d18ee,'className':_0x4143c9},_0x2a107d),_0x24ebae);});function Bs(_0x3fb723,_0x3bde8f,_0x43f2bc,_0x33d8ac,_0x20914d){const _0x165064=_0x27ba00;return _0x86cf07(_0x3fb723['tag'],N(N({'key':_0x3bde8f},eo(_0x3fb723,_0x43f2bc,_0x20914d)),_0x33d8ac),(to(_0x3fb723,_0x43f2bc)[_0x165064(0x35e)]||[])[_0x165064(0x23f)](function(_0x3feeb4,_0xfcf1cc){const _0x205f0e=_0x165064;return Bs(_0x3feeb4,''['concat'](_0x3bde8f,'-')['concat'](_0x3fb723[_0x205f0e(0x107)],'-')[_0x205f0e(0x205)](_0xfcf1cc),_0x43f2bc,void 0x0,_0x20914d);}));}function eo(_0x200333,_0x3eae95,_0x3d52b5){const _0x396d14=_0x27ba00;var _0x4de1c4=N({},_0x200333['attrs']);_0x3d52b5!=null&&_0x3d52b5['colorChannel1']&&_0x4de1c4['fill']==='colorChannel1'&&(_0x4de1c4[_0x396d14(0x196)]=_0x3d52b5[_0x396d14(0x1ca)]);var _0x46c063=_0x3eae95['defIds'];return!_0x46c063||_0x46c063['length']===0x0||(_0x200333[_0x396d14(0x107)]===_0x396d14(0x14a)&&_0x4de1c4['xlink:href']&&(_0x4de1c4[_0x396d14(0x22e)]=_0x4de1c4[_0x396d14(0x22e)]+_0x3eae95[_0x396d14(0x175)]),Object['entries'](_0x4de1c4)[_0x396d14(0x392)](function(_0x1500b1){const _0x33a715=_0x396d14;var _0x4aad8b=_0x1500b1[0x0],_0x537d9a=_0x1500b1[0x1];typeof _0x537d9a=='string'&&(_0x4de1c4[_0x4aad8b]=_0x537d9a[_0x33a715(0xe5)](/url\(#(.*)\)/,_0x33a715(0x75)[_0x33a715(0x205)](_0x3eae95['idSuffix'],')')));})),_0x4de1c4;}function to(_0x26a664,_0x95620){const _0x122aed=_0x27ba00;var _0x35e651,_0x397ec9=_0x95620[_0x122aed(0x6d)];return!_0x397ec9||_0x397ec9['length']===0x0?_0x26a664:_0x26a664[_0x122aed(0x107)]===_0x122aed(0xc6)&&(!((_0x35e651=_0x26a664[_0x122aed(0x35e)])===null||_0x35e651===void 0x0)&&_0x35e651[_0x122aed(0x117)])?N(N({},_0x26a664),{'children':_0x26a664['children'][_0x122aed(0x23f)](function(_0x5dbcab){const _0x43092c=_0x122aed;return typeof _0x5dbcab[_0x43092c(0x39e)]['id']=='string'&&_0x397ec9&&_0x397ec9[_0x43092c(0xba)](_0x5dbcab[_0x43092c(0x39e)]['id'])>-0x1?N(N({},_0x5dbcab),{'attrs':N(N({},_0x5dbcab[_0x43092c(0x39e)]),{'id':_0x5dbcab[_0x43092c(0x39e)]['id']+_0x95620[_0x43092c(0x175)]})}):_0x5dbcab;})}):_0x26a664;}function so(){const _0x550008=_0x27ba00;return Math['random']()[_0x550008(0x344)](0x24)[_0x550008(0x3a9)](0x2,0x8);}Yt[_0x27ba00(0x3d6)]=_0x27ba00(0xdb);var io={'tag':_0x27ba00(0x2ce),'attrs':{'fill':_0x27ba00(0x3d4),'viewBox':_0x27ba00(0x36b),'width':_0x27ba00(0xfd),'height':_0x27ba00(0xfd)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':_0x27ba00(0x96),'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':_0x27ba00(0xf8),'strokeLinejoin':_0x27ba00(0xf8),'strokeWidth':1.2}}]},{'tag':_0x27ba00(0xc6),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x27ba00(0x285)},'children':[{'tag':_0x27ba00(0x1cd),'attrs':{'fill':_0x27ba00(0x1fa),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x27ba00(0x285)]},Vs=_0x58d378(function(_0x155361,_0x38198d){const _0x131596=_0x27ba00;return _0x86cf07(Yt,Object[_0x131596(0xd0)]({},_0x155361,{'id':_0x131596(0x116),'ref':_0x38198d,'icon':io}));});Vs[_0x27ba00(0x3d6)]='OffLineSingle';var no={'tag':_0x27ba00(0x2ce),'attrs':{'fill':_0x27ba00(0x3d4),'viewBox':_0x27ba00(0xb3),'width':'1em','height':_0x27ba00(0xfd)},'children':[{'tag':'g','attrs':{'clipPath':_0x27ba00(0x24e)},'children':[{'tag':_0x27ba00(0x1cd),'attrs':{'stroke':_0x27ba00(0x96),'d':_0x27ba00(0x3a2),'strokeLinecap':_0x27ba00(0xf8),'strokeLinejoin':_0x27ba00(0xf8),'strokeWidth':1.2}}]},{'tag':_0x27ba00(0xc6),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x27ba00(0x1c8)},'children':[{'tag':_0x27ba00(0x1cd),'attrs':{'fill':'#fff','d':_0x27ba00(0x2da),'transform':'translate(.97)'}}]}]}],'defIds':[_0x27ba00(0x1c8)]},Fs=_0x58d378(function(_0x2b4e54,_0x4b3208){return _0x86cf07(Yt,Object['assign']({},_0x2b4e54,{'id':'on-line-single','ref':_0x4b3208,'icon':no}));});Fs[_0x27ba00(0x3d6)]=_0x27ba00(0x83);const ro=_0x27ba00(0x261),oo=_0x27ba00(0x2e4),ao='univer-online-status',co=_0x27ba00(0x33c),ho='univer-offline',we={'onlineStatusIcon':ro,'onlineStatusTitle':oo,'onlineStatus':ao,'online':co,'offline':ho};function lo(_0xfc9656){const _0x471f37=_0x27ba00;switch(_0xfc9656){case w['OFFLINE']:return _0x471f37(0x9a);case w[_0x471f37(0x139)]:return'collabStatus.conflict';case w[_0x471f37(0xab)]:return _0x471f37(0x33f);case w['NOT_COLLAB']:return _0x471f37(0x236);case w[_0x471f37(0x37f)]:case w['AWAITING']:case w[_0x471f37(0x207)]:return _0x471f37(0xc4);case w[_0x471f37(0x237)]:return'collabStatus.synced';}}function _o(_0x3eb05b){const _0x4354f8=_0x27ba00,{status$:_0x3b2d4c}=_0x3eb05b,_0x1fef61=_0x1a9e47(_0x3b2d4c,w[_0x4354f8(0x317)]),_0x264342=_0x18c223(_0x5d963b),_0x561fff=_0x18c223(ce),_0x561ece=_0x1fef61!==w[_0x4354f8(0x1f1)],_0x4cdffe=_0x264342['t'](lo(_0x1fef61)),_0x2e9a4d=_0x501083(we[_0x4354f8(0xb9)],{[we[_0x4354f8(0x161)]]:_0x561ece,[we[_0x4354f8(0x26f)]]:!_0x561ece}),_0x5a8509=_0x561ece?_0x3ebc85['createElement'](Fs,null):_0x3ebc85['createElement'](Vs,null),_0x3645ef=_0x692936(()=>{_0x561ece||_0x561fff['reconnect']();},[_0x561ece,_0x561fff]);function _0x5b5b58(){const _0x35ae78=_0x4354f8;return _0x3ebc85[_0x35ae78(0x151)](_0x35ae78(0x1b3),{'className':_0x2e9a4d,'onClick':_0x3645ef},_0x3ebc85[_0x35ae78(0x151)](_0x35ae78(0x1b3),{'className':we['onlineStatusIcon']},_0x5a8509),_0x3ebc85[_0x35ae78(0x151)]('div',{'className':we[_0x35ae78(0x114)]},_0x4cdffe));}return _0x561ece?_0x5b5b58():_0x3ebc85['createElement'](_0x22317b,{'title':_0x264342['t']('collab-client.tooltip.reconnect')},_0x5b5b58());}var uo=Object[_0x27ba00(0x198)],fo=Object[_0x27ba00(0x280)],mo=(_0x5ef6f7,_0x36a5be,_0x5b287d,_0x1308f3)=>{for(var _0x481cc0=_0x1308f3>0x1?void 0x0:_0x1308f3?fo(_0x36a5be,_0x5b287d):_0x36a5be,_0x279b82=_0x5ef6f7['length']-0x1,_0x2e0b86;_0x279b82>=0x0;_0x279b82--)(_0x2e0b86=_0x5ef6f7[_0x279b82])&&(_0x481cc0=(_0x1308f3?_0x2e0b86(_0x36a5be,_0x5b287d,_0x481cc0):_0x2e0b86(_0x481cc0))||_0x481cc0);return _0x1308f3&&_0x481cc0&&uo(_0x36a5be,_0x5b287d,_0x481cc0),_0x481cc0;},Be=(_0x277cda,_0x261048)=>(_0x3a1fa9,_0x200678)=>_0x261048(_0x3a1fa9,_0x200678,_0x277cda);let Ue=class extends _0x10a60d{constructor(_0x24221a,_0x2258f7,_0x3df31d,_0x20571f){const _0x72935=_0x27ba00;super(),l(this,_0x72935(0x142),new _0x23c814(w['NOT_COLLAB'])),(this[_0x72935(0xe3)]=_0x24221a,this[_0x72935(0x388)]=_0x2258f7,this['_injector']=_0x3df31d,this[_0x72935(0x2e0)]=_0x20571f,this[_0x72935(0x255)](),this[_0x72935(0x31e)]());}[_0x27ba00(0x31e)](){const _0x6770f2=_0x27ba00;this[_0x6770f2(0x169)](this['_univerInstanceService'][_0x6770f2(0x193)]['pipe'](_0xdc9d7a(()=>{const _0x2f9381=_0x6770f2,_0x592f89=this[_0x2f9381(0xe3)][_0x2f9381(0x2a3)]();return _0x592f89?this[_0x2f9381(0x2e0)][_0x2f9381(0x26c)](_0x592f89[_0x2f9381(0x242)]()):_0x215f7f(null);}),_0xdc9d7a(_0x236463=>_0x236463?_0x236463[_0x6770f2(0x16b)]:_0x215f7f(w['NOT_COLLAB'])))[_0x6770f2(0x3c1)](_0x30b914=>{const _0x34c4c5=_0x6770f2;this[_0x34c4c5(0x142)][_0x34c4c5(0x8c)](_0x30b914);}));}[_0x27ba00(0x255)](){const _0xab4dd4=_0x27ba00;this[_0xab4dd4(0x169)](this[_0xab4dd4(0x388)][_0xab4dd4(0x3d1)](_0x3b6b42['HEADER_MENU'],()=>_0x2c7159(go({'status$':this[_0xab4dd4(0x142)][_0xab4dd4(0x14e)]()}),this[_0xab4dd4(0x2a6)])));}};Ue=mo([Be(0x0,_0x4a4945),Be(0x1,_0x37e53f),Be(0x2,_0x27d762(_0x2a6c13)),Be(0x3,_0x27d762(Ae))],Ue);function go(_0x1553fe){const {status$:_0x2692e1}=_0x1553fe;return function(){return _0x3ebc85['createElement'](_o,{'status$':_0x2692e1});};}const Ws=_0x2d9842(_0x27ba00(0x3a5));var So=Object[_0x27ba00(0x198)],po=Object[_0x27ba00(0x280)],vo=(_0x332db8,_0x288c41,_0x3b66e7,_0x1f34b6)=>{const _0x3ce901=_0x27ba00;for(var _0xeb29e2=_0x1f34b6>0x1?void 0x0:_0x1f34b6?po(_0x288c41,_0x3b66e7):_0x288c41,_0x318372=_0x332db8[_0x3ce901(0x117)]-0x1,_0x2e412c;_0x318372>=0x0;_0x318372--)(_0x2e412c=_0x332db8[_0x318372])&&(_0xeb29e2=(_0x1f34b6?_0x2e412c(_0x288c41,_0x3b66e7,_0xeb29e2):_0x2e412c(_0xeb29e2))||_0xeb29e2);return _0x1f34b6&&_0xeb29e2&&So(_0x288c41,_0x3b66e7,_0xeb29e2),_0xeb29e2;},me=(_0x2512ed,_0x31a8b7)=>(_0x46dbff,_0x4ef2e2)=>_0x31a8b7(_0x46dbff,_0x4ef2e2,_0x2512ed);let Ge=class extends _0x504ec7{constructor(_0x282951,_0x26ae15,_0x46ec3a,_0x1a99c3,_0xa61b41,_0x22b068){const _0x167190=_0x27ba00;super(),this[_0x167190(0x294)]=_0x282951,this[_0x167190(0xd6)]=_0x26ae15,this[_0x167190(0x1b0)]=_0x46ec3a,this[_0x167190(0x12a)]=_0x1a99c3,this[_0x167190(0x29f)]=_0xa61b41,_0x22b068?_0x22b068==null||_0x22b068['whenReady']()['then'](()=>this[_0x167190(0x7b)]()):(this[_0x167190(0xd6)][_0x167190(0x227)]('[DataLoaderController]',_0x167190(0x3ae)),this[_0x167190(0x7b)]());}async[_0x27ba00(0x7b)](){const _0x5dbbaf=_0x27ba00,_0x32ed28=this[_0x5dbbaf(0x294)][_0x5dbbaf(0x3ab)]('unit'),_0x208cbe=this[_0x5dbbaf(0x294)][_0x5dbbaf(0x3ab)](_0x5dbbaf(0xd5));if(!_0x32ed28||!_0x208cbe){this[_0x5dbbaf(0xd6)][_0x5dbbaf(0x227)](_0x5dbbaf(0x11e),_0x5dbbaf(0x393));return;}switch(Number(_0x208cbe)){case H['UNIVER_SHEET']:{const _0x3d527c=await this[_0x5dbbaf(0x144)](_0x32ed28);this['_setupSubUnitSync'](_0x3d527c);break;}case H[_0x5dbbaf(0x2e3)]:{await this['_loadDoc'](_0x32ed28);break;}default:{this[_0x5dbbaf(0xd6)][_0x5dbbaf(0x1e5)](_0x5dbbaf(0x11e),'Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async[_0x27ba00(0x1ec)](_0x51f58d){const _0x1eb6bf=_0x27ba00;await this[_0x1eb6bf(0xe6)](_0x51f58d),_0x51f58d[_0x1eb6bf(0x20e)][_0x1eb6bf(0x31c)](_0x350758(this[_0x1eb6bf(0x132)]))[_0x1eb6bf(0x3c1)](_0x4f446c=>{const _0x29ca98=_0x1eb6bf;_0x4f446c&&this[_0x29ca98(0x93)](_0x4f446c);}),this[_0x1eb6bf(0x294)][_0x1eb6bf(0x38c)]['pipe'](_0x350758(this[_0x1eb6bf(0x132)]))[_0x1eb6bf(0x3c1)](()=>this['_updateSubUnitFromURLParams'](_0x51f58d));}[_0x27ba00(0x93)](_0x24fcee,_0x9d8504=!0x1){const _0x1f5526=_0x27ba00,_0x1b1c9e=this[_0x1f5526(0x294)][_0x1f5526(0x3ab)](_0x1f5526(0x2f4));_0x24fcee[_0x1f5526(0x247)]()!==_0x1b1c9e&&this[_0x1f5526(0x294)][_0x1f5526(0x384)]('subunit',_0x24fcee[_0x1f5526(0x247)](),_0x9d8504);}async['_updateSubUnitFromURLParams'](_0x3e44fe){const _0x5932a6=_0x27ba00;var _0x5960de;const _0x2c3977=this[_0x5932a6(0x294)][_0x5932a6(0x3ab)]('subunit');if(!_0x2c3977||!_0x3e44fe[_0x5932a6(0x342)](_0x2c3977)){const _0x4616cc=_0x3e44fe[_0x5932a6(0x38f)]()[0x0],_0x2ec959=_0x3e44fe[_0x5932a6(0x342)](_0x4616cc);if(!_0x2ec959)return;this[_0x5932a6(0x93)](_0x2ec959,!0x0),await this[_0x5932a6(0x1b0)][_0x5932a6(0xb6)](_0x19e4e3['id'],{'unitId':_0x3e44fe[_0x5932a6(0x242)](),'subUnitId':_0x4616cc});return;}((_0x5960de=_0x3e44fe['getActiveSheet']())==null?void 0x0:_0x5960de['getSheetId']())!==_0x2c3977&&await this[_0x5932a6(0x1b0)][_0x5932a6(0xb6)](_0x19e4e3['id'],{'unitId':_0x3e44fe['getUnitId'](),'subUnitId':_0x2c3977});}async[_0x27ba00(0x144)](_0x3c05d9){const _0x137760=_0x27ba00;let _0x10ec1a=0x0;const _0x55d994=await this['_localCacheService'][_0x137760(0x347)](_0x3c05d9);return _0x55d994&&(_0x55d994[_0x137760(0x2af)]||_0x55d994['mutations'][_0x137760(0x117)]!==0x0)&&(_0x10ec1a=_0x55d994[_0x137760(0x13e)]),_0x10ec1a===0x0&&this['_logService']['debug'](_0x137760(0x11e),_0x137760(0x27e)),this[_0x137760(0x29f)][_0x137760(0x1ae)](_0x3c05d9,_0x10ec1a);}async[_0x27ba00(0xf9)](_0x1a798b){const _0x2aa41a=_0x27ba00;let _0x50d49c=0x0;const _0x1c65f0=await this['_localCacheService']['loadOfflineData'](_0x1a798b);return _0x1c65f0&&(_0x1c65f0[_0x2aa41a(0x2af)]||_0x1c65f0[_0x2aa41a(0x3bd)][_0x2aa41a(0x117)]!==0x0)&&(_0x50d49c=_0x1c65f0[_0x2aa41a(0x13e)]),_0x50d49c===0x0&&this['_logService'][_0x2aa41a(0x227)](_0x2aa41a(0x11e),_0x2aa41a(0x27e)),this[_0x2aa41a(0x29f)][_0x2aa41a(0x283)](_0x1a798b,_0x50d49c);}};Ge=vo([_0x43e6ff(_0x2baed3[_0x27ba00(0x324)],Ge),me(0x0,Ws),me(0x1,_0x1dd153),me(0x2,_0xf80f3b),me(0x3,_0x27d762(D)),me(0x4,_0x27d762(_0x55dfa3)),me(0x5,_0x3a7ea6(_0x321b9c))],Ge);var Io=Object[_0x27ba00(0x198)],Eo=Object['getOwnPropertyDescriptor'],Co=(_0x433a3e,_0x4a296b,_0x2539fe,_0xcc1a12)=>{const _0x198dbb=_0x27ba00;for(var _0x3a56cf=_0xcc1a12>0x1?void 0x0:_0xcc1a12?Eo(_0x4a296b,_0x2539fe):_0x4a296b,_0x15a535=_0x433a3e[_0x198dbb(0x117)]-0x1,_0x115603;_0x15a535>=0x0;_0x15a535--)(_0x115603=_0x433a3e[_0x15a535])&&(_0x3a56cf=(_0xcc1a12?_0x115603(_0x4a296b,_0x2539fe,_0x3a56cf):_0x115603(_0x3a56cf))||_0x3a56cf);return _0xcc1a12&&_0x3a56cf&&Io(_0x4a296b,_0x2539fe,_0x3a56cf),_0x3a56cf;},ms=(_0x170cb0,_0x2c5364)=>(_0x17373a,_0xca78f)=>_0x2c5364(_0x17373a,_0xca78f,_0x170cb0);const bo=_0x27ba00(0xc0),To=_0x27ba00(0x35b);let Ye=class extends _0x10a60d{constructor(_0x1f4af1,_0x27687e){const _0x5a5070=_0x27ba00;super(),this[_0x5a5070(0xe3)]=_0x1f4af1,this[_0x5a5070(0x19e)]=_0x27687e,this[_0x5a5070(0x7b)]();}[_0x27ba00(0x7b)](){const _0x813248=_0x27ba00;this[_0x813248(0x169)](_0x10763a(this[_0x813248(0xe3)]['focused$'][_0x813248(0x3c1)](()=>{const _0x45fe7f=_0x813248;var _0x435792;const _0x2597a0=this[_0x45fe7f(0xe3)][_0x45fe7f(0x2a3)]();let _0x34abea=(_0x435792=this['_configService'][_0x45fe7f(0x3c6)](bo))!=null?_0x435792:To;_0x2597a0 instanceof _0xcbf837&&(_0x34abea=_0x2597a0[_0x45fe7f(0x2dd)]),document['title']=_0x34abea;})));}};Ye=Co([_0x43e6ff(_0x2baed3[_0x27ba00(0x29e)],Ye),ms(0x0,_0x4a4945),ms(0x1,_0xeb1b98)],Ye);var Ro=Object[_0x27ba00(0x198)],Oo=Object[_0x27ba00(0x280)],Do=(_0x271c2b,_0x55259c,_0x3a2bc4,_0x2b203b)=>{const _0x12595b=_0x27ba00;for(var _0x149b27=_0x2b203b>0x1?void 0x0:_0x2b203b?Oo(_0x55259c,_0x3a2bc4):_0x55259c,_0x46ca0c=_0x271c2b[_0x12595b(0x117)]-0x1,_0x26cc64;_0x46ca0c>=0x0;_0x46ca0c--)(_0x26cc64=_0x271c2b[_0x46ca0c])&&(_0x149b27=(_0x2b203b?_0x26cc64(_0x55259c,_0x3a2bc4,_0x149b27):_0x26cc64(_0x149b27))||_0x149b27);return _0x2b203b&&_0x149b27&&Ro(_0x55259c,_0x3a2bc4,_0x149b27),_0x149b27;},vt=(_0x3859ce,_0x440a3d)=>(_0x5d3351,_0x520907)=>_0x440a3d(_0x5d3351,_0x520907,_0x3859ce);let st=class{constructor(_0x4bf33c,_0x4e4942,_0x1dcf28){const _0x181148=_0x27ba00;this['_configService']=_0x4bf33c,this['_httpService']=_0x4e4942,this[_0x181148(0x8d)]=_0x1dcf28,this[_0x181148(0x279)]();}[_0x27ba00(0x279)](){const _0x30e539=_0x27ba00;this[_0x30e539(0xe4)][_0x30e539(0x2e2)]({'priority':0x1,'interceptor':(_0x51cb06,_0x423873)=>_0x423873(_0x51cb06)[_0x30e539(0x31c)](_0x28894e(async _0xcf79d=>{const _0xcad768=_0x30e539,_0x3a5797=_0xcf79d;if(_0x3a5797['status']===0x191&&window[_0xcad768(0x3c0)](this[_0xcad768(0x8d)]['t']('auth.needGotoLoginAlert'))){const _0x3e9747=window[_0xcad768(0x3de)](window[_0xcad768(0x1fb)][_0xcad768(0x1d8)]);window[_0xcad768(0x1fb)][_0xcad768(0x1d8)]=this[_0xcad768(0x33e)]()+_0xcad768(0xd1)+_0x3e9747;}return _0x3a5797;}))});}['_getLoginPath'](){const _0x1452a4=_0x27ba00;var _0x488f2d,_0x20964e;const _0x48d136=this[_0x1452a4(0x19e)][_0x1452a4(0x3c6)](Pn),_0x3afebb=this['_configService'][_0x1452a4(0x3c6)](L);return(_0x20964e=(_0x488f2d=_0x3afebb==null?void 0x0:_0x3afebb['loginUrlKey'])!=null?_0x488f2d:_0x48d136)!=null?_0x20964e:yn;}};st=Do([vt(0x0,_0xeb1b98),vt(0x1,_0x27d762(_0x3fd702)),vt(0x2,_0x27d762(_0x5d963b))],st);var wo=Object[_0x27ba00(0x198)],Po=Object[_0x27ba00(0x280)],yo=(_0x2af3b4,_0x5b2d4,_0x2ee067,_0x14969b)=>{const _0x12f5a6=_0x27ba00;for(var _0x598e3c=_0x14969b>0x1?void 0x0:_0x14969b?Po(_0x5b2d4,_0x2ee067):_0x5b2d4,_0x34f26f=_0x2af3b4[_0x12f5a6(0x117)]-0x1,_0x1031c7;_0x34f26f>=0x0;_0x34f26f--)(_0x1031c7=_0x2af3b4[_0x34f26f])&&(_0x598e3c=(_0x14969b?_0x1031c7(_0x5b2d4,_0x2ee067,_0x598e3c):_0x1031c7(_0x598e3c))||_0x598e3c);return _0x14969b&&_0x598e3c&&wo(_0x5b2d4,_0x2ee067,_0x598e3c),_0x598e3c;},gs=(_0x359c5d,_0x4c54e9)=>(_0x579543,_0x438ed8)=>_0x4c54e9(_0x579543,_0x438ed8,_0x359c5d);const No=_0x27ba00(0xf1),Uo='/universer-api/authz';let Nt=class extends _0x10a60d{constructor(_0x599905,_0x5ec944){const _0x28805a=_0x27ba00;super(),this['_HTTPService']=_0x599905,this['_configService']=_0x5ec944,this[_0x28805a(0x204)]();}['_initMergeInterceptor'](){const _0x5ed297=_0x27ba00,_0x3c1262=this;this[_0x5ed297(0x169)](this[_0x5ed297(0x36a)][_0x5ed297(0x2e2)]({'priority':0x3e7,'interceptor':_0x2966fa({'isMatch'(_0x52a8f0){const _0x4b2a0a=_0x5ed297;var _0x94eb6a;if(_0x52a8f0[_0x4b2a0a(0x2ae)]==='POST'&&((_0x94eb6a=_0x52a8f0[_0x4b2a0a(0x1a9)])!=null&&_0x94eb6a['body'])){const {objectID:_0x3cf831,objectType:_0x3343fd}=_0x52a8f0[_0x4b2a0a(0x1a9)]['body']||{};if(!_0x3cf831||_0x3343fd===void 0x0)return!0x1;const _0x3cb261=_0x3c1262[_0x4b2a0a(0x1aa)]()+'/'+_0x3343fd+'/object/'+_0x3cf831+_0x4b2a0a(0x1ff);if(_0x52a8f0[_0x4b2a0a(0x23b)]===_0x3cb261)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x508595){const _0x4206ca=_0x5ed297;var _0x33bbdc;return(_0x33bbdc=_0x508595[_0x4206ca(0x1a9)])==null?void 0x0:_0x33bbdc[_0x4206ca(0x109)];},'mergeParamsToRequest'(_0x352339,_0x161689){const _0x29250a=_0x5ed297,_0x36f239=_0x3c1262['_getAPIPrefixPath']()+_0x29250a(0xc2),_0x13495c=_0x352339['reduce']((_0x318eae,_0x546ba1)=>{const _0x54d69a=_0x29250a,{unitID:_0x54b248,objectID:_0x1a917e,objectType:_0x4ec3e0,actions:_0x13489b}=_0x546ba1;return _0x318eae[_0x54b248]||(_0x318eae[_0x54b248]={}),_0x318eae[_0x54b248][_0x1a917e]||(_0x318eae[_0x54b248][_0x1a917e]={'objectID':_0x1a917e,'objectType':_0x4ec3e0,'actions':[]}),_0x318eae[_0x54b248][_0x1a917e][_0x54d69a(0x2cd)]['push'](..._0x13489b),_0x318eae;},{}),_0x43a650=[];for(const _0x26fa15 in _0x13495c)for(const _0x3c6172 in _0x13495c[_0x26fa15]){const {actions:_0x1ee56c,objectType:_0x33c64c}=_0x13495c[_0x26fa15][_0x3c6172],_0x279b20=[...new Set(_0x1ee56c)];_0x43a650[_0x29250a(0x2ec)]({'unitID':_0x26fa15,'objectID':_0x3c6172,'objectType':_0x33c64c,'actions':_0x279b20});}return new _0x1ccb75('POST',_0x36f239,{'headers':_0x161689[_0x29250a(0x155)],'withCredentials':_0x161689[_0x29250a(0x310)],'responseType':_0x161689[_0x29250a(0x1be)],'body':{'requests':_0x43a650}});}},{'distributeResult'(_0x5869cd,_0x17ae78){const _0x91b959=_0x5ed297,{objectActions:_0x352e90}=_0x5869cd;return _0x17ae78[_0x91b959(0x23f)](_0x1e3bf1=>{const _0x38544a=_0x91b959,{unitID:_0x4ccad0,objectID:_0x5f3494,actions:_0x57fb56}=_0x1e3bf1,_0x1d577f=_0x352e90[_0x38544a(0x208)](_0x1b11b8=>_0x1b11b8['unitID']===_0x4ccad0&&_0x1b11b8[_0x38544a(0x99)]===_0x5f3494),_0x1c73fb=_0x57fb56[_0x38544a(0x23f)](_0x509da3=>_0x1d577f==null?void 0x0:_0x1d577f[_0x38544a(0x2cd)][_0x38544a(0x208)](_0x541fa7=>_0x541fa7['action']===_0x509da3))[_0x38544a(0x266)](_0x33e55a=>!!_0x33e55a);return{'config':_0x1e3bf1,'result':{'actions':_0x1c73fb,'error':_0x5869cd[_0x38544a(0x1e5)]}};});}})}));}[_0x27ba00(0x1aa)](){const _0x224915=_0x27ba00;var _0x46965e,_0x564ce0;const _0x23a983=this[_0x224915(0x19e)][_0x224915(0x3c6)](No),_0x44854d=this[_0x224915(0x19e)][_0x224915(0x3c6)](L);return(_0x564ce0=(_0x46965e=_0x44854d==null?void 0x0:_0x44854d['authzUrl'])!=null?_0x46965e:_0x23a983)!=null?_0x564ce0:Uo;}async[_0x27ba00(0x29c)](_0x41c6a6){const _0x27a5de=_0x27ba00,_0x4704b4=this[_0x27a5de(0x1aa)]()+'/'+_0x41c6a6[_0x27a5de(0x219)]+_0x27a5de(0x1d9);return(await this[_0x27a5de(0x36a)][_0x27a5de(0x1c7)](_0x4704b4,{'body':_0x41c6a6}))[_0x27a5de(0x109)][_0x27a5de(0x99)]||'';}async[_0x27ba00(0x2cf)](_0x505864){const _0x43f959=_0x27ba00,_0x41423f=this[_0x43f959(0x1aa)]()+'/-/object/list';return(await this[_0x43f959(0x36a)]['post'](_0x41423f,{'body':_0x505864}))[_0x43f959(0x109)][_0x43f959(0x370)];}async[_0x27ba00(0x7d)](_0x3c14a3){const _0x5aa4ce=_0x27ba00,_0x47d075=this['_getAPIPrefixPath']()+'/'+_0x3c14a3[_0x5aa4ce(0x219)]+_0x5aa4ce(0x88)+_0x3c14a3[_0x5aa4ce(0x99)];await this['_HTTPService'][_0x5aa4ce(0x2f7)](_0x47d075,{'body':_0x3c14a3});}async['allowed'](_0x2d1e10){const _0x7e0217=_0x27ba00,_0xd0bc1d=this['_getAPIPrefixPath']()+'/'+_0x2d1e10[_0x7e0217(0x219)]+_0x7e0217(0x88)+_0x2d1e10['objectID']+_0x7e0217(0x1ff);return(await this[_0x7e0217(0x36a)][_0x7e0217(0x1c7)](_0xd0bc1d,{'body':_0x2d1e10}))[_0x7e0217(0x109)][_0x7e0217(0x2cd)];}async['batchAllowed'](_0x21375b){const _0x358d48=_0x27ba00,_0x4a4a5d=this[_0x358d48(0x1aa)]()+_0x358d48(0xc2);return(await this[_0x358d48(0x36a)]['post'](_0x4a4a5d,{'body':{'requests':_0x21375b}}))[_0x358d48(0x109)][_0x358d48(0x243)];}async['listRoles'](_0x509fe6){const _0xeaaee3=_0x27ba00,_0x406c6a=this[_0xeaaee3(0x1aa)]()+'/'+_0x509fe6[_0xeaaee3(0x219)]+'/role',_0x56f72c=await this[_0xeaaee3(0x36a)][_0xeaaee3(0x1c7)](_0x406c6a,{'body':_0x509fe6});return{'roles':_0x56f72c['body'][_0xeaaee3(0xa9)],'actions':_0x56f72c[_0xeaaee3(0x109)]['actions']};}async[_0x27ba00(0x2bf)](_0x1ffcf5){const _0x58566f=_0x27ba00,_0xc26730=this[_0x58566f(0x1aa)]()+_0x58566f(0x3cf);await this[_0x58566f(0x36a)][_0x58566f(0xe1)](_0xc26730,{'params':{'collaboratorID':_0x1ffcf5[_0x58566f(0x13c)],'objectID':_0x1ffcf5[_0x58566f(0x99)],'unitID':_0x1ffcf5['unitID']}});}async[_0x27ba00(0x397)](_0x507f9f){const _0x593fd7=_0x27ba00,_0x1f2506=this[_0x593fd7(0x1aa)]()+'/collaborator';await this['_HTTPService']['patch'](_0x1f2506,{'body':_0x507f9f});}async[_0x27ba00(0x1b7)](_0x108d2a){const _0x5dffec=_0x27ba00,_0x5998e9=this[_0x5dffec(0x1aa)]()+'/collaborator';await this['_HTTPService']['post'](_0x5998e9,{'body':_0x108d2a});}async[_0x27ba00(0xe9)](_0x5be97f){const _0x106c8e=_0x27ba00,_0x5d8314=this[_0x106c8e(0x1aa)]()+_0x106c8e(0x3cf);return(await this[_0x106c8e(0x36a)][_0x106c8e(0x1dd)](_0x5d8314,{'params':{'objectID':_0x5be97f['objectID'],'unitID':_0x5be97f[_0x106c8e(0x12c)]}}))[_0x106c8e(0x109)][_0x106c8e(0x1b6)];}async['putCollaborators'](_0x54003c){const _0x3880b5=this['_getAPIPrefixPath']()+'/collaborator';await this['_HTTPService']['put'](_0x3880b5,{'body':_0x54003c});}};Nt=yo([gs(0x0,_0x27d762(_0x3fd702)),gs(0x1,_0x27d762(_0xeb1b98))],Nt);var Mo=Object[_0x27ba00(0x198)],Ao=Object['getOwnPropertyDescriptor'],Lo=(_0x50e8ab,_0x3acada,_0x4eb102,_0x46dca0)=>{const _0x283d4b=_0x27ba00;for(var _0x116407=_0x46dca0>0x1?void 0x0:_0x46dca0?Ao(_0x3acada,_0x4eb102):_0x3acada,_0x47a614=_0x50e8ab[_0x283d4b(0x117)]-0x1,_0x48c56e;_0x47a614>=0x0;_0x47a614--)(_0x48c56e=_0x50e8ab[_0x47a614])&&(_0x116407=(_0x46dca0?_0x48c56e(_0x3acada,_0x4eb102,_0x116407):_0x48c56e(_0x116407))||_0x116407);return _0x46dca0&&_0x116407&&Mo(_0x3acada,_0x4eb102,_0x116407),_0x116407;},$o=(_0x5ea9bb,_0x570a9b)=>(_0x3ddbaa,_0x2d70c6)=>_0x570a9b(_0x3ddbaa,_0x2d70c6,_0x5ea9bb);let it=class{constructor(_0x29fec8){const _0x41f145=_0x27ba00;this[_0x41f145(0xe4)]=_0x29fec8,this[_0x41f145(0x21c)]();}[_0x27ba00(0x21c)](){const _0x4d034f=_0x27ba00;this[_0x4d034f(0xe4)][_0x4d034f(0x2e2)]({'interceptor':(_0x108d37,_0x36da16)=>{const _0x30c3ae=_0x4d034f,_0xfcd030=_0x108d37[_0x30c3ae(0x155)],_0xc959a4=_0x371ad3();return _0xc959a4&&_0xfcd030[_0x30c3ae(0x371)](_0x30c3ae(0x244),_0xc959a4),_0x36da16(_0x108d37);}});}};it=Lo([$o(0x0,_0x27d762(_0x3fd702))],it);var jo=Object['defineProperty'],xo=Object[_0x27ba00(0x280)],Ho=(_0x223829,_0xc0961b,_0x162a2d,_0x12e56e)=>{for(var _0x5413d5=_0x12e56e>0x1?void 0x0:_0x12e56e?xo(_0xc0961b,_0x162a2d):_0xc0961b,_0x2efe4a=_0x223829['length']-0x1,_0x395505;_0x2efe4a>=0x0;_0x2efe4a--)(_0x395505=_0x223829[_0x2efe4a])&&(_0x5413d5=(_0x12e56e?_0x395505(_0xc0961b,_0x162a2d,_0x5413d5):_0x395505(_0x5413d5))||_0x5413d5);return _0x12e56e&&_0x5413d5&&jo(_0xc0961b,_0x162a2d,_0x5413d5),_0x5413d5;},It=(_0x51e0da,_0x15192c)=>(_0x1a1a63,_0x34e2b3)=>_0x15192c(_0x1a1a63,_0x34e2b3,_0x51e0da);const ko=[_0x27ba00(0x234),_0x27ba00(0x1ac),'image/jpg','image/gif',_0x27ba00(0x239)],Bo=0x5*0x400*0x400,Vo=_0x27ba00(0x1e3),Fo=_0x27ba00(0x17a),Wo=_0x27ba00(0x2d2),Go=_0x27ba00(0x28c);let Ut=class{constructor(_0x48a69e,_0x2c1b7f,_0x5b8655){const _0x56c46c=_0x27ba00;l(this,'_waitCount',0x0),l(this,_0x56c46c(0x251),new _0x1a4ff5()),l(this,_0x56c46c(0xb2),this[_0x56c46c(0x251)]),l(this,_0x56c46c(0x73),new Map()),(this[_0x56c46c(0xe4)]=_0x48a69e,this['_configService']=_0x2c1b7f,this[_0x56c46c(0xe3)]=_0x5b8655);}['setWaitCount'](_0x23d2b7){const _0x241b3a=_0x27ba00;this[_0x241b3a(0x35f)]=_0x23d2b7,this[_0x241b3a(0x251)][_0x241b3a(0x8c)](_0x23d2b7);}[_0x27ba00(0x34b)](_0x3f14ff,_0x2ece94){const _0x81bf5b=_0x27ba00;if(_0x2ece94===_0x3669a1[_0x81bf5b(0x1c1)]){const _0x2879ac=new Image();return _0x2879ac[_0x81bf5b(0x233)]=_0x3f14ff,_0x2879ac;}return this['_imageSourceCache']['get'](_0x3f14ff);}[_0x27ba00(0x3e2)](_0x38bd0a,_0x5e2b71,_0x265f7c){const _0x5a1ad8=_0x27ba00;_0x5e2b71===_0x3669a1[_0x5a1ad8(0x1c1)]||_0x265f7c==null||this[_0x5a1ad8(0x73)][_0x5a1ad8(0x371)](_0x38bd0a,_0x265f7c);}async[_0x27ba00(0x1b1)](_0x527076){const _0x28244c=_0x27ba00;try{const _0x133235=this['_replaceFileID'](this[_0x28244c(0x6e)](),''+_0x527076),_0x1b0283=(await this[_0x28244c(0xe4)][_0x28244c(0x1dd)](_0x133235))['body'];if(_0x1b0283['error']&&_0x1b0283[_0x28244c(0x1e5)]['code']===As['OK']){const _0x22d0fc=new URL(_0x1b0283[_0x28244c(0x23b)],this[_0x28244c(0x1c2)]())[_0x28244c(0x344)]();return Promise[_0x28244c(0x3bb)](_0x22d0fc);}return Promise['reject'](_0x1b0283['error']);}catch(_0x3ca572){return Promise[_0x28244c(0x74)](_0x3ca572);}}async[_0x27ba00(0x32f)](_0x5e1193){const _0x4f9017=_0x27ba00;let _0x3c431b='';if(!ko[_0x4f9017(0x32e)](_0x5e1193['type']))return this[_0x4f9017(0x34c)](),Promise['reject'](new Error(_0x49c411['ERROR_IMAGE_TYPE']));if(_0x5e1193[_0x4f9017(0x333)]>Bo)return this[_0x4f9017(0x34c)](),Promise[_0x4f9017(0x74)](new Error(_0x49c411['ERROR_EXCEED_SIZE']));try{const _0x4092c6=new FormData();_0x4092c6[_0x4f9017(0xc1)](_0x4f9017(0x1df),_0x5e1193);const _0x5ef4bb=this[_0x4f9017(0xe3)][_0x4f9017(0x2a3)](),_0x511289=_0x5ef4bb==null?void 0x0:_0x5ef4bb[_0x4f9017(0x242)]();if(!_0x511289)throw new Error('unitId\x20is\x20not\x20found');const _0x1706b3=this[_0x4f9017(0xdd)]()+_0x4f9017(0x307)+_0x5e1193['size'][_0x4f9017(0x344)]()+_0x4f9017(0x228)+Ls[_0x4f9017(0x185)]+'&assign='+encodeURIComponent(_0x511289),_0x16823e=await(await fetch(_0x1706b3,{'method':'POST','body':_0x4092c6}))['json']();if(typeof _0x16823e['FileId']!=_0x4f9017(0x16d))return this[_0x4f9017(0x34c)](),Promise[_0x4f9017(0x74)](new Error(_0x49c411[_0x4f9017(0x2df)]));_0x3c431b=_0x16823e[_0x4f9017(0x33a)];}catch{return this['_decreaseWaiting'](),Promise[_0x4f9017(0x74)](new Error(_0x49c411[_0x4f9017(0x2df)]));}return new Promise((_0xb74059,_0x21dfb4)=>{const _0x594b66=_0x4f9017,_0x43318a=new FileReader();_0x43318a[_0x594b66(0x106)](_0x5e1193),_0x43318a[_0x594b66(0x351)]=_0x39f980=>{const _0x5a4da=_0x594b66;var _0x1f7977;const _0x42e650=(_0x1f7977=_0x39f980[_0x5a4da(0x1d6)])==null?void 0x0:_0x1f7977[_0x5a4da(0x105)];if(_0x42e650==null){this[_0x5a4da(0x34c)](),_0x21dfb4(new Error(_0x49c411[_0x5a4da(0x2df)]));return;}const _0x5482e4=_0x38eaa3[_0x5a4da(0x31a)](0x6);_0xb74059({'imageId':_0x5482e4,'imageSourceType':_0x3669a1[_0x5a4da(0x30f)],'source':_0x3c431b,'base64Cache':_0x42e650,'status':_0x49c411[_0x5a4da(0x2b9)]}),this[_0x5a4da(0x34c)]();};});}[_0x27ba00(0xdd)](){const _0x10fbcf=_0x27ba00;var _0x19eb42,_0xc72136;const _0x59c572=this[_0x10fbcf(0x19e)][_0x10fbcf(0x3c6)](Vo),_0x3ded62=this[_0x10fbcf(0x19e)][_0x10fbcf(0x3c6)](L);return(_0xc72136=(_0x19eb42=_0x3ded62==null?void 0x0:_0x3ded62['uploadFileServerUrl'])!=null?_0x19eb42:_0x59c572)!=null?_0xc72136:Fo;}[_0x27ba00(0x6e)](){const _0xefa5ab=_0x27ba00;var _0x2677fe,_0x484234;const _0x5c1770=this['_configService'][_0xefa5ab(0x3c6)](Wo),_0x4d7792=this[_0xefa5ab(0x19e)][_0xefa5ab(0x3c6)](L);return(_0x484234=(_0x2677fe=_0x4d7792==null?void 0x0:_0x4d7792[_0xefa5ab(0xa2)])!=null?_0x2677fe:_0x5c1770)!=null?_0x484234:Go;}[_0x27ba00(0x1c2)](){const _0x2f0b7d=_0x27ba00;var _0x4b75bd;const _0x805400=this[_0x2f0b7d(0x19e)]['getConfig'](L);return(_0x4b75bd=_0x805400==null?void 0x0:_0x805400['downloadEndpointUrl'])!=null?_0x4b75bd:location['origin'];}[_0x27ba00(0x2e8)](_0x37c171,_0x231665){const _0x64a23c=_0x27ba00;return _0x37c171['replace'](_0x64a23c(0x24c),_0x231665);}[_0x27ba00(0x34c)](){const _0x280124=_0x27ba00;this[_0x280124(0x35f)]-=0x1,this[_0x280124(0x251)]['next'](this['_waitCount']);}};Ut=Ho([It(0x0,_0x27d762(_0x3fd702)),It(0x1,_0xeb1b98),It(0x2,_0x27d762(_0x4a4945))],Ut);var Yo=Object[_0x27ba00(0x198)],Ko=Object[_0x27ba00(0x280)],Xo=(_0x11f431,_0x4d67a8,_0x539eaa,_0x30c2c5)=>{const _0x499064=_0x27ba00;for(var _0x52f500=_0x30c2c5>0x1?void 0x0:_0x30c2c5?Ko(_0x4d67a8,_0x539eaa):_0x4d67a8,_0x3b518d=_0x11f431[_0x499064(0x117)]-0x1,_0x14f630;_0x3b518d>=0x0;_0x3b518d--)(_0x14f630=_0x11f431[_0x3b518d])&&(_0x52f500=(_0x30c2c5?_0x14f630(_0x4d67a8,_0x539eaa,_0x52f500):_0x14f630(_0x52f500))||_0x52f500);return _0x30c2c5&&_0x52f500&&Yo(_0x4d67a8,_0x539eaa,_0x52f500),_0x52f500;},Pe=(_0x2bedcc,_0x379352)=>(_0x16311e,_0x319446)=>_0x379352(_0x16311e,_0x319446,_0x2bedcc);let Ke=class extends _0x504ec7{constructor(_0x547205,_0x2941dd,_0x2e237e,_0x3e1545,_0x15985f){const _0x2b2de8=_0x27ba00;super(),this[_0x2b2de8(0x2a6)]=_0x547205,this[_0x2b2de8(0xe3)]=_0x2941dd,this['_permissionService']=_0x2e237e,this[_0x2b2de8(0x26d)]=_0x3e1545,this['_localeService']=_0x15985f,this[_0x2b2de8(0x10a)](),this[_0x2b2de8(0x382)]();}[_0x27ba00(0x382)](){const _0x41deb6=_0x27ba00,_0x177b6e=async _0x5d006e=>{const _0x3d935f=_0x1a62;(await this[_0x3d935f(0x26d)][_0x3d935f(0x223)](_0x5d006e))[_0x3d935f(0x359)][_0x3d935f(0x31c)](_0x2e3311(_0x1782d0=>_0x1782d0[_0x3d935f(0xc3)]===_0x6fa194['SHOULD_CLOSE_CONN']),_0x541db9(this[_0x3d935f(0x132)]))[_0x3d935f(0x3c1)](_0x259c0e=>{const _0x2e56cc=_0x3d935f,_0x72cec2=_0x259c0e,{reason:_0x4448df}=_0x72cec2['data'];this[_0x2e56cc(0x2a6)][_0x2e56cc(0x1dd)](_0x17da32)['show']({'type':_0x104514[_0x2e56cc(0x27a)],'content':this[_0x2e56cc(0x12e)]['t'](_0x2e56cc(0x6a))+'('+_0x4448df+')'}),this[_0x2e56cc(0xa4)]['updatePermissionPoint'](new _0x474cf8(_0x5d006e)['id'],!0x1),this['_collaborationSessionService'][_0x2e56cc(0x23e)](_0x5d006e);});};_0x4c28c6(this['_univerInstanceService'][_0x41deb6(0x1e6)](_0x28cb79['UNIVER_SHEET']),this[_0x41deb6(0xe3)][_0x41deb6(0x1e6)](_0x28cb79[_0x41deb6(0x2e3)]))[_0x41deb6(0x31c)](_0x42ddbb(_0x2a56c=>_0x2a56c[_0x41deb6(0x242)]()),_0x2e3311(_0x45b8dc=>!_0x3682dd(_0x45b8dc)),_0x541db9(this['dispose$']))[_0x41deb6(0x3c1)](_0xcaf9e0=>{_0x177b6e(_0xcaf9e0);});}[_0x27ba00(0x10a)](){const _0x93a5a6=_0x27ba00,_0x353e3c=async _0x458b13=>{const _0x147285=_0x1a62;(await this[_0x147285(0x26d)][_0x147285(0x223)](_0x458b13))[_0x147285(0x359)][_0x147285(0x31c)](_0x2e3311(_0x3596af=>_0x3596af[_0x147285(0xc3)]===_0x6fa194[_0x147285(0x3a7)]),_0x541db9(this[_0x147285(0x132)]))[_0x147285(0x3c1)](_0x39307d=>{const _0x3b03f1=_0x147285,_0x1627c6=_0x39307d,{objectId:_0x2cdd9f}=_0x1627c6['data'],_0x3d31d3=this[_0x3b03f1(0x2a6)][_0x3b03f1(0x1dd)](_0xfc27fa);_0x2cdd9f===_0x458b13?_0x3d31d3['initWorkbookPermissionChange'](_0x458b13):_0x3d31d3[_0x3b03f1(0x225)](_0x458b13,_0x2cdd9f);});};_0x4c28c6(this[_0x93a5a6(0xe3)][_0x93a5a6(0x1e6)](_0x28cb79[_0x93a5a6(0xdf)]),this['_univerInstanceService'][_0x93a5a6(0x1e6)](_0x28cb79[_0x93a5a6(0x2e3)]))[_0x93a5a6(0x31c)](_0x42ddbb(_0x3b49cc=>_0x3b49cc[_0x93a5a6(0x242)]()),_0x2e3311(_0x250240=>!_0x3682dd(_0x250240)),_0x541db9(this[_0x93a5a6(0x132)]))[_0x93a5a6(0x3c1)](_0x113213=>{_0x353e3c(_0x113213);});}};Ke=Xo([_0x43e6ff(_0x2baed3[_0x27ba00(0x324)],Ke),Pe(0x0,_0x27d762(_0x2a6c13)),Pe(0x1,_0x4a4945),Pe(0x2,_0xdc2a7e),Pe(0x3,_0x27d762(ce)),Pe(0x4,_0x27d762(_0x5d963b))],Ke);var Jo=Object[_0x27ba00(0x198)],qo=Object[_0x27ba00(0x280)],zo=(_0x41e9b7,_0x29c6f7,_0x37048d,_0x22056f)=>{for(var _0x51d53d=_0x22056f>0x1?void 0x0:_0x22056f?qo(_0x29c6f7,_0x37048d):_0x29c6f7,_0x425fd0=_0x41e9b7['length']-0x1,_0x251df1;_0x425fd0>=0x0;_0x425fd0--)(_0x251df1=_0x41e9b7[_0x425fd0])&&(_0x51d53d=(_0x22056f?_0x251df1(_0x29c6f7,_0x37048d,_0x51d53d):_0x251df1(_0x51d53d))||_0x51d53d);return _0x22056f&&_0x51d53d&&Jo(_0x29c6f7,_0x37048d,_0x51d53d),_0x51d53d;},Ss=(_0x427912,_0x49eb2a)=>(_0x33775c,_0x4e33d5)=>_0x49eb2a(_0x33775c,_0x4e33d5,_0x427912);let Mt=class{constructor(_0x25f145,_0x3e8589){const _0x214d5f=_0x27ba00;this[_0x214d5f(0x19e)]=_0x25f145,this[_0x214d5f(0xe4)]=_0x3e8589;}async[_0x27ba00(0x147)](_0x5140cf,_0x76494e){const _0x117d75=_0x27ba00;var _0x312e6e;const {unitID:_0x22a5a2,type:_0x21cb61,revision:_0x1ac9a4=0x0}=_0x76494e,_0x146b09=this['_getSnapshotAPIPrefix']()+'/'+_0x21cb61+'/unit/'+_0x22a5a2+_0x117d75(0x2db)+_0x1ac9a4,_0x34f373=(await this[_0x117d75(0xe4)][_0x117d75(0x1dd)](_0x146b09))[_0x117d75(0x109)],_0x2e8240=(_0x312e6e=_0x34f373[_0x117d75(0x37a)])==null?void 0x0:_0x312e6e[_0x117d75(0x68)];if(_0x2e8240){const _0x1bfa41=_0x2e8240==null?void 0x0:_0x2e8240[_0x117d75(0x3b8)],_0x12401d=_0x55dc89[_0x117d75(0x217)](_0x21fcd3(_0x1bfa41));_0x2e8240['originalMeta']=_0x12401d,Object[_0x117d75(0x37d)](_0x2e8240[_0x117d75(0x2ac)])[_0x117d75(0x392)](([,_0x10591d])=>{const _0x3b4ea6=_0x117d75,_0x371cf2=_0x10591d[_0x3b4ea6(0x3b8)],_0x45360f=_0x55dc89[_0x3b4ea6(0x217)](_0x21fcd3(_0x371cf2));_0x10591d[_0x3b4ea6(0x3b8)]=_0x45360f;});}return _0x34f373;}async[_0x27ba00(0x367)](_0xf45486,_0x4ba1f4){const _0x3dfe91=_0x27ba00,{unitID:_0x4fe09f,type:_0x145a63,blockID:_0x52ea49}=_0x4ba1f4,_0x420a5a=this['_getAPIPrefix']()+'/'+_0x145a63+_0x3dfe91(0x3da)+_0x4fe09f+_0x3dfe91(0x229)+_0x52ea49;return(await this[_0x3dfe91(0xe4)][_0x3dfe91(0x1dd)](_0x420a5a))['body'];}async[_0x27ba00(0x284)](_0x26b855,_0x52b371){const _0x28802c=_0x27ba00,{unitID:_0xf8b5d,type:_0x111f33,blockID:_0x35eaea}=_0x52b371,_0x496705=this[_0x28802c(0x172)]()+_0x28802c(0x229)+_0x111f33+_0x28802c(0x3da)+_0xf8b5d+_0x28802c(0x229)+_0x35eaea;return(await this[_0x28802c(0xe4)][_0x28802c(0x1dd)](_0x496705))[_0x28802c(0x109)];}async[_0x27ba00(0x1c0)](_0x625ee2,_0x4bae29){const _0x3e51e5=_0x27ba00,{unitID:_0x4a6344,type:_0x179334,from:_0x7e7782,to:_0x687af7}=_0x4bae29,_0x4211ad=this[_0x3e51e5(0x172)]()+'/'+_0x179334+_0x3e51e5(0x3da)+_0x4a6344+_0x3e51e5(0x348)+_0x7e7782+_0x3e51e5(0x2fd)+_0x687af7;return(await this[_0x3e51e5(0xe4)][_0x3e51e5(0x1dd)](_0x4211ad))['body'];}['_getSnapshotAPIPrefix'](){const _0x38c91d=_0x27ba00;var _0x41c545;return(_0x41c545=this[_0x38c91d(0x19e)]['getConfig'](gn))!=null?_0x41c545:this[_0x38c91d(0x172)]();}['_getAPIPrefix'](){const _0xbd96d3=_0x27ba00;var _0x951456,_0x3d0166;const _0x4dd7b5=this[_0xbd96d3(0x19e)][_0xbd96d3(0x3c6)](fn),_0x43de89=this['_configService'][_0xbd96d3(0x3c6)](L);return(_0x3d0166=(_0x951456=_0x43de89==null?void 0x0:_0x43de89[_0xbd96d3(0x325)])!=null?_0x951456:_0x4dd7b5)!=null?_0x3d0166:mn;}async[_0x27ba00(0x2fe)](_0x3533a3,_0x8da9c4){const _0x4e8b39=_0x27ba00,_0xf2cbc5='/universer-api/snapshot/'+_0x8da9c4[_0x4e8b39(0xd5)]+_0x4e8b39(0x3da)+_0x8da9c4[_0x4e8b39(0x12c)]+_0x4e8b39(0x1e9);return(await this[_0x4e8b39(0xe4)]['get'](_0xf2cbc5,{'params':{'resourceId':JSON[_0x4e8b39(0xea)](_0x8da9c4[_0x4e8b39(0x15b)])}}))[_0x4e8b39(0x109)];}['saveSnapshot'](){const _0x283969=_0x27ba00;throw new Error(_0x283969(0x340));}[_0x27ba00(0x381)](){const _0x18865c=_0x27ba00;throw new Error(_0x18865c(0x340));}[_0x27ba00(0x3a3)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x27ba00(0x70)](){const _0x92b15e=_0x27ba00;throw new Error(_0x92b15e(0x340));}};Mt=zo([Ss(0x0,_0xeb1b98),Ss(0x1,_0x27d762(_0x3fd702))],Mt);var Zo=Object[_0x27ba00(0x198)],Qo=Object[_0x27ba00(0x280)],ea=(_0x4a2ed2,_0x3258ae,_0x303612,_0x45db3d)=>{for(var _0x5a81cb=_0x45db3d>0x1?void 0x0:_0x45db3d?Qo(_0x3258ae,_0x303612):_0x3258ae,_0x582f88=_0x4a2ed2['length']-0x1,_0x3f2bfc;_0x582f88>=0x0;_0x582f88--)(_0x3f2bfc=_0x4a2ed2[_0x582f88])&&(_0x5a81cb=(_0x45db3d?_0x3f2bfc(_0x3258ae,_0x303612,_0x5a81cb):_0x3f2bfc(_0x5a81cb))||_0x5a81cb);return _0x45db3d&&_0x5a81cb&&Zo(_0x3258ae,_0x303612,_0x5a81cb),_0x5a81cb;},ye=(_0x22efca,_0x1e24fc)=>(_0xa28aa7,_0x17e035)=>_0x1e24fc(_0xa28aa7,_0x17e035,_0x22efca);let At=class extends _0x231523{constructor(_0x43ba28,_0x5f44e9,_0x1e51eb,_0x183083,_0x4ca8d9){const _0x4aac64=_0x27ba00;super(_0x43ba28,_0x5f44e9,_0x1e51eb),this[_0x4aac64(0x32a)]=_0x183083,this['_logService']=_0x4ca8d9;}[_0x27ba00(0x100)](_0x45574c,_0x4e3ddc){const _0x49fc17=_0x27ba00,_0x57ca32=this[_0x49fc17(0x2d7)](_0x45574c);if(_0x57ca32)try{const _0x82ccb=this[_0x49fc17(0x94)](_0x57ca32,_0x4e3ddc);this[_0x49fc17(0x97)](_0x45574c,_0x82ccb);}catch(_0x3b924a){this[_0x49fc17(0xd6)][_0x49fc17(0x1e5)]('[CollaborationUndoRedoService]',_0x3b924a),this['_clearUndo'](_0x45574c);}const _0x3e493c=this[_0x49fc17(0x7f)](_0x45574c);if(_0x3e493c)try{const _0x1e3715=this['_transformStack'](_0x3e493c,_0x4e3ddc);this[_0x49fc17(0x15e)](_0x45574c,_0x1e3715);}catch(_0x5ad456){this['_logService'][_0x49fc17(0x1e5)](_0x5ad456),this[_0x49fc17(0x13f)](_0x45574c);}}[_0x27ba00(0x2bd)](_0x1675f2){const _0x159de6=this['_getUndoStack'](_0x1675f2);_0x159de6&&(_0x159de6['length']=0x0,this['_updateStatus']());}['_clearRedo'](_0x5ed231){const _0x1d0a77=_0x27ba00,_0x472226=this[_0x1d0a77(0x7f)](_0x5ed231);_0x472226&&(_0x472226[_0x1d0a77(0x117)]=0x0,this[_0x1d0a77(0x20d)]());}[_0x27ba00(0x97)](_0x1c2ee,_0x5cfe29){const _0x3d3f78=_0x27ba00;this[_0x3d3f78(0x31d)][_0x3d3f78(0x371)](_0x1c2ee,_0x5cfe29),this['_updateStatus']();}[_0x27ba00(0x15e)](_0x5630a0,_0x5d08a9){const _0x186639=_0x27ba00;this[_0x186639(0x28e)][_0x186639(0x371)](_0x5630a0,_0x5d08a9),this[_0x186639(0x20d)]();}[_0x27ba00(0x94)](_0x28c13d,_0x44c034){const _0x4b60a8=_0x27ba00,_0x3e098a=[];let _0x643dd9=_0x44c034,_0x4c4de5=_0x44c034;for(let _0x2111e4=_0x28c13d[_0x4b60a8(0x117)]-0x1;_0x2111e4>=0x0;_0x2111e4--){const {unitID:_0x20596a,undoMutations:_0x4fdc1c,redoMutations:_0x1ed6d4}=_0x28c13d[_0x2111e4],_0x64a327=this['_transformService'][_0x4b60a8(0x3b9)](_0x643dd9,_0x4fdc1c),_0x43f126=this[_0x4b60a8(0x32a)][_0x4b60a8(0x3b9)](_0x4c4de5,_0x1ed6d4);if(_0x539600(_0x64a327)||_0x539600(_0x43f126)){this[_0x4b60a8(0xd6)][_0x4b60a8(0x1e5)](_0x4b60a8(0x337),_0x4b60a8(0x82),_0x64a327,_0x43f126);break;}_0x643dd9=_0x64a327[_0x4b60a8(0x379)],_0x4c4de5=_0x43f126[_0x4b60a8(0x379)],_0x3e098a[_0x4b60a8(0x2ec)]({'unitID':_0x20596a,'undoMutations':_0x64a327[_0x4b60a8(0x2c1)],'redoMutations':_0x43f126[_0x4b60a8(0x2c1)]});}return _0x3e098a[_0x4b60a8(0x3bf)]();}};At=ea([ye(0x0,_0x4a4945),ye(0x1,_0xf80f3b),ye(0x2,_0x3eb638),ye(0x3,_0x29f88d),ye(0x4,_0x1dd153)],At);class ta extends _0x504ec7{constructor(){const _0x5a1084=_0x27ba00;super(),l(this,_0x5a1084(0x38c)),this[_0x5a1084(0x38c)]=_0x1d5cc2(window,_0x5a1084(0x336))[_0x5a1084(0x31c)](_0x350758(this[_0x5a1084(0x132)]),_0x416754(0x1),_0x5a384c(void 0x0));}['setParam'](_0xbebcee,_0x2caa81,_0x4b612e=!0x1){const _0x4a7e2e=_0x27ba00,_0x317b0b=new URL(window[_0x4a7e2e(0x1fb)][_0x4a7e2e(0x1d8)]);_0x317b0b[_0x4a7e2e(0x35a)][_0x4a7e2e(0x371)](_0xbebcee,_0x2caa81),_0x4b612e?window['history']['replaceState']('','',_0x317b0b['toString']()):window['history'][_0x4a7e2e(0x29a)]('','',_0x317b0b['toString']());}['removeParam'](_0x3b08db,_0x2e47b1=!0x1){const _0x14922e=_0x27ba00,_0x2fbc21=new URL(window[_0x14922e(0x1fb)]['href']);_0x2fbc21['searchParams']['delete'](_0x3b08db),_0x2e47b1?window['history'][_0x14922e(0x1de)]('','',_0x2fbc21[_0x14922e(0x344)]()):window[_0x14922e(0x28f)][_0x14922e(0x29a)]('','',_0x2fbc21[_0x14922e(0x344)]());}[_0x27ba00(0x3ab)](_0x2eee1e){const _0x10cb82=_0x27ba00;var _0x122efa;return(_0x122efa=new URL(window[_0x10cb82(0x1fb)]['href'])[_0x10cb82(0x35a)][_0x10cb82(0x1dd)](_0x2eee1e))!=null?_0x122efa:void 0x0;}}var Gs=Object[_0x27ba00(0x198)],sa=Object[_0x27ba00(0x280)],ia=(_0xd036bb,_0x17d7d2,_0x4922e6)=>_0x17d7d2 in _0xd036bb?Gs(_0xd036bb,_0x17d7d2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4922e6}):_0xd036bb[_0x17d7d2]=_0x4922e6,na=(_0x2cab64,_0x3a00b1,_0x2ad88c,_0x45d045)=>{const _0x4fe304=_0x27ba00;for(var _0x2bcb1b=_0x45d045>0x1?void 0x0:_0x45d045?sa(_0x3a00b1,_0x2ad88c):_0x3a00b1,_0x4c123b=_0x2cab64[_0x4fe304(0x117)]-0x1,_0x4f7312;_0x4c123b>=0x0;_0x4c123b--)(_0x4f7312=_0x2cab64[_0x4c123b])&&(_0x2bcb1b=(_0x45d045?_0x4f7312(_0x3a00b1,_0x2ad88c,_0x2bcb1b):_0x4f7312(_0x2bcb1b))||_0x2bcb1b);return _0x45d045&&_0x2bcb1b&&Gs(_0x3a00b1,_0x2ad88c,_0x2bcb1b),_0x2bcb1b;},Ve=(_0x1a7bb0,_0x4b7427)=>(_0x404339,_0x9ba255)=>_0x4b7427(_0x404339,_0x9ba255,_0x1a7bb0),ra=(_0x362abf,_0x429bb4,_0x472a70)=>ia(_0x362abf,_0x429bb4+'',_0x472a70);const oa=_0x27ba00(0x3a0);let Lt=class extends _0x2b5559{constructor(_0x4278b5=Nn,_0x56166f,_0x598317,_0x268ad8,_0x231650){const _0x4793db=_0x27ba00;super(),this[_0x4793db(0x34a)]=_0x4278b5,this[_0x4793db(0xd6)]=_0x56166f,this[_0x4793db(0x2f6)]=_0x598317,this[_0x4793db(0x2a6)]=_0x268ad8,this[_0x4793db(0x19e)]=_0x231650;const {..._0x28a7b5}=this[_0x4793db(0x34a)];this[_0x4793db(0x19e)][_0x4793db(0x29d)](L,_0x28a7b5);}[_0x27ba00(0x27f)](){const _0x4f5d67=_0x27ba00;this[_0x4f5d67(0x174)]();}['onRendered'](){const _0x41a22e=_0x27ba00;this[_0x41a22e(0x2ff)]();}[_0x27ba00(0x174)](){const _0x343c97=_0x27ba00;var _0x2fad8a,_0x59cd32,_0x54ea6d,_0x43e5ba;this['_injector'][_0x343c97(0x262)](_0x3b566c)&&this[_0x343c97(0xd6)][_0x343c97(0x1e5)](_0x343c97(0x191),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x506030=[[_0x3b566c,{'useClass':At}],[ce],[Gt],[_0x3fd702],[Ws,{'useClass':ta}],[ae],[D],[_0x2e30ea],[Qe],[et],[Ze],[Ft],[st],[it],[js],[Ke],[$s,{'useClass':(_0x59cd32=(_0x2fad8a=this['_config'])==null?void 0x0:_0x2fad8a[_0x343c97(0x16e)])!=null?_0x59cd32:Tt}],[_0xcdd277,{'useClass':_0x1a818b}],[_0x2638ed,{'useClass':Mt}],[_0x295788,{'useClass':Nt}],[_0xdaa1d3,{'useClass':Ut}],[Ae],[Ge],[Ue],[Ye],[ge]];(_0x54ea6d=this[_0x343c97(0x34a)])!=null&&_0x54ea6d[_0x343c97(0x312)]&&_0x506030[_0x343c97(0x2ec)]([nt,{'useClass':or}]),_0x506030=_0x40b69d(_0x506030,(_0x43e5ba=this[_0x343c97(0x34a)])==null?void 0x0:_0x43e5ba[_0x343c97(0x258)]),_0x506030['forEach'](_0x4a3843=>this['_injector'][_0x343c97(0x30d)](_0x4a3843)),this['_initModules']();}[_0x27ba00(0x2ff)](){const _0x518299=_0x27ba00;this[_0x518299(0x169)](this[_0x518299(0x2f6)]['registerRenderModule'](_0x28cb79['UNIVER_DOC'],[We])),this[_0x518299(0x169)](this[_0x518299(0x2f6)][_0x518299(0x26a)](_0x28cb79[_0x518299(0xdf)],[yt]));}[_0x27ba00(0x1a0)](){const _0x9d51bb=_0x27ba00;var _0xae2ae5,_0x4a733b;this['_injector'][_0x9d51bb(0x1dd)](_0x3fd702)[_0x9d51bb(0x2e2)]({'priority':0x14,'interceptor':_0x18dec9({'maxParallel':0x6})}),this[_0x9d51bb(0x2a6)][_0x9d51bb(0x1dd)](it),(_0xae2ae5=this[_0x9d51bb(0x34a)])!=null&&_0xae2ae5[_0x9d51bb(0xf6)]||this['_injector'][_0x9d51bb(0x1dd)](D)[_0x9d51bb(0x2b5)](),(_0x4a733b=this[_0x9d51bb(0x34a)])!=null&&_0x4a733b['enableAuthServer']&&this[_0x9d51bb(0x2a6)][_0x9d51bb(0x1dd)](st),this['_injector'][_0x9d51bb(0x1dd)](Ae),this['_injector'][_0x9d51bb(0x262)](Ue)&&this[_0x9d51bb(0x2a6)][_0x9d51bb(0x1dd)](Ue);}};ra(Lt,_0x27ba00(0x28a),oa),Lt=na([_0x954fb6(_0x15fcc2),Ve(0x1,_0x1dd153),Ve(0x2,_0x57cdea),Ve(0x3,_0x27d762(_0x2a6c13)),Ve(0x4,_0xeb1b98)],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 _0x27153b=_0x5b57;(function(_0x1395e8,_0x3c2c6e){const _0x382694=_0x5b57,_0x3b5d56=_0x1395e8();while(!![]){try{const _0x3249a0=parseInt(_0x382694(0x2ea))/0x1*(-parseInt(_0x382694(0x51f))/0x2)+-parseInt(_0x382694(0x1c7))/0x3+-parseInt(_0x382694(0x417))/0x4*(-parseInt(_0x382694(0x478))/0x5)+-parseInt(_0x382694(0x231))/0x6+parseInt(_0x382694(0x3be))/0x7+parseInt(_0x382694(0x3ff))/0x8+-parseInt(_0x382694(0x369))/0x9*(parseInt(_0x382694(0x22e))/0xa);if(_0x3249a0===_0x3c2c6e)break;else _0x3b5d56['push'](_0x3b5d56['shift']());}catch(_0x1e19fd){_0x3b5d56['push'](_0x3b5d56['shift']());}}}(_0x344c,0xa87dc));var Js=Object[_0x27153b(0x368)],qs=(_0x5de188,_0x15abe5,_0x8141fc)=>_0x15abe5 in _0x5de188?Js(_0x5de188,_0x15abe5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x8141fc}):_0x5de188[_0x15abe5]=_0x8141fc,l=(_0xc9cfb3,_0x146c80,_0x222f69)=>qs(_0xc9cfb3,typeof _0x146c80!=_0x27153b(0x514)?_0x146c80+'':_0x146c80,_0x222f69);import{createIdentifier as _0x1ab192,Inject as _0x5f357f,Disposable as _0x5c8ab1,DisposableCollection as _0x2c9103,toDisposable as _0x6a3db3,IConfigService as _0x5723c7,ILogService as _0x46022f,UserManagerService as _0x14a0b1,UniverInstanceType as _0x25b157,IUniverInstanceService as _0x7019b6,LocaleService as _0x1015bf,Optional as _0x57a0c7,RxDisposable as _0x33a34d,Injector as _0x45059e,Tools as _0x4ffcf9,ILocalStorageService as _0x14c0c3,ICommandService as _0x294dc9,JSONX as _0x2005ce,CommandType as _0x2b2e3e,IPermissionService as _0x23c798,IUndoRedoService as _0x298901,sequenceExecute as _0x47656c,debounce as _0x29f4d0,Rectangle as _0x46a5d6,COLORS as _0x2caf22,ColorKit as _0x3842e1,ThemeService as _0x58e40e,fromEventSubject as _0x34f175,useDependency as _0x15902b,connectInjector as _0x400af4,Workbook as _0x2c51fb,isInternalEditorID as _0xc6215e,LocalUndoRedoService as _0x14eb3f,IContextService as _0x38521c,DependentOn as _0x5733f9,Plugin as _0x2212a9,IAuthzIoService as _0x3f9db9,mergeOverrideWithDependencies as _0x1460aa}from'@univerjs/core';import{Subject as _0x351358,merge as _0x5cd6ce,takeUntil as _0x20928f,BehaviorSubject as _0x5c80e6,distinctUntilChanged as _0xea844d,fromEvent as _0x1202a7,map as _0x2cf5b7,shareReplay as _0x246087,take as _0x4a8f4c,of as _0x573529,debounceTime as _0x33b386,filter as _0x40c2f4,switchMap as _0x435f4a,combineLatest as _0x336425,concatMap as _0x25d973,mapTo as _0x2c3761}from'rxjs';import{map as _0x205ee2,take as _0x589cc0,filter as _0x5cb558,delay as _0x244df4,throttleTime as _0x22f9fe,takeUntil as _0x2d4694,switchMap as _0x5a5bf6}from'rxjs/operators';import{MessageType as _0xcc72d3,Tooltip as _0x5cc8aa}from'@univerjs/design';import{IBeforeCloseService as _0x4c7beb,IMessageService as _0x2ae10a,INotificationService as _0x1bec3e,useObservable as _0x57b4b4,BuiltInUIPart as _0x535b59,IUIPartsService as _0x5397fe}from'@univerjs/ui';import{HTTPService as _0x3378bf,WebSocketService as _0x2a42e5,MergeInterceptorFactory as _0xcbb98c,HTTPRequest as _0x48aceb,IHTTPImplementation as _0x17c8f3,XHRHTTPImplementation as _0x28ad9a,ThresholdInterceptorFactory as _0x50e245}from'@univerjs/network';function _0x5b57(_0x19504c,_0x3c1050){const _0x344c82=_0x344c();return _0x5b57=function(_0x5b57c2,_0x4ad6df){_0x5b57c2=_0x5b57c2-0x1ac;let _0x3d7ab5=_0x344c82[_0x5b57c2];return _0x3d7ab5;},_0x5b57(_0x19504c,_0x3c1050);}import{CollaborationEvent as _0x508ea5,parseChangesetToProtocol as _0x4fe909,ISnapshotServerService as _0x236384,isTransformMutationFailure as _0x280dd5,isTransformMutationsWithChangesetSuccess as _0x567165,ITransformService as _0x116203,RevisionService as _0x34bed5,mapDocumentTypeToUniverType as _0x19cf4b,isTransformChangesetsSuccess as _0x5372c3,CompressMutationService as _0x1ab79b,parseProtocolChangeset as _0x445498,SnapshotService as _0x4ef426,textEncoder as _0x355b6f,b64DecodeUnicode as _0x57ebe6,isTransformMutationsWithChangesetFailure as _0x1e7d70,UniverCollaborationPlugin as _0x3611a1}from'@univerjs-pro/collaboration';import{ITelemetryService as _0x521025}from'@univerjs/telemetry';import{DocSelectionManagerService as _0x5dd07,RichTextEditingMutation as _0x5f459a,SetTextSelectionsOperation as _0x1e21bf,DocSkeletonManagerService as _0x31979c}from'@univerjs/docs';import{DocIMEInputManagerService as _0x2ff0f7,DocStateChangeManagerService as _0x563bf3,NodePositionConvertToCursor as _0x436353,isValidRectRange as _0x5531e6,NodePositionConvertToRectRange as _0x31bcda,TEXT_RANGE_LAYER_INDEX as _0x3ec969,SetDocZoomRatioOperation as _0x3b3f08}from'@univerjs/docs-ui';import{SheetsSelectionsService as _0x1e6574,SetSelectionsOperation as _0x24e526,InsertSheetMutation as _0x33eb2d,EmptyMutation as _0x51d997,WorkbookEditablePermission as _0x38d08c,RefRangeService as _0x4d68e4,EffectRefRangId as _0x2dd003,handleIRemoveRow as _0x2ee89b,handleIRemoveCol as _0x49fd4b,handleMoveRange as _0x43bc37,handleInsertRow as _0xe0fa0e,handleInsertRangeMoveRight as _0x7cadf4,handleInsertRangeMoveDown as _0x25d58b,handleInsertCol as _0x5acd2c,handleDeleteRangeMoveUp as _0xe617c8,handleDeleteRangeMoveLeft as _0x431dc2,runRefRangeMutations as _0x1ab365,SetWorksheetActivateCommand as _0x3806c4}from'@univerjs/sheets';import{IRenderManagerService as _0x1873ab,Shape as _0x4fa793,Rect as _0x2729ef,getColor as _0x506170,RegularPolygon as _0x58e6e6,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x15f67b,Vector2 as _0x1deaa4}from'@univerjs/engine-render';import{ImageSourceType as _0xcfe4a0,ImageUploadStatusType as _0x5ed7f0,IImageIoService as _0x975ad5}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x2139cb,serializeRangeWithSheet as _0x2c5377}from'@univerjs/engine-formula';import{SheetSkeletonManagerService as _0x3c22e6,VIEWPORT_KEY as _0x597c99,getCoordByCell as _0x2f5404,getSheetObject as _0x3929d2,SheetPermissionInitController as _0x190f87}from'@univerjs/sheets-ui';import _0x40e8c9,{forwardRef as _0x131a85,useRef as _0x555c65,createElement as _0x294b49,useCallback as _0x2c0bdf}from'react';import _0x3d3972 from'clsx';import{IRemoteInstanceService as _0x4875f5}from'@univerjs/rpc';import{getAttachHeader as _0x117ea9}from'@univerjs-pro/license';const un='SNAPSHOT_SERVER_URL_KEY',dn=_0x27153b(0x399),fn=_0x27153b(0x4fb),Ra=_0x27153b(0x51e),mn=0x7d0,gn=_0x27153b(0x489),Sn='ws://127.0.0.1:8000/universer-api/comb/connect',pn=_0x27153b(0x35d),vn=0x7530,ys='HEARTBEAT_TIMEOUT',Ns=0x4e20,In=0x4e20,En=_0x27153b(0x517),Cn=0x3,bn=_0x27153b(0x2d3),Tn=0x3e8,Rn='COLLAB_SUBMIT_CHANGESET_URL',On=_0x27153b(0x24e),Dn=_0x27153b(0x1d4),wn='/universer-api/oidc/authpage';var Us=(_0x50c727=>(_0x50c727[_0x50c727['UNDEFINED']=0x0]='UNDEFINED',_0x50c727[_0x50c727['OK']=0x1]='OK',_0x50c727[_0x50c727[_0x27153b(0x32b)]=0x2]='INTERNAL_ERROR',_0x50c727[_0x50c727[_0x27153b(0x1ee)]=0x3]=_0x27153b(0x1ee),_0x50c727[_0x50c727[_0x27153b(0x4ef)]=0x4]=_0x27153b(0x4ef),_0x50c727[_0x50c727[_0x27153b(0x505)]=0x5]='UNAUTHENTICATED',_0x50c727[_0x50c727[_0x27153b(0x36d)]=0x6]=_0x27153b(0x36d),_0x50c727[_0x50c727[_0x27153b(0x4cf)]=0x7]=_0x27153b(0x4cf),_0x50c727[_0x50c727['TOO_MANY_REQUESTS']=0x8]='TOO_MANY_REQUESTS',_0x50c727[_0x50c727[_0x27153b(0x317)]=0x9]='COMPLETION_FINISHED',_0x50c727[_0x50c727['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x27153b(0x1bb),_0x50c727[_0x50c727[_0x27153b(0x1eb)]=0x1771]=_0x27153b(0x1eb),_0x50c727[_0x50c727[_0x27153b(0x4a4)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x50c727[_0x50c727[_0x27153b(0x1e6)]=0x1b59]=_0x27153b(0x1e6),_0x50c727[_0x50c727[_0x27153b(0x241)]=0x1b5a]=_0x27153b(0x241),_0x50c727[_0x50c727['APPLY_REVISION_CONFILICT']=0x1b5b]='APPLY_REVISION_CONFILICT',_0x50c727[_0x50c727[_0x27153b(0x294)]=0x1b5c]=_0x27153b(0x294),_0x50c727[_0x50c727[_0x27153b(0x4aa)]=0x1f41]=_0x27153b(0x4aa),_0x50c727[_0x50c727[_0x27153b(0x50a)]=0x2329]=_0x27153b(0x50a),_0x50c727[_0x50c727[_0x27153b(0x2c5)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x50c727[_0x50c727[_0x27153b(0x386)]=0x232b]=_0x27153b(0x386),_0x50c727[_0x50c727[_0x27153b(0x255)]=0x232c]=_0x27153b(0x255),_0x50c727[_0x50c727[_0x27153b(0x3b3)]=0x232d]=_0x27153b(0x3b3),_0x50c727[_0x50c727[_0x27153b(0x3bd)]=0x2711]=_0x27153b(0x3bd),_0x50c727[_0x50c727[_0x27153b(0x4e3)]=0x2712]=_0x27153b(0x4e3),_0x50c727[_0x50c727[_0x27153b(0x4d4)]=0x2713]=_0x27153b(0x4d4),_0x50c727[_0x50c727[_0x27153b(0x338)]=0x2714]=_0x27153b(0x338),_0x50c727[_0x50c727[_0x27153b(0x1b0)]=-0x1]=_0x27153b(0x1b0),_0x50c727))(Us||{}),H=(_0x28952b=>(_0x28952b[_0x28952b[_0x27153b(0x1c8)]=0x0]=_0x27153b(0x1c8),_0x28952b[_0x28952b[_0x27153b(0x411)]=0x1]='UNIVER_DOC',_0x28952b[_0x28952b['UNIVER_SHEET']=0x2]=_0x27153b(0x4e9),_0x28952b[_0x28952b[_0x27153b(0x1fb)]=0x3]=_0x27153b(0x1fb),_0x28952b[_0x28952b[_0x27153b(0x441)]=0x4]=_0x27153b(0x441),_0x28952b[_0x28952b['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x28952b))(H||{}),I=(_0x511a31=>(_0x511a31[_0x511a31[_0x27153b(0x21c)]=0x0]='UNKNOWN_CMD',_0x511a31[_0x511a31[_0x27153b(0x416)]=0x1]='HELLO',_0x511a31[_0x511a31[_0x27153b(0x494)]=0x2]=_0x27153b(0x494),_0x511a31[_0x511a31[_0x27153b(0x3cf)]=0x3]=_0x27153b(0x3cf),_0x511a31[_0x511a31[_0x27153b(0x4f5)]=0x4]=_0x27153b(0x4f5),_0x511a31[_0x511a31[_0x27153b(0x2a4)]=0x5]=_0x27153b(0x2a4),_0x511a31[_0x511a31[_0x27153b(0x1cf)]=0x6]=_0x27153b(0x1cf),_0x511a31[_0x511a31[_0x27153b(0x1b0)]=-0x1]=_0x27153b(0x1b0),_0x511a31))(I||{}),kt=(_0x78c726=>(_0x78c726[_0x78c726['UNKNOWN_CODE']=0x0]=_0x27153b(0x3fb),_0x78c726[_0x78c726['OK']=0x1]='OK',_0x78c726[_0x78c726[_0x27153b(0x2c2)]=0x2]=_0x27153b(0x2c2),_0x78c726[_0x78c726[_0x27153b(0x1b0)]=-0x1]=_0x27153b(0x1b0),_0x78c726))(kt||{}),Ms=(_0xa33f96=>(_0xa33f96[_0xa33f96['Undefined']=0x0]=_0x27153b(0x2cc),_0xa33f96[_0xa33f96['HttpImport']=0x1]=_0x27153b(0x25b),_0xa33f96[_0xa33f96[_0x27153b(0x3bb)]=0x2]='HttpExport',_0xa33f96[_0xa33f96[_0x27153b(0x47d)]=0x3]=_0x27153b(0x47d),_0xa33f96[_0xa33f96[_0x27153b(0x305)]=0x4]=_0x27153b(0x305),_0xa33f96[_0xa33f96[_0x27153b(0x1b0)]=-0x1]=_0x27153b(0x1b0),_0xa33f96))(Ms||{});const L=_0x27153b(0x372),Pn={};function yn(_0x598ed0){const _0x203d32=_0x27153b;var _0x3deb74,_0x4566a2,_0x53c04c,_0x48106c;const _0x5d627c=_0x598ed0[_0x203d32(0x436)],_0x5ec67b=JSON[_0x203d32(0x40b)](_0x5d627c);switch(_0x5ec67b['cmd']){case I['HEARTBEAT']:case I[_0x203d32(0x416)]:{const _0x2d1c77=_0x5ec67b[_0x203d32(0x32d)];return{..._0x5ec67b,'data':_0x2d1c77,'cmd':_0x5ec67b['cmd']};}case I[_0x203d32(0x494)]:{const _0x3a3846=_0x5ec67b[_0x203d32(0x262)];return{..._0x5ec67b,'data':_0x3a3846,'cmd':_0x5ec67b[_0x203d32(0x254)]};}case I['RECV']:{const _0x17a095=_0x5ec67b[_0x203d32(0x465)];switch(_0x17a095['eventID']){case _0x508ea5['PERMISSION_REJ']:return{..._0x5ec67b,'data':{..._0x17a095,'data':(_0x3deb74=_0x17a095[_0x203d32(0x353)])==null?void 0x0:_0x3deb74['cs']},'cmd':_0x5ec67b[_0x203d32(0x254)]};case _0x508ea5[_0x203d32(0x2c7)]:return{..._0x5ec67b,'data':{..._0x17a095,'data':(_0x4566a2=_0x17a095[_0x203d32(0x3c3)])==null?void 0x0:_0x4566a2['cs']},'cmd':_0x5ec67b['cmd']};case _0x508ea5['NEW_CHANGESETS']:return{..._0x5ec67b,'data':{..._0x17a095,'data':(_0x53c04c=_0x17a095[_0x203d32(0x2e4)])==null?void 0x0:_0x53c04c['cs']},'cmd':_0x5ec67b['cmd']};case _0x508ea5[_0x203d32(0x240)]:return{..._0x5ec67b,'data':{..._0x17a095,'data':(_0x48106c=_0x17a095[_0x203d32(0x1d9)])==null?void 0x0:_0x48106c['cs']},'cmd':_0x5ec67b[_0x203d32(0x254)]};case _0x508ea5[_0x203d32(0x360)]:return{..._0x5ec67b,'data':{..._0x17a095,'data':_0x17a095[_0x203d32(0x4f6)]},'cmd':_0x5ec67b[_0x203d32(0x254)]};case _0x508ea5[_0x203d32(0x396)]:return{..._0x5ec67b,'data':{..._0x17a095,'data':_0x17a095[_0x203d32(0x316)]},'cmd':_0x5ec67b[_0x203d32(0x254)]};case _0x508ea5['USERS_LEAVE']:return{..._0x5ec67b,'data':{..._0x17a095,'data':_0x17a095['leaveEvent']},'cmd':_0x5ec67b[_0x203d32(0x254)]};case _0x508ea5[_0x203d32(0x4f2)]:return{..._0x5ec67b,'data':{..._0x17a095,'data':_0x17a095[_0x203d32(0x1fa)]},'cmd':_0x5ec67b[_0x203d32(0x254)]};case _0x508ea5['LIVESHARE_FETCH_OPERATIONS']:case _0x508ea5[_0x203d32(0x203)]:return{..._0x5ec67b,'data':{..._0x17a095,'data':_0x17a095[_0x203d32(0x2e8)]},'cmd':_0x5ec67b[_0x203d32(0x254)]};case _0x508ea5['LIVESHARE_TERMINATE']:return{..._0x5ec67b,'data':{..._0x17a095,'data':_0x17a095['liveShareNewHost']},'cmd':_0x5ec67b['cmd']};case _0x508ea5['MSG_FOR_ERROR']:return{..._0x5ec67b,'data':_0x17a095,'cmd':_0x5ec67b['cmd']};case _0x508ea5[_0x203d32(0x276)]:return{..._0x5ec67b,'data':{..._0x17a095,'data':_0x17a095[_0x203d32(0x3a6)]},'cmd':_0x5ec67b[_0x203d32(0x254)]};case _0x508ea5[_0x203d32(0x397)]:return{..._0x5ec67b,'data':{..._0x17a095,'data':_0x17a095[_0x203d32(0x4af)]},'cmd':_0x5ec67b[_0x203d32(0x254)]};case _0x508ea5[_0x203d32(0x2ee)]:return{..._0x5ec67b,'data':{..._0x17a095,'data':_0x17a095[_0x203d32(0x36a)]},'cmd':_0x5ec67b[_0x203d32(0x254)]};default:return _0x5ec67b;}}default:return _0x5ec67b;}}function Nn(_0x5c5f60){const _0xd92cbe=_0x27153b;switch(_0x5c5f60[_0xd92cbe(0x254)]){case I['HEARTBEAT']:case I[_0xd92cbe(0x416)]:return JSON['stringify']({'cmd':_0x5c5f60['cmd'],'routeKey':_0x5c5f60[_0xd92cbe(0x3c2)]});case I[_0xd92cbe(0x4f5)]:{let _0x3a2dfd;switch(_0x5c5f60[_0xd92cbe(0x436)][_0xd92cbe(0x247)]){case _0x508ea5['UPDATE_CURSOR']:{_0x3a2dfd={'eventID':_0x508ea5[_0xd92cbe(0x360)],'updateCursorEvent':_0x5c5f60[_0xd92cbe(0x436)]['data']};break;}case _0x508ea5[_0xd92cbe(0x282)]:{_0x3a2dfd={'eventID':_0x508ea5['USERS_LEAVE'],'leaveEvent':_0x5c5f60['data'][_0xd92cbe(0x436)]};break;}case _0x508ea5[_0xd92cbe(0x396)]:{_0x3a2dfd={'eventID':_0x508ea5['USERS_ENTER'],'joinEvent':_0x5c5f60[_0xd92cbe(0x436)][_0xd92cbe(0x436)]};break;}case _0x508ea5[_0xd92cbe(0x4f2)]:{_0x3a2dfd={'eventID':_0x508ea5[_0xd92cbe(0x4f2)],'liveShareNewHost':_0x5c5f60['data'][_0xd92cbe(0x436)]};break;}case _0x508ea5['LIVESHARE_OPERATION']:{_0x3a2dfd={'eventID':_0x508ea5['LIVESHARE_OPERATION'],'liveShareOperation':_0x5c5f60['data'][_0xd92cbe(0x436)]};break;}case _0x508ea5[_0xd92cbe(0x4a2)]:{_0x3a2dfd={'eventID':_0x508ea5['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x5c5f60[_0xd92cbe(0x436)][_0xd92cbe(0x436)]};break;}case _0x508ea5[_0xd92cbe(0x238)]:{_0x3a2dfd={'eventID':_0x508ea5[_0xd92cbe(0x238)],'liveShareRequestHost':_0x5c5f60[_0xd92cbe(0x436)][_0xd92cbe(0x436)]};break;}case _0x508ea5[_0xd92cbe(0x2bc)]:{_0x3a2dfd={'eventID':_0x508ea5[_0xd92cbe(0x2bc)]};break;}default:_0x3a2dfd={'eventID':_0x5c5f60[_0xd92cbe(0x436)]['eventID']};}return JSON[_0xd92cbe(0x30c)]({'cmd':_0x5c5f60[_0xd92cbe(0x254)],'routeKey':_0x5c5f60[_0xd92cbe(0x3c2)],'collaMsg':_0x3a2dfd});}case I['JOIN']:return JSON['stringify']({'cmd':_0x5c5f60[_0xd92cbe(0x254)],'routeKey':_0x5c5f60[_0xd92cbe(0x3c2)],'joinReq':_0x5c5f60['data']});case I[_0xd92cbe(0x3cf)]:return JSON[_0xd92cbe(0x30c)]({'cmd':_0x5c5f60[_0xd92cbe(0x254)],'routeKey':_0x5c5f60[_0xd92cbe(0x3c2)],'leaveReq':_0x5c5f60[_0xd92cbe(0x436)]});default:throw new Error(_0xd92cbe(0x4e4));}}var Un=Object[_0x27153b(0x368)],Mn=Object[_0x27153b(0x1df)],An=(_0x14d457,_0x4b5ae8,_0x42c9af,_0x5a9e81)=>{for(var _0x1a1b56=_0x5a9e81>0x1?void 0x0:_0x5a9e81?Mn(_0x4b5ae8,_0x42c9af):_0x4b5ae8,_0x5961da=_0x14d457['length']-0x1,_0x38b880;_0x5961da>=0x0;_0x5961da--)(_0x38b880=_0x14d457[_0x5961da])&&(_0x1a1b56=(_0x5a9e81?_0x38b880(_0x4b5ae8,_0x42c9af,_0x1a1b56):_0x38b880(_0x1a1b56))||_0x1a1b56);return _0x5a9e81&&_0x1a1b56&&Un(_0x4b5ae8,_0x42c9af,_0x1a1b56),_0x1a1b56;},Re=(_0x77a55c,_0x53807e)=>(_0x2485d2,_0x1109d6)=>_0x53807e(_0x2485d2,_0x1109d6,_0x77a55c);const As=_0x1ab192(_0x27153b(0x1c5));function Ln(_0x592498,_0x4f321b,_0x2e8354){const _0x22fbd2=_0x27153b;return _0x592498+'/'+_0x4f321b+'/unit/'+_0x2e8354+_0x22fbd2(0x3fa);}let Ct=class extends _0x5c8ab1{constructor(_0x2b8e3b,_0x30dada,_0x54fa61,_0x5f3f06,_0x5180c4){const _0x49426e=_0x27153b;super(),this[_0x49426e(0x41b)]=_0x2b8e3b,this[_0x49426e(0x211)]=_0x30dada,this[_0x49426e(0x370)]=_0x54fa61,this[_0x49426e(0x37e)]=_0x5f3f06,this[_0x49426e(0x4b8)]=_0x5180c4;}[_0x27153b(0x46f)](_0x196c97){const _0x560e0e=_0x27153b,_0xfc06cf=this[_0x560e0e(0x211)][_0x560e0e(0x46f)](_0x196c97);if(!_0xfc06cf)throw new Error(_0x560e0e(0x29f));const _0x39b3a6=new _0x2c9103(),_0x3a05da=new _0x351358();_0x39b3a6[_0x560e0e(0x2e9)](_0xfc06cf[_0x560e0e(0x20f)]['subscribe'](_0x1adb8d=>_0x3a05da[_0x560e0e(0x26a)](_0x1adb8d))),_0x39b3a6['add'](_0x6a3db3(()=>_0x3a05da[_0x560e0e(0x1c1)]()));const _0x304f3d=new _0x351358();_0x39b3a6[_0x560e0e(0x2e9)](_0xfc06cf['error$'][_0x560e0e(0x524)](_0x289a5a=>_0x304f3d[_0x560e0e(0x26a)](_0x289a5a))),_0x39b3a6[_0x560e0e(0x2e9)](_0x6a3db3(()=>_0x304f3d[_0x560e0e(0x1c1)]()));const _0x4704b7=new _0x351358();_0x39b3a6[_0x560e0e(0x2e9)](_0xfc06cf[_0x560e0e(0x31f)][_0x560e0e(0x524)](_0xe87489=>{const _0x420c51=_0x560e0e,_0xb0f2af=yn(_0xe87489);_0x4704b7[_0x420c51(0x26a)](_0xb0f2af);})),_0x39b3a6[_0x560e0e(0x2e9)](_0x6a3db3(()=>_0x4704b7[_0x560e0e(0x1c1)]()));let _0x406404;const _0x390f95=()=>{const _0xa3c942=_0x560e0e;_0x304f3d[_0xa3c942(0x26a)](new Event(_0xa3c942(0x2df))),_0x3a05da[_0xa3c942(0x26a)](new CloseEvent(_0xa3c942(0x2df))),_0x406404[_0xa3c942(0x258)]();};return _0x406404={'memberID':'','close$':_0x3a05da['asObservable'](),'error$':_0x304f3d[_0x560e0e(0x529)](),'open$':_0xfc06cf[_0x560e0e(0x2a0)],'message$':_0x4704b7[_0x560e0e(0x529)](),'send':_0x554e65=>{const _0x2b0dfd=_0x560e0e;if(_0x554e65[_0x2b0dfd(0x254)]===I[_0x2b0dfd(0x4f5)]){if(_0x554e65[_0x2b0dfd(0x436)][_0x2b0dfd(0x247)]===_0x508ea5[_0x2b0dfd(0x4ce)]){this[_0x2b0dfd(0x362)](_0x406404,_0x554e65['data'])['catch'](_0xc117aa=>{const _0x49b19b=_0x2b0dfd;this[_0x49b19b(0x37e)][_0x49b19b(0x1ea)](_0xc117aa),_0x390f95();});return;}if(_0x554e65[_0x2b0dfd(0x436)][_0x2b0dfd(0x247)]===_0x508ea5[_0x2b0dfd(0x4d9)]){const _0x354de5=_0x554e65['data'];this[_0x2b0dfd(0x430)](_0x354de5)[_0x2b0dfd(0x40a)](_0x526c10=>{const _0x2bccf6=_0x2b0dfd;_0x4704b7[_0x2bccf6(0x26a)]({'cmd':I['RECV'],'code':kt['OK'],'routeKey':_0x354de5[_0x2bccf6(0x436)]['unitID'],'routeType':'','data':{'eventID':_0x508ea5[_0x2bccf6(0x449)],'data':{'changesets':_0x526c10}}});})[_0x2b0dfd(0x1d3)](_0xa2df62=>{const _0x2fe756=_0x2b0dfd;this['_logService'][_0x2fe756(0x1ea)](_0xa2df62),_0x390f95();});return;}}_0xfc06cf[_0x2b0dfd(0x363)](Nn(_0x554e65));},'close':()=>{const _0x98664=_0x560e0e;_0xfc06cf[_0x98664(0x258)](),_0x39b3a6[_0x98664(0x301)]();}},_0x406404;}async[_0x27153b(0x362)](_0x4e9095,_0x4d6a48){const _0x2ce5d5=_0x27153b;var _0x1310b8,_0x561a6b;const {unitType:_0x21fb39,unitID:_0x38454f,changeset:_0xd8672c}=_0x4d6a48[_0x2ce5d5(0x436)],_0x22023e={'unitID':_0x38454f,'memberID':_0x4e9095['memberID'],'type':_0x21fb39,'changeset':_0x4fe909(_0xd8672c)},_0x1fcf8d=this[_0x2ce5d5(0x370)][_0x2ce5d5(0x48f)](Rn),_0xaf93b8=this[_0x2ce5d5(0x370)][_0x2ce5d5(0x48f)](L),_0x89e497=Ln((_0x561a6b=(_0x1310b8=_0xaf93b8==null?void 0x0:_0xaf93b8['collabSubmitChangesetUrl'])!=null?_0x1310b8:_0x1fcf8d)!=null?_0x561a6b:On,_0x21fb39,_0x38454f);try{await this[_0x2ce5d5(0x41b)][_0x2ce5d5(0x271)](_0x89e497,{'body':_0x22023e});}catch(_0x232c41){throw this['_logService'][_0x2ce5d5(0x1ea)](_0x2ce5d5(0x49c),_0x2ce5d5(0x3ee)),_0x232c41;}}async[_0x27153b(0x430)](_0x5992dc){const _0x5a968a=_0x27153b,{unitID:_0x5156b3,from:_0x558425,to:_0x475001,unitType:_0x3f05f5}=_0x5992dc[_0x5a968a(0x436)];return(await this[_0x5a968a(0x4b8)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x5156b3,'type':_0x3f05f5,'from':_0x558425,'to':_0x475001}))[_0x5a968a(0x375)];}};Ct=An([Re(0x0,_0x5f357f(_0x3378bf)),Re(0x1,_0x5f357f(_0x2a42e5)),Re(0x2,_0x5723c7),Re(0x3,_0x46022f),Re(0x4,_0x236384)],Ct);const $n=_0x27153b(0x4c7);function jn(_0xd77771){const _0x5a1638=_0x27153b;return JSON[_0x5a1638(0x30c)](_0xd77771)['length'];}class Ls{constructor(){const _0x3ad7fb=_0x27153b;l(this,_0x3ad7fb(0x335),new _0x351358()),l(this,_0x3ad7fb(0x1ac),this[_0x3ad7fb(0x335)]['asObservable']());}[_0x27153b(0x265)](_0x57a7c6){const _0x4b75d7=_0x27153b;this[_0x4b75d7(0x335)][_0x4b75d7(0x26a)](_0x57a7c6);}}var xn=Object[_0x27153b(0x368)],Hn=Object['getOwnPropertyDescriptor'],kn=(_0x172f35,_0x2959c6,_0x2c4dd2,_0x465180)=>{const _0x4d5b47=_0x27153b;for(var _0x556948=_0x465180>0x1?void 0x0:_0x465180?Hn(_0x2959c6,_0x2c4dd2):_0x2959c6,_0x18dcd6=_0x172f35[_0x4d5b47(0x361)]-0x1,_0x3ace99;_0x18dcd6>=0x0;_0x18dcd6--)(_0x3ace99=_0x172f35[_0x18dcd6])&&(_0x556948=(_0x465180?_0x3ace99(_0x2959c6,_0x2c4dd2,_0x556948):_0x3ace99(_0x556948))||_0x556948);return _0x465180&&_0x556948&&xn(_0x2959c6,_0x2c4dd2,_0x556948),_0x556948;},ns=(_0x4d8cf3,_0x23268f)=>(_0x43504a,_0x3a7703)=>_0x23268f(_0x43504a,_0x3a7703,_0x4d8cf3);let ae=class extends _0x5c8ab1{constructor(_0xf8179f,_0x2823ea){const _0xa2701b=_0x27153b;super(),l(this,_0xa2701b(0x3b6),new Map()),(this['_univerInstanceService']=_0xf8179f,this[_0xa2701b(0x26e)]=_0x2823ea,this[_0xa2701b(0x444)](_0x6a3db3(_0x5cd6ce(this['_univerInstanceService'][_0xa2701b(0x355)](_0x25b157[_0xa2701b(0x4e9)])['pipe'](_0x205ee2(_0x4d5d17=>_0x4d5d17[_0xa2701b(0x25a)]())),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x25b157[_0xa2701b(0x411)])[_0xa2701b(0x229)](_0x205ee2(_0x4dabca=>_0x4dabca[_0xa2701b(0x25a)]())),this[_0xa2701b(0x3ec)][_0xa2701b(0x355)](_0x25b157['UNIVER_SLIDE'])[_0xa2701b(0x229)](_0x205ee2(_0x76323=>_0x76323[_0xa2701b(0x25a)]())))['subscribe'](_0x480019=>this[_0xa2701b(0x3f0)](_0x480019)))));}['setCurrentUser'](_0x293aa4){const _0x3055de=_0x27153b;this[_0x3055de(0x26e)][_0x3055de(0x34e)](_0x293aa4);}['getCurrentUser'](){const _0x2ec598=_0x27153b;return this['_userManagerService'][_0x2ec598(0x497)]();}[_0x27153b(0x374)](_0x570d69,_0x1978e8){const _0x4b02bf=_0x27153b;let _0x5146f6=this['_roomMembers'][_0x4b02bf(0x48e)](_0x570d69);_0x5146f6||(_0x5146f6=new Bn(),this['_roomMembers']['set'](_0x570d69,_0x5146f6)),_0x5146f6[_0x4b02bf(0x374)](_0x1978e8);}['removeMember'](_0x3595cd,_0x2fb0dc){const _0x36e4b1=_0x27153b,_0x10589f=this['_roomMembers'][_0x36e4b1(0x48e)](_0x3595cd);_0x10589f&&_0x10589f[_0x36e4b1(0x3b2)](_0x2fb0dc);}[_0x27153b(0x39d)](_0x37dad4){const _0x1a6b86=_0x27153b;return this[_0x1a6b86(0x3b6)]['get'](_0x37dad4);}[_0x27153b(0x2c6)](_0x4411ca,_0x1a2ccc){const _0x4c40d9=_0x27153b,_0x33a057=this[_0x4c40d9(0x3b6)][_0x4c40d9(0x48e)](_0x4411ca);if(_0x33a057)return _0x33a057[_0x4c40d9(0x2c6)](_0x1a2ccc);}[_0x27153b(0x3f0)](_0x34890c){const _0x421960=_0x27153b,_0x589718=this[_0x421960(0x3b6)][_0x421960(0x48e)](_0x34890c);_0x589718&&(_0x589718['dispose'](),this[_0x421960(0x3b6)][_0x421960(0x2c4)](_0x34890c));}[_0x27153b(0x301)](){const _0x3feafe=_0x27153b;this[_0x3feafe(0x3b6)][_0x3feafe(0x28e)](_0x319e89=>_0x319e89[_0x3feafe(0x301)]()),this[_0x3feafe(0x3b6)][_0x3feafe(0x4bb)]();}};ae=kn([ns(0x0,_0x7019b6),ns(0x1,_0x5f357f(_0x14a0b1))],ae);class Bn extends _0x5c8ab1{constructor(){const _0x1b28b6=_0x27153b;super(...arguments),l(this,_0x1b28b6(0x38c),new Map());}[_0x27153b(0x301)](){const _0xdd81bf=_0x27153b;this[_0xdd81bf(0x38c)]['clear']();}[_0x27153b(0x374)](_0x194913){const _0x457e61=_0x27153b;this[_0x457e61(0x38c)][_0x457e61(0x34f)](_0x194913[_0x457e61(0x2da)],_0x194913);}[_0x27153b(0x3b2)](_0x2e88d5){const _0x57f8d3=_0x27153b;this[_0x57f8d3(0x38c)][_0x57f8d3(0x2c4)](_0x2e88d5);}[_0x27153b(0x2c6)](_0x4749ad){const _0x46fd0c=_0x27153b;return this[_0x46fd0c(0x38c)][_0x46fd0c(0x48e)](_0x4749ad);}}var Vn=Object[_0x27153b(0x368)],Fn=Object[_0x27153b(0x1df)],Wn=(_0x2a61b2,_0x8568a8,_0x53d00b,_0x8f539b)=>{const _0x16cacc=_0x27153b;for(var _0x3f1070=_0x8f539b>0x1?void 0x0:_0x8f539b?Fn(_0x8568a8,_0x53d00b):_0x8568a8,_0x27e8a5=_0x2a61b2[_0x16cacc(0x361)]-0x1,_0x597a39;_0x27e8a5>=0x0;_0x27e8a5--)(_0x597a39=_0x2a61b2[_0x27e8a5])&&(_0x3f1070=(_0x8f539b?_0x597a39(_0x8568a8,_0x53d00b,_0x3f1070):_0x597a39(_0x3f1070))||_0x3f1070);return _0x8f539b&&_0x3f1070&&Vn(_0x8568a8,_0x53d00b,_0x3f1070),_0x3f1070;},J=(_0x559292,_0x118c3b)=>(_0x1b5700,_0x15ed77)=>_0x118c3b(_0x1b5700,_0x15ed77,_0x559292),G=(_0x565655=>(_0x565655[_0x565655[_0x27153b(0x447)]=0x0]='IDLE',_0x565655[_0x565655['JOINING']=0x1]='JOINING',_0x565655[_0x565655['OFFLINE']=0x2]=_0x27153b(0x22f),_0x565655[_0x565655['ONLINE']=0x3]='ONLINE',_0x565655))(G||{});let bt=class extends _0x33a34d{constructor(_0xaf5477,_0x2a216a,_0x1435ef,_0x298770,_0x4a1564,_0xb501f8,_0x42fb3a,_0x249ac5,_0x2e6d17,_0x5217e5){const _0x26fa61=_0x27153b;super(),l(this,_0x26fa61(0x4a9),new _0x5c80e6(0x0)),l(this,'sessionStatus$',this['_sessionStatus$']['asObservable']()),l(this,_0x26fa61(0x4d5),new _0x351358()),l(this,_0x26fa61(0x4b7),this['_event$'][_0x26fa61(0x529)]()),l(this,_0x26fa61(0x1e7)),l(this,'_socketMessageSubscription'),l(this,'_collaborationTimeoutTimer'),l(this,_0x26fa61(0x25d),!0x1),l(this,_0x26fa61(0x38a),null),(this[_0x26fa61(0x2a3)]=_0xaf5477,this['_logService']=_0x1435ef,this[_0x26fa61(0x3c7)]=_0x298770,this[_0x26fa61(0x3c1)]=_0x4a1564,this['_configService']=_0xb501f8,this[_0x26fa61(0x286)]=_0x42fb3a,this[_0x26fa61(0x1ca)]=_0x249ac5,this[_0x26fa61(0x519)]=_0x2e6d17,this[_0x26fa61(0x3d3)]=_0x5217e5,this[_0x26fa61(0x25d)]=!!this['_telemetryService'],_0x2a216a[_0x26fa61(0x229)](_0x20928f(this[_0x26fa61(0x359)]))['subscribe'](_0x27b146=>{const _0x2d0dd4=_0x26fa61;var _0x52130c;typeof _0x27b146>'u'||(this[_0x2d0dd4(0x1e7)]=_0x27b146,_0x27b146?(this[_0x2d0dd4(0x2ca)](_0x27b146),this[_0x2d0dd4(0x35a)]=_0x27b146['message$']['subscribe'](_0x4e87ae=>{const _0x2364f1=_0x2d0dd4;_0x4e87ae[_0x2364f1(0x3c2)]===this['_unitID']&&this[_0x2364f1(0x47e)](_0x4e87ae);})):(this[_0x2d0dd4(0x3ad)](),this[_0x2d0dd4(0x4a9)][_0x2d0dd4(0x26a)](0x2),(_0x52130c=this[_0x2d0dd4(0x35a)])==null||_0x52130c[_0x2d0dd4(0x4e5)](),this[_0x2d0dd4(0x35a)]=null));}),this[_0x26fa61(0x444)](this[_0x26fa61(0x3c7)][_0x26fa61(0x2aa)](()=>{const _0x377910=_0x26fa61;var _0x62be7a;(_0x62be7a=this[_0x377910(0x1e7)])==null||_0x62be7a[_0x377910(0x363)]({'cmd':I['LEAVE'],'data':{'roomID':this[_0x377910(0x2a3)]}});})));}get['sessionStatus'](){const _0x377c9e=_0x27153b;return this[_0x377c9e(0x4a9)][_0x377c9e(0x3df)]();}[_0x27153b(0x24c)](){const _0x433894=_0x27153b;var _0xc218b6,_0x4fa275;return(_0x4fa275=(_0xc218b6=this['_socket'])==null?void 0x0:_0xc218b6[_0x433894(0x2da)])!=null?_0x4fa275:null;}['dispose'](){const _0x2df8e8=_0x27153b;super[_0x2df8e8(0x301)](),this['dispose$'][_0x2df8e8(0x26a)](),this['dispose$'][_0x2df8e8(0x1c1)]();}[_0x27153b(0x258)](){const _0x1099f1=_0x27153b;var _0x4669f7,_0xb6bb7;this[_0x1099f1(0x3ad)](),(_0x4669f7=this[_0x1099f1(0x1e7)])==null||_0x4669f7[_0x1099f1(0x363)]({'cmd':I['LEAVE'],'data':{'roomID':this[_0x1099f1(0x2a3)]}}),(_0xb6bb7=this[_0x1099f1(0x1e7)])==null||_0xb6bb7[_0x1099f1(0x258)](),this[_0x1099f1(0x4d5)][_0x1099f1(0x1c1)](),this[_0x1099f1(0x4a9)]['complete'](),this['dispose']();}['_onCombEvent'](_0x1f8991){const _0x34b0e5=_0x27153b;_0x1f8991[_0x34b0e5(0x254)]===I[_0x34b0e5(0x494)]?this[_0x34b0e5(0x3a0)](_0x1f8991):_0x1f8991[_0x34b0e5(0x254)]===I[_0x34b0e5(0x1cf)]&&this['_onRecvEvent'](_0x1f8991);}['_joinRoom'](_0x1bf482){const _0x491da7=_0x27153b;this['_sessionStatus$'][_0x491da7(0x26a)](0x1),_0x1bf482[_0x491da7(0x363)]({'cmd':I['JOIN'],'routeKey':this[_0x491da7(0x2a3)],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}['_onJoinRoomEvent'](_0x4f6639){const _0x557bee=_0x27153b;var _0x39c58b;if(_0x4f6639[_0x557bee(0x3e0)]===kt[_0x557bee(0x2c2)]){this['_messageService'][_0x557bee(0x4a8)]({'type':_0xcc72d3[_0x557bee(0x331)],'content':this[_0x557bee(0x286)]['t'](_0x557bee(0x438))}),this[_0x557bee(0x4a9)][_0x557bee(0x26a)](0x2);return;}this['_sessionStatus$'][_0x557bee(0x26a)](0x3);const _0x5a3a25=(_0x39c58b=_0x4f6639['data'][_0x557bee(0x345)][this[_0x557bee(0x2a3)]])==null?void 0x0:_0x39c58b[_0x557bee(0x263)];_0x5a3a25&&_0x5a3a25[_0x557bee(0x28e)](_0x440730=>this[_0x557bee(0x1ca)][_0x557bee(0x374)](this[_0x557bee(0x2a3)],_0x440730));}[_0x27153b(0x27b)](_0x3b9f8a){const _0xb0b12d=_0x27153b;try{const _0x93e2b3=_0x3b9f8a[_0xb0b12d(0x436)];switch(_0x93e2b3[_0xb0b12d(0x247)]){case _0x508ea5[_0xb0b12d(0x396)]:this[_0xb0b12d(0x39b)](_0x93e2b3),this[_0xb0b12d(0x4d5)]['next'](_0x93e2b3);break;case _0x508ea5[_0xb0b12d(0x282)]:this[_0xb0b12d(0x4fa)](_0x93e2b3),this[_0xb0b12d(0x4d5)][_0xb0b12d(0x26a)](_0x93e2b3);break;case _0x508ea5[_0xb0b12d(0x2c7)]:this['_stopTelemetryCollaborationNewChangeset'](),this['_clearCollaborationTimeoutTimer'](),this['_event$'][_0xb0b12d(0x26a)](_0x93e2b3);break;case _0x508ea5[_0xb0b12d(0x221)]:this[_0xb0b12d(0x37e)][_0xb0b12d(0x1ea)](_0xb0b12d(0x4c3)+JSON[_0xb0b12d(0x30c)](_0x93e2b3)),this[_0xb0b12d(0x4d5)][_0xb0b12d(0x26a)](_0x93e2b3);break;case _0x508ea5['COMMENT_UPDATE']:this[_0xb0b12d(0x519)]['onCommentUpdate'](_0x93e2b3[_0xb0b12d(0x436)]),this['_event$'][_0xb0b12d(0x26a)](_0x93e2b3);break;default:this['_event$']['next'](_0x93e2b3);}}catch(_0xa81933){this[_0xb0b12d(0x37e)][_0xb0b12d(0x1ea)](_0xa81933,_0x3b9f8a);}}[_0x27153b(0x39b)](_0xdcc168){const _0x337867=_0x27153b;this[_0x337867(0x1ca)][_0x337867(0x374)](this['_unitID'],_0xdcc168['data']);}[_0x27153b(0x4fa)](_0x2ce366){const _0x5d0a5b=_0x27153b;this[_0x5d0a5b(0x1ca)]['removeMember'](this[_0x5d0a5b(0x2a3)],_0x2ce366['data'][_0x5d0a5b(0x2da)]);}async[_0x27153b(0x363)](_0x44f695,_0x3f86cb){const _0x23a7fd=_0x27153b;if(this[_0x23a7fd(0x513)]!==0x3||!this[_0x23a7fd(0x1e7)])throw new Error(_0x23a7fd(0x26b));try{_0x44f695[_0x23a7fd(0x247)]===_0x508ea5[_0x23a7fd(0x4ce)]&&(this[_0x23a7fd(0x392)](),this[_0x23a7fd(0x47c)](_0x44f695)),this['_socket'][_0x23a7fd(0x363)]({'cmd':I['INGEST'],'routeKey':_0x3f86cb,'routeType':'','data':_0x44f695});}catch(_0x337a93){this['_logService'][_0x23a7fd(0x1ea)](_0x337a93);}}['_scheduleCollaborationTimeoutTimer'](){const _0x5884c2=_0x27153b;var _0x57e428;this['_collaborationTimeoutTimer']=window[_0x5884c2(0x409)](()=>{const _0x59acb5=_0x5884c2;this['_collaborationTimeoutTimer']=null,this[_0x59acb5(0x3c1)][_0x59acb5(0x4a8)]({'type':_0xcc72d3[_0x59acb5(0x3e7)],'content':this[_0x59acb5(0x286)]['t'](_0x59acb5(0x20c))});},(_0x57e428=this[_0x5884c2(0x370)][_0x5884c2(0x48f)](ys))!=null?_0x57e428:Ns);}[_0x27153b(0x4f3)](){const _0x4b1e0c=_0x27153b;this[_0x4b1e0c(0x3eb)]&&(clearTimeout(this['_collaborationTimeoutTimer']),this[_0x4b1e0c(0x3eb)]=null);}[_0x27153b(0x47c)](_0x35d14d){const _0x3b270f=_0x27153b;if(!this[_0x3b270f(0x25d)])return;const {data:_0x1f48ba}=_0x35d14d,{unitID:_0x1291f5,changeset:_0x5c0a8e}=_0x1f48ba,{mutations:_0x528bf9,type:_0x112edd}=_0x5c0a8e;this[_0x3b270f(0x38a)]={'unitId':_0x1291f5,'type':_0x112edd,'startTime':performance[_0x3b270f(0x22a)](),'stopTime':0x0,'duration':0x0,'size':jn(_0x528bf9)};}[_0x27153b(0x450)](){const _0x4f4dbc=_0x27153b;if(this[_0x4f4dbc(0x25d)]){if(!this[_0x4f4dbc(0x38a)]){this[_0x4f4dbc(0x37e)][_0x4f4dbc(0x1ea)]('[CollaborationSession]','telemetry\x20info\x20is\x20not\x20initialized');return;}this[_0x4f4dbc(0x38a)][_0x4f4dbc(0x395)]=performance[_0x4f4dbc(0x22a)](),this['_telemetryInfo'][_0x4f4dbc(0x510)]=this['_telemetryInfo'][_0x4f4dbc(0x395)]-this[_0x4f4dbc(0x38a)][_0x4f4dbc(0x1c3)],this[_0x4f4dbc(0x3d3)][_0x4f4dbc(0x486)]($n,this['_telemetryInfo']),this[_0x4f4dbc(0x38a)]=null;}}['_throwTelemetryCollaborationNewChangeset'](){this['_telemetryInfo']=null;}};bt=Wn([J(0x2,_0x46022f),J(0x3,_0x4c7beb),J(0x4,_0x2ae10a),J(0x5,_0x5723c7),J(0x6,_0x5f357f(_0x1015bf)),J(0x7,_0x5f357f(ae)),J(0x8,_0x5f357f(Ls)),J(0x9,_0x57a0c7(_0x521025))],bt);var Gn=Object['defineProperty'],Yn=Object['getOwnPropertyDescriptor'],Kn=(_0x54b7c2,_0x4a9ac2,_0x511c94,_0x2f61e1)=>{const _0x43c346=_0x27153b;for(var _0x4e79ea=_0x2f61e1>0x1?void 0x0:_0x2f61e1?Yn(_0x4a9ac2,_0x511c94):_0x4a9ac2,_0x342cca=_0x54b7c2[_0x43c346(0x361)]-0x1,_0x32f2b1;_0x342cca>=0x0;_0x342cca--)(_0x32f2b1=_0x54b7c2[_0x342cca])&&(_0x4e79ea=(_0x2f61e1?_0x32f2b1(_0x4a9ac2,_0x511c94,_0x4e79ea):_0x32f2b1(_0x4e79ea))||_0x4e79ea);return _0x2f61e1&&_0x4e79ea&&Gn(_0x4a9ac2,_0x511c94,_0x4e79ea),_0x4e79ea;},de=(_0xbf2e85,_0x180147)=>(_0x1bf828,_0xc2343b)=>_0x180147(_0x1bf828,_0xc2343b,_0xbf2e85);let ce=class extends _0x5c8ab1{constructor(_0x460364,_0x2d44b5,_0x4f14d9,_0x2ec33f,_0xe9a3b9,_0x57ccfc){const _0x5658dd=_0x27153b;super(),l(this,_0x5658dd(0x23b),new _0x5c80e6(void 0x0)),l(this,_0x5658dd(0x2e3),this[_0x5658dd(0x23b)][_0x5658dd(0x529)]()),l(this,_0x5658dd(0x35f),null),l(this,_0x5658dd(0x431),new Map()),l(this,_0x5658dd(0x223),new _0x5c80e6(G[_0x5658dd(0x447)])),l(this,_0x5658dd(0x200),this[_0x5658dd(0x223)]['asObservable']()),l(this,'_socketReady',!0x1),l(this,_0x5658dd(0x296)),l(this,_0x5658dd(0x303),0x0),l(this,'_sendHeartbeatTimer'),l(this,_0x5658dd(0x284)),(this[_0x5658dd(0x2ae)]=_0x460364,this['_localeService']=_0x2d44b5,this[_0x5658dd(0x3c1)]=_0x4f14d9,this['_logService']=_0x2ec33f,this[_0x5658dd(0x370)]=_0xe9a3b9,this[_0x5658dd(0x29a)]=_0x57ccfc,this[_0x5658dd(0x4ee)]());}get['_socket'](){const _0x1355df=_0x27153b;return this[_0x1355df(0x23b)][_0x1355df(0x3df)]();}[_0x27153b(0x4ee)](){const _0x56359b=_0x27153b;this['_listenToOfflineEvent'](),this[_0x56359b(0x332)]();}[_0x27153b(0x301)](){const _0x32fc9b=_0x27153b;super[_0x32fc9b(0x301)](),this[_0x32fc9b(0x431)]['forEach'](_0x2a2495=>_0x2a2495[_0x32fc9b(0x301)]()),this[_0x32fc9b(0x431)][_0x32fc9b(0x4bb)](),this['_status$'][_0x32fc9b(0x1c1)]();}async[_0x27153b(0x3a9)](_0x16cdb5){const _0x3185a8=_0x27153b;if(this[_0x3185a8(0x431)][_0x3185a8(0x306)](_0x16cdb5))return this[_0x3185a8(0x431)][_0x3185a8(0x48e)](_0x16cdb5);this[_0x3185a8(0x2dc)]();const _0x5c3d04=this[_0x3185a8(0x2ae)]['createInstance'](bt,_0x16cdb5,this[_0x3185a8(0x23b)]['asObservable']());return this[_0x3185a8(0x431)]['set'](_0x16cdb5,_0x5c3d04),_0x5c3d04;}[_0x27153b(0x4e0)](_0x50a70d){const _0x4960c1=_0x27153b;var _0x844674;const _0x5c339f=this['_sessions']['get'](_0x50a70d);_0x5c339f&&(this[_0x4960c1(0x431)][_0x4960c1(0x2c4)](_0x50a70d),_0x5c339f[_0x4960c1(0x258)]()),this[_0x4960c1(0x431)][_0x4960c1(0x38e)]||(_0x844674=this[_0x4960c1(0x1e7)])==null||_0x844674[_0x4960c1(0x258)]();}[_0x27153b(0x357)](){const _0x29482c=_0x27153b;this[_0x29482c(0x303)]=0x0,this[_0x29482c(0x296)]!=null&&(clearTimeout(this[_0x29482c(0x296)]),this[_0x29482c(0x296)]=null),this['_tryReconnect']();}[_0x27153b(0x29d)](){const _0x5d27d1=_0x27153b;var _0x3801a0,_0x515bb0;const _0x54c9f5=this[_0x5d27d1(0x370)]['getConfig'](gn),_0x3f7aed=this[_0x5d27d1(0x370)][_0x5d27d1(0x48f)](L),_0x3387f3=(_0x515bb0=(_0x3801a0=_0x3f7aed==null?void 0x0:_0x3f7aed['collabWebSocketUrl'])!=null?_0x3801a0:_0x54c9f5)!=null?_0x515bb0:Sn,_0x410833=this[_0x5d27d1(0x29a)][_0x5d27d1(0x46f)](_0x3387f3);return this['_candidateSocket']=_0x410833,_0x410833;}[_0x27153b(0x2dc)](){const _0x241325=_0x27153b;var _0x4c5d65,_0x1efad5;try{const _0x150b32=(_0x1efad5=(_0x4c5d65=this[_0x241325(0x1e7)])!=null?_0x4c5d65:this[_0x241325(0x35f)])!=null?_0x1efad5:this[_0x241325(0x29d)]();if(_0x150b32){const _0xd17777=_0x150b32[_0x241325(0x363)];_0x150b32[_0x241325(0x363)]=_0x7ae5e4=>(this[_0x241325(0x1b6)](),_0xd17777['apply'](_0x150b32,[_0x7ae5e4])),_0x150b32[_0x241325(0x31f)][_0x241325(0x524)](_0x42d99b=>this[_0x241325(0x27a)](_0x150b32,_0x42d99b)),_0x150b32[_0x241325(0x50c)][_0x241325(0x229)](_0x589cc0(0x1))[_0x241325(0x524)](_0x359f7b=>this[_0x241325(0x37e)]['error'](_0x241325(0x39e),_0x359f7b)),_0x150b32[_0x241325(0x2a0)]['pipe'](_0x589cc0(0x1))['subscribe'](()=>{const _0x45ec6=_0x241325;this[_0x45ec6(0x526)](_0x150b32);}),_0x150b32['close$'][_0x241325(0x229)](_0x589cc0(0x1))[_0x241325(0x524)](_0x3da46e=>{const _0x35fd57=_0x241325;this[_0x35fd57(0x37e)][_0x35fd57(0x252)](_0x35fd57(0x367),'socket\x20close',_0x3da46e),this['_onConnectionFailed']();});}}catch(_0x5ebdba){this[_0x241325(0x37e)][_0x241325(0x1ea)](_0x5ebdba),this[_0x241325(0x1cb)]();}}['_onConnectionOpen'](_0x595f21){const _0x303fd3=_0x27153b;this['_logService'][_0x303fd3(0x252)](_0x303fd3(0x367),_0x303fd3(0x4cc)),_0x595f21[_0x303fd3(0x363)]({'cmd':I[_0x303fd3(0x416)]}),this[_0x303fd3(0x1b6)]();}[_0x27153b(0x309)](){const _0x700935=_0x27153b;window[_0x700935(0x32a)]('offline',()=>this['_onOffline']());}[_0x27153b(0x4c1)](){const _0x261291=_0x27153b;this[_0x261291(0x2d5)]=!0x1,this[_0x261291(0x35f)]=null,this[_0x261291(0x223)][_0x261291(0x26a)](G[_0x261291(0x22f)]),this[_0x261291(0x23b)][_0x261291(0x26a)](null),this[_0x261291(0x1e1)](),this[_0x261291(0x458)]();}[_0x27153b(0x1cb)](){const _0x3eb59f=_0x27153b;var _0xaf4369;this[_0x3eb59f(0x4c1)](),this[_0x3eb59f(0x303)]<((_0xaf4369=this[_0x3eb59f(0x370)][_0x3eb59f(0x48f)](En))!=null?_0xaf4369:Cn)?(this[_0x3eb59f(0x3c1)][_0x3eb59f(0x4a8)]({'key':_0x3eb59f(0x38b),'type':_0xcc72d3[_0x3eb59f(0x331)],'content':this[_0x3eb59f(0x286)]['t']('session.will-retry')}),this[_0x3eb59f(0x42a)]()):this[_0x3eb59f(0x3c1)]['show']({'key':_0x3eb59f(0x38b),'type':_0xcc72d3[_0x3eb59f(0x3e7)],'content':this[_0x3eb59f(0x286)]['t'](_0x3eb59f(0x3f7))});}[_0x27153b(0x332)](){const _0x3c9bc1=_0x27153b,_0xe58aa=()=>{const _0x1fffe6=_0x5b57;this[_0x1fffe6(0x1e7)]||this['reconnect']();},_0xf2e572=()=>{const _0x565b41=_0x5b57;this[_0x565b41(0x1e7)]||document[_0x565b41(0x350)]===_0x565b41(0x29b)||this[_0x565b41(0x357)]();};window[_0x3c9bc1(0x32a)](_0x3c9bc1(0x49d),_0xe58aa),document['addEventListener']('visibilitychange',_0xf2e572);}['_tryReconnect'](){const _0x49f2e3=_0x27153b;var _0x2f4816;const _0x904e80=this[_0x49f2e3(0x303)],_0xa0d98d=this[_0x49f2e3(0x370)][_0x49f2e3(0x48f)](L),_0x1cc33a=_0x904e80===0x0?0x0:((_0x2f4816=_0xa0d98d==null?void 0x0:_0xa0d98d[_0x49f2e3(0x304)])!=null?_0x2f4816:In)*0x2**_0x904e80;this[_0x49f2e3(0x296)]=window['setTimeout'](()=>{const _0x5dd9d1=_0x49f2e3;clearTimeout(this[_0x5dd9d1(0x296)]),this[_0x5dd9d1(0x296)]=null,this['_tryEnsureSocket']();},_0x1cc33a),this[_0x49f2e3(0x303)]+=0x1;}[_0x27153b(0x27a)](_0x4d3ee0,_0x15f77e){const _0x355ba1=_0x27153b,{cmd:_0x596909}=_0x15f77e;_0x596909===I[_0x355ba1(0x416)]&&!this['_socketReady']&&(_0x4d3ee0[_0x355ba1(0x2da)]=_0x15f77e['data']['memberID'],this[_0x355ba1(0x23b)]['next'](_0x4d3ee0),this['_status$'][_0x355ba1(0x26a)](G['ONLINE']),this['_socketReady']=!0x0,this[_0x355ba1(0x35f)]=null),_0x596909===I['HEARTBEAT']&&this[_0x355ba1(0x1e1)](),this[_0x355ba1(0x1b6)]();}[_0x27153b(0x1b6)](){const _0x56cf70=_0x27153b;var _0x30b6eb;this['_clearHeartbeatTimer'](),this[_0x56cf70(0x476)]=window[_0x56cf70(0x409)](()=>this['_sendHeartbeat'](),(_0x30b6eb=this[_0x56cf70(0x370)][_0x56cf70(0x48f)](pn))!=null?_0x30b6eb:vn);}[_0x27153b(0x385)](){const _0x3021b9=_0x27153b;this[_0x3021b9(0x1e7)][_0x3021b9(0x363)]({'cmd':I[_0x3021b9(0x2a4)]}),this[_0x3021b9(0x35b)]();}['_waitForHeartbeatResponse'](){const _0x3ae051=_0x27153b;var _0x4a5cf8;this[_0x3ae051(0x284)]=window[_0x3ae051(0x409)](()=>this[_0x3ae051(0x1cb)](),(_0x4a5cf8=this[_0x3ae051(0x370)][_0x3ae051(0x48f)](ys))!=null?_0x4a5cf8:Ns);}[_0x27153b(0x458)](){const _0x10ae78=_0x27153b;this[_0x10ae78(0x476)]!=null&&(clearTimeout(this[_0x10ae78(0x476)]),this[_0x10ae78(0x476)]=null);}[_0x27153b(0x1e1)](){const _0xf8633=_0x27153b;this[_0xf8633(0x284)]!=null&&(clearTimeout(this[_0xf8633(0x284)]),this[_0xf8633(0x284)]=null);}};ce=Kn([de(0x0,_0x5f357f(_0x45059e)),de(0x1,_0x5f357f(_0x1015bf)),de(0x2,_0x2ae10a),de(0x3,_0x46022f),de(0x4,_0x5723c7),de(0x5,As)],ce);var Xn=Object[_0x27153b(0x368)],Jn=Object[_0x27153b(0x1df)],qn=(_0x3bc3b7,_0xe976c9,_0x3ca6e4,_0x14b677)=>{const _0x3c8bd8=_0x27153b;for(var _0x30b356=_0x14b677>0x1?void 0x0:_0x14b677?Jn(_0xe976c9,_0x3ca6e4):_0xe976c9,_0xccdb82=_0x3bc3b7[_0x3c8bd8(0x361)]-0x1,_0x39e4a4;_0xccdb82>=0x0;_0xccdb82--)(_0x39e4a4=_0x3bc3b7[_0xccdb82])&&(_0x30b356=(_0x14b677?_0x39e4a4(_0xe976c9,_0x3ca6e4,_0x30b356):_0x39e4a4(_0x30b356))||_0x30b356);return _0x14b677&&_0x30b356&&Xn(_0xe976c9,_0x3ca6e4,_0x30b356),_0x30b356;},ht=(_0x47da8a,_0x3d177c)=>(_0x3dd663,_0x2e6b68)=>_0x3d177c(_0x3dd663,_0x2e6b68,_0x47da8a);let Ye=class{constructor(_0x2a935d,_0x4aa9b2,_0x2b1f86){const _0x17e2de=_0x27153b;this['_injector']=_0x2a935d,this[_0x17e2de(0x4ff)]=_0x4aa9b2,this['_renderManagerService']=_0x2b1f86;}[_0x27153b(0x41e)](_0x57ff3b){const _0x17155a=_0x27153b;this[_0x17155a(0x490)](_0x57ff3b),this['_transformPreviousActiveRange'](_0x57ff3b);}[_0x27153b(0x3ce)](_0x16d179){const _0x5c1c2a=_0x27153b,{unitID:_0x1a377e}=_0x16d179,_0x55b4e0=this[_0x5c1c2a(0x51b)]['getRenderById'](_0x1a377e)['with'](_0x2ff0f7),{redoCache:_0x54e49e}=_0x55b4e0['getUndoRedoMutationParamsCache']();if(_0x54e49e[_0x5c1c2a(0x361)]===0x0)return _0x16d179;let _0x32aaad=_0x4ffcf9['deepClone'](_0x16d179[_0x5c1c2a(0x427)][0x0]);for(let _0x45b9af=0x0;_0x45b9af<_0x54e49e[_0x5c1c2a(0x361)];_0x45b9af++){const _0x16f97d={'id':'doc.mutation.rich-text-editing','params':{..._0x54e49e[_0x45b9af]}},_0x292ef9=this[_0x5c1c2a(0x4ff)][_0x5c1c2a(0x281)](_0x32aaad,_0x16f97d,!0x1);if(_0x280dd5(_0x292ef9))throw _0x292ef9['error'];_0x32aaad=_0x292ef9[_0x5c1c2a(0x440)];}return{..._0x4ffcf9['deepClone'](_0x16d179),'mutations':[_0x32aaad]};}[_0x27153b(0x490)](_0x2afe86){const _0x3cd613=_0x27153b,{unitID:_0x22d554}=_0x2afe86,_0x3a6b27=this[_0x3cd613(0x51b)][_0x3cd613(0x270)](_0x22d554)[_0x3cd613(0x358)](_0x2ff0f7),{undoCache:_0x2f835b,redoCache:_0x1bafcf}=_0x3a6b27[_0x3cd613(0x43e)]();if(_0x2f835b[_0x3cd613(0x361)]===0x0||_0x1bafcf['length']===0x0)return;const _0x1c9089=[],_0x1fc589=[];let _0x19492b=_0x4ffcf9[_0x3cd613(0x2c8)](_0x2afe86['mutations'][0x0]),_0x195e52=_0x4ffcf9['deepClone'](_0x2afe86[_0x3cd613(0x427)][0x0]);for(let _0x3b2b08=_0x2f835b[_0x3cd613(0x361)]-0x1;_0x3b2b08>=0x0;_0x3b2b08--){const _0x5718a7={'id':'doc.mutation.rich-text-editing','params':{..._0x2f835b[_0x3b2b08]}},_0xa43e5b={'id':_0x3cd613(0x3d8),'params':{..._0x1bafcf[_0x3b2b08]}},_0x294b8e=this[_0x3cd613(0x4ff)][_0x3cd613(0x281)](_0x19492b,_0x5718a7,!0x1),_0x2a1dec=this[_0x3cd613(0x4ff)]['transformMutation'](_0x195e52,_0xa43e5b,!0x1);if(_0x280dd5(_0x294b8e))throw _0x294b8e[_0x3cd613(0x1ea)];if(_0x280dd5(_0x2a1dec))throw _0x2a1dec[_0x3cd613(0x1ea)];_0x1c9089[_0x3cd613(0x320)](_0x294b8e[_0x3cd613(0x48a)][_0x3cd613(0x419)]),_0x1fc589[_0x3cd613(0x320)](_0x2a1dec[_0x3cd613(0x48a)][_0x3cd613(0x419)]),_0x19492b=_0x294b8e[_0x3cd613(0x440)],_0x195e52=_0x2a1dec[_0x3cd613(0x440)];}_0x3a6b27[_0x3cd613(0x27e)]({'undoCache':_0x1c9089,'redoCache':_0x1fc589});}[_0x27153b(0x42e)](_0x149c1e){const _0x40a6c7=_0x27153b,{unitID:_0x556e99}=_0x149c1e,_0x30e09e=this[_0x40a6c7(0x51b)][_0x40a6c7(0x270)](_0x556e99)['with'](_0x2ff0f7),_0xb399e4=_0x30e09e[_0x40a6c7(0x2d8)]();if(_0xb399e4==null)return;const _0x59f8a4=[{'id':_0x40a6c7(0x3d8),'params':{'unitId':_0x149c1e[_0x40a6c7(0x1f0)],'actions':null,'textRanges':[_0xb399e4]}}],_0x1e5b0a=this[_0x40a6c7(0x4ff)]['transformMutationsWithChangeset'](_0x149c1e,_0x59f8a4);if(!_0x567165(_0x1e5b0a))throw _0x1e5b0a[_0x40a6c7(0x1ea)];const _0x33aecb=_0x1e5b0a['m2Prime'][0x0][_0x40a6c7(0x419)][_0x40a6c7(0x4be)];Array[_0x40a6c7(0x23c)](_0x33aecb)&&_0x33aecb[_0x40a6c7(0x361)]&&_0x30e09e[_0x40a6c7(0x40d)](_0x33aecb[0x0]);}};Ye=qn([ht(0x0,_0x5f357f(_0x45059e)),ht(0x1,_0x116203),ht(0x2,_0x1873ab)],Ye);var zn=Object['defineProperty'],Zn=Object[_0x27153b(0x1df)],Qn=(_0x4ccd6c,_0xece12b,_0x430028,_0x239742)=>{const _0x22b89d=_0x27153b;for(var _0x5b049f=_0x239742>0x1?void 0x0:_0x239742?Zn(_0xece12b,_0x430028):_0xece12b,_0x1980dc=_0x4ccd6c[_0x22b89d(0x361)]-0x1,_0x4b2854;_0x1980dc>=0x0;_0x1980dc--)(_0x4b2854=_0x4ccd6c[_0x1980dc])&&(_0x5b049f=(_0x239742?_0x4b2854(_0xece12b,_0x430028,_0x5b049f):_0x4b2854(_0x5b049f))||_0x5b049f);return _0x239742&&_0x5b049f&&zn(_0xece12b,_0x430028,_0x5b049f),_0x5b049f;},Oe=(_0x28f74a,_0x1774d6)=>(_0x1f7248,_0x15b1f3)=>_0x1774d6(_0x1f7248,_0x15b1f3,_0x28f74a);let D=class extends _0x5c8ab1{constructor(_0x4bf173,_0x914656,_0x27a890,_0x1e338c,_0x363a9d){const _0x12491e=_0x27153b;super(),l(this,_0x12491e(0x3cb),new Map()),l(this,_0x12491e(0x274),new Map()),l(this,_0x12491e(0x273),!0x1),(this[_0x12491e(0x370)]=_0x4bf173,this[_0x12491e(0x384)]=_0x914656,this['_beforeCloseService']=_0x27a890,this['_localeService']=_0x1e338c,this[_0x12491e(0x28d)]=_0x363a9d,this[_0x12491e(0x493)]());}[_0x27153b(0x425)](){this['_disabled']=!0x0;}[_0x27153b(0x389)](){this['_disabled']=!0x1;}[_0x27153b(0x301)](){const _0x22540a=_0x27153b;this[_0x22540a(0x1b1)]()['then'](()=>super[_0x22540a(0x301)]());}async[_0x27153b(0x3cd)](_0xf5118e){const _0x82c861=_0x27153b;return this[_0x82c861(0x273)]?null:this['_localStorageService'][_0x82c861(0x4dc)](rs(_0xf5118e));}async[_0x27153b(0x51d)](_0x1b02b8,_0x3f29b8){const _0x23965a=_0x27153b;return!!this['_localStorageService'][_0x23965a(0x428)](_0x1b02b8,_0x3f29b8);}['updateOfflineData'](_0x2310cc,_0x10df71,_0x52f1b6,_0x518bde){const _0xe3a7a5=_0x27153b,_0x29ea57=this[_0xe3a7a5(0x28d)]['getCurrentRevOfUnit'](_0x2310cc);this[_0xe3a7a5(0x3cb)][_0xe3a7a5(0x34f)](_0x2310cc,{'unitID':_0x2310cc,'type':_0x10df71,'awaitingChangeset':_0x52f1b6,'mutations':_0x518bde,'rev':_0x29ea57}),this[_0xe3a7a5(0x274)][_0xe3a7a5(0x306)](_0x2310cc)||this[_0xe3a7a5(0x391)](_0x2310cc);}['_scheduleSaving'](_0x43c980){const _0x3b852b=_0x27153b,_0x16bc25=this[_0x3b852b(0x327)]();_0x16bc25===0x0?this[_0x3b852b(0x336)](_0x43c980):this[_0x3b852b(0x274)][_0x3b852b(0x34f)](_0x43c980,setTimeout(()=>this[_0x3b852b(0x336)](_0x43c980),_0x16bc25));}['_getSaveTimeout'](){const _0x2f7bf3=_0x27153b;var _0x37ee47;return(_0x37ee47=this[_0x2f7bf3(0x370)][_0x2f7bf3(0x48f)](bn))!=null?_0x37ee47:Tn;}[_0x27153b(0x336)](_0x396019){const _0x3272da=_0x27153b,_0x2330ad=this[_0x3272da(0x274)][_0x3272da(0x48e)](_0x396019);return _0x2330ad!==void 0x0&&window['clearTimeout'](_0x2330ad),this[_0x3272da(0x384)][_0x3272da(0x428)](rs(_0x396019),this['_cachedData'][_0x3272da(0x48e)](_0x396019))[_0x3272da(0x40a)](()=>this[_0x3272da(0x274)][_0x3272da(0x2c4)](_0x396019));}async[_0x27153b(0x1b1)](){const _0x59b590=_0x27153b,_0x1dd45e=[];this[_0x59b590(0x274)]['forEach']((_0x460c90,_0x259360)=>{const _0x429b12=_0x59b590;window['clearTimeout'](_0x460c90),_0x1dd45e[_0x429b12(0x212)](this['_saveCache'](_0x259360)['then'](()=>{const _0x5e5097=_0x429b12;this[_0x5e5097(0x274)]['delete'](_0x259360);}));}),await Promise[_0x59b590(0x340)](_0x1dd45e);}[_0x27153b(0x493)](){const _0x23cb78=_0x27153b;this[_0x23cb78(0x444)](this['_beforeCloseService']['registerBeforeClose'](()=>{const _0x228846=_0x23cb78;if(this['_saveTaskMap'][_0x228846(0x38e)])return this[_0x228846(0x286)]['t'](_0x228846(0x3bc));}));}};D=Qn([Oe(0x0,_0x5723c7),Oe(0x1,_0x14c0c3),Oe(0x2,_0x4c7beb),Oe(0x3,_0x5f357f(_0x1015bf)),Oe(0x4,_0x5f357f(_0x34bed5))],D);function rs(_0x16fa63){const _0x43b6a1=_0x27153b;return _0x43b6a1(0x35c)+_0x16fa63;}var er=Object[_0x27153b(0x368)],tr=Object[_0x27153b(0x1df)],sr=(_0x48550b,_0x3330a1,_0x12c94b,_0x1fbcac)=>{const _0xb46f08=_0x27153b;for(var _0x5b0870=_0x1fbcac>0x1?void 0x0:_0x1fbcac?tr(_0x3330a1,_0x12c94b):_0x3330a1,_0x970c=_0x48550b[_0xb46f08(0x361)]-0x1,_0x36f6cd;_0x970c>=0x0;_0x970c--)(_0x36f6cd=_0x48550b[_0x970c])&&(_0x5b0870=(_0x1fbcac?_0x36f6cd(_0x3330a1,_0x12c94b,_0x5b0870):_0x36f6cd(_0x5b0870))||_0x5b0870);return _0x1fbcac&&_0x5b0870&&er(_0x3330a1,_0x12c94b,_0x5b0870),_0x5b0870;},lt=(_0x431515,_0x1dae9c)=>(_0x2fedec,_0x535dae)=>_0x1dae9c(_0x2fedec,_0x535dae,_0x431515);function ir(_0x2d760b){const _0x465256=_0x27153b,{unitID:_0x2d90b9,mutations:_0x443eab}=_0x2d760b;return{'unitId':_0x2d90b9,'subUnitId':_0x443eab[0x0][_0x465256(0x419)]['subUnitId']};}let Ke=class{constructor(_0x22b438,_0x5b431e,_0x11f726){const _0x21cbc0=_0x27153b;this['_injector']=_0x22b438,this[_0x21cbc0(0x4ff)]=_0x5b431e,this[_0x21cbc0(0x39f)]=_0x11f726;}['transformSelections'](_0x424ff0){const _0xa7aa41=_0x27153b;var _0x1ebcfc,_0x5bc5fe,_0x1ffd58,_0x419b26;const _0x28041a=this[_0xa7aa41(0x2ae)][_0xa7aa41(0x48e)](_0x1e6574),{unitId:_0x28c72e,subUnitId:_0x32f12b}=ir(_0x424ff0),_0x4ef93b=_0x28041a[_0xa7aa41(0x2f3)](_0x28c72e)[_0xa7aa41(0x4fe)](),_0x1ff9ac=(_0x5bc5fe=(_0x1ebcfc=this[_0xa7aa41(0x39f)][_0xa7aa41(0x2a2)](_0x28c72e))==null?void 0x0:_0x1ebcfc[_0xa7aa41(0x268)]())==null?void 0x0:_0x5bc5fe[_0xa7aa41(0x2fb)]();if(_0x4ef93b['length']===0x0||!_0x28c72e||!_0x32f12b)return;const _0x178425=[{'id':_0x24e526['id'],'params':{'unitId':_0x28c72e,'subUnitId':_0x1ff9ac,'selections':_0x4ffcf9[_0xa7aa41(0x2c8)](_0x4ef93b)}}],_0x58c567=this[_0xa7aa41(0x4ff)][_0xa7aa41(0x44c)](_0x424ff0,_0x178425);if(!_0x567165(_0x58c567))throw _0x58c567['error'];const _0xf9503a=(_0x419b26=(_0x1ffd58=_0x58c567['m2Prime'][0x0])==null?void 0x0:_0x1ffd58[_0xa7aa41(0x419)])==null?void 0x0:_0x419b26[_0xa7aa41(0x378)];Array[_0xa7aa41(0x23c)](_0xf9503a)&&_0xf9503a[_0xa7aa41(0x361)]&&this['_injector'][_0xa7aa41(0x48e)](_0x294dc9)['executeCommand'](_0x24e526['id'],{'unitId':_0x28c72e,'subUnitId':_0x1ff9ac,'selections':_0xf9503a});}};Ke=sr([lt(0x0,_0x5f357f(_0x45059e)),lt(0x1,_0x116203),lt(0x2,_0x7019b6)],Ke);const st=_0x1ab192(_0x27153b(0x310));var $s=(_0x14acde=>(_0x14acde[_0x14acde[_0x27153b(0x442)]=0x0]=_0x27153b(0x442),_0x14acde[_0x14acde[_0x27153b(0x1e9)]=0x1]=_0x27153b(0x1e9),_0x14acde))($s||{});const os=0x7530,as=_0x27153b(0x4cd);class nr extends _0x5c8ab1{constructor(){const _0x1aff1f=_0x27153b;super(),l(this,_0x1aff1f(0x415),_0x4ffcf9[_0x1aff1f(0x508)]()),l(this,'_selfUnitIDs',new Set()),l(this,_0x1aff1f(0x41d),new Map()),l(this,_0x1aff1f(0x23d),null),l(this,'_clearOtherTimers',new Map()),l(this,_0x1aff1f(0x4d0),new Map()),this[_0x1aff1f(0x20b)]();}['dispose'](){const _0x45cf14=_0x27153b;super[_0x45cf14(0x301)](),this[_0x45cf14(0x4f0)]['forEach']((_0xbe7965,_0x2ddbab)=>this[_0x45cf14(0x507)](_0x2ddbab)),this['_heartbeatTimer']&&window['clearInterval'](this[_0x45cf14(0x23d)]);}[_0x27153b(0x42b)](_0x2ff272){const _0x15f62e=_0x27153b;return this[_0x15f62e(0x4e8)](_0x2ff272)[_0x15f62e(0x229)](_0xea844d());}[_0x27153b(0x348)](_0xee2761){const _0x18064f=_0x27153b;this[_0x18064f(0x47a)][_0x18064f(0x38e)]===0x0&&this[_0x18064f(0x21f)](),this[_0x18064f(0x47a)]['add'](_0xee2761),this[_0x18064f(0x4ac)]({'type':0x0,'memberID':this[_0x18064f(0x415)],'unitIDs':[_0xee2761],'isForwarded':!0x1});}[_0x27153b(0x451)](_0x114b9){const _0x3649a2=_0x27153b;this[_0x3649a2(0x47a)][_0x3649a2(0x2c4)](_0x114b9),this[_0x3649a2(0x47a)]['size']===0x0&&this['_heartbeatTimer']&&window[_0x3649a2(0x479)](this[_0x3649a2(0x23d)]);}['_init'](){const _0x532d14=_0x27153b;this['disposeWithMe'](_0x6a3db3(_0x1202a7(window,_0x532d14(0x1fc))[_0x532d14(0x524)](_0x5ee2a0=>{const _0x382f46=_0x532d14;if(_0x5ee2a0[_0x382f46(0x1f8)]!==as||!_0x5ee2a0[_0x382f46(0x49a)])return;const _0x127e0f=JSON['parse'](_0x5ee2a0[_0x382f46(0x49a)]);this[_0x382f46(0x3d0)](_0x127e0f);}))),window['addEventListener']('unload',()=>this[_0x532d14(0x4ac)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x532d14(0x4f7)](this['_selfUnitIDs'])}));}[_0x27153b(0x3d0)](_0x344ca5){const _0x1c8ef7=_0x27153b;switch(_0x344ca5[_0x1c8ef7(0x250)]){case 0x0:this[_0x1c8ef7(0x3a5)](_0x344ca5);break;case 0x1:this[_0x1c8ef7(0x4b2)](_0x344ca5);break;case 0x2:this['_handleHeartbeatEvent'](_0x344ca5);break;}}[_0x27153b(0x3a5)](_0x1091dd){const _0x3c9548=_0x27153b,{unitIDs:_0x5f44fa,memberID:_0x50b337,isForwarded:_0x4837b6}=_0x1091dd;_0x5f44fa[_0x3c9548(0x28e)](_0x34994c=>{const _0x101284=_0x3c9548;if(!_0x4837b6&&this['_unitOnClients'][_0x101284(0x306)](_0x34994c)&&this['_ensureSubject'](_0x34994c)[_0x101284(0x26a)](0x1),!this[_0x101284(0x41d)][_0x101284(0x306)](_0x34994c)||!this[_0x101284(0x41d)]['get'](_0x34994c)[_0x101284(0x306)](_0x50b337)){const _0x4d5d02=this['_unitOnClients']['get'](_0x34994c)||new Set();_0x4d5d02[_0x101284(0x2e9)](_0x50b337),this['_unitOnClients'][_0x101284(0x34f)](_0x34994c,_0x4d5d02),this['_scheduleClearOtherTimer'](_0x50b337);}}),_0x4837b6||this[_0x3c9548(0x4ac)]({'type':0x0,'memberID':this[_0x3c9548(0x415)],'unitIDs':[...this[_0x3c9548(0x47a)]],'isForwarded':!0x0});}[_0x27153b(0x37a)](_0x4a9784){const _0x40485a=_0x27153b;this[_0x40485a(0x507)](_0x4a9784);const _0x4b6407=window[_0x40485a(0x409)](()=>{const _0x2e31d6=_0x40485a;this[_0x2e31d6(0x41d)]['forEach'](_0x3d16b1=>{const _0x2658d9=_0x2e31d6;_0x3d16b1[_0x2658d9(0x2c4)](_0x4a9784);});},os*0x2);this[_0x40485a(0x4f0)][_0x40485a(0x34f)](_0x4a9784,_0x4b6407);}[_0x27153b(0x507)](_0x29387d){const _0x13d3f5=_0x27153b;if(this[_0x13d3f5(0x4f0)]['has'](_0x29387d)){const _0x45e680=this[_0x13d3f5(0x4f0)][_0x13d3f5(0x48e)](_0x29387d);_0x45e680&&window['clearTimeout'](_0x45e680),this['_clearOtherTimers'][_0x13d3f5(0x34f)](_0x29387d,null);}}[_0x27153b(0x4b2)](_0x15a379){const _0x1564bf=_0x27153b,{memberID:_0x2b5594,unitIDs:_0x590f14}=_0x15a379;_0x590f14[_0x1564bf(0x28e)](_0x4a1476=>{const _0x4245d6=_0x1564bf;var _0x1c5f84;const _0x5a72bc=this[_0x4245d6(0x41d)][_0x4245d6(0x48e)](_0x4a1476);_0x5a72bc&&(_0x5a72bc['delete'](_0x2b5594),(_0x1c5f84=this[_0x4245d6(0x4e8)](_0x4a1476))==null||_0x1c5f84[_0x4245d6(0x26a)](_0x5a72bc[_0x4245d6(0x38e)]===0x0?0x0:0x1));}),this[_0x1564bf(0x507)](_0x2b5594);}['_handleHeartbeatEvent'](_0x3c5615){const _0x40086c=_0x27153b;this[_0x40086c(0x37a)](_0x3c5615['memberID']);}['_send'](_0x11de98){const _0x401c50=_0x27153b;localStorage[_0x401c50(0x428)](as,JSON[_0x401c50(0x30c)](_0x11de98));}[_0x27153b(0x21f)](){const _0x112ecc=_0x27153b;this[_0x112ecc(0x23d)]=window['setInterval'](()=>{const _0x504c4c=_0x112ecc;this['_send']({'type':0x2,'memberID':this[_0x504c4c(0x415)]});},os);}[_0x27153b(0x4e8)](_0x47cbca){const _0x38914d=_0x27153b;return this['_unitStatus'][_0x38914d(0x306)](_0x47cbca)||this['_unitStatus'][_0x38914d(0x34f)](_0x47cbca,new _0x5c80e6(0x0)),this[_0x38914d(0x4d0)][_0x38914d(0x48e)](_0x47cbca);}}function js(_0x11a91e){const _0x24072d=_0x27153b;let _0x18d6c9='';for(const _0x22b913 of _0x11a91e){const {startOffset:_0x454b88,endOffset:_0x228657,isActive:_0x371082}=_0x22b913;_0x18d6c9[_0x24072d(0x361)]&&(_0x18d6c9+=','),_0x18d6c9+=_0x454b88+':'+_0x228657+':'+(_0x371082?'1':'0');}return _0x18d6c9;}function rr(_0x5075a5){const _0x135e66=_0x27153b,_0x2ff6dd=_0x5075a5['split'](','),_0x30fcf8=[];for(const _0x2de771 of _0x2ff6dd){const [_0x116285,_0x40d7fa,_0x576818]=_0x2de771['split'](':');_0x30fcf8[_0x135e66(0x212)]({'startOffset':Number(_0x116285),'endOffset':Number(_0x40d7fa),'collapsed':_0x116285===_0x40d7fa,'isActive':_0x576818==='1'});}return _0x30fcf8[_0x135e66(0x31a)](_0x353e00=>_0x353e00[_0x135e66(0x28b)])||(_0x30fcf8[0x0][_0x135e66(0x28b)]=!0x0),_0x30fcf8;}class Bt extends _0x33a34d{constructor(){const _0x5b45c0=_0x27153b;super(...arguments),l(this,'_collabCursorState$',new _0x5c80e6(null)),l(this,_0x5b45c0(0x4b4),this['_collabCursorState$'][_0x5b45c0(0x529)]());}[_0x27153b(0x406)](_0x429d5e){const _0x1acb45=_0x27153b,{unitID:_0x519694,memberID:_0x564cc6,textRanges:_0x576678}=_0x429d5e,_0x200b4a=js(_0x576678),_0x53ac01={'unitID':_0x519694,'memberID':_0x564cc6,'selection':_0x200b4a};this[_0x1acb45(0x45d)][_0x1acb45(0x26a)](_0x53ac01);}}function _0x344c(){const _0x5186fd=['fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','file','sheetID','body','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','createSocket','_getAnchorBounding','/allowed','_drawRectRange','ERROR_IMAGE','getCurrent','on-line-single','_sendHeartbeatTimer','_initCommandExecutedListener','1330670XZuwIF','clearInterval','_selfUnitIDs','getCurrentUnitForType','_startTelemetryCollaborationNewChangeset','UnitEmbedded','_onCombEvent','getViewport','resourceIDs','bottom','Unknown\x20user','HEADER_MENU','getCurrentRevOfUnit','collaboration.closeRoom','capture','_eventUnsubscribe','getParam','COLLAB_WEB_SOCKET_URL','m2Prime','_substituteUndoStack','ONLINE','onTransformSelections','get','getConfig','_transformUndoRedoStack','list','_uiPartsService','_setupBeforeClosingHandler','JOIN','UNIVER_COLLABORATION_CLIENT_PLUGIN','c1Prime','getCurrentUser','_docStateChangeManagerService','init','newValue','encode','[CollaborationSession]','online','_backgroundColor','fetching\x20missing\x20changesets\x20from\x20','text','_handleHover','LIVESHARE_TERMINATE','allowed','SNAPSHOT_HAS_BEEN_REMOVED','updateOfflineData','FETCH_MISS','[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.','show','_sessionStatus$','CONNECTOR_DATA_TOO_LARGE','getCollabCursors$','_send','_config','getVpScrollXYInfoByPosToVp','updatePermissionObjEvent','subscribeEvent','_decreaseWaiting','_handleLeaveEvent','appendMutation','collabCursorState$','cursorInfo','collabStatus.synced','event$','_snapshotServerService','_loadSheet','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','clear','_clearLocalCache','_updateState','textRanges','children','createInstance','_onOffline','EXCHANGE_SIGN_URL_SERVER_URL_KEY','save\x20fail\x20reason\x20is\x20','patch','onRemoteChangeset','editing\x20status\x20changed\x20to','collaboration_new_changeset','/universer-api/snapshot/','/unit/','_updateSubUnitFromURLParams','getTime','socket\x20open.','ACTIVE_UNIT_EVENT_CHANNEL','SUBMIT_CHANGESET','INVALID_ARGUMENT','_unitStatus','_session','subunit','_schedule','YUUMI_RATE_OVER_LIMIT','_event$','saveSnapshot','replace','uni.network.url-service','FETCH_MISSING','univerjs-icon\x20univerjs-icon-','substring','getItem','_collaborationPaused','roles','setParam','closeSession','startRow','failed\x20to\x20apply\x20missed\x20changesets!','YUUMI_URL_COL_OUT_OF_RANGE','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','unsubscribe','blue400','onMouseMove','_ensureSubject','UNIVER_SHEET','_createHandler','[OfflineState]:\x20received\x20changeset.','assignAColorForMemberID','path','_initEventListeners','NOT_FOUND','_clearOtherTimers','onTransformRemoteChangesetByIMECache','LIVESHARE_NEW_HOST','_clearCollaborationTimeoutTimer','_docSkeletonManagerService','INGEST','updateCursorEvent','from','saveSheetBlock','AWAITING_WITH_PENDING','_onUserLeave','SNAPSHOT_URL_KEY','_name','endRow','getCurrentSelections','_transformService','_clearRedo','signUrlServerUrl','searchParams','toString','backgroundColor','UNAUTHENTICATED','isEditing','_removeClearOtherTimer','generateRandomId','pluginName','LICENSE_MAX_UNITS_EXCEEDED','current','error$','snapshotServerUrl','responseType','_context','duration','originalMeta','[CollaborationState]:\x20apply\x20error!','sessionStatus','symbol','_startCollaboration','\x20in\x20_schedule.','RETRY_CONNECTING_MAX_COUNT','_getLoginPath','_commentService','_singleActiveUnitService','_renderManagerService','endColumn','saveOfflineData','SEND_CHANGESET_TIMEOUT','42iUQWHl','onlyLocal','objectID','_disableEditing','compose','subscribe','put','_onConnectionOpen','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','addImageSourceCache','asObservable','AWAITING','commentUpdate$','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','url','fetchMiss','UNRECOGNIZED','exhaustSavingTask','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','getDeserializedSheetBlock','FileId','black','_rescheduleHeartbeat','location','{fileID}','focused$','_clearScheduledTask','CHANGESET_REVISION_CONFILICT','getCellPositionByOffset','_updateLocalCursor','removeParam','json','_render','complete','_lastPointer','startTime','_redoStacks','univer-pro.collaboration-client-socket-service','saveChangeset','1090365mQFDNW','UNIVER_UNKNOWN','map','_memberService','_onConnectionFailed','_queuedRemoteChangesets','_onLocalMutation','_getAPIPrefix','RECV','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_change$','loginUrlKey','catch','LOGIN_URL_KEY','#FFF','OffLineSingle','sheets','getOwnPropertySymbols','csRejEvent','_online','unit','UUID','_initUnitPermissionChange','headers','getOwnPropertyDescriptor','currentSkeleton$','_clearTimeoutTimer','_onCursorUpdate','none','executeCommand','addObject','APPLY_REJECT','_socket','concat','OTHER_CLIENTS_EDITING','error','SNAPSHOT_INVALID_SNAPSHOT','onRemoteRej','origin','PERMISSION_DENIED','getImage','unitID','selection','ERROR_EXCEED_SIZE','incrementRevOfUnit','off-line-single_clip0_910_343','column','/-/object/-/batch_allowed','href','key','DeleteRangeMoveLeftCommandId','liveShareNewHost','UNIVER_SLIDE','storage','_transformSelections','_range','state','status$','_urlService','fill','LIVESHARE_OPERATION','assign','height','collab-text-range-','_getScale','onTransformIME','toggleOffline','_transformStack','_init','session.collaboration-timeout','\x0aCurrent:\x20','_getCtorByUniverType','close$','_state$','_ws','push','_handler','_getUploadFileURL','_collaborationController','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_colorAssignService','[DataLoaderController]','_colorIndex','getDocRanges','reverse','UNKNOWN_CMD','[OfflineState]:\x20received\x20rejection.','skeleton','_scheduleHeartbeat','append','MSG_FOR_ERROR','flatMap','_status$','toRgbString','_syncEditingCollabCursorService','requestParams','actions','_state','pipe','now','urlChange$','ranges','onTransformChange$','340TqJLbI','OFFLINE','getCollabEntity','4589922ONmXQQ','_compressMutationService','_getDownloadEndpointURL','_onCursorDelete','encodeURIComponent','filter','_onRemoteChangeset','LIVESHARE_REQUEST_HOST','lineTo','/block/','_socket$','isArray','_heartbeatTimer','0\x200\x2017\x2016','_createInitialState','CHANGESET_REJ','APPLY_NON_SEQUENTIAL_REVISION','getSheetBySheetId','resolve','collabStatus.offline','SUCCUSS','univer-online-status-icon','eventID','className','_initStatusComponent','transformUndoRedo','_httpService','getMemberID','_sendingTimer','/universer-api/comb','univer-online','type','_incrementRevisionNumber','debug','_initRequestHeader','cmd','LICENSE_EXPORT_SIZE_EXCEEDED','color','pushState','close','[PendingState]:\x20unhandled\x20univer\x20type:\x20','getUnitId','HttpImport','_hover','_shouldReportTelemetry','reject','getAncestorScale','_anchorDot','width','joinRsp','members','conflict.title','onCommentUpdate','_initStatusListener','gold400','getActiveSheet','_color','next','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_localCacheService','_getSendChangesetTimeout','_userManagerService','_entityInit$','getRenderById','post','updatePermissionPoint','_disabled','_saveTaskMap','_permissionService','COMMENT_UPDATE','InsertRangeMoveDownCommandId','objectType','_registerDependencies','_onMessage','_onRecvEvent','state$','onReady','setUndoRedoMutationParamsCache','getFocusedUnit','onload','transformMutation','USERS_LEAVE','extend','_timeoutTimer','downloadEndpointUrl','_localeService','max','objects','copyFileMeta','_undoStacks','isActive','transformByState','_revisionService','forEach','sessionStatus$','_startSheetCollabCursor','target','find','authzUrl','APPLY_PERMISSION_DENIED','_snapshotService','_retryConnectingTimer','engine','icon','_scene','_socketService','hidden','c2Prime','_createSocket','uploadFileServerUrl','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','open$','updateCollaborator','getUnit','_unitID','HEARTBEAT','title','readAsDataURL','roomMembers$','slice','_remoteChangesetQueue','registerOnClose','listCollaborators','awaiting_with_pending','_cursor','_injector','/-/object/list','InsertRangeMoveRightCommandId','_unlockTransition','getSheetBlock','_onRemoteRejected','PERMISSION_REJ','collaboration.single-unit.warning','baseRev','addObjects','_imageSourceCache','[SyncedState]:\x20received\x20rejection.','BASE64','getUnhiddenWorksheets','LIVESHARE_FETCH_OPERATIONS','_removeCollabCursors','string','_collabCursorController','_getSheetObject','snapshot','FAIL','FromArray','delete','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','getMember','CHANGESET_ACK','deepClone','create','_joinRoom','#fff','Undefined','...','_setupSubUnitSync','min','trim','url(#$1','_exhaustRemoteChangesetQueue','LOCAL_CACHE_INTERVAL','measureText','_socketReady','whenReady','_transitionLocked','getActiveRange','_onConflict','memberID','_refreshCollabCursors','_tryEnsureSocket','defIds','PENDING','connection\x20error','setShapeProps','values','_checkMissing','socket$','newCsEvent','RemoveColCommandId','update','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','liveShareOperation','add','37962EizJbi','arc','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','evenodd','SHOULD_CLOSE_CONN','_isPermissionRej','action','MUTATION','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','getWorkbookSelections','findNodePositionByCharIndex','MoveRangeCommandId','_type','apply','_applyRemoteChangeset','attrs','CONFLICT','getSheetId','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','interceptor','collabStatus.syncing','onMissingChangesets','_collabSessionService','dispose','collabStatus.fetchMiss','_retryCount','retryConnectingInterval','UnitSnapshot','has','top','_acknowledgedAwaitingChangeset','_listenToOfflineEvent','DeleteRangeMoveUpCommandId','save','stringify','_collaborationSessionService','_updateStatus','awaitingChangeset','univer-pro.collaboration-client.single-active-unit-service','onCommandExecuted','indexOf','auth.needGotoLoginAlert','_undoRedoService','conflict.content','joinEvent','COMPLETION_FINISHED','registerHTTPInterceptor','_onRemoteACK','some','onPointerLeave$','hovered','InsertColCommandId','[UniverCollaborationClientPlugin]','message$','unshift','setConfig','_onFetchMissResult','_startDocCollabCursor','drawWith','prototype','1em','_getSaveTimeout','onPointerMove$','fillStyle','addEventListener','INTERNAL_ERROR','_transformIMECache','infoRsp','univer-online-status','_HTTPService','onRemoteAck','Warning','_listenToOnlineEvent','colorChannel1','image/gif','_commentUpdate$','_saveCache','triggerDblclick','YUUMI_SUBSCRIPTION_NOT_FOUND','fetchThroughInterceptors','name','\x0aAfter:\x20','_docTransformIMECacheService','onRendered','_commandService','div','all','registerRenderModule','_getAPIPrefixPath','getSkeleton','POST','roomInfos','_shapes','_initResize','editingUnit','onPointerEnter$','_scheduleTimestamp','DEFAULT_FILE_NAME','COMPRESS_MUTATION_APPLY','_cursorShapes','setCurrentUser','set','visibilityState','cursorInfo$','fillRule','permissionRejEvent','currentColor','getTypeOfUnitDisposed$','registerComponent','reconnect','with','dispose$','_socketMessageSubscription','_waitForHeartbeatResponse','unit-cache-','HEARTBEAT_INTERVAL','purple300','_candidateSocket','UPDATE_CURSOR','length','_submitChangeset','send','_initModules','fromCollab','NOT_COLLAB','[CollaborationSessionService]','defineProperty','43173EzXRJs','shouldCloseConn','_transformRemoteChangesetByIMECache','objectActions','ALREADY_EXISTS','transformSelections','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_configService','_cursors','collaboration-client.config','_showConflictNotification','updateMember','changesets','getTypeOfUnitAdded$','startColumn','selections','COMPRESS_MUTATION_SEND','_scheduleClearOtherTimer','_getRedoStack','_drawAnchor','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_logService','refreshPermission','fillText','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','M0\x200H16V16H0z','_updateLocalCache','_localStorageService','_sendHeartbeat','LICENSE_IMPORT_SIZE_EXCEEDED','getRangePointData','makeDirty','enableLocalCache','_telemetryInfo','collaboration-session-retry','_members','history','size','transform','[OfflineState]:\x20received\x20acknowledgement.','_scheduleSaving','_scheduleCollaborationTimeoutTimer','onSyncEditingCollabCursor','_hovered','stopTime','USERS_ENTER','UPDATE_PERMISSION_OBJ','getMergeData','/universer-api/snapshot','collabStatus.notCollab','_onUserJoin','/role','getRoom','[CollaborationSessionService]:\x20socket\x20error','_instanceService','_onJoinRoomEvent','onlineStatusTitle','propertyIsEnumerable','_replaceFileID','tag','_handleJoinEvent','commentUpdateEvent','resend','onSendChangeset','requireSession','hide','every','_clearUndo','_throwTelemetryCollaborationNewChangeset','_waitCount','restore','_registerRenderDependencies','resize','removeMember','LICENSE_DISTRO_REJECTED','_sheetTransformSelectionsService','_sheetSkeletonManagerService','_roomMembers','onlineStatus','onStarting','enableAuthServer','awaiting','HttpExport','collaboration-client.offline-data-not-saved','YUUMI_UNABLE_LOAD_URL','8119839ROoAxP','idSuffix','getInterceptPoints','_messageService','routeKey','csAckEvent','SYNCED','0\x200\x2016\x2016','unknown','_beforeCloseService','getResourcesRequest','on-line-single_clip0_910_349','x-univer-host','_cachedData','collaborators','loadOfflineData','transformRemoteChangeset','LEAVE','_handleEvent','_themeService','[CollaborationEntity]','_telemetryService','_createInitialStateImpl','reduce','/fetchmissing?from=','_awaitingChangeset','doc.mutation.rich-text-editing','range','xlink:href','loadSheet','includes','_roomMembers$','_initMergeInterceptor','getValue','code','activeSheet$','_labelPosition','status','hasOwnProperty','loadDoc','result','Error','confirm','_cursorInfo$','round','_collaborationTimeoutTimer','_univerInstanceService','transformChangesets','submit\x20changeset\x20error!','_updateCollabCursors','_removeRoom','createElement','_pendingMutations','conflict','&assign=','_transformUndoredo','userID','session.connection-failed','[CollaborationUndoRedoService]','unitId\x20is\x20not\x20found','/new_changes','UNKNOWN_CODE','image/jpeg','_lockTransition','univer-offline','10822168QczgyL','_entities','_anchor','synced','_drawTextRange','pauseCollaboration','getUnitType','syncEditingCollabCursor','_toggleOnline','_replayCachedMutations','setTimeout','then','parse','toggleOnline','setActiveRange','_onRefRangeChange','?url=','isPermissionRej','UNIVER_DOC','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_getCurrentRevision','_id','HELLO','4CRsHRL','offline','params','?size=','_http','rgba(255,\x20255,\x20255,\x200.01)','_unitOnClients','transformIMECache','_notificationService','_draw','_getSignURL','_assignedColors','defs','image/png','disableLocalCache','labelPosition','mutations','setItem','_syncEditingCollabCursor','_tryReconnect','getUnitStatus$','\x20to\x20','_getSnapshotAPIPrefix','_transformPreviousActiveRange','putCollaborators','_fetchMissChangesets','_sessions','startsWith','/object/','row','url(#on-line-single_clip0_910_349)','data','/universer-api/file/{fileID}/sign-url','session.room-full','clipPath','translate(.97)','displayName','_getUndoStack','_executeRemoteChangeset','getUndoRedoMutationParamsCache','off-line-single','m1Prime','UNIVER_PROJECT','NO_OTHER_CLIENTS_EDITING','call','disposeWithMe','getRelativeToViewportCoord','change$','IDLE','fetch_missing','PSEUDO_FETCH_MISSING_RESULT','_substituteRedoStack','entries','transformMutationsWithChangeset','ERROR_IMAGE_TYPE','revision','pending','_stopTelemetryCollaborationNewChangeset','disposeUnit','/collaborator','onMissedChangesetFetched','fetchMissingChangesets','_textBubble','unitId','svg','_clearHeartbeatTimer','_toggleOffline','_hideTimer','/resources','contains','_collabCursorState$','localeService','rev','collab-rect-range-','setAlpha','_docSyncEditingCollabCursorService','font','_loadDoc','collaMsg','_updateURLWithCurrentState','_refRangeService','registerRefRange','session'];_0x344c=function(){return _0x5186fd;};return _0x344c();}var or=Object[_0x27153b(0x368)],ar=Object[_0x27153b(0x1df)],cr=(_0x4479e1,_0x44848e,_0x5e3548,_0x1b96ca)=>{const _0x5c1288=_0x27153b;for(var _0x22f8f8=_0x1b96ca>0x1?void 0x0:_0x1b96ca?ar(_0x44848e,_0x5e3548):_0x44848e,_0x3d1c34=_0x4479e1[_0x5c1288(0x361)]-0x1,_0x172e2f;_0x3d1c34>=0x0;_0x3d1c34--)(_0x172e2f=_0x4479e1[_0x3d1c34])&&(_0x22f8f8=(_0x1b96ca?_0x172e2f(_0x44848e,_0x5e3548,_0x22f8f8):_0x172e2f(_0x22f8f8))||_0x22f8f8);return _0x1b96ca&&_0x22f8f8&&or(_0x44848e,_0x5e3548,_0x22f8f8),_0x22f8f8;},cs=(_0x292c2e,_0x51578e)=>(_0x2a87d5,_0x169f23)=>_0x51578e(_0x2a87d5,_0x169f23,_0x292c2e);let Xe=class{constructor(_0x758e20,_0x50a4c9){const _0x46a631=_0x27153b;this[_0x46a631(0x2ae)]=_0x758e20,this[_0x46a631(0x4ff)]=_0x50a4c9;}[_0x27153b(0x36e)](_0x2302bb){const _0x74f8fc=_0x27153b;var _0x53d3d8;const _0x2d2da6=this['_injector'][_0x74f8fc(0x48e)](_0x5dd07),_0x6ab8ba=(_0x53d3d8=_0x2d2da6[_0x74f8fc(0x21a)]())!=null?_0x53d3d8:[];if(_0x6ab8ba['length']===0x0)return;const _0x2465d9=[{'id':_0x74f8fc(0x3d8),'params':{'unitId':_0x2302bb[_0x74f8fc(0x1f0)],'actions':null,'textRanges':_0x6ab8ba}}],_0x1068ba=this[_0x74f8fc(0x4ff)][_0x74f8fc(0x44c)](_0x2302bb,_0x2465d9);if(!_0x567165(_0x1068ba))throw _0x1068ba[_0x74f8fc(0x1ea)];const _0x195447=_0x1068ba[_0x74f8fc(0x48a)][0x0][_0x74f8fc(0x419)][_0x74f8fc(0x4be)];Array[_0x74f8fc(0x23c)](_0x195447)&&_0x195447[_0x74f8fc(0x361)]&&_0x2d2da6['replaceTextRanges'](_0x195447,!0x1);}};Xe=cr([cs(0x0,_0x5f357f(_0x45059e)),cs(0x1,_0x116203)],Xe);const hr=new Set([_0x33eb2d['id']]);function hs(_0x3eb342,_0x18d241,_0x409df5,_0x3f2e04,_0x56fa15){const _0x5b751a=_0x27153b;var _0x27d123,_0x2e2bd3,_0x4bda94,_0x24dc37;const _0x49c02c=[];for(const _0x31c42c of _0x3eb342)if(hr[_0x5b751a(0x306)](_0x31c42c['id'])){if(_0x49c02c[_0x5b751a(0x361)]>0x0)break;_0x49c02c[_0x5b751a(0x212)](_0x31c42c);break;}else _0x49c02c['push'](_0x31c42c);const _0x5417ae=(_0x2e2bd3=(_0x27d123=_0x56fa15['getCurrentUser']())==null?void 0x0:_0x27d123['userID'])!=null?_0x2e2bd3:_0x5b751a(0x3c6),_0x303a2a=(_0x24dc37=(_0x4bda94=_0x56fa15[_0x5b751a(0x497)]())==null?void 0x0:_0x4bda94[_0x5b751a(0x2da)])!=null?_0x24dc37:_0x5b751a(0x3c6);return{'changeset':{'unitID':_0x18d241,'type':_0x19cf4b(_0x409df5[_0x5b751a(0x405)](_0x18d241)),'baseRev':_0x3f2e04['getCurrentRevOfUnit'](_0x18d241),'revision':0x0,'userID':_0x5417ae,'memberID':_0x303a2a,'mutations':_0x49c02c},'pendingMutations':_0x3eb342[_0x5b751a(0x2a8)](_0x49c02c[_0x5b751a(0x361)])};}function lr(_0xe94736,_0x3e0a15,_0x19fab9,_0x4b0597,_0x164822){const _0x311e96=_0x27153b;var _0x50a44c,_0x58adf7,_0x3b1032,_0x61c0ac;const _0x508f72=[_0xe94736['reduce']((_0xda7c98,_0x1c7b17)=>{const _0x5bf785=_0x5b57;var _0x2e5b87;const {id:_0x40df2e}=_0xda7c98,{id:_0x3abad2,type:_0x1c4eb0}=_0x1c7b17,_0x5b3a07=(_0x2e5b87=_0xda7c98[_0x5bf785(0x419)])!=null?_0x2e5b87:{'actions':null},_0xfed389=_0x1c7b17[_0x5bf785(0x419)];if(_0x40df2e&&_0x40df2e!==_0x3abad2)throw new Error(_0x5bf785(0x4ba)+_0x40df2e+'\x20-\x20'+_0x3abad2+'.');return{..._0xda7c98,'id':_0x3abad2,'type':_0x1c4eb0,'params':{'unitId':_0xfed389[_0x5bf785(0x456)],'textRanges':_0xfed389['textRanges'],'actions':_0x2005ce[_0x5bf785(0x523)](_0x5b3a07['actions'],_0xfed389[_0x5bf785(0x227)])}};},{})],_0x1e14b9=(_0x58adf7=(_0x50a44c=_0x164822[_0x311e96(0x497)]())==null?void 0x0:_0x50a44c[_0x311e96(0x3f6)])!=null?_0x58adf7:_0x311e96(0x3c6),_0x2e4282=(_0x61c0ac=(_0x3b1032=_0x164822[_0x311e96(0x497)]())==null?void 0x0:_0x3b1032[_0x311e96(0x2da)])!=null?_0x61c0ac:_0x311e96(0x3c6);return{'changeset':{'unitID':_0x3e0a15,'type':_0x19cf4b(_0x19fab9[_0x311e96(0x405)](_0x3e0a15)),'baseRev':_0x4b0597[_0x311e96(0x484)](_0x3e0a15),'revision':0x0,'userID':_0x1e14b9,'memberID':_0x2e4282,'mutations':_0x508f72},'pendingMutations':[]};}const _r={'id':_0x51d997['id'],'type':_0x2b2e3e['MUTATION'],'params':{}};var ur=Object['defineProperty'],dr=Object[_0x27153b(0x1df)],le=(_0x3c87c1,_0x1e2b5c,_0x3f4c5b,_0x540957)=>{for(var _0x28a6ad=_0x540957>0x1?void 0x0:_0x540957?dr(_0x1e2b5c,_0x3f4c5b):_0x1e2b5c,_0x42252d=_0x3c87c1['length']-0x1,_0x16608d;_0x42252d>=0x0;_0x42252d--)(_0x16608d=_0x3c87c1[_0x42252d])&&(_0x28a6ad=(_0x540957?_0x16608d(_0x1e2b5c,_0x3f4c5b,_0x28a6ad):_0x16608d(_0x28a6ad))||_0x28a6ad);return _0x540957&&_0x28a6ad&&ur(_0x1e2b5c,_0x3f4c5b,_0x28a6ad),_0x28a6ad;},m=(_0x454aaa,_0x3ef96e)=>(_0x4ba95c,_0x434546)=>_0x3ef96e(_0x4ba95c,_0x434546,_0x454aaa),w=(_0x1ce11a=>(_0x1ce11a[_0x27153b(0x366)]='not_collab',_0x1ce11a[_0x27153b(0x3c4)]=_0x27153b(0x402),_0x1ce11a[_0x27153b(0x2de)]=_0x27153b(0x44f),_0x1ce11a['AWAITING']=_0x27153b(0x3ba),_0x1ce11a[_0x27153b(0x4f9)]='awaiting_with_pending',_0x1ce11a[_0x27153b(0x4a6)]=_0x27153b(0x448),_0x1ce11a[_0x27153b(0x2fa)]=_0x27153b(0x3f3),_0x1ce11a[_0x27153b(0x22f)]='offline',_0x1ce11a))(w||{});class _e{constructor(_0x5b1d51,_0x178a56,_0xa8a4dc,_0x5b0fec,_0x3e1a35,_0x48874c,_0x1017a2,_0x3bfe46,_0x2f61a4){const _0x1a453b=_0x27153b;l(this,_0x1a453b(0x3d7),null),l(this,'_pendingMutations',[]),(this[_0x1a453b(0x1f0)]=_0x5b1d51,this[_0x1a453b(0x250)]=_0x178a56,this[_0x1a453b(0x213)]=_0x3e1a35,this[_0x1a453b(0x33e)]=_0x48874c,this['_undoRedoService']=_0x1017a2,this['_revisionService']=_0x3bfe46,this[_0x1a453b(0x26c)]=_0x2f61a4,this[_0x1a453b(0x3d7)]=_0xa8a4dc,this[_0x1a453b(0x3f2)]=_0x5b0fec);}[_0x27153b(0x2e2)](_0x4fa32c){const _0x4894a5=_0x27153b,_0x3fcc4e=this[_0x4894a5(0x28d)][_0x4894a5(0x484)](this[_0x4894a5(0x1f0)]);return _0x4fa32c[_0x4894a5(0x44e)]>_0x3fcc4e+0x1?(this['_handler'][_0x4894a5(0x2ff)]({'from':_0x3fcc4e,'to':_0x4fa32c['revision']-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x14b9d7){const _0x4c2a50=_0x27153b;this[_0x4c2a50(0x314)]['transformUndoRedo'](this[_0x4c2a50(0x1f0)],_0x14b9d7);}[_0x27153b(0x1fd)](_0x4b5a50){const _0x2ae9b4=_0x27153b;var _0x7895be,_0x133a0b;(_0x133a0b=(_0x7895be=this[_0x2ae9b4(0x213)])[_0x2ae9b4(0x48d)])==null||_0x133a0b[_0x2ae9b4(0x443)](_0x7895be,_0x4b5a50);}[_0x27153b(0x32c)](_0x33f364){const _0x4e4b86=_0x27153b;var _0x58312c,_0xf5e55d;return(_0xf5e55d=(_0x58312c=this[_0x4e4b86(0x213)])[_0x4e4b86(0x208)])==null?void 0x0:_0xf5e55d[_0x4e4b86(0x443)](_0x58312c,_0x33f364);}[_0x27153b(0x36b)](_0x38e202){const _0x5e75af=_0x27153b;var _0x10d56d,_0x49b3ef,_0x4bd400;return(_0x4bd400=(_0x49b3ef=(_0x10d56d=this[_0x5e75af(0x213)])[_0x5e75af(0x4f1)])==null?void 0x0:_0x49b3ef['call'](_0x10d56d,_0x38e202))!=null?_0x4bd400:_0x38e202;}[_0x27153b(0x429)](_0x2b8874){const _0x3c9313=_0x27153b;var _0x1eeee9,_0x1cdd15;if(this[_0x3c9313(0x250)]===H[_0x3c9313(0x411)]){const {unitID:_0x1483fe,mutations:_0xbbff1,memberID:_0x3c332d}=_0x2b8874,_0x26e922=_0xbbff1[0x0][_0x3c9313(0x419)]['textRanges'];Array[_0x3c9313(0x23c)](_0x26e922)&&_0x26e922['length']>0x0&&((_0x1cdd15=(_0x1eeee9=this[_0x3c9313(0x213)])['onSyncEditingCollabCursor'])==null||_0x1cdd15['call'](_0x1eeee9,{'unitID':_0x1483fe,'memberID':_0x3c332d,'textRanges':_0x26e922}));}}[_0x27153b(0x383)](){const _0x18f0c7=_0x27153b;this[_0x18f0c7(0x26c)][_0x18f0c7(0x4a5)](this[_0x18f0c7(0x1f0)],this[_0x18f0c7(0x250)],this[_0x18f0c7(0x3d7)],this[_0x18f0c7(0x3f2)]);}[_0x27153b(0x414)](){const _0x372eec=_0x27153b;return this[_0x372eec(0x28d)][_0x372eec(0x484)](this[_0x372eec(0x1f0)]);}['_incrementRevisionNumber'](){const _0x552ae2=_0x27153b;this[_0x552ae2(0x28d)][_0x552ae2(0x1f3)](this[_0x552ae2(0x1f0)]);}['_executeRemoteChangeset'](_0x289ea7){const _0x389747=_0x27153b;var _0x4e33d0;const _0x2df304=this[_0x389747(0x36b)](_0x289ea7),_0x5b586a=_0x47656c(_0x2df304[_0x389747(0x427)],this[_0x389747(0x33e)],{'fromCollab':!0x0});if(!_0x5b586a[_0x389747(0x3e6)])throw _0x5b586a[_0x389747(0x1ea)]instanceof Error?_0x5b586a[_0x389747(0x1ea)]:new Error((_0x4e33d0=_0x5b586a[_0x389747(0x1ea)])!=null?_0x4e33d0:_0x389747(0x512));this[_0x389747(0x32c)](_0x2df304),this[_0x389747(0x3f5)](_0x289ea7),this[_0x389747(0x1fd)](_0x2df304),this['_syncEditingCollabCursor'](_0x2df304),this[_0x389747(0x251)]();}}let Se=class extends _e{constructor(_0x1e7e79,_0x56570f,_0x241ada,_0x48f742,_0x18a357,_0x18c87f,_0x11c6ce,_0x2fa8be,_0x4a6caa,_0x11045d){const _0x5dc734=_0x27153b;super(_0x1e7e79,_0x56570f,null,[],_0x241ada,_0x2fa8be,_0x11c6ce,_0x48f742,_0x18a357),l(this,'status',_0x5dc734(0x402)),(this[_0x5dc734(0x2ae)]=_0x18c87f,this[_0x5dc734(0x37e)]=_0x4a6caa,this['_transformService']=_0x11045d);}[_0x27153b(0x4b3)](_0x2e2af0){const _0xb5240a=_0x27153b,_0x441ab3=this[_0xb5240a(0x2ae)][_0xb5240a(0x4c0)](K,this[_0xb5240a(0x1f0)],this[_0xb5240a(0x250)],[_0x2e2af0],this[_0xb5240a(0x213)]);return _0x441ab3[_0xb5240a(0x4d3)](),_0x441ab3[_0xb5240a(0x383)](),_0x441ab3;}[_0x27153b(0x4c5)](_0x40512a){const _0x42ccc8=_0x27153b;if(this[_0x42ccc8(0x2e2)](_0x40512a))return this[_0x42ccc8(0x2ae)][_0x42ccc8(0x4c0)](k,this[_0x42ccc8(0x1f0)],this[_0x42ccc8(0x250)],null,[],null,[_0x40512a],this[_0x42ccc8(0x213)]);try{const _0x58ad5e=this[_0x42ccc8(0x4ff)][_0x42ccc8(0x44c)](_0x40512a,[_r]);if(_0x567165(_0x58ad5e)){const {c1Prime:_0x29480b}=_0x58ad5e;return this['_executeRemoteChangeset'](_0x29480b),this;}throw _0x58ad5e[_0x42ccc8(0x1ea)];}catch(_0x298dd5){return this[_0x42ccc8(0x37e)][_0x42ccc8(0x1ea)](_0x298dd5),this['_onConflict'](!0x1);}}[_0x27153b(0x2d9)](_0x38104d){const _0x131ba0=_0x27153b;return this['_injector'][_0x131ba0(0x4c0)](Q,this[_0x131ba0(0x1f0)],this[_0x131ba0(0x250)],null,[],this['_handler'],_0x38104d);}['onRemoteAck'](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x27153b(0x1ec)](){const _0x42ac0e=_0x27153b;throw new Error(_0x42ac0e(0x2b9));}[_0x27153b(0x209)](){const _0x29ee36=_0x27153b;return this[_0x29ee36(0x2ae)]['createInstance'](ee,this['unitID'],this[_0x29ee36(0x250)],null,[],this[_0x29ee36(0x213)]);}['toggleOnline'](){return this;}[_0x27153b(0x3a7)](){const _0x5c8fd8=_0x27153b;throw new Error(_0x5c8fd8(0x46e));}[_0x27153b(0x1af)](){const _0x310466=_0x27153b,_0x25fa0b=this[_0x310466(0x28d)][_0x310466(0x484)](this[_0x310466(0x1f0)]);return this['_handler'][_0x310466(0x2ff)]({'from':_0x25fa0b,'to':0x0}),this[_0x310466(0x2ae)]['createInstance'](k,this[_0x310466(0x1f0)],this['type'],null,[],null,[],this['_handler']);}};Se=le([m(0x3,_0x5f357f(_0x34bed5)),m(0x4,_0x5f357f(D)),m(0x5,_0x5f357f(_0x45059e)),m(0x6,_0x298901),m(0x7,_0x294dc9),m(0x8,_0x46022f),m(0x9,_0x116203)],Se);let K=class extends _e{constructor(_0xb62d23,_0x21dad5,_0x5605b4,_0x346af6,_0x46e30d,_0x392339,_0x1139d5,_0x52b6b0,_0x23cdc7,_0x3f19e6,_0x2c2261,_0x467a82,_0x11d025,_0x2469bb){const _0x519b8b=_0x27153b;super(_0xb62d23,_0x21dad5,null,_0x5605b4,_0x346af6,_0x3f19e6,_0x2469bb,_0x392339,_0x1139d5),l(this,_0x519b8b(0x3e3),'pending'),l(this,_0x519b8b(0x34a),null),l(this,'_sendingTimer',null),(this[_0x519b8b(0x2ae)]=_0x46e30d,this[_0x519b8b(0x1ca)]=_0x52b6b0,this[_0x519b8b(0x37e)]=_0x23cdc7,this[_0x519b8b(0x370)]=_0x2c2261,this[_0x519b8b(0x4ff)]=_0x467a82,this[_0x519b8b(0x3ec)]=_0x11d025);}[_0x27153b(0x4b3)](_0x44874e){const _0x3dac8f=_0x27153b;return this[_0x3dac8f(0x3f2)][_0x3dac8f(0x212)](_0x44874e),this[_0x3dac8f(0x383)](),this;}[_0x27153b(0x4c5)](_0x57c9eb){const _0xb9840b=_0x27153b;if(this['_checkMissing'](_0x57c9eb))return this[_0xb9840b(0x1ba)](),this['_injector'][_0xb9840b(0x4c0)](k,this[_0xb9840b(0x1f0)],this[_0xb9840b(0x250)],null,this['_pendingMutations'],null,[_0x57c9eb],this[_0xb9840b(0x213)]);try{const _0x4b9aff=this[_0xb9840b(0x4ff)]['transformMutationsWithChangeset'](_0x57c9eb,this[_0xb9840b(0x3f2)]);if(_0x567165(_0x4b9aff)){const {c1Prime:_0xa73c91,m2Prime:_0x137f67}=_0x4b9aff;this[_0xb9840b(0x43d)](_0xa73c91);const _0x47bc34=this[_0xb9840b(0x2ae)]['createInstance'](K,this[_0xb9840b(0x1f0)],this['type'],_0x137f67,this[_0xb9840b(0x213)]);return this[_0xb9840b(0x1ba)](),_0x47bc34[_0xb9840b(0x4d3)](this[_0xb9840b(0x34a)]?Math[_0xb9840b(0x287)](0x0,new Date()[_0xb9840b(0x4cb)]()-this['_scheduleTimestamp']):this[_0xb9840b(0x26d)]()),_0x47bc34;}throw _0x4b9aff[_0xb9840b(0x1ea)];}catch(_0x94206f){return this[_0xb9840b(0x37e)][_0xb9840b(0x1ea)](_0x94206f),this['_onConflict'](!0x1);}}[_0x27153b(0x330)](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x27153b(0x1ec)](){throw new Error('[PendingState]:\x20received\x20rejection.');}[_0x27153b(0x209)](){const _0x100cf3=_0x27153b;return this[_0x100cf3(0x1ba)](),this[_0x100cf3(0x2ae)][_0x100cf3(0x4c0)](ee,this['unitID'],this[_0x100cf3(0x250)],null,this[_0x100cf3(0x3f2)],this[_0x100cf3(0x213)]);}[_0x27153b(0x40c)](){return this;}[_0x27153b(0x4d3)](_0x555401){const _0x18d9dc=_0x27153b,_0x24d44f=_0x555401!=null?_0x555401:this['_getSendChangesetTimeout']();this[_0x18d9dc(0x34a)]=new Date()[_0x18d9dc(0x4cb)](),this['_sendingTimer']=window['setTimeout'](()=>{const _0x3aee94=_0x18d9dc;this[_0x3aee94(0x1ba)]();let _0x33f28b=null;switch(this['type']){case H[_0x3aee94(0x4e9)]:{_0x33f28b=hs(this[_0x3aee94(0x3f2)],this['unitID'],this['_univerInstanceService'],this[_0x3aee94(0x28d)],this[_0x3aee94(0x1ca)]);break;}case H[_0x3aee94(0x411)]:{this[_0x3aee94(0x3f2)][_0x3aee94(0x3ab)](_0x4cb2c5=>_0x4cb2c5['id']===_0x5f459a['id'])?_0x33f28b=lr(this['_pendingMutations'],this['unitID'],this['_univerInstanceService'],this[_0x3aee94(0x28d)],this[_0x3aee94(0x1ca)]):_0x33f28b=hs(this[_0x3aee94(0x3f2)],this['unitID'],this['_univerInstanceService'],this['_revisionService'],this['_memberService']);break;}default:throw new Error(_0x3aee94(0x259)+this[_0x3aee94(0x250)]+_0x3aee94(0x516));}const {changeset:_0x3ff568,pendingMutations:_0x22ae56}=_0x33f28b;this[_0x3aee94(0x213)][_0x3aee94(0x3a8)](_0x3ff568);const _0x3c9ea6=_0x22ae56[_0x3aee94(0x361)]?this['_injector']['createInstance'](X,this['unitID'],this[_0x3aee94(0x250)],_0x3ff568,_0x22ae56,this[_0x3aee94(0x213)]):this['_injector']['createInstance'](Z,this[_0x3aee94(0x1f0)],this[_0x3aee94(0x250)],_0x3ff568,this[_0x3aee94(0x213)]);_0x3c9ea6[_0x3aee94(0x383)](),this[_0x3aee94(0x213)]['onStateChange'](this,_0x3c9ea6);},_0x24d44f);}[_0x27153b(0x26d)](){const _0x5b209e=_0x27153b;var _0x231e8c;const _0x58352a=this['_configService'][_0x5b209e(0x48f)](L);return(_0x231e8c=_0x58352a==null?void 0x0:_0x58352a['sendChangesetTimeout'])!=null?_0x231e8c:mn;}[_0x27153b(0x3a7)](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x27153b(0x1ba)](){const _0x1a5563=_0x27153b;this[_0x1a5563(0x24d)]!=null&&(clearTimeout(this[_0x1a5563(0x24d)]),this[_0x1a5563(0x24d)]=null);}[_0x27153b(0x2d9)](_0x562bba){const _0x38b6bc=_0x27153b;return this[_0x38b6bc(0x1ba)](),this[_0x38b6bc(0x2ae)]['createInstance'](Q,this[_0x38b6bc(0x1f0)],this[_0x38b6bc(0x250)],null,this[_0x38b6bc(0x3f2)],this[_0x38b6bc(0x213)],_0x562bba);}};K=le([m(0x4,_0x5f357f(_0x45059e)),m(0x5,_0x5f357f(_0x34bed5)),m(0x6,_0x5f357f(D)),m(0x7,_0x5f357f(ae)),m(0x8,_0x46022f),m(0x9,_0x294dc9),m(0xa,_0x5723c7),m(0xb,_0x116203),m(0xc,_0x7019b6),m(0xd,_0x298901)],K);let Z=class extends _e{constructor(_0xe709d5,_0x3bf45f,_0x4757a,_0x34698b,_0x190908,_0x34d435,_0x5dc121,_0x4d1da8,_0x1dfa26,_0xb3dbe9,_0x5785ac){super(_0xe709d5,_0x3bf45f,_0x4757a,[],_0x34698b,_0x4d1da8,_0x5785ac,_0x34d435,_0x5dc121),l(this,'status','awaiting'),(this['_injector']=_0x190908,this['_logService']=_0x1dfa26,this['_transformService']=_0xb3dbe9);}[_0x27153b(0x4b3)](_0x55b3f9){const _0x3a7421=_0x27153b,_0x466cb4=this['_injector'][_0x3a7421(0x4c0)](X,this[_0x3a7421(0x1f0)],this['type'],this['_awaitingChangeset'],[_0x55b3f9],this[_0x3a7421(0x213)]);return _0x466cb4[_0x3a7421(0x383)](),_0x466cb4;}[_0x27153b(0x4c5)](_0x5cd9fa){const _0x5e8ff7=_0x27153b;if(this[_0x5e8ff7(0x2e2)](_0x5cd9fa))return this[_0x5e8ff7(0x2ae)][_0x5e8ff7(0x4c0)](k,this[_0x5e8ff7(0x1f0)],this[_0x5e8ff7(0x250)],this[_0x5e8ff7(0x3d7)],[],null,[_0x5cd9fa],this[_0x5e8ff7(0x213)]);try{const _0xe954c4=this[_0x5e8ff7(0x4ff)][_0x5e8ff7(0x3ed)]([_0x5cd9fa],[this['_awaitingChangeset']],!0x1);if(_0x5372c3(_0xe954c4)){const {c1Prime:_0x4189f5,c2Prime:_0x3f6361}=_0xe954c4;this[_0x5e8ff7(0x43d)](_0x4189f5[0x0]),_0x3f6361[0x0]['baseRev']=this['_getCurrentRevision']();const _0x201349=this['_injector'][_0x5e8ff7(0x4c0)](Z,this['unitID'],this[_0x5e8ff7(0x250)],_0x3f6361[0x0],this['_handler']);return _0x201349[_0x5e8ff7(0x383)](),_0x201349;}return this[_0x5e8ff7(0x2d9)](!0x1);}catch(_0x5ac767){return this[_0x5e8ff7(0x37e)]['error'](_0x5ac767),this['_onConflict'](!0x1);}}['onRemoteAck'](_0x328f7c){const _0xb58ac4=_0x27153b,_0x306ff7=this[_0xb58ac4(0x28d)]['getCurrentRevOfUnit'](this[_0xb58ac4(0x1f0)]);if(_0x328f7c['revision']<_0x306ff7-0x1)return this;if(this[_0xb58ac4(0x2e2)](_0x328f7c))return this[_0xb58ac4(0x2ae)][_0xb58ac4(0x4c0)](k,this[_0xb58ac4(0x1f0)],this[_0xb58ac4(0x250)],null,[],this[_0xb58ac4(0x3d7)],[],this['_handler']);this[_0xb58ac4(0x251)]();const _0x1fb6a0=this['_injector']['createInstance'](Se,this['unitID'],this[_0xb58ac4(0x250)],this[_0xb58ac4(0x213)]);return _0x1fb6a0['_updateLocalCache'](),_0x1fb6a0;}[_0x27153b(0x1ec)](_0xac95ea){const _0x4c2a89=_0x27153b;return this[_0x4c2a89(0x2d9)](!!(_0xac95ea!=null&&_0xac95ea[_0x4c2a89(0x410)]));}[_0x27153b(0x209)](){const _0x573bde=_0x27153b;return this[_0x573bde(0x2ae)][_0x573bde(0x4c0)](ee,this[_0x573bde(0x1f0)],this['type'],this[_0x573bde(0x3d7)],[],this['_handler']);}[_0x27153b(0x40c)](){return this;}[_0x27153b(0x3a7)](){const _0x26fd7f=_0x27153b;this[_0x26fd7f(0x213)]['onSendChangeset'](this['_awaitingChangeset']);}[_0x27153b(0x2d9)](_0x14397f){const _0x4dfeab=_0x27153b;return this[_0x4dfeab(0x2ae)][_0x4dfeab(0x4c0)](Q,this[_0x4dfeab(0x1f0)],this['type'],this[_0x4dfeab(0x3d7)],[],this[_0x4dfeab(0x213)],_0x14397f);}};Z=le([m(0x4,_0x5f357f(_0x45059e)),m(0x5,_0x5f357f(_0x34bed5)),m(0x6,_0x5f357f(D)),m(0x7,_0x294dc9),m(0x8,_0x46022f),m(0x9,_0x116203),m(0xa,_0x298901)],Z);let X=class extends _e{constructor(_0x1d54a7,_0x3bb095,_0x4199f1,_0x4d71ee,_0x169ffd,_0x1ecd34,_0x522d10,_0x458a80,_0x3eb344,_0x412c0b,_0x50d50f,_0x1fc9bc){const _0x509b97=_0x27153b;super(_0x1d54a7,_0x3bb095,_0x4199f1,_0x4d71ee,_0x169ffd,_0x3eb344,_0x1fc9bc,_0x522d10,_0x458a80),l(this,_0x509b97(0x3e3),_0x509b97(0x2ac)),(this['_injector']=_0x1ecd34,this[_0x509b97(0x37e)]=_0x412c0b,this[_0x509b97(0x4ff)]=_0x50d50f);}[_0x27153b(0x4b3)](_0x4167b7){const _0x312fe2=_0x27153b;return this[_0x312fe2(0x3f2)][_0x312fe2(0x212)](_0x4167b7),this;}[_0x27153b(0x4c5)](_0x24d7bb){const _0x1b559c=_0x27153b;if(this['_checkMissing'](_0x24d7bb))return this[_0x1b559c(0x2ae)][_0x1b559c(0x4c0)](k,this[_0x1b559c(0x1f0)],this[_0x1b559c(0x250)],this['_awaitingChangeset'],this[_0x1b559c(0x3f2)],null,[_0x24d7bb],this[_0x1b559c(0x213)]);try{const _0x3db6b2=this[_0x1b559c(0x4ff)][_0x1b559c(0x3ed)]([_0x24d7bb],[this[_0x1b559c(0x3d7)]],!0x1);if(_0x5372c3(_0x3db6b2)){const {c1Prime:_0x5ce897,c2Prime:_0x376f9e}=_0x3db6b2,_0x39483a=this[_0x1b559c(0x4ff)][_0x1b559c(0x44c)](_0x5ce897[0x0],this[_0x1b559c(0x3f2)]);if(_0x567165(_0x39483a)){const {c1Prime:_0x298778,m2Prime:_0x1eb196}=_0x39483a;return this[_0x1b559c(0x43d)](_0x298778),_0x376f9e[0x0][_0x1b559c(0x2b6)]=this[_0x1b559c(0x414)](),this['_injector'][_0x1b559c(0x4c0)](X,this[_0x1b559c(0x1f0)],this[_0x1b559c(0x250)],_0x376f9e[0x0],_0x1eb196,this[_0x1b559c(0x213)]);}throw _0x39483a[_0x1b559c(0x1ea)];}throw _0x3db6b2['error'];}catch(_0x553e0c){return this[_0x1b559c(0x37e)][_0x1b559c(0x1ea)](_0x553e0c),this['_onConflict'](!0x1);}}[_0x27153b(0x330)](_0x5f2d1b){const _0x3e94ea=_0x27153b;if(this[_0x3e94ea(0x2e2)](_0x5f2d1b))return this['_injector'][_0x3e94ea(0x4c0)](k,this['unitID'],this[_0x3e94ea(0x250)],null,this[_0x3e94ea(0x3f2)],this[_0x3e94ea(0x3d7)],[],this['_handler']);this[_0x3e94ea(0x251)]();const _0x2cdce4=this['_injector'][_0x3e94ea(0x4c0)](K,this[_0x3e94ea(0x1f0)],this['type'],this[_0x3e94ea(0x3f2)],this[_0x3e94ea(0x213)]);return _0x2cdce4[_0x3e94ea(0x4d3)](),_0x2cdce4['_updateLocalCache'](),_0x2cdce4;}[_0x27153b(0x1ec)](_0x35a2d9){const _0x554bdc=_0x27153b;return this[_0x554bdc(0x2d9)](!!(_0x35a2d9!=null&&_0x35a2d9['isPermissionRej']));}[_0x27153b(0x209)](){const _0x10add3=_0x27153b;return this['_injector'][_0x10add3(0x4c0)](ee,this[_0x10add3(0x1f0)],this['type'],this[_0x10add3(0x3d7)],this[_0x10add3(0x3f2)],this[_0x10add3(0x213)]);}[_0x27153b(0x40c)](){return this;}[_0x27153b(0x3a7)](){const _0x51b158=_0x27153b;this[_0x51b158(0x213)][_0x51b158(0x3a8)](this[_0x51b158(0x3d7)]);}[_0x27153b(0x2d9)](_0x65769e){const _0x362760=_0x27153b;return this[_0x362760(0x2ae)][_0x362760(0x4c0)](Q,this[_0x362760(0x1f0)],this[_0x362760(0x250)],null,this[_0x362760(0x3f2)],this[_0x362760(0x213)],_0x65769e);}};X=le([m(0x5,_0x5f357f(_0x45059e)),m(0x6,_0x5f357f(_0x34bed5)),m(0x7,_0x5f357f(D)),m(0x8,_0x294dc9),m(0x9,_0x46022f),m(0xa,_0x116203),m(0xb,_0x298901)],X);let Q=class extends _e{constructor(_0x42c84e,_0x32480d,_0x395063,_0x4e8c66,_0x51a3c7,_0x569174=!0x1,_0xbb492a,_0x4a927d,_0x31436a,_0x3b2cca,_0x19f058,_0x30427a,_0x118d8a){const _0x3eff35=_0x27153b;super(_0x42c84e,_0x32480d,_0x395063,_0x4e8c66,_0x51a3c7,_0x4a927d,_0x31436a,_0x19f058,_0x3b2cca),l(this,_0x3eff35(0x3e3),_0x3eff35(0x3f3)),(this[_0x3eff35(0x2ef)]=_0x569174,this['_permissionService']=_0xbb492a,this[_0x3eff35(0x286)]=_0x30427a,this[_0x3eff35(0x41f)]=_0x118d8a,this[_0x3eff35(0x373)](),this[_0x3eff35(0x4bc)](),this[_0x3eff35(0x522)]());}['appendMutation'](){return this;}['onRemoteChangeset'](){return this;}['onRemoteAck'](){return this;}[_0x27153b(0x1ec)](){return this;}[_0x27153b(0x209)](){return this;}[_0x27153b(0x40c)](){return this;}['resend'](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x27153b(0x4bc)](){const _0x41e109=_0x27153b;this['_localCacheService'][_0x41e109(0x4a5)](this['unitID'],this[_0x41e109(0x250)],null,[]);}[_0x27153b(0x373)](){const _0x32937b=_0x27153b;this[_0x32937b(0x2ef)]?this[_0x32937b(0x41f)][_0x32937b(0x4a8)]({'title':this[_0x32937b(0x286)]['t']('permission.title'),'content':this[_0x32937b(0x286)]['t']('permission.content'),'type':_0x32937b(0x1ea),'duration':0x0}):this[_0x32937b(0x41f)]['show']({'title':this[_0x32937b(0x286)]['t'](_0x32937b(0x264)),'content':this[_0x32937b(0x286)]['t'](_0x32937b(0x315)),'type':'error','duration':0x0});}[_0x27153b(0x522)](){const _0x104007=_0x27153b;this[_0x104007(0x275)][_0x104007(0x272)](new _0x38d08c(this[_0x104007(0x1f0)])['id'],!0x1);}};Q=le([m(0x6,_0x5f357f(_0x23c798)),m(0x7,_0x294dc9),m(0x8,_0x298901),m(0x9,_0x5f357f(D)),m(0xa,_0x5f357f(_0x34bed5)),m(0xb,_0x5f357f(_0x1015bf)),m(0xc,_0x1bec3e)],Q);let ee=class extends _e{constructor(_0x514ccc,_0x2738a3,_0x287b54,_0x8e0bba,_0x599b6d,_0x1d0b05,_0x5851ca,_0x41230b,_0x33c394,_0x4d950e){const _0xf0cbda=_0x27153b;super(_0x514ccc,_0x2738a3,_0x287b54,_0x8e0bba,_0x599b6d,_0x33c394,_0x4d950e,_0x5851ca,_0x41230b),l(this,_0xf0cbda(0x3e3),'offline'),this[_0xf0cbda(0x2ae)]=_0x1d0b05;}[_0x27153b(0x4b3)](_0xc9f126){const _0x1ee636=_0x27153b;return this['_pendingMutations']['push'](_0xc9f126),this[_0x1ee636(0x383)](),this;}['onRemoteChangeset'](_0x3d719d){const _0x32ad0b=_0x27153b;throw new Error(_0x32ad0b(0x4eb));}['onRemoteAck'](){const _0x1b97a4=_0x27153b;throw new Error(_0x1b97a4(0x390));}[_0x27153b(0x1ec)](){const _0x3b7372=_0x27153b;throw new Error(_0x3b7372(0x21d));}[_0x27153b(0x209)](){return this;}[_0x27153b(0x40c)](){const _0x586a61=_0x27153b,{_injector:_0x1b29fe,_pendingMutations:_0x41203a,_awaitingChangeset:_0x257e37,unitID:_0x2c9e59,_handler:_0x35ff5f,type:_0x1733fe}=this,_0x5cd095=xs(_0x1b29fe,_0x2c9e59,_0x1733fe,_0x257e37,_0x41203a,_0x35ff5f);return _0x5cd095 instanceof K?_0x5cd095[_0x586a61(0x4d3)]():(_0x5cd095 instanceof X||_0x5cd095 instanceof Z)&&_0x5cd095[_0x586a61(0x3a7)](),_0x5cd095;}[_0x27153b(0x3a7)](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};ee=le([m(0x5,_0x5f357f(_0x45059e)),m(0x6,_0x5f357f(_0x34bed5)),m(0x7,_0x5f357f(D)),m(0x8,_0x294dc9),m(0x9,_0x298901)],ee);let k=class extends _e{constructor(_0x35c9f5,_0x476bad,_0x1dc0bd,_0x274c65,_0x42990e,_0x47adae,_0x213d5f,_0x1a8d68,_0x8ce141,_0x4da98a,_0x235e06,_0x1e4f43,_0x2eccb7,_0x2c5d0e){const _0x51bc05=_0x27153b;super(_0x35c9f5,_0x476bad,_0x1dc0bd,_0x274c65,_0x213d5f,_0x1e4f43,_0x2eccb7,_0x8ce141,_0x4da98a),l(this,_0x51bc05(0x3e3),_0x51bc05(0x448)),(this['_acknowledgedAwaitingChangeset']=_0x42990e,this[_0x51bc05(0x1cc)]=_0x47adae,this['_injector']=_0x1a8d68,this[_0x51bc05(0x37e)]=_0x235e06,this['_transformService']=_0x2c5d0e);}[_0x27153b(0x453)](_0x5eebf1){const _0xa6e591=_0x27153b;try{const _0x6265af=[..._0x5eebf1,...this['_queuedRemoteChangesets']],_0x5b93dd=[this['_awaitingChangeset']||this[_0xa6e591(0x308)]][_0xa6e591(0x236)](_0xd2f7b4=>!!_0xd2f7b4);let _0x739e21,_0x6ed489;if(_0x5b93dd['length']){const _0xd64c52=this[_0xa6e591(0x4ff)][_0xa6e591(0x3ed)](_0x6265af,_0x5b93dd,!0x1);if(!_0x5372c3(_0xd64c52))throw _0xd64c52[_0xa6e591(0x1ea)];_0x739e21=_0xd64c52[_0xa6e591(0x496)],_0x6ed489=_0xd64c52[_0xa6e591(0x29c)];}else _0x739e21=_0x6265af,_0x6ed489=[];let _0x266533=this[_0xa6e591(0x3f2)];_0x739e21[_0xa6e591(0x28e)](_0x22aff8=>{const _0x181279=_0xa6e591;let _0x15046c;if(_0x266533[_0x181279(0x361)]){const _0x2af27e=this[_0x181279(0x4ff)][_0x181279(0x44c)](_0x22aff8,_0x266533);if(!_0x567165(_0x2af27e))throw _0x2af27e['error'];_0x15046c=_0x2af27e[_0x181279(0x496)],_0x266533=_0x2af27e[_0x181279(0x48a)];}else _0x15046c=_0x22aff8;this[_0x181279(0x43d)](_0x15046c);}),this[_0xa6e591(0x308)]&&this['_incrementRevisionNumber'](),this[_0xa6e591(0x3d7)]&&_0x6ed489[_0xa6e591(0x361)]&&(_0x6ed489[0x0][_0xa6e591(0x2b6)]=this[_0xa6e591(0x414)]());let _0x1151a2;if(this[_0xa6e591(0x3d7)]&&_0x266533[_0xa6e591(0x361)]!==0x0)_0x1151a2=this['_injector'][_0xa6e591(0x4c0)](X,this[_0xa6e591(0x1f0)],this[_0xa6e591(0x250)],_0x6ed489[0x0],_0x266533,this[_0xa6e591(0x213)]);else{if(this[_0xa6e591(0x3d7)]&&_0x266533['length']===0x0)_0x6ed489[0x0]['baseRev']=this['_getCurrentRevision'](),_0x1151a2=this[_0xa6e591(0x2ae)][_0xa6e591(0x4c0)](Z,this['unitID'],this[_0xa6e591(0x250)],_0x6ed489[0x0],this['_handler']);else{if(_0x266533[_0xa6e591(0x361)]!==0x0){const _0x28963f=this['_injector'][_0xa6e591(0x4c0)](K,this[_0xa6e591(0x1f0)],this[_0xa6e591(0x250)],_0x266533,this[_0xa6e591(0x213)]);_0x28963f['_schedule'](),_0x1151a2=_0x28963f;}else _0x1151a2=this[_0xa6e591(0x2ae)][_0xa6e591(0x4c0)](Se,this[_0xa6e591(0x1f0)],this[_0xa6e591(0x250)],this[_0xa6e591(0x213)]);}}return _0x1151a2[_0xa6e591(0x383)](),_0x1151a2;}catch(_0x133a69){return this['_logService']['error']('[FetchMissState]',_0xa6e591(0x4e2),_0x133a69),this['_injector'][_0xa6e591(0x4c0)](Q,this['unitID'],this['type'],this['_awaitingChangeset'],this['_pendingMutations'],this['_handler'],!0x1);}}['resend'](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x27153b(0x4b3)](_0xf1bb89){const _0x403d39=_0x27153b;return this[_0x403d39(0x3f2)]['push'](_0xf1bb89),this;}[_0x27153b(0x4c5)](_0x1893f3){const _0x33fe7d=_0x27153b;return this[_0x33fe7d(0x1cc)][_0x33fe7d(0x212)](_0x1893f3),this;}[_0x27153b(0x330)](_0x364d9e){const _0x38eadf=_0x27153b;if(this[_0x38eadf(0x3d7)])return this['_acknowledgedAwaitingChangeset']=this[_0x38eadf(0x3d7)],this[_0x38eadf(0x3d7)]=null,this;throw new Error(_0x38eadf(0x2e7));}[_0x27153b(0x1ec)](_0x28187b){const _0x13193b=_0x27153b;return this[_0x13193b(0x2d9)](!!(_0x28187b!=null&&_0x28187b[_0x13193b(0x410)]));}['toggleOffline'](){const _0x17dd26=_0x27153b;return this['_injector'][_0x17dd26(0x4c0)](ee,this[_0x17dd26(0x1f0)],this['type'],this['_awaitingChangeset'],this[_0x17dd26(0x3f2)],this[_0x17dd26(0x213)]);}['toggleOnline'](){return this;}[_0x27153b(0x2d9)](_0x33d3e3){const _0x3c948e=_0x27153b;return this['_injector'][_0x3c948e(0x4c0)](Q,this[_0x3c948e(0x1f0)],this[_0x3c948e(0x250)],this[_0x3c948e(0x3d7)],this[_0x3c948e(0x3f2)],this[_0x3c948e(0x213)],_0x33d3e3);}};k=le([m(0x7,_0x5f357f(_0x45059e)),m(0x8,_0x5f357f(_0x34bed5)),m(0x9,_0x5f357f(D)),m(0xa,_0x46022f),m(0xb,_0x294dc9),m(0xc,_0x298901),m(0xd,_0x116203)],k);function xs(_0xfce89,_0x2a17f3,_0x3ad5e3,_0x176021,_0x47e51e,_0xd67dc8){const _0x5f075a=_0x27153b;return _0x176021&&_0x47e51e[_0x5f075a(0x361)]?_0xfce89[_0x5f075a(0x4c0)](X,_0x2a17f3,_0x3ad5e3,_0x176021,_0x47e51e,_0xd67dc8):_0x176021?_0xfce89['createInstance'](Z,_0x2a17f3,_0x3ad5e3,_0x176021,_0xd67dc8):_0x47e51e[_0x5f075a(0x361)]?_0xfce89['createInstance'](K,_0x2a17f3,_0x3ad5e3,_0x47e51e,_0xd67dc8):_0xfce89[_0x5f075a(0x4c0)](Se,_0x2a17f3,_0x3ad5e3,_0xd67dc8);}var fr=Object[_0x27153b(0x368)],mr=Object[_0x27153b(0x1df)],Vt=(_0xf3ff4a,_0x2e42a8,_0x4747ef,_0x786f5d)=>{const _0x277ec3=_0x27153b;for(var _0x5e801b=_0x786f5d>0x1?void 0x0:_0x786f5d?mr(_0x2e42a8,_0x4747ef):_0x2e42a8,_0x57e7c1=_0xf3ff4a[_0x277ec3(0x361)]-0x1,_0x365b77;_0x57e7c1>=0x0;_0x57e7c1--)(_0x365b77=_0xf3ff4a[_0x57e7c1])&&(_0x5e801b=(_0x786f5d?_0x365b77(_0x2e42a8,_0x4747ef,_0x5e801b):_0x365b77(_0x5e801b))||_0x5e801b);return _0x786f5d&&_0x5e801b&&fr(_0x2e42a8,_0x4747ef,_0x5e801b),_0x5e801b;},p=(_0x25b0f8,_0x96a172)=>(_0x10175b,_0x46939a)=>_0x96a172(_0x10175b,_0x46939a,_0x25b0f8);let Je=class extends _0x33a34d{constructor(_0x1039df,_0x458d90,_0x2dd1a4,_0x4a4803,_0x1a3924,_0x10cc0c,_0x1cd975,_0x2f81a4,_0x2007e6,_0x1f3ab2,_0x580314,_0x4c965a,_0x1fb400){const _0x4628e7=_0x27153b;super(),l(this,'_state$',new _0x5c80e6(null)),l(this,'state$',this[_0x4628e7(0x210)][_0x4628e7(0x529)]()),l(this,_0x4628e7(0x228)),l(this,'_collaborationPaused',!0x1),l(this,_0x4628e7(0x200),this[_0x4628e7(0x27c)][_0x4628e7(0x229)](_0x2cf5b7(_0x9142b5=>_0x9142b5?_0x9142b5['status']:w[_0x4628e7(0x22f)]),_0x246087(0x1))),l(this,_0x4628e7(0x2d7),!0x1),l(this,_0x4628e7(0x2a9),[]),(this['unitID']=_0x1039df,this[_0x4628e7(0x469)]=_0x458d90,this['_type']=_0x2dd1a4,this[_0x4628e7(0x2ae)]=_0x4a4803,this[_0x4628e7(0x26c)]=_0x1a3924,this[_0x4628e7(0x232)]=_0x10cc0c,this['_localeService']=_0x1cd975,this[_0x4628e7(0x28d)]=_0x2f81a4,this[_0x4628e7(0x37e)]=_0x2007e6,this[_0x4628e7(0x33e)]=_0x1f3ab2,this[_0x4628e7(0x3c1)]=_0x580314,this[_0x4628e7(0x275)]=_0x4c965a,this[_0x4628e7(0x51a)]=_0x1fb400);}get[_0x27153b(0x1ff)](){const _0x35638f=_0x27153b;return this[_0x35638f(0x228)];}async[_0x27153b(0x499)](){const _0x5b8501=_0x27153b;if(this[_0x5b8501(0x1ff)])throw new Error(_0x5b8501(0x1b2));await this[_0x5b8501(0x20b)]();}[_0x27153b(0x404)](){return this['_collaborationPaused']=!0x0,_0x6a3db3(()=>{const _0x4024bd=_0x5b57;this[_0x4024bd(0x4dd)]=!0x1,this[_0x4024bd(0x2d2)]();});}[_0x27153b(0x4bd)](_0x39f506){const _0x2a4408=_0x27153b;this['_state']=_0x39f506,this[_0x2a4408(0x210)][_0x2a4408(0x26a)](_0x39f506);}async[_0x27153b(0x20b)](){const _0x28c24e=_0x27153b;var _0x31b7f2;this[_0x28c24e(0x4bd)](await this[_0x28c24e(0x23f)]()),this[_0x28c24e(0x51a)]&&((_0x31b7f2=this[_0x28c24e(0x51a)])==null||_0x31b7f2[_0x28c24e(0x348)](this[_0x28c24e(0x1f0)]),this[_0x28c24e(0x444)](this['_singleActiveUnitService'][_0x28c24e(0x42b)](this[_0x28c24e(0x1f0)])['subscribe'](_0x247a66=>{const _0x3bfba9=_0x28c24e;this[_0x3bfba9(0x37e)][_0x3bfba9(0x252)](_0x3bfba9(0x3d2),_0x3bfba9(0x4c6),_0x247a66),_0x247a66===$s[_0x3bfba9(0x1e9)]?(this[_0x3bfba9(0x3c1)][_0x3bfba9(0x4a8)]({'content':this[_0x3bfba9(0x286)]['t'](_0x3bfba9(0x2b5)),'type':_0xcc72d3['Warning']}),this['_permissionService'][_0x3bfba9(0x272)](new _0x38d08c(this['unitID'])['id'],!0x1)):this['_permissionService'][_0x3bfba9(0x272)](new _0x38d08c(this['unitID'])['id'],!0x0);})));let _0x55e7a9=!0x1;return this[_0x28c24e(0x444)](this[_0x28c24e(0x469)]['sessionStatus$'][_0x28c24e(0x524)](_0x3312c0=>{const _0x400184=_0x28c24e;_0x3312c0===G[_0x400184(0x48c)]?this[_0x400184(0x407)](_0x55e7a9):_0x3312c0===G['OFFLINE']&&(_0x55e7a9=!0x0,this[_0x400184(0x459)]());})),this[_0x28c24e(0x444)](this[_0x28c24e(0x469)][_0x28c24e(0x4b7)][_0x28c24e(0x524)](_0x2c8f6b=>{const _0x38e726=_0x28c24e;try{switch(_0x2c8f6b[_0x38e726(0x247)]){case _0x508ea5['NEW_CHANGESETS']:{this['_onRemoteChangeset'](_0x445498(_0x2c8f6b[_0x38e726(0x436)]));break;}case _0x508ea5[_0x38e726(0x2c7)]:{this[_0x38e726(0x319)](_0x2c8f6b[_0x38e726(0x436)]);break;}case _0x508ea5[_0x38e726(0x240)]:{this[_0x38e726(0x2b3)]();break;}case _0x508ea5['PSEUDO_FETCH_MISSING_RESULT']:{this[_0x38e726(0x322)](_0x2c8f6b[_0x38e726(0x436)]['changesets'][_0x38e726(0x1c9)](_0x1ab297=>_0x445498(_0x1ab297)));break;}case _0x508ea5[_0x38e726(0x2b4)]:this[_0x38e726(0x2b3)]({'isPermissionRej':!0x0});}}catch(_0x5e12a9){throw console[_0x38e726(0x1ea)]('Error\x20on\x20receiving\x20event',_0x5e12a9),_0x5e12a9;}})),this[_0x28c24e(0x228)];}[_0x27153b(0x2b1)](){const _0x548924=_0x27153b;this[_0x548924(0x2d7)]=!0x1;}[_0x27153b(0x3fd)](){const _0x4bbd08=_0x27153b;if(this['_transitionLocked'])throw new Error(_0x4bbd08(0x4a7));this[_0x4bbd08(0x2d7)]=!0x0;}[_0x27153b(0x1cd)](_0x30850e){const _0x27fbc8=_0x27153b;this[_0x27fbc8(0x3fd)](),this['_updateState'](this['_state'][_0x27fbc8(0x4b3)](_0x30850e)),this['_unlockTransition']();}[_0x27153b(0x237)](_0xb5a6b7){const _0x25d4de=_0x27153b;if(!(_0xb5a6b7[_0x25d4de(0x44e)]<=this[_0x25d4de(0x28d)]['getCurrentRevOfUnit'](this[_0x25d4de(0x1f0)]))){if(this['_collaborationPaused']){this[_0x25d4de(0x2a9)][_0x25d4de(0x212)](_0xb5a6b7);return;}this['_applyRemoteChangeset'](_0xb5a6b7);}}[_0x27153b(0x2d2)](){const _0x3fdf27=_0x27153b;this[_0x3fdf27(0x2a9)][_0x3fdf27(0x28e)](_0x434ad7=>this[_0x3fdf27(0x2f8)](_0x434ad7)),this[_0x3fdf27(0x2a9)]=[];}[_0x27153b(0x2f8)](_0x246327){const _0x1b9c64=_0x27153b,_0x26384e=this[_0x1b9c64(0x232)][_0x1b9c64(0x2fd)][_0x1b9c64(0x339)](this['_compressMutationService']['interceptor']['getInterceptPoints']()['COMPRESS_MUTATION_APPLY'])(_0x246327['mutations'],null)||_0x246327[_0x1b9c64(0x427)],_0x149d37={..._0x246327,'mutations':_0x26384e};this[_0x1b9c64(0x3fd)](),this[_0x1b9c64(0x4bd)](this[_0x1b9c64(0x228)][_0x1b9c64(0x4c5)](_0x149d37)),this['_unlockTransition']();}['_onRemoteACK'](_0x549451){const _0x520ed2=_0x27153b;this[_0x520ed2(0x3fd)](),this[_0x520ed2(0x4bd)](this[_0x520ed2(0x228)][_0x520ed2(0x330)](_0x549451)),this[_0x520ed2(0x2b1)]();}['_onRemoteRejected'](_0x2c3735){const _0x21648d=_0x27153b;this['_lockTransition'](),this[_0x21648d(0x4bd)](this[_0x21648d(0x228)][_0x21648d(0x1ec)](_0x2c3735)),this[_0x21648d(0x2b1)]();}[_0x27153b(0x322)](_0x3e00ef){const _0x3b3ebf=_0x27153b;if(!(this['_state']instanceof k))throw new TypeError(_0x3b3ebf(0x1d0));const _0x3b9dbc=_0x3e00ef[_0x3b3ebf(0x1c9)](_0x1aa9cd=>{const _0x58a544=_0x3b3ebf,_0x171572=this[_0x58a544(0x232)][_0x58a544(0x2fd)][_0x58a544(0x339)](this[_0x58a544(0x232)][_0x58a544(0x2fd)][_0x58a544(0x3c0)]()[_0x58a544(0x34c)])(_0x1aa9cd[_0x58a544(0x427)],null)||_0x1aa9cd['mutations'];return{..._0x1aa9cd,'mutations':_0x171572};});this[_0x3b3ebf(0x3fd)](),this[_0x3b3ebf(0x4bd)](this[_0x3b3ebf(0x228)][_0x3b3ebf(0x453)](_0x3b9dbc)),this[_0x3b3ebf(0x2b1)]();}[_0x27153b(0x459)](){const _0xbc7ca3=_0x27153b;this[_0xbc7ca3(0x3fd)](),this[_0xbc7ca3(0x4bd)](this['_state'][_0xbc7ca3(0x209)]()),this[_0xbc7ca3(0x2b1)]();}[_0x27153b(0x407)](_0x26776b=!0x1){const _0x31388b=_0x27153b;this[_0x31388b(0x3fd)](),this[_0x31388b(0x4bd)](this['_state']['toggleOnline']()),this[_0x31388b(0x2b1)]();const _0x5bf927=this[_0x31388b(0x228)];_0x26776b&&_0x5bf927 instanceof Se&&(this['_lockTransition'](),this['_updateState'](_0x5bf927[_0x31388b(0x1af)]()),this[_0x31388b(0x2b1)]());}async[_0x27153b(0x23f)](){return new Promise(_0x69e9d4=>{const _0x4229e5=_0x5b57;this[_0x4229e5(0x469)]['sessionStatus$'][_0x4229e5(0x229)](_0x4a8f4c(0x1))['subscribe'](async _0x31c988=>{const _0x3357c6=_0x4229e5;_0x69e9d4(await this['_createInitialStateImpl'](_0x31c988===G[_0x3357c6(0x48c)]));});});}['_createHandler'](){const _0x3b261f=this['unitID'];return{'onStateChange':(_0x1db54c,_0x1455a5)=>{const _0xd42b7a=_0x5b57;if(_0x1db54c!==this['_state'])throw new Error(_0xd42b7a(0x36f)+_0x1db54c[_0xd42b7a(0x3e3)]+_0xd42b7a(0x33b)+_0x1455a5[_0xd42b7a(0x3e3)]+_0xd42b7a(0x20d)+this[_0xd42b7a(0x228)][_0xd42b7a(0x3e3)]);this['_updateState'](_0x1455a5);},'onSendChangeset':_0x4018fc=>{const _0x5a059b=_0x5b57,_0x22a868={'eventID':_0x508ea5[_0x5a059b(0x4ce)],'data':{'unitID':_0x4018fc['unitID'],'unitType':this[_0x5a059b(0x2f6)],'changeset':_0x4018fc,'memberID':this[_0x5a059b(0x469)][_0x5a059b(0x24c)]()}};this['session'][_0x5a059b(0x363)](_0x22a868,this['unitID']);},'onMissingChangesets':({from:_0x3485e9,to:_0x403d11})=>{const _0x453f53=_0x5b57;this[_0x453f53(0x37e)][_0x453f53(0x252)](_0x453f53(0x3d2),_0x453f53(0x49f)+_0x3485e9+_0x453f53(0x42c)+_0x403d11);const _0x3f9022={'eventID':_0x508ea5[_0x453f53(0x4d9)],'data':{'unitID':_0x3b261f,'unitType':this[_0x453f53(0x2f6)],'from':_0x3485e9,'to':_0x403d11}};this[_0x453f53(0x469)]['send'](_0x3f9022,this[_0x453f53(0x1f0)]);}};}async[_0x27153b(0x3d4)](_0x16975b){const _0x4e3e3d=_0x27153b;var _0x3b5241,_0x517f57;const _0x355d60=await this[_0x4e3e3d(0x26c)][_0x4e3e3d(0x3cd)](this[_0x4e3e3d(0x1f0)]),_0x52d869=(_0x3b5241=_0x355d60==null?void 0x0:_0x355d60[_0x4e3e3d(0x427)])!=null?_0x3b5241:[],_0x10631e=(_0x517f57=_0x355d60==null?void 0x0:_0x355d60[_0x4e3e3d(0x30f)])!=null?_0x517f57:null,_0x8a18a9=this['unitID'];try{this[_0x4e3e3d(0x408)](_0x10631e,_0x52d869);}catch(_0x23d531){this['_logService'][_0x4e3e3d(0x1ea)](_0x23d531);}const _0x48a9d4=this[_0x4e3e3d(0x4ea)]();if(_0x16975b){const _0x5df0fc=xs(this[_0x4e3e3d(0x2ae)],_0x8a18a9,this[_0x4e3e3d(0x2f6)],_0x10631e,_0x52d869,_0x48a9d4);return _0x5df0fc instanceof K?_0x5df0fc['_schedule']():(_0x5df0fc instanceof X||_0x5df0fc instanceof Z)&&_0x5df0fc[_0x4e3e3d(0x3a7)](),_0x5df0fc;}return this[_0x4e3e3d(0x2ae)][_0x4e3e3d(0x4c0)](ee,_0x8a18a9,this[_0x4e3e3d(0x2f6)],_0x10631e,_0x52d869,_0x48a9d4);}[_0x27153b(0x408)](_0x40e62,_0x35d6ba){const _0x2ce014=_0x27153b;var _0x1f6df6,_0xfec660;const _0x8b2f88=this[_0x2ce014(0x232)][_0x2ce014(0x2fd)][_0x2ce014(0x339)](this[_0x2ce014(0x232)][_0x2ce014(0x2fd)][_0x2ce014(0x3c0)]()[_0x2ce014(0x34c)]);(_0x1f6df6=_0x8b2f88((_0x40e62==null?void 0x0:_0x40e62['mutations'])||[],null))==null||_0x1f6df6[_0x2ce014(0x28e)](_0x5f4bc9=>this[_0x2ce014(0x33e)][_0x2ce014(0x1e4)](_0x5f4bc9['id'],_0x5f4bc9[_0x2ce014(0x419)])),(_0xfec660=_0x8b2f88(_0x35d6ba||[],null))==null||_0xfec660[_0x2ce014(0x28e)](_0x47c75f=>this['_commandService'][_0x2ce014(0x1e4)](_0x47c75f['id'],_0x47c75f[_0x2ce014(0x419)]));}};Je=Vt([p(0x3,_0x5f357f(_0x45059e)),p(0x4,_0x5f357f(D)),p(0x5,_0x5f357f(_0x1ab79b)),p(0x6,_0x5f357f(_0x1015bf)),p(0x7,_0x5f357f(_0x34bed5)),p(0x8,_0x46022f),p(0x9,_0x294dc9),p(0xa,_0x2ae10a),p(0xb,_0x23c798),p(0xc,_0x57a0c7(st))],Je);let Tt=class extends Je{constructor(_0x3903af,_0x5850d4,_0x3b46b1,_0x5e7f38,_0x566ebd,_0x57f1eb,_0x535423,_0x1ee645,_0x4bc1a9,_0x53c2df,_0x32d368,_0x5c811c,_0x2fd04,_0x225c29,_0x195e1f,_0x29e045,_0xd06cc){const _0xb234b3=_0x27153b;super(_0x3903af,_0x3b46b1,_0x5850d4,_0x5e7f38,_0x566ebd,_0x57f1eb,_0x535423,_0x1ee645,_0x2fd04,_0x225c29,_0x195e1f,_0x29e045,_0xd06cc),this[_0xb234b3(0x1f0)]=_0x3903af,this[_0xb234b3(0x250)]=_0x5850d4,this[_0xb234b3(0x498)]=_0x4bc1a9,this[_0xb234b3(0x33c)]=_0x53c2df,this['_docTransformSelectionsService']=_0x32d368,this['_docSyncEditingCollabCursorService']=_0x5c811c;}[_0x27153b(0x4ea)](){const _0x477fed=_0x27153b,_0x2aecdd=super['_createHandler']();return _0x2aecdd[_0x477fed(0x208)]=_0x2b650d=>this['_docTransformIMECacheService']['transformIMECache'](_0x2b650d),_0x2aecdd['onTransformSelections']=_0x3d4635=>this['_docTransformSelectionsService'][_0x477fed(0x36e)](_0x3d4635),_0x2aecdd[_0x477fed(0x393)]=_0x6501c1=>this[_0x477fed(0x462)][_0x477fed(0x406)](_0x6501c1),_0x2aecdd[_0x477fed(0x4f1)]=_0x2648c0=>this[_0x477fed(0x33c)]['transformRemoteChangeset'](_0x2648c0),_0x2aecdd;}async[_0x27153b(0x20b)](){const _0x5c91ad=_0x27153b,_0x36eb8e=await super[_0x5c91ad(0x20b)]();return this[_0x5c91ad(0x444)](this['_commandService'][_0x5c91ad(0x311)]((_0xa30220,_0xe55f64)=>{const _0x494882=_0x5c91ad;if(_0xa30220[_0x494882(0x250)]!==_0x2b2e3e['MUTATION']||_0xe55f64!=null&&_0xe55f64[_0x494882(0x365)]||_0xe55f64!=null&&_0xe55f64[_0x494882(0x520)])return;const _0x5a72e4=_0xa30220[_0x494882(0x419)];if((_0x5a72e4==null?void 0x0:_0x5a72e4[_0x494882(0x456)])!==this['unitID'])return;let _0x4fe8c1=_0xa30220;if(_0x4fe8c1['id']===_0x5f459a['id']){const _0x356b4d=_0x4fe8c1['params'];_0x4fe8c1={'id':_0x5f459a['id'],'type':_0x2b2e3e[_0x494882(0x2f1)],'params':{'unitId':_0x356b4d[_0x494882(0x456)],'actions':_0x356b4d['actions'],'textRanges':null}};}const _0x69e3e2=this[_0x494882(0x232)]['interceptor'][_0x494882(0x339)](this[_0x494882(0x232)][_0x494882(0x2fd)][_0x494882(0x3c0)]()[_0x494882(0x379)])([_0x4fe8c1],null)||[_0x4fe8c1];this[_0x494882(0x1cd)](_0x69e3e2[0x0]);})),_0x36eb8e;}};Tt=Vt([p(0x3,_0x5f357f(_0x45059e)),p(0x4,_0x5f357f(D)),p(0x5,_0x5f357f(_0x1ab79b)),p(0x6,_0x5f357f(_0x1015bf)),p(0x7,_0x5f357f(_0x34bed5)),p(0x8,_0x5f357f(_0x563bf3)),p(0x9,_0x5f357f(Ye)),p(0xa,_0x5f357f(Xe)),p(0xb,_0x5f357f(Bt)),p(0xc,_0x46022f),p(0xd,_0x294dc9),p(0xe,_0x2ae10a),p(0xf,_0x23c798),p(0x10,_0x57a0c7(st))],Tt);let Rt=class extends Je{constructor(_0xa794b2,_0xbb530b,_0x4c4457,_0x16faa9,_0x4c9e80,_0x404953,_0x5ecf82,_0x304e15,_0x462add,_0xbbe732,_0xe35ee9,_0x3783eb,_0xd5b673,_0x1cb553){const _0x276e33=_0x27153b;super(_0xa794b2,_0x4c4457,_0xbb530b,_0x16faa9,_0x4c9e80,_0x404953,_0x5ecf82,_0x304e15,_0xbbe732,_0xe35ee9,_0x3783eb,_0xd5b673,_0x1cb553),this[_0x276e33(0x1f0)]=_0xa794b2,this[_0x276e33(0x250)]=_0xbb530b,this['_sheetTransformSelectionsService']=_0x462add;}[_0x27153b(0x4ea)](){const _0x1b6e72=_0x27153b,_0x347647=super[_0x1b6e72(0x4ea)]();return _0x347647[_0x1b6e72(0x48d)]=_0x19a8c9=>this[_0x1b6e72(0x3b4)][_0x1b6e72(0x36e)](_0x19a8c9),_0x347647;}async[_0x27153b(0x20b)](){const _0x4bbffc=_0x27153b,_0x120551=await super[_0x4bbffc(0x20b)]();return this['disposeWithMe'](this['_commandService'][_0x4bbffc(0x311)]((_0x5a3822,_0x1ddd8d)=>{const _0x24d2e4=_0x4bbffc;if(_0x5a3822[_0x24d2e4(0x250)]!==_0x2b2e3e[_0x24d2e4(0x2f1)]||_0x1ddd8d!=null&&_0x1ddd8d[_0x24d2e4(0x365)]||_0x1ddd8d!=null&&_0x1ddd8d[_0x24d2e4(0x520)])return;const _0x32d491=_0x5a3822[_0x24d2e4(0x419)];if((_0x32d491==null?void 0x0:_0x32d491['unitId'])!==this[_0x24d2e4(0x1f0)])return;const _0x3a5917=_0x5a3822,_0x5e2fcf=this[_0x24d2e4(0x232)][_0x24d2e4(0x2fd)][_0x24d2e4(0x339)](this[_0x24d2e4(0x232)]['interceptor'][_0x24d2e4(0x3c0)]()[_0x24d2e4(0x379)])([_0x3a5917],null)||[_0x3a5917];this[_0x24d2e4(0x1cd)](_0x5e2fcf[0x0]);})),_0x120551;}};Rt=Vt([p(0x3,_0x5f357f(_0x45059e)),p(0x4,_0x5f357f(D)),p(0x5,_0x5f357f(_0x1ab79b)),p(0x6,_0x5f357f(_0x1015bf)),p(0x7,_0x5f357f(_0x34bed5)),p(0x8,_0x5f357f(Ke)),p(0x9,_0x46022f),p(0xa,_0x294dc9),p(0xb,_0x2ae10a),p(0xc,_0x23c798),p(0xd,_0x57a0c7(st))],Rt);var gr=Object[_0x27153b(0x368)],Sr=Object['getOwnPropertyDescriptor'],pr=(_0x2776c4,_0x19a17f,_0x128245,_0x3132df)=>{const _0x5dbd24=_0x27153b;for(var _0x5c121a=_0x3132df>0x1?void 0x0:_0x3132df?Sr(_0x19a17f,_0x128245):_0x19a17f,_0x1ff0b4=_0x2776c4[_0x5dbd24(0x361)]-0x1,_0x3f3d2e;_0x1ff0b4>=0x0;_0x1ff0b4--)(_0x3f3d2e=_0x2776c4[_0x1ff0b4])&&(_0x5c121a=(_0x3132df?_0x3f3d2e(_0x19a17f,_0x128245,_0x5c121a):_0x3f3d2e(_0x5c121a))||_0x5c121a);return _0x3132df&&_0x5c121a&&gr(_0x19a17f,_0x128245,_0x5c121a),_0x5c121a;},_t=(_0x80783f,_0x163392)=>(_0x132567,_0x2543ef)=>_0x163392(_0x132567,_0x2543ef,_0x80783f);let Ae=class extends _0x33a34d{constructor(_0x458857,_0x25cf0f,_0x302f2b){const _0x29bd78=_0x27153b;super(),l(this,'_entities',new Map()),l(this,'_entityInit$',new _0x351358()),(this[_0x29bd78(0x2ae)]=_0x458857,this[_0x29bd78(0x300)]=_0x25cf0f,this[_0x29bd78(0x3ec)]=_0x302f2b,this[_0x29bd78(0x20b)]());}[_0x27153b(0x301)](){const _0x3ba056=_0x27153b;super[_0x3ba056(0x301)](),this[_0x3ba056(0x400)][_0x3ba056(0x28e)](_0x4295ac=>_0x4295ac[_0x3ba056(0x301)]()),this[_0x3ba056(0x400)][_0x3ba056(0x4bb)]();}['getCollabEntity'](_0x7ddac7){const _0x449767=_0x27153b;var _0x797453;return(_0x797453=this[_0x449767(0x400)]['get'](_0x7ddac7))!=null?_0x797453:null;}['getCollabEntity$'](_0x12fc03){const _0x3163dc=_0x27153b,_0x463a8f=this[_0x3163dc(0x230)](_0x12fc03);return _0x463a8f?_0x573529(_0x463a8f):this[_0x3163dc(0x26f)]['pipe'](_0x5cb558(_0x52a827=>_0x52a827[_0x3163dc(0x1f0)]===_0x12fc03));}['_init'](){const _0x438706=_0x27153b;this[_0x438706(0x3ec)][_0x438706(0x376)](_0x25b157[_0x438706(0x4e9)])['pipe'](_0x20928f(this[_0x438706(0x359)]),_0x244df4(0x10))[_0x438706(0x524)](async _0x8828b7=>{const _0x1ac719=_0x438706,_0x1c08a3=_0x8828b7[_0x1ac719(0x25a)](),_0xce5c02=await this[_0x1ac719(0x515)](_0x1c08a3,H[_0x1ac719(0x4e9)]);this[_0x1ac719(0x400)][_0x1ac719(0x34f)](_0x1c08a3,_0xce5c02);}),this['_univerInstanceService'][_0x438706(0x376)](_0x25b157[_0x438706(0x411)])[_0x438706(0x229)](_0x20928f(this[_0x438706(0x359)]),_0x244df4(0x10))[_0x438706(0x229)](_0x5cb558(_0x292136=>!_0x292136[_0x438706(0x25a)]()[_0x438706(0x432)]('__')))['subscribe'](async _0x147974=>{const _0x34f724=_0x438706,_0x1fd8df=_0x147974[_0x34f724(0x25a)](),_0x408dbd=await this['_startCollaboration'](_0x1fd8df,H[_0x34f724(0x411)]);this[_0x34f724(0x400)]['set'](_0x1fd8df,_0x408dbd);}),_0x5cd6ce(this[_0x438706(0x3ec)]['getTypeOfUnitDisposed$'](_0x25b157[_0x438706(0x4e9)]),this['_univerInstanceService'][_0x438706(0x355)](_0x25b157[_0x438706(0x411)]))[_0x438706(0x229)](_0x20928f(this[_0x438706(0x359)]))[_0x438706(0x524)](_0x1800c4=>{const _0x297b4a=_0x438706,_0x273d5f=_0x1800c4[_0x297b4a(0x25a)](),_0xe2f7f9=this[_0x297b4a(0x400)][_0x297b4a(0x48e)](_0x273d5f);_0xe2f7f9&&(_0xe2f7f9[_0x297b4a(0x301)](),this[_0x297b4a(0x400)][_0x297b4a(0x2c4)](_0x273d5f));});}async[_0x27153b(0x515)](_0x16a2a9,_0x4b6a35){const _0x162a5f=_0x27153b,_0x4f04bc=await this[_0x162a5f(0x300)]['requireSession'](_0x16a2a9),_0x43f280=this[_0x162a5f(0x2ae)][_0x162a5f(0x4c0)](this[_0x162a5f(0x20e)](_0x4b6a35),_0x16a2a9,_0x4b6a35,_0x4f04bc);return await _0x43f280['init'](),this[_0x162a5f(0x26f)][_0x162a5f(0x26a)](_0x43f280),_0x43f280;}[_0x27153b(0x20e)](_0x5311b5){const _0xb74b20=_0x27153b;switch(_0x5311b5){case H[_0xb74b20(0x411)]:return Tt;case H[_0xb74b20(0x4e9)]:return Rt;default:throw new Error(_0xb74b20(0x527)+_0x5311b5);}}};Ae=pr([_t(0x0,_0x5f357f(_0x45059e)),_t(0x1,_0x5f357f(ce)),_t(0x2,_0x7019b6)],Ae);const ls=[_0x27153b(0x35e),'jiqing500','verdancy600','red300',_0x27153b(0x4e6),_0x27153b(0x267)];class Ft extends _0x5c8ab1{constructor(){const _0x1b9f7d=_0x27153b;super(...arguments),l(this,_0x1b9f7d(0x422),new Map()),l(this,_0x1b9f7d(0x219),0x0);}[_0x27153b(0x4ec)](_0x1b8233){const _0x3a2ed7=_0x27153b;if(this[_0x3a2ed7(0x422)][_0x3a2ed7(0x306)](_0x1b8233))return this[_0x3a2ed7(0x422)][_0x3a2ed7(0x48e)](_0x1b8233);const _0x5b5d6b=ls[this[_0x3a2ed7(0x219)]];return this[_0x3a2ed7(0x219)]=(this[_0x3a2ed7(0x219)]+0x1)%ls[_0x3a2ed7(0x361)],this['_assignedColors'][_0x3a2ed7(0x34f)](_0x1b8233,_0x5b5d6b),_0x5b5d6b;}}var vr=Object[_0x27153b(0x368)],Ir=Object[_0x27153b(0x1df)],Er=(_0x596bb5,_0x8f51e8,_0x45b232,_0x3e4fe6)=>{const _0xac297a=_0x27153b;for(var _0x9a09ab=_0x3e4fe6>0x1?void 0x0:_0x3e4fe6?Ir(_0x8f51e8,_0x45b232):_0x8f51e8,_0x564dba=_0x596bb5[_0xac297a(0x361)]-0x1,_0x168853;_0x564dba>=0x0;_0x564dba--)(_0x168853=_0x596bb5[_0x564dba])&&(_0x9a09ab=(_0x3e4fe6?_0x168853(_0x8f51e8,_0x45b232,_0x9a09ab):_0x168853(_0x9a09ab))||_0x9a09ab);return _0x3e4fe6&&_0x9a09ab&&vr(_0x8f51e8,_0x45b232,_0x9a09ab),_0x9a09ab;},se=(_0x569a97,_0x4ff72)=>(_0x2acd8d,_0x6614d0)=>_0x4ff72(_0x2acd8d,_0x6614d0,_0x569a97);const Cr=0x12c,br=0x64;let Ot=class extends _0x33a34d{constructor(_0x51166d,_0xb21fc4,_0x65ef6a,_0x25d19a,_0x1e28ba,_0x5282bf,_0x5d8b9a,_0x5931fb,_0x527a46){const _0x146790=_0x27153b;super(),l(this,_0x146790(0x1da),!0x1),l(this,_0x146790(0x20b),!0x1),l(this,'_cursorInfo$',new _0x5c80e6(new Map())),l(this,'cursorInfo$',this['_cursorInfo$'][_0x146790(0x529)]()),l(this,_0x146790(0x3dd),new _0x5c80e6([])),l(this,_0x146790(0x2a7),this[_0x146790(0x3dd)][_0x146790(0x229)](_0x33b386(Cr))),l(this,_0x146790(0x1bd),_0x29f4d0(_0x4c19d7=>{const _0x58741d=_0x146790,_0x41225a={'eventID':_0x508ea5[_0x58741d(0x360)],'data':{'unitID':this[_0x58741d(0x1f0)],'memberID':this['_session'][_0x58741d(0x24c)](),'selection':js(_0x4c19d7)}};this[_0x58741d(0x4d1)]['send'](_0x41225a,this[_0x58741d(0x1f0)]);},br)),(this[_0x146790(0x1f0)]=_0x51166d,this['_session']=_0xb21fc4,this[_0x146790(0x2ae)]=_0x65ef6a,this[_0x146790(0x217)]=_0x25d19a,this[_0x146790(0x1ca)]=_0x1e28ba,this[_0x146790(0x225)]=_0x5282bf,this['_transformService']=_0x5d8b9a,this['_univerInstanceService']=_0x5931fb,this[_0x146790(0x33e)]=_0x527a46);}get[_0x27153b(0x4b5)](){const _0x24217d=_0x27153b;return this[_0x24217d(0x3e9)][_0x24217d(0x3df)]();}get['roomMembers'](){const _0x41b293=_0x27153b;return this[_0x41b293(0x3dd)][_0x41b293(0x3df)]();}[_0x27153b(0x301)](){const _0x125beb=_0x27153b;super['dispose'](),this[_0x125beb(0x3e9)]['next'](new Map()),this[_0x125beb(0x3e9)][_0x125beb(0x1c1)](),this[_0x125beb(0x3dd)][_0x125beb(0x26a)]([]),this[_0x125beb(0x3dd)][_0x125beb(0x1c1)]();}[_0x27153b(0x499)](){const _0x3014f2=_0x27153b;this[_0x3014f2(0x20b)]||(this['_init']=!0x0,this['_session']['sessionStatus$'][_0x3014f2(0x229)](_0x20928f(this[_0x3014f2(0x359)]))['subscribe'](_0x4ff4ad=>{const _0x1185ff=_0x3014f2;_0x4ff4ad===G[_0x1185ff(0x48c)]?this[_0x1185ff(0x407)]():this[_0x1185ff(0x459)]();}),this[_0x3014f2(0x4d1)][_0x3014f2(0x4b7)][_0x3014f2(0x229)](_0x20928f(this['dispose$']))[_0x3014f2(0x524)](_0x5e1e15=>{const _0xc9543d=_0x3014f2,_0x7f4f94=_0x5e1e15['eventID'];_0x7f4f94===_0x508ea5['UPDATE_CURSOR']&&this[_0xc9543d(0x1e2)](_0x5e1e15),_0x7f4f94===_0x508ea5['USERS_LEAVE']&&this[_0xc9543d(0x234)](_0x5e1e15);}),this[_0x3014f2(0x444)](this[_0x3014f2(0x33e)][_0x3014f2(0x311)](_0x57ba68=>{const _0x3226cd=_0x3014f2,_0x51c781=_0x57ba68['params'];_0x51c781!=null&&this[_0x3226cd(0x1da)]&&_0x57ba68['id']===_0x1e21bf['id']&&_0x51c781[_0x3226cd(0x456)]===this[_0x3226cd(0x1f0)]&&_0x51c781[_0x3226cd(0x506)]===!0x1&&this[_0x3226cd(0x1bd)](_0x51c781[_0x3226cd(0x22c)]);})),this[_0x3014f2(0x225)][_0x3014f2(0x4b4)][_0x3014f2(0x229)](_0x20928f(this[_0x3014f2(0x359)]))[_0x3014f2(0x524)](_0x2ea3d5=>{const _0x5386c9=_0x3014f2;if((_0x2ea3d5==null?void 0x0:_0x2ea3d5[_0x5386c9(0x1f0)])!==this['unitID'])return;const _0x5c462d={'eventID':_0x508ea5[_0x5386c9(0x360)],'data':_0x2ea3d5};this['_onCursorUpdate'](_0x5c462d);}),this[_0x3014f2(0x444)](this['_commandService'][_0x3014f2(0x311)](_0x46e3e3=>{const _0x55f11a=_0x3014f2;if(_0x46e3e3[_0x55f11a(0x419)]==null)return;const _0x5ee48e=_0x46e3e3[_0x55f11a(0x419)];if(_0x46e3e3['id']!==_0x5f459a['id']||_0x5ee48e[_0x55f11a(0x456)]!==this[_0x55f11a(0x1f0)])return;const _0x507bb4={'id':_0x55f11a(0x3d8),'params':_0x5ee48e},_0x65532b=this[_0x55f11a(0x4b5)];for(const [_0x2dbf51,_0x3f6c92]of _0x65532b){const _0x37ecb7={'id':_0x55f11a(0x3d8),'params':{'unitId':this[_0x55f11a(0x1f0)],'actions':null,'textRanges':_0x3f6c92['ranges']}},_0x2abce5=this[_0x55f11a(0x4ff)][_0x55f11a(0x281)](_0x507bb4,_0x37ecb7,!0x1);if(_0x280dd5(_0x2abce5))throw _0x2abce5[_0x55f11a(0x1ea)];_0x65532b['set'](_0x2dbf51,{..._0x3f6c92,'ranges':_0x2abce5['m2Prime'][_0x55f11a(0x419)][_0x55f11a(0x4be)]});}queueMicrotask(()=>{const _0x53a0a2=_0x55f11a;this[_0x53a0a2(0x3e9)][_0x53a0a2(0x26a)](_0x65532b);});})));}[_0x27153b(0x1e2)](_0x313c0e){const _0x2e6833=_0x27153b;var _0x249970,_0x1d0e44;const {memberID:_0x17a2db,selection:_0x51f52e}=_0x313c0e[_0x2e6833(0x436)],_0x36d7f0=rr(_0x51f52e),_0x5dcce6=(_0x1d0e44=(_0x249970=this[_0x2e6833(0x1ca)]['getMember'](this[_0x2e6833(0x1f0)],_0x17a2db))==null?void 0x0:_0x249970[_0x2e6833(0x33a)])!=null?_0x1d0e44:_0x2e6833(0x482),_0x3f5450={'color':this['_colorAssignService'][_0x2e6833(0x4ec)](_0x17a2db),'name':_0x5dcce6,'ranges':_0x36d7f0},_0x519ca6=this[_0x2e6833(0x4b5)];_0x519ca6[_0x2e6833(0x34f)](_0x17a2db,_0x3f5450),this[_0x2e6833(0x3e9)]['next'](_0x519ca6);}[_0x27153b(0x234)](_0x3da052){const _0x18bf94=_0x27153b,{memberID:_0x58e7a2}=_0x3da052[_0x18bf94(0x436)],_0x3a5924=this[_0x18bf94(0x4b5)];_0x3a5924[_0x18bf94(0x2c4)](_0x58e7a2),this['_cursorInfo$'][_0x18bf94(0x26a)](_0x3a5924);}[_0x27153b(0x407)](){const _0x4c73c4=_0x27153b;var _0x58dff5;if(this[_0x4c73c4(0x1da)]=!0x0,((_0x58dff5=this[_0x4c73c4(0x3ec)]['getFocusedUnit']())==null?void 0x0:_0x58dff5[_0x4c73c4(0x25a)]())!==this[_0x4c73c4(0x1f0)])return;const _0x4b41e8=this[_0x4c73c4(0x2ae)][_0x4c73c4(0x48e)](_0x5dd07)[_0x4c73c4(0x21a)]();Array[_0x4c73c4(0x23c)](_0x4b41e8)&&_0x4b41e8['length']>0x0&&this[_0x4c73c4(0x1bd)](_0x4b41e8);}[_0x27153b(0x459)](){const _0x4f71b1=_0x27153b;this[_0x4f71b1(0x1da)]=!0x1;}};Ot=Er([se(0x2,_0x5f357f(_0x45059e)),se(0x3,_0x5f357f(Ft)),se(0x4,_0x5f357f(ae)),se(0x5,_0x5f357f(Bt)),se(0x6,_0x116203),se(0x7,_0x7019b6),se(0x8,_0x294dc9)],Ot);var Tr=Object[_0x27153b(0x368)],Rr=Object[_0x27153b(0x1df)],Or=(_0x12a896,_0x38baed,_0x1609a7,_0x1cd65b)=>{const _0x54e54e=_0x27153b;for(var _0x2c26a9=_0x1cd65b>0x1?void 0x0:_0x1cd65b?Rr(_0x38baed,_0x1609a7):_0x38baed,_0x22e693=_0x12a896[_0x54e54e(0x361)]-0x1,_0x64e1db;_0x22e693>=0x0;_0x22e693--)(_0x64e1db=_0x12a896[_0x22e693])&&(_0x2c26a9=(_0x1cd65b?_0x64e1db(_0x38baed,_0x1609a7,_0x2c26a9):_0x64e1db(_0x2c26a9))||_0x2c26a9);return _0x1cd65b&&_0x2c26a9&&Tr(_0x38baed,_0x1609a7,_0x2c26a9),_0x2c26a9;},fe=(_0x1acf6b,_0x284b55)=>(_0x5b9e2d,_0x3fc095)=>_0x284b55(_0x5b9e2d,_0x3fc095,_0x1acf6b);const Dr=0x12c,wr=0x64,Pr=()=>{let _0x5da7cd=[],_0x36b6f8=!0x1;return _0x342b61=>{const _0x29a006=_0x5b57;_0x5da7cd[_0x29a006(0x212)](_0x342b61),_0x36b6f8||(_0x36b6f8=!0x0,setTimeout(()=>{_0x5da7cd['forEach'](_0x2ae91d=>_0x2ae91d()),_0x5da7cd=[],_0x36b6f8=!0x1;}));};};let Dt=class extends _0x33a34d{constructor(_0x5b93c4,_0x1bab62,_0x1a8fa2,_0x4d9083,_0x51d538,_0x18d08b,_0xe5f0ce,_0x43df1f){const _0x340642=_0x27153b;super(),l(this,_0x340642(0x1da),!0x1),l(this,'_init',!0x1),l(this,_0x340642(0x3e9),new _0x5c80e6(new Map())),l(this,_0x340642(0x351),this['_cursorInfo$'][_0x340642(0x529)]()),l(this,_0x340642(0x3dd),new _0x5c80e6([])),l(this,_0x340642(0x2a7),this[_0x340642(0x3dd)]['pipe'](_0x33b386(Dr))),l(this,'_updateLocalCursor',_0x29f4d0((_0x336fce,_0x1276ba)=>{const _0x1b12aa=_0x340642,_0x2fb9bc={'eventID':_0x508ea5['UPDATE_CURSOR'],'data':{'unitID':this[_0x1b12aa(0x1f0)],'memberID':this[_0x1b12aa(0x4d1)][_0x1b12aa(0x24c)](),'selection':_0x2c5377(_0x336fce,_0x1276ba['range'])}};this['_session'][_0x1b12aa(0x363)](_0x2fb9bc,this[_0x1b12aa(0x1f0)]);},wr)),(this[_0x340642(0x1f0)]=_0x5b93c4,this[_0x340642(0x4d1)]=_0x1bab62,this[_0x340642(0x2ae)]=_0x1a8fa2,this[_0x340642(0x217)]=_0x4d9083,this[_0x340642(0x1ca)]=_0x51d538,this[_0x340642(0x3ec)]=_0x18d08b,this['_commandService']=_0xe5f0ce,this['_refRangeService']=_0x43df1f);}get['cursorInfo'](){const _0x391fb6=_0x27153b;return this[_0x391fb6(0x3e9)][_0x391fb6(0x3df)]();}get['roomMembers'](){const _0x22ec40=_0x27153b;return this[_0x22ec40(0x3dd)][_0x22ec40(0x3df)]();}[_0x27153b(0x301)](){const _0x273db7=_0x27153b;super[_0x273db7(0x301)](),this[_0x273db7(0x3e9)][_0x273db7(0x26a)](new Map()),this[_0x273db7(0x3e9)][_0x273db7(0x1c1)](),this[_0x273db7(0x3dd)][_0x273db7(0x26a)]([]),this[_0x273db7(0x3dd)][_0x273db7(0x1c1)]();}[_0x27153b(0x499)](){const _0x3329a9=_0x27153b;this[_0x3329a9(0x20b)]||(this[_0x3329a9(0x20b)]=!0x0,this[_0x3329a9(0x4d1)][_0x3329a9(0x28f)][_0x3329a9(0x229)](_0x20928f(this[_0x3329a9(0x359)]))[_0x3329a9(0x524)](_0x175431=>{const _0xaebf87=_0x3329a9;_0x175431===G['ONLINE']?this[_0xaebf87(0x407)]():this['_toggleOffline']();}),this[_0x3329a9(0x4d1)][_0x3329a9(0x4b7)]['pipe'](_0x20928f(this['dispose$']))[_0x3329a9(0x524)](_0x243b82=>{const _0x4897b2=_0x3329a9,_0x372b7a=_0x243b82[_0x4897b2(0x247)];_0x372b7a===_0x508ea5[_0x4897b2(0x360)]&&this[_0x4897b2(0x1e2)](_0x243b82),_0x372b7a===_0x508ea5[_0x4897b2(0x282)]&&this[_0x4897b2(0x234)](_0x243b82);}),this[_0x3329a9(0x40e)](),this[_0x3329a9(0x444)](this[_0x3329a9(0x33e)]['onCommandExecuted'](_0x4b9592=>{const _0x148a7f=_0x3329a9;if(this[_0x148a7f(0x1da)]&&_0x4b9592['id']===_0x24e526['id']&&_0x4b9592[_0x148a7f(0x419)][_0x148a7f(0x456)]===this[_0x148a7f(0x1f0)]){const _0x232b94=_0x4b9592[_0x148a7f(0x419)];this[_0x148a7f(0x1bd)](_0x232b94['subUnitId'],_0x232b94[_0x148a7f(0x378)][0x0]);}})));}[_0x27153b(0x1e2)](_0x198a33){const _0x5b3d12=_0x27153b;var _0x52d451,_0x5e53d1;const {memberID:_0x599a58,selection:_0x39979f}=_0x198a33[_0x5b3d12(0x436)],{sheetName:_0x1ded1e,range:_0x5886b7}=_0x2139cb(_0x39979f),_0x1bf5c6={'name':(_0x5e53d1=(_0x52d451=this[_0x5b3d12(0x1ca)][_0x5b3d12(0x2c6)](this[_0x5b3d12(0x1f0)],_0x599a58))==null?void 0x0:_0x52d451[_0x5b3d12(0x33a)])!=null?_0x5e53d1:_0x5b3d12(0x482),'range':this['_getMergeRange'](_0x1ded1e,_0x5886b7),'sheetID':_0x1ded1e,'color':this[_0x5b3d12(0x217)][_0x5b3d12(0x4ec)](_0x599a58),'selection':_0x39979f},_0x5df706=this[_0x5b3d12(0x4b5)];_0x5df706[_0x5b3d12(0x34f)](_0x599a58,_0x1bf5c6),this[_0x5b3d12(0x3e9)][_0x5b3d12(0x26a)](_0x5df706);}[_0x27153b(0x234)](_0x4bc0cf){const _0x499fd5=_0x27153b,{memberID:_0x28a6e2}=_0x4bc0cf['data'],_0x466549=this[_0x499fd5(0x4b5)];_0x466549['delete'](_0x28a6e2),this[_0x499fd5(0x3e9)][_0x499fd5(0x26a)](_0x466549);}['_getMergeRange'](_0x48562e,_0x2e7eea){const _0x1e2f79=_0x27153b;var _0x153048,_0x46f722;const _0x2ef138=(_0x46f722=(_0x153048=this[_0x1e2f79(0x3ec)]['getUniverSheetInstance'](this['unitID']))==null?void 0x0:_0x153048[_0x1e2f79(0x242)](_0x48562e))==null?void 0x0:_0x46f722[_0x1e2f79(0x398)]();return(_0x2ef138==null?void 0x0:_0x2ef138[_0x1e2f79(0x292)](_0x1cadd8=>_0x46a5d6[_0x1e2f79(0x45c)](_0x1cadd8,_0x2e7eea)))||_0x2e7eea;}[_0x27153b(0x40e)](){const _0x1d8777=_0x27153b,_0x11d9d1=new _0x2c9103(),_0x38af28=Pr(),_0xf8fa07=()=>{const _0x5f6f77=_0x5b57;_0x11d9d1[_0x5f6f77(0x301)]();const _0x3fa318=(_0x153f5c,_0x288c80,_0x19655a,_0xbf45ed)=>{const _0x4374c0=_0x5f6f77;let _0x4c3b35=[];switch(_0x153f5c['id']){case _0x2dd003[_0x4374c0(0x1f9)]:{_0x4c3b35=_0x431dc2(_0x153f5c,_0xbf45ed);break;}case _0x2dd003[_0x4374c0(0x30a)]:{_0x4c3b35=_0xe617c8(_0x153f5c,_0xbf45ed);break;}case _0x2dd003[_0x4374c0(0x31d)]:{_0x4c3b35=_0x5acd2c(_0x153f5c,_0xbf45ed);break;}case _0x2dd003[_0x4374c0(0x277)]:{_0x4c3b35=_0x25d58b(_0x153f5c,_0xbf45ed);break;}case _0x2dd003[_0x4374c0(0x2b0)]:{_0x4c3b35=_0x7cadf4(_0x153f5c,_0xbf45ed);break;}case _0x2dd003['InsertRowCommandId']:{_0x4c3b35=_0xe0fa0e(_0x153f5c,_0xbf45ed);break;}case _0x2dd003[_0x4374c0(0x2f5)]:{_0x4c3b35=_0x43bc37(_0x153f5c,_0xbf45ed);break;}case _0x2dd003[_0x4374c0(0x2e5)]:{_0x4c3b35=_0x49fd4b(_0x153f5c,_0xbf45ed);break;}case _0x2dd003['RemoveRowCommandId']:{_0x4c3b35=_0x2ee89b(_0x153f5c,_0xbf45ed);break;}}const _0x538edc=_0x1ab365(_0x4c3b35,_0xbf45ed),_0x4b6ecb=this['cursorInfo'][_0x4374c0(0x48e)](_0x288c80);if(_0x4b6ecb&&_0x538edc){const _0x243f0e={..._0x4b6ecb,'range':_0x538edc};this[_0x4374c0(0x4b5)][_0x4374c0(0x34f)](_0x288c80,_0x243f0e),_0x38af28(()=>{const _0x5f14c2=_0x4374c0,_0x446576=this[_0x5f14c2(0x467)][_0x5f14c2(0x468)](_0x538edc,_0x6d0bd5=>(_0x446576[_0x5f14c2(0x301)](),_0x3fa318(_0x6d0bd5,_0x288c80,_0x19655a,_0x538edc)));_0x11d9d1['add'](_0x446576);});}return{'redos':[],'undos':[]};};this['cursorInfo']['forEach']((_0x119a1f,_0x1ae6ef)=>{const _0x230a68=_0x5f6f77,{range:_0x7eba39,sheetID:_0xf44472}=_0x119a1f,_0x441edb=this[_0x230a68(0x467)][_0x230a68(0x468)](_0x7eba39,_0x5ba3d4=>(_0x441edb['dispose'](),_0x3fa318(_0x5ba3d4,_0x1ae6ef,_0xf44472,_0x7eba39)));_0x11d9d1[_0x230a68(0x2e9)](_0x441edb);});};this[_0x1d8777(0x444)](_0x6a3db3(this[_0x1d8777(0x3e9)][_0x1d8777(0x524)](()=>{_0xf8fa07();})));}[_0x27153b(0x407)](){const _0x3b7a99=_0x27153b;var _0x469bc3,_0x5bc946;if(this[_0x3b7a99(0x1da)]=!0x0,((_0x469bc3=this[_0x3b7a99(0x3ec)][_0x3b7a99(0x27f)]())==null?void 0x0:_0x469bc3[_0x3b7a99(0x25a)]())!==this[_0x3b7a99(0x1f0)])return;const _0x12ed33=(_0x5bc946=this[_0x3b7a99(0x2ae)][_0x3b7a99(0x48e)](_0x1e6574)[_0x3b7a99(0x4fe)]())==null?void 0x0:_0x5bc946[0x0],_0x5ede7c=this['_univerInstanceService'][_0x3b7a99(0x47b)](_0x25b157[_0x3b7a99(0x4e9)])[_0x3b7a99(0x268)]();_0x12ed33&&_0x5ede7c&&this[_0x3b7a99(0x1bd)](_0x5ede7c[_0x3b7a99(0x2fb)](),_0x12ed33);}[_0x27153b(0x459)](){const _0x335b30=_0x27153b;this[_0x335b30(0x1da)]=!0x1;}};Dt=Or([fe(0x2,_0x5f357f(_0x45059e)),fe(0x3,_0x5f357f(Ft)),fe(0x4,_0x5f357f(ae)),fe(0x5,_0x7019b6),fe(0x6,_0x294dc9),fe(0x7,_0x5f357f(_0x4d68e4))],Dt);var yr=Object[_0x27153b(0x368)],Nr=Object['getOwnPropertyDescriptor'],Ur=(_0x415d22,_0x5ea83c,_0x258fc5,_0x1f2e3c)=>{const _0x13bc67=_0x27153b;for(var _0x39395a=_0x1f2e3c>0x1?void 0x0:_0x1f2e3c?Nr(_0x5ea83c,_0x258fc5):_0x5ea83c,_0x65a07f=_0x415d22[_0x13bc67(0x361)]-0x1,_0x392571;_0x65a07f>=0x0;_0x65a07f--)(_0x392571=_0x415d22[_0x65a07f])&&(_0x39395a=(_0x1f2e3c?_0x392571(_0x5ea83c,_0x258fc5,_0x39395a):_0x392571(_0x39395a))||_0x39395a);return _0x1f2e3c&&_0x39395a&&yr(_0x5ea83c,_0x258fc5,_0x39395a),_0x39395a;},ut=(_0x555fef,_0x4e6169)=>(_0x44b0ae,_0x40f024)=>_0x4e6169(_0x44b0ae,_0x40f024,_0x555fef);let pe=class extends _0x33a34d{constructor(_0x173d8b,_0x3d4216,_0x382975){const _0x1c9886=_0x27153b;super(),l(this,_0x1c9886(0x400),new Map()),l(this,'_entityInit$',new _0x351358()),(this[_0x1c9886(0x3ec)]=_0x173d8b,this[_0x1c9886(0x2ae)]=_0x3d4216,this['_collabSessionService']=_0x382975,this['_init']());}[_0x27153b(0x301)](){const _0x4c7fb7=_0x27153b;super[_0x4c7fb7(0x301)](),this[_0x4c7fb7(0x26f)][_0x4c7fb7(0x1c1)](),this[_0x4c7fb7(0x400)][_0x4c7fb7(0x28e)](_0x47ca45=>_0x47ca45[_0x4c7fb7(0x301)]());}[_0x27153b(0x4ab)](_0x22d579){const _0x3efd7e=_0x27153b;return this[_0x3efd7e(0x400)][_0x3efd7e(0x306)](_0x22d579)?this[_0x3efd7e(0x400)][_0x3efd7e(0x48e)](_0x22d579)[_0x3efd7e(0x351)]:this[_0x3efd7e(0x26f)][_0x3efd7e(0x229)](_0x40c2f4(_0x436d9d=>_0x436d9d['unitID']===_0x22d579),_0x435f4a(_0xd2cbfc=>_0xd2cbfc['cursorInfo$']));}['_init'](){const _0x34da09=_0x27153b;this[_0x34da09(0x3ec)]['getTypeOfUnitAdded$'](_0x25b157[_0x34da09(0x4e9)])['pipe'](_0x20928f(this['dispose$']))[_0x34da09(0x524)](async _0x466ae8=>{const _0x449c7f=_0x34da09,_0x44e342=_0x466ae8[_0x449c7f(0x25a)](),_0x2d5e4f=await this[_0x449c7f(0x290)](_0x44e342);this['_entityInit$'][_0x449c7f(0x26a)](_0x2d5e4f),this[_0x449c7f(0x400)]['set'](_0x44e342,_0x2d5e4f);}),this['_univerInstanceService'][_0x34da09(0x376)](_0x25b157[_0x34da09(0x411)])['pipe'](_0x20928f(this[_0x34da09(0x359)]))[_0x34da09(0x229)](_0x40c2f4(_0x2ac8fc=>!_0x2ac8fc[_0x34da09(0x25a)]()['startsWith']('__')))[_0x34da09(0x524)](async _0x211961=>{const _0x3e9f7a=_0x34da09,_0x9d0181=_0x211961[_0x3e9f7a(0x25a)](),_0x342baa=await this[_0x3e9f7a(0x323)](_0x9d0181);this[_0x3e9f7a(0x26f)][_0x3e9f7a(0x26a)](_0x342baa),this['_entities'][_0x3e9f7a(0x34f)](_0x9d0181,_0x342baa);}),_0x5cd6ce(this['_univerInstanceService'][_0x34da09(0x355)](_0x25b157[_0x34da09(0x411)]),this['_univerInstanceService'][_0x34da09(0x355)](_0x25b157[_0x34da09(0x4e9)]))[_0x34da09(0x229)](_0x20928f(this[_0x34da09(0x359)]))[_0x34da09(0x524)](_0x6c54e9=>{const _0x25d5de=_0x34da09,_0x1bb2bb=_0x6c54e9[_0x25d5de(0x25a)](),_0x5501c9=this[_0x25d5de(0x400)]['get'](_0x1bb2bb);_0x5501c9&&(_0x5501c9[_0x25d5de(0x301)](),this[_0x25d5de(0x400)][_0x25d5de(0x2c4)](_0x1bb2bb));});}async[_0x27153b(0x290)](_0x31bb4f){const _0x2f1d4d=_0x27153b,_0x1dfaf9=await this[_0x2f1d4d(0x300)]['requireSession'](_0x31bb4f),_0x3089fa=this[_0x2f1d4d(0x2ae)][_0x2f1d4d(0x4c0)](Dt,_0x31bb4f,_0x1dfaf9);return _0x3089fa[_0x2f1d4d(0x499)](),_0x3089fa;}async[_0x27153b(0x323)](_0x1a7c70){const _0x53cee3=_0x27153b,_0x201de1=await this[_0x53cee3(0x300)][_0x53cee3(0x3a9)](_0x1a7c70),_0x25eeef=this[_0x53cee3(0x2ae)][_0x53cee3(0x4c0)](Ot,_0x1a7c70,_0x201de1);return _0x25eeef['init'](),_0x25eeef;}};pe=Ur([ut(0x0,_0x7019b6),ut(0x1,_0x5f357f(_0x45059e)),ut(0x2,_0x5f357f(ce))],pe);const Le=0x14,_s=0xc8,dt=0x4,Mr=0x5;function Ar(_0x21e3b4,_0x51d138){const _0x110751=_0x27153b;let {radius:_0x3508fd,width:_0x2630cb,height:_0x3137e8}=_0x51d138;_0x3508fd=_0x3508fd!=null?_0x3508fd:0x0,_0x2630cb=_0x2630cb!=null?_0x2630cb:0x1e,_0x3137e8=_0x3137e8!=null?_0x3137e8:0x1e;let _0x50db9f=0x0,_0x48167e=0x0,_0x153436=0x0;_0x50db9f=_0x48167e=_0x153436=Math[_0x110751(0x2cf)](_0x3508fd,_0x2630cb/0x2,_0x3137e8/0x2),_0x21e3b4['beginPath'](),_0x21e3b4['moveTo'](_0x50db9f,0x0),_0x21e3b4[_0x110751(0x239)](_0x2630cb-_0x48167e,0x0),_0x21e3b4[_0x110751(0x2eb)](_0x2630cb-_0x48167e,_0x48167e,_0x48167e,Math['PI']*0x3/0x2,0x0,!0x1),_0x21e3b4[_0x110751(0x239)](_0x2630cb,_0x3137e8-_0x153436),_0x21e3b4[_0x110751(0x2eb)](_0x2630cb-_0x153436,_0x3137e8-_0x153436,_0x153436,0x0,Math['PI']/0x2,!0x1),_0x21e3b4[_0x110751(0x239)](0x0,_0x3137e8),_0x21e3b4['lineTo'](0x0,_0x50db9f),_0x21e3b4['arc'](_0x50db9f,_0x50db9f,_0x50db9f,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x21e3b4['closePath'](),_0x51d138[_0x110751(0x202)]&&(_0x21e3b4[_0x110751(0x30b)](),_0x21e3b4[_0x110751(0x329)]=_0x51d138[_0x110751(0x202)],_0x51d138[_0x110751(0x352)]===_0x110751(0x2ed)?_0x21e3b4['fill'](_0x110751(0x2ed)):_0x21e3b4[_0x110751(0x202)](),_0x21e3b4['restore']());}class it extends _0x4fa793{constructor(_0x37664e,_0x31e3e6){const _0x3a7664=_0x27153b;super(_0x37664e,_0x31e3e6),l(this,_0x3a7664(0x256)),l(this,_0x3a7664(0x4a0)),(this[_0x3a7664(0x256)]=_0x31e3e6==null?void 0x0:_0x31e3e6[_0x3a7664(0x256)],this[_0x3a7664(0x4a0)]=_0x31e3e6==null?void 0x0:_0x31e3e6[_0x3a7664(0x4a0)]);}static[_0x27153b(0x324)](_0x35c6f4,_0x379319){const _0x9379a9=_0x27153b,{text:_0x48bd7c,color:_0x4d18ad}=_0x379319;_0x35c6f4[_0x9379a9(0x30b)](),_0x35c6f4[_0x9379a9(0x463)]=_0x9379a9(0x412);const _0x129241=_0x35c6f4[_0x9379a9(0x2d4)](_0x48bd7c)[_0x9379a9(0x261)],_0x50ad09=Math[_0x9379a9(0x2cf)](_0x129241+0x2*dt,_s);Ar(_0x35c6f4,{'height':Le,'radius':0x4,'width':_0x50ad09,'fill':_0x4d18ad,'evented':!0x1}),_0x35c6f4['fillStyle']=_0x9379a9(0x1d5);const _0x26a8dc=dt,_0x2a9473=Le-Mr,_0x571ed0=_s-0x2*dt;if(_0x129241>_0x571ed0){let _0x44bfd2='',_0x543571=0x0;for(const _0x303608 of _0x48bd7c){const _0x227deb=_0x35c6f4[_0x9379a9(0x2d4)](_0x303608)['width'];if(_0x543571+_0x227deb<=_0x571ed0-_0x35c6f4[_0x9379a9(0x2d4)]('...')[_0x9379a9(0x261)])_0x44bfd2+=_0x303608,_0x543571+=_0x227deb;else{_0x44bfd2+=_0x9379a9(0x2cd);break;}}_0x35c6f4[_0x9379a9(0x380)](_0x44bfd2,_0x26a8dc,_0x2a9473);}else _0x35c6f4[_0x9379a9(0x380)](_0x48bd7c,_0x26a8dc,_0x2a9473);_0x35c6f4[_0x9379a9(0x3af)]();}[_0x27153b(0x420)](_0x1040d0){const _0x5d76a4=_0x27153b;it[_0x5d76a4(0x324)](_0x1040d0,this);}}const ft='collab-text-anchor-',Lr=_0x27153b(0x206),$r=_0x27153b(0x460),De=0x6,jr=1.5,mt=0x4,xr=1.5,Hr=_0x27153b(0x41c);class us{constructor(_0x547152,_0x13b26a,_0x32bd9a,_0x2fae35){const _0x3215ba=_0x27153b;l(this,'_shapes',[]),l(this,_0x3215ba(0x401),null),l(this,_0x3215ba(0x455),null),l(this,_0x3215ba(0x260),null),l(this,_0x3215ba(0x45a),null),l(this,'_eventUnsubscribe',null),(this[_0x3215ba(0x2ad)]=_0x547152,this[_0x3215ba(0x299)]=_0x13b26a,this['_docSkeleton']=_0x32bd9a,this['_document']=_0x2fae35,this[_0x3215ba(0x1c0)]());}set[_0x27153b(0x25c)](_0x2b2b01){const _0x47885a=_0x27153b;_0x2b2b01?(this[_0x47885a(0x260)]&&this[_0x47885a(0x260)][_0x47885a(0x3aa)](),this[_0x47885a(0x455)]&&this[_0x47885a(0x455)][_0x47885a(0x4a8)]()):(this[_0x47885a(0x260)]&&this[_0x47885a(0x260)][_0x47885a(0x4a8)](),this[_0x47885a(0x455)]&&this['_textBubble'][_0x47885a(0x3aa)]());}['dispose'](){const _0x58c5ae=_0x27153b;for(const _0x481a7e of this[_0x58c5ae(0x346)])_0x481a7e[_0x58c5ae(0x301)]();this[_0x58c5ae(0x455)]&&this[_0x58c5ae(0x455)][_0x58c5ae(0x301)](),this[_0x58c5ae(0x260)]&&this['_anchorDot'][_0x58c5ae(0x301)](),this[_0x58c5ae(0x401)]&&this[_0x58c5ae(0x401)][_0x58c5ae(0x301)](),this[_0x58c5ae(0x487)]&&this['_eventUnsubscribe']();}[_0x27153b(0x1c0)](){const _0x5cc52a=_0x27153b;var _0x1eb4aa;const {_docSkeleton:_0x24fe3b,_document:_0x9040ab}=this,{color:_0x14b216,name:_0x36dfc7,ranges:_0x1fd77b}=this[_0x5cc52a(0x2ad)],_0x223030=_0x9040ab['getOffsetConfig'](),{docsLeft:_0x441b78,docsTop:_0xc1ca4d}=_0x223030,_0x3447cb=new _0x436353(_0x223030,_0x24fe3b);for(const {startOffset:_0x28c18c,endOffset:_0x1c94c5,collapsed:_0x41b920,isActive:_0x3cc598}of _0x1fd77b){const _0x2a1362=_0x24fe3b[_0x5cc52a(0x2f4)](_0x28c18c),_0x16317f=_0x24fe3b[_0x5cc52a(0x2f4)](_0x1c94c5);if(_0x3cc598){const {contentBoxPointGroup:_0x2474de}=_0x3447cb[_0x5cc52a(0x387)](_0x16317f,_0x16317f);if(_0x2474de['length']===0x0)continue;this[_0x5cc52a(0x37c)](_0x14b216,_0x2474de,_0x441b78,_0xc1ca4d,_0x36dfc7),this[_0x5cc52a(0x487)]=this['_handleHover']();}if(!_0x41b920&&_0x2a1362&&_0x16317f){if(_0x5531e6(_0x2a1362,_0x16317f)){const _0x40a41c=new _0x31bcda(_0x223030,_0x24fe3b),{pointGroup:_0x47b287}=(_0x1eb4aa=_0x40a41c[_0x5cc52a(0x387)](_0x2a1362,_0x16317f))!=null?_0x1eb4aa:{};if(_0x47b287==null||_0x47b287['length']===0x0)continue;this[_0x5cc52a(0x472)](_0x14b216,_0x47b287,_0x441b78,_0xc1ca4d);}else{const {contentBoxPointGroup:_0x424df0}=_0x3447cb[_0x5cc52a(0x387)](_0x2a1362,_0x16317f);if(_0x424df0[_0x5cc52a(0x361)]===0x0)continue;this[_0x5cc52a(0x403)](_0x14b216,_0x424df0,_0x441b78,_0xc1ca4d);}}}}[_0x27153b(0x37c)](_0x239a58,_0x3f4deb,_0x322c38,_0x31e86a,_0x26ecc8){const _0x312195=_0x27153b,_0x171f90=this[_0x312195(0x470)](_0x3f4deb),{left:_0xc4c3bc,top:_0x5ed169,height:_0x1cae09}=_0x171f90,_0x39083e=this[_0x312195(0x207)](),_0x16993d=xr/_0x39083e,_0x43814f=new _0x2729ef(ft+_0x4ffcf9['generateRandomId'](De),{'left':_0xc4c3bc+_0x322c38-_0x16993d,'top':_0x5ed169+_0x31e86a,'height':_0x1cae09,'width':jr,'fill':_0x239a58||_0x506170(_0x2caf22[_0x312195(0x1b5)],0x0),'strokeWidth':_0x16993d,'stroke':Hr,'evented':!0x0});this['_anchor']=_0x43814f,this['_scene'][_0x312195(0x1e5)](_0x43814f,_0x3ec969);const _0x3b5b3b=new _0x2729ef(ft+_0x4ffcf9[_0x312195(0x508)](De),{'left':_0xc4c3bc+_0x322c38-_0x16993d,'top':_0x5ed169+_0x31e86a-mt/0x2,'height':mt,'width':mt,'fill':_0x239a58||_0x506170(_0x2caf22[_0x312195(0x1b5)],0x0),'strokeWidth':0x0,'stroke':_0x239a58||_0x506170(_0x2caf22[_0x312195(0x1b5)],0x0),'evented':!0x1});this['_anchorDot']=_0x3b5b3b,this[_0x312195(0x299)]['addObject'](_0x3b5b3b,_0x3ec969);const _0x589e06=new it(ft+_0x4ffcf9[_0x312195(0x508)](De),{'left':_0xc4c3bc+_0x322c38-_0x16993d,'top':_0x5ed169+_0x31e86a-Le,'text':_0x26ecc8,'color':_0x239a58});this['_textBubble']=_0x589e06,this[_0x312195(0x299)]['addObject'](_0x589e06,_0x3ec969),this[_0x312195(0x25c)]=!0x1;}[_0x27153b(0x4a1)](){const _0x2272e2=_0x27153b,_0x530ccd=this[_0x2272e2(0x401)][_0x2272e2(0x349)]['subscribeEvent'](()=>{this['_hover']=!0x0;}),_0x1f050d=this[_0x2272e2(0x401)][_0x2272e2(0x31b)][_0x2272e2(0x4b0)](()=>{this['_hideTimer']&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{const _0x5ecd58=_0x5b57;this[_0x5ecd58(0x25c)]=!0x1;},0x7d0);});return()=>{const _0x1d095f=_0x2272e2;_0x530ccd[_0x1d095f(0x4e5)](),_0x1f050d[_0x1d095f(0x4e5)]();};}[_0x27153b(0x403)](_0x4224b2,_0x3b3556,_0x42261f,_0x47a089){const _0x104ad1=_0x27153b,_0x4e1f3d=new _0x3842e1(_0x4224b2)[_0x104ad1(0x461)](0.2)[_0x104ad1(0x224)](),_0x3b70de=new _0x58e6e6(Lr+_0x4ffcf9['generateRandomId'](De),{'pointsGroup':_0x3b3556,'fill':_0x4e1f3d||_0x506170(_0x2caf22[_0x104ad1(0x1b5)],0.2),'left':_0x42261f,'top':_0x47a089,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x104ad1(0x346)][_0x104ad1(0x212)](_0x3b70de),this[_0x104ad1(0x299)][_0x104ad1(0x1e5)](_0x3b70de,_0x3ec969);}[_0x27153b(0x472)](_0x448983,_0x4df5f3,_0x5a9c82,_0x3b05f3){const _0x57d64e=_0x27153b,_0xbbdc15=new _0x3842e1(_0x448983)[_0x57d64e(0x461)](0.2)['toRgbString'](),_0x104c4a=new _0x58e6e6($r+_0x4ffcf9[_0x57d64e(0x508)](De),{'pointsGroup':_0x4df5f3,'fill':_0xbbdc15||_0x506170(_0x2caf22[_0x57d64e(0x1b5)],0.2),'left':_0x5a9c82,'top':_0x3b05f3,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x57d64e(0x346)][_0x57d64e(0x212)](_0x104c4a),this[_0x57d64e(0x299)][_0x57d64e(0x1e5)](_0x104c4a,_0x3ec969);}[_0x27153b(0x470)](_0x33ac80){const _0xf657de=_0x33ac80[0x0],_0x5f5dcd=_0xf657de[0x0],_0x50f348=_0xf657de[0x2],{x:_0x949834,y:_0x152140}=_0x5f5dcd,{x:_0x8e9682,y:_0x2f8c3a}=_0x50f348;return{'left':_0x949834,'top':_0x152140,'width':_0x8e9682-_0x949834,'height':_0x2f8c3a-_0x152140};}['_getScale'](){const _0x4748e0=_0x27153b,{scaleX:_0x4bf22f,scaleY:_0x28b2ba}=this[_0x4748e0(0x299)][_0x4748e0(0x25f)]();return Math['max'](_0x4bf22f,_0x28b2ba);}}var kr=Object[_0x27153b(0x368)],Br=Object['getOwnPropertyDescriptor'],Vr=(_0x2063e7,_0x583208,_0x556c93,_0x1b5c3f)=>{for(var _0x2bab07=_0x1b5c3f>0x1?void 0x0:_0x1b5c3f?Br(_0x583208,_0x556c93):_0x583208,_0x14e6b2=_0x2063e7['length']-0x1,_0xc123de;_0x14e6b2>=0x0;_0x14e6b2--)(_0xc123de=_0x2063e7[_0x14e6b2])&&(_0x2bab07=(_0x1b5c3f?_0xc123de(_0x583208,_0x556c93,_0x2bab07):_0xc123de(_0x2bab07))||_0x2bab07);return _0x1b5c3f&&_0x2bab07&&kr(_0x583208,_0x556c93,_0x2bab07),_0x2bab07;},xe=(_0x1fdf00,_0x1e28d8)=>(_0xceb357,_0x24a275)=>_0x1e28d8(_0xceb357,_0x24a275,_0x1fdf00);let qe=class extends _0x33a34d{constructor(_0x4b0804,_0x2fb08d,_0x24fbc0,_0x219435,_0x1818a7){const _0x568b7a=_0x27153b;super(),l(this,_0x568b7a(0x34d),[]),l(this,_0x568b7a(0x371),[]),(this[_0x568b7a(0x50f)]=_0x4b0804,this['_docSkeletonManagerService']=_0x2fb08d,this[_0x568b7a(0x2bf)]=_0x24fbc0,this[_0x568b7a(0x33e)]=_0x219435,this[_0x568b7a(0x3d1)]=_0x1818a7,this[_0x568b7a(0x20b)]());}[_0x27153b(0x20b)](){const _0x1c2cfe=_0x27153b,_0xcc8159=this[_0x1c2cfe(0x50f)]['unitId'],_0x14d54c=this[_0x1c2cfe(0x4f4)];this[_0x1c2cfe(0x444)](_0x336425([this['_collabCursorController'][_0x1c2cfe(0x4ab)](_0xcc8159),this['_themeService']['currentTheme$']])[_0x1c2cfe(0x229)](_0x205ee2(([_0x98ffb,_0x420d01])=>({'skeleton':_0x14d54c['getSkeleton'](),'cursors':[..._0x98ffb[_0x1c2cfe(0x2e1)]()][_0x1c2cfe(0x222)](_0x22e8da=>({..._0x22e8da,'color':_0x420d01[_0x22e8da['color']]}))})))[_0x1c2cfe(0x524)](_0x3fbec1=>{const _0x3139bb=_0x1c2cfe;if(this[_0x3139bb(0x2bd)](),_0x3fbec1){const {skeleton:_0x12def3,cursors:_0x4b2897}=_0x3fbec1;this[_0x3139bb(0x3ef)](_0x12def3,_0x4b2897);}})),this[_0x1c2cfe(0x347)](),this['_initCommandExecutedListener']();}['_updateCollabCursors'](_0x2e2e88,_0x46ea40){const _0xc4e1ef=_0x27153b,{scene:_0x32f8b8,mainComponent:_0x3e6c0d}=this[_0xc4e1ef(0x50f)],_0x237201=_0x46ea40[_0xc4e1ef(0x1c9)](_0x528fd5=>new us(_0x528fd5,_0x32f8b8,_0x2e2e88,_0x3e6c0d));this['_cursorShapes']=_0x237201,this[_0xc4e1ef(0x371)]=_0x46ea40;}[_0x27153b(0x2db)](){const _0x36be6f=_0x27153b;this[_0x36be6f(0x2bd)]();const {scene:_0x2557af,mainComponent:_0x2dd7ca}=this[_0x36be6f(0x50f)],_0x3ae8d9=this[_0x36be6f(0x4f4)][_0x36be6f(0x343)](),_0x5f2f1c=this[_0x36be6f(0x371)][_0x36be6f(0x1c9)](_0x4626b5=>new us(_0x4626b5,_0x2557af,_0x3ae8d9,_0x2dd7ca));this['_cursorShapes']=_0x5f2f1c;}[_0x27153b(0x2bd)](){const _0x1db216=_0x27153b;this['_cursorShapes'][_0x1db216(0x28e)](_0x1e8037=>_0x1e8037[_0x1db216(0x301)]()),this[_0x1db216(0x34d)]=[];}[_0x27153b(0x477)](){const _0x4fe326=_0x27153b,_0x1dceba=[_0x3b3f08['id']];this[_0x4fe326(0x444)](this[_0x4fe326(0x33e)][_0x4fe326(0x311)](_0xe69d57=>{const _0x1a09ec=_0x4fe326;_0x1dceba[_0x1a09ec(0x3dc)](_0xe69d57['id'])&&_0xe69d57[_0x1a09ec(0x419)][_0x1a09ec(0x456)]===this[_0x1a09ec(0x50f)]['unitId']&&this['_refreshCollabCursors']();}));}['_initResize'](){const _0x204c63=_0x27153b;this['disposeWithMe'](_0x34f175(this[_0x204c63(0x50f)][_0x204c63(0x297)][_0x204c63(0x22d)])['pipe'](_0x5cb558(_0x329e47=>_0x329e47['type']===_0x15f67b[_0x204c63(0x3b1)]),_0x22f9fe(0x10))[_0x204c63(0x524)](()=>{const _0x45a5ad=_0x204c63;this[_0x45a5ad(0x2db)]();}));}};qe=Vr([xe(0x1,_0x5f357f(_0x31979c)),xe(0x2,_0x5f357f(pe)),xe(0x3,_0x294dc9),xe(0x4,_0x5f357f(_0x58e40e))],qe);const Fr=0x1,Wr=1.5;class Gr extends _0x4fa793{constructor(_0x4cc7b2,_0x4664e8){const _0x1a4623=_0x27153b;super(_0x4cc7b2,_0x4664e8),l(this,_0x1a4623(0x269)),l(this,_0x1a4623(0x394),!0x1),l(this,_0x1a4623(0x1fe)),l(this,_0x1a4623(0x4fc),''),l(this,_0x1a4623(0x3e2),_0x1a4623(0x307)),l(this,_0x1a4623(0x49e)),(_0x4664e8&&this[_0x1a4623(0x2e0)](_0x4664e8),this[_0x1a4623(0x349)][_0x1a4623(0x4b0)](()=>this[_0x1a4623(0x2e0)]({'hovered':!0x0})),this['onPointerLeave$'][_0x1a4623(0x4b0)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x27153b(0x2e0)](_0x2606db){const _0x4b06e6=_0x27153b;var _0xcffe59,_0x1af429,_0x899f29,_0x54036e,_0x1c465c,_0x815501;this[_0x4b06e6(0x269)]=(_0xcffe59=_0x2606db[_0x4b06e6(0x256)])!=null?_0xcffe59:this[_0x4b06e6(0x269)],this[_0x4b06e6(0x394)]=(_0x1af429=_0x2606db[_0x4b06e6(0x31c)])!=null?_0x1af429:this[_0x4b06e6(0x394)],this[_0x4b06e6(0x1fe)]=(_0x899f29=_0x2606db[_0x4b06e6(0x3d9)])!=null?_0x899f29:this[_0x4b06e6(0x1fe)],this[_0x4b06e6(0x4fc)]=(_0x54036e=_0x2606db[_0x4b06e6(0x33a)])!=null?_0x54036e:this[_0x4b06e6(0x4fc)],this['_labelPosition']=(_0x1c465c=_0x2606db[_0x4b06e6(0x426)])!=null?_0x1c465c:this[_0x4b06e6(0x3e2)],this[_0x4b06e6(0x49e)]=(_0x815501=_0x2606db[_0x4b06e6(0x504)])!=null?_0x815501:this[_0x4b06e6(0x49e)],this[_0x4b06e6(0x28c)]({'width':_0x2606db['width'],'height':_0x2606db[_0x4b06e6(0x205)]});}[_0x27153b(0x4e7)](_0x4aebc4){const _0x45cd73=_0x27153b,{row:_0x4f3351,column:_0x27bfcd}=_0x4aebc4;if(_0x4f3351>=this[_0x45cd73(0x1fe)][_0x45cd73(0x4e1)]&&_0x4f3351<=this[_0x45cd73(0x1fe)][_0x45cd73(0x4fd)]&&_0x27bfcd>=this['_range'][_0x45cd73(0x377)]&&_0x27bfcd<=this[_0x45cd73(0x1fe)][_0x45cd73(0x51c)]){this[_0x45cd73(0x2e0)]({'hovered':!0x0});return;}this[_0x45cd73(0x2e0)]({'hovered':!0x1});}[_0x27153b(0x337)](_0x145017){return!0x1;}['_draw'](_0x3fed82){const _0x51db56=_0x27153b;_0x2729ef[_0x51db56(0x324)](_0x3fed82,{'width':this['width'],'height':this[_0x51db56(0x205)],'strokeWidth':Wr,'stroke':this[_0x51db56(0x269)],'evented':!0x1,'fill':this[_0x51db56(0x49e)]}),this[_0x51db56(0x394)]&&(_0x3fed82[_0x51db56(0x30b)](),_0x3fed82[_0x51db56(0x38f)](0x1,0x0,0x0,0x1,this[_0x51db56(0x261)],this[_0x51db56(0x3e2)]===_0x51db56(0x481)?0x0:-Le),it['drawWith'](_0x3fed82,{'text':this[_0x51db56(0x4fc)],'color':this[_0x51db56(0x269)]}),_0x3fed82[_0x51db56(0x3af)]());}}var Yr=Object[_0x27153b(0x368)],Kr=Object[_0x27153b(0x1df)],Xr=(_0x5dd337,_0x3c81f2,_0x40d53c,_0xed614d)=>{const _0x530d86=_0x27153b;for(var _0xd86266=_0xed614d>0x1?void 0x0:_0xed614d?Kr(_0x3c81f2,_0x40d53c):_0x3c81f2,_0x50bed6=_0x5dd337[_0x530d86(0x361)]-0x1,_0xb6cde0;_0x50bed6>=0x0;_0x50bed6--)(_0xb6cde0=_0x5dd337[_0x50bed6])&&(_0xd86266=(_0xed614d?_0xb6cde0(_0x3c81f2,_0x40d53c,_0xd86266):_0xb6cde0(_0xd86266))||_0xd86266);return _0xed614d&&_0xd86266&&Yr(_0x3c81f2,_0x40d53c,_0xd86266),_0xd86266;},gt=(_0xbe3e20,_0x2f7f58)=>(_0x356c88,_0x49a6b7)=>_0x2f7f58(_0x356c88,_0x49a6b7,_0xbe3e20);const Jr=0x1389;let wt=class extends _0x33a34d{constructor(_0x3ae4c4,_0x54c101,_0x4faca7,_0xe2eddb){const _0x536a32=_0x27153b;super(),l(this,'_cursors',new Set()),l(this,_0x536a32(0x1c2),null),(this[_0x536a32(0x50f)]=_0x3ae4c4,this[_0x536a32(0x3b5)]=_0x54c101,this['_collabCursorController']=_0x4faca7,this[_0x536a32(0x3d1)]=_0xe2eddb,this['_init']());}[_0x27153b(0x20b)](){const _0x96dd3c=_0x27153b;this[_0x96dd3c(0x3b5)][_0x96dd3c(0x1e0)][_0x96dd3c(0x229)](_0x2d4694(this[_0x96dd3c(0x359)]),_0x5a5bf6(_0x4cbbf1=>{const _0x2c0209=_0x96dd3c;if(_0x4cbbf1){const _0x5e8a3b=_0x4cbbf1['sheetId'];return _0x336425(this['_collabCursorController'][_0x2c0209(0x4ab)](this['_context']['unitId']),this[_0x2c0209(0x3d1)]['currentTheme$'])[_0x2c0209(0x229)](_0x205ee2(([_0x1dda0e,_0x4ba7ae])=>{const _0x286cc1=new Map();return _0x1dda0e['forEach']((_0x194135,_0x553f16)=>{const _0x54f7a2=_0x5b57;if(_0x194135[_0x54f7a2(0x46c)]===_0x5e8a3b){const _0xa1d9b5={..._0x194135};_0xa1d9b5[_0x54f7a2(0x256)]=_0x4ba7ae[_0x194135[_0x54f7a2(0x256)]],_0x286cc1['set'](_0x553f16,_0xa1d9b5);}}),{'skeleton':_0x4cbbf1,'cursors':_0x286cc1};}));}return _0x573529({'skeleton':null,'cursors':new Map()});}))[_0x96dd3c(0x524)](({skeleton:_0x5048cb,cursors:_0x57c050})=>{const _0x591bca=_0x96dd3c;this[_0x591bca(0x2bd)](),_0x5048cb&&this[_0x591bca(0x3ef)](_0x5048cb,_0x57c050);}),this[_0x96dd3c(0x3b5)][_0x96dd3c(0x1e0)][_0x96dd3c(0x524)](_0x2d4d43=>{const _0xdbc6c4=_0x96dd3c;if(_0x2d4d43==null)return;const {skeleton:_0xa74f91}=_0x2d4d43,{scene:_0x283435}=this[_0xdbc6c4(0x50f)];_0x283435[_0xdbc6c4(0x328)][_0xdbc6c4(0x4b0)](_0x29f4d0(_0x3d70fe=>{const _0x5aaab8=_0xdbc6c4;var _0x139ebd,_0x2b27f8;const {offsetX:_0x3ba9a1,offsetY:_0x54987d}=_0x3d70fe,{x:_0x4054e6,y:_0x419644}=_0x283435[_0x5aaab8(0x445)](_0x1deaa4[_0x5aaab8(0x2c3)]([_0x3ba9a1,_0x54987d])),{scaleX:_0x4456ab,scaleY:_0x4502d1}=_0x283435[_0x5aaab8(0x25f)](),_0x139048=_0x283435[_0x5aaab8(0x47f)](_0x597c99['VIEW_MAIN']),_0x2df52f=_0x283435[_0x5aaab8(0x4ae)](_0x1deaa4[_0x5aaab8(0x2c3)]([_0x4054e6,_0x419644]),_0x139048),_0xd3063=_0xa74f91[_0x5aaab8(0x1bc)](_0x3ba9a1,_0x54987d,_0x4456ab,_0x4502d1,_0x2df52f);((_0x139ebd=this[_0x5aaab8(0x1c2)])==null?void 0x0:_0x139ebd[_0x5aaab8(0x1f5)])===_0xd3063['column']&&((_0x2b27f8=this[_0x5aaab8(0x1c2)])==null?void 0x0:_0x2b27f8[_0x5aaab8(0x434)])===_0xd3063['row']||this[_0x5aaab8(0x371)]['forEach'](_0x589d92=>{const _0x7ce523=_0x5aaab8;_0x589d92[_0x7ce523(0x4e7)](_0xd3063);});},0x64));});}[_0x27153b(0x3ef)](_0x4f5089,_0x3ca58e){const _0x11a2e4=_0x27153b;var _0x4a7220;const _0x568b31=(_0x4a7220=this[_0x11a2e4(0x3b5)][_0x11a2e4(0x474)]())==null?void 0x0:_0x4a7220[_0x11a2e4(0x21e)];if(!_0x568b31)return;const _0x5974d7=this[_0x11a2e4(0x2c0)]();if(!_0x5974d7)return;this['_cursors'][_0x11a2e4(0x28e)](_0x8a3615=>{const _0x37e9f6=_0x11a2e4;_0x8a3615[_0x37e9f6(0x388)]();});const {scene:_0xaa45d}=_0x5974d7,_0x1a182c=qr(Array['from'](_0x3ca58e['values']()))[_0x11a2e4(0x1c9)](_0x4daeb6=>{const _0x1a15b0=_0x11a2e4,{color:_0x5945fd,range:_0x3aa365,name:_0x43018c,selection:_0x3a5c71,sheetID:_0x536481}=_0x4daeb6,{startColumn:_0x118437,startRow:_0x5236fb,endColumn:_0x450f77,endRow:_0x57bf4a}=_0x3aa365,_0x30ee1f=_0x2f5404(_0x5236fb,_0x118437,_0xaa45d,_0x568b31),_0x32ac97=_0x2f5404(_0x57bf4a,_0x450f77,_0xaa45d,_0x568b31),{columnHeaderHeightAndMarginTop:_0x5256ac}=_0x568b31,{startX:_0x3a5755,startY:_0x46b317}=_0x30ee1f,{endX:_0x18cf81,endY:_0x237953}=_0x32ac97,_0x32c820=_0x18cf81-_0x3a5755,_0xdfcbfb=_0x237953-_0x46b317,_0x1b5183={'labelPosition':_0x46b317-_0x5256ac>=Le?_0x1a15b0(0x307):_0x1a15b0(0x481),'sheetID':_0x536481,'range':_0x3aa365,'color':_0x5945fd,'name':_0x43018c,'selection':_0x3a5c71,'left':_0x3a5755,'top':_0x46b317,'width':_0x32c820,'height':_0xdfcbfb,'evented':!0x1,'zIndex':Jr};return new Gr(_0x43018c,_0x1b5183);});_0xaa45d[_0x11a2e4(0x2b7)](_0x1a182c,Fr),this[_0x11a2e4(0x371)]=new Set(_0x1a182c);}[_0x27153b(0x2bd)](){const _0x2738f2=_0x27153b;var _0xa4eef7;(_0xa4eef7=this[_0x2738f2(0x371)])==null||_0xa4eef7['forEach'](_0x14ca09=>_0x14ca09['dispose']());}[_0x27153b(0x2c0)](){const _0x21c1b1=_0x27153b;return _0x3929d2(this['_context'][_0x21c1b1(0x1db)],this['_context']);}};wt=Xr([gt(0x1,_0x5f357f(_0x3c22e6)),gt(0x2,_0x5f357f(pe)),gt(0x3,_0x5f357f(_0x58e40e))],wt);function qr(_0x20b43f){const _0x127520=_0x27153b,_0x1402f7=new Map();return _0x20b43f[_0x127520(0x28e)](_0x50d7a7=>{const _0x5cff93=_0x127520;if(_0x1402f7[_0x5cff93(0x306)](_0x50d7a7[_0x5cff93(0x1f1)])){const _0x3d8422=_0x1402f7[_0x5cff93(0x48e)](_0x50d7a7[_0x5cff93(0x1f1)]);_0x3d8422['name']+=',\x20'+_0x50d7a7[_0x5cff93(0x33a)];}else _0x1402f7[_0x5cff93(0x34f)](_0x50d7a7[_0x5cff93(0x1f1)],_0x50d7a7);}),Array[_0x127520(0x4f7)](_0x1402f7[_0x127520(0x2e1)]());}var N=function(){const _0x2d3004=_0x27153b;return N=Object[_0x2d3004(0x204)]||function(_0x30fc26){const _0x55e479=_0x2d3004;for(var _0x273ad7,_0xc27d4e=0x1,_0x3e18b6=arguments[_0x55e479(0x361)];_0xc27d4e<_0x3e18b6;_0xc27d4e++){_0x273ad7=arguments[_0xc27d4e];for(var _0x218116 in _0x273ad7)Object[_0x55e479(0x325)][_0x55e479(0x3e4)][_0x55e479(0x443)](_0x273ad7,_0x218116)&&(_0x30fc26[_0x218116]=_0x273ad7[_0x218116]);}return _0x30fc26;},N[_0x2d3004(0x2f7)](this,arguments);},zr=function(_0x1829ee,_0x4abc37){const _0x45ebfa=_0x27153b;var _0x1a899f={};for(var _0x4dadf9 in _0x1829ee)Object['prototype'][_0x45ebfa(0x3e4)][_0x45ebfa(0x443)](_0x1829ee,_0x4dadf9)&&_0x4abc37[_0x45ebfa(0x312)](_0x4dadf9)<0x0&&(_0x1a899f[_0x4dadf9]=_0x1829ee[_0x4dadf9]);if(_0x1829ee!=null&&typeof Object[_0x45ebfa(0x1d8)]=='function'){for(var _0x5de12a=0x0,_0x4dadf9=Object[_0x45ebfa(0x1d8)](_0x1829ee);_0x5de12a<_0x4dadf9[_0x45ebfa(0x361)];_0x5de12a++)_0x4abc37[_0x45ebfa(0x312)](_0x4dadf9[_0x5de12a])<0x0&&Object[_0x45ebfa(0x325)][_0x45ebfa(0x3a2)][_0x45ebfa(0x443)](_0x1829ee,_0x4dadf9[_0x5de12a])&&(_0x1a899f[_0x4dadf9[_0x5de12a]]=_0x1829ee[_0x4dadf9[_0x5de12a]]);}return _0x1a899f;},Wt=_0x131a85(function(_0x5b43f1,_0x487243){const _0x4a4603=_0x27153b;var _0x16bc0a=_0x5b43f1[_0x4a4603(0x298)],_0x453ba1=_0x5b43f1['id'],_0x3448c0=_0x5b43f1[_0x4a4603(0x248)],_0x4301c0=_0x5b43f1[_0x4a4603(0x283)],_0x2e732a=zr(_0x5b43f1,[_0x4a4603(0x298),'id','className',_0x4a4603(0x283)]),_0x586849=_0x4a4603(0x4da)[_0x4a4603(0x1e8)](_0x453ba1,'\x20')['concat'](_0x3448c0||'')[_0x4a4603(0x2d0)](),_0x2be216=_0x555c65('_'[_0x4a4603(0x1e8)](eo()));return Hs(_0x16bc0a,''[_0x4a4603(0x1e8)](_0x453ba1),{'defIds':_0x16bc0a[_0x4a4603(0x2dd)],'idSuffix':_0x2be216[_0x4a4603(0x50b)]},N({'ref':_0x487243,'className':_0x586849},_0x2e732a),_0x4301c0);});function Hs(_0x2f30c8,_0x3f73b4,_0x44abee,_0x252656,_0x1086ad){const _0x47f9a0=_0x27153b;return _0x294b49(_0x2f30c8[_0x47f9a0(0x3a4)],N(N({'key':_0x3f73b4},Zr(_0x2f30c8,_0x44abee,_0x1086ad)),_0x252656),(Qr(_0x2f30c8,_0x44abee)[_0x47f9a0(0x4bf)]||[])['map'](function(_0x320a50,_0x23aca7){const _0x2d6ffd=_0x47f9a0;return Hs(_0x320a50,''[_0x2d6ffd(0x1e8)](_0x3f73b4,'-')[_0x2d6ffd(0x1e8)](_0x2f30c8[_0x2d6ffd(0x3a4)],'-')[_0x2d6ffd(0x1e8)](_0x23aca7),_0x44abee,void 0x0,_0x1086ad);}));}function Zr(_0x1519f3,_0xd3c33,_0x29fc3f){const _0x19245b=_0x27153b;var _0x2f62f6=N({},_0x1519f3[_0x19245b(0x2f9)]);_0x29fc3f!=null&&_0x29fc3f[_0x19245b(0x333)]&&_0x2f62f6[_0x19245b(0x202)]===_0x19245b(0x333)&&(_0x2f62f6[_0x19245b(0x202)]=_0x29fc3f[_0x19245b(0x333)]);var _0x4f0d64=_0xd3c33['defIds'];return!_0x4f0d64||_0x4f0d64['length']===0x0||(_0x1519f3[_0x19245b(0x3a4)]==='use'&&_0x2f62f6[_0x19245b(0x3da)]&&(_0x2f62f6[_0x19245b(0x3da)]=_0x2f62f6['xlink:href']+_0xd3c33['idSuffix']),Object[_0x19245b(0x44b)](_0x2f62f6)[_0x19245b(0x28e)](function(_0x53ed45){const _0x434667=_0x19245b;var _0x1f8aaf=_0x53ed45[0x0],_0x4a7593=_0x53ed45[0x1];typeof _0x4a7593==_0x434667(0x2be)&&(_0x2f62f6[_0x1f8aaf]=_0x4a7593[_0x434667(0x4d7)](/url\(#(.*)\)/,_0x434667(0x2d1)[_0x434667(0x1e8)](_0xd3c33['idSuffix'],')')));})),_0x2f62f6;}function Qr(_0x15db3d,_0x3a4913){const _0x31777e=_0x27153b;var _0x288c14,_0x424503=_0x3a4913[_0x31777e(0x2dd)];return!_0x424503||_0x424503['length']===0x0?_0x15db3d:_0x15db3d[_0x31777e(0x3a4)]===_0x31777e(0x423)&&(!((_0x288c14=_0x15db3d[_0x31777e(0x4bf)])===null||_0x288c14===void 0x0)&&_0x288c14[_0x31777e(0x361)])?N(N({},_0x15db3d),{'children':_0x15db3d[_0x31777e(0x4bf)][_0x31777e(0x1c9)](function(_0x15c9bf){const _0x596a4f=_0x31777e;return typeof _0x15c9bf[_0x596a4f(0x2f9)]['id']==_0x596a4f(0x2be)&&_0x424503&&_0x424503[_0x596a4f(0x312)](_0x15c9bf[_0x596a4f(0x2f9)]['id'])>-0x1?N(N({},_0x15c9bf),{'attrs':N(N({},_0x15c9bf[_0x596a4f(0x2f9)]),{'id':_0x15c9bf['attrs']['id']+_0x3a4913[_0x596a4f(0x3bf)]})}):_0x15c9bf;})}):_0x15db3d;}function eo(){const _0x30337e=_0x27153b;return Math['random']()[_0x30337e(0x503)](0x24)[_0x30337e(0x4db)](0x2,0x8);}Wt['displayName']='UniverIcon';var to={'tag':'svg','attrs':{'fill':_0x27153b(0x1e3),'viewBox':_0x27153b(0x3c5),'width':_0x27153b(0x326),'height':_0x27153b(0x326)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':_0x27153b(0x354),'d':_0x27153b(0x2ec),'strokeLinecap':_0x27153b(0x3ea),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x27153b(0x423),'attrs':{},'children':[{'tag':_0x27153b(0x439),'attrs':{'id':_0x27153b(0x1f4)},'children':[{'tag':'path','attrs':{'fill':_0x27153b(0x2cb),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x27153b(0x1f4)]},ks=_0x131a85(function(_0x1ac361,_0x8b113a){const _0x96d885=_0x27153b;return _0x294b49(Wt,Object[_0x96d885(0x204)]({},_0x1ac361,{'id':_0x96d885(0x43f),'ref':_0x8b113a,'icon':to}));});ks[_0x27153b(0x43b)]=_0x27153b(0x1d6);var so={'tag':_0x27153b(0x457),'attrs':{'fill':'none','viewBox':_0x27153b(0x23e),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x27153b(0x435)},'children':[{'tag':_0x27153b(0x4ed),'attrs':{'stroke':'currentColor','d':_0x27153b(0x2f2),'strokeLinecap':_0x27153b(0x3ea),'strokeLinejoin':_0x27153b(0x3ea),'strokeWidth':1.2}}]},{'tag':_0x27153b(0x423),'attrs':{},'children':[{'tag':_0x27153b(0x439),'attrs':{'id':_0x27153b(0x3c9)},'children':[{'tag':_0x27153b(0x4ed),'attrs':{'fill':'#fff','d':_0x27153b(0x382),'transform':_0x27153b(0x43a)}}]}]}],'defIds':[_0x27153b(0x3c9)]},Bs=_0x131a85(function(_0x2c7374,_0x181001){const _0x2e7069=_0x27153b;return _0x294b49(Wt,Object[_0x2e7069(0x204)]({},_0x2c7374,{'id':_0x2e7069(0x475),'ref':_0x181001,'icon':so}));});Bs[_0x27153b(0x43b)]='OnLineSingle';const io=_0x27153b(0x246),no='univer-online-status-title',ro=_0x27153b(0x32e),oo=_0x27153b(0x24f),ao=_0x27153b(0x3fe),we={'onlineStatusIcon':io,'onlineStatusTitle':no,'onlineStatus':ro,'online':oo,'offline':ao};function co(_0x5d42bd){const _0x35b2b0=_0x27153b;switch(_0x5d42bd){case w[_0x35b2b0(0x22f)]:return _0x35b2b0(0x244);case w['CONFLICT']:return'collabStatus.conflict';case w[_0x35b2b0(0x4a6)]:return _0x35b2b0(0x302);case w[_0x35b2b0(0x366)]:return _0x35b2b0(0x39a);case w[_0x35b2b0(0x2de)]:case w[_0x35b2b0(0x52a)]:case w[_0x35b2b0(0x4f9)]:return _0x35b2b0(0x2fe);case w['SYNCED']:return _0x35b2b0(0x4b6);}}function ho(_0x16b3a6){const _0x13e3d0=_0x27153b,{status$:_0x1ccab4}=_0x16b3a6,_0x55d4da=_0x57b4b4(_0x1ccab4,w['NOT_COLLAB']),_0x315194=_0x15902b(_0x1015bf),_0x2cb905=_0x15902b(ce),_0x41fdb6=_0x55d4da!==w[_0x13e3d0(0x22f)],_0x2277fa=_0x315194['t'](co(_0x55d4da)),_0x4ed6a6=_0x3d3972(we[_0x13e3d0(0x3b7)],{[we[_0x13e3d0(0x49d)]]:_0x41fdb6,[we[_0x13e3d0(0x418)]]:!_0x41fdb6}),_0x19893b=_0x41fdb6?_0x40e8c9['createElement'](Bs,null):_0x40e8c9['createElement'](ks,null),_0xaf433e=_0x2c0bdf(()=>{const _0x3aefd6=_0x13e3d0;_0x41fdb6||_0x2cb905[_0x3aefd6(0x357)]();},[_0x41fdb6,_0x2cb905]);function _0x485c38(){const _0x413c1f=_0x13e3d0;return _0x40e8c9[_0x413c1f(0x3f1)]('div',{'className':_0x4ed6a6,'onClick':_0xaf433e},_0x40e8c9[_0x413c1f(0x3f1)](_0x413c1f(0x33f),{'className':we['onlineStatusIcon']},_0x19893b),_0x40e8c9[_0x413c1f(0x3f1)](_0x413c1f(0x33f),{'className':we[_0x413c1f(0x3a1)]},_0x2277fa));}return _0x41fdb6?_0x485c38():_0x40e8c9[_0x13e3d0(0x3f1)](_0x5cc8aa,{'title':_0x315194['t']('collab-client.tooltip.reconnect')},_0x485c38());}var lo=Object[_0x27153b(0x368)],_o=Object[_0x27153b(0x1df)],uo=(_0x352ebe,_0x2635cb,_0x27e362,_0x159309)=>{const _0x3cbd35=_0x27153b;for(var _0x5606cc=_0x159309>0x1?void 0x0:_0x159309?_o(_0x2635cb,_0x27e362):_0x2635cb,_0x1605db=_0x352ebe[_0x3cbd35(0x361)]-0x1,_0x1718e9;_0x1605db>=0x0;_0x1605db--)(_0x1718e9=_0x352ebe[_0x1605db])&&(_0x5606cc=(_0x159309?_0x1718e9(_0x2635cb,_0x27e362,_0x5606cc):_0x1718e9(_0x5606cc))||_0x5606cc);return _0x159309&&_0x5606cc&&lo(_0x2635cb,_0x27e362,_0x5606cc),_0x5606cc;},He=(_0x5a734b,_0x991cc3)=>(_0x431aca,_0x1d2feb)=>_0x991cc3(_0x431aca,_0x1d2feb,_0x5a734b);let Ue=class extends _0x5c8ab1{constructor(_0x4d9d67,_0x1be915,_0xa6f622,_0x3671c7){const _0x4c7244=_0x27153b;super(),l(this,_0x4c7244(0x223),new _0x5c80e6(w['NOT_COLLAB'])),(this[_0x4c7244(0x3ec)]=_0x4d9d67,this[_0x4c7244(0x492)]=_0x1be915,this['_injector']=_0xa6f622,this[_0x4c7244(0x215)]=_0x3671c7,this[_0x4c7244(0x249)](),this[_0x4c7244(0x266)]());}[_0x27153b(0x266)](){const _0x15af73=_0x27153b;this[_0x15af73(0x444)](this[_0x15af73(0x3ec)][_0x15af73(0x1b9)][_0x15af73(0x229)](_0x435f4a(()=>{const _0x175f0b=_0x15af73,_0x43cd4d=this[_0x175f0b(0x3ec)][_0x175f0b(0x27f)]();return _0x43cd4d?this[_0x175f0b(0x215)]['getCollabEntity$'](_0x43cd4d['getUnitId']()):_0x573529(null);}),_0x435f4a(_0xbc9f16=>_0xbc9f16?_0xbc9f16['status$']:_0x573529(w[_0x15af73(0x366)])))[_0x15af73(0x524)](_0x51ebac=>{const _0x406c65=_0x15af73;this['_status$'][_0x406c65(0x26a)](_0x51ebac);}));}[_0x27153b(0x249)](){const _0x45a02d=_0x27153b;this[_0x45a02d(0x444)](this['_uiPartsService'][_0x45a02d(0x356)](_0x535b59[_0x45a02d(0x483)],()=>_0x400af4(fo({'status$':this[_0x45a02d(0x223)][_0x45a02d(0x529)]()}),this[_0x45a02d(0x2ae)])));}};Ue=uo([He(0x0,_0x7019b6),He(0x1,_0x5397fe),He(0x2,_0x5f357f(_0x45059e)),He(0x3,_0x5f357f(Ae))],Ue);function fo(_0x29e484){const {status$:_0x44225c}=_0x29e484;return function(){const _0x305ed3=_0x5b57;return _0x40e8c9[_0x305ed3(0x3f1)](ho,{'status$':_0x44225c});};}const Vs=_0x1ab192(_0x27153b(0x4d8));var mo=Object[_0x27153b(0x368)],go=Object[_0x27153b(0x1df)],So=(_0x223354,_0x1dc813,_0x1374f1,_0x249147)=>{const _0x15f187=_0x27153b;for(var _0x103f7d=_0x249147>0x1?void 0x0:_0x249147?go(_0x1dc813,_0x1374f1):_0x1dc813,_0x241e41=_0x223354[_0x15f187(0x361)]-0x1,_0x2f7a40;_0x241e41>=0x0;_0x241e41--)(_0x2f7a40=_0x223354[_0x241e41])&&(_0x103f7d=(_0x249147?_0x2f7a40(_0x1dc813,_0x1374f1,_0x103f7d):_0x2f7a40(_0x103f7d))||_0x103f7d);return _0x249147&&_0x103f7d&&mo(_0x1dc813,_0x1374f1,_0x103f7d),_0x103f7d;},me=(_0x14af82,_0xe1e40f)=>(_0xf650e7,_0x4721be)=>_0xe1e40f(_0xf650e7,_0x4721be,_0x14af82);let ze=class extends _0x33a34d{constructor(_0xc56daa,_0x381da9,_0x181474,_0x232e70,_0x2b6a7a,_0x40632a){const _0x3f64f0=_0x27153b;super(),this[_0x3f64f0(0x201)]=_0xc56daa,this[_0x3f64f0(0x37e)]=_0x381da9,this[_0x3f64f0(0x33e)]=_0x181474,this[_0x3f64f0(0x26c)]=_0x232e70,this[_0x3f64f0(0x295)]=_0x2b6a7a,_0x40632a?_0x40632a==null||_0x40632a[_0x3f64f0(0x2d6)]()[_0x3f64f0(0x40a)](()=>this[_0x3f64f0(0x20b)]()):(this[_0x3f64f0(0x37e)][_0x3f64f0(0x252)](_0x3f64f0(0x218),_0x3f64f0(0x37d)),this['_init']());}async[_0x27153b(0x20b)](){const _0x569a5d=_0x27153b,_0x1a8435=this[_0x569a5d(0x201)][_0x569a5d(0x488)](_0x569a5d(0x1db)),_0x1b020a=this['_urlService']['getParam']('type');if(!_0x1a8435||!_0x1b020a){this[_0x569a5d(0x37e)][_0x569a5d(0x252)](_0x569a5d(0x218),_0x569a5d(0x1ad));return;}switch(Number(_0x1b020a)){case H[_0x569a5d(0x4e9)]:{const _0x8beb23=await this[_0x569a5d(0x4b9)](_0x1a8435);this[_0x569a5d(0x2ce)](_0x8beb23);break;}case H[_0x569a5d(0x411)]:{await this['_loadDoc'](_0x1a8435);break;}default:{this['_logService']['error']('[DataLoaderController]',_0x569a5d(0x216));break;}}}async[_0x27153b(0x2ce)](_0x42feb1){const _0x417be8=_0x27153b;await this[_0x417be8(0x4ca)](_0x42feb1),_0x42feb1[_0x417be8(0x3e1)]['pipe'](_0x20928f(this[_0x417be8(0x359)]))['subscribe'](_0x5a6e31=>{const _0xb2cd95=_0x417be8;_0x5a6e31&&this[_0xb2cd95(0x466)](_0x5a6e31);}),this[_0x417be8(0x201)][_0x417be8(0x22b)]['pipe'](_0x20928f(this[_0x417be8(0x359)]))[_0x417be8(0x524)](()=>this['_updateSubUnitFromURLParams'](_0x42feb1));}[_0x27153b(0x466)](_0x71a5c7,_0x5c742c=!0x1){const _0x145766=_0x27153b,_0x8bea34=this[_0x145766(0x201)]['getParam'](_0x145766(0x4d2));_0x71a5c7[_0x145766(0x2fb)]()!==_0x8bea34&&this[_0x145766(0x201)]['setParam'](_0x145766(0x4d2),_0x71a5c7['getSheetId'](),_0x5c742c);}async['_updateSubUnitFromURLParams'](_0x377492){const _0x48a637=_0x27153b;var _0x260c60;const _0x109189=this['_urlService'][_0x48a637(0x488)](_0x48a637(0x4d2));if(!_0x109189||!_0x377492[_0x48a637(0x242)](_0x109189)){const _0x82f8d5=_0x377492[_0x48a637(0x2bb)]()[0x0],_0x10b01a=_0x377492['getSheetBySheetId'](_0x82f8d5);if(!_0x10b01a)return;this[_0x48a637(0x466)](_0x10b01a,!0x0),await this[_0x48a637(0x33e)]['executeCommand'](_0x3806c4['id'],{'unitId':_0x377492[_0x48a637(0x25a)](),'subUnitId':_0x82f8d5});return;}((_0x260c60=_0x377492['getActiveSheet']())==null?void 0x0:_0x260c60[_0x48a637(0x2fb)]())!==_0x109189&&await this['_commandService'][_0x48a637(0x1e4)](_0x3806c4['id'],{'unitId':_0x377492[_0x48a637(0x25a)](),'subUnitId':_0x109189});}async[_0x27153b(0x4b9)](_0x69c3be){const _0x33e8ac=_0x27153b;let _0x419efd=0x0;const _0x7838ab=await this[_0x33e8ac(0x26c)][_0x33e8ac(0x3cd)](_0x69c3be);return _0x7838ab&&(_0x7838ab[_0x33e8ac(0x30f)]||_0x7838ab['mutations'][_0x33e8ac(0x361)]!==0x0)&&(_0x419efd=_0x7838ab[_0x33e8ac(0x45f)]),_0x419efd===0x0&&this['_logService'][_0x33e8ac(0x252)]('[DataLoaderController]',_0x33e8ac(0x46a)),this['_snapshotService'][_0x33e8ac(0x3db)](_0x69c3be,_0x419efd);}async[_0x27153b(0x464)](_0x4552bb){const _0x1ac0d6=_0x27153b;let _0x206f16=0x0;const _0x4d1560=await this[_0x1ac0d6(0x26c)][_0x1ac0d6(0x3cd)](_0x4552bb);return _0x4d1560&&(_0x4d1560[_0x1ac0d6(0x30f)]||_0x4d1560['mutations']['length']!==0x0)&&(_0x206f16=_0x4d1560['rev']),_0x206f16===0x0&&this[_0x1ac0d6(0x37e)][_0x1ac0d6(0x252)](_0x1ac0d6(0x218),_0x1ac0d6(0x46a)),this[_0x1ac0d6(0x295)][_0x1ac0d6(0x3e5)](_0x4552bb,_0x206f16);}};ze=So([me(0x0,Vs),me(0x1,_0x46022f),me(0x2,_0x294dc9),me(0x3,_0x5f357f(D)),me(0x4,_0x5f357f(_0x4ef426)),me(0x5,_0x57a0c7(_0x4875f5))],ze);var po=Object[_0x27153b(0x368)],vo=Object[_0x27153b(0x1df)],Io=(_0x2312a3,_0x5d155b,_0x39d764,_0x2cabf7)=>{const _0x689df4=_0x27153b;for(var _0x101ff3=_0x2cabf7>0x1?void 0x0:_0x2cabf7?vo(_0x5d155b,_0x39d764):_0x5d155b,_0x5bac43=_0x2312a3[_0x689df4(0x361)]-0x1,_0x20b5f4;_0x5bac43>=0x0;_0x5bac43--)(_0x20b5f4=_0x2312a3[_0x5bac43])&&(_0x101ff3=(_0x2cabf7?_0x20b5f4(_0x5d155b,_0x39d764,_0x101ff3):_0x20b5f4(_0x101ff3))||_0x101ff3);return _0x2cabf7&&_0x101ff3&&po(_0x5d155b,_0x39d764,_0x101ff3),_0x101ff3;},ds=(_0xf9d895,_0x4ba9c3)=>(_0x504cde,_0x6ad204)=>_0x4ba9c3(_0x504cde,_0x6ad204,_0xf9d895);const Eo=_0x27153b(0x34b),Co='Univer';let Ze=class extends _0x5c8ab1{constructor(_0x67915d,_0x149687){const _0x43e7e9=_0x27153b;super(),this[_0x43e7e9(0x3ec)]=_0x67915d,this['_configService']=_0x149687,this[_0x43e7e9(0x20b)]();}['_init'](){const _0x581b90=_0x27153b;this[_0x581b90(0x444)](this[_0x581b90(0x3ec)][_0x581b90(0x1b9)][_0x581b90(0x524)](()=>{const _0x20ee5f=_0x581b90;var _0xc9bf94;const _0x5bc6db=this[_0x20ee5f(0x3ec)][_0x20ee5f(0x27f)]();let _0x1a48b9=(_0xc9bf94=this[_0x20ee5f(0x370)][_0x20ee5f(0x48f)](Eo))!=null?_0xc9bf94:Co;_0x5bc6db instanceof _0x2c51fb&&(_0x1a48b9=_0x5bc6db[_0x20ee5f(0x33a)]),document[_0x20ee5f(0x2a5)]=_0x1a48b9;}));}};Ze=Io([ds(0x0,_0x7019b6),ds(0x1,_0x5723c7)],Ze);var bo=Object[_0x27153b(0x368)],To=Object['getOwnPropertyDescriptor'],Ro=(_0x1c353f,_0x4bac19,_0x5d7e20,_0x14f9f7)=>{const _0xca93=_0x27153b;for(var _0x29b0df=_0x14f9f7>0x1?void 0x0:_0x14f9f7?To(_0x4bac19,_0x5d7e20):_0x4bac19,_0x1acc11=_0x1c353f[_0xca93(0x361)]-0x1,_0x1e80ef;_0x1acc11>=0x0;_0x1acc11--)(_0x1e80ef=_0x1c353f[_0x1acc11])&&(_0x29b0df=(_0x14f9f7?_0x1e80ef(_0x4bac19,_0x5d7e20,_0x29b0df):_0x1e80ef(_0x29b0df))||_0x29b0df);return _0x14f9f7&&_0x29b0df&&bo(_0x4bac19,_0x5d7e20,_0x29b0df),_0x29b0df;},St=(_0x8c75cc,_0x222a62)=>(_0x2d69ce,_0x54dc9c)=>_0x222a62(_0x2d69ce,_0x54dc9c,_0x8c75cc);let Qe=class{constructor(_0x1794c1,_0x316654,_0x5c4d2d){const _0x3eab78=_0x27153b;this[_0x3eab78(0x370)]=_0x1794c1,this[_0x3eab78(0x24b)]=_0x316654,this[_0x3eab78(0x45e)]=_0x5c4d2d,this['init']();}[_0x27153b(0x499)](){const _0x3107a1=_0x27153b;this['_httpService'][_0x3107a1(0x318)]({'priority':0x1,'interceptor':(_0x23dc3d,_0x427338)=>_0x427338(_0x23dc3d)[_0x3107a1(0x229)](_0x25d973(async _0x3582d6=>{const _0x1023be=_0x3107a1,_0x340ecb=_0x3582d6;if(_0x340ecb[_0x1023be(0x3e3)]===0x191&&window[_0x1023be(0x3e8)](this[_0x1023be(0x45e)]['t'](_0x1023be(0x313)))){const _0x189dd2=window[_0x1023be(0x235)](window[_0x1023be(0x1b7)][_0x1023be(0x1f7)]);window[_0x1023be(0x1b7)][_0x1023be(0x1f7)]=this[_0x1023be(0x518)]()+_0x1023be(0x40f)+_0x189dd2;}return _0x340ecb;}))});}['_getLoginPath'](){const _0x4bb1f1=_0x27153b;var _0x4168b6,_0x38a8a5;const _0x32de84=this[_0x4bb1f1(0x370)]['getConfig'](Dn),_0x36ddf3=this['_configService'][_0x4bb1f1(0x48f)](L);return(_0x38a8a5=(_0x4168b6=_0x36ddf3==null?void 0x0:_0x36ddf3[_0x4bb1f1(0x1d2)])!=null?_0x4168b6:_0x32de84)!=null?_0x38a8a5:wn;}};Qe=Ro([St(0x0,_0x5723c7),St(0x1,_0x5f357f(_0x3378bf)),St(0x2,_0x5f357f(_0x1015bf))],Qe);var Oo=Object[_0x27153b(0x368)],Do=Object[_0x27153b(0x1df)],wo=(_0x1e6b81,_0x56a459,_0x1260cd,_0x16556f)=>{for(var _0x5600db=_0x16556f>0x1?void 0x0:_0x16556f?Do(_0x56a459,_0x1260cd):_0x56a459,_0x2952a8=_0x1e6b81['length']-0x1,_0x1bd447;_0x2952a8>=0x0;_0x2952a8--)(_0x1bd447=_0x1e6b81[_0x2952a8])&&(_0x5600db=(_0x16556f?_0x1bd447(_0x56a459,_0x1260cd,_0x5600db):_0x1bd447(_0x5600db))||_0x5600db);return _0x16556f&&_0x5600db&&Oo(_0x56a459,_0x1260cd,_0x5600db),_0x5600db;},fs=(_0x25a1cb,_0x6bbfc)=>(_0x53dd79,_0x161b6d)=>_0x6bbfc(_0x53dd79,_0x161b6d,_0x25a1cb);const Po='AUTHZ_URL_KEY',yo='/universer-api/authz';let Pt=class extends _0x5c8ab1{constructor(_0x117219,_0x4c4a25){const _0x5c7033=_0x27153b;super(),this['_HTTPService']=_0x117219,this['_configService']=_0x4c4a25,this[_0x5c7033(0x3de)]();}['_initMergeInterceptor'](){const _0x3fb7a6=_0x27153b,_0x22c316=this;this[_0x3fb7a6(0x444)](this['_HTTPService'][_0x3fb7a6(0x318)]({'priority':0x3e7,'interceptor':_0xcbb98c({'isMatch'(_0x574446){const _0x4688a7=_0x3fb7a6;var _0xf8344d;if(_0x574446['method']===_0x4688a7(0x344)&&((_0xf8344d=_0x574446[_0x4688a7(0x226)])!=null&&_0xf8344d['body'])){const {objectID:_0x36888b,objectType:_0x33873a}=_0x574446['requestParams']['body']||{};if(!_0x36888b||_0x33873a===void 0x0)return!0x1;const _0x58771d=_0x22c316[_0x4688a7(0x342)]()+'/'+_0x33873a+_0x4688a7(0x433)+_0x36888b+_0x4688a7(0x471);if(_0x574446[_0x4688a7(0x1ae)]===_0x58771d)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x552786){const _0x14d019=_0x3fb7a6;var _0x10a1c3;return(_0x10a1c3=_0x552786[_0x14d019(0x226)])==null?void 0x0:_0x10a1c3[_0x14d019(0x46d)];},'mergeParamsToRequest'(_0x4df980,_0x265b18){const _0x5d1629=_0x3fb7a6,_0x5c7072=_0x22c316['_getAPIPrefixPath']()+_0x5d1629(0x1f6),_0x4fd2f8=_0x4df980[_0x5d1629(0x3d5)]((_0x165e6e,_0x79bfe8)=>{const _0x35d580=_0x5d1629,{unitID:_0x3f2f7f,objectID:_0x4fadbd,objectType:_0x28d7f4,actions:_0x4d16a3}=_0x79bfe8;return _0x165e6e[_0x3f2f7f]||(_0x165e6e[_0x3f2f7f]={}),_0x165e6e[_0x3f2f7f][_0x4fadbd]||(_0x165e6e[_0x3f2f7f][_0x4fadbd]={'objectID':_0x4fadbd,'objectType':_0x28d7f4,'actions':[]}),_0x165e6e[_0x3f2f7f][_0x4fadbd][_0x35d580(0x227)]['push'](..._0x4d16a3),_0x165e6e;},{}),_0x25fe31=[];for(const _0x141681 in _0x4fd2f8)for(const _0x1cc586 in _0x4fd2f8[_0x141681]){const {actions:_0xcbaedd,objectType:_0x3c4941}=_0x4fd2f8[_0x141681][_0x1cc586],_0x391318=[...new Set(_0xcbaedd)];_0x25fe31[_0x5d1629(0x212)]({'unitID':_0x141681,'objectID':_0x1cc586,'objectType':_0x3c4941,'actions':_0x391318});}return new _0x48aceb('POST',_0x5c7072,{'headers':_0x265b18['headers'],'withCredentials':_0x265b18['withCredentials'],'responseType':_0x265b18[_0x5d1629(0x50e)],'body':{'requests':_0x25fe31}});}},{'distributeResult'(_0x120cb6,_0x16012e){const _0x103bda=_0x3fb7a6,{objectActions:_0x5b6639}=_0x120cb6;return _0x16012e[_0x103bda(0x1c9)](_0x29fdae=>{const _0x345c13=_0x103bda,{unitID:_0x486ffe,objectID:_0x476f2a,actions:_0x12cf4e}=_0x29fdae,_0x2dde58=_0x5b6639[_0x345c13(0x292)](_0x3bcd4d=>_0x3bcd4d['unitID']===_0x486ffe&&_0x3bcd4d[_0x345c13(0x521)]===_0x476f2a),_0x5012f6=_0x12cf4e[_0x345c13(0x1c9)](_0x52afab=>_0x2dde58==null?void 0x0:_0x2dde58['actions'][_0x345c13(0x292)](_0x592971=>_0x592971[_0x345c13(0x2f0)]===_0x52afab))[_0x345c13(0x236)](_0x382eff=>!!_0x382eff);return{'config':_0x29fdae,'result':{'actions':_0x5012f6,'error':_0x120cb6['error']}};});}})}));}[_0x27153b(0x342)](){const _0x5ad7f2=_0x27153b;var _0x11e259,_0x3af22c;const _0x1659ac=this['_configService']['getConfig'](Po),_0x3e8ae0=this['_configService']['getConfig'](L);return(_0x3af22c=(_0x11e259=_0x3e8ae0==null?void 0x0:_0x3e8ae0[_0x5ad7f2(0x293)])!=null?_0x11e259:_0x1659ac)!=null?_0x3af22c:yo;}async[_0x27153b(0x2c9)](_0x2c5560){const _0x470beb=_0x27153b,_0x8eceab=this[_0x470beb(0x342)]()+'/'+_0x2c5560[_0x470beb(0x278)]+'/object';return(await this[_0x470beb(0x32f)][_0x470beb(0x271)](_0x8eceab,{'body':_0x2c5560}))[_0x470beb(0x46d)][_0x470beb(0x521)]||'';}async[_0x27153b(0x491)](_0x39628a){const _0x22ef2e=_0x27153b,_0x436ce1=this[_0x22ef2e(0x342)]()+_0x22ef2e(0x2af);return(await this[_0x22ef2e(0x32f)][_0x22ef2e(0x271)](_0x436ce1,{'body':_0x39628a}))['body'][_0x22ef2e(0x288)];}async[_0x27153b(0x2e6)](_0x550cb2){const _0x43b90b=_0x27153b,_0x9e229=this['_getAPIPrefixPath']()+'/'+_0x550cb2[_0x43b90b(0x278)]+'/object/'+_0x550cb2['objectID'];await this[_0x43b90b(0x32f)][_0x43b90b(0x525)](_0x9e229,{'body':_0x550cb2});}async[_0x27153b(0x4a3)](_0x58123e){const _0x32306d=_0x27153b,_0x3dad5f=this[_0x32306d(0x342)]()+'/'+_0x58123e['objectType']+_0x32306d(0x433)+_0x58123e['objectID']+_0x32306d(0x471);return(await this[_0x32306d(0x32f)][_0x32306d(0x271)](_0x3dad5f,{'body':_0x58123e}))['body'][_0x32306d(0x227)];}async['batchAllowed'](_0x21187d){const _0x2f6464=_0x27153b,_0x37d733=this[_0x2f6464(0x342)]()+_0x2f6464(0x1f6);return(await this[_0x2f6464(0x32f)]['post'](_0x37d733,{'body':{'requests':_0x21187d}}))[_0x2f6464(0x46d)][_0x2f6464(0x36c)];}async['listRoles'](_0x3c7ce1){const _0x1a6d4c=_0x27153b,_0x564c7a=this[_0x1a6d4c(0x342)]()+'/'+_0x3c7ce1['objectType']+_0x1a6d4c(0x39c),_0x4cf69f=await this[_0x1a6d4c(0x32f)][_0x1a6d4c(0x271)](_0x564c7a,{'body':_0x3c7ce1});return{'roles':_0x4cf69f[_0x1a6d4c(0x46d)][_0x1a6d4c(0x4de)],'actions':_0x4cf69f['body'][_0x1a6d4c(0x227)]};}async['deleteCollaborator'](_0x2a81ac){const _0x1aa0b3=_0x27153b,_0x238d77=this[_0x1aa0b3(0x342)]()+'/collaborator';await this[_0x1aa0b3(0x32f)][_0x1aa0b3(0x2c4)](_0x238d77,{'params':{'collaboratorID':_0x2a81ac['collaboratorID'],'objectID':_0x2a81ac['objectID'],'unitID':_0x2a81ac[_0x1aa0b3(0x1f0)]}});}async[_0x27153b(0x2a1)](_0x4db519){const _0x56231f=_0x27153b,_0x40adff=this[_0x56231f(0x342)]()+_0x56231f(0x452);await this[_0x56231f(0x32f)][_0x56231f(0x4c4)](_0x40adff,{'body':_0x4db519});}async['createCollaborator'](_0x2c653a){const _0x2390a1=_0x27153b,_0x3517a3=this[_0x2390a1(0x342)]()+_0x2390a1(0x452);await this['_HTTPService'][_0x2390a1(0x271)](_0x3517a3,{'body':_0x2c653a});}async[_0x27153b(0x2ab)](_0x3b4d8c){const _0x1a7627=_0x27153b,_0x1839db=this['_getAPIPrefixPath']()+_0x1a7627(0x452);return(await this[_0x1a7627(0x32f)][_0x1a7627(0x48e)](_0x1839db,{'params':{'objectID':_0x3b4d8c['objectID'],'unitID':_0x3b4d8c['unitID']}}))[_0x1a7627(0x46d)][_0x1a7627(0x3cc)];}async[_0x27153b(0x42f)](_0x25670f){const _0x573797=_0x27153b,_0x163a73=this['_getAPIPrefixPath']()+_0x573797(0x452);await this[_0x573797(0x32f)][_0x573797(0x525)](_0x163a73,{'body':_0x25670f});}};Pt=wo([fs(0x0,_0x5f357f(_0x3378bf)),fs(0x1,_0x5f357f(_0x5723c7))],Pt);var No=Object['defineProperty'],Uo=Object[_0x27153b(0x1df)],Mo=(_0x58c3af,_0x27e238,_0x132ca5,_0x4fec2c)=>{const _0x2d3d12=_0x27153b;for(var _0x37798c=_0x4fec2c>0x1?void 0x0:_0x4fec2c?Uo(_0x27e238,_0x132ca5):_0x27e238,_0x221c17=_0x58c3af[_0x2d3d12(0x361)]-0x1,_0x2a29ec;_0x221c17>=0x0;_0x221c17--)(_0x2a29ec=_0x58c3af[_0x221c17])&&(_0x37798c=(_0x4fec2c?_0x2a29ec(_0x27e238,_0x132ca5,_0x37798c):_0x2a29ec(_0x37798c))||_0x37798c);return _0x4fec2c&&_0x37798c&&No(_0x27e238,_0x132ca5,_0x37798c),_0x37798c;},Ao=(_0x1bc19b,_0x5907cd)=>(_0x49def8,_0x2091ed)=>_0x5907cd(_0x49def8,_0x2091ed,_0x1bc19b);let et=class{constructor(_0x265613){const _0x4d9e0f=_0x27153b;this['_httpService']=_0x265613,this[_0x4d9e0f(0x253)]();}[_0x27153b(0x253)](){const _0x6805c0=_0x27153b;this[_0x6805c0(0x24b)]['registerHTTPInterceptor']({'interceptor':(_0x87adeb,_0x2e792e)=>{const _0x31077b=_0x6805c0,_0x1f0596=_0x87adeb[_0x31077b(0x1de)],_0xe63d04=_0x117ea9();return _0xe63d04&&_0x1f0596[_0x31077b(0x34f)](_0x31077b(0x3ca),_0xe63d04),_0x2e792e(_0x87adeb);}});}};et=Mo([Ao(0x0,_0x5f357f(_0x3378bf))],et);var Lo=Object[_0x27153b(0x368)],$o=Object[_0x27153b(0x1df)],jo=(_0x34d8fc,_0x111853,_0xfa7dd9,_0x126aa3)=>{for(var _0x476291=_0x126aa3>0x1?void 0x0:_0x126aa3?$o(_0x111853,_0xfa7dd9):_0x111853,_0x35c248=_0x34d8fc['length']-0x1,_0x16da58;_0x35c248>=0x0;_0x35c248--)(_0x16da58=_0x34d8fc[_0x35c248])&&(_0x476291=(_0x126aa3?_0x16da58(_0x111853,_0xfa7dd9,_0x476291):_0x16da58(_0x476291))||_0x476291);return _0x126aa3&&_0x476291&&Lo(_0x111853,_0xfa7dd9,_0x476291),_0x476291;},pt=(_0x4c2792,_0x105fe2)=>(_0xf7eae1,_0x3ba826)=>_0x105fe2(_0xf7eae1,_0x3ba826,_0x4c2792);const xo=[_0x27153b(0x424),_0x27153b(0x3fc),'image/jpg',_0x27153b(0x334),'image/bmp'],Ho=0x5*0x400*0x400,ko=_0x27153b(0x381),Bo='/universer-api/stream/file/upload',Vo=_0x27153b(0x4c2),Fo=_0x27153b(0x437);let yt=class{constructor(_0x5e1066,_0x2cce4a,_0x4f1357){const _0x49906c=_0x27153b;l(this,_0x49906c(0x3ae),0x0),l(this,_0x49906c(0x1d1),new _0x351358()),l(this,_0x49906c(0x446),this[_0x49906c(0x1d1)]),l(this,_0x49906c(0x2b8),new Map()),(this[_0x49906c(0x24b)]=_0x5e1066,this['_configService']=_0x2cce4a,this[_0x49906c(0x3ec)]=_0x4f1357);}['setWaitCount'](_0x750385){const _0x15d859=_0x27153b;this[_0x15d859(0x3ae)]=_0x750385,this[_0x15d859(0x1d1)][_0x15d859(0x26a)](_0x750385);}['getImageSourceCache'](_0x4f3ede,_0x3fe102){const _0x323103=_0x27153b;if(_0x3fe102===_0xcfe4a0[_0x323103(0x2ba)]){const _0x3cd1bd=new Image();return _0x3cd1bd['src']=_0x4f3ede,_0x3cd1bd;}return this['_imageSourceCache'][_0x323103(0x48e)](_0x4f3ede);}[_0x27153b(0x528)](_0x36498c,_0x5ceba0,_0x148931){const _0x5aea49=_0x27153b;_0x5ceba0===_0xcfe4a0[_0x5aea49(0x2ba)]||_0x148931==null||this[_0x5aea49(0x2b8)][_0x5aea49(0x34f)](_0x36498c,_0x148931);}async[_0x27153b(0x1ef)](_0x46d672){const _0x26b616=_0x27153b;try{const _0x30e5df=this['_replaceFileID'](this[_0x26b616(0x421)](),''+_0x46d672),_0xe1ace2=(await this['_httpService'][_0x26b616(0x48e)](_0x30e5df))[_0x26b616(0x46d)];if(_0xe1ace2[_0x26b616(0x1ea)]&&_0xe1ace2[_0x26b616(0x1ea)]['code']===Us['OK']){const _0x18b6d8=new URL(_0xe1ace2['url'],this[_0x26b616(0x233)]())['toString']();return Promise[_0x26b616(0x243)](_0x18b6d8);}return Promise[_0x26b616(0x25e)](_0xe1ace2['error']);}catch(_0x31ec42){return Promise[_0x26b616(0x25e)](_0x31ec42);}}async['saveImage'](_0x2a06ad){const _0x41c481=_0x27153b;let _0x2fa5c6='';if(!xo[_0x41c481(0x3dc)](_0x2a06ad[_0x41c481(0x250)]))return this[_0x41c481(0x4b1)](),Promise[_0x41c481(0x25e)](new Error(_0x5ed7f0[_0x41c481(0x44d)]));if(_0x2a06ad[_0x41c481(0x38e)]>Ho)return this['_decreaseWaiting'](),Promise[_0x41c481(0x25e)](new Error(_0x5ed7f0[_0x41c481(0x1f2)]));try{const _0xa33d68=new FormData();_0xa33d68[_0x41c481(0x220)](_0x41c481(0x46b),_0x2a06ad);const _0x17335b=this[_0x41c481(0x3ec)]['getFocusedUnit'](),_0x599b98=_0x17335b==null?void 0x0:_0x17335b[_0x41c481(0x25a)]();if(!_0x599b98)throw new Error(_0x41c481(0x3f9));const _0x1637e6=this[_0x41c481(0x214)]()+_0x41c481(0x41a)+_0x2a06ad[_0x41c481(0x38e)][_0x41c481(0x503)]()+'&source='+Ms['UnitEmbedded']+_0x41c481(0x3f4)+encodeURIComponent(_0x599b98),_0xc17d51=await(await fetch(_0x1637e6,{'method':_0x41c481(0x344),'body':_0xa33d68}))[_0x41c481(0x1bf)]();if(typeof _0xc17d51[_0x41c481(0x1b4)]!=_0x41c481(0x2be))return this['_decreaseWaiting'](),Promise[_0x41c481(0x25e)](new Error(_0x5ed7f0['ERROR_IMAGE']));_0x2fa5c6=_0xc17d51[_0x41c481(0x1b4)];}catch{return this[_0x41c481(0x4b1)](),Promise[_0x41c481(0x25e)](new Error(_0x5ed7f0[_0x41c481(0x473)]));}return new Promise((_0x369a88,_0x23436f)=>{const _0x30675b=_0x41c481,_0x31b555=new FileReader();_0x31b555[_0x30675b(0x2a6)](_0x2a06ad),_0x31b555[_0x30675b(0x280)]=_0x68b3bb=>{const _0x2edced=_0x30675b;var _0x6703f;const _0x5dd800=(_0x6703f=_0x68b3bb[_0x2edced(0x291)])==null?void 0x0:_0x6703f[_0x2edced(0x3e6)];if(_0x5dd800==null){this[_0x2edced(0x4b1)](),_0x23436f(new Error(_0x5ed7f0['ERROR_IMAGE']));return;}const _0xdf1df6=_0x4ffcf9['generateRandomId'](0x6);_0x369a88({'imageId':_0xdf1df6,'imageSourceType':_0xcfe4a0[_0x2edced(0x1dc)],'source':_0x2fa5c6,'base64Cache':_0x5dd800,'status':_0x5ed7f0[_0x2edced(0x245)]}),this['_decreaseWaiting']();};});}[_0x27153b(0x214)](){const _0x15fdca=_0x27153b;var _0x25a228,_0x48d898;const _0x76400f=this[_0x15fdca(0x370)][_0x15fdca(0x48f)](ko),_0x42c6fa=this[_0x15fdca(0x370)][_0x15fdca(0x48f)](L);return(_0x48d898=(_0x25a228=_0x42c6fa==null?void 0x0:_0x42c6fa[_0x15fdca(0x29e)])!=null?_0x25a228:_0x76400f)!=null?_0x48d898:Bo;}[_0x27153b(0x421)](){const _0x5a082a=_0x27153b;var _0x14637c,_0x441939;const _0x4042bc=this[_0x5a082a(0x370)][_0x5a082a(0x48f)](Vo),_0x16bd53=this[_0x5a082a(0x370)][_0x5a082a(0x48f)](L);return(_0x441939=(_0x14637c=_0x16bd53==null?void 0x0:_0x16bd53[_0x5a082a(0x501)])!=null?_0x14637c:_0x4042bc)!=null?_0x441939:Fo;}[_0x27153b(0x233)](){const _0x2d3c98=_0x27153b;var _0x3f4a58;const _0x4564ca=this[_0x2d3c98(0x370)][_0x2d3c98(0x48f)](L);return(_0x3f4a58=_0x4564ca==null?void 0x0:_0x4564ca[_0x2d3c98(0x285)])!=null?_0x3f4a58:location[_0x2d3c98(0x1ed)];}[_0x27153b(0x3a3)](_0x124cf0,_0x5b288b){const _0x31820a=_0x27153b;return _0x124cf0[_0x31820a(0x4d7)](_0x31820a(0x1b8),_0x5b288b);}[_0x27153b(0x4b1)](){const _0x1e73e5=_0x27153b;this[_0x1e73e5(0x3ae)]-=0x1,this[_0x1e73e5(0x1d1)][_0x1e73e5(0x26a)](this[_0x1e73e5(0x3ae)]);}};yt=jo([pt(0x0,_0x5f357f(_0x3378bf)),pt(0x1,_0x5723c7),pt(0x2,_0x5f357f(_0x7019b6))],yt);var Wo=Object[_0x27153b(0x368)],Go=Object[_0x27153b(0x1df)],Yo=(_0x54a9dc,_0x4565bb,_0x4cc07e,_0x5efdc9)=>{const _0x37825d=_0x27153b;for(var _0x2ea280=_0x5efdc9>0x1?void 0x0:_0x5efdc9?Go(_0x4565bb,_0x4cc07e):_0x4565bb,_0x5f18c4=_0x54a9dc[_0x37825d(0x361)]-0x1,_0x5eb64e;_0x5f18c4>=0x0;_0x5f18c4--)(_0x5eb64e=_0x54a9dc[_0x5f18c4])&&(_0x2ea280=(_0x5efdc9?_0x5eb64e(_0x4565bb,_0x4cc07e,_0x2ea280):_0x5eb64e(_0x2ea280))||_0x2ea280);return _0x5efdc9&&_0x2ea280&&Wo(_0x4565bb,_0x4cc07e,_0x2ea280),_0x2ea280;},Pe=(_0x288d25,_0x312ddd)=>(_0x3cc3f1,_0x21d6d3)=>_0x312ddd(_0x3cc3f1,_0x21d6d3,_0x288d25);let tt=class extends _0x33a34d{constructor(_0x3cef5b,_0x3e3674,_0x4d40ba,_0x2f4b05,_0x1c57a0){const _0x48c939=_0x27153b;super(),this[_0x48c939(0x2ae)]=_0x3cef5b,this['_univerInstanceService']=_0x3e3674,this[_0x48c939(0x275)]=_0x4d40ba,this['_collaborationSessionService']=_0x2f4b05,this[_0x48c939(0x286)]=_0x1c57a0,this[_0x48c939(0x1dd)](),this['_initCloseConn']();}['_initCloseConn'](){const _0x1d3a77=_0x27153b,_0x435a6d=async _0x2e9615=>{const _0x89230a=_0x5b57;(await this[_0x89230a(0x30d)][_0x89230a(0x3a9)](_0x2e9615))[_0x89230a(0x4b7)]['pipe'](_0x5cb558(_0x208fc7=>_0x208fc7['eventID']===_0x508ea5['SHOULD_CLOSE_CONN']),_0x2d4694(this['dispose$']))[_0x89230a(0x524)](_0x2b52c2=>{const _0x2e55b0=_0x89230a,_0x3e8d4f=_0x2b52c2,{reason:_0x382255}=_0x3e8d4f[_0x2e55b0(0x436)];this[_0x2e55b0(0x2ae)]['get'](_0x2ae10a)[_0x2e55b0(0x4a8)]({'type':_0xcc72d3[_0x2e55b0(0x3e7)],'content':this[_0x2e55b0(0x286)]['t'](_0x2e55b0(0x485))+'('+_0x382255+')'}),this['_permissionService'][_0x2e55b0(0x272)](new _0x38d08c(_0x2e9615)['id'],!0x1),this[_0x2e55b0(0x30d)][_0x2e55b0(0x4e0)](_0x2e9615);});};_0x5cd6ce(this[_0x1d3a77(0x3ec)]['getTypeOfUnitAdded$'](_0x25b157[_0x1d3a77(0x4e9)]),this['_univerInstanceService'][_0x1d3a77(0x376)](_0x25b157[_0x1d3a77(0x411)]))['pipe'](_0x205ee2(_0x2d82d8=>_0x2d82d8[_0x1d3a77(0x25a)]()),_0x5cb558(_0x11a260=>!_0xc6215e(_0x11a260)),_0x2d4694(this[_0x1d3a77(0x359)]))[_0x1d3a77(0x524)](_0x49776b=>{_0x435a6d(_0x49776b);});}[_0x27153b(0x1dd)](){const _0x32971d=_0x27153b,_0x27596d=async _0x1a474c=>{const _0x1d6e3a=_0x5b57;(await this[_0x1d6e3a(0x30d)]['requireSession'](_0x1a474c))[_0x1d6e3a(0x4b7)][_0x1d6e3a(0x229)](_0x5cb558(_0x554126=>_0x554126[_0x1d6e3a(0x247)]===_0x508ea5[_0x1d6e3a(0x397)]),_0x2d4694(this['dispose$']))['subscribe'](_0x276740=>{const _0xaec724=_0x1d6e3a,_0x35f3cf=_0x276740,{objectId:_0x21d600}=_0x35f3cf['data'],_0x404f09=this[_0xaec724(0x2ae)][_0xaec724(0x48e)](_0x190f87);_0x21d600===_0x1a474c?_0x404f09['initWorkbookPermissionChange'](_0x1a474c):_0x404f09[_0xaec724(0x37f)](_0x1a474c,_0x21d600);});};_0x5cd6ce(this[_0x32971d(0x3ec)][_0x32971d(0x376)](_0x25b157[_0x32971d(0x4e9)]),this[_0x32971d(0x3ec)]['getTypeOfUnitAdded$'](_0x25b157[_0x32971d(0x411)]))['pipe'](_0x205ee2(_0x527f85=>_0x527f85[_0x32971d(0x25a)]()),_0x5cb558(_0x102b7a=>!_0xc6215e(_0x102b7a)),_0x2d4694(this[_0x32971d(0x359)]))[_0x32971d(0x524)](_0x1d1c50=>{_0x27596d(_0x1d1c50);});}};tt=Yo([Pe(0x0,_0x5f357f(_0x45059e)),Pe(0x1,_0x7019b6),Pe(0x2,_0x23c798),Pe(0x3,_0x5f357f(ce)),Pe(0x4,_0x5f357f(_0x1015bf))],tt);var Ko=Object[_0x27153b(0x368)],Xo=Object[_0x27153b(0x1df)],Jo=(_0x5d0c6d,_0x3bb996,_0x14cf4f,_0x49e42f)=>{for(var _0x21c5d0=_0x49e42f>0x1?void 0x0:_0x49e42f?Xo(_0x3bb996,_0x14cf4f):_0x3bb996,_0x550383=_0x5d0c6d['length']-0x1,_0x10a577;_0x550383>=0x0;_0x550383--)(_0x10a577=_0x5d0c6d[_0x550383])&&(_0x21c5d0=(_0x49e42f?_0x10a577(_0x3bb996,_0x14cf4f,_0x21c5d0):_0x10a577(_0x21c5d0))||_0x21c5d0);return _0x49e42f&&_0x21c5d0&&Ko(_0x3bb996,_0x14cf4f,_0x21c5d0),_0x21c5d0;},ms=(_0x1020c3,_0x3dba81)=>(_0xd455ad,_0x5a29d3)=>_0x3dba81(_0xd455ad,_0x5a29d3,_0x1020c3);let Nt=class{constructor(_0x59d09e,_0x4c9859){const _0x19d534=_0x27153b;this[_0x19d534(0x370)]=_0x59d09e,this[_0x19d534(0x24b)]=_0x4c9859;}async['getUnitOnRev'](_0x24e4b3,_0x40b214){const _0x340d2f=_0x27153b;var _0x2f9635;const {unitID:_0x29ca36,type:_0x5c5ee6,revision:_0x220ac1=0x0}=_0x40b214,_0x28f13b=this[_0x340d2f(0x42d)]()+'/'+_0x5c5ee6+_0x340d2f(0x4c9)+_0x29ca36+'/rev/'+_0x220ac1,_0x128d08=(await this[_0x340d2f(0x24b)][_0x340d2f(0x48e)](_0x28f13b))['body'],_0x5b741f=(_0x2f9635=_0x128d08[_0x340d2f(0x2c1)])==null?void 0x0:_0x2f9635['workbook'];if(_0x5b741f){const _0x2afef7=_0x5b741f==null?void 0x0:_0x5b741f[_0x340d2f(0x511)],_0x292937=_0x355b6f[_0x340d2f(0x49b)](_0x57ebe6(_0x2afef7));_0x5b741f[_0x340d2f(0x511)]=_0x292937,Object[_0x340d2f(0x44b)](_0x5b741f[_0x340d2f(0x1d7)])['forEach'](([,_0x8121cc])=>{const _0xa68de7=_0x340d2f,_0x3e1a6e=_0x8121cc[_0xa68de7(0x511)],_0x40ff51=_0x355b6f['encode'](_0x57ebe6(_0x3e1a6e));_0x8121cc[_0xa68de7(0x511)]=_0x40ff51;});}return _0x128d08;}async[_0x27153b(0x2b2)](_0x13f61f,_0x51d0d9){const _0x224db5=_0x27153b,{unitID:_0x49b69a,type:_0x66bb47,blockID:_0x5aeae6}=_0x51d0d9,_0x53b084=this[_0x224db5(0x1ce)]()+'/'+_0x66bb47+_0x224db5(0x4c9)+_0x49b69a+_0x224db5(0x23a)+_0x5aeae6;return(await this['_httpService'][_0x224db5(0x48e)](_0x53b084))['body'];}async[_0x27153b(0x1b3)](_0x188943,_0x350d9b){const _0x51ae11=_0x27153b,{unitID:_0x2c7284,type:_0x29830d,blockID:_0x73dee8}=_0x350d9b,_0x980e68=this[_0x51ae11(0x1ce)]()+_0x51ae11(0x23a)+_0x29830d+_0x51ae11(0x4c9)+_0x2c7284+_0x51ae11(0x23a)+_0x73dee8;return(await this[_0x51ae11(0x24b)][_0x51ae11(0x48e)](_0x980e68))[_0x51ae11(0x46d)];}async[_0x27153b(0x454)](_0x51b3ec,_0x281b4b){const _0x352e90=_0x27153b,{unitID:_0x149e8c,type:_0x4d38b2,from:_0x59415b,to:_0x182341}=_0x281b4b,_0x3421bf=this[_0x352e90(0x1ce)]()+'/'+_0x4d38b2+_0x352e90(0x4c9)+_0x149e8c+_0x352e90(0x3d6)+_0x59415b+'&to='+_0x182341;return(await this[_0x352e90(0x24b)][_0x352e90(0x48e)](_0x3421bf))[_0x352e90(0x46d)];}[_0x27153b(0x42d)](){const _0x373357=_0x27153b;var _0x14a50c;return(_0x14a50c=this['_configService'][_0x373357(0x48f)](fn))!=null?_0x14a50c:this[_0x373357(0x1ce)]();}['_getAPIPrefix'](){const _0x8e640d=_0x27153b;var _0x24519f,_0x3cb1a6;const _0xcc28db=this[_0x8e640d(0x370)][_0x8e640d(0x48f)](un),_0x43a71e=this['_configService'][_0x8e640d(0x48f)](L);return(_0x3cb1a6=(_0x24519f=_0x43a71e==null?void 0x0:_0x43a71e[_0x8e640d(0x50d)])!=null?_0x24519f:_0xcc28db)!=null?_0x3cb1a6:dn;}async[_0x27153b(0x3c8)](_0x1e5939,_0x5ed964){const _0x1bec13=_0x27153b,_0x22ce92=_0x1bec13(0x4c8)+_0x5ed964['type']+_0x1bec13(0x4c9)+_0x5ed964['unitID']+_0x1bec13(0x45b);return(await this[_0x1bec13(0x24b)][_0x1bec13(0x48e)](_0x22ce92,{'params':{'resourceId':JSON[_0x1bec13(0x30c)](_0x5ed964[_0x1bec13(0x480)])}}))[_0x1bec13(0x46d)];}[_0x27153b(0x4d6)](){const _0x54188f=_0x27153b;throw new Error(_0x54188f(0x413));}[_0x27153b(0x4f8)](){const _0x4ab042=_0x27153b;throw new Error(_0x4ab042(0x413));}[_0x27153b(0x1c6)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x27153b(0x289)](){const _0x51616e=_0x27153b;throw new Error(_0x51616e(0x413));}};Nt=Jo([ms(0x0,_0x5723c7),ms(0x1,_0x5f357f(_0x3378bf))],Nt);var qo=Object[_0x27153b(0x368)],zo=Object[_0x27153b(0x1df)],Zo=(_0x4bfe95,_0x450d98,_0x2c9fe8,_0x2a8083)=>{const _0x56b31d=_0x27153b;for(var _0x4aaafa=_0x2a8083>0x1?void 0x0:_0x2a8083?zo(_0x450d98,_0x2c9fe8):_0x450d98,_0x184350=_0x4bfe95[_0x56b31d(0x361)]-0x1,_0x2bd5b4;_0x184350>=0x0;_0x184350--)(_0x2bd5b4=_0x4bfe95[_0x184350])&&(_0x4aaafa=(_0x2a8083?_0x2bd5b4(_0x450d98,_0x2c9fe8,_0x4aaafa):_0x2bd5b4(_0x4aaafa))||_0x4aaafa);return _0x2a8083&&_0x4aaafa&&qo(_0x450d98,_0x2c9fe8,_0x4aaafa),_0x4aaafa;},ye=(_0x2ac083,_0x5a1c0b)=>(_0x4a9286,_0x5cf82b)=>_0x5a1c0b(_0x4a9286,_0x5cf82b,_0x2ac083);let Ut=class extends _0x14eb3f{constructor(_0x16be9b,_0x5470be,_0x23350a,_0x290b21,_0x23c8ad){const _0x3a1b4a=_0x27153b;super(_0x16be9b,_0x5470be,_0x23350a),this[_0x3a1b4a(0x4ff)]=_0x290b21,this[_0x3a1b4a(0x37e)]=_0x23c8ad;}[_0x27153b(0x24a)](_0x29558b,_0x140893){const _0x1d9845=_0x27153b,_0xa4b5b9=this['_getUndoStack'](_0x29558b);if(_0xa4b5b9)try{const _0x9fd78d=this['_transformStack'](_0xa4b5b9,_0x140893);this[_0x1d9845(0x48b)](_0x29558b,_0x9fd78d);}catch(_0x336b2b){this['_logService']['error'](_0x1d9845(0x3f8),_0x336b2b),this[_0x1d9845(0x3ac)](_0x29558b);}const _0x164bea=this['_getRedoStack'](_0x29558b);if(_0x164bea)try{const _0x50ba84=this[_0x1d9845(0x20a)](_0x164bea,_0x140893);this[_0x1d9845(0x44a)](_0x29558b,_0x50ba84);}catch(_0x29e281){this[_0x1d9845(0x37e)][_0x1d9845(0x1ea)](_0x29e281),this[_0x1d9845(0x500)](_0x29558b);}}['_clearUndo'](_0x468717){const _0x104318=_0x27153b,_0x1bb9b6=this[_0x104318(0x43c)](_0x468717);_0x1bb9b6&&(_0x1bb9b6[_0x104318(0x361)]=0x0,this[_0x104318(0x30e)]());}[_0x27153b(0x500)](_0x476d4a){const _0x29bb67=_0x27153b,_0x56bf69=this[_0x29bb67(0x37b)](_0x476d4a);_0x56bf69&&(_0x56bf69[_0x29bb67(0x361)]=0x0,this['_updateStatus']());}[_0x27153b(0x48b)](_0x5d130d,_0x2b7cce){const _0x28b973=_0x27153b;this[_0x28b973(0x28a)][_0x28b973(0x34f)](_0x5d130d,_0x2b7cce),this[_0x28b973(0x30e)]();}[_0x27153b(0x44a)](_0x530704,_0x3c7fac){const _0x54d01d=_0x27153b;this[_0x54d01d(0x1c4)][_0x54d01d(0x34f)](_0x530704,_0x3c7fac),this[_0x54d01d(0x30e)]();}[_0x27153b(0x20a)](_0x13b865,_0x2ae6f8){const _0x2fdf2a=_0x27153b,_0x2a1fb4=[];let _0x264808=_0x2ae6f8,_0x376a8c=_0x2ae6f8;for(let _0x2ef713=_0x13b865[_0x2fdf2a(0x361)]-0x1;_0x2ef713>=0x0;_0x2ef713--){const {unitID:_0x2421b1,undoMutations:_0x32a0d8,redoMutations:_0x6eb953}=_0x13b865[_0x2ef713],_0x475e5d=this[_0x2fdf2a(0x4ff)][_0x2fdf2a(0x44c)](_0x264808,_0x32a0d8),_0x20cbf2=this['_transformService'][_0x2fdf2a(0x44c)](_0x376a8c,_0x6eb953);if(_0x1e7d70(_0x475e5d)||_0x1e7d70(_0x20cbf2)){this['_logService'][_0x2fdf2a(0x1ea)](_0x2fdf2a(0x3f8),'transformStack\x20failed!',_0x475e5d,_0x20cbf2);break;}_0x264808=_0x475e5d[_0x2fdf2a(0x496)],_0x376a8c=_0x20cbf2[_0x2fdf2a(0x496)],_0x2a1fb4[_0x2fdf2a(0x212)]({'unitID':_0x2421b1,'undoMutations':_0x475e5d['m2Prime'],'redoMutations':_0x20cbf2[_0x2fdf2a(0x48a)]});}return _0x2a1fb4[_0x2fdf2a(0x21b)]();}};Ut=Zo([ye(0x0,_0x7019b6),ye(0x1,_0x294dc9),ye(0x2,_0x38521c),ye(0x3,_0x116203),ye(0x4,_0x46022f)],Ut);class Qo extends _0x33a34d{constructor(){const _0x3609c8=_0x27153b;super(),l(this,_0x3609c8(0x22b)),this[_0x3609c8(0x22b)]=_0x1202a7(window,'popstate')[_0x3609c8(0x229)](_0x20928f(this[_0x3609c8(0x359)]),_0x246087(0x1),_0x2c3761(void 0x0));}[_0x27153b(0x4df)](_0x5ed7e0,_0x5cb141,_0x4ab46f=!0x1){const _0x3ebb8f=_0x27153b,_0x12c589=new URL(window[_0x3ebb8f(0x1b7)][_0x3ebb8f(0x1f7)]);_0x12c589['searchParams'][_0x3ebb8f(0x34f)](_0x5ed7e0,_0x5cb141),_0x4ab46f?window[_0x3ebb8f(0x38d)]['replaceState']('','',_0x12c589['toString']()):window['history'][_0x3ebb8f(0x257)]('','',_0x12c589[_0x3ebb8f(0x503)]());}[_0x27153b(0x1be)](_0x489851,_0x8db9e5=!0x1){const _0x1711c0=_0x27153b,_0x3ca143=new URL(window[_0x1711c0(0x1b7)][_0x1711c0(0x1f7)]);_0x3ca143[_0x1711c0(0x502)][_0x1711c0(0x2c4)](_0x489851),_0x8db9e5?window[_0x1711c0(0x38d)]['replaceState']('','',_0x3ca143[_0x1711c0(0x503)]()):window['history'][_0x1711c0(0x257)]('','',_0x3ca143[_0x1711c0(0x503)]());}['getParam'](_0x43910e){const _0x56fe42=_0x27153b;var _0x147cef;return(_0x147cef=new URL(window[_0x56fe42(0x1b7)][_0x56fe42(0x1f7)])['searchParams'][_0x56fe42(0x48e)](_0x43910e))!=null?_0x147cef:void 0x0;}}var Fs=Object[_0x27153b(0x368)],ea=Object[_0x27153b(0x1df)],ta=(_0x793c48,_0x3057dc,_0x319738)=>_0x3057dc in _0x793c48?Fs(_0x793c48,_0x3057dc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x319738}):_0x793c48[_0x3057dc]=_0x319738,sa=(_0x460628,_0x1c2017,_0x4d6d6c,_0x52d5c1)=>{const _0x1efd5b=_0x27153b;for(var _0x4d273a=_0x52d5c1>0x1?void 0x0:_0x52d5c1?ea(_0x1c2017,_0x4d6d6c):_0x1c2017,_0x239751=_0x460628[_0x1efd5b(0x361)]-0x1,_0x1d0ace;_0x239751>=0x0;_0x239751--)(_0x1d0ace=_0x460628[_0x239751])&&(_0x4d273a=(_0x52d5c1?_0x1d0ace(_0x1c2017,_0x4d6d6c,_0x4d273a):_0x1d0ace(_0x4d273a))||_0x4d273a);return _0x52d5c1&&_0x4d273a&&Fs(_0x1c2017,_0x4d6d6c,_0x4d273a),_0x4d273a;},ke=(_0x5296b3,_0x2ffbc2)=>(_0x223783,_0x392ad9)=>_0x2ffbc2(_0x223783,_0x392ad9,_0x5296b3),ia=(_0x4051db,_0x212f1a,_0x3db67b)=>ta(_0x4051db,_0x212f1a+'',_0x3db67b);const na=_0x27153b(0x495);let Mt=class extends _0x2212a9{constructor(_0x1bd6b3=Pn,_0x4aa8be,_0x395920,_0x4bc5c3,_0x579059){const _0x4e49f9=_0x27153b;super(),this['_config']=_0x1bd6b3,this[_0x4e49f9(0x37e)]=_0x4aa8be,this[_0x4e49f9(0x51b)]=_0x395920,this['_injector']=_0x4bc5c3,this[_0x4e49f9(0x370)]=_0x579059;const {..._0x19644e}=this[_0x4e49f9(0x4ad)];this['_configService'][_0x4e49f9(0x321)](L,_0x19644e);}[_0x27153b(0x3b8)](){const _0x3fd8b3=_0x27153b;this[_0x3fd8b3(0x279)](),this[_0x3fd8b3(0x2ae)][_0x3fd8b3(0x48e)](pe),this[_0x3fd8b3(0x2ae)][_0x3fd8b3(0x48e)](ze),this[_0x3fd8b3(0x2ae)][_0x3fd8b3(0x48e)](tt);}[_0x27153b(0x27d)](){this['_injector']['get'](Ze);}[_0x27153b(0x33d)](){const _0x157e98=_0x27153b;this[_0x157e98(0x3b0)]();}['onSteady'](){const _0x27669b=_0x27153b;this[_0x27669b(0x2ae)][_0x27669b(0x48e)](qe);}[_0x27153b(0x279)](){const _0x4e8812=_0x27153b;var _0x5744cd,_0x32aea0,_0x30ac14,_0x45f028;this[_0x4e8812(0x2ae)][_0x4e8812(0x306)](_0x298901)&&this[_0x4e8812(0x37e)][_0x4e8812(0x1ea)](_0x4e8812(0x31e),_0x4e8812(0x2fc));let _0x4fe2b9=[[_0x298901,{'useClass':Ut}],[ce],[Ft],[_0x3378bf],[Vs,{'useClass':Qo}],[ae],[D],[_0x2a42e5],[Ke],[Xe],[Ye],[Bt],[Qe],[et],[Ls],[tt],[As,{'useClass':(_0x32aea0=(_0x5744cd=this[_0x4e8812(0x4ad)])==null?void 0x0:_0x5744cd['socketService'])!=null?_0x32aea0:Ct}],[_0x17c8f3,{'useClass':_0x28ad9a}],[_0x236384,{'useClass':Nt}],[_0x3f9db9,{'useClass':Pt}],[_0x975ad5,{'useClass':yt}],[Ae],[ze],[Ue],[Ze],[pe]];(_0x30ac14=this[_0x4e8812(0x4ad)])!=null&&_0x30ac14['enableSingleActiveInstanceLock']&&_0x4fe2b9[_0x4e8812(0x212)]([st,{'useClass':nr}]),_0x4fe2b9=_0x1460aa(_0x4fe2b9,(_0x45f028=this[_0x4e8812(0x4ad)])==null?void 0x0:_0x45f028['override']),_0x4fe2b9['forEach'](_0x433122=>this['_injector']['add'](_0x433122)),this['_initModules']();}[_0x27153b(0x3b0)](){const _0x3240b1=_0x27153b;this[_0x3240b1(0x444)](this['_renderManagerService']['registerRenderModule'](_0x25b157[_0x3240b1(0x411)],[qe])),this[_0x3240b1(0x444)](this[_0x3240b1(0x51b)][_0x3240b1(0x341)](_0x25b157[_0x3240b1(0x4e9)],[wt]));}[_0x27153b(0x364)](){const _0x16c08c=_0x27153b;var _0x5e175d,_0x5b3ee8;this['_injector'][_0x16c08c(0x48e)](_0x3378bf)[_0x16c08c(0x318)]({'priority':0x14,'interceptor':_0x50e245({'maxParallel':0x6})}),this[_0x16c08c(0x2ae)][_0x16c08c(0x48e)](et),(_0x5e175d=this['_config'])!=null&&_0x5e175d['enableOfflineEditing']||this['_injector'][_0x16c08c(0x48e)](D)['disableLocalCache'](),(_0x5b3ee8=this[_0x16c08c(0x4ad)])!=null&&_0x5b3ee8[_0x16c08c(0x3b9)]&&this[_0x16c08c(0x2ae)][_0x16c08c(0x48e)](Qe),this[_0x16c08c(0x2ae)][_0x16c08c(0x48e)](Ae),this[_0x16c08c(0x2ae)][_0x16c08c(0x306)](Ue)&&this['_injector'][_0x16c08c(0x48e)](Ue);}};ia(Mt,_0x27153b(0x509),na),Mt=sa([_0x5733f9(_0x3611a1),ke(0x1,_0x46022f),ke(0x2,_0x1873ab),ke(0x3,_0x5f357f(_0x45059e)),ke(0x4,_0x5723c7)],Mt);export{Po as AUTHZ_URL_KEY,Pt as AuthzIoHttpService,Rn as COLLAB_SUBMIT_CHANGESET_URL_KEY,gn as COLLAB_WEB_SOCKET_URL_KEY,Ae as CollaborationController,Je as CollaborationEntity,bt as CollaborationSession,ce as CollaborationSessionService,Ct as CollaborationSocketService,w as CollaborationStatus,ho as CollaborationStatusDisplay,Ls as CommentService,ze as DataLoaderController,Ue as DesktopCollaborationStatusDisplayController,Tt as DocCollaborationEntity,pn as HEARTBEAT_INTERVAL_KEY,ys as HEARTBEAT_TIMEOUT_KEY,As as ICollaborationSocketService,Vs as IURLService,yt as ImageIoService,bn as LOCAL_CACHE_INTERVAL_KEY,Dn as LOGIN_URL_KEY,D as LocalCacheService,En as RETRY_CONNECTING_MAX_COUNT_KEY,Ra as SEND_CHANGESET_TIMEOUT_KEY,un as SNAPSHOT_SERVER_URL_KEY,fn as SNAPSHOT_URL_KEY,G as SessionStatus,Gr as SheetCollabCursorShape,Rt as SheetCollaborationEntity,Nt as SnapshotServerOverHTTPService,Mt as UniverCollaborationClientPlugin,Qo as WebURLService,yn as deserializeToCombResponse,Nn as serializeCombRequest};