@univerjs-pro/collaboration-client 0.4.1-nightly.202410221606 → 0.4.1-nightly.202410251606

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 _0xcc124c=_0x293d;(function(_0x4a11e3,_0xd3d04c){const _0xf8231d=_0x293d,_0x4759cc=_0x4a11e3();while(!![]){try{const _0x29cdf5=-parseInt(_0xf8231d(0x2fe))/0x1*(-parseInt(_0xf8231d(0x466))/0x2)+-parseInt(_0xf8231d(0x510))/0x3+-parseInt(_0xf8231d(0x3f0))/0x4*(-parseInt(_0xf8231d(0x380))/0x5)+-parseInt(_0xf8231d(0x365))/0x6+parseInt(_0xf8231d(0x205))/0x7*(-parseInt(_0xf8231d(0x30c))/0x8)+-parseInt(_0xf8231d(0x1be))/0x9*(-parseInt(_0xf8231d(0x2fa))/0xa)+parseInt(_0xf8231d(0x1da))/0xb;if(_0x29cdf5===_0xd3d04c)break;else _0x4759cc['push'](_0x4759cc['shift']());}catch(_0x33e48f){_0x4759cc['push'](_0x4759cc['shift']());}}}(_0x2554,0x36c01));var ri=Object[_0xcc124c(0x2ad)],oi=(_0x25a77f,_0x5b184e,_0x31aed8)=>_0x5b184e in _0x25a77f?ri(_0x25a77f,_0x5b184e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x31aed8}):_0x25a77f[_0x5b184e]=_0x31aed8,l=(_0x20dad6,_0x59003f,_0x5f2dca)=>oi(_0x20dad6,typeof _0x59003f!=_0xcc124c(0x429)?_0x59003f+'':_0x59003f,_0x5f2dca);import{createIdentifier as _0x49cd73,Inject as _0xa01556,Disposable as _0x4dfcd2,DisposableCollection as _0x460f88,toDisposable as _0x5b34e8,IConfigService as _0xf5edd1,ILogService as _0x40bb6c,UserManagerService as _0x421cfd,UniverInstanceType as _0x4eff1c,IUniverInstanceService as _0x4a621b,LocaleService as _0x991281,Optional as _0x18dda4,RxDisposable as _0xb64757,Injector as _0x3064b3,Tools as _0xe487b1,ILocalStorageService as _0x1e31bb,Rectangle as _0x49320b,ICommandService as _0x4ba546,JSONX as _0x2a33d0,CommandType as _0x542ece,IPermissionService as _0x5e2e27,IUndoRedoService as _0x48fa5b,sequenceExecute as _0x27d15e,debounce as _0x1c12c5,COLORS as _0x2c8d44,ColorKit as _0x2ada55,ThemeService as _0x2d99d8,fromEventSubject as _0x186b9e,useDependency as _0x4242ff,connectInjector as _0x219167,Workbook as _0x45305d,isInternalEditorID as _0x10f041,LocalUndoRedoService as _0xfad8ce,IContextService as _0x3dbf38,DependentOn as _0x101b14,Plugin as _0x1c5106,touchDependencies as _0x1f3c54,IAuthzIoService as _0x5da645,mergeOverrideWithDependencies as _0x5c5104}from'@univerjs/core';import{Subject as _0x3ca740,merge as _0x340e15,takeUntil as _0x2cf076,BehaviorSubject as _0x3708bc,distinctUntilChanged as _0x180102,fromEvent as _0x24365b,ReplaySubject as _0x4d114c,take as _0x13b589,map as _0x1706c3,shareReplay as _0x1748c0,of as _0x226e5d,debounceTime as _0x218b65,filter as _0x45726b,switchMap as _0x2b1c92,combineLatest as _0x1395c9,concatMap as _0x2e3fd6,mapTo as _0xfe2ad}from'rxjs';import{map as _0x493a42,take as _0x2f5271,filter as _0x117995,delay as _0x296164,throttleTime as _0x4d59a9,takeUntil as _0x274b03,switchMap as _0x499aa8}from'rxjs/operators';import{MessageType as _0x41136d,Tooltip as _0x2cafc6}from'@univerjs/design';import{IBeforeCloseService as _0x52af3f,IMessageService as _0x354bae,INotificationService as _0x1e71dd,useObservable as _0x137f69,BuiltInUIPart as _0x76aa4b,IUIPartsService as _0x226075}from'@univerjs/ui';import{HTTPService as _0x5f5876,WebSocketService as _0x153f02,MergeInterceptorFactory as _0x4d0cc4,HTTPRequest as _0x442990,IHTTPImplementation as _0x3519ca,XHRHTTPImplementation as _0x291f9f,ThresholdInterceptorFactory as _0x563a08}from'@univerjs/network';import{CollaborationEvent as _0x4b62d5,parseChangesetToProtocol as _0x4b6bf5,ISnapshotServerService as _0x56f9b0,isTransformMutationFailure as _0xbffc4f,isTransformMutationsWithChangesetSuccess as _0x4a7660,ITransformService as _0x279fb0,RevisionService as _0x378b64,mapDocumentTypeToUniverType as _0x1a0020,isTransformChangesetsSuccess as _0x20de62,CompressMutationService as _0x19192a,parseProtocolChangeset as _0x3ff530,SnapshotService as _0x484548,textEncoder as _0x433da2,b64DecodeUnicode as _0xbce4bb,isTransformMutationsWithChangesetFailure as _0x115074,UniverCollaborationPlugin as _0x2dc182}from'@univerjs-pro/collaboration';import{ITelemetryService as _0x5d19a6}from'@univerjs/telemetry';import{DocIMEInputManagerService as _0x347005,DocStateChangeManagerService as _0x5b5ef5,NodePositionConvertToCursor as _0x14989d,isValidRectRange as _0x3886e9,NodePositionConvertToRectRange as _0x2cbc8e,TEXT_RANGE_LAYER_INDEX as _0x13bc1d,SetDocZoomRatioOperation as _0x5b90d3}from'@univerjs/docs-ui';import{SheetsSelectionsService as _0x5c2add,SetSelectionsOperation as _0x2ca063,InsertSheetMutation as _0xdc5fd1,EmptyMutation as _0x5c15e2,WorkbookEditablePermission as _0x5577c9,RefRangeService as _0x163f70,EffectRefRangId as _0x6c2c57,handleIRemoveRow as _0x175627,handleIRemoveCol as _0x4e8184,handleMoveRange as _0x18c972,handleInsertRow as _0x30290c,handleInsertRangeMoveRight as _0xb3c8d5,handleInsertRangeMoveDown as _0x31a259,handleInsertCol as _0x2065a2,handleDeleteRangeMoveUp as _0x37bd96,handleDeleteRangeMoveLeft as _0x3751c3,runRefRangeMutations as _0x1040c2,SetWorksheetActivateCommand as _0x2f1d57}from'@univerjs/sheets';import{IRenderManagerService as _0x739b15,Shape as _0x20dfdf,Rect as _0x178a86,getColor as _0x156ca5,RegularPolygon as _0x2ec8af,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x573d10,Vector2 as _0xf225ea}from'@univerjs/engine-render';import{DocSelectionManagerService as _0x2a59c5,RichTextEditingMutation as _0xba5740,SetTextSelectionsOperation as _0x321de0,DocSkeletonManagerService as _0x493cbc}from'@univerjs/docs';import{ImageSourceType as _0x23cb04,ImageUploadStatusType as _0x23a71,IImageIoService as _0x11079a}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0xcc0d24,serializeRangeWithSheet as _0x5dd5b4}from'@univerjs/engine-formula';import{SheetSkeletonManagerService as _0x347254,VIEWPORT_KEY as _0x19094e,getCoordByCell as _0x1b4f2,getSheetObject as _0x19d902,SheetPermissionInitController as _0x1225bc}from'@univerjs/sheets-ui';import _0x12d0e8,{forwardRef as _0x1650df,useRef as _0x2d2ac6,createElement as _0x3c7df6,useCallback as _0x3796a9}from'react';import{IRemoteInstanceService as _0x4f7c2f}from'@univerjs/rpc';import{getAttachHeader as _0x50fbca}from'@univerjs-pro/license';const In='SNAPSHOT_SERVER_URL_KEY',En=_0xcc124c(0x474),Cn='SNAPSHOT_URL_KEY',Ha=_0xcc124c(0x20c),bn=0x7d0,Tn=_0xcc124c(0x33b),Rn=_0xcc124c(0x27c),On=_0xcc124c(0x50d),Dn=0x7530,js=_0xcc124c(0x433),Hs=0x4e20,wn=0x4e20,Pn='RETRY_CONNECTING_MAX_COUNT',yn=0x3,Un=_0xcc124c(0x3c3),Nn=0x3e8,Mn=_0xcc124c(0x28c),An=_0xcc124c(0x1ba),Ln=_0xcc124c(0x350),$n=_0xcc124c(0x461);var xs=(_0x1272d1=>(_0x1272d1[_0x1272d1[_0xcc124c(0x386)]=0x0]=_0xcc124c(0x386),_0x1272d1[_0x1272d1['OK']=0x1]='OK',_0x1272d1[_0x1272d1[_0xcc124c(0x1b2)]=0x2]='INTERNAL_ERROR',_0x1272d1[_0x1272d1[_0xcc124c(0x3cc)]=0x3]=_0xcc124c(0x3cc),_0x1272d1[_0x1272d1['NOT_FOUND']=0x4]=_0xcc124c(0x367),_0x1272d1[_0x1272d1[_0xcc124c(0x3a0)]=0x5]=_0xcc124c(0x3a0),_0x1272d1[_0x1272d1[_0xcc124c(0x2b1)]=0x6]='ALREADY_EXISTS',_0x1272d1[_0x1272d1[_0xcc124c(0x4a6)]=0x7]=_0xcc124c(0x4a6),_0x1272d1[_0x1272d1['TOO_MANY_REQUESTS']=0x8]='TOO_MANY_REQUESTS',_0x1272d1[_0x1272d1[_0xcc124c(0x41c)]=0x9]='COMPLETION_FINISHED',_0x1272d1[_0x1272d1[_0xcc124c(0x4e9)]=0x1389]=_0xcc124c(0x4e9),_0x1272d1[_0x1272d1[_0xcc124c(0x1bd)]=0x1771]=_0xcc124c(0x1bd),_0x1272d1[_0x1272d1[_0xcc124c(0x256)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x1272d1[_0x1272d1[_0xcc124c(0x40f)]=0x1773]=_0xcc124c(0x40f),_0x1272d1[_0x1272d1['APPLY_REJECT']=0x1b59]=_0xcc124c(0x3c7),_0x1272d1[_0x1272d1[_0xcc124c(0x3c8)]=0x1b5a]=_0xcc124c(0x3c8),_0x1272d1[_0x1272d1[_0xcc124c(0x2cb)]=0x1b5b]=_0xcc124c(0x2cb),_0x1272d1[_0x1272d1[_0xcc124c(0x1af)]=0x1b5c]=_0xcc124c(0x1af),_0x1272d1[_0x1272d1[_0xcc124c(0x224)]=0x1b5d]=_0xcc124c(0x224),_0x1272d1[_0x1272d1[_0xcc124c(0x404)]=0x1f41]=_0xcc124c(0x404),_0x1272d1[_0x1272d1[_0xcc124c(0x37c)]=0x2329]=_0xcc124c(0x37c),_0x1272d1[_0x1272d1[_0xcc124c(0x2a3)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x1272d1[_0x1272d1['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0xcc124c(0x3d9),_0x1272d1[_0x1272d1[_0xcc124c(0x37f)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x1272d1[_0x1272d1[_0xcc124c(0x417)]=0x232d]=_0xcc124c(0x417),_0x1272d1[_0x1272d1['YUUMI_UNABLE_LOAD_URL']=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x1272d1[_0x1272d1[_0xcc124c(0x291)]=0x2712]=_0xcc124c(0x291),_0x1272d1[_0x1272d1[_0xcc124c(0x288)]=0x2713]=_0xcc124c(0x288),_0x1272d1[_0x1272d1[_0xcc124c(0x4eb)]=0x2714]=_0xcc124c(0x4eb),_0x1272d1[_0x1272d1[_0xcc124c(0x421)]=-0x1]=_0xcc124c(0x421),_0x1272d1))(xs||{}),k=(_0xc13fbd=>(_0xc13fbd[_0xc13fbd['UNIVER_UNKNOWN']=0x0]='UNIVER_UNKNOWN',_0xc13fbd[_0xc13fbd[_0xcc124c(0x215)]=0x1]='UNIVER_DOC',_0xc13fbd[_0xc13fbd[_0xcc124c(0x3e5)]=0x2]=_0xcc124c(0x3e5),_0xc13fbd[_0xc13fbd[_0xcc124c(0x37b)]=0x3]=_0xcc124c(0x37b),_0xc13fbd[_0xc13fbd[_0xcc124c(0x41d)]=0x4]='UNIVER_PROJECT',_0xc13fbd[_0xc13fbd['UNRECOGNIZED']=-0x1]=_0xcc124c(0x421),_0xc13fbd))(k||{}),I=(_0x1f4931=>(_0x1f4931[_0x1f4931[_0xcc124c(0x475)]=0x0]='UNKNOWN_CMD',_0x1f4931[_0x1f4931[_0xcc124c(0x2bf)]=0x1]=_0xcc124c(0x2bf),_0x1f4931[_0x1f4931['JOIN']=0x2]=_0xcc124c(0x347),_0x1f4931[_0x1f4931['LEAVE']=0x3]=_0xcc124c(0x49d),_0x1f4931[_0x1f4931[_0xcc124c(0x3e4)]=0x4]=_0xcc124c(0x3e4),_0x1f4931[_0x1f4931[_0xcc124c(0x1c9)]=0x5]=_0xcc124c(0x1c9),_0x1f4931[_0x1f4931['RECV']=0x6]=_0xcc124c(0x271),_0x1f4931[_0x1f4931[_0xcc124c(0x421)]=-0x1]=_0xcc124c(0x421),_0x1f4931))(I||{}),Vt=(_0x3fc460=>(_0x3fc460[_0x3fc460['UNKNOWN_CODE']=0x0]=_0xcc124c(0x51d),_0x3fc460[_0x3fc460['OK']=0x1]='OK',_0x3fc460[_0x3fc460[_0xcc124c(0x4c2)]=0x2]='FAIL',_0x3fc460[_0x3fc460[_0xcc124c(0x421)]=-0x1]='UNRECOGNIZED',_0x3fc460))(Vt||{}),ks=(_0x2c3bf9=>(_0x2c3bf9[_0x2c3bf9[_0xcc124c(0x3ca)]=0x0]='Undefined',_0x2c3bf9[_0x2c3bf9['HttpImport']=0x1]='HttpImport',_0x2c3bf9[_0x2c3bf9[_0xcc124c(0x48a)]=0x2]=_0xcc124c(0x48a),_0x2c3bf9[_0x2c3bf9['UnitEmbedded']=0x3]=_0xcc124c(0x382),_0x2c3bf9[_0x2c3bf9[_0xcc124c(0x1e5)]=0x4]=_0xcc124c(0x1e5),_0x2c3bf9[_0x2c3bf9[_0xcc124c(0x421)]=-0x1]=_0xcc124c(0x421),_0x2c3bf9))(ks||{});const $=_0xcc124c(0x2bc),jn={};function Hn(_0x2e810b){const _0x14a571=_0xcc124c;var _0x171ae7,_0x40e431,_0xe7642a,_0x428294,_0x108b88;const _0x432e90=_0x2e810b[_0x14a571(0x2a7)],_0x1081d8=JSON[_0x14a571(0x52e)](_0x432e90);switch(_0x1081d8[_0x14a571(0x36b)]){case I['HEARTBEAT']:case I[_0x14a571(0x2bf)]:{const _0x57659d=_0x1081d8[_0x14a571(0x2da)];return{..._0x1081d8,'data':_0x57659d,'cmd':_0x1081d8[_0x14a571(0x36b)]};}case I[_0x14a571(0x347)]:{const _0x3ca914=_0x1081d8[_0x14a571(0x3f8)];return{..._0x1081d8,'data':_0x3ca914,'cmd':_0x1081d8[_0x14a571(0x36b)]};}case I['RECV']:{const _0x23a966=_0x1081d8['collaMsg'];switch(_0x23a966[_0x14a571(0x346)]){case _0x4b62d5['PERMISSION_REJ']:return{..._0x1081d8,'data':{..._0x23a966,'data':(_0x171ae7=_0x23a966['permissionRejEvent'])==null?void 0x0:_0x171ae7['cs']},'cmd':_0x1081d8[_0x14a571(0x36b)]};case _0x4b62d5[_0x14a571(0x4ab)]:return{..._0x1081d8,'data':{..._0x23a966,'data':(_0x40e431=_0x23a966[_0x14a571(0x3fc)])==null?void 0x0:_0x40e431['cs']},'cmd':_0x1081d8['cmd']};case _0x4b62d5[_0x14a571(0x4f9)]:return{..._0x1081d8,'data':{..._0x23a966,'data':(_0xe7642a=_0x23a966['newCsEvent'])==null?void 0x0:_0xe7642a['cs']},'cmd':_0x1081d8['cmd']};case _0x4b62d5[_0x14a571(0x392)]:return{..._0x1081d8,'data':{..._0x23a966,'data':(_0x428294=_0x23a966['csRejEvent'])==null?void 0x0:_0x428294['cs']},'cmd':_0x1081d8[_0x14a571(0x36b)]};case _0x4b62d5[_0x14a571(0x385)]:return{..._0x1081d8,'data':{..._0x23a966,'data':(_0x108b88=_0x23a966[_0x14a571(0x3f4)])==null?void 0x0:_0x108b88['cs']},'cmd':_0x1081d8[_0x14a571(0x36b)]};case _0x4b62d5['UPDATE_CURSOR']:return{..._0x1081d8,'data':{..._0x23a966,'data':_0x23a966[_0x14a571(0x3ee)]},'cmd':_0x1081d8[_0x14a571(0x36b)]};case _0x4b62d5[_0x14a571(0x3df)]:return{..._0x1081d8,'data':{..._0x23a966,'data':_0x23a966['joinEvent']},'cmd':_0x1081d8[_0x14a571(0x36b)]};case _0x4b62d5['USERS_LEAVE']:return{..._0x1081d8,'data':{..._0x23a966,'data':_0x23a966['leaveEvent']},'cmd':_0x1081d8[_0x14a571(0x36b)]};case _0x4b62d5[_0x14a571(0x29b)]:return{..._0x1081d8,'data':{..._0x23a966,'data':_0x23a966[_0x14a571(0x506)]},'cmd':_0x1081d8[_0x14a571(0x36b)]};case _0x4b62d5[_0x14a571(0x248)]:case _0x4b62d5[_0x14a571(0x398)]:return{..._0x1081d8,'data':{..._0x23a966,'data':_0x23a966[_0x14a571(0x515)]},'cmd':_0x1081d8[_0x14a571(0x36b)]};case _0x4b62d5[_0x14a571(0x2a0)]:return{..._0x1081d8,'data':{..._0x23a966,'data':_0x23a966[_0x14a571(0x506)]},'cmd':_0x1081d8[_0x14a571(0x36b)]};case _0x4b62d5[_0x14a571(0x4b7)]:return{..._0x1081d8,'data':_0x23a966,'cmd':_0x1081d8[_0x14a571(0x36b)]};case _0x4b62d5['COMMENT_UPDATE']:return{..._0x1081d8,'data':{..._0x23a966,'data':_0x23a966[_0x14a571(0x343)]},'cmd':_0x1081d8[_0x14a571(0x36b)]};case _0x4b62d5[_0x14a571(0x40a)]:return{..._0x1081d8,'data':{..._0x23a966,'data':_0x23a966[_0x14a571(0x331)]},'cmd':_0x1081d8[_0x14a571(0x36b)]};case _0x4b62d5[_0x14a571(0x326)]:return{..._0x1081d8,'data':{..._0x23a966,'data':_0x23a966[_0x14a571(0x51e)]},'cmd':_0x1081d8[_0x14a571(0x36b)]};default:return _0x1081d8;}}default:return _0x1081d8;}}function xn(_0x502a42){const _0x2deb33=_0xcc124c;switch(_0x502a42['cmd']){case I[_0x2deb33(0x1c9)]:case I[_0x2deb33(0x2bf)]:return JSON[_0x2deb33(0x234)]({'cmd':_0x502a42['cmd'],'routeKey':_0x502a42[_0x2deb33(0x213)]});case I['INGEST']:{let _0x21051c;switch(_0x502a42['data'][_0x2deb33(0x346)]){case _0x4b62d5['UPDATE_CURSOR']:{_0x21051c={'eventID':_0x4b62d5[_0x2deb33(0x340)],'updateCursorEvent':_0x502a42[_0x2deb33(0x2a7)][_0x2deb33(0x2a7)]};break;}case _0x4b62d5[_0x2deb33(0x3e3)]:{_0x21051c={'eventID':_0x4b62d5[_0x2deb33(0x3e3)],'leaveEvent':_0x502a42[_0x2deb33(0x2a7)]['data']};break;}case _0x4b62d5['USERS_ENTER']:{_0x21051c={'eventID':_0x4b62d5[_0x2deb33(0x3df)],'joinEvent':_0x502a42[_0x2deb33(0x2a7)][_0x2deb33(0x2a7)]};break;}case _0x4b62d5[_0x2deb33(0x29b)]:{_0x21051c={'eventID':_0x4b62d5['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x502a42['data'][_0x2deb33(0x2a7)]};break;}case _0x4b62d5[_0x2deb33(0x398)]:{_0x21051c={'eventID':_0x4b62d5[_0x2deb33(0x398)],'liveShareOperation':_0x502a42[_0x2deb33(0x2a7)][_0x2deb33(0x2a7)]};break;}case _0x4b62d5[_0x2deb33(0x2a0)]:{_0x21051c={'eventID':_0x4b62d5[_0x2deb33(0x2a0)],'liveShareTerminate':_0x502a42['data'][_0x2deb33(0x2a7)]};break;}case _0x4b62d5[_0x2deb33(0x207)]:{_0x21051c={'eventID':_0x4b62d5[_0x2deb33(0x207)],'liveShareRequestHost':_0x502a42[_0x2deb33(0x2a7)][_0x2deb33(0x2a7)]};break;}case _0x4b62d5['LIVESHARE_FETCH_OPERATIONS']:{_0x21051c={'eventID':_0x4b62d5[_0x2deb33(0x248)]};break;}default:_0x21051c={'eventID':_0x502a42[_0x2deb33(0x2a7)]['eventID']};}return JSON[_0x2deb33(0x234)]({'cmd':_0x502a42['cmd'],'routeKey':_0x502a42[_0x2deb33(0x213)],'collaMsg':_0x21051c});}case I[_0x2deb33(0x347)]:return JSON['stringify']({'cmd':_0x502a42['cmd'],'routeKey':_0x502a42['routeKey'],'joinReq':_0x502a42[_0x2deb33(0x2a7)]});case I[_0x2deb33(0x49d)]:return JSON[_0x2deb33(0x234)]({'cmd':_0x502a42['cmd'],'routeKey':_0x502a42[_0x2deb33(0x213)],'leaveReq':_0x502a42['data']});default:throw new Error(_0x2deb33(0x43d));}}var kn=Object['defineProperty'],Bn=Object['getOwnPropertyDescriptor'],Vn=(_0x628c69,_0x42ff81,_0x542fdb,_0x343584)=>{for(var _0x2ac5dd=_0x343584>0x1?void 0x0:_0x343584?Bn(_0x42ff81,_0x542fdb):_0x42ff81,_0x14a28c=_0x628c69['length']-0x1,_0x3a80dd;_0x14a28c>=0x0;_0x14a28c--)(_0x3a80dd=_0x628c69[_0x14a28c])&&(_0x2ac5dd=(_0x343584?_0x3a80dd(_0x42ff81,_0x542fdb,_0x2ac5dd):_0x3a80dd(_0x2ac5dd))||_0x2ac5dd);return _0x343584&&_0x2ac5dd&&kn(_0x42ff81,_0x542fdb,_0x2ac5dd),_0x2ac5dd;},Oe=(_0x37b0af,_0x316748)=>(_0x159d4f,_0x43e04f)=>_0x316748(_0x159d4f,_0x43e04f,_0x37b0af);const Bs=_0x49cd73(_0xcc124c(0x4d9));function Fn(_0x4c3af9,_0x1bc813,_0xd2b18b){const _0x303e80=_0xcc124c;return _0x4c3af9+'/'+_0x1bc813+_0x303e80(0x495)+_0xd2b18b+'/new_changes';}let Ct=class extends _0x4dfcd2{constructor(_0x4959c4,_0x3e36e6,_0x155413,_0x338ee3,_0xbbf2bd){const _0x482342=_0xcc124c;super(),this['_http']=_0x4959c4,this[_0x482342(0x408)]=_0x3e36e6,this[_0x482342(0x3f6)]=_0x155413,this[_0x482342(0x1b0)]=_0x338ee3,this[_0x482342(0x21c)]=_0xbbf2bd;}[_0xcc124c(0x1f3)](_0x1d99d0){const _0x26a6cb=_0xcc124c,_0x2ac611=this[_0x26a6cb(0x408)]['createSocket'](_0x1d99d0);if(!_0x2ac611)throw new Error(_0x26a6cb(0x1e7));const _0x59e7de=new _0x460f88(),_0x4b3c26=new _0x3ca740();_0x59e7de[_0x26a6cb(0x266)](_0x2ac611[_0x26a6cb(0x1ae)][_0x26a6cb(0x3ac)](_0x503168=>_0x4b3c26['next'](_0x503168))),_0x59e7de[_0x26a6cb(0x266)](_0x5b34e8(()=>_0x4b3c26[_0x26a6cb(0x492)]()));const _0x4ef8ac=new _0x3ca740();_0x59e7de['add'](_0x2ac611['error$']['subscribe'](_0x5af135=>_0x4ef8ac[_0x26a6cb(0x1cf)](_0x5af135))),_0x59e7de['add'](_0x5b34e8(()=>_0x4ef8ac[_0x26a6cb(0x492)]()));const _0x5c1173=new _0x3ca740();_0x59e7de[_0x26a6cb(0x266)](_0x2ac611['message$'][_0x26a6cb(0x3ac)](_0x3bd161=>{const _0x2f1b0=_0x26a6cb,_0x1fe560=Hn(_0x3bd161);_0x5c1173[_0x2f1b0(0x1cf)](_0x1fe560);})),_0x59e7de['add'](_0x5b34e8(()=>_0x5c1173[_0x26a6cb(0x492)]()));let _0x56db1c;const _0x2cb269=()=>{const _0x28ad55=_0x26a6cb;_0x4ef8ac[_0x28ad55(0x1cf)](new Event('connection\x20error')),_0x4b3c26[_0x28ad55(0x1cf)](new CloseEvent(_0x28ad55(0x434))),_0x56db1c[_0x28ad55(0x49b)]();};return _0x56db1c={'memberID':'','close$':_0x4b3c26['asObservable'](),'error$':_0x4ef8ac[_0x26a6cb(0x407)](),'open$':_0x2ac611[_0x26a6cb(0x2df)],'message$':_0x5c1173[_0x26a6cb(0x407)](),'send':_0x45e1ed=>{const _0x597a6b=_0x26a6cb;if(_0x45e1ed[_0x597a6b(0x36b)]===I[_0x597a6b(0x3e4)]){if(_0x45e1ed['data'][_0x597a6b(0x346)]===_0x4b62d5[_0x597a6b(0x397)]){this[_0x597a6b(0x4be)](_0x56db1c,_0x45e1ed[_0x597a6b(0x2a7)])[_0x597a6b(0x38b)](_0x225175=>{const _0x4d097b=_0x597a6b;this[_0x4d097b(0x1b0)][_0x4d097b(0x1b3)](_0x225175),_0x2cb269();});return;}if(_0x45e1ed['data'][_0x597a6b(0x346)]===_0x4b62d5[_0x597a6b(0x24e)]){const _0x4ddb44=_0x45e1ed[_0x597a6b(0x2a7)];this[_0x597a6b(0x2dd)](_0x4ddb44)[_0x597a6b(0x520)](_0x4669b0=>{const _0xaa0209=_0x597a6b;_0x5c1173['next']({'cmd':I['RECV'],'code':Vt['OK'],'routeKey':_0x4ddb44[_0xaa0209(0x2a7)][_0xaa0209(0x38f)],'routeType':'','data':{'eventID':_0x4b62d5[_0xaa0209(0x296)],'data':{'changesets':_0x4669b0}}});})[_0x597a6b(0x38b)](_0x1a4a2b=>{const _0x4f6ae4=_0x597a6b;this[_0x4f6ae4(0x1b0)]['error'](_0x1a4a2b),_0x2cb269();});return;}}_0x2ac611['send'](xn(_0x45e1ed));},'close':()=>{const _0xfa8ce=_0x26a6cb;_0x2ac611[_0xfa8ce(0x49b)](),_0x59e7de['dispose']();}},_0x56db1c;}async[_0xcc124c(0x4be)](_0x18582c,_0x2097e4){const _0x12b12a=_0xcc124c;var _0x27a590,_0x17beb9;const {unitType:_0x548790,unitID:_0x316fef,changeset:_0x307196}=_0x2097e4[_0x12b12a(0x2a7)],_0x5b1299={'unitID':_0x316fef,'memberID':_0x18582c[_0x12b12a(0x43e)],'type':_0x548790,'changeset':_0x4b6bf5(_0x307196)},_0x497d6c=this[_0x12b12a(0x3f6)]['getConfig'](Mn),_0x101aac=this[_0x12b12a(0x3f6)][_0x12b12a(0x463)]($),_0x141e8f=Fn((_0x17beb9=(_0x27a590=_0x101aac==null?void 0x0:_0x101aac[_0x12b12a(0x297)])!=null?_0x27a590:_0x497d6c)!=null?_0x17beb9:An,_0x548790,_0x316fef);try{await this[_0x12b12a(0x52b)][_0x12b12a(0x533)](_0x141e8f,{'body':_0x5b1299});}catch(_0x322730){throw this[_0x12b12a(0x1b0)][_0x12b12a(0x1b3)]('[CollaborationSession]',_0x12b12a(0x3f3)),_0x322730;}}async['_fetchMissChangesets'](_0x18aa03){const _0x42df90=_0xcc124c,{unitID:_0x445035,from:_0xff9183,to:_0x42d7fe,unitType:_0x1efcbd}=_0x18aa03[_0x42df90(0x2a7)];return(await this[_0x42df90(0x21c)][_0x42df90(0x312)]({'metadata':void 0x0},{'unitID':_0x445035,'type':_0x1efcbd,'from':_0xff9183,'to':_0x42d7fe}))['changesets'];}};Ct=Vn([Oe(0x0,_0xa01556(_0x5f5876)),Oe(0x1,_0xa01556(_0x153f02)),Oe(0x2,_0xf5edd1),Oe(0x3,_0x40bb6c),Oe(0x4,_0x56f9b0)],Ct);const Wn='collaboration_new_changeset';function Gn(_0x31c37c){const _0x313fc4=_0xcc124c;return JSON[_0x313fc4(0x234)](_0x31c37c)[_0x313fc4(0x236)];}class Vs{constructor(){const _0x42e148=_0xcc124c;l(this,_0x42e148(0x528),new _0x3ca740()),l(this,'commentUpdate$',this[_0x42e148(0x528)]['asObservable']());}['onCommentUpdate'](_0x1a17e3){const _0x43a56b=_0xcc124c;this[_0x43a56b(0x528)]['next'](_0x1a17e3);}}var Yn=Object[_0xcc124c(0x2ad)],Kn=Object[_0xcc124c(0x3f2)],Xn=(_0x558d12,_0x55dc4e,_0x14fbc8,_0x20cb35)=>{const _0x4ba735=_0xcc124c;for(var _0x491885=_0x20cb35>0x1?void 0x0:_0x20cb35?Kn(_0x55dc4e,_0x14fbc8):_0x55dc4e,_0x498d00=_0x558d12[_0x4ba735(0x236)]-0x1,_0xf2c686;_0x498d00>=0x0;_0x498d00--)(_0xf2c686=_0x558d12[_0x498d00])&&(_0x491885=(_0x20cb35?_0xf2c686(_0x55dc4e,_0x14fbc8,_0x491885):_0xf2c686(_0x491885))||_0x491885);return _0x20cb35&&_0x491885&&Yn(_0x55dc4e,_0x14fbc8,_0x491885),_0x491885;},as=(_0x310fd5,_0x25beb0)=>(_0x4e8c7c,_0x43e571)=>_0x25beb0(_0x4e8c7c,_0x43e571,_0x310fd5);let ce=class extends _0x4dfcd2{constructor(_0x42e7e3,_0xec4fd4){const _0x360ae4=_0xcc124c;super(),l(this,_0x360ae4(0x2d4),new Map()),(this['_univerInstanceService']=_0x42e7e3,this[_0x360ae4(0x419)]=_0xec4fd4,this[_0x360ae4(0x379)](_0x5b34e8(_0x340e15(this[_0x360ae4(0x268)][_0x360ae4(0x43b)](_0x4eff1c[_0x360ae4(0x3e5)])[_0x360ae4(0x4f2)](_0x493a42(_0x29e0c8=>_0x29e0c8['getUnitId']())),this[_0x360ae4(0x268)][_0x360ae4(0x43b)](_0x4eff1c[_0x360ae4(0x215)])[_0x360ae4(0x4f2)](_0x493a42(_0x9455b=>_0x9455b[_0x360ae4(0x43f)]())),this[_0x360ae4(0x268)][_0x360ae4(0x43b)](_0x4eff1c[_0x360ae4(0x37b)])[_0x360ae4(0x4f2)](_0x493a42(_0x234b42=>_0x234b42[_0x360ae4(0x43f)]())))[_0x360ae4(0x3ac)](_0x13985e=>this['_removeRoom'](_0x13985e)))));}[_0xcc124c(0x32d)](_0x8d92c0){const _0x1c9bf5=_0xcc124c;this['_userManagerService'][_0x1c9bf5(0x32d)](_0x8d92c0);}[_0xcc124c(0x3b5)](){const _0x3053f6=_0xcc124c;return this[_0x3053f6(0x419)][_0x3053f6(0x3b5)]();}[_0xcc124c(0x2b6)](_0x314b80,_0x68de3d){const _0x585719=_0xcc124c;let _0x5597af=this['_roomMembers'][_0x585719(0x4e6)](_0x314b80);_0x5597af||(_0x5597af=new qn(),this['_roomMembers'][_0x585719(0x4d8)](_0x314b80,_0x5597af)),_0x5597af[_0x585719(0x2b6)](_0x68de3d);}[_0xcc124c(0x1ce)](_0x4bc479,_0x73505a){const _0x1cdd27=_0xcc124c,_0x236251=this[_0x1cdd27(0x2d4)][_0x1cdd27(0x4e6)](_0x4bc479);_0x236251&&_0x236251[_0x1cdd27(0x1ce)](_0x73505a);}[_0xcc124c(0x4fc)](_0x4cb44b){const _0x3abed6=_0xcc124c;return this[_0x3abed6(0x2d4)][_0x3abed6(0x4e6)](_0x4cb44b);}[_0xcc124c(0x1d6)](_0x386f2c,_0x26b81e){const _0x3b03ed=_0xcc124c,_0x39f245=this[_0x3b03ed(0x2d4)][_0x3b03ed(0x4e6)](_0x386f2c);if(_0x39f245)return _0x39f245[_0x3b03ed(0x1d6)](_0x26b81e);}[_0xcc124c(0x327)](_0x5e48c2){const _0x4cf6b6=_0xcc124c,_0x5e03c5=this[_0x4cf6b6(0x2d4)][_0x4cf6b6(0x4e6)](_0x5e48c2);_0x5e03c5&&(_0x5e03c5[_0x4cf6b6(0x2e2)](),this[_0x4cf6b6(0x2d4)][_0x4cf6b6(0x3bd)](_0x5e48c2));}[_0xcc124c(0x2e2)](){const _0x4738c9=_0xcc124c;this['_roomMembers'][_0x4738c9(0x3d5)](_0x2a748a=>_0x2a748a[_0x4738c9(0x2e2)]()),this[_0x4738c9(0x2d4)][_0x4738c9(0x233)]();}};ce=Xn([as(0x0,_0x4a621b),as(0x1,_0xa01556(_0x421cfd))],ce);class qn extends _0x4dfcd2{constructor(){const _0x1b5fba=_0xcc124c;super(...arguments),l(this,_0x1b5fba(0x25f),new Map());}['dispose'](){const _0x30c90b=_0xcc124c;this[_0x30c90b(0x25f)]['clear']();}[_0xcc124c(0x2b6)](_0x2310ca){const _0x31d4c4=_0xcc124c;this[_0x31d4c4(0x25f)]['set'](_0x2310ca[_0x31d4c4(0x43e)],_0x2310ca);}[_0xcc124c(0x1ce)](_0x4f1c32){const _0x2888a7=_0xcc124c;this['_members'][_0x2888a7(0x3bd)](_0x4f1c32);}[_0xcc124c(0x1d6)](_0x2dab7d){const _0x3a856a=_0xcc124c;return this[_0x3a856a(0x25f)]['get'](_0x2dab7d);}}var Jn=Object[_0xcc124c(0x2ad)],zn=Object[_0xcc124c(0x3f2)],Zn=(_0x199ed4,_0x243119,_0x2ba29f,_0x308d4c)=>{const _0x3fbbb1=_0xcc124c;for(var _0x14e0f0=_0x308d4c>0x1?void 0x0:_0x308d4c?zn(_0x243119,_0x2ba29f):_0x243119,_0x2835fa=_0x199ed4[_0x3fbbb1(0x236)]-0x1,_0x4686d4;_0x2835fa>=0x0;_0x2835fa--)(_0x4686d4=_0x199ed4[_0x2835fa])&&(_0x14e0f0=(_0x308d4c?_0x4686d4(_0x243119,_0x2ba29f,_0x14e0f0):_0x4686d4(_0x14e0f0))||_0x14e0f0);return _0x308d4c&&_0x14e0f0&&Jn(_0x243119,_0x2ba29f,_0x14e0f0),_0x14e0f0;},J=(_0x42a833,_0x2f90f8)=>(_0x1ee108,_0x4cca3c)=>_0x2f90f8(_0x1ee108,_0x4cca3c,_0x42a833),Y=(_0x5077f6=>(_0x5077f6[_0x5077f6[_0xcc124c(0x387)]=0x0]='IDLE',_0x5077f6[_0x5077f6[_0xcc124c(0x406)]=0x1]=_0xcc124c(0x406),_0x5077f6[_0x5077f6[_0xcc124c(0x1d8)]=0x2]=_0xcc124c(0x1d8),_0x5077f6[_0x5077f6[_0xcc124c(0x364)]=0x3]=_0xcc124c(0x364),_0x5077f6))(Y||{});let bt=class extends _0xb64757{constructor(_0x3729cf,_0x5ef21f,_0x3b115b,_0x2e9986,_0xc3f113,_0x3682fb,_0x1acde6,_0x171000,_0x226bb7,_0x190fbb){const _0x139fd7=_0xcc124c;super(),l(this,_0x139fd7(0x2f0),new _0x3708bc(0x0)),l(this,'sessionStatus$',this['_sessionStatus$'][_0x139fd7(0x407)]()),l(this,_0x139fd7(0x416),new _0x3ca740()),l(this,_0x139fd7(0x2b5),this['_event$'][_0x139fd7(0x407)]()),l(this,'_socket'),l(this,_0x139fd7(0x4fd)),l(this,_0x139fd7(0x1c2)),l(this,_0x139fd7(0x3e6),!0x1),l(this,'_telemetryInfo',null),(this[_0x139fd7(0x30e)]=_0x3729cf,this[_0x139fd7(0x1b0)]=_0x3b115b,this[_0x139fd7(0x2ac)]=_0x2e9986,this[_0x139fd7(0x41e)]=_0xc3f113,this[_0x139fd7(0x3f6)]=_0x3682fb,this['_localeService']=_0x1acde6,this[_0x139fd7(0x2ca)]=_0x171000,this[_0x139fd7(0x50a)]=_0x226bb7,this[_0x139fd7(0x484)]=_0x190fbb,this[_0x139fd7(0x3e6)]=!!this[_0x139fd7(0x484)],_0x5ef21f[_0x139fd7(0x4f2)](_0x2cf076(this[_0x139fd7(0x31d)]))[_0x139fd7(0x3ac)](_0x268302=>{const _0x13945b=_0x139fd7;var _0x333e00;typeof _0x268302>'u'||(this[_0x13945b(0x426)]=_0x268302,_0x268302?(this[_0x13945b(0x45e)](_0x268302),this[_0x13945b(0x4fd)]=_0x268302[_0x13945b(0x2ea)][_0x13945b(0x3ac)](_0x30d6fc=>{const _0x44bfc4=_0x13945b;_0x30d6fc[_0x44bfc4(0x213)]===this[_0x44bfc4(0x30e)]&&this[_0x44bfc4(0x202)](_0x30d6fc);})):(this[_0x13945b(0x446)](),this[_0x13945b(0x2f0)][_0x13945b(0x1cf)](0x2),(_0x333e00=this[_0x13945b(0x4fd)])==null||_0x333e00['unsubscribe'](),this[_0x13945b(0x4fd)]=null));}),this[_0x139fd7(0x379)](this[_0x139fd7(0x2ac)]['registerOnClose'](()=>{const _0x5341b2=_0x139fd7;var _0x2343ba;(_0x2343ba=this[_0x5341b2(0x426)])==null||_0x2343ba[_0x5341b2(0x27e)]({'cmd':I['LEAVE'],'data':{'roomID':this[_0x5341b2(0x30e)]}});})));}get[_0xcc124c(0x524)](){const _0x3cafc4=_0xcc124c;return this[_0x3cafc4(0x2f0)][_0x3cafc4(0x24c)]();}['getMemberID'](){const _0x2c1f34=_0xcc124c;var _0x431070,_0x52ae3c;return(_0x52ae3c=(_0x431070=this[_0x2c1f34(0x426)])==null?void 0x0:_0x431070[_0x2c1f34(0x43e)])!=null?_0x52ae3c:null;}['dispose'](){const _0x2f8147=_0xcc124c;super[_0x2f8147(0x2e2)](),this['dispose$'][_0x2f8147(0x1cf)](),this['dispose$'][_0x2f8147(0x492)]();}[_0xcc124c(0x49b)](){const _0x1c6d3c=_0xcc124c;var _0x3ee20b,_0x17de81;this[_0x1c6d3c(0x446)](),(_0x3ee20b=this['_socket'])==null||_0x3ee20b[_0x1c6d3c(0x27e)]({'cmd':I[_0x1c6d3c(0x49d)],'data':{'roomID':this[_0x1c6d3c(0x30e)]}}),(_0x17de81=this[_0x1c6d3c(0x426)])==null||_0x17de81[_0x1c6d3c(0x49b)](),this[_0x1c6d3c(0x416)]['complete'](),this[_0x1c6d3c(0x2f0)]['complete'](),this[_0x1c6d3c(0x2e2)]();}[_0xcc124c(0x202)](_0x3dcc30){const _0xc27978=_0xcc124c;_0x3dcc30[_0xc27978(0x36b)]===I[_0xc27978(0x347)]?this['_onJoinRoomEvent'](_0x3dcc30):_0x3dcc30['cmd']===I['RECV']&&this[_0xc27978(0x4c6)](_0x3dcc30);}['_joinRoom'](_0x37f0a1){const _0xe8876b=_0xcc124c;this['_sessionStatus$'][_0xe8876b(0x1cf)](0x1),_0x37f0a1[_0xe8876b(0x27e)]({'cmd':I[_0xe8876b(0x347)],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this[_0xe8876b(0x30e)]}]}});}['_onJoinRoomEvent'](_0x1d7baa){const _0x64ea14=_0xcc124c;var _0x1f6720;if(_0x1d7baa['code']===Vt[_0x64ea14(0x4c2)]){this[_0x64ea14(0x41e)][_0x64ea14(0x1b9)]({'type':_0x41136d['Warning'],'content':this[_0x64ea14(0x51c)]['t'](_0x64ea14(0x30d))}),this['_sessionStatus$'][_0x64ea14(0x1cf)](0x2);return;}this[_0x64ea14(0x2f0)][_0x64ea14(0x1cf)](0x3);const _0x5d8f42=(_0x1f6720=_0x1d7baa[_0x64ea14(0x2a7)]['roomInfos'][this[_0x64ea14(0x30e)]])==null?void 0x0:_0x1f6720[_0x64ea14(0x1ad)];_0x5d8f42&&_0x5d8f42[_0x64ea14(0x3d5)](_0x393c29=>this[_0x64ea14(0x2ca)][_0x64ea14(0x2b6)](this[_0x64ea14(0x30e)],_0x393c29));}['_onRecvEvent'](_0x558c67){const _0x6fa7e2=_0xcc124c;try{const _0x1bf94d=_0x558c67[_0x6fa7e2(0x2a7)];switch(_0x1bf94d['eventID']){case _0x4b62d5[_0x6fa7e2(0x3df)]:this['_onUserJoin'](_0x1bf94d),this[_0x6fa7e2(0x416)][_0x6fa7e2(0x1cf)](_0x1bf94d);break;case _0x4b62d5['USERS_LEAVE']:this['_onUserLeave'](_0x1bf94d),this[_0x6fa7e2(0x416)]['next'](_0x1bf94d);break;case _0x4b62d5[_0x6fa7e2(0x4ab)]:case _0x4b62d5['CHANGESET_SHOULD_RETRY']:this[_0x6fa7e2(0x376)](),this[_0x6fa7e2(0x1e6)](),this['_event$'][_0x6fa7e2(0x1cf)](_0x1bf94d);break;case _0x4b62d5[_0x6fa7e2(0x4b7)]:this[_0x6fa7e2(0x1b0)][_0x6fa7e2(0x1b3)]('save\x20fail\x20reason\x20is\x20'+JSON[_0x6fa7e2(0x234)](_0x1bf94d)),this[_0x6fa7e2(0x416)]['next'](_0x1bf94d);break;case _0x4b62d5[_0x6fa7e2(0x371)]:this[_0x6fa7e2(0x50a)]['onCommentUpdate'](_0x1bf94d['data']),this[_0x6fa7e2(0x416)][_0x6fa7e2(0x1cf)](_0x1bf94d);break;default:this[_0x6fa7e2(0x416)][_0x6fa7e2(0x1cf)](_0x1bf94d);}}catch(_0x5080bd){this[_0x6fa7e2(0x1b0)][_0x6fa7e2(0x1b3)](_0x5080bd,_0x558c67);}}[_0xcc124c(0x451)](_0x49ac08){const _0x12dd0a=_0xcc124c;this['_memberService'][_0x12dd0a(0x2b6)](this[_0x12dd0a(0x30e)],_0x49ac08['data']);}[_0xcc124c(0x431)](_0x6d88b){const _0x2176dd=_0xcc124c;this['_memberService']['removeMember'](this['_unitID'],_0x6d88b[_0x2176dd(0x2a7)][_0x2176dd(0x43e)]);}async['send'](_0x529383,_0x23e668){const _0x4b0882=_0xcc124c;if(this[_0x4b0882(0x524)]!==0x3||!this[_0x4b0882(0x426)])throw new Error(_0x4b0882(0x323));try{_0x529383[_0x4b0882(0x346)]===_0x4b62d5[_0x4b0882(0x397)]&&(this[_0x4b0882(0x1f2)](),this[_0x4b0882(0x2aa)](_0x529383)),this[_0x4b0882(0x426)][_0x4b0882(0x27e)]({'cmd':I['INGEST'],'routeKey':_0x23e668,'routeType':'','data':_0x529383});}catch(_0x30a1b1){this['_logService'][_0x4b0882(0x1b3)](_0x30a1b1);}}[_0xcc124c(0x1f2)](){const _0x4e14a0=_0xcc124c;var _0x4d8055;this[_0x4e14a0(0x1c2)]=window[_0x4e14a0(0x27d)](()=>{const _0x37bbe2=_0x4e14a0;this[_0x37bbe2(0x1c2)]=null,this[_0x37bbe2(0x41e)]['show']({'type':_0x41136d['Error'],'content':this[_0x37bbe2(0x51c)]['t']('session.collaboration-timeout')});},(_0x4d8055=this[_0x4e14a0(0x3f6)][_0x4e14a0(0x463)](js))!=null?_0x4d8055:Hs);}[_0xcc124c(0x1e6)](){const _0x5337d0=_0xcc124c;this[_0x5337d0(0x1c2)]&&(clearTimeout(this[_0x5337d0(0x1c2)]),this['_collaborationTimeoutTimer']=null);}[_0xcc124c(0x2aa)](_0x42851f){const _0x2be12f=_0xcc124c;if(!this[_0x2be12f(0x3e6)])return;const {data:_0x31970a}=_0x42851f,{unitID:_0x5cb34c,changeset:_0x33bca9}=_0x31970a,{mutations:_0x49a4c6,type:_0x1f40a5}=_0x33bca9;this['_telemetryInfo']={'unitId':_0x5cb34c,'type':_0x1f40a5,'startTime':performance[_0x2be12f(0x2f4)](),'stopTime':0x0,'duration':0x0,'size':Gn(_0x49a4c6)};}[_0xcc124c(0x376)](){const _0x50c27a=_0xcc124c;if(this['_shouldReportTelemetry']){if(!this[_0x50c27a(0x526)]){this['_logService']['error'](_0x50c27a(0x255),_0x50c27a(0x3d0));return;}this[_0x50c27a(0x526)][_0x50c27a(0x3b3)]=performance[_0x50c27a(0x2f4)](),this['_telemetryInfo'][_0x50c27a(0x3f1)]=this[_0x50c27a(0x526)][_0x50c27a(0x3b3)]-this['_telemetryInfo'][_0x50c27a(0x4b0)],this[_0x50c27a(0x484)][_0x50c27a(0x498)](Wn,this[_0x50c27a(0x526)]),this[_0x50c27a(0x526)]=null;}}[_0xcc124c(0x446)](){this['_telemetryInfo']=null;}};bt=Zn([J(0x2,_0x40bb6c),J(0x3,_0x52af3f),J(0x4,_0x354bae),J(0x5,_0xf5edd1),J(0x6,_0xa01556(_0x991281)),J(0x7,_0xa01556(ce)),J(0x8,_0xa01556(Vs)),J(0x9,_0x18dda4(_0x5d19a6))],bt);var Qn=Object['defineProperty'],er=Object[_0xcc124c(0x3f2)],tr=(_0x8c79ef,_0x5c3526,_0x51b808,_0x4d538f)=>{const _0x164426=_0xcc124c;for(var _0x167a65=_0x4d538f>0x1?void 0x0:_0x4d538f?er(_0x5c3526,_0x51b808):_0x5c3526,_0x4f51f7=_0x8c79ef[_0x164426(0x236)]-0x1,_0x1d8bfb;_0x4f51f7>=0x0;_0x4f51f7--)(_0x1d8bfb=_0x8c79ef[_0x4f51f7])&&(_0x167a65=(_0x4d538f?_0x1d8bfb(_0x5c3526,_0x51b808,_0x167a65):_0x1d8bfb(_0x167a65))||_0x167a65);return _0x4d538f&&_0x167a65&&Qn(_0x5c3526,_0x51b808,_0x167a65),_0x167a65;},me=(_0x1b9362,_0x40e4a2)=>(_0x2a48f6,_0x22cd14)=>_0x40e4a2(_0x2a48f6,_0x22cd14,_0x1b9362);let he=class extends _0x4dfcd2{constructor(_0x4b6d8a,_0x325183,_0x2bb140,_0x328cb5,_0x2cf2dd,_0x19ada5){const _0x1ac1ec=_0xcc124c;super(),l(this,'_socket$',new _0x3708bc(void 0x0)),l(this,'socket$',this[_0x1ac1ec(0x24a)]['asObservable']()),l(this,_0x1ac1ec(0x20d),null),l(this,'_sessions',new Map()),l(this,_0x1ac1ec(0x46b),new _0x3708bc(Y[_0x1ac1ec(0x387)])),l(this,_0x1ac1ec(0x3bf),this[_0x1ac1ec(0x46b)][_0x1ac1ec(0x407)]()),l(this,_0x1ac1ec(0x330),!0x1),l(this,_0x1ac1ec(0x4e7)),l(this,_0x1ac1ec(0x31a),0x0),l(this,_0x1ac1ec(0x2a8)),l(this,_0x1ac1ec(0x3a9)),(this[_0x1ac1ec(0x2bb)]=_0x4b6d8a,this[_0x1ac1ec(0x51c)]=_0x325183,this['_messageService']=_0x2bb140,this['_logService']=_0x328cb5,this['_configService']=_0x2cf2dd,this[_0x1ac1ec(0x335)]=_0x19ada5,this[_0x1ac1ec(0x464)]());}get['_socket'](){const _0x55ec77=_0xcc124c;return this[_0x55ec77(0x24a)]['getValue']();}[_0xcc124c(0x464)](){const _0x5a6788=_0xcc124c;this['_listenToOfflineEvent'](),this[_0x5a6788(0x356)]();}[_0xcc124c(0x2e2)](){const _0x2fced0=_0xcc124c;super[_0x2fced0(0x2e2)](),this[_0x2fced0(0x512)][_0x2fced0(0x3d5)](_0x4094ba=>_0x4094ba['dispose']()),this[_0x2fced0(0x512)][_0x2fced0(0x233)](),this[_0x2fced0(0x46b)]['complete']();}async[_0xcc124c(0x2c7)](_0x10ed8e){const _0x3b7ce2=_0xcc124c;if(this[_0x3b7ce2(0x512)]['has'](_0x10ed8e))return this[_0x3b7ce2(0x512)][_0x3b7ce2(0x4e6)](_0x10ed8e);this['_tryEnsureSocket']();const _0x37f09a=this[_0x3b7ce2(0x2bb)]['createInstance'](bt,_0x10ed8e,this['_socket$'][_0x3b7ce2(0x407)]());return this['_sessions']['set'](_0x10ed8e,_0x37f09a),_0x37f09a;}[_0xcc124c(0x427)](_0x3c707f){const _0x4f0021=_0xcc124c;var _0x1219de;const _0x23c1b8=this[_0x4f0021(0x512)][_0x4f0021(0x4e6)](_0x3c707f);_0x23c1b8&&(this['_sessions'][_0x4f0021(0x3bd)](_0x3c707f),_0x23c1b8[_0x4f0021(0x49b)]()),this['_sessions'][_0x4f0021(0x21a)]||(_0x1219de=this['_socket'])==null||_0x1219de[_0x4f0021(0x49b)]();}[_0xcc124c(0x4ca)](){const _0x502a72=_0xcc124c;this['_retryCount']=0x0,this[_0x502a72(0x4e7)]!=null&&(clearTimeout(this[_0x502a72(0x4e7)]),this[_0x502a72(0x4e7)]=null),this[_0x502a72(0x2cc)]();}[_0xcc124c(0x322)](){const _0x1d804c=_0xcc124c;var _0x98d932,_0x3a1fc1;const _0x9f23b2=this[_0x1d804c(0x3f6)]['getConfig'](Tn),_0x1c853d=this[_0x1d804c(0x3f6)][_0x1d804c(0x463)]($),_0x126c82=(_0x3a1fc1=(_0x98d932=_0x1c853d==null?void 0x0:_0x1c853d['collabWebSocketUrl'])!=null?_0x98d932:_0x9f23b2)!=null?_0x3a1fc1:Rn,_0x29cd5a=this[_0x1d804c(0x335)][_0x1d804c(0x1f3)](_0x126c82);return this['_candidateSocket']=_0x29cd5a,_0x29cd5a;}[_0xcc124c(0x218)](){const _0x5c6364=_0xcc124c;var _0x403b9e,_0xa33c71;try{const _0x18e5e1=(_0xa33c71=(_0x403b9e=this['_socket'])!=null?_0x403b9e:this[_0x5c6364(0x20d)])!=null?_0xa33c71:this[_0x5c6364(0x322)]();if(_0x18e5e1){const _0xb79385=_0x18e5e1[_0x5c6364(0x27e)];_0x18e5e1[_0x5c6364(0x27e)]=_0x577637=>(this[_0x5c6364(0x391)](),_0xb79385[_0x5c6364(0x39a)](_0x18e5e1,[_0x577637])),_0x18e5e1[_0x5c6364(0x2ea)][_0x5c6364(0x3ac)](_0x5565ee=>this[_0x5c6364(0x334)](_0x18e5e1,_0x5565ee)),_0x18e5e1[_0x5c6364(0x381)]['pipe'](_0x2f5271(0x1))[_0x5c6364(0x3ac)](_0x55c744=>this[_0x5c6364(0x1b0)][_0x5c6364(0x1b3)]('[CollaborationSessionService]:\x20socket\x20error',_0x55c744)),_0x18e5e1[_0x5c6364(0x2df)][_0x5c6364(0x4f2)](_0x2f5271(0x1))['subscribe'](()=>{const _0x5a504e=_0x5c6364;this[_0x5a504e(0x1d5)](_0x18e5e1);}),_0x18e5e1['close$'][_0x5c6364(0x4f2)](_0x2f5271(0x1))['subscribe'](_0x5e8d2e=>{const _0x198745=_0x5c6364;this[_0x198745(0x1b0)]['debug'](_0x198745(0x4f8),'socket\x20close',_0x5e8d2e),this['_onConnectionFailed']();});}}catch(_0x2c2034){this[_0x5c6364(0x1b0)][_0x5c6364(0x1b3)](_0x2c2034),this[_0x5c6364(0x34c)]();}}[_0xcc124c(0x1d5)](_0x149b5c){const _0x35114e=_0xcc124c;this[_0x35114e(0x1b0)]['debug'](_0x35114e(0x4f8),'socket\x20open.'),_0x149b5c['send']({'cmd':I[_0x35114e(0x2bf)]}),this['_rescheduleHeartbeat']();}['_listenToOfflineEvent'](){const _0x22fd4c=_0xcc124c;window[_0x22fd4c(0x317)](_0x22fd4c(0x448),()=>this[_0x22fd4c(0x24f)]());}['_onOffline'](){const _0x5ac0aa=_0xcc124c;this[_0x5ac0aa(0x330)]=!0x1,this[_0x5ac0aa(0x20d)]=null,this['_status$']['next'](Y[_0x5ac0aa(0x1d8)]),this[_0x5ac0aa(0x24a)][_0x5ac0aa(0x1cf)](null),this[_0x5ac0aa(0x1c6)](),this[_0x5ac0aa(0x1e0)]();}['_onConnectionFailed'](){const _0x360225=_0xcc124c;var _0x5601cc;this['_onOffline'](),this[_0x360225(0x31a)]<((_0x5601cc=this['_configService'][_0x360225(0x463)](Pn))!=null?_0x5601cc:yn)?(this[_0x360225(0x41e)][_0x360225(0x1b9)]({'key':_0x360225(0x4c8),'type':_0x41136d[_0x360225(0x2dc)],'content':this[_0x360225(0x51c)]['t'](_0x360225(0x36e))}),this[_0x360225(0x2cc)]()):this['_messageService'][_0x360225(0x1b9)]({'key':_0x360225(0x4c8),'type':_0x41136d[_0x360225(0x420)],'content':this[_0x360225(0x51c)]['t'](_0x360225(0x250))});}['_listenToOnlineEvent'](){const _0x4a701f=_0xcc124c,_0x5f3ea8=()=>{const _0x48d6a1=_0x293d;this[_0x48d6a1(0x426)]||this[_0x48d6a1(0x4ca)]();},_0x19aee1=()=>{const _0xcb50d4=_0x293d;this[_0xcb50d4(0x426)]||document['visibilityState']===_0xcb50d4(0x1f7)||this[_0xcb50d4(0x4ca)]();};window[_0x4a701f(0x317)](_0x4a701f(0x412),_0x5f3ea8),document[_0x4a701f(0x317)](_0x4a701f(0x4c5),_0x19aee1);}[_0xcc124c(0x2cc)](){const _0x4fe0b4=_0xcc124c;var _0x5d3e48;const _0x221c6e=this[_0x4fe0b4(0x31a)],_0x3bdc89=this[_0x4fe0b4(0x3f6)][_0x4fe0b4(0x463)]($),_0x1d95ec=_0x221c6e===0x0?0x0:((_0x5d3e48=_0x3bdc89==null?void 0x0:_0x3bdc89[_0x4fe0b4(0x458)])!=null?_0x5d3e48:wn)*0x2**_0x221c6e;this['_retryConnectingTimer']=window['setTimeout'](()=>{const _0x7943a6=_0x4fe0b4;clearTimeout(this[_0x7943a6(0x4e7)]),this[_0x7943a6(0x4e7)]=null,this[_0x7943a6(0x218)]();},_0x1d95ec),this['_retryCount']+=0x1;}['_onMessage'](_0x167dd9,_0xb1d35d){const _0xa16913=_0xcc124c,{cmd:_0x3c8a3f}=_0xb1d35d;_0x3c8a3f===I[_0xa16913(0x2bf)]&&!this['_socketReady']&&(_0x167dd9[_0xa16913(0x43e)]=_0xb1d35d['data']['memberID'],this[_0xa16913(0x24a)][_0xa16913(0x1cf)](_0x167dd9),this['_status$'][_0xa16913(0x1cf)](Y[_0xa16913(0x364)]),this[_0xa16913(0x330)]=!0x0,this[_0xa16913(0x20d)]=null),_0x3c8a3f===I[_0xa16913(0x1c9)]&&this[_0xa16913(0x1c6)](),this[_0xa16913(0x391)]();}[_0xcc124c(0x391)](){const _0x39dd42=_0xcc124c;var _0xaeaba3;this[_0x39dd42(0x1e0)](),this['_sendHeartbeatTimer']=window[_0x39dd42(0x27d)](()=>this[_0x39dd42(0x369)](),(_0xaeaba3=this[_0x39dd42(0x3f6)]['getConfig'](On))!=null?_0xaeaba3:Dn);}[_0xcc124c(0x369)](){const _0x5094f7=_0xcc124c;this[_0x5094f7(0x426)][_0x5094f7(0x27e)]({'cmd':I[_0x5094f7(0x1c9)]}),this[_0x5094f7(0x1f9)]();}[_0xcc124c(0x1f9)](){const _0x501ab3=_0xcc124c;var _0x96e8f1;this[_0x501ab3(0x3a9)]=window['setTimeout'](()=>this[_0x501ab3(0x34c)](),(_0x96e8f1=this[_0x501ab3(0x3f6)]['getConfig'](js))!=null?_0x96e8f1:Hs);}[_0xcc124c(0x1e0)](){const _0x5b18e0=_0xcc124c;this[_0x5b18e0(0x2a8)]!=null&&(clearTimeout(this[_0x5b18e0(0x2a8)]),this[_0x5b18e0(0x2a8)]=null);}[_0xcc124c(0x1c6)](){const _0x5838fc=_0xcc124c;this[_0x5838fc(0x3a9)]!=null&&(clearTimeout(this[_0x5838fc(0x3a9)]),this[_0x5838fc(0x3a9)]=null);}};he=tr([me(0x0,_0xa01556(_0x3064b3)),me(0x1,_0xa01556(_0x991281)),me(0x2,_0x354bae),me(0x3,_0x40bb6c),me(0x4,_0xf5edd1),me(0x5,Bs)],he);var T=[];for(var ct=0x0;ct<0x100;++ct)T[_0xcc124c(0x4c7)]((ct+0x100)[_0xcc124c(0x328)](0x10)[_0xcc124c(0x223)](0x1));function sr(_0x152ad0,_0x4402d5=0x0){const _0x520cbe=_0xcc124c;return(T[_0x152ad0[_0x4402d5+0x0]]+T[_0x152ad0[_0x4402d5+0x1]]+T[_0x152ad0[_0x4402d5+0x2]]+T[_0x152ad0[_0x4402d5+0x3]]+'-'+T[_0x152ad0[_0x4402d5+0x4]]+T[_0x152ad0[_0x4402d5+0x5]]+'-'+T[_0x152ad0[_0x4402d5+0x6]]+T[_0x152ad0[_0x4402d5+0x7]]+'-'+T[_0x152ad0[_0x4402d5+0x8]]+T[_0x152ad0[_0x4402d5+0x9]]+'-'+T[_0x152ad0[_0x4402d5+0xa]]+T[_0x152ad0[_0x4402d5+0xb]]+T[_0x152ad0[_0x4402d5+0xc]]+T[_0x152ad0[_0x4402d5+0xd]]+T[_0x152ad0[_0x4402d5+0xe]]+T[_0x152ad0[_0x4402d5+0xf]])[_0x520cbe(0x36c)]();}var xe,ir=new Uint8Array(0x10);function nr(){const _0x367be0=_0xcc124c;if(!xe&&(xe=typeof crypto<'u'&&crypto[_0x367be0(0x521)]&&crypto[_0x367be0(0x521)][_0x367be0(0x516)](crypto),!xe))throw new Error(_0x367be0(0x3cd));return xe(ir);}var rr=typeof crypto<'u'&&crypto[_0xcc124c(0x457)]&&crypto[_0xcc124c(0x457)][_0xcc124c(0x516)](crypto);const cs={'randomUUID':rr};function or(_0x3e6607,_0x47ea8c,_0x9c5029){const _0xceab60=_0xcc124c;if(cs[_0xceab60(0x457)]&&!_0x47ea8c&&!_0x3e6607)return cs[_0xceab60(0x457)]();_0x3e6607=_0x3e6607||{};var _0x526455=_0x3e6607[_0xceab60(0x2f8)]||(_0x3e6607[_0xceab60(0x4f6)]||nr)();return _0x526455[0x6]=_0x526455[0x6]&0xf|0x40,_0x526455[0x8]=_0x526455[0x8]&0x3f|0x80,sr(_0x526455);}var ar=Object[_0xcc124c(0x2ad)],cr=Object['getOwnPropertyDescriptor'],hr=(_0xdef38f,_0x21e07e,_0x403eb1,_0x2ac9e6)=>{const _0x581afe=_0xcc124c;for(var _0x5a81c0=_0x2ac9e6>0x1?void 0x0:_0x2ac9e6?cr(_0x21e07e,_0x403eb1):_0x21e07e,_0x48404c=_0xdef38f[_0x581afe(0x236)]-0x1,_0x15f335;_0x48404c>=0x0;_0x48404c--)(_0x15f335=_0xdef38f[_0x48404c])&&(_0x5a81c0=(_0x2ac9e6?_0x15f335(_0x21e07e,_0x403eb1,_0x5a81c0):_0x15f335(_0x5a81c0))||_0x5a81c0);return _0x2ac9e6&&_0x5a81c0&&ar(_0x21e07e,_0x403eb1,_0x5a81c0),_0x5a81c0;},ht=(_0x4a195d,_0x10c583)=>(_0x18f9ad,_0x55db84)=>_0x10c583(_0x18f9ad,_0x55db84,_0x4a195d);let Ye=class{constructor(_0x163602,_0x1c16a7,_0x2fec56){const _0x1a5a02=_0xcc124c;this[_0x1a5a02(0x2bb)]=_0x163602,this[_0x1a5a02(0x4bb)]=_0x1c16a7,this[_0x1a5a02(0x4d5)]=_0x2fec56;}['transformIMECache'](_0x2d330c){const _0x34ff87=_0xcc124c;this[_0x34ff87(0x518)](_0x2d330c),this[_0x34ff87(0x2b0)](_0x2d330c);}[_0xcc124c(0x1ef)](_0xe50c2){const _0x49b081=_0xcc124c,{unitID:_0x455f48}=_0xe50c2,_0x255249=this[_0x49b081(0x4d5)][_0x49b081(0x452)](_0x455f48)[_0x49b081(0x50c)](_0x347005),{redoCache:_0x4a949e}=_0x255249[_0x49b081(0x1e9)]();if(_0x4a949e[_0x49b081(0x236)]===0x0)return _0xe50c2;let _0x890269=_0xe487b1[_0x49b081(0x4b1)](_0xe50c2['mutations'][0x0]);for(let _0x1f7c52=0x0;_0x1f7c52<_0x4a949e[_0x49b081(0x236)];_0x1f7c52++){const _0x4993b4={'id':_0x49b081(0x4d6),'params':{..._0x4a949e[_0x1f7c52]}},_0x103525=this[_0x49b081(0x4bb)]['transformMutation'](_0x890269,_0x4993b4,!0x1);if(_0xbffc4f(_0x103525))throw _0x103525[_0x49b081(0x1b3)];_0x890269=_0x103525[_0x49b081(0x378)];}return{..._0xe487b1[_0x49b081(0x4b1)](_0xe50c2),'mutations':[_0x890269]};}['_transformUndoRedoStack'](_0x542c87){const _0x3b7891=_0xcc124c,{unitID:_0xfe8aec}=_0x542c87,_0x2ff461=this['_renderManagerService'][_0x3b7891(0x452)](_0xfe8aec)['with'](_0x347005),{undoCache:_0x1c9ab1,redoCache:_0x5b368e}=_0x2ff461[_0x3b7891(0x1e9)]();if(_0x1c9ab1['length']===0x0||_0x5b368e[_0x3b7891(0x236)]===0x0)return;const _0x5bd490=[],_0x959c6f=[];let _0x5dab98=_0xe487b1[_0x3b7891(0x4b1)](_0x542c87[_0x3b7891(0x4d0)][0x0]),_0xb12b61=_0xe487b1['deepClone'](_0x542c87['mutations'][0x0]);for(let _0x4c0c67=_0x1c9ab1['length']-0x1;_0x4c0c67>=0x0;_0x4c0c67--){const _0x397384={'id':_0x3b7891(0x4d6),'params':{..._0x1c9ab1[_0x4c0c67]}},_0xa22175={'id':_0x3b7891(0x4d6),'params':{..._0x5b368e[_0x4c0c67]}},_0x16e111=this[_0x3b7891(0x4bb)][_0x3b7891(0x509)](_0x5dab98,_0x397384,!0x1),_0x4ed561=this[_0x3b7891(0x4bb)][_0x3b7891(0x509)](_0xb12b61,_0xa22175,!0x1);if(_0xbffc4f(_0x16e111))throw _0x16e111[_0x3b7891(0x1b3)];if(_0xbffc4f(_0x4ed561))throw _0x4ed561[_0x3b7891(0x1b3)];_0x5bd490[_0x3b7891(0x2ce)](_0x16e111[_0x3b7891(0x4f3)]['params']),_0x959c6f['unshift'](_0x4ed561[_0x3b7891(0x4f3)][_0x3b7891(0x20f)]),_0x5dab98=_0x16e111[_0x3b7891(0x378)],_0xb12b61=_0x4ed561[_0x3b7891(0x378)];}_0x2ff461[_0x3b7891(0x219)]({'undoCache':_0x5bd490,'redoCache':_0x959c6f});}[_0xcc124c(0x2b0)](_0x4da40c){const _0x17ed6f=_0xcc124c,{unitID:_0xe809bc}=_0x4da40c,_0x5dc3ba=this[_0x17ed6f(0x4d5)][_0x17ed6f(0x452)](_0xe809bc)[_0x17ed6f(0x50c)](_0x347005),_0x40ebc3=_0x5dc3ba[_0x17ed6f(0x2d2)]();if(_0x40ebc3==null)return;const _0x54527e=[{'id':_0x17ed6f(0x4d6),'params':{'unitId':_0x4da40c[_0x17ed6f(0x38f)],'actions':null,'textRanges':[_0x40ebc3]}}],_0x381763=this['_transformService'][_0x17ed6f(0x1e2)](_0x4da40c,_0x54527e);if(!_0x4a7660(_0x381763))throw _0x381763[_0x17ed6f(0x1b3)];const _0x2b034f=_0x381763[_0x17ed6f(0x4f3)][0x0]['params'][_0x17ed6f(0x2d9)];Array[_0x17ed6f(0x393)](_0x2b034f)&&_0x2b034f[_0x17ed6f(0x236)]&&_0x5dc3ba[_0x17ed6f(0x422)](_0x2b034f[0x0]);}};Ye=hr([ht(0x0,_0xa01556(_0x3064b3)),ht(0x1,_0x279fb0),ht(0x2,_0x739b15)],Ye);var lr=Object[_0xcc124c(0x2ad)],_r=Object[_0xcc124c(0x3f2)],ur=(_0x17e6fa,_0x1541ea,_0x408c67,_0x56e771)=>{for(var _0x43f626=_0x56e771>0x1?void 0x0:_0x56e771?_r(_0x1541ea,_0x408c67):_0x1541ea,_0x37022c=_0x17e6fa['length']-0x1,_0x1e68fb;_0x37022c>=0x0;_0x37022c--)(_0x1e68fb=_0x17e6fa[_0x37022c])&&(_0x43f626=(_0x56e771?_0x1e68fb(_0x1541ea,_0x408c67,_0x43f626):_0x1e68fb(_0x43f626))||_0x43f626);return _0x56e771&&_0x43f626&&lr(_0x1541ea,_0x408c67,_0x43f626),_0x43f626;},De=(_0x576092,_0x1ca314)=>(_0x4e69e2,_0x21f0be)=>_0x1ca314(_0x4e69e2,_0x21f0be,_0x576092);let w=class extends _0x4dfcd2{constructor(_0x30b6b6,_0x25943d,_0xbd8d65,_0x2f8606,_0x113c4b){const _0x4b04b9=_0xcc124c;super(),l(this,_0x4b04b9(0x33a),new Map()),l(this,'_saveTaskMap',new Map()),l(this,_0x4b04b9(0x306),!0x1),(this[_0x4b04b9(0x3f6)]=_0x30b6b6,this[_0x4b04b9(0x1ec)]=_0x25943d,this[_0x4b04b9(0x2ac)]=_0xbd8d65,this[_0x4b04b9(0x51c)]=_0x2f8606,this[_0x4b04b9(0x1b4)]=_0x113c4b,this['_setupBeforeClosingHandler']());}['disableLocalCache'](){const _0x1e1b0c=_0xcc124c;this[_0x1e1b0c(0x306)]=!0x0;}[_0xcc124c(0x2b3)](){const _0x468d4f=_0xcc124c;this[_0x468d4f(0x306)]=!0x1;}[_0xcc124c(0x2e2)](){const _0x5cd0fb=_0xcc124c;this[_0x5cd0fb(0x26e)]()[_0x5cd0fb(0x520)](()=>super[_0x5cd0fb(0x2e2)]());}async[_0xcc124c(0x42a)](_0x3e4dad){const _0x589546=_0xcc124c;return this['_disabled']?null:this[_0x589546(0x1ec)]['getItem'](hs(_0x3e4dad));}async[_0xcc124c(0x23f)](_0x3c70ba,_0x40b56e){const _0x4caca7=_0xcc124c;return!!this[_0x4caca7(0x1ec)][_0x4caca7(0x26a)](_0x3c70ba,_0x40b56e);}[_0xcc124c(0x4ec)](_0x439540,_0x46bbae,_0x5ae7ea,_0x394afb){const _0x556f01=_0xcc124c,_0x552618=this[_0x556f01(0x1b4)][_0x556f01(0x3dc)](_0x439540);this[_0x556f01(0x33a)][_0x556f01(0x4d8)](_0x439540,{'unitID':_0x439540,'type':_0x46bbae,'awaitingChangeset':_0x5ae7ea,'mutations':_0x394afb,'rev':_0x552618}),this[_0x556f01(0x29f)][_0x556f01(0x449)](_0x439540)||this[_0x556f01(0x486)](_0x439540);}[_0xcc124c(0x486)](_0x576828){const _0xb4641e=_0xcc124c,_0x4199b1=this[_0xb4641e(0x3fd)]();_0x4199b1===0x0?this['_saveCache'](_0x576828):this['_saveTaskMap'][_0xb4641e(0x4d8)](_0x576828,setTimeout(()=>this[_0xb4641e(0x1ca)](_0x576828),_0x4199b1));}['_getSaveTimeout'](){const _0xa1d677=_0xcc124c;var _0x3280a8;return(_0x3280a8=this[_0xa1d677(0x3f6)][_0xa1d677(0x463)](Un))!=null?_0x3280a8:Nn;}[_0xcc124c(0x1ca)](_0x4fb096){const _0x152b7c=_0xcc124c,_0x5e9cb7=this[_0x152b7c(0x29f)][_0x152b7c(0x4e6)](_0x4fb096);return _0x5e9cb7!==void 0x0&&window[_0x152b7c(0x337)](_0x5e9cb7),this[_0x152b7c(0x1ec)][_0x152b7c(0x26a)](hs(_0x4fb096),this[_0x152b7c(0x33a)][_0x152b7c(0x4e6)](_0x4fb096))['then'](()=>this['_saveTaskMap'][_0x152b7c(0x3bd)](_0x4fb096));}async[_0xcc124c(0x26e)](){const _0x5c5d8f=_0xcc124c,_0x257ef5=[];this[_0x5c5d8f(0x29f)][_0x5c5d8f(0x3d5)]((_0x17243d,_0x16496d)=>{const _0x2c2669=_0x5c5d8f;window[_0x2c2669(0x337)](_0x17243d),_0x257ef5[_0x2c2669(0x4c7)](this[_0x2c2669(0x1ca)](_0x16496d)[_0x2c2669(0x520)](()=>{const _0x453624=_0x2c2669;this['_saveTaskMap'][_0x453624(0x3bd)](_0x16496d);}));}),await Promise['all'](_0x257ef5);}[_0xcc124c(0x3ce)](){const _0x14dcb3=_0xcc124c;this[_0x14dcb3(0x379)](this[_0x14dcb3(0x2ac)]['registerBeforeClose'](()=>{const _0x2c0878=_0x14dcb3;if(this[_0x2c0878(0x29f)][_0x2c0878(0x21a)])return this['_localeService']['t'](_0x2c0878(0x1d9));}));}};w=ur([De(0x0,_0xf5edd1),De(0x1,_0x1e31bb),De(0x2,_0x52af3f),De(0x3,_0xa01556(_0x991281)),De(0x4,_0xa01556(_0x378b64))],w);function hs(_0x24e6fe){const _0x516119=_0xcc124c;return _0x516119(0x4b5)+_0x24e6fe;}var dr=Object[_0xcc124c(0x2ad)],mr=Object['getOwnPropertyDescriptor'],fr=(_0x2467ef,_0x31d126,_0x40c6a2,_0x30e45a)=>{const _0x20748d=_0xcc124c;for(var _0x133228=_0x30e45a>0x1?void 0x0:_0x30e45a?mr(_0x31d126,_0x40c6a2):_0x31d126,_0x59e595=_0x2467ef[_0x20748d(0x236)]-0x1,_0x4baf0b;_0x59e595>=0x0;_0x59e595--)(_0x4baf0b=_0x2467ef[_0x59e595])&&(_0x133228=(_0x30e45a?_0x4baf0b(_0x31d126,_0x40c6a2,_0x133228):_0x4baf0b(_0x133228))||_0x133228);return _0x30e45a&&_0x133228&&dr(_0x31d126,_0x40c6a2,_0x133228),_0x133228;},lt=(_0x2d7af2,_0x49fd38)=>(_0x1f5ab4,_0x10aabc)=>_0x49fd38(_0x1f5ab4,_0x10aabc,_0x2d7af2);function gr(_0x912431){const {unitID:_0x42edff,mutations:_0x19a9a3}=_0x912431;return{'unitId':_0x42edff,'subUnitId':_0x19a9a3[0x0]['params']['subUnitId']};}let Ke=class{constructor(_0xc5bc3a,_0x1acf8c,_0x3dd6e0){const _0x506c1b=_0xcc124c;this[_0x506c1b(0x2bb)]=_0xc5bc3a,this['_transformService']=_0x1acf8c,this['_instanceService']=_0x3dd6e0;}[_0xcc124c(0x3ef)](_0xf8d802){const _0x1005d6=_0xcc124c;var _0x34dc22,_0x1be03d,_0x15b5ca,_0x359630;const _0x40b2c1=this[_0x1005d6(0x2bb)][_0x1005d6(0x4e6)](_0x5c2add),{unitId:_0x505415,subUnitId:_0x424057}=gr(_0xf8d802),_0x125333=_0x40b2c1[_0x1005d6(0x237)](_0x505415)[_0x1005d6(0x1ea)](),_0x4ccb13=(_0x1be03d=(_0x34dc22=this[_0x1005d6(0x377)][_0x1005d6(0x522)](_0x505415))==null?void 0x0:_0x34dc22[_0x1005d6(0x1e8)]())==null?void 0x0:_0x1be03d['getSheetId']();if(_0x125333[_0x1005d6(0x236)]===0x0||!_0x505415||!_0x424057)return;const _0x3dfdd1=[{'id':_0x2ca063['id'],'params':{'unitId':_0x505415,'subUnitId':_0x4ccb13,'selections':_0xe487b1[_0x1005d6(0x4b1)](_0x125333)}}],_0x1d17f2=this['_transformService'][_0x1005d6(0x1e2)](_0xf8d802,_0x3dfdd1);if(!_0x4a7660(_0x1d17f2))throw _0x1d17f2[_0x1005d6(0x1b3)];const _0x1d6463=(_0x359630=(_0x15b5ca=_0x1d17f2[_0x1005d6(0x4f3)][0x0])==null?void 0x0:_0x15b5ca[_0x1005d6(0x20f)])==null?void 0x0:_0x359630['selections'];if(Array[_0x1005d6(0x393)](_0x1d6463)&&_0x1d6463[_0x1005d6(0x236)]){if(_0x1d6463[_0x1005d6(0x236)]===_0x3dfdd1[0x0][_0x1005d6(0x20f)][_0x1005d6(0x46d)][_0x1005d6(0x236)]&&_0x1d6463[_0x1005d6(0x423)]((_0x3450f2,_0x57bfcd)=>_0x49320b[_0x1005d6(0x1fc)](_0x3450f2['range'],_0x3dfdd1[0x0][_0x1005d6(0x20f)]['selections'][_0x57bfcd][_0x1005d6(0x3e2)])))return;this['_injector'][_0x1005d6(0x4e6)](_0x4ba546)[_0x1005d6(0x49c)](_0x2ca063['id'],{'unitId':_0x505415,'subUnitId':_0x4ccb13,'selections':_0x1d6463});}}};Ke=fr([lt(0x0,_0xa01556(_0x3064b3)),lt(0x1,_0x279fb0),lt(0x2,_0x4a621b)],Ke);const tt=_0x49cd73('univer-pro.collaboration-client.single-active-unit-service');var Fs=(_0x43bc5e=>(_0x43bc5e[_0x43bc5e[_0xcc124c(0x3b4)]=0x0]=_0xcc124c(0x3b4),_0x43bc5e[_0x43bc5e[_0xcc124c(0x4b6)]=0x1]='OTHER_CLIENTS_EDITING',_0x43bc5e))(Fs||{});const ls=0x7530,_s=_0xcc124c(0x1dd);class Sr extends _0x4dfcd2{constructor(){const _0x5970b0=_0xcc124c;super(),l(this,_0x5970b0(0x491),_0xe487b1[_0x5970b0(0x32e)]()),l(this,_0x5970b0(0x517),new Set()),l(this,_0x5970b0(0x394),new Map()),l(this,_0x5970b0(0x4d7),null),l(this,_0x5970b0(0x35e),new Map()),l(this,_0x5970b0(0x370),new Map()),this[_0x5970b0(0x203)]();}['dispose'](){const _0x18a1fc=_0xcc124c;super[_0x18a1fc(0x2e2)](),this[_0x18a1fc(0x35e)][_0x18a1fc(0x3d5)]((_0x51987a,_0x5c9d7e)=>this['_removeClearOtherTimer'](_0x5c9d7e)),this[_0x18a1fc(0x4d7)]&&window['clearInterval'](this[_0x18a1fc(0x4d7)]);}[_0xcc124c(0x468)](_0x2914ea){const _0x1c8647=_0xcc124c;return this['_ensureSubject'](_0x2914ea)[_0x1c8647(0x4f2)](_0x180102());}[_0xcc124c(0x2e5)](_0x359a86){const _0x45b1a4=_0xcc124c;this[_0x45b1a4(0x517)][_0x45b1a4(0x21a)]===0x0&&this[_0x45b1a4(0x39f)](),this[_0x45b1a4(0x517)]['add'](_0x359a86),this[_0x45b1a4(0x349)]({'type':0x0,'memberID':this[_0x45b1a4(0x491)],'unitIDs':[_0x359a86],'isForwarded':!0x1});}[_0xcc124c(0x38a)](_0x11a489){const _0x300ffc=_0xcc124c;this[_0x300ffc(0x517)]['delete'](_0x11a489),this['_selfUnitIDs'][_0x300ffc(0x21a)]===0x0&&this[_0x300ffc(0x4d7)]&&window[_0x300ffc(0x430)](this[_0x300ffc(0x4d7)]);}[_0xcc124c(0x203)](){const _0x35ad9e=_0xcc124c;this['disposeWithMe'](_0x5b34e8(_0x24365b(window,_0x35ad9e(0x3a6))['subscribe'](_0x3d1d2d=>{const _0xbfe161=_0x35ad9e;if(_0x3d1d2d[_0xbfe161(0x31f)]!==_s||!_0x3d1d2d[_0xbfe161(0x30b)])return;const _0x26d40c=JSON[_0xbfe161(0x52e)](_0x3d1d2d[_0xbfe161(0x30b)]);this[_0xbfe161(0x358)](_0x26d40c);}))),window[_0x35ad9e(0x317)]('unload',()=>this[_0x35ad9e(0x349)]({'type':0x1,'memberID':this[_0x35ad9e(0x491)],'unitIDs':Array[_0x35ad9e(0x2eb)](this[_0x35ad9e(0x517)])}));}['_handleEvent'](_0x4cea27){const _0x176c58=_0xcc124c;switch(_0x4cea27[_0x176c58(0x23d)]){case 0x0:this['_handleJoinEvent'](_0x4cea27);break;case 0x1:this[_0x176c58(0x277)](_0x4cea27);break;case 0x2:this[_0x176c58(0x272)](_0x4cea27);break;}}[_0xcc124c(0x29e)](_0x556131){const _0x390c6d=_0xcc124c,{unitIDs:_0x1ce715,memberID:_0xfafb7b,isForwarded:_0x583826}=_0x556131;_0x1ce715[_0x390c6d(0x3d5)](_0x416b98=>{const _0x3eb26f=_0x390c6d;if(!_0x583826&&this['_unitOnClients'][_0x3eb26f(0x449)](_0x416b98)&&this['_ensureSubject'](_0x416b98)[_0x3eb26f(0x1cf)](0x1),!this[_0x3eb26f(0x394)][_0x3eb26f(0x449)](_0x416b98)||!this[_0x3eb26f(0x394)]['get'](_0x416b98)[_0x3eb26f(0x449)](_0xfafb7b)){const _0x5f5e0f=this[_0x3eb26f(0x394)][_0x3eb26f(0x4e6)](_0x416b98)||new Set();_0x5f5e0f[_0x3eb26f(0x266)](_0xfafb7b),this[_0x3eb26f(0x394)][_0x3eb26f(0x4d8)](_0x416b98,_0x5f5e0f),this['_scheduleClearOtherTimer'](_0xfafb7b);}}),_0x583826||this[_0x390c6d(0x349)]({'type':0x0,'memberID':this[_0x390c6d(0x491)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0xcc124c(0x3a4)](_0x5952ad){const _0x3bab2f=_0xcc124c;this[_0x3bab2f(0x269)](_0x5952ad);const _0x29bfef=window['setTimeout'](()=>{const _0x59e40e=_0x3bab2f;this[_0x59e40e(0x394)][_0x59e40e(0x3d5)](_0xd2158=>{const _0x227883=_0x59e40e;_0xd2158[_0x227883(0x3bd)](_0x5952ad);});},ls*0x2);this[_0x3bab2f(0x35e)][_0x3bab2f(0x4d8)](_0x5952ad,_0x29bfef);}['_removeClearOtherTimer'](_0x2f6f43){const _0x4f9bf0=_0xcc124c;if(this[_0x4f9bf0(0x35e)]['has'](_0x2f6f43)){const _0x32b195=this[_0x4f9bf0(0x35e)][_0x4f9bf0(0x4e6)](_0x2f6f43);_0x32b195&&window[_0x4f9bf0(0x337)](_0x32b195),this[_0x4f9bf0(0x35e)]['set'](_0x2f6f43,null);}}[_0xcc124c(0x277)](_0xcff8c4){const _0x17a5c7=_0xcc124c,{memberID:_0x45197a,unitIDs:_0x3a5d37}=_0xcff8c4;_0x3a5d37[_0x17a5c7(0x3d5)](_0x544b63=>{const _0x34d3d8=_0x17a5c7;var _0x5494da;const _0x12af9c=this[_0x34d3d8(0x394)][_0x34d3d8(0x4e6)](_0x544b63);_0x12af9c&&(_0x12af9c[_0x34d3d8(0x3bd)](_0x45197a),(_0x5494da=this[_0x34d3d8(0x338)](_0x544b63))==null||_0x5494da[_0x34d3d8(0x1cf)](_0x12af9c['size']===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x45197a);}[_0xcc124c(0x272)](_0x21cc6d){const _0x1431f7=_0xcc124c;this[_0x1431f7(0x3a4)](_0x21cc6d['memberID']);}[_0xcc124c(0x349)](_0x2a035f){const _0x3f73a7=_0xcc124c;localStorage['setItem'](_s,JSON[_0x3f73a7(0x234)](_0x2a035f));}[_0xcc124c(0x39f)](){const _0x3bd315=_0xcc124c;this[_0x3bd315(0x4d7)]=window[_0x3bd315(0x1bc)](()=>{const _0x213927=_0x3bd315;this[_0x213927(0x349)]({'type':0x2,'memberID':this[_0x213927(0x491)]});},ls);}[_0xcc124c(0x338)](_0x5afd64){const _0x5628a0=_0xcc124c;return this[_0x5628a0(0x370)][_0x5628a0(0x449)](_0x5afd64)||this[_0x5628a0(0x370)][_0x5628a0(0x4d8)](_0x5afd64,new _0x3708bc(0x0)),this[_0x5628a0(0x370)][_0x5628a0(0x4e6)](_0x5afd64);}}function Ws(_0x12c5cf){let _0x46f5a6='';for(const _0x8284f3 of _0x12c5cf){const {startOffset:_0x52d818,endOffset:_0x47a0b3,isActive:_0x4af802}=_0x8284f3;_0x46f5a6['length']&&(_0x46f5a6+=','),_0x46f5a6+=_0x52d818+':'+_0x47a0b3+':'+(_0x4af802?'1':'0');}return _0x46f5a6;}function pr(_0x262a82){const _0x3b8e6f=_0xcc124c,_0xc0527d=_0x262a82['split'](','),_0x1d54f9=[];for(const _0x12feb5 of _0xc0527d){const [_0xfd7512,_0x4ca111,_0x52f269]=_0x12feb5[_0x3b8e6f(0x42f)](':');_0x1d54f9['push']({'startOffset':Number(_0xfd7512),'endOffset':Number(_0x4ca111),'collapsed':_0xfd7512===_0x4ca111,'isActive':_0x52f269==='1'});}return _0x1d54f9[_0x3b8e6f(0x3bb)](_0x56b66a=>_0x56b66a[_0x3b8e6f(0x513)])||(_0x1d54f9[0x0]['isActive']=!0x0),_0x1d54f9;}class Ft extends _0xb64757{constructor(){const _0x107aa4=_0xcc124c;super(...arguments),l(this,_0x107aa4(0x2cf),new _0x3708bc(null)),l(this,_0x107aa4(0x523),this[_0x107aa4(0x2cf)]['asObservable']());}[_0xcc124c(0x531)](_0x397e2f){const _0x2e3e11=_0xcc124c,{unitID:_0x33d376,memberID:_0x59a010,textRanges:_0x1316cf}=_0x397e2f,_0x4baea4=Ws(_0x1316cf),_0x23428c={'unitID':_0x33d376,'memberID':_0x59a010,'selection':_0x4baea4};this[_0x2e3e11(0x2cf)]['next'](_0x23428c);}}var vr=Object['defineProperty'],Ir=Object['getOwnPropertyDescriptor'],Er=(_0x5d5fe9,_0xae4eff,_0x325b66,_0x2b016e)=>{const _0xeac0af=_0xcc124c;for(var _0x509278=_0x2b016e>0x1?void 0x0:_0x2b016e?Ir(_0xae4eff,_0x325b66):_0xae4eff,_0x1bacf0=_0x5d5fe9[_0xeac0af(0x236)]-0x1,_0x1258f6;_0x1bacf0>=0x0;_0x1bacf0--)(_0x1258f6=_0x5d5fe9[_0x1bacf0])&&(_0x509278=(_0x2b016e?_0x1258f6(_0xae4eff,_0x325b66,_0x509278):_0x1258f6(_0x509278))||_0x509278);return _0x2b016e&&_0x509278&&vr(_0xae4eff,_0x325b66,_0x509278),_0x509278;},us=(_0x2e9611,_0x7e935f)=>(_0xbb0232,_0x56ed61)=>_0x7e935f(_0xbb0232,_0x56ed61,_0x2e9611);let Xe=class{constructor(_0x4e2379,_0x468c7d){const _0x160616=_0xcc124c;this[_0x160616(0x2bb)]=_0x4e2379,this[_0x160616(0x4bb)]=_0x468c7d;}[_0xcc124c(0x3ef)](_0x12ff7e){const _0x40cea9=_0xcc124c;var _0x35e204;const _0x2b8565=this[_0x40cea9(0x2bb)]['get'](_0x2a59c5),_0x2980d1=(_0x35e204=_0x2b8565[_0x40cea9(0x4d2)]())!=null?_0x35e204:[];if(_0x2980d1[_0x40cea9(0x236)]===0x0)return;const _0x3e1987=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x12ff7e['unitID'],'actions':null,'textRanges':_0x2980d1}}],_0x244ac6=this[_0x40cea9(0x4bb)][_0x40cea9(0x1e2)](_0x12ff7e,_0x3e1987);if(!_0x4a7660(_0x244ac6))throw _0x244ac6['error'];const _0x33c88d=_0x244ac6['m2Prime'][0x0][_0x40cea9(0x20f)][_0x40cea9(0x2d9)];Array[_0x40cea9(0x393)](_0x33c88d)&&_0x33c88d[_0x40cea9(0x236)]&&_0x2b8565[_0x40cea9(0x3e0)](_0x33c88d,!0x1);}};Xe=Er([us(0x0,_0xa01556(_0x3064b3)),us(0x1,_0x279fb0)],Xe);const Cr=new Set([_0xdc5fd1['id']]);function ds(_0x269f20,_0x42d974,_0x4f2e32,_0xbe1120,_0x2bb818){const _0x138dfc=_0xcc124c;var _0x59560c,_0x1af910,_0x149e39,_0x2dbfa8;const _0xd4dfe1=[];for(const _0x2d2e7d of _0x269f20)if(Cr['has'](_0x2d2e7d['id'])){if(_0xd4dfe1[_0x138dfc(0x236)]>0x0)break;_0xd4dfe1[_0x138dfc(0x4c7)](_0x2d2e7d);break;}else _0xd4dfe1[_0x138dfc(0x4c7)](_0x2d2e7d);const _0x48f959=(_0x1af910=(_0x59560c=_0x2bb818[_0x138dfc(0x3b5)]())==null?void 0x0:_0x59560c[_0x138dfc(0x31e)])!=null?_0x1af910:'unknown',_0x73cdd2=(_0x2dbfa8=(_0x149e39=_0x2bb818[_0x138dfc(0x3b5)]())==null?void 0x0:_0x149e39[_0x138dfc(0x43e)])!=null?_0x2dbfa8:'unknown';return{'changeset':{'unitID':_0x42d974,'type':_0x1a0020(_0x4f2e32[_0x138dfc(0x304)](_0x42d974)),'baseRev':_0xbe1120[_0x138dfc(0x3dc)](_0x42d974),'revision':0x0,'userID':_0x48f959,'memberID':_0x73cdd2,'mutations':_0xd4dfe1},'pendingMutations':_0x269f20[_0x138dfc(0x223)](_0xd4dfe1[_0x138dfc(0x236)])};}function br(_0x4b9952,_0x3d5468,_0x13486b,_0x4afa27,_0x3893dc){const _0x240b10=_0xcc124c;var _0x51da78,_0x2aa0e0,_0x3ebfc0,_0x30cff3;const _0x1dc15e=[_0x4b9952['reduce']((_0x3d4afd,_0x11a316)=>{const _0x40b362=_0x293d;var _0x62a570;const {id:_0xea9ec5}=_0x3d4afd,{id:_0x166baa,type:_0x1b8436}=_0x11a316,_0x2e7a41=(_0x62a570=_0x3d4afd[_0x40b362(0x20f)])!=null?_0x62a570:{'actions':null},_0x52747f=_0x11a316[_0x40b362(0x20f)];if(_0xea9ec5&&_0xea9ec5!==_0x166baa)throw new Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0xea9ec5+_0x40b362(0x44b)+_0x166baa+'.');return{..._0x3d4afd,'id':_0x166baa,'type':_0x1b8436,'params':{'unitId':_0x52747f[_0x40b362(0x49a)],'textRanges':_0x52747f[_0x40b362(0x2d9)],'actions':_0x2a33d0['compose'](_0x2e7a41[_0x40b362(0x27b)],_0x52747f['actions'])}};},{})],_0x4e6281=(_0x2aa0e0=(_0x51da78=_0x3893dc[_0x240b10(0x3b5)]())==null?void 0x0:_0x51da78[_0x240b10(0x31e)])!=null?_0x2aa0e0:_0x240b10(0x283),_0x24867a=(_0x30cff3=(_0x3ebfc0=_0x3893dc[_0x240b10(0x3b5)]())==null?void 0x0:_0x3ebfc0[_0x240b10(0x43e)])!=null?_0x30cff3:_0x240b10(0x283);return{'changeset':{'unitID':_0x3d5468,'type':_0x1a0020(_0x13486b[_0x240b10(0x304)](_0x3d5468)),'baseRev':_0x4afa27[_0x240b10(0x3dc)](_0x3d5468),'revision':0x0,'userID':_0x4e6281,'memberID':_0x24867a,'mutations':_0x1dc15e},'pendingMutations':[]};}function Gs(_0x3c4f12,_0x49eac8){const _0x5f5513=_0xcc124c,_0x100021=new _0x4d114c(0x1);return setTimeout(()=>_0x100021[_0x5f5513(0x1cf)](_0x49eac8),_0x3c4f12),_0x100021[_0x5f5513(0x407)]()[_0x5f5513(0x4f2)](_0x13b589(0x1));}const Tr={'id':_0x5c15e2['id'],'type':_0x542ece[_0xcc124c(0x307)],'params':{}};var Rr=Object[_0xcc124c(0x2ad)],Or=Object[_0xcc124c(0x3f2)],_e=(_0x28ca0f,_0xb25f27,_0x4baf0f,_0x209734)=>{const _0x1393ec=_0xcc124c;for(var _0x5fc2fa=_0x209734>0x1?void 0x0:_0x209734?Or(_0xb25f27,_0x4baf0f):_0xb25f27,_0x73c7eb=_0x28ca0f[_0x1393ec(0x236)]-0x1,_0x68303b;_0x73c7eb>=0x0;_0x73c7eb--)(_0x68303b=_0x28ca0f[_0x73c7eb])&&(_0x5fc2fa=(_0x209734?_0x68303b(_0xb25f27,_0x4baf0f,_0x5fc2fa):_0x68303b(_0x5fc2fa))||_0x5fc2fa);return _0x209734&&_0x5fc2fa&&Rr(_0xb25f27,_0x4baf0f,_0x5fc2fa),_0x5fc2fa;},f=(_0x522d07,_0x5e2590)=>(_0x38bf35,_0x24efb8)=>_0x5e2590(_0x38bf35,_0x24efb8,_0x522d07),P=(_0x4a8400=>(_0x4a8400[_0xcc124c(0x4aa)]=_0xcc124c(0x390),_0x4a8400[_0xcc124c(0x469)]=_0xcc124c(0x2c5),_0x4a8400[_0xcc124c(0x345)]='pending',_0x4a8400[_0xcc124c(0x445)]=_0xcc124c(0x499),_0x4a8400[_0xcc124c(0x2b9)]='awaiting_with_pending',_0x4a8400[_0xcc124c(0x3e8)]=_0xcc124c(0x1db),_0x4a8400[_0xcc124c(0x1f8)]=_0xcc124c(0x507),_0x4a8400[_0xcc124c(0x1d8)]=_0xcc124c(0x448),_0x4a8400))(P||{});const Ys=0xea60;class ue{constructor(_0xf5f1e4,_0x2bb1f,_0x5001e9,_0x19ea18,_0x328db8,_0x3c8d5b,_0xf8466b,_0x2b1d78,_0x21d99a){const _0x5526aa=_0xcc124c;l(this,'_awaitingChangeset',null),l(this,_0x5526aa(0x1dc),[]),(this[_0x5526aa(0x38f)]=_0xf5f1e4,this[_0x5526aa(0x23d)]=_0x2bb1f,this[_0x5526aa(0x329)]=_0x328db8,this[_0x5526aa(0x232)]=_0x3c8d5b,this[_0x5526aa(0x4bf)]=_0xf8466b,this[_0x5526aa(0x1b4)]=_0x2b1d78,this[_0x5526aa(0x2ed)]=_0x21d99a,this[_0x5526aa(0x4db)]=_0x5001e9,this[_0x5526aa(0x1dc)]=_0x19ea18);}['_checkMissing'](_0x3b30de){const _0x589e72=_0xcc124c,_0x2e3855=this[_0x589e72(0x1b4)]['getCurrentRevOfUnit'](this['unitID']);return _0x3b30de['revision']>_0x2e3855+0x1?(this[_0x589e72(0x329)][_0x589e72(0x211)]({'from':_0x2e3855,'to':_0x3b30de['revision']-0x1}),!0x0):!0x1;}[_0xcc124c(0x1fb)](_0x56e60c){const _0x4d448=_0xcc124c;this['_undoRedoService'][_0x4d448(0x274)](this[_0x4d448(0x38f)],_0x56e60c);}[_0xcc124c(0x360)](_0xa6cc0){const _0x293c0e=_0xcc124c;var _0x1eb210,_0x5ba261;(_0x5ba261=(_0x1eb210=this[_0x293c0e(0x329)])[_0x293c0e(0x4f7)])==null||_0x5ba261['call'](_0x1eb210,_0xa6cc0);}['_transformIMECache'](_0x4e047a){const _0x2b4d22=_0xcc124c;var _0x529c6c,_0x287efc;return(_0x287efc=(_0x529c6c=this[_0x2b4d22(0x329)])[_0x2b4d22(0x4bd)])==null?void 0x0:_0x287efc[_0x2b4d22(0x231)](_0x529c6c,_0x4e047a);}[_0xcc124c(0x25b)](_0x35fffc){const _0x1765d1=_0xcc124c;var _0x16579d,_0x359558,_0x1cac2a;return(_0x1cac2a=(_0x359558=(_0x16579d=this['_handler'])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x359558[_0x1765d1(0x231)](_0x16579d,_0x35fffc))!=null?_0x1cac2a:_0x35fffc;}['_syncEditingCollabCursor'](_0xe2c235){const _0x35bfc6=_0xcc124c;var _0x4992f3,_0x2c9083;if(this[_0x35bfc6(0x23d)]===k[_0x35bfc6(0x215)]){const {unitID:_0x50dc21,mutations:_0x1a1db9,memberID:_0x18743e}=_0xe2c235,_0x21c968=_0x1a1db9[0x0][_0x35bfc6(0x20f)][_0x35bfc6(0x2d9)];Array[_0x35bfc6(0x393)](_0x21c968)&&_0x21c968[_0x35bfc6(0x236)]>0x0&&((_0x2c9083=(_0x4992f3=this[_0x35bfc6(0x329)])[_0x35bfc6(0x4fb)])==null||_0x2c9083[_0x35bfc6(0x231)](_0x4992f3,{'unitID':_0x50dc21,'memberID':_0x18743e,'textRanges':_0x21c968}));}}[_0xcc124c(0x479)](){const _0xf90cdf=_0xcc124c;this['_localCacheService'][_0xf90cdf(0x4ec)](this[_0xf90cdf(0x38f)],this[_0xf90cdf(0x23d)],this['_awaitingChangeset'],this[_0xf90cdf(0x1dc)]);}[_0xcc124c(0x3ff)](){const _0x26db02=_0xcc124c;return this['_revisionService'][_0x26db02(0x3dc)](this['unitID']);}[_0xcc124c(0x1f4)](){const _0x10d837=_0xcc124c;this[_0x10d837(0x1b4)][_0x10d837(0x4df)](this['unitID']);}[_0xcc124c(0x504)](_0x4099df){const _0x3a39f3=_0xcc124c;var _0x24e157;const _0x1a6007=this[_0x3a39f3(0x25b)](_0x4099df),_0x5892bd=_0x27d15e(_0x1a6007[_0x3a39f3(0x4d0)],this[_0x3a39f3(0x232)],{'fromCollab':!0x0});if(!_0x5892bd[_0x3a39f3(0x48e)])throw _0x5892bd[_0x3a39f3(0x1b3)]instanceof Error?_0x5892bd[_0x3a39f3(0x1b3)]:new Error((_0x24e157=_0x5892bd[_0x3a39f3(0x1b3)])!=null?_0x24e157:_0x3a39f3(0x27a));this[_0x3a39f3(0x2be)](_0x1a6007),this[_0x3a39f3(0x1fb)](_0x4099df),this[_0x3a39f3(0x360)](_0x1a6007),this[_0x3a39f3(0x1de)](_0x1a6007),this[_0x3a39f3(0x1f4)]();}}let pe=class extends ue{constructor(_0xbe3397,_0x40993a,_0x10a1c9,_0x5c8e34,_0x1cd8d8,_0x37ba0e,_0x1198ed,_0x19ac17,_0x37b4c7,_0x3c7ca0){const _0x380582=_0xcc124c;super(_0xbe3397,_0x40993a,null,[],_0x10a1c9,_0x19ac17,_0x1198ed,_0x5c8e34,_0x1cd8d8),l(this,_0x380582(0x35d),'synced'),(this[_0x380582(0x2bb)]=_0x37ba0e,this['_logService']=_0x37b4c7,this[_0x380582(0x4bb)]=_0x3c7ca0);}[_0xcc124c(0x45d)](_0x52f1d7){const _0xd19d0=_0xcc124c,_0x48b3cf=this['_injector'][_0xd19d0(0x293)](X,this[_0xd19d0(0x38f)],this[_0xd19d0(0x23d)],[_0x52f1d7],this[_0xd19d0(0x329)]);return _0x48b3cf[_0xd19d0(0x441)](),_0x48b3cf['_updateLocalCache'](),_0x48b3cf;}[_0xcc124c(0x321)](_0x42bdf4){const _0x11a479=_0xcc124c;if(this[_0x11a479(0x225)](_0x42bdf4))return this[_0x11a479(0x2bb)][_0x11a479(0x293)](B,this[_0x11a479(0x38f)],this['type'],null,[],null,[_0x42bdf4],this['_handler']);try{const _0xa03b8a=this[_0x11a479(0x4bb)][_0x11a479(0x1e2)](_0x42bdf4,[Tr]);if(_0x4a7660(_0xa03b8a)){const {c1Prime:_0x168fb0}=_0xa03b8a;return this[_0x11a479(0x504)](_0x168fb0),this;}throw _0xa03b8a[_0x11a479(0x1b3)];}catch(_0xeaf06e){return this[_0x11a479(0x1b0)][_0x11a479(0x1b3)](_0xeaf06e),this[_0x11a479(0x2b8)](!0x1);}}[_0xcc124c(0x2b8)](_0x5df3bb){const _0x111dcd=_0xcc124c;return this[_0x111dcd(0x2bb)][_0x111dcd(0x293)](ee,this[_0x111dcd(0x38f)],this['type'],null,[],this[_0x111dcd(0x329)],_0x5df3bb);}['onRemoteAck'](){const _0x21e20a=_0xcc124c;throw new Error(_0x21e20a(0x38e));}[_0xcc124c(0x501)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}['onRemoteRetry'](){return this;}[_0xcc124c(0x4c0)](){const _0x50609f=_0xcc124c;return this[_0x50609f(0x2bb)][_0x50609f(0x293)](te,this['unitID'],this['type'],null,[],this[_0x50609f(0x329)]);}[_0xcc124c(0x3c0)](){return this;}['resend'](){const _0x515eb0=_0xcc124c;throw new Error(_0x515eb0(0x1f5));}[_0xcc124c(0x2d6)](){const _0x168d48=_0xcc124c,_0x258c63=this['_revisionService'][_0x168d48(0x3dc)](this[_0x168d48(0x38f)]);return this[_0x168d48(0x329)]['onMissingChangesets']({'from':_0x258c63,'to':0x0}),this['_injector']['createInstance'](B,this[_0x168d48(0x38f)],this['type'],null,[],null,[],this[_0x168d48(0x329)]);}};pe=_e([f(0x3,_0xa01556(_0x378b64)),f(0x4,_0xa01556(w)),f(0x5,_0xa01556(_0x3064b3)),f(0x6,_0x48fa5b),f(0x7,_0x4ba546),f(0x8,_0x40bb6c),f(0x9,_0x279fb0)],pe);let X=class extends ue{constructor(_0x78b4f5,_0x4b2c9f,_0x4c7eb3,_0x2acc7d,_0x3dfe72,_0x1f5d44,_0x3d0c26,_0xa2cc48,_0x4691ce,_0x535599,_0x1f42c7,_0x8f1c9,_0x3bc66e,_0x5b71ef){const _0xed28c1=_0xcc124c;super(_0x78b4f5,_0x4b2c9f,null,_0x4c7eb3,_0x2acc7d,_0x535599,_0x5b71ef,_0x1f5d44,_0x3d0c26),l(this,_0xed28c1(0x35d),_0xed28c1(0x4ee)),l(this,_0xed28c1(0x3eb),null),l(this,_0xed28c1(0x2a4),null),(this['_injector']=_0x3dfe72,this[_0xed28c1(0x2ca)]=_0xa2cc48,this[_0xed28c1(0x1b0)]=_0x4691ce,this[_0xed28c1(0x3f6)]=_0x1f42c7,this[_0xed28c1(0x4bb)]=_0x8f1c9,this[_0xed28c1(0x268)]=_0x3bc66e);}[_0xcc124c(0x45d)](_0x4a458e){const _0x244897=_0xcc124c;return this[_0x244897(0x1dc)]['push'](_0x4a458e),this[_0x244897(0x479)](),this;}[_0xcc124c(0x321)](_0x49b450){const _0x37e29d=_0xcc124c;if(this[_0x37e29d(0x225)](_0x49b450))return this[_0x37e29d(0x302)](),this[_0x37e29d(0x2bb)]['createInstance'](B,this['unitID'],this[_0x37e29d(0x23d)],null,this[_0x37e29d(0x1dc)],null,[_0x49b450],this[_0x37e29d(0x329)]);try{const _0x53aa7c=this[_0x37e29d(0x4bb)][_0x37e29d(0x1e2)](_0x49b450,this[_0x37e29d(0x1dc)]);if(_0x4a7660(_0x53aa7c)){const {c1Prime:_0x57d823,m2Prime:_0x438c4d}=_0x53aa7c;this[_0x37e29d(0x504)](_0x57d823);const _0x341903=this['_injector']['createInstance'](X,this['unitID'],this['type'],_0x438c4d,this[_0x37e29d(0x329)]);return this[_0x37e29d(0x302)](),_0x341903['_schedule'](this[_0x37e29d(0x3eb)]?Math[_0x37e29d(0x48b)](0x0,new Date()[_0x37e29d(0x4e0)]()-this[_0x37e29d(0x3eb)]):this[_0x37e29d(0x2e3)]()),_0x341903;}throw _0x53aa7c['error'];}catch(_0x310207){return this[_0x37e29d(0x1b0)][_0x37e29d(0x1b3)](_0x310207),this[_0x37e29d(0x2b8)](!0x1);}}[_0xcc124c(0x3a3)](){const _0xe2eaf=_0xcc124c;throw new Error(_0xe2eaf(0x299));}[_0xcc124c(0x501)](){throw new Error('[PendingState]:\x20received\x20rejection.');}[_0xcc124c(0x2c9)](){return this;}[_0xcc124c(0x4c0)](){const _0x4d8da5=_0xcc124c;return this['_clearScheduledTask'](),this['_injector'][_0x4d8da5(0x293)](te,this[_0x4d8da5(0x38f)],this['type'],null,this[_0x4d8da5(0x1dc)],this[_0x4d8da5(0x329)]);}[_0xcc124c(0x3c0)](){return this;}[_0xcc124c(0x441)](_0x22c383){const _0x371af6=_0xcc124c,_0x18b955=_0x22c383!=null?_0x22c383:this[_0x371af6(0x2e3)]();this[_0x371af6(0x3eb)]=new Date()['getTime'](),this[_0x371af6(0x2a4)]=window['setTimeout'](()=>{const _0x51aa7b=_0x371af6;this[_0x51aa7b(0x302)]();let _0x1f1572=null;switch(this['type']){case k[_0x51aa7b(0x3e5)]:{_0x1f1572=ds(this[_0x51aa7b(0x1dc)],this[_0x51aa7b(0x38f)],this[_0x51aa7b(0x268)],this[_0x51aa7b(0x1b4)],this['_memberService']);break;}case k[_0x51aa7b(0x215)]:{this['_pendingMutations'][_0x51aa7b(0x423)](_0x296135=>_0x296135['id']===_0xba5740['id'])?_0x1f1572=br(this[_0x51aa7b(0x1dc)],this[_0x51aa7b(0x38f)],this[_0x51aa7b(0x268)],this[_0x51aa7b(0x1b4)],this[_0x51aa7b(0x2ca)]):_0x1f1572=ds(this[_0x51aa7b(0x1dc)],this[_0x51aa7b(0x38f)],this[_0x51aa7b(0x268)],this['_revisionService'],this[_0x51aa7b(0x2ca)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x51aa7b(0x23d)]+_0x51aa7b(0x494));}const {changeset:_0x356afa,pendingMutations:_0x22d8c4}=_0x1f1572;this[_0x51aa7b(0x329)][_0x51aa7b(0x488)](_0x356afa);const _0x2db168=_0x22d8c4[_0x51aa7b(0x236)]?this[_0x51aa7b(0x2bb)]['createInstance'](q,this['unitID'],this[_0x51aa7b(0x23d)],_0x356afa,_0x22d8c4,this[_0x51aa7b(0x329)],void 0x0):this['_injector'][_0x51aa7b(0x293)](Q,this[_0x51aa7b(0x38f)],this['type'],_0x356afa,this[_0x51aa7b(0x329)]);_0x2db168[_0x51aa7b(0x479)](),this[_0x51aa7b(0x329)]['onStateChange'](this,_0x2db168);},_0x18b955);}[_0xcc124c(0x2e3)](){const _0x4ffeb2=_0xcc124c;var _0x524b3c;const _0x19cbcb=this[_0x4ffeb2(0x3f6)][_0x4ffeb2(0x463)]($);return(_0x524b3c=_0x19cbcb==null?void 0x0:_0x19cbcb[_0x4ffeb2(0x374)])!=null?_0x524b3c:bn;}[_0xcc124c(0x28b)](){const _0x1f9a46=_0xcc124c;throw new Error(_0x1f9a46(0x20b));}[_0xcc124c(0x302)](){const _0x943f93=_0xcc124c;this[_0x943f93(0x2a4)]!=null&&(clearTimeout(this[_0x943f93(0x2a4)]),this[_0x943f93(0x2a4)]=null);}[_0xcc124c(0x2b8)](_0x38e517){const _0x2b357f=_0xcc124c;return this[_0x2b357f(0x302)](),this[_0x2b357f(0x2bb)]['createInstance'](ee,this[_0x2b357f(0x38f)],this['type'],null,this[_0x2b357f(0x1dc)],this[_0x2b357f(0x329)],_0x38e517);}};X=_e([f(0x4,_0xa01556(_0x3064b3)),f(0x5,_0xa01556(_0x378b64)),f(0x6,_0xa01556(w)),f(0x7,_0xa01556(ce)),f(0x8,_0x40bb6c),f(0x9,_0x4ba546),f(0xa,_0xf5edd1),f(0xb,_0x279fb0),f(0xc,_0x4a621b),f(0xd,_0x48fa5b)],X);let Q=class extends ue{constructor(_0x48ae5a,_0x5c34fc,_0xbfb504,_0x523949,_0x31ae7c,_0x270d49,_0x4d542e,_0x1b201b,_0x551bbd,_0x1013fd,_0x3d4fcd){const _0x53e724=_0xcc124c;super(_0x48ae5a,_0x5c34fc,_0xbfb504,[],_0x523949,_0x1b201b,_0x3d4fcd,_0x270d49,_0x4d542e),l(this,_0x53e724(0x35d),_0x53e724(0x499)),l(this,_0x53e724(0x1ac),0x0),l(this,_0x53e724(0x230)),l(this,_0x53e724(0x22b)),(this[_0x53e724(0x2bb)]=_0x31ae7c,this['_logService']=_0x551bbd,this['_transformService']=_0x1013fd);}[_0xcc124c(0x45d)](_0x45478a){const _0x95c819=_0xcc124c;this[_0x95c819(0x302)]();const _0x127d26=this[_0x95c819(0x2bb)][_0x95c819(0x293)](q,this[_0x95c819(0x38f)],this[_0x95c819(0x23d)],this[_0x95c819(0x4db)],[_0x45478a],this[_0x95c819(0x329)],this[_0x95c819(0x230)]);return _0x127d26[_0x95c819(0x479)](),_0x127d26;}[_0xcc124c(0x321)](_0x3746b5){const _0x174cc1=_0xcc124c;if(this['_checkMissing'](_0x3746b5))return this[_0x174cc1(0x302)](),this[_0x174cc1(0x2bb)][_0x174cc1(0x293)](B,this[_0x174cc1(0x38f)],this[_0x174cc1(0x23d)],this[_0x174cc1(0x4db)],[],null,[_0x3746b5],this[_0x174cc1(0x329)]);try{const _0x4a61f8=this[_0x174cc1(0x4bb)]['transformChangesets']([_0x3746b5],[this[_0x174cc1(0x4db)]],!0x1);if(_0x20de62(_0x4a61f8)){const {c1Prime:_0x4a6425,c2Prime:_0x50755a}=_0x4a61f8;this[_0x174cc1(0x504)](_0x4a6425[0x0]),_0x50755a[0x0][_0x174cc1(0x363)]=this[_0x174cc1(0x3ff)](),this[_0x174cc1(0x302)]();const _0x40e63f=this[_0x174cc1(0x2bb)]['createInstance'](Q,this[_0x174cc1(0x38f)],this['type'],_0x50755a[0x0],this[_0x174cc1(0x329)]);return _0x40e63f[_0x174cc1(0x479)](),_0x40e63f;}return this[_0x174cc1(0x2b8)](!0x1);}catch(_0x340277){return this[_0x174cc1(0x1b0)][_0x174cc1(0x1b3)](_0x340277),this[_0x174cc1(0x2b8)](!0x1);}}[_0xcc124c(0x3a3)](_0x5e9032){const _0x4651b3=_0xcc124c;this[_0x4651b3(0x302)]();const _0x2a0be5=this[_0x4651b3(0x1b4)][_0x4651b3(0x3dc)](this['unitID']);if(_0x5e9032['revision']<_0x2a0be5-0x1)return this;if(this[_0x4651b3(0x225)](_0x5e9032))return this[_0x4651b3(0x2bb)][_0x4651b3(0x293)](B,this[_0x4651b3(0x38f)],this[_0x4651b3(0x23d)],null,[],this[_0x4651b3(0x4db)],[],this[_0x4651b3(0x329)]);this['_incrementRevisionNumber']();const _0x36d3e4=this[_0x4651b3(0x2bb)][_0x4651b3(0x293)](pe,this[_0x4651b3(0x38f)],this[_0x4651b3(0x23d)],this[_0x4651b3(0x329)]);return _0x36d3e4['_updateLocalCache'](),_0x36d3e4;}['onRemoteRej'](_0x5161ff){const _0x574392=_0xcc124c;return this[_0x574392(0x2b8)](!!(_0x5161ff!=null&&_0x5161ff[_0x574392(0x3d7)]));}[_0xcc124c(0x2c9)](_0x3f9eca){const _0x279df6=_0xcc124c;return this['_resendTimeout']>Ys?this[_0x279df6(0x4c0)]():(this[_0x279df6(0x230)]=Gs(this[_0x279df6(0x1ac)],{'timeout':this[_0x279df6(0x1ac)],'reqId':_0x3f9eca[_0x279df6(0x1f1)]}),this[_0x279df6(0x22b)]=this[_0x279df6(0x230)][_0x279df6(0x3ac)](({reqId:_0x24ebf1,timeout:_0x571382})=>{const _0x26622a=_0x279df6;this[_0x26622a(0x301)](_0x24ebf1,_0x571382);}),this);}[_0xcc124c(0x4c0)](){const _0x351e2f=_0xcc124c;return this[_0x351e2f(0x302)](),this[_0x351e2f(0x2bb)]['createInstance'](te,this[_0x351e2f(0x38f)],this[_0x351e2f(0x23d)],this[_0x351e2f(0x4db)],[],this[_0x351e2f(0x329)]);}[_0xcc124c(0x3c0)](){return this;}[_0xcc124c(0x28b)](){const _0x2e4376=_0xcc124c;this[_0x2e4376(0x329)][_0x2e4376(0x488)](this[_0x2e4376(0x4db)]);}['_onConflict'](_0x432224){const _0xf8eff3=_0xcc124c;return this[_0xf8eff3(0x302)](),this[_0xf8eff3(0x2bb)][_0xf8eff3(0x293)](ee,this['unitID'],this[_0xf8eff3(0x23d)],this[_0xf8eff3(0x4db)],[],this[_0xf8eff3(0x329)],_0x432224);}['_resendWithTimeout'](_0x4a330b,_0x142cc6){const _0x2bcd2f=_0xcc124c;var _0xf11f14;_0x4a330b===((_0xf11f14=this['_awaitingChangeset'])==null?void 0x0:_0xf11f14[_0x2bcd2f(0x1f1)])&&(this['resend'](),this['_resendTimeout']=_0x142cc6===0x0?0x3e8:_0x142cc6*0x2);}[_0xcc124c(0x302)](){const _0x1c9201=_0xcc124c;var _0x41a4e6;(_0x41a4e6=this[_0x1c9201(0x22b)])==null||_0x41a4e6[_0x1c9201(0x35a)](),this[_0x1c9201(0x1ac)]=0x0;}};Q=_e([f(0x4,_0xa01556(_0x3064b3)),f(0x5,_0xa01556(_0x378b64)),f(0x6,_0xa01556(w)),f(0x7,_0x4ba546),f(0x8,_0x40bb6c),f(0x9,_0x279fb0),f(0xa,_0x48fa5b)],Q);let q=class extends ue{constructor(_0x4378ce,_0x197e65,_0x516929,_0x416245,_0x8041b0,_0x32dfce,_0x4dd4a6,_0x578f2b,_0xe329d9,_0xcdb95,_0x52d83,_0x51aad2,_0x122b9d){const _0x1454c2=_0xcc124c;super(_0x4378ce,_0x197e65,_0x516929,_0x416245,_0x8041b0,_0xcdb95,_0x122b9d,_0x578f2b,_0xe329d9),l(this,_0x1454c2(0x35d),_0x1454c2(0x35f)),l(this,_0x1454c2(0x1ac),0x0),l(this,'_resendTimer'),l(this,'_sender'),(this[_0x1454c2(0x2bb)]=_0x4dd4a6,this[_0x1454c2(0x1b0)]=_0x52d83,this['_transformService']=_0x51aad2,_0x32dfce&&(this[_0x1454c2(0x230)]=_0x32dfce,this[_0x1454c2(0x22b)]=this['_resendTimer']['subscribe'](({reqId:_0x3f2015,timeout:_0x2c12ba})=>{const _0x5130f9=_0x1454c2;this[_0x5130f9(0x301)](_0x3f2015,_0x2c12ba);})));}[_0xcc124c(0x45d)](_0x2829cf){const _0x399d24=_0xcc124c;return this[_0x399d24(0x1dc)][_0x399d24(0x4c7)](_0x2829cf),this;}['onRemoteChangeset'](_0xb88409){const _0x132f08=_0xcc124c;if(this[_0x132f08(0x225)](_0xb88409))return this[_0x132f08(0x302)](),this[_0x132f08(0x2bb)]['createInstance'](B,this[_0x132f08(0x38f)],this['type'],this['_awaitingChangeset'],this[_0x132f08(0x1dc)],null,[_0xb88409],this[_0x132f08(0x329)]);try{const _0x28ff70=this[_0x132f08(0x4bb)][_0x132f08(0x285)]([_0xb88409],[this[_0x132f08(0x4db)]],!0x1);if(_0x20de62(_0x28ff70)){const {c1Prime:_0x334871,c2Prime:_0x497f90}=_0x28ff70,_0x5fab8c=this[_0x132f08(0x4bb)][_0x132f08(0x1e2)](_0x334871[0x0],this[_0x132f08(0x1dc)]);if(_0x4a7660(_0x5fab8c)){const {c1Prime:_0x1241f9,m2Prime:_0x1fe4ab}=_0x5fab8c;return this[_0x132f08(0x504)](_0x1241f9),_0x497f90[0x0][_0x132f08(0x363)]=this[_0x132f08(0x3ff)](),this['_clearScheduledTask'](),this[_0x132f08(0x2bb)][_0x132f08(0x293)](q,this[_0x132f08(0x38f)],this['type'],_0x497f90[0x0],_0x1fe4ab,this[_0x132f08(0x329)],void 0x0);}throw _0x5fab8c['error'];}throw _0x28ff70[_0x132f08(0x1b3)];}catch(_0x22d3d9){return this[_0x132f08(0x1b0)][_0x132f08(0x1b3)](_0x22d3d9),this[_0x132f08(0x2b8)](!0x1);}}[_0xcc124c(0x3a3)](_0x5d5a86){const _0x5e37bf=_0xcc124c;if(this[_0x5e37bf(0x302)](),this[_0x5e37bf(0x225)](_0x5d5a86))return this[_0x5e37bf(0x2bb)][_0x5e37bf(0x293)](B,this['unitID'],this[_0x5e37bf(0x23d)],null,this[_0x5e37bf(0x1dc)],this[_0x5e37bf(0x4db)],[],this[_0x5e37bf(0x329)]);this[_0x5e37bf(0x1f4)]();const _0x221bfb=this[_0x5e37bf(0x2bb)][_0x5e37bf(0x293)](X,this[_0x5e37bf(0x38f)],this[_0x5e37bf(0x23d)],this[_0x5e37bf(0x1dc)],this[_0x5e37bf(0x329)]);return _0x221bfb[_0x5e37bf(0x441)](),_0x221bfb[_0x5e37bf(0x479)](),_0x221bfb;}[_0xcc124c(0x501)](_0x56d1f3){const _0x163a32=_0xcc124c;return this[_0x163a32(0x2b8)](!!(_0x56d1f3!=null&&_0x56d1f3['isPermissionRej']));}[_0xcc124c(0x2c9)](_0x8b9eb3){const _0x3ada66=_0xcc124c;return this[_0x3ada66(0x1ac)]>Ys?this[_0x3ada66(0x4c0)]():(this[_0x3ada66(0x230)]=Gs(this[_0x3ada66(0x1ac)],{'timeout':this['_resendTimeout'],'reqId':_0x8b9eb3['reqId']}),this[_0x3ada66(0x22b)]=this[_0x3ada66(0x230)][_0x3ada66(0x3ac)](({reqId:_0x390747,timeout:_0x349d8d})=>{const _0x2dfc0e=_0x3ada66;this[_0x2dfc0e(0x301)](_0x390747,_0x349d8d);}),this);}[_0xcc124c(0x4c0)](){const _0x10d68f=_0xcc124c;return this[_0x10d68f(0x302)](),this[_0x10d68f(0x2bb)][_0x10d68f(0x293)](te,this['unitID'],this[_0x10d68f(0x23d)],this[_0x10d68f(0x4db)],this[_0x10d68f(0x1dc)],this[_0x10d68f(0x329)]);}[_0xcc124c(0x3c0)](){return this;}['resend'](){const _0x25ba37=_0xcc124c;this[_0x25ba37(0x329)]['onSendChangeset'](this['_awaitingChangeset']);}[_0xcc124c(0x2b8)](_0x42e92d){const _0x47c072=_0xcc124c;return this[_0x47c072(0x302)](),this['_injector']['createInstance'](ee,this[_0x47c072(0x38f)],this[_0x47c072(0x23d)],null,this[_0x47c072(0x1dc)],this[_0x47c072(0x329)],_0x42e92d);}[_0xcc124c(0x301)](_0x2df2a8,_0x595029){const _0x3af481=_0xcc124c;var _0x532b74;_0x2df2a8===((_0x532b74=this[_0x3af481(0x4db)])==null?void 0x0:_0x532b74['reqId'])&&(this[_0x3af481(0x28b)](),this[_0x3af481(0x1ac)]=_0x595029===0x0?0x3e8:_0x595029*0x2);}[_0xcc124c(0x302)](){const _0x18adef=_0xcc124c;var _0x5a9d44;(_0x5a9d44=this[_0x18adef(0x22b)])==null||_0x5a9d44[_0x18adef(0x35a)](),this['_resendTimeout']=0x0;}};q=_e([f(0x6,_0xa01556(_0x3064b3)),f(0x7,_0xa01556(_0x378b64)),f(0x8,_0xa01556(w)),f(0x9,_0x4ba546),f(0xa,_0x40bb6c),f(0xb,_0x279fb0),f(0xc,_0x48fa5b)],q);let ee=class extends ue{constructor(_0x2e0fdc,_0x1fde66,_0x596d0d,_0x2edb29,_0x54053a,_0xbd453b=!0x1,_0x5bc2bf,_0x588f9f,_0x47388a,_0x349e70,_0x3203fd,_0x1f701d,_0x23309b){const _0x5e3dba=_0xcc124c;super(_0x2e0fdc,_0x1fde66,_0x596d0d,_0x2edb29,_0x54053a,_0x588f9f,_0x47388a,_0x3203fd,_0x349e70),l(this,_0x5e3dba(0x35d),_0x5e3dba(0x507)),(this[_0x5e3dba(0x30a)]=_0xbd453b,this[_0x5e3dba(0x303)]=_0x5bc2bf,this[_0x5e3dba(0x51c)]=_0x1f701d,this['_notificationService']=_0x23309b,this[_0x5e3dba(0x4ce)](),this[_0x5e3dba(0x437)](),this[_0x5e3dba(0x2cd)]());}['appendMutation'](){return this;}[_0xcc124c(0x321)](){return this;}['onRemoteAck'](){return this;}[_0xcc124c(0x501)](){return this;}[_0xcc124c(0x2c9)](){return this;}[_0xcc124c(0x4c0)](){return this;}[_0xcc124c(0x3c0)](){return this;}['resend'](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0xcc124c(0x437)](){const _0x155f2c=_0xcc124c;this[_0x155f2c(0x2ed)][_0x155f2c(0x4ec)](this[_0x155f2c(0x38f)],this[_0x155f2c(0x23d)],null,[]);}[_0xcc124c(0x4ce)](){const _0x3e76a4=_0xcc124c;this[_0x3e76a4(0x30a)]?this[_0x3e76a4(0x32c)]['show']({'title':this[_0x3e76a4(0x51c)]['t'](_0x3e76a4(0x318)),'content':this[_0x3e76a4(0x51c)]['t'](_0x3e76a4(0x2e6)),'type':_0x3e76a4(0x1b3),'duration':0x0}):this[_0x3e76a4(0x32c)]['show']({'title':this[_0x3e76a4(0x51c)]['t']('conflict.title'),'content':this[_0x3e76a4(0x51c)]['t'](_0x3e76a4(0x2d3)),'type':_0x3e76a4(0x1b3),'duration':0x0});}[_0xcc124c(0x2cd)](){const _0x107fca=_0xcc124c;this['_permissionService'][_0x107fca(0x201)](new _0x5577c9(this[_0x107fca(0x38f)])['id'],!0x1);}};ee=_e([f(0x6,_0xa01556(_0x5e2e27)),f(0x7,_0x4ba546),f(0x8,_0x48fa5b),f(0x9,_0xa01556(w)),f(0xa,_0xa01556(_0x378b64)),f(0xb,_0xa01556(_0x991281)),f(0xc,_0x1e71dd)],ee);let te=class extends ue{constructor(_0x521f0e,_0x128932,_0x278fd9,_0x5878e9,_0x5c5b30,_0x57cb49,_0xccade9,_0x3ce676,_0x585106,_0x180054){const _0x2917f5=_0xcc124c;super(_0x521f0e,_0x128932,_0x278fd9,_0x5878e9,_0x5c5b30,_0x585106,_0x180054,_0xccade9,_0x3ce676),l(this,_0x2917f5(0x35d),_0x2917f5(0x448)),this[_0x2917f5(0x2bb)]=_0x57cb49;}[_0xcc124c(0x45d)](_0x3508ad){const _0xe192a0=_0xcc124c;return this[_0xe192a0(0x1dc)][_0xe192a0(0x4c7)](_0x3508ad),this[_0xe192a0(0x479)](),this;}[_0xcc124c(0x321)](_0x14f3e9){const _0x4c3422=_0xcc124c;throw new Error(_0x4c3422(0x47b));}[_0xcc124c(0x3a3)](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){const _0x27beb4=_0xcc124c;throw new Error(_0x27beb4(0x2e8));}[_0xcc124c(0x2c9)](){return this;}[_0xcc124c(0x4c0)](){return this;}[_0xcc124c(0x3c0)](){const _0x41b2cf=_0xcc124c,{_injector:_0x295a7d,_pendingMutations:_0x555253,_awaitingChangeset:_0x1a7a86,unitID:_0x94a649,_handler:_0x27e09e,type:_0x40b8c0}=this,_0x44d2d1=Ks(_0x295a7d,_0x94a649,_0x40b8c0,_0x1a7a86,_0x555253,_0x27e09e);return _0x44d2d1 instanceof X?_0x44d2d1['_schedule']():(_0x44d2d1 instanceof q||_0x44d2d1 instanceof Q)&&_0x44d2d1[_0x41b2cf(0x28b)](),_0x44d2d1;}['resend'](){const _0x5bd374=_0xcc124c;throw new Error(_0x5bd374(0x282));}};te=_e([f(0x5,_0xa01556(_0x3064b3)),f(0x6,_0xa01556(_0x378b64)),f(0x7,_0xa01556(w)),f(0x8,_0x4ba546),f(0x9,_0x48fa5b)],te);let B=class extends ue{constructor(_0x3c5d42,_0x3d0f9a,_0x39b547,_0x23e683,_0x4088c9,_0x5b7324,_0x15b722,_0x37c288,_0x35dd46,_0x342e0a,_0x11fa87,_0x564d56,_0x2bcbaa,_0x2a0428){const _0x26affa=_0xcc124c;super(_0x3c5d42,_0x3d0f9a,_0x39b547,_0x23e683,_0x15b722,_0x564d56,_0x2bcbaa,_0x35dd46,_0x342e0a),l(this,'status',_0x26affa(0x1db)),(this[_0x26affa(0x40c)]=_0x4088c9,this[_0x26affa(0x228)]=_0x5b7324,this[_0x26affa(0x2bb)]=_0x37c288,this['_logService']=_0x11fa87,this['_transformService']=_0x2a0428);}[_0xcc124c(0x2c8)](_0x41c5c3){const _0x2e5227=_0xcc124c;try{const _0x49e026=[..._0x41c5c3,...this['_queuedRemoteChangesets']],_0x3d7d3f=[this[_0x2e5227(0x4db)]||this['_acknowledgedAwaitingChangeset']][_0x2e5227(0x4e3)](_0x56f407=>!!_0x56f407);let _0x5e915c,_0x2a0c99;if(_0x3d7d3f[_0x2e5227(0x236)]){const _0x3c973e=this[_0x2e5227(0x4bb)][_0x2e5227(0x285)](_0x49e026,_0x3d7d3f,!0x1);if(!_0x20de62(_0x3c973e))throw _0x3c973e[_0x2e5227(0x1b3)];_0x5e915c=_0x3c973e[_0x2e5227(0x245)],_0x2a0c99=_0x3c973e[_0x2e5227(0x1bf)];}else _0x5e915c=_0x49e026,_0x2a0c99=[];let _0x1e637f=this[_0x2e5227(0x1dc)];_0x5e915c[_0x2e5227(0x3d5)](_0x11e70a=>{const _0x3c280e=_0x2e5227;let _0x35a756;if(_0x1e637f['length']){const _0x5c58c2=this[_0x3c280e(0x4bb)][_0x3c280e(0x1e2)](_0x11e70a,_0x1e637f);if(!_0x4a7660(_0x5c58c2))throw _0x5c58c2[_0x3c280e(0x1b3)];_0x35a756=_0x5c58c2[_0x3c280e(0x245)],_0x1e637f=_0x5c58c2[_0x3c280e(0x4f3)];}else _0x35a756=_0x11e70a;this['_executeRemoteChangeset'](_0x35a756);}),this[_0x2e5227(0x40c)]&&this[_0x2e5227(0x1f4)](),this[_0x2e5227(0x4db)]&&_0x2a0c99[_0x2e5227(0x236)]&&(_0x2a0c99[0x0]['baseRev']=this[_0x2e5227(0x3ff)]());let _0x2df495;if(this[_0x2e5227(0x4db)]&&_0x1e637f['length']!==0x0)_0x2df495=this[_0x2e5227(0x2bb)]['createInstance'](q,this[_0x2e5227(0x38f)],this[_0x2e5227(0x23d)],_0x2a0c99[0x0],_0x1e637f,this[_0x2e5227(0x329)],void 0x0);else{if(this['_awaitingChangeset']&&_0x1e637f[_0x2e5227(0x236)]===0x0)_0x2a0c99[0x0][_0x2e5227(0x363)]=this[_0x2e5227(0x3ff)](),_0x2df495=this[_0x2e5227(0x2bb)][_0x2e5227(0x293)](Q,this[_0x2e5227(0x38f)],this[_0x2e5227(0x23d)],_0x2a0c99[0x0],this[_0x2e5227(0x329)]);else{if(_0x1e637f[_0x2e5227(0x236)]!==0x0){const _0x2e24b9=this[_0x2e5227(0x2bb)]['createInstance'](X,this[_0x2e5227(0x38f)],this[_0x2e5227(0x23d)],_0x1e637f,this[_0x2e5227(0x329)]);_0x2e24b9[_0x2e5227(0x441)](),_0x2df495=_0x2e24b9;}else _0x2df495=this[_0x2e5227(0x2bb)]['createInstance'](pe,this['unitID'],this[_0x2e5227(0x23d)],this[_0x2e5227(0x329)]);}}return _0x2df495[_0x2e5227(0x479)](),_0x2df495;}catch(_0x30dcb8){return this[_0x2e5227(0x1b0)]['error'](_0x2e5227(0x1b8),_0x2e5227(0x503),_0x30dcb8),this[_0x2e5227(0x2bb)][_0x2e5227(0x293)](ee,this[_0x2e5227(0x38f)],this[_0x2e5227(0x23d)],this['_awaitingChangeset'],this[_0x2e5227(0x1dc)],this[_0x2e5227(0x329)],!0x1);}}[_0xcc124c(0x28b)](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}['appendMutation'](_0x30877c){const _0x4e1aba=_0xcc124c;return this[_0x4e1aba(0x1dc)]['push'](_0x30877c),this;}[_0xcc124c(0x321)](_0x1f0a92){const _0x7b3f0f=_0xcc124c;return this[_0x7b3f0f(0x228)]['push'](_0x1f0a92),this;}[_0xcc124c(0x3a3)](_0x20a21a){const _0x22e19b=_0xcc124c;if(this['_awaitingChangeset'])return this[_0x22e19b(0x40c)]=this[_0x22e19b(0x4db)],this['_awaitingChangeset']=null,this;throw new Error(_0x22e19b(0x51b));}[_0xcc124c(0x501)](_0x4e51ee){const _0x3cacc0=_0xcc124c;return this[_0x3cacc0(0x2b8)](!!(_0x4e51ee!=null&&_0x4e51ee[_0x3cacc0(0x3d7)]));}[_0xcc124c(0x2c9)](){return this;}['toggleOffline'](){const _0x39200a=_0xcc124c;return this[_0x39200a(0x2bb)]['createInstance'](te,this[_0x39200a(0x38f)],this[_0x39200a(0x23d)],this[_0x39200a(0x4db)],this['_pendingMutations'],this[_0x39200a(0x329)]);}['toggleOnline'](){return this;}[_0xcc124c(0x2b8)](_0x34096c){const _0x38aa23=_0xcc124c;return this[_0x38aa23(0x2bb)][_0x38aa23(0x293)](ee,this[_0x38aa23(0x38f)],this['type'],this[_0x38aa23(0x4db)],this[_0x38aa23(0x1dc)],this[_0x38aa23(0x329)],_0x34096c);}};B=_e([f(0x7,_0xa01556(_0x3064b3)),f(0x8,_0xa01556(_0x378b64)),f(0x9,_0xa01556(w)),f(0xa,_0x40bb6c),f(0xb,_0x4ba546),f(0xc,_0x48fa5b),f(0xd,_0x279fb0)],B);function Ks(_0x55bd17,_0x19a518,_0x49d76c,_0x39c020,_0x21ffdd,_0x1ade23){const _0x20b2bf=_0xcc124c;return _0x39c020&&_0x21ffdd['length']?_0x55bd17[_0x20b2bf(0x293)](q,_0x19a518,_0x49d76c,_0x39c020,_0x21ffdd,_0x1ade23,void 0x0):_0x39c020?_0x55bd17[_0x20b2bf(0x293)](Q,_0x19a518,_0x49d76c,_0x39c020,_0x1ade23):_0x21ffdd[_0x20b2bf(0x236)]?_0x55bd17['createInstance'](X,_0x19a518,_0x49d76c,_0x21ffdd,_0x1ade23):_0x55bd17[_0x20b2bf(0x293)](pe,_0x19a518,_0x49d76c,_0x1ade23);}var Dr=Object['defineProperty'],wr=Object[_0xcc124c(0x3f2)],Wt=(_0x7fa6a3,_0x36632a,_0x2c7d7c,_0x36e7ce)=>{const _0x18dd75=_0xcc124c;for(var _0x1892c2=_0x36e7ce>0x1?void 0x0:_0x36e7ce?wr(_0x36632a,_0x2c7d7c):_0x36632a,_0x2c7e60=_0x7fa6a3[_0x18dd75(0x236)]-0x1,_0x1b4833;_0x2c7e60>=0x0;_0x2c7e60--)(_0x1b4833=_0x7fa6a3[_0x2c7e60])&&(_0x1892c2=(_0x36e7ce?_0x1b4833(_0x36632a,_0x2c7d7c,_0x1892c2):_0x1b4833(_0x1892c2))||_0x1892c2);return _0x36e7ce&&_0x1892c2&&Dr(_0x36632a,_0x2c7d7c,_0x1892c2),_0x1892c2;},p=(_0x464397,_0x9ba729)=>(_0x23e598,_0x237d5b)=>_0x9ba729(_0x23e598,_0x237d5b,_0x464397);let qe=class extends _0xb64757{constructor(_0x26c3b5,_0x1b2f1a,_0x30ca76,_0x51da28,_0x33b202,_0x29a6c5,_0x19ed2e,_0x5257c7,_0x1952fd,_0x4e9025,_0x2c159c,_0x1ab0cb,_0x42a91c){const _0x384d1d=_0xcc124c;super(),l(this,_0x384d1d(0x22e),new _0x3708bc(null)),l(this,_0x384d1d(0x221),this['_state$']['asObservable']()),l(this,'_state'),l(this,_0x384d1d(0x217),!0x1),l(this,'_changesetSessionId',''),l(this,_0x384d1d(0x1c3),0x0),l(this,'status$',this[_0x384d1d(0x221)][_0x384d1d(0x4f2)](_0x1706c3(_0x1fe81b=>_0x1fe81b?_0x1fe81b[_0x384d1d(0x35d)]:P[_0x384d1d(0x1d8)]),_0x1748c0(0x1))),l(this,'_transitionLocked',!0x1),l(this,_0x384d1d(0x1c5),[]),(this['unitID']=_0x26c3b5,this[_0x384d1d(0x428)]=_0x1b2f1a,this[_0x384d1d(0x46c)]=_0x30ca76,this['_injector']=_0x51da28,this[_0x384d1d(0x2ed)]=_0x33b202,this[_0x384d1d(0x2ab)]=_0x29a6c5,this['_localeService']=_0x19ed2e,this['_revisionService']=_0x5257c7,this[_0x384d1d(0x1b0)]=_0x1952fd,this[_0x384d1d(0x232)]=_0x4e9025,this['_messageService']=_0x2c159c,this[_0x384d1d(0x303)]=_0x1ab0cb,this[_0x384d1d(0x527)]=_0x42a91c);}get['state'](){const _0x4b1b2a=_0xcc124c;return this[_0x4b1b2a(0x44d)];}async[_0xcc124c(0x28f)](){if(this['state'])throw new Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this['_init']();}[_0xcc124c(0x1ed)](){const _0x5c2816=_0xcc124c;return this[_0x5c2816(0x217)]=!0x0,_0x5b34e8(()=>{const _0x148996=_0x5c2816;this[_0x148996(0x217)]=!0x1,this[_0x148996(0x25c)]();});}['_updateState'](_0x499882){const _0xe38c77=_0xcc124c;this[_0xe38c77(0x44d)]=_0x499882,this[_0xe38c77(0x22e)][_0xe38c77(0x1cf)](_0x499882);}async[_0xcc124c(0x203)](){const _0x3bee9a=_0xcc124c;var _0x5d0cf7;this['_updateState'](await this['_createInitialState']()),this['_singleActiveUnitService']&&((_0x5d0cf7=this['_singleActiveUnitService'])==null||_0x5d0cf7[_0x3bee9a(0x2e5)](this[_0x3bee9a(0x38f)]),this[_0x3bee9a(0x379)](this[_0x3bee9a(0x527)][_0x3bee9a(0x468)](this[_0x3bee9a(0x38f)])[_0x3bee9a(0x3ac)](_0x48eee1=>{const _0x14bb32=_0x3bee9a;this[_0x14bb32(0x1b0)][_0x14bb32(0x4a4)](_0x14bb32(0x39d),'editing\x20status\x20changed\x20to',_0x48eee1),_0x48eee1===Fs[_0x14bb32(0x4b6)]?(this[_0x14bb32(0x41e)]['show']({'content':this[_0x14bb32(0x51c)]['t']('collaboration.single-unit.warning'),'type':_0x41136d[_0x14bb32(0x2dc)]}),this[_0x14bb32(0x303)][_0x14bb32(0x201)](new _0x5577c9(this[_0x14bb32(0x38f)])['id'],!0x1)):this[_0x14bb32(0x303)][_0x14bb32(0x201)](new _0x5577c9(this[_0x14bb32(0x38f)])['id'],!0x0);})));let _0x259588=!0x1;return this['disposeWithMe'](this['session']['sessionStatus$']['subscribe'](_0x551a8c=>{const _0xb8fbc9=_0x3bee9a;_0x551a8c===Y[_0xb8fbc9(0x364)]?this['_toggleOnline'](_0x259588):_0x551a8c===Y['OFFLINE']&&(_0x259588=!0x0,this[_0xb8fbc9(0x3ed)]());})),this[_0x3bee9a(0x379)](this[_0x3bee9a(0x428)]['event$']['subscribe'](_0x5946fc=>{const _0x11d90e=_0x3bee9a;try{switch(_0x5946fc['eventID']){case _0x4b62d5['NEW_CHANGESETS']:{this[_0x11d90e(0x35c)](_0x3ff530(_0x5946fc[_0x11d90e(0x2a7)]));break;}case _0x4b62d5[_0x11d90e(0x4ab)]:{this['_onRemoteACK'](_0x5946fc[_0x11d90e(0x2a7)]);break;}case _0x4b62d5['CHANGESET_REJ']:{this[_0x11d90e(0x362)]();break;}case _0x4b62d5[_0x11d90e(0x385)]:{this['_onRemoteRetry'](_0x5946fc['data']);break;}case _0x4b62d5[_0x11d90e(0x296)]:{this['_onFetchMissResult'](_0x5946fc[_0x11d90e(0x2a7)][_0x11d90e(0x1ee)][_0x11d90e(0x2f3)](_0x3f31b0=>_0x3ff530(_0x3f31b0)));break;}case _0x4b62d5['PERMISSION_REJ']:this[_0x11d90e(0x362)]({'isPermissionRej':!0x0});}}catch(_0x22003a){throw console[_0x11d90e(0x1b3)](_0x11d90e(0x324),_0x22003a),_0x22003a;}})),this['_state'];}['_unlockTransition'](){const _0x10d47e=_0xcc124c;this[_0x10d47e(0x4e4)]=!0x1;}[_0xcc124c(0x289)](){const _0xeed8b9=_0xcc124c;if(this[_0xeed8b9(0x4e4)])throw new Error('[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.');this[_0xeed8b9(0x4e4)]=!0x0;}[_0xcc124c(0x1ff)](_0x4d05a4){const _0x48dad5=_0xcc124c;this[_0x48dad5(0x289)](),this[_0x48dad5(0x462)](this[_0x48dad5(0x44d)][_0x48dad5(0x45d)](_0x4d05a4)),this[_0x48dad5(0x27f)]();}['_onRemoteChangeset'](_0x3d199c){const _0x4eeed1=_0xcc124c;if(!(_0x3d199c[_0x4eeed1(0x208)]<=this[_0x4eeed1(0x1b4)][_0x4eeed1(0x3dc)](this[_0x4eeed1(0x38f)]))){if(this['_collaborationPaused']){this[_0x4eeed1(0x1c5)][_0x4eeed1(0x4c7)](_0x3d199c);return;}this[_0x4eeed1(0x251)](_0x3d199c);}}[_0xcc124c(0x25c)](){const _0x190e2c=_0xcc124c;this[_0x190e2c(0x1c5)][_0x190e2c(0x3d5)](_0x3ecc58=>this[_0x190e2c(0x251)](_0x3ecc58)),this[_0x190e2c(0x1c5)]=[];}['_applyRemoteChangeset'](_0xc1b18){const _0x147a7c=_0xcc124c,_0x3582af=this['_compressMutationService'][_0x147a7c(0x414)][_0x147a7c(0x440)](this[_0x147a7c(0x2ab)][_0x147a7c(0x414)][_0x147a7c(0x25d)]()[_0x147a7c(0x2ec)])(_0xc1b18[_0x147a7c(0x4d0)],null)||_0xc1b18[_0x147a7c(0x4d0)],_0x38f706={..._0xc1b18,'mutations':_0x3582af};this[_0x147a7c(0x289)](),this[_0x147a7c(0x462)](this[_0x147a7c(0x44d)][_0x147a7c(0x321)](_0x38f706)),this[_0x147a7c(0x27f)]();}[_0xcc124c(0x2ae)](_0x1b6665){const _0xbeee0=_0xcc124c;this[_0xbeee0(0x289)](),this[_0xbeee0(0x462)](this[_0xbeee0(0x44d)][_0xbeee0(0x3a3)](_0x1b6665)),this[_0xbeee0(0x27f)]();}[_0xcc124c(0x362)](_0x23ff53){const _0x189f10=_0xcc124c;this['_lockTransition'](),this[_0x189f10(0x462)](this['_state'][_0x189f10(0x501)](_0x23ff53)),this[_0x189f10(0x27f)]();}[_0xcc124c(0x3c9)](_0x1697ae){const _0x229b1d=_0xcc124c;this[_0x229b1d(0x289)](),this['_updateState'](this[_0x229b1d(0x44d)][_0x229b1d(0x2c9)](_0x1697ae)),this[_0x229b1d(0x27f)]();}[_0xcc124c(0x2af)](_0x395fb9){const _0x453c76=_0xcc124c;if(!(this[_0x453c76(0x44d)]instanceof B))throw new TypeError(_0x453c76(0x315));const _0x13b351=_0x395fb9['map'](_0x385af0=>{const _0x564d1e=_0x453c76,_0x4e5605=this['_compressMutationService'][_0x564d1e(0x414)][_0x564d1e(0x440)](this[_0x564d1e(0x2ab)][_0x564d1e(0x414)][_0x564d1e(0x25d)]()[_0x564d1e(0x2ec)])(_0x385af0['mutations'],null)||_0x385af0['mutations'];return{..._0x385af0,'mutations':_0x4e5605};});this[_0x453c76(0x289)](),this[_0x453c76(0x462)](this[_0x453c76(0x44d)][_0x453c76(0x2c8)](_0x13b351)),this['_unlockTransition']();}['_toggleOffline'](){const _0x258446=_0xcc124c;this[_0x258446(0x289)](),this[_0x258446(0x462)](this['_state'][_0x258446(0x4c0)]()),this[_0x258446(0x27f)]();}['_toggleOnline'](_0x21a945=!0x1){const _0x1ee302=_0xcc124c;this[_0x1ee302(0x289)](),this[_0x1ee302(0x462)](this[_0x1ee302(0x44d)][_0x1ee302(0x3c0)]()),this[_0x1ee302(0x27f)]();const _0x59c868=this[_0x1ee302(0x44d)];_0x21a945&&_0x59c868 instanceof pe&&(this[_0x1ee302(0x289)](),this[_0x1ee302(0x462)](_0x59c868[_0x1ee302(0x2d6)]()),this['_unlockTransition']());}async['_createInitialState'](){return new Promise(_0x1ae933=>{const _0x438fc8=_0x293d;this[_0x438fc8(0x428)]['sessionStatus$']['pipe'](_0x13b589(0x1))[_0x438fc8(0x3ac)](async _0x2d1d67=>{const _0x5a658f=_0x438fc8;_0x1ae933(await this[_0x5a658f(0x40e)](_0x2d1d67===Y[_0x5a658f(0x364)]));});});}['_createHandler'](){const _0xf9a50=_0xcc124c,_0x42a5ab=this[_0xf9a50(0x38f)];return{'onStateChange':(_0x45fda2,_0x4c94ca)=>{const _0x34db6d=_0xf9a50;if(_0x45fda2!==this[_0x34db6d(0x44d)])throw new Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x45fda2[_0x34db6d(0x35d)]+_0x34db6d(0x4f5)+_0x4c94ca[_0x34db6d(0x35d)]+_0x34db6d(0x276)+this[_0x34db6d(0x44d)][_0x34db6d(0x35d)]);this[_0x34db6d(0x462)](_0x4c94ca);},'onSendChangeset':_0x321a85=>{const _0x339e0d=_0xf9a50;_0x321a85[_0x339e0d(0x50e)]||(_0x321a85[_0x339e0d(0x50e)]=this[_0x339e0d(0x4cc)],_0x321a85['reqId']=++this[_0x339e0d(0x1c3)]);const _0x17e16e={'eventID':_0x4b62d5[_0x339e0d(0x397)],'data':{'unitID':_0x321a85[_0x339e0d(0x38f)],'unitType':this['_type'],'changeset':_0x321a85,'memberID':this[_0x339e0d(0x428)][_0x339e0d(0x534)]()}};this[_0x339e0d(0x428)][_0x339e0d(0x27e)](_0x17e16e,this[_0x339e0d(0x38f)]);},'onMissingChangesets':({from:_0x1bcc47,to:_0x3c9d6d})=>{const _0x386aa9=_0xf9a50;this['_logService'][_0x386aa9(0x4a4)]('[CollaborationEntity]',_0x386aa9(0x1fe)+_0x1bcc47+_0x386aa9(0x2c3)+_0x3c9d6d);const _0x5204e0={'eventID':_0x4b62d5[_0x386aa9(0x24e)],'data':{'unitID':_0x42a5ab,'unitType':this[_0x386aa9(0x46c)],'from':_0x1bcc47,'to':_0x3c9d6d}};this[_0x386aa9(0x428)]['send'](_0x5204e0,this[_0x386aa9(0x38f)]);}};}async[_0xcc124c(0x40e)](_0x5164e9){const _0x1271cb=_0xcc124c;var _0x14ef4c,_0x5e3e9b;const _0x2e9624=await this[_0x1271cb(0x2ed)][_0x1271cb(0x42a)](this[_0x1271cb(0x38f)]),_0x886159=(_0x14ef4c=_0x2e9624==null?void 0x0:_0x2e9624[_0x1271cb(0x4d0)])!=null?_0x14ef4c:[],_0x4009b5=(_0x5e3e9b=_0x2e9624==null?void 0x0:_0x2e9624[_0x1271cb(0x3d1)])!=null?_0x5e3e9b:null,_0x1c2e91=!!(_0x4009b5!=null&&_0x4009b5[_0x1271cb(0x50e)])&&!!(_0x4009b5!=null&&_0x4009b5[_0x1271cb(0x1f1)]);this[_0x1271cb(0x4cc)]=_0x1c2e91?_0x4009b5[_0x1271cb(0x50e)]:or(),this['_changesetReqId']=_0x1c2e91?_0x4009b5['reqId']:0x0;const _0x15900e=this['unitID'];try{this[_0x1271cb(0x2a5)](_0x4009b5,_0x886159);}catch(_0x421040){this[_0x1271cb(0x1b0)][_0x1271cb(0x1b3)](_0x421040);}const _0x35a7a8=this[_0x1271cb(0x206)]();if(_0x5164e9){const _0x489f88=Ks(this['_injector'],_0x15900e,this[_0x1271cb(0x46c)],_0x4009b5,_0x886159,_0x35a7a8);return _0x489f88 instanceof X?_0x489f88[_0x1271cb(0x441)]():(_0x489f88 instanceof q||_0x489f88 instanceof Q)&&_0x489f88[_0x1271cb(0x28b)](),_0x489f88;}return this[_0x1271cb(0x2bb)][_0x1271cb(0x293)](te,_0x15900e,this[_0x1271cb(0x46c)],_0x4009b5,_0x886159,_0x35a7a8);}[_0xcc124c(0x2a5)](_0x48179e,_0x347cac){const _0x55e083=_0xcc124c;var _0x3f7a68,_0x5489d2;const _0x3212cd=this[_0x55e083(0x2ab)]['interceptor'][_0x55e083(0x440)](this[_0x55e083(0x2ab)][_0x55e083(0x414)]['getInterceptPoints']()[_0x55e083(0x2ec)]);(_0x3f7a68=_0x3212cd((_0x48179e==null?void 0x0:_0x48179e[_0x55e083(0x4d0)])||[],null))==null||_0x3f7a68[_0x55e083(0x3d5)](_0x1afb8d=>this[_0x55e083(0x232)][_0x55e083(0x49c)](_0x1afb8d['id'],_0x1afb8d[_0x55e083(0x20f)])),(_0x5489d2=_0x3212cd(_0x347cac||[],null))==null||_0x5489d2[_0x55e083(0x3d5)](_0x259055=>this['_commandService'][_0x55e083(0x49c)](_0x259055['id'],_0x259055[_0x55e083(0x20f)]));}};qe=Wt([p(0x3,_0xa01556(_0x3064b3)),p(0x4,_0xa01556(w)),p(0x5,_0xa01556(_0x19192a)),p(0x6,_0xa01556(_0x991281)),p(0x7,_0xa01556(_0x378b64)),p(0x8,_0x40bb6c),p(0x9,_0x4ba546),p(0xa,_0x354bae),p(0xb,_0x5e2e27),p(0xc,_0x18dda4(tt))],qe);let Tt=class extends qe{constructor(_0xa19992,_0x14c611,_0x12c0fc,_0x5c8662,_0x220db1,_0x3d0fa1,_0x78ce8d,_0x910fb8,_0x108fe4,_0x4e411f,_0x2387f8,_0x514d96,_0x5a29da,_0x28729b,_0x4e202f,_0xfa0479,_0xa79711){const _0x112d17=_0xcc124c;super(_0xa19992,_0x12c0fc,_0x14c611,_0x5c8662,_0x220db1,_0x3d0fa1,_0x78ce8d,_0x910fb8,_0x5a29da,_0x28729b,_0x4e202f,_0xfa0479,_0xa79711),this[_0x112d17(0x38f)]=_0xa19992,this['type']=_0x14c611,this[_0x112d17(0x4a7)]=_0x108fe4,this['_docTransformIMECacheService']=_0x4e411f,this[_0x112d17(0x52c)]=_0x2387f8,this[_0x112d17(0x43a)]=_0x514d96;}[_0xcc124c(0x206)](){const _0x51e657=_0xcc124c,_0x2e41ce=super[_0x51e657(0x206)]();return _0x2e41ce[_0x51e657(0x4bd)]=_0x5d0154=>this[_0x51e657(0x2db)][_0x51e657(0x2e9)](_0x5d0154),_0x2e41ce[_0x51e657(0x4f7)]=_0x496c70=>this['_docTransformSelectionsService'][_0x51e657(0x3ef)](_0x496c70),_0x2e41ce[_0x51e657(0x4fb)]=_0x20d4c5=>this['_docSyncEditingCollabCursorService'][_0x51e657(0x531)](_0x20d4c5),_0x2e41ce[_0x51e657(0x4d1)]=_0x3ab2ac=>this['_docTransformIMECacheService'][_0x51e657(0x1ef)](_0x3ab2ac),_0x2e41ce;}async[_0xcc124c(0x203)](){const _0x53c369=_0xcc124c,_0x50c264=await super[_0x53c369(0x203)]();return this['_docStateChangeManagerService'][_0x53c369(0x1cd)][_0x53c369(0x4f2)](_0x2cf076(this['dispose$']))[_0x53c369(0x3ac)](_0x48a0b4=>{const _0x1cbbaf=_0x53c369;if(_0x48a0b4==null)return;const {unitId:_0x156539,redoState:_0x5db870,commandId:_0x2e9551}=_0x48a0b4;if(_0x156539!==this[_0x1cbbaf(0x38f)])return;const _0x50902b={'id':_0x2e9551,'type':_0x542ece[_0x1cbbaf(0x307)],'params':{'unitId':_0x156539,'actions':_0x5db870[_0x1cbbaf(0x27b)],'textRanges':null}};this[_0x1cbbaf(0x1ff)](_0x50902b);}),_0x50c264;}};Tt=Wt([p(0x3,_0xa01556(_0x3064b3)),p(0x4,_0xa01556(w)),p(0x5,_0xa01556(_0x19192a)),p(0x6,_0xa01556(_0x991281)),p(0x7,_0xa01556(_0x378b64)),p(0x8,_0xa01556(_0x5b5ef5)),p(0x9,_0xa01556(Ye)),p(0xa,_0xa01556(Xe)),p(0xb,_0xa01556(Ft)),p(0xc,_0x40bb6c),p(0xd,_0x4ba546),p(0xe,_0x354bae),p(0xf,_0x5e2e27),p(0x10,_0x18dda4(tt))],Tt);let Rt=class extends qe{constructor(_0x454896,_0x59cdf6,_0x240a56,_0x251966,_0x321749,_0x5acb0,_0x5480e2,_0x243ab2,_0x1ff6fe,_0x319f7f,_0xbe4b2a,_0xaeb7,_0xe2e54b,_0x257864){const _0x39d7e0=_0xcc124c;super(_0x454896,_0x240a56,_0x59cdf6,_0x251966,_0x321749,_0x5acb0,_0x5480e2,_0x243ab2,_0x319f7f,_0xbe4b2a,_0xaeb7,_0xe2e54b,_0x257864),this[_0x39d7e0(0x38f)]=_0x454896,this[_0x39d7e0(0x23d)]=_0x59cdf6,this[_0x39d7e0(0x216)]=_0x1ff6fe;}[_0xcc124c(0x206)](){const _0x494408=_0xcc124c,_0xed073f=super['_createHandler']();return _0xed073f[_0x494408(0x4f7)]=_0x3bd061=>this[_0x494408(0x216)]['transformSelections'](_0x3bd061),_0xed073f;}async[_0xcc124c(0x203)](){const _0x2e916e=_0xcc124c,_0x4913d1=await super[_0x2e916e(0x203)]();return this[_0x2e916e(0x379)](this[_0x2e916e(0x232)][_0x2e916e(0x3d2)]((_0x5434f5,_0x1a1e42)=>{const _0x5eecbe=_0x2e916e;if(_0x5434f5[_0x5eecbe(0x23d)]!==_0x542ece['MUTATION']||_0x1a1e42!=null&&_0x1a1e42[_0x5eecbe(0x40b)]||_0x1a1e42!=null&&_0x1a1e42[_0x5eecbe(0x4a8)])return;const _0x3aeee7=_0x5434f5[_0x5eecbe(0x20f)];if((_0x3aeee7==null?void 0x0:_0x3aeee7['unitId'])!==this['unitID'])return;const _0xfa6013=_0x5434f5,_0x792119=this['_compressMutationService'][_0x5eecbe(0x414)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x5eecbe(0x414)][_0x5eecbe(0x25d)]()['COMPRESS_MUTATION_SEND'])([_0xfa6013],null)||[_0xfa6013];this[_0x5eecbe(0x1ff)](_0x792119[0x0]);})),_0x4913d1;}};Rt=Wt([p(0x3,_0xa01556(_0x3064b3)),p(0x4,_0xa01556(w)),p(0x5,_0xa01556(_0x19192a)),p(0x6,_0xa01556(_0x991281)),p(0x7,_0xa01556(_0x378b64)),p(0x8,_0xa01556(Ke)),p(0x9,_0x40bb6c),p(0xa,_0x4ba546),p(0xb,_0x354bae),p(0xc,_0x5e2e27),p(0xd,_0x18dda4(tt))],Rt);var Pr=Object['defineProperty'],yr=Object[_0xcc124c(0x3f2)],Ur=(_0x37d827,_0x4c24f2,_0x3ddeb2,_0x298e10)=>{const _0xcbaa16=_0xcc124c;for(var _0x151de4=_0x298e10>0x1?void 0x0:_0x298e10?yr(_0x4c24f2,_0x3ddeb2):_0x4c24f2,_0x1c03f1=_0x37d827[_0xcbaa16(0x236)]-0x1,_0x4f5b3b;_0x1c03f1>=0x0;_0x1c03f1--)(_0x4f5b3b=_0x37d827[_0x1c03f1])&&(_0x151de4=(_0x298e10?_0x4f5b3b(_0x4c24f2,_0x3ddeb2,_0x151de4):_0x4f5b3b(_0x151de4))||_0x151de4);return _0x298e10&&_0x151de4&&Pr(_0x4c24f2,_0x3ddeb2,_0x151de4),_0x151de4;},_t=(_0x1dd80a,_0x3dc9c1)=>(_0x301ad5,_0x1af263)=>_0x3dc9c1(_0x301ad5,_0x1af263,_0x1dd80a);let Le=class extends _0xb64757{constructor(_0x2bb3b0,_0x4e50a8,_0x50078e){const _0x131fec=_0xcc124c;super(),l(this,_0x131fec(0x3ad),new Map()),l(this,'_entityInit$',new _0x3ca740()),(this[_0x131fec(0x2bb)]=_0x2bb3b0,this[_0x131fec(0x2d0)]=_0x4e50a8,this[_0x131fec(0x268)]=_0x50078e,this[_0x131fec(0x203)]());}[_0xcc124c(0x2e2)](){const _0x4a759d=_0xcc124c;super[_0x4a759d(0x2e2)](),this['_entities'][_0x4a759d(0x3d5)](_0x167eda=>_0x167eda[_0x4a759d(0x2e2)]()),this[_0x4a759d(0x3ad)][_0x4a759d(0x233)]();}['getCollabEntity'](_0x3a4ae4){const _0x30fd1e=_0xcc124c;var _0x148e0f;return(_0x148e0f=this[_0x30fd1e(0x3ad)]['get'](_0x3a4ae4))!=null?_0x148e0f:null;}[_0xcc124c(0x21d)](_0xb6fa7f){const _0x364877=_0xcc124c,_0x1d73f1=this['getCollabEntity'](_0xb6fa7f);return _0x1d73f1?_0x226e5d(_0x1d73f1):this[_0x364877(0x3bc)][_0x364877(0x4f2)](_0x117995(_0x1f138b=>_0x1f138b[_0x364877(0x38f)]===_0xb6fa7f));}[_0xcc124c(0x203)](){const _0x17ccde=_0xcc124c;this[_0x17ccde(0x268)][_0x17ccde(0x3b7)](_0x4eff1c[_0x17ccde(0x3e5)])['pipe'](_0x2cf076(this[_0x17ccde(0x31d)]),_0x296164(0x10))['subscribe'](async _0x1c0ed3=>{const _0x272087=_0x17ccde,_0x535e1c=_0x1c0ed3[_0x272087(0x43f)](),_0x4cc782=await this[_0x272087(0x263)](_0x535e1c,k[_0x272087(0x3e5)]);this[_0x272087(0x3ad)][_0x272087(0x4d8)](_0x535e1c,_0x4cc782);}),this[_0x17ccde(0x268)][_0x17ccde(0x3b7)](_0x4eff1c[_0x17ccde(0x215)])[_0x17ccde(0x4f2)](_0x2cf076(this[_0x17ccde(0x31d)]),_0x296164(0x10))[_0x17ccde(0x4f2)](_0x117995(_0x34df18=>!_0x34df18[_0x17ccde(0x43f)]()[_0x17ccde(0x435)]('__')))['subscribe'](async _0x17aa95=>{const _0x1c934f=_0x17ccde,_0x48c973=_0x17aa95[_0x1c934f(0x43f)](),_0x597bac=await this[_0x1c934f(0x263)](_0x48c973,k[_0x1c934f(0x215)]);this[_0x1c934f(0x3ad)][_0x1c934f(0x4d8)](_0x48c973,_0x597bac);}),_0x340e15(this[_0x17ccde(0x268)][_0x17ccde(0x43b)](_0x4eff1c[_0x17ccde(0x3e5)]),this[_0x17ccde(0x268)]['getTypeOfUnitDisposed$'](_0x4eff1c[_0x17ccde(0x215)]))['pipe'](_0x2cf076(this['dispose$']))[_0x17ccde(0x3ac)](_0x35c841=>{const _0x3feb03=_0x17ccde,_0x5f1106=_0x35c841[_0x3feb03(0x43f)](),_0x3dc6c3=this[_0x3feb03(0x3ad)]['get'](_0x5f1106);_0x3dc6c3&&(_0x3dc6c3[_0x3feb03(0x2e2)](),this[_0x3feb03(0x3ad)][_0x3feb03(0x3bd)](_0x5f1106));});}async[_0xcc124c(0x263)](_0x4deb0f,_0x182bca){const _0x18dc6f=_0xcc124c,_0xf8e8c9=await this[_0x18dc6f(0x2d0)][_0x18dc6f(0x2c7)](_0x4deb0f),_0x1b5920=this[_0x18dc6f(0x2bb)]['createInstance'](this['_getCtorByUniverType'](_0x182bca),_0x4deb0f,_0x182bca,_0xf8e8c9);return await _0x1b5920['init'](),this[_0x18dc6f(0x3bc)]['next'](_0x1b5920),_0x1b5920;}[_0xcc124c(0x496)](_0x2b53c9){const _0x577592=_0xcc124c;switch(_0x2b53c9){case k[_0x577592(0x215)]:return Tt;case k['UNIVER_SHEET']:return Rt;default:throw new Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x2b53c9);}}};Le=Ur([_t(0x0,_0xa01556(_0x3064b3)),_t(0x1,_0xa01556(he)),_t(0x2,_0x4a621b)],Le);const ms=[_0xcc124c(0x40d),_0xcc124c(0x1c0),'verdancy600','red300',_0xcc124c(0x52d),_0xcc124c(0x368)];class Gt extends _0x4dfcd2{constructor(){const _0x8277ac=_0xcc124c;super(...arguments),l(this,_0x8277ac(0x476),new Map()),l(this,_0x8277ac(0x489),0x0);}[_0xcc124c(0x481)](_0x589239){const _0x31f4da=_0xcc124c;if(this[_0x31f4da(0x476)][_0x31f4da(0x449)](_0x589239))return this[_0x31f4da(0x476)]['get'](_0x589239);const _0xa5839=ms[this['_colorIndex']];return this[_0x31f4da(0x489)]=(this[_0x31f4da(0x489)]+0x1)%ms[_0x31f4da(0x236)],this[_0x31f4da(0x476)][_0x31f4da(0x4d8)](_0x589239,_0xa5839),_0xa5839;}}var Nr=Object[_0xcc124c(0x2ad)],Mr=Object[_0xcc124c(0x3f2)],Ar=(_0x29a980,_0x26a70a,_0xc22cab,_0x39b28b)=>{const _0x50ee1b=_0xcc124c;for(var _0x1eca2f=_0x39b28b>0x1?void 0x0:_0x39b28b?Mr(_0x26a70a,_0xc22cab):_0x26a70a,_0x4e6895=_0x29a980[_0x50ee1b(0x236)]-0x1,_0x172fdb;_0x4e6895>=0x0;_0x4e6895--)(_0x172fdb=_0x29a980[_0x4e6895])&&(_0x1eca2f=(_0x39b28b?_0x172fdb(_0x26a70a,_0xc22cab,_0x1eca2f):_0x172fdb(_0x1eca2f))||_0x1eca2f);return _0x39b28b&&_0x1eca2f&&Nr(_0x26a70a,_0xc22cab,_0x1eca2f),_0x1eca2f;},ie=(_0x5c532f,_0x156a2c)=>(_0xfa6b8a,_0x182cb4)=>_0x156a2c(_0xfa6b8a,_0x182cb4,_0x5c532f);const Lr=0x12c,$r=0x64;let Ot=class extends _0xb64757{constructor(_0x48b80f,_0x2c66cb,_0x567b16,_0x657919,_0x413443,_0x31b69b,_0x26ebbd,_0x127371,_0x33f638){const _0x40ea60=_0xcc124c;super(),l(this,_0x40ea60(0x529),!0x1),l(this,_0x40ea60(0x203),!0x1),l(this,_0x40ea60(0x313),new _0x3708bc(new Map())),l(this,_0x40ea60(0x34d),this[_0x40ea60(0x313)][_0x40ea60(0x407)]()),l(this,'_roomMembers$',new _0x3708bc([])),l(this,_0x40ea60(0x2ee),this[_0x40ea60(0x465)][_0x40ea60(0x4f2)](_0x218b65(Lr))),l(this,'_updateLocalCursor',_0x1c12c5(_0x523708=>{const _0xe2c93d=_0x40ea60,_0x72287={'eventID':_0x4b62d5[_0xe2c93d(0x340)],'data':{'unitID':this[_0xe2c93d(0x38f)],'memberID':this[_0xe2c93d(0x401)][_0xe2c93d(0x534)](),'selection':Ws(_0x523708)}};this['_session'][_0xe2c93d(0x27e)](_0x72287,this[_0xe2c93d(0x38f)]);},$r)),(this['unitID']=_0x48b80f,this[_0x40ea60(0x401)]=_0x2c66cb,this[_0x40ea60(0x2bb)]=_0x567b16,this[_0x40ea60(0x456)]=_0x657919,this['_memberService']=_0x413443,this[_0x40ea60(0x32b)]=_0x31b69b,this[_0x40ea60(0x4bb)]=_0x26ebbd,this[_0x40ea60(0x268)]=_0x127371,this[_0x40ea60(0x232)]=_0x33f638);}get[_0xcc124c(0x247)](){const _0x29b7c8=_0xcc124c;return this[_0x29b7c8(0x313)][_0x29b7c8(0x24c)]();}get[_0xcc124c(0x3a1)](){const _0xebea51=_0xcc124c;return this[_0xebea51(0x465)]['getValue']();}['dispose'](){const _0x1571c7=_0xcc124c;super[_0x1571c7(0x2e2)](),this[_0x1571c7(0x313)][_0x1571c7(0x1cf)](new Map()),this[_0x1571c7(0x313)][_0x1571c7(0x492)](),this[_0x1571c7(0x465)][_0x1571c7(0x1cf)]([]),this[_0x1571c7(0x465)][_0x1571c7(0x492)]();}[_0xcc124c(0x28f)](){const _0x157ea8=_0xcc124c;this[_0x157ea8(0x203)]||(this[_0x157ea8(0x203)]=!0x0,this[_0x157ea8(0x401)]['sessionStatus$'][_0x157ea8(0x4f2)](_0x2cf076(this[_0x157ea8(0x31d)]))['subscribe'](_0x5a2549=>{const _0x574519=_0x157ea8;_0x5a2549===Y[_0x574519(0x364)]?this[_0x574519(0x22a)]():this[_0x574519(0x3ed)]();}),this[_0x157ea8(0x401)][_0x157ea8(0x2b5)][_0x157ea8(0x4f2)](_0x2cf076(this['dispose$']))[_0x157ea8(0x3ac)](_0x5eeaad=>{const _0x309420=_0x157ea8,_0x587a60=_0x5eeaad[_0x309420(0x346)];_0x587a60===_0x4b62d5[_0x309420(0x340)]&&this['_onCursorUpdate'](_0x5eeaad),_0x587a60===_0x4b62d5[_0x309420(0x3e3)]&&this[_0x309420(0x353)](_0x5eeaad);}),this[_0x157ea8(0x379)](this['_commandService'][_0x157ea8(0x3d2)](_0x3adf70=>{const _0x4e91bf=_0x157ea8,_0x16bb9e=_0x3adf70[_0x4e91bf(0x20f)];_0x16bb9e!=null&&this[_0x4e91bf(0x529)]&&_0x3adf70['id']===_0x321de0['id']&&_0x16bb9e[_0x4e91bf(0x49a)]===this[_0x4e91bf(0x38f)]&&_0x16bb9e[_0x4e91bf(0x3d8)]===!0x1&&this['_updateLocalCursor'](_0x16bb9e['ranges']);})),this['_syncEditingCollabCursorService']['collabCursorState$'][_0x157ea8(0x4f2)](_0x2cf076(this[_0x157ea8(0x31d)]))[_0x157ea8(0x3ac)](_0x5b82ba=>{const _0x976675=_0x157ea8;if((_0x5b82ba==null?void 0x0:_0x5b82ba[_0x976675(0x38f)])!==this[_0x976675(0x38f)])return;const _0x24b016={'eventID':_0x4b62d5['UPDATE_CURSOR'],'data':_0x5b82ba};this[_0x976675(0x2e1)](_0x24b016);}),this[_0x157ea8(0x379)](this['_commandService'][_0x157ea8(0x3d2)](_0x31b04e=>{const _0x2af373=_0x157ea8;if(_0x31b04e[_0x2af373(0x20f)]==null)return;const _0x22eb12=_0x31b04e[_0x2af373(0x20f)];if(_0x31b04e['id']!==_0xba5740['id']||_0x22eb12[_0x2af373(0x49a)]!==this[_0x2af373(0x38f)])return;const _0x418b4c={'id':_0x2af373(0x4d6),'params':_0x22eb12},_0x5099f8=this['cursorInfo'];for(const [_0x4db27b,_0x5b5884]of _0x5099f8){const _0x38c29d={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x2af373(0x38f)],'actions':null,'textRanges':_0x5b5884[_0x2af373(0x39c)]}},_0x3d4e21=this[_0x2af373(0x4bb)][_0x2af373(0x509)](_0x418b4c,_0x38c29d,!0x1);if(_0xbffc4f(_0x3d4e21))throw _0x3d4e21['error'];_0x5099f8[_0x2af373(0x4d8)](_0x4db27b,{..._0x5b5884,'ranges':_0x3d4e21[_0x2af373(0x4f3)][_0x2af373(0x20f)][_0x2af373(0x2d9)]});}queueMicrotask(()=>{const _0x4973fa=_0x2af373;this['_cursorInfo$'][_0x4973fa(0x1cf)](_0x5099f8);});})));}['_onCursorUpdate'](_0x1535a7){const _0x435483=_0xcc124c;var _0x2a0f90,_0x43f67e;const {memberID:_0x21a40a,selection:_0x48e517}=_0x1535a7[_0x435483(0x2a7)],_0x48d9c8=pr(_0x48e517),_0x1c9bc1=(_0x43f67e=(_0x2a0f90=this['_memberService'][_0x435483(0x1d6)](this[_0x435483(0x38f)],_0x21a40a))==null?void 0x0:_0x2a0f90[_0x435483(0x2d1)])!=null?_0x43f67e:_0x435483(0x239),_0x2a8765={'color':this[_0x435483(0x456)][_0x435483(0x481)](_0x21a40a),'name':_0x1c9bc1,'ranges':_0x48d9c8},_0x49166c=this[_0x435483(0x247)];_0x49166c['set'](_0x21a40a,_0x2a8765),this['_cursorInfo$'][_0x435483(0x1cf)](_0x49166c);}[_0xcc124c(0x353)](_0x172eaf){const _0x4886ce=_0xcc124c,{memberID:_0x18e334}=_0x172eaf[_0x4886ce(0x2a7)],_0x22d5ee=this['cursorInfo'];_0x22d5ee['delete'](_0x18e334),this[_0x4886ce(0x313)][_0x4886ce(0x1cf)](_0x22d5ee);}['_toggleOnline'](){const _0x53e26c=_0xcc124c;var _0x1b211f;if(this[_0x53e26c(0x529)]=!0x0,((_0x1b211f=this['_univerInstanceService'][_0x53e26c(0x270)]())==null?void 0x0:_0x1b211f[_0x53e26c(0x43f)]())!==this['unitID'])return;const _0xf3df95=this[_0x53e26c(0x2bb)][_0x53e26c(0x4e6)](_0x2a59c5)[_0x53e26c(0x4d2)]();Array['isArray'](_0xf3df95)&&_0xf3df95[_0x53e26c(0x236)]>0x0&&this[_0x53e26c(0x273)](_0xf3df95);}[_0xcc124c(0x3ed)](){this['_online']=!0x1;}};Ot=Ar([ie(0x2,_0xa01556(_0x3064b3)),ie(0x3,_0xa01556(Gt)),ie(0x4,_0xa01556(ce)),ie(0x5,_0xa01556(Ft)),ie(0x6,_0x279fb0),ie(0x7,_0x4a621b),ie(0x8,_0x4ba546)],Ot);var jr=Object[_0xcc124c(0x2ad)],Hr=Object[_0xcc124c(0x3f2)],xr=(_0x3821c3,_0x4eb3a5,_0x529f88,_0x4105dc)=>{for(var _0x32ea7e=_0x4105dc>0x1?void 0x0:_0x4105dc?Hr(_0x4eb3a5,_0x529f88):_0x4eb3a5,_0x155876=_0x3821c3['length']-0x1,_0x4eb337;_0x155876>=0x0;_0x155876--)(_0x4eb337=_0x3821c3[_0x155876])&&(_0x32ea7e=(_0x4105dc?_0x4eb337(_0x4eb3a5,_0x529f88,_0x32ea7e):_0x4eb337(_0x32ea7e))||_0x32ea7e);return _0x4105dc&&_0x32ea7e&&jr(_0x4eb3a5,_0x529f88,_0x32ea7e),_0x32ea7e;},fe=(_0x17cf97,_0x4d03f6)=>(_0x1e03f5,_0x1f27c6)=>_0x4d03f6(_0x1e03f5,_0x1f27c6,_0x17cf97);const kr=0x12c,Br=0x64,Vr=()=>{let _0x126106=[],_0x36d054=!0x1;return _0x4964fa=>{const _0x1e6f70=_0x293d;_0x126106[_0x1e6f70(0x4c7)](_0x4964fa),_0x36d054||(_0x36d054=!0x0,setTimeout(()=>{const _0x16fc87=_0x1e6f70;_0x126106[_0x16fc87(0x3d5)](_0x297c71=>_0x297c71()),_0x126106=[],_0x36d054=!0x1;}));};};let Dt=class extends _0xb64757{constructor(_0x27c38e,_0x3a7e24,_0x18cd8c,_0x37c7dc,_0x222076,_0x3f8866,_0x592641,_0x4d3755){const _0x5f0e50=_0xcc124c;super(),l(this,_0x5f0e50(0x529),!0x1),l(this,_0x5f0e50(0x203),!0x1),l(this,_0x5f0e50(0x313),new _0x3708bc(new Map())),l(this,_0x5f0e50(0x34d),this[_0x5f0e50(0x313)][_0x5f0e50(0x407)]()),l(this,'_roomMembers$',new _0x3708bc([])),l(this,_0x5f0e50(0x2ee),this[_0x5f0e50(0x465)]['pipe'](_0x218b65(kr))),l(this,_0x5f0e50(0x273),_0x1c12c5((_0x41f103,_0x5c859a)=>{const _0x5470e7=_0x5f0e50,_0x3fa923={'eventID':_0x4b62d5[_0x5470e7(0x340)],'data':{'unitID':this[_0x5470e7(0x38f)],'memberID':this[_0x5470e7(0x401)][_0x5470e7(0x534)](),'selection':_0x5dd5b4(_0x41f103,_0x5c859a[_0x5470e7(0x3e2)])}};this[_0x5470e7(0x401)][_0x5470e7(0x27e)](_0x3fa923,this['unitID']);},Br)),(this[_0x5f0e50(0x38f)]=_0x27c38e,this[_0x5f0e50(0x401)]=_0x3a7e24,this[_0x5f0e50(0x2bb)]=_0x18cd8c,this[_0x5f0e50(0x456)]=_0x37c7dc,this['_memberService']=_0x222076,this[_0x5f0e50(0x268)]=_0x3f8866,this[_0x5f0e50(0x232)]=_0x592641,this[_0x5f0e50(0x48c)]=_0x4d3755);}get[_0xcc124c(0x247)](){const _0x9c30ff=_0xcc124c;return this[_0x9c30ff(0x313)][_0x9c30ff(0x24c)]();}get['roomMembers'](){const _0x182cac=_0xcc124c;return this['_roomMembers$'][_0x182cac(0x24c)]();}[_0xcc124c(0x2e2)](){const _0x7551a8=_0xcc124c;super['dispose'](),this['_cursorInfo$'][_0x7551a8(0x1cf)](new Map()),this[_0x7551a8(0x313)][_0x7551a8(0x492)](),this[_0x7551a8(0x465)]['next']([]),this[_0x7551a8(0x465)][_0x7551a8(0x492)]();}['init'](){const _0x13032a=_0xcc124c;this['_init']||(this['_init']=!0x0,this['_session'][_0x13032a(0x23a)][_0x13032a(0x4f2)](_0x2cf076(this[_0x13032a(0x31d)]))[_0x13032a(0x3ac)](_0x11b8c4=>{const _0xad27f6=_0x13032a;_0x11b8c4===Y[_0xad27f6(0x364)]?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x13032a(0x401)][_0x13032a(0x2b5)][_0x13032a(0x4f2)](_0x2cf076(this[_0x13032a(0x31d)]))[_0x13032a(0x3ac)](_0x5632cc=>{const _0x21c85a=_0x13032a,_0x2591e5=_0x5632cc['eventID'];_0x2591e5===_0x4b62d5['UPDATE_CURSOR']&&this[_0x21c85a(0x2e1)](_0x5632cc),_0x2591e5===_0x4b62d5['USERS_LEAVE']&&this['_onCursorDelete'](_0x5632cc);}),this[_0x13032a(0x2f1)](),this['disposeWithMe'](this[_0x13032a(0x232)]['onCommandExecuted'](_0x5c8929=>{const _0x5c50d4=_0x13032a;if(this['_online']&&_0x5c8929['id']===_0x2ca063['id']&&_0x5c8929[_0x5c50d4(0x20f)][_0x5c50d4(0x49a)]===this[_0x5c50d4(0x38f)]){const _0x7c61ca=_0x5c8929[_0x5c50d4(0x20f)];this[_0x5c50d4(0x273)](_0x7c61ca[_0x5c50d4(0x2a6)],_0x7c61ca[_0x5c50d4(0x46d)][0x0]);}})));}[_0xcc124c(0x2e1)](_0xa80f31){const _0x449cd9=_0xcc124c;var _0x10da10,_0xaad525;const {memberID:_0x130930,selection:_0xd2b671}=_0xa80f31[_0x449cd9(0x2a7)],{sheetName:_0x2149f2,range:_0x274504}=_0xcc0d24(_0xd2b671),_0x3689a1={'name':(_0xaad525=(_0x10da10=this[_0x449cd9(0x2ca)][_0x449cd9(0x1d6)](this[_0x449cd9(0x38f)],_0x130930))==null?void 0x0:_0x10da10[_0x449cd9(0x2d1)])!=null?_0xaad525:_0x449cd9(0x239),'range':this[_0x449cd9(0x4b9)](_0x2149f2,_0x274504),'sheetID':_0x2149f2,'color':this[_0x449cd9(0x456)][_0x449cd9(0x481)](_0x130930),'selection':_0xd2b671},_0x182ee4=this[_0x449cd9(0x247)];_0x182ee4[_0x449cd9(0x4d8)](_0x130930,_0x3689a1),this[_0x449cd9(0x313)][_0x449cd9(0x1cf)](_0x182ee4);}[_0xcc124c(0x353)](_0x5c28ff){const _0x97e994=_0xcc124c,{memberID:_0x44e9b9}=_0x5c28ff[_0x97e994(0x2a7)],_0x17d5e4=this[_0x97e994(0x247)];_0x17d5e4[_0x97e994(0x3bd)](_0x44e9b9),this[_0x97e994(0x313)]['next'](_0x17d5e4);}[_0xcc124c(0x4b9)](_0x2421d4,_0x22e108){const _0x3dd432=_0xcc124c;var _0x1d2838,_0x33a8d9;const _0x28d6ff=(_0x33a8d9=(_0x1d2838=this['_univerInstanceService']['getUniverSheetInstance'](this[_0x3dd432(0x38f)]))==null?void 0x0:_0x1d2838['getSheetBySheetId'](_0x2421d4))==null?void 0x0:_0x33a8d9['getMergeData']();return(_0x28d6ff==null?void 0x0:_0x28d6ff[_0x3dd432(0x21b)](_0x1c42fa=>_0x49320b[_0x3dd432(0x42d)](_0x1c42fa,_0x22e108)))||_0x22e108;}[_0xcc124c(0x2f1)](){const _0x3d69f4=_0xcc124c,_0x3f5867=new _0x460f88(),_0x408448=Vr(),_0x12533b=()=>{const _0x31d86f=_0x293d;_0x3f5867[_0x31d86f(0x2e2)]();const _0x45e022=(_0x4a18d2,_0x1ba2ba,_0x216461,_0x2e9006)=>{const _0x182b28=_0x31d86f;let _0x1c4ae1=[];switch(_0x4a18d2['id']){case _0x6c2c57[_0x182b28(0x32f)]:{_0x1c4ae1=_0x3751c3(_0x4a18d2,_0x2e9006);break;}case _0x6c2c57[_0x182b28(0x246)]:{_0x1c4ae1=_0x37bd96(_0x4a18d2,_0x2e9006);break;}case _0x6c2c57['InsertColCommandId']:{_0x1c4ae1=_0x2065a2(_0x4a18d2,_0x2e9006);break;}case _0x6c2c57['InsertRangeMoveDownCommandId']:{_0x1c4ae1=_0x31a259(_0x4a18d2,_0x2e9006);break;}case _0x6c2c57[_0x182b28(0x388)]:{_0x1c4ae1=_0xb3c8d5(_0x4a18d2,_0x2e9006);break;}case _0x6c2c57[_0x182b28(0x2c1)]:{_0x1c4ae1=_0x30290c(_0x4a18d2,_0x2e9006);break;}case _0x6c2c57['MoveRangeCommandId']:{_0x1c4ae1=_0x18c972(_0x4a18d2,_0x2e9006);break;}case _0x6c2c57[_0x182b28(0x2fc)]:{_0x1c4ae1=_0x4e8184(_0x4a18d2,_0x2e9006);break;}case _0x6c2c57[_0x182b28(0x4ac)]:{_0x1c4ae1=_0x175627(_0x4a18d2,_0x2e9006);break;}}const _0x214769=_0x1040c2(_0x1c4ae1,_0x2e9006),_0xbad022=this[_0x182b28(0x247)][_0x182b28(0x4e6)](_0x1ba2ba);if(_0xbad022&&_0x214769){const _0x2b3d81={..._0xbad022,'range':_0x214769};this[_0x182b28(0x247)][_0x182b28(0x4d8)](_0x1ba2ba,_0x2b3d81),_0x408448(()=>{const _0x2f6b60=_0x182b28,_0x3bee75=this[_0x2f6b60(0x48c)][_0x2f6b60(0x472)](_0x214769,_0x21e66d=>(_0x3bee75[_0x2f6b60(0x2e2)](),_0x45e022(_0x21e66d,_0x1ba2ba,_0x216461,_0x214769)));_0x3f5867[_0x2f6b60(0x266)](_0x3bee75);});}return{'redos':[],'undos':[]};};this[_0x31d86f(0x247)][_0x31d86f(0x3d5)]((_0x4b4435,_0x537a0a)=>{const _0x394e4d=_0x31d86f,{range:_0x39f5db,sheetID:_0x4ca9ef}=_0x4b4435,_0x234c75=this[_0x394e4d(0x48c)][_0x394e4d(0x472)](_0x39f5db,_0x1e0109=>(_0x234c75['dispose'](),_0x45e022(_0x1e0109,_0x537a0a,_0x4ca9ef,_0x39f5db)));_0x3f5867[_0x394e4d(0x266)](_0x234c75);});};this[_0x3d69f4(0x379)](_0x5b34e8(this['_cursorInfo$'][_0x3d69f4(0x3ac)](()=>{_0x12533b();})));}[_0xcc124c(0x22a)](){const _0x4bc210=_0xcc124c;var _0x1110ad,_0x260e58;if(this[_0x4bc210(0x529)]=!0x0,((_0x1110ad=this[_0x4bc210(0x268)][_0x4bc210(0x270)]())==null?void 0x0:_0x1110ad[_0x4bc210(0x43f)]())!==this['unitID'])return;const _0xed292e=(_0x260e58=this[_0x4bc210(0x2bb)]['get'](_0x5c2add)['getCurrentSelections']())==null?void 0x0:_0x260e58[0x0],_0x3e0240=this[_0x4bc210(0x268)]['getCurrentUnitForType'](_0x4eff1c[_0x4bc210(0x3e5)])['getActiveSheet']();_0xed292e&&_0x3e0240&&this['_updateLocalCursor'](_0x3e0240[_0x4bc210(0x450)](),_0xed292e);}[_0xcc124c(0x3ed)](){const _0x4c442b=_0xcc124c;this[_0x4c442b(0x529)]=!0x1;}};Dt=xr([fe(0x2,_0xa01556(_0x3064b3)),fe(0x3,_0xa01556(Gt)),fe(0x4,_0xa01556(ce)),fe(0x5,_0x4a621b),fe(0x6,_0x4ba546),fe(0x7,_0xa01556(_0x163f70))],Dt);var Fr=Object['defineProperty'],Wr=Object[_0xcc124c(0x3f2)],Gr=(_0x938c9d,_0x76aa43,_0x2077b5,_0x1808f5)=>{for(var _0x44a312=_0x1808f5>0x1?void 0x0:_0x1808f5?Wr(_0x76aa43,_0x2077b5):_0x76aa43,_0xce516e=_0x938c9d['length']-0x1,_0x14d915;_0xce516e>=0x0;_0xce516e--)(_0x14d915=_0x938c9d[_0xce516e])&&(_0x44a312=(_0x1808f5?_0x14d915(_0x76aa43,_0x2077b5,_0x44a312):_0x14d915(_0x44a312))||_0x44a312);return _0x1808f5&&_0x44a312&&Fr(_0x76aa43,_0x2077b5,_0x44a312),_0x44a312;},ut=(_0x4ac348,_0x2f1232)=>(_0x3e945a,_0x2c102e)=>_0x2f1232(_0x3e945a,_0x2c102e,_0x4ac348);let ve=class extends _0xb64757{constructor(_0x4eb8e5,_0x4d0ff1,_0x34aec2){const _0x2e0e0d=_0xcc124c;super(),l(this,_0x2e0e0d(0x3ad),new Map()),l(this,_0x2e0e0d(0x3bc),new _0x3ca740()),(this['_univerInstanceService']=_0x4eb8e5,this[_0x2e0e0d(0x2bb)]=_0x4d0ff1,this['_collabSessionService']=_0x34aec2,this[_0x2e0e0d(0x203)]());}[_0xcc124c(0x2e2)](){const _0x456a75=_0xcc124c;super[_0x456a75(0x2e2)](),this[_0x456a75(0x3bc)][_0x456a75(0x492)](),this['_entities'][_0x456a75(0x3d5)](_0x41c0e0=>_0x41c0e0[_0x456a75(0x2e2)]());}[_0xcc124c(0x453)](_0xb2e58b){const _0x4ca304=_0xcc124c;return this[_0x4ca304(0x3ad)]['has'](_0xb2e58b)?this[_0x4ca304(0x3ad)]['get'](_0xb2e58b)['cursorInfo$']:this[_0x4ca304(0x3bc)][_0x4ca304(0x4f2)](_0x45726b(_0x182e17=>_0x182e17[_0x4ca304(0x38f)]===_0xb2e58b),_0x2b1c92(_0x3eb6b7=>_0x3eb6b7[_0x4ca304(0x34d)]));}[_0xcc124c(0x203)](){const _0x4dc20f=_0xcc124c;this[_0x4dc20f(0x268)][_0x4dc20f(0x3b7)](_0x4eff1c[_0x4dc20f(0x3e5)])[_0x4dc20f(0x4f2)](_0x2cf076(this[_0x4dc20f(0x31d)]))[_0x4dc20f(0x3ac)](async _0x2f8329=>{const _0x4c4d63=_0x4dc20f,_0x5ab3d1=_0x2f8329[_0x4c4d63(0x43f)](),_0x5b0426=await this[_0x4c4d63(0x4c1)](_0x5ab3d1);this['_entityInit$'][_0x4c4d63(0x1cf)](_0x5b0426),this[_0x4c4d63(0x3ad)][_0x4c4d63(0x4d8)](_0x5ab3d1,_0x5b0426);}),this[_0x4dc20f(0x268)][_0x4dc20f(0x3b7)](_0x4eff1c[_0x4dc20f(0x215)])[_0x4dc20f(0x4f2)](_0x2cf076(this[_0x4dc20f(0x31d)]))[_0x4dc20f(0x4f2)](_0x45726b(_0xa3a65d=>!_0xa3a65d[_0x4dc20f(0x43f)]()[_0x4dc20f(0x435)]('__')))[_0x4dc20f(0x3ac)](async _0x9ff05a=>{const _0x40b1f2=_0x4dc20f,_0x32ac25=_0x9ff05a[_0x40b1f2(0x43f)](),_0x46385c=await this[_0x40b1f2(0x336)](_0x32ac25);this[_0x40b1f2(0x3bc)][_0x40b1f2(0x1cf)](_0x46385c),this[_0x40b1f2(0x3ad)][_0x40b1f2(0x4d8)](_0x32ac25,_0x46385c);}),_0x340e15(this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x4eff1c[_0x4dc20f(0x215)]),this[_0x4dc20f(0x268)][_0x4dc20f(0x43b)](_0x4eff1c['UNIVER_SHEET']))['pipe'](_0x2cf076(this[_0x4dc20f(0x31d)]))[_0x4dc20f(0x3ac)](_0x48e3df=>{const _0xfce194=_0x4dc20f,_0x10f083=_0x48e3df[_0xfce194(0x43f)](),_0x2b095e=this[_0xfce194(0x3ad)][_0xfce194(0x4e6)](_0x10f083);_0x2b095e&&(_0x2b095e[_0xfce194(0x2e2)](),this[_0xfce194(0x3ad)][_0xfce194(0x3bd)](_0x10f083));});}async[_0xcc124c(0x4c1)](_0x87d544){const _0x425d65=_0xcc124c,_0x1dd585=await this[_0x425d65(0x2d0)][_0x425d65(0x2c7)](_0x87d544),_0x236894=this['_injector'][_0x425d65(0x293)](Dt,_0x87d544,_0x1dd585);return _0x236894[_0x425d65(0x28f)](),_0x236894;}async[_0xcc124c(0x336)](_0x28553c){const _0x4afa08=_0xcc124c,_0x4bd2e2=await this[_0x4afa08(0x2d0)]['requireSession'](_0x28553c),_0x48de85=this['_injector'][_0x4afa08(0x293)](Ot,_0x28553c,_0x4bd2e2);return _0x48de85['init'](),_0x48de85;}};ve=Gr([ut(0x0,_0x4a621b),ut(0x1,_0xa01556(_0x3064b3)),ut(0x2,_0xa01556(he))],ve);const $e=0x14,fs=0xc8,dt=0x4,Yr=0x5;function Kr(_0x2c7e1c,_0x59429e){const _0x2fcbbd=_0xcc124c;let {radius:_0x2799af,width:_0x5e6b80,height:_0x4c2034}=_0x59429e;_0x2799af=_0x2799af!=null?_0x2799af:0x0,_0x5e6b80=_0x5e6b80!=null?_0x5e6b80:0x1e,_0x4c2034=_0x4c2034!=null?_0x4c2034:0x1e;let _0x34efa0=0x0,_0x12fa9f=0x0,_0x2e5575=0x0;_0x34efa0=_0x12fa9f=_0x2e5575=Math[_0x2fcbbd(0x259)](_0x2799af,_0x5e6b80/0x2,_0x4c2034/0x2),_0x2c7e1c['beginPath'](),_0x2c7e1c[_0x2fcbbd(0x361)](_0x34efa0,0x0),_0x2c7e1c[_0x2fcbbd(0x2ef)](_0x5e6b80-_0x12fa9f,0x0),_0x2c7e1c[_0x2fcbbd(0x3cb)](_0x5e6b80-_0x12fa9f,_0x12fa9f,_0x12fa9f,Math['PI']*0x3/0x2,0x0,!0x1),_0x2c7e1c['lineTo'](_0x5e6b80,_0x4c2034-_0x2e5575),_0x2c7e1c['arc'](_0x5e6b80-_0x2e5575,_0x4c2034-_0x2e5575,_0x2e5575,0x0,Math['PI']/0x2,!0x1),_0x2c7e1c[_0x2fcbbd(0x2ef)](0x0,_0x4c2034),_0x2c7e1c[_0x2fcbbd(0x2ef)](0x0,_0x34efa0),_0x2c7e1c[_0x2fcbbd(0x3cb)](_0x34efa0,_0x34efa0,_0x34efa0,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2c7e1c['closePath'](),_0x59429e[_0x2fcbbd(0x357)]&&(_0x2c7e1c[_0x2fcbbd(0x42c)](),_0x2c7e1c[_0x2fcbbd(0x238)]=_0x59429e[_0x2fcbbd(0x357)],_0x59429e[_0x2fcbbd(0x253)]===_0x2fcbbd(0x3f7)?_0x2c7e1c[_0x2fcbbd(0x357)](_0x2fcbbd(0x3f7)):_0x2c7e1c['fill'](),_0x2c7e1c[_0x2fcbbd(0x519)]());}class st extends _0x20dfdf{constructor(_0x4d491c,_0x3c000e){const _0x124ca0=_0xcc124c;super(_0x4d491c,_0x3c000e),l(this,_0x124ca0(0x50f)),l(this,'text'),(this[_0x124ca0(0x50f)]=_0x3c000e==null?void 0x0:_0x3c000e[_0x124ca0(0x50f)],this['text']=_0x3c000e==null?void 0x0:_0x3c000e[_0x124ca0(0x4cd)]);}static['drawWith'](_0xeacb8e,_0x5b0562){const _0x3c6f90=_0xcc124c,{text:_0xbfd343,color:_0x4e59e0}=_0x5b0562;_0xeacb8e['save'](),_0xeacb8e[_0x3c6f90(0x487)]=_0x3c6f90(0x530);const _0x40e6b6=_0xeacb8e[_0x3c6f90(0x459)](_0xbfd343)['width'],_0x1f66b4=Math[_0x3c6f90(0x259)](_0x40e6b6+0x2*dt,fs);Kr(_0xeacb8e,{'height':$e,'radius':0x4,'width':_0x1f66b4,'fill':_0x4e59e0,'evented':!0x1}),_0xeacb8e['fillStyle']=_0x3c6f90(0x411);const _0x41034a=dt,_0x29e5f9=$e-Yr,_0x4c3433=fs-0x2*dt;if(_0x40e6b6>_0x4c3433){let _0xbaec6e='',_0x143a4b=0x0;for(const _0xab30ea of _0xbfd343){const _0x2e4208=_0xeacb8e[_0x3c6f90(0x459)](_0xab30ea)[_0x3c6f90(0x490)];if(_0x143a4b+_0x2e4208<=_0x4c3433-_0xeacb8e['measureText'](_0x3c6f90(0x4b8))[_0x3c6f90(0x490)])_0xbaec6e+=_0xab30ea,_0x143a4b+=_0x2e4208;else{_0xbaec6e+=_0x3c6f90(0x4b8);break;}}_0xeacb8e[_0x3c6f90(0x292)](_0xbaec6e,_0x41034a,_0x29e5f9);}else _0xeacb8e[_0x3c6f90(0x292)](_0xbfd343,_0x41034a,_0x29e5f9);_0xeacb8e[_0x3c6f90(0x519)]();}[_0xcc124c(0x483)](_0x258159){st['drawWith'](_0x258159,this);}}const mt=_0xcc124c(0x4a1),Xr=_0xcc124c(0x36a),qr=_0xcc124c(0x4cf),we=0x6,Jr=1.5,ft=0x4,zr=1.5,Zr='rgba(255,\x20255,\x20255,\x200.01)';class gs{constructor(_0x8c637a,_0x1f6e2a,_0x3438fa,_0xcfee2b){const _0x4fd351=_0xcc124c;l(this,_0x4fd351(0x2c4),[]),l(this,_0x4fd351(0x438),null),l(this,'_textBubble',null),l(this,_0x4fd351(0x252),null),l(this,_0x4fd351(0x1b5),null),l(this,'_eventUnsubscribe',null),(this[_0x4fd351(0x399)]=_0x8c637a,this[_0x4fd351(0x2ba)]=_0x1f6e2a,this[_0x4fd351(0x409)]=_0x3438fa,this[_0x4fd351(0x339)]=_0xcfee2b,this[_0x4fd351(0x342)]());}set['_hover'](_0x3b75ef){const _0x5ab632=_0xcc124c;_0x3b75ef?(this[_0x5ab632(0x252)]&&this[_0x5ab632(0x252)][_0x5ab632(0x3c4)](),this[_0x5ab632(0x439)]&&this[_0x5ab632(0x439)]['show']()):(this['_anchorDot']&&this['_anchorDot']['show'](),this['_textBubble']&&this['_textBubble'][_0x5ab632(0x3c4)]());}['dispose'](){const _0x436d6a=_0xcc124c;for(const _0x4ac713 of this[_0x436d6a(0x2c4)])_0x4ac713[_0x436d6a(0x2e2)]();this['_textBubble']&&this[_0x436d6a(0x439)]['dispose'](),this[_0x436d6a(0x252)]&&this['_anchorDot'][_0x436d6a(0x2e2)](),this[_0x436d6a(0x438)]&&this[_0x436d6a(0x438)][_0x436d6a(0x2e2)](),this[_0x436d6a(0x4cb)]&&this[_0x436d6a(0x4cb)]();}[_0xcc124c(0x342)](){const _0x414212=_0xcc124c;var _0xf49df3;const {_docSkeleton:_0x1fb415,_document:_0x45ee4e}=this,{color:_0x65cce1,name:_0x5e6d5d,ranges:_0x43dade}=this[_0x414212(0x399)],_0x26235f=_0x45ee4e[_0x414212(0x249)](),{docsLeft:_0x539a9f,docsTop:_0x277257}=_0x26235f,_0x69a54f=new _0x14989d(_0x26235f,_0x1fb415);for(const {startOffset:_0x3ee9e4,endOffset:_0x339d4f,collapsed:_0x6a7519,isActive:_0x190e81}of _0x43dade){const _0x4818d2=_0x1fb415['findNodePositionByCharIndex'](_0x3ee9e4),_0x2e9358=_0x1fb415[_0x414212(0x39e)](_0x339d4f);if(_0x190e81){const {contentBoxPointGroup:_0x4bbb6d}=_0x69a54f[_0x414212(0x226)](_0x2e9358,_0x2e9358);if(_0x4bbb6d[_0x414212(0x236)]===0x0)continue;this[_0x414212(0x4de)](_0x65cce1,_0x4bbb6d,_0x539a9f,_0x277257,_0x5e6d5d),this[_0x414212(0x4cb)]=this['_handleHover']();}if(!_0x6a7519&&_0x4818d2&&_0x2e9358){if(_0x3886e9(_0x4818d2,_0x2e9358)){const _0x1cb37c=new _0x2cbc8e(_0x26235f,_0x1fb415),{pointGroup:_0x30f925}=(_0xf49df3=_0x1cb37c[_0x414212(0x226)](_0x4818d2,_0x2e9358))!=null?_0xf49df3:{};if(_0x30f925==null||_0x30f925[_0x414212(0x236)]===0x0)continue;this[_0x414212(0x20e)](_0x65cce1,_0x30f925,_0x539a9f,_0x277257);}else{const {contentBoxPointGroup:_0x178526}=_0x69a54f[_0x414212(0x226)](_0x4818d2,_0x2e9358);if(_0x178526[_0x414212(0x236)]===0x0)continue;this[_0x414212(0x1eb)](_0x65cce1,_0x178526,_0x539a9f,_0x277257);}}}}[_0xcc124c(0x4de)](_0x26dcd0,_0x1ddb2b,_0x87a07d,_0x126f38,_0x54616c){const _0x16a017=_0xcc124c,_0x2bc328=this['_getAnchorBounding'](_0x1ddb2b),{left:_0x40682d,top:_0x48d2cb,height:_0x333d9f}=_0x2bc328,_0x13a7ca=this[_0x16a017(0x44f)](),_0x4befda=zr/_0x13a7ca,_0x40157c=new _0x178a86(mt+_0xe487b1['generateRandomId'](we),{'left':_0x40682d+_0x87a07d-_0x4befda,'top':_0x48d2cb+_0x126f38,'height':_0x333d9f,'width':Jr,'fill':_0x26dcd0||_0x156ca5(_0x2c8d44[_0x16a017(0x413)],0x0),'strokeWidth':_0x4befda,'stroke':Zr,'evented':!0x0});this[_0x16a017(0x438)]=_0x40157c,this[_0x16a017(0x2ba)][_0x16a017(0x4a5)](_0x40157c,_0x13bc1d);const _0x45daf3=new _0x178a86(mt+_0xe487b1[_0x16a017(0x32e)](we),{'left':_0x40682d+_0x87a07d-_0x4befda,'top':_0x48d2cb+_0x126f38-ft/0x2,'height':ft,'width':ft,'fill':_0x26dcd0||_0x156ca5(_0x2c8d44[_0x16a017(0x413)],0x0),'strokeWidth':0x0,'stroke':_0x26dcd0||_0x156ca5(_0x2c8d44[_0x16a017(0x413)],0x0),'evented':!0x1});this[_0x16a017(0x252)]=_0x45daf3,this[_0x16a017(0x2ba)][_0x16a017(0x4a5)](_0x45daf3,_0x13bc1d);const _0x1a997d=new st(mt+_0xe487b1[_0x16a017(0x32e)](we),{'left':_0x40682d+_0x87a07d-_0x4befda,'top':_0x48d2cb+_0x126f38-$e,'text':_0x54616c,'color':_0x26dcd0});this[_0x16a017(0x439)]=_0x1a997d,this[_0x16a017(0x2ba)]['addObject'](_0x1a997d,_0x13bc1d),this[_0x16a017(0x3cf)]=!0x1;}[_0xcc124c(0x1c4)](){const _0x4b67d3=_0xcc124c,_0x3039d6=this[_0x4b67d3(0x438)]['onPointerEnter$'][_0x4b67d3(0x242)](()=>{const _0x46315f=_0x4b67d3;this[_0x46315f(0x3cf)]=!0x0;}),_0x37676c=this[_0x4b67d3(0x438)][_0x4b67d3(0x4a3)]['subscribeEvent'](()=>{const _0x32e610=_0x4b67d3;this['_hideTimer']&&clearTimeout(this[_0x32e610(0x1b5)]),this['_hideTimer']=setTimeout(()=>{const _0x205631=_0x32e610;this[_0x205631(0x3cf)]=!0x1;},0x7d0);});return()=>{const _0x1fc533=_0x4b67d3;_0x3039d6['unsubscribe'](),_0x37676c[_0x1fc533(0x35a)]();};}[_0xcc124c(0x1eb)](_0x245a9a,_0x4cfdca,_0x485ac6,_0x28532e){const _0x16e1bb=_0xcc124c,_0x3c5b1c=new _0x2ada55(_0x245a9a)[_0x16e1bb(0x4c3)](0.2)[_0x16e1bb(0x396)](),_0x5aa432=new _0x2ec8af(Xr+_0xe487b1['generateRandomId'](we),{'pointsGroup':_0x4cfdca,'fill':_0x3c5b1c||_0x156ca5(_0x2c8d44['black'],0.2),'left':_0x485ac6,'top':_0x28532e,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x16e1bb(0x4c7)](_0x5aa432),this[_0x16e1bb(0x2ba)][_0x16e1bb(0x4a5)](_0x5aa432,_0x13bc1d);}[_0xcc124c(0x20e)](_0xf674d9,_0x1b4e86,_0xa4ad53,_0x5637e4){const _0x310c2e=_0xcc124c,_0x4ab0c7=new _0x2ada55(_0xf674d9)['setAlpha'](0.2)['toRgbString'](),_0x48c259=new _0x2ec8af(qr+_0xe487b1[_0x310c2e(0x32e)](we),{'pointsGroup':_0x1b4e86,'fill':_0x4ab0c7||_0x156ca5(_0x2c8d44[_0x310c2e(0x413)],0.2),'left':_0xa4ad53,'top':_0x5637e4,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x310c2e(0x2c4)]['push'](_0x48c259),this[_0x310c2e(0x2ba)][_0x310c2e(0x4a5)](_0x48c259,_0x13bc1d);}[_0xcc124c(0x508)](_0x128e5a){const _0x1a1620=_0x128e5a[0x0],_0x310eac=_0x1a1620[0x0],_0x11d91c=_0x1a1620[0x2],{x:_0x227f1a,y:_0x159be9}=_0x310eac,{x:_0x372b5a,y:_0xec33bf}=_0x11d91c;return{'left':_0x227f1a,'top':_0x159be9,'width':_0x372b5a-_0x227f1a,'height':_0xec33bf-_0x159be9};}[_0xcc124c(0x44f)](){const _0x4c0c69=_0xcc124c,{scaleX:_0x4ae92f,scaleY:_0x1a2868}=this['_scene'][_0x4c0c69(0x210)]();return Math[_0x4c0c69(0x48b)](_0x4ae92f,_0x1a2868);}}var Qr=Object['defineProperty'],eo=Object[_0xcc124c(0x3f2)],to=(_0x5d65d4,_0xdbbc21,_0x46d0b0,_0x5c9125)=>{const _0x5de87f=_0xcc124c;for(var _0x168973=_0x5c9125>0x1?void 0x0:_0x5c9125?eo(_0xdbbc21,_0x46d0b0):_0xdbbc21,_0x450a92=_0x5d65d4[_0x5de87f(0x236)]-0x1,_0x67f65c;_0x450a92>=0x0;_0x450a92--)(_0x67f65c=_0x5d65d4[_0x450a92])&&(_0x168973=(_0x5c9125?_0x67f65c(_0xdbbc21,_0x46d0b0,_0x168973):_0x67f65c(_0x168973))||_0x168973);return _0x5c9125&&_0x168973&&Qr(_0xdbbc21,_0x46d0b0,_0x168973),_0x168973;},ke=(_0x4abecf,_0x1518cd)=>(_0x8c497,_0x24145f)=>_0x1518cd(_0x8c497,_0x24145f,_0x4abecf);let wt=class extends _0xb64757{constructor(_0x3a526e,_0x3c4a42,_0x597f87,_0x3d05d2,_0x6128f6){const _0x206d85=_0xcc124c;super(),l(this,_0x206d85(0x3a2),[]),l(this,'_cursors',[]),(this[_0x206d85(0x3ea)]=_0x3a526e,this[_0x206d85(0x402)]=_0x3c4a42,this[_0x206d85(0x24d)]=_0x597f87,this[_0x206d85(0x232)]=_0x3d05d2,this[_0x206d85(0x21f)]=_0x6128f6,this['_init']());}[_0xcc124c(0x203)](){const _0x23a2d0=_0xcc124c,_0x39ead4=this[_0x23a2d0(0x3ea)][_0x23a2d0(0x49a)],_0x372cd3=this[_0x23a2d0(0x402)];this[_0x23a2d0(0x379)](_0x1395c9([this[_0x23a2d0(0x24d)]['getCollabCursors$'](_0x39ead4),this[_0x23a2d0(0x21f)][_0x23a2d0(0x2c2)]])['pipe'](_0x493a42(([_0x15d082,_0x2f0f91])=>({'skeleton':_0x372cd3['getSkeleton'](),'cursors':[..._0x15d082[_0x23a2d0(0x373)]()][_0x23a2d0(0x2b4)](_0x512095=>({..._0x512095,'color':_0x2f0f91[_0x512095[_0x23a2d0(0x50f)]]}))})))[_0x23a2d0(0x3ac)](_0x185413=>{const _0x49da39=_0x23a2d0;if(this[_0x49da39(0x38c)](),_0x185413){const {skeleton:_0x33064e,cursors:_0x382333}=_0x185413;this[_0x49da39(0x41b)](_0x33064e,_0x382333);}})),this['_initResize'](),this['_initCommandExecutedListener']();}[_0xcc124c(0x41b)](_0x51adf9,_0x45d5ad){const _0x404566=_0xcc124c,{scene:_0x332e79,mainComponent:_0x1130c6}=this[_0x404566(0x3ea)],_0x578ed9=_0x45d5ad[_0x404566(0x2f3)](_0xaa32cd=>new gs(_0xaa32cd,_0x332e79,_0x51adf9,_0x1130c6));this['_cursorShapes']=_0x578ed9,this[_0x404566(0x1fd)]=_0x45d5ad;}[_0xcc124c(0x235)](){const _0x3f01d2=_0xcc124c;this[_0x3f01d2(0x38c)]();const {scene:_0x9625f8,mainComponent:_0x59844f}=this[_0x3f01d2(0x3ea)],_0x121586=this[_0x3f01d2(0x402)][_0x3f01d2(0x375)](),_0x19eb92=this['_cursors'][_0x3f01d2(0x2f3)](_0x3815e2=>new gs(_0x3815e2,_0x9625f8,_0x121586,_0x59844f));this[_0x3f01d2(0x3a2)]=_0x19eb92;}[_0xcc124c(0x38c)](){const _0x562999=_0xcc124c;this[_0x562999(0x3a2)]['forEach'](_0x21cf08=>_0x21cf08[_0x562999(0x2e2)]()),this[_0x562999(0x3a2)]=[];}[_0xcc124c(0x415)](){const _0x34a6ac=_0xcc124c,_0x1e9636=[_0x5b90d3['id']];this['disposeWithMe'](this[_0x34a6ac(0x232)][_0x34a6ac(0x3d2)](_0x16082d=>{const _0x26e5c8=_0x34a6ac;_0x1e9636[_0x26e5c8(0x47d)](_0x16082d['id'])&&_0x16082d[_0x26e5c8(0x20f)][_0x26e5c8(0x49a)]===this[_0x26e5c8(0x3ea)][_0x26e5c8(0x49a)]&&this[_0x26e5c8(0x235)]();}));}[_0xcc124c(0x511)](){const _0x5903b1=_0xcc124c;this['disposeWithMe'](_0x186b9e(this[_0x5903b1(0x3ea)]['engine']['onTransformChange$'])[_0x5903b1(0x4f2)](_0x117995(_0x598b90=>_0x598b90[_0x5903b1(0x23d)]===_0x573d10['resize']),_0x4d59a9(0x10))[_0x5903b1(0x3ac)](()=>{const _0x4a5fae=_0x5903b1;this[_0x4a5fae(0x235)]();}));}};wt=to([ke(0x1,_0xa01556(_0x493cbc)),ke(0x2,_0xa01556(ve)),ke(0x3,_0x4ba546),ke(0x4,_0xa01556(_0x2d99d8))],wt);const so=0x1,io=1.5;class no extends _0x20dfdf{constructor(_0xa6cd74,_0x5566cc){const _0x117ce5=_0xcc124c;super(_0xa6cd74,_0x5566cc),l(this,'_color'),l(this,_0x117ce5(0x44a),!0x1),l(this,_0x117ce5(0x311)),l(this,_0x117ce5(0x4b3),''),l(this,_0x117ce5(0x332),_0x117ce5(0x418)),l(this,'_backgroundColor'),(_0x5566cc&&this[_0x117ce5(0x473)](_0x5566cc),this[_0x117ce5(0x257)]['subscribeEvent'](()=>this[_0x117ce5(0x473)]({'hovered':!0x0})),this['onPointerLeave$'][_0x117ce5(0x242)](()=>this[_0x117ce5(0x473)]({'hovered':!0x1})));}['setShapeProps'](_0x5128a9){const _0x2fa2e4=_0xcc124c;var _0x47c830,_0x41aaa0,_0x512aed,_0x38d61c,_0x353014,_0x13d2ec;this[_0x2fa2e4(0x348)]=(_0x47c830=_0x5128a9['color'])!=null?_0x47c830:this[_0x2fa2e4(0x348)],this[_0x2fa2e4(0x44a)]=(_0x41aaa0=_0x5128a9[_0x2fa2e4(0x425)])!=null?_0x41aaa0:this['_hovered'],this[_0x2fa2e4(0x311)]=(_0x512aed=_0x5128a9[_0x2fa2e4(0x3e2)])!=null?_0x512aed:this[_0x2fa2e4(0x311)],this[_0x2fa2e4(0x4b3)]=(_0x38d61c=_0x5128a9[_0x2fa2e4(0x2d1)])!=null?_0x38d61c:this[_0x2fa2e4(0x4b3)],this[_0x2fa2e4(0x332)]=(_0x353014=_0x5128a9[_0x2fa2e4(0x33f)])!=null?_0x353014:this[_0x2fa2e4(0x332)],this['_backgroundColor']=(_0x13d2ec=_0x5128a9[_0x2fa2e4(0x47f)])!=null?_0x13d2ec:this['_backgroundColor'],this[_0x2fa2e4(0x4c4)]({'width':_0x5128a9[_0x2fa2e4(0x490)],'height':_0x5128a9[_0x2fa2e4(0x52f)]});}['onMouseMove'](_0xe4f001){const _0x10e369=_0xcc124c,{row:_0x324f4b,column:_0x4a8ad1}=_0xe4f001;if(_0x324f4b>=this['_range'][_0x10e369(0x4dc)]&&_0x324f4b<=this[_0x10e369(0x311)][_0x10e369(0x1e4)]&&_0x4a8ad1>=this[_0x10e369(0x311)][_0x10e369(0x204)]&&_0x4a8ad1<=this['_range'][_0x10e369(0x2f6)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x10e369(0x473)]({'hovered':!0x1});}[_0xcc124c(0x262)](_0x5e8b99){return!0x1;}[_0xcc124c(0x483)](_0x59836b){const _0x4ac767=_0xcc124c;_0x178a86[_0x4ac767(0x3c2)](_0x59836b,{'width':this[_0x4ac767(0x490)],'height':this['height'],'strokeWidth':io,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x4ac767(0x485)]}),this[_0x4ac767(0x44a)]&&(_0x59836b[_0x4ac767(0x42c)](),_0x59836b[_0x4ac767(0x1f0)](0x1,0x0,0x0,0x1,this[_0x4ac767(0x490)],this['_labelPosition']===_0x4ac767(0x436)?0x0:-$e),st[_0x4ac767(0x3c2)](_0x59836b,{'text':this[_0x4ac767(0x4b3)],'color':this[_0x4ac767(0x348)]}),_0x59836b[_0x4ac767(0x519)]());}}var ro=Object[_0xcc124c(0x2ad)],oo=Object[_0xcc124c(0x3f2)],ao=(_0x5e1dc5,_0x4eb521,_0x36bcfd,_0x2ff1a1)=>{const _0x20f40f=_0xcc124c;for(var _0x53d049=_0x2ff1a1>0x1?void 0x0:_0x2ff1a1?oo(_0x4eb521,_0x36bcfd):_0x4eb521,_0x2540c4=_0x5e1dc5[_0x20f40f(0x236)]-0x1,_0x2f7dda;_0x2540c4>=0x0;_0x2540c4--)(_0x2f7dda=_0x5e1dc5[_0x2540c4])&&(_0x53d049=(_0x2ff1a1?_0x2f7dda(_0x4eb521,_0x36bcfd,_0x53d049):_0x2f7dda(_0x53d049))||_0x53d049);return _0x2ff1a1&&_0x53d049&&ro(_0x4eb521,_0x36bcfd,_0x53d049),_0x53d049;},gt=(_0x44abb2,_0x29e919)=>(_0x3e3921,_0x32554b)=>_0x29e919(_0x3e3921,_0x32554b,_0x44abb2);const co=0x1389;let Pt=class extends _0xb64757{constructor(_0x5b3e29,_0x46123f,_0x24b28e,_0x38ea30){const _0x2050c5=_0xcc124c;super(),l(this,_0x2050c5(0x1fd),new Set()),l(this,_0x2050c5(0x34e),null),(this['_context']=_0x5b3e29,this[_0x2050c5(0x4b4)]=_0x46123f,this[_0x2050c5(0x24d)]=_0x24b28e,this[_0x2050c5(0x21f)]=_0x38ea30,this[_0x2050c5(0x203)]());}['_init'](){const _0x3ea65e=_0xcc124c;this[_0x3ea65e(0x4b4)][_0x3ea65e(0x23b)]['pipe'](_0x274b03(this[_0x3ea65e(0x31d)]),_0x499aa8(_0x219e68=>{const _0x12201d=_0x3ea65e;if(_0x219e68){const _0x5f26eb=_0x219e68['sheetId'];return _0x1395c9(this[_0x12201d(0x24d)][_0x12201d(0x453)](this['_context'][_0x12201d(0x49a)]),this['_themeService'][_0x12201d(0x2c2)])[_0x12201d(0x4f2)](_0x493a42(([_0xcaa312,_0x3ad0e7])=>{const _0xf0862d=_0x12201d,_0x3a8f09=new Map();return _0xcaa312[_0xf0862d(0x3d5)]((_0x837f5b,_0x31e3bc)=>{const _0x1d8111=_0xf0862d;if(_0x837f5b[_0x1d8111(0x4f0)]===_0x5f26eb){const _0x2cec18={..._0x837f5b};_0x2cec18[_0x1d8111(0x50f)]=_0x3ad0e7[_0x837f5b['color']],_0x3a8f09['set'](_0x31e3bc,_0x2cec18);}}),{'skeleton':_0x219e68,'cursors':_0x3a8f09};}));}return _0x226e5d({'skeleton':null,'cursors':new Map()});}))[_0x3ea65e(0x3ac)](({skeleton:_0x411850,cursors:_0x18b1bc})=>{const _0x15b584=_0x3ea65e;this[_0x15b584(0x38c)](),_0x411850&&this[_0x15b584(0x41b)](_0x411850,_0x18b1bc);}),this[_0x3ea65e(0x4b4)][_0x3ea65e(0x23b)][_0x3ea65e(0x3ac)](_0xe4df3d=>{const _0x2e30a6=_0x3ea65e;if(_0xe4df3d==null)return;const {skeleton:_0x5209f4}=_0xe4df3d,{scene:_0x2196b2}=this[_0x2e30a6(0x3ea)];_0x2196b2[_0x2e30a6(0x3d6)][_0x2e30a6(0x242)](_0x1c12c5(_0x310504=>{const _0x3c6812=_0x2e30a6;var _0x52b022,_0x57b459;const {offsetX:_0x1f5318,offsetY:_0x476fc6}=_0x310504,{x:_0x4cad2c,y:_0x338853}=_0x2196b2['getRelativeToViewportCoord'](_0xf225ea[_0x3c6812(0x1d7)]([_0x1f5318,_0x476fc6])),{scaleX:_0x426f59,scaleY:_0x2a401a}=_0x2196b2[_0x3c6812(0x210)](),_0x98adb3=_0x2196b2[_0x3c6812(0x1d3)](_0x19094e['VIEW_MAIN']),_0x4071e1=_0x2196b2[_0x3c6812(0x34a)](_0xf225ea[_0x3c6812(0x1d7)]([_0x4cad2c,_0x338853]),_0x98adb3),_0x448e08=_0x5209f4[_0x3c6812(0x214)](_0x1f5318,_0x476fc6,_0x426f59,_0x2a401a,_0x4071e1);((_0x52b022=this['_lastPointer'])==null?void 0x0:_0x52b022[_0x3c6812(0x34f)])===_0x448e08['column']&&((_0x57b459=this[_0x3c6812(0x34e)])==null?void 0x0:_0x57b459[_0x3c6812(0x341)])===_0x448e08['row']||this['_cursors'][_0x3c6812(0x3d5)](_0x571eda=>{const _0x3e536c=_0x3c6812;_0x571eda[_0x3e536c(0x2de)](_0x448e08);});},0x64));});}[_0xcc124c(0x41b)](_0x288933,_0x315b8b){const _0x9b345b=_0xcc124c;var _0x5613b7;const _0x23ba24=(_0x5613b7=this[_0x9b345b(0x4b4)][_0x9b345b(0x316)]())==null?void 0x0:_0x5613b7[_0x9b345b(0x4c9)];if(!_0x23ba24)return;const _0x5c3b34=this[_0x9b345b(0x25e)]();if(!_0x5c3b34)return;this[_0x9b345b(0x1fd)]['forEach'](_0x2bcf5f=>{const _0x2103b1=_0x9b345b;_0x2bcf5f[_0x2103b1(0x39b)]();});const {scene:_0x3f97df}=_0x5c3b34,_0x2a6863=ho(Array['from'](_0x315b8b[_0x9b345b(0x373)]()))[_0x9b345b(0x2f3)](_0x5a9e3c=>{const _0x20fbdd=_0x9b345b,{color:_0x710c42,range:_0x123c39,name:_0x46c456,selection:_0x35b52b,sheetID:_0x20822c}=_0x5a9e3c,{startColumn:_0x527daf,startRow:_0x76905c,endColumn:_0x339cbb,endRow:_0x127c35}=_0x123c39,_0x57face=_0x1b4f2(_0x76905c,_0x527daf,_0x3f97df,_0x23ba24),_0x2c2bd6=_0x1b4f2(_0x127c35,_0x339cbb,_0x3f97df,_0x23ba24),{columnHeaderHeightAndMarginTop:_0x43f190}=_0x23ba24,{startX:_0x30e6fa,startY:_0x5640f6}=_0x57face,{endX:_0x18de36,endY:_0x1b9207}=_0x2c2bd6,_0x3db96d=_0x18de36-_0x30e6fa,_0xf218e=_0x1b9207-_0x5640f6,_0x209bef={'labelPosition':_0x5640f6-_0x43f190>=$e?_0x20fbdd(0x418):_0x20fbdd(0x436),'sheetID':_0x20822c,'range':_0x123c39,'color':_0x710c42,'name':_0x46c456,'selection':_0x35b52b,'left':_0x30e6fa,'top':_0x5640f6,'width':_0x3db96d,'height':_0xf218e,'evented':!0x1,'zIndex':co};return new no(_0x46c456,_0x209bef);});_0x3f97df[_0x9b345b(0x45a)](_0x2a6863,so),this[_0x9b345b(0x1fd)]=new Set(_0x2a6863);}['_removeCollabCursors'](){const _0x365b5a=_0xcc124c;var _0x1e8f17;(_0x1e8f17=this[_0x365b5a(0x1fd)])==null||_0x1e8f17['forEach'](_0xa83025=>_0xa83025[_0x365b5a(0x2e2)]());}[_0xcc124c(0x25e)](){const _0x2803ff=_0xcc124c;return _0x19d902(this[_0x2803ff(0x3ea)][_0x2803ff(0x220)],this[_0x2803ff(0x3ea)]);}};Pt=ao([gt(0x1,_0xa01556(_0x347254)),gt(0x2,_0xa01556(ve)),gt(0x3,_0xa01556(_0x2d99d8))],Pt);function ho(_0x1a86f2){const _0x166953=_0xcc124c,_0x40e5c8=new Map();return _0x1a86f2[_0x166953(0x3d5)](_0x1f8e9d=>{const _0x279dd2=_0x166953;if(_0x40e5c8[_0x279dd2(0x449)](_0x1f8e9d[_0x279dd2(0x286)])){const _0x38b6ff=_0x40e5c8[_0x279dd2(0x4e6)](_0x1f8e9d['selection']);_0x38b6ff['name']+=',\x20'+_0x1f8e9d[_0x279dd2(0x2d1)];}else _0x40e5c8[_0x279dd2(0x4d8)](_0x1f8e9d[_0x279dd2(0x286)],_0x1f8e9d);}),Array['from'](_0x40e5c8[_0x166953(0x373)]());}var N=function(){const _0x44d036=_0xcc124c;return N=Object[_0x44d036(0x3ba)]||function(_0x5d028d){const _0x429063=_0x44d036;for(var _0x3874a4,_0x3aeadc=0x1,_0x5f2a5c=arguments[_0x429063(0x236)];_0x3aeadc<_0x5f2a5c;_0x3aeadc++){_0x3874a4=arguments[_0x3aeadc];for(var _0x1d7f65 in _0x3874a4)Object[_0x429063(0x471)][_0x429063(0x1b6)][_0x429063(0x231)](_0x3874a4,_0x1d7f65)&&(_0x5d028d[_0x1d7f65]=_0x3874a4[_0x1d7f65]);}return _0x5d028d;},N[_0x44d036(0x39a)](this,arguments);},lo=function(_0x34353,_0x2a413f){const _0x2c64b4=_0xcc124c;var _0x4db7fa={};for(var _0x3f126b in _0x34353)Object[_0x2c64b4(0x471)]['hasOwnProperty']['call'](_0x34353,_0x3f126b)&&_0x2a413f[_0x2c64b4(0x37d)](_0x3f126b)<0x0&&(_0x4db7fa[_0x3f126b]=_0x34353[_0x3f126b]);if(_0x34353!=null&&typeof Object[_0x2c64b4(0x49f)]==_0x2c64b4(0x3a7)){for(var _0x41cfb9=0x0,_0x3f126b=Object[_0x2c64b4(0x49f)](_0x34353);_0x41cfb9<_0x3f126b[_0x2c64b4(0x236)];_0x41cfb9++)_0x2a413f[_0x2c64b4(0x37d)](_0x3f126b[_0x41cfb9])<0x0&&Object[_0x2c64b4(0x471)]['propertyIsEnumerable']['call'](_0x34353,_0x3f126b[_0x41cfb9])&&(_0x4db7fa[_0x3f126b[_0x41cfb9]]=_0x34353[_0x3f126b[_0x41cfb9]]);}return _0x4db7fa;},Yt=_0x1650df(function(_0x3c6381,_0x385680){const _0x498af3=_0xcc124c;var _0x39a783=_0x3c6381['icon'],_0x213156=_0x3c6381['id'],_0x56f899=_0x3c6381[_0x498af3(0x46a)],_0xb06d9=_0x3c6381['extend'],_0x2f2f06=lo(_0x3c6381,[_0x498af3(0x3b8),'id',_0x498af3(0x46a),_0x498af3(0x2f5)]),_0x29d596=_0x498af3(0x478)[_0x498af3(0x1d0)](_0x213156,'\x20')[_0x498af3(0x1d0)](_0x56f899||'')[_0x498af3(0x47c)](),_0x445a1b=_0x2d2ac6('_'[_0x498af3(0x1d0)](mo()));return Xs(_0x39a783,''[_0x498af3(0x1d0)](_0x213156),{'defIds':_0x39a783[_0x498af3(0x29d)],'idSuffix':_0x445a1b[_0x498af3(0x4e2)]},N({'ref':_0x385680,'className':_0x29d596},_0x2f2f06),_0xb06d9);});function Xs(_0x51859e,_0x416acc,_0x2d0ae1,_0x50eb07,_0x44af62){const _0x29f3cc=_0xcc124c;return _0x3c7df6(_0x51859e[_0x29f3cc(0x28d)],N(N({'key':_0x416acc},_o(_0x51859e,_0x2d0ae1,_0x44af62)),_0x50eb07),(uo(_0x51859e,_0x2d0ae1)[_0x29f3cc(0x2f7)]||[])[_0x29f3cc(0x2f3)](function(_0x1bbb17,_0x12e4ba){const _0x537445=_0x29f3cc;return Xs(_0x1bbb17,''[_0x537445(0x1d0)](_0x416acc,'-')[_0x537445(0x1d0)](_0x51859e['tag'],'-')['concat'](_0x12e4ba),_0x2d0ae1,void 0x0,_0x44af62);}));}function _o(_0x5ee06f,_0x306e82,_0x4b0df2){const _0x4ba4f7=_0xcc124c;var _0x51cad0=N({},_0x5ee06f['attrs']);_0x4b0df2!=null&&_0x4b0df2[_0x4ba4f7(0x2fd)]&&_0x51cad0[_0x4ba4f7(0x357)]==='colorChannel1'&&(_0x51cad0[_0x4ba4f7(0x357)]=_0x4b0df2[_0x4ba4f7(0x2fd)]);var _0x51a113=_0x306e82[_0x4ba4f7(0x29d)];return!_0x51a113||_0x51a113[_0x4ba4f7(0x236)]===0x0||(_0x5ee06f['tag']===_0x4ba4f7(0x300)&&_0x51cad0['xlink:href']&&(_0x51cad0[_0x4ba4f7(0x309)]=_0x51cad0[_0x4ba4f7(0x309)]+_0x306e82[_0x4ba4f7(0x4fe)]),Object[_0x4ba4f7(0x229)](_0x51cad0)[_0x4ba4f7(0x3d5)](function(_0x2f4549){const _0x2f2fd4=_0x4ba4f7;var _0x5c9fe3=_0x2f4549[0x0],_0xf3a339=_0x2f4549[0x1];typeof _0xf3a339==_0x2f2fd4(0x500)&&(_0x51cad0[_0x5c9fe3]=_0xf3a339[_0x2f2fd4(0x319)](/url\(#(.*)\)/,_0x2f2fd4(0x2b2)[_0x2f2fd4(0x1d0)](_0x306e82[_0x2f2fd4(0x4fe)],')')));})),_0x51cad0;}function uo(_0x14c2d5,_0x2ffbab){const _0xbfc58f=_0xcc124c;var _0x588c7c,_0x4d20f2=_0x2ffbab['defIds'];return!_0x4d20f2||_0x4d20f2['length']===0x0?_0x14c2d5:_0x14c2d5[_0xbfc58f(0x28d)]===_0xbfc58f(0x22d)&&(!((_0x588c7c=_0x14c2d5[_0xbfc58f(0x2f7)])===null||_0x588c7c===void 0x0)&&_0x588c7c[_0xbfc58f(0x236)])?N(N({},_0x14c2d5),{'children':_0x14c2d5[_0xbfc58f(0x2f7)][_0xbfc58f(0x2f3)](function(_0x1743df){const _0x1e9673=_0xbfc58f;return typeof _0x1743df[_0x1e9673(0x1c1)]['id']==_0x1e9673(0x500)&&_0x4d20f2&&_0x4d20f2[_0x1e9673(0x37d)](_0x1743df[_0x1e9673(0x1c1)]['id'])>-0x1?N(N({},_0x1743df),{'attrs':N(N({},_0x1743df[_0x1e9673(0x1c1)]),{'id':_0x1743df[_0x1e9673(0x1c1)]['id']+_0x2ffbab[_0x1e9673(0x4fe)]})}):_0x1743df;})}):_0x14c2d5;}function mo(){const _0x3ac989=_0xcc124c;return Math[_0x3ac989(0x2f8)]()['toString'](0x24)[_0x3ac989(0x51f)](0x2,0x8);}Yt[_0xcc124c(0x442)]=_0xcc124c(0x2a9);var fo={'tag':'svg','attrs':{'fill':_0xcc124c(0x410),'viewBox':_0xcc124c(0x366),'width':_0xcc124c(0x3ec),'height':_0xcc124c(0x3ec)},'children':[{'tag':'g','attrs':{'clipPath':_0xcc124c(0x344)},'children':[{'tag':_0xcc124c(0x3f9),'attrs':{'stroke':'currentColor','d':_0xcc124c(0x241),'strokeLinecap':'round','strokeLinejoin':_0xcc124c(0x460),'strokeWidth':1.2}}]},{'tag':_0xcc124c(0x22d),'attrs':{},'children':[{'tag':_0xcc124c(0x200),'attrs':{'id':_0xcc124c(0x2bd)},'children':[{'tag':_0xcc124c(0x3f9),'attrs':{'fill':_0xcc124c(0x3dd),'d':_0xcc124c(0x35b)}}]}]}],'defIds':[_0xcc124c(0x2bd)]},qs=_0x1650df(function(_0x40ccd3,_0x1731e5){return _0x3c7df6(Yt,Object['assign']({},_0x40ccd3,{'id':'off-line-single','ref':_0x1731e5,'icon':fo}));});qs[_0xcc124c(0x442)]=_0xcc124c(0x1f6);var go={'tag':'svg','attrs':{'fill':_0xcc124c(0x410),'viewBox':'0\x200\x2017\x2016','width':_0xcc124c(0x3ec),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0xcc124c(0x50b)},'children':[{'tag':_0xcc124c(0x3f9),'attrs':{'stroke':'currentColor','d':_0xcc124c(0x258),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0xcc124c(0x200),'attrs':{'id':_0xcc124c(0x45b)},'children':[{'tag':_0xcc124c(0x3f9),'attrs':{'fill':_0xcc124c(0x3dd),'d':_0xcc124c(0x35b),'transform':_0xcc124c(0x443)}}]}]}],'defIds':[_0xcc124c(0x45b)]},Js=_0x1650df(function(_0x1b6e03,_0x2b3ad2){const _0x2238eb=_0xcc124c;return _0x3c7df6(Yt,Object[_0x2238eb(0x3ba)]({},_0x1b6e03,{'id':_0x2238eb(0x424),'ref':_0x2b3ad2,'icon':go}));});Js[_0xcc124c(0x442)]=_0xcc124c(0x48d);function zs(_0x1c2489){const _0x52eb2e=_0xcc124c;var _0x157bcc,_0x2c800a,_0x20b9e3='';if(typeof _0x1c2489=='string'||typeof _0x1c2489==_0x52eb2e(0x314))_0x20b9e3+=_0x1c2489;else{if(typeof _0x1c2489==_0x52eb2e(0x4e5)){if(Array[_0x52eb2e(0x393)](_0x1c2489)){var _0x5c5783=_0x1c2489['length'];for(_0x157bcc=0x0;_0x157bcc<_0x5c5783;_0x157bcc++)_0x1c2489[_0x157bcc]&&(_0x2c800a=zs(_0x1c2489[_0x157bcc]))&&(_0x20b9e3&&(_0x20b9e3+='\x20'),_0x20b9e3+=_0x2c800a);}else{for(_0x2c800a in _0x1c2489)_0x1c2489[_0x2c800a]&&(_0x20b9e3&&(_0x20b9e3+='\x20'),_0x20b9e3+=_0x2c800a);}}}return _0x20b9e3;}function So(){const _0x24f69b=_0xcc124c;for(var _0x175da2,_0x438058,_0x401cff=0x0,_0x3c50a9='',_0x538208=arguments[_0x24f69b(0x236)];_0x401cff<_0x538208;_0x401cff++)(_0x175da2=arguments[_0x401cff])&&(_0x438058=zs(_0x175da2))&&(_0x3c50a9&&(_0x3c50a9+='\x20'),_0x3c50a9+=_0x438058);return _0x3c50a9;}const po=_0xcc124c(0x4da),vo='univer-online-status-title',Io=_0xcc124c(0x405),Eo='univer-online',Co=_0xcc124c(0x33d),Pe={'onlineStatusIcon':po,'onlineStatusTitle':vo,'onlineStatus':Io,'online':Eo,'offline':Co};function bo(_0x1588ec){const _0xcbe926=_0xcc124c;switch(_0x1588ec){case P[_0xcbe926(0x1d8)]:return'collabStatus.offline';case P[_0xcbe926(0x1f8)]:return _0xcbe926(0x389);case P[_0xcbe926(0x3e8)]:return _0xcbe926(0x2d8);case P[_0xcbe926(0x4aa)]:return _0xcbe926(0x372);case P[_0xcbe926(0x445)]:case P[_0xcbe926(0x2b9)]:return _0xcbe926(0x3e7);case P[_0xcbe926(0x469)]:case P[_0xcbe926(0x345)]:return _0xcbe926(0x4d3);}}function To(_0x37e901){const _0xd5c777=_0xcc124c,{status$:_0x44dcef}=_0x37e901,_0x10ff0c=_0x137f69(_0x44dcef,P[_0xd5c777(0x4aa)]),_0x497a92=_0x4242ff(_0x991281),_0x20c6ab=_0x4242ff(he),_0x4db4c0=_0x10ff0c!==P[_0xd5c777(0x1d8)],_0x7d916b=_0x497a92['t'](bo(_0x10ff0c)),_0x46bb02=So(Pe['onlineStatus'],{[Pe['online']]:_0x4db4c0,[Pe[_0xd5c777(0x448)]]:!_0x4db4c0}),_0x5c5bed=_0x4db4c0?_0x12d0e8[_0xd5c777(0x3de)](Js,null):_0x12d0e8[_0xd5c777(0x3de)](qs,null),_0x3a0255=_0x3796a9(()=>{const _0x386dcc=_0xd5c777;_0x4db4c0||_0x20c6ab[_0x386dcc(0x4ca)]();},[_0x4db4c0,_0x20c6ab]);function _0xf269a9(){const _0x4e9086=_0xd5c777;return _0x12d0e8[_0x4e9086(0x3de)]('div',{'className':_0x46bb02,'onClick':_0x3a0255},_0x12d0e8[_0x4e9086(0x3de)](_0x4e9086(0x41f),{'className':Pe[_0x4e9086(0x37e)]},_0x5c5bed),_0x12d0e8[_0x4e9086(0x3de)](_0x4e9086(0x41f),{'className':Pe['onlineStatusTitle']},_0x7d916b));}return _0x4db4c0?_0xf269a9():_0x12d0e8[_0xd5c777(0x3de)](_0x2cafc6,{'title':_0x497a92['t']('collab-client.tooltip.reconnect')},_0xf269a9());}var Ro=Object[_0xcc124c(0x2ad)],Oo=Object[_0xcc124c(0x3f2)],Do=(_0x57db0d,_0x440756,_0x30fbf6,_0x17eb50)=>{for(var _0x3d7a39=_0x17eb50>0x1?void 0x0:_0x17eb50?Oo(_0x440756,_0x30fbf6):_0x440756,_0x5392fb=_0x57db0d['length']-0x1,_0x556537;_0x5392fb>=0x0;_0x5392fb--)(_0x556537=_0x57db0d[_0x5392fb])&&(_0x3d7a39=(_0x17eb50?_0x556537(_0x440756,_0x30fbf6,_0x3d7a39):_0x556537(_0x3d7a39))||_0x3d7a39);return _0x17eb50&&_0x3d7a39&&Ro(_0x440756,_0x30fbf6,_0x3d7a39),_0x3d7a39;},Be=(_0x56fc50,_0x32d04e)=>(_0x24b9b,_0x57b891)=>_0x32d04e(_0x24b9b,_0x57b891,_0x56fc50);let Me=class extends _0x4dfcd2{constructor(_0x70fbee,_0x58a0c8,_0x3038c4,_0x1fce66){const _0x28fbdc=_0xcc124c;super(),l(this,_0x28fbdc(0x46b),new _0x3708bc(P['NOT_COLLAB'])),(this['_univerInstanceService']=_0x70fbee,this[_0x28fbdc(0x3a5)]=_0x58a0c8,this[_0x28fbdc(0x2bb)]=_0x3038c4,this['_collaborationController']=_0x1fce66,this[_0x28fbdc(0x482)](),this[_0x28fbdc(0x212)]());}[_0xcc124c(0x212)](){const _0x5595fe=_0xcc124c;this[_0x5595fe(0x379)](this[_0x5595fe(0x268)][_0x5595fe(0x400)]['pipe'](_0x2b1c92(()=>{const _0x4b6706=_0x5595fe,_0x884eb0=this[_0x4b6706(0x268)][_0x4b6706(0x270)]();return _0x884eb0?this[_0x4b6706(0x279)]['getCollabEntity$'](_0x884eb0[_0x4b6706(0x43f)]()):_0x226e5d(null);}),_0x2b1c92(_0x35f021=>_0x35f021?_0x35f021['status$']:_0x226e5d(P['NOT_COLLAB'])))[_0x5595fe(0x3ac)](_0x49a5dd=>{const _0x1facb7=_0x5595fe;this[_0x1facb7(0x46b)]['next'](_0x49a5dd);}));}[_0xcc124c(0x482)](){const _0xb86d8e=_0xcc124c;this[_0xb86d8e(0x379)](this[_0xb86d8e(0x3a5)][_0xb86d8e(0x2c0)](_0x76aa4b[_0xb86d8e(0x28e)],()=>_0x219167(wo({'status$':this['_status$'][_0xb86d8e(0x407)]()}),this['_injector'])));}};Me=Do([Be(0x0,_0x4a621b),Be(0x1,_0x226075),Be(0x2,_0xa01556(_0x3064b3)),Be(0x3,_0xa01556(Le))],Me);function _0x293d(_0xfd7129,_0x24196a){const _0x255496=_0x2554();return _0x293d=function(_0x293d88,_0xdd4ac5){_0x293d88=_0x293d88-0x1ac;let _0x101b63=_0x255496[_0x293d88];return _0x101b63;},_0x293d(_0xfd7129,_0x24196a);}function wo(_0x3ea7c1){const {status$:_0x1e8feb}=_0x3ea7c1;return function(){const _0x49b508=_0x293d;return _0x12d0e8[_0x49b508(0x3de)](To,{'status$':_0x1e8feb});};}const Zs=_0x49cd73('uni.network.url-service');var Po=Object[_0xcc124c(0x2ad)],yo=Object[_0xcc124c(0x3f2)],Uo=(_0x1a1c99,_0x263b7b,_0x3608d1,_0x49ef22)=>{for(var _0x296123=_0x49ef22>0x1?void 0x0:_0x49ef22?yo(_0x263b7b,_0x3608d1):_0x263b7b,_0x245e73=_0x1a1c99['length']-0x1,_0x555ea2;_0x245e73>=0x0;_0x245e73--)(_0x555ea2=_0x1a1c99[_0x245e73])&&(_0x296123=(_0x49ef22?_0x555ea2(_0x263b7b,_0x3608d1,_0x296123):_0x555ea2(_0x296123))||_0x296123);return _0x49ef22&&_0x296123&&Po(_0x263b7b,_0x3608d1,_0x296123),_0x296123;},ge=(_0x57fcb0,_0x4a6ff4)=>(_0x4a496e,_0x35d81c)=>_0x4a6ff4(_0x4a496e,_0x35d81c,_0x57fcb0);let Je=class extends _0xb64757{constructor(_0x413333,_0x2fcc5f,_0x263be5,_0x227d54,_0xb43a18,_0x5c49a8){const _0x573e64=_0xcc124c;super(),this[_0x573e64(0x470)]=_0x413333,this['_logService']=_0x2fcc5f,this[_0x573e64(0x232)]=_0x263be5,this[_0x573e64(0x2ed)]=_0x227d54,this[_0x573e64(0x3c6)]=_0xb43a18,_0x5c49a8?_0x5c49a8==null||_0x5c49a8[_0x573e64(0x48f)]()[_0x573e64(0x520)](()=>this['_init']()):(this[_0x573e64(0x1b0)][_0x573e64(0x4a4)](_0x573e64(0x261),_0x573e64(0x44e)),this[_0x573e64(0x203)]());}async[_0xcc124c(0x203)](){const _0x2fce9f=_0xcc124c,_0x2cf397=this['_urlService']['getParam']('unit'),_0x172ae0=this[_0x2fce9f(0x470)]['getParam'](_0x2fce9f(0x23d));if(!_0x2cf397||!_0x172ae0){this['_logService'][_0x2fce9f(0x4a4)]('[DataLoaderController]',_0x2fce9f(0x2a1));return;}switch(Number(_0x172ae0)){case k[_0x2fce9f(0x3e5)]:{const _0x712a83=await this[_0x2fce9f(0x222)](_0x2cf397);this[_0x2fce9f(0x383)](_0x712a83);break;}case k[_0x2fce9f(0x215)]:{await this['_loadDoc'](_0x2cf397);break;}default:{this[_0x2fce9f(0x1b0)][_0x2fce9f(0x1b3)]('[DataLoaderController]',_0x2fce9f(0x4dd));break;}}}async[_0xcc124c(0x383)](_0x3a9c36){const _0x268c7f=_0xcc124c;await this['_updateSubUnitFromURLParams'](_0x3a9c36),_0x3a9c36[_0x268c7f(0x42e)][_0x268c7f(0x4f2)](_0x2cf076(this['dispose$']))[_0x268c7f(0x3ac)](_0x14bebb=>{const _0x2d1de1=_0x268c7f;_0x14bebb&&this[_0x2d1de1(0x267)](_0x14bebb);}),this[_0x268c7f(0x470)]['urlChange$'][_0x268c7f(0x4f2)](_0x2cf076(this['dispose$']))[_0x268c7f(0x3ac)](()=>this['_updateSubUnitFromURLParams'](_0x3a9c36));}[_0xcc124c(0x267)](_0xadc2d6,_0x7fb380=!0x1){const _0x1e719c=_0xcc124c,_0x2bb56d=this[_0x1e719c(0x470)]['getParam']('subunit');_0xadc2d6['getSheetId']()!==_0x2bb56d&&this[_0x1e719c(0x470)]['setParam'](_0x1e719c(0x3be),_0xadc2d6['getSheetId'](),_0x7fb380);}async['_updateSubUnitFromURLParams'](_0x2f2636){const _0x49c5ed=_0xcc124c;var _0x174fde;const _0xad541f=this[_0x49c5ed(0x470)][_0x49c5ed(0x1b7)](_0x49c5ed(0x3be));if(!_0xad541f||!_0x2f2636[_0x49c5ed(0x244)](_0xad541f)){const _0x27be20=_0x2f2636['getUnhiddenWorksheets']()[0x0],_0xb6efad=_0x2f2636[_0x49c5ed(0x244)](_0x27be20);if(!_0xb6efad)return;this[_0x49c5ed(0x267)](_0xb6efad,!0x0),await this['_commandService']['executeCommand'](_0x2f1d57['id'],{'unitId':_0x2f2636[_0x49c5ed(0x43f)](),'subUnitId':_0x27be20});return;}((_0x174fde=_0x2f2636[_0x49c5ed(0x1e8)]())==null?void 0x0:_0x174fde['getSheetId']())!==_0xad541f&&await this[_0x49c5ed(0x232)]['executeCommand'](_0x2f1d57['id'],{'unitId':_0x2f2636[_0x49c5ed(0x43f)](),'subUnitId':_0xad541f});}async[_0xcc124c(0x222)](_0x1a5299){const _0x5aa8c0=_0xcc124c;let _0x4d83a8=0x0;const _0x46719a=await this[_0x5aa8c0(0x2ed)]['loadOfflineData'](_0x1a5299);return _0x46719a&&(_0x46719a[_0x5aa8c0(0x3d1)]||_0x46719a[_0x5aa8c0(0x4d0)][_0x5aa8c0(0x236)]!==0x0)&&(_0x4d83a8=_0x46719a['rev']),_0x4d83a8===0x0&&this[_0x5aa8c0(0x1b0)][_0x5aa8c0(0x4a4)](_0x5aa8c0(0x261),_0x5aa8c0(0x284)),this[_0x5aa8c0(0x3c6)][_0x5aa8c0(0x447)](_0x1a5299,_0x4d83a8);}async[_0xcc124c(0x4e1)](_0x3f5aca){const _0x4035cf=_0xcc124c;let _0x12dd8c=0x0;const _0x38ed60=await this[_0x4035cf(0x2ed)][_0x4035cf(0x42a)](_0x3f5aca);return _0x38ed60&&(_0x38ed60[_0x4035cf(0x3d1)]||_0x38ed60[_0x4035cf(0x4d0)]['length']!==0x0)&&(_0x12dd8c=_0x38ed60['rev']),_0x12dd8c===0x0&&this[_0x4035cf(0x1b0)][_0x4035cf(0x4a4)](_0x4035cf(0x261),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x4035cf(0x3c6)][_0x4035cf(0x47a)](_0x3f5aca,_0x12dd8c);}};Je=Uo([ge(0x0,Zs),ge(0x1,_0x40bb6c),ge(0x2,_0x4ba546),ge(0x3,_0xa01556(w)),ge(0x4,_0xa01556(_0x484548)),ge(0x5,_0x18dda4(_0x4f7c2f))],Je);var No=Object[_0xcc124c(0x2ad)],Mo=Object['getOwnPropertyDescriptor'],Ao=(_0xee005a,_0x2bc5ca,_0x4eb8af,_0x4be65f)=>{const _0x52468f=_0xcc124c;for(var _0x284fc1=_0x4be65f>0x1?void 0x0:_0x4be65f?Mo(_0x2bc5ca,_0x4eb8af):_0x2bc5ca,_0x246c45=_0xee005a[_0x52468f(0x236)]-0x1,_0x1c724d;_0x246c45>=0x0;_0x246c45--)(_0x1c724d=_0xee005a[_0x246c45])&&(_0x284fc1=(_0x4be65f?_0x1c724d(_0x2bc5ca,_0x4eb8af,_0x284fc1):_0x1c724d(_0x284fc1))||_0x284fc1);return _0x4be65f&&_0x284fc1&&No(_0x2bc5ca,_0x4eb8af,_0x284fc1),_0x284fc1;},Ss=(_0x771213,_0xf1caa6)=>(_0x32721d,_0x58e378)=>_0xf1caa6(_0x32721d,_0x58e378,_0x771213);const Lo=_0xcc124c(0x4ba),$o='Univer';let ze=class extends _0x4dfcd2{constructor(_0xc465,_0x290709){const _0x1044a4=_0xcc124c;super(),this['_univerInstanceService']=_0xc465,this[_0x1044a4(0x3f6)]=_0x290709,this[_0x1044a4(0x203)]();}[_0xcc124c(0x203)](){const _0x5d80a4=_0xcc124c;this[_0x5d80a4(0x379)](this['_univerInstanceService'][_0x5d80a4(0x400)][_0x5d80a4(0x3ac)](()=>{const _0xc0fd6a=_0x5d80a4;var _0xe8e00c;const _0x4d8347=this[_0xc0fd6a(0x268)][_0xc0fd6a(0x270)]();let _0x1e9451=(_0xe8e00c=this[_0xc0fd6a(0x3f6)][_0xc0fd6a(0x463)](Lo))!=null?_0xe8e00c:$o;_0x4d8347 instanceof _0x45305d&&(_0x1e9451=_0x4d8347[_0xc0fd6a(0x2d1)]),document[_0xc0fd6a(0x305)]=_0x1e9451;}));}};ze=Ao([Ss(0x0,_0x4a621b),Ss(0x1,_0xf5edd1)],ze);var jo=Object[_0xcc124c(0x2ad)],Ho=Object[_0xcc124c(0x3f2)],xo=(_0x26916f,_0x47603c,_0x4f6950,_0x2d3866)=>{const _0x2cbee9=_0xcc124c;for(var _0x2ea0a1=_0x2d3866>0x1?void 0x0:_0x2d3866?Ho(_0x47603c,_0x4f6950):_0x47603c,_0x5cce08=_0x26916f[_0x2cbee9(0x236)]-0x1,_0x10cb90;_0x5cce08>=0x0;_0x5cce08--)(_0x10cb90=_0x26916f[_0x5cce08])&&(_0x2ea0a1=(_0x2d3866?_0x10cb90(_0x47603c,_0x4f6950,_0x2ea0a1):_0x10cb90(_0x2ea0a1))||_0x2ea0a1);return _0x2d3866&&_0x2ea0a1&&jo(_0x47603c,_0x4f6950,_0x2ea0a1),_0x2ea0a1;},St=(_0x2b174f,_0x26946d)=>(_0x7fcadb,_0x441192)=>_0x26946d(_0x7fcadb,_0x441192,_0x2b174f);let Ze=class{constructor(_0x5c531d,_0x5ee01a,_0xa12482){const _0xdcc869=_0xcc124c;this['_configService']=_0x5c531d,this['_httpService']=_0x5ee01a,this[_0xdcc869(0x351)]=_0xa12482,this[_0xdcc869(0x28f)]();}[_0xcc124c(0x28f)](){const _0x4f73c3=_0xcc124c;this[_0x4f73c3(0x3aa)][_0x4f73c3(0x3fa)]({'priority':0x1,'interceptor':(_0x355d92,_0x4f084c)=>_0x4f084c(_0x355d92)[_0x4f73c3(0x4f2)](_0x2e3fd6(async _0x17885f=>{const _0x38e8d2=_0x4f73c3,_0x540e1a=_0x17885f;if(_0x540e1a[_0x38e8d2(0x35d)]===0x191&&window['confirm'](this[_0x38e8d2(0x351)]['t'](_0x38e8d2(0x4af)))){const _0x140f19=window[_0x38e8d2(0x355)](window[_0x38e8d2(0x4f4)][_0x38e8d2(0x3ae)]);window[_0x38e8d2(0x4f4)]['href']=this['_getLoginPath']()+'?url='+_0x140f19;}return _0x540e1a;}))});}[_0xcc124c(0x31c)](){const _0x313e30=_0xcc124c;var _0x119ecb,_0x3b81b4;const _0x93d157=this[_0x313e30(0x3f6)]['getConfig'](Ln),_0x33c0d2=this[_0x313e30(0x3f6)][_0x313e30(0x463)]($);return(_0x3b81b4=(_0x119ecb=_0x33c0d2==null?void 0x0:_0x33c0d2[_0x313e30(0x3a8)])!=null?_0x119ecb:_0x93d157)!=null?_0x3b81b4:$n;}};Ze=xo([St(0x0,_0xf5edd1),St(0x1,_0xa01556(_0x5f5876)),St(0x2,_0xa01556(_0x991281))],Ze);var ko=Object[_0xcc124c(0x2ad)],Bo=Object['getOwnPropertyDescriptor'],Vo=(_0x3336d8,_0x2d0879,_0x1084a2,_0x36cc7c)=>{for(var _0x5c1d96=_0x36cc7c>0x1?void 0x0:_0x36cc7c?Bo(_0x2d0879,_0x1084a2):_0x2d0879,_0x590997=_0x3336d8['length']-0x1,_0x501660;_0x590997>=0x0;_0x590997--)(_0x501660=_0x3336d8[_0x590997])&&(_0x5c1d96=(_0x36cc7c?_0x501660(_0x2d0879,_0x1084a2,_0x5c1d96):_0x501660(_0x5c1d96))||_0x5c1d96);return _0x36cc7c&&_0x5c1d96&&ko(_0x2d0879,_0x1084a2,_0x5c1d96),_0x5c1d96;},ps=(_0x42ffce,_0x645f06)=>(_0x32b90a,_0x38e784)=>_0x645f06(_0x32b90a,_0x38e784,_0x42ffce);const Fo=_0xcc124c(0x3af),Wo=_0xcc124c(0x2c6);let yt=class extends _0x4dfcd2{constructor(_0x5af176,_0x1380c0){const _0x272187=_0xcc124c;super(),this[_0x272187(0x1fa)]=_0x5af176,this[_0x272187(0x3f6)]=_0x1380c0,this[_0x272187(0x24b)]();}[_0xcc124c(0x24b)](){const _0x4aa435=_0xcc124c,_0x28d3a6=this;this[_0x4aa435(0x379)](this['_HTTPService'][_0x4aa435(0x3fa)]({'priority':0x3e7,'interceptor':_0x4d0cc4({'isMatch'(_0x4f5d6c){const _0x285f12=_0x4aa435;var _0x2065f6;if(_0x4f5d6c['method']===_0x285f12(0x42b)&&((_0x2065f6=_0x4f5d6c[_0x285f12(0x308)])!=null&&_0x2065f6[_0x285f12(0x2b7)])){const {objectID:_0x56b870,objectType:_0x3854d0}=_0x4f5d6c[_0x285f12(0x308)][_0x285f12(0x2b7)]||{};if(!_0x56b870||_0x3854d0===void 0x0)return!0x1;const _0x117b02=_0x28d3a6['_getAPIPrefixPath']()+'/'+_0x3854d0+_0x285f12(0x502)+_0x56b870+_0x285f12(0x51a);if(_0x4f5d6c['url']===_0x117b02)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x44f3b3){const _0x3fd43a=_0x4aa435;var _0x2fb68d;return(_0x2fb68d=_0x44f3b3['requestParams'])==null?void 0x0:_0x2fb68d[_0x3fd43a(0x2b7)];},'mergeParamsToRequest'(_0x493178,_0x37f4c1){const _0x4d80da=_0x4aa435,_0x3e39cc=_0x28d3a6[_0x4d80da(0x23e)]()+_0x4d80da(0x47e),_0x523438=_0x493178[_0x4d80da(0x514)]((_0x2b7cfa,_0x52bbc7)=>{const _0x4f7f6d=_0x4d80da,{unitID:_0x4ea454,objectID:_0x206ac8,objectType:_0x56da28,actions:_0x154836}=_0x52bbc7;return _0x2b7cfa[_0x4ea454]||(_0x2b7cfa[_0x4ea454]={}),_0x2b7cfa[_0x4ea454][_0x206ac8]||(_0x2b7cfa[_0x4ea454][_0x206ac8]={'objectID':_0x206ac8,'objectType':_0x56da28,'actions':[]}),_0x2b7cfa[_0x4ea454][_0x206ac8]['actions'][_0x4f7f6d(0x4c7)](..._0x154836),_0x2b7cfa;},{}),_0x49c021=[];for(const _0x3a31a5 in _0x523438)for(const _0x20bf3f in _0x523438[_0x3a31a5]){const {actions:_0x2c6b68,objectType:_0x23b0dd}=_0x523438[_0x3a31a5][_0x20bf3f],_0x1f0185=[...new Set(_0x2c6b68)];_0x49c021[_0x4d80da(0x4c7)]({'unitID':_0x3a31a5,'objectID':_0x20bf3f,'objectType':_0x23b0dd,'actions':_0x1f0185});}return new _0x442990(_0x4d80da(0x42b),_0x3e39cc,{'headers':_0x37f4c1[_0x4d80da(0x2f9)],'withCredentials':_0x37f4c1[_0x4d80da(0x4ad)],'responseType':_0x37f4c1[_0x4d80da(0x455)],'body':{'requests':_0x49c021}});}},{'distributeResult'(_0x3953e,_0x5cf75f){const _0x55f973=_0x4aa435,{objectActions:_0x567554}=_0x3953e;return _0x5cf75f[_0x55f973(0x2f3)](_0x302306=>{const _0x3c9c6c=_0x55f973,{unitID:_0x159605,objectID:_0x127440,actions:_0x2d0f3f}=_0x302306,_0x1ec0c4=_0x567554[_0x3c9c6c(0x21b)](_0x5242fc=>_0x5242fc[_0x3c9c6c(0x38f)]===_0x159605&&_0x5242fc['objectID']===_0x127440),_0xca6205=_0x2d0f3f['map'](_0x43f6df=>_0x1ec0c4==null?void 0x0:_0x1ec0c4[_0x3c9c6c(0x27b)][_0x3c9c6c(0x21b)](_0x283eb0=>_0x283eb0[_0x3c9c6c(0x1df)]===_0x43f6df))[_0x3c9c6c(0x4e3)](_0x391c97=>!!_0x391c97);return{'config':_0x302306,'result':{'actions':_0xca6205,'error':_0x3953e[_0x3c9c6c(0x1b3)]}};});}})}));}[_0xcc124c(0x23e)](){const _0x539431=_0xcc124c;var _0x2445e6,_0x1d7727;const _0x32da24=this['_configService'][_0x539431(0x463)](Fo),_0x1ee9e4=this['_configService'][_0x539431(0x463)]($);return(_0x1d7727=(_0x2445e6=_0x1ee9e4==null?void 0x0:_0x1ee9e4[_0x539431(0x467)])!=null?_0x2445e6:_0x32da24)!=null?_0x1d7727:Wo;}async['create'](_0x3f7553){const _0xa9b865=_0xcc124c,_0x355101=this[_0xa9b865(0x23e)]()+'/'+_0x3f7553['objectType']+'/object';return(await this['_HTTPService'][_0xa9b865(0x533)](_0x355101,{'body':_0x3f7553}))[_0xa9b865(0x2b7)][_0xa9b865(0x2e4)]||'';}async[_0xcc124c(0x4b2)](_0xbda7fa){const _0x4c0cb4=_0xcc124c,_0x1bc736=this[_0x4c0cb4(0x23e)]()+'/-/object/list';return(await this[_0x4c0cb4(0x1fa)][_0x4c0cb4(0x533)](_0x1bc736,{'body':_0xbda7fa}))[_0x4c0cb4(0x2b7)][_0x4c0cb4(0x1cc)];}async['update'](_0x2905b8){const _0x3687d2=_0xcc124c,_0xd34802=this[_0x3687d2(0x23e)]()+'/'+_0x2905b8[_0x3687d2(0x33c)]+_0x3687d2(0x502)+_0x2905b8[_0x3687d2(0x2e4)];await this['_HTTPService']['put'](_0xd34802,{'body':_0x2905b8});}async['allowed'](_0x248e19){const _0x1fabcd=_0xcc124c,_0x2082f8=this['_getAPIPrefixPath']()+'/'+_0x248e19[_0x1fabcd(0x33c)]+_0x1fabcd(0x502)+_0x248e19[_0x1fabcd(0x2e4)]+_0x1fabcd(0x51a);return(await this[_0x1fabcd(0x1fa)]['post'](_0x2082f8,{'body':_0x248e19}))[_0x1fabcd(0x2b7)]['actions'];}async[_0xcc124c(0x4ea)](_0x1ed38){const _0x3f7da7=_0xcc124c,_0x4baf8b=this[_0x3f7da7(0x23e)]()+_0x3f7da7(0x47e);return(await this['_HTTPService']['post'](_0x4baf8b,{'body':{'requests':_0x1ed38}}))[_0x3f7da7(0x2b7)][_0x3f7da7(0x33e)];}async['listRoles'](_0x4059e7){const _0x3aecb7=_0xcc124c,_0x1692df=this['_getAPIPrefixPath']()+'/'+_0x4059e7[_0x3aecb7(0x33c)]+_0x3aecb7(0x37a),_0x54a4c5=await this['_HTTPService'][_0x3aecb7(0x533)](_0x1692df,{'body':_0x4059e7});return{'roles':_0x54a4c5[_0x3aecb7(0x2b7)][_0x3aecb7(0x2e0)],'actions':_0x54a4c5[_0x3aecb7(0x2b7)][_0x3aecb7(0x27b)]};}async['deleteCollaborator'](_0x25f723){const _0x24f421=_0xcc124c,_0x457bfe=this['_getAPIPrefixPath']()+_0x24f421(0x281);await this[_0x24f421(0x1fa)][_0x24f421(0x3bd)](_0x457bfe,{'params':{'collaboratorID':_0x25f723[_0x24f421(0x4e8)],'objectID':_0x25f723['objectID'],'unitID':_0x25f723[_0x24f421(0x38f)]}});}async[_0xcc124c(0x26c)](_0x1a798e){const _0x57819a=_0xcc124c,_0x109dd4=this[_0x57819a(0x23e)]()+_0x57819a(0x281);await this[_0x57819a(0x1fa)][_0x57819a(0x444)](_0x109dd4,{'body':_0x1a798e});}async[_0xcc124c(0x2a2)](_0x1863ca){const _0x502cc4=_0xcc124c,_0x4d819b=this[_0x502cc4(0x23e)]()+_0x502cc4(0x281);await this['_HTTPService']['post'](_0x4d819b,{'body':_0x1863ca});}async[_0xcc124c(0x34b)](_0x593048){const _0x1c0d34=_0xcc124c,_0x3b505e=this['_getAPIPrefixPath']()+_0x1c0d34(0x281);return(await this[_0x1c0d34(0x1fa)][_0x1c0d34(0x4e6)](_0x3b505e,{'params':{'objectID':_0x593048['objectID'],'unitID':_0x593048[_0x1c0d34(0x38f)]}}))[_0x1c0d34(0x2b7)][_0x1c0d34(0x1e1)];}async[_0xcc124c(0x4f1)](_0x6c5d83){const _0x385de3=_0xcc124c,_0xd1abe1=this[_0x385de3(0x23e)]()+'/collaborator';await this[_0x385de3(0x1fa)][_0x385de3(0x3c5)](_0xd1abe1,{'body':_0x6c5d83});}};yt=Vo([ps(0x0,_0xa01556(_0x5f5876)),ps(0x1,_0xa01556(_0xf5edd1))],yt);var Go=Object['defineProperty'],Yo=Object[_0xcc124c(0x3f2)],Ko=(_0x46cb73,_0x211abf,_0x2295a3,_0x52fac8)=>{const _0x16052b=_0xcc124c;for(var _0x314ce5=_0x52fac8>0x1?void 0x0:_0x52fac8?Yo(_0x211abf,_0x2295a3):_0x211abf,_0x55ec4c=_0x46cb73[_0x16052b(0x236)]-0x1,_0xffeef3;_0x55ec4c>=0x0;_0x55ec4c--)(_0xffeef3=_0x46cb73[_0x55ec4c])&&(_0x314ce5=(_0x52fac8?_0xffeef3(_0x211abf,_0x2295a3,_0x314ce5):_0xffeef3(_0x314ce5))||_0x314ce5);return _0x52fac8&&_0x314ce5&&Go(_0x211abf,_0x2295a3,_0x314ce5),_0x314ce5;},Xo=(_0x1d1f41,_0x532eb0)=>(_0x38861a,_0x1149d6)=>_0x532eb0(_0x38861a,_0x1149d6,_0x1d1f41);let Qe=class{constructor(_0x3e33c7){const _0x4ba1db=_0xcc124c;this[_0x4ba1db(0x3aa)]=_0x3e33c7,this['_initRequestHeader']();}[_0xcc124c(0x46f)](){const _0x30db4c=_0xcc124c;this[_0x30db4c(0x3aa)][_0x30db4c(0x3fa)]({'interceptor':(_0x4288b4,_0x816347)=>{const _0x1c2117=_0x30db4c,_0x3b00e0=_0x4288b4[_0x1c2117(0x2f9)],_0x74aa41=_0x50fbca();return _0x74aa41&&_0x3b00e0['set'](_0x1c2117(0x3da),_0x74aa41),_0x816347(_0x4288b4);}});}};Qe=Ko([Xo(0x0,_0xa01556(_0x5f5876))],Qe);var qo=Object['defineProperty'],Jo=Object['getOwnPropertyDescriptor'],zo=(_0x5b5b17,_0x5ee9b0,_0x300ccd,_0x1ad895)=>{for(var _0x300888=_0x1ad895>0x1?void 0x0:_0x1ad895?Jo(_0x5ee9b0,_0x300ccd):_0x5ee9b0,_0x20b508=_0x5b5b17['length']-0x1,_0x802d46;_0x20b508>=0x0;_0x20b508--)(_0x802d46=_0x5b5b17[_0x20b508])&&(_0x300888=(_0x1ad895?_0x802d46(_0x5ee9b0,_0x300ccd,_0x300888):_0x802d46(_0x300888))||_0x300888);return _0x1ad895&&_0x300888&&qo(_0x5ee9b0,_0x300ccd,_0x300888),_0x300888;},pt=(_0x5d3969,_0x11782b)=>(_0x2faece,_0x507d9c)=>_0x11782b(_0x2faece,_0x507d9c,_0x5d3969);function _0x2554(){const _0x3aaed2=['_initRequestHeader','_urlService','prototype','registerRefRange','setShapeProps','/universer-api/snapshot','UNKNOWN_CMD','_assignedColors','getDeserializedSheetBlock','univerjs-icon\x20univerjs-icon-','_updateLocalCache','loadDoc','[OfflineState]:\x20received\x20changeset.','trim','includes','/-/object/-/batch_allowed','backgroundColor','getResourcesRequest','assignAColorForMemberID','_initStatusComponent','_draw','_telemetryService','_backgroundColor','_scheduleSaving','font','onSendChangeset','_colorIndex','HttpExport','max','_refRangeService','OnLineSingle','result','whenReady','width','_id','complete','[UniverCollaborationClientPlugin]','\x20in\x20_schedule.','/unit/','_getCtorByUniverType','src','capture','awaiting','unitId','close','executeCommand','LEAVE','readAsDataURL','getOwnPropertySymbols','_initModules','collab-text-anchor-','SUCCUSS','onPointerLeave$','debug','addObject','INVALID_ARGUMENT','_docStateChangeManagerService','onlyLocal','override','NOT_COLLAB','CHANGESET_ACK','RemoveRowCommandId','withCredentials','_decreaseWaiting','auth.needGotoLoginAlert','startTime','deepClone','list','_name','_sheetSkeletonManagerService','unit-cache-','OTHER_CLIENTS_EDITING','MSG_FOR_ERROR','...','_getMergeRange','DEFAULT_FILE_NAME','_transformService','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','onTransformIME','_submitChangeset','_undoRedoService','toggleOffline','_startSheetCollabCursor','FAIL','setAlpha','transformByState','visibilitychange','_onRecvEvent','push','collaboration-session-retry','skeleton','reconnect','_eventUnsubscribe','_changesetSessionId','text','_showConflictNotification','collab-rect-range-','mutations','onTransformRemoteChangesetByIMECache','getDocRanges','collabStatus.synced','image/jpeg','_renderManagerService','doc.mutation.rich-text-editing','_heartbeatTimer','set','univer-pro.collaboration-client-socket-service','univer-online-status-icon','_awaitingChangeset','startRow','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_drawAnchor','incrementRevOfUnit','getTime','_loadDoc','current','filter','_transitionLocked','object','get','_retryConnectingTimer','collaboratorID','CHANGESET_REVISION_CONFILICT','batchAllowed','YUUMI_SUBSCRIPTION_NOT_FOUND','updateOfflineData','saveChangeset','pending','_config','sheetID','putCollaborators','pipe','m2Prime','location','\x0aAfter:\x20','rng','onTransformSelections','[CollaborationSessionService]','NEW_CHANGESETS','collaboration.closeRoom','onSyncEditingCollabCursor','getRoom','_socketMessageSubscription','idSuffix','getImageSourceCache','string','onRemoteRej','/object/','failed\x20to\x20apply\x20missed\x20changesets!','_executeRemoteChangeset','replaceState','liveShareNewHost','conflict','_getAnchorBounding','transformMutation','_commentService','url(#on-line-single_clip0_910_349)','with','HEARTBEAT_INTERVAL','sid','color','966180WMMluF','_initResize','_sessions','isActive','reduce','liveShareOperation','bind','_selfUnitIDs','_transformUndoRedoStack','restore','/allowed','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_localeService','UNKNOWN_CODE','shouldCloseConn','substring','then','getRandomValues','getUnit','collabCursorState$','sessionStatus','resolve','_telemetryInfo','_singleActiveUnitService','_commentUpdate$','_online','_getUploadFileURL','_http','_docTransformSelectionsService','blue400','parse','height','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','syncEditingCollabCursor','getUnitOnRev','post','getMemberID','_resendTimeout','members','close$','APPLY_PERMISSION_DENIED','_logService','disableLocalCache','INTERNAL_ERROR','error','_revisionService','_hideTimer','hasOwnProperty','getParam','[FetchMissState]','show','/universer-api/comb','_substituteRedoStack','setInterval','SNAPSHOT_INVALID_SNAPSHOT','485991AgyHMK','c2Prime','jiqing500','attrs','_collaborationTimeoutTimer','_changesetReqId','_handleHover','_remoteChangesetQueue','_clearTimeoutTimer','&assign=','setParam','HEARTBEAT','_saveCache','UNIVER_COLLABORATION_CLIENT_PLUGIN','objects','docStateChange$','removeMember','next','concat','file','originalMeta','getViewport','_getSnapshotAPIPrefix','_onConnectionOpen','getMember','FromArray','OFFLINE','collaboration-client.offline-data-not-saved','1842764oCVeVT','fetch_missing','_pendingMutations','ACTIVE_UNIT_EVENT_CHANNEL','_syncEditingCollabCursor','action','_clearHeartbeatTimer','collaborators','transformMutationsWithChangeset','origin','endRow','UnitSnapshot','_clearCollaborationTimeoutTimer','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','getActiveSheet','getUndoRedoMutationParamsCache','getCurrentSelections','_drawTextRange','_localStorageService','pauseCollaboration','changesets','transformRemoteChangeset','transform','reqId','_scheduleCollaborationTimeoutTimer','createSocket','_incrementRevisionNumber','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','OffLineSingle','hidden','CONFLICT','_waitForHeartbeatResponse','_HTTPService','_transformUndoredo','equals','_cursors','fetching\x20missing\x20changesets\x20from\x20','_onLocalMutation','clipPath','updatePermissionPoint','_onCombEvent','_init','startColumn','12376LtMHhX','_createHandler','LIVESHARE_REQUEST_HOST','revision','_substituteUndoStack','/universer-api/file/{fileID}/sign-url','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','SEND_CHANGESET_TIMEOUT','_candidateSocket','_drawRectRange','params','getAncestorScale','onMissingChangesets','_initStatusListener','routeKey','getCellPositionByOffset','UNIVER_DOC','_sheetTransformSelectionsService','_collaborationPaused','_tryEnsureSocket','setUndoRedoMutationParamsCache','size','find','_snapshotServerService','getCollabEntity$','popstate','_themeService','unit','state$','_loadSheet','slice','APPLY_DUPLICATED','_checkMissing','getRangePointData','saveImage','_queuedRemoteChangesets','entries','_toggleOnline','_sender','target','defs','_state$','_collaborationSessionService','_resendTimer','call','_commandService','clear','stringify','_refreshCollabCursors','length','getWorkbookSelections','fillStyle','Unknown\x20user','sessionStatus$','currentSkeleton$','_registerRenderDependencies','type','_getAPIPrefixPath','saveOfflineData','onRendered','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','subscribeEvent','onReady','getSheetBySheetId','c1Prime','DeleteRangeMoveUpCommandId','cursorInfo','LIVESHARE_FETCH_OPERATIONS','getOffsetConfig','_socket$','_initMergeInterceptor','getValue','_collabCursorController','FETCH_MISSING','_onOffline','session.connection-failed','_applyRemoteChangeset','_anchorDot','fillRule','initWorkbookPermissionChange','[CollaborationSession]','SNAPSHOT_HAS_BEEN_REMOVED','onPointerEnter$','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','min','&source=','_transformRemoteChangesetByIMECache','_exhaustRemoteChangesetQueue','getInterceptPoints','_getSheetObject','_members','copyFileMeta','[DataLoaderController]','triggerDblclick','_startCollaboration','/rev/','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','add','_updateURLWithCurrentState','_univerInstanceService','_removeClearOtherTimer','setItem','image/jpg','updateCollaborator','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','exhaustSavingTask','BASE64','getFocusedUnit','RECV','_handleHeartbeatEvent','_updateLocalCursor','transformUndoRedo','resourceIDs','\x0aCurrent:\x20','_handleLeaveEvent','history','_collaborationController','[CollaborationState]:\x20apply\x20error!','actions','ws://127.0.0.1:8000/universer-api/comb/connect','setTimeout','send','_unlockTransition','/universer-api/stream/file/upload','/collaborator','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','unknown','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','transformChangesets','selection','transformStack\x20failed!','YUUMI_RATE_OVER_LIMIT','_lockTransition','socketService','resend','COLLAB_SUBMIT_CHANGESET_URL','tag','HEADER_MENU','init','_initUnitPermissionChange','YUUMI_URL_COL_OUT_OF_RANGE','fillText','createInstance','addImageSourceCache','pushState','PSEUDO_FETCH_MISSING_RESULT','collabSubmitChangesetUrl','signUrlServerUrl','[PendingState]:\x20received\x20acknowledgement.','/block/','LIVESHARE_NEW_HOST','ERROR_IMAGE','defIds','_handleJoinEvent','_saveTaskMap','LIVESHARE_TERMINATE','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','createCollaborator','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_sendingTimer','_replayCachedMutations','subUnitId','data','_sendHeartbeatTimer','UniverIcon','_startTelemetryCollaborationNewChangeset','_compressMutationService','_beforeCloseService','defineProperty','_onRemoteACK','_onFetchMissResult','_transformPreviousActiveRange','ALREADY_EXISTS','url(#$1','enableLocalCache','flatMap','event$','updateMember','body','_onConflict','AWAITING_WITH_PENDING','_scene','_injector','collaboration-client.config','off-line-single_clip0_910_343','_transformIMECache','HELLO','registerComponent','InsertRowCommandId','currentTheme$','\x20to\x20','_shapes','synced','/universer-api/authz','requireSession','onMissedChangesetFetched','onRemoteRetry','_memberService','APPLY_REVISION_CONFILICT','_tryReconnect','_disableEditing','unshift','_collabCursorState$','_collabSessionService','name','getActiveRange','conflict.content','_roomMembers','sheets','fetchMiss','/resources','collabStatus.fetchMiss','textRanges','infoRsp','_docTransformIMECacheService','Warning','_fetchMissChangesets','onMouseMove','open$','roles','_onCursorUpdate','dispose','_getSendChangesetTimeout','objectID','editingUnit','permission.content','json','[OfflineState]:\x20received\x20rejection.','transformIMECache','message$','from','COMPRESS_MUTATION_APPLY','_localCacheService','roomMembers$','lineTo','_sessionStatus$','_onRefRangeChange','enableSingleActiveInstanceLock','map','now','extend','endColumn','children','random','headers','10QKVTBt','downloadEndpointUrl','RemoveColCommandId','colorChannel1','79763lHOHfs','refreshPermission','use','_resendWithTimeout','_clearScheduledTask','_permissionService','getUnitType','title','_disabled','MUTATION','requestParams','xlink:href','_isPermissionRej','newValue','24XDPgwr','session.room-full','_unitID','setConfig','reverse','_range','fetchMissingChangesets','_cursorInfo$','number','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','getCurrent','addEventListener','permission.title','replace','_retryCount','searchParams','_getLoginPath','dispose$','userID','key','ERROR_EXCEED_SIZE','onRemoteChangeset','_createSocket','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','Error\x20on\x20receiving\x20event','_registerDependencies','SHOULD_CLOSE_CONN','_removeRoom','toString','_handler','_undoStacks','_syncEditingCollabCursorService','_notificationService','setCurrentUser','generateRandomId','DeleteRangeMoveLeftCommandId','_socketReady','updatePermissionObjEvent','_labelPosition','urlChange$','_onMessage','_socketService','_startDocCollabCursor','clearTimeout','_ensureSubject','_document','_cachedData','COLLAB_WEB_SOCKET_URL','objectType','univer-offline','objectActions','labelPosition','UPDATE_CURSOR','row','_render','commentUpdateEvent','url(#off-line-single_clip0_910_343)','PENDING','eventID','JOIN','_color','_send','getVpScrollXYInfoByPosToVp','listCollaborators','_onConnectionFailed','cursorInfo$','_lastPointer','column','LOGIN_URL_KEY','localeService','url','_onCursorDelete','?size=','encodeURIComponent','_listenToOnlineEvent','fill','_handleEvent','_getAPIPrefix','unsubscribe','M0\x200H16V16H0z','_onRemoteChangeset','status','_clearOtherTimers','awaiting_with_pending','_transformSelections','moveTo','_onRemoteRejected','baseRev','ONLINE','838170sVsRSs','0\x200\x2016\x2016','NOT_FOUND','gold400','_sendHeartbeat','collab-text-range-','cmd','toLowerCase','_clearUndo','session.will-retry','saveSheetBlock','_unitStatus','COMMENT_UPDATE','collabStatus.notCollab','values','sendChangesetTimeout','getSkeleton','_stopTelemetryCollaborationNewChangeset','_instanceService','m1Prime','disposeWithMe','/role','UNIVER_SLIDE','LICENSE_MAX_UNITS_EXCEEDED','indexOf','onlineStatusIcon','LICENSE_EXPORT_SIZE_EXCEEDED','15JMlWcI','error$','UnitEmbedded','_setupSubUnitSync','snapshot','CHANGESET_SHOULD_RETRY','UNDEFINED','IDLE','InsertRangeMoveRightCommandId','collabStatus.conflict','disposeUnit','catch','_removeCollabCursors','_getDownloadEndpointURL','[SyncedState]:\x20received\x20acknowledgement.','unitID','not_collab','_rescheduleHeartbeat','CHANGESET_REJ','isArray','_unitOnClients','EXCHANGE_SIGN_URL_SERVER_URL_KEY','toRgbString','SUBMIT_CHANGESET','LIVESHARE_OPERATION','_cursor','apply','makeDirty','ranges','[CollaborationEntity]','findNodePositionByCharIndex','_scheduleHeartbeat','UNAUTHENTICATED','roomMembers','_cursorShapes','onRemoteAck','_scheduleClearOtherTimer','_uiPartsService','storage','function','loginUrlKey','_timeoutTimer','_httpService','_transformStack','subscribe','_entities','href','AUTHZ_URL_KEY','_change$','_clearRedo','encode','stopTime','NO_OTHER_CLIENTS_EDITING','getCurrentUser','reject','getTypeOfUnitAdded$','icon','_waitCount','assign','some','_entityInit$','delete','subunit','status$','toggleOnline','registerRenderModule','drawWith','LOCAL_CACHE_INTERVAL','hide','put','_snapshotService','APPLY_REJECT','APPLY_NON_SEQUENTIAL_REVISION','_onRemoteRetry','Undefined','arc','PERMISSION_DENIED','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','_setupBeforeClosingHandler','_hover','telemetry\x20info\x20is\x20not\x20initialized','awaitingChangeset','onCommandExecuted','FileId','getImage','forEach','onPointerMove$','isPermissionRej','isEditing','LICENSE_IMPORT_SIZE_EXCEEDED','x-univer-host','getLatestCsReqIdBySid','getCurrentRevOfUnit','#fff','createElement','USERS_ENTER','replaceTextRanges','_getUndoStack','range','USERS_LEAVE','INGEST','UNIVER_SHEET','_shouldReportTelemetry','collabStatus.syncing','FETCH_MISS','_getSignURL','_context','_scheduleTimestamp','1em','_toggleOffline','updateCursorEvent','transformSelections','520040mAzfEd','duration','getOwnPropertyDescriptor','submit\x20changeset\x20error!','csShouldRetryEvent','_redoStacks','_configService','evenodd','joinRsp','path','registerHTTPInterceptor','_imageSourceCache','csAckEvent','_getSaveTimeout','_replaceFileID','_getCurrentRevision','focused$','_session','_docSkeletonManagerService','image/bmp','CONNECTOR_DATA_TOO_LARGE','univer-online-status','JOINING','asObservable','_ws','_docSkeleton','UPDATE_PERMISSION_OBJ','fromCollab','_acknowledgedAwaitingChangeset','purple300','_createInitialStateImpl','ENSURE_SNAPSHOT_EXECUTION','none','#FFF','online','black','interceptor','_initCommandExecutedListener','_event$','LICENSE_DISTRO_REJECTED','top','_userManagerService','_updateStatus','_updateCollabCursors','COMPLETION_FINISHED','UNIVER_PROJECT','_messageService','div','Error','UNRECOGNIZED','setActiveRange','every','on-line-single','hovered','_socket','closeSession','session','symbol','loadOfflineData','POST','save','contains','activeSheet$','split','clearInterval','_onUserLeave','getSheetBlock','HEARTBEAT_TIMEOUT','connection\x20error','startsWith','bottom','_clearLocalCache','_anchor','_textBubble','_docSyncEditingCollabCursorService','getTypeOfUnitDisposed$','setWaitCount','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','memberID','getUnitId','fetchThroughInterceptors','_schedule','displayName','translate(.97)','patch','AWAITING','_throwTelemetryCollaborationNewChangeset','loadSheet','offline','has','_hovered','\x20-\x20','[CollaborationUndoRedoService]','_state','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_getScale','getSheetId','_onUserJoin','getRenderById','getCollabCursors$','workbook','responseType','_colorAssignService','randomUUID','retryConnectingInterval','measureText','addObjects','on-line-single_clip0_910_349','_initCloseConn','appendMutation','_joinRoom','_getRedoStack','round','/universer-api/oidc/authpage','_updateState','getConfig','_initEventListeners','_roomMembers$','2MvaFKP','authzUrl','getUnitStatus$','SYNCED','className','_status$','_type','selections','{fileID}'];_0x2554=function(){return _0x3aaed2;};return _0x2554();}const Zo=['image/png',_0xcc124c(0x4d4),_0xcc124c(0x26b),'image/gif',_0xcc124c(0x403)],Qo=0x5*0x400*0x400,ea=_0xcc124c(0x265),ta=_0xcc124c(0x280),sa=_0xcc124c(0x395),ia=_0xcc124c(0x20a);let Ut=class{constructor(_0x307150,_0x57501c,_0x188b9a){const _0xaa4af=_0xcc124c;l(this,_0xaa4af(0x3b9),0x0),l(this,_0xaa4af(0x3b0),new _0x3ca740()),l(this,'change$',this[_0xaa4af(0x3b0)]),l(this,'_imageSourceCache',new Map()),(this['_httpService']=_0x307150,this['_configService']=_0x57501c,this[_0xaa4af(0x268)]=_0x188b9a);}[_0xcc124c(0x43c)](_0xd43b9){const _0x141f44=_0xcc124c;this['_waitCount']=_0xd43b9,this[_0x141f44(0x3b0)][_0x141f44(0x1cf)](_0xd43b9);}[_0xcc124c(0x4ff)](_0x2fcd20,_0x35e875){const _0x324573=_0xcc124c;if(_0x35e875===_0x23cb04[_0x324573(0x26f)]){const _0x329c98=new Image();return _0x329c98[_0x324573(0x497)]=_0x2fcd20,_0x329c98;}return this[_0x324573(0x3fb)][_0x324573(0x4e6)](_0x2fcd20);}[_0xcc124c(0x294)](_0x5ac3b3,_0x17a003,_0x51e925){const _0x512b25=_0xcc124c;_0x17a003===_0x23cb04[_0x512b25(0x26f)]||_0x51e925==null||this['_imageSourceCache'][_0x512b25(0x4d8)](_0x5ac3b3,_0x51e925);}async[_0xcc124c(0x3d4)](_0x487595){const _0x5a3c83=_0xcc124c;try{const _0x3ae111=this[_0x5a3c83(0x3fe)](this[_0x5a3c83(0x3e9)](),''+_0x487595),_0x2b309a=(await this[_0x5a3c83(0x3aa)][_0x5a3c83(0x4e6)](_0x3ae111))[_0x5a3c83(0x2b7)];if(_0x2b309a[_0x5a3c83(0x1b3)]&&_0x2b309a[_0x5a3c83(0x1b3)]['code']===xs['OK']){const _0x4a7285=new URL(_0x2b309a[_0x5a3c83(0x352)],this[_0x5a3c83(0x38d)]())['toString']();return Promise[_0x5a3c83(0x525)](_0x4a7285);}return Promise[_0x5a3c83(0x3b6)](_0x2b309a[_0x5a3c83(0x1b3)]);}catch(_0x5871cf){return Promise[_0x5a3c83(0x3b6)](_0x5871cf);}}async[_0xcc124c(0x227)](_0x66d0dc){const _0x1ceceb=_0xcc124c;let _0x1e76c6='';if(!Zo['includes'](_0x66d0dc['type']))return this[_0x1ceceb(0x4ae)](),Promise[_0x1ceceb(0x3b6)](new Error(_0x23a71['ERROR_IMAGE_TYPE']));if(_0x66d0dc[_0x1ceceb(0x21a)]>Qo)return this[_0x1ceceb(0x4ae)](),Promise['reject'](new Error(_0x23a71[_0x1ceceb(0x320)]));try{const _0x3a9180=new FormData();_0x3a9180['append'](_0x1ceceb(0x1d1),_0x66d0dc);const _0x4a6d3a=this[_0x1ceceb(0x268)][_0x1ceceb(0x270)](),_0x218bc0=_0x4a6d3a==null?void 0x0:_0x4a6d3a['getUnitId']();if(!_0x218bc0)throw new Error('unitId\x20is\x20not\x20found');const _0x16c8b7=this['_getUploadFileURL']()+_0x1ceceb(0x354)+_0x66d0dc[_0x1ceceb(0x21a)][_0x1ceceb(0x328)]()+_0x1ceceb(0x25a)+ks[_0x1ceceb(0x382)]+_0x1ceceb(0x1c7)+encodeURIComponent(_0x218bc0),_0x1e5fdd=await(await fetch(_0x16c8b7,{'method':_0x1ceceb(0x42b),'body':_0x3a9180}))[_0x1ceceb(0x2e7)]();if(typeof _0x1e5fdd[_0x1ceceb(0x3d3)]!=_0x1ceceb(0x500))return this[_0x1ceceb(0x4ae)](),Promise[_0x1ceceb(0x3b6)](new Error(_0x23a71[_0x1ceceb(0x29c)]));_0x1e76c6=_0x1e5fdd[_0x1ceceb(0x3d3)];}catch{return this['_decreaseWaiting'](),Promise[_0x1ceceb(0x3b6)](new Error(_0x23a71['ERROR_IMAGE']));}return new Promise((_0x5025c6,_0x5acbe9)=>{const _0x116008=_0x1ceceb,_0xa193f2=new FileReader();_0xa193f2[_0x116008(0x49e)](_0x66d0dc),_0xa193f2['onload']=_0x37b66f=>{const _0x338f7c=_0x116008;var _0x5bf277;const _0xce1ac9=(_0x5bf277=_0x37b66f[_0x338f7c(0x22c)])==null?void 0x0:_0x5bf277[_0x338f7c(0x48e)];if(_0xce1ac9==null){this[_0x338f7c(0x4ae)](),_0x5acbe9(new Error(_0x23a71[_0x338f7c(0x29c)]));return;}const _0x13f844=_0xe487b1[_0x338f7c(0x32e)](0x6);_0x5025c6({'imageId':_0x13f844,'imageSourceType':_0x23cb04['UUID'],'source':_0x1e76c6,'base64Cache':_0xce1ac9,'status':_0x23a71[_0x338f7c(0x4a2)]}),this[_0x338f7c(0x4ae)]();};});}[_0xcc124c(0x52a)](){const _0x3a52bf=_0xcc124c;var _0x3e3db7,_0x2cca33;const _0x1dae0b=this[_0x3a52bf(0x3f6)][_0x3a52bf(0x463)](ea),_0xb3188a=this[_0x3a52bf(0x3f6)][_0x3a52bf(0x463)]($);return(_0x2cca33=(_0x3e3db7=_0xb3188a==null?void 0x0:_0xb3188a['uploadFileServerUrl'])!=null?_0x3e3db7:_0x1dae0b)!=null?_0x2cca33:ta;}['_getSignURL'](){const _0x8bba18=_0xcc124c;var _0x2982f0,_0x37da8e;const _0x32f17a=this[_0x8bba18(0x3f6)][_0x8bba18(0x463)](sa),_0x11f49e=this[_0x8bba18(0x3f6)][_0x8bba18(0x463)]($);return(_0x37da8e=(_0x2982f0=_0x11f49e==null?void 0x0:_0x11f49e[_0x8bba18(0x298)])!=null?_0x2982f0:_0x32f17a)!=null?_0x37da8e:ia;}[_0xcc124c(0x38d)](){const _0xd2e2a9=_0xcc124c;var _0x4e31e1;const _0x34d9fd=this[_0xd2e2a9(0x3f6)]['getConfig']($);return(_0x4e31e1=_0x34d9fd==null?void 0x0:_0x34d9fd[_0xd2e2a9(0x2fb)])!=null?_0x4e31e1:location[_0xd2e2a9(0x1e3)];}[_0xcc124c(0x3fe)](_0x34c032,_0xf74fb8){const _0x3e7f6f=_0xcc124c;return _0x34c032[_0x3e7f6f(0x319)](_0x3e7f6f(0x46e),_0xf74fb8);}['_decreaseWaiting'](){const _0x1e5b68=_0xcc124c;this[_0x1e5b68(0x3b9)]-=0x1,this['_change$'][_0x1e5b68(0x1cf)](this['_waitCount']);}};Ut=zo([pt(0x0,_0xa01556(_0x5f5876)),pt(0x1,_0xf5edd1),pt(0x2,_0xa01556(_0x4a621b))],Ut);var na=Object[_0xcc124c(0x2ad)],ra=Object[_0xcc124c(0x3f2)],oa=(_0x5463a7,_0x217569,_0x40d53e,_0x271ae0)=>{const _0x25bdbd=_0xcc124c;for(var _0x49e580=_0x271ae0>0x1?void 0x0:_0x271ae0?ra(_0x217569,_0x40d53e):_0x217569,_0x2c9aec=_0x5463a7[_0x25bdbd(0x236)]-0x1,_0x4b23ac;_0x2c9aec>=0x0;_0x2c9aec--)(_0x4b23ac=_0x5463a7[_0x2c9aec])&&(_0x49e580=(_0x271ae0?_0x4b23ac(_0x217569,_0x40d53e,_0x49e580):_0x4b23ac(_0x49e580))||_0x49e580);return _0x271ae0&&_0x49e580&&na(_0x217569,_0x40d53e,_0x49e580),_0x49e580;},ye=(_0x420f3a,_0x55e95c)=>(_0xae63c8,_0x1565ff)=>_0x55e95c(_0xae63c8,_0x1565ff,_0x420f3a);let et=class extends _0xb64757{constructor(_0x4e8661,_0x32be57,_0x166596,_0x3032b8,_0x5c9836){const _0x1326b6=_0xcc124c;super(),this['_injector']=_0x4e8661,this[_0x1326b6(0x268)]=_0x32be57,this[_0x1326b6(0x303)]=_0x166596,this[_0x1326b6(0x22f)]=_0x3032b8,this[_0x1326b6(0x51c)]=_0x5c9836,this[_0x1326b6(0x290)](),this['_initCloseConn']();}[_0xcc124c(0x45c)](){const _0x7810c=_0xcc124c,_0x1cc88f=async _0x1551f5=>{const _0xeaf83a=_0x293d;(await this[_0xeaf83a(0x22f)]['requireSession'](_0x1551f5))[_0xeaf83a(0x2b5)][_0xeaf83a(0x4f2)](_0x117995(_0x14bc00=>_0x14bc00['eventID']===_0x4b62d5['SHOULD_CLOSE_CONN']),_0x274b03(this[_0xeaf83a(0x31d)]))[_0xeaf83a(0x3ac)](_0x5804c4=>{const _0x1fa3ff=_0xeaf83a,_0x354377=_0x5804c4,{reason:_0x363c1f}=_0x354377['data'];this[_0x1fa3ff(0x2bb)]['get'](_0x354bae)['show']({'type':_0x41136d[_0x1fa3ff(0x420)],'content':this[_0x1fa3ff(0x51c)]['t'](_0x1fa3ff(0x4fa))+'('+_0x363c1f+')'}),this[_0x1fa3ff(0x303)][_0x1fa3ff(0x201)](new _0x5577c9(_0x1551f5)['id'],!0x1),this['_collaborationSessionService'][_0x1fa3ff(0x427)](_0x1551f5);});};_0x340e15(this['_univerInstanceService'][_0x7810c(0x3b7)](_0x4eff1c[_0x7810c(0x3e5)]),this[_0x7810c(0x268)][_0x7810c(0x3b7)](_0x4eff1c[_0x7810c(0x215)]))['pipe'](_0x493a42(_0xb724e=>_0xb724e[_0x7810c(0x43f)]()),_0x117995(_0x2891a5=>!_0x10f041(_0x2891a5)),_0x274b03(this['dispose$']))['subscribe'](_0x1f6135=>{_0x1cc88f(_0x1f6135);});}[_0xcc124c(0x290)](){const _0x460222=_0xcc124c,_0x22f4b1=async _0x13effe=>{const _0x3dccf2=_0x293d;(await this[_0x3dccf2(0x22f)][_0x3dccf2(0x2c7)](_0x13effe))[_0x3dccf2(0x2b5)][_0x3dccf2(0x4f2)](_0x117995(_0x42fef4=>_0x42fef4[_0x3dccf2(0x346)]===_0x4b62d5[_0x3dccf2(0x40a)]),_0x274b03(this[_0x3dccf2(0x31d)]))[_0x3dccf2(0x3ac)](_0x5a7f4a=>{const _0x141ef7=_0x3dccf2,_0x5024f2=_0x5a7f4a,{objectId:_0x50006c}=_0x5024f2[_0x141ef7(0x2a7)],_0x46380e=this[_0x141ef7(0x2bb)][_0x141ef7(0x4e6)](_0x1225bc);_0x50006c===_0x13effe?_0x46380e[_0x141ef7(0x254)](_0x13effe):_0x46380e[_0x141ef7(0x2ff)](_0x13effe,_0x50006c);});};_0x340e15(this[_0x460222(0x268)]['getTypeOfUnitAdded$'](_0x4eff1c[_0x460222(0x3e5)]),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x4eff1c[_0x460222(0x215)]))[_0x460222(0x4f2)](_0x493a42(_0x40b871=>_0x40b871[_0x460222(0x43f)]()),_0x117995(_0x2a2005=>!_0x10f041(_0x2a2005)),_0x274b03(this[_0x460222(0x31d)]))[_0x460222(0x3ac)](_0x4cba45=>{_0x22f4b1(_0x4cba45);});}};et=oa([ye(0x0,_0xa01556(_0x3064b3)),ye(0x1,_0x4a621b),ye(0x2,_0x5e2e27),ye(0x3,_0xa01556(he)),ye(0x4,_0xa01556(_0x991281))],et);var aa=Object[_0xcc124c(0x2ad)],ca=Object['getOwnPropertyDescriptor'],ha=(_0x587ead,_0x39d6ca,_0x5bcbdc,_0x54cdf2)=>{const _0x42cabc=_0xcc124c;for(var _0x495552=_0x54cdf2>0x1?void 0x0:_0x54cdf2?ca(_0x39d6ca,_0x5bcbdc):_0x39d6ca,_0xd0792c=_0x587ead[_0x42cabc(0x236)]-0x1,_0x55bab3;_0xd0792c>=0x0;_0xd0792c--)(_0x55bab3=_0x587ead[_0xd0792c])&&(_0x495552=(_0x54cdf2?_0x55bab3(_0x39d6ca,_0x5bcbdc,_0x495552):_0x55bab3(_0x495552))||_0x495552);return _0x54cdf2&&_0x495552&&aa(_0x39d6ca,_0x5bcbdc,_0x495552),_0x495552;},vs=(_0xec9fb6,_0x337019)=>(_0x15cb4c,_0x5b9538)=>_0x337019(_0x15cb4c,_0x5b9538,_0xec9fb6);let Nt=class{constructor(_0xd09d0e,_0x2a4974){const _0x3d6403=_0xcc124c;this['_configService']=_0xd09d0e,this[_0x3d6403(0x3aa)]=_0x2a4974;}async[_0xcc124c(0x532)](_0x10bdcc,_0x588a86){const _0xb60b60=_0xcc124c;var _0x394e78;const {unitID:_0x16d864,type:_0x22914b,revision:_0x3303f6=0x0}=_0x588a86,_0x4a48ae=this[_0xb60b60(0x1d4)]()+'/'+_0x22914b+_0xb60b60(0x495)+_0x16d864+_0xb60b60(0x264)+_0x3303f6,_0x33073b=(await this[_0xb60b60(0x3aa)][_0xb60b60(0x4e6)](_0x4a48ae))['body'],_0x20a281=(_0x394e78=_0x33073b[_0xb60b60(0x384)])==null?void 0x0:_0x394e78[_0xb60b60(0x454)];if(_0x20a281){const _0x918d27=_0x20a281==null?void 0x0:_0x20a281['originalMeta'],_0xf02255=_0x433da2[_0xb60b60(0x3b2)](_0xbce4bb(_0x918d27));_0x20a281[_0xb60b60(0x1d2)]=_0xf02255,Object[_0xb60b60(0x229)](_0x20a281[_0xb60b60(0x2d5)])[_0xb60b60(0x3d5)](([,_0x218d91])=>{const _0x4bd7e9=_0xb60b60,_0x14d96e=_0x218d91[_0x4bd7e9(0x1d2)],_0x1edb03=_0x433da2[_0x4bd7e9(0x3b2)](_0xbce4bb(_0x14d96e));_0x218d91[_0x4bd7e9(0x1d2)]=_0x1edb03;});}return _0x33073b;}async[_0xcc124c(0x432)](_0x2a13b4,_0x58f168){const _0x2c8774=_0xcc124c,{unitID:_0xafaf72,type:_0x3ca0b7,blockID:_0x6c9348}=_0x58f168,_0x488616=this['_getAPIPrefix']()+'/'+_0x3ca0b7+_0x2c8774(0x495)+_0xafaf72+'/block/'+_0x6c9348;return(await this[_0x2c8774(0x3aa)][_0x2c8774(0x4e6)](_0x488616))[_0x2c8774(0x2b7)];}async[_0xcc124c(0x477)](_0x133539,_0x57f5d5){const _0x48e9ac=_0xcc124c,{unitID:_0x263877,type:_0x5ab5d4,blockID:_0x5d8e43}=_0x57f5d5,_0x2bde5e=this['_getAPIPrefix']()+_0x48e9ac(0x29a)+_0x5ab5d4+'/unit/'+_0x263877+_0x48e9ac(0x29a)+_0x5d8e43;return(await this[_0x48e9ac(0x3aa)][_0x48e9ac(0x4e6)](_0x2bde5e))[_0x48e9ac(0x2b7)];}async[_0xcc124c(0x312)](_0x29a975,_0x540c3f){const _0x9dbb28=_0xcc124c,{unitID:_0x4cd280,type:_0x366ae8,from:_0x3a51ec,to:_0x5ccc4f}=_0x540c3f,_0xf3f0cd=this[_0x9dbb28(0x359)]()+'/'+_0x366ae8+_0x9dbb28(0x495)+_0x4cd280+'/fetchmissing?from='+_0x3a51ec+'&to='+_0x5ccc4f;return(await this[_0x9dbb28(0x3aa)][_0x9dbb28(0x4e6)](_0xf3f0cd))[_0x9dbb28(0x2b7)];}[_0xcc124c(0x1d4)](){const _0x16fe4e=_0xcc124c;var _0x1e0922;return(_0x1e0922=this['_configService'][_0x16fe4e(0x463)](Cn))!=null?_0x1e0922:this[_0x16fe4e(0x359)]();}['_getAPIPrefix'](){const _0x47090f=_0xcc124c;var _0x500782,_0x3f3e4b;const _0x60cab=this['_configService'][_0x47090f(0x463)](In),_0x273db9=this[_0x47090f(0x3f6)][_0x47090f(0x463)]($);return(_0x3f3e4b=(_0x500782=_0x273db9==null?void 0x0:_0x273db9['snapshotServerUrl'])!=null?_0x500782:_0x60cab)!=null?_0x3f3e4b:En;}async[_0xcc124c(0x480)](_0x51bb92,_0x59c76f){const _0x2bb091=_0xcc124c,_0x1b21c5='/universer-api/snapshot/'+_0x59c76f[_0x2bb091(0x23d)]+'/unit/'+_0x59c76f[_0x2bb091(0x38f)]+_0x2bb091(0x2d7);return(await this[_0x2bb091(0x3aa)][_0x2bb091(0x4e6)](_0x1b21c5,{'params':{'resourceId':JSON[_0x2bb091(0x234)](_0x59c76f[_0x2bb091(0x275)])}}))[_0x2bb091(0x2b7)];}['saveSnapshot'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0xcc124c(0x36f)](){const _0x35c8b9=_0xcc124c;throw new Error(_0x35c8b9(0x4bc));}[_0xcc124c(0x4ed)](){const _0x507019=_0xcc124c;throw new Error(_0x507019(0x4bc));}[_0xcc124c(0x260)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0xcc124c(0x3db)](){const _0x497d1f=_0xcc124c;throw new Error(_0x497d1f(0x4bc));}};Nt=ha([vs(0x0,_0xf5edd1),vs(0x1,_0xa01556(_0x5f5876))],Nt);var la=Object['defineProperty'],_a=Object[_0xcc124c(0x3f2)],ua=(_0x144354,_0x2c8c4b,_0x1e5978,_0x9e4c7f)=>{const _0x13bd4e=_0xcc124c;for(var _0x2dabb2=_0x9e4c7f>0x1?void 0x0:_0x9e4c7f?_a(_0x2c8c4b,_0x1e5978):_0x2c8c4b,_0x5657e3=_0x144354[_0x13bd4e(0x236)]-0x1,_0x35c70a;_0x5657e3>=0x0;_0x5657e3--)(_0x35c70a=_0x144354[_0x5657e3])&&(_0x2dabb2=(_0x9e4c7f?_0x35c70a(_0x2c8c4b,_0x1e5978,_0x2dabb2):_0x35c70a(_0x2dabb2))||_0x2dabb2);return _0x9e4c7f&&_0x2dabb2&&la(_0x2c8c4b,_0x1e5978,_0x2dabb2),_0x2dabb2;},Ue=(_0x486fa6,_0x1378c7)=>(_0x10eef3,_0x2bd828)=>_0x1378c7(_0x10eef3,_0x2bd828,_0x486fa6);let Mt=class extends _0xfad8ce{constructor(_0x4dea0b,_0x138f71,_0x258695,_0x48dee9,_0x1c7262){const _0x1ba27a=_0xcc124c;super(_0x4dea0b,_0x138f71,_0x258695),this['_transformService']=_0x48dee9,this[_0x1ba27a(0x1b0)]=_0x1c7262;}['transformUndoRedo'](_0x405109,_0x1a10a9){const _0x1b93ff=_0xcc124c,_0x3f91e6=this[_0x1b93ff(0x3e1)](_0x405109);if(_0x3f91e6)try{const _0x537cd3=this['_transformStack'](_0x3f91e6,_0x1a10a9);this[_0x1b93ff(0x209)](_0x405109,_0x537cd3);}catch(_0x47cb3c){this[_0x1b93ff(0x1b0)][_0x1b93ff(0x1b3)]('[CollaborationUndoRedoService]',_0x47cb3c),this[_0x1b93ff(0x36d)](_0x405109);}const _0x263cd9=this[_0x1b93ff(0x45f)](_0x405109);if(_0x263cd9)try{const _0xe6a9eb=this[_0x1b93ff(0x3ab)](_0x263cd9,_0x1a10a9);this[_0x1b93ff(0x1bb)](_0x405109,_0xe6a9eb);}catch(_0x499973){this[_0x1b93ff(0x1b0)][_0x1b93ff(0x1b3)](_0x499973),this[_0x1b93ff(0x3b1)](_0x405109);}}['_clearUndo'](_0x7b8d8f){const _0x5a8704=_0xcc124c,_0x4e6a45=this[_0x5a8704(0x3e1)](_0x7b8d8f);_0x4e6a45&&(_0x4e6a45[_0x5a8704(0x236)]=0x0,this[_0x5a8704(0x41a)]());}[_0xcc124c(0x3b1)](_0x35d4fb){const _0x534a85=_0xcc124c,_0x32c873=this[_0x534a85(0x45f)](_0x35d4fb);_0x32c873&&(_0x32c873[_0x534a85(0x236)]=0x0,this[_0x534a85(0x41a)]());}['_substituteUndoStack'](_0x3fcff6,_0x1b2bd8){const _0x274d83=_0xcc124c;this[_0x274d83(0x32a)][_0x274d83(0x4d8)](_0x3fcff6,_0x1b2bd8),this[_0x274d83(0x41a)]();}['_substituteRedoStack'](_0x4b714f,_0x59c4e5){const _0x42e396=_0xcc124c;this[_0x42e396(0x3f5)][_0x42e396(0x4d8)](_0x4b714f,_0x59c4e5),this['_updateStatus']();}[_0xcc124c(0x3ab)](_0x2a82ba,_0x3cd163){const _0x9e37a=_0xcc124c,_0x2fa358=[];let _0x1be5a6=_0x3cd163,_0x18461e=_0x3cd163;for(let _0x49aca5=_0x2a82ba[_0x9e37a(0x236)]-0x1;_0x49aca5>=0x0;_0x49aca5--){const {unitID:_0x480961,undoMutations:_0x31af19,redoMutations:_0x5187c1}=_0x2a82ba[_0x49aca5],_0x5058f7=this['_transformService'][_0x9e37a(0x1e2)](_0x1be5a6,_0x31af19),_0x455ba1=this[_0x9e37a(0x4bb)][_0x9e37a(0x1e2)](_0x18461e,_0x5187c1);if(_0x115074(_0x5058f7)||_0x115074(_0x455ba1)){this[_0x9e37a(0x1b0)][_0x9e37a(0x1b3)](_0x9e37a(0x44c),_0x9e37a(0x287),_0x5058f7,_0x455ba1);break;}_0x1be5a6=_0x5058f7['c1Prime'],_0x18461e=_0x455ba1[_0x9e37a(0x245)],_0x2fa358[_0x9e37a(0x4c7)]({'unitID':_0x480961,'undoMutations':_0x5058f7['m2Prime'],'redoMutations':_0x455ba1[_0x9e37a(0x4f3)]});}return _0x2fa358[_0x9e37a(0x310)]();}};Mt=ua([Ue(0x0,_0x4a621b),Ue(0x1,_0x4ba546),Ue(0x2,_0x3dbf38),Ue(0x3,_0x279fb0),Ue(0x4,_0x40bb6c)],Mt);class da extends _0xb64757{constructor(){const _0x1696f4=_0xcc124c;super(),l(this,_0x1696f4(0x333)),this[_0x1696f4(0x333)]=_0x24365b(window,_0x1696f4(0x21e))['pipe'](_0x2cf076(this[_0x1696f4(0x31d)]),_0x1748c0(0x1),_0xfe2ad(void 0x0));}[_0xcc124c(0x1c8)](_0x3cc5da,_0x3b854d,_0x527096=!0x1){const _0x526061=_0xcc124c,_0xfb6f4e=new URL(window[_0x526061(0x4f4)][_0x526061(0x3ae)]);_0xfb6f4e[_0x526061(0x31b)][_0x526061(0x4d8)](_0x3cc5da,_0x3b854d),_0x527096?window[_0x526061(0x278)][_0x526061(0x505)]('','',_0xfb6f4e['toString']()):window[_0x526061(0x278)][_0x526061(0x295)]('','',_0xfb6f4e[_0x526061(0x328)]());}['removeParam'](_0x58bf35,_0x4d5278=!0x1){const _0x428d6a=_0xcc124c,_0x3121fb=new URL(window['location']['href']);_0x3121fb[_0x428d6a(0x31b)][_0x428d6a(0x3bd)](_0x58bf35),_0x4d5278?window[_0x428d6a(0x278)][_0x428d6a(0x505)]('','',_0x3121fb['toString']()):window['history']['pushState']('','',_0x3121fb['toString']());}['getParam'](_0x2ce445){const _0x4df4f3=_0xcc124c;var _0x4c2dd5;return(_0x4c2dd5=new URL(window[_0x4df4f3(0x4f4)][_0x4df4f3(0x3ae)])['searchParams'][_0x4df4f3(0x4e6)](_0x2ce445))!=null?_0x4c2dd5:void 0x0;}}var Qs=Object[_0xcc124c(0x2ad)],ma=Object[_0xcc124c(0x3f2)],fa=(_0x55336a,_0x200719,_0x2c64c8)=>_0x200719 in _0x55336a?Qs(_0x55336a,_0x200719,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2c64c8}):_0x55336a[_0x200719]=_0x2c64c8,ga=(_0x1a1dba,_0x580df3,_0x960600,_0x3ea871)=>{const _0x216a29=_0xcc124c;for(var _0x4d49c9=_0x3ea871>0x1?void 0x0:_0x3ea871?ma(_0x580df3,_0x960600):_0x580df3,_0x355cb5=_0x1a1dba[_0x216a29(0x236)]-0x1,_0x2ea72b;_0x355cb5>=0x0;_0x355cb5--)(_0x2ea72b=_0x1a1dba[_0x355cb5])&&(_0x4d49c9=(_0x3ea871?_0x2ea72b(_0x580df3,_0x960600,_0x4d49c9):_0x2ea72b(_0x4d49c9))||_0x4d49c9);return _0x3ea871&&_0x4d49c9&&Qs(_0x580df3,_0x960600,_0x4d49c9),_0x4d49c9;},Ve=(_0x169255,_0x453718)=>(_0x27f5d2,_0x300fdd)=>_0x453718(_0x27f5d2,_0x300fdd,_0x169255),Sa=(_0x4189b4,_0x57056f,_0x18d26c)=>fa(_0x4189b4,_0x57056f+'',_0x18d26c);const pa=_0xcc124c(0x1cb);let At=class extends _0x1c5106{constructor(_0x3438bc=jn,_0x250551,_0x52c4d3,_0x2854a7,_0x37dcee){const _0x1e8ba9=_0xcc124c;super(),this[_0x1e8ba9(0x4ef)]=_0x3438bc,this['_logService']=_0x250551,this[_0x1e8ba9(0x4d5)]=_0x52c4d3,this[_0x1e8ba9(0x2bb)]=_0x2854a7,this['_configService']=_0x37dcee;const {..._0x4c56aa}=this['_config'];this[_0x1e8ba9(0x3f6)][_0x1e8ba9(0x30f)]($,_0x4c56aa);}['onStarting'](){const _0x1eadc8=_0xcc124c;this[_0x1eadc8(0x325)](),_0x1f3c54(this[_0x1eadc8(0x2bb)],[[ve],[Je],[et]]);}[_0xcc124c(0x243)](){_0x1f3c54(this['_injector'],[[ze]]);}[_0xcc124c(0x240)](){const _0x4bb4b7=_0xcc124c;this[_0x4bb4b7(0x23c)]();}['_registerDependencies'](){const _0x37857d=_0xcc124c;var _0x30c1dd,_0x4e3e59,_0x10300a,_0xd630e;this[_0x37857d(0x2bb)][_0x37857d(0x449)](_0x48fa5b)&&this[_0x37857d(0x1b0)]['error'](_0x37857d(0x493),_0x37857d(0x26d));let _0x300e4a=[[_0x48fa5b,{'useClass':Mt}],[he],[Gt],[_0x5f5876],[Zs,{'useClass':da}],[ce],[w],[_0x153f02],[Ke],[Xe],[Ye],[Ft],[Ze],[Qe],[Vs],[et],[Bs,{'useClass':(_0x4e3e59=(_0x30c1dd=this[_0x37857d(0x4ef)])==null?void 0x0:_0x30c1dd[_0x37857d(0x28a)])!=null?_0x4e3e59:Ct}],[_0x3519ca,{'useClass':_0x291f9f}],[_0x56f9b0,{'useClass':Nt}],[_0x5da645,{'useClass':yt}],[_0x11079a,{'useClass':Ut}],[Le],[Je],[Me],[ze],[ve]];(_0x10300a=this['_config'])!=null&&_0x10300a[_0x37857d(0x2f2)]&&_0x300e4a[_0x37857d(0x4c7)]([tt,{'useClass':Sr}]),_0x300e4a=_0x5c5104(_0x300e4a,(_0xd630e=this[_0x37857d(0x4ef)])==null?void 0x0:_0xd630e[_0x37857d(0x4a9)]),_0x300e4a[_0x37857d(0x3d5)](_0x1d7a15=>this['_injector'][_0x37857d(0x266)](_0x1d7a15)),this['_initModules']();}[_0xcc124c(0x23c)](){const _0x45bd5f=_0xcc124c;this[_0x45bd5f(0x379)](this[_0x45bd5f(0x4d5)][_0x45bd5f(0x3c1)](_0x4eff1c['UNIVER_DOC'],[wt])),this[_0x45bd5f(0x379)](this['_renderManagerService'][_0x45bd5f(0x3c1)](_0x4eff1c[_0x45bd5f(0x3e5)],[Pt]));}[_0xcc124c(0x4a0)](){const _0x13364a=_0xcc124c;var _0x5ced08,_0x395cde;this[_0x13364a(0x2bb)]['get'](_0x5f5876)[_0x13364a(0x3fa)]({'priority':0x14,'interceptor':_0x563a08({'maxParallel':0x6})}),this[_0x13364a(0x2bb)][_0x13364a(0x4e6)](Qe),(_0x5ced08=this[_0x13364a(0x4ef)])!=null&&_0x5ced08['enableOfflineEditing']||this['_injector'][_0x13364a(0x4e6)](w)[_0x13364a(0x1b1)](),(_0x395cde=this['_config'])!=null&&_0x395cde['enableAuthServer']&&this['_injector']['get'](Ze),this[_0x13364a(0x2bb)][_0x13364a(0x4e6)](Le),this[_0x13364a(0x2bb)][_0x13364a(0x449)](Me)&&this['_injector'][_0x13364a(0x4e6)](Me);}};Sa(At,'pluginName',pa),At=ga([_0x101b14(_0x2dc182),Ve(0x1,_0x40bb6c),Ve(0x2,_0x739b15),Ve(0x3,_0xa01556(_0x3064b3)),Ve(0x4,_0xf5edd1)],At);export{Fo as AUTHZ_URL_KEY,yt as AuthzIoHttpService,Mn as COLLAB_SUBMIT_CHANGESET_URL_KEY,Tn as COLLAB_WEB_SOCKET_URL_KEY,Le as CollaborationController,qe as CollaborationEntity,bt as CollaborationSession,he as CollaborationSessionService,Ct as CollaborationSocketService,P as CollaborationStatus,To as CollaborationStatusDisplay,Vs as CommentService,Je as DataLoaderController,Me as DesktopCollaborationStatusDisplayController,Tt as DocCollaborationEntity,On as HEARTBEAT_INTERVAL_KEY,js as HEARTBEAT_TIMEOUT_KEY,Bs as ICollaborationSocketService,Zs as IURLService,Ut as ImageIoService,Un as LOCAL_CACHE_INTERVAL_KEY,Ln as LOGIN_URL_KEY,w as LocalCacheService,Pn as RETRY_CONNECTING_MAX_COUNT_KEY,Ha as SEND_CHANGESET_TIMEOUT_KEY,In as SNAPSHOT_SERVER_URL_KEY,Cn as SNAPSHOT_URL_KEY,Y as SessionStatus,no as SheetCollabCursorShape,Rt as SheetCollaborationEntity,Nt as SnapshotServerOverHTTPService,At as UniverCollaborationClientPlugin,da as WebURLService,Hn as deserializeToCombResponse,xn as serializeCombRequest};
1
+ const _0x107bfd=_0x1556;(function(_0x28841f,_0x344392){const _0x21a925=_0x1556,_0x53d359=_0x28841f();while(!![]){try{const _0x596ba2=parseInt(_0x21a925(0x3e8))/0x1*(-parseInt(_0x21a925(0x563))/0x2)+parseInt(_0x21a925(0x4a0))/0x3*(-parseInt(_0x21a925(0x2e4))/0x4)+-parseInt(_0x21a925(0x24b))/0x5*(parseInt(_0x21a925(0x244))/0x6)+parseInt(_0x21a925(0x2a6))/0x7*(parseInt(_0x21a925(0x342))/0x8)+parseInt(_0x21a925(0x4b0))/0x9+parseInt(_0x21a925(0x315))/0xa*(-parseInt(_0x21a925(0x394))/0xb)+parseInt(_0x21a925(0x29c))/0xc;if(_0x596ba2===_0x344392)break;else _0x53d359['push'](_0x53d359['shift']());}catch(_0x557230){_0x53d359['push'](_0x53d359['shift']());}}}(_0x4fc6,0xf143c));var oi=Object[_0x107bfd(0x1ea)],ai=(_0x4fbbaf,_0x248873,_0x480df9)=>_0x248873 in _0x4fbbaf?oi(_0x4fbbaf,_0x248873,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x480df9}):_0x4fbbaf[_0x248873]=_0x480df9,l=(_0x40d502,_0x9ffdc8,_0x3b4f39)=>ai(_0x40d502,typeof _0x9ffdc8!=_0x107bfd(0x555)?_0x9ffdc8+'':_0x9ffdc8,_0x3b4f39);import{createIdentifier as _0x51f9c0,Inject as _0x22b1d4,Disposable as _0x502c5a,DisposableCollection as _0x59267d,toDisposable as _0x216991,IConfigService as _0x4d9096,ILogService as _0x42be42,UserManagerService as _0x59ec54,UniverInstanceType as _0xdaf2b4,IUniverInstanceService as _0x4bc21f,LocaleService as _0x18c55e,Optional as _0x49e124,RxDisposable as _0x4fe933,Injector as _0x12b4cf,Tools as _0x5065d9,ILocalStorageService as _0x57a851,Rectangle as _0xdcbe31,ICommandService as _0x156a6a,DOC_RANGE_TYPE as _0x438171,JSONX as _0x1be04a,CommandType as _0x56c6fd,IPermissionService as _0x4add88,IUndoRedoService as _0x4a0d1d,sequenceExecute as _0x2b3dfa,debounce as _0x196b8a,COLORS as _0x560cfd,ColorKit as _0x496050,ThemeService as _0xf5fcf8,fromEventSubject as _0x50e635,useDependency as _0x1266df,connectInjector as _0xa2ca1e,Workbook as _0x4aa1d5,isInternalEditorID as _0x198bcb,LocalUndoRedoService as _0x2aaeb6,IContextService as _0x706f81,DependentOn as _0xcb82ec,Plugin as _0x190ba5,touchDependencies as _0x169005,IAuthzIoService as _0x1f8830,mergeOverrideWithDependencies as _0x387849}from'@univerjs/core';import{Subject as _0x5986f4,merge as _0x577738,takeUntil as _0x31a17e,BehaviorSubject as _0x435a5b,distinctUntilChanged as _0x555bb1,fromEvent as _0x1d2a7c,ReplaySubject as _0x50fb58,take as _0x591140,map as _0x3a9232,shareReplay as _0x5ecc6d,of as _0x19fb74,debounceTime as _0xcd4c82,filter as _0x2535d1,switchMap as _0x204b23,combineLatest as _0x427855,concatMap as _0x4037fb,mapTo as _0x3898e3}from'rxjs';import{map as _0xd272ef,take as _0x41f7ca,filter as _0x4cadab,delay as _0x312f2,throttleTime as _0xcabac3,takeUntil as _0x1447e8,switchMap as _0x101e32}from'rxjs/operators';import{MessageType as _0x3a2b8b,Tooltip as _0x5d8284}from'@univerjs/design';import{IBeforeCloseService as _0x3de624,IMessageService as _0x1f96df,INotificationService as _0x246848,useObservable as _0x3150f6,BuiltInUIPart as _0x3d8254,IUIPartsService as _0x374dac}from'@univerjs/ui';import{HTTPService as _0x1f1833,WebSocketService as _0x41211a,MergeInterceptorFactory as _0x3b27be,HTTPRequest as _0x5f19cc,IHTTPImplementation as _0x1b72ab,XHRHTTPImplementation as _0x581680,ThresholdInterceptorFactory as _0x6f5395}from'@univerjs/network';import{CollaborationEvent as _0x5898c5,parseChangesetToProtocol as _0x49b60c,ISnapshotServerService as _0x3377fb,isTransformMutationFailure as _0x22a7fc,isTransformMutationsWithChangesetSuccess as _0x569bae,ITransformService as _0x3a5354,RevisionService as _0x113ba1,mapDocumentTypeToUniverType as _0x5512dc,isTransformChangesetsSuccess as _0x244086,CompressMutationService as _0x1400f2,parseProtocolChangeset as _0x4eeb37,SnapshotService as _0x48f96b,textEncoder as _0x17e6da,b64DecodeUnicode as _0x5ebf66,isTransformMutationsWithChangesetFailure as _0x1290be,UniverCollaborationPlugin as _0x59f26a}from'@univerjs-pro/collaboration';import{ITelemetryService as _0x578656}from'@univerjs/telemetry';import{DocIMEInputManagerService as _0x4ab88d,DocStateChangeManagerService as _0x2f8703,NodePositionConvertToCursor as _0x2ab654,NodePositionConvertToRectRange as _0x2d264e,TEXT_RANGE_LAYER_INDEX as _0x2678f2,SetDocZoomRatioOperation as _0x13525c}from'@univerjs/docs-ui';import{SheetsSelectionsService as _0x21d2a5,SetSelectionsOperation as _0x41da57,InsertSheetMutation as _0x44c0c3,EmptyMutation as _0x4a7b8,WorkbookEditablePermission as _0x251d50,RefRangeService as _0x496d93,EffectRefRangId as _0x4456e6,handleIRemoveRow as _0x3f6ad9,handleIRemoveCol as _0x1781cc,handleMoveRange as _0x122734,handleInsertRow as _0x59446e,handleInsertRangeMoveRight as _0x54777e,handleInsertRangeMoveDown as _0x2a0ddd,handleInsertCol as _0x20ccef,handleDeleteRangeMoveUp as _0x113544,handleDeleteRangeMoveLeft as _0x4d3ef4,runRefRangeMutations as _0x2b9a21,SetWorksheetActivateCommand as _0x5d1a10}from'@univerjs/sheets';import{IRenderManagerService as _0x1c4916,Shape as _0x38607f,Rect as _0x42a68d,getColor as _0x51b14d,RegularPolygon as _0x2e146c,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x1db7f3,Vector2 as _0x1202eb}from'@univerjs/engine-render';import{DocSelectionManagerService as _0x565ad3,RichTextEditingMutation as _0x2c1358,SetTextSelectionsOperation as _0x351bea,DocSkeletonManagerService as _0x6bbc53}from'@univerjs/docs';import{ImageSourceType as _0xb2df3d,ImageUploadStatusType as _0x118c28,IImageIoService as _0x1691f3}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x63b99b,serializeRangeWithSheet as _0x378949}from'@univerjs/engine-formula';import{SheetSkeletonManagerService as _0x2df2d4,VIEWPORT_KEY as _0x3bd5cb,getCoordByCell as _0x4fe78d,getSheetObject as _0x254c19,SheetPermissionInitController as _0x33f4dc}from'@univerjs/sheets-ui';import _0x5d160a,{forwardRef as _0x14b2c4,useRef as _0x31c5d0,createElement as _0x59512d,useCallback as _0x25ed7f}from'react';import{IRemoteInstanceService as _0x123210}from'@univerjs/rpc';import{getAttachHeader as _0x1faae4}from'@univerjs-pro/license';const In=_0x107bfd(0x4a6),En=_0x107bfd(0x4f7),Cn=_0x107bfd(0x51e),Ha='SEND_CHANGESET_TIMEOUT',bn=0x7d0,Tn=_0x107bfd(0x2ad),Rn='ws://127.0.0.1:8000/universer-api/comb/connect',On='HEARTBEAT_INTERVAL',Dn=0x7530,Hs='HEARTBEAT_TIMEOUT',xs=0x4e20,wn=0x4e20,Pn='RETRY_CONNECTING_MAX_COUNT',yn=0x3,Un='LOCAL_CACHE_INTERVAL',Nn=0x3e8,An=_0x107bfd(0x4d5),Mn=_0x107bfd(0x4f4),Ln=_0x107bfd(0x381),$n='/universer-api/oidc/authpage';var ks=(_0x3b60d6=>(_0x3b60d6[_0x3b60d6[_0x107bfd(0x412)]=0x0]=_0x107bfd(0x412),_0x3b60d6[_0x3b60d6['OK']=0x1]='OK',_0x3b60d6[_0x3b60d6[_0x107bfd(0x4f0)]=0x2]=_0x107bfd(0x4f0),_0x3b60d6[_0x3b60d6[_0x107bfd(0x552)]=0x3]='PERMISSION_DENIED',_0x3b60d6[_0x3b60d6[_0x107bfd(0x541)]=0x4]=_0x107bfd(0x541),_0x3b60d6[_0x3b60d6[_0x107bfd(0x21d)]=0x5]=_0x107bfd(0x21d),_0x3b60d6[_0x3b60d6[_0x107bfd(0x50d)]=0x6]='ALREADY_EXISTS',_0x3b60d6[_0x3b60d6[_0x107bfd(0x3df)]=0x7]='INVALID_ARGUMENT',_0x3b60d6[_0x3b60d6[_0x107bfd(0x362)]=0x8]=_0x107bfd(0x362),_0x3b60d6[_0x3b60d6['COMPLETION_FINISHED']=0x9]=_0x107bfd(0x3a3),_0x3b60d6[_0x3b60d6[_0x107bfd(0x3be)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x3b60d6[_0x3b60d6[_0x107bfd(0x4c0)]=0x1771]=_0x107bfd(0x4c0),_0x3b60d6[_0x3b60d6['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x107bfd(0x256),_0x3b60d6[_0x3b60d6[_0x107bfd(0x1ef)]=0x1773]=_0x107bfd(0x1ef),_0x3b60d6[_0x3b60d6[_0x107bfd(0x3de)]=0x1b59]=_0x107bfd(0x3de),_0x3b60d6[_0x3b60d6['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x107bfd(0x52f),_0x3b60d6[_0x3b60d6['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x107bfd(0x2a9),_0x3b60d6[_0x3b60d6[_0x107bfd(0x39e)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x3b60d6[_0x3b60d6[_0x107bfd(0x3e2)]=0x1b5d]=_0x107bfd(0x3e2),_0x3b60d6[_0x3b60d6[_0x107bfd(0x502)]=0x1f41]=_0x107bfd(0x502),_0x3b60d6[_0x3b60d6[_0x107bfd(0x47d)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x3b60d6[_0x3b60d6[_0x107bfd(0x453)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x3b60d6[_0x3b60d6[_0x107bfd(0x281)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x3b60d6[_0x3b60d6['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x107bfd(0x447),_0x3b60d6[_0x3b60d6[_0x107bfd(0x3ff)]=0x232d]=_0x107bfd(0x3ff),_0x3b60d6[_0x3b60d6['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x107bfd(0x3b3),_0x3b60d6[_0x3b60d6['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x3b60d6[_0x3b60d6['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x107bfd(0x4a7),_0x3b60d6[_0x3b60d6[_0x107bfd(0x535)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x3b60d6[_0x3b60d6[_0x107bfd(0x4ff)]=-0x1]=_0x107bfd(0x4ff),_0x3b60d6))(ks||{}),B=(_0x1577d7=>(_0x1577d7[_0x1577d7['UNIVER_UNKNOWN']=0x0]=_0x107bfd(0x3f7),_0x1577d7[_0x1577d7['UNIVER_DOC']=0x1]=_0x107bfd(0x344),_0x1577d7[_0x1577d7['UNIVER_SHEET']=0x2]=_0x107bfd(0x547),_0x1577d7[_0x1577d7[_0x107bfd(0x398)]=0x3]='UNIVER_SLIDE',_0x1577d7[_0x1577d7[_0x107bfd(0x3dd)]=0x4]=_0x107bfd(0x3dd),_0x1577d7[_0x1577d7[_0x107bfd(0x4ff)]=-0x1]=_0x107bfd(0x4ff),_0x1577d7))(B||{}),I=(_0x548ef1=>(_0x548ef1[_0x548ef1[_0x107bfd(0x4be)]=0x0]=_0x107bfd(0x4be),_0x548ef1[_0x548ef1[_0x107bfd(0x308)]=0x1]=_0x107bfd(0x308),_0x548ef1[_0x548ef1[_0x107bfd(0x3ae)]=0x2]='JOIN',_0x548ef1[_0x548ef1[_0x107bfd(0x4c2)]=0x3]=_0x107bfd(0x4c2),_0x548ef1[_0x548ef1['INGEST']=0x4]=_0x107bfd(0x4b3),_0x548ef1[_0x548ef1['HEARTBEAT']=0x5]=_0x107bfd(0x49e),_0x548ef1[_0x548ef1[_0x107bfd(0x386)]=0x6]=_0x107bfd(0x386),_0x548ef1[_0x548ef1[_0x107bfd(0x4ff)]=-0x1]=_0x107bfd(0x4ff),_0x548ef1))(I||{}),Ft=(_0x3ffe73=>(_0x3ffe73[_0x3ffe73['UNKNOWN_CODE']=0x0]=_0x107bfd(0x4ee),_0x3ffe73[_0x3ffe73['OK']=0x1]='OK',_0x3ffe73[_0x3ffe73[_0x107bfd(0x37a)]=0x2]=_0x107bfd(0x37a),_0x3ffe73[_0x3ffe73[_0x107bfd(0x4ff)]=-0x1]=_0x107bfd(0x4ff),_0x3ffe73))(Ft||{}),Bs=(_0x1e651a=>(_0x1e651a[_0x1e651a[_0x107bfd(0x3b0)]=0x0]=_0x107bfd(0x3b0),_0x1e651a[_0x1e651a[_0x107bfd(0x2c4)]=0x1]=_0x107bfd(0x2c4),_0x1e651a[_0x1e651a[_0x107bfd(0x272)]=0x2]=_0x107bfd(0x272),_0x1e651a[_0x1e651a[_0x107bfd(0x35a)]=0x3]=_0x107bfd(0x35a),_0x1e651a[_0x1e651a[_0x107bfd(0x499)]=0x4]=_0x107bfd(0x499),_0x1e651a[_0x1e651a[_0x107bfd(0x4ff)]=-0x1]=_0x107bfd(0x4ff),_0x1e651a))(Bs||{});const j=_0x107bfd(0x397),jn={};function Hn(_0x2f6ef8){const _0x3cae6a=_0x107bfd;var _0x139cd7,_0x3bd2cc,_0x381dea,_0x25fa17,_0x203b5f;const _0x5262a6=_0x2f6ef8[_0x3cae6a(0x431)],_0x398911=JSON['parse'](_0x5262a6);switch(_0x398911[_0x3cae6a(0x37c)]){case I[_0x3cae6a(0x49e)]:case I['HELLO']:{const _0x9ab51b=_0x398911[_0x3cae6a(0x560)];return{..._0x398911,'data':_0x9ab51b,'cmd':_0x398911[_0x3cae6a(0x37c)]};}case I['JOIN']:{const _0x59e8ec=_0x398911[_0x3cae6a(0x20b)];return{..._0x398911,'data':_0x59e8ec,'cmd':_0x398911['cmd']};}case I['RECV']:{const _0x4815a1=_0x398911[_0x3cae6a(0x44a)];switch(_0x4815a1['eventID']){case _0x5898c5[_0x3cae6a(0x2b1)]:return{..._0x398911,'data':{..._0x4815a1,'data':(_0x139cd7=_0x4815a1[_0x3cae6a(0x49b)])==null?void 0x0:_0x139cd7['cs']},'cmd':_0x398911[_0x3cae6a(0x37c)]};case _0x5898c5['CHANGESET_ACK']:return{..._0x398911,'data':{..._0x4815a1,'data':(_0x3bd2cc=_0x4815a1[_0x3cae6a(0x506)])==null?void 0x0:_0x3bd2cc['cs']},'cmd':_0x398911[_0x3cae6a(0x37c)]};case _0x5898c5[_0x3cae6a(0x435)]:return{..._0x398911,'data':{..._0x4815a1,'data':(_0x381dea=_0x4815a1[_0x3cae6a(0x35f)])==null?void 0x0:_0x381dea['cs']},'cmd':_0x398911['cmd']};case _0x5898c5['CHANGESET_REJ']:return{..._0x398911,'data':{..._0x4815a1,'data':(_0x25fa17=_0x4815a1[_0x3cae6a(0x3d7)])==null?void 0x0:_0x25fa17['cs']},'cmd':_0x398911[_0x3cae6a(0x37c)]};case _0x5898c5[_0x3cae6a(0x38b)]:return{..._0x398911,'data':{..._0x4815a1,'data':(_0x203b5f=_0x4815a1[_0x3cae6a(0x43d)])==null?void 0x0:_0x203b5f['cs']},'cmd':_0x398911[_0x3cae6a(0x37c)]};case _0x5898c5[_0x3cae6a(0x201)]:return{..._0x398911,'data':{..._0x4815a1,'data':_0x4815a1['updateCursorEvent']},'cmd':_0x398911['cmd']};case _0x5898c5[_0x3cae6a(0x4d7)]:return{..._0x398911,'data':{..._0x4815a1,'data':_0x4815a1[_0x3cae6a(0x38f)]},'cmd':_0x398911[_0x3cae6a(0x37c)]};case _0x5898c5[_0x3cae6a(0x2c0)]:return{..._0x398911,'data':{..._0x4815a1,'data':_0x4815a1[_0x3cae6a(0x3d9)]},'cmd':_0x398911[_0x3cae6a(0x37c)]};case _0x5898c5[_0x3cae6a(0x328)]:return{..._0x398911,'data':{..._0x4815a1,'data':_0x4815a1['liveShareNewHost']},'cmd':_0x398911[_0x3cae6a(0x37c)]};case _0x5898c5[_0x3cae6a(0x49c)]:case _0x5898c5[_0x3cae6a(0x437)]:return{..._0x398911,'data':{..._0x4815a1,'data':_0x4815a1['liveShareOperation']},'cmd':_0x398911[_0x3cae6a(0x37c)]};case _0x5898c5[_0x3cae6a(0x31b)]:return{..._0x398911,'data':{..._0x4815a1,'data':_0x4815a1['liveShareNewHost']},'cmd':_0x398911[_0x3cae6a(0x37c)]};case _0x5898c5['MSG_FOR_ERROR']:return{..._0x398911,'data':_0x4815a1,'cmd':_0x398911['cmd']};case _0x5898c5[_0x3cae6a(0x1fb)]:return{..._0x398911,'data':{..._0x4815a1,'data':_0x4815a1[_0x3cae6a(0x212)]},'cmd':_0x398911[_0x3cae6a(0x37c)]};case _0x5898c5[_0x3cae6a(0x38c)]:return{..._0x398911,'data':{..._0x4815a1,'data':_0x4815a1[_0x3cae6a(0x45c)]},'cmd':_0x398911[_0x3cae6a(0x37c)]};case _0x5898c5['SHOULD_CLOSE_CONN']:return{..._0x398911,'data':{..._0x4815a1,'data':_0x4815a1[_0x3cae6a(0x46f)]},'cmd':_0x398911['cmd']};default:return _0x398911;}}default:return _0x398911;}}function xn(_0xd81e95){const _0x332415=_0x107bfd;switch(_0xd81e95[_0x332415(0x37c)]){case I[_0x332415(0x49e)]:case I[_0x332415(0x308)]:return JSON[_0x332415(0x304)]({'cmd':_0xd81e95[_0x332415(0x37c)],'routeKey':_0xd81e95[_0x332415(0x543)]});case I['INGEST']:{let _0x31114f;switch(_0xd81e95[_0x332415(0x431)][_0x332415(0x410)]){case _0x5898c5[_0x332415(0x201)]:{_0x31114f={'eventID':_0x5898c5['UPDATE_CURSOR'],'updateCursorEvent':_0xd81e95['data'][_0x332415(0x431)]};break;}case _0x5898c5[_0x332415(0x2c0)]:{_0x31114f={'eventID':_0x5898c5[_0x332415(0x2c0)],'leaveEvent':_0xd81e95['data'][_0x332415(0x431)]};break;}case _0x5898c5[_0x332415(0x4d7)]:{_0x31114f={'eventID':_0x5898c5[_0x332415(0x4d7)],'joinEvent':_0xd81e95[_0x332415(0x431)][_0x332415(0x431)]};break;}case _0x5898c5[_0x332415(0x328)]:{_0x31114f={'eventID':_0x5898c5[_0x332415(0x328)],'liveShareNewHost':_0xd81e95[_0x332415(0x431)][_0x332415(0x431)]};break;}case _0x5898c5['LIVESHARE_OPERATION']:{_0x31114f={'eventID':_0x5898c5[_0x332415(0x437)],'liveShareOperation':_0xd81e95['data'][_0x332415(0x431)]};break;}case _0x5898c5[_0x332415(0x31b)]:{_0x31114f={'eventID':_0x5898c5[_0x332415(0x31b)],'liveShareTerminate':_0xd81e95[_0x332415(0x431)][_0x332415(0x431)]};break;}case _0x5898c5['LIVESHARE_REQUEST_HOST']:{_0x31114f={'eventID':_0x5898c5[_0x332415(0x528)],'liveShareRequestHost':_0xd81e95[_0x332415(0x431)][_0x332415(0x431)]};break;}case _0x5898c5[_0x332415(0x49c)]:{_0x31114f={'eventID':_0x5898c5['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x31114f={'eventID':_0xd81e95['data'][_0x332415(0x410)]};}return JSON['stringify']({'cmd':_0xd81e95[_0x332415(0x37c)],'routeKey':_0xd81e95['routeKey'],'collaMsg':_0x31114f});}case I[_0x332415(0x3ae)]:return JSON[_0x332415(0x304)]({'cmd':_0xd81e95['cmd'],'routeKey':_0xd81e95[_0x332415(0x543)],'joinReq':_0xd81e95[_0x332415(0x431)]});case I[_0x332415(0x4c2)]:return JSON[_0x332415(0x304)]({'cmd':_0xd81e95['cmd'],'routeKey':_0xd81e95[_0x332415(0x543)],'leaveReq':_0xd81e95[_0x332415(0x431)]});default:throw new Error(_0x332415(0x251));}}var kn=Object[_0x107bfd(0x1ea)],Bn=Object[_0x107bfd(0x22d)],Vn=(_0x4a317f,_0x1c4213,_0x48cb26,_0x53826)=>{const _0x30cf93=_0x107bfd;for(var _0x533614=_0x53826>0x1?void 0x0:_0x53826?Bn(_0x1c4213,_0x48cb26):_0x1c4213,_0x147767=_0x4a317f[_0x30cf93(0x38d)]-0x1,_0x430f24;_0x147767>=0x0;_0x147767--)(_0x430f24=_0x4a317f[_0x147767])&&(_0x533614=(_0x53826?_0x430f24(_0x1c4213,_0x48cb26,_0x533614):_0x430f24(_0x533614))||_0x533614);return _0x53826&&_0x533614&&kn(_0x1c4213,_0x48cb26,_0x533614),_0x533614;},De=(_0x4e4ab7,_0x49a88f)=>(_0x352600,_0xbd438c)=>_0x49a88f(_0x352600,_0xbd438c,_0x4e4ab7);const Vs=_0x51f9c0(_0x107bfd(0x422));function Fn(_0x58e271,_0x138047,_0x264d01){const _0x192ebb=_0x107bfd;return _0x58e271+'/'+_0x138047+_0x192ebb(0x3b9)+_0x264d01+'/new_changes';}let bt=class extends _0x502c5a{constructor(_0x2d3a7d,_0x44f50f,_0x2d0bd7,_0x1202d6,_0x1eeaed){const _0x16d442=_0x107bfd;super(),this[_0x16d442(0x232)]=_0x2d3a7d,this[_0x16d442(0x26a)]=_0x44f50f,this[_0x16d442(0x30f)]=_0x2d0bd7,this[_0x16d442(0x3f1)]=_0x1202d6,this[_0x16d442(0x36d)]=_0x1eeaed;}[_0x107bfd(0x48c)](_0x361e2d){const _0x25c358=_0x107bfd,_0x44b39a=this[_0x25c358(0x26a)]['createSocket'](_0x361e2d);if(!_0x44b39a)throw new Error(_0x25c358(0x4d2));const _0x511fae=new _0x59267d(),_0x86baac=new _0x5986f4();_0x511fae[_0x25c358(0x2fc)](_0x44b39a['close$'][_0x25c358(0x4c6)](_0x4f21d3=>_0x86baac['next'](_0x4f21d3))),_0x511fae[_0x25c358(0x2fc)](_0x216991(()=>_0x86baac[_0x25c358(0x41a)]()));const _0x52b4c8=new _0x5986f4();_0x511fae['add'](_0x44b39a[_0x25c358(0x338)][_0x25c358(0x4c6)](_0x482b2f=>_0x52b4c8[_0x25c358(0x520)](_0x482b2f))),_0x511fae['add'](_0x216991(()=>_0x52b4c8[_0x25c358(0x41a)]()));const _0x58e83e=new _0x5986f4();_0x511fae[_0x25c358(0x2fc)](_0x44b39a['message$'][_0x25c358(0x4c6)](_0x4aed53=>{const _0x41557d=Hn(_0x4aed53);_0x58e83e['next'](_0x41557d);})),_0x511fae[_0x25c358(0x2fc)](_0x216991(()=>_0x58e83e[_0x25c358(0x41a)]()));let _0x4d5604;const _0x34d9b2=()=>{const _0x4c7a2b=_0x25c358;_0x52b4c8[_0x4c7a2b(0x520)](new Event(_0x4c7a2b(0x2ed))),_0x86baac['next'](new CloseEvent(_0x4c7a2b(0x2ed))),_0x4d5604['close']();};return _0x4d5604={'memberID':'','close$':_0x86baac[_0x25c358(0x491)](),'error$':_0x52b4c8['asObservable'](),'open$':_0x44b39a[_0x25c358(0x20d)],'message$':_0x58e83e[_0x25c358(0x491)](),'send':_0x187117=>{const _0x4c9569=_0x25c358;if(_0x187117['cmd']===I['INGEST']){if(_0x187117[_0x4c9569(0x431)][_0x4c9569(0x410)]===_0x5898c5[_0x4c9569(0x320)]){this[_0x4c9569(0x38a)](_0x4d5604,_0x187117[_0x4c9569(0x431)])['catch'](_0x3e3baa=>{const _0x145789=_0x4c9569;this[_0x145789(0x3f1)]['error'](_0x3e3baa),_0x34d9b2();});return;}if(_0x187117[_0x4c9569(0x431)][_0x4c9569(0x410)]===_0x5898c5[_0x4c9569(0x2fd)]){const _0x101b58=_0x187117['data'];this[_0x4c9569(0x37e)](_0x101b58)[_0x4c9569(0x302)](_0x20f579=>{const _0x187a0f=_0x4c9569;_0x58e83e['next']({'cmd':I[_0x187a0f(0x386)],'code':Ft['OK'],'routeKey':_0x101b58[_0x187a0f(0x431)][_0x187a0f(0x4e1)],'routeType':'','data':{'eventID':_0x5898c5[_0x187a0f(0x42e)],'data':{'changesets':_0x20f579}}});})[_0x4c9569(0x1f2)](_0x31d54f=>{const _0x4ef9e4=_0x4c9569;this[_0x4ef9e4(0x3f1)][_0x4ef9e4(0x332)](_0x31d54f),_0x34d9b2();});return;}}_0x44b39a[_0x4c9569(0x20e)](xn(_0x187117));},'close':()=>{const _0x56fda3=_0x25c358;_0x44b39a[_0x56fda3(0x2d5)](),_0x511fae[_0x56fda3(0x411)]();}},_0x4d5604;}async[_0x107bfd(0x38a)](_0x3e055f,_0x190cb9){const _0x13cf3e=_0x107bfd;var _0x472ec4,_0x9f3eed;const {unitType:_0x19937b,unitID:_0xa03c04,changeset:_0x255d0d}=_0x190cb9[_0x13cf3e(0x431)],_0x52b3cf={'unitID':_0xa03c04,'memberID':_0x3e055f[_0x13cf3e(0x2e5)],'type':_0x19937b,'changeset':_0x49b60c(_0x255d0d)},_0x57d6b7=this[_0x13cf3e(0x30f)][_0x13cf3e(0x3c9)](An),_0x322191=this[_0x13cf3e(0x30f)][_0x13cf3e(0x3c9)](j),_0x53fde8=Fn((_0x9f3eed=(_0x472ec4=_0x322191==null?void 0x0:_0x322191[_0x13cf3e(0x345)])!=null?_0x472ec4:_0x57d6b7)!=null?_0x9f3eed:Mn,_0x19937b,_0xa03c04);try{await this[_0x13cf3e(0x232)][_0x13cf3e(0x3d8)](_0x53fde8,{'body':_0x52b3cf});}catch(_0x3a0b4f){throw this[_0x13cf3e(0x3f1)][_0x13cf3e(0x332)](_0x13cf3e(0x512),'submit\x20changeset\x20error!'),_0x3a0b4f;}}async[_0x107bfd(0x37e)](_0x41c302){const _0x19adb2=_0x107bfd,{unitID:_0x49a0bd,from:_0x1d79ea,to:_0x194ccd,unitType:_0x30442c}=_0x41c302[_0x19adb2(0x431)];return(await this[_0x19adb2(0x36d)][_0x19adb2(0x24e)]({'metadata':void 0x0},{'unitID':_0x49a0bd,'type':_0x30442c,'from':_0x1d79ea,'to':_0x194ccd}))[_0x19adb2(0x273)];}};bt=Vn([De(0x0,_0x22b1d4(_0x1f1833)),De(0x1,_0x22b1d4(_0x41211a)),De(0x2,_0x4d9096),De(0x3,_0x42be42),De(0x4,_0x3377fb)],bt);const Wn='collaboration_new_changeset';function Gn(_0x14f76a){const _0x3fb284=_0x107bfd;return JSON[_0x3fb284(0x304)](_0x14f76a)[_0x3fb284(0x38d)];}class Fs{constructor(){const _0xcc7d67=_0x107bfd;l(this,_0xcc7d67(0x2bc),new _0x5986f4()),l(this,_0xcc7d67(0x424),this[_0xcc7d67(0x2bc)][_0xcc7d67(0x491)]());}[_0x107bfd(0x2c5)](_0x50b24a){const _0x5c5706=_0x107bfd;this[_0x5c5706(0x2bc)]['next'](_0x50b24a);}}var Yn=Object[_0x107bfd(0x1ea)],Kn=Object[_0x107bfd(0x22d)],Xn=(_0x1e4066,_0x563976,_0x126dfb,_0x17c240)=>{for(var _0x4db159=_0x17c240>0x1?void 0x0:_0x17c240?Kn(_0x563976,_0x126dfb):_0x563976,_0xb4077c=_0x1e4066['length']-0x1,_0x247c3d;_0xb4077c>=0x0;_0xb4077c--)(_0x247c3d=_0x1e4066[_0xb4077c])&&(_0x4db159=(_0x17c240?_0x247c3d(_0x563976,_0x126dfb,_0x4db159):_0x247c3d(_0x4db159))||_0x4db159);return _0x17c240&&_0x4db159&&Yn(_0x563976,_0x126dfb,_0x4db159),_0x4db159;},cs=(_0x49cef2,_0x30013d)=>(_0x22f26d,_0x2b3a7e)=>_0x30013d(_0x22f26d,_0x2b3a7e,_0x49cef2);let _e=class extends _0x502c5a{constructor(_0x45756d,_0xd2ce8d){const _0x2b81fc=_0x107bfd;super(),l(this,'_roomMembers',new Map()),(this[_0x2b81fc(0x32d)]=_0x45756d,this[_0x2b81fc(0x54f)]=_0xd2ce8d,this[_0x2b81fc(0x2b2)](_0x216991(_0x577738(this[_0x2b81fc(0x32d)][_0x2b81fc(0x487)](_0xdaf2b4[_0x2b81fc(0x547)])[_0x2b81fc(0x321)](_0xd272ef(_0x5efdbb=>_0x5efdbb['getUnitId']())),this[_0x2b81fc(0x32d)][_0x2b81fc(0x487)](_0xdaf2b4[_0x2b81fc(0x344)])[_0x2b81fc(0x321)](_0xd272ef(_0x10dd37=>_0x10dd37[_0x2b81fc(0x2bf)]())),this['_univerInstanceService'][_0x2b81fc(0x487)](_0xdaf2b4[_0x2b81fc(0x398)])[_0x2b81fc(0x321)](_0xd272ef(_0x18f19c=>_0x18f19c[_0x2b81fc(0x2bf)]())))[_0x2b81fc(0x4c6)](_0x39865d=>this[_0x2b81fc(0x494)](_0x39865d)))));}[_0x107bfd(0x39a)](_0x791faa){const _0x567964=_0x107bfd;this[_0x567964(0x54f)][_0x567964(0x39a)](_0x791faa);}['getCurrentUser'](){return this['_userManagerService']['getCurrentUser']();}[_0x107bfd(0x4a1)](_0x902662,_0x2af02f){const _0x7fd658=_0x107bfd;let _0x18f9c4=this['_roomMembers']['get'](_0x902662);_0x18f9c4||(_0x18f9c4=new qn(),this[_0x7fd658(0x464)][_0x7fd658(0x4b9)](_0x902662,_0x18f9c4)),_0x18f9c4[_0x7fd658(0x4a1)](_0x2af02f);}[_0x107bfd(0x516)](_0x2545f4,_0x10dd41){const _0x1cc8a6=_0x107bfd,_0x54869f=this[_0x1cc8a6(0x464)][_0x1cc8a6(0x22f)](_0x2545f4);_0x54869f&&_0x54869f[_0x1cc8a6(0x516)](_0x10dd41);}[_0x107bfd(0x2eb)](_0x3cb4fa){const _0x4160ae=_0x107bfd;return this[_0x4160ae(0x464)]['get'](_0x3cb4fa);}[_0x107bfd(0x3b8)](_0x1a0a72,_0x18a140){const _0x16777d=_0x107bfd,_0x37d6c6=this[_0x16777d(0x464)][_0x16777d(0x22f)](_0x1a0a72);if(_0x37d6c6)return _0x37d6c6[_0x16777d(0x3b8)](_0x18a140);}[_0x107bfd(0x494)](_0x42a804){const _0x33b33c=_0x107bfd,_0x1c8dad=this[_0x33b33c(0x464)][_0x33b33c(0x22f)](_0x42a804);_0x1c8dad&&(_0x1c8dad['dispose'](),this[_0x33b33c(0x464)]['delete'](_0x42a804));}['dispose'](){const _0x2faf63=_0x107bfd;this[_0x2faf63(0x464)]['forEach'](_0x34ed75=>_0x34ed75['dispose']()),this[_0x2faf63(0x464)][_0x2faf63(0x3cb)]();}};_e=Xn([cs(0x0,_0x4bc21f),cs(0x1,_0x22b1d4(_0x59ec54))],_e);class qn extends _0x502c5a{constructor(){const _0x4f0eef=_0x107bfd;super(...arguments),l(this,_0x4f0eef(0x2fa),new Map());}[_0x107bfd(0x411)](){const _0x4d9d80=_0x107bfd;this[_0x4d9d80(0x2fa)]['clear']();}['updateMember'](_0xc1bd0a){const _0x2f0d42=_0x107bfd;this['_members'][_0x2f0d42(0x4b9)](_0xc1bd0a['memberID'],_0xc1bd0a);}[_0x107bfd(0x516)](_0x4abc7d){const _0x1db0c0=_0x107bfd;this['_members'][_0x1db0c0(0x222)](_0x4abc7d);}[_0x107bfd(0x3b8)](_0x1bf5b){return this['_members']['get'](_0x1bf5b);}[_0x107bfd(0x545)](){const _0x471b76=_0x107bfd;return Array['from'](this[_0x471b76(0x2fa)][_0x471b76(0x2de)]());}}var Jn=Object[_0x107bfd(0x1ea)],zn=Object[_0x107bfd(0x22d)],Zn=(_0x4be92d,_0x448847,_0x30892e,_0x4d14bc)=>{for(var _0x1be1da=_0x4d14bc>0x1?void 0x0:_0x4d14bc?zn(_0x448847,_0x30892e):_0x448847,_0x926e8c=_0x4be92d['length']-0x1,_0x1fee07;_0x926e8c>=0x0;_0x926e8c--)(_0x1fee07=_0x4be92d[_0x926e8c])&&(_0x1be1da=(_0x4d14bc?_0x1fee07(_0x448847,_0x30892e,_0x1be1da):_0x1fee07(_0x1be1da))||_0x1be1da);return _0x4d14bc&&_0x1be1da&&Jn(_0x448847,_0x30892e,_0x1be1da),_0x1be1da;},Z=(_0x22a12e,_0xb1f140)=>(_0xa8ecf9,_0x1fd8ed)=>_0xb1f140(_0xa8ecf9,_0x1fd8ed,_0x22a12e),X=(_0x16d81f=>(_0x16d81f[_0x16d81f['IDLE']=0x0]=_0x107bfd(0x3d5),_0x16d81f[_0x16d81f[_0x107bfd(0x41f)]=0x1]=_0x107bfd(0x41f),_0x16d81f[_0x16d81f[_0x107bfd(0x507)]=0x2]=_0x107bfd(0x507),_0x16d81f[_0x16d81f[_0x107bfd(0x359)]=0x3]=_0x107bfd(0x359),_0x16d81f))(X||{});let Tt=class extends _0x4fe933{constructor(_0x226186,_0x2e59a1,_0xd2c94,_0x1235ae,_0xdae53,_0x2df111,_0x698ee5,_0x200686,_0x21ff17,_0x223713){const _0x474b43=_0x107bfd;super(),l(this,_0x474b43(0x30b),new _0x435a5b(0x0)),l(this,_0x474b43(0x30c),this[_0x474b43(0x30b)][_0x474b43(0x491)]()),l(this,_0x474b43(0x23d),new _0x5986f4()),l(this,'event$',this['_event$']['asObservable']()),l(this,'_socket'),l(this,_0x474b43(0x358)),l(this,_0x474b43(0x29f)),l(this,'_shouldReportTelemetry',!0x1),l(this,_0x474b43(0x3a9),null),(this[_0x474b43(0x37b)]=_0x226186,this[_0x474b43(0x3f1)]=_0xd2c94,this[_0x474b43(0x288)]=_0x1235ae,this[_0x474b43(0x26d)]=_0xdae53,this[_0x474b43(0x30f)]=_0x2df111,this[_0x474b43(0x533)]=_0x698ee5,this[_0x474b43(0x204)]=_0x200686,this['_commentService']=_0x21ff17,this['_telemetryService']=_0x223713,this[_0x474b43(0x43e)]=!!this[_0x474b43(0x264)],_0x2e59a1[_0x474b43(0x321)](_0x31a17e(this['dispose$']))[_0x474b43(0x4c6)](_0x5773b9=>{const _0x2abda6=_0x474b43;var _0x3f8a8e;typeof _0x5773b9>'u'||(this['_socket']=_0x5773b9,_0x5773b9?(this[_0x2abda6(0x40b)](_0x5773b9),this[_0x2abda6(0x358)]=_0x5773b9[_0x2abda6(0x366)][_0x2abda6(0x4c6)](_0x5d38b4=>{const _0x489838=_0x2abda6;_0x5d38b4[_0x489838(0x543)]===this[_0x489838(0x37b)]&&this[_0x489838(0x55b)](_0x5d38b4);})):(this[_0x2abda6(0x47e)](),this['_sessionStatus$'][_0x2abda6(0x520)](0x2),(_0x3f8a8e=this[_0x2abda6(0x358)])==null||_0x3f8a8e[_0x2abda6(0x28c)](),this['_socketMessageSubscription']=null));}),this[_0x474b43(0x2b2)](this[_0x474b43(0x288)][_0x474b43(0x468)](()=>{const _0x5d2b14=_0x474b43;var _0x5c0daa;(_0x5c0daa=this[_0x5d2b14(0x33b)])==null||_0x5c0daa[_0x5d2b14(0x20e)]({'cmd':I[_0x5d2b14(0x4c2)],'data':{'roomID':this[_0x5d2b14(0x37b)]}});})));}get['sessionStatus'](){const _0x30ef10=_0x107bfd;return this[_0x30ef10(0x30b)][_0x30ef10(0x4b4)]();}[_0x107bfd(0x293)](){const _0x27b80a=_0x107bfd;var _0x1aca74,_0x2f132e;return(_0x2f132e=(_0x1aca74=this[_0x27b80a(0x33b)])==null?void 0x0:_0x1aca74['memberID'])!=null?_0x2f132e:null;}[_0x107bfd(0x411)](){const _0x586f65=_0x107bfd;super[_0x586f65(0x411)](),this[_0x586f65(0x373)]['next'](),this[_0x586f65(0x373)]['complete']();}[_0x107bfd(0x2d5)](){const _0x204cfd=_0x107bfd;var _0x333d09,_0x6ff429;this['_throwTelemetryCollaborationNewChangeset'](),(_0x333d09=this[_0x204cfd(0x33b)])==null||_0x333d09[_0x204cfd(0x20e)]({'cmd':I[_0x204cfd(0x4c2)],'data':{'roomID':this[_0x204cfd(0x37b)]}}),(_0x6ff429=this['_socket'])==null||_0x6ff429[_0x204cfd(0x2d5)](),this[_0x204cfd(0x23d)][_0x204cfd(0x41a)](),this['_sessionStatus$']['complete'](),this[_0x204cfd(0x411)]();}[_0x107bfd(0x55b)](_0x2f8d6e){const _0x1c63fc=_0x107bfd;_0x2f8d6e[_0x1c63fc(0x37c)]===I[_0x1c63fc(0x3ae)]?this[_0x1c63fc(0x2ef)](_0x2f8d6e):_0x2f8d6e['cmd']===I[_0x1c63fc(0x386)]&&this[_0x1c63fc(0x4c4)](_0x2f8d6e);}[_0x107bfd(0x40b)](_0x333c77){const _0x4bbbb6=_0x107bfd;this['_sessionStatus$'][_0x4bbbb6(0x520)](0x1),_0x333c77[_0x4bbbb6(0x20e)]({'cmd':I['JOIN'],'routeKey':this[_0x4bbbb6(0x37b)],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0x107bfd(0x2ef)](_0x350340){const _0x567650=_0x107bfd;var _0x1d0e59;if(_0x350340[_0x567650(0x36b)]===Ft[_0x567650(0x37a)]){this[_0x567650(0x26d)][_0x567650(0x1fd)]({'type':_0x3a2b8b[_0x567650(0x3ef)],'content':this[_0x567650(0x533)]['t']('session.room-full')}),this[_0x567650(0x30b)][_0x567650(0x520)](0x2);return;}this[_0x567650(0x30b)]['next'](0x3);const _0x36ba61=(_0x1d0e59=_0x350340[_0x567650(0x431)][_0x567650(0x4ef)][this[_0x567650(0x37b)]])==null?void 0x0:_0x1d0e59[_0x567650(0x36f)];_0x36ba61&&_0x36ba61[_0x567650(0x51c)](_0x45dce5=>this[_0x567650(0x204)][_0x567650(0x4a1)](this['_unitID'],_0x45dce5));}['_onRecvEvent'](_0x3c31e1){const _0x737f59=_0x107bfd;try{const _0x2b670f=_0x3c31e1[_0x737f59(0x431)];switch(_0x2b670f[_0x737f59(0x410)]){case _0x5898c5[_0x737f59(0x4d7)]:this[_0x737f59(0x3bc)](_0x2b670f),this[_0x737f59(0x23d)]['next'](_0x2b670f);break;case _0x5898c5['USERS_LEAVE']:this[_0x737f59(0x2d6)](_0x2b670f),this['_event$'][_0x737f59(0x520)](_0x2b670f);break;case _0x5898c5['CHANGESET_ACK']:case _0x5898c5[_0x737f59(0x38b)]:this[_0x737f59(0x538)](),this[_0x737f59(0x2e8)](),this[_0x737f59(0x23d)]['next'](_0x2b670f);break;case _0x5898c5[_0x737f59(0x42c)]:this[_0x737f59(0x3f1)]['error'](_0x737f59(0x41b)+JSON[_0x737f59(0x304)](_0x2b670f)),this[_0x737f59(0x23d)][_0x737f59(0x520)](_0x2b670f);break;case _0x5898c5[_0x737f59(0x1fb)]:this[_0x737f59(0x292)][_0x737f59(0x2c5)](_0x2b670f[_0x737f59(0x431)]),this['_event$'][_0x737f59(0x520)](_0x2b670f);break;default:this[_0x737f59(0x23d)][_0x737f59(0x520)](_0x2b670f);}}catch(_0x132cdb){this[_0x737f59(0x3f1)]['error'](_0x132cdb,_0x3c31e1);}}[_0x107bfd(0x3bc)](_0x5f1526){const _0x34623c=_0x107bfd;this[_0x34623c(0x204)][_0x34623c(0x4a1)](this['_unitID'],_0x5f1526[_0x34623c(0x431)]);}[_0x107bfd(0x2d6)](_0x511293){const _0x122a47=_0x107bfd;this[_0x122a47(0x204)]['removeMember'](this[_0x122a47(0x37b)],_0x511293[_0x122a47(0x431)][_0x122a47(0x2e5)]);}async[_0x107bfd(0x20e)](_0x3e89dd,_0xaec890){const _0x26087f=_0x107bfd;if(this['sessionStatus']!==0x3||!this[_0x26087f(0x33b)])throw new Error(_0x26087f(0x247));try{_0x3e89dd['eventID']===_0x5898c5[_0x26087f(0x320)]&&(this[_0x26087f(0x482)](),this[_0x26087f(0x323)](_0x3e89dd)),this[_0x26087f(0x33b)][_0x26087f(0x20e)]({'cmd':I[_0x26087f(0x4b3)],'routeKey':_0xaec890,'routeType':'','data':_0x3e89dd});}catch(_0x33eaa4){this[_0x26087f(0x3f1)]['error'](_0x33eaa4);}}[_0x107bfd(0x482)](){const _0x4934ba=_0x107bfd;var _0x380733;this[_0x4934ba(0x29f)]=window['setTimeout'](()=>{const _0x42f8b4=_0x4934ba;this[_0x42f8b4(0x29f)]=null,this[_0x42f8b4(0x26d)]['show']({'type':_0x3a2b8b[_0x42f8b4(0x4d0)],'content':this[_0x42f8b4(0x533)]['t'](_0x42f8b4(0x56c))});},(_0x380733=this[_0x4934ba(0x30f)][_0x4934ba(0x3c9)](Hs))!=null?_0x380733:xs);}['_clearCollaborationTimeoutTimer'](){const _0x25fa90=_0x107bfd;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x25fa90(0x29f)]),this[_0x25fa90(0x29f)]=null);}[_0x107bfd(0x323)](_0x5c1694){const _0x129f04=_0x107bfd;if(!this[_0x129f04(0x43e)])return;const {data:_0x44bcbf}=_0x5c1694,{unitID:_0x3ff4f4,changeset:_0x1b27c0}=_0x44bcbf,{mutations:_0x3c3f7a,type:_0x227d19}=_0x1b27c0;this[_0x129f04(0x3a9)]={'unitId':_0x3ff4f4,'type':_0x227d19,'startTime':performance[_0x129f04(0x441)](),'stopTime':0x0,'duration':0x0,'size':Gn(_0x3c3f7a)};}[_0x107bfd(0x538)](){const _0x3f1a0e=_0x107bfd;if(this['_shouldReportTelemetry']){if(!this[_0x3f1a0e(0x3a9)]){this['_logService'][_0x3f1a0e(0x332)]('[CollaborationSession]',_0x3f1a0e(0x530));return;}this['_telemetryInfo'][_0x3f1a0e(0x2af)]=performance[_0x3f1a0e(0x441)](),this[_0x3f1a0e(0x3a9)][_0x3f1a0e(0x3d6)]=this[_0x3f1a0e(0x3a9)][_0x3f1a0e(0x2af)]-this[_0x3f1a0e(0x3a9)][_0x3f1a0e(0x34b)],this[_0x3f1a0e(0x264)][_0x3f1a0e(0x54d)](Wn,this[_0x3f1a0e(0x3a9)]),this['_telemetryInfo']=null;}}['_throwTelemetryCollaborationNewChangeset'](){const _0x77eceb=_0x107bfd;this[_0x77eceb(0x3a9)]=null;}};Tt=Zn([Z(0x2,_0x42be42),Z(0x3,_0x3de624),Z(0x4,_0x1f96df),Z(0x5,_0x4d9096),Z(0x6,_0x22b1d4(_0x18c55e)),Z(0x7,_0x22b1d4(_e)),Z(0x8,_0x22b1d4(Fs)),Z(0x9,_0x49e124(_0x578656))],Tt);var Qn=Object[_0x107bfd(0x1ea)],er=Object[_0x107bfd(0x22d)],tr=(_0xc1b6ef,_0x2ce539,_0x45eecb,_0x42fed7)=>{const _0x564e5b=_0x107bfd;for(var _0xcc43cc=_0x42fed7>0x1?void 0x0:_0x42fed7?er(_0x2ce539,_0x45eecb):_0x2ce539,_0x719c93=_0xc1b6ef[_0x564e5b(0x38d)]-0x1,_0x57eb81;_0x719c93>=0x0;_0x719c93--)(_0x57eb81=_0xc1b6ef[_0x719c93])&&(_0xcc43cc=(_0x42fed7?_0x57eb81(_0x2ce539,_0x45eecb,_0xcc43cc):_0x57eb81(_0xcc43cc))||_0xcc43cc);return _0x42fed7&&_0xcc43cc&&Qn(_0x2ce539,_0x45eecb,_0xcc43cc),_0xcc43cc;},Se=(_0x260fca,_0x2201c5)=>(_0x43d581,_0x5a3100)=>_0x2201c5(_0x43d581,_0x5a3100,_0x260fca);let ue=class extends _0x502c5a{constructor(_0x5bd269,_0x2f5257,_0x5076d8,_0x2e70b9,_0x449944,_0xe7e996){const _0x50ffbf=_0x107bfd;super(),l(this,'_socket$',new _0x435a5b(void 0x0)),l(this,_0x50ffbf(0x513),this[_0x50ffbf(0x3e3)][_0x50ffbf(0x491)]()),l(this,_0x50ffbf(0x2ce),null),l(this,_0x50ffbf(0x3fa),new Map()),l(this,'_status$',new _0x435a5b(X[_0x50ffbf(0x3d5)])),l(this,_0x50ffbf(0x2d9),this[_0x50ffbf(0x4e0)][_0x50ffbf(0x491)]()),l(this,_0x50ffbf(0x2fb),!0x1),l(this,_0x50ffbf(0x527)),l(this,_0x50ffbf(0x2aa),0x0),l(this,_0x50ffbf(0x340)),l(this,'_timeoutTimer'),(this[_0x50ffbf(0x2f8)]=_0x5bd269,this[_0x50ffbf(0x533)]=_0x2f5257,this['_messageService']=_0x5076d8,this[_0x50ffbf(0x3f1)]=_0x2e70b9,this[_0x50ffbf(0x30f)]=_0x449944,this[_0x50ffbf(0x363)]=_0xe7e996,this['_initEventListeners']());}get[_0x107bfd(0x33b)](){const _0x41ad4c=_0x107bfd;return this['_socket$'][_0x41ad4c(0x4b4)]();}['_initEventListeners'](){const _0x5080ff=_0x107bfd;this[_0x5080ff(0x385)](),this[_0x5080ff(0x20a)]();}[_0x107bfd(0x411)](){const _0x18789c=_0x107bfd;super[_0x18789c(0x411)](),this[_0x18789c(0x3fa)][_0x18789c(0x51c)](_0x77dcc7=>_0x77dcc7[_0x18789c(0x411)]()),this[_0x18789c(0x3fa)][_0x18789c(0x3cb)](),this['_status$']['complete']();}async['requireSession'](_0x256355){const _0x53ed53=_0x107bfd;if(this[_0x53ed53(0x3fa)]['has'](_0x256355))return this[_0x53ed53(0x3fa)]['get'](_0x256355);this[_0x53ed53(0x29b)]();const _0x538ecd=this[_0x53ed53(0x2f8)][_0x53ed53(0x223)](Tt,_0x256355,this[_0x53ed53(0x3e3)][_0x53ed53(0x491)]());return this[_0x53ed53(0x3fa)]['set'](_0x256355,_0x538ecd),_0x538ecd;}[_0x107bfd(0x378)](_0x171a8f){const _0x2ec25b=_0x107bfd;var _0x1765eb;const _0x344462=this[_0x2ec25b(0x3fa)][_0x2ec25b(0x22f)](_0x171a8f);_0x344462&&(this[_0x2ec25b(0x3fa)][_0x2ec25b(0x222)](_0x171a8f),_0x344462[_0x2ec25b(0x2d5)]()),this[_0x2ec25b(0x3fa)]['size']||(_0x1765eb=this['_socket'])==null||_0x1765eb[_0x2ec25b(0x2d5)]();}[_0x107bfd(0x211)](){const _0x16e07a=_0x107bfd;this[_0x16e07a(0x2aa)]=0x0,this[_0x16e07a(0x527)]!=null&&(clearTimeout(this[_0x16e07a(0x527)]),this[_0x16e07a(0x527)]=null),this[_0x16e07a(0x434)]();}['_createSocket'](){const _0x3b591c=_0x107bfd;var _0x555bd8,_0x1e4592;const _0x3b8e6b=this[_0x3b591c(0x30f)][_0x3b591c(0x3c9)](Tn),_0x30d64c=this['_configService']['getConfig'](j),_0x87cb23=(_0x1e4592=(_0x555bd8=_0x30d64c==null?void 0x0:_0x30d64c[_0x3b591c(0x23e)])!=null?_0x555bd8:_0x3b8e6b)!=null?_0x1e4592:Rn,_0x41bbe1=this[_0x3b591c(0x363)][_0x3b591c(0x48c)](_0x87cb23);return this['_candidateSocket']=_0x41bbe1,_0x41bbe1;}['_tryEnsureSocket'](){const _0x4cd782=_0x107bfd;var _0x314c80,_0x32872e;try{const _0x47e2fb=(_0x32872e=(_0x314c80=this[_0x4cd782(0x33b)])!=null?_0x314c80:this[_0x4cd782(0x2ce)])!=null?_0x32872e:this[_0x4cd782(0x2bd)]();if(_0x47e2fb){const _0x35a876=_0x47e2fb[_0x4cd782(0x20e)];_0x47e2fb[_0x4cd782(0x20e)]=_0x45d44a=>(this[_0x4cd782(0x49d)](),_0x35a876['apply'](_0x47e2fb,[_0x45d44a])),_0x47e2fb[_0x4cd782(0x366)][_0x4cd782(0x4c6)](_0x28b5ad=>this[_0x4cd782(0x301)](_0x47e2fb,_0x28b5ad)),_0x47e2fb[_0x4cd782(0x338)]['pipe'](_0x41f7ca(0x1))[_0x4cd782(0x4c6)](_0x340ea2=>this[_0x4cd782(0x3f1)][_0x4cd782(0x332)](_0x4cd782(0x421),_0x340ea2)),_0x47e2fb['open$']['pipe'](_0x41f7ca(0x1))[_0x4cd782(0x4c6)](()=>{const _0x301ed4=_0x4cd782;this[_0x301ed4(0x42f)](_0x47e2fb);}),_0x47e2fb[_0x4cd782(0x269)]['pipe'](_0x41f7ca(0x1))[_0x4cd782(0x4c6)](_0x1499e7=>{const _0x2d7836=_0x4cd782;this[_0x2d7836(0x3f1)][_0x2d7836(0x4b2)](_0x2d7836(0x33c),_0x2d7836(0x2d3),_0x1499e7),this[_0x2d7836(0x365)]();});}}catch(_0x4ac9c4){this['_logService'][_0x4cd782(0x332)](_0x4ac9c4),this[_0x4cd782(0x365)]();}}[_0x107bfd(0x42f)](_0x4c02a7){const _0x4ec0eb=_0x107bfd;this['_logService']['debug'](_0x4ec0eb(0x33c),'socket\x20open.'),_0x4c02a7['send']({'cmd':I['HELLO']}),this[_0x4ec0eb(0x49d)]();}['_listenToOfflineEvent'](){const _0x4957c0=_0x107bfd;window[_0x4957c0(0x209)](_0x4957c0(0x1ed),()=>this[_0x4957c0(0x2a7)]());}[_0x107bfd(0x2a7)](){const _0x12b8ca=_0x107bfd;this[_0x12b8ca(0x2fb)]=!0x1,this[_0x12b8ca(0x2ce)]=null,this[_0x12b8ca(0x4e0)][_0x12b8ca(0x520)](X[_0x12b8ca(0x507)]),this[_0x12b8ca(0x3e3)][_0x12b8ca(0x520)](null),this[_0x12b8ca(0x56b)](),this[_0x12b8ca(0x4f5)]();}[_0x107bfd(0x365)](){const _0x20e8c3=_0x107bfd;var _0x283edf;this['_onOffline'](),this[_0x20e8c3(0x2aa)]<((_0x283edf=this[_0x20e8c3(0x30f)][_0x20e8c3(0x3c9)](Pn))!=null?_0x283edf:yn)?(this['_messageService'][_0x20e8c3(0x1fd)]({'key':_0x20e8c3(0x442),'type':_0x3a2b8b['Warning'],'content':this['_localeService']['t']('session.will-retry')}),this[_0x20e8c3(0x434)]()):this['_messageService'][_0x20e8c3(0x1fd)]({'key':_0x20e8c3(0x442),'type':_0x3a2b8b[_0x20e8c3(0x4d0)],'content':this[_0x20e8c3(0x533)]['t']('session.connection-failed')});}[_0x107bfd(0x20a)](){const _0x4867bb=_0x107bfd,_0x5b71a1=()=>{const _0x317deb=_0x1556;this[_0x317deb(0x33b)]||this['reconnect']();},_0x2c5bd7=()=>{const _0x2e5006=_0x1556;this[_0x2e5006(0x33b)]||document[_0x2e5006(0x4dd)]==='hidden'||this[_0x2e5006(0x211)]();};window[_0x4867bb(0x209)](_0x4867bb(0x429),_0x5b71a1),document[_0x4867bb(0x209)]('visibilitychange',_0x2c5bd7);}[_0x107bfd(0x434)](){const _0xf89704=_0x107bfd;var _0x27cecf;const _0x3d71a0=this[_0xf89704(0x2aa)],_0x3b178c=this['_configService']['getConfig'](j),_0x5821e1=_0x3d71a0===0x0?0x0:((_0x27cecf=_0x3b178c==null?void 0x0:_0x3b178c['retryConnectingInterval'])!=null?_0x27cecf:wn)*0x2**_0x3d71a0;this[_0xf89704(0x527)]=window[_0xf89704(0x458)](()=>{const _0x5579c3=_0xf89704;clearTimeout(this[_0x5579c3(0x527)]),this[_0x5579c3(0x527)]=null,this['_tryEnsureSocket']();},_0x5821e1),this[_0xf89704(0x2aa)]+=0x1;}[_0x107bfd(0x301)](_0x1107bb,_0x18b296){const _0x2fbddd=_0x107bfd,{cmd:_0x36be1c}=_0x18b296;_0x36be1c===I[_0x2fbddd(0x308)]&&!this[_0x2fbddd(0x2fb)]&&(_0x1107bb[_0x2fbddd(0x2e5)]=_0x18b296[_0x2fbddd(0x431)][_0x2fbddd(0x2e5)],this[_0x2fbddd(0x3e3)][_0x2fbddd(0x520)](_0x1107bb),this[_0x2fbddd(0x4e0)][_0x2fbddd(0x520)](X[_0x2fbddd(0x359)]),this[_0x2fbddd(0x2fb)]=!0x0,this[_0x2fbddd(0x2ce)]=null),_0x36be1c===I['HEARTBEAT']&&this['_clearTimeoutTimer'](),this[_0x2fbddd(0x49d)]();}[_0x107bfd(0x49d)](){const _0x7360be=_0x107bfd;var _0x52967d;this[_0x7360be(0x4f5)](),this['_sendHeartbeatTimer']=window[_0x7360be(0x458)](()=>this['_sendHeartbeat'](),(_0x52967d=this[_0x7360be(0x30f)]['getConfig'](On))!=null?_0x52967d:Dn);}[_0x107bfd(0x1fe)](){const _0x4549a3=_0x107bfd;this[_0x4549a3(0x33b)][_0x4549a3(0x20e)]({'cmd':I[_0x4549a3(0x49e)]}),this[_0x4549a3(0x343)]();}[_0x107bfd(0x343)](){const _0x572124=_0x107bfd;var _0x5951a7;this[_0x572124(0x2e7)]=window[_0x572124(0x458)](()=>this[_0x572124(0x365)](),(_0x5951a7=this['_configService'][_0x572124(0x3c9)](Hs))!=null?_0x5951a7:xs);}[_0x107bfd(0x4f5)](){const _0x473040=_0x107bfd;this[_0x473040(0x340)]!=null&&(clearTimeout(this[_0x473040(0x340)]),this['_sendHeartbeatTimer']=null);}[_0x107bfd(0x56b)](){const _0x55f1fa=_0x107bfd;this[_0x55f1fa(0x2e7)]!=null&&(clearTimeout(this[_0x55f1fa(0x2e7)]),this[_0x55f1fa(0x2e7)]=null);}};ue=tr([Se(0x0,_0x22b1d4(_0x12b4cf)),Se(0x1,_0x22b1d4(_0x18c55e)),Se(0x2,_0x1f96df),Se(0x3,_0x42be42),Se(0x4,_0x4d9096),Se(0x5,Vs)],ue);var T=[];function _0x4fc6(){const _0x45c960=['UPDATE_PERMISSION_OBJ','length','getLatestCsReqIdBySid','joinEvent','_initUnitPermissionChange','json','_transformRemoteChangesetByIMECache','onTransformSelections','385vJjgkv','/object/','storage','collaboration-client.config','UNIVER_SLIDE','_getDownloadEndpointURL','setCurrentUser','_sheetSkeletonManagerService','_startDocCollabCursor','registerBeforeClose','APPLY_PERMISSION_DENIED','_colorIndex','_scheduleHeartbeat','_getAnchorBounding','_awaitingChangeset','COMPLETION_FINISHED','transformSelections','some','addObject','map','[PendingState]:\x20received\x20acknowledgement.','_telemetryInfo','_clearRedo','_exhaustRemoteChangesetQueue','_registerDependencies','currentTheme$','JOIN','currentColor','Undefined','src','subscribeEvent','YUUMI_UNABLE_LOAD_URL','exhaustSavingTask','measureText','none','_loadSheet','getMember','/unit/','compose','downloadEndpointUrl','_onUserJoin','interceptor','CHANGESET_REVISION_CONFILICT','&source=','xlink:href','save','resize','getRangePointData','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','onStateChange','startsWith','_init','trim','getConfig','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','clear','m2Prime','AWAITING','_replayCachedMutations','_httpService','max','searchParams','_getMergeRange','_scheduleTimestamp','_collaborationController','IDLE','duration','csRejEvent','post','leaveEvent','moveTo','RemoveRowCommandId','_labelPosition','UNIVER_PROJECT','APPLY_REJECT','INVALID_ARGUMENT','_refRangeService','_lockTransition','APPLY_DUPLICATED','_socket$','getOwnPropertySymbols','appendMutation','[CollaborationEntity]','onStarting','31bFYLwT','CHANGESET_REJ','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','objectType','isPermissionRej','deleteCollaborator','_renderManagerService','Warning','_collabSessionService','_logService','_onRemoteChangeset','incrementRevOfUnit','_cursor','top','_online','UNIVER_UNKNOWN','getCurrentUnitForType','onSyncEditingCollabCursor','_sessions','[OfflineState]:\x20received\x20acknowledgement.','fetchMiss','getCollabEntity$','hovered','LICENSE_DISTRO_REJECTED','_sender','_transformPreviousActiveRange','generateRandomId','textRanges','getResourcesRequest','failed\x20to\x20apply\x20missed\x20changesets!','_checkMissing','fillRule','idSuffix','getItem','_loadDoc','_joinRoom','hasOwnProperty','_handleEvent','_redoStacks','DeleteRangeMoveLeftCommandId','eventID','dispose','UNDEFINED','/fetchmissing?from=','_type','setInterval','_heartbeatTimer','reqId','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','unit-cache-','complete','save\x20fail\x20reason\x20is\x20','from','fillText','_undoRedoService','JOINING','find','[CollaborationSessionService]:\x20socket\x20error','univer-pro.collaboration-client-socket-service','onMouseMove','commentUpdate$','_range','readAsDataURL','collab-text-anchor-','_getUndoStack','online','resend','_initStatusComponent','MSG_FOR_ERROR','_state','PSEUDO_FETCH_MISSING_RESULT','_onConnectionOpen','lineTo','data','_syncEditingCollabCursorService','registerHTTPInterceptor','_tryReconnect','NEW_CHANGESETS','transformChangesets','LIVESHARE_OPERATION','M0\x200H16V16H0z','defs','children','urlChange$','getDeserializedSheetBlock','csShouldRetryEvent','_shouldReportTelemetry','focused$','univer-online-status','now','collaboration-session-retry','_onRemoteRetry','create','_assignedColors','_docTransformSelectionsService','LICENSE_EXPORT_SIZE_EXCEEDED','getUndoRedoMutationParamsCache','colorChannel1','collaMsg','size','RECT','_compressMutationService','isActive','fetching\x20missing\x20changesets\x20from\x20','_setupBeforeClosingHandler','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','random','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_anchor','enableOfflineEditing','_resendTimer','_textBubble','setTimeout','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','_docSkeleton','_transformUndoRedoStack','updatePermissionObjEvent','\x0aAfter:\x20','_remoteChangesetQueue','cursorInfo','_render','init','patch','_acknowledgedAwaitingChangeset','_roomMembers','registerComponent','_handleHover','OnLineSingle','registerOnClose','fetchThroughInterceptors','registerRenderModule','MUTATION','setShapeProps','_setupSubUnitSync','_notificationService','shouldCloseConn','_unitStatus','_saveTaskMap','getActiveRange','isArray','c1Prime','registerRefRange','/universer-api/snapshot/','_transformUndoredo','saveImage','_cursors','getCollabEntity','every','onTransformRemoteChangesetByIMECache','LICENSE_MAX_UNITS_EXCEEDED','_throwTelemetryCollaborationNewChangeset','_localCacheService','/allowed','_getUploadFileURL','_scheduleCollaborationTimeoutTimer','getSheetBlock','parse','OTHER_CLIENTS_EDITING','attrs','getTypeOfUnitDisposed$','DeleteRangeMoveUpCommandId','_scheduleSaving','extend','findNodePositionByCharIndex','createSocket','disposeUnit','0\x200\x2016\x2016','_cursorShapes','_drawAnchor','asObservable','_isPermissionRej','location','_removeRoom','HEADER_MENU','_toggleOffline','_onCursorUpdate','&to=','UnitSnapshot','_transformIMECache','permissionRejEvent','LIVESHARE_FETCH_OPERATIONS','_rescheduleHeartbeat','HEARTBEAT','triggerDblclick','74196NakPSD','updateMember','state$','_entityInit$','CHANGESET_ACK','_ensureSubject','SNAPSHOT_SERVER_URL_KEY','YUUMI_RATE_OVER_LIMIT','/-/object/-/batch_allowed','loadSheet','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_collabCursorController','updatePermissionPoint','_replaceFileID','_undoStacks','/universer-api/authz','16205391SBPMFc','updateOfflineData','debug','INGEST','getValue','whenReady','_sendingTimer','_initModules','saveChangeset','set','initWorkbookPermissionChange','#fff','_removeClearOtherTimer','unload','UNKNOWN_CMD','_docStateChangeManagerService','SNAPSHOT_INVALID_SNAPSHOT','state','LEAVE','onRemoteRej','_onRecvEvent','_transformStack','subscribe','_cachedData','onlineStatusTitle','UNIVER_COLLABORATION_CLIENT_PLUGIN','_getCurrentRevision','_decreaseWaiting','_startSheetCollabCursor','onPointerEnter$','_handler','InsertRangeMoveRightCommandId','Error','objects','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_revisionService','entries','COLLAB_SUBMIT_CHANGESET_URL','_color','USERS_ENTER','FromArray','prototype','awaitingChangeset','toLowerCase','COMPRESS_MUTATION_APPLY','visibilityState','type','tag','_status$','unitID','getCollabCursors$','_executeRemoteChangeset','_urlService','_snapshotService','conflict','getUnitType','{fileID}','originalMeta','[PendingState]:\x20received\x20rejection.','path','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','objectID','UNKNOWN_CODE','roomInfos','INTERNAL_ERROR','_scheduleClearOtherTimer','_getSendChangesetTimeout','_handleLeaveEvent','/universer-api/comb','_clearHeartbeatTimer','call','/universer-api/snapshot','_config','fill','docStateChange$','_eventUnsubscribe','getCurrentSelections','_createInitialStateImpl','collaborators','UNRECOGNIZED','putCollaborators','url(#on-line-single_clip0_910_349)','CONNECTOR_DATA_TOO_LARGE','getUniverSheetInstance','[DataLoaderController]','icon','csAckEvent','OFFLINE','row','_hovered','unknown','getParam','off-line-single','ALREADY_EXISTS','arc','rev','_unitOnClients','name','[CollaborationSession]','socket$','_collaborationPaused','getSheetId','removeMember','collaboratorID','mutations','_onRemoteACK','text','PENDING','forEach','_commandService','SNAPSHOT_URL_KEY','baseRev','next','editingUnit','univer-pro.collaboration-client.single-active-unit-service','localeService','transformIMECache','assign','onRendered','_retryConnectingTimer','LIVESHARE_REQUEST_HOST','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','[FetchMissState]','saveOfflineData','hide','x-univer-host','_getAPIPrefixPath','APPLY_NON_SEQUENTIAL_REVISION','telemetry\x20info\x20is\x20not\x20initialized','_updateLocalCursor','title','_localeService','_removeCollabCursors','YUUMI_SUBSCRIPTION_NOT_FOUND','subunit','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_stopTelemetryCollaborationNewChangeset','_showConflictNotification','_initCommandExecutedListener','font','[CollaborationUndoRedoService]','flatMap','/-/object/list','clearTimeout','_getLoginPath','NOT_FOUND','unshift','routeKey','includes','getAllMembers','function','UNIVER_SHEET','/object','image/jpg','_drawTextRange','_drawRectRange','NOT_COLLAB','capture','1em','_userManagerService','_getCtorByUniverType','doc.mutation.rich-text-editing','PERMISSION_DENIED','height','...','symbol','status','getMergeData','Unknown\x20user','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','TEXT','_onCombEvent','_instanceService','setParam','collaboration.single-unit.warning','_clearOtherTimers','infoRsp','width','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','13060OdjhyA','[PendingState]:\x20unhandled\x20univer\x20type:\x20','?url=','assignAColorForMemberID','_waitCount','InsertRowCommandId','allowed','currentSkeleton$','_clearTimeoutTimer','session.collaboration-timeout','toggleOffline','unit','createElement','_clearUndo','/collaborator','defineProperty','removeParam','min','offline','subUnitId','ENSURE_SNAPSHOT_EXECUTION','_handleHeartbeatEvent','change$','catch','_createInitialState','result','setShowComponents','_changesetSessionId','put','_updateStatus','requestParams','has','COMMENT_UPDATE','roles','show','_sendHeartbeat','_singleActiveUnitService','responseType','UPDATE_CURSOR','onCommandExecuted','_getSaveTimeout','_memberService','_uiPartsService','InsertRangeMoveDownCommandId','_registerRenderDependencies','params','addEventListener','_listenToOnlineEvent','joinRsp','ERROR_IMAGE','open$','send','_onCursorDelete','evenodd','reconnect','commentUpdateEvent','getTime','univer-online-status-icon','_session','_createHandler','_onFetchMissResult','getAncestorScale','_toggleOnline','executeCommand','_changesetReqId','history','UNAUTHENTICATED','newValue','loadDoc','range','number','delete','createInstance','unitId\x20is\x20not\x20found','_getSheetObject','listRoles','DEFAULT_FILE_NAME','_getRedoStack','replaceState','_getSignURL','reject','/block/','getOwnPropertyDescriptor','onlineStatus','get','getCurrentUser','univer-online-status-title','_http','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','saveSnapshot','\x0aCurrent:\x20','_entities','image/jpeg','_incrementRevisionNumber','univer-online','_initRequestHeader','getTypeOfUnitAdded$','getUnitStatus$','_event$','collabWebSocketUrl','_context','setItem','split','onRemoteRetry','_sheetTransformSelectionsService','74064bxchZd','getRandomValues','_resendWithTimeout','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','replace','ranges','fillStyle','125LOyqeE','setConfig','setAlpha','fetchMissingChangesets','translate(.97)','_unlockTransition','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','roomMembers$','_disableEditing','_localStorageService','onRemoteAck','SNAPSHOT_HAS_BEEN_REMOVED','_document','on-line-single_clip0_910_349','div','_shapes','fetch_missing','getCurrentRevOfUnit','_permissionService','permission.content','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','reduce','_schedule','loadOfflineData','authzUrl','_telemetryService','conflict.title','labelPosition','m1Prime','indexOf','close$','_ws','red300','syncEditingCollabCursor','_messageService','_updateLocalCache','onRemoteChangeset','black','endColumn','HttpExport','changesets','getFocusedUnit','body','resolve','file','EXCHANGE_SIGN_URL_SERVER_URL_KEY','saveSheetBlock','url(#$1','filter','_HTTPService','revision','_name','encodeURIComponent','_onRemoteRejected','LICENSE_IMPORT_SIZE_EXCEEDED','svg','_syncEditingCollabCursor','awaiting','NO_OTHER_CLIENTS_EDITING','all','conflict.content','_beforeCloseService','_handleJoinEvent','onSendChangeset','pending','unsubscribe','session','method','FETCH_MISS','transform','append','_commentService','getMemberID','_transformService','drawWith','_onConflict','_updateCollabCursors','_anchorDot','ERROR_EXCEED_SIZE','bottom','_tryEnsureSocket','17772312aNzbTK','collabStatus.fetchMiss','auth.needGotoLoginAlert','_collaborationTimeoutTimer','image/gif','VIEW_MAIN','getCurrent','getSkeleton','POST','defIds','14fZZTqw','_onOffline','collab-client.tooltip.reconnect','APPLY_REVISION_CONFILICT','_retryCount','displayName','off-line-single_clip0_910_343','COLLAB_WEB_SOCKET_URL','collaboration.closeRoom','stopTime','_scene','PERMISSION_REJ','disposeWithMe','_hideTimer','roomMembers','disableLocalCache','_state$','onTransformIME','backgroundColor','snapshot','_transitionLocked','_refreshCollabCursors','_commentUpdate$','_createSocket','_pendingMutations','getUnitId','USERS_LEAVE','selection','onPointerLeave$','propertyIsEnumerable','HttpImport','onCommentUpdate','collab-text-range-','_getSnapshotAPIPrefix','_transformSelections','override','cursorInfo$','getImageSourceCache','_collaborationSessionService','_initMergeInterceptor','_candidateSocket','/universer-api/file/{fileID}/sign-url','_themeService','headers','transformStack\x20failed!','socket\x20close','collaboration-client.offline-data-not-saved','close','_onUserLeave','updateCollaborator','addObjects','status$','slice','_colorAssignService','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','restore','values','toRgbString','SHOULD_CLOSE_CONN','_hover','MoveRangeCommandId','getInterceptPoints','248CFePkH','memberID','className','_timeoutTimer','_clearCollaborationTimeoutTimer','[OfflineState]:\x20received\x20changeset.','withCredentials','getRoom','_updateState','connection\x20error','getWorkbookSelections','_onJoinRoomEvent','transformUndoRedo','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','getActiveSheet','verdancy600','SUCCUSS','userID','transformMutationsWithChangeset','_queuedRemoteChangesets','_injector','_startCollaboration','_members','_socketReady','add','FETCH_MISSING','on-line-single','_docTransformIMECacheService','_disabled','_onMessage','then','_cursorInfo$','stringify','_updateURLWithCurrentState','href','bind','HELLO','deepClone','BASE64','_sessionStatus$','sessionStatus$','push','collabStatus.conflict','_configService','string','UniverIcon','_docSkeletonManagerService','actions','_send','110270xwdzxB','_draw','makeDirty','CONFLICT','event$','_initCloseConn','LIVESHARE_TERMINATE','_resendTimeout','selections','rng','requireSession','SUBMIT_CHANGESET','pipe','_id','_startTelemetryCollaborationNewChangeset','_initResize','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_docSyncEditingCollabCursorService','_roomMembers$','LIVESHARE_NEW_HOST','/universer-api/stream/file/upload','clipPath','origin','_backgroundColor','_univerInstanceService','synced','list','skeleton','ACTIVE_UNIT_EVENT_CHANNEL','error','AWAITING_WITH_PENDING','unitId','_onLocalMutation','_saveCache','_lastPointer','error$','round','replaceTextRanges','_socket','[CollaborationSessionService]','_applyRemoteChangeset','_clearScheduledTask','toggleOnline','_sendHeartbeatTimer','getUnitOnRev','547816WAtoAu','_waitForHeartbeatResponse','UNIVER_DOC','collabSubmitChangesetUrl','onlyLocal','engine','target','uni.network.url-service','objectActions','startTime','awaiting_with_pending','[SyncedState]:\x20received\x20acknowledgement.','_getAPIPrefix','toString','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','closePath','_updateSubUnitFromURLParams','_selfUnitIDs','[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.','randomUUID','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','[UniverCollaborationClientPlugin]','_socketMessageSubscription','ONLINE','UnitEmbedded','workbook','transformMutation','_imageSourceCache','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','newCsEvent','getCellPositionByOffset','getRenderById','TOO_MANY_REQUESTS','_socketService','onlineStatusIcon','_onConnectionFailed','message$','collab-rect-range-','rgba(255,\x20255,\x20255,\x200.01)','permission.title','color','code','getSheetBySheetId','_snapshotServerService','clearInterval','members','_substituteUndoStack','beginPath','#FFF','dispose$','_change$','_collabCursorState$','FileId','isEditing','closeSession','with','FAIL','_unitID','cmd','apply','_fetchMissChangesets','pushState','image/png','LOGIN_URL_KEY','onMissingChangesets','concat','_clearLocalCache','_listenToOfflineEvent','RECV','_getScale','getDocRanges','url','_submitChangeset','CHANGESET_SHOULD_RETRY'];_0x4fc6=function(){return _0x45c960;};return _0x4fc6();}for(var ht=0x0;ht<0x100;++ht)T[_0x107bfd(0x30d)]((ht+0x100)[_0x107bfd(0x34f)](0x10)[_0x107bfd(0x2da)](0x1));function sr(_0x3b8b47,_0x5da7ec=0x0){const _0x1bc4a8=_0x107bfd;return(T[_0x3b8b47[_0x5da7ec+0x0]]+T[_0x3b8b47[_0x5da7ec+0x1]]+T[_0x3b8b47[_0x5da7ec+0x2]]+T[_0x3b8b47[_0x5da7ec+0x3]]+'-'+T[_0x3b8b47[_0x5da7ec+0x4]]+T[_0x3b8b47[_0x5da7ec+0x5]]+'-'+T[_0x3b8b47[_0x5da7ec+0x6]]+T[_0x3b8b47[_0x5da7ec+0x7]]+'-'+T[_0x3b8b47[_0x5da7ec+0x8]]+T[_0x3b8b47[_0x5da7ec+0x9]]+'-'+T[_0x3b8b47[_0x5da7ec+0xa]]+T[_0x3b8b47[_0x5da7ec+0xb]]+T[_0x3b8b47[_0x5da7ec+0xc]]+T[_0x3b8b47[_0x5da7ec+0xd]]+T[_0x3b8b47[_0x5da7ec+0xe]]+T[_0x3b8b47[_0x5da7ec+0xf]])[_0x1bc4a8(0x4db)]();}var ke,ir=new Uint8Array(0x10);function nr(){const _0x1be56c=_0x107bfd;if(!ke&&(ke=typeof crypto<'u'&&crypto[_0x1be56c(0x245)]&&crypto[_0x1be56c(0x245)][_0x1be56c(0x307)](crypto),!ke))throw new Error(_0x1be56c(0x2f1));return ke(ir);}var rr=typeof crypto<'u'&&crypto[_0x107bfd(0x355)]&&crypto[_0x107bfd(0x355)][_0x107bfd(0x307)](crypto);const hs={'randomUUID':rr};function or(_0x578867,_0x22fe11,_0x4eae3e){const _0x1dd4ed=_0x107bfd;if(hs['randomUUID']&&!_0x22fe11&&!_0x578867)return hs[_0x1dd4ed(0x355)]();_0x578867=_0x578867||{};var _0x13e9fd=_0x578867['random']||(_0x578867[_0x1dd4ed(0x31e)]||nr)();return _0x13e9fd[0x6]=_0x13e9fd[0x6]&0xf|0x40,_0x13e9fd[0x8]=_0x13e9fd[0x8]&0x3f|0x80,sr(_0x13e9fd);}var ar=Object[_0x107bfd(0x1ea)],cr=Object[_0x107bfd(0x22d)],hr=(_0x509002,_0x4d0548,_0x1a2d88,_0x208bc7)=>{const _0x34e4bb=_0x107bfd;for(var _0x588f65=_0x208bc7>0x1?void 0x0:_0x208bc7?cr(_0x4d0548,_0x1a2d88):_0x4d0548,_0x29e24b=_0x509002[_0x34e4bb(0x38d)]-0x1,_0xa71f19;_0x29e24b>=0x0;_0x29e24b--)(_0xa71f19=_0x509002[_0x29e24b])&&(_0x588f65=(_0x208bc7?_0xa71f19(_0x4d0548,_0x1a2d88,_0x588f65):_0xa71f19(_0x588f65))||_0x588f65);return _0x208bc7&&_0x588f65&&ar(_0x4d0548,_0x1a2d88,_0x588f65),_0x588f65;},lt=(_0x4c97fb,_0x4d8455)=>(_0x3d0ad6,_0x5099e1)=>_0x4d8455(_0x3d0ad6,_0x5099e1,_0x4c97fb);let Xe=class{constructor(_0x5cd4f0,_0x377f90,_0x540da4){const _0x162884=_0x107bfd;this[_0x162884(0x2f8)]=_0x5cd4f0,this[_0x162884(0x294)]=_0x377f90,this[_0x162884(0x3ee)]=_0x540da4;}[_0x107bfd(0x524)](_0x5fbb57){const _0x5a7445=_0x107bfd;this[_0x5a7445(0x45b)](_0x5fbb57),this[_0x5a7445(0x401)](_0x5fbb57);}['transformRemoteChangeset'](_0x157950){const _0x10ff54=_0x107bfd,{unitID:_0x1e5747}=_0x157950,_0x103028=this[_0x10ff54(0x3ee)]['getRenderById'](_0x1e5747)['with'](_0x4ab88d),{redoCache:_0x3f36e6}=_0x103028['getUndoRedoMutationParamsCache']();if(_0x3f36e6[_0x10ff54(0x38d)]===0x0)return _0x157950;let _0x381441=_0x5065d9[_0x10ff54(0x309)](_0x157950[_0x10ff54(0x518)][0x0]);for(let _0x3777a0=0x0;_0x3777a0<_0x3f36e6[_0x10ff54(0x38d)];_0x3777a0++){const _0x5b73a6={'id':_0x10ff54(0x551),'params':{..._0x3f36e6[_0x3777a0]}},_0x49ad74=this[_0x10ff54(0x294)][_0x10ff54(0x35c)](_0x381441,_0x5b73a6,!0x1);if(_0x22a7fc(_0x49ad74))throw _0x49ad74[_0x10ff54(0x332)];_0x381441=_0x49ad74[_0x10ff54(0x267)];}return{..._0x5065d9[_0x10ff54(0x309)](_0x157950),'mutations':[_0x381441]};}[_0x107bfd(0x45b)](_0x42cf64){const _0x575cc4=_0x107bfd,{unitID:_0x41e03c}=_0x42cf64,_0x364f27=this['_renderManagerService'][_0x575cc4(0x361)](_0x41e03c)[_0x575cc4(0x379)](_0x4ab88d),{undoCache:_0xb7a782,redoCache:_0x55f907}=_0x364f27[_0x575cc4(0x448)]();if(_0xb7a782[_0x575cc4(0x38d)]===0x0||_0x55f907[_0x575cc4(0x38d)]===0x0)return;const _0x33ff6e=[],_0x2db379=[];let _0x76fd06=_0x5065d9[_0x575cc4(0x309)](_0x42cf64[_0x575cc4(0x518)][0x0]),_0x570ba7=_0x5065d9[_0x575cc4(0x309)](_0x42cf64[_0x575cc4(0x518)][0x0]);for(let _0x27e9c4=_0xb7a782[_0x575cc4(0x38d)]-0x1;_0x27e9c4>=0x0;_0x27e9c4--){const _0x2b4e48={'id':_0x575cc4(0x551),'params':{..._0xb7a782[_0x27e9c4]}},_0x4c41c6={'id':_0x575cc4(0x551),'params':{..._0x55f907[_0x27e9c4]}},_0x9214db=this['_transformService'][_0x575cc4(0x35c)](_0x76fd06,_0x2b4e48,!0x1),_0x2b47df=this[_0x575cc4(0x294)][_0x575cc4(0x35c)](_0x570ba7,_0x4c41c6,!0x1);if(_0x22a7fc(_0x9214db))throw _0x9214db['error'];if(_0x22a7fc(_0x2b47df))throw _0x2b47df[_0x575cc4(0x332)];_0x33ff6e[_0x575cc4(0x542)](_0x9214db[_0x575cc4(0x3cc)][_0x575cc4(0x208)]),_0x2db379[_0x575cc4(0x542)](_0x2b47df[_0x575cc4(0x3cc)][_0x575cc4(0x208)]),_0x76fd06=_0x9214db[_0x575cc4(0x267)],_0x570ba7=_0x2b47df[_0x575cc4(0x267)];}_0x364f27['setUndoRedoMutationParamsCache']({'undoCache':_0x33ff6e,'redoCache':_0x2db379});}[_0x107bfd(0x401)](_0x372b35){const _0x5c3105=_0x107bfd,{unitID:_0x1f879d}=_0x372b35,_0x47fc31=this['_renderManagerService'][_0x5c3105(0x361)](_0x1f879d)['with'](_0x4ab88d),_0x378cca=_0x47fc31[_0x5c3105(0x472)]();if(_0x378cca==null)return;const _0x2eff0a=[{'id':_0x5c3105(0x551),'params':{'unitId':_0x372b35[_0x5c3105(0x4e1)],'actions':null,'textRanges':[_0x378cca]}}],_0x8f6f19=this[_0x5c3105(0x294)]['transformMutationsWithChangeset'](_0x372b35,_0x2eff0a);if(!_0x569bae(_0x8f6f19))throw _0x8f6f19[_0x5c3105(0x332)];const _0x38c836=_0x8f6f19['m2Prime'][0x0]['params'][_0x5c3105(0x403)];Array[_0x5c3105(0x473)](_0x38c836)&&_0x38c836[_0x5c3105(0x38d)]&&_0x47fc31['setActiveRange'](_0x38c836[0x0]);}};Xe=hr([lt(0x0,_0x22b1d4(_0x12b4cf)),lt(0x1,_0x3a5354),lt(0x2,_0x1c4916)],Xe);var lr=Object[_0x107bfd(0x1ea)],_r=Object[_0x107bfd(0x22d)],ur=(_0x5ab41f,_0x375aff,_0x360341,_0x248f08)=>{const _0xf57438=_0x107bfd;for(var _0x4da38a=_0x248f08>0x1?void 0x0:_0x248f08?_r(_0x375aff,_0x360341):_0x375aff,_0x4516b6=_0x5ab41f[_0xf57438(0x38d)]-0x1,_0x3009ba;_0x4516b6>=0x0;_0x4516b6--)(_0x3009ba=_0x5ab41f[_0x4516b6])&&(_0x4da38a=(_0x248f08?_0x3009ba(_0x375aff,_0x360341,_0x4da38a):_0x3009ba(_0x4da38a))||_0x4da38a);return _0x248f08&&_0x4da38a&&lr(_0x375aff,_0x360341,_0x4da38a),_0x4da38a;},we=(_0x23d168,_0x787905)=>(_0x21b375,_0x558be0)=>_0x787905(_0x21b375,_0x558be0,_0x23d168);let D=class extends _0x502c5a{constructor(_0x225b1e,_0x42b598,_0x11e9da,_0x25c010,_0x8015b7){const _0x575e58=_0x107bfd;super(),l(this,_0x575e58(0x4c7),new Map()),l(this,'_saveTaskMap',new Map()),l(this,_0x575e58(0x300),!0x1),(this[_0x575e58(0x30f)]=_0x225b1e,this[_0x575e58(0x254)]=_0x42b598,this['_beforeCloseService']=_0x11e9da,this[_0x575e58(0x533)]=_0x25c010,this[_0x575e58(0x4d3)]=_0x8015b7,this[_0x575e58(0x450)]());}[_0x107bfd(0x2b5)](){const _0x4dfb3b=_0x107bfd;this[_0x4dfb3b(0x300)]=!0x0;}['enableLocalCache'](){this['_disabled']=!0x1;}[_0x107bfd(0x411)](){const _0x34bb44=_0x107bfd;this[_0x34bb44(0x3b4)]()[_0x34bb44(0x302)](()=>super[_0x34bb44(0x411)]());}async[_0x107bfd(0x262)](_0x1bb81e){const _0x2bd31c=_0x107bfd;return this[_0x2bd31c(0x300)]?null:this['_localStorageService'][_0x2bd31c(0x409)](ls(_0x1bb81e));}async[_0x107bfd(0x52b)](_0x462b84,_0x32195e){const _0x5620c3=_0x107bfd;return!!this['_localStorageService'][_0x5620c3(0x240)](_0x462b84,_0x32195e);}[_0x107bfd(0x4b1)](_0x3cb4f5,_0x358bc4,_0x1b3162,_0x1ea258){const _0x520135=_0x107bfd,_0xc75e99=this[_0x520135(0x4d3)][_0x520135(0x25c)](_0x3cb4f5);this['_cachedData'][_0x520135(0x4b9)](_0x3cb4f5,{'unitID':_0x3cb4f5,'type':_0x358bc4,'awaitingChangeset':_0x1b3162,'mutations':_0x1ea258,'rev':_0xc75e99}),this[_0x520135(0x471)][_0x520135(0x1fa)](_0x3cb4f5)||this[_0x520135(0x489)](_0x3cb4f5);}[_0x107bfd(0x489)](_0x36f73c){const _0x2b5345=_0x107bfd,_0x12092a=this['_getSaveTimeout']();_0x12092a===0x0?this['_saveCache'](_0x36f73c):this[_0x2b5345(0x471)][_0x2b5345(0x4b9)](_0x36f73c,setTimeout(()=>this[_0x2b5345(0x336)](_0x36f73c),_0x12092a));}[_0x107bfd(0x203)](){const _0x4b7cba=_0x107bfd;var _0x3b2993;return(_0x3b2993=this['_configService'][_0x4b7cba(0x3c9)](Un))!=null?_0x3b2993:Nn;}[_0x107bfd(0x336)](_0x548778){const _0x58c607=_0x107bfd,_0x59898b=this['_saveTaskMap'][_0x58c607(0x22f)](_0x548778);return _0x59898b!==void 0x0&&window[_0x58c607(0x53f)](_0x59898b),this[_0x58c607(0x254)][_0x58c607(0x240)](ls(_0x548778),this[_0x58c607(0x4c7)]['get'](_0x548778))[_0x58c607(0x302)](()=>this[_0x58c607(0x471)]['delete'](_0x548778));}async[_0x107bfd(0x3b4)](){const _0x3e1b1e=_0x107bfd,_0x5715f7=[];this[_0x3e1b1e(0x471)][_0x3e1b1e(0x51c)]((_0x14bbd8,_0x2a4b63)=>{const _0x2d6dc9=_0x3e1b1e;window[_0x2d6dc9(0x53f)](_0x14bbd8),_0x5715f7[_0x2d6dc9(0x30d)](this['_saveCache'](_0x2a4b63)[_0x2d6dc9(0x302)](()=>{const _0x485b5f=_0x2d6dc9;this['_saveTaskMap'][_0x485b5f(0x222)](_0x2a4b63);}));}),await Promise[_0x3e1b1e(0x286)](_0x5715f7);}[_0x107bfd(0x450)](){const _0x26f4b0=_0x107bfd;this[_0x26f4b0(0x2b2)](this[_0x26f4b0(0x288)][_0x26f4b0(0x39d)](()=>{const _0x44da14=_0x26f4b0;if(this[_0x44da14(0x471)][_0x44da14(0x44b)])return this['_localeService']['t'](_0x44da14(0x2d4));}));}};D=ur([we(0x0,_0x4d9096),we(0x1,_0x57a851),we(0x2,_0x3de624),we(0x3,_0x22b1d4(_0x18c55e)),we(0x4,_0x22b1d4(_0x113ba1))],D);function ls(_0x4e6f5c){const _0x1f1525=_0x107bfd;return _0x1f1525(0x419)+_0x4e6f5c;}var dr=Object[_0x107bfd(0x1ea)],mr=Object[_0x107bfd(0x22d)],fr=(_0x3ac398,_0x23b38b,_0x43fb59,_0x2cf511)=>{const _0x3ac038=_0x107bfd;for(var _0x188b43=_0x2cf511>0x1?void 0x0:_0x2cf511?mr(_0x23b38b,_0x43fb59):_0x23b38b,_0x45d334=_0x3ac398[_0x3ac038(0x38d)]-0x1,_0x395194;_0x45d334>=0x0;_0x45d334--)(_0x395194=_0x3ac398[_0x45d334])&&(_0x188b43=(_0x2cf511?_0x395194(_0x23b38b,_0x43fb59,_0x188b43):_0x395194(_0x188b43))||_0x188b43);return _0x2cf511&&_0x188b43&&dr(_0x23b38b,_0x43fb59,_0x188b43),_0x188b43;},_t=(_0x5e4a82,_0x4d4be5)=>(_0x418e7c,_0x33094e)=>_0x4d4be5(_0x418e7c,_0x33094e,_0x5e4a82);function gr(_0x181ce8){const _0x55972c=_0x107bfd,{unitID:_0x219ed8,mutations:_0x5093b2}=_0x181ce8;return{'unitId':_0x219ed8,'subUnitId':_0x5093b2[0x0][_0x55972c(0x208)][_0x55972c(0x1ee)]};}let qe=class{constructor(_0x476365,_0x1a934e,_0x3cda3c){const _0x144157=_0x107bfd;this['_injector']=_0x476365,this['_transformService']=_0x1a934e,this[_0x144157(0x55c)]=_0x3cda3c;}[_0x107bfd(0x3a4)](_0x52c4d2){const _0x4f404e=_0x107bfd;var _0x375dbd,_0x59d9c6,_0x52888f,_0x578137;const _0x218045=this['_injector']['get'](_0x21d2a5),{unitId:_0x43a654,subUnitId:_0x5becf2}=gr(_0x52c4d2),_0x48707a=_0x218045[_0x4f404e(0x2ee)](_0x43a654)['getCurrentSelections'](),_0x5bcb23=(_0x59d9c6=(_0x375dbd=this[_0x4f404e(0x55c)]['getUnit'](_0x43a654))==null?void 0x0:_0x375dbd[_0x4f404e(0x2f2)]())==null?void 0x0:_0x59d9c6[_0x4f404e(0x515)]();if(_0x48707a['length']===0x0||!_0x43a654||!_0x5becf2)return;const _0x28da5c=[{'id':_0x41da57['id'],'params':{'unitId':_0x43a654,'subUnitId':_0x5bcb23,'selections':_0x5065d9[_0x4f404e(0x309)](_0x48707a)}}],_0x5ec61f=this[_0x4f404e(0x294)][_0x4f404e(0x2f6)](_0x52c4d2,_0x28da5c);if(!_0x569bae(_0x5ec61f))throw _0x5ec61f['error'];const _0x13c0e8=(_0x578137=(_0x52888f=_0x5ec61f['m2Prime'][0x0])==null?void 0x0:_0x52888f[_0x4f404e(0x208)])==null?void 0x0:_0x578137[_0x4f404e(0x31d)];if(Array[_0x4f404e(0x473)](_0x13c0e8)&&_0x13c0e8[_0x4f404e(0x38d)]){if(_0x13c0e8[_0x4f404e(0x38d)]===_0x28da5c[0x0][_0x4f404e(0x208)][_0x4f404e(0x31d)]['length']&&_0x13c0e8[_0x4f404e(0x47b)]((_0x4e223f,_0x84c40f)=>_0xdcbe31['equals'](_0x4e223f[_0x4f404e(0x220)],_0x28da5c[0x0][_0x4f404e(0x208)][_0x4f404e(0x31d)][_0x84c40f][_0x4f404e(0x220)])))return;this[_0x4f404e(0x2f8)][_0x4f404e(0x22f)](_0x156a6a)['executeCommand'](_0x41da57['id'],{'unitId':_0x43a654,'subUnitId':_0x5bcb23,'selections':_0x13c0e8});}}};qe=fr([_t(0x0,_0x22b1d4(_0x12b4cf)),_t(0x1,_0x3a5354),_t(0x2,_0x4bc21f)],qe);const it=_0x51f9c0(_0x107bfd(0x522));var Ws=(_0x5b3dcc=>(_0x5b3dcc[_0x5b3dcc[_0x107bfd(0x285)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x5b3dcc[_0x5b3dcc[_0x107bfd(0x485)]=0x1]=_0x107bfd(0x485),_0x5b3dcc))(Ws||{});const _s=0x7530,us=_0x107bfd(0x331);class Sr extends _0x502c5a{constructor(){const _0x134159=_0x107bfd;super(),l(this,_0x134159(0x322),_0x5065d9[_0x134159(0x402)]()),l(this,_0x134159(0x353),new Set()),l(this,_0x134159(0x510),new Map()),l(this,_0x134159(0x416),null),l(this,_0x134159(0x55f),new Map()),l(this,_0x134159(0x470),new Map()),this[_0x134159(0x3c7)]();}['dispose'](){const _0x49568b=_0x107bfd;super['dispose'](),this[_0x49568b(0x55f)][_0x49568b(0x51c)]((_0x1c905f,_0x5ecf58)=>this[_0x49568b(0x4bc)](_0x5ecf58)),this['_heartbeatTimer']&&window['clearInterval'](this[_0x49568b(0x416)]);}[_0x107bfd(0x23c)](_0x3dc40d){const _0x312b58=_0x107bfd;return this['_ensureSubject'](_0x3dc40d)[_0x312b58(0x321)](_0x555bb1());}['editingUnit'](_0x566505){const _0x2cb5b1=_0x107bfd;this[_0x2cb5b1(0x353)][_0x2cb5b1(0x44b)]===0x0&&this[_0x2cb5b1(0x3a0)](),this[_0x2cb5b1(0x353)][_0x2cb5b1(0x2fc)](_0x566505),this[_0x2cb5b1(0x314)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x566505],'isForwarded':!0x1});}[_0x107bfd(0x48d)](_0x44b434){const _0x354594=_0x107bfd;this['_selfUnitIDs'][_0x354594(0x222)](_0x44b434),this[_0x354594(0x353)][_0x354594(0x44b)]===0x0&&this['_heartbeatTimer']&&window[_0x354594(0x36e)](this[_0x354594(0x416)]);}[_0x107bfd(0x3c7)](){const _0x47532a=_0x107bfd;this['disposeWithMe'](_0x216991(_0x1d2a7c(window,_0x47532a(0x396))[_0x47532a(0x4c6)](_0xfaa879=>{const _0x1c75f4=_0x47532a;if(_0xfaa879['key']!==us||!_0xfaa879['newValue'])return;const _0x4b4300=JSON[_0x1c75f4(0x484)](_0xfaa879[_0x1c75f4(0x21e)]);this[_0x1c75f4(0x40d)](_0x4b4300);}))),window[_0x47532a(0x209)](_0x47532a(0x4bd),()=>this['_send']({'type':0x1,'memberID':this['_id'],'unitIDs':Array['from'](this[_0x47532a(0x353)])}));}['_handleEvent'](_0x3bf0ae){const _0x1f4814=_0x107bfd;switch(_0x3bf0ae[_0x1f4814(0x4de)]){case 0x0:this[_0x1f4814(0x289)](_0x3bf0ae);break;case 0x1:this[_0x1f4814(0x4f3)](_0x3bf0ae);break;case 0x2:this[_0x1f4814(0x1f0)](_0x3bf0ae);break;}}['_handleJoinEvent'](_0x97ce48){const _0x3eb4de=_0x107bfd,{unitIDs:_0x4e8811,memberID:_0x1d4f5c,isForwarded:_0x5192aa}=_0x97ce48;_0x4e8811[_0x3eb4de(0x51c)](_0x2cffd2=>{const _0x14d4d9=_0x3eb4de;if(!_0x5192aa&&this[_0x14d4d9(0x510)][_0x14d4d9(0x1fa)](_0x2cffd2)&&this[_0x14d4d9(0x4a5)](_0x2cffd2)[_0x14d4d9(0x520)](0x1),!this['_unitOnClients'][_0x14d4d9(0x1fa)](_0x2cffd2)||!this[_0x14d4d9(0x510)][_0x14d4d9(0x22f)](_0x2cffd2)[_0x14d4d9(0x1fa)](_0x1d4f5c)){const _0x2750ce=this[_0x14d4d9(0x510)][_0x14d4d9(0x22f)](_0x2cffd2)||new Set();_0x2750ce['add'](_0x1d4f5c),this[_0x14d4d9(0x510)][_0x14d4d9(0x4b9)](_0x2cffd2,_0x2750ce),this['_scheduleClearOtherTimer'](_0x1d4f5c);}}),_0x5192aa||this[_0x3eb4de(0x314)]({'type':0x0,'memberID':this[_0x3eb4de(0x322)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x107bfd(0x4f1)](_0x560656){const _0x48e7e2=_0x107bfd;this['_removeClearOtherTimer'](_0x560656);const _0x88ba7b=window[_0x48e7e2(0x458)](()=>{const _0x1af1eb=_0x48e7e2;this[_0x1af1eb(0x510)][_0x1af1eb(0x51c)](_0x5bc3db=>{_0x5bc3db['delete'](_0x560656);});},_s*0x2);this[_0x48e7e2(0x55f)][_0x48e7e2(0x4b9)](_0x560656,_0x88ba7b);}[_0x107bfd(0x4bc)](_0x197d8a){const _0x26232d=_0x107bfd;if(this[_0x26232d(0x55f)][_0x26232d(0x1fa)](_0x197d8a)){const _0x5bef2c=this[_0x26232d(0x55f)][_0x26232d(0x22f)](_0x197d8a);_0x5bef2c&&window[_0x26232d(0x53f)](_0x5bef2c),this[_0x26232d(0x55f)][_0x26232d(0x4b9)](_0x197d8a,null);}}[_0x107bfd(0x4f3)](_0x54b395){const _0x4d1fd5=_0x107bfd,{memberID:_0x1a4cf0,unitIDs:_0x22dc63}=_0x54b395;_0x22dc63['forEach'](_0x5a3cbc=>{const _0x149613=_0x1556;var _0x10bb6f;const _0x28bbc8=this[_0x149613(0x510)][_0x149613(0x22f)](_0x5a3cbc);_0x28bbc8&&(_0x28bbc8['delete'](_0x1a4cf0),(_0x10bb6f=this['_ensureSubject'](_0x5a3cbc))==null||_0x10bb6f[_0x149613(0x520)](_0x28bbc8[_0x149613(0x44b)]===0x0?0x0:0x1));}),this[_0x4d1fd5(0x4bc)](_0x1a4cf0);}[_0x107bfd(0x1f0)](_0x1bc4c0){const _0x5e7c11=_0x107bfd;this[_0x5e7c11(0x4f1)](_0x1bc4c0[_0x5e7c11(0x2e5)]);}[_0x107bfd(0x314)](_0x309b94){const _0x3be59a=_0x107bfd;localStorage[_0x3be59a(0x240)](us,JSON['stringify'](_0x309b94));}[_0x107bfd(0x3a0)](){const _0x3ad3fc=_0x107bfd;this[_0x3ad3fc(0x416)]=window[_0x3ad3fc(0x415)](()=>{const _0x1b86d7=_0x3ad3fc;this[_0x1b86d7(0x314)]({'type':0x2,'memberID':this['_id']});},_s);}[_0x107bfd(0x4a5)](_0x379580){const _0x25cdf0=_0x107bfd;return this['_unitStatus']['has'](_0x379580)||this[_0x25cdf0(0x470)][_0x25cdf0(0x4b9)](_0x379580,new _0x435a5b(0x0)),this[_0x25cdf0(0x470)][_0x25cdf0(0x22f)](_0x379580);}}function Gs(_0x19a846){const _0x1ade62=_0x107bfd;let _0x226abf='';for(const _0x2acafc of _0x19a846){const {startOffset:_0x575cef,endOffset:_0x19d7b5,isActive:_0x47dc27,rangeType:_0x30c6ff,segmentId:_0x125c83,segmentPage:_0x2274ea}=_0x2acafc;_0x226abf[_0x1ade62(0x38d)]&&(_0x226abf+=','),_0x226abf+=_0x575cef+':'+_0x19d7b5+':'+(_0x47dc27?'1':'0')+':'+_0x30c6ff+':'+_0x125c83+':'+_0x2274ea;}return _0x226abf;}function pr(_0x288f42){const _0x1d4153=_0x107bfd,_0x2d4106=_0x288f42[_0x1d4153(0x241)](','),_0x5a6245=[];for(const _0x3a2b3d of _0x2d4106){const [_0x4e0ad5,_0x148aa3,_0xc98cf3,_0x38cf6b,_0x2ed25d,_0x102e82]=_0x3a2b3d[_0x1d4153(0x241)](':');_0x5a6245['push']({'startOffset':Number(_0x4e0ad5),'endOffset':Number(_0x148aa3),'collapsed':_0x4e0ad5===_0x148aa3,'isActive':_0xc98cf3==='1','rangeType':_0x38cf6b===_0x438171['TEXT']?_0x438171[_0x1d4153(0x55a)]:_0x438171[_0x1d4153(0x44c)],'segmentId':typeof _0x2ed25d==_0x1d4153(0x310)?String(_0x2ed25d):'','segmentPage':Number(_0x102e82!=null?_0x102e82:-0x1)});}return _0x5a6245[_0x1d4153(0x3a5)](_0x19a23f=>_0x19a23f[_0x1d4153(0x44e)])||(_0x5a6245[0x0][_0x1d4153(0x44e)]=!0x0),_0x5a6245;}class Wt extends _0x4fe933{constructor(){const _0x403c52=_0x107bfd;super(...arguments),l(this,_0x403c52(0x375),new _0x435a5b(null)),l(this,'collabCursorState$',this['_collabCursorState$'][_0x403c52(0x491)]());}[_0x107bfd(0x26c)](_0x5c4ef4){const _0x611697=_0x107bfd,{unitID:_0x56431b,memberID:_0x431e41,textRanges:_0x4a961a}=_0x5c4ef4,_0x3b2b1e=Gs(_0x4a961a);if(_0x3b2b1e==='')return;const _0x57a9a9={'unitID':_0x56431b,'memberID':_0x431e41,'selection':_0x3b2b1e};this['_collabCursorState$'][_0x611697(0x520)](_0x57a9a9);}}var vr=Object['defineProperty'],Ir=Object[_0x107bfd(0x22d)],Er=(_0x402f0f,_0x3773f6,_0x4f7491,_0x1f6c09)=>{for(var _0x1d8bb1=_0x1f6c09>0x1?void 0x0:_0x1f6c09?Ir(_0x3773f6,_0x4f7491):_0x3773f6,_0x49fd47=_0x402f0f['length']-0x1,_0x308cbf;_0x49fd47>=0x0;_0x49fd47--)(_0x308cbf=_0x402f0f[_0x49fd47])&&(_0x1d8bb1=(_0x1f6c09?_0x308cbf(_0x3773f6,_0x4f7491,_0x1d8bb1):_0x308cbf(_0x1d8bb1))||_0x1d8bb1);return _0x1f6c09&&_0x1d8bb1&&vr(_0x3773f6,_0x4f7491,_0x1d8bb1),_0x1d8bb1;},ds=(_0x22cc2a,_0x41c512)=>(_0x342d74,_0x55d7e8)=>_0x41c512(_0x342d74,_0x55d7e8,_0x22cc2a);let Je=class{constructor(_0xdfabca,_0x4aa002){const _0x561acd=_0x107bfd;this[_0x561acd(0x2f8)]=_0xdfabca,this[_0x561acd(0x294)]=_0x4aa002;}[_0x107bfd(0x3a4)](_0x495622){const _0x19d063=_0x107bfd;var _0x43163e;const _0x3a2911=this[_0x19d063(0x2f8)][_0x19d063(0x22f)](_0x565ad3),_0x2816ca=(_0x43163e=_0x3a2911[_0x19d063(0x388)]())!=null?_0x43163e:[];if(_0x2816ca[_0x19d063(0x38d)]===0x0)return;const _0xf99ede=[{'id':_0x19d063(0x551),'params':{'unitId':_0x495622[_0x19d063(0x4e1)],'actions':null,'textRanges':_0x2816ca}}],_0x233a8f=this[_0x19d063(0x294)][_0x19d063(0x2f6)](_0x495622,_0xf99ede);if(!_0x569bae(_0x233a8f))throw _0x233a8f[_0x19d063(0x332)];const _0x2fad85=_0x233a8f['m2Prime'][0x0][_0x19d063(0x208)][_0x19d063(0x403)];Array['isArray'](_0x2fad85)&&_0x2fad85['length']&&_0x3a2911[_0x19d063(0x33a)](_0x2fad85,!0x1);}};Je=Er([ds(0x0,_0x22b1d4(_0x12b4cf)),ds(0x1,_0x3a5354)],Je);const Cr=new Set([_0x44c0c3['id']]);function ms(_0x42ffb9,_0x37ff46,_0x407150,_0x1f55e3,_0x289820){const _0x1dd255=_0x107bfd;var _0x24a815,_0x5db258,_0x1d5a69,_0x22eed9;const _0x42cb6d=[];for(const _0x370e02 of _0x42ffb9)if(Cr[_0x1dd255(0x1fa)](_0x370e02['id'])){if(_0x42cb6d[_0x1dd255(0x38d)]>0x0)break;_0x42cb6d[_0x1dd255(0x30d)](_0x370e02);break;}else _0x42cb6d['push'](_0x370e02);const _0x506992=(_0x5db258=(_0x24a815=_0x289820[_0x1dd255(0x230)]())==null?void 0x0:_0x24a815[_0x1dd255(0x2f5)])!=null?_0x5db258:'unknown',_0x5692c0=(_0x22eed9=(_0x1d5a69=_0x289820[_0x1dd255(0x230)]())==null?void 0x0:_0x1d5a69[_0x1dd255(0x2e5)])!=null?_0x22eed9:_0x1dd255(0x50a);return{'changeset':{'unitID':_0x37ff46,'type':_0x5512dc(_0x407150[_0x1dd255(0x4e7)](_0x37ff46)),'baseRev':_0x1f55e3[_0x1dd255(0x25c)](_0x37ff46),'revision':0x0,'userID':_0x506992,'memberID':_0x5692c0,'mutations':_0x42cb6d},'pendingMutations':_0x42ffb9[_0x1dd255(0x2da)](_0x42cb6d[_0x1dd255(0x38d)])};}function _0x1556(_0x5684fe,_0x4e98e3){const _0x4fc6f7=_0x4fc6();return _0x1556=function(_0x155682,_0x50baa0){_0x155682=_0x155682-0x1e7;let _0x45170e=_0x4fc6f7[_0x155682];return _0x45170e;},_0x1556(_0x5684fe,_0x4e98e3);}function br(_0x26a3e3,_0x52fab8,_0x1a3a7c,_0x688701,_0x22b7ce){const _0x418f5f=_0x107bfd;var _0x529c24,_0x36bfc3,_0x4044e9,_0x3a526d;const _0x5079c5=[_0x26a3e3[_0x418f5f(0x260)]((_0x557575,_0x651871)=>{const _0x56ad35=_0x418f5f;var _0x507193;const {id:_0x3e6d01}=_0x557575,{id:_0x3aaf89,type:_0xc3c905}=_0x651871,_0x3404f6=(_0x507193=_0x557575[_0x56ad35(0x208)])!=null?_0x507193:{'actions':null},_0x48cf98=_0x651871[_0x56ad35(0x208)];if(_0x3e6d01&&_0x3e6d01!==_0x3aaf89)throw new Error(_0x56ad35(0x3ca)+_0x3e6d01+'\x20-\x20'+_0x3aaf89+'.');return{..._0x557575,'id':_0x3aaf89,'type':_0xc3c905,'params':{'unitId':_0x48cf98[_0x56ad35(0x334)],'textRanges':_0x48cf98['textRanges'],'actions':_0x1be04a[_0x56ad35(0x3ba)](_0x3404f6[_0x56ad35(0x313)],_0x48cf98[_0x56ad35(0x313)])}};},{})],_0x21f802=(_0x36bfc3=(_0x529c24=_0x22b7ce['getCurrentUser']())==null?void 0x0:_0x529c24[_0x418f5f(0x2f5)])!=null?_0x36bfc3:_0x418f5f(0x50a),_0x39be7e=(_0x3a526d=(_0x4044e9=_0x22b7ce[_0x418f5f(0x230)]())==null?void 0x0:_0x4044e9[_0x418f5f(0x2e5)])!=null?_0x3a526d:_0x418f5f(0x50a);return{'changeset':{'unitID':_0x52fab8,'type':_0x5512dc(_0x1a3a7c[_0x418f5f(0x4e7)](_0x52fab8)),'baseRev':_0x688701['getCurrentRevOfUnit'](_0x52fab8),'revision':0x0,'userID':_0x21f802,'memberID':_0x39be7e,'mutations':_0x5079c5},'pendingMutations':[]};}function Ys(_0x543d56,_0x1dd867){const _0x33f759=_0x107bfd,_0xddbc53=new _0x50fb58(0x1);return setTimeout(()=>_0xddbc53[_0x33f759(0x520)](_0x1dd867),_0x543d56),_0xddbc53[_0x33f759(0x491)]()[_0x33f759(0x321)](_0x591140(0x1));}const Tr={'id':_0x4a7b8['id'],'type':_0x56c6fd[_0x107bfd(0x46b)],'params':{}};var Rr=Object['defineProperty'],Or=Object[_0x107bfd(0x22d)],me=(_0x85947b,_0x378267,_0x3b22b6,_0x16f1a2)=>{const _0x4bb727=_0x107bfd;for(var _0x179769=_0x16f1a2>0x1?void 0x0:_0x16f1a2?Or(_0x378267,_0x3b22b6):_0x378267,_0x1b6e68=_0x85947b[_0x4bb727(0x38d)]-0x1,_0x17b6dc;_0x1b6e68>=0x0;_0x1b6e68--)(_0x17b6dc=_0x85947b[_0x1b6e68])&&(_0x179769=(_0x16f1a2?_0x17b6dc(_0x378267,_0x3b22b6,_0x179769):_0x17b6dc(_0x179769))||_0x179769);return _0x16f1a2&&_0x179769&&Rr(_0x378267,_0x3b22b6,_0x179769),_0x179769;},f=(_0xd41fba,_0x1b1d7d)=>(_0x51e718,_0x47a488)=>_0x1b1d7d(_0x51e718,_0x47a488,_0xd41fba),w=(_0x51f5e3=>(_0x51f5e3['NOT_COLLAB']='not_collab',_0x51f5e3['SYNCED']='synced',_0x51f5e3[_0x107bfd(0x51b)]=_0x107bfd(0x28b),_0x51f5e3[_0x107bfd(0x3cd)]=_0x107bfd(0x284),_0x51f5e3[_0x107bfd(0x333)]=_0x107bfd(0x34c),_0x51f5e3['FETCH_MISS']='fetch_missing',_0x51f5e3['CONFLICT']=_0x107bfd(0x4e6),_0x51f5e3[_0x107bfd(0x507)]='offline',_0x51f5e3))(w||{});const Ks=0xea60;class fe{constructor(_0x3d4897,_0x1f5f41,_0x4f890f,_0x5d69bc,_0x34bff4,_0x5b6b69,_0x629be6,_0x246551,_0x14631d){const _0x5b124e=_0x107bfd;l(this,_0x5b124e(0x3a2),null),l(this,_0x5b124e(0x2be),[]),(this[_0x5b124e(0x4e1)]=_0x3d4897,this[_0x5b124e(0x4de)]=_0x1f5f41,this[_0x5b124e(0x4ce)]=_0x34bff4,this[_0x5b124e(0x51d)]=_0x5b6b69,this[_0x5b124e(0x41e)]=_0x629be6,this[_0x5b124e(0x4d3)]=_0x246551,this[_0x5b124e(0x47f)]=_0x14631d,this[_0x5b124e(0x3a2)]=_0x4f890f,this[_0x5b124e(0x2be)]=_0x5d69bc);}[_0x107bfd(0x406)](_0x561ac4){const _0x2df490=_0x107bfd,_0x4580ed=this[_0x2df490(0x4d3)][_0x2df490(0x25c)](this['unitID']);return _0x561ac4[_0x2df490(0x27d)]>_0x4580ed+0x1?(this[_0x2df490(0x4ce)][_0x2df490(0x382)]({'from':_0x4580ed,'to':_0x561ac4[_0x2df490(0x27d)]-0x1}),!0x0):!0x1;}[_0x107bfd(0x477)](_0x5e3971){const _0x2ee682=_0x107bfd;this[_0x2ee682(0x41e)][_0x2ee682(0x2f0)](this[_0x2ee682(0x4e1)],_0x5e3971);}[_0x107bfd(0x2c8)](_0x567c92){const _0x5042dd=_0x107bfd;var _0x35ba3e,_0x2b37a9;(_0x2b37a9=(_0x35ba3e=this['_handler'])[_0x5042dd(0x393)])==null||_0x2b37a9['call'](_0x35ba3e,_0x567c92);}[_0x107bfd(0x49a)](_0xf08687){const _0x284621=_0x107bfd;var _0xe87ad4,_0x5e0f50;return(_0x5e0f50=(_0xe87ad4=this[_0x284621(0x4ce)])[_0x284621(0x2b7)])==null?void 0x0:_0x5e0f50[_0x284621(0x4f6)](_0xe87ad4,_0xf08687);}[_0x107bfd(0x392)](_0x2d64a8){const _0xdbccbc=_0x107bfd;var _0x4e30bd,_0xc389cc,_0x265905;return(_0x265905=(_0xc389cc=(_0x4e30bd=this[_0xdbccbc(0x4ce)])[_0xdbccbc(0x47c)])==null?void 0x0:_0xc389cc[_0xdbccbc(0x4f6)](_0x4e30bd,_0x2d64a8))!=null?_0x265905:_0x2d64a8;}[_0x107bfd(0x283)](_0x8ffada){const _0x24d4f8=_0x107bfd;var _0x589047,_0x2f0d55;if(this[_0x24d4f8(0x4de)]===B[_0x24d4f8(0x344)]){const {unitID:_0xd4d76a,mutations:_0x45964e,memberID:_0x2af5cd}=_0x8ffada,_0x73c0c5=_0x45964e[0x0][_0x24d4f8(0x208)][_0x24d4f8(0x403)];Array[_0x24d4f8(0x473)](_0x73c0c5)&&_0x73c0c5[_0x24d4f8(0x38d)]>0x0&&((_0x2f0d55=(_0x589047=this[_0x24d4f8(0x4ce)])[_0x24d4f8(0x3f9)])==null||_0x2f0d55[_0x24d4f8(0x4f6)](_0x589047,{'unitID':_0xd4d76a,'memberID':_0x2af5cd,'textRanges':_0x73c0c5}));}}['_updateLocalCache'](){const _0x581de8=_0x107bfd;this[_0x581de8(0x47f)][_0x581de8(0x4b1)](this['unitID'],this[_0x581de8(0x4de)],this[_0x581de8(0x3a2)],this[_0x581de8(0x2be)]);}[_0x107bfd(0x4ca)](){return this['_revisionService']['getCurrentRevOfUnit'](this['unitID']);}[_0x107bfd(0x238)](){const _0x3768d2=_0x107bfd;this[_0x3768d2(0x4d3)][_0x3768d2(0x3f3)](this[_0x3768d2(0x4e1)]);}[_0x107bfd(0x4e3)](_0x1446bb){const _0x3606c3=_0x107bfd;var _0x233544;const _0x5cc218=this[_0x3606c3(0x392)](_0x1446bb),_0x300b18=_0x2b3dfa(_0x5cc218[_0x3606c3(0x518)],this[_0x3606c3(0x51d)],{'fromCollab':!0x0});if(!_0x300b18[_0x3606c3(0x1f4)])throw _0x300b18['error']instanceof Error?_0x300b18[_0x3606c3(0x332)]:new Error((_0x233544=_0x300b18[_0x3606c3(0x332)])!=null?_0x233544:'[CollaborationState]:\x20apply\x20error!');this[_0x3606c3(0x49a)](_0x5cc218),this[_0x3606c3(0x477)](_0x1446bb),this['_transformSelections'](_0x5cc218),this[_0x3606c3(0x283)](_0x5cc218),this[_0x3606c3(0x238)]();}}let Ee=class extends fe{constructor(_0x445169,_0x41ff2a,_0x4bc7a7,_0x55f036,_0x1b4801,_0x3df0df,_0x4d26de,_0x4cd9d4,_0x256abc,_0x320aef){const _0x1655c3=_0x107bfd;super(_0x445169,_0x41ff2a,null,[],_0x4bc7a7,_0x4cd9d4,_0x4d26de,_0x55f036,_0x1b4801),l(this,_0x1655c3(0x556),_0x1655c3(0x32e)),(this[_0x1655c3(0x2f8)]=_0x3df0df,this[_0x1655c3(0x3f1)]=_0x256abc,this[_0x1655c3(0x294)]=_0x320aef);}['appendMutation'](_0x736d25){const _0x4747a9=_0x107bfd,_0x1c82ff=this[_0x4747a9(0x2f8)][_0x4747a9(0x223)](J,this[_0x4747a9(0x4e1)],this[_0x4747a9(0x4de)],[_0x736d25],this[_0x4747a9(0x4ce)]);return _0x1c82ff[_0x4747a9(0x261)](),_0x1c82ff['_updateLocalCache'](),_0x1c82ff;}['onRemoteChangeset'](_0x155f9f){const _0x33d4d0=_0x107bfd;if(this['_checkMissing'](_0x155f9f))return this[_0x33d4d0(0x2f8)]['createInstance'](V,this['unitID'],this['type'],null,[],null,[_0x155f9f],this[_0x33d4d0(0x4ce)]);try{const _0x290d39=this['_transformService'][_0x33d4d0(0x2f6)](_0x155f9f,[Tr]);if(_0x569bae(_0x290d39)){const {c1Prime:_0x1237c1}=_0x290d39;return this[_0x33d4d0(0x4e3)](_0x1237c1),this;}throw _0x290d39[_0x33d4d0(0x332)];}catch(_0x3cdf2d){return this[_0x33d4d0(0x3f1)][_0x33d4d0(0x332)](_0x3cdf2d),this[_0x33d4d0(0x296)](!0x1);}}['_onConflict'](_0x210462){const _0x5c0d30=_0x107bfd;return this[_0x5c0d30(0x2f8)][_0x5c0d30(0x223)](se,this[_0x5c0d30(0x4e1)],this[_0x5c0d30(0x4de)],null,[],this[_0x5c0d30(0x4ce)],_0x210462);}['onRemoteAck'](){const _0x1d123a=_0x107bfd;throw new Error(_0x1d123a(0x34d));}[_0x107bfd(0x4c3)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}[_0x107bfd(0x242)](){return this;}[_0x107bfd(0x56d)](){const _0x264f09=_0x107bfd;return this[_0x264f09(0x2f8)][_0x264f09(0x223)](ie,this[_0x264f09(0x4e1)],this[_0x264f09(0x4de)],null,[],this[_0x264f09(0x4ce)]);}[_0x107bfd(0x33f)](){return this;}[_0x107bfd(0x42a)](){const _0x448339=_0x107bfd;throw new Error(_0x448339(0x562));}[_0x107bfd(0x3fc)](){const _0x20c72c=_0x107bfd,_0x27e5dd=this[_0x20c72c(0x4d3)][_0x20c72c(0x25c)](this[_0x20c72c(0x4e1)]);return this[_0x20c72c(0x4ce)][_0x20c72c(0x382)]({'from':_0x27e5dd,'to':0x0}),this[_0x20c72c(0x2f8)][_0x20c72c(0x223)](V,this[_0x20c72c(0x4e1)],this[_0x20c72c(0x4de)],null,[],null,[],this[_0x20c72c(0x4ce)]);}};Ee=me([f(0x3,_0x22b1d4(_0x113ba1)),f(0x4,_0x22b1d4(D)),f(0x5,_0x22b1d4(_0x12b4cf)),f(0x6,_0x4a0d1d),f(0x7,_0x156a6a),f(0x8,_0x42be42),f(0x9,_0x3a5354)],Ee);let J=class extends fe{constructor(_0x533af8,_0x123616,_0x2d1fef,_0x37a916,_0x5d5386,_0x1e02b8,_0x139cd6,_0x246e0d,_0x37d561,_0x3b2c1d,_0x346ea9,_0x1b7dc6,_0x2c1e54,_0x5d929b){const _0x4170c7=_0x107bfd;super(_0x533af8,_0x123616,null,_0x2d1fef,_0x37a916,_0x3b2c1d,_0x5d929b,_0x1e02b8,_0x139cd6),l(this,_0x4170c7(0x556),_0x4170c7(0x28b)),l(this,_0x4170c7(0x3d3),null),l(this,_0x4170c7(0x4b6),null),(this[_0x4170c7(0x2f8)]=_0x5d5386,this[_0x4170c7(0x204)]=_0x246e0d,this['_logService']=_0x37d561,this['_configService']=_0x346ea9,this[_0x4170c7(0x294)]=_0x1b7dc6,this[_0x4170c7(0x32d)]=_0x2c1e54);}['appendMutation'](_0x53e773){const _0x2b593e=_0x107bfd;return this['_pendingMutations'][_0x2b593e(0x30d)](_0x53e773),this['_updateLocalCache'](),this;}[_0x107bfd(0x26f)](_0x306270){const _0x441c8c=_0x107bfd;if(this[_0x441c8c(0x406)](_0x306270))return this['_clearScheduledTask'](),this[_0x441c8c(0x2f8)][_0x441c8c(0x223)](V,this[_0x441c8c(0x4e1)],this['type'],null,this[_0x441c8c(0x2be)],null,[_0x306270],this[_0x441c8c(0x4ce)]);try{const _0x4906b4=this[_0x441c8c(0x294)][_0x441c8c(0x2f6)](_0x306270,this['_pendingMutations']);if(_0x569bae(_0x4906b4)){const {c1Prime:_0x567ac2,m2Prime:_0x508e55}=_0x4906b4;this[_0x441c8c(0x4e3)](_0x567ac2);const _0x15168a=this[_0x441c8c(0x2f8)]['createInstance'](J,this[_0x441c8c(0x4e1)],this[_0x441c8c(0x4de)],_0x508e55,this[_0x441c8c(0x4ce)]);return this[_0x441c8c(0x33e)](),_0x15168a['_schedule'](this[_0x441c8c(0x3d3)]?Math[_0x441c8c(0x3d0)](0x0,new Date()[_0x441c8c(0x213)]()-this[_0x441c8c(0x3d3)]):this['_getSendChangesetTimeout']()),_0x15168a;}throw _0x4906b4[_0x441c8c(0x332)];}catch(_0x360ca2){return this[_0x441c8c(0x3f1)][_0x441c8c(0x332)](_0x360ca2),this[_0x441c8c(0x296)](!0x1);}}[_0x107bfd(0x255)](){const _0x30d0da=_0x107bfd;throw new Error(_0x30d0da(0x3a8));}['onRemoteRej'](){const _0xd7669c=_0x107bfd;throw new Error(_0xd7669c(0x4ea));}[_0x107bfd(0x242)](){return this;}[_0x107bfd(0x56d)](){const _0xa31049=_0x107bfd;return this[_0xa31049(0x33e)](),this[_0xa31049(0x2f8)][_0xa31049(0x223)](ie,this['unitID'],this['type'],null,this[_0xa31049(0x2be)],this[_0xa31049(0x4ce)]);}[_0x107bfd(0x33f)](){return this;}[_0x107bfd(0x261)](_0x28c430){const _0x5f1fe6=_0x107bfd,_0x1f7387=_0x28c430!=null?_0x28c430:this[_0x5f1fe6(0x4f2)]();this[_0x5f1fe6(0x3d3)]=new Date()[_0x5f1fe6(0x213)](),this[_0x5f1fe6(0x4b6)]=window[_0x5f1fe6(0x458)](()=>{const _0x42d774=_0x5f1fe6;this[_0x42d774(0x33e)]();let _0x4dda7a=null;switch(this['type']){case B['UNIVER_SHEET']:{_0x4dda7a=ms(this[_0x42d774(0x2be)],this[_0x42d774(0x4e1)],this['_univerInstanceService'],this[_0x42d774(0x4d3)],this[_0x42d774(0x204)]);break;}case B['UNIVER_DOC']:{this[_0x42d774(0x2be)][_0x42d774(0x47b)](_0x1ce8f6=>_0x1ce8f6['id']===_0x2c1358['id'])?_0x4dda7a=br(this['_pendingMutations'],this[_0x42d774(0x4e1)],this[_0x42d774(0x32d)],this[_0x42d774(0x4d3)],this['_memberService']):_0x4dda7a=ms(this['_pendingMutations'],this['unitID'],this[_0x42d774(0x32d)],this[_0x42d774(0x4d3)],this[_0x42d774(0x204)]);break;}default:throw new Error(_0x42d774(0x564)+this['type']+'\x20in\x20_schedule.');}const {changeset:_0x253583,pendingMutations:_0x1ac4d4}=_0x4dda7a;this[_0x42d774(0x4ce)][_0x42d774(0x28a)](_0x253583);const _0x283d74=_0x1ac4d4[_0x42d774(0x38d)]?this[_0x42d774(0x2f8)][_0x42d774(0x223)](z,this[_0x42d774(0x4e1)],this[_0x42d774(0x4de)],_0x253583,_0x1ac4d4,this[_0x42d774(0x4ce)],void 0x0):this[_0x42d774(0x2f8)][_0x42d774(0x223)](te,this[_0x42d774(0x4e1)],this[_0x42d774(0x4de)],_0x253583,this['_handler']);_0x283d74['_updateLocalCache'](),this[_0x42d774(0x4ce)][_0x42d774(0x3c5)](this,_0x283d74);},_0x1f7387);}[_0x107bfd(0x4f2)](){const _0x4361c7=_0x107bfd;var _0x3f44c3;const _0x413293=this[_0x4361c7(0x30f)][_0x4361c7(0x3c9)](j);return(_0x3f44c3=_0x413293==null?void 0x0:_0x413293['sendChangesetTimeout'])!=null?_0x3f44c3:bn;}[_0x107bfd(0x42a)](){const _0x209d84=_0x107bfd;throw new Error(_0x209d84(0x3ea));}[_0x107bfd(0x33e)](){const _0x3be1c1=_0x107bfd;this['_sendingTimer']!=null&&(clearTimeout(this[_0x3be1c1(0x4b6)]),this['_sendingTimer']=null);}['_onConflict'](_0x4e92be){const _0x1c34d6=_0x107bfd;return this[_0x1c34d6(0x33e)](),this[_0x1c34d6(0x2f8)][_0x1c34d6(0x223)](se,this['unitID'],this[_0x1c34d6(0x4de)],null,this[_0x1c34d6(0x2be)],this[_0x1c34d6(0x4ce)],_0x4e92be);}};J=me([f(0x4,_0x22b1d4(_0x12b4cf)),f(0x5,_0x22b1d4(_0x113ba1)),f(0x6,_0x22b1d4(D)),f(0x7,_0x22b1d4(_e)),f(0x8,_0x42be42),f(0x9,_0x156a6a),f(0xa,_0x4d9096),f(0xb,_0x3a5354),f(0xc,_0x4bc21f),f(0xd,_0x4a0d1d)],J);let te=class extends fe{constructor(_0x371dfb,_0x1fa07b,_0x6f1840,_0x58be7e,_0x527c32,_0x5aea60,_0x2d6fb1,_0x4f2792,_0x3d4246,_0x4a86e4,_0x3ed6fc){const _0x48ffd8=_0x107bfd;super(_0x371dfb,_0x1fa07b,_0x6f1840,[],_0x58be7e,_0x4f2792,_0x3ed6fc,_0x5aea60,_0x2d6fb1),l(this,'status',_0x48ffd8(0x284)),l(this,_0x48ffd8(0x31c),0x0),l(this,_0x48ffd8(0x456)),l(this,'_sender'),(this[_0x48ffd8(0x2f8)]=_0x527c32,this[_0x48ffd8(0x3f1)]=_0x3d4246,this[_0x48ffd8(0x294)]=_0x4a86e4);}[_0x107bfd(0x3e5)](_0x20ed5c){const _0x5dc749=_0x107bfd;this[_0x5dc749(0x33e)]();const _0x181e90=this['_injector'][_0x5dc749(0x223)](z,this[_0x5dc749(0x4e1)],this[_0x5dc749(0x4de)],this[_0x5dc749(0x3a2)],[_0x20ed5c],this[_0x5dc749(0x4ce)],this[_0x5dc749(0x456)]);return _0x181e90[_0x5dc749(0x26e)](),_0x181e90;}['onRemoteChangeset'](_0x3bce0d){const _0x176028=_0x107bfd;if(this['_checkMissing'](_0x3bce0d))return this[_0x176028(0x33e)](),this[_0x176028(0x2f8)][_0x176028(0x223)](V,this[_0x176028(0x4e1)],this['type'],this[_0x176028(0x3a2)],[],null,[_0x3bce0d],this[_0x176028(0x4ce)]);try{const _0x228eb7=this[_0x176028(0x294)]['transformChangesets']([_0x3bce0d],[this[_0x176028(0x3a2)]],!0x1);if(_0x244086(_0x228eb7)){const {c1Prime:_0x1ff74f,c2Prime:_0x4e1146}=_0x228eb7;this[_0x176028(0x4e3)](_0x1ff74f[0x0]),_0x4e1146[0x0][_0x176028(0x51f)]=this[_0x176028(0x4ca)](),this[_0x176028(0x33e)]();const _0x3a81be=this[_0x176028(0x2f8)][_0x176028(0x223)](te,this[_0x176028(0x4e1)],this[_0x176028(0x4de)],_0x4e1146[0x0],this['_handler']);return _0x3a81be[_0x176028(0x26e)](),_0x3a81be;}return this[_0x176028(0x296)](!0x1);}catch(_0x151462){return this[_0x176028(0x3f1)][_0x176028(0x332)](_0x151462),this[_0x176028(0x296)](!0x1);}}[_0x107bfd(0x255)](_0x58c8a9){const _0x3e2582=_0x107bfd;this['_clearScheduledTask']();const _0x32bcd4=this[_0x3e2582(0x4d3)][_0x3e2582(0x25c)](this['unitID']);if(_0x58c8a9[_0x3e2582(0x27d)]<_0x32bcd4-0x1)return this;if(this[_0x3e2582(0x406)](_0x58c8a9))return this[_0x3e2582(0x2f8)][_0x3e2582(0x223)](V,this[_0x3e2582(0x4e1)],this[_0x3e2582(0x4de)],null,[],this[_0x3e2582(0x3a2)],[],this[_0x3e2582(0x4ce)]);this[_0x3e2582(0x238)]();const _0x46abe0=this[_0x3e2582(0x2f8)][_0x3e2582(0x223)](Ee,this[_0x3e2582(0x4e1)],this[_0x3e2582(0x4de)],this[_0x3e2582(0x4ce)]);return _0x46abe0[_0x3e2582(0x26e)](),_0x46abe0;}[_0x107bfd(0x4c3)](_0x5c8e11){const _0x332551=_0x107bfd;return this['_onConflict'](!!(_0x5c8e11!=null&&_0x5c8e11[_0x332551(0x3ec)]));}['onRemoteRetry'](_0x1ce34a){const _0x4fa2c7=_0x107bfd;return this['_resendTimeout']>Ks?this[_0x4fa2c7(0x56d)]():(this[_0x4fa2c7(0x456)]=Ys(this['_resendTimeout'],{'timeout':this[_0x4fa2c7(0x31c)],'reqId':_0x1ce34a['reqId']}),this[_0x4fa2c7(0x400)]=this[_0x4fa2c7(0x456)][_0x4fa2c7(0x4c6)](({reqId:_0x58f022,timeout:_0x3fb847})=>{this['_resendWithTimeout'](_0x58f022,_0x3fb847);}),this);}[_0x107bfd(0x56d)](){const _0x5ee37a=_0x107bfd;return this['_clearScheduledTask'](),this[_0x5ee37a(0x2f8)]['createInstance'](ie,this[_0x5ee37a(0x4e1)],this[_0x5ee37a(0x4de)],this[_0x5ee37a(0x3a2)],[],this['_handler']);}[_0x107bfd(0x33f)](){return this;}[_0x107bfd(0x42a)](){const _0x182b04=_0x107bfd;this['_handler'][_0x182b04(0x28a)](this['_awaitingChangeset']);}[_0x107bfd(0x296)](_0x38c998){const _0x2338db=_0x107bfd;return this[_0x2338db(0x33e)](),this[_0x2338db(0x2f8)]['createInstance'](se,this[_0x2338db(0x4e1)],this['type'],this[_0x2338db(0x3a2)],[],this['_handler'],_0x38c998);}['_resendWithTimeout'](_0x14522c,_0x3d2ed1){const _0x19d94f=_0x107bfd;var _0x4e2267;_0x14522c===((_0x4e2267=this['_awaitingChangeset'])==null?void 0x0:_0x4e2267['reqId'])&&(this[_0x19d94f(0x42a)](),this[_0x19d94f(0x31c)]=_0x3d2ed1===0x0?0x3e8:_0x3d2ed1*0x2);}[_0x107bfd(0x33e)](){const _0x5f4e5b=_0x107bfd;var _0x537055;(_0x537055=this[_0x5f4e5b(0x400)])==null||_0x537055[_0x5f4e5b(0x28c)](),this[_0x5f4e5b(0x31c)]=0x0;}};te=me([f(0x4,_0x22b1d4(_0x12b4cf)),f(0x5,_0x22b1d4(_0x113ba1)),f(0x6,_0x22b1d4(D)),f(0x7,_0x156a6a),f(0x8,_0x42be42),f(0x9,_0x3a5354),f(0xa,_0x4a0d1d)],te);let z=class extends fe{constructor(_0x1c2a73,_0x36fe5a,_0x24a56e,_0x498b7a,_0x46dc70,_0x315afe,_0x3d5f8c,_0x14d47d,_0x559652,_0x39d14a,_0x3afb6f,_0x138140,_0x29e34a){const _0x2eb06b=_0x107bfd;super(_0x1c2a73,_0x36fe5a,_0x24a56e,_0x498b7a,_0x46dc70,_0x39d14a,_0x29e34a,_0x14d47d,_0x559652),l(this,_0x2eb06b(0x556),_0x2eb06b(0x34c)),l(this,'_resendTimeout',0x0),l(this,_0x2eb06b(0x456)),l(this,_0x2eb06b(0x400)),(this['_injector']=_0x3d5f8c,this['_logService']=_0x3afb6f,this[_0x2eb06b(0x294)]=_0x138140,_0x315afe&&(this[_0x2eb06b(0x456)]=_0x315afe,this[_0x2eb06b(0x400)]=this[_0x2eb06b(0x456)]['subscribe'](({reqId:_0x59513e,timeout:_0x503925})=>{const _0x2d671c=_0x2eb06b;this[_0x2d671c(0x246)](_0x59513e,_0x503925);})));}[_0x107bfd(0x3e5)](_0x57315d){const _0x1eccc5=_0x107bfd;return this[_0x1eccc5(0x2be)][_0x1eccc5(0x30d)](_0x57315d),this;}['onRemoteChangeset'](_0x3a0663){const _0x1c888e=_0x107bfd;if(this[_0x1c888e(0x406)](_0x3a0663))return this['_clearScheduledTask'](),this[_0x1c888e(0x2f8)]['createInstance'](V,this[_0x1c888e(0x4e1)],this[_0x1c888e(0x4de)],this['_awaitingChangeset'],this[_0x1c888e(0x2be)],null,[_0x3a0663],this[_0x1c888e(0x4ce)]);try{const _0x5a119b=this[_0x1c888e(0x294)][_0x1c888e(0x436)]([_0x3a0663],[this[_0x1c888e(0x3a2)]],!0x1);if(_0x244086(_0x5a119b)){const {c1Prime:_0x4027de,c2Prime:_0x17db95}=_0x5a119b,_0x199f8c=this[_0x1c888e(0x294)][_0x1c888e(0x2f6)](_0x4027de[0x0],this[_0x1c888e(0x2be)]);if(_0x569bae(_0x199f8c)){const {c1Prime:_0x55895e,m2Prime:_0x240b3a}=_0x199f8c;return this[_0x1c888e(0x4e3)](_0x55895e),_0x17db95[0x0][_0x1c888e(0x51f)]=this[_0x1c888e(0x4ca)](),this[_0x1c888e(0x33e)](),this['_injector'][_0x1c888e(0x223)](z,this['unitID'],this[_0x1c888e(0x4de)],_0x17db95[0x0],_0x240b3a,this[_0x1c888e(0x4ce)],void 0x0);}throw _0x199f8c[_0x1c888e(0x332)];}throw _0x5a119b['error'];}catch(_0x100cec){return this[_0x1c888e(0x3f1)]['error'](_0x100cec),this[_0x1c888e(0x296)](!0x1);}}[_0x107bfd(0x255)](_0x5a95c3){const _0x4ab769=_0x107bfd;if(this[_0x4ab769(0x33e)](),this[_0x4ab769(0x406)](_0x5a95c3))return this[_0x4ab769(0x2f8)][_0x4ab769(0x223)](V,this['unitID'],this[_0x4ab769(0x4de)],null,this[_0x4ab769(0x2be)],this['_awaitingChangeset'],[],this[_0x4ab769(0x4ce)]);this[_0x4ab769(0x238)]();const _0x3b64e0=this['_injector'][_0x4ab769(0x223)](J,this[_0x4ab769(0x4e1)],this[_0x4ab769(0x4de)],this[_0x4ab769(0x2be)],this[_0x4ab769(0x4ce)]);return _0x3b64e0['_schedule'](),_0x3b64e0[_0x4ab769(0x26e)](),_0x3b64e0;}[_0x107bfd(0x4c3)](_0x445e2e){const _0x3de4b3=_0x107bfd;return this['_onConflict'](!!(_0x445e2e!=null&&_0x445e2e[_0x3de4b3(0x3ec)]));}['onRemoteRetry'](_0x5562c7){const _0x19a9b8=_0x107bfd;return this[_0x19a9b8(0x31c)]>Ks?this[_0x19a9b8(0x56d)]():(this[_0x19a9b8(0x456)]=Ys(this['_resendTimeout'],{'timeout':this[_0x19a9b8(0x31c)],'reqId':_0x5562c7[_0x19a9b8(0x417)]}),this['_sender']=this[_0x19a9b8(0x456)][_0x19a9b8(0x4c6)](({reqId:_0x411c4c,timeout:_0x1ddd9d})=>{const _0x31d566=_0x19a9b8;this[_0x31d566(0x246)](_0x411c4c,_0x1ddd9d);}),this);}[_0x107bfd(0x56d)](){const _0x2f7371=_0x107bfd;return this[_0x2f7371(0x33e)](),this[_0x2f7371(0x2f8)]['createInstance'](ie,this['unitID'],this['type'],this[_0x2f7371(0x3a2)],this[_0x2f7371(0x2be)],this['_handler']);}['toggleOnline'](){return this;}[_0x107bfd(0x42a)](){const _0x5e90cf=_0x107bfd;this['_handler']['onSendChangeset'](this[_0x5e90cf(0x3a2)]);}['_onConflict'](_0x5f59e4){const _0x407301=_0x107bfd;return this[_0x407301(0x33e)](),this[_0x407301(0x2f8)][_0x407301(0x223)](se,this['unitID'],this[_0x407301(0x4de)],null,this['_pendingMutations'],this[_0x407301(0x4ce)],_0x5f59e4);}[_0x107bfd(0x246)](_0xf00fc1,_0x5813c5){const _0x246c18=_0x107bfd;var _0x12c68d;_0xf00fc1===((_0x12c68d=this[_0x246c18(0x3a2)])==null?void 0x0:_0x12c68d[_0x246c18(0x417)])&&(this[_0x246c18(0x42a)](),this[_0x246c18(0x31c)]=_0x5813c5===0x0?0x3e8:_0x5813c5*0x2);}[_0x107bfd(0x33e)](){const _0x5353c6=_0x107bfd;var _0x5610a7;(_0x5610a7=this[_0x5353c6(0x400)])==null||_0x5610a7['unsubscribe'](),this[_0x5353c6(0x31c)]=0x0;}};z=me([f(0x6,_0x22b1d4(_0x12b4cf)),f(0x7,_0x22b1d4(_0x113ba1)),f(0x8,_0x22b1d4(D)),f(0x9,_0x156a6a),f(0xa,_0x42be42),f(0xb,_0x3a5354),f(0xc,_0x4a0d1d)],z);let se=class extends fe{constructor(_0x35605d,_0x1beb62,_0x43a3a5,_0x162c7b,_0x46a05d,_0x46eda2=!0x1,_0x1aaf04,_0x45ec0d,_0x3142a9,_0x3bddf1,_0x393687,_0x1f70e1,_0x496389){const _0x417af9=_0x107bfd;super(_0x35605d,_0x1beb62,_0x43a3a5,_0x162c7b,_0x46a05d,_0x45ec0d,_0x3142a9,_0x393687,_0x3bddf1),l(this,_0x417af9(0x556),_0x417af9(0x4e6)),(this[_0x417af9(0x492)]=_0x46eda2,this[_0x417af9(0x25d)]=_0x1aaf04,this['_localeService']=_0x1f70e1,this[_0x417af9(0x46e)]=_0x496389,this[_0x417af9(0x539)](),this[_0x417af9(0x384)](),this[_0x417af9(0x253)]());}[_0x107bfd(0x3e5)](){return this;}[_0x107bfd(0x26f)](){return this;}['onRemoteAck'](){return this;}[_0x107bfd(0x4c3)](){return this;}[_0x107bfd(0x242)](){return this;}[_0x107bfd(0x56d)](){return this;}[_0x107bfd(0x33f)](){return this;}[_0x107bfd(0x42a)](){const _0x1099e8=_0x107bfd;throw new Error(_0x1099e8(0x350));}[_0x107bfd(0x384)](){const _0x40adb2=_0x107bfd;this[_0x40adb2(0x47f)]['updateOfflineData'](this[_0x40adb2(0x4e1)],this[_0x40adb2(0x4de)],null,[]);}[_0x107bfd(0x539)](){const _0x2cd426=_0x107bfd;this[_0x2cd426(0x492)]?this[_0x2cd426(0x46e)][_0x2cd426(0x1fd)]({'title':this[_0x2cd426(0x533)]['t'](_0x2cd426(0x369)),'content':this[_0x2cd426(0x533)]['t'](_0x2cd426(0x25e)),'type':_0x2cd426(0x332),'duration':0x0}):this[_0x2cd426(0x46e)]['show']({'title':this[_0x2cd426(0x533)]['t'](_0x2cd426(0x265)),'content':this[_0x2cd426(0x533)]['t'](_0x2cd426(0x287)),'type':_0x2cd426(0x332),'duration':0x0});}['_disableEditing'](){const _0x37f101=_0x107bfd;this['_permissionService'][_0x37f101(0x4ac)](new _0x251d50(this[_0x37f101(0x4e1)])['id'],!0x1);}};se=me([f(0x6,_0x22b1d4(_0x4add88)),f(0x7,_0x156a6a),f(0x8,_0x4a0d1d),f(0x9,_0x22b1d4(D)),f(0xa,_0x22b1d4(_0x113ba1)),f(0xb,_0x22b1d4(_0x18c55e)),f(0xc,_0x246848)],se);let ie=class extends fe{constructor(_0x21496,_0x37572e,_0x209d09,_0x566dc3,_0x1105d0,_0x2a51ee,_0x32bbd3,_0x25b7ca,_0x3892cf,_0x847f2a){const _0x5e008f=_0x107bfd;super(_0x21496,_0x37572e,_0x209d09,_0x566dc3,_0x1105d0,_0x3892cf,_0x847f2a,_0x32bbd3,_0x25b7ca),l(this,_0x5e008f(0x556),_0x5e008f(0x1ed)),this[_0x5e008f(0x2f8)]=_0x2a51ee;}[_0x107bfd(0x3e5)](_0x2db933){const _0x513d6e=_0x107bfd;return this[_0x513d6e(0x2be)][_0x513d6e(0x30d)](_0x2db933),this['_updateLocalCache'](),this;}[_0x107bfd(0x26f)](_0x54773c){const _0x420ae5=_0x107bfd;throw new Error(_0x420ae5(0x2e9));}[_0x107bfd(0x255)](){const _0x11c179=_0x107bfd;throw new Error(_0x11c179(0x3fb));}['onRemoteRej'](){throw new Error('[OfflineState]:\x20received\x20rejection.');}[_0x107bfd(0x242)](){return this;}[_0x107bfd(0x56d)](){return this;}[_0x107bfd(0x33f)](){const _0x25b276=_0x107bfd,{_injector:_0x5274a9,_pendingMutations:_0x348051,_awaitingChangeset:_0x42492d,unitID:_0x271d80,_handler:_0x457563,type:_0x4cbbc3}=this,_0x4faa70=Xs(_0x5274a9,_0x271d80,_0x4cbbc3,_0x42492d,_0x348051,_0x457563);return _0x4faa70 instanceof J?_0x4faa70[_0x25b276(0x261)]():(_0x4faa70 instanceof z||_0x4faa70 instanceof te)&&_0x4faa70['resend'](),_0x4faa70;}[_0x107bfd(0x42a)](){const _0x54648a=_0x107bfd;throw new Error(_0x54648a(0x451));}};ie=me([f(0x5,_0x22b1d4(_0x12b4cf)),f(0x6,_0x22b1d4(_0x113ba1)),f(0x7,_0x22b1d4(D)),f(0x8,_0x156a6a),f(0x9,_0x4a0d1d)],ie);let V=class extends fe{constructor(_0x4e5bc6,_0x22c119,_0xbd0cd6,_0x238afa,_0x25acef,_0x6d1e15,_0x2d4eab,_0x4b7101,_0x36caf5,_0x38f4e6,_0x40248f,_0x49f710,_0x597ca7,_0x2bf21c){const _0x3a300c=_0x107bfd;super(_0x4e5bc6,_0x22c119,_0xbd0cd6,_0x238afa,_0x2d4eab,_0x49f710,_0x597ca7,_0x36caf5,_0x38f4e6),l(this,_0x3a300c(0x556),_0x3a300c(0x25b)),(this[_0x3a300c(0x463)]=_0x25acef,this['_queuedRemoteChangesets']=_0x6d1e15,this['_injector']=_0x4b7101,this['_logService']=_0x40248f,this[_0x3a300c(0x294)]=_0x2bf21c);}['onMissedChangesetFetched'](_0x26f0b){const _0x729f5d=_0x107bfd;try{const _0xdecdc9=[..._0x26f0b,...this[_0x729f5d(0x2f7)]],_0x28634d=[this[_0x729f5d(0x3a2)]||this[_0x729f5d(0x463)]][_0x729f5d(0x27b)](_0x4d1a1d=>!!_0x4d1a1d);let _0x509aee,_0x186d5d;if(_0x28634d[_0x729f5d(0x38d)]){const _0x54cd51=this[_0x729f5d(0x294)]['transformChangesets'](_0xdecdc9,_0x28634d,!0x1);if(!_0x244086(_0x54cd51))throw _0x54cd51[_0x729f5d(0x332)];_0x509aee=_0x54cd51[_0x729f5d(0x474)],_0x186d5d=_0x54cd51['c2Prime'];}else _0x509aee=_0xdecdc9,_0x186d5d=[];let _0x140dac=this[_0x729f5d(0x2be)];_0x509aee[_0x729f5d(0x51c)](_0x34c3d0=>{const _0x100cf0=_0x729f5d;let _0x515734;if(_0x140dac[_0x100cf0(0x38d)]){const _0x4d81e7=this[_0x100cf0(0x294)][_0x100cf0(0x2f6)](_0x34c3d0,_0x140dac);if(!_0x569bae(_0x4d81e7))throw _0x4d81e7['error'];_0x515734=_0x4d81e7[_0x100cf0(0x474)],_0x140dac=_0x4d81e7[_0x100cf0(0x3cc)];}else _0x515734=_0x34c3d0;this[_0x100cf0(0x4e3)](_0x515734);}),this[_0x729f5d(0x463)]&&this[_0x729f5d(0x238)](),this['_awaitingChangeset']&&_0x186d5d[_0x729f5d(0x38d)]&&(_0x186d5d[0x0][_0x729f5d(0x51f)]=this[_0x729f5d(0x4ca)]());let _0x4277dd;if(this[_0x729f5d(0x3a2)]&&_0x140dac['length']!==0x0)_0x4277dd=this[_0x729f5d(0x2f8)][_0x729f5d(0x223)](z,this[_0x729f5d(0x4e1)],this['type'],_0x186d5d[0x0],_0x140dac,this[_0x729f5d(0x4ce)],void 0x0);else{if(this[_0x729f5d(0x3a2)]&&_0x140dac[_0x729f5d(0x38d)]===0x0)_0x186d5d[0x0][_0x729f5d(0x51f)]=this['_getCurrentRevision'](),_0x4277dd=this[_0x729f5d(0x2f8)][_0x729f5d(0x223)](te,this['unitID'],this['type'],_0x186d5d[0x0],this[_0x729f5d(0x4ce)]);else{if(_0x140dac['length']!==0x0){const _0x3c26ee=this['_injector'][_0x729f5d(0x223)](J,this[_0x729f5d(0x4e1)],this[_0x729f5d(0x4de)],_0x140dac,this[_0x729f5d(0x4ce)]);_0x3c26ee['_schedule'](),_0x4277dd=_0x3c26ee;}else _0x4277dd=this['_injector']['createInstance'](Ee,this[_0x729f5d(0x4e1)],this[_0x729f5d(0x4de)],this[_0x729f5d(0x4ce)]);}}return _0x4277dd[_0x729f5d(0x26e)](),_0x4277dd;}catch(_0x163535){return this[_0x729f5d(0x3f1)][_0x729f5d(0x332)](_0x729f5d(0x52a),_0x729f5d(0x405),_0x163535),this[_0x729f5d(0x2f8)][_0x729f5d(0x223)](se,this[_0x729f5d(0x4e1)],this[_0x729f5d(0x4de)],this[_0x729f5d(0x3a2)],this[_0x729f5d(0x2be)],this[_0x729f5d(0x4ce)],!0x1);}}[_0x107bfd(0x42a)](){const _0x5b5f6=_0x107bfd;throw new Error(_0x5b5f6(0x325));}[_0x107bfd(0x3e5)](_0x41ce24){const _0x37bc98=_0x107bfd;return this[_0x37bc98(0x2be)][_0x37bc98(0x30d)](_0x41ce24),this;}['onRemoteChangeset'](_0x11673f){const _0x43fd78=_0x107bfd;return this[_0x43fd78(0x2f7)][_0x43fd78(0x30d)](_0x11673f),this;}[_0x107bfd(0x255)](_0x1e8ebb){const _0x43d67d=_0x107bfd;if(this[_0x43d67d(0x3a2)])return this[_0x43d67d(0x463)]=this[_0x43d67d(0x3a2)],this[_0x43d67d(0x3a2)]=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}['onRemoteRej'](_0x21a790){return this['_onConflict'](!!(_0x21a790!=null&&_0x21a790['isPermissionRej']));}[_0x107bfd(0x242)](){return this;}[_0x107bfd(0x56d)](){const _0x21ab2b=_0x107bfd;return this[_0x21ab2b(0x2f8)]['createInstance'](ie,this[_0x21ab2b(0x4e1)],this[_0x21ab2b(0x4de)],this['_awaitingChangeset'],this[_0x21ab2b(0x2be)],this['_handler']);}['toggleOnline'](){return this;}['_onConflict'](_0x2bac81){const _0x161294=_0x107bfd;return this['_injector']['createInstance'](se,this[_0x161294(0x4e1)],this[_0x161294(0x4de)],this[_0x161294(0x3a2)],this[_0x161294(0x2be)],this['_handler'],_0x2bac81);}};V=me([f(0x7,_0x22b1d4(_0x12b4cf)),f(0x8,_0x22b1d4(_0x113ba1)),f(0x9,_0x22b1d4(D)),f(0xa,_0x42be42),f(0xb,_0x156a6a),f(0xc,_0x4a0d1d),f(0xd,_0x3a5354)],V);function Xs(_0xc0a455,_0x1a83e5,_0x2b6854,_0x1815c9,_0x3470cc,_0x4543c5){const _0x35266c=_0x107bfd;return _0x1815c9&&_0x3470cc['length']?_0xc0a455[_0x35266c(0x223)](z,_0x1a83e5,_0x2b6854,_0x1815c9,_0x3470cc,_0x4543c5,void 0x0):_0x1815c9?_0xc0a455[_0x35266c(0x223)](te,_0x1a83e5,_0x2b6854,_0x1815c9,_0x4543c5):_0x3470cc[_0x35266c(0x38d)]?_0xc0a455[_0x35266c(0x223)](J,_0x1a83e5,_0x2b6854,_0x3470cc,_0x4543c5):_0xc0a455[_0x35266c(0x223)](Ee,_0x1a83e5,_0x2b6854,_0x4543c5);}var Dr=Object[_0x107bfd(0x1ea)],wr=Object['getOwnPropertyDescriptor'],Gt=(_0x27888b,_0x433709,_0x2f02af,_0x3d0316)=>{const _0x536b9b=_0x107bfd;for(var _0x4b2439=_0x3d0316>0x1?void 0x0:_0x3d0316?wr(_0x433709,_0x2f02af):_0x433709,_0x3f4779=_0x27888b[_0x536b9b(0x38d)]-0x1,_0x5f414c;_0x3f4779>=0x0;_0x3f4779--)(_0x5f414c=_0x27888b[_0x3f4779])&&(_0x4b2439=(_0x3d0316?_0x5f414c(_0x433709,_0x2f02af,_0x4b2439):_0x5f414c(_0x4b2439))||_0x4b2439);return _0x3d0316&&_0x4b2439&&Dr(_0x433709,_0x2f02af,_0x4b2439),_0x4b2439;},p=(_0x4c77d3,_0x28f656)=>(_0x2aabc6,_0x2f39ba)=>_0x28f656(_0x2aabc6,_0x2f39ba,_0x4c77d3);let ze=class extends _0x4fe933{constructor(_0x12cf01,_0x53efc0,_0xf6a9cc,_0x416317,_0x384281,_0x9ce6e9,_0x597a1f,_0x261c74,_0x4d08ab,_0x6b4774,_0x2ec062,_0x17b4f5,_0x3eaaca){const _0x96b8b7=_0x107bfd;super(),l(this,'_state$',new _0x435a5b(null)),l(this,_0x96b8b7(0x4a2),this[_0x96b8b7(0x2b6)][_0x96b8b7(0x491)]()),l(this,_0x96b8b7(0x42d)),l(this,_0x96b8b7(0x514),!0x1),l(this,'_changesetSessionId',''),l(this,'_changesetReqId',0x0),l(this,'status$',this['state$'][_0x96b8b7(0x321)](_0x3a9232(_0x39e7b1=>_0x39e7b1?_0x39e7b1[_0x96b8b7(0x556)]:w[_0x96b8b7(0x507)]),_0x5ecc6d(0x1))),l(this,_0x96b8b7(0x2ba),!0x1),l(this,_0x96b8b7(0x45e),[]),(this['unitID']=_0x12cf01,this['session']=_0x53efc0,this[_0x96b8b7(0x414)]=_0xf6a9cc,this['_injector']=_0x416317,this[_0x96b8b7(0x47f)]=_0x384281,this[_0x96b8b7(0x44d)]=_0x9ce6e9,this[_0x96b8b7(0x533)]=_0x597a1f,this[_0x96b8b7(0x4d3)]=_0x261c74,this[_0x96b8b7(0x3f1)]=_0x4d08ab,this[_0x96b8b7(0x51d)]=_0x6b4774,this[_0x96b8b7(0x26d)]=_0x2ec062,this[_0x96b8b7(0x25d)]=_0x17b4f5,this[_0x96b8b7(0x1ff)]=_0x3eaaca);}get[_0x107bfd(0x4c1)](){return this['_state'];}async[_0x107bfd(0x461)](){const _0x134710=_0x107bfd;if(this['state'])throw new Error(_0x134710(0x2dc));await this[_0x134710(0x3c7)]();}['pauseCollaboration'](){const _0x1b68f6=_0x107bfd;return this[_0x1b68f6(0x514)]=!0x0,_0x216991(()=>{const _0x2daad0=_0x1b68f6;this['_collaborationPaused']=!0x1,this[_0x2daad0(0x3ab)]();});}[_0x107bfd(0x2ec)](_0x5ca28c){const _0x304adc=_0x107bfd;this['_state']=_0x5ca28c,this[_0x304adc(0x2b6)]['next'](_0x5ca28c);}async[_0x107bfd(0x3c7)](){const _0x205c08=_0x107bfd;var _0x2beff7;this['_updateState'](await this[_0x205c08(0x1f3)]()),this[_0x205c08(0x1ff)]&&((_0x2beff7=this[_0x205c08(0x1ff)])==null||_0x2beff7[_0x205c08(0x521)](this[_0x205c08(0x4e1)]),this['disposeWithMe'](this[_0x205c08(0x1ff)][_0x205c08(0x23c)](this['unitID'])[_0x205c08(0x4c6)](_0x526cfe=>{const _0x56e5f0=_0x205c08;this['_logService'][_0x56e5f0(0x4b2)](_0x56e5f0(0x3e6),'editing\x20status\x20changed\x20to',_0x526cfe),_0x526cfe===Ws[_0x56e5f0(0x485)]?(this[_0x56e5f0(0x26d)][_0x56e5f0(0x1fd)]({'content':this[_0x56e5f0(0x533)]['t'](_0x56e5f0(0x55e)),'type':_0x3a2b8b[_0x56e5f0(0x3ef)]}),this[_0x56e5f0(0x25d)][_0x56e5f0(0x4ac)](new _0x251d50(this['unitID'])['id'],!0x1),this[_0x56e5f0(0x25d)][_0x56e5f0(0x1f5)](!0x1)):(this[_0x56e5f0(0x25d)][_0x56e5f0(0x4ac)](new _0x251d50(this['unitID'])['id'],!0x0),this[_0x56e5f0(0x25d)][_0x56e5f0(0x1f5)](!0x0));})));let _0x2e212f=!0x1;return this[_0x205c08(0x2b2)](this[_0x205c08(0x28d)][_0x205c08(0x30c)]['subscribe'](_0x4c5dac=>{const _0xeeae4=_0x205c08;_0x4c5dac===X[_0xeeae4(0x359)]?this[_0xeeae4(0x219)](_0x2e212f):_0x4c5dac===X[_0xeeae4(0x507)]&&(_0x2e212f=!0x0,this['_toggleOffline']());})),this[_0x205c08(0x2b2)](this[_0x205c08(0x28d)][_0x205c08(0x319)][_0x205c08(0x4c6)](_0x169a68=>{const _0x286e0b=_0x205c08;try{switch(_0x169a68['eventID']){case _0x5898c5['NEW_CHANGESETS']:{this['_onRemoteChangeset'](_0x4eeb37(_0x169a68['data']));break;}case _0x5898c5[_0x286e0b(0x4a4)]:{this[_0x286e0b(0x519)](_0x169a68['data']);break;}case _0x5898c5[_0x286e0b(0x3e9)]:{this[_0x286e0b(0x280)]();break;}case _0x5898c5['CHANGESET_SHOULD_RETRY']:{this[_0x286e0b(0x443)](_0x169a68['data']);break;}case _0x5898c5['PSEUDO_FETCH_MISSING_RESULT']:{this[_0x286e0b(0x217)](_0x169a68[_0x286e0b(0x431)][_0x286e0b(0x273)][_0x286e0b(0x3a7)](_0xac216c=>_0x4eeb37(_0xac216c)));break;}case _0x5898c5[_0x286e0b(0x2b1)]:this[_0x286e0b(0x280)]({'isPermissionRej':!0x0});}}catch(_0x194065){throw console['error']('Error\x20on\x20receiving\x20event',_0x194065),_0x194065;}})),this[_0x205c08(0x42d)];}[_0x107bfd(0x250)](){this['_transitionLocked']=!0x1;}['_lockTransition'](){const _0x3e6e1f=_0x107bfd;if(this[_0x3e6e1f(0x2ba)])throw new Error(_0x3e6e1f(0x354));this[_0x3e6e1f(0x2ba)]=!0x0;}[_0x107bfd(0x335)](_0x4b8cf5){const _0x5c0cc2=_0x107bfd;this['_lockTransition'](),this[_0x5c0cc2(0x2ec)](this[_0x5c0cc2(0x42d)][_0x5c0cc2(0x3e5)](_0x4b8cf5)),this['_unlockTransition']();}[_0x107bfd(0x3f2)](_0x16816c){const _0x2e3885=_0x107bfd;if(!(_0x16816c[_0x2e3885(0x27d)]<=this[_0x2e3885(0x4d3)][_0x2e3885(0x25c)](this[_0x2e3885(0x4e1)]))){if(this[_0x2e3885(0x514)]){this['_remoteChangesetQueue'][_0x2e3885(0x30d)](_0x16816c);return;}this['_applyRemoteChangeset'](_0x16816c);}}[_0x107bfd(0x3ab)](){const _0x3b6a55=_0x107bfd;this['_remoteChangesetQueue'][_0x3b6a55(0x51c)](_0x328288=>this[_0x3b6a55(0x33d)](_0x328288)),this['_remoteChangesetQueue']=[];}[_0x107bfd(0x33d)](_0x472dad){const _0x18d68b=_0x107bfd,_0x4aa490=this[_0x18d68b(0x44d)][_0x18d68b(0x3bd)][_0x18d68b(0x469)](this[_0x18d68b(0x44d)][_0x18d68b(0x3bd)]['getInterceptPoints']()[_0x18d68b(0x4dc)])(_0x472dad[_0x18d68b(0x518)],null)||_0x472dad[_0x18d68b(0x518)],_0x507aca={..._0x472dad,'mutations':_0x4aa490};this[_0x18d68b(0x3e1)](),this['_updateState'](this[_0x18d68b(0x42d)]['onRemoteChangeset'](_0x507aca)),this[_0x18d68b(0x250)]();}[_0x107bfd(0x519)](_0x2f5c49){const _0x165b9a=_0x107bfd;this[_0x165b9a(0x3e1)](),this[_0x165b9a(0x2ec)](this[_0x165b9a(0x42d)][_0x165b9a(0x255)](_0x2f5c49)),this[_0x165b9a(0x250)]();}[_0x107bfd(0x280)](_0x115023){const _0x86c10f=_0x107bfd;this['_lockTransition'](),this['_updateState'](this[_0x86c10f(0x42d)][_0x86c10f(0x4c3)](_0x115023)),this[_0x86c10f(0x250)]();}['_onRemoteRetry'](_0x1bba94){const _0x427033=_0x107bfd;this[_0x427033(0x3e1)](),this[_0x427033(0x2ec)](this[_0x427033(0x42d)][_0x427033(0x242)](_0x1bba94)),this[_0x427033(0x250)]();}['_onFetchMissResult'](_0x2dd55b){const _0x121b25=_0x107bfd;if(!(this[_0x121b25(0x42d)]instanceof V))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0x8f89d6=_0x2dd55b[_0x121b25(0x3a7)](_0xcb13b=>{const _0x488b44=_0x121b25,_0x526354=this['_compressMutationService'][_0x488b44(0x3bd)]['fetchThroughInterceptors'](this[_0x488b44(0x44d)][_0x488b44(0x3bd)]['getInterceptPoints']()[_0x488b44(0x4dc)])(_0xcb13b[_0x488b44(0x518)],null)||_0xcb13b[_0x488b44(0x518)];return{..._0xcb13b,'mutations':_0x526354};});this[_0x121b25(0x3e1)](),this[_0x121b25(0x2ec)](this['_state']['onMissedChangesetFetched'](_0x8f89d6)),this[_0x121b25(0x250)]();}[_0x107bfd(0x496)](){const _0x70617f=_0x107bfd;this['_lockTransition'](),this[_0x70617f(0x2ec)](this[_0x70617f(0x42d)][_0x70617f(0x56d)]()),this[_0x70617f(0x250)]();}['_toggleOnline'](_0xafe7bd=!0x1){const _0x4c4b34=_0x107bfd;this[_0x4c4b34(0x3e1)](),this[_0x4c4b34(0x2ec)](this[_0x4c4b34(0x42d)][_0x4c4b34(0x33f)]()),this[_0x4c4b34(0x250)]();const _0x1dad6b=this[_0x4c4b34(0x42d)];_0xafe7bd&&_0x1dad6b instanceof Ee&&(this[_0x4c4b34(0x3e1)](),this[_0x4c4b34(0x2ec)](_0x1dad6b['fetchMiss']()),this[_0x4c4b34(0x250)]());}async[_0x107bfd(0x1f3)](){return new Promise(_0x417cf6=>{const _0x48764d=_0x1556;this[_0x48764d(0x28d)][_0x48764d(0x30c)][_0x48764d(0x321)](_0x591140(0x1))[_0x48764d(0x4c6)](async _0x4b6c5d=>{_0x417cf6(await this['_createInitialStateImpl'](_0x4b6c5d===X['ONLINE']));});});}[_0x107bfd(0x216)](){const _0x9f3492=_0x107bfd,_0x1f6f5a=this[_0x9f3492(0x4e1)];return{'onStateChange':(_0x32e8ad,_0x1db7c4)=>{const _0x81f68b=_0x9f3492;if(_0x32e8ad!==this[_0x81f68b(0x42d)])throw new Error(_0x81f68b(0x559)+_0x32e8ad[_0x81f68b(0x556)]+_0x81f68b(0x45d)+_0x1db7c4[_0x81f68b(0x556)]+_0x81f68b(0x235)+this[_0x81f68b(0x42d)][_0x81f68b(0x556)]);this[_0x81f68b(0x2ec)](_0x1db7c4);},'onSendChangeset':_0x4ae386=>{const _0x9e8ecd=_0x9f3492;_0x4ae386['sid']||(_0x4ae386['sid']=this['_changesetSessionId'],_0x4ae386['reqId']=++this['_changesetReqId']);const _0x17e9f2={'eventID':_0x5898c5[_0x9e8ecd(0x320)],'data':{'unitID':_0x4ae386['unitID'],'unitType':this['_type'],'changeset':_0x4ae386,'memberID':this[_0x9e8ecd(0x28d)]['getMemberID']()}};this[_0x9e8ecd(0x28d)][_0x9e8ecd(0x20e)](_0x17e9f2,this['unitID']);},'onMissingChangesets':({from:_0x6a84de,to:_0x30ca7b})=>{const _0x39e2b1=_0x9f3492;this[_0x39e2b1(0x3f1)]['debug'](_0x39e2b1(0x3e6),_0x39e2b1(0x44f)+_0x6a84de+'\x20to\x20'+_0x30ca7b);const _0x22d377={'eventID':_0x5898c5[_0x39e2b1(0x2fd)],'data':{'unitID':_0x1f6f5a,'unitType':this['_type'],'from':_0x6a84de,'to':_0x30ca7b}};this[_0x39e2b1(0x28d)]['send'](_0x22d377,this['unitID']);}};}async[_0x107bfd(0x4fd)](_0x26df27){const _0x4d024d=_0x107bfd;var _0x4fea31,_0x1eae25;const _0x28a50a=await this[_0x4d024d(0x47f)][_0x4d024d(0x262)](this[_0x4d024d(0x4e1)]),_0x17448b=(_0x4fea31=_0x28a50a==null?void 0x0:_0x28a50a[_0x4d024d(0x518)])!=null?_0x4fea31:[],_0x297051=(_0x1eae25=_0x28a50a==null?void 0x0:_0x28a50a[_0x4d024d(0x4da)])!=null?_0x1eae25:null,_0x3d080a=!!(_0x297051!=null&&_0x297051['sid'])&&!!(_0x297051!=null&&_0x297051[_0x4d024d(0x417)]);this[_0x4d024d(0x1f6)]=_0x3d080a?_0x297051['sid']:or(),this[_0x4d024d(0x21b)]=_0x3d080a?_0x297051[_0x4d024d(0x417)]:0x0;const _0x4ff803=this[_0x4d024d(0x4e1)];try{this[_0x4d024d(0x3ce)](_0x297051,_0x17448b);}catch(_0x57f7ff){this[_0x4d024d(0x3f1)][_0x4d024d(0x332)](_0x57f7ff);}const _0xad6892=this['_createHandler']();if(_0x26df27){const _0x33456c=Xs(this[_0x4d024d(0x2f8)],_0x4ff803,this['_type'],_0x297051,_0x17448b,_0xad6892);return _0x33456c instanceof J?_0x33456c[_0x4d024d(0x261)]():(_0x33456c instanceof z||_0x33456c instanceof te)&&_0x33456c[_0x4d024d(0x42a)](),_0x33456c;}return this['_injector'][_0x4d024d(0x223)](ie,_0x4ff803,this[_0x4d024d(0x414)],_0x297051,_0x17448b,_0xad6892);}[_0x107bfd(0x3ce)](_0x3673d2,_0x44d2db){const _0x566810=_0x107bfd;var _0x467d07,_0x19e7ea;const _0x40d37e=this[_0x566810(0x44d)][_0x566810(0x3bd)][_0x566810(0x469)](this[_0x566810(0x44d)]['interceptor'][_0x566810(0x2e3)]()[_0x566810(0x4dc)]);(_0x467d07=_0x40d37e((_0x3673d2==null?void 0x0:_0x3673d2[_0x566810(0x518)])||[],null))==null||_0x467d07[_0x566810(0x51c)](_0x4f28ab=>this['_commandService'][_0x566810(0x21a)](_0x4f28ab['id'],_0x4f28ab[_0x566810(0x208)])),(_0x19e7ea=_0x40d37e(_0x44d2db||[],null))==null||_0x19e7ea[_0x566810(0x51c)](_0x27cddd=>this[_0x566810(0x51d)][_0x566810(0x21a)](_0x27cddd['id'],_0x27cddd[_0x566810(0x208)]));}};ze=Gt([p(0x3,_0x22b1d4(_0x12b4cf)),p(0x4,_0x22b1d4(D)),p(0x5,_0x22b1d4(_0x1400f2)),p(0x6,_0x22b1d4(_0x18c55e)),p(0x7,_0x22b1d4(_0x113ba1)),p(0x8,_0x42be42),p(0x9,_0x156a6a),p(0xa,_0x1f96df),p(0xb,_0x4add88),p(0xc,_0x49e124(it))],ze);let Rt=class extends ze{constructor(_0x59f9f2,_0xefb43a,_0x2cef45,_0x5ddd6f,_0x54be71,_0x1645ac,_0xa93f86,_0x4f2e9c,_0x9e7b66,_0x749fdc,_0x1ecf52,_0x115643,_0xe9e25d,_0x39deff,_0x56ac0d,_0x5557bf,_0x339e9e){const _0x4307ee=_0x107bfd;super(_0x59f9f2,_0x2cef45,_0xefb43a,_0x5ddd6f,_0x54be71,_0x1645ac,_0xa93f86,_0x4f2e9c,_0xe9e25d,_0x39deff,_0x56ac0d,_0x5557bf,_0x339e9e),this[_0x4307ee(0x4e1)]=_0x59f9f2,this[_0x4307ee(0x4de)]=_0xefb43a,this[_0x4307ee(0x4bf)]=_0x9e7b66,this[_0x4307ee(0x2ff)]=_0x749fdc,this[_0x4307ee(0x446)]=_0x1ecf52,this[_0x4307ee(0x326)]=_0x115643;}[_0x107bfd(0x216)](){const _0x5578ba=_0x107bfd,_0x5e2ab4=super[_0x5578ba(0x216)]();return _0x5e2ab4[_0x5578ba(0x2b7)]=_0x310e5c=>this['_docTransformIMECacheService'][_0x5578ba(0x524)](_0x310e5c),_0x5e2ab4['onTransformSelections']=_0xcde0f0=>this['_docTransformSelectionsService'][_0x5578ba(0x3a4)](_0xcde0f0),_0x5e2ab4['onSyncEditingCollabCursor']=_0x5f0ddc=>this[_0x5578ba(0x326)][_0x5578ba(0x26c)](_0x5f0ddc),_0x5e2ab4['onTransformRemoteChangesetByIMECache']=_0x477b74=>this['_docTransformIMECacheService']['transformRemoteChangeset'](_0x477b74),_0x5e2ab4;}async[_0x107bfd(0x3c7)](){const _0x783ef0=_0x107bfd,_0x4ead11=await super['_init']();return this[_0x783ef0(0x4bf)][_0x783ef0(0x4fa)][_0x783ef0(0x321)](_0x31a17e(this['dispose$']))[_0x783ef0(0x4c6)](_0x4840cc=>{const _0x4b10fa=_0x783ef0;if(_0x4840cc==null)return;const {unitId:_0x309eb7,redoState:_0x9c6c11,commandId:_0x39c69b}=_0x4840cc;if(_0x309eb7!==this[_0x4b10fa(0x4e1)])return;const _0x52eb9d={'id':_0x39c69b,'type':_0x56c6fd[_0x4b10fa(0x46b)],'params':{'unitId':_0x309eb7,'actions':_0x9c6c11[_0x4b10fa(0x313)],'textRanges':null}};this[_0x4b10fa(0x335)](_0x52eb9d);}),_0x4ead11;}};Rt=Gt([p(0x3,_0x22b1d4(_0x12b4cf)),p(0x4,_0x22b1d4(D)),p(0x5,_0x22b1d4(_0x1400f2)),p(0x6,_0x22b1d4(_0x18c55e)),p(0x7,_0x22b1d4(_0x113ba1)),p(0x8,_0x22b1d4(_0x2f8703)),p(0x9,_0x22b1d4(Xe)),p(0xa,_0x22b1d4(Je)),p(0xb,_0x22b1d4(Wt)),p(0xc,_0x42be42),p(0xd,_0x156a6a),p(0xe,_0x1f96df),p(0xf,_0x4add88),p(0x10,_0x49e124(it))],Rt);let Ot=class extends ze{constructor(_0x13f3ff,_0x340784,_0x4b2fc0,_0x5da51f,_0x490735,_0x29b6aa,_0x5ae4a5,_0x36afa8,_0x17205c,_0x5c6e65,_0x33c9d9,_0x12479f,_0x5e18d5,_0x188da1){const _0x3633cb=_0x107bfd;super(_0x13f3ff,_0x4b2fc0,_0x340784,_0x5da51f,_0x490735,_0x29b6aa,_0x5ae4a5,_0x36afa8,_0x5c6e65,_0x33c9d9,_0x12479f,_0x5e18d5,_0x188da1),this['unitID']=_0x13f3ff,this[_0x3633cb(0x4de)]=_0x340784,this[_0x3633cb(0x243)]=_0x17205c;}[_0x107bfd(0x216)](){const _0x28928a=_0x107bfd,_0x58f7a2=super['_createHandler']();return _0x58f7a2[_0x28928a(0x393)]=_0x17b192=>this[_0x28928a(0x243)][_0x28928a(0x3a4)](_0x17b192),_0x58f7a2;}async[_0x107bfd(0x3c7)](){const _0x585cd2=_0x107bfd,_0x3335ba=await super[_0x585cd2(0x3c7)]();return this[_0x585cd2(0x2b2)](this[_0x585cd2(0x51d)]['onCommandExecuted']((_0x45b384,_0x8aac8e)=>{const _0x49bad4=_0x585cd2;if(_0x45b384['type']!==_0x56c6fd[_0x49bad4(0x46b)]||_0x8aac8e!=null&&_0x8aac8e['fromCollab']||_0x8aac8e!=null&&_0x8aac8e[_0x49bad4(0x346)])return;const _0x89e898=_0x45b384[_0x49bad4(0x208)];if((_0x89e898==null?void 0x0:_0x89e898[_0x49bad4(0x334)])!==this['unitID'])return;const _0x18e9a9=_0x45b384,_0x44e52a=this[_0x49bad4(0x44d)][_0x49bad4(0x3bd)][_0x49bad4(0x469)](this[_0x49bad4(0x44d)]['interceptor']['getInterceptPoints']()['COMPRESS_MUTATION_SEND'])([_0x18e9a9],null)||[_0x18e9a9];this[_0x49bad4(0x335)](_0x44e52a[0x0]);})),_0x3335ba;}};Ot=Gt([p(0x3,_0x22b1d4(_0x12b4cf)),p(0x4,_0x22b1d4(D)),p(0x5,_0x22b1d4(_0x1400f2)),p(0x6,_0x22b1d4(_0x18c55e)),p(0x7,_0x22b1d4(_0x113ba1)),p(0x8,_0x22b1d4(qe)),p(0x9,_0x42be42),p(0xa,_0x156a6a),p(0xb,_0x1f96df),p(0xc,_0x4add88),p(0xd,_0x49e124(it))],Ot);var Pr=Object['defineProperty'],yr=Object[_0x107bfd(0x22d)],Ur=(_0x1ed8c1,_0x43f04e,_0x1ec988,_0x2e1a39)=>{const _0x5334ec=_0x107bfd;for(var _0xbf675a=_0x2e1a39>0x1?void 0x0:_0x2e1a39?yr(_0x43f04e,_0x1ec988):_0x43f04e,_0x50b5a2=_0x1ed8c1[_0x5334ec(0x38d)]-0x1,_0x1530fb;_0x50b5a2>=0x0;_0x50b5a2--)(_0x1530fb=_0x1ed8c1[_0x50b5a2])&&(_0xbf675a=(_0x2e1a39?_0x1530fb(_0x43f04e,_0x1ec988,_0xbf675a):_0x1530fb(_0xbf675a))||_0xbf675a);return _0x2e1a39&&_0xbf675a&&Pr(_0x43f04e,_0x1ec988,_0xbf675a),_0xbf675a;},ut=(_0x3ee107,_0x22f5d9)=>(_0x3fbfeb,_0x1be8d1)=>_0x22f5d9(_0x3fbfeb,_0x1be8d1,_0x3ee107);let $e=class extends _0x4fe933{constructor(_0x247408,_0x1535a5,_0x419f78){const _0x1e4190=_0x107bfd;super(),l(this,_0x1e4190(0x236),new Map()),l(this,_0x1e4190(0x4a3),new _0x5986f4()),(this['_injector']=_0x247408,this[_0x1e4190(0x3f0)]=_0x1535a5,this[_0x1e4190(0x32d)]=_0x419f78,this['_init']());}[_0x107bfd(0x411)](){const _0x621bfa=_0x107bfd;super[_0x621bfa(0x411)](),this[_0x621bfa(0x236)]['forEach'](_0x3c86ca=>_0x3c86ca['dispose']()),this[_0x621bfa(0x236)]['clear']();}[_0x107bfd(0x47a)](_0xfdbb39){const _0x3237ae=_0x107bfd;var _0x2d6fae;return(_0x2d6fae=this['_entities'][_0x3237ae(0x22f)](_0xfdbb39))!=null?_0x2d6fae:null;}['getCollabEntity$'](_0x2c0014){const _0x4367dd=this['getCollabEntity'](_0x2c0014);return _0x4367dd?_0x19fb74(_0x4367dd):this['_entityInit$']['pipe'](_0x4cadab(_0x46ae89=>_0x46ae89['unitID']===_0x2c0014));}[_0x107bfd(0x3c7)](){const _0x386150=_0x107bfd;this[_0x386150(0x32d)][_0x386150(0x23b)](_0xdaf2b4[_0x386150(0x547)])['pipe'](_0x31a17e(this[_0x386150(0x373)]),_0x312f2(0x10))[_0x386150(0x4c6)](async _0x1d505d=>{const _0x3aa1b8=_0x386150,_0x2b0752=_0x1d505d['getUnitId'](),_0xc5452a=await this[_0x3aa1b8(0x2f9)](_0x2b0752,B[_0x3aa1b8(0x547)]);this[_0x3aa1b8(0x236)][_0x3aa1b8(0x4b9)](_0x2b0752,_0xc5452a);}),this[_0x386150(0x32d)]['getTypeOfUnitAdded$'](_0xdaf2b4[_0x386150(0x344)])['pipe'](_0x31a17e(this[_0x386150(0x373)]),_0x312f2(0x10))[_0x386150(0x321)](_0x4cadab(_0x18d0c8=>!_0x18d0c8[_0x386150(0x2bf)]()[_0x386150(0x3c6)]('__')))[_0x386150(0x4c6)](async _0x3a63c0=>{const _0x3dfbd4=_0x386150,_0x41267=_0x3a63c0[_0x3dfbd4(0x2bf)](),_0x403b8d=await this['_startCollaboration'](_0x41267,B[_0x3dfbd4(0x344)]);this['_entities'][_0x3dfbd4(0x4b9)](_0x41267,_0x403b8d);}),_0x577738(this['_univerInstanceService'][_0x386150(0x487)](_0xdaf2b4['UNIVER_SHEET']),this[_0x386150(0x32d)][_0x386150(0x487)](_0xdaf2b4[_0x386150(0x344)]))[_0x386150(0x321)](_0x31a17e(this['dispose$']))[_0x386150(0x4c6)](_0x2504a5=>{const _0x3f2faf=_0x386150,_0x129a5f=_0x2504a5['getUnitId'](),_0x5d5a6f=this[_0x3f2faf(0x236)][_0x3f2faf(0x22f)](_0x129a5f);_0x5d5a6f&&(_0x5d5a6f[_0x3f2faf(0x411)](),this[_0x3f2faf(0x236)][_0x3f2faf(0x222)](_0x129a5f));});}async['_startCollaboration'](_0x1ab373,_0x36d106){const _0xe836b3=_0x107bfd,_0x29cf77=await this['_collabSessionService'][_0xe836b3(0x31f)](_0x1ab373),_0x3928ca=this[_0xe836b3(0x2f8)][_0xe836b3(0x223)](this[_0xe836b3(0x550)](_0x36d106),_0x1ab373,_0x36d106,_0x29cf77);return await _0x3928ca[_0xe836b3(0x461)](),this[_0xe836b3(0x4a3)][_0xe836b3(0x520)](_0x3928ca),_0x3928ca;}[_0x107bfd(0x550)](_0x4c5f72){const _0x2144f9=_0x107bfd;switch(_0x4c5f72){case B[_0x2144f9(0x344)]:return Rt;case B[_0x2144f9(0x547)]:return Ot;default:throw new Error(_0x2144f9(0x537)+_0x4c5f72);}}};$e=Ur([ut(0x0,_0x22b1d4(_0x12b4cf)),ut(0x1,_0x22b1d4(ue)),ut(0x2,_0x4bc21f)],$e);const fs=['purple300','jiqing500',_0x107bfd(0x2f3),_0x107bfd(0x26b),'blue400','gold400'];class Yt extends _0x502c5a{constructor(){const _0x50ed17=_0x107bfd;super(...arguments),l(this,'_assignedColors',new Map()),l(this,_0x50ed17(0x39f),0x0);}[_0x107bfd(0x566)](_0x558f2c){const _0xfccd73=_0x107bfd;if(this[_0xfccd73(0x445)][_0xfccd73(0x1fa)](_0x558f2c))return this[_0xfccd73(0x445)][_0xfccd73(0x22f)](_0x558f2c);const _0x4b46af=fs[this[_0xfccd73(0x39f)]];return this[_0xfccd73(0x39f)]=(this[_0xfccd73(0x39f)]+0x1)%fs[_0xfccd73(0x38d)],this[_0xfccd73(0x445)][_0xfccd73(0x4b9)](_0x558f2c,_0x4b46af),_0x4b46af;}}var Nr=Object[_0x107bfd(0x1ea)],Ar=Object[_0x107bfd(0x22d)],Mr=(_0x6c413f,_0x5554e8,_0x397a4a,_0x1e9dbe)=>{const _0x4a11ad=_0x107bfd;for(var _0x2e3645=_0x1e9dbe>0x1?void 0x0:_0x1e9dbe?Ar(_0x5554e8,_0x397a4a):_0x5554e8,_0x4a4dc9=_0x6c413f[_0x4a11ad(0x38d)]-0x1,_0x5c62fc;_0x4a4dc9>=0x0;_0x4a4dc9--)(_0x5c62fc=_0x6c413f[_0x4a4dc9])&&(_0x2e3645=(_0x1e9dbe?_0x5c62fc(_0x5554e8,_0x397a4a,_0x2e3645):_0x5c62fc(_0x2e3645))||_0x2e3645);return _0x1e9dbe&&_0x2e3645&&Nr(_0x5554e8,_0x397a4a,_0x2e3645),_0x2e3645;},oe=(_0x54a965,_0x3cb9b5)=>(_0x4c640f,_0x282f63)=>_0x3cb9b5(_0x4c640f,_0x282f63,_0x54a965);const Lr=0x12c,$r=0x64;let Dt=class extends _0x4fe933{constructor(_0x551c5d,_0x5b1083,_0x47e9d1,_0x199de9,_0x3da3f5,_0x232682,_0xf2dfb3,_0x3159c4,_0x1f24dd){const _0xbb89ea=_0x107bfd;super(),l(this,_0xbb89ea(0x3f6),!0x1),l(this,_0xbb89ea(0x3c7),!0x1),l(this,_0xbb89ea(0x303),new _0x435a5b(new Map())),l(this,'cursorInfo$',this['_cursorInfo$'][_0xbb89ea(0x491)]()),l(this,_0xbb89ea(0x327),new _0x435a5b([])),l(this,_0xbb89ea(0x252),this[_0xbb89ea(0x327)][_0xbb89ea(0x321)](_0xcd4c82(Lr))),l(this,_0xbb89ea(0x531),_0x196b8a(_0x3beab9=>{const _0x1e1030=_0xbb89ea,_0x332c05={'eventID':_0x5898c5[_0x1e1030(0x201)],'data':{'unitID':this[_0x1e1030(0x4e1)],'memberID':this[_0x1e1030(0x215)][_0x1e1030(0x293)](),'selection':Gs(_0x3beab9)}};this['_session'][_0x1e1030(0x20e)](_0x332c05,this[_0x1e1030(0x4e1)]);},$r)),(this[_0xbb89ea(0x4e1)]=_0x551c5d,this['_session']=_0x5b1083,this[_0xbb89ea(0x2f8)]=_0x47e9d1,this[_0xbb89ea(0x2db)]=_0x199de9,this['_memberService']=_0x3da3f5,this['_syncEditingCollabCursorService']=_0x232682,this['_transformService']=_0xf2dfb3,this[_0xbb89ea(0x32d)]=_0x3159c4,this[_0xbb89ea(0x51d)]=_0x1f24dd);}get['cursorInfo'](){const _0x40d49e=_0x107bfd;return this['_cursorInfo$'][_0x40d49e(0x4b4)]();}get['roomMembers'](){const _0x31b51e=_0x107bfd;return this[_0x31b51e(0x327)][_0x31b51e(0x4b4)]();}[_0x107bfd(0x411)](){const _0x39b764=_0x107bfd;super['dispose'](),this[_0x39b764(0x303)]['next'](new Map()),this['_cursorInfo$'][_0x39b764(0x41a)](),this[_0x39b764(0x327)][_0x39b764(0x520)]([]),this[_0x39b764(0x327)][_0x39b764(0x41a)]();}['init'](){const _0x322969=_0x107bfd;this[_0x322969(0x3c7)]||(this[_0x322969(0x3c7)]=!0x0,this[_0x322969(0x215)][_0x322969(0x30c)][_0x322969(0x321)](_0x31a17e(this[_0x322969(0x373)]))[_0x322969(0x4c6)](_0x1f1a5f=>{const _0x242297=_0x322969;_0x1f1a5f===X[_0x242297(0x359)]?this['_toggleOnline']():this[_0x242297(0x496)]();}),this[_0x322969(0x215)][_0x322969(0x319)]['pipe'](_0x31a17e(this[_0x322969(0x373)]))[_0x322969(0x4c6)](_0x5c456b=>{const _0x25e8f3=_0x322969,_0x2e5fd5=_0x5c456b[_0x25e8f3(0x410)];_0x2e5fd5===_0x5898c5[_0x25e8f3(0x201)]&&this[_0x25e8f3(0x497)](_0x5c456b),_0x2e5fd5===_0x5898c5[_0x25e8f3(0x2c0)]&&this[_0x25e8f3(0x20f)](_0x5c456b);}),this[_0x322969(0x2b2)](this[_0x322969(0x51d)]['onCommandExecuted'](_0x24497c=>{const _0xbf12d1=_0x322969,_0x5227e2=_0x24497c[_0xbf12d1(0x208)];_0x5227e2!=null&&this[_0xbf12d1(0x3f6)]&&_0x24497c['id']===_0x351bea['id']&&_0x5227e2['unitId']===this[_0xbf12d1(0x4e1)]&&_0x5227e2[_0xbf12d1(0x377)]===!0x1&&_0x5227e2['ranges']['length']>0x0&&this[_0xbf12d1(0x531)](_0x5227e2[_0xbf12d1(0x249)]);})),this[_0x322969(0x432)]['collabCursorState$'][_0x322969(0x321)](_0x31a17e(this[_0x322969(0x373)]))[_0x322969(0x4c6)](_0x10f24c=>{const _0x51070f=_0x322969;if((_0x10f24c==null?void 0x0:_0x10f24c['unitID'])!==this[_0x51070f(0x4e1)])return;const _0x4fa40a={'eventID':_0x5898c5[_0x51070f(0x201)],'data':_0x10f24c};this[_0x51070f(0x497)](_0x4fa40a);}),this[_0x322969(0x2b2)](this[_0x322969(0x51d)][_0x322969(0x202)](_0x290aa4=>{const _0x3082af=_0x322969;if(_0x290aa4[_0x3082af(0x208)]==null)return;const _0x2c94a5=_0x290aa4[_0x3082af(0x208)];if(_0x290aa4['id']!==_0x2c1358['id']||_0x2c94a5[_0x3082af(0x334)]!==this[_0x3082af(0x4e1)])return;const _0x1b6fb9={'id':_0x3082af(0x551),'params':_0x2c94a5},_0x35d098=this['cursorInfo'];for(const [_0x336b99,_0xf401e]of _0x35d098){const _0x100e35={'id':_0x3082af(0x551),'params':{'unitId':this[_0x3082af(0x4e1)],'actions':null,'textRanges':_0xf401e[_0x3082af(0x249)]}},_0x20dff7=this[_0x3082af(0x294)][_0x3082af(0x35c)](_0x1b6fb9,_0x100e35,!0x1);if(_0x22a7fc(_0x20dff7))throw _0x20dff7[_0x3082af(0x332)];_0x35d098[_0x3082af(0x4b9)](_0x336b99,{..._0xf401e,'ranges':_0x20dff7[_0x3082af(0x3cc)][_0x3082af(0x208)]['textRanges']});}queueMicrotask(()=>{const _0x2f30bc=_0x3082af;this[_0x2f30bc(0x303)][_0x2f30bc(0x520)](_0x35d098);});})));}['_onCursorUpdate'](_0x59b180){const _0x339aca=_0x107bfd;var _0x2fd9d3,_0x3a5afb;const {memberID:_0x26f940,selection:_0x48629b}=_0x59b180[_0x339aca(0x431)],_0x33e75=pr(_0x48629b),_0x368e0f=(_0x3a5afb=(_0x2fd9d3=this[_0x339aca(0x204)][_0x339aca(0x3b8)](this[_0x339aca(0x4e1)],_0x26f940))==null?void 0x0:_0x2fd9d3[_0x339aca(0x511)])!=null?_0x3a5afb:_0x339aca(0x558),_0x12717d={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x26f940),'name':_0x368e0f,'ranges':_0x33e75},_0x33db89=this[_0x339aca(0x45f)];_0x33db89[_0x339aca(0x4b9)](_0x26f940,_0x12717d),this[_0x339aca(0x303)][_0x339aca(0x520)](_0x33db89);}[_0x107bfd(0x20f)](_0x27864c){const _0x92cac6=_0x107bfd,{memberID:_0xe0183e}=_0x27864c[_0x92cac6(0x431)],_0x36b3d9=this[_0x92cac6(0x45f)];_0x36b3d9[_0x92cac6(0x222)](_0xe0183e),this[_0x92cac6(0x303)][_0x92cac6(0x520)](_0x36b3d9);}['_toggleOnline'](){const _0x3642a8=_0x107bfd;var _0x8b20eb;if(this['_online']=!0x0,((_0x8b20eb=this[_0x3642a8(0x32d)][_0x3642a8(0x274)]())==null?void 0x0:_0x8b20eb['getUnitId']())!==this[_0x3642a8(0x4e1)])return;const _0x424b9c=this[_0x3642a8(0x2f8)][_0x3642a8(0x22f)](_0x565ad3)[_0x3642a8(0x388)]();Array['isArray'](_0x424b9c)&&_0x424b9c[_0x3642a8(0x38d)]>0x0&&this[_0x3642a8(0x531)](_0x424b9c);}[_0x107bfd(0x496)](){const _0x636693=_0x107bfd;this[_0x636693(0x3f6)]=!0x1;}};Dt=Mr([oe(0x2,_0x22b1d4(_0x12b4cf)),oe(0x3,_0x22b1d4(Yt)),oe(0x4,_0x22b1d4(_e)),oe(0x5,_0x22b1d4(Wt)),oe(0x6,_0x3a5354),oe(0x7,_0x4bc21f),oe(0x8,_0x156a6a)],Dt);var jr=Object['defineProperty'],Hr=Object[_0x107bfd(0x22d)],xr=(_0x4b33a4,_0x4fe9d2,_0x9a8b4f,_0x17ac87)=>{for(var _0x11350b=_0x17ac87>0x1?void 0x0:_0x17ac87?Hr(_0x4fe9d2,_0x9a8b4f):_0x4fe9d2,_0x2c5fd4=_0x4b33a4['length']-0x1,_0x1b2213;_0x2c5fd4>=0x0;_0x2c5fd4--)(_0x1b2213=_0x4b33a4[_0x2c5fd4])&&(_0x11350b=(_0x17ac87?_0x1b2213(_0x4fe9d2,_0x9a8b4f,_0x11350b):_0x1b2213(_0x11350b))||_0x11350b);return _0x17ac87&&_0x11350b&&jr(_0x4fe9d2,_0x9a8b4f,_0x11350b),_0x11350b;},pe=(_0x14a394,_0x4bd24c)=>(_0x48ccfc,_0x412632)=>_0x4bd24c(_0x48ccfc,_0x412632,_0x14a394);const kr=0x12c,Br=0x64,Vr=()=>{let _0x701801=[],_0x105026=!0x1;return _0x5e158d=>{_0x701801['push'](_0x5e158d),_0x105026||(_0x105026=!0x0,setTimeout(()=>{const _0x533180=_0x1556;_0x701801[_0x533180(0x51c)](_0x3082b6=>_0x3082b6()),_0x701801=[],_0x105026=!0x1;}));};};let wt=class extends _0x4fe933{constructor(_0x2ea36e,_0x938362,_0x3c9da8,_0x48ae8e,_0x55570d,_0x234c15,_0x2dc957,_0x18f327){const _0x3ce69f=_0x107bfd;super(),l(this,'_online',!0x1),l(this,_0x3ce69f(0x3c7),!0x1),l(this,_0x3ce69f(0x303),new _0x435a5b(new Map())),l(this,_0x3ce69f(0x2ca),this['_cursorInfo$'][_0x3ce69f(0x491)]()),l(this,_0x3ce69f(0x327),new _0x435a5b([])),l(this,_0x3ce69f(0x252),this[_0x3ce69f(0x327)][_0x3ce69f(0x321)](_0xcd4c82(kr))),l(this,'_updateLocalCursor',_0x196b8a((_0x3f7abe,_0x1f6d9d)=>{const _0x10887c=_0x3ce69f,_0x4b4515={'eventID':_0x5898c5[_0x10887c(0x201)],'data':{'unitID':this[_0x10887c(0x4e1)],'memberID':this[_0x10887c(0x215)][_0x10887c(0x293)](),'selection':_0x378949(_0x3f7abe,_0x1f6d9d['range'])}};this[_0x10887c(0x215)][_0x10887c(0x20e)](_0x4b4515,this[_0x10887c(0x4e1)]);},Br)),(this[_0x3ce69f(0x4e1)]=_0x2ea36e,this[_0x3ce69f(0x215)]=_0x938362,this['_injector']=_0x3c9da8,this['_colorAssignService']=_0x48ae8e,this[_0x3ce69f(0x204)]=_0x55570d,this[_0x3ce69f(0x32d)]=_0x234c15,this[_0x3ce69f(0x51d)]=_0x2dc957,this[_0x3ce69f(0x3e0)]=_0x18f327);}get[_0x107bfd(0x45f)](){const _0x26c128=_0x107bfd;return this[_0x26c128(0x303)][_0x26c128(0x4b4)]();}get[_0x107bfd(0x2b4)](){const _0x37dfc1=_0x107bfd;return this['_roomMembers$'][_0x37dfc1(0x4b4)]();}[_0x107bfd(0x411)](){const _0x428aa6=_0x107bfd;super[_0x428aa6(0x411)](),this[_0x428aa6(0x303)][_0x428aa6(0x520)](new Map()),this['_cursorInfo$'][_0x428aa6(0x41a)](),this[_0x428aa6(0x327)][_0x428aa6(0x520)]([]),this[_0x428aa6(0x327)][_0x428aa6(0x41a)]();}[_0x107bfd(0x461)](){const _0x1cd7e5=_0x107bfd;this[_0x1cd7e5(0x3c7)]||(this[_0x1cd7e5(0x3c7)]=!0x0,this[_0x1cd7e5(0x215)]['sessionStatus$'][_0x1cd7e5(0x321)](_0x31a17e(this[_0x1cd7e5(0x373)]))[_0x1cd7e5(0x4c6)](_0x4868d0=>{const _0x1b822c=_0x1cd7e5;_0x4868d0===X[_0x1b822c(0x359)]?this[_0x1b822c(0x219)]():this[_0x1b822c(0x496)]();}),this[_0x1cd7e5(0x215)][_0x1cd7e5(0x319)][_0x1cd7e5(0x321)](_0x31a17e(this[_0x1cd7e5(0x373)]))[_0x1cd7e5(0x4c6)](_0x60e2fc=>{const _0x4c4b1d=_0x1cd7e5,_0x14530d=_0x60e2fc[_0x4c4b1d(0x410)];_0x14530d===_0x5898c5[_0x4c4b1d(0x201)]&&this[_0x4c4b1d(0x497)](_0x60e2fc),_0x14530d===_0x5898c5[_0x4c4b1d(0x2c0)]&&this['_onCursorDelete'](_0x60e2fc);}),this['_onRefRangeChange'](),this[_0x1cd7e5(0x2b2)](this['_commandService'][_0x1cd7e5(0x202)](_0x30d0ba=>{const _0x19d51a=_0x1cd7e5;if(this[_0x19d51a(0x3f6)]&&_0x30d0ba['id']===_0x41da57['id']&&_0x30d0ba[_0x19d51a(0x208)][_0x19d51a(0x334)]===this[_0x19d51a(0x4e1)]){const _0x506ea4=_0x30d0ba[_0x19d51a(0x208)];this[_0x19d51a(0x531)](_0x506ea4[_0x19d51a(0x1ee)],_0x506ea4[_0x19d51a(0x31d)][0x0]);}})));}[_0x107bfd(0x497)](_0x58984f){const _0xaa5f4=_0x107bfd;var _0x328860,_0x2df66b;const {memberID:_0x3f63ac,selection:_0x1516f8}=_0x58984f[_0xaa5f4(0x431)],{sheetName:_0x3e652b,range:_0x457743}=_0x63b99b(_0x1516f8),_0xf3c0c7={'name':(_0x2df66b=(_0x328860=this[_0xaa5f4(0x204)][_0xaa5f4(0x3b8)](this[_0xaa5f4(0x4e1)],_0x3f63ac))==null?void 0x0:_0x328860['name'])!=null?_0x2df66b:'Unknown\x20user','range':this[_0xaa5f4(0x3d2)](_0x3e652b,_0x457743),'sheetID':_0x3e652b,'color':this[_0xaa5f4(0x2db)][_0xaa5f4(0x566)](_0x3f63ac),'selection':_0x1516f8},_0xa52edd=this[_0xaa5f4(0x45f)];_0xa52edd[_0xaa5f4(0x4b9)](_0x3f63ac,_0xf3c0c7),this[_0xaa5f4(0x303)][_0xaa5f4(0x520)](_0xa52edd);}[_0x107bfd(0x20f)](_0x36df44){const _0x18f413=_0x107bfd,{memberID:_0x1ff9b9}=_0x36df44[_0x18f413(0x431)],_0x267f86=this[_0x18f413(0x45f)];_0x267f86[_0x18f413(0x222)](_0x1ff9b9),this[_0x18f413(0x303)][_0x18f413(0x520)](_0x267f86);}[_0x107bfd(0x3d2)](_0x41406b,_0x3e2c68){const _0x15a0cd=_0x107bfd;var _0x50702d,_0x413c57;const _0x31ac51=(_0x413c57=(_0x50702d=this[_0x15a0cd(0x32d)][_0x15a0cd(0x503)](this['unitID']))==null?void 0x0:_0x50702d[_0x15a0cd(0x36c)](_0x41406b))==null?void 0x0:_0x413c57[_0x15a0cd(0x557)]();return(_0x31ac51==null?void 0x0:_0x31ac51['find'](_0x3c02ba=>_0xdcbe31['contains'](_0x3c02ba,_0x3e2c68)))||_0x3e2c68;}['_onRefRangeChange'](){const _0x3b35f6=_0x107bfd,_0x5dd558=new _0x59267d(),_0x4624eb=Vr(),_0x5b0bc0=()=>{const _0x10f8ec=_0x1556;_0x5dd558[_0x10f8ec(0x411)]();const _0xe85f9d=(_0x25823a,_0xb69153,_0x8e141d,_0x28665b)=>{const _0x29313e=_0x10f8ec;let _0x104677=[];switch(_0x25823a['id']){case _0x4456e6[_0x29313e(0x40f)]:{_0x104677=_0x4d3ef4(_0x25823a,_0x28665b);break;}case _0x4456e6[_0x29313e(0x488)]:{_0x104677=_0x113544(_0x25823a,_0x28665b);break;}case _0x4456e6['InsertColCommandId']:{_0x104677=_0x20ccef(_0x25823a,_0x28665b);break;}case _0x4456e6[_0x29313e(0x206)]:{_0x104677=_0x2a0ddd(_0x25823a,_0x28665b);break;}case _0x4456e6[_0x29313e(0x4cf)]:{_0x104677=_0x54777e(_0x25823a,_0x28665b);break;}case _0x4456e6[_0x29313e(0x568)]:{_0x104677=_0x59446e(_0x25823a,_0x28665b);break;}case _0x4456e6[_0x29313e(0x2e2)]:{_0x104677=_0x122734(_0x25823a,_0x28665b);break;}case _0x4456e6['RemoveColCommandId']:{_0x104677=_0x1781cc(_0x25823a,_0x28665b);break;}case _0x4456e6[_0x29313e(0x3db)]:{_0x104677=_0x3f6ad9(_0x25823a,_0x28665b);break;}}const _0x1a7c48=_0x2b9a21(_0x104677,_0x28665b),_0x4c30ba=this[_0x29313e(0x45f)][_0x29313e(0x22f)](_0xb69153);if(_0x4c30ba&&_0x1a7c48){const _0x42dd4b={..._0x4c30ba,'range':_0x1a7c48};this[_0x29313e(0x45f)][_0x29313e(0x4b9)](_0xb69153,_0x42dd4b),_0x4624eb(()=>{const _0x46e5de=_0x29313e,_0x305af3=this['_refRangeService'][_0x46e5de(0x475)](_0x1a7c48,_0xd29cc8=>(_0x305af3[_0x46e5de(0x411)](),_0xe85f9d(_0xd29cc8,_0xb69153,_0x8e141d,_0x1a7c48)));_0x5dd558['add'](_0x305af3);});}return{'redos':[],'undos':[]};};this[_0x10f8ec(0x45f)]['forEach']((_0x31289c,_0x335289)=>{const _0x40c883=_0x10f8ec,{range:_0x5da3a2,sheetID:_0x34119c}=_0x31289c,_0x34160f=this['_refRangeService'][_0x40c883(0x475)](_0x5da3a2,_0x4564d2=>(_0x34160f[_0x40c883(0x411)](),_0xe85f9d(_0x4564d2,_0x335289,_0x34119c,_0x5da3a2)));_0x5dd558[_0x40c883(0x2fc)](_0x34160f);});};this['disposeWithMe'](_0x216991(this[_0x3b35f6(0x303)][_0x3b35f6(0x4c6)](()=>{_0x5b0bc0();})));}[_0x107bfd(0x219)](){const _0x2ddd30=_0x107bfd;var _0x4370fe,_0x11109e;if(this[_0x2ddd30(0x3f6)]=!0x0,((_0x4370fe=this[_0x2ddd30(0x32d)][_0x2ddd30(0x274)]())==null?void 0x0:_0x4370fe[_0x2ddd30(0x2bf)]())!==this['unitID'])return;const _0x57d68f=(_0x11109e=this['_injector'][_0x2ddd30(0x22f)](_0x21d2a5)[_0x2ddd30(0x4fc)]())==null?void 0x0:_0x11109e[0x0],_0x3ffa7d=this[_0x2ddd30(0x32d)][_0x2ddd30(0x3f8)](_0xdaf2b4[_0x2ddd30(0x547)])['getActiveSheet']();_0x57d68f&&_0x3ffa7d&&this[_0x2ddd30(0x531)](_0x3ffa7d[_0x2ddd30(0x515)](),_0x57d68f);}[_0x107bfd(0x496)](){const _0x25402e=_0x107bfd;this[_0x25402e(0x3f6)]=!0x1;}};wt=xr([pe(0x2,_0x22b1d4(_0x12b4cf)),pe(0x3,_0x22b1d4(Yt)),pe(0x4,_0x22b1d4(_e)),pe(0x5,_0x4bc21f),pe(0x6,_0x156a6a),pe(0x7,_0x22b1d4(_0x496d93))],wt);var Fr=Object[_0x107bfd(0x1ea)],Wr=Object[_0x107bfd(0x22d)],Gr=(_0x14cbde,_0xa8fa74,_0x1b4c80,_0x37fafc)=>{const _0xdf7b7a=_0x107bfd;for(var _0x2c66f7=_0x37fafc>0x1?void 0x0:_0x37fafc?Wr(_0xa8fa74,_0x1b4c80):_0xa8fa74,_0x26afea=_0x14cbde[_0xdf7b7a(0x38d)]-0x1,_0xe0108e;_0x26afea>=0x0;_0x26afea--)(_0xe0108e=_0x14cbde[_0x26afea])&&(_0x2c66f7=(_0x37fafc?_0xe0108e(_0xa8fa74,_0x1b4c80,_0x2c66f7):_0xe0108e(_0x2c66f7))||_0x2c66f7);return _0x37fafc&&_0x2c66f7&&Fr(_0xa8fa74,_0x1b4c80,_0x2c66f7),_0x2c66f7;},dt=(_0x312a47,_0x1ddd82)=>(_0x402851,_0x5d456c)=>_0x1ddd82(_0x402851,_0x5d456c,_0x312a47);let Ce=class extends _0x4fe933{constructor(_0x2b30b0,_0x54c513,_0xfe5e36){const _0x49d9ca=_0x107bfd;super(),l(this,'_entities',new Map()),l(this,_0x49d9ca(0x4a3),new _0x5986f4()),(this[_0x49d9ca(0x32d)]=_0x2b30b0,this[_0x49d9ca(0x2f8)]=_0x54c513,this['_collabSessionService']=_0xfe5e36,this['_init']());}[_0x107bfd(0x411)](){const _0x2cdbc3=_0x107bfd;super[_0x2cdbc3(0x411)](),this[_0x2cdbc3(0x4a3)][_0x2cdbc3(0x41a)](),this['_entities'][_0x2cdbc3(0x51c)](_0x105bb1=>_0x105bb1[_0x2cdbc3(0x411)]());}[_0x107bfd(0x4e2)](_0x2301ad){const _0x51695f=_0x107bfd;return this[_0x51695f(0x236)][_0x51695f(0x1fa)](_0x2301ad)?this[_0x51695f(0x236)]['get'](_0x2301ad)[_0x51695f(0x2ca)]:this[_0x51695f(0x4a3)]['pipe'](_0x2535d1(_0x159fa8=>_0x159fa8[_0x51695f(0x4e1)]===_0x2301ad),_0x204b23(_0x171a32=>_0x171a32['cursorInfo$']));}[_0x107bfd(0x3c7)](){const _0x2bf0f9=_0x107bfd;this[_0x2bf0f9(0x32d)]['getTypeOfUnitAdded$'](_0xdaf2b4[_0x2bf0f9(0x547)])['pipe'](_0x31a17e(this[_0x2bf0f9(0x373)]))['subscribe'](async _0x1dbbda=>{const _0x5408a1=_0x2bf0f9,_0x290b26=_0x1dbbda[_0x5408a1(0x2bf)](),_0x1c9e9e=await this[_0x5408a1(0x4cc)](_0x290b26);this[_0x5408a1(0x4a3)][_0x5408a1(0x520)](_0x1c9e9e),this['_entities'][_0x5408a1(0x4b9)](_0x290b26,_0x1c9e9e);}),this['_univerInstanceService'][_0x2bf0f9(0x23b)](_0xdaf2b4['UNIVER_DOC'])['pipe'](_0x31a17e(this[_0x2bf0f9(0x373)]))['pipe'](_0x2535d1(_0x442f59=>!_0x442f59[_0x2bf0f9(0x2bf)]()['startsWith']('__')))[_0x2bf0f9(0x4c6)](async _0x5004f1=>{const _0x4624fe=_0x2bf0f9,_0x317b85=_0x5004f1[_0x4624fe(0x2bf)](),_0x36c4c4=await this[_0x4624fe(0x39c)](_0x317b85);this[_0x4624fe(0x4a3)][_0x4624fe(0x520)](_0x36c4c4),this[_0x4624fe(0x236)][_0x4624fe(0x4b9)](_0x317b85,_0x36c4c4);}),_0x577738(this[_0x2bf0f9(0x32d)][_0x2bf0f9(0x487)](_0xdaf2b4[_0x2bf0f9(0x344)]),this['_univerInstanceService'][_0x2bf0f9(0x487)](_0xdaf2b4[_0x2bf0f9(0x547)]))['pipe'](_0x31a17e(this[_0x2bf0f9(0x373)]))[_0x2bf0f9(0x4c6)](_0x4d9b1c=>{const _0x14cae9=_0x2bf0f9,_0x509af0=_0x4d9b1c[_0x14cae9(0x2bf)](),_0x14c289=this['_entities'][_0x14cae9(0x22f)](_0x509af0);_0x14c289&&(_0x14c289[_0x14cae9(0x411)](),this[_0x14cae9(0x236)][_0x14cae9(0x222)](_0x509af0));});}async[_0x107bfd(0x4cc)](_0x28e417){const _0x4c6e05=_0x107bfd,_0x5590de=await this[_0x4c6e05(0x3f0)]['requireSession'](_0x28e417),_0x5aec9f=this[_0x4c6e05(0x2f8)][_0x4c6e05(0x223)](wt,_0x28e417,_0x5590de);return _0x5aec9f[_0x4c6e05(0x461)](),_0x5aec9f;}async['_startDocCollabCursor'](_0x3c3777){const _0x1ccf49=_0x107bfd,_0x43aba6=await this['_collabSessionService'][_0x1ccf49(0x31f)](_0x3c3777),_0x3a58ec=this[_0x1ccf49(0x2f8)][_0x1ccf49(0x223)](Dt,_0x3c3777,_0x43aba6);return _0x3a58ec['init'](),_0x3a58ec;}};Ce=Gr([dt(0x0,_0x4bc21f),dt(0x1,_0x22b1d4(_0x12b4cf)),dt(0x2,_0x22b1d4(ue))],Ce);const je=0x14,gs=0xc8,mt=0x4,Yr=0x5;function Kr(_0x4ca4a3,_0xe68495){const _0x2df2ee=_0x107bfd;let {radius:_0x637f2b,width:_0x705b1a,height:_0x357849}=_0xe68495;_0x637f2b=_0x637f2b!=null?_0x637f2b:0x0,_0x705b1a=_0x705b1a!=null?_0x705b1a:0x1e,_0x357849=_0x357849!=null?_0x357849:0x1e;let _0x5b0b74=0x0,_0x1509b6=0x0,_0x5486f5=0x0;_0x5b0b74=_0x1509b6=_0x5486f5=Math['min'](_0x637f2b,_0x705b1a/0x2,_0x357849/0x2),_0x4ca4a3[_0x2df2ee(0x371)](),_0x4ca4a3[_0x2df2ee(0x3da)](_0x5b0b74,0x0),_0x4ca4a3[_0x2df2ee(0x430)](_0x705b1a-_0x1509b6,0x0),_0x4ca4a3[_0x2df2ee(0x50e)](_0x705b1a-_0x1509b6,_0x1509b6,_0x1509b6,Math['PI']*0x3/0x2,0x0,!0x1),_0x4ca4a3['lineTo'](_0x705b1a,_0x357849-_0x5486f5),_0x4ca4a3[_0x2df2ee(0x50e)](_0x705b1a-_0x5486f5,_0x357849-_0x5486f5,_0x5486f5,0x0,Math['PI']/0x2,!0x1),_0x4ca4a3['lineTo'](0x0,_0x357849),_0x4ca4a3[_0x2df2ee(0x430)](0x0,_0x5b0b74),_0x4ca4a3[_0x2df2ee(0x50e)](_0x5b0b74,_0x5b0b74,_0x5b0b74,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4ca4a3[_0x2df2ee(0x351)](),_0xe68495[_0x2df2ee(0x4f9)]&&(_0x4ca4a3[_0x2df2ee(0x3c1)](),_0x4ca4a3[_0x2df2ee(0x24a)]=_0xe68495['fill'],_0xe68495[_0x2df2ee(0x407)]===_0x2df2ee(0x210)?_0x4ca4a3[_0x2df2ee(0x4f9)]('evenodd'):_0x4ca4a3[_0x2df2ee(0x4f9)](),_0x4ca4a3[_0x2df2ee(0x2dd)]());}class nt extends _0x38607f{constructor(_0x3ec4dd,_0x3ae6b3){const _0x3d9fcf=_0x107bfd;super(_0x3ec4dd,_0x3ae6b3),l(this,'color'),l(this,_0x3d9fcf(0x51a)),(this['color']=_0x3ae6b3==null?void 0x0:_0x3ae6b3[_0x3d9fcf(0x36a)],this[_0x3d9fcf(0x51a)]=_0x3ae6b3==null?void 0x0:_0x3ae6b3[_0x3d9fcf(0x51a)]);}static[_0x107bfd(0x295)](_0x4c53c4,_0x1f1996){const _0x2ae121=_0x107bfd,{text:_0x12815f,color:_0x4304ea}=_0x1f1996;_0x4c53c4['save'](),_0x4c53c4[_0x2ae121(0x53b)]=_0x2ae121(0x418);const _0x4e83e0=_0x4c53c4[_0x2ae121(0x3b5)](_0x12815f)[_0x2ae121(0x561)],_0x3a9176=Math[_0x2ae121(0x1ec)](_0x4e83e0+0x2*mt,gs);Kr(_0x4c53c4,{'height':je,'radius':0x4,'width':_0x3a9176,'fill':_0x4304ea,'evented':!0x1}),_0x4c53c4[_0x2ae121(0x24a)]=_0x2ae121(0x372);const _0x59a328=mt,_0x299664=je-Yr,_0x3c3df9=gs-0x2*mt;if(_0x4e83e0>_0x3c3df9){let _0x569bf1='',_0x261bbb=0x0;for(const _0x4c18f6 of _0x12815f){const _0x231b34=_0x4c53c4[_0x2ae121(0x3b5)](_0x4c18f6)['width'];if(_0x261bbb+_0x231b34<=_0x3c3df9-_0x4c53c4['measureText'](_0x2ae121(0x554))[_0x2ae121(0x561)])_0x569bf1+=_0x4c18f6,_0x261bbb+=_0x231b34;else{_0x569bf1+=_0x2ae121(0x554);break;}}_0x4c53c4['fillText'](_0x569bf1,_0x59a328,_0x299664);}else _0x4c53c4[_0x2ae121(0x41d)](_0x12815f,_0x59a328,_0x299664);_0x4c53c4['restore']();}[_0x107bfd(0x316)](_0x4b317d){const _0x5676e5=_0x107bfd;nt[_0x5676e5(0x295)](_0x4b317d,this);}}const ft=_0x107bfd(0x427),Xr=_0x107bfd(0x2c6),qr=_0x107bfd(0x367),Pe=0x6,Jr=1.5,gt=0x4,zr=1.5,Zr=_0x107bfd(0x368);class Ss{constructor(_0xcb9c00,_0xaac487,_0x25b274,_0x5530e2){const _0x18d527=_0x107bfd;l(this,_0x18d527(0x25a),[]),l(this,'_anchor',null),l(this,_0x18d527(0x457),null),l(this,_0x18d527(0x298),null),l(this,_0x18d527(0x2b3),null),l(this,_0x18d527(0x4fb),null),(this[_0x18d527(0x3f4)]=_0xcb9c00,this[_0x18d527(0x2b0)]=_0xaac487,this[_0x18d527(0x45a)]=_0x25b274,this[_0x18d527(0x257)]=_0x5530e2,this['_render']());}set['_hover'](_0x2e9693){const _0x37c36c=_0x107bfd;_0x2e9693?(this[_0x37c36c(0x298)]&&this['_anchorDot'][_0x37c36c(0x52c)](),this[_0x37c36c(0x457)]&&this[_0x37c36c(0x457)][_0x37c36c(0x1fd)]()):(this[_0x37c36c(0x298)]&&this[_0x37c36c(0x298)][_0x37c36c(0x1fd)](),this[_0x37c36c(0x457)]&&this[_0x37c36c(0x457)]['hide']());}['dispose'](){const _0x473f7e=_0x107bfd;for(const _0xbd5a53 of this[_0x473f7e(0x25a)])_0xbd5a53[_0x473f7e(0x411)]();this[_0x473f7e(0x457)]&&this['_textBubble'][_0x473f7e(0x411)](),this[_0x473f7e(0x298)]&&this['_anchorDot'][_0x473f7e(0x411)](),this[_0x473f7e(0x454)]&&this[_0x473f7e(0x454)]['dispose'](),this['_eventUnsubscribe']&&this[_0x473f7e(0x4fb)]();}[_0x107bfd(0x460)](){const _0x228551=_0x107bfd;var _0x1e4e10;const {_docSkeleton:_0x3038f9,_document:_0x295229}=this,{color:_0x49ac34,name:_0x406d3c,ranges:_0x386ec4}=this[_0x228551(0x3f4)],_0x1b9ca1=_0x295229['getOffsetConfig'](),{docsLeft:_0x5c787e,docsTop:_0x214086}=_0x1b9ca1,_0x460a26=new _0x2ab654(_0x1b9ca1,_0x3038f9);for(const {startOffset:_0x29f4a0,endOffset:_0x361889,rangeType:_0x9b0443,segmentId:_0x3ef236,segmentPage:_0x588cb7,collapsed:_0x403a96,isActive:_0x27dc48}of _0x386ec4){const _0x36e8d0=_0x3038f9[_0x228551(0x48b)](_0x29f4a0,!0x0,_0x3ef236,_0x588cb7);let _0x1f17d4=_0x3038f9[_0x228551(0x48b)](_0x361889,!0x0,_0x3ef236,_0x588cb7);if(_0x1f17d4==null&&(_0x1f17d4=_0x3038f9[_0x228551(0x48b)](_0x361889-0x1,!0x1,_0x3ef236,_0x588cb7)),_0x27dc48){const {contentBoxPointGroup:_0x377049}=_0x460a26[_0x228551(0x3c3)](_0x1f17d4,_0x1f17d4);if(_0x377049[_0x228551(0x38d)]===0x0)continue;this[_0x228551(0x490)](_0x49ac34,_0x377049,_0x5c787e,_0x214086,_0x406d3c),this[_0x228551(0x4fb)]=this[_0x228551(0x466)]();}if(!_0x403a96&&_0x36e8d0&&_0x1f17d4){if(_0x9b0443===_0x438171[_0x228551(0x44c)]){const _0x29217f=new _0x2d264e(_0x1b9ca1,_0x3038f9),{pointGroup:_0x38db30}=(_0x1e4e10=_0x29217f[_0x228551(0x3c3)](_0x36e8d0,_0x1f17d4))!=null?_0x1e4e10:{};if(_0x38db30==null||_0x38db30['length']===0x0)continue;this['_drawRectRange'](_0x49ac34,_0x38db30,_0x5c787e,_0x214086);}else{const {borderBoxPointGroup:_0x4d9d79}=_0x460a26[_0x228551(0x3c3)](_0x36e8d0,_0x1f17d4);if(_0x4d9d79[_0x228551(0x38d)]===0x0)continue;this[_0x228551(0x54a)](_0x49ac34,_0x4d9d79,_0x5c787e,_0x214086);}}}}[_0x107bfd(0x490)](_0x5f4404,_0x3f69c3,_0x15e8d1,_0x17d71b,_0x460301){const _0x30c986=_0x107bfd,_0x2bb357=this['_getAnchorBounding'](_0x3f69c3),{left:_0x186faf,top:_0x398719,height:_0x49ea80}=_0x2bb357,_0x37e303=this['_getScale'](),_0x47b15a=zr/_0x37e303,_0x3a8466=new _0x42a68d(ft+_0x5065d9[_0x30c986(0x402)](Pe),{'left':_0x186faf+_0x15e8d1-_0x47b15a,'top':_0x398719+_0x17d71b,'height':_0x49ea80,'width':Jr,'fill':_0x5f4404||_0x51b14d(_0x560cfd[_0x30c986(0x270)],0x0),'strokeWidth':_0x47b15a,'stroke':Zr,'evented':!0x0});this[_0x30c986(0x454)]=_0x3a8466,this['_scene'][_0x30c986(0x3a6)](_0x3a8466,_0x2678f2);const _0x4393aa=new _0x42a68d(ft+_0x5065d9[_0x30c986(0x402)](Pe),{'left':_0x186faf+_0x15e8d1-_0x47b15a,'top':_0x398719+_0x17d71b-gt/0x2,'height':gt,'width':gt,'fill':_0x5f4404||_0x51b14d(_0x560cfd[_0x30c986(0x270)],0x0),'strokeWidth':0x0,'stroke':_0x5f4404||_0x51b14d(_0x560cfd[_0x30c986(0x270)],0x0),'evented':!0x1});this[_0x30c986(0x298)]=_0x4393aa,this[_0x30c986(0x2b0)][_0x30c986(0x3a6)](_0x4393aa,_0x2678f2);const _0xe6e875=new nt(ft+_0x5065d9[_0x30c986(0x402)](Pe),{'left':_0x186faf+_0x15e8d1-_0x47b15a,'top':_0x398719+_0x17d71b-je,'text':_0x460301,'color':_0x5f4404});this[_0x30c986(0x457)]=_0xe6e875,this['_scene'][_0x30c986(0x3a6)](_0xe6e875,_0x2678f2),this[_0x30c986(0x2e1)]=!0x1;}[_0x107bfd(0x466)](){const _0x1a6774=_0x107bfd,_0x80d581=this[_0x1a6774(0x454)][_0x1a6774(0x4cd)]['subscribeEvent'](()=>{const _0x16c8dc=_0x1a6774;this[_0x16c8dc(0x2e1)]=!0x0;}),_0x5f5d13=this[_0x1a6774(0x454)][_0x1a6774(0x2c2)][_0x1a6774(0x3b2)](()=>{const _0x4837f7=_0x1a6774;this['_hideTimer']&&clearTimeout(this['_hideTimer']),this[_0x4837f7(0x2b3)]=setTimeout(()=>{const _0x4ec9f1=_0x4837f7;this[_0x4ec9f1(0x2e1)]=!0x1;},0x7d0);});return()=>{const _0xf42b2a=_0x1a6774;_0x80d581[_0xf42b2a(0x28c)](),_0x5f5d13[_0xf42b2a(0x28c)]();};}['_drawTextRange'](_0x467b4f,_0x201cae,_0x6e4fd7,_0x17fe24){const _0x5372bd=_0x107bfd,_0x38c507=new _0x496050(_0x467b4f)[_0x5372bd(0x24d)](0.2)[_0x5372bd(0x2df)](),_0x2b1ab3=new _0x2e146c(Xr+_0x5065d9[_0x5372bd(0x402)](Pe),{'pointsGroup':_0x201cae,'fill':_0x38c507||_0x51b14d(_0x560cfd['black'],0.2),'left':_0x6e4fd7,'top':_0x17fe24,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x5372bd(0x30d)](_0x2b1ab3),this[_0x5372bd(0x2b0)]['addObject'](_0x2b1ab3,_0x2678f2);}[_0x107bfd(0x54b)](_0x2848e4,_0x29dc37,_0x2e4980,_0x3d6926){const _0x2216ae=_0x107bfd,_0x27026b=new _0x496050(_0x2848e4)[_0x2216ae(0x24d)](0.2)['toRgbString'](),_0x3e69f5=new _0x2e146c(qr+_0x5065d9[_0x2216ae(0x402)](Pe),{'pointsGroup':_0x29dc37,'fill':_0x27026b||_0x51b14d(_0x560cfd[_0x2216ae(0x270)],0.2),'left':_0x2e4980,'top':_0x3d6926,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2216ae(0x25a)][_0x2216ae(0x30d)](_0x3e69f5),this[_0x2216ae(0x2b0)]['addObject'](_0x3e69f5,_0x2678f2);}[_0x107bfd(0x3a1)](_0x53a837){const _0x420737=_0x53a837[0x0],_0x3a2526=_0x420737[0x0],_0x3049f2=_0x420737[0x2],{x:_0x581dfa,y:_0x87615c}=_0x3a2526,{x:_0x216959,y:_0x314c73}=_0x3049f2;return{'left':_0x581dfa,'top':_0x87615c,'width':_0x216959-_0x581dfa,'height':_0x314c73-_0x87615c};}[_0x107bfd(0x387)](){const _0x576d32=_0x107bfd,{scaleX:_0x20b203,scaleY:_0xfe1328}=this[_0x576d32(0x2b0)][_0x576d32(0x218)]();return Math[_0x576d32(0x3d0)](_0x20b203,_0xfe1328);}}var Qr=Object[_0x107bfd(0x1ea)],eo=Object[_0x107bfd(0x22d)],to=(_0x569875,_0x2cf165,_0x2795ae,_0x4d7c8c)=>{const _0x463671=_0x107bfd;for(var _0x25bcba=_0x4d7c8c>0x1?void 0x0:_0x4d7c8c?eo(_0x2cf165,_0x2795ae):_0x2cf165,_0x51fd49=_0x569875[_0x463671(0x38d)]-0x1,_0x30a87a;_0x51fd49>=0x0;_0x51fd49--)(_0x30a87a=_0x569875[_0x51fd49])&&(_0x25bcba=(_0x4d7c8c?_0x30a87a(_0x2cf165,_0x2795ae,_0x25bcba):_0x30a87a(_0x25bcba))||_0x25bcba);return _0x4d7c8c&&_0x25bcba&&Qr(_0x2cf165,_0x2795ae,_0x25bcba),_0x25bcba;},Be=(_0x1a6eac,_0x5410a2)=>(_0x41863d,_0x1994e5)=>_0x5410a2(_0x41863d,_0x1994e5,_0x1a6eac);let Pt=class extends _0x4fe933{constructor(_0x117ce7,_0x39612d,_0x3c03d6,_0x1cbb5c,_0x300396){const _0x3d480d=_0x107bfd;super(),l(this,'_cursorShapes',[]),l(this,_0x3d480d(0x479),[]),(this[_0x3d480d(0x23f)]=_0x117ce7,this[_0x3d480d(0x312)]=_0x39612d,this[_0x3d480d(0x4ab)]=_0x3c03d6,this['_commandService']=_0x1cbb5c,this[_0x3d480d(0x2d0)]=_0x300396,this[_0x3d480d(0x3c7)]());}[_0x107bfd(0x3c7)](){const _0x2f755c=_0x107bfd,_0x520247=this['_context'][_0x2f755c(0x334)],_0xde92e9=this[_0x2f755c(0x312)];this[_0x2f755c(0x2b2)](_0x427855([this[_0x2f755c(0x4ab)]['getCollabCursors$'](_0x520247),this[_0x2f755c(0x2d0)][_0x2f755c(0x3ad)]])[_0x2f755c(0x321)](_0xd272ef(([_0x286f30,_0x2443e5])=>({'skeleton':_0xde92e9['getSkeleton'](),'cursors':[..._0x286f30[_0x2f755c(0x2de)]()][_0x2f755c(0x53d)](_0x5cc412=>({..._0x5cc412,'color':_0x2443e5[_0x5cc412[_0x2f755c(0x36a)]]}))})))[_0x2f755c(0x4c6)](_0x273920=>{const _0x43ada7=_0x2f755c;if(this['_removeCollabCursors'](),_0x273920){const {skeleton:_0x52dce0,cursors:_0x464bbc}=_0x273920;this[_0x43ada7(0x297)](_0x52dce0,_0x464bbc);}})),this[_0x2f755c(0x324)](),this[_0x2f755c(0x53a)]();}[_0x107bfd(0x297)](_0x12de81,_0x5b85bb){const _0x41fa23=_0x107bfd,{scene:_0x40b1c1,mainComponent:_0x551e6f}=this[_0x41fa23(0x23f)],_0x266254=_0x5b85bb[_0x41fa23(0x3a7)](_0x20aaf9=>new Ss(_0x20aaf9,_0x40b1c1,_0x12de81,_0x551e6f));this['_cursorShapes']=_0x266254,this[_0x41fa23(0x479)]=_0x5b85bb;}[_0x107bfd(0x2bb)](){const _0x4b2be1=_0x107bfd;this['_removeCollabCursors']();const {scene:_0x369c2a,mainComponent:_0x46166a}=this[_0x4b2be1(0x23f)],_0x57f0d0=this[_0x4b2be1(0x312)][_0x4b2be1(0x2a3)](),_0x2bf9d5=this[_0x4b2be1(0x479)][_0x4b2be1(0x3a7)](_0x8d909b=>new Ss(_0x8d909b,_0x369c2a,_0x57f0d0,_0x46166a));this[_0x4b2be1(0x48f)]=_0x2bf9d5;}['_removeCollabCursors'](){const _0x5787f6=_0x107bfd;this['_cursorShapes']['forEach'](_0x5b7c37=>_0x5b7c37['dispose']()),this[_0x5787f6(0x48f)]=[];}['_initCommandExecutedListener'](){const _0x14f62e=_0x107bfd,_0x874d38=[_0x13525c['id']];this['disposeWithMe'](this[_0x14f62e(0x51d)][_0x14f62e(0x202)](_0x512f9a=>{const _0xd70070=_0x14f62e;_0x874d38[_0xd70070(0x544)](_0x512f9a['id'])&&_0x512f9a[_0xd70070(0x208)][_0xd70070(0x334)]===this['_context'][_0xd70070(0x334)]&&this[_0xd70070(0x2bb)]();}));}[_0x107bfd(0x324)](){const _0x4e6ca9=_0x107bfd;this[_0x4e6ca9(0x2b2)](_0x50e635(this[_0x4e6ca9(0x23f)][_0x4e6ca9(0x347)]['onTransformChange$'])[_0x4e6ca9(0x321)](_0x4cadab(_0x2f0f7f=>_0x2f0f7f[_0x4e6ca9(0x4de)]===_0x1db7f3[_0x4e6ca9(0x3c2)]),_0xcabac3(0x10))['subscribe'](()=>{const _0x1d4c9a=_0x4e6ca9;this[_0x1d4c9a(0x2bb)]();}));}};Pt=to([Be(0x1,_0x22b1d4(_0x6bbc53)),Be(0x2,_0x22b1d4(Ce)),Be(0x3,_0x156a6a),Be(0x4,_0x22b1d4(_0xf5fcf8))],Pt);const so=0x1,io=1.5;class no extends _0x38607f{constructor(_0x4a1278,_0x5d76bf){const _0x2f37ef=_0x107bfd;super(_0x4a1278,_0x5d76bf),l(this,'_color'),l(this,_0x2f37ef(0x509),!0x1),l(this,_0x2f37ef(0x425)),l(this,'_name',''),l(this,_0x2f37ef(0x3dc),_0x2f37ef(0x3f5)),l(this,_0x2f37ef(0x32c)),(_0x5d76bf&&this[_0x2f37ef(0x46c)](_0x5d76bf),this[_0x2f37ef(0x4cd)][_0x2f37ef(0x3b2)](()=>this[_0x2f37ef(0x46c)]({'hovered':!0x0})),this[_0x2f37ef(0x2c2)][_0x2f37ef(0x3b2)](()=>this[_0x2f37ef(0x46c)]({'hovered':!0x1})));}[_0x107bfd(0x46c)](_0x2bd68d){const _0x233a26=_0x107bfd;var _0xea3be2,_0x2b71a8,_0x478ff5,_0x46422c,_0x3f5125,_0x1e4db4;this[_0x233a26(0x4d6)]=(_0xea3be2=_0x2bd68d[_0x233a26(0x36a)])!=null?_0xea3be2:this['_color'],this[_0x233a26(0x509)]=(_0x2b71a8=_0x2bd68d[_0x233a26(0x3fe)])!=null?_0x2b71a8:this['_hovered'],this[_0x233a26(0x425)]=(_0x478ff5=_0x2bd68d[_0x233a26(0x220)])!=null?_0x478ff5:this[_0x233a26(0x425)],this[_0x233a26(0x27e)]=(_0x46422c=_0x2bd68d[_0x233a26(0x511)])!=null?_0x46422c:this['_name'],this['_labelPosition']=(_0x3f5125=_0x2bd68d[_0x233a26(0x266)])!=null?_0x3f5125:this['_labelPosition'],this[_0x233a26(0x32c)]=(_0x1e4db4=_0x2bd68d[_0x233a26(0x2b8)])!=null?_0x1e4db4:this[_0x233a26(0x32c)],this['transformByState']({'width':_0x2bd68d[_0x233a26(0x561)],'height':_0x2bd68d[_0x233a26(0x553)]});}[_0x107bfd(0x423)](_0x49a283){const _0x5c5d72=_0x107bfd,{row:_0x34c319,column:_0x2d05dd}=_0x49a283;if(_0x34c319>=this[_0x5c5d72(0x425)]['startRow']&&_0x34c319<=this[_0x5c5d72(0x425)]['endRow']&&_0x2d05dd>=this[_0x5c5d72(0x425)]['startColumn']&&_0x2d05dd<=this[_0x5c5d72(0x425)][_0x5c5d72(0x271)]){this[_0x5c5d72(0x46c)]({'hovered':!0x0});return;}this[_0x5c5d72(0x46c)]({'hovered':!0x1});}[_0x107bfd(0x49f)](_0x56fd82){return!0x1;}['_draw'](_0x3c78d9){const _0x5494b9=_0x107bfd;_0x42a68d['drawWith'](_0x3c78d9,{'width':this[_0x5494b9(0x561)],'height':this['height'],'strokeWidth':io,'stroke':this[_0x5494b9(0x4d6)],'evented':!0x1,'fill':this[_0x5494b9(0x32c)]}),this[_0x5494b9(0x509)]&&(_0x3c78d9['save'](),_0x3c78d9[_0x5494b9(0x290)](0x1,0x0,0x0,0x1,this[_0x5494b9(0x561)],this[_0x5494b9(0x3dc)]===_0x5494b9(0x29a)?0x0:-je),nt['drawWith'](_0x3c78d9,{'text':this[_0x5494b9(0x27e)],'color':this[_0x5494b9(0x4d6)]}),_0x3c78d9['restore']());}}var ro=Object[_0x107bfd(0x1ea)],oo=Object[_0x107bfd(0x22d)],ao=(_0x4fb44c,_0x13507a,_0x3d5452,_0x113d40)=>{const _0x25d352=_0x107bfd;for(var _0x2b3dfd=_0x113d40>0x1?void 0x0:_0x113d40?oo(_0x13507a,_0x3d5452):_0x13507a,_0x36705d=_0x4fb44c[_0x25d352(0x38d)]-0x1,_0x582d63;_0x36705d>=0x0;_0x36705d--)(_0x582d63=_0x4fb44c[_0x36705d])&&(_0x2b3dfd=(_0x113d40?_0x582d63(_0x13507a,_0x3d5452,_0x2b3dfd):_0x582d63(_0x2b3dfd))||_0x2b3dfd);return _0x113d40&&_0x2b3dfd&&ro(_0x13507a,_0x3d5452,_0x2b3dfd),_0x2b3dfd;},St=(_0x14cc6d,_0x20ed03)=>(_0x1129e1,_0x51a289)=>_0x20ed03(_0x1129e1,_0x51a289,_0x14cc6d);const co=0x1389;let yt=class extends _0x4fe933{constructor(_0xc81574,_0x3e8891,_0x49224c,_0x2af671){const _0x34d900=_0x107bfd;super(),l(this,_0x34d900(0x479),new Set()),l(this,_0x34d900(0x337),null),(this[_0x34d900(0x23f)]=_0xc81574,this[_0x34d900(0x39b)]=_0x3e8891,this[_0x34d900(0x4ab)]=_0x49224c,this[_0x34d900(0x2d0)]=_0x2af671,this[_0x34d900(0x3c7)]());}[_0x107bfd(0x3c7)](){const _0x1c4835=_0x107bfd;this[_0x1c4835(0x39b)][_0x1c4835(0x56a)][_0x1c4835(0x321)](_0x1447e8(this[_0x1c4835(0x373)]),_0x101e32(_0x4c5d10=>{const _0x11b422=_0x1c4835;if(_0x4c5d10){const _0x3197ed=_0x4c5d10['sheetId'];return _0x427855(this[_0x11b422(0x4ab)][_0x11b422(0x4e2)](this[_0x11b422(0x23f)][_0x11b422(0x334)]),this[_0x11b422(0x2d0)][_0x11b422(0x3ad)])[_0x11b422(0x321)](_0xd272ef(([_0x4111aa,_0x314efc])=>{const _0x253a87=_0x11b422,_0x362f5a=new Map();return _0x4111aa[_0x253a87(0x51c)]((_0x164e45,_0x3d8781)=>{const _0xd9c014=_0x253a87;if(_0x164e45['sheetID']===_0x3197ed){const _0x257413={..._0x164e45};_0x257413[_0xd9c014(0x36a)]=_0x314efc[_0x164e45[_0xd9c014(0x36a)]],_0x362f5a['set'](_0x3d8781,_0x257413);}}),{'skeleton':_0x4c5d10,'cursors':_0x362f5a};}));}return _0x19fb74({'skeleton':null,'cursors':new Map()});}))[_0x1c4835(0x4c6)](({skeleton:_0x1a0096,cursors:_0x43503a})=>{const _0x2c5e5c=_0x1c4835;this[_0x2c5e5c(0x534)](),_0x1a0096&&this[_0x2c5e5c(0x297)](_0x1a0096,_0x43503a);}),this[_0x1c4835(0x39b)]['currentSkeleton$'][_0x1c4835(0x4c6)](_0x2ed258=>{const _0x1e246e=_0x1c4835;if(_0x2ed258==null)return;const {skeleton:_0xd81091}=_0x2ed258,{scene:_0x46b8ad}=this[_0x1e246e(0x23f)];_0x46b8ad['onPointerMove$']['subscribeEvent'](_0x196b8a(_0x997162=>{const _0x3ea4fd=_0x1e246e;var _0x3961fe,_0x3cc27e;const {offsetX:_0x36a3b4,offsetY:_0x332297}=_0x997162,{x:_0x4cc341,y:_0x1bb222}=_0x46b8ad['getRelativeToViewportCoord'](_0x1202eb[_0x3ea4fd(0x4d8)]([_0x36a3b4,_0x332297])),{scaleX:_0x59a68f,scaleY:_0x2fe253}=_0x46b8ad[_0x3ea4fd(0x218)](),_0x1a3286=_0x46b8ad['getViewport'](_0x3bd5cb[_0x3ea4fd(0x2a1)]),_0x34eccb=_0x46b8ad['getVpScrollXYInfoByPosToVp'](_0x1202eb[_0x3ea4fd(0x4d8)]([_0x4cc341,_0x1bb222]),_0x1a3286),_0x34445d=_0xd81091[_0x3ea4fd(0x360)](_0x36a3b4,_0x332297,_0x59a68f,_0x2fe253,_0x34eccb);((_0x3961fe=this[_0x3ea4fd(0x337)])==null?void 0x0:_0x3961fe['column'])===_0x34445d['column']&&((_0x3cc27e=this[_0x3ea4fd(0x337)])==null?void 0x0:_0x3cc27e[_0x3ea4fd(0x508)])===_0x34445d[_0x3ea4fd(0x508)]||this['_cursors'][_0x3ea4fd(0x51c)](_0x111f0f=>{const _0x10495a=_0x3ea4fd;_0x111f0f[_0x10495a(0x423)](_0x34445d);});},0x64));});}[_0x107bfd(0x297)](_0x30a536,_0x49b524){const _0x371652=_0x107bfd;var _0x3ea8cf;const _0x3645f1=(_0x3ea8cf=this[_0x371652(0x39b)][_0x371652(0x2a2)]())==null?void 0x0:_0x3ea8cf[_0x371652(0x330)];if(!_0x3645f1)return;const _0x28ce67=this['_getSheetObject']();if(!_0x28ce67)return;this[_0x371652(0x479)][_0x371652(0x51c)](_0x442a94=>{const _0x28db31=_0x371652;_0x442a94[_0x28db31(0x317)]();});const {scene:_0xb94200}=_0x28ce67,_0x2152ad=ho(Array[_0x371652(0x41c)](_0x49b524[_0x371652(0x2de)]()))[_0x371652(0x3a7)](_0x2c2c2b=>{const _0x5c83e1=_0x371652,{color:_0x32742b,range:_0x5cfbc2,name:_0x5ba770,selection:_0x47c812,sheetID:_0x49ee49}=_0x2c2c2b,{startColumn:_0x196023,startRow:_0x4854aa,endColumn:_0x2fc04d,endRow:_0x231588}=_0x5cfbc2,_0xeb4608=_0x4fe78d(_0x4854aa,_0x196023,_0xb94200,_0x3645f1),_0x377e66=_0x4fe78d(_0x231588,_0x2fc04d,_0xb94200,_0x3645f1),{columnHeaderHeightAndMarginTop:_0x4690de}=_0x3645f1,{startX:_0x2515ab,startY:_0x1429d2}=_0xeb4608,{endX:_0x107696,endY:_0xaa1572}=_0x377e66,_0x39df86=_0x107696-_0x2515ab,_0x4ae59e=_0xaa1572-_0x1429d2,_0x54d9cb={'labelPosition':_0x1429d2-_0x4690de>=je?_0x5c83e1(0x3f5):_0x5c83e1(0x29a),'sheetID':_0x49ee49,'range':_0x5cfbc2,'color':_0x32742b,'name':_0x5ba770,'selection':_0x47c812,'left':_0x2515ab,'top':_0x1429d2,'width':_0x39df86,'height':_0x4ae59e,'evented':!0x1,'zIndex':co};return new no(_0x5ba770,_0x54d9cb);});_0xb94200[_0x371652(0x2d8)](_0x2152ad,so),this['_cursors']=new Set(_0x2152ad);}[_0x107bfd(0x534)](){const _0x1e56ac=_0x107bfd;var _0x373c8c;(_0x373c8c=this['_cursors'])==null||_0x373c8c[_0x1e56ac(0x51c)](_0x23bfaa=>_0x23bfaa['dispose']());}[_0x107bfd(0x225)](){const _0x3564ef=_0x107bfd;return _0x254c19(this['_context']['unit'],this[_0x3564ef(0x23f)]);}};yt=ao([St(0x1,_0x22b1d4(_0x2df2d4)),St(0x2,_0x22b1d4(Ce)),St(0x3,_0x22b1d4(_0xf5fcf8))],yt);function ho(_0x14b565){const _0x1ce4a8=_0x107bfd,_0x116e34=new Map();return _0x14b565[_0x1ce4a8(0x51c)](_0x99365=>{const _0x2f749f=_0x1ce4a8;if(_0x116e34[_0x2f749f(0x1fa)](_0x99365[_0x2f749f(0x2c1)])){const _0x242db7=_0x116e34['get'](_0x99365[_0x2f749f(0x2c1)]);_0x242db7[_0x2f749f(0x511)]+=',\x20'+_0x99365['name'];}else _0x116e34[_0x2f749f(0x4b9)](_0x99365['selection'],_0x99365);}),Array[_0x1ce4a8(0x41c)](_0x116e34['values']());}var U=function(){const _0x54d928=_0x107bfd;return U=Object[_0x54d928(0x525)]||function(_0x354a1f){const _0x168873=_0x54d928;for(var _0x59e7cc,_0x68b970=0x1,_0x45ee34=arguments[_0x168873(0x38d)];_0x68b970<_0x45ee34;_0x68b970++){_0x59e7cc=arguments[_0x68b970];for(var _0x4d47fd in _0x59e7cc)Object['prototype'][_0x168873(0x40c)][_0x168873(0x4f6)](_0x59e7cc,_0x4d47fd)&&(_0x354a1f[_0x4d47fd]=_0x59e7cc[_0x4d47fd]);}return _0x354a1f;},U[_0x54d928(0x37d)](this,arguments);},lo=function(_0x3ffb5a,_0x5db552){const _0x29e081=_0x107bfd;var _0x4617ef={};for(var _0x524e87 in _0x3ffb5a)Object[_0x29e081(0x4d9)]['hasOwnProperty']['call'](_0x3ffb5a,_0x524e87)&&_0x5db552[_0x29e081(0x268)](_0x524e87)<0x0&&(_0x4617ef[_0x524e87]=_0x3ffb5a[_0x524e87]);if(_0x3ffb5a!=null&&typeof Object['getOwnPropertySymbols']==_0x29e081(0x546)){for(var _0x2cc757=0x0,_0x524e87=Object[_0x29e081(0x3e4)](_0x3ffb5a);_0x2cc757<_0x524e87[_0x29e081(0x38d)];_0x2cc757++)_0x5db552[_0x29e081(0x268)](_0x524e87[_0x2cc757])<0x0&&Object['prototype'][_0x29e081(0x2c3)][_0x29e081(0x4f6)](_0x3ffb5a,_0x524e87[_0x2cc757])&&(_0x4617ef[_0x524e87[_0x2cc757]]=_0x3ffb5a[_0x524e87[_0x2cc757]]);}return _0x4617ef;},Kt=_0x14b2c4(function(_0x423c5c,_0x3a8c0){const _0x18a4e4=_0x107bfd;var _0xe451d8=_0x423c5c[_0x18a4e4(0x505)],_0x1534a4=_0x423c5c['id'],_0x5d487b=_0x423c5c[_0x18a4e4(0x2e6)],_0x13a1ed=_0x423c5c[_0x18a4e4(0x48a)],_0x492d6c=lo(_0x423c5c,[_0x18a4e4(0x505),'id',_0x18a4e4(0x2e6),'extend']),_0xc16860='univerjs-icon\x20univerjs-icon-'[_0x18a4e4(0x383)](_0x1534a4,'\x20')[_0x18a4e4(0x383)](_0x5d487b||'')[_0x18a4e4(0x3c8)](),_0x38bbaa=_0x31c5d0('_'[_0x18a4e4(0x383)](mo()));return qs(_0xe451d8,''['concat'](_0x1534a4),{'defIds':_0xe451d8[_0x18a4e4(0x2a5)],'idSuffix':_0x38bbaa['current']},U({'ref':_0x3a8c0,'className':_0xc16860},_0x492d6c),_0x13a1ed);});function qs(_0x30989d,_0xd6d338,_0x1f6061,_0x2cb89e,_0x2189fd){const _0x393b1a=_0x107bfd;return _0x59512d(_0x30989d[_0x393b1a(0x4df)],U(U({'key':_0xd6d338},_o(_0x30989d,_0x1f6061,_0x2189fd)),_0x2cb89e),(uo(_0x30989d,_0x1f6061)[_0x393b1a(0x43a)]||[])[_0x393b1a(0x3a7)](function(_0x2d49b5,_0x1b28ef){const _0x526d4d=_0x393b1a;return qs(_0x2d49b5,''[_0x526d4d(0x383)](_0xd6d338,'-')[_0x526d4d(0x383)](_0x30989d[_0x526d4d(0x4df)],'-')[_0x526d4d(0x383)](_0x1b28ef),_0x1f6061,void 0x0,_0x2189fd);}));}function _o(_0x141d68,_0x51224a,_0x34246c){const _0x311d7e=_0x107bfd;var _0x21f316=U({},_0x141d68[_0x311d7e(0x486)]);_0x34246c!=null&&_0x34246c['colorChannel1']&&_0x21f316[_0x311d7e(0x4f9)]===_0x311d7e(0x449)&&(_0x21f316[_0x311d7e(0x4f9)]=_0x34246c[_0x311d7e(0x449)]);var _0x48c3b7=_0x51224a[_0x311d7e(0x2a5)];return!_0x48c3b7||_0x48c3b7[_0x311d7e(0x38d)]===0x0||(_0x141d68[_0x311d7e(0x4df)]==='use'&&_0x21f316[_0x311d7e(0x3c0)]&&(_0x21f316[_0x311d7e(0x3c0)]=_0x21f316[_0x311d7e(0x3c0)]+_0x51224a[_0x311d7e(0x408)]),Object[_0x311d7e(0x4d4)](_0x21f316)[_0x311d7e(0x51c)](function(_0x4a8fc7){const _0x2ce772=_0x311d7e;var _0xe1ba8b=_0x4a8fc7[0x0],_0x23c612=_0x4a8fc7[0x1];typeof _0x23c612==_0x2ce772(0x310)&&(_0x21f316[_0xe1ba8b]=_0x23c612[_0x2ce772(0x248)](/url\(#(.*)\)/,_0x2ce772(0x27a)[_0x2ce772(0x383)](_0x51224a[_0x2ce772(0x408)],')')));})),_0x21f316;}function uo(_0x4babcc,_0x5ec6db){const _0x18138e=_0x107bfd;var _0xcc323,_0x9ae480=_0x5ec6db[_0x18138e(0x2a5)];return!_0x9ae480||_0x9ae480[_0x18138e(0x38d)]===0x0?_0x4babcc:_0x4babcc[_0x18138e(0x4df)]==='defs'&&(!((_0xcc323=_0x4babcc['children'])===null||_0xcc323===void 0x0)&&_0xcc323[_0x18138e(0x38d)])?U(U({},_0x4babcc),{'children':_0x4babcc[_0x18138e(0x43a)][_0x18138e(0x3a7)](function(_0x501fa7){const _0x4d19b7=_0x18138e;return typeof _0x501fa7['attrs']['id']=='string'&&_0x9ae480&&_0x9ae480[_0x4d19b7(0x268)](_0x501fa7[_0x4d19b7(0x486)]['id'])>-0x1?U(U({},_0x501fa7),{'attrs':U(U({},_0x501fa7[_0x4d19b7(0x486)]),{'id':_0x501fa7[_0x4d19b7(0x486)]['id']+_0x5ec6db['idSuffix']})}):_0x501fa7;})}):_0x4babcc;}function mo(){const _0x5691aa=_0x107bfd;return Math[_0x5691aa(0x452)]()[_0x5691aa(0x34f)](0x24)['substring'](0x2,0x8);}Kt['displayName']=_0x107bfd(0x311);var fo={'tag':_0x107bfd(0x282),'attrs':{'fill':'none','viewBox':_0x107bfd(0x48e),'width':'1em','height':_0x107bfd(0x54e)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0x107bfd(0x4eb),'attrs':{'stroke':_0x107bfd(0x3af),'d':_0x107bfd(0x459),'strokeLinecap':_0x107bfd(0x339),'strokeLinejoin':_0x107bfd(0x339),'strokeWidth':1.2}}]},{'tag':_0x107bfd(0x439),'attrs':{},'children':[{'tag':_0x107bfd(0x32a),'attrs':{'id':_0x107bfd(0x2ac)},'children':[{'tag':_0x107bfd(0x4eb),'attrs':{'fill':_0x107bfd(0x4bb),'d':_0x107bfd(0x438)}}]}]}],'defIds':[_0x107bfd(0x2ac)]},Js=_0x14b2c4(function(_0xc9db9d,_0x594fb1){const _0x54b4f4=_0x107bfd;return _0x59512d(Kt,Object['assign']({},_0xc9db9d,{'id':_0x54b4f4(0x50c),'ref':_0x594fb1,'icon':fo}));});Js[_0x107bfd(0x2ab)]='OffLineSingle';var go={'tag':_0x107bfd(0x282),'attrs':{'fill':_0x107bfd(0x3b6),'viewBox':'0\x200\x2017\x2016','width':_0x107bfd(0x54e),'height':_0x107bfd(0x54e)},'children':[{'tag':'g','attrs':{'clipPath':_0x107bfd(0x501)},'children':[{'tag':'path','attrs':{'stroke':_0x107bfd(0x3af),'d':_0x107bfd(0x4ec),'strokeLinecap':_0x107bfd(0x339),'strokeLinejoin':_0x107bfd(0x339),'strokeWidth':1.2}}]},{'tag':_0x107bfd(0x439),'attrs':{},'children':[{'tag':_0x107bfd(0x32a),'attrs':{'id':_0x107bfd(0x258)},'children':[{'tag':_0x107bfd(0x4eb),'attrs':{'fill':'#fff','d':_0x107bfd(0x438),'transform':_0x107bfd(0x24f)}}]}]}],'defIds':[_0x107bfd(0x258)]},zs=_0x14b2c4(function(_0x25986f,_0x14a947){const _0x5f4a89=_0x107bfd;return _0x59512d(Kt,Object[_0x5f4a89(0x525)]({},_0x25986f,{'id':_0x5f4a89(0x2fe),'ref':_0x14a947,'icon':go}));});zs[_0x107bfd(0x2ab)]=_0x107bfd(0x467);function Zs(_0xf886f){const _0x347018=_0x107bfd;var _0x377468,_0x1df2fd,_0x209574='';if(typeof _0xf886f==_0x347018(0x310)||typeof _0xf886f==_0x347018(0x221))_0x209574+=_0xf886f;else{if(typeof _0xf886f=='object'){if(Array[_0x347018(0x473)](_0xf886f)){var _0x52e0e3=_0xf886f[_0x347018(0x38d)];for(_0x377468=0x0;_0x377468<_0x52e0e3;_0x377468++)_0xf886f[_0x377468]&&(_0x1df2fd=Zs(_0xf886f[_0x377468]))&&(_0x209574&&(_0x209574+='\x20'),_0x209574+=_0x1df2fd);}else{for(_0x1df2fd in _0xf886f)_0xf886f[_0x1df2fd]&&(_0x209574&&(_0x209574+='\x20'),_0x209574+=_0x1df2fd);}}}return _0x209574;}function So(){const _0x3073fc=_0x107bfd;for(var _0x2ec063,_0x5d837c,_0x11319b=0x0,_0x58ad7c='',_0x53a549=arguments[_0x3073fc(0x38d)];_0x11319b<_0x53a549;_0x11319b++)(_0x2ec063=arguments[_0x11319b])&&(_0x5d837c=Zs(_0x2ec063))&&(_0x58ad7c&&(_0x58ad7c+='\x20'),_0x58ad7c+=_0x5d837c);return _0x58ad7c;}const po=_0x107bfd(0x214),vo=_0x107bfd(0x231),Io=_0x107bfd(0x440),Eo=_0x107bfd(0x239),Co='univer-offline',ye={'onlineStatusIcon':po,'onlineStatusTitle':vo,'onlineStatus':Io,'online':Eo,'offline':Co};function bo(_0x37c61a){const _0x5657a4=_0x107bfd;switch(_0x37c61a){case w[_0x5657a4(0x507)]:return'collabStatus.offline';case w[_0x5657a4(0x318)]:return _0x5657a4(0x30e);case w[_0x5657a4(0x28f)]:return _0x5657a4(0x29d);case w[_0x5657a4(0x54c)]:return'collabStatus.notCollab';case w['AWAITING']:case w[_0x5657a4(0x333)]:return'collabStatus.syncing';case w['SYNCED']:case w[_0x5657a4(0x51b)]:return'collabStatus.synced';}}function To(_0x16ce09){const _0xad6887=_0x107bfd,{status$:_0x42ad94}=_0x16ce09,_0x476831=_0x3150f6(_0x42ad94,w[_0xad6887(0x54c)]),_0x28dc6a=_0x1266df(_0x18c55e),_0x20a643=_0x1266df(ue),_0x2c7169=_0x476831!==w['OFFLINE'],_0x3e9ba3=_0x28dc6a['t'](bo(_0x476831)),_0x5c5e57=So(ye[_0xad6887(0x22e)],{[ye[_0xad6887(0x429)]]:_0x2c7169,[ye[_0xad6887(0x1ed)]]:!_0x2c7169}),_0x31c6ec=_0x2c7169?_0x5d160a[_0xad6887(0x1e7)](zs,null):_0x5d160a[_0xad6887(0x1e7)](Js,null),_0x5b780c=_0x25ed7f(()=>{const _0x1beba5=_0xad6887;_0x2c7169||_0x20a643[_0x1beba5(0x211)]();},[_0x2c7169,_0x20a643]);function _0x3990e2(){const _0x30ddd7=_0xad6887;return _0x5d160a[_0x30ddd7(0x1e7)]('div',{'className':_0x5c5e57,'onClick':_0x5b780c},_0x5d160a['createElement'](_0x30ddd7(0x259),{'className':ye[_0x30ddd7(0x364)]},_0x31c6ec),_0x5d160a[_0x30ddd7(0x1e7)](_0x30ddd7(0x259),{'className':ye[_0x30ddd7(0x4c8)]},_0x3e9ba3));}return _0x2c7169?_0x3990e2():_0x5d160a[_0xad6887(0x1e7)](_0x5d8284,{'title':_0x28dc6a['t'](_0xad6887(0x2a8))},_0x3990e2());}var Ro=Object[_0x107bfd(0x1ea)],Oo=Object[_0x107bfd(0x22d)],Do=(_0x5dd232,_0x81ae94,_0x138ebf,_0x3d0202)=>{const _0x1e7049=_0x107bfd;for(var _0x44bcbd=_0x3d0202>0x1?void 0x0:_0x3d0202?Oo(_0x81ae94,_0x138ebf):_0x81ae94,_0x5174de=_0x5dd232[_0x1e7049(0x38d)]-0x1,_0x5a5788;_0x5174de>=0x0;_0x5174de--)(_0x5a5788=_0x5dd232[_0x5174de])&&(_0x44bcbd=(_0x3d0202?_0x5a5788(_0x81ae94,_0x138ebf,_0x44bcbd):_0x5a5788(_0x44bcbd))||_0x44bcbd);return _0x3d0202&&_0x44bcbd&&Ro(_0x81ae94,_0x138ebf,_0x44bcbd),_0x44bcbd;},Ve=(_0x570397,_0x3447a5)=>(_0x599a6c,_0x5951d8)=>_0x3447a5(_0x599a6c,_0x5951d8,_0x570397);let Me=class extends _0x502c5a{constructor(_0x3f28f0,_0x19ea4d,_0x3e2802,_0x38dcc5){const _0x3e8da0=_0x107bfd;super(),l(this,'_status$',new _0x435a5b(w[_0x3e8da0(0x54c)])),(this['_univerInstanceService']=_0x3f28f0,this[_0x3e8da0(0x205)]=_0x19ea4d,this[_0x3e8da0(0x2f8)]=_0x3e2802,this[_0x3e8da0(0x3d4)]=_0x38dcc5,this[_0x3e8da0(0x42b)](),this['_initStatusListener']());}['_initStatusListener'](){const _0x118c56=_0x107bfd;this[_0x118c56(0x2b2)](this[_0x118c56(0x32d)][_0x118c56(0x43f)][_0x118c56(0x321)](_0x204b23(()=>{const _0x1c21f2=_0x118c56,_0xe74289=this[_0x1c21f2(0x32d)][_0x1c21f2(0x274)]();return _0xe74289?this['_collaborationController'][_0x1c21f2(0x3fd)](_0xe74289['getUnitId']()):_0x19fb74(null);}),_0x204b23(_0x48ea4a=>_0x48ea4a?_0x48ea4a[_0x118c56(0x2d9)]:_0x19fb74(w[_0x118c56(0x54c)])))['subscribe'](_0x2b456b=>{const _0x26ce7e=_0x118c56;this[_0x26ce7e(0x4e0)]['next'](_0x2b456b);}));}[_0x107bfd(0x42b)](){const _0xeffbcb=_0x107bfd;this[_0xeffbcb(0x2b2)](this[_0xeffbcb(0x205)][_0xeffbcb(0x465)](_0x3d8254[_0xeffbcb(0x495)],()=>_0xa2ca1e(wo({'status$':this[_0xeffbcb(0x4e0)]['asObservable']()}),this[_0xeffbcb(0x2f8)])));}};Me=Do([Ve(0x0,_0x4bc21f),Ve(0x1,_0x374dac),Ve(0x2,_0x22b1d4(_0x12b4cf)),Ve(0x3,_0x22b1d4($e))],Me);function wo(_0x47434e){const {status$:_0x49d0dc}=_0x47434e;return function(){const _0x251a2d=_0x1556;return _0x5d160a[_0x251a2d(0x1e7)](To,{'status$':_0x49d0dc});};}const Qs=_0x51f9c0(_0x107bfd(0x349));var Po=Object[_0x107bfd(0x1ea)],yo=Object['getOwnPropertyDescriptor'],Uo=(_0x510cad,_0x432cda,_0x1151bf,_0x24c3af)=>{const _0x579924=_0x107bfd;for(var _0x13d50a=_0x24c3af>0x1?void 0x0:_0x24c3af?yo(_0x432cda,_0x1151bf):_0x432cda,_0x43990b=_0x510cad[_0x579924(0x38d)]-0x1,_0xd2572a;_0x43990b>=0x0;_0x43990b--)(_0xd2572a=_0x510cad[_0x43990b])&&(_0x13d50a=(_0x24c3af?_0xd2572a(_0x432cda,_0x1151bf,_0x13d50a):_0xd2572a(_0x13d50a))||_0x13d50a);return _0x24c3af&&_0x13d50a&&Po(_0x432cda,_0x1151bf,_0x13d50a),_0x13d50a;},ve=(_0x11f6c6,_0xe2fa1a)=>(_0x5c1ea2,_0x3c58a2)=>_0xe2fa1a(_0x5c1ea2,_0x3c58a2,_0x11f6c6);let Ze=class extends _0x4fe933{constructor(_0x35ef7b,_0x4a4fee,_0x194d04,_0x3f6655,_0x9ec643,_0x518439){const _0x4a1fbe=_0x107bfd;super(),this[_0x4a1fbe(0x4e4)]=_0x35ef7b,this[_0x4a1fbe(0x3f1)]=_0x4a4fee,this[_0x4a1fbe(0x51d)]=_0x194d04,this['_localCacheService']=_0x3f6655,this['_snapshotService']=_0x9ec643,_0x518439?_0x518439==null||_0x518439[_0x4a1fbe(0x4b5)]()[_0x4a1fbe(0x302)](()=>this['_init']()):(this[_0x4a1fbe(0x3f1)][_0x4a1fbe(0x4b2)](_0x4a1fbe(0x504),_0x4a1fbe(0x25f)),this[_0x4a1fbe(0x3c7)]());}async[_0x107bfd(0x3c7)](){const _0x3ec98f=_0x107bfd,_0x3408aa=this[_0x3ec98f(0x4e4)]['getParam'](_0x3ec98f(0x56e)),_0x176412=this[_0x3ec98f(0x4e4)][_0x3ec98f(0x50b)](_0x3ec98f(0x4de));if(!_0x3408aa||!_0x176412){this['_logService'][_0x3ec98f(0x4b2)](_0x3ec98f(0x504),_0x3ec98f(0x233));return;}switch(Number(_0x176412)){case B[_0x3ec98f(0x547)]:{const _0x186fa5=await this[_0x3ec98f(0x3b7)](_0x3408aa);this[_0x3ec98f(0x46d)](_0x186fa5);break;}case B[_0x3ec98f(0x344)]:{await this['_loadDoc'](_0x3408aa);break;}default:{this[_0x3ec98f(0x3f1)][_0x3ec98f(0x332)](_0x3ec98f(0x504),_0x3ec98f(0x356));break;}}}async['_setupSubUnitSync'](_0x3fde8e){const _0x343e67=_0x107bfd;await this[_0x343e67(0x352)](_0x3fde8e),_0x3fde8e['activeSheet$'][_0x343e67(0x321)](_0x31a17e(this[_0x343e67(0x373)]))[_0x343e67(0x4c6)](_0x2fbdd4=>{const _0x131f7b=_0x343e67;_0x2fbdd4&&this[_0x131f7b(0x305)](_0x2fbdd4);}),this[_0x343e67(0x4e4)][_0x343e67(0x43b)]['pipe'](_0x31a17e(this[_0x343e67(0x373)]))[_0x343e67(0x4c6)](()=>this[_0x343e67(0x352)](_0x3fde8e));}[_0x107bfd(0x305)](_0x4a7701,_0x20dbd0=!0x1){const _0x41ed62=_0x107bfd,_0x49e1a7=this[_0x41ed62(0x4e4)][_0x41ed62(0x50b)]('subunit');_0x4a7701[_0x41ed62(0x515)]()!==_0x49e1a7&&this[_0x41ed62(0x4e4)][_0x41ed62(0x55d)](_0x41ed62(0x536),_0x4a7701[_0x41ed62(0x515)](),_0x20dbd0);}async[_0x107bfd(0x352)](_0x5ae599){const _0x5b5e67=_0x107bfd;var _0x21dd32;const _0x1e0114=this['_urlService'][_0x5b5e67(0x50b)]('subunit');if(!_0x1e0114||!_0x5ae599[_0x5b5e67(0x36c)](_0x1e0114)){const _0x37a6ba=_0x5ae599['getUnhiddenWorksheets']()[0x0],_0x762cd8=_0x5ae599[_0x5b5e67(0x36c)](_0x37a6ba);if(!_0x762cd8)return;this[_0x5b5e67(0x305)](_0x762cd8,!0x0),await this[_0x5b5e67(0x51d)][_0x5b5e67(0x21a)](_0x5d1a10['id'],{'unitId':_0x5ae599[_0x5b5e67(0x2bf)](),'subUnitId':_0x37a6ba});return;}((_0x21dd32=_0x5ae599[_0x5b5e67(0x2f2)]())==null?void 0x0:_0x21dd32['getSheetId']())!==_0x1e0114&&await this[_0x5b5e67(0x51d)][_0x5b5e67(0x21a)](_0x5d1a10['id'],{'unitId':_0x5ae599[_0x5b5e67(0x2bf)](),'subUnitId':_0x1e0114});}async[_0x107bfd(0x3b7)](_0x374d55){const _0x5ef325=_0x107bfd;let _0x53e257=0x0;const _0x1b0b1b=await this[_0x5ef325(0x47f)][_0x5ef325(0x262)](_0x374d55);return _0x1b0b1b&&(_0x1b0b1b['awaitingChangeset']||_0x1b0b1b['mutations'][_0x5ef325(0x38d)]!==0x0)&&(_0x53e257=_0x1b0b1b['rev']),_0x53e257===0x0&&this[_0x5ef325(0x3f1)][_0x5ef325(0x4b2)]('[DataLoaderController]',_0x5ef325(0x35e)),this[_0x5ef325(0x4e5)][_0x5ef325(0x4a9)](_0x374d55,_0x53e257);}async[_0x107bfd(0x40a)](_0x5b5508){const _0x1d26db=_0x107bfd;let _0x1c4af5=0x0;const _0x3e7ef0=await this[_0x1d26db(0x47f)]['loadOfflineData'](_0x5b5508);return _0x3e7ef0&&(_0x3e7ef0[_0x1d26db(0x4da)]||_0x3e7ef0[_0x1d26db(0x518)]['length']!==0x0)&&(_0x1c4af5=_0x3e7ef0[_0x1d26db(0x50f)]),_0x1c4af5===0x0&&this[_0x1d26db(0x3f1)][_0x1d26db(0x4b2)]('[DataLoaderController]',_0x1d26db(0x35e)),this[_0x1d26db(0x4e5)][_0x1d26db(0x21f)](_0x5b5508,_0x1c4af5);}};Ze=Uo([ve(0x0,Qs),ve(0x1,_0x42be42),ve(0x2,_0x156a6a),ve(0x3,_0x22b1d4(D)),ve(0x4,_0x22b1d4(_0x48f96b)),ve(0x5,_0x49e124(_0x123210))],Ze);var No=Object[_0x107bfd(0x1ea)],Ao=Object['getOwnPropertyDescriptor'],Mo=(_0x362f97,_0xc95396,_0x4ca112,_0x2df144)=>{const _0x33226c=_0x107bfd;for(var _0xa60b56=_0x2df144>0x1?void 0x0:_0x2df144?Ao(_0xc95396,_0x4ca112):_0xc95396,_0x44b86d=_0x362f97[_0x33226c(0x38d)]-0x1,_0x43f733;_0x44b86d>=0x0;_0x44b86d--)(_0x43f733=_0x362f97[_0x44b86d])&&(_0xa60b56=(_0x2df144?_0x43f733(_0xc95396,_0x4ca112,_0xa60b56):_0x43f733(_0xa60b56))||_0xa60b56);return _0x2df144&&_0xa60b56&&No(_0xc95396,_0x4ca112,_0xa60b56),_0xa60b56;},ps=(_0x3d7de9,_0x142fcf)=>(_0x300b6e,_0x18b61d)=>_0x142fcf(_0x300b6e,_0x18b61d,_0x3d7de9);const Lo=_0x107bfd(0x227),$o='Univer';let Qe=class extends _0x502c5a{constructor(_0x4bdb78,_0x50b32b){const _0x4de34e=_0x107bfd;super(),this['_univerInstanceService']=_0x4bdb78,this['_configService']=_0x50b32b,this[_0x4de34e(0x3c7)]();}[_0x107bfd(0x3c7)](){const _0x25a2af=_0x107bfd;this['disposeWithMe'](this['_univerInstanceService'][_0x25a2af(0x43f)][_0x25a2af(0x4c6)](()=>{const _0x1d05ee=_0x25a2af;var _0x259039;const _0x3e26d9=this['_univerInstanceService'][_0x1d05ee(0x274)]();let _0x398eee=(_0x259039=this['_configService'][_0x1d05ee(0x3c9)](Lo))!=null?_0x259039:$o;_0x3e26d9 instanceof _0x4aa1d5&&(_0x398eee=_0x3e26d9['name']),document[_0x1d05ee(0x532)]=_0x398eee;}));}};Qe=Mo([ps(0x0,_0x4bc21f),ps(0x1,_0x4d9096)],Qe);var jo=Object[_0x107bfd(0x1ea)],Ho=Object[_0x107bfd(0x22d)],xo=(_0x22ee72,_0x5e8904,_0x4c69d3,_0x422672)=>{const _0x17c433=_0x107bfd;for(var _0x3f145a=_0x422672>0x1?void 0x0:_0x422672?Ho(_0x5e8904,_0x4c69d3):_0x5e8904,_0x5c2344=_0x22ee72[_0x17c433(0x38d)]-0x1,_0x17347d;_0x5c2344>=0x0;_0x5c2344--)(_0x17347d=_0x22ee72[_0x5c2344])&&(_0x3f145a=(_0x422672?_0x17347d(_0x5e8904,_0x4c69d3,_0x3f145a):_0x17347d(_0x3f145a))||_0x3f145a);return _0x422672&&_0x3f145a&&jo(_0x5e8904,_0x4c69d3,_0x3f145a),_0x3f145a;},pt=(_0x3e894b,_0x5ed4da)=>(_0x52125f,_0x372354)=>_0x5ed4da(_0x52125f,_0x372354,_0x3e894b);let et=class{constructor(_0x160165,_0x305d41,_0x22fe18){const _0xa05e83=_0x107bfd;this[_0xa05e83(0x30f)]=_0x160165,this[_0xa05e83(0x3cf)]=_0x305d41,this[_0xa05e83(0x523)]=_0x22fe18,this['init']();}['init'](){const _0x2e41e3=_0x107bfd;this[_0x2e41e3(0x3cf)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x4c6d4b,_0x3df6b2)=>_0x3df6b2(_0x4c6d4b)['pipe'](_0x4037fb(async _0x4afb65=>{const _0x21b284=_0x2e41e3,_0x10a61f=_0x4afb65;if(_0x10a61f['status']===0x191&&window['confirm'](this[_0x21b284(0x523)]['t'](_0x21b284(0x29e)))){const _0xa2016c=window[_0x21b284(0x27f)](window[_0x21b284(0x493)][_0x21b284(0x306)]);window['location'][_0x21b284(0x306)]=this['_getLoginPath']()+_0x21b284(0x565)+_0xa2016c;}return _0x10a61f;}))});}[_0x107bfd(0x540)](){const _0x3dfc15=_0x107bfd;var _0x536fbc,_0x126a3d;const _0x1cee12=this['_configService']['getConfig'](Ln),_0x511ad6=this[_0x3dfc15(0x30f)]['getConfig'](j);return(_0x126a3d=(_0x536fbc=_0x511ad6==null?void 0x0:_0x511ad6['loginUrlKey'])!=null?_0x536fbc:_0x1cee12)!=null?_0x126a3d:$n;}};et=xo([pt(0x0,_0x4d9096),pt(0x1,_0x22b1d4(_0x1f1833)),pt(0x2,_0x22b1d4(_0x18c55e))],et);var ko=Object[_0x107bfd(0x1ea)],Bo=Object[_0x107bfd(0x22d)],Vo=(_0x524bbe,_0x4f97d9,_0x508ed3,_0x3f5eb3)=>{const _0xecb221=_0x107bfd;for(var _0x1b39f0=_0x3f5eb3>0x1?void 0x0:_0x3f5eb3?Bo(_0x4f97d9,_0x508ed3):_0x4f97d9,_0x2a87fe=_0x524bbe[_0xecb221(0x38d)]-0x1,_0x37cc6c;_0x2a87fe>=0x0;_0x2a87fe--)(_0x37cc6c=_0x524bbe[_0x2a87fe])&&(_0x1b39f0=(_0x3f5eb3?_0x37cc6c(_0x4f97d9,_0x508ed3,_0x1b39f0):_0x37cc6c(_0x1b39f0))||_0x1b39f0);return _0x3f5eb3&&_0x1b39f0&&ko(_0x4f97d9,_0x508ed3,_0x1b39f0),_0x1b39f0;},vs=(_0x27f3bd,_0x4b2635)=>(_0x142952,_0x2c889f)=>_0x4b2635(_0x142952,_0x2c889f,_0x27f3bd);const Fo='AUTHZ_URL_KEY',Wo=_0x107bfd(0x4af);let Ut=class extends _0x502c5a{constructor(_0x299fb1,_0x33e202){const _0xe911c7=_0x107bfd;super(),this['_HTTPService']=_0x299fb1,this['_configService']=_0x33e202,this[_0xe911c7(0x2cd)]();}[_0x107bfd(0x2cd)](){const _0x1fe0a2=_0x107bfd,_0xdc25ea=this;this[_0x1fe0a2(0x2b2)](this[_0x1fe0a2(0x27c)][_0x1fe0a2(0x433)]({'priority':0x3e7,'interceptor':_0x3b27be({'isMatch'(_0x47d72b){const _0x853a8e=_0x1fe0a2;var _0x11873c;if(_0x47d72b[_0x853a8e(0x28e)]===_0x853a8e(0x2a4)&&((_0x11873c=_0x47d72b[_0x853a8e(0x1f9)])!=null&&_0x11873c[_0x853a8e(0x275)])){const {objectID:_0x1ec49b,objectType:_0x2109c4}=_0x47d72b['requestParams'][_0x853a8e(0x275)]||{};if(!_0x1ec49b||_0x2109c4===void 0x0)return!0x1;const _0x1c2236=_0xdc25ea[_0x853a8e(0x52e)]()+'/'+_0x2109c4+_0x853a8e(0x395)+_0x1ec49b+_0x853a8e(0x480);if(_0x47d72b[_0x853a8e(0x389)]===_0x1c2236)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x36e0b0){const _0x3de3cc=_0x1fe0a2;var _0x58c548;return(_0x58c548=_0x36e0b0[_0x3de3cc(0x1f9)])==null?void 0x0:_0x58c548['body'];},'mergeParamsToRequest'(_0x128357,_0x31c3c5){const _0xa865a9=_0x1fe0a2,_0x34fcc3=_0xdc25ea[_0xa865a9(0x52e)]()+_0xa865a9(0x4a8),_0x4c6262=_0x128357[_0xa865a9(0x260)]((_0x34198e,_0xce5f9e)=>{const _0x2315d6=_0xa865a9,{unitID:_0xee18ef,objectID:_0x5684c7,objectType:_0x580638,actions:_0x4e2024}=_0xce5f9e;return _0x34198e[_0xee18ef]||(_0x34198e[_0xee18ef]={}),_0x34198e[_0xee18ef][_0x5684c7]||(_0x34198e[_0xee18ef][_0x5684c7]={'objectID':_0x5684c7,'objectType':_0x580638,'actions':[]}),_0x34198e[_0xee18ef][_0x5684c7][_0x2315d6(0x313)]['push'](..._0x4e2024),_0x34198e;},{}),_0x184e5e=[];for(const _0x19c5a1 in _0x4c6262)for(const _0x3fe47b in _0x4c6262[_0x19c5a1]){const {actions:_0x480a2e,objectType:_0x41e093}=_0x4c6262[_0x19c5a1][_0x3fe47b],_0xe531c0=[...new Set(_0x480a2e)];_0x184e5e[_0xa865a9(0x30d)]({'unitID':_0x19c5a1,'objectID':_0x3fe47b,'objectType':_0x41e093,'actions':_0xe531c0});}return new _0x5f19cc(_0xa865a9(0x2a4),_0x34fcc3,{'headers':_0x31c3c5[_0xa865a9(0x2d1)],'withCredentials':_0x31c3c5[_0xa865a9(0x2ea)],'responseType':_0x31c3c5[_0xa865a9(0x200)],'body':{'requests':_0x184e5e}});}},{'distributeResult'(_0x4b2661,_0x42e30e){const _0x2818f6=_0x1fe0a2,{objectActions:_0x310c98}=_0x4b2661;return _0x42e30e[_0x2818f6(0x3a7)](_0x2a9c17=>{const _0x2e6c93=_0x2818f6,{unitID:_0x2d3c2f,objectID:_0x21eb86,actions:_0x1e5d1e}=_0x2a9c17,_0x3bf726=_0x310c98[_0x2e6c93(0x420)](_0x553363=>_0x553363[_0x2e6c93(0x4e1)]===_0x2d3c2f&&_0x553363[_0x2e6c93(0x4ed)]===_0x21eb86),_0x33a954=_0x1e5d1e[_0x2e6c93(0x3a7)](_0x6ddad2=>_0x3bf726==null?void 0x0:_0x3bf726['actions'][_0x2e6c93(0x420)](_0x556f12=>_0x556f12['action']===_0x6ddad2))[_0x2e6c93(0x27b)](_0x10a64a=>!!_0x10a64a);return{'config':_0x2a9c17,'result':{'actions':_0x33a954,'error':_0x4b2661[_0x2e6c93(0x332)]}};});}})}));}['_getAPIPrefixPath'](){const _0x4b2a3c=_0x107bfd;var _0x32768c,_0x33eb3d;const _0x2a9154=this[_0x4b2a3c(0x30f)][_0x4b2a3c(0x3c9)](Fo),_0x1f02e9=this['_configService']['getConfig'](j);return(_0x33eb3d=(_0x32768c=_0x1f02e9==null?void 0x0:_0x1f02e9[_0x4b2a3c(0x263)])!=null?_0x32768c:_0x2a9154)!=null?_0x33eb3d:Wo;}async[_0x107bfd(0x444)](_0x21b637){const _0x2762a5=_0x107bfd,_0x429446=this[_0x2762a5(0x52e)]()+'/'+_0x21b637[_0x2762a5(0x3eb)]+_0x2762a5(0x548);return(await this[_0x2762a5(0x27c)]['post'](_0x429446,{'body':_0x21b637}))[_0x2762a5(0x275)]['objectID']||'';}async[_0x107bfd(0x32f)](_0x208afe){const _0x5daf0c=_0x107bfd,_0x2940fa=this[_0x5daf0c(0x52e)]()+_0x5daf0c(0x53e);return(await this[_0x5daf0c(0x27c)][_0x5daf0c(0x3d8)](_0x2940fa,{'body':_0x208afe}))[_0x5daf0c(0x275)][_0x5daf0c(0x4d1)];}async['update'](_0x4ebe8c){const _0x6264b6=_0x107bfd,_0x1f1ffc=this[_0x6264b6(0x52e)]()+'/'+_0x4ebe8c[_0x6264b6(0x3eb)]+_0x6264b6(0x395)+_0x4ebe8c[_0x6264b6(0x4ed)];await this[_0x6264b6(0x27c)][_0x6264b6(0x1f7)](_0x1f1ffc,{'body':_0x4ebe8c});}async[_0x107bfd(0x569)](_0xa8b950){const _0x1004c2=_0x107bfd,_0x1b7d12=this[_0x1004c2(0x52e)]()+'/'+_0xa8b950[_0x1004c2(0x3eb)]+_0x1004c2(0x395)+_0xa8b950[_0x1004c2(0x4ed)]+_0x1004c2(0x480);return(await this['_HTTPService'][_0x1004c2(0x3d8)](_0x1b7d12,{'body':_0xa8b950}))[_0x1004c2(0x275)]['actions'];}async['batchAllowed'](_0x4122b5){const _0x5008fc=_0x107bfd,_0x2f7ebd=this[_0x5008fc(0x52e)]()+'/-/object/-/batch_allowed';return(await this[_0x5008fc(0x27c)][_0x5008fc(0x3d8)](_0x2f7ebd,{'body':{'requests':_0x4122b5}}))[_0x5008fc(0x275)][_0x5008fc(0x34a)];}async[_0x107bfd(0x226)](_0x14392b){const _0x492d17=_0x107bfd,_0x5577f9=this[_0x492d17(0x52e)]()+'/'+_0x14392b[_0x492d17(0x3eb)]+'/role',_0x39eae8=await this[_0x492d17(0x27c)][_0x492d17(0x3d8)](_0x5577f9,{'body':_0x14392b});return{'roles':_0x39eae8['body'][_0x492d17(0x1fc)],'actions':_0x39eae8[_0x492d17(0x275)][_0x492d17(0x313)]};}async[_0x107bfd(0x3ed)](_0x3b8f7c){const _0xfaaef=_0x107bfd,_0x4aeef6=this[_0xfaaef(0x52e)]()+_0xfaaef(0x1e9);await this[_0xfaaef(0x27c)][_0xfaaef(0x222)](_0x4aeef6,{'params':{'collaboratorID':_0x3b8f7c[_0xfaaef(0x517)],'objectID':_0x3b8f7c['objectID'],'unitID':_0x3b8f7c['unitID']}});}async[_0x107bfd(0x2d7)](_0x38a333){const _0x1290b6=_0x107bfd,_0x59376e=this[_0x1290b6(0x52e)]()+_0x1290b6(0x1e9);await this[_0x1290b6(0x27c)][_0x1290b6(0x462)](_0x59376e,{'body':_0x38a333});}async['createCollaborator'](_0x474f32){const _0x22e0fa=_0x107bfd,_0x5258bd=this[_0x22e0fa(0x52e)]()+_0x22e0fa(0x1e9);await this[_0x22e0fa(0x27c)][_0x22e0fa(0x3d8)](_0x5258bd,{'body':_0x474f32});}async['listCollaborators'](_0x3fbf0d){const _0x19dd08=_0x107bfd,_0x3e264b=this['_getAPIPrefixPath']()+_0x19dd08(0x1e9);return(await this[_0x19dd08(0x27c)][_0x19dd08(0x22f)](_0x3e264b,{'params':{'objectID':_0x3fbf0d[_0x19dd08(0x4ed)],'unitID':_0x3fbf0d[_0x19dd08(0x4e1)]}}))['body'][_0x19dd08(0x4fe)];}async[_0x107bfd(0x500)](_0x4fb034){const _0x236438=_0x107bfd,_0x5a1026=this[_0x236438(0x52e)]()+_0x236438(0x1e9);await this[_0x236438(0x27c)][_0x236438(0x1f7)](_0x5a1026,{'body':_0x4fb034});}};Ut=Vo([vs(0x0,_0x22b1d4(_0x1f1833)),vs(0x1,_0x22b1d4(_0x4d9096))],Ut);var Go=Object[_0x107bfd(0x1ea)],Yo=Object[_0x107bfd(0x22d)],Ko=(_0x34a45c,_0x37c5db,_0x3e0bf6,_0x33fe36)=>{const _0x8e76f7=_0x107bfd;for(var _0x55654d=_0x33fe36>0x1?void 0x0:_0x33fe36?Yo(_0x37c5db,_0x3e0bf6):_0x37c5db,_0x556c9c=_0x34a45c[_0x8e76f7(0x38d)]-0x1,_0x571601;_0x556c9c>=0x0;_0x556c9c--)(_0x571601=_0x34a45c[_0x556c9c])&&(_0x55654d=(_0x33fe36?_0x571601(_0x37c5db,_0x3e0bf6,_0x55654d):_0x571601(_0x55654d))||_0x55654d);return _0x33fe36&&_0x55654d&&Go(_0x37c5db,_0x3e0bf6,_0x55654d),_0x55654d;},Xo=(_0x3bdc52,_0x12b93c)=>(_0x1a67f8,_0x57b604)=>_0x12b93c(_0x1a67f8,_0x57b604,_0x3bdc52);let tt=class{constructor(_0x53e74e){const _0x3c6c9b=_0x107bfd;this[_0x3c6c9b(0x3cf)]=_0x53e74e,this[_0x3c6c9b(0x23a)]();}[_0x107bfd(0x23a)](){const _0x4dd278=_0x107bfd;this[_0x4dd278(0x3cf)][_0x4dd278(0x433)]({'interceptor':(_0xc06f18,_0x523153)=>{const _0x25d88f=_0x4dd278,_0x1c95cb=_0xc06f18[_0x25d88f(0x2d1)],_0x352c62=_0x1faae4();return _0x352c62&&_0x1c95cb['set'](_0x25d88f(0x52d),_0x352c62),_0x523153(_0xc06f18);}});}};tt=Ko([Xo(0x0,_0x22b1d4(_0x1f1833))],tt);var qo=Object[_0x107bfd(0x1ea)],Jo=Object[_0x107bfd(0x22d)],zo=(_0x39b98d,_0x3ae8f4,_0x92a38f,_0x2a531b)=>{const _0x42fd8b=_0x107bfd;for(var _0x5550f5=_0x2a531b>0x1?void 0x0:_0x2a531b?Jo(_0x3ae8f4,_0x92a38f):_0x3ae8f4,_0x29fa20=_0x39b98d[_0x42fd8b(0x38d)]-0x1,_0x4f0d5a;_0x29fa20>=0x0;_0x29fa20--)(_0x4f0d5a=_0x39b98d[_0x29fa20])&&(_0x5550f5=(_0x2a531b?_0x4f0d5a(_0x3ae8f4,_0x92a38f,_0x5550f5):_0x4f0d5a(_0x5550f5))||_0x5550f5);return _0x2a531b&&_0x5550f5&&qo(_0x3ae8f4,_0x92a38f,_0x5550f5),_0x5550f5;},vt=(_0x2b3a89,_0x15df4d)=>(_0x506ea8,_0x53528b)=>_0x15df4d(_0x506ea8,_0x53528b,_0x2b3a89);const Zo=[_0x107bfd(0x380),_0x107bfd(0x237),_0x107bfd(0x549),_0x107bfd(0x2a0),'image/bmp'],Qo=0x5*0x400*0x400,ea=_0x107bfd(0x4aa),ta=_0x107bfd(0x329),sa=_0x107bfd(0x278),ia=_0x107bfd(0x2cf);let Nt=class{constructor(_0x149448,_0x362898,_0x307acc){const _0x305139=_0x107bfd;l(this,_0x305139(0x567),0x0),l(this,'_change$',new _0x5986f4()),l(this,_0x305139(0x1f1),this['_change$']),l(this,_0x305139(0x35d),new Map()),(this[_0x305139(0x3cf)]=_0x149448,this[_0x305139(0x30f)]=_0x362898,this['_univerInstanceService']=_0x307acc);}['setWaitCount'](_0x57e133){const _0xb00105=_0x107bfd;this['_waitCount']=_0x57e133,this[_0xb00105(0x374)]['next'](_0x57e133);}[_0x107bfd(0x2cb)](_0x2ea323,_0x2de06f){const _0x388c83=_0x107bfd;if(_0x2de06f===_0xb2df3d['BASE64']){const _0x5377fa=new Image();return _0x5377fa[_0x388c83(0x3b1)]=_0x2ea323,_0x5377fa;}return this['_imageSourceCache'][_0x388c83(0x22f)](_0x2ea323);}['addImageSourceCache'](_0x247d83,_0x45735f,_0x151df0){const _0x19c0f7=_0x107bfd;_0x45735f===_0xb2df3d[_0x19c0f7(0x30a)]||_0x151df0==null||this[_0x19c0f7(0x35d)][_0x19c0f7(0x4b9)](_0x247d83,_0x151df0);}async['getImage'](_0x395865){const _0x526751=_0x107bfd;try{const _0x1562cf=this['_replaceFileID'](this[_0x526751(0x22a)](),''+_0x395865),_0x2e2d0d=(await this[_0x526751(0x3cf)][_0x526751(0x22f)](_0x1562cf))[_0x526751(0x275)];if(_0x2e2d0d[_0x526751(0x332)]&&_0x2e2d0d[_0x526751(0x332)][_0x526751(0x36b)]===ks['OK']){const _0x5d66cb=new URL(_0x2e2d0d[_0x526751(0x389)],this[_0x526751(0x399)]())[_0x526751(0x34f)]();return Promise[_0x526751(0x276)](_0x5d66cb);}return Promise[_0x526751(0x22b)](_0x2e2d0d[_0x526751(0x332)]);}catch(_0x782794){return Promise[_0x526751(0x22b)](_0x782794);}}async[_0x107bfd(0x478)](_0x2fc2b8){const _0x13a8c2=_0x107bfd;let _0x43318b='';if(!Zo[_0x13a8c2(0x544)](_0x2fc2b8[_0x13a8c2(0x4de)]))return this[_0x13a8c2(0x4cb)](),Promise[_0x13a8c2(0x22b)](new Error(_0x118c28['ERROR_IMAGE_TYPE']));if(_0x2fc2b8['size']>Qo)return this[_0x13a8c2(0x4cb)](),Promise[_0x13a8c2(0x22b)](new Error(_0x118c28[_0x13a8c2(0x299)]));try{const _0x36e1d9=new FormData();_0x36e1d9[_0x13a8c2(0x291)](_0x13a8c2(0x277),_0x2fc2b8);const _0x5c961a=this[_0x13a8c2(0x32d)][_0x13a8c2(0x274)](),_0x3f01de=_0x5c961a==null?void 0x0:_0x5c961a[_0x13a8c2(0x2bf)]();if(!_0x3f01de)throw new Error(_0x13a8c2(0x224));const _0x259c4b=this[_0x13a8c2(0x481)]()+'?size='+_0x2fc2b8[_0x13a8c2(0x44b)][_0x13a8c2(0x34f)]()+_0x13a8c2(0x3bf)+Bs['UnitEmbedded']+'&assign='+encodeURIComponent(_0x3f01de),_0x5454b9=await(await fetch(_0x259c4b,{'method':_0x13a8c2(0x2a4),'body':_0x36e1d9}))[_0x13a8c2(0x391)]();if(typeof _0x5454b9[_0x13a8c2(0x376)]!='string')return this[_0x13a8c2(0x4cb)](),Promise['reject'](new Error(_0x118c28[_0x13a8c2(0x20c)]));_0x43318b=_0x5454b9[_0x13a8c2(0x376)];}catch{return this[_0x13a8c2(0x4cb)](),Promise['reject'](new Error(_0x118c28['ERROR_IMAGE']));}return new Promise((_0x102c0e,_0x580e12)=>{const _0x134fa3=_0x13a8c2,_0x20b208=new FileReader();_0x20b208[_0x134fa3(0x426)](_0x2fc2b8),_0x20b208['onload']=_0x148f5a=>{const _0x278f95=_0x134fa3;var _0x549935;const _0x340908=(_0x549935=_0x148f5a[_0x278f95(0x348)])==null?void 0x0:_0x549935[_0x278f95(0x1f4)];if(_0x340908==null){this[_0x278f95(0x4cb)](),_0x580e12(new Error(_0x118c28[_0x278f95(0x20c)]));return;}const _0x204313=_0x5065d9[_0x278f95(0x402)](0x6);_0x102c0e({'imageId':_0x204313,'imageSourceType':_0xb2df3d['UUID'],'source':_0x43318b,'base64Cache':_0x340908,'status':_0x118c28[_0x278f95(0x2f4)]}),this['_decreaseWaiting']();};});}[_0x107bfd(0x481)](){const _0xf6ae37=_0x107bfd;var _0x243ed0,_0x5bcc4d;const _0x31a265=this[_0xf6ae37(0x30f)][_0xf6ae37(0x3c9)](ea),_0x3b328d=this[_0xf6ae37(0x30f)][_0xf6ae37(0x3c9)](j);return(_0x5bcc4d=(_0x243ed0=_0x3b328d==null?void 0x0:_0x3b328d['uploadFileServerUrl'])!=null?_0x243ed0:_0x31a265)!=null?_0x5bcc4d:ta;}['_getSignURL'](){const _0x2d99ba=_0x107bfd;var _0x57e867,_0x33b785;const _0x3b6e77=this[_0x2d99ba(0x30f)][_0x2d99ba(0x3c9)](sa),_0x282094=this[_0x2d99ba(0x30f)]['getConfig'](j);return(_0x33b785=(_0x57e867=_0x282094==null?void 0x0:_0x282094['signUrlServerUrl'])!=null?_0x57e867:_0x3b6e77)!=null?_0x33b785:ia;}[_0x107bfd(0x399)](){const _0x446d80=_0x107bfd;var _0x2ccb56;const _0x53c978=this[_0x446d80(0x30f)][_0x446d80(0x3c9)](j);return(_0x2ccb56=_0x53c978==null?void 0x0:_0x53c978[_0x446d80(0x3bb)])!=null?_0x2ccb56:location[_0x446d80(0x32b)];}[_0x107bfd(0x4ad)](_0x2131e2,_0x257c0b){const _0x5009f5=_0x107bfd;return _0x2131e2[_0x5009f5(0x248)](_0x5009f5(0x4e8),_0x257c0b);}[_0x107bfd(0x4cb)](){const _0x5e357b=_0x107bfd;this[_0x5e357b(0x567)]-=0x1,this['_change$'][_0x5e357b(0x520)](this[_0x5e357b(0x567)]);}};Nt=zo([vt(0x0,_0x22b1d4(_0x1f1833)),vt(0x1,_0x4d9096),vt(0x2,_0x22b1d4(_0x4bc21f))],Nt);var na=Object[_0x107bfd(0x1ea)],ra=Object[_0x107bfd(0x22d)],oa=(_0x5de6cf,_0x40dc07,_0x8dda75,_0x4d88bc)=>{const _0x1eb12b=_0x107bfd;for(var _0x2e5da5=_0x4d88bc>0x1?void 0x0:_0x4d88bc?ra(_0x40dc07,_0x8dda75):_0x40dc07,_0x38c0fd=_0x5de6cf[_0x1eb12b(0x38d)]-0x1,_0xbd041c;_0x38c0fd>=0x0;_0x38c0fd--)(_0xbd041c=_0x5de6cf[_0x38c0fd])&&(_0x2e5da5=(_0x4d88bc?_0xbd041c(_0x40dc07,_0x8dda75,_0x2e5da5):_0xbd041c(_0x2e5da5))||_0x2e5da5);return _0x4d88bc&&_0x2e5da5&&na(_0x40dc07,_0x8dda75,_0x2e5da5),_0x2e5da5;},Ue=(_0x4f0c46,_0x233213)=>(_0x5ee1dd,_0x1cddae)=>_0x233213(_0x5ee1dd,_0x1cddae,_0x4f0c46);let st=class extends _0x4fe933{constructor(_0xd44bd3,_0x28a974,_0x211e7f,_0x51d680,_0x4f4b5f){const _0xf263c7=_0x107bfd;super(),this[_0xf263c7(0x2f8)]=_0xd44bd3,this[_0xf263c7(0x32d)]=_0x28a974,this[_0xf263c7(0x25d)]=_0x211e7f,this[_0xf263c7(0x2cc)]=_0x51d680,this[_0xf263c7(0x533)]=_0x4f4b5f,this[_0xf263c7(0x390)](),this[_0xf263c7(0x31a)]();}['_initCloseConn'](){const _0x52c7e2=_0x107bfd,_0x527045=async _0x362cc4=>{const _0x361447=_0x1556;(await this[_0x361447(0x2cc)][_0x361447(0x31f)](_0x362cc4))[_0x361447(0x319)]['pipe'](_0x4cadab(_0x988519=>_0x988519[_0x361447(0x410)]===_0x5898c5[_0x361447(0x2e0)]),_0x1447e8(this['dispose$']))[_0x361447(0x4c6)](_0x413d2d=>{const _0x2a8a69=_0x361447,_0x31830b=_0x413d2d,{reason:_0x5379a4}=_0x31830b[_0x2a8a69(0x431)];this[_0x2a8a69(0x2f8)][_0x2a8a69(0x22f)](_0x1f96df)[_0x2a8a69(0x1fd)]({'type':_0x3a2b8b[_0x2a8a69(0x4d0)],'content':this[_0x2a8a69(0x533)]['t'](_0x2a8a69(0x2ae))+'('+_0x5379a4+')'}),this[_0x2a8a69(0x25d)]['updatePermissionPoint'](new _0x251d50(_0x362cc4)['id'],!0x1),this[_0x2a8a69(0x2cc)][_0x2a8a69(0x378)](_0x362cc4);});};_0x577738(this[_0x52c7e2(0x32d)]['getTypeOfUnitAdded$'](_0xdaf2b4[_0x52c7e2(0x547)]),this[_0x52c7e2(0x32d)][_0x52c7e2(0x23b)](_0xdaf2b4[_0x52c7e2(0x344)]))[_0x52c7e2(0x321)](_0xd272ef(_0x36c9d2=>_0x36c9d2[_0x52c7e2(0x2bf)]()),_0x4cadab(_0x41eced=>!_0x198bcb(_0x41eced)),_0x1447e8(this[_0x52c7e2(0x373)]))[_0x52c7e2(0x4c6)](_0x2db1bd=>{_0x527045(_0x2db1bd);});}[_0x107bfd(0x390)](){const _0x40d2f0=_0x107bfd,_0x5df1f6=async _0x3b7283=>{const _0x3a0bf2=_0x1556;(await this[_0x3a0bf2(0x2cc)]['requireSession'](_0x3b7283))[_0x3a0bf2(0x319)][_0x3a0bf2(0x321)](_0x4cadab(_0x53dd24=>_0x53dd24['eventID']===_0x5898c5['UPDATE_PERMISSION_OBJ']),_0x1447e8(this[_0x3a0bf2(0x373)]))['subscribe'](_0x53bf05=>{const _0x41310a=_0x3a0bf2,_0x506bac=_0x53bf05,{objectId:_0x1d82fb}=_0x506bac[_0x41310a(0x431)],_0x41a166=this[_0x41310a(0x2f8)][_0x41310a(0x22f)](_0x33f4dc);_0x1d82fb===_0x3b7283?_0x41a166[_0x41310a(0x4ba)](_0x3b7283):_0x41a166['refreshPermission'](_0x3b7283,_0x1d82fb);});};_0x577738(this[_0x40d2f0(0x32d)][_0x40d2f0(0x23b)](_0xdaf2b4[_0x40d2f0(0x547)]),this['_univerInstanceService'][_0x40d2f0(0x23b)](_0xdaf2b4[_0x40d2f0(0x344)]))['pipe'](_0xd272ef(_0x2b019d=>_0x2b019d[_0x40d2f0(0x2bf)]()),_0x4cadab(_0xbb2bf7=>!_0x198bcb(_0xbb2bf7)),_0x1447e8(this[_0x40d2f0(0x373)]))['subscribe'](_0x1d49b7=>{_0x5df1f6(_0x1d49b7);});}};st=oa([Ue(0x0,_0x22b1d4(_0x12b4cf)),Ue(0x1,_0x4bc21f),Ue(0x2,_0x4add88),Ue(0x3,_0x22b1d4(ue)),Ue(0x4,_0x22b1d4(_0x18c55e))],st);var aa=Object[_0x107bfd(0x1ea)],ca=Object[_0x107bfd(0x22d)],ha=(_0x1efadd,_0x3387fd,_0x3a7ec2,_0x201631)=>{for(var _0xec628=_0x201631>0x1?void 0x0:_0x201631?ca(_0x3387fd,_0x3a7ec2):_0x3387fd,_0x20b07d=_0x1efadd['length']-0x1,_0x1fd07e;_0x20b07d>=0x0;_0x20b07d--)(_0x1fd07e=_0x1efadd[_0x20b07d])&&(_0xec628=(_0x201631?_0x1fd07e(_0x3387fd,_0x3a7ec2,_0xec628):_0x1fd07e(_0xec628))||_0xec628);return _0x201631&&_0xec628&&aa(_0x3387fd,_0x3a7ec2,_0xec628),_0xec628;},Is=(_0x57777d,_0x389505)=>(_0x228dfa,_0x4095a9)=>_0x389505(_0x228dfa,_0x4095a9,_0x57777d);let At=class{constructor(_0x57becd,_0x166abd){const _0x5a65f5=_0x107bfd;this[_0x5a65f5(0x30f)]=_0x57becd,this[_0x5a65f5(0x3cf)]=_0x166abd;}async[_0x107bfd(0x341)](_0x211cb0,_0x1b835e){const _0x4d3a10=_0x107bfd;var _0xeacccc;const {unitID:_0xe146fc,type:_0x530c63,revision:_0x5134ae=0x0}=_0x1b835e,_0x4f404b=this[_0x4d3a10(0x2c7)]()+'/'+_0x530c63+_0x4d3a10(0x3b9)+_0xe146fc+'/rev/'+_0x5134ae,_0x258b3b=(await this[_0x4d3a10(0x3cf)][_0x4d3a10(0x22f)](_0x4f404b))['body'],_0x2e30b9=(_0xeacccc=_0x258b3b[_0x4d3a10(0x2b9)])==null?void 0x0:_0xeacccc[_0x4d3a10(0x35b)];if(_0x2e30b9){const _0x485778=_0x2e30b9==null?void 0x0:_0x2e30b9[_0x4d3a10(0x4e9)],_0x4aedb4=_0x17e6da['encode'](_0x5ebf66(_0x485778));_0x2e30b9[_0x4d3a10(0x4e9)]=_0x4aedb4,Object['entries'](_0x2e30b9['sheets'])[_0x4d3a10(0x51c)](([,_0x4562fd])=>{const _0x5da9a4=_0x4d3a10,_0x104545=_0x4562fd[_0x5da9a4(0x4e9)],_0x1c14fa=_0x17e6da['encode'](_0x5ebf66(_0x104545));_0x4562fd['originalMeta']=_0x1c14fa;});}return _0x258b3b;}async[_0x107bfd(0x483)](_0x5e7c6e,_0x471cb8){const _0x2f7a45=_0x107bfd,{unitID:_0x40a969,type:_0x5b5484,blockID:_0x531d37}=_0x471cb8,_0x2c43a0=this[_0x2f7a45(0x34e)]()+'/'+_0x5b5484+_0x2f7a45(0x3b9)+_0x40a969+_0x2f7a45(0x22c)+_0x531d37;return(await this[_0x2f7a45(0x3cf)][_0x2f7a45(0x22f)](_0x2c43a0))[_0x2f7a45(0x275)];}async[_0x107bfd(0x43c)](_0x1cc0e8,_0x4ee432){const _0x34c13e=_0x107bfd,{unitID:_0x46b8fa,type:_0x3b9ddf,blockID:_0x5911d5}=_0x4ee432,_0x143156=this[_0x34c13e(0x34e)]()+_0x34c13e(0x22c)+_0x3b9ddf+_0x34c13e(0x3b9)+_0x46b8fa+_0x34c13e(0x22c)+_0x5911d5;return(await this['_httpService'][_0x34c13e(0x22f)](_0x143156))[_0x34c13e(0x275)];}async[_0x107bfd(0x24e)](_0x2f0d1a,_0x4fb67e){const _0x855860=_0x107bfd,{unitID:_0x224523,type:_0x9b3d30,from:_0x1f3513,to:_0x1559fd}=_0x4fb67e,_0x3b5b1b=this[_0x855860(0x34e)]()+'/'+_0x9b3d30+'/unit/'+_0x224523+_0x855860(0x413)+_0x1f3513+_0x855860(0x498)+_0x1559fd;return(await this[_0x855860(0x3cf)]['get'](_0x3b5b1b))[_0x855860(0x275)];}[_0x107bfd(0x2c7)](){const _0x56c27f=_0x107bfd;var _0x522e3a;return(_0x522e3a=this[_0x56c27f(0x30f)][_0x56c27f(0x3c9)](Cn))!=null?_0x522e3a:this[_0x56c27f(0x34e)]();}['_getAPIPrefix'](){const _0x2b1c13=_0x107bfd;var _0x26fbcc,_0x109dee;const _0x5aa044=this[_0x2b1c13(0x30f)][_0x2b1c13(0x3c9)](In),_0x3c5f35=this[_0x2b1c13(0x30f)][_0x2b1c13(0x3c9)](j);return(_0x109dee=(_0x26fbcc=_0x3c5f35==null?void 0x0:_0x3c5f35['snapshotServerUrl'])!=null?_0x26fbcc:_0x5aa044)!=null?_0x109dee:En;}async[_0x107bfd(0x404)](_0x359d4e,_0x1c8c4b){const _0xa4e72a=_0x107bfd,_0x496d50=_0xa4e72a(0x476)+_0x1c8c4b[_0xa4e72a(0x4de)]+_0xa4e72a(0x3b9)+_0x1c8c4b[_0xa4e72a(0x4e1)]+'/resources';return(await this[_0xa4e72a(0x3cf)]['get'](_0x496d50,{'params':{'resourceId':JSON[_0xa4e72a(0x304)](_0x1c8c4b['resourceIDs'])}}))[_0xa4e72a(0x275)];}[_0x107bfd(0x234)](){const _0x25c3e5=_0x107bfd;throw new Error(_0x25c3e5(0x3c4));}[_0x107bfd(0x279)](){const _0x1b186c=_0x107bfd;throw new Error(_0x1b186c(0x3c4));}[_0x107bfd(0x4b8)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['copyFileMeta'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x107bfd(0x38e)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};At=ha([Is(0x0,_0x4d9096),Is(0x1,_0x22b1d4(_0x1f1833))],At);var la=Object[_0x107bfd(0x1ea)],_a=Object[_0x107bfd(0x22d)],ua=(_0x41a5a6,_0x3bf24d,_0x5be36d,_0x33a94f)=>{const _0x3776ee=_0x107bfd;for(var _0x2411f3=_0x33a94f>0x1?void 0x0:_0x33a94f?_a(_0x3bf24d,_0x5be36d):_0x3bf24d,_0x5dea7f=_0x41a5a6[_0x3776ee(0x38d)]-0x1,_0x5e9517;_0x5dea7f>=0x0;_0x5dea7f--)(_0x5e9517=_0x41a5a6[_0x5dea7f])&&(_0x2411f3=(_0x33a94f?_0x5e9517(_0x3bf24d,_0x5be36d,_0x2411f3):_0x5e9517(_0x2411f3))||_0x2411f3);return _0x33a94f&&_0x2411f3&&la(_0x3bf24d,_0x5be36d,_0x2411f3),_0x2411f3;},Ne=(_0x38520a,_0xadca37)=>(_0xb305fa,_0x122c3f)=>_0xadca37(_0xb305fa,_0x122c3f,_0x38520a);let Mt=class extends _0x2aaeb6{constructor(_0x2ebb38,_0x4f2047,_0x4ed625,_0x169dcc,_0x2bd176){const _0x50aebb=_0x107bfd;super(_0x2ebb38,_0x4f2047,_0x4ed625),this[_0x50aebb(0x294)]=_0x169dcc,this['_logService']=_0x2bd176;}[_0x107bfd(0x2f0)](_0x5a1a28,_0x31e669){const _0x13e37a=_0x107bfd,_0x5af9e3=this[_0x13e37a(0x428)](_0x5a1a28);if(_0x5af9e3)try{const _0x4f1886=this[_0x13e37a(0x4c5)](_0x5af9e3,_0x31e669);this[_0x13e37a(0x370)](_0x5a1a28,_0x4f1886);}catch(_0x9337e5){this[_0x13e37a(0x3f1)]['error'](_0x13e37a(0x53c),_0x9337e5),this['_clearUndo'](_0x5a1a28);}const _0x37b25b=this[_0x13e37a(0x228)](_0x5a1a28);if(_0x37b25b)try{const _0x78e97=this[_0x13e37a(0x4c5)](_0x37b25b,_0x31e669);this['_substituteRedoStack'](_0x5a1a28,_0x78e97);}catch(_0x4e5c73){this[_0x13e37a(0x3f1)][_0x13e37a(0x332)](_0x4e5c73),this['_clearRedo'](_0x5a1a28);}}[_0x107bfd(0x1e8)](_0xaf9fb5){const _0x2ca32e=_0x107bfd,_0xbd67af=this[_0x2ca32e(0x428)](_0xaf9fb5);_0xbd67af&&(_0xbd67af['length']=0x0,this[_0x2ca32e(0x1f8)]());}[_0x107bfd(0x3aa)](_0x48a50b){const _0xbea927=_0x107bfd,_0x2f0e11=this[_0xbea927(0x228)](_0x48a50b);_0x2f0e11&&(_0x2f0e11[_0xbea927(0x38d)]=0x0,this[_0xbea927(0x1f8)]());}[_0x107bfd(0x370)](_0x155338,_0x55a80a){const _0x555bd6=_0x107bfd;this[_0x555bd6(0x4ae)][_0x555bd6(0x4b9)](_0x155338,_0x55a80a),this[_0x555bd6(0x1f8)]();}['_substituteRedoStack'](_0x505105,_0x24bb75){const _0x4a17e6=_0x107bfd;this[_0x4a17e6(0x40e)][_0x4a17e6(0x4b9)](_0x505105,_0x24bb75),this['_updateStatus']();}[_0x107bfd(0x4c5)](_0x556609,_0x1f6887){const _0x427d60=_0x107bfd,_0x32bd44=[];let _0x2e4417=_0x1f6887,_0x57fc82=_0x1f6887;for(let _0x2765f3=_0x556609[_0x427d60(0x38d)]-0x1;_0x2765f3>=0x0;_0x2765f3--){const {unitID:_0x391e26,undoMutations:_0x28a6ee,redoMutations:_0x389def}=_0x556609[_0x2765f3],_0x281d75=this['_transformService']['transformMutationsWithChangeset'](_0x2e4417,_0x28a6ee),_0x16a78e=this[_0x427d60(0x294)][_0x427d60(0x2f6)](_0x57fc82,_0x389def);if(_0x1290be(_0x281d75)||_0x1290be(_0x16a78e)){this[_0x427d60(0x3f1)][_0x427d60(0x332)](_0x427d60(0x53c),_0x427d60(0x2d2),_0x281d75,_0x16a78e);break;}_0x2e4417=_0x281d75[_0x427d60(0x474)],_0x57fc82=_0x16a78e[_0x427d60(0x474)],_0x32bd44['push']({'unitID':_0x391e26,'undoMutations':_0x281d75[_0x427d60(0x3cc)],'redoMutations':_0x16a78e[_0x427d60(0x3cc)]});}return _0x32bd44['reverse']();}};Mt=ua([Ne(0x0,_0x4bc21f),Ne(0x1,_0x156a6a),Ne(0x2,_0x706f81),Ne(0x3,_0x3a5354),Ne(0x4,_0x42be42)],Mt);class da extends _0x4fe933{constructor(){const _0x3d238e=_0x107bfd;super(),l(this,_0x3d238e(0x43b)),this[_0x3d238e(0x43b)]=_0x1d2a7c(window,'popstate')[_0x3d238e(0x321)](_0x31a17e(this[_0x3d238e(0x373)]),_0x5ecc6d(0x1),_0x3898e3(void 0x0));}['setParam'](_0x3fb900,_0x3ca4e7,_0x3553e2=!0x1){const _0x10dcce=_0x107bfd,_0x2cce58=new URL(window['location'][_0x10dcce(0x306)]);_0x2cce58[_0x10dcce(0x3d1)][_0x10dcce(0x4b9)](_0x3fb900,_0x3ca4e7),_0x3553e2?window[_0x10dcce(0x21c)][_0x10dcce(0x229)]('','',_0x2cce58[_0x10dcce(0x34f)]()):window[_0x10dcce(0x21c)]['pushState']('','',_0x2cce58['toString']());}[_0x107bfd(0x1eb)](_0x10b139,_0x5e08e7=!0x1){const _0x5966fb=_0x107bfd,_0x552fe7=new URL(window[_0x5966fb(0x493)][_0x5966fb(0x306)]);_0x552fe7[_0x5966fb(0x3d1)][_0x5966fb(0x222)](_0x10b139),_0x5e08e7?window[_0x5966fb(0x21c)]['replaceState']('','',_0x552fe7[_0x5966fb(0x34f)]()):window[_0x5966fb(0x21c)][_0x5966fb(0x37f)]('','',_0x552fe7[_0x5966fb(0x34f)]());}[_0x107bfd(0x50b)](_0x140a66){const _0x1db9b6=_0x107bfd;var _0x2353e;return(_0x2353e=new URL(window[_0x1db9b6(0x493)][_0x1db9b6(0x306)])['searchParams']['get'](_0x140a66))!=null?_0x2353e:void 0x0;}}var ei=Object['defineProperty'],ma=Object[_0x107bfd(0x22d)],fa=(_0x4048b5,_0x4cafa1,_0x5294a4)=>_0x4cafa1 in _0x4048b5?ei(_0x4048b5,_0x4cafa1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5294a4}):_0x4048b5[_0x4cafa1]=_0x5294a4,ga=(_0xbc582d,_0x51fb5c,_0x13ca25,_0x81d3d2)=>{const _0x438021=_0x107bfd;for(var _0x1d9590=_0x81d3d2>0x1?void 0x0:_0x81d3d2?ma(_0x51fb5c,_0x13ca25):_0x51fb5c,_0x41b1e6=_0xbc582d[_0x438021(0x38d)]-0x1,_0x2e3ff4;_0x41b1e6>=0x0;_0x41b1e6--)(_0x2e3ff4=_0xbc582d[_0x41b1e6])&&(_0x1d9590=(_0x81d3d2?_0x2e3ff4(_0x51fb5c,_0x13ca25,_0x1d9590):_0x2e3ff4(_0x1d9590))||_0x1d9590);return _0x81d3d2&&_0x1d9590&&ei(_0x51fb5c,_0x13ca25,_0x1d9590),_0x1d9590;},Fe=(_0x5c829e,_0x22bb75)=>(_0x1e1c79,_0x3fa1d5)=>_0x22bb75(_0x1e1c79,_0x3fa1d5,_0x5c829e),Sa=(_0x2eda77,_0x13e08c,_0x4e29fa)=>fa(_0x2eda77,_0x13e08c+'',_0x4e29fa);const pa=_0x107bfd(0x4c9);let Lt=class extends _0x190ba5{constructor(_0x5f5b2a=jn,_0x8f5937,_0x33a5eb,_0x3f6a0d,_0x56ee21){const _0x2dd4e2=_0x107bfd;super(),this[_0x2dd4e2(0x4f8)]=_0x5f5b2a,this['_logService']=_0x8f5937,this[_0x2dd4e2(0x3ee)]=_0x33a5eb,this[_0x2dd4e2(0x2f8)]=_0x3f6a0d,this[_0x2dd4e2(0x30f)]=_0x56ee21;const {..._0x955f7f}=this['_config'];this[_0x2dd4e2(0x30f)][_0x2dd4e2(0x24c)](j,_0x955f7f);}[_0x107bfd(0x3e7)](){const _0x3591ac=_0x107bfd;this['_registerDependencies'](),_0x169005(this[_0x3591ac(0x2f8)],[[Ce],[Ze],[st]]);}['onReady'](){const _0x1510de=_0x107bfd;_0x169005(this[_0x1510de(0x2f8)],[[Qe]]);}[_0x107bfd(0x526)](){const _0x28cb1e=_0x107bfd;this[_0x28cb1e(0x207)]();}[_0x107bfd(0x3ac)](){const _0x35b929=_0x107bfd;var _0x35ac38,_0x5b8542,_0x4c9563,_0x30bbfe;this[_0x35b929(0x2f8)][_0x35b929(0x1fa)](_0x4a0d1d)&&this[_0x35b929(0x3f1)][_0x35b929(0x332)](_0x35b929(0x357),_0x35b929(0x529));let _0x1da6b8=[[_0x4a0d1d,{'useClass':Mt}],[ue],[Yt],[_0x1f1833],[Qs,{'useClass':da}],[_e],[D],[_0x41211a],[qe],[Je],[Xe],[Wt],[et],[tt],[Fs],[st],[Vs,{'useClass':(_0x5b8542=(_0x35ac38=this[_0x35b929(0x4f8)])==null?void 0x0:_0x35ac38['socketService'])!=null?_0x5b8542:bt}],[_0x1b72ab,{'useClass':_0x581680}],[_0x3377fb,{'useClass':At}],[_0x1f8830,{'useClass':Ut}],[_0x1691f3,{'useClass':Nt}],[$e],[Ze],[Me],[Qe],[Ce]];(_0x4c9563=this[_0x35b929(0x4f8)])!=null&&_0x4c9563['enableSingleActiveInstanceLock']&&_0x1da6b8[_0x35b929(0x30d)]([it,{'useClass':Sr}]),_0x1da6b8=_0x387849(_0x1da6b8,(_0x30bbfe=this[_0x35b929(0x4f8)])==null?void 0x0:_0x30bbfe[_0x35b929(0x2c9)]),_0x1da6b8['forEach'](_0x545487=>this['_injector'][_0x35b929(0x2fc)](_0x545487)),this[_0x35b929(0x4b7)]();}[_0x107bfd(0x207)](){const _0x75a529=_0x107bfd;this[_0x75a529(0x2b2)](this[_0x75a529(0x3ee)][_0x75a529(0x46a)](_0xdaf2b4['UNIVER_DOC'],[Pt])),this[_0x75a529(0x2b2)](this[_0x75a529(0x3ee)][_0x75a529(0x46a)](_0xdaf2b4[_0x75a529(0x547)],[yt]));}[_0x107bfd(0x4b7)](){const _0x1474cd=_0x107bfd;var _0xeeb637,_0x23fe3a;this[_0x1474cd(0x2f8)][_0x1474cd(0x22f)](_0x1f1833)['registerHTTPInterceptor']({'priority':0x14,'interceptor':_0x6f5395({'maxParallel':0x6})}),this[_0x1474cd(0x2f8)][_0x1474cd(0x22f)](tt),(_0xeeb637=this['_config'])!=null&&_0xeeb637[_0x1474cd(0x455)]||this[_0x1474cd(0x2f8)][_0x1474cd(0x22f)](D)[_0x1474cd(0x2b5)](),(_0x23fe3a=this[_0x1474cd(0x4f8)])!=null&&_0x23fe3a['enableAuthServer']&&this[_0x1474cd(0x2f8)][_0x1474cd(0x22f)](et),this[_0x1474cd(0x2f8)][_0x1474cd(0x22f)]($e),this[_0x1474cd(0x2f8)][_0x1474cd(0x1fa)](Me)&&this[_0x1474cd(0x2f8)][_0x1474cd(0x22f)](Me);}};Sa(Lt,'pluginName',pa),Lt=ga([_0xcb82ec(_0x59f26a),Fe(0x1,_0x42be42),Fe(0x2,_0x1c4916),Fe(0x3,_0x22b1d4(_0x12b4cf)),Fe(0x4,_0x4d9096)],Lt);export{Fo as AUTHZ_URL_KEY,Ut as AuthzIoHttpService,An as COLLAB_SUBMIT_CHANGESET_URL_KEY,Tn as COLLAB_WEB_SOCKET_URL_KEY,$e as CollaborationController,ze as CollaborationEntity,Tt as CollaborationSession,ue as CollaborationSessionService,bt as CollaborationSocketService,w as CollaborationStatus,To as CollaborationStatusDisplay,Fs as CommentService,Ze as DataLoaderController,Me as DesktopCollaborationStatusDisplayController,Rt as DocCollaborationEntity,On as HEARTBEAT_INTERVAL_KEY,Hs as HEARTBEAT_TIMEOUT_KEY,Vs as ICollaborationSocketService,Qs as IURLService,Nt as ImageIoService,Un as LOCAL_CACHE_INTERVAL_KEY,Ln as LOGIN_URL_KEY,D as LocalCacheService,_e as MemberService,Pn as RETRY_CONNECTING_MAX_COUNT_KEY,Ha as SEND_CHANGESET_TIMEOUT_KEY,In as SNAPSHOT_SERVER_URL_KEY,Cn as SNAPSHOT_URL_KEY,X as SessionStatus,no as SheetCollabCursorShape,Ot as SheetCollaborationEntity,At as SnapshotServerOverHTTPService,Lt as UniverCollaborationClientPlugin,da as WebURLService,Hn as deserializeToCombResponse,xn as serializeCombRequest};