@univerjs-pro/collaboration-client 0.2.1 → 0.2.2
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/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +26 -26
package/lib/es/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const _0x51fc53=_0x5e69;(function(_0x30ab14,_0x2eb2b9){const _0x1f6736=_0x5e69,_0x1dbc37=_0x30ab14();while(!![]){try{const _0xfa9a67=parseInt(_0x1f6736(0x2df))/0x1+parseInt(_0x1f6736(0x88))/0x2*(-parseInt(_0x1f6736(0x12f))/0x3)+-parseInt(_0x1f6736(0xe8))/0x4+-parseInt(_0x1f6736(0x1f1))/0x5*(-parseInt(_0x1f6736(0x363))/0x6)+-parseInt(_0x1f6736(0x15b))/0x7*(parseInt(_0x1f6736(0x2d6))/0x8)+-parseInt(_0x1f6736(0x26d))/0x9*(parseInt(_0x1f6736(0xe1))/0xa)+-parseInt(_0x1f6736(0x389))/0xb*(-parseInt(_0x1f6736(0x1c2))/0xc);if(_0xfa9a67===_0x2eb2b9)break;else _0x1dbc37['push'](_0x1dbc37['shift']());}catch(_0x5020ab){_0x1dbc37['push'](_0x1dbc37['shift']());}}}(_0x18ca,0x42df1));var xs=Object[_0x51fc53(0x18f)],Fs=(_0xa1e703,_0x30b155,_0x469b1c)=>_0x30b155 in _0xa1e703?xs(_0xa1e703,_0x30b155,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x469b1c}):_0xa1e703[_0x30b155]=_0x469b1c,l=(_0x507786,_0x45adc2,_0x38a3fa)=>Fs(_0x507786,typeof _0x45adc2!='symbol'?_0x45adc2+'':_0x45adc2,_0x38a3fa);import{Disposable as _0x10a29c,toDisposable as _0x2f2f24,UniverInstanceType as _0x3504ec,UserManagerService as _0x1b79c3,IUniverInstanceService as _0x373907,DisposableCollection as _0x3ab8a8,IConfigService as _0x5977ca,ILogService as _0x3cb271,ISnapshotServerService as _0x3ad936,RxDisposable as _0x521c86,LocaleService as _0x201091,ILocalStorageService as _0x2cad44,Tools as _0x4cfbd7,ICommandService as _0x568418,JSONX as _0xe185f6,IPermissionService as _0x57bd86,IUndoRedoService as _0x5815e0,sequenceExecute as _0x4bf5fd,OnLifecycle as _0x47ad3a,LifecycleStages as _0x34068b,CommandType as _0x1b1270,Rectangle as _0x1fb77c,ThemeService as _0x522711,Workbook as _0x3b5c47,textEncoder as _0x56aec7,b64DecodeUnicode as _0x5ad4b1,LocalUndoRedoService as _0x31c064,IContextService as _0x187fc2,COLORS as _0x131343,ColorKit as _0x3dc381,Plugin as _0x5ab657,IAuthzIoService as _0x5c087b,mergeOverrideWithDependencies as _0xd86ae6,DependentOn as _0x2e4016}from'@univerjs/core';import{SelectionManagerService as _0x5c112f,SetSelectionsOperation as _0x2708b7,InsertSheetMutation as _0x75b52d,WorkbookEditablePermission as _0x4b6c4e,RefRangeService as _0x4cc8b2,EffectRefRangId as _0x4d5ced,handleIRemoveRow as _0x1d7ce0,handleIRemoveCol as _0x122c4c,handleMoveRange as _0x511a99,handleInsertRow as _0x254106,handleInsertRangeMoveRight as _0x4c1408,handleInsertRangeMoveDown as _0x268953,handleInsertCol as _0x3b1ac8,handleDeleteRangeMoveUp as _0x5c5378,handleDeleteRangeMoveLeft as _0x3ca06c,runRefRangeMutations as _0x3711ba,SetWorksheetActivateCommand as _0x1c5f90}from'@univerjs/sheets';import{MessageType as _0x1587ba}from'@univerjs/design';import{IBeforeCloseService as _0x5e3e8f,IMessageService as _0xf8e37a,INotificationService as _0x3c139b,useObservable as _0x282297,BuiltInUIPart as _0x4e424f,IUIPartsService as _0x117aca}from'@univerjs/ui';import{CollaborationEvent as _0x1b5c65,parseChangesetToProtocol as _0x57e4b9,RevisionService as _0x4d36b1,isTransformMutationFailure as _0xcc662a,isTransformMutationsWithChangesetSuccess as _0x5a8972,ITransformService as _0x425e9b,mapDocumentTypeToUniverType as _0x23bb45,isTransformChangesetsSuccess as _0x4b3216,CompressMutationService as _0x2c81ea,parseProtocolChangeset as _0x8dccd4,SnapshotService as _0x3cc45f,isTransformMutationsWithChangesetFailure as _0x4c2f5b,UniverCollaborationPlugin as _0x114daf}from'@univerjs-pro/collaboration';import{Inject as _0x4a7404,createIdentifier as _0xf73999,Injector as _0x44b6b8,Optional as _0x19d484}from'@wendellhu/redi';import{merge as _0x124107,Subject as _0x5da41e,BehaviorSubject as _0x5d7d96,distinctUntilChanged as _0xe50b30,fromEvent as _0x1860dc,of as _0xdadc8c,takeUntil as _0x1603a2,debounceTime as _0x4c0f1b,filter as _0x5f5348,switchMap as _0x8b3a32,combineLatest as _0x73b353,shareReplay as _0xcf2b53,mapTo as _0x154121,concatMap as _0x22cd34}from'rxjs';import{map as _0x1db2aa,takeUntil as _0x430c3c,take as _0x51a597,filter as _0x1b26e7,delay as _0x54f844,shareReplay as _0x4b3c1f,switchMap as _0xb49a6c}from'rxjs/operators';import{IMEInputManagerService as _0x57e020,TextSelectionManagerService as _0x58dacd,serializeTextRange as _0x2646e0,DocStateChangeManagerService as _0x47f8d9,SetTextSelectionsOperation as _0xf9fdf8,RichTextEditingMutation as _0x47707c,getDocObject as _0x3248cd,DocSkeletonManagerService as _0x46f5a8}from'@univerjs/docs';import{HTTPService as _0x142257,WebSocketService as _0x1e9f90,IHTTPImplementation as _0x38690b,XHRHTTPImplementation as _0x443f73,ThresholdInterceptorFactory as _0x5bab19}from'@univerjs/network';import{ImageSourceType as _0x3a239e,ImageUploadStatusType as _0x59dd1c,IImageIoService as _0x18bd4e}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x285859,serializeRangeWithSheet as _0x273a62}from'@univerjs/engine-formula';import _0x507539 from'lodash/debounce';import{Shape as _0xe13222,Rect as _0xbeb8e4,Vector2 as _0x44f5c0,IRenderManagerService as _0x39c4de,NodePositionConvertToCursor as _0x1dca35,getColor as _0x43e11f,TEXT_RANGE_LAYER_INDEX as _0x337814,RegularPolygon as _0x3c2aad}from'@univerjs/engine-render';import{SheetSkeletonManagerService as _0x358cc7,VIEWPORT_KEY as _0x1940ad,getCoordByCell as _0x35114e,getSheetObject as _0x23f9f7}from'@univerjs/sheets-ui';import{useDependency as _0x1d48ce,connectInjector as _0x50255b}from'@wendellhu/redi/react-bindings';import _0x1c416c,{forwardRef as _0x4ddef2,useRef as _0x4ff318,createElement as _0x153699}from'react';import _0x1a2218 from'clsx';import{IRemoteInstanceService as _0x34d98a}from'@univerjs/rpc';const Gi=_0x51fc53(0x136),Yi=_0x51fc53(0x22a),Ki=_0x51fc53(0x110),Xi=_0x51fc53(0x339),Ji=0x7d0,zi=_0x51fc53(0xdf),Zi=_0x51fc53(0x3a0),qi=_0x51fc53(0x162),Qi=0x7530,Is='HEARTBEAT_TIMEOUT',Es=0x2710,en=_0x51fc53(0x93),tn=0x4e20,sn='RETRY_CONNECTING_MAX_COUNT',nn=0x3,rn=_0x51fc53(0xff),on=0x3e8,an='COLLAB_SUBMIT_CHANGESET_URL',cn=_0x51fc53(0x26a),hn=_0x51fc53(0x384),ln=_0x51fc53(0x258);var Cs=(_0x2bbe97=>(_0x2bbe97[_0x2bbe97['UNDEFINED']=0x0]=_0x51fc53(0x396),_0x2bbe97[_0x2bbe97['OK']=0x1]='OK',_0x2bbe97[_0x2bbe97[_0x51fc53(0x1df)]=0x2]=_0x51fc53(0x1df),_0x2bbe97[_0x2bbe97[_0x51fc53(0x14c)]=0x3]=_0x51fc53(0x14c),_0x2bbe97[_0x2bbe97[_0x51fc53(0x2f9)]=0x4]='NOT_FOUND',_0x2bbe97[_0x2bbe97[_0x51fc53(0x86)]=0x5]=_0x51fc53(0x86),_0x2bbe97[_0x2bbe97[_0x51fc53(0x2fc)]=0x6]=_0x51fc53(0x2fc),_0x2bbe97[_0x2bbe97[_0x51fc53(0x366)]=0x7]=_0x51fc53(0x366),_0x2bbe97[_0x2bbe97['TOO_MANY_REQUESTS']=0x8]=_0x51fc53(0x2a2),_0x2bbe97[_0x2bbe97[_0x51fc53(0x1fa)]=0x9]=_0x51fc53(0x1fa),_0x2bbe97[_0x2bbe97['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x51fc53(0x311),_0x2bbe97[_0x2bbe97['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x51fc53(0x208),_0x2bbe97[_0x2bbe97[_0x51fc53(0x1cb)]=0x1772]=_0x51fc53(0x1cb),_0x2bbe97[_0x2bbe97[_0x51fc53(0x101)]=0x1b59]=_0x51fc53(0x101),_0x2bbe97[_0x2bbe97[_0x51fc53(0x163)]=0x1b5a]=_0x51fc53(0x163),_0x2bbe97[_0x2bbe97[_0x51fc53(0x30b)]=0x1b5b]=_0x51fc53(0x30b),_0x2bbe97[_0x2bbe97[_0x51fc53(0x1dc)]=0x1b5c]=_0x51fc53(0x1dc),_0x2bbe97[_0x2bbe97[_0x51fc53(0x2e2)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x2bbe97[_0x2bbe97[_0x51fc53(0x2c8)]=0x2329]=_0x51fc53(0x2c8),_0x2bbe97[_0x2bbe97[_0x51fc53(0xbc)]=0x232a]=_0x51fc53(0xbc),_0x2bbe97[_0x2bbe97[_0x51fc53(0x31b)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x2bbe97[_0x2bbe97[_0x51fc53(0xfb)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x2bbe97[_0x2bbe97[_0x51fc53(0x156)]=0x232d]=_0x51fc53(0x156),_0x2bbe97[_0x2bbe97[_0x51fc53(0x305)]=0x2711]=_0x51fc53(0x305),_0x2bbe97[_0x2bbe97[_0x51fc53(0x215)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x2bbe97[_0x2bbe97['UNRECOGNIZED']=-0x1]=_0x51fc53(0x1cc),_0x2bbe97))(Cs||{}),H=(_0x5551e4=>(_0x5551e4[_0x5551e4[_0x51fc53(0xb7)]=0x0]=_0x51fc53(0xb7),_0x5551e4[_0x5551e4[_0x51fc53(0x32c)]=0x1]=_0x51fc53(0x32c),_0x5551e4[_0x5551e4['UNIVER_SHEET']=0x2]='UNIVER_SHEET',_0x5551e4[_0x5551e4[_0x51fc53(0x28c)]=0x3]=_0x51fc53(0x28c),_0x5551e4[_0x5551e4[_0x51fc53(0x1cc)]=-0x1]=_0x51fc53(0x1cc),_0x5551e4))(H||{}),I=(_0x31342f=>(_0x31342f[_0x31342f[_0x51fc53(0x13d)]=0x0]=_0x51fc53(0x13d),_0x31342f[_0x31342f[_0x51fc53(0x2bd)]=0x1]=_0x51fc53(0x2bd),_0x31342f[_0x31342f[_0x51fc53(0x8f)]=0x2]=_0x51fc53(0x8f),_0x31342f[_0x31342f[_0x51fc53(0xd8)]=0x3]=_0x51fc53(0xd8),_0x31342f[_0x31342f[_0x51fc53(0x91)]=0x4]=_0x51fc53(0x91),_0x31342f[_0x31342f['HEARTBEAT']=0x5]=_0x51fc53(0x199),_0x31342f[_0x31342f[_0x51fc53(0x326)]=0x6]='RECV',_0x31342f[_0x31342f[_0x51fc53(0x1cc)]=-0x1]=_0x51fc53(0x1cc),_0x31342f))(I||{}),Nt=(_0x119e9e=>(_0x119e9e[_0x119e9e[_0x51fc53(0x29e)]=0x0]='UNKNOWN_CODE',_0x119e9e[_0x119e9e['OK']=0x1]='OK',_0x119e9e[_0x119e9e[_0x51fc53(0xe9)]=0x2]='FAIL',_0x119e9e[_0x119e9e['UNRECOGNIZED']=-0x1]=_0x51fc53(0x1cc),_0x119e9e))(Nt||{}),_n=Object[_0x51fc53(0x18f)],un=Object[_0x51fc53(0x340)],dn=(_0x12cfea,_0x4177df,_0x19c5b6,_0x2cbe38)=>{const _0x4c38bf=_0x51fc53;for(var _0x28a436=_0x2cbe38>0x1?void 0x0:_0x2cbe38?un(_0x4177df,_0x19c5b6):_0x4177df,_0x21ebc0=_0x12cfea[_0x4c38bf(0x2c6)]-0x1,_0x2ec73c;_0x21ebc0>=0x0;_0x21ebc0--)(_0x2ec73c=_0x12cfea[_0x21ebc0])&&(_0x28a436=(_0x2cbe38?_0x2ec73c(_0x4177df,_0x19c5b6,_0x28a436):_0x2ec73c(_0x28a436))||_0x28a436);return _0x2cbe38&&_0x28a436&&_n(_0x4177df,_0x19c5b6,_0x28a436),_0x28a436;},Wt=(_0x31bccb,_0x251bae)=>(_0x7c12c0,_0x564b5a)=>_0x251bae(_0x7c12c0,_0x564b5a,_0x31bccb);let ee=class extends _0x10a29c{constructor(_0x280fbf,_0x4c0b4a){const _0xa9a552=_0x51fc53;super(),l(this,_0xa9a552(0x18b),new Map()),(this[_0xa9a552(0xa0)]=_0x280fbf,this[_0xa9a552(0x2a7)]=_0x4c0b4a,this[_0xa9a552(0x294)](_0x2f2f24(_0x124107(this[_0xa9a552(0xa0)]['getTypeOfUnitDisposed$'](_0x3504ec['UNIVER_SHEET'])['pipe'](_0x1db2aa(_0x139b88=>_0x139b88[_0xa9a552(0x244)]())),this[_0xa9a552(0xa0)][_0xa9a552(0x280)](_0x3504ec['UNIVER_DOC'])['pipe'](_0x1db2aa(_0x53dbe2=>_0x53dbe2[_0xa9a552(0x244)]())),this[_0xa9a552(0xa0)]['getTypeOfUnitDisposed$'](_0x3504ec[_0xa9a552(0x28c)])[_0xa9a552(0x2c3)](_0x1db2aa(_0x116d1f=>_0x116d1f[_0xa9a552(0x244)]())))['subscribe'](_0x1c61ee=>this['_removeRoom'](_0x1c61ee)))));}['setCurrentUser'](_0x466bdc){const _0x20f8de=_0x51fc53;this['_userManagerService'][_0x20f8de(0x20b)](_0x466bdc);}[_0x51fc53(0x328)](){const _0x32aaa7=_0x51fc53;return this[_0x32aaa7(0x2a7)]['getCurrentUser']();}[_0x51fc53(0x2e9)](_0x36920c,_0xc51979){const _0x1c9fa4=_0x51fc53;let _0x28bbcd=this[_0x1c9fa4(0x18b)][_0x1c9fa4(0x151)](_0x36920c);_0x28bbcd||(_0x28bbcd=new fn(),this[_0x1c9fa4(0x18b)][_0x1c9fa4(0x38f)](_0x36920c,_0x28bbcd)),_0x28bbcd[_0x1c9fa4(0x2e9)](_0xc51979);}[_0x51fc53(0x3be)](_0x5b3f5a,_0x495601){const _0x5bc1e7=_0x51fc53,_0x252296=this[_0x5bc1e7(0x18b)]['get'](_0x5b3f5a);_0x252296&&_0x252296['removeMember'](_0x495601);}[_0x51fc53(0x9c)](_0x4dbc98){return this['_roomMembers']['get'](_0x4dbc98);}[_0x51fc53(0xb6)](_0x3740fd,_0x21d6cb){const _0x55f914=_0x51fc53,_0x330cd8=this['_roomMembers'][_0x55f914(0x151)](_0x3740fd);if(_0x330cd8)return _0x330cd8[_0x55f914(0xb6)](_0x21d6cb);}[_0x51fc53(0x1ce)](_0x63522c){const _0x158a03=_0x51fc53,_0x13770e=this[_0x158a03(0x18b)][_0x158a03(0x151)](_0x63522c);_0x13770e&&(_0x13770e[_0x158a03(0x232)](),this[_0x158a03(0x18b)][_0x158a03(0x209)](_0x63522c));}[_0x51fc53(0x232)](){const _0x4ad3c1=_0x51fc53;this['_roomMembers'][_0x4ad3c1(0x124)](_0x42205e=>_0x42205e[_0x4ad3c1(0x232)]()),this[_0x4ad3c1(0x18b)][_0x4ad3c1(0x362)]();}};ee=dn([Wt(0x0,_0x373907),Wt(0x1,_0x4a7404(_0x1b79c3))],ee);class fn extends _0x10a29c{constructor(){const _0x51f169=_0x51fc53;super(...arguments),l(this,_0x51f169(0x236),new Map());}[_0x51fc53(0x232)](){const _0x157fbb=_0x51fc53;this[_0x157fbb(0x236)][_0x157fbb(0x362)]();}[_0x51fc53(0x2e9)](_0x5c0d1c){const _0x2d9539=_0x51fc53;this[_0x2d9539(0x236)]['set'](_0x5c0d1c[_0x2d9539(0x2ae)],_0x5c0d1c);}['removeMember'](_0x58467e){const _0x20bd8d=_0x51fc53;this[_0x20bd8d(0x236)][_0x20bd8d(0x209)](_0x58467e);}['getMember'](_0x4d6c55){const _0x168702=_0x51fc53;return this[_0x168702(0x236)]['get'](_0x4d6c55);}}function gn(_0x625b64){const _0x36f53e=_0x51fc53;var _0x2ba538,_0x1ef87e,_0x56e9dc,_0x715033;const _0x21e83a=_0x625b64[_0x36f53e(0x94)],_0x33dad9=JSON[_0x36f53e(0x2dd)](_0x21e83a);switch(_0x33dad9['cmd']){case I[_0x36f53e(0x199)]:case I['HELLO']:{const _0x31b8b5=_0x33dad9[_0x36f53e(0x1fc)];return{..._0x33dad9,'data':_0x31b8b5,'cmd':_0x33dad9[_0x36f53e(0x39c)]};}case I[_0x36f53e(0x8f)]:{const _0x28ab81=_0x33dad9['joinRsp'];return{..._0x33dad9,'data':_0x28ab81,'cmd':_0x33dad9[_0x36f53e(0x39c)]};}case I[_0x36f53e(0x326)]:{const _0x46e464=_0x33dad9[_0x36f53e(0xc3)];switch(_0x46e464[_0x36f53e(0x1ec)]){case _0x1b5c65[_0x36f53e(0x274)]:return{..._0x33dad9,'data':{..._0x46e464,'data':(_0x2ba538=_0x46e464[_0x36f53e(0x2c2)])==null?void 0x0:_0x2ba538['cs']},'cmd':_0x33dad9[_0x36f53e(0x39c)]};case _0x1b5c65['CHANGESET_ACK']:return{..._0x33dad9,'data':{..._0x46e464,'data':(_0x1ef87e=_0x46e464['csAckEvent'])==null?void 0x0:_0x1ef87e['cs']},'cmd':_0x33dad9[_0x36f53e(0x39c)]};case _0x1b5c65[_0x36f53e(0x250)]:return{..._0x33dad9,'data':{..._0x46e464,'data':(_0x56e9dc=_0x46e464[_0x36f53e(0x276)])==null?void 0x0:_0x56e9dc['cs']},'cmd':_0x33dad9[_0x36f53e(0x39c)]};case _0x1b5c65[_0x36f53e(0x34a)]:return{..._0x33dad9,'data':{..._0x46e464,'data':(_0x715033=_0x46e464[_0x36f53e(0x1d2)])==null?void 0x0:_0x715033['cs']},'cmd':_0x33dad9[_0x36f53e(0x39c)]};case _0x1b5c65[_0x36f53e(0x235)]:return{..._0x33dad9,'data':{..._0x46e464,'data':_0x46e464[_0x36f53e(0x128)]},'cmd':_0x33dad9[_0x36f53e(0x39c)]};case _0x1b5c65[_0x36f53e(0x2cf)]:return{..._0x33dad9,'data':{..._0x46e464,'data':_0x46e464[_0x36f53e(0x81)]},'cmd':_0x33dad9[_0x36f53e(0x39c)]};case _0x1b5c65[_0x36f53e(0x312)]:return{..._0x33dad9,'data':{..._0x46e464,'data':_0x46e464['leaveEvent']},'cmd':_0x33dad9[_0x36f53e(0x39c)]};case _0x1b5c65[_0x36f53e(0x213)]:return{..._0x33dad9,'data':{..._0x46e464,'data':_0x46e464[_0x36f53e(0x201)]},'cmd':_0x33dad9[_0x36f53e(0x39c)]};case _0x1b5c65[_0x36f53e(0x18e)]:case _0x1b5c65[_0x36f53e(0x2ff)]:return{..._0x33dad9,'data':{..._0x46e464,'data':_0x46e464[_0x36f53e(0x98)]},'cmd':_0x33dad9[_0x36f53e(0x39c)]};case _0x1b5c65[_0x36f53e(0x2e6)]:return{..._0x33dad9,'data':{..._0x46e464,'data':_0x46e464[_0x36f53e(0x201)]},'cmd':_0x33dad9['cmd']};case _0x1b5c65[_0x36f53e(0x278)]:return{..._0x33dad9,'data':_0x46e464,'cmd':_0x33dad9[_0x36f53e(0x39c)]};case _0x1b5c65['COMMENT_UPDATE']:return{..._0x33dad9,'data':{..._0x46e464,'data':_0x46e464[_0x36f53e(0x1d6)]},'cmd':_0x33dad9[_0x36f53e(0x39c)]};default:return _0x33dad9;}}default:return _0x33dad9;}}function mn(_0x3d01d3){const _0xad44c4=_0x51fc53;switch(_0x3d01d3[_0xad44c4(0x39c)]){case I[_0xad44c4(0x199)]:case I[_0xad44c4(0x2bd)]:return JSON['stringify']({'cmd':_0x3d01d3[_0xad44c4(0x39c)],'routeKey':_0x3d01d3['routeKey']});case I[_0xad44c4(0x91)]:{let _0x1ba6ef;switch(_0x3d01d3[_0xad44c4(0x94)]['eventID']){case _0x1b5c65[_0xad44c4(0x235)]:{_0x1ba6ef={'eventID':_0x1b5c65['UPDATE_CURSOR'],'updateCursorEvent':_0x3d01d3[_0xad44c4(0x94)][_0xad44c4(0x94)]};break;}case _0x1b5c65[_0xad44c4(0x312)]:{_0x1ba6ef={'eventID':_0x1b5c65[_0xad44c4(0x312)],'leaveEvent':_0x3d01d3['data'][_0xad44c4(0x94)]};break;}case _0x1b5c65['USERS_ENTER']:{_0x1ba6ef={'eventID':_0x1b5c65['USERS_ENTER'],'joinEvent':_0x3d01d3[_0xad44c4(0x94)][_0xad44c4(0x94)]};break;}case _0x1b5c65[_0xad44c4(0x213)]:{_0x1ba6ef={'eventID':_0x1b5c65[_0xad44c4(0x213)],'liveShareNewHost':_0x3d01d3[_0xad44c4(0x94)][_0xad44c4(0x94)]};break;}case _0x1b5c65[_0xad44c4(0x2ff)]:{_0x1ba6ef={'eventID':_0x1b5c65[_0xad44c4(0x2ff)],'liveShareOperation':_0x3d01d3[_0xad44c4(0x94)][_0xad44c4(0x94)]};break;}case _0x1b5c65['LIVESHARE_TERMINATE']:{_0x1ba6ef={'eventID':_0x1b5c65[_0xad44c4(0x2e6)],'liveShareTerminate':_0x3d01d3['data'][_0xad44c4(0x94)]};break;}case _0x1b5c65[_0xad44c4(0xdc)]:{_0x1ba6ef={'eventID':_0x1b5c65[_0xad44c4(0xdc)],'liveShareRequestHost':_0x3d01d3[_0xad44c4(0x94)]['data']};break;}case _0x1b5c65[_0xad44c4(0x18e)]:{_0x1ba6ef={'eventID':_0x1b5c65[_0xad44c4(0x18e)]};break;}default:_0x1ba6ef={'eventID':_0x3d01d3[_0xad44c4(0x94)]['eventID']};}return JSON[_0xad44c4(0x2ea)]({'cmd':_0x3d01d3[_0xad44c4(0x39c)],'routeKey':_0x3d01d3[_0xad44c4(0x16e)],'collaMsg':_0x1ba6ef});}case I[_0xad44c4(0x8f)]:return JSON[_0xad44c4(0x2ea)]({'cmd':_0x3d01d3[_0xad44c4(0x39c)],'routeKey':_0x3d01d3['routeKey'],'joinReq':_0x3d01d3[_0xad44c4(0x94)]});case I['LEAVE']:return JSON[_0xad44c4(0x2ea)]({'cmd':_0x3d01d3['cmd'],'routeKey':_0x3d01d3[_0xad44c4(0x16e)],'leaveReq':_0x3d01d3[_0xad44c4(0x94)]});default:throw new Error(_0xad44c4(0x1b8));}}var Sn=Object[_0x51fc53(0x18f)],vn=Object[_0x51fc53(0x340)],pn=(_0x307a4b,_0x2a2ec9,_0x144e69,_0x1290e5)=>{const _0x363349=_0x51fc53;for(var _0x52b4a7=_0x1290e5>0x1?void 0x0:_0x1290e5?vn(_0x2a2ec9,_0x144e69):_0x2a2ec9,_0x32295a=_0x307a4b[_0x363349(0x2c6)]-0x1,_0x385801;_0x32295a>=0x0;_0x32295a--)(_0x385801=_0x307a4b[_0x32295a])&&(_0x52b4a7=(_0x1290e5?_0x385801(_0x2a2ec9,_0x144e69,_0x52b4a7):_0x385801(_0x52b4a7))||_0x52b4a7);return _0x1290e5&&_0x52b4a7&&Sn(_0x2a2ec9,_0x144e69,_0x52b4a7),_0x52b4a7;},me=(_0xb5b8e4,_0x27fdc1)=>(_0x33dea8,_0x2aa7ae)=>_0x27fdc1(_0x33dea8,_0x2aa7ae,_0xb5b8e4);const bs=_0xf73999(_0x51fc53(0x1ab));function In(_0x2c27d4,_0x103280,_0x517779){const _0x57aa84=_0x51fc53;return _0x2c27d4+'/'+_0x103280+_0x57aa84(0xea)+_0x517779+_0x57aa84(0x34f);}let _t=class{constructor(_0x2dc970,_0x3c3530,_0x3d8209,_0x561a0c,_0x2d0e74){const _0x18e5d4=_0x51fc53;this[_0x18e5d4(0x36a)]=_0x2dc970,this[_0x18e5d4(0x3a1)]=_0x3c3530,this[_0x18e5d4(0x2c4)]=_0x3d8209,this[_0x18e5d4(0x37c)]=_0x561a0c,this[_0x18e5d4(0x240)]=_0x2d0e74;}[_0x51fc53(0xec)](_0x4b7237){const _0x332eb8=_0x51fc53,_0x359e4c=this[_0x332eb8(0x3a1)][_0x332eb8(0xec)](_0x4b7237);if(!_0x359e4c)throw new Error(_0x332eb8(0x2e7));const _0x213e23=new _0x3ab8a8(),_0x173e06=new _0x5da41e();_0x213e23[_0x332eb8(0xe7)](_0x2f2f24(_0x359e4c[_0x332eb8(0xa2)][_0x332eb8(0x202)](_0x447a51=>_0x173e06[_0x332eb8(0x275)](_0x447a51)))),_0x213e23[_0x332eb8(0xe7)](_0x2f2f24(()=>_0x173e06[_0x332eb8(0x349)]()));const _0x2bf0f5=new _0x5da41e();_0x213e23[_0x332eb8(0xe7)](_0x2f2f24(_0x359e4c[_0x332eb8(0xed)][_0x332eb8(0x202)](_0x455877=>_0x2bf0f5[_0x332eb8(0x275)](_0x455877)))),_0x213e23['add'](_0x2f2f24(()=>_0x2bf0f5[_0x332eb8(0x349)]()));const _0xb502bd=new _0x5da41e();_0x213e23[_0x332eb8(0xe7)](_0x2f2f24(_0x359e4c[_0x332eb8(0xbe)][_0x332eb8(0x202)](_0x599af1=>{const _0x4054c7=_0x332eb8,_0x1fa8eb=gn(_0x599af1);_0xb502bd[_0x4054c7(0x275)](_0x1fa8eb);}))),_0x213e23['add'](_0x2f2f24(()=>_0xb502bd[_0x332eb8(0x349)]()));const _0x4caf5d=()=>{const _0x3aa63e=_0x332eb8;_0x2bf0f5[_0x3aa63e(0x275)](new Event(_0x3aa63e(0x217))),_0x173e06['next'](new CloseEvent('connection\x20error')),_0x3b6fb6[_0x3aa63e(0x3b2)]();},_0x3b6fb6={'memberID':'','close$':_0x173e06['asObservable'](),'error$':_0x2bf0f5['asObservable'](),'open$':_0x359e4c[_0x332eb8(0x34c)],'message$':_0xb502bd[_0x332eb8(0xc8)](),'send':_0x1ad2ff=>{const _0x21a41a=_0x332eb8;if(_0x1ad2ff[_0x21a41a(0x39c)]===I[_0x21a41a(0x91)]){if(_0x1ad2ff[_0x21a41a(0x94)][_0x21a41a(0x1ec)]===_0x1b5c65[_0x21a41a(0x255)]){this['_submitChangeset'](_0x3b6fb6,_0x1ad2ff['data'])['catch'](_0x386c5e=>{const _0x16f7dc=_0x21a41a;this[_0x16f7dc(0x37c)][_0x16f7dc(0x24d)](_0x386c5e),_0x4caf5d();});return;}if(_0x1ad2ff[_0x21a41a(0x94)][_0x21a41a(0x1ec)]===_0x1b5c65[_0x21a41a(0x282)]){const _0xabc340=_0x1ad2ff[_0x21a41a(0x94)];this[_0x21a41a(0xe6)](_0xabc340)[_0x21a41a(0xf4)](_0x10d7ed=>{const _0x8b1cf=_0x21a41a;_0xb502bd['next']({'cmd':I['RECV'],'code':Nt['OK'],'routeKey':_0xabc340[_0x8b1cf(0x94)][_0x8b1cf(0x1b1)],'routeType':'','data':{'eventID':_0x1b5c65['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x10d7ed}}});})[_0x21a41a(0x12e)](_0x15c6df=>{this['_logService']['error'](_0x15c6df),_0x4caf5d();});return;}}_0x359e4c['send'](mn(_0x1ad2ff));},'close':()=>{const _0x4baab3=_0x332eb8;_0x359e4c[_0x4baab3(0x3b2)](),_0x213e23['dispose']();}};return _0x3b6fb6;}async[_0x51fc53(0x21d)](_0x9c9a33,_0x2e326b){const _0x1d325b=_0x51fc53;var _0x5b3d90;const {unitType:_0x7667f1,unitID:_0x55d40a,changeset:_0x5de31a}=_0x2e326b[_0x1d325b(0x94)],_0x1218e8={'unitID':_0x55d40a,'memberID':_0x9c9a33[_0x1d325b(0x2ae)],'type':_0x7667f1,'changeset':_0x57e4b9(_0x5de31a)},_0xc79cd2=In((_0x5b3d90=this[_0x1d325b(0x2c4)]['getConfig'](an))!=null?_0x5b3d90:cn,_0x7667f1,_0x55d40a);try{await this[_0x1d325b(0x36a)][_0x1d325b(0x13a)](_0xc79cd2,{'body':_0x1218e8});}catch(_0x13b27d){throw this[_0x1d325b(0x37c)][_0x1d325b(0x24d)](_0x1d325b(0x13c),'submit\x20changeset\x20error!'),_0x13b27d;}}async[_0x51fc53(0xe6)](_0x957d4){const _0x2d7a0f=_0x51fc53,{unitID:_0x5a5310,from:_0x3f240c,to:_0x2f5434,unitType:_0x465e43}=_0x957d4[_0x2d7a0f(0x94)];return(await this[_0x2d7a0f(0x240)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x5a5310,'type':_0x465e43,'from':_0x3f240c,'to':_0x2f5434}))[_0x2d7a0f(0xa3)];}};_t=pn([me(0x0,_0x4a7404(_0x142257)),me(0x1,_0x4a7404(_0x1e9f90)),me(0x2,_0x5977ca),me(0x3,_0x3cb271),me(0x4,_0x3ad936)],_t);class Rs{constructor(){const _0x6d3833=_0x51fc53;l(this,_0x6d3833(0x17b),new _0x5da41e()),l(this,_0x6d3833(0x368),this[_0x6d3833(0x17b)][_0x6d3833(0xc8)]());}[_0x51fc53(0x2b7)](_0x3899c8){const _0x19c6fa=_0x51fc53;this[_0x19c6fa(0x17b)][_0x19c6fa(0x275)](_0x3899c8);}}var En=Object[_0x51fc53(0x18f)],Cn=Object[_0x51fc53(0x340)],Ts=(_0x142f6a,_0x5a5578,_0x2706e3,_0x5b1465)=>{const _0x32dbe9=_0x51fc53;for(var _0x4cd2bc=_0x5b1465>0x1?void 0x0:_0x5b1465?Cn(_0x5a5578,_0x2706e3):_0x5a5578,_0x95d271=_0x142f6a[_0x32dbe9(0x2c6)]-0x1,_0x2e83b6;_0x95d271>=0x0;_0x95d271--)(_0x2e83b6=_0x142f6a[_0x95d271])&&(_0x4cd2bc=(_0x5b1465?_0x2e83b6(_0x5a5578,_0x2706e3,_0x4cd2bc):_0x2e83b6(_0x4cd2bc))||_0x4cd2bc);return _0x5b1465&&_0x4cd2bc&&En(_0x5a5578,_0x2706e3,_0x4cd2bc),_0x4cd2bc;},M=(_0x2bafae,_0x495728)=>(_0x1e5ebf,_0x36922b)=>_0x495728(_0x1e5ebf,_0x36922b,_0x2bafae),_e=(_0x22e537=>(_0x22e537[_0x22e537[_0x51fc53(0x19e)]=0x0]=_0x51fc53(0x19e),_0x22e537[_0x22e537[_0x51fc53(0x1f0)]=0x1]=_0x51fc53(0x1f0),_0x22e537[_0x22e537['OFFLINE']=0x2]=_0x51fc53(0x319),_0x22e537[_0x22e537[_0x51fc53(0x31f)]=0x3]=_0x51fc53(0x31f),_0x22e537))(_e||{});let ut=class extends _0x521c86{constructor(_0x413e95,_0x3d2b71,_0x391204,_0x48e34e,_0x211f28,_0x48575c,_0x481ca0,_0x40760b,_0x7126c9){const _0x4f3a4b=_0x51fc53;super(),l(this,_0x4f3a4b(0x80),new _0x5d7d96(0x0)),l(this,_0x4f3a4b(0x334),this[_0x4f3a4b(0x80)][_0x4f3a4b(0xc8)]()),l(this,'_event$',new _0x5da41e()),l(this,_0x4f3a4b(0x374),this[_0x4f3a4b(0x108)][_0x4f3a4b(0xc8)]()),l(this,_0x4f3a4b(0x2d4)),l(this,_0x4f3a4b(0x3b5)),l(this,_0x4f3a4b(0xa8)),(this[_0x4f3a4b(0x247)]=_0x413e95,this[_0x4f3a4b(0x37c)]=_0x391204,this[_0x4f3a4b(0x32b)]=_0x48e34e,this['_messageService']=_0x211f28,this[_0x4f3a4b(0x2c4)]=_0x48575c,this[_0x4f3a4b(0x344)]=_0x481ca0,this['_memberService']=_0x40760b,this['_commentService']=_0x7126c9,_0x3d2b71['pipe'](_0x430c3c(this[_0x4f3a4b(0x200)]))[_0x4f3a4b(0x202)](_0x40d585=>{const _0x225d5e=_0x4f3a4b;var _0x2b562e;typeof _0x40d585>'u'||(this[_0x225d5e(0x2d4)]=_0x40d585,_0x40d585?(this['_joinRoom'](_0x40d585),this[_0x225d5e(0x3b5)]=this['_socket']['message$'][_0x225d5e(0x202)](_0x51ec99=>{const _0x53500f=_0x225d5e;_0x51ec99[_0x53500f(0x16e)]===this[_0x53500f(0x247)]&&this[_0x53500f(0x132)](_0x51ec99);})):(this['_sessionStatus$'][_0x225d5e(0x275)](0x2),(_0x2b562e=this[_0x225d5e(0x3b5)])==null||_0x2b562e[_0x225d5e(0x11a)](),this[_0x225d5e(0x3b5)]=null));}),this[_0x4f3a4b(0x294)](this[_0x4f3a4b(0x32b)]['registerOnClose'](()=>{const _0x1348b0=_0x4f3a4b;var _0x5ffc29;(_0x5ffc29=this['_socket'])==null||_0x5ffc29[_0x1348b0(0x39e)]({'cmd':I[_0x1348b0(0xd8)],'data':{'roomID':this['_unitID']}});})));}get[_0x51fc53(0x193)](){const _0x48ae59=_0x51fc53;return this[_0x48ae59(0x80)]['getValue']();}[_0x51fc53(0x2be)](){const _0x18d724=_0x51fc53;var _0x1e6566,_0x2649b6;return(_0x2649b6=(_0x1e6566=this[_0x18d724(0x2d4)])==null?void 0x0:_0x1e6566[_0x18d724(0x2ae)])!=null?_0x2649b6:null;}[_0x51fc53(0x232)](){const _0x23f27c=_0x51fc53;super[_0x23f27c(0x232)](),this[_0x23f27c(0x200)][_0x23f27c(0x275)](),this[_0x23f27c(0x200)][_0x23f27c(0x349)]();}[_0x51fc53(0x132)](_0x2d8a37){const _0x10b636=_0x51fc53;_0x2d8a37['cmd']===I[_0x10b636(0x8f)]?this['_onJoinRoomEvent'](_0x2d8a37):_0x2d8a37[_0x10b636(0x39c)]===I[_0x10b636(0x326)]&&this[_0x10b636(0x147)](_0x2d8a37);}[_0x51fc53(0x225)](_0x5e6d12){const _0x1d6044=_0x51fc53;this[_0x1d6044(0x80)][_0x1d6044(0x275)](0x1),_0x5e6d12[_0x1d6044(0x39e)]({'cmd':I[_0x1d6044(0x8f)],'routeKey':this[_0x1d6044(0x247)],'routeType':'','data':{'rooms':[{'roomID':this[_0x1d6044(0x247)]}]}});}[_0x51fc53(0x167)](_0x3c97fa){const _0x35c135=_0x51fc53;var _0x5374c9;if(_0x3c97fa[_0x35c135(0x141)]===Nt[_0x35c135(0xe9)]){this[_0x35c135(0x383)][_0x35c135(0x25c)]({'type':_0x1587ba[_0x35c135(0x10e)],'content':this[_0x35c135(0x344)]['t'](_0x35c135(0x246))}),this[_0x35c135(0x80)][_0x35c135(0x275)](0x2);return;}this[_0x35c135(0x80)][_0x35c135(0x275)](0x3);const _0x10b106=(_0x5374c9=_0x3c97fa[_0x35c135(0x94)][_0x35c135(0x1ba)][this[_0x35c135(0x247)]])==null?void 0x0:_0x5374c9[_0x35c135(0x327)];_0x10b106&&_0x10b106[_0x35c135(0x124)](_0x4ee42a=>this[_0x35c135(0x12b)][_0x35c135(0x2e9)](this[_0x35c135(0x247)],_0x4ee42a));}[_0x51fc53(0x147)](_0x129f53){const _0xaba17d=_0x51fc53;try{const _0x332959=_0x129f53[_0xaba17d(0x94)];switch(_0x332959['eventID']){case _0x1b5c65[_0xaba17d(0x2cf)]:this[_0xaba17d(0x335)](_0x332959),this[_0xaba17d(0x108)][_0xaba17d(0x275)](_0x332959);break;case _0x1b5c65[_0xaba17d(0x312)]:this[_0xaba17d(0x2ba)](_0x332959),this['_event$'][_0xaba17d(0x275)](_0x332959);break;case _0x1b5c65[_0xaba17d(0xf1)]:this[_0xaba17d(0x39b)](),this[_0xaba17d(0x108)]['next'](_0x332959);break;case _0x1b5c65[_0xaba17d(0x278)]:this[_0xaba17d(0x37c)][_0xaba17d(0x24d)](_0xaba17d(0x286)+JSON[_0xaba17d(0x2ea)](_0x332959)),this['_event$'][_0xaba17d(0x275)](_0x332959);break;case _0x1b5c65[_0xaba17d(0x33c)]:this[_0xaba17d(0x27e)]['onCommentUpdate'](_0x332959[_0xaba17d(0x94)]),this[_0xaba17d(0x108)][_0xaba17d(0x275)](_0x332959);break;default:this[_0xaba17d(0x108)]['next'](_0x332959);}}catch(_0x14ae88){this[_0xaba17d(0x37c)][_0xaba17d(0x24d)](_0x14ae88,_0x129f53);}}[_0x51fc53(0x335)](_0x3bf62d){const _0x117a0c=_0x51fc53;this['_memberService']['updateMember'](this[_0x117a0c(0x247)],_0x3bf62d['data']);}['_onUserLeave'](_0x3c541f){const _0x1bbce7=_0x51fc53;this['_memberService'][_0x1bbce7(0x3be)](this[_0x1bbce7(0x247)],_0x3c541f[_0x1bbce7(0x94)]['memberID']);}async[_0x51fc53(0x39e)](_0x34c323,_0x505b51){const _0x26e5ea=_0x51fc53;if(this['sessionStatus']!==0x3||!this[_0x26e5ea(0x2d4)])throw new Error(_0x26e5ea(0xd0));try{_0x34c323[_0x26e5ea(0x1ec)]===_0x1b5c65[_0x26e5ea(0x250)]&&this['_scheduleCollaborationTimeoutTimer'](),this['_socket'][_0x26e5ea(0x39e)]({'cmd':I['INGEST'],'routeKey':_0x505b51,'routeType':'','data':_0x34c323});}catch(_0x154e0e){this[_0x26e5ea(0x37c)][_0x26e5ea(0x24d)](_0x154e0e);}}[_0x51fc53(0x376)](){const _0x44066f=_0x51fc53;var _0x363057;this[_0x44066f(0xa8)]=window[_0x44066f(0x3a6)](()=>{const _0x4dcbfb=_0x44066f;this[_0x4dcbfb(0xa8)]=null,this[_0x4dcbfb(0x383)]['show']({'type':_0x1587ba[_0x4dcbfb(0x228)],'content':this[_0x4dcbfb(0x344)]['t'](_0x4dcbfb(0x2f7))});},(_0x363057=this['_configService'][_0x44066f(0xf0)](Is))!=null?_0x363057:Es);}['_clearCollaborationTimeoutTimer'](){const _0x3b3e29=_0x51fc53;this[_0x3b3e29(0xa8)]&&(clearTimeout(this[_0x3b3e29(0xa8)]),this[_0x3b3e29(0xa8)]=null);}};ut=Ts([M(0x2,_0x3cb271),M(0x3,_0x5e3e8f),M(0x4,_0xf8e37a),M(0x5,_0x5977ca),M(0x6,_0x4a7404(_0x201091)),M(0x7,_0x4a7404(ee)),M(0x8,_0x4a7404(Rs))],ut);let Re=class extends _0x10a29c{constructor(_0x19f937,_0x3c19bd,_0x24444a,_0x2534e9,_0x1e794f,_0x47e360){const _0xe3e856=_0x51fc53;super(),l(this,_0xe3e856(0x175),new _0x5d7d96(void 0x0)),l(this,_0xe3e856(0x154),new Map()),l(this,_0xe3e856(0x22f),new _0x5d7d96(0x0)),l(this,_0xe3e856(0x214),this[_0xe3e856(0x22f)][_0xe3e856(0xc8)]()),l(this,_0xe3e856(0x2a0),!0x1),l(this,_0xe3e856(0x1ac)),l(this,'_timeoutTimer'),l(this,_0xe3e856(0xfc)),l(this,_0xe3e856(0x10c),0x0),(this[_0xe3e856(0x342)]=_0x19f937,this[_0xe3e856(0x344)]=_0x3c19bd,this['_messageService']=_0x24444a,this[_0xe3e856(0x37c)]=_0x2534e9,this[_0xe3e856(0x2c4)]=_0x1e794f,this[_0xe3e856(0x137)]=_0x47e360);}get[_0x51fc53(0x2d4)](){const _0x1a8270=_0x51fc53;return this[_0x1a8270(0x175)]['getValue']();}['dispose'](){const _0x4cef4a=_0x51fc53;super[_0x4cef4a(0x232)](),this[_0x4cef4a(0x154)]['forEach'](_0x2531a4=>_0x2531a4['dispose']()),this[_0x4cef4a(0x154)]['clear'](),this[_0x4cef4a(0x22f)]['complete']();}async[_0x51fc53(0x1ad)](_0x347b88){const _0x18f65a=_0x51fc53;if(this['_sessions'][_0x18f65a(0x16c)](_0x347b88))return this[_0x18f65a(0x154)][_0x18f65a(0x151)](_0x347b88);this['_tryEnsureSocket']();const _0x5ba317=this[_0x18f65a(0x342)][_0x18f65a(0x3ba)](ut,_0x347b88,this[_0x18f65a(0x175)]['asObservable']());return this[_0x18f65a(0x154)][_0x18f65a(0x38f)](_0x347b88,_0x5ba317),_0x5ba317;}[_0x51fc53(0x35a)](){const _0x1b76fb=_0x51fc53;var _0x5859c4;const _0xee86b7=(_0x5859c4=this[_0x1b76fb(0x2c4)]['getConfig'](zi))!=null?_0x5859c4:Zi;return this[_0x1b76fb(0x137)]['createSocket'](_0xee86b7);}[_0x51fc53(0x2b1)](){const _0x7be8a7=_0x51fc53;try{const _0x1a8eb4=this[_0x7be8a7(0x35a)]();if(_0x1a8eb4){const _0x2a80ee=_0x1a8eb4[_0x7be8a7(0x39e)];_0x1a8eb4[_0x7be8a7(0x39e)]=_0x138009=>(this[_0x7be8a7(0x13b)](),_0x2a80ee[_0x7be8a7(0x89)](_0x1a8eb4,[_0x138009])),_0x1a8eb4[_0x7be8a7(0xbe)]['subscribe'](_0x34cc2f=>this[_0x7be8a7(0x135)](_0x1a8eb4,_0x34cc2f)),_0x1a8eb4[_0x7be8a7(0xed)][_0x7be8a7(0x2c3)](_0x51a597(0x1))[_0x7be8a7(0x202)](_0x282a10=>this[_0x7be8a7(0x37c)]['error'](_0x7be8a7(0x1b0),_0x282a10)),_0x1a8eb4[_0x7be8a7(0x34c)][_0x7be8a7(0x2c3)](_0x51a597(0x1))[_0x7be8a7(0x202)](()=>{const _0x4f62fd=_0x7be8a7;this[_0x4f62fd(0x1e9)](_0x1a8eb4);}),_0x1a8eb4['close$']['pipe'](_0x51a597(0x1))['subscribe'](_0x2594a1=>{const _0x52249b=_0x7be8a7;this[_0x52249b(0x37c)][_0x52249b(0x35e)](_0x52249b(0x365),_0x52249b(0x35c),_0x2594a1),this[_0x52249b(0x386)]();});}}catch(_0x3375aa){this[_0x7be8a7(0x37c)][_0x7be8a7(0x24d)](_0x3375aa),this[_0x7be8a7(0x386)]();}}['_onConnectionOpen'](_0xfc0b9){const _0x32ce5e=_0x51fc53;this['_logService'][_0x32ce5e(0x35e)](_0x32ce5e(0x365),_0x32ce5e(0xd7)),_0xfc0b9[_0x32ce5e(0x39e)]({'cmd':I['HELLO']}),this['_rescheduleHeartbeatEvent']();}[_0x51fc53(0x386)](){const _0x1c6a80=_0x51fc53;var _0x4bdcb4;this['_status$'][_0x1c6a80(0x275)](0x2),this['_socket$'][_0x1c6a80(0x275)](null),this[_0x1c6a80(0x2f6)](),this['_clearHeartbeatTimer'](),this[_0x1c6a80(0x2a0)]=!0x1,this[_0x1c6a80(0x10c)]<((_0x4bdcb4=this['_configService']['getConfig'](sn))!=null?_0x4bdcb4:nn)?(this[_0x1c6a80(0x164)](this[_0x1c6a80(0x10c)]),this['_retryCount']+=0x1):this[_0x1c6a80(0x383)][_0x1c6a80(0x25c)]({'type':_0x1587ba[_0x1c6a80(0x228)],'content':this[_0x1c6a80(0x344)]['t'](_0x1c6a80(0x273))});}[_0x51fc53(0x164)](_0x128694){const _0x353d51=_0x51fc53;var _0x1301ac;const _0x12e307=((_0x1301ac=this['_configService'][_0x353d51(0xf0)](en))!=null?_0x1301ac:tn)*0x2**_0x128694;this['_messageService']['show']({'type':_0x1587ba[_0x353d51(0x10e)],'content':this[_0x353d51(0x344)]['t']('session.will-retry')}),this[_0x353d51(0xfc)]=setTimeout(()=>{const _0x547c2f=_0x353d51;this[_0x547c2f(0x2b1)](),clearTimeout(this[_0x547c2f(0xfc)]),this[_0x547c2f(0xfc)]=null;},_0x12e307);}[_0x51fc53(0x13b)](){const _0x13ad1d=_0x51fc53;var _0x1e61df;this['_clearHeartbeatTimer'](),this['_sendHeartbeatTimer']=setTimeout(()=>this[_0x13ad1d(0x144)](),(_0x1e61df=this['_configService']['getConfig'](qi))!=null?_0x1e61df:Qi);}[_0x51fc53(0x144)](){const _0x4329e4=_0x51fc53;this[_0x4329e4(0x2d4)][_0x4329e4(0x39e)]({'cmd':I['HEARTBEAT']}),this['_waitForHeartbeatResponse']();}[_0x51fc53(0x116)](){const _0x18a740=_0x51fc53;var _0x165bd6;this['_timeoutTimer']=setTimeout(()=>this[_0x18a740(0x386)](),(_0x165bd6=this[_0x18a740(0x2c4)][_0x18a740(0xf0)](Is))!=null?_0x165bd6:Es);}[_0x51fc53(0x135)](_0x4df3d9,_0x7e37ff){const _0x1c1b98=_0x51fc53,{cmd:_0x560cc9}=_0x7e37ff;_0x560cc9===I['HELLO']&&!this[_0x1c1b98(0x2a0)]&&(_0x4df3d9['memberID']=_0x7e37ff[_0x1c1b98(0x94)][_0x1c1b98(0x2ae)],this[_0x1c1b98(0x175)][_0x1c1b98(0x275)](_0x4df3d9),this[_0x1c1b98(0x22f)][_0x1c1b98(0x275)](0x3),this[_0x1c1b98(0x2a0)]=!0x0),_0x560cc9===I[_0x1c1b98(0x199)]&&this[_0x1c1b98(0x2f6)](),this[_0x1c1b98(0x13b)]();}[_0x51fc53(0x263)](){const _0x2fb33f=_0x51fc53;this[_0x2fb33f(0x1ac)]!=null&&(clearTimeout(this[_0x2fb33f(0x1ac)]),this[_0x2fb33f(0x1ac)]=null);}['_clearTimeoutTimer'](){const _0x4005a2=_0x51fc53;this[_0x4005a2(0x249)]!=null&&(clearTimeout(this[_0x4005a2(0x249)]),this[_0x4005a2(0x249)]=null);}};Re=Ts([M(0x0,_0x4a7404(_0x44b6b8)),M(0x1,_0x4a7404(_0x201091)),M(0x2,_0xf8e37a),M(0x3,_0x3cb271),M(0x4,_0x5977ca),M(0x5,bs)],Re);var bn=Object[_0x51fc53(0x18f)],Rn=Object[_0x51fc53(0x340)],Tn=(_0x567d13,_0x51e00e,_0x3ae3b7,_0x2c22f9)=>{const _0x336913=_0x51fc53;for(var _0x4b5261=_0x2c22f9>0x1?void 0x0:_0x2c22f9?Rn(_0x51e00e,_0x3ae3b7):_0x51e00e,_0x30ad2c=_0x567d13[_0x336913(0x2c6)]-0x1,_0x1d3cd9;_0x30ad2c>=0x0;_0x30ad2c--)(_0x1d3cd9=_0x567d13[_0x30ad2c])&&(_0x4b5261=(_0x2c22f9?_0x1d3cd9(_0x51e00e,_0x3ae3b7,_0x4b5261):_0x1d3cd9(_0x4b5261))||_0x4b5261);return _0x2c22f9&&_0x4b5261&&bn(_0x51e00e,_0x3ae3b7,_0x4b5261),_0x4b5261;},Se=(_0x1f0453,_0x2c89cc)=>(_0x15837b,_0x1fbf3a)=>_0x2c89cc(_0x15837b,_0x1fbf3a,_0x1f0453);let D=class extends _0x10a29c{constructor(_0x3bc7c1,_0x33a536,_0x439f48,_0x5dc724,_0x1cd876){const _0x1ee388=_0x51fc53;super(),l(this,_0x1ee388(0x271),new Map()),l(this,_0x1ee388(0x171),new Map()),l(this,_0x1ee388(0x231),!0x1),(this[_0x1ee388(0x2c4)]=_0x3bc7c1,this[_0x1ee388(0x1a6)]=_0x33a536,this['_beforeCloseService']=_0x439f48,this['_localeService']=_0x5dc724,this[_0x1ee388(0x2f2)]=_0x1cd876,this['_setupBeforeClosingHandler']());}[_0x51fc53(0x329)](){const _0x588f9a=_0x51fc53;this[_0x588f9a(0x231)]=!0x0;}[_0x51fc53(0x1a8)](){const _0x160a0d=_0x51fc53;this[_0x160a0d(0x231)]=!0x1;}['dispose'](){const _0x299d9e=_0x51fc53;this[_0x299d9e(0xc2)]()[_0x299d9e(0xf4)](()=>super[_0x299d9e(0x232)]());}async[_0x51fc53(0x2e5)](_0x18cbd0){const _0x4fc89c=_0x51fc53;return this[_0x4fc89c(0x231)]?null:this[_0x4fc89c(0x1a6)][_0x4fc89c(0xde)](Gt(_0x18cbd0));}async[_0x51fc53(0x16a)](_0x48dc6a,_0x507d95){const _0x479067=_0x51fc53;return!!this[_0x479067(0x1a6)]['setItem'](_0x48dc6a,_0x507d95);}[_0x51fc53(0x256)](_0x249895,_0x147b95,_0x349cc0,_0x383e79){const _0x419f21=_0x51fc53,_0x17cdd5=this[_0x419f21(0x2f2)]['getCurrentRevForDocument'](_0x249895);this[_0x419f21(0x271)][_0x419f21(0x38f)](_0x249895,{'unitID':_0x249895,'type':_0x147b95,'awaitingChangeset':_0x349cc0,'mutations':_0x383e79,'rev':_0x17cdd5}),this[_0x419f21(0x171)][_0x419f21(0x16c)](_0x249895)||this['_scheduleSaving'](_0x249895);}[_0x51fc53(0x1a9)](_0x58f04b){const _0x4de993=_0x51fc53,_0x6ef425=this[_0x4de993(0x226)]();_0x6ef425===0x0?this[_0x4de993(0x2d0)](_0x58f04b):this['_saveTaskMap'][_0x4de993(0x38f)](_0x58f04b,setTimeout(()=>this[_0x4de993(0x2d0)](_0x58f04b),_0x6ef425));}[_0x51fc53(0x226)](){const _0x277e5c=_0x51fc53;var _0x1cc550;return(_0x1cc550=this['_configService'][_0x277e5c(0xf0)](rn))!=null?_0x1cc550:on;}[_0x51fc53(0x2d0)](_0x3fbb24){const _0x2f3dd5=_0x51fc53,_0x364435=this['_saveTaskMap'][_0x2f3dd5(0x151)](_0x3fbb24);return _0x364435!==void 0x0&&window[_0x2f3dd5(0x20c)](_0x364435),this['_localStorageService'][_0x2f3dd5(0x2f0)](Gt(_0x3fbb24),this['_cachedData']['get'](_0x3fbb24))[_0x2f3dd5(0xf4)](()=>this[_0x2f3dd5(0x171)][_0x2f3dd5(0x209)](_0x3fbb24));}async[_0x51fc53(0xc2)](){const _0x1d72f8=_0x51fc53,_0x5645e8=[];this[_0x1d72f8(0x171)]['forEach']((_0x2f3708,_0xe0c2b3)=>{const _0x57dfb6=_0x1d72f8;window[_0x57dfb6(0x20c)](_0x2f3708),_0x5645e8[_0x57dfb6(0x19d)](this['_saveCache'](_0xe0c2b3)[_0x57dfb6(0xf4)](()=>{const _0x1c8d49=_0x57dfb6;this['_saveTaskMap'][_0x1c8d49(0x209)](_0xe0c2b3);}));}),await Promise[_0x1d72f8(0x97)](_0x5645e8);}[_0x51fc53(0x17a)](){const _0x37d21d=_0x51fc53;this[_0x37d21d(0x294)](this[_0x37d21d(0x32b)][_0x37d21d(0x125)](()=>{const _0x2c3598=_0x37d21d;if(this[_0x2c3598(0x171)][_0x2c3598(0x23a)])return this[_0x2c3598(0x344)]['t']('collaboration-client.offline-data-not-saved');}));}};D=Tn([Se(0x0,_0x5977ca),Se(0x1,_0x2cad44),Se(0x2,_0x5e3e8f),Se(0x3,_0x4a7404(_0x201091)),Se(0x4,_0x4a7404(_0x4d36b1))],D);function _0x18ca(){const _0x5199ce=['/universer-api/comb','_syncEditingCollabCursorService','round','9RGpKre','getTypeOfUnitAdded$','getInterceptPoints','/collaborator','_cachedData','permission.content','session.connection-failed','PERMISSION_REJ','next','newCsEvent','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','MSG_FOR_ERROR','_urlService','_unitOnClients','_name','onStarting','_renderManagerService','_commentService','_anchorDot','getTypeOfUnitDisposed$','_createInitialStateImpl','FETCH_MISSING','href','_localCacheService','fillText','save\x20fail\x20reason\x20is\x20','getSelections','string','labelPosition','fetchMissingChangesets','collaboratorID','UNIVER_SLIDE','_clearRedo','height','setParam','createElement','_onCursorUpdate','_updateState','_isPermissionRej','disposeWithMe','unshift','[CollaborationState]:\x20apply\x20error!','image/bmp','_getUploadFileURL','Error\x20on\x20receiving\x20event','Univer','_clearOtherTimers','_session','_loadSheet','UNKNOWN_CODE','fill','_socketReady','svg','TOO_MANY_REQUESTS','_entities','unload','_handleHeartbeatEvent','onRemoteAck','_userManagerService','tag','_docStateChangeManagerService','listCollaborators','_getUndoStack','_waitCount','random','memberID','unitId','originalMeta','_tryEnsureSocket','getImage','\x20-\x20','black','univer-online-status','attrs','onCommentUpdate','_createInitialState','idSuffix','_onUserLeave','removeParam','getCollabCursors$','HELLO','getMemberID','univer-offline','_getSendChangesetTimeout','[SyncedState]:\x20received\x20rejection.','permissionRejEvent','pipe','_configService','ERROR_IMAGE','length','localeService','LICENSE_MAX_UNITS_EXCEEDED','_scene','getUndoRedoMutationParamsCache','_selfUnitIDs','encode','type','[UniverCollaborationClientPlugin]','USERS_ENTER','_saveCache','Ready','addObjects','resourceIDs','_socket','isPermissionRej','8544XNwcKf','subscribeEvent','setShapeProps','roles','readAsDataURL','drawWith','_startSheetCollabCursor','parse','_getLoginPath','97296krqYso','objectActions','_notificationService','CONNECTOR_DATA_TOO_LARGE','_draw','conflict.title','loadOfflineData','LIVESHARE_TERMINATE','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_substituteUndoStack','updateMember','stringify','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','propertyIsEnumerable','getFocusedUnit','collaborators','onTransformSelections','setItem','getCurrentRevForDocument','_revisionService','/resources','_startDocCollabCursor','range','_clearTimeoutTimer','session.collaboration-timeout','_transformSelections','NOT_FOUND','selection','offline','ALREADY_EXISTS','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_onRemoteChangeset','LIVESHARE_OPERATION','generateRandomId','uni.network.url-service','textRanges','_updateLocalCache','[CollaborationEntity]','YUUMI_UNABLE_LOAD_URL','baseRev','_getDocObject','getRenderById','_disableEditing','_send','APPLY_REVISION_CONFILICT','_onRefRangeChange','hasOwnProperty','startsWith','m2Prime','_handler','CHANGESET_REVISION_CONFILICT','USERS_LEAVE','toRgbString','onTransformRemoteChangesetByIMECache','_undoStacks','subunit','hide','collabCursorState$','OFFLINE','_decreaseWaiting','LICENSE_IMPORT_SIZE_EXCEEDED','_onConflict','/fetchmissing?from=','deleteCollaborator','ONLINE','getCurrent','MUTATION','_httpService','_document','setWaitCount','univer-online-status-title','RECV','members','getCurrentUser','disableLocalCache','pauseCollaboration','_beforeCloseService','UNIVER_DOC','flatMap','[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.','image/jpg','_HTTPService','_state$','objectID','loadDoc','sessionStatus$','_onUserJoin','fillStyle','failed\x20to\x20apply\x20missed\x20changesets!','toggleOnline','SEND_CHANGESET_TIMEOUT','univerjs-icon\x20univerjs-icon-','_getAPIPrefix','COMMENT_UPDATE','_docSkeletonManagerService','assignAColorForMemberID','_anchor','getOwnPropertyDescriptor','div','_injector','_toggleOnline','_localeService','_setupSubUnitSync','OTHER_CLIENTS_EDITING','appendMutation','_onRemoteRejected','complete','CHANGESET_REJ','off-line-single_clip0_910_343','open$','collabStatus.syncing','isArray','/new_changes','&to=','UNIVER_SHEET','_transformRemoteChangesetByIMECache','_createHandler','activeSheet$','_transformPreviousActiveRange','onStateChange','RemoveColCommandId','incrementRevForDocument','_refRangeService','_createSocket','_updateLocalCursor','socket\x20close','color','debug','_shapes','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','awaiting','clear','2651088ywRbwD','_scheduleHeartbeat','[CollaborationSessionService]','INVALID_ARGUMENT','findNodePositionByCharIndex','commentUpdate$','saveChangeset','_http','_entityInit$','onSendChangeset','_onCursorDelete','editing\x20status\x20changed\x20to','_roomMembers$','onTransformIME','_redoStacks','startColumn','_acknowledgedAwaitingChangeset','event$','setAlpha','_scheduleCollaborationTimeoutTimer','DeleteRangeMoveUpCommandId','displayName','onRemoteChangeset','path','_transitionLocked','_logService','getActiveRange','?url=','InsertRangeMoveDownCommandId','_init','_onFetchMissResult','[PendingState]:\x20received\x20acknowledgement.','_messageService','LOGIN_URL_KEY','min','_onConnectionFailed','unit','synced','6758257YqGhFL','/universer-api/snapshot/','getViewModel','_unitStatus','[FetchMissState]','_queuedRemoteChangesets','set','_cursorInfo$','currentSkeleton$','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_awaitingChangeset','PENDING','_sheetSkeletonManagerService','UNDEFINED','ranges','red300','children','\x20to\x20','_clearCollaborationTimeoutTimer','cmd','slice','send','_docTransformSelectionsService','ws://127.0.0.1:8000/universer-api/comb/connect','_ws','/universer-api/stream/file/upload','indexOf','name','_incrementRevisionNumber','setTimeout','_labelPosition','defIds','getSheetBySheetId','Unknown\x20user','c1Prime','[DataLoaderController]','newValue','_docSkeleton','xlink:href','getCollabEntity$','onPointerLeave$','close','registerComponent','_ensureSubject','_socketMessageSubscription','getUnitType','isEditing','url(#off-line-single_clip0_910_343)','replace','createInstance','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','collabStatus.notCollab','transformMutationsWithChangeset','removeMember','collab-text-anchor-','_sessionStatus$','joinEvent','_id','_executeRemoteChangeset','_collabCursorController','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','UNAUTHENTICATED','makeDirty','9326xNooEb','apply','_unitId','image/png','Steady','/block/','onMouseMove','JOIN','_sendingTimer','INGEST','substring','RETRY_CONNECTING_INTERVAL','data','_clearLocalCache','OffLineSingle','all','liveShareOperation','snapshot','[SyncedState]:\x20received\x20acknowledgement.','_substituteRedoStack','getRoom','COMPRESS_MUTATION_SEND','_collaborationController','_replaceFileID','_univerInstanceService','_textBubble','close$','changesets','function','_permissionService','collabStatus.conflict','_color','_collaborationTimeoutTimer','_replayCachedMutations','executeCommand','map','json','_type','use','revision','getViewport','/object','interceptor','_eventUnsubscribe','onCommandExecuted','awaiting_with_pending','getMember','UNIVER_UNKNOWN','/allowed','_removeCollabCursors','urlChange$','_getSnapshotAPIPrefix','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','[CollaborationUndoRedoService]','message$','endRow','onload','off-line-single','_exhaustSavingTask','collaMsg','_updateCollabCursors','transformSelections','\x0aCurrent:\x20','mutations','asObservable','src','_scheduleTimestamp','conflict','_hover','getOwnPropertySymbols','getCellPositionByOffset','_config','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','fetchThroughInterceptors','fromCollab','_cursors','_uiPartsService','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_hovered','socket\x20open.','LEAVE','with','_getSheetObject','_toggleOffline','LIVESHARE_REQUEST_HOST','pending','getItem','COLLAB_WEB_SOCKET_URL','objectType','5342630naCUdn','replaceState','[PendingState]:\x20received\x20rejection.','SYNCED','icon','_fetchMissChangesets','add','2084656ThyvmU','FAIL','/unit/','NOT_COLLAB','createSocket','error$','jiqing500','setActiveRange','getConfig','CHANGESET_ACK','session','selections','then','translate(.97)','NO_OTHER_CLIENTS_EDITING','[OfflineState]:\x20received\x20changeset.','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','blue400','entries','LICENSE_EXPORT_SIZE_EXCEEDED','_retryConnectingTimer','_removeClearOtherTimer','moveTo','LOCAL_CACHE_INTERVAL','pushState','APPLY_REJECT','_transformService','split','addObject','FileId','setUndoRedoMutationParamsCache','collabStatus.synced','_event$','_singleActiveUnitService','confirm','sheetId','_retryCount','_updateStatus','Warning','_handleLeaveEvent','SNAPSHOT_URL_KEY','focused$','storage','_commandService','_applyRemoteChangeset','_clearUndo','_waitForHeartbeatResponse','file','_getMergeRange','_sheetTransformSelectionsService','unsubscribe','_handleEvent','_getSignURL','Starting','includes','clearInterval','/universer-api/authz','values','row','cursorInfo$','forEach','registerBeforeClose','onSyncEditingCollabCursor','font','updateCursorEvent','cursorInfo','current','_memberService','_updateSubUnitFromURLParams','onMissingChangesets','catch','30KvsGIM','ERROR_EXCEED_SIZE','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_onCombEvent','_exhaustRemoteChangesetQueue','[OfflineState]:\x20received\x20acknowledgement.','_onMessage','SNAPSHOT_SERVER_URL_KEY','_socketService','InsertRangeMoveRightCommandId','replaceTextRanges','post','_rescheduleHeartbeatEvent','[CollaborationSession]','UNKNOWN_CMD','_transformStack','_compressMutationService','url(#on-line-single_clip0_910_349)','code','some','fetch_missing','_sendHeartbeat','colorChannel1','1em','_onRecvEvent','_getCtorByUniverType','updateCollaborator','_handleHover','concat','PERMISSION_DENIED','ACTIVE_UNIT_EVENT_CHANNEL','_onRemoteACK','image/gif','hovered','get','doc.mutation.rich-text-editing','closePath','_sessions','addImageSourceCache','LICENSE_DISTRO_REJECTED','gold400','_schedule','arc','onlineStatusTitle','2569DFSqzp','_getScale','getTime','getValue','bottom','batchAllowed','_getCurrentRevision','HEARTBEAT_INTERVAL','APPLY_NON_SEQUENTIAL_REVISION','_scheduleReconnection','measureText','getMergeData','_onJoinRoomEvent','append','onPointerEnter$','saveOfflineData','_themeService','has','_syncEditingCollabCursor','routeKey','_clearScheduledTask','change$','_saveTaskMap','startRow','_state','_initStatusListener','_socket$','COMPRESS_MUTATION_APPLY','transformByState','toggleOffline','getCollabEntity','_setupBeforeClosingHandler','_commentUpdate$','from','width','FromArray','enableAuthServer','AWAITING','state','lineTo','deepClone','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','call','triggerDblclick','editingUnit','awaitingChangeset','_cursor','_render','_roomMembers','_transformUndoRedoStack','fillRule','LIVESHARE_FETCH_OPERATIONS','defineProperty','_imageSourceCache','init','url','sessionStatus','registerHTTPInterceptor','onlineStatusIcon','_handleJoinEvent','resend','_initModules','HEARTBEAT','put','encodeURIComponent','actions','push','IDLE','currentColor','univer-online','trim','AWAITING_WITH_PENDING','unit-cache-','_lastPointer','result','_localStorageService','currentTheme$','enableLocalCache','_scheduleSaving','[OfflineState]:\x20received\x20rejection.','univer-pro.collaboration-client-socket-service','_sendHeartbeatTimer','requireSession','saveImage','/object/','[CollaborationSessionService]:\x20socket\x20error','unitID','_collabSessionService','whenReady','purple300','_getAnchorBounding','sheets','syncEditingCollabCursor','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','popstate','roomInfos','reject','_undoRedoService','toString','_transformIMECache','_docSyncEditingCollabCursorService','OnLineSingle','roomMembers$','24vlsADW','_hideTimer','getCurrentUnitForType','rgba(255,\x20255,\x20255,\x200.01)','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_onLocalMutation','params','socketService','onRemoteRej','SNAPSHOT_HAS_BEEN_REMOVED','UNRECOGNIZED','getRangePointData','_removeRoom','title','collab-text-range-','on-line-single_clip0_910_349','csRejEvent','update','column','extend','commentUpdateEvent','saveSnapshot','getDataModel','online','resolve','EXCHANGE_SIGN_URL_SERVER_URL_KEY','APPLY_PERMISSION_DENIED','_docTransformIMECacheService','_remoteChangesetQueue','INTERNAL_ERROR','_lockTransition','find','UUID','getActiveSheet','_pendingMutations','_snapshotService','ERROR_IMAGE_TYPE','_colorAssignService','_checkMissing','_onConnectionOpen','userID','rev','eventID','unknown','getUnitStatus$','getSheetId','JOINING','5kwoUmp','save','_range','onlyLocal','prototype','updatePermissionPoint','verdancy600','_unlockTransition','patch','COMPLETION_FINISHED','_getAPIPrefixPath','infoRsp','_colorIndex','createCollaborator','image/jpeg','dispose$','liveShareNewHost','subscribe','_loadDoc','reverse','filter','onPointerMove$','top','SNAPSHOT_INVALID_SNAPSHOT','delete','not_collab','setCurrentUser','clearTimeout','MoveRangeCommandId','/rev/','CONFLICT','collaboration.single-unit.warning','body','_getRedoStack','LIVESHARE_NEW_HOST','status$','YUUMI_URL_COL_OUT_OF_RANGE','max','connection\x20error','_collaborationPaused','assign','roomMembers','enableOfflineEditing','transformChangesets','_submitChangeset','location','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','history','className','onlineStatus','_startCollaboration','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_joinRoom','_getSaveTimeout','_change$','Error','...','/universer-api/snapshot','univer-pro.collaboration-client.single-active-unit-service','transformIMECache','M0\x200H16V16H0z','getParam','_status$','saveSheetBlock','_disabled','dispose','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','#fff','UPDATE_CURSOR','_members','UNIVER_COLLABORATION_CLIENT_PLUGIN','univer-online-status-icon','_heartbeatTimer','size','workbook','_assignedColors','collaborationUniverTypes','collabStatus.offline','HEADER_MENU','_snapshotServerService','{fileID}','getAncestorScale','_transformUndoredo','getUnitId','state$','session.room-full','_unitID','text','_timeoutTimer','addEventListener','getUnhiddenWorksheets','auth.needGotoLoginAlert','error','target','searchParams','NEW_CHANGESETS','clipPath','FETCH_MISS','status','getResourcesRequest','SUBMIT_CHANGESET','updateOfflineData','conflict.content','/universer-api/oidc/authpage','transformMutation','evenodd','_updateURLWithCurrentState','show','m1Prime','_drawAnchor','beginPath','_scheduleClearOtherTimer','restore','_drawRange','_clearHeartbeatTimer','defs','_online','none','fetching\x20missing\x20changesets\x20from\x20','sheetID','PSEUDO_FETCH_MISSING_RESULT'];_0x18ca=function(){return _0x5199ce;};return _0x18ca();}function Gt(_0x3c0871){const _0x24e7d0=_0x51fc53;return _0x24e7d0(0x1a3)+_0x3c0871;}const Xe=_0xf73999(_0x51fc53(0x22b));var Os=(_0x14b6ec=>(_0x14b6ec[_0x14b6ec[_0x51fc53(0xf6)]=0x0]=_0x51fc53(0xf6),_0x14b6ec[_0x14b6ec['OTHER_CLIENTS_EDITING']=0x1]=_0x51fc53(0x346),_0x14b6ec))(Os||{});const Yt=0x7530,Kt=_0x51fc53(0x14d);class On extends _0x10a29c{constructor(){const _0x49237e=_0x51fc53;super(),l(this,_0x49237e(0x82),_0x4cfbd7['generateRandomId']()),l(this,'_selfUnitIDs',new Set()),l(this,'_unitOnClients',new Map()),l(this,_0x49237e(0x239),null),l(this,_0x49237e(0x29b),new Map()),l(this,_0x49237e(0x38c),new Map()),this['_init']();}[_0x51fc53(0x232)](){const _0x3859b4=_0x51fc53;super[_0x3859b4(0x232)](),this['_clearOtherTimers']['forEach']((_0x27c810,_0x439676)=>this[_0x3859b4(0xfd)](_0x439676)),this[_0x3859b4(0x239)]&&window[_0x3859b4(0x11f)](this[_0x3859b4(0x239)]);}['getUnitStatus$'](_0x4dfe60){const _0x4dedd9=_0x51fc53;return this[_0x4dedd9(0x3b4)](_0x4dfe60)['pipe'](_0xe50b30());}[_0x51fc53(0x187)](_0x5a27a2){const _0x256a06=_0x51fc53;this['_selfUnitIDs'][_0x256a06(0x23a)]===0x0&&this[_0x256a06(0x364)](),this[_0x256a06(0x2cb)][_0x256a06(0xe7)](_0x5a27a2),this[_0x256a06(0x30a)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x5a27a2],'isForwarded':!0x1});}['disposeUnit'](_0x3c14fc){const _0x4e764c=_0x51fc53;this[_0x4e764c(0x2cb)][_0x4e764c(0x209)](_0x3c14fc),this['_selfUnitIDs'][_0x4e764c(0x23a)]===0x0&&this['_heartbeatTimer']&&window['clearInterval'](this[_0x4e764c(0x239)]);}['_init'](){const _0x1c3f3d=_0x51fc53;this['disposeWithMe'](_0x2f2f24(_0x1860dc(window,_0x1c3f3d(0x112))['subscribe'](_0x7d2cc7=>{const _0x1a3858=_0x1c3f3d;if(_0x7d2cc7['key']!==Kt||!_0x7d2cc7[_0x1a3858(0x3ad)])return;const _0x3e9850=JSON[_0x1a3858(0x2dd)](_0x7d2cc7[_0x1a3858(0x3ad)]);this['_handleEvent'](_0x3e9850);}))),window[_0x1c3f3d(0x24a)](_0x1c3f3d(0x2a4),()=>this[_0x1c3f3d(0x30a)]({'type':0x1,'memberID':this[_0x1c3f3d(0x82)],'unitIDs':Array[_0x1c3f3d(0x17c)](this[_0x1c3f3d(0x2cb)])}));}[_0x51fc53(0x11b)](_0x5b6daf){const _0x461a1f=_0x51fc53;switch(_0x5b6daf[_0x461a1f(0x2cd)]){case 0x0:this['_handleJoinEvent'](_0x5b6daf);break;case 0x1:this[_0x461a1f(0x10f)](_0x5b6daf);break;case 0x2:this[_0x461a1f(0x2a5)](_0x5b6daf);break;}}[_0x51fc53(0x196)](_0x40c84b){const _0x43ecce=_0x51fc53,{unitIDs:_0x34bfed,memberID:_0x4b8c4f,isForwarded:_0x1dd111}=_0x40c84b;_0x34bfed[_0x43ecce(0x124)](_0x2432f6=>{const _0x51f5fe=_0x43ecce;if(!_0x1dd111&&this[_0x51f5fe(0x27a)][_0x51f5fe(0x16c)](_0x2432f6)&&this[_0x51f5fe(0x3b4)](_0x2432f6)[_0x51f5fe(0x275)](0x1),!this['_unitOnClients'][_0x51f5fe(0x16c)](_0x2432f6)||!this[_0x51f5fe(0x27a)][_0x51f5fe(0x151)](_0x2432f6)[_0x51f5fe(0x16c)](_0x4b8c4f)){const _0x787785=this[_0x51f5fe(0x27a)][_0x51f5fe(0x151)](_0x2432f6)||new Set();_0x787785[_0x51f5fe(0xe7)](_0x4b8c4f),this[_0x51f5fe(0x27a)][_0x51f5fe(0x38f)](_0x2432f6,_0x787785),this[_0x51f5fe(0x260)](_0x4b8c4f);}}),_0x1dd111||this[_0x43ecce(0x30a)]({'type':0x0,'memberID':this[_0x43ecce(0x82)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x291848){const _0x5977ce=_0x51fc53;this[_0x5977ce(0xfd)](_0x291848);const _0x19d883=window[_0x5977ce(0x3a6)](()=>{this['_unitOnClients']['forEach'](_0x78235e=>{_0x78235e['delete'](_0x291848);});},Yt*0x2);this[_0x5977ce(0x29b)][_0x5977ce(0x38f)](_0x291848,_0x19d883);}[_0x51fc53(0xfd)](_0x3c7be8){const _0x2b7579=_0x51fc53;if(this[_0x2b7579(0x29b)]['has'](_0x3c7be8)){const _0x1d4b8c=this[_0x2b7579(0x29b)]['get'](_0x3c7be8);_0x1d4b8c&&window[_0x2b7579(0x20c)](_0x1d4b8c),this['_clearOtherTimers']['set'](_0x3c7be8,null);}}[_0x51fc53(0x10f)](_0x3c1122){const _0x1cc5cd=_0x51fc53,{memberID:_0x593a24,unitIDs:_0x2b8915}=_0x3c1122;_0x2b8915[_0x1cc5cd(0x124)](_0x5f090d=>{const _0x5b2608=_0x1cc5cd;var _0x38c161;const _0x2fdd01=this[_0x5b2608(0x27a)][_0x5b2608(0x151)](_0x5f090d);_0x2fdd01&&(_0x2fdd01[_0x5b2608(0x209)](_0x593a24),(_0x38c161=this[_0x5b2608(0x3b4)](_0x5f090d))==null||_0x38c161[_0x5b2608(0x275)](_0x2fdd01[_0x5b2608(0x23a)]===0x0?0x0:0x1));}),this[_0x1cc5cd(0xfd)](_0x593a24);}[_0x51fc53(0x2a5)](_0x3b0b2d){const _0x4796f8=_0x51fc53;this[_0x4796f8(0x260)](_0x3b0b2d['memberID']);}['_send'](_0x8e176){const _0x5dd6d1=_0x51fc53;localStorage[_0x5dd6d1(0x2f0)](Kt,JSON[_0x5dd6d1(0x2ea)](_0x8e176));}[_0x51fc53(0x364)](){const _0x19b02e=_0x51fc53;this[_0x19b02e(0x239)]=window['setInterval'](()=>{const _0x34e71b=_0x19b02e;this[_0x34e71b(0x30a)]({'type':0x2,'memberID':this['_id']});},Yt);}[_0x51fc53(0x3b4)](_0x3cc3df){const _0xcfe4fd=_0x51fc53;return this[_0xcfe4fd(0x38c)]['has'](_0x3cc3df)||this[_0xcfe4fd(0x38c)][_0xcfe4fd(0x38f)](_0x3cc3df,new _0x5d7d96(0x0)),this['_unitStatus']['get'](_0x3cc3df);}}var Dn=Object[_0x51fc53(0x18f)],wn=Object[_0x51fc53(0x340)],Pn=(_0x4e5240,_0x28b81d,_0xb8902e,_0x3612cf)=>{const _0x51711a=_0x51fc53;for(var _0x41a75a=_0x3612cf>0x1?void 0x0:_0x3612cf?wn(_0x28b81d,_0xb8902e):_0x28b81d,_0x1d8464=_0x4e5240[_0x51711a(0x2c6)]-0x1,_0x5637e6;_0x1d8464>=0x0;_0x1d8464--)(_0x5637e6=_0x4e5240[_0x1d8464])&&(_0x41a75a=(_0x3612cf?_0x5637e6(_0x28b81d,_0xb8902e,_0x41a75a):_0x5637e6(_0x41a75a))||_0x41a75a);return _0x3612cf&&_0x41a75a&&Dn(_0x28b81d,_0xb8902e,_0x41a75a),_0x41a75a;},Xt=(_0x58e8a0,_0x5a4309)=>(_0x3d8b53,_0x3e0243)=>_0x5a4309(_0x3d8b53,_0x3e0243,_0x58e8a0);let Be=class{constructor(_0xa87404,_0x16bc1b){const _0x3b4e86=_0x51fc53;this[_0x3b4e86(0x342)]=_0xa87404,this[_0x3b4e86(0x102)]=_0x16bc1b;}[_0x51fc53(0x22c)](_0x4dc2c3){const _0x9d7dba=_0x51fc53;this[_0x9d7dba(0x18c)](_0x4dc2c3),this[_0x9d7dba(0x355)](_0x4dc2c3);}['transformRemoteChangeset'](_0x434645){const _0x368178=_0x51fc53,_0x5d26a2=this[_0x368178(0x342)][_0x368178(0x151)](_0x57e020),{redoCache:_0x3a1135}=_0x5d26a2[_0x368178(0x2ca)]();if(_0x3a1135[_0x368178(0x2c6)]===0x0)return _0x434645;let _0x1647c0=_0x4cfbd7[_0x368178(0x183)](_0x434645['mutations'][0x0]);for(let _0x3f0c09=0x0;_0x3f0c09<_0x3a1135[_0x368178(0x2c6)];_0x3f0c09++){const _0x36e7d1={'id':_0x368178(0x152),'params':{..._0x3a1135[_0x3f0c09]}},_0x4623e8=this[_0x368178(0x102)][_0x368178(0x259)](_0x1647c0,_0x36e7d1,!0x1);if(_0xcc662a(_0x4623e8))throw _0x4623e8['error'];_0x1647c0=_0x4623e8[_0x368178(0x25d)];}return{..._0x4cfbd7[_0x368178(0x183)](_0x434645),'mutations':[_0x1647c0]};}[_0x51fc53(0x18c)](_0x5b0e0d){const _0x3ade08=_0x51fc53,_0x442ab2=this['_injector'][_0x3ade08(0x151)](_0x57e020),{undoCache:_0x2ec6cb,redoCache:_0x2a8beb}=_0x442ab2[_0x3ade08(0x2ca)]();if(_0x2ec6cb[_0x3ade08(0x2c6)]===0x0||_0x2a8beb[_0x3ade08(0x2c6)]===0x0)return;const _0x204a77=[],_0x2e4a7f=[];let _0x2d1d6c=_0x4cfbd7['deepClone'](_0x5b0e0d[_0x3ade08(0xc7)][0x0]),_0x24e2ef=_0x4cfbd7[_0x3ade08(0x183)](_0x5b0e0d[_0x3ade08(0xc7)][0x0]);for(let _0x357fc8=_0x2ec6cb[_0x3ade08(0x2c6)]-0x1;_0x357fc8>=0x0;_0x357fc8--){const _0x21c12b={'id':_0x3ade08(0x152),'params':{..._0x2ec6cb[_0x357fc8]}},_0x352d1c={'id':_0x3ade08(0x152),'params':{..._0x2a8beb[_0x357fc8]}},_0x275625=this['_transformService'][_0x3ade08(0x259)](_0x2d1d6c,_0x21c12b,!0x1),_0x4a3cb9=this[_0x3ade08(0x102)]['transformMutation'](_0x24e2ef,_0x352d1c,!0x1);if(_0xcc662a(_0x275625))throw _0x275625['error'];if(_0xcc662a(_0x4a3cb9))throw _0x4a3cb9[_0x3ade08(0x24d)];_0x204a77[_0x3ade08(0x295)](_0x275625[_0x3ade08(0x30f)][_0x3ade08(0x1c8)]),_0x2e4a7f[_0x3ade08(0x295)](_0x4a3cb9[_0x3ade08(0x30f)][_0x3ade08(0x1c8)]),_0x2d1d6c=_0x275625['m1Prime'],_0x24e2ef=_0x4a3cb9['m1Prime'];}_0x442ab2[_0x3ade08(0x106)]({'undoCache':_0x204a77,'redoCache':_0x2e4a7f});}[_0x51fc53(0x355)](_0x1d909d){const _0x29acee=_0x51fc53,_0x203f23=this['_injector']['get'](_0x57e020),_0x1b8b0f=_0x203f23[_0x29acee(0x37d)]();if(_0x1b8b0f==null)return;const _0xdaf90d=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1d909d['unitID'],'actions':null,'textRanges':[_0x1b8b0f]}}],_0x4d21e4=this[_0x29acee(0x102)][_0x29acee(0x3bd)](_0x1d909d,_0xdaf90d);if(!_0x5a8972(_0x4d21e4))throw _0x4d21e4[_0x29acee(0x24d)];const _0x3d0133=_0x4d21e4['m2Prime'][0x0][_0x29acee(0x1c8)]['textRanges'];Array[_0x29acee(0x34e)](_0x3d0133)&&_0x3d0133[_0x29acee(0x2c6)]&&_0x203f23[_0x29acee(0xef)](_0x3d0133[0x0]);}};Be=Pn([Xt(0x0,_0x4a7404(_0x44b6b8)),Xt(0x1,_0x425e9b)],Be);var Nn=Object[_0x51fc53(0x18f)],Mn=Object[_0x51fc53(0x340)],An=(_0x3033e3,_0x9fb173,_0x595868,_0x19eb0a)=>{const _0x5c4466=_0x51fc53;for(var _0x3aaf3f=_0x19eb0a>0x1?void 0x0:_0x19eb0a?Mn(_0x9fb173,_0x595868):_0x9fb173,_0x1c1261=_0x3033e3[_0x5c4466(0x2c6)]-0x1,_0x208511;_0x1c1261>=0x0;_0x1c1261--)(_0x208511=_0x3033e3[_0x1c1261])&&(_0x3aaf3f=(_0x19eb0a?_0x208511(_0x9fb173,_0x595868,_0x3aaf3f):_0x208511(_0x3aaf3f))||_0x3aaf3f);return _0x19eb0a&&_0x3aaf3f&&Nn(_0x9fb173,_0x595868,_0x3aaf3f),_0x3aaf3f;},Jt=(_0x2a144a,_0x51e388)=>(_0x48f78a,_0x2e66b7)=>_0x51e388(_0x48f78a,_0x2e66b7,_0x2a144a);let ke=class{constructor(_0x46c0b1,_0x26f919){const _0x563856=_0x51fc53;this[_0x563856(0x342)]=_0x46c0b1,this[_0x563856(0x102)]=_0x26f919;}[_0x51fc53(0xc5)](_0x3cd0a2){const _0x33ed89=_0x51fc53;var _0x5c1e20;const _0x342702=this['_injector'][_0x33ed89(0x151)](_0x58dacd),_0x49f6d4=(_0x5c1e20=_0x342702[_0x33ed89(0x287)]())!=null?_0x5c1e20:[],_0xaeb166=_0x49f6d4==null?void 0x0:_0x49f6d4['map'](_0x2646e0);if(_0xaeb166[_0x33ed89(0x2c6)]===0x0)return;const _0x37e9e6=[{'id':_0x33ed89(0x152),'params':{'unitId':_0x3cd0a2['unitID'],'actions':null,'textRanges':_0xaeb166}}],_0x12f21a=this['_transformService'][_0x33ed89(0x3bd)](_0x3cd0a2,_0x37e9e6);if(!_0x5a8972(_0x12f21a))throw _0x12f21a[_0x33ed89(0x24d)];const _0x1a4ca7=_0x12f21a['m2Prime'][0x0]['params'][_0x33ed89(0x302)];Array['isArray'](_0x1a4ca7)&&_0x1a4ca7[_0x33ed89(0x2c6)]&&_0x342702[_0x33ed89(0x139)](_0x1a4ca7,!0x1);}};ke=An([Jt(0x0,_0x4a7404(_0x44b6b8)),Jt(0x1,_0x425e9b)],ke);function Ds(_0x17017c){const _0x3ee394=_0x51fc53;let _0x229727='';for(const _0x36b906 of _0x17017c){const {startOffset:_0x3519d1,endOffset:_0x605cf3,isActive:_0x2d623d}=_0x36b906;_0x229727[_0x3ee394(0x2c6)]&&(_0x229727+=','),_0x229727+=_0x3519d1+':'+_0x605cf3+':'+(_0x2d623d?'1':'0');}return _0x229727;}function yn(_0x326d52){const _0xe03a6a=_0x51fc53,_0x58a7f9=_0x326d52['split'](','),_0x370780=[];for(const _0x1decca of _0x58a7f9){const [_0x1a3ad3,_0x3a33e0,_0x1fceec]=_0x1decca[_0xe03a6a(0x103)](':');_0x370780[_0xe03a6a(0x19d)]({'startOffset':Number(_0x1a3ad3),'endOffset':Number(_0x3a33e0),'collapsed':_0x1a3ad3===_0x3a33e0,'isActive':_0x1fceec==='1'});}return _0x370780[_0xe03a6a(0x142)](_0x1ad813=>_0x1ad813['isActive'])||(_0x370780[0x0]['isActive']=!0x0),_0x370780;}class Mt extends _0x521c86{constructor(){const _0x37c41e=_0x51fc53;super(...arguments),l(this,'_collabCursorState$',new _0x5d7d96(null)),l(this,_0x37c41e(0x318),this['_collabCursorState$']['asObservable']());}[_0x51fc53(0x1b7)](_0xc92d27){const _0x4cb7c2=_0x51fc53,{unitID:_0x4c5bbd,memberID:_0x5c0e5d,textRanges:_0x3f6bea}=_0xc92d27,_0x48a16e=Ds(_0x3f6bea),_0x33a97f={'unitID':_0x4c5bbd,'memberID':_0x5c0e5d,'selection':_0x48a16e};this['_collabCursorState$'][_0x4cb7c2(0x275)](_0x33a97f);}}var Un=Object['defineProperty'],Ln=Object[_0x51fc53(0x340)],$n=(_0x7a8adb,_0xcb8aae,_0x1d44f9,_0x5ad8b0)=>{for(var _0x4ef787=_0x5ad8b0>0x1?void 0x0:_0x5ad8b0?Ln(_0xcb8aae,_0x1d44f9):_0xcb8aae,_0xa23060=_0x7a8adb['length']-0x1,_0x2a1bf3;_0xa23060>=0x0;_0xa23060--)(_0x2a1bf3=_0x7a8adb[_0xa23060])&&(_0x4ef787=(_0x5ad8b0?_0x2a1bf3(_0xcb8aae,_0x1d44f9,_0x4ef787):_0x2a1bf3(_0x4ef787))||_0x4ef787);return _0x5ad8b0&&_0x4ef787&&Un(_0xcb8aae,_0x1d44f9,_0x4ef787),_0x4ef787;},zt=(_0x1a2c06,_0x40049e)=>(_0x21259b,_0x5715c6)=>_0x40049e(_0x21259b,_0x5715c6,_0x1a2c06);let Ve=class{constructor(_0x6f73d7,_0x31a3ec){const _0x393549=_0x51fc53;this[_0x393549(0x342)]=_0x6f73d7,this[_0x393549(0x102)]=_0x31a3ec;}['transformSelections'](_0x172c0a){const _0x5c4a95=_0x51fc53;var _0x1a8411,_0x4ce5e8,_0xaf891c,_0x226827;const _0x34f67d=this['_injector'][_0x5c4a95(0x151)](_0x5c112f),{pluginName:_0x1dd79c,unitId:_0x49526d,sheetId:_0x3c9017}=_0x34f67d[_0x5c4a95(0x320)]()||{},_0x21db35=(_0x1a8411=_0x34f67d[_0x5c4a95(0x287)]())!=null?_0x1a8411:[];if(_0x21db35[_0x5c4a95(0x2c6)]===0x0||!_0x1dd79c||!_0x49526d||!_0x3c9017)return;const _0x5d0210=[{'id':_0x2708b7['id'],'params':{'unitId':_0x49526d,'subUnitId':_0x3c9017,'pluginName':_0x1dd79c,'selections':_0x4cfbd7[_0x5c4a95(0x183)](_0x21db35)}}],_0x58759b=this[_0x5c4a95(0x102)][_0x5c4a95(0x3bd)](_0x172c0a,_0x5d0210);if(!_0x5a8972(_0x58759b))throw _0x58759b['error'];const _0x29ce31=(_0x226827=(_0xaf891c=(_0x4ce5e8=_0x58759b['m2Prime'][0x0])==null?void 0x0:_0x4ce5e8[_0x5c4a95(0x1c8)])==null?void 0x0:_0xaf891c[_0x5c4a95(0xf3)])!=null?_0x226827:_0x21db35;Array[_0x5c4a95(0x34e)](_0x29ce31)&&_0x29ce31['length']&&this[_0x5c4a95(0x342)][_0x5c4a95(0x151)](_0x568418)[_0x5c4a95(0xaa)](_0x2708b7['id'],{'unitId':_0x49526d,'subUnitId':_0x3c9017,'pluginName':_0x1dd79c,'selections':_0x29ce31});}};Ve=$n([zt(0x0,_0x4a7404(_0x44b6b8)),zt(0x1,_0x425e9b)],Ve);const jn=new Set([_0x75b52d['id']]);function Hn(_0xee69da,_0x609f36,_0x276c32,_0x1ae9bb,_0x386944){const _0x48fff9=_0x51fc53;var _0xa2c052,_0x1491c0,_0x813fa1,_0x25d687;const _0x2f6267=[];for(const _0x27d4bb of _0xee69da)if(jn[_0x48fff9(0x16c)](_0x27d4bb['id'])){if(_0x2f6267[_0x48fff9(0x2c6)]>0x0)break;_0x2f6267['push'](_0x27d4bb);break;}else _0x2f6267[_0x48fff9(0x19d)](_0x27d4bb);const _0x265215=(_0x1491c0=(_0xa2c052=_0x386944[_0x48fff9(0x328)]())==null?void 0x0:_0xa2c052[_0x48fff9(0x1ea)])!=null?_0x1491c0:_0x48fff9(0x1ed),_0x4ff4f4=(_0x25d687=(_0x813fa1=_0x386944[_0x48fff9(0x328)]())==null?void 0x0:_0x813fa1[_0x48fff9(0x2ae)])!=null?_0x25d687:_0x48fff9(0x1ed);return{'changeset':{'unitID':_0x609f36,'type':_0x23bb45(_0x276c32['getUnitType'](_0x609f36)),'baseRev':_0x1ae9bb[_0x48fff9(0x2f1)](_0x609f36),'revision':0x0,'userID':_0x265215,'memberID':_0x4ff4f4,'mutations':_0x2f6267},'pendingMutations':_0xee69da[_0x48fff9(0x39d)](_0x2f6267[_0x48fff9(0x2c6)])};}function xn(_0x16afcb,_0x2058c8,_0x2b750a,_0x537a1a,_0x59ba1d){const _0x230af8=_0x51fc53;var _0x266713,_0x2f2171,_0x464a27,_0x1a8523;const _0x28b895=[_0x16afcb['reduce']((_0x34db57,_0x3d6063)=>{const _0x6849f6=_0x5e69;var _0x1d84cc;const {id:_0xe47810}=_0x34db57,{id:_0x43bb00,type:_0x1437bf}=_0x3d6063,_0x56de3b=(_0x1d84cc=_0x34db57[_0x6849f6(0x1c8)])!=null?_0x1d84cc:{'actions':null},_0x6cb9b9=_0x3d6063[_0x6849f6(0x1c8)];if(_0xe47810&&_0xe47810!==_0x43bb00)throw new Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0xe47810+_0x6849f6(0x2b3)+_0x43bb00+'.');return{..._0x34db57,'id':_0x43bb00,'type':_0x1437bf,'params':{'unitId':_0x6cb9b9['unitId'],'textRanges':_0x6cb9b9[_0x6849f6(0x302)],'actions':_0xe185f6['compose'](_0x56de3b[_0x6849f6(0x19c)],_0x6cb9b9[_0x6849f6(0x19c)])}};},{})],_0x4fefa4=(_0x2f2171=(_0x266713=_0x59ba1d[_0x230af8(0x328)]())==null?void 0x0:_0x266713[_0x230af8(0x1ea)])!=null?_0x2f2171:_0x230af8(0x1ed),_0x5af5b4=(_0x1a8523=(_0x464a27=_0x59ba1d[_0x230af8(0x328)]())==null?void 0x0:_0x464a27[_0x230af8(0x2ae)])!=null?_0x1a8523:'unknown';return{'changeset':{'unitID':_0x2058c8,'type':_0x23bb45(_0x2b750a[_0x230af8(0x3b6)](_0x2058c8)),'baseRev':_0x537a1a[_0x230af8(0x2f1)](_0x2058c8),'revision':0x0,'userID':_0x4fefa4,'memberID':_0x5af5b4,'mutations':_0x28b895},'pendingMutations':[]};}var Fn=Object[_0x51fc53(0x18f)],Bn=Object[_0x51fc53(0x340)],ne=(_0x409c80,_0x4ba946,_0x46bbc2,_0x393195)=>{for(var _0x13b711=_0x393195>0x1?void 0x0:_0x393195?Bn(_0x4ba946,_0x46bbc2):_0x4ba946,_0xdf54a3=_0x409c80['length']-0x1,_0x456d6f;_0xdf54a3>=0x0;_0xdf54a3--)(_0x456d6f=_0x409c80[_0xdf54a3])&&(_0x13b711=(_0x393195?_0x456d6f(_0x4ba946,_0x46bbc2,_0x13b711):_0x456d6f(_0x13b711))||_0x13b711);return _0x393195&&_0x13b711&&Fn(_0x4ba946,_0x46bbc2,_0x13b711),_0x13b711;},g=(_0x4c5a63,_0x260f70)=>(_0x4485f3,_0x382513)=>_0x260f70(_0x4485f3,_0x382513,_0x4c5a63),P=(_0x18d067=>(_0x18d067[_0x51fc53(0xeb)]=_0x51fc53(0x20a),_0x18d067[_0x51fc53(0xe4)]=_0x51fc53(0x388),_0x18d067['PENDING']=_0x51fc53(0xdd),_0x18d067[_0x51fc53(0x180)]=_0x51fc53(0x361),_0x18d067[_0x51fc53(0x1a2)]='awaiting_with_pending',_0x18d067['FETCH_MISS']=_0x51fc53(0x143),_0x18d067[_0x51fc53(0x20f)]=_0x51fc53(0xcb),_0x18d067[_0x51fc53(0x319)]='offline',_0x18d067))(P||{});class re{constructor(_0x766915,_0x1b62cd,_0x583917,_0x2b9efc,_0x29b4b6,_0x147355,_0x3e3169,_0x4b6189,_0x6fb4ab){const _0x3ad224=_0x51fc53;l(this,_0x3ad224(0x393),null),l(this,_0x3ad224(0x1e4),[]),(this[_0x3ad224(0x1b1)]=_0x766915,this[_0x3ad224(0x2cd)]=_0x1b62cd,this[_0x3ad224(0x310)]=_0x29b4b6,this[_0x3ad224(0x113)]=_0x147355,this[_0x3ad224(0x1bc)]=_0x3e3169,this[_0x3ad224(0x2f2)]=_0x4b6189,this[_0x3ad224(0x284)]=_0x6fb4ab,this[_0x3ad224(0x393)]=_0x583917,this[_0x3ad224(0x1e4)]=_0x2b9efc);}[_0x51fc53(0x1e8)](_0x53440a){const _0x254257=_0x51fc53,_0x204f8c=this[_0x254257(0x2f2)][_0x254257(0x2f1)](this['unitID']);return _0x53440a[_0x254257(0xaf)]>_0x204f8c+0x1?(this[_0x254257(0x310)][_0x254257(0x12d)]({'from':_0x204f8c,'to':_0x53440a[_0x254257(0xaf)]-0x1}),!0x0):!0x1;}[_0x51fc53(0x243)](_0x16ef5b){const _0x121481=_0x51fc53;this[_0x121481(0x1bc)]['transformUndoRedo'](this['unitID'],_0x16ef5b);}[_0x51fc53(0x2f8)](_0x785818){const _0x36107a=_0x51fc53;var _0x2ea8b8,_0x2b62e0;(_0x2b62e0=(_0x2ea8b8=this['_handler'])[_0x36107a(0x2ef)])==null||_0x2b62e0[_0x36107a(0x185)](_0x2ea8b8,_0x785818);}[_0x51fc53(0x1be)](_0xe0237b){const _0x1d1269=_0x51fc53;var _0xd9f6a3,_0x265bdc;return(_0x265bdc=(_0xd9f6a3=this[_0x1d1269(0x310)])[_0x1d1269(0x370)])==null?void 0x0:_0x265bdc[_0x1d1269(0x185)](_0xd9f6a3,_0xe0237b);}['_transformRemoteChangesetByIMECache'](_0xfe9400){const _0x12a99b=_0x51fc53;var _0x36a775,_0x2b5588,_0x39c9dd;return(_0x39c9dd=(_0x2b5588=(_0x36a775=this[_0x12a99b(0x310)])[_0x12a99b(0x314)])==null?void 0x0:_0x2b5588[_0x12a99b(0x185)](_0x36a775,_0xfe9400))!=null?_0x39c9dd:_0xfe9400;}[_0x51fc53(0x16d)](_0x54c5c4){const _0xb3eeee=_0x51fc53;var _0x1bdc49,_0xba77b0;if(this[_0xb3eeee(0x2cd)]===H[_0xb3eeee(0x32c)]){const {unitID:_0x3b9d97,mutations:_0x54aa5e,memberID:_0x30db9b}=_0x54c5c4,_0x26dffc=_0x54aa5e[0x0][_0xb3eeee(0x1c8)][_0xb3eeee(0x302)];Array['isArray'](_0x26dffc)&&_0x26dffc[_0xb3eeee(0x2c6)]>0x0&&((_0xba77b0=(_0x1bdc49=this['_handler'])[_0xb3eeee(0x126)])==null||_0xba77b0[_0xb3eeee(0x185)](_0x1bdc49,{'unitID':_0x3b9d97,'memberID':_0x30db9b,'textRanges':_0x26dffc}));}}[_0x51fc53(0x303)](){const _0x4716e2=_0x51fc53;this[_0x4716e2(0x284)][_0x4716e2(0x256)](this['unitID'],this[_0x4716e2(0x2cd)],this['_awaitingChangeset'],this['_pendingMutations']);}[_0x51fc53(0x161)](){const _0xf35fa8=_0x51fc53;return this[_0xf35fa8(0x2f2)]['getCurrentRevForDocument'](this[_0xf35fa8(0x1b1)]);}[_0x51fc53(0x3a5)](){const _0x154262=_0x51fc53;this[_0x154262(0x2f2)][_0x154262(0x358)](this[_0x154262(0x1b1)]);}['_executeRemoteChangeset'](_0x365ec3){const _0x14c38=_0x51fc53;var _0x446ce8;const _0xbb0777=this[_0x14c38(0x352)](_0x365ec3),_0x213e31=_0x4bf5fd(_0xbb0777[_0x14c38(0xc7)],this[_0x14c38(0x113)],{'fromCollab':!0x0});if(!_0x213e31['result'])throw _0x213e31[_0x14c38(0x24d)]instanceof Error?_0x213e31[_0x14c38(0x24d)]:new Error((_0x446ce8=_0x213e31[_0x14c38(0x24d)])!=null?_0x446ce8:_0x14c38(0x296));this[_0x14c38(0x1be)](_0xbb0777),this['_transformUndoredo'](_0x365ec3),this[_0x14c38(0x2f8)](_0xbb0777),this[_0x14c38(0x16d)](_0xbb0777),this[_0x14c38(0x3a5)]();}}let Te=class extends re{constructor(_0x42391d,_0x1cb562,_0x2abd49,_0x203f07,_0x4b67f0,_0x38b59b,_0x593d29,_0x12b8a5,_0x11bb7d){const _0x2c2323=_0x51fc53;super(_0x42391d,_0x1cb562,null,[],_0x2abd49,_0x12b8a5,_0x593d29,_0x203f07,_0x4b67f0),l(this,_0x2c2323(0x253),_0x2c2323(0x388)),(this[_0x2c2323(0x342)]=_0x38b59b,this[_0x2c2323(0x37c)]=_0x11bb7d);}['appendMutation'](_0x48c299){const _0x36d2c7=_0x51fc53,_0x39fdea=this[_0x36d2c7(0x342)][_0x36d2c7(0x3ba)](k,this['unitID'],this[_0x36d2c7(0x2cd)],[_0x48c299],this['_handler']);return _0x39fdea[_0x36d2c7(0x158)](),_0x39fdea[_0x36d2c7(0x303)](),_0x39fdea;}[_0x51fc53(0x379)](_0x5d0ebc){const _0x196053=_0x51fc53;if(this['_checkMissing'](_0x5d0ebc))return this[_0x196053(0x342)][_0x196053(0x3ba)](W,this[_0x196053(0x1b1)],this[_0x196053(0x2cd)],null,[],null,[_0x5d0ebc],this[_0x196053(0x310)]);try{return this['_executeRemoteChangeset'](_0x5d0ebc),this;}catch(_0x4db34e){return this[_0x196053(0x37c)]['error'](_0x196053(0x32e),_0x4db34e),this;}}[_0x51fc53(0x2a6)](){const _0x104c09=_0x51fc53;throw new Error(_0x104c09(0x9a));}[_0x51fc53(0x1ca)](){const _0x12f907=_0x51fc53;throw new Error(_0x12f907(0x2c1));}['toggleOffline'](){const _0xcb96b0=_0x51fc53;return this['_injector'][_0xcb96b0(0x3ba)](J,this[_0xcb96b0(0x1b1)],this[_0xcb96b0(0x2cd)],null,[],this['_handler']);}[_0x51fc53(0x338)](){return this;}[_0x51fc53(0x197)](){const _0x48711b=_0x51fc53;throw new Error(_0x48711b(0x3bb));}};Te=ne([g(0x3,_0x4a7404(_0x4d36b1)),g(0x4,_0x4a7404(D)),g(0x5,_0x4a7404(_0x44b6b8)),g(0x6,_0x5815e0),g(0x7,_0x568418),g(0x8,_0x3cb271)],Te);let k=class extends re{constructor(_0x17461f,_0x4eb8d0,_0x268498,_0x4baa6c,_0x5ecb8d,_0x3930bc,_0x4c3dfa,_0x215338,_0x4d1a2b,_0x3e5f2a,_0x10b2af,_0x347cd7,_0x37f11c,_0x1e36ea){const _0x1f76dc=_0x51fc53;super(_0x17461f,_0x4eb8d0,null,_0x268498,_0x4baa6c,_0x3e5f2a,_0x1e36ea,_0x3930bc,_0x4c3dfa),l(this,'status',_0x1f76dc(0xdd)),l(this,_0x1f76dc(0xca),null),l(this,_0x1f76dc(0x90),null),(this[_0x1f76dc(0x342)]=_0x5ecb8d,this['_memberService']=_0x215338,this['_logService']=_0x4d1a2b,this['_configService']=_0x10b2af,this[_0x1f76dc(0x102)]=_0x347cd7,this[_0x1f76dc(0xa0)]=_0x37f11c);}[_0x51fc53(0x347)](_0x392744){const _0x56620a=_0x51fc53;return this[_0x56620a(0x1e4)]['push'](_0x392744),this[_0x56620a(0x303)](),this;}[_0x51fc53(0x379)](_0x1aa55d){const _0x2cd8bb=_0x51fc53;if(this['_checkMissing'](_0x1aa55d))return this[_0x2cd8bb(0x16f)](),this[_0x2cd8bb(0x342)][_0x2cd8bb(0x3ba)](W,this[_0x2cd8bb(0x1b1)],this[_0x2cd8bb(0x2cd)],null,this['_pendingMutations'],null,[_0x1aa55d],this[_0x2cd8bb(0x310)]);try{const _0x2fb56d=this['_transformService'][_0x2cd8bb(0x3bd)](_0x1aa55d,this['_pendingMutations']);if(_0x5a8972(_0x2fb56d)){const {c1Prime:_0x2c0285,m2Prime:_0xbc9b44}=_0x2fb56d;this[_0x2cd8bb(0x83)](_0x2c0285);const _0x19731f=this[_0x2cd8bb(0x342)][_0x2cd8bb(0x3ba)](k,this['unitID'],this[_0x2cd8bb(0x2cd)],_0xbc9b44,this['_handler']);return this[_0x2cd8bb(0x16f)](),_0x19731f[_0x2cd8bb(0x158)](this[_0x2cd8bb(0xca)]?Math[_0x2cd8bb(0x216)](0x0,new Date()[_0x2cd8bb(0x15d)]()-this[_0x2cd8bb(0xca)]):this[_0x2cd8bb(0x2c0)]()),_0x19731f;}throw _0x2fb56d[_0x2cd8bb(0x24d)];}catch(_0x458c51){return this[_0x2cd8bb(0x37c)][_0x2cd8bb(0x24d)](_0x458c51),this[_0x2cd8bb(0x31c)](!0x1);}}['onRemoteAck'](){const _0x333574=_0x51fc53;throw new Error(_0x333574(0x382));}['onRemoteRej'](){const _0x3058e1=_0x51fc53;throw new Error(_0x3058e1(0xe3));}[_0x51fc53(0x178)](){const _0x2b9f7a=_0x51fc53;return this[_0x2b9f7a(0x16f)](),this[_0x2b9f7a(0x342)][_0x2b9f7a(0x3ba)](J,this[_0x2b9f7a(0x1b1)],this[_0x2b9f7a(0x2cd)],null,this[_0x2b9f7a(0x1e4)],this['_handler']);}[_0x51fc53(0x338)](){return this;}[_0x51fc53(0x158)](_0x3b95f9){const _0x58ae07=_0x51fc53;_0x3b95f9=_0x3b95f9!=null?_0x3b95f9:this['_getSendChangesetTimeout'](),this[_0x58ae07(0xca)]=new Date()[_0x58ae07(0x15d)](),this[_0x58ae07(0x90)]=setTimeout(()=>{const _0x15fc1b=_0x58ae07;this['_clearScheduledTask']();let _0x3d5bac=null;switch(this['type']){case H[_0x15fc1b(0x351)]:{_0x3d5bac=Hn(this[_0x15fc1b(0x1e4)],this['unitID'],this[_0x15fc1b(0xa0)],this[_0x15fc1b(0x2f2)],this[_0x15fc1b(0x12b)]);break;}case H[_0x15fc1b(0x32c)]:{_0x3d5bac=xn(this[_0x15fc1b(0x1e4)],this[_0x15fc1b(0x1b1)],this[_0x15fc1b(0xa0)],this[_0x15fc1b(0x2f2)],this['_memberService']);break;}default:throw new Error(_0x15fc1b(0x131)+this[_0x15fc1b(0x2cd)]+'\x20in\x20_schedule.');}const {changeset:_0x50ffe0,pendingMutations:_0x25c013}=_0x3d5bac;this[_0x15fc1b(0x310)][_0x15fc1b(0x36c)](_0x50ffe0);const _0x55a26d=_0x25c013[_0x15fc1b(0x2c6)]?this['_injector'][_0x15fc1b(0x3ba)](V,this[_0x15fc1b(0x1b1)],this['type'],_0x50ffe0,_0x25c013,this['_handler']):this['_injector'][_0x15fc1b(0x3ba)](X,this[_0x15fc1b(0x1b1)],this['type'],_0x50ffe0,this[_0x15fc1b(0x310)]);_0x55a26d[_0x15fc1b(0x303)](),this[_0x15fc1b(0x310)][_0x15fc1b(0x356)](this,_0x55a26d);},_0x3b95f9);}[_0x51fc53(0x2c0)](){const _0x5f4ff9=_0x51fc53;var _0x42de14;return(_0x42de14=this[_0x5f4ff9(0x2c4)][_0x5f4ff9(0xf0)](Xi))!=null?_0x42de14:Ji;}['resend'](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x51fc53(0x16f)](){const _0x3d9928=_0x51fc53;this[_0x3d9928(0x90)]!=null&&(clearTimeout(this['_sendingTimer']),this['_sendingTimer']=null);}[_0x51fc53(0x31c)](_0x3bce27){const _0x5281db=_0x51fc53;return this[_0x5281db(0x16f)](),this[_0x5281db(0x342)]['createInstance'](te,this[_0x5281db(0x1b1)],this[_0x5281db(0x2cd)],null,this[_0x5281db(0x1e4)],this['_handler'],_0x3bce27);}};k=ne([g(0x4,_0x4a7404(_0x44b6b8)),g(0x5,_0x4a7404(_0x4d36b1)),g(0x6,_0x4a7404(D)),g(0x7,_0x4a7404(ee)),g(0x8,_0x3cb271),g(0x9,_0x568418),g(0xa,_0x5977ca),g(0xb,_0x425e9b),g(0xc,_0x373907),g(0xd,_0x5815e0)],k);let X=class extends re{constructor(_0x43166f,_0x4e937d,_0x4a67cd,_0x38aaac,_0x45dd49,_0xaf4e62,_0x2cdb63,_0x126f63,_0x2df3db,_0x215e17,_0x25805b){const _0x4853c8=_0x51fc53;super(_0x43166f,_0x4e937d,_0x4a67cd,[],_0x38aaac,_0x126f63,_0x25805b,_0xaf4e62,_0x2cdb63),l(this,'status',_0x4853c8(0x361)),(this['_injector']=_0x45dd49,this[_0x4853c8(0x37c)]=_0x2df3db,this['_transformService']=_0x215e17);}['appendMutation'](_0x65515c){const _0x452c1c=_0x51fc53,_0x2b1ab7=this[_0x452c1c(0x342)][_0x452c1c(0x3ba)](V,this['unitID'],this['type'],this[_0x452c1c(0x393)],[_0x65515c],this[_0x452c1c(0x310)]);return _0x2b1ab7[_0x452c1c(0x303)](),_0x2b1ab7;}['onRemoteChangeset'](_0x1dfbf0){const _0x48355b=_0x51fc53;if(this[_0x48355b(0x1e8)](_0x1dfbf0))return this[_0x48355b(0x342)][_0x48355b(0x3ba)](W,this['unitID'],this[_0x48355b(0x2cd)],this[_0x48355b(0x393)],[],null,[_0x1dfbf0],this[_0x48355b(0x310)]);try{const _0x5c6b68=this[_0x48355b(0x102)]['transformChangesets']([_0x1dfbf0],[this['_awaitingChangeset']],!0x1);if(_0x4b3216(_0x5c6b68)){const {c1Prime:_0x427238,c2Prime:_0x3f66ef}=_0x5c6b68;this[_0x48355b(0x83)](_0x427238[0x0]),_0x3f66ef[0x0][_0x48355b(0x306)]=this[_0x48355b(0x161)]();const _0x184ed8=this[_0x48355b(0x342)][_0x48355b(0x3ba)](X,this['unitID'],this[_0x48355b(0x2cd)],_0x3f66ef[0x0],this[_0x48355b(0x310)]);return _0x184ed8[_0x48355b(0x303)](),_0x184ed8;}return this[_0x48355b(0x31c)](!0x1);}catch(_0x5645b7){return this[_0x48355b(0x37c)][_0x48355b(0x24d)](_0x5645b7),this[_0x48355b(0x31c)](!0x1);}}[_0x51fc53(0x2a6)](_0x180d91){const _0x152522=_0x51fc53,_0x25b94e=this[_0x152522(0x2f2)]['getCurrentRevForDocument'](this[_0x152522(0x1b1)]);if(_0x180d91[_0x152522(0xaf)]<_0x25b94e-0x1)return this;if(this[_0x152522(0x1e8)](_0x180d91))return this[_0x152522(0x342)][_0x152522(0x3ba)](W,this['unitID'],this[_0x152522(0x2cd)],null,[],this[_0x152522(0x393)],[],this[_0x152522(0x310)]);this[_0x152522(0x3a5)]();const _0x5ace1e=this['_injector'][_0x152522(0x3ba)](Te,this[_0x152522(0x1b1)],this['type'],this[_0x152522(0x310)]);return _0x5ace1e[_0x152522(0x303)](),_0x5ace1e;}[_0x51fc53(0x1ca)](_0x5aa84f){const _0xf9b54f=_0x51fc53;return this['_onConflict'](!!(_0x5aa84f!=null&&_0x5aa84f[_0xf9b54f(0x2d5)]));}[_0x51fc53(0x178)](){const _0x3de89e=_0x51fc53;return this[_0x3de89e(0x342)][_0x3de89e(0x3ba)](J,this[_0x3de89e(0x1b1)],this['type'],this[_0x3de89e(0x393)],[],this[_0x3de89e(0x310)]);}[_0x51fc53(0x338)](){return this;}['resend'](){const _0x3cd03a=_0x51fc53;this[_0x3cd03a(0x310)][_0x3cd03a(0x36c)](this[_0x3cd03a(0x393)]);}['_onConflict'](_0x261c93){const _0x411518=_0x51fc53;return this[_0x411518(0x342)]['createInstance'](te,this['unitID'],this[_0x411518(0x2cd)],this['_awaitingChangeset'],[],this[_0x411518(0x310)],_0x261c93);}};X=ne([g(0x4,_0x4a7404(_0x44b6b8)),g(0x5,_0x4a7404(_0x4d36b1)),g(0x6,_0x4a7404(D)),g(0x7,_0x568418),g(0x8,_0x3cb271),g(0x9,_0x425e9b),g(0xa,_0x5815e0)],X);let V=class extends re{constructor(_0x33b412,_0x5771d4,_0x579b7f,_0x1ed133,_0x2dc007,_0x2ebab4,_0x498cdc,_0x395e61,_0x254117,_0xa54aa2,_0x4f6574,_0x3ebfc8){const _0x3eec32=_0x51fc53;super(_0x33b412,_0x5771d4,_0x579b7f,_0x1ed133,_0x2dc007,_0x254117,_0x3ebfc8,_0x498cdc,_0x395e61),l(this,_0x3eec32(0x253),_0x3eec32(0xb5)),(this[_0x3eec32(0x342)]=_0x2ebab4,this['_logService']=_0xa54aa2,this['_transformService']=_0x4f6574);}[_0x51fc53(0x347)](_0x2de94b){const _0x4603aa=_0x51fc53;return this[_0x4603aa(0x1e4)]['push'](_0x2de94b),this;}['onRemoteChangeset'](_0x491296){const _0x3da192=_0x51fc53;if(this[_0x3da192(0x1e8)](_0x491296))return this[_0x3da192(0x342)][_0x3da192(0x3ba)](W,this[_0x3da192(0x1b1)],this[_0x3da192(0x2cd)],this['_awaitingChangeset'],this[_0x3da192(0x1e4)],null,[_0x491296],this[_0x3da192(0x310)]);try{const _0x569b49=this[_0x3da192(0x102)][_0x3da192(0x21c)]([_0x491296],[this['_awaitingChangeset']],!0x1);if(_0x4b3216(_0x569b49)){const {c1Prime:_0x2d71ba,c2Prime:_0x20c268}=_0x569b49,_0x1772d9=this[_0x3da192(0x102)][_0x3da192(0x3bd)](_0x2d71ba[0x0],this[_0x3da192(0x1e4)]);if(_0x5a8972(_0x1772d9)){const {c1Prime:_0x494a5c,m2Prime:_0xd8e518}=_0x1772d9;return this[_0x3da192(0x83)](_0x494a5c),_0x20c268[0x0][_0x3da192(0x306)]=this[_0x3da192(0x161)](),this[_0x3da192(0x342)][_0x3da192(0x3ba)](V,this[_0x3da192(0x1b1)],this[_0x3da192(0x2cd)],_0x20c268[0x0],_0xd8e518,this[_0x3da192(0x310)]);}throw _0x1772d9[_0x3da192(0x24d)];}throw _0x569b49['error'];}catch(_0x3035b5){return this[_0x3da192(0x37c)][_0x3da192(0x24d)](_0x3035b5),this[_0x3da192(0x31c)](!0x1);}}[_0x51fc53(0x2a6)](_0x2ca0d1){const _0x1e878f=_0x51fc53;if(this[_0x1e878f(0x1e8)](_0x2ca0d1))return this[_0x1e878f(0x342)][_0x1e878f(0x3ba)](W,this[_0x1e878f(0x1b1)],this[_0x1e878f(0x2cd)],null,this[_0x1e878f(0x1e4)],this[_0x1e878f(0x393)],[],this['_handler']);this[_0x1e878f(0x3a5)]();const _0x39845d=this[_0x1e878f(0x342)][_0x1e878f(0x3ba)](k,this[_0x1e878f(0x1b1)],this['type'],this[_0x1e878f(0x1e4)],this['_handler']);return _0x39845d[_0x1e878f(0x158)](),_0x39845d[_0x1e878f(0x303)](),_0x39845d;}[_0x51fc53(0x1ca)](_0x3a499c){const _0x22fa60=_0x51fc53;return this['_onConflict'](!!(_0x3a499c!=null&&_0x3a499c[_0x22fa60(0x2d5)]));}[_0x51fc53(0x178)](){const _0x425e3c=_0x51fc53;return this['_injector'][_0x425e3c(0x3ba)](J,this[_0x425e3c(0x1b1)],this[_0x425e3c(0x2cd)],this[_0x425e3c(0x393)],this[_0x425e3c(0x1e4)],this['_handler']);}[_0x51fc53(0x338)](){return this;}[_0x51fc53(0x197)](){const _0x3075f3=_0x51fc53;this[_0x3075f3(0x310)][_0x3075f3(0x36c)](this[_0x3075f3(0x393)]);}[_0x51fc53(0x31c)](_0x3cd73e){const _0xe7b5a4=_0x51fc53;return this[_0xe7b5a4(0x342)][_0xe7b5a4(0x3ba)](te,this[_0xe7b5a4(0x1b1)],this[_0xe7b5a4(0x2cd)],null,this['_pendingMutations'],this[_0xe7b5a4(0x310)],_0x3cd73e);}};V=ne([g(0x5,_0x4a7404(_0x44b6b8)),g(0x6,_0x4a7404(_0x4d36b1)),g(0x7,_0x4a7404(D)),g(0x8,_0x568418),g(0x9,_0x3cb271),g(0xa,_0x425e9b),g(0xb,_0x5815e0)],V);let te=class extends re{constructor(_0x5b9f1e,_0x1b45eb,_0x37e8d7,_0x4c5b9d,_0x1c68f8,_0x1a9594=!0x1,_0x3e27c5,_0x2eadc2,_0xd06a45,_0x422384,_0x40aaf2,_0x4e73a7,_0x40ecac){const _0x7fe423=_0x51fc53;super(_0x5b9f1e,_0x1b45eb,_0x37e8d7,_0x4c5b9d,_0x1c68f8,_0x2eadc2,_0xd06a45,_0x40aaf2,_0x422384),l(this,'status',_0x7fe423(0xcb)),(this[_0x7fe423(0x293)]=_0x1a9594,this[_0x7fe423(0xa5)]=_0x3e27c5,this[_0x7fe423(0x344)]=_0x4e73a7,this[_0x7fe423(0x2e1)]=_0x40ecac,this['_showConflictNotification'](),this[_0x7fe423(0x95)](),this[_0x7fe423(0x309)]());}[_0x51fc53(0x347)](){return this;}[_0x51fc53(0x379)](){return this;}[_0x51fc53(0x2a6)](){return this;}[_0x51fc53(0x1ca)](){return this;}[_0x51fc53(0x178)](){return this;}[_0x51fc53(0x338)](){return this;}['resend'](){const _0x545401=_0x51fc53;throw new Error(_0x545401(0xf8));}[_0x51fc53(0x95)](){const _0x5e14ef=_0x51fc53;this[_0x5e14ef(0x284)][_0x5e14ef(0x256)](this[_0x5e14ef(0x1b1)],this[_0x5e14ef(0x2cd)],null,[]);}['_showConflictNotification'](){const _0x35e70a=_0x51fc53;this[_0x35e70a(0x293)]?this[_0x35e70a(0x2e1)][_0x35e70a(0x25c)]({'title':this['_localeService']['t']('permission.title'),'content':this[_0x35e70a(0x344)]['t'](_0x35e70a(0x272)),'type':_0x35e70a(0x24d),'duration':0x0}):this['_notificationService'][_0x35e70a(0x25c)]({'title':this[_0x35e70a(0x344)]['t'](_0x35e70a(0x2e4)),'content':this['_localeService']['t'](_0x35e70a(0x257)),'type':_0x35e70a(0x24d),'duration':0x0});}[_0x51fc53(0x309)](){const _0x248c15=_0x51fc53;this[_0x248c15(0xa5)][_0x248c15(0x1f6)](new _0x4b6c4e(this['unitID'])['id'],!0x1);}};te=ne([g(0x6,_0x4a7404(_0x57bd86)),g(0x7,_0x568418),g(0x8,_0x5815e0),g(0x9,_0x4a7404(D)),g(0xa,_0x4a7404(_0x4d36b1)),g(0xb,_0x4a7404(_0x201091)),g(0xc,_0x3c139b)],te);let J=class extends re{constructor(_0xac715,_0x47b453,_0xd77c4,_0x1c581c,_0x221ccb,_0x1518bb,_0x4fb248,_0x554b18,_0x5a8840,_0x3759b0){const _0x29739c=_0x51fc53;super(_0xac715,_0x47b453,_0xd77c4,_0x1c581c,_0x221ccb,_0x5a8840,_0x3759b0,_0x4fb248,_0x554b18),l(this,'status',_0x29739c(0x2fb)),this[_0x29739c(0x342)]=_0x1518bb;}['appendMutation'](_0x244ca9){const _0x162fd1=_0x51fc53;return this[_0x162fd1(0x1e4)][_0x162fd1(0x19d)](_0x244ca9),this[_0x162fd1(0x303)](),this;}[_0x51fc53(0x379)](_0x47beee){const _0x1814be=_0x51fc53;throw new Error(_0x1814be(0xf7));}[_0x51fc53(0x2a6)](){const _0x1d3ac0=_0x51fc53;throw new Error(_0x1d3ac0(0x134));}[_0x51fc53(0x1ca)](){const _0x46fe7c=_0x51fc53;throw new Error(_0x46fe7c(0x1aa));}['toggleOffline'](){return this;}[_0x51fc53(0x338)](){const _0x390e97=_0x51fc53,{_injector:_0x52b0c4,_pendingMutations:_0x25072b,_awaitingChangeset:_0x20455e,unitID:_0x5e8d03,_handler:_0xbd0199,type:_0x5ad599}=this,_0x44c8cb=ws(_0x52b0c4,_0x5e8d03,_0x5ad599,_0x20455e,_0x25072b,_0xbd0199);return _0x44c8cb instanceof k?_0x44c8cb[_0x390e97(0x158)]():(_0x44c8cb instanceof V||_0x44c8cb instanceof X)&&_0x44c8cb[_0x390e97(0x197)](),_0x44c8cb;}[_0x51fc53(0x197)](){const _0x242e90=_0x51fc53;throw new Error(_0x242e90(0x224));}};J=ne([g(0x5,_0x4a7404(_0x44b6b8)),g(0x6,_0x4a7404(_0x4d36b1)),g(0x7,_0x4a7404(D)),g(0x8,_0x568418),g(0x9,_0x5815e0)],J);let W=class extends re{constructor(_0x1712b8,_0x1b284e,_0x51cc49,_0x329fe8,_0xd04850,_0x8299f6,_0x408a19,_0x31b5c3,_0x4b53de,_0x31531,_0x57d064,_0x26e2d8,_0x2d1b51,_0x2782a1){const _0x1561fe=_0x51fc53;super(_0x1712b8,_0x1b284e,_0x51cc49,_0x329fe8,_0x408a19,_0x26e2d8,_0x2d1b51,_0x4b53de,_0x31531),l(this,'status',_0x1561fe(0x143)),(this[_0x1561fe(0x373)]=_0xd04850,this[_0x1561fe(0x38e)]=_0x8299f6,this[_0x1561fe(0x342)]=_0x31b5c3,this['_logService']=_0x57d064,this[_0x1561fe(0x102)]=_0x2782a1);}['onMissedChangesetFetched'](_0x5bbeb1){const _0x22323b=_0x51fc53;try{const _0x3d10ec=[..._0x5bbeb1,...this[_0x22323b(0x38e)]],_0x1b4607=[this[_0x22323b(0x393)]||this['_acknowledgedAwaitingChangeset']][_0x22323b(0x205)](_0x527786=>!!_0x527786);let _0x3b29cf,_0x144527;if(_0x1b4607[_0x22323b(0x2c6)]){const _0x5089ce=this[_0x22323b(0x102)][_0x22323b(0x21c)](_0x3d10ec,_0x1b4607,!0x1);if(!_0x4b3216(_0x5089ce))throw _0x5089ce['error'];_0x3b29cf=_0x5089ce[_0x22323b(0x3ab)],_0x144527=_0x5089ce['c2Prime'];}else _0x3b29cf=_0x3d10ec,_0x144527=[];let _0x19631a=this['_pendingMutations'];_0x3b29cf[_0x22323b(0x124)](_0x434f8f=>{const _0x420857=_0x22323b;let _0x5a7696;if(_0x19631a[_0x420857(0x2c6)]){const _0x5d312c=this[_0x420857(0x102)][_0x420857(0x3bd)](_0x434f8f,_0x19631a);if(!_0x5a8972(_0x5d312c))throw _0x5d312c[_0x420857(0x24d)];_0x5a7696=_0x5d312c[_0x420857(0x3ab)],_0x19631a=_0x5d312c[_0x420857(0x30f)];}else _0x5a7696=_0x434f8f;this[_0x420857(0x83)](_0x5a7696);}),this[_0x22323b(0x373)]&&this[_0x22323b(0x3a5)](),this[_0x22323b(0x393)]&&_0x144527[_0x22323b(0x2c6)]&&(_0x144527[0x0][_0x22323b(0x306)]=this['_getCurrentRevision']());let _0x34f724;if(this[_0x22323b(0x393)]&&_0x19631a['length']!==0x0)_0x34f724=this[_0x22323b(0x342)][_0x22323b(0x3ba)](V,this[_0x22323b(0x1b1)],this[_0x22323b(0x2cd)],_0x144527[0x0],_0x19631a,this[_0x22323b(0x310)]);else{if(this['_awaitingChangeset']&&_0x19631a[_0x22323b(0x2c6)]===0x0)_0x144527[0x0][_0x22323b(0x306)]=this['_getCurrentRevision'](),_0x34f724=this[_0x22323b(0x342)][_0x22323b(0x3ba)](X,this[_0x22323b(0x1b1)],this[_0x22323b(0x2cd)],_0x144527[0x0],this[_0x22323b(0x310)]);else{if(_0x19631a[_0x22323b(0x2c6)]!==0x0){const _0xe94e8=this[_0x22323b(0x342)][_0x22323b(0x3ba)](k,this[_0x22323b(0x1b1)],this['type'],_0x19631a,this['_handler']);_0xe94e8[_0x22323b(0x158)](),_0x34f724=_0xe94e8;}else _0x34f724=this[_0x22323b(0x342)]['createInstance'](Te,this[_0x22323b(0x1b1)],this[_0x22323b(0x2cd)],this[_0x22323b(0x310)]);}}return _0x34f724[_0x22323b(0x303)](),_0x34f724;}catch(_0x5626cd){return this[_0x22323b(0x37c)][_0x22323b(0x24d)](_0x22323b(0x38d),_0x22323b(0x337),_0x5626cd),this[_0x22323b(0x342)][_0x22323b(0x3ba)](te,this['unitID'],this[_0x22323b(0x2cd)],this[_0x22323b(0x393)],this[_0x22323b(0x1e4)],this[_0x22323b(0x310)],!0x1);}}['resend'](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}['appendMutation'](_0x395d60){const _0x460094=_0x51fc53;return this[_0x460094(0x1e4)][_0x460094(0x19d)](_0x395d60),this;}[_0x51fc53(0x379)](_0x51730d){const _0x1d5ace=_0x51fc53;return this['_queuedRemoteChangesets'][_0x1d5ace(0x19d)](_0x51730d),this;}[_0x51fc53(0x2a6)](_0x386fb5){const _0x11de99=_0x51fc53;if(this[_0x11de99(0x393)])return this[_0x11de99(0x373)]=this['_awaitingChangeset'],this[_0x11de99(0x393)]=null,this;throw new Error(_0x11de99(0x2eb));}[_0x51fc53(0x1ca)](_0x3e24c6){const _0x51d9f6=_0x51fc53;return this[_0x51d9f6(0x31c)](!!(_0x3e24c6!=null&&_0x3e24c6['isPermissionRej']));}[_0x51fc53(0x178)](){const _0x3064d5=_0x51fc53;return this[_0x3064d5(0x342)][_0x3064d5(0x3ba)](J,this[_0x3064d5(0x1b1)],this['type'],this[_0x3064d5(0x393)],this[_0x3064d5(0x1e4)],this['_handler']);}[_0x51fc53(0x338)](){return this;}[_0x51fc53(0x31c)](_0x3bc574){const _0x4e9827=_0x51fc53;return this[_0x4e9827(0x342)]['createInstance'](te,this[_0x4e9827(0x1b1)],this[_0x4e9827(0x2cd)],this['_awaitingChangeset'],this['_pendingMutations'],this['_handler'],_0x3bc574);}};W=ne([g(0x7,_0x4a7404(_0x44b6b8)),g(0x8,_0x4a7404(_0x4d36b1)),g(0x9,_0x4a7404(D)),g(0xa,_0x3cb271),g(0xb,_0x568418),g(0xc,_0x5815e0),g(0xd,_0x425e9b)],W);function ws(_0x588fc4,_0x1b8dae,_0x538561,_0x1a292d,_0x552759,_0x54d676){const _0x1d0814=_0x51fc53;return _0x1a292d&&_0x552759[_0x1d0814(0x2c6)]?_0x588fc4[_0x1d0814(0x3ba)](V,_0x1b8dae,_0x538561,_0x1a292d,_0x552759,_0x54d676):_0x1a292d?_0x588fc4[_0x1d0814(0x3ba)](X,_0x1b8dae,_0x538561,_0x1a292d,_0x54d676):_0x552759[_0x1d0814(0x2c6)]?_0x588fc4['createInstance'](k,_0x1b8dae,_0x538561,_0x552759,_0x54d676):_0x588fc4[_0x1d0814(0x3ba)](Te,_0x1b8dae,_0x538561,_0x54d676);}var kn=Object[_0x51fc53(0x18f)],Vn=Object[_0x51fc53(0x340)],Je=(_0xcf5d72,_0x5f10c7,_0x2a3600,_0xd59185)=>{const _0x362a0f=_0x51fc53;for(var _0x418415=_0xd59185>0x1?void 0x0:_0xd59185?Vn(_0x5f10c7,_0x2a3600):_0x5f10c7,_0x1e804e=_0xcf5d72[_0x362a0f(0x2c6)]-0x1,_0x3c60fe;_0x1e804e>=0x0;_0x1e804e--)(_0x3c60fe=_0xcf5d72[_0x1e804e])&&(_0x418415=(_0xd59185?_0x3c60fe(_0x5f10c7,_0x2a3600,_0x418415):_0x3c60fe(_0x418415))||_0x418415);return _0xd59185&&_0x418415&&kn(_0x5f10c7,_0x2a3600,_0x418415),_0x418415;},S=(_0x54158f,_0x1ea78c)=>(_0x3a5bbe,_0x1b06f0)=>_0x1ea78c(_0x3a5bbe,_0x1b06f0,_0x54158f);let Ee=class extends _0x521c86{constructor(_0x4858bb,_0x136d11,_0x2d2c03){const _0x1515b7=_0x51fc53;super(),l(this,'_entities',new Map()),l(this,_0x1515b7(0x36b),new _0x5da41e()),(this[_0x1515b7(0x342)]=_0x4858bb,this[_0x1515b7(0x1b2)]=_0x136d11,this[_0x1515b7(0xa0)]=_0x2d2c03,this[_0x1515b7(0x380)]());}[_0x51fc53(0x232)](){const _0x625a8c=_0x51fc53;super[_0x625a8c(0x232)](),this[_0x625a8c(0x2a3)]['forEach'](_0xc7c1cc=>_0xc7c1cc['dispose']()),this['_entities'][_0x625a8c(0x362)]();}[_0x51fc53(0x179)](_0x1f1f5b){const _0x1cb938=_0x51fc53;var _0x276cde;return(_0x276cde=this[_0x1cb938(0x2a3)][_0x1cb938(0x151)](_0x1f1f5b))!=null?_0x276cde:null;}[_0x51fc53(0x3b0)](_0x317eec){const _0x2d9566=_0x51fc53,_0x5093cc=this[_0x2d9566(0x179)](_0x317eec);return _0x5093cc?_0xdadc8c(_0x5093cc):this['_entityInit$'][_0x2d9566(0x2c3)](_0x1b26e7(_0x20e91a=>_0x20e91a['unitID']===_0x317eec));}['_init'](){const _0x550356=_0x51fc53;this[_0x550356(0xa0)][_0x550356(0x26e)](_0x3504ec[_0x550356(0x351)])[_0x550356(0x2c3)](_0x1603a2(this['dispose$']),_0x54f844(0x10))[_0x550356(0x202)](async _0x5ca819=>{const _0x2d0389=_0x550356,_0x3fe74e=_0x5ca819['getUnitId'](),_0x3e7586=await this[_0x2d0389(0x223)](_0x3fe74e,H[_0x2d0389(0x351)]);this[_0x2d0389(0x2a3)][_0x2d0389(0x38f)](_0x3fe74e,_0x3e7586);}),this[_0x550356(0xa0)][_0x550356(0x26e)](_0x3504ec['UNIVER_DOC'])[_0x550356(0x2c3)](_0x1603a2(this[_0x550356(0x200)]),_0x54f844(0x10))[_0x550356(0x2c3)](_0x1b26e7(_0x1c26ff=>!_0x1c26ff[_0x550356(0x244)]()[_0x550356(0x30e)]('__')))[_0x550356(0x202)](async _0x4f0c16=>{const _0x3ea925=_0x550356,_0x3289bf=_0x4f0c16[_0x3ea925(0x244)](),_0x27b24c=await this[_0x3ea925(0x223)](_0x3289bf,H[_0x3ea925(0x32c)]);this[_0x3ea925(0x2a3)][_0x3ea925(0x38f)](_0x3289bf,_0x27b24c);}),_0x124107(this[_0x550356(0xa0)][_0x550356(0x280)](_0x3504ec[_0x550356(0x351)]),this[_0x550356(0xa0)][_0x550356(0x280)](_0x3504ec[_0x550356(0x32c)]))[_0x550356(0x2c3)](_0x1603a2(this['dispose$']))[_0x550356(0x202)](_0x436d46=>{const _0x29c6ea=_0x550356,_0x16eafd=_0x436d46[_0x29c6ea(0x244)](),_0x53d8f6=this[_0x29c6ea(0x2a3)]['get'](_0x16eafd);_0x53d8f6&&(_0x53d8f6[_0x29c6ea(0x232)](),this[_0x29c6ea(0x2a3)][_0x29c6ea(0x209)](_0x16eafd));});}async[_0x51fc53(0x223)](_0x4591bf,_0x2f97fe){const _0x44a542=_0x51fc53,_0x1a50f4=await this[_0x44a542(0x1b2)][_0x44a542(0x1ad)](_0x4591bf),_0x8aff8f=this[_0x44a542(0x342)][_0x44a542(0x3ba)](this[_0x44a542(0x148)](_0x2f97fe),_0x4591bf,_0x2f97fe,_0x1a50f4);return await _0x8aff8f['init'](),this[_0x44a542(0x36b)][_0x44a542(0x275)](_0x8aff8f),_0x8aff8f;}['_getCtorByUniverType'](_0x2723b6){const _0x43551e=_0x51fc53;switch(_0x2723b6){case H[_0x43551e(0x32c)]:return dt;case H['UNIVER_SHEET']:return ft;default:throw new Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x2723b6);}}};Ee=Je([_0x47ad3a(_0x34068b[_0x51fc53(0x11d)],Ee),S(0x0,_0x4a7404(_0x44b6b8)),S(0x1,_0x4a7404(Re)),S(0x2,_0x373907)],Ee);let We=class extends _0x521c86{constructor(_0x532bf4,_0x1c7be0,_0xea7505,_0x1b6bba,_0x46d0c1,_0x2dbdd7,_0x27152b,_0x529f52,_0x1089c5,_0x3f06b0,_0x5608a4,_0xf93f36,_0x166aa7){const _0xe23846=_0x51fc53;super(),l(this,'_state$',new _0x5d7d96(null)),l(this,_0xe23846(0x245),this[_0xe23846(0x331)]['asObservable']()),l(this,_0xe23846(0x173)),l(this,'_collaborationPaused',!0x1),l(this,_0xe23846(0x214),this[_0xe23846(0x245)][_0xe23846(0x2c3)](_0x1db2aa(_0x1b7339=>_0x1b7339?_0x1b7339[_0xe23846(0x253)]:P['OFFLINE']),_0x4b3c1f(0x1))),l(this,'_transitionLocked',!0x1),l(this,_0xe23846(0x1de),[]),(this['unitID']=_0x532bf4,this['_type']=_0x1c7be0,this[_0xe23846(0x29c)]=_0xea7505,this[_0xe23846(0x342)]=_0x1b6bba,this[_0xe23846(0x284)]=_0x46d0c1,this[_0xe23846(0x13f)]=_0x2dbdd7,this[_0xe23846(0x344)]=_0x27152b,this[_0xe23846(0x2f2)]=_0x529f52,this[_0xe23846(0x37c)]=_0x1089c5,this[_0xe23846(0x113)]=_0x3f06b0,this[_0xe23846(0x383)]=_0x5608a4,this['_permissionService']=_0xf93f36,this[_0xe23846(0x109)]=_0x166aa7);}get[_0x51fc53(0x181)](){const _0x4b3df6=_0x51fc53;return this[_0x4b3df6(0x173)];}async[_0x51fc53(0x191)](){const _0x46ab6c=_0x51fc53;if(this['state'])throw new Error(_0x46ab6c(0x360));await this[_0x46ab6c(0x380)]();}[_0x51fc53(0x32a)](){return this['_collaborationPaused']=!0x0,_0x2f2f24(()=>{const _0x2b6eb2=_0x5e69;this[_0x2b6eb2(0x218)]=!0x1,this[_0x2b6eb2(0x133)]();});}[_0x51fc53(0x292)](_0x1bc89b){const _0x1ea275=_0x51fc53;this[_0x1ea275(0x173)]=_0x1bc89b,this['_state$'][_0x1ea275(0x275)](_0x1bc89b);}async['_init'](){const _0x3b9cb2=_0x51fc53;var _0x4dd910;return this[_0x3b9cb2(0x292)](await this[_0x3b9cb2(0x2b8)]()),this[_0x3b9cb2(0x109)]&&((_0x4dd910=this['_singleActiveUnitService'])==null||_0x4dd910[_0x3b9cb2(0x187)](this[_0x3b9cb2(0x1b1)]),this['disposeWithMe'](_0x2f2f24(this['_singleActiveUnitService'][_0x3b9cb2(0x1ee)](this['unitID'])['subscribe'](_0x5b00fa=>{const _0x39fb22=_0x3b9cb2;this[_0x39fb22(0x37c)][_0x39fb22(0x35e)](_0x39fb22(0x304),_0x39fb22(0x36e),_0x5b00fa),_0x5b00fa===Os[_0x39fb22(0x346)]?(this[_0x39fb22(0x383)][_0x39fb22(0x25c)]({'content':this['_localeService']['t'](_0x39fb22(0x210)),'type':_0x1587ba[_0x39fb22(0x10e)]}),this['_permissionService'][_0x39fb22(0x1f6)](new _0x4b6c4e(this[_0x39fb22(0x1b1)])['id'],!0x1)):this[_0x39fb22(0xa5)][_0x39fb22(0x1f6)](new _0x4b6c4e(this[_0x39fb22(0x1b1)])['id'],!0x0);})))),this[_0x3b9cb2(0x294)](_0x2f2f24(this[_0x3b9cb2(0x29c)][_0x3b9cb2(0x334)][_0x3b9cb2(0x202)](_0x2ed8f9=>{const _0x3b7be7=_0x3b9cb2;_0x2ed8f9===_e[_0x3b7be7(0x31f)]?this[_0x3b7be7(0x343)]():_0x2ed8f9===_e[_0x3b7be7(0x319)]&&this[_0x3b7be7(0xdb)]();}))),this[_0x3b9cb2(0x294)](_0x2f2f24(this[_0x3b9cb2(0x29c)]['event$'][_0x3b9cb2(0x202)](_0x10b7aa=>{const _0x1bd9e0=_0x3b9cb2;try{switch(_0x10b7aa[_0x1bd9e0(0x1ec)]){case _0x1b5c65[_0x1bd9e0(0x250)]:{this['_onRemoteChangeset'](_0x8dccd4(_0x10b7aa['data']));break;}case _0x1b5c65[_0x1bd9e0(0xf1)]:{this[_0x1bd9e0(0x14e)](_0x10b7aa[_0x1bd9e0(0x94)]);break;}case _0x1b5c65['CHANGESET_REJ']:{this['_onRemoteRejected']();break;}case _0x1b5c65[_0x1bd9e0(0x269)]:{this[_0x1bd9e0(0x381)](_0x10b7aa[_0x1bd9e0(0x94)][_0x1bd9e0(0xa3)][_0x1bd9e0(0xab)](_0x3b46dd=>_0x8dccd4(_0x3b46dd)));break;}case _0x1b5c65[_0x1bd9e0(0x274)]:this['_onRemoteRejected']({'isPermissionRej':!0x0});}}catch(_0x5d532c){throw console[_0x1bd9e0(0x24d)](_0x1bd9e0(0x299),_0x5d532c),_0x5d532c;}}))),this[_0x3b9cb2(0x173)];}['_unlockTransition'](){const _0x480a08=_0x51fc53;this[_0x480a08(0x37b)]=!0x1;}['_lockTransition'](){const _0x59d763=_0x51fc53;if(this[_0x59d763(0x37b)])throw new Error('[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.');this[_0x59d763(0x37b)]=!0x0;}[_0x51fc53(0x1c7)](_0x213c99){const _0x3d1d7d=_0x51fc53;this['_lockTransition'](),this[_0x3d1d7d(0x292)](this[_0x3d1d7d(0x173)]['appendMutation'](_0x213c99)),this[_0x3d1d7d(0x1f8)]();}[_0x51fc53(0x2fe)](_0x59b55b){const _0x312a42=_0x51fc53;if(!(_0x59b55b['revision']<=this['_revisionService'][_0x312a42(0x2f1)](this[_0x312a42(0x1b1)]))){if(this['_collaborationPaused']){this[_0x312a42(0x1de)]['push'](_0x59b55b);return;}this[_0x312a42(0x114)](_0x59b55b);}}[_0x51fc53(0x133)](){const _0x3fd6f8=_0x51fc53;this[_0x3fd6f8(0x1de)]['forEach'](_0x1a03ad=>this['_applyRemoteChangeset'](_0x1a03ad)),this['_remoteChangesetQueue']=[];}[_0x51fc53(0x114)](_0x5c3628){const _0x3c3cf9=_0x51fc53,_0x2dec41=this[_0x3c3cf9(0x13f)][_0x3c3cf9(0xb2)]['fetchThroughInterceptors'](this[_0x3c3cf9(0x13f)][_0x3c3cf9(0xb2)]['getInterceptPoints']()[_0x3c3cf9(0x176)])(_0x5c3628[_0x3c3cf9(0xc7)],null)||_0x5c3628[_0x3c3cf9(0xc7)],_0x65bb5e={..._0x5c3628,'mutations':_0x2dec41};this['_lockTransition'](),this['_updateState'](this[_0x3c3cf9(0x173)]['onRemoteChangeset'](_0x65bb5e)),this[_0x3c3cf9(0x1f8)]();}['_onRemoteACK'](_0x2643b4){const _0x1ecaf7=_0x51fc53;this['_lockTransition'](),this[_0x1ecaf7(0x292)](this['_state']['onRemoteAck'](_0x2643b4)),this[_0x1ecaf7(0x1f8)]();}[_0x51fc53(0x348)](_0xb08dc9){const _0x232985=_0x51fc53;this['_lockTransition'](),this['_updateState'](this[_0x232985(0x173)][_0x232985(0x1ca)](_0xb08dc9)),this[_0x232985(0x1f8)]();}[_0x51fc53(0x381)](_0x26fa7a){const _0x10eb42=_0x51fc53;if(!(this['_state']instanceof W))throw new TypeError(_0x10eb42(0x21f));const _0xd0b61c=_0x26fa7a[_0x10eb42(0xab)](_0x3b2b77=>{const _0x334297=_0x10eb42,_0x476365=this[_0x334297(0x13f)][_0x334297(0xb2)][_0x334297(0xd1)](this[_0x334297(0x13f)]['interceptor'][_0x334297(0x26f)]()[_0x334297(0x176)])(_0x3b2b77[_0x334297(0xc7)],null)||_0x3b2b77[_0x334297(0xc7)];return{..._0x3b2b77,'mutations':_0x476365};});this[_0x10eb42(0x1e0)](),this[_0x10eb42(0x292)](this[_0x10eb42(0x173)]['onMissedChangesetFetched'](_0xd0b61c)),this[_0x10eb42(0x1f8)]();}[_0x51fc53(0xdb)](){const _0x27f2bf=_0x51fc53;this[_0x27f2bf(0x1e0)](),this[_0x27f2bf(0x292)](this[_0x27f2bf(0x173)][_0x27f2bf(0x178)]()),this[_0x27f2bf(0x1f8)]();}['_toggleOnline'](){const _0x33ddb9=_0x51fc53;this[_0x33ddb9(0x1e0)](),this[_0x33ddb9(0x292)](this[_0x33ddb9(0x173)][_0x33ddb9(0x338)]()),this[_0x33ddb9(0x1f8)]();}async[_0x51fc53(0x2b8)](){return new Promise(_0x351c8b=>{const _0xccf4f8=_0x5e69;this[_0xccf4f8(0x29c)][_0xccf4f8(0x334)][_0xccf4f8(0x2c3)](_0x51a597(0x1))[_0xccf4f8(0x202)](async _0x80a9f9=>{const _0x1c8939=_0xccf4f8;_0x351c8b(await this[_0x1c8939(0x281)](_0x80a9f9===_e[_0x1c8939(0x31f)]));});});}[_0x51fc53(0x353)](){const _0x3335e9=_0x51fc53,_0x55a1d5=this[_0x3335e9(0x1b1)];return{'onStateChange':(_0x4bc620,_0x5abb10)=>{const _0xdc3f7d=_0x3335e9;if(_0x4bc620!==this['_state'])throw new Error(_0xdc3f7d(0xd5)+_0x4bc620[_0xdc3f7d(0x253)]+'\x0aAfter:\x20'+_0x5abb10['status']+_0xdc3f7d(0xc6)+this[_0xdc3f7d(0x173)][_0xdc3f7d(0x253)]);this['_updateState'](_0x5abb10);},'onSendChangeset':_0x2ff008=>{const _0x19e233=_0x3335e9,_0x4ce3da={'eventID':_0x1b5c65[_0x19e233(0x255)],'data':{'unitID':_0x2ff008[_0x19e233(0x1b1)],'unitType':this[_0x19e233(0xad)],'changeset':_0x2ff008,'memberID':this[_0x19e233(0x29c)]['getMemberID']()}};this[_0x19e233(0x29c)][_0x19e233(0x39e)](_0x4ce3da,this[_0x19e233(0x1b1)]);},'onMissingChangesets':({from:_0x26cc95,to:_0x5f0301})=>{const _0x5303c9=_0x3335e9;this[_0x5303c9(0x37c)]['debug'](_0x5303c9(0x304),_0x5303c9(0x267)+_0x26cc95+_0x5303c9(0x39a)+_0x5f0301);const _0x4c1895={'eventID':_0x1b5c65[_0x5303c9(0x282)],'data':{'unitID':_0x55a1d5,'unitType':this[_0x5303c9(0xad)],'from':_0x26cc95,'to':_0x5f0301}};this[_0x5303c9(0x29c)][_0x5303c9(0x39e)](_0x4c1895,this[_0x5303c9(0x1b1)]);}};}async[_0x51fc53(0x281)](_0x1eaf27){const _0x3a5b9a=_0x51fc53;var _0x46ddcc,_0x231b95;const _0xbc676a=await this[_0x3a5b9a(0x284)]['loadOfflineData'](this['unitID']),_0xb7926f=(_0x46ddcc=_0xbc676a==null?void 0x0:_0xbc676a[_0x3a5b9a(0xc7)])!=null?_0x46ddcc:[],_0x4beb68=(_0x231b95=_0xbc676a==null?void 0x0:_0xbc676a[_0x3a5b9a(0x188)])!=null?_0x231b95:null,_0x2eb10d=this['unitID'];try{this[_0x3a5b9a(0xa9)](_0x4beb68,_0xb7926f);}catch(_0x274cb9){this[_0x3a5b9a(0x37c)][_0x3a5b9a(0x24d)](_0x274cb9);}const _0x451806=this['_createHandler']();if(_0x1eaf27){const _0x578a6f=ws(this['_injector'],_0x2eb10d,this['_type'],_0x4beb68,_0xb7926f,_0x451806);return _0x578a6f instanceof k?_0x578a6f[_0x3a5b9a(0x158)]():(_0x578a6f instanceof V||_0x578a6f instanceof X)&&_0x578a6f[_0x3a5b9a(0x197)](),_0x578a6f;}return this[_0x3a5b9a(0x342)][_0x3a5b9a(0x3ba)](J,_0x2eb10d,this['_type'],_0x4beb68,_0xb7926f,_0x451806);}[_0x51fc53(0xa9)](_0x238e13,_0x294021){const _0x29bf08=_0x51fc53;var _0x3da9f9,_0x46dcb9;const _0xc4b6c4=this[_0x29bf08(0x13f)]['interceptor'][_0x29bf08(0xd1)](this['_compressMutationService'][_0x29bf08(0xb2)][_0x29bf08(0x26f)]()['COMPRESS_MUTATION_APPLY']);(_0x3da9f9=_0xc4b6c4((_0x238e13==null?void 0x0:_0x238e13[_0x29bf08(0xc7)])||[],null))==null||_0x3da9f9['forEach'](_0x3df3df=>this['_commandService'][_0x29bf08(0xaa)](_0x3df3df['id'],_0x3df3df[_0x29bf08(0x1c8)])),(_0x46dcb9=_0xc4b6c4(_0x294021||[],null))==null||_0x46dcb9[_0x29bf08(0x124)](_0x3fddbf=>this[_0x29bf08(0x113)][_0x29bf08(0xaa)](_0x3fddbf['id'],_0x3fddbf[_0x29bf08(0x1c8)]));}};We=Je([S(0x3,_0x4a7404(_0x44b6b8)),S(0x4,_0x4a7404(D)),S(0x5,_0x4a7404(_0x2c81ea)),S(0x6,_0x4a7404(_0x201091)),S(0x7,_0x4a7404(_0x4d36b1)),S(0x8,_0x3cb271),S(0x9,_0x568418),S(0xa,_0xf8e37a),S(0xb,_0x57bd86),S(0xc,_0x19d484(Xe))],We);let dt=class extends We{constructor(_0x239e45,_0x31f25c,_0x4958bd,_0x1be5c9,_0x4144e9,_0x9729df,_0x22eb3a,_0x576e58,_0x183a2e,_0xc3c177,_0x2d4624,_0x15373c,_0x13c950,_0x44d744,_0x11c0d5,_0x363f57,_0xe2344d){const _0x23e2b0=_0x51fc53;super(_0x239e45,_0x31f25c,_0x4958bd,_0x1be5c9,_0x4144e9,_0x9729df,_0x22eb3a,_0x576e58,_0x13c950,_0x44d744,_0x11c0d5,_0x363f57,_0xe2344d),this[_0x23e2b0(0x1b1)]=_0x239e45,this['type']=_0x31f25c,this[_0x23e2b0(0xf2)]=_0x4958bd,this[_0x23e2b0(0x2a9)]=_0x183a2e,this[_0x23e2b0(0x1dd)]=_0xc3c177,this[_0x23e2b0(0x39f)]=_0x2d4624,this[_0x23e2b0(0x1bf)]=_0x15373c;}[_0x51fc53(0x353)](){const _0x48c16a=_0x51fc53,_0x258bcd=super[_0x48c16a(0x353)]();return _0x258bcd['onTransformIME']=_0x5789eb=>this[_0x48c16a(0x1dd)][_0x48c16a(0x22c)](_0x5789eb),_0x258bcd[_0x48c16a(0x2ef)]=_0x4e928c=>this[_0x48c16a(0x39f)][_0x48c16a(0xc5)](_0x4e928c),_0x258bcd['onSyncEditingCollabCursor']=_0x36ceeb=>this[_0x48c16a(0x1bf)]['syncEditingCollabCursor'](_0x36ceeb),_0x258bcd[_0x48c16a(0x314)]=_0x590aef=>this[_0x48c16a(0x1dd)]['transformRemoteChangeset'](_0x590aef),_0x258bcd;}async['_init'](){const _0x10924b=_0x51fc53,_0x4b142b=await super[_0x10924b(0x380)]();return this[_0x10924b(0x2a9)]['docStateChange$'][_0x10924b(0x2c3)](_0x1603a2(this[_0x10924b(0x200)]))[_0x10924b(0x202)](_0x520386=>{const _0x329d56=_0x10924b;if(_0x520386==null)return;const {unitId:_0x69d44f,redoState:_0x488da1,commandId:_0x5a0485}=_0x520386;if(_0x69d44f!==this['unitID'])return;const _0x57cf4e={'id':_0x5a0485,'type':_0x1b1270['MUTATION'],'params':{'unitId':_0x69d44f,'actions':_0x488da1['actions'],'textRanges':null}};this[_0x329d56(0x1c7)](_0x57cf4e);}),_0x4b142b;}};dt=Je([S(0x3,_0x4a7404(_0x44b6b8)),S(0x4,_0x4a7404(D)),S(0x5,_0x4a7404(_0x2c81ea)),S(0x6,_0x4a7404(_0x201091)),S(0x7,_0x4a7404(_0x4d36b1)),S(0x8,_0x4a7404(_0x47f8d9)),S(0x9,_0x4a7404(Be)),S(0xa,_0x4a7404(ke)),S(0xb,_0x4a7404(Mt)),S(0xc,_0x3cb271),S(0xd,_0x568418),S(0xe,_0xf8e37a),S(0xf,_0x57bd86),S(0x10,_0x19d484(Xe))],dt);let ft=class extends We{constructor(_0x5038e2,_0x44ef1a,_0x262956,_0x2b1775,_0x1242a8,_0x108ecd,_0x476ad3,_0x1bb191,_0x23ceb4,_0x276e50,_0x236953,_0x75f7de,_0x429535,_0x44bebb){const _0x2f954c=_0x51fc53;super(_0x5038e2,_0x44ef1a,_0x262956,_0x2b1775,_0x1242a8,_0x108ecd,_0x476ad3,_0x1bb191,_0x276e50,_0x236953,_0x75f7de,_0x429535,_0x44bebb),this[_0x2f954c(0x1b1)]=_0x5038e2,this[_0x2f954c(0x2cd)]=_0x44ef1a,this[_0x2f954c(0xf2)]=_0x262956,this[_0x2f954c(0x119)]=_0x23ceb4;}[_0x51fc53(0x353)](){const _0x9b3ba3=_0x51fc53,_0x6f5b46=super[_0x9b3ba3(0x353)]();return _0x6f5b46[_0x9b3ba3(0x2ef)]=_0x2605e8=>this['_sheetTransformSelectionsService'][_0x9b3ba3(0xc5)](_0x2605e8),_0x6f5b46;}async[_0x51fc53(0x380)](){const _0xb121fa=_0x51fc53,_0x31fa82=await super['_init']();return this[_0xb121fa(0x294)](this['_commandService'][_0xb121fa(0xb4)]((_0x5f0589,_0x22380a)=>{const _0x26f5c5=_0xb121fa;if(_0x5f0589[_0x26f5c5(0x2cd)]!==_0x1b1270[_0x26f5c5(0x321)]||_0x22380a!=null&&_0x22380a[_0x26f5c5(0xd2)]||_0x22380a!=null&&_0x22380a[_0x26f5c5(0x1f4)])return;const _0x5cfec5=_0x5f0589['params'];if((_0x5cfec5==null?void 0x0:_0x5cfec5[_0x26f5c5(0x2af)])!==this[_0x26f5c5(0x1b1)])return;const _0x285eba=_0x5f0589,_0x499d8d=this[_0x26f5c5(0x13f)]['interceptor'][_0x26f5c5(0xd1)](this[_0x26f5c5(0x13f)]['interceptor']['getInterceptPoints']()[_0x26f5c5(0x9d)])([_0x285eba],null)||[_0x285eba];this['_onLocalMutation'](_0x499d8d[0x0]);})),_0x31fa82;}};ft=Je([S(0x3,_0x4a7404(_0x44b6b8)),S(0x4,_0x4a7404(D)),S(0x5,_0x4a7404(_0x2c81ea)),S(0x6,_0x4a7404(_0x201091)),S(0x7,_0x4a7404(_0x4d36b1)),S(0x8,_0x4a7404(Ve)),S(0x9,_0x3cb271),S(0xa,_0x568418),S(0xb,_0xf8e37a),S(0xc,_0x57bd86),S(0xd,_0x19d484(Xe))],ft);const Zt=[_0x51fc53(0x1b4),_0x51fc53(0xee),_0x51fc53(0x1f7),_0x51fc53(0x398),_0x51fc53(0xf9),_0x51fc53(0x157)];class At extends _0x10a29c{constructor(){const _0x2f803a=_0x51fc53;super(...arguments),l(this,'_assignedColors',new Map()),l(this,_0x2f803a(0x1fd),0x0);}[_0x51fc53(0x33e)](_0x349a9e){const _0x42d247=_0x51fc53;if(this[_0x42d247(0x23c)][_0x42d247(0x16c)](_0x349a9e))return this[_0x42d247(0x23c)]['get'](_0x349a9e);const _0x81c09f=Zt[this[_0x42d247(0x1fd)]];return this[_0x42d247(0x1fd)]=(this[_0x42d247(0x1fd)]+0x1)%Zt['length'],this['_assignedColors'][_0x42d247(0x38f)](_0x349a9e,_0x81c09f),_0x81c09f;}}var Wn=Object[_0x51fc53(0x18f)],Gn=Object['getOwnPropertyDescriptor'],Yn=(_0x42a44f,_0x344411,_0x35fce5,_0x1b1d21)=>{const _0x2ed7d9=_0x51fc53;for(var _0xb21d67=_0x1b1d21>0x1?void 0x0:_0x1b1d21?Gn(_0x344411,_0x35fce5):_0x344411,_0x151a36=_0x42a44f[_0x2ed7d9(0x2c6)]-0x1,_0x2fd955;_0x151a36>=0x0;_0x151a36--)(_0x2fd955=_0x42a44f[_0x151a36])&&(_0xb21d67=(_0x1b1d21?_0x2fd955(_0x344411,_0x35fce5,_0xb21d67):_0x2fd955(_0xb21d67))||_0xb21d67);return _0x1b1d21&&_0xb21d67&&Wn(_0x344411,_0x35fce5,_0xb21d67),_0xb21d67;},ae=(_0x17c992,_0x465f79)=>(_0xc61445,_0x4d00a9)=>_0x465f79(_0xc61445,_0x4d00a9,_0x17c992);const Kn=0x12c,Xn=0x64,Jn=()=>{let _0x2a308a=[],_0x58cd30=!0x1;return _0x2744b5=>{const _0x351a13=_0x5e69;_0x2a308a[_0x351a13(0x19d)](_0x2744b5),_0x58cd30||(_0x58cd30=!0x0,setTimeout(()=>{_0x2a308a['forEach'](_0x1b79b6=>_0x1b79b6()),_0x2a308a=[],_0x58cd30=!0x1;}));};};let gt=class extends _0x521c86{constructor(_0x16267d,_0x5e4917,_0x2c91a4,_0x1899bd,_0x57e804,_0x13c74a,_0x5be64b,_0x7e9100){const _0x41e6dd=_0x51fc53;super(),l(this,_0x41e6dd(0x265),!0x1),l(this,'_init',!0x1),l(this,_0x41e6dd(0x390),new _0x5d7d96(new Map())),l(this,_0x41e6dd(0x123),this[_0x41e6dd(0x390)][_0x41e6dd(0xc8)]()),l(this,_0x41e6dd(0x36f),new _0x5d7d96([])),l(this,_0x41e6dd(0x1c1),this[_0x41e6dd(0x36f)][_0x41e6dd(0x2c3)](_0x4c0f1b(Kn))),l(this,'_updateLocalCursor',_0x507539((_0x5b7588,_0x1a5957)=>{const _0x377ff5=_0x41e6dd,_0x283005={'eventID':_0x1b5c65[_0x377ff5(0x235)],'data':{'unitID':this[_0x377ff5(0x1b1)],'memberID':this[_0x377ff5(0x29c)][_0x377ff5(0x2be)](),'selection':_0x273a62(_0x5b7588,_0x1a5957[_0x377ff5(0x2f5)])}};this[_0x377ff5(0x29c)]['send'](_0x283005,this['unitID']);},Xn)),(this[_0x41e6dd(0x1b1)]=_0x16267d,this['_session']=_0x5e4917,this[_0x41e6dd(0x342)]=_0x2c91a4,this[_0x41e6dd(0x1e7)]=_0x1899bd,this[_0x41e6dd(0x12b)]=_0x57e804,this['_univerInstanceService']=_0x13c74a,this[_0x41e6dd(0x113)]=_0x5be64b,this[_0x41e6dd(0x359)]=_0x7e9100);}get[_0x51fc53(0x129)](){const _0x13eef4=_0x51fc53;return this['_cursorInfo$'][_0x13eef4(0x15e)]();}get[_0x51fc53(0x21a)](){return this['_roomMembers$']['getValue']();}[_0x51fc53(0x232)](){const _0x764b94=_0x51fc53;super['dispose'](),this[_0x764b94(0x390)][_0x764b94(0x275)](new Map()),this['_cursorInfo$'][_0x764b94(0x349)](),this[_0x764b94(0x36f)][_0x764b94(0x275)]([]),this['_roomMembers$'][_0x764b94(0x349)]();}[_0x51fc53(0x191)](){const _0x190c6d=_0x51fc53;this[_0x190c6d(0x380)]||(this[_0x190c6d(0x380)]=!0x0,this['_session'][_0x190c6d(0x334)]['pipe'](_0x1603a2(this[_0x190c6d(0x200)]))[_0x190c6d(0x202)](_0xa5815=>{const _0x2f2f60=_0x190c6d;_0xa5815===_e[_0x2f2f60(0x31f)]?this[_0x2f2f60(0x343)]():this[_0x2f2f60(0xdb)]();}),this[_0x190c6d(0x29c)][_0x190c6d(0x374)][_0x190c6d(0x2c3)](_0x1603a2(this[_0x190c6d(0x200)]))[_0x190c6d(0x202)](_0x523cf3=>{const _0x16d229=_0x190c6d,_0x133b26=_0x523cf3[_0x16d229(0x1ec)];_0x133b26===_0x1b5c65[_0x16d229(0x235)]&&this[_0x16d229(0x291)](_0x523cf3),_0x133b26===_0x1b5c65[_0x16d229(0x312)]&&this[_0x16d229(0x36d)](_0x523cf3);}),this['_onRefRangeChange'](),this[_0x190c6d(0x294)](this[_0x190c6d(0x113)][_0x190c6d(0xb4)](_0x330dd9=>{const _0x50bbe3=_0x190c6d;if(this['_online']&&_0x330dd9['id']===_0x2708b7['id']&&_0x330dd9[_0x50bbe3(0x1c8)][_0x50bbe3(0x2af)]===this['unitID']){const _0x53f812=_0x330dd9[_0x50bbe3(0x1c8)];this[_0x50bbe3(0x35b)](_0x53f812['subUnitId'],_0x53f812[_0x50bbe3(0xf3)][0x0]);}})));}[_0x51fc53(0x291)](_0x493591){const _0x44d83d=_0x51fc53;var _0x40a451,_0x109c58;const {memberID:_0x4d5469,selection:_0x5aeb02}=_0x493591[_0x44d83d(0x94)],{sheetName:_0x4183db,range:_0x44a707}=_0x285859(_0x5aeb02),_0x50dc69={'name':(_0x109c58=(_0x40a451=this[_0x44d83d(0x12b)][_0x44d83d(0xb6)](this[_0x44d83d(0x1b1)],_0x4d5469))==null?void 0x0:_0x40a451[_0x44d83d(0x3a4)])!=null?_0x109c58:_0x44d83d(0x3aa),'range':this['_getMergeRange'](_0x4183db,_0x44a707),'sheetID':_0x4183db,'color':this['_colorAssignService'][_0x44d83d(0x33e)](_0x4d5469),'selection':_0x5aeb02},_0x48b6b4=this[_0x44d83d(0x129)];_0x48b6b4['set'](_0x4d5469,_0x50dc69),this[_0x44d83d(0x390)]['next'](_0x48b6b4);}[_0x51fc53(0x36d)](_0x47bb2e){const _0xaedcd7=_0x51fc53,{memberID:_0x2ddfe4}=_0x47bb2e[_0xaedcd7(0x94)],_0x2b0809=this[_0xaedcd7(0x129)];_0x2b0809['delete'](_0x2ddfe4),this['_cursorInfo$'][_0xaedcd7(0x275)](_0x2b0809);}[_0x51fc53(0x118)](_0x5f42f7,_0x5e0365){const _0x2129a6=_0x51fc53;var _0x386826,_0x5f3d3e;const _0x5435b4=(_0x5f3d3e=(_0x386826=this[_0x2129a6(0xa0)]['getUniverSheetInstance'](this['unitID']))==null?void 0x0:_0x386826[_0x2129a6(0x3a9)](_0x5f42f7))==null?void 0x0:_0x5f3d3e[_0x2129a6(0x166)]();return(_0x5435b4==null?void 0x0:_0x5435b4[_0x2129a6(0x1e1)](_0x1bb7b1=>_0x1fb77c['contains'](_0x1bb7b1,_0x5e0365)))||_0x5e0365;}[_0x51fc53(0x30c)](){const _0x4b2589=_0x51fc53,_0x449b3f=new _0x3ab8a8(),_0x1ad303=Jn(),_0x4e123a=()=>{const _0x5f3655=_0x5e69;_0x449b3f['dispose']();const _0x6a4240=(_0x525892,_0x46c308,_0x55faac,_0xb0be62)=>{const _0x13c14c=_0x5e69;let _0x532400=[];switch(_0x525892['id']){case _0x4d5ced['DeleteRangeMoveLeftCommandId']:{_0x532400=_0x3ca06c(_0x525892,_0xb0be62);break;}case _0x4d5ced[_0x13c14c(0x377)]:{_0x532400=_0x5c5378(_0x525892,_0xb0be62);break;}case _0x4d5ced['InsertColCommandId']:{_0x532400=_0x3b1ac8(_0x525892,_0xb0be62);break;}case _0x4d5ced[_0x13c14c(0x37f)]:{_0x532400=_0x268953(_0x525892,_0xb0be62);break;}case _0x4d5ced[_0x13c14c(0x138)]:{_0x532400=_0x4c1408(_0x525892,_0xb0be62);break;}case _0x4d5ced['InsertRowCommandId']:{_0x532400=_0x254106(_0x525892,_0xb0be62);break;}case _0x4d5ced[_0x13c14c(0x20d)]:{_0x532400=_0x511a99(_0x525892,_0xb0be62);break;}case _0x4d5ced[_0x13c14c(0x357)]:{_0x532400=_0x122c4c(_0x525892,_0xb0be62);break;}case _0x4d5ced['RemoveRowCommandId']:{_0x532400=_0x1d7ce0(_0x525892,_0xb0be62);break;}}const _0x2f0e50=_0x3711ba(_0x532400,_0xb0be62),_0x1e8bc9=this['cursorInfo'][_0x13c14c(0x151)](_0x46c308);if(_0x1e8bc9&&_0x2f0e50){const _0x2522e8={..._0x1e8bc9,'range':_0x2f0e50};this[_0x13c14c(0x129)][_0x13c14c(0x38f)](_0x46c308,_0x2522e8),_0x1ad303(()=>{const _0x2aa25a=_0x13c14c,_0x5293f9=this[_0x2aa25a(0x359)]['registerRefRange'](_0x2f0e50,_0x56b6cb=>(_0x5293f9[_0x2aa25a(0x232)](),_0x6a4240(_0x56b6cb,_0x46c308,_0x55faac,_0x2f0e50)));_0x449b3f[_0x2aa25a(0xe7)](_0x5293f9);});}return{'redos':[],'undos':[]};};this[_0x5f3655(0x129)]['forEach']((_0x12ea26,_0x3738d5)=>{const _0x554688=_0x5f3655,{range:_0x32b9e6,sheetID:_0x43ba2a}=_0x12ea26,_0x5720fa=this[_0x554688(0x359)]['registerRefRange'](_0x32b9e6,_0x1a27ff=>(_0x5720fa[_0x554688(0x232)](),_0x6a4240(_0x1a27ff,_0x3738d5,_0x43ba2a,_0x32b9e6)));_0x449b3f['add'](_0x5720fa);});};this['disposeWithMe'](_0x2f2f24(this['_cursorInfo$'][_0x4b2589(0x202)](()=>{_0x4e123a();})));}['_toggleOnline'](){const _0x12b419=_0x51fc53;var _0x41d9e4,_0x50020e;if(this['_online']=!0x0,((_0x41d9e4=this['_univerInstanceService'][_0x12b419(0x2ed)]())==null?void 0x0:_0x41d9e4[_0x12b419(0x244)]())!==this[_0x12b419(0x1b1)])return;const _0x420067=(_0x50020e=this[_0x12b419(0x342)][_0x12b419(0x151)](_0x5c112f)['getSelections']())==null?void 0x0:_0x50020e[0x0],_0x4d0d62=this[_0x12b419(0xa0)][_0x12b419(0x1c4)](_0x3504ec[_0x12b419(0x351)])[_0x12b419(0x1e3)]();_0x420067&&_0x4d0d62&&this[_0x12b419(0x35b)](_0x4d0d62[_0x12b419(0x1ef)](),_0x420067);}['_toggleOffline'](){this['_online']=!0x1;}};gt=Yn([ae(0x2,_0x4a7404(_0x44b6b8)),ae(0x3,_0x4a7404(At)),ae(0x4,_0x4a7404(ee)),ae(0x5,_0x373907),ae(0x6,_0x568418),ae(0x7,_0x4a7404(_0x4cc8b2))],gt);var zn=Object[_0x51fc53(0x18f)],Zn=Object[_0x51fc53(0x340)],qn=(_0x2eda3c,_0x5beead,_0x42fed4,_0x904a0f)=>{for(var _0x1dc33b=_0x904a0f>0x1?void 0x0:_0x904a0f?Zn(_0x5beead,_0x42fed4):_0x5beead,_0x438064=_0x2eda3c['length']-0x1,_0x4553c0;_0x438064>=0x0;_0x438064--)(_0x4553c0=_0x2eda3c[_0x438064])&&(_0x1dc33b=(_0x904a0f?_0x4553c0(_0x5beead,_0x42fed4,_0x1dc33b):_0x4553c0(_0x1dc33b))||_0x1dc33b);return _0x904a0f&&_0x1dc33b&&zn(_0x5beead,_0x42fed4,_0x1dc33b),_0x1dc33b;},q=(_0x3718ed,_0x3ac559)=>(_0x19d97a,_0x46bb13)=>_0x3ac559(_0x19d97a,_0x46bb13,_0x3718ed);const Qn=0x12c,er=0x64;let mt=class extends _0x521c86{constructor(_0x4d4d77,_0x504630,_0x1bf532,_0x5e5237,_0x85fb5f,_0x25d8f4,_0xa3212,_0x12fe7f,_0x7c7fba){const _0x11856e=_0x51fc53;super(),l(this,_0x11856e(0x265),!0x1),l(this,'_init',!0x1),l(this,_0x11856e(0x390),new _0x5d7d96(new Map())),l(this,_0x11856e(0x123),this['_cursorInfo$'][_0x11856e(0xc8)]()),l(this,_0x11856e(0x36f),new _0x5d7d96([])),l(this,'roomMembers$',this[_0x11856e(0x36f)][_0x11856e(0x2c3)](_0x4c0f1b(Qn))),l(this,_0x11856e(0x35b),_0x507539(_0x116c0b=>{const _0x13f293=_0x11856e,_0x4d2825={'eventID':_0x1b5c65[_0x13f293(0x235)],'data':{'unitID':this[_0x13f293(0x1b1)],'memberID':this[_0x13f293(0x29c)][_0x13f293(0x2be)](),'selection':Ds(_0x116c0b)}};this[_0x13f293(0x29c)][_0x13f293(0x39e)](_0x4d2825,this[_0x13f293(0x1b1)]);},er)),(this['unitID']=_0x4d4d77,this[_0x11856e(0x29c)]=_0x504630,this[_0x11856e(0x342)]=_0x1bf532,this[_0x11856e(0x1e7)]=_0x5e5237,this['_memberService']=_0x85fb5f,this[_0x11856e(0x26b)]=_0x25d8f4,this[_0x11856e(0x102)]=_0xa3212,this[_0x11856e(0xa0)]=_0x12fe7f,this[_0x11856e(0x113)]=_0x7c7fba);}get[_0x51fc53(0x129)](){return this['_cursorInfo$']['getValue']();}get[_0x51fc53(0x21a)](){const _0x252811=_0x51fc53;return this['_roomMembers$'][_0x252811(0x15e)]();}[_0x51fc53(0x232)](){const _0x470fab=_0x51fc53;super['dispose'](),this['_cursorInfo$']['next'](new Map()),this[_0x470fab(0x390)][_0x470fab(0x349)](),this[_0x470fab(0x36f)][_0x470fab(0x275)]([]),this[_0x470fab(0x36f)][_0x470fab(0x349)]();}[_0x51fc53(0x191)](){const _0x4ac27a=_0x51fc53;this['_init']||(this[_0x4ac27a(0x380)]=!0x0,this[_0x4ac27a(0x29c)][_0x4ac27a(0x334)]['pipe'](_0x1603a2(this['dispose$']))[_0x4ac27a(0x202)](_0x20bf77=>{const _0x59397e=_0x4ac27a;_0x20bf77===_e[_0x59397e(0x31f)]?this[_0x59397e(0x343)]():this[_0x59397e(0xdb)]();}),this[_0x4ac27a(0x29c)][_0x4ac27a(0x374)]['pipe'](_0x1603a2(this[_0x4ac27a(0x200)]))[_0x4ac27a(0x202)](_0x102487=>{const _0xae4603=_0x4ac27a,_0xef96f4=_0x102487[_0xae4603(0x1ec)];_0xef96f4===_0x1b5c65[_0xae4603(0x235)]&&this[_0xae4603(0x291)](_0x102487),_0xef96f4===_0x1b5c65[_0xae4603(0x312)]&&this['_onCursorDelete'](_0x102487);}),this[_0x4ac27a(0x294)](this['_commandService'][_0x4ac27a(0xb4)](_0x9fad96=>{const _0x10f041=_0x4ac27a,_0x15eea9=_0x9fad96[_0x10f041(0x1c8)];_0x15eea9!=null&&this[_0x10f041(0x265)]&&_0x9fad96['id']===_0xf9fdf8['id']&&_0x15eea9[_0x10f041(0x2af)]===this[_0x10f041(0x1b1)]&&_0x15eea9[_0x10f041(0x3b7)]===!0x1&&this[_0x10f041(0x35b)](_0x15eea9[_0x10f041(0x397)]);})),this['_syncEditingCollabCursorService']['collabCursorState$'][_0x4ac27a(0x2c3)](_0x1603a2(this['dispose$']))['subscribe'](_0x38f165=>{const _0xa92e70=_0x4ac27a;if((_0x38f165==null?void 0x0:_0x38f165[_0xa92e70(0x1b1)])!==this['unitID'])return;const _0x48bb18={'eventID':_0x1b5c65[_0xa92e70(0x235)],'data':_0x38f165};this['_onCursorUpdate'](_0x48bb18);}),this[_0x4ac27a(0x294)](this[_0x4ac27a(0x113)]['onCommandExecuted'](_0x2c17ff=>{const _0x10a3ce=_0x4ac27a;if(_0x2c17ff[_0x10a3ce(0x1c8)]==null)return;const _0x28666f=_0x2c17ff[_0x10a3ce(0x1c8)];if(_0x2c17ff['id']!==_0x47707c['id']||_0x28666f[_0x10a3ce(0x2af)]!==this[_0x10a3ce(0x1b1)])return;const _0x5ccb40={'id':'doc.mutation.rich-text-editing','params':_0x28666f},_0x975ae6=this[_0x10a3ce(0x129)];for(const [_0xb58826,_0x502c2a]of _0x975ae6){const _0xd06274={'id':_0x10a3ce(0x152),'params':{'unitId':this[_0x10a3ce(0x1b1)],'actions':null,'textRanges':_0x502c2a['ranges']}},_0x4d3d95=this[_0x10a3ce(0x102)][_0x10a3ce(0x259)](_0x5ccb40,_0xd06274,!0x1);if(_0xcc662a(_0x4d3d95))throw _0x4d3d95[_0x10a3ce(0x24d)];_0x975ae6[_0x10a3ce(0x38f)](_0xb58826,{..._0x502c2a,'ranges':_0x4d3d95[_0x10a3ce(0x30f)][_0x10a3ce(0x1c8)]['textRanges']});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x975ae6);});})));}[_0x51fc53(0x291)](_0x449117){const _0x1ce48e=_0x51fc53;var _0x445fed,_0x1e45c5;const {memberID:_0xa5bd47,selection:_0x5e2fd4}=_0x449117[_0x1ce48e(0x94)],_0x2965b5=yn(_0x5e2fd4),_0x3dff43=(_0x1e45c5=(_0x445fed=this[_0x1ce48e(0x12b)][_0x1ce48e(0xb6)](this[_0x1ce48e(0x1b1)],_0xa5bd47))==null?void 0x0:_0x445fed[_0x1ce48e(0x3a4)])!=null?_0x1e45c5:_0x1ce48e(0x3aa),_0x408f91={'color':this[_0x1ce48e(0x1e7)][_0x1ce48e(0x33e)](_0xa5bd47),'name':_0x3dff43,'ranges':_0x2965b5},_0x3fc317=this[_0x1ce48e(0x129)];_0x3fc317[_0x1ce48e(0x38f)](_0xa5bd47,_0x408f91),this[_0x1ce48e(0x390)][_0x1ce48e(0x275)](_0x3fc317);}[_0x51fc53(0x36d)](_0x8ffa4a){const _0x1d09ec=_0x51fc53,{memberID:_0x17612f}=_0x8ffa4a[_0x1d09ec(0x94)],_0x5651fd=this[_0x1d09ec(0x129)];_0x5651fd[_0x1d09ec(0x209)](_0x17612f),this[_0x1d09ec(0x390)][_0x1d09ec(0x275)](_0x5651fd);}[_0x51fc53(0x343)](){const _0x257fc0=_0x51fc53;var _0x396b0c;if(this[_0x257fc0(0x265)]=!0x0,((_0x396b0c=this[_0x257fc0(0xa0)][_0x257fc0(0x2ed)]())==null?void 0x0:_0x396b0c[_0x257fc0(0x244)]())!==this[_0x257fc0(0x1b1)])return;const _0x7489c=this[_0x257fc0(0x342)][_0x257fc0(0x151)](_0x58dacd)[_0x257fc0(0x287)](),_0x19fa19=_0x7489c==null?void 0x0:_0x7489c[_0x257fc0(0xab)](_0x2646e0);Array[_0x257fc0(0x34e)](_0x19fa19)&&_0x19fa19[_0x257fc0(0x2c6)]>0x0&&this[_0x257fc0(0x35b)](_0x19fa19);}[_0x51fc53(0xdb)](){this['_online']=!0x1;}};mt=qn([q(0x2,_0x4a7404(_0x44b6b8)),q(0x3,_0x4a7404(At)),q(0x4,_0x4a7404(ee)),q(0x5,_0x4a7404(Mt)),q(0x6,_0x425e9b),q(0x7,_0x373907),q(0x8,_0x568418)],mt);var tr=Object[_0x51fc53(0x18f)],sr=Object[_0x51fc53(0x340)],ir=(_0x2174f9,_0x114a2f,_0x2cca36,_0x328a34)=>{const _0x22bae8=_0x51fc53;for(var _0x24ea18=_0x328a34>0x1?void 0x0:_0x328a34?sr(_0x114a2f,_0x2cca36):_0x114a2f,_0x41aaf8=_0x2174f9[_0x22bae8(0x2c6)]-0x1,_0x38e70e;_0x41aaf8>=0x0;_0x41aaf8--)(_0x38e70e=_0x2174f9[_0x41aaf8])&&(_0x24ea18=(_0x328a34?_0x38e70e(_0x114a2f,_0x2cca36,_0x24ea18):_0x38e70e(_0x24ea18))||_0x24ea18);return _0x328a34&&_0x24ea18&&tr(_0x114a2f,_0x2cca36,_0x24ea18),_0x24ea18;},st=(_0x49ac3c,_0xdd4983)=>(_0x1336a4,_0x20ad2a)=>_0xdd4983(_0x1336a4,_0x20ad2a,_0x49ac3c);let ue=class extends _0x521c86{constructor(_0x48ff91,_0xbffab7,_0x3769f3){const _0x396468=_0x51fc53;super(),l(this,_0x396468(0x2a3),new Map()),l(this,_0x396468(0x36b),new _0x5da41e()),(this[_0x396468(0xa0)]=_0x48ff91,this[_0x396468(0x342)]=_0xbffab7,this['_collabSessionService']=_0x3769f3,this[_0x396468(0x380)]());}[_0x51fc53(0x232)](){const _0x3399af=_0x51fc53;super[_0x3399af(0x232)](),this['_entityInit$'][_0x3399af(0x349)](),this[_0x3399af(0x2a3)][_0x3399af(0x124)](_0x29f176=>_0x29f176['dispose']());}[_0x51fc53(0x2bc)](_0x3456da){const _0x5e39eb=_0x51fc53;return this[_0x5e39eb(0x2a3)]['has'](_0x3456da)?this[_0x5e39eb(0x2a3)][_0x5e39eb(0x151)](_0x3456da)['cursorInfo$']:this['_entityInit$'][_0x5e39eb(0x2c3)](_0x5f5348(_0x4a906d=>_0x4a906d[_0x5e39eb(0x1b1)]===_0x3456da),_0x8b3a32(_0x35996a=>_0x35996a[_0x5e39eb(0x123)]));}['_init'](){const _0x3662cf=_0x51fc53;this[_0x3662cf(0xa0)][_0x3662cf(0x26e)](_0x3504ec[_0x3662cf(0x351)])[_0x3662cf(0x2c3)](_0x1603a2(this[_0x3662cf(0x200)]))['subscribe'](async _0x522fad=>{const _0x81872f=_0x3662cf,_0xffac7e=_0x522fad[_0x81872f(0x244)](),_0x3a10df=await this[_0x81872f(0x2dc)](_0xffac7e);this[_0x81872f(0x36b)][_0x81872f(0x275)](_0x3a10df),this['_entities'][_0x81872f(0x38f)](_0xffac7e,_0x3a10df);}),this[_0x3662cf(0xa0)][_0x3662cf(0x26e)](_0x3504ec['UNIVER_DOC'])[_0x3662cf(0x2c3)](_0x1603a2(this['dispose$']))[_0x3662cf(0x2c3)](_0x5f5348(_0x36230e=>!_0x36230e['getUnitId']()[_0x3662cf(0x30e)]('__')))[_0x3662cf(0x202)](async _0x23d05a=>{const _0x5f3def=_0x3662cf,_0x1a4177=_0x23d05a['getUnitId'](),_0x2f73b1=await this[_0x5f3def(0x2f4)](_0x1a4177);this[_0x5f3def(0x36b)]['next'](_0x2f73b1),this[_0x5f3def(0x2a3)][_0x5f3def(0x38f)](_0x1a4177,_0x2f73b1);}),_0x124107(this[_0x3662cf(0xa0)][_0x3662cf(0x280)](_0x3504ec[_0x3662cf(0x32c)]),this['_univerInstanceService'][_0x3662cf(0x280)](_0x3504ec[_0x3662cf(0x351)]))['pipe'](_0x1603a2(this[_0x3662cf(0x200)]))['subscribe'](_0x19fcc4=>{const _0x424b2b=_0x3662cf,_0x1de6b9=_0x19fcc4[_0x424b2b(0x244)](),_0xd23773=this[_0x424b2b(0x2a3)]['get'](_0x1de6b9);_0xd23773&&(_0xd23773['dispose'](),this['_entities']['delete'](_0x1de6b9));});}async[_0x51fc53(0x2dc)](_0x2d916f){const _0x1d3b00=_0x51fc53,_0x5d6148=await this[_0x1d3b00(0x1b2)][_0x1d3b00(0x1ad)](_0x2d916f),_0x230c34=this[_0x1d3b00(0x342)][_0x1d3b00(0x3ba)](gt,_0x2d916f,_0x5d6148);return _0x230c34[_0x1d3b00(0x191)](),_0x230c34;}async[_0x51fc53(0x2f4)](_0x132616){const _0x1c6fb5=_0x51fc53,_0x580c56=await this['_collabSessionService'][_0x1c6fb5(0x1ad)](_0x132616),_0x4bff1f=this['_injector'][_0x1c6fb5(0x3ba)](mt,_0x132616,_0x580c56);return _0x4bff1f[_0x1c6fb5(0x191)](),_0x4bff1f;}};ue=ir([_0x47ad3a(_0x34068b[_0x51fc53(0x11d)],ue),st(0x0,_0x373907),st(0x1,_0x4a7404(_0x44b6b8)),st(0x2,_0x4a7404(Re))],ue);const Oe=0x14,qt=0xc8,it=0x4,nr=0x5;function rr(_0x535e5c,_0x7f9b40){const _0xbb9818=_0x51fc53;let {radius:_0x59ee42,width:_0x182805,height:_0x5840b4}=_0x7f9b40;_0x59ee42=_0x59ee42!=null?_0x59ee42:0x0,_0x182805=_0x182805!=null?_0x182805:0x1e,_0x5840b4=_0x5840b4!=null?_0x5840b4:0x1e;let _0xc9c179=0x0,_0x27d5e3=0x0,_0x1b4264=0x0;_0xc9c179=_0x27d5e3=_0x1b4264=Math[_0xbb9818(0x385)](_0x59ee42,_0x182805/0x2,_0x5840b4/0x2),_0x535e5c[_0xbb9818(0x25f)](),_0x535e5c[_0xbb9818(0xfe)](_0xc9c179,0x0),_0x535e5c[_0xbb9818(0x182)](_0x182805-_0x27d5e3,0x0),_0x535e5c[_0xbb9818(0x159)](_0x182805-_0x27d5e3,_0x27d5e3,_0x27d5e3,Math['PI']*0x3/0x2,0x0,!0x1),_0x535e5c[_0xbb9818(0x182)](_0x182805,_0x5840b4-_0x1b4264),_0x535e5c['arc'](_0x182805-_0x1b4264,_0x5840b4-_0x1b4264,_0x1b4264,0x0,Math['PI']/0x2,!0x1),_0x535e5c[_0xbb9818(0x182)](0x0,_0x5840b4),_0x535e5c[_0xbb9818(0x182)](0x0,_0xc9c179),_0x535e5c['arc'](_0xc9c179,_0xc9c179,_0xc9c179,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x535e5c[_0xbb9818(0x153)](),_0x7f9b40[_0xbb9818(0x29f)]&&(_0x535e5c[_0xbb9818(0x1f2)](),_0x535e5c[_0xbb9818(0x336)]=_0x7f9b40[_0xbb9818(0x29f)],_0x7f9b40[_0xbb9818(0x18d)]===_0xbb9818(0x25a)?_0x535e5c[_0xbb9818(0x29f)](_0xbb9818(0x25a)):_0x535e5c[_0xbb9818(0x29f)](),_0x535e5c[_0xbb9818(0x261)]());}class ze extends _0xe13222{constructor(_0x340efa,_0x4920dd){const _0x414ca2=_0x51fc53;super(_0x340efa,_0x4920dd),l(this,_0x414ca2(0x35d)),l(this,_0x414ca2(0x248)),(this[_0x414ca2(0x35d)]=_0x4920dd==null?void 0x0:_0x4920dd[_0x414ca2(0x35d)],this['text']=_0x4920dd==null?void 0x0:_0x4920dd[_0x414ca2(0x248)]);}static['drawWith'](_0x535c8b,_0x3f9887){const _0x3b3063=_0x51fc53,{text:_0x2d2828,color:_0x93ea6e}=_0x3f9887;_0x535c8b['save'](),_0x535c8b[_0x3b3063(0x127)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x354148=_0x535c8b[_0x3b3063(0x165)](_0x2d2828)[_0x3b3063(0x17d)],_0x12cbce=Math[_0x3b3063(0x385)](_0x354148+0x2*it,qt);rr(_0x535c8b,{'height':Oe,'radius':0x4,'width':_0x12cbce,'fill':_0x93ea6e,'evented':!0x1}),_0x535c8b[_0x3b3063(0x336)]='#FFF';const _0x30e33a=it,_0x168a59=Oe-nr,_0x43f098=qt-0x2*it;if(_0x354148>_0x43f098){let _0x35c391='',_0xfee248=0x0;for(const _0x125aaf of _0x2d2828){const _0xbeede7=_0x535c8b[_0x3b3063(0x165)](_0x125aaf)['width'];if(_0xfee248+_0xbeede7<=_0x43f098-_0x535c8b[_0x3b3063(0x165)]('...')[_0x3b3063(0x17d)])_0x35c391+=_0x125aaf,_0xfee248+=_0xbeede7;else{_0x35c391+=_0x3b3063(0x229);break;}}_0x535c8b['fillText'](_0x35c391,_0x30e33a,_0x168a59);}else _0x535c8b[_0x3b3063(0x285)](_0x2d2828,_0x30e33a,_0x168a59);_0x535c8b[_0x3b3063(0x261)]();}[_0x51fc53(0x2e3)](_0x1d08fc){ze['drawWith'](_0x1d08fc,this);}}const or=0x1,ar=1.5;class cr extends _0xe13222{constructor(_0x3353aa,_0x256d29){const _0x672f77=_0x51fc53;super(_0x3353aa,_0x256d29),l(this,_0x672f77(0xa7)),l(this,'_hovered',!0x1),l(this,_0x672f77(0x1f3)),l(this,_0x672f77(0x27b),''),l(this,_0x672f77(0x3a7),_0x672f77(0x207)),(_0x256d29&&this['setShapeProps'](_0x256d29),this['onPointerEnter$'][_0x672f77(0x2d7)](()=>this['setShapeProps']({'hovered':!0x0})),this['onPointerLeave$']['subscribeEvent'](()=>this[_0x672f77(0x2d8)]({'hovered':!0x1})));}[_0x51fc53(0x2d8)](_0x5c52f4){const _0xd40927=_0x51fc53;var _0x438ea9,_0x324dd8,_0xa989fc,_0x1e5d03,_0xdb1914;this[_0xd40927(0xa7)]=(_0x438ea9=_0x5c52f4['color'])!=null?_0x438ea9:this[_0xd40927(0xa7)],this[_0xd40927(0xd6)]=(_0x324dd8=_0x5c52f4[_0xd40927(0x150)])!=null?_0x324dd8:this['_hovered'],this[_0xd40927(0x1f3)]=(_0xa989fc=_0x5c52f4[_0xd40927(0x2f5)])!=null?_0xa989fc:this[_0xd40927(0x1f3)],this['_name']=(_0x1e5d03=_0x5c52f4[_0xd40927(0x3a4)])!=null?_0x1e5d03:this['_name'],this[_0xd40927(0x3a7)]=(_0xdb1914=_0x5c52f4[_0xd40927(0x289)])!=null?_0xdb1914:this[_0xd40927(0x3a7)],this[_0xd40927(0x177)]({'width':_0x5c52f4[_0xd40927(0x17d)],'height':_0x5c52f4[_0xd40927(0x28e)]});}[_0x51fc53(0x8e)](_0x31028a){const _0x55721=_0x51fc53,{row:_0x522b40,column:_0x57e37f}=_0x31028a;if(_0x522b40>=this[_0x55721(0x1f3)][_0x55721(0x172)]&&_0x522b40<=this[_0x55721(0x1f3)][_0x55721(0xbf)]&&_0x57e37f>=this[_0x55721(0x1f3)][_0x55721(0x372)]&&_0x57e37f<=this[_0x55721(0x1f3)]['endColumn']){this[_0x55721(0x2d8)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x51fc53(0x186)](_0x291167){return!0x1;}[_0x51fc53(0x2e3)](_0x8cd591){const _0x2f7fe1=_0x51fc53;_0xbeb8e4[_0x2f7fe1(0x2db)](_0x8cd591,{'width':this['width'],'height':this[_0x2f7fe1(0x28e)],'strokeWidth':ar,'stroke':this[_0x2f7fe1(0xa7)],'evented':!0x1}),this[_0x2f7fe1(0xd6)]&&(_0x8cd591[_0x2f7fe1(0x1f2)](),_0x8cd591['transform'](0x1,0x0,0x0,0x1,this[_0x2f7fe1(0x17d)],this[_0x2f7fe1(0x3a7)]==='bottom'?0x0:-Oe),ze[_0x2f7fe1(0x2db)](_0x8cd591,{'text':this[_0x2f7fe1(0x27b)],'color':this['_color']}),_0x8cd591[_0x2f7fe1(0x261)]());}}var hr=Object[_0x51fc53(0x18f)],lr=Object['getOwnPropertyDescriptor'],_r=(_0x1fbf33,_0x5116ed,_0x223ae4,_0xc060fd)=>{for(var _0x4f2877=_0xc060fd>0x1?void 0x0:_0xc060fd?lr(_0x5116ed,_0x223ae4):_0x5116ed,_0x1139ae=_0x1fbf33['length']-0x1,_0x3068d1;_0x1139ae>=0x0;_0x1139ae--)(_0x3068d1=_0x1fbf33[_0x1139ae])&&(_0x4f2877=(_0xc060fd?_0x3068d1(_0x5116ed,_0x223ae4,_0x4f2877):_0x3068d1(_0x4f2877))||_0x4f2877);return _0xc060fd&&_0x4f2877&&hr(_0x5116ed,_0x223ae4,_0x4f2877),_0x4f2877;},Me=(_0x8da0eb,_0x1c16b9)=>(_0x3312c8,_0x2ea4ec)=>_0x1c16b9(_0x3312c8,_0x2ea4ec,_0x8da0eb);const ur=0x1389;let $e=class extends _0x521c86{constructor(_0x43d546,_0x57d2ff,_0x55fefa,_0x1e6a10){const _0xf4fce9=_0x51fc53;super(),l(this,'_cursors',new Set()),l(this,'_lastPointer',null),(this['_collabCursorController']=_0x43d546,this['_univerInstanceService']=_0x57d2ff,this[_0xf4fce9(0x27d)]=_0x55fefa,this[_0xf4fce9(0x16b)]=_0x1e6a10,this['_init']());}get['_sheetSkeletonManagerService'](){const _0x299fa8=_0x51fc53;return this[_0x299fa8(0x27d)][_0x299fa8(0x308)](this[_0x299fa8(0xa0)][_0x299fa8(0x1c4)](_0x3504ec[_0x299fa8(0x351)])['getUnitId']())[_0x299fa8(0xd9)](_0x358cc7);}get[_0x51fc53(0x8a)](){const _0x697036=_0x51fc53;return this['_univerInstanceService'][_0x697036(0x1c4)](_0x3504ec[_0x697036(0x351)])[_0x697036(0x244)]();}[_0x51fc53(0x380)](){const _0x339dc1=_0x51fc53;this[_0x339dc1(0x395)]['currentSkeleton$'][_0x339dc1(0x2c3)](_0x430c3c(this[_0x339dc1(0x200)]),_0xb49a6c(_0x26becb=>{const _0x28a310=_0x339dc1;if(_0x26becb){const _0x519ce9=_0x26becb[_0x28a310(0x10b)];return _0x73b353(this[_0x28a310(0x84)][_0x28a310(0x2bc)](this[_0x28a310(0x8a)]),this['_themeService'][_0x28a310(0x1a7)])[_0x28a310(0x2c3)](_0x1db2aa(([_0x15e3ad,_0x5c2de4])=>{const _0x1cf9f2=_0x28a310,_0x16c63b=new Map();return _0x15e3ad[_0x1cf9f2(0x124)]((_0x43ce0e,_0x342e24)=>{const _0x53c782=_0x1cf9f2;if(_0x43ce0e[_0x53c782(0x268)]===_0x519ce9){const _0x569709={..._0x43ce0e};_0x569709['color']=_0x5c2de4[_0x43ce0e[_0x53c782(0x35d)]],_0x16c63b[_0x53c782(0x38f)](_0x342e24,_0x569709);}}),{'skeleton':_0x26becb,'cursors':_0x16c63b};}));}return _0xdadc8c({'skeleton':null,'cursors':new Map()});}))[_0x339dc1(0x202)](({skeleton:_0x37d754,cursors:_0x5286eb})=>{const _0x401e8f=_0x339dc1;this[_0x401e8f(0xb9)](),_0x37d754&&this['_updateCollabCursors'](_0x37d754,_0x5286eb);}),this[_0x339dc1(0x395)][_0x339dc1(0x391)]['subscribe'](_0x308078=>{const _0x42689b=_0x339dc1;if(_0x308078==null)return;const {skeleton:_0x41ea67}=_0x308078,_0xe670e6=this[_0x42689b(0x27d)][_0x42689b(0x308)](this['_unitId']),{scene:_0x573c37}=_0xe670e6;_0x573c37[_0x42689b(0x206)][_0x42689b(0x2d7)](_0x507539(_0x4533b8=>{const _0x4a6fd7=_0x42689b;var _0x5d0432,_0x4d553b;const {offsetX:_0x5478a3,offsetY:_0x2db033}=_0x4533b8,{x:_0x17f3b7,y:_0x1f7907}=_0x573c37['getRelativeCoord'](_0x44f5c0['FromArray']([_0x5478a3,_0x2db033])),{scaleX:_0x17cc86,scaleY:_0x12b64d}=_0x573c37[_0x4a6fd7(0x242)](),_0x36fce9=_0x573c37[_0x4a6fd7(0xb0)](_0x1940ad['VIEW_MAIN']),_0x21fb64=_0x573c37['getScrollXYByRelativeCoords'](_0x44f5c0[_0x4a6fd7(0x17e)]([_0x17f3b7,_0x1f7907]),_0x36fce9),_0x53dbea=_0x41ea67[_0x4a6fd7(0xce)](_0x5478a3,_0x2db033,_0x17cc86,_0x12b64d,_0x21fb64);((_0x5d0432=this[_0x4a6fd7(0x1a4)])==null?void 0x0:_0x5d0432['column'])===_0x53dbea[_0x4a6fd7(0x1d4)]&&((_0x4d553b=this[_0x4a6fd7(0x1a4)])==null?void 0x0:_0x4d553b[_0x4a6fd7(0x122)])===_0x53dbea[_0x4a6fd7(0x122)]||this[_0x4a6fd7(0xd3)]['forEach'](_0x4057c7=>{_0x4057c7['onMouseMove'](_0x53dbea);});},0x64));});}[_0x51fc53(0xc4)](_0x2fbfa7,_0xb11876){const _0x58da8e=_0x51fc53;var _0x3059d4;const _0x5349a6=(_0x3059d4=this[_0x58da8e(0x395)]['getCurrent']())==null?void 0x0:_0x3059d4['skeleton'];if(!_0x5349a6)return;const _0x40b704=this['_getSheetObject']();if(!_0x40b704)return;this[_0x58da8e(0xd3)][_0x58da8e(0x124)](_0x317dee=>{const _0x203073=_0x58da8e;_0x317dee[_0x203073(0x87)]();});const {scene:_0x219eb3}=_0x40b704,_0x27bc5f=dr(Array[_0x58da8e(0x17c)](_0xb11876[_0x58da8e(0x121)]()))['map'](_0x32bdd9=>{const _0x3b1a7d=_0x58da8e,{color:_0x231419,range:_0x4df615,name:_0x4a67bb,selection:_0x18dfde,sheetID:_0x30322f}=_0x32bdd9,{startColumn:_0x19e03b,startRow:_0x143db8,endColumn:_0x1fcb35,endRow:_0x263bf5}=_0x4df615,_0x1853f5=_0x35114e(_0x143db8,_0x19e03b,_0x219eb3,_0x5349a6),_0x5e7572=_0x35114e(_0x263bf5,_0x1fcb35,_0x219eb3,_0x5349a6),{columnHeaderHeightAndMarginTop:_0x27de2b}=_0x5349a6,{startX:_0x4c30df,startY:_0x3497a0}=_0x1853f5,{endX:_0x1ed194,endY:_0x343bd0}=_0x5e7572,_0x2e394a=_0x1ed194-_0x4c30df,_0x405997=_0x343bd0-_0x3497a0,_0x5e244a={'labelPosition':_0x3497a0-_0x27de2b>=Oe?_0x3b1a7d(0x207):_0x3b1a7d(0x15f),'sheetID':_0x30322f,'range':_0x4df615,'color':_0x231419,'name':_0x4a67bb,'selection':_0x18dfde,'left':_0x4c30df,'top':_0x3497a0,'width':_0x2e394a,'height':_0x405997,'evented':!0x1,'zIndex':ur};return new cr(_0x4a67bb,_0x5e244a);});_0x219eb3[_0x58da8e(0x2d2)](_0x27bc5f,or),this[_0x58da8e(0xd3)]=new Set(_0x27bc5f);}['_removeCollabCursors'](){const _0xfe6433=_0x51fc53;var _0x3f34eb;(_0x3f34eb=this[_0xfe6433(0xd3)])==null||_0x3f34eb[_0xfe6433(0x124)](_0x23c211=>_0x23c211[_0xfe6433(0x232)]());}[_0x51fc53(0xda)](){const _0x10e864=_0x51fc53;return _0x23f9f7(this[_0x10e864(0xa0)],this[_0x10e864(0x27d)]);}};$e=_r([_0x47ad3a(_0x34068b['Steady'],$e),Me(0x0,_0x4a7404(ue)),Me(0x1,_0x373907),Me(0x2,_0x39c4de),Me(0x3,_0x4a7404(_0x522711))],$e);function dr(_0x2c89bc){const _0x1d7afe=_0x51fc53,_0x4592c5=new Map();return _0x2c89bc[_0x1d7afe(0x124)](_0x43e3d2=>{const _0x34d619=_0x1d7afe;if(_0x4592c5['has'](_0x43e3d2[_0x34d619(0x2fa)])){const _0x29fc3d=_0x4592c5['get'](_0x43e3d2[_0x34d619(0x2fa)]);_0x29fc3d[_0x34d619(0x3a4)]+=',\x20'+_0x43e3d2[_0x34d619(0x3a4)];}else _0x4592c5[_0x34d619(0x38f)](_0x43e3d2[_0x34d619(0x2fa)],_0x43e3d2);}),Array[_0x1d7afe(0x17c)](_0x4592c5['values']());}var A=function(){const _0x79621e=_0x51fc53;return A=Object['assign']||function(_0x549077){const _0x3e2223=_0x5e69;for(var _0x26d046,_0x3a3589=0x1,_0x4adb0d=arguments[_0x3e2223(0x2c6)];_0x3a3589<_0x4adb0d;_0x3a3589++){_0x26d046=arguments[_0x3a3589];for(var _0x4941fc in _0x26d046)Object[_0x3e2223(0x1f5)][_0x3e2223(0x30d)][_0x3e2223(0x185)](_0x26d046,_0x4941fc)&&(_0x549077[_0x4941fc]=_0x26d046[_0x4941fc]);}return _0x549077;},A[_0x79621e(0x89)](this,arguments);},fr=function(_0x4b4096,_0xea3534){const _0x3e3353=_0x51fc53;var _0x13001b={};for(var _0x51f7fa in _0x4b4096)Object[_0x3e3353(0x1f5)][_0x3e3353(0x30d)][_0x3e3353(0x185)](_0x4b4096,_0x51f7fa)&&_0xea3534[_0x3e3353(0x3a3)](_0x51f7fa)<0x0&&(_0x13001b[_0x51f7fa]=_0x4b4096[_0x51f7fa]);if(_0x4b4096!=null&&typeof Object[_0x3e3353(0xcd)]==_0x3e3353(0xa4)){for(var _0x4f7290=0x0,_0x51f7fa=Object['getOwnPropertySymbols'](_0x4b4096);_0x4f7290<_0x51f7fa[_0x3e3353(0x2c6)];_0x4f7290++)_0xea3534[_0x3e3353(0x3a3)](_0x51f7fa[_0x4f7290])<0x0&&Object['prototype'][_0x3e3353(0x2ec)][_0x3e3353(0x185)](_0x4b4096,_0x51f7fa[_0x4f7290])&&(_0x13001b[_0x51f7fa[_0x4f7290]]=_0x4b4096[_0x51f7fa[_0x4f7290]]);}return _0x13001b;},yt=_0x4ddef2(function(_0x4152db,_0x5b62cd){const _0x1c90e3=_0x51fc53;var _0x795ccf=_0x4152db[_0x1c90e3(0xe5)],_0x58eafc=_0x4152db['id'],_0x276460=_0x4152db['className'],_0x32335e=_0x4152db[_0x1c90e3(0x1d5)],_0x4c297f=fr(_0x4152db,[_0x1c90e3(0xe5),'id',_0x1c90e3(0x221),_0x1c90e3(0x1d5)]),_0x4367ba=_0x1c90e3(0x33a)['concat'](_0x58eafc,'\x20')[_0x1c90e3(0x14b)](_0x276460||'')[_0x1c90e3(0x1a1)](),_0x535ae3=_0x4ff318('_'[_0x1c90e3(0x14b)](Sr()));return Ps(_0x795ccf,''['concat'](_0x58eafc),{'defIds':_0x795ccf[_0x1c90e3(0x3a8)],'idSuffix':_0x535ae3[_0x1c90e3(0x12a)]},A({'ref':_0x5b62cd,'className':_0x4367ba},_0x4c297f),_0x32335e);});function Ps(_0x161100,_0x524be1,_0x61179f,_0x354ec7,_0x344b96){const _0x1202f7=_0x51fc53;return _0x153699(_0x161100['tag'],A(A({'key':_0x524be1},gr(_0x161100,_0x61179f,_0x344b96)),_0x354ec7),(mr(_0x161100,_0x61179f)[_0x1202f7(0x399)]||[])['map'](function(_0x5919b7,_0x5ec9cb){const _0x1cddc1=_0x1202f7;return Ps(_0x5919b7,''[_0x1cddc1(0x14b)](_0x524be1,'-')[_0x1cddc1(0x14b)](_0x161100[_0x1cddc1(0x2a8)],'-')[_0x1cddc1(0x14b)](_0x5ec9cb),_0x61179f,void 0x0,_0x344b96);}));}function gr(_0x2c4255,_0x41dc9a,_0x434256){const _0x3b4b96=_0x51fc53;var _0x3a661b=A({},_0x2c4255[_0x3b4b96(0x2b6)]);_0x434256!=null&&_0x434256[_0x3b4b96(0x145)]&&_0x3a661b[_0x3b4b96(0x29f)]===_0x3b4b96(0x145)&&(_0x3a661b['fill']=_0x434256[_0x3b4b96(0x145)]);var _0x3836a5=_0x41dc9a[_0x3b4b96(0x3a8)];return!_0x3836a5||_0x3836a5[_0x3b4b96(0x2c6)]===0x0||(_0x2c4255[_0x3b4b96(0x2a8)]===_0x3b4b96(0xae)&&_0x3a661b['xlink:href']&&(_0x3a661b['xlink:href']=_0x3a661b[_0x3b4b96(0x3af)]+_0x41dc9a['idSuffix']),Object[_0x3b4b96(0xfa)](_0x3a661b)[_0x3b4b96(0x124)](function(_0x16546e){const _0x1262e4=_0x3b4b96;var _0x542b83=_0x16546e[0x0],_0x2849e1=_0x16546e[0x1];typeof _0x2849e1=='string'&&(_0x3a661b[_0x542b83]=_0x2849e1['replace'](/url\(#(.*)\)/,'url(#$1'[_0x1262e4(0x14b)](_0x41dc9a[_0x1262e4(0x2b9)],')')));})),_0x3a661b;}function mr(_0x758884,_0x189473){const _0x2127ae=_0x51fc53;var _0x35dc68,_0x229f61=_0x189473[_0x2127ae(0x3a8)];return!_0x229f61||_0x229f61[_0x2127ae(0x2c6)]===0x0?_0x758884:_0x758884['tag']===_0x2127ae(0x264)&&(!((_0x35dc68=_0x758884[_0x2127ae(0x399)])===null||_0x35dc68===void 0x0)&&_0x35dc68[_0x2127ae(0x2c6)])?A(A({},_0x758884),{'children':_0x758884['children'][_0x2127ae(0xab)](function(_0x2e403f){const _0x289a73=_0x2127ae;return typeof _0x2e403f['attrs']['id']==_0x289a73(0x288)&&_0x229f61&&_0x229f61[_0x289a73(0x3a3)](_0x2e403f[_0x289a73(0x2b6)]['id'])>-0x1?A(A({},_0x2e403f),{'attrs':A(A({},_0x2e403f['attrs']),{'id':_0x2e403f['attrs']['id']+_0x189473[_0x289a73(0x2b9)]})}):_0x2e403f;})}):_0x758884;}function Sr(){const _0x3ae5ab=_0x51fc53;return Math[_0x3ae5ab(0x2ad)]()[_0x3ae5ab(0x1bd)](0x24)[_0x3ae5ab(0x92)](0x2,0x8);}yt[_0x51fc53(0x378)]='UniverIcon';function _0x5e69(_0x30d931,_0xefada2){const _0x18ca5f=_0x18ca();return _0x5e69=function(_0x5e69b9,_0x441c8c){_0x5e69b9=_0x5e69b9-0x80;let _0x458a81=_0x18ca5f[_0x5e69b9];return _0x458a81;},_0x5e69(_0x30d931,_0xefada2);}var vr={'tag':_0x51fc53(0x2a1),'attrs':{'fill':_0x51fc53(0x266),'viewBox':'0\x200\x2016\x2016','width':_0x51fc53(0x146),'height':_0x51fc53(0x146)},'children':[{'tag':'g','attrs':{'clipPath':_0x51fc53(0x3b8)},'children':[{'tag':_0x51fc53(0x37a),'attrs':{'stroke':'currentColor','d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x51fc53(0x26c),'strokeLinejoin':_0x51fc53(0x26c),'strokeWidth':1.2}}]},{'tag':_0x51fc53(0x264),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x51fc53(0x34b)},'children':[{'tag':_0x51fc53(0x37a),'attrs':{'fill':_0x51fc53(0x234),'d':_0x51fc53(0x22d)}}]}]}],'defIds':[_0x51fc53(0x34b)]},Ns=_0x4ddef2(function(_0x109bf0,_0x4d8066){const _0xb6655c=_0x51fc53;return _0x153699(yt,Object[_0xb6655c(0x219)]({},_0x109bf0,{'id':_0xb6655c(0xc1),'ref':_0x4d8066,'icon':vr}));});Ns[_0x51fc53(0x378)]=_0x51fc53(0x96);var pr={'tag':'svg','attrs':{'fill':'none','viewBox':'0\x200\x2017\x2016','width':'1em','height':_0x51fc53(0x146)},'children':[{'tag':'g','attrs':{'clipPath':_0x51fc53(0x140)},'children':[{'tag':_0x51fc53(0x37a),'attrs':{'stroke':_0x51fc53(0x19f),'d':_0x51fc53(0x233),'strokeLinecap':_0x51fc53(0x26c),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x51fc53(0x264),'attrs':{},'children':[{'tag':_0x51fc53(0x251),'attrs':{'id':_0x51fc53(0x1d1)},'children':[{'tag':_0x51fc53(0x37a),'attrs':{'fill':_0x51fc53(0x234),'d':_0x51fc53(0x22d),'transform':_0x51fc53(0xf5)}}]}]}],'defIds':[_0x51fc53(0x1d1)]},Ms=_0x4ddef2(function(_0x4c081f,_0x288b96){const _0xca04e9=_0x51fc53;return _0x153699(yt,Object[_0xca04e9(0x219)]({},_0x4c081f,{'id':'on-line-single','ref':_0x288b96,'icon':pr}));});Ms[_0x51fc53(0x378)]=_0x51fc53(0x1c0);const Ir=_0x51fc53(0x238),Er=_0x51fc53(0x325),Cr=_0x51fc53(0x2b5),br=_0x51fc53(0x1a0),Rr=_0x51fc53(0x2bf),ve={'onlineStatusIcon':Ir,'onlineStatusTitle':Er,'onlineStatus':Cr,'online':br,'offline':Rr};function Tr(_0xc36a94){const _0x573b10=_0x51fc53;switch(_0xc36a94){case P[_0x573b10(0x319)]:return _0x573b10(0x23e);case P[_0x573b10(0x20f)]:return _0x573b10(0xa6);case P[_0x573b10(0x252)]:return'collabStatus.fetchMiss';case P[_0x573b10(0xeb)]:return _0x573b10(0x3bc);case P[_0x573b10(0x394)]:case P[_0x573b10(0x180)]:case P['AWAITING_WITH_PENDING']:return _0x573b10(0x34d);case P['SYNCED']:return _0x573b10(0x107);}}function Or(_0x4f956d){const _0x5f5983=_0x51fc53,{status$:_0x230f30}=_0x4f956d,_0x331352=_0x282297(_0x230f30,P['NOT_COLLAB']),_0x33bfd0=_0x1d48ce(_0x201091),_0x38a066=_0x331352!==P[_0x5f5983(0x319)],_0x112ae7=_0x33bfd0['t'](Tr(_0x331352)),_0x4b19dd=_0x1a2218(ve[_0x5f5983(0x222)],{[ve[_0x5f5983(0x1d9)]]:_0x38a066,[ve[_0x5f5983(0x2fb)]]:!_0x38a066}),_0x4bac27=_0x38a066?_0x1c416c['createElement'](Ms,null):_0x1c416c[_0x5f5983(0x290)](Ns,null);return _0x1c416c[_0x5f5983(0x290)](_0x5f5983(0x341),{'className':_0x4b19dd},_0x1c416c[_0x5f5983(0x290)](_0x5f5983(0x341),{'className':ve[_0x5f5983(0x195)]},_0x4bac27),_0x1c416c[_0x5f5983(0x290)](_0x5f5983(0x341),{'className':ve[_0x5f5983(0x15a)]},_0x112ae7));}var Dr=Object[_0x51fc53(0x18f)],wr=Object[_0x51fc53(0x340)],Pr=(_0x2a247,_0x6d9707,_0x222b8e,_0x2b8ebe)=>{for(var _0x434790=_0x2b8ebe>0x1?void 0x0:_0x2b8ebe?wr(_0x6d9707,_0x222b8e):_0x6d9707,_0x146a4c=_0x2a247['length']-0x1,_0x4d9272;_0x146a4c>=0x0;_0x146a4c--)(_0x4d9272=_0x2a247[_0x146a4c])&&(_0x434790=(_0x2b8ebe?_0x4d9272(_0x6d9707,_0x222b8e,_0x434790):_0x4d9272(_0x434790))||_0x434790);return _0x2b8ebe&&_0x434790&&Dr(_0x6d9707,_0x222b8e,_0x434790),_0x434790;},Ae=(_0x18fc78,_0x83c89)=>(_0x39da67,_0x4f4f79)=>_0x83c89(_0x39da67,_0x4f4f79,_0x18fc78);let je=class extends _0x10a29c{constructor(_0x455b1f,_0x4c2f54,_0x25fb6c,_0x3ef996){const _0x5b5f8f=_0x51fc53;super(),l(this,_0x5b5f8f(0x22f),new _0x5d7d96(P['NOT_COLLAB'])),(this['_univerInstanceService']=_0x455b1f,this['_uiPartsService']=_0x4c2f54,this[_0x5b5f8f(0x342)]=_0x25fb6c,this[_0x5b5f8f(0x9e)]=_0x3ef996,this['_initStatusComponent'](),this[_0x5b5f8f(0x174)]());}['_initStatusComponent'](){const _0x490279=_0x51fc53;this[_0x490279(0x294)](this[_0x490279(0xd4)][_0x490279(0x3b3)](_0x4e424f[_0x490279(0x23f)],()=>_0x50255b(Nr({'status$':this[_0x490279(0x22f)][_0x490279(0xc8)]()}),this[_0x490279(0x342)])));}['_initStatusListener'](){const _0x12adb9=_0x51fc53;this[_0x12adb9(0x294)](_0x2f2f24(this['_univerInstanceService']['focused$']['pipe'](_0x8b3a32(()=>{const _0x3be649=_0x12adb9,_0x3d22f2=this[_0x3be649(0xa0)]['getFocusedUnit']();return _0x3d22f2?this[_0x3be649(0x9e)]['getCollabEntity$'](_0x3d22f2['getUnitId']()):_0xdadc8c(null);}),_0x8b3a32(_0x3670b1=>_0x3670b1?_0x3670b1[_0x12adb9(0x214)]:_0xdadc8c(P['NOT_COLLAB'])))[_0x12adb9(0x202)](_0x181662=>{const _0x5e5c1f=_0x12adb9;this[_0x5e5c1f(0x22f)][_0x5e5c1f(0x275)](_0x181662);})));}};je=Pr([_0x47ad3a(_0x34068b[_0x51fc53(0x11d)],je),Ae(0x0,_0x373907),Ae(0x1,_0x117aca),Ae(0x2,_0x4a7404(_0x44b6b8)),Ae(0x3,_0x4a7404(Ee))],je);function Nr(_0x5a4154){const {status$:_0x2f96fb}=_0x5a4154;return function(){return _0x1c416c['createElement'](Or,{'status$':_0x2f96fb});};}const As=_0xf73999(_0x51fc53(0x301));var Mr=Object[_0x51fc53(0x18f)],Ar=Object[_0x51fc53(0x340)],yr=(_0x51e44c,_0x2b1ebf,_0x483dae,_0x5f03c3)=>{const _0x38020f=_0x51fc53;for(var _0x71929f=_0x5f03c3>0x1?void 0x0:_0x5f03c3?Ar(_0x2b1ebf,_0x483dae):_0x2b1ebf,_0x1bc5dc=_0x51e44c[_0x38020f(0x2c6)]-0x1,_0x1a6a17;_0x1bc5dc>=0x0;_0x1bc5dc--)(_0x1a6a17=_0x51e44c[_0x1bc5dc])&&(_0x71929f=(_0x5f03c3?_0x1a6a17(_0x2b1ebf,_0x483dae,_0x71929f):_0x1a6a17(_0x71929f))||_0x71929f);return _0x5f03c3&&_0x71929f&&Mr(_0x2b1ebf,_0x483dae,_0x71929f),_0x71929f;},ce=(_0x2ff182,_0x23b1cd)=>(_0x1bb43b,_0x2a54be)=>_0x23b1cd(_0x1bb43b,_0x2a54be,_0x2ff182);let He=class extends _0x521c86{constructor(_0x1f4552,_0x25ad50,_0x3b73f9,_0x415fa9,_0x35c61a,_0xddd937){const _0x34c295=_0x51fc53;super(),this[_0x34c295(0x279)]=_0x1f4552,this[_0x34c295(0x37c)]=_0x25ad50,this[_0x34c295(0x113)]=_0x3b73f9,this[_0x34c295(0x284)]=_0x415fa9,this[_0x34c295(0x1e5)]=_0x35c61a,_0xddd937?_0xddd937==null||_0xddd937[_0x34c295(0x1b3)]()[_0x34c295(0xf4)](()=>this[_0x34c295(0x380)]()):(this[_0x34c295(0x37c)][_0x34c295(0x35e)]('[DataLoaderController]',_0x34c295(0x85)),this[_0x34c295(0x380)]());}async[_0x51fc53(0x380)](){const _0x2ded31=_0x51fc53,_0x24f778=this[_0x2ded31(0x279)][_0x2ded31(0x22e)](_0x2ded31(0x387)),_0x19c660=this[_0x2ded31(0x279)][_0x2ded31(0x22e)](_0x2ded31(0x2cd));if(!_0x24f778||!_0x19c660){this[_0x2ded31(0x37c)][_0x2ded31(0x35e)](_0x2ded31(0x3ac),_0x2ded31(0x184));return;}switch(Number(_0x19c660)){case H[_0x2ded31(0x351)]:{const _0x2064a4=await this['_loadSheet'](_0x24f778);this[_0x2ded31(0x345)](_0x2064a4);break;}case H[_0x2ded31(0x32c)]:{await this[_0x2ded31(0x203)](_0x24f778);break;}default:{this['_logService'][_0x2ded31(0x24d)]('[DataLoaderController]',_0x2ded31(0x277));break;}}}async[_0x51fc53(0x345)](_0x50a5e9){const _0x3e06ab=_0x51fc53;await this[_0x3e06ab(0x12c)](_0x50a5e9),_0x50a5e9[_0x3e06ab(0x354)][_0x3e06ab(0x2c3)](_0x1603a2(this[_0x3e06ab(0x200)]))[_0x3e06ab(0x202)](_0x553bb4=>{const _0x574176=_0x3e06ab;_0x553bb4&&this[_0x574176(0x25b)](_0x553bb4);}),this[_0x3e06ab(0x279)][_0x3e06ab(0xba)][_0x3e06ab(0x2c3)](_0x1603a2(this[_0x3e06ab(0x200)]))[_0x3e06ab(0x202)](()=>this['_updateSubUnitFromURLParams'](_0x50a5e9));}[_0x51fc53(0x25b)](_0x506a2b,_0x3bdb78=!0x1){const _0x1b4205=_0x51fc53,_0x185655=this[_0x1b4205(0x279)][_0x1b4205(0x22e)]('subunit');_0x506a2b[_0x1b4205(0x1ef)]()!==_0x185655&&this[_0x1b4205(0x279)][_0x1b4205(0x28f)](_0x1b4205(0x316),_0x506a2b['getSheetId'](),_0x3bdb78);}async['_updateSubUnitFromURLParams'](_0x3f4eb2){const _0xb156e0=_0x51fc53;var _0x300e7b;const _0x5e6a73=this[_0xb156e0(0x279)][_0xb156e0(0x22e)](_0xb156e0(0x316));if(!_0x5e6a73||!_0x3f4eb2[_0xb156e0(0x3a9)](_0x5e6a73)){const _0x5aa068=_0x3f4eb2[_0xb156e0(0x24b)]()[0x0],_0x14efbf=_0x3f4eb2[_0xb156e0(0x3a9)](_0x5aa068);if(!_0x14efbf)return;this['_updateURLWithCurrentState'](_0x14efbf,!0x0),await this[_0xb156e0(0x113)][_0xb156e0(0xaa)](_0x1c5f90['id'],{'unitId':_0x3f4eb2['getUnitId'](),'subUnitId':_0x5aa068});return;}((_0x300e7b=_0x3f4eb2['getActiveSheet']())==null?void 0x0:_0x300e7b[_0xb156e0(0x1ef)]())!==_0x5e6a73&&await this[_0xb156e0(0x113)]['executeCommand'](_0x1c5f90['id'],{'unitId':_0x3f4eb2['getUnitId'](),'subUnitId':_0x5e6a73});}async[_0x51fc53(0x29d)](_0x1ff1b8){const _0x48b6ce=_0x51fc53;let _0x50a719=0x0;const _0x40fc5f=await this[_0x48b6ce(0x284)]['loadOfflineData'](_0x1ff1b8);return _0x40fc5f&&(_0x40fc5f[_0x48b6ce(0x188)]||_0x40fc5f[_0x48b6ce(0xc7)][_0x48b6ce(0x2c6)]!==0x0)&&(_0x50a719=_0x40fc5f[_0x48b6ce(0x1eb)]),_0x50a719===0x0&&this[_0x48b6ce(0x37c)][_0x48b6ce(0x35e)]('[DataLoaderController]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this['_snapshotService']['loadSheet'](_0x1ff1b8,_0x50a719);}async[_0x51fc53(0x203)](_0x430c00){const _0x48f4fc=_0x51fc53;let _0x198595=0x0;const _0x44481b=await this['_localCacheService'][_0x48f4fc(0x2e5)](_0x430c00);return _0x44481b&&(_0x44481b[_0x48f4fc(0x188)]||_0x44481b['mutations'][_0x48f4fc(0x2c6)]!==0x0)&&(_0x198595=_0x44481b['rev']),_0x198595===0x0&&this[_0x48f4fc(0x37c)][_0x48f4fc(0x35e)](_0x48f4fc(0x3ac),_0x48f4fc(0x2fd)),this[_0x48f4fc(0x1e5)][_0x48f4fc(0x333)](_0x430c00,_0x198595);}};He=yr([_0x47ad3a(_0x34068b[_0x51fc53(0x11d)],He),ce(0x0,As),ce(0x1,_0x3cb271),ce(0x2,_0x568418),ce(0x3,_0x4a7404(D)),ce(0x4,_0x4a7404(_0x3cc45f)),ce(0x5,_0x19d484(_0x34d98a))],He);var Ur=Object['defineProperty'],Lr=Object[_0x51fc53(0x340)],$r=(_0x1ce377,_0x5d8daf,_0x4de595,_0x5ab057)=>{const _0x36d585=_0x51fc53;for(var _0x275d5c=_0x5ab057>0x1?void 0x0:_0x5ab057?Lr(_0x5d8daf,_0x4de595):_0x5d8daf,_0x496754=_0x1ce377[_0x36d585(0x2c6)]-0x1,_0x493bf2;_0x496754>=0x0;_0x496754--)(_0x493bf2=_0x1ce377[_0x496754])&&(_0x275d5c=(_0x5ab057?_0x493bf2(_0x5d8daf,_0x4de595,_0x275d5c):_0x493bf2(_0x275d5c))||_0x275d5c);return _0x5ab057&&_0x275d5c&&Ur(_0x5d8daf,_0x4de595,_0x275d5c),_0x275d5c;},Qt=(_0x37c3f1,_0x2b9945)=>(_0x3356e6,_0x384723)=>_0x2b9945(_0x3356e6,_0x384723,_0x37c3f1);const jr='DEFAULT_FILE_NAME',Hr=_0x51fc53(0x29a);let xe=class extends _0x10a29c{constructor(_0x37cdb1,_0x240c4a){const _0x1dd3f7=_0x51fc53;super(),this[_0x1dd3f7(0xa0)]=_0x37cdb1,this['_configService']=_0x240c4a,this['_init']();}[_0x51fc53(0x380)](){const _0xfe6601=_0x51fc53;this[_0xfe6601(0x294)](_0x2f2f24(this['_univerInstanceService'][_0xfe6601(0x111)][_0xfe6601(0x202)](()=>{const _0x31a84b=_0xfe6601;var _0x1292e7;const _0x533c53=this['_univerInstanceService'][_0x31a84b(0x2ed)]();let _0x3ed0c4=(_0x1292e7=this[_0x31a84b(0x2c4)][_0x31a84b(0xf0)](jr))!=null?_0x1292e7:Hr;_0x533c53 instanceof _0x3b5c47&&(_0x3ed0c4=_0x533c53[_0x31a84b(0x3a4)]),document[_0x31a84b(0x1cf)]=_0x3ed0c4;})));}};xe=$r([_0x47ad3a(_0x34068b[_0x51fc53(0x2d1)],xe),Qt(0x0,_0x373907),Qt(0x1,_0x5977ca)],xe);var xr=Object[_0x51fc53(0x18f)],Fr=Object[_0x51fc53(0x340)],Br=(_0x43b690,_0x2eb3d8,_0x33a336,_0x426f83)=>{const _0x534fd5=_0x51fc53;for(var _0x24b915=_0x426f83>0x1?void 0x0:_0x426f83?Fr(_0x2eb3d8,_0x33a336):_0x2eb3d8,_0x1255e5=_0x43b690[_0x534fd5(0x2c6)]-0x1,_0x16118e;_0x1255e5>=0x0;_0x1255e5--)(_0x16118e=_0x43b690[_0x1255e5])&&(_0x24b915=(_0x426f83?_0x16118e(_0x2eb3d8,_0x33a336,_0x24b915):_0x16118e(_0x24b915))||_0x24b915);return _0x426f83&&_0x24b915&&xr(_0x2eb3d8,_0x33a336,_0x24b915),_0x24b915;},es=(_0x244d66,_0x392929)=>(_0x3748d4,_0x44fe15)=>_0x392929(_0x3748d4,_0x44fe15,_0x244d66);let St=class{constructor(_0x795034,_0x2352e6){const _0x4e8660=_0x51fc53;this[_0x4e8660(0x2c4)]=_0x795034,this[_0x4e8660(0x322)]=_0x2352e6;}async['getUnitOnRev'](_0x3ab2de,_0xc9e530){const _0x4d3fa0=_0x51fc53;var _0x3e2fcd;const {unitID:_0x4e90a4,type:_0x1e485f,revision:_0x125bea=0x0}=_0xc9e530,_0x51bafb=this['_getSnapshotAPIPrefix']()+'/'+_0x1e485f+_0x4d3fa0(0xea)+_0x4e90a4+_0x4d3fa0(0x20e)+(_0x125bea===0x1?0x0:_0x125bea),_0x5b1371=(await this[_0x4d3fa0(0x322)][_0x4d3fa0(0x151)](_0x51bafb))['body'],_0x2be83f=(_0x3e2fcd=_0x5b1371[_0x4d3fa0(0x99)])==null?void 0x0:_0x3e2fcd[_0x4d3fa0(0x23b)];if(_0x2be83f){const _0x13647f=_0x2be83f==null?void 0x0:_0x2be83f[_0x4d3fa0(0x2b0)],_0x241104=_0x56aec7[_0x4d3fa0(0x2cc)](_0x5ad4b1(_0x13647f));_0x2be83f['originalMeta']=_0x241104,Object[_0x4d3fa0(0xfa)](_0x2be83f[_0x4d3fa0(0x1b6)])[_0x4d3fa0(0x124)](([,_0x488581])=>{const _0x571898=_0x4d3fa0,_0x989d14=_0x488581[_0x571898(0x2b0)],_0x2cec61=_0x56aec7[_0x571898(0x2cc)](_0x5ad4b1(_0x989d14));_0x488581[_0x571898(0x2b0)]=_0x2cec61;});}return _0x5b1371;}async['getSheetBlock'](_0x221d6e,_0x5c783e){const _0x34c514=_0x51fc53,{unitID:_0x20350f,type:_0x43208e,blockID:_0x38a3dc}=_0x5c783e,_0xb5c9f7=this[_0x34c514(0x33b)]()+'/'+_0x43208e+_0x34c514(0xea)+_0x20350f+_0x34c514(0x8d)+_0x38a3dc;return(await this['_httpService']['get'](_0xb5c9f7))[_0x34c514(0x211)];}async[_0x51fc53(0x28a)](_0x1d821a,_0x2bc082){const _0x7b4403=_0x51fc53,{unitID:_0x56673c,type:_0x4051c9,from:_0x128600,to:_0x12a5f8}=_0x2bc082,_0x290ee7=this[_0x7b4403(0x33b)]()+'/'+_0x4051c9+_0x7b4403(0xea)+_0x56673c+_0x7b4403(0x31d)+_0x128600+_0x7b4403(0x350)+_0x12a5f8;return(await this[_0x7b4403(0x322)]['get'](_0x290ee7))['body'];}[_0x51fc53(0xbb)](){const _0x4e9cbe=_0x51fc53;var _0x3d17f8;return(_0x3d17f8=this[_0x4e9cbe(0x2c4)][_0x4e9cbe(0xf0)](Ki))!=null?_0x3d17f8:this[_0x4e9cbe(0x33b)]();}[_0x51fc53(0x33b)](){const _0x4d2c34=_0x51fc53;var _0x6a4d0e;return(_0x6a4d0e=this['_configService'][_0x4d2c34(0xf0)](Gi))!=null?_0x6a4d0e:Yi;}async[_0x51fc53(0x254)](_0x5aab87,_0xffd7){const _0x508352=_0x51fc53,_0x19770a=_0x508352(0x38a)+_0xffd7[_0x508352(0x2cd)]+_0x508352(0xea)+_0xffd7[_0x508352(0x1b1)]+_0x508352(0x2f3);return(await this[_0x508352(0x322)][_0x508352(0x151)](_0x19770a,{'params':{'resourceId':JSON[_0x508352(0x2ea)](_0xffd7[_0x508352(0x2d3)])}}))['body'];}[_0x51fc53(0x1d7)](){const _0x1a18ca=_0x51fc53;throw new Error(_0x1a18ca(0x392));}[_0x51fc53(0x230)](){const _0x184597=_0x51fc53;throw new Error(_0x184597(0x392));}[_0x51fc53(0x369)](){const _0x1f601b=_0x51fc53;throw new Error(_0x1f601b(0x392));}};St=Br([es(0x0,_0x5977ca),es(0x1,_0x4a7404(_0x142257))],St);var kr=Object[_0x51fc53(0x18f)],Vr=Object[_0x51fc53(0x340)],Wr=(_0x2cf364,_0x1b30a4,_0x17ed22,_0x28bf95)=>{const _0x56421c=_0x51fc53;for(var _0x5158a1=_0x28bf95>0x1?void 0x0:_0x28bf95?Vr(_0x1b30a4,_0x17ed22):_0x1b30a4,_0x5a074b=_0x2cf364[_0x56421c(0x2c6)]-0x1,_0x2bc17b;_0x5a074b>=0x0;_0x5a074b--)(_0x2bc17b=_0x2cf364[_0x5a074b])&&(_0x5158a1=(_0x28bf95?_0x2bc17b(_0x1b30a4,_0x17ed22,_0x5158a1):_0x2bc17b(_0x5158a1))||_0x5158a1);return _0x28bf95&&_0x5158a1&&kr(_0x1b30a4,_0x17ed22,_0x5158a1),_0x5158a1;},pe=(_0x3b77c7,_0x5d4d44)=>(_0x529849,_0x2f263b)=>_0x5d4d44(_0x529849,_0x2f263b,_0x3b77c7);let vt=class extends _0x31c064{constructor(_0x3aa2d0,_0x45875b,_0x1a7b6f,_0x13716e,_0x169bd9){const _0x2d4c9a=_0x51fc53;super(_0x3aa2d0,_0x45875b,_0x1a7b6f),this[_0x2d4c9a(0x102)]=_0x13716e,this[_0x2d4c9a(0x37c)]=_0x169bd9;}['transformUndoRedo'](_0x5d4d3d,_0x420bf3){const _0x63f982=_0x51fc53,_0xb30bad=this['_getUndoStack'](_0x5d4d3d);if(_0xb30bad)try{const _0xb4686b=this[_0x63f982(0x13e)](_0xb30bad,_0x420bf3);this[_0x63f982(0x2e8)](_0x5d4d3d,_0xb4686b);}catch(_0x212bec){this[_0x63f982(0x37c)][_0x63f982(0x24d)]('[CollaborationUndoRedoService]',_0x212bec),this[_0x63f982(0x115)](_0x5d4d3d);}const _0x2c305c=this[_0x63f982(0x212)](_0x5d4d3d);if(_0x2c305c)try{const _0x25b781=this[_0x63f982(0x13e)](_0x2c305c,_0x420bf3);this[_0x63f982(0x9b)](_0x5d4d3d,_0x25b781);}catch(_0x6ff79f){this[_0x63f982(0x37c)][_0x63f982(0x24d)](_0x6ff79f),this['_clearRedo'](_0x5d4d3d);}}['_clearUndo'](_0x5dd228){const _0x8b4927=_0x51fc53,_0x5b413f=this[_0x8b4927(0x2ab)](_0x5dd228);_0x5b413f&&(_0x5b413f[_0x8b4927(0x2c6)]=0x0,this['_updateStatus']());}[_0x51fc53(0x28d)](_0x37adb9){const _0x30b986=_0x51fc53,_0x4c8b3a=this[_0x30b986(0x212)](_0x37adb9);_0x4c8b3a&&(_0x4c8b3a[_0x30b986(0x2c6)]=0x0,this[_0x30b986(0x10d)]());}[_0x51fc53(0x2e8)](_0x2ab625,_0x2adda5){const _0x2e7c85=_0x51fc53;this[_0x2e7c85(0x315)][_0x2e7c85(0x38f)](_0x2ab625,_0x2adda5),this[_0x2e7c85(0x10d)]();}['_substituteRedoStack'](_0x6f5f2d,_0x231683){const _0x318bfd=_0x51fc53;this[_0x318bfd(0x371)][_0x318bfd(0x38f)](_0x6f5f2d,_0x231683),this[_0x318bfd(0x10d)]();}['_transformStack'](_0x448282,_0x3c920d){const _0x45310d=_0x51fc53,_0x9391aa=[];let _0x489b8b=_0x3c920d,_0x275dfb=_0x3c920d;for(let _0xcda683=_0x448282['length']-0x1;_0xcda683>=0x0;_0xcda683--){const {unitID:_0x5db419,undoMutations:_0x2a10b0,redoMutations:_0x173387}=_0x448282[_0xcda683],_0x30349c=this[_0x45310d(0x102)][_0x45310d(0x3bd)](_0x489b8b,_0x2a10b0),_0x4749c2=this['_transformService'][_0x45310d(0x3bd)](_0x275dfb,_0x173387);if(_0x4c2f5b(_0x30349c)||_0x4c2f5b(_0x4749c2)){this['_logService'][_0x45310d(0x24d)](_0x45310d(0xbd),'transformStack\x20failed!',_0x30349c,_0x4749c2);break;}_0x489b8b=_0x30349c[_0x45310d(0x3ab)],_0x275dfb=_0x4749c2[_0x45310d(0x3ab)],_0x9391aa[_0x45310d(0x19d)]({'unitID':_0x5db419,'undoMutations':_0x30349c['m2Prime'],'redoMutations':_0x4749c2[_0x45310d(0x30f)]});}return _0x9391aa[_0x45310d(0x204)]();}};vt=Wr([pe(0x0,_0x373907),pe(0x1,_0x568418),pe(0x2,_0x187fc2),pe(0x3,_0x425e9b),pe(0x4,_0x3cb271)],vt);class Gr extends _0x521c86{constructor(){const _0xee9426=_0x51fc53;super(),l(this,_0xee9426(0xba)),this[_0xee9426(0xba)]=_0x1860dc(window,_0xee9426(0x1b9))[_0xee9426(0x2c3)](_0x1603a2(this[_0xee9426(0x200)]),_0xcf2b53(0x1),_0x154121(void 0x0));}[_0x51fc53(0x28f)](_0x4906b2,_0x11a59f,_0x596a9a=!0x1){const _0xbbedff=_0x51fc53,_0x328294=new URL(window[_0xbbedff(0x21e)][_0xbbedff(0x283)]);_0x328294[_0xbbedff(0x24f)]['set'](_0x4906b2,_0x11a59f),_0x596a9a?window[_0xbbedff(0x220)][_0xbbedff(0xe2)]('','',_0x328294[_0xbbedff(0x1bd)]()):window[_0xbbedff(0x220)][_0xbbedff(0x100)]('','',_0x328294[_0xbbedff(0x1bd)]());}[_0x51fc53(0x2bb)](_0x564215,_0x452a9c=!0x1){const _0x4b1fa5=_0x51fc53,_0x383b71=new URL(window[_0x4b1fa5(0x21e)][_0x4b1fa5(0x283)]);_0x383b71[_0x4b1fa5(0x24f)][_0x4b1fa5(0x209)](_0x564215),_0x452a9c?window[_0x4b1fa5(0x220)]['replaceState']('','',_0x383b71[_0x4b1fa5(0x1bd)]()):window[_0x4b1fa5(0x220)][_0x4b1fa5(0x100)]('','',_0x383b71[_0x4b1fa5(0x1bd)]());}[_0x51fc53(0x22e)](_0x4df53e){const _0x25b318=_0x51fc53;var _0x34bfe9;return(_0x34bfe9=new URL(window['location']['href'])[_0x25b318(0x24f)][_0x25b318(0x151)](_0x4df53e))!=null?_0x34bfe9:void 0x0;}}const nt=_0x51fc53(0x3bf),Yr=_0x51fc53(0x1d0),ye=0x6,Kr=1.5,rt=0x4,Xr=1.5,Jr=_0x51fc53(0x1c5);class zr{constructor(_0x5b3b58,_0x44b679,_0x15d0f7,_0x3034a3){const _0x76bfed=_0x51fc53;l(this,_0x76bfed(0x35f),[]),l(this,_0x76bfed(0x33f),null),l(this,_0x76bfed(0xa1),null),l(this,_0x76bfed(0x27f),null),l(this,_0x76bfed(0x1c3),null),l(this,'_eventUnsubscribe',null),(this[_0x76bfed(0x189)]=_0x5b3b58,this[_0x76bfed(0x2c9)]=_0x44b679,this[_0x76bfed(0x3ae)]=_0x15d0f7,this[_0x76bfed(0x323)]=_0x3034a3,this[_0x76bfed(0x18a)]());}set['_hover'](_0x36f882){const _0x5a86ef=_0x51fc53;_0x36f882?(this[_0x5a86ef(0x27f)]&&this[_0x5a86ef(0x27f)][_0x5a86ef(0x317)](),this['_textBubble']&&this[_0x5a86ef(0xa1)]['show']()):(this['_anchorDot']&&this[_0x5a86ef(0x27f)][_0x5a86ef(0x25c)](),this[_0x5a86ef(0xa1)]&&this[_0x5a86ef(0xa1)][_0x5a86ef(0x317)]());}[_0x51fc53(0x232)](){const _0x582a7f=_0x51fc53;for(const _0x22a518 of this[_0x582a7f(0x35f)])_0x22a518['dispose']();this[_0x582a7f(0xa1)]&&this[_0x582a7f(0xa1)]['dispose'](),this[_0x582a7f(0x27f)]&&this[_0x582a7f(0x27f)][_0x582a7f(0x232)](),this[_0x582a7f(0x33f)]&&this['_anchor'][_0x582a7f(0x232)](),this[_0x582a7f(0xb3)]&&this[_0x582a7f(0xb3)]();}['_render'](){const _0x2b3224=_0x51fc53,{_docSkeleton:_0x344251,_document:_0x5b9fbb}=this,{color:_0x16170b,name:_0x273f87,ranges:_0x2e431b}=this[_0x2b3224(0x189)],_0x4a42eb=_0x5b9fbb['getOffsetConfig'](),{docsLeft:_0x48cb86,docsTop:_0x5a33b6}=_0x4a42eb,_0x2a5417=new _0x1dca35(_0x4a42eb,_0x344251);for(const {startOffset:_0x1a81d3,endOffset:_0x2de3c7,collapsed:_0x5f0ec4,isActive:_0x22765c}of _0x2e431b){const _0x194e97=_0x344251[_0x2b3224(0x367)](_0x1a81d3),_0xe9f137=_0x344251[_0x2b3224(0x367)](_0x2de3c7);if(_0x22765c){const {contentBoxPointGroup:_0x3bf2d5}=_0x2a5417['getRangePointData'](_0xe9f137,_0xe9f137);if(_0x3bf2d5[_0x2b3224(0x2c6)]===0x0)continue;this[_0x2b3224(0x25e)](_0x16170b,_0x3bf2d5,_0x48cb86,_0x5a33b6,_0x273f87),this['_eventUnsubscribe']=this[_0x2b3224(0x14a)]();}if(!_0x5f0ec4){const {contentBoxPointGroup:_0x26098f}=_0x2a5417[_0x2b3224(0x1cd)](_0x194e97,_0xe9f137);if(_0x26098f[_0x2b3224(0x2c6)]===0x0)continue;this[_0x2b3224(0x262)](_0x16170b,_0x26098f,_0x48cb86,_0x5a33b6);}}}[_0x51fc53(0x25e)](_0x285c9d,_0x58b1a8,_0x4bf05e,_0x16ef25,_0x351c4c){const _0x53dfc4=_0x51fc53,_0x4a180c=this[_0x53dfc4(0x1b5)](_0x58b1a8),{left:_0x3df936,top:_0x4f504d,height:_0x5af7f0}=_0x4a180c,_0x24ed40=this['_getScale'](),_0x14488d=Xr/_0x24ed40,_0x3b46d9=new _0xbeb8e4(nt+_0x4cfbd7['generateRandomId'](ye),{'left':_0x3df936+_0x4bf05e-_0x14488d,'top':_0x4f504d+_0x16ef25,'height':_0x5af7f0,'width':Kr,'fill':_0x285c9d||_0x43e11f(_0x131343[_0x53dfc4(0x2b4)],0x0),'strokeWidth':_0x14488d,'stroke':Jr,'evented':!0x0});this['_anchor']=_0x3b46d9,this['_scene'][_0x53dfc4(0x104)](_0x3b46d9,_0x337814);const _0x29f7e5=new _0xbeb8e4(nt+_0x4cfbd7['generateRandomId'](ye),{'left':_0x3df936+_0x4bf05e-_0x14488d,'top':_0x4f504d+_0x16ef25-rt/0x2,'height':rt,'width':rt,'fill':_0x285c9d||_0x43e11f(_0x131343[_0x53dfc4(0x2b4)],0x0),'strokeWidth':0x0,'stroke':_0x285c9d||_0x43e11f(_0x131343[_0x53dfc4(0x2b4)],0x0),'evented':!0x1});this[_0x53dfc4(0x27f)]=_0x29f7e5,this[_0x53dfc4(0x2c9)][_0x53dfc4(0x104)](_0x29f7e5,_0x337814);const _0xcab3c4=new ze(nt+_0x4cfbd7[_0x53dfc4(0x300)](ye),{'left':_0x3df936+_0x4bf05e-_0x14488d,'top':_0x4f504d+_0x16ef25-Oe,'text':_0x351c4c,'color':_0x285c9d});this[_0x53dfc4(0xa1)]=_0xcab3c4,this[_0x53dfc4(0x2c9)][_0x53dfc4(0x104)](_0xcab3c4,_0x337814),this[_0x53dfc4(0xcc)]=!0x1;}[_0x51fc53(0x14a)](){const _0x463eea=_0x51fc53,_0xe36abd=this[_0x463eea(0x33f)][_0x463eea(0x169)][_0x463eea(0x2d7)](()=>{this['_hover']=!0x0;}),_0x35ac9a=this['_anchor'][_0x463eea(0x3b1)]['subscribeEvent'](()=>{const _0x8d9d23=_0x463eea;this[_0x8d9d23(0x1c3)]&&clearTimeout(this[_0x8d9d23(0x1c3)]),this['_hideTimer']=setTimeout(()=>{const _0x2a6c33=_0x8d9d23;this[_0x2a6c33(0xcc)]=!0x1;},0x7d0);});return()=>{const _0x355fdd=_0x463eea;_0xe36abd[_0x355fdd(0x11a)](),_0x35ac9a[_0x355fdd(0x11a)]();};}[_0x51fc53(0x262)](_0x45c19e,_0x31005a,_0xe1c3f0,_0x208414){const _0x3a0318=_0x51fc53,_0xf823d=new _0x3dc381(_0x45c19e)[_0x3a0318(0x375)](0.2)[_0x3a0318(0x313)](),_0x5a3d3b=new _0x3c2aad(Yr+_0x4cfbd7[_0x3a0318(0x300)](ye),{'pointsGroup':_0x31005a,'fill':_0xf823d||_0x43e11f(_0x131343[_0x3a0318(0x2b4)],0.2),'left':_0xe1c3f0,'top':_0x208414,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3a0318(0x35f)][_0x3a0318(0x19d)](_0x5a3d3b),this[_0x3a0318(0x2c9)][_0x3a0318(0x104)](_0x5a3d3b,_0x337814);}[_0x51fc53(0x1b5)](_0x4098da){const _0x31ae0b=_0x4098da[0x0],_0x491a82=_0x31ae0b[0x0],_0x40c974=_0x31ae0b[0x2],{x:_0x2d6929,y:_0x11a22e}=_0x491a82,{x:_0x2f0026,y:_0x1c04a6}=_0x40c974;return{'left':_0x2d6929,'top':_0x11a22e,'width':_0x2f0026-_0x2d6929,'height':_0x1c04a6-_0x11a22e};}[_0x51fc53(0x15c)](){const _0x60938d=_0x51fc53,{scaleX:_0x5e995c,scaleY:_0x333b77}=this['_scene'][_0x60938d(0x242)]();return Math[_0x60938d(0x216)](_0x5e995c,_0x333b77);}}var Zr=Object[_0x51fc53(0x18f)],qr=Object[_0x51fc53(0x340)],Qr=(_0x4dd2bf,_0x2d4317,_0x41fbed,_0x1f3d6d)=>{const _0x4d8756=_0x51fc53;for(var _0x2b95b1=_0x1f3d6d>0x1?void 0x0:_0x1f3d6d?qr(_0x2d4317,_0x41fbed):_0x2d4317,_0x45ace2=_0x4dd2bf[_0x4d8756(0x2c6)]-0x1,_0x5cfa7;_0x45ace2>=0x0;_0x45ace2--)(_0x5cfa7=_0x4dd2bf[_0x45ace2])&&(_0x2b95b1=(_0x1f3d6d?_0x5cfa7(_0x2d4317,_0x41fbed,_0x2b95b1):_0x5cfa7(_0x2b95b1))||_0x2b95b1);return _0x1f3d6d&&_0x2b95b1&&Zr(_0x2d4317,_0x41fbed,_0x2b95b1),_0x2b95b1;},Ie=(_0x17d987,_0x3d87d0)=>(_0x2c24b7,_0x22380c)=>_0x3d87d0(_0x2c24b7,_0x22380c,_0x17d987);let Fe=class extends _0x521c86{constructor(_0x34c42b,_0x2527df,_0x58cbde,_0x566d10,_0x1ebbea){const _0x2ecbb8=_0x51fc53;super(),l(this,_0x2ecbb8(0xd3),[]),(this[_0x2ecbb8(0x84)]=_0x34c42b,this[_0x2ecbb8(0xa0)]=_0x2527df,this[_0x2ecbb8(0x27d)]=_0x58cbde,this[_0x2ecbb8(0x33d)]=_0x566d10,this[_0x2ecbb8(0x16b)]=_0x1ebbea,this[_0x2ecbb8(0x380)]());}[_0x51fc53(0x380)](){const _0x17cf66=_0x51fc53;this['_docSkeletonManagerService'][_0x17cf66(0x391)][_0x17cf66(0x2c3)](_0x430c3c(this[_0x17cf66(0x200)]),_0xb49a6c(_0x479d67=>{const _0x540c3d=_0x17cf66;if(_0x479d67){const _0x4e9172=_0x479d67[_0x540c3d(0x38b)]()[_0x540c3d(0x1d8)]()['getUnitId']();return _0x73b353(this[_0x540c3d(0x84)]['getCollabCursors$'](_0x4e9172),this['_themeService'][_0x540c3d(0x1a7)])['pipe'](_0x1db2aa(([_0x5849ec,_0x3fa34e])=>({'skeleton':_0x479d67,'cursors':[..._0x5849ec['values']()][_0x540c3d(0x32d)](_0x3e94e9=>({..._0x3e94e9,'color':_0x3fa34e[_0x3e94e9['color']]}))})));}return _0xdadc8c({'skeleton':null,'cursors':[]});}))['subscribe'](({skeleton:_0x23c430,cursors:_0x18e555})=>{const _0x3769c0=_0x17cf66;this['_removeCollabCursors'](),_0x23c430&&this[_0x3769c0(0xc4)](_0x23c430,_0x18e555);});}['_updateCollabCursors'](_0xafc56f,_0x410077){const _0x310c98=_0x51fc53,_0x3db473=this['_getDocObject']();if(_0x3db473==null)return;const {scene:_0xebc0b4,document:_0x5bfcdd}=_0x3db473,_0x1c103e=_0x410077[_0x310c98(0xab)](_0x3b6563=>new zr(_0x3b6563,_0xebc0b4,_0xafc56f,_0x5bfcdd));this[_0x310c98(0xd3)]=_0x1c103e;}[_0x51fc53(0xb9)](){const _0x5ce5a1=_0x51fc53;this[_0x5ce5a1(0xd3)][_0x5ce5a1(0x124)](_0x2dc77b=>_0x2dc77b[_0x5ce5a1(0x232)]()),this[_0x5ce5a1(0xd3)]=[];}[_0x51fc53(0x307)](){return _0x3248cd(this['_univerInstanceService'],this['_renderManagerService']);}};Fe=Qr([_0x47ad3a(_0x34068b[_0x51fc53(0x8c)],Fe),Ie(0x0,_0x4a7404(ue)),Ie(0x1,_0x373907),Ie(0x2,_0x39c4de),Ie(0x3,_0x4a7404(_0x46f5a8)),Ie(0x4,_0x4a7404(_0x522711))],Fe);var eo=Object[_0x51fc53(0x18f)],to=Object[_0x51fc53(0x340)],so=(_0x5379dd,_0x8f940d,_0x676140,_0x10c8d3)=>{const _0x171903=_0x51fc53;for(var _0xcfa7d5=_0x10c8d3>0x1?void 0x0:_0x10c8d3?to(_0x8f940d,_0x676140):_0x8f940d,_0x494386=_0x5379dd[_0x171903(0x2c6)]-0x1,_0x5baf05;_0x494386>=0x0;_0x494386--)(_0x5baf05=_0x5379dd[_0x494386])&&(_0xcfa7d5=(_0x10c8d3?_0x5baf05(_0x8f940d,_0x676140,_0xcfa7d5):_0x5baf05(_0xcfa7d5))||_0xcfa7d5);return _0x10c8d3&&_0xcfa7d5&&eo(_0x8f940d,_0x676140,_0xcfa7d5),_0xcfa7d5;},ot=(_0xfa0cab,_0x275708)=>(_0x14fdaf,_0x4fe415)=>_0x275708(_0x14fdaf,_0x4fe415,_0xfa0cab);let Ge=class{constructor(_0x375a7c,_0x5a2bc1,_0x201ceb){const _0x2c7bee=_0x51fc53;this[_0x2c7bee(0x2c4)]=_0x375a7c,this[_0x2c7bee(0x322)]=_0x5a2bc1,this[_0x2c7bee(0x2c7)]=_0x201ceb,this[_0x2c7bee(0x191)]();}[_0x51fc53(0x191)](){const _0x553ec9=_0x51fc53;this[_0x553ec9(0x322)][_0x553ec9(0x194)]({'priority':0x1,'interceptor':(_0x4cbe47,_0x178f40)=>_0x178f40(_0x4cbe47)[_0x553ec9(0x2c3)](_0x22cd34(async _0x152be6=>{const _0x47dea4=_0x553ec9,_0x28d351=_0x152be6;if(_0x28d351['status']===0x191&&window[_0x47dea4(0x10a)](this[_0x47dea4(0x2c7)]['t'](_0x47dea4(0x24c)))){const _0xc573d2=window[_0x47dea4(0x19b)](window['location'][_0x47dea4(0x283)]);window[_0x47dea4(0x21e)][_0x47dea4(0x283)]=this[_0x47dea4(0x2de)]()+_0x47dea4(0x37e)+_0xc573d2;}return _0x28d351;}))});}[_0x51fc53(0x2de)](){const _0x2d1116=_0x51fc53;var _0x5d0f7e;return(_0x5d0f7e=this[_0x2d1116(0x2c4)][_0x2d1116(0xf0)](hn))!=null?_0x5d0f7e:ln;}};Ge=so([ot(0x0,_0x5977ca),ot(0x1,_0x4a7404(_0x142257)),ot(0x2,_0x4a7404(_0x201091))],Ge);var io=Object['defineProperty'],no=Object['getOwnPropertyDescriptor'],ro=(_0xf92792,_0x20849d,_0x50789d,_0x9f8557)=>{const _0x3744d4=_0x51fc53;for(var _0x1b8657=_0x9f8557>0x1?void 0x0:_0x9f8557?no(_0x20849d,_0x50789d):_0x20849d,_0x22207a=_0xf92792[_0x3744d4(0x2c6)]-0x1,_0x806c88;_0x22207a>=0x0;_0x22207a--)(_0x806c88=_0xf92792[_0x22207a])&&(_0x1b8657=(_0x9f8557?_0x806c88(_0x20849d,_0x50789d,_0x1b8657):_0x806c88(_0x1b8657))||_0x1b8657);return _0x9f8557&&_0x1b8657&&io(_0x20849d,_0x50789d,_0x1b8657),_0x1b8657;},ts=(_0x1da48b,_0x2596fc)=>(_0x3486db,_0x2c4f4b)=>_0x2596fc(_0x3486db,_0x2c4f4b,_0x1da48b);const oo='AUTHZ_URL_KEY',ao=_0x51fc53(0x120);let pt=class{constructor(_0x492a0d,_0xaf874f){const _0x3b94c5=_0x51fc53;this[_0x3b94c5(0x330)]=_0x492a0d,this[_0x3b94c5(0x2c4)]=_0xaf874f;}[_0x51fc53(0x1fb)](){const _0x1bd5d3=_0x51fc53;var _0xd7f3bf;return(_0xd7f3bf=this[_0x1bd5d3(0x2c4)][_0x1bd5d3(0xf0)](oo))!=null?_0xd7f3bf:ao;}async['create'](_0x18ebd9){const _0x4c2d47=_0x51fc53,_0x1d05f6=this[_0x4c2d47(0x1fb)]()+'/'+_0x18ebd9[_0x4c2d47(0xe0)]+_0x4c2d47(0xb1);return(await this[_0x4c2d47(0x330)][_0x4c2d47(0x13a)](_0x1d05f6,{'body':_0x18ebd9}))['body'][_0x4c2d47(0x332)]||'';}async['list'](_0xeb91d6){const _0x843e70=_0x51fc53,_0x4b1bf6=this[_0x843e70(0x1fb)]()+'/-/object/list';return(await this[_0x843e70(0x330)]['post'](_0x4b1bf6,{'body':_0xeb91d6}))[_0x843e70(0x211)]['objects'];}async[_0x51fc53(0x1d3)](_0x3f4715){const _0xc9fbc1=_0x51fc53,_0x383900=this[_0xc9fbc1(0x1fb)]()+'/'+_0x3f4715['objectType']+_0xc9fbc1(0x1af)+_0x3f4715['objectID'];await this['_HTTPService'][_0xc9fbc1(0x19a)](_0x383900,{'body':_0x3f4715});}async['allowed'](_0x341733){const _0x75c6ca=_0x51fc53,_0x8dec2f=this[_0x75c6ca(0x1fb)]()+'/'+_0x341733['objectType']+_0x75c6ca(0x1af)+_0x341733[_0x75c6ca(0x332)]+_0x75c6ca(0xb8);return(await this[_0x75c6ca(0x330)][_0x75c6ca(0x13a)](_0x8dec2f,{'body':_0x341733}))[_0x75c6ca(0x211)]['actions'];}async[_0x51fc53(0x160)](_0x469e93){const _0x30b7b9=_0x51fc53,_0x24be86=this['_getAPIPrefixPath']()+'/-/object/-/batch_allowed';return(await this[_0x30b7b9(0x330)][_0x30b7b9(0x13a)](_0x24be86,{'body':{'requests':_0x469e93}}))['body'][_0x30b7b9(0x2e0)];}async['listRoles'](_0x489096){const _0x50c006=_0x51fc53,_0x20897e=this['_getAPIPrefixPath']()+'/'+_0x489096[_0x50c006(0xe0)]+'/role',_0x1c3586=await this['_HTTPService'][_0x50c006(0x13a)](_0x20897e,{'body':_0x489096});return{'roles':_0x1c3586[_0x50c006(0x211)][_0x50c006(0x2d9)],'actions':_0x1c3586[_0x50c006(0x211)]['actions']};}async[_0x51fc53(0x31e)](_0x60e51d){const _0x1c7dd6=_0x51fc53,_0x40ed25=this[_0x1c7dd6(0x1fb)]()+_0x1c7dd6(0x270);await this['_HTTPService']['delete'](_0x40ed25,{'params':{'collaboratorID':_0x60e51d[_0x1c7dd6(0x28b)],'objectID':_0x60e51d['objectID'],'unitID':_0x60e51d['unitID']}});}async[_0x51fc53(0x149)](_0x3b843b){const _0x1221fb=_0x51fc53,_0x57ec72=this[_0x1221fb(0x1fb)]()+_0x1221fb(0x270);await this[_0x1221fb(0x330)][_0x1221fb(0x1f9)](_0x57ec72,{'body':_0x3b843b});}async[_0x51fc53(0x1fe)](_0x368d2e){const _0x552394=_0x51fc53,_0xd14a09=this['_getAPIPrefixPath']()+_0x552394(0x270);await this[_0x552394(0x330)][_0x552394(0x13a)](_0xd14a09,{'body':_0x368d2e});}async[_0x51fc53(0x2aa)](_0x34f926){const _0x36bfb0=_0x51fc53,_0x985755=this[_0x36bfb0(0x1fb)]()+_0x36bfb0(0x270);return(await this[_0x36bfb0(0x330)]['get'](_0x985755,{'params':{'objectID':_0x34f926[_0x36bfb0(0x332)],'unitID':_0x34f926[_0x36bfb0(0x1b1)]}}))['body'][_0x36bfb0(0x2ee)];}async['putCollaborators'](_0x12f01f){const _0xc530bf=_0x51fc53,_0x36e10b=this[_0xc530bf(0x1fb)]()+_0xc530bf(0x270);await this['_HTTPService']['put'](_0x36e10b,{'body':_0x12f01f});}};pt=ro([ts(0x0,_0x4a7404(_0x142257)),ts(0x1,_0x4a7404(_0x5977ca))],pt);var co=Object[_0x51fc53(0x18f)],ho=Object[_0x51fc53(0x340)],lo=(_0x2f849a,_0x499b1c,_0x12042c,_0x2a2c3b)=>{const _0x593acc=_0x51fc53;for(var _0x39bdbc=_0x2a2c3b>0x1?void 0x0:_0x2a2c3b?ho(_0x499b1c,_0x12042c):_0x499b1c,_0x4fedfe=_0x2f849a[_0x593acc(0x2c6)]-0x1,_0x1e91f4;_0x4fedfe>=0x0;_0x4fedfe--)(_0x1e91f4=_0x2f849a[_0x4fedfe])&&(_0x39bdbc=(_0x2a2c3b?_0x1e91f4(_0x499b1c,_0x12042c,_0x39bdbc):_0x1e91f4(_0x39bdbc))||_0x39bdbc);return _0x2a2c3b&&_0x39bdbc&&co(_0x499b1c,_0x12042c,_0x39bdbc),_0x39bdbc;},ss=(_0x243cee,_0x20db51)=>(_0x5cb5c7,_0x3b0a79)=>_0x20db51(_0x5cb5c7,_0x3b0a79,_0x243cee);const _o=[_0x51fc53(0x8b),_0x51fc53(0x1ff),_0x51fc53(0x32f),_0x51fc53(0x14f),_0x51fc53(0x297)],uo=0x5*0x400*0x400,fo=_0x51fc53(0x1c6),go=_0x51fc53(0x3a2),mo=_0x51fc53(0x1db),So='/universer-api/file/{fileID}/sign-url';let It=class{constructor(_0x1cbb99,_0x285535){const _0x11a1d7=_0x51fc53;l(this,_0x11a1d7(0x2ac),0x0),l(this,_0x11a1d7(0x227),new _0x5da41e()),l(this,_0x11a1d7(0x170),this['_change$']),l(this,_0x11a1d7(0x190),new Map()),(this[_0x11a1d7(0x322)]=_0x1cbb99,this[_0x11a1d7(0x2c4)]=_0x285535);}[_0x51fc53(0x324)](_0x50f673){const _0x187174=_0x51fc53;this['_waitCount']=_0x50f673,this['_change$'][_0x187174(0x275)](_0x50f673);}['getImageSourceCache'](_0x18c9be,_0x27d119){const _0x3b8f57=_0x51fc53;if(_0x27d119===_0x3a239e['BASE64']){const _0x4abb59=new Image();return _0x4abb59[_0x3b8f57(0xc9)]=_0x18c9be,_0x4abb59;}return this[_0x3b8f57(0x190)][_0x3b8f57(0x151)](_0x18c9be);}[_0x51fc53(0x155)](_0x58b183,_0x36a4b1,_0x1db395){const _0x18e811=_0x51fc53;_0x36a4b1===_0x3a239e['BASE64']||_0x1db395==null||this[_0x18e811(0x190)][_0x18e811(0x38f)](_0x58b183,_0x1db395);}async[_0x51fc53(0x2b2)](_0x1962b1){const _0x37cf0e=_0x51fc53;try{const _0x4e3bae=this[_0x37cf0e(0x9f)](this[_0x37cf0e(0x11c)](),''+_0x1962b1),_0x3c3fcf=(await this[_0x37cf0e(0x322)]['get'](_0x4e3bae))[_0x37cf0e(0x211)];return _0x3c3fcf['error']&&_0x3c3fcf['error']['code']===Cs['OK']?Promise[_0x37cf0e(0x1da)](_0x3c3fcf[_0x37cf0e(0x192)]):Promise['reject'](_0x3c3fcf[_0x37cf0e(0x24d)]);}catch(_0x1fdd62){return Promise[_0x37cf0e(0x1bb)](_0x1fdd62);}}async[_0x51fc53(0x1ae)](_0xf607e){const _0x161f06=_0x51fc53;let _0x246a31='';if(!_o[_0x161f06(0x11e)](_0xf607e[_0x161f06(0x2cd)]))return this['_decreaseWaiting'](),Promise[_0x161f06(0x1bb)](new Error(_0x59dd1c[_0x161f06(0x1e6)]));if(_0xf607e[_0x161f06(0x23a)]>uo)return this[_0x161f06(0x31a)](),Promise[_0x161f06(0x1bb)](new Error(_0x59dd1c[_0x161f06(0x130)]));try{const _0x8b046=new FormData();_0x8b046[_0x161f06(0x168)](_0x161f06(0x117),_0xf607e);const _0x2d4825=this[_0x161f06(0x298)]()+'?size='+_0xf607e[_0x161f06(0x23a)]['toString'](),_0x367de6=await(await fetch(_0x2d4825,{'method':'POST','body':_0x8b046}))[_0x161f06(0xac)]();if(typeof _0x367de6[_0x161f06(0x105)]!=_0x161f06(0x288))return this[_0x161f06(0x31a)](),Promise[_0x161f06(0x1bb)](new Error(_0x59dd1c[_0x161f06(0x2c5)]));_0x246a31=_0x367de6['FileId'];}catch{return this[_0x161f06(0x31a)](),Promise[_0x161f06(0x1bb)](new Error(_0x59dd1c[_0x161f06(0x2c5)]));}return new Promise((_0x583255,_0xd3083c)=>{const _0x49243f=_0x161f06,_0x2a9f48=new FileReader();_0x2a9f48[_0x49243f(0x2da)](_0xf607e),_0x2a9f48[_0x49243f(0xc0)]=_0x36d983=>{const _0x306cc7=_0x49243f;var _0x1c9cc8;const _0x22e939=(_0x1c9cc8=_0x36d983[_0x306cc7(0x24e)])==null?void 0x0:_0x1c9cc8[_0x306cc7(0x1a5)];if(_0x22e939==null){this[_0x306cc7(0x31a)](),_0xd3083c(new Error(_0x59dd1c[_0x306cc7(0x2c5)]));return;}const _0x42e3f6=_0x4cfbd7[_0x306cc7(0x300)](0x6);_0x583255({'imageId':_0x42e3f6,'imageSourceType':_0x3a239e[_0x306cc7(0x1e2)],'source':_0x246a31,'base64Cache':_0x22e939,'status':_0x59dd1c['SUCCUSS']}),this[_0x306cc7(0x31a)]();};});}['_getUploadFileURL'](){const _0x3cc03f=_0x51fc53;var _0x1768f9;return(_0x1768f9=this[_0x3cc03f(0x2c4)][_0x3cc03f(0xf0)](fo))!=null?_0x1768f9:go;}[_0x51fc53(0x11c)](){const _0x496d29=_0x51fc53;var _0x1622ce;return(_0x1622ce=this[_0x496d29(0x2c4)][_0x496d29(0xf0)](mo))!=null?_0x1622ce:So;}[_0x51fc53(0x9f)](_0x13c020,_0x374e5a){const _0x2eed41=_0x51fc53;return _0x13c020[_0x2eed41(0x3b9)](_0x2eed41(0x241),_0x374e5a);}[_0x51fc53(0x31a)](){const _0x71cd14=_0x51fc53;this['_waitCount']-=0x1,this['_change$'][_0x71cd14(0x275)](this[_0x71cd14(0x2ac)]);}};It=lo([ss(0x0,_0x4a7404(_0x142257)),ss(0x1,_0x5977ca)],It);var ys=Object['defineProperty'],vo=Object[_0x51fc53(0x340)],po=(_0x1787ee,_0x362944,_0xc67bd9)=>_0x362944 in _0x1787ee?ys(_0x1787ee,_0x362944,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xc67bd9}):_0x1787ee[_0x362944]=_0xc67bd9,Io=(_0x40951d,_0x81f0a1,_0x146d1b,_0x2766b0)=>{for(var _0x13aad7=_0x2766b0>0x1?void 0x0:_0x2766b0?vo(_0x81f0a1,_0x146d1b):_0x81f0a1,_0xaebeda=_0x40951d['length']-0x1,_0x5796a6;_0xaebeda>=0x0;_0xaebeda--)(_0x5796a6=_0x40951d[_0xaebeda])&&(_0x13aad7=(_0x2766b0?_0x5796a6(_0x81f0a1,_0x146d1b,_0x13aad7):_0x5796a6(_0x13aad7))||_0x13aad7);return _0x2766b0&&_0x13aad7&&ys(_0x81f0a1,_0x146d1b,_0x13aad7),_0x13aad7;},is=(_0x263d84,_0x1ea656)=>(_0x5e0a41,_0x464093)=>_0x1ea656(_0x5e0a41,_0x464093,_0x263d84),Eo=(_0x499c99,_0x5e5aa0,_0x4083d8)=>po(_0x499c99,_0x5e5aa0+'',_0x4083d8);const Co=_0x51fc53(0x237);let Et=class extends _0x5ab657{constructor(_0x2e15c3,_0x446586,_0x3a3284){const _0x38ccae=_0x51fc53;super(),this[_0x38ccae(0xcf)]=_0x2e15c3,this[_0x38ccae(0x37c)]=_0x446586,this[_0x38ccae(0x342)]=_0x3a3284;}[_0x51fc53(0x27c)](_0xf66743){const _0x59234b=_0x51fc53;var _0x14a502,_0x523c99,_0x1fff93,_0x93e493,_0xec068e;_0xf66743[_0x59234b(0x16c)](_0x5815e0)&&this[_0x59234b(0x37c)][_0x59234b(0x24d)](_0x59234b(0x2ce),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x32c73e=[[_0x5815e0,{'useClass':vt}],[Re],[At],[_0x142257],[As,{'useClass':Gr}],[ee],[D],[_0x1e9f90],[Ve],[ke],[Be],[Mt],[Ge],[Rs],[bs,{'useClass':(_0x523c99=(_0x14a502=this[_0x59234b(0xcf)])==null?void 0x0:_0x14a502[_0x59234b(0x1c9)])!=null?_0x523c99:_t}],[_0x38690b,{'useClass':_0x443f73}],[_0x3ad936,{'useClass':St}],[_0x5c087b,{'useClass':pt}],[_0x18bd4e,{'useClass':It}],[Ee],[He],[je],[xe],[ue]];(_0x1fff93=this[_0x59234b(0xcf)])!=null&&_0x1fff93['enableSingleActiveInstanceLock']&&_0x32c73e['push']([Xe,{'useClass':On}]),((_0x93e493=this[_0x59234b(0xcf)])==null?void 0x0:_0x93e493[_0x59234b(0x23d)])==null||this[_0x59234b(0xcf)]['collaborationUniverTypes'][_0x59234b(0x11e)](_0x3504ec[_0x59234b(0x351)])?_0x32c73e[_0x59234b(0x19d)]([$e]):this[_0x59234b(0xcf)][_0x59234b(0x23d)][_0x59234b(0x11e)](_0x3504ec[_0x59234b(0x32c)])&&_0x32c73e[_0x59234b(0x19d)]([Fe]),_0x32c73e=_0xd86ae6(_0x32c73e,(_0xec068e=this[_0x59234b(0xcf)])==null?void 0x0:_0xec068e['override']),_0x32c73e[_0x59234b(0x124)](_0x47740e=>_0xf66743[_0x59234b(0xe7)](_0x47740e)),_0xf66743[_0x59234b(0x151)](_0x142257)['registerHTTPInterceptor']({'priority':0x14,'interceptor':_0x5bab19({'maxParallel':0x6})}),this['_initModules']();}[_0x51fc53(0x198)](){const _0x126642=_0x51fc53;var _0x3ff55d,_0x3c95d0;(_0x3ff55d=this['_config'])!=null&&_0x3ff55d[_0x126642(0x21b)]||this[_0x126642(0x342)][_0x126642(0x151)](D)[_0x126642(0x329)](),(_0x3c95d0=this['_config'])!=null&&_0x3c95d0[_0x126642(0x17f)]&&this[_0x126642(0x342)][_0x126642(0x151)](Ge);}};Eo(Et,'pluginName',Co),Et=Io([_0x2e4016(_0x114daf),is(0x1,_0x3cb271),is(0x2,_0x4a7404(_0x44b6b8))],Et);export{oo as AUTHZ_URL_KEY,pt as AuthzIoHttpService,an as COLLAB_SUBMIT_CHANGESET_URL_KEY,zi as COLLAB_WEB_SOCKET_URL_KEY,Ee as CollaborationController,ut as CollaborationSession,Re as CollaborationSessionService,_t as CollaborationSocketService,P as CollaborationStatus,Or as CollaborationStatusDisplay,Rs as CommentService,He as DataLoaderController,je as DesktopCollaborationStatusDisplayController,qi as HEARTBEAT_INTERVAL_KEY,Is as HEARTBEAT_TIMEOUT_KEY,bs as ICollaborationSocketService,As as IURLService,rn as LOCAL_CACHE_INTERVAL_KEY,hn as LOGIN_URL_KEY,D as LocalCacheService,Xi as SEND_CHANGESET_TIMEOUT_KEY,Gi as SNAPSHOT_SERVER_URL_KEY,Ki as SNAPSHOT_URL_KEY,_e as SessionStatus,Et as UniverCollaborationClientPlugin,Gr as WebURLService,gn as deserializeToCombResponse,mn as serializeCombRequest};
|
1
|
+
const _0x29c6a6=_0x34fd;(function(_0x396b14,_0x50ab69){const _0x2af0c2=_0x34fd,_0x203107=_0x396b14();while(!![]){try{const _0x79b079=parseInt(_0x2af0c2(0x3f8))/0x1*(-parseInt(_0x2af0c2(0x22d))/0x2)+-parseInt(_0x2af0c2(0x1d7))/0x3+parseInt(_0x2af0c2(0x3ba))/0x4*(parseInt(_0x2af0c2(0x45d))/0x5)+parseInt(_0x2af0c2(0x3aa))/0x6*(parseInt(_0x2af0c2(0x263))/0x7)+parseInt(_0x2af0c2(0x3f5))/0x8+-parseInt(_0x2af0c2(0x360))/0x9+-parseInt(_0x2af0c2(0x31c))/0xa*(-parseInt(_0x2af0c2(0x444))/0xb);if(_0x79b079===_0x50ab69)break;else _0x203107['push'](_0x203107['shift']());}catch(_0x36c57a){_0x203107['push'](_0x203107['shift']());}}}(_0x438e,0xbdcb9));var xs=Object['defineProperty'],Fs=(_0x524972,_0x471264,_0x4a1fc7)=>_0x471264 in _0x524972?xs(_0x524972,_0x471264,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4a1fc7}):_0x524972[_0x471264]=_0x4a1fc7,l=(_0x14b81d,_0x2c47a7,_0x3244bd)=>Fs(_0x14b81d,typeof _0x2c47a7!='symbol'?_0x2c47a7+'':_0x2c47a7,_0x3244bd);import{Disposable as _0xc93720,toDisposable as _0x359428,UniverInstanceType as _0x17600d,UserManagerService as _0x24fbbe,IUniverInstanceService as _0x33e391,DisposableCollection as _0x3543bd,IConfigService as _0x575c32,ILogService as _0x2125ae,ISnapshotServerService as _0x2e217d,RxDisposable as _0x39fd47,LocaleService as _0x2f64f,ILocalStorageService as _0x3325f8,Tools as _0x1394f4,ICommandService as _0x594d06,JSONX as _0x4686a0,IPermissionService as _0x478858,IUndoRedoService as _0x58b491,sequenceExecute as _0x4025ef,OnLifecycle as _0x2d1123,LifecycleStages as _0xb39fe5,CommandType as _0x4dcc25,Rectangle as _0x35b9e8,ThemeService as _0x474371,Workbook as _0x9198e0,textEncoder as _0x395f16,b64DecodeUnicode as _0x44581b,LocalUndoRedoService as _0x59e73e,IContextService as _0x2d2798,COLORS as _0x82bf70,ColorKit as _0x323ad1,Plugin as _0x353e3b,IAuthzIoService as _0x2f8250,mergeOverrideWithDependencies as _0x55370c,DependentOn as _0x578ae7}from'@univerjs/core';import{SelectionManagerService as _0x543329,SetSelectionsOperation as _0x57025f,InsertSheetMutation as _0x2ae46a,WorkbookEditablePermission as _0x390ee3,RefRangeService as _0x5e51b6,EffectRefRangId as _0x2d6399,handleIRemoveRow as _0x508fe0,handleIRemoveCol as _0x5357dc,handleMoveRange as _0x49f706,handleInsertRow as _0x5152e3,handleInsertRangeMoveRight as _0x3c5fe4,handleInsertRangeMoveDown as _0x5d05d0,handleInsertCol as _0x180534,handleDeleteRangeMoveUp as _0x5b7d4a,handleDeleteRangeMoveLeft as _0x23fee4,runRefRangeMutations as _0x1f0979,SetWorksheetActivateCommand as _0x3b91fc}from'@univerjs/sheets';import{MessageType as _0x15c0da}from'@univerjs/design';import{IBeforeCloseService as _0x3ef89e,IMessageService as _0x367db8,INotificationService as _0x4ee021,useObservable as _0x2b20e3,BuiltInUIPart as _0x1f5713,IUIPartsService as _0x38bd02}from'@univerjs/ui';import{CollaborationEvent as _0x5911b8,parseChangesetToProtocol as _0x12ffd7,RevisionService as _0x353354,isTransformMutationFailure as _0x42961a,isTransformMutationsWithChangesetSuccess as _0x589ac1,ITransformService as _0xd13d4c,mapDocumentTypeToUniverType as _0x385526,isTransformChangesetsSuccess as _0x389cf2,CompressMutationService as _0x969bae,parseProtocolChangeset as _0x8de20b,SnapshotService as _0x17638f,isTransformMutationsWithChangesetFailure as _0x4703e4,UniverCollaborationPlugin as _0x8aafa7}from'@univerjs-pro/collaboration';function _0x438e(){const _0x471b9e=['docStateChange$','dispose$','patch','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','Unknown\x20user','socketService','_onCursorUpdate','onMissingChangesets','UNIVER_COLLABORATION_CLIENT_PLUGIN','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','_event$','collabCursorState$','[CollaborationUndoRedoService]','onCommentUpdate','setShapeProps','conflict','interceptor','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_tryEnsureSocket','findNodePositionByCharIndex','_initStatusComponent','_status$','updateCollaborator','slice','_updateLocalCursor','transform','getCellPositionByOffset','transformByState','_clearOtherTimers','ERROR_IMAGE','_localeService','_getUndoStack','appendMutation','string','error','tag','_startDocCollabCursor','pushState','allowed','7160535lMPuUw','assignAColorForMemberID','get','debug','_joinRoom','mutations','_waitCount','_transformService','submit\x20changeset\x20error!','_transformRemoteChangesetByIMECache','_undoRedoService','collaMsg','searchParams','transformIMECache','getActiveSheet','isActive','whenReady','activeSheet$','hovered','_document','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','_socket','stringify','_removeCollabCursors','dispose','not_collab','_getMergeRange','RECV','INTERNAL_ERROR','parse','getViewport','MoveRangeCommandId','[OfflineState]:\x20received\x20rejection.','change$','changesets','DeleteRangeMoveUpCommandId','append','none','_disableEditing','_redoStacks','HEARTBEAT_INTERVAL','sheetId','_saveTaskMap','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_send','getUnitId','_getRedoStack','LICENSE_MAX_UNITS_EXCEEDED','UNKNOWN_CODE','_clearTimeoutTimer','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','collaboratorID','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','url','_sendHeartbeat','synced','_anchorDot','FETCH_MISS','FETCH_MISSING','black','propertyIsEnumerable','OTHER_CLIENTS_EDITING','getImageSourceCache','_submitChangeset','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','RETRY_CONNECTING_INTERVAL','onMouseMove','_scheduleClearOtherTimer','reject','event$','LICENSE_DISTRO_REJECTED','path','_session','hasOwnProperty','180eWCxye','registerHTTPInterceptor','COLLAB_SUBMIT_CHANGESET_URL','getUnitStatus$','measureText','next','M0\x200H16V16H0z','_onConnectionFailed','editing\x20status\x20changed\x20to','CONNECTOR_DATA_TOO_LARGE','UNIVER_SHEET','_scheduleTimestamp','getRelativeCoord','_docSyncEditingCollabCursorService','roomInfos','updateMember','1170284YUZZaj','_imageSourceCache','random','loadOfflineData','?size=','_toggleOnline','pending','filter','enableOfflineEditing','createCollaborator','AWAITING_WITH_PENDING','_drawRange','clear','params','fetch_missing','liveShareNewHost','CHANGESET_REJ','[CollaborationSessionService]','getImage','_handleEvent','baseRev','_onRecvEvent','currentSkeleton$','image/bmp','_members','_renderManagerService','getMergeData','getValue','_cachedData','_commandService','_syncEditingCollabCursor','_transformUndoRedoStack','InsertRangeMoveRightCommandId','setCurrentUser','_substituteUndoStack','evenodd','registerComponent','_change$','_retryCount','saveSnapshot','history','_colorIndex','lineTo','_selfUnitIDs','/universer-api/authz','[PendingState]:\x20received\x20acknowledgement.','_startCollaboration','startColumn','status','LIVESHARE_FETCH_OPERATIONS','_createSocket','awaiting_with_pending','_socketReady','reduce','data','_config','UNIVER_DOC','defineProperty','className','3009992lmFRDv','pauseCollaboration','ALREADY_EXISTS','308jCecvV','encode','close','_lockTransition','override','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','onlineStatusTitle','_removeRoom','jiqing500','fetchMissingChangesets','_updateURLWithCurrentState','awaiting','result','top','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_isPermissionRej','HEADER_MENU','_collaborationController','/new_changes','[DataLoaderController]','json','userID','objects','transformMutation','_onRefRangeChange','_incrementRevisionNumber','_color','...','MUTATION','off-line-single_clip0_910_343','_getCurrentRevision','subunit','INVALID_ARGUMENT','?url=','_getDocObject','image/gif','row','onCommandExecuted','generateRandomId','labelPosition','_substituteRedoStack','_syncEditingCollabCursorService','flatMap','getUnitOnRev','_userManagerService','error$','_messageService','addEventListener','CONFLICT','/object','arc','UNIVER_UNKNOWN','transformRemoteChangeset','_clearCollaborationTimeoutTimer','getSheetBySheetId','UNRECOGNIZED','AUTHZ_URL_KEY','length','/rev/','getCurrentRevForDocument','onRemoteChangeset','c2Prime','univer-online','children','state','_handleHeartbeatEvent','createInstance','\x20-\x20','_checkMissing','_rescheduleHeartbeatEvent','CHANGESET_ACK','_handleHover','_loadSheet','IDLE','/-/object/-/batch_allowed','leaveEvent','11OCgDLD','blue400','addObject','registerBeforeClose','LOGIN_URL_KEY','_docStateChangeManagerService','sheetID','COMPLETION_FINISHED','unit-cache-','PERMISSION_REJ','_themeService','syncEditingCollabCursor','c1Prime','LIVESHARE_OPERATION','getOffsetConfig','verdancy600','entries','unsubscribe','updatePermissionPoint','delete','unitId','_initModules','_updateStatus','_anchor','_updateCollabCursors','25flMyEK','image/jpg','message$','subscribe','newCsEvent','_assignedColors','getCurrent','doc.mutation.rich-text-editing','fetchThroughInterceptors','_cursors','_queuedRemoteChangesets','INGEST','[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.','clearTimeout','getRoom','endColumn','function','Error','has','getScrollXYByRelativeCoords','restore','NEW_CHANGESETS','collab-text-anchor-','joinEvent','_remoteChangesetQueue','UUID','univer-pro.collaboration-client-socket-service','_notificationService','_collaborationTimeoutTimer','show','name','onStarting','_singleActiveUnitService','open$','sheets','_commentUpdate$','getRenderById','_removeClearOtherTimer','NOT_COLLAB','_permissionService','NO_OTHER_CLIENTS_EDITING','uni.network.url-service','commentUpdate$','_online','resend','newValue','univer-pro.collaboration-client.single-active-unit-service','getMemberID','_refRangeService','getOwnPropertyDescriptor','onRemoteRej','ONLINE','fetching\x20missing\x20changesets\x20from\x20','_getSaveTimeout','_roomMembers','column','univer-online-status','_state$','add','conflict.title','collab-text-range-','_getSendChangesetTimeout','_univerInstanceService','USERS_LEAVE','saveImage','beginPath','getRangePointData','bottom','LIVESHARE_NEW_HOST','size','from','_cursor','batchAllowed','setInterval','/collaborator','_colorAssignService','_clearHeartbeatTimer','_sheetTransformSelectionsService','url(#$1','YUUMI_URL_COL_OUT_OF_RANGE','getSheetBlock','displayName','subscribeEvent','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_onRemoteChangeset','_scene','removeParam','/fetchmissing?from=','OFFLINE','_onCursorDelete','_getLoginPath','getCurrentUser','enableSingleActiveInstanceLock','HEARTBEAT','getItem','Starting','_setupBeforeClosingHandler','onTransformSelections','body','[OfflineState]:\x20received\x20acknowledgement.','/universer-api/snapshot','_getAnchorBounding','_docSkeletonManagerService','#fff','onSendChangeset','AWAITING','LIVESHARE_REQUEST_HOST','status$','unload','APPLY_PERMISSION_DENIED','univerjs-icon\x20univerjs-icon-','_saveCache','split','_onUserLeave','TOO_MANY_REQUESTS','originalMeta','getTypeOfUnitDisposed$','translate(.97)','[CollaborationEntity]','_applyRemoteChangeset','currentColor','OffLineSingle','/unit/','COLLAB_WEB_SOCKET_URL','_entities','_roomMembers$','asObservable','pipe','getUniverSheetInstance','clearInterval','\x20to\x20','_localStorageService','_compressMutationService','SUBMIT_CHANGESET','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_textBubble','rev','requireSession','_onConflict','incrementRevForDocument','onSyncEditingCollabCursor','_pendingMutations','JOIN','getCurrentUnitForType','cursorInfo$','HEARTBEAT_TIMEOUT','call','cmd','HELLO','session.collaboration-timeout','getDataModel','univer-online-status-title','_snapshotService','COMPRESS_MUTATION_APPLY','putCollaborators','_scheduleCollaborationTimeoutTimer','_updateLocalCache','isPermissionRej','_awaitingChangeset','_socketMessageSubscription','fromCollab','permission.content','on-line-single_clip0_910_349','_handler','unitID','_onMessage','onlineStatus','sessionStatus$','_clearLocalCache','_shapes','Ready','_transitionLocked','LICENSE_IMPORT_SIZE_EXCEEDED','toString','\x0aCurrent:\x20','_heartbeatTimer','session.room-full','2500425WpmCRC','_collaborationPaused','getUnitType','RETRY_CONNECTING_MAX_COUNT','idSuffix','updateOfflineData','readAsDataURL','selections','saveOfflineData','_createInitialStateImpl','_showConflictNotification','urlChange$','contains','_updateSubUnitFromURLParams','collabStatus.synced','setParam','key','skeleton','on-line-single','DEFAULT_FILE_NAME','_decreaseWaiting','_localCacheService','getCollabCursors$','href','_handleJoinEvent','substring','APPLY_REJECT','&to=','PENDING','_toggleOffline','find','concat','getTypeOfUnitAdded$','_labelPosition','map','xlink:href','disposeWithMe','drawWith','_socket$','enableAuthServer','csRejEvent','_onRemoteACK','assign','editingUnit','_exhaustSavingTask','[OfflineState]:\x20received\x20changeset.','_waitForHeartbeatResponse','_id','transformChangesets','_httpService','JOINING','COMMENT_UPDATE','_initStatusListener','EXCHANGE_SIGN_URL_SERVER_URL_KEY','UniverIcon','_scheduleReconnection','deepClone','/object/','_configService','_range','VIEW_MAIN','_logService','objectID','transformMutationsWithChangeset','_getSnapshotAPIPrefix','_ws','UNDEFINED','_replaceFileID','includes','isArray','transformSelections','fillText','text','loadSheet','unknown','Steady','_http','textRanges','_hideTimer','onload','routeKey','getInterceptPoints','permission.title','executeCommand','_transformSelections','InsertColCommandId','8516yRLYOS','clipPath','SEND_CHANGESET_TIMEOUT','_revisionService','_socketService','SNAPSHOT_INVALID_SNAPSHOT','online','_draw','cursorInfo','type','updateCursorEvent','InsertRowCommandId','_getCtorByUniverType','code','permissionRejEvent','_memberService','socket\x20close','init','members','_beforeCloseService','color','toggleOffline','post','getAncestorScale','workbook','_sessions','addImageSourceCache','_loadDoc','getMember','auth.needGotoLoginAlert','deleteCollaborator','_getSignURL','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','getResourcesRequest','onStateChange','values','indexOf','_HTTPService','colorChannel1','_onRemoteRejected','_handleLeaveEvent','onMissedChangesetFetched','createSocket','COMPRESS_MUTATION_SEND','_eventUnsubscribe','m1Prime','_render','_scheduleSaving','collabStatus.offline','getActiveRange','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','setTimeout','list','collaboration.single-unit.warning','198828kNaOZo','memberID','defs','_collabSessionService','onTransformRemoteChangesetByIMECache','APPLY_NON_SEQUENTIAL_REVISION','NOT_FOUND','font','getTime','_docTransformIMECacheService','replaceState','_name','_init','_entityInit$','SNAPSHOT_HAS_BEEN_REMOVED','_executeRemoteChangeset','closePath','_startSheetCollabCursor','_sendingTimer','collabStatus.notCollab','_getSheetObject','ranges','ERROR_IMAGE_TYPE','session','_onCombEvent','actions','unit','confirm','RemoveRowCommandId','univer-online-status-icon','disableLocalCache','disposeUnit','_sheetSkeletonManagerService','roomMembers','_setupSubUnitSync','failed\x20to\x20apply\x20missed\x20changesets!','url(#on-line-single_clip0_910_349)','addObjects','_hovered','max','_scheduleHeartbeat','setActiveRange','sessionStatus','localeService','RemoveColCommandId','put','_ensureSubject','compose','send','with','Error\x20on\x20receiving\x20event','MSG_FOR_ERROR','m2Prime','_uiPartsService','_commentService','moveTo','getConfig','_onLocalMutation','unshift','[CollaborationSession]','LIVESHARE_TERMINATE','_getAPIPrefix','icon','_state','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','{fileID}','/universer-api/stream/file/upload','/-/object/list','setUndoRedoMutationParamsCache','save','_snapshotServerService','UPDATE_CURSOR','prototype','liveShareOperation','onPointerEnter$','enableLocalCache','BASE64','registerRefRange','toggleOnline','extend','_acknowledgedAwaitingChangeset','_sendHeartbeatTimer','height','popstate','catch','min','listRoles','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','getSheetId','setItem','encodeURIComponent','_timeoutTimer','_collabCursorController','hide','DeleteRangeMoveLeftCommandId','[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.','off-line-single','svg','_retryConnectingTimer','gold400','_hover','round','_getAPIPrefixPath','FromArray','[CollaborationState]:\x20apply\x20error!','attrs','FileId','[SyncedState]:\x20received\x20acknowledgement.','ERROR_EXCEED_SIZE','[PendingState]:\x20received\x20rejection.','setWaitCount','selection','roles','getParam','fill','removeMember','fillStyle','_fetchMissChangesets','_cursorInfo$','isEditing','connection\x20error','_onUserJoin','div','offline','_lastPointer','saveChangeset','getFocusedUnit','_undoStacks','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_getScale','0\x200\x2017\x2016','awaitingChangeset','_urlService','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','all','joinRsp','/universer-api/oidc/authpage','collaborationUniverTypes','complete','_onJoinRoomEvent','CHANGESET_REVISION_CONFILICT','_disabled','getOwnPropertySymbols','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_createHandler','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','getCollabEntity$','USERS_ENTER','push','createElement','_updateState','eventID','_clearRedo','_unitOnClients','_exhaustRemoteChangesetQueue','objectType','LICENSE_EXPORT_SIZE_EXCEEDED','FAIL','file','_transformUndoredo','_schedule','collabStatus.conflict','getSelections','image/jpeg','range','_transformPreviousActiveRange','UNKNOWN_CMD','_onFetchMissResult','roomMembers$','_onConnectionOpen','SYNCED','_drawAnchor','width','_unlockTransition','PSEUDO_FETCH_MISSING_RESULT','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_getUploadFileURL','UNIVER_SLIDE','current','_replayCachedMutations','_clearUndo','[PendingState]:\x20unhandled\x20univer\x20type:\x20','1em','defIds','forEach','10267310bPkzGe','onRemoteAck','_type','_injector','set','_collabCursorState$','csAckEvent','_transformStack','getCollabEntity','_unitId','create','then','\x20in\x20_schedule.','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','LEAVE','SNAPSHOT_URL_KEY','Warning','\x0aAfter:\x20','replace','revision','_unitID','onPointerLeave$','UNAUTHENTICATED','location','_clearScheduledTask','_sessionStatus$','_createInitialState','focused$','triggerDblclick'];_0x438e=function(){return _0x471b9e;};return _0x438e();}import{Inject as _0x558bc4,createIdentifier as _0x451f50,Injector as _0x4ead3f,Optional as _0x2cbf69}from'@wendellhu/redi';import{merge as _0x2e2fc7,Subject as _0x2ef673,BehaviorSubject as _0x2ae6a5,distinctUntilChanged as _0x362e05,fromEvent as _0x68731a,of as _0x41c67f,takeUntil as _0x26437e,debounceTime as _0x3c2ea7,filter as _0x4b51e3,switchMap as _0x3931dc,combineLatest as _0x45bbb6,shareReplay as _0x133b83,mapTo as _0x4225bf,concatMap as _0x3efc49}from'rxjs';import{map as _0x6aec6c,takeUntil as _0x380119,take as _0x1c0ea1,filter as _0x7426b5,delay as _0x4f7269,shareReplay as _0x4f7c12,switchMap as _0x5e300c}from'rxjs/operators';import{IMEInputManagerService as _0x25857e,TextSelectionManagerService as _0x4c35a6,serializeTextRange as _0x547357,DocStateChangeManagerService as _0x2a623e,SetTextSelectionsOperation as _0x3476b3,RichTextEditingMutation as _0x4f4c8f,getDocObject as _0xfcb5c7,DocSkeletonManagerService as _0x5e1842}from'@univerjs/docs';import{HTTPService as _0x180bd0,WebSocketService as _0x1ee783,IHTTPImplementation as _0xb8d666,XHRHTTPImplementation as _0x3c390c,ThresholdInterceptorFactory as _0x19e0db}from'@univerjs/network';import{ImageSourceType as _0x23f70d,ImageUploadStatusType as _0x2808dd,IImageIoService as _0x2325f4}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x511cc9,serializeRangeWithSheet as _0x2a0dc7}from'@univerjs/engine-formula';import _0x284565 from'lodash/debounce';import{Shape as _0x169d33,Rect as _0x274a4d,Vector2 as _0x27c809,IRenderManagerService as _0x3bdd8b,NodePositionConvertToCursor as _0x473a03,getColor as _0x960864,TEXT_RANGE_LAYER_INDEX as _0x3d5abd,RegularPolygon as _0xba4fd4}from'@univerjs/engine-render';import{SheetSkeletonManagerService as _0x53c5c9,VIEWPORT_KEY as _0x594710,getCoordByCell as _0x53d697,getSheetObject as _0x2b1a41}from'@univerjs/sheets-ui';import{useDependency as _0x4e0bd3,connectInjector as _0x5254e3}from'@wendellhu/redi/react-bindings';import _0x103fdd,{forwardRef as _0x45e47d,useRef as _0x49f40c,createElement as _0x1b0b54}from'react';import _0x3c1621 from'clsx';import{IRemoteInstanceService as _0x4b3972}from'@univerjs/rpc';const Gi='SNAPSHOT_SERVER_URL_KEY',Yi=_0x29c6a6(0x4c1),Ki=_0x29c6a6(0x32b),Xi=_0x29c6a6(0x22f),Ji=0x7d0,zi=_0x29c6a6(0x4d8),Zi='ws://127.0.0.1:8000/universer-api/comb/connect',qi=_0x29c6a6(0x388),Qi=0x7530,Is=_0x29c6a6(0x4ee),Es=0x2710,en=_0x29c6a6(0x3a1),tn=0x4e20,sn=_0x29c6a6(0x1da),nn=0x3,rn='LOCAL_CACHE_INTERVAL',on=0x3e8,an=_0x29c6a6(0x3ac),cn='/universer-api/comb',hn=_0x29c6a6(0x448),ln=_0x29c6a6(0x2eb);var Cs=(_0x522787=>(_0x522787[_0x522787[_0x29c6a6(0x219)]=0x0]=_0x29c6a6(0x219),_0x522787[_0x522787['OK']=0x1]='OK',_0x522787[_0x522787[_0x29c6a6(0x37c)]=0x2]=_0x29c6a6(0x37c),_0x522787[_0x522787['PERMISSION_DENIED']=0x3]='PERMISSION_DENIED',_0x522787[_0x522787[_0x29c6a6(0x269)]=0x4]='NOT_FOUND',_0x522787[_0x522787['UNAUTHENTICATED']=0x5]=_0x29c6a6(0x332),_0x522787[_0x522787[_0x29c6a6(0x3f7)]=0x6]=_0x29c6a6(0x3f7),_0x522787[_0x522787[_0x29c6a6(0x418)]=0x7]='INVALID_ARGUMENT',_0x522787[_0x522787[_0x29c6a6(0x4cf)]=0x8]='TOO_MANY_REQUESTS',_0x522787[_0x522787[_0x29c6a6(0x44b)]=0x9]='COMPLETION_FINISHED',_0x522787[_0x522787[_0x29c6a6(0x2ef)]=0x1389]=_0x29c6a6(0x2ef),_0x522787[_0x522787[_0x29c6a6(0x232)]=0x1771]=_0x29c6a6(0x232),_0x522787[_0x522787[_0x29c6a6(0x271)]=0x1772]=_0x29c6a6(0x271),_0x522787[_0x522787[_0x29c6a6(0x1f1)]=0x1b59]='APPLY_REJECT',_0x522787[_0x522787[_0x29c6a6(0x268)]=0x1b5a]=_0x29c6a6(0x268),_0x522787[_0x522787['APPLY_REVISION_CONFILICT']=0x1b5b]='APPLY_REVISION_CONFILICT',_0x522787[_0x522787[_0x29c6a6(0x4ca)]=0x1b5c]=_0x29c6a6(0x4ca),_0x522787[_0x522787['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x29c6a6(0x3b3),_0x522787[_0x522787[_0x29c6a6(0x38f)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x522787[_0x522787[_0x29c6a6(0x2e3)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x522787[_0x522787[_0x29c6a6(0x1d2)]=0x232b]=_0x29c6a6(0x1d2),_0x522787[_0x522787[_0x29c6a6(0x2ff)]=0x232c]=_0x29c6a6(0x2ff),_0x522787[_0x522787[_0x29c6a6(0x3a6)]=0x232d]=_0x29c6a6(0x3a6),_0x522787[_0x522787['YUUMI_UNABLE_LOAD_URL']=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x522787[_0x522787[_0x29c6a6(0x4ac)]=0x2712]=_0x29c6a6(0x4ac),_0x522787[_0x522787[_0x29c6a6(0x42f)]=-0x1]=_0x29c6a6(0x42f),_0x522787))(Cs||{}),H=(_0x30793d=>(_0x30793d[_0x30793d[_0x29c6a6(0x42b)]=0x0]='UNIVER_UNKNOWN',_0x30793d[_0x30793d[_0x29c6a6(0x3f2)]=0x1]=_0x29c6a6(0x3f2),_0x30793d[_0x30793d['UNIVER_SHEET']=0x2]=_0x29c6a6(0x3b4),_0x30793d[_0x30793d[_0x29c6a6(0x314)]=0x3]=_0x29c6a6(0x314),_0x30793d[_0x30793d[_0x29c6a6(0x42f)]=-0x1]='UNRECOGNIZED',_0x30793d))(H||{}),I=(_0x12b4d2=>(_0x12b4d2[_0x12b4d2['UNKNOWN_CMD']=0x0]=_0x29c6a6(0x309),_0x12b4d2[_0x12b4d2[_0x29c6a6(0x1ba)]=0x1]=_0x29c6a6(0x1ba),_0x12b4d2[_0x12b4d2[_0x29c6a6(0x4eb)]=0x2]=_0x29c6a6(0x4eb),_0x12b4d2[_0x12b4d2[_0x29c6a6(0x32a)]=0x3]=_0x29c6a6(0x32a),_0x12b4d2[_0x12b4d2[_0x29c6a6(0x468)]=0x4]=_0x29c6a6(0x468),_0x12b4d2[_0x12b4d2[_0x29c6a6(0x4ba)]=0x5]=_0x29c6a6(0x4ba),_0x12b4d2[_0x12b4d2[_0x29c6a6(0x37b)]=0x6]=_0x29c6a6(0x37b),_0x12b4d2[_0x12b4d2[_0x29c6a6(0x42f)]=-0x1]=_0x29c6a6(0x42f),_0x12b4d2))(I||{}),Nt=(_0xfc2511=>(_0xfc2511[_0xfc2511['UNKNOWN_CODE']=0x0]=_0x29c6a6(0x390),_0xfc2511[_0xfc2511['OK']=0x1]='OK',_0xfc2511[_0xfc2511[_0x29c6a6(0x300)]=0x2]=_0x29c6a6(0x300),_0xfc2511[_0xfc2511[_0x29c6a6(0x42f)]=-0x1]='UNRECOGNIZED',_0xfc2511))(Nt||{}),_n=Object[_0x29c6a6(0x3f3)],un=Object[_0x29c6a6(0x48e)],dn=(_0x212a8d,_0x3fee49,_0x3e6cca,_0x3bf492)=>{const _0x1e2bff=_0x29c6a6;for(var _0x48fdcd=_0x3bf492>0x1?void 0x0:_0x3bf492?un(_0x3fee49,_0x3e6cca):_0x3fee49,_0x321233=_0x212a8d[_0x1e2bff(0x431)]-0x1,_0x5085b9;_0x321233>=0x0;_0x321233--)(_0x5085b9=_0x212a8d[_0x321233])&&(_0x48fdcd=(_0x3bf492?_0x5085b9(_0x3fee49,_0x3e6cca,_0x48fdcd):_0x5085b9(_0x48fdcd))||_0x48fdcd);return _0x3bf492&&_0x48fdcd&&_n(_0x3fee49,_0x3e6cca,_0x48fdcd),_0x48fdcd;},Wt=(_0x8a1025,_0x53ef44)=>(_0x27983f,_0x276b45)=>_0x53ef44(_0x27983f,_0x276b45,_0x8a1025);let ee=class extends _0xc93720{constructor(_0x4d0f96,_0x14cd35){const _0x2f6708=_0x29c6a6;super(),l(this,'_roomMembers',new Map()),(this['_univerInstanceService']=_0x4d0f96,this[_0x2f6708(0x424)]=_0x14cd35,this['disposeWithMe'](_0x359428(_0x2e2fc7(this['_univerInstanceService'][_0x2f6708(0x4d1)](_0x17600d[_0x2f6708(0x3b4)])[_0x2f6708(0x4dc)](_0x6aec6c(_0x2bb1dc=>_0x2bb1dc[_0x2f6708(0x38d)]())),this[_0x2f6708(0x49b)][_0x2f6708(0x4d1)](_0x17600d[_0x2f6708(0x3f2)])[_0x2f6708(0x4dc)](_0x6aec6c(_0x2bdce6=>_0x2bdce6[_0x2f6708(0x38d)]())),this['_univerInstanceService'][_0x2f6708(0x4d1)](_0x17600d['UNIVER_SLIDE'])[_0x2f6708(0x4dc)](_0x6aec6c(_0x49490f=>_0x49490f[_0x2f6708(0x38d)]())))[_0x2f6708(0x460)](_0x1ddf17=>this[_0x2f6708(0x3ff)](_0x1ddf17)))));}[_0x29c6a6(0x3db)](_0x1998c1){const _0x24a225=_0x29c6a6;this[_0x24a225(0x424)][_0x24a225(0x3db)](_0x1998c1);}[_0x29c6a6(0x4b8)](){const _0x3c76fc=_0x29c6a6;return this[_0x3c76fc(0x424)][_0x3c76fc(0x4b8)]();}[_0x29c6a6(0x3b9)](_0x4bf027,_0x138b04){const _0x1dc938=_0x29c6a6;let _0x4fb6a7=this[_0x1dc938(0x493)]['get'](_0x4bf027);_0x4fb6a7||(_0x4fb6a7=new fn(),this[_0x1dc938(0x493)]['set'](_0x4bf027,_0x4fb6a7)),_0x4fb6a7['updateMember'](_0x138b04);}['removeMember'](_0x19a15e,_0x46f601){const _0x33d335=_0x29c6a6,_0x3a48d7=this[_0x33d335(0x493)][_0x33d335(0x362)](_0x19a15e);_0x3a48d7&&_0x3a48d7[_0x33d335(0x2d6)](_0x46f601);}[_0x29c6a6(0x46b)](_0x500603){const _0x3cdc83=_0x29c6a6;return this[_0x3cdc83(0x493)][_0x3cdc83(0x362)](_0x500603);}[_0x29c6a6(0x249)](_0x38cf7b,_0x588f50){const _0x6adf0d=_0x29c6a6,_0x3226d7=this[_0x6adf0d(0x493)][_0x6adf0d(0x362)](_0x38cf7b);if(_0x3226d7)return _0x3226d7[_0x6adf0d(0x249)](_0x588f50);}['_removeRoom'](_0x2cc273){const _0x329ce2=_0x29c6a6,_0x359ef5=this[_0x329ce2(0x493)][_0x329ce2(0x362)](_0x2cc273);_0x359ef5&&(_0x359ef5['dispose'](),this[_0x329ce2(0x493)][_0x329ce2(0x457)](_0x2cc273));}['dispose'](){const _0x540606=_0x29c6a6;this[_0x540606(0x493)][_0x540606(0x31b)](_0x3e36d9=>_0x3e36d9[_0x540606(0x378)]()),this[_0x540606(0x493)][_0x540606(0x3c6)]();}};ee=dn([Wt(0x0,_0x33e391),Wt(0x1,_0x558bc4(_0x24fbbe))],ee);class fn extends _0xc93720{constructor(){const _0x15295e=_0x29c6a6;super(...arguments),l(this,_0x15295e(0x3d2),new Map());}[_0x29c6a6(0x378)](){const _0x10ffa6=_0x29c6a6;this[_0x10ffa6(0x3d2)][_0x10ffa6(0x3c6)]();}[_0x29c6a6(0x3b9)](_0x35fac7){const _0x2af3a8=_0x29c6a6;this['_members'][_0x2af3a8(0x320)](_0x35fac7[_0x2af3a8(0x264)],_0x35fac7);}[_0x29c6a6(0x2d6)](_0x480c77){const _0x5ebe18=_0x29c6a6;this[_0x5ebe18(0x3d2)][_0x5ebe18(0x457)](_0x480c77);}[_0x29c6a6(0x249)](_0xfeb500){const _0x328c40=_0x29c6a6;return this[_0x328c40(0x3d2)][_0x328c40(0x362)](_0xfeb500);}}function gn(_0x373106){const _0x586f87=_0x29c6a6;var _0x2498fc,_0x4a78b0,_0x4008a6,_0x5437ca;const _0x30bd5a=_0x373106[_0x586f87(0x3f0)],_0x34b29a=JSON[_0x586f87(0x37d)](_0x30bd5a);switch(_0x34b29a['cmd']){case I[_0x586f87(0x4ba)]:case I['HELLO']:{const _0x4deb55=_0x34b29a['infoRsp'];return{..._0x34b29a,'data':_0x4deb55,'cmd':_0x34b29a[_0x586f87(0x1b9)]};}case I[_0x586f87(0x4eb)]:{const _0x286fd7=_0x34b29a[_0x586f87(0x2ea)];return{..._0x34b29a,'data':_0x286fd7,'cmd':_0x34b29a[_0x586f87(0x1b9)]};}case I[_0x586f87(0x37b)]:{const _0x58531e=_0x34b29a[_0x586f87(0x36b)];switch(_0x58531e[_0x586f87(0x2fa)]){case _0x5911b8[_0x586f87(0x44d)]:return{..._0x34b29a,'data':{..._0x58531e,'data':(_0x2498fc=_0x58531e[_0x586f87(0x23b)])==null?void 0x0:_0x2498fc['cs']},'cmd':_0x34b29a['cmd']};case _0x5911b8[_0x586f87(0x43e)]:return{..._0x34b29a,'data':{..._0x58531e,'data':(_0x4a78b0=_0x58531e[_0x586f87(0x322)])==null?void 0x0:_0x4a78b0['cs']},'cmd':_0x34b29a['cmd']};case _0x5911b8['NEW_CHANGESETS']:return{..._0x34b29a,'data':{..._0x58531e,'data':(_0x4008a6=_0x58531e[_0x586f87(0x461)])==null?void 0x0:_0x4008a6['cs']},'cmd':_0x34b29a[_0x586f87(0x1b9)]};case _0x5911b8['CHANGESET_REJ']:return{..._0x34b29a,'data':{..._0x58531e,'data':(_0x5437ca=_0x58531e[_0x586f87(0x1ff)])==null?void 0x0:_0x5437ca['cs']},'cmd':_0x34b29a[_0x586f87(0x1b9)]};case _0x5911b8[_0x586f87(0x2aa)]:return{..._0x34b29a,'data':{..._0x58531e,'data':_0x58531e[_0x586f87(0x237)]},'cmd':_0x34b29a[_0x586f87(0x1b9)]};case _0x5911b8[_0x586f87(0x2f6)]:return{..._0x34b29a,'data':{..._0x58531e,'data':_0x58531e[_0x586f87(0x474)]},'cmd':_0x34b29a[_0x586f87(0x1b9)]};case _0x5911b8[_0x586f87(0x49c)]:return{..._0x34b29a,'data':{..._0x58531e,'data':_0x58531e[_0x586f87(0x443)]},'cmd':_0x34b29a[_0x586f87(0x1b9)]};case _0x5911b8['LIVESHARE_NEW_HOST']:return{..._0x34b29a,'data':{..._0x58531e,'data':_0x58531e[_0x586f87(0x3c9)]},'cmd':_0x34b29a['cmd']};case _0x5911b8[_0x586f87(0x3eb)]:case _0x5911b8[_0x586f87(0x451)]:return{..._0x34b29a,'data':{..._0x58531e,'data':_0x58531e[_0x586f87(0x2ac)]},'cmd':_0x34b29a[_0x586f87(0x1b9)]};case _0x5911b8[_0x586f87(0x29f)]:return{..._0x34b29a,'data':{..._0x58531e,'data':_0x58531e[_0x586f87(0x3c9)]},'cmd':_0x34b29a[_0x586f87(0x1b9)]};case _0x5911b8[_0x586f87(0x296)]:return{..._0x34b29a,'data':_0x58531e,'cmd':_0x34b29a[_0x586f87(0x1b9)]};case _0x5911b8[_0x586f87(0x20a)]:return{..._0x34b29a,'data':{..._0x58531e,'data':_0x58531e['commentUpdateEvent']},'cmd':_0x34b29a[_0x586f87(0x1b9)]};default:return _0x34b29a;}}default:return _0x34b29a;}}function mn(_0x3faf8e){const _0x47937c=_0x29c6a6;switch(_0x3faf8e[_0x47937c(0x1b9)]){case I['HEARTBEAT']:case I[_0x47937c(0x1ba)]:return JSON['stringify']({'cmd':_0x3faf8e['cmd'],'routeKey':_0x3faf8e[_0x47937c(0x227)]});case I[_0x47937c(0x468)]:{let _0x25e249;switch(_0x3faf8e[_0x47937c(0x3f0)][_0x47937c(0x2fa)]){case _0x5911b8[_0x47937c(0x2aa)]:{_0x25e249={'eventID':_0x5911b8[_0x47937c(0x2aa)],'updateCursorEvent':_0x3faf8e[_0x47937c(0x3f0)][_0x47937c(0x3f0)]};break;}case _0x5911b8[_0x47937c(0x49c)]:{_0x25e249={'eventID':_0x5911b8[_0x47937c(0x49c)],'leaveEvent':_0x3faf8e[_0x47937c(0x3f0)][_0x47937c(0x3f0)]};break;}case _0x5911b8[_0x47937c(0x2f6)]:{_0x25e249={'eventID':_0x5911b8[_0x47937c(0x2f6)],'joinEvent':_0x3faf8e['data']['data']};break;}case _0x5911b8['LIVESHARE_NEW_HOST']:{_0x25e249={'eventID':_0x5911b8[_0x47937c(0x4a1)],'liveShareNewHost':_0x3faf8e[_0x47937c(0x3f0)][_0x47937c(0x3f0)]};break;}case _0x5911b8['LIVESHARE_OPERATION']:{_0x25e249={'eventID':_0x5911b8[_0x47937c(0x451)],'liveShareOperation':_0x3faf8e[_0x47937c(0x3f0)][_0x47937c(0x3f0)]};break;}case _0x5911b8[_0x47937c(0x29f)]:{_0x25e249={'eventID':_0x5911b8[_0x47937c(0x29f)],'liveShareTerminate':_0x3faf8e[_0x47937c(0x3f0)][_0x47937c(0x3f0)]};break;}case _0x5911b8[_0x47937c(0x4c7)]:{_0x25e249={'eventID':_0x5911b8['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x3faf8e[_0x47937c(0x3f0)][_0x47937c(0x3f0)]};break;}case _0x5911b8[_0x47937c(0x3eb)]:{_0x25e249={'eventID':_0x5911b8[_0x47937c(0x3eb)]};break;}default:_0x25e249={'eventID':_0x3faf8e[_0x47937c(0x3f0)][_0x47937c(0x2fa)]};}return JSON[_0x47937c(0x376)]({'cmd':_0x3faf8e['cmd'],'routeKey':_0x3faf8e[_0x47937c(0x227)],'collaMsg':_0x25e249});}case I[_0x47937c(0x4eb)]:return JSON['stringify']({'cmd':_0x3faf8e[_0x47937c(0x1b9)],'routeKey':_0x3faf8e[_0x47937c(0x227)],'joinReq':_0x3faf8e['data']});case I[_0x47937c(0x32a)]:return JSON['stringify']({'cmd':_0x3faf8e[_0x47937c(0x1b9)],'routeKey':_0x3faf8e['routeKey'],'leaveReq':_0x3faf8e[_0x47937c(0x3f0)]});default:throw new Error(_0x47937c(0x4b0));}}var Sn=Object[_0x29c6a6(0x3f3)],vn=Object['getOwnPropertyDescriptor'],pn=(_0xace02d,_0x4e305e,_0x22fb74,_0x8849fa)=>{const _0x44ea25=_0x29c6a6;for(var _0x38549e=_0x8849fa>0x1?void 0x0:_0x8849fa?vn(_0x4e305e,_0x22fb74):_0x4e305e,_0x37bb79=_0xace02d[_0x44ea25(0x431)]-0x1,_0x264c61;_0x37bb79>=0x0;_0x37bb79--)(_0x264c61=_0xace02d[_0x37bb79])&&(_0x38549e=(_0x8849fa?_0x264c61(_0x4e305e,_0x22fb74,_0x38549e):_0x264c61(_0x38549e))||_0x38549e);return _0x8849fa&&_0x38549e&&Sn(_0x4e305e,_0x22fb74,_0x38549e),_0x38549e;},me=(_0x457103,_0x1d5617)=>(_0xe000a3,_0x2d65b6)=>_0x1d5617(_0xe000a3,_0x2d65b6,_0x457103);const bs=_0x451f50(_0x29c6a6(0x477));function In(_0x357977,_0x48e74f,_0x59725c){const _0x48de=_0x29c6a6;return _0x357977+'/'+_0x48e74f+_0x48de(0x4d7)+_0x59725c+_0x48de(0x40a);}let _t=class{constructor(_0x359a23,_0x494236,_0x2556b4,_0x5967ef,_0x1eb8d8){const _0x6804f6=_0x29c6a6;this[_0x6804f6(0x223)]=_0x359a23,this[_0x6804f6(0x218)]=_0x494236,this[_0x6804f6(0x211)]=_0x2556b4,this[_0x6804f6(0x214)]=_0x5967ef,this[_0x6804f6(0x2a9)]=_0x1eb8d8;}[_0x29c6a6(0x257)](_0x3282f3){const _0x1fedd4=_0x29c6a6,_0x26090e=this[_0x1fedd4(0x218)][_0x1fedd4(0x257)](_0x3282f3);if(!_0x26090e)throw new Error(_0x1fedd4(0x3fd));const _0x5d5924=new _0x3543bd(),_0x1fad41=new _0x2ef673();_0x5d5924[_0x1fedd4(0x497)](_0x359428(_0x26090e['close$']['subscribe'](_0x27a99d=>_0x1fad41['next'](_0x27a99d)))),_0x5d5924[_0x1fedd4(0x497)](_0x359428(()=>_0x1fad41[_0x1fedd4(0x2ed)]()));const _0x5c7d1b=new _0x2ef673();_0x5d5924[_0x1fedd4(0x497)](_0x359428(_0x26090e[_0x1fedd4(0x425)][_0x1fedd4(0x460)](_0x19bd38=>_0x5c7d1b[_0x1fedd4(0x3af)](_0x19bd38)))),_0x5d5924['add'](_0x359428(()=>_0x5c7d1b[_0x1fedd4(0x2ed)]()));const _0x8203ce=new _0x2ef673();_0x5d5924['add'](_0x359428(_0x26090e[_0x1fedd4(0x45f)]['subscribe'](_0x47972c=>{const _0x5c1d24=_0x1fedd4,_0xbbd18b=gn(_0x47972c);_0x8203ce[_0x5c1d24(0x3af)](_0xbbd18b);}))),_0x5d5924['add'](_0x359428(()=>_0x8203ce[_0x1fedd4(0x2ed)]()));const _0x3ac2ee=()=>{const _0x2adc63=_0x1fedd4;_0x5c7d1b[_0x2adc63(0x3af)](new Event(_0x2adc63(0x2db))),_0x1fad41[_0x2adc63(0x3af)](new CloseEvent(_0x2adc63(0x2db))),_0x5e49b1['close']();},_0x5e49b1={'memberID':'','close$':_0x1fad41[_0x1fedd4(0x4db)](),'error$':_0x5c7d1b[_0x1fedd4(0x4db)](),'open$':_0x26090e[_0x1fedd4(0x47e)],'message$':_0x8203ce[_0x1fedd4(0x4db)](),'send':_0x78f310=>{const _0x463830=_0x1fedd4;if(_0x78f310[_0x463830(0x1b9)]===I[_0x463830(0x468)]){if(_0x78f310[_0x463830(0x3f0)][_0x463830(0x2fa)]===_0x5911b8[_0x463830(0x4e2)]){this[_0x463830(0x39f)](_0x5e49b1,_0x78f310[_0x463830(0x3f0)])[_0x463830(0x2b7)](_0x323e23=>{const _0x5676a7=_0x463830;this[_0x5676a7(0x214)][_0x5676a7(0x35b)](_0x323e23),_0x3ac2ee();});return;}if(_0x78f310[_0x463830(0x3f0)][_0x463830(0x2fa)]===_0x5911b8['FETCH_MISSING']){const _0x559d95=_0x78f310[_0x463830(0x3f0)];this[_0x463830(0x2d8)](_0x559d95)[_0x463830(0x327)](_0x32c304=>{const _0x1b6ebc=_0x463830;_0x8203ce['next']({'cmd':I[_0x1b6ebc(0x37b)],'code':Nt['OK'],'routeKey':_0x559d95[_0x1b6ebc(0x3f0)][_0x1b6ebc(0x1ca)],'routeType':'','data':{'eventID':_0x5911b8[_0x1b6ebc(0x311)],'data':{'changesets':_0x32c304}}});})[_0x463830(0x2b7)](_0x48dfa4=>{const _0x399ea2=_0x463830;this[_0x399ea2(0x214)][_0x399ea2(0x35b)](_0x48dfa4),_0x3ac2ee();});return;}}_0x26090e[_0x463830(0x293)](mn(_0x78f310));},'close':()=>{const _0x1cd768=_0x1fedd4;_0x26090e[_0x1cd768(0x3fa)](),_0x5d5924[_0x1cd768(0x378)]();}};return _0x5e49b1;}async['_submitChangeset'](_0x1ebc9c,_0x2fc687){const _0x40270e=_0x29c6a6;var _0x2a3354;const {unitType:_0x1919cb,unitID:_0x142139,changeset:_0x6d91c3}=_0x2fc687[_0x40270e(0x3f0)],_0x2f9124={'unitID':_0x142139,'memberID':_0x1ebc9c[_0x40270e(0x264)],'type':_0x1919cb,'changeset':_0x12ffd7(_0x6d91c3)},_0x5106e8=In((_0x2a3354=this[_0x40270e(0x211)]['getConfig'](an))!=null?_0x2a3354:cn,_0x1919cb,_0x142139);try{await this['_http'][_0x40270e(0x243)](_0x5106e8,{'body':_0x2f9124});}catch(_0x267b27){throw this[_0x40270e(0x214)][_0x40270e(0x35b)](_0x40270e(0x29e),_0x40270e(0x368)),_0x267b27;}}async[_0x29c6a6(0x2d8)](_0x4e5276){const _0x1b6801=_0x29c6a6,{unitID:_0x202818,from:_0xb0342d,to:_0x5972be,unitType:_0x54e48b}=_0x4e5276[_0x1b6801(0x3f0)];return(await this[_0x1b6801(0x2a9)][_0x1b6801(0x401)]({'metadata':void 0x0},{'unitID':_0x202818,'type':_0x54e48b,'from':_0xb0342d,'to':_0x5972be}))['changesets'];}};_t=pn([me(0x0,_0x558bc4(_0x180bd0)),me(0x1,_0x558bc4(_0x1ee783)),me(0x2,_0x575c32),me(0x3,_0x2125ae),me(0x4,_0x2e217d)],_t);class Rs{constructor(){const _0x59faac=_0x29c6a6;l(this,_0x59faac(0x480),new _0x2ef673()),l(this,_0x59faac(0x487),this['_commentUpdate$'][_0x59faac(0x4db)]());}[_0x29c6a6(0x346)](_0x5a95d0){const _0x40e3ba=_0x29c6a6;this['_commentUpdate$'][_0x40e3ba(0x3af)](_0x5a95d0);}}var En=Object['defineProperty'],Cn=Object[_0x29c6a6(0x48e)],Ts=(_0x38ce78,_0x231985,_0x5d096c,_0x5bb2a1)=>{const _0x5c124f=_0x29c6a6;for(var _0x34f8f6=_0x5bb2a1>0x1?void 0x0:_0x5bb2a1?Cn(_0x231985,_0x5d096c):_0x231985,_0x57f271=_0x38ce78[_0x5c124f(0x431)]-0x1,_0x158a60;_0x57f271>=0x0;_0x57f271--)(_0x158a60=_0x38ce78[_0x57f271])&&(_0x34f8f6=(_0x5bb2a1?_0x158a60(_0x231985,_0x5d096c,_0x34f8f6):_0x158a60(_0x34f8f6))||_0x34f8f6);return _0x5bb2a1&&_0x34f8f6&&En(_0x231985,_0x5d096c,_0x34f8f6),_0x34f8f6;},M=(_0x1a1bf6,_0xbe3ce6)=>(_0x100cff,_0x4115bb)=>_0xbe3ce6(_0x100cff,_0x4115bb,_0x1a1bf6),_e=(_0xc7e068=>(_0xc7e068[_0xc7e068[_0x29c6a6(0x441)]=0x0]=_0x29c6a6(0x441),_0xc7e068[_0xc7e068[_0x29c6a6(0x209)]=0x1]=_0x29c6a6(0x209),_0xc7e068[_0xc7e068[_0x29c6a6(0x4b5)]=0x2]=_0x29c6a6(0x4b5),_0xc7e068[_0xc7e068[_0x29c6a6(0x490)]=0x3]=_0x29c6a6(0x490),_0xc7e068))(_e||{});let ut=class extends _0x39fd47{constructor(_0x4f5029,_0x2788c8,_0x2dce1c,_0x124853,_0xce39c9,_0x4e8c24,_0x369871,_0x186963,_0x10b24e){const _0x272c9b=_0x29c6a6;super(),l(this,_0x272c9b(0x335),new _0x2ae6a5(0x0)),l(this,_0x272c9b(0x1cd),this[_0x272c9b(0x335)][_0x272c9b(0x4db)]()),l(this,'_event$',new _0x2ef673()),l(this,_0x272c9b(0x3a5),this[_0x272c9b(0x343)][_0x272c9b(0x4db)]()),l(this,_0x272c9b(0x375)),l(this,'_socketMessageSubscription'),l(this,_0x272c9b(0x479)),(this[_0x272c9b(0x330)]=_0x4f5029,this[_0x272c9b(0x214)]=_0x2dce1c,this[_0x272c9b(0x240)]=_0x124853,this[_0x272c9b(0x426)]=_0xce39c9,this['_configService']=_0x4e8c24,this[_0x272c9b(0x357)]=_0x369871,this[_0x272c9b(0x23c)]=_0x186963,this[_0x272c9b(0x299)]=_0x10b24e,_0x2788c8['pipe'](_0x380119(this[_0x272c9b(0x33a)]))[_0x272c9b(0x460)](_0x21b01a=>{const _0x2911ed=_0x272c9b;var _0x4e385b;typeof _0x21b01a>'u'||(this[_0x2911ed(0x375)]=_0x21b01a,_0x21b01a?(this['_joinRoom'](_0x21b01a),this['_socketMessageSubscription']=this[_0x2911ed(0x375)][_0x2911ed(0x45f)]['subscribe'](_0x430d40=>{const _0x54929d=_0x2911ed;_0x430d40['routeKey']===this[_0x54929d(0x330)]&&this[_0x54929d(0x27b)](_0x430d40);})):(this['_sessionStatus$']['next'](0x2),(_0x4e385b=this[_0x2911ed(0x1c5)])==null||_0x4e385b[_0x2911ed(0x455)](),this[_0x2911ed(0x1c5)]=null));}),this[_0x272c9b(0x1fb)](this['_beforeCloseService']['registerOnClose'](()=>{const _0x33e5ea=_0x272c9b;var _0x155ab4;(_0x155ab4=this[_0x33e5ea(0x375)])==null||_0x155ab4[_0x33e5ea(0x293)]({'cmd':I['LEAVE'],'data':{'roomID':this[_0x33e5ea(0x330)]}});})));}get[_0x29c6a6(0x28d)](){const _0x1f100c=_0x29c6a6;return this[_0x1f100c(0x335)][_0x1f100c(0x3d5)]();}[_0x29c6a6(0x48c)](){const _0x52fc22=_0x29c6a6;var _0x3ab918,_0x585dfd;return(_0x585dfd=(_0x3ab918=this[_0x52fc22(0x375)])==null?void 0x0:_0x3ab918[_0x52fc22(0x264)])!=null?_0x585dfd:null;}[_0x29c6a6(0x378)](){const _0x4b9490=_0x29c6a6;super['dispose'](),this[_0x4b9490(0x33a)][_0x4b9490(0x3af)](),this[_0x4b9490(0x33a)]['complete']();}[_0x29c6a6(0x27b)](_0x550df4){const _0x5e6226=_0x29c6a6;_0x550df4['cmd']===I[_0x5e6226(0x4eb)]?this['_onJoinRoomEvent'](_0x550df4):_0x550df4[_0x5e6226(0x1b9)]===I[_0x5e6226(0x37b)]&&this['_onRecvEvent'](_0x550df4);}[_0x29c6a6(0x364)](_0x76c5d){const _0x1c173c=_0x29c6a6;this[_0x1c173c(0x335)][_0x1c173c(0x3af)](0x1),_0x76c5d[_0x1c173c(0x293)]({'cmd':I[_0x1c173c(0x4eb)],'routeKey':this[_0x1c173c(0x330)],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0x29c6a6(0x2ee)](_0x5d6a45){const _0x34eda4=_0x29c6a6;var _0x163a40;if(_0x5d6a45[_0x34eda4(0x23a)]===Nt[_0x34eda4(0x300)]){this[_0x34eda4(0x426)][_0x34eda4(0x47a)]({'type':_0x15c0da[_0x34eda4(0x32c)],'content':this[_0x34eda4(0x357)]['t'](_0x34eda4(0x1d6))}),this[_0x34eda4(0x335)][_0x34eda4(0x3af)](0x2);return;}this[_0x34eda4(0x335)]['next'](0x3);const _0x5f4439=(_0x163a40=_0x5d6a45[_0x34eda4(0x3f0)][_0x34eda4(0x3b8)][this[_0x34eda4(0x330)]])==null?void 0x0:_0x163a40[_0x34eda4(0x23f)];_0x5f4439&&_0x5f4439[_0x34eda4(0x31b)](_0x34ce30=>this['_memberService'][_0x34eda4(0x3b9)](this[_0x34eda4(0x330)],_0x34ce30));}[_0x29c6a6(0x3cf)](_0x119cf2){const _0x43aa28=_0x29c6a6;try{const _0x13f753=_0x119cf2[_0x43aa28(0x3f0)];switch(_0x13f753[_0x43aa28(0x2fa)]){case _0x5911b8['USERS_ENTER']:this[_0x43aa28(0x2dc)](_0x13f753),this['_event$'][_0x43aa28(0x3af)](_0x13f753);break;case _0x5911b8['USERS_LEAVE']:this[_0x43aa28(0x4ce)](_0x13f753),this[_0x43aa28(0x343)]['next'](_0x13f753);break;case _0x5911b8[_0x43aa28(0x43e)]:this[_0x43aa28(0x42d)](),this[_0x43aa28(0x343)][_0x43aa28(0x3af)](_0x13f753);break;case _0x5911b8['MSG_FOR_ERROR']:this[_0x43aa28(0x214)]['error']('save\x20fail\x20reason\x20is\x20'+JSON['stringify'](_0x13f753)),this[_0x43aa28(0x343)]['next'](_0x13f753);break;case _0x5911b8['COMMENT_UPDATE']:this[_0x43aa28(0x299)][_0x43aa28(0x346)](_0x13f753['data']),this[_0x43aa28(0x343)][_0x43aa28(0x3af)](_0x13f753);break;default:this[_0x43aa28(0x343)][_0x43aa28(0x3af)](_0x13f753);}}catch(_0x119c6e){this[_0x43aa28(0x214)][_0x43aa28(0x35b)](_0x119c6e,_0x119cf2);}}[_0x29c6a6(0x2dc)](_0x45aaa3){const _0x3b1889=_0x29c6a6;this[_0x3b1889(0x23c)]['updateMember'](this['_unitID'],_0x45aaa3[_0x3b1889(0x3f0)]);}[_0x29c6a6(0x4ce)](_0x54299c){const _0x46d04c=_0x29c6a6;this['_memberService'][_0x46d04c(0x2d6)](this['_unitID'],_0x54299c[_0x46d04c(0x3f0)][_0x46d04c(0x264)]);}async[_0x29c6a6(0x293)](_0x55b88b,_0x6b511a){const _0x17009d=_0x29c6a6;if(this[_0x17009d(0x28d)]!==0x3||!this[_0x17009d(0x375)])throw new Error(_0x17009d(0x329));try{_0x55b88b[_0x17009d(0x2fa)]===_0x5911b8[_0x17009d(0x472)]&&this[_0x17009d(0x1c1)](),this['_socket']['send']({'cmd':I[_0x17009d(0x468)],'routeKey':_0x6b511a,'routeType':'','data':_0x55b88b});}catch(_0x4acced){this[_0x17009d(0x214)][_0x17009d(0x35b)](_0x4acced);}}['_scheduleCollaborationTimeoutTimer'](){const _0x436c8e=_0x29c6a6;var _0x1635d9;this['_collaborationTimeoutTimer']=window['setTimeout'](()=>{const _0x229e96=_0x34fd;this[_0x229e96(0x479)]=null,this[_0x229e96(0x426)][_0x229e96(0x47a)]({'type':_0x15c0da[_0x229e96(0x46e)],'content':this['_localeService']['t'](_0x229e96(0x1bb))});},(_0x1635d9=this[_0x436c8e(0x211)][_0x436c8e(0x29b)](Is))!=null?_0x1635d9:Es);}['_clearCollaborationTimeoutTimer'](){const _0xd40d2=_0x29c6a6;this[_0xd40d2(0x479)]&&(clearTimeout(this[_0xd40d2(0x479)]),this[_0xd40d2(0x479)]=null);}};ut=Ts([M(0x2,_0x2125ae),M(0x3,_0x3ef89e),M(0x4,_0x367db8),M(0x5,_0x575c32),M(0x6,_0x558bc4(_0x2f64f)),M(0x7,_0x558bc4(ee)),M(0x8,_0x558bc4(Rs))],ut);let Re=class extends _0xc93720{constructor(_0x505143,_0x30a5dc,_0x4d686d,_0x5bd893,_0x45c023,_0x13b42c){const _0x40d3f9=_0x29c6a6;super(),l(this,'_socket$',new _0x2ae6a5(void 0x0)),l(this,_0x40d3f9(0x246),new Map()),l(this,_0x40d3f9(0x34e),new _0x2ae6a5(0x0)),l(this,_0x40d3f9(0x4c8),this[_0x40d3f9(0x34e)][_0x40d3f9(0x4db)]()),l(this,'_socketReady',!0x1),l(this,_0x40d3f9(0x2b4)),l(this,_0x40d3f9(0x2be)),l(this,_0x40d3f9(0x2c5)),l(this,_0x40d3f9(0x3e0),0x0),(this[_0x40d3f9(0x31f)]=_0x505143,this[_0x40d3f9(0x357)]=_0x30a5dc,this[_0x40d3f9(0x426)]=_0x4d686d,this[_0x40d3f9(0x214)]=_0x5bd893,this['_configService']=_0x45c023,this[_0x40d3f9(0x231)]=_0x13b42c);}get[_0x29c6a6(0x375)](){const _0x197ef6=_0x29c6a6;return this[_0x197ef6(0x1fd)]['getValue']();}['dispose'](){const _0x49a1ef=_0x29c6a6;super[_0x49a1ef(0x378)](),this[_0x49a1ef(0x246)]['forEach'](_0x18a20e=>_0x18a20e['dispose']()),this[_0x49a1ef(0x246)]['clear'](),this[_0x49a1ef(0x34e)]['complete']();}async[_0x29c6a6(0x4e6)](_0x21d680){const _0x56a588=_0x29c6a6;if(this[_0x56a588(0x246)]['has'](_0x21d680))return this['_sessions'][_0x56a588(0x362)](_0x21d680);this[_0x56a588(0x34b)]();const _0x320419=this[_0x56a588(0x31f)][_0x56a588(0x43a)](ut,_0x21d680,this['_socket$']['asObservable']());return this[_0x56a588(0x246)]['set'](_0x21d680,_0x320419),_0x320419;}['_createSocket'](){const _0x5c5c38=_0x29c6a6;var _0x3a7d05;const _0x495465=(_0x3a7d05=this[_0x5c5c38(0x211)][_0x5c5c38(0x29b)](zi))!=null?_0x3a7d05:Zi;return this['_socketService'][_0x5c5c38(0x257)](_0x495465);}[_0x29c6a6(0x34b)](){const _0x331c0b=_0x29c6a6;try{const _0x29979a=this[_0x331c0b(0x3ec)]();if(_0x29979a){const _0x3376d8=_0x29979a[_0x331c0b(0x293)];_0x29979a[_0x331c0b(0x293)]=_0x348c18=>(this[_0x331c0b(0x43d)](),_0x3376d8['apply'](_0x29979a,[_0x348c18])),_0x29979a[_0x331c0b(0x45f)][_0x331c0b(0x460)](_0x550919=>this[_0x331c0b(0x1cb)](_0x29979a,_0x550919)),_0x29979a[_0x331c0b(0x425)][_0x331c0b(0x4dc)](_0x1c0ea1(0x1))[_0x331c0b(0x460)](_0x4da20e=>this['_logService']['error']('[CollaborationSessionService]:\x20socket\x20error',_0x4da20e)),_0x29979a[_0x331c0b(0x47e)][_0x331c0b(0x4dc)](_0x1c0ea1(0x1))[_0x331c0b(0x460)](()=>{const _0x4f4374=_0x331c0b;this[_0x4f4374(0x30c)](_0x29979a);}),_0x29979a['close$'][_0x331c0b(0x4dc)](_0x1c0ea1(0x1))[_0x331c0b(0x460)](_0x16f3e4=>{const _0x73d18=_0x331c0b;this[_0x73d18(0x214)][_0x73d18(0x363)](_0x73d18(0x3cb),_0x73d18(0x23d),_0x16f3e4),this[_0x73d18(0x3b1)]();});}}catch(_0x4ae036){this['_logService'][_0x331c0b(0x35b)](_0x4ae036),this[_0x331c0b(0x3b1)]();}}[_0x29c6a6(0x30c)](_0x39585d){const _0x1149a6=_0x29c6a6;this['_logService']['debug'](_0x1149a6(0x3cb),'socket\x20open.'),_0x39585d['send']({'cmd':I[_0x1149a6(0x1ba)]}),this[_0x1149a6(0x43d)]();}['_onConnectionFailed'](){const _0x70522e=_0x29c6a6;var _0x5786a0;this['_status$'][_0x70522e(0x3af)](0x2),this[_0x70522e(0x1fd)][_0x70522e(0x3af)](null),this[_0x70522e(0x391)](),this[_0x70522e(0x4a9)](),this[_0x70522e(0x3ee)]=!0x1,this[_0x70522e(0x3e0)]<((_0x5786a0=this['_configService']['getConfig'](sn))!=null?_0x5786a0:nn)?(this[_0x70522e(0x20e)](this[_0x70522e(0x3e0)]),this[_0x70522e(0x3e0)]+=0x1):this['_messageService'][_0x70522e(0x47a)]({'type':_0x15c0da[_0x70522e(0x46e)],'content':this[_0x70522e(0x357)]['t']('session.connection-failed')});}['_scheduleReconnection'](_0x333a8d){const _0x41358b=_0x29c6a6;var _0xd20660;const _0x4ff06e=((_0xd20660=this[_0x41358b(0x211)][_0x41358b(0x29b)](en))!=null?_0xd20660:tn)*0x2**_0x333a8d;this[_0x41358b(0x426)][_0x41358b(0x47a)]({'type':_0x15c0da['Warning'],'content':this[_0x41358b(0x357)]['t']('session.will-retry')}),this[_0x41358b(0x2c5)]=setTimeout(()=>{const _0x5735cf=_0x41358b;this[_0x5735cf(0x34b)](),clearTimeout(this[_0x5735cf(0x2c5)]),this[_0x5735cf(0x2c5)]=null;},_0x4ff06e);}[_0x29c6a6(0x43d)](){const _0x546b5e=_0x29c6a6;var _0x5b4760;this[_0x546b5e(0x4a9)](),this[_0x546b5e(0x2b4)]=setTimeout(()=>this[_0x546b5e(0x396)](),(_0x5b4760=this['_configService'][_0x546b5e(0x29b)](qi))!=null?_0x5b4760:Qi);}[_0x29c6a6(0x396)](){const _0x12d91d=_0x29c6a6;this[_0x12d91d(0x375)][_0x12d91d(0x293)]({'cmd':I['HEARTBEAT']}),this['_waitForHeartbeatResponse']();}[_0x29c6a6(0x205)](){const _0x27af85=_0x29c6a6;var _0x58a183;this['_timeoutTimer']=setTimeout(()=>this[_0x27af85(0x3b1)](),(_0x58a183=this['_configService'][_0x27af85(0x29b)](Is))!=null?_0x58a183:Es);}[_0x29c6a6(0x1cb)](_0x265cb7,_0x15f6b1){const _0x1243ca=_0x29c6a6,{cmd:_0x15de3b}=_0x15f6b1;_0x15de3b===I[_0x1243ca(0x1ba)]&&!this[_0x1243ca(0x3ee)]&&(_0x265cb7[_0x1243ca(0x264)]=_0x15f6b1[_0x1243ca(0x3f0)][_0x1243ca(0x264)],this['_socket$']['next'](_0x265cb7),this['_status$'][_0x1243ca(0x3af)](0x3),this[_0x1243ca(0x3ee)]=!0x0),_0x15de3b===I[_0x1243ca(0x4ba)]&&this[_0x1243ca(0x391)](),this[_0x1243ca(0x43d)]();}['_clearHeartbeatTimer'](){const _0x46d6c3=_0x29c6a6;this[_0x46d6c3(0x2b4)]!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this[_0x46d6c3(0x2b4)]=null);}['_clearTimeoutTimer'](){const _0x49c3b7=_0x29c6a6;this[_0x49c3b7(0x2be)]!=null&&(clearTimeout(this[_0x49c3b7(0x2be)]),this['_timeoutTimer']=null);}};Re=Ts([M(0x0,_0x558bc4(_0x4ead3f)),M(0x1,_0x558bc4(_0x2f64f)),M(0x2,_0x367db8),M(0x3,_0x2125ae),M(0x4,_0x575c32),M(0x5,bs)],Re);var bn=Object['defineProperty'],Rn=Object[_0x29c6a6(0x48e)],Tn=(_0xde32f9,_0x37169c,_0x25de7e,_0x26e3be)=>{for(var _0x24833f=_0x26e3be>0x1?void 0x0:_0x26e3be?Rn(_0x37169c,_0x25de7e):_0x37169c,_0x272366=_0xde32f9['length']-0x1,_0x2f5cc6;_0x272366>=0x0;_0x272366--)(_0x2f5cc6=_0xde32f9[_0x272366])&&(_0x24833f=(_0x26e3be?_0x2f5cc6(_0x37169c,_0x25de7e,_0x24833f):_0x2f5cc6(_0x24833f))||_0x24833f);return _0x26e3be&&_0x24833f&&bn(_0x37169c,_0x25de7e,_0x24833f),_0x24833f;},Se=(_0x3ca309,_0x32abf7)=>(_0x227d12,_0x8c6cde)=>_0x32abf7(_0x227d12,_0x8c6cde,_0x3ca309);let D=class extends _0xc93720{constructor(_0x2cae78,_0xff86db,_0x1bfe63,_0x22cd9b,_0x1d7fa5){const _0x31d902=_0x29c6a6;super(),l(this,_0x31d902(0x3d6),new Map()),l(this,'_saveTaskMap',new Map()),l(this,_0x31d902(0x2f0),!0x1),(this[_0x31d902(0x211)]=_0x2cae78,this[_0x31d902(0x4e0)]=_0xff86db,this['_beforeCloseService']=_0x1bfe63,this[_0x31d902(0x357)]=_0x22cd9b,this[_0x31d902(0x230)]=_0x1d7fa5,this['_setupBeforeClosingHandler']());}[_0x29c6a6(0x281)](){const _0x2c60fe=_0x29c6a6;this[_0x2c60fe(0x2f0)]=!0x0;}[_0x29c6a6(0x2ae)](){const _0x465854=_0x29c6a6;this[_0x465854(0x2f0)]=!0x1;}[_0x29c6a6(0x378)](){const _0x2d4b38=_0x29c6a6;this[_0x2d4b38(0x203)]()[_0x2d4b38(0x327)](()=>super['dispose']());}async[_0x29c6a6(0x3bd)](_0x3018fe){const _0x1b4303=_0x29c6a6;return this['_disabled']?null:this[_0x1b4303(0x4e0)][_0x1b4303(0x4bb)](Gt(_0x3018fe));}async[_0x29c6a6(0x1df)](_0x4a80f2,_0x2328e6){const _0x4ef453=_0x29c6a6;return!!this[_0x4ef453(0x4e0)][_0x4ef453(0x2bc)](_0x4a80f2,_0x2328e6);}[_0x29c6a6(0x1dc)](_0x4c14b5,_0x1165e,_0x4ee65b,_0x2d4e01){const _0x4beb11=_0x29c6a6,_0xf6a338=this['_revisionService'][_0x4beb11(0x433)](_0x4c14b5);this[_0x4beb11(0x3d6)]['set'](_0x4c14b5,{'unitID':_0x4c14b5,'type':_0x1165e,'awaitingChangeset':_0x4ee65b,'mutations':_0x2d4e01,'rev':_0xf6a338}),this['_saveTaskMap'][_0x4beb11(0x46f)](_0x4c14b5)||this[_0x4beb11(0x25c)](_0x4c14b5);}[_0x29c6a6(0x25c)](_0x2cfcd0){const _0x33180d=_0x29c6a6,_0x53550c=this['_getSaveTimeout']();_0x53550c===0x0?this[_0x33180d(0x4cc)](_0x2cfcd0):this['_saveTaskMap'][_0x33180d(0x320)](_0x2cfcd0,setTimeout(()=>this[_0x33180d(0x4cc)](_0x2cfcd0),_0x53550c));}[_0x29c6a6(0x492)](){var _0x318158;return(_0x318158=this['_configService']['getConfig'](rn))!=null?_0x318158:on;}[_0x29c6a6(0x4cc)](_0x895e19){const _0x1fa25b=_0x29c6a6,_0x20960e=this[_0x1fa25b(0x38a)][_0x1fa25b(0x362)](_0x895e19);return _0x20960e!==void 0x0&&window['clearTimeout'](_0x20960e),this[_0x1fa25b(0x4e0)][_0x1fa25b(0x2bc)](Gt(_0x895e19),this['_cachedData']['get'](_0x895e19))[_0x1fa25b(0x327)](()=>this['_saveTaskMap'][_0x1fa25b(0x457)](_0x895e19));}async['_exhaustSavingTask'](){const _0x112f8d=_0x29c6a6,_0x4d0835=[];this[_0x112f8d(0x38a)][_0x112f8d(0x31b)]((_0xe39df2,_0x4626ab)=>{const _0x743344=_0x112f8d;window[_0x743344(0x46a)](_0xe39df2),_0x4d0835[_0x743344(0x2f7)](this[_0x743344(0x4cc)](_0x4626ab)[_0x743344(0x327)](()=>{this['_saveTaskMap']['delete'](_0x4626ab);}));}),await Promise[_0x112f8d(0x2e9)](_0x4d0835);}[_0x29c6a6(0x4bd)](){const _0x55a30c=_0x29c6a6;this['disposeWithMe'](this[_0x55a30c(0x240)][_0x55a30c(0x447)](()=>{const _0x5ded20=_0x55a30c;if(this[_0x5ded20(0x38a)]['size'])return this[_0x5ded20(0x357)]['t']('collaboration-client.offline-data-not-saved');}));}};D=Tn([Se(0x0,_0x575c32),Se(0x1,_0x3325f8),Se(0x2,_0x3ef89e),Se(0x3,_0x558bc4(_0x2f64f)),Se(0x4,_0x558bc4(_0x353354))],D);function Gt(_0x3ba5c0){const _0x429152=_0x29c6a6;return _0x429152(0x44c)+_0x3ba5c0;}const Xe=_0x451f50(_0x29c6a6(0x48b));var Os=(_0x1edc51=>(_0x1edc51[_0x1edc51[_0x29c6a6(0x485)]=0x0]=_0x29c6a6(0x485),_0x1edc51[_0x1edc51[_0x29c6a6(0x39d)]=0x1]='OTHER_CLIENTS_EDITING',_0x1edc51))(Os||{});const Yt=0x7530,Kt='ACTIVE_UNIT_EVENT_CHANNEL';class On extends _0xc93720{constructor(){const _0x5b63ab=_0x29c6a6;super(),l(this,'_id',_0x1394f4['generateRandomId']()),l(this,'_selfUnitIDs',new Set()),l(this,_0x5b63ab(0x2fc),new Map()),l(this,_0x5b63ab(0x1d5),null),l(this,_0x5b63ab(0x355),new Map()),l(this,'_unitStatus',new Map()),this['_init']();}[_0x29c6a6(0x378)](){const _0x28f118=_0x29c6a6;super['dispose'](),this[_0x28f118(0x355)]['forEach']((_0x39dc2f,_0x2074a8)=>this[_0x28f118(0x482)](_0x2074a8)),this[_0x28f118(0x1d5)]&&window[_0x28f118(0x4de)](this[_0x28f118(0x1d5)]);}[_0x29c6a6(0x3ad)](_0x3a4f82){return this['_ensureSubject'](_0x3a4f82)['pipe'](_0x362e05());}[_0x29c6a6(0x202)](_0x4d364c){const _0x389a36=_0x29c6a6;this[_0x389a36(0x3e5)][_0x389a36(0x4a2)]===0x0&&this[_0x389a36(0x28b)](),this['_selfUnitIDs'][_0x389a36(0x497)](_0x4d364c),this[_0x389a36(0x38c)]({'type':0x0,'memberID':this[_0x389a36(0x206)],'unitIDs':[_0x4d364c],'isForwarded':!0x1});}[_0x29c6a6(0x282)](_0x1dff89){const _0x439d8a=_0x29c6a6;this[_0x439d8a(0x3e5)][_0x439d8a(0x457)](_0x1dff89),this['_selfUnitIDs'][_0x439d8a(0x4a2)]===0x0&&this[_0x439d8a(0x1d5)]&&window[_0x439d8a(0x4de)](this[_0x439d8a(0x1d5)]);}['_init'](){const _0x223237=_0x29c6a6;this[_0x223237(0x1fb)](_0x359428(_0x68731a(window,'storage')[_0x223237(0x460)](_0x3a0e06=>{const _0x19150d=_0x223237;if(_0x3a0e06[_0x19150d(0x1e7)]!==Kt||!_0x3a0e06[_0x19150d(0x48a)])return;const _0x104968=JSON[_0x19150d(0x37d)](_0x3a0e06[_0x19150d(0x48a)]);this[_0x19150d(0x3cd)](_0x104968);}))),window[_0x223237(0x427)](_0x223237(0x4c9),()=>this[_0x223237(0x38c)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x223237(0x4a3)](this['_selfUnitIDs'])}));}['_handleEvent'](_0x58ba45){const _0x4c6d81=_0x29c6a6;switch(_0x58ba45[_0x4c6d81(0x236)]){case 0x0:this[_0x4c6d81(0x1ef)](_0x58ba45);break;case 0x1:this[_0x4c6d81(0x255)](_0x58ba45);break;case 0x2:this[_0x4c6d81(0x439)](_0x58ba45);break;}}[_0x29c6a6(0x1ef)](_0x5bcc30){const _0x2b49c7=_0x29c6a6,{unitIDs:_0x3c31fa,memberID:_0x15d3f6,isForwarded:_0x20b059}=_0x5bcc30;_0x3c31fa[_0x2b49c7(0x31b)](_0x191b94=>{const _0x44ff66=_0x2b49c7;if(!_0x20b059&&this[_0x44ff66(0x2fc)][_0x44ff66(0x46f)](_0x191b94)&&this[_0x44ff66(0x291)](_0x191b94)[_0x44ff66(0x3af)](0x1),!this[_0x44ff66(0x2fc)][_0x44ff66(0x46f)](_0x191b94)||!this[_0x44ff66(0x2fc)][_0x44ff66(0x362)](_0x191b94)['has'](_0x15d3f6)){const _0x4c2bd1=this['_unitOnClients'][_0x44ff66(0x362)](_0x191b94)||new Set();_0x4c2bd1[_0x44ff66(0x497)](_0x15d3f6),this[_0x44ff66(0x2fc)]['set'](_0x191b94,_0x4c2bd1),this['_scheduleClearOtherTimer'](_0x15d3f6);}}),_0x20b059||this[_0x2b49c7(0x38c)]({'type':0x0,'memberID':this[_0x2b49c7(0x206)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x29c6a6(0x3a3)](_0x2ba1a0){const _0x3593f7=_0x29c6a6;this[_0x3593f7(0x482)](_0x2ba1a0);const _0x496755=window[_0x3593f7(0x260)](()=>{const _0x3f44b0=_0x3593f7;this[_0x3f44b0(0x2fc)][_0x3f44b0(0x31b)](_0x14aa99=>{_0x14aa99['delete'](_0x2ba1a0);});},Yt*0x2);this[_0x3593f7(0x355)][_0x3593f7(0x320)](_0x2ba1a0,_0x496755);}[_0x29c6a6(0x482)](_0xf57aa4){const _0x5e5167=_0x29c6a6;if(this['_clearOtherTimers'][_0x5e5167(0x46f)](_0xf57aa4)){const _0x16b59c=this[_0x5e5167(0x355)][_0x5e5167(0x362)](_0xf57aa4);_0x16b59c&&window['clearTimeout'](_0x16b59c),this[_0x5e5167(0x355)][_0x5e5167(0x320)](_0xf57aa4,null);}}[_0x29c6a6(0x255)](_0xadbe38){const _0x5b833=_0x29c6a6,{memberID:_0x1e5f3e,unitIDs:_0x47c199}=_0xadbe38;_0x47c199[_0x5b833(0x31b)](_0x3e255a=>{const _0x1f4ff8=_0x5b833;var _0xc33baa;const _0x315761=this['_unitOnClients']['get'](_0x3e255a);_0x315761&&(_0x315761[_0x1f4ff8(0x457)](_0x1e5f3e),(_0xc33baa=this['_ensureSubject'](_0x3e255a))==null||_0xc33baa[_0x1f4ff8(0x3af)](_0x315761['size']===0x0?0x0:0x1));}),this[_0x5b833(0x482)](_0x1e5f3e);}['_handleHeartbeatEvent'](_0x320226){const _0x3b8521=_0x29c6a6;this[_0x3b8521(0x3a3)](_0x320226['memberID']);}[_0x29c6a6(0x38c)](_0x501c19){const _0x2bb8b8=_0x29c6a6;localStorage[_0x2bb8b8(0x2bc)](Kt,JSON[_0x2bb8b8(0x376)](_0x501c19));}[_0x29c6a6(0x28b)](){const _0x36cb6b=_0x29c6a6;this[_0x36cb6b(0x1d5)]=window[_0x36cb6b(0x4a6)](()=>{const _0x27f364=_0x36cb6b;this[_0x27f364(0x38c)]({'type':0x2,'memberID':this['_id']});},Yt);}[_0x29c6a6(0x291)](_0x23b830){const _0x2721aa=_0x29c6a6;return this['_unitStatus'][_0x2721aa(0x46f)](_0x23b830)||this['_unitStatus'][_0x2721aa(0x320)](_0x23b830,new _0x2ae6a5(0x0)),this['_unitStatus']['get'](_0x23b830);}}var Dn=Object[_0x29c6a6(0x3f3)],wn=Object['getOwnPropertyDescriptor'],Pn=(_0x2ae2e2,_0x48b57d,_0x50dd3d,_0x3eeaaf)=>{for(var _0x659811=_0x3eeaaf>0x1?void 0x0:_0x3eeaaf?wn(_0x48b57d,_0x50dd3d):_0x48b57d,_0x428494=_0x2ae2e2['length']-0x1,_0x56fb36;_0x428494>=0x0;_0x428494--)(_0x56fb36=_0x2ae2e2[_0x428494])&&(_0x659811=(_0x3eeaaf?_0x56fb36(_0x48b57d,_0x50dd3d,_0x659811):_0x56fb36(_0x659811))||_0x659811);return _0x3eeaaf&&_0x659811&&Dn(_0x48b57d,_0x50dd3d,_0x659811),_0x659811;},Xt=(_0x3f2038,_0x26e9c9)=>(_0x1b5035,_0x9bebe5)=>_0x26e9c9(_0x1b5035,_0x9bebe5,_0x3f2038);let Be=class{constructor(_0x31ef4f,_0x4ca7f6){const _0xca0c24=_0x29c6a6;this['_injector']=_0x31ef4f,this[_0xca0c24(0x367)]=_0x4ca7f6;}['transformIMECache'](_0x4baaf8){const _0x57c9d2=_0x29c6a6;this[_0x57c9d2(0x3d9)](_0x4baaf8),this[_0x57c9d2(0x308)](_0x4baaf8);}[_0x29c6a6(0x42c)](_0x24f4ae){const _0x2c9a06=_0x29c6a6,_0x1405c6=this['_injector'][_0x2c9a06(0x362)](_0x25857e),{redoCache:_0x33b751}=_0x1405c6['getUndoRedoMutationParamsCache']();if(_0x33b751[_0x2c9a06(0x431)]===0x0)return _0x24f4ae;let _0x2e234c=_0x1394f4['deepClone'](_0x24f4ae[_0x2c9a06(0x365)][0x0]);for(let _0x2483c6=0x0;_0x2483c6<_0x33b751[_0x2c9a06(0x431)];_0x2483c6++){const _0xa55d88={'id':'doc.mutation.rich-text-editing','params':{..._0x33b751[_0x2483c6]}},_0x152726=this[_0x2c9a06(0x367)][_0x2c9a06(0x40f)](_0x2e234c,_0xa55d88,!0x1);if(_0x42961a(_0x152726))throw _0x152726[_0x2c9a06(0x35b)];_0x2e234c=_0x152726[_0x2c9a06(0x25a)];}return{..._0x1394f4[_0x2c9a06(0x20f)](_0x24f4ae),'mutations':[_0x2e234c]};}[_0x29c6a6(0x3d9)](_0x1e68b2){const _0x44d975=_0x29c6a6,_0x3ee7a8=this['_injector'][_0x44d975(0x362)](_0x25857e),{undoCache:_0x343db4,redoCache:_0x4e8933}=_0x3ee7a8['getUndoRedoMutationParamsCache']();if(_0x343db4['length']===0x0||_0x4e8933[_0x44d975(0x431)]===0x0)return;const _0x18663a=[],_0x5d205a=[];let _0x718252=_0x1394f4[_0x44d975(0x20f)](_0x1e68b2[_0x44d975(0x365)][0x0]),_0x59b089=_0x1394f4[_0x44d975(0x20f)](_0x1e68b2[_0x44d975(0x365)][0x0]);for(let _0x106fcc=_0x343db4[_0x44d975(0x431)]-0x1;_0x106fcc>=0x0;_0x106fcc--){const _0x235cbb={'id':_0x44d975(0x464),'params':{..._0x343db4[_0x106fcc]}},_0x5f5bb0={'id':_0x44d975(0x464),'params':{..._0x4e8933[_0x106fcc]}},_0x1b8ff0=this[_0x44d975(0x367)][_0x44d975(0x40f)](_0x718252,_0x235cbb,!0x1),_0x2c1b28=this['_transformService'][_0x44d975(0x40f)](_0x59b089,_0x5f5bb0,!0x1);if(_0x42961a(_0x1b8ff0))throw _0x1b8ff0['error'];if(_0x42961a(_0x2c1b28))throw _0x2c1b28[_0x44d975(0x35b)];_0x18663a[_0x44d975(0x29d)](_0x1b8ff0[_0x44d975(0x297)]['params']),_0x5d205a[_0x44d975(0x29d)](_0x2c1b28[_0x44d975(0x297)][_0x44d975(0x3c7)]),_0x718252=_0x1b8ff0[_0x44d975(0x25a)],_0x59b089=_0x2c1b28['m1Prime'];}_0x3ee7a8[_0x44d975(0x2a7)]({'undoCache':_0x18663a,'redoCache':_0x5d205a});}['_transformPreviousActiveRange'](_0x3f33d1){const _0x54f89b=_0x29c6a6,_0x27eba4=this[_0x54f89b(0x31f)][_0x54f89b(0x362)](_0x25857e),_0x1f1bf4=_0x27eba4[_0x54f89b(0x25e)]();if(_0x1f1bf4==null)return;const _0x35f4c2=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3f33d1['unitID'],'actions':null,'textRanges':[_0x1f1bf4]}}],_0x303629=this[_0x54f89b(0x367)][_0x54f89b(0x216)](_0x3f33d1,_0x35f4c2);if(!_0x589ac1(_0x303629))throw _0x303629['error'];const _0x2a2e46=_0x303629[_0x54f89b(0x297)][0x0][_0x54f89b(0x3c7)][_0x54f89b(0x224)];Array[_0x54f89b(0x21c)](_0x2a2e46)&&_0x2a2e46['length']&&_0x27eba4[_0x54f89b(0x28c)](_0x2a2e46[0x0]);}};Be=Pn([Xt(0x0,_0x558bc4(_0x4ead3f)),Xt(0x1,_0xd13d4c)],Be);var Nn=Object['defineProperty'],Mn=Object['getOwnPropertyDescriptor'],An=(_0x274405,_0x1b559d,_0x3829b2,_0x105aac)=>{for(var _0x39a62b=_0x105aac>0x1?void 0x0:_0x105aac?Mn(_0x1b559d,_0x3829b2):_0x1b559d,_0x41197e=_0x274405['length']-0x1,_0x198276;_0x41197e>=0x0;_0x41197e--)(_0x198276=_0x274405[_0x41197e])&&(_0x39a62b=(_0x105aac?_0x198276(_0x1b559d,_0x3829b2,_0x39a62b):_0x198276(_0x39a62b))||_0x39a62b);return _0x105aac&&_0x39a62b&&Nn(_0x1b559d,_0x3829b2,_0x39a62b),_0x39a62b;},Jt=(_0x2bbb78,_0x1a27f3)=>(_0x3e1e16,_0x2d55ed)=>_0x1a27f3(_0x3e1e16,_0x2d55ed,_0x2bbb78);let ke=class{constructor(_0xfe915c,_0x268c5f){const _0x1efec8=_0x29c6a6;this['_injector']=_0xfe915c,this[_0x1efec8(0x367)]=_0x268c5f;}[_0x29c6a6(0x21d)](_0x3b9fa5){const _0xebbe31=_0x29c6a6;var _0x19fbf7;const _0x4b4162=this[_0xebbe31(0x31f)][_0xebbe31(0x362)](_0x4c35a6),_0x250394=(_0x19fbf7=_0x4b4162[_0xebbe31(0x305)]())!=null?_0x19fbf7:[],_0x2e1775=_0x250394==null?void 0x0:_0x250394[_0xebbe31(0x1f9)](_0x547357);if(_0x2e1775['length']===0x0)return;const _0x174eaf=[{'id':_0xebbe31(0x464),'params':{'unitId':_0x3b9fa5[_0xebbe31(0x1ca)],'actions':null,'textRanges':_0x2e1775}}],_0x1c8b00=this[_0xebbe31(0x367)][_0xebbe31(0x216)](_0x3b9fa5,_0x174eaf);if(!_0x589ac1(_0x1c8b00))throw _0x1c8b00[_0xebbe31(0x35b)];const _0x4c6d1e=_0x1c8b00[_0xebbe31(0x297)][0x0]['params'][_0xebbe31(0x224)];Array[_0xebbe31(0x21c)](_0x4c6d1e)&&_0x4c6d1e[_0xebbe31(0x431)]&&_0x4b4162['replaceTextRanges'](_0x4c6d1e,!0x1);}};ke=An([Jt(0x0,_0x558bc4(_0x4ead3f)),Jt(0x1,_0xd13d4c)],ke);function Ds(_0x3380b2){const _0x3787ac=_0x29c6a6;let _0x2d2cc3='';for(const _0x2863ef of _0x3380b2){const {startOffset:_0x24ca00,endOffset:_0x46335a,isActive:_0x4d1615}=_0x2863ef;_0x2d2cc3[_0x3787ac(0x431)]&&(_0x2d2cc3+=','),_0x2d2cc3+=_0x24ca00+':'+_0x46335a+':'+(_0x4d1615?'1':'0');}return _0x2d2cc3;}function yn(_0x374296){const _0xbf307e=_0x29c6a6,_0x3bc9b5=_0x374296[_0xbf307e(0x4cd)](','),_0x244a3a=[];for(const _0x4c17a0 of _0x3bc9b5){const [_0x41f9ba,_0x464976,_0x3aa64d]=_0x4c17a0[_0xbf307e(0x4cd)](':');_0x244a3a[_0xbf307e(0x2f7)]({'startOffset':Number(_0x41f9ba),'endOffset':Number(_0x464976),'collapsed':_0x41f9ba===_0x464976,'isActive':_0x3aa64d==='1'});}return _0x244a3a['some'](_0x21a71a=>_0x21a71a[_0xbf307e(0x36f)])||(_0x244a3a[0x0][_0xbf307e(0x36f)]=!0x0),_0x244a3a;}class Mt extends _0x39fd47{constructor(){const _0x28baa3=_0x29c6a6;super(...arguments),l(this,_0x28baa3(0x321),new _0x2ae6a5(null)),l(this,_0x28baa3(0x344),this[_0x28baa3(0x321)][_0x28baa3(0x4db)]());}[_0x29c6a6(0x44f)](_0x18263a){const _0x3585c0=_0x29c6a6,{unitID:_0x1ae5ca,memberID:_0xea2e96,textRanges:_0x5eebbc}=_0x18263a,_0x5afb86=Ds(_0x5eebbc),_0x554b1e={'unitID':_0x1ae5ca,'memberID':_0xea2e96,'selection':_0x5afb86};this['_collabCursorState$'][_0x3585c0(0x3af)](_0x554b1e);}}var Un=Object['defineProperty'],Ln=Object[_0x29c6a6(0x48e)],$n=(_0x3497cc,_0x467d26,_0x2639e4,_0x4e9632)=>{const _0x1e56c5=_0x29c6a6;for(var _0x1333ca=_0x4e9632>0x1?void 0x0:_0x4e9632?Ln(_0x467d26,_0x2639e4):_0x467d26,_0x23e62e=_0x3497cc[_0x1e56c5(0x431)]-0x1,_0x177b0b;_0x23e62e>=0x0;_0x23e62e--)(_0x177b0b=_0x3497cc[_0x23e62e])&&(_0x1333ca=(_0x4e9632?_0x177b0b(_0x467d26,_0x2639e4,_0x1333ca):_0x177b0b(_0x1333ca))||_0x1333ca);return _0x4e9632&&_0x1333ca&&Un(_0x467d26,_0x2639e4,_0x1333ca),_0x1333ca;},zt=(_0x42740d,_0x37a491)=>(_0x4ab9fa,_0x1bfa39)=>_0x37a491(_0x4ab9fa,_0x1bfa39,_0x42740d);let Ve=class{constructor(_0xd80573,_0x272f32){const _0x4f38e3=_0x29c6a6;this[_0x4f38e3(0x31f)]=_0xd80573,this[_0x4f38e3(0x367)]=_0x272f32;}['transformSelections'](_0x48e163){const _0x32abf0=_0x29c6a6;var _0xbeb9e5,_0x6f9081,_0x5b5396,_0x41d2b1;const _0x510ced=this['_injector'][_0x32abf0(0x362)](_0x543329),{pluginName:_0x5292b7,unitId:_0x3595b1,sheetId:_0x55e3dc}=_0x510ced[_0x32abf0(0x463)]()||{},_0x204eb5=(_0xbeb9e5=_0x510ced[_0x32abf0(0x305)]())!=null?_0xbeb9e5:[];if(_0x204eb5[_0x32abf0(0x431)]===0x0||!_0x5292b7||!_0x3595b1||!_0x55e3dc)return;const _0x4150c1=[{'id':_0x57025f['id'],'params':{'unitId':_0x3595b1,'subUnitId':_0x55e3dc,'pluginName':_0x5292b7,'selections':_0x1394f4[_0x32abf0(0x20f)](_0x204eb5)}}],_0x1059d9=this[_0x32abf0(0x367)][_0x32abf0(0x216)](_0x48e163,_0x4150c1);if(!_0x589ac1(_0x1059d9))throw _0x1059d9[_0x32abf0(0x35b)];const _0x2eeec0=(_0x41d2b1=(_0x5b5396=(_0x6f9081=_0x1059d9[_0x32abf0(0x297)][0x0])==null?void 0x0:_0x6f9081[_0x32abf0(0x3c7)])==null?void 0x0:_0x5b5396['selections'])!=null?_0x41d2b1:_0x204eb5;Array[_0x32abf0(0x21c)](_0x2eeec0)&&_0x2eeec0[_0x32abf0(0x431)]&&this['_injector'][_0x32abf0(0x362)](_0x594d06)[_0x32abf0(0x22a)](_0x57025f['id'],{'unitId':_0x3595b1,'subUnitId':_0x55e3dc,'pluginName':_0x5292b7,'selections':_0x2eeec0});}};Ve=$n([zt(0x0,_0x558bc4(_0x4ead3f)),zt(0x1,_0xd13d4c)],Ve);const jn=new Set([_0x2ae46a['id']]);function Hn(_0x1c49ed,_0x54b000,_0x548f7d,_0x18c3ea,_0x5bf92f){const _0x389d3e=_0x29c6a6;var _0x333557,_0x362ef4,_0x46378b,_0x5663c7;const _0x453b6f=[];for(const _0x448970 of _0x1c49ed)if(jn[_0x389d3e(0x46f)](_0x448970['id'])){if(_0x453b6f[_0x389d3e(0x431)]>0x0)break;_0x453b6f[_0x389d3e(0x2f7)](_0x448970);break;}else _0x453b6f[_0x389d3e(0x2f7)](_0x448970);const _0xfa13f6=(_0x362ef4=(_0x333557=_0x5bf92f[_0x389d3e(0x4b8)]())==null?void 0x0:_0x333557['userID'])!=null?_0x362ef4:_0x389d3e(0x221),_0x1c7bf8=(_0x5663c7=(_0x46378b=_0x5bf92f['getCurrentUser']())==null?void 0x0:_0x46378b[_0x389d3e(0x264)])!=null?_0x5663c7:_0x389d3e(0x221);return{'changeset':{'unitID':_0x54b000,'type':_0x385526(_0x548f7d[_0x389d3e(0x1d9)](_0x54b000)),'baseRev':_0x18c3ea[_0x389d3e(0x433)](_0x54b000),'revision':0x0,'userID':_0xfa13f6,'memberID':_0x1c7bf8,'mutations':_0x453b6f},'pendingMutations':_0x1c49ed[_0x389d3e(0x350)](_0x453b6f[_0x389d3e(0x431)])};}function xn(_0x4cd8f9,_0x5db503,_0x169570,_0x96556c,_0xb8c34c){const _0x2085b0=_0x29c6a6;var _0x50d9e9,_0x38cf1a,_0x4a63fd,_0x533f8e;const _0x4e7804=[_0x4cd8f9[_0x2085b0(0x3ef)]((_0x200141,_0x49ada3)=>{const _0x23e700=_0x2085b0;var _0x43e569;const {id:_0x3d06a1}=_0x200141,{id:_0x2f65ba,type:_0x5bab5e}=_0x49ada3,_0x126fc8=(_0x43e569=_0x200141[_0x23e700(0x3c7)])!=null?_0x43e569:{'actions':null},_0x1ab739=_0x49ada3[_0x23e700(0x3c7)];if(_0x3d06a1&&_0x3d06a1!==_0x2f65ba)throw new Error(_0x23e700(0x33c)+_0x3d06a1+_0x23e700(0x43b)+_0x2f65ba+'.');return{..._0x200141,'id':_0x2f65ba,'type':_0x5bab5e,'params':{'unitId':_0x1ab739[_0x23e700(0x458)],'textRanges':_0x1ab739[_0x23e700(0x224)],'actions':_0x4686a0[_0x23e700(0x292)](_0x126fc8[_0x23e700(0x27c)],_0x1ab739[_0x23e700(0x27c)])}};},{})],_0x43bed7=(_0x38cf1a=(_0x50d9e9=_0xb8c34c[_0x2085b0(0x4b8)]())==null?void 0x0:_0x50d9e9[_0x2085b0(0x40d)])!=null?_0x38cf1a:'unknown',_0xee99d=(_0x533f8e=(_0x4a63fd=_0xb8c34c[_0x2085b0(0x4b8)]())==null?void 0x0:_0x4a63fd[_0x2085b0(0x264)])!=null?_0x533f8e:_0x2085b0(0x221);return{'changeset':{'unitID':_0x5db503,'type':_0x385526(_0x169570[_0x2085b0(0x1d9)](_0x5db503)),'baseRev':_0x96556c['getCurrentRevForDocument'](_0x5db503),'revision':0x0,'userID':_0x43bed7,'memberID':_0xee99d,'mutations':_0x4e7804},'pendingMutations':[]};}var Fn=Object[_0x29c6a6(0x3f3)],Bn=Object['getOwnPropertyDescriptor'],ne=(_0x739fbb,_0x166da5,_0x207347,_0x337fb6)=>{for(var _0x4b3fcf=_0x337fb6>0x1?void 0x0:_0x337fb6?Bn(_0x166da5,_0x207347):_0x166da5,_0x2fe473=_0x739fbb['length']-0x1,_0x16caca;_0x2fe473>=0x0;_0x2fe473--)(_0x16caca=_0x739fbb[_0x2fe473])&&(_0x4b3fcf=(_0x337fb6?_0x16caca(_0x166da5,_0x207347,_0x4b3fcf):_0x16caca(_0x4b3fcf))||_0x4b3fcf);return _0x337fb6&&_0x4b3fcf&&Fn(_0x166da5,_0x207347,_0x4b3fcf),_0x4b3fcf;},g=(_0x40a697,_0x4f85e5)=>(_0x392c6b,_0x1cd4ab)=>_0x4f85e5(_0x392c6b,_0x1cd4ab,_0x40a697),P=(_0x36b39d=>(_0x36b39d[_0x29c6a6(0x483)]=_0x29c6a6(0x379),_0x36b39d[_0x29c6a6(0x30d)]=_0x29c6a6(0x397),_0x36b39d[_0x29c6a6(0x1f3)]='pending',_0x36b39d[_0x29c6a6(0x4c6)]=_0x29c6a6(0x403),_0x36b39d[_0x29c6a6(0x3c4)]=_0x29c6a6(0x3ed),_0x36b39d[_0x29c6a6(0x399)]=_0x29c6a6(0x3c8),_0x36b39d['CONFLICT']=_0x29c6a6(0x348),_0x36b39d[_0x29c6a6(0x4b5)]=_0x29c6a6(0x2de),_0x36b39d))(P||{});class re{constructor(_0x306641,_0x58b846,_0x5adbaf,_0x886183,_0xc67bb9,_0x3f0381,_0x42d22e,_0x2949d2,_0xc4b34b){const _0x33c4b0=_0x29c6a6;l(this,_0x33c4b0(0x1c4),null),l(this,_0x33c4b0(0x4ea),[]),(this[_0x33c4b0(0x1ca)]=_0x306641,this[_0x33c4b0(0x236)]=_0x58b846,this[_0x33c4b0(0x1c9)]=_0xc67bb9,this[_0x33c4b0(0x3d7)]=_0x3f0381,this['_undoRedoService']=_0x42d22e,this[_0x33c4b0(0x230)]=_0x2949d2,this[_0x33c4b0(0x1ec)]=_0xc4b34b,this['_awaitingChangeset']=_0x5adbaf,this[_0x33c4b0(0x4ea)]=_0x886183);}[_0x29c6a6(0x43c)](_0x42b810){const _0x173f85=_0x29c6a6,_0x24bee0=this['_revisionService']['getCurrentRevForDocument'](this[_0x173f85(0x1ca)]);return _0x42b810[_0x173f85(0x32f)]>_0x24bee0+0x1?(this[_0x173f85(0x1c9)][_0x173f85(0x340)]({'from':_0x24bee0,'to':_0x42b810['revision']-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x25a31a){const _0x4c7559=_0x29c6a6;this[_0x4c7559(0x36a)]['transformUndoRedo'](this[_0x4c7559(0x1ca)],_0x25a31a);}[_0x29c6a6(0x22b)](_0x2e4fcc){const _0x41eb18=_0x29c6a6;var _0x4aaf09,_0x3fbc71;(_0x3fbc71=(_0x4aaf09=this[_0x41eb18(0x1c9)])['onTransformSelections'])==null||_0x3fbc71['call'](_0x4aaf09,_0x2e4fcc);}['_transformIMECache'](_0x17941e){const _0x40c08d=_0x29c6a6;var _0x462b5f,_0x4f9895;return(_0x4f9895=(_0x462b5f=this[_0x40c08d(0x1c9)])['onTransformIME'])==null?void 0x0:_0x4f9895[_0x40c08d(0x4ef)](_0x462b5f,_0x17941e);}[_0x29c6a6(0x369)](_0x5c8486){const _0x4d1823=_0x29c6a6;var _0x2011e1,_0xab0560,_0x1e8be3;return(_0x1e8be3=(_0xab0560=(_0x2011e1=this[_0x4d1823(0x1c9)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0xab0560[_0x4d1823(0x4ef)](_0x2011e1,_0x5c8486))!=null?_0x1e8be3:_0x5c8486;}[_0x29c6a6(0x3d8)](_0x42516b){const _0x5a1300=_0x29c6a6;var _0x2cb1b8,_0x2000c7;if(this[_0x5a1300(0x236)]===H[_0x5a1300(0x3f2)]){const {unitID:_0x2bb5d4,mutations:_0x29f589,memberID:_0x3b0f15}=_0x42516b,_0x1dd4cd=_0x29f589[0x0][_0x5a1300(0x3c7)][_0x5a1300(0x224)];Array[_0x5a1300(0x21c)](_0x1dd4cd)&&_0x1dd4cd[_0x5a1300(0x431)]>0x0&&((_0x2000c7=(_0x2cb1b8=this['_handler'])[_0x5a1300(0x4e9)])==null||_0x2000c7['call'](_0x2cb1b8,{'unitID':_0x2bb5d4,'memberID':_0x3b0f15,'textRanges':_0x1dd4cd}));}}[_0x29c6a6(0x1c2)](){const _0x309915=_0x29c6a6;this[_0x309915(0x1ec)][_0x309915(0x1dc)](this[_0x309915(0x1ca)],this[_0x309915(0x236)],this[_0x309915(0x1c4)],this['_pendingMutations']);}[_0x29c6a6(0x416)](){return this['_revisionService']['getCurrentRevForDocument'](this['unitID']);}[_0x29c6a6(0x411)](){const _0xf875c9=_0x29c6a6;this[_0xf875c9(0x230)][_0xf875c9(0x4e8)](this[_0xf875c9(0x1ca)]);}[_0x29c6a6(0x272)](_0x25b6a6){const _0x5e5be0=_0x29c6a6;var _0x1fd849;const _0x4ee119=this[_0x5e5be0(0x369)](_0x25b6a6),_0x525ac4=_0x4025ef(_0x4ee119[_0x5e5be0(0x365)],this[_0x5e5be0(0x3d7)],{'fromCollab':!0x0});if(!_0x525ac4[_0x5e5be0(0x404)])throw _0x525ac4[_0x5e5be0(0x35b)]instanceof Error?_0x525ac4['error']:new Error((_0x1fd849=_0x525ac4['error'])!=null?_0x1fd849:_0x5e5be0(0x2cb));this['_transformIMECache'](_0x4ee119),this[_0x5e5be0(0x302)](_0x25b6a6),this[_0x5e5be0(0x22b)](_0x4ee119),this['_syncEditingCollabCursor'](_0x4ee119),this[_0x5e5be0(0x411)]();}}let Te=class extends re{constructor(_0x4c146f,_0x25a1b2,_0xba29bc,_0x99b4f,_0x677706,_0x4b1f9b,_0x353fb1,_0xc86c8f,_0x1de3b2){const _0x16e599=_0x29c6a6;super(_0x4c146f,_0x25a1b2,null,[],_0xba29bc,_0xc86c8f,_0x353fb1,_0x99b4f,_0x677706),l(this,_0x16e599(0x3ea),_0x16e599(0x397)),(this['_injector']=_0x4b1f9b,this[_0x16e599(0x214)]=_0x1de3b2);}['appendMutation'](_0x483b92){const _0x4e8631=_0x29c6a6,_0x21f47d=this[_0x4e8631(0x31f)]['createInstance'](k,this['unitID'],this[_0x4e8631(0x236)],[_0x483b92],this[_0x4e8631(0x1c9)]);return _0x21f47d[_0x4e8631(0x303)](),_0x21f47d[_0x4e8631(0x1c2)](),_0x21f47d;}[_0x29c6a6(0x434)](_0x5599c4){const _0x2dadee=_0x29c6a6;if(this['_checkMissing'](_0x5599c4))return this[_0x2dadee(0x31f)]['createInstance'](W,this[_0x2dadee(0x1ca)],this[_0x2dadee(0x236)],null,[],null,[_0x5599c4],this[_0x2dadee(0x1c9)]);try{return this[_0x2dadee(0x272)](_0x5599c4),this;}catch(_0x1316b5){return this[_0x2dadee(0x214)][_0x2dadee(0x35b)](_0x2dadee(0x469),_0x1316b5),this;}}['onRemoteAck'](){const _0x3a20a7=_0x29c6a6;throw new Error(_0x3a20a7(0x2ce));}[_0x29c6a6(0x48f)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}['toggleOffline'](){const _0x4a9601=_0x29c6a6;return this['_injector'][_0x4a9601(0x43a)](J,this[_0x4a9601(0x1ca)],this['type'],null,[],this[_0x4a9601(0x1c9)]);}[_0x29c6a6(0x2b1)](){return this;}['resend'](){const _0x16c17e=_0x29c6a6;throw new Error(_0x16c17e(0x38b));}};Te=ne([g(0x3,_0x558bc4(_0x353354)),g(0x4,_0x558bc4(D)),g(0x5,_0x558bc4(_0x4ead3f)),g(0x6,_0x58b491),g(0x7,_0x594d06),g(0x8,_0x2125ae)],Te);let k=class extends re{constructor(_0x5dc6ac,_0x3a7dce,_0x1b868a,_0x5a10d6,_0x59d095,_0x1a522b,_0x4d9326,_0x2f59cc,_0x382430,_0x1d5138,_0x366eb9,_0x5559da,_0x123970,_0x235c32){const _0x1afd47=_0x29c6a6;super(_0x5dc6ac,_0x3a7dce,null,_0x1b868a,_0x5a10d6,_0x1d5138,_0x235c32,_0x1a522b,_0x4d9326),l(this,'status',_0x1afd47(0x3c0)),l(this,'_scheduleTimestamp',null),l(this,_0x1afd47(0x275),null),(this[_0x1afd47(0x31f)]=_0x59d095,this[_0x1afd47(0x23c)]=_0x2f59cc,this[_0x1afd47(0x214)]=_0x382430,this['_configService']=_0x366eb9,this[_0x1afd47(0x367)]=_0x5559da,this[_0x1afd47(0x49b)]=_0x123970);}[_0x29c6a6(0x359)](_0x32c863){const _0x42b4d9=_0x29c6a6;return this[_0x42b4d9(0x4ea)]['push'](_0x32c863),this[_0x42b4d9(0x1c2)](),this;}[_0x29c6a6(0x434)](_0x38da4a){const _0x42dc13=_0x29c6a6;if(this['_checkMissing'](_0x38da4a))return this[_0x42dc13(0x334)](),this[_0x42dc13(0x31f)]['createInstance'](W,this[_0x42dc13(0x1ca)],this['type'],null,this[_0x42dc13(0x4ea)],null,[_0x38da4a],this[_0x42dc13(0x1c9)]);try{const _0x5a8618=this[_0x42dc13(0x367)]['transformMutationsWithChangeset'](_0x38da4a,this[_0x42dc13(0x4ea)]);if(_0x589ac1(_0x5a8618)){const {c1Prime:_0x55d434,m2Prime:_0x482db1}=_0x5a8618;this[_0x42dc13(0x272)](_0x55d434);const _0x315969=this[_0x42dc13(0x31f)][_0x42dc13(0x43a)](k,this[_0x42dc13(0x1ca)],this[_0x42dc13(0x236)],_0x482db1,this[_0x42dc13(0x1c9)]);return this[_0x42dc13(0x334)](),_0x315969[_0x42dc13(0x303)](this[_0x42dc13(0x3b5)]?Math[_0x42dc13(0x28a)](0x0,new Date()[_0x42dc13(0x26b)]()-this['_scheduleTimestamp']):this[_0x42dc13(0x49a)]()),_0x315969;}throw _0x5a8618[_0x42dc13(0x35b)];}catch(_0x424022){return this[_0x42dc13(0x214)][_0x42dc13(0x35b)](_0x424022),this['_onConflict'](!0x1);}}[_0x29c6a6(0x31d)](){const _0x405c7e=_0x29c6a6;throw new Error(_0x405c7e(0x3e7));}[_0x29c6a6(0x48f)](){const _0x33b3dc=_0x29c6a6;throw new Error(_0x33b3dc(0x2d0));}['toggleOffline'](){const _0x59742f=_0x29c6a6;return this[_0x59742f(0x334)](),this[_0x59742f(0x31f)]['createInstance'](J,this[_0x59742f(0x1ca)],this[_0x59742f(0x236)],null,this['_pendingMutations'],this[_0x59742f(0x1c9)]);}[_0x29c6a6(0x2b1)](){return this;}['_schedule'](_0x395d48){const _0x5a1ebe=_0x29c6a6;_0x395d48=_0x395d48!=null?_0x395d48:this[_0x5a1ebe(0x49a)](),this[_0x5a1ebe(0x3b5)]=new Date()['getTime'](),this[_0x5a1ebe(0x275)]=setTimeout(()=>{const _0x4c3996=_0x5a1ebe;this[_0x4c3996(0x334)]();let _0x220011=null;switch(this[_0x4c3996(0x236)]){case H[_0x4c3996(0x3b4)]:{_0x220011=Hn(this['_pendingMutations'],this['unitID'],this[_0x4c3996(0x49b)],this[_0x4c3996(0x230)],this[_0x4c3996(0x23c)]);break;}case H[_0x4c3996(0x3f2)]:{_0x220011=xn(this[_0x4c3996(0x4ea)],this[_0x4c3996(0x1ca)],this[_0x4c3996(0x49b)],this[_0x4c3996(0x230)],this[_0x4c3996(0x23c)]);break;}default:throw new Error(_0x4c3996(0x318)+this[_0x4c3996(0x236)]+_0x4c3996(0x328));}const {changeset:_0x16ca96,pendingMutations:_0x395c93}=_0x220011;this['_handler'][_0x4c3996(0x4c5)](_0x16ca96);const _0x418c62=_0x395c93['length']?this['_injector']['createInstance'](V,this[_0x4c3996(0x1ca)],this['type'],_0x16ca96,_0x395c93,this[_0x4c3996(0x1c9)]):this['_injector'][_0x4c3996(0x43a)](X,this[_0x4c3996(0x1ca)],this[_0x4c3996(0x236)],_0x16ca96,this['_handler']);_0x418c62[_0x4c3996(0x1c2)](),this['_handler'][_0x4c3996(0x24f)](this,_0x418c62);},_0x395d48);}[_0x29c6a6(0x49a)](){const _0x585716=_0x29c6a6;var _0x2f7834;return(_0x2f7834=this[_0x585716(0x211)][_0x585716(0x29b)](Xi))!=null?_0x2f7834:Ji;}[_0x29c6a6(0x489)](){const _0x39f679=_0x29c6a6;throw new Error(_0x39f679(0x34a));}[_0x29c6a6(0x334)](){const _0x5d9bcc=_0x29c6a6;this[_0x5d9bcc(0x275)]!=null&&(clearTimeout(this[_0x5d9bcc(0x275)]),this[_0x5d9bcc(0x275)]=null);}[_0x29c6a6(0x4e7)](_0x46d99a){const _0x128a6f=_0x29c6a6;return this['_clearScheduledTask'](),this[_0x128a6f(0x31f)][_0x128a6f(0x43a)](te,this[_0x128a6f(0x1ca)],this['type'],null,this['_pendingMutations'],this[_0x128a6f(0x1c9)],_0x46d99a);}};k=ne([g(0x4,_0x558bc4(_0x4ead3f)),g(0x5,_0x558bc4(_0x353354)),g(0x6,_0x558bc4(D)),g(0x7,_0x558bc4(ee)),g(0x8,_0x2125ae),g(0x9,_0x594d06),g(0xa,_0x575c32),g(0xb,_0xd13d4c),g(0xc,_0x33e391),g(0xd,_0x58b491)],k);let X=class extends re{constructor(_0x53c522,_0x1dc396,_0x5082d2,_0x443801,_0x4c0fda,_0x5b1c03,_0xc6779b,_0x16857e,_0x32e07e,_0x4b4aac,_0x12b832){const _0x2d148a=_0x29c6a6;super(_0x53c522,_0x1dc396,_0x5082d2,[],_0x443801,_0x16857e,_0x12b832,_0x5b1c03,_0xc6779b),l(this,_0x2d148a(0x3ea),'awaiting'),(this[_0x2d148a(0x31f)]=_0x4c0fda,this[_0x2d148a(0x214)]=_0x32e07e,this[_0x2d148a(0x367)]=_0x4b4aac);}[_0x29c6a6(0x359)](_0x281b0e){const _0x1950d3=_0x29c6a6,_0x1399f0=this['_injector'][_0x1950d3(0x43a)](V,this[_0x1950d3(0x1ca)],this[_0x1950d3(0x236)],this['_awaitingChangeset'],[_0x281b0e],this[_0x1950d3(0x1c9)]);return _0x1399f0[_0x1950d3(0x1c2)](),_0x1399f0;}[_0x29c6a6(0x434)](_0x3bee9a){const _0x57e6d2=_0x29c6a6;if(this['_checkMissing'](_0x3bee9a))return this[_0x57e6d2(0x31f)][_0x57e6d2(0x43a)](W,this[_0x57e6d2(0x1ca)],this[_0x57e6d2(0x236)],this['_awaitingChangeset'],[],null,[_0x3bee9a],this[_0x57e6d2(0x1c9)]);try{const _0x2eadbe=this[_0x57e6d2(0x367)][_0x57e6d2(0x207)]([_0x3bee9a],[this[_0x57e6d2(0x1c4)]],!0x1);if(_0x389cf2(_0x2eadbe)){const {c1Prime:_0x2418ba,c2Prime:_0x29264d}=_0x2eadbe;this[_0x57e6d2(0x272)](_0x2418ba[0x0]),_0x29264d[0x0][_0x57e6d2(0x3ce)]=this[_0x57e6d2(0x416)]();const _0x230a31=this[_0x57e6d2(0x31f)]['createInstance'](X,this[_0x57e6d2(0x1ca)],this[_0x57e6d2(0x236)],_0x29264d[0x0],this[_0x57e6d2(0x1c9)]);return _0x230a31['_updateLocalCache'](),_0x230a31;}return this[_0x57e6d2(0x4e7)](!0x1);}catch(_0x567527){return this[_0x57e6d2(0x214)][_0x57e6d2(0x35b)](_0x567527),this[_0x57e6d2(0x4e7)](!0x1);}}[_0x29c6a6(0x31d)](_0x5cd8ef){const _0x20401b=_0x29c6a6,_0x5cb439=this['_revisionService'][_0x20401b(0x433)](this[_0x20401b(0x1ca)]);if(_0x5cd8ef['revision']<_0x5cb439-0x1)return this;if(this[_0x20401b(0x43c)](_0x5cd8ef))return this[_0x20401b(0x31f)][_0x20401b(0x43a)](W,this['unitID'],this['type'],null,[],this[_0x20401b(0x1c4)],[],this[_0x20401b(0x1c9)]);this[_0x20401b(0x411)]();const _0x448b4e=this['_injector'][_0x20401b(0x43a)](Te,this['unitID'],this['type'],this[_0x20401b(0x1c9)]);return _0x448b4e['_updateLocalCache'](),_0x448b4e;}[_0x29c6a6(0x48f)](_0x2ed657){const _0x319fee=_0x29c6a6;return this[_0x319fee(0x4e7)](!!(_0x2ed657!=null&&_0x2ed657[_0x319fee(0x1c3)]));}[_0x29c6a6(0x242)](){const _0x1ca569=_0x29c6a6;return this[_0x1ca569(0x31f)][_0x1ca569(0x43a)](J,this['unitID'],this['type'],this[_0x1ca569(0x1c4)],[],this['_handler']);}[_0x29c6a6(0x2b1)](){return this;}[_0x29c6a6(0x489)](){const _0x2b822d=_0x29c6a6;this[_0x2b822d(0x1c9)][_0x2b822d(0x4c5)](this[_0x2b822d(0x1c4)]);}['_onConflict'](_0x2cff33){const _0x39593d=_0x29c6a6;return this[_0x39593d(0x31f)][_0x39593d(0x43a)](te,this[_0x39593d(0x1ca)],this[_0x39593d(0x236)],this[_0x39593d(0x1c4)],[],this[_0x39593d(0x1c9)],_0x2cff33);}};X=ne([g(0x4,_0x558bc4(_0x4ead3f)),g(0x5,_0x558bc4(_0x353354)),g(0x6,_0x558bc4(D)),g(0x7,_0x594d06),g(0x8,_0x2125ae),g(0x9,_0xd13d4c),g(0xa,_0x58b491)],X);let V=class extends re{constructor(_0x223038,_0x3801f5,_0x161916,_0x1b26e0,_0x284689,_0x488fd9,_0x59dedd,_0x388d66,_0x3cd293,_0x229b12,_0x381f50,_0x49af50){const _0x89ccb=_0x29c6a6;super(_0x223038,_0x3801f5,_0x161916,_0x1b26e0,_0x284689,_0x3cd293,_0x49af50,_0x59dedd,_0x388d66),l(this,'status',_0x89ccb(0x3ed)),(this[_0x89ccb(0x31f)]=_0x488fd9,this[_0x89ccb(0x214)]=_0x229b12,this['_transformService']=_0x381f50);}[_0x29c6a6(0x359)](_0xd5ea89){const _0x1ba9aa=_0x29c6a6;return this[_0x1ba9aa(0x4ea)][_0x1ba9aa(0x2f7)](_0xd5ea89),this;}[_0x29c6a6(0x434)](_0x23961d){const _0x6b68bd=_0x29c6a6;if(this[_0x6b68bd(0x43c)](_0x23961d))return this[_0x6b68bd(0x31f)][_0x6b68bd(0x43a)](W,this[_0x6b68bd(0x1ca)],this[_0x6b68bd(0x236)],this[_0x6b68bd(0x1c4)],this['_pendingMutations'],null,[_0x23961d],this['_handler']);try{const _0x466108=this[_0x6b68bd(0x367)][_0x6b68bd(0x207)]([_0x23961d],[this[_0x6b68bd(0x1c4)]],!0x1);if(_0x389cf2(_0x466108)){const {c1Prime:_0x165d1e,c2Prime:_0x30c1c2}=_0x466108,_0xbbd47c=this[_0x6b68bd(0x367)][_0x6b68bd(0x216)](_0x165d1e[0x0],this[_0x6b68bd(0x4ea)]);if(_0x589ac1(_0xbbd47c)){const {c1Prime:_0x35b778,m2Prime:_0x5bdc16}=_0xbbd47c;return this[_0x6b68bd(0x272)](_0x35b778),_0x30c1c2[0x0][_0x6b68bd(0x3ce)]=this[_0x6b68bd(0x416)](),this['_injector'][_0x6b68bd(0x43a)](V,this[_0x6b68bd(0x1ca)],this[_0x6b68bd(0x236)],_0x30c1c2[0x0],_0x5bdc16,this[_0x6b68bd(0x1c9)]);}throw _0xbbd47c['error'];}throw _0x466108[_0x6b68bd(0x35b)];}catch(_0x465134){return this['_logService'][_0x6b68bd(0x35b)](_0x465134),this['_onConflict'](!0x1);}}[_0x29c6a6(0x31d)](_0x36bb5a){const _0xadee6a=_0x29c6a6;if(this[_0xadee6a(0x43c)](_0x36bb5a))return this[_0xadee6a(0x31f)][_0xadee6a(0x43a)](W,this['unitID'],this[_0xadee6a(0x236)],null,this[_0xadee6a(0x4ea)],this['_awaitingChangeset'],[],this[_0xadee6a(0x1c9)]);this['_incrementRevisionNumber']();const _0x822f6f=this[_0xadee6a(0x31f)][_0xadee6a(0x43a)](k,this[_0xadee6a(0x1ca)],this[_0xadee6a(0x236)],this[_0xadee6a(0x4ea)],this[_0xadee6a(0x1c9)]);return _0x822f6f['_schedule'](),_0x822f6f[_0xadee6a(0x1c2)](),_0x822f6f;}[_0x29c6a6(0x48f)](_0x4d8be0){const _0x34af63=_0x29c6a6;return this[_0x34af63(0x4e7)](!!(_0x4d8be0!=null&&_0x4d8be0[_0x34af63(0x1c3)]));}['toggleOffline'](){const _0xa4273f=_0x29c6a6;return this[_0xa4273f(0x31f)][_0xa4273f(0x43a)](J,this['unitID'],this['type'],this[_0xa4273f(0x1c4)],this[_0xa4273f(0x4ea)],this[_0xa4273f(0x1c9)]);}['toggleOnline'](){return this;}['resend'](){const _0xb47786=_0x29c6a6;this[_0xb47786(0x1c9)][_0xb47786(0x4c5)](this[_0xb47786(0x1c4)]);}['_onConflict'](_0x1b1bc1){const _0xb13db1=_0x29c6a6;return this[_0xb13db1(0x31f)][_0xb13db1(0x43a)](te,this[_0xb13db1(0x1ca)],this[_0xb13db1(0x236)],null,this[_0xb13db1(0x4ea)],this['_handler'],_0x1b1bc1);}};V=ne([g(0x5,_0x558bc4(_0x4ead3f)),g(0x6,_0x558bc4(_0x353354)),g(0x7,_0x558bc4(D)),g(0x8,_0x594d06),g(0x9,_0x2125ae),g(0xa,_0xd13d4c),g(0xb,_0x58b491)],V);let te=class extends re{constructor(_0x5209ad,_0x59786a,_0x2508e9,_0x3986b8,_0x4daba2,_0x236ac2=!0x1,_0x5d7d01,_0x33b678,_0x7b3d83,_0x5cc978,_0x4017f6,_0x56e5a6,_0x1dd204){const _0x57a554=_0x29c6a6;super(_0x5209ad,_0x59786a,_0x2508e9,_0x3986b8,_0x4daba2,_0x33b678,_0x7b3d83,_0x4017f6,_0x5cc978),l(this,_0x57a554(0x3ea),_0x57a554(0x348)),(this[_0x57a554(0x407)]=_0x236ac2,this[_0x57a554(0x484)]=_0x5d7d01,this[_0x57a554(0x357)]=_0x56e5a6,this['_notificationService']=_0x1dd204,this[_0x57a554(0x1e1)](),this[_0x57a554(0x1ce)](),this['_disableEditing']());}['appendMutation'](){return this;}[_0x29c6a6(0x434)](){return this;}[_0x29c6a6(0x31d)](){return this;}[_0x29c6a6(0x48f)](){return this;}[_0x29c6a6(0x242)](){return this;}['toggleOnline'](){return this;}[_0x29c6a6(0x489)](){const _0x47aeb2=_0x29c6a6;throw new Error(_0x47aeb2(0x406));}[_0x29c6a6(0x1ce)](){const _0x52d1cf=_0x29c6a6;this[_0x52d1cf(0x1ec)][_0x52d1cf(0x1dc)](this[_0x52d1cf(0x1ca)],this[_0x52d1cf(0x236)],null,[]);}[_0x29c6a6(0x1e1)](){const _0x153354=_0x29c6a6;this[_0x153354(0x407)]?this[_0x153354(0x478)][_0x153354(0x47a)]({'title':this[_0x153354(0x357)]['t'](_0x153354(0x229)),'content':this['_localeService']['t'](_0x153354(0x1c7)),'type':_0x153354(0x35b),'duration':0x0}):this['_notificationService']['show']({'title':this[_0x153354(0x357)]['t'](_0x153354(0x498)),'content':this[_0x153354(0x357)]['t']('conflict.content'),'type':'error','duration':0x0});}[_0x29c6a6(0x386)](){const _0x5ebb5b=_0x29c6a6;this[_0x5ebb5b(0x484)][_0x5ebb5b(0x456)](new _0x390ee3(this[_0x5ebb5b(0x1ca)])['id'],!0x1);}};te=ne([g(0x6,_0x558bc4(_0x478858)),g(0x7,_0x594d06),g(0x8,_0x58b491),g(0x9,_0x558bc4(D)),g(0xa,_0x558bc4(_0x353354)),g(0xb,_0x558bc4(_0x2f64f)),g(0xc,_0x4ee021)],te);let J=class extends re{constructor(_0x4162f3,_0x41f2c0,_0x194f1e,_0x2b7cb5,_0x4dc18c,_0x5e267e,_0x1ebdb1,_0x2a0b5b,_0x127a00,_0x5b549f){const _0x4db6af=_0x29c6a6;super(_0x4162f3,_0x41f2c0,_0x194f1e,_0x2b7cb5,_0x4dc18c,_0x127a00,_0x5b549f,_0x1ebdb1,_0x2a0b5b),l(this,_0x4db6af(0x3ea),_0x4db6af(0x2de)),this[_0x4db6af(0x31f)]=_0x5e267e;}[_0x29c6a6(0x359)](_0x4fa905){const _0x47a0e2=_0x29c6a6;return this[_0x47a0e2(0x4ea)][_0x47a0e2(0x2f7)](_0x4fa905),this[_0x47a0e2(0x1c2)](),this;}['onRemoteChangeset'](_0xc8c005){const _0x3e0f85=_0x29c6a6;throw new Error(_0x3e0f85(0x204));}['onRemoteAck'](){const _0x40c869=_0x29c6a6;throw new Error(_0x40c869(0x4c0));}[_0x29c6a6(0x48f)](){const _0xdb5ba4=_0x29c6a6;throw new Error(_0xdb5ba4(0x380));}[_0x29c6a6(0x242)](){return this;}['toggleOnline'](){const _0x20bf75=_0x29c6a6,{_injector:_0x1ca030,_pendingMutations:_0x357d33,_awaitingChangeset:_0x278548,unitID:_0x1b6e05,_handler:_0x36215f,type:_0x3db083}=this,_0x369f22=ws(_0x1ca030,_0x1b6e05,_0x3db083,_0x278548,_0x357d33,_0x36215f);return _0x369f22 instanceof k?_0x369f22[_0x20bf75(0x303)]():(_0x369f22 instanceof V||_0x369f22 instanceof X)&&_0x369f22['resend'](),_0x369f22;}[_0x29c6a6(0x489)](){const _0x40c408=_0x29c6a6;throw new Error(_0x40c408(0x25f));}};J=ne([g(0x5,_0x558bc4(_0x4ead3f)),g(0x6,_0x558bc4(_0x353354)),g(0x7,_0x558bc4(D)),g(0x8,_0x594d06),g(0x9,_0x58b491)],J);let W=class extends re{constructor(_0x533a7c,_0x5d804d,_0x1f75b3,_0x4ec7fc,_0x373c77,_0x14a33c,_0x2bd512,_0x5ea9fe,_0x350ff6,_0x20c6ef,_0x17d3d7,_0x39dfba,_0x33e23f,_0x5d2de6){const _0x1b33c9=_0x29c6a6;super(_0x533a7c,_0x5d804d,_0x1f75b3,_0x4ec7fc,_0x2bd512,_0x39dfba,_0x33e23f,_0x350ff6,_0x20c6ef),l(this,_0x1b33c9(0x3ea),_0x1b33c9(0x3c8)),(this['_acknowledgedAwaitingChangeset']=_0x373c77,this[_0x1b33c9(0x467)]=_0x14a33c,this[_0x1b33c9(0x31f)]=_0x5ea9fe,this[_0x1b33c9(0x214)]=_0x17d3d7,this['_transformService']=_0x5d2de6);}['onMissedChangesetFetched'](_0x31b5eb){const _0x461e4a=_0x29c6a6;try{const _0x11a4ca=[..._0x31b5eb,...this[_0x461e4a(0x467)]],_0x1e0118=[this[_0x461e4a(0x1c4)]||this['_acknowledgedAwaitingChangeset']][_0x461e4a(0x3c1)](_0x415e88=>!!_0x415e88);let _0x270044,_0xf52ac6;if(_0x1e0118['length']){const _0x3ab604=this['_transformService'][_0x461e4a(0x207)](_0x11a4ca,_0x1e0118,!0x1);if(!_0x389cf2(_0x3ab604))throw _0x3ab604[_0x461e4a(0x35b)];_0x270044=_0x3ab604[_0x461e4a(0x450)],_0xf52ac6=_0x3ab604[_0x461e4a(0x435)];}else _0x270044=_0x11a4ca,_0xf52ac6=[];let _0xf9ad8f=this['_pendingMutations'];_0x270044['forEach'](_0x36d4d9=>{const _0x37ad59=_0x461e4a;let _0x474d21;if(_0xf9ad8f[_0x37ad59(0x431)]){const _0x16f0f4=this[_0x37ad59(0x367)][_0x37ad59(0x216)](_0x36d4d9,_0xf9ad8f);if(!_0x589ac1(_0x16f0f4))throw _0x16f0f4[_0x37ad59(0x35b)];_0x474d21=_0x16f0f4[_0x37ad59(0x450)],_0xf9ad8f=_0x16f0f4['m2Prime'];}else _0x474d21=_0x36d4d9;this['_executeRemoteChangeset'](_0x474d21);}),this[_0x461e4a(0x2b3)]&&this[_0x461e4a(0x411)](),this[_0x461e4a(0x1c4)]&&_0xf52ac6[_0x461e4a(0x431)]&&(_0xf52ac6[0x0][_0x461e4a(0x3ce)]=this['_getCurrentRevision']());let _0x21b7b6;if(this['_awaitingChangeset']&&_0xf9ad8f[_0x461e4a(0x431)]!==0x0)_0x21b7b6=this[_0x461e4a(0x31f)][_0x461e4a(0x43a)](V,this[_0x461e4a(0x1ca)],this['type'],_0xf52ac6[0x0],_0xf9ad8f,this['_handler']);else{if(this[_0x461e4a(0x1c4)]&&_0xf9ad8f[_0x461e4a(0x431)]===0x0)_0xf52ac6[0x0][_0x461e4a(0x3ce)]=this[_0x461e4a(0x416)](),_0x21b7b6=this[_0x461e4a(0x31f)][_0x461e4a(0x43a)](X,this['unitID'],this[_0x461e4a(0x236)],_0xf52ac6[0x0],this['_handler']);else{if(_0xf9ad8f[_0x461e4a(0x431)]!==0x0){const _0x3a7568=this[_0x461e4a(0x31f)][_0x461e4a(0x43a)](k,this[_0x461e4a(0x1ca)],this[_0x461e4a(0x236)],_0xf9ad8f,this['_handler']);_0x3a7568[_0x461e4a(0x303)](),_0x21b7b6=_0x3a7568;}else _0x21b7b6=this[_0x461e4a(0x31f)][_0x461e4a(0x43a)](Te,this[_0x461e4a(0x1ca)],this['type'],this[_0x461e4a(0x1c9)]);}}return _0x21b7b6[_0x461e4a(0x1c2)](),_0x21b7b6;}catch(_0xc33cc){return this[_0x461e4a(0x214)][_0x461e4a(0x35b)]('[FetchMissState]',_0x461e4a(0x286),_0xc33cc),this[_0x461e4a(0x31f)][_0x461e4a(0x43a)](te,this[_0x461e4a(0x1ca)],this[_0x461e4a(0x236)],this['_awaitingChangeset'],this[_0x461e4a(0x4ea)],this['_handler'],!0x1);}}[_0x29c6a6(0x489)](){const _0x50b32e=_0x29c6a6;throw new Error(_0x50b32e(0x2f2));}[_0x29c6a6(0x359)](_0x535a34){const _0x469c34=_0x29c6a6;return this[_0x469c34(0x4ea)][_0x469c34(0x2f7)](_0x535a34),this;}[_0x29c6a6(0x434)](_0x5bc74d){const _0x45f2d1=_0x29c6a6;return this[_0x45f2d1(0x467)][_0x45f2d1(0x2f7)](_0x5bc74d),this;}['onRemoteAck'](_0x4669c5){const _0x2aaf3c=_0x29c6a6;if(this[_0x2aaf3c(0x1c4)])return this[_0x2aaf3c(0x2b3)]=this[_0x2aaf3c(0x1c4)],this[_0x2aaf3c(0x1c4)]=null,this;throw new Error(_0x2aaf3c(0x394));}['onRemoteRej'](_0x50985b){const _0x5800fc=_0x29c6a6;return this[_0x5800fc(0x4e7)](!!(_0x50985b!=null&&_0x50985b[_0x5800fc(0x1c3)]));}['toggleOffline'](){const _0x4bf71d=_0x29c6a6;return this[_0x4bf71d(0x31f)][_0x4bf71d(0x43a)](J,this[_0x4bf71d(0x1ca)],this[_0x4bf71d(0x236)],this[_0x4bf71d(0x1c4)],this[_0x4bf71d(0x4ea)],this[_0x4bf71d(0x1c9)]);}['toggleOnline'](){return this;}[_0x29c6a6(0x4e7)](_0x47fa14){const _0xdc2ff0=_0x29c6a6;return this[_0xdc2ff0(0x31f)][_0xdc2ff0(0x43a)](te,this['unitID'],this[_0xdc2ff0(0x236)],this['_awaitingChangeset'],this['_pendingMutations'],this['_handler'],_0x47fa14);}};W=ne([g(0x7,_0x558bc4(_0x4ead3f)),g(0x8,_0x558bc4(_0x353354)),g(0x9,_0x558bc4(D)),g(0xa,_0x2125ae),g(0xb,_0x594d06),g(0xc,_0x58b491),g(0xd,_0xd13d4c)],W);function ws(_0x37dbc9,_0x12ebc4,_0x43efeb,_0x567d93,_0x20503d,_0x1e93f6){const _0x10be5f=_0x29c6a6;return _0x567d93&&_0x20503d['length']?_0x37dbc9['createInstance'](V,_0x12ebc4,_0x43efeb,_0x567d93,_0x20503d,_0x1e93f6):_0x567d93?_0x37dbc9[_0x10be5f(0x43a)](X,_0x12ebc4,_0x43efeb,_0x567d93,_0x1e93f6):_0x20503d[_0x10be5f(0x431)]?_0x37dbc9['createInstance'](k,_0x12ebc4,_0x43efeb,_0x20503d,_0x1e93f6):_0x37dbc9[_0x10be5f(0x43a)](Te,_0x12ebc4,_0x43efeb,_0x1e93f6);}var kn=Object['defineProperty'],Vn=Object[_0x29c6a6(0x48e)],Je=(_0x459bc4,_0x5f1d6c,_0x5d5c9b,_0x38c6ef)=>{const _0x4778be=_0x29c6a6;for(var _0x3b857f=_0x38c6ef>0x1?void 0x0:_0x38c6ef?Vn(_0x5f1d6c,_0x5d5c9b):_0x5f1d6c,_0x1b1d79=_0x459bc4[_0x4778be(0x431)]-0x1,_0x44476a;_0x1b1d79>=0x0;_0x1b1d79--)(_0x44476a=_0x459bc4[_0x1b1d79])&&(_0x3b857f=(_0x38c6ef?_0x44476a(_0x5f1d6c,_0x5d5c9b,_0x3b857f):_0x44476a(_0x3b857f))||_0x3b857f);return _0x38c6ef&&_0x3b857f&&kn(_0x5f1d6c,_0x5d5c9b,_0x3b857f),_0x3b857f;},S=(_0x439f7c,_0x45451a)=>(_0x1d74c2,_0x2191d5)=>_0x45451a(_0x1d74c2,_0x2191d5,_0x439f7c);let Ee=class extends _0x39fd47{constructor(_0x219cb6,_0x3f88ed,_0x4e3ef4){const _0x555684=_0x29c6a6;super(),l(this,_0x555684(0x4d9),new Map()),l(this,_0x555684(0x270),new _0x2ef673()),(this[_0x555684(0x31f)]=_0x219cb6,this[_0x555684(0x266)]=_0x3f88ed,this[_0x555684(0x49b)]=_0x4e3ef4,this[_0x555684(0x26f)]());}[_0x29c6a6(0x378)](){const _0x1e8d1f=_0x29c6a6;super[_0x1e8d1f(0x378)](),this[_0x1e8d1f(0x4d9)][_0x1e8d1f(0x31b)](_0x25e09b=>_0x25e09b[_0x1e8d1f(0x378)]()),this[_0x1e8d1f(0x4d9)][_0x1e8d1f(0x3c6)]();}[_0x29c6a6(0x324)](_0x15c28a){const _0x586796=_0x29c6a6;var _0x160f11;return(_0x160f11=this['_entities'][_0x586796(0x362)](_0x15c28a))!=null?_0x160f11:null;}[_0x29c6a6(0x2f5)](_0x2e357e){const _0x4a64d7=_0x29c6a6,_0x220c3b=this[_0x4a64d7(0x324)](_0x2e357e);return _0x220c3b?_0x41c67f(_0x220c3b):this[_0x4a64d7(0x270)][_0x4a64d7(0x4dc)](_0x7426b5(_0x4a9dcb=>_0x4a9dcb[_0x4a64d7(0x1ca)]===_0x2e357e));}[_0x29c6a6(0x26f)](){const _0x29909e=_0x29c6a6;this[_0x29909e(0x49b)]['getTypeOfUnitAdded$'](_0x17600d['UNIVER_SHEET'])[_0x29909e(0x4dc)](_0x26437e(this['dispose$']),_0x4f7269(0x10))['subscribe'](async _0x6c39b0=>{const _0x8cb4=_0x29909e,_0x2ca33e=_0x6c39b0[_0x8cb4(0x38d)](),_0x17afe8=await this['_startCollaboration'](_0x2ca33e,H['UNIVER_SHEET']);this['_entities'][_0x8cb4(0x320)](_0x2ca33e,_0x17afe8);}),this['_univerInstanceService'][_0x29909e(0x1f7)](_0x17600d[_0x29909e(0x3f2)])[_0x29909e(0x4dc)](_0x26437e(this['dispose$']),_0x4f7269(0x10))[_0x29909e(0x4dc)](_0x7426b5(_0x58b25c=>!_0x58b25c[_0x29909e(0x38d)]()['startsWith']('__')))[_0x29909e(0x460)](async _0x537890=>{const _0x566ad6=_0x29909e,_0x5cf853=_0x537890[_0x566ad6(0x38d)](),_0x3aa4ba=await this['_startCollaboration'](_0x5cf853,H['UNIVER_DOC']);this['_entities'][_0x566ad6(0x320)](_0x5cf853,_0x3aa4ba);}),_0x2e2fc7(this[_0x29909e(0x49b)][_0x29909e(0x4d1)](_0x17600d[_0x29909e(0x3b4)]),this[_0x29909e(0x49b)]['getTypeOfUnitDisposed$'](_0x17600d['UNIVER_DOC']))[_0x29909e(0x4dc)](_0x26437e(this[_0x29909e(0x33a)]))[_0x29909e(0x460)](_0x42e834=>{const _0x3f17df=_0x29909e,_0x41c792=_0x42e834[_0x3f17df(0x38d)](),_0x494f6c=this[_0x3f17df(0x4d9)][_0x3f17df(0x362)](_0x41c792);_0x494f6c&&(_0x494f6c[_0x3f17df(0x378)](),this[_0x3f17df(0x4d9)][_0x3f17df(0x457)](_0x41c792));});}async[_0x29c6a6(0x3e8)](_0x563740,_0x481a94){const _0x9d0f1e=_0x29c6a6,_0x3f3995=await this[_0x9d0f1e(0x266)][_0x9d0f1e(0x4e6)](_0x563740),_0x4ae11f=this['_injector']['createInstance'](this[_0x9d0f1e(0x239)](_0x481a94),_0x563740,_0x481a94,_0x3f3995);return await _0x4ae11f['init'](),this['_entityInit$'][_0x9d0f1e(0x3af)](_0x4ae11f),_0x4ae11f;}['_getCtorByUniverType'](_0x5551fb){const _0x281394=_0x29c6a6;switch(_0x5551fb){case H['UNIVER_DOC']:return dt;case H['UNIVER_SHEET']:return ft;default:throw new Error(_0x281394(0x2ba)+_0x5551fb);}}};Ee=Je([_0x2d1123(_0xb39fe5[_0x29c6a6(0x4bc)],Ee),S(0x0,_0x558bc4(_0x4ead3f)),S(0x1,_0x558bc4(Re)),S(0x2,_0x33e391)],Ee);let We=class extends _0x39fd47{constructor(_0x4ada28,_0x10f6bd,_0x429d61,_0x5b38e7,_0x23c7d2,_0x2f0160,_0x32c6e0,_0x492bd5,_0x4acae7,_0x410a81,_0x2320df,_0x95188d,_0x389cc3){const _0x1e85ad=_0x29c6a6;super(),l(this,'_state$',new _0x2ae6a5(null)),l(this,'state$',this[_0x1e85ad(0x496)]['asObservable']()),l(this,_0x1e85ad(0x2a2)),l(this,_0x1e85ad(0x1d8),!0x1),l(this,'status$',this['state$'][_0x1e85ad(0x4dc)](_0x6aec6c(_0x2940e1=>_0x2940e1?_0x2940e1[_0x1e85ad(0x3ea)]:P[_0x1e85ad(0x4b5)]),_0x4f7c12(0x1))),l(this,_0x1e85ad(0x1d1),!0x1),l(this,_0x1e85ad(0x475),[]),(this[_0x1e85ad(0x1ca)]=_0x4ada28,this['_type']=_0x10f6bd,this[_0x1e85ad(0x3a8)]=_0x429d61,this[_0x1e85ad(0x31f)]=_0x5b38e7,this[_0x1e85ad(0x1ec)]=_0x23c7d2,this[_0x1e85ad(0x4e1)]=_0x2f0160,this[_0x1e85ad(0x357)]=_0x32c6e0,this[_0x1e85ad(0x230)]=_0x492bd5,this[_0x1e85ad(0x214)]=_0x4acae7,this[_0x1e85ad(0x3d7)]=_0x410a81,this[_0x1e85ad(0x426)]=_0x2320df,this[_0x1e85ad(0x484)]=_0x95188d,this[_0x1e85ad(0x47d)]=_0x389cc3);}get[_0x29c6a6(0x438)](){const _0x4b4543=_0x29c6a6;return this[_0x4b4543(0x2a2)];}async[_0x29c6a6(0x23e)](){const _0x2f907e=_0x29c6a6;if(this[_0x2f907e(0x438)])throw new Error(_0x2f907e(0x24d));await this[_0x2f907e(0x26f)]();}[_0x29c6a6(0x3f6)](){const _0x58f373=_0x29c6a6;return this[_0x58f373(0x1d8)]=!0x0,_0x359428(()=>{const _0x14037d=_0x58f373;this[_0x14037d(0x1d8)]=!0x1,this[_0x14037d(0x2fd)]();});}[_0x29c6a6(0x2f9)](_0x244387){const _0x27eeb0=_0x29c6a6;this['_state']=_0x244387,this['_state$'][_0x27eeb0(0x3af)](_0x244387);}async[_0x29c6a6(0x26f)](){const _0x4adac9=_0x29c6a6;var _0x5b0d8a;return this[_0x4adac9(0x2f9)](await this[_0x4adac9(0x336)]()),this[_0x4adac9(0x47d)]&&((_0x5b0d8a=this[_0x4adac9(0x47d)])==null||_0x5b0d8a[_0x4adac9(0x202)](this[_0x4adac9(0x1ca)]),this['disposeWithMe'](_0x359428(this[_0x4adac9(0x47d)][_0x4adac9(0x3ad)](this['unitID'])[_0x4adac9(0x460)](_0x465626=>{const _0x26565f=_0x4adac9;this[_0x26565f(0x214)]['debug']('[CollaborationEntity]',_0x26565f(0x3b2),_0x465626),_0x465626===Os[_0x26565f(0x39d)]?(this['_messageService']['show']({'content':this['_localeService']['t'](_0x26565f(0x262)),'type':_0x15c0da[_0x26565f(0x32c)]}),this[_0x26565f(0x484)][_0x26565f(0x456)](new _0x390ee3(this[_0x26565f(0x1ca)])['id'],!0x1)):this[_0x26565f(0x484)]['updatePermissionPoint'](new _0x390ee3(this['unitID'])['id'],!0x0);})))),this['disposeWithMe'](_0x359428(this[_0x4adac9(0x3a8)][_0x4adac9(0x1cd)]['subscribe'](_0x22b9b7=>{const _0x1ea5ce=_0x4adac9;_0x22b9b7===_e[_0x1ea5ce(0x490)]?this['_toggleOnline']():_0x22b9b7===_e[_0x1ea5ce(0x4b5)]&&this[_0x1ea5ce(0x1f4)]();}))),this[_0x4adac9(0x1fb)](_0x359428(this[_0x4adac9(0x3a8)]['event$']['subscribe'](_0x1d8b0f=>{const _0x4e1de5=_0x4adac9;try{switch(_0x1d8b0f[_0x4e1de5(0x2fa)]){case _0x5911b8[_0x4e1de5(0x472)]:{this['_onRemoteChangeset'](_0x8de20b(_0x1d8b0f[_0x4e1de5(0x3f0)]));break;}case _0x5911b8['CHANGESET_ACK']:{this['_onRemoteACK'](_0x1d8b0f[_0x4e1de5(0x3f0)]);break;}case _0x5911b8[_0x4e1de5(0x3ca)]:{this['_onRemoteRejected']();break;}case _0x5911b8[_0x4e1de5(0x311)]:{this[_0x4e1de5(0x30a)](_0x1d8b0f[_0x4e1de5(0x3f0)][_0x4e1de5(0x382)][_0x4e1de5(0x1f9)](_0x45cf82=>_0x8de20b(_0x45cf82)));break;}case _0x5911b8[_0x4e1de5(0x44d)]:this['_onRemoteRejected']({'isPermissionRej':!0x0});}}catch(_0x3baddb){throw console[_0x4e1de5(0x35b)](_0x4e1de5(0x295),_0x3baddb),_0x3baddb;}}))),this[_0x4adac9(0x2a2)];}[_0x29c6a6(0x310)](){const _0x57c183=_0x29c6a6;this[_0x57c183(0x1d1)]=!0x1;}[_0x29c6a6(0x3fb)](){const _0x1d111d=_0x29c6a6;if(this[_0x1d111d(0x1d1)])throw new Error(_0x1d111d(0x2c2));this[_0x1d111d(0x1d1)]=!0x0;}[_0x29c6a6(0x29c)](_0xcf725a){const _0x28f35d=_0x29c6a6;this[_0x28f35d(0x3fb)](),this[_0x28f35d(0x2f9)](this[_0x28f35d(0x2a2)][_0x28f35d(0x359)](_0xcf725a)),this['_unlockTransition']();}[_0x29c6a6(0x4b1)](_0x4d4beb){const _0x4d1a73=_0x29c6a6;if(!(_0x4d4beb[_0x4d1a73(0x32f)]<=this[_0x4d1a73(0x230)][_0x4d1a73(0x433)](this['unitID']))){if(this['_collaborationPaused']){this[_0x4d1a73(0x475)][_0x4d1a73(0x2f7)](_0x4d4beb);return;}this[_0x4d1a73(0x4d4)](_0x4d4beb);}}[_0x29c6a6(0x2fd)](){const _0x4b9ebd=_0x29c6a6;this[_0x4b9ebd(0x475)][_0x4b9ebd(0x31b)](_0x4d1b24=>this['_applyRemoteChangeset'](_0x4d1b24)),this[_0x4b9ebd(0x475)]=[];}[_0x29c6a6(0x4d4)](_0x3fcf2){const _0x3094d5=_0x29c6a6,_0x2c39d6=this[_0x3094d5(0x4e1)]['interceptor'][_0x3094d5(0x465)](this['_compressMutationService'][_0x3094d5(0x349)][_0x3094d5(0x228)]()[_0x3094d5(0x1bf)])(_0x3fcf2[_0x3094d5(0x365)],null)||_0x3fcf2[_0x3094d5(0x365)],_0x3baf0b={..._0x3fcf2,'mutations':_0x2c39d6};this['_lockTransition'](),this[_0x3094d5(0x2f9)](this[_0x3094d5(0x2a2)]['onRemoteChangeset'](_0x3baf0b)),this['_unlockTransition']();}[_0x29c6a6(0x200)](_0x1dc52c){const _0x3d7157=_0x29c6a6;this[_0x3d7157(0x3fb)](),this[_0x3d7157(0x2f9)](this[_0x3d7157(0x2a2)][_0x3d7157(0x31d)](_0x1dc52c)),this['_unlockTransition']();}[_0x29c6a6(0x254)](_0x1f4bb7){const _0x51efcc=_0x29c6a6;this[_0x51efcc(0x3fb)](),this[_0x51efcc(0x2f9)](this[_0x51efcc(0x2a2)][_0x51efcc(0x48f)](_0x1f4bb7)),this[_0x51efcc(0x310)]();}[_0x29c6a6(0x30a)](_0x2f8469){const _0x381b4b=_0x29c6a6;if(!(this[_0x381b4b(0x2a2)]instanceof W))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0x4372c4=_0x2f8469[_0x381b4b(0x1f9)](_0x34abcd=>{const _0x30f331=_0x381b4b,_0xd6d416=this[_0x30f331(0x4e1)][_0x30f331(0x349)][_0x30f331(0x465)](this[_0x30f331(0x4e1)][_0x30f331(0x349)][_0x30f331(0x228)]()[_0x30f331(0x1bf)])(_0x34abcd['mutations'],null)||_0x34abcd[_0x30f331(0x365)];return{..._0x34abcd,'mutations':_0xd6d416};});this['_lockTransition'](),this[_0x381b4b(0x2f9)](this['_state'][_0x381b4b(0x256)](_0x4372c4)),this['_unlockTransition']();}[_0x29c6a6(0x1f4)](){const _0x5e5599=_0x29c6a6;this[_0x5e5599(0x3fb)](),this[_0x5e5599(0x2f9)](this['_state']['toggleOffline']()),this[_0x5e5599(0x310)]();}[_0x29c6a6(0x3bf)](){const _0x3cb878=_0x29c6a6;this[_0x3cb878(0x3fb)](),this['_updateState'](this[_0x3cb878(0x2a2)][_0x3cb878(0x2b1)]()),this[_0x3cb878(0x310)]();}async[_0x29c6a6(0x336)](){return new Promise(_0x3e8b67=>{const _0x52d190=_0x34fd;this[_0x52d190(0x3a8)][_0x52d190(0x1cd)][_0x52d190(0x4dc)](_0x1c0ea1(0x1))[_0x52d190(0x460)](async _0x18deef=>{const _0x80fa39=_0x52d190;_0x3e8b67(await this[_0x80fa39(0x1e0)](_0x18deef===_e[_0x80fa39(0x490)]));});});}[_0x29c6a6(0x2f3)](){const _0x3aff72=_0x29c6a6,_0x213d1d=this[_0x3aff72(0x1ca)];return{'onStateChange':(_0x599649,_0xf26d9b)=>{const _0x196c33=_0x3aff72;if(_0x599649!==this[_0x196c33(0x2a2)])throw new Error(_0x196c33(0x312)+_0x599649['status']+_0x196c33(0x32d)+_0xf26d9b[_0x196c33(0x3ea)]+_0x196c33(0x1d4)+this[_0x196c33(0x2a2)][_0x196c33(0x3ea)]);this[_0x196c33(0x2f9)](_0xf26d9b);},'onSendChangeset':_0x40e753=>{const _0x5b6579=_0x3aff72,_0x9918fb={'eventID':_0x5911b8[_0x5b6579(0x4e2)],'data':{'unitID':_0x40e753[_0x5b6579(0x1ca)],'unitType':this[_0x5b6579(0x31e)],'changeset':_0x40e753,'memberID':this[_0x5b6579(0x3a8)][_0x5b6579(0x48c)]()}};this[_0x5b6579(0x3a8)][_0x5b6579(0x293)](_0x9918fb,this['unitID']);},'onMissingChangesets':({from:_0x1f9d5,to:_0x259971})=>{const _0x53c291=_0x3aff72;this['_logService'][_0x53c291(0x363)](_0x53c291(0x4d3),_0x53c291(0x491)+_0x1f9d5+_0x53c291(0x4df)+_0x259971);const _0xa9ce22={'eventID':_0x5911b8[_0x53c291(0x39a)],'data':{'unitID':_0x213d1d,'unitType':this[_0x53c291(0x31e)],'from':_0x1f9d5,'to':_0x259971}};this[_0x53c291(0x3a8)][_0x53c291(0x293)](_0xa9ce22,this[_0x53c291(0x1ca)]);}};}async['_createInitialStateImpl'](_0xa85c53){const _0x2927de=_0x29c6a6;var _0x3210d2,_0x203875;const _0x2fe129=await this[_0x2927de(0x1ec)][_0x2927de(0x3bd)](this[_0x2927de(0x1ca)]),_0xa140a9=(_0x3210d2=_0x2fe129==null?void 0x0:_0x2fe129[_0x2927de(0x365)])!=null?_0x3210d2:[],_0x3a7d1a=(_0x203875=_0x2fe129==null?void 0x0:_0x2fe129[_0x2927de(0x2e6)])!=null?_0x203875:null,_0x3f5d8b=this[_0x2927de(0x1ca)];try{this['_replayCachedMutations'](_0x3a7d1a,_0xa140a9);}catch(_0x480d10){this[_0x2927de(0x214)][_0x2927de(0x35b)](_0x480d10);}const _0x3c2e3b=this[_0x2927de(0x2f3)]();if(_0xa85c53){const _0x15f7e7=ws(this['_injector'],_0x3f5d8b,this[_0x2927de(0x31e)],_0x3a7d1a,_0xa140a9,_0x3c2e3b);return _0x15f7e7 instanceof k?_0x15f7e7[_0x2927de(0x303)]():(_0x15f7e7 instanceof V||_0x15f7e7 instanceof X)&&_0x15f7e7['resend'](),_0x15f7e7;}return this[_0x2927de(0x31f)][_0x2927de(0x43a)](J,_0x3f5d8b,this[_0x2927de(0x31e)],_0x3a7d1a,_0xa140a9,_0x3c2e3b);}[_0x29c6a6(0x316)](_0x228848,_0x1e1aea){const _0x3193ed=_0x29c6a6;var _0x165705,_0x73edbf;const _0xc30f=this[_0x3193ed(0x4e1)]['interceptor'][_0x3193ed(0x465)](this[_0x3193ed(0x4e1)][_0x3193ed(0x349)][_0x3193ed(0x228)]()[_0x3193ed(0x1bf)]);(_0x165705=_0xc30f((_0x228848==null?void 0x0:_0x228848[_0x3193ed(0x365)])||[],null))==null||_0x165705[_0x3193ed(0x31b)](_0x49adc9=>this[_0x3193ed(0x3d7)][_0x3193ed(0x22a)](_0x49adc9['id'],_0x49adc9[_0x3193ed(0x3c7)])),(_0x73edbf=_0xc30f(_0x1e1aea||[],null))==null||_0x73edbf[_0x3193ed(0x31b)](_0x5f08b3=>this[_0x3193ed(0x3d7)][_0x3193ed(0x22a)](_0x5f08b3['id'],_0x5f08b3[_0x3193ed(0x3c7)]));}};We=Je([S(0x3,_0x558bc4(_0x4ead3f)),S(0x4,_0x558bc4(D)),S(0x5,_0x558bc4(_0x969bae)),S(0x6,_0x558bc4(_0x2f64f)),S(0x7,_0x558bc4(_0x353354)),S(0x8,_0x2125ae),S(0x9,_0x594d06),S(0xa,_0x367db8),S(0xb,_0x478858),S(0xc,_0x2cbf69(Xe))],We);let dt=class extends We{constructor(_0x8f27fb,_0x41521e,_0x2e47a8,_0x1eb470,_0x5dd54e,_0x3573a4,_0x1f3c4c,_0x8eb3e,_0x369d76,_0x368515,_0x437b59,_0x35021b,_0x30f3ea,_0x1ce386,_0x4fcda2,_0xe5bcbf,_0x3fd351){const _0x5349ea=_0x29c6a6;super(_0x8f27fb,_0x41521e,_0x2e47a8,_0x1eb470,_0x5dd54e,_0x3573a4,_0x1f3c4c,_0x8eb3e,_0x30f3ea,_0x1ce386,_0x4fcda2,_0xe5bcbf,_0x3fd351),this[_0x5349ea(0x1ca)]=_0x8f27fb,this[_0x5349ea(0x236)]=_0x41521e,this[_0x5349ea(0x27a)]=_0x2e47a8,this['_docStateChangeManagerService']=_0x369d76,this[_0x5349ea(0x26c)]=_0x368515,this['_docTransformSelectionsService']=_0x437b59,this[_0x5349ea(0x3b7)]=_0x35021b;}[_0x29c6a6(0x2f3)](){const _0x569abb=_0x29c6a6,_0x1e9c13=super['_createHandler']();return _0x1e9c13['onTransformIME']=_0x136068=>this[_0x569abb(0x26c)][_0x569abb(0x36d)](_0x136068),_0x1e9c13[_0x569abb(0x4be)]=_0x2a1b0b=>this['_docTransformSelectionsService'][_0x569abb(0x21d)](_0x2a1b0b),_0x1e9c13[_0x569abb(0x4e9)]=_0xae979=>this['_docSyncEditingCollabCursorService'][_0x569abb(0x44f)](_0xae979),_0x1e9c13[_0x569abb(0x267)]=_0x2e14f3=>this[_0x569abb(0x26c)][_0x569abb(0x42c)](_0x2e14f3),_0x1e9c13;}async[_0x29c6a6(0x26f)](){const _0x5a5c9d=_0x29c6a6,_0x32c4ff=await super['_init']();return this[_0x5a5c9d(0x449)][_0x5a5c9d(0x339)][_0x5a5c9d(0x4dc)](_0x26437e(this[_0x5a5c9d(0x33a)]))[_0x5a5c9d(0x460)](_0x4ec351=>{const _0x3d4e5d=_0x5a5c9d;if(_0x4ec351==null)return;const {unitId:_0x53924f,redoState:_0x9dd56f,commandId:_0x197857}=_0x4ec351;if(_0x53924f!==this[_0x3d4e5d(0x1ca)])return;const _0xfc2020={'id':_0x197857,'type':_0x4dcc25['MUTATION'],'params':{'unitId':_0x53924f,'actions':_0x9dd56f[_0x3d4e5d(0x27c)],'textRanges':null}};this[_0x3d4e5d(0x29c)](_0xfc2020);}),_0x32c4ff;}};dt=Je([S(0x3,_0x558bc4(_0x4ead3f)),S(0x4,_0x558bc4(D)),S(0x5,_0x558bc4(_0x969bae)),S(0x6,_0x558bc4(_0x2f64f)),S(0x7,_0x558bc4(_0x353354)),S(0x8,_0x558bc4(_0x2a623e)),S(0x9,_0x558bc4(Be)),S(0xa,_0x558bc4(ke)),S(0xb,_0x558bc4(Mt)),S(0xc,_0x2125ae),S(0xd,_0x594d06),S(0xe,_0x367db8),S(0xf,_0x478858),S(0x10,_0x2cbf69(Xe))],dt);let ft=class extends We{constructor(_0x5543ad,_0x12509e,_0x3863cc,_0x27c4aa,_0x38e6a1,_0x3c4ae4,_0x1c36da,_0x4707a4,_0x1274d6,_0x5d31e4,_0x18fc3e,_0x15b6ff,_0x230ecc,_0x1a0dd0){const _0x117143=_0x29c6a6;super(_0x5543ad,_0x12509e,_0x3863cc,_0x27c4aa,_0x38e6a1,_0x3c4ae4,_0x1c36da,_0x4707a4,_0x5d31e4,_0x18fc3e,_0x15b6ff,_0x230ecc,_0x1a0dd0),this['unitID']=_0x5543ad,this[_0x117143(0x236)]=_0x12509e,this['session']=_0x3863cc,this[_0x117143(0x4aa)]=_0x1274d6;}['_createHandler'](){const _0x456c09=_0x29c6a6,_0x572c8a=super[_0x456c09(0x2f3)]();return _0x572c8a['onTransformSelections']=_0x161b93=>this[_0x456c09(0x4aa)][_0x456c09(0x21d)](_0x161b93),_0x572c8a;}async[_0x29c6a6(0x26f)](){const _0x2a6561=_0x29c6a6,_0x52c3cb=await super[_0x2a6561(0x26f)]();return this[_0x2a6561(0x1fb)](this['_commandService'][_0x2a6561(0x41d)]((_0x19d790,_0xeb4de2)=>{const _0x4ac3a3=_0x2a6561;if(_0x19d790[_0x4ac3a3(0x236)]!==_0x4dcc25[_0x4ac3a3(0x414)]||_0xeb4de2!=null&&_0xeb4de2[_0x4ac3a3(0x1c6)]||_0xeb4de2!=null&&_0xeb4de2['onlyLocal'])return;const _0x32dd4c=_0x19d790['params'];if((_0x32dd4c==null?void 0x0:_0x32dd4c[_0x4ac3a3(0x458)])!==this['unitID'])return;const _0x41aa6d=_0x19d790,_0x20855f=this[_0x4ac3a3(0x4e1)][_0x4ac3a3(0x349)][_0x4ac3a3(0x465)](this[_0x4ac3a3(0x4e1)][_0x4ac3a3(0x349)][_0x4ac3a3(0x228)]()[_0x4ac3a3(0x258)])([_0x41aa6d],null)||[_0x41aa6d];this[_0x4ac3a3(0x29c)](_0x20855f[0x0]);})),_0x52c3cb;}};ft=Je([S(0x3,_0x558bc4(_0x4ead3f)),S(0x4,_0x558bc4(D)),S(0x5,_0x558bc4(_0x969bae)),S(0x6,_0x558bc4(_0x2f64f)),S(0x7,_0x558bc4(_0x353354)),S(0x8,_0x558bc4(Ve)),S(0x9,_0x2125ae),S(0xa,_0x594d06),S(0xb,_0x367db8),S(0xc,_0x478858),S(0xd,_0x2cbf69(Xe))],ft);const Zt=['purple300',_0x29c6a6(0x400),_0x29c6a6(0x453),'red300',_0x29c6a6(0x445),_0x29c6a6(0x2c6)];class At extends _0xc93720{constructor(){const _0x17961d=_0x29c6a6;super(...arguments),l(this,'_assignedColors',new Map()),l(this,_0x17961d(0x3e3),0x0);}[_0x29c6a6(0x361)](_0x5a7d14){const _0x24f19f=_0x29c6a6;if(this[_0x24f19f(0x462)]['has'](_0x5a7d14))return this[_0x24f19f(0x462)]['get'](_0x5a7d14);const _0x1da129=Zt[this[_0x24f19f(0x3e3)]];return this['_colorIndex']=(this[_0x24f19f(0x3e3)]+0x1)%Zt[_0x24f19f(0x431)],this['_assignedColors'][_0x24f19f(0x320)](_0x5a7d14,_0x1da129),_0x1da129;}}var Wn=Object['defineProperty'],Gn=Object[_0x29c6a6(0x48e)],Yn=(_0x11b655,_0x397e71,_0x41396e,_0x2b3624)=>{for(var _0x128c46=_0x2b3624>0x1?void 0x0:_0x2b3624?Gn(_0x397e71,_0x41396e):_0x397e71,_0x154be2=_0x11b655['length']-0x1,_0x4ad1f7;_0x154be2>=0x0;_0x154be2--)(_0x4ad1f7=_0x11b655[_0x154be2])&&(_0x128c46=(_0x2b3624?_0x4ad1f7(_0x397e71,_0x41396e,_0x128c46):_0x4ad1f7(_0x128c46))||_0x128c46);return _0x2b3624&&_0x128c46&&Wn(_0x397e71,_0x41396e,_0x128c46),_0x128c46;},ae=(_0x4540aa,_0x3e2033)=>(_0xfde131,_0x29cf00)=>_0x3e2033(_0xfde131,_0x29cf00,_0x4540aa);const Kn=0x12c,Xn=0x64,Jn=()=>{let _0x591a21=[],_0x9df685=!0x1;return _0x2fb43a=>{const _0x557374=_0x34fd;_0x591a21[_0x557374(0x2f7)](_0x2fb43a),_0x9df685||(_0x9df685=!0x0,setTimeout(()=>{const _0x4d7e36=_0x557374;_0x591a21[_0x4d7e36(0x31b)](_0x46d5fd=>_0x46d5fd()),_0x591a21=[],_0x9df685=!0x1;}));};};let gt=class extends _0x39fd47{constructor(_0x4e398f,_0x47c2d5,_0x4a1908,_0x4fda1d,_0x2c43fe,_0x4dd092,_0x381345,_0x45d337){const _0x4143b5=_0x29c6a6;super(),l(this,_0x4143b5(0x488),!0x1),l(this,_0x4143b5(0x26f),!0x1),l(this,'_cursorInfo$',new _0x2ae6a5(new Map())),l(this,_0x4143b5(0x4ed),this[_0x4143b5(0x2d9)][_0x4143b5(0x4db)]()),l(this,'_roomMembers$',new _0x2ae6a5([])),l(this,_0x4143b5(0x30b),this['_roomMembers$'][_0x4143b5(0x4dc)](_0x3c2ea7(Kn))),l(this,_0x4143b5(0x351),_0x284565((_0x56059b,_0x2463b9)=>{const _0x3c0042=_0x4143b5,_0x10f091={'eventID':_0x5911b8['UPDATE_CURSOR'],'data':{'unitID':this[_0x3c0042(0x1ca)],'memberID':this[_0x3c0042(0x3a8)]['getMemberID'](),'selection':_0x2a0dc7(_0x56059b,_0x2463b9[_0x3c0042(0x307)])}};this['_session']['send'](_0x10f091,this[_0x3c0042(0x1ca)]);},Xn)),(this[_0x4143b5(0x1ca)]=_0x4e398f,this[_0x4143b5(0x3a8)]=_0x47c2d5,this[_0x4143b5(0x31f)]=_0x4a1908,this['_colorAssignService']=_0x4fda1d,this[_0x4143b5(0x23c)]=_0x2c43fe,this['_univerInstanceService']=_0x4dd092,this['_commandService']=_0x381345,this[_0x4143b5(0x48d)]=_0x45d337);}get['cursorInfo'](){const _0x3d291e=_0x29c6a6;return this[_0x3d291e(0x2d9)][_0x3d291e(0x3d5)]();}get[_0x29c6a6(0x284)](){const _0x1e7a8d=_0x29c6a6;return this[_0x1e7a8d(0x4da)]['getValue']();}['dispose'](){const _0x2ce58c=_0x29c6a6;super[_0x2ce58c(0x378)](),this[_0x2ce58c(0x2d9)][_0x2ce58c(0x3af)](new Map()),this[_0x2ce58c(0x2d9)][_0x2ce58c(0x2ed)](),this[_0x2ce58c(0x4da)][_0x2ce58c(0x3af)]([]),this[_0x2ce58c(0x4da)]['complete']();}[_0x29c6a6(0x23e)](){const _0x2e9ecf=_0x29c6a6;this[_0x2e9ecf(0x26f)]||(this['_init']=!0x0,this[_0x2e9ecf(0x3a8)][_0x2e9ecf(0x1cd)][_0x2e9ecf(0x4dc)](_0x26437e(this[_0x2e9ecf(0x33a)]))[_0x2e9ecf(0x460)](_0x5d01c3=>{const _0x26d0d8=_0x2e9ecf;_0x5d01c3===_e[_0x26d0d8(0x490)]?this[_0x26d0d8(0x3bf)]():this['_toggleOffline']();}),this['_session']['event$'][_0x2e9ecf(0x4dc)](_0x26437e(this[_0x2e9ecf(0x33a)]))[_0x2e9ecf(0x460)](_0x5e5395=>{const _0x16bdb1=_0x2e9ecf,_0x50be19=_0x5e5395[_0x16bdb1(0x2fa)];_0x50be19===_0x5911b8[_0x16bdb1(0x2aa)]&&this[_0x16bdb1(0x33f)](_0x5e5395),_0x50be19===_0x5911b8[_0x16bdb1(0x49c)]&&this['_onCursorDelete'](_0x5e5395);}),this[_0x2e9ecf(0x410)](),this['disposeWithMe'](this['_commandService'][_0x2e9ecf(0x41d)](_0x1ef98b=>{const _0x4ef11c=_0x2e9ecf;if(this[_0x4ef11c(0x488)]&&_0x1ef98b['id']===_0x57025f['id']&&_0x1ef98b[_0x4ef11c(0x3c7)][_0x4ef11c(0x458)]===this['unitID']){const _0x4f4e31=_0x1ef98b[_0x4ef11c(0x3c7)];this[_0x4ef11c(0x351)](_0x4f4e31['subUnitId'],_0x4f4e31[_0x4ef11c(0x1de)][0x0]);}})));}[_0x29c6a6(0x33f)](_0x278723){const _0x54403b=_0x29c6a6;var _0x11852e,_0x57d35b;const {memberID:_0x1e0931,selection:_0x571996}=_0x278723['data'],{sheetName:_0xeea95,range:_0x28e575}=_0x511cc9(_0x571996),_0x4ed93e={'name':(_0x57d35b=(_0x11852e=this[_0x54403b(0x23c)][_0x54403b(0x249)](this[_0x54403b(0x1ca)],_0x1e0931))==null?void 0x0:_0x11852e[_0x54403b(0x47b)])!=null?_0x57d35b:_0x54403b(0x33d),'range':this[_0x54403b(0x37a)](_0xeea95,_0x28e575),'sheetID':_0xeea95,'color':this[_0x54403b(0x4a8)]['assignAColorForMemberID'](_0x1e0931),'selection':_0x571996},_0x42ba35=this['cursorInfo'];_0x42ba35[_0x54403b(0x320)](_0x1e0931,_0x4ed93e),this[_0x54403b(0x2d9)][_0x54403b(0x3af)](_0x42ba35);}[_0x29c6a6(0x4b6)](_0x578221){const _0x5f0eb8=_0x29c6a6,{memberID:_0x42f9d8}=_0x578221[_0x5f0eb8(0x3f0)],_0x220d96=this['cursorInfo'];_0x220d96[_0x5f0eb8(0x457)](_0x42f9d8),this[_0x5f0eb8(0x2d9)][_0x5f0eb8(0x3af)](_0x220d96);}[_0x29c6a6(0x37a)](_0x9c552e,_0x2f6e5f){const _0x44e5fe=_0x29c6a6;var _0x122039,_0x5b2c7e;const _0x1e12a8=(_0x5b2c7e=(_0x122039=this[_0x44e5fe(0x49b)][_0x44e5fe(0x4dd)](this['unitID']))==null?void 0x0:_0x122039['getSheetBySheetId'](_0x9c552e))==null?void 0x0:_0x5b2c7e[_0x44e5fe(0x3d4)]();return(_0x1e12a8==null?void 0x0:_0x1e12a8[_0x44e5fe(0x1f5)](_0x1c058e=>_0x35b9e8[_0x44e5fe(0x1e3)](_0x1c058e,_0x2f6e5f)))||_0x2f6e5f;}['_onRefRangeChange'](){const _0x4c751c=_0x29c6a6,_0x5d0015=new _0x3543bd(),_0x22ad4e=Jn(),_0x3fe58d=()=>{const _0xa2496c=_0x34fd;_0x5d0015[_0xa2496c(0x378)]();const _0x17cbf7=(_0x10b831,_0x1e3765,_0x2fd858,_0x3d5839)=>{const _0x1575f7=_0xa2496c;let _0x3e50d1=[];switch(_0x10b831['id']){case _0x2d6399[_0x1575f7(0x2c1)]:{_0x3e50d1=_0x23fee4(_0x10b831,_0x3d5839);break;}case _0x2d6399[_0x1575f7(0x383)]:{_0x3e50d1=_0x5b7d4a(_0x10b831,_0x3d5839);break;}case _0x2d6399[_0x1575f7(0x22c)]:{_0x3e50d1=_0x180534(_0x10b831,_0x3d5839);break;}case _0x2d6399['InsertRangeMoveDownCommandId']:{_0x3e50d1=_0x5d05d0(_0x10b831,_0x3d5839);break;}case _0x2d6399[_0x1575f7(0x3da)]:{_0x3e50d1=_0x3c5fe4(_0x10b831,_0x3d5839);break;}case _0x2d6399[_0x1575f7(0x238)]:{_0x3e50d1=_0x5152e3(_0x10b831,_0x3d5839);break;}case _0x2d6399[_0x1575f7(0x37f)]:{_0x3e50d1=_0x49f706(_0x10b831,_0x3d5839);break;}case _0x2d6399[_0x1575f7(0x28f)]:{_0x3e50d1=_0x5357dc(_0x10b831,_0x3d5839);break;}case _0x2d6399[_0x1575f7(0x27f)]:{_0x3e50d1=_0x508fe0(_0x10b831,_0x3d5839);break;}}const _0xb92f58=_0x1f0979(_0x3e50d1,_0x3d5839),_0x354913=this['cursorInfo'][_0x1575f7(0x362)](_0x1e3765);if(_0x354913&&_0xb92f58){const _0x9a06a3={..._0x354913,'range':_0xb92f58};this['cursorInfo'][_0x1575f7(0x320)](_0x1e3765,_0x9a06a3),_0x22ad4e(()=>{const _0x1ceb00=_0x1575f7,_0x35e889=this['_refRangeService'][_0x1ceb00(0x2b0)](_0xb92f58,_0x141a53=>(_0x35e889[_0x1ceb00(0x378)](),_0x17cbf7(_0x141a53,_0x1e3765,_0x2fd858,_0xb92f58)));_0x5d0015[_0x1ceb00(0x497)](_0x35e889);});}return{'redos':[],'undos':[]};};this[_0xa2496c(0x235)][_0xa2496c(0x31b)]((_0x4041c6,_0x4d7e83)=>{const _0x2b98a9=_0xa2496c,{range:_0x5bc296,sheetID:_0x4094c3}=_0x4041c6,_0x1f130a=this[_0x2b98a9(0x48d)][_0x2b98a9(0x2b0)](_0x5bc296,_0x143656=>(_0x1f130a[_0x2b98a9(0x378)](),_0x17cbf7(_0x143656,_0x4d7e83,_0x4094c3,_0x5bc296)));_0x5d0015[_0x2b98a9(0x497)](_0x1f130a);});};this['disposeWithMe'](_0x359428(this[_0x4c751c(0x2d9)]['subscribe'](()=>{_0x3fe58d();})));}[_0x29c6a6(0x3bf)](){const _0x24235e=_0x29c6a6;var _0x1b4137,_0x481608;if(this['_online']=!0x0,((_0x1b4137=this['_univerInstanceService'][_0x24235e(0x2e1)]())==null?void 0x0:_0x1b4137[_0x24235e(0x38d)]())!==this['unitID'])return;const _0x2e46e6=(_0x481608=this[_0x24235e(0x31f)][_0x24235e(0x362)](_0x543329)['getSelections']())==null?void 0x0:_0x481608[0x0],_0x4f1908=this[_0x24235e(0x49b)][_0x24235e(0x4ec)](_0x17600d[_0x24235e(0x3b4)])[_0x24235e(0x36e)]();_0x2e46e6&&_0x4f1908&&this[_0x24235e(0x351)](_0x4f1908[_0x24235e(0x2bb)](),_0x2e46e6);}['_toggleOffline'](){const _0x6c5109=_0x29c6a6;this[_0x6c5109(0x488)]=!0x1;}};gt=Yn([ae(0x2,_0x558bc4(_0x4ead3f)),ae(0x3,_0x558bc4(At)),ae(0x4,_0x558bc4(ee)),ae(0x5,_0x33e391),ae(0x6,_0x594d06),ae(0x7,_0x558bc4(_0x5e51b6))],gt);var zn=Object[_0x29c6a6(0x3f3)],Zn=Object[_0x29c6a6(0x48e)],qn=(_0x46bfa5,_0x15c13a,_0x38a7dd,_0x437464)=>{const _0x2cd8d4=_0x29c6a6;for(var _0x536f83=_0x437464>0x1?void 0x0:_0x437464?Zn(_0x15c13a,_0x38a7dd):_0x15c13a,_0x4477c3=_0x46bfa5[_0x2cd8d4(0x431)]-0x1,_0x2542da;_0x4477c3>=0x0;_0x4477c3--)(_0x2542da=_0x46bfa5[_0x4477c3])&&(_0x536f83=(_0x437464?_0x2542da(_0x15c13a,_0x38a7dd,_0x536f83):_0x2542da(_0x536f83))||_0x536f83);return _0x437464&&_0x536f83&&zn(_0x15c13a,_0x38a7dd,_0x536f83),_0x536f83;},q=(_0x115bcf,_0x5c7d7d)=>(_0x369829,_0x2798de)=>_0x5c7d7d(_0x369829,_0x2798de,_0x115bcf);const Qn=0x12c,er=0x64;let mt=class extends _0x39fd47{constructor(_0x4ff57b,_0x48a0be,_0x42e897,_0x2aa41e,_0x10d3f3,_0x5623ed,_0x1123f0,_0x13823d,_0x522d58){const _0x283a7d=_0x29c6a6;super(),l(this,'_online',!0x1),l(this,_0x283a7d(0x26f),!0x1),l(this,'_cursorInfo$',new _0x2ae6a5(new Map())),l(this,_0x283a7d(0x4ed),this['_cursorInfo$']['asObservable']()),l(this,_0x283a7d(0x4da),new _0x2ae6a5([])),l(this,_0x283a7d(0x30b),this[_0x283a7d(0x4da)][_0x283a7d(0x4dc)](_0x3c2ea7(Qn))),l(this,_0x283a7d(0x351),_0x284565(_0x306860=>{const _0x556c41=_0x283a7d,_0x31c7ed={'eventID':_0x5911b8[_0x556c41(0x2aa)],'data':{'unitID':this[_0x556c41(0x1ca)],'memberID':this[_0x556c41(0x3a8)][_0x556c41(0x48c)](),'selection':Ds(_0x306860)}};this[_0x556c41(0x3a8)][_0x556c41(0x293)](_0x31c7ed,this[_0x556c41(0x1ca)]);},er)),(this[_0x283a7d(0x1ca)]=_0x4ff57b,this[_0x283a7d(0x3a8)]=_0x48a0be,this[_0x283a7d(0x31f)]=_0x42e897,this[_0x283a7d(0x4a8)]=_0x2aa41e,this[_0x283a7d(0x23c)]=_0x10d3f3,this[_0x283a7d(0x421)]=_0x5623ed,this[_0x283a7d(0x367)]=_0x1123f0,this[_0x283a7d(0x49b)]=_0x13823d,this[_0x283a7d(0x3d7)]=_0x522d58);}get['cursorInfo'](){const _0x474e77=_0x29c6a6;return this[_0x474e77(0x2d9)][_0x474e77(0x3d5)]();}get[_0x29c6a6(0x284)](){const _0x1b4522=_0x29c6a6;return this[_0x1b4522(0x4da)][_0x1b4522(0x3d5)]();}['dispose'](){const _0x4714fb=_0x29c6a6;super[_0x4714fb(0x378)](),this[_0x4714fb(0x2d9)][_0x4714fb(0x3af)](new Map()),this[_0x4714fb(0x2d9)][_0x4714fb(0x2ed)](),this[_0x4714fb(0x4da)][_0x4714fb(0x3af)]([]),this[_0x4714fb(0x4da)][_0x4714fb(0x2ed)]();}[_0x29c6a6(0x23e)](){const _0x2bb3ce=_0x29c6a6;this['_init']||(this[_0x2bb3ce(0x26f)]=!0x0,this[_0x2bb3ce(0x3a8)][_0x2bb3ce(0x1cd)]['pipe'](_0x26437e(this[_0x2bb3ce(0x33a)]))[_0x2bb3ce(0x460)](_0x24cd1f=>{const _0x238b8d=_0x2bb3ce;_0x24cd1f===_e[_0x238b8d(0x490)]?this[_0x238b8d(0x3bf)]():this[_0x238b8d(0x1f4)]();}),this[_0x2bb3ce(0x3a8)]['event$']['pipe'](_0x26437e(this[_0x2bb3ce(0x33a)]))['subscribe'](_0x1434b5=>{const _0x5a6c88=_0x2bb3ce,_0x5c5da2=_0x1434b5[_0x5a6c88(0x2fa)];_0x5c5da2===_0x5911b8[_0x5a6c88(0x2aa)]&&this[_0x5a6c88(0x33f)](_0x1434b5),_0x5c5da2===_0x5911b8[_0x5a6c88(0x49c)]&&this[_0x5a6c88(0x4b6)](_0x1434b5);}),this[_0x2bb3ce(0x1fb)](this[_0x2bb3ce(0x3d7)][_0x2bb3ce(0x41d)](_0x4e7a3a=>{const _0x56e5f4=_0x2bb3ce,_0x39860e=_0x4e7a3a[_0x56e5f4(0x3c7)];_0x39860e!=null&&this[_0x56e5f4(0x488)]&&_0x4e7a3a['id']===_0x3476b3['id']&&_0x39860e[_0x56e5f4(0x458)]===this['unitID']&&_0x39860e[_0x56e5f4(0x2da)]===!0x1&&this[_0x56e5f4(0x351)](_0x39860e[_0x56e5f4(0x278)]);})),this[_0x2bb3ce(0x421)][_0x2bb3ce(0x344)]['pipe'](_0x26437e(this[_0x2bb3ce(0x33a)]))[_0x2bb3ce(0x460)](_0x271cca=>{const _0x1d7634=_0x2bb3ce;if((_0x271cca==null?void 0x0:_0x271cca['unitID'])!==this[_0x1d7634(0x1ca)])return;const _0x2c4f51={'eventID':_0x5911b8[_0x1d7634(0x2aa)],'data':_0x271cca};this['_onCursorUpdate'](_0x2c4f51);}),this[_0x2bb3ce(0x1fb)](this[_0x2bb3ce(0x3d7)][_0x2bb3ce(0x41d)](_0x9f3492=>{const _0x6c4881=_0x2bb3ce;if(_0x9f3492[_0x6c4881(0x3c7)]==null)return;const _0x558bd3=_0x9f3492[_0x6c4881(0x3c7)];if(_0x9f3492['id']!==_0x4f4c8f['id']||_0x558bd3[_0x6c4881(0x458)]!==this[_0x6c4881(0x1ca)])return;const _0x2ce950={'id':'doc.mutation.rich-text-editing','params':_0x558bd3},_0x3b785d=this[_0x6c4881(0x235)];for(const [_0x459093,_0x46df9f]of _0x3b785d){const _0x431bcc={'id':_0x6c4881(0x464),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x46df9f[_0x6c4881(0x278)]}},_0x27456d=this[_0x6c4881(0x367)][_0x6c4881(0x40f)](_0x2ce950,_0x431bcc,!0x1);if(_0x42961a(_0x27456d))throw _0x27456d['error'];_0x3b785d[_0x6c4881(0x320)](_0x459093,{..._0x46df9f,'ranges':_0x27456d['m2Prime'][_0x6c4881(0x3c7)][_0x6c4881(0x224)]});}queueMicrotask(()=>{const _0x471f30=_0x6c4881;this[_0x471f30(0x2d9)][_0x471f30(0x3af)](_0x3b785d);});})));}[_0x29c6a6(0x33f)](_0x3925b7){const _0x5ab002=_0x29c6a6;var _0xab636e,_0x1e5eca;const {memberID:_0x39fab5,selection:_0x1cbd3b}=_0x3925b7[_0x5ab002(0x3f0)],_0x2e79d3=yn(_0x1cbd3b),_0xe430c=(_0x1e5eca=(_0xab636e=this[_0x5ab002(0x23c)][_0x5ab002(0x249)](this[_0x5ab002(0x1ca)],_0x39fab5))==null?void 0x0:_0xab636e[_0x5ab002(0x47b)])!=null?_0x1e5eca:_0x5ab002(0x33d),_0x3f7f9f={'color':this['_colorAssignService'][_0x5ab002(0x361)](_0x39fab5),'name':_0xe430c,'ranges':_0x2e79d3},_0xfcc77d=this[_0x5ab002(0x235)];_0xfcc77d[_0x5ab002(0x320)](_0x39fab5,_0x3f7f9f),this[_0x5ab002(0x2d9)]['next'](_0xfcc77d);}[_0x29c6a6(0x4b6)](_0x3f43c4){const _0x546373=_0x29c6a6,{memberID:_0x5bc3be}=_0x3f43c4[_0x546373(0x3f0)],_0x43b9ca=this['cursorInfo'];_0x43b9ca['delete'](_0x5bc3be),this[_0x546373(0x2d9)][_0x546373(0x3af)](_0x43b9ca);}['_toggleOnline'](){const _0xa4d0e4=_0x29c6a6;var _0x8ed251;if(this[_0xa4d0e4(0x488)]=!0x0,((_0x8ed251=this['_univerInstanceService'][_0xa4d0e4(0x2e1)]())==null?void 0x0:_0x8ed251[_0xa4d0e4(0x38d)]())!==this['unitID'])return;const _0x3bc7d0=this[_0xa4d0e4(0x31f)][_0xa4d0e4(0x362)](_0x4c35a6)[_0xa4d0e4(0x305)](),_0x28f1b0=_0x3bc7d0==null?void 0x0:_0x3bc7d0['map'](_0x547357);Array['isArray'](_0x28f1b0)&&_0x28f1b0[_0xa4d0e4(0x431)]>0x0&&this[_0xa4d0e4(0x351)](_0x28f1b0);}[_0x29c6a6(0x1f4)](){this['_online']=!0x1;}};mt=qn([q(0x2,_0x558bc4(_0x4ead3f)),q(0x3,_0x558bc4(At)),q(0x4,_0x558bc4(ee)),q(0x5,_0x558bc4(Mt)),q(0x6,_0xd13d4c),q(0x7,_0x33e391),q(0x8,_0x594d06)],mt);var tr=Object[_0x29c6a6(0x3f3)],sr=Object['getOwnPropertyDescriptor'],ir=(_0x5ad03d,_0x217e25,_0x360d38,_0x930ed5)=>{const _0x7dae8a=_0x29c6a6;for(var _0x1af1ae=_0x930ed5>0x1?void 0x0:_0x930ed5?sr(_0x217e25,_0x360d38):_0x217e25,_0x3f36ba=_0x5ad03d[_0x7dae8a(0x431)]-0x1,_0x20c442;_0x3f36ba>=0x0;_0x3f36ba--)(_0x20c442=_0x5ad03d[_0x3f36ba])&&(_0x1af1ae=(_0x930ed5?_0x20c442(_0x217e25,_0x360d38,_0x1af1ae):_0x20c442(_0x1af1ae))||_0x1af1ae);return _0x930ed5&&_0x1af1ae&&tr(_0x217e25,_0x360d38,_0x1af1ae),_0x1af1ae;},st=(_0x300cd5,_0x296cf7)=>(_0x1e011a,_0x2d501d)=>_0x296cf7(_0x1e011a,_0x2d501d,_0x300cd5);let ue=class extends _0x39fd47{constructor(_0x1c34f0,_0x578a1c,_0x18251c){const _0x21bd3b=_0x29c6a6;super(),l(this,'_entities',new Map()),l(this,_0x21bd3b(0x270),new _0x2ef673()),(this[_0x21bd3b(0x49b)]=_0x1c34f0,this['_injector']=_0x578a1c,this[_0x21bd3b(0x266)]=_0x18251c,this['_init']());}['dispose'](){const _0x4f0982=_0x29c6a6;super['dispose'](),this[_0x4f0982(0x270)]['complete'](),this[_0x4f0982(0x4d9)][_0x4f0982(0x31b)](_0xba75d8=>_0xba75d8[_0x4f0982(0x378)]());}[_0x29c6a6(0x1ed)](_0x17464d){const _0x1a00e5=_0x29c6a6;return this[_0x1a00e5(0x4d9)][_0x1a00e5(0x46f)](_0x17464d)?this[_0x1a00e5(0x4d9)][_0x1a00e5(0x362)](_0x17464d)[_0x1a00e5(0x4ed)]:this[_0x1a00e5(0x270)][_0x1a00e5(0x4dc)](_0x4b51e3(_0x556464=>_0x556464[_0x1a00e5(0x1ca)]===_0x17464d),_0x3931dc(_0x484a01=>_0x484a01[_0x1a00e5(0x4ed)]));}[_0x29c6a6(0x26f)](){const _0x236b32=_0x29c6a6;this[_0x236b32(0x49b)][_0x236b32(0x1f7)](_0x17600d['UNIVER_SHEET'])[_0x236b32(0x4dc)](_0x26437e(this[_0x236b32(0x33a)]))['subscribe'](async _0x31d238=>{const _0x479c27=_0x236b32,_0x305c29=_0x31d238[_0x479c27(0x38d)](),_0x33e06d=await this[_0x479c27(0x274)](_0x305c29);this[_0x479c27(0x270)][_0x479c27(0x3af)](_0x33e06d),this[_0x479c27(0x4d9)][_0x479c27(0x320)](_0x305c29,_0x33e06d);}),this[_0x236b32(0x49b)][_0x236b32(0x1f7)](_0x17600d['UNIVER_DOC'])['pipe'](_0x26437e(this[_0x236b32(0x33a)]))[_0x236b32(0x4dc)](_0x4b51e3(_0x1293f1=>!_0x1293f1[_0x236b32(0x38d)]()['startsWith']('__')))[_0x236b32(0x460)](async _0x5e6b61=>{const _0x565a0f=_0x236b32,_0x389274=_0x5e6b61[_0x565a0f(0x38d)](),_0x32aafa=await this[_0x565a0f(0x35d)](_0x389274);this[_0x565a0f(0x270)][_0x565a0f(0x3af)](_0x32aafa),this[_0x565a0f(0x4d9)][_0x565a0f(0x320)](_0x389274,_0x32aafa);}),_0x2e2fc7(this[_0x236b32(0x49b)][_0x236b32(0x4d1)](_0x17600d[_0x236b32(0x3f2)]),this[_0x236b32(0x49b)][_0x236b32(0x4d1)](_0x17600d[_0x236b32(0x3b4)]))[_0x236b32(0x4dc)](_0x26437e(this['dispose$']))[_0x236b32(0x460)](_0x445b45=>{const _0x8393a=_0x236b32,_0x5d1130=_0x445b45[_0x8393a(0x38d)](),_0x27f69c=this[_0x8393a(0x4d9)]['get'](_0x5d1130);_0x27f69c&&(_0x27f69c[_0x8393a(0x378)](),this['_entities'][_0x8393a(0x457)](_0x5d1130));});}async[_0x29c6a6(0x274)](_0x48174b){const _0x191d1d=_0x29c6a6,_0x5613b5=await this[_0x191d1d(0x266)][_0x191d1d(0x4e6)](_0x48174b),_0x25239a=this['_injector'][_0x191d1d(0x43a)](gt,_0x48174b,_0x5613b5);return _0x25239a[_0x191d1d(0x23e)](),_0x25239a;}async['_startDocCollabCursor'](_0x4e4695){const _0x47b652=_0x29c6a6,_0x173281=await this[_0x47b652(0x266)][_0x47b652(0x4e6)](_0x4e4695),_0x6980f3=this[_0x47b652(0x31f)][_0x47b652(0x43a)](mt,_0x4e4695,_0x173281);return _0x6980f3['init'](),_0x6980f3;}};ue=ir([_0x2d1123(_0xb39fe5[_0x29c6a6(0x4bc)],ue),st(0x0,_0x33e391),st(0x1,_0x558bc4(_0x4ead3f)),st(0x2,_0x558bc4(Re))],ue);const Oe=0x14,qt=0xc8,it=0x4,nr=0x5;function rr(_0x2be93e,_0x419412){const _0x1c69e7=_0x29c6a6;let {radius:_0x1e587a,width:_0xbaa34e,height:_0xe48f09}=_0x419412;_0x1e587a=_0x1e587a!=null?_0x1e587a:0x0,_0xbaa34e=_0xbaa34e!=null?_0xbaa34e:0x1e,_0xe48f09=_0xe48f09!=null?_0xe48f09:0x1e;let _0x194361=0x0,_0x583221=0x0,_0xb38475=0x0;_0x194361=_0x583221=_0xb38475=Math[_0x1c69e7(0x2b8)](_0x1e587a,_0xbaa34e/0x2,_0xe48f09/0x2),_0x2be93e[_0x1c69e7(0x49e)](),_0x2be93e[_0x1c69e7(0x29a)](_0x194361,0x0),_0x2be93e[_0x1c69e7(0x3e4)](_0xbaa34e-_0x583221,0x0),_0x2be93e[_0x1c69e7(0x42a)](_0xbaa34e-_0x583221,_0x583221,_0x583221,Math['PI']*0x3/0x2,0x0,!0x1),_0x2be93e['lineTo'](_0xbaa34e,_0xe48f09-_0xb38475),_0x2be93e['arc'](_0xbaa34e-_0xb38475,_0xe48f09-_0xb38475,_0xb38475,0x0,Math['PI']/0x2,!0x1),_0x2be93e[_0x1c69e7(0x3e4)](0x0,_0xe48f09),_0x2be93e[_0x1c69e7(0x3e4)](0x0,_0x194361),_0x2be93e[_0x1c69e7(0x42a)](_0x194361,_0x194361,_0x194361,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2be93e[_0x1c69e7(0x273)](),_0x419412[_0x1c69e7(0x2d5)]&&(_0x2be93e[_0x1c69e7(0x2a8)](),_0x2be93e[_0x1c69e7(0x2d7)]=_0x419412[_0x1c69e7(0x2d5)],_0x419412['fillRule']===_0x1c69e7(0x3dd)?_0x2be93e[_0x1c69e7(0x2d5)]('evenodd'):_0x2be93e[_0x1c69e7(0x2d5)](),_0x2be93e[_0x1c69e7(0x471)]());}class ze extends _0x169d33{constructor(_0x1cd545,_0x4d16a5){const _0x2dbf3a=_0x29c6a6;super(_0x1cd545,_0x4d16a5),l(this,_0x2dbf3a(0x241)),l(this,_0x2dbf3a(0x21f)),(this['color']=_0x4d16a5==null?void 0x0:_0x4d16a5[_0x2dbf3a(0x241)],this[_0x2dbf3a(0x21f)]=_0x4d16a5==null?void 0x0:_0x4d16a5[_0x2dbf3a(0x21f)]);}static[_0x29c6a6(0x1fc)](_0x126dfb,_0x19f015){const _0x18e827=_0x29c6a6,{text:_0xd1d6d,color:_0x1cb3a5}=_0x19f015;_0x126dfb[_0x18e827(0x2a8)](),_0x126dfb[_0x18e827(0x26a)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x42b74d=_0x126dfb[_0x18e827(0x3ae)](_0xd1d6d)[_0x18e827(0x30f)],_0x151e99=Math[_0x18e827(0x2b8)](_0x42b74d+0x2*it,qt);rr(_0x126dfb,{'height':Oe,'radius':0x4,'width':_0x151e99,'fill':_0x1cb3a5,'evented':!0x1}),_0x126dfb[_0x18e827(0x2d7)]='#FFF';const _0x39b962=it,_0x3cef3a=Oe-nr,_0x2c0388=qt-0x2*it;if(_0x42b74d>_0x2c0388){let _0x1f44f8='',_0x57c41d=0x0;for(const _0x5e031a of _0xd1d6d){const _0x271a82=_0x126dfb['measureText'](_0x5e031a)['width'];if(_0x57c41d+_0x271a82<=_0x2c0388-_0x126dfb[_0x18e827(0x3ae)](_0x18e827(0x413))[_0x18e827(0x30f)])_0x1f44f8+=_0x5e031a,_0x57c41d+=_0x271a82;else{_0x1f44f8+='...';break;}}_0x126dfb[_0x18e827(0x21e)](_0x1f44f8,_0x39b962,_0x3cef3a);}else _0x126dfb[_0x18e827(0x21e)](_0xd1d6d,_0x39b962,_0x3cef3a);_0x126dfb[_0x18e827(0x471)]();}[_0x29c6a6(0x234)](_0x2d5362){const _0x3ae764=_0x29c6a6;ze[_0x3ae764(0x1fc)](_0x2d5362,this);}}const or=0x1,ar=1.5;class cr extends _0x169d33{constructor(_0xac895e,_0x52608a){const _0x46ae3a=_0x29c6a6;super(_0xac895e,_0x52608a),l(this,_0x46ae3a(0x412)),l(this,_0x46ae3a(0x289),!0x1),l(this,_0x46ae3a(0x212)),l(this,'_name',''),l(this,'_labelPosition','top'),(_0x52608a&&this[_0x46ae3a(0x347)](_0x52608a),this[_0x46ae3a(0x2ad)][_0x46ae3a(0x4af)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x46ae3a(0x331)][_0x46ae3a(0x4af)](()=>this[_0x46ae3a(0x347)]({'hovered':!0x1})));}[_0x29c6a6(0x347)](_0x491898){const _0x17b9e4=_0x29c6a6;var _0x17b619,_0x50be45,_0x3b6154,_0x254d44,_0x5796db;this[_0x17b9e4(0x412)]=(_0x17b619=_0x491898[_0x17b9e4(0x241)])!=null?_0x17b619:this['_color'],this['_hovered']=(_0x50be45=_0x491898[_0x17b9e4(0x372)])!=null?_0x50be45:this['_hovered'],this[_0x17b9e4(0x212)]=(_0x3b6154=_0x491898[_0x17b9e4(0x307)])!=null?_0x3b6154:this[_0x17b9e4(0x212)],this['_name']=(_0x254d44=_0x491898[_0x17b9e4(0x47b)])!=null?_0x254d44:this[_0x17b9e4(0x26e)],this[_0x17b9e4(0x1f8)]=(_0x5796db=_0x491898[_0x17b9e4(0x41f)])!=null?_0x5796db:this['_labelPosition'],this[_0x17b9e4(0x354)]({'width':_0x491898['width'],'height':_0x491898[_0x17b9e4(0x2b5)]});}[_0x29c6a6(0x3a2)](_0x38aa6c){const _0x27ad6d=_0x29c6a6,{row:_0x5a9e8d,column:_0x2b3f42}=_0x38aa6c;if(_0x5a9e8d>=this[_0x27ad6d(0x212)]['startRow']&&_0x5a9e8d<=this[_0x27ad6d(0x212)]['endRow']&&_0x2b3f42>=this[_0x27ad6d(0x212)][_0x27ad6d(0x3e9)]&&_0x2b3f42<=this[_0x27ad6d(0x212)][_0x27ad6d(0x46c)]){this[_0x27ad6d(0x347)]({'hovered':!0x0});return;}this[_0x27ad6d(0x347)]({'hovered':!0x1});}[_0x29c6a6(0x338)](_0x33c463){return!0x1;}[_0x29c6a6(0x234)](_0xcbe54b){const _0x4e74b6=_0x29c6a6;_0x274a4d[_0x4e74b6(0x1fc)](_0xcbe54b,{'width':this[_0x4e74b6(0x30f)],'height':this[_0x4e74b6(0x2b5)],'strokeWidth':ar,'stroke':this[_0x4e74b6(0x412)],'evented':!0x1}),this[_0x4e74b6(0x289)]&&(_0xcbe54b['save'](),_0xcbe54b[_0x4e74b6(0x352)](0x1,0x0,0x0,0x1,this['width'],this['_labelPosition']===_0x4e74b6(0x4a0)?0x0:-Oe),ze[_0x4e74b6(0x1fc)](_0xcbe54b,{'text':this[_0x4e74b6(0x26e)],'color':this['_color']}),_0xcbe54b[_0x4e74b6(0x471)]());}}var hr=Object[_0x29c6a6(0x3f3)],lr=Object[_0x29c6a6(0x48e)],_r=(_0x4bd48c,_0x3b12d0,_0x2b593c,_0x3b1b17)=>{const _0x46f79a=_0x29c6a6;for(var _0x312c0a=_0x3b1b17>0x1?void 0x0:_0x3b1b17?lr(_0x3b12d0,_0x2b593c):_0x3b12d0,_0x4511fc=_0x4bd48c[_0x46f79a(0x431)]-0x1,_0x3acda1;_0x4511fc>=0x0;_0x4511fc--)(_0x3acda1=_0x4bd48c[_0x4511fc])&&(_0x312c0a=(_0x3b1b17?_0x3acda1(_0x3b12d0,_0x2b593c,_0x312c0a):_0x3acda1(_0x312c0a))||_0x312c0a);return _0x3b1b17&&_0x312c0a&&hr(_0x3b12d0,_0x2b593c,_0x312c0a),_0x312c0a;},Me=(_0x228eaa,_0x51ee05)=>(_0x197b74,_0x472c02)=>_0x51ee05(_0x197b74,_0x472c02,_0x228eaa);const ur=0x1389;let $e=class extends _0x39fd47{constructor(_0x434a52,_0x15b3f3,_0x26eb4d,_0xf7f709){const _0x10113b=_0x29c6a6;super(),l(this,'_cursors',new Set()),l(this,_0x10113b(0x2df),null),(this[_0x10113b(0x2bf)]=_0x434a52,this[_0x10113b(0x49b)]=_0x15b3f3,this[_0x10113b(0x3d3)]=_0x26eb4d,this[_0x10113b(0x44e)]=_0xf7f709,this[_0x10113b(0x26f)]());}get['_sheetSkeletonManagerService'](){const _0xc6660f=_0x29c6a6;return this['_renderManagerService']['getRenderById'](this[_0xc6660f(0x49b)]['getCurrentUnitForType'](_0x17600d[_0xc6660f(0x3b4)])[_0xc6660f(0x38d)]())[_0xc6660f(0x294)](_0x53c5c9);}get['_unitId'](){const _0x41c87f=_0x29c6a6;return this[_0x41c87f(0x49b)][_0x41c87f(0x4ec)](_0x17600d[_0x41c87f(0x3b4)])[_0x41c87f(0x38d)]();}[_0x29c6a6(0x26f)](){const _0xa844be=_0x29c6a6;this[_0xa844be(0x283)][_0xa844be(0x3d0)][_0xa844be(0x4dc)](_0x380119(this[_0xa844be(0x33a)]),_0x5e300c(_0x5115a1=>{const _0x2fff45=_0xa844be;if(_0x5115a1){const _0x3aa3f3=_0x5115a1[_0x2fff45(0x389)];return _0x45bbb6(this[_0x2fff45(0x2bf)][_0x2fff45(0x1ed)](this[_0x2fff45(0x325)]),this[_0x2fff45(0x44e)]['currentTheme$'])['pipe'](_0x6aec6c(([_0x75a2fb,_0x31a921])=>{const _0x547905=_0x2fff45,_0x5797eb=new Map();return _0x75a2fb[_0x547905(0x31b)]((_0x48e840,_0x5a1d0a)=>{const _0x5b92c5=_0x547905;if(_0x48e840[_0x5b92c5(0x44a)]===_0x3aa3f3){const _0x47f0ab={..._0x48e840};_0x47f0ab[_0x5b92c5(0x241)]=_0x31a921[_0x48e840['color']],_0x5797eb[_0x5b92c5(0x320)](_0x5a1d0a,_0x47f0ab);}}),{'skeleton':_0x5115a1,'cursors':_0x5797eb};}));}return _0x41c67f({'skeleton':null,'cursors':new Map()});}))[_0xa844be(0x460)](({skeleton:_0x53bc63,cursors:_0x2369b0})=>{const _0x131f40=_0xa844be;this[_0x131f40(0x377)](),_0x53bc63&&this[_0x131f40(0x45c)](_0x53bc63,_0x2369b0);}),this['_sheetSkeletonManagerService'][_0xa844be(0x3d0)]['subscribe'](_0x493514=>{const _0x5d25a0=_0xa844be;if(_0x493514==null)return;const {skeleton:_0x2db08a}=_0x493514,_0x21c62f=this['_renderManagerService'][_0x5d25a0(0x481)](this[_0x5d25a0(0x325)]),{scene:_0x3aead6}=_0x21c62f;_0x3aead6['onPointerMove$']['subscribeEvent'](_0x284565(_0x1bfa9a=>{const _0x1ec8db=_0x5d25a0;var _0x2fa049,_0x490dcd;const {offsetX:_0x595735,offsetY:_0x4769dc}=_0x1bfa9a,{x:_0x28aa71,y:_0x528616}=_0x3aead6[_0x1ec8db(0x3b6)](_0x27c809['FromArray']([_0x595735,_0x4769dc])),{scaleX:_0x5aea51,scaleY:_0x15df8a}=_0x3aead6[_0x1ec8db(0x244)](),_0x165360=_0x3aead6[_0x1ec8db(0x37e)](_0x594710[_0x1ec8db(0x213)]),_0xc6b0b1=_0x3aead6[_0x1ec8db(0x470)](_0x27c809[_0x1ec8db(0x2ca)]([_0x28aa71,_0x528616]),_0x165360),_0x1f708f=_0x2db08a[_0x1ec8db(0x353)](_0x595735,_0x4769dc,_0x5aea51,_0x15df8a,_0xc6b0b1);((_0x2fa049=this[_0x1ec8db(0x2df)])==null?void 0x0:_0x2fa049[_0x1ec8db(0x494)])===_0x1f708f[_0x1ec8db(0x494)]&&((_0x490dcd=this[_0x1ec8db(0x2df)])==null?void 0x0:_0x490dcd['row'])===_0x1f708f[_0x1ec8db(0x41c)]||this[_0x1ec8db(0x466)][_0x1ec8db(0x31b)](_0x49b3f8=>{const _0xe1d02c=_0x1ec8db;_0x49b3f8[_0xe1d02c(0x3a2)](_0x1f708f);});},0x64));});}[_0x29c6a6(0x45c)](_0x1a4661,_0x4b4ce5){const _0x17a1df=_0x29c6a6;var _0x4005c9;const _0x15425f=(_0x4005c9=this[_0x17a1df(0x283)][_0x17a1df(0x463)]())==null?void 0x0:_0x4005c9[_0x17a1df(0x1e8)];if(!_0x15425f)return;const _0x143dec=this['_getSheetObject']();if(!_0x143dec)return;this[_0x17a1df(0x466)]['forEach'](_0x29bc3b=>{_0x29bc3b['makeDirty']();});const {scene:_0x9961b8}=_0x143dec,_0x193b4d=dr(Array[_0x17a1df(0x4a3)](_0x4b4ce5[_0x17a1df(0x250)]()))[_0x17a1df(0x1f9)](_0x536193=>{const _0x38e614=_0x17a1df,{color:_0x44e990,range:_0x41b996,name:_0x446c76,selection:_0x2b2f12,sheetID:_0x409efb}=_0x536193,{startColumn:_0x1a5531,startRow:_0x1151c0,endColumn:_0x123394,endRow:_0x52da71}=_0x41b996,_0x306542=_0x53d697(_0x1151c0,_0x1a5531,_0x9961b8,_0x15425f),_0x292a47=_0x53d697(_0x52da71,_0x123394,_0x9961b8,_0x15425f),{columnHeaderHeightAndMarginTop:_0x56ae51}=_0x15425f,{startX:_0x12a882,startY:_0x5c1d13}=_0x306542,{endX:_0x1bb256,endY:_0x34773c}=_0x292a47,_0x18f512=_0x1bb256-_0x12a882,_0x2e038d=_0x34773c-_0x5c1d13,_0x1efb1a={'labelPosition':_0x5c1d13-_0x56ae51>=Oe?_0x38e614(0x405):_0x38e614(0x4a0),'sheetID':_0x409efb,'range':_0x41b996,'color':_0x44e990,'name':_0x446c76,'selection':_0x2b2f12,'left':_0x12a882,'top':_0x5c1d13,'width':_0x18f512,'height':_0x2e038d,'evented':!0x1,'zIndex':ur};return new cr(_0x446c76,_0x1efb1a);});_0x9961b8[_0x17a1df(0x288)](_0x193b4d,or),this[_0x17a1df(0x466)]=new Set(_0x193b4d);}[_0x29c6a6(0x377)](){const _0x4bb006=_0x29c6a6;var _0x39742e;(_0x39742e=this[_0x4bb006(0x466)])==null||_0x39742e[_0x4bb006(0x31b)](_0x559f76=>_0x559f76[_0x4bb006(0x378)]());}[_0x29c6a6(0x277)](){const _0x3a0d26=_0x29c6a6;return _0x2b1a41(this[_0x3a0d26(0x49b)],this[_0x3a0d26(0x3d3)]);}};$e=_r([_0x2d1123(_0xb39fe5[_0x29c6a6(0x222)],$e),Me(0x0,_0x558bc4(ue)),Me(0x1,_0x33e391),Me(0x2,_0x3bdd8b),Me(0x3,_0x558bc4(_0x474371))],$e);function dr(_0x128cf5){const _0x31be6e=_0x29c6a6,_0x588fb0=new Map();return _0x128cf5[_0x31be6e(0x31b)](_0x197a4a=>{const _0x2fecff=_0x31be6e;if(_0x588fb0['has'](_0x197a4a[_0x2fecff(0x2d2)])){const _0x3fd533=_0x588fb0['get'](_0x197a4a['selection']);_0x3fd533[_0x2fecff(0x47b)]+=',\x20'+_0x197a4a[_0x2fecff(0x47b)];}else _0x588fb0[_0x2fecff(0x320)](_0x197a4a[_0x2fecff(0x2d2)],_0x197a4a);}),Array[_0x31be6e(0x4a3)](_0x588fb0[_0x31be6e(0x250)]());}var A=function(){const _0x419404=_0x29c6a6;return A=Object[_0x419404(0x201)]||function(_0x564f6f){const _0x50e144=_0x419404;for(var _0x141e4d,_0x273355=0x1,_0x194902=arguments[_0x50e144(0x431)];_0x273355<_0x194902;_0x273355++){_0x141e4d=arguments[_0x273355];for(var _0x1562b0 in _0x141e4d)Object['prototype'][_0x50e144(0x3a9)][_0x50e144(0x4ef)](_0x141e4d,_0x1562b0)&&(_0x564f6f[_0x1562b0]=_0x141e4d[_0x1562b0]);}return _0x564f6f;},A['apply'](this,arguments);},fr=function(_0x33d4b6,_0x3efc38){const _0x7ef59d=_0x29c6a6;var _0x3d05ee={};for(var _0xb8ca15 in _0x33d4b6)Object[_0x7ef59d(0x2ab)][_0x7ef59d(0x3a9)]['call'](_0x33d4b6,_0xb8ca15)&&_0x3efc38[_0x7ef59d(0x251)](_0xb8ca15)<0x0&&(_0x3d05ee[_0xb8ca15]=_0x33d4b6[_0xb8ca15]);if(_0x33d4b6!=null&&typeof Object[_0x7ef59d(0x2f1)]==_0x7ef59d(0x46d)){for(var _0x4c041b=0x0,_0xb8ca15=Object[_0x7ef59d(0x2f1)](_0x33d4b6);_0x4c041b<_0xb8ca15[_0x7ef59d(0x431)];_0x4c041b++)_0x3efc38['indexOf'](_0xb8ca15[_0x4c041b])<0x0&&Object[_0x7ef59d(0x2ab)][_0x7ef59d(0x39c)][_0x7ef59d(0x4ef)](_0x33d4b6,_0xb8ca15[_0x4c041b])&&(_0x3d05ee[_0xb8ca15[_0x4c041b]]=_0x33d4b6[_0xb8ca15[_0x4c041b]]);}return _0x3d05ee;},yt=_0x45e47d(function(_0xd3a7f,_0xb0d6d6){const _0x33c3cc=_0x29c6a6;var _0x2e44c3=_0xd3a7f[_0x33c3cc(0x2a1)],_0x2a6eea=_0xd3a7f['id'],_0x592df7=_0xd3a7f[_0x33c3cc(0x3f4)],_0x275124=_0xd3a7f[_0x33c3cc(0x2b2)],_0x120f6c=fr(_0xd3a7f,[_0x33c3cc(0x2a1),'id',_0x33c3cc(0x3f4),_0x33c3cc(0x2b2)]),_0x4124e4=_0x33c3cc(0x4cb)['concat'](_0x2a6eea,'\x20')['concat'](_0x592df7||'')['trim'](),_0x289f24=_0x49f40c('_'[_0x33c3cc(0x1f6)](Sr()));return Ps(_0x2e44c3,''[_0x33c3cc(0x1f6)](_0x2a6eea),{'defIds':_0x2e44c3[_0x33c3cc(0x31a)],'idSuffix':_0x289f24[_0x33c3cc(0x315)]},A({'ref':_0xb0d6d6,'className':_0x4124e4},_0x120f6c),_0x275124);});function Ps(_0x395267,_0x2cd9c6,_0x2536a6,_0x34990d,_0x2e4a30){const _0x7cc00f=_0x29c6a6;return _0x1b0b54(_0x395267[_0x7cc00f(0x35c)],A(A({'key':_0x2cd9c6},gr(_0x395267,_0x2536a6,_0x2e4a30)),_0x34990d),(mr(_0x395267,_0x2536a6)[_0x7cc00f(0x437)]||[])[_0x7cc00f(0x1f9)](function(_0x573d5f,_0x2d4ae5){const _0x75275f=_0x7cc00f;return Ps(_0x573d5f,''['concat'](_0x2cd9c6,'-')[_0x75275f(0x1f6)](_0x395267['tag'],'-')[_0x75275f(0x1f6)](_0x2d4ae5),_0x2536a6,void 0x0,_0x2e4a30);}));}function gr(_0x4c0ec0,_0x3f5e79,_0x372174){const _0x30d3e8=_0x29c6a6;var _0x573299=A({},_0x4c0ec0[_0x30d3e8(0x2cc)]);_0x372174!=null&&_0x372174[_0x30d3e8(0x253)]&&_0x573299['fill']===_0x30d3e8(0x253)&&(_0x573299[_0x30d3e8(0x2d5)]=_0x372174[_0x30d3e8(0x253)]);var _0x28862c=_0x3f5e79[_0x30d3e8(0x31a)];return!_0x28862c||_0x28862c[_0x30d3e8(0x431)]===0x0||(_0x4c0ec0[_0x30d3e8(0x35c)]==='use'&&_0x573299[_0x30d3e8(0x1fa)]&&(_0x573299[_0x30d3e8(0x1fa)]=_0x573299[_0x30d3e8(0x1fa)]+_0x3f5e79['idSuffix']),Object[_0x30d3e8(0x454)](_0x573299)['forEach'](function(_0x33136b){const _0x3e3a14=_0x30d3e8;var _0x5e128a=_0x33136b[0x0],_0x36ea0d=_0x33136b[0x1];typeof _0x36ea0d==_0x3e3a14(0x35a)&&(_0x573299[_0x5e128a]=_0x36ea0d[_0x3e3a14(0x32e)](/url\(#(.*)\)/,_0x3e3a14(0x4ab)[_0x3e3a14(0x1f6)](_0x3f5e79[_0x3e3a14(0x1db)],')')));})),_0x573299;}function mr(_0x317802,_0x554696){const _0x5a297b=_0x29c6a6;var _0x7e802f,_0x542a8c=_0x554696[_0x5a297b(0x31a)];return!_0x542a8c||_0x542a8c[_0x5a297b(0x431)]===0x0?_0x317802:_0x317802[_0x5a297b(0x35c)]===_0x5a297b(0x265)&&(!((_0x7e802f=_0x317802['children'])===null||_0x7e802f===void 0x0)&&_0x7e802f[_0x5a297b(0x431)])?A(A({},_0x317802),{'children':_0x317802[_0x5a297b(0x437)][_0x5a297b(0x1f9)](function(_0x5daa46){const _0x197909=_0x5a297b;return typeof _0x5daa46[_0x197909(0x2cc)]['id']==_0x197909(0x35a)&&_0x542a8c&&_0x542a8c[_0x197909(0x251)](_0x5daa46['attrs']['id'])>-0x1?A(A({},_0x5daa46),{'attrs':A(A({},_0x5daa46[_0x197909(0x2cc)]),{'id':_0x5daa46[_0x197909(0x2cc)]['id']+_0x554696[_0x197909(0x1db)]})}):_0x5daa46;})}):_0x317802;}function Sr(){const _0x128338=_0x29c6a6;return Math[_0x128338(0x3bc)]()['toString'](0x24)[_0x128338(0x1f0)](0x2,0x8);}yt[_0x29c6a6(0x4ae)]=_0x29c6a6(0x20d);var vr={'tag':'svg','attrs':{'fill':_0x29c6a6(0x385),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x29c6a6(0x319)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':_0x29c6a6(0x4d5),'d':_0x29c6a6(0x374),'strokeLinecap':_0x29c6a6(0x2c8),'strokeLinejoin':_0x29c6a6(0x2c8),'strokeWidth':1.2}}]},{'tag':_0x29c6a6(0x265),'attrs':{},'children':[{'tag':_0x29c6a6(0x22e),'attrs':{'id':_0x29c6a6(0x415)},'children':[{'tag':_0x29c6a6(0x3a7),'attrs':{'fill':_0x29c6a6(0x4c4),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x29c6a6(0x415)]},Ns=_0x45e47d(function(_0x143453,_0x32df55){const _0x3d2399=_0x29c6a6;return _0x1b0b54(yt,Object['assign']({},_0x143453,{'id':_0x3d2399(0x2c3),'ref':_0x32df55,'icon':vr}));});Ns[_0x29c6a6(0x4ae)]=_0x29c6a6(0x4d6);var pr={'tag':_0x29c6a6(0x2c4),'attrs':{'fill':_0x29c6a6(0x385),'viewBox':_0x29c6a6(0x2e5),'width':_0x29c6a6(0x319),'height':_0x29c6a6(0x319)},'children':[{'tag':'g','attrs':{'clipPath':_0x29c6a6(0x287)},'children':[{'tag':_0x29c6a6(0x3a7),'attrs':{'stroke':_0x29c6a6(0x4d5),'d':_0x29c6a6(0x342),'strokeLinecap':_0x29c6a6(0x2c8),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x29c6a6(0x22e),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x29c6a6(0x3a7),'attrs':{'fill':_0x29c6a6(0x4c4),'d':_0x29c6a6(0x3b0),'transform':_0x29c6a6(0x4d2)}}]}]}],'defIds':[_0x29c6a6(0x1c8)]},Ms=_0x45e47d(function(_0x49b9f5,_0x429990){const _0x51b3a7=_0x29c6a6;return _0x1b0b54(yt,Object[_0x51b3a7(0x201)]({},_0x49b9f5,{'id':_0x51b3a7(0x1e9),'ref':_0x429990,'icon':pr}));});Ms[_0x29c6a6(0x4ae)]='OnLineSingle';const Ir=_0x29c6a6(0x280),Er=_0x29c6a6(0x1bd),Cr=_0x29c6a6(0x495),br=_0x29c6a6(0x436),Rr='univer-offline',ve={'onlineStatusIcon':Ir,'onlineStatusTitle':Er,'onlineStatus':Cr,'online':br,'offline':Rr};function Tr(_0x46d9ea){const _0x2163c3=_0x29c6a6;switch(_0x46d9ea){case P[_0x2163c3(0x4b5)]:return _0x2163c3(0x25d);case P[_0x2163c3(0x428)]:return _0x2163c3(0x304);case P['FETCH_MISS']:return'collabStatus.fetchMiss';case P[_0x2163c3(0x483)]:return _0x2163c3(0x276);case P[_0x2163c3(0x1f3)]:case P[_0x2163c3(0x4c6)]:case P['AWAITING_WITH_PENDING']:return'collabStatus.syncing';case P['SYNCED']:return _0x2163c3(0x1e5);}}function Or(_0x2de2e6){const _0x1c78ff=_0x29c6a6,{status$:_0xe3eba6}=_0x2de2e6,_0x7dec32=_0x2b20e3(_0xe3eba6,P[_0x1c78ff(0x483)]),_0x534237=_0x4e0bd3(_0x2f64f),_0x56af53=_0x7dec32!==P[_0x1c78ff(0x4b5)],_0x31acbf=_0x534237['t'](Tr(_0x7dec32)),_0x4e9e70=_0x3c1621(ve[_0x1c78ff(0x1cc)],{[ve[_0x1c78ff(0x233)]]:_0x56af53,[ve[_0x1c78ff(0x2de)]]:!_0x56af53}),_0x61fab9=_0x56af53?_0x103fdd[_0x1c78ff(0x2f8)](Ms,null):_0x103fdd[_0x1c78ff(0x2f8)](Ns,null);return _0x103fdd[_0x1c78ff(0x2f8)](_0x1c78ff(0x2dd),{'className':_0x4e9e70},_0x103fdd['createElement'](_0x1c78ff(0x2dd),{'className':ve['onlineStatusIcon']},_0x61fab9),_0x103fdd[_0x1c78ff(0x2f8)]('div',{'className':ve[_0x1c78ff(0x3fe)]},_0x31acbf));}var Dr=Object[_0x29c6a6(0x3f3)],wr=Object[_0x29c6a6(0x48e)],Pr=(_0x512e41,_0xa79ffe,_0x248665,_0x1055ff)=>{const _0x53a769=_0x29c6a6;for(var _0x16a34c=_0x1055ff>0x1?void 0x0:_0x1055ff?wr(_0xa79ffe,_0x248665):_0xa79ffe,_0x5576b4=_0x512e41[_0x53a769(0x431)]-0x1,_0x1f71bb;_0x5576b4>=0x0;_0x5576b4--)(_0x1f71bb=_0x512e41[_0x5576b4])&&(_0x16a34c=(_0x1055ff?_0x1f71bb(_0xa79ffe,_0x248665,_0x16a34c):_0x1f71bb(_0x16a34c))||_0x16a34c);return _0x1055ff&&_0x16a34c&&Dr(_0xa79ffe,_0x248665,_0x16a34c),_0x16a34c;},Ae=(_0x992632,_0x1a1e77)=>(_0x59bac5,_0x1d22bf)=>_0x1a1e77(_0x59bac5,_0x1d22bf,_0x992632);let je=class extends _0xc93720{constructor(_0x89217d,_0x2cc951,_0x19366a,_0x287c6a){const _0x18c892=_0x29c6a6;super(),l(this,_0x18c892(0x34e),new _0x2ae6a5(P[_0x18c892(0x483)])),(this[_0x18c892(0x49b)]=_0x89217d,this[_0x18c892(0x298)]=_0x2cc951,this['_injector']=_0x19366a,this[_0x18c892(0x409)]=_0x287c6a,this['_initStatusComponent'](),this['_initStatusListener']());}[_0x29c6a6(0x34d)](){const _0x4408e0=_0x29c6a6;this['disposeWithMe'](this[_0x4408e0(0x298)][_0x4408e0(0x3de)](_0x1f5713[_0x4408e0(0x408)],()=>_0x5254e3(Nr({'status$':this[_0x4408e0(0x34e)][_0x4408e0(0x4db)]()}),this['_injector'])));}[_0x29c6a6(0x20b)](){const _0x3bb08d=_0x29c6a6;this[_0x3bb08d(0x1fb)](_0x359428(this[_0x3bb08d(0x49b)][_0x3bb08d(0x337)][_0x3bb08d(0x4dc)](_0x3931dc(()=>{const _0x1511b0=_0x3bb08d,_0xa28194=this[_0x1511b0(0x49b)][_0x1511b0(0x2e1)]();return _0xa28194?this[_0x1511b0(0x409)]['getCollabEntity$'](_0xa28194[_0x1511b0(0x38d)]()):_0x41c67f(null);}),_0x3931dc(_0x4feafc=>_0x4feafc?_0x4feafc[_0x3bb08d(0x4c8)]:_0x41c67f(P[_0x3bb08d(0x483)])))[_0x3bb08d(0x460)](_0x3aefd6=>{const _0x45b072=_0x3bb08d;this[_0x45b072(0x34e)][_0x45b072(0x3af)](_0x3aefd6);})));}};je=Pr([_0x2d1123(_0xb39fe5[_0x29c6a6(0x4bc)],je),Ae(0x0,_0x33e391),Ae(0x1,_0x38bd02),Ae(0x2,_0x558bc4(_0x4ead3f)),Ae(0x3,_0x558bc4(Ee))],je);function Nr(_0x411c9d){const {status$:_0x4aefcb}=_0x411c9d;return function(){const _0x5c1505=_0x34fd;return _0x103fdd[_0x5c1505(0x2f8)](Or,{'status$':_0x4aefcb});};}const As=_0x451f50(_0x29c6a6(0x486));var Mr=Object[_0x29c6a6(0x3f3)],Ar=Object[_0x29c6a6(0x48e)],yr=(_0x1d41eb,_0x35fc42,_0x1ff204,_0x203dbe)=>{const _0xa28a9d=_0x29c6a6;for(var _0x1068e9=_0x203dbe>0x1?void 0x0:_0x203dbe?Ar(_0x35fc42,_0x1ff204):_0x35fc42,_0x1fbb22=_0x1d41eb[_0xa28a9d(0x431)]-0x1,_0x501a81;_0x1fbb22>=0x0;_0x1fbb22--)(_0x501a81=_0x1d41eb[_0x1fbb22])&&(_0x1068e9=(_0x203dbe?_0x501a81(_0x35fc42,_0x1ff204,_0x1068e9):_0x501a81(_0x1068e9))||_0x1068e9);return _0x203dbe&&_0x1068e9&&Mr(_0x35fc42,_0x1ff204,_0x1068e9),_0x1068e9;},ce=(_0x1552d1,_0x4c5853)=>(_0x4ea0b7,_0x4b5d16)=>_0x4c5853(_0x4ea0b7,_0x4b5d16,_0x1552d1);let He=class extends _0x39fd47{constructor(_0x41ad84,_0x1caecb,_0x5d8b02,_0x37f278,_0xf5fa1f,_0xbe571d){const _0x5936c2=_0x29c6a6;super(),this['_urlService']=_0x41ad84,this['_logService']=_0x1caecb,this[_0x5936c2(0x3d7)]=_0x5d8b02,this[_0x5936c2(0x1ec)]=_0x37f278,this[_0x5936c2(0x1be)]=_0xf5fa1f,_0xbe571d?_0xbe571d==null||_0xbe571d[_0x5936c2(0x370)]()['then'](()=>this['_init']()):(this[_0x5936c2(0x214)][_0x5936c2(0x363)](_0x5936c2(0x40b),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x5936c2(0x26f)]());}async[_0x29c6a6(0x26f)](){const _0x5d390d=_0x29c6a6,_0x1a57c6=this[_0x5d390d(0x2e7)][_0x5d390d(0x2d4)](_0x5d390d(0x27d)),_0x2f8464=this[_0x5d390d(0x2e7)][_0x5d390d(0x2d4)](_0x5d390d(0x236));if(!_0x1a57c6||!_0x2f8464){this[_0x5d390d(0x214)]['debug'](_0x5d390d(0x40b),_0x5d390d(0x2a3));return;}switch(Number(_0x2f8464)){case H['UNIVER_SHEET']:{const _0x3c0ca=await this[_0x5d390d(0x440)](_0x1a57c6);this['_setupSubUnitSync'](_0x3c0ca);break;}case H['UNIVER_DOC']:{await this[_0x5d390d(0x248)](_0x1a57c6);break;}default:{this[_0x5d390d(0x214)][_0x5d390d(0x35b)]('[DataLoaderController]',_0x5d390d(0x4e3));break;}}}async[_0x29c6a6(0x285)](_0x5430ff){const _0x1ebbbb=_0x29c6a6;await this[_0x1ebbbb(0x1e4)](_0x5430ff),_0x5430ff[_0x1ebbbb(0x371)][_0x1ebbbb(0x4dc)](_0x26437e(this[_0x1ebbbb(0x33a)]))[_0x1ebbbb(0x460)](_0x558a71=>{const _0x30451f=_0x1ebbbb;_0x558a71&&this[_0x30451f(0x402)](_0x558a71);}),this[_0x1ebbbb(0x2e7)][_0x1ebbbb(0x1e2)][_0x1ebbbb(0x4dc)](_0x26437e(this[_0x1ebbbb(0x33a)]))['subscribe'](()=>this[_0x1ebbbb(0x1e4)](_0x5430ff));}[_0x29c6a6(0x402)](_0x87d9c4,_0xdfe868=!0x1){const _0x2f6d22=_0x29c6a6,_0x450e50=this[_0x2f6d22(0x2e7)]['getParam'](_0x2f6d22(0x417));_0x87d9c4[_0x2f6d22(0x2bb)]()!==_0x450e50&&this['_urlService'][_0x2f6d22(0x1e6)](_0x2f6d22(0x417),_0x87d9c4['getSheetId'](),_0xdfe868);}async[_0x29c6a6(0x1e4)](_0x4c2ead){const _0x1025da=_0x29c6a6;var _0xf17677;const _0x43c454=this[_0x1025da(0x2e7)]['getParam']('subunit');if(!_0x43c454||!_0x4c2ead[_0x1025da(0x42e)](_0x43c454)){const _0x70c3a1=_0x4c2ead['getUnhiddenWorksheets']()[0x0],_0x2805d9=_0x4c2ead[_0x1025da(0x42e)](_0x70c3a1);if(!_0x2805d9)return;this[_0x1025da(0x402)](_0x2805d9,!0x0),await this[_0x1025da(0x3d7)][_0x1025da(0x22a)](_0x3b91fc['id'],{'unitId':_0x4c2ead[_0x1025da(0x38d)](),'subUnitId':_0x70c3a1});return;}((_0xf17677=_0x4c2ead[_0x1025da(0x36e)]())==null?void 0x0:_0xf17677[_0x1025da(0x2bb)]())!==_0x43c454&&await this[_0x1025da(0x3d7)][_0x1025da(0x22a)](_0x3b91fc['id'],{'unitId':_0x4c2ead['getUnitId'](),'subUnitId':_0x43c454});}async[_0x29c6a6(0x440)](_0x30699c){const _0x14694f=_0x29c6a6;let _0x38ca93=0x0;const _0x5cd6a8=await this[_0x14694f(0x1ec)][_0x14694f(0x3bd)](_0x30699c);return _0x5cd6a8&&(_0x5cd6a8[_0x14694f(0x2e6)]||_0x5cd6a8[_0x14694f(0x365)][_0x14694f(0x431)]!==0x0)&&(_0x38ca93=_0x5cd6a8['rev']),_0x38ca93===0x0&&this[_0x14694f(0x214)][_0x14694f(0x363)](_0x14694f(0x40b),_0x14694f(0x3a0)),this[_0x14694f(0x1be)][_0x14694f(0x220)](_0x30699c,_0x38ca93);}async[_0x29c6a6(0x248)](_0x125e58){const _0x36812d=_0x29c6a6;let _0xcdbc7f=0x0;const _0x38db3f=await this[_0x36812d(0x1ec)]['loadOfflineData'](_0x125e58);return _0x38db3f&&(_0x38db3f[_0x36812d(0x2e6)]||_0x38db3f['mutations'][_0x36812d(0x431)]!==0x0)&&(_0xcdbc7f=_0x38db3f[_0x36812d(0x4e5)]),_0xcdbc7f===0x0&&this[_0x36812d(0x214)][_0x36812d(0x363)](_0x36812d(0x40b),_0x36812d(0x3a0)),this[_0x36812d(0x1be)]['loadDoc'](_0x125e58,_0xcdbc7f);}};He=yr([_0x2d1123(_0xb39fe5[_0x29c6a6(0x4bc)],He),ce(0x0,As),ce(0x1,_0x2125ae),ce(0x2,_0x594d06),ce(0x3,_0x558bc4(D)),ce(0x4,_0x558bc4(_0x17638f)),ce(0x5,_0x2cbf69(_0x4b3972))],He);var Ur=Object[_0x29c6a6(0x3f3)],Lr=Object[_0x29c6a6(0x48e)],$r=(_0x4c695f,_0x494e85,_0x30249a,_0x3e67b4)=>{for(var _0x395f44=_0x3e67b4>0x1?void 0x0:_0x3e67b4?Lr(_0x494e85,_0x30249a):_0x494e85,_0x29a838=_0x4c695f['length']-0x1,_0x4bb573;_0x29a838>=0x0;_0x29a838--)(_0x4bb573=_0x4c695f[_0x29a838])&&(_0x395f44=(_0x3e67b4?_0x4bb573(_0x494e85,_0x30249a,_0x395f44):_0x4bb573(_0x395f44))||_0x395f44);return _0x3e67b4&&_0x395f44&&Ur(_0x494e85,_0x30249a,_0x395f44),_0x395f44;},Qt=(_0x4cae49,_0x3c4d3a)=>(_0x5f4853,_0x4a807a)=>_0x3c4d3a(_0x5f4853,_0x4a807a,_0x4cae49);const jr=_0x29c6a6(0x1ea),Hr='Univer';let xe=class extends _0xc93720{constructor(_0x4735ba,_0xccdb3d){const _0xc6209f=_0x29c6a6;super(),this['_univerInstanceService']=_0x4735ba,this['_configService']=_0xccdb3d,this[_0xc6209f(0x26f)]();}['_init'](){const _0xb6974f=_0x29c6a6;this[_0xb6974f(0x1fb)](_0x359428(this['_univerInstanceService'][_0xb6974f(0x337)]['subscribe'](()=>{const _0x4a73e7=_0xb6974f;var _0x31960e;const _0x867d7a=this[_0x4a73e7(0x49b)][_0x4a73e7(0x2e1)]();let _0x2c889d=(_0x31960e=this['_configService']['getConfig'](jr))!=null?_0x31960e:Hr;_0x867d7a instanceof _0x9198e0&&(_0x2c889d=_0x867d7a[_0x4a73e7(0x47b)]),document['title']=_0x2c889d;})));}};xe=$r([_0x2d1123(_0xb39fe5[_0x29c6a6(0x1d0)],xe),Qt(0x0,_0x33e391),Qt(0x1,_0x575c32)],xe);var xr=Object['defineProperty'],Fr=Object[_0x29c6a6(0x48e)],Br=(_0x2a4680,_0x2b7b4c,_0x5753,_0x2dfb27)=>{for(var _0x3bc4e7=_0x2dfb27>0x1?void 0x0:_0x2dfb27?Fr(_0x2b7b4c,_0x5753):_0x2b7b4c,_0x20795e=_0x2a4680['length']-0x1,_0x5e1c62;_0x20795e>=0x0;_0x20795e--)(_0x5e1c62=_0x2a4680[_0x20795e])&&(_0x3bc4e7=(_0x2dfb27?_0x5e1c62(_0x2b7b4c,_0x5753,_0x3bc4e7):_0x5e1c62(_0x3bc4e7))||_0x3bc4e7);return _0x2dfb27&&_0x3bc4e7&&xr(_0x2b7b4c,_0x5753,_0x3bc4e7),_0x3bc4e7;},es=(_0x2c2bf2,_0xd50a0d)=>(_0x4d21a5,_0x3d62c1)=>_0xd50a0d(_0x4d21a5,_0x3d62c1,_0x2c2bf2);let St=class{constructor(_0x46dcea,_0x1da6f1){const _0x36b581=_0x29c6a6;this[_0x36b581(0x211)]=_0x46dcea,this[_0x36b581(0x208)]=_0x1da6f1;}async[_0x29c6a6(0x423)](_0x16edbf,_0x590875){const _0x2c6dd3=_0x29c6a6;var _0x378f72;const {unitID:_0x1343df,type:_0x44195c,revision:_0x159488=0x0}=_0x590875,_0x1bcbf3=this['_getSnapshotAPIPrefix']()+'/'+_0x44195c+_0x2c6dd3(0x4d7)+_0x1343df+_0x2c6dd3(0x432)+(_0x159488===0x1?0x0:_0x159488),_0x1f5fd5=(await this['_httpService'][_0x2c6dd3(0x362)](_0x1bcbf3))[_0x2c6dd3(0x4bf)],_0x448d2c=(_0x378f72=_0x1f5fd5['snapshot'])==null?void 0x0:_0x378f72[_0x2c6dd3(0x245)];if(_0x448d2c){const _0x5e1106=_0x448d2c==null?void 0x0:_0x448d2c[_0x2c6dd3(0x4d0)],_0x134cb8=_0x395f16[_0x2c6dd3(0x3f9)](_0x44581b(_0x5e1106));_0x448d2c['originalMeta']=_0x134cb8,Object[_0x2c6dd3(0x454)](_0x448d2c[_0x2c6dd3(0x47f)])[_0x2c6dd3(0x31b)](([,_0x5066e1])=>{const _0x14b79e=_0x2c6dd3,_0x49b61a=_0x5066e1[_0x14b79e(0x4d0)],_0x324e33=_0x395f16[_0x14b79e(0x3f9)](_0x44581b(_0x49b61a));_0x5066e1['originalMeta']=_0x324e33;});}return _0x1f5fd5;}async[_0x29c6a6(0x4ad)](_0x297966,_0x5a3f07){const _0x2951e4=_0x29c6a6,{unitID:_0x3db856,type:_0x397e6e,blockID:_0x591a3a}=_0x5a3f07,_0x1f6d3a=this[_0x2951e4(0x2a0)]()+'/'+_0x397e6e+_0x2951e4(0x4d7)+_0x3db856+'/block/'+_0x591a3a;return(await this[_0x2951e4(0x208)][_0x2951e4(0x362)](_0x1f6d3a))['body'];}async[_0x29c6a6(0x401)](_0x341673,_0x58312b){const _0x10c7ad=_0x29c6a6,{unitID:_0x4658af,type:_0x463238,from:_0x583a81,to:_0x5b4fc0}=_0x58312b,_0x193bf1=this[_0x10c7ad(0x2a0)]()+'/'+_0x463238+_0x10c7ad(0x4d7)+_0x4658af+_0x10c7ad(0x4b4)+_0x583a81+_0x10c7ad(0x1f2)+_0x5b4fc0;return(await this[_0x10c7ad(0x208)][_0x10c7ad(0x362)](_0x193bf1))[_0x10c7ad(0x4bf)];}[_0x29c6a6(0x217)](){const _0x57f42e=_0x29c6a6;var _0x3880a7;return(_0x3880a7=this[_0x57f42e(0x211)]['getConfig'](Ki))!=null?_0x3880a7:this[_0x57f42e(0x2a0)]();}[_0x29c6a6(0x2a0)](){const _0x215798=_0x29c6a6;var _0x2eabff;return(_0x2eabff=this[_0x215798(0x211)][_0x215798(0x29b)](Gi))!=null?_0x2eabff:Yi;}async[_0x29c6a6(0x24e)](_0x2faa07,_0x4a2129){const _0x1a5089=_0x29c6a6,_0x153430='/universer-api/snapshot/'+_0x4a2129[_0x1a5089(0x236)]+_0x1a5089(0x4d7)+_0x4a2129[_0x1a5089(0x1ca)]+'/resources';return(await this[_0x1a5089(0x208)]['get'](_0x153430,{'params':{'resourceId':JSON[_0x1a5089(0x376)](_0x4a2129['resourceIDs'])}}))['body'];}[_0x29c6a6(0x3e1)](){const _0xbc1d2c=_0x29c6a6;throw new Error(_0xbc1d2c(0x2e8));}['saveSheetBlock'](){const _0x94cd56=_0x29c6a6;throw new Error(_0x94cd56(0x2e8));}[_0x29c6a6(0x2e0)](){const _0x5d8928=_0x29c6a6;throw new Error(_0x5d8928(0x2e8));}};St=Br([es(0x0,_0x575c32),es(0x1,_0x558bc4(_0x180bd0))],St);var kr=Object['defineProperty'],Vr=Object['getOwnPropertyDescriptor'],Wr=(_0x4dada4,_0x22fc72,_0x334d24,_0x1df2cf)=>{const _0x4ce75a=_0x29c6a6;for(var _0x416d99=_0x1df2cf>0x1?void 0x0:_0x1df2cf?Vr(_0x22fc72,_0x334d24):_0x22fc72,_0x2a012d=_0x4dada4[_0x4ce75a(0x431)]-0x1,_0x6948df;_0x2a012d>=0x0;_0x2a012d--)(_0x6948df=_0x4dada4[_0x2a012d])&&(_0x416d99=(_0x1df2cf?_0x6948df(_0x22fc72,_0x334d24,_0x416d99):_0x6948df(_0x416d99))||_0x416d99);return _0x1df2cf&&_0x416d99&&kr(_0x22fc72,_0x334d24,_0x416d99),_0x416d99;},pe=(_0x583024,_0x3f8b0c)=>(_0x430057,_0x12ac22)=>_0x3f8b0c(_0x430057,_0x12ac22,_0x583024);let vt=class extends _0x59e73e{constructor(_0x445fad,_0x18df09,_0x2eb563,_0x106b10,_0x518b5c){const _0x44acdb=_0x29c6a6;super(_0x445fad,_0x18df09,_0x2eb563),this[_0x44acdb(0x367)]=_0x106b10,this['_logService']=_0x518b5c;}['transformUndoRedo'](_0x6c1671,_0xac36e5){const _0x14bb44=_0x29c6a6,_0x5a25f=this[_0x14bb44(0x358)](_0x6c1671);if(_0x5a25f)try{const _0x4bd8a8=this[_0x14bb44(0x323)](_0x5a25f,_0xac36e5);this[_0x14bb44(0x3dc)](_0x6c1671,_0x4bd8a8);}catch(_0x41b853){this[_0x14bb44(0x214)][_0x14bb44(0x35b)]('[CollaborationUndoRedoService]',_0x41b853),this[_0x14bb44(0x317)](_0x6c1671);}const _0x33e15b=this['_getRedoStack'](_0x6c1671);if(_0x33e15b)try{const _0x5470a2=this[_0x14bb44(0x323)](_0x33e15b,_0xac36e5);this[_0x14bb44(0x420)](_0x6c1671,_0x5470a2);}catch(_0xb5a3b5){this['_logService'][_0x14bb44(0x35b)](_0xb5a3b5),this['_clearRedo'](_0x6c1671);}}[_0x29c6a6(0x317)](_0x942e4f){const _0x578c39=_0x29c6a6,_0x161586=this[_0x578c39(0x358)](_0x942e4f);_0x161586&&(_0x161586[_0x578c39(0x431)]=0x0,this[_0x578c39(0x45a)]());}[_0x29c6a6(0x2fb)](_0x1887f7){const _0x38a0c4=_0x29c6a6,_0x465ee1=this[_0x38a0c4(0x38e)](_0x1887f7);_0x465ee1&&(_0x465ee1[_0x38a0c4(0x431)]=0x0,this[_0x38a0c4(0x45a)]());}[_0x29c6a6(0x3dc)](_0x2bb600,_0x390b73){const _0x7ece84=_0x29c6a6;this[_0x7ece84(0x2e2)][_0x7ece84(0x320)](_0x2bb600,_0x390b73),this['_updateStatus']();}['_substituteRedoStack'](_0x37f303,_0x4742f3){const _0x4cf935=_0x29c6a6;this[_0x4cf935(0x387)][_0x4cf935(0x320)](_0x37f303,_0x4742f3),this['_updateStatus']();}[_0x29c6a6(0x323)](_0x2c8636,_0x77128a){const _0x2e9be6=_0x29c6a6,_0xe370ea=[];let _0xb7c2ae=_0x77128a,_0x4edd56=_0x77128a;for(let _0x46496d=_0x2c8636['length']-0x1;_0x46496d>=0x0;_0x46496d--){const {unitID:_0x3f1566,undoMutations:_0x59aca3,redoMutations:_0x3ed1a5}=_0x2c8636[_0x46496d],_0x5a8fa3=this[_0x2e9be6(0x367)][_0x2e9be6(0x216)](_0xb7c2ae,_0x59aca3),_0x1361a2=this[_0x2e9be6(0x367)][_0x2e9be6(0x216)](_0x4edd56,_0x3ed1a5);if(_0x4703e4(_0x5a8fa3)||_0x4703e4(_0x1361a2)){this[_0x2e9be6(0x214)]['error'](_0x2e9be6(0x345),'transformStack\x20failed!',_0x5a8fa3,_0x1361a2);break;}_0xb7c2ae=_0x5a8fa3[_0x2e9be6(0x450)],_0x4edd56=_0x1361a2[_0x2e9be6(0x450)],_0xe370ea[_0x2e9be6(0x2f7)]({'unitID':_0x3f1566,'undoMutations':_0x5a8fa3[_0x2e9be6(0x297)],'redoMutations':_0x1361a2['m2Prime']});}return _0xe370ea['reverse']();}};vt=Wr([pe(0x0,_0x33e391),pe(0x1,_0x594d06),pe(0x2,_0x2d2798),pe(0x3,_0xd13d4c),pe(0x4,_0x2125ae)],vt);class Gr extends _0x39fd47{constructor(){const _0x4e0e1d=_0x29c6a6;super(),l(this,_0x4e0e1d(0x1e2)),this['urlChange$']=_0x68731a(window,_0x4e0e1d(0x2b6))['pipe'](_0x26437e(this[_0x4e0e1d(0x33a)]),_0x133b83(0x1),_0x4225bf(void 0x0));}['setParam'](_0x31d8f1,_0x1d69ec,_0x11e356=!0x1){const _0x3be5f8=_0x29c6a6,_0x2d862d=new URL(window[_0x3be5f8(0x333)][_0x3be5f8(0x1ee)]);_0x2d862d[_0x3be5f8(0x36c)][_0x3be5f8(0x320)](_0x31d8f1,_0x1d69ec),_0x11e356?window[_0x3be5f8(0x3e2)][_0x3be5f8(0x26d)]('','',_0x2d862d[_0x3be5f8(0x1d3)]()):window['history'][_0x3be5f8(0x35e)]('','',_0x2d862d[_0x3be5f8(0x1d3)]());}[_0x29c6a6(0x4b3)](_0x5a802e,_0x53034a=!0x1){const _0x1c64a3=_0x29c6a6,_0x16a5e3=new URL(window['location'][_0x1c64a3(0x1ee)]);_0x16a5e3[_0x1c64a3(0x36c)][_0x1c64a3(0x457)](_0x5a802e),_0x53034a?window[_0x1c64a3(0x3e2)][_0x1c64a3(0x26d)]('','',_0x16a5e3[_0x1c64a3(0x1d3)]()):window[_0x1c64a3(0x3e2)][_0x1c64a3(0x35e)]('','',_0x16a5e3['toString']());}[_0x29c6a6(0x2d4)](_0x1d8bef){const _0x22f00=_0x29c6a6;var _0x57af6d;return(_0x57af6d=new URL(window[_0x22f00(0x333)]['href'])[_0x22f00(0x36c)]['get'](_0x1d8bef))!=null?_0x57af6d:void 0x0;}}const nt=_0x29c6a6(0x473),Yr=_0x29c6a6(0x499),ye=0x6,Kr=1.5,rt=0x4,Xr=1.5,Jr='rgba(255,\x20255,\x20255,\x200.01)';class zr{constructor(_0x38b565,_0x486137,_0x1fd6aa,_0x208626){const _0x5995=_0x29c6a6;l(this,_0x5995(0x1cf),[]),l(this,_0x5995(0x45b),null),l(this,'_textBubble',null),l(this,'_anchorDot',null),l(this,_0x5995(0x225),null),l(this,_0x5995(0x259),null),(this[_0x5995(0x4a4)]=_0x38b565,this[_0x5995(0x4b2)]=_0x486137,this['_docSkeleton']=_0x1fd6aa,this[_0x5995(0x373)]=_0x208626,this[_0x5995(0x25b)]());}set['_hover'](_0x322ebf){const _0x5b6ae8=_0x29c6a6;_0x322ebf?(this[_0x5b6ae8(0x398)]&&this['_anchorDot'][_0x5b6ae8(0x2c0)](),this[_0x5b6ae8(0x4e4)]&&this[_0x5b6ae8(0x4e4)]['show']()):(this[_0x5b6ae8(0x398)]&&this[_0x5b6ae8(0x398)]['show'](),this['_textBubble']&&this[_0x5b6ae8(0x4e4)][_0x5b6ae8(0x2c0)]());}['dispose'](){const _0x112a01=_0x29c6a6;for(const _0x9a2fc1 of this['_shapes'])_0x9a2fc1[_0x112a01(0x378)]();this['_textBubble']&&this['_textBubble'][_0x112a01(0x378)](),this[_0x112a01(0x398)]&&this[_0x112a01(0x398)][_0x112a01(0x378)](),this['_anchor']&&this[_0x112a01(0x45b)][_0x112a01(0x378)](),this[_0x112a01(0x259)]&&this[_0x112a01(0x259)]();}[_0x29c6a6(0x25b)](){const _0x3b58ea=_0x29c6a6,{_docSkeleton:_0x4f5148,_document:_0x501176}=this,{color:_0x16ef61,name:_0x48aa9f,ranges:_0x5df7d4}=this[_0x3b58ea(0x4a4)],_0x232f3b=_0x501176[_0x3b58ea(0x452)](),{docsLeft:_0x50c7de,docsTop:_0x290e52}=_0x232f3b,_0x429108=new _0x473a03(_0x232f3b,_0x4f5148);for(const {startOffset:_0x186210,endOffset:_0x3a64d9,collapsed:_0x41911e,isActive:_0x672dd0}of _0x5df7d4){const _0x3fc87d=_0x4f5148['findNodePositionByCharIndex'](_0x186210),_0x5cab65=_0x4f5148[_0x3b58ea(0x34c)](_0x3a64d9);if(_0x672dd0){const {contentBoxPointGroup:_0x38abaa}=_0x429108[_0x3b58ea(0x49f)](_0x5cab65,_0x5cab65);if(_0x38abaa[_0x3b58ea(0x431)]===0x0)continue;this[_0x3b58ea(0x30e)](_0x16ef61,_0x38abaa,_0x50c7de,_0x290e52,_0x48aa9f),this['_eventUnsubscribe']=this[_0x3b58ea(0x43f)]();}if(!_0x41911e){const {contentBoxPointGroup:_0x5d7e0d}=_0x429108['getRangePointData'](_0x3fc87d,_0x5cab65);if(_0x5d7e0d[_0x3b58ea(0x431)]===0x0)continue;this[_0x3b58ea(0x3c5)](_0x16ef61,_0x5d7e0d,_0x50c7de,_0x290e52);}}}[_0x29c6a6(0x30e)](_0x187a6b,_0x4e4e0b,_0x42cd8c,_0x336342,_0x313e0f){const _0x4b57e9=_0x29c6a6,_0x2897e4=this[_0x4b57e9(0x4c2)](_0x4e4e0b),{left:_0x4d70cb,top:_0x1d314f,height:_0x3bf6d1}=_0x2897e4,_0x18e95f=this['_getScale'](),_0x4116bb=Xr/_0x18e95f,_0x3cd76f=new _0x274a4d(nt+_0x1394f4[_0x4b57e9(0x41e)](ye),{'left':_0x4d70cb+_0x42cd8c-_0x4116bb,'top':_0x1d314f+_0x336342,'height':_0x3bf6d1,'width':Kr,'fill':_0x187a6b||_0x960864(_0x82bf70[_0x4b57e9(0x39b)],0x0),'strokeWidth':_0x4116bb,'stroke':Jr,'evented':!0x0});this['_anchor']=_0x3cd76f,this[_0x4b57e9(0x4b2)][_0x4b57e9(0x446)](_0x3cd76f,_0x3d5abd);const _0x1d8bbf=new _0x274a4d(nt+_0x1394f4['generateRandomId'](ye),{'left':_0x4d70cb+_0x42cd8c-_0x4116bb,'top':_0x1d314f+_0x336342-rt/0x2,'height':rt,'width':rt,'fill':_0x187a6b||_0x960864(_0x82bf70[_0x4b57e9(0x39b)],0x0),'strokeWidth':0x0,'stroke':_0x187a6b||_0x960864(_0x82bf70[_0x4b57e9(0x39b)],0x0),'evented':!0x1});this[_0x4b57e9(0x398)]=_0x1d8bbf,this[_0x4b57e9(0x4b2)][_0x4b57e9(0x446)](_0x1d8bbf,_0x3d5abd);const _0x3a0079=new ze(nt+_0x1394f4[_0x4b57e9(0x41e)](ye),{'left':_0x4d70cb+_0x42cd8c-_0x4116bb,'top':_0x1d314f+_0x336342-Oe,'text':_0x313e0f,'color':_0x187a6b});this['_textBubble']=_0x3a0079,this['_scene']['addObject'](_0x3a0079,_0x3d5abd),this['_hover']=!0x1;}[_0x29c6a6(0x43f)](){const _0x2b313f=_0x29c6a6,_0x2bf0fe=this[_0x2b313f(0x45b)]['onPointerEnter$'][_0x2b313f(0x4af)](()=>{const _0x502dc2=_0x2b313f;this[_0x502dc2(0x2c7)]=!0x0;}),_0x1d3091=this['_anchor'][_0x2b313f(0x331)][_0x2b313f(0x4af)](()=>{const _0x539dc6=_0x2b313f;this[_0x539dc6(0x225)]&&clearTimeout(this[_0x539dc6(0x225)]),this['_hideTimer']=setTimeout(()=>{const _0x40b99e=_0x539dc6;this[_0x40b99e(0x2c7)]=!0x1;},0x7d0);});return()=>{_0x2bf0fe['unsubscribe'](),_0x1d3091['unsubscribe']();};}[_0x29c6a6(0x3c5)](_0x36cb31,_0x19d44b,_0x328730,_0x3c854f){const _0x4f49a3=_0x29c6a6,_0x50faf6=new _0x323ad1(_0x36cb31)['setAlpha'](0.2)['toRgbString'](),_0x9c8988=new _0xba4fd4(Yr+_0x1394f4[_0x4f49a3(0x41e)](ye),{'pointsGroup':_0x19d44b,'fill':_0x50faf6||_0x960864(_0x82bf70[_0x4f49a3(0x39b)],0.2),'left':_0x328730,'top':_0x3c854f,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4f49a3(0x1cf)][_0x4f49a3(0x2f7)](_0x9c8988),this[_0x4f49a3(0x4b2)][_0x4f49a3(0x446)](_0x9c8988,_0x3d5abd);}[_0x29c6a6(0x4c2)](_0x69178d){const _0x5065e7=_0x69178d[0x0],_0x541674=_0x5065e7[0x0],_0x35d03a=_0x5065e7[0x2],{x:_0x31e8f0,y:_0x43c232}=_0x541674,{x:_0x356d73,y:_0x2a9cec}=_0x35d03a;return{'left':_0x31e8f0,'top':_0x43c232,'width':_0x356d73-_0x31e8f0,'height':_0x2a9cec-_0x43c232};}[_0x29c6a6(0x2e4)](){const _0x3db1a9=_0x29c6a6,{scaleX:_0x4c33e4,scaleY:_0x5b6055}=this[_0x3db1a9(0x4b2)][_0x3db1a9(0x244)]();return Math[_0x3db1a9(0x28a)](_0x4c33e4,_0x5b6055);}}var Zr=Object['defineProperty'],qr=Object[_0x29c6a6(0x48e)],Qr=(_0x389e69,_0x514b1a,_0x37cf0f,_0x30bea6)=>{const _0x436862=_0x29c6a6;for(var _0x4c3af5=_0x30bea6>0x1?void 0x0:_0x30bea6?qr(_0x514b1a,_0x37cf0f):_0x514b1a,_0x35df19=_0x389e69[_0x436862(0x431)]-0x1,_0x1b057c;_0x35df19>=0x0;_0x35df19--)(_0x1b057c=_0x389e69[_0x35df19])&&(_0x4c3af5=(_0x30bea6?_0x1b057c(_0x514b1a,_0x37cf0f,_0x4c3af5):_0x1b057c(_0x4c3af5))||_0x4c3af5);return _0x30bea6&&_0x4c3af5&&Zr(_0x514b1a,_0x37cf0f,_0x4c3af5),_0x4c3af5;},Ie=(_0x1d4902,_0x1c3ded)=>(_0x4a9ccf,_0x557d32)=>_0x1c3ded(_0x4a9ccf,_0x557d32,_0x1d4902);let Fe=class extends _0x39fd47{constructor(_0x5186aa,_0x2356c1,_0x459613,_0x30770a,_0x223c9a){const _0x287419=_0x29c6a6;super(),l(this,_0x287419(0x466),[]),(this[_0x287419(0x2bf)]=_0x5186aa,this[_0x287419(0x49b)]=_0x2356c1,this[_0x287419(0x3d3)]=_0x459613,this[_0x287419(0x4c3)]=_0x30770a,this[_0x287419(0x44e)]=_0x223c9a,this[_0x287419(0x26f)]());}['_init'](){const _0x35ed85=_0x29c6a6;this[_0x35ed85(0x4c3)][_0x35ed85(0x3d0)][_0x35ed85(0x4dc)](_0x380119(this[_0x35ed85(0x33a)]),_0x5e300c(_0x196a61=>{const _0x58d2b2=_0x35ed85;if(_0x196a61){const _0xde4e6f=_0x196a61['getViewModel']()[_0x58d2b2(0x1bc)]()[_0x58d2b2(0x38d)]();return _0x45bbb6(this['_collabCursorController'][_0x58d2b2(0x1ed)](_0xde4e6f),this[_0x58d2b2(0x44e)]['currentTheme$'])[_0x58d2b2(0x4dc)](_0x6aec6c(([_0x3ec8ec,_0x33a280])=>({'skeleton':_0x196a61,'cursors':[..._0x3ec8ec[_0x58d2b2(0x250)]()][_0x58d2b2(0x422)](_0x10a5aa=>({..._0x10a5aa,'color':_0x33a280[_0x10a5aa[_0x58d2b2(0x241)]]}))})));}return _0x41c67f({'skeleton':null,'cursors':[]});}))['subscribe'](({skeleton:_0x5091c6,cursors:_0x226b51})=>{this['_removeCollabCursors'](),_0x5091c6&&this['_updateCollabCursors'](_0x5091c6,_0x226b51);});}['_updateCollabCursors'](_0x56624e,_0x233831){const _0x24e525=_0x29c6a6,_0x27ac15=this[_0x24e525(0x41a)]();if(_0x27ac15==null)return;const {scene:_0x69b85c,document:_0x55009d}=_0x27ac15,_0x48cec1=_0x233831[_0x24e525(0x1f9)](_0x56e002=>new zr(_0x56e002,_0x69b85c,_0x56624e,_0x55009d));this[_0x24e525(0x466)]=_0x48cec1;}['_removeCollabCursors'](){const _0x1dd880=_0x29c6a6;this[_0x1dd880(0x466)][_0x1dd880(0x31b)](_0x53bae4=>_0x53bae4['dispose']()),this[_0x1dd880(0x466)]=[];}[_0x29c6a6(0x41a)](){const _0x4afa60=_0x29c6a6;return _0xfcb5c7(this['_univerInstanceService'],this[_0x4afa60(0x3d3)]);}};Fe=Qr([_0x2d1123(_0xb39fe5['Steady'],Fe),Ie(0x0,_0x558bc4(ue)),Ie(0x1,_0x33e391),Ie(0x2,_0x3bdd8b),Ie(0x3,_0x558bc4(_0x5e1842)),Ie(0x4,_0x558bc4(_0x474371))],Fe);var eo=Object['defineProperty'],to=Object[_0x29c6a6(0x48e)],so=(_0x3e26cb,_0xd48107,_0x2a4631,_0x563a33)=>{const _0x2e8111=_0x29c6a6;for(var _0x16c3e3=_0x563a33>0x1?void 0x0:_0x563a33?to(_0xd48107,_0x2a4631):_0xd48107,_0x3cd9ae=_0x3e26cb[_0x2e8111(0x431)]-0x1,_0x2b86aa;_0x3cd9ae>=0x0;_0x3cd9ae--)(_0x2b86aa=_0x3e26cb[_0x3cd9ae])&&(_0x16c3e3=(_0x563a33?_0x2b86aa(_0xd48107,_0x2a4631,_0x16c3e3):_0x2b86aa(_0x16c3e3))||_0x16c3e3);return _0x563a33&&_0x16c3e3&&eo(_0xd48107,_0x2a4631,_0x16c3e3),_0x16c3e3;},ot=(_0x385ab4,_0x4fd24b)=>(_0x8bc8d8,_0x548897)=>_0x4fd24b(_0x8bc8d8,_0x548897,_0x385ab4);let Ge=class{constructor(_0x1e4098,_0x6cc07c,_0x120aee){const _0x2b022e=_0x29c6a6;this[_0x2b022e(0x211)]=_0x1e4098,this[_0x2b022e(0x208)]=_0x6cc07c,this[_0x2b022e(0x28e)]=_0x120aee,this[_0x2b022e(0x23e)]();}['init'](){const _0x205a50=_0x29c6a6;this[_0x205a50(0x208)][_0x205a50(0x3ab)]({'priority':0x1,'interceptor':(_0x4cd5f8,_0x2b75c0)=>_0x2b75c0(_0x4cd5f8)[_0x205a50(0x4dc)](_0x3efc49(async _0xb61e39=>{const _0x31b594=_0x205a50,_0x1a4c39=_0xb61e39;if(_0x1a4c39[_0x31b594(0x3ea)]===0x191&&window[_0x31b594(0x27e)](this[_0x31b594(0x28e)]['t'](_0x31b594(0x24a)))){const _0x2d2a46=window[_0x31b594(0x2bd)](window['location'][_0x31b594(0x1ee)]);window[_0x31b594(0x333)][_0x31b594(0x1ee)]=this[_0x31b594(0x4b7)]()+_0x31b594(0x419)+_0x2d2a46;}return _0x1a4c39;}))});}[_0x29c6a6(0x4b7)](){const _0x387a59=_0x29c6a6;var _0x16073f;return(_0x16073f=this[_0x387a59(0x211)][_0x387a59(0x29b)](hn))!=null?_0x16073f:ln;}};Ge=so([ot(0x0,_0x575c32),ot(0x1,_0x558bc4(_0x180bd0)),ot(0x2,_0x558bc4(_0x2f64f))],Ge);var io=Object[_0x29c6a6(0x3f3)],no=Object[_0x29c6a6(0x48e)],ro=(_0x247c1d,_0x3d7751,_0x3220ad,_0x3d9b50)=>{const _0x139491=_0x29c6a6;for(var _0xada200=_0x3d9b50>0x1?void 0x0:_0x3d9b50?no(_0x3d7751,_0x3220ad):_0x3d7751,_0x1a871d=_0x247c1d[_0x139491(0x431)]-0x1,_0x5024c2;_0x1a871d>=0x0;_0x1a871d--)(_0x5024c2=_0x247c1d[_0x1a871d])&&(_0xada200=(_0x3d9b50?_0x5024c2(_0x3d7751,_0x3220ad,_0xada200):_0x5024c2(_0xada200))||_0xada200);return _0x3d9b50&&_0xada200&&io(_0x3d7751,_0x3220ad,_0xada200),_0xada200;},ts=(_0x22d851,_0x433791)=>(_0x263911,_0x4e85e0)=>_0x433791(_0x263911,_0x4e85e0,_0x22d851);const oo=_0x29c6a6(0x430),ao=_0x29c6a6(0x3e6);let pt=class{constructor(_0x515a7e,_0x21a138){const _0x7fd4ca=_0x29c6a6;this[_0x7fd4ca(0x252)]=_0x515a7e,this[_0x7fd4ca(0x211)]=_0x21a138;}['_getAPIPrefixPath'](){const _0x4d26e4=_0x29c6a6;var _0x143662;return(_0x143662=this[_0x4d26e4(0x211)][_0x4d26e4(0x29b)](oo))!=null?_0x143662:ao;}async[_0x29c6a6(0x326)](_0x490b66){const _0x5843d7=_0x29c6a6,_0x19e4c4=this['_getAPIPrefixPath']()+'/'+_0x490b66[_0x5843d7(0x2fe)]+_0x5843d7(0x429);return(await this[_0x5843d7(0x252)][_0x5843d7(0x243)](_0x19e4c4,{'body':_0x490b66}))['body'][_0x5843d7(0x215)]||'';}async[_0x29c6a6(0x261)](_0x2f6046){const _0x529866=_0x29c6a6,_0x17abce=this['_getAPIPrefixPath']()+_0x529866(0x2a6);return(await this['_HTTPService'][_0x529866(0x243)](_0x17abce,{'body':_0x2f6046}))[_0x529866(0x4bf)][_0x529866(0x40e)];}async['update'](_0x336f89){const _0xb56b2b=_0x29c6a6,_0x230fe=this[_0xb56b2b(0x2c9)]()+'/'+_0x336f89[_0xb56b2b(0x2fe)]+_0xb56b2b(0x210)+_0x336f89[_0xb56b2b(0x215)];await this[_0xb56b2b(0x252)][_0xb56b2b(0x290)](_0x230fe,{'body':_0x336f89});}async[_0x29c6a6(0x35f)](_0x5924e0){const _0xfe8c51=_0x29c6a6,_0xb49cc4=this['_getAPIPrefixPath']()+'/'+_0x5924e0[_0xfe8c51(0x2fe)]+_0xfe8c51(0x210)+_0x5924e0['objectID']+'/allowed';return(await this['_HTTPService'][_0xfe8c51(0x243)](_0xb49cc4,{'body':_0x5924e0}))[_0xfe8c51(0x4bf)][_0xfe8c51(0x27c)];}async[_0x29c6a6(0x4a5)](_0x50feb2){const _0x5cd379=_0x29c6a6,_0x137763=this['_getAPIPrefixPath']()+_0x5cd379(0x442);return(await this['_HTTPService'][_0x5cd379(0x243)](_0x137763,{'body':{'requests':_0x50feb2}}))[_0x5cd379(0x4bf)]['objectActions'];}async[_0x29c6a6(0x2b9)](_0xc348f){const _0x2fef70=_0x29c6a6,_0x26792a=this[_0x2fef70(0x2c9)]()+'/'+_0xc348f[_0x2fef70(0x2fe)]+'/role',_0x200152=await this[_0x2fef70(0x252)]['post'](_0x26792a,{'body':_0xc348f});return{'roles':_0x200152[_0x2fef70(0x4bf)][_0x2fef70(0x2d3)],'actions':_0x200152[_0x2fef70(0x4bf)][_0x2fef70(0x27c)]};}async[_0x29c6a6(0x24b)](_0xf5d11b){const _0x2508bd=_0x29c6a6,_0x115bf9=this['_getAPIPrefixPath']()+_0x2508bd(0x4a7);await this['_HTTPService'][_0x2508bd(0x457)](_0x115bf9,{'params':{'collaboratorID':_0xf5d11b[_0x2508bd(0x393)],'objectID':_0xf5d11b[_0x2508bd(0x215)],'unitID':_0xf5d11b['unitID']}});}async[_0x29c6a6(0x34f)](_0x173494){const _0x252952=_0x29c6a6,_0x1c85eb=this[_0x252952(0x2c9)]()+'/collaborator';await this[_0x252952(0x252)][_0x252952(0x33b)](_0x1c85eb,{'body':_0x173494});}async[_0x29c6a6(0x3c3)](_0x44dff0){const _0x517f94=_0x29c6a6,_0xf4d1df=this['_getAPIPrefixPath']()+_0x517f94(0x4a7);await this['_HTTPService'][_0x517f94(0x243)](_0xf4d1df,{'body':_0x44dff0});}async['listCollaborators'](_0x3158cd){const _0x382f45=_0x29c6a6,_0x13db1e=this[_0x382f45(0x2c9)]()+'/collaborator';return(await this[_0x382f45(0x252)][_0x382f45(0x362)](_0x13db1e,{'params':{'objectID':_0x3158cd[_0x382f45(0x215)],'unitID':_0x3158cd[_0x382f45(0x1ca)]}}))[_0x382f45(0x4bf)]['collaborators'];}async[_0x29c6a6(0x1c0)](_0x468132){const _0x2147dd=_0x29c6a6,_0x369b0a=this['_getAPIPrefixPath']()+_0x2147dd(0x4a7);await this['_HTTPService'][_0x2147dd(0x290)](_0x369b0a,{'body':_0x468132});}};pt=ro([ts(0x0,_0x558bc4(_0x180bd0)),ts(0x1,_0x558bc4(_0x575c32))],pt);var co=Object[_0x29c6a6(0x3f3)],ho=Object[_0x29c6a6(0x48e)],lo=(_0x16d07a,_0x28602b,_0x472d27,_0x1d599d)=>{const _0x22f6a7=_0x29c6a6;for(var _0x272e00=_0x1d599d>0x1?void 0x0:_0x1d599d?ho(_0x28602b,_0x472d27):_0x28602b,_0x2abf54=_0x16d07a[_0x22f6a7(0x431)]-0x1,_0x5b5c34;_0x2abf54>=0x0;_0x2abf54--)(_0x5b5c34=_0x16d07a[_0x2abf54])&&(_0x272e00=(_0x1d599d?_0x5b5c34(_0x28602b,_0x472d27,_0x272e00):_0x5b5c34(_0x272e00))||_0x272e00);return _0x1d599d&&_0x272e00&&co(_0x28602b,_0x472d27,_0x272e00),_0x272e00;},ss=(_0x397b10,_0x540bb3)=>(_0x45a38b,_0x1a457d)=>_0x540bb3(_0x45a38b,_0x1a457d,_0x397b10);const _o=['image/png',_0x29c6a6(0x306),_0x29c6a6(0x45e),_0x29c6a6(0x41b),_0x29c6a6(0x3d1)],uo=0x5*0x400*0x400,fo=_0x29c6a6(0x392),go=_0x29c6a6(0x2a5),mo=_0x29c6a6(0x20c),So='/universer-api/file/{fileID}/sign-url';let It=class{constructor(_0x2038b3,_0x1007b8){const _0x3534ae=_0x29c6a6;l(this,'_waitCount',0x0),l(this,_0x3534ae(0x3df),new _0x2ef673()),l(this,_0x3534ae(0x381),this[_0x3534ae(0x3df)]),l(this,_0x3534ae(0x3bb),new Map()),(this[_0x3534ae(0x208)]=_0x2038b3,this['_configService']=_0x1007b8);}[_0x29c6a6(0x2d1)](_0x519f04){const _0x4a4966=_0x29c6a6;this[_0x4a4966(0x366)]=_0x519f04,this[_0x4a4966(0x3df)][_0x4a4966(0x3af)](_0x519f04);}[_0x29c6a6(0x39e)](_0x55bab5,_0x49b26a){const _0x283d83=_0x29c6a6;if(_0x49b26a===_0x23f70d['BASE64']){const _0x48a8e0=new Image();return _0x48a8e0['src']=_0x55bab5,_0x48a8e0;}return this['_imageSourceCache'][_0x283d83(0x362)](_0x55bab5);}[_0x29c6a6(0x247)](_0x3ee91e,_0x53299b,_0x3a9d47){const _0x2453c3=_0x29c6a6;_0x53299b===_0x23f70d[_0x2453c3(0x2af)]||_0x3a9d47==null||this[_0x2453c3(0x3bb)][_0x2453c3(0x320)](_0x3ee91e,_0x3a9d47);}async[_0x29c6a6(0x3cc)](_0x415b92){const _0x5b59ea=_0x29c6a6;try{const _0x474cd1=this[_0x5b59ea(0x21a)](this['_getSignURL'](),''+_0x415b92),_0x4c7424=(await this[_0x5b59ea(0x208)][_0x5b59ea(0x362)](_0x474cd1))[_0x5b59ea(0x4bf)];return _0x4c7424[_0x5b59ea(0x35b)]&&_0x4c7424[_0x5b59ea(0x35b)][_0x5b59ea(0x23a)]===Cs['OK']?Promise['resolve'](_0x4c7424[_0x5b59ea(0x395)]):Promise[_0x5b59ea(0x3a4)](_0x4c7424['error']);}catch(_0x24aece){return Promise[_0x5b59ea(0x3a4)](_0x24aece);}}async[_0x29c6a6(0x49d)](_0x505358){const _0x41dd5b=_0x29c6a6;let _0x9f08c5='';if(!_o[_0x41dd5b(0x21b)](_0x505358[_0x41dd5b(0x236)]))return this[_0x41dd5b(0x1eb)](),Promise['reject'](new Error(_0x2808dd[_0x41dd5b(0x279)]));if(_0x505358[_0x41dd5b(0x4a2)]>uo)return this['_decreaseWaiting'](),Promise[_0x41dd5b(0x3a4)](new Error(_0x2808dd[_0x41dd5b(0x2cf)]));try{const _0x3da462=new FormData();_0x3da462[_0x41dd5b(0x384)](_0x41dd5b(0x301),_0x505358);const _0xc8aaa1=this[_0x41dd5b(0x313)]()+_0x41dd5b(0x3be)+_0x505358[_0x41dd5b(0x4a2)][_0x41dd5b(0x1d3)](),_0x485579=await(await fetch(_0xc8aaa1,{'method':'POST','body':_0x3da462}))[_0x41dd5b(0x40c)]();if(typeof _0x485579[_0x41dd5b(0x2cd)]!='string')return this[_0x41dd5b(0x1eb)](),Promise[_0x41dd5b(0x3a4)](new Error(_0x2808dd['ERROR_IMAGE']));_0x9f08c5=_0x485579[_0x41dd5b(0x2cd)];}catch{return this[_0x41dd5b(0x1eb)](),Promise['reject'](new Error(_0x2808dd[_0x41dd5b(0x356)]));}return new Promise((_0x541490,_0x34d652)=>{const _0x1ba6a5=_0x41dd5b,_0x54aa7b=new FileReader();_0x54aa7b[_0x1ba6a5(0x1dd)](_0x505358),_0x54aa7b[_0x1ba6a5(0x226)]=_0x991bd1=>{const _0x58431e=_0x1ba6a5;var _0x6a7e1a;const _0x5622ed=(_0x6a7e1a=_0x991bd1['target'])==null?void 0x0:_0x6a7e1a['result'];if(_0x5622ed==null){this[_0x58431e(0x1eb)](),_0x34d652(new Error(_0x2808dd[_0x58431e(0x356)]));return;}const _0x2ccaaa=_0x1394f4['generateRandomId'](0x6);_0x541490({'imageId':_0x2ccaaa,'imageSourceType':_0x23f70d[_0x58431e(0x476)],'source':_0x9f08c5,'base64Cache':_0x5622ed,'status':_0x2808dd['SUCCUSS']}),this['_decreaseWaiting']();};});}['_getUploadFileURL'](){const _0x40f9ed=_0x29c6a6;var _0x26f345;return(_0x26f345=this[_0x40f9ed(0x211)]['getConfig'](fo))!=null?_0x26f345:go;}[_0x29c6a6(0x24c)](){const _0x1dbd7b=_0x29c6a6;var _0x4aa89;return(_0x4aa89=this[_0x1dbd7b(0x211)][_0x1dbd7b(0x29b)](mo))!=null?_0x4aa89:So;}[_0x29c6a6(0x21a)](_0x426ad2,_0x4d6338){const _0x350549=_0x29c6a6;return _0x426ad2[_0x350549(0x32e)](_0x350549(0x2a4),_0x4d6338);}[_0x29c6a6(0x1eb)](){const _0x5c4ced=_0x29c6a6;this['_waitCount']-=0x1,this[_0x5c4ced(0x3df)]['next'](this[_0x5c4ced(0x366)]);}};It=lo([ss(0x0,_0x558bc4(_0x180bd0)),ss(0x1,_0x575c32)],It);var ys=Object[_0x29c6a6(0x3f3)],vo=Object['getOwnPropertyDescriptor'],po=(_0x3aba43,_0xa1bf5a,_0x25cdae)=>_0xa1bf5a in _0x3aba43?ys(_0x3aba43,_0xa1bf5a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x25cdae}):_0x3aba43[_0xa1bf5a]=_0x25cdae,Io=(_0x45746a,_0x4e9349,_0x35eb7c,_0x43cc0a)=>{for(var _0x91453a=_0x43cc0a>0x1?void 0x0:_0x43cc0a?vo(_0x4e9349,_0x35eb7c):_0x4e9349,_0x4f4de2=_0x45746a['length']-0x1,_0x4e3870;_0x4f4de2>=0x0;_0x4f4de2--)(_0x4e3870=_0x45746a[_0x4f4de2])&&(_0x91453a=(_0x43cc0a?_0x4e3870(_0x4e9349,_0x35eb7c,_0x91453a):_0x4e3870(_0x91453a))||_0x91453a);return _0x43cc0a&&_0x91453a&&ys(_0x4e9349,_0x35eb7c,_0x91453a),_0x91453a;},is=(_0x40d33e,_0x1ecf61)=>(_0x4a7852,_0x20b0f8)=>_0x1ecf61(_0x4a7852,_0x20b0f8,_0x40d33e),Eo=(_0x882d07,_0x3a6dc3,_0x2b25e6)=>po(_0x882d07,_0x3a6dc3+'',_0x2b25e6);const Co=_0x29c6a6(0x341);let Et=class extends _0x353e3b{constructor(_0x1f1614,_0x41bce4,_0x48b2d4){const _0x1f7605=_0x29c6a6;super(),this['_config']=_0x1f1614,this['_logService']=_0x41bce4,this[_0x1f7605(0x31f)]=_0x48b2d4;}[_0x29c6a6(0x47c)](_0x584475){const _0x2a3f87=_0x29c6a6;var _0x6da73f,_0xb38985,_0x22b18b,_0x1035ec,_0x38cb8c;_0x584475[_0x2a3f87(0x46f)](_0x58b491)&&this[_0x2a3f87(0x214)][_0x2a3f87(0x35b)]('[UniverCollaborationClientPlugin]',_0x2a3f87(0x2f4));let _0x403d76=[[_0x58b491,{'useClass':vt}],[Re],[At],[_0x180bd0],[As,{'useClass':Gr}],[ee],[D],[_0x1ee783],[Ve],[ke],[Be],[Mt],[Ge],[Rs],[bs,{'useClass':(_0xb38985=(_0x6da73f=this[_0x2a3f87(0x3f1)])==null?void 0x0:_0x6da73f[_0x2a3f87(0x33e)])!=null?_0xb38985:_t}],[_0xb8d666,{'useClass':_0x3c390c}],[_0x2e217d,{'useClass':St}],[_0x2f8250,{'useClass':pt}],[_0x2325f4,{'useClass':It}],[Ee],[He],[je],[xe],[ue]];(_0x22b18b=this[_0x2a3f87(0x3f1)])!=null&&_0x22b18b[_0x2a3f87(0x4b9)]&&_0x403d76['push']([Xe,{'useClass':On}]),((_0x1035ec=this[_0x2a3f87(0x3f1)])==null?void 0x0:_0x1035ec[_0x2a3f87(0x2ec)])==null||this[_0x2a3f87(0x3f1)][_0x2a3f87(0x2ec)]['includes'](_0x17600d[_0x2a3f87(0x3b4)])?_0x403d76[_0x2a3f87(0x2f7)]([$e]):this[_0x2a3f87(0x3f1)][_0x2a3f87(0x2ec)]['includes'](_0x17600d[_0x2a3f87(0x3f2)])&&_0x403d76[_0x2a3f87(0x2f7)]([Fe]),_0x403d76=_0x55370c(_0x403d76,(_0x38cb8c=this[_0x2a3f87(0x3f1)])==null?void 0x0:_0x38cb8c[_0x2a3f87(0x3fc)]),_0x403d76[_0x2a3f87(0x31b)](_0x4c48ac=>_0x584475[_0x2a3f87(0x497)](_0x4c48ac)),_0x584475[_0x2a3f87(0x362)](_0x180bd0)['registerHTTPInterceptor']({'priority':0x14,'interceptor':_0x19e0db({'maxParallel':0x6})}),this['_initModules']();}[_0x29c6a6(0x459)](){const _0x33c440=_0x29c6a6;var _0x3996e2,_0x1001e3;(_0x3996e2=this[_0x33c440(0x3f1)])!=null&&_0x3996e2[_0x33c440(0x3c2)]||this[_0x33c440(0x31f)][_0x33c440(0x362)](D)['disableLocalCache'](),(_0x1001e3=this[_0x33c440(0x3f1)])!=null&&_0x1001e3[_0x33c440(0x1fe)]&&this['_injector']['get'](Ge);}};function _0x34fd(_0x3f7695,_0x5f4b29){const _0x438e10=_0x438e();return _0x34fd=function(_0x34fdc7,_0x77adf){_0x34fdc7=_0x34fdc7-0x1b9;let _0x5416e2=_0x438e10[_0x34fdc7];return _0x5416e2;},_0x34fd(_0x3f7695,_0x5f4b29);}Eo(Et,'pluginName',Co),Et=Io([_0x578ae7(_0x8aafa7),is(0x1,_0x2125ae),is(0x2,_0x558bc4(_0x4ead3f))],Et);export{oo as AUTHZ_URL_KEY,pt as AuthzIoHttpService,an as COLLAB_SUBMIT_CHANGESET_URL_KEY,zi as COLLAB_WEB_SOCKET_URL_KEY,Ee as CollaborationController,ut as CollaborationSession,Re as CollaborationSessionService,_t as CollaborationSocketService,P as CollaborationStatus,Or as CollaborationStatusDisplay,Rs as CommentService,He as DataLoaderController,je as DesktopCollaborationStatusDisplayController,qi as HEARTBEAT_INTERVAL_KEY,Is as HEARTBEAT_TIMEOUT_KEY,bs as ICollaborationSocketService,As as IURLService,rn as LOCAL_CACHE_INTERVAL_KEY,hn as LOGIN_URL_KEY,D as LocalCacheService,Xi as SEND_CHANGESET_TIMEOUT_KEY,Gi as SNAPSHOT_SERVER_URL_KEY,Ki as SNAPSHOT_URL_KEY,_e as SessionStatus,Et as UniverCollaborationClientPlugin,Gr as WebURLService,gn as deserializeToCombResponse,mn as serializeCombRequest};
|