@univerjs-pro/collaboration-client-ui 0.10.14-nightly.202511070628 → 0.10.14-nightly.202511070640
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/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +15 -15
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x5724cd=_0x4324;(function(_0x38b829,_0x44d48b){const _0x4e98e5=_0x4324,_0x44961d=_0x38b829();while(!![]){try{const _0x4af66a=-parseInt(_0x4e98e5(0x2af))/0x1+parseInt(_0x4e98e5(0xef))/0x2*(-parseInt(_0x4e98e5(0x2b6))/0x3)+parseInt(_0x4e98e5(0x251))/0x4*(parseInt(_0x4e98e5(0xdc))/0x5)+-parseInt(_0x4e98e5(0x254))/0x6+-parseInt(_0x4e98e5(0x2f4))/0x7+-parseInt(_0x4e98e5(0x261))/0x8+parseInt(_0x4e98e5(0x238))/0x9*(parseInt(_0x4e98e5(0x265))/0xa);if(_0x4af66a===_0x44d48b)break;else _0x44961d['push'](_0x44961d['shift']());}catch(_0x337eae){_0x44961d['push'](_0x44961d['shift']());}}}(_0xc813,0x64321));var Ft=Object[_0x5724cd(0x125)],kt=(_0x17d3fc,_0x9da338,_0x18f896)=>_0x9da338 in _0x17d3fc?Ft(_0x17d3fc,_0x9da338,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x18f896}):_0x17d3fc[_0x9da338]=_0x18f896,l=(_0x2c2477,_0x43db81,_0x516c8a)=>kt(_0x2c2477,typeof _0x43db81!=_0x5724cd(0x16d)?_0x43db81+'':_0x43db81,_0x516c8a);import{jsx as _0x3ea50e,jsxs as _0x5fce33}from'react/jsx-runtime';import{CollaborationStatus as _0x50afaa,CollaborationSessionService as _0x2c15e3,CollaborationController as _0x18f9ba,DataLoaderService as _0x2c6881,MemberService as _0x1a6b56,SessionStatus as _0x452290,ILocalCacheService as _0x5b4070,CollaborationUIEventService as _0x5f0edf,CollaborationUIEventId as _0x1513c0,DocCollaborationEntity as _0x342039,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x32c484,getLocalCacheKey as _0xb1ea91,LOCAL_CACHE_INTERVAL as _0x283278,LOCAL_CACHE_INTERVAL_KEY as _0x23a142,UniverCollaborationClientPlugin as _0x21bbd3,CollaborationSocketService as _0x155bb6,DEFAULT_WS_SESSION_TICKET_URL as _0x392e41,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x1f66b6,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x4e25d6,UnitStatus as _0x509d02}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x234aab,IUniverInstanceService as _0x166a1e,Inject as _0x4db080,Injector as _0xca9a6f,Disposable as _0x2916da,createIdentifier as _0x5e1b6d,ILogService as _0x1edaba,ICommandService as _0x3d0367,Optional as _0x28a111,RxDisposable as _0x466553,Workbook as _0x2d40a7,DOC_RANGE_TYPE as _0x4bed57,debounce as _0x322732,Rectangle as _0x3fa0cb,DisposableCollection as _0x43401e,toDisposable as _0xc6be91,UniverInstanceType as _0x5483ba,generateRandomId as _0x46dcf5,COLORS as _0x675d83,ColorKit as _0x40a014,ThemeService as _0x571088,fromEventSubject as _0x57e071,Tools as _0x352d2a,CommandType as _0x393e92,IConfigService as _0xa43f31,CanceledError as _0x426e2a,isFormulaString as _0x444db3,isFormulaId as _0xaf5a34,ILocalStorageService as _0x5d62b5,DependentOn as _0x30d103,Plugin as _0x4c752d,merge as _0x21d242,registerDependencies as _0x4e8074,mergeOverrideWithDependencies as _0x6b7a83,touchDependencies as _0x19cfd9}from'@univerjs/core';import{useObservable as _0x4756b4,useDependency as _0x2bd7e4,IUIPartsService as _0x3ff3af,BuiltInUIPart as _0x1c67bd,connectInjector as _0x3aeb97,IBeforeCloseService as _0x578e72,IMessageService as _0x60d69d,INotificationService as _0x44eeb7}from'@univerjs/ui';import{BehaviorSubject as _0x29a5ca,switchMap as _0xa10b69,of as _0x2a30cc,takeUntil as _0x29d39,debounceTime as _0x19dce7,Subject as _0x303857,filter as _0x1d12b5,merge as _0x14f17d,combineLatest as _0x57e5ce,fromEvent as _0xba30,shareReplay as _0x44c2b3,mapTo as _0x3ab484,distinctUntilChanged as _0x5c79da}from'rxjs';import{Tooltip as _0x41ecc8,clsx as _0x386c2c,MessageType as _0x408d4f}from'@univerjs/design';import{useRef as _0x569e42,createElement as _0x3f82cd,forwardRef as _0x5dd539,useCallback as _0x73dded}from'react';import{IRemoteInstanceService as _0x30a3e3}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x49cac3,RefRangeService as _0x1006f2,SetSelectionsOperation as _0x38a87a,SheetsSelectionsService as _0x1edee4,EffectRefRangId as _0x5d6206,handleIRemoveRow as _0x46d1c8,handleIRemoveCol as _0xe874f5,handleMoveRange as _0x397e48,handleInsertRow as _0x2deae8,handleInsertRangeMoveRight as _0x45c5a6,handleInsertRangeMoveDown as _0x46e032,handleInsertCol as _0x167ad0,handleDeleteRangeMoveUp as _0x689337,handleDeleteRangeMoveLeft as _0x58c097,runRefRangeMutations as _0x2d0a41}from'@univerjs/sheets';import{Shape as _0x376f96,Rect as _0x5a4309,getColor as _0x4741e2,RegularPolygon as _0x11a369,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x1aaa34,Vector2 as _0x3be4b3,SHEET_VIEWPORT_KEY as _0x1e6b43,IRenderManagerService as _0x21229d}from'@univerjs/engine-render';import{HTTPService as _0x367dbf,ISocketService as _0x3c3284,WebSocketService as _0x36b239}from'@univerjs/network';import{IDocClipboardService as _0xbfc833,NodePositionConvertToCursor as _0x2118c1,NodePositionConvertToRectRange as _0x57a528,TEXT_RANGE_LAYER_INDEX as _0x3dd04b,SetDocZoomRatioOperation as _0x28c097,DocIMEInputManagerService as _0x15fd68,DocStateChangeManagerService as _0xf2cfc0}from'@univerjs/docs-ui';import{IImageIoService as _0x3b68ae}from'@univerjs/drawing';import{ITransformService as _0x4603fd,CollaborationEvent as _0x1c5ec5,isTransformMutationFailure as _0x48ab2e,isTransformMutationsWithChangesetSuccess as _0x11903c,RevisionService as _0x294c44,ISnapshotServerService as _0x5030fd}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x38bad8,RichTextEditingMutation as _0x1cf356,DocSelectionManagerService as _0x5a5e71,DocSkeletonManagerService as _0x33170f}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x428cf8,serializeRangeWithSheet as _0x25d8d1,FormulaExecuteStageType as _0x4cc043,FormulaExecutedStateType as _0x3cc8fe,SetFormulaCalculationStartMutation as _0x5f11a2,SetFormulaCalculationNotificationMutation as _0x3da7cf}from'@univerjs/engine-formula';import{map as _0x2ac750,filter as _0x23fe25,throttleTime as _0x51e9be,takeUntil as _0xd4923a,switchMap as _0x4b25bc}from'rxjs/operators';import{SheetSkeletonManagerService as _0x232217,getCoordByCell as _0x489060,getSheetObject as _0xcf58dc}from'@univerjs/sheets-ui';function Ve({ref:_0x1fe498,..._0x50f548}){const _0x36633a=_0x5724cd,{icon:_0x556d02,id:_0x5751c8,className:_0x390c61,extend:_0x2ba19f,..._0x3d6bf6}=_0x50f548,_0x46205c=(_0x36633a(0x1af)+_0x5751c8+'\x20'+(_0x390c61||''))[_0x36633a(0x2aa)](),_0x15d5e0=_0x569e42('_'+gi());return Ut(_0x556d02,''+_0x5751c8,{'defIds':_0x556d02[_0x36633a(0x1e0)],'idSuffix':_0x15d5e0[_0x36633a(0x131)]},{'ref':_0x1fe498,'className':_0x46205c,..._0x3d6bf6},_0x2ba19f);}function Ut(_0x5c58dd,_0x354688,_0x252197,_0x2f2e81,_0x173d22){const _0x103a6e=_0x5724cd;return _0x3f82cd(_0x5c58dd[_0x103a6e(0x14e)],{'key':_0x354688,...mi(_0x5c58dd,_0x252197,_0x173d22),..._0x2f2e81},(fi(_0x5c58dd,_0x252197)[_0x103a6e(0x1e6)]||[])[_0x103a6e(0x30d)]((_0x3e127a,_0x32be2d)=>Ut(_0x3e127a,_0x354688+'-'+_0x5c58dd[_0x103a6e(0x14e)]+'-'+_0x32be2d,_0x252197,void 0x0,_0x173d22)));}function mi(_0x54a6d5,_0x115e41,_0x5c1a6c){const _0x5d5d65=_0x5724cd,_0x1dbe88={..._0x54a6d5['attrs']};_0x5c1a6c!=null&&_0x5c1a6c['colorChannel1']&&_0x1dbe88['fill']==='colorChannel1'&&(_0x1dbe88['fill']=_0x5c1a6c[_0x5d5d65(0x101)]),_0x54a6d5[_0x5d5d65(0x14e)]===_0x5d5d65(0xe5)&&_0x1dbe88['id']&&(_0x1dbe88['id']=_0x1dbe88['id']+_0x115e41['idSuffix']),Object[_0x5d5d65(0x21d)](_0x1dbe88)[_0x5d5d65(0x1a5)](([_0x55f16f,_0x178120])=>{const _0x2631c9=_0x5d5d65;_0x55f16f===_0x2631c9(0xe5)&&typeof _0x178120==_0x2631c9(0x248)&&(_0x1dbe88[_0x55f16f]=_0x178120[_0x2631c9(0x1de)](/url\(#(.*)\)/,'url(#$1'+_0x115e41['idSuffix']+')'));});const {defIds:_0x2cae42}=_0x115e41;return!_0x2cae42||_0x2cae42['length']===0x0||(_0x54a6d5[_0x5d5d65(0x14e)]==='use'&&_0x1dbe88[_0x5d5d65(0x291)]&&(_0x1dbe88[_0x5d5d65(0x291)]=_0x1dbe88[_0x5d5d65(0x291)]+_0x115e41[_0x5d5d65(0x1f5)]),Object[_0x5d5d65(0x21d)](_0x1dbe88)[_0x5d5d65(0x1a5)](([_0xbb3173,_0x4ebc09])=>{const _0xb8e899=_0x5d5d65;typeof _0x4ebc09=='string'&&(_0x1dbe88[_0xbb3173]=_0x4ebc09['replace'](/url\(#(.*)\)/,_0xb8e899(0x1b5)+_0x115e41[_0xb8e899(0x1f5)]+')'));})),_0x1dbe88;}function fi(_0x289699,_0x38d34d){const _0x5331b5=_0x5724cd;var _0x21b831;const {defIds:_0x5074ef}=_0x38d34d;return!_0x5074ef||_0x5074ef[_0x5331b5(0x173)]===0x0?_0x289699:_0x289699[_0x5331b5(0x14e)]===_0x5331b5(0x302)&&((_0x21b831=_0x289699[_0x5331b5(0x1e6)])!=null&&_0x21b831[_0x5331b5(0x173)])?{..._0x289699,'children':_0x289699[_0x5331b5(0x1e6)][_0x5331b5(0x30d)](_0x1d5872=>typeof _0x1d5872[_0x5331b5(0xd4)]['id']==_0x5331b5(0x248)&&_0x5074ef&&_0x5074ef[_0x5331b5(0x1c1)](_0x1d5872['attrs']['id'])?{..._0x1d5872,'attrs':{..._0x1d5872[_0x5331b5(0xd4)],'id':_0x1d5872[_0x5331b5(0xd4)]['id']+_0x38d34d[_0x5331b5(0x1f5)]}}:_0x1d5872)}:_0x289699;}function gi(){const _0x1def8a=_0x5724cd;return Math[_0x1def8a(0x182)]()['toString'](0x24)[_0x1def8a(0x2e7)](0x2,0x8);}Ve[_0x5724cd(0x2b0)]=_0x5724cd(0x15e);const vi={'tag':_0x5724cd(0x247),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x5724cd(0x134),'width':_0x5724cd(0xf8),'height':_0x5724cd(0xf8)},'children':[{'tag':'g','attrs':{'clipPath':_0x5724cd(0x188)},'children':[{'tag':_0x5724cd(0xfb),'attrs':{'stroke':_0x5724cd(0x146),'d':_0x5724cd(0x206),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x5724cd(0x302),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x5724cd(0xfb),'attrs':{'fill':_0x5724cd(0x304),'d':_0x5724cd(0x303)}}]}]}],'defIds':[_0x5724cd(0x259)]},Lt=_0x5dd539(function(_0x32c011,_0xde43f3){const _0x2c3337=_0x5724cd;return _0x3f82cd(Ve,Object['assign']({},_0x32c011,{'id':_0x2c3337(0x21c),'ref':_0xde43f3,'icon':vi}));});Lt['displayName']=_0x5724cd(0x1e7);const Ei={'tag':_0x5724cd(0x247),'attrs':{'xmlns':_0x5724cd(0xe7),'fill':_0x5724cd(0x242),'viewBox':'0\x200\x2017\x2016','width':'1em','height':_0x5724cd(0xf8)},'children':[{'tag':'g','attrs':{'clipPath':_0x5724cd(0x282)},'children':[{'tag':_0x5724cd(0xfb),'attrs':{'stroke':_0x5724cd(0x146),'d':_0x5724cd(0x11d),'strokeLinecap':_0x5724cd(0x2f9),'strokeLinejoin':_0x5724cd(0x2f9),'strokeWidth':1.2}}]},{'tag':_0x5724cd(0x302),'attrs':{},'children':[{'tag':_0x5724cd(0x1fc),'attrs':{'id':_0x5724cd(0x103)},'children':[{'tag':'path','attrs':{'fill':_0x5724cd(0x304),'d':_0x5724cd(0x303),'transform':_0x5724cd(0x2fa)}}]}]}],'defIds':[_0x5724cd(0x103)]},Mt=_0x5dd539(function(_0x22619a,_0xc62a26){const _0x412965=_0x5724cd;return _0x3f82cd(Ve,Object['assign']({},_0x22619a,{'id':_0x412965(0x2cf),'ref':_0xc62a26,'icon':Ei}));});Mt['displayName']=_0x5724cd(0x14a);function pi(_0x1ac015){const _0x1184ae=_0x5724cd;switch(_0x1ac015){case _0x50afaa[_0x1184ae(0x171)]:return'collabStatus.offline';case _0x50afaa[_0x1184ae(0x1df)]:return _0x1184ae(0x1ed);case _0x50afaa[_0x1184ae(0x243)]:return _0x1184ae(0x305);case _0x50afaa['NOT_COLLAB']:return'collabStatus.notCollab';case _0x50afaa[_0x1184ae(0x1f6)]:case _0x50afaa[_0x1184ae(0x290)]:return _0x1184ae(0x1a6);case _0x50afaa[_0x1184ae(0x18c)]:case _0x50afaa['PENDING']:return'collabStatus.synced';}}function _0xc813(){const _0x2a9c23=['getTypeOfUnitAdded$','_localeService','CLOSE_ROOM','tag','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','disableLocalCache','history','transformRemoteChangeset','_docSkeleton','isArray','_localStorageService','onPointerMove$','add','_scene','/run/','event$','_context','_hovered','redoState','UniverIcon','onPointerEnter$','ENTITLE_REPORT_LIMIT_EXCEED','getCurrent','_notificationService','_name','unitId','SNAPSHOT_HAS_BEEN_REMOVED','params','_session','COMPLETION_FINISHED','dispose$','now','_init','LICENSE_EXPORT_SIZE_EXCEEDED','symbol','[CollaborationDataLoaderController]','init','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','OFFLINE','getMemberID','length','ENTITLE_CAN_NOT_BUY_LOWER_OTP','ENSURE_SNAPSHOT_EXECUTION','APPLY_REJECT','setTimeout','unit','invokeId','UNRECOGNIZED','addEventListener','_cachedData','_hasFormulaInDirtyRanges','_docTransformIMECacheService','row','USER_IS_ANONYMOUS','m2Prime','random','data','_configService','key','getCurrentSelections','exhaustSavingTask','url(#off-line-icon_clip0_910_343)','then','collaboration.closeRoom','LICENSE_IMPORT_SIZE_EXCEEDED','SYNCED','_initResize','rgba(255,\x20255,\x20255,\x200.01)','DeleteRangeMoveUpCommandId','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','isActive','error','getSkeleton','NO_OTHER_CLIENTS_EDITING','_initCommandInterceptor','REDEMPTION_CODE_NOT_STARTED','_startDocCollabCursor','_applyCommand','_transformService','startFormulaLimitUrl','REDEMPTION_USER_NOT_ELIGIBLE','LOGIN_TOKEN_PROCESSING_FAILED','univer-mr-2\x20univer-flex\x20univer-text-xl','_eventUnsubscribe','href','_setFormulaLimitStatus','_getFormulaLimitStatus','_urlService','_lastPointer','_getScale','forEach','collabStatus.syncing','_saveCache','result','removeParam','_cursor','ranges','uni.network.url-service','engine','_docSkeletonManagerService','univerjs-icon\x20univerjs-icon-','_httpService','subscribeEvent','_transformUndoRedoStack','getMergeData','_onRefRangeChange','url(#$1','selection','currentTheme$','type','transformIMECache','toRgbString','height','onLocalMutation','delete','formula.calculation.unable','OTHER_CLIENTS_EDITING','transformByState','includes','YUUMI_NO_CUBOID_FOR_QUESTION','getParam','onMouseMove','eventID','getViewport','_showGuardMessage','_checkCalculationAvailable','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','/universer-api/license/formula/limit/start','_instanceService','_taskIds','Failed','subscribe','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','has','fillText','application/json','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_initEvent','size','getRangePointData','setActiveRange','...','ENTITLE_DUP_SUBSCRIPTION','triggerDblclick','evenodd','fillRule','executeCommand','replace','CONFLICT','defIds','_shapes','disposeWithMe','runId','_setupSubUnitSync','_uiPartsService','children','OffLineIcon','selections','SNAPSHOT_INVALID_SNAPSHOT','MOBILE_HAS_BEEN_BOUND','makeDirty','onPointerLeave$','collabStatus.conflict','getCurrentUnitForType','unsubscribe','fillStyle','WECHAT_HAS_BEEN_BOUND','backgroundColor','subunit','YUUMI_AI_RUN_FAILED','idSuffix','AWAITING','getUniverSheetInstance','TOO_MANY_REQUESTS','_removeCollabCursors','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','actions','clipPath','AUTHORIZE_CODE_ILLEGAL','_scheduleSaving','_onCursorUpdate','collab-text-anchor-','origin','restore','some','FromArray','_dataLoaderService','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','dispose','lineTo','div','_assignedColors','arc','_collaborationController','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','getCurrentRevOfUnit','endRow','_unitStatus','permission.title','getStateCache','split','_heartbeatTimer','pluginName','getActiveSheet','CHANGESET_REVISION_CONFILICT','debug','_injector','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','createSocket','off-line-icon','entries','_doCreateSocket','UNAUTHENTICATED','_drawAnchor','_updateSubUnitFromURLParams','INTERNAL_ERROR','replaceDocRanges','formula.calculation.waiting','_updateCollabCursors','code','setShapeProps','_memberService','collaboration-client.offline-data-not-saved','YUUMI_TABLE_NOT_FOUND_IN_UNIT','name','_docStateChangeManagerService','ENTITLE_NEED_BILLING_ADDRESS','reconnect','_sheetSkeletonManagerService','m1Prime','getOwnPropertyDescriptor','_roomMembers$','getCollabEntity$','OTHER_CLIENT_EDITING','_refRangeService','saveTaskMap','limitInfo','29979VFHYDP','START_CALCULATION','_handleLeaveEvent','INVALID_ARGUMENT','drawWith','RemoveColCommandId','max','_status$','_createSocketURL','PY_RUNTIME_SCRIPT_ERROR','none','FETCH_MISS','green.600','post','_toggleOnline','svg','string','_setupBeforeClosingHandler','collab-client.tooltip.reconnect','transform','registerRenderModule','beginPath','Error','searchParams','functionsExecutedState','301060wuhwQE','mutations','unload','2061678PyTjLz','APPLY_NON_SEQUENTIAL_REVISION','_getMergeRange','getCollabCursors$','_unitOnClients','off-line-icon_clip0_910_343','getUnitId','_handleEvent','findNodePositionByCharIndex','REDEMPTION_CODE_INACTIVE','registerBeforeClose','hide','executionId','5814360UuplYo','_logService','loadUnit','black','7610bwUOEi','_drawRectRange','_collabSessionService','pushState','SUCCESS','enableLocalCache','Loading','collabCursorState$','syncEditingCollabCursor','wsSessionTicketUrl','_getSheetObject','_onCursorDelete','measureText','clearTimeout','flatMap','stringify','width','_syncEditingCollabCursorService','transformMutation','getItem','_initDependencies','override','_collabCursorController','_config','EMAIL_HAS_BEEN_BOUND','APPLY_REVISION_CONFILICT','SUBMIT_CHANGESET_TIMEOUT','YUUMI_RATE_OVER_LIMIT','collab-rect-range-','url(#on-line-icon_clip0_910_349)','getActiveRange','_textBubble','range','color','APPLY_DUPLICATED','labelPosition','newValue','clearInterval','UNIVER_DOC','textRanges','top','_maxFormulaLimit','PAYMENT_CHANNEL_NOT_SUPPORT','AWAITING_WITH_PENDING','xlink:href','USER_NOT_INVITED_CODE','setParam','session.collaboration-timeout','focused$','ticket','get','_hover','_renderManagerService','stageInfo','show','MOBILE_VERIFY_CODE_MISMATCH','startRow','InsertRowCommandId','LICENSE_MAX_UNITS_EXCEEDED','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','YUUMI_CONNECTOR_URL_NOT_FOUND','endColumn','disposeUnit','HEADER_MENU','undoState','InsertRangeMoveRightCommandId','PERMISSION_DENIED','_draw','body','trim','getUndoRedoMutationParamsCache','sessionTicket','InsertColCommandId','getUnit','361565jQNxhs','displayName','INVITE_CODE_HAS_BEEN_UES','getformulaLimitStatusUrl','subUnitId','addHandlerCallback','blue.400','1241121pXerLm','startColumn','_checkAndWaitForCalculationPermission','_startSheetCollabCursor','cursorInfo','setAlpha','sessionStatus$','EMAIL_VERIFY_CODE_MISMATCH','_revisionService','unitID','getRelativeToViewportCoord','isEditing','unshift','INVALID_INVITE_CODE','saveOfflineData','_cursorShapes','_getSaveTimeout','getColorFromTheme','_lastResponseTimestamp','_labelPosition','getConfig','_imageIoService','ALREADY_EXISTS','maxFormulaLimit','_selfUnitIDs','on-line-icon','_clearOtherTimers','_disabled','roomMembers$','UNIVER_SHEET','Success','source','fill','_handleHeartbeatEvent','getFocusedUnit','univer-flex\x20univer-items-center','getDocRanges','LICENSE_DISTRO_REJECTED','_updateLocalCursor','MoveRangeCommandId','_cursors','_colorIndex','red.300','_range','with','YUUMI_ALL_TABLES_IS_INVALID','_registerDependencies','parse','parseInt','substring','_color','_anchor','_saveTaskMap','_cursorInfo$','push','REDEMPTION_CODE_HAS_BEEN_CREATED','_pollingInterval','_commandService','set','INVITE_CODE_REQUIRED','_drawTextRange','LOGIN_FAILED','3532235WAQsTj','addClipboardHook','assignAColorForMemberID','_registerRenderDependencies','_localCacheService','round','translate(.97)','beforeCommandExecuted','INVITE_CODE_ALREADY_BOUND','USER_NOT_FOUND','_online','min','_docTransformStateCacheService','VIEW_MAIN','defs','M0\x200H16V16H0z','white','collabStatus.fetchMiss','UNDEFINED','_colorAssignService','_document','ERROR_AGAIN','setItem','sheetId','CONNECTOR_DATA_TOO_LARGE','map','getSheetId','onStarting','_releaseCalculationLimit','_handleHover','attrs','_updateURLWithCurrentState','cursorInfo$','docStateChange$','_initCommandExecutedListener','session.connection-failed','_currentUsage','search','15GDZayW','urlChange$','ENTITLE_CHAT_LIMIT_EXCEED','getRenderById','resize','_univerInstanceService','ONLINE','createInstance','popstate','mask','_render','http://www.w3.org/2000/svg','CURRENT_STATUS_CANNOT_OPERATE','_id','status$','runOnServer','_initStatusListener','_hideTimer','Warning','2AxiDiy','YUUMI_UNABLE_LOAD_URL','_docSyncEditingCollabCursorService','_transformHistoryAndStateStack','TEXT','sheetID','asObservable','transformStateCache','_scheduleHeartbeat','1em','send','_anchorDot','path','getSheetBySheetId','getCellMatrix','REDEMPTION_INVALID_CODE','getMember','_refreshCollabCursors','colorChannel1','_collaborationUIEventService','on-line-icon_clip0_910_349','getUnitStatus$','_initStatusComponent','_backgroundColor','formula.calculation.started','complete','entityInit$','registerRefRange','collaboration-client-ui.config','_send','NOT_FOUND','REDEMPTION_CODE_FULLY_REDEEMED','_clearPolling','roomMembers','_beforeCloseService','JOIN_ROOM_FAILED','_ensureSubject','jiqing.500','text','getValue','currentSkeleton$','setStateCache','deepClone','onCommandExecuted','column','requireSession','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','_themeService','[RemoteUniscriptService]:\x20no\x20focused\x20unit','UPDATE_CURSOR','_removeClearOtherTimer','toString','closePath','_messageService','defineProperty','memberID','_entities','save','_collabCursorState$','_initEntityListener','hovered','YUUMI_SUBSCRIPTION_NOT_FOUND','ENTITLE_INSUFFICIENT_QUOTA','USERS_LEAVE','startsWith','next','current','NOT_COLLAB','storage','0\x200\x2016\x2016','addObject','_docTransformSelectionsService','onRendered','APPLY_PERMISSION_DENIED','getAncestorScale','_entityInit$','location','stage','transformMutationsWithChangeset','_docClipboardService','doc.mutation.rich-text-editing','DeleteRangeMoveLeftCommandId','editingUnit','REDEMPTION_USER_REDEEM_TIMES_EXCEED','YUUMI_ASYNCIO_CANCELLED','_toggleOffline','_scheduleClearOtherTimer','currentColor','replaceState','pipe','values','OnLineIcon'];_0xc813=function(){return _0x2a9c23;};return _0xc813();}function _0x4324(_0x16bf3,_0x1b3031){const _0xc81348=_0xc813();return _0x4324=function(_0x4324cf,_0x5b75d9){_0x4324cf=_0x4324cf-0xd0;let _0xa432ba=_0xc81348[_0x4324cf];return _0xa432ba;},_0x4324(_0x16bf3,_0x1b3031);}function Oi(_0x3a815d){const _0x45d3ca=_0x5724cd,{status$:_0x550236}=_0x3a815d,_0x2e41ef=_0x4756b4(_0x550236,_0x50afaa[_0x45d3ca(0x132)]),_0x3b30d0=_0x2bd7e4(_0x234aab),_0x269256=_0x2bd7e4(_0x2c15e3),_0x45dc2e=_0x2e41ef!==_0x50afaa[_0x45d3ca(0x171)],_0x1838ed=_0x3b30d0['t'](pi(_0x2e41ef)),_0xdfa4a0=_0x45dc2e?_0x3ea50e(Mt,{}):_0x3ea50e(Lt,{}),_0x52b798=_0x73dded(()=>{const _0x20027b=_0x45d3ca;_0x45dc2e||_0x269256[_0x20027b(0x22e)]();},[_0x45dc2e,_0x269256]);function _0x29167f(){const _0x2125e8=_0x45d3ca;return _0x5fce33(_0x2125e8(0x209),{'className':_0x2125e8(0x2d9),'onClick':_0x52b798,'children':[_0x3ea50e('div',{'className':_0x386c2c(_0x2125e8(0x19d),{'univer-text-green-500':_0x45dc2e,'univer-text-red-500':!_0x45dc2e}),'children':_0xdfa4a0}),_0x3ea50e(_0x2125e8(0x209),{'className':_0x2125e8(0x1c9),'children':_0x1838ed})]});}return _0x45dc2e?_0x29167f():_0x3ea50e(_0x41ecc8,{'title':_0x3b30d0['t'](_0x45d3ca(0x24a)),'children':_0x29167f()});}var Ti=Object[_0x5724cd(0x231)],Ci=(_0x125330,_0x4983e1,_0x4e7f0c,_0x3a8e15)=>{const _0x160b11=_0x5724cd;for(var _0x96e63a=_0x3a8e15>0x1?void 0x0:_0x3a8e15?Ti(_0x4983e1,_0x4e7f0c):_0x4983e1,_0x4c9711=_0x125330[_0x160b11(0x173)]-0x1,_0x1d5aa7;_0x4c9711>=0x0;_0x4c9711--)(_0x1d5aa7=_0x125330[_0x4c9711])&&(_0x96e63a=_0x1d5aa7(_0x96e63a)||_0x96e63a);return _0x96e63a;},se=(_0x3807f5,_0x4f6969)=>(_0x1d814f,_0x3dda3d)=>_0x4f6969(_0x1d814f,_0x3dda3d,_0x3807f5);let oe=class extends _0x2916da{constructor(_0x362c92,_0x2685c5,_0x441b42,_0x2cbe73){const _0xc3f18d=_0x5724cd;super(),l(this,_0xc3f18d(0x23f),new _0x29a5ca(_0x50afaa['NOT_COLLAB'])),(this[_0xc3f18d(0xe1)]=_0x362c92,this[_0xc3f18d(0x219)]=_0x2685c5,this['_collaborationController']=_0x441b42,this[_0xc3f18d(0x1e5)]=_0x2cbe73,this[_0xc3f18d(0x105)](),this['_initStatusListener']());}[_0x5724cd(0xec)](){const _0x2bc9a8=_0x5724cd;this[_0x2bc9a8(0x1e2)](this['_univerInstanceService'][_0x2bc9a8(0x295)][_0x2bc9a8(0x148)](_0xa10b69(()=>{const _0xd49107=_0x2bc9a8,_0x31f0d3=this[_0xd49107(0xe1)][_0xd49107(0x2d8)]();return _0x31f0d3?this[_0xd49107(0x20c)][_0xd49107(0x233)](_0x31f0d3[_0xd49107(0x25a)]()):_0x2a30cc(null);}),_0xa10b69(_0x1ae58a=>_0x1ae58a?_0x1ae58a[_0x2bc9a8(0xea)]:_0x2a30cc(_0x50afaa[_0x2bc9a8(0x132)])))['subscribe'](_0x5bdd65=>{const _0x4b63d8=_0x2bc9a8;this[_0x4b63d8(0x23f)][_0x4b63d8(0x130)](_0x5bdd65);}));}[_0x5724cd(0x105)](){const _0x2774c1=_0x5724cd;this['disposeWithMe'](this[_0x2774c1(0x1e5)]['registerComponent'](_0x1c67bd[_0x2774c1(0x2a4)],()=>_0x3aeb97(Ri({'status$':this[_0x2774c1(0x23f)][_0x2774c1(0xf5)]()}),this[_0x2774c1(0x219)])));}};oe=Ci([se(0x0,_0x166a1e),se(0x1,_0x4db080(_0xca9a6f)),se(0x2,_0x4db080(_0x18f9ba)),se(0x3,_0x3ff3af)],oe);function Ri(_0x4f98b1){const {status$:_0x483a76}=_0x4f98b1;return function(){return _0x3ea50e(Oi,{'status$':_0x483a76});};}const At=_0x5e1b6d(_0x5724cd(0x1ac));var Di=Object[_0x5724cd(0x231)],Ni=(_0x1eeee2,_0x27bbec,_0x1f1d67,_0x203b19)=>{for(var _0xef71c6=_0x203b19>0x1?void 0x0:_0x203b19?Di(_0x27bbec,_0x1f1d67):_0x27bbec,_0x228267=_0x1eeee2['length']-0x1,_0x12baa9;_0x228267>=0x0;_0x228267--)(_0x12baa9=_0x1eeee2[_0x228267])&&(_0xef71c6=_0x12baa9(_0xef71c6)||_0xef71c6);return _0xef71c6;},K=(_0x267b2c,_0x4fe574)=>(_0x3a8f6b,_0x17fe6f)=>_0x4fe574(_0x3a8f6b,_0x17fe6f,_0x267b2c);let ae=class extends _0x466553{constructor(_0x6a6752,_0x134a9d,_0x1d884d,_0x442dd8,_0x8e1f70){const _0x2551f3=_0x5724cd;super(),this[_0x2551f3(0x1a2)]=_0x6a6752,this['_logService']=_0x134a9d,this[_0x2551f3(0x2ef)]=_0x1d884d,this[_0x2551f3(0x205)]=_0x442dd8,_0x8e1f70?_0x8e1f70==null||_0x8e1f70['whenReady']()['then'](()=>this[_0x2551f3(0x16b)]()):(this[_0x2551f3(0x262)][_0x2551f3(0x218)](_0x2551f3(0x16e),_0x2551f3(0x1cf)),this['_init']());}async[_0x5724cd(0x16b)](){const _0x5edd33=_0x5724cd,_0x3ff3b7=this[_0x5edd33(0x1a2)][_0x5edd33(0x1c3)](_0x5edd33(0x178)),_0x39dbf2=this[_0x5edd33(0x1a2)][_0x5edd33(0x1c3)](_0x5edd33(0x1b8)),_0x5054c6=this[_0x5edd33(0x1a2)][_0x5edd33(0x1c3)](_0x5edd33(0x1f3));if(!_0x3ff3b7||!_0x39dbf2){this[_0x5edd33(0x262)][_0x5edd33(0x218)](_0x5edd33(0x16e),_0x5edd33(0x14f));return;}const _0x4e7ff5=await this[_0x5edd33(0x205)][_0x5edd33(0x263)](_0x3ff3b7,Number(_0x39dbf2),_0x5054c6);_0x4e7ff5&&_0x4e7ff5 instanceof _0x2d40a7&&this['_setupSubUnitSync'](_0x4e7ff5);}async[_0x5724cd(0x1e4)](_0x292ba4){const _0x5a1207=_0x5724cd;await this[_0x5a1207(0x221)](_0x292ba4),_0x292ba4['activeSheet$'][_0x5a1207(0x148)](_0x29d39(this['dispose$']))['subscribe'](_0x1220dd=>{_0x1220dd&&this['_updateURLWithCurrentState'](_0x1220dd);}),this[_0x5a1207(0x1a2)]['urlChange$']['pipe'](_0x29d39(this['dispose$']))[_0x5a1207(0x1ce)](()=>this[_0x5a1207(0x221)](_0x292ba4));}[_0x5724cd(0xd5)](_0x34860e,_0x54d8b7=!0x1){const _0x16d079=_0x5724cd,_0x104779=this[_0x16d079(0x1a2)][_0x16d079(0x1c3)](_0x16d079(0x1f3));_0x34860e[_0x16d079(0xd0)]()!==_0x104779&&this[_0x16d079(0x1a2)][_0x16d079(0x293)]('subunit',_0x34860e['getSheetId'](),_0x54d8b7);}async[_0x5724cd(0x221)](_0x182305){const _0x5a8919=_0x5724cd;var _0x2d173b;const _0x59599b=this[_0x5a8919(0x1a2)][_0x5a8919(0x1c3)](_0x5a8919(0x1f3));if(!_0x59599b||!_0x182305[_0x5a8919(0xfc)](_0x59599b)){const _0x5c4a82=_0x182305['getUnhiddenWorksheets']()[0x0],_0x4b11f8=_0x182305['getSheetBySheetId'](_0x5c4a82);if(!_0x4b11f8)return;this['_updateURLWithCurrentState'](_0x4b11f8,!0x0),await this[_0x5a8919(0x2ef)][_0x5a8919(0x1dd)](_0x49cac3['id'],{'unitId':_0x182305[_0x5a8919(0x25a)](),'subUnitId':_0x5c4a82});return;}((_0x2d173b=_0x182305[_0x5a8919(0x216)]())==null?void 0x0:_0x2d173b['getSheetId']())!==_0x59599b&&await this['_commandService'][_0x5a8919(0x1dd)](_0x49cac3['id'],{'unitId':_0x182305[_0x5a8919(0x25a)](),'subUnitId':_0x59599b});}};ae=Ni([K(0x0,At),K(0x1,_0x1edaba),K(0x2,_0x3d0367),K(0x3,_0x4db080(_0x2c6881)),K(0x4,_0x28a111(_0x30a3e3))],ae);var bi=Object[_0x5724cd(0x231)],Ui=(_0x249b59,_0x54390d,_0x3f314a,_0x412134)=>{for(var _0x4acaa3=_0x412134>0x1?void 0x0:_0x412134?bi(_0x54390d,_0x3f314a):_0x54390d,_0x4889ef=_0x249b59['length']-0x1,_0x53f2d9;_0x4889ef>=0x0;_0x4889ef--)(_0x53f2d9=_0x249b59[_0x4889ef])&&(_0x4acaa3=_0x53f2d9(_0x4acaa3)||_0x4acaa3);return _0x4acaa3;},tt=(_0x286e34,_0x5f52c4)=>(_0x1f10d6,_0x27b433)=>_0x5f52c4(_0x1f10d6,_0x27b433,_0x286e34);let Ae=class extends _0x466553{constructor(_0x4c9277,_0x1a812e){const _0x95bc1e=_0x5724cd;super(),this[_0x95bc1e(0x13e)]=_0x4c9277,this[_0x95bc1e(0x2cb)]=_0x1a812e,this['_init']();}[_0x5724cd(0x16b)](){const _0x2d8e70=_0x5724cd,_0x4643fe=this;this['disposeWithMe'](this[_0x2d8e70(0x13e)][_0x2d8e70(0x2f5)]({'onBeforePasteImage':async _0x35b8d1=>{const _0x4a86d8=_0x2d8e70,_0x3ba0be=await _0x4643fe[_0x4a86d8(0x2cb)]['saveImage'](_0x35b8d1);return _0x3ba0be?{'source':_0x3ba0be[_0x4a86d8(0x2d5)],'imageSourceType':_0x3ba0be['imageSourceType']}:null;}}));}};Ae=Ui([tt(0x0,_0xbfc833),tt(0x1,_0x3b68ae)],Ae);const st=['purple.300',_0x5724cd(0x114),_0x5724cd(0x244),_0x5724cd(0x2e0),_0x5724cd(0x2b5),'yellow.400'];class je extends _0x2916da{constructor(){const _0x5d3552=_0x5724cd;super(...arguments),l(this,_0x5d3552(0x20a),new Map()),l(this,_0x5d3552(0x2df),0x0);}['assignAColorForMemberID'](_0x1ec0b2){const _0xf24724=_0x5724cd;if(this[_0xf24724(0x20a)][_0xf24724(0x1d0)](_0x1ec0b2))return this[_0xf24724(0x20a)][_0xf24724(0x297)](_0x1ec0b2);const _0x16bd8f=st[this[_0xf24724(0x2df)]];return this['_colorIndex']=(this[_0xf24724(0x2df)]+0x1)%st['length'],this['_assignedColors'][_0xf24724(0x2f0)](_0x1ec0b2,_0x16bd8f),_0x16bd8f;}}function Pt(_0x2da524){let _0x115f52='';for(const _0xbee8f4 of _0x2da524){const {startOffset:_0x161bf8,endOffset:_0x2f63db,isActive:_0x5e4397,rangeType:_0x3b4fef,segmentId:_0x377477,segmentPage:_0x51524c}=_0xbee8f4;_0x115f52['length']&&(_0x115f52+=','),_0x115f52+=_0x161bf8+':'+_0x2f63db+':'+(_0x5e4397?'1':'0')+':'+_0x3b4fef+':'+_0x377477+':'+_0x51524c;}return _0x115f52;}function Li(_0x25ac83){const _0x16d536=_0x5724cd,_0x48ebe6=_0x25ac83['split'](','),_0x161436=[];for(const _0x48c1cb of _0x48ebe6){const [_0x2bcaba,_0x2f7c26,_0x26a19f,_0x2e4633,_0x16b19a,_0x36c016]=_0x48c1cb[_0x16d536(0x213)](':');_0x161436['push']({'startOffset':Number(_0x2bcaba),'endOffset':Number(_0x2f7c26),'collapsed':_0x2bcaba===_0x2f7c26,'isActive':_0x26a19f==='1','rangeType':_0x2e4633===_0x4bed57[_0x16d536(0xf3)]?_0x4bed57[_0x16d536(0xf3)]:_0x4bed57['RECT'],'segmentId':typeof _0x16b19a==_0x16d536(0x248)?String(_0x16b19a):'','segmentPage':Number(_0x36c016!=null?_0x36c016:-0x1)});}return _0x161436[_0x16d536(0x203)](_0x56caa4=>_0x56caa4[_0x16d536(0x191)])||(_0x161436[0x0]['isActive']=!0x0),_0x161436;}class Xe extends _0x466553{constructor(){const _0x42d2a8=_0x5724cd;super(...arguments),l(this,_0x42d2a8(0x129),new _0x29a5ca(null)),l(this,'collabCursorState$',this[_0x42d2a8(0x129)][_0x42d2a8(0xf5)]());}[_0x5724cd(0x26d)](_0x9bdcaf){const _0x4041fb=_0x5724cd,{unitID:_0x32ca03,memberID:_0x36dff5,textRanges:_0xb309b}=_0x9bdcaf,_0x37d2c6=Pt(_0xb309b);if(_0x37d2c6==='')return;const _0x3123e7={'unitID':_0x32ca03,'memberID':_0x36dff5,'selection':_0x37d2c6};this[_0x4041fb(0x129)]['next'](_0x3123e7);}}var Mi=Object[_0x5724cd(0x231)],Ai=(_0x517683,_0x33bc01,_0x5e9d40,_0x2f6f5b)=>{const _0x10acc8=_0x5724cd;for(var _0x497113=_0x2f6f5b>0x1?void 0x0:_0x2f6f5b?Mi(_0x33bc01,_0x5e9d40):_0x33bc01,_0x532fd9=_0x517683[_0x10acc8(0x173)]-0x1,_0x559d68;_0x532fd9>=0x0;_0x532fd9--)(_0x559d68=_0x517683[_0x532fd9])&&(_0x497113=_0x559d68(_0x497113)||_0x497113);return _0x497113;},A=(_0xd02617,_0x1acf41)=>(_0x4802c1,_0x2a017e)=>_0x1acf41(_0x4802c1,_0x2a017e,_0xd02617);const Pi=0x12c,wi=0x64;let Pe=class extends _0x466553{constructor(_0x37f900,_0x3eaa4e,_0x403a86,_0x50a6c7,_0x533e49,_0x436012,_0x3c7677,_0x3da655,_0x21a1c3){const _0x4842aa=_0x5724cd;super(),l(this,_0x4842aa(0x2fe),!0x1),l(this,_0x4842aa(0x16b),!0x1),l(this,_0x4842aa(0x2eb),new _0x29a5ca(new Map())),l(this,'cursorInfo$',this['_cursorInfo$'][_0x4842aa(0xf5)]()),l(this,_0x4842aa(0x232),new _0x29a5ca([])),l(this,'roomMembers$',this[_0x4842aa(0x232)][_0x4842aa(0x148)](_0x19dce7(Pi))),l(this,_0x4842aa(0x2dc),_0x322732(_0xfbc1a6=>{const _0x3baca7=_0x4842aa,_0x4ced91={'eventID':_0x1c5ec5['UPDATE_CURSOR'],'data':{'unitID':this[_0x3baca7(0x2bf)],'memberID':this['_session'][_0x3baca7(0x172)](),'selection':Pt(_0xfbc1a6)}};this[_0x3baca7(0x167)][_0x3baca7(0xf9)](_0x4ced91,this['unitID']);},wi)),(this['unitID']=_0x37f900,this[_0x4842aa(0x167)]=_0x3eaa4e,this[_0x4842aa(0x219)]=_0x403a86,this[_0x4842aa(0x307)]=_0x50a6c7,this[_0x4842aa(0x228)]=_0x533e49,this['_syncEditingCollabCursorService']=_0x436012,this[_0x4842aa(0x199)]=_0x3c7677,this[_0x4842aa(0xe1)]=_0x3da655,this[_0x4842aa(0x2ef)]=_0x21a1c3);}get[_0x5724cd(0x2ba)](){const _0x16ba5f=_0x5724cd;return this[_0x16ba5f(0x2eb)][_0x16ba5f(0x116)]();}get[_0x5724cd(0x110)](){const _0x220a1b=_0x5724cd;return this[_0x220a1b(0x232)][_0x220a1b(0x116)]();}[_0x5724cd(0x207)](){const _0x546edf=_0x5724cd;super['dispose'](),this[_0x546edf(0x2eb)][_0x546edf(0x130)](new Map()),this[_0x546edf(0x2eb)]['complete'](),this[_0x546edf(0x232)]['next']([]),this[_0x546edf(0x232)][_0x546edf(0x108)]();}[_0x5724cd(0x16f)](){const _0x282b44=_0x5724cd;this['_init']||(this[_0x282b44(0x16b)]=!0x0,this[_0x282b44(0x167)][_0x282b44(0x2bc)]['pipe'](_0x29d39(this[_0x282b44(0x169)]))[_0x282b44(0x1ce)](_0xbfd201=>{const _0x43791c=_0x282b44;_0xbfd201===_0x452290[_0x43791c(0xe2)]?this[_0x43791c(0x246)]():this[_0x43791c(0x144)]();}),this[_0x282b44(0x167)][_0x282b44(0x15a)][_0x282b44(0x148)](_0x29d39(this[_0x282b44(0x169)]))['subscribe'](_0x36af7c=>{const _0x45c2a2=_0x282b44,_0x298978=_0x36af7c[_0x45c2a2(0x1c5)];_0x298978===_0x1c5ec5[_0x45c2a2(0x120)]&&this[_0x45c2a2(0x1ff)](_0x36af7c),_0x298978===_0x1c5ec5[_0x45c2a2(0x12e)]&&this['_onCursorDelete'](_0x36af7c);}),this[_0x282b44(0x1e2)](this['_commandService'][_0x282b44(0x11a)](_0x58231b=>{const _0x21c97b=_0x282b44,_0x362061=_0x58231b['params'];_0x362061!=null&&this[_0x21c97b(0x2fe)]&&_0x58231b['id']===_0x38bad8['id']&&_0x362061['unitId']===this[_0x21c97b(0x2bf)]&&_0x362061[_0x21c97b(0x2c1)]===!0x1&&_0x362061[_0x21c97b(0x1ab)][_0x21c97b(0x173)]>0x0&&this[_0x21c97b(0x2dc)](_0x362061[_0x21c97b(0x1ab)]);})),this[_0x282b44(0x276)][_0x282b44(0x26c)][_0x282b44(0x148)](_0x29d39(this['dispose$']))[_0x282b44(0x1ce)](_0x44514=>{const _0x1bacde=_0x282b44;if((_0x44514==null?void 0x0:_0x44514[_0x1bacde(0x2bf)])!==this['unitID'])return;const _0xfe99={'eventID':_0x1c5ec5[_0x1bacde(0x120)],'data':_0x44514};this[_0x1bacde(0x1ff)](_0xfe99);}),this['disposeWithMe'](this[_0x282b44(0x2ef)][_0x282b44(0x11a)](_0x83a4dc=>{const _0x1c2190=_0x282b44;if(_0x83a4dc[_0x1c2190(0x166)]==null)return;const _0x37260f=_0x83a4dc['params'];if(_0x83a4dc['id']!==_0x1cf356['id']||_0x37260f[_0x1c2190(0x164)]!==this['unitID'])return;const _0x29552a={'id':_0x1c2190(0x13f),'params':_0x37260f},_0x41149f=this[_0x1c2190(0x2ba)];for(const [_0x357273,_0xae73e1]of _0x41149f){const _0x52b35b={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x1c2190(0x2bf)],'actions':null,'textRanges':_0xae73e1['ranges']}},_0x258006=this[_0x1c2190(0x199)]['transformMutation'](_0x29552a,_0x52b35b,!0x1);if(_0x48ab2e(_0x258006))throw _0x258006[_0x1c2190(0x192)];_0x41149f[_0x1c2190(0x2f0)](_0x357273,{..._0xae73e1,'ranges':_0x258006[_0x1c2190(0x181)]['params'][_0x1c2190(0x28c)]});}queueMicrotask(()=>{const _0xbca6c=_0x1c2190;this[_0xbca6c(0x2eb)]['next'](_0x41149f);});})));}[_0x5724cd(0x1ff)](_0x4a9fad){const _0x42a9bf=_0x5724cd;var _0x1e1f52,_0x560fb5;const {memberID:_0x31f7dd,selection:_0x2ac7e1}=_0x4a9fad[_0x42a9bf(0x183)],_0x221c39=Li(_0x2ac7e1),_0x35bcd4=(_0x560fb5=(_0x1e1f52=this['_memberService'][_0x42a9bf(0xff)](this['unitID'],_0x31f7dd))==null?void 0x0:_0x1e1f52['name'])!=null?_0x560fb5:'Unknown\x20user',_0x3cca14={'color':this[_0x42a9bf(0x307)][_0x42a9bf(0x2f6)](_0x31f7dd),'name':_0x35bcd4,'ranges':_0x221c39},_0x559ae0=this['cursorInfo'];_0x559ae0[_0x42a9bf(0x2f0)](_0x31f7dd,_0x3cca14),this[_0x42a9bf(0x2eb)][_0x42a9bf(0x130)](_0x559ae0);}[_0x5724cd(0x270)](_0x404c1f){const _0x4216de=_0x5724cd,{memberID:_0x17f1c4}=_0x404c1f['data'],_0x4a8f7c=this[_0x4216de(0x2ba)];_0x4a8f7c[_0x4216de(0x1bd)](_0x17f1c4),this[_0x4216de(0x2eb)][_0x4216de(0x130)](_0x4a8f7c);}[_0x5724cd(0x246)](){const _0x1d06ef=_0x5724cd;var _0x3e25d5;if(this['_online']=!0x0,((_0x3e25d5=this[_0x1d06ef(0xe1)][_0x1d06ef(0x2d8)]())==null?void 0x0:_0x3e25d5[_0x1d06ef(0x25a)]())!==this[_0x1d06ef(0x2bf)])return;const _0x11aac1=this[_0x1d06ef(0x219)][_0x1d06ef(0x297)](_0x5a5e71)[_0x1d06ef(0x2da)]();Array[_0x1d06ef(0x154)](_0x11aac1)&&_0x11aac1[_0x1d06ef(0x173)]>0x0&&this[_0x1d06ef(0x2dc)](_0x11aac1);}[_0x5724cd(0x144)](){const _0x5ba1be=_0x5724cd;this[_0x5ba1be(0x2fe)]=!0x1;}};Pe=Ai([A(0x2,_0x4db080(_0xca9a6f)),A(0x3,_0x4db080(je)),A(0x4,_0x4db080(_0x1a6b56)),A(0x5,_0x4db080(Xe)),A(0x6,_0x4603fd),A(0x7,_0x166a1e),A(0x8,_0x3d0367)],Pe);var yi=Object[_0x5724cd(0x231)],$i=(_0x1ad0c4,_0x211faf,_0x5a5eb0,_0x4366c8)=>{for(var _0xac3cfc=_0x4366c8>0x1?void 0x0:_0x4366c8?yi(_0x211faf,_0x5a5eb0):_0x211faf,_0x227829=_0x1ad0c4['length']-0x1,_0x3a3646;_0x227829>=0x0;_0x227829--)(_0x3a3646=_0x1ad0c4[_0x227829])&&(_0xac3cfc=_0x3a3646(_0xac3cfc)||_0xac3cfc);return _0xac3cfc;},B=(_0x3f580f,_0x4f3253)=>(_0x4c628f,_0x5c6bb5)=>_0x4f3253(_0x4c628f,_0x5c6bb5,_0x3f580f);const xi=0x12c,Bi=0x64,Fi=()=>{let _0x1742c3=[],_0xdfb94e=!0x1;return _0x18c832=>{const _0x39be30=_0x4324;_0x1742c3[_0x39be30(0x2ec)](_0x18c832),_0xdfb94e||(_0xdfb94e=!0x0,setTimeout(()=>{const _0x425092=_0x39be30;_0x1742c3[_0x425092(0x1a5)](_0x3ed76e=>_0x3ed76e()),_0x1742c3=[],_0xdfb94e=!0x1;}));};};let we=class extends _0x466553{constructor(_0x141bfc,_0x55e822,_0x3ff7e5,_0x5582bc,_0x20178d,_0x485c2a,_0xa2a2db,_0x4cbdcf){const _0x28a51f=_0x5724cd;super(),l(this,_0x28a51f(0x2fe),!0x1),l(this,_0x28a51f(0x16b),!0x1),l(this,_0x28a51f(0x2eb),new _0x29a5ca(new Map())),l(this,'cursorInfo$',this[_0x28a51f(0x2eb)][_0x28a51f(0xf5)]()),l(this,'_roomMembers$',new _0x29a5ca([])),l(this,_0x28a51f(0x2d2),this['_roomMembers$'][_0x28a51f(0x148)](_0x19dce7(xi))),l(this,_0x28a51f(0x2dc),_0x322732((_0xe4aed5,_0x5852ef)=>{const _0x4ea578=_0x28a51f,_0x38bb0d={'eventID':_0x1c5ec5[_0x4ea578(0x120)],'data':{'unitID':this[_0x4ea578(0x2bf)],'memberID':this[_0x4ea578(0x167)][_0x4ea578(0x172)](),'selection':_0x25d8d1(_0xe4aed5,_0x5852ef[_0x4ea578(0x285)])}};this['_session']['send'](_0x38bb0d,this[_0x4ea578(0x2bf)]);},Bi)),(this[_0x28a51f(0x2bf)]=_0x141bfc,this['_session']=_0x55e822,this[_0x28a51f(0x219)]=_0x3ff7e5,this['_colorAssignService']=_0x5582bc,this[_0x28a51f(0x228)]=_0x20178d,this['_univerInstanceService']=_0x485c2a,this['_commandService']=_0xa2a2db,this[_0x28a51f(0x235)]=_0x4cbdcf);}get[_0x5724cd(0x2ba)](){const _0x1f02fe=_0x5724cd;return this['_cursorInfo$'][_0x1f02fe(0x116)]();}get[_0x5724cd(0x110)](){const _0x2879f4=_0x5724cd;return this['_roomMembers$'][_0x2879f4(0x116)]();}[_0x5724cd(0x207)](){const _0x116fa5=_0x5724cd;super[_0x116fa5(0x207)](),this[_0x116fa5(0x2eb)][_0x116fa5(0x130)](new Map()),this[_0x116fa5(0x2eb)][_0x116fa5(0x108)](),this[_0x116fa5(0x232)][_0x116fa5(0x130)]([]),this[_0x116fa5(0x232)]['complete']();}[_0x5724cd(0x16f)](){const _0x5da973=_0x5724cd;this[_0x5da973(0x16b)]||(this[_0x5da973(0x16b)]=!0x0,this['_session'][_0x5da973(0x2bc)][_0x5da973(0x148)](_0x29d39(this[_0x5da973(0x169)]))[_0x5da973(0x1ce)](_0x5a56e3=>{const _0x396a6a=_0x5da973;_0x5a56e3===_0x452290[_0x396a6a(0xe2)]?this['_toggleOnline']():this[_0x396a6a(0x144)]();}),this[_0x5da973(0x167)][_0x5da973(0x15a)]['pipe'](_0x29d39(this[_0x5da973(0x169)]))['subscribe'](_0xf312d9=>{const _0x14baf9=_0x5da973,_0x813578=_0xf312d9[_0x14baf9(0x1c5)];_0x813578===_0x1c5ec5[_0x14baf9(0x120)]&&this[_0x14baf9(0x1ff)](_0xf312d9),_0x813578===_0x1c5ec5[_0x14baf9(0x12e)]&&this[_0x14baf9(0x270)](_0xf312d9);}),this['_onRefRangeChange'](),this[_0x5da973(0x1e2)](this[_0x5da973(0x2ef)][_0x5da973(0x11a)](_0x213171=>{const _0x318f5d=_0x5da973;if(this[_0x318f5d(0x2fe)]&&_0x213171['id']===_0x38a87a['id']&&_0x213171['params']['unitId']===this[_0x318f5d(0x2bf)]){const _0x5e6462=_0x213171[_0x318f5d(0x166)];this['_updateLocalCursor'](_0x5e6462[_0x318f5d(0x2b3)],_0x5e6462[_0x318f5d(0x1e8)][0x0]);}})));}[_0x5724cd(0x1ff)](_0x3a5a49){const _0x39805b=_0x5724cd;var _0x883ce,_0x3baacb;const {memberID:_0x3d48a0,selection:_0x22370e}=_0x3a5a49[_0x39805b(0x183)],{sheetName:_0x2cf259,range:_0x2f3ce2}=_0x428cf8(_0x22370e),_0x353453={'name':(_0x3baacb=(_0x883ce=this['_memberService'][_0x39805b(0xff)](this['unitID'],_0x3d48a0))==null?void 0x0:_0x883ce[_0x39805b(0x22b)])!=null?_0x3baacb:'Unknown\x20user','range':this[_0x39805b(0x256)](_0x2cf259,_0x2f3ce2),'sheetID':_0x2cf259,'color':this['_colorAssignService']['assignAColorForMemberID'](_0x3d48a0),'selection':_0x22370e},_0xc16437=this[_0x39805b(0x2ba)];_0xc16437[_0x39805b(0x2f0)](_0x3d48a0,_0x353453),this[_0x39805b(0x2eb)][_0x39805b(0x130)](_0xc16437);}[_0x5724cd(0x270)](_0x26ae58){const _0x4497a3=_0x5724cd,{memberID:_0x116bb5}=_0x26ae58[_0x4497a3(0x183)],_0x154ef1=this['cursorInfo'];_0x154ef1['delete'](_0x116bb5),this[_0x4497a3(0x2eb)]['next'](_0x154ef1);}['_getMergeRange'](_0x990983,_0x48cc52){const _0x403515=_0x5724cd;var _0x3a42c4,_0x542b8c;const _0x18540c=(_0x542b8c=(_0x3a42c4=this[_0x403515(0xe1)][_0x403515(0x1f7)](this[_0x403515(0x2bf)]))==null?void 0x0:_0x3a42c4['getSheetBySheetId'](_0x990983))==null?void 0x0:_0x542b8c[_0x403515(0x1b3)]();return(_0x18540c==null?void 0x0:_0x18540c['find'](_0x1f49e5=>_0x3fa0cb['contains'](_0x1f49e5,_0x48cc52)))||_0x48cc52;}[_0x5724cd(0x1b4)](){const _0x3c8d44=_0x5724cd,_0xb0e77c=new _0x43401e(),_0xf66e7b=Fi(),_0x339571=()=>{const _0xb3d27=_0x4324;_0xb0e77c[_0xb3d27(0x207)]();const _0x1ae452=(_0xe70dfc,_0x39050d,_0x11926b,_0x4b96d1)=>{const _0xb161d=_0xb3d27;let _0x3a7737=[];switch(_0xe70dfc['id']){case _0x5d6206[_0xb161d(0x140)]:{_0x3a7737=_0x58c097(_0xe70dfc,_0x4b96d1);break;}case _0x5d6206[_0xb161d(0x18f)]:{_0x3a7737=_0x689337(_0xe70dfc,_0x4b96d1);break;}case _0x5d6206[_0xb161d(0x2ad)]:{_0x3a7737=_0x167ad0(_0xe70dfc,_0x4b96d1);break;}case _0x5d6206['InsertRangeMoveDownCommandId']:{_0x3a7737=_0x46e032(_0xe70dfc,_0x4b96d1);break;}case _0x5d6206[_0xb161d(0x2a6)]:{_0x3a7737=_0x45c5a6(_0xe70dfc,_0x4b96d1);break;}case _0x5d6206[_0xb161d(0x29e)]:{_0x3a7737=_0x2deae8(_0xe70dfc,_0x4b96d1);break;}case _0x5d6206[_0xb161d(0x2dd)]:{_0x3a7737=_0x397e48(_0xe70dfc,_0x4b96d1);break;}case _0x5d6206[_0xb161d(0x23d)]:{_0x3a7737=_0xe874f5(_0xe70dfc,_0x4b96d1);break;}case _0x5d6206['RemoveRowCommandId']:{_0x3a7737=_0x46d1c8(_0xe70dfc,_0x4b96d1);break;}}const _0x50f099=_0x2d0a41(_0x3a7737,_0x4b96d1),_0x569311=this[_0xb161d(0x2ba)][_0xb161d(0x297)](_0x39050d);if(_0x569311&&_0x50f099){const _0x567e29={..._0x569311,'range':_0x50f099};this['cursorInfo'][_0xb161d(0x2f0)](_0x39050d,_0x567e29),_0xf66e7b(()=>{const _0x1a305b=_0xb161d,_0x403248=this['_refRangeService'][_0x1a305b(0x10a)](_0x50f099,_0x30020b=>(_0x403248[_0x1a305b(0x207)](),_0x1ae452(_0x30020b,_0x39050d,_0x11926b,_0x50f099)));_0xb0e77c['add'](_0x403248);});}return{'redos':[],'undos':[]};};this[_0xb3d27(0x2ba)][_0xb3d27(0x1a5)]((_0x1790e7,_0x19419f)=>{const _0x20a408=_0xb3d27,{range:_0x97e89a,sheetID:_0x4ae153}=_0x1790e7,_0x55d2aa=this[_0x20a408(0x235)]['registerRefRange'](_0x97e89a,_0x148439=>(_0x55d2aa[_0x20a408(0x207)](),_0x1ae452(_0x148439,_0x19419f,_0x4ae153,_0x97e89a)));_0xb0e77c[_0x20a408(0x157)](_0x55d2aa);});};this[_0x3c8d44(0x1e2)](_0xc6be91(this[_0x3c8d44(0x2eb)][_0x3c8d44(0x1ce)](()=>{_0x339571();})));}[_0x5724cd(0x246)](){const _0xa6758c=_0x5724cd;var _0x3e9d40,_0x403a3c;if(this[_0xa6758c(0x2fe)]=!0x0,((_0x3e9d40=this[_0xa6758c(0xe1)][_0xa6758c(0x2d8)]())==null?void 0x0:_0x3e9d40['getUnitId']())!==this[_0xa6758c(0x2bf)])return;const _0x4fd34b=(_0x403a3c=this[_0xa6758c(0x219)]['get'](_0x1edee4)[_0xa6758c(0x186)]())==null?void 0x0:_0x403a3c[0x0],_0x16e620=this[_0xa6758c(0xe1)][_0xa6758c(0x1ee)](_0x5483ba[_0xa6758c(0x2d3)])[_0xa6758c(0x216)]();_0x4fd34b&&_0x16e620&&this[_0xa6758c(0x2dc)](_0x16e620['getSheetId'](),_0x4fd34b);}[_0x5724cd(0x144)](){this['_online']=!0x1;}};we=$i([B(0x2,_0x4db080(_0xca9a6f)),B(0x3,_0x4db080(je)),B(0x4,_0x4db080(_0x1a6b56)),B(0x5,_0x166a1e),B(0x6,_0x3d0367),B(0x7,_0x4db080(_0x1006f2))],we);var ki=Object[_0x5724cd(0x231)],Hi=(_0x11104c,_0x7b036b,_0x51f083,_0x40724)=>{const _0x19d57f=_0x5724cd;for(var _0x59007a=_0x40724>0x1?void 0x0:_0x40724?ki(_0x7b036b,_0x51f083):_0x7b036b,_0x57f1f0=_0x11104c[_0x19d57f(0x173)]-0x1,_0x135c09;_0x57f1f0>=0x0;_0x57f1f0--)(_0x135c09=_0x11104c[_0x57f1f0])&&(_0x59007a=_0x135c09(_0x59007a)||_0x59007a);return _0x59007a;},Ee=(_0x5a27f6,_0x3b9dcf)=>(_0x38c106,_0x451dac)=>_0x3b9dcf(_0x38c106,_0x451dac,_0x5a27f6);let H=class extends _0x466553{constructor(_0x25cd9f,_0x5c22f8,_0x587f1a){const _0x30eda7=_0x5724cd;super(),l(this,'_entities',new Map()),l(this,_0x30eda7(0x13a),new _0x303857()),(this[_0x30eda7(0xe1)]=_0x25cd9f,this[_0x30eda7(0x219)]=_0x5c22f8,this['_collabSessionService']=_0x587f1a,this[_0x30eda7(0x16b)]());}[_0x5724cd(0x207)](){const _0x5347be=_0x5724cd;super[_0x5347be(0x207)](),this['_entityInit$']['complete'](),this[_0x5347be(0x127)][_0x5347be(0x1a5)](_0x24fa8a=>_0x24fa8a['dispose']());}[_0x5724cd(0x257)](_0x4d94a0){const _0x4668f0=_0x5724cd;return this['_entities'][_0x4668f0(0x1d0)](_0x4d94a0)?this['_entities'][_0x4668f0(0x297)](_0x4d94a0)[_0x4668f0(0xd6)]:this[_0x4668f0(0x13a)][_0x4668f0(0x148)](_0x1d12b5(_0x49cb96=>_0x49cb96[_0x4668f0(0x2bf)]===_0x4d94a0),_0xa10b69(_0x15be0c=>_0x15be0c[_0x4668f0(0xd6)]));}[_0x5724cd(0x16b)](){const _0x5b4735=_0x5724cd;this[_0x5b4735(0xe1)]['getTypeOfUnitAdded$'](_0x5483ba[_0x5b4735(0x2d3)])['pipe'](_0x29d39(this['dispose$']))['subscribe'](async _0x449247=>{const _0x5129be=_0x5b4735,_0x4c85f7=_0x449247['getUnitId'](),_0x8188c1=await this[_0x5129be(0x2b9)](_0x4c85f7);this[_0x5129be(0x13a)][_0x5129be(0x130)](_0x8188c1),this[_0x5129be(0x127)]['set'](_0x4c85f7,_0x8188c1);}),this[_0x5b4735(0xe1)][_0x5b4735(0x14b)](_0x5483ba[_0x5b4735(0x28b)])['pipe'](_0x29d39(this[_0x5b4735(0x169)]))[_0x5b4735(0x148)](_0x1d12b5(_0x490d7c=>!_0x490d7c[_0x5b4735(0x25a)]()[_0x5b4735(0x12f)]('__')))[_0x5b4735(0x1ce)](async _0x22fc3a=>{const _0x418c2f=_0x5b4735,_0x3a9ad9=_0x22fc3a[_0x418c2f(0x25a)](),_0x197b08=await this[_0x418c2f(0x197)](_0x3a9ad9);this[_0x418c2f(0x13a)][_0x418c2f(0x130)](_0x197b08),this['_entities'][_0x418c2f(0x2f0)](_0x3a9ad9,_0x197b08);}),_0x14f17d(this[_0x5b4735(0xe1)]['getTypeOfUnitDisposed$'](_0x5483ba[_0x5b4735(0x28b)]),this[_0x5b4735(0xe1)]['getTypeOfUnitDisposed$'](_0x5483ba[_0x5b4735(0x2d3)]))[_0x5b4735(0x148)](_0x29d39(this[_0x5b4735(0x169)]))[_0x5b4735(0x1ce)](_0x5e6492=>{const _0x4dd41f=_0x5b4735,_0x38c023=_0x5e6492[_0x4dd41f(0x25a)](),_0xc4dcd6=this[_0x4dd41f(0x127)][_0x4dd41f(0x297)](_0x38c023);_0xc4dcd6&&(_0xc4dcd6['dispose'](),this[_0x4dd41f(0x127)][_0x4dd41f(0x1bd)](_0x38c023));});}async[_0x5724cd(0x2b9)](_0xf1245b){const _0x2c643c=_0x5724cd,_0x4f4e38=await this[_0x2c643c(0x267)][_0x2c643c(0x11c)](_0xf1245b),_0x295f86=this[_0x2c643c(0x219)]['createInstance'](we,_0xf1245b,_0x4f4e38);return _0x295f86[_0x2c643c(0x16f)](),_0x295f86;}async[_0x5724cd(0x197)](_0x44b4cb){const _0x10c78d=_0x5724cd,_0xffe060=await this[_0x10c78d(0x267)][_0x10c78d(0x11c)](_0x44b4cb),_0x3bc314=this[_0x10c78d(0x219)][_0x10c78d(0xe3)](Pe,_0x44b4cb,_0xffe060);return _0x3bc314['init'](),_0x3bc314;}};H=Hi([Ee(0x0,_0x166a1e),Ee(0x1,_0x4db080(_0xca9a6f)),Ee(0x2,_0x4db080(_0x2c15e3))],H);const Q=0x14,it=0xc8,pe=0x4,Yi=0x5;function Wi(_0x211327,_0x599a25){const _0x57d1e2=_0x5724cd;let {radius:_0x165093,width:_0xb7737f,height:_0x129ec3}=_0x599a25;_0x165093=_0x165093!=null?_0x165093:0x0,_0xb7737f=_0xb7737f!=null?_0xb7737f:0x1e,_0x129ec3=_0x129ec3!=null?_0x129ec3:0x1e;let _0x2ea776=0x0,_0x2aa584=0x0,_0x349b1a=0x0;_0x2ea776=_0x2aa584=_0x349b1a=Math[_0x57d1e2(0x2ff)](_0x165093,_0xb7737f/0x2,_0x129ec3/0x2),_0x211327[_0x57d1e2(0x24d)](),_0x211327['moveTo'](_0x2ea776,0x0),_0x211327['lineTo'](_0xb7737f-_0x2aa584,0x0),_0x211327[_0x57d1e2(0x20b)](_0xb7737f-_0x2aa584,_0x2aa584,_0x2aa584,Math['PI']*0x3/0x2,0x0,!0x1),_0x211327[_0x57d1e2(0x208)](_0xb7737f,_0x129ec3-_0x349b1a),_0x211327['arc'](_0xb7737f-_0x349b1a,_0x129ec3-_0x349b1a,_0x349b1a,0x0,Math['PI']/0x2,!0x1),_0x211327[_0x57d1e2(0x208)](0x0,_0x129ec3),_0x211327[_0x57d1e2(0x208)](0x0,_0x2ea776),_0x211327[_0x57d1e2(0x20b)](_0x2ea776,_0x2ea776,_0x2ea776,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x211327[_0x57d1e2(0x123)](),_0x599a25['fill']&&(_0x211327[_0x57d1e2(0x128)](),_0x211327[_0x57d1e2(0x1f0)]=_0x599a25[_0x57d1e2(0x2d6)],_0x599a25[_0x57d1e2(0x1dc)]==='evenodd'?_0x211327['fill'](_0x57d1e2(0x1db)):_0x211327['fill'](),_0x211327[_0x57d1e2(0x202)]());}class me extends _0x376f96{constructor(_0x112e7c,_0x36db21){const _0x301fa1=_0x5724cd;super(_0x112e7c,_0x36db21),l(this,_0x301fa1(0x286)),l(this,_0x301fa1(0x115)),(this['color']=_0x36db21==null?void 0x0:_0x36db21[_0x301fa1(0x286)],this['text']=_0x36db21==null?void 0x0:_0x36db21[_0x301fa1(0x115)]);}static[_0x5724cd(0x23c)](_0x37c5ef,_0x2df8f0){const _0x1ef9b7=_0x5724cd,{text:_0x1688a0,color:_0x372e80}=_0x2df8f0;_0x37c5ef[_0x1ef9b7(0x128)](),_0x37c5ef['font']=_0x1ef9b7(0x190);const _0x4c16be=_0x37c5ef['measureText'](_0x1688a0)[_0x1ef9b7(0x275)],_0x32a814=Math[_0x1ef9b7(0x2ff)](_0x4c16be+0x2*pe,it);Wi(_0x37c5ef,{'height':Q,'radius':0x4,'width':_0x32a814,'fill':_0x372e80}),_0x37c5ef[_0x1ef9b7(0x1f0)]='#FFF';const _0x3bf87b=pe,_0x48c912=Q-Yi,_0x5ba278=it-0x2*pe;if(_0x4c16be>_0x5ba278){let _0x268797='',_0x22f2db=0x0;for(const _0x14c8ca of _0x1688a0){const _0x372099=_0x37c5ef[_0x1ef9b7(0x271)](_0x14c8ca)[_0x1ef9b7(0x275)];if(_0x22f2db+_0x372099<=_0x5ba278-_0x37c5ef['measureText'](_0x1ef9b7(0x1d8))[_0x1ef9b7(0x275)])_0x268797+=_0x14c8ca,_0x22f2db+=_0x372099;else{_0x268797+=_0x1ef9b7(0x1d8);break;}}_0x37c5ef[_0x1ef9b7(0x1d1)](_0x268797,_0x3bf87b,_0x48c912);}else _0x37c5ef[_0x1ef9b7(0x1d1)](_0x1688a0,_0x3bf87b,_0x48c912);_0x37c5ef[_0x1ef9b7(0x202)]();}[_0x5724cd(0x2a8)](_0x537fc3){const _0x34bf1c=_0x5724cd;me[_0x34bf1c(0x23c)](_0x537fc3,this);}}const Oe=_0x5724cd(0x200),Vi='collab-text-range-',ji=_0x5724cd(0x281),z=0x6,Xi=1.5,Te=0x4,Gi=1.5,Ki=_0x5724cd(0x18e);class nt{constructor(_0x44b270,_0x1ea8ba,_0x5182c8,_0x213845){const _0x1f7e04=_0x5724cd;l(this,_0x1f7e04(0x1e1),[]),l(this,_0x1f7e04(0x2e9),null),l(this,_0x1f7e04(0x284),null),l(this,_0x1f7e04(0xfa),null),l(this,_0x1f7e04(0xed),null),l(this,_0x1f7e04(0x19e),null),(this['_cursor']=_0x44b270,this[_0x1f7e04(0x158)]=_0x1ea8ba,this[_0x1f7e04(0x153)]=_0x5182c8,this[_0x1f7e04(0x308)]=_0x213845,this[_0x1f7e04(0xe6)]());}set[_0x5724cd(0x298)](_0x26a091){const _0x24016f=_0x5724cd;_0x26a091?(this[_0x24016f(0xfa)]&&this[_0x24016f(0xfa)][_0x24016f(0x25f)](),this[_0x24016f(0x284)]&&this[_0x24016f(0x284)][_0x24016f(0x29b)]()):(this[_0x24016f(0xfa)]&&this[_0x24016f(0xfa)][_0x24016f(0x29b)](),this[_0x24016f(0x284)]&&this[_0x24016f(0x284)][_0x24016f(0x25f)]());}['dispose'](){const _0x27f905=_0x5724cd;for(const _0x5b1694 of this[_0x27f905(0x1e1)])_0x5b1694[_0x27f905(0x207)]();this['_textBubble']&&this['_textBubble'][_0x27f905(0x207)](),this[_0x27f905(0xfa)]&&this[_0x27f905(0xfa)][_0x27f905(0x207)](),this[_0x27f905(0x2e9)]&&this[_0x27f905(0x2e9)][_0x27f905(0x207)](),this[_0x27f905(0x19e)]&&this['_eventUnsubscribe']();}['_render'](){const _0x5727a2=_0x5724cd;var _0xf87101;const {_docSkeleton:_0x46692a,_document:_0x1d9e67}=this,{color:_0x5da439,name:_0x897afa,ranges:_0xce3273}=this[_0x5727a2(0x1aa)],_0x830b3=_0x1d9e67['getOffsetConfig'](),{docsLeft:_0x5c7032,docsTop:_0x44de07}=_0x830b3,_0x5d8508=new _0x2118c1(_0x830b3,_0x46692a);for(const {startOffset:_0x3bad55,endOffset:_0x18f7a3,rangeType:_0x58ea8f,segmentId:_0x209854,segmentPage:_0x3634f1,collapsed:_0x22c575,isActive:_0x7a0f64}of _0xce3273){const _0x506f8a=_0x46692a['findNodePositionByCharIndex'](_0x3bad55,!0x0,_0x209854,_0x3634f1);let _0x312233=_0x46692a['findNodePositionByCharIndex'](_0x18f7a3,!0x0,_0x209854,_0x3634f1);if(_0x312233==null&&(_0x312233=_0x46692a[_0x5727a2(0x25c)](_0x18f7a3-0x1,!0x1,_0x209854,_0x3634f1)),_0x7a0f64){const {contentBoxPointGroup:_0x490784}=_0x5d8508[_0x5727a2(0x1d6)](_0x312233,_0x312233);if(_0x490784[_0x5727a2(0x173)]===0x0)continue;this['_drawAnchor'](_0x5da439,_0x490784,_0x5c7032,_0x44de07,_0x897afa),this[_0x5727a2(0x19e)]=this[_0x5727a2(0xd3)]();}if(_0x506f8a&&_0x312233){if(_0x58ea8f===_0x4bed57['RECT']){const _0x460cda=new _0x57a528(_0x830b3,_0x46692a),{pointGroup:_0x1a2721}=(_0xf87101=_0x460cda[_0x5727a2(0x1d6)](_0x506f8a,_0x312233))!=null?_0xf87101:{};if(_0x1a2721==null||_0x1a2721[_0x5727a2(0x173)]===0x0)continue;this[_0x5727a2(0x266)](_0x5da439,_0x1a2721,_0x5c7032,_0x44de07);}else{if(!_0x22c575){const {borderBoxPointGroup:_0x3b26bc}=_0x5d8508['getRangePointData'](_0x506f8a,_0x312233);if(_0x3b26bc['length']===0x0)continue;this[_0x5727a2(0x2f2)](_0x5da439,_0x3b26bc,_0x5c7032,_0x44de07);}}}}}[_0x5724cd(0x220)](_0x2fa50d,_0x1101ef,_0x4ae1fd,_0x136e5d,_0x2f5368){const _0x5b48a0=_0x5724cd,_0x1a1977=this['_getAnchorBounding'](_0x1101ef),{left:_0x2f60a1,top:_0x328549,height:_0x11b64c}=_0x1a1977,_0x4e7d10=this[_0x5b48a0(0x1a4)](),_0x594c5c=Gi/_0x4e7d10,_0x2c551b=new _0x5a4309(Oe+_0x46dcf5(z),{'left':_0x2f60a1+_0x4ae1fd-_0x594c5c,'top':_0x328549+_0x136e5d,'height':_0x11b64c,'width':Xi,'fill':_0x2fa50d||_0x4741e2(_0x675d83[_0x5b48a0(0x264)],0x0),'strokeWidth':_0x594c5c,'stroke':Ki,'evented':!0x0});this[_0x5b48a0(0x2e9)]=_0x2c551b,this['_scene'][_0x5b48a0(0x135)](_0x2c551b,_0x3dd04b);const _0x3f5cc7=new _0x5a4309(Oe+_0x46dcf5(z),{'left':_0x2f60a1+_0x4ae1fd-_0x594c5c,'top':_0x328549+_0x136e5d-Te/0x2,'height':Te,'width':Te,'fill':_0x2fa50d||_0x4741e2(_0x675d83['black'],0x0),'strokeWidth':0x0,'stroke':_0x2fa50d||_0x4741e2(_0x675d83[_0x5b48a0(0x264)],0x0),'evented':!0x1});this['_anchorDot']=_0x3f5cc7,this['_scene'][_0x5b48a0(0x135)](_0x3f5cc7,_0x3dd04b);const _0x3b9a60=new me(Oe+_0x46dcf5(z),{'left':_0x2f60a1+_0x4ae1fd-_0x594c5c,'top':_0x328549+_0x136e5d-Q,'text':_0x2f5368,'color':_0x2fa50d});this['_textBubble']=_0x3b9a60,this[_0x5b48a0(0x158)]['addObject'](_0x3b9a60,_0x3dd04b),this['_hover']=!0x1;}[_0x5724cd(0xd3)](){const _0x14a531=_0x5724cd,_0x2e8fc4=this[_0x14a531(0x2e9)][_0x14a531(0x15f)]['subscribeEvent'](()=>{this['_hover']=!0x0;}),_0x39a29a=this[_0x14a531(0x2e9)][_0x14a531(0x1ec)]['subscribeEvent'](()=>{const _0x406480=_0x14a531;this[_0x406480(0xed)]&&clearTimeout(this['_hideTimer']),this[_0x406480(0xed)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x9fd35a=_0x14a531;_0x2e8fc4[_0x9fd35a(0x1ef)](),_0x39a29a[_0x9fd35a(0x1ef)]();};}[_0x5724cd(0x2f2)](_0x2c81d4,_0x2f2924,_0x3021e1,_0x28a3c5){const _0x8eb6b8=_0x5724cd,_0x5c7dad=new _0x40a014(_0x2c81d4)[_0x8eb6b8(0x2bb)](0.2)[_0x8eb6b8(0x1ba)](),_0x326c23=new _0x11a369(Vi+_0x46dcf5(z),{'pointsGroup':_0x2f2924,'fill':_0x5c7dad||_0x4741e2(_0x675d83[_0x8eb6b8(0x264)],0.2),'left':_0x3021e1,'top':_0x28a3c5,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x8eb6b8(0x1e1)][_0x8eb6b8(0x2ec)](_0x326c23),this['_scene'][_0x8eb6b8(0x135)](_0x326c23,_0x3dd04b);}['_drawRectRange'](_0xd2586,_0x568e1d,_0xd2422a,_0x103261){const _0x183e86=_0x5724cd,_0x1d967e=new _0x40a014(_0xd2586)['setAlpha'](0.2)[_0x183e86(0x1ba)](),_0x1de2f4=new _0x11a369(ji+_0x46dcf5(z),{'pointsGroup':_0x568e1d,'fill':_0x1d967e||_0x4741e2(_0x675d83['black'],0.2),'left':_0xd2422a,'top':_0x103261,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x1de2f4),this[_0x183e86(0x158)]['addObject'](_0x1de2f4,_0x3dd04b);}['_getAnchorBounding'](_0xd0fce8){const _0x1d92cf=_0xd0fce8[0x0],_0x3ad9a1=_0x1d92cf[0x0],_0x599571=_0x1d92cf[0x2],{x:_0x454d50,y:_0x3b8a81}=_0x3ad9a1,{x:_0x4d000e,y:_0x56e7ec}=_0x599571;return{'left':_0x454d50,'top':_0x3b8a81,'width':_0x4d000e-_0x454d50,'height':_0x56e7ec-_0x3b8a81};}[_0x5724cd(0x1a4)](){const _0x23aae6=_0x5724cd,{scaleX:_0x39daf7,scaleY:_0x4fee9b}=this[_0x23aae6(0x158)][_0x23aae6(0x139)]();return Math[_0x23aae6(0x23e)](_0x39daf7,_0x4fee9b);}}var zi=Object[_0x5724cd(0x231)],Ji=(_0x397be3,_0x2b0c9f,_0x270a53,_0x42cb4c)=>{const _0x1b2931=_0x5724cd;for(var _0x57d2f1=_0x42cb4c>0x1?void 0x0:_0x42cb4c?zi(_0x2b0c9f,_0x270a53):_0x2b0c9f,_0x96fe48=_0x397be3[_0x1b2931(0x173)]-0x1,_0x25bd6f;_0x96fe48>=0x0;_0x96fe48--)(_0x25bd6f=_0x397be3[_0x96fe48])&&(_0x57d2f1=_0x25bd6f(_0x57d2f1)||_0x57d2f1);return _0x57d2f1;},ie=(_0x1ed7af,_0x472999)=>(_0x58123a,_0x53182a)=>_0x472999(_0x58123a,_0x53182a,_0x1ed7af);let ye=class extends _0x466553{constructor(_0x5a0399,_0x434008,_0x388dbe,_0xee386,_0x50f7dc){const _0x4c52d1=_0x5724cd;super(),l(this,_0x4c52d1(0x2c5),[]),l(this,_0x4c52d1(0x2de),[]),(this['_context']=_0x5a0399,this[_0x4c52d1(0x1ae)]=_0x434008,this[_0x4c52d1(0x27b)]=_0x388dbe,this[_0x4c52d1(0x2ef)]=_0xee386,this[_0x4c52d1(0x11e)]=_0x50f7dc,this[_0x4c52d1(0x16b)]());}[_0x5724cd(0x16b)](){const _0xd604e3=_0x5724cd,_0x64653=this['_context']['unitId'],_0x44e92=this[_0xd604e3(0x1ae)];this['disposeWithMe'](_0x57e5ce([this[_0xd604e3(0x27b)][_0xd604e3(0x257)](_0x64653),this['_themeService'][_0xd604e3(0x1b7)]])[_0xd604e3(0x148)](_0x2ac750(([_0x10e013,_0x521849])=>({'skeleton':_0x44e92['getSkeleton'](),'cursors':[..._0x10e013['values']()][_0xd604e3(0x273)](_0x5b889a=>({..._0x5b889a,'color':this[_0xd604e3(0x11e)][_0xd604e3(0x2c7)](_0x5b889a[_0xd604e3(0x286)])}))})))[_0xd604e3(0x1ce)](_0x323a93=>{const _0x347da7=_0xd604e3;if(this[_0x347da7(0x1f9)](),_0x323a93){const {skeleton:_0x48957c,cursors:_0x4efca7}=_0x323a93;this[_0x347da7(0x225)](_0x48957c,_0x4efca7);}})),this[_0xd604e3(0x18d)](),this['_initCommandExecutedListener']();}[_0x5724cd(0x225)](_0x41365a,_0x294bdd){const _0x2ee699=_0x5724cd,{scene:_0x4a19fc,mainComponent:_0x2f61a9}=this[_0x2ee699(0x15b)],_0x381fbc=_0x294bdd[_0x2ee699(0x30d)](_0x2a6d1c=>new nt(_0x2a6d1c,_0x4a19fc,_0x41365a,_0x2f61a9));this['_cursorShapes']=_0x381fbc,this[_0x2ee699(0x2de)]=_0x294bdd;}[_0x5724cd(0x100)](){const _0x31afb9=_0x5724cd;this[_0x31afb9(0x1f9)]();const {scene:_0x29dd3b,mainComponent:_0x5e70c7}=this[_0x31afb9(0x15b)],_0x20471a=this[_0x31afb9(0x1ae)][_0x31afb9(0x193)](),_0x1bfbbf=this[_0x31afb9(0x2de)][_0x31afb9(0x30d)](_0x3b279a=>new nt(_0x3b279a,_0x29dd3b,_0x20471a,_0x5e70c7));this['_cursorShapes']=_0x1bfbbf;}[_0x5724cd(0x1f9)](){const _0x385268=_0x5724cd;this['_cursorShapes']['forEach'](_0x105d63=>_0x105d63['dispose']()),this[_0x385268(0x2c5)]=[];}[_0x5724cd(0xd8)](){const _0x18e54b=_0x5724cd,_0x1cac7f=[_0x28c097['id']];this['disposeWithMe'](this[_0x18e54b(0x2ef)][_0x18e54b(0x11a)](_0x264617=>{const _0x54611f=_0x18e54b;_0x1cac7f['includes'](_0x264617['id'])&&_0x264617[_0x54611f(0x166)][_0x54611f(0x164)]===this['_context']['unitId']&&this[_0x54611f(0x100)]();}));}['_initResize'](){const _0x4068b3=_0x5724cd;this['disposeWithMe'](_0x57e071(this[_0x4068b3(0x15b)][_0x4068b3(0x1ad)]['onTransformChange$'])[_0x4068b3(0x148)](_0x23fe25(_0x4ce08c=>_0x4ce08c['type']===_0x1aaa34[_0x4068b3(0xe0)]),_0x51e9be(0x10))[_0x4068b3(0x1ce)](()=>{this['_refreshCollabCursors']();}));}};ye=Ji([ie(0x1,_0x4db080(_0x33170f)),ie(0x2,_0x4db080(H)),ie(0x3,_0x3d0367),ie(0x4,_0x4db080(_0x571088))],ye);const Zi=0x1,Qi=1.5;class qi extends _0x376f96{constructor(_0x206c11,_0x5b545c){const _0x853620=_0x5724cd;super(_0x206c11,_0x5b545c),l(this,_0x853620(0x2e8)),l(this,_0x853620(0x15c),!0x1),l(this,_0x853620(0x2e1)),l(this,_0x853620(0x163),''),l(this,'_labelPosition',_0x853620(0x28d)),l(this,_0x853620(0x106)),(_0x5b545c&&this[_0x853620(0x227)](_0x5b545c),this[_0x853620(0x15f)][_0x853620(0x1b1)](()=>this[_0x853620(0x227)]({'hovered':!0x0})),this['onPointerLeave$'][_0x853620(0x1b1)](()=>this['setShapeProps']({'hovered':!0x1})));}['setShapeProps'](_0x40fa97){const _0x223763=_0x5724cd;var _0x579426,_0x392858,_0x3708d3,_0x20cb5c,_0x5ee322,_0x53269f;this[_0x223763(0x2e8)]=(_0x579426=_0x40fa97[_0x223763(0x286)])!=null?_0x579426:this[_0x223763(0x2e8)],this[_0x223763(0x15c)]=(_0x392858=_0x40fa97[_0x223763(0x12b)])!=null?_0x392858:this['_hovered'],this['_range']=(_0x3708d3=_0x40fa97['range'])!=null?_0x3708d3:this[_0x223763(0x2e1)],this[_0x223763(0x163)]=(_0x20cb5c=_0x40fa97['name'])!=null?_0x20cb5c:this[_0x223763(0x163)],this['_labelPosition']=(_0x5ee322=_0x40fa97[_0x223763(0x288)])!=null?_0x5ee322:this[_0x223763(0x2c9)],this[_0x223763(0x106)]=(_0x53269f=_0x40fa97[_0x223763(0x1f2)])!=null?_0x53269f:this[_0x223763(0x106)],this[_0x223763(0x1c0)]({'width':_0x40fa97[_0x223763(0x275)],'height':_0x40fa97[_0x223763(0x1bb)]});}[_0x5724cd(0x1c4)](_0x4cb1c2){const _0x20fdba=_0x5724cd,{row:_0x1e3503,column:_0x27ae9e}=_0x4cb1c2;if(_0x1e3503>=this['_range'][_0x20fdba(0x29d)]&&_0x1e3503<=this[_0x20fdba(0x2e1)][_0x20fdba(0x20f)]&&_0x27ae9e>=this[_0x20fdba(0x2e1)]['startColumn']&&_0x27ae9e<=this[_0x20fdba(0x2e1)][_0x20fdba(0x2a2)]){this[_0x20fdba(0x227)]({'hovered':!0x0});return;}this[_0x20fdba(0x227)]({'hovered':!0x1});}[_0x5724cd(0x1da)](_0x329f7f){return!0x1;}['_draw'](_0x144e69){const _0xa36876=_0x5724cd;_0x5a4309[_0xa36876(0x23c)](_0x144e69,{'width':this[_0xa36876(0x275)],'height':this[_0xa36876(0x1bb)],'strokeWidth':Qi,'stroke':this[_0xa36876(0x2e8)],'evented':!0x1,'fill':this[_0xa36876(0x106)]}),this[_0xa36876(0x15c)]&&(_0x144e69['save'](),_0x144e69[_0xa36876(0x24b)](0x1,0x0,0x0,0x1,this[_0xa36876(0x275)],this[_0xa36876(0x2c9)]==='bottom'?0x0:-Q),me[_0xa36876(0x23c)](_0x144e69,{'text':this[_0xa36876(0x163)],'color':this[_0xa36876(0x2e8)]}),_0x144e69[_0xa36876(0x202)]());}}var en=Object['getOwnPropertyDescriptor'],tn=(_0x40030d,_0x33a978,_0x4e0b6f,_0x45ba12)=>{const _0x2a021c=_0x5724cd;for(var _0x2abb97=_0x45ba12>0x1?void 0x0:_0x45ba12?en(_0x33a978,_0x4e0b6f):_0x33a978,_0x17c2ee=_0x40030d[_0x2a021c(0x173)]-0x1,_0x28420a;_0x17c2ee>=0x0;_0x17c2ee--)(_0x28420a=_0x40030d[_0x17c2ee])&&(_0x2abb97=_0x28420a(_0x2abb97)||_0x2abb97);return _0x2abb97;},Ce=(_0x26e0ed,_0x3df0d5)=>(_0x19532a,_0x24957d)=>_0x3df0d5(_0x19532a,_0x24957d,_0x26e0ed);const sn=0x1389;let $e=class extends _0x466553{constructor(_0x57d874,_0x1f15bc,_0x433607,_0xf0ec5d){const _0x570729=_0x5724cd;super(),l(this,_0x570729(0x2de),new Set()),l(this,_0x570729(0x1a3),null),(this[_0x570729(0x15b)]=_0x57d874,this['_sheetSkeletonManagerService']=_0x1f15bc,this[_0x570729(0x27b)]=_0x433607,this[_0x570729(0x11e)]=_0xf0ec5d,this['_init']());}[_0x5724cd(0x16b)](){const _0x6349e7=_0x5724cd;this[_0x6349e7(0x22f)][_0x6349e7(0x117)][_0x6349e7(0x148)](_0xd4923a(this[_0x6349e7(0x169)]),_0x4b25bc(_0x3fb590=>{const _0x598a1c=_0x6349e7;if(_0x3fb590){const _0x434455=_0x3fb590[_0x598a1c(0x30b)];return _0x57e5ce(this[_0x598a1c(0x27b)][_0x598a1c(0x257)](this['_context']['unitId']),this[_0x598a1c(0x11e)][_0x598a1c(0x1b7)])[_0x598a1c(0x148)](_0x2ac750(([_0x450ab4,_0x301f01])=>{const _0x5a24c7=_0x598a1c,_0x2d2423=new Map();return _0x450ab4[_0x5a24c7(0x1a5)]((_0x1fd3fe,_0x417354)=>{const _0x45164e=_0x5a24c7;if(_0x1fd3fe[_0x45164e(0xf4)]===_0x434455){const _0x5a0f70={..._0x1fd3fe};_0x5a0f70[_0x45164e(0x286)]=this['_themeService'][_0x45164e(0x2c7)](_0x1fd3fe['color']),_0x2d2423[_0x45164e(0x2f0)](_0x417354,_0x5a0f70);}}),{'skeleton':_0x3fb590,'cursors':_0x2d2423};}));}return _0x2a30cc({'skeleton':null,'cursors':new Map()});}))[_0x6349e7(0x1ce)](({skeleton:_0xd9a19a,cursors:_0x238158})=>{const _0x27bf49=_0x6349e7;this[_0x27bf49(0x1f9)](),_0xd9a19a&&this[_0x27bf49(0x225)](_0xd9a19a,_0x238158);}),this[_0x6349e7(0x22f)][_0x6349e7(0x117)]['subscribe'](_0x4efd76=>{const _0x20e007=_0x6349e7;if(_0x4efd76==null)return;const {skeleton:_0xe3864b}=_0x4efd76,{scene:_0x14cf29}=this[_0x20e007(0x15b)];_0x14cf29[_0x20e007(0x156)][_0x20e007(0x1b1)](_0x322732(_0x1bd25c=>{const _0x4313c4=_0x20e007;var _0x1d370b,_0x22c190;const {offsetX:_0x781249,offsetY:_0x4130d2}=_0x1bd25c,{x:_0xba37c9,y:_0x28f7dd}=_0x14cf29[_0x4313c4(0x2c0)](_0x3be4b3[_0x4313c4(0x204)]([_0x781249,_0x4130d2])),{scaleX:_0xc222a9,scaleY:_0x11b871}=_0x14cf29[_0x4313c4(0x139)](),_0x55d844=_0x14cf29[_0x4313c4(0x1c6)](_0x1e6b43[_0x4313c4(0x301)]),_0x333b6d=_0x14cf29['getVpScrollXYInfoByPosToVp'](_0x3be4b3[_0x4313c4(0x204)]([_0xba37c9,_0x28f7dd]),_0x55d844),_0x2a0481=_0xe3864b['getCellPositionByOffset'](_0x781249,_0x4130d2,_0xc222a9,_0x11b871,_0x333b6d);((_0x1d370b=this[_0x4313c4(0x1a3)])==null?void 0x0:_0x1d370b[_0x4313c4(0x11b)])===_0x2a0481[_0x4313c4(0x11b)]&&((_0x22c190=this[_0x4313c4(0x1a3)])==null?void 0x0:_0x22c190['row'])===_0x2a0481[_0x4313c4(0x17f)]||this['_cursors'][_0x4313c4(0x1a5)](_0x4808b4=>{_0x4808b4['onMouseMove'](_0x2a0481);});},0x64));});}[_0x5724cd(0x225)](_0x2e8081,_0x5bb434){const _0x567618=_0x5724cd;var _0x1a48dd;const _0x269ba4=(_0x1a48dd=this[_0x567618(0x22f)][_0x567618(0x161)]())==null?void 0x0:_0x1a48dd['skeleton'];if(!_0x269ba4)return;const _0x5897f8=this[_0x567618(0x26f)]();if(!_0x5897f8)return;this[_0x567618(0x2de)][_0x567618(0x1a5)](_0x1cc418=>{const _0x2c5738=_0x567618;_0x1cc418[_0x2c5738(0x1eb)]();});const {scene:_0x511ac0}=_0x5897f8,_0x2afd3c=nn(Array['from'](_0x5bb434[_0x567618(0x149)]()))[_0x567618(0x30d)](_0xd0057=>{const _0x2cd057=_0x567618,{color:_0x21a910,range:_0x1bb4c1,name:_0x3973a9,selection:_0x588ef7,sheetID:_0x156761}=_0xd0057,{startColumn:_0xc0128b,startRow:_0xbb6232,endColumn:_0x2f7748,endRow:_0x82a339}=_0x1bb4c1,_0x3e8860=_0x489060(_0xbb6232,_0xc0128b,_0x511ac0,_0x269ba4),_0x1ee877=_0x489060(_0x82a339,_0x2f7748,_0x511ac0,_0x269ba4),{columnHeaderHeightAndMarginTop:_0x1f124b}=_0x269ba4,{startX:_0x6b6b00,startY:_0x3c976f}=_0x3e8860,{endX:_0x2b127b,endY:_0x2d8f5e}=_0x1ee877,_0x17d79c=_0x2b127b-_0x6b6b00,_0x389432=_0x2d8f5e-_0x3c976f,_0x299a09={'labelPosition':_0x3c976f-_0x1f124b>=Q?_0x2cd057(0x28d):'bottom','sheetID':_0x156761,'range':_0x1bb4c1,'color':_0x21a910,'name':_0x3973a9,'selection':_0x588ef7,'left':_0x6b6b00,'top':_0x3c976f,'width':_0x17d79c,'height':_0x389432,'evented':!0x1,'zIndex':sn};return new qi(_0x3973a9,_0x299a09);});_0x511ac0['addObjects'](_0x2afd3c,Zi),this['_cursors']=new Set(_0x2afd3c);}[_0x5724cd(0x1f9)](){const _0x1370f3=_0x5724cd;var _0x1931af;(_0x1931af=this[_0x1370f3(0x2de)])==null||_0x1931af['forEach'](_0x3d4b6b=>_0x3d4b6b[_0x1370f3(0x207)]());}[_0x5724cd(0x26f)](){const _0x4940e3=_0x5724cd;return _0xcf58dc(this[_0x4940e3(0x15b)][_0x4940e3(0x178)],this[_0x4940e3(0x15b)]);}};$e=tn([Ce(0x1,_0x4db080(_0x232217)),Ce(0x2,_0x4db080(H)),Ce(0x3,_0x4db080(_0x571088))],$e);function nn(_0x43d10f){const _0x2aeb9c=_0x5724cd,_0x1ba0e4=new Map();return _0x43d10f[_0x2aeb9c(0x1a5)](_0x2abef1=>{const _0x829f1=_0x2aeb9c;if(_0x1ba0e4[_0x829f1(0x1d0)](_0x2abef1['selection'])){const _0x271be3=_0x1ba0e4[_0x829f1(0x297)](_0x2abef1['selection']);_0x271be3['name']+=',\x20'+_0x2abef1[_0x829f1(0x22b)];}else _0x1ba0e4[_0x829f1(0x2f0)](_0x2abef1[_0x829f1(0x1b6)],_0x2abef1);}),Array['from'](_0x1ba0e4[_0x2aeb9c(0x149)]());}var rn=Object[_0x5724cd(0x231)],on=(_0x1fbccb,_0x3d6fb0,_0x5626a9,_0xd1c1df)=>{const _0x2aed97=_0x5724cd;for(var _0x560675=_0xd1c1df>0x1?void 0x0:_0xd1c1df?rn(_0x3d6fb0,_0x5626a9):_0x3d6fb0,_0x204ada=_0x1fbccb[_0x2aed97(0x173)]-0x1,_0x2a050b;_0x204ada>=0x0;_0x204ada--)(_0x2a050b=_0x1fbccb[_0x204ada])&&(_0x560675=_0x2a050b(_0x560675)||_0x560675);return _0x560675;},F=(_0x1375ea,_0x3b63a7)=>(_0x1e916b,_0x1bf7d7)=>_0x3b63a7(_0x1e916b,_0x1bf7d7,_0x1375ea);let ce=class extends _0x2916da{constructor(_0x4cc5f6,_0x548fe6,_0x3a3ce5,_0x457f95,_0x361b98,_0x26797e){const _0x5e4d0c=_0x5724cd;super(),this[_0x5e4d0c(0x111)]=_0x4cc5f6,this[_0x5e4d0c(0x2f8)]=_0x548fe6,this['_collaborationUIEventService']=_0x3a3ce5,this[_0x5e4d0c(0x124)]=_0x457f95,this[_0x5e4d0c(0x162)]=_0x361b98,this[_0x5e4d0c(0x14c)]=_0x26797e,this[_0x5e4d0c(0x249)](),this[_0x5e4d0c(0x1d4)]();}[_0x5724cd(0x249)](){const _0x4f77b4=_0x5724cd;this[_0x4f77b4(0x1e2)](this[_0x4f77b4(0x111)][_0x4f77b4(0x25e)](()=>{const _0xfb8a53=_0x4f77b4;if(this[_0xfb8a53(0x2f8)][_0xfb8a53(0x236)][_0xfb8a53(0x1d5)])return this[_0xfb8a53(0x14c)]['t'](_0xfb8a53(0x229));}));}[_0x5724cd(0x1d4)](){const _0x5147dc=_0x5724cd;this[_0x5147dc(0x1e2)](this[_0x5147dc(0x102)][_0x5147dc(0x15a)]['subscribe'](_0x30415e=>{const _0x32409f=_0x5147dc;_0x30415e['id']===_0x1513c0[_0x32409f(0x234)]&&this['_messageService'][_0x32409f(0x29b)]({'type':_0x408d4f[_0x32409f(0xee)],'content':this[_0x32409f(0x14c)]['t']('collaboration.single-unit.warning')}),_0x30415e['id']===_0x1513c0[_0x32409f(0x14d)]&&this['_messageService'][_0x32409f(0x29b)]({'type':_0x408d4f['Warning'],'content':this[_0x32409f(0x14c)]['t'](_0x32409f(0x18a))}),_0x30415e['id']===_0x1513c0[_0x32409f(0x2a7)]&&this[_0x32409f(0x162)][_0x32409f(0x29b)]({'title':this[_0x32409f(0x14c)]['t'](_0x32409f(0x211)),'content':this['_localeService']['t']('permission.content'),'type':_0x32409f(0x192),'duration':0x0}),_0x30415e['id']===_0x1513c0[_0x32409f(0x1df)]&&this[_0x32409f(0x124)][_0x32409f(0x29b)]({'type':_0x408d4f[_0x32409f(0x24e)],'content':this[_0x32409f(0x14c)]['t'](_0x32409f(0x18a))+'('+_0x30415e['data']+')'}),_0x30415e['id']===_0x1513c0[_0x32409f(0x112)]&&this[_0x32409f(0x124)]['show']({'type':_0x408d4f[_0x32409f(0xee)],'content':this['_localeService']['t'](_0x30415e[_0x32409f(0x183)]||'')}),_0x30415e['id']===_0x1513c0['SOCKET_FAILED_RETRY']&&this[_0x32409f(0x124)][_0x32409f(0x29b)]({'type':_0x408d4f[_0x32409f(0xee)],'content':this[_0x32409f(0x14c)]['t']('session.will-retry')}),_0x30415e['id']===_0x1513c0['SOCKET_FAILED']&&this[_0x32409f(0x124)][_0x32409f(0x29b)]({'type':_0x408d4f[_0x32409f(0x24e)],'content':this[_0x32409f(0x14c)]['t'](_0x32409f(0xd9))}),_0x30415e['id']===_0x1513c0[_0x32409f(0x27f)]&&this[_0x32409f(0x124)][_0x32409f(0x29b)]({'type':_0x408d4f['Error'],'content':this['_localeService']['t'](_0x32409f(0x294))});}));}};ce=on([F(0x0,_0x578e72),F(0x1,_0x5b4070),F(0x2,_0x4db080(_0x5f0edf)),F(0x3,_0x60d69d),F(0x4,_0x44eeb7),F(0x5,_0x4db080(_0x234aab))],ce);const an=_0x5724cd(0x10b),rt={};var cn=Object['getOwnPropertyDescriptor'],_n=(_0x2a8aa6,_0x5c6b6c,_0x3dbb96,_0xe634d5)=>{const _0x19b261=_0x5724cd;for(var _0x308924=_0xe634d5>0x1?void 0x0:_0xe634d5?cn(_0x5c6b6c,_0x3dbb96):_0x5c6b6c,_0x32f3d5=_0x2a8aa6[_0x19b261(0x173)]-0x1,_0x119838;_0x32f3d5>=0x0;_0x32f3d5--)(_0x119838=_0x2a8aa6[_0x32f3d5])&&(_0x308924=_0x119838(_0x308924)||_0x308924);return _0x308924;},ot=(_0x260b3c,_0x1d0bf3)=>(_0x2382eb,_0x1ab184)=>_0x1d0bf3(_0x2382eb,_0x1ab184,_0x260b3c);let _e=class{constructor(_0x578178,_0x88828b){const _0x424028=_0x5724cd;this['_transformService']=_0x578178,this[_0x424028(0x299)]=_0x88828b;}[_0x5724cd(0x1b9)](_0x5473d2){const _0x27cd04=_0x5724cd;this[_0x27cd04(0x1b2)](_0x5473d2),this['_transformPreviousActiveRange'](_0x5473d2);}[_0x5724cd(0x152)](_0x84720d){const _0xc1b96f=_0x5724cd,{unitID:_0x364cfa}=_0x84720d,_0x3140ce=this[_0xc1b96f(0x299)][_0xc1b96f(0xdf)](_0x364cfa)[_0xc1b96f(0x2e2)](_0x15fd68),{redoCache:_0x128bc4}=_0x3140ce[_0xc1b96f(0x2ab)]();if(_0x128bc4[_0xc1b96f(0x173)]===0x0)return _0x84720d;let _0x4897b9=_0x352d2a[_0xc1b96f(0x119)](_0x84720d[_0xc1b96f(0x252)][0x0]);for(let _0x535595=0x0;_0x535595<_0x128bc4['length'];_0x535595++){const _0x1688ed={'id':_0xc1b96f(0x13f),'params':{..._0x128bc4[_0x535595]}},_0x3c4e2e=this[_0xc1b96f(0x199)][_0xc1b96f(0x277)](_0x4897b9,_0x1688ed,!0x1);if(_0x48ab2e(_0x3c4e2e))throw _0x3c4e2e['error'];_0x4897b9=_0x3c4e2e[_0xc1b96f(0x230)];}return{..._0x352d2a[_0xc1b96f(0x119)](_0x84720d),'mutations':[_0x4897b9]};}[_0x5724cd(0x1b2)](_0x261cb2){const _0x6b4624=_0x5724cd,{unitID:_0x361649}=_0x261cb2,_0x49204a=this[_0x6b4624(0x299)][_0x6b4624(0xdf)](_0x361649)[_0x6b4624(0x2e2)](_0x15fd68),{undoCache:_0x47ce62,redoCache:_0xa1275a}=_0x49204a[_0x6b4624(0x2ab)]();if(_0x47ce62['length']===0x0||_0xa1275a[_0x6b4624(0x173)]===0x0)return;const _0x49750a=[],_0x58d5bf=[];let _0x1c34c6=_0x352d2a['deepClone'](_0x261cb2['mutations'][0x0]),_0x5b9673=_0x352d2a['deepClone'](_0x261cb2[_0x6b4624(0x252)][0x0]);for(let _0x1099f5=_0x47ce62[_0x6b4624(0x173)]-0x1;_0x1099f5>=0x0;_0x1099f5--){const _0x371457={'id':_0x6b4624(0x13f),'params':{..._0x47ce62[_0x1099f5]}},_0x15f0b2={'id':'doc.mutation.rich-text-editing','params':{..._0xa1275a[_0x1099f5]}},_0x1d21d1=this['_transformService'][_0x6b4624(0x277)](_0x1c34c6,_0x371457,!0x1),_0x40ceb1=this['_transformService']['transformMutation'](_0x5b9673,_0x15f0b2,!0x1);if(_0x48ab2e(_0x1d21d1))throw _0x1d21d1[_0x6b4624(0x192)];if(_0x48ab2e(_0x40ceb1))throw _0x40ceb1['error'];_0x49750a[_0x6b4624(0x2c2)](_0x1d21d1[_0x6b4624(0x181)]['params']),_0x58d5bf[_0x6b4624(0x2c2)](_0x40ceb1['m2Prime'][_0x6b4624(0x166)]),_0x1c34c6=_0x1d21d1[_0x6b4624(0x230)],_0x5b9673=_0x40ceb1[_0x6b4624(0x230)];}_0x49204a['setUndoRedoMutationParamsCache']({'undoCache':_0x49750a,'redoCache':_0x58d5bf});}['_transformPreviousActiveRange'](_0x2fc852){const _0x5b7b61=_0x5724cd,{unitID:_0x4989ba}=_0x2fc852,_0x4bfada=this[_0x5b7b61(0x299)][_0x5b7b61(0xdf)](_0x4989ba)['with'](_0x15fd68),_0xeee347=_0x4bfada[_0x5b7b61(0x283)]();if(_0xeee347==null)return;const _0x4b3e76=[{'id':_0x5b7b61(0x13f),'params':{'unitId':_0x2fc852[_0x5b7b61(0x2bf)],'actions':null,'textRanges':[_0xeee347]}}],_0x108e32=this[_0x5b7b61(0x199)]['transformMutationsWithChangeset'](_0x2fc852,_0x4b3e76);if(!_0x11903c(_0x108e32))throw _0x108e32['error'];const _0x95b6ce=_0x108e32['m2Prime'][0x0][_0x5b7b61(0x166)][_0x5b7b61(0x28c)];Array['isArray'](_0x95b6ce)&&_0x95b6ce[_0x5b7b61(0x173)]&&_0x4bfada[_0x5b7b61(0x1d7)](_0x95b6ce[0x0]);}};_e=_n([ot(0x0,_0x4603fd),ot(0x1,_0x21229d)],_e);var ln=Object[_0x5724cd(0x231)],hn=(_0x5ee56f,_0x434a04,_0x112a63,_0x286a53)=>{const _0x7128d9=_0x5724cd;for(var _0x55ca71=_0x286a53>0x1?void 0x0:_0x286a53?ln(_0x434a04,_0x112a63):_0x434a04,_0x8e0749=_0x5ee56f[_0x7128d9(0x173)]-0x1,_0x5c778e;_0x8e0749>=0x0;_0x8e0749--)(_0x5c778e=_0x5ee56f[_0x8e0749])&&(_0x55ca71=_0x5c778e(_0x55ca71)||_0x55ca71);return _0x55ca71;},Re=(_0x11b99b,_0x107d39)=>(_0x27a2a4,_0x1c4679)=>_0x107d39(_0x27a2a4,_0x1c4679,_0x11b99b);let le=class{constructor(_0x4764a9,_0x359e5f,_0x358fc1){const _0x1a5106=_0x5724cd;this[_0x1a5106(0x219)]=_0x4764a9,this[_0x1a5106(0x199)]=_0x359e5f,this[_0x1a5106(0x22c)]=_0x358fc1;}[_0x5724cd(0xf6)](_0x5398b1){const _0x1725c4=_0x5724cd;this[_0x1725c4(0xf2)](_0x5398b1);}[_0x5724cd(0x152)](_0x22a153){const _0x1a602b=_0x5724cd,{unitID:_0x420f80}=_0x22a153,{collaboration:_0x5015f1}=this[_0x1a602b(0x22c)]['getStateCache'](_0x420f80);if(_0x5015f1[_0x1a602b(0x173)]===0x0)return _0x22a153;let _0x5d8902=_0x352d2a['deepClone'](_0x22a153[_0x1a602b(0x252)][0x0]);for(let _0x216412=0x0;_0x216412<_0x5015f1['length'];_0x216412++){const _0x280004={'id':_0x1a602b(0x13f),'params':{'unitId':_0x5015f1[_0x216412]['unitId'],..._0x5015f1[_0x216412][_0x1a602b(0x15d)]}},_0x259ce8=this['_transformService'][_0x1a602b(0x277)](_0x5d8902,_0x280004,!0x1);if(_0x48ab2e(_0x259ce8))throw _0x259ce8['error'];_0x5d8902=_0x259ce8[_0x1a602b(0x230)];}return{..._0x352d2a[_0x1a602b(0x119)](_0x22a153),'mutations':[_0x5d8902]};}[_0x5724cd(0xf2)](_0x30dc0c){const _0x37537a=_0x5724cd,{unitID:_0xc9518f}=_0x30dc0c,{history:_0x28a495,collaboration:_0x48e0fc}=this[_0x37537a(0x22c)][_0x37537a(0x212)](_0xc9518f);if(_0x28a495['length']===0x0&&_0x48e0fc[_0x37537a(0x173)]===0x0)return;const _0x2ff94d=[],_0xda29ed=[];let _0x1f5194=_0x352d2a[_0x37537a(0x119)](_0x30dc0c[_0x37537a(0x252)][0x0]),_0x404404=_0x352d2a['deepClone'](_0x30dc0c['mutations'][0x0]);for(let _0x3dcdb2=_0x28a495[_0x37537a(0x173)]-0x1;_0x3dcdb2>=0x0;_0x3dcdb2--){const _0x27b414={'id':_0x37537a(0x13f),'params':{'unitId':_0x28a495[_0x3dcdb2][_0x37537a(0x164)],..._0x28a495[_0x3dcdb2][_0x37537a(0x2a5)]}},_0x4f5562={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x28a495[_0x3dcdb2][_0x37537a(0x164)],..._0x28a495[_0x3dcdb2][_0x37537a(0x15d)]}},_0x1427c9=this[_0x37537a(0x199)][_0x37537a(0x277)](_0x1f5194,_0x27b414,!0x1),_0x4e127f=this[_0x37537a(0x199)]['transformMutation'](_0x404404,_0x4f5562,!0x1);if(_0x48ab2e(_0x1427c9))throw _0x1427c9['error'];if(_0x48ab2e(_0x4e127f))throw _0x4e127f['error'];_0x2ff94d[_0x37537a(0x2c2)]({..._0x28a495[_0x3dcdb2],'undoState':_0x1427c9[_0x37537a(0x181)][_0x37537a(0x166)],'redoState':_0x4e127f['m2Prime']['params']}),_0x1f5194=_0x1427c9[_0x37537a(0x230)],_0x404404=_0x4e127f[_0x37537a(0x230)];}_0x1f5194=_0x352d2a['deepClone'](_0x30dc0c['mutations'][0x0]),_0x404404=_0x352d2a[_0x37537a(0x119)](_0x30dc0c[_0x37537a(0x252)][0x0]);for(let _0x335075=_0x48e0fc['length']-0x1;_0x335075>=0x0;_0x335075--){const _0x38f297={'id':_0x37537a(0x13f),'params':{'unitId':_0x48e0fc[_0x335075][_0x37537a(0x164)],..._0x48e0fc[_0x335075][_0x37537a(0x2a5)]}},_0x2a739e={'id':_0x37537a(0x13f),'params':{'unitId':_0x48e0fc[_0x335075]['unitId'],..._0x48e0fc[_0x335075]['redoState']}},_0x1ab06d=this['_transformService'][_0x37537a(0x277)](_0x1f5194,_0x38f297,!0x1),_0x42e98f=this['_transformService'][_0x37537a(0x277)](_0x404404,_0x2a739e,!0x1);if(_0x48ab2e(_0x1ab06d))throw _0x1ab06d[_0x37537a(0x192)];if(_0x48ab2e(_0x42e98f))throw _0x42e98f[_0x37537a(0x192)];_0xda29ed[_0x37537a(0x2c2)]({..._0x48e0fc[_0x335075],'undoState':_0x1ab06d['m2Prime'][_0x37537a(0x166)],'redoState':_0x42e98f[_0x37537a(0x181)][_0x37537a(0x166)]}),_0x1f5194=_0x1ab06d['m1Prime'],_0x404404=_0x42e98f[_0x37537a(0x230)];}this[_0x37537a(0x22c)][_0x37537a(0x118)](_0xc9518f,{'history':_0x2ff94d,'collaboration':_0xda29ed});}};le=hn([Re(0x0,_0x4db080(_0xca9a6f)),Re(0x1,_0x4603fd),Re(0x2,_0x4db080(_0xf2cfc0))],le);var un=Object[_0x5724cd(0x231)],dn=(_0x5d2e73,_0xecceb6,_0x1577b5,_0x2e86c3)=>{const _0xe29b52=_0x5724cd;for(var _0x2f2bfd=_0x2e86c3>0x1?void 0x0:_0x2e86c3?un(_0xecceb6,_0x1577b5):_0xecceb6,_0x4b4a70=_0x5d2e73[_0xe29b52(0x173)]-0x1,_0x24ac21;_0x4b4a70>=0x0;_0x4b4a70--)(_0x24ac21=_0x5d2e73[_0x4b4a70])&&(_0x2f2bfd=_0x24ac21(_0x2f2bfd)||_0x2f2bfd);return _0x2f2bfd;},at=(_0x17b6c5,_0x272dc6)=>(_0x31cfe6,_0x516d1e)=>_0x272dc6(_0x31cfe6,_0x516d1e,_0x17b6c5);let he=class{constructor(_0x233627,_0x241f8e){const _0x55482c=_0x5724cd;this[_0x55482c(0x219)]=_0x233627,this[_0x55482c(0x199)]=_0x241f8e;}['transformSelections'](_0x5e6cfe){const _0x544beb=_0x5724cd;var _0x30bded;const _0x372f03=this[_0x544beb(0x219)]['get'](_0x5a5e71),_0x48950f=(_0x30bded=_0x372f03[_0x544beb(0x2da)]())!=null?_0x30bded:[];if(_0x48950f['length']===0x0)return;const _0x570a67=_0x5e6cfe[_0x544beb(0x2bf)],_0x541152=[{'id':_0x544beb(0x13f),'params':{'unitId':_0x570a67,'actions':null,'textRanges':_0x48950f}}],_0x4232ff=this[_0x544beb(0x199)][_0x544beb(0x13d)](_0x5e6cfe,_0x541152);if(!_0x11903c(_0x4232ff))throw _0x4232ff[_0x544beb(0x192)];const _0x129c7d=_0x4232ff['m2Prime'][0x0]['params']['textRanges'];Array[_0x544beb(0x154)](_0x129c7d)&&_0x129c7d['length']&&_0x372f03[_0x544beb(0x223)](_0x129c7d,{'unitId':_0x570a67,'subUnitId':_0x570a67},!0x1);}};he=dn([at(0x0,_0x4db080(_0xca9a6f)),at(0x1,_0x4603fd)],he);var Sn=Object['getOwnPropertyDescriptor'],In=(_0x4fceab,_0x428b62,_0x34f030,_0x1501c7)=>{for(var _0x31194e=_0x1501c7>0x1?void 0x0:_0x1501c7?Sn(_0x428b62,_0x34f030):_0x428b62,_0x529b3e=_0x4fceab['length']-0x1,_0x1292c3;_0x529b3e>=0x0;_0x529b3e--)(_0x1292c3=_0x4fceab[_0x529b3e])&&(_0x31194e=_0x1292c3(_0x31194e)||_0x31194e);return _0x31194e;},b=(_0x3853a8,_0x2dae81)=>(_0x3cfe62,_0xd8530b)=>_0x2dae81(_0x3cfe62,_0xd8530b,_0x3853a8);let ue=class extends _0x2916da{constructor(_0x46f4aa,_0x4848b0,_0x46766a,_0x36a371,_0x134799,_0x158a94,_0x4014d6,_0x16d140){const _0x47f1c7=_0x5724cd;super(),l(this,_0x47f1c7(0x23f),new _0x29a5ca(_0x50afaa[_0x47f1c7(0x132)])),(this[_0x47f1c7(0x22c)]=_0x46f4aa,this[_0x47f1c7(0x20c)]=_0x4848b0,this['_docTransformIMECacheService']=_0x46766a,this[_0x47f1c7(0x300)]=_0x36a371,this[_0x47f1c7(0x136)]=_0x134799,this[_0x47f1c7(0xf1)]=_0x158a94,this[_0x47f1c7(0x124)]=_0x4014d6,this['_localeService']=_0x16d140,this[_0x47f1c7(0x12a)]());}[_0x5724cd(0x12a)](){const _0x2d59db=_0x5724cd;this[_0x2d59db(0x1e2)](this[_0x2d59db(0x20c)][_0x2d59db(0x109)][_0x2d59db(0x1ce)](_0x5ebd9a=>{const _0x59df0e=_0x2d59db,_0x2ac0cb=this['_docStateChangeManagerService'][_0x59df0e(0xd7)][_0x59df0e(0x1ce)](_0x23cd7d=>{const _0xa5b81b=_0x59df0e;if(_0x23cd7d==null)return;const {unitId:_0x42b30e,redoState:_0x5c942b,commandId:_0x111926}=_0x23cd7d;if(_0x42b30e!==_0x5ebd9a[_0xa5b81b(0x2bf)])return;const _0x314c04={'id':_0x111926,'type':_0x393e92['MUTATION'],'params':{'unitId':_0x42b30e,'actions':_0x5c942b[_0xa5b81b(0x1fb)],'textRanges':null}};_0x5ebd9a[_0xa5b81b(0x1bc)](_0x314c04);});if(_0x5ebd9a[_0x59df0e(0x1e2)](_0x2ac0cb),_0x5ebd9a instanceof _0x342039){const _0x38daaa={'onTransformIME':_0xa84188=>this[_0x59df0e(0x17e)][_0x59df0e(0x1b9)](_0xa84188),'onTransformState':_0x43683e=>this[_0x59df0e(0x300)]['transformStateCache'](_0x43683e),'onTransformSelections':_0x593683=>this[_0x59df0e(0x136)]['transformSelections'](_0x593683),'onSyncEditingCollabCursor':_0x2e7950=>this[_0x59df0e(0xf1)]['syncEditingCollabCursor'](_0x2e7950),'onTransformRemoteChangesetByIMECache':_0x5003e1=>this[_0x59df0e(0x17e)][_0x59df0e(0x152)](_0x5003e1),'onTransformRemoteChangesetByStateCache':_0x31e406=>this[_0x59df0e(0x300)][_0x59df0e(0x152)](_0x31e406)};_0x5ebd9a[_0x59df0e(0x2b4)](_0x38daaa);}}));}};ue=In([b(0x0,_0x4db080(_0xf2cfc0)),b(0x1,_0x4db080(_0x18f9ba)),b(0x2,_0x4db080(_e)),b(0x3,_0x4db080(le)),b(0x4,_0x4db080(he)),b(0x5,_0x4db080(Xe)),b(0x6,_0x60d69d),b(0x7,_0x4db080(_0x234aab))],ue);var Z=(_0x15b9bd=>(_0x15b9bd[_0x15b9bd[_0x5724cd(0x306)]=0x0]='UNDEFINED',_0x15b9bd[_0x15b9bd['OK']=0x1]='OK',_0x15b9bd[_0x15b9bd['INTERNAL_ERROR']=0x2]=_0x5724cd(0x222),_0x15b9bd[_0x15b9bd[_0x5724cd(0x2a7)]=0x3]=_0x5724cd(0x2a7),_0x15b9bd[_0x15b9bd[_0x5724cd(0x10d)]=0x4]=_0x5724cd(0x10d),_0x15b9bd[_0x15b9bd['UNAUTHENTICATED']=0x5]=_0x5724cd(0x21f),_0x15b9bd[_0x15b9bd[_0x5724cd(0x2cc)]=0x6]='ALREADY_EXISTS',_0x15b9bd[_0x15b9bd['INVALID_ARGUMENT']=0x7]=_0x5724cd(0x23b),_0x15b9bd[_0x15b9bd['TOO_MANY_REQUESTS']=0x8]=_0x5724cd(0x1f8),_0x15b9bd[_0x15b9bd[_0x5724cd(0x168)]=0x9]=_0x5724cd(0x168),_0x15b9bd[_0x15b9bd['LOGIN_FAILED']=0xa]=_0x5724cd(0x2f3),_0x15b9bd[_0x15b9bd[_0x5724cd(0x29c)]=0xb]=_0x5724cd(0x29c),_0x15b9bd[_0x15b9bd[_0x5724cd(0x1d3)]=0xc]=_0x5724cd(0x1d3),_0x15b9bd[_0x15b9bd[_0x5724cd(0x2bd)]=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0x15b9bd[_0x15b9bd[_0x5724cd(0x21a)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x15b9bd[_0x15b9bd[_0x5724cd(0x1fd)]=0xf]='AUTHORIZE_CODE_ILLEGAL',_0x15b9bd[_0x15b9bd[_0x5724cd(0x19c)]=0x10]=_0x5724cd(0x19c),_0x15b9bd[_0x15b9bd[_0x5724cd(0xe8)]=0x64]=_0x5724cd(0xe8),_0x15b9bd[_0x15b9bd[_0x5724cd(0x309)]=0x65]=_0x5724cd(0x309),_0x15b9bd[_0x15b9bd[_0x5724cd(0x2fd)]=0xc9]='USER_NOT_FOUND',_0x15b9bd[_0x15b9bd[_0x5724cd(0x180)]=0xca]=_0x5724cd(0x180),_0x15b9bd[_0x15b9bd[_0x5724cd(0x217)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x15b9bd[_0x15b9bd[_0x5724cd(0x1e9)]=0x1771]=_0x5724cd(0x1e9),_0x15b9bd[_0x15b9bd[_0x5724cd(0x165)]=0x1772]=_0x5724cd(0x165),_0x15b9bd[_0x15b9bd[_0x5724cd(0x175)]=0x1773]=_0x5724cd(0x175),_0x15b9bd[_0x15b9bd[_0x5724cd(0x176)]=0x1b59]='APPLY_REJECT',_0x15b9bd[_0x15b9bd['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x5724cd(0x255),_0x15b9bd[_0x15b9bd['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x5724cd(0x27e),_0x15b9bd[_0x15b9bd[_0x5724cd(0x138)]=0x1b5c]=_0x5724cd(0x138),_0x15b9bd[_0x15b9bd[_0x5724cd(0x287)]=0x1b5d]=_0x5724cd(0x287),_0x15b9bd[_0x15b9bd[_0x5724cd(0x30c)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x15b9bd[_0x15b9bd['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x5724cd(0x29f),_0x15b9bd[_0x15b9bd['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x5724cd(0x2a0),_0x15b9bd[_0x15b9bd[_0x5724cd(0x18b)]=0x232b]=_0x5724cd(0x18b),_0x15b9bd[_0x15b9bd['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x5724cd(0x16c),_0x15b9bd[_0x15b9bd[_0x5724cd(0x2db)]=0x232d]=_0x5724cd(0x2db),_0x15b9bd[_0x15b9bd[_0x5724cd(0xf0)]=0x2711]=_0x5724cd(0xf0),_0x15b9bd[_0x15b9bd['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x15b9bd[_0x15b9bd[_0x5724cd(0x280)]=0x2713]=_0x5724cd(0x280),_0x15b9bd[_0x15b9bd[_0x5724cd(0x12c)]=0x2714]=_0x5724cd(0x12c),_0x15b9bd[_0x15b9bd[_0x5724cd(0x1c2)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x15b9bd[_0x15b9bd['YUUMI_ASYNCIO_CANCELLED']=0x271b]=_0x5724cd(0x143),_0x15b9bd[_0x15b9bd['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x5724cd(0x22a),_0x15b9bd[_0x15b9bd[_0x5724cd(0x2e3)]=0x271d]=_0x5724cd(0x2e3),_0x15b9bd[_0x15b9bd[_0x5724cd(0x20d)]=0x271e]=_0x5724cd(0x20d),_0x15b9bd[_0x15b9bd[_0x5724cd(0x1f4)]=0x271f]=_0x5724cd(0x1f4),_0x15b9bd[_0x15b9bd[_0x5724cd(0x2a1)]=0x2720]=_0x5724cd(0x2a1),_0x15b9bd[_0x15b9bd['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x5724cd(0x241),_0x15b9bd[_0x15b9bd['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x5724cd(0x2b1),_0x15b9bd[_0x15b9bd[_0x5724cd(0x2c3)]=0x2ee2]='INVALID_INVITE_CODE',_0x15b9bd[_0x15b9bd[_0x5724cd(0x2f1)]=0x2ee3]=_0x5724cd(0x2f1),_0x15b9bd[_0x15b9bd[_0x5724cd(0x292)]=0x2ee4]='USER_NOT_INVITED_CODE',_0x15b9bd[_0x15b9bd['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x5724cd(0x2fc),_0x15b9bd[_0x15b9bd[_0x5724cd(0x1f1)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x15b9bd[_0x15b9bd[_0x5724cd(0x1ea)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x15b9bd[_0x15b9bd[_0x5724cd(0x27d)]=0x32cb]=_0x5724cd(0x27d),_0x15b9bd[_0x15b9bd[_0x5724cd(0x174)]=0x36b1]=_0x5724cd(0x174),_0x15b9bd[_0x15b9bd[_0x5724cd(0x1fa)]=0x36b2]=_0x5724cd(0x1fa),_0x15b9bd[_0x15b9bd[_0x5724cd(0x1d9)]=0x36b3]=_0x5724cd(0x1d9),_0x15b9bd[_0x15b9bd[_0x5724cd(0x28f)]=0x36b4]=_0x5724cd(0x28f),_0x15b9bd[_0x15b9bd['ENTITLE_CHAT_LIMIT_EXCEED']=0x3715]=_0x5724cd(0xde),_0x15b9bd[_0x15b9bd[_0x5724cd(0x160)]=0x3716]=_0x5724cd(0x160),_0x15b9bd[_0x15b9bd[_0x5724cd(0x12d)]=0x3717]=_0x5724cd(0x12d),_0x15b9bd[_0x15b9bd[_0x5724cd(0x22d)]=0x37dd]=_0x5724cd(0x22d),_0x15b9bd[_0x15b9bd[_0x5724cd(0xfe)]=0x3a99]=_0x5724cd(0xfe),_0x15b9bd[_0x15b9bd[_0x5724cd(0x25d)]=0x3a9a]='REDEMPTION_CODE_INACTIVE',_0x15b9bd[_0x15b9bd[_0x5724cd(0x10e)]=0x3a9b]=_0x5724cd(0x10e),_0x15b9bd[_0x15b9bd['REDEMPTION_CODE_NOT_STARTED']=0x3a9c]=_0x5724cd(0x196),_0x15b9bd[_0x15b9bd[_0x5724cd(0x19b)]=0x3a9d]=_0x5724cd(0x19b),_0x15b9bd[_0x15b9bd['REDEMPTION_USER_REDEEM_TIMES_EXCEED']=0x3a9e]=_0x5724cd(0x142),_0x15b9bd[_0x15b9bd[_0x5724cd(0x2ed)]=0x3a9f]=_0x5724cd(0x2ed),_0x15b9bd[_0x15b9bd['DATA_SOURCE_TOO_LARGE']=0x3e81]='DATA_SOURCE_TOO_LARGE',_0x15b9bd[_0x15b9bd[_0x5724cd(0x17a)]=-0x1]=_0x5724cd(0x17a),_0x15b9bd))(Z||{});function mn(_0x107abe){const _0x4e70dc=_0x5724cd;var _0x43dfb6,_0x3c58cc;const _0x4517d4=(_0x43dfb6=_0x107abe[_0x4e70dc(0x29a)])==null?void 0x0:_0x43dfb6[_0x4e70dc(0x13c)],_0x1afa93=((_0x3c58cc=_0x107abe['stageInfo'])==null?void 0x0:_0x3c58cc['totalFormulasToCalculate'])||0x0;return _0x4517d4===_0x4cc043[_0x4e70dc(0x239)]&&_0x1afa93>0x0;}function fn(_0x225c41){const _0x24e59c=_0x5724cd;return _0x225c41[_0x24e59c(0x250)]===_0x3cc8fe[_0x24e59c(0x269)];}var gn=Object[_0x5724cd(0x231)],vn=(_0x271461,_0x5ae16e,_0x2a5bb6,_0x4ba617)=>{for(var _0x3c2250=_0x4ba617>0x1?void 0x0:_0x4ba617?gn(_0x5ae16e,_0x2a5bb6):_0x5ae16e,_0x56020b=_0x271461['length']-0x1,_0x9a5930;_0x56020b>=0x0;_0x56020b--)(_0x9a5930=_0x271461[_0x56020b])&&(_0x3c2250=_0x9a5930(_0x3c2250)||_0x3c2250);return _0x3c2250;},P=(_0x1e9d70,_0x342a6f)=>(_0x10ca09,_0x484a0e)=>_0x342a6f(_0x10ca09,_0x484a0e,_0x1e9d70);const En='/universer-api/license/formula/limit/status',pn=_0x5724cd(0x1ca),On='/universer-api/license/formula/limit/done';let de=class extends _0x2916da{constructor(_0x5540db,_0x1399f2,_0x1f1ed1,_0x580e6e,_0x55d509,_0x523cf1,_0x37f8d7){const _0x1ed8b6=_0x5724cd;super(),l(this,_0x1ed8b6(0x2ee),null),l(this,_0x1ed8b6(0x28e),0x0),l(this,_0x1ed8b6(0xda),0x0),l(this,_0x1ed8b6(0x1cc),[]),l(this,_0x1ed8b6(0x2c8),0x0),(this['_messageService']=_0x5540db,this[_0x1ed8b6(0x2ef)]=_0x1399f2,this[_0x1ed8b6(0x184)]=_0x1f1ed1,this[_0x1ed8b6(0x1b0)]=_0x580e6e,this[_0x1ed8b6(0xe1)]=_0x55d509,this[_0x1ed8b6(0x262)]=_0x523cf1,this[_0x1ed8b6(0x14c)]=_0x37f8d7,this[_0x1ed8b6(0x195)]());}[_0x5724cd(0x195)](){const _0x4a2659=_0x5724cd;this['disposeWithMe'](this[_0x4a2659(0x2ef)][_0x4a2659(0x2fb)]((_0x407d01,_0xdf1947)=>{const _0x4c2cfc=_0x4a2659;var _0x7b2ec9;if(_0x407d01['id']!==_0x5f11a2['id'])return;const _0x473081=_0x407d01[_0x4c2cfc(0x166)];if(!this[_0x4c2cfc(0x17d)]((_0x7b2ec9=_0x473081['dirtyRanges'])!=null?_0x7b2ec9:[]))return;if(!this['_checkCalculationAvailable']())throw this[_0x4c2cfc(0x2b8)](_0x407d01,_0xdf1947),this[_0x4c2cfc(0x1c7)](),new _0x426e2a();})),this[_0x4a2659(0x1e2)](this[_0x4a2659(0x2ef)]['onCommandExecuted']((_0x171c6e,_0x52043d)=>{const _0x491225=_0x4a2659;if(_0x171c6e['id']!==_0x3da7cf['id'])return;const _0x23cce8=_0x171c6e[_0x491225(0x166)];if(mn(_0x23cce8)){const _0x58f384=_0x46dcf5();this['_taskIds'][_0x491225(0x2ec)](_0x58f384),this['_startCalculationLimit'](_0x58f384);}else{if(fn(_0x23cce8)&&this[_0x491225(0x1cc)][_0x491225(0x173)]>0x0){const _0x496fd9=this['_taskIds']['shift']();this[_0x491225(0xd2)](_0x496fd9);}}}));}[_0x5724cd(0x207)](){const _0x3ad6e3=_0x5724cd;super[_0x3ad6e3(0x207)](),this[_0x3ad6e3(0x10f)](),this[_0x3ad6e3(0x1cc)]=[],this['_currentUsage']=0x0,this[_0x3ad6e3(0x28e)]=0x0,this[_0x3ad6e3(0x2c8)]=0x0;}async['_checkAndWaitForCalculationPermission'](_0x5d6b8d,_0x2ef5eb){const _0x3e9539=_0x5724cd;for(let _0x432252=0x0;_0x432252<0x1e;_0x432252++)try{if(await this[_0x3e9539(0x1a1)](),this[_0x3e9539(0x1c8)]()){this[_0x3e9539(0x198)](_0x5d6b8d,_0x2ef5eb),this[_0x3e9539(0x124)][_0x3e9539(0x29b)]({'content':this['_localeService']['t'](_0x3e9539(0x107)),'type':_0x408d4f[_0x3e9539(0x2d4)]});return;}await new Promise(_0x2b0a6f=>{const _0x41b1f7=_0x3e9539;this[_0x41b1f7(0x2ee)]=window[_0x41b1f7(0x177)](_0x2b0a6f,0x3e8);});}catch(_0x3d5341){this[_0x3e9539(0x262)][_0x3e9539(0x192)](_0x3d5341);}this['_messageService']['show']({'content':this['_localeService']['t'](_0x3e9539(0x1be)),'type':_0x408d4f[_0x3e9539(0x24e)]});}[_0x5724cd(0x198)](_0x25701e,_0x12ce6d){const _0xe3a972=_0x5724cd;try{this['_commandService'][_0xe3a972(0x1dd)](_0x25701e['id'],_0x25701e['params'],_0x12ce6d);}catch(_0x1fbbc5){this[_0xe3a972(0x262)][_0xe3a972(0x192)](_0x1fbbc5);}}[_0x5724cd(0x1a0)](_0x4d2bfe,_0x4a7592){const _0x2ce059=_0x5724cd;_0x4a7592<this['_lastResponseTimestamp']||(this[_0x2ce059(0x2c8)]=_0x4a7592,this[_0x2ce059(0x28e)]=Number[_0x2ce059(0x2e6)](_0x4d2bfe[_0x2ce059(0x2cd)]),this[_0x2ce059(0xda)]=Number['parseInt'](_0x4d2bfe['currentUsage']));}async['_startCalculationLimit'](_0x24fde7){const _0x27cf2b=_0x5724cd;var _0x4cc6a2,_0x5db882;const _0x460592=Date[_0x27cf2b(0x16a)]();try{const _0x9a5396=((_0x4cc6a2=this['_configService']['getConfig'](_0x32c484))==null?void 0x0:_0x4cc6a2[_0x27cf2b(0x19a)])||pn,_0x302def=(await this['_httpService'][_0x27cf2b(0x245)](_0x9a5396,{'body':JSON['stringify']({'taskId':_0x24fde7})}))['body'];if(((_0x5db882=_0x302def[_0x27cf2b(0x192)])==null?void 0x0:_0x5db882[_0x27cf2b(0x226)])!==Z['OK'])return;this[_0x27cf2b(0x1a0)](_0x302def[_0x27cf2b(0x237)],_0x460592);}catch(_0x3ad74f){this[_0x27cf2b(0x262)][_0x27cf2b(0x192)](_0x3ad74f);}}async[_0x5724cd(0x1a1)](_0x45a44a){const _0x2f4c33=_0x5724cd;var _0x3f2e68,_0xf16e33;const _0x5d5880=Date[_0x2f4c33(0x16a)]();try{const _0x31919c=((_0x3f2e68=this[_0x2f4c33(0x184)][_0x2f4c33(0x2ca)](_0x32c484))==null?void 0x0:_0x3f2e68[_0x2f4c33(0x2b2)])||En,_0x1a63ba=_0x45a44a?_0x31919c+'?taskId='+encodeURIComponent(_0x45a44a):_0x31919c,_0x5175e0=(await this[_0x2f4c33(0x1b0)][_0x2f4c33(0x297)](_0x1a63ba))[_0x2f4c33(0x2a9)];if(((_0xf16e33=_0x5175e0[_0x2f4c33(0x192)])==null?void 0x0:_0xf16e33['code'])!==Z['OK'])return;this[_0x2f4c33(0x1a0)](_0x5175e0[_0x2f4c33(0x237)],_0x5d5880);}catch(_0xf1743f){this[_0x2f4c33(0x262)][_0x2f4c33(0x192)](_0xf1743f);}}async['_releaseCalculationLimit'](_0x5328be){const _0x2171ff=_0x5724cd;var _0x133923,_0xfad265;const _0x405c9d=Date[_0x2171ff(0x16a)]();try{const _0x1dace3=((_0x133923=this['_configService'][_0x2171ff(0x2ca)](_0x32c484))==null?void 0x0:_0x133923['releaseFormulaLimitUrl'])||On,_0x30f197=(await this[_0x2171ff(0x1b0)][_0x2171ff(0x245)](_0x1dace3,{'body':JSON[_0x2171ff(0x274)]({'taskId':_0x5328be})}))['body'];if(((_0xfad265=_0x30f197[_0x2171ff(0x192)])==null?void 0x0:_0xfad265[_0x2171ff(0x226)])!==Z['OK'])return;this[_0x2171ff(0x1a0)](_0x30f197['limitInfo'],_0x405c9d);}catch(_0x4d6e41){this[_0x2171ff(0x262)][_0x2171ff(0x192)](_0x4d6e41);}}['_checkCalculationAvailable'](){const _0x4e7847=_0x5724cd;return this[_0x4e7847(0x28e)]===0x0?!0x0:this[_0x4e7847(0x28e)]-this[_0x4e7847(0xda)]>0x0;}[_0x5724cd(0x10f)](){const _0x11fba1=_0x5724cd;this[_0x11fba1(0x2ee)]&&(clearTimeout(this[_0x11fba1(0x2ee)]),this[_0x11fba1(0x2ee)]=null);}[_0x5724cd(0x1c7)](){const _0x3526c5=_0x5724cd;this[_0x3526c5(0x124)][_0x3526c5(0x29b)]({'content':this[_0x3526c5(0x14c)]['t'](_0x3526c5(0x224)),'type':_0x408d4f[_0x3526c5(0x26b)]});}[_0x5724cd(0x17d)](_0x306c63){const _0x78e9d5=_0x5724cd;for(const _0x4d7c45 of _0x306c63){const {unitId:_0x2f43f4,sheetId:_0x25a200,range:_0x4693cb}=_0x4d7c45,_0x350495=this[_0x78e9d5(0xe1)][_0x78e9d5(0x2ae)](_0x2f43f4);if(!_0x350495)continue;const _0x3e5f13=_0x350495['getSheetBySheetId'](_0x25a200);if(!_0x3e5f13)continue;const _0x2174b3=_0x3e5f13[_0x78e9d5(0xfd)]();for(let _0x199d53=_0x4693cb[_0x78e9d5(0x29d)];_0x199d53<=_0x4693cb[_0x78e9d5(0x20f)];_0x199d53++)for(let _0x5e4496=_0x4693cb[_0x78e9d5(0x2b7)];_0x5e4496<=_0x4693cb['endColumn'];_0x5e4496++){const _0x4298ff=_0x2174b3[_0x78e9d5(0x116)](_0x199d53,_0x5e4496);if(_0x4298ff&&(_0x444db3(_0x4298ff['f'])||_0xaf5a34(_0x4298ff['si'])))return!0x0;}}return!0x1;}};de=vn([P(0x0,_0x4db080(_0x60d69d)),P(0x1,_0x3d0367),P(0x2,_0xa43f31),P(0x3,_0x4db080(_0x367dbf)),P(0x4,_0x166a1e),P(0x5,_0x1edaba),P(0x6,_0x4db080(_0x234aab))],de);var Tn=Object[_0x5724cd(0x231)],Cn=(_0x5bada5,_0x4d0fbf,_0x32f067,_0x1622f1)=>{const _0x362a7e=_0x5724cd;for(var _0x5d8a78=_0x1622f1>0x1?void 0x0:_0x1622f1?Tn(_0x4d0fbf,_0x32f067):_0x4d0fbf,_0x5551a3=_0x5bada5[_0x362a7e(0x173)]-0x1,_0x23fe5c;_0x5551a3>=0x0;_0x5551a3--)(_0x23fe5c=_0x5bada5[_0x5551a3])&&(_0x5d8a78=_0x23fe5c(_0x5d8a78)||_0x5d8a78);return _0x5d8a78;},De=(_0x4a7fee,_0x146d8e)=>(_0x58cd8e,_0x1513e6)=>_0x146d8e(_0x58cd8e,_0x1513e6,_0x4a7fee);let xe=class extends _0x2916da{constructor(_0x1dae13,_0x158476,_0x221ff0){const _0x2678b3=_0x5724cd;super(),l(this,_0x2678b3(0x17c),new Map()),l(this,_0x2678b3(0x2ea),new Map()),l(this,'_disabled',!0x1),(this['_configService']=_0x1dae13,this['_localStorageService']=_0x158476,this[_0x2678b3(0x2be)]=_0x221ff0);}[_0x5724cd(0x150)](){const _0x591e91=_0x5724cd;this[_0x591e91(0x2d1)]=!0x0;}[_0x5724cd(0x26a)](){this['_disabled']=!0x1;}get['saveTaskMap'](){const _0x5249e5=_0x5724cd;return this[_0x5249e5(0x2ea)];}[_0x5724cd(0x207)](){const _0x4ca847=_0x5724cd;this[_0x4ca847(0x187)]()[_0x4ca847(0x189)](()=>super[_0x4ca847(0x207)]());}async['loadOfflineData'](_0x57ae34){const _0x27d415=_0x5724cd;return this[_0x27d415(0x2d1)]?null:this[_0x27d415(0x155)][_0x27d415(0x278)](_0xb1ea91(_0x57ae34));}async[_0x5724cd(0x2c4)](_0x2301a2,_0x48dc42){const _0x57be4f=_0x5724cd;return!!this[_0x57be4f(0x155)][_0x57be4f(0x30a)](_0x2301a2,_0x48dc42);}['updateOfflineData'](_0x748e38,_0x46c941,_0x291e29,_0x5d405f){const _0x256d07=_0x5724cd,_0x36612a=this[_0x256d07(0x2be)][_0x256d07(0x20e)](_0x748e38);this[_0x256d07(0x17c)][_0x256d07(0x2f0)](_0x748e38,{'unitID':_0x748e38,'type':_0x46c941,'awaitingChangeset':_0x291e29,'mutations':_0x5d405f,'rev':_0x36612a}),this['_saveTaskMap']['has'](_0x748e38)||this[_0x256d07(0x1fe)](_0x748e38);}['_scheduleSaving'](_0x20909e){const _0x8df7f1=_0x5724cd,_0x2ce8d0=this['_getSaveTimeout']();_0x2ce8d0===0x0?this[_0x8df7f1(0x1a7)](_0x20909e):this[_0x8df7f1(0x2ea)][_0x8df7f1(0x2f0)](_0x20909e,setTimeout(()=>this[_0x8df7f1(0x1a7)](_0x20909e),_0x2ce8d0));}[_0x5724cd(0x2c6)](){const _0x380c97=_0x5724cd;var _0x1a5bb9;return(_0x1a5bb9=this[_0x380c97(0x184)]['getConfig'](_0x23a142))!=null?_0x1a5bb9:_0x283278;}[_0x5724cd(0x1a7)](_0xa9fdb1){const _0x5f0bbc=_0x5724cd,_0x2b33c9=this['_saveTaskMap'][_0x5f0bbc(0x297)](_0xa9fdb1);return _0x2b33c9!==void 0x0&&window[_0x5f0bbc(0x272)](_0x2b33c9),this['_localStorageService'][_0x5f0bbc(0x30a)](_0xb1ea91(_0xa9fdb1),this[_0x5f0bbc(0x17c)]['get'](_0xa9fdb1))[_0x5f0bbc(0x189)](()=>this['_saveTaskMap'][_0x5f0bbc(0x1bd)](_0xa9fdb1));}async[_0x5724cd(0x187)](){const _0xbfd702=_0x5724cd,_0xf4362=[];this[_0xbfd702(0x2ea)][_0xbfd702(0x1a5)]((_0x31f37f,_0x3b8176)=>{const _0x443864=_0xbfd702;window[_0x443864(0x272)](_0x31f37f),_0xf4362['push'](this[_0x443864(0x1a7)](_0x3b8176)[_0x443864(0x189)](()=>{const _0x5bd838=_0x443864;this[_0x5bd838(0x2ea)][_0x5bd838(0x1bd)](_0x3b8176);}));}),await Promise['all'](_0xf4362);}};xe=Cn([De(0x0,_0xa43f31),De(0x1,_0x5d62b5),De(0x2,_0x4db080(_0x294c44))],xe);class Rn extends _0x466553{constructor(){const _0x351d6f=_0x5724cd;super(),l(this,_0x351d6f(0xdd)),this[_0x351d6f(0xdd)]=_0xba30(window,_0x351d6f(0xe4))[_0x351d6f(0x148)](_0x29d39(this[_0x351d6f(0x169)]),_0x44c2b3(0x1),_0x3ab484(void 0x0));}['setParam'](_0x174185,_0x33ad19,_0x1142da=!0x1){const _0x1f226e=_0x5724cd,_0x2428d1=new URL(window[_0x1f226e(0x13b)][_0x1f226e(0x19f)]);_0x2428d1[_0x1f226e(0x24f)][_0x1f226e(0x2f0)](_0x174185,_0x33ad19),_0x1142da?window[_0x1f226e(0x151)]['replaceState']('','',_0x2428d1[_0x1f226e(0x122)]()):window[_0x1f226e(0x151)]['pushState']('','',_0x2428d1[_0x1f226e(0x122)]());}[_0x5724cd(0x1a9)](_0x335e07,_0x3312d9=!0x1){const _0x5ebcbb=_0x5724cd,_0xc1a19a=new URL(window[_0x5ebcbb(0x13b)]['href']);_0xc1a19a[_0x5ebcbb(0x24f)][_0x5ebcbb(0x1bd)](_0x335e07),_0x3312d9?window['history'][_0x5ebcbb(0x147)]('','',_0xc1a19a['toString']()):window['history'][_0x5ebcbb(0x268)]('','',_0xc1a19a[_0x5ebcbb(0x122)]());}['getParam'](_0x3f54d5){const _0x17c742=_0x5724cd;var _0xb9322b;return(_0xb9322b=new URL(window[_0x17c742(0x13b)][_0x17c742(0x19f)])[_0x17c742(0x24f)]['get'](_0x3f54d5))!=null?_0xb9322b:void 0x0;}}var Dn=Object['defineProperty'],Nn=Object[_0x5724cd(0x231)],bn=(_0x513988,_0x57c0c5,_0x4b72f7)=>_0x57c0c5 in _0x513988?Dn(_0x513988,_0x57c0c5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4b72f7}):_0x513988[_0x57c0c5]=_0x4b72f7,Un=(_0x14f375,_0x2be610,_0x4e667d,_0x242b5e)=>{for(var _0x3562c3=_0x242b5e>0x1?void 0x0:_0x242b5e?Nn(_0x2be610,_0x4e667d):_0x2be610,_0x386f9e=_0x14f375['length']-0x1,_0x5b7d1c;_0x386f9e>=0x0;_0x386f9e--)(_0x5b7d1c=_0x14f375[_0x386f9e])&&(_0x3562c3=_0x5b7d1c(_0x3562c3)||_0x3562c3);return _0x3562c3;},Ne=(_0xb765ab,_0x2b28bd)=>(_0x2cc9fc,_0x443ce8)=>_0x2b28bd(_0x2cc9fc,_0x443ce8,_0xb765ab),Ln=(_0x4fbe79,_0xe2ebbf,_0x436592)=>bn(_0x4fbe79,_0xe2ebbf+'',_0x436592);const Mn=_0x5724cd(0x170);let Be=class extends _0x4c752d{constructor(_0x789293=rt,_0x5b9cc2,_0x122697,_0x3adbc3){const _0x385020=_0x5724cd;super(),this[_0x385020(0x27c)]=_0x789293,this[_0x385020(0x299)]=_0x5b9cc2,this[_0x385020(0x219)]=_0x122697,this[_0x385020(0x184)]=_0x3adbc3;const {..._0x57d60f}=_0x21d242({},rt,this['_config']);this['_configService']['setConfig'](an,_0x57d60f);}[_0x5724cd(0xd1)](){const _0x27b395=_0x5724cd;this['_registerDependencies'](),this[_0x27b395(0x279)]();}[_0x5724cd(0x137)](){this['_registerRenderDependencies']();}[_0x5724cd(0x2e4)](){const _0x2044d3=_0x5724cd;var _0x2bb1e3;const _0x56cf05=[[je],[de],[he],[_e],[le],[Xe],[At,{'useClass':Rn}],[_0x3c3284,{'useClass':_0x36b239}],[_0x5b4070,{'useClass':xe}],[oe],[ue],[ce],[H],[Ae],[ae]];_0x4e8074(this[_0x2044d3(0x219)],_0x6b7a83(_0x56cf05,(_0x2bb1e3=this[_0x2044d3(0x27c)])==null?void 0x0:_0x2bb1e3[_0x2044d3(0x27a)]));}[_0x5724cd(0x2f7)](){const _0x4733e6=_0x5724cd;this['disposeWithMe'](this[_0x4733e6(0x299)]['registerRenderModule'](_0x5483ba[_0x4733e6(0x28b)],[ye])),this[_0x4733e6(0x1e2)](this[_0x4733e6(0x299)][_0x4733e6(0x24c)](_0x5483ba['UNIVER_SHEET'],[$e]));}[_0x5724cd(0x279)](){const _0x12ea98=_0x5724cd;_0x19cfd9(this[_0x12ea98(0x219)],[[H],[oe],[ue],[ce],[ae],[de]]);}};Ln(Be,_0x5724cd(0x215),Mn),Be=Un([_0x30d103(_0x21bbd3),Ne(0x1,_0x21229d),Ne(0x2,_0x4db080(_0xca9a6f)),Ne(0x3,_0xa43f31)],Be);var An=Object[_0x5724cd(0x231)],Pn=(_0x4506ef,_0x41d70f,_0x4412cc,_0x7cd144)=>{for(var _0x23485b=_0x7cd144>0x1?void 0x0:_0x7cd144?An(_0x41d70f,_0x4412cc):_0x41d70f,_0x3b3930=_0x4506ef['length']-0x1,_0x5cec36;_0x3b3930>=0x0;_0x3b3930--)(_0x5cec36=_0x4506ef[_0x3b3930])&&(_0x23485b=_0x5cec36(_0x23485b)||_0x23485b);return _0x23485b;},J=(_0x483e93,_0x24dff7)=>(_0x5a9d3a,_0x531e20)=>_0x24dff7(_0x5a9d3a,_0x531e20,_0x483e93);let ct=class extends _0x155bb6{constructor(_0x21eeaf,_0x4cb5c3,_0x2287ba,_0x1bf903,_0x34f7fc){super(_0x21eeaf,_0x4cb5c3,_0x2287ba,_0x1bf903,_0x34f7fc);}async[_0x5724cd(0x21b)](_0x382217){const _0x4fc0e9=_0x5724cd,_0x54f39d=await this['_getSessionTicket'](),_0x2b604c=this['_createSocketURL'](_0x382217,_0x54f39d);return this[_0x4fc0e9(0x21e)](_0x2b604c);}[_0x5724cd(0x240)](_0xc023f7,_0x48f323){const _0x8f0908=_0x5724cd,_0x177fa0=typeof window>'u'?new URL(_0xc023f7):new URL(_0xc023f7,window[_0x8f0908(0x13b)][_0x8f0908(0x201)]);_0x177fa0['searchParams'][_0x8f0908(0x2f0)](_0x8f0908(0x2ac),_0x48f323);const _0x3cc23c=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x8f0908(0x13b)][_0x8f0908(0xdb)]);return _0x3cc23c['get']('runId')&&_0x177fa0[_0x8f0908(0x24f)][_0x8f0908(0x2f0)]('runId',_0x3cc23c['get'](_0x8f0908(0x1e3))),_0x177fa0[_0x8f0908(0x122)]();}async['_getSessionTicket'](){const _0x7b8d3c=_0x5724cd;var _0x163b8d,_0xb26810,_0x28b3cc;const _0x3ea35e=this[_0x7b8d3c(0x184)]['getConfig'](_0x32c484),_0x4337a4=(_0x163b8d=_0x3ea35e==null?void 0x0:_0x3ea35e[_0x7b8d3c(0x26e)])!=null?_0x163b8d:_0x392e41;return(_0x28b3cc=(_0xb26810=(await this['_httpService'][_0x7b8d3c(0x297)](_0x4337a4,{'headers':{'Content-Type':_0x7b8d3c(0x1d2)}}))[_0x7b8d3c(0x2a9)])==null?void 0x0:_0xb26810[_0x7b8d3c(0x296)])!=null?_0x28b3cc:'';}};ct=Pn([J(0x0,_0x4db080(_0xca9a6f)),J(0x1,_0x4db080(_0x367dbf)),J(0x2,_0xa43f31),J(0x3,_0x1edaba),J(0x4,_0x5030fd)],ct);var wn=Object['getOwnPropertyDescriptor'],yn=(_0x279b2c,_0x5acb2b,_0x2337ae,_0x5e7578)=>{const _0x2e06dc=_0x5724cd;for(var _0x31da64=_0x5e7578>0x1?void 0x0:_0x5e7578?wn(_0x5acb2b,_0x2337ae):_0x5acb2b,_0x275ad7=_0x279b2c[_0x2e06dc(0x173)]-0x1,_0x3951a2;_0x275ad7>=0x0;_0x275ad7--)(_0x3951a2=_0x279b2c[_0x275ad7])&&(_0x31da64=_0x3951a2(_0x31da64)||_0x31da64);return _0x31da64;},be=(_0x338d32,_0x156897)=>(_0x1b7ba1,_0x54bcc0)=>_0x156897(_0x1b7ba1,_0x54bcc0,_0x338d32);let _t=class extends _0x2916da{constructor(_0x47df24,_0x71ee8e,_0x3b338d){const _0x4b303b=_0x5724cd;super(),this[_0x4b303b(0x1cb)]=_0x47df24,this[_0x4b303b(0x1b0)]=_0x71ee8e,this[_0x4b303b(0x184)]=_0x3b338d;}async[_0x5724cd(0xeb)](_0x1486ba,_0x367c02,_0x45f24e,..._0x45b7f1){const _0x3a14a9=_0x5724cd;var _0x446daf,_0x479b87,_0x73f2fe,_0x446c01;const _0x48908e=this[_0x3a14a9(0x1cb)]['getFocusedUnit']();if(!_0x48908e)throw new Error(_0x3a14a9(0x11f));const _0x9f344a=((_0x446daf=this[_0x3a14a9(0x184)]['getConfig'](_0x1f66b6))!=null?_0x446daf:_0x4e25d6)+'/'+_0x1486ba+_0x3a14a9(0x159)+_0x367c02,_0x366769=new URL(window['location'][_0x3a14a9(0x19f)]),_0x22f327={'scriptId':_0x1486ba,'runId':(_0x479b87=_0x366769[_0x3a14a9(0x24f)][_0x3a14a9(0x297)](_0x3a14a9(0x1e3)))!=null?_0x479b87:'','function':_0x367c02,'unitId':_0x48908e[_0x3a14a9(0x25a)](),'argsOfFunction':JSON[_0x3a14a9(0x274)](_0x45b7f1),'invokeId':(_0x73f2fe=_0x45f24e[_0x3a14a9(0x179)])!=null?_0x73f2fe:'','executionId':(_0x446c01=_0x45f24e[_0x3a14a9(0x260)])!=null?_0x446c01:''};try{const _0x5cb743=await this[_0x3a14a9(0x1b0)][_0x3a14a9(0x245)](_0x9f344a,{'body':_0x22f327});return _0x5cb743[_0x3a14a9(0x2a9)][_0x3a14a9(0x192)]&&_0x5cb743[_0x3a14a9(0x2a9)][_0x3a14a9(0x192)][_0x3a14a9(0x226)]!==Z['OK']?_0x3a14a9(0x1cd):_0x5cb743[_0x3a14a9(0x2a9)][_0x3a14a9(0x1a8)];}catch{return _0x3a14a9(0x1cd);}}};_t=yn([be(0x0,_0x166a1e),be(0x1,_0x4db080(_0x367dbf)),be(0x2,_0xa43f31)],_t);const lt=0x7530,ht='ACTIVE_UNIT_EVENT_CHANNEL';class tr extends _0x2916da{constructor(){const _0x227f4e=_0x5724cd;super(),l(this,_0x227f4e(0xe9),_0x46dcf5()),l(this,_0x227f4e(0x2ce),new Set()),l(this,_0x227f4e(0x258),new Map()),l(this,_0x227f4e(0x214),null),l(this,_0x227f4e(0x2d0),new Map()),l(this,'_unitStatus',new Map()),this[_0x227f4e(0x16b)]();}[_0x5724cd(0x207)](){const _0x4c3145=_0x5724cd;super[_0x4c3145(0x207)](),this['_clearOtherTimers']['forEach']((_0x15d2af,_0x35fd45)=>this[_0x4c3145(0x121)](_0x35fd45)),this['_heartbeatTimer']&&window[_0x4c3145(0x28a)](this[_0x4c3145(0x214)]);}[_0x5724cd(0x104)](_0x1cb9d3){const _0x40903e=_0x5724cd;return this[_0x40903e(0x113)](_0x1cb9d3)[_0x40903e(0x148)](_0x5c79da());}[_0x5724cd(0x141)](_0x885e82){const _0x1fe591=_0x5724cd;this[_0x1fe591(0x2ce)][_0x1fe591(0x1d5)]===0x0&&this[_0x1fe591(0xf7)](),this[_0x1fe591(0x2ce)][_0x1fe591(0x157)](_0x885e82),this[_0x1fe591(0x10c)]({'type':0x0,'memberID':this[_0x1fe591(0xe9)],'unitIDs':[_0x885e82],'isForwarded':!0x1});}[_0x5724cd(0x2a3)](_0x24de32){const _0x448872=_0x5724cd;this[_0x448872(0x2ce)][_0x448872(0x1bd)](_0x24de32),this['_selfUnitIDs']['size']===0x0&&this[_0x448872(0x214)]&&window[_0x448872(0x28a)](this['_heartbeatTimer']);}['_init'](){const _0x74c883=_0x5724cd;this[_0x74c883(0x1e2)](_0xc6be91(_0xba30(window,_0x74c883(0x133))[_0x74c883(0x1ce)](_0x260bee=>{const _0x32fca5=_0x74c883;if(_0x260bee[_0x32fca5(0x185)]!==ht||!_0x260bee['newValue'])return;const _0x1c816c=JSON[_0x32fca5(0x2e5)](_0x260bee[_0x32fca5(0x289)]);this[_0x32fca5(0x25b)](_0x1c816c);}))),window[_0x74c883(0x17b)](_0x74c883(0x253),()=>this[_0x74c883(0x10c)]({'type':0x1,'memberID':this[_0x74c883(0xe9)],'unitIDs':Array['from'](this[_0x74c883(0x2ce)])}));}[_0x5724cd(0x25b)](_0x1a8613){const _0x4a33c3=_0x5724cd;switch(_0x1a8613[_0x4a33c3(0x1b8)]){case 0x0:this['_handleJoinEvent'](_0x1a8613);break;case 0x1:this[_0x4a33c3(0x23a)](_0x1a8613);break;case 0x2:this[_0x4a33c3(0x2d7)](_0x1a8613);break;}}['_handleJoinEvent'](_0x199a24){const _0x3ed0a0=_0x5724cd,{unitIDs:_0x52c6fc,memberID:_0x1b4728,isForwarded:_0x1c37eb}=_0x199a24;_0x52c6fc[_0x3ed0a0(0x1a5)](_0x40f89c=>{const _0x1c8705=_0x3ed0a0;if(!_0x1c37eb&&this['_unitOnClients'][_0x1c8705(0x1d0)](_0x40f89c)&&this[_0x1c8705(0x113)](_0x40f89c)['next'](_0x509d02[_0x1c8705(0x1bf)]),!this[_0x1c8705(0x258)][_0x1c8705(0x1d0)](_0x40f89c)||!this['_unitOnClients'][_0x1c8705(0x297)](_0x40f89c)[_0x1c8705(0x1d0)](_0x1b4728)){const _0x437aba=this[_0x1c8705(0x258)][_0x1c8705(0x297)](_0x40f89c)||new Set();_0x437aba[_0x1c8705(0x157)](_0x1b4728),this['_unitOnClients'][_0x1c8705(0x2f0)](_0x40f89c,_0x437aba),this[_0x1c8705(0x145)](_0x1b4728);}}),_0x1c37eb||this['_send']({'type':0x0,'memberID':this[_0x3ed0a0(0xe9)],'unitIDs':[...this[_0x3ed0a0(0x2ce)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x58d729){const _0x29a2cb=_0x5724cd;this[_0x29a2cb(0x121)](_0x58d729);const _0x375fc6=window[_0x29a2cb(0x177)](()=>{const _0x508430=_0x29a2cb;this[_0x508430(0x258)][_0x508430(0x1a5)](_0xecee7=>{const _0xe9034a=_0x508430;_0xecee7[_0xe9034a(0x1bd)](_0x58d729);});},lt*0x2);this[_0x29a2cb(0x2d0)]['set'](_0x58d729,_0x375fc6);}[_0x5724cd(0x121)](_0x55d627){const _0x3b789a=_0x5724cd;if(this[_0x3b789a(0x2d0)][_0x3b789a(0x1d0)](_0x55d627)){const _0x57d72a=this[_0x3b789a(0x2d0)][_0x3b789a(0x297)](_0x55d627);_0x57d72a&&window[_0x3b789a(0x272)](_0x57d72a),this[_0x3b789a(0x2d0)][_0x3b789a(0x2f0)](_0x55d627,null);}}[_0x5724cd(0x23a)](_0x5b3ae4){const _0xbb7445=_0x5724cd,{memberID:_0x1b2117,unitIDs:_0x306426}=_0x5b3ae4;_0x306426[_0xbb7445(0x1a5)](_0x24187a=>{const _0x22e70f=_0xbb7445;var _0x43b901;const _0x4a72d3=this[_0x22e70f(0x258)][_0x22e70f(0x297)](_0x24187a);_0x4a72d3&&(_0x4a72d3[_0x22e70f(0x1bd)](_0x1b2117),(_0x43b901=this[_0x22e70f(0x113)](_0x24187a))==null||_0x43b901[_0x22e70f(0x130)](_0x4a72d3[_0x22e70f(0x1d5)]===0x0?_0x509d02[_0x22e70f(0x194)]:_0x509d02[_0x22e70f(0x1bf)]));}),this['_removeClearOtherTimer'](_0x1b2117);}['_handleHeartbeatEvent'](_0x32de85){const _0x594fc6=_0x5724cd;this[_0x594fc6(0x145)](_0x32de85[_0x594fc6(0x126)]);}[_0x5724cd(0x10c)](_0x127deb){const _0x520cf4=_0x5724cd;localStorage[_0x520cf4(0x30a)](ht,JSON['stringify'](_0x127deb));}[_0x5724cd(0xf7)](){const _0xf5ac7d=_0x5724cd;this[_0xf5ac7d(0x214)]=window['setInterval'](()=>{const _0x54b7d2=_0xf5ac7d;this['_send']({'type':0x2,'memberID':this[_0x54b7d2(0xe9)]});},lt);}[_0x5724cd(0x113)](_0x1c9d19){const _0x20b17b=_0x5724cd;return this[_0x20b17b(0x210)][_0x20b17b(0x1d0)](_0x1c9d19)||this[_0x20b17b(0x210)]['set'](_0x1c9d19,new _0x29a5ca(_0x509d02['NO_OTHER_CLIENTS_EDITING'])),this[_0x20b17b(0x210)][_0x20b17b(0x297)](_0x1c9d19);}}export{ct as BrowserCollaborationSocketService,ae as CollaborationDataLoaderController,oe as DesktopCollaborationStatusDisplayController,At as IURLService,_t as RemoteUniscriptService,qi as SheetCollabCursorShape,Be as UniverCollaborationClientUIPlugin,tr as WebBrowserSingleActiveUnitService,Rn as WebURLService};
|
|
1
|
+
const _0x2f044f=_0x47da;(function(_0x3b5d1d,_0x269ae2){const _0x490f16=_0x47da,_0x2f1d79=_0x3b5d1d();while(!![]){try{const _0x3f37c9=parseInt(_0x490f16(0x1ed))/0x1+-parseInt(_0x490f16(0x23c))/0x2+-parseInt(_0x490f16(0x18b))/0x3*(-parseInt(_0x490f16(0x343))/0x4)+parseInt(_0x490f16(0x349))/0x5*(-parseInt(_0x490f16(0x13e))/0x6)+parseInt(_0x490f16(0x209))/0x7*(parseInt(_0x490f16(0x279))/0x8)+parseInt(_0x490f16(0x1d2))/0x9*(parseInt(_0x490f16(0x222))/0xa)+parseInt(_0x490f16(0x1e4))/0xb*(-parseInt(_0x490f16(0x15f))/0xc);if(_0x3f37c9===_0x269ae2)break;else _0x2f1d79['push'](_0x2f1d79['shift']());}catch(_0x3e37bc){_0x2f1d79['push'](_0x2f1d79['shift']());}}}(_0x1960,0x42a98));var Ft=Object['defineProperty'],kt=(_0x62ba1,_0x110136,_0x1263fc)=>_0x110136 in _0x62ba1?Ft(_0x62ba1,_0x110136,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1263fc}):_0x62ba1[_0x110136]=_0x1263fc,l=(_0x2d4fe1,_0x217ee3,_0x1b1758)=>kt(_0x2d4fe1,typeof _0x217ee3!='symbol'?_0x217ee3+'':_0x217ee3,_0x1b1758);import{jsx as _0x161830,jsxs as _0x2caa04}from'react/jsx-runtime';import{CollaborationStatus as _0x60ba72,CollaborationSessionService as _0x9b71a7,CollaborationController as _0x29a4d3,DataLoaderService as _0x460ae6,MemberService as _0x3a5f68,SessionStatus as _0x29ddfc,ILocalCacheService as _0x2ccb07,CollaborationUIEventService as _0x4151ec,CollaborationUIEventId as _0x3cd7d2,DocCollaborationEntity as _0x3d0825,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x402f3f,getLocalCacheKey as _0x4c70c8,LOCAL_CACHE_INTERVAL as _0x17ef74,LOCAL_CACHE_INTERVAL_KEY as _0x5453bc,UniverCollaborationClientPlugin as _0x28c64b,CollaborationSocketService as _0x160525,DEFAULT_WS_SESSION_TICKET_URL as _0x10cec4,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x719797,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x1aa6ad,UnitStatus as _0x286879}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x3c120a,IUniverInstanceService as _0xaa63a7,Inject as _0x30bdc8,Injector as _0x4568e0,Disposable as _0x3070e7,createIdentifier as _0x5ce273,ILogService as _0x3ae7f3,ICommandService as _0x5cca2c,Optional as _0x5c8ad4,RxDisposable as _0x4d2a7f,Workbook as _0x5def59,DOC_RANGE_TYPE as _0x4d69cb,debounce as _0x32e5dd,Rectangle as _0x4fcbdf,DisposableCollection as _0x3fcb28,toDisposable as _0x3e6ed3,UniverInstanceType as _0x31116f,generateRandomId as _0x243a41,COLORS as _0x3443dd,ColorKit as _0x4c77aa,ThemeService as _0x52ee13,fromEventSubject as _0x16b152,Tools as _0x54294e,CommandType as _0x15a9e3,IConfigService as _0xb0a618,CanceledError as _0x1b9467,isFormulaString as _0x40e8ed,isFormulaId as _0x50cd50,ILocalStorageService as _0x3188b7,DependentOn as _0x20966f,Plugin as _0x17fdfb,merge as _0x33621d,registerDependencies as _0x468fd6,mergeOverrideWithDependencies as _0xdb7e13,touchDependencies as _0x163605}from'@univerjs/core';import{useObservable as _0xb666e0,useDependency as _0x470170,IUIPartsService as _0x27a25f,BuiltInUIPart as _0x4dca33,connectInjector as _0x3f5361,IBeforeCloseService as _0x4de469,IMessageService as _0x1865bb,INotificationService as _0x2b2a16}from'@univerjs/ui';import{BehaviorSubject as _0x11f3cd,switchMap as _0x110954,of as _0x25bb07,takeUntil as _0x142e37,debounceTime as _0x2a44e5,Subject as _0x302a52,filter as _0x29412e,merge as _0x48fd67,combineLatest as _0x38531d,fromEvent as _0x23b416,shareReplay as _0x3ef704,mapTo as _0x913f8a,distinctUntilChanged as _0x58f1ea}from'rxjs';import{Tooltip as _0x27452b,clsx as _0x800d42,MessageType as _0x17dcef}from'@univerjs/design';import{useRef as _0x5d3df1,createElement as _0x5a6f5c,forwardRef as _0x1e4363,useCallback as _0x106751}from'react';import{IRemoteInstanceService as _0x39f96d}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x172699,RefRangeService as _0x5cacda,SetSelectionsOperation as _0xe455e5,SheetsSelectionsService as _0xb8e4ed,EffectRefRangId as _0x4dc8f8,handleIRemoveRow as _0x128b91,handleIRemoveCol as _0x339194,handleMoveRange as _0x39fc90,handleInsertRow as _0x2928ea,handleInsertRangeMoveRight as _0xcee1b9,handleInsertRangeMoveDown as _0x4b0553,handleInsertCol as _0x5b952f,handleDeleteRangeMoveUp as _0x3bb096,handleDeleteRangeMoveLeft as _0xc7cf7a,runRefRangeMutations as _0x5c575b}from'@univerjs/sheets';import{Shape as _0x363646,Rect as _0x4df5d2,getColor as _0x2e3aa9,RegularPolygon as _0x54ab82,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x1c713f,Vector2 as _0x2ae925,SHEET_VIEWPORT_KEY as _0x293586,IRenderManagerService as _0x3e044c}from'@univerjs/engine-render';function _0x1960(){const _0x3412bf=['saveTaskMap','_handleLeaveEvent','labelPosition','session.collaboration-timeout','_init','CHANGESET_REVISION_CONFILICT','collab-client.tooltip.reconnect','783WQmtwM','sessionStatus$','dispose$','_hideTimer','REDEMPTION_CODE_FULLY_REDEEMED','_injector','ENSURE_SNAPSHOT_EXECUTION','drawWith','now','_docTransformIMECacheService','_initStatusComponent','_handleHeartbeatEvent','subunit','fillRule','PY_RUNTIME_SCRIPT_ERROR','_imageIoService','entityInit$','triggerDblclick','116094SQzBwr','replaceState','http://www.w3.org/2000/svg','hide','getformulaLimitStatusUrl','_uiPartsService','_startDocCollabCursor','getRangePointData','_cursorInfo$','432855AiJyNE','trim','getConfig','APPLY_REVISION_CONFILICT','endColumn','idSuffix','Failed','univerjs-icon\x20univerjs-icon-','_range','ENTITLE_DUP_SUBSCRIPTION','_initEvent','show','_anchor','stage','text','getTypeOfUnitAdded$','SOCKET_FAILED_RETRY','_getScale','_clearPolling','unload','dirtyRanges','red.300','isArray','collab-rect-range-','collaboration-client.offline-data-not-saved','YUUMI_ASYNCIO_CANCELLED','result','collabStatus.conflict','3011911zoSydH','_eventUnsubscribe','type','includes','column','onLocalMutation','startColumn','_scene','addObject','MUTATION','delete','location','editingUnit','USER_NOT_INVITED_CODE','LICENSE_DISTRO_REJECTED','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','sheetID','_anchorDot','CURRENT_STATUS_CANNOT_OPERATE','lineTo','InsertRangeMoveDownCommandId','black','_handleEvent','split','EMAIL_VERIFY_CODE_MISMATCH','50210mhnvKN','subscribeEvent','/universer-api/license/formula/limit/start','_heartbeatTimer','getSheetBySheetId','_cachedData','currentColor','popstate','unitId','addHandlerCallback','unshift','_saveCache','Warning','toString','colorChannel1','restore','USERS_LEAVE','1em','then','_handleJoinEvent','eventID','addEventListener','find','_logService','clearTimeout','_transformPreviousActiveRange','559844MMDfWi','_doCreateSocket','on-line-icon_clip0_910_349','onCommandExecuted','_initDependencies','doc.mutation.rich-text-editing','pushState','registerBeforeClose','updateOfflineData','_toggleOffline','asObservable','collaboration.closeRoom','stringify','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','unsubscribe','urlChange$','_assignedColors','DATA_SOURCE_TOO_LARGE','range','min','_send','ALREADY_EXISTS','session.connection-failed','_collaborationController','jiqing.500','ENTITLE_INSUFFICIENT_QUOTA','onMouseMove','_collabCursorState$','_colorAssignService','with','_cursors','PAYMENT_CHANNEL_NOT_SUPPORT','_refRangeService','MOBILE_HAS_BEEN_BOUND','init','registerRefRange','YUUMI_CONNECTOR_URL_NOT_FOUND','unitID','requireSession','getCollabCursors$','_roomMembers$','dispose','APPLY_DUPLICATED','backgroundColor','some','APPLY_NON_SEQUENTIAL_REVISION','white','FromArray','_removeClearOtherTimer','CLOSE_ROOM','loadOfflineData','_labelPosition','_session','0\x200\x2016\x2016','getTypeOfUnitDisposed$','findNodePositionByCharIndex','_sheetSkeletonManagerService','/run/','SUBMIT_CHANGESET_TIMEOUT','getCurrentRevOfUnit','_initResize','8ItBJpX','reconnect','font','HEADER_MENU','Success','?taskId=','post','AUTHORIZE_CODE_ILLEGAL','/universer-api/license/formula/limit/status','_beforeCloseService','_maxFormulaLimit','[CollaborationDataLoaderController]','startRow','REDEMPTION_CODE_INACTIVE','TEXT','key','ACTIVE_UNIT_EVENT_CHANNEL','arc','collaboration.single-unit.warning','_config','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_initCommandExecutedListener','collaboration-client-ui.config','_getFormulaLimitStatus','onTransformChange$','_createSocketURL','_startSheetCollabCursor','OFFLINE','getOwnPropertyDescriptor','_lastResponseTimestamp','_status$','displayName','_scheduleHeartbeat','searchParams','override','assignAColorForMemberID','push','invokeId','addClipboardHook','data','purple.300','UNIVER_DOC','INVITE_CODE_HAS_BEEN_UES','deepClone','newValue','getUnhiddenWorksheets','collab-text-anchor-','collabStatus.syncing','stageInfo','forEach','size','currentSkeleton$','collabCursorState$','values','string','getMember','bottom','getUniverSheetInstance','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','color','_httpService','_syncEditingCollabCursorService','_unitStatus','_hasFormulaInDirtyRanges','_selfUnitIDs','event$','_onCursorUpdate','YUUMI_SUBSCRIPTION_NOT_FOUND','YUUMI_URL_COL_OUT_OF_RANGE','origin','_onCursorDelete','MoveRangeCommandId','collabStatus.notCollab','PENDING','history','parse','getViewport','m1Prime','_commandService','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','url(#off-line-icon_clip0_910_343)','sheetId','_color','_drawAnchor','error','clipPath','exhaustSavingTask','moveTo','get','_id','has','_hovered','onPointerLeave$','getColorFromTheme','undoState','currentUsage','AWAITING','toRgbString','OTHER_CLIENTS_EDITING','getVpScrollXYInfoByPosToVp','getActiveSheet','getSkeleton','_docTransformStateCacheService','path','_currentUsage','getUnitId','_initStatusListener','beginPath','CONNECTOR_DATA_TOO_LARGE','on-line-icon','INVITE_CODE_ALREADY_BOUND','runOnServer','collabStatus.synced','_scheduleClearOtherTimer','_notificationService','_collaborationUIEventService','UNAUTHENTICATED','syncEditingCollabCursor','row','from','_themeService','_refreshCollabCursors','evenodd','executeCommand','_docSkeleton','wsSessionTicketUrl','textRanges','_entityInit$','transformSelections','currentTheme$','Error','setParam','defs','MOBILE_VERIFY_CODE_MISMATCH','_getSaveTimeout','INVALID_INVITE_CODE','_checkCalculationAvailable','_onRefRangeChange','InsertRangeMoveRightCommandId','subscribe','cursorInfo','UniverIcon','pipe','SOCKET_FAILED','url(#$1','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_lastPointer','_renderManagerService','_revisionService','getCollabEntity$','transformMutation','getDocRanges','redoState','_messageService','defineProperty','YUUMI_AI_RUN_FAILED','measureText','ticket','CONFLICT','children','makeDirty','/universer-api/license/formula/limit/done','OnLineIcon','permission.content','_releaseCalculationLimit','_getMergeRange','transformRemoteChangeset','_colorIndex','REDEMPTION_USER_NOT_ELIGIBLE','EMAIL_HAS_BEEN_BOUND','_initCommandInterceptor','ENTITLE_CAN_NOT_BUY_LOWER_OTP','engine','LICENSE_EXPORT_SIZE_EXCEEDED','endRow','M0\x200H16V16H0z','APPLY_PERMISSION_DENIED','add','USER_NOT_FOUND','registerComponent','NOT_COLLAB','collab-text-range-','_backgroundColor','mutations','NOT_FOUND','next','roomMembers$','getCellPositionByOffset','whenReady','fill','_entities','releaseFormulaLimitUrl','_cursor','href','complete','formula.calculation.waiting','LOGIN_FAILED','getCellMatrix','_hover','_name','_handleHover','_getSessionTicket','15832bRSaQC','collabStatus.fetchMiss','UNRECOGNIZED','_setupSubUnitSync','univer-flex\x20univer-items-center','getRelativeToViewportCoord','1142665dxeCjA','getSheetId','saveOfflineData','sessionTicket','ERROR_AGAIN','_memberService','div','_unitOnClients','_ensureSubject','disposeUnit','_configService','getActiveRange','disposeWithMe','getParam','getValue','_localCacheService','...','REDEMPTION_INVALID_CODE','DeleteRangeMoveLeftCommandId','_disabled','getCurrentSelections','_updateURLWithCurrentState','_dataLoaderService','selections','SYNCED','contains','blue.400','NO_OTHER_CLIENTS_EDITING','save','PERMISSION_DENIED','params','_context','_toggleOnline','getCurrent','_univerInstanceService','AWAITING_WITH_PENDING','setItem','closePath','_registerRenderDependencies','cursorInfo$','_docClipboardService','svg','getAncestorScale','getFocusedUnit','univer-mr-2\x20univer-flex\x20univer-text-xl','m2Prime','onRendered','getRenderById','YUUMI_RATE_OVER_LIMIT','_saveTaskMap','ranges','_docTransformSelectionsService','collabStatus.offline','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_setupBeforeClosingHandler','_transformHistoryAndStateStack','6OOTrQY','getUndoRedoMutationParamsCache','_render','_shapes','registerRenderModule','SNAPSHOT_INVALID_SNAPSHOT','focused$','_scheduleSaving','setActiveRange','WECHAT_HAS_BEEN_BOUND','_docStateChangeManagerService','imageSourceType','totalFormulasToCalculate','RECT','_urlService','INTERNAL_ERROR','maxFormulaLimit','setAlpha','_setFormulaLimitStatus','_taskIds','UPDATE_CURSOR','enableLocalCache','entries','setUndoRedoMutationParamsCache','_textBubble','body','LICENSE_MAX_UNITS_EXCEEDED','height','current','startsWith','fillText','isActive','0\x200\x2017\x2016','828rlmkYj','replaceDocRanges','round','getStateCache','setInterval','name','setConfig','APPLY_REJECT','YUUMI_UNABLE_LOAD_URL','YUUMI_NO_CUBOID_FOR_QUESTION','_startCalculationLimit','_registerDependencies','getUnitStatus$','_cursorShapes','REDEMPTION_CODE_NOT_STARTED','_checkAndWaitForCalculationPermission','_initEntityListener','permission.title','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','functionsExecutedState','_online','attrs','tag','assign','green.600','_docSkeletonManagerService','xlink:href','onPointerEnter$','_getAnchorBounding','url(#on-line-icon_clip0_910_349)','getOffsetConfig','ENTITLE_REPORT_LIMIT_EXCEED','replace','RemoveColCommandId','debug','hovered','LICENSE_IMPORT_SIZE_EXCEEDED','width','startFormulaLimitUrl','ENTITLE_CHAT_LIMIT_EXCEED','_updateSubUnitFromURLParams','_removeCollabCursors','INVALID_ARGUMENT','search','159DYKwNn','set','_updateCollabCursors','beforeCommandExecuted','_clearOtherTimers','top','limitInfo','_localeService','_collabSessionService','COMPLETION_FINISHED','runId','getMemberID','roomMembers','setTimeout','_pollingInterval','random','off-line-icon_clip0_910_343','rgba(255,\x20255,\x20255,\x200.01)','session.will-retry','_collabCursorController','status$','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_transformUndoRedoStack','ONLINE','_drawTextRange','transformStateCache','setShapeProps','transformIMECache','use','_transformService','REDEMPTION_USER_REDEEM_TIMES_EXCEED','TOO_MANY_REQUESTS','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','pluginName','_instanceService','REDEMPTION_CODE_HAS_BEEN_CREATED','none','createInstance','_localStorageService','parseInt','unit','SUCCESS','UNDEFINED','memberID','executionId','Unknown\x20user','shift','getItem','UNIVER_SHEET','map','docStateChange$','length','_updateLocalCursor','SNAPSHOT_HAS_BEEN_REMOVED','Loading','transformMutationsWithChangeset','send','code','LOGIN_TOKEN_PROCESSING_FAILED','storage','_getSheetObject','INVITE_CODE_REQUIRED','_applyCommand','translate(.97)'];_0x1960=function(){return _0x3412bf;};return _0x1960();}import{HTTPService as _0x168837,ISocketService as _0x188980,WebSocketService as _0x1dde72}from'@univerjs/network';import{IDocClipboardService as _0x5cada5,NodePositionConvertToCursor as _0x2745f9,NodePositionConvertToRectRange as _0x1da38d,TEXT_RANGE_LAYER_INDEX as _0x2efc3b,SetDocZoomRatioOperation as _0x24bd33,DocIMEInputManagerService as _0x50464f,DocStateChangeManagerService as _0x99482e}from'@univerjs/docs-ui';import{IImageIoService as _0x5aed91}from'@univerjs/drawing';import{ITransformService as _0x3a64be,CollaborationEvent as _0x34ccf4,isTransformMutationFailure as _0x3f2a8d,isTransformMutationsWithChangesetSuccess as _0x233b43,RevisionService as _0x25a8ee,ISnapshotServerService as _0x56a3f6}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x2289d0,RichTextEditingMutation as _0x5bc564,DocSelectionManagerService as _0x349b69,DocSkeletonManagerService as _0x523f57}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x554cab,serializeRangeWithSheet as _0x380890,FormulaExecuteStageType as _0x52da47,FormulaExecutedStateType as _0x58c49a,SetFormulaCalculationStartMutation as _0x684e31,SetFormulaCalculationNotificationMutation as _0x288bd8}from'@univerjs/engine-formula';import{map as _0x3adb29,filter as _0x4bde31,throttleTime as _0x1ef2cc,takeUntil as _0x503bbc,switchMap as _0x68d49c}from'rxjs/operators';import{SheetSkeletonManagerService as _0x3c396a,getCoordByCell as _0x545dfb,getSheetObject as _0x264d3a}from'@univerjs/sheets-ui';function Ve({ref:_0xb0e12c,..._0xc28072}){const _0x43442b=_0x47da,{icon:_0x4d1536,id:_0xb8de82,className:_0x1d5d6b,extend:_0x2f34ca,..._0x4928a3}=_0xc28072,_0x138cd2=(_0x43442b(0x1f4)+_0xb8de82+'\x20'+(_0x1d5d6b||''))[_0x43442b(0x1ee)](),_0x5c5207=_0x5d3df1('_'+gi());return Ut(_0x4d1536,''+_0xb8de82,{'defIds':_0x4d1536['defIds'],'idSuffix':_0x5c5207[_0x43442b(0x15a)]},{'ref':_0xb0e12c,'className':_0x138cd2,..._0x4928a3},_0x2f34ca);}function Ut(_0x4bb14c,_0x3f58fb,_0x3acb1e,_0x5cfb6b,_0x417848){const _0x5157ca=_0x47da;return _0x5a6f5c(_0x4bb14c[_0x5157ca(0x175)],{'key':_0x3f58fb,...mi(_0x4bb14c,_0x3acb1e,_0x417848),..._0x5cfb6b},(fi(_0x4bb14c,_0x3acb1e)[_0x5157ca(0x318)]||[])[_0x5157ca(0x1bc)]((_0x2acc56,_0x292a39)=>Ut(_0x2acc56,_0x3f58fb+'-'+_0x4bb14c['tag']+'-'+_0x292a39,_0x3acb1e,void 0x0,_0x417848)));}function mi(_0x7c306,_0xda5ce6,_0x5de18a){const _0x4996e9=_0x47da,_0x1bbf87={..._0x7c306[_0x4996e9(0x174)]};_0x5de18a!=null&&_0x5de18a[_0x4996e9(0x230)]&&_0x1bbf87[_0x4996e9(0x336)]===_0x4996e9(0x230)&&(_0x1bbf87[_0x4996e9(0x336)]=_0x5de18a['colorChannel1']),_0x7c306[_0x4996e9(0x175)]==='mask'&&_0x1bbf87['id']&&(_0x1bbf87['id']=_0x1bbf87['id']+_0xda5ce6[_0x4996e9(0x1f2)]),Object[_0x4996e9(0x154)](_0x1bbf87)[_0x4996e9(0x2aa)](([_0x5a06a6,_0x22f66b])=>{const _0x338bc9=_0x4996e9;_0x5a06a6==='mask'&&typeof _0x22f66b==_0x338bc9(0x2af)&&(_0x1bbf87[_0x5a06a6]=_0x22f66b[_0x338bc9(0x17f)](/url\(#(.*)\)/,_0x338bc9(0x309)+_0xda5ce6[_0x338bc9(0x1f2)]+')'));});const {defIds:_0x55ef04}=_0xda5ce6;return!_0x55ef04||_0x55ef04[_0x4996e9(0x1be)]===0x0||(_0x7c306[_0x4996e9(0x175)]===_0x4996e9(0x1a7)&&_0x1bbf87['xlink:href']&&(_0x1bbf87[_0x4996e9(0x179)]=_0x1bbf87[_0x4996e9(0x179)]+_0xda5ce6[_0x4996e9(0x1f2)]),Object[_0x4996e9(0x154)](_0x1bbf87)[_0x4996e9(0x2aa)](([_0x3cf853,_0x4f5fef])=>{const _0x198f51=_0x4996e9;typeof _0x4f5fef==_0x198f51(0x2af)&&(_0x1bbf87[_0x3cf853]=_0x4f5fef[_0x198f51(0x17f)](/url\(#(.*)\)/,_0x198f51(0x309)+_0xda5ce6['idSuffix']+')'));})),_0x1bbf87;}function fi(_0x32da98,_0x13664e){const _0x24c023=_0x47da;var _0x11840e;const {defIds:_0x579b26}=_0x13664e;return!_0x579b26||_0x579b26['length']===0x0?_0x32da98:_0x32da98[_0x24c023(0x175)]===_0x24c023(0x2fd)&&((_0x11840e=_0x32da98[_0x24c023(0x318)])!=null&&_0x11840e[_0x24c023(0x1be)])?{..._0x32da98,'children':_0x32da98[_0x24c023(0x318)][_0x24c023(0x1bc)](_0xad1f2=>typeof _0xad1f2[_0x24c023(0x174)]['id']=='string'&&_0x579b26&&_0x579b26[_0x24c023(0x20c)](_0xad1f2[_0x24c023(0x174)]['id'])?{..._0xad1f2,'attrs':{..._0xad1f2[_0x24c023(0x174)],'id':_0xad1f2['attrs']['id']+_0x13664e[_0x24c023(0x1f2)]}}:_0xad1f2)}:_0x32da98;}function gi(){const _0x1cb0ef=_0x47da;return Math[_0x1cb0ef(0x19a)]()[_0x1cb0ef(0x22f)](0x24)['substring'](0x2,0x8);}Ve[_0x2f044f(0x298)]=_0x2f044f(0x306);const vi={'tag':'svg','attrs':{'xmlns':_0x2f044f(0x1e6),'fill':_0x2f044f(0x1af),'viewBox':_0x2f044f(0x271),'width':_0x2f044f(0x233),'height':_0x2f044f(0x233)},'children':[{'tag':'g','attrs':{'clipPath':_0x2f044f(0x2c9)},'children':[{'tag':_0x2f044f(0x2e0),'attrs':{'stroke':_0x2f044f(0x228),'d':_0x2f044f(0x171),'strokeLinecap':_0x2f044f(0x161),'strokeLinejoin':_0x2f044f(0x161),'strokeWidth':1.2}}]},{'tag':_0x2f044f(0x2fd),'attrs':{},'children':[{'tag':_0x2f044f(0x2ce),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x2f044f(0x2e0),'attrs':{'fill':_0x2f044f(0x26a),'d':_0x2f044f(0x328)}}]}]}],'defIds':[_0x2f044f(0x19b)]},Lt=_0x1e4363(function(_0x4562fe,_0x10f1a9){return _0x5a6f5c(Ve,Object['assign']({},_0x4562fe,{'id':'off-line-icon','ref':_0x10f1a9,'icon':vi}));});Lt[_0x2f044f(0x298)]='OffLineIcon';const Ei={'tag':_0x2f044f(0x372),'attrs':{'xmlns':_0x2f044f(0x1e6),'fill':'none','viewBox':_0x2f044f(0x15e),'width':_0x2f044f(0x233),'height':_0x2f044f(0x233)},'children':[{'tag':'g','attrs':{'clipPath':_0x2f044f(0x17c)},'children':[{'tag':_0x2f044f(0x2e0),'attrs':{'stroke':_0x2f044f(0x228),'d':_0x2f044f(0x2c8),'strokeLinecap':'round','strokeLinejoin':_0x2f044f(0x161),'strokeWidth':1.2}}]},{'tag':_0x2f044f(0x2fd),'attrs':{},'children':[{'tag':_0x2f044f(0x2ce),'attrs':{'id':_0x2f044f(0x23e)},'children':[{'tag':'path','attrs':{'fill':_0x2f044f(0x26a),'d':_0x2f044f(0x328),'transform':_0x2f044f(0x1ca)}}]}]}],'defIds':[_0x2f044f(0x23e)]},Mt=_0x1e4363(function(_0x202af3,_0x571351){const _0x8ec81c=_0x2f044f;return _0x5a6f5c(Ve,Object[_0x8ec81c(0x176)]({},_0x202af3,{'id':_0x8ec81c(0x2e6),'ref':_0x571351,'icon':Ei}));});Mt[_0x2f044f(0x298)]=_0x2f044f(0x31b);function pi(_0x1fc69e){const _0x3befa4=_0x2f044f;switch(_0x1fc69e){case _0x60ba72[_0x3befa4(0x294)]:return _0x3befa4(0x13a);case _0x60ba72[_0x3befa4(0x317)]:return _0x3befa4(0x208);case _0x60ba72['FETCH_MISS']:return _0x3befa4(0x344);case _0x60ba72['NOT_COLLAB']:return _0x3befa4(0x2c1);case _0x60ba72[_0x3befa4(0x2d9)]:case _0x60ba72[_0x3befa4(0x36c)]:return _0x3befa4(0x2a8);case _0x60ba72[_0x3befa4(0x361)]:case _0x60ba72[_0x3befa4(0x2c2)]:return _0x3befa4(0x2e9);}}function Oi(_0xe42fc1){const _0x599a2f=_0x2f044f,{status$:_0x1673ea}=_0xe42fc1,_0x2afe0c=_0xb666e0(_0x1673ea,_0x60ba72[_0x599a2f(0x32d)]),_0x576357=_0x470170(_0x3c120a),_0x37af9e=_0x470170(_0x9b71a7),_0x58a98e=_0x2afe0c!==_0x60ba72['OFFLINE'],_0x227306=_0x576357['t'](pi(_0x2afe0c)),_0x4cbc33=_0x58a98e?_0x161830(Mt,{}):_0x161830(Lt,{}),_0x149edb=_0x106751(()=>{const _0x231e2f=_0x599a2f;_0x58a98e||_0x37af9e[_0x231e2f(0x27a)]();},[_0x58a98e,_0x37af9e]);function _0x594c01(){const _0x47607c=_0x599a2f;return _0x2caa04(_0x47607c(0x34f),{'className':_0x47607c(0x347),'onClick':_0x149edb,'children':[_0x161830(_0x47607c(0x34f),{'className':_0x800d42(_0x47607c(0x375),{'univer-text-green-500':_0x58a98e,'univer-text-red-500':!_0x58a98e}),'children':_0x4cbc33}),_0x161830(_0x47607c(0x34f),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x227306})]});}return _0x58a98e?_0x594c01():_0x161830(_0x27452b,{'title':_0x576357['t'](_0x599a2f(0x1d1)),'children':_0x594c01()});}var Ti=Object[_0x2f044f(0x295)],Ci=(_0x4cd013,_0x4e9726,_0x44e4d1,_0x31a161)=>{const _0xf9afbb=_0x2f044f;for(var _0x376ecb=_0x31a161>0x1?void 0x0:_0x31a161?Ti(_0x4e9726,_0x44e4d1):_0x4e9726,_0x1f81b0=_0x4cd013[_0xf9afbb(0x1be)]-0x1,_0x4e0066;_0x1f81b0>=0x0;_0x1f81b0--)(_0x4e0066=_0x4cd013[_0x1f81b0])&&(_0x376ecb=_0x4e0066(_0x376ecb)||_0x376ecb);return _0x376ecb;},se=(_0x339240,_0x4813f5)=>(_0x5e3bf8,_0x248962)=>_0x4813f5(_0x5e3bf8,_0x248962,_0x339240);let oe=class extends _0x3070e7{constructor(_0x2bad61,_0x1339aa,_0x2f89bd,_0x5d333d){const _0x5a48f4=_0x2f044f;super(),l(this,'_status$',new _0x11f3cd(_0x60ba72[_0x5a48f4(0x32d)])),(this[_0x5a48f4(0x36b)]=_0x2bad61,this[_0x5a48f4(0x1d7)]=_0x1339aa,this[_0x5a48f4(0x253)]=_0x2f89bd,this[_0x5a48f4(0x1e9)]=_0x5d333d,this[_0x5a48f4(0x1dc)](),this[_0x5a48f4(0x2e3)]());}[_0x2f044f(0x2e3)](){const _0x560a84=_0x2f044f;this[_0x560a84(0x355)](this[_0x560a84(0x36b)][_0x560a84(0x144)][_0x560a84(0x307)](_0x110954(()=>{const _0x9a1358=_0x560a84,_0x3880c8=this[_0x9a1358(0x36b)][_0x9a1358(0x374)]();return _0x3880c8?this[_0x9a1358(0x253)][_0x9a1358(0x30e)](_0x3880c8[_0x9a1358(0x2e2)]()):_0x25bb07(null);}),_0x110954(_0xe99de4=>_0xe99de4?_0xe99de4[_0x560a84(0x19f)]:_0x25bb07(_0x60ba72[_0x560a84(0x32d)])))[_0x560a84(0x304)](_0x360424=>{const _0x382f8d=_0x560a84;this[_0x382f8d(0x297)][_0x382f8d(0x332)](_0x360424);}));}[_0x2f044f(0x1dc)](){const _0x16280f=_0x2f044f;this[_0x16280f(0x355)](this['_uiPartsService'][_0x16280f(0x32c)](_0x4dca33[_0x16280f(0x27c)],()=>_0x3f5361(Ri({'status$':this[_0x16280f(0x297)][_0x16280f(0x246)]()}),this[_0x16280f(0x1d7)])));}};oe=Ci([se(0x0,_0xaa63a7),se(0x1,_0x30bdc8(_0x4568e0)),se(0x2,_0x30bdc8(_0x29a4d3)),se(0x3,_0x27a25f)],oe);function _0x47da(_0x5dfa2a,_0x170d21){const _0x1960f4=_0x1960();return _0x47da=function(_0x47da91,_0x136990){_0x47da91=_0x47da91-0x137;let _0x3a8b7c=_0x1960f4[_0x47da91];return _0x3a8b7c;},_0x47da(_0x5dfa2a,_0x170d21);}function Ri(_0x36797e){const {status$:_0x3c9a5c}=_0x36797e;return function(){return _0x161830(Oi,{'status$':_0x3c9a5c});};}const At=_0x5ce273('uni.network.url-service');var Di=Object[_0x2f044f(0x295)],Ni=(_0x5f2d29,_0x402291,_0x1170eb,_0x10f675)=>{const _0xeb2d7c=_0x2f044f;for(var _0x302a00=_0x10f675>0x1?void 0x0:_0x10f675?Di(_0x402291,_0x1170eb):_0x402291,_0x4eab7f=_0x5f2d29[_0xeb2d7c(0x1be)]-0x1,_0xb26498;_0x4eab7f>=0x0;_0x4eab7f--)(_0xb26498=_0x5f2d29[_0x4eab7f])&&(_0x302a00=_0xb26498(_0x302a00)||_0x302a00);return _0x302a00;},K=(_0x533347,_0x317244)=>(_0x3acba2,_0x19a5ed)=>_0x317244(_0x3acba2,_0x19a5ed,_0x533347);let ae=class extends _0x4d2a7f{constructor(_0x1fea5a,_0x108361,_0xa4b142,_0x328275,_0x9d1f75){const _0x4dda14=_0x2f044f;super(),this[_0x4dda14(0x14c)]=_0x1fea5a,this['_logService']=_0x108361,this['_commandService']=_0xa4b142,this['_dataLoaderService']=_0x328275,_0x9d1f75?_0x9d1f75==null||_0x9d1f75[_0x4dda14(0x335)]()[_0x4dda14(0x234)](()=>this[_0x4dda14(0x1cf)]()):(this['_logService']['debug'](_0x4dda14(0x284),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x4dda14(0x1cf)]());}async['_init'](){const _0xe10e36=_0x2f044f,_0x14a9ab=this[_0xe10e36(0x14c)]['getParam'](_0xe10e36(0x1b3)),_0x3306f5=this[_0xe10e36(0x14c)][_0xe10e36(0x356)](_0xe10e36(0x20b)),_0x4936b3=this[_0xe10e36(0x14c)][_0xe10e36(0x356)](_0xe10e36(0x1de));if(!_0x14a9ab||!_0x3306f5){this['_logService'][_0xe10e36(0x181)](_0xe10e36(0x284),_0xe10e36(0x1a0));return;}const _0x27bbeb=await this[_0xe10e36(0x35f)]['loadUnit'](_0x14a9ab,Number(_0x3306f5),_0x4936b3);_0x27bbeb&&_0x27bbeb instanceof _0x5def59&&this['_setupSubUnitSync'](_0x27bbeb);}async[_0x2f044f(0x346)](_0x307b58){const _0xa98bae=_0x2f044f;await this[_0xa98bae(0x187)](_0x307b58),_0x307b58['activeSheet$'][_0xa98bae(0x307)](_0x142e37(this[_0xa98bae(0x1d4)]))[_0xa98bae(0x304)](_0x24b5b2=>{_0x24b5b2&&this['_updateURLWithCurrentState'](_0x24b5b2);}),this[_0xa98bae(0x14c)]['urlChange$'][_0xa98bae(0x307)](_0x142e37(this[_0xa98bae(0x1d4)]))[_0xa98bae(0x304)](()=>this[_0xa98bae(0x187)](_0x307b58));}[_0x2f044f(0x35e)](_0x1f98a6,_0x4074e7=!0x1){const _0x27b1f1=_0x2f044f,_0x24a8b9=this[_0x27b1f1(0x14c)][_0x27b1f1(0x356)]('subunit');_0x1f98a6[_0x27b1f1(0x34a)]()!==_0x24a8b9&&this[_0x27b1f1(0x14c)][_0x27b1f1(0x2fc)](_0x27b1f1(0x1de),_0x1f98a6['getSheetId'](),_0x4074e7);}async[_0x2f044f(0x187)](_0x2ac5dd){const _0x2cc85e=_0x2f044f;var _0x246b9d;const _0x3774fa=this[_0x2cc85e(0x14c)][_0x2cc85e(0x356)]('subunit');if(!_0x3774fa||!_0x2ac5dd[_0x2cc85e(0x226)](_0x3774fa)){const _0x422095=_0x2ac5dd[_0x2cc85e(0x2a6)]()[0x0],_0x5408fe=_0x2ac5dd['getSheetBySheetId'](_0x422095);if(!_0x5408fe)return;this['_updateURLWithCurrentState'](_0x5408fe,!0x0),await this[_0x2cc85e(0x2c7)][_0x2cc85e(0x2f4)](_0x172699['id'],{'unitId':_0x2ac5dd[_0x2cc85e(0x2e2)](),'subUnitId':_0x422095});return;}((_0x246b9d=_0x2ac5dd[_0x2cc85e(0x2dd)]())==null?void 0x0:_0x246b9d[_0x2cc85e(0x34a)]())!==_0x3774fa&&await this[_0x2cc85e(0x2c7)][_0x2cc85e(0x2f4)](_0x172699['id'],{'unitId':_0x2ac5dd[_0x2cc85e(0x2e2)](),'subUnitId':_0x3774fa});}};ae=Ni([K(0x0,At),K(0x1,_0x3ae7f3),K(0x2,_0x5cca2c),K(0x3,_0x30bdc8(_0x460ae6)),K(0x4,_0x5c8ad4(_0x39f96d))],ae);var bi=Object['getOwnPropertyDescriptor'],Ui=(_0x2c3a21,_0x11c6b8,_0x4dd502,_0x4dc977)=>{const _0x4600ee=_0x2f044f;for(var _0x3b6cc5=_0x4dc977>0x1?void 0x0:_0x4dc977?bi(_0x11c6b8,_0x4dd502):_0x11c6b8,_0xa1f055=_0x2c3a21[_0x4600ee(0x1be)]-0x1,_0xa386f8;_0xa1f055>=0x0;_0xa1f055--)(_0xa386f8=_0x2c3a21[_0xa1f055])&&(_0x3b6cc5=_0xa386f8(_0x3b6cc5)||_0x3b6cc5);return _0x3b6cc5;},tt=(_0x21d3ab,_0x1b6c7e)=>(_0x528b5a,_0x53fbe4)=>_0x1b6c7e(_0x528b5a,_0x53fbe4,_0x21d3ab);let Ae=class extends _0x4d2a7f{constructor(_0xd87511,_0x213bf1){const _0x5cf8dd=_0x2f044f;super(),this[_0x5cf8dd(0x371)]=_0xd87511,this[_0x5cf8dd(0x1e1)]=_0x213bf1,this[_0x5cf8dd(0x1cf)]();}[_0x2f044f(0x1cf)](){const _0x19da92=_0x2f044f,_0x4723cd=this;this['disposeWithMe'](this[_0x19da92(0x371)][_0x19da92(0x29f)]({'onBeforePasteImage':async _0x2fc82d=>{const _0x59e24d=_0x19da92,_0x59f8ab=await _0x4723cd['_imageIoService']['saveImage'](_0x2fc82d);return _0x59f8ab?{'source':_0x59f8ab['source'],'imageSourceType':_0x59f8ab[_0x59e24d(0x149)]}:null;}}));}};Ae=Ui([tt(0x0,_0x5cada5),tt(0x1,_0x5aed91)],Ae);const st=[_0x2f044f(0x2a1),_0x2f044f(0x254),_0x2f044f(0x177),_0x2f044f(0x202),_0x2f044f(0x363),'yellow.400'];class je extends _0x3070e7{constructor(){const _0x5b57a8=_0x2f044f;super(...arguments),l(this,_0x5b57a8(0x24c),new Map()),l(this,_0x5b57a8(0x320),0x0);}[_0x2f044f(0x29c)](_0x5780e7){const _0x3888c4=_0x2f044f;if(this[_0x3888c4(0x24c)][_0x3888c4(0x2d3)](_0x5780e7))return this['_assignedColors'][_0x3888c4(0x2d1)](_0x5780e7);const _0x1c6aea=st[this[_0x3888c4(0x320)]];return this[_0x3888c4(0x320)]=(this[_0x3888c4(0x320)]+0x1)%st[_0x3888c4(0x1be)],this[_0x3888c4(0x24c)][_0x3888c4(0x18c)](_0x5780e7,_0x1c6aea),_0x1c6aea;}}function Pt(_0x4b75ac){const _0x375086=_0x2f044f;let _0x26a448='';for(const _0x5c3568 of _0x4b75ac){const {startOffset:_0x596a2d,endOffset:_0x4de099,isActive:_0x1a9317,rangeType:_0x17d63b,segmentId:_0x3486aa,segmentPage:_0xa3cb80}=_0x5c3568;_0x26a448[_0x375086(0x1be)]&&(_0x26a448+=','),_0x26a448+=_0x596a2d+':'+_0x4de099+':'+(_0x1a9317?'1':'0')+':'+_0x17d63b+':'+_0x3486aa+':'+_0xa3cb80;}return _0x26a448;}function Li(_0x19bdb3){const _0x49a6fa=_0x2f044f,_0x54b48e=_0x19bdb3[_0x49a6fa(0x220)](','),_0x7856e4=[];for(const _0x38fbbd of _0x54b48e){const [_0x22b8f4,_0xc6caf3,_0x233fe4,_0x57894f,_0x1a0ed2,_0x18185c]=_0x38fbbd['split'](':');_0x7856e4[_0x49a6fa(0x29d)]({'startOffset':Number(_0x22b8f4),'endOffset':Number(_0xc6caf3),'collapsed':_0x22b8f4===_0xc6caf3,'isActive':_0x233fe4==='1','rangeType':_0x57894f===_0x4d69cb[_0x49a6fa(0x287)]?_0x4d69cb[_0x49a6fa(0x287)]:_0x4d69cb[_0x49a6fa(0x14b)],'segmentId':typeof _0x1a0ed2==_0x49a6fa(0x2af)?String(_0x1a0ed2):'','segmentPage':Number(_0x18185c!=null?_0x18185c:-0x1)});}return _0x7856e4[_0x49a6fa(0x268)](_0x4787d0=>_0x4787d0[_0x49a6fa(0x15d)])||(_0x7856e4[0x0][_0x49a6fa(0x15d)]=!0x0),_0x7856e4;}class Xe extends _0x4d2a7f{constructor(){const _0x361292=_0x2f044f;super(...arguments),l(this,_0x361292(0x257),new _0x11f3cd(null)),l(this,_0x361292(0x2ad),this[_0x361292(0x257)]['asObservable']());}[_0x2f044f(0x2ee)](_0x22b460){const _0x4c5add=_0x2f044f,{unitID:_0x35a539,memberID:_0x12fa32,textRanges:_0x1c97f3}=_0x22b460,_0x5f46d9=Pt(_0x1c97f3);if(_0x5f46d9==='')return;const _0x350255={'unitID':_0x35a539,'memberID':_0x12fa32,'selection':_0x5f46d9};this['_collabCursorState$'][_0x4c5add(0x332)](_0x350255);}}var Mi=Object[_0x2f044f(0x295)],Ai=(_0x3da124,_0x4564c5,_0x1c4d1b,_0x348923)=>{const _0x40b67d=_0x2f044f;for(var _0xa1ae68=_0x348923>0x1?void 0x0:_0x348923?Mi(_0x4564c5,_0x1c4d1b):_0x4564c5,_0xd59964=_0x3da124[_0x40b67d(0x1be)]-0x1,_0x4f273c;_0xd59964>=0x0;_0xd59964--)(_0x4f273c=_0x3da124[_0xd59964])&&(_0xa1ae68=_0x4f273c(_0xa1ae68)||_0xa1ae68);return _0xa1ae68;},A=(_0x598db4,_0x349f3c)=>(_0x5c267b,_0x510bf1)=>_0x349f3c(_0x5c267b,_0x510bf1,_0x598db4);const Pi=0x12c,wi=0x64;let Pe=class extends _0x4d2a7f{constructor(_0x36625b,_0x2c7172,_0x5830e8,_0x2b8cd5,_0x36d93b,_0x4449ea,_0x526191,_0x106714,_0x5afe1f){const _0x294486=_0x2f044f;super(),l(this,'_online',!0x1),l(this,_0x294486(0x1cf),!0x1),l(this,_0x294486(0x1ec),new _0x11f3cd(new Map())),l(this,_0x294486(0x370),this['_cursorInfo$'][_0x294486(0x246)]()),l(this,_0x294486(0x264),new _0x11f3cd([])),l(this,'roomMembers$',this[_0x294486(0x264)][_0x294486(0x307)](_0x2a44e5(Pi))),l(this,_0x294486(0x1bf),_0x32e5dd(_0x1d40e7=>{const _0x1486d2=_0x294486,_0x5ce513={'eventID':_0x34ccf4[_0x1486d2(0x152)],'data':{'unitID':this[_0x1486d2(0x261)],'memberID':this['_session']['getMemberID'](),'selection':Pt(_0x1d40e7)}};this[_0x1486d2(0x270)][_0x1486d2(0x1c3)](_0x5ce513,this['unitID']);},wi)),(this['unitID']=_0x36625b,this[_0x294486(0x270)]=_0x2c7172,this['_injector']=_0x5830e8,this[_0x294486(0x258)]=_0x2b8cd5,this[_0x294486(0x34e)]=_0x36d93b,this[_0x294486(0x2b6)]=_0x4449ea,this[_0x294486(0x1a8)]=_0x526191,this['_univerInstanceService']=_0x106714,this[_0x294486(0x2c7)]=_0x5afe1f);}get['cursorInfo'](){const _0x3b3344=_0x2f044f;return this['_cursorInfo$'][_0x3b3344(0x357)]();}get[_0x2f044f(0x197)](){const _0x5c264b=_0x2f044f;return this[_0x5c264b(0x264)]['getValue']();}['dispose'](){const _0x42dc6a=_0x2f044f;super[_0x42dc6a(0x265)](),this[_0x42dc6a(0x1ec)][_0x42dc6a(0x332)](new Map()),this['_cursorInfo$'][_0x42dc6a(0x33b)](),this[_0x42dc6a(0x264)][_0x42dc6a(0x332)]([]),this[_0x42dc6a(0x264)][_0x42dc6a(0x33b)]();}[_0x2f044f(0x25e)](){const _0x3b2442=_0x2f044f;this[_0x3b2442(0x1cf)]||(this[_0x3b2442(0x1cf)]=!0x0,this[_0x3b2442(0x270)][_0x3b2442(0x1d3)][_0x3b2442(0x307)](_0x142e37(this['dispose$']))[_0x3b2442(0x304)](_0xb21ba4=>{const _0x1e3bd2=_0x3b2442;_0xb21ba4===_0x29ddfc[_0x1e3bd2(0x1a2)]?this[_0x1e3bd2(0x369)]():this[_0x1e3bd2(0x245)]();}),this['_session'][_0x3b2442(0x2ba)][_0x3b2442(0x307)](_0x142e37(this[_0x3b2442(0x1d4)]))[_0x3b2442(0x304)](_0x57a7b0=>{const _0x41db0a=_0x3b2442,_0x49f188=_0x57a7b0[_0x41db0a(0x236)];_0x49f188===_0x34ccf4[_0x41db0a(0x152)]&&this[_0x41db0a(0x2bb)](_0x57a7b0),_0x49f188===_0x34ccf4[_0x41db0a(0x232)]&&this['_onCursorDelete'](_0x57a7b0);}),this[_0x3b2442(0x355)](this[_0x3b2442(0x2c7)]['onCommandExecuted'](_0x3d6c13=>{const _0x1079ac=_0x3b2442,_0x514057=_0x3d6c13[_0x1079ac(0x367)];_0x514057!=null&&this[_0x1079ac(0x173)]&&_0x3d6c13['id']===_0x2289d0['id']&&_0x514057[_0x1079ac(0x22a)]===this[_0x1079ac(0x261)]&&_0x514057['isEditing']===!0x1&&_0x514057[_0x1079ac(0x138)][_0x1079ac(0x1be)]>0x0&&this['_updateLocalCursor'](_0x514057[_0x1079ac(0x138)]);})),this[_0x3b2442(0x2b6)][_0x3b2442(0x2ad)]['pipe'](_0x142e37(this[_0x3b2442(0x1d4)]))[_0x3b2442(0x304)](_0x3c7023=>{const _0x1d8a52=_0x3b2442;if((_0x3c7023==null?void 0x0:_0x3c7023[_0x1d8a52(0x261)])!==this[_0x1d8a52(0x261)])return;const _0x3300b9={'eventID':_0x34ccf4[_0x1d8a52(0x152)],'data':_0x3c7023};this[_0x1d8a52(0x2bb)](_0x3300b9);}),this[_0x3b2442(0x355)](this['_commandService'][_0x3b2442(0x23f)](_0x12630b=>{const _0x402ce5=_0x3b2442;if(_0x12630b[_0x402ce5(0x367)]==null)return;const _0x3afbe3=_0x12630b[_0x402ce5(0x367)];if(_0x12630b['id']!==_0x5bc564['id']||_0x3afbe3[_0x402ce5(0x22a)]!==this[_0x402ce5(0x261)])return;const _0x4c127f={'id':'doc.mutation.rich-text-editing','params':_0x3afbe3},_0x1a1586=this['cursorInfo'];for(const [_0x30c47d,_0x424a2e]of _0x1a1586){const _0x46788e={'id':_0x402ce5(0x241),'params':{'unitId':this[_0x402ce5(0x261)],'actions':null,'textRanges':_0x424a2e['ranges']}},_0x442c06=this[_0x402ce5(0x1a8)][_0x402ce5(0x30f)](_0x4c127f,_0x46788e,!0x1);if(_0x3f2a8d(_0x442c06))throw _0x442c06[_0x402ce5(0x2cd)];_0x1a1586[_0x402ce5(0x18c)](_0x30c47d,{..._0x424a2e,'ranges':_0x442c06[_0x402ce5(0x376)]['params'][_0x402ce5(0x2f7)]});}queueMicrotask(()=>{const _0x520302=_0x402ce5;this[_0x520302(0x1ec)][_0x520302(0x332)](_0x1a1586);});})));}['_onCursorUpdate'](_0x3424a0){const _0x586419=_0x2f044f;var _0x450c52,_0x278011;const {memberID:_0xe7e20d,selection:_0x34ac9b}=_0x3424a0['data'],_0x45419f=Li(_0x34ac9b),_0x195387=(_0x278011=(_0x450c52=this[_0x586419(0x34e)]['getMember'](this[_0x586419(0x261)],_0xe7e20d))==null?void 0x0:_0x450c52[_0x586419(0x164)])!=null?_0x278011:'Unknown\x20user',_0x1439db={'color':this['_colorAssignService'][_0x586419(0x29c)](_0xe7e20d),'name':_0x195387,'ranges':_0x45419f},_0x48175f=this['cursorInfo'];_0x48175f[_0x586419(0x18c)](_0xe7e20d,_0x1439db),this[_0x586419(0x1ec)]['next'](_0x48175f);}[_0x2f044f(0x2bf)](_0x1ada76){const _0x3e4c12=_0x2f044f,{memberID:_0x388390}=_0x1ada76[_0x3e4c12(0x2a0)],_0x1064a=this[_0x3e4c12(0x305)];_0x1064a[_0x3e4c12(0x213)](_0x388390),this[_0x3e4c12(0x1ec)][_0x3e4c12(0x332)](_0x1064a);}[_0x2f044f(0x369)](){const _0x58dd78=_0x2f044f;var _0x3fc815;if(this[_0x58dd78(0x173)]=!0x0,((_0x3fc815=this[_0x58dd78(0x36b)][_0x58dd78(0x374)]())==null?void 0x0:_0x3fc815['getUnitId']())!==this[_0x58dd78(0x261)])return;const _0x4fb97a=this['_injector']['get'](_0x349b69)[_0x58dd78(0x310)]();Array['isArray'](_0x4fb97a)&&_0x4fb97a[_0x58dd78(0x1be)]>0x0&&this['_updateLocalCursor'](_0x4fb97a);}[_0x2f044f(0x245)](){const _0x2ed470=_0x2f044f;this[_0x2ed470(0x173)]=!0x1;}};Pe=Ai([A(0x2,_0x30bdc8(_0x4568e0)),A(0x3,_0x30bdc8(je)),A(0x4,_0x30bdc8(_0x3a5f68)),A(0x5,_0x30bdc8(Xe)),A(0x6,_0x3a64be),A(0x7,_0xaa63a7),A(0x8,_0x5cca2c)],Pe);var yi=Object[_0x2f044f(0x295)],$i=(_0x1685d3,_0x4662e8,_0x16a86c,_0x4d6bf8)=>{const _0xcab952=_0x2f044f;for(var _0x482b95=_0x4d6bf8>0x1?void 0x0:_0x4d6bf8?yi(_0x4662e8,_0x16a86c):_0x4662e8,_0x5459ab=_0x1685d3[_0xcab952(0x1be)]-0x1,_0x1221d0;_0x5459ab>=0x0;_0x5459ab--)(_0x1221d0=_0x1685d3[_0x5459ab])&&(_0x482b95=_0x1221d0(_0x482b95)||_0x482b95);return _0x482b95;},B=(_0x1689ff,_0x4b8cb5)=>(_0x5d629e,_0x2c68e0)=>_0x4b8cb5(_0x5d629e,_0x2c68e0,_0x1689ff);const xi=0x12c,Bi=0x64,Fi=()=>{let _0x3b03d8=[],_0x2f7edf=!0x1;return _0x530220=>{const _0x4c7a58=_0x47da;_0x3b03d8[_0x4c7a58(0x29d)](_0x530220),_0x2f7edf||(_0x2f7edf=!0x0,setTimeout(()=>{_0x3b03d8['forEach'](_0x448295=>_0x448295()),_0x3b03d8=[],_0x2f7edf=!0x1;}));};};let we=class extends _0x4d2a7f{constructor(_0x1c4bf9,_0x25b94a,_0x2f53ed,_0x55a85c,_0x5d2568,_0x4e8d02,_0x2520b8,_0x205568){const _0x105730=_0x2f044f;super(),l(this,_0x105730(0x173),!0x1),l(this,'_init',!0x1),l(this,_0x105730(0x1ec),new _0x11f3cd(new Map())),l(this,'cursorInfo$',this['_cursorInfo$']['asObservable']()),l(this,_0x105730(0x264),new _0x11f3cd([])),l(this,_0x105730(0x333),this[_0x105730(0x264)]['pipe'](_0x2a44e5(xi))),l(this,_0x105730(0x1bf),_0x32e5dd((_0x539b00,_0x57fedf)=>{const _0x3bdbf3=_0x105730,_0xbacdc={'eventID':_0x34ccf4[_0x3bdbf3(0x152)],'data':{'unitID':this[_0x3bdbf3(0x261)],'memberID':this['_session'][_0x3bdbf3(0x196)](),'selection':_0x380890(_0x539b00,_0x57fedf['range'])}};this[_0x3bdbf3(0x270)][_0x3bdbf3(0x1c3)](_0xbacdc,this['unitID']);},Bi)),(this['unitID']=_0x1c4bf9,this[_0x105730(0x270)]=_0x25b94a,this[_0x105730(0x1d7)]=_0x2f53ed,this[_0x105730(0x258)]=_0x55a85c,this[_0x105730(0x34e)]=_0x5d2568,this['_univerInstanceService']=_0x4e8d02,this['_commandService']=_0x2520b8,this[_0x105730(0x25c)]=_0x205568);}get[_0x2f044f(0x305)](){const _0x4b01a6=_0x2f044f;return this[_0x4b01a6(0x1ec)][_0x4b01a6(0x357)]();}get[_0x2f044f(0x197)](){const _0x27cfbb=_0x2f044f;return this[_0x27cfbb(0x264)]['getValue']();}[_0x2f044f(0x265)](){const _0x49492e=_0x2f044f;super[_0x49492e(0x265)](),this[_0x49492e(0x1ec)][_0x49492e(0x332)](new Map()),this[_0x49492e(0x1ec)][_0x49492e(0x33b)](),this[_0x49492e(0x264)]['next']([]),this[_0x49492e(0x264)][_0x49492e(0x33b)]();}[_0x2f044f(0x25e)](){const _0x10524c=_0x2f044f;this[_0x10524c(0x1cf)]||(this[_0x10524c(0x1cf)]=!0x0,this['_session']['sessionStatus$']['pipe'](_0x142e37(this['dispose$']))[_0x10524c(0x304)](_0x3e989a=>{const _0x42568b=_0x10524c;_0x3e989a===_0x29ddfc[_0x42568b(0x1a2)]?this[_0x42568b(0x369)]():this['_toggleOffline']();}),this[_0x10524c(0x270)][_0x10524c(0x2ba)][_0x10524c(0x307)](_0x142e37(this[_0x10524c(0x1d4)]))[_0x10524c(0x304)](_0x30fd56=>{const _0x2481d0=_0x10524c,_0x3875cb=_0x30fd56[_0x2481d0(0x236)];_0x3875cb===_0x34ccf4[_0x2481d0(0x152)]&&this['_onCursorUpdate'](_0x30fd56),_0x3875cb===_0x34ccf4[_0x2481d0(0x232)]&&this['_onCursorDelete'](_0x30fd56);}),this[_0x10524c(0x302)](),this['disposeWithMe'](this[_0x10524c(0x2c7)][_0x10524c(0x23f)](_0x518098=>{const _0x33d2e0=_0x10524c;if(this[_0x33d2e0(0x173)]&&_0x518098['id']===_0xe455e5['id']&&_0x518098['params']['unitId']===this[_0x33d2e0(0x261)]){const _0x55b735=_0x518098[_0x33d2e0(0x367)];this['_updateLocalCursor'](_0x55b735['subUnitId'],_0x55b735[_0x33d2e0(0x360)][0x0]);}})));}[_0x2f044f(0x2bb)](_0x3fc80b){const _0x207156=_0x2f044f;var _0x130fc9,_0x39f137;const {memberID:_0x18e424,selection:_0x42f250}=_0x3fc80b['data'],{sheetName:_0x561398,range:_0x8aec5c}=_0x554cab(_0x42f250),_0x1dd49d={'name':(_0x39f137=(_0x130fc9=this[_0x207156(0x34e)][_0x207156(0x2b0)](this[_0x207156(0x261)],_0x18e424))==null?void 0x0:_0x130fc9[_0x207156(0x164)])!=null?_0x39f137:_0x207156(0x1b8),'range':this[_0x207156(0x31e)](_0x561398,_0x8aec5c),'sheetID':_0x561398,'color':this[_0x207156(0x258)][_0x207156(0x29c)](_0x18e424),'selection':_0x42f250},_0x345d5b=this[_0x207156(0x305)];_0x345d5b[_0x207156(0x18c)](_0x18e424,_0x1dd49d),this[_0x207156(0x1ec)][_0x207156(0x332)](_0x345d5b);}[_0x2f044f(0x2bf)](_0x2878b6){const _0x1ffba8=_0x2f044f,{memberID:_0xa975b}=_0x2878b6[_0x1ffba8(0x2a0)],_0x2a1159=this[_0x1ffba8(0x305)];_0x2a1159[_0x1ffba8(0x213)](_0xa975b),this['_cursorInfo$'][_0x1ffba8(0x332)](_0x2a1159);}[_0x2f044f(0x31e)](_0xda5b5,_0x453c83){const _0x498bad=_0x2f044f;var _0x4d7510,_0x45ed64;const _0xa3e569=(_0x45ed64=(_0x4d7510=this[_0x498bad(0x36b)][_0x498bad(0x2b2)](this[_0x498bad(0x261)]))==null?void 0x0:_0x4d7510['getSheetBySheetId'](_0xda5b5))==null?void 0x0:_0x45ed64['getMergeData']();return(_0xa3e569==null?void 0x0:_0xa3e569[_0x498bad(0x238)](_0x2ecb3d=>_0x4fcbdf[_0x498bad(0x362)](_0x2ecb3d,_0x453c83)))||_0x453c83;}[_0x2f044f(0x302)](){const _0x9a812f=_0x2f044f,_0x2630c2=new _0x3fcb28(),_0x360fbf=Fi(),_0x238c82=()=>{const _0x2ad58b=_0x47da;_0x2630c2[_0x2ad58b(0x265)]();const _0x58ff63=(_0x24a82e,_0x4d31e3,_0x183c91,_0x3996c4)=>{const _0x56f343=_0x2ad58b;let _0x5f3fa5=[];switch(_0x24a82e['id']){case _0x4dc8f8[_0x56f343(0x35b)]:{_0x5f3fa5=_0xc7cf7a(_0x24a82e,_0x3996c4);break;}case _0x4dc8f8['DeleteRangeMoveUpCommandId']:{_0x5f3fa5=_0x3bb096(_0x24a82e,_0x3996c4);break;}case _0x4dc8f8['InsertColCommandId']:{_0x5f3fa5=_0x5b952f(_0x24a82e,_0x3996c4);break;}case _0x4dc8f8[_0x56f343(0x21d)]:{_0x5f3fa5=_0x4b0553(_0x24a82e,_0x3996c4);break;}case _0x4dc8f8[_0x56f343(0x303)]:{_0x5f3fa5=_0xcee1b9(_0x24a82e,_0x3996c4);break;}case _0x4dc8f8['InsertRowCommandId']:{_0x5f3fa5=_0x2928ea(_0x24a82e,_0x3996c4);break;}case _0x4dc8f8[_0x56f343(0x2c0)]:{_0x5f3fa5=_0x39fc90(_0x24a82e,_0x3996c4);break;}case _0x4dc8f8[_0x56f343(0x180)]:{_0x5f3fa5=_0x339194(_0x24a82e,_0x3996c4);break;}case _0x4dc8f8['RemoveRowCommandId']:{_0x5f3fa5=_0x128b91(_0x24a82e,_0x3996c4);break;}}const _0x32b036=_0x5c575b(_0x5f3fa5,_0x3996c4),_0x1b0f2c=this[_0x56f343(0x305)][_0x56f343(0x2d1)](_0x4d31e3);if(_0x1b0f2c&&_0x32b036){const _0x5ac208={..._0x1b0f2c,'range':_0x32b036};this[_0x56f343(0x305)][_0x56f343(0x18c)](_0x4d31e3,_0x5ac208),_0x360fbf(()=>{const _0x10fe82=_0x56f343,_0x39eafd=this['_refRangeService'][_0x10fe82(0x25f)](_0x32b036,_0xe50af6=>(_0x39eafd[_0x10fe82(0x265)](),_0x58ff63(_0xe50af6,_0x4d31e3,_0x183c91,_0x32b036)));_0x2630c2['add'](_0x39eafd);});}return{'redos':[],'undos':[]};};this[_0x2ad58b(0x305)][_0x2ad58b(0x2aa)]((_0x22b5c5,_0x513f28)=>{const _0x54b0bd=_0x2ad58b,{range:_0x434060,sheetID:_0x2ec441}=_0x22b5c5,_0x135545=this['_refRangeService']['registerRefRange'](_0x434060,_0x32ce17=>(_0x135545[_0x54b0bd(0x265)](),_0x58ff63(_0x32ce17,_0x513f28,_0x2ec441,_0x434060)));_0x2630c2['add'](_0x135545);});};this[_0x9a812f(0x355)](_0x3e6ed3(this[_0x9a812f(0x1ec)]['subscribe'](()=>{_0x238c82();})));}[_0x2f044f(0x369)](){const _0x25e9bf=_0x2f044f;var _0x1af6f2,_0x450862;if(this['_online']=!0x0,((_0x1af6f2=this[_0x25e9bf(0x36b)][_0x25e9bf(0x374)]())==null?void 0x0:_0x1af6f2[_0x25e9bf(0x2e2)]())!==this['unitID'])return;const _0x14d5c7=(_0x450862=this['_injector']['get'](_0xb8e4ed)[_0x25e9bf(0x35d)]())==null?void 0x0:_0x450862[0x0],_0x37195c=this['_univerInstanceService']['getCurrentUnitForType'](_0x31116f[_0x25e9bf(0x1bb)])[_0x25e9bf(0x2dd)]();_0x14d5c7&&_0x37195c&&this['_updateLocalCursor'](_0x37195c[_0x25e9bf(0x34a)](),_0x14d5c7);}[_0x2f044f(0x245)](){this['_online']=!0x1;}};we=$i([B(0x2,_0x30bdc8(_0x4568e0)),B(0x3,_0x30bdc8(je)),B(0x4,_0x30bdc8(_0x3a5f68)),B(0x5,_0xaa63a7),B(0x6,_0x5cca2c),B(0x7,_0x30bdc8(_0x5cacda))],we);var ki=Object[_0x2f044f(0x295)],Hi=(_0x1f3fb0,_0xd84d01,_0x3f076f,_0x23bacd)=>{const _0x428136=_0x2f044f;for(var _0x432776=_0x23bacd>0x1?void 0x0:_0x23bacd?ki(_0xd84d01,_0x3f076f):_0xd84d01,_0x3afa5e=_0x1f3fb0[_0x428136(0x1be)]-0x1,_0x59df4b;_0x3afa5e>=0x0;_0x3afa5e--)(_0x59df4b=_0x1f3fb0[_0x3afa5e])&&(_0x432776=_0x59df4b(_0x432776)||_0x432776);return _0x432776;},Ee=(_0x52b77e,_0x49ed73)=>(_0xcb50a8,_0x4b99b1)=>_0x49ed73(_0xcb50a8,_0x4b99b1,_0x52b77e);let H=class extends _0x4d2a7f{constructor(_0xc4aaa8,_0x2c1aee,_0x110c3a){const _0x9d8f09=_0x2f044f;super(),l(this,_0x9d8f09(0x337),new Map()),l(this,_0x9d8f09(0x2f8),new _0x302a52()),(this[_0x9d8f09(0x36b)]=_0xc4aaa8,this[_0x9d8f09(0x1d7)]=_0x2c1aee,this[_0x9d8f09(0x193)]=_0x110c3a,this[_0x9d8f09(0x1cf)]());}[_0x2f044f(0x265)](){const _0x18388c=_0x2f044f;super[_0x18388c(0x265)](),this[_0x18388c(0x2f8)][_0x18388c(0x33b)](),this['_entities'][_0x18388c(0x2aa)](_0x8b5ad=>_0x8b5ad[_0x18388c(0x265)]());}['getCollabCursors$'](_0x2e8949){const _0x18bcca=_0x2f044f;return this[_0x18bcca(0x337)][_0x18bcca(0x2d3)](_0x2e8949)?this['_entities'][_0x18bcca(0x2d1)](_0x2e8949)[_0x18bcca(0x370)]:this['_entityInit$'][_0x18bcca(0x307)](_0x29412e(_0x2d7319=>_0x2d7319['unitID']===_0x2e8949),_0x110954(_0xae7598=>_0xae7598['cursorInfo$']));}[_0x2f044f(0x1cf)](){const _0x4db4c9=_0x2f044f;this[_0x4db4c9(0x36b)][_0x4db4c9(0x1fc)](_0x31116f['UNIVER_SHEET'])[_0x4db4c9(0x307)](_0x142e37(this[_0x4db4c9(0x1d4)]))['subscribe'](async _0x271eb2=>{const _0x2b35d6=_0x4db4c9,_0x46ffd0=_0x271eb2[_0x2b35d6(0x2e2)](),_0x4b0777=await this[_0x2b35d6(0x293)](_0x46ffd0);this[_0x2b35d6(0x2f8)][_0x2b35d6(0x332)](_0x4b0777),this[_0x2b35d6(0x337)][_0x2b35d6(0x18c)](_0x46ffd0,_0x4b0777);}),this['_univerInstanceService'][_0x4db4c9(0x1fc)](_0x31116f[_0x4db4c9(0x2a2)])[_0x4db4c9(0x307)](_0x142e37(this[_0x4db4c9(0x1d4)]))[_0x4db4c9(0x307)](_0x29412e(_0x400bfa=>!_0x400bfa[_0x4db4c9(0x2e2)]()[_0x4db4c9(0x15b)]('__')))[_0x4db4c9(0x304)](async _0xab4ff8=>{const _0x2f6ec5=_0x4db4c9,_0x4f7957=_0xab4ff8[_0x2f6ec5(0x2e2)](),_0x19aef5=await this[_0x2f6ec5(0x1ea)](_0x4f7957);this[_0x2f6ec5(0x2f8)][_0x2f6ec5(0x332)](_0x19aef5),this[_0x2f6ec5(0x337)][_0x2f6ec5(0x18c)](_0x4f7957,_0x19aef5);}),_0x48fd67(this[_0x4db4c9(0x36b)][_0x4db4c9(0x272)](_0x31116f[_0x4db4c9(0x2a2)]),this[_0x4db4c9(0x36b)][_0x4db4c9(0x272)](_0x31116f[_0x4db4c9(0x1bb)]))[_0x4db4c9(0x307)](_0x142e37(this[_0x4db4c9(0x1d4)]))[_0x4db4c9(0x304)](_0x5c65d9=>{const _0x444f5d=_0x4db4c9,_0x4a4a3b=_0x5c65d9[_0x444f5d(0x2e2)](),_0x54d116=this['_entities']['get'](_0x4a4a3b);_0x54d116&&(_0x54d116[_0x444f5d(0x265)](),this[_0x444f5d(0x337)]['delete'](_0x4a4a3b));});}async[_0x2f044f(0x293)](_0x168e08){const _0x4117cb=_0x2f044f,_0x4939c8=await this[_0x4117cb(0x193)][_0x4117cb(0x262)](_0x168e08),_0x50d99c=this[_0x4117cb(0x1d7)][_0x4117cb(0x1b0)](we,_0x168e08,_0x4939c8);return _0x50d99c[_0x4117cb(0x25e)](),_0x50d99c;}async[_0x2f044f(0x1ea)](_0x5a0ba7){const _0x377976=_0x2f044f,_0xd2dd8d=await this[_0x377976(0x193)][_0x377976(0x262)](_0x5a0ba7),_0x104ed7=this[_0x377976(0x1d7)][_0x377976(0x1b0)](Pe,_0x5a0ba7,_0xd2dd8d);return _0x104ed7['init'](),_0x104ed7;}};H=Hi([Ee(0x0,_0xaa63a7),Ee(0x1,_0x30bdc8(_0x4568e0)),Ee(0x2,_0x30bdc8(_0x9b71a7))],H);const Q=0x14,it=0xc8,pe=0x4,Yi=0x5;function Wi(_0x1fa527,_0x412c1e){const _0x2aba65=_0x2f044f;let {radius:_0x363bec,width:_0x3d236d,height:_0x1f97dc}=_0x412c1e;_0x363bec=_0x363bec!=null?_0x363bec:0x0,_0x3d236d=_0x3d236d!=null?_0x3d236d:0x1e,_0x1f97dc=_0x1f97dc!=null?_0x1f97dc:0x1e;let _0x393ef0=0x0,_0x43d351=0x0,_0x3ea7e2=0x0;_0x393ef0=_0x43d351=_0x3ea7e2=Math[_0x2aba65(0x24f)](_0x363bec,_0x3d236d/0x2,_0x1f97dc/0x2),_0x1fa527[_0x2aba65(0x2e4)](),_0x1fa527[_0x2aba65(0x2d0)](_0x393ef0,0x0),_0x1fa527[_0x2aba65(0x21c)](_0x3d236d-_0x43d351,0x0),_0x1fa527[_0x2aba65(0x28a)](_0x3d236d-_0x43d351,_0x43d351,_0x43d351,Math['PI']*0x3/0x2,0x0,!0x1),_0x1fa527[_0x2aba65(0x21c)](_0x3d236d,_0x1f97dc-_0x3ea7e2),_0x1fa527['arc'](_0x3d236d-_0x3ea7e2,_0x1f97dc-_0x3ea7e2,_0x3ea7e2,0x0,Math['PI']/0x2,!0x1),_0x1fa527[_0x2aba65(0x21c)](0x0,_0x1f97dc),_0x1fa527[_0x2aba65(0x21c)](0x0,_0x393ef0),_0x1fa527[_0x2aba65(0x28a)](_0x393ef0,_0x393ef0,_0x393ef0,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1fa527[_0x2aba65(0x36e)](),_0x412c1e[_0x2aba65(0x336)]&&(_0x1fa527[_0x2aba65(0x365)](),_0x1fa527['fillStyle']=_0x412c1e['fill'],_0x412c1e[_0x2aba65(0x1df)]===_0x2aba65(0x2f3)?_0x1fa527[_0x2aba65(0x336)]('evenodd'):_0x1fa527[_0x2aba65(0x336)](),_0x1fa527[_0x2aba65(0x231)]());}class me extends _0x363646{constructor(_0x12d8da,_0x17090a){const _0x1ba52c=_0x2f044f;super(_0x12d8da,_0x17090a),l(this,_0x1ba52c(0x2b4)),l(this,_0x1ba52c(0x1fb)),(this[_0x1ba52c(0x2b4)]=_0x17090a==null?void 0x0:_0x17090a[_0x1ba52c(0x2b4)],this[_0x1ba52c(0x1fb)]=_0x17090a==null?void 0x0:_0x17090a[_0x1ba52c(0x1fb)]);}static[_0x2f044f(0x1d9)](_0x4e97a3,_0x1c3e3a){const _0x1e4573=_0x2f044f,{text:_0x4e8abd,color:_0x542cc9}=_0x1c3e3a;_0x4e97a3[_0x1e4573(0x365)](),_0x4e97a3[_0x1e4573(0x27b)]=_0x1e4573(0x2b3);const _0x32f0a0=_0x4e97a3[_0x1e4573(0x315)](_0x4e8abd)[_0x1e4573(0x184)],_0x48f775=Math[_0x1e4573(0x24f)](_0x32f0a0+0x2*pe,it);Wi(_0x4e97a3,{'height':Q,'radius':0x4,'width':_0x48f775,'fill':_0x542cc9}),_0x4e97a3['fillStyle']='#FFF';const _0x26e035=pe,_0x32d6a4=Q-Yi,_0x3feae1=it-0x2*pe;if(_0x32f0a0>_0x3feae1){let _0x2312ca='',_0x223c86=0x0;for(const _0x4e82da of _0x4e8abd){const _0x249d4f=_0x4e97a3[_0x1e4573(0x315)](_0x4e82da)[_0x1e4573(0x184)];if(_0x223c86+_0x249d4f<=_0x3feae1-_0x4e97a3['measureText'](_0x1e4573(0x359))[_0x1e4573(0x184)])_0x2312ca+=_0x4e82da,_0x223c86+=_0x249d4f;else{_0x2312ca+=_0x1e4573(0x359);break;}}_0x4e97a3[_0x1e4573(0x15c)](_0x2312ca,_0x26e035,_0x32d6a4);}else _0x4e97a3[_0x1e4573(0x15c)](_0x4e8abd,_0x26e035,_0x32d6a4);_0x4e97a3[_0x1e4573(0x231)]();}['_draw'](_0x454783){me['drawWith'](_0x454783,this);}}const Oe=_0x2f044f(0x2a7),Vi=_0x2f044f(0x32e),ji=_0x2f044f(0x204),z=0x6,Xi=1.5,Te=0x4,Gi=1.5,Ki=_0x2f044f(0x19c);class nt{constructor(_0x4f39e0,_0x355d25,_0x143382,_0x3da73b){const _0x215b9b=_0x2f044f;l(this,'_shapes',[]),l(this,_0x215b9b(0x1f9),null),l(this,_0x215b9b(0x156),null),l(this,_0x215b9b(0x21a),null),l(this,_0x215b9b(0x1d5),null),l(this,_0x215b9b(0x20a),null),(this[_0x215b9b(0x339)]=_0x4f39e0,this['_scene']=_0x355d25,this[_0x215b9b(0x2f5)]=_0x143382,this['_document']=_0x3da73b,this[_0x215b9b(0x140)]());}set[_0x2f044f(0x33f)](_0x7e3722){const _0x386dd4=_0x2f044f;_0x7e3722?(this['_anchorDot']&&this[_0x386dd4(0x21a)][_0x386dd4(0x1e7)](),this['_textBubble']&&this[_0x386dd4(0x156)][_0x386dd4(0x1f8)]()):(this['_anchorDot']&&this[_0x386dd4(0x21a)]['show'](),this['_textBubble']&&this[_0x386dd4(0x156)][_0x386dd4(0x1e7)]());}[_0x2f044f(0x265)](){const _0x35c8a0=_0x2f044f;for(const _0x1f1b61 of this[_0x35c8a0(0x141)])_0x1f1b61[_0x35c8a0(0x265)]();this[_0x35c8a0(0x156)]&&this[_0x35c8a0(0x156)][_0x35c8a0(0x265)](),this[_0x35c8a0(0x21a)]&&this['_anchorDot']['dispose'](),this[_0x35c8a0(0x1f9)]&&this[_0x35c8a0(0x1f9)][_0x35c8a0(0x265)](),this[_0x35c8a0(0x20a)]&&this['_eventUnsubscribe']();}[_0x2f044f(0x140)](){const _0x501814=_0x2f044f;var _0x5990f9;const {_docSkeleton:_0xa742ee,_document:_0x1554a4}=this,{color:_0x43cf6d,name:_0x578bca,ranges:_0x1942db}=this[_0x501814(0x339)],_0x287b52=_0x1554a4[_0x501814(0x17d)](),{docsLeft:_0x32f9fa,docsTop:_0x49050a}=_0x287b52,_0x43a2c7=new _0x2745f9(_0x287b52,_0xa742ee);for(const {startOffset:_0x5ca577,endOffset:_0x1e0e0d,rangeType:_0x49383b,segmentId:_0x2e8d19,segmentPage:_0x342467,collapsed:_0x1cce5b,isActive:_0x5da762}of _0x1942db){const _0x39f6a0=_0xa742ee[_0x501814(0x273)](_0x5ca577,!0x0,_0x2e8d19,_0x342467);let _0x5c889e=_0xa742ee['findNodePositionByCharIndex'](_0x1e0e0d,!0x0,_0x2e8d19,_0x342467);if(_0x5c889e==null&&(_0x5c889e=_0xa742ee[_0x501814(0x273)](_0x1e0e0d-0x1,!0x1,_0x2e8d19,_0x342467)),_0x5da762){const {contentBoxPointGroup:_0xb9bbf5}=_0x43a2c7[_0x501814(0x1eb)](_0x5c889e,_0x5c889e);if(_0xb9bbf5[_0x501814(0x1be)]===0x0)continue;this[_0x501814(0x2cc)](_0x43cf6d,_0xb9bbf5,_0x32f9fa,_0x49050a,_0x578bca),this[_0x501814(0x20a)]=this[_0x501814(0x341)]();}if(_0x39f6a0&&_0x5c889e){if(_0x49383b===_0x4d69cb['RECT']){const _0x40763b=new _0x1da38d(_0x287b52,_0xa742ee),{pointGroup:_0x237b00}=(_0x5990f9=_0x40763b['getRangePointData'](_0x39f6a0,_0x5c889e))!=null?_0x5990f9:{};if(_0x237b00==null||_0x237b00[_0x501814(0x1be)]===0x0)continue;this['_drawRectRange'](_0x43cf6d,_0x237b00,_0x32f9fa,_0x49050a);}else{if(!_0x1cce5b){const {borderBoxPointGroup:_0x24b53f}=_0x43a2c7[_0x501814(0x1eb)](_0x39f6a0,_0x5c889e);if(_0x24b53f[_0x501814(0x1be)]===0x0)continue;this[_0x501814(0x1a3)](_0x43cf6d,_0x24b53f,_0x32f9fa,_0x49050a);}}}}}[_0x2f044f(0x2cc)](_0x2cc9b7,_0x1bf1be,_0x2efbe0,_0x196eb7,_0x34dcfd){const _0x17ccbf=_0x2f044f,_0x18f241=this[_0x17ccbf(0x17b)](_0x1bf1be),{left:_0x3e463a,top:_0x19a406,height:_0x240219}=_0x18f241,_0x2c51f0=this[_0x17ccbf(0x1fe)](),_0x52b201=Gi/_0x2c51f0,_0x560bbf=new _0x4df5d2(Oe+_0x243a41(z),{'left':_0x3e463a+_0x2efbe0-_0x52b201,'top':_0x19a406+_0x196eb7,'height':_0x240219,'width':Xi,'fill':_0x2cc9b7||_0x2e3aa9(_0x3443dd['black'],0x0),'strokeWidth':_0x52b201,'stroke':Ki,'evented':!0x0});this[_0x17ccbf(0x1f9)]=_0x560bbf,this['_scene'][_0x17ccbf(0x211)](_0x560bbf,_0x2efc3b);const _0x3504b8=new _0x4df5d2(Oe+_0x243a41(z),{'left':_0x3e463a+_0x2efbe0-_0x52b201,'top':_0x19a406+_0x196eb7-Te/0x2,'height':Te,'width':Te,'fill':_0x2cc9b7||_0x2e3aa9(_0x3443dd[_0x17ccbf(0x21e)],0x0),'strokeWidth':0x0,'stroke':_0x2cc9b7||_0x2e3aa9(_0x3443dd[_0x17ccbf(0x21e)],0x0),'evented':!0x1});this[_0x17ccbf(0x21a)]=_0x3504b8,this[_0x17ccbf(0x210)][_0x17ccbf(0x211)](_0x3504b8,_0x2efc3b);const _0x564354=new me(Oe+_0x243a41(z),{'left':_0x3e463a+_0x2efbe0-_0x52b201,'top':_0x19a406+_0x196eb7-Q,'text':_0x34dcfd,'color':_0x2cc9b7});this[_0x17ccbf(0x156)]=_0x564354,this[_0x17ccbf(0x210)]['addObject'](_0x564354,_0x2efc3b),this[_0x17ccbf(0x33f)]=!0x1;}[_0x2f044f(0x341)](){const _0x331f5e=_0x2f044f,_0x3571d4=this[_0x331f5e(0x1f9)][_0x331f5e(0x17a)]['subscribeEvent'](()=>{const _0x16b5f6=_0x331f5e;this[_0x16b5f6(0x33f)]=!0x0;}),_0x1007a2=this[_0x331f5e(0x1f9)][_0x331f5e(0x2d5)][_0x331f5e(0x223)](()=>{const _0xb256e7=_0x331f5e;this[_0xb256e7(0x1d5)]&&clearTimeout(this['_hideTimer']),this[_0xb256e7(0x1d5)]=setTimeout(()=>{const _0xb3e403=_0xb256e7;this[_0xb3e403(0x33f)]=!0x1;},0x7d0);});return()=>{const _0x3359ba=_0x331f5e;_0x3571d4[_0x3359ba(0x24a)](),_0x1007a2[_0x3359ba(0x24a)]();};}['_drawTextRange'](_0x44321a,_0x5673b4,_0x47fa9d,_0x4e0cfd){const _0x4b0b63=_0x2f044f,_0x5d7289=new _0x4c77aa(_0x44321a)[_0x4b0b63(0x14f)](0.2)['toRgbString'](),_0x310d49=new _0x54ab82(Vi+_0x243a41(z),{'pointsGroup':_0x5673b4,'fill':_0x5d7289||_0x2e3aa9(_0x3443dd[_0x4b0b63(0x21e)],0.2),'left':_0x47fa9d,'top':_0x4e0cfd,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x310d49),this[_0x4b0b63(0x210)]['addObject'](_0x310d49,_0x2efc3b);}['_drawRectRange'](_0xfb8706,_0x1bbfa2,_0x4b66af,_0x1ccee8){const _0x54eede=_0x2f044f,_0x5f3155=new _0x4c77aa(_0xfb8706)['setAlpha'](0.2)[_0x54eede(0x2da)](),_0x55b755=new _0x54ab82(ji+_0x243a41(z),{'pointsGroup':_0x1bbfa2,'fill':_0x5f3155||_0x2e3aa9(_0x3443dd[_0x54eede(0x21e)],0.2),'left':_0x4b66af,'top':_0x1ccee8,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x54eede(0x141)][_0x54eede(0x29d)](_0x55b755),this[_0x54eede(0x210)][_0x54eede(0x211)](_0x55b755,_0x2efc3b);}[_0x2f044f(0x17b)](_0x58c236){const _0x2de417=_0x58c236[0x0],_0x3342b2=_0x2de417[0x0],_0x298479=_0x2de417[0x2],{x:_0x55213e,y:_0x3d84cf}=_0x3342b2,{x:_0x325151,y:_0x2a4725}=_0x298479;return{'left':_0x55213e,'top':_0x3d84cf,'width':_0x325151-_0x55213e,'height':_0x2a4725-_0x3d84cf};}[_0x2f044f(0x1fe)](){const _0x532588=_0x2f044f,{scaleX:_0x48aa16,scaleY:_0x11bc5b}=this[_0x532588(0x210)][_0x532588(0x373)]();return Math['max'](_0x48aa16,_0x11bc5b);}}var zi=Object[_0x2f044f(0x295)],Ji=(_0x11c8a5,_0x365783,_0x18cbde,_0x8ba957)=>{for(var _0x53cf3d=_0x8ba957>0x1?void 0x0:_0x8ba957?zi(_0x365783,_0x18cbde):_0x365783,_0x402420=_0x11c8a5['length']-0x1,_0x1214b7;_0x402420>=0x0;_0x402420--)(_0x1214b7=_0x11c8a5[_0x402420])&&(_0x53cf3d=_0x1214b7(_0x53cf3d)||_0x53cf3d);return _0x53cf3d;},ie=(_0x3a2bf3,_0x3e56da)=>(_0xb287f3,_0x1f7173)=>_0x3e56da(_0xb287f3,_0x1f7173,_0x3a2bf3);let ye=class extends _0x4d2a7f{constructor(_0x47fff2,_0x5de92c,_0x2cc943,_0xc6cd45,_0x3bc5cc){const _0x28affd=_0x2f044f;super(),l(this,_0x28affd(0x16c),[]),l(this,'_cursors',[]),(this['_context']=_0x47fff2,this[_0x28affd(0x178)]=_0x5de92c,this[_0x28affd(0x19e)]=_0x2cc943,this[_0x28affd(0x2c7)]=_0xc6cd45,this[_0x28affd(0x2f1)]=_0x3bc5cc,this[_0x28affd(0x1cf)]());}[_0x2f044f(0x1cf)](){const _0x4b4ac0=_0x2f044f,_0x29b5cd=this['_context'][_0x4b4ac0(0x22a)],_0x39d7b6=this[_0x4b4ac0(0x178)];this[_0x4b4ac0(0x355)](_0x38531d([this[_0x4b4ac0(0x19e)]['getCollabCursors$'](_0x29b5cd),this['_themeService'][_0x4b4ac0(0x2fa)]])[_0x4b4ac0(0x307)](_0x3adb29(([_0x461bfb,_0x45e569])=>({'skeleton':_0x39d7b6[_0x4b4ac0(0x2de)](),'cursors':[..._0x461bfb[_0x4b4ac0(0x2ae)]()]['flatMap'](_0x3024dc=>({..._0x3024dc,'color':this[_0x4b4ac0(0x2f1)][_0x4b4ac0(0x2d6)](_0x3024dc[_0x4b4ac0(0x2b4)])}))})))[_0x4b4ac0(0x304)](_0x305af4=>{const _0x5d5d69=_0x4b4ac0;if(this['_removeCollabCursors'](),_0x305af4){const {skeleton:_0x30e23e,cursors:_0x55003b}=_0x305af4;this[_0x5d5d69(0x18d)](_0x30e23e,_0x55003b);}})),this[_0x4b4ac0(0x278)](),this['_initCommandExecutedListener']();}['_updateCollabCursors'](_0x2f909d,_0x5252db){const _0x2a4b67=_0x2f044f,{scene:_0x3501bc,mainComponent:_0x3fbc30}=this[_0x2a4b67(0x368)],_0x3fc5cd=_0x5252db[_0x2a4b67(0x1bc)](_0x40378c=>new nt(_0x40378c,_0x3501bc,_0x2f909d,_0x3fbc30));this['_cursorShapes']=_0x3fc5cd,this['_cursors']=_0x5252db;}[_0x2f044f(0x2f2)](){const _0x5b8b44=_0x2f044f;this[_0x5b8b44(0x188)]();const {scene:_0x3a988,mainComponent:_0x3b514e}=this[_0x5b8b44(0x368)],_0x2273fa=this['_docSkeletonManagerService'][_0x5b8b44(0x2de)](),_0x4d736c=this[_0x5b8b44(0x25a)]['map'](_0x33e590=>new nt(_0x33e590,_0x3a988,_0x2273fa,_0x3b514e));this[_0x5b8b44(0x16c)]=_0x4d736c;}['_removeCollabCursors'](){const _0x54b83a=_0x2f044f;this[_0x54b83a(0x16c)]['forEach'](_0x2cd920=>_0x2cd920['dispose']()),this['_cursorShapes']=[];}[_0x2f044f(0x28e)](){const _0x26bad0=_0x2f044f,_0x38904d=[_0x24bd33['id']];this[_0x26bad0(0x355)](this[_0x26bad0(0x2c7)][_0x26bad0(0x23f)](_0x4ecc0c=>{const _0x36defe=_0x26bad0;_0x38904d[_0x36defe(0x20c)](_0x4ecc0c['id'])&&_0x4ecc0c[_0x36defe(0x367)]['unitId']===this['_context']['unitId']&&this[_0x36defe(0x2f2)]();}));}[_0x2f044f(0x278)](){const _0x1533a4=_0x2f044f;this[_0x1533a4(0x355)](_0x16b152(this[_0x1533a4(0x368)][_0x1533a4(0x325)][_0x1533a4(0x291)])[_0x1533a4(0x307)](_0x4bde31(_0xcc08cd=>_0xcc08cd[_0x1533a4(0x20b)]===_0x1c713f['resize']),_0x1ef2cc(0x10))[_0x1533a4(0x304)](()=>{const _0x57b893=_0x1533a4;this[_0x57b893(0x2f2)]();}));}};ye=Ji([ie(0x1,_0x30bdc8(_0x523f57)),ie(0x2,_0x30bdc8(H)),ie(0x3,_0x5cca2c),ie(0x4,_0x30bdc8(_0x52ee13))],ye);const Zi=0x1,Qi=1.5;class qi extends _0x363646{constructor(_0x4bfd87,_0x186648){const _0x3e9f85=_0x2f044f;super(_0x4bfd87,_0x186648),l(this,_0x3e9f85(0x2cb)),l(this,'_hovered',!0x1),l(this,_0x3e9f85(0x1f5)),l(this,_0x3e9f85(0x340),''),l(this,_0x3e9f85(0x26f),_0x3e9f85(0x190)),l(this,'_backgroundColor'),(_0x186648&&this['setShapeProps'](_0x186648),this[_0x3e9f85(0x17a)][_0x3e9f85(0x223)](()=>this[_0x3e9f85(0x1a5)]({'hovered':!0x0})),this[_0x3e9f85(0x2d5)][_0x3e9f85(0x223)](()=>this[_0x3e9f85(0x1a5)]({'hovered':!0x1})));}[_0x2f044f(0x1a5)](_0x6d0325){const _0x684d21=_0x2f044f;var _0x45cbb4,_0x3da2bb,_0x4d39e5,_0x980d0c,_0x1dc56a,_0x1bc132;this[_0x684d21(0x2cb)]=(_0x45cbb4=_0x6d0325[_0x684d21(0x2b4)])!=null?_0x45cbb4:this[_0x684d21(0x2cb)],this[_0x684d21(0x2d4)]=(_0x3da2bb=_0x6d0325[_0x684d21(0x182)])!=null?_0x3da2bb:this[_0x684d21(0x2d4)],this['_range']=(_0x4d39e5=_0x6d0325[_0x684d21(0x24e)])!=null?_0x4d39e5:this[_0x684d21(0x1f5)],this[_0x684d21(0x340)]=(_0x980d0c=_0x6d0325[_0x684d21(0x164)])!=null?_0x980d0c:this[_0x684d21(0x340)],this[_0x684d21(0x26f)]=(_0x1dc56a=_0x6d0325[_0x684d21(0x1cd)])!=null?_0x1dc56a:this['_labelPosition'],this[_0x684d21(0x32f)]=(_0x1bc132=_0x6d0325[_0x684d21(0x267)])!=null?_0x1bc132:this[_0x684d21(0x32f)],this['transformByState']({'width':_0x6d0325['width'],'height':_0x6d0325[_0x684d21(0x159)]});}[_0x2f044f(0x256)](_0x58b06e){const _0x5870b5=_0x2f044f,{row:_0x208e10,column:_0x444915}=_0x58b06e;if(_0x208e10>=this[_0x5870b5(0x1f5)][_0x5870b5(0x285)]&&_0x208e10<=this[_0x5870b5(0x1f5)][_0x5870b5(0x327)]&&_0x444915>=this[_0x5870b5(0x1f5)][_0x5870b5(0x20f)]&&_0x444915<=this['_range'][_0x5870b5(0x1f1)]){this[_0x5870b5(0x1a5)]({'hovered':!0x0});return;}this[_0x5870b5(0x1a5)]({'hovered':!0x1});}[_0x2f044f(0x1e3)](_0x28388b){return!0x1;}['_draw'](_0x3d2613){const _0x4479c4=_0x2f044f;_0x4df5d2['drawWith'](_0x3d2613,{'width':this[_0x4479c4(0x184)],'height':this[_0x4479c4(0x159)],'strokeWidth':Qi,'stroke':this[_0x4479c4(0x2cb)],'evented':!0x1,'fill':this[_0x4479c4(0x32f)]}),this[_0x4479c4(0x2d4)]&&(_0x3d2613['save'](),_0x3d2613['transform'](0x1,0x0,0x0,0x1,this[_0x4479c4(0x184)],this[_0x4479c4(0x26f)]===_0x4479c4(0x2b1)?0x0:-Q),me['drawWith'](_0x3d2613,{'text':this[_0x4479c4(0x340)],'color':this[_0x4479c4(0x2cb)]}),_0x3d2613[_0x4479c4(0x231)]());}}var en=Object[_0x2f044f(0x295)],tn=(_0x446781,_0x45cb09,_0x56daa4,_0x1391a3)=>{for(var _0x18c060=_0x1391a3>0x1?void 0x0:_0x1391a3?en(_0x45cb09,_0x56daa4):_0x45cb09,_0x472b9c=_0x446781['length']-0x1,_0x4a69cd;_0x472b9c>=0x0;_0x472b9c--)(_0x4a69cd=_0x446781[_0x472b9c])&&(_0x18c060=_0x4a69cd(_0x18c060)||_0x18c060);return _0x18c060;},Ce=(_0x2fd884,_0x1b3f06)=>(_0x2ecd73,_0x4e5e1a)=>_0x1b3f06(_0x2ecd73,_0x4e5e1a,_0x2fd884);const sn=0x1389;let $e=class extends _0x4d2a7f{constructor(_0x3f895f,_0x23e6c5,_0x5eb907,_0x146439){const _0x32e95d=_0x2f044f;super(),l(this,'_cursors',new Set()),l(this,_0x32e95d(0x30b),null),(this[_0x32e95d(0x368)]=_0x3f895f,this[_0x32e95d(0x274)]=_0x23e6c5,this[_0x32e95d(0x19e)]=_0x5eb907,this[_0x32e95d(0x2f1)]=_0x146439,this[_0x32e95d(0x1cf)]());}[_0x2f044f(0x1cf)](){const _0x3147c8=_0x2f044f;this[_0x3147c8(0x274)]['currentSkeleton$'][_0x3147c8(0x307)](_0x503bbc(this[_0x3147c8(0x1d4)]),_0x68d49c(_0x1a2f60=>{const _0x4a1c87=_0x3147c8;if(_0x1a2f60){const _0x4e642e=_0x1a2f60[_0x4a1c87(0x2ca)];return _0x38531d(this[_0x4a1c87(0x19e)][_0x4a1c87(0x263)](this[_0x4a1c87(0x368)][_0x4a1c87(0x22a)]),this[_0x4a1c87(0x2f1)]['currentTheme$'])[_0x4a1c87(0x307)](_0x3adb29(([_0x5061fa,_0x25a1df])=>{const _0x52df21=_0x4a1c87,_0x17ff4b=new Map();return _0x5061fa[_0x52df21(0x2aa)]((_0x9d3599,_0x323924)=>{const _0x34456=_0x52df21;if(_0x9d3599[_0x34456(0x219)]===_0x4e642e){const _0xa64d22={..._0x9d3599};_0xa64d22[_0x34456(0x2b4)]=this[_0x34456(0x2f1)][_0x34456(0x2d6)](_0x9d3599[_0x34456(0x2b4)]),_0x17ff4b[_0x34456(0x18c)](_0x323924,_0xa64d22);}}),{'skeleton':_0x1a2f60,'cursors':_0x17ff4b};}));}return _0x25bb07({'skeleton':null,'cursors':new Map()});}))[_0x3147c8(0x304)](({skeleton:_0x1c3b5b,cursors:_0x3e4166})=>{const _0x418b7a=_0x3147c8;this[_0x418b7a(0x188)](),_0x1c3b5b&&this['_updateCollabCursors'](_0x1c3b5b,_0x3e4166);}),this['_sheetSkeletonManagerService'][_0x3147c8(0x2ac)]['subscribe'](_0x1bb2d5=>{const _0x5b7589=_0x3147c8;if(_0x1bb2d5==null)return;const {skeleton:_0x8e7b7d}=_0x1bb2d5,{scene:_0x214947}=this[_0x5b7589(0x368)];_0x214947['onPointerMove$'][_0x5b7589(0x223)](_0x32e5dd(_0x594c03=>{const _0x5f25d3=_0x5b7589;var _0x19df57,_0x1eaf00;const {offsetX:_0x3b3437,offsetY:_0x153689}=_0x594c03,{x:_0x398bd4,y:_0x224535}=_0x214947[_0x5f25d3(0x348)](_0x2ae925[_0x5f25d3(0x26b)]([_0x3b3437,_0x153689])),{scaleX:_0x47d1a1,scaleY:_0x32310a}=_0x214947[_0x5f25d3(0x373)](),_0x4ba0f7=_0x214947[_0x5f25d3(0x2c5)](_0x293586['VIEW_MAIN']),_0x235669=_0x214947[_0x5f25d3(0x2dc)](_0x2ae925[_0x5f25d3(0x26b)]([_0x398bd4,_0x224535]),_0x4ba0f7),_0x4d37ab=_0x8e7b7d[_0x5f25d3(0x334)](_0x3b3437,_0x153689,_0x47d1a1,_0x32310a,_0x235669);((_0x19df57=this[_0x5f25d3(0x30b)])==null?void 0x0:_0x19df57[_0x5f25d3(0x20d)])===_0x4d37ab[_0x5f25d3(0x20d)]&&((_0x1eaf00=this[_0x5f25d3(0x30b)])==null?void 0x0:_0x1eaf00[_0x5f25d3(0x2ef)])===_0x4d37ab['row']||this[_0x5f25d3(0x25a)][_0x5f25d3(0x2aa)](_0x814b5b=>{const _0x5eeed5=_0x5f25d3;_0x814b5b[_0x5eeed5(0x256)](_0x4d37ab);});},0x64));});}[_0x2f044f(0x18d)](_0x2c4e19,_0x1b5ffd){const _0x1ea876=_0x2f044f;var _0xc7aa9a;const _0x4e907e=(_0xc7aa9a=this[_0x1ea876(0x274)][_0x1ea876(0x36a)]())==null?void 0x0:_0xc7aa9a['skeleton'];if(!_0x4e907e)return;const _0x36ec19=this['_getSheetObject']();if(!_0x36ec19)return;this[_0x1ea876(0x25a)]['forEach'](_0x45f518=>{const _0x535876=_0x1ea876;_0x45f518[_0x535876(0x319)]();});const {scene:_0x90e3a7}=_0x36ec19,_0x4a725c=nn(Array[_0x1ea876(0x2f0)](_0x1b5ffd[_0x1ea876(0x2ae)]()))[_0x1ea876(0x1bc)](_0x167d08=>{const _0x2b1233=_0x1ea876,{color:_0x3122fc,range:_0x4b1a0d,name:_0x2e8370,selection:_0x1c16ca,sheetID:_0x4fe89c}=_0x167d08,{startColumn:_0xb0ba83,startRow:_0x591f31,endColumn:_0x5c145b,endRow:_0x4c0586}=_0x4b1a0d,_0x235ccd=_0x545dfb(_0x591f31,_0xb0ba83,_0x90e3a7,_0x4e907e),_0x158412=_0x545dfb(_0x4c0586,_0x5c145b,_0x90e3a7,_0x4e907e),{columnHeaderHeightAndMarginTop:_0x530c58}=_0x4e907e,{startX:_0x314098,startY:_0x5a8c4d}=_0x235ccd,{endX:_0x4617bd,endY:_0x2a8d7d}=_0x158412,_0x2b5419=_0x4617bd-_0x314098,_0x3074af=_0x2a8d7d-_0x5a8c4d,_0xb10c91={'labelPosition':_0x5a8c4d-_0x530c58>=Q?_0x2b1233(0x190):_0x2b1233(0x2b1),'sheetID':_0x4fe89c,'range':_0x4b1a0d,'color':_0x3122fc,'name':_0x2e8370,'selection':_0x1c16ca,'left':_0x314098,'top':_0x5a8c4d,'width':_0x2b5419,'height':_0x3074af,'evented':!0x1,'zIndex':sn};return new qi(_0x2e8370,_0xb10c91);});_0x90e3a7['addObjects'](_0x4a725c,Zi),this[_0x1ea876(0x25a)]=new Set(_0x4a725c);}[_0x2f044f(0x188)](){const _0x384933=_0x2f044f;var _0x2ecb69;(_0x2ecb69=this[_0x384933(0x25a)])==null||_0x2ecb69['forEach'](_0x4f9767=>_0x4f9767[_0x384933(0x265)]());}[_0x2f044f(0x1c7)](){const _0x31e94c=_0x2f044f;return _0x264d3a(this[_0x31e94c(0x368)][_0x31e94c(0x1b3)],this['_context']);}};$e=tn([Ce(0x1,_0x30bdc8(_0x3c396a)),Ce(0x2,_0x30bdc8(H)),Ce(0x3,_0x30bdc8(_0x52ee13))],$e);function nn(_0x3ade01){const _0x8d3946=_0x2f044f,_0x210a07=new Map();return _0x3ade01[_0x8d3946(0x2aa)](_0x28e987=>{const _0x38b46c=_0x8d3946;if(_0x210a07[_0x38b46c(0x2d3)](_0x28e987['selection'])){const _0x25d07d=_0x210a07['get'](_0x28e987['selection']);_0x25d07d['name']+=',\x20'+_0x28e987[_0x38b46c(0x164)];}else _0x210a07[_0x38b46c(0x18c)](_0x28e987['selection'],_0x28e987);}),Array[_0x8d3946(0x2f0)](_0x210a07[_0x8d3946(0x2ae)]());}var rn=Object['getOwnPropertyDescriptor'],on=(_0x2bca7b,_0x1d2f71,_0x2b6869,_0x4a4122)=>{const _0x365142=_0x2f044f;for(var _0x2bb423=_0x4a4122>0x1?void 0x0:_0x4a4122?rn(_0x1d2f71,_0x2b6869):_0x1d2f71,_0x57d617=_0x2bca7b[_0x365142(0x1be)]-0x1,_0x4c8353;_0x57d617>=0x0;_0x57d617--)(_0x4c8353=_0x2bca7b[_0x57d617])&&(_0x2bb423=_0x4c8353(_0x2bb423)||_0x2bb423);return _0x2bb423;},F=(_0xcab3e,_0x8d7c81)=>(_0xfb1a02,_0x562289)=>_0x8d7c81(_0xfb1a02,_0x562289,_0xcab3e);let ce=class extends _0x3070e7{constructor(_0x19d5e8,_0x40b00a,_0x54c190,_0x4eafd3,_0xbe0221,_0x22b409){const _0x470ca2=_0x2f044f;super(),this['_beforeCloseService']=_0x19d5e8,this[_0x470ca2(0x358)]=_0x40b00a,this['_collaborationUIEventService']=_0x54c190,this['_messageService']=_0x4eafd3,this[_0x470ca2(0x2eb)]=_0xbe0221,this[_0x470ca2(0x192)]=_0x22b409,this[_0x470ca2(0x13c)](),this[_0x470ca2(0x1f7)]();}[_0x2f044f(0x13c)](){const _0x36c9b7=_0x2f044f;this[_0x36c9b7(0x355)](this[_0x36c9b7(0x282)][_0x36c9b7(0x243)](()=>{const _0x40893a=_0x36c9b7;if(this[_0x40893a(0x358)][_0x40893a(0x1cb)][_0x40893a(0x2ab)])return this['_localeService']['t'](_0x40893a(0x205));}));}[_0x2f044f(0x1f7)](){const _0x1846d2=_0x2f044f;this[_0x1846d2(0x355)](this[_0x1846d2(0x2ec)]['event$'][_0x1846d2(0x304)](_0x10c9d0=>{const _0x309180=_0x1846d2;_0x10c9d0['id']===_0x3cd7d2['OTHER_CLIENT_EDITING']&&this[_0x309180(0x312)][_0x309180(0x1f8)]({'type':_0x17dcef[_0x309180(0x22e)],'content':this[_0x309180(0x192)]['t'](_0x309180(0x28b))}),_0x10c9d0['id']===_0x3cd7d2[_0x309180(0x26d)]&&this[_0x309180(0x312)]['show']({'type':_0x17dcef[_0x309180(0x22e)],'content':this[_0x309180(0x192)]['t'](_0x309180(0x247))}),_0x10c9d0['id']===_0x3cd7d2[_0x309180(0x366)]&&this[_0x309180(0x2eb)][_0x309180(0x1f8)]({'title':this[_0x309180(0x192)]['t'](_0x309180(0x170)),'content':this[_0x309180(0x192)]['t'](_0x309180(0x31c)),'type':'error','duration':0x0}),_0x10c9d0['id']===_0x3cd7d2[_0x309180(0x317)]&&this[_0x309180(0x312)][_0x309180(0x1f8)]({'type':_0x17dcef[_0x309180(0x2fb)],'content':this[_0x309180(0x192)]['t'](_0x309180(0x247))+'('+_0x10c9d0[_0x309180(0x2a0)]+')'}),_0x10c9d0['id']===_0x3cd7d2['JOIN_ROOM_FAILED']&&this[_0x309180(0x312)][_0x309180(0x1f8)]({'type':_0x17dcef[_0x309180(0x22e)],'content':this[_0x309180(0x192)]['t'](_0x10c9d0[_0x309180(0x2a0)]||'')}),_0x10c9d0['id']===_0x3cd7d2[_0x309180(0x1fd)]&&this[_0x309180(0x312)][_0x309180(0x1f8)]({'type':_0x17dcef['Warning'],'content':this['_localeService']['t'](_0x309180(0x19d))}),_0x10c9d0['id']===_0x3cd7d2[_0x309180(0x308)]&&this[_0x309180(0x312)][_0x309180(0x1f8)]({'type':_0x17dcef[_0x309180(0x2fb)],'content':this['_localeService']['t'](_0x309180(0x252))}),_0x10c9d0['id']===_0x3cd7d2[_0x309180(0x276)]&&this[_0x309180(0x312)][_0x309180(0x1f8)]({'type':_0x17dcef['Error'],'content':this[_0x309180(0x192)]['t'](_0x309180(0x1ce))});}));}};ce=on([F(0x0,_0x4de469),F(0x1,_0x2ccb07),F(0x2,_0x30bdc8(_0x4151ec)),F(0x3,_0x1865bb),F(0x4,_0x2b2a16),F(0x5,_0x30bdc8(_0x3c120a))],ce);const an=_0x2f044f(0x28f),rt={};var cn=Object[_0x2f044f(0x295)],_n=(_0x24d90a,_0x49585f,_0x59e587,_0x57198f)=>{for(var _0x133fd6=_0x57198f>0x1?void 0x0:_0x57198f?cn(_0x49585f,_0x59e587):_0x49585f,_0xd7fdee=_0x24d90a['length']-0x1,_0x441115;_0xd7fdee>=0x0;_0xd7fdee--)(_0x441115=_0x24d90a[_0xd7fdee])&&(_0x133fd6=_0x441115(_0x133fd6)||_0x133fd6);return _0x133fd6;},ot=(_0x260f9d,_0xd7a2d0)=>(_0x210cbc,_0x24fab5)=>_0xd7a2d0(_0x210cbc,_0x24fab5,_0x260f9d);let _e=class{constructor(_0x493d1d,_0x2e6fff){const _0x1e4293=_0x2f044f;this['_transformService']=_0x493d1d,this[_0x1e4293(0x30c)]=_0x2e6fff;}[_0x2f044f(0x1a6)](_0x30a34d){this['_transformUndoRedoStack'](_0x30a34d),this['_transformPreviousActiveRange'](_0x30a34d);}[_0x2f044f(0x31f)](_0x1cd06b){const _0x6c0241=_0x2f044f,{unitID:_0x3b63ed}=_0x1cd06b,_0x3113ad=this[_0x6c0241(0x30c)][_0x6c0241(0x378)](_0x3b63ed)[_0x6c0241(0x259)](_0x50464f),{redoCache:_0x3bc0a8}=_0x3113ad[_0x6c0241(0x13f)]();if(_0x3bc0a8[_0x6c0241(0x1be)]===0x0)return _0x1cd06b;let _0x52b150=_0x54294e[_0x6c0241(0x2a4)](_0x1cd06b[_0x6c0241(0x330)][0x0]);for(let _0x222d55=0x0;_0x222d55<_0x3bc0a8[_0x6c0241(0x1be)];_0x222d55++){const _0x27b699={'id':_0x6c0241(0x241),'params':{..._0x3bc0a8[_0x222d55]}},_0xd8118c=this['_transformService'][_0x6c0241(0x30f)](_0x52b150,_0x27b699,!0x1);if(_0x3f2a8d(_0xd8118c))throw _0xd8118c['error'];_0x52b150=_0xd8118c[_0x6c0241(0x2c6)];}return{..._0x54294e['deepClone'](_0x1cd06b),'mutations':[_0x52b150]};}[_0x2f044f(0x1a1)](_0x30b217){const _0x37ac99=_0x2f044f,{unitID:_0x6d6625}=_0x30b217,_0x4c6e67=this[_0x37ac99(0x30c)][_0x37ac99(0x378)](_0x6d6625)[_0x37ac99(0x259)](_0x50464f),{undoCache:_0x4b4365,redoCache:_0x5477ec}=_0x4c6e67[_0x37ac99(0x13f)]();if(_0x4b4365[_0x37ac99(0x1be)]===0x0||_0x5477ec['length']===0x0)return;const _0x4c989a=[],_0x1ec8d7=[];let _0x5bbd0f=_0x54294e[_0x37ac99(0x2a4)](_0x30b217[_0x37ac99(0x330)][0x0]),_0x1623ae=_0x54294e[_0x37ac99(0x2a4)](_0x30b217[_0x37ac99(0x330)][0x0]);for(let _0x5c9ed9=_0x4b4365[_0x37ac99(0x1be)]-0x1;_0x5c9ed9>=0x0;_0x5c9ed9--){const _0x4fc3a2={'id':_0x37ac99(0x241),'params':{..._0x4b4365[_0x5c9ed9]}},_0x15d5b0={'id':_0x37ac99(0x241),'params':{..._0x5477ec[_0x5c9ed9]}},_0x58290b=this[_0x37ac99(0x1a8)]['transformMutation'](_0x5bbd0f,_0x4fc3a2,!0x1),_0xb65a7=this[_0x37ac99(0x1a8)][_0x37ac99(0x30f)](_0x1623ae,_0x15d5b0,!0x1);if(_0x3f2a8d(_0x58290b))throw _0x58290b[_0x37ac99(0x2cd)];if(_0x3f2a8d(_0xb65a7))throw _0xb65a7[_0x37ac99(0x2cd)];_0x4c989a[_0x37ac99(0x22c)](_0x58290b[_0x37ac99(0x376)][_0x37ac99(0x367)]),_0x1ec8d7[_0x37ac99(0x22c)](_0xb65a7[_0x37ac99(0x376)][_0x37ac99(0x367)]),_0x5bbd0f=_0x58290b['m1Prime'],_0x1623ae=_0xb65a7[_0x37ac99(0x2c6)];}_0x4c6e67[_0x37ac99(0x155)]({'undoCache':_0x4c989a,'redoCache':_0x1ec8d7});}[_0x2f044f(0x23b)](_0x31b54a){const _0x484f24=_0x2f044f,{unitID:_0x3cc9f3}=_0x31b54a,_0x178a55=this[_0x484f24(0x30c)][_0x484f24(0x378)](_0x3cc9f3)[_0x484f24(0x259)](_0x50464f),_0x33d1fd=_0x178a55[_0x484f24(0x354)]();if(_0x33d1fd==null)return;const _0x3262fa=[{'id':_0x484f24(0x241),'params':{'unitId':_0x31b54a['unitID'],'actions':null,'textRanges':[_0x33d1fd]}}],_0x32ccca=this[_0x484f24(0x1a8)][_0x484f24(0x1c2)](_0x31b54a,_0x3262fa);if(!_0x233b43(_0x32ccca))throw _0x32ccca[_0x484f24(0x2cd)];const _0x23141b=_0x32ccca[_0x484f24(0x376)][0x0][_0x484f24(0x367)][_0x484f24(0x2f7)];Array[_0x484f24(0x203)](_0x23141b)&&_0x23141b[_0x484f24(0x1be)]&&_0x178a55[_0x484f24(0x146)](_0x23141b[0x0]);}};_e=_n([ot(0x0,_0x3a64be),ot(0x1,_0x3e044c)],_e);var ln=Object['getOwnPropertyDescriptor'],hn=(_0x106082,_0x4c950e,_0x2e46f6,_0x117c73)=>{const _0x427537=_0x2f044f;for(var _0x3cccce=_0x117c73>0x1?void 0x0:_0x117c73?ln(_0x4c950e,_0x2e46f6):_0x4c950e,_0x1ef940=_0x106082[_0x427537(0x1be)]-0x1,_0x201f32;_0x1ef940>=0x0;_0x1ef940--)(_0x201f32=_0x106082[_0x1ef940])&&(_0x3cccce=_0x201f32(_0x3cccce)||_0x3cccce);return _0x3cccce;},Re=(_0x443a70,_0x348da5)=>(_0x43bacf,_0x14e105)=>_0x348da5(_0x43bacf,_0x14e105,_0x443a70);let le=class{constructor(_0x3947a4,_0x4a20e4,_0x291b50){const _0x4f53ec=_0x2f044f;this['_injector']=_0x3947a4,this[_0x4f53ec(0x1a8)]=_0x4a20e4,this[_0x4f53ec(0x148)]=_0x291b50;}[_0x2f044f(0x1a4)](_0x47945d){const _0x7e3c3c=_0x2f044f;this[_0x7e3c3c(0x13d)](_0x47945d);}[_0x2f044f(0x31f)](_0x3ae37d){const _0x1b0d5d=_0x2f044f,{unitID:_0x24be4e}=_0x3ae37d,{collaboration:_0x174e0d}=this[_0x1b0d5d(0x148)][_0x1b0d5d(0x162)](_0x24be4e);if(_0x174e0d[_0x1b0d5d(0x1be)]===0x0)return _0x3ae37d;let _0x57cd2a=_0x54294e[_0x1b0d5d(0x2a4)](_0x3ae37d[_0x1b0d5d(0x330)][0x0]);for(let _0x5dff12=0x0;_0x5dff12<_0x174e0d[_0x1b0d5d(0x1be)];_0x5dff12++){const _0x5d90ba={'id':_0x1b0d5d(0x241),'params':{'unitId':_0x174e0d[_0x5dff12][_0x1b0d5d(0x22a)],..._0x174e0d[_0x5dff12][_0x1b0d5d(0x311)]}},_0xa30871=this['_transformService'][_0x1b0d5d(0x30f)](_0x57cd2a,_0x5d90ba,!0x1);if(_0x3f2a8d(_0xa30871))throw _0xa30871[_0x1b0d5d(0x2cd)];_0x57cd2a=_0xa30871[_0x1b0d5d(0x2c6)];}return{..._0x54294e[_0x1b0d5d(0x2a4)](_0x3ae37d),'mutations':[_0x57cd2a]};}[_0x2f044f(0x13d)](_0x5d16a8){const _0x4faeb7=_0x2f044f,{unitID:_0x2f63ad}=_0x5d16a8,{history:_0x1afc88,collaboration:_0x44f3f2}=this[_0x4faeb7(0x148)][_0x4faeb7(0x162)](_0x2f63ad);if(_0x1afc88[_0x4faeb7(0x1be)]===0x0&&_0x44f3f2[_0x4faeb7(0x1be)]===0x0)return;const _0x1237e7=[],_0x23fc25=[];let _0x462c84=_0x54294e[_0x4faeb7(0x2a4)](_0x5d16a8[_0x4faeb7(0x330)][0x0]),_0x3af1f9=_0x54294e[_0x4faeb7(0x2a4)](_0x5d16a8[_0x4faeb7(0x330)][0x0]);for(let _0x1f39c0=_0x1afc88[_0x4faeb7(0x1be)]-0x1;_0x1f39c0>=0x0;_0x1f39c0--){const _0x5b1699={'id':_0x4faeb7(0x241),'params':{'unitId':_0x1afc88[_0x1f39c0][_0x4faeb7(0x22a)],..._0x1afc88[_0x1f39c0][_0x4faeb7(0x2d7)]}},_0x56f6ff={'id':_0x4faeb7(0x241),'params':{'unitId':_0x1afc88[_0x1f39c0]['unitId'],..._0x1afc88[_0x1f39c0][_0x4faeb7(0x311)]}},_0x49c699=this[_0x4faeb7(0x1a8)][_0x4faeb7(0x30f)](_0x462c84,_0x5b1699,!0x1),_0x4526ff=this[_0x4faeb7(0x1a8)][_0x4faeb7(0x30f)](_0x3af1f9,_0x56f6ff,!0x1);if(_0x3f2a8d(_0x49c699))throw _0x49c699[_0x4faeb7(0x2cd)];if(_0x3f2a8d(_0x4526ff))throw _0x4526ff[_0x4faeb7(0x2cd)];_0x1237e7['unshift']({..._0x1afc88[_0x1f39c0],'undoState':_0x49c699[_0x4faeb7(0x376)][_0x4faeb7(0x367)],'redoState':_0x4526ff['m2Prime']['params']}),_0x462c84=_0x49c699[_0x4faeb7(0x2c6)],_0x3af1f9=_0x4526ff['m1Prime'];}_0x462c84=_0x54294e['deepClone'](_0x5d16a8['mutations'][0x0]),_0x3af1f9=_0x54294e[_0x4faeb7(0x2a4)](_0x5d16a8['mutations'][0x0]);for(let _0x392fdd=_0x44f3f2[_0x4faeb7(0x1be)]-0x1;_0x392fdd>=0x0;_0x392fdd--){const _0x2c2ded={'id':_0x4faeb7(0x241),'params':{'unitId':_0x44f3f2[_0x392fdd][_0x4faeb7(0x22a)],..._0x44f3f2[_0x392fdd][_0x4faeb7(0x2d7)]}},_0x5a059e={'id':_0x4faeb7(0x241),'params':{'unitId':_0x44f3f2[_0x392fdd][_0x4faeb7(0x22a)],..._0x44f3f2[_0x392fdd]['redoState']}},_0x48d65c=this[_0x4faeb7(0x1a8)][_0x4faeb7(0x30f)](_0x462c84,_0x2c2ded,!0x1),_0x2fe73b=this['_transformService'][_0x4faeb7(0x30f)](_0x3af1f9,_0x5a059e,!0x1);if(_0x3f2a8d(_0x48d65c))throw _0x48d65c['error'];if(_0x3f2a8d(_0x2fe73b))throw _0x2fe73b[_0x4faeb7(0x2cd)];_0x23fc25['unshift']({..._0x44f3f2[_0x392fdd],'undoState':_0x48d65c[_0x4faeb7(0x376)]['params'],'redoState':_0x2fe73b[_0x4faeb7(0x376)][_0x4faeb7(0x367)]}),_0x462c84=_0x48d65c[_0x4faeb7(0x2c6)],_0x3af1f9=_0x2fe73b[_0x4faeb7(0x2c6)];}this['_docStateChangeManagerService']['setStateCache'](_0x2f63ad,{'history':_0x1237e7,'collaboration':_0x23fc25});}};le=hn([Re(0x0,_0x30bdc8(_0x4568e0)),Re(0x1,_0x3a64be),Re(0x2,_0x30bdc8(_0x99482e))],le);var un=Object[_0x2f044f(0x295)],dn=(_0x3d0f3a,_0x5845d2,_0x36c442,_0x3b0b17)=>{const _0x4d71a3=_0x2f044f;for(var _0x206058=_0x3b0b17>0x1?void 0x0:_0x3b0b17?un(_0x5845d2,_0x36c442):_0x5845d2,_0x22b2fd=_0x3d0f3a[_0x4d71a3(0x1be)]-0x1,_0x2a329b;_0x22b2fd>=0x0;_0x22b2fd--)(_0x2a329b=_0x3d0f3a[_0x22b2fd])&&(_0x206058=_0x2a329b(_0x206058)||_0x206058);return _0x206058;},at=(_0xba0a1b,_0x404f00)=>(_0x4d59a6,_0xceff4d)=>_0x404f00(_0x4d59a6,_0xceff4d,_0xba0a1b);let he=class{constructor(_0x2108b7,_0x5dade2){this['_injector']=_0x2108b7,this['_transformService']=_0x5dade2;}[_0x2f044f(0x2f9)](_0x17fdb7){const _0x546834=_0x2f044f;var _0x5ceeda;const _0x2fbebc=this['_injector'][_0x546834(0x2d1)](_0x349b69),_0x3431f4=(_0x5ceeda=_0x2fbebc[_0x546834(0x310)]())!=null?_0x5ceeda:[];if(_0x3431f4[_0x546834(0x1be)]===0x0)return;const _0x5e555e=_0x17fdb7[_0x546834(0x261)],_0x52290a=[{'id':_0x546834(0x241),'params':{'unitId':_0x5e555e,'actions':null,'textRanges':_0x3431f4}}],_0x529fa4=this[_0x546834(0x1a8)][_0x546834(0x1c2)](_0x17fdb7,_0x52290a);if(!_0x233b43(_0x529fa4))throw _0x529fa4[_0x546834(0x2cd)];const _0x67af85=_0x529fa4[_0x546834(0x376)][0x0][_0x546834(0x367)]['textRanges'];Array[_0x546834(0x203)](_0x67af85)&&_0x67af85['length']&&_0x2fbebc[_0x546834(0x160)](_0x67af85,{'unitId':_0x5e555e,'subUnitId':_0x5e555e},!0x1);}};he=dn([at(0x0,_0x30bdc8(_0x4568e0)),at(0x1,_0x3a64be)],he);var Sn=Object['getOwnPropertyDescriptor'],In=(_0x237f31,_0xa7b76e,_0x47c73d,_0x1decc8)=>{const _0x2fe5c6=_0x2f044f;for(var _0x15890a=_0x1decc8>0x1?void 0x0:_0x1decc8?Sn(_0xa7b76e,_0x47c73d):_0xa7b76e,_0x5a1d36=_0x237f31[_0x2fe5c6(0x1be)]-0x1,_0xdec410;_0x5a1d36>=0x0;_0x5a1d36--)(_0xdec410=_0x237f31[_0x5a1d36])&&(_0x15890a=_0xdec410(_0x15890a)||_0x15890a);return _0x15890a;},b=(_0x566874,_0x16da1a)=>(_0x2c3d47,_0x1de105)=>_0x16da1a(_0x2c3d47,_0x1de105,_0x566874);let ue=class extends _0x3070e7{constructor(_0xd4869d,_0x56b1d2,_0x4b5a76,_0x445b2a,_0x3d85c0,_0x23ad52,_0x2c0104,_0xdbdd2d){const _0x124365=_0x2f044f;super(),l(this,_0x124365(0x297),new _0x11f3cd(_0x60ba72[_0x124365(0x32d)])),(this[_0x124365(0x148)]=_0xd4869d,this['_collaborationController']=_0x56b1d2,this[_0x124365(0x1db)]=_0x4b5a76,this['_docTransformStateCacheService']=_0x445b2a,this[_0x124365(0x139)]=_0x3d85c0,this['_docSyncEditingCollabCursorService']=_0x23ad52,this['_messageService']=_0x2c0104,this['_localeService']=_0xdbdd2d,this[_0x124365(0x16f)]());}[_0x2f044f(0x16f)](){const _0xa1aafa=_0x2f044f;this['disposeWithMe'](this[_0xa1aafa(0x253)][_0xa1aafa(0x1e2)][_0xa1aafa(0x304)](_0x58e43d=>{const _0x140ac8=_0xa1aafa,_0x3e453f=this['_docStateChangeManagerService'][_0x140ac8(0x1bd)]['subscribe'](_0x15e7ab=>{const _0x446056=_0x140ac8;if(_0x15e7ab==null)return;const {unitId:_0x18079d,redoState:_0x355bd2,commandId:_0x34daaf}=_0x15e7ab;if(_0x18079d!==_0x58e43d['unitID'])return;const _0x3da646={'id':_0x34daaf,'type':_0x15a9e3[_0x446056(0x212)],'params':{'unitId':_0x18079d,'actions':_0x355bd2['actions'],'textRanges':null}};_0x58e43d[_0x446056(0x20e)](_0x3da646);});if(_0x58e43d[_0x140ac8(0x355)](_0x3e453f),_0x58e43d instanceof _0x3d0825){const _0x52bee6={'onTransformIME':_0x17df38=>this[_0x140ac8(0x1db)][_0x140ac8(0x1a6)](_0x17df38),'onTransformState':_0x143463=>this['_docTransformStateCacheService'][_0x140ac8(0x1a4)](_0x143463),'onTransformSelections':_0x5f4ca1=>this[_0x140ac8(0x139)][_0x140ac8(0x2f9)](_0x5f4ca1),'onSyncEditingCollabCursor':_0x31331c=>this['_docSyncEditingCollabCursorService'][_0x140ac8(0x2ee)](_0x31331c),'onTransformRemoteChangesetByIMECache':_0x3a41c2=>this[_0x140ac8(0x1db)][_0x140ac8(0x31f)](_0x3a41c2),'onTransformRemoteChangesetByStateCache':_0x505701=>this[_0x140ac8(0x2df)][_0x140ac8(0x31f)](_0x505701)};_0x58e43d[_0x140ac8(0x22b)](_0x52bee6);}}));}};ue=In([b(0x0,_0x30bdc8(_0x99482e)),b(0x1,_0x30bdc8(_0x29a4d3)),b(0x2,_0x30bdc8(_e)),b(0x3,_0x30bdc8(le)),b(0x4,_0x30bdc8(he)),b(0x5,_0x30bdc8(Xe)),b(0x6,_0x1865bb),b(0x7,_0x30bdc8(_0x3c120a))],ue);var Z=(_0x2e8b7e=>(_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x1b5)]=0x0]=_0x2f044f(0x1b5),_0x2e8b7e[_0x2e8b7e['OK']=0x1]='OK',_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x14d)]=0x2]=_0x2f044f(0x14d),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x366)]=0x3]=_0x2f044f(0x366),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x331)]=0x4]='NOT_FOUND',_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x2ed)]=0x5]=_0x2f044f(0x2ed),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x251)]=0x6]=_0x2f044f(0x251),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x189)]=0x7]=_0x2f044f(0x189),_0x2e8b7e[_0x2e8b7e['TOO_MANY_REQUESTS']=0x8]=_0x2f044f(0x1aa),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x194)]=0x9]=_0x2f044f(0x194),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x33d)]=0xa]='LOGIN_FAILED',_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x2fe)]=0xb]=_0x2f044f(0x2fe),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x218)]=0xc]=_0x2f044f(0x218),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x221)]=0xd]=_0x2f044f(0x221),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x28d)]=0xe]=_0x2f044f(0x28d),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x280)]=0xf]=_0x2f044f(0x280),_0x2e8b7e[_0x2e8b7e['LOGIN_TOKEN_PROCESSING_FAILED']=0x10]=_0x2f044f(0x1c5),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x21b)]=0x64]=_0x2f044f(0x21b),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x34d)]=0x65]='ERROR_AGAIN',_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x32b)]=0xc9]=_0x2f044f(0x32b),_0x2e8b7e[_0x2e8b7e['USER_IS_ANONYMOUS']=0xca]='USER_IS_ANONYMOUS',_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x1d0)]=0x1389]=_0x2f044f(0x1d0),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x143)]=0x1771]=_0x2f044f(0x143),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x1c0)]=0x1772]=_0x2f044f(0x1c0),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x1d8)]=0x1773]=_0x2f044f(0x1d8),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x166)]=0x1b59]=_0x2f044f(0x166),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x269)]=0x1b5a]=_0x2f044f(0x269),_0x2e8b7e[_0x2e8b7e['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x2f044f(0x1f0),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x329)]=0x1b5c]=_0x2f044f(0x329),_0x2e8b7e[_0x2e8b7e['APPLY_DUPLICATED']=0x1b5d]=_0x2f044f(0x266),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x2e5)]=0x1f41]=_0x2f044f(0x2e5),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x158)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x249)]=0x232a]=_0x2f044f(0x249),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x183)]=0x232b]=_0x2f044f(0x183),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x326)]=0x232c]=_0x2f044f(0x326),_0x2e8b7e[_0x2e8b7e['LICENSE_DISTRO_REJECTED']=0x232d]=_0x2f044f(0x217),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x167)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x2e8b7e[_0x2e8b7e['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x2f044f(0x2bd),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x379)]=0x2713]=_0x2f044f(0x379),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x2bc)]=0x2714]=_0x2f044f(0x2bc),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x168)]=0x271a]=_0x2f044f(0x168),_0x2e8b7e[_0x2e8b7e['YUUMI_ASYNCIO_CANCELLED']=0x271b]=_0x2f044f(0x206),_0x2e8b7e[_0x2e8b7e['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x2e8b7e[_0x2e8b7e['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x13b)]=0x271e]=_0x2f044f(0x13b),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x314)]=0x271f]='YUUMI_AI_RUN_FAILED',_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x260)]=0x2720]='YUUMI_CONNECTOR_URL_NOT_FOUND',_0x2e8b7e[_0x2e8b7e['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x2f044f(0x1e0),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x2a3)]=0x2ee1]=_0x2f044f(0x2a3),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x300)]=0x2ee2]=_0x2f044f(0x300),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x1c8)]=0x2ee3]=_0x2f044f(0x1c8),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x216)]=0x2ee4]=_0x2f044f(0x216),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x2e7)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x147)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x25d)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x322)]=0x32cb]=_0x2f044f(0x322),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x324)]=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x30a)]=0x36b2]='ENTITLE_UPDOWN_GRADE_NOT_SUPPORT',_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x1f6)]=0x36b3]=_0x2f044f(0x1f6),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x25b)]=0x36b4]=_0x2f044f(0x25b),_0x2e8b7e[_0x2e8b7e['ENTITLE_CHAT_LIMIT_EXCEED']=0x3715]=_0x2f044f(0x186),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x17e)]=0x3716]=_0x2f044f(0x17e),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x255)]=0x3717]=_0x2f044f(0x255),_0x2e8b7e[_0x2e8b7e['ENTITLE_NEED_BILLING_ADDRESS']=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x35a)]=0x3a99]=_0x2f044f(0x35a),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x286)]=0x3a9a]=_0x2f044f(0x286),_0x2e8b7e[_0x2e8b7e['REDEMPTION_CODE_FULLY_REDEEMED']=0x3a9b]=_0x2f044f(0x1d6),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x16d)]=0x3a9c]='REDEMPTION_CODE_NOT_STARTED',_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x321)]=0x3a9d]=_0x2f044f(0x321),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x1a9)]=0x3a9e]='REDEMPTION_USER_REDEEM_TIMES_EXCEED',_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x1ae)]=0x3a9f]=_0x2f044f(0x1ae),_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x24d)]=0x3e81]='DATA_SOURCE_TOO_LARGE',_0x2e8b7e[_0x2e8b7e[_0x2f044f(0x345)]=-0x1]=_0x2f044f(0x345),_0x2e8b7e))(Z||{});function mn(_0x3ccb47){const _0x19da4c=_0x2f044f;var _0x14b831,_0x28d3e6;const _0xf4d56b=(_0x14b831=_0x3ccb47[_0x19da4c(0x2a9)])==null?void 0x0:_0x14b831[_0x19da4c(0x1fa)],_0x21c147=((_0x28d3e6=_0x3ccb47[_0x19da4c(0x2a9)])==null?void 0x0:_0x28d3e6[_0x19da4c(0x14a)])||0x0;return _0xf4d56b===_0x52da47['START_CALCULATION']&&_0x21c147>0x0;}function fn(_0xb310ef){const _0x4b534e=_0x2f044f;return _0xb310ef[_0x4b534e(0x172)]===_0x58c49a[_0x4b534e(0x1b4)];}var gn=Object[_0x2f044f(0x295)],vn=(_0x19300e,_0x3ba4eb,_0x3e9d48,_0x1bb008)=>{const _0x202dd6=_0x2f044f;for(var _0x7c37bd=_0x1bb008>0x1?void 0x0:_0x1bb008?gn(_0x3ba4eb,_0x3e9d48):_0x3ba4eb,_0x34019f=_0x19300e[_0x202dd6(0x1be)]-0x1,_0xb55ac5;_0x34019f>=0x0;_0x34019f--)(_0xb55ac5=_0x19300e[_0x34019f])&&(_0x7c37bd=_0xb55ac5(_0x7c37bd)||_0x7c37bd);return _0x7c37bd;},P=(_0x4334e0,_0x52d499)=>(_0x5997fb,_0x5a73e4)=>_0x52d499(_0x5997fb,_0x5a73e4,_0x4334e0);const En=_0x2f044f(0x281),pn=_0x2f044f(0x224),On=_0x2f044f(0x31a);let de=class extends _0x3070e7{constructor(_0x3a1dfc,_0x1447bc,_0xfe0c53,_0x40618d,_0x19597a,_0x3bf4db,_0x555b1b){const _0x5d997e=_0x2f044f;super(),l(this,_0x5d997e(0x199),null),l(this,_0x5d997e(0x283),0x0),l(this,_0x5d997e(0x2e1),0x0),l(this,_0x5d997e(0x151),[]),l(this,_0x5d997e(0x296),0x0),(this[_0x5d997e(0x312)]=_0x3a1dfc,this[_0x5d997e(0x2c7)]=_0x1447bc,this[_0x5d997e(0x353)]=_0xfe0c53,this[_0x5d997e(0x2b5)]=_0x40618d,this[_0x5d997e(0x36b)]=_0x19597a,this['_logService']=_0x3bf4db,this[_0x5d997e(0x192)]=_0x555b1b,this[_0x5d997e(0x323)]());}['_initCommandInterceptor'](){const _0x1d2f2e=_0x2f044f;this[_0x1d2f2e(0x355)](this['_commandService'][_0x1d2f2e(0x18e)]((_0x3bb242,_0xe64afe)=>{const _0x264a7f=_0x1d2f2e;var _0x4bf790;if(_0x3bb242['id']!==_0x684e31['id'])return;const _0x3642fe=_0x3bb242[_0x264a7f(0x367)];if(!this[_0x264a7f(0x2b8)]((_0x4bf790=_0x3642fe[_0x264a7f(0x201)])!=null?_0x4bf790:[]))return;if(!this[_0x264a7f(0x301)]())throw this['_checkAndWaitForCalculationPermission'](_0x3bb242,_0xe64afe),this['_showGuardMessage'](),new _0x1b9467();})),this[_0x1d2f2e(0x355)](this['_commandService']['onCommandExecuted']((_0x4c9c28,_0x4c9631)=>{const _0x55d249=_0x1d2f2e;if(_0x4c9c28['id']!==_0x288bd8['id'])return;const _0xf8d3b=_0x4c9c28[_0x55d249(0x367)];if(mn(_0xf8d3b)){const _0x2f05d0=_0x243a41();this[_0x55d249(0x151)]['push'](_0x2f05d0),this[_0x55d249(0x169)](_0x2f05d0);}else{if(fn(_0xf8d3b)&&this[_0x55d249(0x151)]['length']>0x0){const _0x9177f=this[_0x55d249(0x151)][_0x55d249(0x1b9)]();this[_0x55d249(0x31d)](_0x9177f);}}}));}[_0x2f044f(0x265)](){const _0x47d06b=_0x2f044f;super[_0x47d06b(0x265)](),this[_0x47d06b(0x1ff)](),this[_0x47d06b(0x151)]=[],this[_0x47d06b(0x2e1)]=0x0,this[_0x47d06b(0x283)]=0x0,this[_0x47d06b(0x296)]=0x0;}async[_0x2f044f(0x16e)](_0x1a9286,_0x14ca24){const _0xceff6c=_0x2f044f;for(let _0x30db4e=0x0;_0x30db4e<0x1e;_0x30db4e++)try{if(await this[_0xceff6c(0x290)](),this['_checkCalculationAvailable']()){this['_applyCommand'](_0x1a9286,_0x14ca24),this[_0xceff6c(0x312)]['show']({'content':this[_0xceff6c(0x192)]['t']('formula.calculation.started'),'type':_0x17dcef[_0xceff6c(0x27d)]});return;}await new Promise(_0x44840e=>{const _0x1367c6=_0xceff6c;this['_pollingInterval']=window[_0x1367c6(0x198)](_0x44840e,0x3e8);});}catch(_0x187885){this['_logService'][_0xceff6c(0x2cd)](_0x187885);}this[_0xceff6c(0x312)][_0xceff6c(0x1f8)]({'content':this[_0xceff6c(0x192)]['t']('formula.calculation.unable'),'type':_0x17dcef[_0xceff6c(0x2fb)]});}[_0x2f044f(0x1c9)](_0x5edeca,_0x5edd23){const _0x1bd80e=_0x2f044f;try{this[_0x1bd80e(0x2c7)][_0x1bd80e(0x2f4)](_0x5edeca['id'],_0x5edeca[_0x1bd80e(0x367)],_0x5edd23);}catch(_0x5c5d1d){this['_logService'][_0x1bd80e(0x2cd)](_0x5c5d1d);}}[_0x2f044f(0x150)](_0x316742,_0x34b8cf){const _0x28d9c3=_0x2f044f;_0x34b8cf<this[_0x28d9c3(0x296)]||(this[_0x28d9c3(0x296)]=_0x34b8cf,this['_maxFormulaLimit']=Number[_0x28d9c3(0x1b2)](_0x316742[_0x28d9c3(0x14e)]),this[_0x28d9c3(0x2e1)]=Number[_0x28d9c3(0x1b2)](_0x316742[_0x28d9c3(0x2d8)]));}async[_0x2f044f(0x169)](_0x19d567){const _0x954f10=_0x2f044f;var _0x4f560b,_0xde989d;const _0x4cb547=Date['now']();try{const _0x90ec5=((_0x4f560b=this[_0x954f10(0x353)][_0x954f10(0x1ef)](_0x402f3f))==null?void 0x0:_0x4f560b[_0x954f10(0x185)])||pn,_0x58264b=(await this['_httpService'][_0x954f10(0x27f)](_0x90ec5,{'body':JSON[_0x954f10(0x248)]({'taskId':_0x19d567})}))[_0x954f10(0x157)];if(((_0xde989d=_0x58264b[_0x954f10(0x2cd)])==null?void 0x0:_0xde989d[_0x954f10(0x1c4)])!==Z['OK'])return;this['_setFormulaLimitStatus'](_0x58264b[_0x954f10(0x191)],_0x4cb547);}catch(_0x30c6eb){this[_0x954f10(0x239)][_0x954f10(0x2cd)](_0x30c6eb);}}async['_getFormulaLimitStatus'](_0x11a611){const _0xbd8184=_0x2f044f;var _0x2325cc,_0x122976;const _0x26ad0c=Date[_0xbd8184(0x1da)]();try{const _0x3cee5a=((_0x2325cc=this[_0xbd8184(0x353)][_0xbd8184(0x1ef)](_0x402f3f))==null?void 0x0:_0x2325cc[_0xbd8184(0x1e8)])||En,_0x60330e=_0x11a611?_0x3cee5a+_0xbd8184(0x27e)+encodeURIComponent(_0x11a611):_0x3cee5a,_0x59a341=(await this[_0xbd8184(0x2b5)][_0xbd8184(0x2d1)](_0x60330e))[_0xbd8184(0x157)];if(((_0x122976=_0x59a341[_0xbd8184(0x2cd)])==null?void 0x0:_0x122976[_0xbd8184(0x1c4)])!==Z['OK'])return;this['_setFormulaLimitStatus'](_0x59a341[_0xbd8184(0x191)],_0x26ad0c);}catch(_0x5658a2){this['_logService']['error'](_0x5658a2);}}async[_0x2f044f(0x31d)](_0x15dbe0){const _0x54a44c=_0x2f044f;var _0x39b62c,_0x55caef;const _0x31ed75=Date['now']();try{const _0x82690f=((_0x39b62c=this['_configService'][_0x54a44c(0x1ef)](_0x402f3f))==null?void 0x0:_0x39b62c[_0x54a44c(0x338)])||On,_0x13c8ac=(await this[_0x54a44c(0x2b5)][_0x54a44c(0x27f)](_0x82690f,{'body':JSON[_0x54a44c(0x248)]({'taskId':_0x15dbe0})}))[_0x54a44c(0x157)];if(((_0x55caef=_0x13c8ac['error'])==null?void 0x0:_0x55caef['code'])!==Z['OK'])return;this['_setFormulaLimitStatus'](_0x13c8ac[_0x54a44c(0x191)],_0x31ed75);}catch(_0x48b0d5){this[_0x54a44c(0x239)]['error'](_0x48b0d5);}}['_checkCalculationAvailable'](){const _0x6ce9db=_0x2f044f;return this[_0x6ce9db(0x283)]===0x0?!0x0:this[_0x6ce9db(0x283)]-this[_0x6ce9db(0x2e1)]>0x0;}['_clearPolling'](){const _0x12388b=_0x2f044f;this['_pollingInterval']&&(clearTimeout(this[_0x12388b(0x199)]),this[_0x12388b(0x199)]=null);}['_showGuardMessage'](){const _0x40223c=_0x2f044f;this[_0x40223c(0x312)][_0x40223c(0x1f8)]({'content':this[_0x40223c(0x192)]['t'](_0x40223c(0x33c)),'type':_0x17dcef[_0x40223c(0x1c1)]});}['_hasFormulaInDirtyRanges'](_0x2f4366){const _0x21e347=_0x2f044f;for(const _0x241632 of _0x2f4366){const {unitId:_0x422b9d,sheetId:_0x5c9394,range:_0x5eecb5}=_0x241632,_0x243c73=this[_0x21e347(0x36b)]['getUnit'](_0x422b9d);if(!_0x243c73)continue;const _0x3c12bc=_0x243c73[_0x21e347(0x226)](_0x5c9394);if(!_0x3c12bc)continue;const _0xc5fef1=_0x3c12bc[_0x21e347(0x33e)]();for(let _0x3b7361=_0x5eecb5[_0x21e347(0x285)];_0x3b7361<=_0x5eecb5[_0x21e347(0x327)];_0x3b7361++)for(let _0x16e818=_0x5eecb5[_0x21e347(0x20f)];_0x16e818<=_0x5eecb5[_0x21e347(0x1f1)];_0x16e818++){const _0x5149fc=_0xc5fef1[_0x21e347(0x357)](_0x3b7361,_0x16e818);if(_0x5149fc&&(_0x40e8ed(_0x5149fc['f'])||_0x50cd50(_0x5149fc['si'])))return!0x0;}}return!0x1;}};de=vn([P(0x0,_0x30bdc8(_0x1865bb)),P(0x1,_0x5cca2c),P(0x2,_0xb0a618),P(0x3,_0x30bdc8(_0x168837)),P(0x4,_0xaa63a7),P(0x5,_0x3ae7f3),P(0x6,_0x30bdc8(_0x3c120a))],de);var Tn=Object[_0x2f044f(0x295)],Cn=(_0x38cd7e,_0x4bb8cf,_0x260fa3,_0x3b0ae3)=>{const _0x30c0f9=_0x2f044f;for(var _0x47f7e5=_0x3b0ae3>0x1?void 0x0:_0x3b0ae3?Tn(_0x4bb8cf,_0x260fa3):_0x4bb8cf,_0x2dbaf0=_0x38cd7e[_0x30c0f9(0x1be)]-0x1,_0x455f6c;_0x2dbaf0>=0x0;_0x2dbaf0--)(_0x455f6c=_0x38cd7e[_0x2dbaf0])&&(_0x47f7e5=_0x455f6c(_0x47f7e5)||_0x47f7e5);return _0x47f7e5;},De=(_0x5e6bec,_0x16a173)=>(_0x45a684,_0xc8be52)=>_0x16a173(_0x45a684,_0xc8be52,_0x5e6bec);let xe=class extends _0x3070e7{constructor(_0x477028,_0x8f1053,_0x5459ac){const _0x508e9e=_0x2f044f;super(),l(this,_0x508e9e(0x227),new Map()),l(this,'_saveTaskMap',new Map()),l(this,_0x508e9e(0x35c),!0x1),(this[_0x508e9e(0x353)]=_0x477028,this[_0x508e9e(0x1b1)]=_0x8f1053,this[_0x508e9e(0x30d)]=_0x5459ac);}['disableLocalCache'](){const _0x4f24ad=_0x2f044f;this[_0x4f24ad(0x35c)]=!0x0;}[_0x2f044f(0x153)](){const _0x27b32d=_0x2f044f;this[_0x27b32d(0x35c)]=!0x1;}get[_0x2f044f(0x1cb)](){const _0x480513=_0x2f044f;return this[_0x480513(0x137)];}['dispose'](){const _0x14e929=_0x2f044f;this['exhaustSavingTask']()[_0x14e929(0x234)](()=>super[_0x14e929(0x265)]());}async[_0x2f044f(0x26e)](_0x4be2b8){const _0x3a2cb6=_0x2f044f;return this[_0x3a2cb6(0x35c)]?null:this[_0x3a2cb6(0x1b1)][_0x3a2cb6(0x1ba)](_0x4c70c8(_0x4be2b8));}async[_0x2f044f(0x34b)](_0x19adb8,_0x5ddc52){const _0x33318b=_0x2f044f;return!!this['_localStorageService'][_0x33318b(0x36d)](_0x19adb8,_0x5ddc52);}[_0x2f044f(0x244)](_0x3ab3b6,_0x5673d7,_0x40eccd,_0x4ba96d){const _0x3345e9=_0x2f044f,_0x40be4f=this[_0x3345e9(0x30d)][_0x3345e9(0x277)](_0x3ab3b6);this[_0x3345e9(0x227)]['set'](_0x3ab3b6,{'unitID':_0x3ab3b6,'type':_0x5673d7,'awaitingChangeset':_0x40eccd,'mutations':_0x4ba96d,'rev':_0x40be4f}),this[_0x3345e9(0x137)]['has'](_0x3ab3b6)||this[_0x3345e9(0x145)](_0x3ab3b6);}['_scheduleSaving'](_0x3c51a6){const _0xbdb86e=_0x2f044f,_0x190b8c=this[_0xbdb86e(0x2ff)]();_0x190b8c===0x0?this['_saveCache'](_0x3c51a6):this[_0xbdb86e(0x137)][_0xbdb86e(0x18c)](_0x3c51a6,setTimeout(()=>this[_0xbdb86e(0x22d)](_0x3c51a6),_0x190b8c));}[_0x2f044f(0x2ff)](){const _0x14ce21=_0x2f044f;var _0x31d366;return(_0x31d366=this[_0x14ce21(0x353)][_0x14ce21(0x1ef)](_0x5453bc))!=null?_0x31d366:_0x17ef74;}['_saveCache'](_0x53e4e6){const _0x29a0d1=_0x2f044f,_0x2502a3=this[_0x29a0d1(0x137)][_0x29a0d1(0x2d1)](_0x53e4e6);return _0x2502a3!==void 0x0&&window[_0x29a0d1(0x23a)](_0x2502a3),this['_localStorageService'][_0x29a0d1(0x36d)](_0x4c70c8(_0x53e4e6),this['_cachedData'][_0x29a0d1(0x2d1)](_0x53e4e6))['then'](()=>this['_saveTaskMap'][_0x29a0d1(0x213)](_0x53e4e6));}async[_0x2f044f(0x2cf)](){const _0x9b1fc4=_0x2f044f,_0x4c3c89=[];this[_0x9b1fc4(0x137)][_0x9b1fc4(0x2aa)]((_0x3b5162,_0xd7c1cb)=>{const _0x19cecd=_0x9b1fc4;window[_0x19cecd(0x23a)](_0x3b5162),_0x4c3c89[_0x19cecd(0x29d)](this['_saveCache'](_0xd7c1cb)[_0x19cecd(0x234)](()=>{const _0x419d64=_0x19cecd;this[_0x419d64(0x137)][_0x419d64(0x213)](_0xd7c1cb);}));}),await Promise['all'](_0x4c3c89);}};xe=Cn([De(0x0,_0xb0a618),De(0x1,_0x3188b7),De(0x2,_0x30bdc8(_0x25a8ee))],xe);class Rn extends _0x4d2a7f{constructor(){const _0x5c48de=_0x2f044f;super(),l(this,'urlChange$'),this[_0x5c48de(0x24b)]=_0x23b416(window,_0x5c48de(0x229))['pipe'](_0x142e37(this[_0x5c48de(0x1d4)]),_0x3ef704(0x1),_0x913f8a(void 0x0));}['setParam'](_0x5c060d,_0x54daee,_0x4a0a48=!0x1){const _0xaa306b=_0x2f044f,_0x5c07c4=new URL(window[_0xaa306b(0x214)]['href']);_0x5c07c4['searchParams'][_0xaa306b(0x18c)](_0x5c060d,_0x54daee),_0x4a0a48?window[_0xaa306b(0x2c3)][_0xaa306b(0x1e5)]('','',_0x5c07c4['toString']()):window[_0xaa306b(0x2c3)][_0xaa306b(0x242)]('','',_0x5c07c4[_0xaa306b(0x22f)]());}['removeParam'](_0x4c4963,_0x3fd946=!0x1){const _0x5ee986=_0x2f044f,_0x8c019=new URL(window[_0x5ee986(0x214)][_0x5ee986(0x33a)]);_0x8c019[_0x5ee986(0x29a)][_0x5ee986(0x213)](_0x4c4963),_0x3fd946?window['history'][_0x5ee986(0x1e5)]('','',_0x8c019['toString']()):window[_0x5ee986(0x2c3)][_0x5ee986(0x242)]('','',_0x8c019[_0x5ee986(0x22f)]());}['getParam'](_0x20e958){const _0x57bae6=_0x2f044f;var _0x528d74;return(_0x528d74=new URL(window[_0x57bae6(0x214)][_0x57bae6(0x33a)])[_0x57bae6(0x29a)][_0x57bae6(0x2d1)](_0x20e958))!=null?_0x528d74:void 0x0;}}var Dn=Object[_0x2f044f(0x313)],Nn=Object[_0x2f044f(0x295)],bn=(_0x1d976d,_0x5c3a9e,_0x22b229)=>_0x5c3a9e in _0x1d976d?Dn(_0x1d976d,_0x5c3a9e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x22b229}):_0x1d976d[_0x5c3a9e]=_0x22b229,Un=(_0x5b40e3,_0x3898ef,_0x34ecba,_0x232dfc)=>{const _0xa62494=_0x2f044f;for(var _0x217b20=_0x232dfc>0x1?void 0x0:_0x232dfc?Nn(_0x3898ef,_0x34ecba):_0x3898ef,_0x44e853=_0x5b40e3[_0xa62494(0x1be)]-0x1,_0x5b872e;_0x44e853>=0x0;_0x44e853--)(_0x5b872e=_0x5b40e3[_0x44e853])&&(_0x217b20=_0x5b872e(_0x217b20)||_0x217b20);return _0x217b20;},Ne=(_0x307ab0,_0x1c3ef7)=>(_0x4b8967,_0x1435c1)=>_0x1c3ef7(_0x4b8967,_0x1435c1,_0x307ab0),Ln=(_0x2d94f6,_0x2a09f6,_0x325861)=>bn(_0x2d94f6,_0x2a09f6+'',_0x325861);const Mn=_0x2f044f(0x1ab);let Be=class extends _0x17fdfb{constructor(_0x4767c2=rt,_0x1efae8,_0xfe79e8,_0x31db6a){const _0x46f949=_0x2f044f;super(),this[_0x46f949(0x28c)]=_0x4767c2,this['_renderManagerService']=_0x1efae8,this[_0x46f949(0x1d7)]=_0xfe79e8,this[_0x46f949(0x353)]=_0x31db6a;const {..._0x5c85de}=_0x33621d({},rt,this[_0x46f949(0x28c)]);this['_configService'][_0x46f949(0x165)](an,_0x5c85de);}['onStarting'](){const _0x5551e1=_0x2f044f;this['_registerDependencies'](),this[_0x5551e1(0x240)]();}[_0x2f044f(0x377)](){const _0x22500e=_0x2f044f;this[_0x22500e(0x36f)]();}[_0x2f044f(0x16a)](){const _0x344e43=_0x2f044f;var _0x51667f;const _0x5f456c=[[je],[de],[he],[_e],[le],[Xe],[At,{'useClass':Rn}],[_0x188980,{'useClass':_0x1dde72}],[_0x2ccb07,{'useClass':xe}],[oe],[ue],[ce],[H],[Ae],[ae]];_0x468fd6(this[_0x344e43(0x1d7)],_0xdb7e13(_0x5f456c,(_0x51667f=this['_config'])==null?void 0x0:_0x51667f[_0x344e43(0x29b)]));}[_0x2f044f(0x36f)](){const _0x5f30a1=_0x2f044f;this['disposeWithMe'](this['_renderManagerService'][_0x5f30a1(0x142)](_0x31116f['UNIVER_DOC'],[ye])),this[_0x5f30a1(0x355)](this[_0x5f30a1(0x30c)]['registerRenderModule'](_0x31116f[_0x5f30a1(0x1bb)],[$e]));}['_initDependencies'](){const _0x4f2900=_0x2f044f;_0x163605(this[_0x4f2900(0x1d7)],[[H],[oe],[ue],[ce],[ae],[de]]);}};Ln(Be,_0x2f044f(0x1ac),Mn),Be=Un([_0x20966f(_0x28c64b),Ne(0x1,_0x3e044c),Ne(0x2,_0x30bdc8(_0x4568e0)),Ne(0x3,_0xb0a618)],Be);var An=Object['getOwnPropertyDescriptor'],Pn=(_0x26c3b9,_0x36f898,_0x44fbb,_0x54158b)=>{const _0x531e38=_0x2f044f;for(var _0x35102d=_0x54158b>0x1?void 0x0:_0x54158b?An(_0x36f898,_0x44fbb):_0x36f898,_0x50fa4e=_0x26c3b9[_0x531e38(0x1be)]-0x1,_0x59fb3e;_0x50fa4e>=0x0;_0x50fa4e--)(_0x59fb3e=_0x26c3b9[_0x50fa4e])&&(_0x35102d=_0x59fb3e(_0x35102d)||_0x35102d);return _0x35102d;},J=(_0x1aacfe,_0x513c46)=>(_0x5ad53e,_0x313c8f)=>_0x513c46(_0x5ad53e,_0x313c8f,_0x1aacfe);let ct=class extends _0x160525{constructor(_0x4fdf19,_0x4d4e6c,_0x596ab0,_0x539832,_0x14d245){super(_0x4fdf19,_0x4d4e6c,_0x596ab0,_0x539832,_0x14d245);}async['createSocket'](_0x426369){const _0x52534f=_0x2f044f,_0x23f3ed=await this[_0x52534f(0x342)](),_0x4eb9bd=this[_0x52534f(0x292)](_0x426369,_0x23f3ed);return this[_0x52534f(0x23d)](_0x4eb9bd);}[_0x2f044f(0x292)](_0x462a86,_0x3c19a8){const _0x497da4=_0x2f044f,_0x43327f=typeof window>'u'?new URL(_0x462a86):new URL(_0x462a86,window[_0x497da4(0x214)][_0x497da4(0x2be)]);_0x43327f[_0x497da4(0x29a)][_0x497da4(0x18c)](_0x497da4(0x34c),_0x3c19a8);const _0x51ce33=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x497da4(0x214)][_0x497da4(0x18a)]);return _0x51ce33[_0x497da4(0x2d1)](_0x497da4(0x195))&&_0x43327f['searchParams'][_0x497da4(0x18c)](_0x497da4(0x195),_0x51ce33[_0x497da4(0x2d1)](_0x497da4(0x195))),_0x43327f[_0x497da4(0x22f)]();}async[_0x2f044f(0x342)](){const _0x11cd9a=_0x2f044f;var _0x43791b,_0x5bfb6f,_0x453f5e;const _0x41dd23=this['_configService'][_0x11cd9a(0x1ef)](_0x402f3f),_0x3362e2=(_0x43791b=_0x41dd23==null?void 0x0:_0x41dd23[_0x11cd9a(0x2f6)])!=null?_0x43791b:_0x10cec4;return(_0x453f5e=(_0x5bfb6f=(await this[_0x11cd9a(0x2b5)][_0x11cd9a(0x2d1)](_0x3362e2,{'headers':{'Content-Type':'application/json'}}))['body'])==null?void 0x0:_0x5bfb6f[_0x11cd9a(0x316)])!=null?_0x453f5e:'';}};ct=Pn([J(0x0,_0x30bdc8(_0x4568e0)),J(0x1,_0x30bdc8(_0x168837)),J(0x2,_0xb0a618),J(0x3,_0x3ae7f3),J(0x4,_0x56a3f6)],ct);var wn=Object[_0x2f044f(0x295)],yn=(_0x2f429a,_0xa000ca,_0x521f1d,_0x964ba0)=>{const _0x54a9b4=_0x2f044f;for(var _0x865ef4=_0x964ba0>0x1?void 0x0:_0x964ba0?wn(_0xa000ca,_0x521f1d):_0xa000ca,_0x1e1eac=_0x2f429a[_0x54a9b4(0x1be)]-0x1,_0x4f2cb1;_0x1e1eac>=0x0;_0x1e1eac--)(_0x4f2cb1=_0x2f429a[_0x1e1eac])&&(_0x865ef4=_0x4f2cb1(_0x865ef4)||_0x865ef4);return _0x865ef4;},be=(_0x28cb21,_0x2ba76b)=>(_0x202761,_0x1951bc)=>_0x2ba76b(_0x202761,_0x1951bc,_0x28cb21);let _t=class extends _0x3070e7{constructor(_0x53a4f6,_0x26282b,_0x4f57c8){const _0xc3a797=_0x2f044f;super(),this[_0xc3a797(0x1ad)]=_0x53a4f6,this['_httpService']=_0x26282b,this[_0xc3a797(0x353)]=_0x4f57c8;}async[_0x2f044f(0x2e8)](_0x5a2f8c,_0x40b925,_0x2bc76c,..._0x4ec0e6){const _0x44fa63=_0x2f044f;var _0x12bad4,_0x52201c,_0x37b493,_0x3c01a2;const _0x3015ad=this[_0x44fa63(0x1ad)][_0x44fa63(0x374)]();if(!_0x3015ad)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x469fda=((_0x12bad4=this[_0x44fa63(0x353)][_0x44fa63(0x1ef)](_0x719797))!=null?_0x12bad4:_0x1aa6ad)+'/'+_0x5a2f8c+_0x44fa63(0x275)+_0x40b925,_0x4f6ca1=new URL(window[_0x44fa63(0x214)]['href']),_0xf84fc7={'scriptId':_0x5a2f8c,'runId':(_0x52201c=_0x4f6ca1['searchParams'][_0x44fa63(0x2d1)]('runId'))!=null?_0x52201c:'','function':_0x40b925,'unitId':_0x3015ad['getUnitId'](),'argsOfFunction':JSON[_0x44fa63(0x248)](_0x4ec0e6),'invokeId':(_0x37b493=_0x2bc76c[_0x44fa63(0x29e)])!=null?_0x37b493:'','executionId':(_0x3c01a2=_0x2bc76c[_0x44fa63(0x1b7)])!=null?_0x3c01a2:''};try{const _0x455b3f=await this[_0x44fa63(0x2b5)][_0x44fa63(0x27f)](_0x469fda,{'body':_0xf84fc7});return _0x455b3f['body'][_0x44fa63(0x2cd)]&&_0x455b3f[_0x44fa63(0x157)][_0x44fa63(0x2cd)]['code']!==Z['OK']?'Failed':_0x455b3f[_0x44fa63(0x157)][_0x44fa63(0x207)];}catch{return _0x44fa63(0x1f3);}}};_t=yn([be(0x0,_0xaa63a7),be(0x1,_0x30bdc8(_0x168837)),be(0x2,_0xb0a618)],_t);const lt=0x7530,ht=_0x2f044f(0x289);class tr extends _0x3070e7{constructor(){const _0x3fbbe3=_0x2f044f;super(),l(this,_0x3fbbe3(0x2d2),_0x243a41()),l(this,'_selfUnitIDs',new Set()),l(this,'_unitOnClients',new Map()),l(this,_0x3fbbe3(0x225),null),l(this,'_clearOtherTimers',new Map()),l(this,_0x3fbbe3(0x2b7),new Map()),this[_0x3fbbe3(0x1cf)]();}['dispose'](){const _0x24a965=_0x2f044f;super[_0x24a965(0x265)](),this[_0x24a965(0x18f)][_0x24a965(0x2aa)]((_0x5c14fc,_0x5249bb)=>this['_removeClearOtherTimer'](_0x5249bb)),this[_0x24a965(0x225)]&&window['clearInterval'](this[_0x24a965(0x225)]);}[_0x2f044f(0x16b)](_0x14b2b6){const _0x1525d0=_0x2f044f;return this[_0x1525d0(0x351)](_0x14b2b6)[_0x1525d0(0x307)](_0x58f1ea());}[_0x2f044f(0x215)](_0x56e0a){const _0x457f2e=_0x2f044f;this[_0x457f2e(0x2b9)][_0x457f2e(0x2ab)]===0x0&&this[_0x457f2e(0x299)](),this[_0x457f2e(0x2b9)][_0x457f2e(0x32a)](_0x56e0a),this[_0x457f2e(0x250)]({'type':0x0,'memberID':this[_0x457f2e(0x2d2)],'unitIDs':[_0x56e0a],'isForwarded':!0x1});}[_0x2f044f(0x352)](_0x4567ca){const _0x384360=_0x2f044f;this[_0x384360(0x2b9)][_0x384360(0x213)](_0x4567ca),this[_0x384360(0x2b9)][_0x384360(0x2ab)]===0x0&&this[_0x384360(0x225)]&&window['clearInterval'](this[_0x384360(0x225)]);}[_0x2f044f(0x1cf)](){const _0xf2a4=_0x2f044f;this['disposeWithMe'](_0x3e6ed3(_0x23b416(window,_0xf2a4(0x1c6))[_0xf2a4(0x304)](_0x290dfe=>{const _0x3fe4f8=_0xf2a4;if(_0x290dfe[_0x3fe4f8(0x288)]!==ht||!_0x290dfe[_0x3fe4f8(0x2a5)])return;const _0x18f353=JSON[_0x3fe4f8(0x2c4)](_0x290dfe[_0x3fe4f8(0x2a5)]);this[_0x3fe4f8(0x21f)](_0x18f353);}))),window[_0xf2a4(0x237)](_0xf2a4(0x200),()=>this['_send']({'type':0x1,'memberID':this[_0xf2a4(0x2d2)],'unitIDs':Array[_0xf2a4(0x2f0)](this[_0xf2a4(0x2b9)])}));}[_0x2f044f(0x21f)](_0x503a73){const _0x111570=_0x2f044f;switch(_0x503a73[_0x111570(0x20b)]){case 0x0:this[_0x111570(0x235)](_0x503a73);break;case 0x1:this[_0x111570(0x1cc)](_0x503a73);break;case 0x2:this[_0x111570(0x1dd)](_0x503a73);break;}}[_0x2f044f(0x235)](_0x560335){const _0x10a9c7=_0x2f044f,{unitIDs:_0x3b42cb,memberID:_0x558e36,isForwarded:_0x1acc82}=_0x560335;_0x3b42cb['forEach'](_0x124b30=>{const _0x261723=_0x47da;if(!_0x1acc82&&this[_0x261723(0x350)][_0x261723(0x2d3)](_0x124b30)&&this[_0x261723(0x351)](_0x124b30)[_0x261723(0x332)](_0x286879['OTHER_CLIENTS_EDITING']),!this[_0x261723(0x350)][_0x261723(0x2d3)](_0x124b30)||!this[_0x261723(0x350)][_0x261723(0x2d1)](_0x124b30)[_0x261723(0x2d3)](_0x558e36)){const _0x1de09b=this['_unitOnClients'][_0x261723(0x2d1)](_0x124b30)||new Set();_0x1de09b[_0x261723(0x32a)](_0x558e36),this[_0x261723(0x350)][_0x261723(0x18c)](_0x124b30,_0x1de09b),this['_scheduleClearOtherTimer'](_0x558e36);}}),_0x1acc82||this[_0x10a9c7(0x250)]({'type':0x0,'memberID':this[_0x10a9c7(0x2d2)],'unitIDs':[...this[_0x10a9c7(0x2b9)]],'isForwarded':!0x0});}[_0x2f044f(0x2ea)](_0x174f02){const _0x3bb3ae=_0x2f044f;this[_0x3bb3ae(0x26c)](_0x174f02);const _0x598de9=window[_0x3bb3ae(0x198)](()=>{const _0x577400=_0x3bb3ae;this[_0x577400(0x350)][_0x577400(0x2aa)](_0x16aac2=>{const _0x1d242f=_0x577400;_0x16aac2[_0x1d242f(0x213)](_0x174f02);});},lt*0x2);this[_0x3bb3ae(0x18f)][_0x3bb3ae(0x18c)](_0x174f02,_0x598de9);}['_removeClearOtherTimer'](_0x343e02){const _0x5efe05=_0x2f044f;if(this['_clearOtherTimers'][_0x5efe05(0x2d3)](_0x343e02)){const _0x4bf8b8=this[_0x5efe05(0x18f)][_0x5efe05(0x2d1)](_0x343e02);_0x4bf8b8&&window[_0x5efe05(0x23a)](_0x4bf8b8),this[_0x5efe05(0x18f)]['set'](_0x343e02,null);}}[_0x2f044f(0x1cc)](_0x42bbb0){const _0x495463=_0x2f044f,{memberID:_0x1d6f35,unitIDs:_0x1dc0bf}=_0x42bbb0;_0x1dc0bf[_0x495463(0x2aa)](_0x477abe=>{const _0x4ee13a=_0x495463;var _0xc69670;const _0x1bbb32=this[_0x4ee13a(0x350)][_0x4ee13a(0x2d1)](_0x477abe);_0x1bbb32&&(_0x1bbb32['delete'](_0x1d6f35),(_0xc69670=this[_0x4ee13a(0x351)](_0x477abe))==null||_0xc69670['next'](_0x1bbb32[_0x4ee13a(0x2ab)]===0x0?_0x286879[_0x4ee13a(0x364)]:_0x286879[_0x4ee13a(0x2db)]));}),this['_removeClearOtherTimer'](_0x1d6f35);}[_0x2f044f(0x1dd)](_0x538cb0){const _0xaeef20=_0x2f044f;this[_0xaeef20(0x2ea)](_0x538cb0[_0xaeef20(0x1b6)]);}['_send'](_0x440153){const _0x26173b=_0x2f044f;localStorage[_0x26173b(0x36d)](ht,JSON['stringify'](_0x440153));}['_scheduleHeartbeat'](){const _0x1b71ad=_0x2f044f;this[_0x1b71ad(0x225)]=window[_0x1b71ad(0x163)](()=>{const _0x3c6d0d=_0x1b71ad;this[_0x3c6d0d(0x250)]({'type':0x2,'memberID':this['_id']});},lt);}['_ensureSubject'](_0xe52f92){const _0x46f969=_0x2f044f;return this[_0x46f969(0x2b7)]['has'](_0xe52f92)||this[_0x46f969(0x2b7)][_0x46f969(0x18c)](_0xe52f92,new _0x11f3cd(_0x286879['NO_OTHER_CLIENTS_EDITING'])),this[_0x46f969(0x2b7)][_0x46f969(0x2d1)](_0xe52f92);}}export{ct as BrowserCollaborationSocketService,ae as CollaborationDataLoaderController,oe as DesktopCollaborationStatusDisplayController,At as IURLService,_t as RemoteUniscriptService,qi as SheetCollabCursorShape,Be as UniverCollaborationClientUIPlugin,tr as WebBrowserSingleActiveUnitService,Rn as WebURLService};
|