@univerjs-pro/collaboration-client 0.2.9 → 0.2.11
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 _0xa83ddf=_0xed79;(function(_0x16458c,_0x49daa5){const _0x3c29db=_0xed79,_0x36de65=_0x16458c();while(!![]){try{const _0x28c08b=-parseInt(_0x3c29db(0x2b4))/0x1*(parseInt(_0x3c29db(0x3f4))/0x2)+parseInt(_0x3c29db(0x35c))/0x3+-parseInt(_0x3c29db(0x395))/0x4*(parseInt(_0x3c29db(0x155))/0x5)+-parseInt(_0x3c29db(0x236))/0x6+parseInt(_0x3c29db(0x35b))/0x7*(parseInt(_0x3c29db(0x253))/0x8)+parseInt(_0x3c29db(0x2b5))/0x9+parseInt(_0x3c29db(0x2dc))/0xa*(parseInt(_0x3c29db(0x328))/0xb);if(_0x28c08b===_0x49daa5)break;else _0x36de65['push'](_0x36de65['shift']());}catch(_0xbe2c3b){_0x36de65['push'](_0x36de65['shift']());}}}(_0x28da,0x6a409));var Ys=Object[_0xa83ddf(0x3b2)],Ks=(_0x512695,_0x516e23,_0x4fd70f)=>_0x516e23 in _0x512695?Ys(_0x512695,_0x516e23,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4fd70f}):_0x512695[_0x516e23]=_0x4fd70f,_=(_0x329dd1,_0x139264,_0x36a716)=>Ks(_0x329dd1,typeof _0x139264!=_0xa83ddf(0x42a)?_0x139264+'':_0x139264,_0x36a716);import{Disposable as _0x54b342,toDisposable as _0x5bf8dd,UniverInstanceType as _0x54437b,Inject as _0x2854bc,UserManagerService as _0xee8ebd,IUniverInstanceService as _0x1b1ada,createIdentifier as _0x39166c,DisposableCollection as _0x207116,IConfigService as _0x5e7a12,ILogService as _0x31880b,ISnapshotServerService as _0x5c5b29,RxDisposable as _0x26114b,LocaleService as _0x501416,Injector as _0x28aed1,ILocalStorageService as _0x29e353,Tools as _0x146730,ICommandService as _0x291fa9,JSONX as _0x5f5d93,CommandType as _0x20ade7,IPermissionService as _0x524b2d,IUndoRedoService as _0x1e8ca5,sequenceExecute as _0x343a59,OnLifecycle as _0x3b619c,LifecycleStages as _0x13d562,Optional as _0x36b891,Rectangle as _0x405e44,ThemeService as _0x356051,useDependency as _0x535e2e,connectInjector as _0x1c7a3c,Workbook as _0x5340aa,textEncoder as _0x46e75c,b64DecodeUnicode as _0x2a1742,LocalUndoRedoService as _0x4430ad,IContextService as _0x330f45,COLORS as _0x2cb332,ColorKit as _0x57dab2,fromEventSubject as _0x4fb823,isInternalEditorID as _0xc1669d,Plugin as _0x5791fb,IAuthzIoService as _0x382e20,mergeOverrideWithDependencies as _0x5c52e3,DependentOn as _0x3f4163}from'@univerjs/core';import{SheetsSelectionsService as _0x3bd81d,SetSelectionsOperation as _0x5fa864,InsertSheetMutation as _0x295e2d,EmptyMutation as _0x2006d3,WorkbookEditablePermission as _0x2efdca,RefRangeService as _0x180f6f,EffectRefRangId as _0x23dfbc,handleIRemoveRow as _0x354afa,handleIRemoveCol as _0x3a1e0d,handleMoveRange as _0x32cf1a,handleInsertRow as _0x4f79a5,handleInsertRangeMoveRight as _0x4f72f8,handleInsertRangeMoveDown as _0x5751e9,handleInsertCol as _0x5db54b,handleDeleteRangeMoveUp as _0x3fdc0a,handleDeleteRangeMoveLeft as _0x59566e,runRefRangeMutations as _0x279243,SetWorksheetActivateCommand as _0x488c5e}from'@univerjs/sheets';import{MessageType as _0x403ffc}from'@univerjs/design';import{IBeforeCloseService as _0x498303,IMessageService as _0x192174,INotificationService as _0x55f36b,useObservable as _0x26cb93,BuiltInUIPart as _0x31b0de,IUIPartsService as _0x1588cc}from'@univerjs/ui';import{CollaborationEvent as _0x4e62f0,parseChangesetToProtocol as _0x5ab243,RevisionService as _0x4bf679,isTransformMutationFailure as _0x571c72,isTransformMutationsWithChangesetSuccess as _0x5d016b,ITransformService as _0x5b4b40,mapDocumentTypeToUniverType as _0x286a05,isTransformChangesetsSuccess as _0x110984,CompressMutationService as _0x1c9e18,parseProtocolChangeset as _0x2d3fa1,SnapshotService as _0x235fd7,isTransformMutationsWithChangesetFailure as _0x22b0cf,UniverCollaborationPlugin as _0x1e27ff}from'@univerjs-pro/collaboration';import{merge as _0x19b764,Subject as _0x27d684,BehaviorSubject as _0xbc7543,distinctUntilChanged as _0x59f62b,fromEvent as _0x78aa37,of as _0x2e1ce7,takeUntil as _0x4b5283,debounceTime as _0x5d9837,filter as _0x30916b,switchMap as _0x284752,combineLatest as _0x4ffd7b,shareReplay as _0x2fa1a3,mapTo as _0x3080b0,concatMap as _0xf4bbfb}from'rxjs';import{map as _0x255c5b,takeUntil as _0x15cb3a,take as _0x4bc9cf,filter as _0x4393c3,delay as _0x3db649,shareReplay as _0x28cb00,switchMap as _0x1f02e9,throttleTime as _0x133efc}from'rxjs/operators';import{IMEInputManagerService as _0x55de7b,TextSelectionManagerService as _0x4857f4,serializeDocRange as _0xfbe9ba,RichTextEditingMutation as _0x53c1cb,DocStateChangeManagerService as _0x2f98ea,SetTextSelectionsOperation as _0x49f40d,SetDocZoomRatioOperation as _0x5d1a0c,DocSkeletonManagerService as _0x4a13e2}from'@univerjs/docs';import{HTTPService as _0x3efcab,WebSocketService as _0x4a0f72,MergeInterceptorFactory as _0x222d3b,HTTPRequest as _0x4f3fd2,IHTTPImplementation as _0x54f7a8,XHRHTTPImplementation as _0x50ec1f,ThresholdInterceptorFactory as _0xcec304}from'@univerjs/network';import{ImageSourceType as _0x10d13d,ImageUploadStatusType as _0x1f46e1,IImageIoService as _0x3a43a5}from'@univerjs/drawing';import{Shape as _0x497bf1,Rect as _0x97f8c4,Vector2 as _0x32bb51,NodePositionConvertToCursor as _0x2ea5cc,isValidRectRange as _0x4b651b,NodePositionConvertToRectRange as _0x172ca8,getColor as _0x18174b,TEXT_RANGE_LAYER_INDEX as _0x480610,RegularPolygon as _0x37879a,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x2257dd,IRenderManagerService as _0x12e84d}from'@univerjs/engine-render';function _0xed79(_0x3dfcb2,_0x88c52d){const _0x28dab4=_0x28da();return _0xed79=function(_0xed79ec,_0x55d7ec){_0xed79ec=_0xed79ec-0x13d;let _0x5e51c2=_0x28dab4[_0xed79ec];return _0x5e51c2;},_0xed79(_0x3dfcb2,_0x88c52d);}import{deserializeRangeWithSheet as _0x4c55b7,serializeRangeWithSheet as _0x2fa69e}from'@univerjs/engine-formula';import _0x238659 from'lodash/debounce';import{VIEWPORT_KEY as _0x574d50,getCoordByCell as _0x487c58,getSheetObject as _0x5c1291,SheetSkeletonManagerService as _0x4ee093,SheetPermissionInitController as _0x174f49}from'@univerjs/sheets-ui';import _0x58584e,{forwardRef as _0x1300f6,useRef as _0x3deeb2,createElement as _0xedc958}from'react';import _0x46f863 from'clsx';import{IRemoteInstanceService as _0x467bd6}from'@univerjs/rpc';const an=_0xa83ddf(0x29b),cn='/universer-api/snapshot',hn=_0xa83ddf(0x171),_n='SEND_CHANGESET_TIMEOUT',ln=0x7d0,un=_0xa83ddf(0x24e),dn=_0xa83ddf(0x2cc),mn=_0xa83ddf(0x453),fn=0x7530,Os=_0xa83ddf(0x174),Ds=0x2710,gn=_0xa83ddf(0x24f),Sn=0x4e20,pn=_0xa83ddf(0x166),vn=0x3,In='LOCAL_CACHE_INTERVAL',En=0x3e8,Cn=_0xa83ddf(0x430),bn=_0xa83ddf(0x3b4),Rn='LOGIN_URL_KEY',Tn=_0xa83ddf(0x224);var Ps=(_0x1fb855=>(_0x1fb855[_0x1fb855['UNDEFINED']=0x0]=_0xa83ddf(0x3d2),_0x1fb855[_0x1fb855['OK']=0x1]='OK',_0x1fb855[_0x1fb855[_0xa83ddf(0x3eb)]=0x2]=_0xa83ddf(0x3eb),_0x1fb855[_0x1fb855[_0xa83ddf(0x3e5)]=0x3]=_0xa83ddf(0x3e5),_0x1fb855[_0x1fb855[_0xa83ddf(0x352)]=0x4]='NOT_FOUND',_0x1fb855[_0x1fb855[_0xa83ddf(0x209)]=0x5]='UNAUTHENTICATED',_0x1fb855[_0x1fb855[_0xa83ddf(0x20e)]=0x6]=_0xa83ddf(0x20e),_0x1fb855[_0x1fb855['INVALID_ARGUMENT']=0x7]=_0xa83ddf(0x36e),_0x1fb855[_0x1fb855[_0xa83ddf(0x2a9)]=0x8]=_0xa83ddf(0x2a9),_0x1fb855[_0x1fb855['COMPLETION_FINISHED']=0x9]='COMPLETION_FINISHED',_0x1fb855[_0x1fb855['CHANGESET_REVISION_CONFILICT']=0x1389]=_0xa83ddf(0x2f6),_0x1fb855[_0x1fb855[_0xa83ddf(0x43f)]=0x1771]=_0xa83ddf(0x43f),_0x1fb855[_0x1fb855[_0xa83ddf(0x1cf)]=0x1772]=_0xa83ddf(0x1cf),_0x1fb855[_0x1fb855[_0xa83ddf(0x1df)]=0x1b59]=_0xa83ddf(0x1df),_0x1fb855[_0x1fb855[_0xa83ddf(0x3b6)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x1fb855[_0x1fb855[_0xa83ddf(0x24a)]=0x1b5b]=_0xa83ddf(0x24a),_0x1fb855[_0x1fb855[_0xa83ddf(0x14d)]=0x1b5c]=_0xa83ddf(0x14d),_0x1fb855[_0x1fb855[_0xa83ddf(0x3b1)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x1fb855[_0x1fb855['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x1fb855[_0x1fb855[_0xa83ddf(0x2b9)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x1fb855[_0x1fb855[_0xa83ddf(0x39e)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x1fb855[_0x1fb855[_0xa83ddf(0x3de)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x1fb855[_0x1fb855[_0xa83ddf(0x23b)]=0x232d]=_0xa83ddf(0x23b),_0x1fb855[_0x1fb855[_0xa83ddf(0x25e)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x1fb855[_0x1fb855[_0xa83ddf(0x34c)]=0x2712]=_0xa83ddf(0x34c),_0x1fb855[_0x1fb855['YUUMI_RATE_OVER_LIMIT']=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x1fb855[_0x1fb855[_0xa83ddf(0x3e2)]=0x2714]=_0xa83ddf(0x3e2),_0x1fb855[_0x1fb855[_0xa83ddf(0x372)]=-0x1]=_0xa83ddf(0x372),_0x1fb855))(Ps||{}),H=(_0x18acf0=>(_0x18acf0[_0x18acf0[_0xa83ddf(0x282)]=0x0]='UNIVER_UNKNOWN',_0x18acf0[_0x18acf0[_0xa83ddf(0x1f2)]=0x1]=_0xa83ddf(0x1f2),_0x18acf0[_0x18acf0[_0xa83ddf(0x2ac)]=0x2]='UNIVER_SHEET',_0x18acf0[_0x18acf0[_0xa83ddf(0x459)]=0x3]=_0xa83ddf(0x459),_0x18acf0[_0x18acf0['UNIVER_PROJECT']=0x4]=_0xa83ddf(0x31e),_0x18acf0[_0x18acf0['UNRECOGNIZED']=-0x1]=_0xa83ddf(0x372),_0x18acf0))(H||{}),I=(_0x11cbd1=>(_0x11cbd1[_0x11cbd1[_0xa83ddf(0x34f)]=0x0]=_0xa83ddf(0x34f),_0x11cbd1[_0x11cbd1[_0xa83ddf(0x25a)]=0x1]=_0xa83ddf(0x25a),_0x11cbd1[_0x11cbd1[_0xa83ddf(0x1ec)]=0x2]=_0xa83ddf(0x1ec),_0x11cbd1[_0x11cbd1[_0xa83ddf(0x256)]=0x3]=_0xa83ddf(0x256),_0x11cbd1[_0x11cbd1[_0xa83ddf(0x3c9)]=0x4]=_0xa83ddf(0x3c9),_0x11cbd1[_0x11cbd1[_0xa83ddf(0x342)]=0x5]=_0xa83ddf(0x342),_0x11cbd1[_0x11cbd1['RECV']=0x6]='RECV',_0x11cbd1[_0x11cbd1[_0xa83ddf(0x372)]=-0x1]=_0xa83ddf(0x372),_0x11cbd1))(I||{}),jt=(_0x27f732=>(_0x27f732[_0x27f732[_0xa83ddf(0x277)]=0x0]=_0xa83ddf(0x277),_0x27f732[_0x27f732['OK']=0x1]='OK',_0x27f732[_0x27f732['FAIL']=0x2]=_0xa83ddf(0x30d),_0x27f732[_0x27f732[_0xa83ddf(0x372)]=-0x1]=_0xa83ddf(0x372),_0x27f732))(jt||{}),ws=(_0x5d97ff=>(_0x5d97ff[_0x5d97ff[_0xa83ddf(0x185)]=0x0]=_0xa83ddf(0x185),_0x5d97ff[_0x5d97ff[_0xa83ddf(0x341)]=0x1]='HttpImport',_0x5d97ff[_0x5d97ff[_0xa83ddf(0x17b)]=0x2]=_0xa83ddf(0x17b),_0x5d97ff[_0x5d97ff[_0xa83ddf(0x460)]=0x3]=_0xa83ddf(0x460),_0x5d97ff[_0x5d97ff['UnitSnapshot']=0x4]='UnitSnapshot',_0x5d97ff[_0x5d97ff[_0xa83ddf(0x372)]=-0x1]=_0xa83ddf(0x372),_0x5d97ff))(ws||{}),On=Object[_0xa83ddf(0x3b2)],Dn=Object[_0xa83ddf(0x190)],Pn=(_0x24d86f,_0x2cb9e5,_0x4c26a1,_0xba8d63)=>{const _0xcf837=_0xa83ddf;for(var _0x3eef18=_0xba8d63>0x1?void 0x0:_0xba8d63?Dn(_0x2cb9e5,_0x4c26a1):_0x2cb9e5,_0x602e48=_0x24d86f[_0xcf837(0x249)]-0x1,_0x58b436;_0x602e48>=0x0;_0x602e48--)(_0x58b436=_0x24d86f[_0x602e48])&&(_0x3eef18=(_0xba8d63?_0x58b436(_0x2cb9e5,_0x4c26a1,_0x3eef18):_0x58b436(_0x3eef18))||_0x3eef18);return _0xba8d63&&_0x3eef18&&On(_0x2cb9e5,_0x4c26a1,_0x3eef18),_0x3eef18;},Qt=(_0x4bf021,_0x16c56a)=>(_0x2ec4e7,_0x22ab2f)=>_0x16c56a(_0x2ec4e7,_0x22ab2f,_0x4bf021);let ne=class extends _0x54b342{constructor(_0x2d306e,_0x1a7acc){const _0x1d12a4=_0xa83ddf;super(),_(this,_0x1d12a4(0x207),new Map()),(this[_0x1d12a4(0x44a)]=_0x2d306e,this[_0x1d12a4(0x2bb)]=_0x1a7acc,this[_0x1d12a4(0x46f)](_0x5bf8dd(_0x19b764(this[_0x1d12a4(0x44a)]['getTypeOfUnitDisposed$'](_0x54437b[_0x1d12a4(0x2ac)])[_0x1d12a4(0x2e5)](_0x255c5b(_0x2f57bf=>_0x2f57bf[_0x1d12a4(0x27a)]())),this[_0x1d12a4(0x44a)][_0x1d12a4(0x331)](_0x54437b[_0x1d12a4(0x1f2)])[_0x1d12a4(0x2e5)](_0x255c5b(_0x5409b7=>_0x5409b7[_0x1d12a4(0x27a)]())),this[_0x1d12a4(0x44a)][_0x1d12a4(0x331)](_0x54437b[_0x1d12a4(0x459)])['pipe'](_0x255c5b(_0xef1436=>_0xef1436[_0x1d12a4(0x27a)]())))[_0x1d12a4(0x222)](_0x52ebe3=>this[_0x1d12a4(0x3cd)](_0x52ebe3)))));}[_0xa83ddf(0x3ec)](_0x30cab5){const _0x2bea83=_0xa83ddf;this[_0x2bea83(0x2bb)][_0x2bea83(0x3ec)](_0x30cab5);}[_0xa83ddf(0x27f)](){const _0x4746fa=_0xa83ddf;return this['_userManagerService'][_0x4746fa(0x27f)]();}['updateMember'](_0x2b4362,_0x384125){const _0x252303=_0xa83ddf;let _0x19a4bb=this['_roomMembers'][_0x252303(0x441)](_0x2b4362);_0x19a4bb||(_0x19a4bb=new wn(),this[_0x252303(0x207)][_0x252303(0x3fb)](_0x2b4362,_0x19a4bb)),_0x19a4bb[_0x252303(0x2a6)](_0x384125);}['removeMember'](_0x54eac4,_0x2a0017){const _0x49caad=_0xa83ddf,_0x1cb9e0=this[_0x49caad(0x207)][_0x49caad(0x441)](_0x54eac4);_0x1cb9e0&&_0x1cb9e0[_0x49caad(0x27b)](_0x2a0017);}[_0xa83ddf(0x3d3)](_0x533121){const _0x23079f=_0xa83ddf;return this[_0x23079f(0x207)][_0x23079f(0x441)](_0x533121);}['getMember'](_0x32bbe1,_0xc8afd7){const _0x91d70e=_0xa83ddf,_0xdac921=this[_0x91d70e(0x207)]['get'](_0x32bbe1);if(_0xdac921)return _0xdac921[_0x91d70e(0x2c2)](_0xc8afd7);}[_0xa83ddf(0x3cd)](_0x2da234){const _0x4800a3=_0xa83ddf,_0x4acc8c=this[_0x4800a3(0x207)][_0x4800a3(0x441)](_0x2da234);_0x4acc8c&&(_0x4acc8c['dispose'](),this['_roomMembers']['delete'](_0x2da234));}[_0xa83ddf(0x471)](){const _0x27afce=_0xa83ddf;this[_0x27afce(0x207)][_0x27afce(0x3e6)](_0x334d91=>_0x334d91[_0x27afce(0x471)]()),this[_0x27afce(0x207)][_0x27afce(0x365)]();}};ne=Pn([Qt(0x0,_0x1b1ada),Qt(0x1,_0x2854bc(_0xee8ebd))],ne);class wn extends _0x54b342{constructor(){const _0x36cb74=_0xa83ddf;super(...arguments),_(this,_0x36cb74(0x42d),new Map());}[_0xa83ddf(0x471)](){const _0x4d2386=_0xa83ddf;this['_members'][_0x4d2386(0x365)]();}[_0xa83ddf(0x2a6)](_0x43d4ee){const _0x3ade9d=_0xa83ddf;this[_0x3ade9d(0x42d)]['set'](_0x43d4ee[_0x3ade9d(0x469)],_0x43d4ee);}['removeMember'](_0xc998e5){const _0x30ab07=_0xa83ddf;this[_0x30ab07(0x42d)]['delete'](_0xc998e5);}[_0xa83ddf(0x2c2)](_0x55c574){const _0x2f6b03=_0xa83ddf;return this[_0x2f6b03(0x42d)]['get'](_0x55c574);}}function Nn(_0x297502){const _0x283312=_0xa83ddf;var _0x43954c,_0x47ff79,_0x4272c8,_0x4718f3;const _0x193b55=_0x297502[_0x283312(0x2cf)],_0x2eb549=JSON[_0x283312(0x2c8)](_0x193b55);switch(_0x2eb549[_0x283312(0x413)]){case I[_0x283312(0x342)]:case I[_0x283312(0x25a)]:{const _0x1c936b=_0x2eb549[_0x283312(0x1db)];return{..._0x2eb549,'data':_0x1c936b,'cmd':_0x2eb549[_0x283312(0x413)]};}case I['JOIN']:{const _0x75ecf6=_0x2eb549[_0x283312(0x415)];return{..._0x2eb549,'data':_0x75ecf6,'cmd':_0x2eb549[_0x283312(0x413)]};}case I[_0x283312(0x417)]:{const _0x85ac23=_0x2eb549[_0x283312(0x2da)];switch(_0x85ac23[_0x283312(0x217)]){case _0x4e62f0[_0x283312(0x3df)]:return{..._0x2eb549,'data':{..._0x85ac23,'data':(_0x43954c=_0x85ac23[_0x283312(0x35d)])==null?void 0x0:_0x43954c['cs']},'cmd':_0x2eb549['cmd']};case _0x4e62f0[_0x283312(0x3ac)]:return{..._0x2eb549,'data':{..._0x85ac23,'data':(_0x47ff79=_0x85ac23[_0x283312(0x18f)])==null?void 0x0:_0x47ff79['cs']},'cmd':_0x2eb549[_0x283312(0x413)]};case _0x4e62f0['NEW_CHANGESETS']:return{..._0x2eb549,'data':{..._0x85ac23,'data':(_0x4272c8=_0x85ac23[_0x283312(0x396)])==null?void 0x0:_0x4272c8['cs']},'cmd':_0x2eb549[_0x283312(0x413)]};case _0x4e62f0[_0x283312(0x22d)]:return{..._0x2eb549,'data':{..._0x85ac23,'data':(_0x4718f3=_0x85ac23['csRejEvent'])==null?void 0x0:_0x4718f3['cs']},'cmd':_0x2eb549[_0x283312(0x413)]};case _0x4e62f0[_0x283312(0x15f)]:return{..._0x2eb549,'data':{..._0x85ac23,'data':_0x85ac23[_0x283312(0x398)]},'cmd':_0x2eb549[_0x283312(0x413)]};case _0x4e62f0[_0x283312(0x218)]:return{..._0x2eb549,'data':{..._0x85ac23,'data':_0x85ac23[_0x283312(0x1fa)]},'cmd':_0x2eb549[_0x283312(0x413)]};case _0x4e62f0['USERS_LEAVE']:return{..._0x2eb549,'data':{..._0x85ac23,'data':_0x85ac23['leaveEvent']},'cmd':_0x2eb549[_0x283312(0x413)]};case _0x4e62f0['LIVESHARE_NEW_HOST']:return{..._0x2eb549,'data':{..._0x85ac23,'data':_0x85ac23[_0x283312(0x353)]},'cmd':_0x2eb549[_0x283312(0x413)]};case _0x4e62f0[_0x283312(0x378)]:case _0x4e62f0[_0x283312(0x30c)]:return{..._0x2eb549,'data':{..._0x85ac23,'data':_0x85ac23[_0x283312(0x3ef)]},'cmd':_0x2eb549[_0x283312(0x413)]};case _0x4e62f0[_0x283312(0x26c)]:return{..._0x2eb549,'data':{..._0x85ac23,'data':_0x85ac23[_0x283312(0x353)]},'cmd':_0x2eb549[_0x283312(0x413)]};case _0x4e62f0[_0x283312(0x25b)]:return{..._0x2eb549,'data':_0x85ac23,'cmd':_0x2eb549[_0x283312(0x413)]};case _0x4e62f0[_0x283312(0x3bc)]:return{..._0x2eb549,'data':{..._0x85ac23,'data':_0x85ac23['commentUpdateEvent']},'cmd':_0x2eb549[_0x283312(0x413)]};case _0x4e62f0[_0x283312(0x223)]:return{..._0x2eb549,'data':{..._0x85ac23,'data':_0x85ac23['updatePermissionObjEvent']},'cmd':_0x2eb549['cmd']};case _0x4e62f0['SHOULD_CLOSE_CONN']:return{..._0x2eb549,'data':{..._0x85ac23,'data':_0x85ac23['shouldCloseConn']},'cmd':_0x2eb549[_0x283312(0x413)]};default:return _0x2eb549;}}default:return _0x2eb549;}}function Mn(_0x50c07d){const _0x42fdc6=_0xa83ddf;switch(_0x50c07d[_0x42fdc6(0x413)]){case I['HEARTBEAT']:case I[_0x42fdc6(0x25a)]:return JSON[_0x42fdc6(0x284)]({'cmd':_0x50c07d[_0x42fdc6(0x413)],'routeKey':_0x50c07d['routeKey']});case I[_0x42fdc6(0x3c9)]:{let _0x3a9356;switch(_0x50c07d[_0x42fdc6(0x2cf)][_0x42fdc6(0x217)]){case _0x4e62f0[_0x42fdc6(0x15f)]:{_0x3a9356={'eventID':_0x4e62f0[_0x42fdc6(0x15f)],'updateCursorEvent':_0x50c07d[_0x42fdc6(0x2cf)][_0x42fdc6(0x2cf)]};break;}case _0x4e62f0[_0x42fdc6(0x3f2)]:{_0x3a9356={'eventID':_0x4e62f0[_0x42fdc6(0x3f2)],'leaveEvent':_0x50c07d['data'][_0x42fdc6(0x2cf)]};break;}case _0x4e62f0['USERS_ENTER']:{_0x3a9356={'eventID':_0x4e62f0[_0x42fdc6(0x218)],'joinEvent':_0x50c07d[_0x42fdc6(0x2cf)]['data']};break;}case _0x4e62f0['LIVESHARE_NEW_HOST']:{_0x3a9356={'eventID':_0x4e62f0[_0x42fdc6(0x2cd)],'liveShareNewHost':_0x50c07d[_0x42fdc6(0x2cf)][_0x42fdc6(0x2cf)]};break;}case _0x4e62f0[_0x42fdc6(0x30c)]:{_0x3a9356={'eventID':_0x4e62f0[_0x42fdc6(0x30c)],'liveShareOperation':_0x50c07d[_0x42fdc6(0x2cf)][_0x42fdc6(0x2cf)]};break;}case _0x4e62f0[_0x42fdc6(0x26c)]:{_0x3a9356={'eventID':_0x4e62f0['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x50c07d['data'][_0x42fdc6(0x2cf)]};break;}case _0x4e62f0[_0x42fdc6(0x269)]:{_0x3a9356={'eventID':_0x4e62f0[_0x42fdc6(0x269)],'liveShareRequestHost':_0x50c07d[_0x42fdc6(0x2cf)]['data']};break;}case _0x4e62f0['LIVESHARE_FETCH_OPERATIONS']:{_0x3a9356={'eventID':_0x4e62f0[_0x42fdc6(0x378)]};break;}default:_0x3a9356={'eventID':_0x50c07d[_0x42fdc6(0x2cf)][_0x42fdc6(0x217)]};}return JSON[_0x42fdc6(0x284)]({'cmd':_0x50c07d['cmd'],'routeKey':_0x50c07d[_0x42fdc6(0x186)],'collaMsg':_0x3a9356});}case I[_0x42fdc6(0x1ec)]:return JSON['stringify']({'cmd':_0x50c07d[_0x42fdc6(0x413)],'routeKey':_0x50c07d['routeKey'],'joinReq':_0x50c07d['data']});case I[_0x42fdc6(0x256)]:return JSON['stringify']({'cmd':_0x50c07d[_0x42fdc6(0x413)],'routeKey':_0x50c07d[_0x42fdc6(0x186)],'leaveReq':_0x50c07d['data']});default:throw new Error(_0x42fdc6(0x182));}}var An=Object[_0xa83ddf(0x3b2)],Un=Object[_0xa83ddf(0x190)],yn=(_0x3637cf,_0x347038,_0xcc0c3b,_0x213d2c)=>{for(var _0x41d220=_0x213d2c>0x1?void 0x0:_0x213d2c?Un(_0x347038,_0xcc0c3b):_0x347038,_0x32d9b8=_0x3637cf['length']-0x1,_0xc3f03d;_0x32d9b8>=0x0;_0x32d9b8--)(_0xc3f03d=_0x3637cf[_0x32d9b8])&&(_0x41d220=(_0x213d2c?_0xc3f03d(_0x347038,_0xcc0c3b,_0x41d220):_0xc3f03d(_0x41d220))||_0x41d220);return _0x213d2c&&_0x41d220&&An(_0x347038,_0xcc0c3b,_0x41d220),_0x41d220;},Te=(_0x13683a,_0x1297b)=>(_0x3a73b2,_0x121c27)=>_0x1297b(_0x3a73b2,_0x121c27,_0x13683a);const Ns=_0x39166c(_0xa83ddf(0x45f));function Ln(_0x574eac,_0x1498f2,_0x219e16){const _0x54d4ed=_0xa83ddf;return _0x574eac+'/'+_0x1498f2+_0x54d4ed(0x247)+_0x219e16+_0x54d4ed(0x47a);}let vt=class{constructor(_0x42f14b,_0x2cabde,_0x23c75d,_0x353474,_0xe4b73f){const _0x5b2409=_0xa83ddf;this['_http']=_0x42f14b,this[_0x5b2409(0x203)]=_0x2cabde,this[_0x5b2409(0x442)]=_0x23c75d,this[_0x5b2409(0x33d)]=_0x353474,this[_0x5b2409(0x1bb)]=_0xe4b73f;}['createSocket'](_0x2363f4){const _0xcd43e9=_0xa83ddf,_0x1752de=this['_ws'][_0xcd43e9(0x3b8)](_0x2363f4);if(!_0x1752de)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x5515ab=new _0x207116(),_0x54c1a0=new _0x27d684();_0x5515ab[_0xcd43e9(0x2f8)](_0x5bf8dd(_0x1752de[_0xcd43e9(0x170)][_0xcd43e9(0x222)](_0x1baf2d=>_0x54c1a0[_0xcd43e9(0x311)](_0x1baf2d)))),_0x5515ab[_0xcd43e9(0x2f8)](_0x5bf8dd(()=>_0x54c1a0['complete']()));const _0x58713=new _0x27d684();_0x5515ab[_0xcd43e9(0x2f8)](_0x5bf8dd(_0x1752de[_0xcd43e9(0x332)]['subscribe'](_0x57d7fd=>_0x58713[_0xcd43e9(0x311)](_0x57d7fd)))),_0x5515ab[_0xcd43e9(0x2f8)](_0x5bf8dd(()=>_0x58713[_0xcd43e9(0x308)]()));const _0x45e438=new _0x27d684();_0x5515ab[_0xcd43e9(0x2f8)](_0x5bf8dd(_0x1752de[_0xcd43e9(0x414)]['subscribe'](_0x3eedae=>{const _0x479422=_0xcd43e9,_0x3e9dff=Nn(_0x3eedae);_0x45e438[_0x479422(0x311)](_0x3e9dff);}))),_0x5515ab['add'](_0x5bf8dd(()=>_0x45e438[_0xcd43e9(0x308)]()));const _0x37977a=()=>{const _0x4ebb04=_0xcd43e9;_0x58713[_0x4ebb04(0x311)](new Event(_0x4ebb04(0x18e))),_0x54c1a0['next'](new CloseEvent(_0x4ebb04(0x18e))),_0x1371c2[_0x4ebb04(0x2af)]();},_0x1371c2={'memberID':'','close$':_0x54c1a0[_0xcd43e9(0x473)](),'error$':_0x58713['asObservable'](),'open$':_0x1752de[_0xcd43e9(0x38f)],'message$':_0x45e438['asObservable'](),'send':_0x22824f=>{const _0x82be32=_0xcd43e9;if(_0x22824f[_0x82be32(0x413)]===I[_0x82be32(0x3c9)]){if(_0x22824f['data'][_0x82be32(0x217)]===_0x4e62f0[_0x82be32(0x2c7)]){this['_submitChangeset'](_0x1371c2,_0x22824f[_0x82be32(0x2cf)])[_0x82be32(0x3c3)](_0x21765a=>{const _0x1e7cae=_0x82be32;this['_logService'][_0x1e7cae(0x44e)](_0x21765a),_0x37977a();});return;}if(_0x22824f[_0x82be32(0x2cf)]['eventID']===_0x4e62f0[_0x82be32(0x316)]){const _0x3d2b5d=_0x22824f[_0x82be32(0x2cf)];this[_0x82be32(0x291)](_0x3d2b5d)[_0x82be32(0x450)](_0x1031d5=>{const _0x49469d=_0x82be32;_0x45e438['next']({'cmd':I[_0x49469d(0x417)],'code':jt['OK'],'routeKey':_0x3d2b5d[_0x49469d(0x2cf)][_0x49469d(0x452)],'routeType':'','data':{'eventID':_0x4e62f0[_0x49469d(0x1a7)],'data':{'changesets':_0x1031d5}}});})[_0x82be32(0x3c3)](_0x23bb7c=>{const _0x378930=_0x82be32;this[_0x378930(0x33d)][_0x378930(0x44e)](_0x23bb7c),_0x37977a();});return;}}_0x1752de[_0x82be32(0x14f)](Mn(_0x22824f));},'close':()=>{const _0x5f2f38=_0xcd43e9;_0x1752de['close'](),_0x5515ab[_0x5f2f38(0x471)]();}};return _0x1371c2;}async[_0xa83ddf(0x33f)](_0x17cbe0,_0x286307){const _0x3e0f43=_0xa83ddf;var _0x3a8db2;const {unitType:_0x540b6f,unitID:_0x4c2f8e,changeset:_0x5075fb}=_0x286307[_0x3e0f43(0x2cf)],_0x686977={'unitID':_0x4c2f8e,'memberID':_0x17cbe0[_0x3e0f43(0x469)],'type':_0x540b6f,'changeset':_0x5ab243(_0x5075fb)},_0x1ee61f=Ln((_0x3a8db2=this[_0x3e0f43(0x442)]['getConfig'](Cn))!=null?_0x3a8db2:bn,_0x540b6f,_0x4c2f8e);try{await this[_0x3e0f43(0x32b)]['post'](_0x1ee61f,{'body':_0x686977});}catch(_0x52eeac){throw this[_0x3e0f43(0x33d)]['error'](_0x3e0f43(0x2e7),_0x3e0f43(0x2eb)),_0x52eeac;}}async[_0xa83ddf(0x291)](_0x3bafae){const _0xe6d32e=_0xa83ddf,{unitID:_0x3cb5b0,from:_0x3ea0b0,to:_0xf6a81c,unitType:_0x34a739}=_0x3bafae[_0xe6d32e(0x2cf)];return(await this[_0xe6d32e(0x1bb)][_0xe6d32e(0x21e)]({'metadata':void 0x0},{'unitID':_0x3cb5b0,'type':_0x34a739,'from':_0x3ea0b0,'to':_0xf6a81c}))[_0xe6d32e(0x263)];}};vt=yn([Te(0x0,_0x2854bc(_0x3efcab)),Te(0x1,_0x2854bc(_0x4a0f72)),Te(0x2,_0x5e7a12),Te(0x3,_0x31880b),Te(0x4,_0x5c5b29)],vt);class Ms{constructor(){const _0x3d51d8=_0xa83ddf;_(this,'_commentUpdate$',new _0x27d684()),_(this,_0x3d51d8(0x3a7),this[_0x3d51d8(0x3d4)][_0x3d51d8(0x473)]());}[_0xa83ddf(0x23e)](_0x5bb6ec){const _0x5416f1=_0xa83ddf;this[_0x5416f1(0x3d4)][_0x5416f1(0x311)](_0x5bb6ec);}}var $n=Object[_0xa83ddf(0x3b2)],jn=Object[_0xa83ddf(0x190)],As=(_0x4d3fd7,_0xf9a89a,_0x2dc97a,_0x208ac7)=>{for(var _0x3d7220=_0x208ac7>0x1?void 0x0:_0x208ac7?jn(_0xf9a89a,_0x2dc97a):_0xf9a89a,_0x2be658=_0x4d3fd7['length']-0x1,_0x49c6bb;_0x2be658>=0x0;_0x2be658--)(_0x49c6bb=_0x4d3fd7[_0x2be658])&&(_0x3d7220=(_0x208ac7?_0x49c6bb(_0xf9a89a,_0x2dc97a,_0x3d7220):_0x49c6bb(_0x3d7220))||_0x3d7220);return _0x208ac7&&_0x3d7220&&$n(_0xf9a89a,_0x2dc97a,_0x3d7220),_0x3d7220;},A=(_0x19f217,_0x33529f)=>(_0x386e71,_0x3c0008)=>_0x33529f(_0x386e71,_0x3c0008,_0x19f217),fe=(_0x3188a9=>(_0x3188a9[_0x3188a9[_0xa83ddf(0x43d)]=0x0]=_0xa83ddf(0x43d),_0x3188a9[_0x3188a9[_0xa83ddf(0x34d)]=0x1]=_0xa83ddf(0x34d),_0x3188a9[_0x3188a9[_0xa83ddf(0x42e)]=0x2]='OFFLINE',_0x3188a9[_0x3188a9[_0xa83ddf(0x310)]=0x3]=_0xa83ddf(0x310),_0x3188a9))(fe||{});let It=class extends _0x26114b{constructor(_0x18f173,_0x296739,_0x7cd486,_0x321117,_0x4feca1,_0x4d40af,_0x3c3bb9,_0x4301a1,_0x29d78b){const _0x32e137=_0xa83ddf;super(),_(this,_0x32e137(0x146),new _0xbc7543(0x0)),_(this,_0x32e137(0x409),this[_0x32e137(0x146)][_0x32e137(0x473)]()),_(this,'_event$',new _0x27d684()),_(this,'event$',this[_0x32e137(0x408)][_0x32e137(0x473)]()),_(this,'_socket'),_(this,'_socketMessageSubscription'),_(this,_0x32e137(0x379)),(this['_unitID']=_0x18f173,this[_0x32e137(0x33d)]=_0x7cd486,this[_0x32e137(0x2e1)]=_0x321117,this[_0x32e137(0x19d)]=_0x4feca1,this['_configService']=_0x4d40af,this[_0x32e137(0x46b)]=_0x3c3bb9,this[_0x32e137(0x13e)]=_0x4301a1,this[_0x32e137(0x1b0)]=_0x29d78b,_0x296739[_0x32e137(0x2e5)](_0x15cb3a(this[_0x32e137(0x22b)]))[_0x32e137(0x222)](_0x4fb637=>{const _0xc87a96=_0x32e137;var _0x356494;typeof _0x4fb637>'u'||(this[_0xc87a96(0x39f)]=_0x4fb637,_0x4fb637?(this['_joinRoom'](_0x4fb637),this[_0xc87a96(0x1aa)]=this['_socket'][_0xc87a96(0x414)][_0xc87a96(0x222)](_0x32f15d=>{const _0x41c2b8=_0xc87a96;_0x32f15d['routeKey']===this['_unitID']&&this[_0x41c2b8(0x187)](_0x32f15d);})):(this['_sessionStatus$'][_0xc87a96(0x311)](0x2),(_0x356494=this[_0xc87a96(0x1aa)])==null||_0x356494[_0xc87a96(0x23d)](),this[_0xc87a96(0x1aa)]=null));}),this['disposeWithMe'](this[_0x32e137(0x2e1)]['registerOnClose'](()=>{const _0x5b1ca0=_0x32e137;var _0x3a25bf;(_0x3a25bf=this[_0x5b1ca0(0x39f)])==null||_0x3a25bf[_0x5b1ca0(0x14f)]({'cmd':I[_0x5b1ca0(0x256)],'data':{'roomID':this[_0x5b1ca0(0x44b)]}});})));}get[_0xa83ddf(0x250)](){const _0x1b875f=_0xa83ddf;return this[_0x1b875f(0x146)][_0x1b875f(0x1ac)]();}[_0xa83ddf(0x1fc)](){const _0x21a56e=_0xa83ddf;var _0x492570,_0x5c91f8;return(_0x5c91f8=(_0x492570=this['_socket'])==null?void 0x0:_0x492570[_0x21a56e(0x469)])!=null?_0x5c91f8:null;}[_0xa83ddf(0x471)](){const _0x3ec2ec=_0xa83ddf;super[_0x3ec2ec(0x471)](),this[_0x3ec2ec(0x22b)]['next'](),this[_0x3ec2ec(0x22b)][_0x3ec2ec(0x308)]();}[_0xa83ddf(0x2af)](){const _0x1f59a8=_0xa83ddf;var _0x482bd9,_0x529aba;(_0x482bd9=this[_0x1f59a8(0x39f)])==null||_0x482bd9[_0x1f59a8(0x14f)]({'cmd':I[_0x1f59a8(0x256)],'data':{'roomID':this[_0x1f59a8(0x44b)]}}),this[_0x1f59a8(0x408)][_0x1f59a8(0x308)](),this['_sessionStatus$'][_0x1f59a8(0x308)](),(_0x529aba=this[_0x1f59a8(0x39f)])==null||_0x529aba[_0x1f59a8(0x2af)](),this[_0x1f59a8(0x471)]();}['_onCombEvent'](_0x8db198){const _0x3d4df8=_0xa83ddf;_0x8db198['cmd']===I[_0x3d4df8(0x1ec)]?this[_0x3d4df8(0x40c)](_0x8db198):_0x8db198[_0x3d4df8(0x413)]===I[_0x3d4df8(0x417)]&&this['_onRecvEvent'](_0x8db198);}[_0xa83ddf(0x411)](_0x22bc2){const _0x58c2c4=_0xa83ddf;this[_0x58c2c4(0x146)][_0x58c2c4(0x311)](0x1),_0x22bc2[_0x58c2c4(0x14f)]({'cmd':I[_0x58c2c4(0x1ec)],'routeKey':this[_0x58c2c4(0x44b)],'routeType':'','data':{'rooms':[{'roomID':this[_0x58c2c4(0x44b)]}]}});}[_0xa83ddf(0x40c)](_0x55f0f1){const _0x1fd6a7=_0xa83ddf;var _0x516f23;if(_0x55f0f1[_0x1fd6a7(0x3ee)]===jt[_0x1fd6a7(0x30d)]){this['_messageService'][_0x1fd6a7(0x178)]({'type':_0x403ffc[_0x1fd6a7(0x407)],'content':this[_0x1fd6a7(0x46b)]['t'](_0x1fd6a7(0x1b3))}),this['_sessionStatus$']['next'](0x2);return;}this[_0x1fd6a7(0x146)]['next'](0x3);const _0x35ed62=(_0x516f23=_0x55f0f1[_0x1fd6a7(0x2cf)][_0x1fd6a7(0x220)][this['_unitID']])==null?void 0x0:_0x516f23[_0x1fd6a7(0x3c5)];_0x35ed62&&_0x35ed62['forEach'](_0x39ebe7=>this[_0x1fd6a7(0x13e)][_0x1fd6a7(0x2a6)](this[_0x1fd6a7(0x44b)],_0x39ebe7));}[_0xa83ddf(0x2d5)](_0x17a90f){const _0x21ffb0=_0xa83ddf;try{const _0x154209=_0x17a90f['data'];switch(_0x154209[_0x21ffb0(0x217)]){case _0x4e62f0['USERS_ENTER']:this[_0x21ffb0(0x213)](_0x154209),this['_event$'][_0x21ffb0(0x311)](_0x154209);break;case _0x4e62f0[_0x21ffb0(0x3f2)]:this[_0x21ffb0(0x35a)](_0x154209),this[_0x21ffb0(0x408)][_0x21ffb0(0x311)](_0x154209);break;case _0x4e62f0[_0x21ffb0(0x3ac)]:this[_0x21ffb0(0x237)](),this[_0x21ffb0(0x408)][_0x21ffb0(0x311)](_0x154209);break;case _0x4e62f0['MSG_FOR_ERROR']:this[_0x21ffb0(0x33d)]['error'](_0x21ffb0(0x1e6)+JSON['stringify'](_0x154209)),this[_0x21ffb0(0x408)][_0x21ffb0(0x311)](_0x154209);break;case _0x4e62f0[_0x21ffb0(0x3bc)]:this['_commentService']['onCommentUpdate'](_0x154209[_0x21ffb0(0x2cf)]),this[_0x21ffb0(0x408)][_0x21ffb0(0x311)](_0x154209);break;default:this[_0x21ffb0(0x408)]['next'](_0x154209);}}catch(_0x408bd9){this[_0x21ffb0(0x33d)][_0x21ffb0(0x44e)](_0x408bd9,_0x17a90f);}}[_0xa83ddf(0x213)](_0x2c9e74){const _0x45c09f=_0xa83ddf;this[_0x45c09f(0x13e)][_0x45c09f(0x2a6)](this[_0x45c09f(0x44b)],_0x2c9e74[_0x45c09f(0x2cf)]);}[_0xa83ddf(0x35a)](_0x3e39a8){const _0x32ed55=_0xa83ddf;this[_0x32ed55(0x13e)][_0x32ed55(0x27b)](this[_0x32ed55(0x44b)],_0x3e39a8['data'][_0x32ed55(0x469)]);}async[_0xa83ddf(0x14f)](_0x21448d,_0x1a099a){const _0x3c757b=_0xa83ddf;if(this[_0x3c757b(0x250)]!==0x3||!this[_0x3c757b(0x39f)])throw new Error(_0x3c757b(0x27d));try{_0x21448d[_0x3c757b(0x217)]===_0x4e62f0[_0x3c757b(0x468)]&&this[_0x3c757b(0x2f5)](),this['_socket'][_0x3c757b(0x14f)]({'cmd':I[_0x3c757b(0x3c9)],'routeKey':_0x1a099a,'routeType':'','data':_0x21448d});}catch(_0x1a6706){this['_logService'][_0x3c757b(0x44e)](_0x1a6706);}}[_0xa83ddf(0x2f5)](){const _0x5bdeec=_0xa83ddf;var _0x40961d;this[_0x5bdeec(0x379)]=window[_0x5bdeec(0x1f9)](()=>{const _0x332b34=_0x5bdeec;this[_0x332b34(0x379)]=null,this[_0x332b34(0x19d)][_0x332b34(0x178)]({'type':_0x403ffc[_0x332b34(0x1e5)],'content':this[_0x332b34(0x46b)]['t']('session.collaboration-timeout')});},(_0x40961d=this['_configService']['getConfig'](Os))!=null?_0x40961d:Ds);}[_0xa83ddf(0x237)](){const _0x3ac2a8=_0xa83ddf;this[_0x3ac2a8(0x379)]&&(clearTimeout(this['_collaborationTimeoutTimer']),this[_0x3ac2a8(0x379)]=null);}};It=As([A(0x2,_0x31880b),A(0x3,_0x498303),A(0x4,_0x192174),A(0x5,_0x5e7a12),A(0x6,_0x2854bc(_0x501416)),A(0x7,_0x2854bc(ne)),A(0x8,_0x2854bc(Ms))],It);let pe=class extends _0x54b342{constructor(_0x3449f3,_0x3d3801,_0x1afb60,_0x26e819,_0x21ab74,_0x293da1){const _0x241734=_0xa83ddf;super(),_(this,_0x241734(0x1de),new _0xbc7543(void 0x0)),_(this,'_sessions',new Map()),_(this,_0x241734(0x211),new _0xbc7543(0x0)),_(this,_0x241734(0x3c1),this[_0x241734(0x211)][_0x241734(0x473)]()),_(this,'_socketReady',!0x1),_(this,_0x241734(0x1c7)),_(this,_0x241734(0x2b0)),_(this,_0x241734(0x24b)),_(this,_0x241734(0x424),0x0),(this['_injector']=_0x3449f3,this[_0x241734(0x46b)]=_0x3d3801,this[_0x241734(0x19d)]=_0x1afb60,this['_logService']=_0x26e819,this[_0x241734(0x442)]=_0x21ab74,this[_0x241734(0x37f)]=_0x293da1);}get[_0xa83ddf(0x39f)](){const _0x215f4a=_0xa83ddf;return this[_0x215f4a(0x1de)][_0x215f4a(0x1ac)]();}[_0xa83ddf(0x471)](){const _0x2d694a=_0xa83ddf;super['dispose'](),this[_0x2d694a(0x297)]['forEach'](_0x3e0227=>_0x3e0227[_0x2d694a(0x471)]()),this[_0x2d694a(0x297)]['clear'](),this[_0x2d694a(0x211)]['complete']();}async['requireSession'](_0x3fd5f4){const _0x26f0c9=_0xa83ddf;if(this['_sessions'][_0x26f0c9(0x437)](_0x3fd5f4))return this[_0x26f0c9(0x297)]['get'](_0x3fd5f4);this[_0x26f0c9(0x29d)]();const _0x4b1f67=this['_injector'][_0x26f0c9(0x274)](It,_0x3fd5f4,this[_0x26f0c9(0x1de)][_0x26f0c9(0x473)]());return this[_0x26f0c9(0x297)][_0x26f0c9(0x3fb)](_0x3fd5f4,_0x4b1f67),_0x4b1f67;}[_0xa83ddf(0x1e9)](_0x5b0a3b){const _0x4b8b6e=_0xa83ddf;var _0x5a8103;const _0x295edc=this[_0x4b8b6e(0x297)]['get'](_0x5b0a3b);_0x295edc&&(this[_0x4b8b6e(0x297)][_0x4b8b6e(0x29c)](_0x5b0a3b),_0x295edc['close']()),this[_0x4b8b6e(0x297)][_0x4b8b6e(0x41b)]||(_0x5a8103=this[_0x4b8b6e(0x39f)])==null||_0x5a8103['close']();}[_0xa83ddf(0x19b)](){const _0x5bbc15=_0xa83ddf;var _0x129d41;const _0x38a20b=(_0x129d41=this[_0x5bbc15(0x442)][_0x5bbc15(0x436)](un))!=null?_0x129d41:dn;return this[_0x5bbc15(0x37f)][_0x5bbc15(0x3b8)](_0x38a20b);}['_tryEnsureSocket'](){const _0x211ab8=_0xa83ddf;try{const _0x3923f0=this[_0x211ab8(0x19b)]();if(_0x3923f0){const _0x4de91b=_0x3923f0['send'];_0x3923f0[_0x211ab8(0x14f)]=_0x55858f=>(this['_rescheduleHeartbeatEvent'](),_0x4de91b[_0x211ab8(0x451)](_0x3923f0,[_0x55858f])),_0x3923f0[_0x211ab8(0x414)][_0x211ab8(0x222)](_0x52a092=>this[_0x211ab8(0x276)](_0x3923f0,_0x52a092)),_0x3923f0[_0x211ab8(0x332)][_0x211ab8(0x2e5)](_0x4bc9cf(0x1))[_0x211ab8(0x222)](_0x2eab4e=>this[_0x211ab8(0x33d)][_0x211ab8(0x44e)](_0x211ab8(0x478),_0x2eab4e)),_0x3923f0[_0x211ab8(0x38f)]['pipe'](_0x4bc9cf(0x1))[_0x211ab8(0x222)](()=>{this['_onConnectionOpen'](_0x3923f0);}),_0x3923f0['close$'][_0x211ab8(0x2e5)](_0x4bc9cf(0x1))[_0x211ab8(0x222)](_0x5bcfe7=>{const _0x223f6a=_0x211ab8;this[_0x223f6a(0x33d)][_0x223f6a(0x427)](_0x223f6a(0x336),'socket\x20close',_0x5bcfe7),this[_0x223f6a(0x1a0)]();});}}catch(_0x22d634){this['_logService'][_0x211ab8(0x44e)](_0x22d634),this[_0x211ab8(0x1a0)]();}}[_0xa83ddf(0x454)](_0x972651){const _0x1fdaeb=_0xa83ddf;this['_logService'][_0x1fdaeb(0x427)](_0x1fdaeb(0x336),_0x1fdaeb(0x35f)),_0x972651[_0x1fdaeb(0x14f)]({'cmd':I[_0x1fdaeb(0x25a)]}),this['_rescheduleHeartbeatEvent']();}[_0xa83ddf(0x1a0)](){const _0x328825=_0xa83ddf;var _0x2c3472;this['_status$'][_0x328825(0x311)](0x2),this[_0x328825(0x1de)][_0x328825(0x311)](null),this[_0x328825(0x22c)](),this[_0x328825(0x339)](),this[_0x328825(0x1a5)]=!0x1,this['_retryCount']<((_0x2c3472=this[_0x328825(0x442)][_0x328825(0x436)](pn))!=null?_0x2c3472:vn)?(this[_0x328825(0x2f0)](this['_retryCount']),this[_0x328825(0x424)]+=0x1):this['_messageService'][_0x328825(0x178)]({'type':_0x403ffc[_0x328825(0x1e5)],'content':this[_0x328825(0x46b)]['t']('session.connection-failed')});}[_0xa83ddf(0x2f0)](_0x546d2f){const _0x58915f=_0xa83ddf;var _0x50b8a6;const _0x28bb71=((_0x50b8a6=this[_0x58915f(0x442)][_0x58915f(0x436)](gn))!=null?_0x50b8a6:Sn)*0x2**_0x546d2f;this[_0x58915f(0x19d)][_0x58915f(0x178)]({'type':_0x403ffc[_0x58915f(0x407)],'content':this['_localeService']['t'](_0x58915f(0x159))}),this[_0x58915f(0x24b)]=setTimeout(()=>{const _0x417ff5=_0x58915f;this[_0x417ff5(0x29d)](),clearTimeout(this['_retryConnectingTimer']),this['_retryConnectingTimer']=null;},_0x28bb71);}['_rescheduleHeartbeatEvent'](){const _0x5e51cf=_0xa83ddf;var _0x565638;this[_0x5e51cf(0x339)](),this[_0x5e51cf(0x1c7)]=setTimeout(()=>this[_0x5e51cf(0x3f9)](),(_0x565638=this[_0x5e51cf(0x442)][_0x5e51cf(0x436)](mn))!=null?_0x565638:fn);}['_sendHeartbeat'](){const _0x36fb53=_0xa83ddf;this[_0x36fb53(0x39f)][_0x36fb53(0x14f)]({'cmd':I['HEARTBEAT']}),this['_waitForHeartbeatResponse']();}[_0xa83ddf(0x266)](){const _0x214b4e=_0xa83ddf;var _0x4f63fe;this[_0x214b4e(0x2b0)]=setTimeout(()=>this[_0x214b4e(0x1a0)](),(_0x4f63fe=this['_configService'][_0x214b4e(0x436)](Os))!=null?_0x4f63fe:Ds);}[_0xa83ddf(0x276)](_0x35fe10,_0x4700a2){const _0x1efd9e=_0xa83ddf,{cmd:_0x383228}=_0x4700a2;_0x383228===I[_0x1efd9e(0x25a)]&&!this[_0x1efd9e(0x1a5)]&&(_0x35fe10['memberID']=_0x4700a2[_0x1efd9e(0x2cf)]['memberID'],this[_0x1efd9e(0x1de)][_0x1efd9e(0x311)](_0x35fe10),this[_0x1efd9e(0x211)][_0x1efd9e(0x311)](0x3),this[_0x1efd9e(0x1a5)]=!0x0),_0x383228===I[_0x1efd9e(0x342)]&&this[_0x1efd9e(0x22c)](),this[_0x1efd9e(0x20b)]();}[_0xa83ddf(0x339)](){const _0x41a54c=_0xa83ddf;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x41a54c(0x1c7)]),this[_0x41a54c(0x1c7)]=null);}[_0xa83ddf(0x22c)](){const _0x3518f2=_0xa83ddf;this['_timeoutTimer']!=null&&(clearTimeout(this['_timeoutTimer']),this[_0x3518f2(0x2b0)]=null);}};pe=As([A(0x0,_0x2854bc(_0x28aed1)),A(0x1,_0x2854bc(_0x501416)),A(0x2,_0x192174),A(0x3,_0x31880b),A(0x4,_0x5e7a12),A(0x5,Ns)],pe);var xn=Object[_0xa83ddf(0x3b2)],Hn=Object[_0xa83ddf(0x190)],kn=(_0x50317d,_0x491a8a,_0xdcdc95,_0x28c0fe)=>{const _0x15d4cf=_0xa83ddf;for(var _0x21183b=_0x28c0fe>0x1?void 0x0:_0x28c0fe?Hn(_0x491a8a,_0xdcdc95):_0x491a8a,_0x57ebc5=_0x50317d[_0x15d4cf(0x249)]-0x1,_0xe71370;_0x57ebc5>=0x0;_0x57ebc5--)(_0xe71370=_0x50317d[_0x57ebc5])&&(_0x21183b=(_0x28c0fe?_0xe71370(_0x491a8a,_0xdcdc95,_0x21183b):_0xe71370(_0x21183b))||_0x21183b);return _0x28c0fe&&_0x21183b&&xn(_0x491a8a,_0xdcdc95,_0x21183b),_0x21183b;},Oe=(_0x4e9b18,_0x4a87c4)=>(_0x194542,_0xb72873)=>_0x4a87c4(_0x194542,_0xb72873,_0x4e9b18);let D=class extends _0x54b342{constructor(_0x55d3ae,_0x1512dd,_0x5e7cf2,_0x1c6eaf,_0x442baa){const _0x564b83=_0xa83ddf;super(),_(this,_0x564b83(0x465),new Map()),_(this,_0x564b83(0x432),new Map()),_(this,'_disabled',!0x1),(this['_configService']=_0x55d3ae,this[_0x564b83(0x418)]=_0x1512dd,this[_0x564b83(0x2e1)]=_0x5e7cf2,this[_0x564b83(0x46b)]=_0x1c6eaf,this[_0x564b83(0x2c6)]=_0x442baa,this[_0x564b83(0x22a)]());}[_0xa83ddf(0x301)](){this['_disabled']=!0x0;}[_0xa83ddf(0x2e0)](){const _0x1caf37=_0xa83ddf;this[_0x1caf37(0x39d)]=!0x1;}[_0xa83ddf(0x471)](){const _0x190e96=_0xa83ddf;this[_0x190e96(0x3ab)]()[_0x190e96(0x450)](()=>super['dispose']());}async[_0xa83ddf(0x392)](_0x2354bb){const _0x57bed5=_0xa83ddf;return this[_0x57bed5(0x39d)]?null:this[_0x57bed5(0x418)][_0x57bed5(0x325)](es(_0x2354bb));}async[_0xa83ddf(0x271)](_0x8a3a36,_0x35c0ec){const _0x30932d=_0xa83ddf;return!!this[_0x30932d(0x418)][_0x30932d(0x26f)](_0x8a3a36,_0x35c0ec);}['updateOfflineData'](_0x10405a,_0x50c830,_0x4ef593,_0x49060d){const _0x465161=_0xa83ddf,_0x38b764=this['_revisionService'][_0x465161(0x238)](_0x10405a);this['_cachedData'][_0x465161(0x3fb)](_0x10405a,{'unitID':_0x10405a,'type':_0x50c830,'awaitingChangeset':_0x4ef593,'mutations':_0x49060d,'rev':_0x38b764}),this[_0x465161(0x432)]['has'](_0x10405a)||this[_0x465161(0x319)](_0x10405a);}[_0xa83ddf(0x319)](_0x198b76){const _0x239efd=_0xa83ddf,_0x3f809e=this[_0x239efd(0x37c)]();_0x3f809e===0x0?this[_0x239efd(0x31f)](_0x198b76):this[_0x239efd(0x432)][_0x239efd(0x3fb)](_0x198b76,setTimeout(()=>this['_saveCache'](_0x198b76),_0x3f809e));}[_0xa83ddf(0x37c)](){const _0x5f5019=_0xa83ddf;var _0x1306a6;return(_0x1306a6=this[_0x5f5019(0x442)][_0x5f5019(0x436)](In))!=null?_0x1306a6:En;}['_saveCache'](_0x2d3deb){const _0x38e11=_0xa83ddf,_0x1bf4af=this[_0x38e11(0x432)]['get'](_0x2d3deb);return _0x1bf4af!==void 0x0&&window['clearTimeout'](_0x1bf4af),this[_0x38e11(0x418)][_0x38e11(0x26f)](es(_0x2d3deb),this[_0x38e11(0x465)][_0x38e11(0x441)](_0x2d3deb))[_0x38e11(0x450)](()=>this['_saveTaskMap'][_0x38e11(0x29c)](_0x2d3deb));}async[_0xa83ddf(0x3ab)](){const _0x2983cf=_0xa83ddf,_0x28146c=[];this[_0x2983cf(0x432)][_0x2983cf(0x3e6)]((_0xed8e0d,_0x41f9b4)=>{const _0x4ea271=_0x2983cf;window[_0x4ea271(0x3e7)](_0xed8e0d),_0x28146c[_0x4ea271(0x14e)](this[_0x4ea271(0x31f)](_0x41f9b4)[_0x4ea271(0x450)](()=>{const _0x371a5b=_0x4ea271;this['_saveTaskMap'][_0x371a5b(0x29c)](_0x41f9b4);}));}),await Promise[_0x2983cf(0x150)](_0x28146c);}[_0xa83ddf(0x22a)](){const _0x2a5c38=_0xa83ddf;this[_0x2a5c38(0x46f)](this[_0x2a5c38(0x2e1)][_0x2a5c38(0x2bc)](()=>{const _0x1109b9=_0x2a5c38;if(this['_saveTaskMap']['size'])return this[_0x1109b9(0x46b)]['t']('collaboration-client.offline-data-not-saved');}));}};D=kn([Oe(0x0,_0x5e7a12),Oe(0x1,_0x29e353),Oe(0x2,_0x498303),Oe(0x3,_0x2854bc(_0x501416)),Oe(0x4,_0x2854bc(_0x4bf679))],D);function es(_0x5bbe9){const _0xe74b6b=_0xa83ddf;return _0xe74b6b(0x2db)+_0x5bbe9;}const tt=_0x39166c(_0xa83ddf(0x36a));var Us=(_0x6696e9=>(_0x6696e9[_0x6696e9[_0xa83ddf(0x43c)]=0x0]=_0xa83ddf(0x43c),_0x6696e9[_0x6696e9[_0xa83ddf(0x3d8)]=0x1]=_0xa83ddf(0x3d8),_0x6696e9))(Us||{});const ts=0x7530,ss=_0xa83ddf(0x315);class Vn extends _0x54b342{constructor(){const _0x4618d5=_0xa83ddf;super(),_(this,_0x4618d5(0x32c),_0x146730['generateRandomId']()),_(this,_0x4618d5(0x2a7),new Set()),_(this,_0x4618d5(0x21a),new Map()),_(this,_0x4618d5(0x279),null),_(this,_0x4618d5(0x21b),new Map()),_(this,'_unitStatus',new Map()),this['_init']();}['dispose'](){const _0x14a732=_0xa83ddf;super[_0x14a732(0x471)](),this['_clearOtherTimers'][_0x14a732(0x3e6)]((_0x5e49b8,_0x486fb0)=>this[_0x14a732(0x1c8)](_0x486fb0)),this[_0x14a732(0x279)]&&window[_0x14a732(0x380)](this[_0x14a732(0x279)]);}[_0xa83ddf(0x2dd)](_0x3e4ef4){const _0x34007f=_0xa83ddf;return this[_0x34007f(0x1a8)](_0x3e4ef4)[_0x34007f(0x2e5)](_0x59f62b());}['editingUnit'](_0xd222b8){const _0x69e209=_0xa83ddf;this['_selfUnitIDs']['size']===0x0&&this['_scheduleHeartbeat'](),this[_0x69e209(0x2a7)][_0x69e209(0x2f8)](_0xd222b8),this[_0x69e209(0x3a2)]({'type':0x0,'memberID':this[_0x69e209(0x32c)],'unitIDs':[_0xd222b8],'isForwarded':!0x1});}['disposeUnit'](_0x4bcd0e){const _0x59441d=_0xa83ddf;this[_0x59441d(0x2a7)][_0x59441d(0x29c)](_0x4bcd0e),this[_0x59441d(0x2a7)][_0x59441d(0x41b)]===0x0&&this[_0x59441d(0x279)]&&window[_0x59441d(0x380)](this[_0x59441d(0x279)]);}[_0xa83ddf(0x267)](){const _0x4fb346=_0xa83ddf;this[_0x4fb346(0x46f)](_0x5bf8dd(_0x78aa37(window,_0x4fb346(0x2ad))[_0x4fb346(0x222)](_0x3aba2c=>{const _0x4bb2af=_0x4fb346;if(_0x3aba2c['key']!==ss||!_0x3aba2c[_0x4bb2af(0x3db)])return;const _0x566f5d=JSON[_0x4bb2af(0x2c8)](_0x3aba2c['newValue']);this[_0x4bb2af(0x2b6)](_0x566f5d);}))),window[_0x4fb346(0x239)](_0x4fb346(0x24d),()=>this[_0x4fb346(0x3a2)]({'type':0x1,'memberID':this[_0x4fb346(0x32c)],'unitIDs':Array[_0x4fb346(0x17d)](this[_0x4fb346(0x2a7)])}));}[_0xa83ddf(0x2b6)](_0x20f22d){const _0x2c0ffa=_0xa83ddf;switch(_0x20f22d[_0x2c0ffa(0x2f9)]){case 0x0:this[_0x2c0ffa(0x371)](_0x20f22d);break;case 0x1:this['_handleLeaveEvent'](_0x20f22d);break;case 0x2:this[_0x2c0ffa(0x15c)](_0x20f22d);break;}}[_0xa83ddf(0x371)](_0x156ef8){const _0x1046af=_0xa83ddf,{unitIDs:_0x47116d,memberID:_0x6c51ac,isForwarded:_0x3fb1f7}=_0x156ef8;_0x47116d[_0x1046af(0x3e6)](_0x4f8679=>{const _0x5d32d6=_0x1046af;if(!_0x3fb1f7&&this[_0x5d32d6(0x21a)][_0x5d32d6(0x437)](_0x4f8679)&&this[_0x5d32d6(0x1a8)](_0x4f8679)[_0x5d32d6(0x311)](0x1),!this[_0x5d32d6(0x21a)][_0x5d32d6(0x437)](_0x4f8679)||!this[_0x5d32d6(0x21a)][_0x5d32d6(0x441)](_0x4f8679)[_0x5d32d6(0x437)](_0x6c51ac)){const _0x487207=this['_unitOnClients'][_0x5d32d6(0x441)](_0x4f8679)||new Set();_0x487207['add'](_0x6c51ac),this['_unitOnClients']['set'](_0x4f8679,_0x487207),this[_0x5d32d6(0x3f3)](_0x6c51ac);}}),_0x3fb1f7||this[_0x1046af(0x3a2)]({'type':0x0,'memberID':this[_0x1046af(0x32c)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0xa83ddf(0x3f3)](_0x2017b8){const _0x270b74=_0xa83ddf;this[_0x270b74(0x1c8)](_0x2017b8);const _0x55b09c=window[_0x270b74(0x1f9)](()=>{const _0x5a2049=_0x270b74;this[_0x5a2049(0x21a)]['forEach'](_0x13d583=>{_0x13d583['delete'](_0x2017b8);});},ts*0x2);this[_0x270b74(0x21b)][_0x270b74(0x3fb)](_0x2017b8,_0x55b09c);}[_0xa83ddf(0x1c8)](_0x498092){const _0xd3b1dd=_0xa83ddf;if(this[_0xd3b1dd(0x21b)][_0xd3b1dd(0x437)](_0x498092)){const _0x4577dc=this[_0xd3b1dd(0x21b)][_0xd3b1dd(0x441)](_0x498092);_0x4577dc&&window[_0xd3b1dd(0x3e7)](_0x4577dc),this[_0xd3b1dd(0x21b)][_0xd3b1dd(0x3fb)](_0x498092,null);}}[_0xa83ddf(0x183)](_0xba9af2){const _0x21cc48=_0xa83ddf,{memberID:_0x75b3f4,unitIDs:_0x44ad9e}=_0xba9af2;_0x44ad9e['forEach'](_0x48ab39=>{const _0xd00060=_0xed79;var _0x2cc7dc;const _0x130c1f=this[_0xd00060(0x21a)][_0xd00060(0x441)](_0x48ab39);_0x130c1f&&(_0x130c1f[_0xd00060(0x29c)](_0x75b3f4),(_0x2cc7dc=this[_0xd00060(0x1a8)](_0x48ab39))==null||_0x2cc7dc[_0xd00060(0x311)](_0x130c1f[_0xd00060(0x41b)]===0x0?0x0:0x1));}),this[_0x21cc48(0x1c8)](_0x75b3f4);}['_handleHeartbeatEvent'](_0x5d5528){this['_scheduleClearOtherTimer'](_0x5d5528['memberID']);}[_0xa83ddf(0x3a2)](_0x5712ba){const _0x21ec3c=_0xa83ddf;localStorage[_0x21ec3c(0x26f)](ss,JSON[_0x21ec3c(0x284)](_0x5712ba));}['_scheduleHeartbeat'](){const _0x1bf3fe=_0xa83ddf;this['_heartbeatTimer']=window[_0x1bf3fe(0x1f5)](()=>{this['_send']({'type':0x2,'memberID':this['_id']});},ts);}[_0xa83ddf(0x1a8)](_0x15f356){const _0x4ae764=_0xa83ddf;return this[_0x4ae764(0x1cd)]['has'](_0x15f356)||this[_0x4ae764(0x1cd)][_0x4ae764(0x3fb)](_0x15f356,new _0xbc7543(0x0)),this[_0x4ae764(0x1cd)][_0x4ae764(0x441)](_0x15f356);}}var Bn=Object[_0xa83ddf(0x3b2)],Fn=Object['getOwnPropertyDescriptor'],Wn=(_0x437ded,_0x46eccf,_0x4768f6,_0x16d1f4)=>{for(var _0x48c01e=_0x16d1f4>0x1?void 0x0:_0x16d1f4?Fn(_0x46eccf,_0x4768f6):_0x46eccf,_0x566168=_0x437ded['length']-0x1,_0x3e0548;_0x566168>=0x0;_0x566168--)(_0x3e0548=_0x437ded[_0x566168])&&(_0x48c01e=(_0x16d1f4?_0x3e0548(_0x46eccf,_0x4768f6,_0x48c01e):_0x3e0548(_0x48c01e))||_0x48c01e);return _0x16d1f4&&_0x48c01e&&Bn(_0x46eccf,_0x4768f6,_0x48c01e),_0x48c01e;},is=(_0x331bc6,_0x47d22d)=>(_0x2c6f9e,_0x5571fc)=>_0x47d22d(_0x2c6f9e,_0x5571fc,_0x331bc6);let Je=class{constructor(_0x3e904f,_0x1faa57){const _0x2ec112=_0xa83ddf;this[_0x2ec112(0x1ef)]=_0x3e904f,this[_0x2ec112(0x2ef)]=_0x1faa57;}['transformIMECache'](_0x3dfbb7){const _0x1eb7da=_0xa83ddf;this[_0x1eb7da(0x3e3)](_0x3dfbb7),this[_0x1eb7da(0x421)](_0x3dfbb7);}['transformRemoteChangeset'](_0x1b2655){const _0x3574af=_0xa83ddf,_0x63286a=this['_injector'][_0x3574af(0x441)](_0x55de7b),{redoCache:_0x16d789}=_0x63286a[_0x3574af(0x193)]();if(_0x16d789[_0x3574af(0x249)]===0x0)return _0x1b2655;let _0x4bd4cd=_0x146730['deepClone'](_0x1b2655[_0x3574af(0x43b)][0x0]);for(let _0x50c802=0x0;_0x50c802<_0x16d789[_0x3574af(0x249)];_0x50c802++){const _0x353ddc={'id':_0x3574af(0x14c),'params':{..._0x16d789[_0x50c802]}},_0x1b8faf=this[_0x3574af(0x2ef)][_0x3574af(0x2d6)](_0x4bd4cd,_0x353ddc,!0x1);if(_0x571c72(_0x1b8faf))throw _0x1b8faf['error'];_0x4bd4cd=_0x1b8faf['m1Prime'];}return{..._0x146730['deepClone'](_0x1b2655),'mutations':[_0x4bd4cd]};}[_0xa83ddf(0x3e3)](_0x4497b5){const _0x4ac93d=_0xa83ddf,_0x309124=this[_0x4ac93d(0x1ef)][_0x4ac93d(0x441)](_0x55de7b),{undoCache:_0x5f32f7,redoCache:_0xcad719}=_0x309124['getUndoRedoMutationParamsCache']();if(_0x5f32f7['length']===0x0||_0xcad719[_0x4ac93d(0x249)]===0x0)return;const _0x2dd098=[],_0x5ad0c0=[];let _0x54d5b6=_0x146730[_0x4ac93d(0x28b)](_0x4497b5[_0x4ac93d(0x43b)][0x0]),_0x24a005=_0x146730['deepClone'](_0x4497b5[_0x4ac93d(0x43b)][0x0]);for(let _0x28444b=_0x5f32f7['length']-0x1;_0x28444b>=0x0;_0x28444b--){const _0x5772f4={'id':'doc.mutation.rich-text-editing','params':{..._0x5f32f7[_0x28444b]}},_0x4355f7={'id':'doc.mutation.rich-text-editing','params':{..._0xcad719[_0x28444b]}},_0x1241c9=this['_transformService'][_0x4ac93d(0x2d6)](_0x54d5b6,_0x5772f4,!0x1),_0x4e8c0e=this[_0x4ac93d(0x2ef)][_0x4ac93d(0x2d6)](_0x24a005,_0x4355f7,!0x1);if(_0x571c72(_0x1241c9))throw _0x1241c9[_0x4ac93d(0x44e)];if(_0x571c72(_0x4e8c0e))throw _0x4e8c0e['error'];_0x2dd098[_0x4ac93d(0x2ce)](_0x1241c9['m2Prime'][_0x4ac93d(0x370)]),_0x5ad0c0[_0x4ac93d(0x2ce)](_0x4e8c0e[_0x4ac93d(0x145)]['params']),_0x54d5b6=_0x1241c9['m1Prime'],_0x24a005=_0x4e8c0e[_0x4ac93d(0x347)];}_0x309124[_0x4ac93d(0x244)]({'undoCache':_0x2dd098,'redoCache':_0x5ad0c0});}['_transformPreviousActiveRange'](_0x38d115){const _0x463505=_0xa83ddf,_0x1221da=this[_0x463505(0x1ef)]['get'](_0x55de7b),_0x127d5c=_0x1221da['getActiveRange']();if(_0x127d5c==null)return;const _0x3dff8c=[{'id':_0x463505(0x14c),'params':{'unitId':_0x38d115[_0x463505(0x452)],'actions':null,'textRanges':[_0x127d5c]}}],_0x44d3d2=this[_0x463505(0x2ef)][_0x463505(0x384)](_0x38d115,_0x3dff8c);if(!_0x5d016b(_0x44d3d2))throw _0x44d3d2[_0x463505(0x44e)];const _0x4fa74f=_0x44d3d2[_0x463505(0x145)][0x0][_0x463505(0x370)][_0x463505(0x3dc)];Array['isArray'](_0x4fa74f)&&_0x4fa74f['length']&&_0x1221da['setActiveRange'](_0x4fa74f[0x0]);}};Je=Wn([is(0x0,_0x2854bc(_0x28aed1)),is(0x1,_0x5b4b40)],Je);var Gn=Object[_0xa83ddf(0x3b2)],Yn=Object[_0xa83ddf(0x190)],Kn=(_0x30033e,_0x29af49,_0x20c93c,_0x4e4c4b)=>{for(var _0x345e3b=_0x4e4c4b>0x1?void 0x0:_0x4e4c4b?Yn(_0x29af49,_0x20c93c):_0x29af49,_0x214f9e=_0x30033e['length']-0x1,_0x53f8e3;_0x214f9e>=0x0;_0x214f9e--)(_0x53f8e3=_0x30033e[_0x214f9e])&&(_0x345e3b=(_0x4e4c4b?_0x53f8e3(_0x29af49,_0x20c93c,_0x345e3b):_0x53f8e3(_0x345e3b))||_0x345e3b);return _0x4e4c4b&&_0x345e3b&&Gn(_0x29af49,_0x20c93c,_0x345e3b),_0x345e3b;},ns=(_0x23edac,_0x19901c)=>(_0x1394ec,_0xa30217)=>_0x19901c(_0x1394ec,_0xa30217,_0x23edac);let ze=class{constructor(_0x34be8e,_0x3f2e34){const _0x1e1c5b=_0xa83ddf;this[_0x1e1c5b(0x1ef)]=_0x34be8e,this[_0x1e1c5b(0x2ef)]=_0x3f2e34;}[_0xa83ddf(0x34a)](_0x501874){const _0x5ee378=_0xa83ddf;var _0x1c646b;const _0xcad2b9=this[_0x5ee378(0x1ef)]['get'](_0x4857f4),_0x1015fe=(_0x1c646b=_0xcad2b9[_0x5ee378(0x3a8)]())!=null?_0x1c646b:[],_0x30e58b=_0x1015fe==null?void 0x0:_0x1015fe['map'](_0xfbe9ba);if(_0x30e58b[_0x5ee378(0x249)]===0x0)return;const _0x1ac070=[{'id':_0x5ee378(0x14c),'params':{'unitId':_0x501874[_0x5ee378(0x452)],'actions':null,'textRanges':_0x30e58b}}],_0x214051=this[_0x5ee378(0x2ef)][_0x5ee378(0x384)](_0x501874,_0x1ac070);if(!_0x5d016b(_0x214051))throw _0x214051[_0x5ee378(0x44e)];const _0x1b463e=_0x214051[_0x5ee378(0x145)][0x0][_0x5ee378(0x370)][_0x5ee378(0x3dc)];Array[_0x5ee378(0x210)](_0x1b463e)&&_0x1b463e['length']&&_0xcad2b9[_0x5ee378(0x2d7)](_0x1b463e,!0x1);}};ze=Kn([ns(0x0,_0x2854bc(_0x28aed1)),ns(0x1,_0x5b4b40)],ze);function ys(_0x2bdfc9){const _0x272309=_0xa83ddf;let _0x44e5e5='';for(const _0x505e1b of _0x2bdfc9){const {startOffset:_0x55c973,endOffset:_0x3dbb50,isActive:_0x35db79}=_0x505e1b;_0x44e5e5[_0x272309(0x249)]&&(_0x44e5e5+=','),_0x44e5e5+=_0x55c973+':'+_0x3dbb50+':'+(_0x35db79?'1':'0');}return _0x44e5e5;}function Xn(_0x1dc002){const _0x248e84=_0xa83ddf,_0x44ee74=_0x1dc002[_0x248e84(0x1cc)](','),_0x4477bb=[];for(const _0x1e1f7e of _0x44ee74){const [_0x4a2436,_0x8631e7,_0x3a9790]=_0x1e1f7e[_0x248e84(0x1cc)](':');_0x4477bb[_0x248e84(0x14e)]({'startOffset':Number(_0x4a2436),'endOffset':Number(_0x8631e7),'collapsed':_0x4a2436===_0x8631e7,'isActive':_0x3a9790==='1'});}return _0x4477bb['some'](_0x19d129=>_0x19d129[_0x248e84(0x148)])||(_0x4477bb[0x0][_0x248e84(0x148)]=!0x0),_0x4477bb;}class xt extends _0x26114b{constructor(){const _0x53a420=_0xa83ddf;super(...arguments),_(this,_0x53a420(0x286),new _0xbc7543(null)),_(this,_0x53a420(0x3e9),this[_0x53a420(0x286)][_0x53a420(0x473)]());}[_0xa83ddf(0x3d9)](_0x2e93c7){const _0x363413=_0xa83ddf,{unitID:_0x7e78f4,memberID:_0x19340b,textRanges:_0x1c4c9c}=_0x2e93c7,_0x76c533=ys(_0x1c4c9c),_0x15488b={'unitID':_0x7e78f4,'memberID':_0x19340b,'selection':_0x76c533};this[_0x363413(0x286)][_0x363413(0x311)](_0x15488b);}}var Jn=Object['defineProperty'],zn=Object[_0xa83ddf(0x190)],qn=(_0x5617ce,_0x5c1b57,_0x5b0db7,_0x297d19)=>{for(var _0x108b0e=_0x297d19>0x1?void 0x0:_0x297d19?zn(_0x5c1b57,_0x5b0db7):_0x5c1b57,_0x49f431=_0x5617ce['length']-0x1,_0x96dfd7;_0x49f431>=0x0;_0x49f431--)(_0x96dfd7=_0x5617ce[_0x49f431])&&(_0x108b0e=(_0x297d19?_0x96dfd7(_0x5c1b57,_0x5b0db7,_0x108b0e):_0x96dfd7(_0x108b0e))||_0x108b0e);return _0x297d19&&_0x108b0e&&Jn(_0x5c1b57,_0x5b0db7,_0x108b0e),_0x108b0e;},rs=(_0x131d84,_0x3445e6)=>(_0x1e7516,_0x27a2e5)=>_0x3445e6(_0x1e7516,_0x27a2e5,_0x131d84);function Zn(_0x5d2cd5){const _0x5d2316=_0xa83ddf,{unitID:_0x258f11,mutations:_0x2943e0}=_0x5d2cd5;return{'unitId':_0x258f11,'subUnitId':_0x2943e0[0x0][_0x5d2316(0x370)]['subUnitId']};}let qe=class{constructor(_0x18ed2b,_0x2b3a11){const _0x4ba05f=_0xa83ddf;this[_0x4ba05f(0x1ef)]=_0x18ed2b,this['_transformService']=_0x2b3a11;}[_0xa83ddf(0x34a)](_0x1b12bf){const _0x317435=_0xa83ddf;var _0x2ab905,_0x5e16b4,_0x18b489;const _0x1df973=this[_0x317435(0x1ef)][_0x317435(0x441)](_0x3bd81d),{unitId:_0x5dcb77,subUnitId:_0x183e2b}=Zn(_0x1b12bf),_0x27a272=_0x1df973[_0x317435(0x188)](_0x5dcb77)['getCurrentSelections']();if(_0x27a272[_0x317435(0x249)]===0x0||!_0x5dcb77||!_0x183e2b)return;const _0x2800ff=[{'id':_0x5fa864['id'],'params':{'unitId':_0x5dcb77,'subUnitId':_0x183e2b,'selections':_0x146730['deepClone'](_0x27a272)}}],_0x50b402=this[_0x317435(0x2ef)][_0x317435(0x384)](_0x1b12bf,_0x2800ff);if(!_0x5d016b(_0x50b402))throw _0x50b402['error'];const _0x393f4e=(_0x18b489=(_0x5e16b4=(_0x2ab905=_0x50b402[_0x317435(0x145)][0x0])==null?void 0x0:_0x2ab905[_0x317435(0x370)])==null?void 0x0:_0x5e16b4['selections'])!=null?_0x18b489:_0x27a272;Array[_0x317435(0x210)](_0x393f4e)&&_0x393f4e['length']&&this['_injector'][_0x317435(0x441)](_0x291fa9)['executeCommand'](_0x5fa864['id'],{'unitId':_0x5dcb77,'subUnitId':_0x183e2b,'selections':_0x393f4e});}};qe=qn([rs(0x0,_0x2854bc(_0x28aed1)),rs(0x1,_0x5b4b40)],qe);const Qn=new Set([_0x295e2d['id']]);function os(_0x14942f,_0x1a92a7,_0x8fa8cd,_0x4eb9f8,_0x1ccb57){const _0x2b2046=_0xa83ddf;var _0x538057,_0x22518d,_0x21e722,_0x3a8d7d;const _0x2b034e=[];for(const _0x594bdf of _0x14942f)if(Qn[_0x2b2046(0x437)](_0x594bdf['id'])){if(_0x2b034e[_0x2b2046(0x249)]>0x0)break;_0x2b034e['push'](_0x594bdf);break;}else _0x2b034e['push'](_0x594bdf);const _0x6c6cc0=(_0x22518d=(_0x538057=_0x1ccb57[_0x2b2046(0x27f)]())==null?void 0x0:_0x538057[_0x2b2046(0x463)])!=null?_0x22518d:'unknown',_0x2f43e3=(_0x3a8d7d=(_0x21e722=_0x1ccb57['getCurrentUser']())==null?void 0x0:_0x21e722[_0x2b2046(0x469)])!=null?_0x3a8d7d:_0x2b2046(0x1a2);return{'changeset':{'unitID':_0x1a92a7,'type':_0x286a05(_0x8fa8cd[_0x2b2046(0x44c)](_0x1a92a7)),'baseRev':_0x4eb9f8['getCurrentRevForDocument'](_0x1a92a7),'revision':0x0,'userID':_0x6c6cc0,'memberID':_0x2f43e3,'mutations':_0x2b034e},'pendingMutations':_0x14942f['slice'](_0x2b034e[_0x2b2046(0x249)])};}function er(_0x4f39ea,_0x327869,_0x2254ab,_0x473488,_0x1ed26a){const _0x3c3f4a=_0xa83ddf;var _0x351246,_0x2c38fa,_0x484c54,_0x2e4fae;const _0x4dd816=[_0x4f39ea['reduce']((_0xf2164d,_0x1818d6)=>{const _0x24d022=_0xed79;var _0xcece9d;const {id:_0x10bdc5}=_0xf2164d,{id:_0x5c10a8,type:_0x264520}=_0x1818d6,_0x2c818a=(_0xcece9d=_0xf2164d[_0x24d022(0x370)])!=null?_0xcece9d:{'actions':null},_0x1011cd=_0x1818d6[_0x24d022(0x370)];if(_0x10bdc5&&_0x10bdc5!==_0x5c10a8)throw new Error(_0x24d022(0x216)+_0x10bdc5+'\x20-\x20'+_0x5c10a8+'.');return{..._0xf2164d,'id':_0x5c10a8,'type':_0x264520,'params':{'unitId':_0x1011cd[_0x24d022(0x3dd)],'textRanges':_0x1011cd[_0x24d022(0x3dc)],'actions':_0x5f5d93[_0x24d022(0x3c7)](_0x2c818a[_0x24d022(0x23a)],_0x1011cd['actions'])}};},{})],_0x3715c3=(_0x2c38fa=(_0x351246=_0x1ed26a['getCurrentUser']())==null?void 0x0:_0x351246[_0x3c3f4a(0x463)])!=null?_0x2c38fa:_0x3c3f4a(0x1a2),_0x4045da=(_0x2e4fae=(_0x484c54=_0x1ed26a[_0x3c3f4a(0x27f)]())==null?void 0x0:_0x484c54['memberID'])!=null?_0x2e4fae:_0x3c3f4a(0x1a2);return{'changeset':{'unitID':_0x327869,'type':_0x286a05(_0x2254ab[_0x3c3f4a(0x44c)](_0x327869)),'baseRev':_0x473488[_0x3c3f4a(0x238)](_0x327869),'revision':0x0,'userID':_0x3715c3,'memberID':_0x4045da,'mutations':_0x4dd816},'pendingMutations':[]};}const tr={'id':_0x2006d3['id'],'type':_0x20ade7[_0xa83ddf(0x445)],'params':{}};var sr=Object['defineProperty'],ir=Object['getOwnPropertyDescriptor'],ce=(_0x31afd9,_0x391b62,_0x52aee9,_0x87281d)=>{const _0x346170=_0xa83ddf;for(var _0x4fbde0=_0x87281d>0x1?void 0x0:_0x87281d?ir(_0x391b62,_0x52aee9):_0x391b62,_0x5dea35=_0x31afd9[_0x346170(0x249)]-0x1,_0x2d37ee;_0x5dea35>=0x0;_0x5dea35--)(_0x2d37ee=_0x31afd9[_0x5dea35])&&(_0x4fbde0=(_0x87281d?_0x2d37ee(_0x391b62,_0x52aee9,_0x4fbde0):_0x2d37ee(_0x4fbde0))||_0x4fbde0);return _0x87281d&&_0x4fbde0&&sr(_0x391b62,_0x52aee9,_0x4fbde0),_0x4fbde0;},f=(_0x228aec,_0x9df532)=>(_0x5df876,_0x165f80)=>_0x9df532(_0x5df876,_0x165f80,_0x228aec),P=(_0x405f07=>(_0x405f07[_0xa83ddf(0x3f5)]=_0xa83ddf(0x175),_0x405f07[_0xa83ddf(0x30e)]=_0xa83ddf(0x375),_0x405f07[_0xa83ddf(0x45d)]=_0xa83ddf(0x397),_0x405f07['AWAITING']=_0xa83ddf(0x2fe),_0x405f07[_0xa83ddf(0x354)]='awaiting_with_pending',_0x405f07[_0xa83ddf(0x464)]=_0xa83ddf(0x3aa),_0x405f07[_0xa83ddf(0x25f)]=_0xa83ddf(0x1ea),_0x405f07[_0xa83ddf(0x42e)]='offline',_0x405f07))(P||{});class he{constructor(_0x5c338b,_0x75b1bb,_0x1fd510,_0x37eb45,_0x1c04df,_0x31298f,_0x47539c,_0x345139,_0x323cde){const _0x55dade=_0xa83ddf;_(this,'_awaitingChangeset',null),_(this,_0x55dade(0x43e),[]),(this[_0x55dade(0x452)]=_0x5c338b,this[_0x55dade(0x2f9)]=_0x75b1bb,this[_0x55dade(0x233)]=_0x1c04df,this['_commandService']=_0x31298f,this[_0x55dade(0x3a0)]=_0x47539c,this['_revisionService']=_0x345139,this[_0x55dade(0x158)]=_0x323cde,this[_0x55dade(0x374)]=_0x1fd510,this[_0x55dade(0x43e)]=_0x37eb45);}['_checkMissing'](_0xb21249){const _0x1adc1a=_0xa83ddf,_0x85022d=this[_0x1adc1a(0x2c6)]['getCurrentRevForDocument'](this[_0x1adc1a(0x452)]);return _0xb21249[_0x1adc1a(0x142)]>_0x85022d+0x1?(this[_0x1adc1a(0x233)][_0x1adc1a(0x16d)]({'from':_0x85022d,'to':_0xb21249['revision']-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x35070c){const _0x38c42e=_0xa83ddf;this[_0x38c42e(0x3a0)][_0x38c42e(0x20f)](this[_0x38c42e(0x452)],_0x35070c);}['_transformSelections'](_0x39b006){const _0x1c1519=_0xa83ddf;var _0x4d08dd,_0x1ea119;(_0x1ea119=(_0x4d08dd=this[_0x1c1519(0x233)])[_0x1c1519(0x3b7)])==null||_0x1ea119['call'](_0x4d08dd,_0x39b006);}[_0xa83ddf(0x151)](_0x1f1d3e){const _0x394578=_0xa83ddf;var _0x40126f,_0x4a01f8;return(_0x4a01f8=(_0x40126f=this[_0x394578(0x233)])[_0x394578(0x293)])==null?void 0x0:_0x4a01f8[_0x394578(0x3b3)](_0x40126f,_0x1f1d3e);}[_0xa83ddf(0x400)](_0x89a9f6){const _0x3182c1=_0xa83ddf;var _0x349f3c,_0x5c7cb2,_0x384a31;return(_0x384a31=(_0x5c7cb2=(_0x349f3c=this[_0x3182c1(0x233)])[_0x3182c1(0x47c)])==null?void 0x0:_0x5c7cb2['call'](_0x349f3c,_0x89a9f6))!=null?_0x384a31:_0x89a9f6;}[_0xa83ddf(0x1ab)](_0x31369d){const _0x5809a3=_0xa83ddf;var _0x267de6,_0x3fa307;if(this[_0x5809a3(0x2f9)]===H[_0x5809a3(0x1f2)]){const {unitID:_0x16e5fa,mutations:_0x57228e,memberID:_0x4e46a7}=_0x31369d,_0x3729a4=_0x57228e[0x0][_0x5809a3(0x370)][_0x5809a3(0x3dc)];Array[_0x5809a3(0x210)](_0x3729a4)&&_0x3729a4[_0x5809a3(0x249)]>0x0&&((_0x3fa307=(_0x267de6=this[_0x5809a3(0x233)])[_0x5809a3(0x27e)])==null||_0x3fa307[_0x5809a3(0x3b3)](_0x267de6,{'unitID':_0x16e5fa,'memberID':_0x4e46a7,'textRanges':_0x3729a4}));}}[_0xa83ddf(0x294)](){const _0x58a3fc=_0xa83ddf;this[_0x58a3fc(0x158)][_0x58a3fc(0x1e2)](this[_0x58a3fc(0x452)],this[_0x58a3fc(0x2f9)],this[_0x58a3fc(0x374)],this[_0x58a3fc(0x43e)]);}[_0xa83ddf(0x39b)](){const _0x43e003=_0xa83ddf;return this[_0x43e003(0x2c6)][_0x43e003(0x238)](this['unitID']);}[_0xa83ddf(0x156)](){const _0x37649e=_0xa83ddf;this['_revisionService']['incrementRevForDocument'](this[_0x37649e(0x452)]);}[_0xa83ddf(0x1da)](_0x34d552){const _0x570c56=_0xa83ddf;var _0x199393;const _0x401dad=this[_0x570c56(0x400)](_0x34d552),_0x28b614=_0x343a59(_0x401dad['mutations'],this[_0x570c56(0x153)],{'fromCollab':!0x0});if(!_0x28b614[_0x570c56(0x443)])throw _0x28b614['error']instanceof Error?_0x28b614[_0x570c56(0x44e)]:new Error((_0x199393=_0x28b614[_0x570c56(0x44e)])!=null?_0x199393:'[CollaborationState]:\x20apply\x20error!');this['_transformIMECache'](_0x401dad),this['_transformUndoredo'](_0x34d552),this[_0x570c56(0x41f)](_0x401dad),this[_0x570c56(0x1ab)](_0x401dad),this['_incrementRevisionNumber']();}}let Ue=class extends he{constructor(_0x17151b,_0x1ecf12,_0x4ac844,_0x3a07d3,_0x31a2c8,_0x4b957b,_0xeae583,_0x2fd372,_0x5297fc,_0x5582ff){const _0x54b0b7=_0xa83ddf;super(_0x17151b,_0x1ecf12,null,[],_0x4ac844,_0x2fd372,_0xeae583,_0x3a07d3,_0x31a2c8),_(this,'status','synced'),(this[_0x54b0b7(0x1ef)]=_0x4b957b,this[_0x54b0b7(0x33d)]=_0x5297fc,this[_0x54b0b7(0x2ef)]=_0x5582ff);}[_0xa83ddf(0x258)](_0x2f1407){const _0x2c7e76=_0xa83ddf,_0x52abca=this[_0x2c7e76(0x1ef)][_0x2c7e76(0x274)](G,this['unitID'],this[_0x2c7e76(0x2f9)],[_0x2f1407],this[_0x2c7e76(0x233)]);return _0x52abca[_0x2c7e76(0x1d7)](),_0x52abca[_0x2c7e76(0x294)](),_0x52abca;}[_0xa83ddf(0x2c1)](_0x45b372){const _0x4327db=_0xa83ddf;if(this['_checkMissing'](_0x45b372))return this[_0x4327db(0x1ef)]['createInstance'](K,this[_0x4327db(0x452)],this[_0x4327db(0x2f9)],null,[],null,[_0x45b372],this[_0x4327db(0x233)]);try{const _0x41360a=this[_0x4327db(0x2ef)][_0x4327db(0x384)](_0x45b372,[tr]);if(_0x5d016b(_0x41360a)){const {c1Prime:_0x2244ee}=_0x41360a;return this[_0x4327db(0x1da)](_0x2244ee),this;}throw _0x41360a[_0x4327db(0x44e)];}catch(_0xdeb9d9){return this[_0x4327db(0x33d)][_0x4327db(0x44e)](_0xdeb9d9),this[_0x4327db(0x2c3)](!0x1);}}[_0xa83ddf(0x2c3)](_0x37510b){const _0x277551=_0xa83ddf;return this[_0x277551(0x1ef)][_0x277551(0x274)](Z,this[_0x277551(0x452)],this['type'],null,[],this[_0x277551(0x233)],_0x37510b);}['onRemoteAck'](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0xa83ddf(0x1fd)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}['toggleOffline'](){const _0x1f3156=_0xa83ddf;return this[_0x1f3156(0x1ef)]['createInstance'](Q,this[_0x1f3156(0x452)],this[_0x1f3156(0x2f9)],null,[],this[_0x1f3156(0x233)]);}[_0xa83ddf(0x262)](){return this;}[_0xa83ddf(0x3e1)](){const _0x536e8d=_0xa83ddf;throw new Error(_0x536e8d(0x1e7));}};Ue=ce([f(0x3,_0x2854bc(_0x4bf679)),f(0x4,_0x2854bc(D)),f(0x5,_0x2854bc(_0x28aed1)),f(0x6,_0x1e8ca5),f(0x7,_0x291fa9),f(0x8,_0x31880b),f(0x9,_0x5b4b40)],Ue);let G=class extends he{constructor(_0x3b3995,_0x39aa30,_0xc7b369,_0x484668,_0x431280,_0x46d940,_0x283bb7,_0x3951ba,_0x43f807,_0xa74048,_0x3dba34,_0x57def2,_0x58e38d,_0x572a76){const _0x38253e=_0xa83ddf;super(_0x3b3995,_0x39aa30,null,_0xc7b369,_0x484668,_0xa74048,_0x572a76,_0x46d940,_0x283bb7),_(this,_0x38253e(0x3e8),_0x38253e(0x397)),_(this,_0x38253e(0x2d9),null),_(this,'_sendingTimer',null),(this['_injector']=_0x431280,this[_0x38253e(0x13e)]=_0x3951ba,this[_0x38253e(0x33d)]=_0x43f807,this[_0x38253e(0x442)]=_0x3dba34,this[_0x38253e(0x2ef)]=_0x57def2,this[_0x38253e(0x44a)]=_0x58e38d);}['appendMutation'](_0x1583ad){const _0x237651=_0xa83ddf;return this[_0x237651(0x43e)][_0x237651(0x14e)](_0x1583ad),this[_0x237651(0x294)](),this;}[_0xa83ddf(0x2c1)](_0x371fe8){const _0x270523=_0xa83ddf;if(this[_0x270523(0x357)](_0x371fe8))return this[_0x270523(0x21f)](),this['_injector'][_0x270523(0x274)](K,this[_0x270523(0x452)],this[_0x270523(0x2f9)],null,this[_0x270523(0x43e)],null,[_0x371fe8],this['_handler']);try{const _0x301e6a=this['_transformService'][_0x270523(0x384)](_0x371fe8,this['_pendingMutations']);if(_0x5d016b(_0x301e6a)){const {c1Prime:_0x3b6041,m2Prime:_0x34cc27}=_0x301e6a;this[_0x270523(0x1da)](_0x3b6041);const _0x416394=this['_injector'][_0x270523(0x274)](G,this[_0x270523(0x452)],this['type'],_0x34cc27,this[_0x270523(0x233)]);return this[_0x270523(0x21f)](),_0x416394['_schedule'](this[_0x270523(0x2d9)]?Math[_0x270523(0x366)](0x0,new Date()[_0x270523(0x292)]()-this[_0x270523(0x2d9)]):this[_0x270523(0x28a)]()),_0x416394;}throw _0x301e6a[_0x270523(0x44e)];}catch(_0x56409b){return this[_0x270523(0x33d)][_0x270523(0x44e)](_0x56409b),this[_0x270523(0x2c3)](!0x1);}}[_0xa83ddf(0x39a)](){const _0xfa3d65=_0xa83ddf;throw new Error(_0xfa3d65(0x360));}[_0xa83ddf(0x1fd)](){const _0x4829f6=_0xa83ddf;throw new Error(_0x4829f6(0x475));}[_0xa83ddf(0x340)](){const _0x3abbd1=_0xa83ddf;return this[_0x3abbd1(0x21f)](),this[_0x3abbd1(0x1ef)][_0x3abbd1(0x274)](Q,this[_0x3abbd1(0x452)],this['type'],null,this[_0x3abbd1(0x43e)],this[_0x3abbd1(0x233)]);}[_0xa83ddf(0x262)](){return this;}[_0xa83ddf(0x1d7)](_0xc17fdc){const _0x1e82bc=_0xa83ddf;_0xc17fdc=_0xc17fdc!=null?_0xc17fdc:this[_0x1e82bc(0x28a)](),this[_0x1e82bc(0x2d9)]=new Date()['getTime'](),this[_0x1e82bc(0x283)]=setTimeout(()=>{const _0x1917d2=_0x1e82bc;this['_clearScheduledTask']();let _0x1758bc=null;switch(this[_0x1917d2(0x2f9)]){case H[_0x1917d2(0x2ac)]:{_0x1758bc=os(this['_pendingMutations'],this[_0x1917d2(0x452)],this[_0x1917d2(0x44a)],this[_0x1917d2(0x2c6)],this[_0x1917d2(0x13e)]);break;}case H[_0x1917d2(0x1f2)]:{this['_pendingMutations'][_0x1917d2(0x19e)](_0x569690=>_0x569690['id']===_0x53c1cb['id'])?_0x1758bc=er(this[_0x1917d2(0x43e)],this[_0x1917d2(0x452)],this[_0x1917d2(0x44a)],this[_0x1917d2(0x2c6)],this[_0x1917d2(0x13e)]):_0x1758bc=os(this[_0x1917d2(0x43e)],this['unitID'],this[_0x1917d2(0x44a)],this['_revisionService'],this[_0x1917d2(0x13e)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this['type']+_0x1917d2(0x3a3));}const {changeset:_0x7904a1,pendingMutations:_0xc7795a}=_0x1758bc;this[_0x1917d2(0x233)]['onSendChangeset'](_0x7904a1);const _0x402f39=_0xc7795a['length']?this[_0x1917d2(0x1ef)][_0x1917d2(0x274)](Y,this['unitID'],this[_0x1917d2(0x2f9)],_0x7904a1,_0xc7795a,this[_0x1917d2(0x233)]):this[_0x1917d2(0x1ef)][_0x1917d2(0x274)](q,this['unitID'],this[_0x1917d2(0x2f9)],_0x7904a1,this[_0x1917d2(0x233)]);_0x402f39[_0x1917d2(0x294)](),this['_handler'][_0x1917d2(0x261)](this,_0x402f39);},_0xc17fdc);}[_0xa83ddf(0x28a)](){const _0x16434e=_0xa83ddf;var _0x30b3e4;return(_0x30b3e4=this[_0x16434e(0x442)][_0x16434e(0x436)](_n))!=null?_0x30b3e4:ln;}['resend'](){const _0x2b5956=_0xa83ddf;throw new Error(_0x2b5956(0x33a));}[_0xa83ddf(0x21f)](){this['_sendingTimer']!=null&&(clearTimeout(this['_sendingTimer']),this['_sendingTimer']=null);}[_0xa83ddf(0x2c3)](_0x337f31){const _0x36f2b0=_0xa83ddf;return this[_0x36f2b0(0x21f)](),this[_0x36f2b0(0x1ef)][_0x36f2b0(0x274)](Z,this[_0x36f2b0(0x452)],this[_0x36f2b0(0x2f9)],null,this['_pendingMutations'],this['_handler'],_0x337f31);}};G=ce([f(0x4,_0x2854bc(_0x28aed1)),f(0x5,_0x2854bc(_0x4bf679)),f(0x6,_0x2854bc(D)),f(0x7,_0x2854bc(ne)),f(0x8,_0x31880b),f(0x9,_0x291fa9),f(0xa,_0x5e7a12),f(0xb,_0x5b4b40),f(0xc,_0x1b1ada),f(0xd,_0x1e8ca5)],G);let q=class extends he{constructor(_0x19ed1e,_0x2ad1de,_0x3e3bf3,_0x43d660,_0x503cbd,_0x2ea701,_0x48f604,_0x104382,_0x409a29,_0x1fc6f4,_0x3a915a){const _0x3ee29a=_0xa83ddf;super(_0x19ed1e,_0x2ad1de,_0x3e3bf3,[],_0x43d660,_0x104382,_0x3a915a,_0x2ea701,_0x48f604),_(this,_0x3ee29a(0x3e8),'awaiting'),(this['_injector']=_0x503cbd,this[_0x3ee29a(0x33d)]=_0x409a29,this[_0x3ee29a(0x2ef)]=_0x1fc6f4);}[_0xa83ddf(0x258)](_0x5e7e78){const _0x18bd1d=_0xa83ddf,_0x200a52=this[_0x18bd1d(0x1ef)][_0x18bd1d(0x274)](Y,this['unitID'],this[_0x18bd1d(0x2f9)],this[_0x18bd1d(0x374)],[_0x5e7e78],this[_0x18bd1d(0x233)]);return _0x200a52['_updateLocalCache'](),_0x200a52;}[_0xa83ddf(0x2c1)](_0x3d612b){const _0x452d23=_0xa83ddf;if(this[_0x452d23(0x357)](_0x3d612b))return this[_0x452d23(0x1ef)][_0x452d23(0x274)](K,this[_0x452d23(0x452)],this['type'],this[_0x452d23(0x374)],[],null,[_0x3d612b],this[_0x452d23(0x233)]);try{const _0x248fcc=this[_0x452d23(0x2ef)]['transformChangesets']([_0x3d612b],[this['_awaitingChangeset']],!0x1);if(_0x110984(_0x248fcc)){const {c1Prime:_0x5a4ad2,c2Prime:_0xe45f25}=_0x248fcc;this[_0x452d23(0x1da)](_0x5a4ad2[0x0]),_0xe45f25[0x0][_0x452d23(0x2b2)]=this[_0x452d23(0x39b)]();const _0x2abe2f=this[_0x452d23(0x1ef)][_0x452d23(0x274)](q,this[_0x452d23(0x452)],this[_0x452d23(0x2f9)],_0xe45f25[0x0],this[_0x452d23(0x233)]);return _0x2abe2f[_0x452d23(0x294)](),_0x2abe2f;}return this[_0x452d23(0x2c3)](!0x1);}catch(_0x34e153){return this[_0x452d23(0x33d)][_0x452d23(0x44e)](_0x34e153),this[_0x452d23(0x2c3)](!0x1);}}[_0xa83ddf(0x39a)](_0x2a0334){const _0x3c315d=_0xa83ddf,_0x35086f=this[_0x3c315d(0x2c6)][_0x3c315d(0x238)](this[_0x3c315d(0x452)]);if(_0x2a0334[_0x3c315d(0x142)]<_0x35086f-0x1)return this;if(this[_0x3c315d(0x357)](_0x2a0334))return this[_0x3c315d(0x1ef)][_0x3c315d(0x274)](K,this[_0x3c315d(0x452)],this[_0x3c315d(0x2f9)],null,[],this[_0x3c315d(0x374)],[],this[_0x3c315d(0x233)]);this[_0x3c315d(0x156)]();const _0x599427=this[_0x3c315d(0x1ef)][_0x3c315d(0x274)](Ue,this['unitID'],this[_0x3c315d(0x2f9)],this[_0x3c315d(0x233)]);return _0x599427[_0x3c315d(0x294)](),_0x599427;}[_0xa83ddf(0x1fd)](_0x732e3e){const _0x419ba3=_0xa83ddf;return this[_0x419ba3(0x2c3)](!!(_0x732e3e!=null&&_0x732e3e['isPermissionRej']));}[_0xa83ddf(0x340)](){const _0x35c9e6=_0xa83ddf;return this[_0x35c9e6(0x1ef)][_0x35c9e6(0x274)](Q,this[_0x35c9e6(0x452)],this[_0x35c9e6(0x2f9)],this[_0x35c9e6(0x374)],[],this['_handler']);}['toggleOnline'](){return this;}[_0xa83ddf(0x3e1)](){const _0x20144c=_0xa83ddf;this['_handler'][_0x20144c(0x386)](this['_awaitingChangeset']);}[_0xa83ddf(0x2c3)](_0x1bbd87){const _0x45e20e=_0xa83ddf;return this[_0x45e20e(0x1ef)][_0x45e20e(0x274)](Z,this['unitID'],this['type'],this['_awaitingChangeset'],[],this[_0x45e20e(0x233)],_0x1bbd87);}};q=ce([f(0x4,_0x2854bc(_0x28aed1)),f(0x5,_0x2854bc(_0x4bf679)),f(0x6,_0x2854bc(D)),f(0x7,_0x291fa9),f(0x8,_0x31880b),f(0x9,_0x5b4b40),f(0xa,_0x1e8ca5)],q);let Y=class extends he{constructor(_0x5e8f8e,_0x54ac2e,_0x1eb2bd,_0x37ce88,_0x5c2522,_0x4d89ee,_0x2b821f,_0x190149,_0x52e4cd,_0x1c8355,_0x3b9187,_0x36613f){const _0x4081b4=_0xa83ddf;super(_0x5e8f8e,_0x54ac2e,_0x1eb2bd,_0x37ce88,_0x5c2522,_0x52e4cd,_0x36613f,_0x2b821f,_0x190149),_(this,_0x4081b4(0x3e8),'awaiting_with_pending'),(this[_0x4081b4(0x1ef)]=_0x4d89ee,this['_logService']=_0x1c8355,this[_0x4081b4(0x2ef)]=_0x3b9187);}[_0xa83ddf(0x258)](_0x130da3){const _0x431b87=_0xa83ddf;return this[_0x431b87(0x43e)]['push'](_0x130da3),this;}[_0xa83ddf(0x2c1)](_0x39b5fe){const _0x400eb0=_0xa83ddf;if(this['_checkMissing'](_0x39b5fe))return this[_0x400eb0(0x1ef)][_0x400eb0(0x274)](K,this['unitID'],this['type'],this[_0x400eb0(0x374)],this[_0x400eb0(0x43e)],null,[_0x39b5fe],this[_0x400eb0(0x233)]);try{const _0x3fc149=this[_0x400eb0(0x2ef)][_0x400eb0(0x2b1)]([_0x39b5fe],[this['_awaitingChangeset']],!0x1);if(_0x110984(_0x3fc149)){const {c1Prime:_0x3dd368,c2Prime:_0x1aeea6}=_0x3fc149,_0x3a76b2=this['_transformService']['transformMutationsWithChangeset'](_0x3dd368[0x0],this[_0x400eb0(0x43e)]);if(_0x5d016b(_0x3a76b2)){const {c1Prime:_0x1fc92e,m2Prime:_0xc11e92}=_0x3a76b2;return this[_0x400eb0(0x1da)](_0x1fc92e),_0x1aeea6[0x0][_0x400eb0(0x2b2)]=this[_0x400eb0(0x39b)](),this[_0x400eb0(0x1ef)]['createInstance'](Y,this[_0x400eb0(0x452)],this['type'],_0x1aeea6[0x0],_0xc11e92,this[_0x400eb0(0x233)]);}throw _0x3a76b2[_0x400eb0(0x44e)];}throw _0x3fc149[_0x400eb0(0x44e)];}catch(_0x240764){return this[_0x400eb0(0x33d)][_0x400eb0(0x44e)](_0x240764),this['_onConflict'](!0x1);}}[_0xa83ddf(0x39a)](_0x1e25ec){const _0x2c111e=_0xa83ddf;if(this['_checkMissing'](_0x1e25ec))return this[_0x2c111e(0x1ef)][_0x2c111e(0x274)](K,this[_0x2c111e(0x452)],this[_0x2c111e(0x2f9)],null,this[_0x2c111e(0x43e)],this['_awaitingChangeset'],[],this[_0x2c111e(0x233)]);this[_0x2c111e(0x156)]();const _0x2a4a27=this[_0x2c111e(0x1ef)]['createInstance'](G,this[_0x2c111e(0x452)],this[_0x2c111e(0x2f9)],this[_0x2c111e(0x43e)],this[_0x2c111e(0x233)]);return _0x2a4a27[_0x2c111e(0x1d7)](),_0x2a4a27['_updateLocalCache'](),_0x2a4a27;}[_0xa83ddf(0x1fd)](_0x4803e5){const _0x2d5f69=_0xa83ddf;return this[_0x2d5f69(0x2c3)](!!(_0x4803e5!=null&&_0x4803e5[_0x2d5f69(0x15a)]));}[_0xa83ddf(0x340)](){const _0x48f420=_0xa83ddf;return this[_0x48f420(0x1ef)][_0x48f420(0x274)](Q,this[_0x48f420(0x452)],this[_0x48f420(0x2f9)],this['_awaitingChangeset'],this['_pendingMutations'],this['_handler']);}[_0xa83ddf(0x262)](){return this;}['resend'](){const _0xd2f459=_0xa83ddf;this[_0xd2f459(0x233)][_0xd2f459(0x386)](this[_0xd2f459(0x374)]);}[_0xa83ddf(0x2c3)](_0x4389af){const _0x21f16c=_0xa83ddf;return this[_0x21f16c(0x1ef)]['createInstance'](Z,this['unitID'],this[_0x21f16c(0x2f9)],null,this['_pendingMutations'],this[_0x21f16c(0x233)],_0x4389af);}};Y=ce([f(0x5,_0x2854bc(_0x28aed1)),f(0x6,_0x2854bc(_0x4bf679)),f(0x7,_0x2854bc(D)),f(0x8,_0x291fa9),f(0x9,_0x31880b),f(0xa,_0x5b4b40),f(0xb,_0x1e8ca5)],Y);let Z=class extends he{constructor(_0x31cc9,_0x4797fd,_0x3e4f7f,_0x578cd5,_0x3cd4fc,_0x24c3c7=!0x1,_0x11ec03,_0x258311,_0x3769a9,_0x16f31f,_0x488a9c,_0xc87fa9,_0x3c050c){const _0x13761a=_0xa83ddf;super(_0x31cc9,_0x4797fd,_0x3e4f7f,_0x578cd5,_0x3cd4fc,_0x258311,_0x3769a9,_0x488a9c,_0x16f31f),_(this,_0x13761a(0x3e8),_0x13761a(0x1ea)),(this[_0x13761a(0x16b)]=_0x24c3c7,this['_permissionService']=_0x11ec03,this[_0x13761a(0x46b)]=_0xc87fa9,this[_0x13761a(0x17f)]=_0x3c050c,this[_0x13761a(0x1e1)](),this[_0x13761a(0x449)](),this['_disableEditing']());}[_0xa83ddf(0x258)](){return this;}[_0xa83ddf(0x2c1)](){return this;}['onRemoteAck'](){return this;}[_0xa83ddf(0x1fd)](){return this;}[_0xa83ddf(0x340)](){return this;}[_0xa83ddf(0x262)](){return this;}[_0xa83ddf(0x3e1)](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0xa83ddf(0x449)](){const _0x1a3b16=_0xa83ddf;this['_localCacheService']['updateOfflineData'](this[_0x1a3b16(0x452)],this[_0x1a3b16(0x2f9)],null,[]);}[_0xa83ddf(0x1e1)](){const _0x27b4d4=_0xa83ddf;this[_0x27b4d4(0x16b)]?this[_0x27b4d4(0x17f)][_0x27b4d4(0x178)]({'title':this['_localeService']['t'](_0x27b4d4(0x191)),'content':this[_0x27b4d4(0x46b)]['t'](_0x27b4d4(0x381)),'type':_0x27b4d4(0x44e),'duration':0x0}):this[_0x27b4d4(0x17f)][_0x27b4d4(0x178)]({'title':this[_0x27b4d4(0x46b)]['t'](_0x27b4d4(0x228)),'content':this[_0x27b4d4(0x46b)]['t'](_0x27b4d4(0x32d)),'type':_0x27b4d4(0x44e),'duration':0x0});}[_0xa83ddf(0x404)](){const _0x42fcb6=_0xa83ddf;this[_0x42fcb6(0x47d)][_0x42fcb6(0x2c4)](new _0x2efdca(this[_0x42fcb6(0x452)])['id'],!0x1);}};Z=ce([f(0x6,_0x2854bc(_0x524b2d)),f(0x7,_0x291fa9),f(0x8,_0x1e8ca5),f(0x9,_0x2854bc(D)),f(0xa,_0x2854bc(_0x4bf679)),f(0xb,_0x2854bc(_0x501416)),f(0xc,_0x55f36b)],Z);let Q=class extends he{constructor(_0x1514e8,_0x510724,_0x49caed,_0x491f90,_0x287697,_0x9f9493,_0x30d9e6,_0x4f3712,_0x5de98b,_0x45433f){const _0x15b073=_0xa83ddf;super(_0x1514e8,_0x510724,_0x49caed,_0x491f90,_0x287697,_0x5de98b,_0x45433f,_0x30d9e6,_0x4f3712),_(this,_0x15b073(0x3e8),_0x15b073(0x2a5)),this[_0x15b073(0x1ef)]=_0x9f9493;}[_0xa83ddf(0x258)](_0x6e43e5){const _0x27dfd4=_0xa83ddf;return this[_0x27dfd4(0x43e)][_0x27dfd4(0x14e)](_0x6e43e5),this[_0x27dfd4(0x294)](),this;}[_0xa83ddf(0x2c1)](_0x4edf06){const _0x3b4486=_0xa83ddf;throw new Error(_0x3b4486(0x3c4));}[_0xa83ddf(0x39a)](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0xa83ddf(0x1fd)](){const _0x215f72=_0xa83ddf;throw new Error(_0x215f72(0x42b));}[_0xa83ddf(0x340)](){return this;}[_0xa83ddf(0x262)](){const _0x540597=_0xa83ddf,{_injector:_0x5cdf99,_pendingMutations:_0x1643c5,_awaitingChangeset:_0x58eeb5,unitID:_0x832e71,_handler:_0x5793d1,type:_0x3f2fc5}=this,_0x36e665=Ls(_0x5cdf99,_0x832e71,_0x3f2fc5,_0x58eeb5,_0x1643c5,_0x5793d1);return _0x36e665 instanceof G?_0x36e665[_0x540597(0x1d7)]():(_0x36e665 instanceof Y||_0x36e665 instanceof q)&&_0x36e665['resend'](),_0x36e665;}[_0xa83ddf(0x3e1)](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};Q=ce([f(0x5,_0x2854bc(_0x28aed1)),f(0x6,_0x2854bc(_0x4bf679)),f(0x7,_0x2854bc(D)),f(0x8,_0x291fa9),f(0x9,_0x1e8ca5)],Q);let K=class extends he{constructor(_0x524411,_0x200045,_0x83f458,_0x4c55d7,_0x4bf65b,_0x204d04,_0x5aa872,_0x4a685c,_0x47e514,_0x36dfd0,_0x5e2c4f,_0x328e90,_0x3e88f0,_0x91db63){const _0x3c9280=_0xa83ddf;super(_0x524411,_0x200045,_0x83f458,_0x4c55d7,_0x5aa872,_0x328e90,_0x3e88f0,_0x47e514,_0x36dfd0),_(this,_0x3c9280(0x3e8),_0x3c9280(0x3aa)),(this[_0x3c9280(0x36f)]=_0x4bf65b,this['_queuedRemoteChangesets']=_0x204d04,this[_0x3c9280(0x1ef)]=_0x4a685c,this[_0x3c9280(0x33d)]=_0x5e2c4f,this[_0x3c9280(0x2ef)]=_0x91db63);}[_0xa83ddf(0x314)](_0x36159b){const _0x3d9cb6=_0xa83ddf;try{const _0x19e012=[..._0x36159b,...this[_0x3d9cb6(0x1f1)]],_0x21f584=[this[_0x3d9cb6(0x374)]||this[_0x3d9cb6(0x36f)]][_0x3d9cb6(0x19f)](_0xa3bf89=>!!_0xa3bf89);let _0x3a4d5f,_0x5a2185;if(_0x21f584['length']){const _0x26ce86=this[_0x3d9cb6(0x2ef)][_0x3d9cb6(0x2b1)](_0x19e012,_0x21f584,!0x1);if(!_0x110984(_0x26ce86))throw _0x26ce86[_0x3d9cb6(0x44e)];_0x3a4d5f=_0x26ce86['c1Prime'],_0x5a2185=_0x26ce86['c2Prime'];}else _0x3a4d5f=_0x19e012,_0x5a2185=[];let _0x550c31=this[_0x3d9cb6(0x43e)];_0x3a4d5f[_0x3d9cb6(0x3e6)](_0x135d43=>{const _0x2bb3fc=_0x3d9cb6;let _0x50d8dd;if(_0x550c31[_0x2bb3fc(0x249)]){const _0x16630c=this['_transformService'][_0x2bb3fc(0x384)](_0x135d43,_0x550c31);if(!_0x5d016b(_0x16630c))throw _0x16630c[_0x2bb3fc(0x44e)];_0x50d8dd=_0x16630c[_0x2bb3fc(0x227)],_0x550c31=_0x16630c[_0x2bb3fc(0x145)];}else _0x50d8dd=_0x135d43;this[_0x2bb3fc(0x1da)](_0x50d8dd);}),this[_0x3d9cb6(0x36f)]&&this[_0x3d9cb6(0x156)](),this[_0x3d9cb6(0x374)]&&_0x5a2185[_0x3d9cb6(0x249)]&&(_0x5a2185[0x0]['baseRev']=this[_0x3d9cb6(0x39b)]());let _0x5f3982;if(this[_0x3d9cb6(0x374)]&&_0x550c31['length']!==0x0)_0x5f3982=this[_0x3d9cb6(0x1ef)][_0x3d9cb6(0x274)](Y,this[_0x3d9cb6(0x452)],this[_0x3d9cb6(0x2f9)],_0x5a2185[0x0],_0x550c31,this['_handler']);else{if(this['_awaitingChangeset']&&_0x550c31[_0x3d9cb6(0x249)]===0x0)_0x5a2185[0x0][_0x3d9cb6(0x2b2)]=this['_getCurrentRevision'](),_0x5f3982=this[_0x3d9cb6(0x1ef)]['createInstance'](q,this['unitID'],this['type'],_0x5a2185[0x0],this['_handler']);else{if(_0x550c31['length']!==0x0){const _0x1e27e5=this[_0x3d9cb6(0x1ef)][_0x3d9cb6(0x274)](G,this[_0x3d9cb6(0x452)],this[_0x3d9cb6(0x2f9)],_0x550c31,this[_0x3d9cb6(0x233)]);_0x1e27e5[_0x3d9cb6(0x1d7)](),_0x5f3982=_0x1e27e5;}else _0x5f3982=this['_injector'][_0x3d9cb6(0x274)](Ue,this[_0x3d9cb6(0x452)],this[_0x3d9cb6(0x2f9)],this[_0x3d9cb6(0x233)]);}}return _0x5f3982['_updateLocalCache'](),_0x5f3982;}catch(_0x3a93a4){return this['_logService']['error'](_0x3d9cb6(0x252),'failed\x20to\x20apply\x20missed\x20changesets!',_0x3a93a4),this[_0x3d9cb6(0x1ef)][_0x3d9cb6(0x274)](Z,this['unitID'],this[_0x3d9cb6(0x2f9)],this[_0x3d9cb6(0x374)],this[_0x3d9cb6(0x43e)],this[_0x3d9cb6(0x233)],!0x1);}}[_0xa83ddf(0x3e1)](){const _0x5f3d88=_0xa83ddf;throw new Error(_0x5f3d88(0x309));}[_0xa83ddf(0x258)](_0x40930f){const _0x5f21b7=_0xa83ddf;return this[_0x5f21b7(0x43e)][_0x5f21b7(0x14e)](_0x40930f),this;}['onRemoteChangeset'](_0x51ceb9){const _0x378ff4=_0xa83ddf;return this['_queuedRemoteChangesets'][_0x378ff4(0x14e)](_0x51ceb9),this;}['onRemoteAck'](_0x2ab9d0){const _0x2e39eb=_0xa83ddf;if(this[_0x2e39eb(0x374)])return this[_0x2e39eb(0x36f)]=this['_awaitingChangeset'],this[_0x2e39eb(0x374)]=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}['onRemoteRej'](_0x13b804){const _0x3c20b9=_0xa83ddf;return this[_0x3c20b9(0x2c3)](!!(_0x13b804!=null&&_0x13b804['isPermissionRej']));}[_0xa83ddf(0x340)](){const _0x567a9d=_0xa83ddf;return this['_injector']['createInstance'](Q,this['unitID'],this[_0x567a9d(0x2f9)],this[_0x567a9d(0x374)],this[_0x567a9d(0x43e)],this['_handler']);}[_0xa83ddf(0x262)](){return this;}[_0xa83ddf(0x2c3)](_0x11675d){const _0x3e08a7=_0xa83ddf;return this[_0x3e08a7(0x1ef)]['createInstance'](Z,this[_0x3e08a7(0x452)],this[_0x3e08a7(0x2f9)],this[_0x3e08a7(0x374)],this['_pendingMutations'],this[_0x3e08a7(0x233)],_0x11675d);}};K=ce([f(0x7,_0x2854bc(_0x28aed1)),f(0x8,_0x2854bc(_0x4bf679)),f(0x9,_0x2854bc(D)),f(0xa,_0x31880b),f(0xb,_0x291fa9),f(0xc,_0x1e8ca5),f(0xd,_0x5b4b40)],K);function Ls(_0x1de4d8,_0x31e199,_0x2790da,_0x53228b,_0x7bf40,_0x936f21){const _0x560204=_0xa83ddf;return _0x53228b&&_0x7bf40[_0x560204(0x249)]?_0x1de4d8['createInstance'](Y,_0x31e199,_0x2790da,_0x53228b,_0x7bf40,_0x936f21):_0x53228b?_0x1de4d8['createInstance'](q,_0x31e199,_0x2790da,_0x53228b,_0x936f21):_0x7bf40[_0x560204(0x249)]?_0x1de4d8[_0x560204(0x274)](G,_0x31e199,_0x2790da,_0x7bf40,_0x936f21):_0x1de4d8[_0x560204(0x274)](Ue,_0x31e199,_0x2790da,_0x936f21);}function _0x28da(){const _0x843fa1=['_createInitialState','m1Prime','headers','_config','transformSelections','idSuffix','YUUMI_URL_COL_OUT_OF_RANGE','JOINING','roomMembers$','UNKNOWN_CMD','getOwnPropertySymbols','objects','NOT_FOUND','liveShareNewHost','AWAITING_WITH_PENDING','SHOULD_CLOSE_CONN','setShapeProps','_checkMissing','_getSignURL','_snapshotService','_onUserLeave','62202aeLgSo','2024988otLFjR','permissionRejEvent','enableAuthServer','socket\x20open.','[PendingState]:\x20received\x20acknowledgement.','fillRule','_initMergeInterceptor','_getMergeRange','color','clear','max','onPointerEnter$','OnLineSingle','startRow','univer-pro.collaboration-client.single-active-unit-service','fetching\x20missing\x20changesets\x20from\x20','colorChannel1','searchParams','INVALID_ARGUMENT','_acknowledgedAwaitingChangeset','params','_handleJoinEvent','UNRECOGNIZED','_initStatusListener','_awaitingChangeset','synced','getSkeleton','_drawTextRange','LIVESHARE_FETCH_OPERATIONS','_collaborationTimeoutTimer','onTransformChange$','_unlockTransition','_getSaveTimeout','resourceIDs','RemoveRowCommandId','_socketService','clearInterval','permission.content','current','_initCommandExecutedListener','transformMutationsWithChangeset','_onRemoteChangeset','onSendChangeset','tag','getTypeOfUnitAdded$','rgba(255,\x20255,\x20255,\x200.01)','arc','getActiveSheet','{fileID}','getUnhiddenWorksheets','hovered','open$','use','put','loadOfflineData','_onRemoteACK','setAlpha','328fScGYK','newCsEvent','pending','updateCursorEvent','InsertRangeMoveDownCommandId','onRemoteAck','_getCurrentRevision','objectActions','_disabled','LICENSE_IMPORT_SIZE_EXCEEDED','_socket','_undoRedoService','registerHTTPInterceptor','_send','\x20in\x20_schedule.','_cursorShapes','_updateCollabCursors','_replaceFileID','commentUpdate$','getDocRanges','&assign=','fetch_missing','exhaustSavingTask','CHANGESET_ACK','image/jpeg','RemoveColCommandId','toString','title','CONNECTOR_DATA_TOO_LARGE','defineProperty','call','/universer-api/comb','src','APPLY_NON_SEQUENTIAL_REVISION','onTransformSelections','createSocket','_refreshCollabCursors','_getAPIPrefix','pluginName','COMMENT_UPDATE','_handleHover','&to=','history','_updateSubUnitFromURLParams','status$','Error\x20on\x20receiving\x20event','catch','[OfflineState]:\x20received\x20changeset.','members','responseType','compose','currentColor','INGEST','_clearUndo','json','initWorkbookPermissionChange','_removeRoom','patch','round','DeleteRangeMoveUpCommandId','1em','UNDEFINED','getRoom','_commentUpdate$','list','off-line-single','whenReady','OTHER_CLIENTS_EDITING','syncEditingCollabCursor','#fff','newValue','textRanges','unitId','LICENSE_EXPORT_SIZE_EXCEEDED','PERMISSION_REJ','_exhaustRemoteChangesetQueue','resend','YUUMI_SUBSCRIPTION_NOT_FOUND','_transformUndoRedoStack','gold400','PERMISSION_DENIED','forEach','clearTimeout','status','collabCursorState$','fetchThroughInterceptors','INTERNAL_ERROR','setCurrentUser','href','code','liveShareOperation','_onLocalMutation','_loadDoc','USERS_LEAVE','_scheduleClearOtherTimer','39268MbXahf','NOT_COLLAB','COMPRESS_MUTATION_SEND','_initStatusComponent','_onFetchMissResult','_sendHeartbeat','currentSkeleton$','set','updateCollaborator','getFocusedUnit','collaboration.closeRoom','_context','_transformRemoteChangesetByIMECache','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','subunit','onRendered','_disableEditing','resolve','?size=','Warning','_event$','sessionStatus$','FileId','_remoteChangesetQueue','_onJoinRoomEvent','getCollabEntity$','_decreaseWaiting','collaborators','online','_joinRoom','override','cmd','message$','joinRsp','rev','RECV','_localStorageService','getCurrentUnitForType','_transitionLocked','size','_initModules','_setupSubUnitSync','_updateState','_transformSelections','width','_transformPreviousActiveRange','_range','map','_retryCount','_state','Unknown\x20user','debug','_refRangeService','setParam','symbol','[OfflineState]:\x20received\x20rejection.','_collaborationPaused','_members','OFFLINE','prototype','COLLAB_SUBMIT_CHANGESET_URL','registerRefRange','_saveTaskMap','path','defs','_backgroundColor','getConfig','has','_renderManagerService','change$','_transformStack','mutations','NO_OTHER_CLIENTS_EDITING','IDLE','_pendingMutations','SNAPSHOT_INVALID_SNAPSHOT','_collabCursorController','get','_configService','result','image/gif','MUTATION','saveImage','generateRandomId','_substituteRedoStack','_clearLocalCache','_univerInstanceService','_unitID','getUnitType','indexOf','error','onPointerMove$','then','apply','unitID','HEARTBEAT_INTERVAL','_onConnectionOpen','listRoles','cursorInfo$','_getRedoStack','socketService','UNIVER_SLIDE','/object/','collabStatus.notCollab','assignAColorForMemberID','PENDING','_initCloseConn','univer-pro.collaboration-client-socket-service','UnitEmbedded','url(#off-line-single_clip0_910_343)','InsertRowCommandId','userID','FETCH_MISS','_cachedData','getSheetBySheetId','_getScale','NEW_CHANGESETS','memberID','_color','_localeService','findNodePositionByCharIndex','onlyLocal','selections','disposeWithMe','DeleteRangeMoveLeftCommandId','dispose','localeService','asObservable','range','[PendingState]:\x20received\x20rejection.','drawWith','function','[CollaborationSessionService]:\x20socket\x20error','/-/object/list','/new_changes','UniverIcon','onTransformRemoteChangesetByIMECache','_permissionService','getMergeData','_memberService','_removeCollabCursors','location','_httpService','revision','POST','InsertRangeMoveRightCommandId','m2Prime','_sessionStatus$','FromArray','isActive','off-line-single_clip0_910_343','_session','_entities','doc.mutation.rich-text-editing','APPLY_PERMISSION_DENIED','push','send','all','_transformIMECache','workbook','_commandService','_urlService','52940kEzRxv','_incrementRevisionNumber','svg','_localCacheService','session.will-retry','isPermissionRej','collab-rect-range-','_handleHeartbeatEvent','div','_initResize','UPDATE_CURSOR','min','focused$','_docSyncEditingCollabCursorService','_undoStacks','save','reverse','RETRY_CONNECTING_MAX_COUNT','substring','reject','getParam','_createInitialStateImpl','_isPermissionRej','onlineStatusTitle','onMissingChangesets','onlineStatus','_updateURLWithCurrentState','close$','SNAPSHOT_URL_KEY','values','includes','HEARTBEAT_TIMEOUT','not_collab','/rev/','_collaborationController','show','_getSnapshotAPIPrefix','collaboration.single-unit.warning','HttpExport','file','from','VIEW_MAIN','_notificationService','COMPRESS_MUTATION_APPLY','Starting','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_handleLeaveEvent','_imageSourceCache','Undefined','routeKey','_onCombEvent','getWorkbookSelections','createCollaborator','_anchor','_onCursorDelete','_startCollaboration','_textBubble','connection\x20error','csAckEvent','getOwnPropertyDescriptor','permission.title','uni.network.url-service','getUndoRedoMutationParamsCache','_singleActiveUnitService','post','hasOwnProperty','text','on-line-single_clip0_910_349','/universer-api/stream/file/upload','enableOfflineEditing','_createSocket','objectID','_messageService','every','filter','_onConnectionFailed','on-line-single','unknown','_shapes','_themeService','_socketReady','startColumn','PSEUDO_FETCH_MISSING_RESULT','_ensureSubject','getCurrentSelections','_socketMessageSubscription','_syncEditingCollabCursor','getValue','getCellPositionByOffset','xlink:href','_eventUnsubscribe','_commentService','refreshPermission','_docSkeletonManagerService','session.room-full','batchAllowed','_type','Steady','hide','transformIMECache','image/bmp','beginPath','_snapshotServerService','_hovered','makeDirty','registerRenderModule','transformStack\x20failed!','_updateLocalCursor','selection','_cursorInfo$','_lockTransition','_entityInit$','saveChangeset','event$','_sendHeartbeatTimer','_removeClearOtherTimer','_getSheetObject','univer-online-status-icon','_getCtorByUniverType','split','_unitStatus','image/png','SNAPSHOT_HAS_BEEN_REMOVED','_name','_anchorDot','allowed','onMouseMove','_onRefRangeChange','startsWith','_docTransformIMECacheService','_schedule','_collabSessionService','saveSnapshot','_executeRemoteChangeset','infoRsp','_hideTimer','name','_socket$','APPLY_REJECT','target','_showConflictNotification','updateOfflineData','EXCHANGE_SIGN_URL_SERVER_URL_KEY','_getAPIPrefixPath','Error','save\x20fail\x20reason\x20is\x20','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_toggleOffline','closeSession','conflict','update','JOIN','_state$','loadDoc','_injector','_startSheetCollabCursor','_queuedRemoteChangesets','UNIVER_DOC','AUTHZ_URL_KEY','getCollabCursors$','setInterval','interceptor','\x0aAfter:\x20','loadSheet','setTimeout','joinEvent','_hover','getMemberID','onRemoteRej','_lastPointer','_clearRedo','_online','defIds','sheets','_ws','propertyIsEnumerable','getSheetId','_uiPartsService','_roomMembers','jiqing500','UNAUTHENTICATED','_drawAnchor','_rescheduleHeartbeatEvent','transform','/collaborator','ALREADY_EXISTS','transformUndoRedo','isArray','_status$','_onCursorUpdate','_onUserJoin','body','getResourcesRequest','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','eventID','USERS_ENTER','pushState','_unitOnClients','_clearOtherTimers','_getLoginPath','assign','fetchMissingChangesets','_clearScheduledTask','roomInfos','_onRemoteRejected','subscribe','UPDATE_PERMISSION_OBJ','/universer-api/oidc/authpage','_docTransformSelectionsService','[DataLoaderController]','c1Prime','conflict.title','_HTTPService','_setupBeforeClosingHandler','dispose$','_clearTimeoutTimer','CHANGESET_REJ','_initUnitPermissionChange','purple300','_startDocCollabCursor','_roomMembers$','originalMeta','_handler','encode','_waitCount','977652aWxQqH','_clearCollaborationTimeoutTimer','getCurrentRevForDocument','addEventListener','actions','LICENSE_DISTRO_REJECTED','fill','unsubscribe','onCommentUpdate','_syncEditingCollabCursorService','string','_applyRemoteChangeset','/-/object/-/batch_allowed','BASE64','setUndoRedoMutationParamsCache','getRelativeToViewportCoord','getInterceptPoints','/unit/','_getUndoStack','length','APPLY_REVISION_CONFILICT','_retryConnectingTimer','fillStyle','unload','COLLAB_WEB_SOCKET_URL','RETRY_CONNECTING_INTERVAL','sessionStatus','measureText','[FetchMissState]','312ggIOdw','addObjects','addImageSourceCache','LEAVE','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','appendMutation','HEADER_MENU','HELLO','MSG_FOR_ERROR','closePath','\x20to\x20','YUUMI_UNABLE_LOAD_URL','CONFLICT','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','onStateChange','toggleOnline','changesets','labelPosition','_assignedColors','_waitForHeartbeatResponse','_init','/universer-api/file/{fileID}/sign-url','LIVESHARE_REQUEST_HOST','getImage','/object','LIVESHARE_TERMINATE','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','displayName','setItem','removeParam','saveOfflineData','_change$','none','createInstance','replaceState','_onMessage','UNKNOWN_CODE','_render','_heartbeatTimer','getUnitId','removeMember','fillText','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','onSyncEditingCollabCursor','getCurrentUser','_sheetTransformSelectionsService','_draw','UNIVER_UNKNOWN','_sendingTimer','stringify','[UniverCollaborationClientPlugin]','_collabCursorState$','extend','_updateStatus','_cursors','_getSendChangesetTimeout','deepClone','_loadSheet','InsertColCommandId','ranges','concat','isEditing','_fetchMissChangesets','getTime','onTransformIME','_updateLocalCache','urlChange$','entries','_sessions','red300','font','_registerDependencies','SNAPSHOT_SERVER_URL_KEY','delete','_tryEnsureSocket','getUniverSheetInstance','pauseCollaboration','collabStatus.syncing','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','M0\x200H16V16H0z','fromCollab','addObject','offline','updateMember','_selfUnitIDs','getAncestorScale','TOO_MANY_REQUESTS','/fetchmissing?from=','_registerRenderDependencies','UNIVER_SHEET','storage','resize','close','_timeoutTimer','transformChangesets','baseRev','restore','3ZTwqOB','1657773JjrSjs','_handleEvent','collab-text-anchor-','getRangePointData','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','attrs','_userManagerService','registerBeforeClose','_toggleOnline','_getUploadFileURL','getSheetBlock','onlineStatusIcon','onRemoteChangeset','getMember','_onConflict','updatePermissionPoint','awaitingChangeset','_revisionService','SUBMIT_CHANGESET','parse','_drawRectRange','_docStateChangeManagerService','_scene','ws://127.0.0.1:8000/universer-api/comb/connect','LIVESHARE_NEW_HOST','unshift','data','auth.needGotoLoginAlert','requireSession','?url=','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_onRecvEvent','transformMutation','replaceTextRanges','collabStatus.fetchMiss','_scheduleTimestamp','collaMsg','unit-cache-','140xsvOyE','getUnitStatus$','[CollaborationEntity]','reduce','enableLocalCache','_beforeCloseService','_createHandler','toRgbString','_getAnchorBounding','pipe','#FFF','[CollaborationSession]','bottom','_compressMutationService','top','submit\x20changeset\x20error!','black','url(#$1','state','_transformService','_scheduleReconnection','collaboratorID','subscribeEvent','[CollaborationUndoRedoService]','_labelPosition','_scheduleCollaborationTimeoutTimer','CHANGESET_REVISION_CONFILICT','children','add','type','getImageSourceCache','...','icon','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','awaiting','createElement','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','disableLocalCache','random','sheetId','withCredentials','onload','collabStatus.offline','onPointerLeave$','complete','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','onCommandExecuted','_colorIndex','LIVESHARE_OPERATION','FAIL','SYNCED','_colorAssignService','ONLINE','next','objectType','verdancy600','onMissedChangesetFetched','ACTIVE_UNIT_EVENT_CHANNEL','FETCH_MISSING','backgroundColor','executeCommand','_scheduleSaving','clipPath','find','OffLineSingle','collab-text-range-','UNIVER_PROJECT','_saveCache','_sheetSkeletonManagerService','init','replace','0\x200\x2016\x2016','url(#on-line-single_clip0_910_349)','getItem','/allowed','ERROR_IMAGE','251053LFETTc','deleteCollaborator','encodeURIComponent','_http','_id','conflict.content','_collaborationSessionService','requestParams','[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.','getTypeOfUnitDisposed$','error$','ERROR_IMAGE_TYPE','trim','lineTo','[CollaborationSessionService]','cursorInfo','subUnitId','_clearHeartbeatTimer','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','roomMembers','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_logService','currentTheme$','_submitChangeset','toggleOffline','HttpImport','HEARTBEAT','onStarting','transformRemoteChangeset','column'];_0x28da=function(){return _0x843fa1;};return _0x28da();}var nr=Object[_0xa83ddf(0x3b2)],rr=Object[_0xa83ddf(0x190)],st=(_0x5db3ad,_0x4ddebd,_0x506422,_0x2404c3)=>{const _0x1b0f97=_0xa83ddf;for(var _0x4d5fd8=_0x2404c3>0x1?void 0x0:_0x2404c3?rr(_0x4ddebd,_0x506422):_0x4ddebd,_0x1c509f=_0x5db3ad[_0x1b0f97(0x249)]-0x1,_0x382e3a;_0x1c509f>=0x0;_0x1c509f--)(_0x382e3a=_0x5db3ad[_0x1c509f])&&(_0x4d5fd8=(_0x2404c3?_0x382e3a(_0x4ddebd,_0x506422,_0x4d5fd8):_0x382e3a(_0x4d5fd8))||_0x4d5fd8);return _0x2404c3&&_0x4d5fd8&&nr(_0x4ddebd,_0x506422,_0x4d5fd8),_0x4d5fd8;},p=(_0x8fcb72,_0x5b6114)=>(_0x3f4243,_0x32f8c9)=>_0x5b6114(_0x3f4243,_0x32f8c9,_0x8fcb72);let Me=class extends _0x26114b{constructor(_0x29b6e6,_0xf60cf8,_0x3ba4d1){const _0x4f40fc=_0xa83ddf;super(),_(this,_0x4f40fc(0x14b),new Map()),_(this,_0x4f40fc(0x1c4),new _0x27d684()),(this[_0x4f40fc(0x1ef)]=_0x29b6e6,this[_0x4f40fc(0x1d8)]=_0xf60cf8,this[_0x4f40fc(0x44a)]=_0x3ba4d1,this[_0x4f40fc(0x267)]());}[_0xa83ddf(0x471)](){const _0x2bf1d5=_0xa83ddf;super[_0x2bf1d5(0x471)](),this[_0x2bf1d5(0x14b)][_0x2bf1d5(0x3e6)](_0x63624=>_0x63624[_0x2bf1d5(0x471)]()),this['_entities'][_0x2bf1d5(0x365)]();}['getCollabEntity'](_0xe0633f){const _0x1bec2e=_0xa83ddf;var _0x2c122a;return(_0x2c122a=this['_entities'][_0x1bec2e(0x441)](_0xe0633f))!=null?_0x2c122a:null;}['getCollabEntity$'](_0x77e4e1){const _0x5a29c6=_0xa83ddf,_0x598b1c=this['getCollabEntity'](_0x77e4e1);return _0x598b1c?_0x2e1ce7(_0x598b1c):this[_0x5a29c6(0x1c4)][_0x5a29c6(0x2e5)](_0x4393c3(_0x14488d=>_0x14488d[_0x5a29c6(0x452)]===_0x77e4e1));}[_0xa83ddf(0x267)](){const _0x1b8712=_0xa83ddf;this[_0x1b8712(0x44a)][_0x1b8712(0x388)](_0x54437b[_0x1b8712(0x2ac)])[_0x1b8712(0x2e5)](_0x4b5283(this[_0x1b8712(0x22b)]),_0x3db649(0x10))[_0x1b8712(0x222)](async _0x362b5c=>{const _0x2631ff=_0x1b8712,_0x247424=_0x362b5c[_0x2631ff(0x27a)](),_0x3a9845=await this[_0x2631ff(0x18c)](_0x247424,H[_0x2631ff(0x2ac)]);this[_0x2631ff(0x14b)][_0x2631ff(0x3fb)](_0x247424,_0x3a9845);}),this[_0x1b8712(0x44a)]['getTypeOfUnitAdded$'](_0x54437b['UNIVER_DOC'])[_0x1b8712(0x2e5)](_0x4b5283(this['dispose$']),_0x3db649(0x10))['pipe'](_0x4393c3(_0x44329a=>!_0x44329a['getUnitId']()[_0x1b8712(0x1d5)]('__')))[_0x1b8712(0x222)](async _0x2f1d9c=>{const _0x3713c3=_0x1b8712,_0x17e0ae=_0x2f1d9c[_0x3713c3(0x27a)](),_0x41ec79=await this[_0x3713c3(0x18c)](_0x17e0ae,H[_0x3713c3(0x1f2)]);this[_0x3713c3(0x14b)][_0x3713c3(0x3fb)](_0x17e0ae,_0x41ec79);}),_0x19b764(this[_0x1b8712(0x44a)][_0x1b8712(0x331)](_0x54437b[_0x1b8712(0x2ac)]),this['_univerInstanceService'][_0x1b8712(0x331)](_0x54437b[_0x1b8712(0x1f2)]))[_0x1b8712(0x2e5)](_0x4b5283(this[_0x1b8712(0x22b)]))[_0x1b8712(0x222)](_0x1e16e6=>{const _0x54a35c=_0x1b8712,_0x1cfde7=_0x1e16e6[_0x54a35c(0x27a)](),_0xc22d71=this[_0x54a35c(0x14b)]['get'](_0x1cfde7);_0xc22d71&&(_0xc22d71[_0x54a35c(0x471)](),this[_0x54a35c(0x14b)][_0x54a35c(0x29c)](_0x1cfde7));});}async[_0xa83ddf(0x18c)](_0x142cc0,_0x31acbd){const _0x65fb43=_0xa83ddf,_0x49c098=await this[_0x65fb43(0x1d8)]['requireSession'](_0x142cc0),_0xe84e59=this['_injector']['createInstance'](this[_0x65fb43(0x1cb)](_0x31acbd),_0x142cc0,_0x31acbd,_0x49c098);return await _0xe84e59[_0x65fb43(0x321)](),this[_0x65fb43(0x1c4)][_0x65fb43(0x311)](_0xe84e59),_0xe84e59;}[_0xa83ddf(0x1cb)](_0x1d6475){const _0xdc4fc0=_0xa83ddf;switch(_0x1d6475){case H[_0xdc4fc0(0x1f2)]:return Et;case H['UNIVER_SHEET']:return Ct;default:throw new Error(_0xdc4fc0(0x401)+_0x1d6475);}}};Me=st([_0x3b619c(_0x13d562['Starting'],Me),p(0x0,_0x2854bc(_0x28aed1)),p(0x1,_0x2854bc(pe)),p(0x2,_0x1b1ada)],Me);let Ze=class extends _0x26114b{constructor(_0x35da4c,_0x1c7c09,_0x55434e,_0x81db57,_0x163133,_0x3fc906,_0x19c2c9,_0x58a427,_0x1b27c1,_0x14ea8d,_0x4effe8,_0x5d402d,_0x4732c8){const _0x1e9435=_0xa83ddf;super(),_(this,_0x1e9435(0x1ed),new _0xbc7543(null)),_(this,'state$',this[_0x1e9435(0x1ed)][_0x1e9435(0x473)]()),_(this,_0x1e9435(0x425)),_(this,_0x1e9435(0x42c),!0x1),_(this,_0x1e9435(0x3c1),this['state$']['pipe'](_0x255c5b(_0x2f57a7=>_0x2f57a7?_0x2f57a7[_0x1e9435(0x3e8)]:P[_0x1e9435(0x42e)]),_0x28cb00(0x1))),_(this,_0x1e9435(0x41a),!0x1),_(this,_0x1e9435(0x40b),[]),(this[_0x1e9435(0x452)]=_0x35da4c,this[_0x1e9435(0x1b5)]=_0x1c7c09,this[_0x1e9435(0x14a)]=_0x55434e,this[_0x1e9435(0x1ef)]=_0x81db57,this[_0x1e9435(0x158)]=_0x163133,this[_0x1e9435(0x2e9)]=_0x3fc906,this['_localeService']=_0x19c2c9,this[_0x1e9435(0x2c6)]=_0x58a427,this['_logService']=_0x1b27c1,this[_0x1e9435(0x153)]=_0x14ea8d,this[_0x1e9435(0x19d)]=_0x4effe8,this['_permissionService']=_0x5d402d,this[_0x1e9435(0x194)]=_0x4732c8);}get['state'](){const _0x2b4b29=_0xa83ddf;return this[_0x2b4b29(0x425)];}async[_0xa83ddf(0x321)](){const _0x5b75a8=_0xa83ddf;if(this[_0x5b75a8(0x2ee)])throw new Error(_0x5b75a8(0x2d4));await this[_0x5b75a8(0x267)]();}[_0xa83ddf(0x29f)](){const _0x318ac7=_0xa83ddf;return this[_0x318ac7(0x42c)]=!0x0,_0x5bf8dd(()=>{const _0x2ad864=_0x318ac7;this['_collaborationPaused']=!0x1,this[_0x2ad864(0x3e0)]();});}['_updateState'](_0x458aca){const _0x5d5160=_0xa83ddf;this[_0x5d5160(0x425)]=_0x458aca,this[_0x5d5160(0x1ed)][_0x5d5160(0x311)](_0x458aca);}async[_0xa83ddf(0x267)](){const _0x3a58fb=_0xa83ddf;var _0x29340c;return this['_updateState'](await this['_createInitialState']()),this[_0x3a58fb(0x194)]&&((_0x29340c=this[_0x3a58fb(0x194)])==null||_0x29340c['editingUnit'](this[_0x3a58fb(0x452)]),this[_0x3a58fb(0x46f)](_0x5bf8dd(this['_singleActiveUnitService'][_0x3a58fb(0x2dd)](this[_0x3a58fb(0x452)])['subscribe'](_0x57be80=>{const _0xa3e268=_0x3a58fb;this[_0xa3e268(0x33d)]['debug'](_0xa3e268(0x2de),'editing\x20status\x20changed\x20to',_0x57be80),_0x57be80===Us[_0xa3e268(0x3d8)]?(this['_messageService']['show']({'content':this[_0xa3e268(0x46b)]['t'](_0xa3e268(0x17a)),'type':_0x403ffc['Warning']}),this[_0xa3e268(0x47d)]['updatePermissionPoint'](new _0x2efdca(this[_0xa3e268(0x452)])['id'],!0x1)):this[_0xa3e268(0x47d)][_0xa3e268(0x2c4)](new _0x2efdca(this[_0xa3e268(0x452)])['id'],!0x0);})))),this[_0x3a58fb(0x46f)](_0x5bf8dd(this[_0x3a58fb(0x14a)]['sessionStatus$'][_0x3a58fb(0x222)](_0x366e42=>{const _0x1a7a77=_0x3a58fb;_0x366e42===fe[_0x1a7a77(0x310)]?this[_0x1a7a77(0x2bd)]():_0x366e42===fe[_0x1a7a77(0x42e)]&&this['_toggleOffline']();}))),this[_0x3a58fb(0x46f)](_0x5bf8dd(this['_session']['event$'][_0x3a58fb(0x222)](_0x1529ad=>{const _0x1f069a=_0x3a58fb;try{switch(_0x1529ad[_0x1f069a(0x217)]){case _0x4e62f0[_0x1f069a(0x468)]:{this[_0x1f069a(0x385)](_0x2d3fa1(_0x1529ad['data']));break;}case _0x4e62f0[_0x1f069a(0x3ac)]:{this[_0x1f069a(0x393)](_0x1529ad['data']);break;}case _0x4e62f0[_0x1f069a(0x22d)]:{this[_0x1f069a(0x221)]();break;}case _0x4e62f0[_0x1f069a(0x1a7)]:{this[_0x1f069a(0x3f8)](_0x1529ad[_0x1f069a(0x2cf)][_0x1f069a(0x263)][_0x1f069a(0x423)](_0x57090d=>_0x2d3fa1(_0x57090d)));break;}case _0x4e62f0[_0x1f069a(0x3df)]:this['_onRemoteRejected']({'isPermissionRej':!0x0});}}catch(_0x48670f){throw console[_0x1f069a(0x44e)](_0x1f069a(0x3c2),_0x48670f),_0x48670f;}}))),this[_0x3a58fb(0x425)];}['_unlockTransition'](){this['_transitionLocked']=!0x1;}[_0xa83ddf(0x1c3)](){const _0x12a1d1=_0xa83ddf;if(this['_transitionLocked'])throw new Error(_0x12a1d1(0x330));this[_0x12a1d1(0x41a)]=!0x0;}[_0xa83ddf(0x3f0)](_0x18fbcb){const _0x39469f=_0xa83ddf;this['_lockTransition'](),this[_0x39469f(0x41e)](this[_0x39469f(0x425)][_0x39469f(0x258)](_0x18fbcb)),this['_unlockTransition']();}[_0xa83ddf(0x385)](_0x1c94b3){const _0x4d60de=_0xa83ddf;if(!(_0x1c94b3[_0x4d60de(0x142)]<=this['_revisionService'][_0x4d60de(0x238)](this[_0x4d60de(0x452)]))){if(this[_0x4d60de(0x42c)]){this['_remoteChangesetQueue'][_0x4d60de(0x14e)](_0x1c94b3);return;}this[_0x4d60de(0x241)](_0x1c94b3);}}['_exhaustRemoteChangesetQueue'](){const _0x246e97=_0xa83ddf;this[_0x246e97(0x40b)][_0x246e97(0x3e6)](_0x33258d=>this[_0x246e97(0x241)](_0x33258d)),this[_0x246e97(0x40b)]=[];}['_applyRemoteChangeset'](_0x3fcc93){const _0x165f76=_0xa83ddf,_0x139a58=this[_0x165f76(0x2e9)][_0x165f76(0x1f6)][_0x165f76(0x3ea)](this['_compressMutationService']['interceptor'][_0x165f76(0x246)]()[_0x165f76(0x180)])(_0x3fcc93[_0x165f76(0x43b)],null)||_0x3fcc93['mutations'],_0x1c523e={..._0x3fcc93,'mutations':_0x139a58};this['_lockTransition'](),this[_0x165f76(0x41e)](this[_0x165f76(0x425)][_0x165f76(0x2c1)](_0x1c523e)),this['_unlockTransition']();}['_onRemoteACK'](_0x1f9333){const _0x346007=_0xa83ddf;this[_0x346007(0x1c3)](),this[_0x346007(0x41e)](this['_state'][_0x346007(0x39a)](_0x1f9333)),this[_0x346007(0x37b)]();}['_onRemoteRejected'](_0x286cfc){const _0x400e5e=_0xa83ddf;this[_0x400e5e(0x1c3)](),this[_0x400e5e(0x41e)](this[_0x400e5e(0x425)][_0x400e5e(0x1fd)](_0x286cfc)),this[_0x400e5e(0x37b)]();}[_0xa83ddf(0x3f8)](_0x599417){const _0x3719a1=_0xa83ddf;if(!(this[_0x3719a1(0x425)]instanceof K))throw new TypeError(_0x3719a1(0x2fd));const _0x328339=_0x599417[_0x3719a1(0x423)](_0x533d10=>{const _0x15a3a6=_0x3719a1,_0x2d2ae9=this['_compressMutationService'][_0x15a3a6(0x1f6)][_0x15a3a6(0x3ea)](this[_0x15a3a6(0x2e9)][_0x15a3a6(0x1f6)][_0x15a3a6(0x246)]()[_0x15a3a6(0x180)])(_0x533d10[_0x15a3a6(0x43b)],null)||_0x533d10['mutations'];return{..._0x533d10,'mutations':_0x2d2ae9};});this[_0x3719a1(0x1c3)](),this['_updateState'](this[_0x3719a1(0x425)][_0x3719a1(0x314)](_0x328339)),this['_unlockTransition']();}['_toggleOffline'](){const _0x2a8d82=_0xa83ddf;this[_0x2a8d82(0x1c3)](),this[_0x2a8d82(0x41e)](this[_0x2a8d82(0x425)][_0x2a8d82(0x340)]()),this[_0x2a8d82(0x37b)]();}['_toggleOnline'](){const _0x1d9e0b=_0xa83ddf;this[_0x1d9e0b(0x1c3)](),this[_0x1d9e0b(0x41e)](this[_0x1d9e0b(0x425)][_0x1d9e0b(0x262)]()),this['_unlockTransition']();}async[_0xa83ddf(0x346)](){return new Promise(_0x3e7504=>{const _0x4ae1da=_0xed79;this[_0x4ae1da(0x14a)][_0x4ae1da(0x409)][_0x4ae1da(0x2e5)](_0x4bc9cf(0x1))[_0x4ae1da(0x222)](async _0xa0e690=>{_0x3e7504(await this['_createInitialStateImpl'](_0xa0e690===fe['ONLINE']));});});}[_0xa83ddf(0x2e2)](){const _0xca2c51=this['unitID'];return{'onStateChange':(_0x3c0334,_0x3f3807)=>{const _0x56f39d=_0xed79;if(_0x3c0334!==this[_0x56f39d(0x425)])throw new Error(_0x56f39d(0x2d3)+_0x3c0334[_0x56f39d(0x3e8)]+_0x56f39d(0x1f7)+_0x3f3807['status']+'\x0aCurrent:\x20'+this[_0x56f39d(0x425)][_0x56f39d(0x3e8)]);this[_0x56f39d(0x41e)](_0x3f3807);},'onSendChangeset':_0x1467d8=>{const _0x31db4a=_0xed79,_0xfdb6a3={'eventID':_0x4e62f0['SUBMIT_CHANGESET'],'data':{'unitID':_0x1467d8['unitID'],'unitType':this[_0x31db4a(0x1b5)],'changeset':_0x1467d8,'memberID':this['_session']['getMemberID']()}};this['_session']['send'](_0xfdb6a3,this[_0x31db4a(0x452)]);},'onMissingChangesets':({from:_0x741bbc,to:_0x109587})=>{const _0x37440c=_0xed79;this[_0x37440c(0x33d)][_0x37440c(0x427)](_0x37440c(0x2de),_0x37440c(0x36b)+_0x741bbc+_0x37440c(0x25d)+_0x109587);const _0x5ec47e={'eventID':_0x4e62f0['FETCH_MISSING'],'data':{'unitID':_0xca2c51,'unitType':this['_type'],'from':_0x741bbc,'to':_0x109587}};this[_0x37440c(0x14a)][_0x37440c(0x14f)](_0x5ec47e,this[_0x37440c(0x452)]);}};}async[_0xa83ddf(0x16a)](_0x106712){const _0x5b66bf=_0xa83ddf;var _0x2bdf5d,_0x522e6f;const _0x4e73ae=await this[_0x5b66bf(0x158)][_0x5b66bf(0x392)](this[_0x5b66bf(0x452)]),_0x1b717b=(_0x2bdf5d=_0x4e73ae==null?void 0x0:_0x4e73ae[_0x5b66bf(0x43b)])!=null?_0x2bdf5d:[],_0x2a5a80=(_0x522e6f=_0x4e73ae==null?void 0x0:_0x4e73ae[_0x5b66bf(0x2c5)])!=null?_0x522e6f:null,_0x30ddd6=this['unitID'];try{this['_replayCachedMutations'](_0x2a5a80,_0x1b717b);}catch(_0x33d80a){this[_0x5b66bf(0x33d)][_0x5b66bf(0x44e)](_0x33d80a);}const _0x4ee6ae=this[_0x5b66bf(0x2e2)]();if(_0x106712){const _0x2fbe21=Ls(this[_0x5b66bf(0x1ef)],_0x30ddd6,this['_type'],_0x2a5a80,_0x1b717b,_0x4ee6ae);return _0x2fbe21 instanceof G?_0x2fbe21[_0x5b66bf(0x1d7)]():(_0x2fbe21 instanceof Y||_0x2fbe21 instanceof q)&&_0x2fbe21[_0x5b66bf(0x3e1)](),_0x2fbe21;}return this[_0x5b66bf(0x1ef)][_0x5b66bf(0x274)](Q,_0x30ddd6,this[_0x5b66bf(0x1b5)],_0x2a5a80,_0x1b717b,_0x4ee6ae);}['_replayCachedMutations'](_0x421a3b,_0x4ee418){const _0x48fed5=_0xa83ddf;var _0x4922dd,_0x2f79dc;const _0x394aea=this[_0x48fed5(0x2e9)]['interceptor'][_0x48fed5(0x3ea)](this[_0x48fed5(0x2e9)]['interceptor']['getInterceptPoints']()[_0x48fed5(0x180)]);(_0x4922dd=_0x394aea((_0x421a3b==null?void 0x0:_0x421a3b[_0x48fed5(0x43b)])||[],null))==null||_0x4922dd[_0x48fed5(0x3e6)](_0x3d08fb=>this[_0x48fed5(0x153)][_0x48fed5(0x318)](_0x3d08fb['id'],_0x3d08fb[_0x48fed5(0x370)])),(_0x2f79dc=_0x394aea(_0x4ee418||[],null))==null||_0x2f79dc[_0x48fed5(0x3e6)](_0x88ad22=>this[_0x48fed5(0x153)][_0x48fed5(0x318)](_0x88ad22['id'],_0x88ad22['params']));}};Ze=st([p(0x3,_0x2854bc(_0x28aed1)),p(0x4,_0x2854bc(D)),p(0x5,_0x2854bc(_0x1c9e18)),p(0x6,_0x2854bc(_0x501416)),p(0x7,_0x2854bc(_0x4bf679)),p(0x8,_0x31880b),p(0x9,_0x291fa9),p(0xa,_0x192174),p(0xb,_0x524b2d),p(0xc,_0x36b891(tt))],Ze);let Et=class extends Ze{constructor(_0x3e7004,_0x595843,_0x1517ee,_0x22ff92,_0x24fa9a,_0x4400dd,_0x16bcd7,_0x497850,_0x4865b9,_0x80c340,_0xfea0a7,_0x3c395f,_0x214458,_0x1388c6,_0x2d782d,_0x93f811,_0x399434){const _0x6c08e9=_0xa83ddf;super(_0x3e7004,_0x595843,_0x1517ee,_0x22ff92,_0x24fa9a,_0x4400dd,_0x16bcd7,_0x497850,_0x214458,_0x1388c6,_0x2d782d,_0x93f811,_0x399434),this[_0x6c08e9(0x452)]=_0x3e7004,this[_0x6c08e9(0x2f9)]=_0x595843,this['session']=_0x1517ee,this[_0x6c08e9(0x2ca)]=_0x4865b9,this[_0x6c08e9(0x1d6)]=_0x80c340,this[_0x6c08e9(0x225)]=_0xfea0a7,this['_docSyncEditingCollabCursorService']=_0x3c395f;}[_0xa83ddf(0x2e2)](){const _0x4633bd=_0xa83ddf,_0x10d7c7=super[_0x4633bd(0x2e2)]();return _0x10d7c7[_0x4633bd(0x293)]=_0x41f92a=>this['_docTransformIMECacheService'][_0x4633bd(0x1b8)](_0x41f92a),_0x10d7c7[_0x4633bd(0x3b7)]=_0x1ce1bc=>this[_0x4633bd(0x225)][_0x4633bd(0x34a)](_0x1ce1bc),_0x10d7c7['onSyncEditingCollabCursor']=_0x52aa22=>this[_0x4633bd(0x162)][_0x4633bd(0x3d9)](_0x52aa22),_0x10d7c7['onTransformRemoteChangesetByIMECache']=_0xcd975b=>this[_0x4633bd(0x1d6)][_0x4633bd(0x344)](_0xcd975b),_0x10d7c7;}async['_init'](){const _0x4a7cab=_0xa83ddf,_0x16701f=await super['_init']();return this['disposeWithMe'](this[_0x4a7cab(0x153)][_0x4a7cab(0x30a)]((_0x31ded7,_0x2a9eb2)=>{const _0x55c297=_0x4a7cab;if(_0x31ded7[_0x55c297(0x2f9)]!==_0x20ade7['MUTATION']||_0x2a9eb2!=null&&_0x2a9eb2[_0x55c297(0x2a3)]||_0x2a9eb2!=null&&_0x2a9eb2[_0x55c297(0x46d)])return;const _0x38c9e7=_0x31ded7[_0x55c297(0x370)];if((_0x38c9e7==null?void 0x0:_0x38c9e7[_0x55c297(0x3dd)])!==this['unitID'])return;let _0x4ea0ed=_0x31ded7;if(_0x4ea0ed['id']===_0x53c1cb['id']){const _0x368caa=_0x4ea0ed[_0x55c297(0x370)];_0x4ea0ed={'id':_0x53c1cb['id'],'type':_0x20ade7[_0x55c297(0x445)],'params':{'unitId':_0x368caa[_0x55c297(0x3dd)],'actions':_0x368caa[_0x55c297(0x23a)],'textRanges':null}};}const _0x5cf473=this[_0x55c297(0x2e9)]['interceptor'][_0x55c297(0x3ea)](this['_compressMutationService'][_0x55c297(0x1f6)][_0x55c297(0x246)]()[_0x55c297(0x3f6)])([_0x4ea0ed],null)||[_0x4ea0ed];this[_0x55c297(0x3f0)](_0x5cf473[0x0]);})),_0x16701f;}};Et=st([p(0x3,_0x2854bc(_0x28aed1)),p(0x4,_0x2854bc(D)),p(0x5,_0x2854bc(_0x1c9e18)),p(0x6,_0x2854bc(_0x501416)),p(0x7,_0x2854bc(_0x4bf679)),p(0x8,_0x2854bc(_0x2f98ea)),p(0x9,_0x2854bc(Je)),p(0xa,_0x2854bc(ze)),p(0xb,_0x2854bc(xt)),p(0xc,_0x31880b),p(0xd,_0x291fa9),p(0xe,_0x192174),p(0xf,_0x524b2d),p(0x10,_0x36b891(tt))],Et);let Ct=class extends Ze{constructor(_0x172acd,_0x408828,_0x527df9,_0x551121,_0xef3545,_0x3a10d7,_0x4e44b3,_0x54e4cc,_0x1d321b,_0x1be2ab,_0x579a39,_0x203493,_0x44883f,_0x2d0acf){const _0x5a4ae9=_0xa83ddf;super(_0x172acd,_0x408828,_0x527df9,_0x551121,_0xef3545,_0x3a10d7,_0x4e44b3,_0x54e4cc,_0x1be2ab,_0x579a39,_0x203493,_0x44883f,_0x2d0acf),this[_0x5a4ae9(0x452)]=_0x172acd,this['type']=_0x408828,this['session']=_0x527df9,this[_0x5a4ae9(0x280)]=_0x1d321b;}[_0xa83ddf(0x2e2)](){const _0x14529c=_0xa83ddf,_0xef3ec3=super[_0x14529c(0x2e2)]();return _0xef3ec3['onTransformSelections']=_0x175091=>this[_0x14529c(0x280)][_0x14529c(0x34a)](_0x175091),_0xef3ec3;}async['_init'](){const _0x5537ba=_0xa83ddf,_0x22880b=await super[_0x5537ba(0x267)]();return this[_0x5537ba(0x46f)](this[_0x5537ba(0x153)][_0x5537ba(0x30a)]((_0x2c2bae,_0x14d7bb)=>{const _0x50f98a=_0x5537ba;if(_0x2c2bae[_0x50f98a(0x2f9)]!==_0x20ade7[_0x50f98a(0x445)]||_0x14d7bb!=null&&_0x14d7bb['fromCollab']||_0x14d7bb!=null&&_0x14d7bb['onlyLocal'])return;const _0x29f918=_0x2c2bae['params'];if((_0x29f918==null?void 0x0:_0x29f918[_0x50f98a(0x3dd)])!==this[_0x50f98a(0x452)])return;const _0x1b17b8=_0x2c2bae,_0x190cde=this[_0x50f98a(0x2e9)]['interceptor']['fetchThroughInterceptors'](this[_0x50f98a(0x2e9)][_0x50f98a(0x1f6)]['getInterceptPoints']()[_0x50f98a(0x3f6)])([_0x1b17b8],null)||[_0x1b17b8];this[_0x50f98a(0x3f0)](_0x190cde[0x0]);})),_0x22880b;}};Ct=st([p(0x3,_0x2854bc(_0x28aed1)),p(0x4,_0x2854bc(D)),p(0x5,_0x2854bc(_0x1c9e18)),p(0x6,_0x2854bc(_0x501416)),p(0x7,_0x2854bc(_0x4bf679)),p(0x8,_0x2854bc(qe)),p(0x9,_0x31880b),p(0xa,_0x291fa9),p(0xb,_0x192174),p(0xc,_0x524b2d),p(0xd,_0x36b891(tt))],Ct);const as=[_0xa83ddf(0x22f),_0xa83ddf(0x208),_0xa83ddf(0x313),_0xa83ddf(0x298),'blue400',_0xa83ddf(0x3e4)];class Ht extends _0x54b342{constructor(){const _0x19c168=_0xa83ddf;super(...arguments),_(this,_0x19c168(0x265),new Map()),_(this,'_colorIndex',0x0);}['assignAColorForMemberID'](_0x5e3e2a){const _0x4d5790=_0xa83ddf;if(this[_0x4d5790(0x265)]['has'](_0x5e3e2a))return this[_0x4d5790(0x265)][_0x4d5790(0x441)](_0x5e3e2a);const _0xdffe50=as[this[_0x4d5790(0x30b)]];return this[_0x4d5790(0x30b)]=(this['_colorIndex']+0x1)%as[_0x4d5790(0x249)],this[_0x4d5790(0x265)][_0x4d5790(0x3fb)](_0x5e3e2a,_0xdffe50),_0xdffe50;}}var or=Object['defineProperty'],ar=Object['getOwnPropertyDescriptor'],cr=(_0x141d97,_0x23d12d,_0x124892,_0x45a684)=>{const _0x2784f3=_0xa83ddf;for(var _0x594a30=_0x45a684>0x1?void 0x0:_0x45a684?ar(_0x23d12d,_0x124892):_0x23d12d,_0x5119b4=_0x141d97[_0x2784f3(0x249)]-0x1,_0x3e0255;_0x5119b4>=0x0;_0x5119b4--)(_0x3e0255=_0x141d97[_0x5119b4])&&(_0x594a30=(_0x45a684?_0x3e0255(_0x23d12d,_0x124892,_0x594a30):_0x3e0255(_0x594a30))||_0x594a30);return _0x45a684&&_0x594a30&&or(_0x23d12d,_0x124892,_0x594a30),_0x594a30;},le=(_0x55c2fe,_0x2d8ee4)=>(_0x2ce03b,_0x93b48a)=>_0x2d8ee4(_0x2ce03b,_0x93b48a,_0x55c2fe);const hr=0x12c,_r=0x64,lr=()=>{let _0xe4a27b=[],_0x24a1f1=!0x1;return _0x3ef3a6=>{const _0x42dbcc=_0xed79;_0xe4a27b[_0x42dbcc(0x14e)](_0x3ef3a6),_0x24a1f1||(_0x24a1f1=!0x0,setTimeout(()=>{const _0x5de50b=_0x42dbcc;_0xe4a27b[_0x5de50b(0x3e6)](_0x466c0f=>_0x466c0f()),_0xe4a27b=[],_0x24a1f1=!0x1;}));};};let bt=class extends _0x26114b{constructor(_0x521b9d,_0x44387b,_0x2fd024,_0x1fa536,_0x55e221,_0x197aac,_0x489c70,_0x4feb1c){const _0x57f9fb=_0xa83ddf;super(),_(this,_0x57f9fb(0x200),!0x1),_(this,_0x57f9fb(0x267),!0x1),_(this,'_cursorInfo$',new _0xbc7543(new Map())),_(this,'cursorInfo$',this[_0x57f9fb(0x1c2)]['asObservable']()),_(this,_0x57f9fb(0x231),new _0xbc7543([])),_(this,_0x57f9fb(0x34e),this[_0x57f9fb(0x231)][_0x57f9fb(0x2e5)](_0x5d9837(hr))),_(this,_0x57f9fb(0x1c0),_0x238659((_0x5107ba,_0x5cd1fd)=>{const _0x9f56b8=_0x57f9fb,_0x27ebbb={'eventID':_0x4e62f0[_0x9f56b8(0x15f)],'data':{'unitID':this[_0x9f56b8(0x452)],'memberID':this[_0x9f56b8(0x14a)][_0x9f56b8(0x1fc)](),'selection':_0x2fa69e(_0x5107ba,_0x5cd1fd['range'])}};this['_session'][_0x9f56b8(0x14f)](_0x27ebbb,this['unitID']);},_r)),(this['unitID']=_0x521b9d,this['_session']=_0x44387b,this['_injector']=_0x2fd024,this['_colorAssignService']=_0x1fa536,this[_0x57f9fb(0x13e)]=_0x55e221,this[_0x57f9fb(0x44a)]=_0x197aac,this[_0x57f9fb(0x153)]=_0x489c70,this[_0x57f9fb(0x428)]=_0x4feb1c);}get[_0xa83ddf(0x337)](){const _0x5f35d3=_0xa83ddf;return this[_0x5f35d3(0x1c2)][_0x5f35d3(0x1ac)]();}get['roomMembers'](){const _0x331df2=_0xa83ddf;return this['_roomMembers$'][_0x331df2(0x1ac)]();}[_0xa83ddf(0x471)](){const _0x309443=_0xa83ddf;super['dispose'](),this[_0x309443(0x1c2)][_0x309443(0x311)](new Map()),this[_0x309443(0x1c2)][_0x309443(0x308)](),this['_roomMembers$'][_0x309443(0x311)]([]),this[_0x309443(0x231)]['complete']();}['init'](){const _0x442ee2=_0xa83ddf;this[_0x442ee2(0x267)]||(this[_0x442ee2(0x267)]=!0x0,this[_0x442ee2(0x14a)][_0x442ee2(0x409)][_0x442ee2(0x2e5)](_0x4b5283(this['dispose$']))[_0x442ee2(0x222)](_0x396284=>{const _0x109739=_0x442ee2;_0x396284===fe['ONLINE']?this[_0x109739(0x2bd)]():this['_toggleOffline']();}),this[_0x442ee2(0x14a)][_0x442ee2(0x1c6)][_0x442ee2(0x2e5)](_0x4b5283(this[_0x442ee2(0x22b)]))[_0x442ee2(0x222)](_0x558190=>{const _0xc75872=_0x442ee2,_0x927c6b=_0x558190[_0xc75872(0x217)];_0x927c6b===_0x4e62f0[_0xc75872(0x15f)]&&this[_0xc75872(0x212)](_0x558190),_0x927c6b===_0x4e62f0['USERS_LEAVE']&&this[_0xc75872(0x18b)](_0x558190);}),this['_onRefRangeChange'](),this[_0x442ee2(0x46f)](this[_0x442ee2(0x153)][_0x442ee2(0x30a)](_0x4a1ae2=>{const _0x3f91ab=_0x442ee2;if(this[_0x3f91ab(0x200)]&&_0x4a1ae2['id']===_0x5fa864['id']&&_0x4a1ae2[_0x3f91ab(0x370)][_0x3f91ab(0x3dd)]===this['unitID']){const _0x46f008=_0x4a1ae2[_0x3f91ab(0x370)];this[_0x3f91ab(0x1c0)](_0x46f008[_0x3f91ab(0x338)],_0x46f008[_0x3f91ab(0x46e)][0x0]);}})));}[_0xa83ddf(0x212)](_0x2238ad){const _0x2fc48b=_0xa83ddf;var _0x4611d3,_0x5272f8;const {memberID:_0x3ed41f,selection:_0x3dbfc3}=_0x2238ad[_0x2fc48b(0x2cf)],{sheetName:_0x54ff00,range:_0x4ddbd4}=_0x4c55b7(_0x3dbfc3),_0x55a5ed={'name':(_0x5272f8=(_0x4611d3=this['_memberService'][_0x2fc48b(0x2c2)](this[_0x2fc48b(0x452)],_0x3ed41f))==null?void 0x0:_0x4611d3[_0x2fc48b(0x1dd)])!=null?_0x5272f8:_0x2fc48b(0x426),'range':this[_0x2fc48b(0x363)](_0x54ff00,_0x4ddbd4),'sheetID':_0x54ff00,'color':this['_colorAssignService'][_0x2fc48b(0x45c)](_0x3ed41f),'selection':_0x3dbfc3},_0x3a557a=this['cursorInfo'];_0x3a557a[_0x2fc48b(0x3fb)](_0x3ed41f,_0x55a5ed),this[_0x2fc48b(0x1c2)][_0x2fc48b(0x311)](_0x3a557a);}[_0xa83ddf(0x18b)](_0x43387a){const _0x1f380b=_0xa83ddf,{memberID:_0x4c5027}=_0x43387a[_0x1f380b(0x2cf)],_0x4ff910=this[_0x1f380b(0x337)];_0x4ff910[_0x1f380b(0x29c)](_0x4c5027),this['_cursorInfo$'][_0x1f380b(0x311)](_0x4ff910);}[_0xa83ddf(0x363)](_0x28c99d,_0x50fbf0){const _0x217c21=_0xa83ddf;var _0x57f571,_0x3e92ea;const _0x5876a0=(_0x3e92ea=(_0x57f571=this[_0x217c21(0x44a)][_0x217c21(0x29e)](this[_0x217c21(0x452)]))==null?void 0x0:_0x57f571[_0x217c21(0x466)](_0x28c99d))==null?void 0x0:_0x3e92ea[_0x217c21(0x13d)]();return(_0x5876a0==null?void 0x0:_0x5876a0[_0x217c21(0x31b)](_0x5978cd=>_0x405e44['contains'](_0x5978cd,_0x50fbf0)))||_0x50fbf0;}[_0xa83ddf(0x1d4)](){const _0x7e7aac=_0xa83ddf,_0x2b9eba=new _0x207116(),_0x280cd5=lr(),_0x3bcbde=()=>{const _0x845f9c=_0xed79;_0x2b9eba[_0x845f9c(0x471)]();const _0x307376=(_0xf53449,_0x3e5e68,_0x3be24f,_0x256aec)=>{const _0xf09871=_0x845f9c;let _0x35ff7f=[];switch(_0xf53449['id']){case _0x23dfbc[_0xf09871(0x470)]:{_0x35ff7f=_0x59566e(_0xf53449,_0x256aec);break;}case _0x23dfbc[_0xf09871(0x3d0)]:{_0x35ff7f=_0x3fdc0a(_0xf53449,_0x256aec);break;}case _0x23dfbc[_0xf09871(0x28d)]:{_0x35ff7f=_0x5db54b(_0xf53449,_0x256aec);break;}case _0x23dfbc[_0xf09871(0x399)]:{_0x35ff7f=_0x5751e9(_0xf53449,_0x256aec);break;}case _0x23dfbc[_0xf09871(0x144)]:{_0x35ff7f=_0x4f72f8(_0xf53449,_0x256aec);break;}case _0x23dfbc[_0xf09871(0x462)]:{_0x35ff7f=_0x4f79a5(_0xf53449,_0x256aec);break;}case _0x23dfbc['MoveRangeCommandId']:{_0x35ff7f=_0x32cf1a(_0xf53449,_0x256aec);break;}case _0x23dfbc[_0xf09871(0x3ae)]:{_0x35ff7f=_0x3a1e0d(_0xf53449,_0x256aec);break;}case _0x23dfbc[_0xf09871(0x37e)]:{_0x35ff7f=_0x354afa(_0xf53449,_0x256aec);break;}}const _0x4b3c5e=_0x279243(_0x35ff7f,_0x256aec),_0x19557b=this[_0xf09871(0x337)][_0xf09871(0x441)](_0x3e5e68);if(_0x19557b&&_0x4b3c5e){const _0x1c005e={..._0x19557b,'range':_0x4b3c5e};this[_0xf09871(0x337)][_0xf09871(0x3fb)](_0x3e5e68,_0x1c005e),_0x280cd5(()=>{const _0x4ba198=_0xf09871,_0x3625bb=this[_0x4ba198(0x428)]['registerRefRange'](_0x4b3c5e,_0x4114f6=>(_0x3625bb[_0x4ba198(0x471)](),_0x307376(_0x4114f6,_0x3e5e68,_0x3be24f,_0x4b3c5e)));_0x2b9eba[_0x4ba198(0x2f8)](_0x3625bb);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x845f9c(0x3e6)]((_0x2a6a7f,_0x160d8e)=>{const _0x1b5fdf=_0x845f9c,{range:_0xaa3e8d,sheetID:_0xd0c1c0}=_0x2a6a7f,_0x38d8fa=this[_0x1b5fdf(0x428)][_0x1b5fdf(0x431)](_0xaa3e8d,_0x4ca127=>(_0x38d8fa['dispose'](),_0x307376(_0x4ca127,_0x160d8e,_0xd0c1c0,_0xaa3e8d)));_0x2b9eba[_0x1b5fdf(0x2f8)](_0x38d8fa);});};this[_0x7e7aac(0x46f)](_0x5bf8dd(this['_cursorInfo$'][_0x7e7aac(0x222)](()=>{_0x3bcbde();})));}[_0xa83ddf(0x2bd)](){const _0x36325e=_0xa83ddf;var _0x2b13c2,_0x3b29ef;if(this[_0x36325e(0x200)]=!0x0,((_0x2b13c2=this[_0x36325e(0x44a)][_0x36325e(0x3fd)]())==null?void 0x0:_0x2b13c2[_0x36325e(0x27a)]())!==this[_0x36325e(0x452)])return;const _0x1a9f9e=(_0x3b29ef=this[_0x36325e(0x1ef)]['get'](_0x3bd81d)[_0x36325e(0x1a9)]())==null?void 0x0:_0x3b29ef[0x0],_0x3d5a05=this[_0x36325e(0x44a)][_0x36325e(0x419)](_0x54437b['UNIVER_SHEET'])['getActiveSheet']();_0x1a9f9e&&_0x3d5a05&&this['_updateLocalCursor'](_0x3d5a05[_0x36325e(0x205)](),_0x1a9f9e);}[_0xa83ddf(0x1e8)](){this['_online']=!0x1;}};bt=cr([le(0x2,_0x2854bc(_0x28aed1)),le(0x3,_0x2854bc(Ht)),le(0x4,_0x2854bc(ne)),le(0x5,_0x1b1ada),le(0x6,_0x291fa9),le(0x7,_0x2854bc(_0x180f6f))],bt);var ur=Object[_0xa83ddf(0x3b2)],dr=Object[_0xa83ddf(0x190)],mr=(_0x100cee,_0x1a3450,_0xf6bbf,_0x30f0bb)=>{const _0x573ae5=_0xa83ddf;for(var _0x3e12f5=_0x30f0bb>0x1?void 0x0:_0x30f0bb?dr(_0x1a3450,_0xf6bbf):_0x1a3450,_0x13b4ff=_0x100cee[_0x573ae5(0x249)]-0x1,_0x4d662b;_0x13b4ff>=0x0;_0x13b4ff--)(_0x4d662b=_0x100cee[_0x13b4ff])&&(_0x3e12f5=(_0x30f0bb?_0x4d662b(_0x1a3450,_0xf6bbf,_0x3e12f5):_0x4d662b(_0x3e12f5))||_0x3e12f5);return _0x30f0bb&&_0x3e12f5&&ur(_0x1a3450,_0xf6bbf,_0x3e12f5),_0x3e12f5;},te=(_0x35714b,_0x18006b)=>(_0xc40c44,_0xe541bc)=>_0x18006b(_0xc40c44,_0xe541bc,_0x35714b);const fr=0x12c,gr=0x64;let Rt=class extends _0x26114b{constructor(_0x149f79,_0xca09b7,_0x22ec88,_0x30ca31,_0x4fb16f,_0xfac007,_0x389de9,_0xdff258,_0x4993ca){const _0x4b184c=_0xa83ddf;super(),_(this,_0x4b184c(0x200),!0x1),_(this,_0x4b184c(0x267),!0x1),_(this,'_cursorInfo$',new _0xbc7543(new Map())),_(this,'cursorInfo$',this['_cursorInfo$'][_0x4b184c(0x473)]()),_(this,_0x4b184c(0x231),new _0xbc7543([])),_(this,_0x4b184c(0x34e),this['_roomMembers$'][_0x4b184c(0x2e5)](_0x5d9837(fr))),_(this,_0x4b184c(0x1c0),_0x238659(_0x306abc=>{const _0x287919=_0x4b184c,_0x3e9983={'eventID':_0x4e62f0[_0x287919(0x15f)],'data':{'unitID':this[_0x287919(0x452)],'memberID':this[_0x287919(0x14a)]['getMemberID'](),'selection':ys(_0x306abc)}};this[_0x287919(0x14a)][_0x287919(0x14f)](_0x3e9983,this[_0x287919(0x452)]);},gr)),(this['unitID']=_0x149f79,this[_0x4b184c(0x14a)]=_0xca09b7,this[_0x4b184c(0x1ef)]=_0x22ec88,this[_0x4b184c(0x30f)]=_0x30ca31,this[_0x4b184c(0x13e)]=_0x4fb16f,this['_syncEditingCollabCursorService']=_0xfac007,this[_0x4b184c(0x2ef)]=_0x389de9,this[_0x4b184c(0x44a)]=_0xdff258,this['_commandService']=_0x4993ca);}get[_0xa83ddf(0x337)](){const _0x5d6cb8=_0xa83ddf;return this[_0x5d6cb8(0x1c2)][_0x5d6cb8(0x1ac)]();}get[_0xa83ddf(0x33b)](){const _0x3f6257=_0xa83ddf;return this[_0x3f6257(0x231)]['getValue']();}[_0xa83ddf(0x471)](){const _0x2261fd=_0xa83ddf;super[_0x2261fd(0x471)](),this[_0x2261fd(0x1c2)][_0x2261fd(0x311)](new Map()),this[_0x2261fd(0x1c2)][_0x2261fd(0x308)](),this[_0x2261fd(0x231)]['next']([]),this[_0x2261fd(0x231)][_0x2261fd(0x308)]();}[_0xa83ddf(0x321)](){const _0x63a7a5=_0xa83ddf;this[_0x63a7a5(0x267)]||(this[_0x63a7a5(0x267)]=!0x0,this[_0x63a7a5(0x14a)][_0x63a7a5(0x409)][_0x63a7a5(0x2e5)](_0x4b5283(this[_0x63a7a5(0x22b)]))[_0x63a7a5(0x222)](_0x2f1dbd=>{const _0x45e40b=_0x63a7a5;_0x2f1dbd===fe[_0x45e40b(0x310)]?this[_0x45e40b(0x2bd)]():this[_0x45e40b(0x1e8)]();}),this[_0x63a7a5(0x14a)]['event$'][_0x63a7a5(0x2e5)](_0x4b5283(this[_0x63a7a5(0x22b)]))[_0x63a7a5(0x222)](_0x5a5a5e=>{const _0x3016cd=_0x63a7a5,_0x56f4e2=_0x5a5a5e[_0x3016cd(0x217)];_0x56f4e2===_0x4e62f0['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x5a5a5e),_0x56f4e2===_0x4e62f0['USERS_LEAVE']&&this['_onCursorDelete'](_0x5a5a5e);}),this[_0x63a7a5(0x46f)](this[_0x63a7a5(0x153)][_0x63a7a5(0x30a)](_0x393899=>{const _0x42fda6=_0x63a7a5,_0x3b0ef6=_0x393899[_0x42fda6(0x370)];_0x3b0ef6!=null&&this[_0x42fda6(0x200)]&&_0x393899['id']===_0x49f40d['id']&&_0x3b0ef6[_0x42fda6(0x3dd)]===this['unitID']&&_0x3b0ef6[_0x42fda6(0x290)]===!0x1&&this[_0x42fda6(0x1c0)](_0x3b0ef6[_0x42fda6(0x28e)]);})),this[_0x63a7a5(0x23f)][_0x63a7a5(0x3e9)][_0x63a7a5(0x2e5)](_0x4b5283(this[_0x63a7a5(0x22b)]))['subscribe'](_0x58b1f3=>{const _0x34358a=_0x63a7a5;if((_0x58b1f3==null?void 0x0:_0x58b1f3[_0x34358a(0x452)])!==this['unitID'])return;const _0x41c928={'eventID':_0x4e62f0['UPDATE_CURSOR'],'data':_0x58b1f3};this['_onCursorUpdate'](_0x41c928);}),this[_0x63a7a5(0x46f)](this[_0x63a7a5(0x153)][_0x63a7a5(0x30a)](_0x653ab1=>{const _0x16d408=_0x63a7a5;if(_0x653ab1[_0x16d408(0x370)]==null)return;const _0x25342a=_0x653ab1[_0x16d408(0x370)];if(_0x653ab1['id']!==_0x53c1cb['id']||_0x25342a[_0x16d408(0x3dd)]!==this[_0x16d408(0x452)])return;const _0x28ba76={'id':_0x16d408(0x14c),'params':_0x25342a},_0x56b37c=this['cursorInfo'];for(const [_0x1c24d0,_0x1c6452]of _0x56b37c){const _0x129c94={'id':_0x16d408(0x14c),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x1c6452['ranges']}},_0x2611e4=this[_0x16d408(0x2ef)][_0x16d408(0x2d6)](_0x28ba76,_0x129c94,!0x1);if(_0x571c72(_0x2611e4))throw _0x2611e4[_0x16d408(0x44e)];_0x56b37c['set'](_0x1c24d0,{..._0x1c6452,'ranges':_0x2611e4[_0x16d408(0x145)]['params'][_0x16d408(0x3dc)]});}queueMicrotask(()=>{const _0x3fe0f8=_0x16d408;this[_0x3fe0f8(0x1c2)]['next'](_0x56b37c);});})));}[_0xa83ddf(0x212)](_0x4c8368){const _0x5a5cf9=_0xa83ddf;var _0x2de691,_0x4aab3f;const {memberID:_0x3a0fb4,selection:_0xf95939}=_0x4c8368['data'],_0x4003a5=Xn(_0xf95939),_0x5ed77f=(_0x4aab3f=(_0x2de691=this[_0x5a5cf9(0x13e)][_0x5a5cf9(0x2c2)](this['unitID'],_0x3a0fb4))==null?void 0x0:_0x2de691[_0x5a5cf9(0x1dd)])!=null?_0x4aab3f:'Unknown\x20user',_0x563e1b={'color':this['_colorAssignService'][_0x5a5cf9(0x45c)](_0x3a0fb4),'name':_0x5ed77f,'ranges':_0x4003a5},_0x413db8=this[_0x5a5cf9(0x337)];_0x413db8[_0x5a5cf9(0x3fb)](_0x3a0fb4,_0x563e1b),this[_0x5a5cf9(0x1c2)]['next'](_0x413db8);}[_0xa83ddf(0x18b)](_0x53bbd9){const _0x36d946=_0xa83ddf,{memberID:_0x5020bb}=_0x53bbd9[_0x36d946(0x2cf)],_0x1d8f76=this['cursorInfo'];_0x1d8f76[_0x36d946(0x29c)](_0x5020bb),this[_0x36d946(0x1c2)][_0x36d946(0x311)](_0x1d8f76);}['_toggleOnline'](){const _0x19f861=_0xa83ddf;var _0x255b6c;if(this[_0x19f861(0x200)]=!0x0,((_0x255b6c=this['_univerInstanceService'][_0x19f861(0x3fd)]())==null?void 0x0:_0x255b6c[_0x19f861(0x27a)]())!==this[_0x19f861(0x452)])return;const _0x33f767=this['_injector'][_0x19f861(0x441)](_0x4857f4)[_0x19f861(0x3a8)](),_0x4b0d41=_0x33f767==null?void 0x0:_0x33f767['map'](_0xfbe9ba);Array[_0x19f861(0x210)](_0x4b0d41)&&_0x4b0d41[_0x19f861(0x249)]>0x0&&this[_0x19f861(0x1c0)](_0x4b0d41);}[_0xa83ddf(0x1e8)](){const _0x41cfe8=_0xa83ddf;this[_0x41cfe8(0x200)]=!0x1;}};Rt=mr([te(0x2,_0x2854bc(_0x28aed1)),te(0x3,_0x2854bc(Ht)),te(0x4,_0x2854bc(ne)),te(0x5,_0x2854bc(xt)),te(0x6,_0x5b4b40),te(0x7,_0x1b1ada),te(0x8,_0x291fa9)],Rt);var Sr=Object[_0xa83ddf(0x3b2)],pr=Object[_0xa83ddf(0x190)],vr=(_0x4ba381,_0x55c5e4,_0x1879ee,_0x36d988)=>{const _0x37794e=_0xa83ddf;for(var _0x42e894=_0x36d988>0x1?void 0x0:_0x36d988?pr(_0x55c5e4,_0x1879ee):_0x55c5e4,_0x9da6e4=_0x4ba381[_0x37794e(0x249)]-0x1,_0x1410bc;_0x9da6e4>=0x0;_0x9da6e4--)(_0x1410bc=_0x4ba381[_0x9da6e4])&&(_0x42e894=(_0x36d988?_0x1410bc(_0x55c5e4,_0x1879ee,_0x42e894):_0x1410bc(_0x42e894))||_0x42e894);return _0x36d988&&_0x42e894&&Sr(_0x55c5e4,_0x1879ee,_0x42e894),_0x42e894;},ct=(_0xff3406,_0x475c58)=>(_0x1a39e2,_0x151b90)=>_0x475c58(_0x1a39e2,_0x151b90,_0xff3406);let ge=class extends _0x26114b{constructor(_0x3c9929,_0x39442c,_0x30f892){const _0xead0ab=_0xa83ddf;super(),_(this,_0xead0ab(0x14b),new Map()),_(this,_0xead0ab(0x1c4),new _0x27d684()),(this[_0xead0ab(0x44a)]=_0x3c9929,this[_0xead0ab(0x1ef)]=_0x39442c,this[_0xead0ab(0x1d8)]=_0x30f892,this[_0xead0ab(0x267)]());}['dispose'](){const _0x3629dd=_0xa83ddf;super['dispose'](),this[_0x3629dd(0x1c4)][_0x3629dd(0x308)](),this[_0x3629dd(0x14b)]['forEach'](_0x4371d5=>_0x4371d5['dispose']());}['getCollabCursors$'](_0x553099){const _0x4c07b4=_0xa83ddf;return this['_entities']['has'](_0x553099)?this[_0x4c07b4(0x14b)][_0x4c07b4(0x441)](_0x553099)[_0x4c07b4(0x456)]:this[_0x4c07b4(0x1c4)][_0x4c07b4(0x2e5)](_0x30916b(_0x252e6c=>_0x252e6c['unitID']===_0x553099),_0x284752(_0x3004bc=>_0x3004bc['cursorInfo$']));}[_0xa83ddf(0x267)](){const _0x1bca45=_0xa83ddf;this[_0x1bca45(0x44a)]['getTypeOfUnitAdded$'](_0x54437b['UNIVER_SHEET'])['pipe'](_0x4b5283(this[_0x1bca45(0x22b)]))[_0x1bca45(0x222)](async _0x5cc8b4=>{const _0x2d45ef=_0x1bca45,_0x57c98c=_0x5cc8b4[_0x2d45ef(0x27a)](),_0x16e69d=await this['_startSheetCollabCursor'](_0x57c98c);this[_0x2d45ef(0x1c4)][_0x2d45ef(0x311)](_0x16e69d),this[_0x2d45ef(0x14b)][_0x2d45ef(0x3fb)](_0x57c98c,_0x16e69d);}),this[_0x1bca45(0x44a)][_0x1bca45(0x388)](_0x54437b[_0x1bca45(0x1f2)])[_0x1bca45(0x2e5)](_0x4b5283(this[_0x1bca45(0x22b)]))[_0x1bca45(0x2e5)](_0x30916b(_0x41aa92=>!_0x41aa92['getUnitId']()['startsWith']('__')))[_0x1bca45(0x222)](async _0x50820d=>{const _0x2735ac=_0x1bca45,_0x417b6e=_0x50820d[_0x2735ac(0x27a)](),_0x2f6925=await this[_0x2735ac(0x230)](_0x417b6e);this['_entityInit$']['next'](_0x2f6925),this[_0x2735ac(0x14b)][_0x2735ac(0x3fb)](_0x417b6e,_0x2f6925);}),_0x19b764(this[_0x1bca45(0x44a)][_0x1bca45(0x331)](_0x54437b[_0x1bca45(0x1f2)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x54437b[_0x1bca45(0x2ac)]))[_0x1bca45(0x2e5)](_0x4b5283(this[_0x1bca45(0x22b)]))[_0x1bca45(0x222)](_0x1475e2=>{const _0x5bb563=_0x1bca45,_0x18f491=_0x1475e2[_0x5bb563(0x27a)](),_0x28d8f6=this[_0x5bb563(0x14b)]['get'](_0x18f491);_0x28d8f6&&(_0x28d8f6[_0x5bb563(0x471)](),this[_0x5bb563(0x14b)][_0x5bb563(0x29c)](_0x18f491));});}async[_0xa83ddf(0x1f0)](_0x4b59b6){const _0x143045=_0xa83ddf,_0x5e122a=await this[_0x143045(0x1d8)][_0x143045(0x2d1)](_0x4b59b6),_0x40d757=this[_0x143045(0x1ef)][_0x143045(0x274)](bt,_0x4b59b6,_0x5e122a);return _0x40d757['init'](),_0x40d757;}async[_0xa83ddf(0x230)](_0x228ea8){const _0x18e62e=_0xa83ddf,_0x415850=await this[_0x18e62e(0x1d8)][_0x18e62e(0x2d1)](_0x228ea8),_0x302c8a=this[_0x18e62e(0x1ef)][_0x18e62e(0x274)](Rt,_0x228ea8,_0x415850);return _0x302c8a[_0x18e62e(0x321)](),_0x302c8a;}};ge=vr([_0x3b619c(_0x13d562['Starting'],ge),ct(0x0,_0x1b1ada),ct(0x1,_0x2854bc(_0x28aed1)),ct(0x2,_0x2854bc(pe))],ge);const ye=0x14,cs=0xc8,ht=0x4,Ir=0x5;function Er(_0x45cda8,_0x487857){const _0x2734c4=_0xa83ddf;let {radius:_0x56a09c,width:_0x1ef455,height:_0x23e53e}=_0x487857;_0x56a09c=_0x56a09c!=null?_0x56a09c:0x0,_0x1ef455=_0x1ef455!=null?_0x1ef455:0x1e,_0x23e53e=_0x23e53e!=null?_0x23e53e:0x1e;let _0x4e630a=0x0,_0x2955b6=0x0,_0x159480=0x0;_0x4e630a=_0x2955b6=_0x159480=Math[_0x2734c4(0x160)](_0x56a09c,_0x1ef455/0x2,_0x23e53e/0x2),_0x45cda8[_0x2734c4(0x1ba)](),_0x45cda8['moveTo'](_0x4e630a,0x0),_0x45cda8[_0x2734c4(0x335)](_0x1ef455-_0x2955b6,0x0),_0x45cda8[_0x2734c4(0x38a)](_0x1ef455-_0x2955b6,_0x2955b6,_0x2955b6,Math['PI']*0x3/0x2,0x0,!0x1),_0x45cda8['lineTo'](_0x1ef455,_0x23e53e-_0x159480),_0x45cda8[_0x2734c4(0x38a)](_0x1ef455-_0x159480,_0x23e53e-_0x159480,_0x159480,0x0,Math['PI']/0x2,!0x1),_0x45cda8[_0x2734c4(0x335)](0x0,_0x23e53e),_0x45cda8[_0x2734c4(0x335)](0x0,_0x4e630a),_0x45cda8[_0x2734c4(0x38a)](_0x4e630a,_0x4e630a,_0x4e630a,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x45cda8[_0x2734c4(0x25c)](),_0x487857[_0x2734c4(0x23c)]&&(_0x45cda8[_0x2734c4(0x164)](),_0x45cda8[_0x2734c4(0x24c)]=_0x487857['fill'],_0x487857[_0x2734c4(0x361)]==='evenodd'?_0x45cda8[_0x2734c4(0x23c)]('evenodd'):_0x45cda8[_0x2734c4(0x23c)](),_0x45cda8[_0x2734c4(0x2b3)]());}class it extends _0x497bf1{constructor(_0x550d9b,_0x2cedb8){const _0x5aeaef=_0xa83ddf;super(_0x550d9b,_0x2cedb8),_(this,_0x5aeaef(0x364)),_(this,_0x5aeaef(0x197)),(this[_0x5aeaef(0x364)]=_0x2cedb8==null?void 0x0:_0x2cedb8['color'],this[_0x5aeaef(0x197)]=_0x2cedb8==null?void 0x0:_0x2cedb8[_0x5aeaef(0x197)]);}static[_0xa83ddf(0x476)](_0x44e155,_0x1c5745){const _0x1c12ae=_0xa83ddf,{text:_0x27bb40,color:_0x5e77b5}=_0x1c5745;_0x44e155[_0x1c12ae(0x164)](),_0x44e155[_0x1c12ae(0x299)]=_0x1c12ae(0x26d);const _0x520a69=_0x44e155[_0x1c12ae(0x251)](_0x27bb40)[_0x1c12ae(0x420)],_0x1843e9=Math[_0x1c12ae(0x160)](_0x520a69+0x2*ht,cs);Er(_0x44e155,{'height':ye,'radius':0x4,'width':_0x1843e9,'fill':_0x5e77b5,'evented':!0x1}),_0x44e155[_0x1c12ae(0x24c)]=_0x1c12ae(0x2e6);const _0x56c470=ht,_0x18e271=ye-Ir,_0x327aa6=cs-0x2*ht;if(_0x520a69>_0x327aa6){let _0x49ea7d='',_0x33b1cb=0x0;for(const _0x46b42f of _0x27bb40){const _0xc96019=_0x44e155[_0x1c12ae(0x251)](_0x46b42f)[_0x1c12ae(0x420)];if(_0x33b1cb+_0xc96019<=_0x327aa6-_0x44e155['measureText'](_0x1c12ae(0x2fb))[_0x1c12ae(0x420)])_0x49ea7d+=_0x46b42f,_0x33b1cb+=_0xc96019;else{_0x49ea7d+=_0x1c12ae(0x2fb);break;}}_0x44e155[_0x1c12ae(0x27c)](_0x49ea7d,_0x56c470,_0x18e271);}else _0x44e155[_0x1c12ae(0x27c)](_0x27bb40,_0x56c470,_0x18e271);_0x44e155[_0x1c12ae(0x2b3)]();}[_0xa83ddf(0x281)](_0x5248fd){const _0x167ad3=_0xa83ddf;it[_0x167ad3(0x476)](_0x5248fd,this);}}const Cr=0x1,br=1.5;class Rr extends _0x497bf1{constructor(_0x5206e6,_0x51c6f7){const _0x4274c8=_0xa83ddf;super(_0x5206e6,_0x51c6f7),_(this,_0x4274c8(0x46a)),_(this,'_hovered',!0x1),_(this,'_range'),_(this,_0x4274c8(0x1d0),''),_(this,_0x4274c8(0x2f4),_0x4274c8(0x2ea)),_(this,_0x4274c8(0x435)),(_0x51c6f7&&this[_0x4274c8(0x356)](_0x51c6f7),this[_0x4274c8(0x367)][_0x4274c8(0x2f2)](()=>this[_0x4274c8(0x356)]({'hovered':!0x0})),this[_0x4274c8(0x307)]['subscribeEvent'](()=>this[_0x4274c8(0x356)]({'hovered':!0x1})));}[_0xa83ddf(0x356)](_0x4b809b){const _0x406c9f=_0xa83ddf;var _0x58bdf5,_0x2ed59a,_0x715b0c,_0x127b54,_0x1c3e9e,_0x274fb5;this[_0x406c9f(0x46a)]=(_0x58bdf5=_0x4b809b[_0x406c9f(0x364)])!=null?_0x58bdf5:this['_color'],this[_0x406c9f(0x1bc)]=(_0x2ed59a=_0x4b809b[_0x406c9f(0x38e)])!=null?_0x2ed59a:this[_0x406c9f(0x1bc)],this[_0x406c9f(0x422)]=(_0x715b0c=_0x4b809b[_0x406c9f(0x474)])!=null?_0x715b0c:this[_0x406c9f(0x422)],this[_0x406c9f(0x1d0)]=(_0x127b54=_0x4b809b[_0x406c9f(0x1dd)])!=null?_0x127b54:this[_0x406c9f(0x1d0)],this[_0x406c9f(0x2f4)]=(_0x1c3e9e=_0x4b809b[_0x406c9f(0x264)])!=null?_0x1c3e9e:this[_0x406c9f(0x2f4)],this['_backgroundColor']=(_0x274fb5=_0x4b809b[_0x406c9f(0x317)])!=null?_0x274fb5:this[_0x406c9f(0x435)],this['transformByState']({'width':_0x4b809b['width'],'height':_0x4b809b['height']});}['onMouseMove'](_0x59ea8c){const _0x157acf=_0xa83ddf,{row:_0x1f2265,column:_0x4f9f7e}=_0x59ea8c;if(_0x1f2265>=this[_0x157acf(0x422)][_0x157acf(0x369)]&&_0x1f2265<=this[_0x157acf(0x422)]['endRow']&&_0x4f9f7e>=this[_0x157acf(0x422)][_0x157acf(0x1a6)]&&_0x4f9f7e<=this['_range']['endColumn']){this[_0x157acf(0x356)]({'hovered':!0x0});return;}this[_0x157acf(0x356)]({'hovered':!0x1});}['triggerDblclick'](_0x5712e6){return!0x1;}[_0xa83ddf(0x281)](_0x599591){const _0x5d155c=_0xa83ddf;_0x97f8c4[_0x5d155c(0x476)](_0x599591,{'width':this[_0x5d155c(0x420)],'height':this['height'],'strokeWidth':br,'stroke':this[_0x5d155c(0x46a)],'evented':!0x1,'fill':this[_0x5d155c(0x435)]}),this[_0x5d155c(0x1bc)]&&(_0x599591['save'](),_0x599591[_0x5d155c(0x20c)](0x1,0x0,0x0,0x1,this[_0x5d155c(0x420)],this['_labelPosition']===_0x5d155c(0x2e8)?0x0:-ye),it['drawWith'](_0x599591,{'text':this[_0x5d155c(0x1d0)],'color':this[_0x5d155c(0x46a)]}),_0x599591[_0x5d155c(0x2b3)]());}}var Tr=Object[_0xa83ddf(0x3b2)],Or=Object[_0xa83ddf(0x190)],Dr=(_0x2eb3b3,_0x285091,_0x1a3c55,_0x3142fe)=>{const _0xa11381=_0xa83ddf;for(var _0x4a700d=_0x3142fe>0x1?void 0x0:_0x3142fe?Or(_0x285091,_0x1a3c55):_0x285091,_0x2959b7=_0x2eb3b3[_0xa11381(0x249)]-0x1,_0x10760b;_0x2959b7>=0x0;_0x2959b7--)(_0x10760b=_0x2eb3b3[_0x2959b7])&&(_0x4a700d=(_0x3142fe?_0x10760b(_0x285091,_0x1a3c55,_0x4a700d):_0x10760b(_0x4a700d))||_0x4a700d);return _0x3142fe&&_0x4a700d&&Tr(_0x285091,_0x1a3c55,_0x4a700d),_0x4a700d;},_t=(_0x405062,_0x3b3392)=>(_0x49033e,_0x4a6f82)=>_0x3b3392(_0x49033e,_0x4a6f82,_0x405062);const Pr=0x1389;let Tt=class extends _0x26114b{constructor(_0x5e749b,_0x4e70b4,_0xb63352,_0xf814b3){const _0xc1cb65=_0xa83ddf;super(),_(this,_0xc1cb65(0x289),new Set()),_(this,_0xc1cb65(0x1fe),null),(this[_0xc1cb65(0x3ff)]=_0x5e749b,this[_0xc1cb65(0x320)]=_0x4e70b4,this[_0xc1cb65(0x440)]=_0xb63352,this[_0xc1cb65(0x1a4)]=_0xf814b3,this[_0xc1cb65(0x267)]());}[_0xa83ddf(0x267)](){const _0x5b0548=_0xa83ddf;this[_0x5b0548(0x320)][_0x5b0548(0x3fa)]['pipe'](_0x15cb3a(this[_0x5b0548(0x22b)]),_0x1f02e9(_0x87ab52=>{const _0x2218a9=_0x5b0548;if(_0x87ab52){const _0x3c8979=_0x87ab52[_0x2218a9(0x303)];return _0x4ffd7b(this[_0x2218a9(0x440)]['getCollabCursors$'](this[_0x2218a9(0x3ff)][_0x2218a9(0x3dd)]),this[_0x2218a9(0x1a4)][_0x2218a9(0x33e)])['pipe'](_0x255c5b(([_0x3c1688,_0x5d5300])=>{const _0x3cb1f2=_0x2218a9,_0x44db21=new Map();return _0x3c1688[_0x3cb1f2(0x3e6)]((_0x1dbcce,_0x2bf8b3)=>{const _0x302cf6=_0x3cb1f2;if(_0x1dbcce['sheetID']===_0x3c8979){const _0x26495a={..._0x1dbcce};_0x26495a['color']=_0x5d5300[_0x1dbcce['color']],_0x44db21[_0x302cf6(0x3fb)](_0x2bf8b3,_0x26495a);}}),{'skeleton':_0x87ab52,'cursors':_0x44db21};}));}return _0x2e1ce7({'skeleton':null,'cursors':new Map()});}))[_0x5b0548(0x222)](({skeleton:_0x1e8e67,cursors:_0x38c1ba})=>{const _0x292869=_0x5b0548;this[_0x292869(0x13f)](),_0x1e8e67&&this[_0x292869(0x3a5)](_0x1e8e67,_0x38c1ba);}),this[_0x5b0548(0x320)][_0x5b0548(0x3fa)][_0x5b0548(0x222)](_0xd013d1=>{const _0x4ff92a=_0x5b0548;if(_0xd013d1==null)return;const {skeleton:_0x4125cb}=_0xd013d1,{scene:_0x24e6a1}=this[_0x4ff92a(0x3ff)];_0x24e6a1[_0x4ff92a(0x44f)]['subscribeEvent'](_0x238659(_0x1f1692=>{const _0xf025ee=_0x4ff92a;var _0x2aa66b,_0x85f201;const {offsetX:_0x439efb,offsetY:_0x2ba15a}=_0x1f1692,{x:_0x409cc8,y:_0x104142}=_0x24e6a1[_0xf025ee(0x245)](_0x32bb51[_0xf025ee(0x147)]([_0x439efb,_0x2ba15a])),{scaleX:_0x336b37,scaleY:_0x6d470f}=_0x24e6a1[_0xf025ee(0x2a8)](),_0x4285de=_0x24e6a1['getViewport'](_0x574d50[_0xf025ee(0x17e)]),_0x5e8928=_0x24e6a1['getVpScrollXYInfoByPosToVp'](_0x32bb51[_0xf025ee(0x147)]([_0x409cc8,_0x104142]),_0x4285de),_0x4d84d2=_0x4125cb[_0xf025ee(0x1ad)](_0x439efb,_0x2ba15a,_0x336b37,_0x6d470f,_0x5e8928);((_0x2aa66b=this[_0xf025ee(0x1fe)])==null?void 0x0:_0x2aa66b[_0xf025ee(0x345)])===_0x4d84d2[_0xf025ee(0x345)]&&((_0x85f201=this[_0xf025ee(0x1fe)])==null?void 0x0:_0x85f201['row'])===_0x4d84d2['row']||this[_0xf025ee(0x289)][_0xf025ee(0x3e6)](_0x3b4ae2=>{const _0x528071=_0xf025ee;_0x3b4ae2[_0x528071(0x1d3)](_0x4d84d2);});},0x64));});}[_0xa83ddf(0x3a5)](_0xe6551d,_0x5dd894){const _0x1b2626=_0xa83ddf;var _0x3ba46c;const _0x12f787=(_0x3ba46c=this[_0x1b2626(0x320)]['getCurrent']())==null?void 0x0:_0x3ba46c['skeleton'];if(!_0x12f787)return;const _0x250c73=this['_getSheetObject']();if(!_0x250c73)return;this[_0x1b2626(0x289)][_0x1b2626(0x3e6)](_0x2d5cd5=>{const _0x26f4f8=_0x1b2626;_0x2d5cd5[_0x26f4f8(0x1bd)]();});const {scene:_0x56599d}=_0x250c73,_0x32cc4e=wr(Array[_0x1b2626(0x17d)](_0x5dd894[_0x1b2626(0x172)]()))[_0x1b2626(0x423)](_0x22a63a=>{const _0xd6f434=_0x1b2626,{color:_0x59b6c2,range:_0x41c253,name:_0x3ef97f,selection:_0x5aaee2,sheetID:_0x3398b4}=_0x22a63a,{startColumn:_0x3baa61,startRow:_0x51b1b3,endColumn:_0x1d9307,endRow:_0x14d9b5}=_0x41c253,_0x3a1797=_0x487c58(_0x51b1b3,_0x3baa61,_0x56599d,_0x12f787),_0x34df39=_0x487c58(_0x14d9b5,_0x1d9307,_0x56599d,_0x12f787),{columnHeaderHeightAndMarginTop:_0x164aac}=_0x12f787,{startX:_0xc98839,startY:_0x1930e8}=_0x3a1797,{endX:_0x4abf61,endY:_0x57e013}=_0x34df39,_0x44bc39=_0x4abf61-_0xc98839,_0x2d7a78=_0x57e013-_0x1930e8,_0x337ffc={'labelPosition':_0x1930e8-_0x164aac>=ye?_0xd6f434(0x2ea):_0xd6f434(0x2e8),'sheetID':_0x3398b4,'range':_0x41c253,'color':_0x59b6c2,'name':_0x3ef97f,'selection':_0x5aaee2,'left':_0xc98839,'top':_0x1930e8,'width':_0x44bc39,'height':_0x2d7a78,'evented':!0x1,'zIndex':Pr};return new Rr(_0x3ef97f,_0x337ffc);});_0x56599d[_0x1b2626(0x254)](_0x32cc4e,Cr),this[_0x1b2626(0x289)]=new Set(_0x32cc4e);}['_removeCollabCursors'](){const _0x4041d5=_0xa83ddf;var _0x22263d;(_0x22263d=this['_cursors'])==null||_0x22263d['forEach'](_0x3c6739=>_0x3c6739[_0x4041d5(0x471)]());}[_0xa83ddf(0x1c9)](){const _0x360f4a=_0xa83ddf;return _0x5c1291(this['_context']['unit'],this[_0x360f4a(0x3ff)]);}};Tt=Dr([_t(0x1,_0x2854bc(_0x4ee093)),_t(0x2,_0x2854bc(ge)),_t(0x3,_0x2854bc(_0x356051))],Tt);function wr(_0x31b890){const _0x40e93a=_0xa83ddf,_0x2e75ea=new Map();return _0x31b890[_0x40e93a(0x3e6)](_0x732ee6=>{const _0x407bae=_0x40e93a;if(_0x2e75ea[_0x407bae(0x437)](_0x732ee6[_0x407bae(0x1c1)])){const _0xfdf4fc=_0x2e75ea['get'](_0x732ee6[_0x407bae(0x1c1)]);_0xfdf4fc[_0x407bae(0x1dd)]+=',\x20'+_0x732ee6['name'];}else _0x2e75ea[_0x407bae(0x3fb)](_0x732ee6[_0x407bae(0x1c1)],_0x732ee6);}),Array['from'](_0x2e75ea[_0x40e93a(0x172)]());}var U=function(){const _0x1ce53e=_0xa83ddf;return U=Object[_0x1ce53e(0x21d)]||function(_0x2fd1a2){const _0x5270d1=_0x1ce53e;for(var _0x38587d,_0x41e5b8=0x1,_0xb533f8=arguments['length'];_0x41e5b8<_0xb533f8;_0x41e5b8++){_0x38587d=arguments[_0x41e5b8];for(var _0x930d13 in _0x38587d)Object[_0x5270d1(0x42f)][_0x5270d1(0x196)]['call'](_0x38587d,_0x930d13)&&(_0x2fd1a2[_0x930d13]=_0x38587d[_0x930d13]);}return _0x2fd1a2;},U[_0x1ce53e(0x451)](this,arguments);},Nr=function(_0x1ffa38,_0x22e149){const _0x29e6a0=_0xa83ddf;var _0x3e81b2={};for(var _0x554f9e in _0x1ffa38)Object[_0x29e6a0(0x42f)][_0x29e6a0(0x196)][_0x29e6a0(0x3b3)](_0x1ffa38,_0x554f9e)&&_0x22e149[_0x29e6a0(0x44d)](_0x554f9e)<0x0&&(_0x3e81b2[_0x554f9e]=_0x1ffa38[_0x554f9e]);if(_0x1ffa38!=null&&typeof Object[_0x29e6a0(0x350)]==_0x29e6a0(0x477)){for(var _0x12694b=0x0,_0x554f9e=Object['getOwnPropertySymbols'](_0x1ffa38);_0x12694b<_0x554f9e[_0x29e6a0(0x249)];_0x12694b++)_0x22e149['indexOf'](_0x554f9e[_0x12694b])<0x0&&Object[_0x29e6a0(0x42f)][_0x29e6a0(0x204)]['call'](_0x1ffa38,_0x554f9e[_0x12694b])&&(_0x3e81b2[_0x554f9e[_0x12694b]]=_0x1ffa38[_0x554f9e[_0x12694b]]);}return _0x3e81b2;},kt=_0x1300f6(function(_0x41b1a1,_0x3008c4){const _0x1677b2=_0xa83ddf;var _0x58fb3d=_0x41b1a1[_0x1677b2(0x2fc)],_0x56be58=_0x41b1a1['id'],_0x56d1df=_0x41b1a1['className'],_0x9e5255=_0x41b1a1[_0x1677b2(0x287)],_0x332fa9=Nr(_0x41b1a1,[_0x1677b2(0x2fc),'id','className',_0x1677b2(0x287)]),_0x545fb2='univerjs-icon\x20univerjs-icon-'['concat'](_0x56be58,'\x20')['concat'](_0x56d1df||'')[_0x1677b2(0x334)](),_0x5e86dd=_0x3deeb2('_'[_0x1677b2(0x28f)](Ur()));return $s(_0x58fb3d,''[_0x1677b2(0x28f)](_0x56be58),{'defIds':_0x58fb3d[_0x1677b2(0x201)],'idSuffix':_0x5e86dd[_0x1677b2(0x382)]},U({'ref':_0x3008c4,'className':_0x545fb2},_0x332fa9),_0x9e5255);});function $s(_0x478579,_0x4bcbc9,_0x595ff7,_0x29a7cb,_0x77b23b){const _0x238db6=_0xa83ddf;return _0xedc958(_0x478579[_0x238db6(0x387)],U(U({'key':_0x4bcbc9},Mr(_0x478579,_0x595ff7,_0x77b23b)),_0x29a7cb),(Ar(_0x478579,_0x595ff7)[_0x238db6(0x2f7)]||[])['map'](function(_0x3d7d0c,_0x5bfe0a){const _0x3badec=_0x238db6;return $s(_0x3d7d0c,''[_0x3badec(0x28f)](_0x4bcbc9,'-')[_0x3badec(0x28f)](_0x478579[_0x3badec(0x387)],'-')['concat'](_0x5bfe0a),_0x595ff7,void 0x0,_0x77b23b);}));}function Mr(_0x327eee,_0x5cfb20,_0x80833){const _0x2c0b02=_0xa83ddf;var _0x348a0e=U({},_0x327eee[_0x2c0b02(0x2ba)]);_0x80833!=null&&_0x80833[_0x2c0b02(0x36c)]&&_0x348a0e[_0x2c0b02(0x23c)]===_0x2c0b02(0x36c)&&(_0x348a0e[_0x2c0b02(0x23c)]=_0x80833['colorChannel1']);var _0x5773b2=_0x5cfb20[_0x2c0b02(0x201)];return!_0x5773b2||_0x5773b2['length']===0x0||(_0x327eee[_0x2c0b02(0x387)]===_0x2c0b02(0x390)&&_0x348a0e[_0x2c0b02(0x1ae)]&&(_0x348a0e[_0x2c0b02(0x1ae)]=_0x348a0e[_0x2c0b02(0x1ae)]+_0x5cfb20[_0x2c0b02(0x34b)]),Object[_0x2c0b02(0x296)](_0x348a0e)[_0x2c0b02(0x3e6)](function(_0x57bf56){const _0x3e0c0c=_0x2c0b02;var _0x9f254=_0x57bf56[0x0],_0x32b785=_0x57bf56[0x1];typeof _0x32b785==_0x3e0c0c(0x240)&&(_0x348a0e[_0x9f254]=_0x32b785[_0x3e0c0c(0x322)](/url\(#(.*)\)/,_0x3e0c0c(0x2ed)['concat'](_0x5cfb20[_0x3e0c0c(0x34b)],')')));})),_0x348a0e;}function Ar(_0x53f531,_0x2f2354){const _0x567a98=_0xa83ddf;var _0x2182ad,_0x34ec42=_0x2f2354[_0x567a98(0x201)];return!_0x34ec42||_0x34ec42['length']===0x0?_0x53f531:_0x53f531[_0x567a98(0x387)]==='defs'&&(!((_0x2182ad=_0x53f531['children'])===null||_0x2182ad===void 0x0)&&_0x2182ad[_0x567a98(0x249)])?U(U({},_0x53f531),{'children':_0x53f531[_0x567a98(0x2f7)][_0x567a98(0x423)](function(_0x740ab){const _0xe0f045=_0x567a98;return typeof _0x740ab['attrs']['id']==_0xe0f045(0x240)&&_0x34ec42&&_0x34ec42[_0xe0f045(0x44d)](_0x740ab[_0xe0f045(0x2ba)]['id'])>-0x1?U(U({},_0x740ab),{'attrs':U(U({},_0x740ab[_0xe0f045(0x2ba)]),{'id':_0x740ab[_0xe0f045(0x2ba)]['id']+_0x2f2354[_0xe0f045(0x34b)]})}):_0x740ab;})}):_0x53f531;}function Ur(){const _0x582e32=_0xa83ddf;return Math[_0x582e32(0x302)]()[_0x582e32(0x3af)](0x24)[_0x582e32(0x167)](0x2,0x8);}kt[_0xa83ddf(0x26e)]=_0xa83ddf(0x47b);var yr={'tag':_0xa83ddf(0x157),'attrs':{'fill':_0xa83ddf(0x273),'viewBox':_0xa83ddf(0x323),'width':_0xa83ddf(0x3d1),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0xa83ddf(0x461)},'children':[{'tag':_0xa83ddf(0x433),'attrs':{'stroke':_0xa83ddf(0x3c8),'d':_0xa83ddf(0x300),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0xa83ddf(0x434),'attrs':{},'children':[{'tag':_0xa83ddf(0x31a),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0xa83ddf(0x433),'attrs':{'fill':_0xa83ddf(0x3da),'d':_0xa83ddf(0x2a2)}}]}]}],'defIds':[_0xa83ddf(0x149)]},js=_0x1300f6(function(_0x44f7e9,_0x522df6){const _0x7d6d0d=_0xa83ddf;return _0xedc958(kt,Object[_0x7d6d0d(0x21d)]({},_0x44f7e9,{'id':_0x7d6d0d(0x3d6),'ref':_0x522df6,'icon':yr}));});js[_0xa83ddf(0x26e)]=_0xa83ddf(0x31c);var Lr={'tag':_0xa83ddf(0x157),'attrs':{'fill':_0xa83ddf(0x273),'viewBox':'0\x200\x2017\x2016','width':_0xa83ddf(0x3d1),'height':_0xa83ddf(0x3d1)},'children':[{'tag':'g','attrs':{'clipPath':_0xa83ddf(0x324)},'children':[{'tag':'path','attrs':{'stroke':_0xa83ddf(0x3c8),'d':_0xa83ddf(0x260),'strokeLinecap':_0xa83ddf(0x3cf),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0xa83ddf(0x434),'attrs':{},'children':[{'tag':_0xa83ddf(0x31a),'attrs':{'id':_0xa83ddf(0x198)},'children':[{'tag':_0xa83ddf(0x433),'attrs':{'fill':_0xa83ddf(0x3da),'d':_0xa83ddf(0x2a2),'transform':'translate(.97)'}}]}]}],'defIds':[_0xa83ddf(0x198)]},xs=_0x1300f6(function(_0x5a7079,_0x4c5bcd){const _0x4d9c9c=_0xa83ddf;return _0xedc958(kt,Object['assign']({},_0x5a7079,{'id':_0x4d9c9c(0x1a1),'ref':_0x4c5bcd,'icon':Lr}));});xs[_0xa83ddf(0x26e)]=_0xa83ddf(0x368);const $r=_0xa83ddf(0x1ca),jr='univer-online-status-title',xr='univer-online-status',Hr='univer-online',kr='univer-offline',De={'onlineStatusIcon':$r,'onlineStatusTitle':jr,'onlineStatus':xr,'online':Hr,'offline':kr};function Vr(_0x9e269){const _0xe8d0a1=_0xa83ddf;switch(_0x9e269){case P[_0xe8d0a1(0x42e)]:return _0xe8d0a1(0x306);case P[_0xe8d0a1(0x25f)]:return'collabStatus.conflict';case P[_0xe8d0a1(0x464)]:return _0xe8d0a1(0x2d8);case P[_0xe8d0a1(0x3f5)]:return _0xe8d0a1(0x45b);case P['PENDING']:case P['AWAITING']:case P['AWAITING_WITH_PENDING']:return _0xe8d0a1(0x2a0);case P['SYNCED']:return'collabStatus.synced';}}function Br(_0x27e7ae){const _0x1b07f2=_0xa83ddf,{status$:_0x37a7a0}=_0x27e7ae,_0x48cf04=_0x26cb93(_0x37a7a0,P[_0x1b07f2(0x3f5)]),_0x5b88f0=_0x535e2e(_0x501416),_0x27176d=_0x48cf04!==P[_0x1b07f2(0x42e)],_0x991319=_0x5b88f0['t'](Vr(_0x48cf04)),_0x3bd884=_0x46f863(De[_0x1b07f2(0x16e)],{[De[_0x1b07f2(0x410)]]:_0x27176d,[De[_0x1b07f2(0x2a5)]]:!_0x27176d}),_0x53b52f=_0x27176d?_0x58584e[_0x1b07f2(0x2ff)](xs,null):_0x58584e['createElement'](js,null);return _0x58584e[_0x1b07f2(0x2ff)](_0x1b07f2(0x15d),{'className':_0x3bd884},_0x58584e['createElement'](_0x1b07f2(0x15d),{'className':De[_0x1b07f2(0x2c0)]},_0x53b52f),_0x58584e[_0x1b07f2(0x2ff)]('div',{'className':De[_0x1b07f2(0x16c)]},_0x991319));}var Fr=Object[_0xa83ddf(0x3b2)],Wr=Object['getOwnPropertyDescriptor'],Gr=(_0x19bab9,_0x4afff1,_0x19a291,_0x316327)=>{const _0x47a21f=_0xa83ddf;for(var _0x41389a=_0x316327>0x1?void 0x0:_0x316327?Wr(_0x4afff1,_0x19a291):_0x4afff1,_0x40f3c3=_0x19bab9[_0x47a21f(0x249)]-0x1,_0x469413;_0x40f3c3>=0x0;_0x40f3c3--)(_0x469413=_0x19bab9[_0x40f3c3])&&(_0x41389a=(_0x316327?_0x469413(_0x4afff1,_0x19a291,_0x41389a):_0x469413(_0x41389a))||_0x41389a);return _0x316327&&_0x41389a&&Fr(_0x4afff1,_0x19a291,_0x41389a),_0x41389a;},$e=(_0x169fec,_0x36d57d)=>(_0x45af46,_0x144e8a)=>_0x36d57d(_0x45af46,_0x144e8a,_0x169fec);let ke=class extends _0x54b342{constructor(_0x2a034f,_0x4d757f,_0x41ca37,_0x165d29){const _0x21598c=_0xa83ddf;super(),_(this,'_status$',new _0xbc7543(P['NOT_COLLAB'])),(this[_0x21598c(0x44a)]=_0x2a034f,this[_0x21598c(0x206)]=_0x4d757f,this[_0x21598c(0x1ef)]=_0x41ca37,this[_0x21598c(0x177)]=_0x165d29,this[_0x21598c(0x3f7)](),this[_0x21598c(0x373)]());}[_0xa83ddf(0x3f7)](){const _0x1c214e=_0xa83ddf;this[_0x1c214e(0x46f)](this['_uiPartsService']['registerComponent'](_0x31b0de[_0x1c214e(0x259)],()=>_0x1c7a3c(Yr({'status$':this[_0x1c214e(0x211)][_0x1c214e(0x473)]()}),this[_0x1c214e(0x1ef)])));}['_initStatusListener'](){const _0x5f013e=_0xa83ddf;this[_0x5f013e(0x46f)](_0x5bf8dd(this[_0x5f013e(0x44a)][_0x5f013e(0x161)][_0x5f013e(0x2e5)](_0x284752(()=>{const _0x3df7d6=_0x5f013e,_0x5ced15=this[_0x3df7d6(0x44a)]['getFocusedUnit']();return _0x5ced15?this['_collaborationController'][_0x3df7d6(0x40d)](_0x5ced15[_0x3df7d6(0x27a)]()):_0x2e1ce7(null);}),_0x284752(_0x2fbaa7=>_0x2fbaa7?_0x2fbaa7[_0x5f013e(0x3c1)]:_0x2e1ce7(P[_0x5f013e(0x3f5)])))[_0x5f013e(0x222)](_0x1b5657=>{const _0x19316d=_0x5f013e;this[_0x19316d(0x211)][_0x19316d(0x311)](_0x1b5657);})));}};ke=Gr([_0x3b619c(_0x13d562[_0xa83ddf(0x181)],ke),$e(0x0,_0x1b1ada),$e(0x1,_0x1588cc),$e(0x2,_0x2854bc(_0x28aed1)),$e(0x3,_0x2854bc(Me))],ke);function Yr(_0x1b76d2){const {status$:_0x36f3d1}=_0x1b76d2;return function(){const _0x40a2dc=_0xed79;return _0x58584e[_0x40a2dc(0x2ff)](Br,{'status$':_0x36f3d1});};}const Hs=_0x39166c(_0xa83ddf(0x192));var Kr=Object[_0xa83ddf(0x3b2)],Xr=Object[_0xa83ddf(0x190)],Jr=(_0x264d6f,_0x2b8c0a,_0x531fc3,_0x387505)=>{const _0x1688a3=_0xa83ddf;for(var _0x31c20b=_0x387505>0x1?void 0x0:_0x387505?Xr(_0x2b8c0a,_0x531fc3):_0x2b8c0a,_0x331163=_0x264d6f[_0x1688a3(0x249)]-0x1,_0x308a4f;_0x331163>=0x0;_0x331163--)(_0x308a4f=_0x264d6f[_0x331163])&&(_0x31c20b=(_0x387505?_0x308a4f(_0x2b8c0a,_0x531fc3,_0x31c20b):_0x308a4f(_0x31c20b))||_0x31c20b);return _0x387505&&_0x31c20b&&Kr(_0x2b8c0a,_0x531fc3,_0x31c20b),_0x31c20b;},ue=(_0x59ba90,_0x443146)=>(_0x4dff3e,_0x167f19)=>_0x443146(_0x4dff3e,_0x167f19,_0x59ba90);let Ve=class extends _0x26114b{constructor(_0x2b2cbb,_0x16b3aa,_0x18a5c7,_0xa1a187,_0x39458e,_0x37dbc8){const _0xbf49d=_0xa83ddf;super(),this[_0xbf49d(0x154)]=_0x2b2cbb,this[_0xbf49d(0x33d)]=_0x16b3aa,this['_commandService']=_0x18a5c7,this[_0xbf49d(0x158)]=_0xa1a187,this[_0xbf49d(0x359)]=_0x39458e,_0x37dbc8?_0x37dbc8==null||_0x37dbc8[_0xbf49d(0x3d7)]()[_0xbf49d(0x450)](()=>this[_0xbf49d(0x267)]()):(this[_0xbf49d(0x33d)][_0xbf49d(0x427)]('[DataLoaderController]','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0xbf49d(0x267)]());}async['_init'](){const _0x354cad=_0xa83ddf,_0x26c201=this[_0x354cad(0x154)]['getParam']('unit'),_0x47f36d=this[_0x354cad(0x154)][_0x354cad(0x169)](_0x354cad(0x2f9));if(!_0x26c201||!_0x47f36d){this[_0x354cad(0x33d)][_0x354cad(0x427)](_0x354cad(0x226),_0x354cad(0x2a1));return;}switch(Number(_0x47f36d)){case H[_0x354cad(0x2ac)]:{const _0xca335d=await this[_0x354cad(0x28c)](_0x26c201);this['_setupSubUnitSync'](_0xca335d);break;}case H[_0x354cad(0x1f2)]:{await this['_loadDoc'](_0x26c201);break;}default:{this['_logService'][_0x354cad(0x44e)]('[DataLoaderController]','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async[_0xa83ddf(0x41d)](_0x213c42){const _0x4a5e38=_0xa83ddf;await this[_0x4a5e38(0x3c0)](_0x213c42),_0x213c42['activeSheet$'][_0x4a5e38(0x2e5)](_0x4b5283(this['dispose$']))['subscribe'](_0x43f7ab=>{const _0xedbd8c=_0x4a5e38;_0x43f7ab&&this[_0xedbd8c(0x16f)](_0x43f7ab);}),this[_0x4a5e38(0x154)][_0x4a5e38(0x295)][_0x4a5e38(0x2e5)](_0x4b5283(this[_0x4a5e38(0x22b)]))[_0x4a5e38(0x222)](()=>this[_0x4a5e38(0x3c0)](_0x213c42));}[_0xa83ddf(0x16f)](_0x8d057b,_0x312fbe=!0x1){const _0x28187b=_0xa83ddf,_0x83fb2b=this[_0x28187b(0x154)][_0x28187b(0x169)](_0x28187b(0x402));_0x8d057b[_0x28187b(0x205)]()!==_0x83fb2b&&this[_0x28187b(0x154)][_0x28187b(0x429)](_0x28187b(0x402),_0x8d057b['getSheetId'](),_0x312fbe);}async['_updateSubUnitFromURLParams'](_0x2004ce){const _0x4c57e0=_0xa83ddf;var _0x3d1d8a;const _0x29ebed=this[_0x4c57e0(0x154)][_0x4c57e0(0x169)](_0x4c57e0(0x402));if(!_0x29ebed||!_0x2004ce[_0x4c57e0(0x466)](_0x29ebed)){const _0x192295=_0x2004ce[_0x4c57e0(0x38d)]()[0x0],_0x2fd201=_0x2004ce['getSheetBySheetId'](_0x192295);if(!_0x2fd201)return;this['_updateURLWithCurrentState'](_0x2fd201,!0x0),await this['_commandService'][_0x4c57e0(0x318)](_0x488c5e['id'],{'unitId':_0x2004ce['getUnitId'](),'subUnitId':_0x192295});return;}((_0x3d1d8a=_0x2004ce[_0x4c57e0(0x38b)]())==null?void 0x0:_0x3d1d8a[_0x4c57e0(0x205)]())!==_0x29ebed&&await this['_commandService'][_0x4c57e0(0x318)](_0x488c5e['id'],{'unitId':_0x2004ce[_0x4c57e0(0x27a)](),'subUnitId':_0x29ebed});}async['_loadSheet'](_0x53fad0){const _0x658344=_0xa83ddf;let _0x8944a6=0x0;const _0x4b93e9=await this[_0x658344(0x158)][_0x658344(0x392)](_0x53fad0);return _0x4b93e9&&(_0x4b93e9[_0x658344(0x2c5)]||_0x4b93e9[_0x658344(0x43b)][_0x658344(0x249)]!==0x0)&&(_0x8944a6=_0x4b93e9[_0x658344(0x416)]),_0x8944a6===0x0&&this[_0x658344(0x33d)]['debug'](_0x658344(0x226),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x658344(0x359)][_0x658344(0x1f8)](_0x53fad0,_0x8944a6);}async[_0xa83ddf(0x3f1)](_0xe1964){const _0x55aeae=_0xa83ddf;let _0x5efdb2=0x0;const _0x3de08e=await this[_0x55aeae(0x158)]['loadOfflineData'](_0xe1964);return _0x3de08e&&(_0x3de08e[_0x55aeae(0x2c5)]||_0x3de08e[_0x55aeae(0x43b)][_0x55aeae(0x249)]!==0x0)&&(_0x5efdb2=_0x3de08e['rev']),_0x5efdb2===0x0&&this[_0x55aeae(0x33d)][_0x55aeae(0x427)](_0x55aeae(0x226),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x55aeae(0x359)][_0x55aeae(0x1ee)](_0xe1964,_0x5efdb2);}};Ve=Jr([_0x3b619c(_0x13d562[_0xa83ddf(0x181)],Ve),ue(0x0,Hs),ue(0x1,_0x31880b),ue(0x2,_0x291fa9),ue(0x3,_0x2854bc(D)),ue(0x4,_0x2854bc(_0x235fd7)),ue(0x5,_0x36b891(_0x467bd6))],Ve);var zr=Object[_0xa83ddf(0x3b2)],qr=Object[_0xa83ddf(0x190)],Zr=(_0x3253f4,_0x192b81,_0x4f99f,_0xadf492)=>{for(var _0x33aa4d=_0xadf492>0x1?void 0x0:_0xadf492?qr(_0x192b81,_0x4f99f):_0x192b81,_0x579341=_0x3253f4['length']-0x1,_0x2fb7f3;_0x579341>=0x0;_0x579341--)(_0x2fb7f3=_0x3253f4[_0x579341])&&(_0x33aa4d=(_0xadf492?_0x2fb7f3(_0x192b81,_0x4f99f,_0x33aa4d):_0x2fb7f3(_0x33aa4d))||_0x33aa4d);return _0xadf492&&_0x33aa4d&&zr(_0x192b81,_0x4f99f,_0x33aa4d),_0x33aa4d;},hs=(_0x4a4b1f,_0x4f2f26)=>(_0x2b315f,_0x3e5295)=>_0x4f2f26(_0x2b315f,_0x3e5295,_0x4a4b1f);const Qr='DEFAULT_FILE_NAME',eo='Univer';let Be=class extends _0x54b342{constructor(_0x54142e,_0x28b4ff){const _0x52d561=_0xa83ddf;super(),this[_0x52d561(0x44a)]=_0x54142e,this[_0x52d561(0x442)]=_0x28b4ff,this[_0x52d561(0x267)]();}['_init'](){const _0x38cf9e=_0xa83ddf;this[_0x38cf9e(0x46f)](_0x5bf8dd(this['_univerInstanceService'][_0x38cf9e(0x161)]['subscribe'](()=>{const _0x108bc8=_0x38cf9e;var _0x3d6877;const _0x139c0e=this['_univerInstanceService']['getFocusedUnit']();let _0x2a726a=(_0x3d6877=this['_configService'][_0x108bc8(0x436)](Qr))!=null?_0x3d6877:eo;_0x139c0e instanceof _0x5340aa&&(_0x2a726a=_0x139c0e[_0x108bc8(0x1dd)]),document[_0x108bc8(0x3b0)]=_0x2a726a;})));}};Be=Zr([_0x3b619c(_0x13d562['Ready'],Be),hs(0x0,_0x1b1ada),hs(0x1,_0x5e7a12)],Be);var to=Object['defineProperty'],so=Object['getOwnPropertyDescriptor'],io=(_0x3fb01b,_0x236546,_0x5cf9b5,_0x2f8278)=>{const _0x426d9b=_0xa83ddf;for(var _0x112644=_0x2f8278>0x1?void 0x0:_0x2f8278?so(_0x236546,_0x5cf9b5):_0x236546,_0x3f87cc=_0x3fb01b[_0x426d9b(0x249)]-0x1,_0x168f6d;_0x3f87cc>=0x0;_0x3f87cc--)(_0x168f6d=_0x3fb01b[_0x3f87cc])&&(_0x112644=(_0x2f8278?_0x168f6d(_0x236546,_0x5cf9b5,_0x112644):_0x168f6d(_0x112644))||_0x112644);return _0x2f8278&&_0x112644&&to(_0x236546,_0x5cf9b5,_0x112644),_0x112644;},_s=(_0x39ad59,_0x4bab3a)=>(_0x23f276,_0x436fae)=>_0x4bab3a(_0x23f276,_0x436fae,_0x39ad59);let Ot=class{constructor(_0x56e9d6,_0x136cf8){const _0x13cdf7=_0xa83ddf;this[_0x13cdf7(0x442)]=_0x56e9d6,this[_0x13cdf7(0x141)]=_0x136cf8;}async['getUnitOnRev'](_0x477bc7,_0x44cf3b){const _0x549871=_0xa83ddf;var _0x517e6f;const {unitID:_0x4b085d,type:_0x442df9,revision:_0x80ff70=0x0}=_0x44cf3b,_0x3be30b=this[_0x549871(0x179)]()+'/'+_0x442df9+'/unit/'+_0x4b085d+_0x549871(0x176)+_0x80ff70,_0x15e0a9=(await this[_0x549871(0x141)][_0x549871(0x441)](_0x3be30b))['body'],_0x1ae4f5=(_0x517e6f=_0x15e0a9['snapshot'])==null?void 0x0:_0x517e6f[_0x549871(0x152)];if(_0x1ae4f5){const _0x908f48=_0x1ae4f5==null?void 0x0:_0x1ae4f5[_0x549871(0x232)],_0x1de06c=_0x46e75c[_0x549871(0x234)](_0x2a1742(_0x908f48));_0x1ae4f5[_0x549871(0x232)]=_0x1de06c,Object[_0x549871(0x296)](_0x1ae4f5[_0x549871(0x202)])['forEach'](([,_0x22c850])=>{const _0x55419f=_0x549871,_0x587e9b=_0x22c850[_0x55419f(0x232)],_0x413040=_0x46e75c['encode'](_0x2a1742(_0x587e9b));_0x22c850[_0x55419f(0x232)]=_0x413040;});}return _0x15e0a9;}async[_0xa83ddf(0x2bf)](_0x5d973a,_0x51e610){const _0x2e784e=_0xa83ddf,{unitID:_0x55fc28,type:_0x2c07b2,blockID:_0x5fbce9}=_0x51e610,_0x1acad5=this[_0x2e784e(0x3ba)]()+'/'+_0x2c07b2+_0x2e784e(0x247)+_0x55fc28+'/block/'+_0x5fbce9;return(await this['_httpService'][_0x2e784e(0x441)](_0x1acad5))[_0x2e784e(0x214)];}async[_0xa83ddf(0x21e)](_0x1d691b,_0x3bba29){const _0x47eff1=_0xa83ddf,{unitID:_0x3266f3,type:_0x5b8fe0,from:_0x172084,to:_0x4d0fba}=_0x3bba29,_0x5f5d43=this['_getAPIPrefix']()+'/'+_0x5b8fe0+_0x47eff1(0x247)+_0x3266f3+_0x47eff1(0x2aa)+_0x172084+_0x47eff1(0x3be)+_0x4d0fba;return(await this[_0x47eff1(0x141)]['get'](_0x5f5d43))[_0x47eff1(0x214)];}[_0xa83ddf(0x179)](){const _0x3d8044=_0xa83ddf;var _0x13211b;return(_0x13211b=this['_configService'][_0x3d8044(0x436)](hn))!=null?_0x13211b:this[_0x3d8044(0x3ba)]();}[_0xa83ddf(0x3ba)](){const _0x10efe8=_0xa83ddf;var _0x3e0575;return(_0x3e0575=this['_configService'][_0x10efe8(0x436)](an))!=null?_0x3e0575:cn;}async[_0xa83ddf(0x215)](_0x423e55,_0x496a0d){const _0x3382c3=_0xa83ddf,_0x444228='/universer-api/snapshot/'+_0x496a0d[_0x3382c3(0x2f9)]+_0x3382c3(0x247)+_0x496a0d['unitID']+'/resources';return(await this[_0x3382c3(0x141)]['get'](_0x444228,{'params':{'resourceId':JSON['stringify'](_0x496a0d[_0x3382c3(0x37d)])}}))['body'];}[_0xa83ddf(0x1d9)](){const _0x2198d6=_0xa83ddf;throw new Error(_0x2198d6(0x257));}['saveSheetBlock'](){const _0x1bbe46=_0xa83ddf;throw new Error(_0x1bbe46(0x257));}[_0xa83ddf(0x1c5)](){const _0x4daac1=_0xa83ddf;throw new Error(_0x4daac1(0x257));}};Ot=io([_s(0x0,_0x5e7a12),_s(0x1,_0x2854bc(_0x3efcab))],Ot);var no=Object['defineProperty'],ro=Object[_0xa83ddf(0x190)],oo=(_0xcc385f,_0x486810,_0x5304c5,_0x2719c6)=>{const _0x5e2327=_0xa83ddf;for(var _0x5c87bc=_0x2719c6>0x1?void 0x0:_0x2719c6?ro(_0x486810,_0x5304c5):_0x486810,_0x2bff16=_0xcc385f[_0x5e2327(0x249)]-0x1,_0x54b42b;_0x2bff16>=0x0;_0x2bff16--)(_0x54b42b=_0xcc385f[_0x2bff16])&&(_0x5c87bc=(_0x2719c6?_0x54b42b(_0x486810,_0x5304c5,_0x5c87bc):_0x54b42b(_0x5c87bc))||_0x5c87bc);return _0x2719c6&&_0x5c87bc&&no(_0x486810,_0x5304c5,_0x5c87bc),_0x5c87bc;},Pe=(_0x3ee9b0,_0x2376f3)=>(_0x24a23a,_0x5b1932)=>_0x2376f3(_0x24a23a,_0x5b1932,_0x3ee9b0);let Dt=class extends _0x4430ad{constructor(_0x140c6d,_0x1aef43,_0x41b9a7,_0x1cd99e,_0x311769){const _0x2a401a=_0xa83ddf;super(_0x140c6d,_0x1aef43,_0x41b9a7),this[_0x2a401a(0x2ef)]=_0x1cd99e,this[_0x2a401a(0x33d)]=_0x311769;}['transformUndoRedo'](_0x46cddb,_0x14d6fd){const _0x595e28=_0xa83ddf,_0x1df7f9=this['_getUndoStack'](_0x46cddb);if(_0x1df7f9)try{const _0x7a8bb2=this[_0x595e28(0x43a)](_0x1df7f9,_0x14d6fd);this['_substituteUndoStack'](_0x46cddb,_0x7a8bb2);}catch(_0x28e026){this[_0x595e28(0x33d)][_0x595e28(0x44e)](_0x595e28(0x2f3),_0x28e026),this[_0x595e28(0x3ca)](_0x46cddb);}const _0x5ddd49=this['_getRedoStack'](_0x46cddb);if(_0x5ddd49)try{const _0x5f8846=this[_0x595e28(0x43a)](_0x5ddd49,_0x14d6fd);this[_0x595e28(0x448)](_0x46cddb,_0x5f8846);}catch(_0x1bd633){this[_0x595e28(0x33d)]['error'](_0x1bd633),this[_0x595e28(0x1ff)](_0x46cddb);}}[_0xa83ddf(0x3ca)](_0x215acf){const _0x8ade52=_0xa83ddf,_0x5a1b55=this[_0x8ade52(0x248)](_0x215acf);_0x5a1b55&&(_0x5a1b55[_0x8ade52(0x249)]=0x0,this[_0x8ade52(0x288)]());}['_clearRedo'](_0x1e9c81){const _0x29cb86=_0xa83ddf,_0x2f15e1=this[_0x29cb86(0x457)](_0x1e9c81);_0x2f15e1&&(_0x2f15e1[_0x29cb86(0x249)]=0x0,this[_0x29cb86(0x288)]());}['_substituteUndoStack'](_0x357a9b,_0x38210f){const _0x5aa7d6=_0xa83ddf;this[_0x5aa7d6(0x163)][_0x5aa7d6(0x3fb)](_0x357a9b,_0x38210f),this[_0x5aa7d6(0x288)]();}[_0xa83ddf(0x448)](_0x592298,_0x23e4f7){this['_redoStacks']['set'](_0x592298,_0x23e4f7),this['_updateStatus']();}[_0xa83ddf(0x43a)](_0x990136,_0x2f8bd0){const _0x13eb6a=_0xa83ddf,_0x1a1718=[];let _0x59a45a=_0x2f8bd0,_0x4f0110=_0x2f8bd0;for(let _0x285d63=_0x990136['length']-0x1;_0x285d63>=0x0;_0x285d63--){const {unitID:_0x3cc8b3,undoMutations:_0x182a39,redoMutations:_0x40bf66}=_0x990136[_0x285d63],_0x562261=this['_transformService'][_0x13eb6a(0x384)](_0x59a45a,_0x182a39),_0x16ad4f=this[_0x13eb6a(0x2ef)][_0x13eb6a(0x384)](_0x4f0110,_0x40bf66);if(_0x22b0cf(_0x562261)||_0x22b0cf(_0x16ad4f)){this[_0x13eb6a(0x33d)][_0x13eb6a(0x44e)](_0x13eb6a(0x2f3),_0x13eb6a(0x1bf),_0x562261,_0x16ad4f);break;}_0x59a45a=_0x562261[_0x13eb6a(0x227)],_0x4f0110=_0x16ad4f[_0x13eb6a(0x227)],_0x1a1718['push']({'unitID':_0x3cc8b3,'undoMutations':_0x562261[_0x13eb6a(0x145)],'redoMutations':_0x16ad4f['m2Prime']});}return _0x1a1718[_0x13eb6a(0x165)]();}};Dt=oo([Pe(0x0,_0x1b1ada),Pe(0x1,_0x291fa9),Pe(0x2,_0x330f45),Pe(0x3,_0x5b4b40),Pe(0x4,_0x31880b)],Dt);class ao extends _0x26114b{constructor(){const _0x404156=_0xa83ddf;super(),_(this,_0x404156(0x295)),this[_0x404156(0x295)]=_0x78aa37(window,'popstate')[_0x404156(0x2e5)](_0x4b5283(this[_0x404156(0x22b)]),_0x2fa1a3(0x1),_0x3080b0(void 0x0));}[_0xa83ddf(0x429)](_0x100b65,_0xc3a2ba,_0x1bdfb9=!0x1){const _0x38b57d=_0xa83ddf,_0x40fcaa=new URL(window[_0x38b57d(0x140)][_0x38b57d(0x3ed)]);_0x40fcaa[_0x38b57d(0x36d)]['set'](_0x100b65,_0xc3a2ba),_0x1bdfb9?window[_0x38b57d(0x3bf)][_0x38b57d(0x275)]('','',_0x40fcaa[_0x38b57d(0x3af)]()):window[_0x38b57d(0x3bf)]['pushState']('','',_0x40fcaa[_0x38b57d(0x3af)]());}[_0xa83ddf(0x270)](_0x4bce75,_0x50454d=!0x1){const _0xf3ad96=_0xa83ddf,_0x3c3192=new URL(window[_0xf3ad96(0x140)][_0xf3ad96(0x3ed)]);_0x3c3192[_0xf3ad96(0x36d)][_0xf3ad96(0x29c)](_0x4bce75),_0x50454d?window[_0xf3ad96(0x3bf)][_0xf3ad96(0x275)]('','',_0x3c3192[_0xf3ad96(0x3af)]()):window['history'][_0xf3ad96(0x219)]('','',_0x3c3192[_0xf3ad96(0x3af)]());}['getParam'](_0x3e571b){const _0x48def7=_0xa83ddf;var _0x1e8bd8;return(_0x1e8bd8=new URL(window['location']['href'])[_0x48def7(0x36d)][_0x48def7(0x441)](_0x3e571b))!=null?_0x1e8bd8:void 0x0;}}const lt=_0xa83ddf(0x2b7),co=_0xa83ddf(0x31d),ho=_0xa83ddf(0x15b),we=0x6,_o=1.5,ut=0x4,lo=1.5,uo=_0xa83ddf(0x389);class ls{constructor(_0x313eed,_0x4668d3,_0x54e2aa,_0x583694){const _0x13b440=_0xa83ddf;_(this,_0x13b440(0x1a3),[]),_(this,_0x13b440(0x18a),null),_(this,_0x13b440(0x18d),null),_(this,'_anchorDot',null),_(this,_0x13b440(0x1dc),null),_(this,_0x13b440(0x1af),null),(this['_cursor']=_0x313eed,this[_0x13b440(0x2cb)]=_0x4668d3,this['_docSkeleton']=_0x54e2aa,this['_document']=_0x583694,this['_render']());}set[_0xa83ddf(0x1fb)](_0x42c3d5){const _0x5115e5=_0xa83ddf;_0x42c3d5?(this['_anchorDot']&&this[_0x5115e5(0x1d1)]['hide'](),this[_0x5115e5(0x18d)]&&this[_0x5115e5(0x18d)]['show']()):(this[_0x5115e5(0x1d1)]&&this[_0x5115e5(0x1d1)][_0x5115e5(0x178)](),this[_0x5115e5(0x18d)]&&this[_0x5115e5(0x18d)][_0x5115e5(0x1b7)]());}['dispose'](){const _0x4bb6e9=_0xa83ddf;for(const _0x13f1ac of this[_0x4bb6e9(0x1a3)])_0x13f1ac[_0x4bb6e9(0x471)]();this[_0x4bb6e9(0x18d)]&&this[_0x4bb6e9(0x18d)]['dispose'](),this[_0x4bb6e9(0x1d1)]&&this['_anchorDot'][_0x4bb6e9(0x471)](),this[_0x4bb6e9(0x18a)]&&this[_0x4bb6e9(0x18a)][_0x4bb6e9(0x471)](),this[_0x4bb6e9(0x1af)]&&this['_eventUnsubscribe']();}[_0xa83ddf(0x278)](){const _0x523c5f=_0xa83ddf;var _0x180f4a;const {_docSkeleton:_0x4aebc3,_document:_0x27cc07}=this,{color:_0x374ae4,name:_0x2f819d,ranges:_0x5af5d0}=this['_cursor'],_0x6f0f5e=_0x27cc07['getOffsetConfig'](),{docsLeft:_0x16265a,docsTop:_0x2ee57c}=_0x6f0f5e,_0x594fd6=new _0x2ea5cc(_0x6f0f5e,_0x4aebc3);for(const {startOffset:_0x5b3dc8,endOffset:_0x9b6ee,collapsed:_0x43c47c,isActive:_0x1ec84a}of _0x5af5d0){const _0x166717=_0x4aebc3[_0x523c5f(0x46c)](_0x5b3dc8),_0x50b2cb=_0x4aebc3[_0x523c5f(0x46c)](_0x9b6ee);if(_0x1ec84a){const {contentBoxPointGroup:_0x24f9f4}=_0x594fd6['getRangePointData'](_0x50b2cb,_0x50b2cb);if(_0x24f9f4[_0x523c5f(0x249)]===0x0)continue;this[_0x523c5f(0x20a)](_0x374ae4,_0x24f9f4,_0x16265a,_0x2ee57c,_0x2f819d),this['_eventUnsubscribe']=this['_handleHover']();}if(!_0x43c47c&&_0x166717&&_0x50b2cb){if(_0x4b651b(_0x166717,_0x50b2cb)){const _0x421bc5=new _0x172ca8(_0x6f0f5e,_0x4aebc3),{pointGroup:_0x2b6244}=(_0x180f4a=_0x421bc5[_0x523c5f(0x2b8)](_0x166717,_0x50b2cb))!=null?_0x180f4a:{};if(_0x2b6244==null||_0x2b6244['length']===0x0)continue;this[_0x523c5f(0x2c9)](_0x374ae4,_0x2b6244,_0x16265a,_0x2ee57c);}else{const {contentBoxPointGroup:_0x47772b}=_0x594fd6[_0x523c5f(0x2b8)](_0x166717,_0x50b2cb);if(_0x47772b[_0x523c5f(0x249)]===0x0)continue;this[_0x523c5f(0x377)](_0x374ae4,_0x47772b,_0x16265a,_0x2ee57c);}}}}[_0xa83ddf(0x20a)](_0x171fe5,_0x4a9331,_0x2849f7,_0x27e79f,_0x5e9e8e){const _0x2ec721=_0xa83ddf,_0x42adec=this[_0x2ec721(0x2e4)](_0x4a9331),{left:_0xb2ce20,top:_0x5e7029,height:_0x4bc41b}=_0x42adec,_0x177a2a=this[_0x2ec721(0x467)](),_0x19db05=lo/_0x177a2a,_0x25673a=new _0x97f8c4(lt+_0x146730['generateRandomId'](we),{'left':_0xb2ce20+_0x2849f7-_0x19db05,'top':_0x5e7029+_0x27e79f,'height':_0x4bc41b,'width':_o,'fill':_0x171fe5||_0x18174b(_0x2cb332[_0x2ec721(0x2ec)],0x0),'strokeWidth':_0x19db05,'stroke':uo,'evented':!0x0});this['_anchor']=_0x25673a,this[_0x2ec721(0x2cb)]['addObject'](_0x25673a,_0x480610);const _0x300364=new _0x97f8c4(lt+_0x146730[_0x2ec721(0x447)](we),{'left':_0xb2ce20+_0x2849f7-_0x19db05,'top':_0x5e7029+_0x27e79f-ut/0x2,'height':ut,'width':ut,'fill':_0x171fe5||_0x18174b(_0x2cb332[_0x2ec721(0x2ec)],0x0),'strokeWidth':0x0,'stroke':_0x171fe5||_0x18174b(_0x2cb332[_0x2ec721(0x2ec)],0x0),'evented':!0x1});this['_anchorDot']=_0x300364,this['_scene'][_0x2ec721(0x2a4)](_0x300364,_0x480610);const _0x4f5d15=new it(lt+_0x146730['generateRandomId'](we),{'left':_0xb2ce20+_0x2849f7-_0x19db05,'top':_0x5e7029+_0x27e79f-ye,'text':_0x5e9e8e,'color':_0x171fe5});this['_textBubble']=_0x4f5d15,this[_0x2ec721(0x2cb)][_0x2ec721(0x2a4)](_0x4f5d15,_0x480610),this[_0x2ec721(0x1fb)]=!0x1;}[_0xa83ddf(0x3bd)](){const _0x4a6644=_0xa83ddf,_0xca690a=this['_anchor'][_0x4a6644(0x367)]['subscribeEvent'](()=>{const _0xf20812=_0x4a6644;this[_0xf20812(0x1fb)]=!0x0;}),_0x3202b7=this['_anchor']['onPointerLeave$'][_0x4a6644(0x2f2)](()=>{const _0x169e93=_0x4a6644;this[_0x169e93(0x1dc)]&&clearTimeout(this[_0x169e93(0x1dc)]),this[_0x169e93(0x1dc)]=setTimeout(()=>{const _0x2b5b86=_0x169e93;this[_0x2b5b86(0x1fb)]=!0x1;},0x7d0);});return()=>{const _0x2d1719=_0x4a6644;_0xca690a[_0x2d1719(0x23d)](),_0x3202b7[_0x2d1719(0x23d)]();};}[_0xa83ddf(0x377)](_0x4c5b26,_0x3c25c0,_0x532e8f,_0x9c7f67){const _0x1faa49=_0xa83ddf,_0x241c49=new _0x57dab2(_0x4c5b26)[_0x1faa49(0x394)](0.2)[_0x1faa49(0x2e3)](),_0xbccf7a=new _0x37879a(co+_0x146730[_0x1faa49(0x447)](we),{'pointsGroup':_0x3c25c0,'fill':_0x241c49||_0x18174b(_0x2cb332[_0x1faa49(0x2ec)],0.2),'left':_0x532e8f,'top':_0x9c7f67,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1faa49(0x1a3)]['push'](_0xbccf7a),this[_0x1faa49(0x2cb)][_0x1faa49(0x2a4)](_0xbccf7a,_0x480610);}[_0xa83ddf(0x2c9)](_0x45b7c0,_0x363835,_0x540f1d,_0x5e8f6c){const _0x3f73bd=_0xa83ddf,_0x398900=new _0x57dab2(_0x45b7c0)[_0x3f73bd(0x394)](0.2)['toRgbString'](),_0x3adf1b=new _0x37879a(ho+_0x146730[_0x3f73bd(0x447)](we),{'pointsGroup':_0x363835,'fill':_0x398900||_0x18174b(_0x2cb332[_0x3f73bd(0x2ec)],0.2),'left':_0x540f1d,'top':_0x5e8f6c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3f73bd(0x1a3)][_0x3f73bd(0x14e)](_0x3adf1b),this['_scene'][_0x3f73bd(0x2a4)](_0x3adf1b,_0x480610);}[_0xa83ddf(0x2e4)](_0x270310){const _0x66d9be=_0x270310[0x0],_0x157aae=_0x66d9be[0x0],_0x223e21=_0x66d9be[0x2],{x:_0x203ab2,y:_0x19ee96}=_0x157aae,{x:_0x246a74,y:_0x203e2a}=_0x223e21;return{'left':_0x203ab2,'top':_0x19ee96,'width':_0x246a74-_0x203ab2,'height':_0x203e2a-_0x19ee96};}[_0xa83ddf(0x467)](){const _0x4fb66b=_0xa83ddf,{scaleX:_0x2073b2,scaleY:_0x24eabf}=this[_0x4fb66b(0x2cb)]['getAncestorScale']();return Math[_0x4fb66b(0x366)](_0x2073b2,_0x24eabf);}}var mo=Object[_0xa83ddf(0x3b2)],fo=Object[_0xa83ddf(0x190)],go=(_0x4f2540,_0x1d791d,_0x235f81,_0x1025bc)=>{const _0x255b67=_0xa83ddf;for(var _0x15179b=_0x1025bc>0x1?void 0x0:_0x1025bc?fo(_0x1d791d,_0x235f81):_0x1d791d,_0x191f53=_0x4f2540[_0x255b67(0x249)]-0x1,_0x12ea38;_0x191f53>=0x0;_0x191f53--)(_0x12ea38=_0x4f2540[_0x191f53])&&(_0x15179b=(_0x1025bc?_0x12ea38(_0x1d791d,_0x235f81,_0x15179b):_0x12ea38(_0x15179b))||_0x15179b);return _0x1025bc&&_0x15179b&&mo(_0x1d791d,_0x235f81,_0x15179b),_0x15179b;},je=(_0xd6eb9b,_0x199b11)=>(_0x56b53f,_0x492153)=>_0x199b11(_0x56b53f,_0x492153,_0xd6eb9b);let Fe=class extends _0x26114b{constructor(_0x3ad775,_0x1046d1,_0x3bd4f3,_0x49e842,_0xa95d99){const _0x10d4fe=_0xa83ddf;super(),_(this,_0x10d4fe(0x3a4),[]),_(this,_0x10d4fe(0x289),[]),(this[_0x10d4fe(0x3ff)]=_0x3ad775,this[_0x10d4fe(0x1b2)]=_0x1046d1,this[_0x10d4fe(0x440)]=_0x3bd4f3,this[_0x10d4fe(0x153)]=_0x49e842,this[_0x10d4fe(0x1a4)]=_0xa95d99,this[_0x10d4fe(0x267)]());}[_0xa83ddf(0x267)](){const _0x2a02eb=_0xa83ddf,_0x2bd493=this[_0x2a02eb(0x3ff)][_0x2a02eb(0x3dd)],_0x2a86b5=this['_docSkeletonManagerService'];this[_0x2a02eb(0x46f)](_0x4ffd7b([this['_collabCursorController'][_0x2a02eb(0x1f4)](_0x2bd493),this[_0x2a02eb(0x1a4)][_0x2a02eb(0x33e)]])[_0x2a02eb(0x2e5)](_0x255c5b(([_0x53a82b,_0x38d5f9])=>({'skeleton':_0x2a86b5['getSkeleton'](),'cursors':[..._0x53a82b[_0x2a02eb(0x172)]()]['flatMap'](_0x35a792=>({..._0x35a792,'color':_0x38d5f9[_0x35a792[_0x2a02eb(0x364)]]}))})))[_0x2a02eb(0x222)](_0x4b05da=>{const _0x4ec6d8=_0x2a02eb;if(this[_0x4ec6d8(0x13f)](),_0x4b05da){const {skeleton:_0xfbef33,cursors:_0x5770a5}=_0x4b05da;this[_0x4ec6d8(0x3a5)](_0xfbef33,_0x5770a5);}})),this['_initResize'](),this[_0x2a02eb(0x383)]();}[_0xa83ddf(0x3a5)](_0xcfec6,_0x3d2921){const _0x2f8c9e=_0xa83ddf,{scene:_0x252a2d,mainComponent:_0x4bcdb6}=this[_0x2f8c9e(0x3ff)],_0x174031=_0x3d2921[_0x2f8c9e(0x423)](_0x26415b=>new ls(_0x26415b,_0x252a2d,_0xcfec6,_0x4bcdb6));this['_cursorShapes']=_0x174031,this[_0x2f8c9e(0x289)]=_0x3d2921;}['_refreshCollabCursors'](){const _0x1ed1df=_0xa83ddf;this[_0x1ed1df(0x13f)]();const {scene:_0x14dccb,mainComponent:_0x4a7d6a}=this[_0x1ed1df(0x3ff)],_0xfdd35c=this['_docSkeletonManagerService'][_0x1ed1df(0x376)](),_0x4e3c59=this[_0x1ed1df(0x289)][_0x1ed1df(0x423)](_0x5050c4=>new ls(_0x5050c4,_0x14dccb,_0xfdd35c,_0x4a7d6a));this[_0x1ed1df(0x3a4)]=_0x4e3c59;}['_removeCollabCursors'](){const _0x4da5da=_0xa83ddf;this[_0x4da5da(0x3a4)][_0x4da5da(0x3e6)](_0x5411a8=>_0x5411a8[_0x4da5da(0x471)]()),this['_cursorShapes']=[];}['_initCommandExecutedListener'](){const _0x2113b0=_0xa83ddf,_0x193487=[_0x5d1a0c['id']];this['disposeWithMe'](this[_0x2113b0(0x153)][_0x2113b0(0x30a)](_0x4333ba=>{const _0x1cecc5=_0x2113b0;_0x193487[_0x1cecc5(0x173)](_0x4333ba['id'])&&_0x4333ba['params'][_0x1cecc5(0x3dd)]===this[_0x1cecc5(0x3ff)][_0x1cecc5(0x3dd)]&&this[_0x1cecc5(0x3b9)]();}));}[_0xa83ddf(0x15e)](){const _0x3dbfeb=_0xa83ddf;this[_0x3dbfeb(0x46f)](_0x4fb823(this[_0x3dbfeb(0x3ff)]['engine'][_0x3dbfeb(0x37a)])[_0x3dbfeb(0x2e5)](_0x4393c3(_0x526553=>_0x526553[_0x3dbfeb(0x2f9)]===_0x2257dd[_0x3dbfeb(0x2ae)]),_0x133efc(0x10))[_0x3dbfeb(0x222)](()=>{const _0x400ffd=_0x3dbfeb;this[_0x400ffd(0x3b9)]();}));}};Fe=go([_0x3b619c(_0x13d562[_0xa83ddf(0x1b6)],Fe),je(0x1,_0x2854bc(_0x4a13e2)),je(0x2,_0x2854bc(ge)),je(0x3,_0x291fa9),je(0x4,_0x2854bc(_0x356051))],Fe);var So=Object[_0xa83ddf(0x3b2)],po=Object[_0xa83ddf(0x190)],vo=(_0x5d35f4,_0x3b6e4e,_0x15c517,_0x3b775e)=>{for(var _0x2868b4=_0x3b775e>0x1?void 0x0:_0x3b775e?po(_0x3b6e4e,_0x15c517):_0x3b6e4e,_0x5d2b5f=_0x5d35f4['length']-0x1,_0x36fd0c;_0x5d2b5f>=0x0;_0x5d2b5f--)(_0x36fd0c=_0x5d35f4[_0x5d2b5f])&&(_0x2868b4=(_0x3b775e?_0x36fd0c(_0x3b6e4e,_0x15c517,_0x2868b4):_0x36fd0c(_0x2868b4))||_0x2868b4);return _0x3b775e&&_0x2868b4&&So(_0x3b6e4e,_0x15c517,_0x2868b4),_0x2868b4;},dt=(_0x2e18ce,_0x3e7d43)=>(_0x413361,_0xf6a2b9)=>_0x3e7d43(_0x413361,_0xf6a2b9,_0x2e18ce);let Qe=class{constructor(_0x9c1906,_0x3b9fd1,_0x208a61){const _0x319b4f=_0xa83ddf;this['_configService']=_0x9c1906,this[_0x319b4f(0x141)]=_0x3b9fd1,this[_0x319b4f(0x472)]=_0x208a61,this[_0x319b4f(0x321)]();}[_0xa83ddf(0x321)](){const _0x3f27a6=_0xa83ddf;this['_httpService']['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x4c4b2d,_0x117f29)=>_0x117f29(_0x4c4b2d)[_0x3f27a6(0x2e5)](_0xf4bbfb(async _0x1d52d9=>{const _0xe5537=_0x3f27a6,_0x5d22aa=_0x1d52d9;if(_0x5d22aa['status']===0x191&&window['confirm'](this[_0xe5537(0x472)]['t'](_0xe5537(0x2d0)))){const _0x28b362=window[_0xe5537(0x32a)](window[_0xe5537(0x140)]['href']);window[_0xe5537(0x140)][_0xe5537(0x3ed)]=this[_0xe5537(0x21c)]()+_0xe5537(0x2d2)+_0x28b362;}return _0x5d22aa;}))});}[_0xa83ddf(0x21c)](){const _0x464bbe=_0xa83ddf;var _0x53abfc;return(_0x53abfc=this[_0x464bbe(0x442)][_0x464bbe(0x436)](Rn))!=null?_0x53abfc:Tn;}};Qe=vo([dt(0x0,_0x5e7a12),dt(0x1,_0x2854bc(_0x3efcab)),dt(0x2,_0x2854bc(_0x501416))],Qe);var Io=Object[_0xa83ddf(0x3b2)],Eo=Object['getOwnPropertyDescriptor'],Co=(_0x2c23cb,_0x1d671f,_0x98d216,_0x4c194c)=>{const _0xeadbf=_0xa83ddf;for(var _0x530cc5=_0x4c194c>0x1?void 0x0:_0x4c194c?Eo(_0x1d671f,_0x98d216):_0x1d671f,_0x38b548=_0x2c23cb[_0xeadbf(0x249)]-0x1,_0xea93de;_0x38b548>=0x0;_0x38b548--)(_0xea93de=_0x2c23cb[_0x38b548])&&(_0x530cc5=(_0x4c194c?_0xea93de(_0x1d671f,_0x98d216,_0x530cc5):_0xea93de(_0x530cc5))||_0x530cc5);return _0x4c194c&&_0x530cc5&&Io(_0x1d671f,_0x98d216,_0x530cc5),_0x530cc5;},us=(_0x89d0f6,_0x226e73)=>(_0x5f5564,_0x27e87f)=>_0x226e73(_0x5f5564,_0x27e87f,_0x89d0f6);const bo=_0xa83ddf(0x1f3),Ro='/universer-api/authz';let Pt=class extends _0x54b342{constructor(_0x5c7dd5,_0x48d76b){const _0x1370da=_0xa83ddf;super(),this['_HTTPService']=_0x5c7dd5,this[_0x1370da(0x442)]=_0x48d76b,this['_initMergeInterceptor']();}[_0xa83ddf(0x362)](){const _0x38ddc8=_0xa83ddf,_0x23e083=this;this[_0x38ddc8(0x46f)](this[_0x38ddc8(0x229)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':_0x222d3b({'isMatch'(_0x2af3ca){const _0x54c4d6=_0x38ddc8;var _0x1398f5;if(_0x2af3ca['method']===_0x54c4d6(0x143)&&((_0x1398f5=_0x2af3ca[_0x54c4d6(0x32f)])!=null&&_0x1398f5[_0x54c4d6(0x214)])){const {objectID:_0x23ec9c,objectType:_0x4fb426}=_0x2af3ca[_0x54c4d6(0x32f)]['body']||{};if(!_0x23ec9c||_0x4fb426===void 0x0)return!0x1;const _0x15aa0c=_0x23e083[_0x54c4d6(0x1e4)]()+'/'+_0x4fb426+_0x54c4d6(0x45a)+_0x23ec9c+_0x54c4d6(0x326);if(_0x2af3ca['url']===_0x15aa0c)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x1d5b7e){var _0x592d3c;return(_0x592d3c=_0x1d5b7e['requestParams'])==null?void 0x0:_0x592d3c['body'];},'mergeParamsToRequest'(_0x2376cc,_0x414071){const _0x1a0bf2=_0x38ddc8,_0x356b9e=_0x23e083[_0x1a0bf2(0x1e4)]()+_0x1a0bf2(0x242),_0x588973=_0x2376cc[_0x1a0bf2(0x2df)]((_0x4037fa,_0x19b101)=>{const _0x42fbac=_0x1a0bf2,{unitID:_0x39d5d7,objectID:_0x566236,objectType:_0x15851a,actions:_0x12b8c2}=_0x19b101;return _0x4037fa[_0x39d5d7]||(_0x4037fa[_0x39d5d7]={}),_0x4037fa[_0x39d5d7][_0x566236]||(_0x4037fa[_0x39d5d7][_0x566236]={'objectID':_0x566236,'objectType':_0x15851a,'actions':[]}),_0x4037fa[_0x39d5d7][_0x566236][_0x42fbac(0x23a)][_0x42fbac(0x14e)](..._0x12b8c2),_0x4037fa;},{}),_0x3fe05e=[];for(const _0x3b86c9 in _0x588973)for(const _0x364216 in _0x588973[_0x3b86c9]){const {actions:_0x25e884,objectType:_0x373fcc}=_0x588973[_0x3b86c9][_0x364216],_0x54efe6=[...new Set(_0x25e884)];_0x3fe05e['push']({'unitID':_0x3b86c9,'objectID':_0x364216,'objectType':_0x373fcc,'actions':_0x54efe6});}return new _0x4f3fd2('POST',_0x356b9e,{'headers':_0x414071[_0x1a0bf2(0x348)],'withCredentials':_0x414071[_0x1a0bf2(0x304)],'responseType':_0x414071[_0x1a0bf2(0x3c6)],'body':{'requests':_0x3fe05e}});}},{'distributeResult'(_0x35202e,_0x53f799){const {objectActions:_0x201820}=_0x35202e;return _0x53f799['map'](_0x2c24bd=>{const _0xc22a88=_0xed79,{unitID:_0x39e649,objectID:_0xf2fa76,actions:_0xf153d2}=_0x2c24bd,_0x2701e2=_0x201820[_0xc22a88(0x31b)](_0x5c6b2d=>_0x5c6b2d[_0xc22a88(0x452)]===_0x39e649&&_0x5c6b2d[_0xc22a88(0x19c)]===_0xf2fa76),_0x302874=_0xf153d2[_0xc22a88(0x423)](_0x24edb8=>_0x2701e2==null?void 0x0:_0x2701e2['actions'][_0xc22a88(0x31b)](_0x2b8145=>_0x2b8145['action']===_0x24edb8))[_0xc22a88(0x19f)](_0x436df0=>!!_0x436df0);return{'config':_0x2c24bd,'result':{'actions':_0x302874,'error':_0x35202e[_0xc22a88(0x44e)]}};});}})}));}[_0xa83ddf(0x1e4)](){const _0x2b15f3=_0xa83ddf;var _0x55919d;return(_0x55919d=this['_configService'][_0x2b15f3(0x436)](bo))!=null?_0x55919d:Ro;}async['create'](_0x58c527){const _0x577dcf=_0xa83ddf,_0x4efe42=this[_0x577dcf(0x1e4)]()+'/'+_0x58c527[_0x577dcf(0x312)]+_0x577dcf(0x26b);return(await this[_0x577dcf(0x229)][_0x577dcf(0x195)](_0x4efe42,{'body':_0x58c527}))['body'][_0x577dcf(0x19c)]||'';}async[_0xa83ddf(0x3d5)](_0x5776c6){const _0x4b27a6=_0xa83ddf,_0x45ed4c=this[_0x4b27a6(0x1e4)]()+_0x4b27a6(0x479);return(await this[_0x4b27a6(0x229)][_0x4b27a6(0x195)](_0x45ed4c,{'body':_0x5776c6}))['body'][_0x4b27a6(0x351)];}async[_0xa83ddf(0x1eb)](_0x11ba76){const _0x1425dd=_0xa83ddf,_0x5e30e7=this[_0x1425dd(0x1e4)]()+'/'+_0x11ba76[_0x1425dd(0x312)]+_0x1425dd(0x45a)+_0x11ba76[_0x1425dd(0x19c)];await this[_0x1425dd(0x229)][_0x1425dd(0x391)](_0x5e30e7,{'body':_0x11ba76});}async[_0xa83ddf(0x1d2)](_0x474b1f){const _0x2b1cc5=_0xa83ddf,_0xe47c79=this['_getAPIPrefixPath']()+'/'+_0x474b1f[_0x2b1cc5(0x312)]+_0x2b1cc5(0x45a)+_0x474b1f[_0x2b1cc5(0x19c)]+_0x2b1cc5(0x326);return(await this[_0x2b1cc5(0x229)][_0x2b1cc5(0x195)](_0xe47c79,{'body':_0x474b1f}))[_0x2b1cc5(0x214)]['actions'];}async[_0xa83ddf(0x1b4)](_0x55e8ed){const _0x2d6ab2=_0xa83ddf,_0x17ab00=this[_0x2d6ab2(0x1e4)]()+'/-/object/-/batch_allowed';return(await this[_0x2d6ab2(0x229)][_0x2d6ab2(0x195)](_0x17ab00,{'body':{'requests':_0x55e8ed}}))[_0x2d6ab2(0x214)][_0x2d6ab2(0x39c)];}async[_0xa83ddf(0x455)](_0x45157f){const _0x158a47=_0xa83ddf,_0x43815e=this['_getAPIPrefixPath']()+'/'+_0x45157f[_0x158a47(0x312)]+'/role',_0x108beb=await this[_0x158a47(0x229)]['post'](_0x43815e,{'body':_0x45157f});return{'roles':_0x108beb[_0x158a47(0x214)]['roles'],'actions':_0x108beb[_0x158a47(0x214)][_0x158a47(0x23a)]};}async[_0xa83ddf(0x329)](_0x2672e2){const _0x575415=_0xa83ddf,_0x43e03a=this[_0x575415(0x1e4)]()+_0x575415(0x20d);await this['_HTTPService'][_0x575415(0x29c)](_0x43e03a,{'params':{'collaboratorID':_0x2672e2[_0x575415(0x2f1)],'objectID':_0x2672e2['objectID'],'unitID':_0x2672e2[_0x575415(0x452)]}});}async[_0xa83ddf(0x3fc)](_0x5892a4){const _0x56fb03=_0xa83ddf,_0x1a207b=this[_0x56fb03(0x1e4)]()+_0x56fb03(0x20d);await this['_HTTPService'][_0x56fb03(0x3ce)](_0x1a207b,{'body':_0x5892a4});}async[_0xa83ddf(0x189)](_0x1867dd){const _0x1d12bf=_0xa83ddf,_0x605e8c=this['_getAPIPrefixPath']()+_0x1d12bf(0x20d);await this['_HTTPService']['post'](_0x605e8c,{'body':_0x1867dd});}async['listCollaborators'](_0x3da8e2){const _0x394a67=_0xa83ddf,_0x3d9abe=this[_0x394a67(0x1e4)]()+_0x394a67(0x20d);return(await this[_0x394a67(0x229)][_0x394a67(0x441)](_0x3d9abe,{'params':{'objectID':_0x3da8e2[_0x394a67(0x19c)],'unitID':_0x3da8e2['unitID']}}))[_0x394a67(0x214)][_0x394a67(0x40f)];}async['putCollaborators'](_0x5a822c){const _0x2e704f=_0xa83ddf,_0x57daf6=this[_0x2e704f(0x1e4)]()+_0x2e704f(0x20d);await this[_0x2e704f(0x229)]['put'](_0x57daf6,{'body':_0x5a822c});}};Pt=Co([us(0x0,_0x2854bc(_0x3efcab)),us(0x1,_0x2854bc(_0x5e7a12))],Pt);var To=Object[_0xa83ddf(0x3b2)],Oo=Object[_0xa83ddf(0x190)],Do=(_0xd596a2,_0x26437c,_0x5175b3,_0xed8e39)=>{const _0x484775=_0xa83ddf;for(var _0x5067be=_0xed8e39>0x1?void 0x0:_0xed8e39?Oo(_0x26437c,_0x5175b3):_0x26437c,_0x4d11eb=_0xd596a2[_0x484775(0x249)]-0x1,_0x38c4cb;_0x4d11eb>=0x0;_0x4d11eb--)(_0x38c4cb=_0xd596a2[_0x4d11eb])&&(_0x5067be=(_0xed8e39?_0x38c4cb(_0x26437c,_0x5175b3,_0x5067be):_0x38c4cb(_0x5067be))||_0x5067be);return _0xed8e39&&_0x5067be&&To(_0x26437c,_0x5175b3,_0x5067be),_0x5067be;},mt=(_0xb6cc8d,_0x3b9b24)=>(_0x4fdeed,_0xd62d3e)=>_0x3b9b24(_0x4fdeed,_0xd62d3e,_0xb6cc8d);const Po=[_0xa83ddf(0x1ce),_0xa83ddf(0x3ad),'image/jpg',_0xa83ddf(0x444),_0xa83ddf(0x1b9)],wo=0x5*0x400*0x400,No=_0xa83ddf(0x33c),Mo=_0xa83ddf(0x199),Ao=_0xa83ddf(0x1e3),Uo=_0xa83ddf(0x268);let wt=class{constructor(_0x4691c0,_0x2319b6,_0x194fbf){const _0x3df184=_0xa83ddf;_(this,_0x3df184(0x235),0x0),_(this,_0x3df184(0x272),new _0x27d684()),_(this,_0x3df184(0x439),this[_0x3df184(0x272)]),_(this,_0x3df184(0x184),new Map()),(this[_0x3df184(0x141)]=_0x4691c0,this[_0x3df184(0x442)]=_0x2319b6,this[_0x3df184(0x44a)]=_0x194fbf);}['setWaitCount'](_0x384595){const _0x4fdff7=_0xa83ddf;this[_0x4fdff7(0x235)]=_0x384595,this['_change$'][_0x4fdff7(0x311)](_0x384595);}[_0xa83ddf(0x2fa)](_0x5e7c5e,_0x3efd7e){const _0x1abbfe=_0xa83ddf;if(_0x3efd7e===_0x10d13d[_0x1abbfe(0x243)]){const _0x5af7e9=new Image();return _0x5af7e9[_0x1abbfe(0x3b5)]=_0x5e7c5e,_0x5af7e9;}return this[_0x1abbfe(0x184)][_0x1abbfe(0x441)](_0x5e7c5e);}[_0xa83ddf(0x255)](_0x5911ba,_0x17950b,_0x5b6b9b){const _0xad980c=_0xa83ddf;_0x17950b===_0x10d13d[_0xad980c(0x243)]||_0x5b6b9b==null||this['_imageSourceCache'][_0xad980c(0x3fb)](_0x5911ba,_0x5b6b9b);}async[_0xa83ddf(0x26a)](_0x1716b5){const _0x3e2804=_0xa83ddf;try{const _0x4845eb=this['_replaceFileID'](this[_0x3e2804(0x358)](),''+_0x1716b5),_0x3f958c=(await this[_0x3e2804(0x141)][_0x3e2804(0x441)](_0x4845eb))[_0x3e2804(0x214)];return _0x3f958c[_0x3e2804(0x44e)]&&_0x3f958c[_0x3e2804(0x44e)][_0x3e2804(0x3ee)]===Ps['OK']?Promise[_0x3e2804(0x405)](_0x3f958c['url']):Promise[_0x3e2804(0x168)](_0x3f958c[_0x3e2804(0x44e)]);}catch(_0x3298bb){return Promise[_0x3e2804(0x168)](_0x3298bb);}}async[_0xa83ddf(0x446)](_0x58a87){const _0x6daf35=_0xa83ddf;let _0x1f76c6='';if(!Po[_0x6daf35(0x173)](_0x58a87[_0x6daf35(0x2f9)]))return this[_0x6daf35(0x40e)](),Promise[_0x6daf35(0x168)](new Error(_0x1f46e1[_0x6daf35(0x333)]));if(_0x58a87[_0x6daf35(0x41b)]>wo)return this[_0x6daf35(0x40e)](),Promise[_0x6daf35(0x168)](new Error(_0x1f46e1['ERROR_EXCEED_SIZE']));try{const _0xb4aa6a=new FormData();_0xb4aa6a['append'](_0x6daf35(0x17c),_0x58a87);const _0x243787=this['_univerInstanceService'][_0x6daf35(0x3fd)](),_0x34ca04=_0x243787==null?void 0x0:_0x243787[_0x6daf35(0x27a)]();if(!_0x34ca04)throw new Error('unitId\x20is\x20not\x20found');const _0x1c7e81=this[_0x6daf35(0x2be)]()+_0x6daf35(0x406)+_0x58a87[_0x6daf35(0x41b)][_0x6daf35(0x3af)]()+'&source='+ws[_0x6daf35(0x460)]+_0x6daf35(0x3a9)+encodeURIComponent(_0x34ca04),_0x4a7fff=await(await fetch(_0x1c7e81,{'method':_0x6daf35(0x143),'body':_0xb4aa6a}))[_0x6daf35(0x3cb)]();if(typeof _0x4a7fff[_0x6daf35(0x40a)]!=_0x6daf35(0x240))return this[_0x6daf35(0x40e)](),Promise[_0x6daf35(0x168)](new Error(_0x1f46e1[_0x6daf35(0x327)]));_0x1f76c6=_0x4a7fff[_0x6daf35(0x40a)];}catch{return this['_decreaseWaiting'](),Promise[_0x6daf35(0x168)](new Error(_0x1f46e1['ERROR_IMAGE']));}return new Promise((_0x53b69c,_0x39520d)=>{const _0x590ec7=_0x6daf35,_0xee3d7a=new FileReader();_0xee3d7a['readAsDataURL'](_0x58a87),_0xee3d7a[_0x590ec7(0x305)]=_0x481797=>{const _0xeca859=_0x590ec7;var _0xc4f955;const _0x577bc3=(_0xc4f955=_0x481797[_0xeca859(0x1e0)])==null?void 0x0:_0xc4f955['result'];if(_0x577bc3==null){this[_0xeca859(0x40e)](),_0x39520d(new Error(_0x1f46e1['ERROR_IMAGE']));return;}const _0x3199ec=_0x146730[_0xeca859(0x447)](0x6);_0x53b69c({'imageId':_0x3199ec,'imageSourceType':_0x10d13d['UUID'],'source':_0x1f76c6,'base64Cache':_0x577bc3,'status':_0x1f46e1['SUCCUSS']}),this[_0xeca859(0x40e)]();};});}[_0xa83ddf(0x2be)](){const _0x3eccd2=_0xa83ddf;var _0x47b780;return(_0x47b780=this[_0x3eccd2(0x442)]['getConfig'](No))!=null?_0x47b780:Mo;}[_0xa83ddf(0x358)](){const _0x2fedfc=_0xa83ddf;var _0x42d2c3;return(_0x42d2c3=this[_0x2fedfc(0x442)][_0x2fedfc(0x436)](Ao))!=null?_0x42d2c3:Uo;}[_0xa83ddf(0x3a6)](_0x4a1b90,_0xa61f80){const _0x2bf360=_0xa83ddf;return _0x4a1b90[_0x2bf360(0x322)](_0x2bf360(0x38c),_0xa61f80);}['_decreaseWaiting'](){const _0x57cb8f=_0xa83ddf;this[_0x57cb8f(0x235)]-=0x1,this[_0x57cb8f(0x272)][_0x57cb8f(0x311)](this[_0x57cb8f(0x235)]);}};wt=Do([mt(0x0,_0x2854bc(_0x3efcab)),mt(0x1,_0x5e7a12),mt(0x2,_0x2854bc(_0x1b1ada))],wt);var yo=Object[_0xa83ddf(0x3b2)],Lo=Object[_0xa83ddf(0x190)],$o=(_0x342955,_0x58b163,_0x30c31a,_0x1fdf95)=>{const _0x313fdb=_0xa83ddf;for(var _0xd88495=_0x1fdf95>0x1?void 0x0:_0x1fdf95?Lo(_0x58b163,_0x30c31a):_0x58b163,_0x39be45=_0x342955[_0x313fdb(0x249)]-0x1,_0xe051f1;_0x39be45>=0x0;_0x39be45--)(_0xe051f1=_0x342955[_0x39be45])&&(_0xd88495=(_0x1fdf95?_0xe051f1(_0x58b163,_0x30c31a,_0xd88495):_0xe051f1(_0xd88495))||_0xd88495);return _0x1fdf95&&_0xd88495&&yo(_0x58b163,_0x30c31a,_0xd88495),_0xd88495;},Ne=(_0x280e9d,_0x1b5443)=>(_0x44a151,_0x4fbc1f)=>_0x1b5443(_0x44a151,_0x4fbc1f,_0x280e9d);let We=class extends _0x26114b{constructor(_0x2bf137,_0x4a5bd6,_0xeed18e,_0x2a0375,_0x327d11){const _0xadf093=_0xa83ddf;super(),this[_0xadf093(0x1ef)]=_0x2bf137,this[_0xadf093(0x44a)]=_0x4a5bd6,this[_0xadf093(0x47d)]=_0xeed18e,this[_0xadf093(0x32e)]=_0x2a0375,this[_0xadf093(0x46b)]=_0x327d11,this[_0xadf093(0x22e)](),this[_0xadf093(0x45e)]();}['_initCloseConn'](){const _0x41fc9b=_0xa83ddf,_0x47ec24=async _0x3907a1=>{const _0x4a54d2=_0xed79;(await this[_0x4a54d2(0x32e)][_0x4a54d2(0x2d1)](_0x3907a1))[_0x4a54d2(0x1c6)][_0x4a54d2(0x2e5)](_0x4393c3(_0x5f55e7=>_0x5f55e7['eventID']===_0x4e62f0[_0x4a54d2(0x355)]),_0x15cb3a(this[_0x4a54d2(0x22b)]))[_0x4a54d2(0x222)](_0x2b92b8=>{const _0x37ec8b=_0x4a54d2,_0x28e151=_0x2b92b8,{reason:_0x10542e}=_0x28e151[_0x37ec8b(0x2cf)];this[_0x37ec8b(0x1ef)]['get'](_0x192174)['show']({'type':_0x403ffc[_0x37ec8b(0x1e5)],'content':this['_localeService']['t'](_0x37ec8b(0x3fe))+'('+_0x10542e+')'}),this[_0x37ec8b(0x47d)][_0x37ec8b(0x2c4)](new _0x2efdca(_0x3907a1)['id'],!0x1),this[_0x37ec8b(0x32e)][_0x37ec8b(0x1e9)](_0x3907a1);});};_0x19b764(this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x54437b[_0x41fc9b(0x2ac)]),this[_0x41fc9b(0x44a)][_0x41fc9b(0x388)](_0x54437b['UNIVER_DOC']))[_0x41fc9b(0x2e5)](_0x255c5b(_0x14475e=>_0x14475e[_0x41fc9b(0x27a)]()),_0x4393c3(_0x305f83=>!_0xc1669d(_0x305f83)),_0x15cb3a(this['dispose$']))['subscribe'](_0x4802aa=>{_0x47ec24(_0x4802aa);});}['_initUnitPermissionChange'](){const _0x4c08a2=_0xa83ddf,_0x13ac3c=async _0x136435=>{const _0x16fac4=_0xed79;(await this[_0x16fac4(0x32e)][_0x16fac4(0x2d1)](_0x136435))['event$'][_0x16fac4(0x2e5)](_0x4393c3(_0x1322a4=>_0x1322a4[_0x16fac4(0x217)]===_0x4e62f0[_0x16fac4(0x223)]),_0x15cb3a(this[_0x16fac4(0x22b)]))[_0x16fac4(0x222)](_0x386359=>{const _0x206160=_0x16fac4,_0x31c21b=_0x386359,{objectId:_0x137466}=_0x31c21b['data'],_0x1a7417=this[_0x206160(0x1ef)]['get'](_0x174f49);_0x137466===_0x136435?_0x1a7417[_0x206160(0x3cc)](_0x136435):_0x1a7417[_0x206160(0x1b1)](_0x136435,_0x137466);});};_0x19b764(this[_0x4c08a2(0x44a)][_0x4c08a2(0x388)](_0x54437b[_0x4c08a2(0x2ac)]),this[_0x4c08a2(0x44a)]['getTypeOfUnitAdded$'](_0x54437b[_0x4c08a2(0x1f2)]))['pipe'](_0x255c5b(_0x3f0366=>_0x3f0366[_0x4c08a2(0x27a)]()),_0x4393c3(_0x51d9b0=>!_0xc1669d(_0x51d9b0)),_0x15cb3a(this[_0x4c08a2(0x22b)]))[_0x4c08a2(0x222)](_0x424b89=>{_0x13ac3c(_0x424b89);});}};We=$o([_0x3b619c(_0x13d562[_0xa83ddf(0x181)],We),Ne(0x0,_0x2854bc(_0x28aed1)),Ne(0x1,_0x1b1ada),Ne(0x2,_0x524b2d),Ne(0x3,_0x2854bc(pe)),Ne(0x4,_0x2854bc(_0x501416))],We);var ks=Object[_0xa83ddf(0x3b2)],jo=Object['getOwnPropertyDescriptor'],xo=(_0x292b46,_0x45432d,_0x3d39bc)=>_0x45432d in _0x292b46?ks(_0x292b46,_0x45432d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3d39bc}):_0x292b46[_0x45432d]=_0x3d39bc,Ho=(_0x101f15,_0x22691d,_0x50985a,_0x2efd0f)=>{const _0x284763=_0xa83ddf;for(var _0x31a66f=_0x2efd0f>0x1?void 0x0:_0x2efd0f?jo(_0x22691d,_0x50985a):_0x22691d,_0x5f0dda=_0x101f15[_0x284763(0x249)]-0x1,_0x3972c5;_0x5f0dda>=0x0;_0x5f0dda--)(_0x3972c5=_0x101f15[_0x5f0dda])&&(_0x31a66f=(_0x2efd0f?_0x3972c5(_0x22691d,_0x50985a,_0x31a66f):_0x3972c5(_0x31a66f))||_0x31a66f);return _0x2efd0f&&_0x31a66f&&ks(_0x22691d,_0x50985a,_0x31a66f),_0x31a66f;},ft=(_0xffbed9,_0xf37317)=>(_0x159138,_0x334764)=>_0xf37317(_0x159138,_0x334764,_0xffbed9),ko=(_0x5256da,_0x1398ec,_0x9c1983)=>xo(_0x5256da,_0x1398ec+'',_0x9c1983);const Vo='UNIVER_COLLABORATION_CLIENT_PLUGIN';let Nt=class extends _0x5791fb{constructor(_0x1ca118,_0x119428,_0x1f746a,_0x59e720){const _0xe7c9d1=_0xa83ddf;super(),this[_0xe7c9d1(0x349)]=_0x1ca118,this[_0xe7c9d1(0x33d)]=_0x119428,this[_0xe7c9d1(0x438)]=_0x1f746a,this[_0xe7c9d1(0x1ef)]=_0x59e720;}[_0xa83ddf(0x343)](){this['_registerDependencies']();}[_0xa83ddf(0x403)](){const _0x167e25=_0xa83ddf;this[_0x167e25(0x2ab)]();}[_0xa83ddf(0x29a)](){const _0xd08a46=_0xa83ddf;var _0x32b529,_0x58342b,_0x516779,_0x369786;this[_0xd08a46(0x1ef)][_0xd08a46(0x437)](_0x1e8ca5)&&this[_0xd08a46(0x33d)][_0xd08a46(0x44e)](_0xd08a46(0x285),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x3ca1ee=[[_0x1e8ca5,{'useClass':Dt}],[pe],[Ht],[_0x3efcab],[Hs,{'useClass':ao}],[ne],[D],[_0x4a0f72],[qe],[ze],[Je],[xt],[Qe],[Ms],[We],[Ns,{'useClass':(_0x58342b=(_0x32b529=this[_0xd08a46(0x349)])==null?void 0x0:_0x32b529[_0xd08a46(0x458)])!=null?_0x58342b:vt}],[_0x54f7a8,{'useClass':_0x50ec1f}],[_0x5c5b29,{'useClass':Ot}],[_0x382e20,{'useClass':Pt}],[_0x3a43a5,{'useClass':wt}],[Me],[Ve],[ke],[Be],[ge]];(_0x516779=this['_config'])!=null&&_0x516779['enableSingleActiveInstanceLock']&&_0x3ca1ee[_0xd08a46(0x14e)]([tt,{'useClass':Vn}]),_0x3ca1ee=_0x5c52e3(_0x3ca1ee,(_0x369786=this['_config'])==null?void 0x0:_0x369786[_0xd08a46(0x412)]),_0x3ca1ee['forEach'](_0x34a00c=>this[_0xd08a46(0x1ef)]['add'](_0x34a00c)),this[_0xd08a46(0x41c)]();}[_0xa83ddf(0x2ab)](){const _0x176201=_0xa83ddf;this[_0x176201(0x46f)](this[_0x176201(0x438)]['registerRenderModule'](_0x54437b['UNIVER_DOC'],[Fe])),this[_0x176201(0x46f)](this[_0x176201(0x438)][_0x176201(0x1be)](_0x54437b['UNIVER_SHEET'],[Tt]));}[_0xa83ddf(0x41c)](){const _0x460ce2=_0xa83ddf;var _0x51c9a6,_0x2d4e20;this[_0x460ce2(0x1ef)][_0x460ce2(0x441)](_0x3efcab)[_0x460ce2(0x3a1)]({'priority':0x14,'interceptor':_0xcec304({'maxParallel':0x6})}),(_0x51c9a6=this[_0x460ce2(0x349)])!=null&&_0x51c9a6[_0x460ce2(0x19a)]||this[_0x460ce2(0x1ef)][_0x460ce2(0x441)](D)[_0x460ce2(0x301)](),(_0x2d4e20=this[_0x460ce2(0x349)])!=null&&_0x2d4e20[_0x460ce2(0x35e)]&&this[_0x460ce2(0x1ef)][_0x460ce2(0x441)](Qe);}};ko(Nt,_0xa83ddf(0x3bb),Vo),Nt=Ho([_0x3f4163(_0x1e27ff),ft(0x1,_0x31880b),ft(0x2,_0x12e84d),ft(0x3,_0x2854bc(_0x28aed1))],Nt);export{bo as AUTHZ_URL_KEY,Pt as AuthzIoHttpService,Cn as COLLAB_SUBMIT_CHANGESET_URL_KEY,un as COLLAB_WEB_SOCKET_URL_KEY,Me as CollaborationController,It as CollaborationSession,pe as CollaborationSessionService,vt as CollaborationSocketService,P as CollaborationStatus,Br as CollaborationStatusDisplay,Ms as CommentService,Ve as DataLoaderController,ke as DesktopCollaborationStatusDisplayController,mn as HEARTBEAT_INTERVAL_KEY,Os as HEARTBEAT_TIMEOUT_KEY,Ns as ICollaborationSocketService,Hs as IURLService,wt as ImageIoService,In as LOCAL_CACHE_INTERVAL_KEY,Rn as LOGIN_URL_KEY,D as LocalCacheService,_n as SEND_CHANGESET_TIMEOUT_KEY,an as SNAPSHOT_SERVER_URL_KEY,hn as SNAPSHOT_URL_KEY,fe as SessionStatus,Rr as SheetCollabCursorShape,Ct as SheetCollaborationEntity,Ot as SnapshotServerOverHTTPService,Nt as UniverCollaborationClientPlugin,ao as WebURLService,Nn as deserializeToCombResponse,Mn as serializeCombRequest};
|
1
|
+
const _0x354c45=_0x5b0c;(function(_0x5cf50f,_0xaf8a91){const _0x3cfdde=_0x5b0c,_0x533868=_0x5cf50f();while(!![]){try{const _0xbfc981=parseInt(_0x3cfdde(0x290))/0x1*(parseInt(_0x3cfdde(0x18c))/0x2)+-parseInt(_0x3cfdde(0x2a1))/0x3*(parseInt(_0x3cfdde(0xae))/0x4)+parseInt(_0x3cfdde(0x1dc))/0x5+parseInt(_0x3cfdde(0x23f))/0x6*(parseInt(_0x3cfdde(0x294))/0x7)+parseInt(_0x3cfdde(0x100))/0x8+parseInt(_0x3cfdde(0xbd))/0x9+-parseInt(_0x3cfdde(0x2b4))/0xa*(parseInt(_0x3cfdde(0x3bb))/0xb);if(_0xbfc981===_0xaf8a91)break;else _0x533868['push'](_0x533868['shift']());}catch(_0x432138){_0x533868['push'](_0x533868['shift']());}}}(_0x3791,0xc9552));var Ys=Object['defineProperty'],Ks=(_0x34e1bd,_0x50b179,_0x1fa5d8)=>_0x50b179 in _0x34e1bd?Ys(_0x34e1bd,_0x50b179,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1fa5d8}):_0x34e1bd[_0x50b179]=_0x1fa5d8,_=(_0x1f6eea,_0xaab85c,_0x434158)=>Ks(_0x1f6eea,typeof _0xaab85c!=_0x354c45(0x154)?_0xaab85c+'':_0xaab85c,_0x434158);import{Disposable as _0x48941f,toDisposable as _0x681995,UniverInstanceType as _0x380445,Inject as _0x229f6b,UserManagerService as _0x525abf,IUniverInstanceService as _0x14d401,createIdentifier as _0x120263,DisposableCollection as _0x57a20f,IConfigService as _0x476b70,ILogService as _0x4491a7,RxDisposable as _0x5aeadb,LocaleService as _0x5e486d,Injector as _0x3b06f9,ILocalStorageService as _0x399138,Tools as _0x40bd5b,ICommandService as _0x151749,JSONX as _0x2f52af,CommandType as _0x3b75d4,IPermissionService as _0x4c56be,IUndoRedoService as _0x13005c,sequenceExecute as _0x6b06f4,OnLifecycle as _0x5c1b58,LifecycleStages as _0x21b2c3,Optional as _0x1ed7ac,Rectangle as _0x414956,ThemeService as _0x276c29,useDependency as _0x4b5e73,connectInjector as _0x3d07cd,Workbook as _0x3ad7b2,LocalUndoRedoService as _0x3df25f,IContextService as _0x56cb45,COLORS as _0xc3f366,ColorKit as _0x3b0d65,fromEventSubject as _0x287600,isInternalEditorID as _0x2299ce,Plugin as _0x570c3f,IAuthzIoService as _0x1fc328,mergeOverrideWithDependencies as _0x321f28,DependentOn as _0x1f3081}from'@univerjs/core';import{SheetsSelectionsService as _0x22886c,SetSelectionsOperation as _0x1271d4,InsertSheetMutation as _0x11e296,EmptyMutation as _0x53c0be,WorkbookEditablePermission as _0x47313f,RefRangeService as _0x442fae,EffectRefRangId as _0x38a0e8,handleIRemoveRow as _0x4e8b58,handleIRemoveCol as _0x59c9a2,handleMoveRange as _0x75b893,handleInsertRow as _0x173a21,handleInsertRangeMoveRight as _0x16d4b2,handleInsertRangeMoveDown as _0x39bf3d,handleInsertCol as _0x195831,handleDeleteRangeMoveUp as _0x15c769,handleDeleteRangeMoveLeft as _0x1d6f0f,runRefRangeMutations as _0x2651bd,SetWorksheetActivateCommand as _0x157375}from'@univerjs/sheets';import{MessageType as _0x1679e9}from'@univerjs/design';import{IBeforeCloseService as _0x24d7c6,IMessageService as _0x5963f9,INotificationService as _0x220977,useObservable as _0x441fd1,BuiltInUIPart as _0x1642a6,IUIPartsService as _0x5a1da3}from'@univerjs/ui';import{CollaborationEvent as _0x363b50,parseChangesetToProtocol as _0x2329ca,ISnapshotServerService as _0x34895f,RevisionService as _0x2d6ffb,isTransformMutationFailure as _0x5e29e1,isTransformMutationsWithChangesetSuccess as _0x14b4f5,ITransformService as _0x5c9e6a,mapDocumentTypeToUniverType as _0x1e11c0,isTransformChangesetsSuccess as _0x5cce80,CompressMutationService as _0x182351,parseProtocolChangeset as _0x1517b2,SnapshotService as _0x1f8d1f,textEncoder as _0x42040e,b64DecodeUnicode as _0x3cfeb4,isTransformMutationsWithChangesetFailure as _0x2beedb,UniverCollaborationPlugin as _0x45452d}from'@univerjs-pro/collaboration';import{merge as _0x5b30b2,Subject as _0x2b4845,BehaviorSubject as _0x421821,distinctUntilChanged as _0x2f805d,fromEvent as _0x1f17b0,of as _0x186ef7,takeUntil as _0x60ccde,debounceTime as _0x68cfe8,filter as _0x1317c0,switchMap as _0x3f577e,combineLatest as _0x4aa21b,shareReplay as _0x38f1e1,mapTo as _0x378129,concatMap as _0x54be95}from'rxjs';import{map as _0x1b7b12,takeUntil as _0xc21920,take as _0x518ec2,filter as _0x2a5de4,delay as _0x304b5e,shareReplay as _0x49a543,switchMap as _0x3f4a38,throttleTime as _0x78d7ad}from'rxjs/operators';import{IMEInputManagerService as _0x39911f,TextSelectionManagerService as _0x559154,serializeDocRange as _0x1b1aa9,RichTextEditingMutation as _0xc37a7a,DocStateChangeManagerService as _0x552f88,SetTextSelectionsOperation as _0x2c4dfe,SetDocZoomRatioOperation as _0x19eff9,DocSkeletonManagerService as _0x3a7927}from'@univerjs/docs';import{HTTPService as _0x131927,WebSocketService as _0x1a53de,MergeInterceptorFactory as _0x9560,HTTPRequest as _0x4908e9,IHTTPImplementation as _0x162271,XHRHTTPImplementation as _0x967f9,ThresholdInterceptorFactory as _0x5a108e}from'@univerjs/network';import{ImageSourceType as _0x2c20b7,ImageUploadStatusType as _0x34bcaa,IImageIoService as _0x1e214e}from'@univerjs/drawing';import{Shape as _0x2ccc4b,Rect as _0x222909,Vector2 as _0x569e56,NodePositionConvertToCursor as _0x38a9be,isValidRectRange as _0x197747,NodePositionConvertToRectRange as _0x5e6d76,getColor as _0x3202eb,TEXT_RANGE_LAYER_INDEX as _0x5864fb,RegularPolygon as _0x12e0ff,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x4d9e9f,IRenderManagerService as _0x727bee}from'@univerjs/engine-render';import{deserializeRangeWithSheet as _0x36a58a,serializeRangeWithSheet as _0x45f111}from'@univerjs/engine-formula';import _0x2a035c from'lodash/debounce';import{VIEWPORT_KEY as _0x2ca4f8,getCoordByCell as _0x13de13,getSheetObject as _0x45a59d,SheetSkeletonManagerService as _0x5f02cf,SheetPermissionInitController as _0x36a220}from'@univerjs/sheets-ui';import _0xf888d3,{forwardRef as _0x3e44fc,useRef as _0x423195,createElement as _0x787c2d}from'react';import _0x59ade5 from'clsx';import{IRemoteInstanceService as _0x190e16}from'@univerjs/rpc';const an=_0x354c45(0x116),cn=_0x354c45(0x14c),hn=_0x354c45(0x36b),_n=_0x354c45(0x1ac),ln=0x7d0,un=_0x354c45(0x208),dn=_0x354c45(0x2d1),mn=_0x354c45(0x254),fn=0x7530,Os=_0x354c45(0x398),Ds=0x2710,gn=_0x354c45(0x1d3),Sn=0x4e20,pn=_0x354c45(0x2c6),vn=0x3,In=_0x354c45(0x28e),En=0x3e8,Cn='COLLAB_SUBMIT_CHANGESET_URL',bn='/universer-api/comb',Rn=_0x354c45(0x38e),Tn=_0x354c45(0x322);var Ps=(_0x5a8e32=>(_0x5a8e32[_0x5a8e32[_0x354c45(0x1a9)]=0x0]=_0x354c45(0x1a9),_0x5a8e32[_0x5a8e32['OK']=0x1]='OK',_0x5a8e32[_0x5a8e32[_0x354c45(0x104)]=0x2]=_0x354c45(0x104),_0x5a8e32[_0x5a8e32['PERMISSION_DENIED']=0x3]=_0x354c45(0x130),_0x5a8e32[_0x5a8e32[_0x354c45(0x98)]=0x4]=_0x354c45(0x98),_0x5a8e32[_0x5a8e32['UNAUTHENTICATED']=0x5]=_0x354c45(0x1c9),_0x5a8e32[_0x5a8e32[_0x354c45(0x3b8)]=0x6]=_0x354c45(0x3b8),_0x5a8e32[_0x5a8e32[_0x354c45(0x2a5)]=0x7]=_0x354c45(0x2a5),_0x5a8e32[_0x5a8e32[_0x354c45(0x27d)]=0x8]=_0x354c45(0x27d),_0x5a8e32[_0x5a8e32[_0x354c45(0x141)]=0x9]=_0x354c45(0x141),_0x5a8e32[_0x5a8e32[_0x354c45(0x28a)]=0x1389]=_0x354c45(0x28a),_0x5a8e32[_0x5a8e32['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x354c45(0x218),_0x5a8e32[_0x5a8e32['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x354c45(0x1da),_0x5a8e32[_0x5a8e32[_0x354c45(0x86)]=0x1b59]=_0x354c45(0x86),_0x5a8e32[_0x5a8e32[_0x354c45(0x29c)]=0x1b5a]=_0x354c45(0x29c),_0x5a8e32[_0x5a8e32['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x354c45(0x32d),_0x5a8e32[_0x5a8e32[_0x354c45(0x29f)]=0x1b5c]=_0x354c45(0x29f),_0x5a8e32[_0x5a8e32['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x354c45(0x186),_0x5a8e32[_0x5a8e32['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x5a8e32[_0x5a8e32[_0x354c45(0x2ce)]=0x232a]=_0x354c45(0x2ce),_0x5a8e32[_0x5a8e32[_0x354c45(0x24f)]=0x232b]=_0x354c45(0x24f),_0x5a8e32[_0x5a8e32[_0x354c45(0x36e)]=0x232c]=_0x354c45(0x36e),_0x5a8e32[_0x5a8e32[_0x354c45(0x136)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x5a8e32[_0x5a8e32['YUUMI_UNABLE_LOAD_URL']=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x5a8e32[_0x5a8e32['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x354c45(0x33e),_0x5a8e32[_0x5a8e32[_0x354c45(0x2a8)]=0x2713]=_0x354c45(0x2a8),_0x5a8e32[_0x5a8e32[_0x354c45(0xd8)]=0x2714]=_0x354c45(0xd8),_0x5a8e32[_0x5a8e32['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x5a8e32))(Ps||{}),H=(_0xb312c8=>(_0xb312c8[_0xb312c8[_0x354c45(0x9b)]=0x0]=_0x354c45(0x9b),_0xb312c8[_0xb312c8[_0x354c45(0x30e)]=0x1]=_0x354c45(0x30e),_0xb312c8[_0xb312c8[_0x354c45(0x31c)]=0x2]=_0x354c45(0x31c),_0xb312c8[_0xb312c8[_0x354c45(0x3bf)]=0x3]=_0x354c45(0x3bf),_0xb312c8[_0xb312c8['UNIVER_PROJECT']=0x4]=_0x354c45(0x15b),_0xb312c8[_0xb312c8[_0x354c45(0x35a)]=-0x1]=_0x354c45(0x35a),_0xb312c8))(H||{}),I=(_0x3950ad=>(_0x3950ad[_0x3950ad[_0x354c45(0x85)]=0x0]=_0x354c45(0x85),_0x3950ad[_0x3950ad[_0x354c45(0x1ad)]=0x1]=_0x354c45(0x1ad),_0x3950ad[_0x3950ad['JOIN']=0x2]=_0x354c45(0x211),_0x3950ad[_0x3950ad[_0x354c45(0x352)]=0x3]=_0x354c45(0x352),_0x3950ad[_0x3950ad['INGEST']=0x4]=_0x354c45(0x360),_0x3950ad[_0x3950ad[_0x354c45(0x1aa)]=0x5]=_0x354c45(0x1aa),_0x3950ad[_0x3950ad[_0x354c45(0xef)]=0x6]=_0x354c45(0xef),_0x3950ad[_0x3950ad[_0x354c45(0x35a)]=-0x1]=_0x354c45(0x35a),_0x3950ad))(I||{}),jt=(_0x53e474=>(_0x53e474[_0x53e474[_0x354c45(0x167)]=0x0]=_0x354c45(0x167),_0x53e474[_0x53e474['OK']=0x1]='OK',_0x53e474[_0x53e474[_0x354c45(0xb1)]=0x2]='FAIL',_0x53e474[_0x53e474[_0x354c45(0x35a)]=-0x1]=_0x354c45(0x35a),_0x53e474))(jt||{}),ws=(_0x16bccc=>(_0x16bccc[_0x16bccc[_0x354c45(0x1c0)]=0x0]=_0x354c45(0x1c0),_0x16bccc[_0x16bccc['HttpImport']=0x1]='HttpImport',_0x16bccc[_0x16bccc[_0x354c45(0x359)]=0x2]=_0x354c45(0x359),_0x16bccc[_0x16bccc[_0x354c45(0x28c)]=0x3]=_0x354c45(0x28c),_0x16bccc[_0x16bccc[_0x354c45(0x3a1)]=0x4]='UnitSnapshot',_0x16bccc[_0x16bccc['UNRECOGNIZED']=-0x1]=_0x354c45(0x35a),_0x16bccc))(ws||{}),On=Object[_0x354c45(0xa3)],Dn=Object[_0x354c45(0x3cf)],Pn=(_0x273410,_0x4e4ac3,_0x56143e,_0x4298a1)=>{const _0x2d182f=_0x354c45;for(var _0x55504a=_0x4298a1>0x1?void 0x0:_0x4298a1?Dn(_0x4e4ac3,_0x56143e):_0x4e4ac3,_0x9696ed=_0x273410[_0x2d182f(0x16f)]-0x1,_0x5579b3;_0x9696ed>=0x0;_0x9696ed--)(_0x5579b3=_0x273410[_0x9696ed])&&(_0x55504a=(_0x4298a1?_0x5579b3(_0x4e4ac3,_0x56143e,_0x55504a):_0x5579b3(_0x55504a))||_0x55504a);return _0x4298a1&&_0x55504a&&On(_0x4e4ac3,_0x56143e,_0x55504a),_0x55504a;},Qt=(_0x20eab2,_0x213aff)=>(_0x4168cb,_0x50b6c3)=>_0x213aff(_0x4168cb,_0x50b6c3,_0x20eab2);let ne=class extends _0x48941f{constructor(_0x718da9,_0x2a7440){const _0x4a4514=_0x354c45;super(),_(this,'_roomMembers',new Map()),(this[_0x4a4514(0x134)]=_0x718da9,this[_0x4a4514(0x9c)]=_0x2a7440,this[_0x4a4514(0x1a0)](_0x681995(_0x5b30b2(this[_0x4a4514(0x134)][_0x4a4514(0x38d)](_0x380445[_0x4a4514(0x31c)])[_0x4a4514(0x1e1)](_0x1b7b12(_0x2177ab=>_0x2177ab[_0x4a4514(0x3a7)]())),this[_0x4a4514(0x134)][_0x4a4514(0x38d)](_0x380445[_0x4a4514(0x30e)])[_0x4a4514(0x1e1)](_0x1b7b12(_0x3e15a9=>_0x3e15a9[_0x4a4514(0x3a7)]())),this[_0x4a4514(0x134)][_0x4a4514(0x38d)](_0x380445[_0x4a4514(0x3bf)])[_0x4a4514(0x1e1)](_0x1b7b12(_0x234a07=>_0x234a07[_0x4a4514(0x3a7)]())))[_0x4a4514(0x37e)](_0x266762=>this[_0x4a4514(0x11d)](_0x266762)))));}[_0x354c45(0x81)](_0x4693e2){const _0xb26b04=_0x354c45;this[_0xb26b04(0x9c)][_0xb26b04(0x81)](_0x4693e2);}[_0x354c45(0x2af)](){const _0x4f51f1=_0x354c45;return this['_userManagerService'][_0x4f51f1(0x2af)]();}['updateMember'](_0x26cb27,_0x27f591){const _0x32da57=_0x354c45;let _0x461e69=this[_0x32da57(0x388)][_0x32da57(0x309)](_0x26cb27);_0x461e69||(_0x461e69=new wn(),this['_roomMembers'][_0x32da57(0xdd)](_0x26cb27,_0x461e69)),_0x461e69['updateMember'](_0x27f591);}[_0x354c45(0x188)](_0xa5ac66,_0xc804d1){const _0x823669=_0x354c45,_0x3fc693=this[_0x823669(0x388)][_0x823669(0x309)](_0xa5ac66);_0x3fc693&&_0x3fc693[_0x823669(0x188)](_0xc804d1);}['getRoom'](_0x215461){const _0x5d8df0=_0x354c45;return this[_0x5d8df0(0x388)]['get'](_0x215461);}[_0x354c45(0x39a)](_0x2012e3,_0x119465){const _0x475fa9=_0x354c45,_0x4c04f4=this[_0x475fa9(0x388)][_0x475fa9(0x309)](_0x2012e3);if(_0x4c04f4)return _0x4c04f4[_0x475fa9(0x39a)](_0x119465);}[_0x354c45(0x11d)](_0x88a4f6){const _0x471329=_0x354c45,_0x384334=this[_0x471329(0x388)][_0x471329(0x309)](_0x88a4f6);_0x384334&&(_0x384334[_0x471329(0x220)](),this[_0x471329(0x388)]['delete'](_0x88a4f6));}[_0x354c45(0x220)](){const _0x5274ee=_0x354c45;this[_0x5274ee(0x388)][_0x5274ee(0x18d)](_0x3f5b83=>_0x3f5b83[_0x5274ee(0x220)]()),this[_0x5274ee(0x388)]['clear']();}};ne=Pn([Qt(0x0,_0x14d401),Qt(0x1,_0x229f6b(_0x525abf))],ne);class wn extends _0x48941f{constructor(){const _0x19567a=_0x354c45;super(...arguments),_(this,_0x19567a(0x12a),new Map());}[_0x354c45(0x220)](){const _0x2cfb44=_0x354c45;this[_0x2cfb44(0x12a)][_0x2cfb44(0x3a6)]();}[_0x354c45(0x2d0)](_0x59ce78){const _0x53f92c=_0x354c45;this[_0x53f92c(0x12a)][_0x53f92c(0xdd)](_0x59ce78['memberID'],_0x59ce78);}[_0x354c45(0x188)](_0x199aa8){const _0x652803=_0x354c45;this[_0x652803(0x12a)][_0x652803(0x33a)](_0x199aa8);}[_0x354c45(0x39a)](_0x45c5b0){const _0x366ebf=_0x354c45;return this[_0x366ebf(0x12a)][_0x366ebf(0x309)](_0x45c5b0);}}function Nn(_0x35254b){const _0x3184a0=_0x354c45;var _0x7c1cde,_0x3c666c,_0x142027,_0xc5eb9c;const _0x371f0e=_0x35254b[_0x3184a0(0x385)],_0x12971e=JSON[_0x3184a0(0x156)](_0x371f0e);switch(_0x12971e[_0x3184a0(0x2aa)]){case I['HEARTBEAT']:case I['HELLO']:{const _0x1ef374=_0x12971e[_0x3184a0(0x249)];return{..._0x12971e,'data':_0x1ef374,'cmd':_0x12971e[_0x3184a0(0x2aa)]};}case I[_0x3184a0(0x211)]:{const _0x5298e6=_0x12971e['joinRsp'];return{..._0x12971e,'data':_0x5298e6,'cmd':_0x12971e[_0x3184a0(0x2aa)]};}case I[_0x3184a0(0xef)]:{const _0x129944=_0x12971e['collaMsg'];switch(_0x129944[_0x3184a0(0x2d3)]){case _0x363b50[_0x3184a0(0x14f)]:return{..._0x12971e,'data':{..._0x129944,'data':(_0x7c1cde=_0x129944['permissionRejEvent'])==null?void 0x0:_0x7c1cde['cs']},'cmd':_0x12971e[_0x3184a0(0x2aa)]};case _0x363b50[_0x3184a0(0x363)]:return{..._0x12971e,'data':{..._0x129944,'data':(_0x3c666c=_0x129944['csAckEvent'])==null?void 0x0:_0x3c666c['cs']},'cmd':_0x12971e['cmd']};case _0x363b50[_0x3184a0(0x19b)]:return{..._0x12971e,'data':{..._0x129944,'data':(_0x142027=_0x129944[_0x3184a0(0xd5)])==null?void 0x0:_0x142027['cs']},'cmd':_0x12971e[_0x3184a0(0x2aa)]};case _0x363b50[_0x3184a0(0x38b)]:return{..._0x12971e,'data':{..._0x129944,'data':(_0xc5eb9c=_0x129944[_0x3184a0(0xd2)])==null?void 0x0:_0xc5eb9c['cs']},'cmd':_0x12971e[_0x3184a0(0x2aa)]};case _0x363b50[_0x3184a0(0x251)]:return{..._0x12971e,'data':{..._0x129944,'data':_0x129944[_0x3184a0(0x2e2)]},'cmd':_0x12971e[_0x3184a0(0x2aa)]};case _0x363b50['USERS_ENTER']:return{..._0x12971e,'data':{..._0x129944,'data':_0x129944[_0x3184a0(0x273)]},'cmd':_0x12971e[_0x3184a0(0x2aa)]};case _0x363b50[_0x3184a0(0x180)]:return{..._0x12971e,'data':{..._0x129944,'data':_0x129944[_0x3184a0(0x2bd)]},'cmd':_0x12971e[_0x3184a0(0x2aa)]};case _0x363b50['LIVESHARE_NEW_HOST']:return{..._0x12971e,'data':{..._0x129944,'data':_0x129944[_0x3184a0(0xa0)]},'cmd':_0x12971e['cmd']};case _0x363b50[_0x3184a0(0x13d)]:case _0x363b50['LIVESHARE_OPERATION']:return{..._0x12971e,'data':{..._0x129944,'data':_0x129944[_0x3184a0(0x192)]},'cmd':_0x12971e[_0x3184a0(0x2aa)]};case _0x363b50[_0x3184a0(0x1a4)]:return{..._0x12971e,'data':{..._0x129944,'data':_0x129944['liveShareNewHost']},'cmd':_0x12971e[_0x3184a0(0x2aa)]};case _0x363b50[_0x3184a0(0x1f3)]:return{..._0x12971e,'data':_0x129944,'cmd':_0x12971e['cmd']};case _0x363b50[_0x3184a0(0x280)]:return{..._0x12971e,'data':{..._0x129944,'data':_0x129944['commentUpdateEvent']},'cmd':_0x12971e[_0x3184a0(0x2aa)]};case _0x363b50[_0x3184a0(0x293)]:return{..._0x12971e,'data':{..._0x129944,'data':_0x129944['updatePermissionObjEvent']},'cmd':_0x12971e[_0x3184a0(0x2aa)]};case _0x363b50[_0x3184a0(0x13f)]:return{..._0x12971e,'data':{..._0x129944,'data':_0x129944[_0x3184a0(0x1fd)]},'cmd':_0x12971e['cmd']};default:return _0x12971e;}}default:return _0x12971e;}}function Mn(_0x23a823){const _0x1a8078=_0x354c45;switch(_0x23a823[_0x1a8078(0x2aa)]){case I[_0x1a8078(0x1aa)]:case I[_0x1a8078(0x1ad)]:return JSON[_0x1a8078(0x303)]({'cmd':_0x23a823[_0x1a8078(0x2aa)],'routeKey':_0x23a823[_0x1a8078(0x110)]});case I[_0x1a8078(0x360)]:{let _0x4056af;switch(_0x23a823[_0x1a8078(0x385)][_0x1a8078(0x2d3)]){case _0x363b50[_0x1a8078(0x251)]:{_0x4056af={'eventID':_0x363b50[_0x1a8078(0x251)],'updateCursorEvent':_0x23a823[_0x1a8078(0x385)][_0x1a8078(0x385)]};break;}case _0x363b50[_0x1a8078(0x180)]:{_0x4056af={'eventID':_0x363b50['USERS_LEAVE'],'leaveEvent':_0x23a823['data'][_0x1a8078(0x385)]};break;}case _0x363b50[_0x1a8078(0xf8)]:{_0x4056af={'eventID':_0x363b50[_0x1a8078(0xf8)],'joinEvent':_0x23a823['data'][_0x1a8078(0x385)]};break;}case _0x363b50[_0x1a8078(0x131)]:{_0x4056af={'eventID':_0x363b50[_0x1a8078(0x131)],'liveShareNewHost':_0x23a823[_0x1a8078(0x385)][_0x1a8078(0x385)]};break;}case _0x363b50['LIVESHARE_OPERATION']:{_0x4056af={'eventID':_0x363b50[_0x1a8078(0x108)],'liveShareOperation':_0x23a823[_0x1a8078(0x385)][_0x1a8078(0x385)]};break;}case _0x363b50[_0x1a8078(0x1a4)]:{_0x4056af={'eventID':_0x363b50[_0x1a8078(0x1a4)],'liveShareTerminate':_0x23a823['data'][_0x1a8078(0x385)]};break;}case _0x363b50['LIVESHARE_REQUEST_HOST']:{_0x4056af={'eventID':_0x363b50['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x23a823[_0x1a8078(0x385)][_0x1a8078(0x385)]};break;}case _0x363b50[_0x1a8078(0x13d)]:{_0x4056af={'eventID':_0x363b50['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x4056af={'eventID':_0x23a823['data'][_0x1a8078(0x2d3)]};}return JSON['stringify']({'cmd':_0x23a823[_0x1a8078(0x2aa)],'routeKey':_0x23a823['routeKey'],'collaMsg':_0x4056af});}case I['JOIN']:return JSON[_0x1a8078(0x303)]({'cmd':_0x23a823[_0x1a8078(0x2aa)],'routeKey':_0x23a823[_0x1a8078(0x110)],'joinReq':_0x23a823[_0x1a8078(0x385)]});case I[_0x1a8078(0x352)]:return JSON[_0x1a8078(0x303)]({'cmd':_0x23a823[_0x1a8078(0x2aa)],'routeKey':_0x23a823[_0x1a8078(0x110)],'leaveReq':_0x23a823[_0x1a8078(0x385)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var An=Object[_0x354c45(0xa3)],Un=Object['getOwnPropertyDescriptor'],yn=(_0x65b9f3,_0x1bb515,_0x5b3f3d,_0x388efe)=>{const _0x63ecf8=_0x354c45;for(var _0x3df15c=_0x388efe>0x1?void 0x0:_0x388efe?Un(_0x1bb515,_0x5b3f3d):_0x1bb515,_0x2f597e=_0x65b9f3[_0x63ecf8(0x16f)]-0x1,_0x3bfbb3;_0x2f597e>=0x0;_0x2f597e--)(_0x3bfbb3=_0x65b9f3[_0x2f597e])&&(_0x3df15c=(_0x388efe?_0x3bfbb3(_0x1bb515,_0x5b3f3d,_0x3df15c):_0x3bfbb3(_0x3df15c))||_0x3df15c);return _0x388efe&&_0x3df15c&&An(_0x1bb515,_0x5b3f3d,_0x3df15c),_0x3df15c;},Te=(_0x230d0d,_0x3e86b3)=>(_0x318e2a,_0x5bd41c)=>_0x3e86b3(_0x318e2a,_0x5bd41c,_0x230d0d);const Ns=_0x120263('univer-pro.collaboration-client-socket-service');function Ln(_0x92f5ac,_0x4fc916,_0x105508){return _0x92f5ac+'/'+_0x4fc916+'/unit/'+_0x105508+'/new_changes';}let vt=class{constructor(_0x23ba89,_0x33b7c0,_0x201eb0,_0x143060,_0xc15e21){const _0x2f890e=_0x354c45;this['_http']=_0x23ba89,this[_0x2f890e(0x3cd)]=_0x33b7c0,this[_0x2f890e(0x102)]=_0x201eb0,this['_logService']=_0x143060,this['_snapshotServerService']=_0xc15e21;}[_0x354c45(0x1eb)](_0x4fc40f){const _0x5263ad=_0x354c45,_0x11fb7e=this[_0x5263ad(0x3cd)][_0x5263ad(0x1eb)](_0x4fc40f);if(!_0x11fb7e)throw new Error(_0x5263ad(0xd0));const _0x2432bc=new _0x57a20f(),_0x357e46=new _0x2b4845();_0x2432bc['add'](_0x681995(_0x11fb7e[_0x5263ad(0x33d)][_0x5263ad(0x37e)](_0x2e1b91=>_0x357e46[_0x5263ad(0x2fe)](_0x2e1b91)))),_0x2432bc[_0x5263ad(0x264)](_0x681995(()=>_0x357e46[_0x5263ad(0x1ec)]()));const _0x50365e=new _0x2b4845();_0x2432bc['add'](_0x681995(_0x11fb7e['error$'][_0x5263ad(0x37e)](_0xa76a5f=>_0x50365e['next'](_0xa76a5f)))),_0x2432bc['add'](_0x681995(()=>_0x50365e['complete']()));const _0xd77c2a=new _0x2b4845();_0x2432bc[_0x5263ad(0x264)](_0x681995(_0x11fb7e['message$'][_0x5263ad(0x37e)](_0x55aa78=>{const _0x59d411=_0x5263ad,_0x411df2=Nn(_0x55aa78);_0xd77c2a[_0x59d411(0x2fe)](_0x411df2);}))),_0x2432bc[_0x5263ad(0x264)](_0x681995(()=>_0xd77c2a[_0x5263ad(0x1ec)]()));const _0xd4ee8d=()=>{const _0x960a1f=_0x5263ad;_0x50365e[_0x960a1f(0x2fe)](new Event('connection\x20error')),_0x357e46[_0x960a1f(0x2fe)](new CloseEvent(_0x960a1f(0x21b))),_0xd5864[_0x960a1f(0x3d7)]();},_0xd5864={'memberID':'','close$':_0x357e46[_0x5263ad(0x209)](),'error$':_0x50365e['asObservable'](),'open$':_0x11fb7e[_0x5263ad(0x18e)],'message$':_0xd77c2a['asObservable'](),'send':_0x176a0c=>{const _0x11557d=_0x5263ad;if(_0x176a0c['cmd']===I[_0x11557d(0x360)]){if(_0x176a0c[_0x11557d(0x385)][_0x11557d(0x2d3)]===_0x363b50[_0x11557d(0x3d5)]){this['_submitChangeset'](_0xd5864,_0x176a0c['data'])[_0x11557d(0x32c)](_0x4bb837=>{const _0x507d66=_0x11557d;this[_0x507d66(0x10f)]['error'](_0x4bb837),_0xd4ee8d();});return;}if(_0x176a0c[_0x11557d(0x385)]['eventID']===_0x363b50['FETCH_MISSING']){const _0x15c980=_0x176a0c['data'];this[_0x11557d(0x31b)](_0x15c980)[_0x11557d(0xc4)](_0x44bc8d=>{const _0x55ed04=_0x11557d;_0xd77c2a['next']({'cmd':I[_0x55ed04(0xef)],'code':jt['OK'],'routeKey':_0x15c980[_0x55ed04(0x385)]['unitID'],'routeType':'','data':{'eventID':_0x363b50[_0x55ed04(0xa8)],'data':{'changesets':_0x44bc8d}}});})[_0x11557d(0x32c)](_0x2bb5a4=>{const _0x2294b9=_0x11557d;this['_logService'][_0x2294b9(0x35c)](_0x2bb5a4),_0xd4ee8d();});return;}}_0x11fb7e[_0x11557d(0x3b4)](Mn(_0x176a0c));},'close':()=>{const _0x46cc47=_0x5263ad;_0x11fb7e[_0x46cc47(0x3d7)](),_0x2432bc[_0x46cc47(0x220)]();}};return _0xd5864;}async['_submitChangeset'](_0x1cb6a9,_0x5e9ea9){const _0xc1565c=_0x354c45;var _0x509513;const {unitType:_0x19fb9c,unitID:_0x5169d2,changeset:_0x5f069d}=_0x5e9ea9['data'],_0x16df38={'unitID':_0x5169d2,'memberID':_0x1cb6a9['memberID'],'type':_0x19fb9c,'changeset':_0x2329ca(_0x5f069d)},_0x4cab30=Ln((_0x509513=this[_0xc1565c(0x102)][_0xc1565c(0x119)](Cn))!=null?_0x509513:bn,_0x19fb9c,_0x5169d2);try{await this[_0xc1565c(0x19c)][_0xc1565c(0x276)](_0x4cab30,{'body':_0x16df38});}catch(_0xb87612){throw this[_0xc1565c(0x10f)][_0xc1565c(0x35c)](_0xc1565c(0xc2),_0xc1565c(0xed)),_0xb87612;}}async[_0x354c45(0x31b)](_0x231b47){const _0x369859=_0x354c45,{unitID:_0x9dd328,from:_0x5bfafb,to:_0x4bcecf,unitType:_0x29d922}=_0x231b47[_0x369859(0x385)];return(await this['_snapshotServerService'][_0x369859(0x89)]({'metadata':void 0x0},{'unitID':_0x9dd328,'type':_0x29d922,'from':_0x5bfafb,'to':_0x4bcecf}))[_0x369859(0x362)];}};vt=yn([Te(0x0,_0x229f6b(_0x131927)),Te(0x1,_0x229f6b(_0x1a53de)),Te(0x2,_0x476b70),Te(0x3,_0x4491a7),Te(0x4,_0x34895f)],vt);class Ms{constructor(){const _0x299533=_0x354c45;_(this,_0x299533(0x80),new _0x2b4845()),_(this,'commentUpdate$',this['_commentUpdate$'][_0x299533(0x209)]());}[_0x354c45(0x244)](_0x5ba79f){const _0x4eca97=_0x354c45;this[_0x4eca97(0x80)][_0x4eca97(0x2fe)](_0x5ba79f);}}var $n=Object['defineProperty'],jn=Object[_0x354c45(0x3cf)],As=(_0x10b0ab,_0x1aca58,_0x4b12cf,_0x2da4dd)=>{const _0x50b503=_0x354c45;for(var _0x5c9b1e=_0x2da4dd>0x1?void 0x0:_0x2da4dd?jn(_0x1aca58,_0x4b12cf):_0x1aca58,_0x244ded=_0x10b0ab[_0x50b503(0x16f)]-0x1,_0x1e879f;_0x244ded>=0x0;_0x244ded--)(_0x1e879f=_0x10b0ab[_0x244ded])&&(_0x5c9b1e=(_0x2da4dd?_0x1e879f(_0x1aca58,_0x4b12cf,_0x5c9b1e):_0x1e879f(_0x5c9b1e))||_0x5c9b1e);return _0x2da4dd&&_0x5c9b1e&&$n(_0x1aca58,_0x4b12cf,_0x5c9b1e),_0x5c9b1e;},A=(_0x1fe469,_0x156549)=>(_0x1b9bb4,_0x2848d8)=>_0x156549(_0x1b9bb4,_0x2848d8,_0x1fe469),fe=(_0x29ebea=>(_0x29ebea[_0x29ebea[_0x354c45(0x37f)]=0x0]=_0x354c45(0x37f),_0x29ebea[_0x29ebea[_0x354c45(0x1b9)]=0x1]=_0x354c45(0x1b9),_0x29ebea[_0x29ebea[_0x354c45(0x3c0)]=0x2]=_0x354c45(0x3c0),_0x29ebea[_0x29ebea[_0x354c45(0x10e)]=0x3]=_0x354c45(0x10e),_0x29ebea))(fe||{});let It=class extends _0x5aeadb{constructor(_0x32eae5,_0x51bb0e,_0x4a5258,_0x3bfff2,_0x110928,_0x35a011,_0x4f5512,_0x2eb21f,_0x410c7e){const _0xa23cab=_0x354c45;super(),_(this,'_sessionStatus$',new _0x421821(0x0)),_(this,_0xa23cab(0x3d6),this['_sessionStatus$']['asObservable']()),_(this,_0xa23cab(0x1fc),new _0x2b4845()),_(this,_0xa23cab(0x2c5),this['_event$'][_0xa23cab(0x209)]()),_(this,_0xa23cab(0x106)),_(this,'_socketMessageSubscription'),_(this,_0xa23cab(0x285)),(this[_0xa23cab(0x1c4)]=_0x32eae5,this[_0xa23cab(0x10f)]=_0x4a5258,this[_0xa23cab(0x202)]=_0x3bfff2,this[_0xa23cab(0x1c1)]=_0x110928,this[_0xa23cab(0x102)]=_0x35a011,this['_localeService']=_0x4f5512,this[_0xa23cab(0x39b)]=_0x2eb21f,this['_commentService']=_0x410c7e,_0x51bb0e['pipe'](_0xc21920(this['dispose$']))[_0xa23cab(0x37e)](_0x5f38b4=>{const _0x594358=_0xa23cab;var _0x366852;typeof _0x5f38b4>'u'||(this[_0x594358(0x106)]=_0x5f38b4,_0x5f38b4?(this[_0x594358(0x7e)](_0x5f38b4),this[_0x594358(0x1c3)]=this['_socket']['message$'][_0x594358(0x37e)](_0x1f483d=>{const _0x3664b2=_0x594358;_0x1f483d[_0x3664b2(0x110)]===this[_0x3664b2(0x1c4)]&&this[_0x3664b2(0x12e)](_0x1f483d);})):(this[_0x594358(0x2ac)]['next'](0x2),(_0x366852=this[_0x594358(0x1c3)])==null||_0x366852[_0x594358(0x2ae)](),this[_0x594358(0x1c3)]=null));}),this[_0xa23cab(0x1a0)](this[_0xa23cab(0x202)][_0xa23cab(0x15a)](()=>{const _0x2e8ae8=_0xa23cab;var _0x3f494d;(_0x3f494d=this[_0x2e8ae8(0x106)])==null||_0x3f494d[_0x2e8ae8(0x3b4)]({'cmd':I[_0x2e8ae8(0x352)],'data':{'roomID':this[_0x2e8ae8(0x1c4)]}});})));}get[_0x354c45(0xa6)](){const _0x196e48=_0x354c45;return this[_0x196e48(0x2ac)][_0x196e48(0xe4)]();}[_0x354c45(0x2f6)](){const _0x21b1b5=_0x354c45;var _0x4bae35,_0x1584f5;return(_0x1584f5=(_0x4bae35=this[_0x21b1b5(0x106)])==null?void 0x0:_0x4bae35['memberID'])!=null?_0x1584f5:null;}[_0x354c45(0x220)](){const _0x3ec22b=_0x354c45;super['dispose'](),this[_0x3ec22b(0x1a1)]['next'](),this[_0x3ec22b(0x1a1)][_0x3ec22b(0x1ec)]();}['close'](){const _0x4c27df=_0x354c45;var _0x3d79b4,_0x11a032;(_0x3d79b4=this['_socket'])==null||_0x3d79b4[_0x4c27df(0x3b4)]({'cmd':I[_0x4c27df(0x352)],'data':{'roomID':this['_unitID']}}),this[_0x4c27df(0x1fc)][_0x4c27df(0x1ec)](),this['_sessionStatus$'][_0x4c27df(0x1ec)](),(_0x11a032=this[_0x4c27df(0x106)])==null||_0x11a032['close'](),this[_0x4c27df(0x220)]();}[_0x354c45(0x12e)](_0x34940c){const _0x1625a9=_0x354c45;_0x34940c[_0x1625a9(0x2aa)]===I[_0x1625a9(0x211)]?this['_onJoinRoomEvent'](_0x34940c):_0x34940c['cmd']===I[_0x1625a9(0xef)]&&this[_0x1625a9(0xf2)](_0x34940c);}['_joinRoom'](_0x2dbd0b){const _0x4d1807=_0x354c45;this[_0x4d1807(0x2ac)][_0x4d1807(0x2fe)](0x1),_0x2dbd0b[_0x4d1807(0x3b4)]({'cmd':I['JOIN'],'routeKey':this[_0x4d1807(0x1c4)],'routeType':'','data':{'rooms':[{'roomID':this[_0x4d1807(0x1c4)]}]}});}['_onJoinRoomEvent'](_0x57f79b){const _0x496a05=_0x354c45;var _0x17bec7;if(_0x57f79b[_0x496a05(0x7d)]===jt['FAIL']){this[_0x496a05(0x1c1)][_0x496a05(0x2e0)]({'type':_0x1679e9[_0x496a05(0x31a)],'content':this[_0x496a05(0xa4)]['t'](_0x496a05(0x1e4))}),this[_0x496a05(0x2ac)]['next'](0x2);return;}this[_0x496a05(0x2ac)]['next'](0x3);const _0x1474a0=(_0x17bec7=_0x57f79b['data'][_0x496a05(0x194)][this['_unitID']])==null?void 0x0:_0x17bec7[_0x496a05(0xaf)];_0x1474a0&&_0x1474a0[_0x496a05(0x18d)](_0x11c071=>this['_memberService'][_0x496a05(0x2d0)](this[_0x496a05(0x1c4)],_0x11c071));}[_0x354c45(0xf2)](_0x8cc03){const _0x36759e=_0x354c45;try{const _0x377f10=_0x8cc03[_0x36759e(0x385)];switch(_0x377f10['eventID']){case _0x363b50[_0x36759e(0xf8)]:this['_onUserJoin'](_0x377f10),this[_0x36759e(0x1fc)][_0x36759e(0x2fe)](_0x377f10);break;case _0x363b50[_0x36759e(0x180)]:this[_0x36759e(0xf1)](_0x377f10),this[_0x36759e(0x1fc)][_0x36759e(0x2fe)](_0x377f10);break;case _0x363b50['CHANGESET_ACK']:this[_0x36759e(0x356)](),this['_event$']['next'](_0x377f10);break;case _0x363b50[_0x36759e(0x1f3)]:this[_0x36759e(0x10f)][_0x36759e(0x35c)](_0x36759e(0xb0)+JSON[_0x36759e(0x303)](_0x377f10)),this[_0x36759e(0x1fc)][_0x36759e(0x2fe)](_0x377f10);break;case _0x363b50['COMMENT_UPDATE']:this[_0x36759e(0x22e)]['onCommentUpdate'](_0x377f10[_0x36759e(0x385)]),this[_0x36759e(0x1fc)]['next'](_0x377f10);break;default:this[_0x36759e(0x1fc)]['next'](_0x377f10);}}catch(_0x397404){this[_0x36759e(0x10f)]['error'](_0x397404,_0x8cc03);}}[_0x354c45(0x3b7)](_0x39569d){const _0x2bc69a=_0x354c45;this['_memberService'][_0x2bc69a(0x2d0)](this['_unitID'],_0x39569d[_0x2bc69a(0x385)]);}['_onUserLeave'](_0x35e8ff){const _0x4b3d0d=_0x354c45;this[_0x4b3d0d(0x39b)][_0x4b3d0d(0x188)](this[_0x4b3d0d(0x1c4)],_0x35e8ff['data'][_0x4b3d0d(0xd3)]);}async[_0x354c45(0x3b4)](_0xbfec50,_0x43f611){const _0x464814=_0x354c45;if(this[_0x464814(0xa6)]!==0x3||!this['_socket'])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0xbfec50['eventID']===_0x363b50[_0x464814(0x19b)]&&this[_0x464814(0x270)](),this[_0x464814(0x106)][_0x464814(0x3b4)]({'cmd':I[_0x464814(0x360)],'routeKey':_0x43f611,'routeType':'','data':_0xbfec50});}catch(_0x33e2c1){this[_0x464814(0x10f)][_0x464814(0x35c)](_0x33e2c1);}}[_0x354c45(0x270)](){const _0x594e1f=_0x354c45;var _0x4743f6;this[_0x594e1f(0x285)]=window['setTimeout'](()=>{const _0x5a2fbb=_0x594e1f;this[_0x5a2fbb(0x285)]=null,this[_0x5a2fbb(0x1c1)][_0x5a2fbb(0x2e0)]({'type':_0x1679e9[_0x5a2fbb(0xf0)],'content':this[_0x5a2fbb(0xa4)]['t'](_0x5a2fbb(0x1a3))});},(_0x4743f6=this[_0x594e1f(0x102)][_0x594e1f(0x119)](Os))!=null?_0x4743f6:Ds);}[_0x354c45(0x356)](){const _0x271931=_0x354c45;this[_0x271931(0x285)]&&(clearTimeout(this[_0x271931(0x285)]),this[_0x271931(0x285)]=null);}};It=As([A(0x2,_0x4491a7),A(0x3,_0x24d7c6),A(0x4,_0x5963f9),A(0x5,_0x476b70),A(0x6,_0x229f6b(_0x5e486d)),A(0x7,_0x229f6b(ne)),A(0x8,_0x229f6b(Ms))],It);let pe=class extends _0x48941f{constructor(_0x1d97c7,_0x5bb4f7,_0x4008d9,_0x31dde3,_0x4583bd,_0x5e9c3c){const _0x4b92ee=_0x354c45;super(),_(this,_0x4b92ee(0x232),new _0x421821(void 0x0)),_(this,_0x4b92ee(0x338),new Map()),_(this,_0x4b92ee(0x8b),new _0x421821(0x0)),_(this,_0x4b92ee(0x2e6),this[_0x4b92ee(0x8b)][_0x4b92ee(0x209)]()),_(this,'_socketReady',!0x1),_(this,_0x4b92ee(0x396)),_(this,_0x4b92ee(0xe0)),_(this,_0x4b92ee(0x390)),_(this,_0x4b92ee(0xd4),0x0),(this[_0x4b92ee(0x259)]=_0x1d97c7,this['_localeService']=_0x5bb4f7,this['_messageService']=_0x4008d9,this['_logService']=_0x31dde3,this[_0x4b92ee(0x102)]=_0x4583bd,this[_0x4b92ee(0x3b9)]=_0x5e9c3c);}get[_0x354c45(0x106)](){const _0x172b3f=_0x354c45;return this[_0x172b3f(0x232)][_0x172b3f(0xe4)]();}['dispose'](){const _0x544aee=_0x354c45;super[_0x544aee(0x220)](),this[_0x544aee(0x338)][_0x544aee(0x18d)](_0x526a31=>_0x526a31[_0x544aee(0x220)]()),this[_0x544aee(0x338)]['clear'](),this[_0x544aee(0x8b)]['complete']();}async['requireSession'](_0x2fa93e){const _0x43946b=_0x354c45;if(this[_0x43946b(0x338)][_0x43946b(0x340)](_0x2fa93e))return this[_0x43946b(0x338)][_0x43946b(0x309)](_0x2fa93e);this[_0x43946b(0x256)]();const _0x4a09e6=this[_0x43946b(0x259)][_0x43946b(0x31d)](It,_0x2fa93e,this['_socket$'][_0x43946b(0x209)]());return this[_0x43946b(0x338)][_0x43946b(0xdd)](_0x2fa93e,_0x4a09e6),_0x4a09e6;}['closeSession'](_0x468790){const _0x2da642=_0x354c45;var _0x4c026d;const _0x27ec9b=this[_0x2da642(0x338)][_0x2da642(0x309)](_0x468790);_0x27ec9b&&(this[_0x2da642(0x338)][_0x2da642(0x33a)](_0x468790),_0x27ec9b[_0x2da642(0x3d7)]()),this[_0x2da642(0x338)][_0x2da642(0x2f1)]||(_0x4c026d=this[_0x2da642(0x106)])==null||_0x4c026d[_0x2da642(0x3d7)]();}['_createSocket'](){const _0x23bc7b=_0x354c45;var _0x34f863;const _0x36c637=(_0x34f863=this[_0x23bc7b(0x102)]['getConfig'](un))!=null?_0x34f863:dn;return this['_socketService'][_0x23bc7b(0x1eb)](_0x36c637);}[_0x354c45(0x256)](){const _0x4a11a6=_0x354c45;try{const _0x2df9d8=this[_0x4a11a6(0x2e3)]();if(_0x2df9d8){const _0x4ca29b=_0x2df9d8['send'];_0x2df9d8[_0x4a11a6(0x3b4)]=_0x126bf5=>(this['_rescheduleHeartbeatEvent'](),_0x4ca29b[_0x4a11a6(0x1a8)](_0x2df9d8,[_0x126bf5])),_0x2df9d8[_0x4a11a6(0x219)][_0x4a11a6(0x37e)](_0xfc965f=>this[_0x4a11a6(0x37d)](_0x2df9d8,_0xfc965f)),_0x2df9d8['error$'][_0x4a11a6(0x1e1)](_0x518ec2(0x1))[_0x4a11a6(0x37e)](_0x528c73=>this[_0x4a11a6(0x10f)][_0x4a11a6(0x35c)](_0x4a11a6(0x1fe),_0x528c73)),_0x2df9d8[_0x4a11a6(0x18e)][_0x4a11a6(0x1e1)](_0x518ec2(0x1))[_0x4a11a6(0x37e)](()=>{this['_onConnectionOpen'](_0x2df9d8);}),_0x2df9d8[_0x4a11a6(0x33d)][_0x4a11a6(0x1e1)](_0x518ec2(0x1))[_0x4a11a6(0x37e)](_0x137fbe=>{const _0x478ec7=_0x4a11a6;this[_0x478ec7(0x10f)][_0x478ec7(0x1cd)](_0x478ec7(0x378),_0x478ec7(0x320),_0x137fbe),this[_0x478ec7(0x1f8)]();});}}catch(_0x5d9e75){this[_0x4a11a6(0x10f)]['error'](_0x5d9e75),this[_0x4a11a6(0x1f8)]();}}[_0x354c45(0x230)](_0x44a905){const _0x3ef632=_0x354c45;this[_0x3ef632(0x10f)]['debug'](_0x3ef632(0x378),_0x3ef632(0x316)),_0x44a905['send']({'cmd':I[_0x3ef632(0x1ad)]}),this[_0x3ef632(0x142)]();}['_onConnectionFailed'](){const _0x4c1d8e=_0x354c45;var _0x17371c;this[_0x4c1d8e(0x8b)][_0x4c1d8e(0x2fe)](0x2),this[_0x4c1d8e(0x232)]['next'](null),this[_0x4c1d8e(0x113)](),this['_clearHeartbeatTimer'](),this['_socketReady']=!0x1,this[_0x4c1d8e(0xd4)]<((_0x17371c=this[_0x4c1d8e(0x102)][_0x4c1d8e(0x119)](pn))!=null?_0x17371c:vn)?(this[_0x4c1d8e(0x83)](this[_0x4c1d8e(0xd4)]),this[_0x4c1d8e(0xd4)]+=0x1):this['_messageService'][_0x4c1d8e(0x2e0)]({'type':_0x1679e9[_0x4c1d8e(0xf0)],'content':this[_0x4c1d8e(0xa4)]['t'](_0x4c1d8e(0x306))});}['_scheduleReconnection'](_0x5634fd){const _0x293138=_0x354c45;var _0x179f8a;const _0x336977=((_0x179f8a=this[_0x293138(0x102)][_0x293138(0x119)](gn))!=null?_0x179f8a:Sn)*0x2**_0x5634fd;this[_0x293138(0x1c1)][_0x293138(0x2e0)]({'type':_0x1679e9[_0x293138(0x31a)],'content':this[_0x293138(0xa4)]['t'](_0x293138(0x2db))}),this['_retryConnectingTimer']=setTimeout(()=>{const _0x51504d=_0x293138;this[_0x51504d(0x256)](),clearTimeout(this[_0x51504d(0x390)]),this['_retryConnectingTimer']=null;},_0x336977);}['_rescheduleHeartbeatEvent'](){const _0x733aa0=_0x354c45;var _0x5e770d;this[_0x733aa0(0x36c)](),this[_0x733aa0(0x396)]=setTimeout(()=>this[_0x733aa0(0x2ba)](),(_0x5e770d=this[_0x733aa0(0x102)][_0x733aa0(0x119)](mn))!=null?_0x5e770d:fn);}[_0x354c45(0x2ba)](){const _0x23bd19=_0x354c45;this[_0x23bd19(0x106)][_0x23bd19(0x3b4)]({'cmd':I['HEARTBEAT']}),this[_0x23bd19(0x3bd)]();}[_0x354c45(0x3bd)](){const _0x256860=_0x354c45;var _0x400c08;this[_0x256860(0xe0)]=setTimeout(()=>this[_0x256860(0x1f8)](),(_0x400c08=this[_0x256860(0x102)][_0x256860(0x119)](Os))!=null?_0x400c08:Ds);}[_0x354c45(0x37d)](_0x2adacc,_0x36631f){const _0x2dcde1=_0x354c45,{cmd:_0x469544}=_0x36631f;_0x469544===I[_0x2dcde1(0x1ad)]&&!this[_0x2dcde1(0x3af)]&&(_0x2adacc['memberID']=_0x36631f[_0x2dcde1(0x385)][_0x2dcde1(0xd3)],this[_0x2dcde1(0x232)][_0x2dcde1(0x2fe)](_0x2adacc),this[_0x2dcde1(0x8b)][_0x2dcde1(0x2fe)](0x3),this[_0x2dcde1(0x3af)]=!0x0),_0x469544===I[_0x2dcde1(0x1aa)]&&this[_0x2dcde1(0x113)](),this[_0x2dcde1(0x142)]();}[_0x354c45(0x36c)](){const _0x58b363=_0x354c45;this[_0x58b363(0x396)]!=null&&(clearTimeout(this[_0x58b363(0x396)]),this[_0x58b363(0x396)]=null);}[_0x354c45(0x113)](){const _0x348bb3=_0x354c45;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x348bb3(0xe0)]),this[_0x348bb3(0xe0)]=null);}};pe=As([A(0x0,_0x229f6b(_0x3b06f9)),A(0x1,_0x229f6b(_0x5e486d)),A(0x2,_0x5963f9),A(0x3,_0x4491a7),A(0x4,_0x476b70),A(0x5,Ns)],pe);var xn=Object[_0x354c45(0xa3)],Hn=Object[_0x354c45(0x3cf)],kn=(_0x89b212,_0x1161eb,_0x49c37a,_0x29df9d)=>{const _0x1167c2=_0x354c45;for(var _0x5f352b=_0x29df9d>0x1?void 0x0:_0x29df9d?Hn(_0x1161eb,_0x49c37a):_0x1161eb,_0x2bf505=_0x89b212[_0x1167c2(0x16f)]-0x1,_0x2524d4;_0x2bf505>=0x0;_0x2bf505--)(_0x2524d4=_0x89b212[_0x2bf505])&&(_0x5f352b=(_0x29df9d?_0x2524d4(_0x1161eb,_0x49c37a,_0x5f352b):_0x2524d4(_0x5f352b))||_0x5f352b);return _0x29df9d&&_0x5f352b&&xn(_0x1161eb,_0x49c37a,_0x5f352b),_0x5f352b;},Oe=(_0x12ddaf,_0x1808cb)=>(_0x206887,_0x48b135)=>_0x1808cb(_0x206887,_0x48b135,_0x12ddaf);let D=class extends _0x48941f{constructor(_0x4a5431,_0x2f08d9,_0x9e71a5,_0x9b63d9,_0x49fda0){const _0x333501=_0x354c45;super(),_(this,_0x333501(0xf4),new Map()),_(this,'_saveTaskMap',new Map()),_(this,_0x333501(0x2a7),!0x1),(this[_0x333501(0x102)]=_0x4a5431,this['_localStorageService']=_0x2f08d9,this[_0x333501(0x202)]=_0x9e71a5,this['_localeService']=_0x9b63d9,this[_0x333501(0x3be)]=_0x49fda0,this[_0x333501(0x11b)]());}[_0x354c45(0x95)](){const _0x5c420e=_0x354c45;this[_0x5c420e(0x2a7)]=!0x0;}[_0x354c45(0x2eb)](){const _0x427689=_0x354c45;this[_0x427689(0x2a7)]=!0x1;}[_0x354c45(0x220)](){const _0x26d597=_0x354c45;this[_0x26d597(0xe7)]()[_0x26d597(0xc4)](()=>super['dispose']());}async[_0x354c45(0x179)](_0x401991){const _0x37f8e4=_0x354c45;return this[_0x37f8e4(0x2a7)]?null:this['_localStorageService'][_0x37f8e4(0x35f)](es(_0x401991));}async[_0x354c45(0x334)](_0x2c296a,_0x4596f3){const _0x3663fd=_0x354c45;return!!this[_0x3663fd(0x257)][_0x3663fd(0x187)](_0x2c296a,_0x4596f3);}['updateOfflineData'](_0x310890,_0x330f2d,_0x29e710,_0x5bfa0a){const _0x78c5b5=_0x354c45,_0x1e2595=this['_revisionService'][_0x78c5b5(0x82)](_0x310890);this[_0x78c5b5(0xf4)][_0x78c5b5(0xdd)](_0x310890,{'unitID':_0x310890,'type':_0x330f2d,'awaitingChangeset':_0x29e710,'mutations':_0x5bfa0a,'rev':_0x1e2595}),this[_0x78c5b5(0xe3)][_0x78c5b5(0x340)](_0x310890)||this[_0x78c5b5(0x163)](_0x310890);}[_0x354c45(0x163)](_0x62162d){const _0x1d2374=_0x354c45,_0x79fb8a=this[_0x1d2374(0xc8)]();_0x79fb8a===0x0?this[_0x1d2374(0x132)](_0x62162d):this[_0x1d2374(0xe3)][_0x1d2374(0xdd)](_0x62162d,setTimeout(()=>this[_0x1d2374(0x132)](_0x62162d),_0x79fb8a));}[_0x354c45(0xc8)](){var _0x5428ae;return(_0x5428ae=this['_configService']['getConfig'](In))!=null?_0x5428ae:En;}[_0x354c45(0x132)](_0x7d1e05){const _0x4c276c=_0x354c45,_0x188b5d=this[_0x4c276c(0xe3)][_0x4c276c(0x309)](_0x7d1e05);return _0x188b5d!==void 0x0&&window[_0x4c276c(0x182)](_0x188b5d),this[_0x4c276c(0x257)][_0x4c276c(0x187)](es(_0x7d1e05),this['_cachedData']['get'](_0x7d1e05))[_0x4c276c(0xc4)](()=>this[_0x4c276c(0xe3)][_0x4c276c(0x33a)](_0x7d1e05));}async['exhaustSavingTask'](){const _0xd692e5=_0x354c45,_0x264a7e=[];this[_0xd692e5(0xe3)]['forEach']((_0x4339a4,_0x72ac96)=>{const _0x180e32=_0xd692e5;window['clearTimeout'](_0x4339a4),_0x264a7e[_0x180e32(0x34c)](this[_0x180e32(0x132)](_0x72ac96)[_0x180e32(0xc4)](()=>{const _0x403505=_0x180e32;this[_0x403505(0xe3)][_0x403505(0x33a)](_0x72ac96);}));}),await Promise['all'](_0x264a7e);}[_0x354c45(0x11b)](){const _0x190c00=_0x354c45;this[_0x190c00(0x1a0)](this[_0x190c00(0x202)]['registerBeforeClose'](()=>{const _0x2a46e7=_0x190c00;if(this[_0x2a46e7(0xe3)][_0x2a46e7(0x2f1)])return this[_0x2a46e7(0xa4)]['t'](_0x2a46e7(0x2e1));}));}};D=kn([Oe(0x0,_0x476b70),Oe(0x1,_0x399138),Oe(0x2,_0x24d7c6),Oe(0x3,_0x229f6b(_0x5e486d)),Oe(0x4,_0x229f6b(_0x2d6ffb))],D);function es(_0x598a4e){const _0x205075=_0x354c45;return _0x205075(0x1e8)+_0x598a4e;}const tt=_0x120263('univer-pro.collaboration-client.single-active-unit-service');var Us=(_0x14f0c9=>(_0x14f0c9[_0x14f0c9[_0x354c45(0x30f)]=0x0]=_0x354c45(0x30f),_0x14f0c9[_0x14f0c9[_0x354c45(0x255)]=0x1]=_0x354c45(0x255),_0x14f0c9))(Us||{});const ts=0x7530,ss=_0x354c45(0x2c4);class Vn extends _0x48941f{constructor(){const _0x5a9c3a=_0x354c45;super(),_(this,'_id',_0x40bd5b[_0x5a9c3a(0x38f)]()),_(this,_0x5a9c3a(0x1b2),new Set()),_(this,_0x5a9c3a(0x1be),new Map()),_(this,_0x5a9c3a(0xb4),null),_(this,'_clearOtherTimers',new Map()),_(this,_0x5a9c3a(0x308),new Map()),this[_0x5a9c3a(0x330)]();}['dispose'](){const _0x162d7c=_0x354c45;super[_0x162d7c(0x220)](),this[_0x162d7c(0x1f6)][_0x162d7c(0x18d)]((_0x329c02,_0x181c94)=>this['_removeClearOtherTimer'](_0x181c94)),this['_heartbeatTimer']&&window[_0x162d7c(0x27a)](this[_0x162d7c(0xb4)]);}[_0x354c45(0x358)](_0x4da120){const _0x38f7c3=_0x354c45;return this['_ensureSubject'](_0x4da120)[_0x38f7c3(0x1e1)](_0x2f805d());}[_0x354c45(0x174)](_0x310496){const _0x34fb21=_0x354c45;this[_0x34fb21(0x1b2)][_0x34fb21(0x2f1)]===0x0&&this['_scheduleHeartbeat'](),this[_0x34fb21(0x1b2)][_0x34fb21(0x264)](_0x310496),this[_0x34fb21(0x3cc)]({'type':0x0,'memberID':this[_0x34fb21(0x26e)],'unitIDs':[_0x310496],'isForwarded':!0x1});}[_0x354c45(0x24a)](_0xe587d5){const _0x2068ec=_0x354c45;this[_0x2068ec(0x1b2)][_0x2068ec(0x33a)](_0xe587d5),this['_selfUnitIDs'][_0x2068ec(0x2f1)]===0x0&&this[_0x2068ec(0xb4)]&&window[_0x2068ec(0x27a)](this['_heartbeatTimer']);}[_0x354c45(0x330)](){const _0x5207da=_0x354c45;this[_0x5207da(0x1a0)](_0x681995(_0x1f17b0(window,'storage')[_0x5207da(0x37e)](_0x16bef7=>{const _0xdfe98=_0x5207da;if(_0x16bef7[_0xdfe98(0x2b3)]!==ss||!_0x16bef7[_0xdfe98(0x152)])return;const _0x3bf3c1=JSON[_0xdfe98(0x156)](_0x16bef7[_0xdfe98(0x152)]);this['_handleEvent'](_0x3bf3c1);}))),window['addEventListener'](_0x5207da(0x384),()=>this[_0x5207da(0x3cc)]({'type':0x1,'memberID':this[_0x5207da(0x26e)],'unitIDs':Array[_0x5207da(0x247)](this['_selfUnitIDs'])}));}[_0x354c45(0x26f)](_0x11a01e){const _0x5b1df6=_0x354c45;switch(_0x11a01e[_0x5b1df6(0x354)]){case 0x0:this[_0x5b1df6(0x374)](_0x11a01e);break;case 0x1:this['_handleLeaveEvent'](_0x11a01e);break;case 0x2:this[_0x5b1df6(0x138)](_0x11a01e);break;}}[_0x354c45(0x374)](_0xcffa9c){const _0x525796=_0x354c45,{unitIDs:_0x5ab1e3,memberID:_0x3dfbee,isForwarded:_0x1c6af1}=_0xcffa9c;_0x5ab1e3[_0x525796(0x18d)](_0x47622f=>{const _0x29347f=_0x525796;if(!_0x1c6af1&&this[_0x29347f(0x1be)][_0x29347f(0x340)](_0x47622f)&&this[_0x29347f(0x16c)](_0x47622f)[_0x29347f(0x2fe)](0x1),!this['_unitOnClients']['has'](_0x47622f)||!this[_0x29347f(0x1be)]['get'](_0x47622f)[_0x29347f(0x340)](_0x3dfbee)){const _0x5393ba=this[_0x29347f(0x1be)]['get'](_0x47622f)||new Set();_0x5393ba[_0x29347f(0x264)](_0x3dfbee),this[_0x29347f(0x1be)][_0x29347f(0xdd)](_0x47622f,_0x5393ba),this[_0x29347f(0x2c7)](_0x3dfbee);}}),_0x1c6af1||this[_0x525796(0x3cc)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x525796(0x1b2)]],'isForwarded':!0x0});}[_0x354c45(0x2c7)](_0x2eedfa){const _0x987a09=_0x354c45;this['_removeClearOtherTimer'](_0x2eedfa);const _0x47650c=window[_0x987a09(0x3b5)](()=>{const _0x1e523d=_0x987a09;this[_0x1e523d(0x1be)][_0x1e523d(0x18d)](_0x1ea8bd=>{const _0x363329=_0x1e523d;_0x1ea8bd[_0x363329(0x33a)](_0x2eedfa);});},ts*0x2);this[_0x987a09(0x1f6)][_0x987a09(0xdd)](_0x2eedfa,_0x47650c);}[_0x354c45(0x37c)](_0x31754c){const _0x549728=_0x354c45;if(this[_0x549728(0x1f6)][_0x549728(0x340)](_0x31754c)){const _0x210fbf=this[_0x549728(0x1f6)][_0x549728(0x309)](_0x31754c);_0x210fbf&&window[_0x549728(0x182)](_0x210fbf),this[_0x549728(0x1f6)][_0x549728(0xdd)](_0x31754c,null);}}['_handleLeaveEvent'](_0x5043ad){const _0x3e35f7=_0x354c45,{memberID:_0x18bda5,unitIDs:_0x5c900c}=_0x5043ad;_0x5c900c[_0x3e35f7(0x18d)](_0x432fbf=>{const _0x23731f=_0x3e35f7;var _0x4fb250;const _0x500c14=this[_0x23731f(0x1be)][_0x23731f(0x309)](_0x432fbf);_0x500c14&&(_0x500c14[_0x23731f(0x33a)](_0x18bda5),(_0x4fb250=this[_0x23731f(0x16c)](_0x432fbf))==null||_0x4fb250[_0x23731f(0x2fe)](_0x500c14[_0x23731f(0x2f1)]===0x0?0x0:0x1));}),this[_0x3e35f7(0x37c)](_0x18bda5);}['_handleHeartbeatEvent'](_0x110925){const _0x2839b6=_0x354c45;this[_0x2839b6(0x2c7)](_0x110925[_0x2839b6(0xd3)]);}[_0x354c45(0x3cc)](_0x130ad0){const _0x43cb05=_0x354c45;localStorage[_0x43cb05(0x187)](ss,JSON[_0x43cb05(0x303)](_0x130ad0));}[_0x354c45(0x379)](){const _0x502cee=_0x354c45;this[_0x502cee(0xb4)]=window[_0x502cee(0x151)](()=>{const _0x3d1938=_0x502cee;this['_send']({'type':0x2,'memberID':this[_0x3d1938(0x26e)]});},ts);}['_ensureSubject'](_0x5d21e4){const _0x5d7a55=_0x354c45;return this[_0x5d7a55(0x308)][_0x5d7a55(0x340)](_0x5d21e4)||this['_unitStatus'][_0x5d7a55(0xdd)](_0x5d21e4,new _0x421821(0x0)),this[_0x5d7a55(0x308)][_0x5d7a55(0x309)](_0x5d21e4);}}var Bn=Object[_0x354c45(0xa3)],Fn=Object[_0x354c45(0x3cf)],Wn=(_0x1437e7,_0x52b426,_0xe8e748,_0x86c7c5)=>{const _0x2e90af=_0x354c45;for(var _0x122c78=_0x86c7c5>0x1?void 0x0:_0x86c7c5?Fn(_0x52b426,_0xe8e748):_0x52b426,_0x5750c9=_0x1437e7[_0x2e90af(0x16f)]-0x1,_0x6bc8a3;_0x5750c9>=0x0;_0x5750c9--)(_0x6bc8a3=_0x1437e7[_0x5750c9])&&(_0x122c78=(_0x86c7c5?_0x6bc8a3(_0x52b426,_0xe8e748,_0x122c78):_0x6bc8a3(_0x122c78))||_0x122c78);return _0x86c7c5&&_0x122c78&&Bn(_0x52b426,_0xe8e748,_0x122c78),_0x122c78;},is=(_0x3f17ce,_0x1a2383)=>(_0x42d1eb,_0x89eb69)=>_0x1a2383(_0x42d1eb,_0x89eb69,_0x3f17ce);let Je=class{constructor(_0x23776c,_0x964bab){const _0x606400=_0x354c45;this[_0x606400(0x259)]=_0x23776c,this[_0x606400(0x351)]=_0x964bab;}[_0x354c45(0x2f5)](_0x399035){const _0x5be5fd=_0x354c45;this[_0x5be5fd(0x2ec)](_0x399035),this[_0x5be5fd(0x317)](_0x399035);}[_0x354c45(0x1df)](_0x509acc){const _0x1152d3=_0x354c45,_0x1b2c81=this[_0x1152d3(0x259)][_0x1152d3(0x309)](_0x39911f),{redoCache:_0x438b3f}=_0x1b2c81[_0x1152d3(0x2fd)]();if(_0x438b3f['length']===0x0)return _0x509acc;let _0x19c85f=_0x40bd5b[_0x1152d3(0x37a)](_0x509acc['mutations'][0x0]);for(let _0x5166ca=0x0;_0x5166ca<_0x438b3f['length'];_0x5166ca++){const _0x4128da={'id':'doc.mutation.rich-text-editing','params':{..._0x438b3f[_0x5166ca]}},_0x497570=this[_0x1152d3(0x351)][_0x1152d3(0x148)](_0x19c85f,_0x4128da,!0x1);if(_0x5e29e1(_0x497570))throw _0x497570[_0x1152d3(0x35c)];_0x19c85f=_0x497570[_0x1152d3(0x140)];}return{..._0x40bd5b[_0x1152d3(0x37a)](_0x509acc),'mutations':[_0x19c85f]};}[_0x354c45(0x2ec)](_0x1d5065){const _0x1b80c5=_0x354c45,_0x5110d4=this['_injector'][_0x1b80c5(0x309)](_0x39911f),{undoCache:_0x2bfef9,redoCache:_0x1da61d}=_0x5110d4[_0x1b80c5(0x2fd)]();if(_0x2bfef9[_0x1b80c5(0x16f)]===0x0||_0x1da61d[_0x1b80c5(0x16f)]===0x0)return;const _0x55095d=[],_0x42b379=[];let _0x5ca0f8=_0x40bd5b[_0x1b80c5(0x37a)](_0x1d5065[_0x1b80c5(0x11e)][0x0]),_0x5a0572=_0x40bd5b[_0x1b80c5(0x37a)](_0x1d5065[_0x1b80c5(0x11e)][0x0]);for(let _0x3468ac=_0x2bfef9[_0x1b80c5(0x16f)]-0x1;_0x3468ac>=0x0;_0x3468ac--){const _0x319213={'id':_0x1b80c5(0x21d),'params':{..._0x2bfef9[_0x3468ac]}},_0x2ed53e={'id':_0x1b80c5(0x21d),'params':{..._0x1da61d[_0x3468ac]}},_0x33bf5d=this[_0x1b80c5(0x351)]['transformMutation'](_0x5ca0f8,_0x319213,!0x1),_0x289300=this[_0x1b80c5(0x351)][_0x1b80c5(0x148)](_0x5a0572,_0x2ed53e,!0x1);if(_0x5e29e1(_0x33bf5d))throw _0x33bf5d[_0x1b80c5(0x35c)];if(_0x5e29e1(_0x289300))throw _0x289300[_0x1b80c5(0x35c)];_0x55095d['unshift'](_0x33bf5d['m2Prime'][_0x1b80c5(0x29e)]),_0x42b379[_0x1b80c5(0x325)](_0x289300[_0x1b80c5(0x31e)][_0x1b80c5(0x29e)]),_0x5ca0f8=_0x33bf5d['m1Prime'],_0x5a0572=_0x289300['m1Prime'];}_0x5110d4[_0x1b80c5(0x10a)]({'undoCache':_0x55095d,'redoCache':_0x42b379});}['_transformPreviousActiveRange'](_0x25d2fe){const _0x4d6463=_0x354c45,_0x93badc=this[_0x4d6463(0x259)][_0x4d6463(0x309)](_0x39911f),_0x1f68e8=_0x93badc[_0x4d6463(0x34a)]();if(_0x1f68e8==null)return;const _0x2e049f=[{'id':_0x4d6463(0x21d),'params':{'unitId':_0x25d2fe[_0x4d6463(0x22b)],'actions':null,'textRanges':[_0x1f68e8]}}],_0x28d2f5=this['_transformService'][_0x4d6463(0x109)](_0x25d2fe,_0x2e049f);if(!_0x14b4f5(_0x28d2f5))throw _0x28d2f5[_0x4d6463(0x35c)];const _0xa9a088=_0x28d2f5[_0x4d6463(0x31e)][0x0][_0x4d6463(0x29e)][_0x4d6463(0x17d)];Array[_0x4d6463(0x11f)](_0xa9a088)&&_0xa9a088[_0x4d6463(0x16f)]&&_0x93badc[_0x4d6463(0x2df)](_0xa9a088[0x0]);}};Je=Wn([is(0x0,_0x229f6b(_0x3b06f9)),is(0x1,_0x5c9e6a)],Je);var Gn=Object[_0x354c45(0xa3)],Yn=Object[_0x354c45(0x3cf)],Kn=(_0x37994a,_0x3aca18,_0x551a0b,_0x1daad8)=>{const _0x45eaf7=_0x354c45;for(var _0x229257=_0x1daad8>0x1?void 0x0:_0x1daad8?Yn(_0x3aca18,_0x551a0b):_0x3aca18,_0x539359=_0x37994a[_0x45eaf7(0x16f)]-0x1,_0x3cbd01;_0x539359>=0x0;_0x539359--)(_0x3cbd01=_0x37994a[_0x539359])&&(_0x229257=(_0x1daad8?_0x3cbd01(_0x3aca18,_0x551a0b,_0x229257):_0x3cbd01(_0x229257))||_0x229257);return _0x1daad8&&_0x229257&&Gn(_0x3aca18,_0x551a0b,_0x229257),_0x229257;},ns=(_0x1d11e3,_0x48db86)=>(_0x26ae49,_0x3a277a)=>_0x48db86(_0x26ae49,_0x3a277a,_0x1d11e3);let ze=class{constructor(_0xea6d27,_0x4e5403){const _0x236bb2=_0x354c45;this[_0x236bb2(0x259)]=_0xea6d27,this[_0x236bb2(0x351)]=_0x4e5403;}[_0x354c45(0x3b1)](_0x4161eb){const _0x509614=_0x354c45;var _0x54773e;const _0x581675=this[_0x509614(0x259)][_0x509614(0x309)](_0x559154),_0x153c64=(_0x54773e=_0x581675[_0x509614(0x1bf)]())!=null?_0x54773e:[],_0x48609b=_0x153c64==null?void 0x0:_0x153c64[_0x509614(0x39f)](_0x1b1aa9);if(_0x48609b[_0x509614(0x16f)]===0x0)return;const _0x527d9e=[{'id':_0x509614(0x21d),'params':{'unitId':_0x4161eb['unitID'],'actions':null,'textRanges':_0x48609b}}],_0x25e4f5=this[_0x509614(0x351)][_0x509614(0x109)](_0x4161eb,_0x527d9e);if(!_0x14b4f5(_0x25e4f5))throw _0x25e4f5[_0x509614(0x35c)];const _0x85d343=_0x25e4f5[_0x509614(0x31e)][0x0]['params'][_0x509614(0x17d)];Array[_0x509614(0x11f)](_0x85d343)&&_0x85d343[_0x509614(0x16f)]&&_0x581675[_0x509614(0x193)](_0x85d343,!0x1);}};ze=Kn([ns(0x0,_0x229f6b(_0x3b06f9)),ns(0x1,_0x5c9e6a)],ze);function ys(_0x5d70db){let _0x34410c='';for(const _0x1765c4 of _0x5d70db){const {startOffset:_0x4704f2,endOffset:_0x3ae258,isActive:_0x20b10e}=_0x1765c4;_0x34410c['length']&&(_0x34410c+=','),_0x34410c+=_0x4704f2+':'+_0x3ae258+':'+(_0x20b10e?'1':'0');}return _0x34410c;}function Xn(_0x4b01c9){const _0x29c62f=_0x354c45,_0xfbb062=_0x4b01c9[_0x29c62f(0x3ad)](','),_0x2601de=[];for(const _0x5d0339 of _0xfbb062){const [_0x34dfe1,_0x2a75b8,_0x12448]=_0x5d0339[_0x29c62f(0x3ad)](':');_0x2601de[_0x29c62f(0x34c)]({'startOffset':Number(_0x34dfe1),'endOffset':Number(_0x2a75b8),'collapsed':_0x34dfe1===_0x2a75b8,'isActive':_0x12448==='1'});}return _0x2601de[_0x29c62f(0x15c)](_0x3e227e=>_0x3e227e[_0x29c62f(0x8d)])||(_0x2601de[0x0]['isActive']=!0x0),_0x2601de;}class xt extends _0x5aeadb{constructor(){const _0x315ffb=_0x354c45;super(...arguments),_(this,'_collabCursorState$',new _0x421821(null)),_(this,_0x315ffb(0x17b),this[_0x315ffb(0x34b)][_0x315ffb(0x209)]());}[_0x354c45(0x228)](_0x40c4da){const _0x43adb9=_0x354c45,{unitID:_0x3c5a87,memberID:_0x416038,textRanges:_0x325f58}=_0x40c4da,_0x3aea65=ys(_0x325f58),_0x4b6bdc={'unitID':_0x3c5a87,'memberID':_0x416038,'selection':_0x3aea65};this[_0x43adb9(0x34b)][_0x43adb9(0x2fe)](_0x4b6bdc);}}var Jn=Object['defineProperty'],zn=Object[_0x354c45(0x3cf)],qn=(_0x37e8bb,_0x3bce47,_0x59dc23,_0x4ba18a)=>{const _0x2bd451=_0x354c45;for(var _0x5681b8=_0x4ba18a>0x1?void 0x0:_0x4ba18a?zn(_0x3bce47,_0x59dc23):_0x3bce47,_0x9d8dc5=_0x37e8bb[_0x2bd451(0x16f)]-0x1,_0x54015c;_0x9d8dc5>=0x0;_0x9d8dc5--)(_0x54015c=_0x37e8bb[_0x9d8dc5])&&(_0x5681b8=(_0x4ba18a?_0x54015c(_0x3bce47,_0x59dc23,_0x5681b8):_0x54015c(_0x5681b8))||_0x5681b8);return _0x4ba18a&&_0x5681b8&&Jn(_0x3bce47,_0x59dc23,_0x5681b8),_0x5681b8;},rs=(_0x3dfc0e,_0xb2f6f0)=>(_0x1888b3,_0x4029f7)=>_0xb2f6f0(_0x1888b3,_0x4029f7,_0x3dfc0e);function Zn(_0x101a5e){const _0x2b8ca3=_0x354c45,{unitID:_0x567327,mutations:_0x19ccd6}=_0x101a5e;return{'unitId':_0x567327,'subUnitId':_0x19ccd6[0x0][_0x2b8ca3(0x29e)][_0x2b8ca3(0x1e9)]};}function _0x3791(){const _0x58c73e=['_refRangeService','_acknowledgedAwaitingChangeset','AWAITING','row','/universer-api/authz','_replayCachedMutations','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_toggleOnline','updateMember','ws://127.0.0.1:8000/universer-api/comb/connect','socketService','eventID','_remoteChangesetQueue','setShapeProps','onTransformChange$','_getMergeRange','image/png','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','selections','session.will-retry','InsertRangeMoveDownCommandId','off-line-single_clip0_910_343','RemoveColCommandId','setActiveRange','show','collaboration-client.offline-data-not-saved','updateCursorEvent','_createSocket','COMPRESS_MUTATION_APPLY','_transformStack','status$','_redoStacks','_hovered','isEditing','measureText','enableLocalCache','_transformUndoRedoStack','_updateState','_color','executeCommand','_entities','size','max','/unit/','createElement','transformIMECache','getMemberID','editing\x20status\x20changed\x20to','contains','DEFAULT_FILE_NAME','_session','searchParams','unitId\x20is\x20not\x20found','getUndoRedoMutationParamsCache','next','triggerDblclick','[CollaborationState]:\x20apply\x20error!','_executeRemoteChangeset','_initStatusListener','stringify','_getAnchorBounding','_initMergeInterceptor','session.connection-failed','startColumn','_unitStatus','get','_initStatusComponent','verdancy600','_themeService','setParam','UNIVER_DOC','NO_OTHER_CLIENTS_EDITING','objectType','registerRefRange','evenodd','transformChangesets','awaitingChangeset','permission.content','socket\x20open.','_transformPreviousActiveRange','failed\x20to\x20apply\x20missed\x20changesets!','originalMeta','Warning','_fetchMissChangesets','UNIVER_SHEET','createInstance','m2Prime','[OfflineState]:\x20received\x20changeset.','socket\x20close','_context','/universer-api/oidc/authpage','interceptor','moveTo','unshift','getCellPositionByOffset','width','[CollaborationEntity]','_transformUndoredo','path','OnLineSingle','catch','APPLY_REVISION_CONFILICT','cursorInfo','_onFetchMissResult','_init','/allowed','sheetID','?url=','saveOfflineData','_lockTransition','every','conflict.content','_sessions','awaiting_with_pending','delete','listCollaborators','baseRev','close$','YUUMI_URL_COL_OUT_OF_RANGE','black','has','onlineStatus','current','_drawTextRange','_setupSubUnitSync','revision','synced','font','_createHandler','fillText','getActiveRange','_collabCursorState$','push','closePath','getOffsetConfig','collabStatus.conflict','fill','_transformService','LEAVE','_type','type','/universer-api/snapshot/','_clearCollaborationTimeoutTimer','popstate','getUnitStatus$','HttpExport','UNRECOGNIZED','_entityInit$','error','onlineStatusIcon','_transformRemoteChangesetByIMECache','getItem','INGEST','create','changesets','CHANGESET_ACK','OffLineSingle','_hover','onTransformRemoteChangesetByIMECache','clipPath','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_anchor','result','SNAPSHOT_URL_KEY','_clearHeartbeatTimer','deleteCollaborator','LICENSE_EXPORT_SIZE_EXCEEDED','rgba(255,\x20255,\x20255,\x200.01)','univer-online-status-title','createCollaborator','onCommandExecuted','_updateURLWithCurrentState','_handleJoinEvent','hovered','getAncestorScale','_getAPIPrefix','[CollaborationSessionService]','_scheduleHeartbeat','deepClone','[CollaborationUndoRedoService]','_removeClearOtherTimer','_onMessage','subscribe','IDLE','collabStatus.fetchMiss','EXCHANGE_SIGN_URL_SERVER_URL_KEY','getTime','_state$','unload','data','getOwnPropertySymbols','_cursorInfo$','_roomMembers','getResourcesRequest','UUID','CHANGESET_REJ','name','getTypeOfUnitDisposed$','LOGIN_URL_KEY','generateRandomId','_retryConnectingTimer','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','uni.network.url-service','unitId','SUCCUSS','state$','_sendHeartbeatTimer','_getCtorByUniverType','HEARTBEAT_TIMEOUT','engine','getMember','_memberService','pushState','beginPath','responseType','map','registerHTTPInterceptor','UnitSnapshot','_draw','[DataLoaderController]','getCurrentUnitForType','\x20-\x20','clear','getUnitId','includes','method','_clearRedo','/block/','_drawRectRange','split','_collaborationSessionService','_socketReady','_startCollaboration','transformSelections','[PendingState]:\x20received\x20acknowledgement.','_roomMembers$','send','setTimeout','_initModules','_onUserJoin','ALREADY_EXISTS','_socketService','...','177375ZmxeMY','getMergeData','_waitForHeartbeatResponse','_revisionService','UNIVER_SLIDE','OFFLINE','#fff','purple300','session','Univer','on-line-single','#FFF','NOT_COLLAB','objectID','_docSyncEditingCollabCursorService','collabStatus.offline','location','_send','_ws','ERROR_IMAGE','getOwnPropertyDescriptor','color','url','[PendingState]:\x20received\x20rejection.','find','roomMembers$','SUBMIT_CHANGESET','sessionStatus$','close','code','_joinRoom','getUnitOnRev','_commentUpdate$','setCurrentUser','getCurrentRevForDocument','_scheduleReconnection','url(#on-line-single_clip0_910_349)','UNKNOWN_CMD','APPLY_REJECT','DeleteRangeMoveLeftCommandId','_getUploadFileURL','fetchMissingChangesets','offline','_status$','collaboratorID','isActive','BASE64','cursorInfo$','_anchorDot','_HTTPService','_removeCollabCursors','getRelativeToViewportCoord','&assign=','disableLocalCache','_toggleOffline','online','NOT_FOUND','transformUndoRedo','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','UNIVER_UNKNOWN','_userManagerService','_replaceFileID','assignAColorForMemberID','string','liveShareNewHost','_getLoginPath','_createInitialState','defineProperty','_localeService','_render','sessionStatus','currentTheme$','PSEUDO_FETCH_MISSING_RESULT','urlChange$','auth.needGotoLoginAlert','resend','CONFLICT','href','4WLfpss','members','save\x20fail\x20reason\x20is\x20','FAIL','min','_cursor','_heartbeatTimer','reverse','getCurrent','drawWith','onlyLocal','_unlockTransition','isPermissionRej','InsertRangeMoveRightCommandId','endRow','7619949AUXzHa','Starting','1em','substring','univer-online-status','[CollaborationSession]','_checkMissing','then','_registerRenderDependencies','values','_scheduleTimestamp','_getSaveTimeout','_getScale','entries','addObject','getTypeOfUnitAdded$','trim','[OfflineState]:\x20received\x20acknowledgement.','className','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','listRoles','csRejEvent','memberID','_retryCount','newCsEvent','body','title','YUUMI_SUBSCRIPTION_NOT_FOUND','bottom','_substituteRedoStack','rev','setWaitCount','set','collab-rect-range-','fetch_missing','_timeoutTimer','_transformSelections','_startDocCollabCursor','_saveTaskMap','getValue','subscribeEvent','colorChannel1','exhaustSavingTask','url(#$1','activeSheet$','red300','/object','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','submit\x20changeset\x20error!','_lastPointer','RECV','Error','_onUserLeave','_onRecvEvent','_scene','_cachedData','extend','arc','defs','USERS_ENTER','getParam','_onCursorDelete','_updateCollabCursors','userID','save','collabStatus.synced','list','11371392yMpAWT','restore','_configService','append','INTERNAL_ERROR','_docTransformSelectionsService','_socket','svg','LIVESHARE_OPERATION','transformMutationsWithChangeset','setUndoRedoMutationParamsCache','toString','_onLocalMutation','fromCollab','ONLINE','_logService','routeKey','_isPermissionRej','lineTo','_clearTimeoutTimer','FETCH_MISSING','\x0aAfter:\x20','SNAPSHOT_SERVER_URL_KEY','_undoStacks','/resources','getConfig','_updateLocalCache','_setupBeforeClosingHandler','[SyncedState]:\x20received\x20acknowledgement.','_removeRoom','mutations','isArray','prototype','endColumn','_colorAssignService','collabStatus.syncing','pending','_decreaseWaiting','encodeURIComponent','batchAllowed','_drawAnchor','_disableEditing','_members','getRangePointData','gold400','conflict','_onCombEvent','updateCollaborator','PERMISSION_DENIED','LIVESHARE_NEW_HOST','_saveCache','_showConflictNotification','_univerInstanceService','_syncEditingCollabCursorService','LICENSE_DISTRO_REJECTED','_httpService','_handleHeartbeatEvent','_onConflict','roles','getSheetId','whenReady','LIVESHARE_FETCH_OPERATIONS','incrementRevForDocument','SHOULD_CLOSE_CONN','m1Prime','COMPLETION_FINISHED','_rescheduleHeartbeatEvent','_awaitingChangeset','subunit','onTransformIME','unknown','FromArray','transformMutation','_clearUndo','saveImage','_updateLocalCursor','/universer-api/snapshot','_online','_exhaustRemoteChangesetQueue','PERMISSION_REJ','div','setInterval','newValue','updateOfflineData','symbol','_permissionService','parse','xlink:href','collabStatus.notCollab','_transitionLocked','registerOnClose','UNIVER_PROJECT','some','getImage','target','Ready','loadSheet','FileId','_incrementRevisionNumber','_scheduleSaving','roomMembers','getCollabEntity','_loadSheet','UNKNOWN_CODE','_snapshotService','_loadDoc','_queuedRemoteChangesets','univer-online','_ensureSubject','collaboration.single-unit.warning','POST','length','getUnitType','toRgbString','_notificationService','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','editingUnit','\x20to\x20','getSheetBySheetId','onSendChangeset','onRemoteRej','loadOfflineData','reduce','collabCursorState$','_sheetTransformSelectionsService','textRanges','_getRedoStack','_onRefRangeChange','USERS_LEAVE','indexOf','clearTimeout','_onRemoteACK','_collabSessionService','status','CONNECTOR_DATA_TOO_LARGE','setItem','removeMember','defIds','_updateStatus','onMouseMove','2TWUSog','forEach','open$','tag','_collaborationPaused','reject','liveShareOperation','replaceTextRanges','roomInfos','url(#off-line-single_clip0_910_343)','_docStateChangeManagerService','_renderManagerService','hasOwnProperty','actions','/-/object/list','NEW_CHANGESETS','_http','_undoRedoService','c2Prime','_commandService','disposeWithMe','dispose$','toggleOnline','session.collaboration-timeout','LIVESHARE_TERMINATE','getActiveSheet','permission.title','getWorkbookSelections','apply','UNDEFINED','HEARTBEAT','[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.','SEND_CHANGESET_TIMEOUT','HELLO','_labelPosition','/universer-api/stream/file/upload','_getUndoStack','call','_selfUnitIDs','selection','enableOfflineEditing','override','UNIVER_COLLABORATION_CLIENT_PLUGIN','appendMutation','_range','JOINING','onRemoteChangeset','_compressMutationService','_cursors','onMissedChangesetFetched','_unitOnClients','getDocRanges','Undefined','_messageService','image/jpeg','_socketMessageSubscription','_unitID','_shapes','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_handler','children','UNAUTHENTICATED','hide','round','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','debug','init','_onCursorUpdate','_getSnapshotAPIPrefix','resize','SYNCED','RETRY_CONNECTING_INTERVAL','file','_sheetSkeletonManagerService','flatMap','skeleton','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','patch','SNAPSHOT_HAS_BEEN_REMOVED','/-/object/-/batch_allowed','7788265uHzQOP','[UniverCollaborationClientPlugin]','none','transformRemoteChangeset','labelPosition','pipe','use','_textBubble','session.room-full','/collaborator','&to=','_waitCount','unit-cache-','subUnitId','objectActions','createSocket','complete','_refreshCollabCursors','transformByState','MoveRangeCommandId','\x0aCurrent:\x20','_uiPartsService','random','MSG_FOR_ERROR','on-line-single_clip0_910_349','enableAuthServer','_clearOtherTimers','change$','_onConnectionFailed','COMPRESS_MUTATION_SEND','_config','_applyRemoteChangeset','_event$','shouldCloseConn','[CollaborationSessionService]:\x20socket\x20error','_collabCursorController','setAlpha','addObjects','_beforeCloseService','_assignedColors','registerRenderModule','_substituteUndoStack','headers','onRemoteAck','COLLAB_WEB_SOCKET_URL','asObservable','transformStack\x20failed!','_cursorShapes','range','_imageSourceCache','_backgroundColor','onMissingChangesets','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','JOIN','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','/fetchmissing?from=','M0\x200H16V16H0z','RemoveRowCommandId','column','initWorkbookPermissionChange','SNAPSHOT_INVALID_SNAPSHOT','message$','confirm','connection\x20error','_createInitialStateImpl','doc.mutation.rich-text-editing','ranges','translate(.97)','dispose','_onRemoteRejected','UniverIcon','focused$','_docSkeletonManagerService','idSuffix','concat','replace','syncEditingCollabCursor','[FetchMissState]','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','unitID','blue400','_getCurrentRevision','_commentService','0\x200\x2016\x2016','_onConnectionOpen','MUTATION','_socket$','getViewport','_collaborationController','c1Prime','snapshot','_initCloseConn','_getAPIPrefixPath','getCurrentSelections','collab-text-anchor-','image/gif','_change$','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_singleActiveUnitService','74328qilChW','getCollabCursors$','onPointerLeave$','compose','_pendingMutations','onCommentUpdate','unit','univer-offline','from','getFocusedUnit','infoRsp','disposeUnit','currentColor','PENDING','top','_initCommandExecutedListener','LICENSE_IMPORT_SIZE_EXCEEDED','saveSheetBlock','UPDATE_CURSOR','getImageSourceCache','src','HEARTBEAT_INTERVAL','OTHER_CLIENTS_EDITING','_tryEnsureSocket','_localStorageService','requireSession','_injector','updatePermissionPoint','_colorIndex','onPointerEnter$','Unknown\x20user','filter','getCollabEntity$','action','image/jpg','AWAITING_WITH_PENDING','_getSignURL','add','sheets','sheetId','InsertColCommandId','onPointerMove$','[OfflineState]:\x20received\x20rejection.','resourceIDs','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','getSkeleton','_id','_handleEvent','_scheduleCollaborationTimeoutTimer','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','awaiting','joinEvent','_schedule','_syncEditingCollabCursor','post','addImageSourceCache','_docTransformIMECacheService','icon','clearInterval','Error\x20on\x20receiving\x20event','fetching\x20missing\x20changesets\x20from\x20','TOO_MANY_REQUESTS','fillStyle','getInterceptPoints','COMMENT_UPDATE','_eventUnsubscribe','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','saveSnapshot','HEADER_MENU','_collaborationTimeoutTimer','displayName','fetchThroughInterceptors','onRendered','encode','CHANGESET_REVISION_CONFILICT','_transformIMECache','UnitEmbedded','_getSendChangesetTimeout','LOCAL_CACHE_INTERVAL','_clearScheduledTask','32548VzrjCz','localeService','toggleOffline','UPDATE_PERMISSION_OBJ','21xGOzLf','removeParam','text','_initUnitPermissionChange','put','height','off-line-single','_localCacheService','APPLY_NON_SEQUENTIAL_REVISION','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','params','APPLY_PERMISSION_DENIED','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','553251bSmCbT','_sendingTimer','onStateChange','getSheetBlock','INVALID_ARGUMENT','/object/','_disabled','YUUMI_RATE_OVER_LIMIT','FETCH_MISS','cmd','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_sessionStatus$','onTransformSelections','unsubscribe','getCurrentUser','state','_urlService','attrs','key','1790kqWhWJ','_state','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_handleHover','univerjs-icon\x20univerjs-icon-','_clearLocalCache','_sendHeartbeat','_updateSubUnitFromURLParams','fillRule','leaveEvent','{fileID}','history','image/bmp','onStarting','_name','replaceState','ACTIVE_UNIT_EVENT_CHANNEL','event$','RETRY_CONNECTING_MAX_COUNT','_scheduleClearOtherTimer'];_0x3791=function(){return _0x58c73e;};return _0x3791();}let qe=class{constructor(_0x43ca52,_0x10a8c5){const _0x2324db=_0x354c45;this['_injector']=_0x43ca52,this[_0x2324db(0x351)]=_0x10a8c5;}[_0x354c45(0x3b1)](_0x34ec4b){const _0x31b006=_0x354c45;var _0x4fd1a2,_0x4b31b,_0x5ebd40;const _0x5a31c6=this[_0x31b006(0x259)][_0x31b006(0x309)](_0x22886c),{unitId:_0x269f04,subUnitId:_0x5377c6}=Zn(_0x34ec4b),_0x1bc926=_0x5a31c6[_0x31b006(0x1a7)](_0x269f04)[_0x31b006(0x239)]();if(_0x1bc926[_0x31b006(0x16f)]===0x0||!_0x269f04||!_0x5377c6)return;const _0x51aff4=[{'id':_0x1271d4['id'],'params':{'unitId':_0x269f04,'subUnitId':_0x5377c6,'selections':_0x40bd5b[_0x31b006(0x37a)](_0x1bc926)}}],_0x2c64c6=this[_0x31b006(0x351)][_0x31b006(0x109)](_0x34ec4b,_0x51aff4);if(!_0x14b4f5(_0x2c64c6))throw _0x2c64c6[_0x31b006(0x35c)];const _0x12bbc0=(_0x5ebd40=(_0x4b31b=(_0x4fd1a2=_0x2c64c6[_0x31b006(0x31e)][0x0])==null?void 0x0:_0x4fd1a2['params'])==null?void 0x0:_0x4b31b[_0x31b006(0x2da)])!=null?_0x5ebd40:_0x1bc926;Array['isArray'](_0x12bbc0)&&_0x12bbc0[_0x31b006(0x16f)]&&this['_injector']['get'](_0x151749)[_0x31b006(0x2ef)](_0x1271d4['id'],{'unitId':_0x269f04,'subUnitId':_0x5377c6,'selections':_0x12bbc0});}};qe=qn([rs(0x0,_0x229f6b(_0x3b06f9)),rs(0x1,_0x5c9e6a)],qe);const Qn=new Set([_0x11e296['id']]);function os(_0x3acd23,_0x4e21db,_0x38569b,_0x3f58b5,_0x33c368){const _0x251676=_0x354c45;var _0x3973dc,_0x39d0bd,_0x9edfb7,_0x4d0692;const _0x542021=[];for(const _0x20a403 of _0x3acd23)if(Qn[_0x251676(0x340)](_0x20a403['id'])){if(_0x542021[_0x251676(0x16f)]>0x0)break;_0x542021[_0x251676(0x34c)](_0x20a403);break;}else _0x542021['push'](_0x20a403);const _0x5adbd8=(_0x39d0bd=(_0x3973dc=_0x33c368['getCurrentUser']())==null?void 0x0:_0x3973dc[_0x251676(0xfc)])!=null?_0x39d0bd:_0x251676(0x146),_0x59e178=(_0x4d0692=(_0x9edfb7=_0x33c368[_0x251676(0x2af)]())==null?void 0x0:_0x9edfb7[_0x251676(0xd3)])!=null?_0x4d0692:_0x251676(0x146);return{'changeset':{'unitID':_0x4e21db,'type':_0x1e11c0(_0x38569b[_0x251676(0x170)](_0x4e21db)),'baseRev':_0x3f58b5[_0x251676(0x82)](_0x4e21db),'revision':0x0,'userID':_0x5adbd8,'memberID':_0x59e178,'mutations':_0x542021},'pendingMutations':_0x3acd23['slice'](_0x542021['length'])};}function er(_0x4d54d0,_0x3914ea,_0x3e072d,_0x3cdfd1,_0x3bf111){const _0x23a567=_0x354c45;var _0x4bf224,_0x18efee,_0xbbc0e9,_0x59b7ed;const _0x2ab854=[_0x4d54d0['reduce']((_0x5bea02,_0x307c8d)=>{const _0x118fb9=_0x5b0c;var _0xebf2d5;const {id:_0x43e75e}=_0x5bea02,{id:_0x27b6aa,type:_0x5de519}=_0x307c8d,_0x50ca2c=(_0xebf2d5=_0x5bea02[_0x118fb9(0x29e)])!=null?_0xebf2d5:{'actions':null},_0x347713=_0x307c8d[_0x118fb9(0x29e)];if(_0x43e75e&&_0x43e75e!==_0x27b6aa)throw new Error(_0x118fb9(0x2a0)+_0x43e75e+_0x118fb9(0x3a5)+_0x27b6aa+'.');return{..._0x5bea02,'id':_0x27b6aa,'type':_0x5de519,'params':{'unitId':_0x347713[_0x118fb9(0x393)],'textRanges':_0x347713[_0x118fb9(0x17d)],'actions':_0x2f52af[_0x118fb9(0x242)](_0x50ca2c[_0x118fb9(0x199)],_0x347713['actions'])}};},{})],_0x294854=(_0x18efee=(_0x4bf224=_0x3bf111[_0x23a567(0x2af)]())==null?void 0x0:_0x4bf224[_0x23a567(0xfc)])!=null?_0x18efee:_0x23a567(0x146),_0x1c3413=(_0x59b7ed=(_0xbbc0e9=_0x3bf111[_0x23a567(0x2af)]())==null?void 0x0:_0xbbc0e9[_0x23a567(0xd3)])!=null?_0x59b7ed:_0x23a567(0x146);return{'changeset':{'unitID':_0x3914ea,'type':_0x1e11c0(_0x3e072d['getUnitType'](_0x3914ea)),'baseRev':_0x3cdfd1[_0x23a567(0x82)](_0x3914ea),'revision':0x0,'userID':_0x294854,'memberID':_0x1c3413,'mutations':_0x2ab854},'pendingMutations':[]};}const tr={'id':_0x53c0be['id'],'type':_0x3b75d4['MUTATION'],'params':{}};var sr=Object[_0x354c45(0xa3)],ir=Object[_0x354c45(0x3cf)],ce=(_0x25d71d,_0x45c277,_0x1762f9,_0x533b)=>{const _0x2a6b9d=_0x354c45;for(var _0x143c68=_0x533b>0x1?void 0x0:_0x533b?ir(_0x45c277,_0x1762f9):_0x45c277,_0x5719f6=_0x25d71d[_0x2a6b9d(0x16f)]-0x1,_0x5cb49b;_0x5719f6>=0x0;_0x5719f6--)(_0x5cb49b=_0x25d71d[_0x5719f6])&&(_0x143c68=(_0x533b?_0x5cb49b(_0x45c277,_0x1762f9,_0x143c68):_0x5cb49b(_0x143c68))||_0x143c68);return _0x533b&&_0x143c68&&sr(_0x45c277,_0x1762f9,_0x143c68),_0x143c68;},f=(_0x528830,_0x42462a)=>(_0x1fb431,_0x1b16ee)=>_0x42462a(_0x1fb431,_0x1b16ee,_0x528830),P=(_0xd26547=>(_0xd26547[_0x354c45(0x3c7)]='not_collab',_0xd26547['SYNCED']=_0x354c45(0x346),_0xd26547['PENDING']='pending',_0xd26547[_0x354c45(0x2ca)]=_0x354c45(0x272),_0xd26547[_0x354c45(0x262)]=_0x354c45(0x339),_0xd26547[_0x354c45(0x2a9)]='fetch_missing',_0xd26547[_0x354c45(0xac)]=_0x354c45(0x12d),_0xd26547['OFFLINE']='offline',_0xd26547))(P||{});class he{constructor(_0x38ef32,_0x4fb778,_0x27b77c,_0x4d74b1,_0x1e98f6,_0x27d4e4,_0x1305ab,_0xaab271,_0x485683){const _0x16d071=_0x354c45;_(this,_0x16d071(0x143),null),_(this,_0x16d071(0x243),[]),(this[_0x16d071(0x22b)]=_0x38ef32,this[_0x16d071(0x354)]=_0x4fb778,this[_0x16d071(0x1c7)]=_0x1e98f6,this[_0x16d071(0x19f)]=_0x27d4e4,this[_0x16d071(0x19d)]=_0x1305ab,this['_revisionService']=_0xaab271,this[_0x16d071(0x29b)]=_0x485683,this[_0x16d071(0x143)]=_0x27b77c,this[_0x16d071(0x243)]=_0x4d74b1);}['_checkMissing'](_0x1a33c1){const _0xcb5efd=_0x354c45,_0xaa4ea0=this[_0xcb5efd(0x3be)][_0xcb5efd(0x82)](this[_0xcb5efd(0x22b)]);return _0x1a33c1[_0xcb5efd(0x345)]>_0xaa4ea0+0x1?(this['_handler'][_0xcb5efd(0x20f)]({'from':_0xaa4ea0,'to':_0x1a33c1['revision']-0x1}),!0x0):!0x1;}[_0x354c45(0x329)](_0x8c5e11){const _0x3d83bc=_0x354c45;this[_0x3d83bc(0x19d)][_0x3d83bc(0x99)](this['unitID'],_0x8c5e11);}[_0x354c45(0xe1)](_0x4a81c2){const _0x48a3ba=_0x354c45;var _0x1227dc,_0x5261c5;(_0x5261c5=(_0x1227dc=this[_0x48a3ba(0x1c7)])['onTransformSelections'])==null||_0x5261c5[_0x48a3ba(0x1b1)](_0x1227dc,_0x4a81c2);}[_0x354c45(0x28b)](_0x308264){var _0x31e15f,_0x326498;return(_0x326498=(_0x31e15f=this['_handler'])['onTransformIME'])==null?void 0x0:_0x326498['call'](_0x31e15f,_0x308264);}[_0x354c45(0x35e)](_0x2a04e1){const _0x1ca55a=_0x354c45;var _0x2587a9,_0x31dfc8,_0xe77a07;return(_0xe77a07=(_0x31dfc8=(_0x2587a9=this[_0x1ca55a(0x1c7)])[_0x1ca55a(0x366)])==null?void 0x0:_0x31dfc8[_0x1ca55a(0x1b1)](_0x2587a9,_0x2a04e1))!=null?_0xe77a07:_0x2a04e1;}[_0x354c45(0x275)](_0x1ddac4){const _0xf878c8=_0x354c45;var _0x5dafc5,_0x506812;if(this[_0xf878c8(0x354)]===H[_0xf878c8(0x30e)]){const {unitID:_0x369976,mutations:_0x61e492,memberID:_0x4231da}=_0x1ddac4,_0x3c6d0c=_0x61e492[0x0]['params'][_0xf878c8(0x17d)];Array['isArray'](_0x3c6d0c)&&_0x3c6d0c[_0xf878c8(0x16f)]>0x0&&((_0x506812=(_0x5dafc5=this['_handler'])['onSyncEditingCollabCursor'])==null||_0x506812[_0xf878c8(0x1b1)](_0x5dafc5,{'unitID':_0x369976,'memberID':_0x4231da,'textRanges':_0x3c6d0c}));}}['_updateLocalCache'](){const _0x517cfd=_0x354c45;this[_0x517cfd(0x29b)][_0x517cfd(0x153)](this[_0x517cfd(0x22b)],this[_0x517cfd(0x354)],this[_0x517cfd(0x143)],this[_0x517cfd(0x243)]);}[_0x354c45(0x22d)](){const _0x5aa1eb=_0x354c45;return this[_0x5aa1eb(0x3be)][_0x5aa1eb(0x82)](this[_0x5aa1eb(0x22b)]);}[_0x354c45(0x162)](){const _0x5ab45a=_0x354c45;this[_0x5ab45a(0x3be)][_0x5ab45a(0x13e)](this[_0x5ab45a(0x22b)]);}['_executeRemoteChangeset'](_0xc93d1f){const _0x2ecd67=_0x354c45;var _0x3f8249;const _0x73e6d4=this[_0x2ecd67(0x35e)](_0xc93d1f),_0x53535a=_0x6b06f4(_0x73e6d4['mutations'],this[_0x2ecd67(0x19f)],{'fromCollab':!0x0});if(!_0x53535a[_0x2ecd67(0x36a)])throw _0x53535a[_0x2ecd67(0x35c)]instanceof Error?_0x53535a[_0x2ecd67(0x35c)]:new Error((_0x3f8249=_0x53535a[_0x2ecd67(0x35c)])!=null?_0x3f8249:_0x2ecd67(0x300));this['_transformIMECache'](_0x73e6d4),this['_transformUndoredo'](_0xc93d1f),this[_0x2ecd67(0xe1)](_0x73e6d4),this['_syncEditingCollabCursor'](_0x73e6d4),this['_incrementRevisionNumber']();}}let Ue=class extends he{constructor(_0x4168ba,_0x23e36e,_0x3d5fe7,_0x50d83a,_0x5ad556,_0x3a0b9d,_0x55bdf4,_0xb2f5b3,_0x1f4dec,_0x4ef74d){const _0x40bdbc=_0x354c45;super(_0x4168ba,_0x23e36e,null,[],_0x3d5fe7,_0xb2f5b3,_0x55bdf4,_0x50d83a,_0x5ad556),_(this,'status',_0x40bdbc(0x346)),(this[_0x40bdbc(0x259)]=_0x3a0b9d,this['_logService']=_0x1f4dec,this['_transformService']=_0x4ef74d);}[_0x354c45(0x1b7)](_0x3c346a){const _0x58da55=_0x354c45,_0x15c036=this['_injector'][_0x58da55(0x31d)](G,this[_0x58da55(0x22b)],this[_0x58da55(0x354)],[_0x3c346a],this[_0x58da55(0x1c7)]);return _0x15c036[_0x58da55(0x274)](),_0x15c036['_updateLocalCache'](),_0x15c036;}['onRemoteChangeset'](_0xbaae38){const _0x149938=_0x354c45;if(this[_0x149938(0xc3)](_0xbaae38))return this[_0x149938(0x259)][_0x149938(0x31d)](K,this[_0x149938(0x22b)],this[_0x149938(0x354)],null,[],null,[_0xbaae38],this[_0x149938(0x1c7)]);try{const _0x1aea5f=this[_0x149938(0x351)][_0x149938(0x109)](_0xbaae38,[tr]);if(_0x14b4f5(_0x1aea5f)){const {c1Prime:_0x536790}=_0x1aea5f;return this[_0x149938(0x301)](_0x536790),this;}throw _0x1aea5f[_0x149938(0x35c)];}catch(_0x4a8068){return this[_0x149938(0x10f)][_0x149938(0x35c)](_0x4a8068),this['_onConflict'](!0x1);}}[_0x354c45(0x139)](_0x515686){const _0x433547=_0x354c45;return this[_0x433547(0x259)][_0x433547(0x31d)](Z,this[_0x433547(0x22b)],this[_0x433547(0x354)],null,[],this[_0x433547(0x1c7)],_0x515686);}[_0x354c45(0x207)](){const _0x41e956=_0x354c45;throw new Error(_0x41e956(0x11c));}[_0x354c45(0x178)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}[_0x354c45(0x292)](){const _0x2ad176=_0x354c45;return this[_0x2ad176(0x259)]['createInstance'](Q,this['unitID'],this[_0x2ad176(0x354)],null,[],this['_handler']);}['toggleOnline'](){return this;}[_0x354c45(0xab)](){const _0x8efa95=_0x354c45;throw new Error(_0x8efa95(0x1cc));}};Ue=ce([f(0x3,_0x229f6b(_0x2d6ffb)),f(0x4,_0x229f6b(D)),f(0x5,_0x229f6b(_0x3b06f9)),f(0x6,_0x13005c),f(0x7,_0x151749),f(0x8,_0x4491a7),f(0x9,_0x5c9e6a)],Ue);let G=class extends he{constructor(_0x58ba4f,_0x2b8ff9,_0x52283e,_0x4a2f93,_0x10f1bb,_0x1612f7,_0x18ad3c,_0xef48e9,_0x2c0cd7,_0x4fccd8,_0x487bc7,_0x5eb7f7,_0x19c50f,_0x3dbda8){const _0x3fe2b2=_0x354c45;super(_0x58ba4f,_0x2b8ff9,null,_0x52283e,_0x4a2f93,_0x4fccd8,_0x3dbda8,_0x1612f7,_0x18ad3c),_(this,_0x3fe2b2(0x185),_0x3fe2b2(0x124)),_(this,_0x3fe2b2(0xc7),null),_(this,'_sendingTimer',null),(this[_0x3fe2b2(0x259)]=_0x10f1bb,this['_memberService']=_0xef48e9,this[_0x3fe2b2(0x10f)]=_0x2c0cd7,this['_configService']=_0x487bc7,this['_transformService']=_0x5eb7f7,this[_0x3fe2b2(0x134)]=_0x19c50f);}[_0x354c45(0x1b7)](_0x5b018f){const _0x280146=_0x354c45;return this['_pendingMutations'][_0x280146(0x34c)](_0x5b018f),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x103b80){const _0xebcf4f=_0x354c45;if(this[_0xebcf4f(0xc3)](_0x103b80))return this['_clearScheduledTask'](),this[_0xebcf4f(0x259)][_0xebcf4f(0x31d)](K,this[_0xebcf4f(0x22b)],this[_0xebcf4f(0x354)],null,this[_0xebcf4f(0x243)],null,[_0x103b80],this[_0xebcf4f(0x1c7)]);try{const _0x54beae=this[_0xebcf4f(0x351)][_0xebcf4f(0x109)](_0x103b80,this['_pendingMutations']);if(_0x14b4f5(_0x54beae)){const {c1Prime:_0x324935,m2Prime:_0x4deee6}=_0x54beae;this[_0xebcf4f(0x301)](_0x324935);const _0x5a94ca=this[_0xebcf4f(0x259)][_0xebcf4f(0x31d)](G,this[_0xebcf4f(0x22b)],this[_0xebcf4f(0x354)],_0x4deee6,this[_0xebcf4f(0x1c7)]);return this[_0xebcf4f(0x28f)](),_0x5a94ca[_0xebcf4f(0x274)](this[_0xebcf4f(0xc7)]?Math['max'](0x0,new Date()[_0xebcf4f(0x382)]()-this['_scheduleTimestamp']):this[_0xebcf4f(0x28d)]()),_0x5a94ca;}throw _0x54beae[_0xebcf4f(0x35c)];}catch(_0x1f5f95){return this['_logService'][_0xebcf4f(0x35c)](_0x1f5f95),this[_0xebcf4f(0x139)](!0x1);}}[_0x354c45(0x207)](){const _0x1c7f02=_0x354c45;throw new Error(_0x1c7f02(0x3b2));}[_0x354c45(0x178)](){const _0x5bd78a=_0x354c45;throw new Error(_0x5bd78a(0x3d2));}[_0x354c45(0x292)](){const _0xc223ef=_0x354c45;return this['_clearScheduledTask'](),this[_0xc223ef(0x259)]['createInstance'](Q,this[_0xc223ef(0x22b)],this[_0xc223ef(0x354)],null,this[_0xc223ef(0x243)],this[_0xc223ef(0x1c7)]);}['toggleOnline'](){return this;}[_0x354c45(0x274)](_0x522a88){const _0x24a607=_0x354c45;_0x522a88=_0x522a88!=null?_0x522a88:this[_0x24a607(0x28d)](),this[_0x24a607(0xc7)]=new Date()[_0x24a607(0x382)](),this[_0x24a607(0x2a2)]=setTimeout(()=>{const _0xeec0b=_0x24a607;this[_0xeec0b(0x28f)]();let _0x482114=null;switch(this[_0xeec0b(0x354)]){case H[_0xeec0b(0x31c)]:{_0x482114=os(this[_0xeec0b(0x243)],this['unitID'],this[_0xeec0b(0x134)],this['_revisionService'],this[_0xeec0b(0x39b)]);break;}case H[_0xeec0b(0x30e)]:{this[_0xeec0b(0x243)][_0xeec0b(0x336)](_0x34e038=>_0x34e038['id']===_0xc37a7a['id'])?_0x482114=er(this['_pendingMutations'],this[_0xeec0b(0x22b)],this['_univerInstanceService'],this['_revisionService'],this[_0xeec0b(0x39b)]):_0x482114=os(this['_pendingMutations'],this[_0xeec0b(0x22b)],this[_0xeec0b(0x134)],this['_revisionService'],this[_0xeec0b(0x39b)]);break;}default:throw new Error(_0xeec0b(0x1c6)+this[_0xeec0b(0x354)]+'\x20in\x20_schedule.');}const {changeset:_0x43e114,pendingMutations:_0x286932}=_0x482114;this[_0xeec0b(0x1c7)]['onSendChangeset'](_0x43e114);const _0x4aec88=_0x286932['length']?this['_injector']['createInstance'](Y,this['unitID'],this['type'],_0x43e114,_0x286932,this[_0xeec0b(0x1c7)]):this[_0xeec0b(0x259)][_0xeec0b(0x31d)](q,this['unitID'],this['type'],_0x43e114,this[_0xeec0b(0x1c7)]);_0x4aec88['_updateLocalCache'](),this[_0xeec0b(0x1c7)][_0xeec0b(0x2a3)](this,_0x4aec88);},_0x522a88);}[_0x354c45(0x28d)](){const _0x3bca87=_0x354c45;var _0x54a338;return(_0x54a338=this[_0x3bca87(0x102)][_0x3bca87(0x119)](_n))!=null?_0x54a338:ln;}[_0x354c45(0xab)](){const _0x4b4144=_0x354c45;throw new Error(_0x4b4144(0x1d8));}[_0x354c45(0x28f)](){const _0x1e018c=_0x354c45;this[_0x1e018c(0x2a2)]!=null&&(clearTimeout(this['_sendingTimer']),this[_0x1e018c(0x2a2)]=null);}[_0x354c45(0x139)](_0x7873c2){const _0x1d2dcd=_0x354c45;return this[_0x1d2dcd(0x28f)](),this[_0x1d2dcd(0x259)][_0x1d2dcd(0x31d)](Z,this['unitID'],this[_0x1d2dcd(0x354)],null,this['_pendingMutations'],this[_0x1d2dcd(0x1c7)],_0x7873c2);}};G=ce([f(0x4,_0x229f6b(_0x3b06f9)),f(0x5,_0x229f6b(_0x2d6ffb)),f(0x6,_0x229f6b(D)),f(0x7,_0x229f6b(ne)),f(0x8,_0x4491a7),f(0x9,_0x151749),f(0xa,_0x476b70),f(0xb,_0x5c9e6a),f(0xc,_0x14d401),f(0xd,_0x13005c)],G);let q=class extends he{constructor(_0x3aa942,_0x5ed7a5,_0x6394a3,_0x12813f,_0xa73644,_0x1b053c,_0x51f6f0,_0x442fc1,_0x45cdfa,_0x490c87,_0x2575fa){const _0x1744d3=_0x354c45;super(_0x3aa942,_0x5ed7a5,_0x6394a3,[],_0x12813f,_0x442fc1,_0x2575fa,_0x1b053c,_0x51f6f0),_(this,_0x1744d3(0x185),'awaiting'),(this[_0x1744d3(0x259)]=_0xa73644,this['_logService']=_0x45cdfa,this['_transformService']=_0x490c87);}[_0x354c45(0x1b7)](_0x1b1c5b){const _0x8a29fd=_0x354c45,_0x2a8508=this[_0x8a29fd(0x259)]['createInstance'](Y,this[_0x8a29fd(0x22b)],this[_0x8a29fd(0x354)],this['_awaitingChangeset'],[_0x1b1c5b],this[_0x8a29fd(0x1c7)]);return _0x2a8508[_0x8a29fd(0x11a)](),_0x2a8508;}['onRemoteChangeset'](_0x3e3ff4){const _0xeeb9ba=_0x354c45;if(this[_0xeeb9ba(0xc3)](_0x3e3ff4))return this[_0xeeb9ba(0x259)][_0xeeb9ba(0x31d)](K,this['unitID'],this[_0xeeb9ba(0x354)],this[_0xeeb9ba(0x143)],[],null,[_0x3e3ff4],this[_0xeeb9ba(0x1c7)]);try{const _0x2a5bb2=this[_0xeeb9ba(0x351)]['transformChangesets']([_0x3e3ff4],[this[_0xeeb9ba(0x143)]],!0x1);if(_0x5cce80(_0x2a5bb2)){const {c1Prime:_0x1a4c4a,c2Prime:_0x57ce1d}=_0x2a5bb2;this[_0xeeb9ba(0x301)](_0x1a4c4a[0x0]),_0x57ce1d[0x0][_0xeeb9ba(0x33c)]=this[_0xeeb9ba(0x22d)]();const _0x5e1940=this[_0xeeb9ba(0x259)][_0xeeb9ba(0x31d)](q,this['unitID'],this[_0xeeb9ba(0x354)],_0x57ce1d[0x0],this['_handler']);return _0x5e1940[_0xeeb9ba(0x11a)](),_0x5e1940;}return this[_0xeeb9ba(0x139)](!0x1);}catch(_0x1a0e42){return this[_0xeeb9ba(0x10f)][_0xeeb9ba(0x35c)](_0x1a0e42),this[_0xeeb9ba(0x139)](!0x1);}}['onRemoteAck'](_0xc83d2e){const _0x5d327e=_0x354c45,_0x4ff3e3=this[_0x5d327e(0x3be)]['getCurrentRevForDocument'](this[_0x5d327e(0x22b)]);if(_0xc83d2e[_0x5d327e(0x345)]<_0x4ff3e3-0x1)return this;if(this['_checkMissing'](_0xc83d2e))return this['_injector'][_0x5d327e(0x31d)](K,this[_0x5d327e(0x22b)],this['type'],null,[],this[_0x5d327e(0x143)],[],this[_0x5d327e(0x1c7)]);this[_0x5d327e(0x162)]();const _0x40eb37=this[_0x5d327e(0x259)][_0x5d327e(0x31d)](Ue,this[_0x5d327e(0x22b)],this[_0x5d327e(0x354)],this['_handler']);return _0x40eb37[_0x5d327e(0x11a)](),_0x40eb37;}['onRemoteRej'](_0x1b3b4e){const _0x4dd484=_0x354c45;return this[_0x4dd484(0x139)](!!(_0x1b3b4e!=null&&_0x1b3b4e[_0x4dd484(0xba)]));}['toggleOffline'](){const _0x11714a=_0x354c45;return this[_0x11714a(0x259)]['createInstance'](Q,this[_0x11714a(0x22b)],this[_0x11714a(0x354)],this[_0x11714a(0x143)],[],this[_0x11714a(0x1c7)]);}[_0x354c45(0x1a2)](){return this;}['resend'](){const _0x4fa84d=_0x354c45;this[_0x4fa84d(0x1c7)][_0x4fa84d(0x177)](this['_awaitingChangeset']);}['_onConflict'](_0x50f837){const _0x47edbf=_0x354c45;return this['_injector'][_0x47edbf(0x31d)](Z,this[_0x47edbf(0x22b)],this['type'],this[_0x47edbf(0x143)],[],this[_0x47edbf(0x1c7)],_0x50f837);}};q=ce([f(0x4,_0x229f6b(_0x3b06f9)),f(0x5,_0x229f6b(_0x2d6ffb)),f(0x6,_0x229f6b(D)),f(0x7,_0x151749),f(0x8,_0x4491a7),f(0x9,_0x5c9e6a),f(0xa,_0x13005c)],q);let Y=class extends he{constructor(_0xded62e,_0x1a11d0,_0x170860,_0x29a786,_0x1c651f,_0x173fa5,_0x4a87e1,_0x474ad2,_0x5edcf9,_0x22dd3e,_0x2449ba,_0x44f319){const _0x3e6708=_0x354c45;super(_0xded62e,_0x1a11d0,_0x170860,_0x29a786,_0x1c651f,_0x5edcf9,_0x44f319,_0x4a87e1,_0x474ad2),_(this,'status','awaiting_with_pending'),(this[_0x3e6708(0x259)]=_0x173fa5,this[_0x3e6708(0x10f)]=_0x22dd3e,this['_transformService']=_0x2449ba);}[_0x354c45(0x1b7)](_0x52f030){const _0x35ec4a=_0x354c45;return this[_0x35ec4a(0x243)]['push'](_0x52f030),this;}[_0x354c45(0x1ba)](_0x3b16c3){const _0x1406bf=_0x354c45;if(this[_0x1406bf(0xc3)](_0x3b16c3))return this['_injector'][_0x1406bf(0x31d)](K,this['unitID'],this[_0x1406bf(0x354)],this['_awaitingChangeset'],this[_0x1406bf(0x243)],null,[_0x3b16c3],this[_0x1406bf(0x1c7)]);try{const _0x1dc894=this[_0x1406bf(0x351)][_0x1406bf(0x313)]([_0x3b16c3],[this[_0x1406bf(0x143)]],!0x1);if(_0x5cce80(_0x1dc894)){const {c1Prime:_0x42b520,c2Prime:_0x73dc5b}=_0x1dc894,_0x5c3dba=this[_0x1406bf(0x351)][_0x1406bf(0x109)](_0x42b520[0x0],this['_pendingMutations']);if(_0x14b4f5(_0x5c3dba)){const {c1Prime:_0x1dacb4,m2Prime:_0x5b901b}=_0x5c3dba;return this[_0x1406bf(0x301)](_0x1dacb4),_0x73dc5b[0x0][_0x1406bf(0x33c)]=this[_0x1406bf(0x22d)](),this[_0x1406bf(0x259)][_0x1406bf(0x31d)](Y,this[_0x1406bf(0x22b)],this[_0x1406bf(0x354)],_0x73dc5b[0x0],_0x5b901b,this[_0x1406bf(0x1c7)]);}throw _0x5c3dba[_0x1406bf(0x35c)];}throw _0x1dc894[_0x1406bf(0x35c)];}catch(_0x1f5d26){return this[_0x1406bf(0x10f)]['error'](_0x1f5d26),this[_0x1406bf(0x139)](!0x1);}}[_0x354c45(0x207)](_0x5382b8){const _0x57e902=_0x354c45;if(this[_0x57e902(0xc3)](_0x5382b8))return this[_0x57e902(0x259)][_0x57e902(0x31d)](K,this[_0x57e902(0x22b)],this[_0x57e902(0x354)],null,this[_0x57e902(0x243)],this['_awaitingChangeset'],[],this['_handler']);this[_0x57e902(0x162)]();const _0x4d3d6c=this[_0x57e902(0x259)]['createInstance'](G,this['unitID'],this[_0x57e902(0x354)],this[_0x57e902(0x243)],this[_0x57e902(0x1c7)]);return _0x4d3d6c['_schedule'](),_0x4d3d6c[_0x57e902(0x11a)](),_0x4d3d6c;}[_0x354c45(0x178)](_0x337166){return this['_onConflict'](!!(_0x337166!=null&&_0x337166['isPermissionRej']));}['toggleOffline'](){const _0x125006=_0x354c45;return this[_0x125006(0x259)][_0x125006(0x31d)](Q,this[_0x125006(0x22b)],this[_0x125006(0x354)],this[_0x125006(0x143)],this[_0x125006(0x243)],this['_handler']);}[_0x354c45(0x1a2)](){return this;}[_0x354c45(0xab)](){const _0x50df1e=_0x354c45;this[_0x50df1e(0x1c7)]['onSendChangeset'](this[_0x50df1e(0x143)]);}['_onConflict'](_0x40c1a6){const _0x2e6710=_0x354c45;return this[_0x2e6710(0x259)]['createInstance'](Z,this[_0x2e6710(0x22b)],this[_0x2e6710(0x354)],null,this[_0x2e6710(0x243)],this[_0x2e6710(0x1c7)],_0x40c1a6);}};Y=ce([f(0x5,_0x229f6b(_0x3b06f9)),f(0x6,_0x229f6b(_0x2d6ffb)),f(0x7,_0x229f6b(D)),f(0x8,_0x151749),f(0x9,_0x4491a7),f(0xa,_0x5c9e6a),f(0xb,_0x13005c)],Y);let Z=class extends he{constructor(_0x46ec36,_0x503687,_0x1649de,_0x2591ad,_0x180c5d,_0x294146=!0x1,_0x4026bf,_0x50b6e4,_0x3b3c61,_0x297cde,_0x2e3daa,_0x5711e7,_0x422b05){const _0x569a47=_0x354c45;super(_0x46ec36,_0x503687,_0x1649de,_0x2591ad,_0x180c5d,_0x50b6e4,_0x3b3c61,_0x2e3daa,_0x297cde),_(this,_0x569a47(0x185),'conflict'),(this[_0x569a47(0x111)]=_0x294146,this[_0x569a47(0x155)]=_0x4026bf,this[_0x569a47(0xa4)]=_0x5711e7,this[_0x569a47(0x172)]=_0x422b05,this[_0x569a47(0x133)](),this[_0x569a47(0x2b9)](),this['_disableEditing']());}[_0x354c45(0x1b7)](){return this;}[_0x354c45(0x1ba)](){return this;}['onRemoteAck'](){return this;}['onRemoteRej'](){return this;}['toggleOffline'](){return this;}['toggleOnline'](){return this;}[_0x354c45(0xab)](){const _0x5b5d5d=_0x354c45;throw new Error(_0x5b5d5d(0x2b6));}['_clearLocalCache'](){const _0x207b40=_0x354c45;this[_0x207b40(0x29b)]['updateOfflineData'](this[_0x207b40(0x22b)],this['type'],null,[]);}[_0x354c45(0x133)](){const _0x3d3547=_0x354c45;this[_0x3d3547(0x111)]?this[_0x3d3547(0x172)][_0x3d3547(0x2e0)]({'title':this[_0x3d3547(0xa4)]['t'](_0x3d3547(0x1a6)),'content':this[_0x3d3547(0xa4)]['t'](_0x3d3547(0x315)),'type':_0x3d3547(0x35c),'duration':0x0}):this['_notificationService']['show']({'title':this[_0x3d3547(0xa4)]['t']('conflict.title'),'content':this[_0x3d3547(0xa4)]['t'](_0x3d3547(0x337)),'type':_0x3d3547(0x35c),'duration':0x0});}[_0x354c45(0x129)](){const _0x5a5cb0=_0x354c45;this['_permissionService'][_0x5a5cb0(0x25a)](new _0x47313f(this['unitID'])['id'],!0x1);}};Z=ce([f(0x6,_0x229f6b(_0x4c56be)),f(0x7,_0x151749),f(0x8,_0x13005c),f(0x9,_0x229f6b(D)),f(0xa,_0x229f6b(_0x2d6ffb)),f(0xb,_0x229f6b(_0x5e486d)),f(0xc,_0x220977)],Z);let Q=class extends he{constructor(_0x113b52,_0x50dbd9,_0x15668d,_0x31842b,_0x58fb59,_0x16a56f,_0x498806,_0x5c7da8,_0x3e160f,_0x1e1eca){const _0xf82984=_0x354c45;super(_0x113b52,_0x50dbd9,_0x15668d,_0x31842b,_0x58fb59,_0x3e160f,_0x1e1eca,_0x498806,_0x5c7da8),_(this,'status',_0xf82984(0x8a)),this[_0xf82984(0x259)]=_0x16a56f;}['appendMutation'](_0x5346d0){const _0x34a0e0=_0x354c45;return this['_pendingMutations'][_0x34a0e0(0x34c)](_0x5346d0),this['_updateLocalCache'](),this;}[_0x354c45(0x1ba)](_0x5de083){const _0x102ba7=_0x354c45;throw new Error(_0x102ba7(0x31f));}['onRemoteAck'](){const _0x1ee062=_0x354c45;throw new Error(_0x1ee062(0xce));}[_0x354c45(0x178)](){const _0x3dd632=_0x354c45;throw new Error(_0x3dd632(0x269));}[_0x354c45(0x292)](){return this;}[_0x354c45(0x1a2)](){const _0x43cc6d=_0x354c45,{_injector:_0x6a7b0,_pendingMutations:_0x429213,_awaitingChangeset:_0x4fc99a,unitID:_0x2f4f1c,_handler:_0xd2f0f7,type:_0x50778f}=this,_0xf26c49=Ls(_0x6a7b0,_0x2f4f1c,_0x50778f,_0x4fc99a,_0x429213,_0xd2f0f7);return _0xf26c49 instanceof G?_0xf26c49['_schedule']():(_0xf26c49 instanceof Y||_0xf26c49 instanceof q)&&_0xf26c49[_0x43cc6d(0xab)](),_0xf26c49;}[_0x354c45(0xab)](){const _0xf36e5d=_0x354c45;throw new Error(_0xf36e5d(0x2d9));}};Q=ce([f(0x5,_0x229f6b(_0x3b06f9)),f(0x6,_0x229f6b(_0x2d6ffb)),f(0x7,_0x229f6b(D)),f(0x8,_0x151749),f(0x9,_0x13005c)],Q);let K=class extends he{constructor(_0x11add5,_0x53c5df,_0x1045c4,_0x2bd866,_0x473266,_0x5eb8a2,_0x558977,_0x14026c,_0x3f5d87,_0x2d9ba5,_0x3e00cb,_0x4122a7,_0x1fa101,_0x25dde5){const _0x4f3259=_0x354c45;super(_0x11add5,_0x53c5df,_0x1045c4,_0x2bd866,_0x558977,_0x4122a7,_0x1fa101,_0x3f5d87,_0x2d9ba5),_(this,'status',_0x4f3259(0xdf)),(this[_0x4f3259(0x2c9)]=_0x473266,this[_0x4f3259(0x16a)]=_0x5eb8a2,this[_0x4f3259(0x259)]=_0x14026c,this['_logService']=_0x3e00cb,this[_0x4f3259(0x351)]=_0x25dde5);}[_0x354c45(0x1bd)](_0x1bc20c){const _0x55d574=_0x354c45;try{const _0x44d04a=[..._0x1bc20c,...this['_queuedRemoteChangesets']],_0x2800d2=[this[_0x55d574(0x143)]||this[_0x55d574(0x2c9)]]['filter'](_0x4c0e12=>!!_0x4c0e12);let _0x5123de,_0x33b4b5;if(_0x2800d2[_0x55d574(0x16f)]){const _0x4cdc74=this['_transformService']['transformChangesets'](_0x44d04a,_0x2800d2,!0x1);if(!_0x5cce80(_0x4cdc74))throw _0x4cdc74[_0x55d574(0x35c)];_0x5123de=_0x4cdc74[_0x55d574(0x235)],_0x33b4b5=_0x4cdc74[_0x55d574(0x19e)];}else _0x5123de=_0x44d04a,_0x33b4b5=[];let _0x47ed91=this['_pendingMutations'];_0x5123de[_0x55d574(0x18d)](_0x304a43=>{const _0x80e66a=_0x55d574;let _0xb30d12;if(_0x47ed91['length']){const _0x1d4c70=this[_0x80e66a(0x351)][_0x80e66a(0x109)](_0x304a43,_0x47ed91);if(!_0x14b4f5(_0x1d4c70))throw _0x1d4c70[_0x80e66a(0x35c)];_0xb30d12=_0x1d4c70[_0x80e66a(0x235)],_0x47ed91=_0x1d4c70['m2Prime'];}else _0xb30d12=_0x304a43;this[_0x80e66a(0x301)](_0xb30d12);}),this[_0x55d574(0x2c9)]&&this[_0x55d574(0x162)](),this[_0x55d574(0x143)]&&_0x33b4b5[_0x55d574(0x16f)]&&(_0x33b4b5[0x0][_0x55d574(0x33c)]=this[_0x55d574(0x22d)]());let _0x556e94;if(this['_awaitingChangeset']&&_0x47ed91[_0x55d574(0x16f)]!==0x0)_0x556e94=this[_0x55d574(0x259)][_0x55d574(0x31d)](Y,this['unitID'],this['type'],_0x33b4b5[0x0],_0x47ed91,this[_0x55d574(0x1c7)]);else{if(this[_0x55d574(0x143)]&&_0x47ed91['length']===0x0)_0x33b4b5[0x0][_0x55d574(0x33c)]=this[_0x55d574(0x22d)](),_0x556e94=this[_0x55d574(0x259)]['createInstance'](q,this[_0x55d574(0x22b)],this[_0x55d574(0x354)],_0x33b4b5[0x0],this['_handler']);else{if(_0x47ed91[_0x55d574(0x16f)]!==0x0){const _0x37856d=this['_injector'][_0x55d574(0x31d)](G,this[_0x55d574(0x22b)],this[_0x55d574(0x354)],_0x47ed91,this['_handler']);_0x37856d[_0x55d574(0x274)](),_0x556e94=_0x37856d;}else _0x556e94=this[_0x55d574(0x259)]['createInstance'](Ue,this[_0x55d574(0x22b)],this[_0x55d574(0x354)],this[_0x55d574(0x1c7)]);}}return _0x556e94[_0x55d574(0x11a)](),_0x556e94;}catch(_0x5198f1){return this['_logService'][_0x55d574(0x35c)](_0x55d574(0x229),_0x55d574(0x318),_0x5198f1),this[_0x55d574(0x259)][_0x55d574(0x31d)](Z,this[_0x55d574(0x22b)],this['type'],this[_0x55d574(0x143)],this[_0x55d574(0x243)],this[_0x55d574(0x1c7)],!0x1);}}[_0x354c45(0xab)](){const _0x5941a9=_0x354c45;throw new Error(_0x5941a9(0x26c));}[_0x354c45(0x1b7)](_0x18c5ec){const _0x54390b=_0x354c45;return this['_pendingMutations'][_0x54390b(0x34c)](_0x18c5ec),this;}['onRemoteChangeset'](_0x4df6b0){const _0x113270=_0x354c45;return this['_queuedRemoteChangesets'][_0x113270(0x34c)](_0x4df6b0),this;}['onRemoteAck'](_0xb606a9){const _0x1da15d=_0x354c45;if(this['_awaitingChangeset'])return this[_0x1da15d(0x2c9)]=this['_awaitingChangeset'],this[_0x1da15d(0x143)]=null,this;throw new Error(_0x1da15d(0x212));}[_0x354c45(0x178)](_0x279281){const _0x1a4021=_0x354c45;return this[_0x1a4021(0x139)](!!(_0x279281!=null&&_0x279281['isPermissionRej']));}[_0x354c45(0x292)](){const _0x26ca15=_0x354c45;return this['_injector'][_0x26ca15(0x31d)](Q,this[_0x26ca15(0x22b)],this[_0x26ca15(0x354)],this['_awaitingChangeset'],this['_pendingMutations'],this['_handler']);}[_0x354c45(0x1a2)](){return this;}[_0x354c45(0x139)](_0x2ffdb3){const _0x48585c=_0x354c45;return this['_injector'][_0x48585c(0x31d)](Z,this['unitID'],this[_0x48585c(0x354)],this[_0x48585c(0x143)],this[_0x48585c(0x243)],this['_handler'],_0x2ffdb3);}};K=ce([f(0x7,_0x229f6b(_0x3b06f9)),f(0x8,_0x229f6b(_0x2d6ffb)),f(0x9,_0x229f6b(D)),f(0xa,_0x4491a7),f(0xb,_0x151749),f(0xc,_0x13005c),f(0xd,_0x5c9e6a)],K);function Ls(_0x43c8ec,_0xd585bb,_0x5424b3,_0x2ea1f3,_0x23b6fe,_0x5f574c){const _0x364763=_0x354c45;return _0x2ea1f3&&_0x23b6fe['length']?_0x43c8ec[_0x364763(0x31d)](Y,_0xd585bb,_0x5424b3,_0x2ea1f3,_0x23b6fe,_0x5f574c):_0x2ea1f3?_0x43c8ec[_0x364763(0x31d)](q,_0xd585bb,_0x5424b3,_0x2ea1f3,_0x5f574c):_0x23b6fe['length']?_0x43c8ec[_0x364763(0x31d)](G,_0xd585bb,_0x5424b3,_0x23b6fe,_0x5f574c):_0x43c8ec[_0x364763(0x31d)](Ue,_0xd585bb,_0x5424b3,_0x5f574c);}var nr=Object[_0x354c45(0xa3)],rr=Object[_0x354c45(0x3cf)],st=(_0x380b0b,_0x8fc647,_0x2ddc08,_0x28d9bd)=>{const _0x5d43aa=_0x354c45;for(var _0x38822c=_0x28d9bd>0x1?void 0x0:_0x28d9bd?rr(_0x8fc647,_0x2ddc08):_0x8fc647,_0x4e412b=_0x380b0b[_0x5d43aa(0x16f)]-0x1,_0x505359;_0x4e412b>=0x0;_0x4e412b--)(_0x505359=_0x380b0b[_0x4e412b])&&(_0x38822c=(_0x28d9bd?_0x505359(_0x8fc647,_0x2ddc08,_0x38822c):_0x505359(_0x38822c))||_0x38822c);return _0x28d9bd&&_0x38822c&&nr(_0x8fc647,_0x2ddc08,_0x38822c),_0x38822c;},p=(_0x33db7c,_0x5a0647)=>(_0x2c6cc7,_0x4b67d9)=>_0x5a0647(_0x2c6cc7,_0x4b67d9,_0x33db7c);let Me=class extends _0x5aeadb{constructor(_0x460fdd,_0x3fb696,_0x48522f){const _0x1e6d5e=_0x354c45;super(),_(this,_0x1e6d5e(0x2f0),new Map()),_(this,_0x1e6d5e(0x35b),new _0x2b4845()),(this['_injector']=_0x460fdd,this[_0x1e6d5e(0x184)]=_0x3fb696,this[_0x1e6d5e(0x134)]=_0x48522f,this['_init']());}[_0x354c45(0x220)](){const _0x1611c3=_0x354c45;super[_0x1611c3(0x220)](),this[_0x1611c3(0x2f0)][_0x1611c3(0x18d)](_0x1ec52d=>_0x1ec52d[_0x1611c3(0x220)]()),this[_0x1611c3(0x2f0)]['clear']();}[_0x354c45(0x165)](_0x54fc99){const _0x6e4421=_0x354c45;var _0x3d0700;return(_0x3d0700=this[_0x6e4421(0x2f0)][_0x6e4421(0x309)](_0x54fc99))!=null?_0x3d0700:null;}[_0x354c45(0x25f)](_0x4ccd0c){const _0x5c916d=_0x354c45,_0x3741ff=this[_0x5c916d(0x165)](_0x4ccd0c);return _0x3741ff?_0x186ef7(_0x3741ff):this[_0x5c916d(0x35b)]['pipe'](_0x2a5de4(_0x29895c=>_0x29895c[_0x5c916d(0x22b)]===_0x4ccd0c));}['_init'](){const _0x32e453=_0x354c45;this['_univerInstanceService'][_0x32e453(0xcc)](_0x380445['UNIVER_SHEET'])['pipe'](_0x60ccde(this[_0x32e453(0x1a1)]),_0x304b5e(0x10))[_0x32e453(0x37e)](async _0x6d2374=>{const _0x53aaf6=_0x32e453,_0x3f1297=_0x6d2374[_0x53aaf6(0x3a7)](),_0x15079a=await this[_0x53aaf6(0x3b0)](_0x3f1297,H[_0x53aaf6(0x31c)]);this[_0x53aaf6(0x2f0)][_0x53aaf6(0xdd)](_0x3f1297,_0x15079a);}),this['_univerInstanceService'][_0x32e453(0xcc)](_0x380445[_0x32e453(0x30e)])[_0x32e453(0x1e1)](_0x60ccde(this[_0x32e453(0x1a1)]),_0x304b5e(0x10))[_0x32e453(0x1e1)](_0x2a5de4(_0x3a2f31=>!_0x3a2f31[_0x32e453(0x3a7)]()['startsWith']('__')))[_0x32e453(0x37e)](async _0x18b8f8=>{const _0x5b2009=_0x32e453,_0x5bb09d=_0x18b8f8[_0x5b2009(0x3a7)](),_0x2d6de2=await this[_0x5b2009(0x3b0)](_0x5bb09d,H[_0x5b2009(0x30e)]);this[_0x5b2009(0x2f0)][_0x5b2009(0xdd)](_0x5bb09d,_0x2d6de2);}),_0x5b30b2(this[_0x32e453(0x134)][_0x32e453(0x38d)](_0x380445[_0x32e453(0x31c)]),this[_0x32e453(0x134)][_0x32e453(0x38d)](_0x380445[_0x32e453(0x30e)]))['pipe'](_0x60ccde(this[_0x32e453(0x1a1)]))['subscribe'](_0x4d438f=>{const _0x3c5707=_0x32e453,_0x294dd7=_0x4d438f['getUnitId'](),_0x47e538=this[_0x3c5707(0x2f0)][_0x3c5707(0x309)](_0x294dd7);_0x47e538&&(_0x47e538[_0x3c5707(0x220)](),this[_0x3c5707(0x2f0)][_0x3c5707(0x33a)](_0x294dd7));});}async[_0x354c45(0x3b0)](_0x3044dd,_0x88e432){const _0x61a769=_0x354c45,_0x12e997=await this[_0x61a769(0x184)][_0x61a769(0x258)](_0x3044dd),_0x423018=this[_0x61a769(0x259)][_0x61a769(0x31d)](this[_0x61a769(0x397)](_0x88e432),_0x3044dd,_0x88e432,_0x12e997);return await _0x423018['init'](),this['_entityInit$']['next'](_0x423018),_0x423018;}[_0x354c45(0x397)](_0x213618){const _0x4e7b82=_0x354c45;switch(_0x213618){case H[_0x4e7b82(0x30e)]:return Et;case H[_0x4e7b82(0x31c)]:return Ct;default:throw new Error(_0x4e7b82(0x23d)+_0x213618);}}};Me=st([_0x5c1b58(_0x21b2c3[_0x354c45(0xbe)],Me),p(0x0,_0x229f6b(_0x3b06f9)),p(0x1,_0x229f6b(pe)),p(0x2,_0x14d401)],Me);let Ze=class extends _0x5aeadb{constructor(_0xb9727b,_0x39fee2,_0x4cedc2,_0x2eb425,_0x3bcaf7,_0x56e349,_0x4317cc,_0x5541a1,_0xabdc9c,_0x2e9562,_0x14b7b,_0x42312f,_0x4889a8){const _0x3f56eb=_0x354c45;super(),_(this,_0x3f56eb(0x383),new _0x421821(null)),_(this,_0x3f56eb(0x395),this[_0x3f56eb(0x383)][_0x3f56eb(0x209)]()),_(this,'_state'),_(this,_0x3f56eb(0x190),!0x1),_(this,'status$',this[_0x3f56eb(0x395)][_0x3f56eb(0x1e1)](_0x1b7b12(_0x542146=>_0x542146?_0x542146[_0x3f56eb(0x185)]:P[_0x3f56eb(0x3c0)]),_0x49a543(0x1))),_(this,_0x3f56eb(0x159),!0x1),_(this,_0x3f56eb(0x2d4),[]),(this[_0x3f56eb(0x22b)]=_0xb9727b,this[_0x3f56eb(0x353)]=_0x39fee2,this['_session']=_0x4cedc2,this['_injector']=_0x2eb425,this['_localCacheService']=_0x3bcaf7,this[_0x3f56eb(0x1bb)]=_0x56e349,this[_0x3f56eb(0xa4)]=_0x4317cc,this[_0x3f56eb(0x3be)]=_0x5541a1,this[_0x3f56eb(0x10f)]=_0xabdc9c,this['_commandService']=_0x2e9562,this['_messageService']=_0x14b7b,this['_permissionService']=_0x42312f,this[_0x3f56eb(0x23e)]=_0x4889a8);}get['state'](){return this['_state'];}async[_0x354c45(0x1ce)](){const _0x54674d=_0x354c45;if(this[_0x54674d(0x2b0)])throw new Error(_0x54674d(0x2ab));await this[_0x54674d(0x330)]();}['pauseCollaboration'](){return this['_collaborationPaused']=!0x0,_0x681995(()=>{const _0x1fde2=_0x5b0c;this['_collaborationPaused']=!0x1,this[_0x1fde2(0x14e)]();});}[_0x354c45(0x2ed)](_0x1ff250){const _0x4efcf6=_0x354c45;this[_0x4efcf6(0x2b5)]=_0x1ff250,this['_state$']['next'](_0x1ff250);}async[_0x354c45(0x330)](){const _0xa9db90=_0x354c45;var _0x2951d1;return this['_updateState'](await this['_createInitialState']()),this[_0xa9db90(0x23e)]&&((_0x2951d1=this[_0xa9db90(0x23e)])==null||_0x2951d1[_0xa9db90(0x174)](this[_0xa9db90(0x22b)]),this[_0xa9db90(0x1a0)](_0x681995(this['_singleActiveUnitService'][_0xa9db90(0x358)](this[_0xa9db90(0x22b)])[_0xa9db90(0x37e)](_0x1d620d=>{const _0x1ed0de=_0xa9db90;this[_0x1ed0de(0x10f)][_0x1ed0de(0x1cd)](_0x1ed0de(0x328),_0x1ed0de(0x2f7),_0x1d620d),_0x1d620d===Us[_0x1ed0de(0x255)]?(this[_0x1ed0de(0x1c1)][_0x1ed0de(0x2e0)]({'content':this[_0x1ed0de(0xa4)]['t'](_0x1ed0de(0x16d)),'type':_0x1679e9[_0x1ed0de(0x31a)]}),this[_0x1ed0de(0x155)]['updatePermissionPoint'](new _0x47313f(this[_0x1ed0de(0x22b)])['id'],!0x1)):this[_0x1ed0de(0x155)][_0x1ed0de(0x25a)](new _0x47313f(this['unitID'])['id'],!0x0);})))),this['disposeWithMe'](_0x681995(this['_session'][_0xa9db90(0x3d6)][_0xa9db90(0x37e)](_0x3f14cb=>{const _0x257731=_0xa9db90;_0x3f14cb===fe[_0x257731(0x10e)]?this[_0x257731(0x2cf)]():_0x3f14cb===fe[_0x257731(0x3c0)]&&this[_0x257731(0x96)]();}))),this['disposeWithMe'](_0x681995(this[_0xa9db90(0x2fa)][_0xa9db90(0x2c5)][_0xa9db90(0x37e)](_0x27954d=>{const _0x43ed8f=_0xa9db90;try{switch(_0x27954d[_0x43ed8f(0x2d3)]){case _0x363b50[_0x43ed8f(0x19b)]:{this['_onRemoteChangeset'](_0x1517b2(_0x27954d[_0x43ed8f(0x385)]));break;}case _0x363b50['CHANGESET_ACK']:{this[_0x43ed8f(0x183)](_0x27954d[_0x43ed8f(0x385)]);break;}case _0x363b50['CHANGESET_REJ']:{this[_0x43ed8f(0x221)]();break;}case _0x363b50[_0x43ed8f(0xa8)]:{this['_onFetchMissResult'](_0x27954d[_0x43ed8f(0x385)][_0x43ed8f(0x362)][_0x43ed8f(0x39f)](_0x2bd7f4=>_0x1517b2(_0x2bd7f4)));break;}case _0x363b50[_0x43ed8f(0x14f)]:this[_0x43ed8f(0x221)]({'isPermissionRej':!0x0});}}catch(_0x3bca18){throw console[_0x43ed8f(0x35c)](_0x43ed8f(0x27b),_0x3bca18),_0x3bca18;}}))),this['_state'];}[_0x354c45(0xb9)](){const _0x5702d5=_0x354c45;this[_0x5702d5(0x159)]=!0x1;}[_0x354c45(0x335)](){const _0x2604fb=_0x354c45;if(this[_0x2604fb(0x159)])throw new Error(_0x2604fb(0x1ab));this[_0x2604fb(0x159)]=!0x0;}[_0x354c45(0x10c)](_0x2d0528){const _0x3135b7=_0x354c45;this[_0x3135b7(0x335)](),this[_0x3135b7(0x2ed)](this[_0x3135b7(0x2b5)][_0x3135b7(0x1b7)](_0x2d0528)),this['_unlockTransition']();}['_onRemoteChangeset'](_0x56b866){const _0x252123=_0x354c45;if(!(_0x56b866[_0x252123(0x345)]<=this['_revisionService'][_0x252123(0x82)](this['unitID']))){if(this[_0x252123(0x190)]){this[_0x252123(0x2d4)][_0x252123(0x34c)](_0x56b866);return;}this[_0x252123(0x1fb)](_0x56b866);}}[_0x354c45(0x14e)](){const _0x41508b=_0x354c45;this[_0x41508b(0x2d4)]['forEach'](_0x26236b=>this['_applyRemoteChangeset'](_0x26236b)),this['_remoteChangesetQueue']=[];}[_0x354c45(0x1fb)](_0x2f6c20){const _0x3e7dca=_0x354c45,_0x12bce9=this['_compressMutationService'][_0x3e7dca(0x323)][_0x3e7dca(0x287)](this[_0x3e7dca(0x1bb)][_0x3e7dca(0x323)][_0x3e7dca(0x27f)]()[_0x3e7dca(0x2e4)])(_0x2f6c20[_0x3e7dca(0x11e)],null)||_0x2f6c20[_0x3e7dca(0x11e)],_0x17c65b={..._0x2f6c20,'mutations':_0x12bce9};this[_0x3e7dca(0x335)](),this[_0x3e7dca(0x2ed)](this['_state']['onRemoteChangeset'](_0x17c65b)),this[_0x3e7dca(0xb9)]();}[_0x354c45(0x183)](_0x3b81f6){const _0x184907=_0x354c45;this['_lockTransition'](),this[_0x184907(0x2ed)](this['_state'][_0x184907(0x207)](_0x3b81f6)),this[_0x184907(0xb9)]();}['_onRemoteRejected'](_0x2f1da6){const _0x52f3d7=_0x354c45;this[_0x52f3d7(0x335)](),this[_0x52f3d7(0x2ed)](this[_0x52f3d7(0x2b5)][_0x52f3d7(0x178)](_0x2f1da6)),this[_0x52f3d7(0xb9)]();}[_0x354c45(0x32f)](_0x4e170b){const _0x4f9f70=_0x354c45;if(!(this[_0x4f9f70(0x2b5)]instanceof K))throw new TypeError(_0x4f9f70(0x22a));const _0x3d2bf4=_0x4e170b[_0x4f9f70(0x39f)](_0x2a8d5a=>{const _0x667fe8=_0x4f9f70,_0x5b3edb=this[_0x667fe8(0x1bb)][_0x667fe8(0x323)][_0x667fe8(0x287)](this[_0x667fe8(0x1bb)][_0x667fe8(0x323)][_0x667fe8(0x27f)]()[_0x667fe8(0x2e4)])(_0x2a8d5a[_0x667fe8(0x11e)],null)||_0x2a8d5a['mutations'];return{..._0x2a8d5a,'mutations':_0x5b3edb};});this[_0x4f9f70(0x335)](),this[_0x4f9f70(0x2ed)](this[_0x4f9f70(0x2b5)][_0x4f9f70(0x1bd)](_0x3d2bf4)),this[_0x4f9f70(0xb9)]();}[_0x354c45(0x96)](){const _0x48c902=_0x354c45;this[_0x48c902(0x335)](),this[_0x48c902(0x2ed)](this[_0x48c902(0x2b5)]['toggleOffline']()),this[_0x48c902(0xb9)]();}[_0x354c45(0x2cf)](){const _0x53f523=_0x354c45;this[_0x53f523(0x335)](),this[_0x53f523(0x2ed)](this[_0x53f523(0x2b5)][_0x53f523(0x1a2)]()),this[_0x53f523(0xb9)]();}async[_0x354c45(0xa2)](){return new Promise(_0x18f50f=>{const _0x832f0d=_0x5b0c;this['_session'][_0x832f0d(0x3d6)][_0x832f0d(0x1e1)](_0x518ec2(0x1))[_0x832f0d(0x37e)](async _0x1bd27c=>{const _0x56785f=_0x832f0d;_0x18f50f(await this[_0x56785f(0x21c)](_0x1bd27c===fe[_0x56785f(0x10e)]));});});}[_0x354c45(0x348)](){const _0x3087a4=_0x354c45,_0x381ce8=this[_0x3087a4(0x22b)];return{'onStateChange':(_0x35323a,_0x396c8e)=>{const _0x278ca2=_0x3087a4;if(_0x35323a!==this[_0x278ca2(0x2b5)])throw new Error(_0x278ca2(0x210)+_0x35323a[_0x278ca2(0x185)]+_0x278ca2(0x115)+_0x396c8e[_0x278ca2(0x185)]+_0x278ca2(0x1f0)+this[_0x278ca2(0x2b5)][_0x278ca2(0x185)]);this['_updateState'](_0x396c8e);},'onSendChangeset':_0x516c30=>{const _0x370cc7=_0x3087a4,_0x29077c={'eventID':_0x363b50[_0x370cc7(0x3d5)],'data':{'unitID':_0x516c30['unitID'],'unitType':this[_0x370cc7(0x353)],'changeset':_0x516c30,'memberID':this[_0x370cc7(0x2fa)][_0x370cc7(0x2f6)]()}};this[_0x370cc7(0x2fa)][_0x370cc7(0x3b4)](_0x29077c,this['unitID']);},'onMissingChangesets':({from:_0x174c47,to:_0x3363f2})=>{const _0x589637=_0x3087a4;this['_logService'][_0x589637(0x1cd)](_0x589637(0x328),_0x589637(0x27c)+_0x174c47+_0x589637(0x175)+_0x3363f2);const _0x31a1a3={'eventID':_0x363b50[_0x589637(0x114)],'data':{'unitID':_0x381ce8,'unitType':this['_type'],'from':_0x174c47,'to':_0x3363f2}};this[_0x589637(0x2fa)][_0x589637(0x3b4)](_0x31a1a3,this[_0x589637(0x22b)]);}};}async[_0x354c45(0x21c)](_0x560519){const _0x3dcd38=_0x354c45;var _0x42ab9a,_0x4576c0;const _0x4aaab7=await this[_0x3dcd38(0x29b)][_0x3dcd38(0x179)](this['unitID']),_0x406480=(_0x42ab9a=_0x4aaab7==null?void 0x0:_0x4aaab7[_0x3dcd38(0x11e)])!=null?_0x42ab9a:[],_0x5b7cfb=(_0x4576c0=_0x4aaab7==null?void 0x0:_0x4aaab7['awaitingChangeset'])!=null?_0x4576c0:null,_0x17717f=this[_0x3dcd38(0x22b)];try{this['_replayCachedMutations'](_0x5b7cfb,_0x406480);}catch(_0x137586){this[_0x3dcd38(0x10f)]['error'](_0x137586);}const _0x14781a=this['_createHandler']();if(_0x560519){const _0xeab677=Ls(this[_0x3dcd38(0x259)],_0x17717f,this[_0x3dcd38(0x353)],_0x5b7cfb,_0x406480,_0x14781a);return _0xeab677 instanceof G?_0xeab677['_schedule']():(_0xeab677 instanceof Y||_0xeab677 instanceof q)&&_0xeab677[_0x3dcd38(0xab)](),_0xeab677;}return this['_injector'][_0x3dcd38(0x31d)](Q,_0x17717f,this[_0x3dcd38(0x353)],_0x5b7cfb,_0x406480,_0x14781a);}[_0x354c45(0x2cd)](_0x5749e0,_0x3fb3dc){const _0x5d64b7=_0x354c45;var _0x58d16b,_0x4cf0cc;const _0xd9faec=this[_0x5d64b7(0x1bb)][_0x5d64b7(0x323)][_0x5d64b7(0x287)](this['_compressMutationService'][_0x5d64b7(0x323)][_0x5d64b7(0x27f)]()['COMPRESS_MUTATION_APPLY']);(_0x58d16b=_0xd9faec((_0x5749e0==null?void 0x0:_0x5749e0['mutations'])||[],null))==null||_0x58d16b['forEach'](_0x280b85=>this['_commandService'][_0x5d64b7(0x2ef)](_0x280b85['id'],_0x280b85['params'])),(_0x4cf0cc=_0xd9faec(_0x3fb3dc||[],null))==null||_0x4cf0cc[_0x5d64b7(0x18d)](_0x49fd91=>this[_0x5d64b7(0x19f)]['executeCommand'](_0x49fd91['id'],_0x49fd91[_0x5d64b7(0x29e)]));}};Ze=st([p(0x3,_0x229f6b(_0x3b06f9)),p(0x4,_0x229f6b(D)),p(0x5,_0x229f6b(_0x182351)),p(0x6,_0x229f6b(_0x5e486d)),p(0x7,_0x229f6b(_0x2d6ffb)),p(0x8,_0x4491a7),p(0x9,_0x151749),p(0xa,_0x5963f9),p(0xb,_0x4c56be),p(0xc,_0x1ed7ac(tt))],Ze);let Et=class extends Ze{constructor(_0x14b1b5,_0x311526,_0x567458,_0x2059d9,_0x47f6e6,_0x372f0f,_0x5e9538,_0x111c1b,_0x5dffc9,_0x45fe12,_0xdddfe4,_0xdb181d,_0x336e24,_0x66ba41,_0x5e34f2,_0x3d920c,_0x3e3586){const _0x1b156f=_0x354c45;super(_0x14b1b5,_0x311526,_0x567458,_0x2059d9,_0x47f6e6,_0x372f0f,_0x5e9538,_0x111c1b,_0x336e24,_0x66ba41,_0x5e34f2,_0x3d920c,_0x3e3586),this['unitID']=_0x14b1b5,this['type']=_0x311526,this[_0x1b156f(0x3c3)]=_0x567458,this[_0x1b156f(0x196)]=_0x5dffc9,this[_0x1b156f(0x278)]=_0x45fe12,this['_docTransformSelectionsService']=_0xdddfe4,this[_0x1b156f(0x3c9)]=_0xdb181d;}[_0x354c45(0x348)](){const _0x139aaa=_0x354c45,_0x2b1384=super[_0x139aaa(0x348)]();return _0x2b1384[_0x139aaa(0x145)]=_0x4c63d1=>this['_docTransformIMECacheService'][_0x139aaa(0x2f5)](_0x4c63d1),_0x2b1384[_0x139aaa(0x2ad)]=_0x47728e=>this[_0x139aaa(0x105)][_0x139aaa(0x3b1)](_0x47728e),_0x2b1384['onSyncEditingCollabCursor']=_0x2bd154=>this[_0x139aaa(0x3c9)]['syncEditingCollabCursor'](_0x2bd154),_0x2b1384[_0x139aaa(0x366)]=_0x275d67=>this[_0x139aaa(0x278)][_0x139aaa(0x1df)](_0x275d67),_0x2b1384;}async[_0x354c45(0x330)](){const _0x2d988f=_0x354c45,_0x5d81e1=await super[_0x2d988f(0x330)]();return this[_0x2d988f(0x1a0)](this['_commandService']['onCommandExecuted']((_0xfa90b2,_0x5ab1f3)=>{const _0x249a9f=_0x2d988f;if(_0xfa90b2[_0x249a9f(0x354)]!==_0x3b75d4[_0x249a9f(0x231)]||_0x5ab1f3!=null&&_0x5ab1f3[_0x249a9f(0x10d)]||_0x5ab1f3!=null&&_0x5ab1f3[_0x249a9f(0xb8)])return;const _0x21dcab=_0xfa90b2['params'];if((_0x21dcab==null?void 0x0:_0x21dcab[_0x249a9f(0x393)])!==this[_0x249a9f(0x22b)])return;let _0x5e9c0a=_0xfa90b2;if(_0x5e9c0a['id']===_0xc37a7a['id']){const _0x307249=_0x5e9c0a[_0x249a9f(0x29e)];_0x5e9c0a={'id':_0xc37a7a['id'],'type':_0x3b75d4[_0x249a9f(0x231)],'params':{'unitId':_0x307249[_0x249a9f(0x393)],'actions':_0x307249[_0x249a9f(0x199)],'textRanges':null}};}const _0x272433=this[_0x249a9f(0x1bb)][_0x249a9f(0x323)][_0x249a9f(0x287)](this['_compressMutationService'][_0x249a9f(0x323)]['getInterceptPoints']()[_0x249a9f(0x1f9)])([_0x5e9c0a],null)||[_0x5e9c0a];this[_0x249a9f(0x10c)](_0x272433[0x0]);})),_0x5d81e1;}};Et=st([p(0x3,_0x229f6b(_0x3b06f9)),p(0x4,_0x229f6b(D)),p(0x5,_0x229f6b(_0x182351)),p(0x6,_0x229f6b(_0x5e486d)),p(0x7,_0x229f6b(_0x2d6ffb)),p(0x8,_0x229f6b(_0x552f88)),p(0x9,_0x229f6b(Je)),p(0xa,_0x229f6b(ze)),p(0xb,_0x229f6b(xt)),p(0xc,_0x4491a7),p(0xd,_0x151749),p(0xe,_0x5963f9),p(0xf,_0x4c56be),p(0x10,_0x1ed7ac(tt))],Et);let Ct=class extends Ze{constructor(_0x3752f2,_0x10f095,_0x465786,_0xa6151d,_0x2718d9,_0x4a74e1,_0xd0e83a,_0x3c619c,_0x41ecef,_0x14154f,_0x357f29,_0x1ab012,_0x48608d,_0x5b80a8){const _0x3c6331=_0x354c45;super(_0x3752f2,_0x10f095,_0x465786,_0xa6151d,_0x2718d9,_0x4a74e1,_0xd0e83a,_0x3c619c,_0x14154f,_0x357f29,_0x1ab012,_0x48608d,_0x5b80a8),this[_0x3c6331(0x22b)]=_0x3752f2,this[_0x3c6331(0x354)]=_0x10f095,this['session']=_0x465786,this[_0x3c6331(0x17c)]=_0x41ecef;}[_0x354c45(0x348)](){const _0x2e37ba=_0x354c45,_0x28ea72=super[_0x2e37ba(0x348)]();return _0x28ea72[_0x2e37ba(0x2ad)]=_0x208db5=>this[_0x2e37ba(0x17c)][_0x2e37ba(0x3b1)](_0x208db5),_0x28ea72;}async[_0x354c45(0x330)](){const _0x14ddb6=_0x354c45,_0x132174=await super[_0x14ddb6(0x330)]();return this['disposeWithMe'](this[_0x14ddb6(0x19f)][_0x14ddb6(0x372)]((_0x1475d0,_0x48da4e)=>{const _0x1b5576=_0x14ddb6;if(_0x1475d0[_0x1b5576(0x354)]!==_0x3b75d4[_0x1b5576(0x231)]||_0x48da4e!=null&&_0x48da4e[_0x1b5576(0x10d)]||_0x48da4e!=null&&_0x48da4e[_0x1b5576(0xb8)])return;const _0x58d4e6=_0x1475d0['params'];if((_0x58d4e6==null?void 0x0:_0x58d4e6[_0x1b5576(0x393)])!==this['unitID'])return;const _0x56234a=_0x1475d0,_0x20d887=this[_0x1b5576(0x1bb)][_0x1b5576(0x323)][_0x1b5576(0x287)](this[_0x1b5576(0x1bb)][_0x1b5576(0x323)][_0x1b5576(0x27f)]()[_0x1b5576(0x1f9)])([_0x56234a],null)||[_0x56234a];this[_0x1b5576(0x10c)](_0x20d887[0x0]);})),_0x132174;}};Ct=st([p(0x3,_0x229f6b(_0x3b06f9)),p(0x4,_0x229f6b(D)),p(0x5,_0x229f6b(_0x182351)),p(0x6,_0x229f6b(_0x5e486d)),p(0x7,_0x229f6b(_0x2d6ffb)),p(0x8,_0x229f6b(qe)),p(0x9,_0x4491a7),p(0xa,_0x151749),p(0xb,_0x5963f9),p(0xc,_0x4c56be),p(0xd,_0x1ed7ac(tt))],Ct);const as=[_0x354c45(0x3c2),'jiqing500',_0x354c45(0x30b),_0x354c45(0xea),_0x354c45(0x22c),_0x354c45(0x12c)];class Ht extends _0x48941f{constructor(){const _0x22127c=_0x354c45;super(...arguments),_(this,_0x22127c(0x203),new Map()),_(this,_0x22127c(0x25b),0x0);}[_0x354c45(0x9e)](_0x239d37){const _0x377c84=_0x354c45;if(this[_0x377c84(0x203)][_0x377c84(0x340)](_0x239d37))return this[_0x377c84(0x203)][_0x377c84(0x309)](_0x239d37);const _0x2ee321=as[this[_0x377c84(0x25b)]];return this[_0x377c84(0x25b)]=(this['_colorIndex']+0x1)%as[_0x377c84(0x16f)],this['_assignedColors'][_0x377c84(0xdd)](_0x239d37,_0x2ee321),_0x2ee321;}}var or=Object['defineProperty'],ar=Object[_0x354c45(0x3cf)],cr=(_0x25efb0,_0x18b171,_0x36dc9d,_0x21657c)=>{const _0x13e3e5=_0x354c45;for(var _0x476959=_0x21657c>0x1?void 0x0:_0x21657c?ar(_0x18b171,_0x36dc9d):_0x18b171,_0x122e68=_0x25efb0[_0x13e3e5(0x16f)]-0x1,_0x346a6c;_0x122e68>=0x0;_0x122e68--)(_0x346a6c=_0x25efb0[_0x122e68])&&(_0x476959=(_0x21657c?_0x346a6c(_0x18b171,_0x36dc9d,_0x476959):_0x346a6c(_0x476959))||_0x476959);return _0x21657c&&_0x476959&&or(_0x18b171,_0x36dc9d,_0x476959),_0x476959;},le=(_0x10519b,_0x4bd79a)=>(_0x5c07f7,_0x2b9f0d)=>_0x4bd79a(_0x5c07f7,_0x2b9f0d,_0x10519b);const hr=0x12c,_r=0x64,lr=()=>{let _0x42dda3=[],_0x2d23d0=!0x1;return _0x257dc9=>{_0x42dda3['push'](_0x257dc9),_0x2d23d0||(_0x2d23d0=!0x0,setTimeout(()=>{const _0x3c4663=_0x5b0c;_0x42dda3[_0x3c4663(0x18d)](_0x11e2bc=>_0x11e2bc()),_0x42dda3=[],_0x2d23d0=!0x1;}));};};let bt=class extends _0x5aeadb{constructor(_0xa71863,_0x2617cf,_0x198054,_0x3d94ba,_0x33d097,_0x493daf,_0x2dabb1,_0x6315d9){const _0x538201=_0x354c45;super(),_(this,_0x538201(0x14d),!0x1),_(this,_0x538201(0x330),!0x1),_(this,'_cursorInfo$',new _0x421821(new Map())),_(this,_0x538201(0x8f),this['_cursorInfo$'][_0x538201(0x209)]()),_(this,_0x538201(0x3b3),new _0x421821([])),_(this,_0x538201(0x3d4),this[_0x538201(0x3b3)][_0x538201(0x1e1)](_0x68cfe8(hr))),_(this,'_updateLocalCursor',_0x2a035c((_0x54823e,_0x384fd0)=>{const _0x1dc9dd=_0x538201,_0x399072={'eventID':_0x363b50[_0x1dc9dd(0x251)],'data':{'unitID':this[_0x1dc9dd(0x22b)],'memberID':this[_0x1dc9dd(0x2fa)][_0x1dc9dd(0x2f6)](),'selection':_0x45f111(_0x54823e,_0x384fd0[_0x1dc9dd(0x20c)])}};this[_0x1dc9dd(0x2fa)][_0x1dc9dd(0x3b4)](_0x399072,this['unitID']);},_r)),(this[_0x538201(0x22b)]=_0xa71863,this[_0x538201(0x2fa)]=_0x2617cf,this['_injector']=_0x198054,this[_0x538201(0x122)]=_0x3d94ba,this['_memberService']=_0x33d097,this[_0x538201(0x134)]=_0x493daf,this[_0x538201(0x19f)]=_0x2dabb1,this[_0x538201(0x2c8)]=_0x6315d9);}get[_0x354c45(0x32e)](){const _0x1fa221=_0x354c45;return this[_0x1fa221(0x387)]['getValue']();}get[_0x354c45(0x164)](){const _0x12e7a7=_0x354c45;return this[_0x12e7a7(0x3b3)][_0x12e7a7(0xe4)]();}[_0x354c45(0x220)](){const _0x3f4d1e=_0x354c45;super[_0x3f4d1e(0x220)](),this['_cursorInfo$'][_0x3f4d1e(0x2fe)](new Map()),this['_cursorInfo$'][_0x3f4d1e(0x1ec)](),this['_roomMembers$']['next']([]),this[_0x3f4d1e(0x3b3)]['complete']();}[_0x354c45(0x1ce)](){const _0x26db18=_0x354c45;this[_0x26db18(0x330)]||(this[_0x26db18(0x330)]=!0x0,this[_0x26db18(0x2fa)]['sessionStatus$'][_0x26db18(0x1e1)](_0x60ccde(this[_0x26db18(0x1a1)]))[_0x26db18(0x37e)](_0x464724=>{const _0x1fd131=_0x26db18;_0x464724===fe[_0x1fd131(0x10e)]?this['_toggleOnline']():this[_0x1fd131(0x96)]();}),this['_session'][_0x26db18(0x2c5)][_0x26db18(0x1e1)](_0x60ccde(this[_0x26db18(0x1a1)]))[_0x26db18(0x37e)](_0x5eb80b=>{const _0x20f5ee=_0x26db18,_0x3bb01e=_0x5eb80b['eventID'];_0x3bb01e===_0x363b50[_0x20f5ee(0x251)]&&this[_0x20f5ee(0x1cf)](_0x5eb80b),_0x3bb01e===_0x363b50[_0x20f5ee(0x180)]&&this[_0x20f5ee(0xfa)](_0x5eb80b);}),this[_0x26db18(0x17f)](),this[_0x26db18(0x1a0)](this[_0x26db18(0x19f)][_0x26db18(0x372)](_0x1e0901=>{const _0xc7945c=_0x26db18;if(this[_0xc7945c(0x14d)]&&_0x1e0901['id']===_0x1271d4['id']&&_0x1e0901[_0xc7945c(0x29e)][_0xc7945c(0x393)]===this['unitID']){const _0x44cd10=_0x1e0901[_0xc7945c(0x29e)];this[_0xc7945c(0x14b)](_0x44cd10[_0xc7945c(0x1e9)],_0x44cd10[_0xc7945c(0x2da)][0x0]);}})));}[_0x354c45(0x1cf)](_0x2ba2d6){const _0x1da9e6=_0x354c45;var _0x1a19c4,_0x571f07;const {memberID:_0x29faf7,selection:_0x12ce24}=_0x2ba2d6[_0x1da9e6(0x385)],{sheetName:_0x53517a,range:_0xdcaca0}=_0x36a58a(_0x12ce24),_0x5628e4={'name':(_0x571f07=(_0x1a19c4=this[_0x1da9e6(0x39b)]['getMember'](this['unitID'],_0x29faf7))==null?void 0x0:_0x1a19c4[_0x1da9e6(0x38c)])!=null?_0x571f07:'Unknown\x20user','range':this[_0x1da9e6(0x2d7)](_0x53517a,_0xdcaca0),'sheetID':_0x53517a,'color':this[_0x1da9e6(0x122)]['assignAColorForMemberID'](_0x29faf7),'selection':_0x12ce24},_0x1cf3d7=this[_0x1da9e6(0x32e)];_0x1cf3d7[_0x1da9e6(0xdd)](_0x29faf7,_0x5628e4),this['_cursorInfo$'][_0x1da9e6(0x2fe)](_0x1cf3d7);}[_0x354c45(0xfa)](_0x3587fd){const _0x5466f8=_0x354c45,{memberID:_0x373953}=_0x3587fd[_0x5466f8(0x385)],_0x2a6ac9=this[_0x5466f8(0x32e)];_0x2a6ac9[_0x5466f8(0x33a)](_0x373953),this[_0x5466f8(0x387)][_0x5466f8(0x2fe)](_0x2a6ac9);}[_0x354c45(0x2d7)](_0x414ac4,_0x2fad1d){const _0x4a61f0=_0x354c45;var _0x2853a5,_0x6e95ed;const _0x41239a=(_0x6e95ed=(_0x2853a5=this[_0x4a61f0(0x134)]['getUniverSheetInstance'](this['unitID']))==null?void 0x0:_0x2853a5[_0x4a61f0(0x176)](_0x414ac4))==null?void 0x0:_0x6e95ed[_0x4a61f0(0x3bc)]();return(_0x41239a==null?void 0x0:_0x41239a['find'](_0x148c4e=>_0x414956[_0x4a61f0(0x2f8)](_0x148c4e,_0x2fad1d)))||_0x2fad1d;}[_0x354c45(0x17f)](){const _0xb81cbc=_0x354c45,_0x18e5a4=new _0x57a20f(),_0x25686b=lr(),_0x4da4a7=()=>{const _0x1ded87=_0x5b0c;_0x18e5a4['dispose']();const _0x3538c3=(_0x366f6d,_0x14d98b,_0x8fb8ef,_0xf00d9)=>{const _0x354417=_0x5b0c;let _0x41fcec=[];switch(_0x366f6d['id']){case _0x38a0e8[_0x354417(0x87)]:{_0x41fcec=_0x1d6f0f(_0x366f6d,_0xf00d9);break;}case _0x38a0e8['DeleteRangeMoveUpCommandId']:{_0x41fcec=_0x15c769(_0x366f6d,_0xf00d9);break;}case _0x38a0e8[_0x354417(0x267)]:{_0x41fcec=_0x195831(_0x366f6d,_0xf00d9);break;}case _0x38a0e8[_0x354417(0x2dc)]:{_0x41fcec=_0x39bf3d(_0x366f6d,_0xf00d9);break;}case _0x38a0e8[_0x354417(0xbb)]:{_0x41fcec=_0x16d4b2(_0x366f6d,_0xf00d9);break;}case _0x38a0e8['InsertRowCommandId']:{_0x41fcec=_0x173a21(_0x366f6d,_0xf00d9);break;}case _0x38a0e8[_0x354417(0x1ef)]:{_0x41fcec=_0x75b893(_0x366f6d,_0xf00d9);break;}case _0x38a0e8[_0x354417(0x2de)]:{_0x41fcec=_0x59c9a2(_0x366f6d,_0xf00d9);break;}case _0x38a0e8[_0x354417(0x215)]:{_0x41fcec=_0x4e8b58(_0x366f6d,_0xf00d9);break;}}const _0x2e9c25=_0x2651bd(_0x41fcec,_0xf00d9),_0x39d2df=this['cursorInfo'][_0x354417(0x309)](_0x14d98b);if(_0x39d2df&&_0x2e9c25){const _0x11e001={..._0x39d2df,'range':_0x2e9c25};this[_0x354417(0x32e)]['set'](_0x14d98b,_0x11e001),_0x25686b(()=>{const _0x36a1b3=_0x354417,_0x8a401e=this[_0x36a1b3(0x2c8)]['registerRefRange'](_0x2e9c25,_0x3438a8=>(_0x8a401e[_0x36a1b3(0x220)](),_0x3538c3(_0x3438a8,_0x14d98b,_0x8fb8ef,_0x2e9c25)));_0x18e5a4[_0x36a1b3(0x264)](_0x8a401e);});}return{'redos':[],'undos':[]};};this[_0x1ded87(0x32e)]['forEach']((_0x3cab9c,_0x585343)=>{const _0x23365e=_0x1ded87,{range:_0x2c2aa1,sheetID:_0x3a86d0}=_0x3cab9c,_0x144105=this[_0x23365e(0x2c8)][_0x23365e(0x311)](_0x2c2aa1,_0x31d076=>(_0x144105[_0x23365e(0x220)](),_0x3538c3(_0x31d076,_0x585343,_0x3a86d0,_0x2c2aa1)));_0x18e5a4['add'](_0x144105);});};this[_0xb81cbc(0x1a0)](_0x681995(this['_cursorInfo$']['subscribe'](()=>{_0x4da4a7();})));}['_toggleOnline'](){const _0x21f488=_0x354c45;var _0x1235df,_0x597943;if(this[_0x21f488(0x14d)]=!0x0,((_0x1235df=this[_0x21f488(0x134)][_0x21f488(0x248)]())==null?void 0x0:_0x1235df[_0x21f488(0x3a7)]())!==this[_0x21f488(0x22b)])return;const _0x2a6395=(_0x597943=this[_0x21f488(0x259)][_0x21f488(0x309)](_0x22886c)['getCurrentSelections']())==null?void 0x0:_0x597943[0x0],_0x478b3f=this[_0x21f488(0x134)][_0x21f488(0x3a4)](_0x380445['UNIVER_SHEET'])['getActiveSheet']();_0x2a6395&&_0x478b3f&&this[_0x21f488(0x14b)](_0x478b3f[_0x21f488(0x13b)](),_0x2a6395);}[_0x354c45(0x96)](){const _0x25b549=_0x354c45;this[_0x25b549(0x14d)]=!0x1;}};bt=cr([le(0x2,_0x229f6b(_0x3b06f9)),le(0x3,_0x229f6b(Ht)),le(0x4,_0x229f6b(ne)),le(0x5,_0x14d401),le(0x6,_0x151749),le(0x7,_0x229f6b(_0x442fae))],bt);var ur=Object[_0x354c45(0xa3)],dr=Object['getOwnPropertyDescriptor'],mr=(_0xe6d8bb,_0x1632fc,_0x355c8e,_0x39b5cd)=>{for(var _0x594e0f=_0x39b5cd>0x1?void 0x0:_0x39b5cd?dr(_0x1632fc,_0x355c8e):_0x1632fc,_0x49818e=_0xe6d8bb['length']-0x1,_0x199d95;_0x49818e>=0x0;_0x49818e--)(_0x199d95=_0xe6d8bb[_0x49818e])&&(_0x594e0f=(_0x39b5cd?_0x199d95(_0x1632fc,_0x355c8e,_0x594e0f):_0x199d95(_0x594e0f))||_0x594e0f);return _0x39b5cd&&_0x594e0f&&ur(_0x1632fc,_0x355c8e,_0x594e0f),_0x594e0f;},te=(_0xcd1857,_0x18c4a8)=>(_0x2cd517,_0x356c1b)=>_0x18c4a8(_0x2cd517,_0x356c1b,_0xcd1857);const fr=0x12c,gr=0x64;let Rt=class extends _0x5aeadb{constructor(_0x32c125,_0x32a618,_0x285243,_0x2d925c,_0x7bed63,_0x3a9224,_0x371bbc,_0x48c871,_0xe76ef4){const _0x1cf3cd=_0x354c45;super(),_(this,'_online',!0x1),_(this,_0x1cf3cd(0x330),!0x1),_(this,_0x1cf3cd(0x387),new _0x421821(new Map())),_(this,_0x1cf3cd(0x8f),this[_0x1cf3cd(0x387)][_0x1cf3cd(0x209)]()),_(this,_0x1cf3cd(0x3b3),new _0x421821([])),_(this,_0x1cf3cd(0x3d4),this[_0x1cf3cd(0x3b3)]['pipe'](_0x68cfe8(fr))),_(this,_0x1cf3cd(0x14b),_0x2a035c(_0x3a48d7=>{const _0x3dfba1=_0x1cf3cd,_0xb8e85={'eventID':_0x363b50['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x3dfba1(0x2fa)]['getMemberID'](),'selection':ys(_0x3a48d7)}};this['_session']['send'](_0xb8e85,this[_0x3dfba1(0x22b)]);},gr)),(this[_0x1cf3cd(0x22b)]=_0x32c125,this[_0x1cf3cd(0x2fa)]=_0x32a618,this[_0x1cf3cd(0x259)]=_0x285243,this[_0x1cf3cd(0x122)]=_0x2d925c,this[_0x1cf3cd(0x39b)]=_0x7bed63,this[_0x1cf3cd(0x135)]=_0x3a9224,this['_transformService']=_0x371bbc,this[_0x1cf3cd(0x134)]=_0x48c871,this[_0x1cf3cd(0x19f)]=_0xe76ef4);}get[_0x354c45(0x32e)](){const _0x1c59de=_0x354c45;return this['_cursorInfo$'][_0x1c59de(0xe4)]();}get['roomMembers'](){const _0x2ae797=_0x354c45;return this[_0x2ae797(0x3b3)][_0x2ae797(0xe4)]();}[_0x354c45(0x220)](){const _0x243866=_0x354c45;super[_0x243866(0x220)](),this[_0x243866(0x387)]['next'](new Map()),this['_cursorInfo$'][_0x243866(0x1ec)](),this['_roomMembers$'][_0x243866(0x2fe)]([]),this[_0x243866(0x3b3)][_0x243866(0x1ec)]();}['init'](){const _0x40de5a=_0x354c45;this[_0x40de5a(0x330)]||(this[_0x40de5a(0x330)]=!0x0,this[_0x40de5a(0x2fa)]['sessionStatus$']['pipe'](_0x60ccde(this[_0x40de5a(0x1a1)]))[_0x40de5a(0x37e)](_0x3b4c0e=>{const _0x36a844=_0x40de5a;_0x3b4c0e===fe[_0x36a844(0x10e)]?this[_0x36a844(0x2cf)]():this[_0x36a844(0x96)]();}),this[_0x40de5a(0x2fa)][_0x40de5a(0x2c5)][_0x40de5a(0x1e1)](_0x60ccde(this[_0x40de5a(0x1a1)]))['subscribe'](_0x295a3b=>{const _0x5a8ca8=_0x40de5a,_0x4e5250=_0x295a3b[_0x5a8ca8(0x2d3)];_0x4e5250===_0x363b50[_0x5a8ca8(0x251)]&&this[_0x5a8ca8(0x1cf)](_0x295a3b),_0x4e5250===_0x363b50['USERS_LEAVE']&&this[_0x5a8ca8(0xfa)](_0x295a3b);}),this['disposeWithMe'](this[_0x40de5a(0x19f)][_0x40de5a(0x372)](_0x16479e=>{const _0x47cea8=_0x40de5a,_0x3f6928=_0x16479e[_0x47cea8(0x29e)];_0x3f6928!=null&&this[_0x47cea8(0x14d)]&&_0x16479e['id']===_0x2c4dfe['id']&&_0x3f6928[_0x47cea8(0x393)]===this[_0x47cea8(0x22b)]&&_0x3f6928[_0x47cea8(0x2e9)]===!0x1&&this[_0x47cea8(0x14b)](_0x3f6928[_0x47cea8(0x21e)]);})),this[_0x40de5a(0x135)]['collabCursorState$'][_0x40de5a(0x1e1)](_0x60ccde(this['dispose$']))[_0x40de5a(0x37e)](_0x23054d=>{const _0x17b95b=_0x40de5a;if((_0x23054d==null?void 0x0:_0x23054d[_0x17b95b(0x22b)])!==this[_0x17b95b(0x22b)])return;const _0x3028a3={'eventID':_0x363b50[_0x17b95b(0x251)],'data':_0x23054d};this[_0x17b95b(0x1cf)](_0x3028a3);}),this[_0x40de5a(0x1a0)](this[_0x40de5a(0x19f)][_0x40de5a(0x372)](_0x26e56b=>{const _0x1c5d6a=_0x40de5a;if(_0x26e56b['params']==null)return;const _0x124710=_0x26e56b['params'];if(_0x26e56b['id']!==_0xc37a7a['id']||_0x124710[_0x1c5d6a(0x393)]!==this['unitID'])return;const _0x385974={'id':_0x1c5d6a(0x21d),'params':_0x124710},_0x5450d6=this[_0x1c5d6a(0x32e)];for(const [_0x10e73b,_0x2b2b3a]of _0x5450d6){const _0x4315bb={'id':_0x1c5d6a(0x21d),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x2b2b3a[_0x1c5d6a(0x21e)]}},_0x5bbe5a=this['_transformService'][_0x1c5d6a(0x148)](_0x385974,_0x4315bb,!0x1);if(_0x5e29e1(_0x5bbe5a))throw _0x5bbe5a[_0x1c5d6a(0x35c)];_0x5450d6['set'](_0x10e73b,{..._0x2b2b3a,'ranges':_0x5bbe5a[_0x1c5d6a(0x31e)][_0x1c5d6a(0x29e)][_0x1c5d6a(0x17d)]});}queueMicrotask(()=>{const _0x5a50df=_0x1c5d6a;this[_0x5a50df(0x387)]['next'](_0x5450d6);});})));}[_0x354c45(0x1cf)](_0x5e5604){const _0x107bf5=_0x354c45;var _0x20dbc4,_0x2f4985;const {memberID:_0x5962b7,selection:_0x1e9415}=_0x5e5604['data'],_0x167f18=Xn(_0x1e9415),_0x218ab8=(_0x2f4985=(_0x20dbc4=this[_0x107bf5(0x39b)][_0x107bf5(0x39a)](this[_0x107bf5(0x22b)],_0x5962b7))==null?void 0x0:_0x20dbc4[_0x107bf5(0x38c)])!=null?_0x2f4985:_0x107bf5(0x25d),_0x1daa1d={'color':this[_0x107bf5(0x122)][_0x107bf5(0x9e)](_0x5962b7),'name':_0x218ab8,'ranges':_0x167f18},_0x108043=this[_0x107bf5(0x32e)];_0x108043[_0x107bf5(0xdd)](_0x5962b7,_0x1daa1d),this['_cursorInfo$'][_0x107bf5(0x2fe)](_0x108043);}[_0x354c45(0xfa)](_0x2d8ac5){const _0x1c9591=_0x354c45,{memberID:_0x2e2598}=_0x2d8ac5['data'],_0xf64191=this[_0x1c9591(0x32e)];_0xf64191[_0x1c9591(0x33a)](_0x2e2598),this[_0x1c9591(0x387)]['next'](_0xf64191);}[_0x354c45(0x2cf)](){const _0x434534=_0x354c45;var _0x5e5ed8;if(this[_0x434534(0x14d)]=!0x0,((_0x5e5ed8=this['_univerInstanceService'][_0x434534(0x248)]())==null?void 0x0:_0x5e5ed8[_0x434534(0x3a7)]())!==this[_0x434534(0x22b)])return;const _0x166d00=this['_injector'][_0x434534(0x309)](_0x559154)[_0x434534(0x1bf)](),_0x3a117d=_0x166d00==null?void 0x0:_0x166d00['map'](_0x1b1aa9);Array[_0x434534(0x11f)](_0x3a117d)&&_0x3a117d['length']>0x0&&this[_0x434534(0x14b)](_0x3a117d);}[_0x354c45(0x96)](){const _0x2789d1=_0x354c45;this[_0x2789d1(0x14d)]=!0x1;}};Rt=mr([te(0x2,_0x229f6b(_0x3b06f9)),te(0x3,_0x229f6b(Ht)),te(0x4,_0x229f6b(ne)),te(0x5,_0x229f6b(xt)),te(0x6,_0x5c9e6a),te(0x7,_0x14d401),te(0x8,_0x151749)],Rt);var Sr=Object[_0x354c45(0xa3)],pr=Object[_0x354c45(0x3cf)],vr=(_0x59ba2d,_0x366e48,_0x580b60,_0x38d04b)=>{const _0x1363c3=_0x354c45;for(var _0x366e75=_0x38d04b>0x1?void 0x0:_0x38d04b?pr(_0x366e48,_0x580b60):_0x366e48,_0x356151=_0x59ba2d[_0x1363c3(0x16f)]-0x1,_0x5a272f;_0x356151>=0x0;_0x356151--)(_0x5a272f=_0x59ba2d[_0x356151])&&(_0x366e75=(_0x38d04b?_0x5a272f(_0x366e48,_0x580b60,_0x366e75):_0x5a272f(_0x366e75))||_0x366e75);return _0x38d04b&&_0x366e75&&Sr(_0x366e48,_0x580b60,_0x366e75),_0x366e75;},ct=(_0x93b3fb,_0x2ffaf2)=>(_0x973f60,_0x50181d)=>_0x2ffaf2(_0x973f60,_0x50181d,_0x93b3fb);let ge=class extends _0x5aeadb{constructor(_0x5b43f9,_0x31ba7d,_0x42de35){const _0x31cf1e=_0x354c45;super(),_(this,_0x31cf1e(0x2f0),new Map()),_(this,_0x31cf1e(0x35b),new _0x2b4845()),(this[_0x31cf1e(0x134)]=_0x5b43f9,this[_0x31cf1e(0x259)]=_0x31ba7d,this['_collabSessionService']=_0x42de35,this[_0x31cf1e(0x330)]());}['dispose'](){const _0x3f24cb=_0x354c45;super['dispose'](),this[_0x3f24cb(0x35b)][_0x3f24cb(0x1ec)](),this[_0x3f24cb(0x2f0)][_0x3f24cb(0x18d)](_0x2f30b0=>_0x2f30b0[_0x3f24cb(0x220)]());}[_0x354c45(0x240)](_0x1fc3d8){const _0x2446fe=_0x354c45;return this[_0x2446fe(0x2f0)]['has'](_0x1fc3d8)?this['_entities'][_0x2446fe(0x309)](_0x1fc3d8)[_0x2446fe(0x8f)]:this[_0x2446fe(0x35b)]['pipe'](_0x1317c0(_0x5c9343=>_0x5c9343[_0x2446fe(0x22b)]===_0x1fc3d8),_0x3f577e(_0x599eb3=>_0x599eb3[_0x2446fe(0x8f)]));}[_0x354c45(0x330)](){const _0x45914d=_0x354c45;this['_univerInstanceService'][_0x45914d(0xcc)](_0x380445[_0x45914d(0x31c)])[_0x45914d(0x1e1)](_0x60ccde(this[_0x45914d(0x1a1)]))[_0x45914d(0x37e)](async _0x4deec0=>{const _0x201531=_0x45914d,_0x2952a9=_0x4deec0[_0x201531(0x3a7)](),_0x144435=await this['_startSheetCollabCursor'](_0x2952a9);this['_entityInit$'][_0x201531(0x2fe)](_0x144435),this[_0x201531(0x2f0)]['set'](_0x2952a9,_0x144435);}),this['_univerInstanceService'][_0x45914d(0xcc)](_0x380445[_0x45914d(0x30e)])[_0x45914d(0x1e1)](_0x60ccde(this[_0x45914d(0x1a1)]))[_0x45914d(0x1e1)](_0x1317c0(_0x13f716=>!_0x13f716[_0x45914d(0x3a7)]()['startsWith']('__')))[_0x45914d(0x37e)](async _0x1994e5=>{const _0x5ad3ec=_0x45914d,_0x3793ea=_0x1994e5[_0x5ad3ec(0x3a7)](),_0x13ab80=await this[_0x5ad3ec(0xe2)](_0x3793ea);this[_0x5ad3ec(0x35b)][_0x5ad3ec(0x2fe)](_0x13ab80),this[_0x5ad3ec(0x2f0)][_0x5ad3ec(0xdd)](_0x3793ea,_0x13ab80);}),_0x5b30b2(this[_0x45914d(0x134)][_0x45914d(0x38d)](_0x380445[_0x45914d(0x30e)]),this[_0x45914d(0x134)]['getTypeOfUnitDisposed$'](_0x380445[_0x45914d(0x31c)]))['pipe'](_0x60ccde(this[_0x45914d(0x1a1)]))[_0x45914d(0x37e)](_0x27e5ee=>{const _0x591ccf=_0x45914d,_0x2e46d1=_0x27e5ee['getUnitId'](),_0x323147=this['_entities'][_0x591ccf(0x309)](_0x2e46d1);_0x323147&&(_0x323147[_0x591ccf(0x220)](),this[_0x591ccf(0x2f0)][_0x591ccf(0x33a)](_0x2e46d1));});}async['_startSheetCollabCursor'](_0xc5585a){const _0x20e40d=_0x354c45,_0x201f76=await this[_0x20e40d(0x184)][_0x20e40d(0x258)](_0xc5585a),_0x462af6=this[_0x20e40d(0x259)]['createInstance'](bt,_0xc5585a,_0x201f76);return _0x462af6['init'](),_0x462af6;}async['_startDocCollabCursor'](_0x4cb4f4){const _0x41888e=_0x354c45,_0x34bded=await this['_collabSessionService'][_0x41888e(0x258)](_0x4cb4f4),_0x243c19=this[_0x41888e(0x259)]['createInstance'](Rt,_0x4cb4f4,_0x34bded);return _0x243c19[_0x41888e(0x1ce)](),_0x243c19;}};ge=vr([_0x5c1b58(_0x21b2c3['Starting'],ge),ct(0x0,_0x14d401),ct(0x1,_0x229f6b(_0x3b06f9)),ct(0x2,_0x229f6b(pe))],ge);const ye=0x14,cs=0xc8,ht=0x4,Ir=0x5;function Er(_0x263a34,_0x7691e1){const _0x352fc1=_0x354c45;let {radius:_0x395d5d,width:_0x146d21,height:_0x19004f}=_0x7691e1;_0x395d5d=_0x395d5d!=null?_0x395d5d:0x0,_0x146d21=_0x146d21!=null?_0x146d21:0x1e,_0x19004f=_0x19004f!=null?_0x19004f:0x1e;let _0x3948a1=0x0,_0xcd8809=0x0,_0x192aac=0x0;_0x3948a1=_0xcd8809=_0x192aac=Math[_0x352fc1(0xb2)](_0x395d5d,_0x146d21/0x2,_0x19004f/0x2),_0x263a34[_0x352fc1(0x39d)](),_0x263a34[_0x352fc1(0x324)](_0x3948a1,0x0),_0x263a34['lineTo'](_0x146d21-_0xcd8809,0x0),_0x263a34['arc'](_0x146d21-_0xcd8809,_0xcd8809,_0xcd8809,Math['PI']*0x3/0x2,0x0,!0x1),_0x263a34[_0x352fc1(0x112)](_0x146d21,_0x19004f-_0x192aac),_0x263a34[_0x352fc1(0xf6)](_0x146d21-_0x192aac,_0x19004f-_0x192aac,_0x192aac,0x0,Math['PI']/0x2,!0x1),_0x263a34[_0x352fc1(0x112)](0x0,_0x19004f),_0x263a34[_0x352fc1(0x112)](0x0,_0x3948a1),_0x263a34[_0x352fc1(0xf6)](_0x3948a1,_0x3948a1,_0x3948a1,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x263a34[_0x352fc1(0x34d)](),_0x7691e1['fill']&&(_0x263a34[_0x352fc1(0xfd)](),_0x263a34['fillStyle']=_0x7691e1[_0x352fc1(0x350)],_0x7691e1[_0x352fc1(0x2bc)]===_0x352fc1(0x312)?_0x263a34[_0x352fc1(0x350)]('evenodd'):_0x263a34[_0x352fc1(0x350)](),_0x263a34[_0x352fc1(0x101)]());}class it extends _0x2ccc4b{constructor(_0x23016d,_0x5e73c3){const _0x194a6e=_0x354c45;super(_0x23016d,_0x5e73c3),_(this,_0x194a6e(0x3d0)),_(this,_0x194a6e(0x296)),(this[_0x194a6e(0x3d0)]=_0x5e73c3==null?void 0x0:_0x5e73c3[_0x194a6e(0x3d0)],this[_0x194a6e(0x296)]=_0x5e73c3==null?void 0x0:_0x5e73c3[_0x194a6e(0x296)]);}static['drawWith'](_0x30102a,_0x45ed59){const _0x17f2f8=_0x354c45,{text:_0x2dab10,color:_0x2c23f6}=_0x45ed59;_0x30102a[_0x17f2f8(0xfd)](),_0x30102a[_0x17f2f8(0x347)]=_0x17f2f8(0x26b);const _0xe8865a=_0x30102a[_0x17f2f8(0x2ea)](_0x2dab10)[_0x17f2f8(0x327)],_0x14bb4e=Math['min'](_0xe8865a+0x2*ht,cs);Er(_0x30102a,{'height':ye,'radius':0x4,'width':_0x14bb4e,'fill':_0x2c23f6,'evented':!0x1}),_0x30102a[_0x17f2f8(0x27e)]=_0x17f2f8(0x3c6);const _0x10419c=ht,_0x1a4c9f=ye-Ir,_0x37e9c6=cs-0x2*ht;if(_0xe8865a>_0x37e9c6){let _0x2b7048='',_0x5ab3b6=0x0;for(const _0x9f35b1 of _0x2dab10){const _0x956784=_0x30102a[_0x17f2f8(0x2ea)](_0x9f35b1)[_0x17f2f8(0x327)];if(_0x5ab3b6+_0x956784<=_0x37e9c6-_0x30102a['measureText'](_0x17f2f8(0x3ba))['width'])_0x2b7048+=_0x9f35b1,_0x5ab3b6+=_0x956784;else{_0x2b7048+='...';break;}}_0x30102a[_0x17f2f8(0x349)](_0x2b7048,_0x10419c,_0x1a4c9f);}else _0x30102a['fillText'](_0x2dab10,_0x10419c,_0x1a4c9f);_0x30102a[_0x17f2f8(0x101)]();}[_0x354c45(0x3a2)](_0x3684de){const _0x4e5d74=_0x354c45;it[_0x4e5d74(0xb7)](_0x3684de,this);}}const Cr=0x1,br=1.5;class Rr extends _0x2ccc4b{constructor(_0x3f8f2e,_0x161f2e){const _0x20d781=_0x354c45;super(_0x3f8f2e,_0x161f2e),_(this,_0x20d781(0x2ee)),_(this,_0x20d781(0x2e8),!0x1),_(this,'_range'),_(this,'_name',''),_(this,_0x20d781(0x1ae),_0x20d781(0x24d)),_(this,_0x20d781(0x20e)),(_0x161f2e&&this['setShapeProps'](_0x161f2e),this[_0x20d781(0x25c)]['subscribeEvent'](()=>this[_0x20d781(0x2d5)]({'hovered':!0x0})),this[_0x20d781(0x241)][_0x20d781(0xe5)](()=>this[_0x20d781(0x2d5)]({'hovered':!0x1})));}[_0x354c45(0x2d5)](_0x14ebf7){const _0x170227=_0x354c45;var _0x2affc3,_0x1f3457,_0x1035f1,_0x522b38,_0x4b9957,_0x1e946a;this[_0x170227(0x2ee)]=(_0x2affc3=_0x14ebf7[_0x170227(0x3d0)])!=null?_0x2affc3:this[_0x170227(0x2ee)],this['_hovered']=(_0x1f3457=_0x14ebf7[_0x170227(0x375)])!=null?_0x1f3457:this['_hovered'],this[_0x170227(0x1b8)]=(_0x1035f1=_0x14ebf7[_0x170227(0x20c)])!=null?_0x1035f1:this[_0x170227(0x1b8)],this[_0x170227(0x2c2)]=(_0x522b38=_0x14ebf7[_0x170227(0x38c)])!=null?_0x522b38:this[_0x170227(0x2c2)],this[_0x170227(0x1ae)]=(_0x4b9957=_0x14ebf7[_0x170227(0x1e0)])!=null?_0x4b9957:this[_0x170227(0x1ae)],this[_0x170227(0x20e)]=(_0x1e946a=_0x14ebf7['backgroundColor'])!=null?_0x1e946a:this[_0x170227(0x20e)],this[_0x170227(0x1ee)]({'width':_0x14ebf7['width'],'height':_0x14ebf7[_0x170227(0x299)]});}[_0x354c45(0x18b)](_0x45cc38){const _0x2f8b29=_0x354c45,{row:_0x505a9f,column:_0x4ca6db}=_0x45cc38;if(_0x505a9f>=this[_0x2f8b29(0x1b8)]['startRow']&&_0x505a9f<=this[_0x2f8b29(0x1b8)][_0x2f8b29(0xbc)]&&_0x4ca6db>=this[_0x2f8b29(0x1b8)][_0x2f8b29(0x307)]&&_0x4ca6db<=this[_0x2f8b29(0x1b8)][_0x2f8b29(0x121)]){this[_0x2f8b29(0x2d5)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x354c45(0x2ff)](_0x7267e1){return!0x1;}['_draw'](_0x31b9d8){const _0x5377e6=_0x354c45;_0x222909[_0x5377e6(0xb7)](_0x31b9d8,{'width':this[_0x5377e6(0x327)],'height':this[_0x5377e6(0x299)],'strokeWidth':br,'stroke':this[_0x5377e6(0x2ee)],'evented':!0x1,'fill':this[_0x5377e6(0x20e)]}),this[_0x5377e6(0x2e8)]&&(_0x31b9d8[_0x5377e6(0xfd)](),_0x31b9d8['transform'](0x1,0x0,0x0,0x1,this[_0x5377e6(0x327)],this['_labelPosition']===_0x5377e6(0xd9)?0x0:-ye),it[_0x5377e6(0xb7)](_0x31b9d8,{'text':this[_0x5377e6(0x2c2)],'color':this[_0x5377e6(0x2ee)]}),_0x31b9d8['restore']());}}var Tr=Object['defineProperty'],Or=Object[_0x354c45(0x3cf)],Dr=(_0x285b75,_0x1bb2c3,_0x3d2cb,_0x33eac8)=>{const _0x199e36=_0x354c45;for(var _0x826dc6=_0x33eac8>0x1?void 0x0:_0x33eac8?Or(_0x1bb2c3,_0x3d2cb):_0x1bb2c3,_0xc85423=_0x285b75[_0x199e36(0x16f)]-0x1,_0x59bffa;_0xc85423>=0x0;_0xc85423--)(_0x59bffa=_0x285b75[_0xc85423])&&(_0x826dc6=(_0x33eac8?_0x59bffa(_0x1bb2c3,_0x3d2cb,_0x826dc6):_0x59bffa(_0x826dc6))||_0x826dc6);return _0x33eac8&&_0x826dc6&&Tr(_0x1bb2c3,_0x3d2cb,_0x826dc6),_0x826dc6;},_t=(_0x8c7a3d,_0x3c3f76)=>(_0x28f5e8,_0xbf6f9a)=>_0x3c3f76(_0x28f5e8,_0xbf6f9a,_0x8c7a3d);const Pr=0x1389;let Tt=class extends _0x5aeadb{constructor(_0x39eafa,_0x3a4330,_0x546c95,_0x406cb9){const _0x2d9490=_0x354c45;super(),_(this,'_cursors',new Set()),_(this,_0x2d9490(0xee),null),(this[_0x2d9490(0x321)]=_0x39eafa,this[_0x2d9490(0x1d5)]=_0x3a4330,this['_collabCursorController']=_0x546c95,this[_0x2d9490(0x30c)]=_0x406cb9,this[_0x2d9490(0x330)]());}[_0x354c45(0x330)](){const _0x3f378e=_0x354c45;this['_sheetSkeletonManagerService']['currentSkeleton$']['pipe'](_0xc21920(this[_0x3f378e(0x1a1)]),_0x3f4a38(_0x146d78=>{const _0x5bff49=_0x3f378e;if(_0x146d78){const _0x1e2bca=_0x146d78[_0x5bff49(0x266)];return _0x4aa21b(this[_0x5bff49(0x1ff)][_0x5bff49(0x240)](this['_context'][_0x5bff49(0x393)]),this['_themeService'][_0x5bff49(0xa7)])[_0x5bff49(0x1e1)](_0x1b7b12(([_0x2fc37d,_0x366483])=>{const _0x5614ba=_0x5bff49,_0x507400=new Map();return _0x2fc37d[_0x5614ba(0x18d)]((_0x52808c,_0x2b2c3f)=>{const _0x9fb429=_0x5614ba;if(_0x52808c[_0x9fb429(0x332)]===_0x1e2bca){const _0x1b1b25={..._0x52808c};_0x1b1b25[_0x9fb429(0x3d0)]=_0x366483[_0x52808c[_0x9fb429(0x3d0)]],_0x507400['set'](_0x2b2c3f,_0x1b1b25);}}),{'skeleton':_0x146d78,'cursors':_0x507400};}));}return _0x186ef7({'skeleton':null,'cursors':new Map()});}))[_0x3f378e(0x37e)](({skeleton:_0x5b5682,cursors:_0x264332})=>{const _0x45e991=_0x3f378e;this['_removeCollabCursors'](),_0x5b5682&&this[_0x45e991(0xfb)](_0x5b5682,_0x264332);}),this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x3f378e(0x37e)](_0x3cf2ac=>{const _0x32c7e1=_0x3f378e;if(_0x3cf2ac==null)return;const {skeleton:_0xb4c855}=_0x3cf2ac,{scene:_0x525594}=this['_context'];_0x525594[_0x32c7e1(0x268)][_0x32c7e1(0xe5)](_0x2a035c(_0x563d7c=>{const _0x351bc6=_0x32c7e1;var _0x332eaa,_0x2702c8;const {offsetX:_0x56d1ac,offsetY:_0x6d0ba1}=_0x563d7c,{x:_0x580d54,y:_0x1190a9}=_0x525594[_0x351bc6(0x93)](_0x569e56[_0x351bc6(0x147)]([_0x56d1ac,_0x6d0ba1])),{scaleX:_0x1ff817,scaleY:_0x1f816b}=_0x525594[_0x351bc6(0x376)](),_0x4574f4=_0x525594[_0x351bc6(0x233)](_0x2ca4f8['VIEW_MAIN']),_0x2cdfd2=_0x525594['getVpScrollXYInfoByPosToVp'](_0x569e56['FromArray']([_0x580d54,_0x1190a9]),_0x4574f4),_0x48345e=_0xb4c855[_0x351bc6(0x326)](_0x56d1ac,_0x6d0ba1,_0x1ff817,_0x1f816b,_0x2cdfd2);((_0x332eaa=this[_0x351bc6(0xee)])==null?void 0x0:_0x332eaa[_0x351bc6(0x216)])===_0x48345e[_0x351bc6(0x216)]&&((_0x2702c8=this[_0x351bc6(0xee)])==null?void 0x0:_0x2702c8[_0x351bc6(0x2cb)])===_0x48345e['row']||this[_0x351bc6(0x1bc)][_0x351bc6(0x18d)](_0x52cdbd=>{_0x52cdbd['onMouseMove'](_0x48345e);});},0x64));});}['_updateCollabCursors'](_0x4eb825,_0x11d821){const _0xc443c3=_0x354c45;var _0x229d4e;const _0x325bdb=(_0x229d4e=this[_0xc443c3(0x1d5)][_0xc443c3(0xb6)]())==null?void 0x0:_0x229d4e[_0xc443c3(0x1d7)];if(!_0x325bdb)return;const _0x270b05=this['_getSheetObject']();if(!_0x270b05)return;this[_0xc443c3(0x1bc)][_0xc443c3(0x18d)](_0x1c5fec=>{_0x1c5fec['makeDirty']();});const {scene:_0x22eb30}=_0x270b05,_0x56d28d=wr(Array[_0xc443c3(0x247)](_0x11d821[_0xc443c3(0xc6)]()))[_0xc443c3(0x39f)](_0xb0710c=>{const _0x3b7e6f=_0xc443c3,{color:_0x5617a1,range:_0x34193a,name:_0x4b83e4,selection:_0x146b14,sheetID:_0x3d9474}=_0xb0710c,{startColumn:_0x4d292e,startRow:_0xe15401,endColumn:_0x10d518,endRow:_0x50ef61}=_0x34193a,_0x279215=_0x13de13(_0xe15401,_0x4d292e,_0x22eb30,_0x325bdb),_0x42a276=_0x13de13(_0x50ef61,_0x10d518,_0x22eb30,_0x325bdb),{columnHeaderHeightAndMarginTop:_0x2ce621}=_0x325bdb,{startX:_0x3d3022,startY:_0xc05792}=_0x279215,{endX:_0xd67738,endY:_0x211e57}=_0x42a276,_0x3bf13e=_0xd67738-_0x3d3022,_0x18b61e=_0x211e57-_0xc05792,_0x13fc34={'labelPosition':_0xc05792-_0x2ce621>=ye?_0x3b7e6f(0x24d):_0x3b7e6f(0xd9),'sheetID':_0x3d9474,'range':_0x34193a,'color':_0x5617a1,'name':_0x4b83e4,'selection':_0x146b14,'left':_0x3d3022,'top':_0xc05792,'width':_0x3bf13e,'height':_0x18b61e,'evented':!0x1,'zIndex':Pr};return new Rr(_0x4b83e4,_0x13fc34);});_0x22eb30[_0xc443c3(0x201)](_0x56d28d,Cr),this[_0xc443c3(0x1bc)]=new Set(_0x56d28d);}[_0x354c45(0x92)](){const _0x46a24f=_0x354c45;var _0x37acf7;(_0x37acf7=this[_0x46a24f(0x1bc)])==null||_0x37acf7[_0x46a24f(0x18d)](_0x2f5f3e=>_0x2f5f3e[_0x46a24f(0x220)]());}['_getSheetObject'](){const _0x39e958=_0x354c45;return _0x45a59d(this[_0x39e958(0x321)][_0x39e958(0x245)],this[_0x39e958(0x321)]);}};Tt=Dr([_t(0x1,_0x229f6b(_0x5f02cf)),_t(0x2,_0x229f6b(ge)),_t(0x3,_0x229f6b(_0x276c29))],Tt);function wr(_0x56b698){const _0x26fdd6=_0x354c45,_0x4aac8d=new Map();return _0x56b698[_0x26fdd6(0x18d)](_0x574b89=>{const _0x2c3fbb=_0x26fdd6;if(_0x4aac8d['has'](_0x574b89[_0x2c3fbb(0x1b3)])){const _0x1f8bfe=_0x4aac8d[_0x2c3fbb(0x309)](_0x574b89['selection']);_0x1f8bfe[_0x2c3fbb(0x38c)]+=',\x20'+_0x574b89[_0x2c3fbb(0x38c)];}else _0x4aac8d[_0x2c3fbb(0xdd)](_0x574b89[_0x2c3fbb(0x1b3)],_0x574b89);}),Array[_0x26fdd6(0x247)](_0x4aac8d['values']());}var U=function(){const _0x3f6ae7=_0x354c45;return U=Object['assign']||function(_0x131a8d){const _0x36893e=_0x5b0c;for(var _0x1155e5,_0x368918=0x1,_0x325e8a=arguments['length'];_0x368918<_0x325e8a;_0x368918++){_0x1155e5=arguments[_0x368918];for(var _0x37017b in _0x1155e5)Object['prototype']['hasOwnProperty'][_0x36893e(0x1b1)](_0x1155e5,_0x37017b)&&(_0x131a8d[_0x37017b]=_0x1155e5[_0x37017b]);}return _0x131a8d;},U[_0x3f6ae7(0x1a8)](this,arguments);},Nr=function(_0x1b8637,_0x3e93e4){const _0x56197f=_0x354c45;var _0x318104={};for(var _0x2b278c in _0x1b8637)Object[_0x56197f(0x120)][_0x56197f(0x198)][_0x56197f(0x1b1)](_0x1b8637,_0x2b278c)&&_0x3e93e4['indexOf'](_0x2b278c)<0x0&&(_0x318104[_0x2b278c]=_0x1b8637[_0x2b278c]);if(_0x1b8637!=null&&typeof Object[_0x56197f(0x386)]=='function'){for(var _0x23bf6e=0x0,_0x2b278c=Object[_0x56197f(0x386)](_0x1b8637);_0x23bf6e<_0x2b278c['length'];_0x23bf6e++)_0x3e93e4[_0x56197f(0x181)](_0x2b278c[_0x23bf6e])<0x0&&Object[_0x56197f(0x120)]['propertyIsEnumerable'][_0x56197f(0x1b1)](_0x1b8637,_0x2b278c[_0x23bf6e])&&(_0x318104[_0x2b278c[_0x23bf6e]]=_0x1b8637[_0x2b278c[_0x23bf6e]]);}return _0x318104;},kt=_0x3e44fc(function(_0x5ce5dd,_0x38b147){const _0x5384d2=_0x354c45;var _0x34511c=_0x5ce5dd[_0x5384d2(0x279)],_0x2499e8=_0x5ce5dd['id'],_0xabb7ed=_0x5ce5dd['className'],_0x26df33=_0x5ce5dd['extend'],_0x41cd61=Nr(_0x5ce5dd,[_0x5384d2(0x279),'id',_0x5384d2(0xcf),_0x5384d2(0xf5)]),_0x2f4069=_0x5384d2(0x2b8)[_0x5384d2(0x226)](_0x2499e8,'\x20')[_0x5384d2(0x226)](_0xabb7ed||'')[_0x5384d2(0xcd)](),_0x4ece10=_0x423195('_'[_0x5384d2(0x226)](Ur()));return $s(_0x34511c,''[_0x5384d2(0x226)](_0x2499e8),{'defIds':_0x34511c[_0x5384d2(0x189)],'idSuffix':_0x4ece10[_0x5384d2(0x342)]},U({'ref':_0x38b147,'className':_0x2f4069},_0x41cd61),_0x26df33);});function $s(_0x438eed,_0x217020,_0x248275,_0x4b999b,_0x4d467d){const _0x186f37=_0x354c45;return _0x787c2d(_0x438eed[_0x186f37(0x18f)],U(U({'key':_0x217020},Mr(_0x438eed,_0x248275,_0x4d467d)),_0x4b999b),(Ar(_0x438eed,_0x248275)[_0x186f37(0x1c8)]||[])['map'](function(_0x49a3d8,_0x3b0f1f){const _0x2108aa=_0x186f37;return $s(_0x49a3d8,''[_0x2108aa(0x226)](_0x217020,'-')[_0x2108aa(0x226)](_0x438eed[_0x2108aa(0x18f)],'-')[_0x2108aa(0x226)](_0x3b0f1f),_0x248275,void 0x0,_0x4d467d);}));}function Mr(_0x4be67e,_0x33860b,_0x1555e6){const _0x362ae7=_0x354c45;var _0x4f3bb1=U({},_0x4be67e['attrs']);_0x1555e6!=null&&_0x1555e6[_0x362ae7(0xe6)]&&_0x4f3bb1[_0x362ae7(0x350)]===_0x362ae7(0xe6)&&(_0x4f3bb1[_0x362ae7(0x350)]=_0x1555e6['colorChannel1']);var _0x3af8ab=_0x33860b[_0x362ae7(0x189)];return!_0x3af8ab||_0x3af8ab[_0x362ae7(0x16f)]===0x0||(_0x4be67e[_0x362ae7(0x18f)]===_0x362ae7(0x1e2)&&_0x4f3bb1[_0x362ae7(0x157)]&&(_0x4f3bb1[_0x362ae7(0x157)]=_0x4f3bb1['xlink:href']+_0x33860b[_0x362ae7(0x225)]),Object[_0x362ae7(0xca)](_0x4f3bb1)['forEach'](function(_0x5dddd9){const _0x439ea3=_0x362ae7;var _0x278a1b=_0x5dddd9[0x0],_0xd5d5cc=_0x5dddd9[0x1];typeof _0xd5d5cc==_0x439ea3(0x9f)&&(_0x4f3bb1[_0x278a1b]=_0xd5d5cc[_0x439ea3(0x227)](/url\(#(.*)\)/,_0x439ea3(0xe8)[_0x439ea3(0x226)](_0x33860b[_0x439ea3(0x225)],')')));})),_0x4f3bb1;}function Ar(_0x1aae01,_0x1d2420){const _0x2ee970=_0x354c45;var _0x55a369,_0x124c0d=_0x1d2420[_0x2ee970(0x189)];return!_0x124c0d||_0x124c0d[_0x2ee970(0x16f)]===0x0?_0x1aae01:_0x1aae01[_0x2ee970(0x18f)]===_0x2ee970(0xf7)&&(!((_0x55a369=_0x1aae01[_0x2ee970(0x1c8)])===null||_0x55a369===void 0x0)&&_0x55a369[_0x2ee970(0x16f)])?U(U({},_0x1aae01),{'children':_0x1aae01['children'][_0x2ee970(0x39f)](function(_0x4b3109){const _0x4d84c0=_0x2ee970;return typeof _0x4b3109[_0x4d84c0(0x2b2)]['id']==_0x4d84c0(0x9f)&&_0x124c0d&&_0x124c0d[_0x4d84c0(0x181)](_0x4b3109[_0x4d84c0(0x2b2)]['id'])>-0x1?U(U({},_0x4b3109),{'attrs':U(U({},_0x4b3109[_0x4d84c0(0x2b2)]),{'id':_0x4b3109[_0x4d84c0(0x2b2)]['id']+_0x1d2420['idSuffix']})}):_0x4b3109;})}):_0x1aae01;}function Ur(){const _0x4c93bd=_0x354c45;return Math[_0x4c93bd(0x1f2)]()[_0x4c93bd(0x10b)](0x24)[_0x4c93bd(0xc0)](0x2,0x8);}kt[_0x354c45(0x286)]=_0x354c45(0x222);var yr={'tag':_0x354c45(0x107),'attrs':{'fill':_0x354c45(0x1de),'viewBox':_0x354c45(0x22f),'width':_0x354c45(0xbf),'height':_0x354c45(0xbf)},'children':[{'tag':'g','attrs':{'clipPath':_0x354c45(0x195)},'children':[{'tag':_0x354c45(0x32a),'attrs':{'stroke':'currentColor','d':_0x354c45(0x29d),'strokeLinecap':_0x354c45(0x1cb),'strokeLinejoin':_0x354c45(0x1cb),'strokeWidth':1.2}}]},{'tag':_0x354c45(0xf7),'attrs':{},'children':[{'tag':_0x354c45(0x367),'attrs':{'id':_0x354c45(0x2dd)},'children':[{'tag':_0x354c45(0x32a),'attrs':{'fill':_0x354c45(0x3c1),'d':_0x354c45(0x214)}}]}]}],'defIds':[_0x354c45(0x2dd)]},js=_0x3e44fc(function(_0x36311a,_0x5853d6){const _0x5f253a=_0x354c45;return _0x787c2d(kt,Object['assign']({},_0x36311a,{'id':_0x5f253a(0x29a),'ref':_0x5853d6,'icon':yr}));});js[_0x354c45(0x286)]=_0x354c45(0x364);var Lr={'tag':_0x354c45(0x107),'attrs':{'fill':_0x354c45(0x1de),'viewBox':'0\x200\x2017\x2016','width':_0x354c45(0xbf),'height':_0x354c45(0xbf)},'children':[{'tag':'g','attrs':{'clipPath':_0x354c45(0x84)},'children':[{'tag':_0x354c45(0x32a),'attrs':{'stroke':_0x354c45(0x24b),'d':_0x354c45(0x9a),'strokeLinecap':_0x354c45(0x1cb),'strokeLinejoin':_0x354c45(0x1cb),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x354c45(0x367),'attrs':{'id':_0x354c45(0x1f4)},'children':[{'tag':_0x354c45(0x32a),'attrs':{'fill':_0x354c45(0x3c1),'d':'M0\x200H16V16H0z','transform':_0x354c45(0x21f)}}]}]}],'defIds':['on-line-single_clip0_910_349']},xs=_0x3e44fc(function(_0x27c412,_0x558e56){const _0x56c9da=_0x354c45;return _0x787c2d(kt,Object['assign']({},_0x27c412,{'id':_0x56c9da(0x3c5),'ref':_0x558e56,'icon':Lr}));});xs['displayName']=_0x354c45(0x32b);const $r='univer-online-status-icon',jr=_0x354c45(0x370),xr=_0x354c45(0xc1),Hr=_0x354c45(0x16b),kr=_0x354c45(0x246),De={'onlineStatusIcon':$r,'onlineStatusTitle':jr,'onlineStatus':xr,'online':Hr,'offline':kr};function Vr(_0x108ef6){const _0x223153=_0x354c45;switch(_0x108ef6){case P['OFFLINE']:return _0x223153(0x3ca);case P[_0x223153(0xac)]:return _0x223153(0x34f);case P[_0x223153(0x2a9)]:return _0x223153(0x380);case P[_0x223153(0x3c7)]:return _0x223153(0x158);case P[_0x223153(0x24c)]:case P[_0x223153(0x2ca)]:case P['AWAITING_WITH_PENDING']:return _0x223153(0x123);case P[_0x223153(0x1d2)]:return _0x223153(0xfe);}}function Br(_0x5baae9){const _0x25d1d6=_0x354c45,{status$:_0x4462a8}=_0x5baae9,_0x141017=_0x441fd1(_0x4462a8,P[_0x25d1d6(0x3c7)]),_0x4edd04=_0x4b5e73(_0x5e486d),_0x4614d6=_0x141017!==P[_0x25d1d6(0x3c0)],_0x5716f6=_0x4edd04['t'](Vr(_0x141017)),_0x1de45b=_0x59ade5(De[_0x25d1d6(0x341)],{[De[_0x25d1d6(0x97)]]:_0x4614d6,[De[_0x25d1d6(0x8a)]]:!_0x4614d6}),_0x2475c3=_0x4614d6?_0xf888d3[_0x25d1d6(0x2f4)](xs,null):_0xf888d3[_0x25d1d6(0x2f4)](js,null);return _0xf888d3[_0x25d1d6(0x2f4)](_0x25d1d6(0x150),{'className':_0x1de45b},_0xf888d3[_0x25d1d6(0x2f4)](_0x25d1d6(0x150),{'className':De[_0x25d1d6(0x35d)]},_0x2475c3),_0xf888d3[_0x25d1d6(0x2f4)](_0x25d1d6(0x150),{'className':De['onlineStatusTitle']},_0x5716f6));}var Fr=Object[_0x354c45(0xa3)],Wr=Object['getOwnPropertyDescriptor'],Gr=(_0x76a04a,_0x5ea7d7,_0x2c4780,_0x44ea57)=>{const _0x18eef8=_0x354c45;for(var _0x225454=_0x44ea57>0x1?void 0x0:_0x44ea57?Wr(_0x5ea7d7,_0x2c4780):_0x5ea7d7,_0x4db1a8=_0x76a04a[_0x18eef8(0x16f)]-0x1,_0x3f7054;_0x4db1a8>=0x0;_0x4db1a8--)(_0x3f7054=_0x76a04a[_0x4db1a8])&&(_0x225454=(_0x44ea57?_0x3f7054(_0x5ea7d7,_0x2c4780,_0x225454):_0x3f7054(_0x225454))||_0x225454);return _0x44ea57&&_0x225454&&Fr(_0x5ea7d7,_0x2c4780,_0x225454),_0x225454;},$e=(_0x552aec,_0x1e3e6d)=>(_0x45b29f,_0x23dc0b)=>_0x1e3e6d(_0x45b29f,_0x23dc0b,_0x552aec);let ke=class extends _0x48941f{constructor(_0x434e33,_0x3c564b,_0x54f885,_0xf22c67){const _0x1d98b8=_0x354c45;super(),_(this,_0x1d98b8(0x8b),new _0x421821(P[_0x1d98b8(0x3c7)])),(this[_0x1d98b8(0x134)]=_0x434e33,this[_0x1d98b8(0x1f1)]=_0x3c564b,this[_0x1d98b8(0x259)]=_0x54f885,this[_0x1d98b8(0x234)]=_0xf22c67,this[_0x1d98b8(0x30a)](),this[_0x1d98b8(0x302)]());}[_0x354c45(0x30a)](){const _0x2e2e64=_0x354c45;this['disposeWithMe'](this[_0x2e2e64(0x1f1)]['registerComponent'](_0x1642a6[_0x2e2e64(0x284)],()=>_0x3d07cd(Yr({'status$':this['_status$'][_0x2e2e64(0x209)]()}),this['_injector'])));}[_0x354c45(0x302)](){const _0x3039f5=_0x354c45;this[_0x3039f5(0x1a0)](_0x681995(this[_0x3039f5(0x134)]['focused$'][_0x3039f5(0x1e1)](_0x3f577e(()=>{const _0xada1c7=_0x3039f5,_0x5b4315=this[_0xada1c7(0x134)][_0xada1c7(0x248)]();return _0x5b4315?this['_collaborationController']['getCollabEntity$'](_0x5b4315[_0xada1c7(0x3a7)]()):_0x186ef7(null);}),_0x3f577e(_0x6ad9dc=>_0x6ad9dc?_0x6ad9dc['status$']:_0x186ef7(P['NOT_COLLAB'])))['subscribe'](_0x56dcac=>{const _0x213678=_0x3039f5;this[_0x213678(0x8b)]['next'](_0x56dcac);})));}};ke=Gr([_0x5c1b58(_0x21b2c3[_0x354c45(0xbe)],ke),$e(0x0,_0x14d401),$e(0x1,_0x5a1da3),$e(0x2,_0x229f6b(_0x3b06f9)),$e(0x3,_0x229f6b(Me))],ke);function Yr(_0x110d1b){const {status$:_0x5d5968}=_0x110d1b;return function(){return _0xf888d3['createElement'](Br,{'status$':_0x5d5968});};}const Hs=_0x120263(_0x354c45(0x392));var Kr=Object[_0x354c45(0xa3)],Xr=Object[_0x354c45(0x3cf)],Jr=(_0x354468,_0x32c5d2,_0x589b79,_0x180068)=>{for(var _0x83136a=_0x180068>0x1?void 0x0:_0x180068?Xr(_0x32c5d2,_0x589b79):_0x32c5d2,_0x362beb=_0x354468['length']-0x1,_0x5beed3;_0x362beb>=0x0;_0x362beb--)(_0x5beed3=_0x354468[_0x362beb])&&(_0x83136a=(_0x180068?_0x5beed3(_0x32c5d2,_0x589b79,_0x83136a):_0x5beed3(_0x83136a))||_0x83136a);return _0x180068&&_0x83136a&&Kr(_0x32c5d2,_0x589b79,_0x83136a),_0x83136a;},ue=(_0x4107e9,_0x1c23c8)=>(_0x4a54a0,_0x3c7248)=>_0x1c23c8(_0x4a54a0,_0x3c7248,_0x4107e9);let Ve=class extends _0x5aeadb{constructor(_0x59dff3,_0x4acaf1,_0x3701d0,_0x5d1215,_0x24de9b,_0x111363){const _0x2102a2=_0x354c45;super(),this[_0x2102a2(0x2b1)]=_0x59dff3,this['_logService']=_0x4acaf1,this['_commandService']=_0x3701d0,this[_0x2102a2(0x29b)]=_0x5d1215,this['_snapshotService']=_0x24de9b,_0x111363?_0x111363==null||_0x111363[_0x2102a2(0x13c)]()[_0x2102a2(0xc4)](()=>this[_0x2102a2(0x330)]()):(this[_0x2102a2(0x10f)]['debug'](_0x2102a2(0x3a3),_0x2102a2(0x271)),this[_0x2102a2(0x330)]());}async['_init'](){const _0x374d94=_0x354c45,_0x1e9adb=this['_urlService'][_0x374d94(0xf9)](_0x374d94(0x245)),_0x9a8481=this['_urlService']['getParam'](_0x374d94(0x354));if(!_0x1e9adb||!_0x9a8481){this['_logService'][_0x374d94(0x1cd)]('[DataLoaderController]','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x9a8481)){case H['UNIVER_SHEET']:{const _0x2b535d=await this[_0x374d94(0x166)](_0x1e9adb);this[_0x374d94(0x344)](_0x2b535d);break;}case H[_0x374d94(0x30e)]:{await this[_0x374d94(0x169)](_0x1e9adb);break;}default:{this['_logService'][_0x374d94(0x35c)]('[DataLoaderController]',_0x374d94(0x173));break;}}}async[_0x354c45(0x344)](_0x3889d9){const _0x4c4c17=_0x354c45;await this[_0x4c4c17(0x2bb)](_0x3889d9),_0x3889d9[_0x4c4c17(0xe9)]['pipe'](_0x60ccde(this['dispose$']))[_0x4c4c17(0x37e)](_0x5db28d=>{_0x5db28d&&this['_updateURLWithCurrentState'](_0x5db28d);}),this[_0x4c4c17(0x2b1)][_0x4c4c17(0xa9)][_0x4c4c17(0x1e1)](_0x60ccde(this[_0x4c4c17(0x1a1)]))[_0x4c4c17(0x37e)](()=>this[_0x4c4c17(0x2bb)](_0x3889d9));}[_0x354c45(0x373)](_0x25412f,_0x273f79=!0x1){const _0x537890=_0x354c45,_0x455e99=this['_urlService'][_0x537890(0xf9)]('subunit');_0x25412f[_0x537890(0x13b)]()!==_0x455e99&&this['_urlService']['setParam']('subunit',_0x25412f[_0x537890(0x13b)](),_0x273f79);}async[_0x354c45(0x2bb)](_0x3882b7){const _0x3f72ac=_0x354c45;var _0x3f039c;const _0x2c7e88=this[_0x3f72ac(0x2b1)]['getParam'](_0x3f72ac(0x144));if(!_0x2c7e88||!_0x3882b7[_0x3f72ac(0x176)](_0x2c7e88)){const _0x4605b3=_0x3882b7['getUnhiddenWorksheets']()[0x0],_0xf2caf7=_0x3882b7[_0x3f72ac(0x176)](_0x4605b3);if(!_0xf2caf7)return;this[_0x3f72ac(0x373)](_0xf2caf7,!0x0),await this[_0x3f72ac(0x19f)]['executeCommand'](_0x157375['id'],{'unitId':_0x3882b7['getUnitId'](),'subUnitId':_0x4605b3});return;}((_0x3f039c=_0x3882b7[_0x3f72ac(0x1a5)]())==null?void 0x0:_0x3f039c[_0x3f72ac(0x13b)]())!==_0x2c7e88&&await this[_0x3f72ac(0x19f)][_0x3f72ac(0x2ef)](_0x157375['id'],{'unitId':_0x3882b7[_0x3f72ac(0x3a7)](),'subUnitId':_0x2c7e88});}async[_0x354c45(0x166)](_0x12346f){const _0x3acfea=_0x354c45;let _0x5b3db2=0x0;const _0x25b7c4=await this['_localCacheService']['loadOfflineData'](_0x12346f);return _0x25b7c4&&(_0x25b7c4[_0x3acfea(0x314)]||_0x25b7c4[_0x3acfea(0x11e)][_0x3acfea(0x16f)]!==0x0)&&(_0x5b3db2=_0x25b7c4[_0x3acfea(0xdb)]),_0x5b3db2===0x0&&this[_0x3acfea(0x10f)][_0x3acfea(0x1cd)](_0x3acfea(0x3a3),_0x3acfea(0x282)),this['_snapshotService'][_0x3acfea(0x160)](_0x12346f,_0x5b3db2);}async['_loadDoc'](_0x70ad5a){const _0x36385e=_0x354c45;let _0x36e443=0x0;const _0x2234ab=await this[_0x36385e(0x29b)][_0x36385e(0x179)](_0x70ad5a);return _0x2234ab&&(_0x2234ab[_0x36385e(0x314)]||_0x2234ab[_0x36385e(0x11e)]['length']!==0x0)&&(_0x36e443=_0x2234ab[_0x36385e(0xdb)]),_0x36e443===0x0&&this[_0x36385e(0x10f)][_0x36385e(0x1cd)]('[DataLoaderController]',_0x36385e(0x282)),this[_0x36385e(0x168)]['loadDoc'](_0x70ad5a,_0x36e443);}};Ve=Jr([_0x5c1b58(_0x21b2c3[_0x354c45(0xbe)],Ve),ue(0x0,Hs),ue(0x1,_0x4491a7),ue(0x2,_0x151749),ue(0x3,_0x229f6b(D)),ue(0x4,_0x229f6b(_0x1f8d1f)),ue(0x5,_0x1ed7ac(_0x190e16))],Ve);var zr=Object['defineProperty'],qr=Object[_0x354c45(0x3cf)],Zr=(_0xb5f6d2,_0x4b0e87,_0x52ba84,_0x57dcda)=>{const _0x2d8f5c=_0x354c45;for(var _0x3e2f28=_0x57dcda>0x1?void 0x0:_0x57dcda?qr(_0x4b0e87,_0x52ba84):_0x4b0e87,_0x22e178=_0xb5f6d2[_0x2d8f5c(0x16f)]-0x1,_0x189568;_0x22e178>=0x0;_0x22e178--)(_0x189568=_0xb5f6d2[_0x22e178])&&(_0x3e2f28=(_0x57dcda?_0x189568(_0x4b0e87,_0x52ba84,_0x3e2f28):_0x189568(_0x3e2f28))||_0x3e2f28);return _0x57dcda&&_0x3e2f28&&zr(_0x4b0e87,_0x52ba84,_0x3e2f28),_0x3e2f28;},hs=(_0x2a04a1,_0x908eaf)=>(_0x3b6b33,_0x2af06a)=>_0x908eaf(_0x3b6b33,_0x2af06a,_0x2a04a1);const Qr=_0x354c45(0x2f9),eo=_0x354c45(0x3c4);let Be=class extends _0x48941f{constructor(_0x4f861a,_0x3a2d6f){const _0x20220e=_0x354c45;super(),this[_0x20220e(0x134)]=_0x4f861a,this[_0x20220e(0x102)]=_0x3a2d6f,this['_init']();}[_0x354c45(0x330)](){const _0x4b1eca=_0x354c45;this[_0x4b1eca(0x1a0)](_0x681995(this[_0x4b1eca(0x134)][_0x4b1eca(0x223)][_0x4b1eca(0x37e)](()=>{const _0x1953f2=_0x4b1eca;var _0x2f763e;const _0x457c94=this[_0x1953f2(0x134)]['getFocusedUnit']();let _0x445f26=(_0x2f763e=this[_0x1953f2(0x102)][_0x1953f2(0x119)](Qr))!=null?_0x2f763e:eo;_0x457c94 instanceof _0x3ad7b2&&(_0x445f26=_0x457c94[_0x1953f2(0x38c)]),document[_0x1953f2(0xd7)]=_0x445f26;})));}};Be=Zr([_0x5c1b58(_0x21b2c3[_0x354c45(0x15f)],Be),hs(0x0,_0x14d401),hs(0x1,_0x476b70)],Be);var to=Object[_0x354c45(0xa3)],so=Object[_0x354c45(0x3cf)],io=(_0x2ee37e,_0x45e38a,_0x3a0523,_0xc183ed)=>{const _0x563e77=_0x354c45;for(var _0x8998b3=_0xc183ed>0x1?void 0x0:_0xc183ed?so(_0x45e38a,_0x3a0523):_0x45e38a,_0xbe9ba4=_0x2ee37e[_0x563e77(0x16f)]-0x1,_0x46f132;_0xbe9ba4>=0x0;_0xbe9ba4--)(_0x46f132=_0x2ee37e[_0xbe9ba4])&&(_0x8998b3=(_0xc183ed?_0x46f132(_0x45e38a,_0x3a0523,_0x8998b3):_0x46f132(_0x8998b3))||_0x8998b3);return _0xc183ed&&_0x8998b3&&to(_0x45e38a,_0x3a0523,_0x8998b3),_0x8998b3;},_s=(_0x4cd9fe,_0x105a5f)=>(_0xf7925c,_0x2f01ae)=>_0x105a5f(_0xf7925c,_0x2f01ae,_0x4cd9fe);let Ot=class{constructor(_0x5aa91e,_0x3ad6d5){const _0x3653fc=_0x354c45;this[_0x3653fc(0x102)]=_0x5aa91e,this[_0x3653fc(0x137)]=_0x3ad6d5;}async[_0x354c45(0x7f)](_0x2a4742,_0x58acc4){const _0x13312e=_0x354c45;var _0x3c000b;const {unitID:_0x1a86a8,type:_0x6a2fe2,revision:_0x52e002=0x0}=_0x58acc4,_0x4394a3=this[_0x13312e(0x1d0)]()+'/'+_0x6a2fe2+_0x13312e(0x2f3)+_0x1a86a8+'/rev/'+_0x52e002,_0x177694=(await this[_0x13312e(0x137)]['get'](_0x4394a3))[_0x13312e(0xd6)],_0x5e27fe=(_0x3c000b=_0x177694[_0x13312e(0x236)])==null?void 0x0:_0x3c000b['workbook'];if(_0x5e27fe){const _0x544b10=_0x5e27fe==null?void 0x0:_0x5e27fe[_0x13312e(0x319)],_0x195ac3=_0x42040e['encode'](_0x3cfeb4(_0x544b10));_0x5e27fe[_0x13312e(0x319)]=_0x195ac3,Object[_0x13312e(0xca)](_0x5e27fe[_0x13312e(0x265)])['forEach'](([,_0x1170c4])=>{const _0x1b7408=_0x13312e,_0x9d61a5=_0x1170c4[_0x1b7408(0x319)],_0x29e909=_0x42040e[_0x1b7408(0x289)](_0x3cfeb4(_0x9d61a5));_0x1170c4[_0x1b7408(0x319)]=_0x29e909;});}return _0x177694;}async[_0x354c45(0x2a4)](_0x28009e,_0x67e7f1){const _0x3b981e=_0x354c45,{unitID:_0x2a4fbb,type:_0x1f98a6,blockID:_0x1cc77b}=_0x67e7f1,_0x1cb990=this[_0x3b981e(0x377)]()+'/'+_0x1f98a6+'/unit/'+_0x2a4fbb+_0x3b981e(0x3ab)+_0x1cc77b;return(await this['_httpService'][_0x3b981e(0x309)](_0x1cb990))[_0x3b981e(0xd6)];}async[_0x354c45(0x89)](_0x1cbbe1,_0x439eb4){const _0x1f0864=_0x354c45,{unitID:_0x1d470f,type:_0x2ea314,from:_0x493443,to:_0x396d45}=_0x439eb4,_0x1dd67e=this[_0x1f0864(0x377)]()+'/'+_0x2ea314+'/unit/'+_0x1d470f+_0x1f0864(0x213)+_0x493443+_0x1f0864(0x1e6)+_0x396d45;return(await this[_0x1f0864(0x137)][_0x1f0864(0x309)](_0x1dd67e))[_0x1f0864(0xd6)];}[_0x354c45(0x1d0)](){const _0x25e8d8=_0x354c45;var _0x53a24e;return(_0x53a24e=this['_configService'][_0x25e8d8(0x119)](hn))!=null?_0x53a24e:this['_getAPIPrefix']();}['_getAPIPrefix'](){const _0x2f652d=_0x354c45;var _0x3b15c7;return(_0x3b15c7=this['_configService'][_0x2f652d(0x119)](an))!=null?_0x3b15c7:cn;}async[_0x354c45(0x389)](_0xbe0613,_0x278349){const _0x19af79=_0x354c45,_0x273eeb=_0x19af79(0x355)+_0x278349[_0x19af79(0x354)]+_0x19af79(0x2f3)+_0x278349[_0x19af79(0x22b)]+_0x19af79(0x118);return(await this[_0x19af79(0x137)][_0x19af79(0x309)](_0x273eeb,{'params':{'resourceId':JSON[_0x19af79(0x303)](_0x278349[_0x19af79(0x26a)])}}))['body'];}[_0x354c45(0x283)](){const _0x448a24=_0x354c45;throw new Error(_0x448a24(0xec));}[_0x354c45(0x250)](){const _0x2d175a=_0x354c45;throw new Error(_0x2d175a(0xec));}['saveChangeset'](){const _0x988c11=_0x354c45;throw new Error(_0x988c11(0xec));}};Ot=io([_s(0x0,_0x476b70),_s(0x1,_0x229f6b(_0x131927))],Ot);var no=Object[_0x354c45(0xa3)],ro=Object[_0x354c45(0x3cf)],oo=(_0x101545,_0x4ca0c0,_0x4742af,_0x3991df)=>{const _0x399c1b=_0x354c45;for(var _0x376294=_0x3991df>0x1?void 0x0:_0x3991df?ro(_0x4ca0c0,_0x4742af):_0x4ca0c0,_0x288374=_0x101545[_0x399c1b(0x16f)]-0x1,_0x2f5997;_0x288374>=0x0;_0x288374--)(_0x2f5997=_0x101545[_0x288374])&&(_0x376294=(_0x3991df?_0x2f5997(_0x4ca0c0,_0x4742af,_0x376294):_0x2f5997(_0x376294))||_0x376294);return _0x3991df&&_0x376294&&no(_0x4ca0c0,_0x4742af,_0x376294),_0x376294;},Pe=(_0x29104b,_0x424948)=>(_0x10ebec,_0x516160)=>_0x424948(_0x10ebec,_0x516160,_0x29104b);let Dt=class extends _0x3df25f{constructor(_0x104c43,_0xc7c3fa,_0x5f0bc5,_0x588e9d,_0x2db42e){const _0x3e122b=_0x354c45;super(_0x104c43,_0xc7c3fa,_0x5f0bc5),this[_0x3e122b(0x351)]=_0x588e9d,this[_0x3e122b(0x10f)]=_0x2db42e;}[_0x354c45(0x99)](_0x19fa41,_0x166b05){const _0x8994ae=_0x354c45,_0x59ba93=this[_0x8994ae(0x1b0)](_0x19fa41);if(_0x59ba93)try{const _0x1fc7e1=this[_0x8994ae(0x2e5)](_0x59ba93,_0x166b05);this[_0x8994ae(0x205)](_0x19fa41,_0x1fc7e1);}catch(_0x551389){this[_0x8994ae(0x10f)][_0x8994ae(0x35c)](_0x8994ae(0x37b),_0x551389),this[_0x8994ae(0x149)](_0x19fa41);}const _0x1c694c=this[_0x8994ae(0x17e)](_0x19fa41);if(_0x1c694c)try{const _0x3ec911=this['_transformStack'](_0x1c694c,_0x166b05);this['_substituteRedoStack'](_0x19fa41,_0x3ec911);}catch(_0x30ccb7){this[_0x8994ae(0x10f)][_0x8994ae(0x35c)](_0x30ccb7),this[_0x8994ae(0x3aa)](_0x19fa41);}}[_0x354c45(0x149)](_0x398f27){const _0x2b44a5=_0x354c45,_0x57e560=this[_0x2b44a5(0x1b0)](_0x398f27);_0x57e560&&(_0x57e560[_0x2b44a5(0x16f)]=0x0,this['_updateStatus']());}[_0x354c45(0x3aa)](_0x49eecd){const _0x37bab9=_0x354c45,_0x3ad0fd=this[_0x37bab9(0x17e)](_0x49eecd);_0x3ad0fd&&(_0x3ad0fd[_0x37bab9(0x16f)]=0x0,this[_0x37bab9(0x18a)]());}[_0x354c45(0x205)](_0x721ef7,_0x4bb2df){const _0x56929a=_0x354c45;this[_0x56929a(0x117)][_0x56929a(0xdd)](_0x721ef7,_0x4bb2df),this['_updateStatus']();}[_0x354c45(0xda)](_0x33de30,_0x58f2f6){const _0x52eee7=_0x354c45;this[_0x52eee7(0x2e7)][_0x52eee7(0xdd)](_0x33de30,_0x58f2f6),this[_0x52eee7(0x18a)]();}[_0x354c45(0x2e5)](_0x1e807e,_0x375ab1){const _0x1ad9c5=_0x354c45,_0x42f587=[];let _0x344a98=_0x375ab1,_0x17637=_0x375ab1;for(let _0x320435=_0x1e807e[_0x1ad9c5(0x16f)]-0x1;_0x320435>=0x0;_0x320435--){const {unitID:_0x59a08c,undoMutations:_0xcce287,redoMutations:_0x25b8a0}=_0x1e807e[_0x320435],_0x348050=this['_transformService'][_0x1ad9c5(0x109)](_0x344a98,_0xcce287),_0x50f6e2=this[_0x1ad9c5(0x351)]['transformMutationsWithChangeset'](_0x17637,_0x25b8a0);if(_0x2beedb(_0x348050)||_0x2beedb(_0x50f6e2)){this[_0x1ad9c5(0x10f)][_0x1ad9c5(0x35c)](_0x1ad9c5(0x37b),_0x1ad9c5(0x20a),_0x348050,_0x50f6e2);break;}_0x344a98=_0x348050['c1Prime'],_0x17637=_0x50f6e2[_0x1ad9c5(0x235)],_0x42f587[_0x1ad9c5(0x34c)]({'unitID':_0x59a08c,'undoMutations':_0x348050['m2Prime'],'redoMutations':_0x50f6e2[_0x1ad9c5(0x31e)]});}return _0x42f587[_0x1ad9c5(0xb5)]();}};Dt=oo([Pe(0x0,_0x14d401),Pe(0x1,_0x151749),Pe(0x2,_0x56cb45),Pe(0x3,_0x5c9e6a),Pe(0x4,_0x4491a7)],Dt);class ao extends _0x5aeadb{constructor(){const _0x2d81d7=_0x354c45;super(),_(this,'urlChange$'),this['urlChange$']=_0x1f17b0(window,_0x2d81d7(0x357))[_0x2d81d7(0x1e1)](_0x60ccde(this[_0x2d81d7(0x1a1)]),_0x38f1e1(0x1),_0x378129(void 0x0));}[_0x354c45(0x30d)](_0x35a11f,_0x568a0c,_0x180a43=!0x1){const _0x174138=_0x354c45,_0x21238a=new URL(window[_0x174138(0x3cb)]['href']);_0x21238a[_0x174138(0x2fb)]['set'](_0x35a11f,_0x568a0c),_0x180a43?window['history'][_0x174138(0x2c3)]('','',_0x21238a[_0x174138(0x10b)]()):window[_0x174138(0x2bf)][_0x174138(0x39c)]('','',_0x21238a[_0x174138(0x10b)]());}[_0x354c45(0x295)](_0x260912,_0x307491=!0x1){const _0x3bf745=_0x354c45,_0x3523ba=new URL(window[_0x3bf745(0x3cb)][_0x3bf745(0xad)]);_0x3523ba['searchParams'][_0x3bf745(0x33a)](_0x260912),_0x307491?window[_0x3bf745(0x2bf)]['replaceState']('','',_0x3523ba[_0x3bf745(0x10b)]()):window['history'][_0x3bf745(0x39c)]('','',_0x3523ba['toString']());}[_0x354c45(0xf9)](_0x11dda5){const _0x511bc6=_0x354c45;var _0x287c3f;return(_0x287c3f=new URL(window[_0x511bc6(0x3cb)][_0x511bc6(0xad)])[_0x511bc6(0x2fb)][_0x511bc6(0x309)](_0x11dda5))!=null?_0x287c3f:void 0x0;}}const lt=_0x354c45(0x23a),co='collab-text-range-',ho=_0x354c45(0xde),we=0x6,_o=1.5,ut=0x4,lo=1.5,uo=_0x354c45(0x36f);class ls{constructor(_0x312183,_0x2fe9cd,_0x8445bf,_0x256aaf){const _0xefd0ca=_0x354c45;_(this,_0xefd0ca(0x1c5),[]),_(this,_0xefd0ca(0x369),null),_(this,_0xefd0ca(0x1e3),null),_(this,_0xefd0ca(0x90),null),_(this,'_hideTimer',null),_(this,'_eventUnsubscribe',null),(this[_0xefd0ca(0xb3)]=_0x312183,this[_0xefd0ca(0xf3)]=_0x2fe9cd,this['_docSkeleton']=_0x8445bf,this['_document']=_0x256aaf,this[_0xefd0ca(0xa5)]());}set[_0x354c45(0x365)](_0x3937f0){const _0x54021f=_0x354c45;_0x3937f0?(this[_0x54021f(0x90)]&&this['_anchorDot'][_0x54021f(0x1ca)](),this[_0x54021f(0x1e3)]&&this[_0x54021f(0x1e3)][_0x54021f(0x2e0)]()):(this['_anchorDot']&&this[_0x54021f(0x90)]['show'](),this[_0x54021f(0x1e3)]&&this['_textBubble']['hide']());}[_0x354c45(0x220)](){const _0x2f2228=_0x354c45;for(const _0x5414d7 of this['_shapes'])_0x5414d7[_0x2f2228(0x220)]();this[_0x2f2228(0x1e3)]&&this[_0x2f2228(0x1e3)][_0x2f2228(0x220)](),this[_0x2f2228(0x90)]&&this[_0x2f2228(0x90)]['dispose'](),this['_anchor']&&this[_0x2f2228(0x369)][_0x2f2228(0x220)](),this[_0x2f2228(0x281)]&&this[_0x2f2228(0x281)]();}[_0x354c45(0xa5)](){const _0x3fa917=_0x354c45;var _0x2c4868;const {_docSkeleton:_0x2ffc87,_document:_0x5d3971}=this,{color:_0x4fbcd5,name:_0x2be763,ranges:_0xb0afab}=this[_0x3fa917(0xb3)],_0x3a94e1=_0x5d3971[_0x3fa917(0x34e)](),{docsLeft:_0x555851,docsTop:_0x4492c8}=_0x3a94e1,_0x35179e=new _0x38a9be(_0x3a94e1,_0x2ffc87);for(const {startOffset:_0xc6739e,endOffset:_0x4f0a39,collapsed:_0x5321ca,isActive:_0x5721a1}of _0xb0afab){const _0xd2fd31=_0x2ffc87['findNodePositionByCharIndex'](_0xc6739e),_0x1ccf9a=_0x2ffc87['findNodePositionByCharIndex'](_0x4f0a39);if(_0x5721a1){const {contentBoxPointGroup:_0x97c107}=_0x35179e[_0x3fa917(0x12b)](_0x1ccf9a,_0x1ccf9a);if(_0x97c107['length']===0x0)continue;this[_0x3fa917(0x128)](_0x4fbcd5,_0x97c107,_0x555851,_0x4492c8,_0x2be763),this[_0x3fa917(0x281)]=this[_0x3fa917(0x2b7)]();}if(!_0x5321ca&&_0xd2fd31&&_0x1ccf9a){if(_0x197747(_0xd2fd31,_0x1ccf9a)){const _0x158b26=new _0x5e6d76(_0x3a94e1,_0x2ffc87),{pointGroup:_0x1900b9}=(_0x2c4868=_0x158b26['getRangePointData'](_0xd2fd31,_0x1ccf9a))!=null?_0x2c4868:{};if(_0x1900b9==null||_0x1900b9[_0x3fa917(0x16f)]===0x0)continue;this['_drawRectRange'](_0x4fbcd5,_0x1900b9,_0x555851,_0x4492c8);}else{const {contentBoxPointGroup:_0x369c0d}=_0x35179e[_0x3fa917(0x12b)](_0xd2fd31,_0x1ccf9a);if(_0x369c0d['length']===0x0)continue;this[_0x3fa917(0x343)](_0x4fbcd5,_0x369c0d,_0x555851,_0x4492c8);}}}}[_0x354c45(0x128)](_0x32efe8,_0x434043,_0x53415e,_0x1d4bf3,_0x2da91f){const _0xe92a2f=_0x354c45,_0x4de42d=this['_getAnchorBounding'](_0x434043),{left:_0x3364c3,top:_0x348b33,height:_0x152a45}=_0x4de42d,_0x262d8e=this[_0xe92a2f(0xc9)](),_0x100f0c=lo/_0x262d8e,_0x34192d=new _0x222909(lt+_0x40bd5b['generateRandomId'](we),{'left':_0x3364c3+_0x53415e-_0x100f0c,'top':_0x348b33+_0x1d4bf3,'height':_0x152a45,'width':_o,'fill':_0x32efe8||_0x3202eb(_0xc3f366[_0xe92a2f(0x33f)],0x0),'strokeWidth':_0x100f0c,'stroke':uo,'evented':!0x0});this[_0xe92a2f(0x369)]=_0x34192d,this[_0xe92a2f(0xf3)]['addObject'](_0x34192d,_0x5864fb);const _0x253d78=new _0x222909(lt+_0x40bd5b[_0xe92a2f(0x38f)](we),{'left':_0x3364c3+_0x53415e-_0x100f0c,'top':_0x348b33+_0x1d4bf3-ut/0x2,'height':ut,'width':ut,'fill':_0x32efe8||_0x3202eb(_0xc3f366[_0xe92a2f(0x33f)],0x0),'strokeWidth':0x0,'stroke':_0x32efe8||_0x3202eb(_0xc3f366[_0xe92a2f(0x33f)],0x0),'evented':!0x1});this[_0xe92a2f(0x90)]=_0x253d78,this[_0xe92a2f(0xf3)][_0xe92a2f(0xcb)](_0x253d78,_0x5864fb);const _0x5c3198=new it(lt+_0x40bd5b[_0xe92a2f(0x38f)](we),{'left':_0x3364c3+_0x53415e-_0x100f0c,'top':_0x348b33+_0x1d4bf3-ye,'text':_0x2da91f,'color':_0x32efe8});this[_0xe92a2f(0x1e3)]=_0x5c3198,this[_0xe92a2f(0xf3)]['addObject'](_0x5c3198,_0x5864fb),this[_0xe92a2f(0x365)]=!0x1;}[_0x354c45(0x2b7)](){const _0x46f9e0=_0x354c45,_0x1b5987=this[_0x46f9e0(0x369)][_0x46f9e0(0x25c)]['subscribeEvent'](()=>{const _0x25907c=_0x46f9e0;this[_0x25907c(0x365)]=!0x0;}),_0x53cf27=this[_0x46f9e0(0x369)]['onPointerLeave$'][_0x46f9e0(0xe5)](()=>{this['_hideTimer']&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{const _0x32f357=_0x5b0c;this[_0x32f357(0x365)]=!0x1;},0x7d0);});return()=>{const _0x5c099c=_0x46f9e0;_0x1b5987[_0x5c099c(0x2ae)](),_0x53cf27[_0x5c099c(0x2ae)]();};}[_0x354c45(0x343)](_0x3680bf,_0x5f21d0,_0x262d11,_0x3b35ba){const _0x5b1376=_0x354c45,_0x3f3e27=new _0x3b0d65(_0x3680bf)[_0x5b1376(0x200)](0.2)[_0x5b1376(0x171)](),_0x42cba1=new _0x12e0ff(co+_0x40bd5b[_0x5b1376(0x38f)](we),{'pointsGroup':_0x5f21d0,'fill':_0x3f3e27||_0x3202eb(_0xc3f366['black'],0.2),'left':_0x262d11,'top':_0x3b35ba,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5b1376(0x1c5)][_0x5b1376(0x34c)](_0x42cba1),this[_0x5b1376(0xf3)][_0x5b1376(0xcb)](_0x42cba1,_0x5864fb);}[_0x354c45(0x3ac)](_0x1eb622,_0x3fe667,_0x413616,_0x2c0593){const _0x142af1=_0x354c45,_0x11697d=new _0x3b0d65(_0x1eb622)[_0x142af1(0x200)](0.2)[_0x142af1(0x171)](),_0x1cd47d=new _0x12e0ff(ho+_0x40bd5b[_0x142af1(0x38f)](we),{'pointsGroup':_0x3fe667,'fill':_0x11697d||_0x3202eb(_0xc3f366[_0x142af1(0x33f)],0.2),'left':_0x413616,'top':_0x2c0593,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x142af1(0x34c)](_0x1cd47d),this[_0x142af1(0xf3)]['addObject'](_0x1cd47d,_0x5864fb);}[_0x354c45(0x304)](_0x40b826){const _0x1dc219=_0x40b826[0x0],_0x432f4e=_0x1dc219[0x0],_0x2e4d4c=_0x1dc219[0x2],{x:_0x1d1107,y:_0xea6f98}=_0x432f4e,{x:_0x434357,y:_0x18b01e}=_0x2e4d4c;return{'left':_0x1d1107,'top':_0xea6f98,'width':_0x434357-_0x1d1107,'height':_0x18b01e-_0xea6f98};}[_0x354c45(0xc9)](){const _0x57ea26=_0x354c45,{scaleX:_0x45bc4f,scaleY:_0x18eadc}=this[_0x57ea26(0xf3)][_0x57ea26(0x376)]();return Math[_0x57ea26(0x2f2)](_0x45bc4f,_0x18eadc);}}var mo=Object['defineProperty'],fo=Object[_0x354c45(0x3cf)],go=(_0x443503,_0xf363e1,_0x1405e8,_0x27eca2)=>{const _0x5f0c4f=_0x354c45;for(var _0x3f9f6e=_0x27eca2>0x1?void 0x0:_0x27eca2?fo(_0xf363e1,_0x1405e8):_0xf363e1,_0xd773f8=_0x443503[_0x5f0c4f(0x16f)]-0x1,_0x198204;_0xd773f8>=0x0;_0xd773f8--)(_0x198204=_0x443503[_0xd773f8])&&(_0x3f9f6e=(_0x27eca2?_0x198204(_0xf363e1,_0x1405e8,_0x3f9f6e):_0x198204(_0x3f9f6e))||_0x3f9f6e);return _0x27eca2&&_0x3f9f6e&&mo(_0xf363e1,_0x1405e8,_0x3f9f6e),_0x3f9f6e;},je=(_0x171aae,_0x3b7b4f)=>(_0x1e64b9,_0x186cf4)=>_0x3b7b4f(_0x1e64b9,_0x186cf4,_0x171aae);let Fe=class extends _0x5aeadb{constructor(_0x39b08f,_0xc89535,_0x21096b,_0xb1a669,_0x32d01f){const _0x2ec2f7=_0x354c45;super(),_(this,_0x2ec2f7(0x20b),[]),_(this,_0x2ec2f7(0x1bc),[]),(this['_context']=_0x39b08f,this['_docSkeletonManagerService']=_0xc89535,this[_0x2ec2f7(0x1ff)]=_0x21096b,this['_commandService']=_0xb1a669,this[_0x2ec2f7(0x30c)]=_0x32d01f,this[_0x2ec2f7(0x330)]());}['_init'](){const _0x12e529=_0x354c45,_0x142cbd=this[_0x12e529(0x321)][_0x12e529(0x393)],_0x5f5cc3=this[_0x12e529(0x224)];this[_0x12e529(0x1a0)](_0x4aa21b([this[_0x12e529(0x1ff)]['getCollabCursors$'](_0x142cbd),this['_themeService'][_0x12e529(0xa7)]])[_0x12e529(0x1e1)](_0x1b7b12(([_0x53beff,_0x566f10])=>({'skeleton':_0x5f5cc3[_0x12e529(0x26d)](),'cursors':[..._0x53beff['values']()][_0x12e529(0x1d6)](_0x4b21eb=>({..._0x4b21eb,'color':_0x566f10[_0x4b21eb[_0x12e529(0x3d0)]]}))})))[_0x12e529(0x37e)](_0x53e595=>{const _0x56ac15=_0x12e529;if(this[_0x56ac15(0x92)](),_0x53e595){const {skeleton:_0x111f6d,cursors:_0x43009c}=_0x53e595;this[_0x56ac15(0xfb)](_0x111f6d,_0x43009c);}})),this['_initResize'](),this[_0x12e529(0x24e)]();}[_0x354c45(0xfb)](_0xc6ab72,_0x3a386f){const _0x3201c3=_0x354c45,{scene:_0x2289a7,mainComponent:_0x705a3b}=this[_0x3201c3(0x321)],_0x50b70c=_0x3a386f[_0x3201c3(0x39f)](_0x5a520e=>new ls(_0x5a520e,_0x2289a7,_0xc6ab72,_0x705a3b));this[_0x3201c3(0x20b)]=_0x50b70c,this['_cursors']=_0x3a386f;}['_refreshCollabCursors'](){const _0x1fc407=_0x354c45;this['_removeCollabCursors']();const {scene:_0x242404,mainComponent:_0x242b46}=this[_0x1fc407(0x321)],_0x1818d2=this[_0x1fc407(0x224)][_0x1fc407(0x26d)](),_0x5c9f23=this[_0x1fc407(0x1bc)]['map'](_0x1f36c1=>new ls(_0x1f36c1,_0x242404,_0x1818d2,_0x242b46));this['_cursorShapes']=_0x5c9f23;}['_removeCollabCursors'](){const _0x291e59=_0x354c45;this[_0x291e59(0x20b)][_0x291e59(0x18d)](_0x476c70=>_0x476c70[_0x291e59(0x220)]()),this[_0x291e59(0x20b)]=[];}[_0x354c45(0x24e)](){const _0x4dd24c=_0x354c45,_0x180987=[_0x19eff9['id']];this[_0x4dd24c(0x1a0)](this['_commandService']['onCommandExecuted'](_0x4b5555=>{const _0x5dc311=_0x4dd24c;_0x180987[_0x5dc311(0x3a8)](_0x4b5555['id'])&&_0x4b5555[_0x5dc311(0x29e)]['unitId']===this[_0x5dc311(0x321)][_0x5dc311(0x393)]&&this[_0x5dc311(0x1ed)]();}));}['_initResize'](){const _0xac7259=_0x354c45;this[_0xac7259(0x1a0)](_0x287600(this[_0xac7259(0x321)][_0xac7259(0x399)][_0xac7259(0x2d6)])[_0xac7259(0x1e1)](_0x2a5de4(_0x33b20d=>_0x33b20d[_0xac7259(0x354)]===_0x4d9e9f[_0xac7259(0x1d1)]),_0x78d7ad(0x10))[_0xac7259(0x37e)](()=>{const _0x222fd9=_0xac7259;this[_0x222fd9(0x1ed)]();}));}};Fe=go([_0x5c1b58(_0x21b2c3['Steady'],Fe),je(0x1,_0x229f6b(_0x3a7927)),je(0x2,_0x229f6b(ge)),je(0x3,_0x151749),je(0x4,_0x229f6b(_0x276c29))],Fe);var So=Object[_0x354c45(0xa3)],po=Object[_0x354c45(0x3cf)],vo=(_0x183436,_0x53c0dd,_0x1a09f9,_0x5c803b)=>{for(var _0x34cddd=_0x5c803b>0x1?void 0x0:_0x5c803b?po(_0x53c0dd,_0x1a09f9):_0x53c0dd,_0x3a3d5c=_0x183436['length']-0x1,_0x477a02;_0x3a3d5c>=0x0;_0x3a3d5c--)(_0x477a02=_0x183436[_0x3a3d5c])&&(_0x34cddd=(_0x5c803b?_0x477a02(_0x53c0dd,_0x1a09f9,_0x34cddd):_0x477a02(_0x34cddd))||_0x34cddd);return _0x5c803b&&_0x34cddd&&So(_0x53c0dd,_0x1a09f9,_0x34cddd),_0x34cddd;},dt=(_0x37aad6,_0x305783)=>(_0x5a021a,_0x88f1c4)=>_0x305783(_0x5a021a,_0x88f1c4,_0x37aad6);let Qe=class{constructor(_0x33e342,_0x5f0e39,_0xde012b){const _0x5ccab8=_0x354c45;this[_0x5ccab8(0x102)]=_0x33e342,this[_0x5ccab8(0x137)]=_0x5f0e39,this['localeService']=_0xde012b,this[_0x5ccab8(0x1ce)]();}[_0x354c45(0x1ce)](){const _0x5eac8c=_0x354c45;this[_0x5eac8c(0x137)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x5baacf,_0x29dfb7)=>_0x29dfb7(_0x5baacf)[_0x5eac8c(0x1e1)](_0x54be95(async _0x14dd27=>{const _0x2c7a1f=_0x5eac8c,_0x541cc1=_0x14dd27;if(_0x541cc1['status']===0x191&&window[_0x2c7a1f(0x21a)](this[_0x2c7a1f(0x291)]['t'](_0x2c7a1f(0xaa)))){const _0x45c82f=window[_0x2c7a1f(0x126)](window[_0x2c7a1f(0x3cb)][_0x2c7a1f(0xad)]);window[_0x2c7a1f(0x3cb)][_0x2c7a1f(0xad)]=this['_getLoginPath']()+_0x2c7a1f(0x333)+_0x45c82f;}return _0x541cc1;}))});}[_0x354c45(0xa1)](){const _0x21c687=_0x354c45;var _0x11a2dc;return(_0x11a2dc=this[_0x21c687(0x102)]['getConfig'](Rn))!=null?_0x11a2dc:Tn;}};Qe=vo([dt(0x0,_0x476b70),dt(0x1,_0x229f6b(_0x131927)),dt(0x2,_0x229f6b(_0x5e486d))],Qe);var Io=Object['defineProperty'],Eo=Object[_0x354c45(0x3cf)],Co=(_0x42bd11,_0x5565c7,_0x3b1d4a,_0x3753a9)=>{const _0x2ce1ac=_0x354c45;for(var _0x1b7fea=_0x3753a9>0x1?void 0x0:_0x3753a9?Eo(_0x5565c7,_0x3b1d4a):_0x5565c7,_0x4cbb93=_0x42bd11[_0x2ce1ac(0x16f)]-0x1,_0x4236a7;_0x4cbb93>=0x0;_0x4cbb93--)(_0x4236a7=_0x42bd11[_0x4cbb93])&&(_0x1b7fea=(_0x3753a9?_0x4236a7(_0x5565c7,_0x3b1d4a,_0x1b7fea):_0x4236a7(_0x1b7fea))||_0x1b7fea);return _0x3753a9&&_0x1b7fea&&Io(_0x5565c7,_0x3b1d4a,_0x1b7fea),_0x1b7fea;},us=(_0x182440,_0xa44aed)=>(_0x439aee,_0x3e27fc)=>_0xa44aed(_0x439aee,_0x3e27fc,_0x182440);const bo='AUTHZ_URL_KEY',Ro=_0x354c45(0x2cc);let Pt=class extends _0x48941f{constructor(_0x32c472,_0x24851e){const _0x4a5a3a=_0x354c45;super(),this['_HTTPService']=_0x32c472,this['_configService']=_0x24851e,this[_0x4a5a3a(0x305)]();}[_0x354c45(0x305)](){const _0x4079d8=_0x354c45,_0x3134f1=this;this[_0x4079d8(0x1a0)](this[_0x4079d8(0x91)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':_0x9560({'isMatch'(_0x3a7a30){const _0xcea1c6=_0x4079d8;var _0xa8953e;if(_0x3a7a30[_0xcea1c6(0x3a9)]===_0xcea1c6(0x16e)&&((_0xa8953e=_0x3a7a30['requestParams'])!=null&&_0xa8953e['body'])){const {objectID:_0xc2f8ee,objectType:_0x54872e}=_0x3a7a30['requestParams'][_0xcea1c6(0xd6)]||{};if(!_0xc2f8ee||_0x54872e===void 0x0)return!0x1;const _0x36e9e9=_0x3134f1['_getAPIPrefixPath']()+'/'+_0x54872e+_0xcea1c6(0x2a6)+_0xc2f8ee+_0xcea1c6(0x331);if(_0x3a7a30[_0xcea1c6(0x3d1)]===_0x36e9e9)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x291b9b){var _0x1b30f7;return(_0x1b30f7=_0x291b9b['requestParams'])==null?void 0x0:_0x1b30f7['body'];},'mergeParamsToRequest'(_0x587f61,_0x202836){const _0x28b8a7=_0x4079d8,_0x387217=_0x3134f1[_0x28b8a7(0x238)]()+_0x28b8a7(0x1db),_0x44b4e8=_0x587f61[_0x28b8a7(0x17a)]((_0x495c43,_0x47cc3f)=>{const _0x2420c5=_0x28b8a7,{unitID:_0x4f4acd,objectID:_0x3720d7,objectType:_0x5874d6,actions:_0x43fbd5}=_0x47cc3f;return _0x495c43[_0x4f4acd]||(_0x495c43[_0x4f4acd]={}),_0x495c43[_0x4f4acd][_0x3720d7]||(_0x495c43[_0x4f4acd][_0x3720d7]={'objectID':_0x3720d7,'objectType':_0x5874d6,'actions':[]}),_0x495c43[_0x4f4acd][_0x3720d7]['actions'][_0x2420c5(0x34c)](..._0x43fbd5),_0x495c43;},{}),_0x20ec07=[];for(const _0x32a6ac in _0x44b4e8)for(const _0x151e3e in _0x44b4e8[_0x32a6ac]){const {actions:_0x36ccb1,objectType:_0x377072}=_0x44b4e8[_0x32a6ac][_0x151e3e],_0xdd3a4e=[...new Set(_0x36ccb1)];_0x20ec07[_0x28b8a7(0x34c)]({'unitID':_0x32a6ac,'objectID':_0x151e3e,'objectType':_0x377072,'actions':_0xdd3a4e});}return new _0x4908e9(_0x28b8a7(0x16e),_0x387217,{'headers':_0x202836[_0x28b8a7(0x206)],'withCredentials':_0x202836['withCredentials'],'responseType':_0x202836[_0x28b8a7(0x39e)],'body':{'requests':_0x20ec07}});}},{'distributeResult'(_0x54441d,_0x50bff9){const _0x2287d0=_0x4079d8,{objectActions:_0x15191e}=_0x54441d;return _0x50bff9[_0x2287d0(0x39f)](_0x5e7fd9=>{const _0x1f7904=_0x2287d0,{unitID:_0x56b97e,objectID:_0x5468f4,actions:_0x5783c6}=_0x5e7fd9,_0x44c1c9=_0x15191e[_0x1f7904(0x3d3)](_0x2a4948=>_0x2a4948[_0x1f7904(0x22b)]===_0x56b97e&&_0x2a4948['objectID']===_0x5468f4),_0xaa3b2d=_0x5783c6['map'](_0x1f0fec=>_0x44c1c9==null?void 0x0:_0x44c1c9[_0x1f7904(0x199)][_0x1f7904(0x3d3)](_0xb14319=>_0xb14319[_0x1f7904(0x260)]===_0x1f0fec))[_0x1f7904(0x25e)](_0x254cb5=>!!_0x254cb5);return{'config':_0x5e7fd9,'result':{'actions':_0xaa3b2d,'error':_0x54441d['error']}};});}})}));}[_0x354c45(0x238)](){const _0x22ceed=_0x354c45;var _0x50e323;return(_0x50e323=this['_configService'][_0x22ceed(0x119)](bo))!=null?_0x50e323:Ro;}async[_0x354c45(0x361)](_0x38891a){const _0x12222a=_0x354c45,_0x26131d=this['_getAPIPrefixPath']()+'/'+_0x38891a[_0x12222a(0x310)]+_0x12222a(0xeb);return(await this[_0x12222a(0x91)][_0x12222a(0x276)](_0x26131d,{'body':_0x38891a}))[_0x12222a(0xd6)][_0x12222a(0x3c8)]||'';}async[_0x354c45(0xff)](_0x4ecd57){const _0x2fdf2c=_0x354c45,_0x55c793=this[_0x2fdf2c(0x238)]()+_0x2fdf2c(0x19a);return(await this[_0x2fdf2c(0x91)][_0x2fdf2c(0x276)](_0x55c793,{'body':_0x4ecd57}))[_0x2fdf2c(0xd6)]['objects'];}async['update'](_0x3b69d8){const _0x17cff3=_0x354c45,_0x375545=this[_0x17cff3(0x238)]()+'/'+_0x3b69d8[_0x17cff3(0x310)]+'/object/'+_0x3b69d8[_0x17cff3(0x3c8)];await this[_0x17cff3(0x91)][_0x17cff3(0x298)](_0x375545,{'body':_0x3b69d8});}async['allowed'](_0x3cc4e1){const _0x5dcbd9=_0x354c45,_0xf8792e=this[_0x5dcbd9(0x238)]()+'/'+_0x3cc4e1[_0x5dcbd9(0x310)]+_0x5dcbd9(0x2a6)+_0x3cc4e1[_0x5dcbd9(0x3c8)]+_0x5dcbd9(0x331);return(await this['_HTTPService'][_0x5dcbd9(0x276)](_0xf8792e,{'body':_0x3cc4e1}))[_0x5dcbd9(0xd6)][_0x5dcbd9(0x199)];}async[_0x354c45(0x127)](_0xc2caec){const _0x284921=_0x354c45,_0x32e3a1=this[_0x284921(0x238)]()+_0x284921(0x1db);return(await this[_0x284921(0x91)][_0x284921(0x276)](_0x32e3a1,{'body':{'requests':_0xc2caec}}))['body'][_0x284921(0x1ea)];}async[_0x354c45(0xd1)](_0x55bbec){const _0x2656d2=_0x354c45,_0xb8743c=this[_0x2656d2(0x238)]()+'/'+_0x55bbec[_0x2656d2(0x310)]+'/role',_0x4cb5e8=await this['_HTTPService'][_0x2656d2(0x276)](_0xb8743c,{'body':_0x55bbec});return{'roles':_0x4cb5e8[_0x2656d2(0xd6)][_0x2656d2(0x13a)],'actions':_0x4cb5e8[_0x2656d2(0xd6)][_0x2656d2(0x199)]};}async[_0x354c45(0x36d)](_0x213f2c){const _0x2c3478=_0x354c45,_0x58200d=this[_0x2c3478(0x238)]()+_0x2c3478(0x1e5);await this[_0x2c3478(0x91)]['delete'](_0x58200d,{'params':{'collaboratorID':_0x213f2c[_0x2c3478(0x8c)],'objectID':_0x213f2c['objectID'],'unitID':_0x213f2c[_0x2c3478(0x22b)]}});}async[_0x354c45(0x12f)](_0x3f3598){const _0x1d6ffa=_0x354c45,_0x182811=this['_getAPIPrefixPath']()+_0x1d6ffa(0x1e5);await this[_0x1d6ffa(0x91)][_0x1d6ffa(0x1d9)](_0x182811,{'body':_0x3f3598});}async[_0x354c45(0x371)](_0x5373b1){const _0x1b139d=_0x354c45,_0x3c1f23=this[_0x1b139d(0x238)]()+'/collaborator';await this['_HTTPService'][_0x1b139d(0x276)](_0x3c1f23,{'body':_0x5373b1});}async[_0x354c45(0x33b)](_0x3e24aa){const _0xbeb0b2=_0x354c45,_0x47f883=this[_0xbeb0b2(0x238)]()+_0xbeb0b2(0x1e5);return(await this['_HTTPService'][_0xbeb0b2(0x309)](_0x47f883,{'params':{'objectID':_0x3e24aa[_0xbeb0b2(0x3c8)],'unitID':_0x3e24aa[_0xbeb0b2(0x22b)]}}))[_0xbeb0b2(0xd6)]['collaborators'];}async['putCollaborators'](_0x4be49f){const _0x1958ee=_0x354c45,_0x1859ca=this[_0x1958ee(0x238)]()+'/collaborator';await this[_0x1958ee(0x91)]['put'](_0x1859ca,{'body':_0x4be49f});}};Pt=Co([us(0x0,_0x229f6b(_0x131927)),us(0x1,_0x229f6b(_0x476b70))],Pt);var To=Object[_0x354c45(0xa3)],Oo=Object['getOwnPropertyDescriptor'],Do=(_0x59acec,_0x5cb36e,_0x236437,_0x510a09)=>{const _0x3873cb=_0x354c45;for(var _0x4d87ad=_0x510a09>0x1?void 0x0:_0x510a09?Oo(_0x5cb36e,_0x236437):_0x5cb36e,_0x1d84f0=_0x59acec[_0x3873cb(0x16f)]-0x1,_0x73a544;_0x1d84f0>=0x0;_0x1d84f0--)(_0x73a544=_0x59acec[_0x1d84f0])&&(_0x4d87ad=(_0x510a09?_0x73a544(_0x5cb36e,_0x236437,_0x4d87ad):_0x73a544(_0x4d87ad))||_0x4d87ad);return _0x510a09&&_0x4d87ad&&To(_0x5cb36e,_0x236437,_0x4d87ad),_0x4d87ad;},mt=(_0x5daf2b,_0xd1e63d)=>(_0x1ac842,_0x2ee8c3)=>_0xd1e63d(_0x1ac842,_0x2ee8c3,_0x5daf2b);const Po=[_0x354c45(0x2d8),_0x354c45(0x1c2),_0x354c45(0x261),_0x354c45(0x23b),_0x354c45(0x2c0)],wo=0x5*0x400*0x400,No=_0x354c45(0x391),Mo=_0x354c45(0x1af),Ao=_0x354c45(0x381),Uo='/universer-api/file/{fileID}/sign-url';function _0x5b0c(_0x490c1c,_0x4389e7){const _0x3791c5=_0x3791();return _0x5b0c=function(_0x5b0c67,_0x34e16b){_0x5b0c67=_0x5b0c67-0x7d;let _0x33e4b9=_0x3791c5[_0x5b0c67];return _0x33e4b9;},_0x5b0c(_0x490c1c,_0x4389e7);}let wt=class{constructor(_0x370037,_0x32ae96,_0xc2cb0d){const _0x2567d5=_0x354c45;_(this,_0x2567d5(0x1e7),0x0),_(this,_0x2567d5(0x23c),new _0x2b4845()),_(this,_0x2567d5(0x1f7),this[_0x2567d5(0x23c)]),_(this,_0x2567d5(0x20d),new Map()),(this['_httpService']=_0x370037,this[_0x2567d5(0x102)]=_0x32ae96,this['_univerInstanceService']=_0xc2cb0d);}[_0x354c45(0xdc)](_0x53dec6){const _0x495025=_0x354c45;this['_waitCount']=_0x53dec6,this[_0x495025(0x23c)]['next'](_0x53dec6);}[_0x354c45(0x252)](_0x475b8b,_0x259de1){const _0x475b6e=_0x354c45;if(_0x259de1===_0x2c20b7[_0x475b6e(0x8e)]){const _0x26341f=new Image();return _0x26341f[_0x475b6e(0x253)]=_0x475b8b,_0x26341f;}return this['_imageSourceCache'][_0x475b6e(0x309)](_0x475b8b);}[_0x354c45(0x277)](_0x349427,_0x1369b9,_0x2139e0){const _0x5260fe=_0x354c45;_0x1369b9===_0x2c20b7[_0x5260fe(0x8e)]||_0x2139e0==null||this[_0x5260fe(0x20d)]['set'](_0x349427,_0x2139e0);}async[_0x354c45(0x15d)](_0x24380c){const _0x516a62=_0x354c45;try{const _0x265a9d=this['_replaceFileID'](this['_getSignURL'](),''+_0x24380c),_0x4bfc73=(await this[_0x516a62(0x137)][_0x516a62(0x309)](_0x265a9d))[_0x516a62(0xd6)];return _0x4bfc73[_0x516a62(0x35c)]&&_0x4bfc73[_0x516a62(0x35c)][_0x516a62(0x7d)]===Ps['OK']?Promise['resolve'](_0x4bfc73[_0x516a62(0x3d1)]):Promise[_0x516a62(0x191)](_0x4bfc73['error']);}catch(_0x274291){return Promise['reject'](_0x274291);}}async[_0x354c45(0x14a)](_0x5a8188){const _0x1cb586=_0x354c45;let _0x15ca2e='';if(!Po[_0x1cb586(0x3a8)](_0x5a8188[_0x1cb586(0x354)]))return this['_decreaseWaiting'](),Promise[_0x1cb586(0x191)](new Error(_0x34bcaa['ERROR_IMAGE_TYPE']));if(_0x5a8188[_0x1cb586(0x2f1)]>wo)return this[_0x1cb586(0x125)](),Promise['reject'](new Error(_0x34bcaa['ERROR_EXCEED_SIZE']));try{const _0x324a43=new FormData();_0x324a43[_0x1cb586(0x103)](_0x1cb586(0x1d4),_0x5a8188);const _0x521e30=this[_0x1cb586(0x134)]['getFocusedUnit'](),_0x452233=_0x521e30==null?void 0x0:_0x521e30[_0x1cb586(0x3a7)]();if(!_0x452233)throw new Error(_0x1cb586(0x2fc));const _0x2d0a03=this[_0x1cb586(0x88)]()+'?size='+_0x5a8188[_0x1cb586(0x2f1)][_0x1cb586(0x10b)]()+'&source='+ws[_0x1cb586(0x28c)]+_0x1cb586(0x94)+encodeURIComponent(_0x452233),_0x30edbe=await(await fetch(_0x2d0a03,{'method':_0x1cb586(0x16e),'body':_0x324a43}))['json']();if(typeof _0x30edbe['FileId']!=_0x1cb586(0x9f))return this['_decreaseWaiting'](),Promise['reject'](new Error(_0x34bcaa[_0x1cb586(0x3ce)]));_0x15ca2e=_0x30edbe[_0x1cb586(0x161)];}catch{return this[_0x1cb586(0x125)](),Promise[_0x1cb586(0x191)](new Error(_0x34bcaa['ERROR_IMAGE']));}return new Promise((_0x312475,_0x2e7c48)=>{const _0x3d9489=new FileReader();_0x3d9489['readAsDataURL'](_0x5a8188),_0x3d9489['onload']=_0x32c868=>{const _0x4743fb=_0x5b0c;var _0x2dc796;const _0xff6e07=(_0x2dc796=_0x32c868[_0x4743fb(0x15e)])==null?void 0x0:_0x2dc796['result'];if(_0xff6e07==null){this[_0x4743fb(0x125)](),_0x2e7c48(new Error(_0x34bcaa[_0x4743fb(0x3ce)]));return;}const _0x45b652=_0x40bd5b['generateRandomId'](0x6);_0x312475({'imageId':_0x45b652,'imageSourceType':_0x2c20b7[_0x4743fb(0x38a)],'source':_0x15ca2e,'base64Cache':_0xff6e07,'status':_0x34bcaa[_0x4743fb(0x394)]}),this[_0x4743fb(0x125)]();};});}[_0x354c45(0x88)](){const _0x46d3c4=_0x354c45;var _0x44e4fd;return(_0x44e4fd=this[_0x46d3c4(0x102)]['getConfig'](No))!=null?_0x44e4fd:Mo;}[_0x354c45(0x263)](){const _0x110e7c=_0x354c45;var _0x22d9a5;return(_0x22d9a5=this['_configService'][_0x110e7c(0x119)](Ao))!=null?_0x22d9a5:Uo;}[_0x354c45(0x9d)](_0x444afe,_0x255e87){const _0x40dc60=_0x354c45;return _0x444afe[_0x40dc60(0x227)](_0x40dc60(0x2be),_0x255e87);}[_0x354c45(0x125)](){const _0x2b42e3=_0x354c45;this[_0x2b42e3(0x1e7)]-=0x1,this[_0x2b42e3(0x23c)][_0x2b42e3(0x2fe)](this[_0x2b42e3(0x1e7)]);}};wt=Do([mt(0x0,_0x229f6b(_0x131927)),mt(0x1,_0x476b70),mt(0x2,_0x229f6b(_0x14d401))],wt);var yo=Object[_0x354c45(0xa3)],Lo=Object['getOwnPropertyDescriptor'],$o=(_0x299521,_0x315f61,_0x52f8df,_0x211946)=>{const _0x4e11d0=_0x354c45;for(var _0x4cc000=_0x211946>0x1?void 0x0:_0x211946?Lo(_0x315f61,_0x52f8df):_0x315f61,_0x48bbc6=_0x299521[_0x4e11d0(0x16f)]-0x1,_0x2ac4b3;_0x48bbc6>=0x0;_0x48bbc6--)(_0x2ac4b3=_0x299521[_0x48bbc6])&&(_0x4cc000=(_0x211946?_0x2ac4b3(_0x315f61,_0x52f8df,_0x4cc000):_0x2ac4b3(_0x4cc000))||_0x4cc000);return _0x211946&&_0x4cc000&&yo(_0x315f61,_0x52f8df,_0x4cc000),_0x4cc000;},Ne=(_0x4ca182,_0x1d471d)=>(_0x59a637,_0x391a28)=>_0x1d471d(_0x59a637,_0x391a28,_0x4ca182);let We=class extends _0x5aeadb{constructor(_0x2cd214,_0x361ead,_0x481217,_0x42124a,_0x972b78){const _0xd351ad=_0x354c45;super(),this[_0xd351ad(0x259)]=_0x2cd214,this['_univerInstanceService']=_0x361ead,this[_0xd351ad(0x155)]=_0x481217,this[_0xd351ad(0x3ae)]=_0x42124a,this['_localeService']=_0x972b78,this[_0xd351ad(0x297)](),this[_0xd351ad(0x237)]();}[_0x354c45(0x237)](){const _0x5ed47f=_0x354c45,_0x10de7b=async _0x3c59bf=>{const _0x4be297=_0x5b0c;(await this[_0x4be297(0x3ae)]['requireSession'](_0x3c59bf))['event$'][_0x4be297(0x1e1)](_0x2a5de4(_0x122332=>_0x122332[_0x4be297(0x2d3)]===_0x363b50[_0x4be297(0x13f)]),_0xc21920(this[_0x4be297(0x1a1)]))[_0x4be297(0x37e)](_0x4efd11=>{const _0x27e043=_0x4be297,_0x4efd51=_0x4efd11,{reason:_0x47a6bb}=_0x4efd51[_0x27e043(0x385)];this['_injector']['get'](_0x5963f9)[_0x27e043(0x2e0)]({'type':_0x1679e9['Error'],'content':this[_0x27e043(0xa4)]['t']('collaboration.closeRoom')+'('+_0x47a6bb+')'}),this[_0x27e043(0x155)]['updatePermissionPoint'](new _0x47313f(_0x3c59bf)['id'],!0x1),this['_collaborationSessionService']['closeSession'](_0x3c59bf);});};_0x5b30b2(this[_0x5ed47f(0x134)][_0x5ed47f(0xcc)](_0x380445[_0x5ed47f(0x31c)]),this[_0x5ed47f(0x134)]['getTypeOfUnitAdded$'](_0x380445[_0x5ed47f(0x30e)]))[_0x5ed47f(0x1e1)](_0x1b7b12(_0x18e8e0=>_0x18e8e0[_0x5ed47f(0x3a7)]()),_0x2a5de4(_0x28e7a5=>!_0x2299ce(_0x28e7a5)),_0xc21920(this[_0x5ed47f(0x1a1)]))['subscribe'](_0x42f100=>{_0x10de7b(_0x42f100);});}[_0x354c45(0x297)](){const _0x2cb4b5=_0x354c45,_0x55b207=async _0x573a46=>{const _0xf37034=_0x5b0c;(await this['_collaborationSessionService'][_0xf37034(0x258)](_0x573a46))['event$'][_0xf37034(0x1e1)](_0x2a5de4(_0x44c571=>_0x44c571[_0xf37034(0x2d3)]===_0x363b50[_0xf37034(0x293)]),_0xc21920(this[_0xf37034(0x1a1)]))[_0xf37034(0x37e)](_0x36cd35=>{const _0x7b1598=_0xf37034,_0x24bc26=_0x36cd35,{objectId:_0x3047fe}=_0x24bc26[_0x7b1598(0x385)],_0x242459=this[_0x7b1598(0x259)][_0x7b1598(0x309)](_0x36a220);_0x3047fe===_0x573a46?_0x242459[_0x7b1598(0x217)](_0x573a46):_0x242459['refreshPermission'](_0x573a46,_0x3047fe);});};_0x5b30b2(this[_0x2cb4b5(0x134)][_0x2cb4b5(0xcc)](_0x380445['UNIVER_SHEET']),this[_0x2cb4b5(0x134)][_0x2cb4b5(0xcc)](_0x380445[_0x2cb4b5(0x30e)]))['pipe'](_0x1b7b12(_0x1937b1=>_0x1937b1['getUnitId']()),_0x2a5de4(_0x2302fa=>!_0x2299ce(_0x2302fa)),_0xc21920(this[_0x2cb4b5(0x1a1)]))[_0x2cb4b5(0x37e)](_0x4a0320=>{_0x55b207(_0x4a0320);});}};We=$o([_0x5c1b58(_0x21b2c3[_0x354c45(0xbe)],We),Ne(0x0,_0x229f6b(_0x3b06f9)),Ne(0x1,_0x14d401),Ne(0x2,_0x4c56be),Ne(0x3,_0x229f6b(pe)),Ne(0x4,_0x229f6b(_0x5e486d))],We);var ks=Object['defineProperty'],jo=Object[_0x354c45(0x3cf)],xo=(_0x8bbb0e,_0x2b4b18,_0xa749f7)=>_0x2b4b18 in _0x8bbb0e?ks(_0x8bbb0e,_0x2b4b18,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xa749f7}):_0x8bbb0e[_0x2b4b18]=_0xa749f7,Ho=(_0xe8b4f8,_0x4d0025,_0x41e88c,_0x3933c8)=>{for(var _0x17ce3f=_0x3933c8>0x1?void 0x0:_0x3933c8?jo(_0x4d0025,_0x41e88c):_0x4d0025,_0xaa5457=_0xe8b4f8['length']-0x1,_0x3b3bb0;_0xaa5457>=0x0;_0xaa5457--)(_0x3b3bb0=_0xe8b4f8[_0xaa5457])&&(_0x17ce3f=(_0x3933c8?_0x3b3bb0(_0x4d0025,_0x41e88c,_0x17ce3f):_0x3b3bb0(_0x17ce3f))||_0x17ce3f);return _0x3933c8&&_0x17ce3f&&ks(_0x4d0025,_0x41e88c,_0x17ce3f),_0x17ce3f;},ft=(_0x11bdd4,_0x48dc2a)=>(_0x5d66ca,_0x51fb4c)=>_0x48dc2a(_0x5d66ca,_0x51fb4c,_0x11bdd4),ko=(_0x3d8213,_0x58e5f7,_0x127ea9)=>xo(_0x3d8213,_0x58e5f7+'',_0x127ea9);const Vo=_0x354c45(0x1b6);let Nt=class extends _0x570c3f{constructor(_0x3735e5,_0xd58f8f,_0x59ec85,_0x1f389b){const _0x426d60=_0x354c45;super(),this[_0x426d60(0x1fa)]=_0x3735e5,this[_0x426d60(0x10f)]=_0xd58f8f,this[_0x426d60(0x197)]=_0x59ec85,this[_0x426d60(0x259)]=_0x1f389b;}[_0x354c45(0x2c1)](){this['_registerDependencies']();}[_0x354c45(0x288)](){const _0xf979be=_0x354c45;this[_0xf979be(0xc5)]();}['_registerDependencies'](){const _0x1a7fba=_0x354c45;var _0x44aea6,_0xdca6da,_0x1c1328,_0x3f7959;this[_0x1a7fba(0x259)][_0x1a7fba(0x340)](_0x13005c)&&this[_0x1a7fba(0x10f)][_0x1a7fba(0x35c)](_0x1a7fba(0x1dd),_0x1a7fba(0x368));let _0x35ee5a=[[_0x13005c,{'useClass':Dt}],[pe],[Ht],[_0x131927],[Hs,{'useClass':ao}],[ne],[D],[_0x1a53de],[qe],[ze],[Je],[xt],[Qe],[Ms],[We],[Ns,{'useClass':(_0xdca6da=(_0x44aea6=this[_0x1a7fba(0x1fa)])==null?void 0x0:_0x44aea6[_0x1a7fba(0x2d2)])!=null?_0xdca6da:vt}],[_0x162271,{'useClass':_0x967f9}],[_0x34895f,{'useClass':Ot}],[_0x1fc328,{'useClass':Pt}],[_0x1e214e,{'useClass':wt}],[Me],[Ve],[ke],[Be],[ge]];(_0x1c1328=this[_0x1a7fba(0x1fa)])!=null&&_0x1c1328['enableSingleActiveInstanceLock']&&_0x35ee5a[_0x1a7fba(0x34c)]([tt,{'useClass':Vn}]),_0x35ee5a=_0x321f28(_0x35ee5a,(_0x3f7959=this['_config'])==null?void 0x0:_0x3f7959[_0x1a7fba(0x1b5)]),_0x35ee5a[_0x1a7fba(0x18d)](_0x2602df=>this[_0x1a7fba(0x259)][_0x1a7fba(0x264)](_0x2602df)),this[_0x1a7fba(0x3b6)]();}[_0x354c45(0xc5)](){const _0x539558=_0x354c45;this['disposeWithMe'](this[_0x539558(0x197)]['registerRenderModule'](_0x380445[_0x539558(0x30e)],[Fe])),this[_0x539558(0x1a0)](this['_renderManagerService'][_0x539558(0x204)](_0x380445[_0x539558(0x31c)],[Tt]));}[_0x354c45(0x3b6)](){const _0x11d431=_0x354c45;var _0x1f03f0,_0x1a9404;this[_0x11d431(0x259)][_0x11d431(0x309)](_0x131927)[_0x11d431(0x3a0)]({'priority':0x14,'interceptor':_0x5a108e({'maxParallel':0x6})}),(_0x1f03f0=this[_0x11d431(0x1fa)])!=null&&_0x1f03f0[_0x11d431(0x1b4)]||this[_0x11d431(0x259)][_0x11d431(0x309)](D)[_0x11d431(0x95)](),(_0x1a9404=this[_0x11d431(0x1fa)])!=null&&_0x1a9404[_0x11d431(0x1f5)]&&this[_0x11d431(0x259)]['get'](Qe);}};ko(Nt,'pluginName',Vo),Nt=Ho([_0x1f3081(_0x45452d),ft(0x1,_0x4491a7),ft(0x2,_0x727bee),ft(0x3,_0x229f6b(_0x3b06f9))],Nt);export{bo as AUTHZ_URL_KEY,Pt as AuthzIoHttpService,Cn as COLLAB_SUBMIT_CHANGESET_URL_KEY,un as COLLAB_WEB_SOCKET_URL_KEY,Me as CollaborationController,It as CollaborationSession,pe as CollaborationSessionService,vt as CollaborationSocketService,P as CollaborationStatus,Br as CollaborationStatusDisplay,Ms as CommentService,Ve as DataLoaderController,ke as DesktopCollaborationStatusDisplayController,mn as HEARTBEAT_INTERVAL_KEY,Os as HEARTBEAT_TIMEOUT_KEY,Ns as ICollaborationSocketService,Hs as IURLService,wt as ImageIoService,In as LOCAL_CACHE_INTERVAL_KEY,Rn as LOGIN_URL_KEY,D as LocalCacheService,_n as SEND_CHANGESET_TIMEOUT_KEY,an as SNAPSHOT_SERVER_URL_KEY,hn as SNAPSHOT_URL_KEY,fe as SessionStatus,Rr as SheetCollabCursorShape,Ct as SheetCollaborationEntity,Ot as SnapshotServerOverHTTPService,Nt as UniverCollaborationClientPlugin,ao as WebURLService,Nn as deserializeToCombResponse,Mn as serializeCombRequest};
|