@univerjs-pro/collaboration-client-ui 1.0.0-alpha.6 → 1.0.0-alpha.8
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/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.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/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.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-HK.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/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.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/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.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-HK.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/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.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/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/controllers/collab-cursor/board-collab-cursor-entity.d.ts +3 -3
- package/lib/types/controllers/collab-cursor/collab-cursor.controller.d.ts +2 -2
- package/lib/types/controllers/collab-cursor/slide-collab-cursor-entity.d.ts +3 -3
- package/lib/types/models/cursor.d.ts +0 -2
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.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/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.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-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +23 -22
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x1bdaba=_0x5856;(function(_0x35e6f8,_0x3c80fa){const _0xa12f71=_0x5856,_0x22fb28=_0x35e6f8();while(!![]){try{const _0x2f44a1=parseInt(_0xa12f71(0x261))/0x1+-parseInt(_0xa12f71(0x255))/0x2+parseInt(_0xa12f71(0x2a2))/0x3*(parseInt(_0xa12f71(0x13a))/0x4)+parseInt(_0xa12f71(0xda))/0x5+parseInt(_0xa12f71(0x235))/0x6*(parseInt(_0xa12f71(0x330))/0x7)+parseInt(_0xa12f71(0x122))/0x8+parseInt(_0xa12f71(0x1f8))/0x9*(-parseInt(_0xa12f71(0x254))/0xa);if(_0x2f44a1===_0x3c80fa)break;else _0x22fb28['push'](_0x22fb28['shift']());}catch(_0x186915){_0x22fb28['push'](_0x22fb28['shift']());}}}(_0x5d65,0xa6436));import{BOARD_TOP_RIGHT_MENU_LEADING_PART as _0x4e8d37,IBoardElementStateService as _0x1dfa0b,getBoardElementRenderObjectKey as _0x22fba3}from'@univerjs-pro/boards-ui';import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x5bcab3,CollaborationController as _0x3c5bb4,CollaborationSessionService as _0x552c44,CollaborationSocketService as _0x4f11c1,CollaborationStatus as _0x69d4a6,CollaborationUIEventId as _0x11028a,CollaborationUIEventService as _0x74c530,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x205c4a,DEFAULT_WS_SESSION_TICKET_URL as _0x3bcbdb,DataLoaderService as _0x5b2fc6,DocCollaborationEntity as _0x15ae01,ILocalCacheService as _0x18a306,LOCAL_CACHE_INTERVAL as _0x54fc74,LOCAL_CACHE_INTERVAL_KEY as _0x46ba7f,MemberService as _0xed4271,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x13fd71,SessionStatus as _0x3b3306,UnitStatus as _0x1b4fd9,UniverCollaborationClientPlugin as _0x17f8ab,getLocalCacheKey as _0x3861b0}from'@univerjs-pro/collaboration-client';import{COLORS as _0x1d0a65,CanceledError as _0xf6b9a4,ColorKit as _0x4aa65b,DOC_RANGE_TYPE as _0x4b3ddb,DependentOn as _0x3023f0,Disposable as _0x3546e9,DisposableCollection as _0x1fc18c,ICommandService as _0x52ed54,IConfigService as _0x1d73f8,IImageIoService as _0x1a6af9,ILocalStorageService as _0x188bf4,ILogService as _0x2c39a6,IUniverInstanceService as _0x2d8d04,Inject as _0x12dbe6,Injector as _0x16b12f,LocaleService as _0x35db9c,Optional as _0x297d95,Plugin as _0x34badd,PluginService as _0x198167,Rectangle as _0x1aea16,RxDisposable as _0x6ec97f,ThemeService as _0x46b0bc,Tools as _0x3e18e0,UniverInstanceType as _0x256b3f,Workbook as _0x45c99a,createIdentifier as _0x54cdb7,debounce as _0x574451,fromEventSubject as _0xa32da7,generateRandomId as _0x2d364b,isFormulaId as _0x3e97d3,isFormulaString as _0x4283f4,isInternalEditorID as _0x8b1c25,merge as _0x22bf42,mergeOverrideWithDependencies as _0x59484e,registerDependencies as _0x58b75c,toDisposable as _0x4627b6,touchDependencies as _0x3a85c2}from'@univerjs/core';import{BuiltInUIPart as _0x4f9594,IBeforeCloseService as _0x1afea9,IMessageService as _0x27f640,INotificationService as _0x51f131,IShortcutService as _0x2f5521,IUIPartsService as _0xc6877,connectInjector as _0xb27ee,useDependency as _0xbc2ca5,useObservable as _0x33bb64}from'@univerjs/ui';import{BehaviorSubject as _0x2c1176,Subject as _0x5e0129,combineLatest as _0x2f43fa,debounceTime as _0x684ccc,distinctUntilChanged as _0xbac4cc,filter as _0x45286e,fromEvent as _0x190d82,mapTo as _0x10a7e8,merge as _0x135fc4,of as _0x432c84,shareReplay as _0x5b9a2f,switchMap as _0x2e94a8,takeUntil as _0x1880d0}from'rxjs';import{distinctUntilChanged as _0x4fa1cd,filter as _0x43f8bd,map as _0x2fb5a3,switchMap as _0x262021,takeUntil as _0x1bea9f,throttleTime as _0x48f061}from'rxjs/operators';import{Button as _0x1adf77,MessageType as _0x238db3,Tooltip as _0x2ccb05,clsx as _0x398088}from'@univerjs/design';import{LoadingMultiIcon as _0x52418f,OffLineIcon as _0x212eff,OnLineIcon as _0x5c000e,WarningIcon as _0x191855}from'@univerjs/icons';import{createElement as _0x56d55c,useCallback as _0x23a4cf,useMemo as _0x3b0f01}from'react';import{Fragment as _0x4a5162,jsx as _0x490405,jsxs as _0x31bb6a}from'react/jsx-runtime';import{IRenderManagerService as _0x5cf724,Rect as _0x51c330,RegularPolygon as _0x42be70,SHEET_VIEWPORT_KEY as _0x2cd61d,Shape as _0x5dbb19,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x18731f,Vector2 as _0x4cb134,getColor as _0x18a253}from'@univerjs/engine-render';import{HTTPService as _0x4d71bd,ISocketService as _0x4819c4,WebSocketService as _0x3a4497}from'@univerjs/network';import{DocIMEInputManagerService as _0x4e073f,IDocClipboardService as _0x2e4cfd,NodePositionConvertToCursor as _0x4a6bc2,NodePositionConvertToRectRange as _0x309ca6,SetDocZoomRatioOperation as _0xf73668,TEXT_RANGE_LAYER_INDEX as _0x291ce9}from'@univerjs/docs-ui';import{CollaborationEvent as _0x5294be,ISnapshotServerService as _0x117931,ITransformService as _0x4e7576,RevisionService as _0x22811b,SnapshotLoadStage as _0x5885e0,SnapshotLoadingService as _0x27021a,isTransformMutationFailure as _0x316e48,isTransformMutationsWithChangesetSuccess as _0x3e9586}from'@univerjs-pro/collaboration';import{DocSelectionManagerService as _0x414f4a,DocSkeletonManagerService as _0x8d0e53,DocStateChangeManagerService as _0x5d2f32,RichTextEditingMutation as _0x4224c4,SetTextSelectionsOperation as _0x56b086}from'@univerjs/docs';import{FormulaExecuteStageType as _0x99dc3e,FormulaExecutedStateType as _0x246894,SetFormulaCalculationNotificationMutation as _0x13bb03,SetFormulaCalculationStartMutation as _0x4e2ab1,deserializeRangeWithSheet as _0x31baff,serializeRangeWithSheet as _0x2762bf}from'@univerjs/engine-formula';import{EffectRefRangId as _0x46c3ea,RefRangeService as _0x530258,SetSelectionsOperation as _0x3da33b,SetWorksheetActivateCommand as _0x4a26f4,SheetsSelectionsService as _0x45cb73,handleDeleteRangeMoveLeft as _0x444b57,handleDeleteRangeMoveUp as _0x3c830d,handleIRemoveCol as _0x1aaa23,handleIRemoveRow as _0x8ea19f,handleInsertCol as _0x24671e,handleInsertRangeMoveDown as _0x2a0b23,handleInsertRangeMoveRight as _0x1e1344,handleInsertRow as _0x6602b3,handleMoveRange as _0x4764dc,runRefRangeMutations as _0xe20ac4}from'@univerjs/sheets';import{ISlideDrawingStateService as _0x306692,buildDrawingOKey as _0x5ebcd8}from'@univerjs-pro/slides-ui';function _0x5856(_0x1e7e06,_0x469d94){_0x1e7e06=_0x1e7e06-0xca;const _0x5d6519=_0x5d65();let _0x5856f9=_0x5d6519[_0x1e7e06];return _0x5856f9;}import{ISheetLoadingRenderService as _0x5f52d8,SheetSkeletonManagerService as _0x5e3fa8,getCoordByCell as _0x2c34a1,getSheetObject as _0x1f8950}from'@univerjs/sheets-ui';import{IRemoteInstanceService as _0x3b82e6}from'@univerjs/rpc';import{ErrorCode as _0x41ca77}from'@univerjs/protocol';function cn(_0x3ed0a8){const _0x566fbe=_0x5856;switch(_0x3ed0a8){case _0x69d4a6['OFFLINE']:return{'icon':_0x490405(_0x212eff,{}),'colorClass':'univer-text-red-500','i18nKey':'collaboration-client-ui.collabStatus.offline','tooltipKey':_0x566fbe(0x1ec),'clickable':!0x0,'indicator':'static'};case _0x69d4a6[_0x566fbe(0x181)]:return{'icon':_0x490405(_0x212eff,{}),'colorClass':_0x566fbe(0x1c3),'i18nKey':_0x566fbe(0x218),'clickable':!0x1,'indicator':_0x566fbe(0x2fb)};case _0x69d4a6[_0x566fbe(0x1dc)]:return{'icon':_0x490405(_0x52418f,{}),'colorClass':_0x566fbe(0x2ae),'i18nKey':_0x566fbe(0x170),'clickable':!0x1,'indicator':_0x566fbe(0xeb)};case _0x69d4a6[_0x566fbe(0x1f2)]:return{'icon':_0x490405(_0x5c000e,{}),'colorClass':_0x566fbe(0x2bc),'i18nKey':'collaboration-client-ui.collabStatus.notCollab','clickable':!0x1,'indicator':'static'};case _0x69d4a6[_0x566fbe(0x18e)]:case _0x69d4a6['AWAITING_WITH_PENDING']:return{'icon':_0x490405(_0x52418f,{}),'colorClass':_0x566fbe(0x2ae),'i18nKey':_0x566fbe(0x164),'clickable':!0x1,'indicator':_0x566fbe(0xeb)};case _0x69d4a6[_0x566fbe(0x16b)]:return{'icon':_0x490405(_0x52418f,{}),'colorClass':'univer-text-blue-500','i18nKey':_0x566fbe(0x164),'clickable':!0x1,'indicator':_0x566fbe(0xeb)};case _0x69d4a6[_0x566fbe(0x171)]:return{'icon':_0x490405(_0x5c000e,{}),'colorClass':_0x566fbe(0x1af),'i18nKey':_0x566fbe(0x163),'clickable':!0x1,'indicator':'static'};}}function ln(_0x37f26f){const _0x5f2d9f=_0x5856;let {status$:_0x2702b4}=_0x37f26f,_0x421ee8=_0x33bb64(_0x2702b4,_0x69d4a6[_0x5f2d9f(0x1f2)]),_0x39d1ea=_0xbc2ca5(_0x35db9c),_0x58eaec=_0xbc2ca5(_0x552c44),_0x583162=_0x3b0f01(()=>cn(_0x421ee8),[_0x421ee8]),_0x1c1ec5=_0x421ee8!==_0x69d4a6[_0x5f2d9f(0x274)],_0x4653ae=_0x39d1ea['t'](_0x583162[_0x5f2d9f(0x14b)]),_0x2061e2=_0x583162[_0x5f2d9f(0x300)]?_0x39d1ea['t'](_0x583162[_0x5f2d9f(0x300)]):_0x4653ae,_0x4355e0=_0x23a4cf(()=>{_0x1c1ec5||_0x58eaec['reconnect']();},[_0x1c1ec5,_0x58eaec]),_0x4540b9=_0x23a4cf(_0x3c3257=>{const _0x592dbc=_0x5f2d9f;!_0x1c1ec5&&(_0x3c3257[_0x592dbc(0x1ed)]===_0x592dbc(0x138)||_0x3c3257[_0x592dbc(0x1ed)]==='\x20')&&(_0x3c3257[_0x592dbc(0x1e8)](),_0x58eaec[_0x592dbc(0xff)]());},[_0x1c1ec5,_0x58eaec]),_0x22f2d6=_0x490405('span',{'className':_0x398088(_0x5f2d9f(0x14a),_0x5f2d9f(0x1da),_0x583162['colorClass'],{'univer-animate-spin':_0x583162[_0x5f2d9f(0x334)]===_0x5f2d9f(0xeb),'univer-animate-pulse':_0x583162[_0x5f2d9f(0x334)]===_0x5f2d9f(0x33c)}),'aria-hidden':_0x5f2d9f(0x312),'children':_0x583162[_0x5f2d9f(0x1a8)]}),_0x2a6ff9=_0x490405(_0x5f2d9f(0x182),{'className':_0x398088(_0x5f2d9f(0x14a),_0x5f2d9f(0x34e),_0x5f2d9f(0x270),_0x5f2d9f(0x1b7),_0x5f2d9f(0x18b),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x583162['clickable'],'univer-cursor-default':!_0x583162['clickable']}),'children':_0x22f2d6});return _0x583162[_0x5f2d9f(0x2d0)]?_0x490405(_0x2ccb05,{'title':_0x2061e2,'placement':_0x5f2d9f(0x262),'children':_0x490405(_0x5f2d9f(0x34a),{'type':'button','onClick':_0x4355e0,'onKeyDown':_0x4540b9,'className':_0x398088(_0x5f2d9f(0xca),'univer-border-none\x20univer-bg-transparent',_0x5f2d9f(0xd6),_0x5f2d9f(0x341)),'aria-label':_0x4653ae+_0x5f2d9f(0x1df)+_0x2061e2,'role':_0x5f2d9f(0x26b),'aria-live':_0x5f2d9f(0x25c),'aria-atomic':'true','children':_0x2a6ff9})}):_0x490405(_0x2ccb05,{'title':_0x2061e2,'placement':_0x5f2d9f(0x262),'children':_0x490405(_0x5f2d9f(0x1f0),{'className':_0x398088(_0x5f2d9f(0xca),'univer-border-none\x20univer-bg-transparent','univer-m-0\x20univer-p-0'),'aria-label':_0x4653ae,'role':'status','aria-live':'polite','aria-atomic':_0x5f2d9f(0x312),'children':_0x2a6ff9})});}function K(_0x10591d){'@babel/helpers - typeof';const _0x4cabdd=_0x5856;return K=typeof Symbol==_0x4cabdd(0x107)&&typeof Symbol[_0x4cabdd(0x117)]=='symbol'?function(_0x1ec44c){return typeof _0x1ec44c;}:function(_0x253ec3){const _0x16dabb=_0x4cabdd;return _0x253ec3&&typeof Symbol==_0x16dabb(0x107)&&_0x253ec3['constructor']===Symbol&&_0x253ec3!==Symbol[_0x16dabb(0x112)]?_0x16dabb(0x23d):typeof _0x253ec3;},K(_0x10591d);}function un(_0x180a17,_0x38d724){const _0x270764=_0x5856;if(K(_0x180a17)!=_0x270764(0x2c4)||!_0x180a17)return _0x180a17;var _0x2cc11a=_0x180a17[Symbol[_0x270764(0x315)]];if(_0x2cc11a!==void 0x0){var _0xa860ad=_0x2cc11a[_0x270764(0x1f5)](_0x180a17,_0x38d724||_0x270764(0xf2));if(K(_0xa860ad)!=_0x270764(0x2c4))return _0xa860ad;throw TypeError(_0x270764(0x14d));}return(_0x38d724==='string'?String:Number)(_0x180a17);}function dn(_0xe54c07){const _0x753e1a=_0x5856;var _0x419a90=un(_0xe54c07,_0x753e1a(0x233));return K(_0x419a90)=='symbol'?_0x419a90:_0x419a90+'';}function q(_0x400c0b,_0x5eb7e5,_0x37f209){const _0x4f308c=_0x5856;return(_0x5eb7e5=dn(_0x5eb7e5))in _0x400c0b?Object[_0x4f308c(0xe2)](_0x400c0b,_0x5eb7e5,{'value':_0x37f209,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x400c0b[_0x5eb7e5]=_0x37f209,_0x400c0b;}function J(_0x3bb2f2,_0x11b382){return function(_0x8211ff,_0x439658){_0x11b382(_0x8211ff,_0x439658,_0x3bb2f2);};}function Y(_0x2b29fc,_0x4dbafd,_0x2f4b06,_0x2e2202){const _0x5475cf=_0x5856;var _0x338498=arguments['length'],_0x245f21=_0x338498<0x3?_0x4dbafd:_0x2e2202===null?_0x2e2202=Object[_0x5475cf(0x17b)](_0x4dbafd,_0x2f4b06):_0x2e2202,_0x16316a;if(typeof Reflect==_0x5475cf(0x2c4)&&typeof Reflect[_0x5475cf(0x11c)]==_0x5475cf(0x107))_0x245f21=Reflect[_0x5475cf(0x11c)](_0x2b29fc,_0x4dbafd,_0x2f4b06,_0x2e2202);else{for(var _0x3263de=_0x2b29fc[_0x5475cf(0x212)]-0x1;_0x3263de>=0x0;_0x3263de--)(_0x16316a=_0x2b29fc[_0x3263de])&&(_0x245f21=(_0x338498<0x3?_0x16316a(_0x245f21):_0x338498>0x3?_0x16316a(_0x4dbafd,_0x2f4b06,_0x245f21):_0x16316a(_0x4dbafd,_0x2f4b06))||_0x245f21);}return _0x338498>0x3&&_0x245f21&&Object[_0x5475cf(0xe2)](_0x4dbafd,_0x2f4b06,_0x245f21),_0x245f21;}let X=class extends _0x3546e9{constructor(_0x4d333a,_0x50efac,_0x696a3c,_0x587c69){const _0x4dad8f=_0x5856;super(),this[_0x4dad8f(0x102)]=_0x4d333a,this[_0x4dad8f(0xe0)]=_0x50efac,this['_collaborationController']=_0x696a3c,this[_0x4dad8f(0x23e)]=_0x587c69,q(this,_0x4dad8f(0x173),new _0x2c1176(_0x69d4a6['NOT_COLLAB'])),this[_0x4dad8f(0x16c)](),this[_0x4dad8f(0x16a)]();}['_initStatusListener'](){const _0x3160f8=_0x5856;this['disposeWithMe'](_0x135fc4(this[_0x3160f8(0x102)]['focused$'],this[_0x3160f8(0x102)][_0x3160f8(0x28f)](_0x256b3f[_0x3160f8(0xcd)]),this[_0x3160f8(0x102)]['getCurrentTypeOfUnit$'](_0x256b3f['UNIVER_SHEET']))['pipe'](_0x2fb5a3(()=>pn(this[_0x3160f8(0x102)])),_0x4fa1cd(),_0x2e94a8(_0x36cb47=>_0x36cb47?this[_0x3160f8(0x353)][_0x3160f8(0x20c)](_0x36cb47):_0x432c84(null)),_0x2e94a8(_0x7eca2d=>_0x7eca2d?_0x7eca2d[_0x3160f8(0x260)]:_0x432c84(_0x69d4a6['NOT_COLLAB'])))[_0x3160f8(0x2f1)](_0x386be6=>{const _0x174e25=_0x3160f8;this[_0x174e25(0x173)][_0x174e25(0x335)](_0x386be6);}));}[_0x1bdaba(0x16c)](){const _0x3d9abe=_0x1bdaba;this[_0x3d9abe(0x225)](this[_0x3d9abe(0x23e)][_0x3d9abe(0x28b)](_0x4f9594['HEADER_MENU'],()=>_0xb27ee(hn({'status$':this[_0x3d9abe(0x173)][_0x3d9abe(0x29b)]()}),this['_injector'])));}};X=Y([J(0x0,_0x2d8d04),J(0x1,_0x12dbe6(_0x16b12f)),J(0x2,_0x12dbe6(_0x3c5bb4)),J(0x3,_0xc6877)],X);let fn=class extends _0x3546e9{constructor(_0x14cc93,_0x32df5d,_0x13ec24,_0x515327){const _0x4ebba5=_0x1bdaba;super(),this[_0x4ebba5(0x102)]=_0x14cc93,this[_0x4ebba5(0xe0)]=_0x32df5d,this[_0x4ebba5(0x353)]=_0x13ec24,this[_0x4ebba5(0x23e)]=_0x515327,q(this,_0x4ebba5(0x173),new _0x2c1176(_0x69d4a6[_0x4ebba5(0x1f2)])),this[_0x4ebba5(0x16c)](),this['_initStatusListener']();}[_0x1bdaba(0x16a)](){const _0x2cc581=_0x1bdaba;this['disposeWithMe'](_0x135fc4(_0x432c84(null),this[_0x2cc581(0x102)][_0x2cc581(0x28f)](_0x256b3f[_0x2cc581(0x2db)]))[_0x2cc581(0x241)](_0x2fb5a3(()=>mn(this[_0x2cc581(0x102)])),_0x4fa1cd(),_0x2e94a8(_0x587e93=>_0x587e93?this['_collaborationController'][_0x2cc581(0x20c)](_0x587e93):_0x432c84(null)),_0x2e94a8(_0x49e412=>_0x49e412?_0x49e412[_0x2cc581(0x260)]:_0x432c84(_0x69d4a6[_0x2cc581(0x1f2)])))[_0x2cc581(0x2f1)](_0x270741=>{const _0x3bedca=_0x2cc581;this['_status$'][_0x3bedca(0x335)](_0x270741);}));}['_initStatusComponent'](){const _0x37c2d1=_0x1bdaba;this[_0x37c2d1(0x225)](this[_0x37c2d1(0x23e)][_0x37c2d1(0x28b)](_0x4e8d37,()=>_0xb27ee(hn({'status$':this[_0x37c2d1(0x173)][_0x37c2d1(0x29b)]()}),this['_injector'])));}};fn=Y([J(0x0,_0x2d8d04),J(0x1,_0x12dbe6(_0x16b12f)),J(0x2,_0x12dbe6(_0x3c5bb4)),J(0x3,_0xc6877)],fn);function pn(_0xf4d8e3){const _0x1a3c68=_0x1bdaba;let _0x220c50=_0xf4d8e3[_0x1a3c68(0x1e7)](),_0x56150d=_0x220c50==null?void 0x0:_0x220c50[_0x1a3c68(0xd4)]();if(_0x56150d&&!_0x8b1c25(_0x56150d))return _0x56150d;let _0x2515a0=_0xf4d8e3['getCurrentUnitOfType'](_0x256b3f[_0x1a3c68(0xcd)]),_0x3ba2fa=_0x2515a0==null?void 0x0:_0x2515a0['getUnitId']();if(_0x3ba2fa&&!_0x8b1c25(_0x3ba2fa))return _0x3ba2fa;let _0x2aec34=_0xf4d8e3[_0x1a3c68(0x28d)](_0x256b3f[_0x1a3c68(0x319)]);if(_0x2aec34)return _0x2aec34['getUnitId']();let _0x269c4b=_0xf4d8e3[_0x1a3c68(0x27a)](_0x256b3f[_0x1a3c68(0xcd)])[_0x1a3c68(0x11a)](_0x42428b=>!_0x8b1c25(_0x42428b[_0x1a3c68(0xd4)]()));return _0x269c4b?_0x269c4b['getUnitId']():null;}function mn(_0x1b169e){const _0x268781=_0x1bdaba;var _0x517892;let _0x5da633=_0x1b169e[_0x268781(0x28d)](_0x256b3f[_0x268781(0x2db)]);return(_0x517892=_0x5da633==null?void 0x0:_0x5da633[_0x268781(0xd4)]())==null?null:_0x517892;}function hn(_0x9712fe){let {status$:_0x29c19b}=_0x9712fe;return function(){return _0x490405(ln,{'status$':_0x29c19b});};}var gn=_0x1bdaba(0x354),_n='1.0.0-alpha.6';const vn={};let yn=class extends _0x6ec97f{constructor(_0x404aed,_0x273c07){const _0x295b77=_0x1bdaba;super(),this[_0x295b77(0x105)]=_0x404aed,this[_0x295b77(0x110)]=_0x273c07,this[_0x295b77(0x311)]();}[_0x1bdaba(0x311)](){const _0x5824d0=_0x1bdaba;let _0x32913f=this;this['disposeWithMe'](this[_0x5824d0(0x105)][_0x5824d0(0x338)]({'onBeforePasteImage':async _0x3d9e6f=>{const _0x3c5903=_0x5824d0;let _0x121431=await _0x32913f[_0x3c5903(0x110)][_0x3c5903(0x332)](_0x3d9e6f);return _0x121431?{'source':_0x121431[_0x3c5903(0x1ba)],'imageSourceType':_0x121431[_0x3c5903(0x343)]}:null;}}));}};yn=Y([J(0x0,_0x2e4cfd),J(0x1,_0x1a6af9)],yn);function bn(_0x5258bb,_0x8098e1){const _0x22d7ff=_0x1bdaba;_0x5258bb[_0x22d7ff(0x154)](),_0x5258bb['font']=_0x22d7ff(0x25f);let _0x232330=_0x5258bb[_0x22d7ff(0x1bd)](_0x8098e1)[_0x22d7ff(0x2b4)];return _0x5258bb[_0x22d7ff(0x134)](),Math[_0x22d7ff(0x1a3)](_0x232330+0x8,0xc8);}function xn(_0x16279b,_0x332a7c){const _0x20968a=_0x1bdaba;var _0x211a06,_0x3c329e,_0x21f6a1;let {radius:_0x487919,width:_0x100a22,height:_0x1aa1c8}=_0x332a7c;_0x487919=(_0x211a06=_0x487919)==null?0x0:_0x211a06,_0x100a22=(_0x3c329e=_0x100a22)==null?0x1e:_0x3c329e,_0x1aa1c8=(_0x21f6a1=_0x1aa1c8)==null?0x1e:_0x21f6a1;let _0x223b31=0x0,_0x4fda5c=0x0,_0x5480a1=0x0;_0x223b31=_0x4fda5c=_0x5480a1=Math['min'](_0x487919,_0x100a22/0x2,_0x1aa1c8/0x2),_0x16279b[_0x20968a(0x13b)](),_0x16279b['moveTo'](_0x223b31,0x0),_0x16279b[_0x20968a(0x12e)](_0x100a22-_0x4fda5c,0x0),_0x16279b['arc'](_0x100a22-_0x4fda5c,_0x4fda5c,_0x4fda5c,Math['PI']*0x3/0x2,0x0,!0x1),_0x16279b[_0x20968a(0x12e)](_0x100a22,_0x1aa1c8-_0x5480a1),_0x16279b[_0x20968a(0x1b9)](_0x100a22-_0x5480a1,_0x1aa1c8-_0x5480a1,_0x5480a1,0x0,Math['PI']/0x2,!0x1),_0x16279b[_0x20968a(0x12e)](0x0,_0x1aa1c8),_0x16279b[_0x20968a(0x12e)](0x0,_0x223b31),_0x16279b[_0x20968a(0x1b9)](_0x223b31,_0x223b31,_0x223b31,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x16279b[_0x20968a(0x1a0)](),_0x332a7c[_0x20968a(0x1b8)]&&(_0x16279b['save'](),_0x16279b[_0x20968a(0x2c0)]=_0x332a7c[_0x20968a(0x1b8)],_0x332a7c['fillRule']==='evenodd'?_0x16279b[_0x20968a(0x1b8)](_0x20968a(0x278)):_0x16279b[_0x20968a(0x1b8)](),_0x16279b['restore']());}var Sn=class e extends _0x5dbb19{constructor(_0x5d5504,_0x1a1d57){const _0x78e4b6=_0x1bdaba;super(_0x5d5504,_0x1a1d57),q(this,_0x78e4b6(0x29c),void 0x0),q(this,_0x78e4b6(0x24a),void 0x0),this[_0x78e4b6(0x29c)]=_0x1a1d57==null?void 0x0:_0x1a1d57[_0x78e4b6(0x29c)],this['text']=_0x1a1d57==null?void 0x0:_0x1a1d57['text'];}static['drawWith'](_0x1b8ed9,_0x13808c){const _0x52bf60=_0x1bdaba;let {text:_0x592c28,color:_0x4dacbe}=_0x13808c;_0x1b8ed9['save'](),_0x1b8ed9[_0x52bf60(0x162)]=_0x52bf60(0x296);let _0x2f0b45=_0x1b8ed9['measureText'](_0x592c28)[_0x52bf60(0x2b4)];if(xn(_0x1b8ed9,{'height':0x14,'radius':0x4,'width':bn(_0x1b8ed9,_0x592c28),'fill':_0x4dacbe,'evented':!0x1}),_0x1b8ed9[_0x52bf60(0x2c0)]=_0x52bf60(0x24c),_0x2f0b45>0xc0){let _0x42b9a1='',_0xfa40d6=0x0;for(let _0x59e236 of _0x592c28){let _0x5598c2=_0x1b8ed9[_0x52bf60(0x1bd)](_0x59e236)[_0x52bf60(0x2b4)];if(_0xfa40d6+_0x5598c2<=0xc0-_0x1b8ed9[_0x52bf60(0x1bd)]('...')[_0x52bf60(0x2b4)])_0x42b9a1+=_0x59e236,_0xfa40d6+=_0x5598c2;else{_0x42b9a1+=_0x52bf60(0x2c5);break;}}_0x1b8ed9[_0x52bf60(0x2f8)](_0x42b9a1,0x4,0xf);}else _0x1b8ed9[_0x52bf60(0x2f8)](_0x592c28,0x4,0xf);_0x1b8ed9['restore']();}[_0x1bdaba(0x295)](_0x237298){const _0x57118d=_0x1bdaba;e[_0x57118d(0x263)](_0x237298,this);}};const Cn=0x138a;var wn=class extends _0x5dbb19{constructor(_0x30198c,_0x1b248f){const _0x3307f1=_0x1bdaba;super(_0x30198c,{..._0x1b248f,'evented':!0x1}),q(this,'_color','#4f46e5'),q(this,'_name',''),q(this,'_showText',!0x0),_0x1b248f&&this[_0x3307f1(0xdf)](_0x1b248f);}[_0x1bdaba(0xdf)](_0x7473c3){const _0x5b852a=_0x1bdaba;var _0x3a94ae,_0x488131,_0x24ec4c,_0x9d3ed,_0x4d5792,_0x5ac65e,_0x22a083,_0x4f2d85;this[_0x5b852a(0x2c9)]=(_0x3a94ae=_0x7473c3[_0x5b852a(0x29c)])==null?this['_color']:_0x3a94ae,this['_name']=(_0x488131=_0x7473c3[_0x5b852a(0x160)])==null?this[_0x5b852a(0x12f)]:_0x488131,this[_0x5b852a(0x359)]=(_0x24ec4c=_0x7473c3[_0x5b852a(0x1cc)])==null?this[_0x5b852a(0x359)]:_0x24ec4c,this[_0x5b852a(0x142)]=!0x1,this[_0x5b852a(0x1b3)]({'left':(_0x9d3ed=_0x7473c3[_0x5b852a(0x207)])==null?this['left']:_0x9d3ed,'top':(_0x4d5792=_0x7473c3['top'])==null?this[_0x5b852a(0x17c)]:_0x4d5792,'width':(_0x5ac65e=_0x7473c3[_0x5b852a(0x2b4)])==null?this[_0x5b852a(0x2b4)]:_0x5ac65e,'height':(_0x22a083=_0x7473c3['height'])==null?this[_0x5b852a(0x12b)]:_0x22a083,'angle':(_0x4f2d85=_0x7473c3[_0x5b852a(0x135)])==null?this[_0x5b852a(0x135)]:_0x4f2d85});}[_0x1bdaba(0x295)](_0x2af18f){const _0x29d2d0=_0x1bdaba;_0x2af18f['save'](),_0x2af18f[_0x29d2d0(0x35b)]=this[_0x29d2d0(0x2c9)],_0x2af18f[_0x29d2d0(0x2c2)]=this['strokeWidth']||1.5,_0x2af18f['setLineDash']([0x6,0x4]),_0x2af18f[_0x29d2d0(0x271)](0x0,0x0,this[_0x29d2d0(0x2b4)],this[_0x29d2d0(0x12b)]),_0x2af18f[_0x29d2d0(0x134)](),this[_0x29d2d0(0x359)]&&(_0x2af18f[_0x29d2d0(0x154)](),_0x2af18f[_0x29d2d0(0x35d)](0x1,0x0,0x0,0x1,this[_0x29d2d0(0x2b4)],-0x14),Sn['drawWith'](_0x2af18f,{'text':this[_0x29d2d0(0x12f)],'color':this[_0x29d2d0(0x2c9)]}),_0x2af18f[_0x29d2d0(0x134)]());}};const Tn=[_0x1bdaba(0x2c1),_0x1bdaba(0x308),'green.600',_0x1bdaba(0x20d),_0x1bdaba(0x2bf),'yellow.400'];var Z=class extends _0x3546e9{constructor(..._0x47594c){const _0x258e06=_0x1bdaba;super(..._0x47594c),q(this,_0x258e06(0x2e3),new Map()),q(this,_0x258e06(0x289),0x0);}['assignAColorForMemberID'](_0x5bd393){const _0x27b346=_0x1bdaba;if(this['_assignedColors']['has'](_0x5bd393))return this[_0x27b346(0x2e3)]['get'](_0x5bd393);let _0x1f8c3d=Tn[this['_colorIndex']];return this[_0x27b346(0x289)]=(this[_0x27b346(0x289)]+0x1)%Tn[_0x27b346(0x212)],this['_assignedColors'][_0x27b346(0x19d)](_0x5bd393,_0x1f8c3d),_0x1f8c3d;}};function En(_0xe9ac9b){const _0x26ca14=_0x1bdaba;let _0x29979c;try{_0x29979c=JSON[_0x26ca14(0xed)](_0xe9ac9b);}catch{return null;}if(typeof _0x29979c!=_0x26ca14(0x2c4)||!_0x29979c)return null;let _0x29c6ca=_0x29979c;if(_0x29c6ca[_0x26ca14(0x29a)]!==_0x26ca14(0x118)||typeof _0x29c6ca[_0x26ca14(0x219)]!=_0x26ca14(0x233)||typeof _0x29c6ca[_0x26ca14(0x30e)]!=_0x26ca14(0x233))return null;let _0x7b3d1e=Array[_0x26ca14(0x2bd)](_0x29c6ca[_0x26ca14(0x210)])?_0x29c6ca[_0x26ca14(0x210)][_0x26ca14(0x25b)](_0x2c7106=>typeof _0x2c7106=='string'):[],_0x17ba9a=typeof _0x29c6ca[_0x26ca14(0x31c)]==_0x26ca14(0x233)?_0x29c6ca['focusedId']:null;return{'kind':_0x26ca14(0x118),'unitId':_0x29c6ca['unitId'],'subUnitId':_0x29c6ca['subUnitId'],'selectedIds':_0x7b3d1e,'focusedId':_0x17ba9a};}let Dn=class extends _0x6ec97f{get[_0x1bdaba(0x222)](){const _0x58ab9b=_0x1bdaba;return this[_0x58ab9b(0x100)]['getValue']();}get['roomMembers'](){const _0x4c3b45=_0x1bdaba;return this[_0x4c3b45(0x298)][_0x4c3b45(0x146)]();}constructor(_0x5666a7,_0x314c0f,_0x15ad2e,_0x6bd7dd,_0xeda577){const _0x18d71c=_0x1bdaba;super(),this[_0x18d71c(0x15f)]=_0x5666a7,this[_0x18d71c(0xfa)]=_0x314c0f,this['_colorAssignService']=_0x15ad2e,this['_memberService']=_0x6bd7dd,this[_0x18d71c(0x1c1)]=_0xeda577,q(this,'_online',!0x1),q(this,_0x18d71c(0x311),!0x1),q(this,'_cursorInfo$',new _0x2c1176(new Map())),q(this,_0x18d71c(0x13c),this[_0x18d71c(0x100)][_0x18d71c(0x29b)]()),q(this,_0x18d71c(0x298),new _0x2c1176([])),q(this,_0x18d71c(0x11d),this[_0x18d71c(0x298)][_0x18d71c(0x241)](_0x684ccc(0x12c))),q(this,_0x18d71c(0x351),_0x574451(_0x445b63=>{const _0x5d0fa4=_0x18d71c;let _0xe8c75e=_0x445b63[_0x5d0fa4(0x1fd)];if(!_0xe8c75e||_0xe8c75e[_0x5d0fa4(0x219)]!==this['unitID'])return;let _0x42fe2f={'kind':'board-element-selection','unitId':_0xe8c75e[_0x5d0fa4(0x219)],'subUnitId':_0xe8c75e['subUnitId'],'selectedIds':_0x445b63[_0x5d0fa4(0x210)]['filter'](_0x467751=>typeof _0x467751==_0x5d0fa4(0x233)),'focusedId':_0x445b63[_0x5d0fa4(0x31c)]},_0x48befe={'eventID':_0x5294be['UPDATE_CURSOR'],'data':{'unitID':this[_0x5d0fa4(0x15f)],'memberID':this[_0x5d0fa4(0xfa)][_0x5d0fa4(0x294)](),'selection':JSON[_0x5d0fa4(0x26d)](_0x42fe2f)}};this[_0x5d0fa4(0xfa)]['send'](_0x48befe,this[_0x5d0fa4(0x15f)]);},0x64));}[_0x1bdaba(0x327)](){const _0x3db89e=_0x1bdaba;super[_0x3db89e(0x327)](),this[_0x3db89e(0x100)][_0x3db89e(0x335)](new Map()),this[_0x3db89e(0x100)][_0x3db89e(0x2cf)](),this[_0x3db89e(0x298)][_0x3db89e(0x335)]([]),this[_0x3db89e(0x298)][_0x3db89e(0x2cf)]();}[_0x1bdaba(0x2ed)](){const _0x535bc0=_0x1bdaba;this[_0x535bc0(0x311)]||(this['_init']=!0x0,this[_0x535bc0(0xfa)][_0x535bc0(0x15b)][_0x535bc0(0x241)](_0x1880d0(this['dispose$']))[_0x535bc0(0x2f1)](_0x4e342c=>{const _0x5214b2=_0x535bc0;_0x4e342c===_0x3b3306[_0x5214b2(0x252)]?this[_0x5214b2(0x247)]():this[_0x5214b2(0x23b)]();}),this[_0x535bc0(0xfa)][_0x535bc0(0x285)][_0x535bc0(0x241)](_0x1880d0(this[_0x535bc0(0x29f)]))[_0x535bc0(0x2f1)](_0x2a48e1=>{const _0x1a21a5=_0x535bc0;let _0x2b667e=_0x2a48e1[_0x1a21a5(0x1e2)];_0x2b667e===_0x5294be[_0x1a21a5(0x150)]&&this['_onCursorUpdate'](_0x2a48e1),_0x2b667e===_0x5294be['USERS_LEAVE']&&this[_0x1a21a5(0x14c)](_0x2a48e1);}),this[_0x535bc0(0x1c1)][_0x535bc0(0x1ff)][_0x535bc0(0x241)](_0x1880d0(this['dispose$']))[_0x535bc0(0x2f1)](_0x2dd518=>{const _0x6e78e4=_0x535bc0;this[_0x6e78e4(0x140)]&&this[_0x6e78e4(0x351)](_0x2dd518);}));}[_0x1bdaba(0x24e)](_0x290df2){const _0x49ead6=_0x1bdaba;var _0x3992a9,_0x102978,_0x1d893f,_0x378eb0;let {memberID:_0x8b687e,selection:_0x1160ba}=_0x290df2[_0x49ead6(0x1c0)];if(_0x8b687e===((_0x3992a9=(_0x102978=this[_0x49ead6(0xfa)])[_0x49ead6(0x294)])==null?void 0x0:_0x3992a9['call'](_0x102978)))return;let _0x15cea0=En(_0x1160ba);if(!_0x15cea0||_0x15cea0[_0x49ead6(0x219)]!==this[_0x49ead6(0x15f)])return;let _0x22e732=(_0x1d893f=(_0x378eb0=this[_0x49ead6(0x290)]['getMember'](this[_0x49ead6(0x15f)],_0x8b687e))==null?void 0x0:_0x378eb0['name'])==null?_0x49ead6(0x141):_0x1d893f,_0x13d9ce={'color':this[_0x49ead6(0x24b)]['assignAColorForMemberID'](_0x8b687e),'name':_0x22e732,'unitId':_0x15cea0['unitId'],'subUnitId':_0x15cea0[_0x49ead6(0x30e)],'selectedIds':_0x15cea0[_0x49ead6(0x210)],'focusedId':_0x15cea0['focusedId'],'selection':_0x1160ba},_0x25363d=new Map(this[_0x49ead6(0x222)]);_0x25363d[_0x49ead6(0x19d)](_0x8b687e,_0x13d9ce),this[_0x49ead6(0x100)][_0x49ead6(0x335)](_0x25363d);}[_0x1bdaba(0x14c)](_0x2c3c00){const _0x41de41=_0x1bdaba;let {memberID:_0x1413b2}=_0x2c3c00['data'],_0x1d9d8f=new Map(this[_0x41de41(0x222)]);_0x1d9d8f[_0x41de41(0x195)](_0x1413b2),this[_0x41de41(0x100)][_0x41de41(0x335)](_0x1d9d8f);}[_0x1bdaba(0x247)](){const _0x1bfee8=_0x1bdaba;this[_0x1bfee8(0x140)]=!0x0,this['_updateLocalCursor'](this[_0x1bfee8(0x1c1)][_0x1bfee8(0x2fe)]());}['_toggleOffline'](){const _0x5bdc58=_0x1bdaba;this[_0x5bdc58(0x140)]=!0x1;}};Dn=Y([J(0x2,_0x12dbe6(Z)),J(0x3,_0x12dbe6(_0xed4271)),J(0x4,_0x12dbe6(_0x1dfa0b))],Dn);function On(_0x3c1dd3){const _0x23c613=_0x1bdaba;let _0x168ae6='';for(let _0x1e5803 of _0x3c1dd3){let {startOffset:_0x3a767f,endOffset:_0x3d3d0d,isActive:_0x306452,rangeType:_0x29bc36,segmentId:_0x463afb,segmentPage:_0x589722}=_0x1e5803;_0x168ae6[_0x23c613(0x212)]&&(_0x168ae6+=','),_0x168ae6+=_0x3a767f+':'+_0x3d3d0d+':'+(_0x306452?'1':'0')+':'+_0x29bc36+':'+_0x463afb+':'+_0x589722;}return _0x168ae6;}function kn(_0x20dc3b){const _0x17c5c5=_0x1bdaba;let _0x105592=_0x20dc3b[_0x17c5c5(0x17a)](','),_0x83fb16=[];for(let _0x1780bd of _0x105592){let [_0x159b6f,_0x1aece8,_0x110648,_0x34ba13,_0x2eb05f,_0x58b885]=_0x1780bd[_0x17c5c5(0x17a)](':');_0x83fb16[_0x17c5c5(0x179)]({'startOffset':Number(_0x159b6f),'endOffset':Number(_0x1aece8),'collapsed':_0x159b6f===_0x1aece8,'isActive':_0x110648==='1','rangeType':_0x34ba13===_0x4b3ddb[_0x17c5c5(0x2e9)]?_0x4b3ddb[_0x17c5c5(0x2e9)]:_0x4b3ddb[_0x17c5c5(0x2ea)],'segmentId':typeof _0x2eb05f==_0x17c5c5(0x233)?String(_0x2eb05f):'','segmentPage':Number(_0x58b885==null?-0x1:_0x58b885)});}return _0x83fb16[_0x17c5c5(0x189)](_0x5bba11=>_0x5bba11[_0x17c5c5(0x2a6)])||(_0x83fb16[0x0][_0x17c5c5(0x2a6)]=!0x0),_0x83fb16;}var An=class extends _0x6ec97f{constructor(..._0x2f7a18){const _0x36b32c=_0x1bdaba;super(..._0x2f7a18),q(this,_0x36b32c(0x1a2),new _0x2c1176(null)),q(this,'collabCursorState$',this[_0x36b32c(0x1a2)]['asObservable']());}[_0x1bdaba(0x344)](_0x4b544d){const _0x10418a=_0x1bdaba;let {unitID:_0x2491b3,memberID:_0x415f9f,textRanges:_0x47607b}=_0x4b544d,_0x37e1bc=On(_0x47607b);if(_0x37e1bc==='')return;let _0xb606cc={'unitID':_0x2491b3,'memberID':_0x415f9f,'selection':_0x37e1bc};this[_0x10418a(0x1a2)][_0x10418a(0x335)](_0xb606cc);}};let jn=class extends _0x6ec97f{get['cursorInfo'](){const _0x269dfb=_0x1bdaba;return this['_cursorInfo$'][_0x269dfb(0x146)]();}get[_0x1bdaba(0x323)](){const _0x4c1ad7=_0x1bdaba;return this[_0x4c1ad7(0x298)][_0x4c1ad7(0x146)]();}constructor(_0x4f6e65,_0x3fe3cb,_0x1d9dd9,_0x267b21,_0x1d354e,_0x2f21c3,_0x5efbb4,_0x418729,_0x47bf3a){const _0x26eb2b=_0x1bdaba;super(),this[_0x26eb2b(0x15f)]=_0x4f6e65,this[_0x26eb2b(0xfa)]=_0x3fe3cb,this[_0x26eb2b(0xe0)]=_0x1d9dd9,this[_0x26eb2b(0x24b)]=_0x267b21,this[_0x26eb2b(0x290)]=_0x1d354e,this['_syncEditingCollabCursorService']=_0x2f21c3,this[_0x26eb2b(0x287)]=_0x5efbb4,this['_univerInstanceService']=_0x418729,this[_0x26eb2b(0x2ef)]=_0x47bf3a,q(this,_0x26eb2b(0x140),!0x1),q(this,_0x26eb2b(0x311),!0x1),q(this,'_cursorInfo$',new _0x2c1176(new Map())),q(this,_0x26eb2b(0x13c),this[_0x26eb2b(0x100)][_0x26eb2b(0x29b)]()),q(this,'_roomMembers$',new _0x2c1176([])),q(this,_0x26eb2b(0x11d),this[_0x26eb2b(0x298)][_0x26eb2b(0x241)](_0x684ccc(0x12c))),q(this,'_updateLocalCursor',_0x574451(_0x499168=>{const _0x5e42e9=_0x26eb2b;let _0x54bc16={'eventID':_0x5294be[_0x5e42e9(0x150)],'data':{'unitID':this[_0x5e42e9(0x15f)],'memberID':this[_0x5e42e9(0xfa)]['getMemberID'](),'selection':On(_0x499168)}};this[_0x5e42e9(0xfa)][_0x5e42e9(0x192)](_0x54bc16,this[_0x5e42e9(0x15f)]);},0x64));}[_0x1bdaba(0x327)](){const _0x388081=_0x1bdaba;super[_0x388081(0x327)](),this[_0x388081(0x100)][_0x388081(0x335)](new Map()),this[_0x388081(0x100)][_0x388081(0x2cf)](),this[_0x388081(0x298)][_0x388081(0x335)]([]),this[_0x388081(0x298)]['complete']();}[_0x1bdaba(0x2ed)](){const _0x992f9e=_0x1bdaba;this[_0x992f9e(0x311)]||(this[_0x992f9e(0x311)]=!0x0,this['_session'][_0x992f9e(0x15b)]['pipe'](_0x1880d0(this[_0x992f9e(0x29f)]))[_0x992f9e(0x2f1)](_0x4c9399=>{const _0x410805=_0x992f9e;_0x4c9399===_0x3b3306[_0x410805(0x252)]?this['_toggleOnline']():this[_0x410805(0x23b)]();}),this['_session']['event$'][_0x992f9e(0x241)](_0x1880d0(this[_0x992f9e(0x29f)]))[_0x992f9e(0x2f1)](_0x58f1cb=>{const _0x2223bd=_0x992f9e;let _0x71de4a=_0x58f1cb[_0x2223bd(0x1e2)];_0x71de4a===_0x5294be[_0x2223bd(0x150)]&&this[_0x2223bd(0x24e)](_0x58f1cb),_0x71de4a===_0x5294be[_0x2223bd(0x253)]&&this[_0x2223bd(0x14c)](_0x58f1cb);}),this['disposeWithMe'](this[_0x992f9e(0x2ef)][_0x992f9e(0x1be)](_0x5181cc=>{const _0x4004ab=_0x992f9e;let _0x7d9609=_0x5181cc[_0x4004ab(0x1ac)];_0x7d9609!=null&&this[_0x4004ab(0x140)]&&_0x5181cc['id']===_0x56b086['id']&&_0x7d9609['unitId']===this[_0x4004ab(0x15f)]&&_0x7d9609[_0x4004ab(0x1bb)]===!0x1&&_0x7d9609[_0x4004ab(0x356)][_0x4004ab(0x212)]>0x0&&this[_0x4004ab(0x351)](_0x7d9609[_0x4004ab(0x356)]);})),this[_0x992f9e(0x348)][_0x992f9e(0x191)][_0x992f9e(0x241)](_0x1880d0(this['dispose$']))[_0x992f9e(0x2f1)](_0x269c80=>{const _0x206ede=_0x992f9e;if((_0x269c80==null?void 0x0:_0x269c80[_0x206ede(0x15f)])!==this[_0x206ede(0x15f)])return;let _0x246ce1={'eventID':_0x5294be[_0x206ede(0x150)],'data':_0x269c80};this[_0x206ede(0x24e)](_0x246ce1);}),this[_0x992f9e(0x225)](this['_commandService'][_0x992f9e(0x1be)](_0x562175=>{const _0x55a159=_0x992f9e;if(_0x562175[_0x55a159(0x1ac)]==null)return;let _0x3e891a=_0x562175[_0x55a159(0x1ac)];if(_0x562175['id']!==_0x4224c4['id']||_0x3e891a[_0x55a159(0x219)]!==this[_0x55a159(0x15f)])return;let _0x24c1a7={'id':_0x55a159(0x11b),'params':_0x3e891a},_0x29ecf5=this[_0x55a159(0x222)];for(let [_0x3cda36,_0x5ce619]of _0x29ecf5){let _0x3f604d={'id':_0x55a159(0x11b),'params':{'unitId':this[_0x55a159(0x15f)],'actions':null,'textRanges':_0x5ce619['ranges']}},_0x4c7ba0=this[_0x55a159(0x287)][_0x55a159(0x2aa)](_0x24c1a7,_0x3f604d,!0x1);if(_0x316e48(_0x4c7ba0))throw _0x4c7ba0['error'];_0x29ecf5[_0x55a159(0x19d)](_0x3cda36,{..._0x5ce619,'ranges':_0x4c7ba0[_0x55a159(0x10b)]['params']['textRanges']});}queueMicrotask(()=>{const _0x163bf6=_0x55a159;this[_0x163bf6(0x100)][_0x163bf6(0x335)](_0x29ecf5);});})));}[_0x1bdaba(0x24e)](_0x2d9525){const _0x184ba8=_0x1bdaba;var _0x1ffa9,_0x3081ed;let {memberID:_0x1f74b3,selection:_0x2e3a47}=_0x2d9525[_0x184ba8(0x1c0)],_0xe71a6d=kn(_0x2e3a47),_0x53534d=(_0x1ffa9=(_0x3081ed=this['_memberService'][_0x184ba8(0x115)](this['unitID'],_0x1f74b3))==null?void 0x0:_0x3081ed[_0x184ba8(0x160)])==null?_0x184ba8(0x141):_0x1ffa9,_0x421533={'color':this['_colorAssignService'][_0x184ba8(0xe5)](_0x1f74b3),'name':_0x53534d,'ranges':_0xe71a6d},_0x5023a7=this['cursorInfo'];_0x5023a7[_0x184ba8(0x19d)](_0x1f74b3,_0x421533),this[_0x184ba8(0x100)][_0x184ba8(0x335)](_0x5023a7);}[_0x1bdaba(0x14c)](_0x49b1b2){const _0x364d38=_0x1bdaba;let {memberID:_0x1bef88}=_0x49b1b2['data'],_0x4ae661=this[_0x364d38(0x222)];_0x4ae661['delete'](_0x1bef88),this[_0x364d38(0x100)][_0x364d38(0x335)](_0x4ae661);}['_toggleOnline'](){const _0x194191=_0x1bdaba;var _0x1766a;if(this['_online']=!0x0,((_0x1766a=this['_univerInstanceService'][_0x194191(0x1e7)]())==null?void 0x0:_0x1766a['getUnitId']())!==this[_0x194191(0x15f)])return;let _0x168f65=this[_0x194191(0xe0)][_0x194191(0x307)](_0x414f4a)[_0x194191(0x2ca)]();Array[_0x194191(0x2bd)](_0x168f65)&&_0x168f65[_0x194191(0x212)]>0x0&&this[_0x194191(0x351)](_0x168f65);}[_0x1bdaba(0x23b)](){const _0x11c3c0=_0x1bdaba;this[_0x11c3c0(0x140)]=!0x1;}};jn=Y([J(0x2,_0x12dbe6(_0x16b12f)),J(0x3,_0x12dbe6(Z)),J(0x4,_0x12dbe6(_0xed4271)),J(0x5,_0x12dbe6(An)),J(0x6,_0x4e7576),J(0x7,_0x2d8d04),J(0x8,_0x52ed54)],jn);const Mn=()=>{let _0x16de77=[],_0x5b1394=!0x1;return _0xe78f5e=>{const _0x3b957f=_0x5856;_0x16de77[_0x3b957f(0x179)](_0xe78f5e),_0x5b1394||(_0x5b1394=!0x0,setTimeout(()=>{const _0x51cc06=_0x3b957f;_0x16de77[_0x51cc06(0x139)](_0x34d4b4=>_0x34d4b4()),_0x16de77=[],_0x5b1394=!0x1;}));};};let Nn=class extends _0x6ec97f{get[_0x1bdaba(0x222)](){const _0x39a29f=_0x1bdaba;return this[_0x39a29f(0x100)]['getValue']();}get[_0x1bdaba(0x323)](){const _0x317717=_0x1bdaba;return this['_roomMembers$'][_0x317717(0x146)]();}constructor(_0x592cd2,_0x51007e,_0x29e357,_0x54b584,_0x9662e0,_0x1b6833,_0x4b0e1b,_0x650a1a){const _0x4f3b1a=_0x1bdaba;super(),this[_0x4f3b1a(0x15f)]=_0x592cd2,this[_0x4f3b1a(0xfa)]=_0x51007e,this[_0x4f3b1a(0xe0)]=_0x29e357,this[_0x4f3b1a(0x24b)]=_0x54b584,this['_memberService']=_0x9662e0,this[_0x4f3b1a(0x102)]=_0x1b6833,this[_0x4f3b1a(0x2ef)]=_0x4b0e1b,this[_0x4f3b1a(0x34d)]=_0x650a1a,q(this,'_online',!0x1),q(this,'_init',!0x1),q(this,_0x4f3b1a(0x100),new _0x2c1176(new Map())),q(this,_0x4f3b1a(0x13c),this[_0x4f3b1a(0x100)][_0x4f3b1a(0x29b)]()),q(this,_0x4f3b1a(0x298),new _0x2c1176([])),q(this,_0x4f3b1a(0x11d),this[_0x4f3b1a(0x298)][_0x4f3b1a(0x241)](_0x684ccc(0x12c))),q(this,_0x4f3b1a(0x351),_0x574451((_0x107639,_0x5ebc6f)=>{const _0x5840b4=_0x4f3b1a;let _0x137118={'eventID':_0x5294be[_0x5840b4(0x150)],'data':{'unitID':this[_0x5840b4(0x15f)],'memberID':this['_session'][_0x5840b4(0x294)](),'selection':_0x2762bf(_0x107639,_0x5ebc6f['range'])}};this[_0x5840b4(0xfa)][_0x5840b4(0x192)](_0x137118,this[_0x5840b4(0x15f)]);},0x64));}[_0x1bdaba(0x327)](){const _0x26c75e=_0x1bdaba;super[_0x26c75e(0x327)](),this[_0x26c75e(0x100)][_0x26c75e(0x335)](new Map()),this[_0x26c75e(0x100)]['complete'](),this[_0x26c75e(0x298)]['next']([]),this['_roomMembers$'][_0x26c75e(0x2cf)]();}['init'](){const _0x2f41df=_0x1bdaba;this[_0x2f41df(0x311)]||(this[_0x2f41df(0x311)]=!0x0,this[_0x2f41df(0xfa)]['sessionStatus$'][_0x2f41df(0x241)](_0x1880d0(this[_0x2f41df(0x29f)]))[_0x2f41df(0x2f1)](_0x5456b7=>{const _0x37f0f0=_0x2f41df;_0x5456b7===_0x3b3306[_0x37f0f0(0x252)]?this[_0x37f0f0(0x247)]():this[_0x37f0f0(0x23b)]();}),this[_0x2f41df(0xfa)][_0x2f41df(0x285)][_0x2f41df(0x241)](_0x1880d0(this[_0x2f41df(0x29f)]))[_0x2f41df(0x2f1)](_0x1ea600=>{const _0xf4633b=_0x2f41df;let _0x38124f=_0x1ea600[_0xf4633b(0x1e2)];_0x38124f===_0x5294be[_0xf4633b(0x150)]&&this[_0xf4633b(0x24e)](_0x1ea600),_0x38124f===_0x5294be['USERS_LEAVE']&&this[_0xf4633b(0x14c)](_0x1ea600);}),this['_onRefRangeChange'](),this[_0x2f41df(0x225)](this['_commandService'][_0x2f41df(0x1be)](_0x3270b6=>{const _0x4b08fe=_0x2f41df;if(this['_online']&&_0x3270b6['id']===_0x3da33b['id']&&_0x3270b6[_0x4b08fe(0x1ac)][_0x4b08fe(0x219)]===this[_0x4b08fe(0x15f)]){let _0xe2c9d6=_0x3270b6[_0x4b08fe(0x1ac)];this[_0x4b08fe(0x351)](_0xe2c9d6[_0x4b08fe(0x30e)],_0xe2c9d6[_0x4b08fe(0x1d8)][0x0]);}})));}['_onCursorUpdate'](_0x4e6c81){const _0x5c18b5=_0x1bdaba;var _0x3fe7d6,_0x795cac;let {memberID:_0x4b688e,selection:_0x1943c0}=_0x4e6c81[_0x5c18b5(0x1c0)],{sheetName:_0x339be2,range:_0x177275}=_0x31baff(_0x1943c0),_0x38a2f9={'name':(_0x3fe7d6=(_0x795cac=this[_0x5c18b5(0x290)][_0x5c18b5(0x115)](this['unitID'],_0x4b688e))==null?void 0x0:_0x795cac[_0x5c18b5(0x160)])==null?'Unknown\x20user':_0x3fe7d6,'range':this[_0x5c18b5(0x19c)](_0x339be2,_0x177275),'sheetID':_0x339be2,'color':this['_colorAssignService']['assignAColorForMemberID'](_0x4b688e),'selection':_0x1943c0},_0x35aba2=this[_0x5c18b5(0x222)];_0x35aba2[_0x5c18b5(0x19d)](_0x4b688e,_0x38a2f9),this[_0x5c18b5(0x100)][_0x5c18b5(0x335)](_0x35aba2);}[_0x1bdaba(0x14c)](_0x38a409){const _0x2f0a92=_0x1bdaba;let {memberID:_0x445c10}=_0x38a409[_0x2f0a92(0x1c0)],_0x15848d=this[_0x2f0a92(0x222)];_0x15848d['delete'](_0x445c10),this[_0x2f0a92(0x100)]['next'](_0x15848d);}[_0x1bdaba(0x19c)](_0x504c6f,_0x465ab7){const _0xac6282=_0x1bdaba;var _0xd337ea;let _0x55027d=(_0xd337ea=this[_0xac6282(0x102)][_0xac6282(0x188)](this['unitID']))==null||(_0xd337ea=_0xd337ea[_0xac6282(0x2f5)](_0x504c6f))==null?void 0x0:_0xd337ea['getMergeData']();return(_0x55027d==null?void 0x0:_0x55027d['find'](_0x8940ad=>_0x1aea16[_0xac6282(0x14e)](_0x8940ad,_0x465ab7)))||_0x465ab7;}[_0x1bdaba(0x187)](){const _0x2e3d2b=_0x1bdaba;let _0x3aa780=new _0x1fc18c(),_0x433621=Mn(),_0x4381f2=()=>{const _0x50d078=_0x5856;_0x3aa780[_0x50d078(0x327)]();let _0x3e8b57=(_0x437d9c,_0x547ed2,_0x91123d,_0x40c3b5)=>{const _0x390694=_0x50d078;let _0xb7ba94=[];switch(_0x437d9c['id']){case _0x46c3ea[_0x390694(0x104)]:_0xb7ba94=_0x444b57(_0x437d9c,_0x40c3b5);break;case _0x46c3ea[_0x390694(0x126)]:_0xb7ba94=_0x3c830d(_0x437d9c,_0x40c3b5);break;case _0x46c3ea[_0x390694(0x32f)]:_0xb7ba94=_0x24671e(_0x437d9c,_0x40c3b5);break;case _0x46c3ea[_0x390694(0x221)]:_0xb7ba94=_0x2a0b23(_0x437d9c,_0x40c3b5);break;case _0x46c3ea['InsertRangeMoveRightCommandId']:_0xb7ba94=_0x1e1344(_0x437d9c,_0x40c3b5);break;case _0x46c3ea[_0x390694(0x2d9)]:_0xb7ba94=_0x6602b3(_0x437d9c,_0x40c3b5);break;case _0x46c3ea['MoveRangeCommandId']:_0xb7ba94=_0x4764dc(_0x437d9c,_0x40c3b5);break;case _0x46c3ea[_0x390694(0x275)]:_0xb7ba94=_0x1aaa23(_0x437d9c,_0x40c3b5);break;case _0x46c3ea[_0x390694(0xec)]:_0xb7ba94=_0x8ea19f(_0x437d9c,_0x40c3b5);break;}let _0x4c41=_0xe20ac4(_0xb7ba94,_0x40c3b5),_0x1ba80f=this[_0x390694(0x222)][_0x390694(0x307)](_0x547ed2);if(_0x1ba80f&&_0x4c41){let _0x25e6c8={..._0x1ba80f,'range':_0x4c41};this[_0x390694(0x222)][_0x390694(0x19d)](_0x547ed2,_0x25e6c8),_0x433621(()=>{const _0x26739c=_0x390694;let _0x121670=this[_0x26739c(0x34d)][_0x26739c(0x23f)](_0x4c41,_0x1d0e52=>(_0x121670['dispose'](),_0x3e8b57(_0x1d0e52,_0x547ed2,_0x91123d,_0x4c41)));_0x3aa780[_0x26739c(0x1e9)](_0x121670);});}return{'redos':[],'undos':[]};};this['cursorInfo']['forEach']((_0x2dbea5,_0x5a98dc)=>{const _0x5e3983=_0x50d078;let {range:_0x4c42c0,sheetID:_0x14f7fa}=_0x2dbea5,_0x2769a5=this[_0x5e3983(0x34d)][_0x5e3983(0x23f)](_0x4c42c0,_0xfc4705=>(_0x2769a5[_0x5e3983(0x327)](),_0x3e8b57(_0xfc4705,_0x5a98dc,_0x14f7fa,_0x4c42c0)));_0x3aa780[_0x5e3983(0x1e9)](_0x2769a5);});};this[_0x2e3d2b(0x225)](_0x4627b6(this['_cursorInfo$'][_0x2e3d2b(0x2f1)](()=>{_0x4381f2();})));}[_0x1bdaba(0x247)](){const _0x712caa=_0x1bdaba;var _0x232077,_0x4c66b0;if(this[_0x712caa(0x140)]=!0x0,((_0x232077=this[_0x712caa(0x102)][_0x712caa(0x1e7)]())==null?void 0x0:_0x232077[_0x712caa(0xd4)]())!==this['unitID'])return;let _0x2bff56=(_0x4c66b0=this[_0x712caa(0xe0)]['get'](_0x45cb73)[_0x712caa(0x1d5)]())==null?void 0x0:_0x4c66b0[0x0],_0xcca592=this['_univerInstanceService'][_0x712caa(0x28d)](_0x256b3f[_0x712caa(0x319)])[_0x712caa(0x1d9)]();_0x2bff56&&_0xcca592&&this['_updateLocalCursor'](_0xcca592['getSheetId'](),_0x2bff56);}[_0x1bdaba(0x23b)](){const _0x203a1c=_0x1bdaba;this[_0x203a1c(0x140)]=!0x1;}};Nn=Y([J(0x2,_0x12dbe6(_0x16b12f)),J(0x3,_0x12dbe6(Z)),J(0x4,_0x12dbe6(_0xed4271)),J(0x5,_0x2d8d04),J(0x6,_0x52ed54),J(0x7,_0x12dbe6(_0x530258))],Nn);function Pn(_0x55d632){const _0x55d4ff=_0x1bdaba;let _0x246805;try{_0x246805=JSON['parse'](_0x55d632);}catch{return null;}if(typeof _0x246805!=_0x55d4ff(0x2c4)||!_0x246805)return null;let _0x718b93=_0x246805;if(_0x718b93[_0x55d4ff(0x29a)]!=='slide-element-selection'||typeof _0x718b93[_0x55d4ff(0x219)]!=_0x55d4ff(0x233)||typeof _0x718b93[_0x55d4ff(0x30e)]!=_0x55d4ff(0x233))return null;let _0x313e0d=Array[_0x55d4ff(0x2bd)](_0x718b93[_0x55d4ff(0x210)])?_0x718b93[_0x55d4ff(0x210)][_0x55d4ff(0x25b)](_0x799ee7=>typeof _0x799ee7==_0x55d4ff(0x233)):[],_0x43d437=typeof _0x718b93['focusedId']==_0x55d4ff(0x233)?_0x718b93[_0x55d4ff(0x31c)]:null;return{'kind':_0x55d4ff(0x34c),'unitId':_0x718b93[_0x55d4ff(0x219)],'subUnitId':_0x718b93[_0x55d4ff(0x30e)],'selectedIds':_0x313e0d,'focusedId':_0x43d437};}let Fn=class extends _0x6ec97f{get[_0x1bdaba(0x222)](){return this['_cursorInfo$']['getValue']();}get[_0x1bdaba(0x323)](){const _0x51f88a=_0x1bdaba;return this[_0x51f88a(0x298)][_0x51f88a(0x146)]();}constructor(_0x129c42,_0x2773f7,_0x150f5e,_0x28c953,_0xa7338c){const _0x1b77a9=_0x1bdaba;super(),this['unitID']=_0x129c42,this[_0x1b77a9(0xfa)]=_0x2773f7,this[_0x1b77a9(0x24b)]=_0x150f5e,this[_0x1b77a9(0x290)]=_0x28c953,this[_0x1b77a9(0x2ec)]=_0xa7338c,q(this,_0x1b77a9(0x140),!0x1),q(this,'_init',!0x1),q(this,'_cursorInfo$',new _0x2c1176(new Map())),q(this,'cursorInfo$',this['_cursorInfo$'][_0x1b77a9(0x29b)]()),q(this,_0x1b77a9(0x298),new _0x2c1176([])),q(this,'roomMembers$',this[_0x1b77a9(0x298)]['pipe'](_0x684ccc(0x12c))),q(this,_0x1b77a9(0x351),_0x574451(_0x2905d9=>{const _0x3e92f0=_0x1b77a9;let _0x5b5875=_0x2905d9['context'];if(!_0x5b5875||_0x5b5875['unitId']!==this[_0x3e92f0(0x15f)])return;let _0xb21ba1={'kind':_0x3e92f0(0x34c),'unitId':_0x5b5875['unitId'],'subUnitId':_0x5b5875[_0x3e92f0(0x30e)],'selectedIds':_0x2905d9[_0x3e92f0(0x210)][_0x3e92f0(0x25b)](_0x267309=>typeof _0x267309==_0x3e92f0(0x233)),'focusedId':_0x2905d9[_0x3e92f0(0x31c)]},_0x13a5dd={'eventID':_0x5294be[_0x3e92f0(0x150)],'data':{'unitID':this[_0x3e92f0(0x15f)],'memberID':this['_session'][_0x3e92f0(0x294)](),'selection':JSON['stringify'](_0xb21ba1)}};this[_0x3e92f0(0xfa)][_0x3e92f0(0x192)](_0x13a5dd,this[_0x3e92f0(0x15f)]);},0x64));}[_0x1bdaba(0x327)](){const _0x53f676=_0x1bdaba;super[_0x53f676(0x327)](),this[_0x53f676(0x100)]['next'](new Map()),this[_0x53f676(0x100)][_0x53f676(0x2cf)](),this[_0x53f676(0x298)][_0x53f676(0x335)]([]),this[_0x53f676(0x298)][_0x53f676(0x2cf)]();}['init'](){const _0x4b73d2=_0x1bdaba;this[_0x4b73d2(0x311)]||(this[_0x4b73d2(0x311)]=!0x0,this[_0x4b73d2(0xfa)][_0x4b73d2(0x15b)][_0x4b73d2(0x241)](_0x1880d0(this['dispose$']))[_0x4b73d2(0x2f1)](_0x70b1a7=>{const _0x124a34=_0x4b73d2;_0x70b1a7===_0x3b3306[_0x124a34(0x252)]?this[_0x124a34(0x247)]():this['_toggleOffline']();}),this[_0x4b73d2(0xfa)]['event$'][_0x4b73d2(0x241)](_0x1880d0(this[_0x4b73d2(0x29f)]))[_0x4b73d2(0x2f1)](_0x458e94=>{const _0x1d3a1a=_0x4b73d2;let _0x5b22cd=_0x458e94[_0x1d3a1a(0x1e2)];_0x5b22cd===_0x5294be['UPDATE_CURSOR']&&this[_0x1d3a1a(0x24e)](_0x458e94),_0x5b22cd===_0x5294be[_0x1d3a1a(0x253)]&&this[_0x1d3a1a(0x14c)](_0x458e94);}),this[_0x4b73d2(0x2ec)][_0x4b73d2(0x1ff)][_0x4b73d2(0x241)](_0x1880d0(this['dispose$']))[_0x4b73d2(0x2f1)](_0x11a932=>{const _0x369eb1=_0x4b73d2;this[_0x369eb1(0x140)]&&this['_updateLocalCursor'](_0x11a932);}));}['_onCursorUpdate'](_0x26a43e){const _0x5ac130=_0x1bdaba;var _0x5dd2bd,_0x592b04,_0x1c1310,_0x31a456;let {memberID:_0x46d647,selection:_0x224953}=_0x26a43e[_0x5ac130(0x1c0)];if(_0x46d647===((_0x5dd2bd=(_0x592b04=this[_0x5ac130(0xfa)])['getMemberID'])==null?void 0x0:_0x5dd2bd[_0x5ac130(0x1f5)](_0x592b04)))return;let _0x2eea5e=Pn(_0x224953);if(!_0x2eea5e||_0x2eea5e['unitId']!==this[_0x5ac130(0x15f)])return;let _0x4f1b0f=(_0x1c1310=(_0x31a456=this[_0x5ac130(0x290)]['getMember'](this['unitID'],_0x46d647))==null?void 0x0:_0x31a456[_0x5ac130(0x160)])==null?_0x5ac130(0x141):_0x1c1310,_0x2978d4={'color':this[_0x5ac130(0x24b)][_0x5ac130(0xe5)](_0x46d647),'name':_0x4f1b0f,'unitId':_0x2eea5e[_0x5ac130(0x219)],'subUnitId':_0x2eea5e[_0x5ac130(0x30e)],'selectedIds':_0x2eea5e[_0x5ac130(0x210)],'focusedId':_0x2eea5e[_0x5ac130(0x31c)],'selection':_0x224953},_0x5990ac=new Map(this[_0x5ac130(0x222)]);_0x5990ac['set'](_0x46d647,_0x2978d4),this[_0x5ac130(0x100)][_0x5ac130(0x335)](_0x5990ac);}[_0x1bdaba(0x14c)](_0x42a80f){const _0x32f622=_0x1bdaba;let {memberID:_0x5cac65}=_0x42a80f[_0x32f622(0x1c0)],_0x1f5368=new Map(this[_0x32f622(0x222)]);_0x1f5368['delete'](_0x5cac65),this[_0x32f622(0x100)][_0x32f622(0x335)](_0x1f5368);}[_0x1bdaba(0x247)](){const _0x312b51=_0x1bdaba;this[_0x312b51(0x140)]=!0x0,this[_0x312b51(0x351)](this[_0x312b51(0x2ec)][_0x312b51(0x2fe)]());}[_0x1bdaba(0x23b)](){const _0x415803=_0x1bdaba;this[_0x415803(0x140)]=!0x1;}};Fn=Y([J(0x2,_0x12dbe6(Z)),J(0x3,_0x12dbe6(_0xed4271)),J(0x4,_0x12dbe6(_0x306692))],Fn);let Q=class extends _0x6ec97f{constructor(_0x3eb714,_0x258ff5,_0x5f6d36){const _0x200c1d=_0x1bdaba;super(),this[_0x200c1d(0x102)]=_0x3eb714,this[_0x200c1d(0xe0)]=_0x258ff5,this[_0x200c1d(0x1ea)]=_0x5f6d36,q(this,'_entities',new Map()),q(this,'_entityInit$',new _0x5e0129()),this[_0x200c1d(0x311)]();}[_0x1bdaba(0x327)](){const _0x265dbf=_0x1bdaba;super[_0x265dbf(0x327)](),this[_0x265dbf(0x161)]['complete'](),this['_entities']['forEach'](_0x566b12=>_0x566b12['dispose']());}[_0x1bdaba(0x1a7)](_0x30df2e){const _0x2bf721=_0x1bdaba;return this[_0x2bf721(0x167)][_0x2bf721(0x331)](_0x30df2e)?this[_0x2bf721(0x167)][_0x2bf721(0x307)](_0x30df2e)[_0x2bf721(0x13c)]:this[_0x2bf721(0x161)][_0x2bf721(0x241)](_0x45286e(_0x5d8c77=>_0x5d8c77['unitID']===_0x30df2e),_0x2e94a8(_0x3ac319=>_0x3ac319[_0x2bf721(0x13c)]));}[_0x1bdaba(0x311)](){const _0x5867a1=_0x1bdaba;this['_univerInstanceService'][_0x5867a1(0x206)](_0x256b3f[_0x5867a1(0x319)])[_0x5867a1(0x241)](_0x1880d0(this['dispose$']))[_0x5867a1(0x2f1)](async _0x4660e6=>{const _0x421b17=_0x5867a1;let _0x391072=_0x4660e6[_0x421b17(0x227)][_0x421b17(0xd4)](),_0x5525cb=await this[_0x421b17(0xe7)](_0x391072);this[_0x421b17(0x161)]['next'](_0x5525cb),this[_0x421b17(0x167)][_0x421b17(0x19d)](_0x391072,_0x5525cb);}),this[_0x5867a1(0x102)][_0x5867a1(0x206)](_0x256b3f[_0x5867a1(0xcd)])['pipe'](_0x1880d0(this[_0x5867a1(0x29f)]))['pipe'](_0x45286e(_0x5adb6=>!_0x5adb6[_0x5867a1(0x227)]['getUnitId']()['startsWith']('__')))[_0x5867a1(0x2f1)](async _0x336c83=>{const _0x4ac0d6=_0x5867a1;let {unit:_0x102a7a}=_0x336c83,_0x2ecccc=_0x102a7a['getUnitId'](),_0x3a7ea9=await this[_0x4ac0d6(0x130)](_0x2ecccc);this[_0x4ac0d6(0x161)]['next'](_0x3a7ea9),this[_0x4ac0d6(0x167)][_0x4ac0d6(0x19d)](_0x2ecccc,_0x3a7ea9);}),this['_univerInstanceService'][_0x5867a1(0x206)](_0x256b3f[_0x5867a1(0x32a)])[_0x5867a1(0x241)](_0x1880d0(this[_0x5867a1(0x29f)]))['subscribe'](async _0x4dfa54=>{const _0x4161a9=_0x5867a1;let _0x3355f1=_0x4dfa54[_0x4161a9(0x227)][_0x4161a9(0xd4)](),_0x286cb4=await this[_0x4161a9(0xd2)](_0x3355f1);this['_entityInit$'][_0x4161a9(0x335)](_0x286cb4),this[_0x4161a9(0x167)][_0x4161a9(0x19d)](_0x3355f1,_0x286cb4);}),this['_univerInstanceService'][_0x5867a1(0x206)](_0x256b3f[_0x5867a1(0x2db)])[_0x5867a1(0x241)](_0x1880d0(this[_0x5867a1(0x29f)]))[_0x5867a1(0x2f1)](async _0x796d5f=>{const _0x44d5d8=_0x5867a1;let _0x317fcc=_0x796d5f[_0x44d5d8(0x227)][_0x44d5d8(0xd4)](),_0x524c06=await this['_startBoardCollabCursor'](_0x317fcc);this[_0x44d5d8(0x161)][_0x44d5d8(0x335)](_0x524c06),this['_entities'][_0x44d5d8(0x19d)](_0x317fcc,_0x524c06);}),_0x135fc4(this[_0x5867a1(0x102)][_0x5867a1(0x306)](_0x256b3f[_0x5867a1(0xcd)]),this['_univerInstanceService'][_0x5867a1(0x306)](_0x256b3f[_0x5867a1(0x319)]),this[_0x5867a1(0x102)]['getTypeOfUnitDisposed$'](_0x256b3f[_0x5867a1(0x32a)]),this[_0x5867a1(0x102)][_0x5867a1(0x306)](_0x256b3f[_0x5867a1(0x2db)]))[_0x5867a1(0x241)](_0x1880d0(this['dispose$']))[_0x5867a1(0x2f1)](_0x5b2f6e=>{const _0x22e320=_0x5867a1;let _0x3e05df=_0x5b2f6e[_0x22e320(0xd4)](),_0x1c747e=this[_0x22e320(0x167)][_0x22e320(0x307)](_0x3e05df);_0x1c747e&&(_0x1c747e[_0x22e320(0x327)](),this[_0x22e320(0x167)]['delete'](_0x3e05df));});}async[_0x1bdaba(0xe7)](_0x4b4aad){const _0x259cc6=_0x1bdaba;let _0x32b22e=await this[_0x259cc6(0x1ea)][_0x259cc6(0x178)](_0x4b4aad),_0x2c50dc=this[_0x259cc6(0xe0)][_0x259cc6(0x25e)](Nn,_0x4b4aad,_0x32b22e);return _0x2c50dc[_0x259cc6(0x2ed)](),_0x2c50dc;}async['_startDocCollabCursor'](_0x205445){const _0x322467=_0x1bdaba;let _0x2d4a99=await this[_0x322467(0x1ea)][_0x322467(0x178)](_0x205445),_0x43230b=this[_0x322467(0xe0)][_0x322467(0x25e)](jn,_0x205445,_0x2d4a99);return _0x43230b[_0x322467(0x2ed)](),_0x43230b;}async[_0x1bdaba(0xd2)](_0x245cdd){const _0x440bcd=_0x1bdaba;let _0x109bf5=await this[_0x440bcd(0x1ea)][_0x440bcd(0x178)](_0x245cdd),_0x224a43=this['_injector']['createInstance'](Fn,_0x245cdd,_0x109bf5);return _0x224a43[_0x440bcd(0x2ed)](),_0x224a43;}async[_0x1bdaba(0x16d)](_0x3473de){const _0x26519c=_0x1bdaba;let _0x38ab29=await this[_0x26519c(0x1ea)]['requireSession'](_0x3473de),_0x474348=this[_0x26519c(0xe0)][_0x26519c(0x25e)](Dn,_0x3473de,_0x38ab29);return _0x474348[_0x26519c(0x2ed)](),_0x474348;}};Q=Y([J(0x0,_0x2d8d04),J(0x1,_0x12dbe6(_0x16b12f)),J(0x2,_0x12dbe6(_0x552c44))],Q);let In=class extends _0x6ec97f{constructor(_0xc1d6c3,_0x4502f2,_0x268c81){const _0x2fc65a=_0x1bdaba;super(),this[_0x2fc65a(0x309)]=_0xc1d6c3,this['_collabCursorController']=_0x4502f2,this['_themeService']=_0x268c81,q(this,_0x2fc65a(0x10a),new Set()),q(this,_0x2fc65a(0x284),!0x1),q(this,'_isApplyingOverlays',!0x1),q(this,_0x2fc65a(0x2e1),new Map()),this[_0x2fc65a(0x311)]();}[_0x1bdaba(0x327)](){const _0x5355c5=_0x1bdaba;this[_0x5355c5(0x304)](),super[_0x5355c5(0x327)]();}[_0x1bdaba(0x311)](){const _0x8f1b29=_0x1bdaba;let _0x5140a7=this[_0x8f1b29(0x21a)]['getCollabCursors$'](this['_context'][_0x8f1b29(0x219)]);this[_0x8f1b29(0x225)](_0x4627b6(_0x2f43fa([_0x5140a7,this['_context']['unit']['theme$'],this[_0x8f1b29(0x324)]['currentTheme$']])[_0x8f1b29(0x241)](_0x1880d0(this[_0x8f1b29(0x29f)]))[_0x8f1b29(0x2f1)](([_0x1a9cdb])=>{const _0xf74f83=_0x8f1b29;let _0x5d1f90=this[_0xf74f83(0x309)]['unit'][_0xf74f83(0x109)](),_0x3a0a49=new Map();_0x1a9cdb[_0xf74f83(0x139)]((_0x31a232,_0x2c0ec8)=>{const _0x486d13=_0xf74f83;_0x31a232[_0x486d13(0x30e)]===_0x5d1f90&&_0x3a0a49[_0x486d13(0x19d)](_0x2c0ec8,{..._0x31a232,'color':this[_0x486d13(0x324)][_0x486d13(0x288)](_0x31a232['color'])});}),this['_latestCursors']=_0x3a0a49,this[_0xf74f83(0xe8)]();})));let _0x5ceb23=this[_0x8f1b29(0x309)][_0x8f1b29(0x2e2)];this[_0x8f1b29(0x225)](_0x4627b6(_0x5ceb23[_0x8f1b29(0x286)][_0x8f1b29(0x241)](_0x1880d0(this[_0x8f1b29(0x29f)]))[_0x8f1b29(0x2f1)](()=>{const _0x1f9fdb=_0x8f1b29;this[_0x1f9fdb(0x322)]||this['_scheduleRender']();})));}['_scheduleRender'](){const _0x197b0c=_0x1bdaba;this[_0x197b0c(0x284)]||(this['_renderScheduled']=!0x0,Promise['resolve']()[_0x197b0c(0x111)](()=>{const _0x158a78=_0x197b0c;this[_0x158a78(0x284)]=!0x1,this[_0x158a78(0x1db)]();}));}[_0x1bdaba(0x1db)](){const _0x3c31cd=_0x1bdaba;this[_0x3c31cd(0x304)]();let _0x179638=this[_0x3c31cd(0x309)][_0x3c31cd(0x227)][_0x3c31cd(0x109)](),_0x3dcce3=[];if(this[_0x3c31cd(0x2e1)][_0x3c31cd(0x139)]((_0x2d7577,_0x14fab8)=>{const _0x37dcbd=_0x3c31cd;_0x2d7577[_0x37dcbd(0x30e)]===_0x179638&&_0x2d7577[_0x37dcbd(0x210)][_0x37dcbd(0x139)](_0x1365ca=>{const _0x4ce1b8=_0x37dcbd;let _0x39a1ff=_0x22fba3(_0x2d7577['unitId'],_0x1365ca),_0x9196e=this[_0x4ce1b8(0x1d1)](_0x39a1ff);if(!_0x9196e)return;let _0x3f1a57=this[_0x4ce1b8(0x29d)](_0x9196e);_0x3dcce3['push'](new wn('board-collab-cursor-'+_0x14fab8+'-'+_0x1365ca,{..._0x2d7577,'left':_0x3f1a57[_0x4ce1b8(0x207)],'top':_0x3f1a57[_0x4ce1b8(0x17c)],'width':_0x3f1a57[_0x4ce1b8(0x2b4)],'height':_0x3f1a57[_0x4ce1b8(0x12b)],'angle':_0x9196e[_0x4ce1b8(0x135)],'evented':!0x1,'zIndex':Cn}));});}),_0x3dcce3[_0x3c31cd(0x212)]===0x0){this[_0x3c31cd(0x309)]['scene']['makeDirty'](!0x0);return;}this['_isApplyingOverlays']=!0x0,this[_0x3c31cd(0x309)]['scene'][_0x3c31cd(0x1b2)](_0x3dcce3,Cn),this[_0x3c31cd(0x322)]=!0x1,this[_0x3c31cd(0x10a)]=new Set(_0x3dcce3),this[_0x3c31cd(0x309)][_0x3c31cd(0x2e2)]['makeDirty'](!0x0);}[_0x1bdaba(0x304)](){const _0x5f2cd8=_0x1bdaba;let _0x3164d1=Array[_0x5f2cd8(0x15d)](this['_cursors']);if(_0x3164d1[_0x5f2cd8(0x212)]===0x0)return;let _0x74ed5b=this[_0x5f2cd8(0x309)][_0x5f2cd8(0x2e2)];_0x5f2cd8(0x350)in _0x74ed5b&&typeof _0x74ed5b[_0x5f2cd8(0x350)]==_0x5f2cd8(0x107)?_0x74ed5b[_0x5f2cd8(0x350)](_0x3164d1):_0x3164d1['forEach'](_0x314906=>{const _0x4ee878=_0x5f2cd8;_0x4ee878(0x27e)in _0x74ed5b&&typeof _0x74ed5b[_0x4ee878(0x27e)]=='function'?_0x74ed5b[_0x4ee878(0x27e)](_0x314906):_0x314906[_0x4ee878(0x327)]();}),this[_0x5f2cd8(0x10a)][_0x5f2cd8(0x251)](),_0x74ed5b['makeDirty'](!0x0);}['_getSceneObjectByKey'](_0x4a0d50){const _0x219394=_0x1bdaba;var _0x4202ae,_0x5e276e,_0x30e929;let _0x268cc1=this[_0x219394(0x309)]['scene'];return(_0x4202ae=(_0x5e276e=(_0x30e929=_0x268cc1['getObjectIncludeInGroup'])==null?void 0x0:_0x30e929[_0x219394(0x1f5)](_0x268cc1,_0x4a0d50))==null?_0x268cc1[_0x219394(0x33b)](_0x4a0d50):_0x5e276e)==null?null:_0x4202ae;}[_0x1bdaba(0x29d)](_0x5f13f3){const _0x2f1e34=_0x1bdaba;var _0x193025,_0x4e14c8;let _0x582556=_0x5f13f3;return(_0x193025=(_0x4e14c8=_0x582556[_0x2f1e34(0x1ae)])==null?void 0x0:_0x4e14c8[_0x2f1e34(0x1f5)](_0x582556))==null?{'left':_0x5f13f3[_0x2f1e34(0x207)],'top':_0x5f13f3[_0x2f1e34(0x17c)],'width':_0x5f13f3[_0x2f1e34(0x2b4)],'height':_0x5f13f3[_0x2f1e34(0x12b)]}:_0x193025;}};In=Y([J(0x1,_0x12dbe6(Q)),J(0x2,_0x12dbe6(_0x46b0bc))],In);const Ln='collab-text-anchor-';var Rn=class{constructor(_0x56fb93,_0x21e820,_0xad1a12,_0x42b675){const _0x169d0a=_0x1bdaba;this[_0x169d0a(0x269)]=_0x56fb93,this[_0x169d0a(0x237)]=_0x21e820,this['_docSkeleton']=_0xad1a12,this[_0x169d0a(0xfe)]=_0x42b675,q(this,_0x169d0a(0x2dd),[]),q(this,_0x169d0a(0x22b),null),q(this,'_textBubble',null),q(this,_0x169d0a(0x20a),null),q(this,'_hideTimer',null),q(this,_0x169d0a(0x244),null),this[_0x169d0a(0x1db)]();}set[_0x1bdaba(0x32d)](_0x197aac){const _0x5d4c38=_0x1bdaba;_0x197aac?(this[_0x5d4c38(0x20a)]&&this[_0x5d4c38(0x20a)][_0x5d4c38(0x1fe)](),this['_textBubble']&&this['_textBubble'][_0x5d4c38(0x197)]()):(this[_0x5d4c38(0x20a)]&&this['_anchorDot'][_0x5d4c38(0x197)](),this['_textBubble']&&this['_textBubble'][_0x5d4c38(0x1fe)]());}[_0x1bdaba(0x327)](){const _0x4e31b7=_0x1bdaba;for(let _0xe982c4 of this[_0x4e31b7(0x2dd)])_0xe982c4[_0x4e31b7(0x327)]();this[_0x4e31b7(0x2c6)]&&this[_0x4e31b7(0x2c6)][_0x4e31b7(0x327)](),this[_0x4e31b7(0x20a)]&&this[_0x4e31b7(0x20a)][_0x4e31b7(0x327)](),this['_anchor']&&this[_0x4e31b7(0x22b)][_0x4e31b7(0x327)](),this[_0x4e31b7(0x244)]&&this[_0x4e31b7(0x244)]();}['_render'](){const _0x4cbe41=_0x1bdaba;let {_docSkeleton:_0x4f9ab5,_document:_0x216540}=this,{color:_0x415828,name:_0x169d8a,ranges:_0x3419f7}=this[_0x4cbe41(0x269)],_0x41c9a8=_0x216540[_0x4cbe41(0x2f9)](),{docsLeft:_0x28d58f,docsTop:_0x3caf13}=_0x41c9a8,_0x4082cb=new _0x4a6bc2(_0x41c9a8,_0x4f9ab5);for(let {startOffset:_0x5e3198,endOffset:_0x31c2d7,rangeType:_0x3958a2,segmentId:_0x16bd9b,segmentPage:_0x411a73,collapsed:_0x510347,isActive:_0x50ed1b}of _0x3419f7){let _0x110425=_0x4f9ab5[_0x4cbe41(0x34f)](_0x5e3198,!0x0,_0x16bd9b,_0x411a73),_0x570e9c=_0x4f9ab5[_0x4cbe41(0x34f)](_0x31c2d7,!0x0,_0x16bd9b,_0x411a73);if(_0x570e9c==null&&(_0x570e9c=_0x4f9ab5[_0x4cbe41(0x34f)](_0x31c2d7-0x1,!0x1,_0x16bd9b,_0x411a73)),_0x50ed1b){let {contentBoxPointGroup:_0x1bcbc5}=_0x4082cb['getRangePointData'](_0x570e9c,_0x570e9c);if(_0x1bcbc5[_0x4cbe41(0x212)]===0x0)continue;this[_0x4cbe41(0x147)](_0x415828,_0x1bcbc5,_0x28d58f,_0x3caf13,_0x169d8a),this[_0x4cbe41(0x244)]=this[_0x4cbe41(0x305)]();}if(_0x110425&&_0x570e9c){if(_0x3958a2===_0x4b3ddb[_0x4cbe41(0x2ea)]){var _0xf7a875;let {pointGroup:_0x35b898}=(_0xf7a875=new _0x309ca6(_0x41c9a8,_0x4f9ab5)[_0x4cbe41(0x114)](_0x110425,_0x570e9c))==null?{}:_0xf7a875;if(_0x35b898==null||_0x35b898[_0x4cbe41(0x212)]===0x0)continue;this[_0x4cbe41(0x2d2)](_0x415828,_0x35b898,_0x28d58f,_0x3caf13);}else{if(!_0x510347){let {borderBoxPointGroup:_0x2d68}=_0x4082cb['getRangePointData'](_0x110425,_0x570e9c);if(_0x2d68['length']===0x0)continue;this[_0x4cbe41(0x2b2)](_0x415828,_0x2d68,_0x28d58f,_0x3caf13);}}}}}[_0x1bdaba(0x147)](_0x1878ad,_0x52fea3,_0x1b8b63,_0x35151a,_0x50abfa){const _0x134565=_0x1bdaba;let {left:_0x1e3a20,top:_0x587954,height:_0x12fbd4}=this[_0x134565(0x168)](_0x52fea3),_0x8404a9=1.5/this[_0x134565(0xde)](),_0x4b2531=new _0x51c330(Ln+_0x2d364b(0x6),{'left':_0x1e3a20+_0x1b8b63-_0x8404a9,'top':_0x587954+_0x35151a,'height':_0x12fbd4,'width':1.5,'fill':_0x1878ad||_0x18a253(_0x1d0a65[_0x134565(0x1aa)],0x0),'strokeWidth':_0x8404a9,'stroke':_0x134565(0x23a),'evented':!0x0});this[_0x134565(0x22b)]=_0x4b2531,this['_scene'][_0x134565(0x30a)](_0x4b2531,_0x291ce9);let _0x4b803a=new _0x51c330(Ln+_0x2d364b(0x6),{'left':_0x1e3a20+_0x1b8b63-_0x8404a9,'top':_0x587954+_0x35151a-0x4/0x2,'height':0x4,'width':0x4,'fill':_0x1878ad||_0x18a253(_0x1d0a65['black'],0x0),'strokeWidth':0x0,'stroke':_0x1878ad||_0x18a253(_0x1d0a65[_0x134565(0x1aa)],0x0),'evented':!0x1});this[_0x134565(0x20a)]=_0x4b803a,this[_0x134565(0x237)][_0x134565(0x30a)](_0x4b803a,_0x291ce9);let _0x4e4ced=new Sn(Ln+_0x2d364b(0x6),{'left':_0x1e3a20+_0x1b8b63-_0x8404a9,'top':_0x587954+_0x35151a-0x14,'text':_0x50abfa,'color':_0x1878ad});this[_0x134565(0x2c6)]=_0x4e4ced,this[_0x134565(0x237)][_0x134565(0x30a)](_0x4e4ced,_0x291ce9),this[_0x134565(0x32d)]=!0x1;}[_0x1bdaba(0x305)](){const _0x4a5c32=_0x1bdaba;let _0x42591b=this['_anchor'][_0x4a5c32(0x2e7)][_0x4a5c32(0x2de)](()=>{this['_hover']=!0x0;}),_0x1824ee=this[_0x4a5c32(0x22b)][_0x4a5c32(0x352)][_0x4a5c32(0x2de)](()=>{const _0x318daa=_0x4a5c32;this[_0x318daa(0x283)]&&clearTimeout(this[_0x318daa(0x283)]),this[_0x318daa(0x283)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x5a2ae9=_0x4a5c32;_0x42591b['unsubscribe'](),_0x1824ee[_0x5a2ae9(0x257)]();};}[_0x1bdaba(0x2b2)](_0x908e4a,_0xda5d3,_0x42daad,_0x5b0423){const _0x39ed0e=_0x1bdaba;let _0x3d41ec=0.2,_0x112973=new _0x4aa65b(_0x908e4a)[_0x39ed0e(0x24d)](_0x3d41ec)[_0x39ed0e(0x1ca)](),_0x113274=new _0x42be70(_0x39ed0e(0x25d)+_0x2d364b(0x6),{'pointsGroup':_0xda5d3,'fill':_0x112973||_0x18a253(_0x1d0a65[_0x39ed0e(0x1aa)],_0x3d41ec),'left':_0x42daad,'top':_0x5b0423,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x39ed0e(0x2dd)][_0x39ed0e(0x179)](_0x113274),this[_0x39ed0e(0x237)][_0x39ed0e(0x30a)](_0x113274,_0x291ce9);}['_drawRectRange'](_0x4cb1f6,_0x367d6c,_0x2d98c3,_0x49943d){const _0x3c3c0f=_0x1bdaba;let _0x4ada7c=0.2,_0x38a987=new _0x4aa65b(_0x4cb1f6)[_0x3c3c0f(0x24d)](_0x4ada7c)[_0x3c3c0f(0x1ca)](),_0x346b45=new _0x42be70(_0x3c3c0f(0x203)+_0x2d364b(0x6),{'pointsGroup':_0x367d6c,'fill':_0x38a987||_0x18a253(_0x1d0a65[_0x3c3c0f(0x1aa)],_0x4ada7c),'left':_0x2d98c3,'top':_0x49943d,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3c3c0f(0x2dd)][_0x3c3c0f(0x179)](_0x346b45),this[_0x3c3c0f(0x237)][_0x3c3c0f(0x30a)](_0x346b45,_0x291ce9);}[_0x1bdaba(0x168)](_0x5926b2){let _0x1a6158=_0x5926b2[0x0],_0x4a094f=_0x1a6158[0x0],_0xad83d8=_0x1a6158[0x2],{x:_0x5da08d,y:_0x13df96}=_0x4a094f,{x:_0x229d1a,y:_0x542664}=_0xad83d8;return{'left':_0x5da08d,'top':_0x13df96,'width':_0x229d1a-_0x5da08d,'height':_0x542664-_0x13df96};}[_0x1bdaba(0xde)](){const _0x5a26f8=_0x1bdaba;let {scaleX:_0x23a4b9,scaleY:_0x4f2ed8}=this['_scene'][_0x5a26f8(0xef)]();return Math['max'](_0x23a4b9,_0x4f2ed8);}};let zn=class extends _0x6ec97f{constructor(_0x57287d,_0x15c023,_0x1707dd,_0x400f73,_0x2d22ab){const _0x21b0f1=_0x1bdaba;super(),this['_context']=_0x57287d,this[_0x21b0f1(0x234)]=_0x15c023,this[_0x21b0f1(0x21a)]=_0x1707dd,this[_0x21b0f1(0x2ef)]=_0x400f73,this[_0x21b0f1(0x324)]=_0x2d22ab,q(this,_0x21b0f1(0x124),[]),q(this,_0x21b0f1(0x10a),[]),this[_0x21b0f1(0x311)]();}['_init'](){const _0x23be41=_0x1bdaba;let _0x3b82f1=this[_0x23be41(0x309)]['unitId'],_0x1445de=this[_0x23be41(0x234)];this[_0x23be41(0x225)](_0x2f43fa([this[_0x23be41(0x21a)][_0x23be41(0x1a7)](_0x3b82f1),this[_0x23be41(0x324)][_0x23be41(0x169)]])[_0x23be41(0x241)](_0x2fb5a3(([_0x877377,_0x37bab1])=>({'skeleton':_0x1445de[_0x23be41(0x280)](),'cursors':[..._0x877377[_0x23be41(0xd5)]()][_0x23be41(0x27b)](_0x3b0ca4=>({..._0x3b0ca4,'color':this[_0x23be41(0x324)]['getColorFromTheme'](_0x3b0ca4[_0x23be41(0x29c)])}))})))[_0x23be41(0x2f1)](_0x41a09c=>{const _0x4ad3b8=_0x23be41;if(this[_0x4ad3b8(0x304)](),_0x41a09c){let {skeleton:_0x2dd471,cursors:_0x3378de}=_0x41a09c;this['_updateCollabCursors'](_0x2dd471,_0x3378de);}})),this[_0x23be41(0x21c)](),this['_initCommandExecutedListener']();}['_updateCollabCursors'](_0x3ba853,_0x4127a4){const _0x4b0af4=_0x1bdaba;let {scene:_0x38895e,mainComponent:_0x298507}=this['_context'],_0x51e6be=_0x4127a4[_0x4b0af4(0x2e8)](_0x200daf=>new Rn(_0x200daf,_0x38895e,_0x3ba853,_0x298507));this[_0x4b0af4(0x124)]=_0x51e6be,this[_0x4b0af4(0x10a)]=_0x4127a4;}[_0x1bdaba(0x208)](){const _0x517b96=_0x1bdaba;this[_0x517b96(0x304)]();let {scene:_0x5280f4,mainComponent:_0x28c46a}=this[_0x517b96(0x309)],_0x8f836b=this[_0x517b96(0x234)]['getSkeleton'](),_0x242e53=this[_0x517b96(0x10a)][_0x517b96(0x2e8)](_0x50eff7=>new Rn(_0x50eff7,_0x5280f4,_0x8f836b,_0x28c46a));this[_0x517b96(0x124)]=_0x242e53;}[_0x1bdaba(0x304)](){const _0x4d5c4e=_0x1bdaba;this['_cursorShapes']['forEach'](_0x304a34=>_0x304a34[_0x4d5c4e(0x327)]()),this['_cursorShapes']=[];}[_0x1bdaba(0x2d6)](){const _0x28ea5f=_0x1bdaba;let _0x5028ea=[_0xf73668['id']];this['disposeWithMe'](this[_0x28ea5f(0x2ef)]['onCommandExecuted'](_0x844bec=>{const _0x5ba638=_0x28ea5f;_0x5028ea['includes'](_0x844bec['id'])&&_0x844bec[_0x5ba638(0x1ac)][_0x5ba638(0x219)]===this['_context'][_0x5ba638(0x219)]&&this[_0x5ba638(0x208)]();}));}[_0x1bdaba(0x21c)](){const _0x3ddeda=_0x1bdaba;this['disposeWithMe'](_0xa32da7(this[_0x3ddeda(0x309)]['engine'][_0x3ddeda(0x2fa)])[_0x3ddeda(0x241)](_0x43f8bd(_0x50d218=>_0x50d218[_0x3ddeda(0x186)]===_0x18731f[_0x3ddeda(0xcc)]),_0x48f061(0x10))[_0x3ddeda(0x2f1)](()=>{const _0x8219c4=_0x3ddeda;this[_0x8219c4(0x208)]();}));}};zn=Y([J(0x1,_0x12dbe6(_0x8d0e53)),J(0x2,_0x12dbe6(Q)),J(0x3,_0x52ed54),J(0x4,_0x12dbe6(_0x46b0bc))],zn);var Bn=class extends _0x5dbb19{constructor(_0x2e0e70,_0x1f6229){const _0x3c6093=_0x1bdaba;if(super(_0x2e0e70,_0x1f6229),q(this,_0x3c6093(0x2c9),void 0x0),q(this,_0x3c6093(0x2b7),!0x1),q(this,_0x3c6093(0x1e6),void 0x0),q(this,'_name',''),q(this,_0x3c6093(0x238),_0x3c6093(0x17c)),q(this,_0x3c6093(0x1e0),void 0x0),q(this,_0x3c6093(0x359),void 0x0),q(this,_0x3c6093(0x1eb),void 0x0),q(this,'_highlightSecond',0x4),q(this,'_blinkTimer',void 0x0),q(this,_0x3c6093(0x30d),void 0x0),q(this,_0x3c6093(0x249),!0x0),q(this,'_offsetY',0x0),q(this,_0x3c6093(0xfc),_0x3c6093(0x230)),_0x1f6229){var _0x31ed89;if(this[_0x3c6093(0xdf)](_0x1f6229),_0x1f6229['highlight']&&((_0x31ed89=_0x1f6229[_0x3c6093(0x129)])==null?this[_0x3c6093(0x2a4)]:_0x31ed89)){var _0x19fa84;this[_0x3c6093(0xd3)]((_0x19fa84=_0x1f6229['highlightSecond'])==null?this[_0x3c6093(0x2a4)]:_0x19fa84);}}this[_0x3c6093(0x2e7)][_0x3c6093(0x2de)](()=>this[_0x3c6093(0xdf)]({'hovered':!0x0})),this[_0x3c6093(0x352)][_0x3c6093(0x2de)](()=>this[_0x3c6093(0xdf)]({'hovered':!0x1}));}[_0x1bdaba(0x20e)](_0x1e72a6){const _0xb92a67=_0x1bdaba;this[_0xb92a67(0x2e4)]=_0x1e72a6;}[_0x1bdaba(0xdf)](_0x3ba1cd){const _0x365ee8=_0x1bdaba;var _0x19d4fd,_0x2cdbd0,_0x2b8380,_0x1fa23c,_0x40b221,_0x5419ad,_0x2a55e5,_0x5c217e;this[_0x365ee8(0x2c9)]=(_0x19d4fd=_0x3ba1cd[_0x365ee8(0x29c)])==null?this[_0x365ee8(0x2c9)]:_0x19d4fd,this[_0x365ee8(0x2b7)]=(_0x2cdbd0=_0x3ba1cd[_0x365ee8(0x2f6)])==null?this[_0x365ee8(0x2b7)]:_0x2cdbd0,this[_0x365ee8(0x1e6)]=(_0x2b8380=_0x3ba1cd[_0x365ee8(0x1bc)])==null?this['_range']:_0x2b8380,this[_0x365ee8(0x12f)]=(_0x1fa23c=_0x3ba1cd['name'])==null?this[_0x365ee8(0x12f)]:_0x1fa23c,this['_labelPosition']=(_0x40b221=_0x3ba1cd['labelPosition'])==null?this['_labelPosition']:_0x40b221,this[_0x365ee8(0x1e0)]=(_0x5419ad=_0x3ba1cd['backgroundColor'])==null?this[_0x365ee8(0x1e0)]:_0x5419ad,this['_showText']=(_0x2a55e5=_0x3ba1cd[_0x365ee8(0x1cc)])==null?this[_0x365ee8(0x359)]:_0x2a55e5,this[_0x365ee8(0xfc)]=(_0x5c217e=_0x3ba1cd['labelHorizontalPosition'])==null?this['_labelHorizontalPosition']:_0x5c217e,_0x3ba1cd[_0x365ee8(0x129)]!==void 0x0&&(this[_0x365ee8(0x2a4)]=_0x3ba1cd[_0x365ee8(0x129)]),_0x3ba1cd[_0x365ee8(0x106)]!==void 0x0&&(this[_0x365ee8(0x1eb)]=_0x3ba1cd['highlight']),_0x3ba1cd[_0x365ee8(0x1bf)]!==void 0x0&&(this[_0x365ee8(0x2e4)]=_0x3ba1cd[_0x365ee8(0x1bf)]),this['transformByState']({'width':_0x3ba1cd[_0x365ee8(0x2b4)],'height':_0x3ba1cd[_0x365ee8(0x12b)]});}['onMouseMove'](_0x526ce0){const _0x525ce4=_0x1bdaba;let {row:_0x2981e1,column:_0x48c6d9}=_0x526ce0;if(_0x2981e1>=this['_range']['startRow']&&_0x2981e1<=this[_0x525ce4(0x1e6)][_0x525ce4(0x2eb)]&&_0x48c6d9>=this[_0x525ce4(0x1e6)][_0x525ce4(0xf3)]&&_0x48c6d9<=this['_range'][_0x525ce4(0x291)]){this[_0x525ce4(0xdf)]({'hovered':!0x0});return;}this[_0x525ce4(0xdf)]({'hovered':!0x1});}['_startBlinking'](_0x56ab23){const _0x9a0133=_0x1bdaba;this['_stopBlinking'](),this[_0x9a0133(0x249)]=!0x0,this['_blinkIntervalTimer']=window['setInterval'](()=>{const _0x3569f1=_0x9a0133;this['_isBlinkVisible']=!this['_isBlinkVisible'],this[_0x3569f1(0x156)](!0x0);},0x1f4),this[_0x9a0133(0x1c9)]=window[_0x9a0133(0x215)](()=>{const _0x391cb8=_0x9a0133;this[_0x391cb8(0x16e)](),this['_isBlinkVisible']=!0x0,this['makeDirty'](!0x0);},_0x56ab23*0x3e8);}[_0x1bdaba(0x16e)](){const _0x577904=_0x1bdaba;this[_0x577904(0x30d)]&&(window['clearInterval'](this[_0x577904(0x30d)]),this[_0x577904(0x30d)]=void 0x0),this[_0x577904(0x1c9)]&&(window[_0x577904(0x1d7)](this[_0x577904(0x1c9)]),this[_0x577904(0x1c9)]=void 0x0);}[_0x1bdaba(0x205)](_0x340dbd){return!0x1;}[_0x1bdaba(0x327)](){const _0x22a9d5=_0x1bdaba;this['_stopBlinking'](),super[_0x22a9d5(0x327)]();}[_0x1bdaba(0x295)](_0x1d6464){const _0x2e0c5b=_0x1bdaba;let _0x43b6e1=this[_0x2e0c5b(0x2c9)],_0x25f33f=this[_0x2e0c5b(0x1e0)];if(this['_highlight']&&!this[_0x2e0c5b(0x249)]&&(_0x43b6e1=this[_0x2e0c5b(0x2be)](this['_color']),_0x25f33f=this[_0x2e0c5b(0x1e0)]?this[_0x2e0c5b(0x2be)](this[_0x2e0c5b(0x1e0)]):void 0x0),_0x51c330[_0x2e0c5b(0x263)](_0x1d6464,{'width':this[_0x2e0c5b(0x2b4)],'height':this[_0x2e0c5b(0x12b)],'strokeWidth':this[_0x2e0c5b(0x329)]||1.5,'stroke':_0x43b6e1,'evented':!0x1,'fill':_0x25f33f}),this[_0x2e0c5b(0x2b7)]||this['_showText']){var _0x3e62aa;_0x1d6464[_0x2e0c5b(0x154)]();let _0x231708=this['_labelHorizontalPosition']===_0x2e0c5b(0x207)?-bn(_0x1d6464,this[_0x2e0c5b(0x12f)]):this[_0x2e0c5b(0x2b4)];_0x1d6464[_0x2e0c5b(0x35d)](0x1,0x0,0x0,0x1,_0x231708,(this[_0x2e0c5b(0x238)]===_0x2e0c5b(0x262)?0x0:-0x14)+((_0x3e62aa=this[_0x2e0c5b(0x2e4)])==null?0x0:_0x3e62aa)),Sn[_0x2e0c5b(0x263)](_0x1d6464,{'text':this['_name'],'color':_0x43b6e1}),_0x1d6464[_0x2e0c5b(0x134)]();}}[_0x1bdaba(0x2be)](_0x2cbdb2){const _0x46c320=_0x1bdaba;return _0x2cbdb2[_0x46c320(0x2ab)]('#')?_0x46c320(0x32e)+Number[_0x46c320(0x340)](_0x2cbdb2[_0x46c320(0x2ad)](0x1,0x3),0x10)+',\x20'+Number[_0x46c320(0x340)](_0x2cbdb2['slice'](0x3,0x5),0x10)+',\x20'+Number[_0x46c320(0x340)](_0x2cbdb2[_0x46c320(0x2ad)](0x5,0x7),0x10)+_0x46c320(0xd7):_0x2cbdb2[_0x46c320(0x2ab)](_0x46c320(0x1c7))?_0x2cbdb2[_0x46c320(0x22e)](/[\d.]+\)$/g,_0x46c320(0x224)):_0x2cbdb2[_0x46c320(0x2ab)]('rgb')?_0x2cbdb2[_0x46c320(0x22e)](_0x46c320(0x21e),_0x46c320(0x1c7))[_0x46c320(0x22e)](')',_0x46c320(0xd7)):_0x2cbdb2;}};let Vn=class extends _0x6ec97f{constructor(_0x1ae849,_0x125a6e,_0x11fb1c,_0x40b272){const _0x34d92d=_0x1bdaba;super(),this['_context']=_0x1ae849,this['_sheetSkeletonManagerService']=_0x125a6e,this['_collabCursorController']=_0x11fb1c,this[_0x34d92d(0x324)]=_0x40b272,q(this,_0x34d92d(0x10a),new Set()),q(this,_0x34d92d(0x1e1),null),q(this,_0x34d92d(0x13e),null),this[_0x34d92d(0x311)]();}[_0x1bdaba(0x311)](){const _0x50265e=_0x1bdaba;this[_0x50265e(0x18a)][_0x50265e(0x17f)][_0x50265e(0x241)](_0x1bea9f(this[_0x50265e(0x29f)]),_0x262021(_0x1c891d=>{const _0xb258ed=_0x50265e;if(_0x1c891d){let _0x236c7f=_0x1c891d[_0xb258ed(0x2e0)];return _0x2f43fa(this[_0xb258ed(0x21a)][_0xb258ed(0x1a7)](this[_0xb258ed(0x309)]['unitId']),this[_0xb258ed(0x324)]['currentTheme$'])[_0xb258ed(0x241)](_0x2fb5a3(([_0x163217,_0x26ad11])=>{const _0x8a37a8=_0xb258ed;let _0x332b07=new Map();return _0x163217[_0x8a37a8(0x139)]((_0x228a3e,_0x10afc8)=>{const _0x9727d4=_0x8a37a8;if(_0x228a3e[_0x9727d4(0x2ce)]===_0x236c7f){let _0x13b524={..._0x228a3e};_0x13b524[_0x9727d4(0x29c)]=this[_0x9727d4(0x324)]['getColorFromTheme'](_0x228a3e[_0x9727d4(0x29c)]),_0x332b07[_0x9727d4(0x19d)](_0x10afc8,_0x13b524);}}),{'skeleton':_0x1c891d,'cursors':_0x332b07};}));}return _0x432c84({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x464e10,cursors:_0x4d4ef4})=>{const _0xe5f27b=_0x50265e;this[_0xe5f27b(0x304)](),_0x464e10&&this['_updateCollabCursors'](_0x464e10,_0x4d4ef4);}),this[_0x50265e(0x225)](this[_0x50265e(0x18a)][_0x50265e(0x17f)][_0x50265e(0x241)](_0x1bea9f(this['dispose$']))['subscribe'](_0x39892a=>{const _0x58ba79=_0x50265e;var _0x5344a9;if(_0x39892a==null)return;(_0x5344a9=this[_0x58ba79(0x13e)])==null||_0x5344a9[_0x58ba79(0x257)](),this[_0x58ba79(0x13e)]=null;let {skeleton:_0x4c8304}=_0x39892a,{scene:_0x5d07e}=this['_context'];this['_pointerMoveDisposable']=_0x5d07e[_0x58ba79(0x113)][_0x58ba79(0x2de)](_0x574451(_0x4da840=>{const _0x4ffe49=_0x58ba79;var _0x5b14b3,_0x583aa3;let {offsetX:_0x5622f9,offsetY:_0x3ee14a}=_0x4da840,{x:_0x4aa19c,y:_0x471739}=_0x5d07e['getRelativeToViewportCoord'](_0x4cb134[_0x4ffe49(0x18c)]([_0x5622f9,_0x3ee14a])),{scaleX:_0x45fa19,scaleY:_0x3b1810}=_0x5d07e[_0x4ffe49(0xef)](),_0x4e8f63=_0x5d07e[_0x4ffe49(0x2a3)](_0x2cd61d[_0x4ffe49(0x2bb)]),_0xaad586=_0x5d07e['getVpScrollXYInfoByPosToVp'](_0x4cb134[_0x4ffe49(0x18c)]([_0x4aa19c,_0x471739]),_0x4e8f63),_0x15a5a7=_0x4c8304[_0x4ffe49(0x149)](_0x5622f9,_0x3ee14a,_0x45fa19,_0x3b1810,_0xaad586);((_0x5b14b3=this[_0x4ffe49(0x1e1)])==null?void 0x0:_0x5b14b3['column'])===_0x15a5a7[_0x4ffe49(0x281)]&&((_0x583aa3=this['_lastPointer'])==null?void 0x0:_0x583aa3[_0x4ffe49(0x157)])===_0x15a5a7[_0x4ffe49(0x157)]||this[_0x4ffe49(0x10a)][_0x4ffe49(0x139)](_0x533d8a=>{const _0x20fa1e=_0x4ffe49;_0x533d8a[_0x20fa1e(0x1fa)](_0x15a5a7);});},0x64));})),this[_0x50265e(0x225)](_0x4627b6(()=>{const _0xc167b3=_0x50265e;var _0x4d8f6d;(_0x4d8f6d=this[_0xc167b3(0x13e)])==null||_0x4d8f6d[_0xc167b3(0x257)](),this[_0xc167b3(0x13e)]=null;}));}[_0x1bdaba(0x2ff)](_0x557b2d,_0x2e6efd){const _0x542a3e=_0x1bdaba;let _0x4e3e86=this[_0x542a3e(0x18a)][_0x542a3e(0x248)]();if(!_0x4e3e86)return;let _0xe028f6=this[_0x542a3e(0x35a)]();if(!_0xe028f6)return;this[_0x542a3e(0x10a)][_0x542a3e(0x139)](_0x9871b=>{const _0x4016a4=_0x542a3e;_0x9871b[_0x4016a4(0x156)]();});let {scene:_0x16408f}=_0xe028f6,_0x587124=Hn(Array[_0x542a3e(0x15d)](_0x2e6efd['values']()))[_0x542a3e(0x2e8)](_0x231b8b=>{const _0xd98985=_0x542a3e;let {color:_0x3dbc18,range:_0x35c057,name:_0x53effe,selection:_0x48fa48,sheetID:_0x526cd3}=_0x231b8b,{startColumn:_0x3e3303,startRow:_0x6454f2,endColumn:_0x24c0e4,endRow:_0x30b04e}=_0x35c057,_0x507b18=_0x2c34a1(_0x6454f2,_0x3e3303,_0x16408f,_0x4e3e86),_0x46581f=_0x2c34a1(_0x30b04e,_0x24c0e4,_0x16408f,_0x4e3e86),{columnHeaderHeightAndMarginTop:_0x4a531f}=_0x4e3e86,{startX:_0xf2cbc5,startY:_0x16742a}=_0x507b18,{endX:_0x4a4898,endY:_0x14376f}=_0x46581f,_0x201116=_0x4a4898-_0xf2cbc5,_0x33e346=_0x14376f-_0x16742a;return new Bn(_0x53effe,{'labelPosition':_0x16742a-_0x4a531f>=0x14?_0xd98985(0x17c):_0xd98985(0x262),'sheetID':_0x526cd3,'range':_0x35c057,'color':_0x3dbc18,'name':_0x53effe,'selection':_0x48fa48,'left':_0xf2cbc5,'top':_0x16742a,'width':_0x201116,'height':_0x33e346,'evented':!0x1,'zIndex':0x1389});});_0x16408f[_0x542a3e(0x1b2)](_0x587124,0x1),this[_0x542a3e(0x10a)]=new Set(_0x587124);}[_0x1bdaba(0x304)](){const _0x58fbdb=_0x1bdaba;var _0xdcf5f6;(_0xdcf5f6=this[_0x58fbdb(0x10a)])==null||_0xdcf5f6[_0x58fbdb(0x139)](_0x34fee5=>_0x34fee5[_0x58fbdb(0x327)]());}['_getSheetObject'](){const _0x39813c=_0x1bdaba;return _0x1f8950(this[_0x39813c(0x309)][_0x39813c(0x227)],this['_context']);}};Vn=Y([J(0x1,_0x12dbe6(_0x5e3fa8)),J(0x2,_0x12dbe6(Q)),J(0x3,_0x12dbe6(_0x46b0bc))],Vn);function Hn(_0x56873d){const _0xe659f9=_0x1bdaba;let _0x12c2e7=new Map();return _0x56873d[_0xe659f9(0x139)](_0x4d3b81=>{const _0x362b74=_0xe659f9;if(_0x12c2e7['has'](_0x4d3b81['selection'])){let _0x5bfb14=_0x12c2e7[_0x362b74(0x307)](_0x4d3b81[_0x362b74(0x236)]);_0x5bfb14[_0x362b74(0x160)]+=',\x20'+_0x4d3b81[_0x362b74(0x160)];}else _0x12c2e7['set'](_0x4d3b81[_0x362b74(0x236)],_0x4d3b81);}),Array[_0xe659f9(0x15d)](_0x12c2e7[_0xe659f9(0xd5)]());}let Un=class extends _0x6ec97f{constructor(_0x123757,_0x519de9,_0x596b49){const _0x2fa432=_0x1bdaba;super(),this[_0x2fa432(0x309)]=_0x123757,this[_0x2fa432(0x21a)]=_0x519de9,this[_0x2fa432(0x324)]=_0x596b49,q(this,_0x2fa432(0x10a),new Set()),q(this,_0x2fa432(0x284),!0x1),q(this,_0x2fa432(0x322),!0x1),q(this,_0x2fa432(0x2e1),new Map()),this[_0x2fa432(0x311)]();}[_0x1bdaba(0x327)](){const _0x2d86c3=_0x1bdaba;this[_0x2d86c3(0x304)](),super[_0x2d86c3(0x327)]();}[_0x1bdaba(0x311)](){const _0x313929=_0x1bdaba;let _0x3ed5b8=this[_0x313929(0x309)][_0x313929(0x227)][_0x313929(0x166)][_0x313929(0x2a1)],_0x4edff4=this[_0x313929(0x21a)]['getCollabCursors$'](this[_0x313929(0x309)]['unitId']);this['disposeWithMe'](_0x4627b6(_0x2f43fa([_0x4edff4,_0x3ed5b8,this[_0x313929(0x324)]['currentTheme$']])[_0x313929(0x241)](_0x1880d0(this[_0x313929(0x29f)]))[_0x313929(0x2f1)](([_0x53b928,_0x3976a9])=>{const _0x412e9d=_0x313929;let _0x5bb939=new Map();_0x53b928[_0x412e9d(0x139)]((_0x3a24fc,_0x481b2e)=>{const _0x259b3e=_0x412e9d;_0x3a24fc[_0x259b3e(0x30e)]===_0x3976a9&&_0x5bb939[_0x259b3e(0x19d)](_0x481b2e,{..._0x3a24fc,'color':this[_0x259b3e(0x324)]['getColorFromTheme'](_0x3a24fc[_0x259b3e(0x29c)])});}),this['_latestCursors']=_0x5bb939,this[_0x412e9d(0xe8)]();})));let _0x4b7203=this[_0x313929(0x309)]['scene'];this['disposeWithMe'](_0x4627b6(_0x4b7203[_0x313929(0x286)]['pipe'](_0x1880d0(this[_0x313929(0x29f)]))['subscribe'](()=>{const _0x594ac0=_0x313929;this[_0x594ac0(0x322)]||this[_0x594ac0(0xe8)]();})));}[_0x1bdaba(0xe8)](){const _0x1cd5ae=_0x1bdaba;this['_renderScheduled']||(this[_0x1cd5ae(0x284)]=!0x0,Promise[_0x1cd5ae(0x2a8)]()[_0x1cd5ae(0x111)](()=>{const _0x37a37f=_0x1cd5ae;this[_0x37a37f(0x284)]=!0x1,this[_0x37a37f(0x1db)]();}));}['_render'](){const _0x313871=_0x1bdaba;var _0x2a28d8;this[_0x313871(0x304)]();let _0x36f5ca=(_0x2a28d8=this['_context'][_0x313871(0x227)][_0x313871(0x166)][_0x313871(0x1f4)]())==null?void 0x0:_0x2a28d8[_0x313871(0x116)]();if(!_0x36f5ca)return;let _0x5186b6=[];if(this[_0x313871(0x2e1)][_0x313871(0x139)]((_0x1c9b30,_0x4f90d1)=>{const _0x485058=_0x313871;_0x1c9b30[_0x485058(0x30e)]===_0x36f5ca&&_0x1c9b30[_0x485058(0x210)]['forEach'](_0x5c06a8=>{const _0x3bce3b=_0x485058;let _0x242bf8=_0x5ebcd8(_0x1c9b30['unitId'],_0x1c9b30['subUnitId'],_0x5c06a8),_0x585c93=this[_0x3bce3b(0x1d1)](_0x242bf8);if(!_0x585c93)return;let _0x2e5ce2=this[_0x3bce3b(0x29d)](_0x585c93);_0x5186b6[_0x3bce3b(0x179)](new wn(_0x3bce3b(0x217)+_0x4f90d1+'-'+_0x5c06a8,{..._0x1c9b30,'left':_0x2e5ce2[_0x3bce3b(0x207)],'top':_0x2e5ce2[_0x3bce3b(0x17c)],'width':_0x2e5ce2[_0x3bce3b(0x2b4)],'height':_0x2e5ce2[_0x3bce3b(0x12b)],'angle':_0x585c93[_0x3bce3b(0x135)],'evented':!0x1,'zIndex':Cn}));});}),_0x5186b6[_0x313871(0x212)]===0x0){this[_0x313871(0x309)][_0x313871(0x2e2)]['makeDirty'](!0x0);return;}this['_isApplyingOverlays']=!0x0,this['_context'][_0x313871(0x2e2)][_0x313871(0x1b2)](_0x5186b6,Cn),this[_0x313871(0x322)]=!0x1,this['_cursors']=new Set(_0x5186b6),this[_0x313871(0x309)][_0x313871(0x2e2)][_0x313871(0x156)](!0x0);}[_0x1bdaba(0x304)](){const _0xcb2545=_0x1bdaba;let _0x12ddb5=Array[_0xcb2545(0x15d)](this[_0xcb2545(0x10a)]);if(_0x12ddb5[_0xcb2545(0x212)]===0x0)return;let _0x4513ac=this[_0xcb2545(0x309)][_0xcb2545(0x2e2)];_0xcb2545(0x350)in _0x4513ac&&typeof _0x4513ac[_0xcb2545(0x350)]=='function'?_0x4513ac[_0xcb2545(0x350)](_0x12ddb5):_0x12ddb5[_0xcb2545(0x139)](_0x4dd578=>{const _0x3f8629=_0xcb2545;_0x3f8629(0x27e)in _0x4513ac&&typeof _0x4513ac[_0x3f8629(0x27e)]=='function'?_0x4513ac[_0x3f8629(0x27e)](_0x4dd578):_0x4dd578['dispose']();}),this[_0xcb2545(0x10a)][_0xcb2545(0x251)](),_0x4513ac['makeDirty'](!0x0);}[_0x1bdaba(0x1d1)](_0x1bd25b){const _0x17a513=_0x1bdaba;var _0x2a8f14,_0x166752,_0x432ac7;let _0x2a4bd7=this[_0x17a513(0x309)][_0x17a513(0x2e2)];return(_0x2a8f14=(_0x166752=(_0x432ac7=_0x2a4bd7['getObjectIncludeInGroup'])==null?void 0x0:_0x432ac7['call'](_0x2a4bd7,_0x1bd25b))==null?_0x2a4bd7[_0x17a513(0x33b)](_0x1bd25b):_0x166752)==null?null:_0x2a8f14;}['_getObjectBounds'](_0x5b4dda){const _0x4bf1fc=_0x1bdaba;var _0x23b32c,_0x352c8b;let _0x18ea0f=_0x5b4dda;return(_0x23b32c=(_0x352c8b=_0x18ea0f['getRealBound'])==null?void 0x0:_0x352c8b[_0x4bf1fc(0x1f5)](_0x18ea0f))==null?{'left':_0x5b4dda[_0x4bf1fc(0x207)],'top':_0x5b4dda[_0x4bf1fc(0x17c)],'width':_0x5b4dda[_0x4bf1fc(0x2b4)],'height':_0x5b4dda[_0x4bf1fc(0x12b)]}:_0x23b32c;}};Un=Y([J(0x1,_0x12dbe6(Q)),J(0x2,_0x12dbe6(_0x46b0bc))],Un);let Wn=class extends _0x3546e9{constructor(_0x299b6e,_0x41c42d,_0xdeeda9,_0x3fc11f,_0xcd9c6d,_0x37b2f8){const _0x4e9c7a=_0x1bdaba;super(),this[_0x4e9c7a(0x204)]=_0x299b6e,this[_0x4e9c7a(0x200)]=_0x41c42d,this[_0x4e9c7a(0x245)]=_0xdeeda9,this['_messageService']=_0x3fc11f,this[_0x4e9c7a(0x15e)]=_0xcd9c6d,this[_0x4e9c7a(0x193)]=_0x37b2f8,this[_0x4e9c7a(0x2b1)](),this['_initEvent']();}[_0x1bdaba(0x2b1)](){const _0x4dca61=_0x1bdaba;this[_0x4dca61(0x225)](this[_0x4dca61(0x204)][_0x4dca61(0xe1)](()=>{const _0x596ca4=_0x4dca61;if(this['_localCacheService']['saveTaskMap'][_0x596ca4(0x12c)])return this[_0x596ca4(0x193)]['t'](_0x596ca4(0x128));}));}[_0x1bdaba(0x313)](){const _0x59f854=_0x1bdaba;this[_0x59f854(0x225)](this['_collaborationUIEventService']['event$'][_0x59f854(0x2f1)](_0x50f059=>{const _0x2dd647=_0x59f854;_0x50f059['id']===_0x11028a['OTHER_CLIENT_EDITING']&&this[_0x2dd647(0x196)][_0x2dd647(0x197)]({'type':_0x238db3[_0x2dd647(0x133)],'content':this[_0x2dd647(0x193)]['t'](_0x2dd647(0x175))}),_0x50f059['id']===_0x11028a[_0x2dd647(0x2c7)]&&this[_0x2dd647(0x196)][_0x2dd647(0x197)]({'type':_0x238db3[_0x2dd647(0x133)],'content':this[_0x2dd647(0x193)]['t'](_0x2dd647(0x267))}),_0x50f059['id']===_0x11028a[_0x2dd647(0x26f)]&&this[_0x2dd647(0x15e)][_0x2dd647(0x197)]({'title':this[_0x2dd647(0x193)]['t']('collaboration-client-ui.permission.title'),'content':this['_localeService']['t'](_0x2dd647(0xea)),'type':_0x2dd647(0x316),'duration':0x0}),_0x50f059['id']===_0x11028a['CONFLICT']&&this[_0x2dd647(0x15e)][_0x2dd647(0x197)]({'title':this[_0x2dd647(0x193)]['t'](_0x2dd647(0x121)),'content':this[_0x2dd647(0x193)]['t']('collaboration-client-ui.conflict.content'),'type':_0x2dd647(0x316),'duration':0x0}),_0x50f059['id']===_0x11028a[_0x2dd647(0x1d0)]&&this[_0x2dd647(0x196)][_0x2dd647(0x197)]({'type':_0x238db3[_0x2dd647(0x133)],'content':this[_0x2dd647(0x193)]['t'](_0x50f059[_0x2dd647(0x1c0)]||'')}),_0x50f059['id']===_0x11028a[_0x2dd647(0x2d7)]&&this[_0x2dd647(0x196)][_0x2dd647(0x197)]({'type':_0x238db3[_0x2dd647(0x133)],'content':this[_0x2dd647(0x193)]['t'](_0x2dd647(0x180))}),_0x50f059['id']===_0x11028a[_0x2dd647(0x361)]&&this[_0x2dd647(0x196)][_0x2dd647(0x197)]({'type':_0x238db3['Error'],'content':this['_localeService']['t'](_0x2dd647(0x209))}),_0x50f059['id']===_0x11028a[_0x2dd647(0x143)]&&this[_0x2dd647(0x196)]['show']({'type':_0x238db3[_0x2dd647(0xd1)],'content':this[_0x2dd647(0x193)]['t'](_0x2dd647(0x303))});}));}};Wn=Y([J(0x0,_0x1afea9),J(0x1,_0x18a306),J(0x2,_0x12dbe6(_0x74c530)),J(0x3,_0x27f640),J(0x4,_0x51f131),J(0x5,_0x12dbe6(_0x35db9c))],Wn);function _0x5d65(){const _0x1fca60=['setItem','_toggleOnline','getCurrentSkeleton','_isBlinkVisible','text','_colorAssignService','#FFF','setAlpha','_onCursorUpdate','_docStateChangeManagerService','_handoffPreview','clear','ONLINE','USERS_LEAVE','2534750HqLtLl','2710130WAGzdY','updateOfflineData','unsubscribe','stage','_setFormulaLimitStatus','collaboration-client-ui.snapshotLoading.refresh','filter','polite','collab-text-range-','createInstance','bold\x2013px\x20Arial,\x20sans-serif','status$','1088695XNtXlZ','bottom','drawWith','_docTransformStateCacheService','getCellMatrix','toString','collaboration-client-ui.collaboration.closeRoom','transformIMECache','_cursor','_dataLoaderService','status','popstate','stringify','replaceDocRanges','PERMISSION_DENIED','univer-transition-all\x20univer-duration-200','strokeRect','_timeoutState$','message','OFFLINE','RemoveColCommandId','currentUsage','_removeClearOtherTimer','evenodd','getParam','getAllUnitsForType','flatMap','_scheduleClearOtherTimer','getRenderById','removeObject','entityInit$','getSkeleton','column','_docTransformSelectionsService','_hideTimer','_renderScheduled','event$','addObject$','_transformService','getColorFromTheme','_colorIndex','_ensureSubject','registerComponent','disableLocalCache','getCurrentUnitOfType','getSheetId','getCurrentTypeOfUnit$','_memberService','endColumn','_transformPreviousActiveRange','_memberID','getMemberID','_draw','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','href','_roomMembers$','_updateMessage','kind','asObservable','color','_getObjectBounds','_httpService','dispose$','undoState','activeSlideId$','3rAYRUy','getViewport','_highlightSecond','join','isActive','redoState','resolve','handoff','transformMutation','startsWith','limitInfo','slice','univer-text-blue-500','_getSessionTicket','_getSheetLoadingRenderService','_setupBeforeClosingHandler','_drawTextRange','all','width','stack','removeEventListener','_hovered','getUndoRedoMutationParamsCache','_updateSubUnitFromURLParams','_logService','VIEW_MAIN','univer-text-gray-400','isArray','_getLighterColor','blue.400','fillStyle','purple.300','lineWidth','Success','object','...','_textBubble','CLOSE_ROOM',':backup:','_color','getDocRanges','runId','version','_handoffUnitIds','sheetID','complete','clickable','textRanges','_drawRectRange','ERROR','_startCalculationLimit','Loading','_initCommandExecutedListener','SOCKET_FAILED_RETRY','_pollingInterval','InsertRowCommandId','_hidePreview','UNIVER_BOARD','unshift','_shapes','subscribeEvent','sessionTicket','sheetId','_latestCursors','scene','_assignedColors','_offsetY','_config','value','onPointerEnter$','map','TEXT','RECT','endRow','_slideDrawingStateService','init','NO_OTHER_CLIENTS_EDITING','_commandService','timedOut','subscribe','backupOfflineData','_isVisibleUnit','loadUnit','getSheetBySheetId','hovered','replaceState','fillText','getOffsetConfig','onTransformChange$','static','primary','deepClone','getSnapshot','_updateCollabCursors','tooltipKey','override','timeoutId','collaboration-client-ui.session.collaboration-timeout','_removeCollabCursors','_handleHover','getTypeOfUnitDisposed$','get','jiqing.500','_context','addObject','_clearBlockProgressWatch','setUndoRedoMutationParamsCache','_blinkIntervalTimer','subUnitId','SUCCESS','body','_init','true','_initEvent','now','toPrimitive','error','debug','refreshLabel','UNIVER_SHEET','_unitStatus','searchParams','focusedId','_updateURLWithCurrentState','urlChange$','setParam','?taskId=','_checkCalculationAvailable','_isApplyingOverlays','roomMembers','_themeService','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_scheduleHeartbeat','dispose','_initWindowErrorListener','strokeWidth','UNIVER_SLIDE','getConfig','loadOfflineData','_hover','rgba(','InsertColCommandId','161VCJRAy','has','saveImage','[CollaborationDataLoaderController]','indicator','next','_registerDependencies','_saveCache','addClipboardHook','editingUnit','_registerRenderDependencies','getObject','pulse','_clearTimeoutState','beforeCommandExecuted','history','parseInt','univer-appearance-none','_applyCommand','imageSourceType','syncEditingCollabCursor','setConfig','startRow','snapshot-loading-interaction-guard','_syncEditingCollabCursorService','collaboration-client-ui.formula.calculation.started','button','getUnitStatus$','slide-element-selection','_refRangeService','univer-h-8\x20univer-w-8\x20univer-rounded-lg','findNodePositionByCharIndex','removeObjects','_updateLocalCursor','onPointerLeave$','_collaborationController','@univerjs-pro/collaboration-client-ui','_transformHistoryAndStateStack','ranges','pluginName','_setInteractionBlocked','_showText','_getSheetObject','strokeStyle','filename','transform','OTHER_CLIENTS_EDITING','_docTransformIMECacheService','colno','SOCKET_FAILED','univer-inline-flex\x20univer-items-center\x20univer-justify-center','_collaborationSessionService','resize','UNIVER_DOC','_snapshotLoadingService','previewCellData','COMPLETE','Error','_startSlideCollabCursor','_startBlinking','getUnitId','values','univer-m-0\x20univer-p-0',',\x200.2)','remove','_lastResponseTimestamp','4498450SCLeBY','exhaustSavingTask','_handleLeaveEvent','_initUserListener','_getScale','setShapeProps','_injector','registerBeforeClose','defineProperty','_showGuardMessage','_urlService','assignAColorForMemberID','_getSaveTimeout','_startSheetCollabCursor','_scheduleRender','GLOBAL','collaboration-client-ui.permission.content','spin','RemoveRowCommandId','parse','_disabled','getAncestorScale','_setupSubUnitSync','onStarting','default','startColumn','socket$','releaseFormulaLimitUrl','_getFormulaLimitStatus','executionId','m1Prime','clearInterval','_session','getItem','_labelHorizontalPosition','_unitOnClients','_document','reconnect','_cursorInfo$','origin','_univerInstanceService','stageInfo','DeleteRangeMoveLeftCommandId','_docClipboardService','highlight','function','_latestStates','getActivePageId','_cursors','m2Prime','totalFormulasToCalculate','/universer-api/license/formula/limit/status','_send','_initDependencies','_imageIoService','then','prototype','onPointerMove$','getRangePointData','getMember','getId','iterator','board-element-selection','_messageIds','find','doc.mutation.rich-text-editing','decorate','roomMembers$','newValue','whenReady','_handleJoinEvent','collaboration-client-ui.conflict.title','10359672StKRgv','_currentUsage','_cursorShapes','/universer-api/frontend/logs','DeleteRangeMoveUpCommandId','_transformUndoRedoStack','collaboration-client-ui.collaboration.offline-data-not-saved','highlightSecond','/universer-api/license/formula/limit/done','height','size','addHandlerCallback','lineTo','_name','_startDocCollabCursor','_clearPolling','saveOfflineData','Warning','restore','angle','wsSessionTicketUrl','_taskIds','Enter','forEach','1032788ziphxO','beginPath','cursorInfo$','transformStateCache','_pointerMoveDisposable','transformMutationsWithChangeset','_online','Unknown\x20user','evented','SUBMIT_CHANGESET_TIMEOUT','addEventListener','memberID','getValue','_drawAnchor','_heartbeatTimer','getCellPositionByOffset','univer-flex\x20univer-items-center\x20univer-justify-center','i18nKey','_onCursorDelete','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','contains','result','UPDATE_CURSOR','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_shortcutService','_shortcutBlock','save','Failed','makeDirty','row','_monkeyPatchLogService','_blockProgressWatches','_pluginService','sessionStatus$','collaboration-client-ui.config','from','_notificationService','unitID','name','_entityInit$','font','collaboration-client-ui.collabStatus.synced','collaboration-client-ui.collabStatus.syncing','reason','pageManager','_entities','_getAnchorBounding','currentTheme$','_initStatusListener','PENDING','_initStatusComponent','_startBoardCollabCursor','_stopBlinking','location','collaboration-client-ui.collabStatus.fetchMiss','SYNCED','getUnhiddenWorksheets','_status$','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','collaboration-client-ui.collaboration.single-unit.warning','_instanceService','_handleHeartbeatEvent','requireSession','push','split','getOwnPropertyDescriptor','top','START_CALCULATION','timeoutState$','currentSkeleton$','collaboration-client-ui.session.will-retry','CONFLICT','span','_maxFormulaLimit','_initEntityListener','startFormulaLimitUrl','type','_onRefRangeChange','getUniverSheetInstance','some','_sheetSkeletonManagerService','dark:focus:!univer-ring-offset-gray-800','FromArray','univer-fixed\x20univer-inset-0\x20univer-z-[1000]\x20univer-cursor-wait','AWAITING','_localStorageService','_revisionService','collabCursorState$','send','_localeService','activeSheetId','delete','_messageService','show','_handleEvent','LOADING_BLOCKS','univer-size-4\x20univer-shrink-0\x20univer-text-amber-500','packageName','_getMergeRange','set','lineno','saveTaskMap','closePath','setInterval','_collabCursorState$','min','with','_clearOtherTimers','getUnit','getCollabCursors$','icon','reload','black','getCurrentRevOfUnit','params','_uploadLog','getRealBound','univer-text-green-500','collaboration-client-ui.snapshotLoading.loadingSheet','_id','addObjects','transformByState','\x20at\x20','previewReady','removeParam','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','fill','arc','source','isEditing','range','measureText','onCommandExecuted','offsetY','data','_boardElementStateService','transformRemoteChangeset','univer-text-orange-500','onRendered','showSkeleton','invokeId','rgba','_checkAndWaitForCalculationPermission','_blinkTimer','toRgbString','totalBlocks','showText','application/json','_hasFormulaInDirtyRanges','startPluginsForType','JOIN_ROOM_FAILED','_getSceneObjectByKey','mutations','transformSelections','executeCommand','getCurrentSelections','_initUnhandledRejectionListener','clearTimeout','selections','getActiveSheet','univer-text-xl\x20univer-transition-colors\x20univer-duration-200','_render','FETCH_MISS','storage','_sheetLoadingRenderService','\x20-\x20','_backgroundColor','_lastPointer','eventID','setActiveRange','workbookShell','loadedBlocks','_range','getFocusedUnit','preventDefault','add','_collabSessionService','_highlight','collaboration-client-ui.collabClient.tooltip.reconnect','key','getStateCache','_scheduleSaving','div','enableDocumentCollaborationUI','NOT_COLLAB','shift','getActiveSlide','call','[LogService\x20Error]:\x20','_interactionBlocked$','81lfWNvn','_saveTaskMap','onMouseMove','functionsExecutedState','uni.network.url-service','context','hide','state$','_localCacheService','_previewUnitId','getActiveRange','collab-rect-range-','_beforeCloseService','triggerDblclick','getTypeOfUnitAdded$','left','_refreshCollabCursors','collaboration-client-ui.session.connection-failed','_anchorDot','forceDisable','getCollabEntity$','red.300','setOffsetY','_updateSheetPreview','selectedIds','post','length','_configService','toISOString','setTimeout','_createSocketURL','slide-collab-cursor-','collaboration-client-ui.collabStatus.conflict','unitId','_collabCursorController','_selfUnitIDs','_initResize','pushState','rgb','subunit','bind','InsertRangeMoveDownCommandId','cursorInfo','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','0.2)','disposeWithMe','snapshot-loading-','unit','/run/','setStateCache','code','_anchor','ACTIVE_UNIT_EVENT_CHANNEL','search','replace','registerRenderModule','right','enableFrontendLog','_renderManagerService','string','_docSkeletonManagerService','202386XieSVl','selection','_scene','_labelPosition','_cachedData','rgba(255,\x20255,\x20255,\x200.01)','_toggleOffline','catch','symbol','_uiPartsService','registerRefRange','_docSyncEditingCollabCursorService','pipe','collaboration-client-ui.formula.calculation.unable','dirtyRanges','_eventUnsubscribe','_collaborationUIEventService'];_0x5d65=function(){return _0x1fca60;};return _0x5d65();}const Gn=_0x54cdb7(_0x1bdaba(0x1fc));let Kn=class extends _0x6ec97f{constructor(_0x1d1f94,_0x34fbdd,_0x45a7b9,_0x198a0c,_0x51df4b){const _0x543e22=_0x1bdaba;super(),this['_urlService']=_0x1d1f94,this[_0x543e22(0x2ba)]=_0x34fbdd,this[_0x543e22(0x2ef)]=_0x45a7b9,this[_0x543e22(0x26a)]=_0x198a0c,_0x51df4b?_0x51df4b[_0x543e22(0x11f)]()[_0x543e22(0x111)](()=>this[_0x543e22(0x311)]()):(this[_0x543e22(0x2ba)][_0x543e22(0x317)](_0x543e22(0x333),_0x543e22(0x151)),this[_0x543e22(0x311)]());}async[_0x1bdaba(0x311)](){const _0x4b8192=_0x1bdaba;let _0x975a84=this[_0x4b8192(0xe4)]['getParam'](_0x4b8192(0x227)),_0x264afe=this[_0x4b8192(0xe4)][_0x4b8192(0x279)]('type'),_0x3b1293=this[_0x4b8192(0xe4)][_0x4b8192(0x279)](_0x4b8192(0x21f));if(!_0x975a84||!_0x264afe){this[_0x4b8192(0x2ba)][_0x4b8192(0x317)]('[CollaborationDataLoaderController]',_0x4b8192(0x223));return;}let _0x424785=await this[_0x4b8192(0x26a)][_0x4b8192(0x2f4)](_0x975a84,Number(_0x264afe),_0x3b1293);_0x424785&&_0x424785 instanceof _0x45c99a&&this['_setupSubUnitSync'](_0x424785);}async[_0x1bdaba(0xf0)](_0x5c95d6){const _0x1cf2ec=_0x1bdaba;await this[_0x1cf2ec(0x2b9)](_0x5c95d6),_0x5c95d6['activeSheet$'][_0x1cf2ec(0x241)](_0x1880d0(this['dispose$']))[_0x1cf2ec(0x2f1)](_0x31d06e=>{const _0x646b53=_0x1cf2ec;_0x31d06e&&this[_0x646b53(0x31d)](_0x31d06e);}),this[_0x1cf2ec(0xe4)][_0x1cf2ec(0x31e)][_0x1cf2ec(0x241)](_0x1880d0(this[_0x1cf2ec(0x29f)]))[_0x1cf2ec(0x2f1)](()=>this[_0x1cf2ec(0x2b9)](_0x5c95d6));}[_0x1bdaba(0x31d)](_0x444af1,_0x3d5877=!0x1){const _0x5129f3=_0x1bdaba;let _0x22f812=this['_urlService'][_0x5129f3(0x279)]('subunit');_0x444af1['getSheetId']()!==_0x22f812&&this[_0x5129f3(0xe4)][_0x5129f3(0x31f)](_0x5129f3(0x21f),_0x444af1[_0x5129f3(0x28e)](),_0x3d5877);}async['_updateSubUnitFromURLParams'](_0x319fe8){const _0x4efb41=_0x1bdaba;var _0x3cd27b;let _0x18a3dd=this[_0x4efb41(0xe4)][_0x4efb41(0x279)](_0x4efb41(0x21f));if(!_0x18a3dd||!_0x319fe8['getSheetBySheetId'](_0x18a3dd)){let _0x5c77bc=_0x319fe8[_0x4efb41(0x172)]()[0x0],_0x3e84b3=_0x319fe8[_0x4efb41(0x2f5)](_0x5c77bc);if(!_0x3e84b3)return;this['_updateURLWithCurrentState'](_0x3e84b3,!0x0),await this[_0x4efb41(0x2ef)]['executeCommand'](_0x4a26f4['id'],{'unitId':_0x319fe8[_0x4efb41(0xd4)](),'subUnitId':_0x5c77bc});return;}((_0x3cd27b=_0x319fe8[_0x4efb41(0x1d9)]())==null?void 0x0:_0x3cd27b[_0x4efb41(0x28e)]())!==_0x18a3dd&&await this[_0x4efb41(0x2ef)][_0x4efb41(0x1d4)](_0x4a26f4['id'],{'unitId':_0x319fe8[_0x4efb41(0xd4)](),'subUnitId':_0x18a3dd});}};Kn=Y([J(0x0,Gn),J(0x1,_0x2c39a6),J(0x2,_0x52ed54),J(0x3,_0x12dbe6(_0x5b2fc6)),J(0x4,_0x297d95(_0x3b82e6))],Kn);let qn=class{constructor(_0x3e702c,_0x1f4ad0){const _0x2b78bd=_0x1bdaba;this[_0x2b78bd(0x287)]=_0x3e702c,this[_0x2b78bd(0x232)]=_0x1f4ad0;}[_0x1bdaba(0x268)](_0x53f437){const _0x839641=_0x1bdaba;this[_0x839641(0x127)](_0x53f437),this[_0x839641(0x292)](_0x53f437);}[_0x1bdaba(0x1c2)](_0x4d1091){const _0x5aa40c=_0x1bdaba;let {unitID:_0x5c3a8b}=_0x4d1091,{redoCache:_0x2c1e31}=this[_0x5aa40c(0x232)][_0x5aa40c(0x27d)](_0x5c3a8b)['with'](_0x4e073f)['getUndoRedoMutationParamsCache']();if(_0x2c1e31['length']===0x0)return _0x4d1091;let _0x3571ef=_0x3e18e0[_0x5aa40c(0x2fd)](_0x4d1091[_0x5aa40c(0x1d2)][0x0]);for(let _0x101031=0x0;_0x101031<_0x2c1e31[_0x5aa40c(0x212)];_0x101031++){let _0x460a34={'id':'doc.mutation.rich-text-editing','params':{..._0x2c1e31[_0x101031]}},_0x59c3bb=this[_0x5aa40c(0x287)][_0x5aa40c(0x2aa)](_0x3571ef,_0x460a34,!0x1);if(_0x316e48(_0x59c3bb))throw _0x59c3bb[_0x5aa40c(0x316)];_0x3571ef=_0x59c3bb[_0x5aa40c(0xf8)];}return{..._0x3e18e0[_0x5aa40c(0x2fd)](_0x4d1091),'mutations':[_0x3571ef]};}[_0x1bdaba(0x127)](_0xdc7390){const _0x85f126=_0x1bdaba;let {unitID:_0x455ea6}=_0xdc7390,_0x314408=this[_0x85f126(0x232)][_0x85f126(0x27d)](_0x455ea6)[_0x85f126(0x1a4)](_0x4e073f),{undoCache:_0x54a52d,redoCache:_0x2980aa}=_0x314408[_0x85f126(0x2b8)]();if(_0x54a52d['length']===0x0||_0x2980aa[_0x85f126(0x212)]===0x0)return;let _0x42a811=[],_0x3e8775=[],_0x43695a=_0x3e18e0[_0x85f126(0x2fd)](_0xdc7390[_0x85f126(0x1d2)][0x0]),_0x14fb3f=_0x3e18e0[_0x85f126(0x2fd)](_0xdc7390[_0x85f126(0x1d2)][0x0]);for(let _0x1bd5b2=_0x54a52d[_0x85f126(0x212)]-0x1;_0x1bd5b2>=0x0;_0x1bd5b2--){let _0x4782ba={'id':_0x85f126(0x11b),'params':{..._0x54a52d[_0x1bd5b2]}},_0xfc6c6f={'id':'doc.mutation.rich-text-editing','params':{..._0x2980aa[_0x1bd5b2]}},_0x1ba1a7=this['_transformService'][_0x85f126(0x2aa)](_0x43695a,_0x4782ba,!0x1),_0x54e8d2=this[_0x85f126(0x287)][_0x85f126(0x2aa)](_0x14fb3f,_0xfc6c6f,!0x1);if(_0x316e48(_0x1ba1a7))throw _0x1ba1a7[_0x85f126(0x316)];if(_0x316e48(_0x54e8d2))throw _0x54e8d2[_0x85f126(0x316)];_0x42a811[_0x85f126(0x2dc)](_0x1ba1a7[_0x85f126(0x10b)][_0x85f126(0x1ac)]),_0x3e8775[_0x85f126(0x2dc)](_0x54e8d2[_0x85f126(0x10b)][_0x85f126(0x1ac)]),_0x43695a=_0x1ba1a7[_0x85f126(0xf8)],_0x14fb3f=_0x54e8d2[_0x85f126(0xf8)];}_0x314408[_0x85f126(0x30c)]({'undoCache':_0x42a811,'redoCache':_0x3e8775});}['_transformPreviousActiveRange'](_0x62e024){const _0x100dff=_0x1bdaba;let {unitID:_0x297d0b}=_0x62e024,_0x74fbfb=this['_renderManagerService'][_0x100dff(0x27d)](_0x297d0b)[_0x100dff(0x1a4)](_0x4e073f),_0x5b6815=_0x74fbfb[_0x100dff(0x202)]();if(_0x5b6815==null)return;let _0x3201a0=[{'id':_0x100dff(0x11b),'params':{'unitId':_0x62e024[_0x100dff(0x15f)],'actions':null,'textRanges':[_0x5b6815]}}],_0x1ea4aa=this[_0x100dff(0x287)][_0x100dff(0x13f)](_0x62e024,_0x3201a0);if(!_0x3e9586(_0x1ea4aa))throw _0x1ea4aa[_0x100dff(0x316)];let _0xa2f68f=_0x1ea4aa['m2Prime'][0x0][_0x100dff(0x1ac)][_0x100dff(0x2d1)];Array[_0x100dff(0x2bd)](_0xa2f68f)&&_0xa2f68f[_0x100dff(0x212)]&&_0x74fbfb[_0x100dff(0x1e3)](_0xa2f68f[0x0]);}};qn=Y([J(0x0,_0x4e7576),J(0x1,_0x5cf724)],qn);let Jn=class{constructor(_0x1f0908,_0x1c2c64,_0x2479a4){const _0x388f6e=_0x1bdaba;this['_injector']=_0x1f0908,this[_0x388f6e(0x287)]=_0x1c2c64,this[_0x388f6e(0x24f)]=_0x2479a4;}['transformStateCache'](_0x4ef8f2){const _0x40b978=_0x1bdaba;this[_0x40b978(0x355)](_0x4ef8f2);}[_0x1bdaba(0x1c2)](_0x5ce73f){const _0x29807b=_0x1bdaba;let {unitID:_0x199478}=_0x5ce73f,{collaboration:_0x48afd9}=this[_0x29807b(0x24f)]['getStateCache'](_0x199478);if(_0x48afd9[_0x29807b(0x212)]===0x0)return _0x5ce73f;let _0x344ee5=_0x3e18e0[_0x29807b(0x2fd)](_0x5ce73f['mutations'][0x0]);for(let _0x56a8b2=0x0;_0x56a8b2<_0x48afd9[_0x29807b(0x212)];_0x56a8b2++){let _0x213412={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x48afd9[_0x56a8b2][_0x29807b(0x219)],..._0x48afd9[_0x56a8b2][_0x29807b(0x2a7)]}},_0x4a1328=this[_0x29807b(0x287)][_0x29807b(0x2aa)](_0x344ee5,_0x213412,!0x1);if(_0x316e48(_0x4a1328))throw _0x4a1328[_0x29807b(0x316)];_0x344ee5=_0x4a1328[_0x29807b(0xf8)];}return{..._0x3e18e0[_0x29807b(0x2fd)](_0x5ce73f),'mutations':[_0x344ee5]};}[_0x1bdaba(0x355)](_0x1da2c9){const _0x510faa=_0x1bdaba;let {unitID:_0x58495e}=_0x1da2c9,{history:_0x537c0a,collaboration:_0x432817}=this['_docStateChangeManagerService'][_0x510faa(0x1ee)](_0x58495e);if(_0x537c0a[_0x510faa(0x212)]===0x0&&_0x432817[_0x510faa(0x212)]===0x0)return;let _0x94e965=[],_0x3b8bb2=[],_0x1bf7c1=_0x3e18e0[_0x510faa(0x2fd)](_0x1da2c9['mutations'][0x0]),_0x451090=_0x3e18e0['deepClone'](_0x1da2c9[_0x510faa(0x1d2)][0x0]);for(let _0x5874be=_0x537c0a[_0x510faa(0x212)]-0x1;_0x5874be>=0x0;_0x5874be--){let _0x28b412={'id':_0x510faa(0x11b),'params':{'unitId':_0x537c0a[_0x5874be][_0x510faa(0x219)],..._0x537c0a[_0x5874be][_0x510faa(0x2a0)]}},_0x5f3f6d={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x537c0a[_0x5874be][_0x510faa(0x219)],..._0x537c0a[_0x5874be][_0x510faa(0x2a7)]}},_0xe11862=this[_0x510faa(0x287)][_0x510faa(0x2aa)](_0x1bf7c1,_0x28b412,!0x1),_0x54a03c=this[_0x510faa(0x287)][_0x510faa(0x2aa)](_0x451090,_0x5f3f6d,!0x1);if(_0x316e48(_0xe11862))throw _0xe11862[_0x510faa(0x316)];if(_0x316e48(_0x54a03c))throw _0x54a03c[_0x510faa(0x316)];_0x94e965[_0x510faa(0x2dc)]({..._0x537c0a[_0x5874be],'undoState':_0xe11862['m2Prime'][_0x510faa(0x1ac)],'redoState':_0x54a03c[_0x510faa(0x10b)]['params']}),_0x1bf7c1=_0xe11862['m1Prime'],_0x451090=_0x54a03c[_0x510faa(0xf8)];}_0x1bf7c1=_0x3e18e0[_0x510faa(0x2fd)](_0x1da2c9['mutations'][0x0]),_0x451090=_0x3e18e0[_0x510faa(0x2fd)](_0x1da2c9[_0x510faa(0x1d2)][0x0]);for(let _0x4c7488=_0x432817['length']-0x1;_0x4c7488>=0x0;_0x4c7488--){let _0x3d51b3={'id':_0x510faa(0x11b),'params':{'unitId':_0x432817[_0x4c7488][_0x510faa(0x219)],..._0x432817[_0x4c7488][_0x510faa(0x2a0)]}},_0x4fee73={'id':_0x510faa(0x11b),'params':{'unitId':_0x432817[_0x4c7488]['unitId'],..._0x432817[_0x4c7488]['redoState']}},_0x4d8207=this[_0x510faa(0x287)]['transformMutation'](_0x1bf7c1,_0x3d51b3,!0x1),_0x210272=this['_transformService']['transformMutation'](_0x451090,_0x4fee73,!0x1);if(_0x316e48(_0x4d8207))throw _0x4d8207['error'];if(_0x316e48(_0x210272))throw _0x210272[_0x510faa(0x316)];_0x3b8bb2[_0x510faa(0x2dc)]({..._0x432817[_0x4c7488],'undoState':_0x4d8207[_0x510faa(0x10b)]['params'],'redoState':_0x210272[_0x510faa(0x10b)][_0x510faa(0x1ac)]}),_0x1bf7c1=_0x4d8207[_0x510faa(0xf8)],_0x451090=_0x210272[_0x510faa(0xf8)];}this[_0x510faa(0x24f)][_0x510faa(0x229)](_0x58495e,{'history':_0x94e965,'collaboration':_0x3b8bb2});}};Jn=Y([J(0x0,_0x12dbe6(_0x16b12f)),J(0x1,_0x4e7576),J(0x2,_0x12dbe6(_0x5d2f32))],Jn);let Yn=class{constructor(_0x231077,_0x52306e){this['_injector']=_0x231077,this['_transformService']=_0x52306e;}[_0x1bdaba(0x1d3)](_0x26a367){const _0x2820bf=_0x1bdaba;var _0x2c1512;let _0x13273e=this[_0x2820bf(0xe0)]['get'](_0x414f4a),_0x48163b=(_0x2c1512=_0x13273e['getDocRanges']())==null?[]:_0x2c1512;if(_0x48163b['length']===0x0)return;let _0x4ff50f=_0x26a367[_0x2820bf(0x15f)],_0x484d64=[{'id':_0x2820bf(0x11b),'params':{'unitId':_0x4ff50f,'actions':null,'textRanges':_0x48163b}}],_0x4dc11d=this[_0x2820bf(0x287)][_0x2820bf(0x13f)](_0x26a367,_0x484d64);if(!_0x3e9586(_0x4dc11d))throw _0x4dc11d[_0x2820bf(0x316)];let _0xae111f=_0x4dc11d['m2Prime'][0x0][_0x2820bf(0x1ac)][_0x2820bf(0x2d1)];Array['isArray'](_0xae111f)&&_0xae111f[_0x2820bf(0x212)]&&_0x13273e[_0x2820bf(0x26e)](_0xae111f,{'unitId':_0x4ff50f,'subUnitId':_0x4ff50f},!0x1);}};Yn=Y([J(0x0,_0x12dbe6(_0x16b12f)),J(0x1,_0x4e7576)],Yn);let Xn=class extends _0x3546e9{constructor(_0x5d15d8,_0x475025,_0x3df143,_0x3d8b0c,_0xda5c22,_0x36cbc5,_0x4a2db2){const _0x51d9a8=_0x1bdaba;super(),this[_0x51d9a8(0x353)]=_0x5d15d8,this[_0x51d9a8(0x35f)]=_0x475025,this[_0x51d9a8(0x264)]=_0x3df143,this[_0x51d9a8(0x282)]=_0x3d8b0c,this[_0x51d9a8(0x240)]=_0xda5c22,this[_0x51d9a8(0x196)]=_0x36cbc5,this[_0x51d9a8(0x193)]=_0x4a2db2,q(this,'_status$',new _0x2c1176(_0x69d4a6[_0x51d9a8(0x1f2)])),this[_0x51d9a8(0x184)]();}[_0x1bdaba(0x184)](){const _0x286641=_0x1bdaba;this['disposeWithMe'](this['_collaborationController'][_0x286641(0x27f)][_0x286641(0x2f1)](_0x2d9f6c=>{const _0x422f1f=_0x286641;_0x2d9f6c instanceof _0x15ae01&&_0x2d9f6c[_0x422f1f(0x12d)]({'onTransformIME':_0x6aeb43=>this['_docTransformIMECacheService'][_0x422f1f(0x268)](_0x6aeb43),'onTransformState':_0x7f9115=>this['_docTransformStateCacheService'][_0x422f1f(0x13d)](_0x7f9115),'onTransformSelections':_0x2f9652=>this['_docTransformSelectionsService']['transformSelections'](_0x2f9652),'onSyncEditingCollabCursor':_0x5ea3a4=>this[_0x422f1f(0x240)]['syncEditingCollabCursor'](_0x5ea3a4),'onTransformRemoteChangesetByIMECache':_0x2dfd72=>this[_0x422f1f(0x35f)][_0x422f1f(0x1c2)](_0x2dfd72),'onTransformRemoteChangesetByStateCache':_0x3b1f99=>this[_0x422f1f(0x264)][_0x422f1f(0x1c2)](_0x3b1f99)});}));}};Xn=Y([J(0x0,_0x12dbe6(_0x3c5bb4)),J(0x1,_0x12dbe6(qn)),J(0x2,_0x12dbe6(Jn)),J(0x3,_0x12dbe6(Yn)),J(0x4,_0x12dbe6(An)),J(0x5,_0x27f640),J(0x6,_0x12dbe6(_0x35db9c))],Xn);let Zn=class extends _0x3546e9{constructor(_0x29b264,_0x5cacee,_0x2af68b,_0x5380fb){const _0x852917=_0x1bdaba;super(),this['_injector']=_0x29b264,this['_httpService']=_0x5cacee,this[_0x852917(0x2ba)]=_0x2af68b,this[_0x852917(0xcb)]=_0x5380fb,q(this,_0x852917(0x293),void 0x0),this['_init']();}[_0x1bdaba(0x311)](){const _0x5bdcd2=_0x1bdaba;this[_0x5bdcd2(0x328)](),this[_0x5bdcd2(0x1d6)](),this[_0x5bdcd2(0x158)](),this[_0x5bdcd2(0xdd)]();}[_0x1bdaba(0xdd)](){const _0x581494=_0x1bdaba;this[_0x581494(0x225)](this['_collaborationSessionService'][_0x581494(0xf4)][_0x581494(0x2f1)](_0xb67e82=>{const _0x55aad5=_0x581494;this['_memberID']=_0xb67e82==null?void 0x0:_0xb67e82[_0x55aad5(0x145)];}));}['_initWindowErrorListener'](){const _0x1c88e3=_0x1bdaba;let _0x140134=_0x37c09a=>{const _0xb0f183=_0x5856;var _0x1db6de;this[_0xb0f183(0x1ad)]('error','[Window\x20Error]:\x20'+_0x37c09a['message']+_0xb0f183(0x1b4)+_0x37c09a[_0xb0f183(0x35c)]+':'+_0x37c09a[_0xb0f183(0x19e)]+':'+_0x37c09a[_0xb0f183(0x360)]+'\x0a'+(((_0x1db6de=_0x37c09a[_0xb0f183(0x316)])==null?void 0x0:_0x1db6de[_0xb0f183(0x2b5)])||''));};window[_0x1c88e3(0x144)](_0x1c88e3(0x316),_0x140134),this[_0x1c88e3(0x225)](()=>{const _0x218f62=_0x1c88e3;window[_0x218f62(0x2b6)](_0x218f62(0x316),_0x140134);});}['_initUnhandledRejectionListener'](){const _0x39a8db=_0x1bdaba;let _0x32a9b8=_0x1fd596=>{const _0x4b5d19=_0x5856;this[_0x4b5d19(0x1ad)](_0x4b5d19(0x316),'[Unhandled\x20Rejection]:\x20'+_0x1fd596[_0x4b5d19(0x165)]);};window[_0x39a8db(0x144)]('unhandledrejection',_0x32a9b8),this[_0x39a8db(0x225)](()=>{window['removeEventListener']('unhandledrejection',_0x32a9b8);});}[_0x1bdaba(0x158)](){const _0xf6a583=_0x1bdaba;let _0x2dc98a=this[_0xf6a583(0x2ba)][_0xf6a583(0x316)][_0xf6a583(0x220)](this[_0xf6a583(0x2ba)]);this[_0xf6a583(0x2ba)][_0xf6a583(0x316)]=(..._0x2ddce3)=>{const _0xc7b1a1=_0xf6a583;let _0x3c392f=_0x2ddce3[_0xc7b1a1(0x2e8)](_0x3fbb76=>_0x3fbb76 instanceof Error?_0x3fbb76[_0xc7b1a1(0x273)]+'\x0a'+_0x3fbb76[_0xc7b1a1(0x2b5)]:String(_0x3fbb76))[_0xc7b1a1(0x2a5)]('\x20');this[_0xc7b1a1(0x1ad)]('error',_0xc7b1a1(0x1f6)+_0x3c392f),_0x2dc98a(..._0x2ddce3);},this[_0xf6a583(0x225)](()=>{const _0x2a9c88=_0xf6a583;this[_0x2a9c88(0x2ba)]['error']=_0x2dc98a;});}['_uploadLog'](_0x269724,_0xa96db){const _0x94a075=_0x1bdaba;try{let _0x205ed9={'userId':this[_0x94a075(0x293)],'logLabel':_0x269724,'content':_0xa96db};this[_0x94a075(0x29e)][_0x94a075(0x211)](_0x94a075(0x125),{'body':_0x205ed9})[_0x94a075(0x23c)](()=>{});}catch{}}};Zn=Y([J(0x0,_0x12dbe6(_0x16b12f)),J(0x1,_0x12dbe6(_0x4d71bd)),J(0x2,_0x2c39a6),J(0x3,_0x12dbe6(_0x552c44))],Zn);function Qn({state$:_0x21d743,interactionBlocked$:_0x502c2d}){const _0xb498f6=_0x1bdaba;return _0x31bb6a(_0x4a5162,{'children':[_0x33bb64(_0x502c2d,!0x1,!0x0)&&_0x490405('div',{'data-u-comp':_0xb498f6(0x347),'aria-hidden':!0x0,'className':_0xb498f6(0x18d)}),_0x490405($n,{'state$':_0x21d743})]});}function $n({state$:_0x5904c9}){const _0x3de917=_0x1bdaba;let _0x766d4c=_0x33bb64(_0x5904c9,null,!0x0);return _0x766d4c?_0x31bb6a(_0x3de917(0x1f0),{'data-u-comp':'snapshot-loading-timeout','role':'alert','className':'univer-fixed\x20univer-left-1/2\x20univer-top-4\x20univer-z-[1001]\x20univer-flex\x20univer-max-w-[calc(100vw-32px)]\x20-univer-translate-x-1/2\x20univer-items-center\x20univer-gap-2\x20univer-rounded-lg\x20univer-bg-white\x20univer-px-3\x20univer-py-2\x20univer-text-sm\x20univer-text-gray-900\x20univer-shadow-lg\x20dark:!univer-bg-gray-700\x20dark:!univer-text-white','children':[_0x490405(_0x191855,{'className':_0x3de917(0x19a)}),_0x490405(_0x3de917(0x182),{'children':_0x766d4c['content']}),_0x490405(_0x1adf77,{'size':'small','variant':_0x3de917(0x2fc),'onClick':()=>window['location'][_0x3de917(0x1a9)](),'children':_0x766d4c[_0x3de917(0x318)]})]}):null;}const er=_0x1bdaba(0x226);let tr=class extends _0x3546e9{constructor(_0x117a00,_0xaa882a,_0x404e9b,_0x329365,_0xb92ac3,_0x1db093,_0x36a0ad,_0x8fc16f){const _0x2112f0=_0x1bdaba;super(),this[_0x2112f0(0xce)]=_0x117a00,this[_0x2112f0(0x196)]=_0xaa882a,this[_0x2112f0(0x193)]=_0x404e9b,this[_0x2112f0(0xe0)]=_0x329365,this['_pluginService']=_0xb92ac3,this[_0x2112f0(0x152)]=_0x36a0ad,this['_urlService']=_0x8fc16f,q(this,'_timeoutState$',new _0x2c1176(null)),q(this,_0x2112f0(0x1f7),new _0x2c1176(!0x1)),q(this,'_messageIds',new Set()),q(this,'_blockProgressWatches',new Map()),q(this,_0x2112f0(0x2cd),new Set()),q(this,_0x2112f0(0x108),new Map()),q(this,_0x2112f0(0x201),void 0x0),q(this,'_shortcutBlock',void 0x0),q(this,_0x2112f0(0x1de),void 0x0),q(this,_0x2112f0(0x17e),this[_0x2112f0(0x272)][_0x2112f0(0x29b)]());let _0x7e78d9=()=>_0x56d55c(Qn,{'state$':this[_0x2112f0(0x17e)],'interactionBlocked$':this['_interactionBlocked$']});this[_0x2112f0(0x225)](_0x1db093[_0x2112f0(0x28b)](_0x4f9594[_0x2112f0(0xe9)],()=>_0xb27ee(_0x7e78d9,this[_0x2112f0(0xe0)]))),this[_0x2112f0(0x225)](this[_0x2112f0(0xce)][_0x2112f0(0x1ff)]['subscribe'](_0xbe3112=>{const _0x3c527d=_0x2112f0;this[_0x3c527d(0x108)]=_0xbe3112,_0xbe3112[_0x3c527d(0x139)](_0x411292=>{const _0x496e13=_0x3c527d;this[_0x496e13(0x299)](_0x411292),this['_updateSheetPreview'](_0x411292);});})),this[_0x2112f0(0x225)](this['_urlService'][_0x2112f0(0x31e)][_0x2112f0(0x2f1)](()=>{const _0x588eab=_0x2112f0;this[_0x588eab(0x108)]['forEach'](_0x5cb009=>{const _0x3b5687=_0x588eab;this[_0x3b5687(0x299)](_0x5cb009),this[_0x3b5687(0x20f)](_0x5cb009);});}));}[_0x1bdaba(0x327)](){const _0x1c7b0e=_0x1bdaba;var _0x236c45;if(this[_0x1c7b0e(0x119)][_0x1c7b0e(0x139)](_0x3fc603=>this[_0x1c7b0e(0x196)][_0x1c7b0e(0xd8)](_0x3fc603)),this[_0x1c7b0e(0x119)]['clear'](),this[_0x1c7b0e(0x201)]){var _0x391391;(_0x391391=this[_0x1c7b0e(0x1de)])==null||_0x391391['hide'](this[_0x1c7b0e(0x201)]);}this[_0x1c7b0e(0x201)]=void 0x0,this[_0x1c7b0e(0x159)][_0x1c7b0e(0x139)](({timeoutId:_0x28df51})=>clearTimeout(_0x28df51)),this['_blockProgressWatches'][_0x1c7b0e(0x251)](),(_0x236c45=this[_0x1c7b0e(0x153)])==null||_0x236c45[_0x1c7b0e(0x327)](),this[_0x1c7b0e(0x153)]=void 0x0,this[_0x1c7b0e(0x272)]['complete'](),this[_0x1c7b0e(0x1f7)][_0x1c7b0e(0x2cf)](),super[_0x1c7b0e(0x327)]();}[_0x1bdaba(0x299)](_0x345685){const _0x110586=_0x1bdaba;let _0x42ad6b=''+er+_0x345685[_0x110586(0x219)];if(_0x345685[_0x110586(0x258)]===_0x5885e0['COMPLETE']){if(this[_0x110586(0x30b)](_0x345685[_0x110586(0x219)]),this[_0x110586(0x2f3)](_0x345685[_0x110586(0x219)])&&this[_0x110586(0x201)]===_0x345685[_0x110586(0x219)]){this[_0x110586(0x196)][_0x110586(0x197)]({'id':_0x42ad6b,'type':_0x238db3[_0x110586(0x2d5)],'duration':0x1/0x0,'content':this[_0x110586(0x193)]['t'](_0x110586(0x1b0))}),this['_messageIds'][_0x110586(0x1e9)](_0x42ad6b);return;}this[_0x110586(0x33d)](_0x345685[_0x110586(0x219)]),this['_messageService']['remove'](_0x42ad6b),this['_messageIds'][_0x110586(0x195)](_0x42ad6b);return;}if(!this[_0x110586(0x2f3)](_0x345685[_0x110586(0x219)])){this[_0x110586(0x30b)](_0x345685[_0x110586(0x219)]),this[_0x110586(0x33d)](_0x345685[_0x110586(0x219)]),this[_0x110586(0x196)][_0x110586(0xd8)](_0x42ad6b),this['_messageIds'][_0x110586(0x195)](_0x42ad6b);return;}if(_0x345685['stage']===_0x5885e0[_0x110586(0x2d3)]){this['_clearBlockProgressWatch'](_0x345685[_0x110586(0x219)]),this['_clearTimeoutState'](_0x345685['unitId']),this[_0x110586(0x196)][_0x110586(0x197)]({'id':_0x42ad6b,'type':_0x238db3['Error'],'content':this[_0x110586(0x193)]['t'](_0x110586(0x209))}),this['_messageIds'][_0x110586(0x195)](_0x42ad6b);return;}if(_0x345685[_0x110586(0x258)]!==_0x5885e0[_0x110586(0x199)]||_0x345685[_0x110586(0x1cb)]<=0xa){this[_0x110586(0x30b)](_0x345685[_0x110586(0x219)]),this[_0x110586(0x196)][_0x110586(0xd8)](_0x42ad6b),this['_messageIds'][_0x110586(0x195)](_0x42ad6b);return;}this['_watchBlockProgress'](_0x345685)||(this[_0x110586(0x196)]['show']({'id':_0x42ad6b,'type':_0x238db3['Loading'],'duration':0x1/0x0,'content':this[_0x110586(0x193)]['t'](_0x110586(0x170))+'\x20'+_0x345685['loadedBlocks']+'/'+_0x345685['totalBlocks']}),this[_0x110586(0x119)][_0x110586(0x1e9)](_0x42ad6b));}['_watchBlockProgress'](_0x48d03c){const _0x1a9afe=_0x1bdaba;let _0x353813=this[_0x1a9afe(0x159)][_0x1a9afe(0x307)](_0x48d03c[_0x1a9afe(0x219)]);if((_0x353813==null?void 0x0:_0x353813['loadedBlocks'])===_0x48d03c[_0x1a9afe(0x1e5)])return _0x353813[_0x1a9afe(0x2f0)];this[_0x1a9afe(0x30b)](_0x48d03c[_0x1a9afe(0x219)]);let _0x461f6f=setTimeout(()=>{const _0xa626b=_0x1a9afe;let _0x5a58c7=this[_0xa626b(0x159)]['get'](_0x48d03c['unitId']);if(!_0x5a58c7||_0x5a58c7[_0xa626b(0x302)]!==_0x461f6f)return;_0x5a58c7[_0xa626b(0x2f0)]=!0x0;let _0x15040d=''+er+_0x48d03c['unitId'];this['_messageService'][_0xa626b(0xd8)](_0x15040d),this[_0xa626b(0x119)][_0xa626b(0x195)](_0x15040d),this[_0xa626b(0x272)][_0xa626b(0x335)]({'unitId':_0x48d03c[_0xa626b(0x219)],'content':this[_0xa626b(0x193)]['t']('collaboration-client-ui.snapshotLoading.timeout',String(_0x48d03c[_0xa626b(0x1e5)]),String(_0x48d03c[_0xa626b(0x1cb)])),'refreshLabel':this['_localeService']['t'](_0xa626b(0x25a))});},0xea60);return this[_0x1a9afe(0x159)][_0x1a9afe(0x19d)](_0x48d03c[_0x1a9afe(0x219)],{'loadedBlocks':_0x48d03c['loadedBlocks'],'timedOut':!0x1,'timeoutId':_0x461f6f}),!0x1;}['_clearBlockProgressWatch'](_0x2f020e){const _0x5e2c3b=_0x1bdaba;let _0x5eb804=this[_0x5e2c3b(0x159)][_0x5e2c3b(0x307)](_0x2f020e);_0x5eb804&&(clearTimeout(_0x5eb804['timeoutId']),this[_0x5e2c3b(0x159)][_0x5e2c3b(0x195)](_0x2f020e),this[_0x5e2c3b(0x33d)](_0x2f020e));}[_0x1bdaba(0x33d)](_0x551449){const _0x225523=_0x1bdaba;var _0x1a9cad;((_0x1a9cad=this[_0x225523(0x272)][_0x225523(0x2e6)])==null?void 0x0:_0x1a9cad[_0x225523(0x219)])===_0x551449&&this[_0x225523(0x272)][_0x225523(0x335)](null);}[_0x1bdaba(0x20f)](_0x12e8c2){const _0x1014fa=_0x1bdaba;if(_0x12e8c2[_0x1014fa(0x258)]===_0x5885e0['LOADING_SNAPSHOT']&&this['_handoffUnitIds']['delete'](_0x12e8c2[_0x1014fa(0x219)]),!this[_0x1014fa(0x2f3)](_0x12e8c2[_0x1014fa(0x219)])){this[_0x1014fa(0x2da)](_0x12e8c2[_0x1014fa(0x219)]);return;}if(_0x12e8c2[_0x1014fa(0x258)]===_0x5885e0[_0x1014fa(0x2d3)]||_0x12e8c2[_0x1014fa(0x1cb)]<=0xa){this[_0x1014fa(0x2da)](_0x12e8c2[_0x1014fa(0x219)]);return;}if(_0x12e8c2[_0x1014fa(0x258)]===_0x5885e0[_0x1014fa(0xd0)]){this[_0x1014fa(0x250)](_0x12e8c2[_0x1014fa(0x219)]);return;}if(_0x12e8c2[_0x1014fa(0x258)]===_0x5885e0[_0x1014fa(0x199)]&&_0x12e8c2[_0x1014fa(0x1e4)]&&_0x12e8c2['activeSheetId']){let _0x3f6435=this[_0x1014fa(0x2b0)]();if(!_0x3f6435)return;this[_0x1014fa(0x201)]&&this[_0x1014fa(0x201)]!==_0x12e8c2[_0x1014fa(0x219)]&&this['_hidePreview'](this[_0x1014fa(0x201)]),_0x3f6435[_0x1014fa(0x1c5)](_0x12e8c2[_0x1014fa(0x1e4)],_0x12e8c2[_0x1014fa(0x194)]),this[_0x1014fa(0x201)]=_0x12e8c2['unitId'],this[_0x1014fa(0x358)](!0x0),_0x12e8c2[_0x1014fa(0x1b5)]&&_0x3f6435[_0x1014fa(0x197)](_0x12e8c2[_0x1014fa(0x1e4)],_0x12e8c2[_0x1014fa(0x194)],_0x12e8c2[_0x1014fa(0xcf)]);}}['_handoffPreview'](_0x1f2876){const _0x3523a5=_0x1bdaba;if(this[_0x3523a5(0x201)]!==_0x1f2876||this['_handoffUnitIds'][_0x3523a5(0x331)](_0x1f2876))return;let _0x570831=this[_0x3523a5(0x1de)];_0x570831&&(this[_0x3523a5(0x2cd)][_0x3523a5(0x1e9)](_0x1f2876),_0x570831[_0x3523a5(0x2a9)](_0x1f2876,0x2710)[_0x3523a5(0x111)](_0x1091ef=>{const _0x194178=_0x3523a5;if(this[_0x194178(0x201)]!==_0x1f2876)return;if(_0x1091ef){let _0x40137e=''+er+_0x1f2876;this['_messageService'][_0x194178(0xd8)](_0x40137e),this[_0x194178(0x119)][_0x194178(0x195)](_0x40137e),this[_0x194178(0x201)]=void 0x0,this['_setInteractionBlocked'](!0x1);return;}let _0x33e861=''+er+_0x1f2876;this[_0x194178(0x196)]['remove'](_0x33e861),this[_0x194178(0x119)][_0x194178(0x195)](_0x33e861),this[_0x194178(0x272)][_0x194178(0x335)]({'unitId':_0x1f2876,'content':this['_localeService']['t'](_0x194178(0x209)),'refreshLabel':this['_localeService']['t'](_0x194178(0x25a))});}));}[_0x1bdaba(0x2da)](_0x215cf8){const _0x2e0c26=_0x1bdaba;var _0x4b6b86;this['_previewUnitId']===_0x215cf8&&((_0x4b6b86=this['_sheetLoadingRenderService'])==null||_0x4b6b86[_0x2e0c26(0x1fe)](_0x215cf8),this['_previewUnitId']=void 0x0,this[_0x2e0c26(0x358)](!0x1));}['_setInteractionBlocked'](_0x415dd8){const _0x5b4d14=_0x1bdaba;if(_0x415dd8!==this[_0x5b4d14(0x1f7)]['value']){if(_0x415dd8)this[_0x5b4d14(0x153)]=this['_shortcutService'][_0x5b4d14(0x20b)]();else{var _0x379f5c;(_0x379f5c=this[_0x5b4d14(0x153)])==null||_0x379f5c['dispose'](),this[_0x5b4d14(0x153)]=void 0x0;}this['_interactionBlocked$']['next'](_0x415dd8);}}[_0x1bdaba(0x2f3)](_0x103202){const _0x157001=_0x1bdaba;let _0x1a0258=this[_0x157001(0xe4)][_0x157001(0x279)](_0x157001(0x227));return!_0x1a0258||_0x1a0258===_0x103202;}[_0x1bdaba(0x2b0)](){const _0x297744=_0x1bdaba;return this['_sheetLoadingRenderService']?this[_0x297744(0x1de)]:(this[_0x297744(0x15a)][_0x297744(0x1cf)](_0x256b3f[_0x297744(0x319)]),this[_0x297744(0xe0)]['has'](_0x5f52d8)&&(this[_0x297744(0x1de)]=this['_injector'][_0x297744(0x307)](_0x5f52d8)),this['_sheetLoadingRenderService']);}};tr=Y([J(0x0,_0x12dbe6(_0x27021a)),J(0x1,_0x27f640),J(0x2,_0x12dbe6(_0x35db9c)),J(0x3,_0x12dbe6(_0x16b12f)),J(0x4,_0x12dbe6(_0x198167)),J(0x5,_0xc6877),J(0x6,_0x2f5521),J(0x7,Gn)],tr);function nr(_0x275f77){const _0x68a6ec=_0x1bdaba;var _0x1a44b0,_0x4cd7c1;let _0x598729=(_0x1a44b0=_0x275f77[_0x68a6ec(0x103)])==null?void 0x0:_0x1a44b0[_0x68a6ec(0x258)],_0x3b99df=((_0x4cd7c1=_0x275f77[_0x68a6ec(0x103)])==null?void 0x0:_0x4cd7c1[_0x68a6ec(0x10c)])||0x0;return _0x598729===_0x99dc3e[_0x68a6ec(0x17d)]&&_0x3b99df>0x0;}function rr(_0x551b71){const _0x48d17f=_0x1bdaba;return _0x551b71[_0x48d17f(0x1fb)]===_0x246894[_0x48d17f(0x30f)];}let ir=class extends _0x3546e9{constructor(_0x609131,_0x18b3fd,_0x414b96,_0x5e6b17,_0x44c118,_0xe7dcbc,_0x3f763f){const _0x52674c=_0x1bdaba;super(),this['_messageService']=_0x609131,this['_commandService']=_0x18b3fd,this[_0x52674c(0x213)]=_0x414b96,this[_0x52674c(0x29e)]=_0x5e6b17,this[_0x52674c(0x102)]=_0x44c118,this[_0x52674c(0x2ba)]=_0xe7dcbc,this[_0x52674c(0x193)]=_0x3f763f,q(this,_0x52674c(0x2d8),null),q(this,_0x52674c(0x183),0x0),q(this,_0x52674c(0x123),0x0),q(this,'_taskIds',[]),q(this,_0x52674c(0xd9),0x0),this['_initCommandInterceptor']();}['_initCommandInterceptor'](){const _0x3517a8=_0x1bdaba;this[_0x3517a8(0x225)](this[_0x3517a8(0x2ef)][_0x3517a8(0x33e)]((_0x3df1fd,_0x59b48a)=>{const _0x5bafb0=_0x3517a8;var _0x598e86;if(_0x3df1fd['id']!==_0x4e2ab1['id'])return;let _0x20d922=_0x3df1fd[_0x5bafb0(0x1ac)];if(this['_hasFormulaInDirtyRanges']((_0x598e86=_0x20d922[_0x5bafb0(0x243)])==null?[]:_0x598e86)&&!this[_0x5bafb0(0x321)]())throw this[_0x5bafb0(0x1c8)](_0x3df1fd,_0x59b48a),this[_0x5bafb0(0xe3)](),new _0xf6b9a4();})),this[_0x3517a8(0x225)](this[_0x3517a8(0x2ef)]['onCommandExecuted']((_0x1f7eb5,_0x3d7e2d)=>{const _0x2eb8b7=_0x3517a8;if(_0x1f7eb5['id']!==_0x13bb03['id'])return;let _0x16abd9=_0x1f7eb5[_0x2eb8b7(0x1ac)];if(nr(_0x16abd9)){let _0xd062c3=_0x2d364b();this[_0x2eb8b7(0x137)]['push'](_0xd062c3),this[_0x2eb8b7(0x2d4)](_0xd062c3);}else{if(rr(_0x16abd9)&&this['_taskIds']['length']>0x0){let _0xa9616a=this['_taskIds'][_0x2eb8b7(0x1f3)]();this['_releaseCalculationLimit'](_0xa9616a);}}}));}[_0x1bdaba(0x327)](){const _0x3e3fbe=_0x1bdaba;super[_0x3e3fbe(0x327)](),this[_0x3e3fbe(0x131)](),this[_0x3e3fbe(0x137)]=[],this[_0x3e3fbe(0x123)]=0x0,this['_maxFormulaLimit']=0x0,this[_0x3e3fbe(0xd9)]=0x0;}async[_0x1bdaba(0x1c8)](_0x33e9e7,_0x553c9c){const _0x50c068=_0x1bdaba;for(let _0x530985=0x0;_0x530985<0x1e;_0x530985++)try{if(await this[_0x50c068(0xf6)](),this[_0x50c068(0x321)]()){this[_0x50c068(0x342)](_0x33e9e7,_0x553c9c),this[_0x50c068(0x196)][_0x50c068(0x197)]({'content':this[_0x50c068(0x193)]['t'](_0x50c068(0x349)),'type':_0x238db3[_0x50c068(0x2c3)]});return;}await new Promise(_0x56cbbe=>{const _0x16f69e=_0x50c068;this['_pollingInterval']=window[_0x16f69e(0x215)](_0x56cbbe,0x3e8);});}catch(_0x412707){this[_0x50c068(0x2ba)][_0x50c068(0x316)](_0x412707);}this[_0x50c068(0x196)]['show']({'content':this[_0x50c068(0x193)]['t'](_0x50c068(0x242)),'type':_0x238db3[_0x50c068(0xd1)]});}[_0x1bdaba(0x342)](_0x3f066d,_0x238c42){const _0x39be93=_0x1bdaba;try{this['_commandService'][_0x39be93(0x1d4)](_0x3f066d['id'],_0x3f066d[_0x39be93(0x1ac)],_0x238c42);}catch(_0x31189e){this[_0x39be93(0x2ba)][_0x39be93(0x316)](_0x31189e);}}['_setFormulaLimitStatus'](_0x2e37a4,_0x5bdc68){const _0x51ff1a=_0x1bdaba;_0x5bdc68<this[_0x51ff1a(0xd9)]||(this[_0x51ff1a(0xd9)]=_0x5bdc68,this['_maxFormulaLimit']=Number[_0x51ff1a(0x340)](_0x2e37a4['maxFormulaLimit']),this[_0x51ff1a(0x123)]=Number[_0x51ff1a(0x340)](_0x2e37a4[_0x51ff1a(0x276)]));}async[_0x1bdaba(0x2d4)](_0x53ec4c){const _0x2e5d80=_0x1bdaba;let _0x2b5aec=Date[_0x2e5d80(0x314)]();try{var _0x21cfcd,_0x42bc30;let _0x36627e=((_0x21cfcd=this['_configService'][_0x2e5d80(0x32b)](_0x5bcab3))==null?void 0x0:_0x21cfcd[_0x2e5d80(0x185)])||'/universer-api/license/formula/limit/start',_0x1b36ce=(await this['_httpService'][_0x2e5d80(0x211)](_0x36627e,{'body':JSON[_0x2e5d80(0x26d)]({'taskId':_0x53ec4c})}))[_0x2e5d80(0x310)];if(((_0x42bc30=_0x1b36ce[_0x2e5d80(0x316)])==null?void 0x0:_0x42bc30[_0x2e5d80(0x22a)])!==_0x41ca77['OK'])return;this['_setFormulaLimitStatus'](_0x1b36ce[_0x2e5d80(0x2ac)],_0x2b5aec);}catch(_0x34169f){this[_0x2e5d80(0x2ba)][_0x2e5d80(0x316)](_0x34169f);}}async[_0x1bdaba(0xf6)](_0x107e15){const _0x2b108a=_0x1bdaba;let _0x468d1f=Date[_0x2b108a(0x314)]();try{var _0x4a7a7f,_0x2988a7;let _0x96a45a=((_0x4a7a7f=this[_0x2b108a(0x213)]['getConfig'](_0x5bcab3))==null?void 0x0:_0x4a7a7f['getFormulaLimitStatusUrl'])||_0x2b108a(0x10d),_0xc6b33d=_0x107e15?_0x96a45a+_0x2b108a(0x320)+encodeURIComponent(_0x107e15):_0x96a45a,_0x35899e=(await this[_0x2b108a(0x29e)][_0x2b108a(0x307)](_0xc6b33d))[_0x2b108a(0x310)];if(((_0x2988a7=_0x35899e[_0x2b108a(0x316)])==null?void 0x0:_0x2988a7[_0x2b108a(0x22a)])!==_0x41ca77['OK'])return;this[_0x2b108a(0x259)](_0x35899e['limitInfo'],_0x468d1f);}catch(_0x5db3d5){this[_0x2b108a(0x2ba)]['error'](_0x5db3d5);}}async['_releaseCalculationLimit'](_0x29b10b){const _0x35c6d5=_0x1bdaba;let _0x465e2d=Date[_0x35c6d5(0x314)]();try{var _0x263e2e,_0x33e540;let _0x2f3c56=((_0x263e2e=this['_configService'][_0x35c6d5(0x32b)](_0x5bcab3))==null?void 0x0:_0x263e2e[_0x35c6d5(0xf5)])||_0x35c6d5(0x12a),_0x2fee5b=(await this['_httpService']['post'](_0x2f3c56,{'body':JSON['stringify']({'taskId':_0x29b10b})}))['body'];if(((_0x33e540=_0x2fee5b[_0x35c6d5(0x316)])==null?void 0x0:_0x33e540[_0x35c6d5(0x22a)])!==_0x41ca77['OK'])return;this[_0x35c6d5(0x259)](_0x2fee5b['limitInfo'],_0x465e2d);}catch(_0x30b79c){this['_logService'][_0x35c6d5(0x316)](_0x30b79c);}}[_0x1bdaba(0x321)](){const _0x16ca7c=_0x1bdaba;return this[_0x16ca7c(0x183)]===0x0?!0x0:this['_maxFormulaLimit']-this[_0x16ca7c(0x123)]>0x0;}[_0x1bdaba(0x131)](){const _0x3ec16c=_0x1bdaba;this['_pollingInterval']&&(clearTimeout(this[_0x3ec16c(0x2d8)]),this[_0x3ec16c(0x2d8)]=null);}[_0x1bdaba(0xe3)](){const _0x149407=_0x1bdaba;this[_0x149407(0x196)][_0x149407(0x197)]({'content':this[_0x149407(0x193)]['t']('collaboration-client-ui.formula.calculation.waiting'),'type':_0x238db3[_0x149407(0x2d5)]});}[_0x1bdaba(0x1ce)](_0x48593a){const _0x558b63=_0x1bdaba;for(let _0x1b2fd4 of _0x48593a){let {unitId:_0x5af96a,sheetId:_0x3516ea,range:_0x49a0c4}=_0x1b2fd4,_0xdf130e=this[_0x558b63(0x102)][_0x558b63(0x1a6)](_0x5af96a);if(!_0xdf130e)continue;let _0xbe4b2f=_0xdf130e['getSheetBySheetId'](_0x3516ea);if(!_0xbe4b2f)continue;let _0x43b516=_0xbe4b2f[_0x558b63(0x265)]();for(let _0x7b3efb=_0x49a0c4[_0x558b63(0x346)];_0x7b3efb<=_0x49a0c4[_0x558b63(0x2eb)];_0x7b3efb++)for(let _0x4c7525=_0x49a0c4[_0x558b63(0xf3)];_0x4c7525<=_0x49a0c4[_0x558b63(0x291)];_0x4c7525++){let _0x1add6b=_0x43b516[_0x558b63(0x146)](_0x7b3efb,_0x4c7525);if(_0x1add6b&&(_0x4283f4(_0x1add6b['f'])||_0x3e97d3(_0x1add6b['si'])))return!0x0;}}return!0x1;}};ir=Y([J(0x0,_0x12dbe6(_0x27f640)),J(0x1,_0x52ed54),J(0x2,_0x1d73f8),J(0x3,_0x12dbe6(_0x4d71bd)),J(0x4,_0x2d8d04),J(0x5,_0x2c39a6),J(0x6,_0x12dbe6(_0x35db9c))],ir);let ar=class extends _0x3546e9{constructor(_0x1ca861,_0x2f025e,_0x31df82){const _0x2eaf2b=_0x1bdaba;super(),this['_configService']=_0x1ca861,this[_0x2eaf2b(0x18f)]=_0x2f025e,this[_0x2eaf2b(0x190)]=_0x31df82,q(this,_0x2eaf2b(0x239),new Map()),q(this,_0x2eaf2b(0x1f9),new Map()),q(this,_0x2eaf2b(0xee),!0x1);}[_0x1bdaba(0x28c)](){const _0x4e267f=_0x1bdaba;this[_0x4e267f(0xee)]=!0x0;}['enableLocalCache'](){const _0x24fae9=_0x1bdaba;this[_0x24fae9(0xee)]=!0x1;}get[_0x1bdaba(0x19f)](){const _0xb55a4e=_0x1bdaba;return this[_0xb55a4e(0x1f9)];}[_0x1bdaba(0x327)](){const _0x2acbff=_0x1bdaba;this[_0x2acbff(0xdb)]()[_0x2acbff(0x111)](()=>super['dispose']());}async[_0x1bdaba(0x32c)](_0x53a814){const _0x3947e5=_0x1bdaba;return this[_0x3947e5(0xee)]?null:this['_localStorageService'][_0x3947e5(0xfb)](_0x3861b0(_0x53a814));}async[_0x1bdaba(0x132)](_0x2513e1,_0x227fd7){const _0x4e1982=_0x1bdaba;return!!this['_localStorageService'][_0x4e1982(0x246)](_0x3861b0(_0x2513e1),_0x227fd7);}async[_0x1bdaba(0x2f2)](_0x1cb219,_0x5ae084){const _0x447463=_0x1bdaba;var _0x22e1d5;let _0x1a6fcf=(_0x22e1d5=this['_cachedData'][_0x447463(0x307)](_0x1cb219))==null?await this['_localStorageService'][_0x447463(0xfb)](_0x3861b0(_0x1cb219)):_0x22e1d5;if(!_0x1a6fcf)return;let _0xfeede3=Date['now'](),_0x57aeb9=new Date(_0xfeede3)[_0x447463(0x214)]();await this[_0x447463(0x18f)][_0x447463(0x246)](_0x3861b0(_0x1cb219)+_0x447463(0x2c8)+_0xfeede3,{'reason':_0x5ae084,'createdAt':_0x57aeb9,'data':_0x1a6fcf});}[_0x1bdaba(0x256)](_0x1ba0cc,_0x3240e3,_0x5eb59d,_0x3b9b8f){const _0x44c736=_0x1bdaba;let _0x22e298=this[_0x44c736(0x190)][_0x44c736(0x1ab)](_0x1ba0cc);this[_0x44c736(0x239)]['set'](_0x1ba0cc,{'unitID':_0x1ba0cc,'type':_0x3240e3,'awaitingChangeset':_0x5eb59d,'mutations':_0x3b9b8f,'rev':_0x22e298}),this[_0x44c736(0x1f9)][_0x44c736(0x331)](_0x1ba0cc)||this['_scheduleSaving'](_0x1ba0cc);}[_0x1bdaba(0x1ef)](_0x3980b3){const _0x278334=_0x1bdaba;let _0x1d1ee7=this[_0x278334(0xe6)]();_0x1d1ee7===0x0?this['_saveCache'](_0x3980b3):this['_saveTaskMap'][_0x278334(0x19d)](_0x3980b3,window[_0x278334(0x215)](()=>this[_0x278334(0x337)](_0x3980b3),_0x1d1ee7));}[_0x1bdaba(0xe6)](){const _0x5b9f21=_0x1bdaba;var _0x243480;return(_0x243480=this['_configService'][_0x5b9f21(0x32b)](_0x46ba7f))==null?_0x54fc74:_0x243480;}[_0x1bdaba(0x337)](_0x303e2b){const _0x311e9f=_0x1bdaba;let _0x573a3b=this[_0x311e9f(0x1f9)][_0x311e9f(0x307)](_0x303e2b);return _0x573a3b!==void 0x0&&window[_0x311e9f(0x1d7)](_0x573a3b),this[_0x311e9f(0x18f)][_0x311e9f(0x246)](_0x3861b0(_0x303e2b),this[_0x311e9f(0x239)][_0x311e9f(0x307)](_0x303e2b))[_0x311e9f(0x111)](()=>this[_0x311e9f(0x1f9)][_0x311e9f(0x195)](_0x303e2b));}async[_0x1bdaba(0xdb)](){const _0x31d6c1=_0x1bdaba;let _0x32d1c4=[];this[_0x31d6c1(0x1f9)][_0x31d6c1(0x139)]((_0x137d08,_0x724475)=>{const _0x28fb1d=_0x31d6c1;window[_0x28fb1d(0x1d7)](_0x137d08),_0x32d1c4[_0x28fb1d(0x179)](this[_0x28fb1d(0x337)](_0x724475)['then'](()=>{const _0x3fbf85=_0x28fb1d;this['_saveTaskMap'][_0x3fbf85(0x195)](_0x724475);}));}),await Promise[_0x31d6c1(0x2b3)](_0x32d1c4);}};ar=Y([J(0x0,_0x1d73f8),J(0x1,_0x188bf4),J(0x2,_0x12dbe6(_0x22811b))],ar);var or=class extends _0x6ec97f{constructor(){const _0x1eea78=_0x1bdaba;super(),q(this,'urlChange$',void 0x0),this[_0x1eea78(0x31e)]=_0x190d82(window,_0x1eea78(0x26c))[_0x1eea78(0x241)](_0x1880d0(this[_0x1eea78(0x29f)]),_0x5b9a2f({'bufferSize':0x1,'refCount':!0x0}),_0x10a7e8(void 0x0));}['setParam'](_0x34f2fc,_0x129cc2,_0x295ffb=!0x1){const _0x468d1d=_0x1bdaba;let _0x3c93a4=new URL(window[_0x468d1d(0x16f)][_0x468d1d(0x297)]);_0x3c93a4[_0x468d1d(0x31b)][_0x468d1d(0x19d)](_0x34f2fc,_0x129cc2),_0x295ffb?window[_0x468d1d(0x33f)][_0x468d1d(0x2f7)]('','',_0x3c93a4[_0x468d1d(0x266)]()):window[_0x468d1d(0x33f)][_0x468d1d(0x21d)]('','',_0x3c93a4['toString']());}[_0x1bdaba(0x1b6)](_0x1d3b01,_0x345b41=!0x1){const _0x24e53d=_0x1bdaba;let _0xd796ab=new URL(window[_0x24e53d(0x16f)][_0x24e53d(0x297)]);_0xd796ab[_0x24e53d(0x31b)][_0x24e53d(0x195)](_0x1d3b01),_0x345b41?window[_0x24e53d(0x33f)]['replaceState']('','',_0xd796ab['toString']()):window['history'][_0x24e53d(0x21d)]('','',_0xd796ab[_0x24e53d(0x266)]());}[_0x1bdaba(0x279)](_0x59906b){const _0x4b8e1c=_0x1bdaba;var _0x39c18c;return(_0x39c18c=new URL(window[_0x4b8e1c(0x16f)][_0x4b8e1c(0x297)])[_0x4b8e1c(0x31b)][_0x4b8e1c(0x307)](_0x59906b))==null?void 0x0:_0x39c18c;}};let $=class extends _0x34badd{constructor(_0x1831b5=vn,_0x685af7,_0x87e5d3,_0xa07cea){const _0x5c8b1b=_0x1bdaba;super(),this['_config']=_0x1831b5,this[_0x5c8b1b(0x232)]=_0x685af7,this[_0x5c8b1b(0xe0)]=_0x87e5d3,this['_configService']=_0xa07cea;let {..._0x17ea63}=_0x22bf42({},vn,this[_0x5c8b1b(0x2e5)]);this[_0x5c8b1b(0x213)][_0x5c8b1b(0x345)](_0x5c8b1b(0x15c),_0x17ea63);}[_0x1bdaba(0xf1)](){const _0x1babad=_0x1bdaba;this['_registerDependencies'](),this[_0x1babad(0x10f)]();}[_0x1bdaba(0x1c4)](){const _0x4b7f04=_0x1bdaba;this[_0x4b7f04(0x33a)]();}[_0x1bdaba(0x336)](){const _0x2a8859=_0x1bdaba;var _0x5ad7b7;let _0x4935f5=[[Z],[ir],[Gn,{'useClass':or}],[_0x4819c4,{'useClass':_0x3a4497}],[_0x18a306,{'useClass':ar}],[X],[fn],[Wn],[Q],[Kn],[tr]];this['_config'][_0x2a8859(0x1f1)]!==!0x1&&_0x4935f5['push']([Yn],[qn],[Jn],[An],[Xn],[yn]),this[_0x2a8859(0x2e5)]['enableFrontendLog']&&_0x4935f5[_0x2a8859(0x179)]([Zn]),_0x58b75c(this[_0x2a8859(0xe0)],_0x59484e(_0x4935f5,(_0x5ad7b7=this['_config'])==null?void 0x0:_0x5ad7b7[_0x2a8859(0x301)]));}[_0x1bdaba(0x33a)](){const _0x4f8cd7=_0x1bdaba;this[_0x4f8cd7(0x2e5)]['enableDocumentCollaborationUI']!==!0x1&&this[_0x4f8cd7(0x225)](this[_0x4f8cd7(0x232)]['registerRenderModule'](_0x256b3f[_0x4f8cd7(0xcd)],[zn])),this['disposeWithMe'](this['_renderManagerService'][_0x4f8cd7(0x22f)](_0x256b3f['UNIVER_SHEET'],[Vn])),this[_0x4f8cd7(0x225)](this[_0x4f8cd7(0x232)][_0x4f8cd7(0x22f)](_0x256b3f[_0x4f8cd7(0x32a)],[Un])),this['disposeWithMe'](this[_0x4f8cd7(0x232)][_0x4f8cd7(0x22f)](_0x256b3f['UNIVER_BOARD'],[In]));}[_0x1bdaba(0x10f)](){const _0x5a2946=_0x1bdaba;_0x3a85c2(this[_0x5a2946(0xe0)],[[Q],[X],[fn],[Wn],[Kn],[ir],[tr]]),this[_0x5a2946(0x2e5)][_0x5a2946(0x1f1)]!==!0x1&&_0x3a85c2(this['_injector'],[[Xn],[yn]]),this['_config'][_0x5a2946(0x231)]&&_0x3a85c2(this[_0x5a2946(0xe0)],[[Zn]]);}};q($,_0x1bdaba(0x357),_0x1bdaba(0x174)),q($,_0x1bdaba(0x19b),gn),q($,_0x1bdaba(0x2cc),_n),$=Y([_0x3023f0(_0x17f8ab),J(0x1,_0x5cf724),J(0x2,_0x12dbe6(_0x16b12f)),J(0x3,_0x1d73f8)],$);let sr=class extends _0x4f11c1{constructor(_0xca4463,_0x2a4f28,_0xd53b3e,_0x11964a,_0x204390){super(_0xca4463,_0x2a4f28,_0xd53b3e,_0x11964a,_0x204390);}async['createSocket'](_0x4a9d24){const _0x258493=_0x1bdaba;let _0x1cf4d3=await this[_0x258493(0x2af)](),_0x40c9a9=this[_0x258493(0x216)](_0x4a9d24,_0x1cf4d3);return this['_doCreateSocket'](_0x40c9a9);}[_0x1bdaba(0x216)](_0x4e1c8b,_0x38cf24){const _0x1a25a1=_0x1bdaba;let _0x4bae15=typeof window>'u'?new URL(_0x4e1c8b):new URL(_0x4e1c8b,window[_0x1a25a1(0x16f)][_0x1a25a1(0x101)]);_0x4bae15[_0x1a25a1(0x31b)][_0x1a25a1(0x19d)](_0x1a25a1(0x2df),_0x38cf24);let _0x2e19c5=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x1a25a1(0x16f)][_0x1a25a1(0x22d)]);return _0x2e19c5[_0x1a25a1(0x307)]('runId')&&_0x4bae15[_0x1a25a1(0x31b)][_0x1a25a1(0x19d)]('runId',_0x2e19c5[_0x1a25a1(0x307)](_0x1a25a1(0x2cb))),_0x4bae15[_0x1a25a1(0x266)]();}async[_0x1bdaba(0x2af)](){const _0x1b5de8=_0x1bdaba;var _0x38e5b1,_0x5046e3,_0x2f8e54;let _0x4dac0c=this['_configService'][_0x1b5de8(0x32b)](_0x5bcab3),_0x264193=(_0x38e5b1=_0x4dac0c==null?void 0x0:_0x4dac0c[_0x1b5de8(0x136)])==null?_0x3bcbdb:_0x38e5b1;return(_0x5046e3=(_0x2f8e54=(await this[_0x1b5de8(0x29e)][_0x1b5de8(0x307)](_0x264193,{'headers':{'Content-Type':_0x1b5de8(0x1cd)}}))[_0x1b5de8(0x310)])==null?void 0x0:_0x2f8e54['ticket'])==null?'':_0x5046e3;}};sr=Y([J(0x0,_0x12dbe6(_0x16b12f)),J(0x1,_0x12dbe6(_0x4d71bd)),J(0x2,_0x1d73f8),J(0x3,_0x2c39a6),J(0x4,_0x117931)],sr);let cr=class extends _0x3546e9{constructor(_0x514dda,_0x31ff4a,_0x30702d){const _0x2ab0c7=_0x1bdaba;super(),this[_0x2ab0c7(0x176)]=_0x514dda,this[_0x2ab0c7(0x29e)]=_0x31ff4a,this[_0x2ab0c7(0x213)]=_0x30702d;}async['runOnServer'](_0x3be865,_0x17c975,_0x5bf419,..._0x4f4065){const _0x48ce22=_0x1bdaba;var _0x2ca58c,_0x4c4c90,_0x5c36fe,_0x3be0c0;let _0x3229d1=this[_0x48ce22(0x176)][_0x48ce22(0x1e7)]();if(!_0x3229d1)throw Error(_0x48ce22(0x325));let _0x314a5d=((_0x2ca58c=this[_0x48ce22(0x213)][_0x48ce22(0x32b)](_0x13fd71))==null?_0x205c4a:_0x2ca58c)+'/'+_0x3be865+_0x48ce22(0x228)+_0x17c975,_0x53327d={'scriptId':_0x3be865,'runId':(_0x4c4c90=new URL(window[_0x48ce22(0x16f)]['href'])[_0x48ce22(0x31b)][_0x48ce22(0x307)](_0x48ce22(0x2cb)))==null?'':_0x4c4c90,'function':_0x17c975,'unitId':_0x3229d1[_0x48ce22(0xd4)](),'argsOfFunction':JSON['stringify'](_0x4f4065),'invokeId':(_0x5c36fe=_0x5bf419[_0x48ce22(0x1c6)])==null?'':_0x5c36fe,'executionId':(_0x3be0c0=_0x5bf419[_0x48ce22(0xf7)])==null?'':_0x3be0c0};try{let _0x9e23b2=await this[_0x48ce22(0x29e)][_0x48ce22(0x211)](_0x314a5d,{'body':_0x53327d});return _0x9e23b2['body']['error']&&_0x9e23b2[_0x48ce22(0x310)][_0x48ce22(0x316)]['code']!==_0x41ca77['OK']?_0x48ce22(0x155):_0x9e23b2[_0x48ce22(0x310)][_0x48ce22(0x14f)];}catch{return _0x48ce22(0x155);}}};cr=Y([J(0x0,_0x2d8d04),J(0x1,_0x12dbe6(_0x4d71bd)),J(0x2,_0x1d73f8)],cr);const lr=0x7530,ur=_0x1bdaba(0x22c);var dr=class extends _0x3546e9{constructor(){const _0x4b77e4=_0x1bdaba;super(),q(this,_0x4b77e4(0x1b1),_0x2d364b()),q(this,_0x4b77e4(0x21b),new Set()),q(this,_0x4b77e4(0xfd),new Map()),q(this,'_heartbeatTimer',null),q(this,_0x4b77e4(0x1a5),new Map()),q(this,_0x4b77e4(0x31a),new Map()),this[_0x4b77e4(0x311)]();}[_0x1bdaba(0x327)](){const _0x42f880=_0x1bdaba;super[_0x42f880(0x327)](),this[_0x42f880(0x1a5)]['forEach']((_0x42e982,_0x128868)=>this[_0x42f880(0x277)](_0x128868)),this[_0x42f880(0x148)]&&window['clearInterval'](this[_0x42f880(0x148)]);}[_0x1bdaba(0x34b)](_0x2917b5){const _0x28ded3=_0x1bdaba;return this[_0x28ded3(0x28a)](_0x2917b5)[_0x28ded3(0x241)](_0xbac4cc());}[_0x1bdaba(0x339)](_0x3ecdb9){const _0x349eff=_0x1bdaba;this['_selfUnitIDs'][_0x349eff(0x12c)]===0x0&&this[_0x349eff(0x326)](),this[_0x349eff(0x21b)][_0x349eff(0x1e9)](_0x3ecdb9),this[_0x349eff(0x10e)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x3ecdb9],'isForwarded':!0x1});}['disposeUnit'](_0x7253ac){const _0x16f711=_0x1bdaba;this[_0x16f711(0x21b)]['delete'](_0x7253ac),this['_selfUnitIDs'][_0x16f711(0x12c)]===0x0&&this[_0x16f711(0x148)]&&window[_0x16f711(0xf9)](this[_0x16f711(0x148)]);}[_0x1bdaba(0x311)](){const _0x4ff190=_0x1bdaba;this[_0x4ff190(0x225)](_0x4627b6(_0x190d82(window,_0x4ff190(0x1dd))[_0x4ff190(0x2f1)](_0x18a36a=>{const _0x40f174=_0x4ff190;if(_0x18a36a[_0x40f174(0x1ed)]!==ur||!_0x18a36a['newValue'])return;let _0x2cf03d=JSON[_0x40f174(0xed)](_0x18a36a[_0x40f174(0x11e)]);this['_handleEvent'](_0x2cf03d);}))),window['addEventListener']('unload',()=>this['_send']({'type':0x1,'memberID':this['_id'],'unitIDs':Array['from'](this[_0x4ff190(0x21b)])}));}[_0x1bdaba(0x198)](_0x1b03e0){const _0x29c063=_0x1bdaba;switch(_0x1b03e0[_0x29c063(0x186)]){case 0x0:this[_0x29c063(0x120)](_0x1b03e0);break;case 0x1:this['_handleLeaveEvent'](_0x1b03e0);break;case 0x2:this[_0x29c063(0x177)](_0x1b03e0);break;}}['_handleJoinEvent'](_0x38a010){const _0x52e690=_0x1bdaba;let {unitIDs:_0x1c58b3,memberID:_0x4bec35,isForwarded:_0x5401c9}=_0x38a010;_0x1c58b3[_0x52e690(0x139)](_0x40e918=>{const _0x28649f=_0x52e690;if(!_0x5401c9&&this[_0x28649f(0xfd)][_0x28649f(0x331)](_0x40e918)&&this[_0x28649f(0x28a)](_0x40e918)[_0x28649f(0x335)](_0x1b4fd9['OTHER_CLIENTS_EDITING']),!this[_0x28649f(0xfd)]['has'](_0x40e918)||!this[_0x28649f(0xfd)]['get'](_0x40e918)[_0x28649f(0x331)](_0x4bec35)){let _0x52ee93=this[_0x28649f(0xfd)][_0x28649f(0x307)](_0x40e918)||new Set();_0x52ee93['add'](_0x4bec35),this[_0x28649f(0xfd)][_0x28649f(0x19d)](_0x40e918,_0x52ee93),this[_0x28649f(0x27c)](_0x4bec35);}}),_0x5401c9||this[_0x52e690(0x10e)]({'type':0x0,'memberID':this[_0x52e690(0x1b1)],'unitIDs':[...this[_0x52e690(0x21b)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x426522){const _0x11f869=_0x1bdaba;this[_0x11f869(0x277)](_0x426522);let _0x1fab8a=window[_0x11f869(0x215)](()=>{const _0x1c25ba=_0x11f869;this[_0x1c25ba(0xfd)][_0x1c25ba(0x139)](_0x3193b3=>{_0x3193b3['delete'](_0x426522);});},lr*0x2);this[_0x11f869(0x1a5)][_0x11f869(0x19d)](_0x426522,_0x1fab8a);}['_removeClearOtherTimer'](_0x6c132d){const _0x346351=_0x1bdaba;if(this[_0x346351(0x1a5)][_0x346351(0x331)](_0x6c132d)){let _0xb562ac=this[_0x346351(0x1a5)]['get'](_0x6c132d);_0xb562ac&&window[_0x346351(0x1d7)](_0xb562ac),this[_0x346351(0x1a5)]['set'](_0x6c132d,null);}}[_0x1bdaba(0xdc)](_0x7b21b2){const _0x45e8e9=_0x1bdaba;let {memberID:_0x438423,unitIDs:_0x31498c}=_0x7b21b2;_0x31498c['forEach'](_0x19cd74=>{const _0x99030e=_0x5856;var _0x518f88;let _0x35d54c=this[_0x99030e(0xfd)][_0x99030e(0x307)](_0x19cd74);_0x35d54c&&(_0x35d54c[_0x99030e(0x195)](_0x438423),(_0x518f88=this[_0x99030e(0x28a)](_0x19cd74))==null||_0x518f88[_0x99030e(0x335)](_0x35d54c[_0x99030e(0x12c)]===0x0?_0x1b4fd9[_0x99030e(0x2ee)]:_0x1b4fd9[_0x99030e(0x35e)]));}),this[_0x45e8e9(0x277)](_0x438423);}[_0x1bdaba(0x177)](_0x121db7){const _0x235e8b=_0x1bdaba;this[_0x235e8b(0x27c)](_0x121db7[_0x235e8b(0x145)]);}[_0x1bdaba(0x10e)](_0x579243){const _0x54f7bd=_0x1bdaba;localStorage[_0x54f7bd(0x246)](ur,JSON[_0x54f7bd(0x26d)](_0x579243));}[_0x1bdaba(0x326)](){const _0x18c42f=_0x1bdaba;this['_heartbeatTimer']=window[_0x18c42f(0x1a1)](()=>{const _0x591f85=_0x18c42f;this[_0x591f85(0x10e)]({'type':0x2,'memberID':this[_0x591f85(0x1b1)]});},lr);}[_0x1bdaba(0x28a)](_0x1890f5){const _0x1ced76=_0x1bdaba;return this[_0x1ced76(0x31a)][_0x1ced76(0x331)](_0x1890f5)||this[_0x1ced76(0x31a)][_0x1ced76(0x19d)](_0x1890f5,new _0x2c1176(_0x1b4fd9[_0x1ced76(0x2ee)])),this[_0x1ced76(0x31a)][_0x1ced76(0x307)](_0x1890f5);}};export{sr as BrowserCollaborationSocketService,X as DesktopCollaborationStatusDisplayController,Gn as IURLService,cr as RemoteUniscriptService,Bn as SheetCollabCursorShape,$ as UniverCollaborationClientUIPlugin,dr as WebBrowserSingleActiveUnitService};
|
|
1
|
+
const _0x1617f0=_0x3f97;(function(_0x4e1d54,_0x13f045){const _0x372a55=_0x3f97,_0x52dda0=_0x4e1d54();while(!![]){try{const _0x689553=-parseInt(_0x372a55(0x175))/0x1+parseInt(_0x372a55(0x2b5))/0x2*(-parseInt(_0x372a55(0x309))/0x3)+-parseInt(_0x372a55(0x244))/0x4+-parseInt(_0x372a55(0x180))/0x5+parseInt(_0x372a55(0x318))/0x6*(parseInt(_0x372a55(0x381))/0x7)+-parseInt(_0x372a55(0x267))/0x8+parseInt(_0x372a55(0x25f))/0x9;if(_0x689553===_0x13f045)break;else _0x52dda0['push'](_0x52dda0['shift']());}catch(_0xda711a){_0x52dda0['push'](_0x52dda0['shift']());}}}(_0x5258,0xf238d));import{BOARD_TOP_RIGHT_MENU_LEADING_PART as _0xd5b259,IBoardElementStateService as _0x5b6ede,getBoardElementRenderObjectKey as _0x51b3ff}from'@univerjs-pro/boards-ui';import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x295cee,CollaborationController as _0x40434d,CollaborationSessionService as _0x2bf3ef,CollaborationSocketService as _0x2f7d12,CollaborationStatus as _0x446368,CollaborationUIEventId as _0x59a06c,CollaborationUIEventService as _0x173286,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x3c72bb,DEFAULT_WS_SESSION_TICKET_URL as _0x4e3e96,DataLoaderService as _0x1bd8f9,DocCollaborationEntity as _0x12de68,ILocalCacheService as _0x104cc7,LOCAL_CACHE_INTERVAL as _0x3da459,LOCAL_CACHE_INTERVAL_KEY as _0x102938,MemberService as _0x5a2207,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x301dce,SessionStatus as _0x115aae,UnitStatus as _0x4bc73b,UniverCollaborationClientPlugin as _0x491404,getLocalCacheKey as _0x330c9e}from'@univerjs-pro/collaboration-client';import{COLORS as _0x22757f,CanceledError as _0x3160d8,ColorKit as _0x50f555,DOC_RANGE_TYPE as _0x428944,DependentOn as _0x676be5,Disposable as _0x1c2a50,DisposableCollection as _0x297f55,ICommandService as _0x532b7c,IConfigService as _0x4c560f,IImageIoService as _0x310b1b,ILocalStorageService as _0x47f201,ILogService as _0x3abbf6,IUniverInstanceService as _0x265e32,Inject as _0x5973ac,Injector as _0x2ec2f3,LocaleService as _0x22f781,Optional as _0x448b77,Plugin as _0x504fec,PluginService as _0x1330b3,Rectangle as _0x21a066,RxDisposable as _0x5f47fd,ThemeService as _0x180db4,Tools as _0x52854c,UniverInstanceType as _0xa34316,Workbook as _0x360514,createIdentifier as _0xd1825e,debounce as _0x395474,fromEventSubject as _0x440d02,generateRandomId as _0xb298d,isFormulaId as _0x396926,isFormulaString as _0xed1796,isInternalEditorID as _0x5eb3ed,merge as _0x1690c4,mergeOverrideWithDependencies as _0x4c59cf,registerDependencies as _0x4d0604,toDisposable as _0x19bd84,touchDependencies as _0x10363f}from'@univerjs/core';import{BuiltInUIPart as _0x37de0e,IBeforeCloseService as _0x5c0c32,IMessageService as _0x3ae384,INotificationService as _0x3be3fa,IShortcutService as _0x2bce10,IUIPartsService as _0x5a8732,UniverUIPlugin as _0x44db6c,connectInjector as _0x1238a3,useDependency as _0x43df5e,useObservable as _0x500664}from'@univerjs/ui';import{BehaviorSubject as _0x2944e0,Subject as _0x44b05f,combineLatest as _0x42438d,debounceTime as _0xf8b30,distinctUntilChanged as _0x28be07,filter as _0x22a1e7,fromEvent as _0x19faf1,mapTo as _0x4ce272,merge as _0x3bf3c7,of as _0x44f9bb,shareReplay as _0x163086,switchMap as _0x163f7f,takeUntil as _0x1530df}from'rxjs';import{distinctUntilChanged as _0x2c09da,filter as _0x329d2d,map as _0x29416d,switchMap as _0x55d8ef,takeUntil as _0x45fbf9,throttleTime as _0x461829}from'rxjs/operators';import{Button as _0x59f921,MessageType as _0x4a0d12,Tooltip as _0x2d4897,clsx as _0x5d2bb8}from'@univerjs/design';import{LoadingMultiIcon as _0x192d81,OffLineIcon as _0x1f793d,OnLineIcon as _0x50cd74,WarningIcon as _0x441a7e}from'@univerjs/icons';import{createElement as _0x2cc6ea,useCallback as _0x5180fb,useMemo as _0x55877d}from'react';import{Fragment as _0x7136a,jsx as _0x4a46bd,jsxs as _0x1924a1}from'react/jsx-runtime';import{CollaborationEvent as _0x5539f3,ISnapshotServerService as _0x1f846c,ITransformService as _0x4f51ff,RevisionService as _0x4ac1de,SnapshotLoadStage as _0x55784d,SnapshotLoadingService as _0x35877a,UniverCollaborationPlugin as _0x4a090e,isTransformMutationFailure as _0x13b57e,isTransformMutationsWithChangesetSuccess as _0x9a542b}from'@univerjs-pro/collaboration';import{UniverLicensePlugin as _0xe2c765}from'@univerjs-pro/license';import{DocSelectionManagerService as _0x5ed90f,DocSkeletonManagerService as _0xb48022,DocStateChangeManagerService as _0x304aca,RichTextEditingMutation as _0x3d60a0,SetTextSelectionsOperation as _0x145cc4,UniverDocsPlugin as _0x617367}from'@univerjs/docs';import{DocIMEInputManagerService as _0x4df0a0,IDocClipboardService as _0x5e1915,NodePositionConvertToCursor as _0x3f6e79,NodePositionConvertToRectRange as _0x4f27,SetDocZoomRatioOperation as _0x15d8ec,TEXT_RANGE_LAYER_INDEX as _0x291346,UniverDocsUIPlugin as _0x2c242f}from'@univerjs/docs-ui';import{IRenderManagerService as _0xec082e,Rect as _0x1ecb53,RegularPolygon as _0x58fed5,SHEET_VIEWPORT_KEY as _0xb0e20a,Shape as _0x2d8c31,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x344552,UniverRenderEnginePlugin as _0x5d96fe,Vector2 as _0x27f15b,getColor as _0x26c5b8}from'@univerjs/engine-render';import{HTTPService as _0x31bbfb,ISocketService as _0x31177a,UniverNetworkPlugin as _0x527bed,WebSocketService as _0x357596}from'@univerjs/network';import{FormulaExecuteStageType as _0x473044,FormulaExecutedStateType as _0xf3b8d7,SetFormulaCalculationNotificationMutation as _0x4157ee,SetFormulaCalculationStartMutation as _0x348578,deserializeRangeWithSheet as _0x532fc9,serializeRangeWithSheet as _0x1472e3}from'@univerjs/engine-formula';import{EffectRefRangId as _0x117dfc,RefRangeService as _0x24b23e,SetSelectionsOperation as _0x3f9b0d,SetWorksheetActivateCommand as _0x5e4eb4,SheetsSelectionsService as _0xb4598,handleDeleteRangeMoveLeft as _0x2a71a1,handleDeleteRangeMoveUp as _0x47ae48,handleIRemoveCol as _0x14810d,handleIRemoveRow as _0x352c9a,handleInsertCol as _0x5621f6,handleInsertRangeMoveDown as _0x1eac40,handleInsertRangeMoveRight as _0x366cbc,handleInsertRow as _0x335329,handleMoveRange as _0x265613,runRefRangeMutations as _0x39d73e}from'@univerjs/sheets';import{ISlideDrawingStateService as _0x292b64,buildDrawingOKey as _0x291f4f}from'@univerjs-pro/slides-ui';import{ISheetLoadingRenderService as _0x60db1,SheetSkeletonManagerService as _0x50f83b,getCoordByCell as _0x341d03,getSheetObject as _0x5ca888}from'@univerjs/sheets-ui';import{IRemoteInstanceService as _0xd4d073}from'@univerjs/rpc';import{ErrorCode as _0x20687a}from'@univerjs/protocol';function hn(_0x272407){const _0x18dcf3=_0x3f97;switch(_0x272407){case _0x446368[_0x18dcf3(0x16a)]:return{'icon':_0x4a46bd(_0x1f793d,{}),'colorClass':_0x18dcf3(0x160),'i18nKey':_0x18dcf3(0x3c2),'tooltipKey':_0x18dcf3(0x25c),'clickable':!0x0,'indicator':_0x18dcf3(0x33a)};case _0x446368[_0x18dcf3(0x2f1)]:return{'icon':_0x4a46bd(_0x1f793d,{}),'colorClass':_0x18dcf3(0x1ae),'i18nKey':_0x18dcf3(0x153),'clickable':!0x1,'indicator':'static'};case _0x446368[_0x18dcf3(0x19d)]:return{'icon':_0x4a46bd(_0x192d81,{}),'colorClass':_0x18dcf3(0x36d),'i18nKey':_0x18dcf3(0x2a6),'clickable':!0x1,'indicator':_0x18dcf3(0x1ea)};case _0x446368['NOT_COLLAB']:return{'icon':_0x4a46bd(_0x50cd74,{}),'colorClass':_0x18dcf3(0x2e8),'i18nKey':'collaboration-client-ui.collabStatus.notCollab','clickable':!0x1,'indicator':_0x18dcf3(0x33a)};case _0x446368[_0x18dcf3(0x34e)]:case _0x446368[_0x18dcf3(0x395)]:return{'icon':_0x4a46bd(_0x192d81,{}),'colorClass':_0x18dcf3(0x36d),'i18nKey':_0x18dcf3(0x172),'clickable':!0x1,'indicator':_0x18dcf3(0x1ea)};case _0x446368[_0x18dcf3(0x39d)]:return{'icon':_0x4a46bd(_0x192d81,{}),'colorClass':_0x18dcf3(0x36d),'i18nKey':_0x18dcf3(0x172),'clickable':!0x1,'indicator':_0x18dcf3(0x1ea)};case _0x446368['SYNCED']:return{'icon':_0x4a46bd(_0x50cd74,{}),'colorClass':_0x18dcf3(0x389),'i18nKey':_0x18dcf3(0x190),'clickable':!0x1,'indicator':'static'};}}function gn(_0x50d5c0){const _0x391057=_0x3f97;let {status$:_0x2d70ea}=_0x50d5c0,_0x4914fb=_0x500664(_0x2d70ea,_0x446368[_0x391057(0x2f8)]),_0x3d9664=_0x43df5e(_0x22f781),_0x44cac4=_0x43df5e(_0x2bf3ef),_0xabf02f=_0x55877d(()=>hn(_0x4914fb),[_0x4914fb]),_0x10627f=_0x4914fb!==_0x446368['OFFLINE'],_0x3574a4=_0x3d9664['t'](_0xabf02f[_0x391057(0x15f)]),_0x3d879c=_0xabf02f[_0x391057(0x2a2)]?_0x3d9664['t'](_0xabf02f[_0x391057(0x2a2)]):_0x3574a4,_0x25e8b5=_0x5180fb(()=>{const _0x5e39ce=_0x391057;_0x10627f||_0x44cac4[_0x5e39ce(0x38a)]();},[_0x10627f,_0x44cac4]),_0x3da28d=_0x5180fb(_0x2fb1ca=>{const _0x252116=_0x391057;!_0x10627f&&(_0x2fb1ca[_0x252116(0x293)]===_0x252116(0x28f)||_0x2fb1ca[_0x252116(0x293)]==='\x20')&&(_0x2fb1ca[_0x252116(0x373)](),_0x44cac4['reconnect']());},[_0x10627f,_0x44cac4]),_0x26e9de=_0x4a46bd(_0x391057(0x3a9),{'className':_0x5d2bb8(_0x391057(0x197),_0x391057(0x2ce),_0xabf02f[_0x391057(0x1e0)],{'univer-animate-spin':_0xabf02f[_0x391057(0x1f4)]==='spin','univer-animate-pulse':_0xabf02f[_0x391057(0x1f4)]===_0x391057(0x1fa)}),'aria-hidden':'true','children':_0xabf02f[_0x391057(0x1b4)]}),_0x49d01e=_0x4a46bd(_0x391057(0x3a9),{'className':_0x5d2bb8(_0x391057(0x197),_0x391057(0x312),_0x391057(0x391),_0x391057(0x18d),_0x391057(0x2af),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0xabf02f['clickable'],'univer-cursor-default':!_0xabf02f['clickable']}),'children':_0x26e9de});return _0xabf02f[_0x391057(0x265)]?_0x4a46bd(_0x2d4897,{'title':_0x3d879c,'placement':_0x391057(0x20d),'children':_0x4a46bd('button',{'type':_0x391057(0x1a5),'onClick':_0x25e8b5,'onKeyDown':_0x3da28d,'className':_0x5d2bb8(_0x391057(0x30b),_0x391057(0x38e),'univer-m-0\x20univer-p-0',_0x391057(0x26b)),'aria-label':_0x3574a4+_0x391057(0x16b)+_0x3d879c,'role':'status','aria-live':_0x391057(0x2d6),'aria-atomic':_0x391057(0x2b6),'children':_0x49d01e})}):_0x4a46bd(_0x2d4897,{'title':_0x3d879c,'placement':'bottom','children':_0x4a46bd(_0x391057(0x3d2),{'className':_0x5d2bb8('univer-inline-flex\x20univer-items-center\x20univer-justify-center',_0x391057(0x38e),_0x391057(0x374)),'aria-label':_0x3574a4,'role':_0x391057(0x213),'aria-live':_0x391057(0x2d6),'aria-atomic':_0x391057(0x2b6),'children':_0x49d01e})});}function K(_0x13ec95){'@babel/helpers - typeof';const _0x59c232=_0x3f97;return K=typeof Symbol=='function'&&typeof Symbol[_0x59c232(0x355)]=='symbol'?function(_0x10ed1d){return typeof _0x10ed1d;}:function(_0x1861f1){const _0x4c5d2e=_0x59c232;return _0x1861f1&&typeof Symbol==_0x4c5d2e(0x266)&&_0x1861f1[_0x4c5d2e(0x378)]===Symbol&&_0x1861f1!==Symbol['prototype']?_0x4c5d2e(0x1ab):typeof _0x1861f1;},K(_0x13ec95);}function _n(_0x1d1072,_0x250b18){const _0x50667b=_0x3f97;if(K(_0x1d1072)!=_0x50667b(0x2a0)||!_0x1d1072)return _0x1d1072;var _0x58998b=_0x1d1072[Symbol[_0x50667b(0x20a)]];if(_0x58998b!==void 0x0){var _0x1a960f=_0x58998b['call'](_0x1d1072,_0x250b18||_0x50667b(0x198));if(K(_0x1a960f)!=_0x50667b(0x2a0))return _0x1a960f;throw TypeError(_0x50667b(0x1a7));}return(_0x250b18==='string'?String:Number)(_0x1d1072);}function vn(_0x23812e){const _0x23d94f=_0x3f97;var _0x4402ba=_n(_0x23812e,_0x23d94f(0x376));return K(_0x4402ba)==_0x23d94f(0x1ab)?_0x4402ba:_0x4402ba+'';}function q(_0x30df8c,_0x3cb26a,_0x10ba83){const _0x2c0e6f=_0x3f97;return(_0x3cb26a=vn(_0x3cb26a))in _0x30df8c?Object[_0x2c0e6f(0x36f)](_0x30df8c,_0x3cb26a,{'value':_0x10ba83,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x30df8c[_0x3cb26a]=_0x10ba83,_0x30df8c;}function J(_0x3a9c35,_0x4fde06){return function(_0x27ac04,_0xbb5cce){_0x4fde06(_0x27ac04,_0xbb5cce,_0x3a9c35);};}function Y(_0x275d47,_0x5693ce,_0x4fb319,_0x597bf9){const _0x479bb2=_0x3f97;var _0x21430a=arguments[_0x479bb2(0x225)],_0x314cad=_0x21430a<0x3?_0x5693ce:_0x597bf9===null?_0x597bf9=Object[_0x479bb2(0x1c3)](_0x5693ce,_0x4fb319):_0x597bf9,_0x4edca9;if(typeof Reflect==_0x479bb2(0x2a0)&&typeof Reflect[_0x479bb2(0x328)]==_0x479bb2(0x266))_0x314cad=Reflect['decorate'](_0x275d47,_0x5693ce,_0x4fb319,_0x597bf9);else{for(var _0xc23f7=_0x275d47[_0x479bb2(0x225)]-0x1;_0xc23f7>=0x0;_0xc23f7--)(_0x4edca9=_0x275d47[_0xc23f7])&&(_0x314cad=(_0x21430a<0x3?_0x4edca9(_0x314cad):_0x21430a>0x3?_0x4edca9(_0x5693ce,_0x4fb319,_0x314cad):_0x4edca9(_0x5693ce,_0x4fb319))||_0x314cad);}return _0x21430a>0x3&&_0x314cad&&Object[_0x479bb2(0x36f)](_0x5693ce,_0x4fb319,_0x314cad),_0x314cad;}let X=class extends _0x1c2a50{constructor(_0x9392d6,_0x8d5b12,_0x294f66,_0x288197){const _0x44e468=_0x3f97;super(),this[_0x44e468(0x341)]=_0x9392d6,this[_0x44e468(0x333)]=_0x8d5b12,this['_collaborationController']=_0x294f66,this[_0x44e468(0x268)]=_0x288197,q(this,_0x44e468(0x33c),new _0x2944e0(_0x446368[_0x44e468(0x2f8)])),this[_0x44e468(0x1ee)](),this[_0x44e468(0x326)]();}[_0x1617f0(0x326)](){const _0x4f176a=_0x1617f0;this['disposeWithMe'](_0x3bf3c7(this[_0x4f176a(0x341)][_0x4f176a(0x336)],this[_0x4f176a(0x341)][_0x4f176a(0x33f)](_0xa34316[_0x4f176a(0x2a5)]),this[_0x4f176a(0x341)][_0x4f176a(0x33f)](_0xa34316[_0x4f176a(0x26d)]))[_0x4f176a(0x1fd)](_0x29416d(()=>bn(this[_0x4f176a(0x341)])),_0x2c09da(),_0x163f7f(_0x508dd8=>_0x508dd8?this['_collaborationController'][_0x4f176a(0x33e)](_0x508dd8):_0x44f9bb(null)),_0x163f7f(_0x2bd33c=>_0x2bd33c?_0x2bd33c[_0x4f176a(0x28b)]:_0x44f9bb(_0x446368[_0x4f176a(0x2f8)])))[_0x4f176a(0x2f3)](_0x3a451b=>{const _0x308e4d=_0x4f176a;this[_0x308e4d(0x33c)][_0x308e4d(0x32c)](_0x3a451b);}));}['_initStatusComponent'](){const _0x474325=_0x1617f0;this[_0x474325(0x2ed)](this[_0x474325(0x268)][_0x474325(0x1da)](_0x37de0e[_0x474325(0x15a)],()=>_0x1238a3(Sn({'status$':this[_0x474325(0x33c)]['asObservable']()}),this[_0x474325(0x333)])));}};X=Y([J(0x0,_0x265e32),J(0x1,_0x5973ac(_0x2ec2f3)),J(0x2,_0x5973ac(_0x40434d)),J(0x3,_0x5a8732)],X);let yn=class extends _0x1c2a50{constructor(_0x11d09f,_0x36ed2d,_0x8c9258,_0x22c3f1){const _0x510c54=_0x1617f0;super(),this[_0x510c54(0x341)]=_0x11d09f,this[_0x510c54(0x333)]=_0x36ed2d,this[_0x510c54(0x28d)]=_0x8c9258,this[_0x510c54(0x268)]=_0x22c3f1,q(this,'_status$',new _0x2944e0(_0x446368['NOT_COLLAB'])),this[_0x510c54(0x1ee)](),this[_0x510c54(0x326)]();}['_initStatusListener'](){const _0x3c4720=_0x1617f0;this[_0x3c4720(0x2ed)](_0x3bf3c7(_0x44f9bb(null),this[_0x3c4720(0x341)][_0x3c4720(0x33f)](_0xa34316['UNIVER_BOARD']))['pipe'](_0x29416d(()=>xn(this[_0x3c4720(0x341)])),_0x2c09da(),_0x163f7f(_0x5d3868=>_0x5d3868?this[_0x3c4720(0x28d)][_0x3c4720(0x33e)](_0x5d3868):_0x44f9bb(null)),_0x163f7f(_0x12b7b6=>_0x12b7b6?_0x12b7b6[_0x3c4720(0x28b)]:_0x44f9bb(_0x446368[_0x3c4720(0x2f8)])))[_0x3c4720(0x2f3)](_0x56bba7=>{const _0x5087e3=_0x3c4720;this[_0x5087e3(0x33c)][_0x5087e3(0x32c)](_0x56bba7);}));}[_0x1617f0(0x1ee)](){const _0x123af2=_0x1617f0;this['disposeWithMe'](this['_uiPartsService'][_0x123af2(0x1da)](_0xd5b259,()=>_0x1238a3(Sn({'status$':this[_0x123af2(0x33c)]['asObservable']()}),this[_0x123af2(0x333)])));}};yn=Y([J(0x0,_0x265e32),J(0x1,_0x5973ac(_0x2ec2f3)),J(0x2,_0x5973ac(_0x40434d)),J(0x3,_0x5a8732)],yn);function bn(_0x300c05){const _0x4b4089=_0x1617f0;let _0x57e90f=_0x300c05[_0x4b4089(0x2e4)](),_0x587c59=_0x57e90f==null?void 0x0:_0x57e90f[_0x4b4089(0x17b)]();if(_0x587c59&&!_0x5eb3ed(_0x587c59))return _0x587c59;let _0x2fc551=_0x300c05[_0x4b4089(0x2b1)](_0xa34316[_0x4b4089(0x2a5)]),_0x5040b9=_0x2fc551==null?void 0x0:_0x2fc551[_0x4b4089(0x17b)]();if(_0x5040b9&&!_0x5eb3ed(_0x5040b9))return _0x5040b9;let _0x2d5807=_0x300c05[_0x4b4089(0x2b1)](_0xa34316[_0x4b4089(0x26d)]);if(_0x2d5807)return _0x2d5807['getUnitId']();let _0x2fc201=_0x300c05[_0x4b4089(0x1d4)](_0xa34316['UNIVER_DOC'])['find'](_0x1ae21b=>!_0x5eb3ed(_0x1ae21b['getUnitId']()));return _0x2fc201?_0x2fc201['getUnitId']():null;}function xn(_0x3a33d4){const _0x13d9d6=_0x1617f0;var _0x4d629c;let _0x457c06=_0x3a33d4['getCurrentUnitOfType'](_0xa34316[_0x13d9d6(0x302)]);return(_0x4d629c=_0x457c06==null?void 0x0:_0x457c06['getUnitId']())==null?null:_0x4d629c;}function Sn(_0x22890b){let {status$:_0x20a57b}=_0x22890b;return function(){return _0x4a46bd(gn,{'status$':_0x20a57b});};}var Cn=_0x1617f0(0x17d),wn='1.0.0-alpha.8';const Tn={};let En=class extends _0x5f47fd{constructor(_0x4fcaf3,_0x4edc3c){const _0x426831=_0x1617f0;super(),this[_0x426831(0x19b)]=_0x4fcaf3,this['_imageIoService']=_0x4edc3c,this[_0x426831(0x363)]();}[_0x1617f0(0x363)](){const _0x2efd4f=_0x1617f0;let _0x5a100e=this;this[_0x2efd4f(0x2ed)](this['_docClipboardService'][_0x2efd4f(0x343)]({'onBeforePasteImage':async _0xfccf04=>{const _0x31e8b5=_0x2efd4f;let _0x23ce11=await _0x5a100e[_0x31e8b5(0x264)]['saveImage'](_0xfccf04);return _0x23ce11?{'source':_0x23ce11[_0x31e8b5(0x28c)],'imageSourceType':_0x23ce11[_0x31e8b5(0x257)]}:null;}}));}};En=Y([J(0x0,_0x5e1915),J(0x1,_0x310b1b)],En);function Dn(_0x53cb55,_0x463c73){const _0x3ef7ad=_0x1617f0;_0x53cb55[_0x3ef7ad(0x3b3)](),_0x53cb55[_0x3ef7ad(0x2f5)]=_0x3ef7ad(0x269);let _0x1320a7=_0x53cb55[_0x3ef7ad(0x356)](_0x463c73)[_0x3ef7ad(0x1ec)];return _0x53cb55[_0x3ef7ad(0x3d9)](),Math[_0x3ef7ad(0x35e)](_0x1320a7+0x8,0xc8);}function On(_0x2be9f4,_0x57e3b0){const _0x16d123=_0x1617f0;var _0x3f0372,_0x42d53e,_0x5974ec;let {radius:_0x217e11,width:_0x5140b4,height:_0x27594d}=_0x57e3b0;_0x217e11=(_0x3f0372=_0x217e11)==null?0x0:_0x3f0372,_0x5140b4=(_0x42d53e=_0x5140b4)==null?0x1e:_0x42d53e,_0x27594d=(_0x5974ec=_0x27594d)==null?0x1e:_0x5974ec;let _0x46d0ff=0x0,_0x225202=0x0,_0x3312f2=0x0;_0x46d0ff=_0x225202=_0x3312f2=Math[_0x16d123(0x35e)](_0x217e11,_0x5140b4/0x2,_0x27594d/0x2),_0x2be9f4[_0x16d123(0x22d)](),_0x2be9f4[_0x16d123(0x29c)](_0x46d0ff,0x0),_0x2be9f4[_0x16d123(0x1f9)](_0x5140b4-_0x225202,0x0),_0x2be9f4[_0x16d123(0x1ce)](_0x5140b4-_0x225202,_0x225202,_0x225202,Math['PI']*0x3/0x2,0x0,!0x1),_0x2be9f4[_0x16d123(0x1f9)](_0x5140b4,_0x27594d-_0x3312f2),_0x2be9f4[_0x16d123(0x1ce)](_0x5140b4-_0x3312f2,_0x27594d-_0x3312f2,_0x3312f2,0x0,Math['PI']/0x2,!0x1),_0x2be9f4[_0x16d123(0x1f9)](0x0,_0x27594d),_0x2be9f4[_0x16d123(0x1f9)](0x0,_0x46d0ff),_0x2be9f4[_0x16d123(0x1ce)](_0x46d0ff,_0x46d0ff,_0x46d0ff,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2be9f4[_0x16d123(0x211)](),_0x57e3b0['fill']&&(_0x2be9f4[_0x16d123(0x3b3)](),_0x2be9f4[_0x16d123(0x235)]=_0x57e3b0[_0x16d123(0x21a)],_0x57e3b0[_0x16d123(0x1e8)]===_0x16d123(0x250)?_0x2be9f4[_0x16d123(0x21a)](_0x16d123(0x250)):_0x2be9f4[_0x16d123(0x21a)](),_0x2be9f4['restore']());}var kn=class e extends _0x2d8c31{constructor(_0x25c939,_0x136000){const _0x30f829=_0x1617f0;super(_0x25c939,_0x136000),q(this,_0x30f829(0x1cf),void 0x0),q(this,'text',void 0x0),this[_0x30f829(0x1cf)]=_0x136000==null?void 0x0:_0x136000[_0x30f829(0x1cf)],this[_0x30f829(0x2e5)]=_0x136000==null?void 0x0:_0x136000[_0x30f829(0x2e5)];}static[_0x1617f0(0x308)](_0x259b7c,_0xbe34dc){const _0x224ae5=_0x1617f0;let {text:_0x4ef912,color:_0x549055}=_0xbe34dc;_0x259b7c['save'](),_0x259b7c[_0x224ae5(0x2f5)]=_0x224ae5(0x18e);let _0x203083=_0x259b7c[_0x224ae5(0x356)](_0x4ef912)[_0x224ae5(0x1ec)];if(On(_0x259b7c,{'height':0x14,'radius':0x4,'width':Dn(_0x259b7c,_0x4ef912),'fill':_0x549055,'evented':!0x1}),_0x259b7c[_0x224ae5(0x235)]=_0x224ae5(0x2a9),_0x203083>0xc0){let _0x122eb1='',_0x160f59=0x0;for(let _0xfe9041 of _0x4ef912){let _0x423e0d=_0x259b7c['measureText'](_0xfe9041)['width'];if(_0x160f59+_0x423e0d<=0xc0-_0x259b7c['measureText']('...')[_0x224ae5(0x1ec)])_0x122eb1+=_0xfe9041,_0x160f59+=_0x423e0d;else{_0x122eb1+=_0x224ae5(0x372);break;}}_0x259b7c[_0x224ae5(0x21f)](_0x122eb1,0x4,0xf);}else _0x259b7c[_0x224ae5(0x21f)](_0x4ef912,0x4,0xf);_0x259b7c[_0x224ae5(0x3d9)]();}[_0x1617f0(0x200)](_0x57899){const _0x157503=_0x1617f0;e[_0x157503(0x308)](_0x57899,this);}};const An=0x138a;var jn=class extends _0x2d8c31{constructor(_0x35e2e1,_0x15e4f0){const _0xead8aa=_0x1617f0;super(_0x35e2e1,{..._0x15e4f0,'evented':!0x1}),q(this,_0xead8aa(0x271),_0xead8aa(0x1d0)),q(this,'_name',''),q(this,'_showText',!0x0),_0x15e4f0&&this[_0xead8aa(0x29e)](_0x15e4f0);}[_0x1617f0(0x29e)](_0x3f5ce6){const _0x533a25=_0x1617f0;var _0x2772bf,_0x2f34da,_0x269f05,_0x31eeca,_0x75684e,_0x3df993,_0x380218,_0x1f5fb7;this[_0x533a25(0x271)]=(_0x2772bf=_0x3f5ce6[_0x533a25(0x1cf)])==null?this['_color']:_0x2772bf,this[_0x533a25(0x18b)]=(_0x2f34da=_0x3f5ce6[_0x533a25(0x339)])==null?this[_0x533a25(0x18b)]:_0x2f34da,this[_0x533a25(0x2a4)]=(_0x269f05=_0x3f5ce6['showText'])==null?this[_0x533a25(0x2a4)]:_0x269f05,this[_0x533a25(0x1e4)]=!0x1,this[_0x533a25(0x385)]({'left':(_0x31eeca=_0x3f5ce6[_0x533a25(0x273)])==null?this[_0x533a25(0x273)]:_0x31eeca,'top':(_0x75684e=_0x3f5ce6[_0x533a25(0x296)])==null?this[_0x533a25(0x296)]:_0x75684e,'width':(_0x3df993=_0x3f5ce6[_0x533a25(0x1ec)])==null?this[_0x533a25(0x1ec)]:_0x3df993,'height':(_0x380218=_0x3f5ce6['height'])==null?this[_0x533a25(0x2f2)]:_0x380218,'angle':(_0x1f5fb7=_0x3f5ce6[_0x533a25(0x1de)])==null?this[_0x533a25(0x1de)]:_0x1f5fb7});}[_0x1617f0(0x200)](_0x645887){const _0x292149=_0x1617f0;_0x645887[_0x292149(0x3b3)](),_0x645887[_0x292149(0x2fa)]=this['_color'],_0x645887[_0x292149(0x32f)]=this[_0x292149(0x2fc)]||1.5,_0x645887[_0x292149(0x301)]([0x6,0x4]),_0x645887[_0x292149(0x176)](0x0,0x0,this[_0x292149(0x1ec)],this[_0x292149(0x2f2)]),_0x645887[_0x292149(0x3d9)](),this[_0x292149(0x2a4)]&&(_0x645887[_0x292149(0x3b3)](),_0x645887['transform'](0x1,0x0,0x0,0x1,this[_0x292149(0x1ec)],-0x14),kn[_0x292149(0x308)](_0x645887,{'text':this[_0x292149(0x18b)],'color':this[_0x292149(0x271)]}),_0x645887[_0x292149(0x3d9)]());}};const Mn=[_0x1617f0(0x38d),_0x1617f0(0x2ef),_0x1617f0(0x3af),_0x1617f0(0x1c0),_0x1617f0(0x397),_0x1617f0(0x1f2)];var Z=class extends _0x1c2a50{constructor(..._0x794617){const _0x15890b=_0x1617f0;super(..._0x794617),q(this,_0x15890b(0x155),new Map()),q(this,_0x15890b(0x156),0x0);}[_0x1617f0(0x215)](_0x3dcc16){const _0x920c3a=_0x1617f0;if(this['_assignedColors'][_0x920c3a(0x195)](_0x3dcc16))return this['_assignedColors'][_0x920c3a(0x3ca)](_0x3dcc16);let _0x630d49=Mn[this[_0x920c3a(0x156)]];return this[_0x920c3a(0x156)]=(this[_0x920c3a(0x156)]+0x1)%Mn[_0x920c3a(0x225)],this[_0x920c3a(0x155)][_0x920c3a(0x361)](_0x3dcc16,_0x630d49),_0x630d49;}};function Nn(_0x3f14f2){const _0x2ad4a9=_0x1617f0;let _0x1b7cf1;try{_0x1b7cf1=JSON[_0x2ad4a9(0x1d5)](_0x3f14f2);}catch{return null;}if(typeof _0x1b7cf1!=_0x2ad4a9(0x2a0)||!_0x1b7cf1)return null;let _0x220b22=_0x1b7cf1;if(_0x220b22[_0x2ad4a9(0x2e3)]!==_0x2ad4a9(0x229)||typeof _0x220b22[_0x2ad4a9(0x260)]!='string'||typeof _0x220b22[_0x2ad4a9(0x2b3)]!='string')return null;let _0x25a361=Array[_0x2ad4a9(0x1a4)](_0x220b22['selectedIds'])?_0x220b22[_0x2ad4a9(0x1c9)][_0x2ad4a9(0x3a8)](_0x3b9a1d=>typeof _0x3b9a1d==_0x2ad4a9(0x376)):[],_0x38a188=typeof _0x220b22[_0x2ad4a9(0x1bf)]=='string'?_0x220b22[_0x2ad4a9(0x1bf)]:null;return{'kind':'board-element-selection','unitId':_0x220b22['unitId'],'subUnitId':_0x220b22[_0x2ad4a9(0x2b3)],'selectedIds':_0x25a361,'focusedId':_0x38a188};}let Pn=class extends _0x5f47fd{get[_0x1617f0(0x342)](){const _0x692034=_0x1617f0;return this[_0x692034(0x3cf)][_0x692034(0x1e1)]();}get[_0x1617f0(0x212)](){const _0x5f1ef8=_0x1617f0;return this['_roomMembers$'][_0x5f1ef8(0x1e1)]();}constructor(_0x5e3a5f,_0x3d0f0c,_0x280822,_0x578ea4,_0x3c04da){const _0x1cf146=_0x1617f0;super(),this[_0x1cf146(0x15e)]=_0x5e3a5f,this[_0x1cf146(0x2cb)]=_0x3d0f0c,this[_0x1cf146(0x230)]=_0x280822,this[_0x1cf146(0x2b9)]=_0x578ea4,this[_0x1cf146(0x368)]=_0x3c04da,q(this,_0x1cf146(0x216),!0x1),q(this,_0x1cf146(0x363),!0x1),q(this,_0x1cf146(0x3cf),new _0x2944e0(new Map())),q(this,_0x1cf146(0x3d0),this[_0x1cf146(0x3cf)][_0x1cf146(0x24f)]()),q(this,_0x1cf146(0x240),new _0x2944e0([])),q(this,_0x1cf146(0x2e1),this[_0x1cf146(0x240)][_0x1cf146(0x1fd)](_0xf8b30(0x12c))),q(this,_0x1cf146(0x22f),_0x395474(_0xd2acbc=>{const _0x1b28f7=_0x1cf146;let _0x5dfe03=_0xd2acbc['context'];if(!_0x5dfe03||_0x5dfe03[_0x1b28f7(0x260)]!==this[_0x1b28f7(0x15e)])return;let _0xbf0c56={'kind':_0x1b28f7(0x229),'unitId':_0x5dfe03['unitId'],'subUnitId':_0x5dfe03['subUnitId'],'selectedIds':_0xd2acbc[_0x1b28f7(0x1c9)][_0x1b28f7(0x3a8)](_0x2b0e0b=>typeof _0x2b0e0b==_0x1b28f7(0x376)),'focusedId':_0xd2acbc[_0x1b28f7(0x1bf)]},_0x342ad1={'eventID':_0x5539f3['UPDATE_CURSOR'],'data':{'unitID':this[_0x1b28f7(0x15e)],'memberID':this['_session'][_0x1b28f7(0x31e)](),'selection':JSON[_0x1b28f7(0x3bc)](_0xbf0c56)}};this[_0x1b28f7(0x2cb)]['send'](_0x342ad1,this[_0x1b28f7(0x15e)]);},0x64));}['dispose'](){const _0x2492f8=_0x1617f0;super[_0x2492f8(0x2a7)](),this[_0x2492f8(0x3cf)][_0x2492f8(0x32c)](new Map()),this[_0x2492f8(0x3cf)]['complete'](),this[_0x2492f8(0x240)][_0x2492f8(0x32c)]([]),this['_roomMembers$'][_0x2492f8(0x39b)]();}[_0x1617f0(0x2bd)](){const _0x457b9a=_0x1617f0;this['_init']||(this['_init']=!0x0,this[_0x457b9a(0x2cb)][_0x457b9a(0x233)]['pipe'](_0x1530df(this[_0x457b9a(0x337)]))[_0x457b9a(0x2f3)](_0x5d085e=>{const _0x172738=_0x457b9a;_0x5d085e===_0x115aae['ONLINE']?this[_0x172738(0x3c8)]():this[_0x172738(0x313)]();}),this[_0x457b9a(0x2cb)][_0x457b9a(0x2fe)][_0x457b9a(0x1fd)](_0x1530df(this[_0x457b9a(0x337)]))['subscribe'](_0x30023f=>{const _0x26b613=_0x457b9a;let _0x1dc222=_0x30023f['eventID'];_0x1dc222===_0x5539f3[_0x26b613(0x30a)]&&this[_0x26b613(0x15d)](_0x30023f),_0x1dc222===_0x5539f3[_0x26b613(0x1db)]&&this[_0x26b613(0x316)](_0x30023f);}),this['_boardElementStateService'][_0x457b9a(0x37b)]['pipe'](_0x1530df(this[_0x457b9a(0x337)]))['subscribe'](_0x484bda=>{const _0x41625c=_0x457b9a;this[_0x41625c(0x216)]&&this[_0x41625c(0x22f)](_0x484bda);}));}[_0x1617f0(0x15d)](_0x387f4d){const _0x51180e=_0x1617f0;var _0x525341,_0x33c83b,_0x1c1ee7,_0x387fc9;let {memberID:_0x26074a,selection:_0x521a8c}=_0x387f4d['data'];if(_0x26074a===((_0x525341=(_0x33c83b=this[_0x51180e(0x2cb)])['getMemberID'])==null?void 0x0:_0x525341['call'](_0x33c83b)))return;let _0x74a0f4=Nn(_0x521a8c);if(!_0x74a0f4||_0x74a0f4['unitId']!==this[_0x51180e(0x15e)])return;let _0x4029a9=(_0x1c1ee7=(_0x387fc9=this[_0x51180e(0x2b9)][_0x51180e(0x2b2)](this[_0x51180e(0x15e)],_0x26074a))==null?void 0x0:_0x387fc9['name'])==null?_0x51180e(0x2d9):_0x1c1ee7,_0x10bfe2={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x26074a),'name':_0x4029a9,'unitId':_0x74a0f4[_0x51180e(0x260)],'subUnitId':_0x74a0f4[_0x51180e(0x2b3)],'selectedIds':_0x74a0f4['selectedIds'],'focusedId':_0x74a0f4[_0x51180e(0x1bf)],'selection':_0x521a8c},_0x130a64=new Map(this[_0x51180e(0x342)]);_0x130a64['set'](_0x26074a,_0x10bfe2),this[_0x51180e(0x3cf)][_0x51180e(0x32c)](_0x130a64);}[_0x1617f0(0x316)](_0x21b21d){const _0x376679=_0x1617f0;let {memberID:_0xd5e96e}=_0x21b21d[_0x376679(0x20f)],_0x13bb7b=new Map(this[_0x376679(0x342)]);_0x13bb7b[_0x376679(0x1ca)](_0xd5e96e),this['_cursorInfo$'][_0x376679(0x32c)](_0x13bb7b);}[_0x1617f0(0x3c8)](){const _0x45867b=_0x1617f0;this[_0x45867b(0x216)]=!0x0,this[_0x45867b(0x22f)](this[_0x45867b(0x368)]['getSnapshot']());}[_0x1617f0(0x313)](){const _0x4beba8=_0x1617f0;this[_0x4beba8(0x216)]=!0x1;}};Pn=Y([J(0x2,_0x5973ac(Z)),J(0x3,_0x5973ac(_0x5a2207)),J(0x4,_0x5973ac(_0x5b6ede))],Pn);function Fn(_0x35e2fe){let _0x567362='';for(let _0x2d2e96 of _0x35e2fe){let {startOffset:_0x5bd458,endOffset:_0x2841c3,isActive:_0x41a9ad,rangeType:_0x3013a4,segmentId:_0x2cbe44,segmentPage:_0x5c46ac}=_0x2d2e96;_0x567362['length']&&(_0x567362+=','),_0x567362+=_0x5bd458+':'+_0x2841c3+':'+(_0x41a9ad?'1':'0')+':'+_0x3013a4+':'+_0x2cbe44+':'+_0x5c46ac;}return _0x567362;}function In(_0xed1859){const _0x2acce3=_0x1617f0;let _0x320835=_0xed1859[_0x2acce3(0x36a)](','),_0x97a747=[];for(let _0x3ab38a of _0x320835){let [_0x4027f7,_0x46a02e,_0x4465d9,_0x5254f0,_0x419f2c,_0x54e1fd]=_0x3ab38a[_0x2acce3(0x36a)](':');_0x97a747['push']({'startOffset':Number(_0x4027f7),'endOffset':Number(_0x46a02e),'collapsed':_0x4027f7===_0x46a02e,'isActive':_0x4465d9==='1','rangeType':_0x5254f0===_0x428944['TEXT']?_0x428944[_0x2acce3(0x214)]:_0x428944[_0x2acce3(0x2dc)],'segmentId':typeof _0x419f2c==_0x2acce3(0x376)?String(_0x419f2c):'','segmentPage':Number(_0x54e1fd==null?-0x1:_0x54e1fd)});}return _0x97a747[_0x2acce3(0x3d8)](_0x16c3be=>_0x16c3be[_0x2acce3(0x1ff)])||(_0x97a747[0x0][_0x2acce3(0x1ff)]=!0x0),_0x97a747;}var Ln=class extends _0x5f47fd{constructor(..._0xec6225){const _0x53a789=_0x1617f0;super(..._0xec6225),q(this,_0x53a789(0x1e6),new _0x2944e0(null)),q(this,_0x53a789(0x29d),this[_0x53a789(0x1e6)][_0x53a789(0x24f)]());}['syncEditingCollabCursor'](_0x1955bc){const _0x5d4ea8=_0x1617f0;let {unitID:_0x50853,memberID:_0x3ba390,textRanges:_0x1abf30}=_0x1955bc,_0x230105=Fn(_0x1abf30);if(_0x230105==='')return;let _0x1edac9={'unitID':_0x50853,'memberID':_0x3ba390,'selection':_0x230105};this[_0x5d4ea8(0x1e6)][_0x5d4ea8(0x32c)](_0x1edac9);}};let Rn=class extends _0x5f47fd{get['cursorInfo'](){const _0x5340b2=_0x1617f0;return this['_cursorInfo$'][_0x5340b2(0x1e1)]();}get['roomMembers'](){const _0x986d52=_0x1617f0;return this[_0x986d52(0x240)][_0x986d52(0x1e1)]();}constructor(_0x6d125a,_0x318cf0,_0xca1208,_0x40bf5c,_0x511537,_0x132b89,_0x38ba20,_0x14d85d,_0xb5eb42){const _0x51170e=_0x1617f0;super(),this[_0x51170e(0x15e)]=_0x6d125a,this[_0x51170e(0x2cb)]=_0x318cf0,this['_injector']=_0xca1208,this[_0x51170e(0x230)]=_0x40bf5c,this[_0x51170e(0x2b9)]=_0x511537,this[_0x51170e(0x243)]=_0x132b89,this[_0x51170e(0x23f)]=_0x38ba20,this[_0x51170e(0x341)]=_0x14d85d,this[_0x51170e(0x2d4)]=_0xb5eb42,q(this,_0x51170e(0x216),!0x1),q(this,'_init',!0x1),q(this,_0x51170e(0x3cf),new _0x2944e0(new Map())),q(this,'cursorInfo$',this[_0x51170e(0x3cf)]['asObservable']()),q(this,_0x51170e(0x240),new _0x2944e0([])),q(this,_0x51170e(0x2e1),this[_0x51170e(0x240)]['pipe'](_0xf8b30(0x12c))),q(this,_0x51170e(0x22f),_0x395474(_0x76be7a=>{const _0x49913b=_0x51170e;let _0xb30872={'eventID':_0x5539f3[_0x49913b(0x30a)],'data':{'unitID':this[_0x49913b(0x15e)],'memberID':this[_0x49913b(0x2cb)][_0x49913b(0x31e)](),'selection':Fn(_0x76be7a)}};this[_0x49913b(0x2cb)][_0x49913b(0x3b2)](_0xb30872,this[_0x49913b(0x15e)]);},0x64));}[_0x1617f0(0x2a7)](){const _0x45b481=_0x1617f0;super['dispose'](),this[_0x45b481(0x3cf)][_0x45b481(0x32c)](new Map()),this[_0x45b481(0x3cf)]['complete'](),this['_roomMembers$'][_0x45b481(0x32c)]([]),this['_roomMembers$']['complete']();}[_0x1617f0(0x2bd)](){const _0x1fd1eb=_0x1617f0;this[_0x1fd1eb(0x363)]||(this[_0x1fd1eb(0x363)]=!0x0,this[_0x1fd1eb(0x2cb)][_0x1fd1eb(0x233)][_0x1fd1eb(0x1fd)](_0x1530df(this['dispose$']))[_0x1fd1eb(0x2f3)](_0x726b1d=>{const _0x224347=_0x1fd1eb;_0x726b1d===_0x115aae[_0x224347(0x32b)]?this[_0x224347(0x3c8)]():this['_toggleOffline']();}),this['_session'][_0x1fd1eb(0x2fe)][_0x1fd1eb(0x1fd)](_0x1530df(this[_0x1fd1eb(0x337)]))[_0x1fd1eb(0x2f3)](_0x1274bd=>{const _0x2786b8=_0x1fd1eb;let _0x1f8d01=_0x1274bd[_0x2786b8(0x1bc)];_0x1f8d01===_0x5539f3[_0x2786b8(0x30a)]&&this[_0x2786b8(0x15d)](_0x1274bd),_0x1f8d01===_0x5539f3['USERS_LEAVE']&&this[_0x2786b8(0x316)](_0x1274bd);}),this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x1e49f4=>{const _0x3e6324=_0x1fd1eb;let _0x22e303=_0x1e49f4[_0x3e6324(0x1ba)];_0x22e303!=null&&this[_0x3e6324(0x216)]&&_0x1e49f4['id']===_0x145cc4['id']&&_0x22e303['unitId']===this['unitID']&&_0x22e303[_0x3e6324(0x34c)]===!0x1&&_0x22e303[_0x3e6324(0x3cc)][_0x3e6324(0x225)]>0x0&&this[_0x3e6324(0x22f)](_0x22e303[_0x3e6324(0x3cc)]);})),this[_0x1fd1eb(0x243)]['collabCursorState$'][_0x1fd1eb(0x1fd)](_0x1530df(this[_0x1fd1eb(0x337)]))[_0x1fd1eb(0x2f3)](_0x1f6587=>{const _0x30c17e=_0x1fd1eb;if((_0x1f6587==null?void 0x0:_0x1f6587[_0x30c17e(0x15e)])!==this['unitID'])return;let _0x3420d9={'eventID':_0x5539f3['UPDATE_CURSOR'],'data':_0x1f6587};this['_onCursorUpdate'](_0x3420d9);}),this[_0x1fd1eb(0x2ed)](this['_commandService']['onCommandExecuted'](_0x4ad1b2=>{const _0x27415b=_0x1fd1eb;if(_0x4ad1b2[_0x27415b(0x1ba)]==null)return;let _0x4656d1=_0x4ad1b2['params'];if(_0x4ad1b2['id']!==_0x3d60a0['id']||_0x4656d1[_0x27415b(0x260)]!==this[_0x27415b(0x15e)])return;let _0x9ad2b1={'id':'doc.mutation.rich-text-editing','params':_0x4656d1},_0x283314=this[_0x27415b(0x342)];for(let [_0x5e7639,_0x5683e0]of _0x283314){let _0x969078={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x27415b(0x15e)],'actions':null,'textRanges':_0x5683e0[_0x27415b(0x3cc)]}},_0x30d490=this['_transformService'][_0x27415b(0x331)](_0x9ad2b1,_0x969078,!0x1);if(_0x13b57e(_0x30d490))throw _0x30d490[_0x27415b(0x286)];_0x283314[_0x27415b(0x361)](_0x5e7639,{..._0x5683e0,'ranges':_0x30d490['m2Prime'][_0x27415b(0x1ba)][_0x27415b(0x1b0)]});}queueMicrotask(()=>{const _0x2dcb80=_0x27415b;this[_0x2dcb80(0x3cf)][_0x2dcb80(0x32c)](_0x283314);});})));}[_0x1617f0(0x15d)](_0x4a4cd9){const _0x29ebef=_0x1617f0;var _0x2313e,_0x364808;let {memberID:_0x2bd77a,selection:_0x664f2}=_0x4a4cd9[_0x29ebef(0x20f)],_0x5cec44=In(_0x664f2),_0x291ef0=(_0x2313e=(_0x364808=this[_0x29ebef(0x2b9)]['getMember'](this['unitID'],_0x2bd77a))==null?void 0x0:_0x364808['name'])==null?'Unknown\x20user':_0x2313e,_0x2ae598={'color':this[_0x29ebef(0x230)][_0x29ebef(0x215)](_0x2bd77a),'name':_0x291ef0,'ranges':_0x5cec44},_0x4a71a4=this[_0x29ebef(0x342)];_0x4a71a4[_0x29ebef(0x361)](_0x2bd77a,_0x2ae598),this[_0x29ebef(0x3cf)][_0x29ebef(0x32c)](_0x4a71a4);}[_0x1617f0(0x316)](_0x5a2148){const _0x39484d=_0x1617f0;let {memberID:_0x5ac3c8}=_0x5a2148[_0x39484d(0x20f)],_0x55bba7=this['cursorInfo'];_0x55bba7['delete'](_0x5ac3c8),this[_0x39484d(0x3cf)][_0x39484d(0x32c)](_0x55bba7);}['_toggleOnline'](){const _0x1f11b8=_0x1617f0;var _0x36733f;if(this[_0x1f11b8(0x216)]=!0x0,((_0x36733f=this[_0x1f11b8(0x341)][_0x1f11b8(0x2e4)]())==null?void 0x0:_0x36733f[_0x1f11b8(0x17b)]())!==this[_0x1f11b8(0x15e)])return;let _0x4ce6b2=this['_injector'][_0x1f11b8(0x3ca)](_0x5ed90f)[_0x1f11b8(0x1dc)]();Array['isArray'](_0x4ce6b2)&&_0x4ce6b2[_0x1f11b8(0x225)]>0x0&&this[_0x1f11b8(0x22f)](_0x4ce6b2);}['_toggleOffline'](){const _0x4d64df=_0x1617f0;this[_0x4d64df(0x216)]=!0x1;}};Rn=Y([J(0x2,_0x5973ac(_0x2ec2f3)),J(0x3,_0x5973ac(Z)),J(0x4,_0x5973ac(_0x5a2207)),J(0x5,_0x5973ac(Ln)),J(0x6,_0x4f51ff),J(0x7,_0x265e32),J(0x8,_0x532b7c)],Rn);const zn=()=>{let _0x157836=[],_0x5716a1=!0x1;return _0x34896b=>{_0x157836['push'](_0x34896b),_0x5716a1||(_0x5716a1=!0x0,setTimeout(()=>{const _0x2f7761=_0x3f97;_0x157836[_0x2f7761(0x24b)](_0x40336e=>_0x40336e()),_0x157836=[],_0x5716a1=!0x1;}));};};let Bn=class extends _0x5f47fd{get[_0x1617f0(0x342)](){const _0x168fcf=_0x1617f0;return this[_0x168fcf(0x3cf)][_0x168fcf(0x1e1)]();}get['roomMembers'](){const _0x32a054=_0x1617f0;return this[_0x32a054(0x240)][_0x32a054(0x1e1)]();}constructor(_0x42dcda,_0xeaebc6,_0x52a7fb,_0x1d0c33,_0x44461a,_0x278469,_0x67501c,_0xf0b5f1){const _0x1b2b4b=_0x1617f0;super(),this[_0x1b2b4b(0x15e)]=_0x42dcda,this[_0x1b2b4b(0x2cb)]=_0xeaebc6,this['_injector']=_0x52a7fb,this[_0x1b2b4b(0x230)]=_0x1d0c33,this[_0x1b2b4b(0x2b9)]=_0x44461a,this[_0x1b2b4b(0x341)]=_0x278469,this['_commandService']=_0x67501c,this['_refRangeService']=_0xf0b5f1,q(this,_0x1b2b4b(0x216),!0x1),q(this,_0x1b2b4b(0x363),!0x1),q(this,_0x1b2b4b(0x3cf),new _0x2944e0(new Map())),q(this,'cursorInfo$',this[_0x1b2b4b(0x3cf)][_0x1b2b4b(0x24f)]()),q(this,_0x1b2b4b(0x240),new _0x2944e0([])),q(this,'roomMembers$',this[_0x1b2b4b(0x240)]['pipe'](_0xf8b30(0x12c))),q(this,_0x1b2b4b(0x22f),_0x395474((_0x1d66c0,_0xad30a1)=>{const _0x1ec7d4=_0x1b2b4b;let _0x50270d={'eventID':_0x5539f3['UPDATE_CURSOR'],'data':{'unitID':this[_0x1ec7d4(0x15e)],'memberID':this[_0x1ec7d4(0x2cb)][_0x1ec7d4(0x31e)](),'selection':_0x1472e3(_0x1d66c0,_0xad30a1[_0x1ec7d4(0x24a)])}};this[_0x1ec7d4(0x2cb)][_0x1ec7d4(0x3b2)](_0x50270d,this['unitID']);},0x64));}['dispose'](){const _0x1b2567=_0x1617f0;super['dispose'](),this[_0x1b2567(0x3cf)]['next'](new Map()),this['_cursorInfo$'][_0x1b2567(0x39b)](),this['_roomMembers$'][_0x1b2567(0x32c)]([]),this[_0x1b2567(0x240)][_0x1b2567(0x39b)]();}[_0x1617f0(0x2bd)](){const _0x23b6de=_0x1617f0;this[_0x23b6de(0x363)]||(this[_0x23b6de(0x363)]=!0x0,this[_0x23b6de(0x2cb)][_0x23b6de(0x233)]['pipe'](_0x1530df(this[_0x23b6de(0x337)]))['subscribe'](_0xa87206=>{const _0x45201e=_0x23b6de;_0xa87206===_0x115aae[_0x45201e(0x32b)]?this[_0x45201e(0x3c8)]():this[_0x45201e(0x313)]();}),this['_session'][_0x23b6de(0x2fe)][_0x23b6de(0x1fd)](_0x1530df(this['dispose$']))[_0x23b6de(0x2f3)](_0x38e71e=>{const _0x369e44=_0x23b6de;let _0x40e498=_0x38e71e[_0x369e44(0x1bc)];_0x40e498===_0x5539f3[_0x369e44(0x30a)]&&this['_onCursorUpdate'](_0x38e71e),_0x40e498===_0x5539f3[_0x369e44(0x1db)]&&this[_0x369e44(0x316)](_0x38e71e);}),this['_onRefRangeChange'](),this[_0x23b6de(0x2ed)](this['_commandService'][_0x23b6de(0x1a1)](_0x1dd0a9=>{const _0x16ba0e=_0x23b6de;if(this[_0x16ba0e(0x216)]&&_0x1dd0a9['id']===_0x3f9b0d['id']&&_0x1dd0a9[_0x16ba0e(0x1ba)][_0x16ba0e(0x260)]===this[_0x16ba0e(0x15e)]){let _0x5229a8=_0x1dd0a9['params'];this[_0x16ba0e(0x22f)](_0x5229a8[_0x16ba0e(0x2b3)],_0x5229a8['selections'][0x0]);}})));}[_0x1617f0(0x15d)](_0x5179b6){const _0x466644=_0x1617f0;var _0x20d2aa,_0x3ac49e;let {memberID:_0x2f30a0,selection:_0x46a928}=_0x5179b6[_0x466644(0x20f)],{sheetName:_0x5b413f,range:_0x46952f}=_0x532fc9(_0x46a928),_0xc2137a={'name':(_0x20d2aa=(_0x3ac49e=this[_0x466644(0x2b9)]['getMember'](this['unitID'],_0x2f30a0))==null?void 0x0:_0x3ac49e[_0x466644(0x339)])==null?_0x466644(0x2d9):_0x20d2aa,'range':this[_0x466644(0x392)](_0x5b413f,_0x46952f),'sheetID':_0x5b413f,'color':this[_0x466644(0x230)][_0x466644(0x215)](_0x2f30a0),'selection':_0x46a928},_0x3fbcbb=this[_0x466644(0x342)];_0x3fbcbb[_0x466644(0x361)](_0x2f30a0,_0xc2137a),this[_0x466644(0x3cf)][_0x466644(0x32c)](_0x3fbcbb);}[_0x1617f0(0x316)](_0x1dd92d){const _0x3baacd=_0x1617f0;let {memberID:_0x55abfb}=_0x1dd92d['data'],_0xf28b3f=this[_0x3baacd(0x342)];_0xf28b3f['delete'](_0x55abfb),this[_0x3baacd(0x3cf)]['next'](_0xf28b3f);}['_getMergeRange'](_0x302bfc,_0x4c39b1){const _0x226b8f=_0x1617f0;var _0x3fe8b1;let _0x243467=(_0x3fe8b1=this['_univerInstanceService'][_0x226b8f(0x3ad)](this[_0x226b8f(0x15e)],_0xa34316[_0x226b8f(0x26d)]))==null||(_0x3fe8b1=_0x3fe8b1[_0x226b8f(0x3b7)](_0x302bfc))==null?void 0x0:_0x3fe8b1['getMergeData']();return(_0x243467==null?void 0x0:_0x243467[_0x226b8f(0x210)](_0x15a2f8=>_0x21a066['contains'](_0x15a2f8,_0x4c39b1)))||_0x4c39b1;}[_0x1617f0(0x38f)](){const _0x1b4742=_0x1617f0;let _0x18d30b=new _0x297f55(),_0x3fe35a=zn(),_0x1657f7=()=>{const _0x130989=_0x3f97;_0x18d30b[_0x130989(0x2a7)]();let _0x938684=(_0x50f761,_0x5a3b3e,_0xb14bd,_0x192dcb)=>{const _0x540e06=_0x130989;let _0x21ea4e=[];switch(_0x50f761['id']){case _0x117dfc['DeleteRangeMoveLeftCommandId']:_0x21ea4e=_0x2a71a1(_0x50f761,_0x192dcb);break;case _0x117dfc['DeleteRangeMoveUpCommandId']:_0x21ea4e=_0x47ae48(_0x50f761,_0x192dcb);break;case _0x117dfc[_0x540e06(0x14b)]:_0x21ea4e=_0x5621f6(_0x50f761,_0x192dcb);break;case _0x117dfc['InsertRangeMoveDownCommandId']:_0x21ea4e=_0x1eac40(_0x50f761,_0x192dcb);break;case _0x117dfc[_0x540e06(0x27f)]:_0x21ea4e=_0x366cbc(_0x50f761,_0x192dcb);break;case _0x117dfc['InsertRowCommandId']:_0x21ea4e=_0x335329(_0x50f761,_0x192dcb);break;case _0x117dfc[_0x540e06(0x3b0)]:_0x21ea4e=_0x265613(_0x50f761,_0x192dcb);break;case _0x117dfc[_0x540e06(0x1c1)]:_0x21ea4e=_0x14810d(_0x50f761,_0x192dcb);break;case _0x117dfc['RemoveRowCommandId']:_0x21ea4e=_0x352c9a(_0x50f761,_0x192dcb);break;}let _0x2ed0ff=_0x39d73e(_0x21ea4e,_0x192dcb),_0x342ce2=this[_0x540e06(0x342)][_0x540e06(0x3ca)](_0x5a3b3e);if(_0x342ce2&&_0x2ed0ff){let _0x100bb1={..._0x342ce2,'range':_0x2ed0ff};this['cursorInfo']['set'](_0x5a3b3e,_0x100bb1),_0x3fe35a(()=>{const _0x139cb7=_0x540e06;let _0x2ac713=this['_refRangeService'][_0x139cb7(0x297)](_0x2ed0ff,_0x4b285a=>(_0x2ac713[_0x139cb7(0x2a7)](),_0x938684(_0x4b285a,_0x5a3b3e,_0xb14bd,_0x2ed0ff)));_0x18d30b[_0x139cb7(0x2f0)](_0x2ac713);});}return{'redos':[],'undos':[]};};this[_0x130989(0x342)][_0x130989(0x24b)]((_0x5905e5,_0xd944c5)=>{const _0x53c923=_0x130989;let {range:_0x720f2e,sheetID:_0x5503aa}=_0x5905e5,_0x5a271d=this[_0x53c923(0x319)]['registerRefRange'](_0x720f2e,_0x39278d=>(_0x5a271d[_0x53c923(0x2a7)](),_0x938684(_0x39278d,_0xd944c5,_0x5503aa,_0x720f2e)));_0x18d30b[_0x53c923(0x2f0)](_0x5a271d);});};this['disposeWithMe'](_0x19bd84(this[_0x1b4742(0x3cf)]['subscribe'](()=>{_0x1657f7();})));}[_0x1617f0(0x3c8)](){const _0x32545f=_0x1617f0;var _0x184e82,_0x250de6;if(this['_online']=!0x0,((_0x184e82=this[_0x32545f(0x341)][_0x32545f(0x2e4)]())==null?void 0x0:_0x184e82[_0x32545f(0x17b)]())!==this[_0x32545f(0x15e)])return;let _0x38980f=(_0x250de6=this[_0x32545f(0x333)]['get'](_0xb4598)[_0x32545f(0x2df)]())==null?void 0x0:_0x250de6[0x0],_0x56b1a0=this[_0x32545f(0x341)][_0x32545f(0x2b1)](_0xa34316['UNIVER_SHEET'])['getActiveSheet']();_0x38980f&&_0x56b1a0&&this['_updateLocalCursor'](_0x56b1a0[_0x32545f(0x167)](),_0x38980f);}[_0x1617f0(0x313)](){this['_online']=!0x1;}};Bn=Y([J(0x2,_0x5973ac(_0x2ec2f3)),J(0x3,_0x5973ac(Z)),J(0x4,_0x5973ac(_0x5a2207)),J(0x5,_0x265e32),J(0x6,_0x532b7c),J(0x7,_0x5973ac(_0x24b23e))],Bn);function Vn(_0x85cebd){const _0x14fd71=_0x1617f0;let _0x501a1f;try{_0x501a1f=JSON['parse'](_0x85cebd);}catch{return null;}if(typeof _0x501a1f!=_0x14fd71(0x2a0)||!_0x501a1f)return null;let _0xadeadd=_0x501a1f;if(_0xadeadd[_0x14fd71(0x2e3)]!==_0x14fd71(0x24e)||typeof _0xadeadd[_0x14fd71(0x260)]!=_0x14fd71(0x376)||typeof _0xadeadd['subUnitId']!=_0x14fd71(0x376))return null;let _0x597b64=Array[_0x14fd71(0x1a4)](_0xadeadd[_0x14fd71(0x1c9)])?_0xadeadd[_0x14fd71(0x1c9)][_0x14fd71(0x3a8)](_0x503664=>typeof _0x503664==_0x14fd71(0x376)):[],_0x1e3c28=typeof _0xadeadd[_0x14fd71(0x1bf)]==_0x14fd71(0x376)?_0xadeadd[_0x14fd71(0x1bf)]:null;return{'kind':'slide-element-selection','unitId':_0xadeadd[_0x14fd71(0x260)],'subUnitId':_0xadeadd[_0x14fd71(0x2b3)],'selectedIds':_0x597b64,'focusedId':_0x1e3c28};}let Hn=class extends _0x5f47fd{get[_0x1617f0(0x342)](){const _0x5977ec=_0x1617f0;return this[_0x5977ec(0x3cf)]['getValue']();}get[_0x1617f0(0x212)](){const _0x80f388=_0x1617f0;return this[_0x80f388(0x240)][_0x80f388(0x1e1)]();}constructor(_0x3bb3cd,_0x32b3c3,_0x4026d6,_0x33ea4f,_0x5d7374){const _0x53eb4f=_0x1617f0;super(),this['unitID']=_0x3bb3cd,this[_0x53eb4f(0x2cb)]=_0x32b3c3,this[_0x53eb4f(0x230)]=_0x4026d6,this['_memberService']=_0x33ea4f,this['_slideDrawingStateService']=_0x5d7374,q(this,_0x53eb4f(0x216),!0x1),q(this,_0x53eb4f(0x363),!0x1),q(this,'_cursorInfo$',new _0x2944e0(new Map())),q(this,'cursorInfo$',this[_0x53eb4f(0x3cf)][_0x53eb4f(0x24f)]()),q(this,_0x53eb4f(0x240),new _0x2944e0([])),q(this,_0x53eb4f(0x2e1),this[_0x53eb4f(0x240)]['pipe'](_0xf8b30(0x12c))),q(this,_0x53eb4f(0x22f),_0x395474(_0xa24b3=>{const _0x2f33a4=_0x53eb4f;let _0x1ce845=_0xa24b3['context'];if(!_0x1ce845||_0x1ce845[_0x2f33a4(0x260)]!==this[_0x2f33a4(0x15e)])return;let _0x467d0a={'kind':_0x2f33a4(0x24e),'unitId':_0x1ce845[_0x2f33a4(0x260)],'subUnitId':_0x1ce845[_0x2f33a4(0x2b3)],'selectedIds':_0xa24b3[_0x2f33a4(0x1c9)][_0x2f33a4(0x3a8)](_0x45d4d0=>typeof _0x45d4d0==_0x2f33a4(0x376)),'focusedId':_0xa24b3[_0x2f33a4(0x1bf)]},_0x10865d={'eventID':_0x5539f3[_0x2f33a4(0x30a)],'data':{'unitID':this[_0x2f33a4(0x15e)],'memberID':this[_0x2f33a4(0x2cb)][_0x2f33a4(0x31e)](),'selection':JSON[_0x2f33a4(0x3bc)](_0x467d0a)}};this[_0x2f33a4(0x2cb)][_0x2f33a4(0x3b2)](_0x10865d,this[_0x2f33a4(0x15e)]);},0x64));}[_0x1617f0(0x2a7)](){const _0xca0ebb=_0x1617f0;super[_0xca0ebb(0x2a7)](),this[_0xca0ebb(0x3cf)][_0xca0ebb(0x32c)](new Map()),this['_cursorInfo$'][_0xca0ebb(0x39b)](),this[_0xca0ebb(0x240)][_0xca0ebb(0x32c)]([]),this[_0xca0ebb(0x240)]['complete']();}['init'](){const _0x14bcdf=_0x1617f0;this[_0x14bcdf(0x363)]||(this[_0x14bcdf(0x363)]=!0x0,this[_0x14bcdf(0x2cb)][_0x14bcdf(0x233)][_0x14bcdf(0x1fd)](_0x1530df(this[_0x14bcdf(0x337)]))[_0x14bcdf(0x2f3)](_0x348b96=>{const _0x3827d0=_0x14bcdf;_0x348b96===_0x115aae[_0x3827d0(0x32b)]?this[_0x3827d0(0x3c8)]():this[_0x3827d0(0x313)]();}),this[_0x14bcdf(0x2cb)][_0x14bcdf(0x2fe)][_0x14bcdf(0x1fd)](_0x1530df(this['dispose$']))[_0x14bcdf(0x2f3)](_0x5aa134=>{const _0x468977=_0x14bcdf;let _0xc498d9=_0x5aa134[_0x468977(0x1bc)];_0xc498d9===_0x5539f3[_0x468977(0x30a)]&&this[_0x468977(0x15d)](_0x5aa134),_0xc498d9===_0x5539f3['USERS_LEAVE']&&this[_0x468977(0x316)](_0x5aa134);}),this[_0x14bcdf(0x3c7)][_0x14bcdf(0x37b)][_0x14bcdf(0x1fd)](_0x1530df(this[_0x14bcdf(0x337)]))['subscribe'](_0x556117=>{const _0x1a4261=_0x14bcdf;this[_0x1a4261(0x216)]&&this[_0x1a4261(0x22f)](_0x556117);}));}['_onCursorUpdate'](_0x38f7e6){const _0x253eb4=_0x1617f0;var _0xd94b33,_0x4b3ffe,_0x1eedc4,_0x3eb0ea;let {memberID:_0x15ef9b,selection:_0x1133d2}=_0x38f7e6[_0x253eb4(0x20f)];if(_0x15ef9b===((_0xd94b33=(_0x4b3ffe=this[_0x253eb4(0x2cb)])['getMemberID'])==null?void 0x0:_0xd94b33[_0x253eb4(0x203)](_0x4b3ffe)))return;let _0x8a0d6e=Vn(_0x1133d2);if(!_0x8a0d6e||_0x8a0d6e[_0x253eb4(0x260)]!==this[_0x253eb4(0x15e)])return;let _0x2db85c=(_0x1eedc4=(_0x3eb0ea=this[_0x253eb4(0x2b9)][_0x253eb4(0x2b2)](this[_0x253eb4(0x15e)],_0x15ef9b))==null?void 0x0:_0x3eb0ea[_0x253eb4(0x339)])==null?_0x253eb4(0x2d9):_0x1eedc4,_0x50fc5f={'color':this[_0x253eb4(0x230)]['assignAColorForMemberID'](_0x15ef9b),'name':_0x2db85c,'unitId':_0x8a0d6e[_0x253eb4(0x260)],'subUnitId':_0x8a0d6e['subUnitId'],'selectedIds':_0x8a0d6e['selectedIds'],'focusedId':_0x8a0d6e[_0x253eb4(0x1bf)],'selection':_0x1133d2},_0x45029d=new Map(this[_0x253eb4(0x342)]);_0x45029d[_0x253eb4(0x361)](_0x15ef9b,_0x50fc5f),this['_cursorInfo$'][_0x253eb4(0x32c)](_0x45029d);}[_0x1617f0(0x316)](_0x3210e1){const _0x3e33ed=_0x1617f0;let {memberID:_0x188869}=_0x3210e1[_0x3e33ed(0x20f)],_0x479481=new Map(this[_0x3e33ed(0x342)]);_0x479481[_0x3e33ed(0x1ca)](_0x188869),this['_cursorInfo$'][_0x3e33ed(0x32c)](_0x479481);}['_toggleOnline'](){const _0x3147ea=_0x1617f0;this[_0x3147ea(0x216)]=!0x0,this[_0x3147ea(0x22f)](this['_slideDrawingStateService'][_0x3147ea(0x177)]());}[_0x1617f0(0x313)](){const _0x10fe65=_0x1617f0;this[_0x10fe65(0x216)]=!0x1;}};Hn=Y([J(0x2,_0x5973ac(Z)),J(0x3,_0x5973ac(_0x5a2207)),J(0x4,_0x5973ac(_0x292b64))],Hn);let Q=class extends _0x5f47fd{constructor(_0x138f00,_0x571acd,_0x2929a4){const _0x1043e0=_0x1617f0;super(),this['_univerInstanceService']=_0x138f00,this[_0x1043e0(0x333)]=_0x571acd,this[_0x1043e0(0x2db)]=_0x2929a4,q(this,_0x1043e0(0x348),new Map()),q(this,_0x1043e0(0x1d6),new _0x44b05f()),this[_0x1043e0(0x363)]();}[_0x1617f0(0x2a7)](){const _0x5f5404=_0x1617f0;super[_0x5f5404(0x2a7)](),this[_0x5f5404(0x1d6)][_0x5f5404(0x39b)](),this['_entities'][_0x5f5404(0x24b)](_0x396b31=>_0x396b31['dispose']());}['getCollabCursors$'](_0x3daca5){const _0x231a55=_0x1617f0;return this['_entities']['has'](_0x3daca5)?this['_entities'][_0x231a55(0x3ca)](_0x3daca5)[_0x231a55(0x3d0)]:this[_0x231a55(0x1d6)]['pipe'](_0x22a1e7(_0x2ce1d9=>_0x2ce1d9[_0x231a55(0x15e)]===_0x3daca5),_0x163f7f(_0x1eafc0=>_0x1eafc0[_0x231a55(0x3d0)]));}['_init'](){const _0x3d9976=_0x1617f0;this[_0x3d9976(0x341)][_0x3d9976(0x3c9)](_0xa34316[_0x3d9976(0x26d)])['pipe'](_0x1530df(this[_0x3d9976(0x337)]))['subscribe'](async _0x165301=>{const _0x5123e8=_0x3d9976;let _0x1951ab=_0x165301[_0x5123e8(0x281)][_0x5123e8(0x17b)](),_0x39be58=await this['_startSheetCollabCursor'](_0x1951ab);this[_0x5123e8(0x1d6)][_0x5123e8(0x32c)](_0x39be58),this[_0x5123e8(0x348)]['set'](_0x1951ab,_0x39be58);}),this[_0x3d9976(0x341)][_0x3d9976(0x3c9)](_0xa34316[_0x3d9976(0x2a5)])[_0x3d9976(0x1fd)](_0x1530df(this[_0x3d9976(0x337)]))[_0x3d9976(0x1fd)](_0x22a1e7(_0x414485=>!_0x414485['unit'][_0x3d9976(0x17b)]()['startsWith']('__')))[_0x3d9976(0x2f3)](async _0x3d7cc8=>{const _0x26270a=_0x3d9976;let {unit:_0x19c117}=_0x3d7cc8,_0x2186f5=_0x19c117[_0x26270a(0x17b)](),_0x4be842=await this[_0x26270a(0x22e)](_0x2186f5);this[_0x26270a(0x1d6)][_0x26270a(0x32c)](_0x4be842),this[_0x26270a(0x348)]['set'](_0x2186f5,_0x4be842);}),this['_univerInstanceService'][_0x3d9976(0x3c9)](_0xa34316['UNIVER_SLIDE'])[_0x3d9976(0x1fd)](_0x1530df(this[_0x3d9976(0x337)]))['subscribe'](async _0x1920c1=>{const _0x1e408f=_0x3d9976;let _0x7ad9f8=_0x1920c1[_0x1e408f(0x281)][_0x1e408f(0x17b)](),_0x3c7925=await this[_0x1e408f(0x259)](_0x7ad9f8);this[_0x1e408f(0x1d6)]['next'](_0x3c7925),this['_entities'][_0x1e408f(0x361)](_0x7ad9f8,_0x3c7925);}),this[_0x3d9976(0x341)][_0x3d9976(0x3c9)](_0xa34316['UNIVER_BOARD'])['pipe'](_0x1530df(this[_0x3d9976(0x337)]))[_0x3d9976(0x2f3)](async _0x3eb771=>{const _0x1ddf1f=_0x3d9976;let _0x2f1c27=_0x3eb771[_0x1ddf1f(0x281)]['getUnitId'](),_0x3cc126=await this['_startBoardCollabCursor'](_0x2f1c27);this[_0x1ddf1f(0x1d6)]['next'](_0x3cc126),this[_0x1ddf1f(0x348)][_0x1ddf1f(0x361)](_0x2f1c27,_0x3cc126);}),_0x3bf3c7(this[_0x3d9976(0x341)][_0x3d9976(0x193)](_0xa34316[_0x3d9976(0x2a5)]),this['_univerInstanceService'][_0x3d9976(0x193)](_0xa34316[_0x3d9976(0x26d)]),this[_0x3d9976(0x341)][_0x3d9976(0x193)](_0xa34316[_0x3d9976(0x14e)]),this[_0x3d9976(0x341)][_0x3d9976(0x193)](_0xa34316[_0x3d9976(0x302)]))[_0x3d9976(0x1fd)](_0x1530df(this[_0x3d9976(0x337)]))[_0x3d9976(0x2f3)](_0x474c17=>{const _0x3b8bfc=_0x3d9976;let _0x48f435=_0x474c17[_0x3b8bfc(0x17b)](),_0x256533=this['_entities'][_0x3b8bfc(0x3ca)](_0x48f435);_0x256533&&(_0x256533[_0x3b8bfc(0x2a7)](),this[_0x3b8bfc(0x348)][_0x3b8bfc(0x1ca)](_0x48f435));});}async[_0x1617f0(0x335)](_0x55546e){const _0xd7eac0=_0x1617f0;let _0x14c12f=await this[_0xd7eac0(0x2db)]['requireSession'](_0x55546e),_0x225b0e=this[_0xd7eac0(0x333)]['createInstance'](Bn,_0x55546e,_0x14c12f);return _0x225b0e[_0xd7eac0(0x2bd)](),_0x225b0e;}async[_0x1617f0(0x22e)](_0x2b2569){const _0xbb8ce0=_0x1617f0;let _0x54dfc8=await this[_0xbb8ce0(0x2db)][_0xbb8ce0(0x3d7)](_0x2b2569),_0x391948=this[_0xbb8ce0(0x333)][_0xbb8ce0(0x39e)](Rn,_0x2b2569,_0x54dfc8);return _0x391948['init'](),_0x391948;}async['_startSlideCollabCursor'](_0x19b37f){const _0x29f927=_0x1617f0;let _0x4ac0b1=await this[_0x29f927(0x2db)]['requireSession'](_0x19b37f),_0x43aa31=this[_0x29f927(0x333)][_0x29f927(0x39e)](Hn,_0x19b37f,_0x4ac0b1);return _0x43aa31[_0x29f927(0x2bd)](),_0x43aa31;}async[_0x1617f0(0x228)](_0x21af7e){const _0x55e406=_0x1617f0;let _0x256c18=await this[_0x55e406(0x2db)][_0x55e406(0x3d7)](_0x21af7e),_0x7bb374=this[_0x55e406(0x333)][_0x55e406(0x39e)](Pn,_0x21af7e,_0x256c18);return _0x7bb374[_0x55e406(0x2bd)](),_0x7bb374;}};Q=Y([J(0x0,_0x265e32),J(0x1,_0x5973ac(_0x2ec2f3)),J(0x2,_0x5973ac(_0x2bf3ef))],Q);let Un=class extends _0x5f47fd{constructor(_0x3ba2c1,_0x589d49,_0x57bb92){const _0x51d9fe=_0x1617f0;super(),this[_0x51d9fe(0x1f1)]=_0x3ba2c1,this[_0x51d9fe(0x2bc)]=_0x589d49,this[_0x51d9fe(0x245)]=_0x57bb92,q(this,'_cursors',new Set()),q(this,'_renderScheduled',!0x1),q(this,_0x51d9fe(0x34b),!0x1),q(this,'_latestCursors',new Map()),this[_0x51d9fe(0x363)]();}[_0x1617f0(0x2a7)](){const _0x306eae=_0x1617f0;this[_0x306eae(0x191)](),super['dispose']();}['_init'](){const _0x5eefe6=_0x1617f0;let _0x883c23=this['_collabCursorController'][_0x5eefe6(0x2cf)](this['_context'][_0x5eefe6(0x260)]);this[_0x5eefe6(0x2ed)](_0x19bd84(_0x42438d([_0x883c23,this[_0x5eefe6(0x1f1)][_0x5eefe6(0x281)]['theme$'],this[_0x5eefe6(0x245)]['currentTheme$']])[_0x5eefe6(0x1fd)](_0x1530df(this[_0x5eefe6(0x337)]))[_0x5eefe6(0x2f3)](([_0x2b3cef])=>{const _0x2ea8a3=_0x5eefe6;let _0x2504df=this[_0x2ea8a3(0x1f1)][_0x2ea8a3(0x281)][_0x2ea8a3(0x3b5)](),_0x424820=new Map();_0x2b3cef['forEach']((_0x57166f,_0x2cf3aa)=>{const _0x359623=_0x2ea8a3;_0x57166f[_0x359623(0x2b3)]===_0x2504df&&_0x424820['set'](_0x2cf3aa,{..._0x57166f,'color':this[_0x359623(0x245)][_0x359623(0x3a5)](_0x57166f[_0x359623(0x1cf)])});}),this[_0x2ea8a3(0x2c9)]=_0x424820,this[_0x2ea8a3(0x253)]();})));let _0x23b335=this[_0x5eefe6(0x1f1)]['scene'];this[_0x5eefe6(0x2ed)](_0x19bd84(_0x23b335['addObject$'][_0x5eefe6(0x1fd)](_0x1530df(this['dispose$']))[_0x5eefe6(0x2f3)](()=>{const _0x517cb9=_0x5eefe6;this[_0x517cb9(0x34b)]||this[_0x517cb9(0x253)]();})));}[_0x1617f0(0x253)](){const _0x3d76bd=_0x1617f0;this['_renderScheduled']||(this[_0x3d76bd(0x305)]=!0x0,Promise['resolve']()['then'](()=>{const _0x5e3986=_0x3d76bd;this[_0x5e3986(0x305)]=!0x1,this[_0x5e3986(0x1a9)]();}));}['_render'](){const _0x3b23c5=_0x1617f0;this['_removeCollabCursors']();let _0x570111=this[_0x3b23c5(0x1f1)]['unit'][_0x3b23c5(0x3b5)](),_0x1bcb71=[];if(this[_0x3b23c5(0x2c9)][_0x3b23c5(0x24b)]((_0x1b525f,_0x11b35b)=>{const _0x5714f8=_0x3b23c5;_0x1b525f[_0x5714f8(0x2b3)]===_0x570111&&_0x1b525f['selectedIds'][_0x5714f8(0x24b)](_0x5c30b4=>{const _0x4ef068=_0x5714f8;let _0x35971e=_0x51b3ff(_0x1b525f[_0x4ef068(0x260)],_0x5c30b4),_0x1bde02=this[_0x4ef068(0x151)](_0x35971e);if(!_0x1bde02)return;let _0x699a5b=this['_getObjectBounds'](_0x1bde02);_0x1bcb71['push'](new jn(_0x4ef068(0x347)+_0x11b35b+'-'+_0x5c30b4,{..._0x1b525f,'left':_0x699a5b[_0x4ef068(0x273)],'top':_0x699a5b[_0x4ef068(0x296)],'width':_0x699a5b['width'],'height':_0x699a5b[_0x4ef068(0x2f2)],'angle':_0x1bde02[_0x4ef068(0x1de)],'evented':!0x1,'zIndex':An}));});}),_0x1bcb71['length']===0x0){this[_0x3b23c5(0x1f1)][_0x3b23c5(0x242)][_0x3b23c5(0x1df)](!0x0);return;}this[_0x3b23c5(0x34b)]=!0x0,this[_0x3b23c5(0x1f1)][_0x3b23c5(0x242)]['addObjects'](_0x1bcb71,An),this['_isApplyingOverlays']=!0x1,this[_0x3b23c5(0x1d7)]=new Set(_0x1bcb71),this[_0x3b23c5(0x1f1)][_0x3b23c5(0x242)][_0x3b23c5(0x1df)](!0x0);}['_removeCollabCursors'](){const _0x2252c4=_0x1617f0;let _0x1ea24b=Array[_0x2252c4(0x360)](this[_0x2252c4(0x1d7)]);if(_0x1ea24b[_0x2252c4(0x225)]===0x0)return;let _0x1ed02d=this['_context'][_0x2252c4(0x242)];'removeObjects'in _0x1ed02d&&typeof _0x1ed02d[_0x2252c4(0x1b1)]=='function'?_0x1ed02d['removeObjects'](_0x1ea24b):_0x1ea24b[_0x2252c4(0x24b)](_0x23028d=>{const _0x275593=_0x2252c4;_0x275593(0x1c7)in _0x1ed02d&&typeof _0x1ed02d[_0x275593(0x1c7)]==_0x275593(0x266)?_0x1ed02d[_0x275593(0x1c7)](_0x23028d):_0x23028d[_0x275593(0x2a7)]();}),this[_0x2252c4(0x1d7)][_0x2252c4(0x272)](),_0x1ed02d[_0x2252c4(0x1df)](!0x0);}[_0x1617f0(0x151)](_0x471ea4){const _0xe81d7c=_0x1617f0;var _0x30ec44,_0x14e6e5,_0x3103ce;let _0x5c434d=this[_0xe81d7c(0x1f1)][_0xe81d7c(0x242)];return(_0x30ec44=(_0x14e6e5=(_0x3103ce=_0x5c434d[_0xe81d7c(0x23d)])==null?void 0x0:_0x3103ce[_0xe81d7c(0x203)](_0x5c434d,_0x471ea4))==null?_0x5c434d[_0xe81d7c(0x2b4)](_0x471ea4):_0x14e6e5)==null?null:_0x30ec44;}[_0x1617f0(0x224)](_0x44b148){const _0x176ce6=_0x1617f0;var _0x1f212d,_0x158601;let _0x274ae4=_0x44b148;return(_0x1f212d=(_0x158601=_0x274ae4[_0x176ce6(0x23e)])==null?void 0x0:_0x158601[_0x176ce6(0x203)](_0x274ae4))==null?{'left':_0x44b148[_0x176ce6(0x273)],'top':_0x44b148[_0x176ce6(0x296)],'width':_0x44b148[_0x176ce6(0x1ec)],'height':_0x44b148[_0x176ce6(0x2f2)]}:_0x1f212d;}};Un=Y([J(0x1,_0x5973ac(Q)),J(0x2,_0x5973ac(_0x180db4))],Un);const Wn=_0x1617f0(0x17a);var Gn=class{constructor(_0x272dba,_0x1179a5,_0x4f478f,_0x1fb0ae){const _0x599b63=_0x1617f0;this[_0x599b63(0x3be)]=_0x272dba,this[_0x599b63(0x15b)]=_0x1179a5,this[_0x599b63(0x237)]=_0x4f478f,this[_0x599b63(0x1ad)]=_0x1fb0ae,q(this,_0x599b63(0x231),[]),q(this,_0x599b63(0x236),null),q(this,_0x599b63(0x1af),null),q(this,_0x599b63(0x23b),null),q(this,_0x599b63(0x22b),null),q(this,_0x599b63(0x3b1),null),this[_0x599b63(0x1a9)]();}set['_hover'](_0x1e3116){const _0x32a339=_0x1617f0;_0x1e3116?(this[_0x32a339(0x23b)]&&this[_0x32a339(0x23b)]['hide'](),this['_textBubble']&&this[_0x32a339(0x1af)][_0x32a339(0x364)]()):(this[_0x32a339(0x23b)]&&this[_0x32a339(0x23b)][_0x32a339(0x364)](),this[_0x32a339(0x1af)]&&this[_0x32a339(0x1af)][_0x32a339(0x371)]());}[_0x1617f0(0x2a7)](){const _0x5b6eec=_0x1617f0;for(let _0x52ce3d of this['_shapes'])_0x52ce3d[_0x5b6eec(0x2a7)]();this[_0x5b6eec(0x1af)]&&this[_0x5b6eec(0x1af)][_0x5b6eec(0x2a7)](),this[_0x5b6eec(0x23b)]&&this[_0x5b6eec(0x23b)]['dispose'](),this['_anchor']&&this[_0x5b6eec(0x236)]['dispose'](),this[_0x5b6eec(0x3b1)]&&this[_0x5b6eec(0x3b1)]();}[_0x1617f0(0x1a9)](){const _0x319a45=_0x1617f0;let {_docSkeleton:_0xbd2252,_document:_0x42fb24}=this,{color:_0x5ea7f3,name:_0x42cd1b,ranges:_0x5c3319}=this['_cursor'],_0x5ec63a=_0x42fb24[_0x319a45(0x3aa)](),{docsLeft:_0x26cfcf,docsTop:_0x57f413}=_0x5ec63a,_0x466dc8=new _0x3f6e79(_0x5ec63a,_0xbd2252);for(let {startOffset:_0x50165f,endOffset:_0x3750a3,rangeType:_0x35beac,segmentId:_0x886312,segmentPage:_0x481992,collapsed:_0x5abdce,isActive:_0x37c588}of _0x5c3319){let _0x301fea=_0xbd2252[_0x319a45(0x2cd)](_0x50165f,!0x0,_0x886312,_0x481992),_0x293a38=_0xbd2252[_0x319a45(0x2cd)](_0x3750a3,!0x0,_0x886312,_0x481992);if(_0x293a38==null&&(_0x293a38=_0xbd2252['findNodePositionByCharIndex'](_0x3750a3-0x1,!0x1,_0x886312,_0x481992)),_0x37c588){let {contentBoxPointGroup:_0x59a1ec}=_0x466dc8[_0x319a45(0x25b)](_0x293a38,_0x293a38);if(_0x59a1ec['length']===0x0)continue;this[_0x319a45(0x3c5)](_0x5ea7f3,_0x59a1ec,_0x26cfcf,_0x57f413,_0x42cd1b),this[_0x319a45(0x3b1)]=this[_0x319a45(0x323)]();}if(_0x301fea&&_0x293a38){if(_0x35beac===_0x428944[_0x319a45(0x2dc)]){var _0x5c7ba2;let {pointGroup:_0x5c068b}=(_0x5c7ba2=new _0x4f27(_0x5ec63a,_0xbd2252)[_0x319a45(0x25b)](_0x301fea,_0x293a38))==null?{}:_0x5c7ba2;if(_0x5c068b==null||_0x5c068b[_0x319a45(0x225)]===0x0)continue;this['_drawRectRange'](_0x5ea7f3,_0x5c068b,_0x26cfcf,_0x57f413);}else{if(!_0x5abdce){let {borderBoxPointGroup:_0x420ccb}=_0x466dc8['getRangePointData'](_0x301fea,_0x293a38);if(_0x420ccb[_0x319a45(0x225)]===0x0)continue;this[_0x319a45(0x25d)](_0x5ea7f3,_0x420ccb,_0x26cfcf,_0x57f413);}}}}}[_0x1617f0(0x3c5)](_0x43b2eb,_0x32843f,_0x2b6e5a,_0x191e8f,_0x31857a){const _0x3c5ad7=_0x1617f0;let {left:_0xdcdf57,top:_0x5b6916,height:_0x46f776}=this['_getAnchorBounding'](_0x32843f),_0x795e82=1.5/this['_getScale'](),_0x5960f4=new _0x1ecb53(Wn+_0xb298d(0x6),{'left':_0xdcdf57+_0x2b6e5a-_0x795e82,'top':_0x5b6916+_0x191e8f,'height':_0x46f776,'width':1.5,'fill':_0x43b2eb||_0x26c5b8(_0x22757f['black'],0x0),'strokeWidth':_0x795e82,'stroke':_0x3c5ad7(0x28a),'evented':!0x0});this[_0x3c5ad7(0x236)]=_0x5960f4,this[_0x3c5ad7(0x15b)]['addObject'](_0x5960f4,_0x291346);let _0x5f3567=new _0x1ecb53(Wn+_0xb298d(0x6),{'left':_0xdcdf57+_0x2b6e5a-_0x795e82,'top':_0x5b6916+_0x191e8f-0x4/0x2,'height':0x4,'width':0x4,'fill':_0x43b2eb||_0x26c5b8(_0x22757f[_0x3c5ad7(0x329)],0x0),'strokeWidth':0x0,'stroke':_0x43b2eb||_0x26c5b8(_0x22757f[_0x3c5ad7(0x329)],0x0),'evented':!0x1});this[_0x3c5ad7(0x23b)]=_0x5f3567,this[_0x3c5ad7(0x15b)][_0x3c5ad7(0x2c2)](_0x5f3567,_0x291346);let _0x452bc0=new kn(Wn+_0xb298d(0x6),{'left':_0xdcdf57+_0x2b6e5a-_0x795e82,'top':_0x5b6916+_0x191e8f-0x14,'text':_0x31857a,'color':_0x43b2eb});this[_0x3c5ad7(0x1af)]=_0x452bc0,this['_scene'][_0x3c5ad7(0x2c2)](_0x452bc0,_0x291346),this[_0x3c5ad7(0x2ba)]=!0x1;}[_0x1617f0(0x323)](){const _0x351ee6=_0x1617f0;let _0x1d85ec=this[_0x351ee6(0x236)][_0x351ee6(0x3b8)]['subscribeEvent'](()=>{const _0x255fe1=_0x351ee6;this[_0x255fe1(0x2ba)]=!0x0;}),_0x1ab5aa=this[_0x351ee6(0x236)][_0x351ee6(0x3ac)]['subscribeEvent'](()=>{const _0x241796=_0x351ee6;this[_0x241796(0x22b)]&&clearTimeout(this[_0x241796(0x22b)]),this[_0x241796(0x22b)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x1cfb8a=_0x351ee6;_0x1d85ec[_0x1cfb8a(0x2b7)](),_0x1ab5aa['unsubscribe']();};}[_0x1617f0(0x25d)](_0x2c66e3,_0x4b4325,_0x51d4cb,_0xf735a0){const _0x37b8f2=_0x1617f0;let _0x252178=0.2,_0x4c4108=new _0x50f555(_0x2c66e3)[_0x37b8f2(0x362)](_0x252178)[_0x37b8f2(0x1ed)](),_0x56e5c2=new _0x58fed5('collab-text-range-'+_0xb298d(0x6),{'pointsGroup':_0x4b4325,'fill':_0x4c4108||_0x26c5b8(_0x22757f['black'],_0x252178),'left':_0x51d4cb,'top':_0xf735a0,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x37b8f2(0x2d7)](_0x56e5c2),this[_0x37b8f2(0x15b)]['addObject'](_0x56e5c2,_0x291346);}[_0x1617f0(0x168)](_0x4a08fa,_0x16bb1c,_0x8f32fb,_0x24fcd5){const _0x106551=_0x1617f0;let _0x3a9747=0.2,_0x25079f=new _0x50f555(_0x4a08fa)['setAlpha'](_0x3a9747)[_0x106551(0x1ed)](),_0x834086=new _0x58fed5(_0x106551(0x221)+_0xb298d(0x6),{'pointsGroup':_0x16bb1c,'fill':_0x25079f||_0x26c5b8(_0x22757f[_0x106551(0x329)],_0x3a9747),'left':_0x8f32fb,'top':_0x24fcd5,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x106551(0x231)][_0x106551(0x2d7)](_0x834086),this[_0x106551(0x15b)]['addObject'](_0x834086,_0x291346);}[_0x1617f0(0x346)](_0x5d274a){let _0x4d7415=_0x5d274a[0x0],_0x18aa78=_0x4d7415[0x0],_0x14f434=_0x4d7415[0x2],{x:_0x2df929,y:_0x4becaa}=_0x18aa78,{x:_0x57bd64,y:_0x5d480c}=_0x14f434;return{'left':_0x2df929,'top':_0x4becaa,'width':_0x57bd64-_0x2df929,'height':_0x5d480c-_0x4becaa};}[_0x1617f0(0x219)](){const _0x5bb8b0=_0x1617f0;let {scaleX:_0x2a21e2,scaleY:_0x513538}=this[_0x5bb8b0(0x15b)]['getAncestorScale']();return Math[_0x5bb8b0(0x1ef)](_0x2a21e2,_0x513538);}};let Kn=class extends _0x5f47fd{constructor(_0x3df80f,_0x118065,_0xdd7fb9,_0x29d796,_0x1a1078){const _0x1f5889=_0x1617f0;super(),this[_0x1f5889(0x1f1)]=_0x3df80f,this[_0x1f5889(0x3bf)]=_0x118065,this[_0x1f5889(0x2bc)]=_0xdd7fb9,this[_0x1f5889(0x2d4)]=_0x29d796,this[_0x1f5889(0x245)]=_0x1a1078,q(this,_0x1f5889(0x31c),[]),q(this,_0x1f5889(0x1d7),[]),this[_0x1f5889(0x363)]();}[_0x1617f0(0x363)](){const _0x4e3ee4=_0x1617f0;let _0x1b3826=this[_0x4e3ee4(0x1f1)][_0x4e3ee4(0x260)],_0x918aa=this[_0x4e3ee4(0x3bf)];this['disposeWithMe'](_0x42438d([this[_0x4e3ee4(0x2bc)][_0x4e3ee4(0x2cf)](_0x1b3826),this[_0x4e3ee4(0x245)]['currentTheme$']])['pipe'](_0x29416d(([_0x579be7,_0x190327])=>({'skeleton':_0x918aa[_0x4e3ee4(0x2c1)](),'cursors':[..._0x579be7[_0x4e3ee4(0x209)]()][_0x4e3ee4(0x202)](_0x4b386f=>({..._0x4b386f,'color':this[_0x4e3ee4(0x245)][_0x4e3ee4(0x3a5)](_0x4b386f['color'])}))})))['subscribe'](_0x26997c=>{const _0x18e783=_0x4e3ee4;if(this[_0x18e783(0x191)](),_0x26997c){let {skeleton:_0x460437,cursors:_0x5e3054}=_0x26997c;this[_0x18e783(0x2e0)](_0x460437,_0x5e3054);}})),this['_initResize'](),this[_0x4e3ee4(0x165)]();}[_0x1617f0(0x2e0)](_0x453b03,_0x2b21aa){const _0x111c4a=_0x1617f0;let {scene:_0xc783fa,mainComponent:_0x3ede7c}=this[_0x111c4a(0x1f1)],_0x102411=_0x2b21aa['map'](_0x1a30a9=>new Gn(_0x1a30a9,_0xc783fa,_0x453b03,_0x3ede7c));this[_0x111c4a(0x31c)]=_0x102411,this[_0x111c4a(0x1d7)]=_0x2b21aa;}[_0x1617f0(0x226)](){const _0x4466e5=_0x1617f0;this[_0x4466e5(0x191)]();let {scene:_0x2e6a18,mainComponent:_0x11f106}=this[_0x4466e5(0x1f1)],_0x245caa=this['_docSkeletonManagerService'][_0x4466e5(0x2c1)](),_0x27a0c8=this[_0x4466e5(0x1d7)][_0x4466e5(0x255)](_0x18f3eb=>new Gn(_0x18f3eb,_0x2e6a18,_0x245caa,_0x11f106));this[_0x4466e5(0x31c)]=_0x27a0c8;}[_0x1617f0(0x191)](){const _0x5d8e81=_0x1617f0;this[_0x5d8e81(0x31c)][_0x5d8e81(0x24b)](_0x3cb07a=>_0x3cb07a[_0x5d8e81(0x2a7)]()),this[_0x5d8e81(0x31c)]=[];}[_0x1617f0(0x165)](){const _0x524e3a=_0x1617f0;let _0x4c6ce4=[_0x15d8ec['id']];this['disposeWithMe'](this[_0x524e3a(0x2d4)]['onCommandExecuted'](_0x4e0bb9=>{const _0x36c77f=_0x524e3a;_0x4c6ce4[_0x36c77f(0x31f)](_0x4e0bb9['id'])&&_0x4e0bb9['params']['unitId']===this[_0x36c77f(0x1f1)][_0x36c77f(0x260)]&&this['_refreshCollabCursors']();}));}[_0x1617f0(0x39f)](){const _0x38fc5d=_0x1617f0;this['disposeWithMe'](_0x440d02(this['_context'][_0x38fc5d(0x1b5)][_0x38fc5d(0x375)])[_0x38fc5d(0x1fd)](_0x329d2d(_0x13074c=>_0x13074c[_0x38fc5d(0x3bd)]===_0x344552[_0x38fc5d(0x390)]),_0x461829(0x10))[_0x38fc5d(0x2f3)](()=>{const _0x2e21d7=_0x38fc5d;this[_0x2e21d7(0x226)]();}));}};Kn=Y([J(0x1,_0x5973ac(_0xb48022)),J(0x2,_0x5973ac(Q)),J(0x3,_0x532b7c),J(0x4,_0x5973ac(_0x180db4))],Kn);function _0x3f97(_0x1312e0,_0x28cd26){_0x1312e0=_0x1312e0-0x14b;const _0x5258c1=_0x5258();let _0x3f973a=_0x5258c1[_0x1312e0];return _0x3f973a;}var qn=class extends _0x2d8c31{constructor(_0x7a6025,_0x3aad47){const _0x407f5e=_0x1617f0;if(super(_0x7a6025,_0x3aad47),q(this,_0x407f5e(0x271),void 0x0),q(this,_0x407f5e(0x277),!0x1),q(this,_0x407f5e(0x367),void 0x0),q(this,_0x407f5e(0x18b),''),q(this,'_labelPosition',_0x407f5e(0x296)),q(this,_0x407f5e(0x1fe),void 0x0),q(this,_0x407f5e(0x2a4),void 0x0),q(this,_0x407f5e(0x1f6),void 0x0),q(this,_0x407f5e(0x284),0x4),q(this,_0x407f5e(0x1e2),void 0x0),q(this,_0x407f5e(0x247),void 0x0),q(this,_0x407f5e(0x295),!0x0),q(this,'_offsetY',0x0),q(this,_0x407f5e(0x274),_0x407f5e(0x283)),_0x3aad47){var _0xfe06f6;if(this[_0x407f5e(0x29e)](_0x3aad47),_0x3aad47[_0x407f5e(0x14c)]&&((_0xfe06f6=_0x3aad47[_0x407f5e(0x246)])==null?this[_0x407f5e(0x284)]:_0xfe06f6)){var _0x3e4e94;this['_startBlinking']((_0x3e4e94=_0x3aad47[_0x407f5e(0x246)])==null?this['_highlightSecond']:_0x3e4e94);}}this['onPointerEnter$'][_0x407f5e(0x31a)](()=>this[_0x407f5e(0x29e)]({'hovered':!0x0})),this[_0x407f5e(0x3ac)][_0x407f5e(0x31a)](()=>this[_0x407f5e(0x29e)]({'hovered':!0x1}));}[_0x1617f0(0x21d)](_0x43a727){this['_offsetY']=_0x43a727;}[_0x1617f0(0x29e)](_0xc268d6){const _0x17fe06=_0x1617f0;var _0x1e80d4,_0x15c2c3,_0x10e816,_0x35d6d5,_0x3e79cb,_0x11c8c5,_0x57f294,_0x2f4723;this[_0x17fe06(0x271)]=(_0x1e80d4=_0xc268d6['color'])==null?this[_0x17fe06(0x271)]:_0x1e80d4,this['_hovered']=(_0x15c2c3=_0xc268d6['hovered'])==null?this[_0x17fe06(0x277)]:_0x15c2c3,this[_0x17fe06(0x367)]=(_0x10e816=_0xc268d6[_0x17fe06(0x24a)])==null?this['_range']:_0x10e816,this[_0x17fe06(0x18b)]=(_0x35d6d5=_0xc268d6['name'])==null?this[_0x17fe06(0x18b)]:_0x35d6d5,this['_labelPosition']=(_0x3e79cb=_0xc268d6[_0x17fe06(0x33b)])==null?this[_0x17fe06(0x37a)]:_0x3e79cb,this[_0x17fe06(0x1fe)]=(_0x11c8c5=_0xc268d6['backgroundColor'])==null?this[_0x17fe06(0x1fe)]:_0x11c8c5,this[_0x17fe06(0x2a4)]=(_0x57f294=_0xc268d6[_0x17fe06(0x2f7)])==null?this[_0x17fe06(0x2a4)]:_0x57f294,this[_0x17fe06(0x274)]=(_0x2f4723=_0xc268d6['labelHorizontalPosition'])==null?this['_labelHorizontalPosition']:_0x2f4723,_0xc268d6[_0x17fe06(0x246)]!==void 0x0&&(this[_0x17fe06(0x284)]=_0xc268d6['highlightSecond']),_0xc268d6[_0x17fe06(0x14c)]!==void 0x0&&(this[_0x17fe06(0x1f6)]=_0xc268d6[_0x17fe06(0x14c)]),_0xc268d6[_0x17fe06(0x34f)]!==void 0x0&&(this[_0x17fe06(0x275)]=_0xc268d6[_0x17fe06(0x34f)]),this[_0x17fe06(0x385)]({'width':_0xc268d6['width'],'height':_0xc268d6[_0x17fe06(0x2f2)]});}[_0x1617f0(0x27d)](_0x3ef7b7){const _0x14f4c1=_0x1617f0;let {row:_0x4f4833,column:_0x3c9473}=_0x3ef7b7;if(_0x4f4833>=this[_0x14f4c1(0x367)]['startRow']&&_0x4f4833<=this[_0x14f4c1(0x367)][_0x14f4c1(0x3b4)]&&_0x3c9473>=this[_0x14f4c1(0x367)][_0x14f4c1(0x163)]&&_0x3c9473<=this[_0x14f4c1(0x367)][_0x14f4c1(0x208)]){this[_0x14f4c1(0x29e)]({'hovered':!0x0});return;}this[_0x14f4c1(0x29e)]({'hovered':!0x1});}[_0x1617f0(0x249)](_0x1d7270){const _0x347284=_0x1617f0;this[_0x347284(0x263)](),this['_isBlinkVisible']=!0x0,this['_blinkIntervalTimer']=window[_0x347284(0x359)](()=>{const _0xefbfb1=_0x347284;this['_isBlinkVisible']=!this[_0xefbfb1(0x295)],this['makeDirty'](!0x0);},0x1f4),this['_blinkTimer']=window[_0x347284(0x252)](()=>{const _0x24bf7a=_0x347284;this[_0x24bf7a(0x263)](),this['_isBlinkVisible']=!0x0,this[_0x24bf7a(0x1df)](!0x0);},_0x1d7270*0x3e8);}['_stopBlinking'](){const _0x4166a4=_0x1617f0;this['_blinkIntervalTimer']&&(window[_0x4166a4(0x3a0)](this[_0x4166a4(0x247)]),this['_blinkIntervalTimer']=void 0x0),this['_blinkTimer']&&(window['clearTimeout'](this[_0x4166a4(0x1e2)]),this['_blinkTimer']=void 0x0);}['triggerDblclick'](_0x982604){return!0x1;}[_0x1617f0(0x2a7)](){const _0x1bcdb2=_0x1617f0;this[_0x1bcdb2(0x263)](),super[_0x1bcdb2(0x2a7)]();}[_0x1617f0(0x200)](_0x552d19){const _0xe7c865=_0x1617f0;let _0x12caf9=this['_color'],_0x46abe9=this[_0xe7c865(0x1fe)];if(this[_0xe7c865(0x1f6)]&&!this[_0xe7c865(0x295)]&&(_0x12caf9=this[_0xe7c865(0x1d8)](this[_0xe7c865(0x271)]),_0x46abe9=this[_0xe7c865(0x1fe)]?this[_0xe7c865(0x1d8)](this[_0xe7c865(0x1fe)]):void 0x0),_0x1ecb53[_0xe7c865(0x308)](_0x552d19,{'width':this[_0xe7c865(0x1ec)],'height':this[_0xe7c865(0x2f2)],'strokeWidth':this[_0xe7c865(0x2fc)]||1.5,'stroke':_0x12caf9,'evented':!0x1,'fill':_0x46abe9}),this[_0xe7c865(0x277)]||this[_0xe7c865(0x2a4)]){var _0x5e2122;_0x552d19[_0xe7c865(0x3b3)]();let _0x3b31a2=this[_0xe7c865(0x274)]===_0xe7c865(0x273)?-Dn(_0x552d19,this[_0xe7c865(0x18b)]):this['width'];_0x552d19[_0xe7c865(0x38b)](0x1,0x0,0x0,0x1,_0x3b31a2,(this[_0xe7c865(0x37a)]===_0xe7c865(0x20d)?0x0:-0x14)+((_0x5e2122=this[_0xe7c865(0x275)])==null?0x0:_0x5e2122)),kn['drawWith'](_0x552d19,{'text':this[_0xe7c865(0x18b)],'color':_0x12caf9}),_0x552d19['restore']();}}['_getLighterColor'](_0x2d86a4){const _0xa4a510=_0x1617f0;return _0x2d86a4[_0xa4a510(0x291)]('#')?_0xa4a510(0x3bb)+Number['parseInt'](_0x2d86a4[_0xa4a510(0x2cc)](0x1,0x3),0x10)+',\x20'+Number['parseInt'](_0x2d86a4[_0xa4a510(0x2cc)](0x3,0x5),0x10)+',\x20'+Number[_0xa4a510(0x27c)](_0x2d86a4[_0xa4a510(0x2cc)](0x5,0x7),0x10)+_0xa4a510(0x2ae):_0x2d86a4[_0xa4a510(0x291)]('rgba')?_0x2d86a4[_0xa4a510(0x223)](/[\d.]+\)$/g,_0xa4a510(0x256)):_0x2d86a4['startsWith']('rgb')?_0x2d86a4[_0xa4a510(0x223)](_0xa4a510(0x370),'rgba')[_0xa4a510(0x223)](')',_0xa4a510(0x2ae)):_0x2d86a4;}};let Jn=class extends _0x5f47fd{constructor(_0x522930,_0x3591f4,_0x28352f,_0x432eda){const _0x32863b=_0x1617f0;super(),this[_0x32863b(0x1f1)]=_0x522930,this[_0x32863b(0x1c5)]=_0x3591f4,this['_collabCursorController']=_0x28352f,this[_0x32863b(0x245)]=_0x432eda,q(this,_0x32863b(0x1d7),new Set()),q(this,_0x32863b(0x349),null),q(this,'_pointerMoveDisposable',null),this[_0x32863b(0x363)]();}[_0x1617f0(0x363)](){const _0x3aacad=_0x1617f0;this[_0x3aacad(0x1c5)][_0x3aacad(0x1eb)][_0x3aacad(0x1fd)](_0x45fbf9(this[_0x3aacad(0x337)]),_0x55d8ef(_0x28226f=>{const _0x3bbbbb=_0x3aacad;if(_0x28226f){let _0x45d0ce=_0x28226f['sheetId'];return _0x42438d(this[_0x3bbbbb(0x2bc)]['getCollabCursors$'](this[_0x3bbbbb(0x1f1)][_0x3bbbbb(0x260)]),this['_themeService'][_0x3bbbbb(0x380)])[_0x3bbbbb(0x1fd)](_0x29416d(([_0x4da992,_0x1a9675])=>{const _0x18308d=_0x3bbbbb;let _0x68f43=new Map();return _0x4da992[_0x18308d(0x24b)]((_0x2a60c6,_0x476893)=>{const _0x428da6=_0x18308d;if(_0x2a60c6[_0x428da6(0x18c)]===_0x45d0ce){let _0x2aa5a8={..._0x2a60c6};_0x2aa5a8[_0x428da6(0x1cf)]=this[_0x428da6(0x245)]['getColorFromTheme'](_0x2a60c6[_0x428da6(0x1cf)]),_0x68f43[_0x428da6(0x361)](_0x476893,_0x2aa5a8);}}),{'skeleton':_0x28226f,'cursors':_0x68f43};}));}return _0x44f9bb({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x3622ef,cursors:_0x5eec59})=>{const _0xc8521a=_0x3aacad;this['_removeCollabCursors'](),_0x3622ef&&this[_0xc8521a(0x2e0)](_0x3622ef,_0x5eec59);}),this[_0x3aacad(0x2ed)](this[_0x3aacad(0x1c5)][_0x3aacad(0x1eb)]['pipe'](_0x45fbf9(this['dispose$']))[_0x3aacad(0x2f3)](_0x5476fa=>{const _0x11da8d=_0x3aacad;var _0x9cf9ee;if(_0x5476fa==null)return;(_0x9cf9ee=this[_0x11da8d(0x3cd)])==null||_0x9cf9ee[_0x11da8d(0x2b7)](),this[_0x11da8d(0x3cd)]=null;let {skeleton:_0x5b5e6d}=_0x5476fa,{scene:_0x575610}=this['_context'];this[_0x11da8d(0x3cd)]=_0x575610[_0x11da8d(0x34d)][_0x11da8d(0x31a)](_0x395474(_0x163254=>{const _0x2468de=_0x11da8d;var _0xd6fb7d,_0x577f16;let {offsetX:_0x374b5d,offsetY:_0x51fbe6}=_0x163254,{x:_0x1d75ab,y:_0x564056}=_0x575610[_0x2468de(0x330)](_0x27f15b[_0x2468de(0x222)]([_0x374b5d,_0x51fbe6])),{scaleX:_0x90c0b6,scaleY:_0x3cddcb}=_0x575610[_0x2468de(0x2bf)](),_0x1933b8=_0x575610[_0x2468de(0x298)](_0xb0e20a[_0x2468de(0x382)]),_0xdd8458=_0x575610[_0x2468de(0x289)](_0x27f15b[_0x2468de(0x222)]([_0x1d75ab,_0x564056]),_0x1933b8),_0x34df6c=_0x5b5e6d[_0x2468de(0x3a7)](_0x374b5d,_0x51fbe6,_0x90c0b6,_0x3cddcb,_0xdd8458);(((_0xd6fb7d=this['_lastPointer'])==null?void 0x0:_0xd6fb7d[_0x2468de(0x204)])!==_0x34df6c[_0x2468de(0x204)]||((_0x577f16=this[_0x2468de(0x349)])==null?void 0x0:_0x577f16[_0x2468de(0x340)])!==_0x34df6c['row'])&&this[_0x2468de(0x1d7)][_0x2468de(0x24b)](_0x41a2c8=>{const _0x26d0ec=_0x2468de;_0x41a2c8[_0x26d0ec(0x27d)](_0x34df6c);});},0x64));})),this[_0x3aacad(0x2ed)](_0x19bd84(()=>{const _0x221aee=_0x3aacad;var _0x4eded5;(_0x4eded5=this[_0x221aee(0x3cd)])==null||_0x4eded5[_0x221aee(0x2b7)](),this[_0x221aee(0x3cd)]=null;}));}[_0x1617f0(0x2e0)](_0x17b620,_0x481844){const _0x3dbe3e=_0x1617f0;let _0x562904=this[_0x3dbe3e(0x1c5)][_0x3dbe3e(0x2bb)]();if(!_0x562904)return;let _0x44db4f=this['_getSheetObject']();if(!_0x44db4f)return;this[_0x3dbe3e(0x1d7)][_0x3dbe3e(0x24b)](_0x20a2cc=>{const _0x59a381=_0x3dbe3e;_0x20a2cc[_0x59a381(0x1df)]();});let {scene:_0x92a364}=_0x44db4f,_0x2770db=Yn(Array[_0x3dbe3e(0x360)](_0x481844[_0x3dbe3e(0x209)]()))[_0x3dbe3e(0x255)](_0xee3e5a=>{let {color:_0x1dbddd,range:_0x3b7cd7,name:_0x28bcec,selection:_0x1ba554,sheetID:_0x301462}=_0xee3e5a,{startColumn:_0x4b9cad,startRow:_0x571009,endColumn:_0x7fe947,endRow:_0xdc52ba}=_0x3b7cd7,_0x43a064=_0x341d03(_0x571009,_0x4b9cad,_0x92a364,_0x562904),_0x445e65=_0x341d03(_0xdc52ba,_0x7fe947,_0x92a364,_0x562904),{columnHeaderHeightAndMarginTop:_0x224e02}=_0x562904,{startX:_0x518428,startY:_0x238114}=_0x43a064,{endX:_0x4de570,endY:_0x4186b9}=_0x445e65,_0x4105fa=_0x4de570-_0x518428,_0x1ebade=_0x4186b9-_0x238114;return new qn(_0x28bcec,{'labelPosition':_0x238114-_0x224e02>=0x14?'top':'bottom','sheetID':_0x301462,'range':_0x3b7cd7,'color':_0x1dbddd,'name':_0x28bcec,'selection':_0x1ba554,'left':_0x518428,'top':_0x238114,'width':_0x4105fa,'height':_0x1ebade,'evented':!0x1,'zIndex':0x1389});});_0x92a364[_0x3dbe3e(0x394)](_0x2770db,0x1),this[_0x3dbe3e(0x1d7)]=new Set(_0x2770db);}[_0x1617f0(0x191)](){const _0x16e681=_0x1617f0;var _0x5c47e1;(_0x5c47e1=this[_0x16e681(0x1d7)])==null||_0x5c47e1[_0x16e681(0x24b)](_0x1b72d0=>_0x1b72d0[_0x16e681(0x2a7)]());}[_0x1617f0(0x1e5)](){const _0xa9615d=_0x1617f0;return _0x5ca888(this[_0xa9615d(0x1f1)][_0xa9615d(0x281)],this[_0xa9615d(0x1f1)]);}};Jn=Y([J(0x1,_0x5973ac(_0x50f83b)),J(0x2,_0x5973ac(Q)),J(0x3,_0x5973ac(_0x180db4))],Jn);function Yn(_0x411667){const _0x1a0286=_0x1617f0;let _0x7f978f=new Map();return _0x411667['forEach'](_0x411cc8=>{const _0x1cad30=_0x3f97;if(_0x7f978f[_0x1cad30(0x195)](_0x411cc8[_0x1cad30(0x39c)])){let _0xe98fae=_0x7f978f['get'](_0x411cc8[_0x1cad30(0x39c)]);_0xe98fae['name']+=',\x20'+_0x411cc8[_0x1cad30(0x339)];}else _0x7f978f[_0x1cad30(0x361)](_0x411cc8[_0x1cad30(0x39c)],_0x411cc8);}),Array[_0x1a0286(0x360)](_0x7f978f[_0x1a0286(0x209)]());}let Xn=class extends _0x5f47fd{constructor(_0x554b41,_0x27ab7e,_0xec24f5){const _0xa727c3=_0x1617f0;super(),this[_0xa727c3(0x1f1)]=_0x554b41,this[_0xa727c3(0x2bc)]=_0x27ab7e,this[_0xa727c3(0x245)]=_0xec24f5,q(this,_0xa727c3(0x1d7),new Set()),q(this,'_renderScheduled',!0x1),q(this,'_isApplyingOverlays',!0x1),q(this,_0xa727c3(0x2c9),new Map()),this[_0xa727c3(0x363)]();}['dispose'](){const _0x520b43=_0x1617f0;this['_removeCollabCursors'](),super[_0x520b43(0x2a7)]();}[_0x1617f0(0x363)](){const _0x288183=_0x1617f0;let _0x459f3a=this[_0x288183(0x1f1)][_0x288183(0x281)][_0x288183(0x35b)][_0x288183(0x26e)],_0x3407f4=this[_0x288183(0x2bc)][_0x288183(0x2cf)](this[_0x288183(0x1f1)][_0x288183(0x260)]);this[_0x288183(0x2ed)](_0x19bd84(_0x42438d([_0x3407f4,_0x459f3a,this[_0x288183(0x245)][_0x288183(0x380)]])['pipe'](_0x1530df(this[_0x288183(0x337)]))[_0x288183(0x2f3)](([_0x37a5f9,_0x5be130])=>{const _0x5a79f3=_0x288183;let _0x2ffc4e=new Map();_0x37a5f9[_0x5a79f3(0x24b)]((_0xa6f11a,_0x5cda13)=>{const _0x3e9b5b=_0x5a79f3;_0xa6f11a[_0x3e9b5b(0x2b3)]===_0x5be130&&_0x2ffc4e[_0x3e9b5b(0x361)](_0x5cda13,{..._0xa6f11a,'color':this[_0x3e9b5b(0x245)]['getColorFromTheme'](_0xa6f11a['color'])});}),this[_0x5a79f3(0x2c9)]=_0x2ffc4e,this[_0x5a79f3(0x253)]();})));let _0x1f95b2=this[_0x288183(0x1f1)][_0x288183(0x242)];this[_0x288183(0x2ed)](_0x19bd84(_0x1f95b2[_0x288183(0x2c8)]['pipe'](_0x1530df(this[_0x288183(0x337)]))[_0x288183(0x2f3)](()=>{const _0x406c0c=_0x288183;this[_0x406c0c(0x34b)]||this['_scheduleRender']();})));}[_0x1617f0(0x253)](){const _0x33d308=_0x1617f0;this['_renderScheduled']||(this[_0x33d308(0x305)]=!0x0,Promise[_0x33d308(0x3d1)]()['then'](()=>{const _0x56d995=_0x33d308;this['_renderScheduled']=!0x1,this[_0x56d995(0x1a9)]();}));}[_0x1617f0(0x1a9)](){const _0x270ca8=_0x1617f0;var _0x346567;this[_0x270ca8(0x191)]();let _0x2ce927=(_0x346567=this['_context']['unit'][_0x270ca8(0x35b)]['getActiveSlide']())==null?void 0x0:_0x346567[_0x270ca8(0x322)]();if(!_0x2ce927)return;let _0x5368cc=[];if(this[_0x270ca8(0x2c9)]['forEach']((_0x42a0a0,_0x10f693)=>{const _0x35a9e8=_0x270ca8;_0x42a0a0[_0x35a9e8(0x2b3)]===_0x2ce927&&_0x42a0a0[_0x35a9e8(0x1c9)][_0x35a9e8(0x24b)](_0x3bc9a4=>{const _0x3d6000=_0x35a9e8;let _0x1fb2da=_0x291f4f(_0x42a0a0[_0x3d6000(0x260)],_0x42a0a0['subUnitId'],_0x3bc9a4),_0x9f51fd=this[_0x3d6000(0x151)](_0x1fb2da);if(!_0x9f51fd)return;let _0x2520ec=this[_0x3d6000(0x224)](_0x9f51fd);_0x5368cc[_0x3d6000(0x2d7)](new jn('slide-collab-cursor-'+_0x10f693+'-'+_0x3bc9a4,{..._0x42a0a0,'left':_0x2520ec['left'],'top':_0x2520ec[_0x3d6000(0x296)],'width':_0x2520ec[_0x3d6000(0x1ec)],'height':_0x2520ec[_0x3d6000(0x2f2)],'angle':_0x9f51fd[_0x3d6000(0x1de)],'evented':!0x1,'zIndex':An}));});}),_0x5368cc[_0x270ca8(0x225)]===0x0){this['_context'][_0x270ca8(0x242)][_0x270ca8(0x1df)](!0x0);return;}this[_0x270ca8(0x34b)]=!0x0,this['_context']['scene'][_0x270ca8(0x394)](_0x5368cc,An),this[_0x270ca8(0x34b)]=!0x1,this[_0x270ca8(0x1d7)]=new Set(_0x5368cc),this[_0x270ca8(0x1f1)][_0x270ca8(0x242)][_0x270ca8(0x1df)](!0x0);}[_0x1617f0(0x191)](){const _0x4f59bc=_0x1617f0;let _0x57e13f=Array[_0x4f59bc(0x360)](this[_0x4f59bc(0x1d7)]);if(_0x57e13f[_0x4f59bc(0x225)]===0x0)return;let _0x2df552=this[_0x4f59bc(0x1f1)]['scene'];'removeObjects'in _0x2df552&&typeof _0x2df552[_0x4f59bc(0x1b1)]==_0x4f59bc(0x266)?_0x2df552[_0x4f59bc(0x1b1)](_0x57e13f):_0x57e13f[_0x4f59bc(0x24b)](_0xd9c921=>{const _0x578fc1=_0x4f59bc;_0x578fc1(0x1c7)in _0x2df552&&typeof _0x2df552['removeObject']==_0x578fc1(0x266)?_0x2df552[_0x578fc1(0x1c7)](_0xd9c921):_0xd9c921[_0x578fc1(0x2a7)]();}),this[_0x4f59bc(0x1d7)]['clear'](),_0x2df552[_0x4f59bc(0x1df)](!0x0);}[_0x1617f0(0x151)](_0x9b01d4){const _0x2857a7=_0x1617f0;var _0x1d51c1,_0x5176a4,_0x3b5ffb;let _0x4db6a9=this[_0x2857a7(0x1f1)][_0x2857a7(0x242)];return(_0x1d51c1=(_0x5176a4=(_0x3b5ffb=_0x4db6a9[_0x2857a7(0x23d)])==null?void 0x0:_0x3b5ffb[_0x2857a7(0x203)](_0x4db6a9,_0x9b01d4))==null?_0x4db6a9[_0x2857a7(0x2b4)](_0x9b01d4):_0x5176a4)==null?null:_0x1d51c1;}[_0x1617f0(0x224)](_0x348ae4){const _0xb66b1c=_0x1617f0;var _0x3cd163,_0x3ec04f;let _0x2bbf7c=_0x348ae4;return(_0x3cd163=(_0x3ec04f=_0x2bbf7c[_0xb66b1c(0x23e)])==null?void 0x0:_0x3ec04f[_0xb66b1c(0x203)](_0x2bbf7c))==null?{'left':_0x348ae4[_0xb66b1c(0x273)],'top':_0x348ae4[_0xb66b1c(0x296)],'width':_0x348ae4[_0xb66b1c(0x1ec)],'height':_0x348ae4[_0xb66b1c(0x2f2)]}:_0x3cd163;}};Xn=Y([J(0x1,_0x5973ac(Q)),J(0x2,_0x5973ac(_0x180db4))],Xn);let Zn=class extends _0x1c2a50{constructor(_0x1121ce,_0x2559b2,_0x2868f7,_0x80c83e,_0x41a911,_0x137162){const _0x30dba3=_0x1617f0;super(),this[_0x30dba3(0x20c)]=_0x1121ce,this[_0x30dba3(0x2ee)]=_0x2559b2,this['_collaborationUIEventService']=_0x2868f7,this[_0x30dba3(0x239)]=_0x80c83e,this[_0x30dba3(0x173)]=_0x41a911,this[_0x30dba3(0x332)]=_0x137162,this[_0x30dba3(0x170)](),this[_0x30dba3(0x254)]();}[_0x1617f0(0x170)](){const _0x3b2a1a=_0x1617f0;this[_0x3b2a1a(0x2ed)](this[_0x3b2a1a(0x20c)]['registerBeforeClose'](()=>{const _0x405a76=_0x3b2a1a;if(this[_0x405a76(0x2ee)][_0x405a76(0x22a)][_0x405a76(0x270)])return this[_0x405a76(0x332)]['t'](_0x405a76(0x353));}));}[_0x1617f0(0x254)](){const _0x2b3873=_0x1617f0;this[_0x2b3873(0x2ed)](this[_0x2b3873(0x205)][_0x2b3873(0x2fe)][_0x2b3873(0x2f3)](_0x788d0d=>{const _0x3c926d=_0x2b3873;_0x788d0d['id']===_0x59a06c[_0x3c926d(0x36e)]&&this[_0x3c926d(0x239)]['show']({'type':_0x4a0d12[_0x3c926d(0x383)],'content':this[_0x3c926d(0x332)]['t'](_0x3c926d(0x317))}),_0x788d0d['id']===_0x59a06c['CLOSE_ROOM']&&this['_messageService'][_0x3c926d(0x364)]({'type':_0x4a0d12[_0x3c926d(0x383)],'content':this[_0x3c926d(0x332)]['t'](_0x3c926d(0x26f))}),_0x788d0d['id']===_0x59a06c[_0x3c926d(0x1c8)]&&this['_notificationService'][_0x3c926d(0x364)]({'title':this[_0x3c926d(0x332)]['t'](_0x3c926d(0x161)),'content':this[_0x3c926d(0x332)]['t']('collaboration-client-ui.permission.content'),'type':_0x3c926d(0x286),'duration':0x0}),_0x788d0d['id']===_0x59a06c['CONFLICT']&&this[_0x3c926d(0x173)][_0x3c926d(0x364)]({'title':this[_0x3c926d(0x332)]['t'](_0x3c926d(0x304)),'content':this[_0x3c926d(0x332)]['t'](_0x3c926d(0x220)),'type':_0x3c926d(0x286),'duration':0x0}),_0x788d0d['id']===_0x59a06c[_0x3c926d(0x2be)]&&this['_messageService'][_0x3c926d(0x364)]({'type':_0x4a0d12['Warning'],'content':this['_localeService']['t'](_0x788d0d[_0x3c926d(0x20f)]||'')}),_0x788d0d['id']===_0x59a06c['SOCKET_FAILED_RETRY']&&this['_messageService'][_0x3c926d(0x364)]({'type':_0x4a0d12[_0x3c926d(0x383)],'content':this['_localeService']['t'](_0x3c926d(0x306))}),_0x788d0d['id']===_0x59a06c[_0x3c926d(0x26a)]&&this[_0x3c926d(0x239)][_0x3c926d(0x364)]({'type':_0x4a0d12[_0x3c926d(0x17e)],'content':this[_0x3c926d(0x332)]['t'](_0x3c926d(0x1cc))}),_0x788d0d['id']===_0x59a06c[_0x3c926d(0x21e)]&&this[_0x3c926d(0x239)]['show']({'type':_0x4a0d12[_0x3c926d(0x17e)],'content':this[_0x3c926d(0x332)]['t'](_0x3c926d(0x29a))});}));}};Zn=Y([J(0x0,_0x5c0c32),J(0x1,_0x104cc7),J(0x2,_0x5973ac(_0x173286)),J(0x3,_0x3ae384),J(0x4,_0x3be3fa),J(0x5,_0x5973ac(_0x22f781))],Zn);const Qn=_0xd1825e(_0x1617f0(0x166));let $n=class extends _0x5f47fd{constructor(_0x4e7345,_0x29a696,_0x1ca6f3,_0x56bc4d,_0xdd810b){const _0x2e4c66=_0x1617f0;super(),this[_0x2e4c66(0x2b0)]=_0x4e7345,this[_0x2e4c66(0x292)]=_0x29a696,this[_0x2e4c66(0x2d4)]=_0x1ca6f3,this[_0x2e4c66(0x157)]=_0x56bc4d,_0xdd810b?_0xdd810b[_0x2e4c66(0x288)]()[_0x2e4c66(0x2c7)](()=>this[_0x2e4c66(0x363)]()):(this[_0x2e4c66(0x292)][_0x2e4c66(0x1b9)](_0x2e4c66(0x207),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x2e4c66(0x363)]());}async['_init'](){const _0xb9d995=_0x1617f0;let _0x56a209=this['_urlService'][_0xb9d995(0x188)](_0xb9d995(0x281)),_0x5580b4=this[_0xb9d995(0x2b0)][_0xb9d995(0x188)](_0xb9d995(0x3bd)),_0x58ff7e=this[_0xb9d995(0x2b0)][_0xb9d995(0x188)](_0xb9d995(0x29f));if(!_0x56a209||!_0x5580b4){this[_0xb9d995(0x292)][_0xb9d995(0x1b9)]('[CollaborationDataLoaderController]','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}let _0x2ab55a=await this[_0xb9d995(0x157)][_0xb9d995(0x1c6)](_0x56a209,Number(_0x5580b4),_0x58ff7e);_0x2ab55a&&_0x2ab55a instanceof _0x360514&&this[_0xb9d995(0x282)](_0x2ab55a);}async[_0x1617f0(0x282)](_0xcac83){const _0x49c057=_0x1617f0;await this[_0x49c057(0x352)](_0xcac83),_0xcac83[_0x49c057(0x2d0)][_0x49c057(0x1fd)](_0x1530df(this['dispose$']))[_0x49c057(0x2f3)](_0x3470af=>{const _0x145578=_0x49c057;_0x3470af&&this[_0x145578(0x227)](_0x3470af);}),this['_urlService'][_0x49c057(0x321)][_0x49c057(0x1fd)](_0x1530df(this[_0x49c057(0x337)]))[_0x49c057(0x2f3)](()=>this[_0x49c057(0x352)](_0xcac83));}['_updateURLWithCurrentState'](_0x12ad9c,_0x5aecda=!0x1){const _0x16bd79=_0x1617f0;let _0x38b37c=this[_0x16bd79(0x2b0)][_0x16bd79(0x188)](_0x16bd79(0x29f));_0x12ad9c[_0x16bd79(0x167)]()!==_0x38b37c&&this[_0x16bd79(0x2b0)][_0x16bd79(0x2a3)]('subunit',_0x12ad9c[_0x16bd79(0x167)](),_0x5aecda);}async[_0x1617f0(0x352)](_0x49f77e){const _0x349a07=_0x1617f0;var _0x1a5a41;let _0x1790b5=this[_0x349a07(0x2b0)][_0x349a07(0x188)](_0x349a07(0x29f));if(!_0x1790b5||!_0x49f77e[_0x349a07(0x3b7)](_0x1790b5)){let _0x5092fb=_0x49f77e['getUnhiddenWorksheets']()[0x0],_0x2c7b79=_0x49f77e[_0x349a07(0x3b7)](_0x5092fb);if(!_0x2c7b79)return;this[_0x349a07(0x227)](_0x2c7b79,!0x0),await this['_commandService'][_0x349a07(0x19f)](_0x5e4eb4['id'],{'unitId':_0x49f77e['getUnitId'](),'subUnitId':_0x5092fb});return;}((_0x1a5a41=_0x49f77e[_0x349a07(0x3da)]())==null?void 0x0:_0x1a5a41['getSheetId']())!==_0x1790b5&&await this['_commandService'][_0x349a07(0x19f)](_0x5e4eb4['id'],{'unitId':_0x49f77e['getUnitId'](),'subUnitId':_0x1790b5});}};$n=Y([J(0x0,Qn),J(0x1,_0x3abbf6),J(0x2,_0x532b7c),J(0x3,_0x5973ac(_0x1bd8f9)),J(0x4,_0x448b77(_0xd4d073))],$n);let er=class{constructor(_0x461759,_0x1d083f){const _0x420484=_0x1617f0;this[_0x420484(0x23f)]=_0x461759,this[_0x420484(0x150)]=_0x1d083f;}[_0x1617f0(0x32d)](_0x56ae04){const _0x365317=_0x1617f0;this['_transformUndoRedoStack'](_0x56ae04),this[_0x365317(0x16c)](_0x56ae04);}[_0x1617f0(0x35a)](_0x396643){const _0x4b33ea=_0x1617f0;let {unitID:_0x2aefb9}=_0x396643,{redoCache:_0x502f4c}=this[_0x4b33ea(0x150)][_0x4b33ea(0x179)](_0x2aefb9)[_0x4b33ea(0x299)](_0x4df0a0)[_0x4b33ea(0x377)]();if(_0x502f4c[_0x4b33ea(0x225)]===0x0)return _0x396643;let _0x5aca3f=_0x52854c[_0x4b33ea(0x2c0)](_0x396643[_0x4b33ea(0x387)][0x0]);for(let _0x27886d=0x0;_0x27886d<_0x502f4c['length'];_0x27886d++){let _0x4b4ca6={'id':_0x4b33ea(0x3ab),'params':{..._0x502f4c[_0x27886d]}},_0x4571b8=this['_transformService'][_0x4b33ea(0x331)](_0x5aca3f,_0x4b4ca6,!0x1);if(_0x13b57e(_0x4571b8))throw _0x4571b8[_0x4b33ea(0x286)];_0x5aca3f=_0x4571b8[_0x4b33ea(0x27b)];}return{..._0x52854c['deepClone'](_0x396643),'mutations':[_0x5aca3f]};}[_0x1617f0(0x324)](_0x15a967){const _0xc21614=_0x1617f0;let {unitID:_0x2a4060}=_0x15a967,_0x1d18d0=this['_renderManagerService'][_0xc21614(0x179)](_0x2a4060)[_0xc21614(0x299)](_0x4df0a0),{undoCache:_0x5bcd3f,redoCache:_0x24fd5e}=_0x1d18d0[_0xc21614(0x377)]();if(_0x5bcd3f[_0xc21614(0x225)]===0x0||_0x24fd5e[_0xc21614(0x225)]===0x0)return;let _0x51e67b=[],_0x3f7bbe=[],_0xec8c54=_0x52854c[_0xc21614(0x2c0)](_0x15a967[_0xc21614(0x387)][0x0]),_0x4b1594=_0x52854c['deepClone'](_0x15a967[_0xc21614(0x387)][0x0]);for(let _0x3dd57b=_0x5bcd3f[_0xc21614(0x225)]-0x1;_0x3dd57b>=0x0;_0x3dd57b--){let _0x579380={'id':_0xc21614(0x3ab),'params':{..._0x5bcd3f[_0x3dd57b]}},_0x174a71={'id':'doc.mutation.rich-text-editing','params':{..._0x24fd5e[_0x3dd57b]}},_0x1523e0=this[_0xc21614(0x23f)][_0xc21614(0x331)](_0xec8c54,_0x579380,!0x1),_0x1bebab=this[_0xc21614(0x23f)][_0xc21614(0x331)](_0x4b1594,_0x174a71,!0x1);if(_0x13b57e(_0x1523e0))throw _0x1523e0[_0xc21614(0x286)];if(_0x13b57e(_0x1bebab))throw _0x1bebab[_0xc21614(0x286)];_0x51e67b[_0xc21614(0x154)](_0x1523e0[_0xc21614(0x36b)][_0xc21614(0x1ba)]),_0x3f7bbe[_0xc21614(0x154)](_0x1bebab[_0xc21614(0x36b)][_0xc21614(0x1ba)]),_0xec8c54=_0x1523e0['m1Prime'],_0x4b1594=_0x1bebab[_0xc21614(0x27b)];}_0x1d18d0[_0xc21614(0x1d3)]({'undoCache':_0x51e67b,'redoCache':_0x3f7bbe});}[_0x1617f0(0x16c)](_0x14d63c){const _0x34de13=_0x1617f0;let {unitID:_0x28b606}=_0x14d63c,_0x159562=this[_0x34de13(0x150)]['getRenderUnitById'](_0x28b606)[_0x34de13(0x299)](_0x4df0a0),_0x5f41c3=_0x159562[_0x34de13(0x1a3)]();if(_0x5f41c3==null)return;let _0x42823c=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x14d63c[_0x34de13(0x15e)],'actions':null,'textRanges':[_0x5f41c3]}}],_0x4d4a4f=this[_0x34de13(0x23f)]['transformMutationsWithChangeset'](_0x14d63c,_0x42823c);if(!_0x9a542b(_0x4d4a4f))throw _0x4d4a4f[_0x34de13(0x286)];let _0x175281=_0x4d4a4f['m2Prime'][0x0][_0x34de13(0x1ba)]['textRanges'];Array[_0x34de13(0x1a4)](_0x175281)&&_0x175281[_0x34de13(0x225)]&&_0x159562[_0x34de13(0x366)](_0x175281[0x0]);}};er=Y([J(0x0,_0x4f51ff),J(0x1,_0xec082e)],er);let tr=class{constructor(_0x2466ed,_0x165085,_0x476a3e){const _0x3eff79=_0x1617f0;this[_0x3eff79(0x333)]=_0x2466ed,this['_transformService']=_0x165085,this['_docStateChangeManagerService']=_0x476a3e;}[_0x1617f0(0x1f0)](_0x1d0a66){this['_transformHistoryAndStateStack'](_0x1d0a66);}[_0x1617f0(0x35a)](_0x2bbb6f){const _0x4f1b1f=_0x1617f0;let {unitID:_0x2629d}=_0x2bbb6f,{collaboration:_0x151559}=this[_0x4f1b1f(0x1b2)]['getStateCache'](_0x2629d);if(_0x151559['length']===0x0)return _0x2bbb6f;let _0x5ce68a=_0x52854c[_0x4f1b1f(0x2c0)](_0x2bbb6f[_0x4f1b1f(0x387)][0x0]);for(let _0xd28632=0x0;_0xd28632<_0x151559[_0x4f1b1f(0x225)];_0xd28632++){let _0x5cc9b7={'id':_0x4f1b1f(0x3ab),'params':{'unitId':_0x151559[_0xd28632][_0x4f1b1f(0x260)],..._0x151559[_0xd28632][_0x4f1b1f(0x2f4)]}},_0x1234af=this[_0x4f1b1f(0x23f)][_0x4f1b1f(0x331)](_0x5ce68a,_0x5cc9b7,!0x1);if(_0x13b57e(_0x1234af))throw _0x1234af[_0x4f1b1f(0x286)];_0x5ce68a=_0x1234af['m1Prime'];}return{..._0x52854c[_0x4f1b1f(0x2c0)](_0x2bbb6f),'mutations':[_0x5ce68a]};}[_0x1617f0(0x14d)](_0x1079a7){const _0x26a6d0=_0x1617f0;let {unitID:_0x4c85d3}=_0x1079a7,{history:_0x51df90,collaboration:_0x5b12b3}=this[_0x26a6d0(0x1b2)][_0x26a6d0(0x152)](_0x4c85d3);if(_0x51df90[_0x26a6d0(0x225)]===0x0&&_0x5b12b3[_0x26a6d0(0x225)]===0x0)return;let _0x2fe3b0=[],_0x447a01=[],_0x24dc1f=_0x52854c[_0x26a6d0(0x2c0)](_0x1079a7[_0x26a6d0(0x387)][0x0]),_0x2f9b3a=_0x52854c[_0x26a6d0(0x2c0)](_0x1079a7[_0x26a6d0(0x387)][0x0]);for(let _0x4ee51e=_0x51df90[_0x26a6d0(0x225)]-0x1;_0x4ee51e>=0x0;_0x4ee51e--){let _0x1b231e={'id':_0x26a6d0(0x3ab),'params':{'unitId':_0x51df90[_0x4ee51e][_0x26a6d0(0x260)],..._0x51df90[_0x4ee51e][_0x26a6d0(0x1f7)]}},_0x4cba76={'id':_0x26a6d0(0x3ab),'params':{'unitId':_0x51df90[_0x4ee51e]['unitId'],..._0x51df90[_0x4ee51e]['redoState']}},_0x5b3b52=this[_0x26a6d0(0x23f)][_0x26a6d0(0x331)](_0x24dc1f,_0x1b231e,!0x1),_0x22e33c=this[_0x26a6d0(0x23f)][_0x26a6d0(0x331)](_0x2f9b3a,_0x4cba76,!0x1);if(_0x13b57e(_0x5b3b52))throw _0x5b3b52[_0x26a6d0(0x286)];if(_0x13b57e(_0x22e33c))throw _0x22e33c['error'];_0x2fe3b0['unshift']({..._0x51df90[_0x4ee51e],'undoState':_0x5b3b52[_0x26a6d0(0x36b)][_0x26a6d0(0x1ba)],'redoState':_0x22e33c[_0x26a6d0(0x36b)][_0x26a6d0(0x1ba)]}),_0x24dc1f=_0x5b3b52[_0x26a6d0(0x27b)],_0x2f9b3a=_0x22e33c['m1Prime'];}_0x24dc1f=_0x52854c[_0x26a6d0(0x2c0)](_0x1079a7['mutations'][0x0]),_0x2f9b3a=_0x52854c[_0x26a6d0(0x2c0)](_0x1079a7[_0x26a6d0(0x387)][0x0]);for(let _0xf45072=_0x5b12b3[_0x26a6d0(0x225)]-0x1;_0xf45072>=0x0;_0xf45072--){let _0x319dc4={'id':_0x26a6d0(0x3ab),'params':{'unitId':_0x5b12b3[_0xf45072][_0x26a6d0(0x260)],..._0x5b12b3[_0xf45072][_0x26a6d0(0x1f7)]}},_0x1f5219={'id':_0x26a6d0(0x3ab),'params':{'unitId':_0x5b12b3[_0xf45072][_0x26a6d0(0x260)],..._0x5b12b3[_0xf45072]['redoState']}},_0x42d1ac=this[_0x26a6d0(0x23f)][_0x26a6d0(0x331)](_0x24dc1f,_0x319dc4,!0x1),_0x5aa5d7=this[_0x26a6d0(0x23f)][_0x26a6d0(0x331)](_0x2f9b3a,_0x1f5219,!0x1);if(_0x13b57e(_0x42d1ac))throw _0x42d1ac[_0x26a6d0(0x286)];if(_0x13b57e(_0x5aa5d7))throw _0x5aa5d7['error'];_0x447a01['unshift']({..._0x5b12b3[_0xf45072],'undoState':_0x42d1ac[_0x26a6d0(0x36b)]['params'],'redoState':_0x5aa5d7[_0x26a6d0(0x36b)][_0x26a6d0(0x1ba)]}),_0x24dc1f=_0x42d1ac[_0x26a6d0(0x27b)],_0x2f9b3a=_0x5aa5d7[_0x26a6d0(0x27b)];}this[_0x26a6d0(0x1b2)][_0x26a6d0(0x3b9)](_0x4c85d3,{'history':_0x2fe3b0,'collaboration':_0x447a01});}};tr=Y([J(0x0,_0x5973ac(_0x2ec2f3)),J(0x1,_0x4f51ff),J(0x2,_0x5973ac(_0x304aca))],tr);let nr=class{constructor(_0x32bbda,_0x564d95){const _0x597816=_0x1617f0;this[_0x597816(0x333)]=_0x32bbda,this['_transformService']=_0x564d95;}[_0x1617f0(0x3a3)](_0x981e75){const _0x862fd9=_0x1617f0;var _0x440dac;let _0x491b17=this[_0x862fd9(0x333)][_0x862fd9(0x3ca)](_0x5ed90f),_0x50c809=(_0x440dac=_0x491b17['getDocRanges']())==null?[]:_0x440dac;if(_0x50c809['length']===0x0)return;let _0x3095de=_0x981e75[_0x862fd9(0x15e)],_0xc628d8=[{'id':_0x862fd9(0x3ab),'params':{'unitId':_0x3095de,'actions':null,'textRanges':_0x50c809}}],_0x3c9f42=this[_0x862fd9(0x23f)][_0x862fd9(0x196)](_0x981e75,_0xc628d8);if(!_0x9a542b(_0x3c9f42))throw _0x3c9f42[_0x862fd9(0x286)];let _0x12d8c4=_0x3c9f42[_0x862fd9(0x36b)][0x0][_0x862fd9(0x1ba)][_0x862fd9(0x1b0)];Array[_0x862fd9(0x1a4)](_0x12d8c4)&&_0x12d8c4[_0x862fd9(0x225)]&&_0x491b17[_0x862fd9(0x32a)](_0x12d8c4,{'unitId':_0x3095de,'subUnitId':_0x3095de},!0x1);}};nr=Y([J(0x0,_0x5973ac(_0x2ec2f3)),J(0x1,_0x4f51ff)],nr);let rr=class extends _0x1c2a50{constructor(_0x2cfd08,_0x485758,_0x2d2422,_0x33a423,_0x106075,_0x40798e,_0x44ba64){const _0x1e920a=_0x1617f0;super(),this['_collaborationController']=_0x2cfd08,this['_docTransformIMECacheService']=_0x485758,this[_0x1e920a(0x2d3)]=_0x2d2422,this[_0x1e920a(0x2ab)]=_0x33a423,this['_docSyncEditingCollabCursorService']=_0x106075,this[_0x1e920a(0x239)]=_0x40798e,this['_localeService']=_0x44ba64,q(this,_0x1e920a(0x33c),new _0x2944e0(_0x446368['NOT_COLLAB'])),this[_0x1e920a(0x162)]();}[_0x1617f0(0x162)](){const _0x1699f9=_0x1617f0;this[_0x1699f9(0x2ed)](this['_collaborationController']['entityInit$'][_0x1699f9(0x2f3)](_0x2eec6d=>{const _0x4102dc=_0x1699f9;_0x2eec6d instanceof _0x12de68&&_0x2eec6d[_0x4102dc(0x3db)]({'onTransformIME':_0x517c6a=>this[_0x4102dc(0x1c2)][_0x4102dc(0x32d)](_0x517c6a),'onTransformState':_0x5f5a7d=>this[_0x4102dc(0x2d3)][_0x4102dc(0x1f0)](_0x5f5a7d),'onTransformSelections':_0x5256ea=>this[_0x4102dc(0x2ab)]['transformSelections'](_0x5256ea),'onSyncEditingCollabCursor':_0x169997=>this[_0x4102dc(0x2fb)][_0x4102dc(0x38c)](_0x169997),'onTransformRemoteChangesetByIMECache':_0x5216b6=>this[_0x4102dc(0x1c2)][_0x4102dc(0x35a)](_0x5216b6),'onTransformRemoteChangesetByStateCache':_0x2be2c4=>this[_0x4102dc(0x2d3)][_0x4102dc(0x35a)](_0x2be2c4)});}));}};rr=Y([J(0x0,_0x5973ac(_0x40434d)),J(0x1,_0x5973ac(er)),J(0x2,_0x5973ac(tr)),J(0x3,_0x5973ac(nr)),J(0x4,_0x5973ac(Ln)),J(0x5,_0x3ae384),J(0x6,_0x5973ac(_0x22f781))],rr);let ir=class extends _0x1c2a50{constructor(_0x1d2335,_0x5ad695,_0x5a6ace,_0x71ac8b){const _0x44e1a4=_0x1617f0;super(),this[_0x44e1a4(0x333)]=_0x1d2335,this[_0x44e1a4(0x258)]=_0x5ad695,this['_logService']=_0x5a6ace,this[_0x44e1a4(0x30d)]=_0x71ac8b,q(this,_0x44e1a4(0x1fb),void 0x0),this[_0x44e1a4(0x363)]();}[_0x1617f0(0x363)](){const _0x179567=_0x1617f0;this[_0x179567(0x185)](),this[_0x179567(0x2ad)](),this[_0x179567(0x2ea)](),this[_0x179567(0x1f8)]();}[_0x1617f0(0x1f8)](){const _0x22cda3=_0x1617f0;this[_0x22cda3(0x2ed)](this[_0x22cda3(0x30d)][_0x22cda3(0x186)][_0x22cda3(0x2f3)](_0xdbcd23=>{const _0x57eaf6=_0x22cda3;this[_0x57eaf6(0x1fb)]=_0xdbcd23==null?void 0x0:_0xdbcd23[_0x57eaf6(0x2e7)];}));}['_initWindowErrorListener'](){const _0x5a73d=_0x1617f0;let _0x4bc938=_0x1c4b7e=>{const _0x33a16c=_0x3f97;var _0x6fba9d;this[_0x33a16c(0x171)](_0x33a16c(0x286),'[Window\x20Error]:\x20'+_0x1c4b7e['message']+'\x20at\x20'+_0x1c4b7e[_0x33a16c(0x182)]+':'+_0x1c4b7e['lineno']+':'+_0x1c4b7e['colno']+'\x0a'+(((_0x6fba9d=_0x1c4b7e[_0x33a16c(0x286)])==null?void 0x0:_0x6fba9d[_0x33a16c(0x2d8)])||''));};window[_0x5a73d(0x1d9)]('error',_0x4bc938),this[_0x5a73d(0x2ed)](()=>{const _0x103bdb=_0x5a73d;window['removeEventListener'](_0x103bdb(0x286),_0x4bc938);});}['_initUnhandledRejectionListener'](){const _0x4bbb4f=_0x1617f0;let _0x3bf117=_0x2bd562=>{const _0x20f64f=_0x3f97;this[_0x20f64f(0x171)](_0x20f64f(0x286),'[Unhandled\x20Rejection]:\x20'+_0x2bd562['reason']);};window['addEventListener'](_0x4bbb4f(0x37c),_0x3bf117),this[_0x4bbb4f(0x2ed)](()=>{const _0x4193b5=_0x4bbb4f;window[_0x4193b5(0x36c)](_0x4193b5(0x37c),_0x3bf117);});}[_0x1617f0(0x2ea)](){const _0x1ad5e2=_0x1617f0;let _0x283eed=this['_logService'][_0x1ad5e2(0x286)][_0x1ad5e2(0x27e)](this[_0x1ad5e2(0x292)]);this[_0x1ad5e2(0x292)]['error']=(..._0x2c5d6c)=>{const _0x1d7191=_0x1ad5e2;let _0x434a28=_0x2c5d6c[_0x1d7191(0x255)](_0x2d438c=>_0x2d438c instanceof Error?_0x2d438c[_0x1d7191(0x3c0)]+'\x0a'+_0x2d438c[_0x1d7191(0x2d8)]:String(_0x2d438c))['join']('\x20');this[_0x1d7191(0x171)](_0x1d7191(0x286),_0x1d7191(0x238)+_0x434a28),_0x283eed(..._0x2c5d6c);},this[_0x1ad5e2(0x2ed)](()=>{const _0x3d7fb4=_0x1ad5e2;this[_0x3d7fb4(0x292)]['error']=_0x283eed;});}[_0x1617f0(0x171)](_0x1f28a3,_0x541488){const _0x2e7cf0=_0x1617f0;try{let _0x44db10={'userId':this[_0x2e7cf0(0x1fb)],'logLabel':_0x1f28a3,'content':_0x541488};this[_0x2e7cf0(0x258)]['post'](_0x2e7cf0(0x278),{'body':_0x44db10})[_0x2e7cf0(0x3c4)](()=>{});}catch{}}};ir=Y([J(0x0,_0x5973ac(_0x2ec2f3)),J(0x1,_0x5973ac(_0x31bbfb)),J(0x2,_0x3abbf6),J(0x3,_0x5973ac(_0x2bf3ef))],ir);function ar({state$:_0x269378,interactionBlocked$:_0x3733ac}){const _0x1290d4=_0x1617f0;return _0x1924a1(_0x7136a,{'children':[_0x500664(_0x3733ac,!0x1,!0x0)&&_0x4a46bd(_0x1290d4(0x3d2),{'data-u-comp':'snapshot-loading-interaction-guard','aria-hidden':!0x0,'className':_0x1290d4(0x158)}),_0x4a46bd(or,{'state$':_0x269378})]});}function or({state$:_0x5d3f7a}){const _0x318cea=_0x1617f0;let _0x22a809=_0x500664(_0x5d3f7a,null,!0x0);return _0x22a809?_0x1924a1(_0x318cea(0x3d2),{'data-u-comp':'snapshot-loading-timeout','role':_0x318cea(0x2b8),'className':'univer-fixed\x20univer-left-1/2\x20univer-top-4\x20univer-z-[1001]\x20univer-flex\x20univer-max-w-[calc(100vw-32px)]\x20-univer-translate-x-1/2\x20univer-items-center\x20univer-gap-2\x20univer-rounded-lg\x20univer-bg-white\x20univer-px-3\x20univer-py-2\x20univer-text-sm\x20univer-text-gray-900\x20univer-shadow-lg\x20dark:!univer-bg-gray-700\x20dark:!univer-text-white','children':[_0x4a46bd(_0x441a7e,{'className':_0x318cea(0x2a1)}),_0x4a46bd(_0x318cea(0x3a9),{'children':_0x22a809[_0x318cea(0x2c6)]}),_0x4a46bd(_0x59f921,{'size':'small','variant':_0x318cea(0x14f),'onClick':()=>window[_0x318cea(0x248)][_0x318cea(0x3b6)](),'children':_0x22a809[_0x318cea(0x2e2)]})]}):null;}const sr=_0x1617f0(0x184);let cr=class extends _0x1c2a50{constructor(_0x5eb4bf,_0x1442a3,_0x220dae,_0x40e643,_0x5b6e10,_0x4fb2bd,_0x331269,_0x2420d1){const _0x4555fd=_0x1617f0;super(),this[_0x4555fd(0x201)]=_0x5eb4bf,this[_0x4555fd(0x239)]=_0x1442a3,this[_0x4555fd(0x332)]=_0x220dae,this[_0x4555fd(0x333)]=_0x40e643,this[_0x4555fd(0x1b3)]=_0x5b6e10,this[_0x4555fd(0x1f3)]=_0x331269,this[_0x4555fd(0x2b0)]=_0x2420d1,q(this,_0x4555fd(0x217),new _0x2944e0(null)),q(this,_0x4555fd(0x25a),new _0x2944e0(!0x1)),q(this,_0x4555fd(0x31d),new Set()),q(this,'_blockProgressWatches',new Map()),q(this,'_handoffUnitIds',new Set()),q(this,_0x4555fd(0x26c),new Map()),q(this,'_previewUnitId',void 0x0),q(this,'_shortcutBlock',void 0x0),q(this,'_sheetLoadingRenderService',void 0x0),q(this,'timeoutState$',this[_0x4555fd(0x217)][_0x4555fd(0x24f)]());let _0x5f3cfc=()=>_0x2cc6ea(ar,{'state$':this[_0x4555fd(0x1cb)],'interactionBlocked$':this[_0x4555fd(0x25a)]});this[_0x4555fd(0x2ed)](_0x4fb2bd['registerComponent'](_0x37de0e[_0x4555fd(0x365)],()=>_0x1238a3(_0x5f3cfc,this[_0x4555fd(0x333)]))),this['disposeWithMe'](this[_0x4555fd(0x201)][_0x4555fd(0x37b)][_0x4555fd(0x2f3)](_0x10f06f=>{const _0x3a1bae=_0x4555fd;this[_0x3a1bae(0x26c)]=_0x10f06f,_0x10f06f['forEach'](_0x1c1ddd=>{const _0x24993f=_0x3a1bae;this[_0x24993f(0x16f)](_0x1c1ddd),this[_0x24993f(0x206)](_0x1c1ddd);});})),this[_0x4555fd(0x2ed)](this['_urlService']['urlChange$'][_0x4555fd(0x2f3)](()=>{const _0x3460f9=_0x4555fd;this[_0x3460f9(0x26c)][_0x3460f9(0x24b)](_0x40534a=>{const _0x4863da=_0x3460f9;this[_0x4863da(0x16f)](_0x40534a),this[_0x4863da(0x206)](_0x40534a);});}));}[_0x1617f0(0x2a7)](){const _0x26bf66=_0x1617f0;var _0x180822;if(this[_0x26bf66(0x31d)]['forEach'](_0x258008=>this[_0x26bf66(0x239)][_0x26bf66(0x287)](_0x258008)),this[_0x26bf66(0x31d)][_0x26bf66(0x272)](),this[_0x26bf66(0x28e)]){var _0x44ea8c;(_0x44ea8c=this['_sheetLoadingRenderService'])==null||_0x44ea8c['hide'](this['_previewUnitId']);}this[_0x26bf66(0x28e)]=void 0x0,this[_0x26bf66(0x3d5)][_0x26bf66(0x24b)](({timeoutId:_0xf9326b})=>clearTimeout(_0xf9326b)),this['_blockProgressWatches'][_0x26bf66(0x272)](),(_0x180822=this['_shortcutBlock'])==null||_0x180822['dispose'](),this['_shortcutBlock']=void 0x0,this[_0x26bf66(0x217)][_0x26bf66(0x39b)](),this[_0x26bf66(0x25a)]['complete'](),super[_0x26bf66(0x2a7)]();}['_updateMessage'](_0x539091){const _0x2141a4=_0x1617f0;let _0x4de8a5=''+sr+_0x539091[_0x2141a4(0x260)];if(_0x539091[_0x2141a4(0x314)]===_0x55784d[_0x2141a4(0x398)]){if(this[_0x2141a4(0x3d3)](_0x539091[_0x2141a4(0x260)]),this['_isVisibleUnit'](_0x539091[_0x2141a4(0x260)])&&this[_0x2141a4(0x28e)]===_0x539091[_0x2141a4(0x260)]){this[_0x2141a4(0x239)][_0x2141a4(0x364)]({'id':_0x4de8a5,'type':_0x4a0d12[_0x2141a4(0x2e6)],'duration':0x1/0x0,'content':this[_0x2141a4(0x332)]['t'](_0x2141a4(0x22c))}),this[_0x2141a4(0x31d)][_0x2141a4(0x2f0)](_0x4de8a5);return;}this['_clearTimeoutState'](_0x539091['unitId']),this[_0x2141a4(0x239)][_0x2141a4(0x287)](_0x4de8a5),this['_messageIds'][_0x2141a4(0x1ca)](_0x4de8a5);return;}if(!this['_isVisibleUnit'](_0x539091[_0x2141a4(0x260)])){this[_0x2141a4(0x3d3)](_0x539091[_0x2141a4(0x260)]),this[_0x2141a4(0x2c3)](_0x539091[_0x2141a4(0x260)]),this[_0x2141a4(0x239)][_0x2141a4(0x287)](_0x4de8a5),this[_0x2141a4(0x31d)][_0x2141a4(0x1ca)](_0x4de8a5);return;}if(_0x539091[_0x2141a4(0x314)]===_0x55784d[_0x2141a4(0x2d1)]){this[_0x2141a4(0x3d3)](_0x539091[_0x2141a4(0x260)]),this['_clearTimeoutState'](_0x539091[_0x2141a4(0x260)]),this['_messageService']['show']({'id':_0x4de8a5,'type':_0x4a0d12[_0x2141a4(0x17e)],'content':this[_0x2141a4(0x332)]['t'](_0x2141a4(0x1cc))}),this[_0x2141a4(0x31d)]['delete'](_0x4de8a5);return;}if(_0x539091[_0x2141a4(0x314)]!==_0x55784d['LOADING_BLOCKS']||_0x539091[_0x2141a4(0x2dd)]<=0xa){this['_clearBlockProgressWatch'](_0x539091[_0x2141a4(0x260)]),this[_0x2141a4(0x239)][_0x2141a4(0x287)](_0x4de8a5),this['_messageIds'][_0x2141a4(0x1ca)](_0x4de8a5);return;}this['_watchBlockProgress'](_0x539091)||(this[_0x2141a4(0x239)][_0x2141a4(0x364)]({'id':_0x4de8a5,'type':_0x4a0d12[_0x2141a4(0x2e6)],'duration':0x1/0x0,'content':this['_localeService']['t'](_0x2141a4(0x2a6))+'\x20'+_0x539091[_0x2141a4(0x19c)]+'/'+_0x539091[_0x2141a4(0x2dd)]}),this['_messageIds'][_0x2141a4(0x2f0)](_0x4de8a5));}['_watchBlockProgress'](_0x2c2083){const _0xa0c258=_0x1617f0;let _0x390f9d=this[_0xa0c258(0x3d5)][_0xa0c258(0x3ca)](_0x2c2083['unitId']);if((_0x390f9d==null?void 0x0:_0x390f9d[_0xa0c258(0x19c)])===_0x2c2083[_0xa0c258(0x19c)])return _0x390f9d[_0xa0c258(0x1e9)];this['_clearBlockProgressWatch'](_0x2c2083['unitId']);let _0x486033=setTimeout(()=>{const _0x3622af=_0xa0c258;let _0x3a9e23=this[_0x3622af(0x3d5)][_0x3622af(0x3ca)](_0x2c2083['unitId']);if(!_0x3a9e23||_0x3a9e23['timeoutId']!==_0x486033)return;_0x3a9e23[_0x3622af(0x1e9)]=!0x0;let _0x3aca2c=''+sr+_0x2c2083[_0x3622af(0x260)];this[_0x3622af(0x239)][_0x3622af(0x287)](_0x3aca2c),this[_0x3622af(0x31d)]['delete'](_0x3aca2c),this[_0x3622af(0x217)][_0x3622af(0x32c)]({'unitId':_0x2c2083[_0x3622af(0x260)],'content':this[_0x3622af(0x332)]['t']('collaboration-client-ui.snapshotLoading.timeout',String(_0x2c2083[_0x3622af(0x19c)]),String(_0x2c2083[_0x3622af(0x2dd)])),'refreshLabel':this['_localeService']['t'](_0x3622af(0x399))});},0xea60);return this['_blockProgressWatches']['set'](_0x2c2083[_0xa0c258(0x260)],{'loadedBlocks':_0x2c2083['loadedBlocks'],'timedOut':!0x1,'timeoutId':_0x486033}),!0x1;}[_0x1617f0(0x3d3)](_0x51484a){const _0x3143a7=_0x1617f0;let _0x18da2a=this[_0x3143a7(0x3d5)]['get'](_0x51484a);_0x18da2a&&(clearTimeout(_0x18da2a[_0x3143a7(0x1cd)]),this['_blockProgressWatches'][_0x3143a7(0x1ca)](_0x51484a),this[_0x3143a7(0x2c3)](_0x51484a));}[_0x1617f0(0x2c3)](_0x511a62){const _0xb17d91=_0x1617f0;var _0x2a09a0;((_0x2a09a0=this['_timeoutState$'][_0xb17d91(0x2ac)])==null?void 0x0:_0x2a09a0[_0xb17d91(0x260)])===_0x511a62&&this[_0xb17d91(0x217)][_0xb17d91(0x32c)](null);}['_updateSheetPreview'](_0x187e27){const _0xf14110=_0x1617f0;if(_0x187e27[_0xf14110(0x314)]===_0x55784d[_0xf14110(0x159)]&&this[_0xf14110(0x1ac)][_0xf14110(0x1ca)](_0x187e27[_0xf14110(0x260)]),!this[_0xf14110(0x19a)](_0x187e27[_0xf14110(0x260)])){this['_hidePreview'](_0x187e27[_0xf14110(0x260)]);return;}if(_0x187e27[_0xf14110(0x314)]===_0x55784d[_0xf14110(0x2d1)]||_0x187e27[_0xf14110(0x2dd)]<=0xa){this['_hidePreview'](_0x187e27[_0xf14110(0x260)]);return;}if(_0x187e27[_0xf14110(0x314)]===_0x55784d[_0xf14110(0x398)]){this['_handoffPreview'](_0x187e27[_0xf14110(0x260)]);return;}if(_0x187e27['stage']===_0x55784d[_0xf14110(0x194)]&&_0x187e27['workbookShell']&&_0x187e27['activeSheetId']){let _0x1dffd6=this['_getSheetLoadingRenderService']();if(!_0x1dffd6)return;this[_0xf14110(0x28e)]&&this['_previewUnitId']!==_0x187e27['unitId']&&this[_0xf14110(0x15c)](this[_0xf14110(0x28e)]),_0x1dffd6[_0xf14110(0x384)](_0x187e27['workbookShell'],_0x187e27[_0xf14110(0x1bb)]),this[_0xf14110(0x28e)]=_0x187e27[_0xf14110(0x260)],this['_setInteractionBlocked'](!0x0),_0x187e27['previewReady']&&_0x1dffd6[_0xf14110(0x364)](_0x187e27[_0xf14110(0x2a8)],_0x187e27[_0xf14110(0x1bb)],_0x187e27[_0xf14110(0x300)]);}}[_0x1617f0(0x1e3)](_0x55c611){const _0x14693c=_0x1617f0;if(this[_0x14693c(0x28e)]!==_0x55c611||this[_0x14693c(0x1ac)][_0x14693c(0x195)](_0x55c611))return;let _0x25a80d=this['_sheetLoadingRenderService'];_0x25a80d&&(this['_handoffUnitIds']['add'](_0x55c611),_0x25a80d[_0x14693c(0x3ae)](_0x55c611,0x2710)[_0x14693c(0x2c7)](_0x5e0061=>{const _0x29fd68=_0x14693c;if(this['_previewUnitId']!==_0x55c611)return;if(_0x5e0061){let _0x1cab62=''+sr+_0x55c611;this[_0x29fd68(0x239)][_0x29fd68(0x287)](_0x1cab62),this[_0x29fd68(0x31d)]['delete'](_0x1cab62),this['_previewUnitId']=void 0x0,this[_0x29fd68(0x357)](!0x1);return;}let _0x57d9e9=''+sr+_0x55c611;this[_0x29fd68(0x239)]['remove'](_0x57d9e9),this[_0x29fd68(0x31d)][_0x29fd68(0x1ca)](_0x57d9e9),this['_timeoutState$']['next']({'unitId':_0x55c611,'content':this['_localeService']['t'](_0x29fd68(0x1cc)),'refreshLabel':this[_0x29fd68(0x332)]['t'](_0x29fd68(0x399))});}));}[_0x1617f0(0x15c)](_0xef001d){const _0x138767=_0x1617f0;var _0x512bf7;this['_previewUnitId']===_0xef001d&&((_0x512bf7=this[_0x138767(0x16d)])==null||_0x512bf7[_0x138767(0x371)](_0xef001d),this['_previewUnitId']=void 0x0,this[_0x138767(0x357)](!0x1));}[_0x1617f0(0x357)](_0xd80e5b){const _0x819d5c=_0x1617f0;if(_0xd80e5b!==this[_0x819d5c(0x25a)]['value']){if(_0xd80e5b)this[_0x819d5c(0x30e)]=this[_0x819d5c(0x1f3)]['forceDisable']();else{var _0x4aa022;(_0x4aa022=this[_0x819d5c(0x30e)])==null||_0x4aa022[_0x819d5c(0x2a7)](),this['_shortcutBlock']=void 0x0;}this[_0x819d5c(0x25a)][_0x819d5c(0x32c)](_0xd80e5b);}}[_0x1617f0(0x19a)](_0x6f0bed){const _0x351551=_0x1617f0;let _0x3746fb=this[_0x351551(0x2b0)][_0x351551(0x188)](_0x351551(0x281));return!_0x3746fb||_0x3746fb===_0x6f0bed;}['_getSheetLoadingRenderService'](){const _0xe994e5=_0x1617f0;return this['_sheetLoadingRenderService']?this[_0xe994e5(0x16d)]:(this['_pluginService'][_0xe994e5(0x3a4)](_0xa34316[_0xe994e5(0x26d)]),this['_injector'][_0xe994e5(0x195)](_0x60db1)&&(this[_0xe994e5(0x16d)]=this[_0xe994e5(0x333)][_0xe994e5(0x3ca)](_0x60db1)),this['_sheetLoadingRenderService']);}};cr=Y([J(0x0,_0x5973ac(_0x35877a)),J(0x1,_0x3ae384),J(0x2,_0x5973ac(_0x22f781)),J(0x3,_0x5973ac(_0x2ec2f3)),J(0x4,_0x5973ac(_0x1330b3)),J(0x5,_0x5a8732),J(0x6,_0x2bce10),J(0x7,Qn)],cr);function lr(_0xaaa9a1){const _0x3eb80e=_0x1617f0;var _0x43bc7e,_0xe8c9ab;let _0x3e8337=(_0x43bc7e=_0xaaa9a1[_0x3eb80e(0x279)])==null?void 0x0:_0x43bc7e[_0x3eb80e(0x314)],_0x351e15=((_0xe8c9ab=_0xaaa9a1[_0x3eb80e(0x279)])==null?void 0x0:_0xe8c9ab[_0x3eb80e(0x285)])||0x0;return _0x3e8337===_0x473044[_0x3eb80e(0x189)]&&_0x351e15>0x0;}function ur(_0x2fca9f){const _0x254756=_0x1617f0;return _0x2fca9f[_0x254756(0x1b8)]===_0xf3b8d7[_0x254756(0x183)];}let dr=class extends _0x1c2a50{constructor(_0x572348,_0x2e5c60,_0xc576cb,_0x713217,_0x506675,_0x56f476,_0x4fc7ac){const _0xc443d6=_0x1617f0;super(),this[_0xc443d6(0x239)]=_0x572348,this[_0xc443d6(0x2d4)]=_0x2e5c60,this['_configService']=_0xc576cb,this['_httpService']=_0x713217,this[_0xc443d6(0x341)]=_0x506675,this[_0xc443d6(0x292)]=_0x56f476,this[_0xc443d6(0x332)]=_0x4fc7ac,q(this,'_pollingInterval',null),q(this,_0xc443d6(0x290),0x0),q(this,_0xc443d6(0x218),0x0),q(this,'_taskIds',[]),q(this,_0xc443d6(0x2d2),0x0),this[_0xc443d6(0x351)]();}['_initCommandInterceptor'](){const _0x14d697=_0x1617f0;this[_0x14d697(0x2ed)](this[_0x14d697(0x2d4)][_0x14d697(0x181)]((_0x58f596,_0x17054f)=>{const _0x3ffe79=_0x14d697;var _0x2dbd33;if(_0x58f596['id']!==_0x348578['id'])return;let _0xdf300a=_0x58f596[_0x3ffe79(0x1ba)];if(this[_0x3ffe79(0x3d6)]((_0x2dbd33=_0xdf300a[_0x3ffe79(0x1fc)])==null?[]:_0x2dbd33)&&!this['_checkCalculationAvailable']())throw this[_0x3ffe79(0x327)](_0x58f596,_0x17054f),this[_0x3ffe79(0x325)](),new _0x3160d8();})),this[_0x14d697(0x2ed)](this[_0x14d697(0x2d4)][_0x14d697(0x1a1)]((_0xa3d5,_0x50484f)=>{const _0x1b237e=_0x14d697;if(_0xa3d5['id']!==_0x4157ee['id'])return;let _0x52d9b4=_0xa3d5[_0x1b237e(0x1ba)];if(lr(_0x52d9b4)){let _0x476c71=_0xb298d();this[_0x1b237e(0x2eb)][_0x1b237e(0x2d7)](_0x476c71),this[_0x1b237e(0x3d4)](_0x476c71);}else{if(ur(_0x52d9b4)&&this[_0x1b237e(0x2eb)][_0x1b237e(0x225)]>0x0){let _0x4c7f32=this['_taskIds'][_0x1b237e(0x1d2)]();this[_0x1b237e(0x1be)](_0x4c7f32);}}}));}[_0x1617f0(0x2a7)](){const _0x4f0c23=_0x1617f0;super['dispose'](),this['_clearPolling'](),this[_0x4f0c23(0x2eb)]=[],this[_0x4f0c23(0x218)]=0x0,this[_0x4f0c23(0x290)]=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x1617f0(0x327)](_0x3c94a0,_0x1a33d6){const _0x334661=_0x1617f0;for(let _0x5d91d9=0x0;_0x5d91d9<0x1e;_0x5d91d9++)try{if(await this['_getFormulaLimitStatus'](),this[_0x334661(0x2de)]()){this[_0x334661(0x178)](_0x3c94a0,_0x1a33d6),this[_0x334661(0x239)][_0x334661(0x364)]({'content':this['_localeService']['t'](_0x334661(0x3a6)),'type':_0x4a0d12['Success']});return;}await new Promise(_0x992f=>{const _0x592828=_0x334661;this[_0x592828(0x388)]=window['setTimeout'](_0x992f,0x3e8);});}catch(_0x4ecb55){this[_0x334661(0x292)][_0x334661(0x286)](_0x4ecb55);}this[_0x334661(0x239)][_0x334661(0x364)]({'content':this[_0x334661(0x332)]['t'](_0x334661(0x344)),'type':_0x4a0d12[_0x334661(0x17e)]});}[_0x1617f0(0x178)](_0x37c277,_0x1f9527){const _0x1594cf=_0x1617f0;try{this[_0x1594cf(0x2d4)][_0x1594cf(0x19f)](_0x37c277['id'],_0x37c277[_0x1594cf(0x1ba)],_0x1f9527);}catch(_0x3e883f){this['_logService'][_0x1594cf(0x286)](_0x3e883f);}}['_setFormulaLimitStatus'](_0x3f396f,_0x17a9b5){const _0x3e4e8a=_0x1617f0;_0x17a9b5<this[_0x3e4e8a(0x2d2)]||(this[_0x3e4e8a(0x2d2)]=_0x17a9b5,this[_0x3e4e8a(0x290)]=Number[_0x3e4e8a(0x27c)](_0x3f396f[_0x3e4e8a(0x2fd)]),this[_0x3e4e8a(0x218)]=Number['parseInt'](_0x3f396f[_0x3e4e8a(0x320)]));}async[_0x1617f0(0x3d4)](_0x1028a2){const _0x15f3a7=_0x1617f0;let _0x1fd01b=Date[_0x15f3a7(0x2d5)]();try{var _0x2ecc0e,_0x18b965;let _0x4c5d0c=((_0x2ecc0e=this[_0x15f3a7(0x17f)][_0x15f3a7(0x1c4)](_0x295cee))==null?void 0x0:_0x2ecc0e[_0x15f3a7(0x39a)])||_0x15f3a7(0x169),_0x34d6d3=(await this[_0x15f3a7(0x258)][_0x15f3a7(0x164)](_0x4c5d0c,{'body':JSON['stringify']({'taskId':_0x1028a2})}))[_0x15f3a7(0x1aa)];if(((_0x18b965=_0x34d6d3['error'])==null?void 0x0:_0x18b965['code'])!==_0x20687a['OK'])return;this[_0x15f3a7(0x27a)](_0x34d6d3[_0x15f3a7(0x35f)],_0x1fd01b);}catch(_0x285853){this[_0x15f3a7(0x292)][_0x15f3a7(0x286)](_0x285853);}}async[_0x1617f0(0x174)](_0x5e5f8a){const _0x4d8380=_0x1617f0;let _0x4d19a0=Date['now']();try{var _0x296241,_0x4b5e8c;let _0x18fda0=((_0x296241=this['_configService'][_0x4d8380(0x1c4)](_0x295cee))==null?void 0x0:_0x296241[_0x4d8380(0x1e7)])||_0x4d8380(0x1a6),_0x37f31f=_0x5e5f8a?_0x18fda0+_0x4d8380(0x241)+encodeURIComponent(_0x5e5f8a):_0x18fda0,_0x354663=(await this[_0x4d8380(0x258)][_0x4d8380(0x3ca)](_0x37f31f))[_0x4d8380(0x1aa)];if(((_0x4b5e8c=_0x354663[_0x4d8380(0x286)])==null?void 0x0:_0x4b5e8c[_0x4d8380(0x307)])!==_0x20687a['OK'])return;this[_0x4d8380(0x27a)](_0x354663[_0x4d8380(0x35f)],_0x4d19a0);}catch(_0x11530b){this[_0x4d8380(0x292)][_0x4d8380(0x286)](_0x11530b);}}async[_0x1617f0(0x1be)](_0x16115f){const _0x178243=_0x1617f0;let _0x58da9c=Date[_0x178243(0x2d5)]();try{var _0x420b5c,_0x5c773d;let _0x1712ea=((_0x420b5c=this[_0x178243(0x17f)][_0x178243(0x1c4)](_0x295cee))==null?void 0x0:_0x420b5c['releaseFormulaLimitUrl'])||'/universer-api/license/formula/limit/done',_0x3a773a=(await this[_0x178243(0x258)][_0x178243(0x164)](_0x1712ea,{'body':JSON['stringify']({'taskId':_0x16115f})}))[_0x178243(0x1aa)];if(((_0x5c773d=_0x3a773a[_0x178243(0x286)])==null?void 0x0:_0x5c773d[_0x178243(0x307)])!==_0x20687a['OK'])return;this['_setFormulaLimitStatus'](_0x3a773a[_0x178243(0x35f)],_0x58da9c);}catch(_0x416fa8){this[_0x178243(0x292)][_0x178243(0x286)](_0x416fa8);}}[_0x1617f0(0x2de)](){const _0xfb6827=_0x1617f0;return this[_0xfb6827(0x290)]===0x0||this[_0xfb6827(0x290)]-this[_0xfb6827(0x218)]>0x0;}[_0x1617f0(0x2ca)](){const _0x482eb0=_0x1617f0;this[_0x482eb0(0x388)]&&(clearTimeout(this[_0x482eb0(0x388)]),this[_0x482eb0(0x388)]=null);}[_0x1617f0(0x325)](){const _0x5c8fce=_0x1617f0;this[_0x5c8fce(0x239)][_0x5c8fce(0x364)]({'content':this[_0x5c8fce(0x332)]['t'](_0x5c8fce(0x32e)),'type':_0x4a0d12[_0x5c8fce(0x2e6)]});}['_hasFormulaInDirtyRanges'](_0x44ea9e){const _0x45533d=_0x1617f0;for(let _0x33e8a2 of _0x44ea9e){let {unitId:_0x9f5f3d,sheetId:_0xdf9de4,range:_0x31b0a6}=_0x33e8a2,_0x3a0580=this['_univerInstanceService']['getUnit'](_0x9f5f3d,_0xa34316[_0x45533d(0x26d)]);if(!_0x3a0580)continue;let _0x9b668c=_0x3a0580[_0x45533d(0x3b7)](_0xdf9de4);if(!_0x9b668c)continue;let _0x24c430=_0x9b668c[_0x45533d(0x24d)]();for(let _0x56cd69=_0x31b0a6['startRow'];_0x56cd69<=_0x31b0a6['endRow'];_0x56cd69++)for(let _0x5e0c2a=_0x31b0a6[_0x45533d(0x163)];_0x5e0c2a<=_0x31b0a6[_0x45533d(0x208)];_0x5e0c2a++){let _0x392e43=_0x24c430[_0x45533d(0x1e1)](_0x56cd69,_0x5e0c2a);if(_0x392e43&&(_0xed1796(_0x392e43['f'])||_0x396926(_0x392e43['si'])))return!0x0;}}return!0x1;}};dr=Y([J(0x0,_0x5973ac(_0x3ae384)),J(0x1,_0x532b7c),J(0x2,_0x4c560f),J(0x3,_0x5973ac(_0x31bbfb)),J(0x4,_0x265e32),J(0x5,_0x3abbf6),J(0x6,_0x5973ac(_0x22f781))],dr);let fr=class extends _0x1c2a50{constructor(_0x1fa6fb,_0x5a0faa,_0x287fb6){const _0x563415=_0x1617f0;super(),this[_0x563415(0x17f)]=_0x1fa6fb,this[_0x563415(0x2ec)]=_0x5a0faa,this[_0x563415(0x35d)]=_0x287fb6,q(this,_0x563415(0x3ce),new Map()),q(this,'_saveTaskMap',new Map()),q(this,'_disabled',!0x1);}[_0x1617f0(0x20e)](){this['_disabled']=!0x0;}['enableLocalCache'](){const _0x15911a=_0x1617f0;this[_0x15911a(0x379)]=!0x1;}get[_0x1617f0(0x22a)](){return this['_saveTaskMap'];}['dispose'](){const _0x2d6b62=_0x1617f0;this[_0x2d6b62(0x1b6)]()[_0x2d6b62(0x2c7)](()=>super[_0x2d6b62(0x2a7)]());}async['loadOfflineData'](_0x1327df){const _0xae9fb7=_0x1617f0;return this[_0xae9fb7(0x379)]?null:this[_0xae9fb7(0x2ec)][_0xae9fb7(0x24c)](_0x330c9e(_0x1327df));}async[_0x1617f0(0x280)](_0x5e5713,_0x21c5c0){const _0x39bdb6=_0x1617f0;return!!this['_localStorageService'][_0x39bdb6(0x35c)](_0x330c9e(_0x5e5713),_0x21c5c0);}async['backupOfflineData'](_0x3aa99f,_0x3a2b13){const _0x5501e3=_0x1617f0;var _0x195822;let _0x54acba=(_0x195822=this[_0x5501e3(0x3ce)]['get'](_0x3aa99f))==null?await this[_0x5501e3(0x2ec)][_0x5501e3(0x24c)](_0x330c9e(_0x3aa99f)):_0x195822;if(!_0x54acba)return;let _0x4a374b=Date['now'](),_0x2707ed=new Date(_0x4a374b)[_0x5501e3(0x358)]();await this['_localStorageService'][_0x5501e3(0x35c)](_0x330c9e(_0x3aa99f)+_0x5501e3(0x23c)+_0x4a374b,{'reason':_0x3a2b13,'createdAt':_0x2707ed,'data':_0x54acba});}['updateOfflineData'](_0x4d0355,_0x297111,_0xf84a05,_0x5b1eff){const _0x335566=_0x1617f0;let _0x2e9e23=this[_0x335566(0x35d)]['getCurrentRevOfUnit'](_0x4d0355);this[_0x335566(0x3ce)][_0x335566(0x361)](_0x4d0355,{'unitID':_0x4d0355,'type':_0x297111,'awaitingChangeset':_0xf84a05,'mutations':_0x5b1eff,'rev':_0x2e9e23}),this['_saveTaskMap'][_0x335566(0x195)](_0x4d0355)||this[_0x335566(0x2c4)](_0x4d0355);}[_0x1617f0(0x2c4)](_0xc9572a){const _0x39eccf=_0x1617f0;let _0x524c2f=this[_0x39eccf(0x386)]();_0x524c2f===0x0?this[_0x39eccf(0x2f6)](_0xc9572a):this[_0x39eccf(0x37d)][_0x39eccf(0x361)](_0xc9572a,window[_0x39eccf(0x252)](()=>this[_0x39eccf(0x2f6)](_0xc9572a),_0x524c2f));}[_0x1617f0(0x386)](){var _0x203931;return(_0x203931=this['_configService']['getConfig'](_0x102938))==null?_0x3da459:_0x203931;}[_0x1617f0(0x2f6)](_0x201cfd){const _0x5a8235=_0x1617f0;let _0x2f9c2e=this[_0x5a8235(0x37d)][_0x5a8235(0x3ca)](_0x201cfd);return _0x2f9c2e!==void 0x0&&window[_0x5a8235(0x3cb)](_0x2f9c2e),this['_localStorageService'][_0x5a8235(0x35c)](_0x330c9e(_0x201cfd),this[_0x5a8235(0x3ce)]['get'](_0x201cfd))[_0x5a8235(0x2c7)](()=>this[_0x5a8235(0x37d)]['delete'](_0x201cfd));}async['exhaustSavingTask'](){const _0x26cb03=_0x1617f0;let _0x505e91=[];this[_0x26cb03(0x37d)]['forEach']((_0x5f2ddf,_0x32ef99)=>{const _0x36cf2d=_0x26cb03;window[_0x36cf2d(0x3cb)](_0x5f2ddf),_0x505e91[_0x36cf2d(0x2d7)](this[_0x36cf2d(0x2f6)](_0x32ef99)[_0x36cf2d(0x2c7)](()=>{const _0x39c7eb=_0x36cf2d;this[_0x39c7eb(0x37d)][_0x39c7eb(0x1ca)](_0x32ef99);}));}),await Promise[_0x26cb03(0x199)](_0x505e91);}};fr=Y([J(0x0,_0x4c560f),J(0x1,_0x47f201),J(0x2,_0x5973ac(_0x4ac1de))],fr);var pr=class extends _0x5f47fd{constructor(){const _0x4bc3a6=_0x1617f0;super(),q(this,_0x4bc3a6(0x321),void 0x0),this[_0x4bc3a6(0x321)]=_0x19faf1(window,_0x4bc3a6(0x3c1))[_0x4bc3a6(0x1fd)](_0x1530df(this[_0x4bc3a6(0x337)]),_0x163086({'bufferSize':0x1,'refCount':!0x0}),_0x4ce272(void 0x0));}['setParam'](_0x27eadf,_0x1c5bff,_0x5d3ece=!0x1){const _0x4a57ed=_0x1617f0;let _0x1ce499=new URL(window[_0x4a57ed(0x248)][_0x4a57ed(0x21b)]);_0x1ce499[_0x4a57ed(0x20b)][_0x4a57ed(0x361)](_0x27eadf,_0x1c5bff),_0x5d3ece?window[_0x4a57ed(0x192)][_0x4a57ed(0x345)]('','',_0x1ce499[_0x4a57ed(0x21c)]()):window['history'][_0x4a57ed(0x3a1)]('','',_0x1ce499[_0x4a57ed(0x21c)]());}[_0x1617f0(0x310)](_0x4fbe3a,_0xd8edf4=!0x1){const _0x51ae5b=_0x1617f0;let _0x379e7e=new URL(window[_0x51ae5b(0x248)][_0x51ae5b(0x21b)]);_0x379e7e['searchParams'][_0x51ae5b(0x1ca)](_0x4fbe3a),_0xd8edf4?window[_0x51ae5b(0x192)][_0x51ae5b(0x345)]('','',_0x379e7e[_0x51ae5b(0x21c)]()):window['history'][_0x51ae5b(0x3a1)]('','',_0x379e7e[_0x51ae5b(0x21c)]());}['getParam'](_0x4134bf){const _0x1063e1=_0x1617f0;var _0x219f84;return(_0x219f84=new URL(window[_0x1063e1(0x248)][_0x1063e1(0x21b)])[_0x1063e1(0x20b)][_0x1063e1(0x3ca)](_0x4134bf))==null?void 0x0:_0x219f84;}};let $=class extends _0x504fec{constructor(_0x3fb7bc=Tn,_0x39549f,_0x43f728,_0x35f93b){const _0x4dc44f=_0x1617f0;super(),this[_0x4dc44f(0x17c)]=_0x3fb7bc,this[_0x4dc44f(0x150)]=_0x39549f,this[_0x4dc44f(0x333)]=_0x43f728,this[_0x4dc44f(0x17f)]=_0x35f93b;let {..._0x58f7ac}=_0x1690c4({},Tn,this[_0x4dc44f(0x17c)]);this[_0x4dc44f(0x17f)][_0x4dc44f(0x234)](_0x4dc44f(0x1bd),_0x58f7ac);}[_0x1617f0(0x251)](){const _0x49b9d9=_0x1617f0;this[_0x49b9d9(0x276)](),this[_0x49b9d9(0x2da)]();}[_0x1617f0(0x338)](){const _0x29982a=_0x1617f0;this[_0x29982a(0x34a)]();}[_0x1617f0(0x276)](){const _0x18d5dd=_0x1617f0;var _0x10a8ec;let _0x4b8ce1=[[Z],[dr],[Qn,{'useClass':pr}],[_0x31177a,{'useClass':_0x357596}],[_0x104cc7,{'useClass':fr}],[X],[yn],[Zn],[Q],[$n],[cr]];this[_0x18d5dd(0x17c)][_0x18d5dd(0x1a0)]!==!0x1&&_0x4b8ce1[_0x18d5dd(0x2d7)]([nr],[er],[tr],[Ln],[rr],[En]),this['_config'][_0x18d5dd(0x334)]&&_0x4b8ce1[_0x18d5dd(0x2d7)]([ir]),_0x4d0604(this[_0x18d5dd(0x333)],_0x4c59cf(_0x4b8ce1,(_0x10a8ec=this[_0x18d5dd(0x17c)])==null?void 0x0:_0x10a8ec[_0x18d5dd(0x369)]));}['_registerRenderDependencies'](){const _0x2c657f=_0x1617f0;this[_0x2c657f(0x17c)][_0x2c657f(0x1a0)]!==!0x1&&this['disposeWithMe'](this[_0x2c657f(0x150)][_0x2c657f(0x2c5)](_0xa34316[_0x2c657f(0x2a5)],[Kn])),this['disposeWithMe'](this[_0x2c657f(0x150)]['registerRenderModule'](_0xa34316['UNIVER_SHEET'],[Jn])),this['disposeWithMe'](this['_renderManagerService'][_0x2c657f(0x2c5)](_0xa34316[_0x2c657f(0x14e)],[Xn])),this[_0x2c657f(0x2ed)](this[_0x2c657f(0x150)][_0x2c657f(0x2c5)](_0xa34316['UNIVER_BOARD'],[Un]));}[_0x1617f0(0x2da)](){const _0x5861=_0x1617f0;_0x10363f(this[_0x5861(0x333)],[[Q],[X],[yn],[Zn],[$n],[dr],[cr]]),this[_0x5861(0x17c)][_0x5861(0x1a0)]!==!0x1&&_0x10363f(this[_0x5861(0x333)],[[rr],[En]]),this[_0x5861(0x17c)][_0x5861(0x334)]&&_0x10363f(this[_0x5861(0x333)],[[ir]]);}};q($,'pluginName',_0x1617f0(0x1b7)),q($,_0x1617f0(0x396),Cn),q($,'version',wn),$=Y([_0x676be5(_0xe2c765,_0x617367,_0x5d96fe,_0x527bed,_0x4a090e,_0x2c242f,_0x44db6c,_0x491404),J(0x1,_0xec082e),J(0x2,_0x5973ac(_0x2ec2f3)),J(0x3,_0x4c560f)],$);let mr=class extends _0x2f7d12{constructor(_0x5cac02,_0x45ce20,_0x5da63d,_0x3d397f,_0x42bff0){super(_0x5cac02,_0x45ce20,_0x5da63d,_0x3d397f,_0x42bff0);}async[_0x1617f0(0x2e9)](_0x2add5e){const _0x1d4df7=_0x1617f0;let _0x32b75b=await this[_0x1d4df7(0x19e)](),_0x46b8a0=this['_createSocketURL'](_0x2add5e,_0x32b75b);return this[_0x1d4df7(0x25e)](_0x46b8a0);}['_createSocketURL'](_0x4a7b54,_0x4ac87d){const _0x26bf25=_0x1617f0;let _0x2b56a9=typeof window>'u'?new URL(_0x4a7b54):new URL(_0x4a7b54,window['location'][_0x26bf25(0x187)]);_0x2b56a9['searchParams'][_0x26bf25(0x361)](_0x26bf25(0x1a8),_0x4ac87d);let _0x1c6777=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x26bf25(0x248)][_0x26bf25(0x37f)]);return _0x1c6777[_0x26bf25(0x3ca)](_0x26bf25(0x354))&&_0x2b56a9[_0x26bf25(0x20b)][_0x26bf25(0x361)]('runId',_0x1c6777[_0x26bf25(0x3ca)](_0x26bf25(0x354))),_0x2b56a9[_0x26bf25(0x21c)]();}async[_0x1617f0(0x19e)](){const _0x516774=_0x1617f0;var _0x45de00,_0x1efd6a,_0x4c4b30;let _0x4b83c6=this[_0x516774(0x17f)][_0x516774(0x1c4)](_0x295cee),_0x259eb1=(_0x45de00=_0x4b83c6==null?void 0x0:_0x4b83c6[_0x516774(0x3c6)])==null?_0x4e3e96:_0x45de00;return(_0x1efd6a=(_0x4c4b30=(await this[_0x516774(0x258)][_0x516774(0x3ca)](_0x259eb1,{'headers':{'Content-Type':_0x516774(0x232)}}))[_0x516774(0x1aa)])==null?void 0x0:_0x4c4b30[_0x516774(0x18a)])==null?'':_0x1efd6a;}};function _0x5258(){const _0x13d9fa=['enableFrontendLog','_startSheetCollabCursor','focused$','dispose$','onRendered','name','static','labelPosition','_status$','_handleEvent','getCollabEntity$','getCurrentTypeOfUnit$','row','_univerInstanceService','cursorInfo','addClipboardHook','collaboration-client-ui.formula.calculation.unable','replaceState','_getAnchorBounding','board-collab-cursor-','_entities','_lastPointer','_registerRenderDependencies','_isApplyingOverlays','isEditing','onPointerMove$','AWAITING','offsetY','_instanceService','_initCommandInterceptor','_updateSubUnitFromURLParams','collaboration-client-ui.collaboration.offline-data-not-saved','runId','iterator','measureText','_setInteractionBlocked','toISOString','setInterval','transformRemoteChangeset','pageManager','setItem','_revisionService','min','limitInfo','from','set','setAlpha','_init','show','GLOBAL','setActiveRange','_range','_boardElementStateService','override','split','m2Prime','removeEventListener','univer-text-blue-500','OTHER_CLIENT_EDITING','defineProperty','rgb','hide','...','preventDefault','univer-m-0\x20univer-p-0','onTransformChange$','string','getUndoRedoMutationParamsCache','constructor','_disabled','_labelPosition','state$','unhandledrejection','_saveTaskMap','ACTIVE_UNIT_EVENT_CHANNEL','search','currentTheme$','721UVFzBm','VIEW_MAIN','Warning','showSkeleton','transformByState','_getSaveTimeout','mutations','_pollingInterval','univer-text-green-500','reconnect','transform','syncEditingCollabCursor','purple.300','univer-border-none\x20univer-bg-transparent','_onRefRangeChange','resize','univer-transition-all\x20univer-duration-200','_getMergeRange','result','addObjects','AWAITING_WITH_PENDING','packageName','blue.400','COMPLETE','collaboration-client-ui.snapshotLoading.refresh','startFormulaLimitUrl','complete','selection','PENDING','createInstance','_initResize','clearInterval','pushState','_heartbeatTimer','transformSelections','startPluginsForType','getColorFromTheme','collaboration-client-ui.formula.calculation.started','getCellIndexByOffset','filter','span','getOffsetConfig','doc.mutation.rich-text-editing','onPointerLeave$','getUnit','handoff','green.600','MoveRangeCommandId','_eventUnsubscribe','send','save','endRow','getActivePageId','reload','getSheetBySheetId','onPointerEnter$','setStateCache','storage','rgba(','stringify','type','_cursor','_docSkeletonManagerService','message','popstate','collaboration-client-ui.collabStatus.offline','_scheduleHeartbeat','catch','_drawAnchor','wsSessionTicketUrl','_slideDrawingStateService','_toggleOnline','getTypeOfUnitAdded$','get','clearTimeout','ranges','_pointerMoveDisposable','_cachedData','_cursorInfo$','cursorInfo$','resolve','div','_clearBlockProgressWatch','_startCalculationLimit','_blockProgressWatches','_hasFormulaInDirtyRanges','requireSession','some','restore','getActiveSheet','addHandlerCallback','InsertColCommandId','highlight','_transformHistoryAndStateStack','UNIVER_SLIDE','primary','_renderManagerService','_getSceneObjectByKey','getStateCache','collaboration-client-ui.collabStatus.conflict','unshift','_assignedColors','_colorIndex','_dataLoaderService','univer-fixed\x20univer-inset-0\x20univer-z-[1000]\x20univer-cursor-wait','LOADING_SNAPSHOT','HEADER_MENU','_scene','_hidePreview','_onCursorUpdate','unitID','i18nKey','univer-text-red-500','collaboration-client-ui.permission.title','_initEntityListener','startColumn','post','_initCommandExecutedListener','uni.network.url-service','getSheetId','_drawRectRange','/universer-api/license/formula/limit/start','OFFLINE','\x20-\x20','_transformPreviousActiveRange','_sheetLoadingRenderService','getUnitStatus$','_updateMessage','_setupBeforeClosingHandler','_uploadLog','collaboration-client-ui.collabStatus.syncing','_notificationService','_getFormulaLimitStatus','29127UPduoQ','strokeRect','getSnapshot','_applyCommand','getRenderUnitById','collab-text-anchor-','getUnitId','_config','@univerjs-pro/collaboration-client-ui','Error','_configService','9216775JQIIxh','beforeCommandExecuted','filename','SUCCESS','snapshot-loading-','_initWindowErrorListener','socket$','origin','getParam','START_CALCULATION','ticket','_name','sheetID','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','[RemoteUniscriptService]:\x20no\x20focused\x20unit','collaboration-client-ui.collabStatus.synced','_removeCollabCursors','history','getTypeOfUnitDisposed$','LOADING_BLOCKS','has','transformMutationsWithChangeset','univer-flex\x20univer-items-center\x20univer-justify-center','default','all','_isVisibleUnit','_docClipboardService','loadedBlocks','FETCH_MISS','_getSessionTicket','executeCommand','enableDocumentCollaborationUI','onCommandExecuted','_clearOtherTimers','getActiveRange','isArray','button','/universer-api/license/formula/limit/status','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','sessionTicket','_render','body','symbol','_handoffUnitIds','_document','univer-text-orange-500','_textBubble','textRanges','removeObjects','_docStateChangeManagerService','_pluginService','icon','engine','exhaustSavingTask','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','functionsExecutedState','debug','params','activeSheetId','eventID','collaboration-client-ui.config','_releaseCalculationLimit','focusedId','red.300','RemoveColCommandId','_docTransformIMECacheService','getOwnPropertyDescriptor','getConfig','_sheetSkeletonManagerService','loadUnit','removeObject','PERMISSION_DENIED','selectedIds','delete','timeoutState$','collaboration-client-ui.session.connection-failed','timeoutId','arc','color','#4f46e5','Failed','shift','setUndoRedoMutationParamsCache','getAllUnitsForType','parse','_entityInit$','_cursors','_getLighterColor','addEventListener','registerComponent','USERS_LEAVE','getDocRanges','newValue','angle','makeDirty','colorClass','getValue','_blinkTimer','_handoffPreview','evented','_getSheetObject','_collabCursorState$','getFormulaLimitStatusUrl','fillRule','timedOut','spin','currentSkeleton$','width','toRgbString','_initStatusComponent','max','transformStateCache','_context','yellow.400','_shortcutService','indicator','_id','_highlight','undoState','_initUserListener','lineTo','pulse','_memberID','dirtyRanges','pipe','_backgroundColor','isActive','_draw','_snapshotLoadingService','flatMap','call','column','_collaborationUIEventService','_updateSheetPreview','[CollaborationDataLoaderController]','endColumn','values','toPrimitive','searchParams','_beforeCloseService','bottom','disableLocalCache','data','find','closePath','roomMembers','status','TEXT','assignAColorForMemberID','_online','_timeoutState$','_currentUsage','_getScale','fill','href','toString','setOffsetY','SUBMIT_CHANGESET_TIMEOUT','fillText','collaboration-client-ui.conflict.content','collab-rect-range-','FromArray','replace','_getObjectBounds','length','_refreshCollabCursors','_updateURLWithCurrentState','_startBoardCollabCursor','board-element-selection','saveTaskMap','_hideTimer','collaboration-client-ui.snapshotLoading.loadingSheet','beginPath','_startDocCollabCursor','_updateLocalCursor','_colorAssignService','_shapes','application/json','sessionStatus$','setConfig','fillStyle','_anchor','_docSkeleton','[LogService\x20Error]:\x20','_messageService','_handleLeaveEvent','_anchorDot',':backup:','getObjectIncludeInGroup','getRealBound','_transformService','_roomMembers$','?taskId=','scene','_syncEditingCollabCursorService','1321360BDTZNi','_themeService','highlightSecond','_blinkIntervalTimer','location','_startBlinking','range','forEach','getItem','getCellMatrix','slide-element-selection','asObservable','evenodd','onStarting','setTimeout','_scheduleRender','_initEvent','map','0.2)','imageSourceType','_httpService','_startSlideCollabCursor','_interactionBlocked$','getRangePointData','collaboration-client-ui.collabClient.tooltip.reconnect','_drawTextRange','_doCreateSocket','34077015LlxjYC','unitId','_removeClearOtherTimer','editingUnit','_stopBlinking','_imageIoService','clickable','function','3612312DvieBt','_uiPartsService','bold\x2013px\x20Arial,\x20sans-serif','SOCKET_FAILED','univer-appearance-none','_latestStates','UNIVER_SHEET','activeSlideId$','collaboration-client-ui.collaboration.closeRoom','size','_color','clear','left','_labelHorizontalPosition','_offsetY','_registerDependencies','_hovered','/universer-api/frontend/logs','stageInfo','_setFormulaLimitStatus','m1Prime','parseInt','onMouseMove','bind','InsertRangeMoveRightCommandId','saveOfflineData','unit','_setupSubUnitSync','right','_highlightSecond','totalFormulasToCalculate','error','remove','whenReady','getScrollXYInfoByViewport','rgba(255,\x20255,\x20255,\x200.01)','status$','source','_collaborationController','_previewUnitId','Enter','_maxFormulaLimit','startsWith','_logService','key','_scheduleClearOtherTimer','_isBlinkVisible','top','registerRefRange','getViewport','with','collaboration-client-ui.session.collaboration-timeout','OTHER_CLIENTS_EDITING','moveTo','collabCursorState$','setShapeProps','subunit','object','univer-size-4\x20univer-shrink-0\x20univer-text-amber-500','tooltipKey','setParam','_showText','UNIVER_DOC','collaboration-client-ui.collabStatus.fetchMiss','dispose','workbookShell','#FFF','executionId','_docTransformSelectionsService','value','_initUnhandledRejectionListener',',\x200.2)','dark:focus:!univer-ring-offset-gray-800','_urlService','getCurrentUnitOfType','getMember','subUnitId','getObject','592uFTrTd','true','unsubscribe','alert','_memberService','_hover','getCurrentSkeleton','_collabCursorController','init','JOIN_ROOM_FAILED','getAncestorScale','deepClone','getSkeleton','addObject','_clearTimeoutState','_scheduleSaving','registerRenderModule','content','then','addObject$','_latestCursors','_clearPolling','_session','slice','findNodePositionByCharIndex','univer-text-xl\x20univer-transition-colors\x20univer-duration-200','getCollabCursors$','activeSheet$','ERROR','_lastResponseTimestamp','_docTransformStateCacheService','_commandService','now','polite','push','stack','Unknown\x20user','_initDependencies','_collabSessionService','RECT','totalBlocks','_checkCalculationAvailable','getCurrentSelections','_updateCollabCursors','roomMembers$','refreshLabel','kind','getFocusedUnit','text','Loading','memberID','univer-text-gray-400','createSocket','_monkeyPatchLogService','_taskIds','_localStorageService','disposeWithMe','_localCacheService','jiqing.500','add','CONFLICT','height','subscribe','redoState','font','_saveCache','showText','NOT_COLLAB','_selfUnitIDs','strokeStyle','_docSyncEditingCollabCursorService','strokeWidth','maxFormulaLimit','event$','_handleHeartbeatEvent','previewCellData','setLineDash','UNIVER_BOARD','_ensureSubject','collaboration-client-ui.conflict.title','_renderScheduled','collaboration-client-ui.session.will-retry','code','drawWith','8400hyDAuR','UPDATE_CURSOR','univer-inline-flex\x20univer-items-center\x20univer-justify-center','/run/','_collaborationSessionService','_shortcutBlock','_unitStatus','removeParam','_send','univer-h-8\x20univer-w-8\x20univer-rounded-lg','_toggleOffline','stage','_unitOnClients','_onCursorDelete','collaboration-client-ui.collaboration.single-unit.warning','40134oGAnNG','_refRangeService','subscribeEvent','_handleJoinEvent','_cursorShapes','_messageIds','getMemberID','includes','currentUsage','urlChange$','getId','_handleHover','_transformUndoRedoStack','_showGuardMessage','_initStatusListener','_checkAndWaitForCalculationPermission','decorate','black','replaceDocRanges','ONLINE','next','transformIMECache','collaboration-client-ui.formula.calculation.waiting','lineWidth','getCoordRelativeToViewport','transformMutation','_localeService','_injector'];_0x5258=function(){return _0x13d9fa;};return _0x5258();}mr=Y([J(0x0,_0x5973ac(_0x2ec2f3)),J(0x1,_0x5973ac(_0x31bbfb)),J(0x2,_0x4c560f),J(0x3,_0x3abbf6),J(0x4,_0x1f846c)],mr);let hr=class extends _0x1c2a50{constructor(_0x11217d,_0x4de70e,_0x4c7f68){const _0x822f32=_0x1617f0;super(),this[_0x822f32(0x350)]=_0x11217d,this[_0x822f32(0x258)]=_0x4de70e,this[_0x822f32(0x17f)]=_0x4c7f68;}async['runOnServer'](_0x405f0f,_0x159986,_0x3e57b3,..._0x4b3fce){const _0x1f5175=_0x1617f0;var _0x4204b4,_0x570213,_0x440223,_0x2e6c15;let _0x36afc4=this['_instanceService'][_0x1f5175(0x2e4)]();if(!_0x36afc4)throw Error(_0x1f5175(0x18f));let _0x4d7f71=((_0x4204b4=this[_0x1f5175(0x17f)][_0x1f5175(0x1c4)](_0x301dce))==null?_0x3c72bb:_0x4204b4)+'/'+_0x405f0f+_0x1f5175(0x30c)+_0x159986,_0x53fdee={'scriptId':_0x405f0f,'runId':(_0x570213=new URL(window[_0x1f5175(0x248)][_0x1f5175(0x21b)])[_0x1f5175(0x20b)][_0x1f5175(0x3ca)](_0x1f5175(0x354)))==null?'':_0x570213,'function':_0x159986,'unitId':_0x36afc4['getUnitId'](),'argsOfFunction':JSON[_0x1f5175(0x3bc)](_0x4b3fce),'invokeId':(_0x440223=_0x3e57b3['invokeId'])==null?'':_0x440223,'executionId':(_0x2e6c15=_0x3e57b3[_0x1f5175(0x2aa)])==null?'':_0x2e6c15};try{let _0x520c95=await this[_0x1f5175(0x258)][_0x1f5175(0x164)](_0x4d7f71,{'body':_0x53fdee});return _0x520c95[_0x1f5175(0x1aa)][_0x1f5175(0x286)]&&_0x520c95[_0x1f5175(0x1aa)]['error'][_0x1f5175(0x307)]!==_0x20687a['OK']?'Failed':_0x520c95[_0x1f5175(0x1aa)][_0x1f5175(0x393)];}catch{return _0x1f5175(0x1d1);}}};hr=Y([J(0x0,_0x265e32),J(0x1,_0x5973ac(_0x31bbfb)),J(0x2,_0x4c560f)],hr);const gr=0x7530,_r=_0x1617f0(0x37e);var vr=class extends _0x1c2a50{constructor(){const _0x407cf5=_0x1617f0;super(),q(this,_0x407cf5(0x1f5),_0xb298d()),q(this,_0x407cf5(0x2f9),new Set()),q(this,_0x407cf5(0x315),new Map()),q(this,'_heartbeatTimer',null),q(this,_0x407cf5(0x1a2),new Map()),q(this,_0x407cf5(0x30f),new Map()),this[_0x407cf5(0x363)]();}[_0x1617f0(0x2a7)](){const _0x5eb5f7=_0x1617f0;super[_0x5eb5f7(0x2a7)](),this[_0x5eb5f7(0x1a2)][_0x5eb5f7(0x24b)]((_0x4b4ea4,_0x4de168)=>this[_0x5eb5f7(0x261)](_0x4de168)),this['_heartbeatTimer']&&window[_0x5eb5f7(0x3a0)](this[_0x5eb5f7(0x3a2)]);}[_0x1617f0(0x16e)](_0x3919bd){const _0x822e2=_0x1617f0;return this[_0x822e2(0x303)](_0x3919bd)[_0x822e2(0x1fd)](_0x28be07());}[_0x1617f0(0x262)](_0x154dd6){const _0x443882=_0x1617f0;this[_0x443882(0x2f9)][_0x443882(0x270)]===0x0&&this['_scheduleHeartbeat'](),this['_selfUnitIDs'][_0x443882(0x2f0)](_0x154dd6),this[_0x443882(0x311)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x154dd6],'isForwarded':!0x1});}['disposeUnit'](_0x1a5e0d){const _0x469072=_0x1617f0;this[_0x469072(0x2f9)][_0x469072(0x1ca)](_0x1a5e0d),this[_0x469072(0x2f9)][_0x469072(0x270)]===0x0&&this[_0x469072(0x3a2)]&&window[_0x469072(0x3a0)](this[_0x469072(0x3a2)]);}['_init'](){const _0x3614fd=_0x1617f0;this[_0x3614fd(0x2ed)](_0x19bd84(_0x19faf1(window,_0x3614fd(0x3ba))[_0x3614fd(0x2f3)](_0x4c3cb7=>{const _0xcde640=_0x3614fd;if(_0x4c3cb7['key']!==_r||!_0x4c3cb7[_0xcde640(0x1dd)])return;let _0x1770d4=JSON['parse'](_0x4c3cb7[_0xcde640(0x1dd)]);this[_0xcde640(0x33d)](_0x1770d4);}))),window[_0x3614fd(0x1d9)]('unload',()=>this[_0x3614fd(0x311)]({'type':0x1,'memberID':this[_0x3614fd(0x1f5)],'unitIDs':Array[_0x3614fd(0x360)](this[_0x3614fd(0x2f9)])}));}[_0x1617f0(0x33d)](_0xfc252b){const _0x3811ef=_0x1617f0;switch(_0xfc252b[_0x3811ef(0x3bd)]){case 0x0:this[_0x3811ef(0x31b)](_0xfc252b);break;case 0x1:this[_0x3811ef(0x23a)](_0xfc252b);break;case 0x2:this[_0x3811ef(0x2ff)](_0xfc252b);break;}}[_0x1617f0(0x31b)](_0x5a7445){const _0x3d12d9=_0x1617f0;let {unitIDs:_0x1dc5d4,memberID:_0x100fd8,isForwarded:_0x21e030}=_0x5a7445;_0x1dc5d4[_0x3d12d9(0x24b)](_0x4b92a1=>{const _0x120648=_0x3d12d9;if(!_0x21e030&&this['_unitOnClients']['has'](_0x4b92a1)&&this[_0x120648(0x303)](_0x4b92a1)[_0x120648(0x32c)](_0x4bc73b[_0x120648(0x29b)]),!this[_0x120648(0x315)][_0x120648(0x195)](_0x4b92a1)||!this[_0x120648(0x315)][_0x120648(0x3ca)](_0x4b92a1)[_0x120648(0x195)](_0x100fd8)){let _0x2ef3dc=this[_0x120648(0x315)][_0x120648(0x3ca)](_0x4b92a1)||new Set();_0x2ef3dc[_0x120648(0x2f0)](_0x100fd8),this['_unitOnClients']['set'](_0x4b92a1,_0x2ef3dc),this[_0x120648(0x294)](_0x100fd8);}}),_0x21e030||this[_0x3d12d9(0x311)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x3d12d9(0x2f9)]],'isForwarded':!0x0});}[_0x1617f0(0x294)](_0x2ea3f1){const _0x4c50bd=_0x1617f0;this['_removeClearOtherTimer'](_0x2ea3f1);let _0x3c7a10=window[_0x4c50bd(0x252)](()=>{const _0x253d14=_0x4c50bd;this[_0x253d14(0x315)][_0x253d14(0x24b)](_0x14a7c1=>{_0x14a7c1['delete'](_0x2ea3f1);});},gr*0x2);this[_0x4c50bd(0x1a2)][_0x4c50bd(0x361)](_0x2ea3f1,_0x3c7a10);}[_0x1617f0(0x261)](_0x4b8c0c){const _0x194706=_0x1617f0;if(this[_0x194706(0x1a2)]['has'](_0x4b8c0c)){let _0x47036d=this[_0x194706(0x1a2)][_0x194706(0x3ca)](_0x4b8c0c);_0x47036d&&window['clearTimeout'](_0x47036d),this[_0x194706(0x1a2)][_0x194706(0x361)](_0x4b8c0c,null);}}[_0x1617f0(0x23a)](_0x262891){const _0xf815bb=_0x1617f0;let {memberID:_0x4535e0,unitIDs:_0x617000}=_0x262891;_0x617000[_0xf815bb(0x24b)](_0x28e972=>{const _0x1b8bf4=_0xf815bb;var _0x1ab182;let _0x5af955=this['_unitOnClients'][_0x1b8bf4(0x3ca)](_0x28e972);_0x5af955&&(_0x5af955[_0x1b8bf4(0x1ca)](_0x4535e0),(_0x1ab182=this[_0x1b8bf4(0x303)](_0x28e972))==null||_0x1ab182[_0x1b8bf4(0x32c)](_0x5af955[_0x1b8bf4(0x270)]===0x0?_0x4bc73b['NO_OTHER_CLIENTS_EDITING']:_0x4bc73b[_0x1b8bf4(0x29b)]));}),this[_0xf815bb(0x261)](_0x4535e0);}['_handleHeartbeatEvent'](_0x5434f3){const _0x54a2dc=_0x1617f0;this[_0x54a2dc(0x294)](_0x5434f3['memberID']);}[_0x1617f0(0x311)](_0x223528){const _0x395a46=_0x1617f0;localStorage[_0x395a46(0x35c)](_r,JSON[_0x395a46(0x3bc)](_0x223528));}[_0x1617f0(0x3c3)](){const _0x1a9d99=_0x1617f0;this[_0x1a9d99(0x3a2)]=window[_0x1a9d99(0x359)](()=>{const _0x147850=_0x1a9d99;this[_0x147850(0x311)]({'type':0x2,'memberID':this[_0x147850(0x1f5)]});},gr);}[_0x1617f0(0x303)](_0x522ebc){const _0x107261=_0x1617f0;return this[_0x107261(0x30f)][_0x107261(0x195)](_0x522ebc)||this['_unitStatus']['set'](_0x522ebc,new _0x2944e0(_0x4bc73b['NO_OTHER_CLIENTS_EDITING'])),this['_unitStatus'][_0x107261(0x3ca)](_0x522ebc);}};export{mr as BrowserCollaborationSocketService,X as DesktopCollaborationStatusDisplayController,Qn as IURLService,hr as RemoteUniscriptService,qn as SheetCollabCursorShape,$ as UniverCollaborationClientUIPlugin,vr as WebBrowserSingleActiveUnitService};
|