@univerjs-pro/collaboration-client 0.2.12 → 0.2.14

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 _0x2908d8=_0x1140;(function(_0x578747,_0xec2841){const _0x294b8a=_0x1140,_0x59bae2=_0x578747();while(!![]){try{const _0x5ecc62=-parseInt(_0x294b8a(0x20f))/0x1+parseInt(_0x294b8a(0x159))/0x2*(-parseInt(_0x294b8a(0x346))/0x3)+-parseInt(_0x294b8a(0x21d))/0x4+parseInt(_0x294b8a(0x1ea))/0x5+-parseInt(_0x294b8a(0x3a7))/0x6+parseInt(_0x294b8a(0x417))/0x7*(parseInt(_0x294b8a(0x3a1))/0x8)+-parseInt(_0x294b8a(0x14a))/0x9*(-parseInt(_0x294b8a(0x295))/0xa);if(_0x5ecc62===_0xec2841)break;else _0x59bae2['push'](_0x59bae2['shift']());}catch(_0xb85cff){_0x59bae2['push'](_0x59bae2['shift']());}}}(_0x3fc5,0xbca31));var Js=Object['defineProperty'],zs=(_0x53af55,_0x2eca2a,_0x5ddcae)=>_0x2eca2a in _0x53af55?Js(_0x53af55,_0x2eca2a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5ddcae}):_0x53af55[_0x2eca2a]=_0x5ddcae,l=(_0x5b311c,_0x46f3a1,_0x1edb88)=>zs(_0x5b311c,typeof _0x46f3a1!=_0x2908d8(0x3be)?_0x46f3a1+'':_0x46f3a1,_0x1edb88);import{createIdentifier as _0xff730e,DisposableCollection as _0x548484,toDisposable as _0x58e78e,Inject as _0x573d4d,IConfigService as _0x3abdb4,ILogService as _0x38155a,Disposable as _0x5d8459,UniverInstanceType as _0x50520e,UserManagerService as _0x1ac4cb,IUniverInstanceService as _0x52e604,RxDisposable as _0x5afe1b,LocaleService as _0x5071b4,Optional as _0x2b0397,Injector as _0x100ac5,Tools as _0x34c7a8,ILocalStorageService as _0x3997ea,ICommandService as _0x2bd668,JSONX as _0x231ca6,CommandType as _0x49ed46,IPermissionService as _0x1984e0,IUndoRedoService as _0x3ed2c5,sequenceExecute as _0x45fa8f,Rectangle as _0x110525,OnLifecycle as _0x1e52da,LifecycleStages as _0x3ebf67,ThemeService as _0x1e29a1,useDependency as _0x9429d7,connectInjector as _0x143ba4,Workbook as _0x3c5d77,LocalUndoRedoService as _0x181a3f,IContextService as _0x4c4187,COLORS as _0xbb5a24,ColorKit as _0x467b1f,fromEventSubject as _0x536195,isInternalEditorID as _0x512341,Plugin as _0x361fa5,IAuthzIoService as _0x5bd60e,mergeOverrideWithDependencies as _0x320f1a,DependentOn as _0x1f6b2d}from'@univerjs/core';import{Subject as _0x59e98b,merge as _0x52a416,takeUntil as _0x4f72a2,BehaviorSubject as _0x5a6925,distinctUntilChanged as _0xaec0cf,fromEvent as _0x3c1931,map as _0x43f74d,shareReplay as _0x2e7acf,take as _0x462e64,of as _0xc0017a,debounceTime as _0x172aba,filter as _0x230e40,switchMap as _0x1d335,combineLatest as _0x26b443,mapTo as _0x57ea85,concatMap as _0x4586fc}from'rxjs';import{map as _0x391b01,take as _0x2fa718,filter as _0x51803d,delay as _0x12b4d6,takeUntil as _0x5953cf,switchMap as _0x19a6e7,throttleTime as _0x5aa88d}from'rxjs/operators';import{MessageType as _0x42502c,Tooltip as _0x728f60}from'@univerjs/design';import{IBeforeCloseService as _0x4e50c2,IMessageService as _0x6d8428,INotificationService as _0x3bf708,useObservable as _0xbcaa84,BuiltInUIPart as _0x3aecfb,IUIPartsService as _0x5de437}from'@univerjs/ui';import{HTTPService as _0x2d51dc,WebSocketService as _0x4447fb,MergeInterceptorFactory as _0x42b29c,HTTPRequest as _0xaea16d,IHTTPImplementation as _0x4d903c,XHRHTTPImplementation as _0x2527e3,ThresholdInterceptorFactory as _0x108edb}from'@univerjs/network';import{CollaborationEvent as _0x2ca871,parseChangesetToProtocol as _0x355460,ISnapshotServerService as _0x5d1d4f,isTransformMutationFailure as _0x18c8e5,isTransformMutationsWithChangesetSuccess as _0x5a2236,ITransformService as _0x35595c,RevisionService as _0xa35cc,mapDocumentTypeToUniverType as _0x489540,isTransformChangesetsSuccess as _0x3fdc14,parseProtocolChangeset as _0x29c246,CompressMutationService as _0x123deb,SnapshotService as _0x232e25,textEncoder as _0x28a27b,b64DecodeUnicode as _0x556542,isTransformMutationsWithChangesetFailure as _0x2ba11f,UniverCollaborationPlugin as _0x42e95f}from'@univerjs-pro/collaboration';import{ITelemetryService as _0x2b6c9d}from'@univerjs/telemetry';import{IMEInputManagerService as _0x49d2f3,TextSelectionManagerService as _0x459ea4,serializeDocRange as _0x2100d1,RichTextEditingMutation as _0x13ef0c,DocStateChangeManagerService as _0x1211ce,SetTextSelectionsOperation as _0xd5e081,SetDocZoomRatioOperation as _0x585b41,DocSkeletonManagerService as _0x40db62}from'@univerjs/docs';import{SheetsSelectionsService as _0x1f939b,SetSelectionsOperation as _0xb83057,InsertSheetMutation as _0x5a7640,EmptyMutation as _0x474203,WorkbookEditablePermission as _0x4eedfe,RefRangeService as _0x3afbc0,EffectRefRangId as _0x2d4b29,handleIRemoveRow as _0x379c84,handleIRemoveCol as _0x43536b,handleMoveRange as _0x2e70c5,handleInsertRow as _0xcd2977,handleInsertRangeMoveRight as _0x315c1c,handleInsertRangeMoveDown as _0x3c4ee7,handleInsertCol as _0x1a5271,handleDeleteRangeMoveUp as _0x1bdead,handleDeleteRangeMoveLeft as _0x211fe8,runRefRangeMutations as _0x309147,SetWorksheetActivateCommand as _0x217559}from'@univerjs/sheets';import{ImageSourceType as _0x6f3cfe,ImageUploadStatusType as _0x12359d,IImageIoService as _0x404524}from'@univerjs/drawing';import{Shape as _0x3bcf23,Rect as _0x45456d,Vector2 as _0x29234d,NodePositionConvertToCursor as _0x669d7e,isValidRectRange as _0x4a103f,NodePositionConvertToRectRange as _0x38e8fb,getColor as _0x14448f,TEXT_RANGE_LAYER_INDEX as _0x235d07,RegularPolygon as _0x1a1e3b,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x4f4c39,IRenderManagerService as _0x33ca16}from'@univerjs/engine-render';import{deserializeRangeWithSheet as _0x238be7,serializeRangeWithSheet as _0x3f5e75}from'@univerjs/engine-formula';import _0x598329 from'lodash/debounce';import{VIEWPORT_KEY as _0x401402,getCoordByCell as _0x5707a5,getSheetObject as _0x4ce2e8,SheetSkeletonManagerService as _0x4e74c5,SheetPermissionInitController as _0x3c6fe8}from'@univerjs/sheets-ui';import _0x333221,{forwardRef as _0x12f5f1,useRef as _0x201f53,createElement as _0x1f4991,useCallback as _0x4ccb32}from'react';import _0x35bfa9 from'clsx';import{IRemoteInstanceService as _0x1700c5}from'@univerjs/rpc';const un=_0x2908d8(0x1bc),dn=_0x2908d8(0x20b),mn=_0x2908d8(0x465),fn=_0x2908d8(0x28c),gn=0x7d0,Sn='COLLAB_WEB_SOCKET_URL',pn=_0x2908d8(0x3ba),vn=_0x2908d8(0x250),In=0x7530,Ns=_0x2908d8(0x3d0),ys=0x2710,En=_0x2908d8(0x164),Cn=0x4e20,bn=_0x2908d8(0x40d),Tn=0x3,Rn=_0x2908d8(0x428),On=0x3e8,Dn=_0x2908d8(0x279),wn=_0x2908d8(0x394),Pn='LOGIN_URL_KEY',Nn='/universer-api/oidc/authpage';var Ms=(_0x5cc302=>(_0x5cc302[_0x5cc302['UNDEFINED']=0x0]='UNDEFINED',_0x5cc302[_0x5cc302['OK']=0x1]='OK',_0x5cc302[_0x5cc302['INTERNAL_ERROR']=0x2]=_0x2908d8(0x290),_0x5cc302[_0x5cc302[_0x2908d8(0x42c)]=0x3]='PERMISSION_DENIED',_0x5cc302[_0x5cc302[_0x2908d8(0x19d)]=0x4]=_0x2908d8(0x19d),_0x5cc302[_0x5cc302[_0x2908d8(0x236)]=0x5]=_0x2908d8(0x236),_0x5cc302[_0x5cc302[_0x2908d8(0x300)]=0x6]=_0x2908d8(0x300),_0x5cc302[_0x5cc302[_0x2908d8(0x1e5)]=0x7]=_0x2908d8(0x1e5),_0x5cc302[_0x5cc302[_0x2908d8(0x31c)]=0x8]=_0x2908d8(0x31c),_0x5cc302[_0x5cc302['COMPLETION_FINISHED']=0x9]='COMPLETION_FINISHED',_0x5cc302[_0x5cc302[_0x2908d8(0x201)]=0x1389]=_0x2908d8(0x201),_0x5cc302[_0x5cc302[_0x2908d8(0x1cf)]=0x1771]=_0x2908d8(0x1cf),_0x5cc302[_0x5cc302['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x2908d8(0x180),_0x5cc302[_0x5cc302[_0x2908d8(0x37e)]=0x1b59]='APPLY_REJECT',_0x5cc302[_0x5cc302[_0x2908d8(0x2b8)]=0x1b5a]=_0x2908d8(0x2b8),_0x5cc302[_0x5cc302['APPLY_REVISION_CONFILICT']=0x1b5b]='APPLY_REVISION_CONFILICT',_0x5cc302[_0x5cc302[_0x2908d8(0x436)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x5cc302[_0x5cc302[_0x2908d8(0x481)]=0x1f41]=_0x2908d8(0x481),_0x5cc302[_0x5cc302[_0x2908d8(0x48d)]=0x2329]=_0x2908d8(0x48d),_0x5cc302[_0x5cc302[_0x2908d8(0x381)]=0x232a]=_0x2908d8(0x381),_0x5cc302[_0x5cc302[_0x2908d8(0x2b9)]=0x232b]=_0x2908d8(0x2b9),_0x5cc302[_0x5cc302[_0x2908d8(0x181)]=0x232c]=_0x2908d8(0x181),_0x5cc302[_0x5cc302[_0x2908d8(0x466)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x5cc302[_0x5cc302[_0x2908d8(0x376)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x5cc302[_0x5cc302[_0x2908d8(0x3a4)]=0x2712]=_0x2908d8(0x3a4),_0x5cc302[_0x5cc302['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x2908d8(0x414),_0x5cc302[_0x5cc302[_0x2908d8(0x452)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x5cc302[_0x5cc302[_0x2908d8(0x143)]=-0x1]=_0x2908d8(0x143),_0x5cc302))(Ms||{}),x=(_0x52866b=>(_0x52866b[_0x52866b[_0x2908d8(0x32e)]=0x0]=_0x2908d8(0x32e),_0x52866b[_0x52866b[_0x2908d8(0x461)]=0x1]=_0x2908d8(0x461),_0x52866b[_0x52866b['UNIVER_SHEET']=0x2]=_0x2908d8(0x37d),_0x52866b[_0x52866b[_0x2908d8(0x43f)]=0x3]=_0x2908d8(0x43f),_0x52866b[_0x52866b[_0x2908d8(0x491)]=0x4]='UNIVER_PROJECT',_0x52866b[_0x52866b[_0x2908d8(0x143)]=-0x1]=_0x2908d8(0x143),_0x52866b))(x||{}),I=(_0x23c8f9=>(_0x23c8f9[_0x23c8f9[_0x2908d8(0x148)]=0x0]=_0x2908d8(0x148),_0x23c8f9[_0x23c8f9[_0x2908d8(0x23a)]=0x1]=_0x2908d8(0x23a),_0x23c8f9[_0x23c8f9[_0x2908d8(0x3ed)]=0x2]=_0x2908d8(0x3ed),_0x23c8f9[_0x23c8f9['LEAVE']=0x3]=_0x2908d8(0x287),_0x23c8f9[_0x23c8f9[_0x2908d8(0x210)]=0x4]='INGEST',_0x23c8f9[_0x23c8f9['HEARTBEAT']=0x5]='HEARTBEAT',_0x23c8f9[_0x23c8f9[_0x2908d8(0x3da)]=0x6]=_0x2908d8(0x3da),_0x23c8f9[_0x23c8f9['UNRECOGNIZED']=-0x1]=_0x2908d8(0x143),_0x23c8f9))(I||{}),Ht=(_0x2c4582=>(_0x2c4582[_0x2c4582['UNKNOWN_CODE']=0x0]=_0x2908d8(0x3c1),_0x2c4582[_0x2c4582['OK']=0x1]='OK',_0x2c4582[_0x2c4582[_0x2908d8(0x29f)]=0x2]=_0x2908d8(0x29f),_0x2c4582[_0x2c4582[_0x2908d8(0x143)]=-0x1]=_0x2908d8(0x143),_0x2c4582))(Ht||{}),As=(_0x1cad95=>(_0x1cad95[_0x1cad95[_0x2908d8(0x482)]=0x0]='Undefined',_0x1cad95[_0x1cad95[_0x2908d8(0x251)]=0x1]='HttpImport',_0x1cad95[_0x1cad95[_0x2908d8(0x30a)]=0x2]=_0x2908d8(0x30a),_0x1cad95[_0x1cad95[_0x2908d8(0x283)]=0x3]=_0x2908d8(0x283),_0x1cad95[_0x1cad95[_0x2908d8(0x2e5)]=0x4]=_0x2908d8(0x2e5),_0x1cad95[_0x1cad95[_0x2908d8(0x143)]=-0x1]='UNRECOGNIZED',_0x1cad95))(As||{});function yn(_0x23eb85){const _0x4087f6=_0x2908d8;var _0x86e63f,_0x55794d,_0x3a68c5,_0x34c54d;const _0x4d5ffe=_0x23eb85[_0x4087f6(0x1ee)],_0x31801c=JSON['parse'](_0x4d5ffe);switch(_0x31801c['cmd']){case I[_0x4087f6(0x1e6)]:case I[_0x4087f6(0x23a)]:{const _0x18e280=_0x31801c[_0x4087f6(0x28a)];return{..._0x31801c,'data':_0x18e280,'cmd':_0x31801c[_0x4087f6(0x350)]};}case I[_0x4087f6(0x3ed)]:{const _0x4c5d30=_0x31801c[_0x4087f6(0x403)];return{..._0x31801c,'data':_0x4c5d30,'cmd':_0x31801c[_0x4087f6(0x350)]};}case I['RECV']:{const _0x266d79=_0x31801c[_0x4087f6(0x3a9)];switch(_0x266d79[_0x4087f6(0x1d7)]){case _0x2ca871[_0x4087f6(0x25e)]:return{..._0x31801c,'data':{..._0x266d79,'data':(_0x86e63f=_0x266d79[_0x4087f6(0x269)])==null?void 0x0:_0x86e63f['cs']},'cmd':_0x31801c['cmd']};case _0x2ca871[_0x4087f6(0x3c0)]:return{..._0x31801c,'data':{..._0x266d79,'data':(_0x55794d=_0x266d79[_0x4087f6(0x32d)])==null?void 0x0:_0x55794d['cs']},'cmd':_0x31801c[_0x4087f6(0x350)]};case _0x2ca871[_0x4087f6(0x329)]:return{..._0x31801c,'data':{..._0x266d79,'data':(_0x3a68c5=_0x266d79[_0x4087f6(0x41d)])==null?void 0x0:_0x3a68c5['cs']},'cmd':_0x31801c[_0x4087f6(0x350)]};case _0x2ca871[_0x4087f6(0x2a7)]:return{..._0x31801c,'data':{..._0x266d79,'data':(_0x34c54d=_0x266d79[_0x4087f6(0x45d)])==null?void 0x0:_0x34c54d['cs']},'cmd':_0x31801c[_0x4087f6(0x350)]};case _0x2ca871['UPDATE_CURSOR']:return{..._0x31801c,'data':{..._0x266d79,'data':_0x266d79['updateCursorEvent']},'cmd':_0x31801c[_0x4087f6(0x350)]};case _0x2ca871['USERS_ENTER']:return{..._0x31801c,'data':{..._0x266d79,'data':_0x266d79['joinEvent']},'cmd':_0x31801c[_0x4087f6(0x350)]};case _0x2ca871[_0x4087f6(0x464)]:return{..._0x31801c,'data':{..._0x266d79,'data':_0x266d79[_0x4087f6(0x441)]},'cmd':_0x31801c[_0x4087f6(0x350)]};case _0x2ca871[_0x4087f6(0x2f1)]:return{..._0x31801c,'data':{..._0x266d79,'data':_0x266d79[_0x4087f6(0x1b4)]},'cmd':_0x31801c[_0x4087f6(0x350)]};case _0x2ca871[_0x4087f6(0x31b)]:case _0x2ca871['LIVESHARE_OPERATION']:return{..._0x31801c,'data':{..._0x266d79,'data':_0x266d79[_0x4087f6(0x197)]},'cmd':_0x31801c[_0x4087f6(0x350)]};case _0x2ca871[_0x4087f6(0x23f)]:return{..._0x31801c,'data':{..._0x266d79,'data':_0x266d79[_0x4087f6(0x1b4)]},'cmd':_0x31801c[_0x4087f6(0x350)]};case _0x2ca871[_0x4087f6(0x410)]:return{..._0x31801c,'data':_0x266d79,'cmd':_0x31801c[_0x4087f6(0x350)]};case _0x2ca871[_0x4087f6(0x369)]:return{..._0x31801c,'data':{..._0x266d79,'data':_0x266d79[_0x4087f6(0x2bb)]},'cmd':_0x31801c['cmd']};case _0x2ca871[_0x4087f6(0x2ff)]:return{..._0x31801c,'data':{..._0x266d79,'data':_0x266d79[_0x4087f6(0x25d)]},'cmd':_0x31801c[_0x4087f6(0x350)]};case _0x2ca871[_0x4087f6(0x2b0)]:return{..._0x31801c,'data':{..._0x266d79,'data':_0x266d79[_0x4087f6(0x136)]},'cmd':_0x31801c[_0x4087f6(0x350)]};default:return _0x31801c;}}default:return _0x31801c;}}function Mn(_0x57a582){const _0x5295e2=_0x2908d8;switch(_0x57a582[_0x5295e2(0x350)]){case I['HEARTBEAT']:case I['HELLO']:return JSON[_0x5295e2(0x2d3)]({'cmd':_0x57a582[_0x5295e2(0x350)],'routeKey':_0x57a582[_0x5295e2(0x271)]});case I[_0x5295e2(0x210)]:{let _0x22e0e2;switch(_0x57a582[_0x5295e2(0x1ee)]['eventID']){case _0x2ca871[_0x5295e2(0x2de)]:{_0x22e0e2={'eventID':_0x2ca871['UPDATE_CURSOR'],'updateCursorEvent':_0x57a582['data'][_0x5295e2(0x1ee)]};break;}case _0x2ca871[_0x5295e2(0x464)]:{_0x22e0e2={'eventID':_0x2ca871['USERS_LEAVE'],'leaveEvent':_0x57a582['data']['data']};break;}case _0x2ca871[_0x5295e2(0x26a)]:{_0x22e0e2={'eventID':_0x2ca871['USERS_ENTER'],'joinEvent':_0x57a582['data']['data']};break;}case _0x2ca871[_0x5295e2(0x2f1)]:{_0x22e0e2={'eventID':_0x2ca871[_0x5295e2(0x2f1)],'liveShareNewHost':_0x57a582[_0x5295e2(0x1ee)][_0x5295e2(0x1ee)]};break;}case _0x2ca871[_0x5295e2(0x205)]:{_0x22e0e2={'eventID':_0x2ca871[_0x5295e2(0x205)],'liveShareOperation':_0x57a582[_0x5295e2(0x1ee)][_0x5295e2(0x1ee)]};break;}case _0x2ca871[_0x5295e2(0x23f)]:{_0x22e0e2={'eventID':_0x2ca871[_0x5295e2(0x23f)],'liveShareTerminate':_0x57a582['data']['data']};break;}case _0x2ca871[_0x5295e2(0x3a0)]:{_0x22e0e2={'eventID':_0x2ca871[_0x5295e2(0x3a0)],'liveShareRequestHost':_0x57a582[_0x5295e2(0x1ee)][_0x5295e2(0x1ee)]};break;}case _0x2ca871[_0x5295e2(0x31b)]:{_0x22e0e2={'eventID':_0x2ca871['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x22e0e2={'eventID':_0x57a582[_0x5295e2(0x1ee)]['eventID']};}return JSON[_0x5295e2(0x2d3)]({'cmd':_0x57a582[_0x5295e2(0x350)],'routeKey':_0x57a582['routeKey'],'collaMsg':_0x22e0e2});}case I[_0x5295e2(0x3ed)]:return JSON[_0x5295e2(0x2d3)]({'cmd':_0x57a582[_0x5295e2(0x350)],'routeKey':_0x57a582[_0x5295e2(0x271)],'joinReq':_0x57a582['data']});case I[_0x5295e2(0x287)]:return JSON[_0x5295e2(0x2d3)]({'cmd':_0x57a582[_0x5295e2(0x350)],'routeKey':_0x57a582[_0x5295e2(0x271)],'leaveReq':_0x57a582[_0x5295e2(0x1ee)]});default:throw new Error(_0x5295e2(0x3e6));}}var An=Object[_0x2908d8(0x1f6)],Un=Object[_0x2908d8(0x17b)],Ln=(_0x31a2bd,_0x24a6a1,_0x187463,_0x4422fa)=>{const _0xc212c3=_0x2908d8;for(var _0x3e1b4b=_0x4422fa>0x1?void 0x0:_0x4422fa?Un(_0x24a6a1,_0x187463):_0x24a6a1,_0x1181f4=_0x31a2bd[_0xc212c3(0x478)]-0x1,_0x276fda;_0x1181f4>=0x0;_0x1181f4--)(_0x276fda=_0x31a2bd[_0x1181f4])&&(_0x3e1b4b=(_0x4422fa?_0x276fda(_0x24a6a1,_0x187463,_0x3e1b4b):_0x276fda(_0x3e1b4b))||_0x3e1b4b);return _0x4422fa&&_0x3e1b4b&&An(_0x24a6a1,_0x187463,_0x3e1b4b),_0x3e1b4b;},Te=(_0xc18ecb,_0x53102)=>(_0x4d4ad3,_0x195b47)=>_0x53102(_0x4d4ad3,_0x195b47,_0xc18ecb);const Us=_0xff730e(_0x2908d8(0x264));function $n(_0x2e7c8a,_0x52a171,_0x1b3663){const _0x370a37=_0x2908d8;return _0x2e7c8a+'/'+_0x52a171+_0x370a37(0x375)+_0x1b3663+_0x370a37(0x38d);}let Et=class{constructor(_0x16f552,_0x46bb01,_0x364c2a,_0xe7f115,_0x100ae9){const _0xb1e860=_0x2908d8;this[_0xb1e860(0x280)]=_0x16f552,this[_0xb1e860(0x3f8)]=_0x46bb01,this[_0xb1e860(0x168)]=_0x364c2a,this[_0xb1e860(0x49c)]=_0xe7f115,this[_0xb1e860(0x16c)]=_0x100ae9;}[_0x2908d8(0x1d3)](_0xcecb42){const _0x5f5c4d=_0x2908d8,_0x500424=this[_0x5f5c4d(0x3f8)][_0x5f5c4d(0x1d3)](_0xcecb42);if(!_0x500424)throw new Error(_0x5f5c4d(0x3d4));const _0x26ae3c=new _0x548484(),_0x40c6f1=new _0x59e98b();_0x26ae3c[_0x5f5c4d(0x40c)](_0x500424[_0x5f5c4d(0x339)][_0x5f5c4d(0x298)](_0x53b6d9=>_0x40c6f1[_0x5f5c4d(0x151)](_0x53b6d9))),_0x26ae3c[_0x5f5c4d(0x40c)](_0x58e78e(()=>_0x40c6f1[_0x5f5c4d(0x2d4)]()));const _0xd9e87f=new _0x59e98b();_0x26ae3c['add'](_0x500424[_0x5f5c4d(0x480)][_0x5f5c4d(0x298)](_0x18a53d=>_0xd9e87f[_0x5f5c4d(0x151)](_0x18a53d))),_0x26ae3c[_0x5f5c4d(0x40c)](_0x58e78e(()=>_0xd9e87f['complete']()));const _0x43ca9a=new _0x59e98b();_0x26ae3c['add'](_0x500424[_0x5f5c4d(0x3c5)][_0x5f5c4d(0x298)](_0x643f66=>{const _0xbbbe59=_0x5f5c4d,_0x321059=yn(_0x643f66);_0x43ca9a[_0xbbbe59(0x151)](_0x321059);})),_0x26ae3c[_0x5f5c4d(0x40c)](_0x58e78e(()=>_0x43ca9a[_0x5f5c4d(0x2d4)]()));const _0x125f80=()=>{const _0x58f86a=_0x5f5c4d;_0xd9e87f[_0x58f86a(0x151)](new Event('connection\x20error')),_0x40c6f1[_0x58f86a(0x151)](new CloseEvent(_0x58f86a(0x2d2))),_0x6ca882[_0x58f86a(0x26d)]();},_0x6ca882={'memberID':'','close$':_0x40c6f1[_0x5f5c4d(0x165)](),'error$':_0xd9e87f[_0x5f5c4d(0x165)](),'open$':_0x500424[_0x5f5c4d(0x2be)],'message$':_0x43ca9a[_0x5f5c4d(0x165)](),'send':_0xc906da=>{const _0x53ffd7=_0x5f5c4d;if(_0xc906da[_0x53ffd7(0x350)]===I[_0x53ffd7(0x210)]){if(_0xc906da[_0x53ffd7(0x1ee)][_0x53ffd7(0x1d7)]===_0x2ca871[_0x53ffd7(0x208)]){this['_submitChangeset'](_0x6ca882,_0xc906da[_0x53ffd7(0x1ee)])[_0x53ffd7(0x3fc)](_0x40c05f=>{const _0x301506=_0x53ffd7;this[_0x301506(0x49c)][_0x301506(0x2f3)](_0x40c05f),_0x125f80();});return;}if(_0xc906da['data']['eventID']===_0x2ca871[_0x53ffd7(0x1da)]){const _0x2f321e=_0xc906da['data'];this[_0x53ffd7(0x19c)](_0x2f321e)[_0x53ffd7(0x378)](_0x50b1dc=>{const _0x1d6795=_0x53ffd7;_0x43ca9a[_0x1d6795(0x151)]({'cmd':I[_0x1d6795(0x3da)],'code':Ht['OK'],'routeKey':_0x2f321e['data'][_0x1d6795(0x1ae)],'routeType':'','data':{'eventID':_0x2ca871[_0x1d6795(0x457)],'data':{'changesets':_0x50b1dc}}});})[_0x53ffd7(0x3fc)](_0x3c5f65=>{const _0x88f768=_0x53ffd7;this[_0x88f768(0x49c)][_0x88f768(0x2f3)](_0x3c5f65),_0x125f80();});return;}}_0x500424[_0x53ffd7(0x225)](Mn(_0xc906da));},'close':()=>{const _0x1caf71=_0x5f5c4d;_0x500424[_0x1caf71(0x26d)](),_0x26ae3c[_0x1caf71(0x1bf)]();}};return _0x6ca882;}async[_0x2908d8(0x41f)](_0x9ea115,_0xc91d54){const _0xe27ae4=_0x2908d8;var _0x35dd1a;const {unitType:_0x1f2cb5,unitID:_0x4bd5ef,changeset:_0xfd9165}=_0xc91d54[_0xe27ae4(0x1ee)],_0x34956d={'unitID':_0x4bd5ef,'memberID':_0x9ea115['memberID'],'type':_0x1f2cb5,'changeset':_0x355460(_0xfd9165)},_0x349184=$n((_0x35dd1a=this[_0xe27ae4(0x168)][_0xe27ae4(0x157)](Dn))!=null?_0x35dd1a:wn,_0x1f2cb5,_0x4bd5ef);try{await this['_http'][_0xe27ae4(0x2c7)](_0x349184,{'body':_0x34956d});}catch(_0x56abd6){throw this[_0xe27ae4(0x49c)][_0xe27ae4(0x2f3)](_0xe27ae4(0x43c),_0xe27ae4(0x272)),_0x56abd6;}}async[_0x2908d8(0x19c)](_0x4d950d){const _0x464da6=_0x2908d8,{unitID:_0xe4aed,from:_0x42431b,to:_0x247e66,unitType:_0x18db04}=_0x4d950d[_0x464da6(0x1ee)];return(await this[_0x464da6(0x16c)][_0x464da6(0x19f)]({'metadata':void 0x0},{'unitID':_0xe4aed,'type':_0x18db04,'from':_0x42431b,'to':_0x247e66}))[_0x464da6(0x487)];}};Et=Ln([Te(0x0,_0x573d4d(_0x2d51dc)),Te(0x1,_0x573d4d(_0x4447fb)),Te(0x2,_0x3abdb4),Te(0x3,_0x38155a),Te(0x4,_0x5d1d4f)],Et);class Ls{constructor(){const _0x1fad5b=_0x2908d8;l(this,'_commentUpdate$',new _0x59e98b()),l(this,_0x1fad5b(0x368),this[_0x1fad5b(0x382)][_0x1fad5b(0x165)]());}[_0x2908d8(0x13a)](_0x2e28e1){const _0x2313d0=_0x2908d8;this[_0x2313d0(0x382)][_0x2313d0(0x151)](_0x2e28e1);}}var jn=Object[_0x2908d8(0x1f6)],xn=Object[_0x2908d8(0x17b)],Hn=(_0x2d1838,_0xe747ad,_0x4300aa,_0x1ffde5)=>{const _0x46fc43=_0x2908d8;for(var _0x35bf75=_0x1ffde5>0x1?void 0x0:_0x1ffde5?xn(_0xe747ad,_0x4300aa):_0xe747ad,_0x4caf7e=_0x2d1838[_0x46fc43(0x478)]-0x1,_0xb56380;_0x4caf7e>=0x0;_0x4caf7e--)(_0xb56380=_0x2d1838[_0x4caf7e])&&(_0x35bf75=(_0x1ffde5?_0xb56380(_0xe747ad,_0x4300aa,_0x35bf75):_0xb56380(_0x35bf75))||_0x35bf75);return _0x1ffde5&&_0x35bf75&&jn(_0xe747ad,_0x4300aa,_0x35bf75),_0x35bf75;},is=(_0x321247,_0x9be399)=>(_0x547abc,_0x370c4b)=>_0x9be399(_0x547abc,_0x370c4b,_0x321247);let oe=class extends _0x5d8459{constructor(_0x2dc775,_0x3acf37){const _0x523dab=_0x2908d8;super(),l(this,'_roomMembers',new Map()),(this[_0x523dab(0x2c2)]=_0x2dc775,this[_0x523dab(0x1c3)]=_0x3acf37,this[_0x523dab(0x206)](_0x58e78e(_0x52a416(this[_0x523dab(0x2c2)]['getTypeOfUnitDisposed$'](_0x50520e[_0x523dab(0x37d)])[_0x523dab(0x490)](_0x391b01(_0x4dfe76=>_0x4dfe76[_0x523dab(0x18b)]())),this['_univerInstanceService'][_0x523dab(0x46a)](_0x50520e[_0x523dab(0x461)])[_0x523dab(0x490)](_0x391b01(_0x522257=>_0x522257[_0x523dab(0x18b)]())),this[_0x523dab(0x2c2)]['getTypeOfUnitDisposed$'](_0x50520e[_0x523dab(0x43f)])[_0x523dab(0x490)](_0x391b01(_0x10469e=>_0x10469e['getUnitId']())))[_0x523dab(0x298)](_0x2bbc07=>this[_0x523dab(0x1a3)](_0x2bbc07)))));}[_0x2908d8(0x312)](_0x430553){const _0x293fed=_0x2908d8;this[_0x293fed(0x1c3)][_0x293fed(0x312)](_0x430553);}[_0x2908d8(0x32f)](){const _0x253b4e=_0x2908d8;return this[_0x253b4e(0x1c3)][_0x253b4e(0x32f)]();}[_0x2908d8(0x293)](_0x33f0be,_0x2d74cb){const _0x490f4b=_0x2908d8;let _0x324f64=this[_0x490f4b(0x171)][_0x490f4b(0x479)](_0x33f0be);_0x324f64||(_0x324f64=new kn(),this['_roomMembers'][_0x490f4b(0x255)](_0x33f0be,_0x324f64)),_0x324f64['updateMember'](_0x2d74cb);}[_0x2908d8(0x1d8)](_0x16123d,_0x4d63b8){const _0x82bb07=_0x2908d8,_0x4e01fc=this[_0x82bb07(0x171)][_0x82bb07(0x479)](_0x16123d);_0x4e01fc&&_0x4e01fc[_0x82bb07(0x1d8)](_0x4d63b8);}[_0x2908d8(0x1c0)](_0x52bd0d){const _0x3a689e=_0x2908d8;return this['_roomMembers'][_0x3a689e(0x479)](_0x52bd0d);}[_0x2908d8(0x3e4)](_0x5769d1,_0x49c723){const _0x1a1d53=_0x2908d8,_0x478933=this[_0x1a1d53(0x171)][_0x1a1d53(0x479)](_0x5769d1);if(_0x478933)return _0x478933[_0x1a1d53(0x3e4)](_0x49c723);}[_0x2908d8(0x1a3)](_0xc076b3){const _0x56e14e=_0x2908d8,_0x1063cd=this['_roomMembers']['get'](_0xc076b3);_0x1063cd&&(_0x1063cd[_0x56e14e(0x1bf)](),this[_0x56e14e(0x171)]['delete'](_0xc076b3));}[_0x2908d8(0x1bf)](){const _0x42c439=_0x2908d8;this['_roomMembers'][_0x42c439(0x212)](_0x295b16=>_0x295b16[_0x42c439(0x1bf)]()),this[_0x42c439(0x171)][_0x42c439(0x2b1)]();}};oe=Hn([is(0x0,_0x52e604),is(0x1,_0x573d4d(_0x1ac4cb))],oe);class kn extends _0x5d8459{constructor(){const _0x199d6f=_0x2908d8;super(...arguments),l(this,_0x199d6f(0x374),new Map());}[_0x2908d8(0x1bf)](){const _0x567c36=_0x2908d8;this[_0x567c36(0x374)][_0x567c36(0x2b1)]();}[_0x2908d8(0x293)](_0x110eb9){const _0xb69d28=_0x2908d8;this[_0xb69d28(0x374)][_0xb69d28(0x255)](_0x110eb9[_0xb69d28(0x469)],_0x110eb9);}[_0x2908d8(0x1d8)](_0x236e4b){const _0x4dafd0=_0x2908d8;this[_0x4dafd0(0x374)][_0x4dafd0(0x34a)](_0x236e4b);}[_0x2908d8(0x3e4)](_0x3c0fbe){const _0x3c921e=_0x2908d8;return this[_0x3c921e(0x374)][_0x3c921e(0x479)](_0x3c0fbe);}}const Vn=_0x2908d8(0x2bd);function Bn(_0x10959b){const _0x4dd693=_0x2908d8;return JSON[_0x4dd693(0x2d3)](_0x10959b)['length'];}var Fn=Object[_0x2908d8(0x1f6)],Wn=Object[_0x2908d8(0x17b)],Gn=(_0x2fa001,_0x12ee3f,_0x3050ed,_0x4ac0d5)=>{const _0x13f6e2=_0x2908d8;for(var _0x76ef85=_0x4ac0d5>0x1?void 0x0:_0x4ac0d5?Wn(_0x12ee3f,_0x3050ed):_0x12ee3f,_0x4b0315=_0x2fa001[_0x13f6e2(0x478)]-0x1,_0x54325b;_0x4b0315>=0x0;_0x4b0315--)(_0x54325b=_0x2fa001[_0x4b0315])&&(_0x76ef85=(_0x4ac0d5?_0x54325b(_0x12ee3f,_0x3050ed,_0x76ef85):_0x54325b(_0x76ef85))||_0x76ef85);return _0x4ac0d5&&_0x76ef85&&Fn(_0x12ee3f,_0x3050ed,_0x76ef85),_0x76ef85;},X=(_0x5796ba,_0x4fa745)=>(_0x526b76,_0x197abf)=>_0x4fa745(_0x526b76,_0x197abf,_0x5796ba),F=(_0x1d2856=>(_0x1d2856[_0x1d2856['IDLE']=0x0]='IDLE',_0x1d2856[_0x1d2856['JOINING']=0x1]=_0x2908d8(0x334),_0x1d2856[_0x1d2856['OFFLINE']=0x2]='OFFLINE',_0x1d2856[_0x1d2856[_0x2908d8(0x285)]=0x3]='ONLINE',_0x1d2856))(F||{});let Ct=class extends _0x5afe1b{constructor(_0x227f48,_0x22d38e,_0x59f73f,_0x590ff9,_0x422eed,_0x20180f,_0x5f0d98,_0x5dc60d,_0x26b7f0,_0x394a5e){const _0x7ab457=_0x2908d8;super(),l(this,_0x7ab457(0x22d),new _0x5a6925(0x0)),l(this,_0x7ab457(0x278),this['_sessionStatus$']['asObservable']()),l(this,_0x7ab457(0x324),new _0x59e98b()),l(this,'event$',this[_0x7ab457(0x324)][_0x7ab457(0x165)]()),l(this,_0x7ab457(0x3dd)),l(this,_0x7ab457(0x459)),l(this,_0x7ab457(0x3aa)),l(this,_0x7ab457(0x35e),!0x1),l(this,_0x7ab457(0x14e),null),(this[_0x7ab457(0x1fa)]=_0x227f48,this[_0x7ab457(0x49c)]=_0x59f73f,this[_0x7ab457(0x30f)]=_0x590ff9,this[_0x7ab457(0x2fe)]=_0x422eed,this[_0x7ab457(0x168)]=_0x20180f,this['_localeService']=_0x5f0d98,this[_0x7ab457(0x13f)]=_0x5dc60d,this[_0x7ab457(0x437)]=_0x26b7f0,this[_0x7ab457(0x37a)]=_0x394a5e,this[_0x7ab457(0x35e)]=!!this[_0x7ab457(0x37a)],_0x22d38e[_0x7ab457(0x490)](_0x4f72a2(this['dispose$']))['subscribe'](_0x700e8=>{const _0x55202d=_0x7ab457;var _0x470e90;typeof _0x700e8>'u'||(this[_0x55202d(0x3dd)]=_0x700e8,_0x700e8?(this[_0x55202d(0x289)](_0x700e8),this[_0x55202d(0x459)]=this[_0x55202d(0x3dd)][_0x55202d(0x3c5)]['subscribe'](_0x50ed5c=>{const _0x304249=_0x55202d;_0x50ed5c[_0x304249(0x271)]===this['_unitID']&&this[_0x304249(0x450)](_0x50ed5c);})):(this[_0x55202d(0x42d)](),this[_0x55202d(0x22d)]['next'](0x2),(_0x470e90=this['_socketMessageSubscription'])==null||_0x470e90['unsubscribe'](),this[_0x55202d(0x459)]=null));}),this[_0x7ab457(0x206)](this['_beforeCloseService'][_0x7ab457(0x1e7)](()=>{const _0x4f0648=_0x7ab457;var _0x50474a;(_0x50474a=this[_0x4f0648(0x3dd)])==null||_0x50474a[_0x4f0648(0x225)]({'cmd':I['LEAVE'],'data':{'roomID':this[_0x4f0648(0x1fa)]}});})));}get['sessionStatus'](){const _0x4f46f3=_0x2908d8;return this['_sessionStatus$'][_0x4f46f3(0x29d)]();}['getMemberID'](){const _0x52d63f=_0x2908d8;var _0x29fc49,_0x3da6c7;return(_0x3da6c7=(_0x29fc49=this[_0x52d63f(0x3dd)])==null?void 0x0:_0x29fc49['memberID'])!=null?_0x3da6c7:null;}['dispose'](){const _0x359586=_0x2908d8;super[_0x359586(0x1bf)](),this['dispose$'][_0x359586(0x151)](),this[_0x359586(0x2ba)][_0x359586(0x2d4)]();}[_0x2908d8(0x26d)](){const _0x1777d1=_0x2908d8;var _0x252d11,_0x114735;this[_0x1777d1(0x42d)](),(_0x252d11=this[_0x1777d1(0x3dd)])==null||_0x252d11[_0x1777d1(0x225)]({'cmd':I[_0x1777d1(0x287)],'data':{'roomID':this[_0x1777d1(0x1fa)]}}),(_0x114735=this[_0x1777d1(0x3dd)])==null||_0x114735[_0x1777d1(0x26d)](),this[_0x1777d1(0x324)][_0x1777d1(0x2d4)](),this['_sessionStatus$'][_0x1777d1(0x2d4)](),this['dispose']();}[_0x2908d8(0x450)](_0x125f6a){const _0x4871e1=_0x2908d8;_0x125f6a[_0x4871e1(0x350)]===I['JOIN']?this['_onJoinRoomEvent'](_0x125f6a):_0x125f6a['cmd']===I[_0x4871e1(0x3da)]&&this[_0x4871e1(0x2ae)](_0x125f6a);}[_0x2908d8(0x289)](_0x2a71fb){const _0x369cc5=_0x2908d8;this[_0x369cc5(0x22d)][_0x369cc5(0x151)](0x1),_0x2a71fb[_0x369cc5(0x225)]({'cmd':I['JOIN'],'routeKey':this[_0x369cc5(0x1fa)],'routeType':'','data':{'rooms':[{'roomID':this[_0x369cc5(0x1fa)]}]}});}[_0x2908d8(0x3f4)](_0x4791e5){const _0x1a3585=_0x2908d8;var _0x4b9031;if(_0x4791e5['code']===Ht[_0x1a3585(0x29f)]){this['_messageService'][_0x1a3585(0x24e)]({'type':_0x42502c[_0x1a3585(0x152)],'content':this['_localeService']['t']('session.room-full')}),this[_0x1a3585(0x22d)][_0x1a3585(0x151)](0x2);return;}this[_0x1a3585(0x22d)][_0x1a3585(0x151)](0x3);const _0x46e66d=(_0x4b9031=_0x4791e5[_0x1a3585(0x1ee)][_0x1a3585(0x423)][this[_0x1a3585(0x1fa)]])==null?void 0x0:_0x4b9031[_0x1a3585(0x3fa)];_0x46e66d&&_0x46e66d['forEach'](_0xed6147=>this[_0x1a3585(0x13f)][_0x1a3585(0x293)](this[_0x1a3585(0x1fa)],_0xed6147));}[_0x2908d8(0x2ae)](_0x4135fb){const _0x57bd54=_0x2908d8;try{const _0x241dbb=_0x4135fb[_0x57bd54(0x1ee)];switch(_0x241dbb[_0x57bd54(0x1d7)]){case _0x2ca871[_0x57bd54(0x26a)]:this[_0x57bd54(0x39c)](_0x241dbb),this[_0x57bd54(0x324)][_0x57bd54(0x151)](_0x241dbb);break;case _0x2ca871[_0x57bd54(0x464)]:this[_0x57bd54(0x45c)](_0x241dbb),this[_0x57bd54(0x324)][_0x57bd54(0x151)](_0x241dbb);break;case _0x2ca871[_0x57bd54(0x3c0)]:this[_0x57bd54(0x2e1)](),this[_0x57bd54(0x146)](),this['_event$'][_0x57bd54(0x151)](_0x241dbb);break;case _0x2ca871[_0x57bd54(0x410)]:this[_0x57bd54(0x49c)][_0x57bd54(0x2f3)](_0x57bd54(0x137)+JSON[_0x57bd54(0x2d3)](_0x241dbb)),this[_0x57bd54(0x324)][_0x57bd54(0x151)](_0x241dbb);break;case _0x2ca871[_0x57bd54(0x369)]:this[_0x57bd54(0x437)][_0x57bd54(0x13a)](_0x241dbb[_0x57bd54(0x1ee)]),this[_0x57bd54(0x324)][_0x57bd54(0x151)](_0x241dbb);break;default:this[_0x57bd54(0x324)][_0x57bd54(0x151)](_0x241dbb);}}catch(_0x5e23c1){this[_0x57bd54(0x49c)][_0x57bd54(0x2f3)](_0x5e23c1,_0x4135fb);}}[_0x2908d8(0x39c)](_0x41a95c){const _0x46222a=_0x2908d8;this['_memberService'][_0x46222a(0x293)](this[_0x46222a(0x1fa)],_0x41a95c[_0x46222a(0x1ee)]);}['_onUserLeave'](_0x521f94){const _0x5af924=_0x2908d8;this[_0x5af924(0x13f)]['removeMember'](this[_0x5af924(0x1fa)],_0x521f94['data'][_0x5af924(0x469)]);}async[_0x2908d8(0x225)](_0xffe17b,_0x54b7e5){const _0x12e1eb=_0x2908d8;if(this[_0x12e1eb(0x27a)]!==0x3||!this['_socket'])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0xffe17b['eventID']===_0x2ca871[_0x12e1eb(0x208)]&&(this[_0x12e1eb(0x291)](),this[_0x12e1eb(0x2ac)](_0xffe17b)),this[_0x12e1eb(0x3dd)][_0x12e1eb(0x225)]({'cmd':I[_0x12e1eb(0x210)],'routeKey':_0x54b7e5,'routeType':'','data':_0xffe17b});}catch(_0x168b84){this['_logService'][_0x12e1eb(0x2f3)](_0x168b84);}}[_0x2908d8(0x291)](){const _0x4e7631=_0x2908d8;var _0x3adc20;this[_0x4e7631(0x3aa)]=window[_0x4e7631(0x49d)](()=>{const _0x21e882=_0x4e7631;this[_0x21e882(0x3aa)]=null,this[_0x21e882(0x2fe)][_0x21e882(0x24e)]({'type':_0x42502c['Error'],'content':this[_0x21e882(0x140)]['t']('session.collaboration-timeout')});},(_0x3adc20=this[_0x4e7631(0x168)]['getConfig'](Ns))!=null?_0x3adc20:ys);}['_clearCollaborationTimeoutTimer'](){const _0x4a1920=_0x2908d8;this[_0x4a1920(0x3aa)]&&(clearTimeout(this[_0x4a1920(0x3aa)]),this['_collaborationTimeoutTimer']=null);}[_0x2908d8(0x2ac)](_0x4f55e8){const _0x315802=_0x2908d8;if(!this[_0x315802(0x35e)])return;const {data:_0x384e50}=_0x4f55e8,{unitID:_0x574e2e,changeset:_0x43e6ba}=_0x384e50,{mutations:_0x460910,type:_0x27dbb5}=_0x43e6ba;this[_0x315802(0x14e)]={'unitId':_0x574e2e,'type':_0x27dbb5,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':Bn(_0x460910)};}[_0x2908d8(0x2e1)](){const _0x1ad99c=_0x2908d8;if(this[_0x1ad99c(0x35e)]){if(!this[_0x1ad99c(0x14e)]){this[_0x1ad99c(0x49c)]['error'](_0x1ad99c(0x43c),_0x1ad99c(0x2f6));return;}this[_0x1ad99c(0x14e)][_0x1ad99c(0x41e)]=performance[_0x1ad99c(0x44b)](),this[_0x1ad99c(0x14e)][_0x1ad99c(0x1d0)]=this[_0x1ad99c(0x14e)]['stopTime']-this['_telemetryInfo'][_0x1ad99c(0x246)],this['_telemetryService']['capture'](Vn,this[_0x1ad99c(0x14e)]),this['_telemetryInfo']=null;}}[_0x2908d8(0x42d)](){const _0x5061b8=_0x2908d8;this[_0x5061b8(0x14e)]=null;}};Ct=Gn([X(0x2,_0x38155a),X(0x3,_0x4e50c2),X(0x4,_0x6d8428),X(0x5,_0x3abdb4),X(0x6,_0x573d4d(_0x5071b4)),X(0x7,_0x573d4d(oe)),X(0x8,_0x573d4d(Ls)),X(0x9,_0x2b0397(_0x2b6c9d))],Ct);var Yn=Object[_0x2908d8(0x1f6)],Kn=Object['getOwnPropertyDescriptor'],Xn=(_0xe63e9d,_0x31778d,_0x19dbc9,_0x35c2c5)=>{const _0x127dae=_0x2908d8;for(var _0x1fde41=_0x35c2c5>0x1?void 0x0:_0x35c2c5?Kn(_0x31778d,_0x19dbc9):_0x31778d,_0x237d24=_0xe63e9d[_0x127dae(0x478)]-0x1,_0x477b5a;_0x237d24>=0x0;_0x237d24--)(_0x477b5a=_0xe63e9d[_0x237d24])&&(_0x1fde41=(_0x35c2c5?_0x477b5a(_0x31778d,_0x19dbc9,_0x1fde41):_0x477b5a(_0x1fde41))||_0x1fde41);return _0x35c2c5&&_0x1fde41&&Yn(_0x31778d,_0x19dbc9,_0x1fde41),_0x1fde41;},ue=(_0x3b252f,_0x4304b7)=>(_0x111bae,_0x59de1a)=>_0x4304b7(_0x111bae,_0x59de1a,_0x3b252f);let ae=class extends _0x5d8459{constructor(_0x40904b,_0x497cc6,_0x461c70,_0xcd6585,_0x456f48,_0xce80f3){const _0x15757e=_0x2908d8;super(),l(this,_0x15757e(0x26f),new _0x5a6925(void 0x0)),l(this,_0x15757e(0x16e),this['_socket$']['asObservable']()),l(this,_0x15757e(0x2c8),new Map()),l(this,_0x15757e(0x1a7),new _0x5a6925(F['IDLE'])),l(this,_0x15757e(0x383),this[_0x15757e(0x1a7)][_0x15757e(0x165)]()),l(this,_0x15757e(0x1d2),!0x1),l(this,_0x15757e(0x1c5)),l(this,_0x15757e(0x299),0x0),l(this,'_sendHeartbeatTimer'),l(this,'_timeoutTimer'),(this[_0x15757e(0x333)]=_0x40904b,this[_0x15757e(0x140)]=_0x497cc6,this[_0x15757e(0x2fe)]=_0x461c70,this['_logService']=_0xcd6585,this[_0x15757e(0x168)]=_0x456f48,this['_socketService']=_0xce80f3);}get[_0x2908d8(0x3dd)](){const _0xbe9f47=_0x2908d8;return this[_0xbe9f47(0x26f)][_0xbe9f47(0x29d)]();}['dispose'](){const _0xfe7de9=_0x2908d8;super[_0xfe7de9(0x1bf)](),this[_0xfe7de9(0x2c8)][_0xfe7de9(0x212)](_0x1363a8=>_0x1363a8['dispose']()),this[_0xfe7de9(0x2c8)][_0xfe7de9(0x2b1)](),this['_status$']['complete']();}async[_0x2908d8(0x325)](_0x61e9f9){const _0x288d11=_0x2908d8;if(this[_0x288d11(0x2c8)]['has'](_0x61e9f9))return this[_0x288d11(0x2c8)]['get'](_0x61e9f9);this[_0x288d11(0x310)]();const _0x29f9b5=this[_0x288d11(0x333)][_0x288d11(0x386)](Ct,_0x61e9f9,this[_0x288d11(0x26f)][_0x288d11(0x165)]());return this[_0x288d11(0x2c8)]['set'](_0x61e9f9,_0x29f9b5),_0x29f9b5;}[_0x2908d8(0x3a6)](_0x19613e){const _0x177e93=_0x2908d8;var _0x408154;const _0x5b5b29=this[_0x177e93(0x2c8)]['get'](_0x19613e);_0x5b5b29&&(this[_0x177e93(0x2c8)][_0x177e93(0x34a)](_0x19613e),_0x5b5b29[_0x177e93(0x26d)]()),this[_0x177e93(0x2c8)][_0x177e93(0x134)]||(_0x408154=this[_0x177e93(0x3dd)])==null||_0x408154[_0x177e93(0x26d)]();}['reconnect'](){const _0x3c74fb=_0x2908d8;this[_0x3c74fb(0x299)]=0x0,this[_0x3c74fb(0x1c5)]!=null&&(clearTimeout(this['_retryConnectingTimer']),this[_0x3c74fb(0x1c5)]=null),this['_tryReconnect']();}[_0x2908d8(0x244)](){const _0x4daabe=_0x2908d8;var _0x3cf11f;const _0x52f0a9=(_0x3cf11f=this['_configService'][_0x4daabe(0x157)](Sn))!=null?_0x3cf11f:pn;return this[_0x4daabe(0x2ed)][_0x4daabe(0x1d3)](_0x52f0a9);}[_0x2908d8(0x310)](){const _0x4b121d=_0x2908d8;try{const _0x19ae76=this[_0x4b121d(0x244)]();if(_0x19ae76){const _0x3cc7c8=_0x19ae76[_0x4b121d(0x225)];_0x19ae76[_0x4b121d(0x225)]=_0x57e07a=>(this['_rescheduleHeartbeat'](),_0x3cc7c8[_0x4b121d(0x2a9)](_0x19ae76,[_0x57e07a])),_0x19ae76[_0x4b121d(0x3c5)][_0x4b121d(0x298)](_0x1f8cb8=>this['_onMessage'](_0x19ae76,_0x1f8cb8)),_0x19ae76['error$']['pipe'](_0x2fa718(0x1))[_0x4b121d(0x298)](_0x441e84=>this['_logService'][_0x4b121d(0x2f3)](_0x4b121d(0x2b7),_0x441e84)),_0x19ae76[_0x4b121d(0x2be)][_0x4b121d(0x490)](_0x2fa718(0x1))['subscribe'](()=>{const _0x3da9d3=_0x4b121d;this[_0x3da9d3(0x45f)](_0x19ae76);}),_0x19ae76[_0x4b121d(0x339)][_0x4b121d(0x490)](_0x2fa718(0x1))[_0x4b121d(0x298)](_0x454134=>{const _0x140ce0=_0x4b121d;this[_0x140ce0(0x49c)][_0x140ce0(0x2e6)]('[CollaborationSessionService]',_0x140ce0(0x30e),_0x454134),this[_0x140ce0(0x3ef)]();});}}catch(_0x353cbf){this[_0x4b121d(0x49c)][_0x4b121d(0x2f3)](_0x353cbf),this[_0x4b121d(0x3ef)]();}}[_0x2908d8(0x45f)](_0x30c04a){const _0x5b8269=_0x2908d8;this['_logService'][_0x5b8269(0x2e6)]('[CollaborationSessionService]','socket\x20open.'),_0x30c04a[_0x5b8269(0x225)]({'cmd':I[_0x5b8269(0x23a)]}),this[_0x5b8269(0x48c)](),this[_0x5b8269(0x39e)]();}[_0x2908d8(0x39e)](){const _0x1696bb=_0x2908d8,_0x3db1f2=()=>{const _0x15aa97=_0x1140;this[_0x15aa97(0x33c)](),this['_listenToOnlineEvent'](),window[_0x15aa97(0x3f5)](_0x15aa97(0x44a),_0x3db1f2);};window[_0x1696bb(0x1a8)](_0x1696bb(0x44a),_0x3db1f2);}[_0x2908d8(0x33c)](){const _0x161d82=_0x2908d8;this[_0x161d82(0x1d2)]=!0x1,this[_0x161d82(0x1a7)][_0x161d82(0x151)](F[_0x161d82(0x288)]),this[_0x161d82(0x26f)][_0x161d82(0x151)](null),this[_0x161d82(0x3a5)](),this[_0x161d82(0x17d)]();}[_0x2908d8(0x3ef)](){const _0x26f290=_0x2908d8;var _0x3f6103;this['_onOffline'](),this['_retryCount']<((_0x3f6103=this[_0x26f290(0x168)][_0x26f290(0x157)](bn))!=null?_0x3f6103:Tn)?(this[_0x26f290(0x2fe)][_0x26f290(0x24e)]({'key':'collaboration-session-retry','type':_0x42502c[_0x26f290(0x152)],'content':this['_localeService']['t'](_0x26f290(0x193))}),this['_tryReconnect']()):(this[_0x26f290(0x2fe)][_0x26f290(0x24e)]({'key':_0x26f290(0x2fd),'type':_0x42502c[_0x26f290(0x495)],'content':this[_0x26f290(0x140)]['t'](_0x26f290(0x3c4))}),this[_0x26f290(0x248)]());}['_listenToOnlineEvent'](){const _0x2bc984=_0x2908d8,_0x4e5f5f=()=>{const _0x2ec505=_0x1140;this[_0x2ec505(0x1cb)](),window[_0x2ec505(0x3f5)](_0x2ec505(0x170),_0x4e5f5f);};window[_0x2bc984(0x1a8)](_0x2bc984(0x170),_0x4e5f5f),this[_0x2bc984(0x26f)][_0x2bc984(0x490)](_0x51803d(_0x17f511=>!!_0x17f511),_0x2fa718(0x1))[_0x2bc984(0x298)](()=>{const _0x526a3f=_0x2bc984;window[_0x526a3f(0x3f5)]('online',_0x4e5f5f);});}[_0x2908d8(0x294)](){const _0x183e87=_0x2908d8;var _0x196aab;const _0xcf26cd=this[_0x183e87(0x299)],_0x482ebd=_0xcf26cd===0x0?0x0:((_0x196aab=this[_0x183e87(0x168)][_0x183e87(0x157)](En))!=null?_0x196aab:Cn)*0x2**_0xcf26cd;this[_0x183e87(0x1c5)]=window['setTimeout'](()=>{const _0x10e5cb=_0x183e87;clearTimeout(this['_retryConnectingTimer']),this[_0x10e5cb(0x1c5)]=null,this[_0x10e5cb(0x310)]();},_0x482ebd),this['_retryCount']+=0x1;}[_0x2908d8(0x454)](_0x50733b,_0x31d42f){const _0x35d8e3=_0x2908d8,{cmd:_0x47c8e7}=_0x31d42f;_0x47c8e7===I['HELLO']&&!this[_0x35d8e3(0x1d2)]&&(_0x50733b[_0x35d8e3(0x469)]=_0x31d42f[_0x35d8e3(0x1ee)][_0x35d8e3(0x469)],this[_0x35d8e3(0x26f)][_0x35d8e3(0x151)](_0x50733b),this[_0x35d8e3(0x1a7)][_0x35d8e3(0x151)](F['ONLINE']),this[_0x35d8e3(0x1d2)]=!0x0),_0x47c8e7===I['HEARTBEAT']&&this[_0x35d8e3(0x3a5)](),this[_0x35d8e3(0x48c)]();}[_0x2908d8(0x48c)](){const _0x815c23=_0x2908d8;var _0x564bbd;this[_0x815c23(0x17d)](),this[_0x815c23(0x2ec)]=window[_0x815c23(0x49d)](()=>this[_0x815c23(0x207)](),(_0x564bbd=this['_configService']['getConfig'](vn))!=null?_0x564bbd:In);}[_0x2908d8(0x207)](){const _0x480b9f=_0x2908d8;this[_0x480b9f(0x3dd)]['send']({'cmd':I[_0x480b9f(0x1e6)]}),this[_0x480b9f(0x1b0)]();}[_0x2908d8(0x1b0)](){const _0x310ae8=_0x2908d8;var _0x43366c;this[_0x310ae8(0x2fb)]=window['setTimeout'](()=>this[_0x310ae8(0x3ef)](),(_0x43366c=this[_0x310ae8(0x168)]['getConfig'](Ns))!=null?_0x43366c:ys);}[_0x2908d8(0x17d)](){const _0x2abf0e=_0x2908d8;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this[_0x2abf0e(0x2ec)]=null);}[_0x2908d8(0x3a5)](){const _0x47cb45=_0x2908d8;this[_0x47cb45(0x2fb)]!=null&&(clearTimeout(this['_timeoutTimer']),this['_timeoutTimer']=null);}};ae=Xn([ue(0x0,_0x573d4d(_0x100ac5)),ue(0x1,_0x573d4d(_0x5071b4)),ue(0x2,_0x6d8428),ue(0x3,_0x38155a),ue(0x4,_0x3abdb4),ue(0x5,Us)],ae);var Jn=Object[_0x2908d8(0x1f6)],zn=Object[_0x2908d8(0x17b)],qn=(_0x584c3e,_0x1e232b,_0x3afd30,_0x574bc2)=>{const _0x4b2642=_0x2908d8;for(var _0x2c39fa=_0x574bc2>0x1?void 0x0:_0x574bc2?zn(_0x1e232b,_0x3afd30):_0x1e232b,_0x78b698=_0x584c3e[_0x4b2642(0x478)]-0x1,_0x4c72e2;_0x78b698>=0x0;_0x78b698--)(_0x4c72e2=_0x584c3e[_0x78b698])&&(_0x2c39fa=(_0x574bc2?_0x4c72e2(_0x1e232b,_0x3afd30,_0x2c39fa):_0x4c72e2(_0x2c39fa))||_0x2c39fa);return _0x574bc2&&_0x2c39fa&&Jn(_0x1e232b,_0x3afd30,_0x2c39fa),_0x2c39fa;},ns=(_0x41ab0f,_0x21c65d)=>(_0x3ec562,_0x8b80ea)=>_0x21c65d(_0x3ec562,_0x8b80ea,_0x41ab0f);let Ze=class{constructor(_0x2ee83e,_0x32cdb3){this['_injector']=_0x2ee83e,this['_transformService']=_0x32cdb3;}[_0x2908d8(0x46e)](_0x3ace1d){const _0x1da6cb=_0x2908d8;this['_transformUndoRedoStack'](_0x3ace1d),this[_0x1da6cb(0x365)](_0x3ace1d);}[_0x2908d8(0x1cd)](_0x373ff5){const _0x364cee=_0x2908d8,_0x3fda22=this[_0x364cee(0x333)][_0x364cee(0x479)](_0x49d2f3),{redoCache:_0x2efe9}=_0x3fda22['getUndoRedoMutationParamsCache']();if(_0x2efe9[_0x364cee(0x478)]===0x0)return _0x373ff5;let _0xe98c15=_0x34c7a8[_0x364cee(0x448)](_0x373ff5[_0x364cee(0x467)][0x0]);for(let _0x3ba3a6=0x0;_0x3ba3a6<_0x2efe9[_0x364cee(0x478)];_0x3ba3a6++){const _0x56b3b3={'id':_0x364cee(0x345),'params':{..._0x2efe9[_0x3ba3a6]}},_0x274781=this[_0x364cee(0x389)][_0x364cee(0x2bf)](_0xe98c15,_0x56b3b3,!0x1);if(_0x18c8e5(_0x274781))throw _0x274781[_0x364cee(0x2f3)];_0xe98c15=_0x274781[_0x364cee(0x220)];}return{..._0x34c7a8['deepClone'](_0x373ff5),'mutations':[_0xe98c15]};}[_0x2908d8(0x384)](_0x484c02){const _0x3e0c56=_0x2908d8,_0x3f2a62=this['_injector'][_0x3e0c56(0x479)](_0x49d2f3),{undoCache:_0x2dff07,redoCache:_0x4b47e4}=_0x3f2a62[_0x3e0c56(0x1bd)]();if(_0x2dff07[_0x3e0c56(0x478)]===0x0||_0x4b47e4['length']===0x0)return;const _0xddf703=[],_0xce1e63=[];let _0x4ed673=_0x34c7a8[_0x3e0c56(0x448)](_0x484c02[_0x3e0c56(0x467)][0x0]),_0x3b2a94=_0x34c7a8[_0x3e0c56(0x448)](_0x484c02[_0x3e0c56(0x467)][0x0]);for(let _0x4830bc=_0x2dff07[_0x3e0c56(0x478)]-0x1;_0x4830bc>=0x0;_0x4830bc--){const _0x3223e5={'id':_0x3e0c56(0x345),'params':{..._0x2dff07[_0x4830bc]}},_0x1f3ee4={'id':_0x3e0c56(0x345),'params':{..._0x4b47e4[_0x4830bc]}},_0x176451=this[_0x3e0c56(0x389)][_0x3e0c56(0x2bf)](_0x4ed673,_0x3223e5,!0x1),_0xbc5381=this['_transformService'][_0x3e0c56(0x2bf)](_0x3b2a94,_0x1f3ee4,!0x1);if(_0x18c8e5(_0x176451))throw _0x176451['error'];if(_0x18c8e5(_0xbc5381))throw _0xbc5381[_0x3e0c56(0x2f3)];_0xddf703[_0x3e0c56(0x362)](_0x176451[_0x3e0c56(0x447)]['params']),_0xce1e63[_0x3e0c56(0x362)](_0xbc5381['m2Prime'][_0x3e0c56(0x455)]),_0x4ed673=_0x176451[_0x3e0c56(0x220)],_0x3b2a94=_0xbc5381['m1Prime'];}_0x3f2a62['setUndoRedoMutationParamsCache']({'undoCache':_0xddf703,'redoCache':_0xce1e63});}[_0x2908d8(0x365)](_0x4a856c){const _0x2ac2d2=_0x2908d8,_0x52c8b4=this['_injector'][_0x2ac2d2(0x479)](_0x49d2f3),_0x3b0394=_0x52c8b4[_0x2ac2d2(0x2b6)]();if(_0x3b0394==null)return;const _0x36c76a=[{'id':_0x2ac2d2(0x345),'params':{'unitId':_0x4a856c[_0x2ac2d2(0x1ae)],'actions':null,'textRanges':[_0x3b0394]}}],_0x5038a5=this[_0x2ac2d2(0x389)][_0x2ac2d2(0x27e)](_0x4a856c,_0x36c76a);if(!_0x5a2236(_0x5038a5))throw _0x5038a5[_0x2ac2d2(0x2f3)];const _0x3b834e=_0x5038a5['m2Prime'][0x0]['params'][_0x2ac2d2(0x15b)];Array['isArray'](_0x3b834e)&&_0x3b834e[_0x2ac2d2(0x478)]&&_0x52c8b4[_0x2ac2d2(0x2df)](_0x3b834e[0x0]);}};Ze=qn([ns(0x0,_0x573d4d(_0x100ac5)),ns(0x1,_0x35595c)],Ze);var Zn=Object['defineProperty'],Qn=Object['getOwnPropertyDescriptor'],er=(_0x36a6fa,_0x3cebef,_0x2ede00,_0x377043)=>{const _0x357c2e=_0x2908d8;for(var _0xb59f1d=_0x377043>0x1?void 0x0:_0x377043?Qn(_0x3cebef,_0x2ede00):_0x3cebef,_0x168de4=_0x36a6fa[_0x357c2e(0x478)]-0x1,_0x56c946;_0x168de4>=0x0;_0x168de4--)(_0x56c946=_0x36a6fa[_0x168de4])&&(_0xb59f1d=(_0x377043?_0x56c946(_0x3cebef,_0x2ede00,_0xb59f1d):_0x56c946(_0xb59f1d))||_0xb59f1d);return _0x377043&&_0xb59f1d&&Zn(_0x3cebef,_0x2ede00,_0xb59f1d),_0xb59f1d;},Re=(_0x2080f8,_0xd2104e)=>(_0x562c4d,_0x3f952c)=>_0xd2104e(_0x562c4d,_0x3f952c,_0x2080f8);let D=class extends _0x5d8459{constructor(_0x3f70b7,_0x4e93fa,_0x8f7bb1,_0x58712b,_0x4d2b36){const _0xfa3f38=_0x2908d8;super(),l(this,_0xfa3f38(0x277),new Map()),l(this,_0xfa3f38(0x1f9),new Map()),l(this,_0xfa3f38(0x270),!0x1),(this[_0xfa3f38(0x168)]=_0x3f70b7,this[_0xfa3f38(0x1f5)]=_0x4e93fa,this[_0xfa3f38(0x30f)]=_0x8f7bb1,this[_0xfa3f38(0x140)]=_0x58712b,this['_revisionService']=_0x4d2b36,this['_setupBeforeClosingHandler']());}[_0x2908d8(0x3d8)](){this['_disabled']=!0x0;}['enableLocalCache'](){const _0x33af30=_0x2908d8;this[_0x33af30(0x270)]=!0x1;}[_0x2908d8(0x1bf)](){const _0xe41fcb=_0x2908d8;this[_0xe41fcb(0x315)]()['then'](()=>super['dispose']());}async[_0x2908d8(0x22b)](_0xcde45){const _0x264331=_0x2908d8;return this['_disabled']?null:this[_0x264331(0x1f5)]['getItem'](rs(_0xcde45));}async[_0x2908d8(0x470)](_0x4acefb,_0x2c7522){const _0xdfe648=_0x2908d8;return!!this[_0xdfe648(0x1f5)][_0xdfe648(0x31e)](_0x4acefb,_0x2c7522);}[_0x2908d8(0x401)](_0x2cbb47,_0x5b1844,_0x1a8519,_0x1c16ce){const _0x461d33=_0x2908d8,_0x25c491=this[_0x461d33(0x3fe)][_0x461d33(0x25b)](_0x2cbb47);this[_0x461d33(0x277)][_0x461d33(0x255)](_0x2cbb47,{'unitID':_0x2cbb47,'type':_0x5b1844,'awaitingChangeset':_0x1a8519,'mutations':_0x1c16ce,'rev':_0x25c491}),this[_0x461d33(0x1f9)][_0x461d33(0x25a)](_0x2cbb47)||this[_0x461d33(0x445)](_0x2cbb47);}['_scheduleSaving'](_0x15dba2){const _0x177490=_0x2908d8,_0x3a3ea2=this['_getSaveTimeout']();_0x3a3ea2===0x0?this[_0x177490(0x44d)](_0x15dba2):this[_0x177490(0x1f9)][_0x177490(0x255)](_0x15dba2,setTimeout(()=>this['_saveCache'](_0x15dba2),_0x3a3ea2));}[_0x2908d8(0x33a)](){const _0x4f2a30=_0x2908d8;var _0x1e45c4;return(_0x1e45c4=this['_configService'][_0x4f2a30(0x157)](Rn))!=null?_0x1e45c4:On;}[_0x2908d8(0x44d)](_0x4318a0){const _0x20ae50=_0x2908d8,_0x26e1ba=this['_saveTaskMap'][_0x20ae50(0x479)](_0x4318a0);return _0x26e1ba!==void 0x0&&window[_0x20ae50(0x319)](_0x26e1ba),this[_0x20ae50(0x1f5)][_0x20ae50(0x31e)](rs(_0x4318a0),this[_0x20ae50(0x277)][_0x20ae50(0x479)](_0x4318a0))[_0x20ae50(0x378)](()=>this[_0x20ae50(0x1f9)][_0x20ae50(0x34a)](_0x4318a0));}async[_0x2908d8(0x315)](){const _0x18e64f=_0x2908d8,_0x53caa6=[];this[_0x18e64f(0x1f9)]['forEach']((_0x2ace05,_0x2da317)=>{const _0x24862c=_0x18e64f;window[_0x24862c(0x319)](_0x2ace05),_0x53caa6['push'](this[_0x24862c(0x44d)](_0x2da317)[_0x24862c(0x378)](()=>{const _0x43be48=_0x24862c;this['_saveTaskMap'][_0x43be48(0x34a)](_0x2da317);}));}),await Promise['all'](_0x53caa6);}[_0x2908d8(0x34c)](){const _0x537763=_0x2908d8;this['disposeWithMe'](this[_0x537763(0x30f)][_0x537763(0x2dd)](()=>{const _0x12f7fc=_0x537763;if(this[_0x12f7fc(0x1f9)][_0x12f7fc(0x134)])return this[_0x12f7fc(0x140)]['t'](_0x12f7fc(0x2a5));}));}};D=er([Re(0x0,_0x3abdb4),Re(0x1,_0x3997ea),Re(0x2,_0x4e50c2),Re(0x3,_0x573d4d(_0x5071b4)),Re(0x4,_0x573d4d(_0xa35cc))],D);function rs(_0x3d2292){const _0x5c479a=_0x2908d8;return _0x5c479a(0x16a)+_0x3d2292;}var tr=Object[_0x2908d8(0x1f6)],sr=Object[_0x2908d8(0x17b)],ir=(_0x1ebd05,_0x32f8c5,_0x3f0da7,_0x55c250)=>{const _0x160398=_0x2908d8;for(var _0x10a64f=_0x55c250>0x1?void 0x0:_0x55c250?sr(_0x32f8c5,_0x3f0da7):_0x32f8c5,_0x497b8a=_0x1ebd05[_0x160398(0x478)]-0x1,_0x590a53;_0x497b8a>=0x0;_0x497b8a--)(_0x590a53=_0x1ebd05[_0x497b8a])&&(_0x10a64f=(_0x55c250?_0x590a53(_0x32f8c5,_0x3f0da7,_0x10a64f):_0x590a53(_0x10a64f))||_0x10a64f);return _0x55c250&&_0x10a64f&&tr(_0x32f8c5,_0x3f0da7,_0x10a64f),_0x10a64f;},ht=(_0x327dad,_0x4d3c79)=>(_0x58e153,_0x41d4e0)=>_0x4d3c79(_0x58e153,_0x41d4e0,_0x327dad);function nr(_0x1d31d2){const _0x51c1a3=_0x2908d8,{unitID:_0xf5fbdf,mutations:_0x5eed71}=_0x1d31d2;return{'unitId':_0xf5fbdf,'subUnitId':_0x5eed71[0x0][_0x51c1a3(0x455)]['subUnitId']};}let Qe=class{constructor(_0x1886d9,_0x468d48,_0x56fe40){const _0x12e4f5=_0x2908d8;this[_0x12e4f5(0x333)]=_0x1886d9,this[_0x12e4f5(0x389)]=_0x468d48,this[_0x12e4f5(0x3f0)]=_0x56fe40;}[_0x2908d8(0x342)](_0x88e571){const _0xf91282=_0x2908d8;var _0x2fd615,_0x3d58aa,_0x5e4d19,_0x10953e,_0x210f1e;const _0x1bc876=this[_0xf91282(0x333)][_0xf91282(0x479)](_0x1f939b),{unitId:_0x398e99,subUnitId:_0x5802d3}=nr(_0x88e571),_0x27b77c=_0x1bc876[_0xf91282(0x33d)](_0x398e99)['getCurrentSelections'](),_0x16c78e=(_0x3d58aa=(_0x2fd615=this[_0xf91282(0x3f0)]['getUnit'](_0x398e99))==null?void 0x0:_0x2fd615['getActiveSheet']())==null?void 0x0:_0x3d58aa[_0xf91282(0x348)]();if(_0x27b77c[_0xf91282(0x478)]===0x0||!_0x398e99||!_0x5802d3)return;const _0x2722f8=[{'id':_0xb83057['id'],'params':{'unitId':_0x398e99,'subUnitId':_0x16c78e,'selections':_0x34c7a8[_0xf91282(0x448)](_0x27b77c)}}],_0x1bd69e=this[_0xf91282(0x389)][_0xf91282(0x27e)](_0x88e571,_0x2722f8);if(!_0x5a2236(_0x1bd69e))throw _0x1bd69e[_0xf91282(0x2f3)];const _0x3c6b96=(_0x210f1e=(_0x10953e=(_0x5e4d19=_0x1bd69e[_0xf91282(0x447)][0x0])==null?void 0x0:_0x5e4d19[_0xf91282(0x455)])==null?void 0x0:_0x10953e[_0xf91282(0x28e)])!=null?_0x210f1e:_0x27b77c;Array[_0xf91282(0x3c2)](_0x3c6b96)&&_0x3c6b96[_0xf91282(0x478)]&&this['_injector'][_0xf91282(0x479)](_0x2bd668)[_0xf91282(0x34d)](_0xb83057['id'],{'unitId':_0x398e99,'subUnitId':_0x5802d3,'selections':_0x3c6b96});}};Qe=ir([ht(0x0,_0x573d4d(_0x100ac5)),ht(0x1,_0x35595c),ht(0x2,_0x52e604)],Qe);const it=_0xff730e('univer-pro.collaboration-client.single-active-unit-service');var $s=(_0x27c153=>(_0x27c153[_0x27c153[_0x2908d8(0x1f0)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x27c153[_0x27c153[_0x2908d8(0x292)]=0x1]='OTHER_CLIENTS_EDITING',_0x27c153))($s||{});const os=0x7530,as=_0x2908d8(0x3ea);class rr extends _0x5d8459{constructor(){const _0x41e590=_0x2908d8;super(),l(this,_0x41e590(0x496),_0x34c7a8[_0x41e590(0x242)]()),l(this,_0x41e590(0x453),new Set()),l(this,_0x41e590(0x3c7),new Map()),l(this,_0x41e590(0x400),null),l(this,'_clearOtherTimers',new Map()),l(this,_0x41e590(0x360),new Map()),this[_0x41e590(0x2c3)]();}[_0x2908d8(0x1bf)](){const _0x27773e=_0x2908d8;super[_0x27773e(0x1bf)](),this[_0x27773e(0x371)][_0x27773e(0x212)]((_0x602fb9,_0x571ea7)=>this[_0x27773e(0x174)](_0x571ea7)),this['_heartbeatTimer']&&window[_0x27773e(0x43b)](this[_0x27773e(0x400)]);}[_0x2908d8(0x195)](_0x402e96){return this['_ensureSubject'](_0x402e96)['pipe'](_0xaec0cf());}[_0x2908d8(0x198)](_0x46c527){const _0x24e5f9=_0x2908d8;this[_0x24e5f9(0x453)][_0x24e5f9(0x134)]===0x0&&this[_0x24e5f9(0x155)](),this[_0x24e5f9(0x453)][_0x24e5f9(0x40c)](_0x46c527),this[_0x24e5f9(0x194)]({'type':0x0,'memberID':this[_0x24e5f9(0x496)],'unitIDs':[_0x46c527],'isForwarded':!0x1});}[_0x2908d8(0x230)](_0x5c7ed9){const _0x4a153f=_0x2908d8;this[_0x4a153f(0x453)]['delete'](_0x5c7ed9),this[_0x4a153f(0x453)]['size']===0x0&&this[_0x4a153f(0x400)]&&window[_0x4a153f(0x43b)](this[_0x4a153f(0x400)]);}['_init'](){const _0x3aaaf3=_0x2908d8;this[_0x3aaaf3(0x206)](_0x58e78e(_0x3c1931(window,'storage')[_0x3aaaf3(0x298)](_0x509b04=>{const _0xcf8009=_0x3aaaf3;if(_0x509b04['key']!==as||!_0x509b04['newValue'])return;const _0xda7474=JSON[_0xcf8009(0x15d)](_0x509b04[_0xcf8009(0x3fb)]);this[_0xcf8009(0x224)](_0xda7474);}))),window[_0x3aaaf3(0x1a8)](_0x3aaaf3(0x2a3),()=>this[_0x3aaaf3(0x194)]({'type':0x1,'memberID':this[_0x3aaaf3(0x496)],'unitIDs':Array[_0x3aaaf3(0x2e4)](this[_0x3aaaf3(0x453)])}));}[_0x2908d8(0x224)](_0x522f86){const _0x4f99ae=_0x2908d8;switch(_0x522f86['type']){case 0x0:this[_0x4f99ae(0x163)](_0x522f86);break;case 0x1:this[_0x4f99ae(0x186)](_0x522f86);break;case 0x2:this['_handleHeartbeatEvent'](_0x522f86);break;}}[_0x2908d8(0x163)](_0x4bb231){const _0x559c50=_0x2908d8,{unitIDs:_0x547685,memberID:_0x4fe3a8,isForwarded:_0x49defa}=_0x4bb231;_0x547685['forEach'](_0x50747a=>{const _0x1a1e83=_0x1140;if(!_0x49defa&&this[_0x1a1e83(0x3c7)]['has'](_0x50747a)&&this[_0x1a1e83(0x28d)](_0x50747a)[_0x1a1e83(0x151)](0x1),!this['_unitOnClients'][_0x1a1e83(0x25a)](_0x50747a)||!this[_0x1a1e83(0x3c7)][_0x1a1e83(0x479)](_0x50747a)[_0x1a1e83(0x25a)](_0x4fe3a8)){const _0x473a6e=this[_0x1a1e83(0x3c7)][_0x1a1e83(0x479)](_0x50747a)||new Set();_0x473a6e['add'](_0x4fe3a8),this[_0x1a1e83(0x3c7)][_0x1a1e83(0x255)](_0x50747a,_0x473a6e),this[_0x1a1e83(0x305)](_0x4fe3a8);}}),_0x49defa||this[_0x559c50(0x194)]({'type':0x0,'memberID':this[_0x559c50(0x496)],'unitIDs':[...this[_0x559c50(0x453)]],'isForwarded':!0x0});}[_0x2908d8(0x305)](_0x2f9494){const _0x645c44=_0x2908d8;this[_0x645c44(0x174)](_0x2f9494);const _0x177684=window[_0x645c44(0x49d)](()=>{const _0x1b942b=_0x645c44;this[_0x1b942b(0x3c7)][_0x1b942b(0x212)](_0x1c548d=>{const _0x320fc8=_0x1b942b;_0x1c548d[_0x320fc8(0x34a)](_0x2f9494);});},os*0x2);this[_0x645c44(0x371)][_0x645c44(0x255)](_0x2f9494,_0x177684);}[_0x2908d8(0x174)](_0x1052d8){const _0x1d8f89=_0x2908d8;if(this[_0x1d8f89(0x371)][_0x1d8f89(0x25a)](_0x1052d8)){const _0x33a8b7=this[_0x1d8f89(0x371)][_0x1d8f89(0x479)](_0x1052d8);_0x33a8b7&&window['clearTimeout'](_0x33a8b7),this['_clearOtherTimers'][_0x1d8f89(0x255)](_0x1052d8,null);}}['_handleLeaveEvent'](_0x336f33){const _0xc86fd2=_0x2908d8,{memberID:_0x268d20,unitIDs:_0x4eb127}=_0x336f33;_0x4eb127[_0xc86fd2(0x212)](_0x4b6c64=>{const _0x231ba4=_0xc86fd2;var _0x3757a2;const _0x4a9349=this[_0x231ba4(0x3c7)]['get'](_0x4b6c64);_0x4a9349&&(_0x4a9349['delete'](_0x268d20),(_0x3757a2=this['_ensureSubject'](_0x4b6c64))==null||_0x3757a2[_0x231ba4(0x151)](_0x4a9349[_0x231ba4(0x134)]===0x0?0x0:0x1));}),this[_0xc86fd2(0x174)](_0x268d20);}[_0x2908d8(0x3bb)](_0x33ab4e){const _0x34a18c=_0x2908d8;this['_scheduleClearOtherTimer'](_0x33ab4e[_0x34a18c(0x469)]);}[_0x2908d8(0x194)](_0x4808a5){const _0x293f68=_0x2908d8;localStorage[_0x293f68(0x31e)](as,JSON['stringify'](_0x4808a5));}['_scheduleHeartbeat'](){const _0x318bcf=_0x2908d8;this[_0x318bcf(0x400)]=window[_0x318bcf(0x361)](()=>{const _0x10759f=_0x318bcf;this[_0x10759f(0x194)]({'type':0x2,'memberID':this['_id']});},os);}[_0x2908d8(0x28d)](_0x4d1830){const _0x263cbc=_0x2908d8;return this[_0x263cbc(0x360)][_0x263cbc(0x25a)](_0x4d1830)||this[_0x263cbc(0x360)][_0x263cbc(0x255)](_0x4d1830,new _0x5a6925(0x0)),this['_unitStatus'][_0x263cbc(0x479)](_0x4d1830);}}function js(_0x3841b8){const _0x39ed2c=_0x2908d8;let _0x19fdea='';for(const _0x296e28 of _0x3841b8){const {startOffset:_0x1e63f0,endOffset:_0xb6a0aa,isActive:_0xcd124f}=_0x296e28;_0x19fdea[_0x39ed2c(0x478)]&&(_0x19fdea+=','),_0x19fdea+=_0x1e63f0+':'+_0xb6a0aa+':'+(_0xcd124f?'1':'0');}return _0x19fdea;}function or(_0x31191c){const _0x1609d8=_0x2908d8,_0x373bdd=_0x31191c['split'](','),_0x5a7666=[];for(const _0x4487ff of _0x373bdd){const [_0x310f61,_0x5880ba,_0x3fe1d8]=_0x4487ff[_0x1609d8(0x1de)](':');_0x5a7666['push']({'startOffset':Number(_0x310f61),'endOffset':Number(_0x5880ba),'collapsed':_0x310f61===_0x5880ba,'isActive':_0x3fe1d8==='1'});}return _0x5a7666[_0x1609d8(0x439)](_0x3a656e=>_0x3a656e[_0x1609d8(0x3b5)])||(_0x5a7666[0x0][_0x1609d8(0x3b5)]=!0x0),_0x5a7666;}class kt extends _0x5afe1b{constructor(){const _0x467771=_0x2908d8;super(...arguments),l(this,'_collabCursorState$',new _0x5a6925(null)),l(this,_0x467771(0x473),this[_0x467771(0x309)][_0x467771(0x165)]());}[_0x2908d8(0x370)](_0x3af49a){const _0x26714f=_0x2908d8,{unitID:_0xdc5a38,memberID:_0x26a6b7,textRanges:_0x47e901}=_0x3af49a,_0x15b709=js(_0x47e901),_0x493bd7={'unitID':_0xdc5a38,'memberID':_0x26a6b7,'selection':_0x15b709};this[_0x26714f(0x309)][_0x26714f(0x151)](_0x493bd7);}}var ar=Object[_0x2908d8(0x1f6)],cr=Object[_0x2908d8(0x17b)],hr=(_0xa54dde,_0x5ed7a4,_0xa172ec,_0x4ef77d)=>{const _0x5d9f7f=_0x2908d8;for(var _0x8d348c=_0x4ef77d>0x1?void 0x0:_0x4ef77d?cr(_0x5ed7a4,_0xa172ec):_0x5ed7a4,_0x170b60=_0xa54dde[_0x5d9f7f(0x478)]-0x1,_0x24bc4f;_0x170b60>=0x0;_0x170b60--)(_0x24bc4f=_0xa54dde[_0x170b60])&&(_0x8d348c=(_0x4ef77d?_0x24bc4f(_0x5ed7a4,_0xa172ec,_0x8d348c):_0x24bc4f(_0x8d348c))||_0x8d348c);return _0x4ef77d&&_0x8d348c&&ar(_0x5ed7a4,_0xa172ec,_0x8d348c),_0x8d348c;},cs=(_0x53161e,_0x3f9a95)=>(_0x1e1a21,_0xd7cf92)=>_0x3f9a95(_0x1e1a21,_0xd7cf92,_0x53161e);let et=class{constructor(_0x473d77,_0x1a82fc){const _0x2cb8d4=_0x2908d8;this[_0x2cb8d4(0x333)]=_0x473d77,this[_0x2cb8d4(0x389)]=_0x1a82fc;}[_0x2908d8(0x342)](_0x39fe50){const _0x33af94=_0x2908d8;var _0x152acc;const _0x4c9263=this[_0x33af94(0x333)][_0x33af94(0x479)](_0x459ea4),_0x560e4a=(_0x152acc=_0x4c9263[_0x33af94(0x13b)]())!=null?_0x152acc:[],_0x29c9a1=_0x560e4a==null?void 0x0:_0x560e4a[_0x33af94(0x267)](_0x2100d1);if(_0x29c9a1['length']===0x0)return;const _0x1cc1b5=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x39fe50[_0x33af94(0x1ae)],'actions':null,'textRanges':_0x29c9a1}}],_0x554f91=this[_0x33af94(0x389)][_0x33af94(0x27e)](_0x39fe50,_0x1cc1b5);if(!_0x5a2236(_0x554f91))throw _0x554f91['error'];const _0x594faa=_0x554f91[_0x33af94(0x447)][0x0]['params'][_0x33af94(0x15b)];Array[_0x33af94(0x3c2)](_0x594faa)&&_0x594faa['length']&&_0x4c9263[_0x33af94(0x372)](_0x594faa,!0x1);}};et=hr([cs(0x0,_0x573d4d(_0x100ac5)),cs(0x1,_0x35595c)],et);const lr=new Set([_0x5a7640['id']]);function hs(_0x156bd9,_0x3822c8,_0x41f5d8,_0x5bf76b,_0x138c3a){const _0x4a8127=_0x2908d8;var _0x4e12f4,_0x5c004d,_0x158c0a,_0x5b7890;const _0x22c5b1=[];for(const _0x29fee3 of _0x156bd9)if(lr[_0x4a8127(0x25a)](_0x29fee3['id'])){if(_0x22c5b1[_0x4a8127(0x478)]>0x0)break;_0x22c5b1[_0x4a8127(0x349)](_0x29fee3);break;}else _0x22c5b1['push'](_0x29fee3);const _0xefe5b4=(_0x5c004d=(_0x4e12f4=_0x138c3a['getCurrentUser']())==null?void 0x0:_0x4e12f4[_0x4a8127(0x471)])!=null?_0x5c004d:_0x4a8127(0x16f),_0x361afc=(_0x5b7890=(_0x158c0a=_0x138c3a['getCurrentUser']())==null?void 0x0:_0x158c0a['memberID'])!=null?_0x5b7890:_0x4a8127(0x16f);return{'changeset':{'unitID':_0x3822c8,'type':_0x489540(_0x41f5d8[_0x4a8127(0x265)](_0x3822c8)),'baseRev':_0x5bf76b['getCurrentRevForDocument'](_0x3822c8),'revision':0x0,'userID':_0xefe5b4,'memberID':_0x361afc,'mutations':_0x22c5b1},'pendingMutations':_0x156bd9[_0x4a8127(0x3e8)](_0x22c5b1[_0x4a8127(0x478)])};}function _r(_0x118da2,_0x2cd6ef,_0x2453db,_0x197238,_0x3af75f){const _0x58788e=_0x2908d8;var _0x4cbc99,_0x4bfcd7,_0x451574,_0x42429d;const _0x26ce45=[_0x118da2['reduce']((_0x32f0e7,_0x2bf7a2)=>{const _0x56d3e1=_0x1140;var _0x2e2cf7;const {id:_0x1f1403}=_0x32f0e7,{id:_0x4cd740,type:_0x1b7f92}=_0x2bf7a2,_0x4c046a=(_0x2e2cf7=_0x32f0e7['params'])!=null?_0x2e2cf7:{'actions':null},_0x191bde=_0x2bf7a2[_0x56d3e1(0x455)];if(_0x1f1403&&_0x1f1403!==_0x4cd740)throw new Error(_0x56d3e1(0x36e)+_0x1f1403+'\x20-\x20'+_0x4cd740+'.');return{..._0x32f0e7,'id':_0x4cd740,'type':_0x1b7f92,'params':{'unitId':_0x191bde[_0x56d3e1(0x498)],'textRanges':_0x191bde[_0x56d3e1(0x15b)],'actions':_0x231ca6[_0x56d3e1(0x3d5)](_0x4c046a[_0x56d3e1(0x3ff)],_0x191bde[_0x56d3e1(0x3ff)])}};},{})],_0x29a2b5=(_0x4bfcd7=(_0x4cbc99=_0x3af75f[_0x58788e(0x32f)]())==null?void 0x0:_0x4cbc99['userID'])!=null?_0x4bfcd7:_0x58788e(0x16f),_0x5ecc69=(_0x42429d=(_0x451574=_0x3af75f[_0x58788e(0x32f)]())==null?void 0x0:_0x451574[_0x58788e(0x469)])!=null?_0x42429d:_0x58788e(0x16f);return{'changeset':{'unitID':_0x2cd6ef,'type':_0x489540(_0x2453db[_0x58788e(0x265)](_0x2cd6ef)),'baseRev':_0x197238[_0x58788e(0x25b)](_0x2cd6ef),'revision':0x0,'userID':_0x29a2b5,'memberID':_0x5ecc69,'mutations':_0x26ce45},'pendingMutations':[]};}const ur={'id':_0x474203['id'],'type':_0x49ed46[_0x2908d8(0x2d1)],'params':{}};var dr=Object[_0x2908d8(0x1f6)],mr=Object[_0x2908d8(0x17b)],he=(_0x320d9b,_0x35d628,_0x409278,_0x1f71ef)=>{for(var _0x516c5d=_0x1f71ef>0x1?void 0x0:_0x1f71ef?mr(_0x35d628,_0x409278):_0x35d628,_0x379ef6=_0x320d9b['length']-0x1,_0x3149c1;_0x379ef6>=0x0;_0x379ef6--)(_0x3149c1=_0x320d9b[_0x379ef6])&&(_0x516c5d=(_0x1f71ef?_0x3149c1(_0x35d628,_0x409278,_0x516c5d):_0x3149c1(_0x516c5d))||_0x516c5d);return _0x1f71ef&&_0x516c5d&&dr(_0x35d628,_0x409278,_0x516c5d),_0x516c5d;},f=(_0x5698ca,_0x31b6e2)=>(_0x7556c9,_0x3ec623)=>_0x31b6e2(_0x7556c9,_0x3ec623,_0x5698ca),w=(_0x576ec0=>(_0x576ec0[_0x2908d8(0x1a9)]='not_collab',_0x576ec0['SYNCED']=_0x2908d8(0x2cd),_0x576ec0[_0x2908d8(0x167)]=_0x2908d8(0x493),_0x576ec0[_0x2908d8(0x1ca)]=_0x2908d8(0x2e9),_0x576ec0['AWAITING_WITH_PENDING']='awaiting_with_pending',_0x576ec0['FETCH_MISS']='fetch_missing',_0x576ec0[_0x2908d8(0x14f)]=_0x2908d8(0x132),_0x576ec0[_0x2908d8(0x288)]=_0x2908d8(0x44a),_0x576ec0))(w||{});class le{constructor(_0x4b6421,_0xc304a5,_0x403b12,_0x5d901b,_0x18f8da,_0xf5abc0,_0xfd712c,_0x147774,_0x2539f9){const _0x57c9a3=_0x2908d8;l(this,_0x57c9a3(0x232),null),l(this,_0x57c9a3(0x2eb),[]),(this[_0x57c9a3(0x1ae)]=_0x4b6421,this[_0x57c9a3(0x161)]=_0xc304a5,this[_0x57c9a3(0x1a6)]=_0x18f8da,this[_0x57c9a3(0x3fd)]=_0xf5abc0,this[_0x57c9a3(0x1eb)]=_0xfd712c,this['_revisionService']=_0x147774,this[_0x57c9a3(0x2fc)]=_0x2539f9,this[_0x57c9a3(0x232)]=_0x403b12,this['_pendingMutations']=_0x5d901b);}[_0x2908d8(0x144)](_0x1e3819){const _0x147117=_0x2908d8,_0xe83b95=this[_0x147117(0x3fe)][_0x147117(0x25b)](this[_0x147117(0x1ae)]);return _0x1e3819[_0x147117(0x425)]>_0xe83b95+0x1?(this[_0x147117(0x1a6)][_0x147117(0x429)]({'from':_0xe83b95,'to':_0x1e3819['revision']-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x5798ba){const _0x1ad628=_0x2908d8;this[_0x1ad628(0x1eb)][_0x1ad628(0x393)](this[_0x1ad628(0x1ae)],_0x5798ba);}[_0x2908d8(0x2ab)](_0x223f7e){const _0x1baf01=_0x2908d8;var _0x5094cd,_0x110f59;(_0x110f59=(_0x5094cd=this[_0x1baf01(0x1a6)])[_0x1baf01(0x1e4)])==null||_0x110f59[_0x1baf01(0x189)](_0x5094cd,_0x223f7e);}['_transformIMECache'](_0x1fca37){const _0xc8f371=_0x2908d8;var _0x45d590,_0x71ad95;return(_0x71ad95=(_0x45d590=this[_0xc8f371(0x1a6)])[_0xc8f371(0x245)])==null?void 0x0:_0x71ad95[_0xc8f371(0x189)](_0x45d590,_0x1fca37);}[_0x2908d8(0x3ac)](_0x5edf2c){const _0x1d19b8=_0x2908d8;var _0x15df76,_0x12b0d9,_0x139514;return(_0x139514=(_0x12b0d9=(_0x15df76=this['_handler'])[_0x1d19b8(0x243)])==null?void 0x0:_0x12b0d9[_0x1d19b8(0x189)](_0x15df76,_0x5edf2c))!=null?_0x139514:_0x5edf2c;}[_0x2908d8(0x2bc)](_0x9ce649){const _0x243c91=_0x2908d8;var _0x4eb0a6,_0x2421c8;if(this[_0x243c91(0x161)]===x['UNIVER_DOC']){const {unitID:_0x1db0f1,mutations:_0x1c9180,memberID:_0x31bfda}=_0x9ce649,_0x2437b7=_0x1c9180[0x0][_0x243c91(0x455)]['textRanges'];Array[_0x243c91(0x3c2)](_0x2437b7)&&_0x2437b7[_0x243c91(0x478)]>0x0&&((_0x2421c8=(_0x4eb0a6=this['_handler'])[_0x243c91(0x215)])==null||_0x2421c8['call'](_0x4eb0a6,{'unitID':_0x1db0f1,'memberID':_0x31bfda,'textRanges':_0x2437b7}));}}[_0x2908d8(0x3ab)](){const _0x3a2f22=_0x2908d8;this[_0x3a2f22(0x2fc)][_0x3a2f22(0x401)](this[_0x3a2f22(0x1ae)],this[_0x3a2f22(0x161)],this[_0x3a2f22(0x232)],this['_pendingMutations']);}[_0x2908d8(0x1a0)](){const _0x554365=_0x2908d8;return this[_0x554365(0x3fe)][_0x554365(0x25b)](this['unitID']);}['_incrementRevisionNumber'](){const _0x2cbb34=_0x2908d8;this[_0x2cbb34(0x3fe)][_0x2cbb34(0x26c)](this[_0x2cbb34(0x1ae)]);}['_executeRemoteChangeset'](_0x2b9d0e){const _0x3f2622=_0x2908d8;var _0x928fa8;const _0x1ef652=this[_0x3f2622(0x3ac)](_0x2b9d0e),_0x3bc2be=_0x45fa8f(_0x1ef652[_0x3f2622(0x467)],this[_0x3f2622(0x3fd)],{'fromCollab':!0x0});if(!_0x3bc2be[_0x3f2622(0x38c)])throw _0x3bc2be['error']instanceof Error?_0x3bc2be[_0x3f2622(0x2f3)]:new Error((_0x928fa8=_0x3bc2be[_0x3f2622(0x2f3)])!=null?_0x928fa8:_0x3f2622(0x387));this[_0x3f2622(0x35d)](_0x1ef652),this[_0x3f2622(0x1d1)](_0x2b9d0e),this[_0x3f2622(0x2ab)](_0x1ef652),this[_0x3f2622(0x2bc)](_0x1ef652),this['_incrementRevisionNumber']();}}let Se=class extends le{constructor(_0x1cb565,_0x46c3a4,_0x1917c3,_0xa20b35,_0x4fbe6e,_0xd73f8f,_0x49c556,_0x2d2c7a,_0x43d4c2,_0x1ac704){const _0x32ce5c=_0x2908d8;super(_0x1cb565,_0x46c3a4,null,[],_0x1917c3,_0x2d2c7a,_0x49c556,_0xa20b35,_0x4fbe6e),l(this,'status',_0x32ce5c(0x2cd)),(this[_0x32ce5c(0x333)]=_0xd73f8f,this[_0x32ce5c(0x49c)]=_0x43d4c2,this[_0x32ce5c(0x389)]=_0x1ac704);}['appendMutation'](_0x1fcac7){const _0x43b77f=_0x2908d8,_0x35a02f=this[_0x43b77f(0x333)]['createInstance'](G,this['unitID'],this[_0x43b77f(0x161)],[_0x1fcac7],this[_0x43b77f(0x1a6)]);return _0x35a02f[_0x43b77f(0x25c)](),_0x35a02f['_updateLocalCache'](),_0x35a02f;}['onRemoteChangeset'](_0x9fbc63){const _0x4a0d1f=_0x2908d8;if(this['_checkMissing'](_0x9fbc63))return this[_0x4a0d1f(0x333)]['createInstance'](H,this['unitID'],this[_0x4a0d1f(0x161)],null,[],null,[_0x9fbc63],this[_0x4a0d1f(0x1a6)]);try{const _0x509d63=this['_transformService']['transformMutationsWithChangeset'](_0x9fbc63,[ur]);if(_0x5a2236(_0x509d63)){const {c1Prime:_0x18b69e}=_0x509d63;return this[_0x4a0d1f(0x175)](_0x18b69e),this;}throw _0x509d63['error'];}catch(_0x561e3c){return this[_0x4a0d1f(0x49c)][_0x4a0d1f(0x2f3)](_0x561e3c),this[_0x4a0d1f(0x15c)](!0x1);}}[_0x2908d8(0x15c)](_0x494d0a){const _0x59050e=_0x2908d8;return this['_injector'][_0x59050e(0x386)](Q,this['unitID'],this['type'],null,[],this[_0x59050e(0x1a6)],_0x494d0a);}[_0x2908d8(0x41a)](){const _0x1d38d0=_0x2908d8;throw new Error(_0x1d38d0(0x3eb));}[_0x2908d8(0x2f8)](){const _0x31c2ff=_0x2908d8;throw new Error(_0x31c2ff(0x23e));}[_0x2908d8(0x1c9)](){const _0x5a064f=_0x2908d8;return this[_0x5a064f(0x333)][_0x5a064f(0x386)](ee,this['unitID'],this[_0x5a064f(0x161)],null,[],this['_handler']);}[_0x2908d8(0x3d1)](){return this;}['resend'](){const _0x8c18=_0x2908d8;throw new Error(_0x8c18(0x1ce));}[_0x2908d8(0x145)](){const _0x40cdd0=_0x2908d8,_0x463e48=this['_revisionService'][_0x40cdd0(0x25b)](this['unitID']);return this[_0x40cdd0(0x1a6)][_0x40cdd0(0x429)]({'from':_0x463e48,'to':0x0}),this[_0x40cdd0(0x333)]['createInstance'](H,this[_0x40cdd0(0x1ae)],this[_0x40cdd0(0x161)],null,[],null,[],this[_0x40cdd0(0x1a6)]);}};Se=he([f(0x3,_0x573d4d(_0xa35cc)),f(0x4,_0x573d4d(D)),f(0x5,_0x573d4d(_0x100ac5)),f(0x6,_0x3ed2c5),f(0x7,_0x2bd668),f(0x8,_0x38155a),f(0x9,_0x35595c)],Se);let G=class extends le{constructor(_0x1555fa,_0x266f5d,_0xf72361,_0xcddbef,_0x450702,_0x1e405d,_0x14fb6e,_0x497105,_0x51cb6e,_0x168294,_0x173b22,_0x59d0e4,_0x50b9dc,_0x5cd23a){const _0x115d6c=_0x2908d8;super(_0x1555fa,_0x266f5d,null,_0xf72361,_0xcddbef,_0x168294,_0x5cd23a,_0x1e405d,_0x14fb6e),l(this,_0x115d6c(0x32b),_0x115d6c(0x493)),l(this,_0x115d6c(0x154),null),l(this,_0x115d6c(0x209),null),(this[_0x115d6c(0x333)]=_0x450702,this['_memberService']=_0x497105,this['_logService']=_0x51cb6e,this[_0x115d6c(0x168)]=_0x173b22,this[_0x115d6c(0x389)]=_0x59d0e4,this[_0x115d6c(0x2c2)]=_0x50b9dc);}[_0x2908d8(0x416)](_0xf2841){const _0x4a8d24=_0x2908d8;return this['_pendingMutations'][_0x4a8d24(0x349)](_0xf2841),this[_0x4a8d24(0x3ab)](),this;}[_0x2908d8(0x47f)](_0x3aca11){const _0x5ad270=_0x2908d8;if(this[_0x5ad270(0x144)](_0x3aca11))return this['_clearScheduledTask'](),this[_0x5ad270(0x333)][_0x5ad270(0x386)](H,this[_0x5ad270(0x1ae)],this[_0x5ad270(0x161)],null,this[_0x5ad270(0x2eb)],null,[_0x3aca11],this[_0x5ad270(0x1a6)]);try{const _0x9a0b1e=this[_0x5ad270(0x389)]['transformMutationsWithChangeset'](_0x3aca11,this['_pendingMutations']);if(_0x5a2236(_0x9a0b1e)){const {c1Prime:_0xa78c8a,m2Prime:_0x803c08}=_0x9a0b1e;this['_executeRemoteChangeset'](_0xa78c8a);const _0x19f0cd=this[_0x5ad270(0x333)]['createInstance'](G,this['unitID'],this[_0x5ad270(0x161)],_0x803c08,this[_0x5ad270(0x1a6)]);return this[_0x5ad270(0x47a)](),_0x19f0cd[_0x5ad270(0x25c)](this[_0x5ad270(0x154)]?Math['max'](0x0,new Date()[_0x5ad270(0x3d3)]()-this[_0x5ad270(0x154)]):this[_0x5ad270(0x1e9)]()),_0x19f0cd;}throw _0x9a0b1e['error'];}catch(_0x42dd0e){return this[_0x5ad270(0x49c)]['error'](_0x42dd0e),this[_0x5ad270(0x15c)](!0x1);}}[_0x2908d8(0x41a)](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x2908d8(0x2f8)](){throw new Error('[PendingState]:\x20received\x20rejection.');}[_0x2908d8(0x1c9)](){const _0x1878d5=_0x2908d8;return this[_0x1878d5(0x47a)](),this[_0x1878d5(0x333)]['createInstance'](ee,this[_0x1878d5(0x1ae)],this['type'],null,this[_0x1878d5(0x2eb)],this[_0x1878d5(0x1a6)]);}['toggleOnline'](){return this;}[_0x2908d8(0x25c)](_0x377fa6){const _0x2ca9cb=_0x2908d8,_0x28fc6d=_0x377fa6!=null?_0x377fa6:this[_0x2ca9cb(0x1e9)]();this[_0x2ca9cb(0x154)]=new Date()[_0x2ca9cb(0x3d3)](),this[_0x2ca9cb(0x209)]=window['setTimeout'](()=>{const _0x259aa0=_0x2ca9cb;this[_0x259aa0(0x47a)]();let _0x15d00e=null;switch(this[_0x259aa0(0x161)]){case x[_0x259aa0(0x37d)]:{_0x15d00e=hs(this[_0x259aa0(0x2eb)],this[_0x259aa0(0x1ae)],this['_univerInstanceService'],this['_revisionService'],this[_0x259aa0(0x13f)]);break;}case x[_0x259aa0(0x461)]:{this[_0x259aa0(0x2eb)][_0x259aa0(0x22c)](_0x2cde0d=>_0x2cde0d['id']===_0x13ef0c['id'])?_0x15d00e=_r(this['_pendingMutations'],this[_0x259aa0(0x1ae)],this[_0x259aa0(0x2c2)],this[_0x259aa0(0x3fe)],this[_0x259aa0(0x13f)]):_0x15d00e=hs(this['_pendingMutations'],this['unitID'],this[_0x259aa0(0x2c2)],this['_revisionService'],this[_0x259aa0(0x13f)]);break;}default:throw new Error(_0x259aa0(0x20c)+this[_0x259aa0(0x161)]+_0x259aa0(0x3a3));}const {changeset:_0x46b0f4,pendingMutations:_0x109710}=_0x15d00e;this[_0x259aa0(0x1a6)][_0x259aa0(0x338)](_0x46b0f4);const _0x5a9af4=_0x109710[_0x259aa0(0x478)]?this[_0x259aa0(0x333)][_0x259aa0(0x386)](Y,this[_0x259aa0(0x1ae)],this[_0x259aa0(0x161)],_0x46b0f4,_0x109710,this[_0x259aa0(0x1a6)]):this[_0x259aa0(0x333)][_0x259aa0(0x386)](Z,this[_0x259aa0(0x1ae)],this[_0x259aa0(0x161)],_0x46b0f4,this['_handler']);_0x5a9af4[_0x259aa0(0x3ab)](),this[_0x259aa0(0x1a6)][_0x259aa0(0x227)](this,_0x5a9af4);},_0x28fc6d);}[_0x2908d8(0x1e9)](){var _0xefcde4;return(_0xefcde4=this['_configService']['getConfig'](fn))!=null?_0xefcde4:gn;}['resend'](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x2908d8(0x47a)](){const _0x5cd1d8=_0x2908d8;this[_0x5cd1d8(0x209)]!=null&&(clearTimeout(this['_sendingTimer']),this[_0x5cd1d8(0x209)]=null);}[_0x2908d8(0x15c)](_0x17effd){const _0x2b720a=_0x2908d8;return this[_0x2b720a(0x47a)](),this['_injector'][_0x2b720a(0x386)](Q,this[_0x2b720a(0x1ae)],this[_0x2b720a(0x161)],null,this[_0x2b720a(0x2eb)],this[_0x2b720a(0x1a6)],_0x17effd);}};G=he([f(0x4,_0x573d4d(_0x100ac5)),f(0x5,_0x573d4d(_0xa35cc)),f(0x6,_0x573d4d(D)),f(0x7,_0x573d4d(oe)),f(0x8,_0x38155a),f(0x9,_0x2bd668),f(0xa,_0x3abdb4),f(0xb,_0x35595c),f(0xc,_0x52e604),f(0xd,_0x3ed2c5)],G);let Z=class extends le{constructor(_0x3be5cb,_0x31ea84,_0x5c714e,_0x378d9e,_0x402a8a,_0x3c36c7,_0x5c87be,_0x529a81,_0x28ef6b,_0x5a037b,_0x530792){const _0x4fed66=_0x2908d8;super(_0x3be5cb,_0x31ea84,_0x5c714e,[],_0x378d9e,_0x529a81,_0x530792,_0x3c36c7,_0x5c87be),l(this,_0x4fed66(0x32b),_0x4fed66(0x2e9)),(this[_0x4fed66(0x333)]=_0x402a8a,this['_logService']=_0x28ef6b,this[_0x4fed66(0x389)]=_0x5a037b);}[_0x2908d8(0x416)](_0x291956){const _0x5b38eb=_0x2908d8,_0x34837=this['_injector'][_0x5b38eb(0x386)](Y,this['unitID'],this[_0x5b38eb(0x161)],this['_awaitingChangeset'],[_0x291956],this[_0x5b38eb(0x1a6)]);return _0x34837[_0x5b38eb(0x3ab)](),_0x34837;}['onRemoteChangeset'](_0x3bb78c){const _0x182ede=_0x2908d8;if(this['_checkMissing'](_0x3bb78c))return this[_0x182ede(0x333)][_0x182ede(0x386)](H,this[_0x182ede(0x1ae)],this['type'],this[_0x182ede(0x232)],[],null,[_0x3bb78c],this[_0x182ede(0x1a6)]);try{const _0x7ab2a4=this[_0x182ede(0x389)][_0x182ede(0x415)]([_0x3bb78c],[this[_0x182ede(0x232)]],!0x1);if(_0x3fdc14(_0x7ab2a4)){const {c1Prime:_0x28471c,c2Prime:_0x7f379}=_0x7ab2a4;this[_0x182ede(0x175)](_0x28471c[0x0]),_0x7f379[0x0][_0x182ede(0x3b7)]=this[_0x182ede(0x1a0)]();const _0x1b3dc3=this[_0x182ede(0x333)][_0x182ede(0x386)](Z,this['unitID'],this['type'],_0x7f379[0x0],this[_0x182ede(0x1a6)]);return _0x1b3dc3[_0x182ede(0x3ab)](),_0x1b3dc3;}return this['_onConflict'](!0x1);}catch(_0x3d1d8f){return this[_0x182ede(0x49c)][_0x182ede(0x2f3)](_0x3d1d8f),this[_0x182ede(0x15c)](!0x1);}}[_0x2908d8(0x41a)](_0x1f2231){const _0x2b7998=_0x2908d8,_0x1deb12=this[_0x2b7998(0x3fe)][_0x2b7998(0x25b)](this[_0x2b7998(0x1ae)]);if(_0x1f2231[_0x2b7998(0x425)]<_0x1deb12-0x1)return this;if(this[_0x2b7998(0x144)](_0x1f2231))return this[_0x2b7998(0x333)][_0x2b7998(0x386)](H,this[_0x2b7998(0x1ae)],this[_0x2b7998(0x161)],null,[],this[_0x2b7998(0x232)],[],this[_0x2b7998(0x1a6)]);this[_0x2b7998(0x275)]();const _0x597ce9=this['_injector'][_0x2b7998(0x386)](Se,this[_0x2b7998(0x1ae)],this['type'],this['_handler']);return _0x597ce9[_0x2b7998(0x3ab)](),_0x597ce9;}[_0x2908d8(0x2f8)](_0x27df5a){const _0x514072=_0x2908d8;return this['_onConflict'](!!(_0x27df5a!=null&&_0x27df5a[_0x514072(0x2c1)]));}[_0x2908d8(0x1c9)](){const _0x45a30f=_0x2908d8;return this[_0x45a30f(0x333)][_0x45a30f(0x386)](ee,this['unitID'],this[_0x45a30f(0x161)],this[_0x45a30f(0x232)],[],this['_handler']);}[_0x2908d8(0x3d1)](){return this;}[_0x2908d8(0x26e)](){const _0x26cc3a=_0x2908d8;this[_0x26cc3a(0x1a6)][_0x26cc3a(0x338)](this[_0x26cc3a(0x232)]);}[_0x2908d8(0x15c)](_0x589dd7){const _0x2dd0f5=_0x2908d8;return this[_0x2dd0f5(0x333)][_0x2dd0f5(0x386)](Q,this[_0x2dd0f5(0x1ae)],this['type'],this['_awaitingChangeset'],[],this['_handler'],_0x589dd7);}};Z=he([f(0x4,_0x573d4d(_0x100ac5)),f(0x5,_0x573d4d(_0xa35cc)),f(0x6,_0x573d4d(D)),f(0x7,_0x2bd668),f(0x8,_0x38155a),f(0x9,_0x35595c),f(0xa,_0x3ed2c5)],Z);let Y=class extends le{constructor(_0x1ba616,_0x433350,_0x5747cb,_0x13d735,_0x43e223,_0x525df8,_0x4f3efc,_0x5c4132,_0x3246d0,_0x586ecd,_0x37bf94,_0x3486b3){const _0xb243db=_0x2908d8;super(_0x1ba616,_0x433350,_0x5747cb,_0x13d735,_0x43e223,_0x3246d0,_0x3486b3,_0x4f3efc,_0x5c4132),l(this,'status',_0xb243db(0x440)),(this[_0xb243db(0x333)]=_0x525df8,this[_0xb243db(0x49c)]=_0x586ecd,this[_0xb243db(0x389)]=_0x37bf94);}[_0x2908d8(0x416)](_0x2ad0ac){const _0x4f4557=_0x2908d8;return this[_0x4f4557(0x2eb)]['push'](_0x2ad0ac),this;}[_0x2908d8(0x47f)](_0x47c7f8){const _0x1061ca=_0x2908d8;if(this[_0x1061ca(0x144)](_0x47c7f8))return this[_0x1061ca(0x333)][_0x1061ca(0x386)](H,this['unitID'],this[_0x1061ca(0x161)],this[_0x1061ca(0x232)],this[_0x1061ca(0x2eb)],null,[_0x47c7f8],this['_handler']);try{const _0x514f75=this[_0x1061ca(0x389)][_0x1061ca(0x415)]([_0x47c7f8],[this['_awaitingChangeset']],!0x1);if(_0x3fdc14(_0x514f75)){const {c1Prime:_0x427df5,c2Prime:_0x1b744e}=_0x514f75,_0x543b35=this['_transformService'][_0x1061ca(0x27e)](_0x427df5[0x0],this[_0x1061ca(0x2eb)]);if(_0x5a2236(_0x543b35)){const {c1Prime:_0x1037ea,m2Prime:_0x248fe1}=_0x543b35;return this[_0x1061ca(0x175)](_0x1037ea),_0x1b744e[0x0]['baseRev']=this['_getCurrentRevision'](),this[_0x1061ca(0x333)][_0x1061ca(0x386)](Y,this[_0x1061ca(0x1ae)],this['type'],_0x1b744e[0x0],_0x248fe1,this[_0x1061ca(0x1a6)]);}throw _0x543b35[_0x1061ca(0x2f3)];}throw _0x514f75['error'];}catch(_0x144590){return this[_0x1061ca(0x49c)][_0x1061ca(0x2f3)](_0x144590),this[_0x1061ca(0x15c)](!0x1);}}[_0x2908d8(0x41a)](_0x2dd9a5){const _0x5da5dd=_0x2908d8;if(this[_0x5da5dd(0x144)](_0x2dd9a5))return this['_injector']['createInstance'](H,this[_0x5da5dd(0x1ae)],this[_0x5da5dd(0x161)],null,this[_0x5da5dd(0x2eb)],this['_awaitingChangeset'],[],this[_0x5da5dd(0x1a6)]);this[_0x5da5dd(0x275)]();const _0x48b3d6=this['_injector'][_0x5da5dd(0x386)](G,this[_0x5da5dd(0x1ae)],this[_0x5da5dd(0x161)],this['_pendingMutations'],this[_0x5da5dd(0x1a6)]);return _0x48b3d6[_0x5da5dd(0x25c)](),_0x48b3d6['_updateLocalCache'](),_0x48b3d6;}[_0x2908d8(0x2f8)](_0x49ddf5){const _0x57b096=_0x2908d8;return this[_0x57b096(0x15c)](!!(_0x49ddf5!=null&&_0x49ddf5[_0x57b096(0x2c1)]));}['toggleOffline'](){const _0xa58869=_0x2908d8;return this[_0xa58869(0x333)]['createInstance'](ee,this[_0xa58869(0x1ae)],this['type'],this[_0xa58869(0x232)],this[_0xa58869(0x2eb)],this['_handler']);}[_0x2908d8(0x3d1)](){return this;}[_0x2908d8(0x26e)](){const _0x54a9ce=_0x2908d8;this['_handler']['onSendChangeset'](this[_0x54a9ce(0x232)]);}[_0x2908d8(0x15c)](_0x1f7652){const _0x1b3315=_0x2908d8;return this[_0x1b3315(0x333)][_0x1b3315(0x386)](Q,this[_0x1b3315(0x1ae)],this['type'],null,this[_0x1b3315(0x2eb)],this[_0x1b3315(0x1a6)],_0x1f7652);}};Y=he([f(0x5,_0x573d4d(_0x100ac5)),f(0x6,_0x573d4d(_0xa35cc)),f(0x7,_0x573d4d(D)),f(0x8,_0x2bd668),f(0x9,_0x38155a),f(0xa,_0x35595c),f(0xb,_0x3ed2c5)],Y);let Q=class extends le{constructor(_0x2bc6fb,_0x53c2ce,_0x133d82,_0x120b71,_0x39f4e7,_0x47f889=!0x1,_0x249911,_0x30cab2,_0x4e5095,_0x44b138,_0x447645,_0x8520e0,_0x12254e){const _0x4c9755=_0x2908d8;super(_0x2bc6fb,_0x53c2ce,_0x133d82,_0x120b71,_0x39f4e7,_0x30cab2,_0x4e5095,_0x447645,_0x44b138),l(this,'status',_0x4c9755(0x132)),(this[_0x4c9755(0x177)]=_0x47f889,this[_0x4c9755(0x462)]=_0x249911,this[_0x4c9755(0x140)]=_0x8520e0,this['_notificationService']=_0x12254e,this[_0x4c9755(0x427)](),this['_clearLocalCache'](),this[_0x4c9755(0x37b)]());}[_0x2908d8(0x416)](){return this;}[_0x2908d8(0x47f)](){return this;}['onRemoteAck'](){return this;}[_0x2908d8(0x2f8)](){return this;}['toggleOffline'](){return this;}[_0x2908d8(0x3d1)](){return this;}['resend'](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x2908d8(0x19a)](){const _0x220ad0=_0x2908d8;this[_0x220ad0(0x2fc)][_0x220ad0(0x401)](this[_0x220ad0(0x1ae)],this['type'],null,[]);}['_showConflictNotification'](){const _0x1ce67b=_0x2908d8;this[_0x1ce67b(0x177)]?this[_0x1ce67b(0x1c6)]['show']({'title':this[_0x1ce67b(0x140)]['t'](_0x1ce67b(0x169)),'content':this[_0x1ce67b(0x140)]['t'](_0x1ce67b(0x1e3)),'type':_0x1ce67b(0x2f3),'duration':0x0}):this['_notificationService'][_0x1ce67b(0x24e)]({'title':this['_localeService']['t']('conflict.title'),'content':this[_0x1ce67b(0x140)]['t'](_0x1ce67b(0x1af)),'type':'error','duration':0x0});}[_0x2908d8(0x37b)](){const _0x5b414c=_0x2908d8;this[_0x5b414c(0x462)][_0x5b414c(0x20a)](new _0x4eedfe(this[_0x5b414c(0x1ae)])['id'],!0x1);}};Q=he([f(0x6,_0x573d4d(_0x1984e0)),f(0x7,_0x2bd668),f(0x8,_0x3ed2c5),f(0x9,_0x573d4d(D)),f(0xa,_0x573d4d(_0xa35cc)),f(0xb,_0x573d4d(_0x5071b4)),f(0xc,_0x3bf708)],Q);let ee=class extends le{constructor(_0x343503,_0x52783d,_0x25df14,_0x1360a7,_0x60327c,_0x5ea824,_0x595b90,_0x52a0ef,_0x57be80,_0x439597){const _0x36f929=_0x2908d8;super(_0x343503,_0x52783d,_0x25df14,_0x1360a7,_0x60327c,_0x57be80,_0x439597,_0x595b90,_0x52a0ef),l(this,_0x36f929(0x32b),'offline'),this[_0x36f929(0x333)]=_0x5ea824;}[_0x2908d8(0x416)](_0x4324bc){const _0x28e78b=_0x2908d8;return this[_0x28e78b(0x2eb)]['push'](_0x4324bc),this['_updateLocalCache'](),this;}[_0x2908d8(0x47f)](_0x2535be){const _0x20c156=_0x2908d8;throw new Error(_0x20c156(0x1c2));}[_0x2908d8(0x41a)](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){const _0x43bad8=_0x2908d8;throw new Error(_0x43bad8(0x3ae));}[_0x2908d8(0x1c9)](){return this;}['toggleOnline'](){const _0xbb6ffc=_0x2908d8,{_injector:_0x681b8e,_pendingMutations:_0x36f902,_awaitingChangeset:_0x628caa,unitID:_0xd3ac76,_handler:_0x532a10,type:_0x2c29c0}=this,_0x2ea16a=xs(_0x681b8e,_0xd3ac76,_0x2c29c0,_0x628caa,_0x36f902,_0x532a10);return _0x2ea16a instanceof G?_0x2ea16a[_0xbb6ffc(0x25c)]():(_0x2ea16a instanceof Y||_0x2ea16a instanceof Z)&&_0x2ea16a[_0xbb6ffc(0x26e)](),_0x2ea16a;}['resend'](){const _0x41eb39=_0x2908d8;throw new Error(_0x41eb39(0x1dd));}};ee=he([f(0x5,_0x573d4d(_0x100ac5)),f(0x6,_0x573d4d(_0xa35cc)),f(0x7,_0x573d4d(D)),f(0x8,_0x2bd668),f(0x9,_0x3ed2c5)],ee);let H=class extends le{constructor(_0x2cd7c5,_0x2bfe77,_0xeb29a4,_0x5ef479,_0xbadba,_0x3449c4,_0xa1509d,_0x33f82a,_0x123571,_0x13b2ff,_0x2a6577,_0xb950b4,_0xd82001,_0x30698e){const _0x12cfad=_0x2908d8;super(_0x2cd7c5,_0x2bfe77,_0xeb29a4,_0x5ef479,_0xa1509d,_0xb950b4,_0xd82001,_0x123571,_0x13b2ff),l(this,_0x12cfad(0x32b),_0x12cfad(0x486)),(this[_0x12cfad(0x1ba)]=_0xbadba,this[_0x12cfad(0x355)]=_0x3449c4,this[_0x12cfad(0x333)]=_0x33f82a,this[_0x12cfad(0x49c)]=_0x2a6577,this['_transformService']=_0x30698e);}['onMissedChangesetFetched'](_0x3e3bde){const _0x5a4182=_0x2908d8;try{const _0x22f681=[..._0x3e3bde,...this['_queuedRemoteChangesets']],_0x2def7e=[this['_awaitingChangeset']||this[_0x5a4182(0x1ba)]]['filter'](_0x2b6d8c=>!!_0x2b6d8c);let _0x29bdff,_0x308028;if(_0x2def7e['length']){const _0x5bdadd=this[_0x5a4182(0x389)][_0x5a4182(0x415)](_0x22f681,_0x2def7e,!0x1);if(!_0x3fdc14(_0x5bdadd))throw _0x5bdadd['error'];_0x29bdff=_0x5bdadd[_0x5a4182(0x483)],_0x308028=_0x5bdadd[_0x5a4182(0x240)];}else _0x29bdff=_0x22f681,_0x308028=[];let _0x2be097=this[_0x5a4182(0x2eb)];_0x29bdff[_0x5a4182(0x212)](_0x40749f=>{const _0x15529e=_0x5a4182;let _0x1c8b20;if(_0x2be097['length']){const _0x34f471=this[_0x15529e(0x389)][_0x15529e(0x27e)](_0x40749f,_0x2be097);if(!_0x5a2236(_0x34f471))throw _0x34f471[_0x15529e(0x2f3)];_0x1c8b20=_0x34f471[_0x15529e(0x483)],_0x2be097=_0x34f471['m2Prime'];}else _0x1c8b20=_0x40749f;this[_0x15529e(0x175)](_0x1c8b20);}),this[_0x5a4182(0x1ba)]&&this[_0x5a4182(0x275)](),this['_awaitingChangeset']&&_0x308028[_0x5a4182(0x478)]&&(_0x308028[0x0][_0x5a4182(0x3b7)]=this[_0x5a4182(0x1a0)]());let _0x41092b;if(this['_awaitingChangeset']&&_0x2be097[_0x5a4182(0x478)]!==0x0)_0x41092b=this[_0x5a4182(0x333)]['createInstance'](Y,this[_0x5a4182(0x1ae)],this[_0x5a4182(0x161)],_0x308028[0x0],_0x2be097,this[_0x5a4182(0x1a6)]);else{if(this['_awaitingChangeset']&&_0x2be097[_0x5a4182(0x478)]===0x0)_0x308028[0x0][_0x5a4182(0x3b7)]=this[_0x5a4182(0x1a0)](),_0x41092b=this[_0x5a4182(0x333)][_0x5a4182(0x386)](Z,this[_0x5a4182(0x1ae)],this['type'],_0x308028[0x0],this['_handler']);else{if(_0x2be097['length']!==0x0){const _0x5625f1=this[_0x5a4182(0x333)]['createInstance'](G,this[_0x5a4182(0x1ae)],this[_0x5a4182(0x161)],_0x2be097,this[_0x5a4182(0x1a6)]);_0x5625f1[_0x5a4182(0x25c)](),_0x41092b=_0x5625f1;}else _0x41092b=this['_injector'][_0x5a4182(0x386)](Se,this[_0x5a4182(0x1ae)],this[_0x5a4182(0x161)],this[_0x5a4182(0x1a6)]);}}return _0x41092b['_updateLocalCache'](),_0x41092b;}catch(_0x459b31){return this[_0x5a4182(0x49c)][_0x5a4182(0x2f3)](_0x5a4182(0x31f),'failed\x20to\x20apply\x20missed\x20changesets!',_0x459b31),this['_injector'][_0x5a4182(0x386)](Q,this[_0x5a4182(0x1ae)],this['type'],this[_0x5a4182(0x232)],this[_0x5a4182(0x2eb)],this['_handler'],!0x1);}}[_0x2908d8(0x26e)](){const _0x5346ed=_0x2908d8;throw new Error(_0x5346ed(0x357));}['appendMutation'](_0x1497d9){const _0x39ab5a=_0x2908d8;return this[_0x39ab5a(0x2eb)][_0x39ab5a(0x349)](_0x1497d9),this;}[_0x2908d8(0x47f)](_0xab494){const _0x446dd0=_0x2908d8;return this[_0x446dd0(0x355)][_0x446dd0(0x349)](_0xab494),this;}[_0x2908d8(0x41a)](_0x233afb){const _0xc0c2e3=_0x2908d8;if(this[_0xc0c2e3(0x232)])return this[_0xc0c2e3(0x1ba)]=this['_awaitingChangeset'],this[_0xc0c2e3(0x232)]=null,this;throw new Error(_0xc0c2e3(0x396));}[_0x2908d8(0x2f8)](_0x18dd8b){const _0x217de4=_0x2908d8;return this[_0x217de4(0x15c)](!!(_0x18dd8b!=null&&_0x18dd8b['isPermissionRej']));}['toggleOffline'](){const _0x104541=_0x2908d8;return this[_0x104541(0x333)][_0x104541(0x386)](ee,this[_0x104541(0x1ae)],this[_0x104541(0x161)],this[_0x104541(0x232)],this['_pendingMutations'],this['_handler']);}[_0x2908d8(0x3d1)](){return this;}[_0x2908d8(0x15c)](_0x4173d2){const _0x66f1d1=_0x2908d8;return this[_0x66f1d1(0x333)][_0x66f1d1(0x386)](Q,this[_0x66f1d1(0x1ae)],this[_0x66f1d1(0x161)],this[_0x66f1d1(0x232)],this['_pendingMutations'],this[_0x66f1d1(0x1a6)],_0x4173d2);}};function _0x1140(_0x524a80,_0xb75292){const _0x3fc58c=_0x3fc5();return _0x1140=function(_0x1140ae,_0x33bd9f){_0x1140ae=_0x1140ae-0x132;let _0x262f6d=_0x3fc58c[_0x1140ae];return _0x262f6d;},_0x1140(_0x524a80,_0xb75292);}H=he([f(0x7,_0x573d4d(_0x100ac5)),f(0x8,_0x573d4d(_0xa35cc)),f(0x9,_0x573d4d(D)),f(0xa,_0x38155a),f(0xb,_0x2bd668),f(0xc,_0x3ed2c5),f(0xd,_0x35595c)],H);function xs(_0x22e49b,_0x27990f,_0x2dccde,_0x4016df,_0x284d14,_0x17dba5){const _0x429bf3=_0x2908d8;return _0x4016df&&_0x284d14[_0x429bf3(0x478)]?_0x22e49b[_0x429bf3(0x386)](Y,_0x27990f,_0x2dccde,_0x4016df,_0x284d14,_0x17dba5):_0x4016df?_0x22e49b['createInstance'](Z,_0x27990f,_0x2dccde,_0x4016df,_0x17dba5):_0x284d14[_0x429bf3(0x478)]?_0x22e49b[_0x429bf3(0x386)](G,_0x27990f,_0x2dccde,_0x284d14,_0x17dba5):_0x22e49b[_0x429bf3(0x386)](Se,_0x27990f,_0x2dccde,_0x17dba5);}function _0x3fc5(){const _0x2b068e=['batchAllowed','onSendChangeset','close$','_getSaveTimeout','max','_onOffline','getWorkbookSelections','getMemberID','getResourcesRequest','engine','_renderManagerService','transformSelections','searchParams','_createInitialState','doc.mutation.rich-text-editing','1494411uPrORL','jiqing500','getSheetId','push','delete','getCurrentUnitForType','_setupBeforeClosingHandler','executeCommand','listRoles','fetching\x20missing\x20changesets\x20from\x20','cmd','image/jpg','_draw','_replaceFileID','icon','_queuedRemoteChangesets','saveSnapshot','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','collaboratorID','_textBubble','_name','getImage','_hideTimer','_transformIMECache','_shouldReportTelemetry','BASE64','_unitStatus','setInterval','unshift','_undoStacks','enableAuthServer','_transformPreviousActiveRange','image/jpeg','_roomMembers$','commentUpdate$','COMMENT_UPDATE','getSkeleton','_toggleOnline','pauseCollaboration','DEFAULT_FILE_NAME','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','getInterceptPoints','syncEditingCollabCursor','_clearOtherTimers','replaceTextRanges','uni.network.url-service','_members','/unit/','YUUMI_UNABLE_LOAD_URL','_exhaustRemoteChangesetQueue','then','blue400','_telemetryService','_disableEditing','_hovered','UNIVER_SHEET','APPLY_REJECT','onRendered','file','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_commentUpdate$','status$','_transformUndoRedoStack','none','createInstance','[CollaborationState]:\x20apply\x20error!','transformByState','_transformService','rgba(255,\x20255,\x20255,\x200.01)','_docSkeleton','result','/new_changes','getCollabEntity','_substituteUndoStack','subscribeEvent','roomMembers$','init','transformUndoRedo','/universer-api/comb','session','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','use','...','_getAPIPrefix','getFocusedUnit','_sheetSkeletonManagerService','_onUserJoin','random','_listenToOfflineEvent','hide','LIVESHARE_REQUEST_HOST','136aFERiS','_state$','\x20in\x20_schedule.','YUUMI_URL_COL_OUT_OF_RANGE','_clearTimeoutTimer','closeSession','9221028aoKHjM','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','collaMsg','_collaborationTimeoutTimer','_updateLocalCache','_transformRemoteChangesetByIMECache','_getAPIPrefixPath','[OfflineState]:\x20received\x20rejection.','fillText','getSheetBySheetId','save','/resources','_singleActiveUnitService','currentSkeleton$','isActive','name','baseRev','_onRefRangeChange','onlyLocal','ws://127.0.0.1:8000/universer-api/comb/connect','_handleHeartbeatEvent','onlineStatus','unitId\x20is\x20not\x20found','symbol','responseType','CHANGESET_ACK','UNKNOWN_CODE','isArray','fillStyle','session.connection-failed','message$','saveSheetBlock','_unitOnClients','univer-online-status','SYNCED','values','_urlService','triggerDblclick','state','FileId','encode','HEARTBEAT_TIMEOUT','toggleOnline','registerComponent','getTime','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','compose','url(#off-line-single_clip0_910_343)','_decreaseWaiting','disableLocalCache','univer-online-status-icon','RECV','ERROR_IMAGE','_updateStatus','_socket','COMPRESS_MUTATION_SEND','_render','registerRefRange','originalMeta','rev','tag','getMember','_onRemoteRejected','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','RemoveColCommandId','slice','red300','ACTIVE_UNIT_EVENT_CHANNEL','[SyncedState]:\x20received\x20acknowledgement.','_syncEditingCollabCursorService','JOIN','AWAITING_WITH_PENDING','_onConnectionFailed','_instanceService','div','getRangePointData','_assignedColors','_onJoinRoomEvent','removeEventListener','objectType','_themeService','_ws','backgroundColor','members','newValue','catch','_commandService','_revisionService','actions','_heartbeatTimer','updateOfflineData','InsertRangeMoveRightCommandId','joinRsp','cursorInfo$','auth.needGotoLoginAlert','univer-offline','MoveRangeCommandId','prototype','_imageSourceCache','restore','collaboration.single-unit.warning','add','RETRY_CONNECTING_MAX_COUNT','_startSheetCollabCursor','_redoStacks','MSG_FOR_ERROR','collabStatus.synced','skeleton','_getRedoStack','YUUMI_RATE_OVER_LIMIT','transformChangesets','appendMutation','624610HJfEob','_transitionLocked','toRgbString','onRemoteAck','image/gif','_scene','newCsEvent','stopTime','_submitChangeset','_initResize','_docSkeletonManagerService','_getMergeRange','roomInfos','objectActions','revision','_cursorInfo$','_showConflictNotification','LOCAL_CACHE_INTERVAL','onMissingChangesets','getMergeData','addObject','PERMISSION_DENIED','_throwTelemetryCollaborationNewChangeset','startsWith','_onRemoteChangeset','collabStatus.fetchMiss','RemoveRowCommandId','roomMembers','_getSignURL','_collaborationPaused','_handleHover','APPLY_PERMISSION_DENIED','_commentService','onPointerEnter$','some','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','clearInterval','[CollaborationSession]','onCommandExecuted','makeDirty','UNIVER_SLIDE','awaiting_with_pending','leaveEvent','onlineStatusTitle','idSuffix','getUnhiddenWorksheets','_scheduleSaving','collab-rect-range-','m2Prime','deepClone','getUniverSheetInstance','offline','now','reverse','_saveCache','getCollabCursors$','_drawAnchor','_onCombEvent','_getUndoStack','YUUMI_SUBSCRIPTION_NOT_FOUND','_selfUnitIDs','_onMessage','params','_replayCachedMutations','PSEUDO_FETCH_MISSING_RESULT','assignAColorForMemberID','_socketMessageSubscription','popstate','_clearRedo','_onUserLeave','csRejEvent','getCollabEntity$','_onConnectionOpen','_startDocCollabCursor','UNIVER_DOC','_permissionService','_sheetTransformSelectionsService','USERS_LEAVE','SNAPSHOT_URL_KEY','LICENSE_DISTRO_REJECTED','mutations','min','memberID','getTypeOfUnitDisposed$','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_state','_getSnapshotAPIPrefix','transformIMECache','attrs','saveOfflineData','userID','subunit','collabCursorState$','closePath','unit','ERROR_IMAGE_TYPE','initWorkbookPermissionChange','length','get','_clearScheduledTask','_onRemoteACK','create','_HTTPService','_onCursorUpdate','onRemoteChangeset','error$','CONNECTOR_DATA_TOO_LARGE','Undefined','c1Prime','_createHandler','collab-client.tooltip.reconnect','fetch_missing','changesets','_colorAssignService','_change$','saveChangeset','pluginName','_rescheduleHeartbeat','LICENSE_MAX_UNITS_EXCEEDED','reject','find','pipe','UNIVER_PROJECT','sheets','pending','/fetchmissing?from=','Error','_id','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','unitId','off-line-single_clip0_910_343','sheetId','startColumn','_logService','setTimeout','_shapes','_toggleOffline','conflict','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','size','Starting','shouldCloseConn','save\x20fail\x20reason\x20is\x20','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','findNodePositionByCharIndex','onCommentUpdate','getDocRanges','setShapeProps','subUnitId','_labelPosition','_memberService','_localeService','setAlpha','editing\x20status\x20changed\x20to','UNRECOGNIZED','_checkMissing','fetchMiss','_clearCollaborationTimeoutTimer','_drawRectRange','UNKNOWN_CMD','POST','21969EihStj','_initCloseConn','reduce','_anchorDot','_telemetryInfo','CONFLICT','_loadDoc','next','Warning','whenReady','_scheduleTimestamp','_scheduleHeartbeat','#fff','getConfig','_colorIndex','2jQFPVT','clipPath','textRanges','_onConflict','parse','collab-text-range-','/-/object/-/batch_allowed','focused$','type','width','_handleJoinEvent','RETRY_CONNECTING_INTERVAL','asObservable','collabStatus.notCollab','PENDING','_configService','permission.title','unit-cache-','_docTransformIMECacheService','_snapshotServerService','hovered','socket$','unknown','online','_roomMembers','/universer-api/file/{fileID}/sign-url','{fileID}','_removeClearOtherTimer','_executeRemoteChangeset','measureText','_isPermissionRej','defIds','on-line-single_clip0_910_349','saveImage','getOwnPropertyDescriptor','extend','_clearHeartbeatTimer','_registerRenderDependencies','_lockTransition','SNAPSHOT_HAS_BEEN_REMOVED','LICENSE_EXPORT_SIZE_EXCEEDED','round','DeleteRangeMoveUpCommandId','_initMergeInterceptor','image/bmp','_handleLeaveEvent','setConfig','_eventUnsubscribe','call','unsubscribe','getUnitId','_updateLocalCursor','cursorInfo','removeParam','color','_config','getRelativeToViewportCoord','resize','session.will-retry','_send','getUnitStatus$','VIEW_MAIN','liveShareOperation','editingUnit','UUID','_clearLocalCache','json','_fetchMissChangesets','NOT_FOUND','_remoteChangesetQueue','fetchMissingChangesets','_getCurrentRevision','colorChannel1','_transformStack','_removeRoom','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_collabSessionService','_handler','_status$','addEventListener','NOT_COLLAB','getOffsetConfig','_anchor','defs','listCollaborators','unitID','conflict.content','_waitForHeartbeatResponse','/-/object/list','_unlockTransition','onload','liveShareNewHost','FromArray','_updateSubUnitFromURLParams','change$','_substituteRedoStack','_onLocalMutation','_acknowledgedAwaitingChangeset','fetchThroughInterceptors','SNAPSHOT_SERVER_URL_KEY','getUndoRedoMutationParamsCache','_initCommandExecutedListener','dispose','getRoom','_entityInit$','[OfflineState]:\x20received\x20changeset.','_userManagerService','_setupSubUnitSync','_retryConnectingTimer','_notificationService','_collabCursorController','refreshPermission','toggleOffline','AWAITING','reconnect','_entities','transformRemoteChangeset','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','SNAPSHOT_INVALID_SNAPSHOT','duration','_transformUndoredo','_socketReady','createSocket','flatMap','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','transform','eventID','removeMember','evenodd','FETCH_MISSING','createElement','includes','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','split','_getCtorByUniverType','replaceState','_updateURLWithCurrentState','#FFF','permission.content','onTransformSelections','INVALID_ARGUMENT','HEARTBEAT','registerOnClose','pushState','_getSendChangesetTimeout','7138335RMSetB','_undoRedoService','indexOf','code','data','_backgroundColor','NO_OTHER_CLIENTS_EDITING','COMPRESS_MUTATION_APPLY','_cursorShapes','beginPath','hasOwnProperty','_localStorageService','defineProperty','[CollaborationUndoRedoService]','_type','_saveTaskMap','_unitID','_getAnchorBounding','getTypeOfUnitAdded$','_onFetchMissResult','_onCursorDelete','\x0aCurrent:\x20','text','CHANGESET_REVISION_CONFILICT','gold400','_range','enableSingleActiveInstanceLock','LIVESHARE_OPERATION','disposeWithMe','_sendHeartbeat','SUBMIT_CHANGESET','_sendingTimer','updatePermissionPoint','/universer-api/snapshot','[PendingState]:\x20unhandled\x20univer\x20type:\x20','className','Unknown\x20user','955842dkqPXn','INGEST','onPointerMove$','forEach','/universer-api/authz','_waitCount','onSyncEditingCollabCursor','startRow','_loadSheet','localeService','_createInitialStateImpl','list','transformStack\x20failed!','_initUnitPermissionChange','3119832uNdjNc','location','ranges','m1Prime','top','_getLoginPath','event$','_handleEvent','send','_lastPointer','onStateChange','createCollaborator','_collaborationSessionService','concat','loadOfflineData','every','_sessionStatus$','_httpService','body','disposeUnit','svg','_awaitingChangeset','addImageSourceCache','displayName','/object','UNAUTHENTICATED','_color','resourceIDs','getActiveSheet','HELLO','getCurrentSelections','_session','endRow','[SyncedState]:\x20received\x20rejection.','LIVESHARE_TERMINATE','c2Prime','confirm','generateRandomId','onTransformRemoteChangesetByIMECache','_createSocket','onTransformIME','startTime','_document','_listenToOnlineEvent','_snapshotService','drawWith','objectID','HEADER_MENU','/collaborator','show','readAsDataURL','HEARTBEAT_INTERVAL','HttpImport','black','trim','[DataLoaderController]','set','setParam','onTransformChange$','_context','method','has','getCurrentRevForDocument','_schedule','updatePermissionObjEvent','PERMISSION_REJ','requestParams','_refreshCollabCursors','_docSyncEditingCollabCursorService','univer-online','_updateCollabCursors','univer-pro.collaboration-client-socket-service','getUnitType','_applyRemoteChangeset','map','row','permissionRejEvent','USERS_ENTER','bottom','incrementRevForDocument','close','resend','_socket$','_disabled','routeKey','submit\x20changeset\x20error!','/rev/','_getScale','_incrementRevisionNumber','path','_cachedData','sessionStatus$','COLLAB_SUBMIT_CHANGESET_URL','sessionStatus','OffLineSingle','&source=','collaboration-client.config','transformMutationsWithChangeset','registerRenderModule','_http','selection','_online','UnitEmbedded','awaitingChangeset','ONLINE','_clearUndo','LEAVE','OFFLINE','_joinRoom','infoRsp','urlChange$','SEND_CHANGESET_TIMEOUT','_ensureSubject','selections','DeleteRangeMoveLeftCommandId','INTERNAL_ERROR','_scheduleCollaborationTimeoutTimer','OTHER_CLIENTS_EDITING','updateMember','_tryReconnect','6550LwYEXh','onPointerLeave$','verdancy600','subscribe','_retryCount','&to=','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','column','getValue','addObjects','FAIL','isEditing','assign','currentTheme$','unload','toString','collaboration-client.offline-data-not-saved','getParam','CHANGESET_REJ','/universer-api/snapshot/','apply','M0\x200H16V16H0z','_transformSelections','_startTelemetryCollaborationNewChangeset','arc','_onRecvEvent','[UniverCollaborationClientPlugin]','SHOULD_CLOSE_CONN','clear','range','getOwnPropertySymbols','onStarting','univerjs-icon\x20univerjs-icon-','getActiveRange','[CollaborationSessionService]:\x20socket\x20error','APPLY_NON_SEQUENTIAL_REVISION','LICENSE_IMPORT_SIZE_EXCEEDED','dispose$','commentUpdateEvent','_syncEditingCollabCursor','collaboration_new_changeset','open$','transformMutation','entries','isPermissionRej','_univerInstanceService','_init','children','/block/','getCurrent','post','_sessions','putCollaborators','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_cursor','filter','synced','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','updateCollaborator','collabStatus.syncing','MUTATION','connection\x20error','stringify','complete','&assign=','height','onlineStatusIcon','href','lineTo','InsertRowCommandId','url','collaborators','registerBeforeClose','UPDATE_CURSOR','setActiveRange','currentColor','_stopTelemetryCollaborationNewChangeset','_docStateChangeManagerService','/allowed','from','UnitSnapshot','debug','src','_uiPartsService','awaiting','interceptor','_pendingMutations','_sendHeartbeatTimer','_socketService','history','url(#on-line-single_clip0_910_349)','_hover','LIVESHARE_NEW_HOST','_initStatusComponent','error','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','OnLineSingle','telemetry\x20info\x20is\x20not\x20initialized','InsertColCommandId','onRemoteRej','fill','fromCollab','_timeoutTimer','_localCacheService','collaboration-session-retry','_messageService','UPDATE_PERMISSION_OBJ','ALREADY_EXISTS','string','Steady','_compressMutationService','_cursors','_scheduleClearOtherTimer','loadDoc','UniverIcon','?url=','_collabCursorState$','HttpExport','state$','AUTHZ_URL_KEY','/role','socket\x20close','_beforeCloseService','_tryEnsureSocket','put','setCurrentUser','/object/','_drawTextRange','exhaustSavingTask','xlink:href','_getSheetObject','_startCollaboration','clearTimeout','SUCCUSS','LIVESHARE_FETCH_OPERATIONS','TOO_MANY_REQUESTS','_updateState','setItem','[FetchMissState]','_getUploadFileURL','collaboration.closeRoom','_registerDependencies','1em','_event$','requireSession','objects','replace','propertyIsEnumerable','NEW_CHANGESETS','onMouseMove','status','getSheetBlock','csAckEvent','UNIVER_UNKNOWN','getCurrentUser','_removeCollabCursors','_initModules','ERROR_EXCEED_SIZE','_injector','JOINING','_collaborationController','FETCH_MISS'];_0x3fc5=function(){return _0x2b068e;};return _0x3fc5();}var fr=Object[_0x2908d8(0x1f6)],gr=Object[_0x2908d8(0x17b)],Vt=(_0x4efad8,_0x538356,_0x599406,_0x2aefba)=>{const _0x5a9242=_0x2908d8;for(var _0x4e5f34=_0x2aefba>0x1?void 0x0:_0x2aefba?gr(_0x538356,_0x599406):_0x538356,_0x3e71d7=_0x4efad8[_0x5a9242(0x478)]-0x1,_0x393223;_0x3e71d7>=0x0;_0x3e71d7--)(_0x393223=_0x4efad8[_0x3e71d7])&&(_0x4e5f34=(_0x2aefba?_0x393223(_0x538356,_0x599406,_0x4e5f34):_0x393223(_0x4e5f34))||_0x4e5f34);return _0x2aefba&&_0x4e5f34&&fr(_0x538356,_0x599406,_0x4e5f34),_0x4e5f34;},p=(_0x584b37,_0x3bda94)=>(_0x339e4e,_0x5ae88c)=>_0x3bda94(_0x339e4e,_0x5ae88c,_0x584b37);let tt=class extends _0x5afe1b{constructor(_0x19d5ea,_0x6fa20f,_0x497dba,_0x24d6ce,_0x491952,_0x37ee0a,_0x13cd7e,_0x5c7914,_0x5990d8,_0x264bfd,_0x46def8,_0x6a0f2f,_0x4d2010){const _0x494aa4=_0x2908d8;super(),l(this,_0x494aa4(0x3a2),new _0x5a6925(null)),l(this,'state$',this[_0x494aa4(0x3a2)][_0x494aa4(0x165)]()),l(this,_0x494aa4(0x46c)),l(this,_0x494aa4(0x434),!0x1),l(this,'status$',this[_0x494aa4(0x30b)][_0x494aa4(0x490)](_0x43f74d(_0x52b2c2=>_0x52b2c2?_0x52b2c2[_0x494aa4(0x32b)]:w['OFFLINE']),_0x2e7acf(0x1))),l(this,_0x494aa4(0x418),!0x1),l(this,_0x494aa4(0x19e),[]),(this[_0x494aa4(0x1ae)]=_0x19d5ea,this[_0x494aa4(0x395)]=_0x6fa20f,this['_type']=_0x497dba,this[_0x494aa4(0x333)]=_0x24d6ce,this[_0x494aa4(0x2fc)]=_0x491952,this[_0x494aa4(0x303)]=_0x37ee0a,this['_localeService']=_0x13cd7e,this['_revisionService']=_0x5c7914,this[_0x494aa4(0x49c)]=_0x5990d8,this['_commandService']=_0x264bfd,this[_0x494aa4(0x2fe)]=_0x46def8,this[_0x494aa4(0x462)]=_0x6a0f2f,this[_0x494aa4(0x3b3)]=_0x4d2010);}get[_0x2908d8(0x3cd)](){const _0x440cb5=_0x2908d8;return this[_0x440cb5(0x46c)];}async[_0x2908d8(0x392)](){const _0x4b3e75=_0x2908d8;if(this[_0x4b3e75(0x3cd)])throw new Error(_0x4b3e75(0x133));await this[_0x4b3e75(0x2c3)]();}[_0x2908d8(0x36c)](){const _0x165298=_0x2908d8;return this[_0x165298(0x434)]=!0x0,_0x58e78e(()=>{const _0x1c7333=_0x165298;this[_0x1c7333(0x434)]=!0x1,this[_0x1c7333(0x377)]();});}[_0x2908d8(0x31d)](_0x1579d1){const _0x3c301c=_0x2908d8;this[_0x3c301c(0x46c)]=_0x1579d1,this[_0x3c301c(0x3a2)][_0x3c301c(0x151)](_0x1579d1);}async['_init'](){const _0x28aa4d=_0x2908d8;var _0x1305aa;this[_0x28aa4d(0x31d)](await this[_0x28aa4d(0x344)]()),this[_0x28aa4d(0x3b3)]&&((_0x1305aa=this[_0x28aa4d(0x3b3)])==null||_0x1305aa['editingUnit'](this[_0x28aa4d(0x1ae)]),this['disposeWithMe'](this['_singleActiveUnitService'][_0x28aa4d(0x195)](this[_0x28aa4d(0x1ae)])[_0x28aa4d(0x298)](_0x2d893e=>{const _0x54d44c=_0x28aa4d;this[_0x54d44c(0x49c)][_0x54d44c(0x2e6)]('[CollaborationEntity]',_0x54d44c(0x142),_0x2d893e),_0x2d893e===$s[_0x54d44c(0x292)]?(this[_0x54d44c(0x2fe)]['show']({'content':this[_0x54d44c(0x140)]['t'](_0x54d44c(0x40b)),'type':_0x42502c[_0x54d44c(0x152)]}),this[_0x54d44c(0x462)][_0x54d44c(0x20a)](new _0x4eedfe(this[_0x54d44c(0x1ae)])['id'],!0x1)):this['_permissionService'][_0x54d44c(0x20a)](new _0x4eedfe(this[_0x54d44c(0x1ae)])['id'],!0x0);})));let _0x484590=!0x1;return this[_0x28aa4d(0x206)](this['session']['sessionStatus$'][_0x28aa4d(0x298)](_0x31016e=>{const _0x253d2d=_0x28aa4d;_0x31016e===F[_0x253d2d(0x285)]?this[_0x253d2d(0x36b)](_0x484590):_0x31016e===F[_0x253d2d(0x288)]&&(_0x484590=!0x0,this[_0x253d2d(0x49f)]());})),this[_0x28aa4d(0x206)](this[_0x28aa4d(0x395)][_0x28aa4d(0x223)]['subscribe'](_0x32b699=>{const _0x42162e=_0x28aa4d;try{switch(_0x32b699[_0x42162e(0x1d7)]){case _0x2ca871[_0x42162e(0x329)]:{this[_0x42162e(0x42f)](_0x29c246(_0x32b699['data']));break;}case _0x2ca871[_0x42162e(0x3c0)]:{this[_0x42162e(0x47b)](_0x32b699['data']);break;}case _0x2ca871[_0x42162e(0x2a7)]:{this[_0x42162e(0x3e5)]();break;}case _0x2ca871['PSEUDO_FETCH_MISSING_RESULT']:{this[_0x42162e(0x1fd)](_0x32b699[_0x42162e(0x1ee)][_0x42162e(0x487)][_0x42162e(0x267)](_0x4c3899=>_0x29c246(_0x4c3899)));break;}case _0x2ca871[_0x42162e(0x25e)]:this[_0x42162e(0x3e5)]({'isPermissionRej':!0x0});}}catch(_0xb0d93){throw console[_0x42162e(0x2f3)]('Error\x20on\x20receiving\x20event',_0xb0d93),_0xb0d93;}})),this[_0x28aa4d(0x46c)];}[_0x2908d8(0x1b2)](){const _0x9a22c=_0x2908d8;this[_0x9a22c(0x418)]=!0x1;}[_0x2908d8(0x17f)](){const _0x2b047a=_0x2908d8;if(this[_0x2b047a(0x418)])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[_0x2b047a(0x418)]=!0x0;}[_0x2908d8(0x1b9)](_0x40804c){const _0x3b3877=_0x2908d8;this[_0x3b3877(0x17f)](),this[_0x3b3877(0x31d)](this['_state']['appendMutation'](_0x40804c)),this[_0x3b3877(0x1b2)]();}[_0x2908d8(0x42f)](_0x2d530e){const _0x1073b1=_0x2908d8;if(!(_0x2d530e[_0x1073b1(0x425)]<=this['_revisionService'][_0x1073b1(0x25b)](this[_0x1073b1(0x1ae)]))){if(this[_0x1073b1(0x434)]){this[_0x1073b1(0x19e)]['push'](_0x2d530e);return;}this[_0x1073b1(0x266)](_0x2d530e);}}[_0x2908d8(0x377)](){const _0x201954=_0x2908d8;this[_0x201954(0x19e)][_0x201954(0x212)](_0x2fe23c=>this['_applyRemoteChangeset'](_0x2fe23c)),this[_0x201954(0x19e)]=[];}[_0x2908d8(0x266)](_0x4270c5){const _0x4db024=_0x2908d8,_0x360bbf=this[_0x4db024(0x303)][_0x4db024(0x2ea)][_0x4db024(0x1bb)](this[_0x4db024(0x303)][_0x4db024(0x2ea)][_0x4db024(0x36f)]()[_0x4db024(0x1f1)])(_0x4270c5[_0x4db024(0x467)],null)||_0x4270c5[_0x4db024(0x467)],_0x143804={..._0x4270c5,'mutations':_0x360bbf};this[_0x4db024(0x17f)](),this[_0x4db024(0x31d)](this[_0x4db024(0x46c)][_0x4db024(0x47f)](_0x143804)),this[_0x4db024(0x1b2)]();}[_0x2908d8(0x47b)](_0x241e0d){const _0x5caa04=_0x2908d8;this['_lockTransition'](),this[_0x5caa04(0x31d)](this[_0x5caa04(0x46c)][_0x5caa04(0x41a)](_0x241e0d)),this[_0x5caa04(0x1b2)]();}[_0x2908d8(0x3e5)](_0x5d9062){const _0x30b0a6=_0x2908d8;this[_0x30b0a6(0x17f)](),this[_0x30b0a6(0x31d)](this[_0x30b0a6(0x46c)][_0x30b0a6(0x2f8)](_0x5d9062)),this['_unlockTransition']();}[_0x2908d8(0x1fd)](_0x1044b9){const _0x3baf29=_0x2908d8;if(!(this[_0x3baf29(0x46c)]instanceof H))throw new TypeError(_0x3baf29(0x29b));const _0x5f2cb7=_0x1044b9[_0x3baf29(0x267)](_0x590db9=>{const _0x16e23b=_0x3baf29,_0x3c475b=this[_0x16e23b(0x303)]['interceptor'][_0x16e23b(0x1bb)](this['_compressMutationService']['interceptor'][_0x16e23b(0x36f)]()[_0x16e23b(0x1f1)])(_0x590db9[_0x16e23b(0x467)],null)||_0x590db9['mutations'];return{..._0x590db9,'mutations':_0x3c475b};});this[_0x3baf29(0x17f)](),this[_0x3baf29(0x31d)](this['_state']['onMissedChangesetFetched'](_0x5f2cb7)),this['_unlockTransition']();}[_0x2908d8(0x49f)](){const _0x46b2cf=_0x2908d8;this[_0x46b2cf(0x17f)](),this[_0x46b2cf(0x31d)](this[_0x46b2cf(0x46c)][_0x46b2cf(0x1c9)]()),this['_unlockTransition']();}['_toggleOnline'](_0x46c12d=!0x1){const _0x54211c=_0x2908d8;this[_0x54211c(0x17f)](),this[_0x54211c(0x31d)](this[_0x54211c(0x46c)][_0x54211c(0x3d1)]()),this['_unlockTransition']();const _0x371884=this[_0x54211c(0x46c)];_0x46c12d&&_0x371884 instanceof Se&&(this['_lockTransition'](),this['_updateState'](_0x371884['fetchMiss']()),this[_0x54211c(0x1b2)]());}async[_0x2908d8(0x344)](){return new Promise(_0x37bfbf=>{const _0x3467a7=_0x1140;this['session']['sessionStatus$'][_0x3467a7(0x490)](_0x462e64(0x1))[_0x3467a7(0x298)](async _0xb87178=>{const _0x131524=_0x3467a7;_0x37bfbf(await this[_0x131524(0x219)](_0xb87178===F[_0x131524(0x285)]));});});}[_0x2908d8(0x484)](){const _0x22d82f=_0x2908d8,_0x2cc577=this[_0x22d82f(0x1ae)];return{'onStateChange':(_0x264676,_0x3d4cf3)=>{const _0x35c659=_0x22d82f;if(_0x264676!==this[_0x35c659(0x46c)])throw new Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x264676['status']+'\x0aAfter:\x20'+_0x3d4cf3['status']+_0x35c659(0x1ff)+this[_0x35c659(0x46c)]['status']);this[_0x35c659(0x31d)](_0x3d4cf3);},'onSendChangeset':_0x1b5d2c=>{const _0x1756dc=_0x22d82f,_0x943f0b={'eventID':_0x2ca871['SUBMIT_CHANGESET'],'data':{'unitID':_0x1b5d2c[_0x1756dc(0x1ae)],'unitType':this[_0x1756dc(0x1f8)],'changeset':_0x1b5d2c,'memberID':this[_0x1756dc(0x395)][_0x1756dc(0x33e)]()}};this[_0x1756dc(0x395)]['send'](_0x943f0b,this[_0x1756dc(0x1ae)]);},'onMissingChangesets':({from:_0x59e194,to:_0x3fe853})=>{const _0x28c985=_0x22d82f;this[_0x28c985(0x49c)][_0x28c985(0x2e6)]('[CollaborationEntity]',_0x28c985(0x34f)+_0x59e194+'\x20to\x20'+_0x3fe853);const _0x51c835={'eventID':_0x2ca871[_0x28c985(0x1da)],'data':{'unitID':_0x2cc577,'unitType':this[_0x28c985(0x1f8)],'from':_0x59e194,'to':_0x3fe853}};this[_0x28c985(0x395)][_0x28c985(0x225)](_0x51c835,this[_0x28c985(0x1ae)]);}};}async[_0x2908d8(0x219)](_0x8bf16c){const _0x31389a=_0x2908d8;var _0x75c80b,_0x3c22d9;const _0x3d7230=await this[_0x31389a(0x2fc)][_0x31389a(0x22b)](this['unitID']),_0x4b7e1c=(_0x75c80b=_0x3d7230==null?void 0x0:_0x3d7230[_0x31389a(0x467)])!=null?_0x75c80b:[],_0x4f649c=(_0x3c22d9=_0x3d7230==null?void 0x0:_0x3d7230[_0x31389a(0x284)])!=null?_0x3c22d9:null,_0x1c7eab=this[_0x31389a(0x1ae)];try{this[_0x31389a(0x456)](_0x4f649c,_0x4b7e1c);}catch(_0x532f9d){this[_0x31389a(0x49c)][_0x31389a(0x2f3)](_0x532f9d);}const _0x6bd9e7=this[_0x31389a(0x484)]();if(_0x8bf16c){const _0x54d5ac=xs(this[_0x31389a(0x333)],_0x1c7eab,this[_0x31389a(0x1f8)],_0x4f649c,_0x4b7e1c,_0x6bd9e7);return _0x54d5ac instanceof G?_0x54d5ac[_0x31389a(0x25c)]():(_0x54d5ac instanceof Y||_0x54d5ac instanceof Z)&&_0x54d5ac[_0x31389a(0x26e)](),_0x54d5ac;}return this[_0x31389a(0x333)][_0x31389a(0x386)](ee,_0x1c7eab,this[_0x31389a(0x1f8)],_0x4f649c,_0x4b7e1c,_0x6bd9e7);}[_0x2908d8(0x456)](_0x5872f8,_0xf72c8c){const _0xd5a334=_0x2908d8;var _0xb96809,_0x3342e4;const _0x466ebb=this[_0xd5a334(0x303)][_0xd5a334(0x2ea)][_0xd5a334(0x1bb)](this[_0xd5a334(0x303)][_0xd5a334(0x2ea)][_0xd5a334(0x36f)]()[_0xd5a334(0x1f1)]);(_0xb96809=_0x466ebb((_0x5872f8==null?void 0x0:_0x5872f8[_0xd5a334(0x467)])||[],null))==null||_0xb96809['forEach'](_0x22abb4=>this['_commandService'][_0xd5a334(0x34d)](_0x22abb4['id'],_0x22abb4['params'])),(_0x3342e4=_0x466ebb(_0xf72c8c||[],null))==null||_0x3342e4[_0xd5a334(0x212)](_0x5ee9b2=>this[_0xd5a334(0x3fd)][_0xd5a334(0x34d)](_0x5ee9b2['id'],_0x5ee9b2[_0xd5a334(0x455)]));}};tt=Vt([p(0x3,_0x573d4d(_0x100ac5)),p(0x4,_0x573d4d(D)),p(0x5,_0x573d4d(_0x123deb)),p(0x6,_0x573d4d(_0x5071b4)),p(0x7,_0x573d4d(_0xa35cc)),p(0x8,_0x38155a),p(0x9,_0x2bd668),p(0xa,_0x6d8428),p(0xb,_0x1984e0),p(0xc,_0x2b0397(it))],tt);let bt=class extends tt{constructor(_0x17c7f2,_0x490901,_0x24101b,_0x5d3a14,_0x48f00e,_0x55321f,_0x5556cf,_0x40553a,_0x171ce3,_0x29268a,_0xb2ac60,_0x407da7,_0x11f1a5,_0x2b71fc,_0x13a6be,_0x10f09a,_0x3b8486){const _0x5e099e=_0x2908d8;super(_0x17c7f2,_0x24101b,_0x490901,_0x5d3a14,_0x48f00e,_0x55321f,_0x5556cf,_0x40553a,_0x11f1a5,_0x2b71fc,_0x13a6be,_0x10f09a,_0x3b8486),this[_0x5e099e(0x1ae)]=_0x17c7f2,this[_0x5e099e(0x161)]=_0x490901,this[_0x5e099e(0x2e2)]=_0x171ce3,this[_0x5e099e(0x16b)]=_0x29268a,this['_docTransformSelectionsService']=_0xb2ac60,this['_docSyncEditingCollabCursorService']=_0x407da7;}[_0x2908d8(0x484)](){const _0x27646b=_0x2908d8,_0x37d0a4=super['_createHandler']();return _0x37d0a4[_0x27646b(0x245)]=_0x601d0e=>this[_0x27646b(0x16b)][_0x27646b(0x46e)](_0x601d0e),_0x37d0a4['onTransformSelections']=_0x14c130=>this['_docTransformSelectionsService']['transformSelections'](_0x14c130),_0x37d0a4[_0x27646b(0x215)]=_0x22c8d1=>this[_0x27646b(0x261)][_0x27646b(0x370)](_0x22c8d1),_0x37d0a4[_0x27646b(0x243)]=_0x34ea92=>this[_0x27646b(0x16b)][_0x27646b(0x1cd)](_0x34ea92),_0x37d0a4;}async[_0x2908d8(0x2c3)](){const _0x2b9fb1=_0x2908d8,_0x3bf87c=await super[_0x2b9fb1(0x2c3)]();return this['disposeWithMe'](this[_0x2b9fb1(0x3fd)][_0x2b9fb1(0x43d)]((_0x3eb2b7,_0x31dcde)=>{const _0x264e9d=_0x2b9fb1;if(_0x3eb2b7['type']!==_0x49ed46[_0x264e9d(0x2d1)]||_0x31dcde!=null&&_0x31dcde[_0x264e9d(0x2fa)]||_0x31dcde!=null&&_0x31dcde[_0x264e9d(0x3b9)])return;const _0xef9b24=_0x3eb2b7[_0x264e9d(0x455)];if((_0xef9b24==null?void 0x0:_0xef9b24['unitId'])!==this[_0x264e9d(0x1ae)])return;let _0x5e7301=_0x3eb2b7;if(_0x5e7301['id']===_0x13ef0c['id']){const _0x27acd1=_0x5e7301[_0x264e9d(0x455)];_0x5e7301={'id':_0x13ef0c['id'],'type':_0x49ed46['MUTATION'],'params':{'unitId':_0x27acd1[_0x264e9d(0x498)],'actions':_0x27acd1[_0x264e9d(0x3ff)],'textRanges':null}};}const _0x360c31=this[_0x264e9d(0x303)][_0x264e9d(0x2ea)]['fetchThroughInterceptors'](this[_0x264e9d(0x303)][_0x264e9d(0x2ea)][_0x264e9d(0x36f)]()['COMPRESS_MUTATION_SEND'])([_0x5e7301],null)||[_0x5e7301];this[_0x264e9d(0x1b9)](_0x360c31[0x0]);})),_0x3bf87c;}};bt=Vt([p(0x3,_0x573d4d(_0x100ac5)),p(0x4,_0x573d4d(D)),p(0x5,_0x573d4d(_0x123deb)),p(0x6,_0x573d4d(_0x5071b4)),p(0x7,_0x573d4d(_0xa35cc)),p(0x8,_0x573d4d(_0x1211ce)),p(0x9,_0x573d4d(Ze)),p(0xa,_0x573d4d(et)),p(0xb,_0x573d4d(kt)),p(0xc,_0x38155a),p(0xd,_0x2bd668),p(0xe,_0x6d8428),p(0xf,_0x1984e0),p(0x10,_0x2b0397(it))],bt);let Tt=class extends tt{constructor(_0x276c35,_0x2281a7,_0x21ce43,_0x2d214d,_0xb42816,_0x3e9264,_0x1925ab,_0x6a009f,_0x3a2555,_0x479ad0,_0x50f3c3,_0x1a8fba,_0x58e0e8,_0x49f881){const _0x3558b8=_0x2908d8;super(_0x276c35,_0x21ce43,_0x2281a7,_0x2d214d,_0xb42816,_0x3e9264,_0x1925ab,_0x6a009f,_0x479ad0,_0x50f3c3,_0x1a8fba,_0x58e0e8,_0x49f881),this['unitID']=_0x276c35,this[_0x3558b8(0x161)]=_0x2281a7,this['_sheetTransformSelectionsService']=_0x3a2555;}['_createHandler'](){const _0x2c3528=_0x2908d8,_0x58aa81=super[_0x2c3528(0x484)]();return _0x58aa81[_0x2c3528(0x1e4)]=_0x431307=>this[_0x2c3528(0x463)][_0x2c3528(0x342)](_0x431307),_0x58aa81;}async[_0x2908d8(0x2c3)](){const _0x597575=_0x2908d8,_0x4d19a7=await super[_0x597575(0x2c3)]();return this[_0x597575(0x206)](this[_0x597575(0x3fd)]['onCommandExecuted']((_0x53d548,_0x1c21a6)=>{const _0xb5c3e4=_0x597575;if(_0x53d548[_0xb5c3e4(0x161)]!==_0x49ed46[_0xb5c3e4(0x2d1)]||_0x1c21a6!=null&&_0x1c21a6['fromCollab']||_0x1c21a6!=null&&_0x1c21a6[_0xb5c3e4(0x3b9)])return;const _0x14a7af=_0x53d548[_0xb5c3e4(0x455)];if((_0x14a7af==null?void 0x0:_0x14a7af[_0xb5c3e4(0x498)])!==this[_0xb5c3e4(0x1ae)])return;const _0x387c14=_0x53d548,_0x39d2db=this[_0xb5c3e4(0x303)][_0xb5c3e4(0x2ea)][_0xb5c3e4(0x1bb)](this[_0xb5c3e4(0x303)][_0xb5c3e4(0x2ea)][_0xb5c3e4(0x36f)]()[_0xb5c3e4(0x3de)])([_0x387c14],null)||[_0x387c14];this['_onLocalMutation'](_0x39d2db[0x0]);})),_0x4d19a7;}};Tt=Vt([p(0x3,_0x573d4d(_0x100ac5)),p(0x4,_0x573d4d(D)),p(0x5,_0x573d4d(_0x123deb)),p(0x6,_0x573d4d(_0x5071b4)),p(0x7,_0x573d4d(_0xa35cc)),p(0x8,_0x573d4d(Qe)),p(0x9,_0x38155a),p(0xa,_0x2bd668),p(0xb,_0x6d8428),p(0xc,_0x1984e0),p(0xd,_0x2b0397(it))],Tt);var Sr=Object['defineProperty'],pr=Object[_0x2908d8(0x17b)],vr=(_0xd5f5e8,_0x2129c8,_0x4c335a,_0x1d5394)=>{for(var _0x3ce164=_0x1d5394>0x1?void 0x0:_0x1d5394?pr(_0x2129c8,_0x4c335a):_0x2129c8,_0x438425=_0xd5f5e8['length']-0x1,_0xf9a25d;_0x438425>=0x0;_0x438425--)(_0xf9a25d=_0xd5f5e8[_0x438425])&&(_0x3ce164=(_0x1d5394?_0xf9a25d(_0x2129c8,_0x4c335a,_0x3ce164):_0xf9a25d(_0x3ce164))||_0x3ce164);return _0x1d5394&&_0x3ce164&&Sr(_0x2129c8,_0x4c335a,_0x3ce164),_0x3ce164;},lt=(_0x40e30c,_0x1af75e)=>(_0x3d3074,_0xdd6f47)=>_0x1af75e(_0x3d3074,_0xdd6f47,_0x40e30c);let Ae=class extends _0x5afe1b{constructor(_0x3a6a8c,_0x1edd0c,_0x248b26){const _0x5b66b7=_0x2908d8;super(),l(this,_0x5b66b7(0x1cc),new Map()),l(this,_0x5b66b7(0x1c1),new _0x59e98b()),(this[_0x5b66b7(0x333)]=_0x3a6a8c,this[_0x5b66b7(0x1a5)]=_0x1edd0c,this[_0x5b66b7(0x2c2)]=_0x248b26,this['_init']());}[_0x2908d8(0x1bf)](){const _0x43be90=_0x2908d8;super[_0x43be90(0x1bf)](),this[_0x43be90(0x1cc)]['forEach'](_0xfa05a6=>_0xfa05a6['dispose']()),this[_0x43be90(0x1cc)]['clear']();}[_0x2908d8(0x38e)](_0xbc9134){const _0x379f02=_0x2908d8;var _0x3e1f77;return(_0x3e1f77=this[_0x379f02(0x1cc)][_0x379f02(0x479)](_0xbc9134))!=null?_0x3e1f77:null;}[_0x2908d8(0x45e)](_0x22d142){const _0x4a6fce=_0x2908d8,_0x4411fe=this['getCollabEntity'](_0x22d142);return _0x4411fe?_0xc0017a(_0x4411fe):this['_entityInit$']['pipe'](_0x51803d(_0x23225c=>_0x23225c[_0x4a6fce(0x1ae)]===_0x22d142));}[_0x2908d8(0x2c3)](){const _0x12087f=_0x2908d8;this['_univerInstanceService'][_0x12087f(0x1fc)](_0x50520e['UNIVER_SHEET'])[_0x12087f(0x490)](_0x4f72a2(this[_0x12087f(0x2ba)]),_0x12b4d6(0x10))[_0x12087f(0x298)](async _0x427630=>{const _0x45d8c8=_0x12087f,_0x3da1c4=_0x427630['getUnitId'](),_0x1b55d3=await this[_0x45d8c8(0x318)](_0x3da1c4,x['UNIVER_SHEET']);this['_entities'][_0x45d8c8(0x255)](_0x3da1c4,_0x1b55d3);}),this[_0x12087f(0x2c2)][_0x12087f(0x1fc)](_0x50520e[_0x12087f(0x461)])[_0x12087f(0x490)](_0x4f72a2(this[_0x12087f(0x2ba)]),_0x12b4d6(0x10))['pipe'](_0x51803d(_0x312b1d=>!_0x312b1d[_0x12087f(0x18b)]()[_0x12087f(0x42e)]('__')))[_0x12087f(0x298)](async _0x4e4c17=>{const _0x1ec308=_0x12087f,_0x122ac3=_0x4e4c17['getUnitId'](),_0x4e7489=await this[_0x1ec308(0x318)](_0x122ac3,x[_0x1ec308(0x461)]);this[_0x1ec308(0x1cc)]['set'](_0x122ac3,_0x4e7489);}),_0x52a416(this[_0x12087f(0x2c2)][_0x12087f(0x46a)](_0x50520e[_0x12087f(0x37d)]),this['_univerInstanceService'][_0x12087f(0x46a)](_0x50520e[_0x12087f(0x461)]))[_0x12087f(0x490)](_0x4f72a2(this[_0x12087f(0x2ba)]))[_0x12087f(0x298)](_0x2db050=>{const _0x2eb7a5=_0x12087f,_0x5e2d5b=_0x2db050[_0x2eb7a5(0x18b)](),_0x46c288=this[_0x2eb7a5(0x1cc)][_0x2eb7a5(0x479)](_0x5e2d5b);_0x46c288&&(_0x46c288['dispose'](),this[_0x2eb7a5(0x1cc)][_0x2eb7a5(0x34a)](_0x5e2d5b));});}async[_0x2908d8(0x318)](_0x8d80ab,_0x59ac3e){const _0x1213ef=_0x2908d8,_0x43f899=await this['_collabSessionService'][_0x1213ef(0x325)](_0x8d80ab),_0x28bbd5=this[_0x1213ef(0x333)][_0x1213ef(0x386)](this['_getCtorByUniverType'](_0x59ac3e),_0x8d80ab,_0x59ac3e,_0x43f899);return await _0x28bbd5['init'](),this['_entityInit$']['next'](_0x28bbd5),_0x28bbd5;}[_0x2908d8(0x1df)](_0x25241){const _0x5c4ab3=_0x2908d8;switch(_0x25241){case x[_0x5c4ab3(0x461)]:return bt;case x[_0x5c4ab3(0x37d)]:return Tt;default:throw new Error(_0x5c4ab3(0x43a)+_0x25241);}}};Ae=vr([lt(0x0,_0x573d4d(_0x100ac5)),lt(0x1,_0x573d4d(ae)),lt(0x2,_0x52e604)],Ae);const ls=['purple300',_0x2908d8(0x347),_0x2908d8(0x297),_0x2908d8(0x3e9),_0x2908d8(0x379),_0x2908d8(0x202)];class Bt extends _0x5d8459{constructor(){const _0x3c8047=_0x2908d8;super(...arguments),l(this,_0x3c8047(0x3f3),new Map()),l(this,_0x3c8047(0x158),0x0);}[_0x2908d8(0x458)](_0x256e59){const _0xc0a568=_0x2908d8;if(this[_0xc0a568(0x3f3)][_0xc0a568(0x25a)](_0x256e59))return this[_0xc0a568(0x3f3)]['get'](_0x256e59);const _0xd0c941=ls[this['_colorIndex']];return this[_0xc0a568(0x158)]=(this[_0xc0a568(0x158)]+0x1)%ls['length'],this[_0xc0a568(0x3f3)][_0xc0a568(0x255)](_0x256e59,_0xd0c941),_0xd0c941;}}var Ir=Object['defineProperty'],Er=Object[_0x2908d8(0x17b)],Cr=(_0x120215,_0x348838,_0x235b2d,_0x27e1bf)=>{const _0x2911c5=_0x2908d8;for(var _0x1b2a5f=_0x27e1bf>0x1?void 0x0:_0x27e1bf?Er(_0x348838,_0x235b2d):_0x348838,_0x21b961=_0x120215[_0x2911c5(0x478)]-0x1,_0x46a4e8;_0x21b961>=0x0;_0x21b961--)(_0x46a4e8=_0x120215[_0x21b961])&&(_0x1b2a5f=(_0x27e1bf?_0x46a4e8(_0x348838,_0x235b2d,_0x1b2a5f):_0x46a4e8(_0x1b2a5f))||_0x1b2a5f);return _0x27e1bf&&_0x1b2a5f&&Ir(_0x348838,_0x235b2d,_0x1b2a5f),_0x1b2a5f;},de=(_0x528b20,_0x11cb09)=>(_0x341ce8,_0x4a653e)=>_0x11cb09(_0x341ce8,_0x4a653e,_0x528b20);const br=0x12c,Tr=0x64,Rr=()=>{let _0x2412bb=[],_0x68f1ce=!0x1;return _0x2c3265=>{_0x2412bb['push'](_0x2c3265),_0x68f1ce||(_0x68f1ce=!0x0,setTimeout(()=>{_0x2412bb['forEach'](_0x8309c0=>_0x8309c0()),_0x2412bb=[],_0x68f1ce=!0x1;}));};};let Rt=class extends _0x5afe1b{constructor(_0x277185,_0x24e2ff,_0x211ee9,_0x33690b,_0x32d4ba,_0x2dcf55,_0x22de91,_0xd8d8fe){const _0x1f31ff=_0x2908d8;super(),l(this,_0x1f31ff(0x282),!0x1),l(this,_0x1f31ff(0x2c3),!0x1),l(this,'_cursorInfo$',new _0x5a6925(new Map())),l(this,'cursorInfo$',this[_0x1f31ff(0x426)][_0x1f31ff(0x165)]()),l(this,'_roomMembers$',new _0x5a6925([])),l(this,_0x1f31ff(0x391),this[_0x1f31ff(0x367)][_0x1f31ff(0x490)](_0x172aba(br))),l(this,_0x1f31ff(0x18c),_0x598329((_0x447604,_0x3b909c)=>{const _0x12d8ff=_0x1f31ff,_0xc7f7f7={'eventID':_0x2ca871[_0x12d8ff(0x2de)],'data':{'unitID':this[_0x12d8ff(0x1ae)],'memberID':this['_session'][_0x12d8ff(0x33e)](),'selection':_0x3f5e75(_0x447604,_0x3b909c[_0x12d8ff(0x2b2)])}};this[_0x12d8ff(0x23c)][_0x12d8ff(0x225)](_0xc7f7f7,this['unitID']);},Tr)),(this[_0x1f31ff(0x1ae)]=_0x277185,this['_session']=_0x24e2ff,this[_0x1f31ff(0x333)]=_0x211ee9,this[_0x1f31ff(0x488)]=_0x33690b,this[_0x1f31ff(0x13f)]=_0x32d4ba,this['_univerInstanceService']=_0x2dcf55,this[_0x1f31ff(0x3fd)]=_0x22de91,this['_refRangeService']=_0xd8d8fe);}get[_0x2908d8(0x18d)](){const _0x1d2871=_0x2908d8;return this['_cursorInfo$'][_0x1d2871(0x29d)]();}get[_0x2908d8(0x432)](){const _0x5ec843=_0x2908d8;return this['_roomMembers$'][_0x5ec843(0x29d)]();}[_0x2908d8(0x1bf)](){const _0x8d3bac=_0x2908d8;super[_0x8d3bac(0x1bf)](),this[_0x8d3bac(0x426)][_0x8d3bac(0x151)](new Map()),this[_0x8d3bac(0x426)][_0x8d3bac(0x2d4)](),this['_roomMembers$'][_0x8d3bac(0x151)]([]),this['_roomMembers$'][_0x8d3bac(0x2d4)]();}['init'](){const _0x29ca65=_0x2908d8;this[_0x29ca65(0x2c3)]||(this['_init']=!0x0,this[_0x29ca65(0x23c)]['sessionStatus$']['pipe'](_0x4f72a2(this['dispose$']))[_0x29ca65(0x298)](_0x4033b9=>{const _0x2b3f1b=_0x29ca65;_0x4033b9===F[_0x2b3f1b(0x285)]?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x29ca65(0x23c)][_0x29ca65(0x223)][_0x29ca65(0x490)](_0x4f72a2(this[_0x29ca65(0x2ba)]))[_0x29ca65(0x298)](_0x2618b8=>{const _0x1256de=_0x29ca65,_0x34d4fa=_0x2618b8[_0x1256de(0x1d7)];_0x34d4fa===_0x2ca871[_0x1256de(0x2de)]&&this[_0x1256de(0x47e)](_0x2618b8),_0x34d4fa===_0x2ca871[_0x1256de(0x464)]&&this['_onCursorDelete'](_0x2618b8);}),this[_0x29ca65(0x3b8)](),this[_0x29ca65(0x206)](this[_0x29ca65(0x3fd)][_0x29ca65(0x43d)](_0x449c62=>{const _0x5c70a4=_0x29ca65;if(this[_0x5c70a4(0x282)]&&_0x449c62['id']===_0xb83057['id']&&_0x449c62[_0x5c70a4(0x455)][_0x5c70a4(0x498)]===this[_0x5c70a4(0x1ae)]){const _0x57b597=_0x449c62[_0x5c70a4(0x455)];this['_updateLocalCursor'](_0x57b597[_0x5c70a4(0x13d)],_0x57b597[_0x5c70a4(0x28e)][0x0]);}})));}['_onCursorUpdate'](_0x130fda){const _0x4e77b1=_0x2908d8;var _0x1c7c98,_0x116747;const {memberID:_0x38c10d,selection:_0x4e4726}=_0x130fda[_0x4e77b1(0x1ee)],{sheetName:_0x53273f,range:_0x2db23a}=_0x238be7(_0x4e4726),_0x226e56={'name':(_0x116747=(_0x1c7c98=this['_memberService'][_0x4e77b1(0x3e4)](this[_0x4e77b1(0x1ae)],_0x38c10d))==null?void 0x0:_0x1c7c98[_0x4e77b1(0x3b6)])!=null?_0x116747:_0x4e77b1(0x20e),'range':this[_0x4e77b1(0x422)](_0x53273f,_0x2db23a),'sheetID':_0x53273f,'color':this[_0x4e77b1(0x488)]['assignAColorForMemberID'](_0x38c10d),'selection':_0x4e4726},_0x3f8361=this['cursorInfo'];_0x3f8361[_0x4e77b1(0x255)](_0x38c10d,_0x226e56),this['_cursorInfo$'][_0x4e77b1(0x151)](_0x3f8361);}[_0x2908d8(0x1fe)](_0x1d8f1f){const _0x4eb02e=_0x2908d8,{memberID:_0x317d2b}=_0x1d8f1f[_0x4eb02e(0x1ee)],_0x3c89b8=this[_0x4eb02e(0x18d)];_0x3c89b8['delete'](_0x317d2b),this[_0x4eb02e(0x426)][_0x4eb02e(0x151)](_0x3c89b8);}[_0x2908d8(0x422)](_0x2bebfa,_0xfb2d31){const _0x27a5f3=_0x2908d8;var _0x5cae56,_0x54464a;const _0x45401f=(_0x54464a=(_0x5cae56=this[_0x27a5f3(0x2c2)][_0x27a5f3(0x449)](this['unitID']))==null?void 0x0:_0x5cae56[_0x27a5f3(0x3b0)](_0x2bebfa))==null?void 0x0:_0x54464a[_0x27a5f3(0x42a)]();return(_0x45401f==null?void 0x0:_0x45401f['find'](_0x5f1cec=>_0x110525['contains'](_0x5f1cec,_0xfb2d31)))||_0xfb2d31;}[_0x2908d8(0x3b8)](){const _0x112159=_0x2908d8,_0x4294d9=new _0x548484(),_0x491bbf=Rr(),_0x38403b=()=>{const _0x7e7371=_0x1140;_0x4294d9['dispose']();const _0x2ea421=(_0x20ef89,_0x1c72fd,_0x4a21ef,_0x9300f3)=>{const _0x1caeaa=_0x1140;let _0x9248be=[];switch(_0x20ef89['id']){case _0x2d4b29[_0x1caeaa(0x28f)]:{_0x9248be=_0x211fe8(_0x20ef89,_0x9300f3);break;}case _0x2d4b29[_0x1caeaa(0x183)]:{_0x9248be=_0x1bdead(_0x20ef89,_0x9300f3);break;}case _0x2d4b29[_0x1caeaa(0x2f7)]:{_0x9248be=_0x1a5271(_0x20ef89,_0x9300f3);break;}case _0x2d4b29['InsertRangeMoveDownCommandId']:{_0x9248be=_0x3c4ee7(_0x20ef89,_0x9300f3);break;}case _0x2d4b29[_0x1caeaa(0x402)]:{_0x9248be=_0x315c1c(_0x20ef89,_0x9300f3);break;}case _0x2d4b29[_0x1caeaa(0x2da)]:{_0x9248be=_0xcd2977(_0x20ef89,_0x9300f3);break;}case _0x2d4b29[_0x1caeaa(0x407)]:{_0x9248be=_0x2e70c5(_0x20ef89,_0x9300f3);break;}case _0x2d4b29[_0x1caeaa(0x3e7)]:{_0x9248be=_0x43536b(_0x20ef89,_0x9300f3);break;}case _0x2d4b29[_0x1caeaa(0x431)]:{_0x9248be=_0x379c84(_0x20ef89,_0x9300f3);break;}}const _0x482393=_0x309147(_0x9248be,_0x9300f3),_0x5a8991=this['cursorInfo'][_0x1caeaa(0x479)](_0x1c72fd);if(_0x5a8991&&_0x482393){const _0x183579={..._0x5a8991,'range':_0x482393};this[_0x1caeaa(0x18d)]['set'](_0x1c72fd,_0x183579),_0x491bbf(()=>{const _0x51b074=_0x1caeaa,_0x5a2897=this['_refRangeService']['registerRefRange'](_0x482393,_0x5719a9=>(_0x5a2897[_0x51b074(0x1bf)](),_0x2ea421(_0x5719a9,_0x1c72fd,_0x4a21ef,_0x482393)));_0x4294d9[_0x51b074(0x40c)](_0x5a2897);});}return{'redos':[],'undos':[]};};this[_0x7e7371(0x18d)][_0x7e7371(0x212)]((_0x240f30,_0x5d6bd4)=>{const _0x3173a1=_0x7e7371,{range:_0x53d7ab,sheetID:_0x57d93e}=_0x240f30,_0x4c5ea5=this['_refRangeService'][_0x3173a1(0x3e0)](_0x53d7ab,_0x2a8419=>(_0x4c5ea5['dispose'](),_0x2ea421(_0x2a8419,_0x5d6bd4,_0x57d93e,_0x53d7ab)));_0x4294d9[_0x3173a1(0x40c)](_0x4c5ea5);});};this[_0x112159(0x206)](_0x58e78e(this['_cursorInfo$'][_0x112159(0x298)](()=>{_0x38403b();})));}[_0x2908d8(0x36b)](){const _0x14e6d6=_0x2908d8;var _0x1b1579,_0x56754c;if(this[_0x14e6d6(0x282)]=!0x0,((_0x1b1579=this[_0x14e6d6(0x2c2)][_0x14e6d6(0x39a)]())==null?void 0x0:_0x1b1579['getUnitId']())!==this[_0x14e6d6(0x1ae)])return;const _0x4a7b6f=(_0x56754c=this['_injector'][_0x14e6d6(0x479)](_0x1f939b)[_0x14e6d6(0x23b)]())==null?void 0x0:_0x56754c[0x0],_0x8e7ac0=this[_0x14e6d6(0x2c2)][_0x14e6d6(0x34b)](_0x50520e[_0x14e6d6(0x37d)])[_0x14e6d6(0x239)]();_0x4a7b6f&&_0x8e7ac0&&this[_0x14e6d6(0x18c)](_0x8e7ac0[_0x14e6d6(0x348)](),_0x4a7b6f);}['_toggleOffline'](){const _0x5e00bb=_0x2908d8;this[_0x5e00bb(0x282)]=!0x1;}};Rt=Cr([de(0x2,_0x573d4d(_0x100ac5)),de(0x3,_0x573d4d(Bt)),de(0x4,_0x573d4d(oe)),de(0x5,_0x52e604),de(0x6,_0x2bd668),de(0x7,_0x573d4d(_0x3afbc0))],Rt);var Or=Object[_0x2908d8(0x1f6)],Dr=Object[_0x2908d8(0x17b)],wr=(_0x376822,_0x3d41e7,_0x149c62,_0x552352)=>{const _0x38c1ce=_0x2908d8;for(var _0x292412=_0x552352>0x1?void 0x0:_0x552352?Dr(_0x3d41e7,_0x149c62):_0x3d41e7,_0x5937b6=_0x376822[_0x38c1ce(0x478)]-0x1,_0xe914c6;_0x5937b6>=0x0;_0x5937b6--)(_0xe914c6=_0x376822[_0x5937b6])&&(_0x292412=(_0x552352?_0xe914c6(_0x3d41e7,_0x149c62,_0x292412):_0xe914c6(_0x292412))||_0x292412);return _0x552352&&_0x292412&&Or(_0x3d41e7,_0x149c62,_0x292412),_0x292412;},se=(_0x8c3fe8,_0x2bb787)=>(_0x43e1d6,_0x4bdc07)=>_0x2bb787(_0x43e1d6,_0x4bdc07,_0x8c3fe8);const Pr=0x12c,Nr=0x64;let Ot=class extends _0x5afe1b{constructor(_0x3242a5,_0x22345c,_0x471a2d,_0x42a793,_0x492bbe,_0x4dcdc6,_0x42d83c,_0x59ffc0,_0x59fad7){const _0x4de87d=_0x2908d8;super(),l(this,_0x4de87d(0x282),!0x1),l(this,'_init',!0x1),l(this,_0x4de87d(0x426),new _0x5a6925(new Map())),l(this,_0x4de87d(0x404),this['_cursorInfo$']['asObservable']()),l(this,_0x4de87d(0x367),new _0x5a6925([])),l(this,_0x4de87d(0x391),this[_0x4de87d(0x367)][_0x4de87d(0x490)](_0x172aba(Pr))),l(this,'_updateLocalCursor',_0x598329(_0x1ee170=>{const _0xc25fcb=_0x4de87d,_0x34e4cb={'eventID':_0x2ca871['UPDATE_CURSOR'],'data':{'unitID':this[_0xc25fcb(0x1ae)],'memberID':this[_0xc25fcb(0x23c)]['getMemberID'](),'selection':js(_0x1ee170)}};this[_0xc25fcb(0x23c)][_0xc25fcb(0x225)](_0x34e4cb,this[_0xc25fcb(0x1ae)]);},Nr)),(this[_0x4de87d(0x1ae)]=_0x3242a5,this['_session']=_0x22345c,this['_injector']=_0x471a2d,this[_0x4de87d(0x488)]=_0x42a793,this['_memberService']=_0x492bbe,this[_0x4de87d(0x3ec)]=_0x4dcdc6,this[_0x4de87d(0x389)]=_0x42d83c,this['_univerInstanceService']=_0x59ffc0,this[_0x4de87d(0x3fd)]=_0x59fad7);}get[_0x2908d8(0x18d)](){const _0x90a06c=_0x2908d8;return this[_0x90a06c(0x426)][_0x90a06c(0x29d)]();}get[_0x2908d8(0x432)](){const _0x8c18ab=_0x2908d8;return this[_0x8c18ab(0x367)][_0x8c18ab(0x29d)]();}[_0x2908d8(0x1bf)](){const _0x1ec64f=_0x2908d8;super['dispose'](),this[_0x1ec64f(0x426)][_0x1ec64f(0x151)](new Map()),this[_0x1ec64f(0x426)][_0x1ec64f(0x2d4)](),this[_0x1ec64f(0x367)][_0x1ec64f(0x151)]([]),this['_roomMembers$'][_0x1ec64f(0x2d4)]();}[_0x2908d8(0x392)](){const _0x5b3eee=_0x2908d8;this[_0x5b3eee(0x2c3)]||(this[_0x5b3eee(0x2c3)]=!0x0,this['_session'][_0x5b3eee(0x278)][_0x5b3eee(0x490)](_0x4f72a2(this['dispose$']))[_0x5b3eee(0x298)](_0x46a90d=>{const _0x57eac6=_0x5b3eee;_0x46a90d===F[_0x57eac6(0x285)]?this[_0x57eac6(0x36b)]():this[_0x57eac6(0x49f)]();}),this[_0x5b3eee(0x23c)][_0x5b3eee(0x223)]['pipe'](_0x4f72a2(this[_0x5b3eee(0x2ba)]))[_0x5b3eee(0x298)](_0x1ce7ab=>{const _0x368e23=_0x5b3eee,_0xa354a4=_0x1ce7ab[_0x368e23(0x1d7)];_0xa354a4===_0x2ca871[_0x368e23(0x2de)]&&this[_0x368e23(0x47e)](_0x1ce7ab),_0xa354a4===_0x2ca871[_0x368e23(0x464)]&&this[_0x368e23(0x1fe)](_0x1ce7ab);}),this['disposeWithMe'](this[_0x5b3eee(0x3fd)]['onCommandExecuted'](_0x4dd4c5=>{const _0x1ec211=_0x5b3eee,_0x3adf3c=_0x4dd4c5[_0x1ec211(0x455)];_0x3adf3c!=null&&this[_0x1ec211(0x282)]&&_0x4dd4c5['id']===_0xd5e081['id']&&_0x3adf3c[_0x1ec211(0x498)]===this[_0x1ec211(0x1ae)]&&_0x3adf3c[_0x1ec211(0x2a0)]===!0x1&&this['_updateLocalCursor'](_0x3adf3c[_0x1ec211(0x21f)]);})),this[_0x5b3eee(0x3ec)][_0x5b3eee(0x473)]['pipe'](_0x4f72a2(this[_0x5b3eee(0x2ba)]))[_0x5b3eee(0x298)](_0x24a9ce=>{const _0x17682b=_0x5b3eee;if((_0x24a9ce==null?void 0x0:_0x24a9ce['unitID'])!==this[_0x17682b(0x1ae)])return;const _0x1b28dc={'eventID':_0x2ca871[_0x17682b(0x2de)],'data':_0x24a9ce};this['_onCursorUpdate'](_0x1b28dc);}),this['disposeWithMe'](this[_0x5b3eee(0x3fd)][_0x5b3eee(0x43d)](_0x3fc07a=>{const _0x1c8eb8=_0x5b3eee;if(_0x3fc07a[_0x1c8eb8(0x455)]==null)return;const _0xddef00=_0x3fc07a[_0x1c8eb8(0x455)];if(_0x3fc07a['id']!==_0x13ef0c['id']||_0xddef00[_0x1c8eb8(0x498)]!==this[_0x1c8eb8(0x1ae)])return;const _0x396d23={'id':_0x1c8eb8(0x345),'params':_0xddef00},_0x370420=this[_0x1c8eb8(0x18d)];for(const [_0x3cca43,_0x15586c]of _0x370420){const _0x1e805f={'id':_0x1c8eb8(0x345),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x15586c['ranges']}},_0x559301=this[_0x1c8eb8(0x389)][_0x1c8eb8(0x2bf)](_0x396d23,_0x1e805f,!0x1);if(_0x18c8e5(_0x559301))throw _0x559301['error'];_0x370420[_0x1c8eb8(0x255)](_0x3cca43,{..._0x15586c,'ranges':_0x559301[_0x1c8eb8(0x447)][_0x1c8eb8(0x455)]['textRanges']});}queueMicrotask(()=>{const _0x139360=_0x1c8eb8;this[_0x139360(0x426)]['next'](_0x370420);});})));}[_0x2908d8(0x47e)](_0x4cc11c){const _0x222815=_0x2908d8;var _0x240103,_0x4c76a0;const {memberID:_0x46692f,selection:_0x311725}=_0x4cc11c[_0x222815(0x1ee)],_0xc95019=or(_0x311725),_0x1a21d8=(_0x4c76a0=(_0x240103=this[_0x222815(0x13f)]['getMember'](this[_0x222815(0x1ae)],_0x46692f))==null?void 0x0:_0x240103['name'])!=null?_0x4c76a0:_0x222815(0x20e),_0x1889e0={'color':this[_0x222815(0x488)][_0x222815(0x458)](_0x46692f),'name':_0x1a21d8,'ranges':_0xc95019},_0x359907=this[_0x222815(0x18d)];_0x359907['set'](_0x46692f,_0x1889e0),this[_0x222815(0x426)][_0x222815(0x151)](_0x359907);}[_0x2908d8(0x1fe)](_0x24a483){const _0x5ad5e3=_0x2908d8,{memberID:_0x5a071a}=_0x24a483[_0x5ad5e3(0x1ee)],_0x2019b3=this[_0x5ad5e3(0x18d)];_0x2019b3['delete'](_0x5a071a),this['_cursorInfo$'][_0x5ad5e3(0x151)](_0x2019b3);}[_0x2908d8(0x36b)](){const _0x2c5e63=_0x2908d8;var _0x2946c8;if(this['_online']=!0x0,((_0x2946c8=this['_univerInstanceService'][_0x2c5e63(0x39a)]())==null?void 0x0:_0x2946c8[_0x2c5e63(0x18b)]())!==this['unitID'])return;const _0x4352c3=this[_0x2c5e63(0x333)][_0x2c5e63(0x479)](_0x459ea4)[_0x2c5e63(0x13b)](),_0x4772fc=_0x4352c3==null?void 0x0:_0x4352c3[_0x2c5e63(0x267)](_0x2100d1);Array[_0x2c5e63(0x3c2)](_0x4772fc)&&_0x4772fc[_0x2c5e63(0x478)]>0x0&&this['_updateLocalCursor'](_0x4772fc);}[_0x2908d8(0x49f)](){const _0x177553=_0x2908d8;this[_0x177553(0x282)]=!0x1;}};Ot=wr([se(0x2,_0x573d4d(_0x100ac5)),se(0x3,_0x573d4d(Bt)),se(0x4,_0x573d4d(oe)),se(0x5,_0x573d4d(kt)),se(0x6,_0x35595c),se(0x7,_0x52e604),se(0x8,_0x2bd668)],Ot);var yr=Object[_0x2908d8(0x1f6)],Mr=Object[_0x2908d8(0x17b)],Ar=(_0x4a7bfd,_0x3617f7,_0x2e12de,_0x45117e)=>{const _0x1f84e0=_0x2908d8;for(var _0x310548=_0x45117e>0x1?void 0x0:_0x45117e?Mr(_0x3617f7,_0x2e12de):_0x3617f7,_0x261aa5=_0x4a7bfd[_0x1f84e0(0x478)]-0x1,_0x2508a5;_0x261aa5>=0x0;_0x261aa5--)(_0x2508a5=_0x4a7bfd[_0x261aa5])&&(_0x310548=(_0x45117e?_0x2508a5(_0x3617f7,_0x2e12de,_0x310548):_0x2508a5(_0x310548))||_0x310548);return _0x45117e&&_0x310548&&yr(_0x3617f7,_0x2e12de,_0x310548),_0x310548;},_t=(_0xb1a7ec,_0x4920e7)=>(_0x12f2f3,_0x555683)=>_0x4920e7(_0x12f2f3,_0x555683,_0xb1a7ec);let fe=class extends _0x5afe1b{constructor(_0x220853,_0x3f200f,_0x52d91d){const _0x143947=_0x2908d8;super(),l(this,_0x143947(0x1cc),new Map()),l(this,_0x143947(0x1c1),new _0x59e98b()),(this[_0x143947(0x2c2)]=_0x220853,this[_0x143947(0x333)]=_0x3f200f,this[_0x143947(0x1a5)]=_0x52d91d,this[_0x143947(0x2c3)]());}['dispose'](){const _0x164455=_0x2908d8;super[_0x164455(0x1bf)](),this[_0x164455(0x1c1)][_0x164455(0x2d4)](),this[_0x164455(0x1cc)][_0x164455(0x212)](_0x1b6fd9=>_0x1b6fd9[_0x164455(0x1bf)]());}[_0x2908d8(0x44e)](_0x140fb8){const _0x5785e4=_0x2908d8;return this[_0x5785e4(0x1cc)][_0x5785e4(0x25a)](_0x140fb8)?this[_0x5785e4(0x1cc)][_0x5785e4(0x479)](_0x140fb8)[_0x5785e4(0x404)]:this[_0x5785e4(0x1c1)][_0x5785e4(0x490)](_0x230e40(_0x27c816=>_0x27c816[_0x5785e4(0x1ae)]===_0x140fb8),_0x1d335(_0x518f34=>_0x518f34[_0x5785e4(0x404)]));}[_0x2908d8(0x2c3)](){const _0x5ccd94=_0x2908d8;this[_0x5ccd94(0x2c2)][_0x5ccd94(0x1fc)](_0x50520e[_0x5ccd94(0x37d)])[_0x5ccd94(0x490)](_0x4f72a2(this['dispose$']))[_0x5ccd94(0x298)](async _0x189c27=>{const _0x13713e=_0x5ccd94,_0x15152a=_0x189c27[_0x13713e(0x18b)](),_0x2dca46=await this[_0x13713e(0x40e)](_0x15152a);this[_0x13713e(0x1c1)][_0x13713e(0x151)](_0x2dca46),this[_0x13713e(0x1cc)][_0x13713e(0x255)](_0x15152a,_0x2dca46);}),this['_univerInstanceService'][_0x5ccd94(0x1fc)](_0x50520e['UNIVER_DOC'])[_0x5ccd94(0x490)](_0x4f72a2(this[_0x5ccd94(0x2ba)]))[_0x5ccd94(0x490)](_0x230e40(_0x45e3fc=>!_0x45e3fc['getUnitId']()[_0x5ccd94(0x42e)]('__')))[_0x5ccd94(0x298)](async _0x94e06f=>{const _0x133c18=_0x5ccd94,_0xcb1582=_0x94e06f[_0x133c18(0x18b)](),_0x11f603=await this[_0x133c18(0x460)](_0xcb1582);this[_0x133c18(0x1c1)]['next'](_0x11f603),this[_0x133c18(0x1cc)]['set'](_0xcb1582,_0x11f603);}),_0x52a416(this[_0x5ccd94(0x2c2)][_0x5ccd94(0x46a)](_0x50520e[_0x5ccd94(0x461)]),this['_univerInstanceService'][_0x5ccd94(0x46a)](_0x50520e['UNIVER_SHEET']))[_0x5ccd94(0x490)](_0x4f72a2(this[_0x5ccd94(0x2ba)]))[_0x5ccd94(0x298)](_0x293bd9=>{const _0x26504d=_0x5ccd94,_0x104623=_0x293bd9['getUnitId'](),_0x2eefc3=this['_entities'][_0x26504d(0x479)](_0x104623);_0x2eefc3&&(_0x2eefc3['dispose'](),this['_entities']['delete'](_0x104623));});}async[_0x2908d8(0x40e)](_0x55eec1){const _0x3f603a=_0x2908d8,_0x28298e=await this[_0x3f603a(0x1a5)][_0x3f603a(0x325)](_0x55eec1),_0x3d41f4=this['_injector'][_0x3f603a(0x386)](Rt,_0x55eec1,_0x28298e);return _0x3d41f4['init'](),_0x3d41f4;}async[_0x2908d8(0x460)](_0x2598f1){const _0x13321c=_0x2908d8,_0x5cc602=await this[_0x13321c(0x1a5)]['requireSession'](_0x2598f1),_0x5aeab6=this[_0x13321c(0x333)][_0x13321c(0x386)](Ot,_0x2598f1,_0x5cc602);return _0x5aeab6[_0x13321c(0x392)](),_0x5aeab6;}};fe=Ar([_0x1e52da(_0x3ebf67[_0x2908d8(0x135)],fe),_t(0x0,_0x52e604),_t(0x1,_0x573d4d(_0x100ac5)),_t(0x2,_0x573d4d(ae))],fe);const Ue=0x14,_s=0xc8,ut=0x4,Ur=0x5;function Lr(_0x216133,_0x23f60a){const _0x543a52=_0x2908d8;let {radius:_0x4d86a4,width:_0x5e6155,height:_0x2c154c}=_0x23f60a;_0x4d86a4=_0x4d86a4!=null?_0x4d86a4:0x0,_0x5e6155=_0x5e6155!=null?_0x5e6155:0x1e,_0x2c154c=_0x2c154c!=null?_0x2c154c:0x1e;let _0x3161c1=0x0,_0x4d3781=0x0,_0x1bd665=0x0;_0x3161c1=_0x4d3781=_0x1bd665=Math['min'](_0x4d86a4,_0x5e6155/0x2,_0x2c154c/0x2),_0x216133[_0x543a52(0x1f3)](),_0x216133['moveTo'](_0x3161c1,0x0),_0x216133[_0x543a52(0x2d9)](_0x5e6155-_0x4d3781,0x0),_0x216133[_0x543a52(0x2ad)](_0x5e6155-_0x4d3781,_0x4d3781,_0x4d3781,Math['PI']*0x3/0x2,0x0,!0x1),_0x216133[_0x543a52(0x2d9)](_0x5e6155,_0x2c154c-_0x1bd665),_0x216133[_0x543a52(0x2ad)](_0x5e6155-_0x1bd665,_0x2c154c-_0x1bd665,_0x1bd665,0x0,Math['PI']/0x2,!0x1),_0x216133[_0x543a52(0x2d9)](0x0,_0x2c154c),_0x216133[_0x543a52(0x2d9)](0x0,_0x3161c1),_0x216133[_0x543a52(0x2ad)](_0x3161c1,_0x3161c1,_0x3161c1,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x216133[_0x543a52(0x474)](),_0x23f60a[_0x543a52(0x2f9)]&&(_0x216133[_0x543a52(0x3b1)](),_0x216133[_0x543a52(0x3c3)]=_0x23f60a['fill'],_0x23f60a['fillRule']==='evenodd'?_0x216133[_0x543a52(0x2f9)](_0x543a52(0x1d9)):_0x216133['fill'](),_0x216133[_0x543a52(0x40a)]());}class nt extends _0x3bcf23{constructor(_0x4e6dd9,_0x14240a){const _0x5d9b78=_0x2908d8;super(_0x4e6dd9,_0x14240a),l(this,_0x5d9b78(0x18f)),l(this,_0x5d9b78(0x200)),(this[_0x5d9b78(0x18f)]=_0x14240a==null?void 0x0:_0x14240a[_0x5d9b78(0x18f)],this['text']=_0x14240a==null?void 0x0:_0x14240a[_0x5d9b78(0x200)]);}static[_0x2908d8(0x24a)](_0xe34a99,_0x8716bd){const _0x509b43=_0x2908d8,{text:_0x387de6,color:_0x5d7a09}=_0x8716bd;_0xe34a99['save'](),_0xe34a99['font']=_0x509b43(0x1a4);const _0x191ebe=_0xe34a99[_0x509b43(0x176)](_0x387de6)[_0x509b43(0x162)],_0x40635d=Math[_0x509b43(0x468)](_0x191ebe+0x2*ut,_s);Lr(_0xe34a99,{'height':Ue,'radius':0x4,'width':_0x40635d,'fill':_0x5d7a09,'evented':!0x1}),_0xe34a99[_0x509b43(0x3c3)]=_0x509b43(0x1e2);const _0x17320c=ut,_0x554cdd=Ue-Ur,_0x4aa3a8=_s-0x2*ut;if(_0x191ebe>_0x4aa3a8){let _0x1d87b6='',_0x2c8307=0x0;for(const _0x15b0fc of _0x387de6){const _0x334e50=_0xe34a99['measureText'](_0x15b0fc)['width'];if(_0x2c8307+_0x334e50<=_0x4aa3a8-_0xe34a99[_0x509b43(0x176)](_0x509b43(0x398))['width'])_0x1d87b6+=_0x15b0fc,_0x2c8307+=_0x334e50;else{_0x1d87b6+=_0x509b43(0x398);break;}}_0xe34a99[_0x509b43(0x3af)](_0x1d87b6,_0x17320c,_0x554cdd);}else _0xe34a99[_0x509b43(0x3af)](_0x387de6,_0x17320c,_0x554cdd);_0xe34a99['restore']();}[_0x2908d8(0x352)](_0xdfd6f1){nt['drawWith'](_0xdfd6f1,this);}}const $r=0x1,jr=1.5;class xr extends _0x3bcf23{constructor(_0x5d3115,_0x15f1a2){const _0x54b727=_0x2908d8;super(_0x5d3115,_0x15f1a2),l(this,_0x54b727(0x237)),l(this,_0x54b727(0x37c),!0x1),l(this,_0x54b727(0x203)),l(this,_0x54b727(0x35a),''),l(this,_0x54b727(0x13e),_0x54b727(0x221)),l(this,_0x54b727(0x1ef)),(_0x15f1a2&&this['setShapeProps'](_0x15f1a2),this[_0x54b727(0x438)][_0x54b727(0x390)](()=>this[_0x54b727(0x13c)]({'hovered':!0x0})),this[_0x54b727(0x296)][_0x54b727(0x390)](()=>this[_0x54b727(0x13c)]({'hovered':!0x1})));}[_0x2908d8(0x13c)](_0x53fb6e){const _0x39318f=_0x2908d8;var _0x2de0f7,_0x8ccb2a,_0x55e7e8,_0x49d6ad,_0x32f88f,_0x1c5753;this[_0x39318f(0x237)]=(_0x2de0f7=_0x53fb6e[_0x39318f(0x18f)])!=null?_0x2de0f7:this[_0x39318f(0x237)],this[_0x39318f(0x37c)]=(_0x8ccb2a=_0x53fb6e[_0x39318f(0x16d)])!=null?_0x8ccb2a:this[_0x39318f(0x37c)],this[_0x39318f(0x203)]=(_0x55e7e8=_0x53fb6e[_0x39318f(0x2b2)])!=null?_0x55e7e8:this[_0x39318f(0x203)],this[_0x39318f(0x35a)]=(_0x49d6ad=_0x53fb6e[_0x39318f(0x3b6)])!=null?_0x49d6ad:this['_name'],this[_0x39318f(0x13e)]=(_0x32f88f=_0x53fb6e['labelPosition'])!=null?_0x32f88f:this[_0x39318f(0x13e)],this['_backgroundColor']=(_0x1c5753=_0x53fb6e[_0x39318f(0x3f9)])!=null?_0x1c5753:this[_0x39318f(0x1ef)],this[_0x39318f(0x388)]({'width':_0x53fb6e[_0x39318f(0x162)],'height':_0x53fb6e[_0x39318f(0x2d6)]});}['onMouseMove'](_0x298b75){const _0x3c70cd=_0x2908d8,{row:_0x1b7c3c,column:_0x30edc4}=_0x298b75;if(_0x1b7c3c>=this['_range'][_0x3c70cd(0x216)]&&_0x1b7c3c<=this['_range'][_0x3c70cd(0x23d)]&&_0x30edc4>=this['_range'][_0x3c70cd(0x49b)]&&_0x30edc4<=this[_0x3c70cd(0x203)]['endColumn']){this[_0x3c70cd(0x13c)]({'hovered':!0x0});return;}this[_0x3c70cd(0x13c)]({'hovered':!0x1});}[_0x2908d8(0x3cc)](_0x38720d){return!0x1;}[_0x2908d8(0x352)](_0x185f8f){const _0x5ac12c=_0x2908d8;_0x45456d[_0x5ac12c(0x24a)](_0x185f8f,{'width':this[_0x5ac12c(0x162)],'height':this[_0x5ac12c(0x2d6)],'strokeWidth':jr,'stroke':this[_0x5ac12c(0x237)],'evented':!0x1,'fill':this[_0x5ac12c(0x1ef)]}),this['_hovered']&&(_0x185f8f[_0x5ac12c(0x3b1)](),_0x185f8f[_0x5ac12c(0x1d6)](0x1,0x0,0x0,0x1,this[_0x5ac12c(0x162)],this['_labelPosition']===_0x5ac12c(0x26b)?0x0:-Ue),nt[_0x5ac12c(0x24a)](_0x185f8f,{'text':this['_name'],'color':this[_0x5ac12c(0x237)]}),_0x185f8f[_0x5ac12c(0x40a)]());}}var Hr=Object[_0x2908d8(0x1f6)],kr=Object['getOwnPropertyDescriptor'],Vr=(_0x2a1f28,_0xbbaddb,_0x300697,_0x2fab7e)=>{const _0x1be4cd=_0x2908d8;for(var _0x2d6ad9=_0x2fab7e>0x1?void 0x0:_0x2fab7e?kr(_0xbbaddb,_0x300697):_0xbbaddb,_0x2c3f5e=_0x2a1f28[_0x1be4cd(0x478)]-0x1,_0x230994;_0x2c3f5e>=0x0;_0x2c3f5e--)(_0x230994=_0x2a1f28[_0x2c3f5e])&&(_0x2d6ad9=(_0x2fab7e?_0x230994(_0xbbaddb,_0x300697,_0x2d6ad9):_0x230994(_0x2d6ad9))||_0x2d6ad9);return _0x2fab7e&&_0x2d6ad9&&Hr(_0xbbaddb,_0x300697,_0x2d6ad9),_0x2d6ad9;},dt=(_0x1fb4dc,_0x5cffc0)=>(_0x48865b,_0x53cb3f)=>_0x5cffc0(_0x48865b,_0x53cb3f,_0x1fb4dc);const Br=0x1389;let Dt=class extends _0x5afe1b{constructor(_0x4cd618,_0x378ee3,_0x31c849,_0x52d2a7){const _0x3ced10=_0x2908d8;super(),l(this,_0x3ced10(0x304),new Set()),l(this,_0x3ced10(0x226),null),(this['_context']=_0x4cd618,this['_sheetSkeletonManagerService']=_0x378ee3,this[_0x3ced10(0x1c7)]=_0x31c849,this[_0x3ced10(0x3f7)]=_0x52d2a7,this['_init']());}[_0x2908d8(0x2c3)](){const _0x527845=_0x2908d8;this[_0x527845(0x39b)][_0x527845(0x3b4)][_0x527845(0x490)](_0x5953cf(this[_0x527845(0x2ba)]),_0x19a6e7(_0x1bc3b6=>{const _0x191102=_0x527845;if(_0x1bc3b6){const _0x46bb3c=_0x1bc3b6[_0x191102(0x49a)];return _0x26b443(this[_0x191102(0x1c7)][_0x191102(0x44e)](this[_0x191102(0x258)][_0x191102(0x498)]),this[_0x191102(0x3f7)][_0x191102(0x2a2)])[_0x191102(0x490)](_0x391b01(([_0x19d93f,_0x4f3787])=>{const _0x11b652=new Map();return _0x19d93f['forEach']((_0x15af2c,_0x2f2fe5)=>{const _0x45d642=_0x1140;if(_0x15af2c['sheetID']===_0x46bb3c){const _0x90b16e={..._0x15af2c};_0x90b16e[_0x45d642(0x18f)]=_0x4f3787[_0x15af2c[_0x45d642(0x18f)]],_0x11b652['set'](_0x2f2fe5,_0x90b16e);}}),{'skeleton':_0x1bc3b6,'cursors':_0x11b652};}));}return _0xc0017a({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x1fa0f0,cursors:_0x42e384})=>{const _0x54641c=_0x527845;this[_0x54641c(0x330)](),_0x1fa0f0&&this[_0x54641c(0x263)](_0x1fa0f0,_0x42e384);}),this[_0x527845(0x39b)][_0x527845(0x3b4)]['subscribe'](_0x30785f=>{const _0x223a4f=_0x527845;if(_0x30785f==null)return;const {skeleton:_0x32652d}=_0x30785f,{scene:_0x576b89}=this[_0x223a4f(0x258)];_0x576b89[_0x223a4f(0x211)][_0x223a4f(0x390)](_0x598329(_0x2562db=>{const _0x527894=_0x223a4f;var _0x2a4850,_0x179542;const {offsetX:_0x35ff60,offsetY:_0x3d6c7b}=_0x2562db,{x:_0x68048e,y:_0x184763}=_0x576b89[_0x527894(0x191)](_0x29234d[_0x527894(0x1b5)]([_0x35ff60,_0x3d6c7b])),{scaleX:_0x1abd93,scaleY:_0x38ba79}=_0x576b89['getAncestorScale'](),_0x25cbfc=_0x576b89['getViewport'](_0x401402[_0x527894(0x196)]),_0x342470=_0x576b89['getVpScrollXYInfoByPosToVp'](_0x29234d[_0x527894(0x1b5)]([_0x68048e,_0x184763]),_0x25cbfc),_0x58673c=_0x32652d['getCellPositionByOffset'](_0x35ff60,_0x3d6c7b,_0x1abd93,_0x38ba79,_0x342470);((_0x2a4850=this[_0x527894(0x226)])==null?void 0x0:_0x2a4850[_0x527894(0x29c)])===_0x58673c[_0x527894(0x29c)]&&((_0x179542=this[_0x527894(0x226)])==null?void 0x0:_0x179542[_0x527894(0x268)])===_0x58673c[_0x527894(0x268)]||this[_0x527894(0x304)][_0x527894(0x212)](_0x10a32e=>{const _0x461e68=_0x527894;_0x10a32e[_0x461e68(0x32a)](_0x58673c);});},0x64));});}[_0x2908d8(0x263)](_0x5cc9bb,_0x19209e){const _0x16575b=_0x2908d8;var _0x259459;const _0x59244c=(_0x259459=this[_0x16575b(0x39b)][_0x16575b(0x2c6)]())==null?void 0x0:_0x259459[_0x16575b(0x412)];if(!_0x59244c)return;const _0x203104=this[_0x16575b(0x317)]();if(!_0x203104)return;this['_cursors'][_0x16575b(0x212)](_0x47fd78=>{const _0x39b896=_0x16575b;_0x47fd78[_0x39b896(0x43e)]();});const {scene:_0x3c1801}=_0x203104,_0x526f83=Fr(Array['from'](_0x19209e['values']()))[_0x16575b(0x267)](_0x29ba5a=>{const _0x535847=_0x16575b,{color:_0x407bb7,range:_0x463c75,name:_0x2e14aa,selection:_0x62a502,sheetID:_0x39887d}=_0x29ba5a,{startColumn:_0x34436a,startRow:_0x44a8e8,endColumn:_0x4c6eb1,endRow:_0xe41af3}=_0x463c75,_0x43fbf9=_0x5707a5(_0x44a8e8,_0x34436a,_0x3c1801,_0x59244c),_0x4e238f=_0x5707a5(_0xe41af3,_0x4c6eb1,_0x3c1801,_0x59244c),{columnHeaderHeightAndMarginTop:_0x3202c4}=_0x59244c,{startX:_0x1550aa,startY:_0x5b2713}=_0x43fbf9,{endX:_0x4b699f,endY:_0x29f5ff}=_0x4e238f,_0x5e5cd8=_0x4b699f-_0x1550aa,_0x593d46=_0x29f5ff-_0x5b2713,_0x7c0a70={'labelPosition':_0x5b2713-_0x3202c4>=Ue?_0x535847(0x221):_0x535847(0x26b),'sheetID':_0x39887d,'range':_0x463c75,'color':_0x407bb7,'name':_0x2e14aa,'selection':_0x62a502,'left':_0x1550aa,'top':_0x5b2713,'width':_0x5e5cd8,'height':_0x593d46,'evented':!0x1,'zIndex':Br};return new xr(_0x2e14aa,_0x7c0a70);});_0x3c1801[_0x16575b(0x29e)](_0x526f83,$r),this[_0x16575b(0x304)]=new Set(_0x526f83);}[_0x2908d8(0x330)](){const _0x12b5b6=_0x2908d8;var _0x4f38fe;(_0x4f38fe=this[_0x12b5b6(0x304)])==null||_0x4f38fe['forEach'](_0x13c2b5=>_0x13c2b5[_0x12b5b6(0x1bf)]());}['_getSheetObject'](){const _0x22a02c=_0x2908d8;return _0x4ce2e8(this[_0x22a02c(0x258)][_0x22a02c(0x475)],this['_context']);}};Dt=Vr([dt(0x1,_0x573d4d(_0x4e74c5)),dt(0x2,_0x573d4d(fe)),dt(0x3,_0x573d4d(_0x1e29a1))],Dt);function Fr(_0x1c200d){const _0x13e4d6=_0x2908d8,_0x38b2c7=new Map();return _0x1c200d[_0x13e4d6(0x212)](_0xe1e31a=>{const _0x324e93=_0x13e4d6;if(_0x38b2c7[_0x324e93(0x25a)](_0xe1e31a['selection'])){const _0x475d27=_0x38b2c7[_0x324e93(0x479)](_0xe1e31a[_0x324e93(0x281)]);_0x475d27[_0x324e93(0x3b6)]+=',\x20'+_0xe1e31a[_0x324e93(0x3b6)];}else _0x38b2c7['set'](_0xe1e31a['selection'],_0xe1e31a);}),Array[_0x13e4d6(0x2e4)](_0x38b2c7[_0x13e4d6(0x3ca)]());}var y=function(){const _0x59297f=_0x2908d8;return y=Object[_0x59297f(0x2a1)]||function(_0x413523){const _0x289af8=_0x59297f;for(var _0x401615,_0x463a71=0x1,_0x5d5ef6=arguments[_0x289af8(0x478)];_0x463a71<_0x5d5ef6;_0x463a71++){_0x401615=arguments[_0x463a71];for(var _0x471332 in _0x401615)Object[_0x289af8(0x408)][_0x289af8(0x1f4)][_0x289af8(0x189)](_0x401615,_0x471332)&&(_0x413523[_0x471332]=_0x401615[_0x471332]);}return _0x413523;},y[_0x59297f(0x2a9)](this,arguments);},Wr=function(_0x1ed31d,_0x586816){const _0x523746=_0x2908d8;var _0xb9404e={};for(var _0x358d3a in _0x1ed31d)Object['prototype'][_0x523746(0x1f4)][_0x523746(0x189)](_0x1ed31d,_0x358d3a)&&_0x586816[_0x523746(0x1ec)](_0x358d3a)<0x0&&(_0xb9404e[_0x358d3a]=_0x1ed31d[_0x358d3a]);if(_0x1ed31d!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x310602=0x0,_0x358d3a=Object[_0x523746(0x2b3)](_0x1ed31d);_0x310602<_0x358d3a[_0x523746(0x478)];_0x310602++)_0x586816[_0x523746(0x1ec)](_0x358d3a[_0x310602])<0x0&&Object['prototype'][_0x523746(0x328)][_0x523746(0x189)](_0x1ed31d,_0x358d3a[_0x310602])&&(_0xb9404e[_0x358d3a[_0x310602]]=_0x1ed31d[_0x358d3a[_0x310602]]);}return _0xb9404e;},Ft=_0x12f5f1(function(_0x253dd5,_0xc7ec6f){const _0x238614=_0x2908d8;var _0x115f05=_0x253dd5[_0x238614(0x354)],_0x302b11=_0x253dd5['id'],_0xcf4bc2=_0x253dd5['className'],_0x11ca2d=_0x253dd5[_0x238614(0x17c)],_0xd4b92=Wr(_0x253dd5,['icon','id',_0x238614(0x20d),_0x238614(0x17c)]),_0x2f95a9=_0x238614(0x2b5)[_0x238614(0x22a)](_0x302b11,'\x20')[_0x238614(0x22a)](_0xcf4bc2||'')[_0x238614(0x253)](),_0x345244=_0x201f53('_'[_0x238614(0x22a)](Kr()));return Hs(_0x115f05,''['concat'](_0x302b11),{'defIds':_0x115f05['defIds'],'idSuffix':_0x345244['current']},y({'ref':_0xc7ec6f,'className':_0x2f95a9},_0xd4b92),_0x11ca2d);});function Hs(_0x97a40d,_0x2bb647,_0x4237fa,_0x4f3e92,_0x2003fe){const _0x301630=_0x2908d8;return _0x1f4991(_0x97a40d[_0x301630(0x3e3)],y(y({'key':_0x2bb647},Gr(_0x97a40d,_0x4237fa,_0x2003fe)),_0x4f3e92),(Yr(_0x97a40d,_0x4237fa)[_0x301630(0x2c4)]||[])[_0x301630(0x267)](function(_0x51566a,_0x3efe76){const _0x53e4fe=_0x301630;return Hs(_0x51566a,''['concat'](_0x2bb647,'-')[_0x53e4fe(0x22a)](_0x97a40d[_0x53e4fe(0x3e3)],'-')[_0x53e4fe(0x22a)](_0x3efe76),_0x4237fa,void 0x0,_0x2003fe);}));}function Gr(_0xe94c55,_0x47e2ec,_0x4d566c){const _0x1ba542=_0x2908d8;var _0x144d52=y({},_0xe94c55[_0x1ba542(0x46f)]);_0x4d566c!=null&&_0x4d566c['colorChannel1']&&_0x144d52[_0x1ba542(0x2f9)]===_0x1ba542(0x1a1)&&(_0x144d52[_0x1ba542(0x2f9)]=_0x4d566c['colorChannel1']);var _0x17ef16=_0x47e2ec[_0x1ba542(0x178)];return!_0x17ef16||_0x17ef16['length']===0x0||(_0xe94c55[_0x1ba542(0x3e3)]===_0x1ba542(0x397)&&_0x144d52[_0x1ba542(0x316)]&&(_0x144d52['xlink:href']=_0x144d52[_0x1ba542(0x316)]+_0x47e2ec[_0x1ba542(0x443)]),Object[_0x1ba542(0x2c0)](_0x144d52)[_0x1ba542(0x212)](function(_0x58f8b1){const _0x51b7a6=_0x1ba542;var _0x4eb9cc=_0x58f8b1[0x0],_0x485a4d=_0x58f8b1[0x1];typeof _0x485a4d==_0x51b7a6(0x301)&&(_0x144d52[_0x4eb9cc]=_0x485a4d[_0x51b7a6(0x327)](/url\(#(.*)\)/,'url(#$1'[_0x51b7a6(0x22a)](_0x47e2ec['idSuffix'],')')));})),_0x144d52;}function Yr(_0x494b2b,_0x5ee32e){const _0x2eb8d3=_0x2908d8;var _0x3477a7,_0x573100=_0x5ee32e[_0x2eb8d3(0x178)];return!_0x573100||_0x573100['length']===0x0?_0x494b2b:_0x494b2b[_0x2eb8d3(0x3e3)]===_0x2eb8d3(0x1ac)&&(!((_0x3477a7=_0x494b2b[_0x2eb8d3(0x2c4)])===null||_0x3477a7===void 0x0)&&_0x3477a7[_0x2eb8d3(0x478)])?y(y({},_0x494b2b),{'children':_0x494b2b[_0x2eb8d3(0x2c4)]['map'](function(_0x2a259f){const _0x1dad6a=_0x2eb8d3;return typeof _0x2a259f[_0x1dad6a(0x46f)]['id']=='string'&&_0x573100&&_0x573100[_0x1dad6a(0x1ec)](_0x2a259f['attrs']['id'])>-0x1?y(y({},_0x2a259f),{'attrs':y(y({},_0x2a259f['attrs']),{'id':_0x2a259f[_0x1dad6a(0x46f)]['id']+_0x5ee32e[_0x1dad6a(0x443)]})}):_0x2a259f;})}):_0x494b2b;}function Kr(){const _0x1f65fa=_0x2908d8;return Math[_0x1f65fa(0x39d)]()[_0x1f65fa(0x2a4)](0x24)['substring'](0x2,0x8);}Ft['displayName']=_0x2908d8(0x307);var Xr={'tag':'svg','attrs':{'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x2908d8(0x323),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x2908d8(0x3d6)},'children':[{'tag':_0x2908d8(0x276),'attrs':{'stroke':_0x2908d8(0x2e0),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x2908d8(0x182),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x2908d8(0x15a),'attrs':{'id':_0x2908d8(0x499)},'children':[{'tag':_0x2908d8(0x276),'attrs':{'fill':'#fff','d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x2908d8(0x499)]},ks=_0x12f5f1(function(_0x47de1c,_0x2d6a97){const _0x2cd957=_0x2908d8;return _0x1f4991(Ft,Object[_0x2cd957(0x2a1)]({},_0x47de1c,{'id':'off-line-single','ref':_0x2d6a97,'icon':Xr}));});ks[_0x2908d8(0x234)]=_0x2908d8(0x27b);var Jr={'tag':_0x2908d8(0x231),'attrs':{'fill':_0x2908d8(0x385),'viewBox':'0\x200\x2017\x2016','width':_0x2908d8(0x323),'height':_0x2908d8(0x323)},'children':[{'tag':'g','attrs':{'clipPath':_0x2908d8(0x2ef)},'children':[{'tag':_0x2908d8(0x276),'attrs':{'stroke':_0x2908d8(0x2e0),'d':_0x2908d8(0x497),'strokeLinecap':'round','strokeLinejoin':_0x2908d8(0x182),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x2908d8(0x179)},'children':[{'tag':_0x2908d8(0x276),'attrs':{'fill':_0x2908d8(0x156),'d':_0x2908d8(0x2aa),'transform':'translate(.97)'}}]}]}],'defIds':[_0x2908d8(0x179)]},Vs=_0x12f5f1(function(_0x2954a0,_0x177451){const _0xafc5d5=_0x2908d8;return _0x1f4991(Ft,Object[_0xafc5d5(0x2a1)]({},_0x2954a0,{'id':'on-line-single','ref':_0x177451,'icon':Jr}));});Vs[_0x2908d8(0x234)]=_0x2908d8(0x2f5);const zr=_0x2908d8(0x3d9),qr='univer-online-status-title',Zr=_0x2908d8(0x3c8),Qr=_0x2908d8(0x262),eo=_0x2908d8(0x406),Oe={'onlineStatusIcon':zr,'onlineStatusTitle':qr,'onlineStatus':Zr,'online':Qr,'offline':eo};function to(_0x5af7bd){const _0x18bd0a=_0x2908d8;switch(_0x5af7bd){case w[_0x18bd0a(0x288)]:return'collabStatus.offline';case w[_0x18bd0a(0x14f)]:return'collabStatus.conflict';case w[_0x18bd0a(0x336)]:return _0x18bd0a(0x430);case w[_0x18bd0a(0x1a9)]:return _0x18bd0a(0x166);case w[_0x18bd0a(0x167)]:case w[_0x18bd0a(0x1ca)]:case w[_0x18bd0a(0x3ee)]:return _0x18bd0a(0x2d0);case w[_0x18bd0a(0x3c9)]:return _0x18bd0a(0x411);}}function so(_0x3ea769){const _0xe9d059=_0x2908d8,{status$:_0x59da28}=_0x3ea769,_0x1b3f3a=_0xbcaa84(_0x59da28,w[_0xe9d059(0x1a9)]),_0x48055e=_0x9429d7(_0x5071b4),_0x3295d5=_0x9429d7(ae),_0x31bf77=_0x1b3f3a!==w[_0xe9d059(0x288)],_0x3d5394=_0x48055e['t'](to(_0x1b3f3a)),_0x53ee80=_0x35bfa9(Oe[_0xe9d059(0x3bc)],{[Oe[_0xe9d059(0x170)]]:_0x31bf77,[Oe[_0xe9d059(0x44a)]]:!_0x31bf77}),_0x52721b=_0x31bf77?_0x333221[_0xe9d059(0x1db)](Vs,null):_0x333221[_0xe9d059(0x1db)](ks,null),_0x34c3c3=_0x4ccb32(()=>{_0x31bf77||_0x3295d5['reconnect']();},[_0x31bf77,_0x3295d5]);function _0x57876a(){const _0x3742c4=_0xe9d059;return _0x333221[_0x3742c4(0x1db)](_0x3742c4(0x3f1),{'className':_0x53ee80,'onClick':_0x34c3c3},_0x333221[_0x3742c4(0x1db)]('div',{'className':Oe[_0x3742c4(0x2d7)]},_0x52721b),_0x333221[_0x3742c4(0x1db)](_0x3742c4(0x3f1),{'className':Oe[_0x3742c4(0x442)]},_0x3d5394));}return _0x31bf77?_0x57876a():_0x333221[_0xe9d059(0x1db)](_0x728f60,{'title':_0x48055e['t'](_0xe9d059(0x485))},_0x57876a());}var io=Object[_0x2908d8(0x1f6)],no=Object[_0x2908d8(0x17b)],ro=(_0x3d069f,_0x4ed1ac,_0xbf6b2c,_0x2ae07b)=>{const _0x357d88=_0x2908d8;for(var _0x4f8509=_0x2ae07b>0x1?void 0x0:_0x2ae07b?no(_0x4ed1ac,_0xbf6b2c):_0x4ed1ac,_0x4c8a5e=_0x3d069f[_0x357d88(0x478)]-0x1,_0xf1dc56;_0x4c8a5e>=0x0;_0x4c8a5e--)(_0xf1dc56=_0x3d069f[_0x4c8a5e])&&(_0x4f8509=(_0x2ae07b?_0xf1dc56(_0x4ed1ac,_0xbf6b2c,_0x4f8509):_0xf1dc56(_0x4f8509))||_0x4f8509);return _0x2ae07b&&_0x4f8509&&io(_0x4ed1ac,_0xbf6b2c,_0x4f8509),_0x4f8509;},ke=(_0x2fa9a6,_0x3a8d23)=>(_0x562b3a,_0x4ea800)=>_0x3a8d23(_0x562b3a,_0x4ea800,_0x2fa9a6);let ye=class extends _0x5d8459{constructor(_0x440e81,_0x1bef1f,_0x36aa3e,_0xdbaf9b){const _0x47476a=_0x2908d8;super(),l(this,_0x47476a(0x1a7),new _0x5a6925(w['NOT_COLLAB'])),(this[_0x47476a(0x2c2)]=_0x440e81,this['_uiPartsService']=_0x1bef1f,this[_0x47476a(0x333)]=_0x36aa3e,this[_0x47476a(0x335)]=_0xdbaf9b,this[_0x47476a(0x2f2)](),this['_initStatusListener']());}['_initStatusListener'](){const _0x125b4c=_0x2908d8;this[_0x125b4c(0x206)](this[_0x125b4c(0x2c2)]['focused$']['pipe'](_0x1d335(()=>{const _0x55e559=_0x125b4c,_0x34b450=this[_0x55e559(0x2c2)][_0x55e559(0x39a)]();return _0x34b450?this[_0x55e559(0x335)]['getCollabEntity$'](_0x34b450[_0x55e559(0x18b)]()):_0xc0017a(null);}),_0x1d335(_0x2a636d=>_0x2a636d?_0x2a636d[_0x125b4c(0x383)]:_0xc0017a(w['NOT_COLLAB'])))[_0x125b4c(0x298)](_0x31d0cc=>{const _0x625279=_0x125b4c;this[_0x625279(0x1a7)][_0x625279(0x151)](_0x31d0cc);}));}[_0x2908d8(0x2f2)](){const _0x45fdc2=_0x2908d8;this['disposeWithMe'](this[_0x45fdc2(0x2e8)][_0x45fdc2(0x3d2)](_0x3aecfb[_0x45fdc2(0x24c)],()=>_0x143ba4(oo({'status$':this['_status$'][_0x45fdc2(0x165)]()}),this[_0x45fdc2(0x333)])));}};ye=ro([ke(0x0,_0x52e604),ke(0x1,_0x5de437),ke(0x2,_0x573d4d(_0x100ac5)),ke(0x3,_0x573d4d(Ae))],ye);function oo(_0x1da582){const {status$:_0x4c92ea}=_0x1da582;return function(){const _0x10d1e1=_0x1140;return _0x333221[_0x10d1e1(0x1db)](so,{'status$':_0x4c92ea});};}const Bs=_0xff730e(_0x2908d8(0x373));var ao=Object[_0x2908d8(0x1f6)],co=Object['getOwnPropertyDescriptor'],ho=(_0x51eb62,_0x3dd456,_0x6b4b79,_0x19005e)=>{const _0x1c4d1b=_0x2908d8;for(var _0x4386f0=_0x19005e>0x1?void 0x0:_0x19005e?co(_0x3dd456,_0x6b4b79):_0x3dd456,_0x4fb522=_0x51eb62[_0x1c4d1b(0x478)]-0x1,_0x4617f3;_0x4fb522>=0x0;_0x4fb522--)(_0x4617f3=_0x51eb62[_0x4fb522])&&(_0x4386f0=(_0x19005e?_0x4617f3(_0x3dd456,_0x6b4b79,_0x4386f0):_0x4617f3(_0x4386f0))||_0x4386f0);return _0x19005e&&_0x4386f0&&ao(_0x3dd456,_0x6b4b79,_0x4386f0),_0x4386f0;},me=(_0x16c153,_0x44e033)=>(_0x3a1922,_0x3b08eb)=>_0x44e033(_0x3a1922,_0x3b08eb,_0x16c153);let We=class extends _0x5afe1b{constructor(_0x276345,_0x1ec114,_0x733146,_0x5d06bd,_0x52c21e,_0x36441d){const _0x5b453a=_0x2908d8;super(),this[_0x5b453a(0x3cb)]=_0x276345,this[_0x5b453a(0x49c)]=_0x1ec114,this[_0x5b453a(0x3fd)]=_0x733146,this[_0x5b453a(0x2fc)]=_0x5d06bd,this[_0x5b453a(0x249)]=_0x52c21e,_0x36441d?_0x36441d==null||_0x36441d[_0x5b453a(0x153)]()[_0x5b453a(0x378)](()=>this['_init']()):(this['_logService'][_0x5b453a(0x2e6)](_0x5b453a(0x254),_0x5b453a(0x2ce)),this[_0x5b453a(0x2c3)]());}async[_0x2908d8(0x2c3)](){const _0x5669fe=_0x2908d8,_0x5d5019=this[_0x5669fe(0x3cb)]['getParam']('unit'),_0x4cf5cf=this[_0x5669fe(0x3cb)][_0x5669fe(0x2a6)](_0x5669fe(0x161));if(!_0x5d5019||!_0x4cf5cf){this[_0x5669fe(0x49c)][_0x5669fe(0x2e6)](_0x5669fe(0x254),_0x5669fe(0x138));return;}switch(Number(_0x4cf5cf)){case x[_0x5669fe(0x37d)]:{const _0xe0545e=await this[_0x5669fe(0x217)](_0x5d5019);this['_setupSubUnitSync'](_0xe0545e);break;}case x[_0x5669fe(0x461)]:{await this[_0x5669fe(0x150)](_0x5d5019);break;}default:{this[_0x5669fe(0x49c)][_0x5669fe(0x2f3)](_0x5669fe(0x254),_0x5669fe(0x1d5));break;}}}async[_0x2908d8(0x1c4)](_0x2ac198){const _0x2fdbcd=_0x2908d8;await this[_0x2fdbcd(0x1b6)](_0x2ac198),_0x2ac198['activeSheet$'][_0x2fdbcd(0x490)](_0x4f72a2(this[_0x2fdbcd(0x2ba)]))[_0x2fdbcd(0x298)](_0x5857d6=>{const _0x8e519c=_0x2fdbcd;_0x5857d6&&this[_0x8e519c(0x1e1)](_0x5857d6);}),this[_0x2fdbcd(0x3cb)][_0x2fdbcd(0x28b)][_0x2fdbcd(0x490)](_0x4f72a2(this[_0x2fdbcd(0x2ba)]))[_0x2fdbcd(0x298)](()=>this[_0x2fdbcd(0x1b6)](_0x2ac198));}[_0x2908d8(0x1e1)](_0xab33e,_0x469374=!0x1){const _0x2f5328=_0x2908d8,_0x2a93c2=this[_0x2f5328(0x3cb)]['getParam']('subunit');_0xab33e[_0x2f5328(0x348)]()!==_0x2a93c2&&this[_0x2f5328(0x3cb)]['setParam']('subunit',_0xab33e['getSheetId'](),_0x469374);}async[_0x2908d8(0x1b6)](_0x8807de){const _0x4c4635=_0x2908d8;var _0x517fd2;const _0x4a7c6e=this[_0x4c4635(0x3cb)][_0x4c4635(0x2a6)](_0x4c4635(0x472));if(!_0x4a7c6e||!_0x8807de['getSheetBySheetId'](_0x4a7c6e)){const _0x5459a5=_0x8807de[_0x4c4635(0x444)]()[0x0],_0x1cb364=_0x8807de[_0x4c4635(0x3b0)](_0x5459a5);if(!_0x1cb364)return;this[_0x4c4635(0x1e1)](_0x1cb364,!0x0),await this[_0x4c4635(0x3fd)][_0x4c4635(0x34d)](_0x217559['id'],{'unitId':_0x8807de[_0x4c4635(0x18b)](),'subUnitId':_0x5459a5});return;}((_0x517fd2=_0x8807de['getActiveSheet']())==null?void 0x0:_0x517fd2[_0x4c4635(0x348)]())!==_0x4a7c6e&&await this['_commandService']['executeCommand'](_0x217559['id'],{'unitId':_0x8807de[_0x4c4635(0x18b)](),'subUnitId':_0x4a7c6e});}async[_0x2908d8(0x217)](_0x43e687){const _0x35cf69=_0x2908d8;let _0x4f0d91=0x0;const _0x223b15=await this[_0x35cf69(0x2fc)]['loadOfflineData'](_0x43e687);return _0x223b15&&(_0x223b15[_0x35cf69(0x284)]||_0x223b15[_0x35cf69(0x467)]['length']!==0x0)&&(_0x4f0d91=_0x223b15[_0x35cf69(0x3e2)]),_0x4f0d91===0x0&&this[_0x35cf69(0x49c)][_0x35cf69(0x2e6)](_0x35cf69(0x254),_0x35cf69(0x2f4)),this[_0x35cf69(0x249)]['loadSheet'](_0x43e687,_0x4f0d91);}async[_0x2908d8(0x150)](_0x55928a){const _0x43d4ba=_0x2908d8;let _0x30c906=0x0;const _0x533ef3=await this[_0x43d4ba(0x2fc)][_0x43d4ba(0x22b)](_0x55928a);return _0x533ef3&&(_0x533ef3['awaitingChangeset']||_0x533ef3[_0x43d4ba(0x467)][_0x43d4ba(0x478)]!==0x0)&&(_0x30c906=_0x533ef3['rev']),_0x30c906===0x0&&this[_0x43d4ba(0x49c)][_0x43d4ba(0x2e6)](_0x43d4ba(0x254),_0x43d4ba(0x2f4)),this[_0x43d4ba(0x249)][_0x43d4ba(0x306)](_0x55928a,_0x30c906);}};We=ho([_0x1e52da(_0x3ebf67[_0x2908d8(0x135)],We),me(0x0,Bs),me(0x1,_0x38155a),me(0x2,_0x2bd668),me(0x3,_0x573d4d(D)),me(0x4,_0x573d4d(_0x232e25)),me(0x5,_0x2b0397(_0x1700c5))],We);var lo=Object[_0x2908d8(0x1f6)],_o=Object['getOwnPropertyDescriptor'],uo=(_0x2d0be9,_0x2e5add,_0x4b0be7,_0x186631)=>{const _0x46d631=_0x2908d8;for(var _0x21a972=_0x186631>0x1?void 0x0:_0x186631?_o(_0x2e5add,_0x4b0be7):_0x2e5add,_0x54e0c0=_0x2d0be9[_0x46d631(0x478)]-0x1,_0xa3c848;_0x54e0c0>=0x0;_0x54e0c0--)(_0xa3c848=_0x2d0be9[_0x54e0c0])&&(_0x21a972=(_0x186631?_0xa3c848(_0x2e5add,_0x4b0be7,_0x21a972):_0xa3c848(_0x21a972))||_0x21a972);return _0x186631&&_0x21a972&&lo(_0x2e5add,_0x4b0be7,_0x21a972),_0x21a972;},us=(_0x2e9ebb,_0x7e0f20)=>(_0x5be302,_0x3f4aba)=>_0x7e0f20(_0x5be302,_0x3f4aba,_0x2e9ebb);const mo=_0x2908d8(0x36d),fo='Univer';let Ge=class extends _0x5d8459{constructor(_0xb38031,_0x6af312){const _0x54de5b=_0x2908d8;super(),this['_univerInstanceService']=_0xb38031,this['_configService']=_0x6af312,this[_0x54de5b(0x2c3)]();}[_0x2908d8(0x2c3)](){const _0x271a5c=_0x2908d8;this[_0x271a5c(0x206)](_0x58e78e(this['_univerInstanceService'][_0x271a5c(0x160)][_0x271a5c(0x298)](()=>{const _0x384b7b=_0x271a5c;var _0x565cfa;const _0x316682=this[_0x384b7b(0x2c2)]['getFocusedUnit']();let _0x5c8a8d=(_0x565cfa=this['_configService']['getConfig'](mo))!=null?_0x565cfa:fo;_0x316682 instanceof _0x3c5d77&&(_0x5c8a8d=_0x316682[_0x384b7b(0x3b6)]),document['title']=_0x5c8a8d;})));}};Ge=uo([_0x1e52da(_0x3ebf67['Ready'],Ge),us(0x0,_0x52e604),us(0x1,_0x3abdb4)],Ge);var go=Object['defineProperty'],So=Object[_0x2908d8(0x17b)],po=(_0x25cda1,_0xf139cd,_0x49ce15,_0x426495)=>{const _0x4956ee=_0x2908d8;for(var _0x1dee1c=_0x426495>0x1?void 0x0:_0x426495?So(_0xf139cd,_0x49ce15):_0xf139cd,_0x9e48e9=_0x25cda1[_0x4956ee(0x478)]-0x1,_0x3cbc1d;_0x9e48e9>=0x0;_0x9e48e9--)(_0x3cbc1d=_0x25cda1[_0x9e48e9])&&(_0x1dee1c=(_0x426495?_0x3cbc1d(_0xf139cd,_0x49ce15,_0x1dee1c):_0x3cbc1d(_0x1dee1c))||_0x1dee1c);return _0x426495&&_0x1dee1c&&go(_0xf139cd,_0x49ce15,_0x1dee1c),_0x1dee1c;},ds=(_0x2ad01e,_0x1f645c)=>(_0x5aec77,_0x3068cc)=>_0x1f645c(_0x5aec77,_0x3068cc,_0x2ad01e);let wt=class{constructor(_0x113667,_0x2a16f3){const _0x9262dc=_0x2908d8;this[_0x9262dc(0x168)]=_0x113667,this['_httpService']=_0x2a16f3;}async['getUnitOnRev'](_0x34f6c5,_0x1ccef5){const _0x293f47=_0x2908d8;var _0x22dd3d;const {unitID:_0xd20c9f,type:_0x1f0506,revision:_0x4ee04e=0x0}=_0x1ccef5,_0x216f27=this['_getSnapshotAPIPrefix']()+'/'+_0x1f0506+'/unit/'+_0xd20c9f+_0x293f47(0x273)+_0x4ee04e,_0xbdb855=(await this[_0x293f47(0x22e)][_0x293f47(0x479)](_0x216f27))[_0x293f47(0x22f)],_0x4841b6=(_0x22dd3d=_0xbdb855['snapshot'])==null?void 0x0:_0x22dd3d['workbook'];if(_0x4841b6){const _0x36fbac=_0x4841b6==null?void 0x0:_0x4841b6['originalMeta'],_0x5a10db=_0x28a27b['encode'](_0x556542(_0x36fbac));_0x4841b6[_0x293f47(0x3e1)]=_0x5a10db,Object[_0x293f47(0x2c0)](_0x4841b6[_0x293f47(0x492)])[_0x293f47(0x212)](([,_0x38470f])=>{const _0x5a1d81=_0x293f47,_0x311731=_0x38470f['originalMeta'],_0x2ce11f=_0x28a27b[_0x5a1d81(0x3cf)](_0x556542(_0x311731));_0x38470f[_0x5a1d81(0x3e1)]=_0x2ce11f;});}return _0xbdb855;}async[_0x2908d8(0x32c)](_0x4737a9,_0xbad2fe){const _0x2487e1=_0x2908d8,{unitID:_0xd76da1,type:_0x1de31a,blockID:_0x41a908}=_0xbad2fe,_0x4befb9=this[_0x2487e1(0x399)]()+'/'+_0x1de31a+'/unit/'+_0xd76da1+_0x2487e1(0x2c5)+_0x41a908;return(await this['_httpService'][_0x2487e1(0x479)](_0x4befb9))[_0x2487e1(0x22f)];}async[_0x2908d8(0x19f)](_0x1125f3,_0x2e592b){const _0x54e814=_0x2908d8,{unitID:_0x58dbb9,type:_0x5b6d80,from:_0x2075ec,to:_0x359551}=_0x2e592b,_0x1906d1=this['_getAPIPrefix']()+'/'+_0x5b6d80+_0x54e814(0x375)+_0x58dbb9+_0x54e814(0x494)+_0x2075ec+_0x54e814(0x29a)+_0x359551;return(await this[_0x54e814(0x22e)]['get'](_0x1906d1))[_0x54e814(0x22f)];}[_0x2908d8(0x46d)](){const _0xa24ca=_0x2908d8;var _0x1c0100;return(_0x1c0100=this[_0xa24ca(0x168)][_0xa24ca(0x157)](mn))!=null?_0x1c0100:this[_0xa24ca(0x399)]();}[_0x2908d8(0x399)](){const _0x3c7fb6=_0x2908d8;var _0x460f24;return(_0x460f24=this[_0x3c7fb6(0x168)][_0x3c7fb6(0x157)](un))!=null?_0x460f24:dn;}async[_0x2908d8(0x33f)](_0x507251,_0x42709d){const _0x235848=_0x2908d8,_0x26e958=_0x235848(0x2a8)+_0x42709d[_0x235848(0x161)]+_0x235848(0x375)+_0x42709d['unitID']+_0x235848(0x3b2);return(await this[_0x235848(0x22e)]['get'](_0x26e958,{'params':{'resourceId':JSON[_0x235848(0x2d3)](_0x42709d[_0x235848(0x238)])}}))[_0x235848(0x22f)];}[_0x2908d8(0x356)](){const _0x342490=_0x2908d8;throw new Error(_0x342490(0x2ca));}[_0x2908d8(0x3c6)](){const _0x4aaa8e=_0x2908d8;throw new Error(_0x4aaa8e(0x2ca));}[_0x2908d8(0x48a)](){const _0x18a924=_0x2908d8;throw new Error(_0x18a924(0x2ca));}};wt=po([ds(0x0,_0x3abdb4),ds(0x1,_0x573d4d(_0x2d51dc))],wt);var vo=Object['defineProperty'],Io=Object['getOwnPropertyDescriptor'],Eo=(_0x4c27de,_0x3e09ad,_0x55c5ed,_0x1a942b)=>{const _0x335411=_0x2908d8;for(var _0x2b9d21=_0x1a942b>0x1?void 0x0:_0x1a942b?Io(_0x3e09ad,_0x55c5ed):_0x3e09ad,_0x167787=_0x4c27de[_0x335411(0x478)]-0x1,_0x2a11a6;_0x167787>=0x0;_0x167787--)(_0x2a11a6=_0x4c27de[_0x167787])&&(_0x2b9d21=(_0x1a942b?_0x2a11a6(_0x3e09ad,_0x55c5ed,_0x2b9d21):_0x2a11a6(_0x2b9d21))||_0x2b9d21);return _0x1a942b&&_0x2b9d21&&vo(_0x3e09ad,_0x55c5ed,_0x2b9d21),_0x2b9d21;},De=(_0x44bb77,_0x432f08)=>(_0x1256cc,_0x4d35ee)=>_0x432f08(_0x1256cc,_0x4d35ee,_0x44bb77);let Pt=class extends _0x181a3f{constructor(_0x3c8972,_0x43494c,_0x198eb7,_0x526b49,_0x41f628){const _0x717328=_0x2908d8;super(_0x3c8972,_0x43494c,_0x198eb7),this[_0x717328(0x389)]=_0x526b49,this['_logService']=_0x41f628;}[_0x2908d8(0x393)](_0x16d10b,_0x163450){const _0x563e01=_0x2908d8,_0x3dee41=this[_0x563e01(0x451)](_0x16d10b);if(_0x3dee41)try{const _0x10e977=this[_0x563e01(0x1a2)](_0x3dee41,_0x163450);this[_0x563e01(0x38f)](_0x16d10b,_0x10e977);}catch(_0x244aaf){this['_logService']['error'](_0x563e01(0x1f7),_0x244aaf),this['_clearUndo'](_0x16d10b);}const _0x1e06dc=this[_0x563e01(0x413)](_0x16d10b);if(_0x1e06dc)try{const _0x502b4a=this[_0x563e01(0x1a2)](_0x1e06dc,_0x163450);this[_0x563e01(0x1b8)](_0x16d10b,_0x502b4a);}catch(_0x3098f5){this['_logService'][_0x563e01(0x2f3)](_0x3098f5),this[_0x563e01(0x45b)](_0x16d10b);}}[_0x2908d8(0x286)](_0xac2a9e){const _0x553253=_0x2908d8,_0x373ea9=this[_0x553253(0x451)](_0xac2a9e);_0x373ea9&&(_0x373ea9[_0x553253(0x478)]=0x0,this[_0x553253(0x3dc)]());}[_0x2908d8(0x45b)](_0x183be0){const _0x3657ab=_0x2908d8,_0x4aff02=this[_0x3657ab(0x413)](_0x183be0);_0x4aff02&&(_0x4aff02['length']=0x0,this[_0x3657ab(0x3dc)]());}[_0x2908d8(0x38f)](_0x323fa0,_0x591a9d){const _0x186893=_0x2908d8;this[_0x186893(0x363)]['set'](_0x323fa0,_0x591a9d),this[_0x186893(0x3dc)]();}[_0x2908d8(0x1b8)](_0x12a612,_0x33371c){const _0x3e4325=_0x2908d8;this[_0x3e4325(0x40f)]['set'](_0x12a612,_0x33371c),this[_0x3e4325(0x3dc)]();}[_0x2908d8(0x1a2)](_0x2f9a24,_0x47d079){const _0x41ad85=_0x2908d8,_0x1c5ed5=[];let _0x492f45=_0x47d079,_0x4cb7e1=_0x47d079;for(let _0x11009d=_0x2f9a24[_0x41ad85(0x478)]-0x1;_0x11009d>=0x0;_0x11009d--){const {unitID:_0x2b9f44,undoMutations:_0x5d43b3,redoMutations:_0x3838a6}=_0x2f9a24[_0x11009d],_0x2799e2=this[_0x41ad85(0x389)]['transformMutationsWithChangeset'](_0x492f45,_0x5d43b3),_0x5c171a=this['_transformService'][_0x41ad85(0x27e)](_0x4cb7e1,_0x3838a6);if(_0x2ba11f(_0x2799e2)||_0x2ba11f(_0x5c171a)){this[_0x41ad85(0x49c)][_0x41ad85(0x2f3)](_0x41ad85(0x1f7),_0x41ad85(0x21b),_0x2799e2,_0x5c171a);break;}_0x492f45=_0x2799e2[_0x41ad85(0x483)],_0x4cb7e1=_0x5c171a['c1Prime'],_0x1c5ed5['push']({'unitID':_0x2b9f44,'undoMutations':_0x2799e2['m2Prime'],'redoMutations':_0x5c171a[_0x41ad85(0x447)]});}return _0x1c5ed5[_0x41ad85(0x44c)]();}};Pt=Eo([De(0x0,_0x52e604),De(0x1,_0x2bd668),De(0x2,_0x4c4187),De(0x3,_0x35595c),De(0x4,_0x38155a)],Pt);class Co extends _0x5afe1b{constructor(){const _0x25e263=_0x2908d8;super(),l(this,_0x25e263(0x28b)),this[_0x25e263(0x28b)]=_0x3c1931(window,_0x25e263(0x45a))['pipe'](_0x4f72a2(this[_0x25e263(0x2ba)]),_0x2e7acf(0x1),_0x57ea85(void 0x0));}[_0x2908d8(0x256)](_0x238095,_0x241357,_0x7849ac=!0x1){const _0x292ed6=_0x2908d8,_0xe09924=new URL(window[_0x292ed6(0x21e)][_0x292ed6(0x2d8)]);_0xe09924[_0x292ed6(0x343)][_0x292ed6(0x255)](_0x238095,_0x241357),_0x7849ac?window['history']['replaceState']('','',_0xe09924[_0x292ed6(0x2a4)]()):window['history'][_0x292ed6(0x1e8)]('','',_0xe09924['toString']());}[_0x2908d8(0x18e)](_0x4eaf94,_0x1d3603=!0x1){const _0x2c2f42=_0x2908d8,_0x4cba63=new URL(window['location'][_0x2c2f42(0x2d8)]);_0x4cba63[_0x2c2f42(0x343)][_0x2c2f42(0x34a)](_0x4eaf94),_0x1d3603?window[_0x2c2f42(0x2ee)][_0x2c2f42(0x1e0)]('','',_0x4cba63[_0x2c2f42(0x2a4)]()):window['history'][_0x2c2f42(0x1e8)]('','',_0x4cba63[_0x2c2f42(0x2a4)]());}['getParam'](_0x1095ab){const _0x4970c8=_0x2908d8;var _0x5d857f;return(_0x5d857f=new URL(window[_0x4970c8(0x21e)][_0x4970c8(0x2d8)])[_0x4970c8(0x343)][_0x4970c8(0x479)](_0x1095ab))!=null?_0x5d857f:void 0x0;}}const mt='collab-text-anchor-',bo=_0x2908d8(0x15e),To=_0x2908d8(0x446),we=0x6,Ro=1.5,ft=0x4,Oo=1.5,Do=_0x2908d8(0x38a);class ms{constructor(_0x2cae14,_0x5811ef,_0x246eb6,_0x3340ff){const _0x2f0d71=_0x2908d8;l(this,_0x2f0d71(0x49e),[]),l(this,_0x2f0d71(0x1ab),null),l(this,'_textBubble',null),l(this,'_anchorDot',null),l(this,_0x2f0d71(0x35c),null),l(this,_0x2f0d71(0x188),null),(this[_0x2f0d71(0x2cb)]=_0x2cae14,this[_0x2f0d71(0x41c)]=_0x5811ef,this[_0x2f0d71(0x38b)]=_0x246eb6,this[_0x2f0d71(0x247)]=_0x3340ff,this[_0x2f0d71(0x3df)]());}set[_0x2908d8(0x2f0)](_0xeba352){const _0x35fb00=_0x2908d8;_0xeba352?(this[_0x35fb00(0x14d)]&&this['_anchorDot'][_0x35fb00(0x39f)](),this['_textBubble']&&this['_textBubble']['show']()):(this[_0x35fb00(0x14d)]&&this['_anchorDot'][_0x35fb00(0x24e)](),this[_0x35fb00(0x359)]&&this[_0x35fb00(0x359)][_0x35fb00(0x39f)]());}['dispose'](){const _0x223431=_0x2908d8;for(const _0xd563fa of this[_0x223431(0x49e)])_0xd563fa['dispose']();this['_textBubble']&&this[_0x223431(0x359)][_0x223431(0x1bf)](),this[_0x223431(0x14d)]&&this[_0x223431(0x14d)]['dispose'](),this[_0x223431(0x1ab)]&&this[_0x223431(0x1ab)][_0x223431(0x1bf)](),this['_eventUnsubscribe']&&this[_0x223431(0x188)]();}[_0x2908d8(0x3df)](){const _0x571048=_0x2908d8;var _0x233f46;const {_docSkeleton:_0x2d62fe,_document:_0x39ec0f}=this,{color:_0xec6fd0,name:_0x86d348,ranges:_0x49c72d}=this[_0x571048(0x2cb)],_0x61e39a=_0x39ec0f[_0x571048(0x1aa)](),{docsLeft:_0x33884b,docsTop:_0x29076e}=_0x61e39a,_0x57e4cc=new _0x669d7e(_0x61e39a,_0x2d62fe);for(const {startOffset:_0x4969ba,endOffset:_0x364785,collapsed:_0x4860fd,isActive:_0x17c465}of _0x49c72d){const _0x2c615a=_0x2d62fe['findNodePositionByCharIndex'](_0x4969ba),_0x56ac6f=_0x2d62fe[_0x571048(0x139)](_0x364785);if(_0x17c465){const {contentBoxPointGroup:_0x2b26dc}=_0x57e4cc['getRangePointData'](_0x56ac6f,_0x56ac6f);if(_0x2b26dc[_0x571048(0x478)]===0x0)continue;this[_0x571048(0x44f)](_0xec6fd0,_0x2b26dc,_0x33884b,_0x29076e,_0x86d348),this[_0x571048(0x188)]=this['_handleHover']();}if(!_0x4860fd&&_0x2c615a&&_0x56ac6f){if(_0x4a103f(_0x2c615a,_0x56ac6f)){const _0x417cb3=new _0x38e8fb(_0x61e39a,_0x2d62fe),{pointGroup:_0x34cb5f}=(_0x233f46=_0x417cb3[_0x571048(0x3f2)](_0x2c615a,_0x56ac6f))!=null?_0x233f46:{};if(_0x34cb5f==null||_0x34cb5f[_0x571048(0x478)]===0x0)continue;this[_0x571048(0x147)](_0xec6fd0,_0x34cb5f,_0x33884b,_0x29076e);}else{const {contentBoxPointGroup:_0x2fc085}=_0x57e4cc[_0x571048(0x3f2)](_0x2c615a,_0x56ac6f);if(_0x2fc085[_0x571048(0x478)]===0x0)continue;this[_0x571048(0x314)](_0xec6fd0,_0x2fc085,_0x33884b,_0x29076e);}}}}[_0x2908d8(0x44f)](_0x30f1f3,_0x2f959a,_0x50038c,_0x2360e8,_0x153e51){const _0x4c47a4=_0x2908d8,_0x310426=this[_0x4c47a4(0x1fb)](_0x2f959a),{left:_0x3d6146,top:_0x71d5e4,height:_0x238019}=_0x310426,_0x16ebf2=this[_0x4c47a4(0x274)](),_0x55aea0=Oo/_0x16ebf2,_0x122b98=new _0x45456d(mt+_0x34c7a8[_0x4c47a4(0x242)](we),{'left':_0x3d6146+_0x50038c-_0x55aea0,'top':_0x71d5e4+_0x2360e8,'height':_0x238019,'width':Ro,'fill':_0x30f1f3||_0x14448f(_0xbb5a24[_0x4c47a4(0x252)],0x0),'strokeWidth':_0x55aea0,'stroke':Do,'evented':!0x0});this[_0x4c47a4(0x1ab)]=_0x122b98,this[_0x4c47a4(0x41c)]['addObject'](_0x122b98,_0x235d07);const _0x22ce21=new _0x45456d(mt+_0x34c7a8[_0x4c47a4(0x242)](we),{'left':_0x3d6146+_0x50038c-_0x55aea0,'top':_0x71d5e4+_0x2360e8-ft/0x2,'height':ft,'width':ft,'fill':_0x30f1f3||_0x14448f(_0xbb5a24['black'],0x0),'strokeWidth':0x0,'stroke':_0x30f1f3||_0x14448f(_0xbb5a24[_0x4c47a4(0x252)],0x0),'evented':!0x1});this['_anchorDot']=_0x22ce21,this[_0x4c47a4(0x41c)]['addObject'](_0x22ce21,_0x235d07);const _0x1494a2=new nt(mt+_0x34c7a8['generateRandomId'](we),{'left':_0x3d6146+_0x50038c-_0x55aea0,'top':_0x71d5e4+_0x2360e8-Ue,'text':_0x153e51,'color':_0x30f1f3});this[_0x4c47a4(0x359)]=_0x1494a2,this['_scene'][_0x4c47a4(0x42b)](_0x1494a2,_0x235d07),this[_0x4c47a4(0x2f0)]=!0x1;}[_0x2908d8(0x435)](){const _0x5191fa=_0x2908d8,_0x2345c9=this[_0x5191fa(0x1ab)][_0x5191fa(0x438)][_0x5191fa(0x390)](()=>{const _0x2bc1a8=_0x5191fa;this[_0x2bc1a8(0x2f0)]=!0x0;}),_0x114a44=this[_0x5191fa(0x1ab)]['onPointerLeave$'][_0x5191fa(0x390)](()=>{const _0x3c5afa=_0x5191fa;this[_0x3c5afa(0x35c)]&&clearTimeout(this[_0x3c5afa(0x35c)]),this['_hideTimer']=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x3eb18f=_0x5191fa;_0x2345c9[_0x3eb18f(0x18a)](),_0x114a44[_0x3eb18f(0x18a)]();};}['_drawTextRange'](_0xd32926,_0x5c328f,_0x1f140a,_0x459dd9){const _0x4880bb=_0x2908d8,_0x5dca37=new _0x467b1f(_0xd32926)[_0x4880bb(0x141)](0.2)[_0x4880bb(0x419)](),_0x53168b=new _0x1a1e3b(bo+_0x34c7a8[_0x4880bb(0x242)](we),{'pointsGroup':_0x5c328f,'fill':_0x5dca37||_0x14448f(_0xbb5a24[_0x4880bb(0x252)],0.2),'left':_0x1f140a,'top':_0x459dd9,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4880bb(0x49e)][_0x4880bb(0x349)](_0x53168b),this['_scene']['addObject'](_0x53168b,_0x235d07);}[_0x2908d8(0x147)](_0x2b9d4c,_0x3f88c0,_0x59eef9,_0x359889){const _0x162ac2=_0x2908d8,_0x3cc03d=new _0x467b1f(_0x2b9d4c)[_0x162ac2(0x141)](0.2)[_0x162ac2(0x419)](),_0x1a7430=new _0x1a1e3b(To+_0x34c7a8[_0x162ac2(0x242)](we),{'pointsGroup':_0x3f88c0,'fill':_0x3cc03d||_0x14448f(_0xbb5a24['black'],0.2),'left':_0x59eef9,'top':_0x359889,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x1a7430),this['_scene'][_0x162ac2(0x42b)](_0x1a7430,_0x235d07);}[_0x2908d8(0x1fb)](_0x140f37){const _0x574426=_0x140f37[0x0],_0x48b77d=_0x574426[0x0],_0x22cbe9=_0x574426[0x2],{x:_0x4c7aa7,y:_0x333311}=_0x48b77d,{x:_0x3816a9,y:_0x46d8a6}=_0x22cbe9;return{'left':_0x4c7aa7,'top':_0x333311,'width':_0x3816a9-_0x4c7aa7,'height':_0x46d8a6-_0x333311};}[_0x2908d8(0x274)](){const _0x3efb2c=_0x2908d8,{scaleX:_0x56bf09,scaleY:_0x5b8f4c}=this[_0x3efb2c(0x41c)]['getAncestorScale']();return Math[_0x3efb2c(0x33b)](_0x56bf09,_0x5b8f4c);}}var wo=Object[_0x2908d8(0x1f6)],Po=Object[_0x2908d8(0x17b)],No=(_0x35e3a3,_0x28d1b6,_0x479596,_0x2ac68a)=>{const _0x1e7ec4=_0x2908d8;for(var _0x497aff=_0x2ac68a>0x1?void 0x0:_0x2ac68a?Po(_0x28d1b6,_0x479596):_0x28d1b6,_0x805e10=_0x35e3a3[_0x1e7ec4(0x478)]-0x1,_0xc05b61;_0x805e10>=0x0;_0x805e10--)(_0xc05b61=_0x35e3a3[_0x805e10])&&(_0x497aff=(_0x2ac68a?_0xc05b61(_0x28d1b6,_0x479596,_0x497aff):_0xc05b61(_0x497aff))||_0x497aff);return _0x2ac68a&&_0x497aff&&wo(_0x28d1b6,_0x479596,_0x497aff),_0x497aff;},Ve=(_0x291a23,_0x3e9494)=>(_0x223bea,_0x3906a8)=>_0x3e9494(_0x223bea,_0x3906a8,_0x291a23);let Ye=class extends _0x5afe1b{constructor(_0x25d8a3,_0x18fa67,_0xa74af5,_0x54326c,_0x956b0b){const _0x36199e=_0x2908d8;super(),l(this,_0x36199e(0x1f2),[]),l(this,_0x36199e(0x304),[]),(this['_context']=_0x25d8a3,this[_0x36199e(0x421)]=_0x18fa67,this[_0x36199e(0x1c7)]=_0xa74af5,this['_commandService']=_0x54326c,this[_0x36199e(0x3f7)]=_0x956b0b,this[_0x36199e(0x2c3)]());}[_0x2908d8(0x2c3)](){const _0x144814=_0x2908d8,_0x333c32=this[_0x144814(0x258)][_0x144814(0x498)],_0x1793fc=this[_0x144814(0x421)];this[_0x144814(0x206)](_0x26b443([this['_collabCursorController'][_0x144814(0x44e)](_0x333c32),this[_0x144814(0x3f7)][_0x144814(0x2a2)]])[_0x144814(0x490)](_0x391b01(([_0x279ba6,_0x51b3fe])=>({'skeleton':_0x1793fc[_0x144814(0x36a)](),'cursors':[..._0x279ba6[_0x144814(0x3ca)]()][_0x144814(0x1d4)](_0x495707=>({..._0x495707,'color':_0x51b3fe[_0x495707['color']]}))})))[_0x144814(0x298)](_0x499256=>{const _0x5cd9f6=_0x144814;if(this['_removeCollabCursors'](),_0x499256){const {skeleton:_0x36700d,cursors:_0x29d3e6}=_0x499256;this[_0x5cd9f6(0x263)](_0x36700d,_0x29d3e6);}})),this[_0x144814(0x420)](),this[_0x144814(0x1be)]();}[_0x2908d8(0x263)](_0x5a2708,_0x223a64){const _0x3c2ca7=_0x2908d8,{scene:_0x42735a,mainComponent:_0x5eb75c}=this[_0x3c2ca7(0x258)],_0x491294=_0x223a64[_0x3c2ca7(0x267)](_0x2b1d63=>new ms(_0x2b1d63,_0x42735a,_0x5a2708,_0x5eb75c));this[_0x3c2ca7(0x1f2)]=_0x491294,this['_cursors']=_0x223a64;}[_0x2908d8(0x260)](){const _0x327f22=_0x2908d8;this['_removeCollabCursors']();const {scene:_0x569cf0,mainComponent:_0xd71be}=this[_0x327f22(0x258)],_0x435edd=this[_0x327f22(0x421)]['getSkeleton'](),_0x30f8b6=this[_0x327f22(0x304)][_0x327f22(0x267)](_0x1a69e5=>new ms(_0x1a69e5,_0x569cf0,_0x435edd,_0xd71be));this[_0x327f22(0x1f2)]=_0x30f8b6;}[_0x2908d8(0x330)](){const _0x68678a=_0x2908d8;this[_0x68678a(0x1f2)][_0x68678a(0x212)](_0x4b6353=>_0x4b6353['dispose']()),this['_cursorShapes']=[];}['_initCommandExecutedListener'](){const _0x19a20b=_0x2908d8,_0xaf0597=[_0x585b41['id']];this['disposeWithMe'](this[_0x19a20b(0x3fd)]['onCommandExecuted'](_0x19d803=>{const _0x8e7310=_0x19a20b;_0xaf0597[_0x8e7310(0x1dc)](_0x19d803['id'])&&_0x19d803[_0x8e7310(0x455)]['unitId']===this['_context']['unitId']&&this[_0x8e7310(0x260)]();}));}[_0x2908d8(0x420)](){const _0x3cfd54=_0x2908d8;this[_0x3cfd54(0x206)](_0x536195(this['_context'][_0x3cfd54(0x340)][_0x3cfd54(0x257)])[_0x3cfd54(0x490)](_0x51803d(_0x380553=>_0x380553[_0x3cfd54(0x161)]===_0x4f4c39[_0x3cfd54(0x192)]),_0x5aa88d(0x10))['subscribe'](()=>{this['_refreshCollabCursors']();}));}};Ye=No([_0x1e52da(_0x3ebf67[_0x2908d8(0x302)],Ye),Ve(0x1,_0x573d4d(_0x40db62)),Ve(0x2,_0x573d4d(fe)),Ve(0x3,_0x2bd668),Ve(0x4,_0x573d4d(_0x1e29a1))],Ye);var yo=Object[_0x2908d8(0x1f6)],Mo=Object[_0x2908d8(0x17b)],Ao=(_0x28e033,_0x43a2f5,_0x163e9c,_0x4c96a3)=>{for(var _0x1267fa=_0x4c96a3>0x1?void 0x0:_0x4c96a3?Mo(_0x43a2f5,_0x163e9c):_0x43a2f5,_0x21ffd0=_0x28e033['length']-0x1,_0x3e449e;_0x21ffd0>=0x0;_0x21ffd0--)(_0x3e449e=_0x28e033[_0x21ffd0])&&(_0x1267fa=(_0x4c96a3?_0x3e449e(_0x43a2f5,_0x163e9c,_0x1267fa):_0x3e449e(_0x1267fa))||_0x1267fa);return _0x4c96a3&&_0x1267fa&&yo(_0x43a2f5,_0x163e9c,_0x1267fa),_0x1267fa;},gt=(_0x156e3c,_0x1c02e9)=>(_0x1c0a75,_0x3fc518)=>_0x1c02e9(_0x1c0a75,_0x3fc518,_0x156e3c);let st=class{constructor(_0x271747,_0x5a4d30,_0x513dfe){const _0x4423fc=_0x2908d8;this[_0x4423fc(0x168)]=_0x271747,this['_httpService']=_0x5a4d30,this['localeService']=_0x513dfe,this['init']();}[_0x2908d8(0x392)](){const _0xaafef0=_0x2908d8;this['_httpService']['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x567e4f,_0xfa3892)=>_0xfa3892(_0x567e4f)[_0xaafef0(0x490)](_0x4586fc(async _0x47aca7=>{const _0x5bd9a=_0xaafef0,_0x5f449a=_0x47aca7;if(_0x5f449a[_0x5bd9a(0x32b)]===0x191&&window[_0x5bd9a(0x241)](this[_0x5bd9a(0x218)]['t'](_0x5bd9a(0x405)))){const _0x5577c1=window['encodeURIComponent'](window[_0x5bd9a(0x21e)]['href']);window[_0x5bd9a(0x21e)]['href']=this[_0x5bd9a(0x222)]()+_0x5bd9a(0x308)+_0x5577c1;}return _0x5f449a;}))});}[_0x2908d8(0x222)](){const _0x32acfd=_0x2908d8;var _0x1429f3;return(_0x1429f3=this[_0x32acfd(0x168)][_0x32acfd(0x157)](Pn))!=null?_0x1429f3:Nn;}};st=Ao([gt(0x0,_0x3abdb4),gt(0x1,_0x573d4d(_0x2d51dc)),gt(0x2,_0x573d4d(_0x5071b4))],st);var Uo=Object[_0x2908d8(0x1f6)],Lo=Object['getOwnPropertyDescriptor'],$o=(_0x5214b8,_0x1b2e26,_0x117fa5,_0x592bef)=>{for(var _0x47f6ae=_0x592bef>0x1?void 0x0:_0x592bef?Lo(_0x1b2e26,_0x117fa5):_0x1b2e26,_0xd1882e=_0x5214b8['length']-0x1,_0x2afa69;_0xd1882e>=0x0;_0xd1882e--)(_0x2afa69=_0x5214b8[_0xd1882e])&&(_0x47f6ae=(_0x592bef?_0x2afa69(_0x1b2e26,_0x117fa5,_0x47f6ae):_0x2afa69(_0x47f6ae))||_0x47f6ae);return _0x592bef&&_0x47f6ae&&Uo(_0x1b2e26,_0x117fa5,_0x47f6ae),_0x47f6ae;},fs=(_0x56540b,_0x3fdabe)=>(_0x20e237,_0x161945)=>_0x3fdabe(_0x20e237,_0x161945,_0x56540b);const jo=_0x2908d8(0x30c),xo=_0x2908d8(0x213);let Nt=class extends _0x5d8459{constructor(_0x198449,_0x4a6d4f){const _0x54e2d3=_0x2908d8;super(),this['_HTTPService']=_0x198449,this[_0x54e2d3(0x168)]=_0x4a6d4f,this[_0x54e2d3(0x184)]();}[_0x2908d8(0x184)](){const _0x1ec256=_0x2908d8,_0xe4e9bd=this;this['disposeWithMe'](this[_0x1ec256(0x47d)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':_0x42b29c({'isMatch'(_0x5005ed){const _0x54f651=_0x1ec256;var _0x4bdfb1;if(_0x5005ed[_0x54f651(0x259)]===_0x54f651(0x149)&&((_0x4bdfb1=_0x5005ed['requestParams'])!=null&&_0x4bdfb1[_0x54f651(0x22f)])){const {objectID:_0x52e811,objectType:_0x13541e}=_0x5005ed[_0x54f651(0x25f)][_0x54f651(0x22f)]||{};if(!_0x52e811||_0x13541e===void 0x0)return!0x1;const _0x4a142f=_0xe4e9bd[_0x54f651(0x3ad)]()+'/'+_0x13541e+'/object/'+_0x52e811+_0x54f651(0x2e3);if(_0x5005ed[_0x54f651(0x2db)]===_0x4a142f)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x4580ce){const _0x277033=_0x1ec256;var _0x4ec22a;return(_0x4ec22a=_0x4580ce['requestParams'])==null?void 0x0:_0x4ec22a[_0x277033(0x22f)];},'mergeParamsToRequest'(_0x4652b2,_0x319e11){const _0x235a24=_0x1ec256,_0x41601e=_0xe4e9bd[_0x235a24(0x3ad)]()+_0x235a24(0x15f),_0x56682c=_0x4652b2[_0x235a24(0x14c)]((_0x28ef01,_0x36d2c4)=>{const _0x41078d=_0x235a24,{unitID:_0xa8254,objectID:_0x2499c7,objectType:_0xe034a2,actions:_0x11d6f5}=_0x36d2c4;return _0x28ef01[_0xa8254]||(_0x28ef01[_0xa8254]={}),_0x28ef01[_0xa8254][_0x2499c7]||(_0x28ef01[_0xa8254][_0x2499c7]={'objectID':_0x2499c7,'objectType':_0xe034a2,'actions':[]}),_0x28ef01[_0xa8254][_0x2499c7][_0x41078d(0x3ff)][_0x41078d(0x349)](..._0x11d6f5),_0x28ef01;},{}),_0x5c3087=[];for(const _0x5eaa2e in _0x56682c)for(const _0x2b8677 in _0x56682c[_0x5eaa2e]){const {actions:_0x24c96e,objectType:_0x2ccc88}=_0x56682c[_0x5eaa2e][_0x2b8677],_0x2da619=[...new Set(_0x24c96e)];_0x5c3087['push']({'unitID':_0x5eaa2e,'objectID':_0x2b8677,'objectType':_0x2ccc88,'actions':_0x2da619});}return new _0xaea16d(_0x235a24(0x149),_0x41601e,{'headers':_0x319e11['headers'],'withCredentials':_0x319e11['withCredentials'],'responseType':_0x319e11[_0x235a24(0x3bf)],'body':{'requests':_0x5c3087}});}},{'distributeResult'(_0x27da48,_0x4f2149){const {objectActions:_0x42a155}=_0x27da48;return _0x4f2149['map'](_0x3b4b86=>{const _0x199604=_0x1140,{unitID:_0x45c0e4,objectID:_0xa63c1c,actions:_0x26634a}=_0x3b4b86,_0x4a5b4f=_0x42a155[_0x199604(0x48f)](_0x5355fb=>_0x5355fb[_0x199604(0x1ae)]===_0x45c0e4&&_0x5355fb[_0x199604(0x24b)]===_0xa63c1c),_0x1750e1=_0x26634a['map'](_0x1aac53=>_0x4a5b4f==null?void 0x0:_0x4a5b4f[_0x199604(0x3ff)][_0x199604(0x48f)](_0x365687=>_0x365687['action']===_0x1aac53))[_0x199604(0x2cc)](_0x50dfcd=>!!_0x50dfcd);return{'config':_0x3b4b86,'result':{'actions':_0x1750e1,'error':_0x27da48['error']}};});}})}));}[_0x2908d8(0x3ad)](){const _0x3e6e33=_0x2908d8;var _0xab595e;return(_0xab595e=this[_0x3e6e33(0x168)]['getConfig'](jo))!=null?_0xab595e:xo;}async[_0x2908d8(0x47c)](_0x590db8){const _0x2da96b=_0x2908d8,_0x2fc809=this[_0x2da96b(0x3ad)]()+'/'+_0x590db8[_0x2da96b(0x3f6)]+_0x2da96b(0x235);return(await this[_0x2da96b(0x47d)]['post'](_0x2fc809,{'body':_0x590db8}))[_0x2da96b(0x22f)]['objectID']||'';}async[_0x2908d8(0x21a)](_0x1aacf8){const _0x365814=_0x2908d8,_0x295915=this[_0x365814(0x3ad)]()+_0x365814(0x1b1);return(await this[_0x365814(0x47d)][_0x365814(0x2c7)](_0x295915,{'body':_0x1aacf8}))['body'][_0x365814(0x326)];}async['update'](_0x87cdc4){const _0x4cdad1=_0x2908d8,_0x4c6d6c=this[_0x4cdad1(0x3ad)]()+'/'+_0x87cdc4[_0x4cdad1(0x3f6)]+'/object/'+_0x87cdc4[_0x4cdad1(0x24b)];await this['_HTTPService'][_0x4cdad1(0x311)](_0x4c6d6c,{'body':_0x87cdc4});}async['allowed'](_0x5c613c){const _0x1a8895=_0x2908d8,_0x489fb6=this[_0x1a8895(0x3ad)]()+'/'+_0x5c613c[_0x1a8895(0x3f6)]+_0x1a8895(0x313)+_0x5c613c['objectID']+_0x1a8895(0x2e3);return(await this[_0x1a8895(0x47d)][_0x1a8895(0x2c7)](_0x489fb6,{'body':_0x5c613c}))[_0x1a8895(0x22f)][_0x1a8895(0x3ff)];}async[_0x2908d8(0x337)](_0x2dca76){const _0xf3c7bd=_0x2908d8,_0x5ba22b=this[_0xf3c7bd(0x3ad)]()+'/-/object/-/batch_allowed';return(await this[_0xf3c7bd(0x47d)]['post'](_0x5ba22b,{'body':{'requests':_0x2dca76}}))[_0xf3c7bd(0x22f)][_0xf3c7bd(0x424)];}async[_0x2908d8(0x34e)](_0x887912){const _0x8aa550=_0x2908d8,_0x4b02ea=this[_0x8aa550(0x3ad)]()+'/'+_0x887912[_0x8aa550(0x3f6)]+_0x8aa550(0x30d),_0x111a1a=await this[_0x8aa550(0x47d)][_0x8aa550(0x2c7)](_0x4b02ea,{'body':_0x887912});return{'roles':_0x111a1a[_0x8aa550(0x22f)]['roles'],'actions':_0x111a1a[_0x8aa550(0x22f)]['actions']};}async['deleteCollaborator'](_0x42d76b){const _0x54f1fa=_0x2908d8,_0x22269e=this[_0x54f1fa(0x3ad)]()+_0x54f1fa(0x24d);await this[_0x54f1fa(0x47d)][_0x54f1fa(0x34a)](_0x22269e,{'params':{'collaboratorID':_0x42d76b[_0x54f1fa(0x358)],'objectID':_0x42d76b[_0x54f1fa(0x24b)],'unitID':_0x42d76b[_0x54f1fa(0x1ae)]}});}async[_0x2908d8(0x2cf)](_0x134a3b){const _0x81136=_0x2908d8,_0x4cb811=this[_0x81136(0x3ad)]()+'/collaborator';await this['_HTTPService']['patch'](_0x4cb811,{'body':_0x134a3b});}async[_0x2908d8(0x228)](_0x14e8bb){const _0x2737f0=_0x2908d8,_0x39a9ba=this[_0x2737f0(0x3ad)]()+_0x2737f0(0x24d);await this[_0x2737f0(0x47d)]['post'](_0x39a9ba,{'body':_0x14e8bb});}async[_0x2908d8(0x1ad)](_0x53d825){const _0xa9e5c8=_0x2908d8,_0x233293=this['_getAPIPrefixPath']()+_0xa9e5c8(0x24d);return(await this['_HTTPService']['get'](_0x233293,{'params':{'objectID':_0x53d825[_0xa9e5c8(0x24b)],'unitID':_0x53d825[_0xa9e5c8(0x1ae)]}}))[_0xa9e5c8(0x22f)][_0xa9e5c8(0x2dc)];}async[_0x2908d8(0x2c9)](_0x12b82a){const _0x41ccb7=_0x2908d8,_0x116830=this[_0x41ccb7(0x3ad)]()+_0x41ccb7(0x24d);await this[_0x41ccb7(0x47d)][_0x41ccb7(0x311)](_0x116830,{'body':_0x12b82a});}};Nt=$o([fs(0x0,_0x573d4d(_0x2d51dc)),fs(0x1,_0x573d4d(_0x3abdb4))],Nt);var Ho=Object['defineProperty'],ko=Object[_0x2908d8(0x17b)],Vo=(_0x3ce9b3,_0x2eb6e4,_0x436221,_0x20248a)=>{for(var _0x492145=_0x20248a>0x1?void 0x0:_0x20248a?ko(_0x2eb6e4,_0x436221):_0x2eb6e4,_0x2b6fe5=_0x3ce9b3['length']-0x1,_0x89b4c8;_0x2b6fe5>=0x0;_0x2b6fe5--)(_0x89b4c8=_0x3ce9b3[_0x2b6fe5])&&(_0x492145=(_0x20248a?_0x89b4c8(_0x2eb6e4,_0x436221,_0x492145):_0x89b4c8(_0x492145))||_0x492145);return _0x20248a&&_0x492145&&Ho(_0x2eb6e4,_0x436221,_0x492145),_0x492145;},St=(_0x398bff,_0xd84c0b)=>(_0x4ffb4e,_0x4dcde8)=>_0xd84c0b(_0x4ffb4e,_0x4dcde8,_0x398bff);const Bo=['image/png',_0x2908d8(0x366),_0x2908d8(0x351),_0x2908d8(0x41b),_0x2908d8(0x185)],Fo=0x5*0x400*0x400,Wo=_0x2908d8(0x46b),Go='/universer-api/stream/file/upload',Yo='EXCHANGE_SIGN_URL_SERVER_URL_KEY',Ko=_0x2908d8(0x172);let yt=class{constructor(_0x1fa2cd,_0x2e269e,_0x3f5e58){const _0x87a791=_0x2908d8;l(this,_0x87a791(0x214),0x0),l(this,_0x87a791(0x489),new _0x59e98b()),l(this,_0x87a791(0x1b7),this[_0x87a791(0x489)]),l(this,_0x87a791(0x409),new Map()),(this[_0x87a791(0x22e)]=_0x1fa2cd,this[_0x87a791(0x168)]=_0x2e269e,this['_univerInstanceService']=_0x3f5e58);}['setWaitCount'](_0x189f79){const _0x410de2=_0x2908d8;this['_waitCount']=_0x189f79,this[_0x410de2(0x489)][_0x410de2(0x151)](_0x189f79);}['getImageSourceCache'](_0x592343,_0x1d2efd){const _0xc7e28a=_0x2908d8;if(_0x1d2efd===_0x6f3cfe['BASE64']){const _0x266137=new Image();return _0x266137[_0xc7e28a(0x2e7)]=_0x592343,_0x266137;}return this[_0xc7e28a(0x409)][_0xc7e28a(0x479)](_0x592343);}[_0x2908d8(0x233)](_0x372cc9,_0x2c07d9,_0x485335){const _0x4f4d2b=_0x2908d8;_0x2c07d9===_0x6f3cfe[_0x4f4d2b(0x35f)]||_0x485335==null||this[_0x4f4d2b(0x409)][_0x4f4d2b(0x255)](_0x372cc9,_0x485335);}async[_0x2908d8(0x35b)](_0x4d5514){const _0x17e1e5=_0x2908d8;try{const _0x15d4a4=this[_0x17e1e5(0x353)](this[_0x17e1e5(0x433)](),''+_0x4d5514),_0x2dd686=(await this[_0x17e1e5(0x22e)]['get'](_0x15d4a4))[_0x17e1e5(0x22f)];return _0x2dd686[_0x17e1e5(0x2f3)]&&_0x2dd686[_0x17e1e5(0x2f3)][_0x17e1e5(0x1ed)]===Ms['OK']?Promise['resolve'](_0x2dd686[_0x17e1e5(0x2db)]):Promise[_0x17e1e5(0x48e)](_0x2dd686[_0x17e1e5(0x2f3)]);}catch(_0x113f81){return Promise[_0x17e1e5(0x48e)](_0x113f81);}}async[_0x2908d8(0x17a)](_0x49b7d8){const _0x28a75e=_0x2908d8;let _0x2fab5b='';if(!Bo[_0x28a75e(0x1dc)](_0x49b7d8[_0x28a75e(0x161)]))return this[_0x28a75e(0x3d7)](),Promise[_0x28a75e(0x48e)](new Error(_0x12359d[_0x28a75e(0x476)]));if(_0x49b7d8[_0x28a75e(0x134)]>Fo)return this[_0x28a75e(0x3d7)](),Promise['reject'](new Error(_0x12359d[_0x28a75e(0x332)]));try{const _0x23060e=new FormData();_0x23060e['append'](_0x28a75e(0x380),_0x49b7d8);const _0x79ae46=this[_0x28a75e(0x2c2)][_0x28a75e(0x39a)](),_0x436211=_0x79ae46==null?void 0x0:_0x79ae46[_0x28a75e(0x18b)]();if(!_0x436211)throw new Error(_0x28a75e(0x3bd));const _0x2ae3eb=this['_getUploadFileURL']()+'?size='+_0x49b7d8[_0x28a75e(0x134)][_0x28a75e(0x2a4)]()+_0x28a75e(0x27c)+As[_0x28a75e(0x283)]+_0x28a75e(0x2d5)+encodeURIComponent(_0x436211),_0x250df0=await(await fetch(_0x2ae3eb,{'method':_0x28a75e(0x149),'body':_0x23060e}))[_0x28a75e(0x19b)]();if(typeof _0x250df0['FileId']!=_0x28a75e(0x301))return this[_0x28a75e(0x3d7)](),Promise[_0x28a75e(0x48e)](new Error(_0x12359d[_0x28a75e(0x3db)]));_0x2fab5b=_0x250df0[_0x28a75e(0x3ce)];}catch{return this[_0x28a75e(0x3d7)](),Promise[_0x28a75e(0x48e)](new Error(_0x12359d[_0x28a75e(0x3db)]));}return new Promise((_0x56c199,_0x25568c)=>{const _0x280a2e=_0x28a75e,_0x782963=new FileReader();_0x782963[_0x280a2e(0x24f)](_0x49b7d8),_0x782963[_0x280a2e(0x1b3)]=_0x19c7c8=>{const _0x4b5765=_0x280a2e;var _0x22e79b;const _0x28850e=(_0x22e79b=_0x19c7c8['target'])==null?void 0x0:_0x22e79b['result'];if(_0x28850e==null){this[_0x4b5765(0x3d7)](),_0x25568c(new Error(_0x12359d[_0x4b5765(0x3db)]));return;}const _0x388af4=_0x34c7a8['generateRandomId'](0x6);_0x56c199({'imageId':_0x388af4,'imageSourceType':_0x6f3cfe[_0x4b5765(0x199)],'source':_0x2fab5b,'base64Cache':_0x28850e,'status':_0x12359d[_0x4b5765(0x31a)]}),this[_0x4b5765(0x3d7)]();};});}[_0x2908d8(0x320)](){const _0x364954=_0x2908d8;var _0x14e0ad;return(_0x14e0ad=this[_0x364954(0x168)][_0x364954(0x157)](Wo))!=null?_0x14e0ad:Go;}[_0x2908d8(0x433)](){const _0x222492=_0x2908d8;var _0xc8d803;return(_0xc8d803=this['_configService'][_0x222492(0x157)](Yo))!=null?_0xc8d803:Ko;}[_0x2908d8(0x353)](_0x287c72,_0x4d5f22){const _0x403699=_0x2908d8;return _0x287c72[_0x403699(0x327)](_0x403699(0x173),_0x4d5f22);}[_0x2908d8(0x3d7)](){const _0x543904=_0x2908d8;this[_0x543904(0x214)]-=0x1,this[_0x543904(0x489)][_0x543904(0x151)](this[_0x543904(0x214)]);}};yt=Vo([St(0x0,_0x573d4d(_0x2d51dc)),St(0x1,_0x3abdb4),St(0x2,_0x573d4d(_0x52e604))],yt);var Xo=Object[_0x2908d8(0x1f6)],Jo=Object[_0x2908d8(0x17b)],zo=(_0x39bbe2,_0x4846fa,_0x3821e9,_0x44be66)=>{for(var _0x1dab80=_0x44be66>0x1?void 0x0:_0x44be66?Jo(_0x4846fa,_0x3821e9):_0x4846fa,_0x292bf3=_0x39bbe2['length']-0x1,_0x49aa81;_0x292bf3>=0x0;_0x292bf3--)(_0x49aa81=_0x39bbe2[_0x292bf3])&&(_0x1dab80=(_0x44be66?_0x49aa81(_0x4846fa,_0x3821e9,_0x1dab80):_0x49aa81(_0x1dab80))||_0x1dab80);return _0x44be66&&_0x1dab80&&Xo(_0x4846fa,_0x3821e9,_0x1dab80),_0x1dab80;},Pe=(_0x3b0617,_0x47459c)=>(_0x5671bb,_0x538bb8)=>_0x47459c(_0x5671bb,_0x538bb8,_0x3b0617);let Ke=class extends _0x5afe1b{constructor(_0x40cde9,_0x449201,_0x4cd200,_0x106a25,_0x2cc06f){const _0x5415f6=_0x2908d8;super(),this[_0x5415f6(0x333)]=_0x40cde9,this[_0x5415f6(0x2c2)]=_0x449201,this['_permissionService']=_0x4cd200,this[_0x5415f6(0x229)]=_0x106a25,this[_0x5415f6(0x140)]=_0x2cc06f,this['_initUnitPermissionChange'](),this[_0x5415f6(0x14b)]();}[_0x2908d8(0x14b)](){const _0x500507=_0x2908d8,_0x1e9f21=async _0x5433b9=>{const _0x8b2c77=_0x1140;(await this['_collaborationSessionService'][_0x8b2c77(0x325)](_0x5433b9))[_0x8b2c77(0x223)][_0x8b2c77(0x490)](_0x51803d(_0x1d7920=>_0x1d7920[_0x8b2c77(0x1d7)]===_0x2ca871[_0x8b2c77(0x2b0)]),_0x5953cf(this[_0x8b2c77(0x2ba)]))[_0x8b2c77(0x298)](_0xe9fa4f=>{const _0x1d8541=_0x8b2c77,_0x5c43c1=_0xe9fa4f,{reason:_0xa07208}=_0x5c43c1[_0x1d8541(0x1ee)];this['_injector'][_0x1d8541(0x479)](_0x6d8428)[_0x1d8541(0x24e)]({'type':_0x42502c[_0x1d8541(0x495)],'content':this[_0x1d8541(0x140)]['t'](_0x1d8541(0x321))+'('+_0xa07208+')'}),this[_0x1d8541(0x462)]['updatePermissionPoint'](new _0x4eedfe(_0x5433b9)['id'],!0x1),this[_0x1d8541(0x229)][_0x1d8541(0x3a6)](_0x5433b9);});};_0x52a416(this['_univerInstanceService'][_0x500507(0x1fc)](_0x50520e[_0x500507(0x37d)]),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x50520e[_0x500507(0x461)]))[_0x500507(0x490)](_0x391b01(_0x59bcfe=>_0x59bcfe[_0x500507(0x18b)]()),_0x51803d(_0x190f2e=>!_0x512341(_0x190f2e)),_0x5953cf(this[_0x500507(0x2ba)]))[_0x500507(0x298)](_0x508867=>{_0x1e9f21(_0x508867);});}[_0x2908d8(0x21c)](){const _0x15af6f=_0x2908d8,_0x55e288=async _0x466688=>{const _0x312c63=_0x1140;(await this[_0x312c63(0x229)][_0x312c63(0x325)](_0x466688))['event$']['pipe'](_0x51803d(_0x12bd8f=>_0x12bd8f['eventID']===_0x2ca871[_0x312c63(0x2ff)]),_0x5953cf(this['dispose$']))[_0x312c63(0x298)](_0xf533e6=>{const _0x24be67=_0x312c63,_0x47cb83=_0xf533e6,{objectId:_0xc9d74c}=_0x47cb83[_0x24be67(0x1ee)],_0x237b4a=this[_0x24be67(0x333)][_0x24be67(0x479)](_0x3c6fe8);_0xc9d74c===_0x466688?_0x237b4a[_0x24be67(0x477)](_0x466688):_0x237b4a[_0x24be67(0x1c8)](_0x466688,_0xc9d74c);});};_0x52a416(this[_0x15af6f(0x2c2)][_0x15af6f(0x1fc)](_0x50520e['UNIVER_SHEET']),this['_univerInstanceService'][_0x15af6f(0x1fc)](_0x50520e[_0x15af6f(0x461)]))[_0x15af6f(0x490)](_0x391b01(_0x20897b=>_0x20897b['getUnitId']()),_0x51803d(_0x9fabeb=>!_0x512341(_0x9fabeb)),_0x5953cf(this[_0x15af6f(0x2ba)]))[_0x15af6f(0x298)](_0xca5f5c=>{_0x55e288(_0xca5f5c);});}};Ke=zo([_0x1e52da(_0x3ebf67['Starting'],Ke),Pe(0x0,_0x573d4d(_0x100ac5)),Pe(0x1,_0x52e604),Pe(0x2,_0x1984e0),Pe(0x3,_0x573d4d(ae)),Pe(0x4,_0x573d4d(_0x5071b4))],Ke);const qo=_0x2908d8(0x27d);var Fs=Object[_0x2908d8(0x1f6)],Zo=Object[_0x2908d8(0x17b)],Qo=(_0x2ab6b5,_0x4e22fd,_0x119adf)=>_0x4e22fd in _0x2ab6b5?Fs(_0x2ab6b5,_0x4e22fd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x119adf}):_0x2ab6b5[_0x4e22fd]=_0x119adf,ea=(_0x2b74a6,_0x4256b6,_0x53dc63,_0x15c302)=>{const _0x4253e8=_0x2908d8;for(var _0x1f3b79=_0x15c302>0x1?void 0x0:_0x15c302?Zo(_0x4256b6,_0x53dc63):_0x4256b6,_0x59b747=_0x2b74a6[_0x4253e8(0x478)]-0x1,_0x41e508;_0x59b747>=0x0;_0x59b747--)(_0x41e508=_0x2b74a6[_0x59b747])&&(_0x1f3b79=(_0x15c302?_0x41e508(_0x4256b6,_0x53dc63,_0x1f3b79):_0x41e508(_0x1f3b79))||_0x1f3b79);return _0x15c302&&_0x1f3b79&&Fs(_0x4256b6,_0x53dc63,_0x1f3b79),_0x1f3b79;},Be=(_0x385e1a,_0x2b9bb4)=>(_0x33b7d9,_0x2b54c3)=>_0x2b9bb4(_0x33b7d9,_0x2b54c3,_0x385e1a),ta=(_0x809f3,_0x960343,_0x112738)=>Qo(_0x809f3,_0x960343+'',_0x112738);const sa='UNIVER_COLLABORATION_CLIENT_PLUGIN';let Mt=class extends _0x361fa5{constructor(_0x4b11b1={},_0x52bbdc,_0x337de4,_0x27a57e,_0x23dec7){const _0x1e213b=_0x2908d8;super(),this['_config']=_0x4b11b1,this[_0x1e213b(0x49c)]=_0x52bbdc,this[_0x1e213b(0x341)]=_0x337de4,this[_0x1e213b(0x333)]=_0x27a57e,this[_0x1e213b(0x168)]=_0x23dec7;const {..._0x913479}=this['_config'];this[_0x1e213b(0x168)][_0x1e213b(0x187)](qo,_0x913479);}[_0x2908d8(0x2b4)](){const _0xb50344=_0x2908d8;this[_0xb50344(0x322)]();}[_0x2908d8(0x37f)](){this['_registerRenderDependencies']();}[_0x2908d8(0x322)](){const _0xb117b5=_0x2908d8;var _0xf64f10,_0x52d7c7,_0x3c090d,_0x11838b;this[_0xb117b5(0x333)][_0xb117b5(0x25a)](_0x3ed2c5)&&this['_logService']['error'](_0xb117b5(0x2af),_0xb117b5(0x3a8));let _0x126285=[[_0x3ed2c5,{'useClass':Pt}],[ae],[Bt],[_0x2d51dc],[Bs,{'useClass':Co}],[oe],[D],[_0x4447fb],[Qe],[et],[Ze],[kt],[st],[Ls],[Ke],[Us,{'useClass':(_0x52d7c7=(_0xf64f10=this[_0xb117b5(0x190)])==null?void 0x0:_0xf64f10['socketService'])!=null?_0x52d7c7:Et}],[_0x4d903c,{'useClass':_0x2527e3}],[_0x5d1d4f,{'useClass':wt}],[_0x5bd60e,{'useClass':Nt}],[_0x404524,{'useClass':yt}],[Ae],[We],[ye],[Ge],[fe]];(_0x3c090d=this[_0xb117b5(0x190)])!=null&&_0x3c090d[_0xb117b5(0x204)]&&_0x126285[_0xb117b5(0x349)]([it,{'useClass':rr}]),_0x126285=_0x320f1a(_0x126285,(_0x11838b=this[_0xb117b5(0x190)])==null?void 0x0:_0x11838b['override']),_0x126285[_0xb117b5(0x212)](_0x12ac3d=>this[_0xb117b5(0x333)][_0xb117b5(0x40c)](_0x12ac3d)),this[_0xb117b5(0x331)]();}[_0x2908d8(0x17e)](){const _0x1953a2=_0x2908d8;this[_0x1953a2(0x206)](this[_0x1953a2(0x341)][_0x1953a2(0x27f)](_0x50520e[_0x1953a2(0x461)],[Ye])),this['disposeWithMe'](this['_renderManagerService'][_0x1953a2(0x27f)](_0x50520e[_0x1953a2(0x37d)],[Dt]));}[_0x2908d8(0x331)](){const _0x8859f1=_0x2908d8;var _0x2caf99,_0x2fcef4;this[_0x8859f1(0x333)][_0x8859f1(0x479)](_0x2d51dc)['registerHTTPInterceptor']({'priority':0x14,'interceptor':_0x108edb({'maxParallel':0x6})}),(_0x2caf99=this[_0x8859f1(0x190)])!=null&&_0x2caf99['enableOfflineEditing']||this[_0x8859f1(0x333)][_0x8859f1(0x479)](D)[_0x8859f1(0x3d8)](),(_0x2fcef4=this['_config'])!=null&&_0x2fcef4[_0x8859f1(0x364)]&&this['_injector'][_0x8859f1(0x479)](st),this['_injector']['get'](Ae),this[_0x8859f1(0x333)]['has'](ye)&&this[_0x8859f1(0x333)][_0x8859f1(0x479)](ye);}};ta(Mt,_0x2908d8(0x48b),sa),Mt=ea([_0x1f6b2d(_0x42e95f),Be(0x1,_0x38155a),Be(0x2,_0x33ca16),Be(0x3,_0x573d4d(_0x100ac5)),Be(0x4,_0x3abdb4)],Mt);export{jo as AUTHZ_URL_KEY,Nt as AuthzIoHttpService,Dn as COLLAB_SUBMIT_CHANGESET_URL_KEY,Sn as COLLAB_WEB_SOCKET_URL_KEY,Ae as CollaborationController,tt as CollaborationEntity,Ct as CollaborationSession,ae as CollaborationSessionService,Et as CollaborationSocketService,w as CollaborationStatus,so as CollaborationStatusDisplay,Ls as CommentService,We as DataLoaderController,ye as DesktopCollaborationStatusDisplayController,bt as DocCollaborationEntity,vn as HEARTBEAT_INTERVAL_KEY,Ns as HEARTBEAT_TIMEOUT_KEY,Us as ICollaborationSocketService,Bs as IURLService,yt as ImageIoService,Rn as LOCAL_CACHE_INTERVAL_KEY,Pn as LOGIN_URL_KEY,D as LocalCacheService,En as RETRY_CONNECTING_INTERVAL_KEY,bn as RETRY_CONNECTING_MAX_COUNT_KEY,fn as SEND_CHANGESET_TIMEOUT_KEY,un as SNAPSHOT_SERVER_URL_KEY,mn as SNAPSHOT_URL_KEY,F as SessionStatus,xr as SheetCollabCursorShape,Tt as SheetCollaborationEntity,wt as SnapshotServerOverHTTPService,Mt as UniverCollaborationClientPlugin,Co as WebURLService,yn as deserializeToCombResponse,Mn as serializeCombRequest};
1
+ const _0x2e5b1c=_0x5851;(function(_0x5cc580,_0x247df4){const _0xe9c2e9=_0x5851,_0x298806=_0x5cc580();while(!![]){try{const _0x3fab4f=parseInt(_0xe9c2e9(0x3d8))/0x1*(parseInt(_0xe9c2e9(0x23c))/0x2)+-parseInt(_0xe9c2e9(0x419))/0x3*(parseInt(_0xe9c2e9(0x208))/0x4)+-parseInt(_0xe9c2e9(0x442))/0x5+parseInt(_0xe9c2e9(0x2dc))/0x6+parseInt(_0xe9c2e9(0x152))/0x7*(-parseInt(_0xe9c2e9(0x37f))/0x8)+-parseInt(_0xe9c2e9(0x1fa))/0x9*(-parseInt(_0xe9c2e9(0x325))/0xa)+parseInt(_0xe9c2e9(0x28a))/0xb;if(_0x3fab4f===_0x247df4)break;else _0x298806['push'](_0x298806['shift']());}catch(_0x26c6de){_0x298806['push'](_0x298806['shift']());}}}(_0x3164,0xe75fc));var Js=Object[_0x2e5b1c(0x2de)],zs=(_0x31ed66,_0x16ac71,_0x1b3413)=>_0x16ac71 in _0x31ed66?Js(_0x31ed66,_0x16ac71,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1b3413}):_0x31ed66[_0x16ac71]=_0x1b3413,l=(_0x51919c,_0x24a7e3,_0x4d8617)=>zs(_0x51919c,typeof _0x24a7e3!=_0x2e5b1c(0x307)?_0x24a7e3+'':_0x24a7e3,_0x4d8617);function _0x3164(){const _0x329218=['onPointerEnter$','_handleEvent','action','className','_roomMembers','dispose$','_undoRedoService','_renderManagerService','_send','_updateLocalCache','_getMergeRange','subscribe','_collaborationController','getResourcesRequest','leaveEvent','AWAITING','resend','VIEW_MAIN','subscribeEvent','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','syncEditingCollabCursor','_toggleOffline','_transformService','labelPosition','onStarting','_handleHover','onPointerLeave$','onTransformSelections','column','[OfflineState]:\x20received\x20rejection.','stringify','1nbyGaW','_beforeCloseService','_startSheetCollabCursor','...','_drawAnchor','JOINING','APPLY_REVISION_CONFILICT','/allowed','USERS_ENTER','ERROR_EXCEED_SIZE','enableSingleActiveInstanceLock','INVALID_ARGUMENT','offline','toggleOffline','prototype','isActive','use','RECV','onRemoteChangeset','_shapes','_state$','_notificationService','HttpImport','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','NO_OTHER_CLIENTS_EDITING','_collabSessionService','on-line-single','makeDirty','font','pushState','DeleteRangeMoveLeftCommandId','subUnitId','PSEUDO_FETCH_MISSING_RESULT','_cachedData','_onJoinRoomEvent','transform','getRelativeToViewportCoord','collab-client.tooltip.reconnect','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','replaceTextRanges','registerRefRange','CHANGESET_REVISION_CONFILICT','getParam','_onOffline','drawWith','toggleOnline','triggerDblclick','every','_transformPreviousActiveRange','getWorkbookSelections','defIds','_remoteChangesetQueue','append','_pendingMutations','close','_ensureSubject','_config','pluginName','_hovered','DeleteRangeMoveUpCommandId','Unknown\x20user','appendMutation','ERROR_IMAGE','storage','_telemetryInfo','38259pDKupM','method','_submitChangeset','getOwnPropertyDescriptor','_telemetryService','LICENSE_IMPORT_SIZE_EXCEEDED','YUUMI_URL_COL_OUT_OF_RANGE','gold400','SYNCED','current','_HTTPService','hide','Warning','getUnitId','awaiting','_collabCursorState$','univer-online-status','parse','_onRefRangeChange','setShapeProps','off-line-single','\x0aCurrent:\x20','_init','resolve','_docSkeletonManagerService','CONNECTOR_DATA_TOO_LARGE','replaceState','isArray','_onRemoteChangeset','_transformUndoRedoStack','connection\x20error','/universer-api/snapshot','_name','_docSkeleton','_clearOtherTimers','\x20in\x20_schedule.','LICENSE_DISTRO_REJECTED','m1Prime','textRanges','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_listenToOfflineEvent','5659315GdpOtW','YUUMI_SUBSCRIPTION_NOT_FOUND','image/gif','/universer-api/file/{fileID}/sign-url','apply','complete','_awaitingChangeset','getViewport','_commentUpdate$','_collabCursorController','isPermissionRej','_replayCachedMutations','objects','measureText','status','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_localeService','_clearRedo','title','removeParam','_transformSelections','incrementRevForDocument','[CollaborationEntity]','PERMISSION_REJ','\x20to\x20','_substituteUndoStack','_cursors','colorChannel1','width','_disabled','getCurrentSelections','editingUnit','_online','liveShareOperation','[PendingState]:\x20received\x20acknowledgement.','verdancy600','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','SNAPSHOT_INVALID_SNAPSHOT','_removeClearOtherTimer','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','getTypeOfUnitDisposed$','icon','open$','UNKNOWN_CMD','color','on-line-single_clip0_910_349','image/bmp','_setupBeforeClosingHandler','/-/object/-/batch_allowed','_scheduleClearOtherTimer','getRenderById','roles','setCurrentUser','_onUserLeave','AWAITING_WITH_PENDING','OffLineSingle','getInterceptPoints','add','_updateURLWithCurrentState','_backgroundColor','LOCAL_CACHE_INTERVAL','LIVESHARE_REQUEST_HOST','rev','override','_disableEditing','univer-online','HEARTBEAT_TIMEOUT','_syncEditingCollabCursor','responseType','LIVESHARE_TERMINATE','Starting','/object/','_snapshotService','/rev/','readAsDataURL','addEventListener','_getUndoStack','_onRecvEvent','_docSyncEditingCollabCursorService','svg','_drawRectRange','max','init','random','_getAPIPrefix','top','_socket$','_userManagerService','transformByState','popstate','infoRsp','_getUploadFileURL','interceptor','body','translate(.97)','getValue','failed\x20to\x20apply\x20missed\x20changesets!','filter','text','getCurrentRevForDocument','setParam','focused$','createElement','updateCursorEvent','socket$','addObjects','_setupSubUnitSync','call','black','ONLINE','_http','_initStatusListener','getConfig','updatePermissionPoint','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','c1Prime','getMemberID','_startDocCollabCursor','_tryReconnect','UNIVER_UNKNOWN','subunit','getCellPositionByOffset','_executeRemoteChangeset','_acknowledgedAwaitingChangeset','FileId','clearInterval','_hideTimer','_decreaseWaiting','798LsgHGZ','collabStatus.synced','collabStatus.conflict','error$','_getCurrentRevision','permission.content','onTransformRemoteChangesetByIMECache','_colorIndex','awaiting_with_pending','getRoom','_undoStacks','InsertRangeMoveRightCommandId','unitId\x20is\x20not\x20found','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','fetchMissingChangesets','MSG_FOR_ERROR','location','LEAVE','onSendChangeset','_type','debug','univer-online-status-title','UPDATE_PERMISSION_OBJ','_socketMessageSubscription','_removeRoom','some','getCollabCursors$','allowed','IDLE','getDocRanges','_localCacheService','_refreshCollabCursors','InsertRangeMoveDownCommandId','_scene','collaMsg','_commentService','localeService','flatMap','_shouldReportTelemetry','/-/object/list','_sessions','registerHTTPInterceptor','disableLocalCache','_members','_httpService','_saveTaskMap','_listenToOnlineEvent','createSocket','currentSkeleton$','_sendHeartbeat','_candidateSocket','[CollaborationSession]','collaboration-client.offline-data-not-saved','socket\x20open.','image/jpg','csRejEvent','catch','APPLY_PERMISSION_DENIED','enableOfflineEditing','delete','engine','get','assign','endColumn','transformUndoRedo','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_throwTelemetryCollaborationNewChangeset','pipe','getCurrent','extend','clear','_transformIMECache','NOT_COLLAB','toString','LIVESHARE_FETCH_OPERATIONS','round','_getRedoStack','objectActions','isEditing','_tryEnsureSocket','_color','_change$','getTypeOfUnitAdded$','children','_showConflictNotification','\x20-\x20','target','url(#on-line-single_clip0_910_349)','_handler','cursorInfo','OFFLINE','transformChangesets','_univerInstanceService','/collaborator','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_anchor','UNIVER_SLIDE','FETCH_MISSING','_registerRenderDependencies','_compressMutationService','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','saveOfflineData','_saveCache','[PendingState]:\x20received\x20rejection.','actions','length','history','_commandService','getUniverSheetInstance','from','[PendingState]:\x20unhandled\x20univer\x20type:\x20','unsubscribe','_fetchMissChangesets','_loadSheet','_context','ws://127.0.0.1:8000/universer-api/comb/connect','_refRangeService','map','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_clearCollaborationTimeoutTimer','_singleActiveUnitService','loadOfflineData','getOwnPropertySymbols','forEach','generateRandomId','_retryCount','removeMember','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_onUserJoin','routeKey','_collaborationPaused','_initResize','onlineStatusIcon','_onConnectionOpen','removeEventListener','onPointerMove$','_createHandler','substring','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','_stopTelemetryCollaborationNewChangeset','UNIVER_DOC','lineTo','_timeoutTimer','set','_drawTextRange','post','_queuedRemoteChangesets','startsWith','/role','getFocusedUnit','FromArray','evenodd','getUnhiddenWorksheets','/universer-api/authz','PERMISSION_DENIED','JOIN','setAlpha','send','UNRECOGNIZED','OTHER_CLIENTS_EDITING','_scheduleSaving','message$','setTimeout','_handleHeartbeatEvent','hasOwnProperty','UNDEFINED','UniverIcon','beginPath','1325124EvxHqh','Undefined','displayName','\x0aAfter:\x20','_socket','activeSheet$','_instanceService','getUnit','searchParams','selection','_unlockTransition','requireSession','setInterval','_redoStacks','104LZEJiZ','shouldCloseConn','xlink:href','onMouseMove','_joinRoom','cmd','onCommandExecuted','putCollaborators','_clearHeartbeatTimer','conflict','reduce','capture','onRendered','&source=','getUnitType','[CollaborationSessionService]','_getSaveTimeout','_state','_anchorDot','RemoveColCommandId','_initCloseConn','Error\x20on\x20receiving\x20event','unknown','_incrementRevisionNumber','_onConnectionFailed','currentTheme$','saveSnapshot','roomMembers','getCurrentUnitForType','mutations','session.will-retry','UPDATE_CURSOR','permission.title','url(#$1','_onMessage','INTERNAL_ERROR','INGEST','registerOnClose','sheetID','getUnitOnRev','selections','_unitID','_onRemoteACK','_session','patch','telemetry\x20info\x20is\x20not\x20initialized','json','getTime','_isPermissionRej','string','ranges','path','1809442jYeEcI','COMPLETION_FINISHED','onlineStatus','getMember','getOffsetConfig','_clearUndo','?size=','_heartbeatTimer','next','defs','div','function','getImageSourceCache','data','0\x200\x2017\x2016','APPLY_NON_SEQUENTIAL_REVISION','baseRev','_initUnitPermissionChange','conflict.content','startColumn','has','fetch_missing','_updateState','Error','createInstance','type','COMMENT_UPDATE','/universer-api/comb','_applyRemoteChangeset','list','_schedule','RemoveRowCommandId','_registerDependencies','_updateSubUnitFromURLParams','findNodePositionByCharIndex','[CollaborationUndoRedoService]','arc','Univer','UnitSnapshot','editing\x20status\x20changed\x20to','currentColor','HELLO','loadDoc','hovered','collaboration.single-unit.warning','APPLY_REJECT','_getSheetObject','_replaceFileID','assignAColorForMemberID','_initCommandExecutedListener','_revisionService','collaboration-client.config','onlyLocal','_sheetSkeletonManagerService','transformIMECache','_socketReady','_roomMembers$','unitId','TOO_MANY_REQUESTS','_urlService','joinRsp','_status$','_waitCount','params','[CollaborationState]:\x20apply\x20error!','/block/','saveChangeset','trim','_sendingTimer','status$','toRgbString','COLLAB_WEB_SOCKET_URL','getMergeData','_initMergeInterceptor','with','_handleLeaveEvent','getUndoRedoMutationParamsCache','result','11546480laXBKP','_socketService','fillStyle','_imageSourceCache','transformRemoteChangeset','revision','M0\x200H16V16H0z','_docTransformSelectionsService','_permissionService','pending','disposeWithMe','auth.needGotoLoginAlert','requestParams','row','CONFLICT','socket\x20close','getActiveSheet','_clearScheduledTask','_createInitialStateImpl','ALREADY_EXISTS','_assignedColors','_eventUnsubscribe','onMissingChangesets','collaboration-session-retry','InsertColCommandId','CHANGESET_ACK','SNAPSHOT_URL_KEY','objectType','RETRY_CONNECTING_MAX_COUNT','_scheduleHeartbeat','registerRenderModule','_memberService','_textBubble','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_startCollaboration','file','onTransformChange$','_clearTimeoutTimer','_unitStatus','idSuffix','COLLAB_SUBMIT_CHANGESET_URL','_onFetchMissResult','onStateChange','0\x200\x2016\x2016','_scheduleTimestamp','COMPRESS_MUTATION_SEND','_retryConnectingTimer','image/png','collabStatus.fetchMiss','values','getSkeleton','onRemoteAck','_document','Steady','range','encodeURIComponent','LOGIN_URL_KEY','url','_transitionLocked','find','session','UNIVER_SHEET','collab-text-anchor-','_getAPIPrefixPath','addImageSourceCache','LIVESHARE_NEW_HOST','getRangePointData','memberID','collaboration_new_changeset','_docTransformIMECacheService','UNIVER_PROJECT','pauseCollaboration','_removeCollabCursors','slice','_onConflict','collaboration.closeRoom','EXCHANGE_SIGN_URL_SERVER_URL_KEY','transformMutation','_loadDoc','/unit/','/object','enableLocalCache','3148464upyQtQ','_draw','defineProperty','NEW_CHANGESETS','ACTIVE_UNIT_EVENT_CHANNEL','originalMeta','SHOULD_CLOSE_CONN','_collaborationTimeoutTimer','collabStatus.offline','univerjs-icon\x20univerjs-icon-','then','href','moveTo','LIVESHARE_OPERATION','userID','addObject','_logService','whenReady','url(#off-line-single_clip0_910_343)','_onRemoteRejected','LICENSE_MAX_UNITS_EXCEEDED','push','UnitEmbedded','_cursorInfo$','unshift','setWaitCount','eventID','getSheetBlock','asObservable','encode','code','saveSheetBlock','SNAPSHOT_HAS_BEEN_REMOVED','_localStorageService','dispose','session.connection-failed','UNIVER_COLLABORATION_CLIENT_PLUGIN','_exhaustRemoteChangesetQueue','save','_uiPartsService','/universer-api/oidc/authpage','synced','USERS_LEAVE','symbol','_hover','LICENSE_EXPORT_SIZE_EXCEEDED','univer-offline','error','_getSendChangesetTimeout','_lockTransition','OnLineSingle','[UniverCollaborationClientPlugin]','YUUMI_UNABLE_LOAD_URL','clearTimeout','newValue','_cursorShapes','PENDING','put','restore','registerComponent','_initStatusComponent','replace','closeSession','fetching\x20missing\x20changesets\x20from\x20','UNAUTHENTICATED','now','RETRY_CONNECTING_INTERVAL','bottom','onTransformIME','_clearLocalCache','getAncestorScale','_updateCollabCursors','#fff','10febfqh','transformSelections','_lastPointer','COMPRESS_MUTATION_APPLY','_createSocket','_checkMissing','fetchThroughInterceptors','_updateLocalCursor','close$','startTime','attrs','[SyncedState]:\x20received\x20rejection.','_sheetTransformSelectionsService','reconnect','updateCollaborator','disposeUnit','executeCommand','updateOfflineData','split','_configService','_transformStack','[DataLoaderController]','tag','_event$','propertyIsEnumerable','collaborators','onMissedChangesetFetched','_getScale','_colorAssignService','InsertRowCommandId','SUCCUSS','fill','_ws','_substituteRedoStack','POST','_transformRemoteChangesetByIMECache','updatePermissionObjEvent','YUUMI_RATE_OVER_LIMIT','SUBMIT_CHANGESET','clipPath','sessionStatus$','_onCombEvent','unit-cache-','getCollabEntity','contains','_onCursorUpdate','fetchMiss','submit\x20changeset\x20error!','_waitForHeartbeatResponse','liveShareNewHost','_render','red300','entries','collab-rect-range-','_startTelemetryCollaborationNewChangeset','awaitingChangeset','snapshot','concat','HEARTBEAT','changesets','getActiveRange','size','all','online','HttpExport','m2Prime','show','MUTATION','_toggleOnline','BASE64','_rescheduleHeartbeat','_entities','indexOf','height','refreshPermission','_getLoginPath','_scheduleCollaborationTimeoutTimer','event$','saveImage','fillText','setItem','_getSignURL','HEADER_MENU','getSheetBySheetId','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','loadSheet','[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.','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','objectID','_cursor','15104IBQwms','jiqing500','image/jpeg','_themeService','_onLocalMutation','_updateStatus','_collaborationSessionService','_id','_sendHeartbeatTimer','stopTime','transformMutationsWithChangeset','reject','CHANGESET_REJ','[CollaborationSessionService]:\x20socket\x20error','_unitOnClients','headers','resourceIDs','?url=','_snapshotServerService','updateMember','cursorInfo$','_entityInit$','NOT_FOUND','_messageService','name','_range','duration','UNKNOWN_CODE','univer-online-status-icon','MoveRangeCommandId','roomMembers$','collabCursorState$','registerBeforeClose','includes','FAIL','onRemoteRej','_onCursorDelete','unitID','getCurrentUser','batchAllowed','state$','[FetchMissState]','min','sessionStatus','joinEvent','_injector','doc.mutation.rich-text-editing','uni.network.url-service','socketService','[OfflineState]:\x20received\x20changeset.','update','_sessionStatus$','urlChange$','_selfUnitIDs','getSheetId','_handleJoinEvent','deepClone','1em'];_0x3164=function(){return _0x329218;};return _0x3164();}import{createIdentifier as _0x5a3236,Disposable as _0x36403b,DisposableCollection as _0x3bb8a8,toDisposable as _0x29a7b,Inject as _0x5c7fae,IConfigService as _0x401b9d,ILogService as _0x1cafe9,UniverInstanceType as _0x3bf0d9,UserManagerService as _0x1ac2e4,IUniverInstanceService as _0x30b2f2,RxDisposable as _0x4bff65,LocaleService as _0x12e5b3,Optional as _0x5723b6,Injector as _0x5d259e,Tools as _0x3cea4b,ILocalStorageService as _0x76fe2e,ICommandService as _0x36a317,JSONX as _0x51b925,CommandType as _0x32e0b0,IPermissionService as _0x241366,IUndoRedoService as _0x1bd332,sequenceExecute as _0x5396fb,Rectangle as _0x183c22,OnLifecycle as _0x486866,LifecycleStages as _0x446a6f,ThemeService as _0x27c464,useDependency as _0x1cf47e,connectInjector as _0x5abdc,Workbook as _0x450c96,LocalUndoRedoService as _0x30a328,IContextService as _0x693680,COLORS as _0x44cb7f,ColorKit as _0x21fa84,fromEventSubject as _0x240b02,isInternalEditorID as _0x852e4e,Plugin as _0x250c9c,IAuthzIoService as _0x136777,mergeOverrideWithDependencies as _0x3a5a4e,DependentOn as _0x2f7773}from'@univerjs/core';import{Subject as _0x47a81b,merge as _0x9334d7,takeUntil as _0x2123e0,BehaviorSubject as _0x16e81a,distinctUntilChanged as _0x24665d,fromEvent as _0x4dbad7,map as _0x464900,shareReplay as _0x1aec94,take as _0x219c0a,of as _0x8d55e,debounceTime as _0x116e1b,filter as _0x41cfb4,switchMap as _0x498d15,combineLatest as _0x1ee3b6,mapTo as _0x543013,concatMap as _0x4c98f9}from'rxjs';import{map as _0x4b551a,take as _0x590d71,filter as _0x48e324,delay as _0x1e04ab,takeUntil as _0x429e28,switchMap as _0x3c8cfc,throttleTime as _0x326ad7}from'rxjs/operators';import{MessageType as _0x68ddaa,Tooltip as _0x2b5af8}from'@univerjs/design';import{IBeforeCloseService as _0x4c2a62,IMessageService as _0x29e945,INotificationService as _0x4c821a,useObservable as _0x3834a2,BuiltInUIPart as _0x1504a5,IUIPartsService as _0xbc9637}from'@univerjs/ui';import{HTTPService as _0x35343d,WebSocketService as _0x4058ad,MergeInterceptorFactory as _0x441ebe,HTTPRequest as _0x1baa38,IHTTPImplementation as _0x4a8183,XHRHTTPImplementation as _0x182506,ThresholdInterceptorFactory as _0x55c921}from'@univerjs/network';import{CollaborationEvent as _0x410792,parseChangesetToProtocol as _0x1859f8,ISnapshotServerService as _0x39a0ed,isTransformMutationFailure as _0x517f04,isTransformMutationsWithChangesetSuccess as _0x24d018,ITransformService as _0x4e0f96,RevisionService as _0x4ceeac,mapDocumentTypeToUniverType as _0x2e5178,isTransformChangesetsSuccess as _0x71b04d,parseProtocolChangeset as _0x3b19c3,CompressMutationService as _0xac140b,SnapshotService as _0x208dce,textEncoder as _0x1d8b96,b64DecodeUnicode as _0x5ee83a,isTransformMutationsWithChangesetFailure as _0x364023,UniverCollaborationPlugin as _0x7a88b}from'@univerjs-pro/collaboration';import{ITelemetryService as _0x45444c}from'@univerjs/telemetry';import{DocSelectionManagerService as _0x1dbfad,RichTextEditingMutation as _0xa592b4,SetTextSelectionsOperation as _0x26b3ce,DocSkeletonManagerService as _0x2398d4}from'@univerjs/docs';import{SheetsSelectionsService as _0x85923d,SetSelectionsOperation as _0x2498cc,InsertSheetMutation as _0x5a0458,EmptyMutation as _0x39f7b4,WorkbookEditablePermission as _0x477da8,RefRangeService as _0x504358,EffectRefRangId as _0xa2b790,handleIRemoveRow as _0x2f61ec,handleIRemoveCol as _0x824d6d,handleMoveRange as _0x2f5847,handleInsertRow as _0x375cdc,handleInsertRangeMoveRight as _0x1731a1,handleInsertRangeMoveDown as _0x4827cd,handleInsertCol as _0x34e016,handleDeleteRangeMoveUp as _0x552ee5,handleDeleteRangeMoveLeft as _0x3c8f35,runRefRangeMutations as _0x15b7fb,SetWorksheetActivateCommand as _0x29cb12}from'@univerjs/sheets';import{DocIMEInputManagerService as _0x3b1e58,DocStateChangeManagerService as _0x34634f,NodePositionConvertToCursor as _0x5cf9b0,isValidRectRange as _0x29cf68,NodePositionConvertToRectRange as _0xbfc352,TEXT_RANGE_LAYER_INDEX as _0x2b5c4c,SetDocZoomRatioOperation as _0x23717a}from'@univerjs/docs-ui';import{IRenderManagerService as _0x363058,Shape as _0x214e6b,Rect as _0x170a21,Vector2 as _0x586911,getColor as _0x3c99d3,RegularPolygon as _0x532a25,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x277f5f}from'@univerjs/engine-render';import{ImageSourceType as _0x2639d9,ImageUploadStatusType as _0x29d71a,IImageIoService as _0x976a19}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x5b5841,serializeRangeWithSheet as _0x508689}from'@univerjs/engine-formula';import _0x415879 from'lodash/debounce';import{VIEWPORT_KEY as _0x398f9b,getCoordByCell as _0x341a0b,getSheetObject as _0x40df2d,SheetSkeletonManagerService as _0x5349fd,SheetPermissionInitController as _0xa93b7d}from'@univerjs/sheets-ui';import _0x24bd02,{forwardRef as _0x5da15c,useRef as _0x4ab73c,createElement as _0x3d6533,useCallback as _0x23455d}from'react';import _0x6c5a82 from'clsx';import{IRemoteInstanceService as _0x372f27}from'@univerjs/rpc';const _n='SNAPSHOT_SERVER_URL_KEY',un=_0x2e5b1c(0x438),dn=_0x2e5b1c(0x2a4),mn='SEND_CHANGESET_TIMEOUT',fn=0x7d0,gn=_0x2e5b1c(0x283),Sn=_0x2e5b1c(0x1c5),pn='HEARTBEAT_INTERVAL',vn=0x7530,Ns=_0x2e5b1c(0x484),ys=0x4e20,In=_0x2e5b1c(0x31e),En=0x4e20,Cn=_0x2e5b1c(0x2a6),bn=0x3,Tn=_0x2e5b1c(0x47e),Rn=0x3e8,On=_0x2e5b1c(0x2b2),Dn=_0x2e5b1c(0x257),wn=_0x2e5b1c(0x2c2),Pn=_0x2e5b1c(0x304);var Ms=(_0x8245e2=>(_0x8245e2[_0x8245e2[_0x2e5b1c(0x1f7)]=0x0]=_0x2e5b1c(0x1f7),_0x8245e2[_0x8245e2['OK']=0x1]='OK',_0x8245e2[_0x8245e2['INTERNAL_ERROR']=0x2]=_0x2e5b1c(0x22b),_0x8245e2[_0x8245e2[_0x2e5b1c(0x1ec)]=0x3]='PERMISSION_DENIED',_0x8245e2[_0x8245e2['NOT_FOUND']=0x4]=_0x2e5b1c(0x395),_0x8245e2[_0x8245e2[_0x2e5b1c(0x31c)]=0x5]=_0x2e5b1c(0x31c),_0x8245e2[_0x8245e2[_0x2e5b1c(0x29d)]=0x6]=_0x2e5b1c(0x29d),_0x8245e2[_0x8245e2[_0x2e5b1c(0x3e3)]=0x7]='INVALID_ARGUMENT',_0x8245e2[_0x8245e2[_0x2e5b1c(0x276)]=0x8]=_0x2e5b1c(0x276),_0x8245e2[_0x8245e2[_0x2e5b1c(0x23d)]=0x9]=_0x2e5b1c(0x23d),_0x8245e2[_0x8245e2[_0x2e5b1c(0x401)]=0x1389]=_0x2e5b1c(0x401),_0x8245e2[_0x8245e2[_0x2e5b1c(0x467)]=0x1771]=_0x2e5b1c(0x467),_0x8245e2[_0x8245e2[_0x2e5b1c(0x2fc)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x8245e2[_0x8245e2['APPLY_REJECT']=0x1b59]=_0x2e5b1c(0x269),_0x8245e2[_0x8245e2['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x2e5b1c(0x24b),_0x8245e2[_0x8245e2['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x2e5b1c(0x3de),_0x8245e2[_0x8245e2[_0x2e5b1c(0x18b)]=0x1b5c]=_0x2e5b1c(0x18b),_0x8245e2[_0x8245e2['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x2e5b1c(0x432),_0x8245e2[_0x8245e2[_0x2e5b1c(0x2f0)]=0x2329]=_0x2e5b1c(0x2f0),_0x8245e2[_0x8245e2['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x2e5b1c(0x440),_0x8245e2[_0x8245e2['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x2e5b1c(0x41e),_0x8245e2[_0x8245e2[_0x2e5b1c(0x309)]=0x232c]=_0x2e5b1c(0x309),_0x8245e2[_0x8245e2[_0x2e5b1c(0x43d)]=0x232d]=_0x2e5b1c(0x43d),_0x8245e2[_0x8245e2[_0x2e5b1c(0x310)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x8245e2[_0x8245e2[_0x2e5b1c(0x41f)]=0x2712]=_0x2e5b1c(0x41f),_0x8245e2[_0x8245e2[_0x2e5b1c(0x34a)]=0x2713]=_0x2e5b1c(0x34a),_0x8245e2[_0x8245e2[_0x2e5b1c(0x443)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x8245e2[_0x8245e2[_0x2e5b1c(0x1f0)]=-0x1]='UNRECOGNIZED',_0x8245e2))(Ms||{}),x=(_0x62b898=>(_0x62b898[_0x62b898[_0x2e5b1c(0x149)]=0x0]=_0x2e5b1c(0x149),_0x62b898[_0x62b898[_0x2e5b1c(0x1de)]=0x1]=_0x2e5b1c(0x1de),_0x62b898[_0x62b898[_0x2e5b1c(0x2c7)]=0x2]=_0x2e5b1c(0x2c7),_0x62b898[_0x62b898[_0x2e5b1c(0x1b2)]=0x3]=_0x2e5b1c(0x1b2),_0x62b898[_0x62b898[_0x2e5b1c(0x2d0)]=0x4]='UNIVER_PROJECT',_0x62b898[_0x62b898['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x62b898))(x||{}),I=(_0x1b5b7c=>(_0x1b5b7c[_0x1b5b7c['UNKNOWN_CMD']=0x0]=_0x2e5b1c(0x46d),_0x1b5b7c[_0x1b5b7c['HELLO']=0x1]=_0x2e5b1c(0x265),_0x1b5b7c[_0x1b5b7c[_0x2e5b1c(0x1ed)]=0x2]=_0x2e5b1c(0x1ed),_0x1b5b7c[_0x1b5b7c[_0x2e5b1c(0x163)]=0x3]=_0x2e5b1c(0x163),_0x1b5b7c[_0x1b5b7c[_0x2e5b1c(0x22c)]=0x4]=_0x2e5b1c(0x22c),_0x1b5b7c[_0x1b5b7c[_0x2e5b1c(0x35f)]=0x5]=_0x2e5b1c(0x35f),_0x1b5b7c[_0x1b5b7c['RECV']=0x6]=_0x2e5b1c(0x3e9),_0x1b5b7c[_0x1b5b7c['UNRECOGNIZED']=-0x1]=_0x2e5b1c(0x1f0),_0x1b5b7c))(I||{}),kt=(_0x24a6ff=>(_0x24a6ff[_0x24a6ff[_0x2e5b1c(0x39a)]=0x0]=_0x2e5b1c(0x39a),_0x24a6ff[_0x24a6ff['OK']=0x1]='OK',_0x24a6ff[_0x24a6ff['FAIL']=0x2]=_0x2e5b1c(0x3a1),_0x24a6ff[_0x24a6ff[_0x2e5b1c(0x1f0)]=-0x1]=_0x2e5b1c(0x1f0),_0x24a6ff))(kt||{}),As=(_0x210b8b=>(_0x210b8b[_0x210b8b[_0x2e5b1c(0x1fb)]=0x0]=_0x2e5b1c(0x1fb),_0x210b8b[_0x210b8b[_0x2e5b1c(0x3ee)]=0x1]='HttpImport',_0x210b8b[_0x210b8b[_0x2e5b1c(0x365)]=0x2]=_0x2e5b1c(0x365),_0x210b8b[_0x210b8b[_0x2e5b1c(0x2f2)]=0x3]=_0x2e5b1c(0x2f2),_0x210b8b[_0x210b8b[_0x2e5b1c(0x262)]=0x4]=_0x2e5b1c(0x262),_0x210b8b[_0x210b8b['UNRECOGNIZED']=-0x1]=_0x2e5b1c(0x1f0),_0x210b8b))(As||{});function Nn(_0x439f41){const _0x1a8020=_0x2e5b1c;var _0x2d93f3,_0x166e23,_0x51bf6e,_0x2912b6;const _0x2f92fc=_0x439f41['data'],_0x1e6e16=JSON[_0x1a8020(0x42a)](_0x2f92fc);switch(_0x1e6e16['cmd']){case I['HEARTBEAT']:case I[_0x1a8020(0x265)]:{const _0x22a555=_0x1e6e16[_0x1a8020(0x12c)];return{..._0x1e6e16,'data':_0x22a555,'cmd':_0x1e6e16[_0x1a8020(0x20d)]};}case I[_0x1a8020(0x1ed)]:{const _0x2abbf5=_0x1e6e16[_0x1a8020(0x278)];return{..._0x1e6e16,'data':_0x2abbf5,'cmd':_0x1e6e16[_0x1a8020(0x20d)]};}case I[_0x1a8020(0x3e9)]:{const _0x38d63c=_0x1e6e16[_0x1a8020(0x174)];switch(_0x38d63c[_0x1a8020(0x2f6)]){case _0x410792[_0x1a8020(0x459)]:return{..._0x1e6e16,'data':{..._0x38d63c,'data':(_0x2d93f3=_0x38d63c['permissionRejEvent'])==null?void 0x0:_0x2d93f3['cs']},'cmd':_0x1e6e16[_0x1a8020(0x20d)]};case _0x410792[_0x1a8020(0x2a3)]:return{..._0x1e6e16,'data':{..._0x38d63c,'data':(_0x166e23=_0x38d63c['csAckEvent'])==null?void 0x0:_0x166e23['cs']},'cmd':_0x1e6e16[_0x1a8020(0x20d)]};case _0x410792[_0x1a8020(0x2df)]:return{..._0x1e6e16,'data':{..._0x38d63c,'data':(_0x51bf6e=_0x38d63c['newCsEvent'])==null?void 0x0:_0x51bf6e['cs']},'cmd':_0x1e6e16[_0x1a8020(0x20d)]};case _0x410792[_0x1a8020(0x38b)]:return{..._0x1e6e16,'data':{..._0x38d63c,'data':(_0x2912b6=_0x38d63c[_0x1a8020(0x189)])==null?void 0x0:_0x2912b6['cs']},'cmd':_0x1e6e16['cmd']};case _0x410792[_0x1a8020(0x227)]:return{..._0x1e6e16,'data':{..._0x38d63c,'data':_0x38d63c[_0x1a8020(0x139)]},'cmd':_0x1e6e16[_0x1a8020(0x20d)]};case _0x410792['USERS_ENTER']:return{..._0x1e6e16,'data':{..._0x38d63c,'data':_0x38d63c[_0x1a8020(0x3ab)]},'cmd':_0x1e6e16[_0x1a8020(0x20d)]};case _0x410792[_0x1a8020(0x306)]:return{..._0x1e6e16,'data':{..._0x38d63c,'data':_0x38d63c[_0x1a8020(0x3c7)]},'cmd':_0x1e6e16[_0x1a8020(0x20d)]};case _0x410792[_0x1a8020(0x2cb)]:return{..._0x1e6e16,'data':{..._0x38d63c,'data':_0x38d63c[_0x1a8020(0x356)]},'cmd':_0x1e6e16[_0x1a8020(0x20d)]};case _0x410792[_0x1a8020(0x19c)]:case _0x410792[_0x1a8020(0x2e9)]:return{..._0x1e6e16,'data':{..._0x38d63c,'data':_0x38d63c[_0x1a8020(0x463)]},'cmd':_0x1e6e16['cmd']};case _0x410792[_0x1a8020(0x487)]:return{..._0x1e6e16,'data':{..._0x38d63c,'data':_0x38d63c[_0x1a8020(0x356)]},'cmd':_0x1e6e16[_0x1a8020(0x20d)]};case _0x410792['MSG_FOR_ERROR']:return{..._0x1e6e16,'data':_0x38d63c,'cmd':_0x1e6e16['cmd']};case _0x410792[_0x1a8020(0x256)]:return{..._0x1e6e16,'data':{..._0x38d63c,'data':_0x38d63c['commentUpdateEvent']},'cmd':_0x1e6e16[_0x1a8020(0x20d)]};case _0x410792[_0x1a8020(0x168)]:return{..._0x1e6e16,'data':{..._0x38d63c,'data':_0x38d63c[_0x1a8020(0x349)]},'cmd':_0x1e6e16[_0x1a8020(0x20d)]};case _0x410792['SHOULD_CLOSE_CONN']:return{..._0x1e6e16,'data':{..._0x38d63c,'data':_0x38d63c[_0x1a8020(0x209)]},'cmd':_0x1e6e16['cmd']};default:return _0x1e6e16;}}default:return _0x1e6e16;}}function yn(_0x3c0eb7){const _0x321ed2=_0x2e5b1c;switch(_0x3c0eb7[_0x321ed2(0x20d)]){case I[_0x321ed2(0x35f)]:case I['HELLO']:return JSON[_0x321ed2(0x3d7)]({'cmd':_0x3c0eb7[_0x321ed2(0x20d)],'routeKey':_0x3c0eb7[_0x321ed2(0x1d3)]});case I['INGEST']:{let _0xe15fdd;switch(_0x3c0eb7[_0x321ed2(0x249)][_0x321ed2(0x2f6)]){case _0x410792[_0x321ed2(0x227)]:{_0xe15fdd={'eventID':_0x410792[_0x321ed2(0x227)],'updateCursorEvent':_0x3c0eb7[_0x321ed2(0x249)][_0x321ed2(0x249)]};break;}case _0x410792['USERS_LEAVE']:{_0xe15fdd={'eventID':_0x410792[_0x321ed2(0x306)],'leaveEvent':_0x3c0eb7[_0x321ed2(0x249)]['data']};break;}case _0x410792[_0x321ed2(0x3e0)]:{_0xe15fdd={'eventID':_0x410792[_0x321ed2(0x3e0)],'joinEvent':_0x3c0eb7[_0x321ed2(0x249)][_0x321ed2(0x249)]};break;}case _0x410792[_0x321ed2(0x2cb)]:{_0xe15fdd={'eventID':_0x410792[_0x321ed2(0x2cb)],'liveShareNewHost':_0x3c0eb7[_0x321ed2(0x249)][_0x321ed2(0x249)]};break;}case _0x410792[_0x321ed2(0x2e9)]:{_0xe15fdd={'eventID':_0x410792[_0x321ed2(0x2e9)],'liveShareOperation':_0x3c0eb7[_0x321ed2(0x249)][_0x321ed2(0x249)]};break;}case _0x410792[_0x321ed2(0x487)]:{_0xe15fdd={'eventID':_0x410792['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x3c0eb7[_0x321ed2(0x249)][_0x321ed2(0x249)]};break;}case _0x410792[_0x321ed2(0x47f)]:{_0xe15fdd={'eventID':_0x410792[_0x321ed2(0x47f)],'liveShareRequestHost':_0x3c0eb7[_0x321ed2(0x249)]['data']};break;}case _0x410792[_0x321ed2(0x19c)]:{_0xe15fdd={'eventID':_0x410792[_0x321ed2(0x19c)]};break;}default:_0xe15fdd={'eventID':_0x3c0eb7['data'][_0x321ed2(0x2f6)]};}return JSON[_0x321ed2(0x3d7)]({'cmd':_0x3c0eb7[_0x321ed2(0x20d)],'routeKey':_0x3c0eb7['routeKey'],'collaMsg':_0xe15fdd});}case I[_0x321ed2(0x1ed)]:return JSON[_0x321ed2(0x3d7)]({'cmd':_0x3c0eb7[_0x321ed2(0x20d)],'routeKey':_0x3c0eb7[_0x321ed2(0x1d3)],'joinReq':_0x3c0eb7[_0x321ed2(0x249)]});case I[_0x321ed2(0x163)]:return JSON[_0x321ed2(0x3d7)]({'cmd':_0x3c0eb7[_0x321ed2(0x20d)],'routeKey':_0x3c0eb7[_0x321ed2(0x1d3)],'leaveReq':_0x3c0eb7[_0x321ed2(0x249)]});default:throw new Error(_0x321ed2(0x193));}}var Mn=Object['defineProperty'],An=Object[_0x2e5b1c(0x41c)],Un=(_0xbbe43f,_0x5ba07f,_0x4b8f88,_0x177550)=>{for(var _0xd43256=_0x177550>0x1?void 0x0:_0x177550?An(_0x5ba07f,_0x4b8f88):_0x5ba07f,_0x8adb60=_0xbbe43f['length']-0x1,_0x2fc238;_0x8adb60>=0x0;_0x8adb60--)(_0x2fc238=_0xbbe43f[_0x8adb60])&&(_0xd43256=(_0x177550?_0x2fc238(_0x5ba07f,_0x4b8f88,_0xd43256):_0x2fc238(_0xd43256))||_0xd43256);return _0x177550&&_0xd43256&&Mn(_0x5ba07f,_0x4b8f88,_0xd43256),_0xd43256;},Te=(_0x5a212c,_0x8cafb5)=>(_0x1cd9ec,_0x24bed4)=>_0x8cafb5(_0x1cd9ec,_0x24bed4,_0x5a212c);const Us=_0x5a3236('univer-pro.collaboration-client-socket-service');function Ln(_0x2008a5,_0x4c985b,_0x3c1a53){return _0x2008a5+'/'+_0x4c985b+'/unit/'+_0x3c1a53+'/new_changes';}let Ct=class extends _0x36403b{constructor(_0x399e30,_0x6c3c1d,_0x29edee,_0x266dfe,_0x3218e4){const _0x204a65=_0x2e5b1c;super(),this[_0x204a65(0x140)]=_0x399e30,this[_0x204a65(0x345)]=_0x6c3c1d,this[_0x204a65(0x338)]=_0x29edee,this[_0x204a65(0x2ec)]=_0x266dfe,this[_0x204a65(0x391)]=_0x3218e4;}[_0x2e5b1c(0x181)](_0x388fc8){const _0x230875=_0x2e5b1c,_0x4080dd=this['_ws'][_0x230875(0x181)](_0x388fc8);if(!_0x4080dd)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x4987f5=new _0x3bb8a8(),_0x571d6d=new _0x47a81b();_0x4987f5[_0x230875(0x47b)](_0x4080dd['close$'][_0x230875(0x3c4)](_0x5b6817=>_0x571d6d[_0x230875(0x244)](_0x5b6817))),_0x4987f5[_0x230875(0x47b)](_0x29a7b(()=>_0x571d6d['complete']()));const _0x4a69a5=new _0x47a81b();_0x4987f5[_0x230875(0x47b)](_0x4080dd[_0x230875(0x155)]['subscribe'](_0x335fbb=>_0x4a69a5[_0x230875(0x244)](_0x335fbb))),_0x4987f5[_0x230875(0x47b)](_0x29a7b(()=>_0x4a69a5['complete']()));const _0x2760ef=new _0x47a81b();_0x4987f5[_0x230875(0x47b)](_0x4080dd[_0x230875(0x1f3)]['subscribe'](_0x5d53b6=>{const _0x591d85=_0x230875,_0x4c6e04=Nn(_0x5d53b6);_0x2760ef[_0x591d85(0x244)](_0x4c6e04);})),_0x4987f5[_0x230875(0x47b)](_0x29a7b(()=>_0x2760ef[_0x230875(0x447)]()));let _0x28d305;const _0x5209a3=()=>{const _0x289600=_0x230875;_0x4a69a5['next'](new Event(_0x289600(0x437))),_0x571d6d['next'](new CloseEvent(_0x289600(0x437))),_0x28d305[_0x289600(0x40e)]();};return _0x28d305={'memberID':'','close$':_0x571d6d[_0x230875(0x2f8)](),'error$':_0x4a69a5['asObservable'](),'open$':_0x4080dd[_0x230875(0x46c)],'message$':_0x2760ef[_0x230875(0x2f8)](),'send':_0xc1b3e5=>{const _0x500c90=_0x230875;if(_0xc1b3e5[_0x500c90(0x20d)]===I['INGEST']){if(_0xc1b3e5[_0x500c90(0x249)][_0x500c90(0x2f6)]===_0x410792[_0x500c90(0x34b)]){this['_submitChangeset'](_0x28d305,_0xc1b3e5[_0x500c90(0x249)])[_0x500c90(0x18a)](_0x5bd967=>{const _0x29ad1a=_0x500c90;this[_0x29ad1a(0x2ec)]['error'](_0x5bd967),_0x5209a3();});return;}if(_0xc1b3e5[_0x500c90(0x249)][_0x500c90(0x2f6)]===_0x410792[_0x500c90(0x1b3)]){const _0x20b295=_0xc1b3e5['data'];this[_0x500c90(0x1c2)](_0x20b295)[_0x500c90(0x2e6)](_0xc4b7e0=>{const _0x1f59e6=_0x500c90;_0x2760ef[_0x1f59e6(0x244)]({'cmd':I[_0x1f59e6(0x3e9)],'code':kt['OK'],'routeKey':_0x20b295[_0x1f59e6(0x249)][_0x1f59e6(0x3a4)],'routeType':'','data':{'eventID':_0x410792['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0xc4b7e0}}});})[_0x500c90(0x18a)](_0xb3fac9=>{const _0x5c4c9d=_0x500c90;this[_0x5c4c9d(0x2ec)][_0x5c4c9d(0x30b)](_0xb3fac9),_0x5209a3();});return;}}_0x4080dd[_0x500c90(0x1ef)](yn(_0xc1b3e5));},'close':()=>{const _0x2e002b=_0x230875;_0x4080dd[_0x2e002b(0x40e)](),_0x4987f5[_0x2e002b(0x2fe)]();}},_0x28d305;}async[_0x2e5b1c(0x41b)](_0x37738d,_0x4d6b9c){const _0x107139=_0x2e5b1c;var _0x6d3391;const {unitType:_0x1db2e4,unitID:_0x300a60,changeset:_0x35f2b6}=_0x4d6b9c[_0x107139(0x249)],_0x55ccc8={'unitID':_0x300a60,'memberID':_0x37738d[_0x107139(0x2cd)],'type':_0x1db2e4,'changeset':_0x1859f8(_0x35f2b6)},_0x2660f3=Ln((_0x6d3391=this[_0x107139(0x338)][_0x107139(0x142)](On))!=null?_0x6d3391:Dn,_0x1db2e4,_0x300a60);try{await this[_0x107139(0x140)]['post'](_0x2660f3,{'body':_0x55ccc8});}catch(_0x41da2b){throw this[_0x107139(0x2ec)][_0x107139(0x30b)](_0x107139(0x185),_0x107139(0x354)),_0x41da2b;}}async[_0x2e5b1c(0x1c2)](_0xa0dd5d){const _0x78dcd7=_0x2e5b1c,{unitID:_0x1b6647,from:_0x153d4f,to:_0x205078,unitType:_0x5efa5}=_0xa0dd5d[_0x78dcd7(0x249)];return(await this['_snapshotServerService'][_0x78dcd7(0x160)]({'metadata':void 0x0},{'unitID':_0x1b6647,'type':_0x5efa5,'from':_0x153d4f,'to':_0x205078}))[_0x78dcd7(0x360)];}};Ct=Un([Te(0x0,_0x5c7fae(_0x35343d)),Te(0x1,_0x5c7fae(_0x4058ad)),Te(0x2,_0x401b9d),Te(0x3,_0x1cafe9),Te(0x4,_0x39a0ed)],Ct);const $n=_0x2e5b1c(0x2ce);function jn(_0x29c4b6){const _0x67eb36=_0x2e5b1c;return JSON['stringify'](_0x29c4b6)[_0x67eb36(0x1bb)];}class Ls{constructor(){const _0x31b912=_0x2e5b1c;l(this,_0x31b912(0x44a),new _0x47a81b()),l(this,'commentUpdate$',this[_0x31b912(0x44a)][_0x31b912(0x2f8)]());}['onCommentUpdate'](_0x3420ae){const _0x515e49=_0x2e5b1c;this[_0x515e49(0x44a)][_0x515e49(0x244)](_0x3420ae);}}var xn=Object[_0x2e5b1c(0x2de)],Hn=Object[_0x2e5b1c(0x41c)],kn=(_0x509f3f,_0x5b2ba9,_0x564d24,_0x3be66f)=>{const _0x51c19d=_0x2e5b1c;for(var _0x3cce0c=_0x3be66f>0x1?void 0x0:_0x3be66f?Hn(_0x5b2ba9,_0x564d24):_0x5b2ba9,_0x33c378=_0x509f3f[_0x51c19d(0x1bb)]-0x1,_0x298c0c;_0x33c378>=0x0;_0x33c378--)(_0x298c0c=_0x509f3f[_0x33c378])&&(_0x3cce0c=(_0x3be66f?_0x298c0c(_0x5b2ba9,_0x564d24,_0x3cce0c):_0x298c0c(_0x3cce0c))||_0x3cce0c);return _0x3be66f&&_0x3cce0c&&xn(_0x5b2ba9,_0x564d24,_0x3cce0c),_0x3cce0c;},ns=(_0x599e17,_0x318501)=>(_0x85e5f8,_0x27ee60)=>_0x318501(_0x85e5f8,_0x27ee60,_0x599e17);let oe=class extends _0x36403b{constructor(_0x45d990,_0x254cbd){const _0x42cefe=_0x2e5b1c;super(),l(this,_0x42cefe(0x3bd),new Map()),(this[_0x42cefe(0x1ae)]=_0x45d990,this[_0x42cefe(0x129)]=_0x254cbd,this['disposeWithMe'](_0x29a7b(_0x9334d7(this[_0x42cefe(0x1ae)]['getTypeOfUnitDisposed$'](_0x3bf0d9[_0x42cefe(0x2c7)])[_0x42cefe(0x195)](_0x4b551a(_0x47aaaf=>_0x47aaaf[_0x42cefe(0x426)]())),this[_0x42cefe(0x1ae)][_0x42cefe(0x46a)](_0x3bf0d9[_0x42cefe(0x1de)])[_0x42cefe(0x195)](_0x4b551a(_0x40143e=>_0x40143e[_0x42cefe(0x426)]())),this['_univerInstanceService'][_0x42cefe(0x46a)](_0x3bf0d9[_0x42cefe(0x1b2)])[_0x42cefe(0x195)](_0x4b551a(_0x27f6d4=>_0x27f6d4['getUnitId']())))[_0x42cefe(0x3c4)](_0x349a43=>this[_0x42cefe(0x16a)](_0x349a43)))));}[_0x2e5b1c(0x476)](_0x18c679){const _0x2235f1=_0x2e5b1c;this[_0x2235f1(0x129)][_0x2235f1(0x476)](_0x18c679);}[_0x2e5b1c(0x3a5)](){const _0x28517b=_0x2e5b1c;return this[_0x28517b(0x129)]['getCurrentUser']();}[_0x2e5b1c(0x392)](_0x21b289,_0x14b9cd){const _0x2ddcfe=_0x2e5b1c;let _0x447f3b=this[_0x2ddcfe(0x3bd)][_0x2ddcfe(0x18f)](_0x21b289);_0x447f3b||(_0x447f3b=new Bn(),this[_0x2ddcfe(0x3bd)][_0x2ddcfe(0x1e1)](_0x21b289,_0x447f3b)),_0x447f3b[_0x2ddcfe(0x392)](_0x14b9cd);}[_0x2e5b1c(0x1d0)](_0x3ab3a3,_0xa1b7f6){const _0x356af3=_0x2e5b1c,_0x2de47d=this[_0x356af3(0x3bd)]['get'](_0x3ab3a3);_0x2de47d&&_0x2de47d[_0x356af3(0x1d0)](_0xa1b7f6);}[_0x2e5b1c(0x15b)](_0x21ff91){const _0x25d443=_0x2e5b1c;return this[_0x25d443(0x3bd)][_0x25d443(0x18f)](_0x21ff91);}['getMember'](_0x30837c,_0x3a0a53){const _0x2605a9=_0x2e5b1c,_0x525b55=this[_0x2605a9(0x3bd)]['get'](_0x30837c);if(_0x525b55)return _0x525b55[_0x2605a9(0x23f)](_0x3a0a53);}[_0x2e5b1c(0x16a)](_0x1578d9){const _0x124395=_0x2e5b1c,_0x214b26=this[_0x124395(0x3bd)][_0x124395(0x18f)](_0x1578d9);_0x214b26&&(_0x214b26[_0x124395(0x2fe)](),this[_0x124395(0x3bd)][_0x124395(0x18d)](_0x1578d9));}[_0x2e5b1c(0x2fe)](){const _0x37d60a=_0x2e5b1c;this[_0x37d60a(0x3bd)][_0x37d60a(0x1cd)](_0x52cbba=>_0x52cbba[_0x37d60a(0x2fe)]()),this[_0x37d60a(0x3bd)]['clear']();}};oe=kn([ns(0x0,_0x30b2f2),ns(0x1,_0x5c7fae(_0x1ac2e4))],oe);class Bn extends _0x36403b{constructor(){const _0x3007b8=_0x2e5b1c;super(...arguments),l(this,_0x3007b8(0x17d),new Map());}['dispose'](){const _0x29f6ef=_0x2e5b1c;this[_0x29f6ef(0x17d)][_0x29f6ef(0x198)]();}[_0x2e5b1c(0x392)](_0x14c241){const _0x387ae2=_0x2e5b1c;this[_0x387ae2(0x17d)][_0x387ae2(0x1e1)](_0x14c241[_0x387ae2(0x2cd)],_0x14c241);}['removeMember'](_0x54e39c){const _0x20cc64=_0x2e5b1c;this['_members'][_0x20cc64(0x18d)](_0x54e39c);}[_0x2e5b1c(0x23f)](_0x47cc08){const _0x4f740f=_0x2e5b1c;return this[_0x4f740f(0x17d)][_0x4f740f(0x18f)](_0x47cc08);}}var Vn=Object[_0x2e5b1c(0x2de)],Fn=Object[_0x2e5b1c(0x41c)],Wn=(_0x45a11b,_0xebd231,_0x4b3c05,_0x2638ef)=>{const _0x51b56f=_0x2e5b1c;for(var _0x389f1a=_0x2638ef>0x1?void 0x0:_0x2638ef?Fn(_0xebd231,_0x4b3c05):_0xebd231,_0x2cff98=_0x45a11b[_0x51b56f(0x1bb)]-0x1,_0x3ac219;_0x2cff98>=0x0;_0x2cff98--)(_0x3ac219=_0x45a11b[_0x2cff98])&&(_0x389f1a=(_0x2638ef?_0x3ac219(_0xebd231,_0x4b3c05,_0x389f1a):_0x3ac219(_0x389f1a))||_0x389f1a);return _0x2638ef&&_0x389f1a&&Vn(_0xebd231,_0x4b3c05,_0x389f1a),_0x389f1a;},X=(_0x4ef8a2,_0x10a62e)=>(_0xeaf34c,_0x5f46dc)=>_0x10a62e(_0xeaf34c,_0x5f46dc,_0x4ef8a2),W=(_0x17889d=>(_0x17889d[_0x17889d[_0x2e5b1c(0x16e)]=0x0]=_0x2e5b1c(0x16e),_0x17889d[_0x17889d[_0x2e5b1c(0x3dd)]=0x1]=_0x2e5b1c(0x3dd),_0x17889d[_0x17889d[_0x2e5b1c(0x1ac)]=0x2]='OFFLINE',_0x17889d[_0x17889d[_0x2e5b1c(0x13f)]=0x3]=_0x2e5b1c(0x13f),_0x17889d))(W||{});let bt=class extends _0x4bff65{constructor(_0x214017,_0x8ebca7,_0x394b8c,_0x3deada,_0x3fbe87,_0x447eb4,_0x129bc0,_0x4aaa3c,_0x51e90f,_0x2b85db){const _0x3dfc67=_0x2e5b1c;super(),l(this,'_sessionStatus$',new _0x16e81a(0x0)),l(this,'sessionStatus$',this[_0x3dfc67(0x3b2)][_0x3dfc67(0x2f8)]()),l(this,_0x3dfc67(0x33c),new _0x47a81b()),l(this,_0x3dfc67(0x372),this[_0x3dfc67(0x33c)]['asObservable']()),l(this,_0x3dfc67(0x1fe)),l(this,_0x3dfc67(0x169)),l(this,_0x3dfc67(0x2e3)),l(this,_0x3dfc67(0x178),!0x1),l(this,_0x3dfc67(0x418),null),(this['_unitID']=_0x214017,this['_logService']=_0x394b8c,this[_0x3dfc67(0x3d9)]=_0x3deada,this[_0x3dfc67(0x396)]=_0x3fbe87,this[_0x3dfc67(0x338)]=_0x447eb4,this['_localeService']=_0x129bc0,this[_0x3dfc67(0x2a9)]=_0x4aaa3c,this[_0x3dfc67(0x175)]=_0x51e90f,this['_telemetryService']=_0x2b85db,this[_0x3dfc67(0x178)]=!!this[_0x3dfc67(0x41d)],_0x8ebca7[_0x3dfc67(0x195)](_0x2123e0(this[_0x3dfc67(0x3be)]))[_0x3dfc67(0x3c4)](_0x3b26ae=>{const _0x2e0cc4=_0x3dfc67;var _0x3710cf;typeof _0x3b26ae>'u'||(this[_0x2e0cc4(0x1fe)]=_0x3b26ae,_0x3b26ae?(this[_0x2e0cc4(0x20c)](_0x3b26ae),this[_0x2e0cc4(0x169)]=_0x3b26ae['message$']['subscribe'](_0x468205=>{const _0x40e2db=_0x2e0cc4;_0x468205[_0x40e2db(0x1d3)]===this[_0x40e2db(0x231)]&&this[_0x40e2db(0x34e)](_0x468205);})):(this['_throwTelemetryCollaborationNewChangeset'](),this['_sessionStatus$'][_0x2e0cc4(0x244)](0x2),(_0x3710cf=this[_0x2e0cc4(0x169)])==null||_0x3710cf['unsubscribe'](),this[_0x2e0cc4(0x169)]=null));}),this[_0x3dfc67(0x294)](this[_0x3dfc67(0x3d9)][_0x3dfc67(0x22d)](()=>{const _0x558efc=_0x3dfc67;var _0x57783a;(_0x57783a=this[_0x558efc(0x1fe)])==null||_0x57783a[_0x558efc(0x1ef)]({'cmd':I['LEAVE'],'data':{'roomID':this['_unitID']}});})));}get[_0x2e5b1c(0x3aa)](){const _0x2ee779=_0x2e5b1c;return this[_0x2ee779(0x3b2)][_0x2ee779(0x131)]();}[_0x2e5b1c(0x146)](){const _0x376d85=_0x2e5b1c;var _0x562c86,_0x46c2d;return(_0x46c2d=(_0x562c86=this[_0x376d85(0x1fe)])==null?void 0x0:_0x562c86[_0x376d85(0x2cd)])!=null?_0x46c2d:null;}['dispose'](){const _0x276808=_0x2e5b1c;super[_0x276808(0x2fe)](),this[_0x276808(0x3be)][_0x276808(0x244)](),this['dispose$'][_0x276808(0x447)]();}[_0x2e5b1c(0x40e)](){const _0x18846a=_0x2e5b1c;var _0x5a7a1b,_0x52c174;this[_0x18846a(0x194)](),(_0x5a7a1b=this[_0x18846a(0x1fe)])==null||_0x5a7a1b['send']({'cmd':I[_0x18846a(0x163)],'data':{'roomID':this[_0x18846a(0x231)]}}),(_0x52c174=this[_0x18846a(0x1fe)])==null||_0x52c174['close'](),this['_event$'][_0x18846a(0x447)](),this[_0x18846a(0x3b2)]['complete'](),this[_0x18846a(0x2fe)]();}[_0x2e5b1c(0x34e)](_0x5afa64){const _0x4b92e4=_0x2e5b1c;_0x5afa64['cmd']===I[_0x4b92e4(0x1ed)]?this[_0x4b92e4(0x3fa)](_0x5afa64):_0x5afa64['cmd']===I[_0x4b92e4(0x3e9)]&&this[_0x4b92e4(0x48f)](_0x5afa64);}[_0x2e5b1c(0x20c)](_0x3d280e){const _0x3a8fd9=_0x2e5b1c;this[_0x3a8fd9(0x3b2)][_0x3a8fd9(0x244)](0x1),_0x3d280e[_0x3a8fd9(0x1ef)]({'cmd':I[_0x3a8fd9(0x1ed)],'routeKey':this[_0x3a8fd9(0x231)],'routeType':'','data':{'rooms':[{'roomID':this[_0x3a8fd9(0x231)]}]}});}['_onJoinRoomEvent'](_0x29b178){const _0x49b95d=_0x2e5b1c;var _0x3a9e19;if(_0x29b178[_0x49b95d(0x2fa)]===kt['FAIL']){this[_0x49b95d(0x396)][_0x49b95d(0x367)]({'type':_0x68ddaa[_0x49b95d(0x425)],'content':this[_0x49b95d(0x452)]['t']('session.room-full')}),this[_0x49b95d(0x3b2)][_0x49b95d(0x244)](0x2);return;}this[_0x49b95d(0x3b2)]['next'](0x3);const _0x55589a=(_0x3a9e19=_0x29b178['data']['roomInfos'][this[_0x49b95d(0x231)]])==null?void 0x0:_0x3a9e19['members'];_0x55589a&&_0x55589a[_0x49b95d(0x1cd)](_0x36c4de=>this[_0x49b95d(0x2a9)][_0x49b95d(0x392)](this[_0x49b95d(0x231)],_0x36c4de));}[_0x2e5b1c(0x48f)](_0xb80afb){const _0x4edd84=_0x2e5b1c;try{const _0x1bbdb1=_0xb80afb[_0x4edd84(0x249)];switch(_0x1bbdb1['eventID']){case _0x410792[_0x4edd84(0x3e0)]:this[_0x4edd84(0x1d2)](_0x1bbdb1),this[_0x4edd84(0x33c)][_0x4edd84(0x244)](_0x1bbdb1);break;case _0x410792[_0x4edd84(0x306)]:this[_0x4edd84(0x477)](_0x1bbdb1),this[_0x4edd84(0x33c)][_0x4edd84(0x244)](_0x1bbdb1);break;case _0x410792['CHANGESET_ACK']:this[_0x4edd84(0x1dd)](),this[_0x4edd84(0x1c9)](),this[_0x4edd84(0x33c)][_0x4edd84(0x244)](_0x1bbdb1);break;case _0x410792[_0x4edd84(0x161)]:this[_0x4edd84(0x2ec)][_0x4edd84(0x30b)]('save\x20fail\x20reason\x20is\x20'+JSON[_0x4edd84(0x3d7)](_0x1bbdb1)),this['_event$'][_0x4edd84(0x244)](_0x1bbdb1);break;case _0x410792[_0x4edd84(0x256)]:this[_0x4edd84(0x175)]['onCommentUpdate'](_0x1bbdb1[_0x4edd84(0x249)]),this[_0x4edd84(0x33c)][_0x4edd84(0x244)](_0x1bbdb1);break;default:this[_0x4edd84(0x33c)][_0x4edd84(0x244)](_0x1bbdb1);}}catch(_0x3dae2a){this[_0x4edd84(0x2ec)][_0x4edd84(0x30b)](_0x3dae2a,_0xb80afb);}}[_0x2e5b1c(0x1d2)](_0x29d397){const _0x1f2227=_0x2e5b1c;this[_0x1f2227(0x2a9)][_0x1f2227(0x392)](this[_0x1f2227(0x231)],_0x29d397[_0x1f2227(0x249)]);}[_0x2e5b1c(0x477)](_0x29e66b){const _0x46cf51=_0x2e5b1c;this['_memberService'][_0x46cf51(0x1d0)](this[_0x46cf51(0x231)],_0x29e66b[_0x46cf51(0x249)][_0x46cf51(0x2cd)]);}async[_0x2e5b1c(0x1ef)](_0x1a74ed,_0x504ce8){const _0x523684=_0x2e5b1c;if(this[_0x523684(0x3aa)]!==0x3||!this[_0x523684(0x1fe)])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x1a74ed['eventID']===_0x410792['SUBMIT_CHANGESET']&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x523684(0x35b)](_0x1a74ed)),this[_0x523684(0x1fe)]['send']({'cmd':I[_0x523684(0x22c)],'routeKey':_0x504ce8,'routeType':'','data':_0x1a74ed});}catch(_0x5c689f){this[_0x523684(0x2ec)]['error'](_0x5c689f);}}[_0x2e5b1c(0x371)](){const _0x4b52fe=_0x2e5b1c;var _0x5b485c;this[_0x4b52fe(0x2e3)]=window[_0x4b52fe(0x1f4)](()=>{const _0x1c20c2=_0x4b52fe;this[_0x1c20c2(0x2e3)]=null,this[_0x1c20c2(0x396)][_0x1c20c2(0x367)]({'type':_0x68ddaa[_0x1c20c2(0x253)],'content':this[_0x1c20c2(0x452)]['t']('session.collaboration-timeout')});},(_0x5b485c=this[_0x4b52fe(0x338)][_0x4b52fe(0x142)](Ns))!=null?_0x5b485c:ys);}[_0x2e5b1c(0x1c9)](){const _0x23b8b1=_0x2e5b1c;this[_0x23b8b1(0x2e3)]&&(clearTimeout(this['_collaborationTimeoutTimer']),this['_collaborationTimeoutTimer']=null);}['_startTelemetryCollaborationNewChangeset'](_0x359754){const _0x3e9bb3=_0x2e5b1c;if(!this[_0x3e9bb3(0x178)])return;const {data:_0x46dc0c}=_0x359754,{unitID:_0x1ebf52,changeset:_0x3594c1}=_0x46dc0c,{mutations:_0x3b937d,type:_0x2bc192}=_0x3594c1;this[_0x3e9bb3(0x418)]={'unitId':_0x1ebf52,'type':_0x2bc192,'startTime':performance[_0x3e9bb3(0x31d)](),'stopTime':0x0,'duration':0x0,'size':jn(_0x3b937d)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x4f0540=_0x2e5b1c;if(this[_0x4f0540(0x178)]){if(!this['_telemetryInfo']){this['_logService'][_0x4f0540(0x30b)](_0x4f0540(0x185),_0x4f0540(0x235));return;}this[_0x4f0540(0x418)][_0x4f0540(0x388)]=performance[_0x4f0540(0x31d)](),this[_0x4f0540(0x418)][_0x4f0540(0x399)]=this[_0x4f0540(0x418)][_0x4f0540(0x388)]-this[_0x4f0540(0x418)][_0x4f0540(0x32e)],this[_0x4f0540(0x41d)][_0x4f0540(0x213)]($n,this[_0x4f0540(0x418)]),this[_0x4f0540(0x418)]=null;}}[_0x2e5b1c(0x194)](){const _0x34eccb=_0x2e5b1c;this[_0x34eccb(0x418)]=null;}};function _0x5851(_0x28761a,_0x28dfbc){const _0x3164bd=_0x3164();return _0x5851=function(_0x585103,_0x49a319){_0x585103=_0x585103-0x121;let _0x5b25b1=_0x3164bd[_0x585103];return _0x5b25b1;},_0x5851(_0x28761a,_0x28dfbc);}bt=Wn([X(0x2,_0x1cafe9),X(0x3,_0x4c2a62),X(0x4,_0x29e945),X(0x5,_0x401b9d),X(0x6,_0x5c7fae(_0x12e5b3)),X(0x7,_0x5c7fae(oe)),X(0x8,_0x5c7fae(Ls)),X(0x9,_0x5723b6(_0x45444c))],bt);var Gn=Object[_0x2e5b1c(0x2de)],Yn=Object[_0x2e5b1c(0x41c)],Kn=(_0x40db65,_0xd8e092,_0x59f2b0,_0x2a2955)=>{const _0x3132de=_0x2e5b1c;for(var _0x95b6eb=_0x2a2955>0x1?void 0x0:_0x2a2955?Yn(_0xd8e092,_0x59f2b0):_0xd8e092,_0x447ae3=_0x40db65[_0x3132de(0x1bb)]-0x1,_0x55c86f;_0x447ae3>=0x0;_0x447ae3--)(_0x55c86f=_0x40db65[_0x447ae3])&&(_0x95b6eb=(_0x2a2955?_0x55c86f(_0xd8e092,_0x59f2b0,_0x95b6eb):_0x55c86f(_0x95b6eb))||_0x95b6eb);return _0x2a2955&&_0x95b6eb&&Gn(_0xd8e092,_0x59f2b0,_0x95b6eb),_0x95b6eb;},ue=(_0x76b53b,_0x280a99)=>(_0x432e94,_0x364d93)=>_0x280a99(_0x432e94,_0x364d93,_0x76b53b);let ae=class extends _0x36403b{constructor(_0x1e4de9,_0x48b75d,_0x105e52,_0x282577,_0x410226,_0x36f661){const _0x1dd0d7=_0x2e5b1c;super(),l(this,_0x1dd0d7(0x128),new _0x16e81a(void 0x0)),l(this,_0x1dd0d7(0x13a),this[_0x1dd0d7(0x128)][_0x1dd0d7(0x2f8)]()),l(this,_0x1dd0d7(0x184),null),l(this,_0x1dd0d7(0x17a),new Map()),l(this,_0x1dd0d7(0x279),new _0x16e81a(W[_0x1dd0d7(0x16e)])),l(this,'status$',this[_0x1dd0d7(0x279)][_0x1dd0d7(0x2f8)]()),l(this,'_socketReady',!0x1),l(this,'_retryConnectingTimer'),l(this,_0x1dd0d7(0x1cf),0x0),l(this,'_sendHeartbeatTimer'),l(this,_0x1dd0d7(0x1e0)),(this[_0x1dd0d7(0x3ac)]=_0x1e4de9,this[_0x1dd0d7(0x452)]=_0x48b75d,this['_messageService']=_0x105e52,this[_0x1dd0d7(0x2ec)]=_0x282577,this[_0x1dd0d7(0x338)]=_0x410226,this[_0x1dd0d7(0x28b)]=_0x36f661);}get[_0x2e5b1c(0x1fe)](){const _0x23a66b=_0x2e5b1c;return this['_socket$'][_0x23a66b(0x131)]();}['dispose'](){const _0x86c530=_0x2e5b1c;super[_0x86c530(0x2fe)](),this[_0x86c530(0x17a)][_0x86c530(0x1cd)](_0x52f5a3=>_0x52f5a3['dispose']()),this[_0x86c530(0x17a)][_0x86c530(0x198)](),this[_0x86c530(0x279)][_0x86c530(0x447)]();}async[_0x2e5b1c(0x205)](_0x54aa4e){const _0x575620=_0x2e5b1c;if(this[_0x575620(0x17a)][_0x575620(0x250)](_0x54aa4e))return this[_0x575620(0x17a)][_0x575620(0x18f)](_0x54aa4e);this[_0x575620(0x1a1)]();const _0x1b6211=this[_0x575620(0x3ac)]['createInstance'](bt,_0x54aa4e,this[_0x575620(0x128)][_0x575620(0x2f8)]());return this['_sessions'][_0x575620(0x1e1)](_0x54aa4e,_0x1b6211),_0x1b6211;}[_0x2e5b1c(0x31a)](_0x697c09){const _0x137834=_0x2e5b1c;var _0x3f3553;const _0x2230e6=this[_0x137834(0x17a)]['get'](_0x697c09);_0x2230e6&&(this[_0x137834(0x17a)][_0x137834(0x18d)](_0x697c09),_0x2230e6[_0x137834(0x40e)]()),this['_sessions'][_0x137834(0x362)]||(_0x3f3553=this[_0x137834(0x1fe)])==null||_0x3f3553[_0x137834(0x40e)]();}['reconnect'](){const _0x5a35b9=_0x2e5b1c;this[_0x5a35b9(0x1cf)]=0x0,this[_0x5a35b9(0x2b8)]!=null&&(clearTimeout(this['_retryConnectingTimer']),this[_0x5a35b9(0x2b8)]=null),this['_tryReconnect']();}[_0x2e5b1c(0x329)](){const _0xf7c1f3=_0x2e5b1c;var _0xce65ec;const _0x109144=(_0xce65ec=this[_0xf7c1f3(0x338)][_0xf7c1f3(0x142)](gn))!=null?_0xce65ec:Sn,_0x5eb6af=this[_0xf7c1f3(0x28b)][_0xf7c1f3(0x181)](_0x109144);return this[_0xf7c1f3(0x184)]=_0x5eb6af,_0x5eb6af;}[_0x2e5b1c(0x1a1)](){const _0x1fb1c0=_0x2e5b1c;var _0x5cd866,_0x49b01b;try{const _0x3507e5=(_0x49b01b=(_0x5cd866=this['_socket'])!=null?_0x5cd866:this[_0x1fb1c0(0x184)])!=null?_0x49b01b:this[_0x1fb1c0(0x329)]();if(_0x3507e5){const _0x2ab53a=_0x3507e5[_0x1fb1c0(0x1ef)];_0x3507e5['send']=_0x571029=>(this[_0x1fb1c0(0x36b)](),_0x2ab53a[_0x1fb1c0(0x446)](_0x3507e5,[_0x571029])),_0x3507e5[_0x1fb1c0(0x1f3)][_0x1fb1c0(0x3c4)](_0x49deeb=>this[_0x1fb1c0(0x22a)](_0x3507e5,_0x49deeb)),_0x3507e5[_0x1fb1c0(0x155)][_0x1fb1c0(0x195)](_0x590d71(0x1))[_0x1fb1c0(0x3c4)](_0x1dc9b2=>this['_logService']['error'](_0x1fb1c0(0x38c),_0x1dc9b2)),_0x3507e5[_0x1fb1c0(0x46c)]['pipe'](_0x590d71(0x1))[_0x1fb1c0(0x3c4)](()=>{const _0x25adb9=_0x1fb1c0;this[_0x25adb9(0x1d7)](_0x3507e5);}),_0x3507e5[_0x1fb1c0(0x32d)][_0x1fb1c0(0x195)](_0x590d71(0x1))[_0x1fb1c0(0x3c4)](_0x3f2c43=>{const _0x17dbd0=_0x1fb1c0;this[_0x17dbd0(0x2ec)][_0x17dbd0(0x166)]('[CollaborationSessionService]',_0x17dbd0(0x299),_0x3f2c43),this['_onConnectionFailed']();});}}catch(_0x349f3c){this[_0x1fb1c0(0x2ec)][_0x1fb1c0(0x30b)](_0x349f3c),this['_onConnectionFailed']();}}['_onConnectionOpen'](_0x4568ff){const _0x5202e6=_0x2e5b1c;this[_0x5202e6(0x2ec)][_0x5202e6(0x166)](_0x5202e6(0x217),_0x5202e6(0x187)),_0x4568ff[_0x5202e6(0x1ef)]({'cmd':I['HELLO']}),this[_0x5202e6(0x36b)](),this['_listenToOfflineEvent']();}[_0x2e5b1c(0x441)](){const _0x301a6a=_0x2e5b1c,_0x8789ae=()=>{const _0xf3539e=_0x5851;this[_0xf3539e(0x403)](),this[_0xf3539e(0x180)](),window[_0xf3539e(0x1d8)]('offline',_0x8789ae);};window[_0x301a6a(0x48d)]('offline',_0x8789ae);}['_onOffline'](){const _0x1c4ae0=_0x2e5b1c;this[_0x1c4ae0(0x273)]=!0x1,this[_0x1c4ae0(0x279)][_0x1c4ae0(0x244)](W[_0x1c4ae0(0x1ac)]),this['_socket$'][_0x1c4ae0(0x244)](null),this['_clearTimeoutTimer'](),this['_clearHeartbeatTimer']();}['_onConnectionFailed'](){const _0x5ae076=_0x2e5b1c;var _0x5088bd;this[_0x5ae076(0x403)](),this[_0x5ae076(0x1cf)]<((_0x5088bd=this[_0x5ae076(0x338)][_0x5ae076(0x142)](Cn))!=null?_0x5088bd:bn)?(this[_0x5ae076(0x396)][_0x5ae076(0x367)]({'key':_0x5ae076(0x2a1),'type':_0x68ddaa[_0x5ae076(0x425)],'content':this[_0x5ae076(0x452)]['t'](_0x5ae076(0x226))}),this[_0x5ae076(0x148)]()):(this['_messageService'][_0x5ae076(0x367)]({'key':'collaboration-session-retry','type':_0x68ddaa[_0x5ae076(0x253)],'content':this[_0x5ae076(0x452)]['t'](_0x5ae076(0x2ff))}),this['_listenToOnlineEvent']());}[_0x2e5b1c(0x180)](){const _0x10d0b7=_0x2e5b1c,_0x5a8078=()=>{const _0x3b323f=_0x5851;this[_0x3b323f(0x332)](),window[_0x3b323f(0x1d8)]('online',_0x5a8078);};window[_0x10d0b7(0x48d)](_0x10d0b7(0x364),_0x5a8078),this[_0x10d0b7(0x128)][_0x10d0b7(0x195)](_0x48e324(_0x534632=>!!_0x534632),_0x590d71(0x1))[_0x10d0b7(0x3c4)](()=>{const _0x5feb83=_0x10d0b7;window[_0x5feb83(0x1d8)](_0x5feb83(0x364),_0x5a8078);});}[_0x2e5b1c(0x148)](){const _0x16acb8=_0x2e5b1c;var _0x198d48;const _0x3e4f33=this[_0x16acb8(0x1cf)],_0x5a0971=_0x3e4f33===0x0?0x0:((_0x198d48=this[_0x16acb8(0x338)]['getConfig'](In))!=null?_0x198d48:En)*0x2**_0x3e4f33;this[_0x16acb8(0x2b8)]=window['setTimeout'](()=>{const _0x1736e8=_0x16acb8;clearTimeout(this[_0x1736e8(0x2b8)]),this[_0x1736e8(0x2b8)]=null,this['_tryEnsureSocket']();},_0x5a0971),this['_retryCount']+=0x1;}[_0x2e5b1c(0x22a)](_0x13eb8c,_0x1fbc37){const _0x24e149=_0x2e5b1c,{cmd:_0x2db9c5}=_0x1fbc37;_0x2db9c5===I['HELLO']&&!this[_0x24e149(0x273)]&&(_0x13eb8c[_0x24e149(0x2cd)]=_0x1fbc37['data']['memberID'],this[_0x24e149(0x128)][_0x24e149(0x244)](_0x13eb8c),this[_0x24e149(0x279)]['next'](W[_0x24e149(0x13f)]),this['_socketReady']=!0x0,this[_0x24e149(0x184)]=null),_0x2db9c5===I['HEARTBEAT']&&this[_0x24e149(0x2af)](),this[_0x24e149(0x36b)]();}[_0x2e5b1c(0x36b)](){const _0x4156e2=_0x2e5b1c;var _0x25d1a9;this[_0x4156e2(0x210)](),this[_0x4156e2(0x387)]=window[_0x4156e2(0x1f4)](()=>this[_0x4156e2(0x183)](),(_0x25d1a9=this['_configService']['getConfig'](pn))!=null?_0x25d1a9:vn);}['_sendHeartbeat'](){const _0x252dc3=_0x2e5b1c;this[_0x252dc3(0x1fe)]['send']({'cmd':I['HEARTBEAT']}),this[_0x252dc3(0x355)]();}['_waitForHeartbeatResponse'](){const _0x33481c=_0x2e5b1c;var _0x18d981;this['_timeoutTimer']=window['setTimeout'](()=>this[_0x33481c(0x220)](),(_0x18d981=this[_0x33481c(0x338)][_0x33481c(0x142)](Ns))!=null?_0x18d981:ys);}['_clearHeartbeatTimer'](){const _0x118f83=_0x2e5b1c;this[_0x118f83(0x387)]!=null&&(clearTimeout(this[_0x118f83(0x387)]),this[_0x118f83(0x387)]=null);}[_0x2e5b1c(0x2af)](){const _0x546cda=_0x2e5b1c;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x546cda(0x1e0)]),this['_timeoutTimer']=null);}};ae=Kn([ue(0x0,_0x5c7fae(_0x5d259e)),ue(0x1,_0x5c7fae(_0x12e5b3)),ue(0x2,_0x29e945),ue(0x3,_0x1cafe9),ue(0x4,_0x401b9d),ue(0x5,Us)],ae);var Xn=Object[_0x2e5b1c(0x2de)],Jn=Object[_0x2e5b1c(0x41c)],zn=(_0x85e4f4,_0x576e57,_0x5396f2,_0x28af1e)=>{const _0x512518=_0x2e5b1c;for(var _0x9ca1dc=_0x28af1e>0x1?void 0x0:_0x28af1e?Jn(_0x576e57,_0x5396f2):_0x576e57,_0x4c4ae0=_0x85e4f4[_0x512518(0x1bb)]-0x1,_0x48ef41;_0x4c4ae0>=0x0;_0x4c4ae0--)(_0x48ef41=_0x85e4f4[_0x4c4ae0])&&(_0x9ca1dc=(_0x28af1e?_0x48ef41(_0x576e57,_0x5396f2,_0x9ca1dc):_0x48ef41(_0x9ca1dc))||_0x9ca1dc);return _0x28af1e&&_0x9ca1dc&&Xn(_0x576e57,_0x5396f2,_0x9ca1dc),_0x9ca1dc;},ht=(_0x25f08c,_0x306aab)=>(_0x32f8c6,_0x35c0df)=>_0x306aab(_0x32f8c6,_0x35c0df,_0x25f08c);let Ze=class{constructor(_0x2ab279,_0x128254,_0x19ee9f){const _0x267981=_0x2e5b1c;this[_0x267981(0x3ac)]=_0x2ab279,this[_0x267981(0x3cf)]=_0x128254,this['_renderManagerService']=_0x19ee9f;}[_0x2e5b1c(0x272)](_0x5e8006){const _0x4db21d=_0x2e5b1c;this[_0x4db21d(0x436)](_0x5e8006),this['_transformPreviousActiveRange'](_0x5e8006);}[_0x2e5b1c(0x28e)](_0x2c42b2){const _0x1f9a0d=_0x2e5b1c,{unitID:_0x4e2520}=_0x2c42b2,_0x38c76f=this[_0x1f9a0d(0x3c0)][_0x1f9a0d(0x474)](_0x4e2520)['with'](_0x3b1e58),{redoCache:_0x5afa3a}=_0x38c76f[_0x1f9a0d(0x288)]();if(_0x5afa3a[_0x1f9a0d(0x1bb)]===0x0)return _0x2c42b2;let _0x44502c=_0x3cea4b['deepClone'](_0x2c42b2['mutations'][0x0]);for(let _0x30b1c3=0x0;_0x30b1c3<_0x5afa3a[_0x1f9a0d(0x1bb)];_0x30b1c3++){const _0x2e369f={'id':_0x1f9a0d(0x3ad),'params':{..._0x5afa3a[_0x30b1c3]}},_0x3d8ed4=this[_0x1f9a0d(0x3cf)][_0x1f9a0d(0x2d7)](_0x44502c,_0x2e369f,!0x1);if(_0x517f04(_0x3d8ed4))throw _0x3d8ed4[_0x1f9a0d(0x30b)];_0x44502c=_0x3d8ed4[_0x1f9a0d(0x43e)];}return{..._0x3cea4b[_0x1f9a0d(0x3b7)](_0x2c42b2),'mutations':[_0x44502c]};}['_transformUndoRedoStack'](_0x4d993d){const _0x153ab8=_0x2e5b1c,{unitID:_0x2512ad}=_0x4d993d,_0x4173db=this['_renderManagerService']['getRenderById'](_0x2512ad)[_0x153ab8(0x286)](_0x3b1e58),{undoCache:_0x26747f,redoCache:_0x4b8670}=_0x4173db['getUndoRedoMutationParamsCache']();if(_0x26747f[_0x153ab8(0x1bb)]===0x0||_0x4b8670[_0x153ab8(0x1bb)]===0x0)return;const _0x8107b=[],_0x305426=[];let _0x3282f5=_0x3cea4b[_0x153ab8(0x3b7)](_0x4d993d[_0x153ab8(0x225)][0x0]),_0x3d54ad=_0x3cea4b[_0x153ab8(0x3b7)](_0x4d993d[_0x153ab8(0x225)][0x0]);for(let _0x38a088=_0x26747f[_0x153ab8(0x1bb)]-0x1;_0x38a088>=0x0;_0x38a088--){const _0x49813e={'id':_0x153ab8(0x3ad),'params':{..._0x26747f[_0x38a088]}},_0x2de202={'id':_0x153ab8(0x3ad),'params':{..._0x4b8670[_0x38a088]}},_0x1a5735=this[_0x153ab8(0x3cf)][_0x153ab8(0x2d7)](_0x3282f5,_0x49813e,!0x1),_0x3655c2=this['_transformService']['transformMutation'](_0x3d54ad,_0x2de202,!0x1);if(_0x517f04(_0x1a5735))throw _0x1a5735[_0x153ab8(0x30b)];if(_0x517f04(_0x3655c2))throw _0x3655c2['error'];_0x8107b[_0x153ab8(0x2f4)](_0x1a5735[_0x153ab8(0x366)][_0x153ab8(0x27b)]),_0x305426[_0x153ab8(0x2f4)](_0x3655c2[_0x153ab8(0x366)][_0x153ab8(0x27b)]),_0x3282f5=_0x1a5735[_0x153ab8(0x43e)],_0x3d54ad=_0x3655c2['m1Prime'];}_0x4173db['setUndoRedoMutationParamsCache']({'undoCache':_0x8107b,'redoCache':_0x305426});}[_0x2e5b1c(0x408)](_0x9dde3d){const _0x40ec69=_0x2e5b1c,{unitID:_0x12d994}=_0x9dde3d,_0x15e565=this[_0x40ec69(0x3c0)][_0x40ec69(0x474)](_0x12d994)[_0x40ec69(0x286)](_0x3b1e58),_0x1380d0=_0x15e565[_0x40ec69(0x361)]();if(_0x1380d0==null)return;const _0x227070=[{'id':_0x40ec69(0x3ad),'params':{'unitId':_0x9dde3d['unitID'],'actions':null,'textRanges':[_0x1380d0]}}],_0x49994e=this[_0x40ec69(0x3cf)][_0x40ec69(0x389)](_0x9dde3d,_0x227070);if(!_0x24d018(_0x49994e))throw _0x49994e[_0x40ec69(0x30b)];const _0xe47a43=_0x49994e[_0x40ec69(0x366)][0x0][_0x40ec69(0x27b)]['textRanges'];Array[_0x40ec69(0x434)](_0xe47a43)&&_0xe47a43[_0x40ec69(0x1bb)]&&_0x15e565['setActiveRange'](_0xe47a43[0x0]);}};Ze=zn([ht(0x0,_0x5c7fae(_0x5d259e)),ht(0x1,_0x4e0f96),ht(0x2,_0x363058)],Ze);var qn=Object['defineProperty'],Zn=Object[_0x2e5b1c(0x41c)],Qn=(_0xe83b50,_0x2caad6,_0x270acf,_0x21a9b8)=>{for(var _0x204a7c=_0x21a9b8>0x1?void 0x0:_0x21a9b8?Zn(_0x2caad6,_0x270acf):_0x2caad6,_0x10e427=_0xe83b50['length']-0x1,_0x5b6eb8;_0x10e427>=0x0;_0x10e427--)(_0x5b6eb8=_0xe83b50[_0x10e427])&&(_0x204a7c=(_0x21a9b8?_0x5b6eb8(_0x2caad6,_0x270acf,_0x204a7c):_0x5b6eb8(_0x204a7c))||_0x204a7c);return _0x21a9b8&&_0x204a7c&&qn(_0x2caad6,_0x270acf,_0x204a7c),_0x204a7c;},Re=(_0x454235,_0x2d1dc3)=>(_0x3c8165,_0xbb04a9)=>_0x2d1dc3(_0x3c8165,_0xbb04a9,_0x454235);let D=class extends _0x36403b{constructor(_0x4ba0a9,_0x1f5282,_0x2e3015,_0x170ef8,_0x18a0ab){const _0x4253fc=_0x2e5b1c;super(),l(this,_0x4253fc(0x3f9),new Map()),l(this,_0x4253fc(0x17f),new Map()),l(this,_0x4253fc(0x45f),!0x1),(this['_configService']=_0x4ba0a9,this[_0x4253fc(0x2fd)]=_0x1f5282,this[_0x4253fc(0x3d9)]=_0x2e3015,this[_0x4253fc(0x452)]=_0x170ef8,this[_0x4253fc(0x26e)]=_0x18a0ab,this[_0x4253fc(0x471)]());}[_0x2e5b1c(0x17c)](){this['_disabled']=!0x0;}[_0x2e5b1c(0x2db)](){const _0x2f914c=_0x2e5b1c;this[_0x2f914c(0x45f)]=!0x1;}[_0x2e5b1c(0x2fe)](){const _0x312b42=_0x2e5b1c;this['exhaustSavingTask']()['then'](()=>super[_0x312b42(0x2fe)]());}async[_0x2e5b1c(0x1cb)](_0xf5dc3){const _0x141417=_0x2e5b1c;return this[_0x141417(0x45f)]?null:this[_0x141417(0x2fd)]['getItem'](rs(_0xf5dc3));}async[_0x2e5b1c(0x1b7)](_0x3e339e,_0x35cc83){const _0x5c6e11=_0x2e5b1c;return!!this[_0x5c6e11(0x2fd)][_0x5c6e11(0x375)](_0x3e339e,_0x35cc83);}['updateOfflineData'](_0x3b5d06,_0x515bd3,_0x4eb792,_0x34ba58){const _0x2636cd=_0x2e5b1c,_0x499c43=this[_0x2636cd(0x26e)][_0x2636cd(0x135)](_0x3b5d06);this[_0x2636cd(0x3f9)][_0x2636cd(0x1e1)](_0x3b5d06,{'unitID':_0x3b5d06,'type':_0x515bd3,'awaitingChangeset':_0x4eb792,'mutations':_0x34ba58,'rev':_0x499c43}),this[_0x2636cd(0x17f)][_0x2636cd(0x250)](_0x3b5d06)||this[_0x2636cd(0x1f2)](_0x3b5d06);}[_0x2e5b1c(0x1f2)](_0x289791){const _0xbbd8e2=_0x2e5b1c,_0x48abbd=this[_0xbbd8e2(0x218)]();_0x48abbd===0x0?this['_saveCache'](_0x289791):this[_0xbbd8e2(0x17f)][_0xbbd8e2(0x1e1)](_0x289791,setTimeout(()=>this[_0xbbd8e2(0x1b8)](_0x289791),_0x48abbd));}[_0x2e5b1c(0x218)](){const _0x1ce285=_0x2e5b1c;var _0x5e2db4;return(_0x5e2db4=this[_0x1ce285(0x338)][_0x1ce285(0x142)](Tn))!=null?_0x5e2db4:Rn;}[_0x2e5b1c(0x1b8)](_0x3a8c9f){const _0x341924=_0x2e5b1c,_0x3ff317=this[_0x341924(0x17f)][_0x341924(0x18f)](_0x3a8c9f);return _0x3ff317!==void 0x0&&window[_0x341924(0x311)](_0x3ff317),this['_localStorageService']['setItem'](rs(_0x3a8c9f),this[_0x341924(0x3f9)][_0x341924(0x18f)](_0x3a8c9f))['then'](()=>this[_0x341924(0x17f)][_0x341924(0x18d)](_0x3a8c9f));}async['exhaustSavingTask'](){const _0x4ff0de=_0x2e5b1c,_0x4dd15b=[];this[_0x4ff0de(0x17f)][_0x4ff0de(0x1cd)]((_0x80897,_0x9f50d3)=>{const _0x407328=_0x4ff0de;window[_0x407328(0x311)](_0x80897),_0x4dd15b[_0x407328(0x2f1)](this[_0x407328(0x1b8)](_0x9f50d3)[_0x407328(0x2e6)](()=>{const _0x2e2faf=_0x407328;this[_0x2e2faf(0x17f)][_0x2e2faf(0x18d)](_0x9f50d3);}));}),await Promise[_0x4ff0de(0x363)](_0x4dd15b);}['_setupBeforeClosingHandler'](){const _0x30eb50=_0x2e5b1c;this[_0x30eb50(0x294)](this[_0x30eb50(0x3d9)][_0x30eb50(0x39f)](()=>{const _0x5b6eee=_0x30eb50;if(this['_saveTaskMap'][_0x5b6eee(0x362)])return this[_0x5b6eee(0x452)]['t'](_0x5b6eee(0x186));}));}};D=Qn([Re(0x0,_0x401b9d),Re(0x1,_0x76fe2e),Re(0x2,_0x4c2a62),Re(0x3,_0x5c7fae(_0x12e5b3)),Re(0x4,_0x5c7fae(_0x4ceeac))],D);function rs(_0x3d6f80){const _0x277f3c=_0x2e5b1c;return _0x277f3c(0x34f)+_0x3d6f80;}var er=Object[_0x2e5b1c(0x2de)],tr=Object[_0x2e5b1c(0x41c)],sr=(_0x46c7a2,_0x387fdd,_0x55741b,_0x4636f4)=>{const _0x291496=_0x2e5b1c;for(var _0x296a2a=_0x4636f4>0x1?void 0x0:_0x4636f4?tr(_0x387fdd,_0x55741b):_0x387fdd,_0xe936c7=_0x46c7a2[_0x291496(0x1bb)]-0x1,_0x41d779;_0xe936c7>=0x0;_0xe936c7--)(_0x41d779=_0x46c7a2[_0xe936c7])&&(_0x296a2a=(_0x4636f4?_0x41d779(_0x387fdd,_0x55741b,_0x296a2a):_0x41d779(_0x296a2a))||_0x296a2a);return _0x4636f4&&_0x296a2a&&er(_0x387fdd,_0x55741b,_0x296a2a),_0x296a2a;},lt=(_0x4a0c3f,_0x3fb753)=>(_0x4a8ead,_0x1ab18d)=>_0x3fb753(_0x4a8ead,_0x1ab18d,_0x4a0c3f);function ir(_0x3940dc){const {unitID:_0x477718,mutations:_0xefc395}=_0x3940dc;return{'unitId':_0x477718,'subUnitId':_0xefc395[0x0]['params']['subUnitId']};}let Qe=class{constructor(_0x568dc4,_0x1b5a2f,_0x5e3668){const _0x506ce0=_0x2e5b1c;this[_0x506ce0(0x3ac)]=_0x568dc4,this[_0x506ce0(0x3cf)]=_0x1b5a2f,this[_0x506ce0(0x200)]=_0x5e3668;}[_0x2e5b1c(0x326)](_0x2dbf45){const _0x18dec4=_0x2e5b1c;var _0x71e553,_0x2262c7,_0x381555,_0x2db828,_0x4100e1;const _0xfcb7dd=this[_0x18dec4(0x3ac)][_0x18dec4(0x18f)](_0x85923d),{unitId:_0x173b53,subUnitId:_0x101d56}=ir(_0x2dbf45),_0x35481e=_0xfcb7dd[_0x18dec4(0x409)](_0x173b53)[_0x18dec4(0x460)](),_0x783ab7=(_0x2262c7=(_0x71e553=this[_0x18dec4(0x200)][_0x18dec4(0x201)](_0x173b53))==null?void 0x0:_0x71e553['getActiveSheet']())==null?void 0x0:_0x2262c7[_0x18dec4(0x3b5)]();if(_0x35481e[_0x18dec4(0x1bb)]===0x0||!_0x173b53||!_0x101d56)return;const _0x3c8026=[{'id':_0x2498cc['id'],'params':{'unitId':_0x173b53,'subUnitId':_0x783ab7,'selections':_0x3cea4b[_0x18dec4(0x3b7)](_0x35481e)}}],_0x49268a=this[_0x18dec4(0x3cf)][_0x18dec4(0x389)](_0x2dbf45,_0x3c8026);if(!_0x24d018(_0x49268a))throw _0x49268a['error'];const _0x4365d2=(_0x4100e1=(_0x2db828=(_0x381555=_0x49268a[_0x18dec4(0x366)][0x0])==null?void 0x0:_0x381555['params'])==null?void 0x0:_0x2db828[_0x18dec4(0x230)])!=null?_0x4100e1:_0x35481e;Array[_0x18dec4(0x434)](_0x4365d2)&&_0x4365d2[_0x18dec4(0x1bb)]&&this[_0x18dec4(0x3ac)][_0x18dec4(0x18f)](_0x36a317)[_0x18dec4(0x335)](_0x2498cc['id'],{'unitId':_0x173b53,'subUnitId':_0x101d56,'selections':_0x4365d2});}};Qe=sr([lt(0x0,_0x5c7fae(_0x5d259e)),lt(0x1,_0x4e0f96),lt(0x2,_0x30b2f2)],Qe);const it=_0x5a3236('univer-pro.collaboration-client.single-active-unit-service');var $s=(_0x31f440=>(_0x31f440[_0x31f440[_0x2e5b1c(0x3f0)]=0x0]=_0x2e5b1c(0x3f0),_0x31f440[_0x31f440[_0x2e5b1c(0x1f1)]=0x1]='OTHER_CLIENTS_EDITING',_0x31f440))($s||{});const os=0x7530,as=_0x2e5b1c(0x2e0);class nr extends _0x36403b{constructor(){const _0x7efbe8=_0x2e5b1c;super(),l(this,'_id',_0x3cea4b[_0x7efbe8(0x1ce)]()),l(this,'_selfUnitIDs',new Set()),l(this,_0x7efbe8(0x38d),new Map()),l(this,_0x7efbe8(0x243),null),l(this,_0x7efbe8(0x43b),new Map()),l(this,_0x7efbe8(0x2b0),new Map()),this[_0x7efbe8(0x42f)]();}[_0x2e5b1c(0x2fe)](){const _0x34b3ee=_0x2e5b1c;super[_0x34b3ee(0x2fe)](),this[_0x34b3ee(0x43b)][_0x34b3ee(0x1cd)]((_0x4eb34c,_0x2d35b0)=>this[_0x34b3ee(0x468)](_0x2d35b0)),this[_0x34b3ee(0x243)]&&window[_0x34b3ee(0x14f)](this['_heartbeatTimer']);}['getUnitStatus$'](_0x195798){return this['_ensureSubject'](_0x195798)['pipe'](_0x24665d());}[_0x2e5b1c(0x461)](_0x4e0ca1){const _0x30c4bf=_0x2e5b1c;this[_0x30c4bf(0x3b4)]['size']===0x0&&this['_scheduleHeartbeat'](),this[_0x30c4bf(0x3b4)]['add'](_0x4e0ca1),this['_send']({'type':0x0,'memberID':this[_0x30c4bf(0x386)],'unitIDs':[_0x4e0ca1],'isForwarded':!0x1});}[_0x2e5b1c(0x334)](_0xc36e05){const _0x49c9fc=_0x2e5b1c;this['_selfUnitIDs']['delete'](_0xc36e05),this[_0x49c9fc(0x3b4)]['size']===0x0&&this[_0x49c9fc(0x243)]&&window[_0x49c9fc(0x14f)](this['_heartbeatTimer']);}[_0x2e5b1c(0x42f)](){const _0xa58483=_0x2e5b1c;this[_0xa58483(0x294)](_0x29a7b(_0x4dbad7(window,_0xa58483(0x417))[_0xa58483(0x3c4)](_0x2313e7=>{const _0x5a14f4=_0xa58483;if(_0x2313e7['key']!==as||!_0x2313e7[_0x5a14f4(0x312)])return;const _0x3752fd=JSON['parse'](_0x2313e7[_0x5a14f4(0x312)]);this[_0x5a14f4(0x3ba)](_0x3752fd);}))),window['addEventListener']('unload',()=>this[_0xa58483(0x3c1)]({'type':0x1,'memberID':this[_0xa58483(0x386)],'unitIDs':Array[_0xa58483(0x1bf)](this[_0xa58483(0x3b4)])}));}[_0x2e5b1c(0x3ba)](_0x4693b4){const _0xbd49c=_0x2e5b1c;switch(_0x4693b4[_0xbd49c(0x255)]){case 0x0:this[_0xbd49c(0x3b6)](_0x4693b4);break;case 0x1:this[_0xbd49c(0x287)](_0x4693b4);break;case 0x2:this['_handleHeartbeatEvent'](_0x4693b4);break;}}[_0x2e5b1c(0x3b6)](_0x38f591){const _0x105998=_0x2e5b1c,{unitIDs:_0x38793a,memberID:_0x3427da,isForwarded:_0xb245ed}=_0x38f591;_0x38793a['forEach'](_0xdd6450=>{const _0x36fff5=_0x5851;if(!_0xb245ed&&this[_0x36fff5(0x38d)]['has'](_0xdd6450)&&this[_0x36fff5(0x40f)](_0xdd6450)['next'](0x1),!this[_0x36fff5(0x38d)][_0x36fff5(0x250)](_0xdd6450)||!this[_0x36fff5(0x38d)][_0x36fff5(0x18f)](_0xdd6450)[_0x36fff5(0x250)](_0x3427da)){const _0x1c4345=this[_0x36fff5(0x38d)][_0x36fff5(0x18f)](_0xdd6450)||new Set();_0x1c4345['add'](_0x3427da),this[_0x36fff5(0x38d)]['set'](_0xdd6450,_0x1c4345),this['_scheduleClearOtherTimer'](_0x3427da);}}),_0xb245ed||this[_0x105998(0x3c1)]({'type':0x0,'memberID':this[_0x105998(0x386)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x2e5b1c(0x473)](_0x5c55c2){const _0x7c7a5=_0x2e5b1c;this[_0x7c7a5(0x468)](_0x5c55c2);const _0x46af48=window[_0x7c7a5(0x1f4)](()=>{const _0x49911b=_0x7c7a5;this[_0x49911b(0x38d)][_0x49911b(0x1cd)](_0x537973=>{_0x537973['delete'](_0x5c55c2);});},os*0x2);this['_clearOtherTimers'][_0x7c7a5(0x1e1)](_0x5c55c2,_0x46af48);}[_0x2e5b1c(0x468)](_0x259006){const _0x4c5738=_0x2e5b1c;if(this['_clearOtherTimers'][_0x4c5738(0x250)](_0x259006)){const _0x3dda27=this[_0x4c5738(0x43b)][_0x4c5738(0x18f)](_0x259006);_0x3dda27&&window[_0x4c5738(0x311)](_0x3dda27),this[_0x4c5738(0x43b)][_0x4c5738(0x1e1)](_0x259006,null);}}[_0x2e5b1c(0x287)](_0xc24e1f){const _0x2ffd28=_0x2e5b1c,{memberID:_0x18beed,unitIDs:_0x239794}=_0xc24e1f;_0x239794[_0x2ffd28(0x1cd)](_0x4a961d=>{const _0x1addc2=_0x2ffd28;var _0x3dfa8f;const _0x335413=this[_0x1addc2(0x38d)][_0x1addc2(0x18f)](_0x4a961d);_0x335413&&(_0x335413[_0x1addc2(0x18d)](_0x18beed),(_0x3dfa8f=this['_ensureSubject'](_0x4a961d))==null||_0x3dfa8f['next'](_0x335413[_0x1addc2(0x362)]===0x0?0x0:0x1));}),this[_0x2ffd28(0x468)](_0x18beed);}[_0x2e5b1c(0x1f5)](_0x2c592c){const _0x4e2649=_0x2e5b1c;this[_0x4e2649(0x473)](_0x2c592c[_0x4e2649(0x2cd)]);}[_0x2e5b1c(0x3c1)](_0x23ad40){const _0x95460a=_0x2e5b1c;localStorage['setItem'](as,JSON[_0x95460a(0x3d7)](_0x23ad40));}[_0x2e5b1c(0x2a7)](){const _0xaefb24=_0x2e5b1c;this[_0xaefb24(0x243)]=window[_0xaefb24(0x206)](()=>{const _0x251bf9=_0xaefb24;this[_0x251bf9(0x3c1)]({'type':0x2,'memberID':this[_0x251bf9(0x386)]});},os);}[_0x2e5b1c(0x40f)](_0x39911){const _0x2ecf34=_0x2e5b1c;return this[_0x2ecf34(0x2b0)][_0x2ecf34(0x250)](_0x39911)||this['_unitStatus'][_0x2ecf34(0x1e1)](_0x39911,new _0x16e81a(0x0)),this[_0x2ecf34(0x2b0)]['get'](_0x39911);}}function js(_0x5ca839){const _0x583c58=_0x2e5b1c;let _0x1ef87c='';for(const _0x1babab of _0x5ca839){const {startOffset:_0x3462ab,endOffset:_0x315f72,isActive:_0x5dbf62}=_0x1babab;_0x1ef87c[_0x583c58(0x1bb)]&&(_0x1ef87c+=','),_0x1ef87c+=_0x3462ab+':'+_0x315f72+':'+(_0x5dbf62?'1':'0');}return _0x1ef87c;}function rr(_0x3f17f4){const _0x3cd5ba=_0x2e5b1c,_0x59154f=_0x3f17f4['split'](','),_0x45311a=[];for(const _0xa891b of _0x59154f){const [_0xb047b,_0x448fd9,_0x59da7e]=_0xa891b[_0x3cd5ba(0x337)](':');_0x45311a[_0x3cd5ba(0x2f1)]({'startOffset':Number(_0xb047b),'endOffset':Number(_0x448fd9),'collapsed':_0xb047b===_0x448fd9,'isActive':_0x59da7e==='1'});}return _0x45311a[_0x3cd5ba(0x16b)](_0xe8bfa9=>_0xe8bfa9['isActive'])||(_0x45311a[0x0][_0x3cd5ba(0x3e7)]=!0x0),_0x45311a;}class Bt extends _0x4bff65{constructor(){const _0x3b9bc7=_0x2e5b1c;super(...arguments),l(this,_0x3b9bc7(0x428),new _0x16e81a(null)),l(this,_0x3b9bc7(0x39e),this['_collabCursorState$'][_0x3b9bc7(0x2f8)]());}[_0x2e5b1c(0x3cd)](_0x19d3b){const _0x51d9f4=_0x2e5b1c,{unitID:_0x18a532,memberID:_0x1b97c8,textRanges:_0x51bee1}=_0x19d3b,_0x53114e=js(_0x51bee1),_0x448c0e={'unitID':_0x18a532,'memberID':_0x1b97c8,'selection':_0x53114e};this[_0x51d9f4(0x428)][_0x51d9f4(0x244)](_0x448c0e);}}var or=Object['defineProperty'],ar=Object['getOwnPropertyDescriptor'],cr=(_0x4d0c04,_0x3aa662,_0x4d29ae,_0x41c046)=>{const _0x21d114=_0x2e5b1c;for(var _0x71c1ba=_0x41c046>0x1?void 0x0:_0x41c046?ar(_0x3aa662,_0x4d29ae):_0x3aa662,_0x3433bd=_0x4d0c04[_0x21d114(0x1bb)]-0x1,_0x51c78d;_0x3433bd>=0x0;_0x3433bd--)(_0x51c78d=_0x4d0c04[_0x3433bd])&&(_0x71c1ba=(_0x41c046?_0x51c78d(_0x3aa662,_0x4d29ae,_0x71c1ba):_0x51c78d(_0x71c1ba))||_0x71c1ba);return _0x41c046&&_0x71c1ba&&or(_0x3aa662,_0x4d29ae,_0x71c1ba),_0x71c1ba;},cs=(_0x46955b,_0x1b8d76)=>(_0x2b19db,_0x46a541)=>_0x1b8d76(_0x2b19db,_0x46a541,_0x46955b);let et=class{constructor(_0x275317,_0x568399){const _0x3fbe55=_0x2e5b1c;this[_0x3fbe55(0x3ac)]=_0x275317,this[_0x3fbe55(0x3cf)]=_0x568399;}['transformSelections'](_0x45baaa){const _0x22aa81=_0x2e5b1c;var _0x31fa2e;const _0x539c7d=this[_0x22aa81(0x3ac)][_0x22aa81(0x18f)](_0x1dbfad),_0x42f5cb=(_0x31fa2e=_0x539c7d[_0x22aa81(0x16f)]())!=null?_0x31fa2e:[];if(_0x42f5cb[_0x22aa81(0x1bb)]===0x0)return;const _0x1555f4=[{'id':_0x22aa81(0x3ad),'params':{'unitId':_0x45baaa[_0x22aa81(0x3a4)],'actions':null,'textRanges':_0x42f5cb}}],_0x29ac0e=this[_0x22aa81(0x3cf)]['transformMutationsWithChangeset'](_0x45baaa,_0x1555f4);if(!_0x24d018(_0x29ac0e))throw _0x29ac0e[_0x22aa81(0x30b)];const _0x2195d8=_0x29ac0e[_0x22aa81(0x366)][0x0][_0x22aa81(0x27b)]['textRanges'];Array[_0x22aa81(0x434)](_0x2195d8)&&_0x2195d8[_0x22aa81(0x1bb)]&&_0x539c7d[_0x22aa81(0x3ff)](_0x2195d8,!0x1);}};et=cr([cs(0x0,_0x5c7fae(_0x5d259e)),cs(0x1,_0x4e0f96)],et);const hr=new Set([_0x5a0458['id']]);function hs(_0x13f075,_0x40f5bf,_0x491848,_0x1823eb,_0x242fec){const _0x141ff7=_0x2e5b1c;var _0x580e8a,_0x103d96,_0x9cae50,_0x419a7e;const _0x3e007e=[];for(const _0x2c077f of _0x13f075)if(hr[_0x141ff7(0x250)](_0x2c077f['id'])){if(_0x3e007e[_0x141ff7(0x1bb)]>0x0)break;_0x3e007e[_0x141ff7(0x2f1)](_0x2c077f);break;}else _0x3e007e[_0x141ff7(0x2f1)](_0x2c077f);const _0x405b02=(_0x103d96=(_0x580e8a=_0x242fec[_0x141ff7(0x3a5)]())==null?void 0x0:_0x580e8a[_0x141ff7(0x2ea)])!=null?_0x103d96:_0x141ff7(0x21e),_0x277c41=(_0x419a7e=(_0x9cae50=_0x242fec[_0x141ff7(0x3a5)]())==null?void 0x0:_0x9cae50[_0x141ff7(0x2cd)])!=null?_0x419a7e:'unknown';return{'changeset':{'unitID':_0x40f5bf,'type':_0x2e5178(_0x491848[_0x141ff7(0x216)](_0x40f5bf)),'baseRev':_0x1823eb[_0x141ff7(0x135)](_0x40f5bf),'revision':0x0,'userID':_0x405b02,'memberID':_0x277c41,'mutations':_0x3e007e},'pendingMutations':_0x13f075[_0x141ff7(0x2d3)](_0x3e007e[_0x141ff7(0x1bb)])};}function lr(_0x133e7d,_0x5bf88f,_0x44a0f3,_0x17db67,_0x116712){const _0x4710f3=_0x2e5b1c;var _0x17d141,_0x181ddf,_0x13b93b,_0x1bbb79;const _0x3f881b=[_0x133e7d['reduce']((_0x23bcfe,_0xaf5827)=>{const _0x33e3f7=_0x5851;var _0x2e4e07;const {id:_0x4eea42}=_0x23bcfe,{id:_0x31bfa3,type:_0x419bf9}=_0xaf5827,_0x11ea48=(_0x2e4e07=_0x23bcfe[_0x33e3f7(0x27b)])!=null?_0x2e4e07:{'actions':null},_0x1124a4=_0xaf5827[_0x33e3f7(0x27b)];if(_0x4eea42&&_0x4eea42!==_0x31bfa3)throw new Error(_0x33e3f7(0x3ef)+_0x4eea42+_0x33e3f7(0x1a7)+_0x31bfa3+'.');return{..._0x23bcfe,'id':_0x31bfa3,'type':_0x419bf9,'params':{'unitId':_0x1124a4[_0x33e3f7(0x275)],'textRanges':_0x1124a4[_0x33e3f7(0x43f)],'actions':_0x51b925['compose'](_0x11ea48[_0x33e3f7(0x1ba)],_0x1124a4[_0x33e3f7(0x1ba)])}};},{})],_0x16e335=(_0x181ddf=(_0x17d141=_0x116712[_0x4710f3(0x3a5)]())==null?void 0x0:_0x17d141[_0x4710f3(0x2ea)])!=null?_0x181ddf:_0x4710f3(0x21e),_0x3ffc08=(_0x1bbb79=(_0x13b93b=_0x116712[_0x4710f3(0x3a5)]())==null?void 0x0:_0x13b93b[_0x4710f3(0x2cd)])!=null?_0x1bbb79:'unknown';return{'changeset':{'unitID':_0x5bf88f,'type':_0x2e5178(_0x44a0f3[_0x4710f3(0x216)](_0x5bf88f)),'baseRev':_0x17db67['getCurrentRevForDocument'](_0x5bf88f),'revision':0x0,'userID':_0x16e335,'memberID':_0x3ffc08,'mutations':_0x3f881b},'pendingMutations':[]};}const _r={'id':_0x39f7b4['id'],'type':_0x32e0b0[_0x2e5b1c(0x368)],'params':{}};var ur=Object[_0x2e5b1c(0x2de)],dr=Object['getOwnPropertyDescriptor'],he=(_0x5a5762,_0x346997,_0x2987a0,_0x3aaf0b)=>{const _0x2e0715=_0x2e5b1c;for(var _0x8bc20e=_0x3aaf0b>0x1?void 0x0:_0x3aaf0b?dr(_0x346997,_0x2987a0):_0x346997,_0x58ceb2=_0x5a5762[_0x2e0715(0x1bb)]-0x1,_0x42e6ff;_0x58ceb2>=0x0;_0x58ceb2--)(_0x42e6ff=_0x5a5762[_0x58ceb2])&&(_0x8bc20e=(_0x3aaf0b?_0x42e6ff(_0x346997,_0x2987a0,_0x8bc20e):_0x42e6ff(_0x8bc20e))||_0x8bc20e);return _0x3aaf0b&&_0x8bc20e&&ur(_0x346997,_0x2987a0,_0x8bc20e),_0x8bc20e;},f=(_0x2b5cde,_0x5165d5)=>(_0x4ff7b5,_0x417033)=>_0x5165d5(_0x4ff7b5,_0x417033,_0x2b5cde),w=(_0x51c14f=>(_0x51c14f['NOT_COLLAB']='not_collab',_0x51c14f[_0x2e5b1c(0x421)]=_0x2e5b1c(0x305),_0x51c14f[_0x2e5b1c(0x314)]=_0x2e5b1c(0x293),_0x51c14f[_0x2e5b1c(0x3c8)]=_0x2e5b1c(0x427),_0x51c14f[_0x2e5b1c(0x478)]=_0x2e5b1c(0x15a),_0x51c14f['FETCH_MISS']=_0x2e5b1c(0x251),_0x51c14f[_0x2e5b1c(0x298)]=_0x2e5b1c(0x211),_0x51c14f[_0x2e5b1c(0x1ac)]=_0x2e5b1c(0x3e4),_0x51c14f))(w||{});class le{constructor(_0x531dd9,_0x4c8cc9,_0x291ad9,_0xd7a85f,_0x494706,_0x19ae87,_0x24020c,_0x4989f9,_0x3ffa41){const _0x1ab8ab=_0x2e5b1c;l(this,_0x1ab8ab(0x448),null),l(this,'_pendingMutations',[]),(this[_0x1ab8ab(0x3a4)]=_0x531dd9,this[_0x1ab8ab(0x255)]=_0x4c8cc9,this[_0x1ab8ab(0x1aa)]=_0x494706,this['_commandService']=_0x19ae87,this[_0x1ab8ab(0x3bf)]=_0x24020c,this[_0x1ab8ab(0x26e)]=_0x4989f9,this[_0x1ab8ab(0x170)]=_0x3ffa41,this[_0x1ab8ab(0x448)]=_0x291ad9,this[_0x1ab8ab(0x40d)]=_0xd7a85f);}['_checkMissing'](_0x588d94){const _0x239a5a=_0x2e5b1c,_0x578369=this['_revisionService']['getCurrentRevForDocument'](this['unitID']);return _0x588d94['revision']>_0x578369+0x1?(this[_0x239a5a(0x1aa)][_0x239a5a(0x2a0)]({'from':_0x578369,'to':_0x588d94[_0x239a5a(0x28f)]-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x1c9e34){const _0xe3e1bb=_0x2e5b1c;this[_0xe3e1bb(0x3bf)][_0xe3e1bb(0x192)](this['unitID'],_0x1c9e34);}[_0x2e5b1c(0x456)](_0x20efdd){const _0x4a0d2b=_0x2e5b1c;var _0x138983,_0x713c23;(_0x713c23=(_0x138983=this[_0x4a0d2b(0x1aa)])[_0x4a0d2b(0x3d4)])==null||_0x713c23['call'](_0x138983,_0x20efdd);}[_0x2e5b1c(0x199)](_0x3cd283){const _0x3dc5a1=_0x2e5b1c;var _0xc352d9,_0x2834b7;return(_0x2834b7=(_0xc352d9=this[_0x3dc5a1(0x1aa)])['onTransformIME'])==null?void 0x0:_0x2834b7[_0x3dc5a1(0x13d)](_0xc352d9,_0x3cd283);}[_0x2e5b1c(0x348)](_0x51c9b5){const _0x19ffe5=_0x2e5b1c;var _0x38d55e,_0x5bf81c,_0x117322;return(_0x117322=(_0x5bf81c=(_0x38d55e=this[_0x19ffe5(0x1aa)])[_0x19ffe5(0x158)])==null?void 0x0:_0x5bf81c['call'](_0x38d55e,_0x51c9b5))!=null?_0x117322:_0x51c9b5;}['_syncEditingCollabCursor'](_0x18bbb3){const _0x4e498b=_0x2e5b1c;var _0xc9a8ca,_0x17087d;if(this[_0x4e498b(0x255)]===x[_0x4e498b(0x1de)]){const {unitID:_0x5d3bd7,mutations:_0xa1875e,memberID:_0x213df3}=_0x18bbb3,_0x272dbe=_0xa1875e[0x0]['params'][_0x4e498b(0x43f)];Array['isArray'](_0x272dbe)&&_0x272dbe['length']>0x0&&((_0x17087d=(_0xc9a8ca=this[_0x4e498b(0x1aa)])['onSyncEditingCollabCursor'])==null||_0x17087d[_0x4e498b(0x13d)](_0xc9a8ca,{'unitID':_0x5d3bd7,'memberID':_0x213df3,'textRanges':_0x272dbe}));}}[_0x2e5b1c(0x3c2)](){const _0x80e328=_0x2e5b1c;this[_0x80e328(0x170)]['updateOfflineData'](this[_0x80e328(0x3a4)],this['type'],this[_0x80e328(0x448)],this[_0x80e328(0x40d)]);}['_getCurrentRevision'](){const _0x25ce6d=_0x2e5b1c;return this['_revisionService'][_0x25ce6d(0x135)](this[_0x25ce6d(0x3a4)]);}[_0x2e5b1c(0x21f)](){const _0x23d0d3=_0x2e5b1c;this['_revisionService'][_0x23d0d3(0x457)](this[_0x23d0d3(0x3a4)]);}['_executeRemoteChangeset'](_0x56e1ba){const _0x5d8ab9=_0x2e5b1c;var _0x55d121;const _0x2c9457=this['_transformRemoteChangesetByIMECache'](_0x56e1ba),_0x5da224=_0x5396fb(_0x2c9457['mutations'],this[_0x5d8ab9(0x1bd)],{'fromCollab':!0x0});if(!_0x5da224[_0x5d8ab9(0x289)])throw _0x5da224[_0x5d8ab9(0x30b)]instanceof Error?_0x5da224[_0x5d8ab9(0x30b)]:new Error((_0x55d121=_0x5da224[_0x5d8ab9(0x30b)])!=null?_0x55d121:_0x5d8ab9(0x27c));this[_0x5d8ab9(0x199)](_0x2c9457),this['_transformUndoredo'](_0x56e1ba),this[_0x5d8ab9(0x456)](_0x2c9457),this[_0x5d8ab9(0x485)](_0x2c9457),this[_0x5d8ab9(0x21f)]();}}let Se=class extends le{constructor(_0x21f720,_0x49a7ec,_0x1e5d82,_0x1cd2bd,_0x301766,_0x147ecc,_0x31a7a1,_0x1d5a37,_0x1352a4,_0x13c89c){const _0x5dd7ac=_0x2e5b1c;super(_0x21f720,_0x49a7ec,null,[],_0x1e5d82,_0x1d5a37,_0x31a7a1,_0x1cd2bd,_0x301766),l(this,_0x5dd7ac(0x450),_0x5dd7ac(0x305)),(this[_0x5dd7ac(0x3ac)]=_0x147ecc,this[_0x5dd7ac(0x2ec)]=_0x1352a4,this[_0x5dd7ac(0x3cf)]=_0x13c89c);}['appendMutation'](_0x5a83b5){const _0x2cf048=_0x2e5b1c,_0x1f3c6c=this[_0x2cf048(0x3ac)][_0x2cf048(0x254)](Y,this[_0x2cf048(0x3a4)],this['type'],[_0x5a83b5],this['_handler']);return _0x1f3c6c[_0x2cf048(0x25a)](),_0x1f3c6c[_0x2cf048(0x3c2)](),_0x1f3c6c;}[_0x2e5b1c(0x3ea)](_0x166e17){const _0x1d6f70=_0x2e5b1c;if(this[_0x1d6f70(0x32a)](_0x166e17))return this[_0x1d6f70(0x3ac)]['createInstance'](H,this['unitID'],this[_0x1d6f70(0x255)],null,[],null,[_0x166e17],this['_handler']);try{const _0x23948d=this[_0x1d6f70(0x3cf)][_0x1d6f70(0x389)](_0x166e17,[_r]);if(_0x24d018(_0x23948d)){const {c1Prime:_0x53a085}=_0x23948d;return this[_0x1d6f70(0x14c)](_0x53a085),this;}throw _0x23948d[_0x1d6f70(0x30b)];}catch(_0x2556af){return this[_0x1d6f70(0x2ec)][_0x1d6f70(0x30b)](_0x2556af),this[_0x1d6f70(0x2d4)](!0x1);}}['_onConflict'](_0x6c6972){const _0x315e1b=_0x2e5b1c;return this[_0x315e1b(0x3ac)][_0x315e1b(0x254)](Q,this[_0x315e1b(0x3a4)],this['type'],null,[],this['_handler'],_0x6c6972);}[_0x2e5b1c(0x2bd)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x2e5b1c(0x3a2)](){const _0x58edf1=_0x2e5b1c;throw new Error(_0x58edf1(0x330));}[_0x2e5b1c(0x3e5)](){const _0xe5ca9f=_0x2e5b1c;return this[_0xe5ca9f(0x3ac)][_0xe5ca9f(0x254)](ee,this['unitID'],this[_0xe5ca9f(0x255)],null,[],this['_handler']);}[_0x2e5b1c(0x405)](){return this;}[_0x2e5b1c(0x3c9)](){const _0x2d66d1=_0x2e5b1c;throw new Error(_0x2d66d1(0x1b6));}[_0x2e5b1c(0x353)](){const _0x29e55f=_0x2e5b1c,_0x5ef838=this[_0x29e55f(0x26e)]['getCurrentRevForDocument'](this[_0x29e55f(0x3a4)]);return this[_0x29e55f(0x1aa)][_0x29e55f(0x2a0)]({'from':_0x5ef838,'to':0x0}),this[_0x29e55f(0x3ac)][_0x29e55f(0x254)](H,this[_0x29e55f(0x3a4)],this[_0x29e55f(0x255)],null,[],null,[],this[_0x29e55f(0x1aa)]);}};Se=he([f(0x3,_0x5c7fae(_0x4ceeac)),f(0x4,_0x5c7fae(D)),f(0x5,_0x5c7fae(_0x5d259e)),f(0x6,_0x1bd332),f(0x7,_0x36a317),f(0x8,_0x1cafe9),f(0x9,_0x4e0f96)],Se);let Y=class extends le{constructor(_0x1d35e1,_0x1e4b55,_0x3f2b7f,_0x1188ee,_0x3bda8b,_0x374a7c,_0x12d9af,_0x59b859,_0x4b24d1,_0x4bc168,_0x438a71,_0x30a5ac,_0x647bed,_0x202642){const _0x22e658=_0x2e5b1c;super(_0x1d35e1,_0x1e4b55,null,_0x3f2b7f,_0x1188ee,_0x4bc168,_0x202642,_0x374a7c,_0x12d9af),l(this,_0x22e658(0x450),_0x22e658(0x293)),l(this,'_scheduleTimestamp',null),l(this,_0x22e658(0x280),null),(this[_0x22e658(0x3ac)]=_0x3bda8b,this[_0x22e658(0x2a9)]=_0x59b859,this['_logService']=_0x4b24d1,this[_0x22e658(0x338)]=_0x438a71,this[_0x22e658(0x3cf)]=_0x30a5ac,this['_univerInstanceService']=_0x647bed);}[_0x2e5b1c(0x415)](_0x566378){const _0x2ed38d=_0x2e5b1c;return this[_0x2ed38d(0x40d)][_0x2ed38d(0x2f1)](_0x566378),this[_0x2ed38d(0x3c2)](),this;}[_0x2e5b1c(0x3ea)](_0x119fec){const _0x18b696=_0x2e5b1c;if(this['_checkMissing'](_0x119fec))return this['_clearScheduledTask'](),this[_0x18b696(0x3ac)]['createInstance'](H,this[_0x18b696(0x3a4)],this[_0x18b696(0x255)],null,this[_0x18b696(0x40d)],null,[_0x119fec],this[_0x18b696(0x1aa)]);try{const _0x23d438=this[_0x18b696(0x3cf)][_0x18b696(0x389)](_0x119fec,this[_0x18b696(0x40d)]);if(_0x24d018(_0x23d438)){const {c1Prime:_0x524f0e,m2Prime:_0x3e5516}=_0x23d438;this[_0x18b696(0x14c)](_0x524f0e);const _0x286bd9=this[_0x18b696(0x3ac)][_0x18b696(0x254)](Y,this[_0x18b696(0x3a4)],this[_0x18b696(0x255)],_0x3e5516,this['_handler']);return this[_0x18b696(0x29b)](),_0x286bd9[_0x18b696(0x25a)](this[_0x18b696(0x2b6)]?Math[_0x18b696(0x123)](0x0,new Date()[_0x18b696(0x237)]()-this[_0x18b696(0x2b6)]):this[_0x18b696(0x30c)]()),_0x286bd9;}throw _0x23d438['error'];}catch(_0x3cb6f4){return this[_0x18b696(0x2ec)][_0x18b696(0x30b)](_0x3cb6f4),this['_onConflict'](!0x1);}}['onRemoteAck'](){const _0x97e133=_0x2e5b1c;throw new Error(_0x97e133(0x464));}['onRemoteRej'](){const _0x49be7d=_0x2e5b1c;throw new Error(_0x49be7d(0x1b9));}[_0x2e5b1c(0x3e5)](){const _0x1585f9=_0x2e5b1c;return this[_0x1585f9(0x29b)](),this['_injector'][_0x1585f9(0x254)](ee,this[_0x1585f9(0x3a4)],this['type'],null,this[_0x1585f9(0x40d)],this['_handler']);}[_0x2e5b1c(0x405)](){return this;}[_0x2e5b1c(0x25a)](_0x2db298){const _0x24c3bf=_0x2e5b1c,_0x1b6940=_0x2db298!=null?_0x2db298:this[_0x24c3bf(0x30c)]();this[_0x24c3bf(0x2b6)]=new Date()[_0x24c3bf(0x237)](),this['_sendingTimer']=window[_0x24c3bf(0x1f4)](()=>{const _0x1b614e=_0x24c3bf;this[_0x1b614e(0x29b)]();let _0x1cb5a0=null;switch(this['type']){case x[_0x1b614e(0x2c7)]:{_0x1cb5a0=hs(this[_0x1b614e(0x40d)],this[_0x1b614e(0x3a4)],this[_0x1b614e(0x1ae)],this['_revisionService'],this[_0x1b614e(0x2a9)]);break;}case x['UNIVER_DOC']:{this[_0x1b614e(0x40d)][_0x1b614e(0x407)](_0x3556a8=>_0x3556a8['id']===_0xa592b4['id'])?_0x1cb5a0=lr(this[_0x1b614e(0x40d)],this[_0x1b614e(0x3a4)],this[_0x1b614e(0x1ae)],this[_0x1b614e(0x26e)],this[_0x1b614e(0x2a9)]):_0x1cb5a0=hs(this[_0x1b614e(0x40d)],this[_0x1b614e(0x3a4)],this[_0x1b614e(0x1ae)],this[_0x1b614e(0x26e)],this[_0x1b614e(0x2a9)]);break;}default:throw new Error(_0x1b614e(0x1c0)+this[_0x1b614e(0x255)]+_0x1b614e(0x43c));}const {changeset:_0x3cd71c,pendingMutations:_0xbba6b5}=_0x1cb5a0;this['_handler']['onSendChangeset'](_0x3cd71c);const _0x3c9e0a=_0xbba6b5[_0x1b614e(0x1bb)]?this[_0x1b614e(0x3ac)][_0x1b614e(0x254)](K,this[_0x1b614e(0x3a4)],this['type'],_0x3cd71c,_0xbba6b5,this[_0x1b614e(0x1aa)]):this[_0x1b614e(0x3ac)][_0x1b614e(0x254)](Z,this['unitID'],this[_0x1b614e(0x255)],_0x3cd71c,this[_0x1b614e(0x1aa)]);_0x3c9e0a[_0x1b614e(0x3c2)](),this[_0x1b614e(0x1aa)][_0x1b614e(0x2b4)](this,_0x3c9e0a);},_0x1b6940);}[_0x2e5b1c(0x30c)](){const _0x19ec82=_0x2e5b1c;var _0x11951f;return(_0x11951f=this[_0x19ec82(0x338)][_0x19ec82(0x142)](mn))!=null?_0x11951f:fn;}[_0x2e5b1c(0x3c9)](){const _0x1015d0=_0x2e5b1c;throw new Error(_0x1015d0(0x469));}[_0x2e5b1c(0x29b)](){const _0x4f11f0=_0x2e5b1c;this[_0x4f11f0(0x280)]!=null&&(clearTimeout(this[_0x4f11f0(0x280)]),this[_0x4f11f0(0x280)]=null);}[_0x2e5b1c(0x2d4)](_0x43cd34){const _0x5ca6ce=_0x2e5b1c;return this[_0x5ca6ce(0x29b)](),this[_0x5ca6ce(0x3ac)][_0x5ca6ce(0x254)](Q,this['unitID'],this[_0x5ca6ce(0x255)],null,this[_0x5ca6ce(0x40d)],this[_0x5ca6ce(0x1aa)],_0x43cd34);}};Y=he([f(0x4,_0x5c7fae(_0x5d259e)),f(0x5,_0x5c7fae(_0x4ceeac)),f(0x6,_0x5c7fae(D)),f(0x7,_0x5c7fae(oe)),f(0x8,_0x1cafe9),f(0x9,_0x36a317),f(0xa,_0x401b9d),f(0xb,_0x4e0f96),f(0xc,_0x30b2f2),f(0xd,_0x1bd332)],Y);let Z=class extends le{constructor(_0x110fd7,_0x3dc6e1,_0x88a27e,_0x58af86,_0x1ae97e,_0x4e1d5b,_0x59a675,_0x3d1cae,_0x2f4a5a,_0x5d1e4f,_0x707ee5){const _0x3d673f=_0x2e5b1c;super(_0x110fd7,_0x3dc6e1,_0x88a27e,[],_0x58af86,_0x3d1cae,_0x707ee5,_0x4e1d5b,_0x59a675),l(this,_0x3d673f(0x450),'awaiting'),(this[_0x3d673f(0x3ac)]=_0x1ae97e,this[_0x3d673f(0x2ec)]=_0x2f4a5a,this[_0x3d673f(0x3cf)]=_0x5d1e4f);}['appendMutation'](_0x2605ef){const _0x514906=_0x2e5b1c,_0x1f7161=this['_injector'][_0x514906(0x254)](K,this['unitID'],this[_0x514906(0x255)],this['_awaitingChangeset'],[_0x2605ef],this['_handler']);return _0x1f7161['_updateLocalCache'](),_0x1f7161;}[_0x2e5b1c(0x3ea)](_0x2cf0b0){const _0x42a294=_0x2e5b1c;if(this[_0x42a294(0x32a)](_0x2cf0b0))return this[_0x42a294(0x3ac)]['createInstance'](H,this[_0x42a294(0x3a4)],this['type'],this['_awaitingChangeset'],[],null,[_0x2cf0b0],this[_0x42a294(0x1aa)]);try{const _0x51eaa0=this[_0x42a294(0x3cf)][_0x42a294(0x1ad)]([_0x2cf0b0],[this[_0x42a294(0x448)]],!0x1);if(_0x71b04d(_0x51eaa0)){const {c1Prime:_0x180709,c2Prime:_0x2ddb6a}=_0x51eaa0;this[_0x42a294(0x14c)](_0x180709[0x0]),_0x2ddb6a[0x0][_0x42a294(0x24c)]=this['_getCurrentRevision']();const _0x28a64b=this[_0x42a294(0x3ac)]['createInstance'](Z,this[_0x42a294(0x3a4)],this[_0x42a294(0x255)],_0x2ddb6a[0x0],this[_0x42a294(0x1aa)]);return _0x28a64b[_0x42a294(0x3c2)](),_0x28a64b;}return this[_0x42a294(0x2d4)](!0x1);}catch(_0x3d92ff){return this[_0x42a294(0x2ec)][_0x42a294(0x30b)](_0x3d92ff),this[_0x42a294(0x2d4)](!0x1);}}[_0x2e5b1c(0x2bd)](_0x2ae150){const _0x1f12ea=_0x2e5b1c,_0x592bbd=this[_0x1f12ea(0x26e)][_0x1f12ea(0x135)](this[_0x1f12ea(0x3a4)]);if(_0x2ae150[_0x1f12ea(0x28f)]<_0x592bbd-0x1)return this;if(this['_checkMissing'](_0x2ae150))return this[_0x1f12ea(0x3ac)][_0x1f12ea(0x254)](H,this[_0x1f12ea(0x3a4)],this[_0x1f12ea(0x255)],null,[],this[_0x1f12ea(0x448)],[],this[_0x1f12ea(0x1aa)]);this[_0x1f12ea(0x21f)]();const _0x386bcb=this[_0x1f12ea(0x3ac)][_0x1f12ea(0x254)](Se,this['unitID'],this[_0x1f12ea(0x255)],this[_0x1f12ea(0x1aa)]);return _0x386bcb[_0x1f12ea(0x3c2)](),_0x386bcb;}[_0x2e5b1c(0x3a2)](_0x2b6d20){const _0x8a149b=_0x2e5b1c;return this[_0x8a149b(0x2d4)](!!(_0x2b6d20!=null&&_0x2b6d20['isPermissionRej']));}[_0x2e5b1c(0x3e5)](){const _0x2e2402=_0x2e5b1c;return this[_0x2e2402(0x3ac)][_0x2e2402(0x254)](ee,this[_0x2e2402(0x3a4)],this['type'],this[_0x2e2402(0x448)],[],this[_0x2e2402(0x1aa)]);}['toggleOnline'](){return this;}[_0x2e5b1c(0x3c9)](){const _0x5f5da4=_0x2e5b1c;this['_handler'][_0x5f5da4(0x164)](this[_0x5f5da4(0x448)]);}[_0x2e5b1c(0x2d4)](_0x59e666){const _0x5ab6c5=_0x2e5b1c;return this['_injector']['createInstance'](Q,this[_0x5ab6c5(0x3a4)],this[_0x5ab6c5(0x255)],this[_0x5ab6c5(0x448)],[],this['_handler'],_0x59e666);}};Z=he([f(0x4,_0x5c7fae(_0x5d259e)),f(0x5,_0x5c7fae(_0x4ceeac)),f(0x6,_0x5c7fae(D)),f(0x7,_0x36a317),f(0x8,_0x1cafe9),f(0x9,_0x4e0f96),f(0xa,_0x1bd332)],Z);let K=class extends le{constructor(_0x4c5584,_0x54535f,_0x48887f,_0x575277,_0x14aec7,_0x5dc348,_0x150079,_0x41387b,_0x1264d7,_0xe449c4,_0xf935fc,_0x269e1e){const _0x2e1594=_0x2e5b1c;super(_0x4c5584,_0x54535f,_0x48887f,_0x575277,_0x14aec7,_0x1264d7,_0x269e1e,_0x150079,_0x41387b),l(this,_0x2e1594(0x450),_0x2e1594(0x15a)),(this[_0x2e1594(0x3ac)]=_0x5dc348,this[_0x2e1594(0x2ec)]=_0xe449c4,this[_0x2e1594(0x3cf)]=_0xf935fc);}[_0x2e5b1c(0x415)](_0x1c89f0){const _0x14a29e=_0x2e5b1c;return this[_0x14a29e(0x40d)]['push'](_0x1c89f0),this;}['onRemoteChangeset'](_0x2b8e8e){const _0x2e7985=_0x2e5b1c;if(this['_checkMissing'](_0x2b8e8e))return this[_0x2e7985(0x3ac)]['createInstance'](H,this[_0x2e7985(0x3a4)],this['type'],this[_0x2e7985(0x448)],this[_0x2e7985(0x40d)],null,[_0x2b8e8e],this[_0x2e7985(0x1aa)]);try{const _0x170f60=this[_0x2e7985(0x3cf)]['transformChangesets']([_0x2b8e8e],[this['_awaitingChangeset']],!0x1);if(_0x71b04d(_0x170f60)){const {c1Prime:_0xf7f405,c2Prime:_0x1f24a8}=_0x170f60,_0x1e1790=this[_0x2e7985(0x3cf)][_0x2e7985(0x389)](_0xf7f405[0x0],this[_0x2e7985(0x40d)]);if(_0x24d018(_0x1e1790)){const {c1Prime:_0x2f0021,m2Prime:_0x5000f5}=_0x1e1790;return this[_0x2e7985(0x14c)](_0x2f0021),_0x1f24a8[0x0][_0x2e7985(0x24c)]=this[_0x2e7985(0x156)](),this['_injector'][_0x2e7985(0x254)](K,this[_0x2e7985(0x3a4)],this[_0x2e7985(0x255)],_0x1f24a8[0x0],_0x5000f5,this[_0x2e7985(0x1aa)]);}throw _0x1e1790[_0x2e7985(0x30b)];}throw _0x170f60[_0x2e7985(0x30b)];}catch(_0x1a0f91){return this[_0x2e7985(0x2ec)][_0x2e7985(0x30b)](_0x1a0f91),this[_0x2e7985(0x2d4)](!0x1);}}[_0x2e5b1c(0x2bd)](_0x336870){const _0x30a00a=_0x2e5b1c;if(this[_0x30a00a(0x32a)](_0x336870))return this[_0x30a00a(0x3ac)]['createInstance'](H,this[_0x30a00a(0x3a4)],this[_0x30a00a(0x255)],null,this[_0x30a00a(0x40d)],this[_0x30a00a(0x448)],[],this[_0x30a00a(0x1aa)]);this[_0x30a00a(0x21f)]();const _0x307ad3=this[_0x30a00a(0x3ac)][_0x30a00a(0x254)](Y,this[_0x30a00a(0x3a4)],this['type'],this[_0x30a00a(0x40d)],this['_handler']);return _0x307ad3[_0x30a00a(0x25a)](),_0x307ad3[_0x30a00a(0x3c2)](),_0x307ad3;}[_0x2e5b1c(0x3a2)](_0x1b099c){const _0x5ac9a0=_0x2e5b1c;return this[_0x5ac9a0(0x2d4)](!!(_0x1b099c!=null&&_0x1b099c['isPermissionRej']));}[_0x2e5b1c(0x3e5)](){const _0x5573c8=_0x2e5b1c;return this[_0x5573c8(0x3ac)][_0x5573c8(0x254)](ee,this[_0x5573c8(0x3a4)],this['type'],this['_awaitingChangeset'],this[_0x5573c8(0x40d)],this[_0x5573c8(0x1aa)]);}['toggleOnline'](){return this;}[_0x2e5b1c(0x3c9)](){const _0x373c5d=_0x2e5b1c;this['_handler'][_0x373c5d(0x164)](this[_0x373c5d(0x448)]);}[_0x2e5b1c(0x2d4)](_0x562f55){const _0x5f579e=_0x2e5b1c;return this[_0x5f579e(0x3ac)][_0x5f579e(0x254)](Q,this[_0x5f579e(0x3a4)],this['type'],null,this[_0x5f579e(0x40d)],this[_0x5f579e(0x1aa)],_0x562f55);}};K=he([f(0x5,_0x5c7fae(_0x5d259e)),f(0x6,_0x5c7fae(_0x4ceeac)),f(0x7,_0x5c7fae(D)),f(0x8,_0x36a317),f(0x9,_0x1cafe9),f(0xa,_0x4e0f96),f(0xb,_0x1bd332)],K);let Q=class extends le{constructor(_0x41aeb2,_0x3930d5,_0x1a199a,_0x110461,_0x12df4b,_0xa73078=!0x1,_0x5962e8,_0x4b6a9b,_0x26f9fc,_0x40ae86,_0x295e8e,_0x43cabb,_0x3949f6){const _0x48bcad=_0x2e5b1c;super(_0x41aeb2,_0x3930d5,_0x1a199a,_0x110461,_0x12df4b,_0x4b6a9b,_0x26f9fc,_0x295e8e,_0x40ae86),l(this,_0x48bcad(0x450),_0x48bcad(0x211)),(this['_isPermissionRej']=_0xa73078,this[_0x48bcad(0x292)]=_0x5962e8,this['_localeService']=_0x43cabb,this[_0x48bcad(0x3ed)]=_0x3949f6,this[_0x48bcad(0x1a6)](),this[_0x48bcad(0x321)](),this['_disableEditing']());}['appendMutation'](){return this;}[_0x2e5b1c(0x3ea)](){return this;}['onRemoteAck'](){return this;}[_0x2e5b1c(0x3a2)](){return this;}[_0x2e5b1c(0x3e5)](){return this;}[_0x2e5b1c(0x405)](){return this;}['resend'](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x2e5b1c(0x321)](){const _0x33395c=_0x2e5b1c;this[_0x33395c(0x170)][_0x33395c(0x336)](this['unitID'],this[_0x33395c(0x255)],null,[]);}['_showConflictNotification'](){const _0x5428b1=_0x2e5b1c;this[_0x5428b1(0x238)]?this[_0x5428b1(0x3ed)][_0x5428b1(0x367)]({'title':this[_0x5428b1(0x452)]['t'](_0x5428b1(0x228)),'content':this[_0x5428b1(0x452)]['t'](_0x5428b1(0x157)),'type':_0x5428b1(0x30b),'duration':0x0}):this[_0x5428b1(0x3ed)]['show']({'title':this[_0x5428b1(0x452)]['t']('conflict.title'),'content':this[_0x5428b1(0x452)]['t'](_0x5428b1(0x24e)),'type':_0x5428b1(0x30b),'duration':0x0});}[_0x2e5b1c(0x482)](){const _0x234539=_0x2e5b1c;this[_0x234539(0x292)][_0x234539(0x143)](new _0x477da8(this[_0x234539(0x3a4)])['id'],!0x1);}};Q=he([f(0x6,_0x5c7fae(_0x241366)),f(0x7,_0x36a317),f(0x8,_0x1bd332),f(0x9,_0x5c7fae(D)),f(0xa,_0x5c7fae(_0x4ceeac)),f(0xb,_0x5c7fae(_0x12e5b3)),f(0xc,_0x4c821a)],Q);let ee=class extends le{constructor(_0xe6f168,_0x375fc1,_0x13e8ec,_0xd2667c,_0x145509,_0x56fb81,_0x485832,_0x1f60de,_0x4f184b,_0x24ed40){const _0x388e43=_0x2e5b1c;super(_0xe6f168,_0x375fc1,_0x13e8ec,_0xd2667c,_0x145509,_0x4f184b,_0x24ed40,_0x485832,_0x1f60de),l(this,_0x388e43(0x450),_0x388e43(0x3e4)),this[_0x388e43(0x3ac)]=_0x56fb81;}[_0x2e5b1c(0x415)](_0x3b692b){const _0x59c97e=_0x2e5b1c;return this['_pendingMutations']['push'](_0x3b692b),this[_0x59c97e(0x3c2)](),this;}[_0x2e5b1c(0x3ea)](_0x246091){const _0x29c499=_0x2e5b1c;throw new Error(_0x29c499(0x3b0));}[_0x2e5b1c(0x2bd)](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x2e5b1c(0x3a2)](){const _0x5cbcf7=_0x2e5b1c;throw new Error(_0x5cbcf7(0x3d6));}[_0x2e5b1c(0x3e5)](){return this;}['toggleOnline'](){const _0x42b5a3=_0x2e5b1c,{_injector:_0x64d0df,_pendingMutations:_0x3d9dda,_awaitingChangeset:_0x16e5c6,unitID:_0x53655b,_handler:_0x5c9d1f,type:_0xd6243c}=this,_0x6fc97e=xs(_0x64d0df,_0x53655b,_0xd6243c,_0x16e5c6,_0x3d9dda,_0x5c9d1f);return _0x6fc97e instanceof Y?_0x6fc97e['_schedule']():(_0x6fc97e instanceof K||_0x6fc97e instanceof Z)&&_0x6fc97e[_0x42b5a3(0x3c9)](),_0x6fc97e;}[_0x2e5b1c(0x3c9)](){const _0x8fb485=_0x2e5b1c;throw new Error(_0x8fb485(0x37c));}};ee=he([f(0x5,_0x5c7fae(_0x5d259e)),f(0x6,_0x5c7fae(_0x4ceeac)),f(0x7,_0x5c7fae(D)),f(0x8,_0x36a317),f(0x9,_0x1bd332)],ee);let H=class extends le{constructor(_0x593018,_0x314c8d,_0xfa8768,_0xbeac0b,_0x2f5b7b,_0x1ea360,_0x4d9d89,_0xfecf,_0x6f1f03,_0x18a50d,_0x1281a4,_0x10fb2b,_0x1a7cf2,_0x212ade){const _0x1ef056=_0x2e5b1c;super(_0x593018,_0x314c8d,_0xfa8768,_0xbeac0b,_0x4d9d89,_0x10fb2b,_0x1a7cf2,_0x6f1f03,_0x18a50d),l(this,_0x1ef056(0x450),_0x1ef056(0x251)),(this[_0x1ef056(0x14d)]=_0x2f5b7b,this[_0x1ef056(0x1e4)]=_0x1ea360,this[_0x1ef056(0x3ac)]=_0xfecf,this['_logService']=_0x1281a4,this[_0x1ef056(0x3cf)]=_0x212ade);}[_0x2e5b1c(0x33f)](_0x464958){const _0x29994a=_0x2e5b1c;try{const _0x39c7f1=[..._0x464958,...this[_0x29994a(0x1e4)]],_0x5956ed=[this[_0x29994a(0x448)]||this[_0x29994a(0x14d)]][_0x29994a(0x133)](_0xfe5af9=>!!_0xfe5af9);let _0x190c92,_0x3f4b11;if(_0x5956ed[_0x29994a(0x1bb)]){const _0x9ce593=this[_0x29994a(0x3cf)][_0x29994a(0x1ad)](_0x39c7f1,_0x5956ed,!0x1);if(!_0x71b04d(_0x9ce593))throw _0x9ce593[_0x29994a(0x30b)];_0x190c92=_0x9ce593[_0x29994a(0x145)],_0x3f4b11=_0x9ce593['c2Prime'];}else _0x190c92=_0x39c7f1,_0x3f4b11=[];let _0x3a68a5=this[_0x29994a(0x40d)];_0x190c92[_0x29994a(0x1cd)](_0x343bb2=>{const _0x4f3f2b=_0x29994a;let _0x4b13dd;if(_0x3a68a5[_0x4f3f2b(0x1bb)]){const _0x4f1c16=this['_transformService']['transformMutationsWithChangeset'](_0x343bb2,_0x3a68a5);if(!_0x24d018(_0x4f1c16))throw _0x4f1c16[_0x4f3f2b(0x30b)];_0x4b13dd=_0x4f1c16['c1Prime'],_0x3a68a5=_0x4f1c16[_0x4f3f2b(0x366)];}else _0x4b13dd=_0x343bb2;this[_0x4f3f2b(0x14c)](_0x4b13dd);}),this[_0x29994a(0x14d)]&&this[_0x29994a(0x21f)](),this[_0x29994a(0x448)]&&_0x3f4b11['length']&&(_0x3f4b11[0x0]['baseRev']=this[_0x29994a(0x156)]());let _0x1226a9;if(this[_0x29994a(0x448)]&&_0x3a68a5[_0x29994a(0x1bb)]!==0x0)_0x1226a9=this['_injector'][_0x29994a(0x254)](K,this[_0x29994a(0x3a4)],this[_0x29994a(0x255)],_0x3f4b11[0x0],_0x3a68a5,this[_0x29994a(0x1aa)]);else{if(this[_0x29994a(0x448)]&&_0x3a68a5[_0x29994a(0x1bb)]===0x0)_0x3f4b11[0x0][_0x29994a(0x24c)]=this['_getCurrentRevision'](),_0x1226a9=this[_0x29994a(0x3ac)][_0x29994a(0x254)](Z,this[_0x29994a(0x3a4)],this[_0x29994a(0x255)],_0x3f4b11[0x0],this[_0x29994a(0x1aa)]);else{if(_0x3a68a5[_0x29994a(0x1bb)]!==0x0){const _0xe25d59=this[_0x29994a(0x3ac)]['createInstance'](Y,this[_0x29994a(0x3a4)],this[_0x29994a(0x255)],_0x3a68a5,this['_handler']);_0xe25d59[_0x29994a(0x25a)](),_0x1226a9=_0xe25d59;}else _0x1226a9=this[_0x29994a(0x3ac)]['createInstance'](Se,this[_0x29994a(0x3a4)],this[_0x29994a(0x255)],this['_handler']);}}return _0x1226a9[_0x29994a(0x3c2)](),_0x1226a9;}catch(_0x3c605f){return this[_0x29994a(0x2ec)][_0x29994a(0x30b)](_0x29994a(0x3a8),_0x29994a(0x132),_0x3c605f),this[_0x29994a(0x3ac)][_0x29994a(0x254)](Q,this[_0x29994a(0x3a4)],this[_0x29994a(0x255)],this[_0x29994a(0x448)],this[_0x29994a(0x40d)],this[_0x29994a(0x1aa)],!0x1);}}['resend'](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}['appendMutation'](_0x3bc73e){const _0x10482a=_0x2e5b1c;return this[_0x10482a(0x40d)]['push'](_0x3bc73e),this;}[_0x2e5b1c(0x3ea)](_0x579baa){const _0x5d3d05=_0x2e5b1c;return this[_0x5d3d05(0x1e4)][_0x5d3d05(0x2f1)](_0x579baa),this;}[_0x2e5b1c(0x2bd)](_0x3dd767){const _0x1b394f=_0x2e5b1c;if(this[_0x1b394f(0x448)])return this[_0x1b394f(0x14d)]=this[_0x1b394f(0x448)],this[_0x1b394f(0x448)]=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x2e5b1c(0x3a2)](_0x54c51e){const _0x5cfdb2=_0x2e5b1c;return this[_0x5cfdb2(0x2d4)](!!(_0x54c51e!=null&&_0x54c51e[_0x5cfdb2(0x44c)]));}[_0x2e5b1c(0x3e5)](){const _0x44a3d6=_0x2e5b1c;return this[_0x44a3d6(0x3ac)][_0x44a3d6(0x254)](ee,this['unitID'],this[_0x44a3d6(0x255)],this['_awaitingChangeset'],this['_pendingMutations'],this['_handler']);}[_0x2e5b1c(0x405)](){return this;}[_0x2e5b1c(0x2d4)](_0x3fa06d){const _0x160052=_0x2e5b1c;return this[_0x160052(0x3ac)]['createInstance'](Q,this['unitID'],this['type'],this[_0x160052(0x448)],this[_0x160052(0x40d)],this[_0x160052(0x1aa)],_0x3fa06d);}};H=he([f(0x7,_0x5c7fae(_0x5d259e)),f(0x8,_0x5c7fae(_0x4ceeac)),f(0x9,_0x5c7fae(D)),f(0xa,_0x1cafe9),f(0xb,_0x36a317),f(0xc,_0x1bd332),f(0xd,_0x4e0f96)],H);function xs(_0x492be6,_0x4d0c17,_0xe5ea13,_0x146561,_0x27f482,_0x2320ab){const _0x5656ba=_0x2e5b1c;return _0x146561&&_0x27f482[_0x5656ba(0x1bb)]?_0x492be6[_0x5656ba(0x254)](K,_0x4d0c17,_0xe5ea13,_0x146561,_0x27f482,_0x2320ab):_0x146561?_0x492be6['createInstance'](Z,_0x4d0c17,_0xe5ea13,_0x146561,_0x2320ab):_0x27f482[_0x5656ba(0x1bb)]?_0x492be6['createInstance'](Y,_0x4d0c17,_0xe5ea13,_0x27f482,_0x2320ab):_0x492be6['createInstance'](Se,_0x4d0c17,_0xe5ea13,_0x2320ab);}var mr=Object[_0x2e5b1c(0x2de)],fr=Object[_0x2e5b1c(0x41c)],Vt=(_0x4b95ae,_0x5cd61a,_0x46ad03,_0x1ba848)=>{const _0x5347b4=_0x2e5b1c;for(var _0x1e1bce=_0x1ba848>0x1?void 0x0:_0x1ba848?fr(_0x5cd61a,_0x46ad03):_0x5cd61a,_0x4688ed=_0x4b95ae[_0x5347b4(0x1bb)]-0x1,_0xc89367;_0x4688ed>=0x0;_0x4688ed--)(_0xc89367=_0x4b95ae[_0x4688ed])&&(_0x1e1bce=(_0x1ba848?_0xc89367(_0x5cd61a,_0x46ad03,_0x1e1bce):_0xc89367(_0x1e1bce))||_0x1e1bce);return _0x1ba848&&_0x1e1bce&&mr(_0x5cd61a,_0x46ad03,_0x1e1bce),_0x1e1bce;},p=(_0x2cfeda,_0xc069a4)=>(_0x547613,_0x532b22)=>_0xc069a4(_0x547613,_0x532b22,_0x2cfeda);let tt=class extends _0x4bff65{constructor(_0x369707,_0x46cd31,_0x336f35,_0x194575,_0x561b12,_0x18171c,_0x4a0276,_0x14fb1b,_0x601a27,_0xfbd1d6,_0x18ef88,_0x888358,_0x4364c7){const _0x104206=_0x2e5b1c;super(),l(this,_0x104206(0x3ec),new _0x16e81a(null)),l(this,_0x104206(0x3a7),this['_state$'][_0x104206(0x2f8)]()),l(this,_0x104206(0x219)),l(this,_0x104206(0x1d4),!0x1),l(this,_0x104206(0x281),this['state$']['pipe'](_0x464900(_0x4195b2=>_0x4195b2?_0x4195b2[_0x104206(0x450)]:w[_0x104206(0x1ac)]),_0x1aec94(0x1))),l(this,_0x104206(0x2c4),!0x1),l(this,_0x104206(0x40b),[]),(this[_0x104206(0x3a4)]=_0x369707,this[_0x104206(0x2c6)]=_0x46cd31,this[_0x104206(0x165)]=_0x336f35,this[_0x104206(0x3ac)]=_0x194575,this['_localCacheService']=_0x561b12,this[_0x104206(0x1b5)]=_0x18171c,this[_0x104206(0x452)]=_0x4a0276,this[_0x104206(0x26e)]=_0x14fb1b,this[_0x104206(0x2ec)]=_0x601a27,this[_0x104206(0x1bd)]=_0xfbd1d6,this[_0x104206(0x396)]=_0x18ef88,this[_0x104206(0x292)]=_0x888358,this[_0x104206(0x1ca)]=_0x4364c7);}get['state'](){return this['_state'];}async[_0x2e5b1c(0x124)](){const _0x1b7d84=_0x2e5b1c;if(this['state'])throw new Error(_0x1b7d84(0x144));await this[_0x1b7d84(0x42f)]();}[_0x2e5b1c(0x2d1)](){return this['_collaborationPaused']=!0x0,_0x29a7b(()=>{const _0x123399=_0x5851;this[_0x123399(0x1d4)]=!0x1,this[_0x123399(0x301)]();});}[_0x2e5b1c(0x252)](_0x1979a4){const _0x56ac7c=_0x2e5b1c;this[_0x56ac7c(0x219)]=_0x1979a4,this[_0x56ac7c(0x3ec)][_0x56ac7c(0x244)](_0x1979a4);}async[_0x2e5b1c(0x42f)](){const _0x321ba8=_0x2e5b1c;var _0x1edee0;this[_0x321ba8(0x252)](await this['_createInitialState']()),this[_0x321ba8(0x1ca)]&&((_0x1edee0=this[_0x321ba8(0x1ca)])==null||_0x1edee0['editingUnit'](this['unitID']),this[_0x321ba8(0x294)](this[_0x321ba8(0x1ca)]['getUnitStatus$'](this[_0x321ba8(0x3a4)])['subscribe'](_0x3513eb=>{const _0x3d463a=_0x321ba8;this[_0x3d463a(0x2ec)][_0x3d463a(0x166)](_0x3d463a(0x458),_0x3d463a(0x263),_0x3513eb),_0x3513eb===$s['OTHER_CLIENTS_EDITING']?(this[_0x3d463a(0x396)][_0x3d463a(0x367)]({'content':this[_0x3d463a(0x452)]['t'](_0x3d463a(0x268)),'type':_0x68ddaa[_0x3d463a(0x425)]}),this[_0x3d463a(0x292)][_0x3d463a(0x143)](new _0x477da8(this[_0x3d463a(0x3a4)])['id'],!0x1)):this['_permissionService'][_0x3d463a(0x143)](new _0x477da8(this[_0x3d463a(0x3a4)])['id'],!0x0);})));let _0x1ccf2d=!0x1;return this['disposeWithMe'](this[_0x321ba8(0x2c6)][_0x321ba8(0x34d)][_0x321ba8(0x3c4)](_0x1c20b0=>{const _0x1a8633=_0x321ba8;_0x1c20b0===W[_0x1a8633(0x13f)]?this[_0x1a8633(0x369)](_0x1ccf2d):_0x1c20b0===W[_0x1a8633(0x1ac)]&&(_0x1ccf2d=!0x0,this['_toggleOffline']());})),this[_0x321ba8(0x294)](this[_0x321ba8(0x2c6)][_0x321ba8(0x372)][_0x321ba8(0x3c4)](_0x1e0a29=>{const _0x427905=_0x321ba8;try{switch(_0x1e0a29[_0x427905(0x2f6)]){case _0x410792[_0x427905(0x2df)]:{this[_0x427905(0x435)](_0x3b19c3(_0x1e0a29[_0x427905(0x249)]));break;}case _0x410792['CHANGESET_ACK']:{this[_0x427905(0x232)](_0x1e0a29['data']);break;}case _0x410792[_0x427905(0x38b)]:{this[_0x427905(0x2ef)]();break;}case _0x410792[_0x427905(0x3f8)]:{this[_0x427905(0x2b3)](_0x1e0a29[_0x427905(0x249)]['changesets'][_0x427905(0x1c7)](_0x35f938=>_0x3b19c3(_0x35f938)));break;}case _0x410792[_0x427905(0x459)]:this[_0x427905(0x2ef)]({'isPermissionRej':!0x0});}}catch(_0x34846d){throw console['error'](_0x427905(0x21d),_0x34846d),_0x34846d;}})),this[_0x321ba8(0x219)];}['_unlockTransition'](){this['_transitionLocked']=!0x1;}[_0x2e5b1c(0x30d)](){const _0x580c59=_0x2e5b1c;if(this[_0x580c59(0x2c4)])throw new Error(_0x580c59(0x37b));this[_0x580c59(0x2c4)]=!0x0;}[_0x2e5b1c(0x383)](_0x5147a6){const _0x18798d=_0x2e5b1c;this['_lockTransition'](),this[_0x18798d(0x252)](this[_0x18798d(0x219)][_0x18798d(0x415)](_0x5147a6)),this['_unlockTransition']();}[_0x2e5b1c(0x435)](_0x5dee92){const _0x1dc887=_0x2e5b1c;if(!(_0x5dee92[_0x1dc887(0x28f)]<=this[_0x1dc887(0x26e)][_0x1dc887(0x135)](this[_0x1dc887(0x3a4)]))){if(this['_collaborationPaused']){this[_0x1dc887(0x40b)][_0x1dc887(0x2f1)](_0x5dee92);return;}this[_0x1dc887(0x258)](_0x5dee92);}}[_0x2e5b1c(0x301)](){const _0xc7a68e=_0x2e5b1c;this['_remoteChangesetQueue'][_0xc7a68e(0x1cd)](_0x151fb7=>this[_0xc7a68e(0x258)](_0x151fb7)),this['_remoteChangesetQueue']=[];}[_0x2e5b1c(0x258)](_0x4ba80f){const _0x2495c8=_0x2e5b1c,_0x41b5d1=this[_0x2495c8(0x1b5)][_0x2495c8(0x12e)][_0x2495c8(0x32b)](this[_0x2495c8(0x1b5)][_0x2495c8(0x12e)][_0x2495c8(0x47a)]()['COMPRESS_MUTATION_APPLY'])(_0x4ba80f[_0x2495c8(0x225)],null)||_0x4ba80f[_0x2495c8(0x225)],_0x2e9c16={..._0x4ba80f,'mutations':_0x41b5d1};this['_lockTransition'](),this[_0x2495c8(0x252)](this[_0x2495c8(0x219)][_0x2495c8(0x3ea)](_0x2e9c16)),this[_0x2495c8(0x204)]();}[_0x2e5b1c(0x232)](_0x1e0620){const _0x569302=_0x2e5b1c;this['_lockTransition'](),this[_0x569302(0x252)](this[_0x569302(0x219)][_0x569302(0x2bd)](_0x1e0620)),this['_unlockTransition']();}[_0x2e5b1c(0x2ef)](_0x351753){const _0x34a206=_0x2e5b1c;this[_0x34a206(0x30d)](),this[_0x34a206(0x252)](this['_state'][_0x34a206(0x3a2)](_0x351753)),this[_0x34a206(0x204)]();}[_0x2e5b1c(0x2b3)](_0x2652a1){const _0x102ff3=_0x2e5b1c;if(!(this['_state']instanceof H))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0x4d1854=_0x2652a1[_0x102ff3(0x1c7)](_0x529866=>{const _0xc10b60=_0x102ff3,_0x3cc1a2=this[_0xc10b60(0x1b5)][_0xc10b60(0x12e)][_0xc10b60(0x32b)](this[_0xc10b60(0x1b5)]['interceptor']['getInterceptPoints']()[_0xc10b60(0x328)])(_0x529866[_0xc10b60(0x225)],null)||_0x529866[_0xc10b60(0x225)];return{..._0x529866,'mutations':_0x3cc1a2};});this[_0x102ff3(0x30d)](),this[_0x102ff3(0x252)](this['_state'][_0x102ff3(0x33f)](_0x4d1854)),this['_unlockTransition']();}[_0x2e5b1c(0x3ce)](){const _0x1fb1a2=_0x2e5b1c;this[_0x1fb1a2(0x30d)](),this[_0x1fb1a2(0x252)](this['_state'][_0x1fb1a2(0x3e5)]()),this[_0x1fb1a2(0x204)]();}[_0x2e5b1c(0x369)](_0x3c7eb7=!0x1){const _0x357dab=_0x2e5b1c;this[_0x357dab(0x30d)](),this[_0x357dab(0x252)](this[_0x357dab(0x219)][_0x357dab(0x405)]()),this[_0x357dab(0x204)]();const _0x255237=this[_0x357dab(0x219)];_0x3c7eb7&&_0x255237 instanceof Se&&(this[_0x357dab(0x30d)](),this[_0x357dab(0x252)](_0x255237[_0x357dab(0x353)]()),this[_0x357dab(0x204)]());}async['_createInitialState'](){return new Promise(_0x20cf34=>{const _0x36bbc5=_0x5851;this[_0x36bbc5(0x2c6)][_0x36bbc5(0x34d)][_0x36bbc5(0x195)](_0x219c0a(0x1))[_0x36bbc5(0x3c4)](async _0x513645=>{const _0x47b9a4=_0x36bbc5;_0x20cf34(await this['_createInitialStateImpl'](_0x513645===W[_0x47b9a4(0x13f)]));});});}['_createHandler'](){const _0x450f58=_0x2e5b1c,_0xd6b647=this[_0x450f58(0x3a4)];return{'onStateChange':(_0x36f2c1,_0x256049)=>{const _0x33b52c=_0x450f58;if(_0x36f2c1!==this[_0x33b52c(0x219)])throw new Error(_0x33b52c(0x1b0)+_0x36f2c1[_0x33b52c(0x450)]+_0x33b52c(0x1fd)+_0x256049[_0x33b52c(0x450)]+_0x33b52c(0x42e)+this['_state']['status']);this['_updateState'](_0x256049);},'onSendChangeset':_0xfdc7e9=>{const _0x454e0c=_0x450f58,_0x29ee31={'eventID':_0x410792[_0x454e0c(0x34b)],'data':{'unitID':_0xfdc7e9[_0x454e0c(0x3a4)],'unitType':this['_type'],'changeset':_0xfdc7e9,'memberID':this[_0x454e0c(0x2c6)][_0x454e0c(0x146)]()}};this['session'][_0x454e0c(0x1ef)](_0x29ee31,this[_0x454e0c(0x3a4)]);},'onMissingChangesets':({from:_0x13ddf2,to:_0x3232de})=>{const _0x301d34=_0x450f58;this['_logService'][_0x301d34(0x166)](_0x301d34(0x458),_0x301d34(0x31b)+_0x13ddf2+_0x301d34(0x45a)+_0x3232de);const _0x414327={'eventID':_0x410792[_0x301d34(0x1b3)],'data':{'unitID':_0xd6b647,'unitType':this[_0x301d34(0x165)],'from':_0x13ddf2,'to':_0x3232de}};this[_0x301d34(0x2c6)][_0x301d34(0x1ef)](_0x414327,this[_0x301d34(0x3a4)]);}};}async[_0x2e5b1c(0x29c)](_0x1cc7ef){const _0x5e9c0c=_0x2e5b1c;var _0x334c5c,_0x323c80;const _0xe9b210=await this[_0x5e9c0c(0x170)][_0x5e9c0c(0x1cb)](this[_0x5e9c0c(0x3a4)]),_0x11bca6=(_0x334c5c=_0xe9b210==null?void 0x0:_0xe9b210[_0x5e9c0c(0x225)])!=null?_0x334c5c:[],_0x13b5d1=(_0x323c80=_0xe9b210==null?void 0x0:_0xe9b210[_0x5e9c0c(0x35c)])!=null?_0x323c80:null,_0x5bd8d3=this[_0x5e9c0c(0x3a4)];try{this['_replayCachedMutations'](_0x13b5d1,_0x11bca6);}catch(_0x1829ac){this[_0x5e9c0c(0x2ec)][_0x5e9c0c(0x30b)](_0x1829ac);}const _0x3e957c=this[_0x5e9c0c(0x1da)]();if(_0x1cc7ef){const _0xf9eb40=xs(this[_0x5e9c0c(0x3ac)],_0x5bd8d3,this[_0x5e9c0c(0x165)],_0x13b5d1,_0x11bca6,_0x3e957c);return _0xf9eb40 instanceof Y?_0xf9eb40[_0x5e9c0c(0x25a)]():(_0xf9eb40 instanceof K||_0xf9eb40 instanceof Z)&&_0xf9eb40[_0x5e9c0c(0x3c9)](),_0xf9eb40;}return this[_0x5e9c0c(0x3ac)]['createInstance'](ee,_0x5bd8d3,this['_type'],_0x13b5d1,_0x11bca6,_0x3e957c);}[_0x2e5b1c(0x44d)](_0x24ace6,_0x1bd951){const _0x464916=_0x2e5b1c;var _0x19edf7,_0x2e95eb;const _0x8cc548=this[_0x464916(0x1b5)]['interceptor'][_0x464916(0x32b)](this[_0x464916(0x1b5)]['interceptor'][_0x464916(0x47a)]()[_0x464916(0x328)]);(_0x19edf7=_0x8cc548((_0x24ace6==null?void 0x0:_0x24ace6['mutations'])||[],null))==null||_0x19edf7[_0x464916(0x1cd)](_0x16c50e=>this[_0x464916(0x1bd)]['executeCommand'](_0x16c50e['id'],_0x16c50e[_0x464916(0x27b)])),(_0x2e95eb=_0x8cc548(_0x1bd951||[],null))==null||_0x2e95eb[_0x464916(0x1cd)](_0x43c1f4=>this[_0x464916(0x1bd)][_0x464916(0x335)](_0x43c1f4['id'],_0x43c1f4['params']));}};tt=Vt([p(0x3,_0x5c7fae(_0x5d259e)),p(0x4,_0x5c7fae(D)),p(0x5,_0x5c7fae(_0xac140b)),p(0x6,_0x5c7fae(_0x12e5b3)),p(0x7,_0x5c7fae(_0x4ceeac)),p(0x8,_0x1cafe9),p(0x9,_0x36a317),p(0xa,_0x29e945),p(0xb,_0x241366),p(0xc,_0x5723b6(it))],tt);let Tt=class extends tt{constructor(_0x266eab,_0x48a92c,_0x4dbbbb,_0x51e5c2,_0x13242f,_0x3f936d,_0x38c6a9,_0x273c9d,_0x25be67,_0x1bae9d,_0x5f0a56,_0x1827ef,_0x70c6bd,_0x2e33fa,_0x505353,_0x46f07f,_0x3adc92){const _0x38db37=_0x2e5b1c;super(_0x266eab,_0x4dbbbb,_0x48a92c,_0x51e5c2,_0x13242f,_0x3f936d,_0x38c6a9,_0x273c9d,_0x70c6bd,_0x2e33fa,_0x505353,_0x46f07f,_0x3adc92),this['unitID']=_0x266eab,this[_0x38db37(0x255)]=_0x48a92c,this['_docStateChangeManagerService']=_0x25be67,this[_0x38db37(0x2cf)]=_0x1bae9d,this[_0x38db37(0x291)]=_0x5f0a56,this[_0x38db37(0x490)]=_0x1827ef;}['_createHandler'](){const _0x544025=_0x2e5b1c,_0x3c5344=super[_0x544025(0x1da)]();return _0x3c5344[_0x544025(0x320)]=_0x2616b1=>this['_docTransformIMECacheService'][_0x544025(0x272)](_0x2616b1),_0x3c5344[_0x544025(0x3d4)]=_0x41bd23=>this[_0x544025(0x291)][_0x544025(0x326)](_0x41bd23),_0x3c5344['onSyncEditingCollabCursor']=_0x14e1cf=>this[_0x544025(0x490)]['syncEditingCollabCursor'](_0x14e1cf),_0x3c5344[_0x544025(0x158)]=_0xcb1e39=>this['_docTransformIMECacheService']['transformRemoteChangeset'](_0xcb1e39),_0x3c5344;}async['_init'](){const _0x431bbb=_0x2e5b1c,_0x3c2868=await super[_0x431bbb(0x42f)]();return this[_0x431bbb(0x294)](this[_0x431bbb(0x1bd)][_0x431bbb(0x20e)]((_0x306b2b,_0x482ff6)=>{const _0x275b4a=_0x431bbb;if(_0x306b2b[_0x275b4a(0x255)]!==_0x32e0b0[_0x275b4a(0x368)]||_0x482ff6!=null&&_0x482ff6['fromCollab']||_0x482ff6!=null&&_0x482ff6[_0x275b4a(0x270)])return;const _0x4d3fbe=_0x306b2b['params'];if((_0x4d3fbe==null?void 0x0:_0x4d3fbe['unitId'])!==this[_0x275b4a(0x3a4)])return;let _0x5e12bd=_0x306b2b;if(_0x5e12bd['id']===_0xa592b4['id']){const _0x19cdce=_0x5e12bd['params'];_0x5e12bd={'id':_0xa592b4['id'],'type':_0x32e0b0[_0x275b4a(0x368)],'params':{'unitId':_0x19cdce[_0x275b4a(0x275)],'actions':_0x19cdce[_0x275b4a(0x1ba)],'textRanges':null}};}const _0x4d84ab=this[_0x275b4a(0x1b5)][_0x275b4a(0x12e)][_0x275b4a(0x32b)](this['_compressMutationService']['interceptor']['getInterceptPoints']()['COMPRESS_MUTATION_SEND'])([_0x5e12bd],null)||[_0x5e12bd];this['_onLocalMutation'](_0x4d84ab[0x0]);})),_0x3c2868;}};Tt=Vt([p(0x3,_0x5c7fae(_0x5d259e)),p(0x4,_0x5c7fae(D)),p(0x5,_0x5c7fae(_0xac140b)),p(0x6,_0x5c7fae(_0x12e5b3)),p(0x7,_0x5c7fae(_0x4ceeac)),p(0x8,_0x5c7fae(_0x34634f)),p(0x9,_0x5c7fae(Ze)),p(0xa,_0x5c7fae(et)),p(0xb,_0x5c7fae(Bt)),p(0xc,_0x1cafe9),p(0xd,_0x36a317),p(0xe,_0x29e945),p(0xf,_0x241366),p(0x10,_0x5723b6(it))],Tt);let Rt=class extends tt{constructor(_0x262f80,_0x335104,_0x2acc1c,_0x29a3f7,_0x596fd8,_0x5eb564,_0x2cae16,_0x501fb4,_0x31b383,_0x319bd7,_0x22f9b7,_0x1dc420,_0x8a9e3f,_0xc27cd7){const _0x3f398e=_0x2e5b1c;super(_0x262f80,_0x2acc1c,_0x335104,_0x29a3f7,_0x596fd8,_0x5eb564,_0x2cae16,_0x501fb4,_0x319bd7,_0x22f9b7,_0x1dc420,_0x8a9e3f,_0xc27cd7),this[_0x3f398e(0x3a4)]=_0x262f80,this[_0x3f398e(0x255)]=_0x335104,this[_0x3f398e(0x331)]=_0x31b383;}[_0x2e5b1c(0x1da)](){const _0x9dce1a=_0x2e5b1c,_0x54f89f=super[_0x9dce1a(0x1da)]();return _0x54f89f[_0x9dce1a(0x3d4)]=_0x3b846c=>this[_0x9dce1a(0x331)]['transformSelections'](_0x3b846c),_0x54f89f;}async[_0x2e5b1c(0x42f)](){const _0x4e699b=_0x2e5b1c,_0x2cdef6=await super[_0x4e699b(0x42f)]();return this[_0x4e699b(0x294)](this[_0x4e699b(0x1bd)]['onCommandExecuted']((_0x4a4950,_0x3b27a5)=>{const _0x4939c6=_0x4e699b;if(_0x4a4950[_0x4939c6(0x255)]!==_0x32e0b0[_0x4939c6(0x368)]||_0x3b27a5!=null&&_0x3b27a5['fromCollab']||_0x3b27a5!=null&&_0x3b27a5[_0x4939c6(0x270)])return;const _0x36f258=_0x4a4950['params'];if((_0x36f258==null?void 0x0:_0x36f258[_0x4939c6(0x275)])!==this['unitID'])return;const _0x947d24=_0x4a4950,_0x1f4749=this['_compressMutationService'][_0x4939c6(0x12e)][_0x4939c6(0x32b)](this['_compressMutationService']['interceptor'][_0x4939c6(0x47a)]()[_0x4939c6(0x2b7)])([_0x947d24],null)||[_0x947d24];this[_0x4939c6(0x383)](_0x1f4749[0x0]);})),_0x2cdef6;}};Rt=Vt([p(0x3,_0x5c7fae(_0x5d259e)),p(0x4,_0x5c7fae(D)),p(0x5,_0x5c7fae(_0xac140b)),p(0x6,_0x5c7fae(_0x12e5b3)),p(0x7,_0x5c7fae(_0x4ceeac)),p(0x8,_0x5c7fae(Qe)),p(0x9,_0x1cafe9),p(0xa,_0x36a317),p(0xb,_0x29e945),p(0xc,_0x241366),p(0xd,_0x5723b6(it))],Rt);var gr=Object['defineProperty'],Sr=Object['getOwnPropertyDescriptor'],pr=(_0x282f42,_0x443ff8,_0x1932e3,_0x5eebd7)=>{const _0x2af0f6=_0x2e5b1c;for(var _0x368c1e=_0x5eebd7>0x1?void 0x0:_0x5eebd7?Sr(_0x443ff8,_0x1932e3):_0x443ff8,_0x533ef5=_0x282f42[_0x2af0f6(0x1bb)]-0x1,_0x51d5a3;_0x533ef5>=0x0;_0x533ef5--)(_0x51d5a3=_0x282f42[_0x533ef5])&&(_0x368c1e=(_0x5eebd7?_0x51d5a3(_0x443ff8,_0x1932e3,_0x368c1e):_0x51d5a3(_0x368c1e))||_0x368c1e);return _0x5eebd7&&_0x368c1e&&gr(_0x443ff8,_0x1932e3,_0x368c1e),_0x368c1e;},_t=(_0x2690b1,_0x398886)=>(_0x543e75,_0x175b03)=>_0x398886(_0x543e75,_0x175b03,_0x2690b1);let Ae=class extends _0x4bff65{constructor(_0x328662,_0x4ba954,_0x540a3e){const _0x2f77b3=_0x2e5b1c;super(),l(this,'_entities',new Map()),l(this,'_entityInit$',new _0x47a81b()),(this[_0x2f77b3(0x3ac)]=_0x328662,this[_0x2f77b3(0x3f1)]=_0x4ba954,this[_0x2f77b3(0x1ae)]=_0x540a3e,this[_0x2f77b3(0x42f)]());}[_0x2e5b1c(0x2fe)](){const _0x4da6a5=_0x2e5b1c;super[_0x4da6a5(0x2fe)](),this['_entities'][_0x4da6a5(0x1cd)](_0x15f317=>_0x15f317[_0x4da6a5(0x2fe)]()),this[_0x4da6a5(0x36c)]['clear']();}[_0x2e5b1c(0x350)](_0x16a76d){const _0x217514=_0x2e5b1c;var _0x37c0c2;return(_0x37c0c2=this[_0x217514(0x36c)][_0x217514(0x18f)](_0x16a76d))!=null?_0x37c0c2:null;}['getCollabEntity$'](_0x1c4ee2){const _0x3c4bed=_0x2e5b1c,_0x121c39=this[_0x3c4bed(0x350)](_0x1c4ee2);return _0x121c39?_0x8d55e(_0x121c39):this[_0x3c4bed(0x394)][_0x3c4bed(0x195)](_0x48e324(_0x2d5d87=>_0x2d5d87[_0x3c4bed(0x3a4)]===_0x1c4ee2));}['_init'](){const _0x25af9b=_0x2e5b1c;this[_0x25af9b(0x1ae)][_0x25af9b(0x1a4)](_0x3bf0d9['UNIVER_SHEET'])[_0x25af9b(0x195)](_0x2123e0(this[_0x25af9b(0x3be)]),_0x1e04ab(0x10))[_0x25af9b(0x3c4)](async _0x28300a=>{const _0x19dbaa=_0x25af9b,_0x2be540=_0x28300a[_0x19dbaa(0x426)](),_0x5d3151=await this[_0x19dbaa(0x2ac)](_0x2be540,x['UNIVER_SHEET']);this[_0x19dbaa(0x36c)]['set'](_0x2be540,_0x5d3151);}),this[_0x25af9b(0x1ae)]['getTypeOfUnitAdded$'](_0x3bf0d9[_0x25af9b(0x1de)])[_0x25af9b(0x195)](_0x2123e0(this[_0x25af9b(0x3be)]),_0x1e04ab(0x10))['pipe'](_0x48e324(_0x11a829=>!_0x11a829[_0x25af9b(0x426)]()[_0x25af9b(0x1e5)]('__')))[_0x25af9b(0x3c4)](async _0xb2b8c3=>{const _0x18a3a9=_0x25af9b,_0x51577e=_0xb2b8c3[_0x18a3a9(0x426)](),_0xc5ef93=await this['_startCollaboration'](_0x51577e,x[_0x18a3a9(0x1de)]);this[_0x18a3a9(0x36c)][_0x18a3a9(0x1e1)](_0x51577e,_0xc5ef93);}),_0x9334d7(this[_0x25af9b(0x1ae)][_0x25af9b(0x46a)](_0x3bf0d9[_0x25af9b(0x2c7)]),this[_0x25af9b(0x1ae)][_0x25af9b(0x46a)](_0x3bf0d9['UNIVER_DOC']))['pipe'](_0x2123e0(this['dispose$']))['subscribe'](_0x1be065=>{const _0x41c62f=_0x25af9b,_0x5ddeba=_0x1be065['getUnitId'](),_0x57baa1=this[_0x41c62f(0x36c)]['get'](_0x5ddeba);_0x57baa1&&(_0x57baa1[_0x41c62f(0x2fe)](),this[_0x41c62f(0x36c)][_0x41c62f(0x18d)](_0x5ddeba));});}async[_0x2e5b1c(0x2ac)](_0x136772,_0xeae53){const _0x31a250=_0x2e5b1c,_0x3cca57=await this[_0x31a250(0x3f1)][_0x31a250(0x205)](_0x136772),_0x3467fb=this[_0x31a250(0x3ac)][_0x31a250(0x254)](this['_getCtorByUniverType'](_0xeae53),_0x136772,_0xeae53,_0x3cca57);return await _0x3467fb['init'](),this['_entityInit$'][_0x31a250(0x244)](_0x3467fb),_0x3467fb;}['_getCtorByUniverType'](_0xfc2989){const _0x3c98b5=_0x2e5b1c;switch(_0xfc2989){case x['UNIVER_DOC']:return Tt;case x[_0x3c98b5(0x2c7)]:return Rt;default:throw new Error(_0x3c98b5(0x451)+_0xfc2989);}}};Ae=pr([_t(0x0,_0x5c7fae(_0x5d259e)),_t(0x1,_0x5c7fae(ae)),_t(0x2,_0x30b2f2)],Ae);const ls=['purple300',_0x2e5b1c(0x380),_0x2e5b1c(0x465),_0x2e5b1c(0x358),'blue400',_0x2e5b1c(0x420)];class Ft extends _0x36403b{constructor(){const _0x2bfa68=_0x2e5b1c;super(...arguments),l(this,_0x2bfa68(0x29e),new Map()),l(this,_0x2bfa68(0x159),0x0);}[_0x2e5b1c(0x26c)](_0x1f9456){const _0x5a514f=_0x2e5b1c;if(this[_0x5a514f(0x29e)][_0x5a514f(0x250)](_0x1f9456))return this['_assignedColors'][_0x5a514f(0x18f)](_0x1f9456);const _0x137ce1=ls[this[_0x5a514f(0x159)]];return this[_0x5a514f(0x159)]=(this[_0x5a514f(0x159)]+0x1)%ls[_0x5a514f(0x1bb)],this[_0x5a514f(0x29e)][_0x5a514f(0x1e1)](_0x1f9456,_0x137ce1),_0x137ce1;}}var vr=Object[_0x2e5b1c(0x2de)],Ir=Object[_0x2e5b1c(0x41c)],Er=(_0x3f29b7,_0x11011d,_0x9a1aaa,_0x149a36)=>{for(var _0x33d613=_0x149a36>0x1?void 0x0:_0x149a36?Ir(_0x11011d,_0x9a1aaa):_0x11011d,_0x106f4c=_0x3f29b7['length']-0x1,_0x212c27;_0x106f4c>=0x0;_0x106f4c--)(_0x212c27=_0x3f29b7[_0x106f4c])&&(_0x33d613=(_0x149a36?_0x212c27(_0x11011d,_0x9a1aaa,_0x33d613):_0x212c27(_0x33d613))||_0x33d613);return _0x149a36&&_0x33d613&&vr(_0x11011d,_0x9a1aaa,_0x33d613),_0x33d613;},de=(_0x14c03d,_0x25f081)=>(_0x27054b,_0x205f33)=>_0x25f081(_0x27054b,_0x205f33,_0x14c03d);const Cr=0x12c,br=0x64,Tr=()=>{let _0x31f185=[],_0x1f2e9a=!0x1;return _0x16798c=>{const _0x31b04b=_0x5851;_0x31f185[_0x31b04b(0x2f1)](_0x16798c),_0x1f2e9a||(_0x1f2e9a=!0x0,setTimeout(()=>{const _0x511562=_0x31b04b;_0x31f185[_0x511562(0x1cd)](_0x2fc867=>_0x2fc867()),_0x31f185=[],_0x1f2e9a=!0x1;}));};};let Ot=class extends _0x4bff65{constructor(_0x5d1019,_0x5148f6,_0x43b7c7,_0x19d5ff,_0x1a058e,_0x469b7a,_0x7af0f8,_0x17a6df){const _0x398ac9=_0x2e5b1c;super(),l(this,'_online',!0x1),l(this,_0x398ac9(0x42f),!0x1),l(this,_0x398ac9(0x2f3),new _0x16e81a(new Map())),l(this,_0x398ac9(0x393),this[_0x398ac9(0x2f3)][_0x398ac9(0x2f8)]()),l(this,'_roomMembers$',new _0x16e81a([])),l(this,_0x398ac9(0x39d),this[_0x398ac9(0x274)][_0x398ac9(0x195)](_0x116e1b(Cr))),l(this,'_updateLocalCursor',_0x415879((_0x325e6f,_0x479e95)=>{const _0x3fbf12=_0x398ac9,_0x206c9a={'eventID':_0x410792[_0x3fbf12(0x227)],'data':{'unitID':this[_0x3fbf12(0x3a4)],'memberID':this['_session'][_0x3fbf12(0x146)](),'selection':_0x508689(_0x325e6f,_0x479e95[_0x3fbf12(0x2c0)])}};this[_0x3fbf12(0x233)]['send'](_0x206c9a,this[_0x3fbf12(0x3a4)]);},br)),(this['unitID']=_0x5d1019,this['_session']=_0x5148f6,this[_0x398ac9(0x3ac)]=_0x43b7c7,this['_colorAssignService']=_0x19d5ff,this[_0x398ac9(0x2a9)]=_0x1a058e,this[_0x398ac9(0x1ae)]=_0x469b7a,this['_commandService']=_0x7af0f8,this[_0x398ac9(0x1c6)]=_0x17a6df);}get['cursorInfo'](){const _0x403fb6=_0x2e5b1c;return this[_0x403fb6(0x2f3)][_0x403fb6(0x131)]();}get[_0x2e5b1c(0x223)](){const _0x5184ba=_0x2e5b1c;return this['_roomMembers$'][_0x5184ba(0x131)]();}[_0x2e5b1c(0x2fe)](){const _0xf8359a=_0x2e5b1c;super[_0xf8359a(0x2fe)](),this[_0xf8359a(0x2f3)][_0xf8359a(0x244)](new Map()),this[_0xf8359a(0x2f3)][_0xf8359a(0x447)](),this[_0xf8359a(0x274)][_0xf8359a(0x244)]([]),this['_roomMembers$']['complete']();}[_0x2e5b1c(0x124)](){const _0x4f06b5=_0x2e5b1c;this[_0x4f06b5(0x42f)]||(this[_0x4f06b5(0x42f)]=!0x0,this[_0x4f06b5(0x233)][_0x4f06b5(0x34d)][_0x4f06b5(0x195)](_0x2123e0(this['dispose$']))[_0x4f06b5(0x3c4)](_0x10a987=>{const _0x16d182=_0x4f06b5;_0x10a987===W[_0x16d182(0x13f)]?this[_0x16d182(0x369)]():this[_0x16d182(0x3ce)]();}),this[_0x4f06b5(0x233)][_0x4f06b5(0x372)][_0x4f06b5(0x195)](_0x2123e0(this[_0x4f06b5(0x3be)]))[_0x4f06b5(0x3c4)](_0x4cef5b=>{const _0x49d75d=_0x4f06b5,_0x5cf742=_0x4cef5b[_0x49d75d(0x2f6)];_0x5cf742===_0x410792[_0x49d75d(0x227)]&&this['_onCursorUpdate'](_0x4cef5b),_0x5cf742===_0x410792[_0x49d75d(0x306)]&&this[_0x49d75d(0x3a3)](_0x4cef5b);}),this[_0x4f06b5(0x42b)](),this[_0x4f06b5(0x294)](this[_0x4f06b5(0x1bd)]['onCommandExecuted'](_0xd18e0a=>{const _0x5513aa=_0x4f06b5;if(this['_online']&&_0xd18e0a['id']===_0x2498cc['id']&&_0xd18e0a['params'][_0x5513aa(0x275)]===this[_0x5513aa(0x3a4)]){const _0x507576=_0xd18e0a[_0x5513aa(0x27b)];this[_0x5513aa(0x32c)](_0x507576[_0x5513aa(0x3f7)],_0x507576[_0x5513aa(0x230)][0x0]);}})));}[_0x2e5b1c(0x352)](_0x2482bf){const _0x24c869=_0x2e5b1c;var _0x35ba05,_0x2d4ee7;const {memberID:_0x1bff8c,selection:_0x366964}=_0x2482bf[_0x24c869(0x249)],{sheetName:_0x4b2b72,range:_0x1d7fb8}=_0x5b5841(_0x366964),_0x45a9f4={'name':(_0x2d4ee7=(_0x35ba05=this[_0x24c869(0x2a9)][_0x24c869(0x23f)](this[_0x24c869(0x3a4)],_0x1bff8c))==null?void 0x0:_0x35ba05[_0x24c869(0x397)])!=null?_0x2d4ee7:_0x24c869(0x414),'range':this[_0x24c869(0x3c3)](_0x4b2b72,_0x1d7fb8),'sheetID':_0x4b2b72,'color':this[_0x24c869(0x341)][_0x24c869(0x26c)](_0x1bff8c),'selection':_0x366964},_0x5d3eeb=this[_0x24c869(0x1ab)];_0x5d3eeb[_0x24c869(0x1e1)](_0x1bff8c,_0x45a9f4),this[_0x24c869(0x2f3)]['next'](_0x5d3eeb);}[_0x2e5b1c(0x3a3)](_0x31ee6b){const _0x991657=_0x2e5b1c,{memberID:_0x4a9cdd}=_0x31ee6b[_0x991657(0x249)],_0x24d841=this[_0x991657(0x1ab)];_0x24d841[_0x991657(0x18d)](_0x4a9cdd),this[_0x991657(0x2f3)][_0x991657(0x244)](_0x24d841);}[_0x2e5b1c(0x3c3)](_0x452953,_0x1542a7){const _0x399d4d=_0x2e5b1c;var _0x4d4783,_0x25306a;const _0x3685c1=(_0x25306a=(_0x4d4783=this[_0x399d4d(0x1ae)][_0x399d4d(0x1be)](this[_0x399d4d(0x3a4)]))==null?void 0x0:_0x4d4783[_0x399d4d(0x378)](_0x452953))==null?void 0x0:_0x25306a[_0x399d4d(0x284)]();return(_0x3685c1==null?void 0x0:_0x3685c1[_0x399d4d(0x2c5)](_0x4aed97=>_0x183c22[_0x399d4d(0x351)](_0x4aed97,_0x1542a7)))||_0x1542a7;}[_0x2e5b1c(0x42b)](){const _0x3426b1=_0x2e5b1c,_0x25f72b=new _0x3bb8a8(),_0x26bdc2=Tr(),_0x4101dc=()=>{const _0xf29ba8=_0x5851;_0x25f72b[_0xf29ba8(0x2fe)]();const _0x2385cb=(_0x3b9470,_0x41b3c5,_0x39d407,_0x1c6589)=>{const _0x2ef445=_0xf29ba8;let _0x48b5c0=[];switch(_0x3b9470['id']){case _0xa2b790[_0x2ef445(0x3f6)]:{_0x48b5c0=_0x3c8f35(_0x3b9470,_0x1c6589);break;}case _0xa2b790[_0x2ef445(0x413)]:{_0x48b5c0=_0x552ee5(_0x3b9470,_0x1c6589);break;}case _0xa2b790[_0x2ef445(0x2a2)]:{_0x48b5c0=_0x34e016(_0x3b9470,_0x1c6589);break;}case _0xa2b790[_0x2ef445(0x172)]:{_0x48b5c0=_0x4827cd(_0x3b9470,_0x1c6589);break;}case _0xa2b790[_0x2ef445(0x15d)]:{_0x48b5c0=_0x1731a1(_0x3b9470,_0x1c6589);break;}case _0xa2b790[_0x2ef445(0x342)]:{_0x48b5c0=_0x375cdc(_0x3b9470,_0x1c6589);break;}case _0xa2b790[_0x2ef445(0x39c)]:{_0x48b5c0=_0x2f5847(_0x3b9470,_0x1c6589);break;}case _0xa2b790[_0x2ef445(0x21b)]:{_0x48b5c0=_0x824d6d(_0x3b9470,_0x1c6589);break;}case _0xa2b790[_0x2ef445(0x25b)]:{_0x48b5c0=_0x2f61ec(_0x3b9470,_0x1c6589);break;}}const _0xd96975=_0x15b7fb(_0x48b5c0,_0x1c6589),_0xf185c6=this[_0x2ef445(0x1ab)][_0x2ef445(0x18f)](_0x41b3c5);if(_0xf185c6&&_0xd96975){const _0x395c45={..._0xf185c6,'range':_0xd96975};this[_0x2ef445(0x1ab)][_0x2ef445(0x1e1)](_0x41b3c5,_0x395c45),_0x26bdc2(()=>{const _0x3737dd=_0x2ef445,_0x15ae08=this[_0x3737dd(0x1c6)][_0x3737dd(0x400)](_0xd96975,_0x65c3=>(_0x15ae08[_0x3737dd(0x2fe)](),_0x2385cb(_0x65c3,_0x41b3c5,_0x39d407,_0xd96975)));_0x25f72b[_0x3737dd(0x47b)](_0x15ae08);});}return{'redos':[],'undos':[]};};this[_0xf29ba8(0x1ab)][_0xf29ba8(0x1cd)]((_0x7bdbc8,_0x5a07cc)=>{const _0x55c58d=_0xf29ba8,{range:_0x141034,sheetID:_0x1b7139}=_0x7bdbc8,_0x3c7bc9=this[_0x55c58d(0x1c6)][_0x55c58d(0x400)](_0x141034,_0x1696c7=>(_0x3c7bc9[_0x55c58d(0x2fe)](),_0x2385cb(_0x1696c7,_0x5a07cc,_0x1b7139,_0x141034)));_0x25f72b[_0x55c58d(0x47b)](_0x3c7bc9);});};this[_0x3426b1(0x294)](_0x29a7b(this[_0x3426b1(0x2f3)][_0x3426b1(0x3c4)](()=>{_0x4101dc();})));}[_0x2e5b1c(0x369)](){const _0x463621=_0x2e5b1c;var _0x425260,_0x1c0916;if(this[_0x463621(0x462)]=!0x0,((_0x425260=this[_0x463621(0x1ae)][_0x463621(0x1e7)]())==null?void 0x0:_0x425260['getUnitId']())!==this[_0x463621(0x3a4)])return;const _0x3021ec=(_0x1c0916=this[_0x463621(0x3ac)][_0x463621(0x18f)](_0x85923d)[_0x463621(0x460)]())==null?void 0x0:_0x1c0916[0x0],_0x169ed8=this[_0x463621(0x1ae)][_0x463621(0x224)](_0x3bf0d9['UNIVER_SHEET'])[_0x463621(0x29a)]();_0x3021ec&&_0x169ed8&&this[_0x463621(0x32c)](_0x169ed8[_0x463621(0x3b5)](),_0x3021ec);}['_toggleOffline'](){this['_online']=!0x1;}};Ot=Er([de(0x2,_0x5c7fae(_0x5d259e)),de(0x3,_0x5c7fae(Ft)),de(0x4,_0x5c7fae(oe)),de(0x5,_0x30b2f2),de(0x6,_0x36a317),de(0x7,_0x5c7fae(_0x504358))],Ot);var Rr=Object[_0x2e5b1c(0x2de)],Or=Object[_0x2e5b1c(0x41c)],Dr=(_0x5051c5,_0x407f80,_0x200c16,_0x19bed2)=>{const _0x548723=_0x2e5b1c;for(var _0x5a7794=_0x19bed2>0x1?void 0x0:_0x19bed2?Or(_0x407f80,_0x200c16):_0x407f80,_0x98fa8e=_0x5051c5[_0x548723(0x1bb)]-0x1,_0x4cbc3e;_0x98fa8e>=0x0;_0x98fa8e--)(_0x4cbc3e=_0x5051c5[_0x98fa8e])&&(_0x5a7794=(_0x19bed2?_0x4cbc3e(_0x407f80,_0x200c16,_0x5a7794):_0x4cbc3e(_0x5a7794))||_0x5a7794);return _0x19bed2&&_0x5a7794&&Rr(_0x407f80,_0x200c16,_0x5a7794),_0x5a7794;},se=(_0x3738f6,_0x172c88)=>(_0x29a834,_0x6f65ab)=>_0x172c88(_0x29a834,_0x6f65ab,_0x3738f6);const wr=0x12c,Pr=0x64;let Dt=class extends _0x4bff65{constructor(_0x1dd0b3,_0x3384fe,_0x482c97,_0x19e773,_0x1f7611,_0x240638,_0x1d0700,_0x41b366,_0x525b2c){const _0x4236e6=_0x2e5b1c;super(),l(this,_0x4236e6(0x462),!0x1),l(this,_0x4236e6(0x42f),!0x1),l(this,_0x4236e6(0x2f3),new _0x16e81a(new Map())),l(this,_0x4236e6(0x393),this[_0x4236e6(0x2f3)][_0x4236e6(0x2f8)]()),l(this,_0x4236e6(0x274),new _0x16e81a([])),l(this,_0x4236e6(0x39d),this['_roomMembers$'][_0x4236e6(0x195)](_0x116e1b(wr))),l(this,_0x4236e6(0x32c),_0x415879(_0x298044=>{const _0x3c77b3=_0x4236e6,_0x2cd269={'eventID':_0x410792['UPDATE_CURSOR'],'data':{'unitID':this[_0x3c77b3(0x3a4)],'memberID':this[_0x3c77b3(0x233)][_0x3c77b3(0x146)](),'selection':js(_0x298044)}};this[_0x3c77b3(0x233)][_0x3c77b3(0x1ef)](_0x2cd269,this['unitID']);},Pr)),(this[_0x4236e6(0x3a4)]=_0x1dd0b3,this[_0x4236e6(0x233)]=_0x3384fe,this[_0x4236e6(0x3ac)]=_0x482c97,this[_0x4236e6(0x341)]=_0x19e773,this[_0x4236e6(0x2a9)]=_0x1f7611,this['_syncEditingCollabCursorService']=_0x240638,this[_0x4236e6(0x3cf)]=_0x1d0700,this[_0x4236e6(0x1ae)]=_0x41b366,this[_0x4236e6(0x1bd)]=_0x525b2c);}get[_0x2e5b1c(0x1ab)](){const _0x3f3298=_0x2e5b1c;return this[_0x3f3298(0x2f3)][_0x3f3298(0x131)]();}get[_0x2e5b1c(0x223)](){return this['_roomMembers$']['getValue']();}[_0x2e5b1c(0x2fe)](){const _0x290a16=_0x2e5b1c;super['dispose'](),this[_0x290a16(0x2f3)][_0x290a16(0x244)](new Map()),this[_0x290a16(0x2f3)][_0x290a16(0x447)](),this['_roomMembers$'][_0x290a16(0x244)]([]),this[_0x290a16(0x274)][_0x290a16(0x447)]();}[_0x2e5b1c(0x124)](){const _0x903dcb=_0x2e5b1c;this[_0x903dcb(0x42f)]||(this[_0x903dcb(0x42f)]=!0x0,this[_0x903dcb(0x233)]['sessionStatus$'][_0x903dcb(0x195)](_0x2123e0(this['dispose$']))[_0x903dcb(0x3c4)](_0x19ff0c=>{const _0x57f077=_0x903dcb;_0x19ff0c===W[_0x57f077(0x13f)]?this['_toggleOnline']():this[_0x57f077(0x3ce)]();}),this['_session'][_0x903dcb(0x372)][_0x903dcb(0x195)](_0x2123e0(this[_0x903dcb(0x3be)]))[_0x903dcb(0x3c4)](_0x1d3805=>{const _0x2bc5d4=_0x903dcb,_0x3c7ca5=_0x1d3805[_0x2bc5d4(0x2f6)];_0x3c7ca5===_0x410792['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x1d3805),_0x3c7ca5===_0x410792[_0x2bc5d4(0x306)]&&this[_0x2bc5d4(0x3a3)](_0x1d3805);}),this[_0x903dcb(0x294)](this['_commandService'][_0x903dcb(0x20e)](_0xf2419a=>{const _0xd2bf1c=_0x903dcb,_0x12854c=_0xf2419a[_0xd2bf1c(0x27b)];_0x12854c!=null&&this['_online']&&_0xf2419a['id']===_0x26b3ce['id']&&_0x12854c[_0xd2bf1c(0x275)]===this['unitID']&&_0x12854c[_0xd2bf1c(0x1a0)]===!0x1&&this['_updateLocalCursor'](_0x12854c[_0xd2bf1c(0x23a)]);})),this['_syncEditingCollabCursorService'][_0x903dcb(0x39e)][_0x903dcb(0x195)](_0x2123e0(this[_0x903dcb(0x3be)]))[_0x903dcb(0x3c4)](_0x3fe8d5=>{const _0x4803e0=_0x903dcb;if((_0x3fe8d5==null?void 0x0:_0x3fe8d5[_0x4803e0(0x3a4)])!==this[_0x4803e0(0x3a4)])return;const _0x494e67={'eventID':_0x410792['UPDATE_CURSOR'],'data':_0x3fe8d5};this[_0x4803e0(0x352)](_0x494e67);}),this[_0x903dcb(0x294)](this[_0x903dcb(0x1bd)]['onCommandExecuted'](_0x4c68f5=>{const _0x4f1002=_0x903dcb;if(_0x4c68f5[_0x4f1002(0x27b)]==null)return;const _0x2e396d=_0x4c68f5['params'];if(_0x4c68f5['id']!==_0xa592b4['id']||_0x2e396d['unitId']!==this[_0x4f1002(0x3a4)])return;const _0x374042={'id':'doc.mutation.rich-text-editing','params':_0x2e396d},_0x2bb89f=this[_0x4f1002(0x1ab)];for(const [_0x554c20,_0x180929]of _0x2bb89f){const _0x5f446c={'id':_0x4f1002(0x3ad),'params':{'unitId':this[_0x4f1002(0x3a4)],'actions':null,'textRanges':_0x180929[_0x4f1002(0x23a)]}},_0x4ced74=this[_0x4f1002(0x3cf)][_0x4f1002(0x2d7)](_0x374042,_0x5f446c,!0x1);if(_0x517f04(_0x4ced74))throw _0x4ced74[_0x4f1002(0x30b)];_0x2bb89f[_0x4f1002(0x1e1)](_0x554c20,{..._0x180929,'ranges':_0x4ced74[_0x4f1002(0x366)]['params'][_0x4f1002(0x43f)]});}queueMicrotask(()=>{const _0x324978=_0x4f1002;this['_cursorInfo$'][_0x324978(0x244)](_0x2bb89f);});})));}[_0x2e5b1c(0x352)](_0x4a2c0f){const _0x2e2485=_0x2e5b1c;var _0x3e199e,_0x4959f9;const {memberID:_0x170cd4,selection:_0x533694}=_0x4a2c0f[_0x2e2485(0x249)],_0x2fb242=rr(_0x533694),_0x4c333b=(_0x4959f9=(_0x3e199e=this[_0x2e2485(0x2a9)][_0x2e2485(0x23f)](this[_0x2e2485(0x3a4)],_0x170cd4))==null?void 0x0:_0x3e199e[_0x2e2485(0x397)])!=null?_0x4959f9:_0x2e2485(0x414),_0x508d54={'color':this['_colorAssignService'][_0x2e2485(0x26c)](_0x170cd4),'name':_0x4c333b,'ranges':_0x2fb242},_0xae7a74=this[_0x2e2485(0x1ab)];_0xae7a74['set'](_0x170cd4,_0x508d54),this['_cursorInfo$'][_0x2e2485(0x244)](_0xae7a74);}['_onCursorDelete'](_0xfe9d7d){const _0x36e654=_0x2e5b1c,{memberID:_0x3ffad3}=_0xfe9d7d[_0x36e654(0x249)],_0x413deb=this[_0x36e654(0x1ab)];_0x413deb[_0x36e654(0x18d)](_0x3ffad3),this[_0x36e654(0x2f3)][_0x36e654(0x244)](_0x413deb);}['_toggleOnline'](){const _0x4fd799=_0x2e5b1c;var _0x482e22;if(this[_0x4fd799(0x462)]=!0x0,((_0x482e22=this[_0x4fd799(0x1ae)]['getFocusedUnit']())==null?void 0x0:_0x482e22[_0x4fd799(0x426)]())!==this[_0x4fd799(0x3a4)])return;const _0x331a34=this['_injector'][_0x4fd799(0x18f)](_0x1dbfad)[_0x4fd799(0x16f)]();Array[_0x4fd799(0x434)](_0x331a34)&&_0x331a34[_0x4fd799(0x1bb)]>0x0&&this[_0x4fd799(0x32c)](_0x331a34);}[_0x2e5b1c(0x3ce)](){const _0x59e89a=_0x2e5b1c;this[_0x59e89a(0x462)]=!0x1;}};Dt=Dr([se(0x2,_0x5c7fae(_0x5d259e)),se(0x3,_0x5c7fae(Ft)),se(0x4,_0x5c7fae(oe)),se(0x5,_0x5c7fae(Bt)),se(0x6,_0x4e0f96),se(0x7,_0x30b2f2),se(0x8,_0x36a317)],Dt);var Nr=Object[_0x2e5b1c(0x2de)],yr=Object['getOwnPropertyDescriptor'],Mr=(_0x815867,_0x3c0ed7,_0x10f3fe,_0x1002f9)=>{const _0x411bb1=_0x2e5b1c;for(var _0x184f96=_0x1002f9>0x1?void 0x0:_0x1002f9?yr(_0x3c0ed7,_0x10f3fe):_0x3c0ed7,_0x329ff8=_0x815867[_0x411bb1(0x1bb)]-0x1,_0x4d2cf9;_0x329ff8>=0x0;_0x329ff8--)(_0x4d2cf9=_0x815867[_0x329ff8])&&(_0x184f96=(_0x1002f9?_0x4d2cf9(_0x3c0ed7,_0x10f3fe,_0x184f96):_0x4d2cf9(_0x184f96))||_0x184f96);return _0x1002f9&&_0x184f96&&Nr(_0x3c0ed7,_0x10f3fe,_0x184f96),_0x184f96;},ut=(_0x50482e,_0x1b3394)=>(_0x3829ce,_0x546e0e)=>_0x1b3394(_0x3829ce,_0x546e0e,_0x50482e);let fe=class extends _0x4bff65{constructor(_0x2cbb82,_0x2c34b6,_0x3aec76){const _0x1ea069=_0x2e5b1c;super(),l(this,_0x1ea069(0x36c),new Map()),l(this,_0x1ea069(0x394),new _0x47a81b()),(this[_0x1ea069(0x1ae)]=_0x2cbb82,this['_injector']=_0x2c34b6,this[_0x1ea069(0x3f1)]=_0x3aec76,this[_0x1ea069(0x42f)]());}[_0x2e5b1c(0x2fe)](){const _0x1c36ce=_0x2e5b1c;super[_0x1c36ce(0x2fe)](),this['_entityInit$'][_0x1c36ce(0x447)](),this[_0x1c36ce(0x36c)][_0x1c36ce(0x1cd)](_0x135ddf=>_0x135ddf[_0x1c36ce(0x2fe)]());}[_0x2e5b1c(0x16c)](_0x52b97f){const _0x430161=_0x2e5b1c;return this[_0x430161(0x36c)][_0x430161(0x250)](_0x52b97f)?this[_0x430161(0x36c)][_0x430161(0x18f)](_0x52b97f)['cursorInfo$']:this[_0x430161(0x394)][_0x430161(0x195)](_0x41cfb4(_0x5d0d29=>_0x5d0d29[_0x430161(0x3a4)]===_0x52b97f),_0x498d15(_0xee628f=>_0xee628f[_0x430161(0x393)]));}[_0x2e5b1c(0x42f)](){const _0x42f40d=_0x2e5b1c;this['_univerInstanceService'][_0x42f40d(0x1a4)](_0x3bf0d9[_0x42f40d(0x2c7)])[_0x42f40d(0x195)](_0x2123e0(this[_0x42f40d(0x3be)]))[_0x42f40d(0x3c4)](async _0x124897=>{const _0x32543e=_0x42f40d,_0x4ea236=_0x124897[_0x32543e(0x426)](),_0x5661de=await this[_0x32543e(0x3da)](_0x4ea236);this[_0x32543e(0x394)]['next'](_0x5661de),this[_0x32543e(0x36c)][_0x32543e(0x1e1)](_0x4ea236,_0x5661de);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x3bf0d9['UNIVER_DOC'])[_0x42f40d(0x195)](_0x2123e0(this[_0x42f40d(0x3be)]))[_0x42f40d(0x195)](_0x41cfb4(_0x2ddab1=>!_0x2ddab1[_0x42f40d(0x426)]()[_0x42f40d(0x1e5)]('__')))['subscribe'](async _0xf4ff59=>{const _0x22404d=_0x42f40d,_0x540144=_0xf4ff59[_0x22404d(0x426)](),_0x2aa7c2=await this[_0x22404d(0x147)](_0x540144);this[_0x22404d(0x394)][_0x22404d(0x244)](_0x2aa7c2),this['_entities'][_0x22404d(0x1e1)](_0x540144,_0x2aa7c2);}),_0x9334d7(this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x3bf0d9[_0x42f40d(0x1de)]),this[_0x42f40d(0x1ae)][_0x42f40d(0x46a)](_0x3bf0d9[_0x42f40d(0x2c7)]))[_0x42f40d(0x195)](_0x2123e0(this[_0x42f40d(0x3be)]))[_0x42f40d(0x3c4)](_0x55eaee=>{const _0x26e699=_0x42f40d,_0x436524=_0x55eaee[_0x26e699(0x426)](),_0x3f9e75=this[_0x26e699(0x36c)][_0x26e699(0x18f)](_0x436524);_0x3f9e75&&(_0x3f9e75['dispose'](),this[_0x26e699(0x36c)][_0x26e699(0x18d)](_0x436524));});}async[_0x2e5b1c(0x3da)](_0x196fa5){const _0x49c98a=_0x2e5b1c,_0x268397=await this[_0x49c98a(0x3f1)][_0x49c98a(0x205)](_0x196fa5),_0x56f2e5=this[_0x49c98a(0x3ac)][_0x49c98a(0x254)](Ot,_0x196fa5,_0x268397);return _0x56f2e5[_0x49c98a(0x124)](),_0x56f2e5;}async[_0x2e5b1c(0x147)](_0x1bced7){const _0x2546ec=_0x2e5b1c,_0x212932=await this[_0x2546ec(0x3f1)][_0x2546ec(0x205)](_0x1bced7),_0x51696f=this[_0x2546ec(0x3ac)]['createInstance'](Dt,_0x1bced7,_0x212932);return _0x51696f[_0x2546ec(0x124)](),_0x51696f;}};fe=Mr([_0x486866(_0x446a6f[_0x2e5b1c(0x488)],fe),ut(0x0,_0x30b2f2),ut(0x1,_0x5c7fae(_0x5d259e)),ut(0x2,_0x5c7fae(ae))],fe);const Ue=0x14,_s=0xc8,dt=0x4,Ar=0x5;function Ur(_0x23174f,_0xe29359){const _0x423996=_0x2e5b1c;let {radius:_0x421f6a,width:_0x481777,height:_0x2b89bd}=_0xe29359;_0x421f6a=_0x421f6a!=null?_0x421f6a:0x0,_0x481777=_0x481777!=null?_0x481777:0x1e,_0x2b89bd=_0x2b89bd!=null?_0x2b89bd:0x1e;let _0x2911b0=0x0,_0x16804e=0x0,_0x107a8e=0x0;_0x2911b0=_0x16804e=_0x107a8e=Math[_0x423996(0x3a9)](_0x421f6a,_0x481777/0x2,_0x2b89bd/0x2),_0x23174f[_0x423996(0x1f9)](),_0x23174f[_0x423996(0x2e8)](_0x2911b0,0x0),_0x23174f[_0x423996(0x1df)](_0x481777-_0x16804e,0x0),_0x23174f[_0x423996(0x260)](_0x481777-_0x16804e,_0x16804e,_0x16804e,Math['PI']*0x3/0x2,0x0,!0x1),_0x23174f[_0x423996(0x1df)](_0x481777,_0x2b89bd-_0x107a8e),_0x23174f['arc'](_0x481777-_0x107a8e,_0x2b89bd-_0x107a8e,_0x107a8e,0x0,Math['PI']/0x2,!0x1),_0x23174f[_0x423996(0x1df)](0x0,_0x2b89bd),_0x23174f[_0x423996(0x1df)](0x0,_0x2911b0),_0x23174f[_0x423996(0x260)](_0x2911b0,_0x2911b0,_0x2911b0,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x23174f['closePath'](),_0xe29359[_0x423996(0x344)]&&(_0x23174f[_0x423996(0x302)](),_0x23174f[_0x423996(0x28c)]=_0xe29359[_0x423996(0x344)],_0xe29359['fillRule']==='evenodd'?_0x23174f['fill'](_0x423996(0x1e9)):_0x23174f[_0x423996(0x344)](),_0x23174f['restore']());}class nt extends _0x214e6b{constructor(_0x3f5644,_0x220de0){const _0x1f79ad=_0x2e5b1c;super(_0x3f5644,_0x220de0),l(this,'color'),l(this,'text'),(this['color']=_0x220de0==null?void 0x0:_0x220de0[_0x1f79ad(0x46e)],this[_0x1f79ad(0x134)]=_0x220de0==null?void 0x0:_0x220de0[_0x1f79ad(0x134)]);}static[_0x2e5b1c(0x404)](_0x1e7cff,_0x4c0dfb){const _0x4f1957=_0x2e5b1c,{text:_0x3e5d6d,color:_0x3ca15a}=_0x4c0dfb;_0x1e7cff[_0x4f1957(0x302)](),_0x1e7cff[_0x4f1957(0x3f4)]=_0x4f1957(0x15f);const _0x25cbec=_0x1e7cff[_0x4f1957(0x44f)](_0x3e5d6d)['width'],_0xb575ed=Math[_0x4f1957(0x3a9)](_0x25cbec+0x2*dt,_s);Ur(_0x1e7cff,{'height':Ue,'radius':0x4,'width':_0xb575ed,'fill':_0x3ca15a,'evented':!0x1}),_0x1e7cff['fillStyle']='#FFF';const _0x737ea6=dt,_0x5c80bb=Ue-Ar,_0x1ea163=_s-0x2*dt;if(_0x25cbec>_0x1ea163){let _0x665e6='',_0x4e453e=0x0;for(const _0x22d19d of _0x3e5d6d){const _0xea03f3=_0x1e7cff[_0x4f1957(0x44f)](_0x22d19d)['width'];if(_0x4e453e+_0xea03f3<=_0x1ea163-_0x1e7cff[_0x4f1957(0x44f)]('...')[_0x4f1957(0x45e)])_0x665e6+=_0x22d19d,_0x4e453e+=_0xea03f3;else{_0x665e6+=_0x4f1957(0x3db);break;}}_0x1e7cff[_0x4f1957(0x374)](_0x665e6,_0x737ea6,_0x5c80bb);}else _0x1e7cff['fillText'](_0x3e5d6d,_0x737ea6,_0x5c80bb);_0x1e7cff[_0x4f1957(0x316)]();}[_0x2e5b1c(0x2dd)](_0x42fcef){const _0x4c8ef9=_0x2e5b1c;nt[_0x4c8ef9(0x404)](_0x42fcef,this);}}const Lr=0x1,$r=1.5;class jr extends _0x214e6b{constructor(_0x3acc60,_0x22ed86){const _0x56f4b9=_0x2e5b1c;super(_0x3acc60,_0x22ed86),l(this,_0x56f4b9(0x1a2)),l(this,_0x56f4b9(0x412),!0x1),l(this,'_range'),l(this,_0x56f4b9(0x439),''),l(this,'_labelPosition','top'),l(this,_0x56f4b9(0x47d)),(_0x22ed86&&this[_0x56f4b9(0x42c)](_0x22ed86),this['onPointerEnter$'][_0x56f4b9(0x3cb)](()=>this[_0x56f4b9(0x42c)]({'hovered':!0x0})),this[_0x56f4b9(0x3d3)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x2e5b1c(0x42c)](_0x14968b){const _0x31090b=_0x2e5b1c;var _0x4075b6,_0x5db14f,_0x4ba6ed,_0x302c20,_0xf1ef64,_0x56e5c5;this['_color']=(_0x4075b6=_0x14968b[_0x31090b(0x46e)])!=null?_0x4075b6:this['_color'],this['_hovered']=(_0x5db14f=_0x14968b[_0x31090b(0x267)])!=null?_0x5db14f:this[_0x31090b(0x412)],this[_0x31090b(0x398)]=(_0x4ba6ed=_0x14968b['range'])!=null?_0x4ba6ed:this[_0x31090b(0x398)],this[_0x31090b(0x439)]=(_0x302c20=_0x14968b[_0x31090b(0x397)])!=null?_0x302c20:this[_0x31090b(0x439)],this['_labelPosition']=(_0xf1ef64=_0x14968b[_0x31090b(0x3d0)])!=null?_0xf1ef64:this['_labelPosition'],this[_0x31090b(0x47d)]=(_0x56e5c5=_0x14968b['backgroundColor'])!=null?_0x56e5c5:this['_backgroundColor'],this[_0x31090b(0x12a)]({'width':_0x14968b[_0x31090b(0x45e)],'height':_0x14968b[_0x31090b(0x36e)]});}[_0x2e5b1c(0x20b)](_0x5d16f2){const _0x35cc92=_0x2e5b1c,{row:_0x584d81,column:_0x42c3a4}=_0x5d16f2;if(_0x584d81>=this[_0x35cc92(0x398)]['startRow']&&_0x584d81<=this[_0x35cc92(0x398)]['endRow']&&_0x42c3a4>=this[_0x35cc92(0x398)][_0x35cc92(0x24f)]&&_0x42c3a4<=this[_0x35cc92(0x398)][_0x35cc92(0x191)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x35cc92(0x42c)]({'hovered':!0x1});}[_0x2e5b1c(0x406)](_0x8bc810){return!0x1;}[_0x2e5b1c(0x2dd)](_0x28ab2c){const _0x2e2bd0=_0x2e5b1c;_0x170a21[_0x2e2bd0(0x404)](_0x28ab2c,{'width':this[_0x2e2bd0(0x45e)],'height':this[_0x2e2bd0(0x36e)],'strokeWidth':$r,'stroke':this[_0x2e2bd0(0x1a2)],'evented':!0x1,'fill':this[_0x2e2bd0(0x47d)]}),this[_0x2e2bd0(0x412)]&&(_0x28ab2c['save'](),_0x28ab2c[_0x2e2bd0(0x3fb)](0x1,0x0,0x0,0x1,this[_0x2e2bd0(0x45e)],this['_labelPosition']===_0x2e2bd0(0x31f)?0x0:-Ue),nt[_0x2e2bd0(0x404)](_0x28ab2c,{'text':this['_name'],'color':this[_0x2e2bd0(0x1a2)]}),_0x28ab2c[_0x2e2bd0(0x316)]());}}var xr=Object[_0x2e5b1c(0x2de)],Hr=Object[_0x2e5b1c(0x41c)],kr=(_0x4fd8e6,_0x563375,_0x16ab54,_0x223b14)=>{const _0x2b2a02=_0x2e5b1c;for(var _0x2131ce=_0x223b14>0x1?void 0x0:_0x223b14?Hr(_0x563375,_0x16ab54):_0x563375,_0x145b81=_0x4fd8e6[_0x2b2a02(0x1bb)]-0x1,_0x117165;_0x145b81>=0x0;_0x145b81--)(_0x117165=_0x4fd8e6[_0x145b81])&&(_0x2131ce=(_0x223b14?_0x117165(_0x563375,_0x16ab54,_0x2131ce):_0x117165(_0x2131ce))||_0x2131ce);return _0x223b14&&_0x2131ce&&xr(_0x563375,_0x16ab54,_0x2131ce),_0x2131ce;},mt=(_0x1c6f61,_0x62489e)=>(_0x46d747,_0x45e2c0)=>_0x62489e(_0x46d747,_0x45e2c0,_0x1c6f61);const Br=0x1389;let wt=class extends _0x4bff65{constructor(_0x23428a,_0x319033,_0x241f03,_0x1caf4a){const _0x3b7eea=_0x2e5b1c;super(),l(this,'_cursors',new Set()),l(this,_0x3b7eea(0x327),null),(this[_0x3b7eea(0x1c4)]=_0x23428a,this[_0x3b7eea(0x271)]=_0x319033,this[_0x3b7eea(0x44b)]=_0x241f03,this[_0x3b7eea(0x382)]=_0x1caf4a,this['_init']());}[_0x2e5b1c(0x42f)](){const _0x2f7ea1=_0x2e5b1c;this[_0x2f7ea1(0x271)][_0x2f7ea1(0x182)][_0x2f7ea1(0x195)](_0x429e28(this[_0x2f7ea1(0x3be)]),_0x3c8cfc(_0x579921=>{const _0x160999=_0x2f7ea1;if(_0x579921){const _0x41a88d=_0x579921['sheetId'];return _0x1ee3b6(this[_0x160999(0x44b)]['getCollabCursors$'](this[_0x160999(0x1c4)][_0x160999(0x275)]),this[_0x160999(0x382)][_0x160999(0x221)])['pipe'](_0x4b551a(([_0x3daf82,_0x37fc93])=>{const _0x2360b3=_0x160999,_0xa50af5=new Map();return _0x3daf82[_0x2360b3(0x1cd)]((_0x47fb55,_0x3862ab)=>{const _0x22bb7c=_0x2360b3;if(_0x47fb55[_0x22bb7c(0x22e)]===_0x41a88d){const _0x36c626={..._0x47fb55};_0x36c626[_0x22bb7c(0x46e)]=_0x37fc93[_0x47fb55[_0x22bb7c(0x46e)]],_0xa50af5['set'](_0x3862ab,_0x36c626);}}),{'skeleton':_0x579921,'cursors':_0xa50af5};}));}return _0x8d55e({'skeleton':null,'cursors':new Map()});}))[_0x2f7ea1(0x3c4)](({skeleton:_0x251ed4,cursors:_0x4bf57e})=>{const _0x348929=_0x2f7ea1;this[_0x348929(0x2d2)](),_0x251ed4&&this[_0x348929(0x323)](_0x251ed4,_0x4bf57e);}),this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x2f7ea1(0x3c4)](_0x36824b=>{const _0x4fe051=_0x2f7ea1;if(_0x36824b==null)return;const {skeleton:_0x3b79a7}=_0x36824b,{scene:_0x4ff672}=this[_0x4fe051(0x1c4)];_0x4ff672[_0x4fe051(0x1d9)][_0x4fe051(0x3cb)](_0x415879(_0x53e390=>{const _0x10e44d=_0x4fe051;var _0x1a02fe,_0x3171b9;const {offsetX:_0x24e268,offsetY:_0x3940ae}=_0x53e390,{x:_0x5a1269,y:_0x4dcd7d}=_0x4ff672[_0x10e44d(0x3fc)](_0x586911[_0x10e44d(0x1e8)]([_0x24e268,_0x3940ae])),{scaleX:_0x2e077f,scaleY:_0xcb6c8e}=_0x4ff672[_0x10e44d(0x322)](),_0x2544d1=_0x4ff672[_0x10e44d(0x449)](_0x398f9b[_0x10e44d(0x3ca)]),_0x486c06=_0x4ff672['getVpScrollXYInfoByPosToVp'](_0x586911[_0x10e44d(0x1e8)]([_0x5a1269,_0x4dcd7d]),_0x2544d1),_0x499c6a=_0x3b79a7[_0x10e44d(0x14b)](_0x24e268,_0x3940ae,_0x2e077f,_0xcb6c8e,_0x486c06);((_0x1a02fe=this[_0x10e44d(0x327)])==null?void 0x0:_0x1a02fe[_0x10e44d(0x3d5)])===_0x499c6a['column']&&((_0x3171b9=this['_lastPointer'])==null?void 0x0:_0x3171b9[_0x10e44d(0x297)])===_0x499c6a[_0x10e44d(0x297)]||this[_0x10e44d(0x45c)][_0x10e44d(0x1cd)](_0x2883d3=>{const _0xf43a9=_0x10e44d;_0x2883d3[_0xf43a9(0x20b)](_0x499c6a);});},0x64));});}[_0x2e5b1c(0x323)](_0x5b5b86,_0x1234b6){const _0x14675b=_0x2e5b1c;var _0x18cfb6;const _0x1d6afb=(_0x18cfb6=this[_0x14675b(0x271)][_0x14675b(0x196)]())==null?void 0x0:_0x18cfb6['skeleton'];if(!_0x1d6afb)return;const _0x2a83ca=this[_0x14675b(0x26a)]();if(!_0x2a83ca)return;this['_cursors'][_0x14675b(0x1cd)](_0x4850f1=>{const _0x59b42f=_0x14675b;_0x4850f1[_0x59b42f(0x3f3)]();});const {scene:_0x107a4f}=_0x2a83ca,_0x350472=Vr(Array[_0x14675b(0x1bf)](_0x1234b6[_0x14675b(0x2bb)]()))[_0x14675b(0x1c7)](_0x220823=>{const _0x135cd9=_0x14675b,{color:_0x4e1bc7,range:_0xb0d2d1,name:_0x2fb6f9,selection:_0xf3e170,sheetID:_0x2b5001}=_0x220823,{startColumn:_0x200222,startRow:_0x21b8a5,endColumn:_0x408f84,endRow:_0xb3b0ed}=_0xb0d2d1,_0x16e8aa=_0x341a0b(_0x21b8a5,_0x200222,_0x107a4f,_0x1d6afb),_0x50aa6e=_0x341a0b(_0xb3b0ed,_0x408f84,_0x107a4f,_0x1d6afb),{columnHeaderHeightAndMarginTop:_0x2b885b}=_0x1d6afb,{startX:_0x1af95a,startY:_0x50c0a8}=_0x16e8aa,{endX:_0x4b333f,endY:_0x4f88ee}=_0x50aa6e,_0x40d352=_0x4b333f-_0x1af95a,_0x5058be=_0x4f88ee-_0x50c0a8,_0x55fbea={'labelPosition':_0x50c0a8-_0x2b885b>=Ue?_0x135cd9(0x127):_0x135cd9(0x31f),'sheetID':_0x2b5001,'range':_0xb0d2d1,'color':_0x4e1bc7,'name':_0x2fb6f9,'selection':_0xf3e170,'left':_0x1af95a,'top':_0x50c0a8,'width':_0x40d352,'height':_0x5058be,'evented':!0x1,'zIndex':Br};return new jr(_0x2fb6f9,_0x55fbea);});_0x107a4f[_0x14675b(0x13b)](_0x350472,Lr),this[_0x14675b(0x45c)]=new Set(_0x350472);}[_0x2e5b1c(0x2d2)](){const _0x432787=_0x2e5b1c;var _0x38c461;(_0x38c461=this['_cursors'])==null||_0x38c461[_0x432787(0x1cd)](_0x2e38a3=>_0x2e38a3['dispose']());}[_0x2e5b1c(0x26a)](){const _0x25d3e7=_0x2e5b1c;return _0x40df2d(this[_0x25d3e7(0x1c4)]['unit'],this[_0x25d3e7(0x1c4)]);}};wt=kr([mt(0x1,_0x5c7fae(_0x5349fd)),mt(0x2,_0x5c7fae(fe)),mt(0x3,_0x5c7fae(_0x27c464))],wt);function Vr(_0xedbaef){const _0x1ef57c=_0x2e5b1c,_0x236d7c=new Map();return _0xedbaef[_0x1ef57c(0x1cd)](_0x27cacf=>{const _0x769a5=_0x1ef57c;if(_0x236d7c[_0x769a5(0x250)](_0x27cacf[_0x769a5(0x203)])){const _0x5f0ef9=_0x236d7c[_0x769a5(0x18f)](_0x27cacf[_0x769a5(0x203)]);_0x5f0ef9[_0x769a5(0x397)]+=',\x20'+_0x27cacf[_0x769a5(0x397)];}else _0x236d7c[_0x769a5(0x1e1)](_0x27cacf[_0x769a5(0x203)],_0x27cacf);}),Array[_0x1ef57c(0x1bf)](_0x236d7c[_0x1ef57c(0x2bb)]());}var y=function(){const _0x275077=_0x2e5b1c;return y=Object[_0x275077(0x190)]||function(_0x1c8100){const _0x89a6f9=_0x275077;for(var _0x4d4cc0,_0x468f29=0x1,_0x2a6f44=arguments[_0x89a6f9(0x1bb)];_0x468f29<_0x2a6f44;_0x468f29++){_0x4d4cc0=arguments[_0x468f29];for(var _0x1f7e8b in _0x4d4cc0)Object['prototype']['hasOwnProperty'][_0x89a6f9(0x13d)](_0x4d4cc0,_0x1f7e8b)&&(_0x1c8100[_0x1f7e8b]=_0x4d4cc0[_0x1f7e8b]);}return _0x1c8100;},y['apply'](this,arguments);},Fr=function(_0x4ad311,_0x39ddd3){const _0x49433a=_0x2e5b1c;var _0x1e1385={};for(var _0x186acc in _0x4ad311)Object[_0x49433a(0x3e6)][_0x49433a(0x1f6)][_0x49433a(0x13d)](_0x4ad311,_0x186acc)&&_0x39ddd3[_0x49433a(0x36d)](_0x186acc)<0x0&&(_0x1e1385[_0x186acc]=_0x4ad311[_0x186acc]);if(_0x4ad311!=null&&typeof Object['getOwnPropertySymbols']==_0x49433a(0x247)){for(var _0x11483f=0x0,_0x186acc=Object[_0x49433a(0x1cc)](_0x4ad311);_0x11483f<_0x186acc[_0x49433a(0x1bb)];_0x11483f++)_0x39ddd3[_0x49433a(0x36d)](_0x186acc[_0x11483f])<0x0&&Object[_0x49433a(0x3e6)][_0x49433a(0x33d)][_0x49433a(0x13d)](_0x4ad311,_0x186acc[_0x11483f])&&(_0x1e1385[_0x186acc[_0x11483f]]=_0x4ad311[_0x186acc[_0x11483f]]);}return _0x1e1385;},Wt=_0x5da15c(function(_0x8780af,_0x550f62){const _0x3ee4e6=_0x2e5b1c;var _0x49db11=_0x8780af['icon'],_0x1724e3=_0x8780af['id'],_0x841939=_0x8780af[_0x3ee4e6(0x3bc)],_0x2297bc=_0x8780af['extend'],_0x23a9dd=Fr(_0x8780af,[_0x3ee4e6(0x46b),'id',_0x3ee4e6(0x3bc),_0x3ee4e6(0x197)]),_0x225f07=_0x3ee4e6(0x2e5)[_0x3ee4e6(0x35e)](_0x1724e3,'\x20')[_0x3ee4e6(0x35e)](_0x841939||'')[_0x3ee4e6(0x27f)](),_0x36d04e=_0x4ab73c('_'['concat'](Yr()));return Hs(_0x49db11,''['concat'](_0x1724e3),{'defIds':_0x49db11[_0x3ee4e6(0x40a)],'idSuffix':_0x36d04e[_0x3ee4e6(0x422)]},y({'ref':_0x550f62,'className':_0x225f07},_0x23a9dd),_0x2297bc);});function Hs(_0x5e0797,_0x22c78b,_0x1a77a2,_0x4a35cb,_0x4b7374){const _0x53d554=_0x2e5b1c;return _0x3d6533(_0x5e0797[_0x53d554(0x33b)],y(y({'key':_0x22c78b},Wr(_0x5e0797,_0x1a77a2,_0x4b7374)),_0x4a35cb),(Gr(_0x5e0797,_0x1a77a2)[_0x53d554(0x1a5)]||[])[_0x53d554(0x1c7)](function(_0xb87fc6,_0xd6da34){const _0x48825e=_0x53d554;return Hs(_0xb87fc6,''[_0x48825e(0x35e)](_0x22c78b,'-')[_0x48825e(0x35e)](_0x5e0797[_0x48825e(0x33b)],'-')[_0x48825e(0x35e)](_0xd6da34),_0x1a77a2,void 0x0,_0x4b7374);}));}function Wr(_0x23d857,_0x55b7b2,_0x52a862){const _0x1f4ddb=_0x2e5b1c;var _0x188169=y({},_0x23d857[_0x1f4ddb(0x32f)]);_0x52a862!=null&&_0x52a862[_0x1f4ddb(0x45d)]&&_0x188169[_0x1f4ddb(0x344)]===_0x1f4ddb(0x45d)&&(_0x188169[_0x1f4ddb(0x344)]=_0x52a862['colorChannel1']);var _0x861b09=_0x55b7b2[_0x1f4ddb(0x40a)];return!_0x861b09||_0x861b09['length']===0x0||(_0x23d857[_0x1f4ddb(0x33b)]===_0x1f4ddb(0x3e8)&&_0x188169[_0x1f4ddb(0x20a)]&&(_0x188169[_0x1f4ddb(0x20a)]=_0x188169['xlink:href']+_0x55b7b2[_0x1f4ddb(0x2b1)]),Object['entries'](_0x188169)[_0x1f4ddb(0x1cd)](function(_0x5aaa8f){const _0x191caa=_0x1f4ddb;var _0x3de1b9=_0x5aaa8f[0x0],_0xff98fb=_0x5aaa8f[0x1];typeof _0xff98fb=='string'&&(_0x188169[_0x3de1b9]=_0xff98fb[_0x191caa(0x319)](/url\(#(.*)\)/,_0x191caa(0x229)['concat'](_0x55b7b2[_0x191caa(0x2b1)],')')));})),_0x188169;}function Gr(_0x3524c8,_0xc611cd){const _0x5b9c88=_0x2e5b1c;var _0x28ec8c,_0x44729c=_0xc611cd[_0x5b9c88(0x40a)];return!_0x44729c||_0x44729c['length']===0x0?_0x3524c8:_0x3524c8[_0x5b9c88(0x33b)]===_0x5b9c88(0x245)&&(!((_0x28ec8c=_0x3524c8['children'])===null||_0x28ec8c===void 0x0)&&_0x28ec8c[_0x5b9c88(0x1bb)])?y(y({},_0x3524c8),{'children':_0x3524c8[_0x5b9c88(0x1a5)]['map'](function(_0x3755c1){const _0xc29ffb=_0x5b9c88;return typeof _0x3755c1[_0xc29ffb(0x32f)]['id']==_0xc29ffb(0x239)&&_0x44729c&&_0x44729c[_0xc29ffb(0x36d)](_0x3755c1['attrs']['id'])>-0x1?y(y({},_0x3755c1),{'attrs':y(y({},_0x3755c1[_0xc29ffb(0x32f)]),{'id':_0x3755c1[_0xc29ffb(0x32f)]['id']+_0xc611cd[_0xc29ffb(0x2b1)]})}):_0x3755c1;})}):_0x3524c8;}function Yr(){const _0x4d452c=_0x2e5b1c;return Math[_0x4d452c(0x125)]()[_0x4d452c(0x19b)](0x24)[_0x4d452c(0x1db)](0x2,0x8);}Wt[_0x2e5b1c(0x1fc)]=_0x2e5b1c(0x1f8);var Kr={'tag':'svg','attrs':{'fill':'none','viewBox':_0x2e5b1c(0x2b5),'width':_0x2e5b1c(0x3b8),'height':_0x2e5b1c(0x3b8)},'children':[{'tag':'g','attrs':{'clipPath':_0x2e5b1c(0x2ee)},'children':[{'tag':_0x2e5b1c(0x23b),'attrs':{'stroke':_0x2e5b1c(0x264),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x2e5b1c(0x19d),'strokeLinejoin':_0x2e5b1c(0x19d),'strokeWidth':1.2}}]},{'tag':_0x2e5b1c(0x245),'attrs':{},'children':[{'tag':_0x2e5b1c(0x34c),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':_0x2e5b1c(0x324),'d':_0x2e5b1c(0x290)}}]}]}],'defIds':['off-line-single_clip0_910_343']},ks=_0x5da15c(function(_0x447d0b,_0x105374){const _0x499f96=_0x2e5b1c;return _0x3d6533(Wt,Object[_0x499f96(0x190)]({},_0x447d0b,{'id':_0x499f96(0x42d),'ref':_0x105374,'icon':Kr}));});ks['displayName']=_0x2e5b1c(0x479);var Xr={'tag':_0x2e5b1c(0x121),'attrs':{'fill':'none','viewBox':_0x2e5b1c(0x24a),'width':_0x2e5b1c(0x3b8),'height':_0x2e5b1c(0x3b8)},'children':[{'tag':'g','attrs':{'clipPath':_0x2e5b1c(0x1a9)},'children':[{'tag':_0x2e5b1c(0x23b),'attrs':{'stroke':_0x2e5b1c(0x264),'d':_0x2e5b1c(0x1dc),'strokeLinecap':'round','strokeLinejoin':_0x2e5b1c(0x19d),'strokeWidth':1.2}}]},{'tag':_0x2e5b1c(0x245),'attrs':{},'children':[{'tag':_0x2e5b1c(0x34c),'attrs':{'id':_0x2e5b1c(0x46f)},'children':[{'tag':_0x2e5b1c(0x23b),'attrs':{'fill':_0x2e5b1c(0x324),'d':_0x2e5b1c(0x290),'transform':_0x2e5b1c(0x130)}}]}]}],'defIds':[_0x2e5b1c(0x46f)]},Bs=_0x5da15c(function(_0x125f75,_0x11d37c){const _0x443c56=_0x2e5b1c;return _0x3d6533(Wt,Object['assign']({},_0x125f75,{'id':_0x443c56(0x3f2),'ref':_0x11d37c,'icon':Xr}));});Bs['displayName']=_0x2e5b1c(0x30e);const Jr=_0x2e5b1c(0x39b),zr=_0x2e5b1c(0x167),qr=_0x2e5b1c(0x429),Zr=_0x2e5b1c(0x483),Qr=_0x2e5b1c(0x30a),Oe={'onlineStatusIcon':Jr,'onlineStatusTitle':zr,'onlineStatus':qr,'online':Zr,'offline':Qr};function eo(_0x2a92e6){const _0xb9c6e1=_0x2e5b1c;switch(_0x2a92e6){case w[_0xb9c6e1(0x1ac)]:return _0xb9c6e1(0x2e4);case w['CONFLICT']:return _0xb9c6e1(0x154);case w['FETCH_MISS']:return _0xb9c6e1(0x2ba);case w['NOT_COLLAB']:return'collabStatus.notCollab';case w['PENDING']:case w[_0xb9c6e1(0x3c8)]:case w[_0xb9c6e1(0x478)]:return'collabStatus.syncing';case w[_0xb9c6e1(0x421)]:return _0xb9c6e1(0x153);}}function to(_0x40178e){const _0x2c5680=_0x2e5b1c,{status$:_0x220ce6}=_0x40178e,_0x50b9d1=_0x3834a2(_0x220ce6,w[_0x2c5680(0x19a)]),_0x5a5266=_0x1cf47e(_0x12e5b3),_0x4109f4=_0x1cf47e(ae),_0x2965c1=_0x50b9d1!==w[_0x2c5680(0x1ac)],_0x27f770=_0x5a5266['t'](eo(_0x50b9d1)),_0x5bbc24=_0x6c5a82(Oe[_0x2c5680(0x23e)],{[Oe['online']]:_0x2965c1,[Oe[_0x2c5680(0x3e4)]]:!_0x2965c1}),_0x227cf1=_0x2965c1?_0x24bd02[_0x2c5680(0x138)](Bs,null):_0x24bd02[_0x2c5680(0x138)](ks,null),_0x316d8a=_0x23455d(()=>{const _0x4c4b3c=_0x2c5680;_0x2965c1||_0x4109f4[_0x4c4b3c(0x332)]();},[_0x2965c1,_0x4109f4]);function _0x5b8432(){const _0x5c919e=_0x2c5680;return _0x24bd02['createElement']('div',{'className':_0x5bbc24,'onClick':_0x316d8a},_0x24bd02[_0x5c919e(0x138)](_0x5c919e(0x246),{'className':Oe[_0x5c919e(0x1d6)]},_0x227cf1),_0x24bd02['createElement'](_0x5c919e(0x246),{'className':Oe['onlineStatusTitle']},_0x27f770));}return _0x2965c1?_0x5b8432():_0x24bd02['createElement'](_0x2b5af8,{'title':_0x5a5266['t'](_0x2c5680(0x3fd))},_0x5b8432());}var so=Object[_0x2e5b1c(0x2de)],io=Object[_0x2e5b1c(0x41c)],no=(_0x5091d5,_0x437f1e,_0x2ef506,_0x3f7112)=>{const _0x56d370=_0x2e5b1c;for(var _0x196152=_0x3f7112>0x1?void 0x0:_0x3f7112?io(_0x437f1e,_0x2ef506):_0x437f1e,_0x48b97a=_0x5091d5[_0x56d370(0x1bb)]-0x1,_0x48e514;_0x48b97a>=0x0;_0x48b97a--)(_0x48e514=_0x5091d5[_0x48b97a])&&(_0x196152=(_0x3f7112?_0x48e514(_0x437f1e,_0x2ef506,_0x196152):_0x48e514(_0x196152))||_0x196152);return _0x3f7112&&_0x196152&&so(_0x437f1e,_0x2ef506,_0x196152),_0x196152;},ke=(_0x2f2ae0,_0x59147b)=>(_0x3a10ea,_0x5b273d)=>_0x59147b(_0x3a10ea,_0x5b273d,_0x2f2ae0);let ye=class extends _0x36403b{constructor(_0x422063,_0x344e4c,_0x5c608f,_0xae07b5){const _0x3313dd=_0x2e5b1c;super(),l(this,'_status$',new _0x16e81a(w[_0x3313dd(0x19a)])),(this[_0x3313dd(0x1ae)]=_0x422063,this[_0x3313dd(0x303)]=_0x344e4c,this[_0x3313dd(0x3ac)]=_0x5c608f,this[_0x3313dd(0x3c5)]=_0xae07b5,this[_0x3313dd(0x318)](),this['_initStatusListener']());}[_0x2e5b1c(0x141)](){const _0x463575=_0x2e5b1c;this[_0x463575(0x294)](this[_0x463575(0x1ae)]['focused$'][_0x463575(0x195)](_0x498d15(()=>{const _0x15b378=_0x463575,_0x20c3c0=this[_0x15b378(0x1ae)]['getFocusedUnit']();return _0x20c3c0?this['_collaborationController']['getCollabEntity$'](_0x20c3c0[_0x15b378(0x426)]()):_0x8d55e(null);}),_0x498d15(_0xb0948d=>_0xb0948d?_0xb0948d[_0x463575(0x281)]:_0x8d55e(w[_0x463575(0x19a)])))['subscribe'](_0x1aa2b1=>{const _0x100c03=_0x463575;this[_0x100c03(0x279)][_0x100c03(0x244)](_0x1aa2b1);}));}[_0x2e5b1c(0x318)](){const _0x14849e=_0x2e5b1c;this['disposeWithMe'](this[_0x14849e(0x303)][_0x14849e(0x317)](_0x1504a5[_0x14849e(0x377)],()=>_0x5abdc(ro({'status$':this[_0x14849e(0x279)][_0x14849e(0x2f8)]()}),this[_0x14849e(0x3ac)])));}};ye=no([ke(0x0,_0x30b2f2),ke(0x1,_0xbc9637),ke(0x2,_0x5c7fae(_0x5d259e)),ke(0x3,_0x5c7fae(Ae))],ye);function ro(_0x58e1c0){const {status$:_0xa8eac4}=_0x58e1c0;return function(){return _0x24bd02['createElement'](to,{'status$':_0xa8eac4});};}const Vs=_0x5a3236(_0x2e5b1c(0x3ae));var oo=Object['defineProperty'],ao=Object[_0x2e5b1c(0x41c)],co=(_0x4eac98,_0x17d9d4,_0x577b08,_0x1cd73f)=>{const _0x184f90=_0x2e5b1c;for(var _0x3c7e04=_0x1cd73f>0x1?void 0x0:_0x1cd73f?ao(_0x17d9d4,_0x577b08):_0x17d9d4,_0x1e278e=_0x4eac98[_0x184f90(0x1bb)]-0x1,_0x2295b0;_0x1e278e>=0x0;_0x1e278e--)(_0x2295b0=_0x4eac98[_0x1e278e])&&(_0x3c7e04=(_0x1cd73f?_0x2295b0(_0x17d9d4,_0x577b08,_0x3c7e04):_0x2295b0(_0x3c7e04))||_0x3c7e04);return _0x1cd73f&&_0x3c7e04&&oo(_0x17d9d4,_0x577b08,_0x3c7e04),_0x3c7e04;},me=(_0x5bf698,_0x1652af)=>(_0x1758e5,_0x180836)=>_0x1652af(_0x1758e5,_0x180836,_0x5bf698);let We=class extends _0x4bff65{constructor(_0x3945bb,_0x43675f,_0x5a3338,_0x22a5fb,_0x5b9562,_0x547596){const _0x244c03=_0x2e5b1c;super(),this['_urlService']=_0x3945bb,this[_0x244c03(0x2ec)]=_0x43675f,this[_0x244c03(0x1bd)]=_0x5a3338,this[_0x244c03(0x170)]=_0x22a5fb,this['_snapshotService']=_0x5b9562,_0x547596?_0x547596==null||_0x547596[_0x244c03(0x2ed)]()[_0x244c03(0x2e6)](()=>this[_0x244c03(0x42f)]()):(this[_0x244c03(0x2ec)][_0x244c03(0x166)](_0x244c03(0x33a),_0x244c03(0x2ab)),this[_0x244c03(0x42f)]());}async[_0x2e5b1c(0x42f)](){const _0x5be4bb=_0x2e5b1c,_0x2a3a69=this[_0x5be4bb(0x277)][_0x5be4bb(0x402)]('unit'),_0xd800b1=this['_urlService'][_0x5be4bb(0x402)](_0x5be4bb(0x255));if(!_0x2a3a69||!_0xd800b1){this[_0x5be4bb(0x2ec)]['debug']('[DataLoaderController]',_0x5be4bb(0x3cc));return;}switch(Number(_0xd800b1)){case x[_0x5be4bb(0x2c7)]:{const _0x19d023=await this['_loadSheet'](_0x2a3a69);this[_0x5be4bb(0x13c)](_0x19d023);break;}case x[_0x5be4bb(0x1de)]:{await this[_0x5be4bb(0x2d8)](_0x2a3a69);break;}default:{this[_0x5be4bb(0x2ec)][_0x5be4bb(0x30b)](_0x5be4bb(0x33a),_0x5be4bb(0x1c8));break;}}}async[_0x2e5b1c(0x13c)](_0x2e626d){const _0x49d368=_0x2e5b1c;await this['_updateSubUnitFromURLParams'](_0x2e626d),_0x2e626d[_0x49d368(0x1ff)]['pipe'](_0x2123e0(this[_0x49d368(0x3be)]))['subscribe'](_0x516bea=>{const _0xd35c6a=_0x49d368;_0x516bea&&this[_0xd35c6a(0x47c)](_0x516bea);}),this[_0x49d368(0x277)][_0x49d368(0x3b3)][_0x49d368(0x195)](_0x2123e0(this[_0x49d368(0x3be)]))[_0x49d368(0x3c4)](()=>this[_0x49d368(0x25d)](_0x2e626d));}[_0x2e5b1c(0x47c)](_0x2fd766,_0x36e188=!0x1){const _0x25a37b=_0x2e5b1c,_0x91c7de=this['_urlService'][_0x25a37b(0x402)]('subunit');_0x2fd766[_0x25a37b(0x3b5)]()!==_0x91c7de&&this[_0x25a37b(0x277)]['setParam'](_0x25a37b(0x14a),_0x2fd766['getSheetId'](),_0x36e188);}async[_0x2e5b1c(0x25d)](_0x5b1243){const _0x2d694d=_0x2e5b1c;var _0x49d462;const _0x5be226=this['_urlService']['getParam'](_0x2d694d(0x14a));if(!_0x5be226||!_0x5b1243[_0x2d694d(0x378)](_0x5be226)){const _0x5d46b7=_0x5b1243[_0x2d694d(0x1ea)]()[0x0],_0x3d6a88=_0x5b1243['getSheetBySheetId'](_0x5d46b7);if(!_0x3d6a88)return;this[_0x2d694d(0x47c)](_0x3d6a88,!0x0),await this[_0x2d694d(0x1bd)][_0x2d694d(0x335)](_0x29cb12['id'],{'unitId':_0x5b1243['getUnitId'](),'subUnitId':_0x5d46b7});return;}((_0x49d462=_0x5b1243[_0x2d694d(0x29a)]())==null?void 0x0:_0x49d462[_0x2d694d(0x3b5)]())!==_0x5be226&&await this[_0x2d694d(0x1bd)][_0x2d694d(0x335)](_0x29cb12['id'],{'unitId':_0x5b1243[_0x2d694d(0x426)](),'subUnitId':_0x5be226});}async[_0x2e5b1c(0x1c3)](_0x311918){const _0x201390=_0x2e5b1c;let _0x34c185=0x0;const _0x135be9=await this[_0x201390(0x170)][_0x201390(0x1cb)](_0x311918);return _0x135be9&&(_0x135be9['awaitingChangeset']||_0x135be9['mutations'][_0x201390(0x1bb)]!==0x0)&&(_0x34c185=_0x135be9[_0x201390(0x480)]),_0x34c185===0x0&&this['_logService'][_0x201390(0x166)](_0x201390(0x33a),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this['_snapshotService'][_0x201390(0x37a)](_0x311918,_0x34c185);}async[_0x2e5b1c(0x2d8)](_0x2fce38){const _0xb579c2=_0x2e5b1c;let _0x1ecd21=0x0;const _0x331be3=await this['_localCacheService'][_0xb579c2(0x1cb)](_0x2fce38);return _0x331be3&&(_0x331be3['awaitingChangeset']||_0x331be3[_0xb579c2(0x225)]['length']!==0x0)&&(_0x1ecd21=_0x331be3[_0xb579c2(0x480)]),_0x1ecd21===0x0&&this[_0xb579c2(0x2ec)][_0xb579c2(0x166)](_0xb579c2(0x33a),_0xb579c2(0x1d1)),this[_0xb579c2(0x48a)][_0xb579c2(0x266)](_0x2fce38,_0x1ecd21);}};We=co([_0x486866(_0x446a6f[_0x2e5b1c(0x488)],We),me(0x0,Vs),me(0x1,_0x1cafe9),me(0x2,_0x36a317),me(0x3,_0x5c7fae(D)),me(0x4,_0x5c7fae(_0x208dce)),me(0x5,_0x5723b6(_0x372f27))],We);var ho=Object[_0x2e5b1c(0x2de)],lo=Object[_0x2e5b1c(0x41c)],_o=(_0x15d690,_0x5bfdec,_0x133cdb,_0x356a42)=>{const _0x36a38f=_0x2e5b1c;for(var _0x41e69a=_0x356a42>0x1?void 0x0:_0x356a42?lo(_0x5bfdec,_0x133cdb):_0x5bfdec,_0x4301c7=_0x15d690[_0x36a38f(0x1bb)]-0x1,_0x2f5aee;_0x4301c7>=0x0;_0x4301c7--)(_0x2f5aee=_0x15d690[_0x4301c7])&&(_0x41e69a=(_0x356a42?_0x2f5aee(_0x5bfdec,_0x133cdb,_0x41e69a):_0x2f5aee(_0x41e69a))||_0x41e69a);return _0x356a42&&_0x41e69a&&ho(_0x5bfdec,_0x133cdb,_0x41e69a),_0x41e69a;},us=(_0x4c94d2,_0x5488fd)=>(_0x1797bc,_0x518792)=>_0x5488fd(_0x1797bc,_0x518792,_0x4c94d2);const uo='DEFAULT_FILE_NAME',mo=_0x2e5b1c(0x261);let Ge=class extends _0x36403b{constructor(_0x476861,_0x406278){const _0x5e3cba=_0x2e5b1c;super(),this[_0x5e3cba(0x1ae)]=_0x476861,this[_0x5e3cba(0x338)]=_0x406278,this['_init']();}['_init'](){const _0x48d5cf=_0x2e5b1c;this['disposeWithMe'](_0x29a7b(this['_univerInstanceService'][_0x48d5cf(0x137)][_0x48d5cf(0x3c4)](()=>{const _0x45f52f=_0x48d5cf;var _0x731e34;const _0x418af1=this[_0x45f52f(0x1ae)][_0x45f52f(0x1e7)]();let _0x32d944=(_0x731e34=this['_configService']['getConfig'](uo))!=null?_0x731e34:mo;_0x418af1 instanceof _0x450c96&&(_0x32d944=_0x418af1[_0x45f52f(0x397)]),document[_0x45f52f(0x454)]=_0x32d944;})));}};Ge=_o([_0x486866(_0x446a6f['Ready'],Ge),us(0x0,_0x30b2f2),us(0x1,_0x401b9d)],Ge);var fo=Object['defineProperty'],go=Object[_0x2e5b1c(0x41c)],So=(_0x20ccd4,_0xa7a599,_0x30bddd,_0x351b51)=>{const _0x5931e8=_0x2e5b1c;for(var _0x4ff509=_0x351b51>0x1?void 0x0:_0x351b51?go(_0xa7a599,_0x30bddd):_0xa7a599,_0x246c59=_0x20ccd4[_0x5931e8(0x1bb)]-0x1,_0x299a48;_0x246c59>=0x0;_0x246c59--)(_0x299a48=_0x20ccd4[_0x246c59])&&(_0x4ff509=(_0x351b51?_0x299a48(_0xa7a599,_0x30bddd,_0x4ff509):_0x299a48(_0x4ff509))||_0x4ff509);return _0x351b51&&_0x4ff509&&fo(_0xa7a599,_0x30bddd,_0x4ff509),_0x4ff509;},ds=(_0xc6c793,_0x7866ec)=>(_0x1503cc,_0x4da9e9)=>_0x7866ec(_0x1503cc,_0x4da9e9,_0xc6c793);let Pt=class{constructor(_0x167378,_0x2858dd){const _0x59bf1a=_0x2e5b1c;this[_0x59bf1a(0x338)]=_0x167378,this[_0x59bf1a(0x17e)]=_0x2858dd;}async[_0x2e5b1c(0x22f)](_0xf35094,_0xd7318f){const _0x13a6ac=_0x2e5b1c;var _0x3f4701;const {unitID:_0x2f460e,type:_0x48b72e,revision:_0xf4c8b3=0x0}=_0xd7318f,_0x1f16ff=this['_getSnapshotAPIPrefix']()+'/'+_0x48b72e+_0x13a6ac(0x2d9)+_0x2f460e+_0x13a6ac(0x48b)+_0xf4c8b3,_0x32cdeb=(await this[_0x13a6ac(0x17e)][_0x13a6ac(0x18f)](_0x1f16ff))[_0x13a6ac(0x12f)],_0x261b88=(_0x3f4701=_0x32cdeb[_0x13a6ac(0x35d)])==null?void 0x0:_0x3f4701['workbook'];if(_0x261b88){const _0xbe1b36=_0x261b88==null?void 0x0:_0x261b88[_0x13a6ac(0x2e1)],_0x4a64d0=_0x1d8b96[_0x13a6ac(0x2f9)](_0x5ee83a(_0xbe1b36));_0x261b88[_0x13a6ac(0x2e1)]=_0x4a64d0,Object[_0x13a6ac(0x359)](_0x261b88['sheets'])['forEach'](([,_0x4db5cc])=>{const _0x172de4=_0x13a6ac,_0x3df22c=_0x4db5cc[_0x172de4(0x2e1)],_0x50f2c0=_0x1d8b96['encode'](_0x5ee83a(_0x3df22c));_0x4db5cc[_0x172de4(0x2e1)]=_0x50f2c0;});}return _0x32cdeb;}async[_0x2e5b1c(0x2f7)](_0x17df4f,_0x200afb){const _0x2079b0=_0x2e5b1c,{unitID:_0x224529,type:_0x334130,blockID:_0x43c7e1}=_0x200afb,_0x8c596c=this[_0x2079b0(0x126)]()+'/'+_0x334130+_0x2079b0(0x2d9)+_0x224529+_0x2079b0(0x27d)+_0x43c7e1;return(await this[_0x2079b0(0x17e)][_0x2079b0(0x18f)](_0x8c596c))[_0x2079b0(0x12f)];}async[_0x2e5b1c(0x160)](_0x263a2a,_0x293c66){const _0x25aafa=_0x2e5b1c,{unitID:_0x558692,type:_0x27e044,from:_0x333fa8,to:_0x58959d}=_0x293c66,_0x195490=this[_0x25aafa(0x126)]()+'/'+_0x27e044+_0x25aafa(0x2d9)+_0x558692+'/fetchmissing?from='+_0x333fa8+'&to='+_0x58959d;return(await this[_0x25aafa(0x17e)][_0x25aafa(0x18f)](_0x195490))[_0x25aafa(0x12f)];}['_getSnapshotAPIPrefix'](){const _0x37701e=_0x2e5b1c;var _0xe5dfdb;return(_0xe5dfdb=this[_0x37701e(0x338)][_0x37701e(0x142)](dn))!=null?_0xe5dfdb:this[_0x37701e(0x126)]();}[_0x2e5b1c(0x126)](){const _0x28a282=_0x2e5b1c;var _0x264f27;return(_0x264f27=this[_0x28a282(0x338)][_0x28a282(0x142)](_n))!=null?_0x264f27:un;}async[_0x2e5b1c(0x3c6)](_0x7cd71a,_0x1cc224){const _0x22f3d2=_0x2e5b1c,_0x17fe1f='/universer-api/snapshot/'+_0x1cc224[_0x22f3d2(0x255)]+_0x22f3d2(0x2d9)+_0x1cc224[_0x22f3d2(0x3a4)]+'/resources';return(await this[_0x22f3d2(0x17e)][_0x22f3d2(0x18f)](_0x17fe1f,{'params':{'resourceId':JSON[_0x22f3d2(0x3d7)](_0x1cc224[_0x22f3d2(0x38f)])}}))['body'];}[_0x2e5b1c(0x222)](){const _0x1f93ad=_0x2e5b1c;throw new Error(_0x1f93ad(0x379));}[_0x2e5b1c(0x2fb)](){const _0x3961c5=_0x2e5b1c;throw new Error(_0x3961c5(0x379));}[_0x2e5b1c(0x27e)](){const _0x69905c=_0x2e5b1c;throw new Error(_0x69905c(0x379));}};Pt=So([ds(0x0,_0x401b9d),ds(0x1,_0x5c7fae(_0x35343d))],Pt);var po=Object[_0x2e5b1c(0x2de)],vo=Object[_0x2e5b1c(0x41c)],Io=(_0x396474,_0x4dd039,_0x4ad887,_0x48945c)=>{for(var _0x4d4b0d=_0x48945c>0x1?void 0x0:_0x48945c?vo(_0x4dd039,_0x4ad887):_0x4dd039,_0xbf08e1=_0x396474['length']-0x1,_0x21785c;_0xbf08e1>=0x0;_0xbf08e1--)(_0x21785c=_0x396474[_0xbf08e1])&&(_0x4d4b0d=(_0x48945c?_0x21785c(_0x4dd039,_0x4ad887,_0x4d4b0d):_0x21785c(_0x4d4b0d))||_0x4d4b0d);return _0x48945c&&_0x4d4b0d&&po(_0x4dd039,_0x4ad887,_0x4d4b0d),_0x4d4b0d;},De=(_0x554bfa,_0x146012)=>(_0x359aef,_0x2fa465)=>_0x146012(_0x359aef,_0x2fa465,_0x554bfa);let Nt=class extends _0x30a328{constructor(_0x598dad,_0x51ee93,_0x9db795,_0x398779,_0x584784){const _0xd0ce1a=_0x2e5b1c;super(_0x598dad,_0x51ee93,_0x9db795),this['_transformService']=_0x398779,this[_0xd0ce1a(0x2ec)]=_0x584784;}['transformUndoRedo'](_0x186e82,_0xa81ceb){const _0x2e0515=_0x2e5b1c,_0x4fb827=this[_0x2e0515(0x48e)](_0x186e82);if(_0x4fb827)try{const _0x40a744=this['_transformStack'](_0x4fb827,_0xa81ceb);this[_0x2e0515(0x45b)](_0x186e82,_0x40a744);}catch(_0x7e0aa5){this['_logService'][_0x2e0515(0x30b)](_0x2e0515(0x25f),_0x7e0aa5),this[_0x2e0515(0x241)](_0x186e82);}const _0x187057=this['_getRedoStack'](_0x186e82);if(_0x187057)try{const _0x508242=this[_0x2e0515(0x339)](_0x187057,_0xa81ceb);this['_substituteRedoStack'](_0x186e82,_0x508242);}catch(_0x49e9ba){this[_0x2e0515(0x2ec)][_0x2e0515(0x30b)](_0x49e9ba),this[_0x2e0515(0x453)](_0x186e82);}}[_0x2e5b1c(0x241)](_0x34dd9a){const _0x1aca6f=_0x2e5b1c,_0x10d957=this[_0x1aca6f(0x48e)](_0x34dd9a);_0x10d957&&(_0x10d957[_0x1aca6f(0x1bb)]=0x0,this[_0x1aca6f(0x384)]());}[_0x2e5b1c(0x453)](_0x42eb99){const _0x38133a=_0x2e5b1c,_0x2e4f0b=this[_0x38133a(0x19e)](_0x42eb99);_0x2e4f0b&&(_0x2e4f0b[_0x38133a(0x1bb)]=0x0,this[_0x38133a(0x384)]());}[_0x2e5b1c(0x45b)](_0x19029d,_0x129860){const _0x2d99d7=_0x2e5b1c;this[_0x2d99d7(0x15c)]['set'](_0x19029d,_0x129860),this['_updateStatus']();}[_0x2e5b1c(0x346)](_0x29ab95,_0x144162){const _0x4f3c91=_0x2e5b1c;this[_0x4f3c91(0x207)]['set'](_0x29ab95,_0x144162),this[_0x4f3c91(0x384)]();}[_0x2e5b1c(0x339)](_0x4b7d60,_0x494f5f){const _0x62ce0e=_0x2e5b1c,_0x4baab0=[];let _0x5d9c48=_0x494f5f,_0x50c93b=_0x494f5f;for(let _0x10bdf9=_0x4b7d60[_0x62ce0e(0x1bb)]-0x1;_0x10bdf9>=0x0;_0x10bdf9--){const {unitID:_0x1c3cbf,undoMutations:_0x4489e1,redoMutations:_0x18060f}=_0x4b7d60[_0x10bdf9],_0x3ddd2f=this[_0x62ce0e(0x3cf)]['transformMutationsWithChangeset'](_0x5d9c48,_0x4489e1),_0x15873a=this[_0x62ce0e(0x3cf)]['transformMutationsWithChangeset'](_0x50c93b,_0x18060f);if(_0x364023(_0x3ddd2f)||_0x364023(_0x15873a)){this['_logService'][_0x62ce0e(0x30b)]('[CollaborationUndoRedoService]','transformStack\x20failed!',_0x3ddd2f,_0x15873a);break;}_0x5d9c48=_0x3ddd2f[_0x62ce0e(0x145)],_0x50c93b=_0x15873a[_0x62ce0e(0x145)],_0x4baab0[_0x62ce0e(0x2f1)]({'unitID':_0x1c3cbf,'undoMutations':_0x3ddd2f[_0x62ce0e(0x366)],'redoMutations':_0x15873a[_0x62ce0e(0x366)]});}return _0x4baab0['reverse']();}};Nt=Io([De(0x0,_0x30b2f2),De(0x1,_0x36a317),De(0x2,_0x693680),De(0x3,_0x4e0f96),De(0x4,_0x1cafe9)],Nt);class Eo extends _0x4bff65{constructor(){const _0x12e687=_0x2e5b1c;super(),l(this,'urlChange$'),this['urlChange$']=_0x4dbad7(window,_0x12e687(0x12b))['pipe'](_0x2123e0(this[_0x12e687(0x3be)]),_0x1aec94(0x1),_0x543013(void 0x0));}[_0x2e5b1c(0x136)](_0x1855f1,_0x47adba,_0x13933a=!0x1){const _0x5758dd=_0x2e5b1c,_0x12c398=new URL(window[_0x5758dd(0x162)][_0x5758dd(0x2e7)]);_0x12c398[_0x5758dd(0x202)][_0x5758dd(0x1e1)](_0x1855f1,_0x47adba),_0x13933a?window[_0x5758dd(0x1bc)]['replaceState']('','',_0x12c398['toString']()):window['history'][_0x5758dd(0x3f5)]('','',_0x12c398[_0x5758dd(0x19b)]());}[_0x2e5b1c(0x455)](_0x119789,_0x1d805e=!0x1){const _0x28b060=_0x2e5b1c,_0x141de5=new URL(window[_0x28b060(0x162)][_0x28b060(0x2e7)]);_0x141de5[_0x28b060(0x202)][_0x28b060(0x18d)](_0x119789),_0x1d805e?window[_0x28b060(0x1bc)][_0x28b060(0x433)]('','',_0x141de5['toString']()):window[_0x28b060(0x1bc)][_0x28b060(0x3f5)]('','',_0x141de5[_0x28b060(0x19b)]());}[_0x2e5b1c(0x402)](_0x3b214b){const _0x20948f=_0x2e5b1c;var _0x40c5d0;return(_0x40c5d0=new URL(window['location']['href'])[_0x20948f(0x202)][_0x20948f(0x18f)](_0x3b214b))!=null?_0x40c5d0:void 0x0;}}const ft=_0x2e5b1c(0x2c8),Co='collab-text-range-',bo=_0x2e5b1c(0x35a),we=0x6,To=1.5,gt=0x4,Ro=1.5,Oo='rgba(255,\x20255,\x20255,\x200.01)';class ms{constructor(_0x228d78,_0x24fb9c,_0x35e9ac,_0x36b547){const _0x3f364e=_0x2e5b1c;l(this,'_shapes',[]),l(this,_0x3f364e(0x1b1),null),l(this,'_textBubble',null),l(this,_0x3f364e(0x21a),null),l(this,_0x3f364e(0x150),null),l(this,_0x3f364e(0x29f),null),(this['_cursor']=_0x228d78,this['_scene']=_0x24fb9c,this[_0x3f364e(0x43a)]=_0x35e9ac,this[_0x3f364e(0x2be)]=_0x36b547,this[_0x3f364e(0x357)]());}set[_0x2e5b1c(0x308)](_0x3e9e9a){const _0x5a3ca0=_0x2e5b1c;_0x3e9e9a?(this[_0x5a3ca0(0x21a)]&&this[_0x5a3ca0(0x21a)][_0x5a3ca0(0x424)](),this[_0x5a3ca0(0x2aa)]&&this['_textBubble']['show']()):(this[_0x5a3ca0(0x21a)]&&this[_0x5a3ca0(0x21a)][_0x5a3ca0(0x367)](),this[_0x5a3ca0(0x2aa)]&&this[_0x5a3ca0(0x2aa)][_0x5a3ca0(0x424)]());}['dispose'](){const _0x40836f=_0x2e5b1c;for(const _0x4d5bc7 of this['_shapes'])_0x4d5bc7[_0x40836f(0x2fe)]();this[_0x40836f(0x2aa)]&&this[_0x40836f(0x2aa)][_0x40836f(0x2fe)](),this['_anchorDot']&&this[_0x40836f(0x21a)][_0x40836f(0x2fe)](),this[_0x40836f(0x1b1)]&&this[_0x40836f(0x1b1)][_0x40836f(0x2fe)](),this[_0x40836f(0x29f)]&&this[_0x40836f(0x29f)]();}['_render'](){const _0x129216=_0x2e5b1c;var _0x455184;const {_docSkeleton:_0x2e46bd,_document:_0x5191df}=this,{color:_0x28b3c4,name:_0x5cba2e,ranges:_0x4952c2}=this[_0x129216(0x37e)],_0x2e16c8=_0x5191df[_0x129216(0x240)](),{docsLeft:_0x53fc1c,docsTop:_0x54c491}=_0x2e16c8,_0x3b9813=new _0x5cf9b0(_0x2e16c8,_0x2e46bd);for(const {startOffset:_0x44e548,endOffset:_0x493825,collapsed:_0x3cedd8,isActive:_0x5d9ec0}of _0x4952c2){const _0x8bc785=_0x2e46bd[_0x129216(0x25e)](_0x44e548),_0x4a45a6=_0x2e46bd[_0x129216(0x25e)](_0x493825);if(_0x5d9ec0){const {contentBoxPointGroup:_0x26212b}=_0x3b9813[_0x129216(0x2cc)](_0x4a45a6,_0x4a45a6);if(_0x26212b[_0x129216(0x1bb)]===0x0)continue;this[_0x129216(0x3dc)](_0x28b3c4,_0x26212b,_0x53fc1c,_0x54c491,_0x5cba2e),this[_0x129216(0x29f)]=this[_0x129216(0x3d2)]();}if(!_0x3cedd8&&_0x8bc785&&_0x4a45a6){if(_0x29cf68(_0x8bc785,_0x4a45a6)){const _0x55228b=new _0xbfc352(_0x2e16c8,_0x2e46bd),{pointGroup:_0x3355cd}=(_0x455184=_0x55228b[_0x129216(0x2cc)](_0x8bc785,_0x4a45a6))!=null?_0x455184:{};if(_0x3355cd==null||_0x3355cd[_0x129216(0x1bb)]===0x0)continue;this[_0x129216(0x122)](_0x28b3c4,_0x3355cd,_0x53fc1c,_0x54c491);}else{const {contentBoxPointGroup:_0x4c8828}=_0x3b9813['getRangePointData'](_0x8bc785,_0x4a45a6);if(_0x4c8828['length']===0x0)continue;this[_0x129216(0x1e2)](_0x28b3c4,_0x4c8828,_0x53fc1c,_0x54c491);}}}}['_drawAnchor'](_0x17c1ae,_0x38db41,_0x38ab4c,_0x29c95b,_0x1e9dcf){const _0x1f66e8=_0x2e5b1c,_0x5e7cb7=this['_getAnchorBounding'](_0x38db41),{left:_0x42bf0b,top:_0x3e7134,height:_0x2eb46d}=_0x5e7cb7,_0x4d89fd=this[_0x1f66e8(0x340)](),_0x4c3db8=Ro/_0x4d89fd,_0x1406e4=new _0x170a21(ft+_0x3cea4b['generateRandomId'](we),{'left':_0x42bf0b+_0x38ab4c-_0x4c3db8,'top':_0x3e7134+_0x29c95b,'height':_0x2eb46d,'width':To,'fill':_0x17c1ae||_0x3c99d3(_0x44cb7f['black'],0x0),'strokeWidth':_0x4c3db8,'stroke':Oo,'evented':!0x0});this[_0x1f66e8(0x1b1)]=_0x1406e4,this[_0x1f66e8(0x173)][_0x1f66e8(0x2eb)](_0x1406e4,_0x2b5c4c);const _0x134887=new _0x170a21(ft+_0x3cea4b[_0x1f66e8(0x1ce)](we),{'left':_0x42bf0b+_0x38ab4c-_0x4c3db8,'top':_0x3e7134+_0x29c95b-gt/0x2,'height':gt,'width':gt,'fill':_0x17c1ae||_0x3c99d3(_0x44cb7f['black'],0x0),'strokeWidth':0x0,'stroke':_0x17c1ae||_0x3c99d3(_0x44cb7f[_0x1f66e8(0x13e)],0x0),'evented':!0x1});this[_0x1f66e8(0x21a)]=_0x134887,this[_0x1f66e8(0x173)][_0x1f66e8(0x2eb)](_0x134887,_0x2b5c4c);const _0x4a8bae=new nt(ft+_0x3cea4b['generateRandomId'](we),{'left':_0x42bf0b+_0x38ab4c-_0x4c3db8,'top':_0x3e7134+_0x29c95b-Ue,'text':_0x1e9dcf,'color':_0x17c1ae});this['_textBubble']=_0x4a8bae,this[_0x1f66e8(0x173)][_0x1f66e8(0x2eb)](_0x4a8bae,_0x2b5c4c),this[_0x1f66e8(0x308)]=!0x1;}[_0x2e5b1c(0x3d2)](){const _0x24e0c9=_0x2e5b1c,_0x536b2f=this[_0x24e0c9(0x1b1)][_0x24e0c9(0x3b9)][_0x24e0c9(0x3cb)](()=>{const _0x27f4da=_0x24e0c9;this[_0x27f4da(0x308)]=!0x0;}),_0x2af6f7=this['_anchor'][_0x24e0c9(0x3d3)][_0x24e0c9(0x3cb)](()=>{const _0x43513b=_0x24e0c9;this[_0x43513b(0x150)]&&clearTimeout(this['_hideTimer']),this[_0x43513b(0x150)]=setTimeout(()=>{const _0x2fc2a7=_0x43513b;this[_0x2fc2a7(0x308)]=!0x1;},0x7d0);});return()=>{const _0x36b386=_0x24e0c9;_0x536b2f[_0x36b386(0x1c1)](),_0x2af6f7['unsubscribe']();};}[_0x2e5b1c(0x1e2)](_0x7eca3f,_0xaf1a1b,_0x3385ab,_0x7f63f5){const _0x7c7343=_0x2e5b1c,_0x16d4e5=new _0x21fa84(_0x7eca3f)[_0x7c7343(0x1ee)](0.2)[_0x7c7343(0x282)](),_0x1f70fe=new _0x532a25(Co+_0x3cea4b[_0x7c7343(0x1ce)](we),{'pointsGroup':_0xaf1a1b,'fill':_0x16d4e5||_0x3c99d3(_0x44cb7f[_0x7c7343(0x13e)],0.2),'left':_0x3385ab,'top':_0x7f63f5,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x7c7343(0x3eb)][_0x7c7343(0x2f1)](_0x1f70fe),this[_0x7c7343(0x173)][_0x7c7343(0x2eb)](_0x1f70fe,_0x2b5c4c);}[_0x2e5b1c(0x122)](_0x4a2108,_0x39b540,_0x147308,_0x2d4aa6){const _0x47f56e=_0x2e5b1c,_0xc325cd=new _0x21fa84(_0x4a2108)['setAlpha'](0.2)[_0x47f56e(0x282)](),_0x1da917=new _0x532a25(bo+_0x3cea4b[_0x47f56e(0x1ce)](we),{'pointsGroup':_0x39b540,'fill':_0xc325cd||_0x3c99d3(_0x44cb7f[_0x47f56e(0x13e)],0.2),'left':_0x147308,'top':_0x2d4aa6,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x47f56e(0x3eb)][_0x47f56e(0x2f1)](_0x1da917),this[_0x47f56e(0x173)][_0x47f56e(0x2eb)](_0x1da917,_0x2b5c4c);}['_getAnchorBounding'](_0x29a17f){const _0x48c319=_0x29a17f[0x0],_0x1b17ec=_0x48c319[0x0],_0x2d9c70=_0x48c319[0x2],{x:_0x49feda,y:_0x151fc7}=_0x1b17ec,{x:_0x200310,y:_0x3b4793}=_0x2d9c70;return{'left':_0x49feda,'top':_0x151fc7,'width':_0x200310-_0x49feda,'height':_0x3b4793-_0x151fc7};}[_0x2e5b1c(0x340)](){const _0x35040b=_0x2e5b1c,{scaleX:_0xe8f76e,scaleY:_0x43e3a5}=this[_0x35040b(0x173)][_0x35040b(0x322)]();return Math[_0x35040b(0x123)](_0xe8f76e,_0x43e3a5);}}var Do=Object[_0x2e5b1c(0x2de)],wo=Object[_0x2e5b1c(0x41c)],Po=(_0x1dbce5,_0x1710b3,_0x23054e,_0x3388cd)=>{for(var _0x988116=_0x3388cd>0x1?void 0x0:_0x3388cd?wo(_0x1710b3,_0x23054e):_0x1710b3,_0x4c3f2c=_0x1dbce5['length']-0x1,_0x527194;_0x4c3f2c>=0x0;_0x4c3f2c--)(_0x527194=_0x1dbce5[_0x4c3f2c])&&(_0x988116=(_0x3388cd?_0x527194(_0x1710b3,_0x23054e,_0x988116):_0x527194(_0x988116))||_0x988116);return _0x3388cd&&_0x988116&&Do(_0x1710b3,_0x23054e,_0x988116),_0x988116;},Be=(_0x2ffc6c,_0x3e9b92)=>(_0x1a2a12,_0x21dbfb)=>_0x3e9b92(_0x1a2a12,_0x21dbfb,_0x2ffc6c);let Ye=class extends _0x4bff65{constructor(_0xaa07c4,_0x5bf71c,_0x22f7ea,_0x45f098,_0x30d301){const _0x3c6301=_0x2e5b1c;super(),l(this,_0x3c6301(0x313),[]),l(this,_0x3c6301(0x45c),[]),(this['_context']=_0xaa07c4,this[_0x3c6301(0x431)]=_0x5bf71c,this['_collabCursorController']=_0x22f7ea,this[_0x3c6301(0x1bd)]=_0x45f098,this[_0x3c6301(0x382)]=_0x30d301,this['_init']());}[_0x2e5b1c(0x42f)](){const _0x33a0ef=_0x2e5b1c,_0x34c387=this[_0x33a0ef(0x1c4)][_0x33a0ef(0x275)],_0x21785a=this[_0x33a0ef(0x431)];this[_0x33a0ef(0x294)](_0x1ee3b6([this['_collabCursorController'][_0x33a0ef(0x16c)](_0x34c387),this[_0x33a0ef(0x382)][_0x33a0ef(0x221)]])[_0x33a0ef(0x195)](_0x4b551a(([_0x1eac69,_0x36f406])=>({'skeleton':_0x21785a[_0x33a0ef(0x2bc)](),'cursors':[..._0x1eac69['values']()][_0x33a0ef(0x177)](_0x353798=>({..._0x353798,'color':_0x36f406[_0x353798['color']]}))})))[_0x33a0ef(0x3c4)](_0xf68629=>{const _0xfb2ac0=_0x33a0ef;if(this[_0xfb2ac0(0x2d2)](),_0xf68629){const {skeleton:_0x21f296,cursors:_0x1524ac}=_0xf68629;this[_0xfb2ac0(0x323)](_0x21f296,_0x1524ac);}})),this['_initResize'](),this['_initCommandExecutedListener']();}[_0x2e5b1c(0x323)](_0x3018ef,_0x100a91){const _0x3fef4f=_0x2e5b1c,{scene:_0x178353,mainComponent:_0x438150}=this[_0x3fef4f(0x1c4)],_0x28a636=_0x100a91[_0x3fef4f(0x1c7)](_0x5c8882=>new ms(_0x5c8882,_0x178353,_0x3018ef,_0x438150));this[_0x3fef4f(0x313)]=_0x28a636,this['_cursors']=_0x100a91;}[_0x2e5b1c(0x171)](){const _0x3822ac=_0x2e5b1c;this[_0x3822ac(0x2d2)]();const {scene:_0x2c4d4c,mainComponent:_0x219cd4}=this['_context'],_0x917812=this[_0x3822ac(0x431)][_0x3822ac(0x2bc)](),_0x4c44bb=this[_0x3822ac(0x45c)][_0x3822ac(0x1c7)](_0x2c9ac2=>new ms(_0x2c9ac2,_0x2c4d4c,_0x917812,_0x219cd4));this[_0x3822ac(0x313)]=_0x4c44bb;}[_0x2e5b1c(0x2d2)](){const _0x4d1dd0=_0x2e5b1c;this[_0x4d1dd0(0x313)][_0x4d1dd0(0x1cd)](_0x10280d=>_0x10280d[_0x4d1dd0(0x2fe)]()),this[_0x4d1dd0(0x313)]=[];}[_0x2e5b1c(0x26d)](){const _0x405d9d=_0x2e5b1c,_0x1093bf=[_0x23717a['id']];this[_0x405d9d(0x294)](this['_commandService'][_0x405d9d(0x20e)](_0xba8f1f=>{const _0x19451d=_0x405d9d;_0x1093bf['includes'](_0xba8f1f['id'])&&_0xba8f1f[_0x19451d(0x27b)][_0x19451d(0x275)]===this['_context'][_0x19451d(0x275)]&&this[_0x19451d(0x171)]();}));}[_0x2e5b1c(0x1d5)](){const _0x2395f8=_0x2e5b1c;this[_0x2395f8(0x294)](_0x240b02(this['_context'][_0x2395f8(0x18e)][_0x2395f8(0x2ae)])[_0x2395f8(0x195)](_0x48e324(_0x199e6a=>_0x199e6a['type']===_0x277f5f['resize']),_0x326ad7(0x10))[_0x2395f8(0x3c4)](()=>{const _0x2402f5=_0x2395f8;this[_0x2402f5(0x171)]();}));}};Ye=Po([_0x486866(_0x446a6f[_0x2e5b1c(0x2bf)],Ye),Be(0x1,_0x5c7fae(_0x2398d4)),Be(0x2,_0x5c7fae(fe)),Be(0x3,_0x36a317),Be(0x4,_0x5c7fae(_0x27c464))],Ye);var No=Object[_0x2e5b1c(0x2de)],yo=Object[_0x2e5b1c(0x41c)],Mo=(_0x1d9940,_0x5c56b5,_0xf71e76,_0x448ae6)=>{const _0x4a40e3=_0x2e5b1c;for(var _0x3f0dba=_0x448ae6>0x1?void 0x0:_0x448ae6?yo(_0x5c56b5,_0xf71e76):_0x5c56b5,_0x199022=_0x1d9940[_0x4a40e3(0x1bb)]-0x1,_0x5442f8;_0x199022>=0x0;_0x199022--)(_0x5442f8=_0x1d9940[_0x199022])&&(_0x3f0dba=(_0x448ae6?_0x5442f8(_0x5c56b5,_0xf71e76,_0x3f0dba):_0x5442f8(_0x3f0dba))||_0x3f0dba);return _0x448ae6&&_0x3f0dba&&No(_0x5c56b5,_0xf71e76,_0x3f0dba),_0x3f0dba;},St=(_0x263ff4,_0x51351d)=>(_0x3f276a,_0x4024b2)=>_0x51351d(_0x3f276a,_0x4024b2,_0x263ff4);let st=class{constructor(_0x43959b,_0x51b8db,_0x1569db){const _0x1ed1e8=_0x2e5b1c;this[_0x1ed1e8(0x338)]=_0x43959b,this[_0x1ed1e8(0x17e)]=_0x51b8db,this[_0x1ed1e8(0x176)]=_0x1569db,this[_0x1ed1e8(0x124)]();}[_0x2e5b1c(0x124)](){const _0x45c09b=_0x2e5b1c;this['_httpService'][_0x45c09b(0x17b)]({'priority':0x1,'interceptor':(_0x164df8,_0x5217e4)=>_0x5217e4(_0x164df8)['pipe'](_0x4c98f9(async _0x663063=>{const _0x1e43ef=_0x45c09b,_0x492331=_0x663063;if(_0x492331['status']===0x191&&window['confirm'](this[_0x1e43ef(0x176)]['t'](_0x1e43ef(0x295)))){const _0x4a7df5=window[_0x1e43ef(0x2c1)](window[_0x1e43ef(0x162)][_0x1e43ef(0x2e7)]);window[_0x1e43ef(0x162)][_0x1e43ef(0x2e7)]=this['_getLoginPath']()+_0x1e43ef(0x390)+_0x4a7df5;}return _0x492331;}))});}[_0x2e5b1c(0x370)](){const _0x253540=_0x2e5b1c;var _0x4f08ee;return(_0x4f08ee=this[_0x253540(0x338)]['getConfig'](wn))!=null?_0x4f08ee:Pn;}};st=Mo([St(0x0,_0x401b9d),St(0x1,_0x5c7fae(_0x35343d)),St(0x2,_0x5c7fae(_0x12e5b3))],st);var Ao=Object[_0x2e5b1c(0x2de)],Uo=Object[_0x2e5b1c(0x41c)],Lo=(_0x489c4b,_0x104b09,_0x161ad0,_0x5b62f1)=>{for(var _0x3f617a=_0x5b62f1>0x1?void 0x0:_0x5b62f1?Uo(_0x104b09,_0x161ad0):_0x104b09,_0xeca85c=_0x489c4b['length']-0x1,_0x13e574;_0xeca85c>=0x0;_0xeca85c--)(_0x13e574=_0x489c4b[_0xeca85c])&&(_0x3f617a=(_0x5b62f1?_0x13e574(_0x104b09,_0x161ad0,_0x3f617a):_0x13e574(_0x3f617a))||_0x3f617a);return _0x5b62f1&&_0x3f617a&&Ao(_0x104b09,_0x161ad0,_0x3f617a),_0x3f617a;},fs=(_0x3865c6,_0x50709a)=>(_0x92ef63,_0x48a45a)=>_0x50709a(_0x92ef63,_0x48a45a,_0x3865c6);const $o='AUTHZ_URL_KEY',jo=_0x2e5b1c(0x1eb);let yt=class extends _0x36403b{constructor(_0x3127a6,_0x1400d7){const _0x582f24=_0x2e5b1c;super(),this[_0x582f24(0x423)]=_0x3127a6,this[_0x582f24(0x338)]=_0x1400d7,this[_0x582f24(0x285)]();}['_initMergeInterceptor'](){const _0x3fe165=_0x2e5b1c,_0x374d96=this;this[_0x3fe165(0x294)](this[_0x3fe165(0x423)][_0x3fe165(0x17b)]({'priority':0x3e7,'interceptor':_0x441ebe({'isMatch'(_0xc625b4){const _0x93d93a=_0x3fe165;var _0x37e04a;if(_0xc625b4[_0x93d93a(0x41a)]==='POST'&&((_0x37e04a=_0xc625b4[_0x93d93a(0x296)])!=null&&_0x37e04a[_0x93d93a(0x12f)])){const {objectID:_0x5c2627,objectType:_0x17205e}=_0xc625b4[_0x93d93a(0x296)][_0x93d93a(0x12f)]||{};if(!_0x5c2627||_0x17205e===void 0x0)return!0x1;const _0x469d5b=_0x374d96['_getAPIPrefixPath']()+'/'+_0x17205e+_0x93d93a(0x489)+_0x5c2627+_0x93d93a(0x3df);if(_0xc625b4[_0x93d93a(0x2c3)]===_0x469d5b)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x1a8894){const _0x683aa3=_0x3fe165;var _0x42b6b0;return(_0x42b6b0=_0x1a8894[_0x683aa3(0x296)])==null?void 0x0:_0x42b6b0[_0x683aa3(0x12f)];},'mergeParamsToRequest'(_0x23c52e,_0x3376e7){const _0x155127=_0x3fe165,_0x97940b=_0x374d96[_0x155127(0x2c9)]()+_0x155127(0x472),_0x56eb28=_0x23c52e[_0x155127(0x212)]((_0x200444,_0x13743a)=>{const _0x2650df=_0x155127,{unitID:_0x85cdb8,objectID:_0x586dfe,objectType:_0x4c2fab,actions:_0x36eb93}=_0x13743a;return _0x200444[_0x85cdb8]||(_0x200444[_0x85cdb8]={}),_0x200444[_0x85cdb8][_0x586dfe]||(_0x200444[_0x85cdb8][_0x586dfe]={'objectID':_0x586dfe,'objectType':_0x4c2fab,'actions':[]}),_0x200444[_0x85cdb8][_0x586dfe]['actions'][_0x2650df(0x2f1)](..._0x36eb93),_0x200444;},{}),_0x4bdbd0=[];for(const _0x236fb9 in _0x56eb28)for(const _0x406685 in _0x56eb28[_0x236fb9]){const {actions:_0x83aa87,objectType:_0x251272}=_0x56eb28[_0x236fb9][_0x406685],_0x472b30=[...new Set(_0x83aa87)];_0x4bdbd0['push']({'unitID':_0x236fb9,'objectID':_0x406685,'objectType':_0x251272,'actions':_0x472b30});}return new _0x1baa38(_0x155127(0x347),_0x97940b,{'headers':_0x3376e7[_0x155127(0x38e)],'withCredentials':_0x3376e7['withCredentials'],'responseType':_0x3376e7[_0x155127(0x486)],'body':{'requests':_0x4bdbd0}});}},{'distributeResult'(_0x26d120,_0x161378){const _0x5cfbad=_0x3fe165,{objectActions:_0x3d18c8}=_0x26d120;return _0x161378[_0x5cfbad(0x1c7)](_0x224b92=>{const _0x177990=_0x5cfbad,{unitID:_0x4f99c6,objectID:_0x3ac4f7,actions:_0x1b1e9c}=_0x224b92,_0x36ad17=_0x3d18c8[_0x177990(0x2c5)](_0x40b2d2=>_0x40b2d2[_0x177990(0x3a4)]===_0x4f99c6&&_0x40b2d2[_0x177990(0x37d)]===_0x3ac4f7),_0x34fc70=_0x1b1e9c[_0x177990(0x1c7)](_0x3a2d2a=>_0x36ad17==null?void 0x0:_0x36ad17[_0x177990(0x1ba)]['find'](_0x487608=>_0x487608[_0x177990(0x3bb)]===_0x3a2d2a))[_0x177990(0x133)](_0x2759f6=>!!_0x2759f6);return{'config':_0x224b92,'result':{'actions':_0x34fc70,'error':_0x26d120[_0x177990(0x30b)]}};});}})}));}[_0x2e5b1c(0x2c9)](){const _0x1dfbb3=_0x2e5b1c;var _0x323b17;return(_0x323b17=this[_0x1dfbb3(0x338)][_0x1dfbb3(0x142)]($o))!=null?_0x323b17:jo;}async['create'](_0xa4cccc){const _0x49fe8c=_0x2e5b1c,_0xfecd9b=this[_0x49fe8c(0x2c9)]()+'/'+_0xa4cccc[_0x49fe8c(0x2a5)]+_0x49fe8c(0x2da);return(await this[_0x49fe8c(0x423)][_0x49fe8c(0x1e3)](_0xfecd9b,{'body':_0xa4cccc}))[_0x49fe8c(0x12f)][_0x49fe8c(0x37d)]||'';}async[_0x2e5b1c(0x259)](_0x383332){const _0xb8e92b=_0x2e5b1c,_0x55159e=this[_0xb8e92b(0x2c9)]()+_0xb8e92b(0x179);return(await this[_0xb8e92b(0x423)]['post'](_0x55159e,{'body':_0x383332}))[_0xb8e92b(0x12f)][_0xb8e92b(0x44e)];}async[_0x2e5b1c(0x3b1)](_0x266144){const _0x966cb9=_0x2e5b1c,_0x480f83=this[_0x966cb9(0x2c9)]()+'/'+_0x266144[_0x966cb9(0x2a5)]+_0x966cb9(0x489)+_0x266144[_0x966cb9(0x37d)];await this[_0x966cb9(0x423)][_0x966cb9(0x315)](_0x480f83,{'body':_0x266144});}async[_0x2e5b1c(0x16d)](_0x28933c){const _0x22cf36=_0x2e5b1c,_0x356680=this['_getAPIPrefixPath']()+'/'+_0x28933c[_0x22cf36(0x2a5)]+_0x22cf36(0x489)+_0x28933c[_0x22cf36(0x37d)]+'/allowed';return(await this[_0x22cf36(0x423)][_0x22cf36(0x1e3)](_0x356680,{'body':_0x28933c}))[_0x22cf36(0x12f)][_0x22cf36(0x1ba)];}async[_0x2e5b1c(0x3a6)](_0x311596){const _0x162984=_0x2e5b1c,_0x2480b8=this[_0x162984(0x2c9)]()+_0x162984(0x472);return(await this[_0x162984(0x423)]['post'](_0x2480b8,{'body':{'requests':_0x311596}}))['body'][_0x162984(0x19f)];}async['listRoles'](_0x5a15e9){const _0x1aa9e2=_0x2e5b1c,_0x3a1bf1=this[_0x1aa9e2(0x2c9)]()+'/'+_0x5a15e9[_0x1aa9e2(0x2a5)]+_0x1aa9e2(0x1e6),_0x11c9dd=await this[_0x1aa9e2(0x423)][_0x1aa9e2(0x1e3)](_0x3a1bf1,{'body':_0x5a15e9});return{'roles':_0x11c9dd['body'][_0x1aa9e2(0x475)],'actions':_0x11c9dd[_0x1aa9e2(0x12f)][_0x1aa9e2(0x1ba)]};}async['deleteCollaborator'](_0xf39163){const _0x5342ea=_0x2e5b1c,_0x57b76b=this[_0x5342ea(0x2c9)]()+'/collaborator';await this['_HTTPService'][_0x5342ea(0x18d)](_0x57b76b,{'params':{'collaboratorID':_0xf39163['collaboratorID'],'objectID':_0xf39163['objectID'],'unitID':_0xf39163[_0x5342ea(0x3a4)]}});}async[_0x2e5b1c(0x333)](_0x5ab9de){const _0x3f55b5=_0x2e5b1c,_0x5cc25b=this['_getAPIPrefixPath']()+_0x3f55b5(0x1af);await this[_0x3f55b5(0x423)][_0x3f55b5(0x234)](_0x5cc25b,{'body':_0x5ab9de});}async['createCollaborator'](_0x806c63){const _0x16e419=_0x2e5b1c,_0x51411b=this[_0x16e419(0x2c9)]()+_0x16e419(0x1af);await this[_0x16e419(0x423)][_0x16e419(0x1e3)](_0x51411b,{'body':_0x806c63});}async['listCollaborators'](_0xf19240){const _0x2e195e=_0x2e5b1c,_0x587416=this[_0x2e195e(0x2c9)]()+_0x2e195e(0x1af);return(await this[_0x2e195e(0x423)][_0x2e195e(0x18f)](_0x587416,{'params':{'objectID':_0xf19240[_0x2e195e(0x37d)],'unitID':_0xf19240[_0x2e195e(0x3a4)]}}))['body'][_0x2e195e(0x33e)];}async[_0x2e5b1c(0x20f)](_0x1b697b){const _0x578340=_0x2e5b1c,_0xaa56c2=this['_getAPIPrefixPath']()+_0x578340(0x1af);await this[_0x578340(0x423)][_0x578340(0x315)](_0xaa56c2,{'body':_0x1b697b});}};yt=Lo([fs(0x0,_0x5c7fae(_0x35343d)),fs(0x1,_0x5c7fae(_0x401b9d))],yt);var xo=Object[_0x2e5b1c(0x2de)],Ho=Object[_0x2e5b1c(0x41c)],ko=(_0x555805,_0x4dad8f,_0x2eeea7,_0x4d306)=>{for(var _0x554c4c=_0x4d306>0x1?void 0x0:_0x4d306?Ho(_0x4dad8f,_0x2eeea7):_0x4dad8f,_0x1d225d=_0x555805['length']-0x1,_0x10d1b7;_0x1d225d>=0x0;_0x1d225d--)(_0x10d1b7=_0x555805[_0x1d225d])&&(_0x554c4c=(_0x4d306?_0x10d1b7(_0x4dad8f,_0x2eeea7,_0x554c4c):_0x10d1b7(_0x554c4c))||_0x554c4c);return _0x4d306&&_0x554c4c&&xo(_0x4dad8f,_0x2eeea7,_0x554c4c),_0x554c4c;},pt=(_0x2f606c,_0x509090)=>(_0x35337a,_0x471aa9)=>_0x509090(_0x35337a,_0x471aa9,_0x2f606c);const Bo=[_0x2e5b1c(0x2b9),_0x2e5b1c(0x381),_0x2e5b1c(0x188),_0x2e5b1c(0x444),_0x2e5b1c(0x470)],Vo=0x5*0x400*0x400,Fo=_0x2e5b1c(0x3fe),Wo='/universer-api/stream/file/upload',Go=_0x2e5b1c(0x2d6),Yo=_0x2e5b1c(0x445);let Mt=class{constructor(_0x36cf52,_0x52b5e4,_0x53fb52){const _0x518ccf=_0x2e5b1c;l(this,'_waitCount',0x0),l(this,_0x518ccf(0x1a3),new _0x47a81b()),l(this,'change$',this[_0x518ccf(0x1a3)]),l(this,_0x518ccf(0x28d),new Map()),(this[_0x518ccf(0x17e)]=_0x36cf52,this[_0x518ccf(0x338)]=_0x52b5e4,this[_0x518ccf(0x1ae)]=_0x53fb52);}[_0x2e5b1c(0x2f5)](_0x28e44b){const _0xac2bd8=_0x2e5b1c;this[_0xac2bd8(0x27a)]=_0x28e44b,this[_0xac2bd8(0x1a3)][_0xac2bd8(0x244)](_0x28e44b);}[_0x2e5b1c(0x248)](_0x33ac02,_0x3fd5bc){const _0x9dcf2f=_0x2e5b1c;if(_0x3fd5bc===_0x2639d9[_0x9dcf2f(0x36a)]){const _0x5b3a81=new Image();return _0x5b3a81['src']=_0x33ac02,_0x5b3a81;}return this[_0x9dcf2f(0x28d)][_0x9dcf2f(0x18f)](_0x33ac02);}[_0x2e5b1c(0x2ca)](_0x3a292a,_0x48b5a2,_0x2fe4ca){const _0x577498=_0x2e5b1c;_0x48b5a2===_0x2639d9[_0x577498(0x36a)]||_0x2fe4ca==null||this['_imageSourceCache']['set'](_0x3a292a,_0x2fe4ca);}async['getImage'](_0x569aa){const _0x419988=_0x2e5b1c;try{const _0x2a8ed7=this[_0x419988(0x26b)](this[_0x419988(0x376)](),''+_0x569aa),_0x5320fc=(await this['_httpService'][_0x419988(0x18f)](_0x2a8ed7))[_0x419988(0x12f)];return _0x5320fc[_0x419988(0x30b)]&&_0x5320fc['error'][_0x419988(0x2fa)]===Ms['OK']?Promise[_0x419988(0x430)](_0x5320fc[_0x419988(0x2c3)]):Promise['reject'](_0x5320fc[_0x419988(0x30b)]);}catch(_0xe466a){return Promise['reject'](_0xe466a);}}async[_0x2e5b1c(0x373)](_0x4f0e30){const _0x46dab4=_0x2e5b1c;let _0xac3c3='';if(!Bo[_0x46dab4(0x3a0)](_0x4f0e30[_0x46dab4(0x255)]))return this[_0x46dab4(0x151)](),Promise[_0x46dab4(0x38a)](new Error(_0x29d71a['ERROR_IMAGE_TYPE']));if(_0x4f0e30[_0x46dab4(0x362)]>Vo)return this[_0x46dab4(0x151)](),Promise['reject'](new Error(_0x29d71a[_0x46dab4(0x3e1)]));try{const _0x32d200=new FormData();_0x32d200[_0x46dab4(0x40c)](_0x46dab4(0x2ad),_0x4f0e30);const _0x100567=this['_univerInstanceService'][_0x46dab4(0x1e7)](),_0x1f75aa=_0x100567==null?void 0x0:_0x100567[_0x46dab4(0x426)]();if(!_0x1f75aa)throw new Error(_0x46dab4(0x15e));const _0x3ce7b9=this[_0x46dab4(0x12d)]()+_0x46dab4(0x242)+_0x4f0e30[_0x46dab4(0x362)][_0x46dab4(0x19b)]()+_0x46dab4(0x215)+As['UnitEmbedded']+'&assign='+encodeURIComponent(_0x1f75aa),_0x561f6d=await(await fetch(_0x3ce7b9,{'method':_0x46dab4(0x347),'body':_0x32d200}))[_0x46dab4(0x236)]();if(typeof _0x561f6d[_0x46dab4(0x14e)]!=_0x46dab4(0x239))return this['_decreaseWaiting'](),Promise['reject'](new Error(_0x29d71a[_0x46dab4(0x416)]));_0xac3c3=_0x561f6d[_0x46dab4(0x14e)];}catch{return this[_0x46dab4(0x151)](),Promise[_0x46dab4(0x38a)](new Error(_0x29d71a['ERROR_IMAGE']));}return new Promise((_0x59ee4e,_0x44c289)=>{const _0x2f1244=_0x46dab4,_0x3db15f=new FileReader();_0x3db15f[_0x2f1244(0x48c)](_0x4f0e30),_0x3db15f['onload']=_0x292265=>{const _0x56dd94=_0x2f1244;var _0x446a44;const _0x153994=(_0x446a44=_0x292265[_0x56dd94(0x1a8)])==null?void 0x0:_0x446a44['result'];if(_0x153994==null){this[_0x56dd94(0x151)](),_0x44c289(new Error(_0x29d71a[_0x56dd94(0x416)]));return;}const _0x139406=_0x3cea4b[_0x56dd94(0x1ce)](0x6);_0x59ee4e({'imageId':_0x139406,'imageSourceType':_0x2639d9['UUID'],'source':_0xac3c3,'base64Cache':_0x153994,'status':_0x29d71a[_0x56dd94(0x343)]}),this[_0x56dd94(0x151)]();};});}[_0x2e5b1c(0x12d)](){const _0xc7676b=_0x2e5b1c;var _0x125e69;return(_0x125e69=this[_0xc7676b(0x338)][_0xc7676b(0x142)](Fo))!=null?_0x125e69:Wo;}[_0x2e5b1c(0x376)](){const _0x4e69e7=_0x2e5b1c;var _0x239346;return(_0x239346=this['_configService'][_0x4e69e7(0x142)](Go))!=null?_0x239346:Yo;}[_0x2e5b1c(0x26b)](_0x2ac1c2,_0x2da5e2){const _0x3d68a8=_0x2e5b1c;return _0x2ac1c2[_0x3d68a8(0x319)]('{fileID}',_0x2da5e2);}[_0x2e5b1c(0x151)](){const _0x28193=_0x2e5b1c;this[_0x28193(0x27a)]-=0x1,this['_change$'][_0x28193(0x244)](this[_0x28193(0x27a)]);}};Mt=ko([pt(0x0,_0x5c7fae(_0x35343d)),pt(0x1,_0x401b9d),pt(0x2,_0x5c7fae(_0x30b2f2))],Mt);var Ko=Object[_0x2e5b1c(0x2de)],Xo=Object[_0x2e5b1c(0x41c)],Jo=(_0x244045,_0x17bc6a,_0x49a4bc,_0x56aaca)=>{const _0x4f429a=_0x2e5b1c;for(var _0x8f6248=_0x56aaca>0x1?void 0x0:_0x56aaca?Xo(_0x17bc6a,_0x49a4bc):_0x17bc6a,_0x159361=_0x244045[_0x4f429a(0x1bb)]-0x1,_0x124aad;_0x159361>=0x0;_0x159361--)(_0x124aad=_0x244045[_0x159361])&&(_0x8f6248=(_0x56aaca?_0x124aad(_0x17bc6a,_0x49a4bc,_0x8f6248):_0x124aad(_0x8f6248))||_0x8f6248);return _0x56aaca&&_0x8f6248&&Ko(_0x17bc6a,_0x49a4bc,_0x8f6248),_0x8f6248;},Pe=(_0x46221e,_0xb23720)=>(_0x49a681,_0x3178e1)=>_0xb23720(_0x49a681,_0x3178e1,_0x46221e);let Ke=class extends _0x4bff65{constructor(_0x116da4,_0x4f55cb,_0x2091aa,_0x234f87,_0x17e625){const _0x151785=_0x2e5b1c;super(),this[_0x151785(0x3ac)]=_0x116da4,this[_0x151785(0x1ae)]=_0x4f55cb,this[_0x151785(0x292)]=_0x2091aa,this[_0x151785(0x385)]=_0x234f87,this[_0x151785(0x452)]=_0x17e625,this[_0x151785(0x24d)](),this[_0x151785(0x21c)]();}['_initCloseConn'](){const _0x19c788=_0x2e5b1c,_0x296116=async _0x1ade10=>{const _0xfa2d03=_0x5851;(await this[_0xfa2d03(0x385)][_0xfa2d03(0x205)](_0x1ade10))[_0xfa2d03(0x372)][_0xfa2d03(0x195)](_0x48e324(_0x416451=>_0x416451[_0xfa2d03(0x2f6)]===_0x410792[_0xfa2d03(0x2e2)]),_0x429e28(this[_0xfa2d03(0x3be)]))[_0xfa2d03(0x3c4)](_0x481d78=>{const _0xd50746=_0xfa2d03,_0x1e9af2=_0x481d78,{reason:_0x5777d9}=_0x1e9af2[_0xd50746(0x249)];this[_0xd50746(0x3ac)][_0xd50746(0x18f)](_0x29e945)[_0xd50746(0x367)]({'type':_0x68ddaa[_0xd50746(0x253)],'content':this[_0xd50746(0x452)]['t'](_0xd50746(0x2d5))+'('+_0x5777d9+')'}),this[_0xd50746(0x292)]['updatePermissionPoint'](new _0x477da8(_0x1ade10)['id'],!0x1),this[_0xd50746(0x385)][_0xd50746(0x31a)](_0x1ade10);});};_0x9334d7(this['_univerInstanceService'][_0x19c788(0x1a4)](_0x3bf0d9[_0x19c788(0x2c7)]),this['_univerInstanceService'][_0x19c788(0x1a4)](_0x3bf0d9['UNIVER_DOC']))[_0x19c788(0x195)](_0x4b551a(_0x300d5b=>_0x300d5b[_0x19c788(0x426)]()),_0x48e324(_0x570682=>!_0x852e4e(_0x570682)),_0x429e28(this['dispose$']))['subscribe'](_0x17300a=>{_0x296116(_0x17300a);});}[_0x2e5b1c(0x24d)](){const _0x4f5002=_0x2e5b1c,_0x151a56=async _0x43aa52=>{const _0x19aff1=_0x5851;(await this[_0x19aff1(0x385)][_0x19aff1(0x205)](_0x43aa52))['event$'][_0x19aff1(0x195)](_0x48e324(_0x3068f9=>_0x3068f9[_0x19aff1(0x2f6)]===_0x410792[_0x19aff1(0x168)]),_0x429e28(this['dispose$']))[_0x19aff1(0x3c4)](_0x56fed6=>{const _0x2476bc=_0x19aff1,_0x266d27=_0x56fed6,{objectId:_0x4b8699}=_0x266d27['data'],_0x1ea43a=this[_0x2476bc(0x3ac)][_0x2476bc(0x18f)](_0xa93b7d);_0x4b8699===_0x43aa52?_0x1ea43a['initWorkbookPermissionChange'](_0x43aa52):_0x1ea43a[_0x2476bc(0x36f)](_0x43aa52,_0x4b8699);});};_0x9334d7(this['_univerInstanceService'][_0x4f5002(0x1a4)](_0x3bf0d9[_0x4f5002(0x2c7)]),this[_0x4f5002(0x1ae)]['getTypeOfUnitAdded$'](_0x3bf0d9['UNIVER_DOC']))[_0x4f5002(0x195)](_0x4b551a(_0x55fa61=>_0x55fa61[_0x4f5002(0x426)]()),_0x48e324(_0x2ccf74=>!_0x852e4e(_0x2ccf74)),_0x429e28(this['dispose$']))[_0x4f5002(0x3c4)](_0x17beed=>{_0x151a56(_0x17beed);});}};Ke=Jo([_0x486866(_0x446a6f[_0x2e5b1c(0x488)],Ke),Pe(0x0,_0x5c7fae(_0x5d259e)),Pe(0x1,_0x30b2f2),Pe(0x2,_0x241366),Pe(0x3,_0x5c7fae(ae)),Pe(0x4,_0x5c7fae(_0x12e5b3))],Ke);const zo=_0x2e5b1c(0x26f);var Fs=Object['defineProperty'],qo=Object['getOwnPropertyDescriptor'],Zo=(_0x179ae7,_0x5a8655,_0x58b9d1)=>_0x5a8655 in _0x179ae7?Fs(_0x179ae7,_0x5a8655,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x58b9d1}):_0x179ae7[_0x5a8655]=_0x58b9d1,Qo=(_0x13e1f1,_0x41eaf2,_0x428d56,_0x313fb5)=>{const _0x151106=_0x2e5b1c;for(var _0x5b3273=_0x313fb5>0x1?void 0x0:_0x313fb5?qo(_0x41eaf2,_0x428d56):_0x41eaf2,_0x24641b=_0x13e1f1[_0x151106(0x1bb)]-0x1,_0x451229;_0x24641b>=0x0;_0x24641b--)(_0x451229=_0x13e1f1[_0x24641b])&&(_0x5b3273=(_0x313fb5?_0x451229(_0x41eaf2,_0x428d56,_0x5b3273):_0x451229(_0x5b3273))||_0x5b3273);return _0x313fb5&&_0x5b3273&&Fs(_0x41eaf2,_0x428d56,_0x5b3273),_0x5b3273;},Ve=(_0x18f360,_0x2ed247)=>(_0x4eda55,_0x3b67e1)=>_0x2ed247(_0x4eda55,_0x3b67e1,_0x18f360),ea=(_0x4ff82e,_0x2e4c6a,_0x47d9ca)=>Zo(_0x4ff82e,_0x2e4c6a+'',_0x47d9ca);const ta=_0x2e5b1c(0x300);let At=class extends _0x250c9c{constructor(_0x548fc7={},_0x24e3d2,_0x148cad,_0x46d4b4,_0x58bc18){const _0x30518f=_0x2e5b1c;super(),this[_0x30518f(0x410)]=_0x548fc7,this[_0x30518f(0x2ec)]=_0x24e3d2,this[_0x30518f(0x3c0)]=_0x148cad,this[_0x30518f(0x3ac)]=_0x46d4b4,this[_0x30518f(0x338)]=_0x58bc18;const {..._0xfce2c4}=this[_0x30518f(0x410)];this['_configService']['setConfig'](zo,_0xfce2c4);}[_0x2e5b1c(0x3d1)](){const _0x521deb=_0x2e5b1c;this[_0x521deb(0x25c)]();}[_0x2e5b1c(0x214)](){const _0x3e2354=_0x2e5b1c;this[_0x3e2354(0x1b4)]();}[_0x2e5b1c(0x25c)](){const _0x23808e=_0x2e5b1c;var _0x48c261,_0x1b1b00,_0x3e2ca0,_0x525de6;this[_0x23808e(0x3ac)]['has'](_0x1bd332)&&this[_0x23808e(0x2ec)][_0x23808e(0x30b)](_0x23808e(0x30f),_0x23808e(0x466));let _0x54615f=[[_0x1bd332,{'useClass':Nt}],[ae],[Ft],[_0x35343d],[Vs,{'useClass':Eo}],[oe],[D],[_0x4058ad],[Qe],[et],[Ze],[Bt],[st],[Ls],[Ke],[Us,{'useClass':(_0x1b1b00=(_0x48c261=this[_0x23808e(0x410)])==null?void 0x0:_0x48c261[_0x23808e(0x3af)])!=null?_0x1b1b00:Ct}],[_0x4a8183,{'useClass':_0x182506}],[_0x39a0ed,{'useClass':Pt}],[_0x136777,{'useClass':yt}],[_0x976a19,{'useClass':Mt}],[Ae],[We],[ye],[Ge],[fe]];(_0x3e2ca0=this['_config'])!=null&&_0x3e2ca0[_0x23808e(0x3e2)]&&_0x54615f[_0x23808e(0x2f1)]([it,{'useClass':nr}]),_0x54615f=_0x3a5a4e(_0x54615f,(_0x525de6=this[_0x23808e(0x410)])==null?void 0x0:_0x525de6[_0x23808e(0x481)]),_0x54615f['forEach'](_0x524ed8=>this[_0x23808e(0x3ac)][_0x23808e(0x47b)](_0x524ed8)),this['_initModules']();}[_0x2e5b1c(0x1b4)](){const _0x5d62b5=_0x2e5b1c;this[_0x5d62b5(0x294)](this['_renderManagerService']['registerRenderModule'](_0x3bf0d9['UNIVER_DOC'],[Ye])),this[_0x5d62b5(0x294)](this[_0x5d62b5(0x3c0)][_0x5d62b5(0x2a8)](_0x3bf0d9['UNIVER_SHEET'],[wt]));}['_initModules'](){const _0x374657=_0x2e5b1c;var _0x133172,_0x59e557;this['_injector']['get'](_0x35343d)[_0x374657(0x17b)]({'priority':0x14,'interceptor':_0x55c921({'maxParallel':0x6})}),(_0x133172=this[_0x374657(0x410)])!=null&&_0x133172[_0x374657(0x18c)]||this[_0x374657(0x3ac)]['get'](D)['disableLocalCache'](),(_0x59e557=this[_0x374657(0x410)])!=null&&_0x59e557['enableAuthServer']&&this[_0x374657(0x3ac)][_0x374657(0x18f)](st),this[_0x374657(0x3ac)][_0x374657(0x18f)](Ae),this['_injector'][_0x374657(0x250)](ye)&&this['_injector'][_0x374657(0x18f)](ye);}};ea(At,_0x2e5b1c(0x411),ta),At=Qo([_0x2f7773(_0x7a88b),Ve(0x1,_0x1cafe9),Ve(0x2,_0x363058),Ve(0x3,_0x5c7fae(_0x5d259e)),Ve(0x4,_0x401b9d)],At);export{$o as AUTHZ_URL_KEY,yt as AuthzIoHttpService,On as COLLAB_SUBMIT_CHANGESET_URL_KEY,gn as COLLAB_WEB_SOCKET_URL_KEY,Ae as CollaborationController,tt as CollaborationEntity,bt as CollaborationSession,ae as CollaborationSessionService,Ct as CollaborationSocketService,w as CollaborationStatus,to as CollaborationStatusDisplay,Ls as CommentService,We as DataLoaderController,ye as DesktopCollaborationStatusDisplayController,Tt as DocCollaborationEntity,pn as HEARTBEAT_INTERVAL_KEY,Ns as HEARTBEAT_TIMEOUT_KEY,Us as ICollaborationSocketService,Vs as IURLService,Mt as ImageIoService,Tn as LOCAL_CACHE_INTERVAL_KEY,wn as LOGIN_URL_KEY,D as LocalCacheService,In as RETRY_CONNECTING_INTERVAL_KEY,Cn as RETRY_CONNECTING_MAX_COUNT_KEY,mn as SEND_CHANGESET_TIMEOUT_KEY,_n as SNAPSHOT_SERVER_URL_KEY,dn as SNAPSHOT_URL_KEY,W as SessionStatus,jr as SheetCollabCursorShape,Rt as SheetCollaborationEntity,Pt as SnapshotServerOverHTTPService,At as UniverCollaborationClientPlugin,Eo as WebURLService,Nn as deserializeToCombResponse,yn as serializeCombRequest};