@univerjs-pro/collaboration-client-ui 0.25.0 → 0.25.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/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/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 +17 -17
package/lib/cjs/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0xaef34a=_0xbed9;function _0x2526(){const _0x5c77d3=['exports','86102PkbmAR','您的本機文件與伺服器文件存在衝突。請將您的本機編輯儲存至其他地方,因為重新整理頁面後將會遺失。','由於協作房間已關閉,編輯權限已被收回。','2936fTucMA','您的操作與伺服器權限存在衝突。請將您的本機編輯儲存至其他地方,重新整理頁面後將會被捨棄。','編輯衝突','948996LLGSNE','同步中...','20euYXyS','協作房間已滿,您的編輯將暫存於本機。','5952528RzanGH','1408164PgJtbI','正在擷取伺服器資料...','3928529QOqnZT','已離線,編輯將儲存在本機','34KwMGny','9846HuySvN','9377550ozrbtI','7nwtBbR','連線失敗,請檢查您的網路。','公式計算佇列已滿,正在等待可用資源...','公式計算已開始。','協作衝突','連線失敗,將在稍後重試連線。','您的登入已過期,點擊「確定」重新登入,點擊「取消」儲存您的本機編輯。','目前無法執行公式計算,請稍後重試。'];_0x2526=function(){return _0x5c77d3;};return _0x2526();}function _0xbed9(_0x9ca5a1,_0x467f15){_0x9ca5a1=_0x9ca5a1-0x108;const _0x2526a2=_0x2526();let _0xbed904=_0x2526a2[_0x9ca5a1];return _0xbed904;}(function(_0x3513b1,_0xf8506a){const _0x121e60=_0xbed9,_0x25513d=_0x3513b1();while(!![]){try{const _0x1c12c1=-parseInt(_0x121e60(0x10c))/0x1*(-parseInt(_0x121e60(0x118))/0x2)+parseInt(_0x121e60(0x108))/0x3+-parseInt(_0x121e60(0x11e))/0x4*(-parseInt(_0x121e60(0x120))/0x5)+parseInt(_0x121e60(0x122))/0x6*(-parseInt(_0x121e60(0x10f))/0x7)+-parseInt(_0x121e60(0x11b))/0x8*(-parseInt(_0x121e60(0x10d))/0x9)+-parseInt(_0x121e60(0x10e))/0xa+-parseInt(_0x121e60(0x10a))/0xb;if(_0x1c12c1===_0xf8506a)break;else _0x25513d['push'](_0x25513d['shift']());}catch(_0x46f71d){_0x25513d['push'](_0x25513d['shift']());}}}(_0x2526,0xf351a));const e={'collaboration-client-ui':{'collabClient':{'tooltip':{'reconnect':'點擊重新連線'}},'collabStatus':{'fetchMiss':_0xaef34a(0x109),'conflict':_0xaef34a(0x11d),'notCollab':'本機檔案','synced':'已同步','syncing':_0xaef34a(0x11f),'offline':_0xaef34a(0x10b)},'session':{'connection-failed':_0xaef34a(0x110),'will-retry':_0xaef34a(0x114),'room-full':_0xaef34a(0x121),'collaboration-timeout':'伺服器未回應協作請求,您的編輯將儲存在本機。'},'conflict':{'title':_0xaef34a(0x113),'content':_0xaef34a(0x119)},'permission':{'title':'認證錯誤','content':_0xaef34a(0x11c)},'collaboration':{'offline-data-not-saved':'您有未儲存至伺服器的離線編輯,請檢查網路後重試。','single-unit':{'warning':'您在另一個分頁開啟了同一個檔案。為避免資料遺失,此分頁將無法進行編輯。'},'closeRoom':_0xaef34a(0x11a)},'auth':{'needGotoLoginAlert':_0xaef34a(0x115)},'formula':{'calculation':{'started':_0xaef34a(0x112),'waiting':_0xaef34a(0x111),'unable':_0xaef34a(0x116)}}}};module[_0xaef34a(0x117)]=e;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function _0x1b0a(){var _0x21fbe8=['138kpkKcJ','11ZCFDXj','35080lbHyez','1TKgSKb','2010303CvyKlH','_injector','get','366891rYpUAK','1418472PIMUqN','24ottZIi','529042zDHHkw','8494190jlVzZX','52196iMVCbO','runOnServer'];_0x1b0a=function(){return _0x21fbe8;};return _0x1b0a();}(function(_0xad2dad,_0x10254d){var _0x229f1f=_0x1f50,_0x2415ad=_0xad2dad();while(!![]){try{var _0x316c37=-parseInt(_0x229f1f(0x111))/0x1*(parseInt(_0x229f1f(0x118))/0x2)+-parseInt(_0x229f1f(0x117))/0x3*(-parseInt(_0x229f1f(0x10c))/0x4)+parseInt(_0x229f1f(0x110))/0x5*(-parseInt(_0x229f1f(0x10e))/0x6)+parseInt(_0x229f1f(0x115))/0x7+-parseInt(_0x229f1f(0x116))/0x8+-parseInt(_0x229f1f(0x112))/0x9+-parseInt(_0x229f1f(0x119))/0xa*(-parseInt(_0x229f1f(0x10f))/0xb);if(_0x316c37===_0x10254d)break;else _0x2415ad['push'](_0x2415ad['shift']());}catch(_0x519c05){_0x2415ad['push'](_0x2415ad['shift']());}}}(_0x1b0a,0x2bdcb));import{RemoteUniscriptService as _0x24bf17}from'@univerjs-pro/collaboration-client-ui';import{FUniver as _0x59fbb7}from'@univerjs/core/facade';var n=class extends _0x59fbb7{['runOnServer'](_0x3d659c,_0x4ad734,..._0x1d8b51){var _0x4d6475=_0x1f50;return this[_0x4d6475(0x113)][_0x4d6475(0x114)](_0x24bf17)[_0x4d6475(0x10d)](_0x3d659c,_0x4ad734,{},..._0x1d8b51);}};_0x59fbb7['extend'](n);function _0x1f50(_0x26a256,_0xd192b0){_0x26a256=_0x26a256-0x10c;var _0x1b0a8c=_0x1b0a();var _0x1f5060=_0x1b0a8c[_0x26a256];return _0x1f5060;}export{};
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x34ca81=_0x1a2a;(function(_0x333114,_0x3827be){const _0x1b61a4=_0x1a2a,_0xbe1fac=_0x333114();while(!![]){try{const _0x2d9732=-parseInt(_0x1b61a4(0x347))/0x1+-parseInt(_0x1b61a4(0x32c))/0x2+-parseInt(_0x1b61a4(0x3a2))/0x3+parseInt(_0x1b61a4(0x244))/0x4+parseInt(_0x1b61a4(0x208))/0x5*(-parseInt(_0x1b61a4(0x213))/0x6)+-parseInt(_0x1b61a4(0x255))/0x7*(parseInt(_0x1b61a4(0x240))/0x8)+-parseInt(_0x1b61a4(0x386))/0x9*(-parseInt(_0x1b61a4(0x2d2))/0xa);if(_0x2d9732===_0x3827be)break;else _0xbe1fac['push'](_0xbe1fac['shift']());}catch(_0x108f4b){_0xbe1fac['push'](_0xbe1fac['shift']());}}}(_0x38f5,0x5e01a));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x2c9535,CollaborationController as _0xd54710,CollaborationSessionService as _0x1c8681,CollaborationSocketService as _0x56c451,CollaborationStatus as _0x14f6db,CollaborationUIEventId as _0x4de33a,CollaborationUIEventService as _0x3a8b82,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x5afd6a,DEFAULT_WS_SESSION_TICKET_URL as _0x3ad8b9,DataLoaderService as _0x180e30,DocCollaborationEntity as _0x3e20f8,ILocalCacheService as _0x47d162,LOCAL_CACHE_INTERVAL as _0x2ac071,LOCAL_CACHE_INTERVAL_KEY as _0x4d7b45,MemberService as _0x5cacf0,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x5c59d4,SessionStatus as _0xcd3db3,UnitStatus as _0xfba7de,UniverCollaborationClientPlugin as _0x125474,getLocalCacheKey as _0x5c58b7}from'@univerjs-pro/collaboration-client';import{COLORS as _0x53eda6,CanceledError as _0x2c9776,ColorKit as _0x196511,CommandType as _0x39378d,DOC_RANGE_TYPE as _0x5636da,DependentOn as _0x1ab26a,Disposable as _0x211e13,DisposableCollection as _0x53dc39,ICommandService as _0x51f795,IConfigService as _0x3846d3,ILocalStorageService as _0x4f4386,ILogService as _0x3240ed,IUniverInstanceService as _0x185350,Inject as _0x60904d,Injector as _0x4227ab,LocaleService as _0x182dcb,Optional as _0x1936c3,Plugin as _0x34e422,Rectangle as _0x19c0bf,RxDisposable as _0x2b7d41,ThemeService as _0x1c5bc3,Tools as _0x41a684,UniverInstanceType as _0x3e3c71,Workbook as _0x30b55b,createIdentifier as _0x3c444b,debounce as _0x239f1b,fromEventSubject as _0x225037,generateRandomId as _0x19d355,isFormulaId as _0x59ca12,isFormulaString as _0x460309,isInternalEditorID as _0x14eab3,merge as _0xf291a1,mergeOverrideWithDependencies as _0x5cf1e1,registerDependencies as _0x25d053,toDisposable as _0x5bed57,touchDependencies as _0x784555}from'@univerjs/core';import{BuiltInUIPart as _0x4f1a98,IBeforeCloseService as _0x51ae89,IMessageService as _0xf88f0d,INotificationService as _0x36464b,IUIPartsService as _0x36e9da,connectInjector as _0x10143e,useDependency as _0x522cea,useObservable as _0x2fcf9b}from'@univerjs/ui';import{BehaviorSubject as _0x318671,Subject as _0x4bde4d,combineLatest as _0x60b8ce,debounceTime as _0x12ed8f,distinctUntilChanged as _0x3ff61f,filter as _0x58d3a9,fromEvent as _0x534c91,mapTo as _0x1ce782,merge as _0x179079,of as _0x3f864b,shareReplay as _0x3c5cf5,switchMap as _0x190196,takeUntil as _0x4ff7f8}from'rxjs';import{distinctUntilChanged as _0x228eb2,filter as _0xd6b360,map as _0x300ed6,switchMap as _0xfce12c,takeUntil as _0x222e7e,throttleTime as _0x3d9eb2}from'rxjs/operators';import{MessageType as _0x431ac8,Tooltip as _0x2ef8bf,clsx as _0x448fce}from'@univerjs/design';import{LoadingMultiIcon as _0x7abc71,OffLineIcon as _0x100bee,OnLineIcon as _0x493b07}from'@univerjs/icons';import{useCallback as _0x2a5965,useMemo as _0x1c2c7b}from'react';import{jsx as _0x4c1f2d}from'react/jsx-runtime';import{IRemoteInstanceService as _0x21d5f4}from'@univerjs/rpc';import{EffectRefRangId as _0x17dd29,RefRangeService as _0x560188,SetSelectionsOperation as _0x48a71f,SetWorksheetActivateCommand as _0x2709c8,SheetsSelectionsService as _0x5b81a2,handleDeleteRangeMoveLeft as _0x22f123,handleDeleteRangeMoveUp as _0x60ee38,handleIRemoveCol as _0x216db9,handleIRemoveRow as _0x486536,handleInsertCol as _0x1ee638,handleInsertRangeMoveDown as _0x1d9772,handleInsertRangeMoveRight as _0x2fcb2b,handleInsertRow as _0x23f8a5,handleMoveRange as _0x15e840,runRefRangeMutations as _0x2f0174}from'@univerjs/sheets';import{IRenderManagerService as _0x55d330,Rect as _0x8e87f9,RegularPolygon as _0x7ecd4,SHEET_VIEWPORT_KEY as _0x281344,Shape as _0x347acb,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x2e12fb,Vector2 as _0x38dae9,getColor as _0x9ec321}from'@univerjs/engine-render';import{HTTPService as _0x286902,ISocketService as _0x19dd0c,WebSocketService as _0x1215ad}from'@univerjs/network';import{DocIMEInputManagerService as _0x1b326c,DocStateChangeManagerService as _0x121e78,IDocClipboardService as _0x20b1c1,NodePositionConvertToCursor as _0x393640,NodePositionConvertToRectRange as _0x5e7e2f,SetDocZoomRatioOperation as _0x5def1c,TEXT_RANGE_LAYER_INDEX as _0x13a18e}from'@univerjs/docs-ui';import{IImageIoService as _0x3b2ca7}from'@univerjs/drawing';import{CollaborationEvent as _0x5b8d34,ISnapshotServerService as _0x2adb11,ITransformService as _0x488ec3,RevisionService as _0x471130,isTransformMutationFailure as _0x305af2,isTransformMutationsWithChangesetSuccess as _0x456dac}from'@univerjs-pro/collaboration';import{DocSelectionManagerService as _0x361ca2,DocSkeletonManagerService as _0x413f6a,RichTextEditingMutation as _0xd566bc,SetTextSelectionsOperation as _0x145cd9}from'@univerjs/docs';import{FormulaExecuteStageType as _0x3d1439,FormulaExecutedStateType as _0x5c7553,SetFormulaCalculationNotificationMutation as _0x3d0d35,SetFormulaCalculationStartMutation as _0x3d1b06,deserializeRangeWithSheet as _0xdd86c4,serializeRangeWithSheet as _0x56dbab}from'@univerjs/engine-formula';import{SheetSkeletonManagerService as _0x25556e,getCoordByCell as _0x235d37,getSheetObject as _0x384d79}from'@univerjs/sheets-ui';import{ErrorCode as _0x53783d}from'@univerjs/protocol';function Yt(_0x1941ad){const _0x510ba6=_0x1a2a;switch(_0x1941ad){case _0x14f6db['OFFLINE']:return{'icon':_0x4c1f2d(_0x100bee,{}),'colorClass':_0x510ba6(0x23e),'i18nKey':_0x510ba6(0x3cc),'tooltipKey':'collaboration-client-ui.collabClient.tooltip.reconnect','clickable':!0x0,'indicator':'static'};case _0x14f6db[_0x510ba6(0x30d)]:return{'icon':_0x4c1f2d(_0x100bee,{}),'colorClass':_0x510ba6(0x265),'i18nKey':'collaboration-client-ui.collabStatus.conflict','clickable':!0x1,'indicator':_0x510ba6(0x2e0)};case _0x14f6db[_0x510ba6(0x1dc)]:return{'icon':_0x4c1f2d(_0x7abc71,{}),'colorClass':_0x510ba6(0x3c4),'i18nKey':'collaboration-client-ui.collabStatus.fetchMiss','clickable':!0x1,'indicator':_0x510ba6(0x1e1)};case _0x14f6db[_0x510ba6(0x245)]:return{'icon':_0x4c1f2d(_0x493b07,{}),'colorClass':'univer-text-gray-400','i18nKey':'collaboration-client-ui.collabStatus.notCollab','clickable':!0x1,'indicator':_0x510ba6(0x2e0)};case _0x14f6db[_0x510ba6(0x3bb)]:case _0x14f6db[_0x510ba6(0x258)]:return{'icon':_0x4c1f2d(_0x7abc71,{}),'colorClass':_0x510ba6(0x3c4),'i18nKey':_0x510ba6(0x1ce),'clickable':!0x1,'indicator':_0x510ba6(0x1e1)};case _0x14f6db[_0x510ba6(0x3a7)]:return{'icon':_0x4c1f2d(_0x7abc71,{}),'colorClass':_0x510ba6(0x3c4),'i18nKey':_0x510ba6(0x1ce),'clickable':!0x1,'indicator':_0x510ba6(0x1e1)};case _0x14f6db[_0x510ba6(0x261)]:return{'icon':_0x4c1f2d(_0x493b07,{}),'colorClass':_0x510ba6(0x205),'i18nKey':'collaboration-client-ui.collabStatus.synced','clickable':!0x1,'indicator':_0x510ba6(0x2e0)};}}function Xt(_0x41928a){const _0x6ec679=_0x1a2a;let {status$:_0x1d6aa9}=_0x41928a,_0x3344b7=_0x2fcf9b(_0x1d6aa9,_0x14f6db[_0x6ec679(0x245)]),_0xd2e7fc=_0x522cea(_0x182dcb),_0x399f20=_0x522cea(_0x1c8681),_0x34e806=_0x1c2c7b(()=>Yt(_0x3344b7),[_0x3344b7]),_0x40a10a=_0x3344b7!==_0x14f6db[_0x6ec679(0x2ae)],_0x39cd08=_0xd2e7fc['t'](_0x34e806['i18nKey']),_0xb6c0f1=_0x34e806[_0x6ec679(0x3be)]?_0xd2e7fc['t'](_0x34e806[_0x6ec679(0x3be)]):_0x39cd08,_0x374042=_0x2a5965(()=>{const _0x145ff7=_0x6ec679;_0x40a10a||_0x399f20[_0x145ff7(0x299)]();},[_0x40a10a,_0x399f20]),_0x10061d=_0x2a5965(_0x6b57e7=>{const _0xf05cc5=_0x6ec679;!_0x40a10a&&(_0x6b57e7[_0xf05cc5(0x267)]===_0xf05cc5(0x316)||_0x6b57e7['key']==='\x20')&&(_0x6b57e7[_0xf05cc5(0x243)](),_0x399f20[_0xf05cc5(0x299)]());},[_0x40a10a,_0x399f20]),_0x179bf6=_0x4c1f2d(_0x6ec679(0x1ea),{'className':_0x448fce(_0x6ec679(0x311),_0x6ec679(0x35a),_0x34e806['colorClass'],{'univer-animate-spin':_0x34e806[_0x6ec679(0x3a3)]===_0x6ec679(0x1e1),'univer-animate-pulse':_0x34e806[_0x6ec679(0x3a3)]===_0x6ec679(0x216)}),'aria-hidden':_0x6ec679(0x25f),'children':_0x34e806[_0x6ec679(0x308)]}),_0x4522c3=_0x4c1f2d(_0x6ec679(0x1ea),{'className':_0x448fce(_0x6ec679(0x311),_0x6ec679(0x39a),_0x6ec679(0x3bc),_0x6ec679(0x351),'dark:focus:univer-ring-offset-gray-800',{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:univer-bg-gray-700':_0x34e806['clickable'],'univer-cursor-default':!_0x34e806[_0x6ec679(0x2ad)]}),'children':_0x179bf6});return _0x34e806['clickable']?_0x4c1f2d(_0x2ef8bf,{'title':_0xb6c0f1,'placement':'bottom','children':_0x4c1f2d(_0x6ec679(0x2c5),{'type':'button','onClick':_0x374042,'onKeyDown':_0x10061d,'className':_0x448fce(_0x6ec679(0x2cb),'univer-border-none\x20univer-bg-transparent',_0x6ec679(0x293),'univer-appearance-none'),'aria-label':_0x39cd08+_0x6ec679(0x39d)+_0xb6c0f1,'role':_0x6ec679(0x3cf),'aria-live':_0x6ec679(0x3c0),'aria-atomic':'true','children':_0x4522c3})}):_0x4c1f2d(_0x2ef8bf,{'title':_0xb6c0f1,'placement':_0x6ec679(0x1d6),'children':_0x4c1f2d('div',{'className':_0x448fce('univer-inline-flex\x20univer-items-center\x20univer-justify-center',_0x6ec679(0x353),_0x6ec679(0x293)),'aria-label':_0x39cd08,'role':'status','aria-live':_0x6ec679(0x3c0),'aria-atomic':'true','children':_0x4522c3})});}function W(_0x4c64ac){'@babel/helpers - typeof';const _0x242759=_0x1a2a;return W=typeof Symbol==_0x242759(0x30e)&&typeof Symbol[_0x242759(0x1c9)]==_0x242759(0x2d8)?function(_0x52216a){return typeof _0x52216a;}:function(_0x568364){const _0x20b317=_0x242759;return _0x568364&&typeof Symbol=='function'&&_0x568364[_0x20b317(0x288)]===Symbol&&_0x568364!==Symbol[_0x20b317(0x362)]?_0x20b317(0x2d8):typeof _0x568364;},W(_0x4c64ac);}function Zt(_0x50bb6a,_0x1fbb32){const _0x3c10c4=_0x1a2a;if(W(_0x50bb6a)!=_0x3c10c4(0x3a4)||!_0x50bb6a)return _0x50bb6a;var _0x5eb8fa=_0x50bb6a[Symbol[_0x3c10c4(0x2d0)]];if(_0x5eb8fa!==void 0x0){var _0x1b4d45=_0x5eb8fa[_0x3c10c4(0x323)](_0x50bb6a,_0x1fbb32||'default');if(W(_0x1b4d45)!=_0x3c10c4(0x3a4))return _0x1b4d45;throw TypeError(_0x3c10c4(0x1f0));}return(_0x1fbb32===_0x3c10c4(0x215)?String:Number)(_0x50bb6a);}function Qt(_0x2a89b3){const _0x4e0b4b=_0x1a2a;var _0x5c8d11=Zt(_0x2a89b3,'string');return W(_0x5c8d11)==_0x4e0b4b(0x2d8)?_0x5c8d11:_0x5c8d11+'';}function G(_0x455a15,_0x53472d,_0x30cbc6){const _0x582ce7=_0x1a2a;return(_0x53472d=Qt(_0x53472d))in _0x455a15?Object[_0x582ce7(0x307)](_0x455a15,_0x53472d,{'value':_0x30cbc6,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x455a15[_0x53472d]=_0x30cbc6,_0x455a15;}function K(_0x5ca070,_0x1c8ee6){return function(_0xef6d4d,_0x5768fe){_0x1c8ee6(_0xef6d4d,_0x5768fe,_0x5ca070);};}function q(_0x3cdada,_0x3abcf8,_0x41f039,_0xbbc138){const _0xde76dd=_0x1a2a;var _0x3cb8cb=arguments[_0xde76dd(0x315)],_0x32bfe8=_0x3cb8cb<0x3?_0x3abcf8:_0xbbc138===null?_0xbbc138=Object[_0xde76dd(0x304)](_0x3abcf8,_0x41f039):_0xbbc138,_0x4df19f;if(typeof Reflect==_0xde76dd(0x3a4)&&typeof Reflect[_0xde76dd(0x382)]==_0xde76dd(0x30e))_0x32bfe8=Reflect[_0xde76dd(0x382)](_0x3cdada,_0x3abcf8,_0x41f039,_0xbbc138);else{for(var _0x59c35b=_0x3cdada['length']-0x1;_0x59c35b>=0x0;_0x59c35b--)(_0x4df19f=_0x3cdada[_0x59c35b])&&(_0x32bfe8=(_0x3cb8cb<0x3?_0x4df19f(_0x32bfe8):_0x3cb8cb>0x3?_0x4df19f(_0x3abcf8,_0x41f039,_0x32bfe8):_0x4df19f(_0x3abcf8,_0x41f039))||_0x32bfe8);}return _0x3cb8cb>0x3&&_0x32bfe8&&Object[_0xde76dd(0x307)](_0x3abcf8,_0x41f039,_0x32bfe8),_0x32bfe8;}function _0x1a2a(_0x12c724,_0x365706){_0x12c724=_0x12c724-0x1c1;const _0x38f55b=_0x38f5();let _0x1a2ad5=_0x38f55b[_0x12c724];return _0x1a2ad5;}let J=class extends _0x211e13{constructor(_0x9a8707,_0x58c44e,_0x298034,_0x18f5c1){const _0x330c9f=_0x1a2a;super(),this[_0x330c9f(0x32e)]=_0x9a8707,this[_0x330c9f(0x34e)]=_0x58c44e,this[_0x330c9f(0x28f)]=_0x298034,this[_0x330c9f(0x21c)]=_0x18f5c1,G(this,_0x330c9f(0x1db),new _0x318671(_0x14f6db[_0x330c9f(0x245)])),this[_0x330c9f(0x33b)](),this['_initStatusListener']();}[_0x34ca81(0x336)](){const _0x2b0dd2=_0x34ca81;this['disposeWithMe'](_0x179079(this[_0x2b0dd2(0x32e)]['focused$'],this[_0x2b0dd2(0x32e)][_0x2b0dd2(0x20f)](_0x3e3c71[_0x2b0dd2(0x2b8)]),this[_0x2b0dd2(0x32e)]['getCurrentTypeOfUnit$'](_0x3e3c71[_0x2b0dd2(0x2fd)]))[_0x2b0dd2(0x25a)](_0x300ed6(()=>$t(this[_0x2b0dd2(0x32e)])),_0x228eb2(),_0x190196(_0x2da0d2=>_0x2da0d2?this['_collaborationController']['getCollabEntity$'](_0x2da0d2):_0x3f864b(null)),_0x190196(_0x3c48c2=>_0x3c48c2?_0x3c48c2[_0x2b0dd2(0x2c4)]:_0x3f864b(_0x14f6db['NOT_COLLAB'])))[_0x2b0dd2(0x3d0)](_0x3c1c71=>{this['_status$']['next'](_0x3c1c71);}));}[_0x34ca81(0x33b)](){const _0x3cfc1a=_0x34ca81;this[_0x3cfc1a(0x352)](this[_0x3cfc1a(0x21c)][_0x3cfc1a(0x1e0)](_0x4f1a98[_0x3cfc1a(0x33d)],()=>_0x10143e(en({'status$':this[_0x3cfc1a(0x1db)][_0x3cfc1a(0x210)]()}),this['_injector'])));}};J=q([K(0x0,_0x185350),K(0x1,_0x60904d(_0x4227ab)),K(0x2,_0x60904d(_0xd54710)),K(0x3,_0x36e9da)],J);function $t(_0x4e70cd){const _0x4b1981=_0x34ca81;let _0x2973d9=_0x4e70cd[_0x4b1981(0x390)](),_0x14c14c=_0x2973d9==null?void 0x0:_0x2973d9[_0x4b1981(0x2fb)]();if(_0x14c14c&&!_0x14eab3(_0x14c14c))return _0x14c14c;let _0x10cc04=_0x4e70cd[_0x4b1981(0x364)](_0x3e3c71[_0x4b1981(0x2b8)]),_0x13974f=_0x10cc04==null?void 0x0:_0x10cc04[_0x4b1981(0x2fb)]();if(_0x13974f&&!_0x14eab3(_0x13974f))return _0x13974f;let _0x4fe80b=_0x4e70cd['getCurrentUnitOfType'](_0x3e3c71[_0x4b1981(0x2fd)]);if(_0x4fe80b)return _0x4fe80b[_0x4b1981(0x2fb)]();let _0x50d13e=_0x4e70cd[_0x4b1981(0x274)](_0x3e3c71[_0x4b1981(0x2b8)])[_0x4b1981(0x367)](_0x3a0d11=>!_0x14eab3(_0x3a0d11[_0x4b1981(0x2fb)]()));return _0x50d13e?_0x50d13e['getUnitId']():null;}function en(_0x2d7efa){let {status$:_0x58f06c}=_0x2d7efa;return function(){return _0x4c1f2d(Xt,{'status$':_0x58f06c});};}const tn=_0x3c444b(_0x34ca81(0x388));let Y=class extends _0x2b7d41{constructor(_0x4e55dc,_0x59c8e5,_0x35745f,_0x3a2c53,_0x267dd3){const _0x38e347=_0x34ca81;super(),this[_0x38e347(0x3ba)]=_0x4e55dc,this[_0x38e347(0x379)]=_0x59c8e5,this[_0x38e347(0x27f)]=_0x35745f,this[_0x38e347(0x276)]=_0x3a2c53,_0x267dd3?_0x267dd3==null||_0x267dd3[_0x38e347(0x3dd)]()['then'](()=>this[_0x38e347(0x1f9)]()):(this['_logService'][_0x38e347(0x37f)](_0x38e347(0x374),_0x38e347(0x298)),this[_0x38e347(0x1f9)]());}async[_0x34ca81(0x1f9)](){const _0x178eae=_0x34ca81;let _0x5bedad=this['_urlService'][_0x178eae(0x2b0)](_0x178eae(0x393)),_0x3cd6a5=this[_0x178eae(0x3ba)]['getParam'](_0x178eae(0x2c3)),_0xf958e6=this['_urlService'][_0x178eae(0x2b0)](_0x178eae(0x27a));if(!_0x5bedad||!_0x3cd6a5){this['_logService'][_0x178eae(0x37f)](_0x178eae(0x374),_0x178eae(0x312));return;}let _0x5b6cd4=await this[_0x178eae(0x276)]['loadUnit'](_0x5bedad,Number(_0x3cd6a5),_0xf958e6);_0x5b6cd4&&_0x5b6cd4 instanceof _0x30b55b&&this[_0x178eae(0x290)](_0x5b6cd4);}async[_0x34ca81(0x290)](_0x2cd8d4){const _0x52a9ae=_0x34ca81;await this['_updateSubUnitFromURLParams'](_0x2cd8d4),_0x2cd8d4['activeSheet$'][_0x52a9ae(0x25a)](_0x4ff7f8(this[_0x52a9ae(0x37d)]))['subscribe'](_0x1dbe95=>{const _0x1d63a5=_0x52a9ae;_0x1dbe95&&this[_0x1d63a5(0x2d5)](_0x1dbe95);}),this[_0x52a9ae(0x3ba)]['urlChange$']['pipe'](_0x4ff7f8(this[_0x52a9ae(0x37d)]))[_0x52a9ae(0x3d0)](()=>this[_0x52a9ae(0x34f)](_0x2cd8d4));}[_0x34ca81(0x2d5)](_0x350fe1,_0x2feef7=!0x1){const _0x4cb9d0=_0x34ca81;let _0x14ade8=this['_urlService'][_0x4cb9d0(0x2b0)](_0x4cb9d0(0x27a));_0x350fe1[_0x4cb9d0(0x251)]()!==_0x14ade8&&this[_0x4cb9d0(0x3ba)][_0x4cb9d0(0x3cb)](_0x4cb9d0(0x27a),_0x350fe1[_0x4cb9d0(0x251)](),_0x2feef7);}async[_0x34ca81(0x34f)](_0x5de031){const _0x3c7944=_0x34ca81;var _0x1ad1a0;let _0x146930=this['_urlService']['getParam'](_0x3c7944(0x27a));if(!_0x146930||!_0x5de031[_0x3c7944(0x3a1)](_0x146930)){let _0x448112=_0x5de031[_0x3c7944(0x280)]()[0x0],_0x164d05=_0x5de031[_0x3c7944(0x3a1)](_0x448112);if(!_0x164d05)return;this[_0x3c7944(0x2d5)](_0x164d05,!0x0),await this[_0x3c7944(0x27f)]['executeCommand'](_0x2709c8['id'],{'unitId':_0x5de031[_0x3c7944(0x2fb)](),'subUnitId':_0x448112});return;}((_0x1ad1a0=_0x5de031[_0x3c7944(0x228)]())==null?void 0x0:_0x1ad1a0['getSheetId']())!==_0x146930&&await this[_0x3c7944(0x27f)][_0x3c7944(0x34d)](_0x2709c8['id'],{'unitId':_0x5de031['getUnitId'](),'subUnitId':_0x146930});}};Y=q([K(0x0,tn),K(0x1,_0x3240ed),K(0x2,_0x51f795),K(0x3,_0x60904d(_0x180e30)),K(0x4,_0x1936c3(_0x21d5f4))],Y);var nn='@univerjs-pro/collaboration-client-ui',rn=_0x34ca81(0x380);let an=class extends _0x2b7d41{constructor(_0x4105ef,_0x50e182){const _0x94b9e9=_0x34ca81;super(),this[_0x94b9e9(0x3cd)]=_0x4105ef,this['_imageIoService']=_0x50e182,this[_0x94b9e9(0x1f9)]();}[_0x34ca81(0x1f9)](){const _0xe1737e=_0x34ca81;let _0x102749=this;this['disposeWithMe'](this['_docClipboardService'][_0xe1737e(0x295)]({'onBeforePasteImage':async _0x2d859d=>{const _0x38f9ec=_0xe1737e;let _0x12a3b1=await _0x102749['_imageIoService']['saveImage'](_0x2d859d);return _0x12a3b1?{'source':_0x12a3b1[_0x38f9ec(0x2e9)],'imageSourceType':_0x12a3b1['imageSourceType']}:null;}}));}};an=q([K(0x0,_0x20b1c1),K(0x1,_0x3b2ca7)],an);const on=[_0x34ca81(0x3ce),'jiqing.500',_0x34ca81(0x395),'red.300',_0x34ca81(0x26a),'yellow.400'];var sn=class extends _0x211e13{constructor(..._0x2fff11){const _0x3e2144=_0x34ca81;super(..._0x2fff11),G(this,'_assignedColors',new Map()),G(this,_0x3e2144(0x385),0x0);}['assignAColorForMemberID'](_0x2d6c95){const _0x5cc9e9=_0x34ca81;if(this[_0x5cc9e9(0x3d9)]['has'](_0x2d6c95))return this[_0x5cc9e9(0x3d9)][_0x5cc9e9(0x21a)](_0x2d6c95);let _0x15db83=on[this['_colorIndex']];return this['_colorIndex']=(this['_colorIndex']+0x1)%on[_0x5cc9e9(0x315)],this[_0x5cc9e9(0x3d9)]['set'](_0x2d6c95,_0x15db83),_0x15db83;}};function cn(_0x2ef17d){const _0xb9df4c=_0x34ca81;let _0x110087='';for(let _0x5bb2dd of _0x2ef17d){let {startOffset:_0x493f74,endOffset:_0x64e899,isActive:_0x1fdbaf,rangeType:_0x5d150e,segmentId:_0x32ce7b,segmentPage:_0x29c826}=_0x5bb2dd;_0x110087[_0xb9df4c(0x315)]&&(_0x110087+=','),_0x110087+=_0x493f74+':'+_0x64e899+':'+(_0x1fdbaf?'1':'0')+':'+_0x5d150e+':'+_0x32ce7b+':'+_0x29c826;}return _0x110087;}function ln(_0x174a21){const _0x5a3588=_0x34ca81;let _0x37dd1c=_0x174a21['split'](','),_0x4b4d92=[];for(let _0x227197 of _0x37dd1c){let [_0x627a50,_0x5157cc,_0x104cbe,_0x3bcdba,_0x58f734,_0x16de6f]=_0x227197[_0x5a3588(0x1f1)](':');_0x4b4d92[_0x5a3588(0x2d1)]({'startOffset':Number(_0x627a50),'endOffset':Number(_0x5157cc),'collapsed':_0x627a50===_0x5157cc,'isActive':_0x104cbe==='1','rangeType':_0x3bcdba===_0x5636da['TEXT']?_0x5636da[_0x5a3588(0x203)]:_0x5636da[_0x5a3588(0x24c)],'segmentId':typeof _0x58f734==_0x5a3588(0x215)?String(_0x58f734):'','segmentPage':Number(_0x16de6f==null?-0x1:_0x16de6f)});}return _0x4b4d92['some'](_0x12efa1=>_0x12efa1[_0x5a3588(0x21d)])||(_0x4b4d92[0x0][_0x5a3588(0x21d)]=!0x0),_0x4b4d92;}var un=class extends _0x2b7d41{constructor(..._0x406ee1){const _0x56aabb=_0x34ca81;super(..._0x406ee1),G(this,_0x56aabb(0x1c5),new _0x318671(null)),G(this,_0x56aabb(0x217),this[_0x56aabb(0x1c5)][_0x56aabb(0x210)]());}[_0x34ca81(0x39e)](_0x17bdf9){const _0x1fa98b=_0x34ca81;let {unitID:_0x18711a,memberID:_0x110be1,textRanges:_0x56937e}=_0x17bdf9,_0x838dbf=cn(_0x56937e);if(_0x838dbf==='')return;let _0x5b6421={'unitID':_0x18711a,'memberID':_0x110be1,'selection':_0x838dbf};this['_collabCursorState$'][_0x1fa98b(0x301)](_0x5b6421);}};let dn=class extends _0x2b7d41{get[_0x34ca81(0x259)](){const _0x299a5b=_0x34ca81;return this[_0x299a5b(0x21b)][_0x299a5b(0x22d)]();}get[_0x34ca81(0x36e)](){const _0x3540ab=_0x34ca81;return this['_roomMembers$'][_0x3540ab(0x22d)]();}constructor(_0x5513fe,_0x3c7a28,_0x3754b7,_0x11ead1,_0x1833d3,_0x51d895,_0x474019,_0x2a4266,_0xb0be81){const _0x7ec63d=_0x34ca81;super(),this[_0x7ec63d(0x32a)]=_0x5513fe,this[_0x7ec63d(0x26d)]=_0x3c7a28,this[_0x7ec63d(0x34e)]=_0x3754b7,this[_0x7ec63d(0x270)]=_0x11ead1,this['_memberService']=_0x1833d3,this[_0x7ec63d(0x354)]=_0x51d895,this[_0x7ec63d(0x242)]=_0x474019,this[_0x7ec63d(0x32e)]=_0x2a4266,this['_commandService']=_0xb0be81,G(this,_0x7ec63d(0x35d),!0x1),G(this,_0x7ec63d(0x1f9),!0x1),G(this,_0x7ec63d(0x21b),new _0x318671(new Map())),G(this,_0x7ec63d(0x23f),this['_cursorInfo$'][_0x7ec63d(0x210)]()),G(this,'_roomMembers$',new _0x318671([])),G(this,_0x7ec63d(0x1cc),this[_0x7ec63d(0x3b4)][_0x7ec63d(0x25a)](_0x12ed8f(0x12c))),G(this,_0x7ec63d(0x24b),_0x239f1b(_0x1ec664=>{const _0x5dde8c=_0x7ec63d;let _0x2fcad8={'eventID':_0x5b8d34[_0x5dde8c(0x365)],'data':{'unitID':this['unitID'],'memberID':this[_0x5dde8c(0x26d)]['getMemberID'](),'selection':cn(_0x1ec664)}};this[_0x5dde8c(0x26d)][_0x5dde8c(0x223)](_0x2fcad8,this['unitID']);},0x64));}[_0x34ca81(0x36f)](){const _0x9e1af5=_0x34ca81;super[_0x9e1af5(0x36f)](),this[_0x9e1af5(0x21b)]['next'](new Map()),this['_cursorInfo$'][_0x9e1af5(0x3b1)](),this[_0x9e1af5(0x3b4)][_0x9e1af5(0x301)]([]),this['_roomMembers$']['complete']();}[_0x34ca81(0x2b5)](){const _0x5eb48c=_0x34ca81;this[_0x5eb48c(0x1f9)]||(this['_init']=!0x0,this[_0x5eb48c(0x26d)]['sessionStatus$'][_0x5eb48c(0x25a)](_0x4ff7f8(this[_0x5eb48c(0x37d)]))[_0x5eb48c(0x3d0)](_0x2381af=>{const _0x2ed7a0=_0x5eb48c;_0x2381af===_0xcd3db3[_0x2ed7a0(0x2a1)]?this['_toggleOnline']():this[_0x2ed7a0(0x21f)]();}),this[_0x5eb48c(0x26d)][_0x5eb48c(0x381)][_0x5eb48c(0x25a)](_0x4ff7f8(this[_0x5eb48c(0x37d)]))['subscribe'](_0x58f905=>{const _0x42bd85=_0x5eb48c;let _0xde1334=_0x58f905[_0x42bd85(0x1e7)];_0xde1334===_0x5b8d34[_0x42bd85(0x365)]&&this[_0x42bd85(0x396)](_0x58f905),_0xde1334===_0x5b8d34[_0x42bd85(0x34b)]&&this[_0x42bd85(0x28b)](_0x58f905);}),this[_0x5eb48c(0x352)](this['_commandService']['onCommandExecuted'](_0x1976fc=>{const _0x571717=_0x5eb48c;let _0x526751=_0x1976fc[_0x571717(0x230)];_0x526751!=null&&this[_0x571717(0x35d)]&&_0x1976fc['id']===_0x145cd9['id']&&_0x526751['unitId']===this[_0x571717(0x32a)]&&_0x526751[_0x571717(0x2ee)]===!0x1&&_0x526751[_0x571717(0x248)][_0x571717(0x315)]>0x0&&this[_0x571717(0x24b)](_0x526751['ranges']);})),this[_0x5eb48c(0x354)][_0x5eb48c(0x217)][_0x5eb48c(0x25a)](_0x4ff7f8(this[_0x5eb48c(0x37d)]))[_0x5eb48c(0x3d0)](_0x1f88a2=>{const _0x45b905=_0x5eb48c;if((_0x1f88a2==null?void 0x0:_0x1f88a2[_0x45b905(0x32a)])!==this[_0x45b905(0x32a)])return;let _0x1e0201={'eventID':_0x5b8d34[_0x45b905(0x365)],'data':_0x1f88a2};this['_onCursorUpdate'](_0x1e0201);}),this[_0x5eb48c(0x352)](this[_0x5eb48c(0x27f)][_0x5eb48c(0x26c)](_0x45e013=>{const _0x66108b=_0x5eb48c;if(_0x45e013['params']==null)return;let _0xa8fd04=_0x45e013['params'];if(_0x45e013['id']!==_0xd566bc['id']||_0xa8fd04['unitId']!==this['unitID'])return;let _0x892017={'id':_0x66108b(0x389),'params':_0xa8fd04},_0xe948f8=this[_0x66108b(0x259)];for(let [_0x361a39,_0x54afa9]of _0xe948f8){let _0x1f0118={'id':_0x66108b(0x389),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x54afa9['ranges']}},_0x1869c8=this[_0x66108b(0x242)][_0x66108b(0x1f3)](_0x892017,_0x1f0118,!0x1);if(_0x305af2(_0x1869c8))throw _0x1869c8[_0x66108b(0x350)];_0xe948f8[_0x66108b(0x2f0)](_0x361a39,{..._0x54afa9,'ranges':_0x1869c8[_0x66108b(0x22f)][_0x66108b(0x230)][_0x66108b(0x3c3)]});}queueMicrotask(()=>{const _0x25e0ae=_0x66108b;this[_0x25e0ae(0x21b)][_0x25e0ae(0x301)](_0xe948f8);});})));}[_0x34ca81(0x396)](_0x2f2d6a){const _0x2077ed=_0x34ca81;var _0x7e01a2,_0x43524b;let {memberID:_0x494462,selection:_0x33c3ed}=_0x2f2d6a['data'],_0x1a4f75=ln(_0x33c3ed),_0x4989ae=(_0x7e01a2=(_0x43524b=this[_0x2077ed(0x2dc)][_0x2077ed(0x342)](this[_0x2077ed(0x32a)],_0x494462))==null?void 0x0:_0x43524b['name'])==null?'Unknown\x20user':_0x7e01a2,_0x2a7b7d={'color':this['_colorAssignService'][_0x2077ed(0x3bd)](_0x494462),'name':_0x4989ae,'ranges':_0x1a4f75},_0xa7ae32=this[_0x2077ed(0x259)];_0xa7ae32[_0x2077ed(0x2f0)](_0x494462,_0x2a7b7d),this[_0x2077ed(0x21b)]['next'](_0xa7ae32);}[_0x34ca81(0x28b)](_0x6021b){const _0x5f4feb=_0x34ca81;let {memberID:_0x4aa927}=_0x6021b[_0x5f4feb(0x324)],_0x7dc84=this[_0x5f4feb(0x259)];_0x7dc84[_0x5f4feb(0x266)](_0x4aa927),this[_0x5f4feb(0x21b)][_0x5f4feb(0x301)](_0x7dc84);}[_0x34ca81(0x1c2)](){const _0x5630bf=_0x34ca81;var _0x36265d;if(this[_0x5630bf(0x35d)]=!0x0,((_0x36265d=this[_0x5630bf(0x32e)][_0x5630bf(0x390)]())==null?void 0x0:_0x36265d['getUnitId']())!==this['unitID'])return;let _0x28707a=this[_0x5630bf(0x34e)][_0x5630bf(0x21a)](_0x361ca2)[_0x5630bf(0x2af)]();Array['isArray'](_0x28707a)&&_0x28707a['length']>0x0&&this['_updateLocalCursor'](_0x28707a);}[_0x34ca81(0x21f)](){const _0x5e5f98=_0x34ca81;this[_0x5e5f98(0x35d)]=!0x1;}};dn=q([K(0x2,_0x60904d(_0x4227ab)),K(0x3,_0x60904d(sn)),K(0x4,_0x60904d(_0x5cacf0)),K(0x5,_0x60904d(un)),K(0x6,_0x488ec3),K(0x7,_0x185350),K(0x8,_0x51f795)],dn);const fn=()=>{let _0x31163a=[],_0x5c3675=!0x1;return _0x16bd24=>{const _0x3b15f7=_0x1a2a;_0x31163a[_0x3b15f7(0x2d1)](_0x16bd24),_0x5c3675||(_0x5c3675=!0x0,setTimeout(()=>{const _0x6d25be=_0x3b15f7;_0x31163a[_0x6d25be(0x302)](_0x21c16c=>_0x21c16c()),_0x31163a=[],_0x5c3675=!0x1;}));};};let pn=class extends _0x2b7d41{get['cursorInfo'](){const _0x336336=_0x34ca81;return this[_0x336336(0x21b)]['getValue']();}get[_0x34ca81(0x36e)](){const _0x4ca6db=_0x34ca81;return this[_0x4ca6db(0x3b4)][_0x4ca6db(0x22d)]();}constructor(_0xde4be5,_0x341f49,_0x4af393,_0x5e24fb,_0x34e616,_0x48c6e1,_0x3bea7f,_0x39528e){const _0x3d8382=_0x34ca81;super(),this[_0x3d8382(0x32a)]=_0xde4be5,this[_0x3d8382(0x26d)]=_0x341f49,this[_0x3d8382(0x34e)]=_0x4af393,this[_0x3d8382(0x270)]=_0x5e24fb,this[_0x3d8382(0x2dc)]=_0x34e616,this[_0x3d8382(0x32e)]=_0x48c6e1,this[_0x3d8382(0x27f)]=_0x3bea7f,this[_0x3d8382(0x334)]=_0x39528e,G(this,_0x3d8382(0x35d),!0x1),G(this,_0x3d8382(0x1f9),!0x1),G(this,_0x3d8382(0x21b),new _0x318671(new Map())),G(this,_0x3d8382(0x23f),this[_0x3d8382(0x21b)][_0x3d8382(0x210)]()),G(this,_0x3d8382(0x3b4),new _0x318671([])),G(this,'roomMembers$',this[_0x3d8382(0x3b4)]['pipe'](_0x12ed8f(0x12c))),G(this,_0x3d8382(0x24b),_0x239f1b((_0x31b885,_0xb3c53e)=>{const _0x3a100c=_0x3d8382;let _0x78ee9={'eventID':_0x5b8d34[_0x3a100c(0x365)],'data':{'unitID':this[_0x3a100c(0x32a)],'memberID':this['_session'][_0x3a100c(0x2e3)](),'selection':_0x56dbab(_0x31b885,_0xb3c53e[_0x3a100c(0x2c7)])}};this[_0x3a100c(0x26d)][_0x3a100c(0x223)](_0x78ee9,this[_0x3a100c(0x32a)]);},0x64));}[_0x34ca81(0x36f)](){const _0x128bf0=_0x34ca81;super['dispose'](),this['_cursorInfo$']['next'](new Map()),this[_0x128bf0(0x21b)][_0x128bf0(0x3b1)](),this[_0x128bf0(0x3b4)][_0x128bf0(0x301)]([]),this['_roomMembers$'][_0x128bf0(0x3b1)]();}[_0x34ca81(0x2b5)](){const _0x449ca5=_0x34ca81;this[_0x449ca5(0x1f9)]||(this['_init']=!0x0,this['_session'][_0x449ca5(0x341)][_0x449ca5(0x25a)](_0x4ff7f8(this[_0x449ca5(0x37d)]))[_0x449ca5(0x3d0)](_0x2e0e8a=>{const _0x14d07f=_0x449ca5;_0x2e0e8a===_0xcd3db3[_0x14d07f(0x2a1)]?this[_0x14d07f(0x1c2)]():this[_0x14d07f(0x21f)]();}),this[_0x449ca5(0x26d)]['event$'][_0x449ca5(0x25a)](_0x4ff7f8(this[_0x449ca5(0x37d)]))[_0x449ca5(0x3d0)](_0x48ce9d=>{const _0x129ee4=_0x449ca5;let _0x5d8a00=_0x48ce9d['eventID'];_0x5d8a00===_0x5b8d34[_0x129ee4(0x365)]&&this[_0x129ee4(0x396)](_0x48ce9d),_0x5d8a00===_0x5b8d34[_0x129ee4(0x34b)]&&this[_0x129ee4(0x28b)](_0x48ce9d);}),this[_0x449ca5(0x1d2)](),this[_0x449ca5(0x352)](this['_commandService'][_0x449ca5(0x26c)](_0x5129c7=>{const _0x32eded=_0x449ca5;if(this[_0x32eded(0x35d)]&&_0x5129c7['id']===_0x48a71f['id']&&_0x5129c7[_0x32eded(0x230)][_0x32eded(0x22c)]===this[_0x32eded(0x32a)]){let _0x4c5309=_0x5129c7[_0x32eded(0x230)];this[_0x32eded(0x24b)](_0x4c5309[_0x32eded(0x360)],_0x4c5309[_0x32eded(0x222)][0x0]);}})));}[_0x34ca81(0x396)](_0x206af6){const _0x89a45a=_0x34ca81;var _0x98d031,_0x14e4d8;let {memberID:_0x29c048,selection:_0x617496}=_0x206af6[_0x89a45a(0x324)],{sheetName:_0x1c5cb8,range:_0x39faed}=_0xdd86c4(_0x617496),_0x4fcf8c={'name':(_0x98d031=(_0x14e4d8=this[_0x89a45a(0x2dc)]['getMember'](this[_0x89a45a(0x32a)],_0x29c048))==null?void 0x0:_0x14e4d8[_0x89a45a(0x285)])==null?_0x89a45a(0x332):_0x98d031,'range':this['_getMergeRange'](_0x1c5cb8,_0x39faed),'sheetID':_0x1c5cb8,'color':this[_0x89a45a(0x270)]['assignAColorForMemberID'](_0x29c048),'selection':_0x617496},_0x4fc4d8=this[_0x89a45a(0x259)];_0x4fc4d8[_0x89a45a(0x2f0)](_0x29c048,_0x4fcf8c),this[_0x89a45a(0x21b)][_0x89a45a(0x301)](_0x4fc4d8);}[_0x34ca81(0x28b)](_0x19fb67){const _0x518c26=_0x34ca81;let {memberID:_0x38be62}=_0x19fb67[_0x518c26(0x324)],_0x4b37ed=this[_0x518c26(0x259)];_0x4b37ed[_0x518c26(0x266)](_0x38be62),this[_0x518c26(0x21b)]['next'](_0x4b37ed);}[_0x34ca81(0x2a9)](_0x524a57,_0x1ab529){const _0x2c592d=_0x34ca81;var _0x3fe58c;let _0x5cffe4=(_0x3fe58c=this['_univerInstanceService'][_0x2c592d(0x3a5)](this[_0x2c592d(0x32a)]))==null||(_0x3fe58c=_0x3fe58c[_0x2c592d(0x3a1)](_0x524a57))==null?void 0x0:_0x3fe58c['getMergeData']();return(_0x5cffe4==null?void 0x0:_0x5cffe4[_0x2c592d(0x367)](_0x49010a=>_0x19c0bf[_0x2c592d(0x3ae)](_0x49010a,_0x1ab529)))||_0x1ab529;}[_0x34ca81(0x1d2)](){const _0x588d27=_0x34ca81;let _0x13df48=new _0x53dc39(),_0x2ea524=fn(),_0x301b5b=()=>{const _0x417938=_0x1a2a;_0x13df48[_0x417938(0x36f)]();let _0x2c87f7=(_0x3f596d,_0x3214fa,_0x43526f,_0xbb3f08)=>{const _0x25e3f4=_0x417938;let _0x2efb35=[];switch(_0x3f596d['id']){case _0x17dd29[_0x25e3f4(0x313)]:_0x2efb35=_0x22f123(_0x3f596d,_0xbb3f08);break;case _0x17dd29[_0x25e3f4(0x1ef)]:_0x2efb35=_0x60ee38(_0x3f596d,_0xbb3f08);break;case _0x17dd29[_0x25e3f4(0x1eb)]:_0x2efb35=_0x1ee638(_0x3f596d,_0xbb3f08);break;case _0x17dd29[_0x25e3f4(0x1c6)]:_0x2efb35=_0x1d9772(_0x3f596d,_0xbb3f08);break;case _0x17dd29[_0x25e3f4(0x2a4)]:_0x2efb35=_0x2fcb2b(_0x3f596d,_0xbb3f08);break;case _0x17dd29[_0x25e3f4(0x250)]:_0x2efb35=_0x23f8a5(_0x3f596d,_0xbb3f08);break;case _0x17dd29[_0x25e3f4(0x314)]:_0x2efb35=_0x15e840(_0x3f596d,_0xbb3f08);break;case _0x17dd29[_0x25e3f4(0x1e4)]:_0x2efb35=_0x216db9(_0x3f596d,_0xbb3f08);break;case _0x17dd29[_0x25e3f4(0x321)]:_0x2efb35=_0x486536(_0x3f596d,_0xbb3f08);break;}let _0x224996=_0x2f0174(_0x2efb35,_0xbb3f08),_0x3e0022=this[_0x25e3f4(0x259)][_0x25e3f4(0x21a)](_0x3214fa);if(_0x3e0022&&_0x224996){let _0x11f806={..._0x3e0022,'range':_0x224996};this[_0x25e3f4(0x259)]['set'](_0x3214fa,_0x11f806),_0x2ea524(()=>{const _0x12eae8=_0x25e3f4;let _0x4f0e7a=this[_0x12eae8(0x334)]['registerRefRange'](_0x224996,_0x129fc3=>(_0x4f0e7a['dispose'](),_0x2c87f7(_0x129fc3,_0x3214fa,_0x43526f,_0x224996)));_0x13df48[_0x12eae8(0x398)](_0x4f0e7a);});}return{'redos':[],'undos':[]};};this[_0x417938(0x259)][_0x417938(0x302)]((_0x38030e,_0x222778)=>{const _0xf90e51=_0x417938;let {range:_0x25df7e,sheetID:_0x2a2882}=_0x38030e,_0x45dca1=this[_0xf90e51(0x334)][_0xf90e51(0x357)](_0x25df7e,_0x40ccde=>(_0x45dca1['dispose'](),_0x2c87f7(_0x40ccde,_0x222778,_0x2a2882,_0x25df7e)));_0x13df48[_0xf90e51(0x398)](_0x45dca1);});};this[_0x588d27(0x352)](_0x5bed57(this[_0x588d27(0x21b)][_0x588d27(0x3d0)](()=>{_0x301b5b();})));}[_0x34ca81(0x1c2)](){const _0x40bfe2=_0x34ca81;var _0x282f08,_0x2343cb;if(this[_0x40bfe2(0x35d)]=!0x0,((_0x282f08=this[_0x40bfe2(0x32e)][_0x40bfe2(0x390)]())==null?void 0x0:_0x282f08[_0x40bfe2(0x2fb)]())!==this[_0x40bfe2(0x32a)])return;let _0x2ee435=(_0x2343cb=this[_0x40bfe2(0x34e)][_0x40bfe2(0x21a)](_0x5b81a2)[_0x40bfe2(0x3a6)]())==null?void 0x0:_0x2343cb[0x0],_0x1e63dd=this['_univerInstanceService'][_0x40bfe2(0x364)](_0x3e3c71[_0x40bfe2(0x2fd)])[_0x40bfe2(0x228)]();_0x2ee435&&_0x1e63dd&&this[_0x40bfe2(0x24b)](_0x1e63dd[_0x40bfe2(0x251)](),_0x2ee435);}[_0x34ca81(0x21f)](){const _0x495953=_0x34ca81;this[_0x495953(0x35d)]=!0x1;}};pn=q([K(0x2,_0x60904d(_0x4227ab)),K(0x3,_0x60904d(sn)),K(0x4,_0x60904d(_0x5cacf0)),K(0x5,_0x185350),K(0x6,_0x51f795),K(0x7,_0x60904d(_0x560188))],pn);let X=class extends _0x2b7d41{constructor(_0x23b785,_0x47d2bc,_0xb0a939){const _0x5ab834=_0x34ca81;super(),this[_0x5ab834(0x32e)]=_0x23b785,this['_injector']=_0x47d2bc,this[_0x5ab834(0x1fe)]=_0xb0a939,G(this,_0x5ab834(0x268),new Map()),G(this,_0x5ab834(0x1f6),new _0x4bde4d()),this[_0x5ab834(0x1f9)]();}[_0x34ca81(0x36f)](){const _0x4677d2=_0x34ca81;super[_0x4677d2(0x36f)](),this[_0x4677d2(0x1f6)][_0x4677d2(0x3b1)](),this[_0x4677d2(0x268)][_0x4677d2(0x302)](_0x38e612=>_0x38e612[_0x4677d2(0x36f)]());}[_0x34ca81(0x2a8)](_0x5f347c){const _0x2b1878=_0x34ca81;return this[_0x2b1878(0x268)][_0x2b1878(0x33f)](_0x5f347c)?this[_0x2b1878(0x268)][_0x2b1878(0x21a)](_0x5f347c)[_0x2b1878(0x23f)]:this[_0x2b1878(0x1f6)][_0x2b1878(0x25a)](_0x58d3a9(_0x10f66c=>_0x10f66c['unitID']===_0x5f347c),_0x190196(_0x5e297c=>_0x5e297c['cursorInfo$']));}[_0x34ca81(0x1f9)](){const _0x17c012=_0x34ca81;this[_0x17c012(0x32e)][_0x17c012(0x2c2)](_0x3e3c71[_0x17c012(0x2fd)])[_0x17c012(0x25a)](_0x4ff7f8(this[_0x17c012(0x37d)]))['subscribe'](async _0x4184a4=>{const _0x4cffec=_0x17c012;let _0x136d95=_0x4184a4['unit'][_0x4cffec(0x2fb)](),_0x181cc2=await this['_startSheetCollabCursor'](_0x136d95);this[_0x4cffec(0x1f6)][_0x4cffec(0x301)](_0x181cc2),this[_0x4cffec(0x268)][_0x4cffec(0x2f0)](_0x136d95,_0x181cc2);}),this[_0x17c012(0x32e)][_0x17c012(0x2c2)](_0x3e3c71[_0x17c012(0x2b8)])['pipe'](_0x4ff7f8(this[_0x17c012(0x37d)]))[_0x17c012(0x25a)](_0x58d3a9(_0x2add5a=>!_0x2add5a[_0x17c012(0x393)][_0x17c012(0x2fb)]()[_0x17c012(0x2b6)]('__')))['subscribe'](async _0xc97a03=>{const _0x3d3e14=_0x17c012;let {unit:_0x17aedf}=_0xc97a03,_0x4d18fc=_0x17aedf[_0x3d3e14(0x2fb)](),_0x20f834=await this[_0x3d3e14(0x22a)](_0x4d18fc);this[_0x3d3e14(0x1f6)][_0x3d3e14(0x301)](_0x20f834),this[_0x3d3e14(0x268)]['set'](_0x4d18fc,_0x20f834);}),_0x179079(this[_0x17c012(0x32e)][_0x17c012(0x2bd)](_0x3e3c71[_0x17c012(0x2b8)]),this[_0x17c012(0x32e)][_0x17c012(0x2bd)](_0x3e3c71[_0x17c012(0x2fd)]))[_0x17c012(0x25a)](_0x4ff7f8(this[_0x17c012(0x37d)]))[_0x17c012(0x3d0)](_0x505328=>{const _0x33a956=_0x17c012;let _0x2552ac=_0x505328[_0x33a956(0x2fb)](),_0x1e432b=this[_0x33a956(0x268)][_0x33a956(0x21a)](_0x2552ac);_0x1e432b&&(_0x1e432b['dispose'](),this['_entities']['delete'](_0x2552ac));});}async[_0x34ca81(0x36b)](_0x247d88){const _0x4ac721=_0x34ca81;let _0x2c8a9a=await this[_0x4ac721(0x1fe)][_0x4ac721(0x3c2)](_0x247d88),_0x42391c=this[_0x4ac721(0x34e)][_0x4ac721(0x38a)](pn,_0x247d88,_0x2c8a9a);return _0x42391c[_0x4ac721(0x2b5)](),_0x42391c;}async['_startDocCollabCursor'](_0x21fe94){const _0x4977c9=_0x34ca81;let _0x1db2ac=await this[_0x4977c9(0x1fe)]['requireSession'](_0x21fe94),_0x26afd8=this[_0x4977c9(0x34e)][_0x4977c9(0x38a)](dn,_0x21fe94,_0x1db2ac);return _0x26afd8['init'](),_0x26afd8;}};X=q([K(0x0,_0x185350),K(0x1,_0x60904d(_0x4227ab)),K(0x2,_0x60904d(_0x1c8681))],X);function mn(_0xb16a43,_0x7f5b00){const _0x45a283=_0x34ca81;var _0x169e67,_0x79190e,_0x48eeef;let {radius:_0x442136,width:_0x508657,height:_0x23749b}=_0x7f5b00;_0x442136=(_0x169e67=_0x442136)==null?0x0:_0x169e67,_0x508657=(_0x79190e=_0x508657)==null?0x1e:_0x79190e,_0x23749b=(_0x48eeef=_0x23749b)==null?0x1e:_0x48eeef;let _0x5eb0a3=0x0,_0x28d635=0x0,_0x69c0bd=0x0;_0x5eb0a3=_0x28d635=_0x69c0bd=Math['min'](_0x442136,_0x508657/0x2,_0x23749b/0x2),_0xb16a43[_0x45a283(0x2f2)](),_0xb16a43[_0x45a283(0x2a3)](_0x5eb0a3,0x0),_0xb16a43['lineTo'](_0x508657-_0x28d635,0x0),_0xb16a43[_0x45a283(0x20a)](_0x508657-_0x28d635,_0x28d635,_0x28d635,Math['PI']*0x3/0x2,0x0,!0x1),_0xb16a43[_0x45a283(0x318)](_0x508657,_0x23749b-_0x69c0bd),_0xb16a43['arc'](_0x508657-_0x69c0bd,_0x23749b-_0x69c0bd,_0x69c0bd,0x0,Math['PI']/0x2,!0x1),_0xb16a43[_0x45a283(0x318)](0x0,_0x23749b),_0xb16a43['lineTo'](0x0,_0x5eb0a3),_0xb16a43[_0x45a283(0x20a)](_0x5eb0a3,_0x5eb0a3,_0x5eb0a3,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0xb16a43['closePath'](),_0x7f5b00[_0x45a283(0x219)]&&(_0xb16a43['save'](),_0xb16a43['fillStyle']=_0x7f5b00[_0x45a283(0x219)],_0x7f5b00['fillRule']===_0x45a283(0x1fd)?_0xb16a43[_0x45a283(0x219)](_0x45a283(0x1fd)):_0xb16a43[_0x45a283(0x219)](),_0xb16a43['restore']());}var hn=class e extends _0x347acb{constructor(_0x3837b6,_0x1ae501){const _0x487a50=_0x34ca81;super(_0x3837b6,_0x1ae501),G(this,_0x487a50(0x1f2),void 0x0),G(this,_0x487a50(0x2de),void 0x0),this[_0x487a50(0x1f2)]=_0x1ae501==null?void 0x0:_0x1ae501['color'],this[_0x487a50(0x2de)]=_0x1ae501==null?void 0x0:_0x1ae501[_0x487a50(0x2de)];}static['drawWith'](_0x175e0d,_0x3fb564){const _0x4ec591=_0x34ca81;let {text:_0x1410d2,color:_0x5f2c23}=_0x3fb564;_0x175e0d['save'](),_0x175e0d[_0x4ec591(0x218)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';let _0x12fea8=_0x175e0d[_0x4ec591(0x2f8)](_0x1410d2)[_0x4ec591(0x2b2)];if(mn(_0x175e0d,{'height':0x14,'radius':0x4,'width':Math[_0x4ec591(0x20d)](_0x12fea8+0x8,0xc8),'fill':_0x5f2c23,'evented':!0x1}),_0x175e0d['fillStyle']=_0x4ec591(0x39f),_0x12fea8>0xc0){let _0x37248e='',_0x55b3f5=0x0;for(let _0x1294d5 of _0x1410d2){let _0x410a39=_0x175e0d[_0x4ec591(0x2f8)](_0x1294d5)[_0x4ec591(0x2b2)];if(_0x55b3f5+_0x410a39<=0xc0-_0x175e0d[_0x4ec591(0x2f8)]('...')[_0x4ec591(0x2b2)])_0x37248e+=_0x1294d5,_0x55b3f5+=_0x410a39;else{_0x37248e+=_0x4ec591(0x1d7);break;}}_0x175e0d[_0x4ec591(0x226)](_0x37248e,0x4,0xf);}else _0x175e0d[_0x4ec591(0x226)](_0x1410d2,0x4,0xf);_0x175e0d['restore']();}[_0x34ca81(0x29f)](_0x1d6d6d){const _0x4e1079=_0x34ca81;e[_0x4e1079(0x300)](_0x1d6d6d,this);}};const gn=_0x34ca81(0x38c);var _n=class{constructor(_0x42a7ad,_0x2a3035,_0x210f52,_0x193507){const _0x11c6f2=_0x34ca81;this[_0x11c6f2(0x2e7)]=_0x42a7ad,this[_0x11c6f2(0x3b8)]=_0x2a3035,this[_0x11c6f2(0x36a)]=_0x210f52,this[_0x11c6f2(0x1e3)]=_0x193507,G(this,'_shapes',[]),G(this,_0x11c6f2(0x331),null),G(this,_0x11c6f2(0x207),null),G(this,_0x11c6f2(0x2c8),null),G(this,_0x11c6f2(0x2cf),null),G(this,'_eventUnsubscribe',null),this[_0x11c6f2(0x35e)]();}set[_0x34ca81(0x2a5)](_0x556789){const _0x1f3b74=_0x34ca81;_0x556789?(this[_0x1f3b74(0x2c8)]&&this[_0x1f3b74(0x2c8)][_0x1f3b74(0x26e)](),this[_0x1f3b74(0x207)]&&this['_textBubble'][_0x1f3b74(0x2ea)]()):(this['_anchorDot']&&this[_0x1f3b74(0x2c8)]['show'](),this[_0x1f3b74(0x207)]&&this['_textBubble'][_0x1f3b74(0x26e)]());}['dispose'](){const _0x3d201e=_0x34ca81;for(let _0x3cc4ed of this[_0x3d201e(0x1d4)])_0x3cc4ed['dispose']();this[_0x3d201e(0x207)]&&this[_0x3d201e(0x207)][_0x3d201e(0x36f)](),this[_0x3d201e(0x2c8)]&&this[_0x3d201e(0x2c8)][_0x3d201e(0x36f)](),this[_0x3d201e(0x331)]&&this['_anchor'][_0x3d201e(0x36f)](),this['_eventUnsubscribe']&&this[_0x3d201e(0x201)]();}[_0x34ca81(0x35e)](){const _0xe8a46b=_0x34ca81;let {_docSkeleton:_0x54a70f,_document:_0xf31a1c}=this,{color:_0x3915cd,name:_0x35f1da,ranges:_0x5b1647}=this['_cursor'],_0xe87108=_0xf31a1c[_0xe8a46b(0x2e5)](),{docsLeft:_0x146ca5,docsTop:_0x212cd5}=_0xe87108,_0x4403bd=new _0x393640(_0xe87108,_0x54a70f);for(let {startOffset:_0x33ca35,endOffset:_0x5dabb5,rangeType:_0x6ac9c2,segmentId:_0x13582c,segmentPage:_0x6f3366,collapsed:_0x30139e,isActive:_0x4a192f}of _0x5b1647){let _0x2d7fb0=_0x54a70f['findNodePositionByCharIndex'](_0x33ca35,!0x0,_0x13582c,_0x6f3366),_0x25888f=_0x54a70f[_0xe8a46b(0x204)](_0x5dabb5,!0x0,_0x13582c,_0x6f3366);if(_0x25888f==null&&(_0x25888f=_0x54a70f[_0xe8a46b(0x204)](_0x5dabb5-0x1,!0x1,_0x13582c,_0x6f3366)),_0x4a192f){let {contentBoxPointGroup:_0x3e2e95}=_0x4403bd[_0xe8a46b(0x343)](_0x25888f,_0x25888f);if(_0x3e2e95[_0xe8a46b(0x315)]===0x0)continue;this[_0xe8a46b(0x2dd)](_0x3915cd,_0x3e2e95,_0x146ca5,_0x212cd5,_0x35f1da),this[_0xe8a46b(0x201)]=this['_handleHover']();}if(_0x2d7fb0&&_0x25888f){if(_0x6ac9c2===_0x5636da[_0xe8a46b(0x24c)]){var _0x1b233b;let {pointGroup:_0x36026f}=(_0x1b233b=new _0x5e7e2f(_0xe87108,_0x54a70f)[_0xe8a46b(0x343)](_0x2d7fb0,_0x25888f))==null?{}:_0x1b233b;if(_0x36026f==null||_0x36026f[_0xe8a46b(0x315)]===0x0)continue;this[_0xe8a46b(0x1dd)](_0x3915cd,_0x36026f,_0x146ca5,_0x212cd5);}else{if(!_0x30139e){let {borderBoxPointGroup:_0x88162}=_0x4403bd[_0xe8a46b(0x343)](_0x2d7fb0,_0x25888f);if(_0x88162[_0xe8a46b(0x315)]===0x0)continue;this[_0xe8a46b(0x3d4)](_0x3915cd,_0x88162,_0x146ca5,_0x212cd5);}}}}}[_0x34ca81(0x2dd)](_0xfb2515,_0xcdc1d3,_0x59376d,_0x28ae0b,_0x5bdde1){const _0x10039a=_0x34ca81;let {left:_0x46f0cb,top:_0x5eeba1,height:_0x528a16}=this['_getAnchorBounding'](_0xcdc1d3),_0x1b62e1=1.5/this[_0x10039a(0x1ee)](),_0x19b1c0=new _0x8e87f9(gn+_0x19d355(0x6),{'left':_0x46f0cb+_0x59376d-_0x1b62e1,'top':_0x5eeba1+_0x28ae0b,'height':_0x528a16,'width':1.5,'fill':_0xfb2515||_0x9ec321(_0x53eda6['black'],0x0),'strokeWidth':_0x1b62e1,'stroke':'rgba(255,\x20255,\x20255,\x200.01)','evented':!0x0});this[_0x10039a(0x331)]=_0x19b1c0,this[_0x10039a(0x3b8)][_0x10039a(0x2c9)](_0x19b1c0,_0x13a18e);let _0xf3af3f=new _0x8e87f9(gn+_0x19d355(0x6),{'left':_0x46f0cb+_0x59376d-_0x1b62e1,'top':_0x5eeba1+_0x28ae0b-0x4/0x2,'height':0x4,'width':0x4,'fill':_0xfb2515||_0x9ec321(_0x53eda6['black'],0x0),'strokeWidth':0x0,'stroke':_0xfb2515||_0x9ec321(_0x53eda6[_0x10039a(0x239)],0x0),'evented':!0x1});this[_0x10039a(0x2c8)]=_0xf3af3f,this[_0x10039a(0x3b8)][_0x10039a(0x2c9)](_0xf3af3f,_0x13a18e);let _0x38b50f=new hn(gn+_0x19d355(0x6),{'left':_0x46f0cb+_0x59376d-_0x1b62e1,'top':_0x5eeba1+_0x28ae0b-0x14,'text':_0x5bdde1,'color':_0xfb2515});this[_0x10039a(0x207)]=_0x38b50f,this['_scene']['addObject'](_0x38b50f,_0x13a18e),this[_0x10039a(0x2a5)]=!0x1;}[_0x34ca81(0x3bf)](){const _0x1150ff=_0x34ca81;let _0x1c3d8b=this[_0x1150ff(0x331)]['onPointerEnter$'][_0x1150ff(0x238)](()=>{const _0x1c0a9c=_0x1150ff;this[_0x1c0a9c(0x2a5)]=!0x0;}),_0x1a6276=this[_0x1150ff(0x331)][_0x1150ff(0x33e)][_0x1150ff(0x238)](()=>{const _0x1e095f=_0x1150ff;this[_0x1e095f(0x2cf)]&&clearTimeout(this[_0x1e095f(0x2cf)]),this[_0x1e095f(0x2cf)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x32ba4f=_0x1150ff;_0x1c3d8b[_0x32ba4f(0x337)](),_0x1a6276[_0x32ba4f(0x337)]();};}['_drawTextRange'](_0x5bb562,_0x123416,_0x36d66a,_0x31a71b){const _0x2413fc=_0x34ca81;let _0x7fbb1e=0.2,_0x554c82=new _0x196511(_0x5bb562)[_0x2413fc(0x1e2)](_0x7fbb1e)[_0x2413fc(0x2ce)](),_0x467d23=new _0x7ecd4(_0x2413fc(0x20e)+_0x19d355(0x6),{'pointsGroup':_0x123416,'fill':_0x554c82||_0x9ec321(_0x53eda6[_0x2413fc(0x239)],_0x7fbb1e),'left':_0x36d66a,'top':_0x31a71b,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2413fc(0x1d4)][_0x2413fc(0x2d1)](_0x467d23),this[_0x2413fc(0x3b8)][_0x2413fc(0x2c9)](_0x467d23,_0x13a18e);}[_0x34ca81(0x1dd)](_0x24f2b6,_0x15860e,_0x35cd28,_0x57d0d8){const _0x1ee8f1=_0x34ca81;let _0x485ff3=0.2,_0x293afd=new _0x196511(_0x24f2b6)[_0x1ee8f1(0x1e2)](_0x485ff3)['toRgbString'](),_0x59615c=new _0x7ecd4('collab-rect-range-'+_0x19d355(0x6),{'pointsGroup':_0x15860e,'fill':_0x293afd||_0x9ec321(_0x53eda6[_0x1ee8f1(0x239)],_0x485ff3),'left':_0x35cd28,'top':_0x57d0d8,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1ee8f1(0x1d4)]['push'](_0x59615c),this['_scene'][_0x1ee8f1(0x2c9)](_0x59615c,_0x13a18e);}[_0x34ca81(0x24e)](_0x2cf913){let _0x1f6db8=_0x2cf913[0x0],_0x1468c7=_0x1f6db8[0x0],_0x34639e=_0x1f6db8[0x2],{x:_0x449d17,y:_0x5d614e}=_0x1468c7,{x:_0xd7bd73,y:_0x5d937d}=_0x34639e;return{'left':_0x449d17,'top':_0x5d614e,'width':_0xd7bd73-_0x449d17,'height':_0x5d937d-_0x5d614e};}[_0x34ca81(0x1ee)](){const _0x2bcfc8=_0x34ca81;let {scaleX:_0x33fa93,scaleY:_0x370db0}=this[_0x2bcfc8(0x3b8)][_0x2bcfc8(0x1ec)]();return Math[_0x2bcfc8(0x394)](_0x33fa93,_0x370db0);}};let vn=class extends _0x2b7d41{constructor(_0x3a2a0c,_0x5cae39,_0xe3b503,_0x1911f7,_0x1a05b5){const _0x5bf548=_0x34ca81;super(),this[_0x5bf548(0x2e4)]=_0x3a2a0c,this['_docSkeletonManagerService']=_0x5cae39,this[_0x5bf548(0x2fc)]=_0xe3b503,this[_0x5bf548(0x27f)]=_0x1911f7,this[_0x5bf548(0x234)]=_0x1a05b5,G(this,_0x5bf548(0x1e6),[]),G(this,_0x5bf548(0x3b9),[]),this[_0x5bf548(0x1f9)]();}['_init'](){const _0x19ba5f=_0x34ca81;let _0x30582e=this['_context']['unitId'],_0x42431a=this['_docSkeletonManagerService'];this['disposeWithMe'](_0x60b8ce([this[_0x19ba5f(0x2fc)][_0x19ba5f(0x2a8)](_0x30582e),this[_0x19ba5f(0x234)][_0x19ba5f(0x1fa)]])[_0x19ba5f(0x25a)](_0x300ed6(([_0x5b61fd,_0x103996])=>({'skeleton':_0x42431a[_0x19ba5f(0x286)](),'cursors':[..._0x5b61fd['values']()][_0x19ba5f(0x335)](_0x1774c5=>({..._0x1774c5,'color':this[_0x19ba5f(0x234)][_0x19ba5f(0x30f)](_0x1774c5['color'])}))})))[_0x19ba5f(0x3d0)](_0x486016=>{const _0x518af9=_0x19ba5f;if(this[_0x518af9(0x1de)](),_0x486016){let {skeleton:_0x588c2d,cursors:_0x212937}=_0x486016;this[_0x518af9(0x1fb)](_0x588c2d,_0x212937);}})),this[_0x19ba5f(0x2ff)](),this[_0x19ba5f(0x249)]();}[_0x34ca81(0x1fb)](_0x2abe00,_0x50fbaf){const _0x33f54e=_0x34ca81;let {scene:_0x3f2892,mainComponent:_0xe15aab}=this[_0x33f54e(0x2e4)],_0x23505d=_0x50fbaf[_0x33f54e(0x24f)](_0x5e740c=>new _n(_0x5e740c,_0x3f2892,_0x2abe00,_0xe15aab));this[_0x33f54e(0x1e6)]=_0x23505d,this[_0x33f54e(0x3b9)]=_0x50fbaf;}['_refreshCollabCursors'](){const _0x754c70=_0x34ca81;this[_0x754c70(0x1de)]();let {scene:_0x3c6c77,mainComponent:_0x50f52b}=this[_0x754c70(0x2e4)],_0x727804=this[_0x754c70(0x34c)][_0x754c70(0x286)](),_0x2cffa8=this['_cursors'][_0x754c70(0x24f)](_0x391cd3=>new _n(_0x391cd3,_0x3c6c77,_0x727804,_0x50f52b));this['_cursorShapes']=_0x2cffa8;}[_0x34ca81(0x1de)](){const _0x3d0313=_0x34ca81;this[_0x3d0313(0x1e6)]['forEach'](_0x1a4730=>_0x1a4730[_0x3d0313(0x36f)]()),this[_0x3d0313(0x1e6)]=[];}[_0x34ca81(0x249)](){const _0x2de571=_0x34ca81;let _0x16163c=[_0x5def1c['id']];this[_0x2de571(0x352)](this[_0x2de571(0x27f)][_0x2de571(0x26c)](_0x5cfa3b=>{const _0x4cdca9=_0x2de571;_0x16163c['includes'](_0x5cfa3b['id'])&&_0x5cfa3b[_0x4cdca9(0x230)][_0x4cdca9(0x22c)]===this[_0x4cdca9(0x2e4)][_0x4cdca9(0x22c)]&&this['_refreshCollabCursors']();}));}[_0x34ca81(0x2ff)](){const _0x216e39=_0x34ca81;this['disposeWithMe'](_0x225037(this[_0x216e39(0x2e4)][_0x216e39(0x3b0)][_0x216e39(0x1df)])[_0x216e39(0x25a)](_0xd6b360(_0x545c02=>_0x545c02[_0x216e39(0x2c3)]===_0x2e12fb[_0x216e39(0x3c1)]),_0x3d9eb2(0x10))[_0x216e39(0x3d0)](()=>{const _0x182269=_0x216e39;this[_0x182269(0x25b)]();}));}};vn=q([K(0x1,_0x60904d(_0x413f6a)),K(0x2,_0x60904d(X)),K(0x3,_0x51f795),K(0x4,_0x60904d(_0x1c5bc3))],vn);var yn=class extends _0x347acb{constructor(_0x4c1ce2,_0x461451){const _0x16a682=_0x34ca81;if(super(_0x4c1ce2,_0x461451),G(this,'_color',void 0x0),G(this,_0x16a682(0x372),!0x1),G(this,'_range',void 0x0),G(this,_0x16a682(0x36c),''),G(this,_0x16a682(0x206),'top'),G(this,_0x16a682(0x2a6),void 0x0),G(this,_0x16a682(0x282),void 0x0),G(this,_0x16a682(0x31a),void 0x0),G(this,_0x16a682(0x391),0x4),G(this,_0x16a682(0x3d5),void 0x0),G(this,_0x16a682(0x1c8),void 0x0),G(this,'_isBlinkVisible',!0x0),G(this,_0x16a682(0x2ca),0x0),_0x461451){var _0x55295e;if(this[_0x16a682(0x21e)](_0x461451),_0x461451[_0x16a682(0x1c1)]&&((_0x55295e=_0x461451[_0x16a682(0x2e8)])==null?this[_0x16a682(0x391)]:_0x55295e)){var _0x6289ef;this[_0x16a682(0x281)]((_0x6289ef=_0x461451['highlightSecond'])==null?this[_0x16a682(0x391)]:_0x6289ef);}}this[_0x16a682(0x27c)][_0x16a682(0x238)](()=>this[_0x16a682(0x21e)]({'hovered':!0x0})),this['onPointerLeave$'][_0x16a682(0x238)](()=>this[_0x16a682(0x21e)]({'hovered':!0x1}));}['setOffsetY'](_0x2b7521){this['_offsetY']=_0x2b7521;}[_0x34ca81(0x21e)](_0x1c4197){const _0xfbd4e6=_0x34ca81;var _0x40b57e,_0x5106d1,_0x1cebf2,_0x100ac,_0x329f1c,_0x5ec4ff,_0x1d7097;this['_color']=(_0x40b57e=_0x1c4197[_0xfbd4e6(0x1f2)])==null?this['_color']:_0x40b57e,this[_0xfbd4e6(0x372)]=(_0x5106d1=_0x1c4197[_0xfbd4e6(0x3b2)])==null?this[_0xfbd4e6(0x372)]:_0x5106d1,this[_0xfbd4e6(0x237)]=(_0x1cebf2=_0x1c4197['range'])==null?this[_0xfbd4e6(0x237)]:_0x1cebf2,this[_0xfbd4e6(0x36c)]=(_0x100ac=_0x1c4197[_0xfbd4e6(0x285)])==null?this['_name']:_0x100ac,this[_0xfbd4e6(0x206)]=(_0x329f1c=_0x1c4197['labelPosition'])==null?this[_0xfbd4e6(0x206)]:_0x329f1c,this['_backgroundColor']=(_0x5ec4ff=_0x1c4197[_0xfbd4e6(0x269)])==null?this[_0xfbd4e6(0x2a6)]:_0x5ec4ff,this[_0xfbd4e6(0x282)]=(_0x1d7097=_0x1c4197['showText'])==null?this[_0xfbd4e6(0x282)]:_0x1d7097,_0x1c4197['highlightSecond']!==void 0x0&&(this[_0xfbd4e6(0x391)]=_0x1c4197[_0xfbd4e6(0x2e8)]),_0x1c4197['highlight']!==void 0x0&&(this[_0xfbd4e6(0x31a)]=_0x1c4197['highlight']),_0x1c4197[_0xfbd4e6(0x33a)]!==void 0x0&&(this[_0xfbd4e6(0x2ca)]=_0x1c4197['offsetY']),this[_0xfbd4e6(0x392)]({'width':_0x1c4197['width'],'height':_0x1c4197[_0xfbd4e6(0x3b3)]});}[_0x34ca81(0x2d4)](_0x371f1d){const _0x4329f4=_0x34ca81;let {row:_0x3009d7,column:_0x31a78a}=_0x371f1d;if(_0x3009d7>=this[_0x4329f4(0x237)]['startRow']&&_0x3009d7<=this[_0x4329f4(0x237)][_0x4329f4(0x283)]&&_0x31a78a>=this[_0x4329f4(0x237)]['startColumn']&&_0x31a78a<=this[_0x4329f4(0x237)][_0x4329f4(0x253)]){this[_0x4329f4(0x21e)]({'hovered':!0x0});return;}this[_0x4329f4(0x21e)]({'hovered':!0x1});}['_startBlinking'](_0x34d186){const _0xcf8f75=_0x34ca81;this[_0xcf8f75(0x2eb)](),this[_0xcf8f75(0x1d1)]=!0x0,this[_0xcf8f75(0x1c8)]=window['setInterval'](()=>{const _0x315fa9=_0xcf8f75;this[_0x315fa9(0x1d1)]=!this[_0x315fa9(0x1d1)],this[_0x315fa9(0x202)](!0x0);},0x1f4),this[_0xcf8f75(0x3d5)]=window[_0xcf8f75(0x27b)](()=>{const _0x419dfa=_0xcf8f75;this[_0x419dfa(0x2eb)](),this[_0x419dfa(0x1d1)]=!0x0,this[_0x419dfa(0x202)](!0x0);},_0x34d186*0x3e8);}[_0x34ca81(0x2eb)](){const _0x5c1950=_0x34ca81;this[_0x5c1950(0x1c8)]&&(window[_0x5c1950(0x2c6)](this[_0x5c1950(0x1c8)]),this['_blinkIntervalTimer']=void 0x0),this['_blinkTimer']&&(window[_0x5c1950(0x2ac)](this[_0x5c1950(0x3d5)]),this[_0x5c1950(0x3d5)]=void 0x0);}[_0x34ca81(0x2f5)](_0x157afe){return!0x1;}[_0x34ca81(0x36f)](){const _0x33505d=_0x34ca81;this[_0x33505d(0x2eb)](),super[_0x33505d(0x36f)]();}['_draw'](_0x4f3f09){const _0x2de55b=_0x34ca81;let _0x4e4b9a=this['_color'],_0x4842a6=this[_0x2de55b(0x2a6)];if(this['_highlight']&&!this[_0x2de55b(0x1d1)]&&(_0x4e4b9a=this[_0x2de55b(0x329)](this[_0x2de55b(0x214)]),_0x4842a6=this[_0x2de55b(0x2a6)]?this[_0x2de55b(0x329)](this[_0x2de55b(0x2a6)]):void 0x0),_0x8e87f9['drawWith'](_0x4f3f09,{'width':this['width'],'height':this['height'],'strokeWidth':this[_0x2de55b(0x38d)]||1.5,'stroke':_0x4e4b9a,'evented':!0x1,'fill':_0x4842a6}),this['_hovered']||this[_0x2de55b(0x282)]){var _0x36cd77;_0x4f3f09[_0x2de55b(0x373)](),_0x4f3f09[_0x2de55b(0x344)](0x1,0x0,0x0,0x1,this[_0x2de55b(0x2b2)],(this['_labelPosition']===_0x2de55b(0x1d6)?0x0:-0x14)+((_0x36cd77=this[_0x2de55b(0x2ca)])==null?0x0:_0x36cd77)),hn[_0x2de55b(0x300)](_0x4f3f09,{'text':this[_0x2de55b(0x36c)],'color':_0x4e4b9a}),_0x4f3f09[_0x2de55b(0x20b)]();}}[_0x34ca81(0x329)](_0x242055){const _0x10cbc4=_0x34ca81;return _0x242055['startsWith']('#')?_0x10cbc4(0x297)+Number['parseInt'](_0x242055[_0x10cbc4(0x277)](0x1,0x3),0x10)+',\x20'+Number[_0x10cbc4(0x3ab)](_0x242055[_0x10cbc4(0x277)](0x3,0x5),0x10)+',\x20'+Number[_0x10cbc4(0x3ab)](_0x242055['slice'](0x5,0x7),0x10)+_0x10cbc4(0x35b):_0x242055['startsWith'](_0x10cbc4(0x23d))?_0x242055[_0x10cbc4(0x1ff)](/[\d.]+\)$/g,_0x10cbc4(0x211)):_0x242055[_0x10cbc4(0x2b6)](_0x10cbc4(0x1e5))?_0x242055[_0x10cbc4(0x1ff)](_0x10cbc4(0x1e5),'rgba')['replace'](')',_0x10cbc4(0x35b)):_0x242055;}};let bn=class extends _0x2b7d41{constructor(_0x54da28,_0x21b3c2,_0x2ee2af,_0x31d6b1){const _0x5a5e77=_0x34ca81;super(),this['_context']=_0x54da28,this[_0x5a5e77(0x28d)]=_0x21b3c2,this[_0x5a5e77(0x2fc)]=_0x2ee2af,this[_0x5a5e77(0x234)]=_0x31d6b1,G(this,'_cursors',new Set()),G(this,'_lastPointer',null),G(this,_0x5a5e77(0x275),null),this[_0x5a5e77(0x1f9)]();}[_0x34ca81(0x1f9)](){const _0x3fdb0b=_0x34ca81;this[_0x3fdb0b(0x28d)][_0x3fdb0b(0x3db)]['pipe'](_0x222e7e(this[_0x3fdb0b(0x37d)]),_0xfce12c(_0x5c9186=>{const _0x3d809b=_0x3fdb0b;if(_0x5c9186){let _0xb1df4c=_0x5c9186[_0x3d809b(0x37e)];return _0x60b8ce(this[_0x3d809b(0x2fc)][_0x3d809b(0x2a8)](this[_0x3d809b(0x2e4)][_0x3d809b(0x22c)]),this[_0x3d809b(0x234)]['currentTheme$'])['pipe'](_0x300ed6(([_0x4f34f3,_0x449590])=>{const _0x47a063=_0x3d809b;let _0xad50f0=new Map();return _0x4f34f3[_0x47a063(0x302)]((_0x11b2ef,_0x43d63b)=>{const _0xdfa78d=_0x47a063;if(_0x11b2ef[_0xdfa78d(0x326)]===_0xb1df4c){let _0x1bf7e2={..._0x11b2ef};_0x1bf7e2['color']=this[_0xdfa78d(0x234)][_0xdfa78d(0x30f)](_0x11b2ef[_0xdfa78d(0x1f2)]),_0xad50f0['set'](_0x43d63b,_0x1bf7e2);}}),{'skeleton':_0x5c9186,'cursors':_0xad50f0};}));}return _0x3f864b({'skeleton':null,'cursors':new Map()});}))[_0x3fdb0b(0x3d0)](({skeleton:_0x30b014,cursors:_0x379fcf})=>{const _0x58c9f1=_0x3fdb0b;this[_0x58c9f1(0x1de)](),_0x30b014&&this['_updateCollabCursors'](_0x30b014,_0x379fcf);}),this['disposeWithMe'](this[_0x3fdb0b(0x28d)]['currentSkeleton$'][_0x3fdb0b(0x25a)](_0x222e7e(this[_0x3fdb0b(0x37d)]))[_0x3fdb0b(0x3d0)](_0x4dced1=>{const _0x5ec7a6=_0x3fdb0b;var _0x378884;if(_0x4dced1==null)return;(_0x378884=this[_0x5ec7a6(0x275)])==null||_0x378884[_0x5ec7a6(0x337)](),this[_0x5ec7a6(0x275)]=null;let {skeleton:_0x249cf8}=_0x4dced1,{scene:_0xba713a}=this[_0x5ec7a6(0x2e4)];this[_0x5ec7a6(0x275)]=_0xba713a[_0x5ec7a6(0x212)]['subscribeEvent'](_0x239f1b(_0x1d127b=>{const _0x37856c=_0x5ec7a6;var _0x1b0b93,_0x5098c2;let {offsetX:_0x3047f7,offsetY:_0x4538fb}=_0x1d127b,{x:_0x1d084a,y:_0x1e60b8}=_0xba713a[_0x37856c(0x377)](_0x38dae9[_0x37856c(0x397)]([_0x3047f7,_0x4538fb])),{scaleX:_0x4db300,scaleY:_0x1a857e}=_0xba713a['getAncestorScale'](),_0x1288a3=_0xba713a[_0x37856c(0x359)](_0x281344['VIEW_MAIN']),_0x20c136=_0xba713a['getVpScrollXYInfoByPosToVp'](_0x38dae9[_0x37856c(0x397)]([_0x1d084a,_0x1e60b8]),_0x1288a3),_0x3d8ba7=_0x249cf8['getCellPositionByOffset'](_0x3047f7,_0x4538fb,_0x4db300,_0x1a857e,_0x20c136);((_0x1b0b93=this[_0x37856c(0x263)])==null?void 0x0:_0x1b0b93['column'])===_0x3d8ba7['column']&&((_0x5098c2=this[_0x37856c(0x263)])==null?void 0x0:_0x5098c2[_0x37856c(0x260)])===_0x3d8ba7['row']||this['_cursors'][_0x37856c(0x302)](_0x3b7326=>{const _0x448745=_0x37856c;_0x3b7326[_0x448745(0x2d4)](_0x3d8ba7);});},0x64));})),this[_0x3fdb0b(0x352)](_0x5bed57(()=>{const _0x545ae1=_0x3fdb0b;var _0x1b4450;(_0x1b4450=this[_0x545ae1(0x275)])==null||_0x1b4450[_0x545ae1(0x337)](),this[_0x545ae1(0x275)]=null;}));}[_0x34ca81(0x1fb)](_0x264587,_0x5255d3){const _0x3360a0=_0x34ca81;let _0x498e62=this[_0x3360a0(0x28d)]['getCurrentSkeleton']();if(!_0x498e62)return;let _0x1127a0=this['_getSheetObject']();if(!_0x1127a0)return;this['_cursors'][_0x3360a0(0x302)](_0x7de5a2=>{const _0x5127be=_0x3360a0;_0x7de5a2[_0x5127be(0x202)]();});let {scene:_0x554c40}=_0x1127a0,_0x5997bf=xn(Array[_0x3360a0(0x3ac)](_0x5255d3[_0x3360a0(0x371)]()))['map'](_0x5248f9=>{const _0x5a0393=_0x3360a0;let {color:_0x22aae8,range:_0x4c0463,name:_0x460bea,selection:_0x172531,sheetID:_0x1c96ae}=_0x5248f9,{startColumn:_0x501c53,startRow:_0x54e222,endColumn:_0x3c75a2,endRow:_0x5dd091}=_0x4c0463,_0x40c54f=_0x235d37(_0x54e222,_0x501c53,_0x554c40,_0x498e62),_0x37bd26=_0x235d37(_0x5dd091,_0x3c75a2,_0x554c40,_0x498e62),{columnHeaderHeightAndMarginTop:_0x2ab247}=_0x498e62,{startX:_0x1a060b,startY:_0x1da417}=_0x40c54f,{endX:_0x52e204,endY:_0x3f77bf}=_0x37bd26,_0x54ff1e=_0x52e204-_0x1a060b,_0x392f62=_0x3f77bf-_0x1da417;return new yn(_0x460bea,{'labelPosition':_0x1da417-_0x2ab247>=0x14?_0x5a0393(0x294):_0x5a0393(0x1d6),'sheetID':_0x1c96ae,'range':_0x4c0463,'color':_0x22aae8,'name':_0x460bea,'selection':_0x172531,'left':_0x1a060b,'top':_0x1da417,'width':_0x54ff1e,'height':_0x392f62,'evented':!0x1,'zIndex':0x1389});});_0x554c40[_0x3360a0(0x23a)](_0x5997bf,0x1),this['_cursors']=new Set(_0x5997bf);}[_0x34ca81(0x1de)](){const _0x5581e=_0x34ca81;var _0x5da30f;(_0x5da30f=this[_0x5581e(0x3b9)])==null||_0x5da30f[_0x5581e(0x302)](_0x185b1d=>_0x185b1d[_0x5581e(0x36f)]());}[_0x34ca81(0x3b6)](){const _0x55d0f5=_0x34ca81;return _0x384d79(this[_0x55d0f5(0x2e4)][_0x55d0f5(0x393)],this[_0x55d0f5(0x2e4)]);}};bn=q([K(0x1,_0x60904d(_0x25556e)),K(0x2,_0x60904d(X)),K(0x3,_0x60904d(_0x1c5bc3))],bn);function xn(_0x58bb75){const _0x59b5e6=_0x34ca81;let _0x3e6263=new Map();return _0x58bb75[_0x59b5e6(0x302)](_0x2960ac=>{const _0x5d530a=_0x59b5e6;if(_0x3e6263[_0x5d530a(0x33f)](_0x2960ac['selection'])){let _0x2c3242=_0x3e6263['get'](_0x2960ac[_0x5d530a(0x2f7)]);_0x2c3242[_0x5d530a(0x285)]+=',\x20'+_0x2960ac[_0x5d530a(0x285)];}else _0x3e6263[_0x5d530a(0x2f0)](_0x2960ac[_0x5d530a(0x2f7)],_0x2960ac);}),Array['from'](_0x3e6263[_0x59b5e6(0x371)]());}let Z=class extends _0x211e13{constructor(_0x45e3b5,_0x29642c,_0x329603,_0x3e3a6e,_0xf9d400,_0x49a801){const _0x13cfc6=_0x34ca81;super(),this[_0x13cfc6(0x358)]=_0x45e3b5,this['_localCacheService']=_0x29642c,this[_0x13cfc6(0x1f5)]=_0x329603,this[_0x13cfc6(0x256)]=_0x3e3a6e,this[_0x13cfc6(0x1f8)]=_0xf9d400,this[_0x13cfc6(0x2be)]=_0x49a801,this[_0x13cfc6(0x1ed)](),this[_0x13cfc6(0x2b1)]();}[_0x34ca81(0x1ed)](){const _0x2be34c=_0x34ca81;this[_0x2be34c(0x352)](this[_0x2be34c(0x358)][_0x2be34c(0x29c)](()=>{const _0x41cde4=_0x2be34c;if(this[_0x41cde4(0x303)]['saveTaskMap']['size'])return this['_localeService']['t'](_0x41cde4(0x2ba));}));}['_initEvent'](){const _0x5bf4a9=_0x34ca81;this[_0x5bf4a9(0x352)](this[_0x5bf4a9(0x1f5)][_0x5bf4a9(0x381)][_0x5bf4a9(0x3d0)](_0xc612=>{const _0x8a51e5=_0x5bf4a9;_0xc612['id']===_0x4de33a[_0x8a51e5(0x2f6)]&&this[_0x8a51e5(0x256)][_0x8a51e5(0x2ea)]({'type':_0x431ac8[_0x8a51e5(0x28c)],'content':this['_localeService']['t']('collaboration-client-ui.collaboration.single-unit.warning')}),_0xc612['id']===_0x4de33a[_0x8a51e5(0x366)]&&this['_messageService'][_0x8a51e5(0x2ea)]({'type':_0x431ac8['Warning'],'content':this['_localeService']['t']('collaboration-client-ui.collaboration.closeRoom')}),_0xc612['id']===_0x4de33a[_0x8a51e5(0x348)]&&this['_notificationService'][_0x8a51e5(0x2ea)]({'title':this[_0x8a51e5(0x2be)]['t'](_0x8a51e5(0x37b)),'content':this['_localeService']['t']('collaboration-client-ui.permission.content'),'type':_0x8a51e5(0x350),'duration':0x0}),_0xc612['id']===_0x4de33a[_0x8a51e5(0x30d)]&&this[_0x8a51e5(0x256)][_0x8a51e5(0x2ea)]({'type':_0x431ac8[_0x8a51e5(0x29d)],'content':this['_localeService']['t'](_0x8a51e5(0x2aa))+'('+_0xc612['data']+')'}),_0xc612['id']===_0x4de33a['JOIN_ROOM_FAILED']&&this[_0x8a51e5(0x256)]['show']({'type':_0x431ac8[_0x8a51e5(0x28c)],'content':this[_0x8a51e5(0x2be)]['t'](_0xc612['data']||'')}),_0xc612['id']===_0x4de33a[_0x8a51e5(0x29a)]&&this[_0x8a51e5(0x256)]['show']({'type':_0x431ac8[_0x8a51e5(0x28c)],'content':this[_0x8a51e5(0x2be)]['t'](_0x8a51e5(0x399))}),_0xc612['id']===_0x4de33a[_0x8a51e5(0x22e)]&&this[_0x8a51e5(0x256)][_0x8a51e5(0x2ea)]({'type':_0x431ac8[_0x8a51e5(0x29d)],'content':this['_localeService']['t'](_0x8a51e5(0x1d9))}),_0xc612['id']===_0x4de33a[_0x8a51e5(0x34a)]&&this[_0x8a51e5(0x256)][_0x8a51e5(0x2ea)]({'type':_0x431ac8[_0x8a51e5(0x29d)],'content':this[_0x8a51e5(0x2be)]['t']('collaboration-client-ui.session.collaboration-timeout')});}));}};Z=q([K(0x0,_0x51ae89),K(0x1,_0x47d162),K(0x2,_0x60904d(_0x3a8b82)),K(0x3,_0xf88f0d),K(0x4,_0x36464b),K(0x5,_0x60904d(_0x182dcb))],Z);const Sn={};let Cn=class{constructor(_0x1e40f7,_0x31dc4b){const _0x523eca=_0x34ca81;this[_0x523eca(0x242)]=_0x1e40f7,this[_0x523eca(0x241)]=_0x31dc4b;}['transformIMECache'](_0x5d1868){const _0x19d72f=_0x34ca81;this[_0x19d72f(0x24d)](_0x5d1868),this['_transformPreviousActiveRange'](_0x5d1868);}[_0x34ca81(0x232)](_0x14333d){const _0x2c8475=_0x34ca81;let {unitID:_0x187d40}=_0x14333d,{redoCache:_0x1345ac}=this[_0x2c8475(0x241)][_0x2c8475(0x2f3)](_0x187d40)[_0x2c8475(0x291)](_0x1b326c)['getUndoRedoMutationParamsCache']();if(_0x1345ac[_0x2c8475(0x315)]===0x0)return _0x14333d;let _0x15d8e2=_0x41a684['deepClone'](_0x14333d['mutations'][0x0]);for(let _0x4a4c1c=0x0;_0x4a4c1c<_0x1345ac[_0x2c8475(0x315)];_0x4a4c1c++){let _0x16c88d={'id':_0x2c8475(0x389),'params':{..._0x1345ac[_0x4a4c1c]}},_0x36a750=this['_transformService'][_0x2c8475(0x1f3)](_0x15d8e2,_0x16c88d,!0x1);if(_0x305af2(_0x36a750))throw _0x36a750[_0x2c8475(0x350)];_0x15d8e2=_0x36a750[_0x2c8475(0x310)];}return{..._0x41a684[_0x2c8475(0x227)](_0x14333d),'mutations':[_0x15d8e2]};}[_0x34ca81(0x24d)](_0x221aba){const _0xd3c23b=_0x34ca81;let {unitID:_0x56ab73}=_0x221aba,_0x4e6f1f=this[_0xd3c23b(0x241)][_0xd3c23b(0x2f3)](_0x56ab73)[_0xd3c23b(0x291)](_0x1b326c),{undoCache:_0x5749e2,redoCache:_0x1be5b9}=_0x4e6f1f[_0xd3c23b(0x36d)]();if(_0x5749e2[_0xd3c23b(0x315)]===0x0||_0x1be5b9[_0xd3c23b(0x315)]===0x0)return;let _0x429438=[],_0x5d0558=[],_0x16b970=_0x41a684[_0xd3c23b(0x227)](_0x221aba[_0xd3c23b(0x2b3)][0x0]),_0x456a80=_0x41a684[_0xd3c23b(0x227)](_0x221aba['mutations'][0x0]);for(let _0xd1fbc7=_0x5749e2['length']-0x1;_0xd1fbc7>=0x0;_0xd1fbc7--){let _0x6cfae8={'id':_0xd3c23b(0x389),'params':{..._0x5749e2[_0xd1fbc7]}},_0x92e5d0={'id':'doc.mutation.rich-text-editing','params':{..._0x1be5b9[_0xd1fbc7]}},_0x272196=this[_0xd3c23b(0x242)][_0xd3c23b(0x1f3)](_0x16b970,_0x6cfae8,!0x1),_0x5dea5c=this['_transformService'][_0xd3c23b(0x1f3)](_0x456a80,_0x92e5d0,!0x1);if(_0x305af2(_0x272196))throw _0x272196[_0xd3c23b(0x350)];if(_0x305af2(_0x5dea5c))throw _0x5dea5c[_0xd3c23b(0x350)];_0x429438[_0xd3c23b(0x27e)](_0x272196[_0xd3c23b(0x22f)][_0xd3c23b(0x230)]),_0x5d0558[_0xd3c23b(0x27e)](_0x5dea5c['m2Prime']['params']),_0x16b970=_0x272196[_0xd3c23b(0x310)],_0x456a80=_0x5dea5c[_0xd3c23b(0x310)];}_0x4e6f1f[_0xd3c23b(0x3b5)]({'undoCache':_0x429438,'redoCache':_0x5d0558});}['_transformPreviousActiveRange'](_0x258084){const _0x34a0f9=_0x34ca81;let {unitID:_0x2733e7}=_0x258084,_0x25e06b=this[_0x34a0f9(0x241)][_0x34a0f9(0x2f3)](_0x2733e7)[_0x34a0f9(0x291)](_0x1b326c),_0x454fc4=_0x25e06b['getActiveRange']();if(_0x454fc4==null)return;let _0x194246=[{'id':_0x34a0f9(0x389),'params':{'unitId':_0x258084['unitID'],'actions':null,'textRanges':[_0x454fc4]}}],_0x5f0540=this['_transformService'][_0x34a0f9(0x29b)](_0x258084,_0x194246);if(!_0x456dac(_0x5f0540))throw _0x5f0540[_0x34a0f9(0x350)];let _0x2a7448=_0x5f0540['m2Prime'][0x0][_0x34a0f9(0x230)][_0x34a0f9(0x3c3)];Array['isArray'](_0x2a7448)&&_0x2a7448['length']&&_0x25e06b[_0x34a0f9(0x273)](_0x2a7448[0x0]);}};Cn=q([K(0x0,_0x488ec3),K(0x1,_0x55d330)],Cn);let wn=class{constructor(_0x46bb9f,_0x12da93,_0x23c747){const _0x150d95=_0x34ca81;this[_0x150d95(0x34e)]=_0x46bb9f,this[_0x150d95(0x242)]=_0x12da93,this['_docStateChangeManagerService']=_0x23c747;}[_0x34ca81(0x1c3)](_0x47b747){const _0x5d7901=_0x34ca81;this[_0x5d7901(0x322)](_0x47b747);}[_0x34ca81(0x232)](_0x371555){const _0x25f4b9=_0x34ca81;let {unitID:_0x2c680d}=_0x371555,{collaboration:_0xbc8b96}=this['_docStateChangeManagerService']['getStateCache'](_0x2c680d);if(_0xbc8b96[_0x25f4b9(0x315)]===0x0)return _0x371555;let _0x2e9ec1=_0x41a684[_0x25f4b9(0x227)](_0x371555[_0x25f4b9(0x2b3)][0x0]);for(let _0x165435=0x0;_0x165435<_0xbc8b96['length'];_0x165435++){let _0x5a5f11={'id':_0x25f4b9(0x389),'params':{'unitId':_0xbc8b96[_0x165435]['unitId'],..._0xbc8b96[_0x165435][_0x25f4b9(0x355)]}},_0x1d3c22=this['_transformService'][_0x25f4b9(0x1f3)](_0x2e9ec1,_0x5a5f11,!0x1);if(_0x305af2(_0x1d3c22))throw _0x1d3c22[_0x25f4b9(0x350)];_0x2e9ec1=_0x1d3c22[_0x25f4b9(0x310)];}return{..._0x41a684['deepClone'](_0x371555),'mutations':[_0x2e9ec1]};}['_transformHistoryAndStateStack'](_0xa2ae8){const _0x37011c=_0x34ca81;let {unitID:_0x27f1ee}=_0xa2ae8,{history:_0x2a31e1,collaboration:_0x5b172d}=this[_0x37011c(0x252)][_0x37011c(0x370)](_0x27f1ee);if(_0x2a31e1['length']===0x0&&_0x5b172d[_0x37011c(0x315)]===0x0)return;let _0x4608fc=[],_0x474bb3=[],_0x64bf0c=_0x41a684[_0x37011c(0x227)](_0xa2ae8[_0x37011c(0x2b3)][0x0]),_0x1599ad=_0x41a684[_0x37011c(0x227)](_0xa2ae8[_0x37011c(0x2b3)][0x0]);for(let _0x4fe9b2=_0x2a31e1[_0x37011c(0x315)]-0x1;_0x4fe9b2>=0x0;_0x4fe9b2--){let _0x3f5177={'id':_0x37011c(0x389),'params':{'unitId':_0x2a31e1[_0x4fe9b2][_0x37011c(0x22c)],..._0x2a31e1[_0x4fe9b2][_0x37011c(0x2e2)]}},_0x2e516b={'id':_0x37011c(0x389),'params':{'unitId':_0x2a31e1[_0x4fe9b2]['unitId'],..._0x2a31e1[_0x4fe9b2][_0x37011c(0x355)]}},_0x40ef08=this[_0x37011c(0x242)][_0x37011c(0x1f3)](_0x64bf0c,_0x3f5177,!0x1),_0xffc6fc=this[_0x37011c(0x242)][_0x37011c(0x1f3)](_0x1599ad,_0x2e516b,!0x1);if(_0x305af2(_0x40ef08))throw _0x40ef08[_0x37011c(0x350)];if(_0x305af2(_0xffc6fc))throw _0xffc6fc[_0x37011c(0x350)];_0x4608fc[_0x37011c(0x27e)]({..._0x2a31e1[_0x4fe9b2],'undoState':_0x40ef08['m2Prime']['params'],'redoState':_0xffc6fc['m2Prime'][_0x37011c(0x230)]}),_0x64bf0c=_0x40ef08[_0x37011c(0x310)],_0x1599ad=_0xffc6fc['m1Prime'];}_0x64bf0c=_0x41a684['deepClone'](_0xa2ae8[_0x37011c(0x2b3)][0x0]),_0x1599ad=_0x41a684[_0x37011c(0x227)](_0xa2ae8[_0x37011c(0x2b3)][0x0]);for(let _0x5d0d0f=_0x5b172d[_0x37011c(0x315)]-0x1;_0x5d0d0f>=0x0;_0x5d0d0f--){let _0x1a1b5e={'id':_0x37011c(0x389),'params':{'unitId':_0x5b172d[_0x5d0d0f][_0x37011c(0x22c)],..._0x5b172d[_0x5d0d0f][_0x37011c(0x2e2)]}},_0x23ec53={'id':_0x37011c(0x389),'params':{'unitId':_0x5b172d[_0x5d0d0f][_0x37011c(0x22c)],..._0x5b172d[_0x5d0d0f][_0x37011c(0x355)]}},_0x331d86=this[_0x37011c(0x242)][_0x37011c(0x1f3)](_0x64bf0c,_0x1a1b5e,!0x1),_0x38679f=this['_transformService'][_0x37011c(0x1f3)](_0x1599ad,_0x23ec53,!0x1);if(_0x305af2(_0x331d86))throw _0x331d86['error'];if(_0x305af2(_0x38679f))throw _0x38679f[_0x37011c(0x350)];_0x474bb3['unshift']({..._0x5b172d[_0x5d0d0f],'undoState':_0x331d86[_0x37011c(0x22f)]['params'],'redoState':_0x38679f[_0x37011c(0x22f)][_0x37011c(0x230)]}),_0x64bf0c=_0x331d86[_0x37011c(0x310)],_0x1599ad=_0x38679f[_0x37011c(0x310)];}this['_docStateChangeManagerService']['setStateCache'](_0x27f1ee,{'history':_0x4608fc,'collaboration':_0x474bb3});}};wn=q([K(0x0,_0x60904d(_0x4227ab)),K(0x1,_0x488ec3),K(0x2,_0x60904d(_0x121e78))],wn);let Tn=class{constructor(_0x518eed,_0x3c0741){const _0x1b64b6=_0x34ca81;this[_0x1b64b6(0x34e)]=_0x518eed,this[_0x1b64b6(0x242)]=_0x3c0741;}[_0x34ca81(0x231)](_0x5a9a1e){const _0x1eae24=_0x34ca81;var _0x114030;let _0x7606b4=this['_injector'][_0x1eae24(0x21a)](_0x361ca2),_0x58e23d=(_0x114030=_0x7606b4[_0x1eae24(0x2af)]())==null?[]:_0x114030;if(_0x58e23d['length']===0x0)return;let _0x4d0857=_0x5a9a1e[_0x1eae24(0x32a)],_0xebd565=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4d0857,'actions':null,'textRanges':_0x58e23d}}],_0x27328b=this[_0x1eae24(0x242)][_0x1eae24(0x29b)](_0x5a9a1e,_0xebd565);if(!_0x456dac(_0x27328b))throw _0x27328b[_0x1eae24(0x350)];let _0x3f4128=_0x27328b[_0x1eae24(0x22f)][0x0][_0x1eae24(0x230)][_0x1eae24(0x3c3)];Array[_0x1eae24(0x38b)](_0x3f4128)&&_0x3f4128[_0x1eae24(0x315)]&&_0x7606b4[_0x1eae24(0x305)](_0x3f4128,{'unitId':_0x4d0857,'subUnitId':_0x4d0857},!0x1);}};Tn=q([K(0x0,_0x60904d(_0x4227ab)),K(0x1,_0x488ec3)],Tn);let En=class extends _0x211e13{constructor(_0x3368f5,_0x2b245b,_0x114e6f,_0x34c795,_0x21ee2a,_0x557ca1,_0x3c2c5c,_0x43a9bf){const _0x5882f2=_0x34ca81;super(),this[_0x5882f2(0x252)]=_0x3368f5,this[_0x5882f2(0x28f)]=_0x2b245b,this[_0x5882f2(0x309)]=_0x114e6f,this['_docTransformStateCacheService']=_0x34c795,this[_0x5882f2(0x3dc)]=_0x21ee2a,this[_0x5882f2(0x271)]=_0x557ca1,this[_0x5882f2(0x256)]=_0x3c2c5c,this[_0x5882f2(0x2be)]=_0x43a9bf,G(this,'_status$',new _0x318671(_0x14f6db[_0x5882f2(0x245)])),this['_initEntityListener']();}[_0x34ca81(0x31b)](){const _0x40cab7=_0x34ca81;this['disposeWithMe'](this[_0x40cab7(0x28f)][_0x40cab7(0x28e)]['subscribe'](_0x1843f6=>{const _0x1619e6=_0x40cab7;let _0x1d63e1=this[_0x1619e6(0x252)]['docStateChange$'][_0x1619e6(0x3d0)](_0x4570ad=>{const _0x38392b=_0x1619e6;if(_0x4570ad==null)return;let {unitId:_0x3693b8,redoState:_0x13e035,commandId:_0x30a173}=_0x4570ad;if(_0x3693b8!==_0x1843f6['unitID'])return;let _0x377ec5={'id':_0x30a173,'type':_0x39378d[_0x38392b(0x23b)],'params':{'unitId':_0x3693b8,'actions':_0x13e035[_0x38392b(0x28a)],'textRanges':null}};_0x1843f6[_0x38392b(0x209)](_0x377ec5);});_0x1843f6['disposeWithMe'](_0x1d63e1),_0x1843f6 instanceof _0x3e20f8&&_0x1843f6[_0x1619e6(0x296)]({'onTransformIME':_0x2edaea=>this['_docTransformIMECacheService'][_0x1619e6(0x1e9)](_0x2edaea),'onTransformState':_0x4b0136=>this[_0x1619e6(0x3c9)]['transformStateCache'](_0x4b0136),'onTransformSelections':_0x1c6597=>this[_0x1619e6(0x3dc)][_0x1619e6(0x231)](_0x1c6597),'onSyncEditingCollabCursor':_0x4d6055=>this['_docSyncEditingCollabCursorService']['syncEditingCollabCursor'](_0x4d6055),'onTransformRemoteChangesetByIMECache':_0x1cd9a3=>this['_docTransformIMECacheService'][_0x1619e6(0x232)](_0x1cd9a3),'onTransformRemoteChangesetByStateCache':_0x749889=>this['_docTransformStateCacheService'][_0x1619e6(0x232)](_0x749889)});}));}};En=q([K(0x0,_0x60904d(_0x121e78)),K(0x1,_0x60904d(_0xd54710)),K(0x2,_0x60904d(Cn)),K(0x3,_0x60904d(wn)),K(0x4,_0x60904d(Tn)),K(0x5,_0x60904d(un)),K(0x6,_0xf88f0d),K(0x7,_0x60904d(_0x182dcb))],En);let Dn=class extends _0x211e13{constructor(_0x803fe4,_0x1dcf57,_0x56a9b4,_0x15e5d2){const _0x53b817=_0x34ca81;super(),this[_0x53b817(0x34e)]=_0x803fe4,this[_0x53b817(0x254)]=_0x1dcf57,this[_0x53b817(0x379)]=_0x56a9b4,this[_0x53b817(0x3aa)]=_0x15e5d2,G(this,_0x53b817(0x346),void 0x0),this[_0x53b817(0x1f9)]();}[_0x34ca81(0x1f9)](){const _0xc1116c=_0x34ca81;this['_initWindowErrorListener'](),this[_0xc1116c(0x340)](),this[_0xc1116c(0x3a8)](),this[_0xc1116c(0x30b)]();}[_0x34ca81(0x30b)](){const _0x39a296=_0x34ca81;this[_0x39a296(0x352)](this['_collaborationSessionService'][_0x39a296(0x2f9)][_0x39a296(0x3d0)](_0x323987=>{const _0x4f31fa=_0x39a296;this[_0x4f31fa(0x346)]=_0x323987==null?void 0x0:_0x323987[_0x4f31fa(0x375)];}));}['_initWindowErrorListener'](){const _0x420048=_0x34ca81;let _0x2d1dc8=_0x351684=>{const _0x361b8e=_0x1a2a;var _0x231909;this['_uploadLog'](_0x361b8e(0x350),'[Window\x20Error]:\x20'+_0x351684['message']+_0x361b8e(0x2cd)+_0x351684[_0x361b8e(0x2ed)]+':'+_0x351684[_0x361b8e(0x27d)]+':'+_0x351684[_0x361b8e(0x384)]+'\x0a'+(((_0x231909=_0x351684[_0x361b8e(0x350)])==null?void 0x0:_0x231909[_0x361b8e(0x220)])||''));};window[_0x420048(0x2b7)](_0x420048(0x350),_0x2d1dc8),this[_0x420048(0x352)](()=>{const _0x358a30=_0x420048;window[_0x358a30(0x1e8)](_0x358a30(0x350),_0x2d1dc8);});}['_initUnhandledRejectionListener'](){const _0x3ed108=_0x34ca81;let _0x2c5c11=_0x3efb02=>{const _0x5532da=_0x1a2a;this[_0x5532da(0x32d)](_0x5532da(0x350),'[Unhandled\x20Rejection]:\x20'+_0x3efb02[_0x5532da(0x247)]);};window[_0x3ed108(0x2b7)](_0x3ed108(0x224),_0x2c5c11),this[_0x3ed108(0x352)](()=>{const _0xf5da90=_0x3ed108;window[_0xf5da90(0x1e8)]('unhandledrejection',_0x2c5c11);});}[_0x34ca81(0x3a8)](){const _0x5cb96a=_0x34ca81;let _0x48a057=this[_0x5cb96a(0x379)][_0x5cb96a(0x350)][_0x5cb96a(0x1da)](this[_0x5cb96a(0x379)]);this[_0x5cb96a(0x379)][_0x5cb96a(0x350)]=(..._0x2830cc)=>{const _0x33a38f=_0x5cb96a;let _0x4bbecc=_0x2830cc['map'](_0x34ccff=>_0x34ccff instanceof Error?_0x34ccff[_0x33a38f(0x37c)]+'\x0a'+_0x34ccff['stack']:String(_0x34ccff))[_0x33a38f(0x327)]('\x20');this[_0x33a38f(0x32d)]('error',_0x33a38f(0x3da)+_0x4bbecc),_0x48a057(..._0x2830cc);},this[_0x5cb96a(0x352)](()=>{const _0x146ac6=_0x5cb96a;this[_0x146ac6(0x379)][_0x146ac6(0x350)]=_0x48a057;});}[_0x34ca81(0x32d)](_0x289a6c,_0x2ecba8){const _0x5251c3=_0x34ca81;try{let _0x3deb9a={'userId':this[_0x5251c3(0x346)],'logLabel':_0x289a6c,'content':_0x2ecba8};this[_0x5251c3(0x254)][_0x5251c3(0x3c5)](_0x5251c3(0x330),{'body':_0x3deb9a})[_0x5251c3(0x262)](()=>{});}catch{}}};Dn=q([K(0x0,_0x60904d(_0x4227ab)),K(0x1,_0x60904d(_0x286902)),K(0x2,_0x3240ed),K(0x3,_0x60904d(_0x1c8681))],Dn);function On(_0x1c47ba){const _0x49f032=_0x34ca81;var _0xec08e9,_0x5b76b8;let _0x4b34bb=(_0xec08e9=_0x1c47ba[_0x49f032(0x2cc)])==null?void 0x0:_0xec08e9['stage'],_0x49fc86=((_0x5b76b8=_0x1c47ba[_0x49f032(0x2cc)])==null?void 0x0:_0x5b76b8[_0x49f032(0x356)])||0x0;return _0x4b34bb===_0x3d1439['START_CALCULATION']&&_0x49fc86>0x0;}function _0x38f5(){const _0x5e5b84=['preventDefault','76112QCSRDo','NOT_COLLAB','OTHER_CLIENTS_EDITING','reason','ranges','_initCommandExecutedListener','ticket','_updateLocalCursor','RECT','_transformUndoRedoStack','_getAnchorBounding','map','InsertRowCommandId','getSheetId','_docStateChangeManagerService','endColumn','_httpService','300286TEeFBg','_messageService','enableLocalCache','AWAITING_WITH_PENDING','cursorInfo','pipe','_refreshCollabCursors','_scheduleHeartbeat','_saveTaskMap','_hasFormulaInDirtyRanges','true','row','SYNCED','catch','_lastPointer','maxFormulaLimit','univer-text-orange-500','delete','key','_entities','backgroundColor','blue.400','_send','onCommandExecuted','_session','hide','saveTaskMap','_colorAssignService','_docSyncEditingCollabCursorService','_registerDependencies','setActiveRange','getAllUnitsForType','_pointerMoveDisposable','_dataLoaderService','slice','_saveCache','_scheduleClearOtherTimer','subunit','setTimeout','onPointerEnter$','lineno','unshift','_commandService','getUnhiddenWorksheets','_startBlinking','_showText','endRow','_currentUsage','name','getSkeleton','runId','constructor','location','actions','_onCursorDelete','Warning','_sheetSkeletonManagerService','entityInit$','_collaborationController','_setupSubUnitSync','with','getConfig','univer-m-0\x20univer-p-0','top','addClipboardHook','addHandlerCallback','rgba(','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','reconnect','SOCKET_FAILED_RETRY','transformMutationsWithChangeset','registerBeforeClose','Error','disposeUnit','_draw','createSocket','ONLINE','_initDependencies','moveTo','InsertRangeMoveRightCommandId','_hover','_backgroundColor','dirtyRanges','getCollabCursors$','_getMergeRange','collaboration-client-ui.collaboration.closeRoom','collaboration-client-ui.formula.calculation.waiting','clearTimeout','clickable','OFFLINE','getDocRanges','getParam','_initEvent','width','mutations','_handleLeaveEvent','init','startsWith','addEventListener','UNIVER_DOC','storage','collaboration-client-ui.collaboration.offline-data-not-saved','[RemoteUniscriptService]:\x20no\x20focused\x20unit','code','getTypeOfUnitDisposed$','_localeService','executionId','_config','toString','getTypeOfUnitAdded$','type','status$','button','clearInterval','range','_anchorDot','addObject','_offsetY','univer-inline-flex\x20univer-items-center\x20univer-justify-center','stageInfo','\x20at\x20','toRgbString','_hideTimer','toPrimitive','push','738790LNQbkQ','startRow','onMouseMove','_updateURLWithCurrentState','newValue','getUnitStatus$','symbol','setInterval','_checkAndWaitForCalculationPermission','all','_memberService','_drawAnchor','text','_clearOtherTimers','static','registerRenderModule','undoState','getMemberID','_context','getOffsetConfig','removeParam','_cursor','highlightSecond','source','show','_stopBlinking','then','filename','isEditing','_showGuardMessage','set','invokeId','beginPath','getRenderById','urlChange$','triggerDblclick','OTHER_CLIENT_EDITING','selection','measureText','socket$','_revisionService','getUnitId','_collabCursorController','UNIVER_SHEET','search','_initResize','drawWith','next','forEach','_localCacheService','getOwnPropertyDescriptor','replaceDocRanges','_handleJoinEvent','defineProperty','icon','_docTransformIMECacheService','_unitOnClients','_initUserListener','popstate','CONFLICT','function','getColorFromTheme','m1Prime','univer-flex\x20univer-items-center\x20univer-justify-center','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','DeleteRangeMoveLeftCommandId','MoveRangeCommandId','length','Enter','setItem','lineTo','_registerRenderDependencies','_highlight','_initEntityListener','Failed','_pollingInterval','_unitStatus','replaceState','_setFormulaLimitStatus','RemoveRowCommandId','_transformHistoryAndStateStack','call','data','_scheduleSaving','sheetID','join','_configService','_getLighterColor','unitID','getCellMatrix','641708McZCAY','_uploadLog','_univerInstanceService','editingUnit','/universer-api/frontend/logs','_anchor','Unknown\x20user','_handleHeartbeatEvent','_refRangeService','flatMap','_initStatusListener','unsubscribe','NO_OTHER_CLIENTS_EDITING','_handleEvent','offsetY','_initStatusComponent','getCurrentRevOfUnit','HEADER_MENU','onPointerLeave$','has','_initUnhandledRejectionListener','sessionStatus$','getMember','getRangePointData','transform','history','_memberID','692797tNVVad','PERMISSION_DENIED','exhaustSavingTask','SUBMIT_CHANGESET_TIMEOUT','USERS_LEAVE','_docSkeletonManagerService','executeCommand','_injector','_updateSubUnitFromURLParams','error','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','disposeWithMe','univer-border-none\x20univer-bg-transparent','_syncEditingCollabCursorService','redoState','totalFormulasToCalculate','registerRefRange','_beforeCloseService','getViewport','univer-text-xl\x20univer-transition-colors\x20univer-duration-200',',\x200.2)','beforeCommandExecuted','_online','_render','origin','subUnitId','_instanceService','prototype','startFormulaLimitUrl','getCurrentUnitOfType','UPDATE_CURSOR','CLOSE_ROOM','find','pushState','now','_docSkeleton','_startSheetCollabCursor','_name','getUndoRedoMutationParamsCache','roomMembers','dispose','getStateCache','values','_hovered','save','[CollaborationDataLoaderController]','memberID','wsSessionTicketUrl','getRelativeToViewportCoord','_id','_logService','getUnit','collaboration-client-ui.permission.title','message','dispose$','sheetId','debug','0.25.0','event$','decorate','href','colno','_colorIndex','261jPSsWM','_removeClearOtherTimer','uni.network.url-service','doc.mutation.rich-text-editing','createInstance','isArray','collab-text-anchor-','strokeWidth','_applyCommand','_lastResponseTimestamp','getFocusedUnit','_highlightSecond','transformByState','unit','max','green.600','_onCursorUpdate','FromArray','add','collaboration-client-ui.session.will-retry','univer-h-8\x20univer-w-8\x20univer-rounded-lg','?taskId=','unload','\x20-\x20','syncEditingCollabCursor','#FFF','_getFormulaLimitStatus','getSheetBySheetId','1334604FSdxRI','indicator','object','getUniverSheetInstance','getCurrentSelections','PENDING','_monkeyPatchLogService','size','_collaborationSessionService','parseInt','from','_localStorageService','contains','/universer-api/license/formula/limit/done','engine','complete','hovered','height','_roomMembers$','setUndoRedoMutationParamsCache','_getSheetObject','_checkCalculationAvailable','_scene','_cursors','_urlService','AWAITING','univer-transition-all\x20univer-duration-200','assignAColorForMemberID','tooltipKey','_handleHover','polite','resize','requireSession','textRanges','univer-text-blue-500','post','setConfig','_getSessionTicket','_doCreateSocket','_docTransformStateCacheService','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','setParam','collaboration-client-ui.collabStatus.offline','_docClipboardService','purple.300','status','subscribe','collaboration-client-ui.formula.calculation.started','_clearPolling','loadOfflineData','_drawTextRange','_blinkTimer','_createSocketURL','collaboration-client-ui.config','enableFrontendLog','_assignedColors','[LogService\x20Error]:\x20','currentSkeleton$','_docTransformSelectionsService','whenReady','highlight','_toggleOnline','transformStateCache','_disabled','_collabCursorState$','InsertRangeMoveDownCommandId','stringify','_blinkIntervalTimer','iterator','_maxFormulaLimit','startColumn','roomMembers$','limitInfo','collaboration-client-ui.collabStatus.syncing','application/json','body','_isBlinkVisible','_onRefRangeChange','_selfUnitIDs','_shapes','shift','bottom','...','_cachedData','collaboration-client-ui.session.connection-failed','bind','_status$','FETCH_MISS','_drawRectRange','_removeCollabCursors','onTransformChange$','registerComponent','spin','setAlpha','_document','RemoveColCommandId','rgb','_cursorShapes','eventID','removeEventListener','transformIMECache','span','InsertColCommandId','getAncestorScale','_setupBeforeClosingHandler','_getScale','DeleteRangeMoveUpCommandId','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','split','color','transformMutation','searchParams','_collaborationUIEventService','_entityInit$','onRendered','_notificationService','_init','currentTheme$','_updateCollabCursors','_ensureSubject','evenodd','_collabSessionService','replace','version','_eventUnsubscribe','makeDirty','TEXT','findNodePositionByCharIndex','univer-text-green-500','_labelPosition','_textBubble','2885NMioSb','onLocalMutation','arc','restore','collaboration-client-ui.formula.calculation.unable','min','collab-text-range-','getCurrentTypeOfUnit$','asObservable','0.2)','onPointerMove$','1968isCAUC','_color','string','pulse','collabCursorState$','font','fill','get','_cursorInfo$','_uiPartsService','isActive','setShapeProps','_toggleOffline','stack','_startCalculationLimit','selections','send','unhandledrejection','_taskIds','fillText','deepClone','getActiveSheet','/universer-api/license/formula/limit/status','_startDocCollabCursor','_heartbeatTimer','unitId','getValue','SOCKET_FAILED','m2Prime','params','transformSelections','transformRemoteChangeset','getItem','_themeService','_getSaveTimeout','_initCommandInterceptor','_range','subscribeEvent','black','addObjects','MUTATION','_releaseCalculationLimit','rgba','univer-text-red-500','cursorInfo$','24FcURaO','_renderManagerService','_transformService'];_0x38f5=function(){return _0x5e5b84;};return _0x38f5();}function kn(_0x2efc6c){return _0x2efc6c['functionsExecutedState']===_0x5c7553['SUCCESS'];}let Q=class extends _0x211e13{constructor(_0x7027fb,_0x166f30,_0x54e433,_0x7fdfd6,_0x1dad31,_0x4885d6,_0x3df6f5){const _0x4a36a1=_0x34ca81;super(),this[_0x4a36a1(0x256)]=_0x7027fb,this[_0x4a36a1(0x27f)]=_0x166f30,this['_configService']=_0x54e433,this[_0x4a36a1(0x254)]=_0x7fdfd6,this[_0x4a36a1(0x32e)]=_0x1dad31,this[_0x4a36a1(0x379)]=_0x4885d6,this[_0x4a36a1(0x2be)]=_0x3df6f5,G(this,_0x4a36a1(0x31d),null),G(this,_0x4a36a1(0x1ca),0x0),G(this,'_currentUsage',0x0),G(this,_0x4a36a1(0x225),[]),G(this,'_lastResponseTimestamp',0x0),this[_0x4a36a1(0x236)]();}[_0x34ca81(0x236)](){const _0x18d92a=_0x34ca81;this['disposeWithMe'](this[_0x18d92a(0x27f)][_0x18d92a(0x35c)]((_0x40e0e6,_0x5a08de)=>{const _0x28b955=_0x18d92a;var _0x141c7c;if(_0x40e0e6['id']!==_0x3d1b06['id'])return;let _0x575212=_0x40e0e6[_0x28b955(0x230)];if(this[_0x28b955(0x25e)]((_0x141c7c=_0x575212[_0x28b955(0x2a7)])==null?[]:_0x141c7c)&&!this[_0x28b955(0x3b7)]())throw this[_0x28b955(0x2da)](_0x40e0e6,_0x5a08de),this[_0x28b955(0x2ef)](),new _0x2c9776();})),this['disposeWithMe'](this[_0x18d92a(0x27f)][_0x18d92a(0x26c)]((_0x5536df,_0x50c0f0)=>{const _0x50b65f=_0x18d92a;if(_0x5536df['id']!==_0x3d0d35['id'])return;let _0x57338a=_0x5536df[_0x50b65f(0x230)];if(On(_0x57338a)){let _0x487ed2=_0x19d355();this[_0x50b65f(0x225)][_0x50b65f(0x2d1)](_0x487ed2),this[_0x50b65f(0x221)](_0x487ed2);}else{if(kn(_0x57338a)&&this[_0x50b65f(0x225)][_0x50b65f(0x315)]>0x0){let _0xec30c=this['_taskIds'][_0x50b65f(0x1d5)]();this[_0x50b65f(0x23c)](_0xec30c);}}}));}[_0x34ca81(0x36f)](){const _0x5b4aeb=_0x34ca81;super[_0x5b4aeb(0x36f)](),this[_0x5b4aeb(0x3d2)](),this[_0x5b4aeb(0x225)]=[],this['_currentUsage']=0x0,this[_0x5b4aeb(0x1ca)]=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x34ca81(0x2da)](_0x56d588,_0x18788c){const _0x4128ad=_0x34ca81;for(let _0x49a3e1=0x0;_0x49a3e1<0x1e;_0x49a3e1++)try{if(await this[_0x4128ad(0x3a0)](),this['_checkCalculationAvailable']()){this[_0x4128ad(0x38e)](_0x56d588,_0x18788c),this[_0x4128ad(0x256)][_0x4128ad(0x2ea)]({'content':this['_localeService']['t'](_0x4128ad(0x3d1)),'type':_0x431ac8['Success']});return;}await new Promise(_0x9ad1e5=>{const _0x3ba312=_0x4128ad;this['_pollingInterval']=window[_0x3ba312(0x27b)](_0x9ad1e5,0x3e8);});}catch(_0x187cc4){this[_0x4128ad(0x379)]['error'](_0x187cc4);}this[_0x4128ad(0x256)][_0x4128ad(0x2ea)]({'content':this[_0x4128ad(0x2be)]['t'](_0x4128ad(0x20c)),'type':_0x431ac8[_0x4128ad(0x29d)]});}[_0x34ca81(0x38e)](_0x11fdc4,_0x54e9b3){const _0x41c872=_0x34ca81;try{this[_0x41c872(0x27f)]['executeCommand'](_0x11fdc4['id'],_0x11fdc4[_0x41c872(0x230)],_0x54e9b3);}catch(_0x184fd5){this[_0x41c872(0x379)]['error'](_0x184fd5);}}[_0x34ca81(0x320)](_0x5b53eb,_0x1e47f8){const _0x301a92=_0x34ca81;_0x1e47f8<this[_0x301a92(0x38f)]||(this[_0x301a92(0x38f)]=_0x1e47f8,this[_0x301a92(0x1ca)]=Number['parseInt'](_0x5b53eb[_0x301a92(0x264)]),this[_0x301a92(0x284)]=Number[_0x301a92(0x3ab)](_0x5b53eb['currentUsage']));}async[_0x34ca81(0x221)](_0x269b39){const _0x402124=_0x34ca81;let _0x5dbe31=Date[_0x402124(0x369)]();try{var _0x1b019d,_0x5443f4;let _0x3610e4=((_0x1b019d=this[_0x402124(0x328)][_0x402124(0x292)](_0x2c9535))==null?void 0x0:_0x1b019d[_0x402124(0x363)])||'/universer-api/license/formula/limit/start',_0x1bd1bf=(await this[_0x402124(0x254)][_0x402124(0x3c5)](_0x3610e4,{'body':JSON[_0x402124(0x1c7)]({'taskId':_0x269b39})}))[_0x402124(0x1d0)];if(((_0x5443f4=_0x1bd1bf[_0x402124(0x350)])==null?void 0x0:_0x5443f4[_0x402124(0x2bc)])!==_0x53783d['OK'])return;this[_0x402124(0x320)](_0x1bd1bf[_0x402124(0x1cd)],_0x5dbe31);}catch(_0x4252cb){this[_0x402124(0x379)]['error'](_0x4252cb);}}async[_0x34ca81(0x3a0)](_0x3932a8){const _0x1aa8a6=_0x34ca81;let _0x57f8a3=Date[_0x1aa8a6(0x369)]();try{var _0x31faa4,_0xbc5223;let _0x4577a7=((_0x31faa4=this[_0x1aa8a6(0x328)][_0x1aa8a6(0x292)](_0x2c9535))==null?void 0x0:_0x31faa4['getFormulaLimitStatusUrl'])||_0x1aa8a6(0x229),_0x40ac5c=_0x3932a8?_0x4577a7+_0x1aa8a6(0x39b)+encodeURIComponent(_0x3932a8):_0x4577a7,_0x49b60a=(await this[_0x1aa8a6(0x254)][_0x1aa8a6(0x21a)](_0x40ac5c))[_0x1aa8a6(0x1d0)];if(((_0xbc5223=_0x49b60a[_0x1aa8a6(0x350)])==null?void 0x0:_0xbc5223[_0x1aa8a6(0x2bc)])!==_0x53783d['OK'])return;this[_0x1aa8a6(0x320)](_0x49b60a['limitInfo'],_0x57f8a3);}catch(_0x18d304){this[_0x1aa8a6(0x379)]['error'](_0x18d304);}}async['_releaseCalculationLimit'](_0x3bcf86){const _0x2fe103=_0x34ca81;let _0x3ac543=Date[_0x2fe103(0x369)]();try{var _0x4232d2,_0x4110f2;let _0x28e5d2=((_0x4232d2=this[_0x2fe103(0x328)][_0x2fe103(0x292)](_0x2c9535))==null?void 0x0:_0x4232d2['releaseFormulaLimitUrl'])||_0x2fe103(0x3af),_0x20c739=(await this[_0x2fe103(0x254)]['post'](_0x28e5d2,{'body':JSON['stringify']({'taskId':_0x3bcf86})}))['body'];if(((_0x4110f2=_0x20c739[_0x2fe103(0x350)])==null?void 0x0:_0x4110f2[_0x2fe103(0x2bc)])!==_0x53783d['OK'])return;this[_0x2fe103(0x320)](_0x20c739[_0x2fe103(0x1cd)],_0x3ac543);}catch(_0x58bf40){this['_logService']['error'](_0x58bf40);}}[_0x34ca81(0x3b7)](){const _0x52c54b=_0x34ca81;return this[_0x52c54b(0x1ca)]===0x0?!0x0:this['_maxFormulaLimit']-this[_0x52c54b(0x284)]>0x0;}['_clearPolling'](){const _0x557811=_0x34ca81;this['_pollingInterval']&&(clearTimeout(this['_pollingInterval']),this[_0x557811(0x31d)]=null);}[_0x34ca81(0x2ef)](){const _0x52c024=_0x34ca81;this[_0x52c024(0x256)][_0x52c024(0x2ea)]({'content':this['_localeService']['t'](_0x52c024(0x2ab)),'type':_0x431ac8['Loading']});}[_0x34ca81(0x25e)](_0x1cd53c){const _0x5e3ca4=_0x34ca81;for(let _0x1f03dd of _0x1cd53c){let {unitId:_0x3d3730,sheetId:_0x35621b,range:_0xe56d89}=_0x1f03dd,_0xa565d7=this[_0x5e3ca4(0x32e)][_0x5e3ca4(0x37a)](_0x3d3730);if(!_0xa565d7)continue;let _0x545406=_0xa565d7[_0x5e3ca4(0x3a1)](_0x35621b);if(!_0x545406)continue;let _0x30b394=_0x545406[_0x5e3ca4(0x32b)]();for(let _0x15411c=_0xe56d89[_0x5e3ca4(0x2d3)];_0x15411c<=_0xe56d89[_0x5e3ca4(0x283)];_0x15411c++)for(let _0x26b025=_0xe56d89[_0x5e3ca4(0x1cb)];_0x26b025<=_0xe56d89['endColumn'];_0x26b025++){let _0x1643e0=_0x30b394[_0x5e3ca4(0x22d)](_0x15411c,_0x26b025);if(_0x1643e0&&(_0x460309(_0x1643e0['f'])||_0x59ca12(_0x1643e0['si'])))return!0x0;}}return!0x1;}};Q=q([K(0x0,_0x60904d(_0xf88f0d)),K(0x1,_0x51f795),K(0x2,_0x3846d3),K(0x3,_0x60904d(_0x286902)),K(0x4,_0x185350),K(0x5,_0x3240ed),K(0x6,_0x60904d(_0x182dcb))],Q);let An=class extends _0x211e13{constructor(_0x284702,_0x544a15,_0x310e1c){const _0x47a3c7=_0x34ca81;super(),this[_0x47a3c7(0x328)]=_0x284702,this[_0x47a3c7(0x3ad)]=_0x544a15,this[_0x47a3c7(0x2fa)]=_0x310e1c,G(this,_0x47a3c7(0x1d8),new Map()),G(this,_0x47a3c7(0x25d),new Map()),G(this,_0x47a3c7(0x1c4),!0x1);}['disableLocalCache'](){this['_disabled']=!0x0;}[_0x34ca81(0x257)](){this['_disabled']=!0x1;}get[_0x34ca81(0x26f)](){const _0x1d3106=_0x34ca81;return this[_0x1d3106(0x25d)];}[_0x34ca81(0x36f)](){const _0x47d74e=_0x34ca81;this[_0x47d74e(0x349)]()['then'](()=>super[_0x47d74e(0x36f)]());}async[_0x34ca81(0x3d3)](_0x45b565){const _0x38e617=_0x34ca81;return this[_0x38e617(0x1c4)]?null:this[_0x38e617(0x3ad)][_0x38e617(0x233)](_0x5c58b7(_0x45b565));}async['saveOfflineData'](_0x44b030,_0x36eec7){const _0x3822b4=_0x34ca81;return!!this[_0x3822b4(0x3ad)][_0x3822b4(0x317)](_0x44b030,_0x36eec7);}['updateOfflineData'](_0x35b54b,_0x1be880,_0x33f34a,_0x110e05){const _0x11920c=_0x34ca81;let _0x24c4ec=this['_revisionService'][_0x11920c(0x33c)](_0x35b54b);this[_0x11920c(0x1d8)][_0x11920c(0x2f0)](_0x35b54b,{'unitID':_0x35b54b,'type':_0x1be880,'awaitingChangeset':_0x33f34a,'mutations':_0x110e05,'rev':_0x24c4ec}),this[_0x11920c(0x25d)][_0x11920c(0x33f)](_0x35b54b)||this[_0x11920c(0x325)](_0x35b54b);}[_0x34ca81(0x325)](_0x3387be){const _0x3377ed=_0x34ca81;let _0x5c39b5=this[_0x3377ed(0x235)]();_0x5c39b5===0x0?this[_0x3377ed(0x278)](_0x3387be):this[_0x3377ed(0x25d)]['set'](_0x3387be,setTimeout(()=>this[_0x3377ed(0x278)](_0x3387be),_0x5c39b5));}[_0x34ca81(0x235)](){const _0x119fb0=_0x34ca81;var _0xd0a956;return(_0xd0a956=this[_0x119fb0(0x328)][_0x119fb0(0x292)](_0x4d7b45))==null?_0x2ac071:_0xd0a956;}['_saveCache'](_0xd6f1ec){const _0x21a638=_0x34ca81;let _0x15110c=this['_saveTaskMap'][_0x21a638(0x21a)](_0xd6f1ec);return _0x15110c!==void 0x0&&window['clearTimeout'](_0x15110c),this[_0x21a638(0x3ad)][_0x21a638(0x317)](_0x5c58b7(_0xd6f1ec),this[_0x21a638(0x1d8)]['get'](_0xd6f1ec))['then'](()=>this['_saveTaskMap']['delete'](_0xd6f1ec));}async[_0x34ca81(0x349)](){const _0x2b11ab=_0x34ca81;let _0x5166fd=[];this[_0x2b11ab(0x25d)][_0x2b11ab(0x302)]((_0x1054fb,_0x2be846)=>{const _0xd3f9ce=_0x2b11ab;window[_0xd3f9ce(0x2ac)](_0x1054fb),_0x5166fd[_0xd3f9ce(0x2d1)](this[_0xd3f9ce(0x278)](_0x2be846)[_0xd3f9ce(0x2ec)](()=>{const _0x489102=_0xd3f9ce;this[_0x489102(0x25d)][_0x489102(0x266)](_0x2be846);}));}),await Promise[_0x2b11ab(0x2db)](_0x5166fd);}};An=q([K(0x0,_0x3846d3),K(0x1,_0x4f4386),K(0x2,_0x60904d(_0x471130))],An);var jn=class extends _0x2b7d41{constructor(){const _0x2e8bce=_0x34ca81;super(),G(this,_0x2e8bce(0x2f4),void 0x0),this[_0x2e8bce(0x2f4)]=_0x534c91(window,_0x2e8bce(0x30c))['pipe'](_0x4ff7f8(this['dispose$']),_0x3c5cf5({'bufferSize':0x1,'refCount':!0x0}),_0x1ce782(void 0x0));}[_0x34ca81(0x3cb)](_0x223fae,_0x7f1184,_0x5ead5c=!0x1){const _0x1e08cb=_0x34ca81;let _0x4ad9b2=new URL(window[_0x1e08cb(0x289)][_0x1e08cb(0x383)]);_0x4ad9b2[_0x1e08cb(0x1f4)][_0x1e08cb(0x2f0)](_0x223fae,_0x7f1184),_0x5ead5c?window[_0x1e08cb(0x345)][_0x1e08cb(0x31f)]('','',_0x4ad9b2['toString']()):window[_0x1e08cb(0x345)]['pushState']('','',_0x4ad9b2[_0x1e08cb(0x2c1)]());}[_0x34ca81(0x2e6)](_0x4f6856,_0x29beaf=!0x1){const _0x5cc503=_0x34ca81;let _0x36b4e6=new URL(window['location'][_0x5cc503(0x383)]);_0x36b4e6[_0x5cc503(0x1f4)][_0x5cc503(0x266)](_0x4f6856),_0x29beaf?window[_0x5cc503(0x345)][_0x5cc503(0x31f)]('','',_0x36b4e6[_0x5cc503(0x2c1)]()):window[_0x5cc503(0x345)][_0x5cc503(0x368)]('','',_0x36b4e6[_0x5cc503(0x2c1)]());}['getParam'](_0x175135){const _0x1914f0=_0x34ca81;var _0x50e93b;return(_0x50e93b=new URL(window[_0x1914f0(0x289)]['href'])[_0x1914f0(0x1f4)][_0x1914f0(0x21a)](_0x175135))==null?void 0x0:_0x50e93b;}};let $=class extends _0x34e422{constructor(_0x8f7567=Sn,_0x308a69,_0x77ffea,_0x5b3081){const _0x2bd04d=_0x34ca81;super(),this['_config']=_0x8f7567,this[_0x2bd04d(0x241)]=_0x308a69,this[_0x2bd04d(0x34e)]=_0x77ffea,this['_configService']=_0x5b3081;let {..._0x326ba5}=_0xf291a1({},Sn,this[_0x2bd04d(0x2c0)]);this[_0x2bd04d(0x328)][_0x2bd04d(0x3c6)](_0x2bd04d(0x3d7),_0x326ba5);}['onStarting'](){const _0x40a6a=_0x34ca81;this[_0x40a6a(0x272)](),this[_0x40a6a(0x2a2)]();}[_0x34ca81(0x1f7)](){this['_registerRenderDependencies']();}['_registerDependencies'](){const _0x243f6d=_0x34ca81;var _0x2ef996;let _0x4260dc=[[sn],[Q],[Tn],[Cn],[wn],[un],[tn,{'useClass':jn}],[_0x19dd0c,{'useClass':_0x1215ad}],[_0x47d162,{'useClass':An}],[J],[En],[Z],[X],[an],[Y]];this[_0x243f6d(0x2c0)][_0x243f6d(0x3d8)]&&_0x4260dc[_0x243f6d(0x2d1)]([Dn]),_0x25d053(this['_injector'],_0x5cf1e1(_0x4260dc,(_0x2ef996=this[_0x243f6d(0x2c0)])==null?void 0x0:_0x2ef996['override']));}[_0x34ca81(0x319)](){const _0x5cfde5=_0x34ca81;this[_0x5cfde5(0x352)](this['_renderManagerService'][_0x5cfde5(0x2e1)](_0x3e3c71[_0x5cfde5(0x2b8)],[vn])),this[_0x5cfde5(0x352)](this['_renderManagerService']['registerRenderModule'](_0x3e3c71['UNIVER_SHEET'],[bn]));}[_0x34ca81(0x2a2)](){const _0x36a91b=_0x34ca81;_0x784555(this['_injector'],[[X],[J],[En],[Z],[Y],[Q],[an]]),this[_0x36a91b(0x2c0)][_0x36a91b(0x3d8)]&&_0x784555(this[_0x36a91b(0x34e)],[[Dn]]);}};G($,'pluginName',_0x34ca81(0x3ca)),G($,'packageName',nn),G($,_0x34ca81(0x200),rn),$=q([_0x1ab26a(_0x125474),K(0x1,_0x55d330),K(0x2,_0x60904d(_0x4227ab)),K(0x3,_0x3846d3)],$);let Mn=class extends _0x56c451{constructor(_0x115d97,_0x46e6e7,_0x251331,_0x16488a,_0x5a8dd6){super(_0x115d97,_0x46e6e7,_0x251331,_0x16488a,_0x5a8dd6);}async[_0x34ca81(0x2a0)](_0x1946e8){const _0x113e0=_0x34ca81;let _0x1e712d=await this[_0x113e0(0x3c7)](),_0x45d0db=this['_createSocketURL'](_0x1946e8,_0x1e712d);return this[_0x113e0(0x3c8)](_0x45d0db);}[_0x34ca81(0x3d6)](_0x550786,_0xe921b8){const _0x1a469b=_0x34ca81;let _0x299e73=typeof window>'u'?new URL(_0x550786):new URL(_0x550786,window[_0x1a469b(0x289)][_0x1a469b(0x35f)]);_0x299e73[_0x1a469b(0x1f4)][_0x1a469b(0x2f0)]('sessionTicket',_0xe921b8);let _0x2c89c1=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x1a469b(0x2fe)]);return _0x2c89c1['get'](_0x1a469b(0x287))&&_0x299e73['searchParams'][_0x1a469b(0x2f0)](_0x1a469b(0x287),_0x2c89c1[_0x1a469b(0x21a)](_0x1a469b(0x287))),_0x299e73[_0x1a469b(0x2c1)]();}async[_0x34ca81(0x3c7)](){const _0x533602=_0x34ca81;var _0x3f57b0,_0x247767,_0x586aaa;let _0x46ad70=this[_0x533602(0x328)][_0x533602(0x292)](_0x2c9535),_0xecc6ee=(_0x3f57b0=_0x46ad70==null?void 0x0:_0x46ad70[_0x533602(0x376)])==null?_0x3ad8b9:_0x3f57b0;return(_0x247767=(_0x586aaa=(await this[_0x533602(0x254)][_0x533602(0x21a)](_0xecc6ee,{'headers':{'Content-Type':_0x533602(0x1cf)}}))[_0x533602(0x1d0)])==null?void 0x0:_0x586aaa[_0x533602(0x24a)])==null?'':_0x247767;}};Mn=q([K(0x0,_0x60904d(_0x4227ab)),K(0x1,_0x60904d(_0x286902)),K(0x2,_0x3846d3),K(0x3,_0x3240ed),K(0x4,_0x2adb11)],Mn);let Nn=class extends _0x211e13{constructor(_0x4aba78,_0x7ded68,_0x320d9a){const _0x142e0c=_0x34ca81;super(),this[_0x142e0c(0x361)]=_0x4aba78,this['_httpService']=_0x7ded68,this[_0x142e0c(0x328)]=_0x320d9a;}async['runOnServer'](_0x503018,_0x550f8f,_0x3e6ef7,..._0x2bd4aa){const _0x47f6d8=_0x34ca81;var _0x89aa1f,_0xf08ae2,_0x2e23e1,_0xbc72b0;let _0x3735df=this[_0x47f6d8(0x361)][_0x47f6d8(0x390)]();if(!_0x3735df)throw Error(_0x47f6d8(0x2bb));let _0x3a6d98=((_0x89aa1f=this[_0x47f6d8(0x328)][_0x47f6d8(0x292)](_0x5c59d4))==null?_0x5afd6a:_0x89aa1f)+'/'+_0x503018+'/run/'+_0x550f8f,_0x5867e9={'scriptId':_0x503018,'runId':(_0xf08ae2=new URL(window[_0x47f6d8(0x289)]['href'])['searchParams'][_0x47f6d8(0x21a)](_0x47f6d8(0x287)))==null?'':_0xf08ae2,'function':_0x550f8f,'unitId':_0x3735df[_0x47f6d8(0x2fb)](),'argsOfFunction':JSON[_0x47f6d8(0x1c7)](_0x2bd4aa),'invokeId':(_0x2e23e1=_0x3e6ef7[_0x47f6d8(0x2f1)])==null?'':_0x2e23e1,'executionId':(_0xbc72b0=_0x3e6ef7[_0x47f6d8(0x2bf)])==null?'':_0xbc72b0};try{let _0x3846c1=await this[_0x47f6d8(0x254)][_0x47f6d8(0x3c5)](_0x3a6d98,{'body':_0x5867e9});return _0x3846c1[_0x47f6d8(0x1d0)][_0x47f6d8(0x350)]&&_0x3846c1[_0x47f6d8(0x1d0)][_0x47f6d8(0x350)][_0x47f6d8(0x2bc)]!==_0x53783d['OK']?_0x47f6d8(0x31c):_0x3846c1[_0x47f6d8(0x1d0)]['result'];}catch{return _0x47f6d8(0x31c);}}};Nn=q([K(0x0,_0x185350),K(0x1,_0x60904d(_0x286902)),K(0x2,_0x3846d3)],Nn);const Pn=0x7530,Fn='ACTIVE_UNIT_EVENT_CHANNEL';var In=class extends _0x211e13{constructor(){const _0x40e99f=_0x34ca81;super(),G(this,_0x40e99f(0x378),_0x19d355()),G(this,_0x40e99f(0x1d3),new Set()),G(this,_0x40e99f(0x30a),new Map()),G(this,_0x40e99f(0x22b),null),G(this,'_clearOtherTimers',new Map()),G(this,_0x40e99f(0x31e),new Map()),this[_0x40e99f(0x1f9)]();}[_0x34ca81(0x36f)](){const _0x3384fe=_0x34ca81;super[_0x3384fe(0x36f)](),this['_clearOtherTimers'][_0x3384fe(0x302)]((_0x5aec94,_0x190769)=>this[_0x3384fe(0x387)](_0x190769)),this[_0x3384fe(0x22b)]&&window['clearInterval'](this[_0x3384fe(0x22b)]);}[_0x34ca81(0x2d7)](_0x1c67cc){const _0x1ca228=_0x34ca81;return this[_0x1ca228(0x1fc)](_0x1c67cc)[_0x1ca228(0x25a)](_0x3ff61f());}[_0x34ca81(0x32f)](_0xee8882){const _0x3b7274=_0x34ca81;this[_0x3b7274(0x1d3)][_0x3b7274(0x3a9)]===0x0&&this[_0x3b7274(0x25c)](),this[_0x3b7274(0x1d3)]['add'](_0xee8882),this['_send']({'type':0x0,'memberID':this[_0x3b7274(0x378)],'unitIDs':[_0xee8882],'isForwarded':!0x1});}[_0x34ca81(0x29e)](_0x1a260c){const _0x4e3903=_0x34ca81;this['_selfUnitIDs'][_0x4e3903(0x266)](_0x1a260c),this[_0x4e3903(0x1d3)][_0x4e3903(0x3a9)]===0x0&&this[_0x4e3903(0x22b)]&&window['clearInterval'](this['_heartbeatTimer']);}[_0x34ca81(0x1f9)](){const _0x41d149=_0x34ca81;this[_0x41d149(0x352)](_0x5bed57(_0x534c91(window,_0x41d149(0x2b9))[_0x41d149(0x3d0)](_0x73c971=>{const _0x23ab2a=_0x41d149;if(_0x73c971[_0x23ab2a(0x267)]!==Fn||!_0x73c971[_0x23ab2a(0x2d6)])return;let _0x5bce5f=JSON['parse'](_0x73c971[_0x23ab2a(0x2d6)]);this[_0x23ab2a(0x339)](_0x5bce5f);}))),window[_0x41d149(0x2b7)](_0x41d149(0x39c),()=>this[_0x41d149(0x26b)]({'type':0x1,'memberID':this[_0x41d149(0x378)],'unitIDs':Array[_0x41d149(0x3ac)](this[_0x41d149(0x1d3)])}));}[_0x34ca81(0x339)](_0xa7ee23){const _0x1b4eea=_0x34ca81;switch(_0xa7ee23[_0x1b4eea(0x2c3)]){case 0x0:this['_handleJoinEvent'](_0xa7ee23);break;case 0x1:this['_handleLeaveEvent'](_0xa7ee23);break;case 0x2:this[_0x1b4eea(0x333)](_0xa7ee23);break;}}[_0x34ca81(0x306)](_0x4fd823){const _0x51e56d=_0x34ca81;let {unitIDs:_0x5b29db,memberID:_0xabcaf,isForwarded:_0x42e031}=_0x4fd823;_0x5b29db[_0x51e56d(0x302)](_0x5b0020=>{const _0x5625cc=_0x51e56d;if(!_0x42e031&&this[_0x5625cc(0x30a)][_0x5625cc(0x33f)](_0x5b0020)&&this['_ensureSubject'](_0x5b0020)[_0x5625cc(0x301)](_0xfba7de['OTHER_CLIENTS_EDITING']),!this[_0x5625cc(0x30a)][_0x5625cc(0x33f)](_0x5b0020)||!this[_0x5625cc(0x30a)][_0x5625cc(0x21a)](_0x5b0020)[_0x5625cc(0x33f)](_0xabcaf)){let _0x4ee830=this[_0x5625cc(0x30a)][_0x5625cc(0x21a)](_0x5b0020)||new Set();_0x4ee830[_0x5625cc(0x398)](_0xabcaf),this[_0x5625cc(0x30a)][_0x5625cc(0x2f0)](_0x5b0020,_0x4ee830),this[_0x5625cc(0x279)](_0xabcaf);}}),_0x42e031||this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x41c414){const _0x4a66da=_0x34ca81;this[_0x4a66da(0x387)](_0x41c414);let _0x140195=window[_0x4a66da(0x27b)](()=>{const _0x5121d1=_0x4a66da;this[_0x5121d1(0x30a)][_0x5121d1(0x302)](_0x43de44=>{const _0x2a434e=_0x5121d1;_0x43de44[_0x2a434e(0x266)](_0x41c414);});},Pn*0x2);this[_0x4a66da(0x2df)][_0x4a66da(0x2f0)](_0x41c414,_0x140195);}[_0x34ca81(0x387)](_0x41072b){const _0x1501b0=_0x34ca81;if(this[_0x1501b0(0x2df)][_0x1501b0(0x33f)](_0x41072b)){let _0x385ace=this[_0x1501b0(0x2df)][_0x1501b0(0x21a)](_0x41072b);_0x385ace&&window[_0x1501b0(0x2ac)](_0x385ace),this[_0x1501b0(0x2df)]['set'](_0x41072b,null);}}[_0x34ca81(0x2b4)](_0xb4ffea){const _0x7a13ee=_0x34ca81;let {memberID:_0x2cc4aa,unitIDs:_0x9bc685}=_0xb4ffea;_0x9bc685[_0x7a13ee(0x302)](_0xd1b55b=>{const _0x5bc195=_0x7a13ee;var _0x501b4b;let _0x2db977=this[_0x5bc195(0x30a)][_0x5bc195(0x21a)](_0xd1b55b);_0x2db977&&(_0x2db977['delete'](_0x2cc4aa),(_0x501b4b=this[_0x5bc195(0x1fc)](_0xd1b55b))==null||_0x501b4b['next'](_0x2db977[_0x5bc195(0x3a9)]===0x0?_0xfba7de[_0x5bc195(0x338)]:_0xfba7de[_0x5bc195(0x246)]));}),this[_0x7a13ee(0x387)](_0x2cc4aa);}['_handleHeartbeatEvent'](_0x57f688){const _0x315c21=_0x34ca81;this[_0x315c21(0x279)](_0x57f688[_0x315c21(0x375)]);}['_send'](_0x47c57b){const _0x5d7d1c=_0x34ca81;localStorage[_0x5d7d1c(0x317)](Fn,JSON[_0x5d7d1c(0x1c7)](_0x47c57b));}[_0x34ca81(0x25c)](){const _0x3d9318=_0x34ca81;this[_0x3d9318(0x22b)]=window[_0x3d9318(0x2d9)](()=>{const _0xd03241=_0x3d9318;this['_send']({'type':0x2,'memberID':this[_0xd03241(0x378)]});},Pn);}['_ensureSubject'](_0x50d235){const _0x117188=_0x34ca81;return this[_0x117188(0x31e)]['has'](_0x50d235)||this['_unitStatus'][_0x117188(0x2f0)](_0x50d235,new _0x318671(_0xfba7de[_0x117188(0x338)])),this[_0x117188(0x31e)][_0x117188(0x21a)](_0x50d235);}};export{Mn as BrowserCollaborationSocketService,Y as CollaborationDataLoaderController,J as DesktopCollaborationStatusDisplayController,tn as IURLService,Nn as RemoteUniscriptService,yn as SheetCollabCursorShape,$ as UniverCollaborationClientUIPlugin,In as WebBrowserSingleActiveUnitService,jn as WebURLService};
|
|
1
|
+
const _0x206259=_0x4885;(function(_0x362485,_0x274cdc){const _0x1fa0b9=_0x4885,_0x57d779=_0x362485();while(!![]){try{const _0x41a371=-parseInt(_0x1fa0b9(0x2f9))/0x1+-parseInt(_0x1fa0b9(0x1f5))/0x2*(-parseInt(_0x1fa0b9(0x222))/0x3)+parseInt(_0x1fa0b9(0x3d0))/0x4+-parseInt(_0x1fa0b9(0x3d7))/0x5*(-parseInt(_0x1fa0b9(0x1f3))/0x6)+-parseInt(_0x1fa0b9(0x384))/0x7*(-parseInt(_0x1fa0b9(0x345))/0x8)+parseInt(_0x1fa0b9(0x344))/0x9*(parseInt(_0x1fa0b9(0x297))/0xa)+-parseInt(_0x1fa0b9(0x2e8))/0xb*(parseInt(_0x1fa0b9(0x2b0))/0xc);if(_0x41a371===_0x274cdc)break;else _0x57d779['push'](_0x57d779['shift']());}catch(_0x265dc2){_0x57d779['push'](_0x57d779['shift']());}}}(_0x6a1c,0xe825f));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0xde024d,CollaborationController as _0x1544ac,CollaborationSessionService as _0x52b1cf,CollaborationSocketService as _0x4a830b,CollaborationStatus as _0x18999b,CollaborationUIEventId as _0x1b3610,CollaborationUIEventService as _0x38a3cd,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x1187e7,DEFAULT_WS_SESSION_TICKET_URL as _0x2cc108,DataLoaderService as _0x37960b,DocCollaborationEntity as _0x3a42ed,ILocalCacheService as _0x17a5fc,LOCAL_CACHE_INTERVAL as _0x292543,LOCAL_CACHE_INTERVAL_KEY as _0x5c929a,MemberService as _0x14dfef,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x5d5a4b,SessionStatus as _0x2457ac,UnitStatus as _0x42d7f5,UniverCollaborationClientPlugin as _0x4944ee,getLocalCacheKey as _0xafed70}from'@univerjs-pro/collaboration-client';import{COLORS as _0x368165,CanceledError as _0x1149f2,ColorKit as _0x538f47,CommandType as _0x526abf,DOC_RANGE_TYPE as _0x256699,DependentOn as _0x4070e5,Disposable as _0x1b0287,DisposableCollection as _0x540fea,ICommandService as _0x498ceb,IConfigService as _0x189dcf,ILocalStorageService as _0x37c6e8,ILogService as _0x5916ce,IUniverInstanceService as _0x2d5bc6,Inject as _0xb8a7b6,Injector as _0x59fba4,LocaleService as _0x14b5d2,Optional as _0x5b49dd,Plugin as _0x2676e2,Rectangle as _0x25bacd,RxDisposable as _0x44d0b2,ThemeService as _0x2d2a1d,Tools as _0x1eece1,UniverInstanceType as _0x13410e,Workbook as _0x5e88af,createIdentifier as _0x49020c,debounce as _0x4e5741,fromEventSubject as _0x55bf58,generateRandomId as _0x555907,isFormulaId as _0x5c72a3,isFormulaString as _0x42b484,isInternalEditorID as _0x6bde86,merge as _0x43b789,mergeOverrideWithDependencies as _0xa85f6c,registerDependencies as _0x393efa,toDisposable as _0x57ab4c,touchDependencies as _0x25848c}from'@univerjs/core';import{BuiltInUIPart as _0x46b832,IBeforeCloseService as _0x37faa2,IMessageService as _0x3c5b09,INotificationService as _0x2e77e8,IUIPartsService as _0x1bb97b,connectInjector as _0x2f8c6f,useDependency as _0x4715f5,useObservable as _0x43c1b4}from'@univerjs/ui';import{BehaviorSubject as _0x3f7448,Subject as _0x24e89a,combineLatest as _0x3e361d,debounceTime as _0x3352de,distinctUntilChanged as _0x3a2980,filter as _0x36b7c5,fromEvent as _0xfb4a42,mapTo as _0x496906,merge as _0x433e18,of as _0xd28a5f,shareReplay as _0x561cad,switchMap as _0x29a006,takeUntil as _0x384030}from'rxjs';import{distinctUntilChanged as _0xc97d77,filter as _0x162ac8,map as _0x52d48e,switchMap as _0x3dc322,takeUntil as _0x2868c0,throttleTime as _0x58100d}from'rxjs/operators';import{MessageType as _0x35617f,Tooltip as _0x1eac27,clsx as _0x3122e6}from'@univerjs/design';import{LoadingMultiIcon as _0x3928e2,OffLineIcon as _0x41ca4b,OnLineIcon as _0x533d54}from'@univerjs/icons';import{useCallback as _0x1ae509,useMemo as _0x56d377}from'react';import{jsx as _0x10f13a}from'react/jsx-runtime';import{IRemoteInstanceService as _0x51294a}from'@univerjs/rpc';import{EffectRefRangId as _0xba447,RefRangeService as _0x35ff35,SetSelectionsOperation as _0x3f70f2,SetWorksheetActivateCommand as _0x5ce7e1,SheetsSelectionsService as _0x299afb,handleDeleteRangeMoveLeft as _0x517c5a,handleDeleteRangeMoveUp as _0x4ddcad,handleIRemoveCol as _0x20ac72,handleIRemoveRow as _0x5c1a91,handleInsertCol as _0x4e3dcb,handleInsertRangeMoveDown as _0x21e2e7,handleInsertRangeMoveRight as _0x10b9dc,handleInsertRow as _0x2bbd43,handleMoveRange as _0x18f08b,runRefRangeMutations as _0xf2e426}from'@univerjs/sheets';import{IRenderManagerService as _0xd23c31,Rect as _0x50d2ba,RegularPolygon as _0x1cc85d,SHEET_VIEWPORT_KEY as _0x3408cf,Shape as _0x382371,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x48f8e3,Vector2 as _0x579a07,getColor as _0x2e4331}from'@univerjs/engine-render';import{HTTPService as _0x396900,ISocketService as _0x26fea5,WebSocketService as _0x5c854a}from'@univerjs/network';import{DocIMEInputManagerService as _0x563c9d,DocStateChangeManagerService as _0x5023e3,IDocClipboardService as _0x42fc83,NodePositionConvertToCursor as _0x48ce80,NodePositionConvertToRectRange as _0xcd80e4,SetDocZoomRatioOperation as _0x3e6d75,TEXT_RANGE_LAYER_INDEX as _0x45622d}from'@univerjs/docs-ui';import{IImageIoService as _0x591bd3}from'@univerjs/drawing';import{CollaborationEvent as _0x12ec4a,ISnapshotServerService as _0x13c19b,ITransformService as _0x4e87b4,RevisionService as _0x3ac636,isTransformMutationFailure as _0x537eeb,isTransformMutationsWithChangesetSuccess as _0x324463}from'@univerjs-pro/collaboration';import{DocSelectionManagerService as _0x92d5ec,DocSkeletonManagerService as _0x47a3f5,RichTextEditingMutation as _0x524203,SetTextSelectionsOperation as _0x223835}from'@univerjs/docs';import{FormulaExecuteStageType as _0x52f8ca,FormulaExecutedStateType as _0x212b69,SetFormulaCalculationNotificationMutation as _0xe628ff,SetFormulaCalculationStartMutation as _0x280be0,deserializeRangeWithSheet as _0x3eb8fa,serializeRangeWithSheet as _0x551eee}from'@univerjs/engine-formula';import{SheetSkeletonManagerService as _0x32fb05,getCoordByCell as _0x2578dc,getSheetObject as _0x547a2f}from'@univerjs/sheets-ui';import{ErrorCode as _0x5e0da0}from'@univerjs/protocol';function Yt(_0xa06431){const _0x3633ec=_0x4885;switch(_0xa06431){case _0x18999b[_0x3633ec(0x258)]:return{'icon':_0x10f13a(_0x41ca4b,{}),'colorClass':'univer-text-red-500','i18nKey':_0x3633ec(0x280),'tooltipKey':'collaboration-client-ui.collabClient.tooltip.reconnect','clickable':!0x0,'indicator':_0x3633ec(0x30f)};case _0x18999b[_0x3633ec(0x22f)]:return{'icon':_0x10f13a(_0x41ca4b,{}),'colorClass':_0x3633ec(0x247),'i18nKey':_0x3633ec(0x3df),'clickable':!0x1,'indicator':_0x3633ec(0x30f)};case _0x18999b[_0x3633ec(0x1f8)]:return{'icon':_0x10f13a(_0x3928e2,{}),'colorClass':'univer-text-blue-500','i18nKey':_0x3633ec(0x3c0),'clickable':!0x1,'indicator':'spin'};case _0x18999b[_0x3633ec(0x23a)]:return{'icon':_0x10f13a(_0x533d54,{}),'colorClass':'univer-text-gray-400','i18nKey':_0x3633ec(0x29a),'clickable':!0x1,'indicator':_0x3633ec(0x30f)};case _0x18999b['AWAITING']:case _0x18999b['AWAITING_WITH_PENDING']:return{'icon':_0x10f13a(_0x3928e2,{}),'colorClass':_0x3633ec(0x21e),'i18nKey':_0x3633ec(0x2b4),'clickable':!0x1,'indicator':'spin'};case _0x18999b[_0x3633ec(0x409)]:return{'icon':_0x10f13a(_0x3928e2,{}),'colorClass':'univer-text-blue-500','i18nKey':_0x3633ec(0x2b4),'clickable':!0x1,'indicator':_0x3633ec(0x2a2)};case _0x18999b[_0x3633ec(0x32c)]:return{'icon':_0x10f13a(_0x533d54,{}),'colorClass':_0x3633ec(0x3ae),'i18nKey':_0x3633ec(0x2ae),'clickable':!0x1,'indicator':'static'};}}function Xt(_0xb321db){const _0x388c9a=_0x4885;let {status$:_0x56d488}=_0xb321db,_0x26b93f=_0x43c1b4(_0x56d488,_0x18999b[_0x388c9a(0x23a)]),_0x45382a=_0x4715f5(_0x14b5d2),_0x4313aa=_0x4715f5(_0x52b1cf),_0x239411=_0x56d377(()=>Yt(_0x26b93f),[_0x26b93f]),_0x3eebab=_0x26b93f!==_0x18999b[_0x388c9a(0x258)],_0x3bf224=_0x45382a['t'](_0x239411[_0x388c9a(0x3c3)]),_0x24fcaf=_0x239411['tooltipKey']?_0x45382a['t'](_0x239411['tooltipKey']):_0x3bf224,_0x2a749f=_0x1ae509(()=>{const _0x278284=_0x388c9a;_0x3eebab||_0x4313aa[_0x278284(0x200)]();},[_0x3eebab,_0x4313aa]),_0x19ddff=_0x1ae509(_0x1e1ac2=>{const _0x449d9c=_0x388c9a;!_0x3eebab&&(_0x1e1ac2[_0x449d9c(0x261)]==='Enter'||_0x1e1ac2[_0x449d9c(0x261)]==='\x20')&&(_0x1e1ac2[_0x449d9c(0x2e5)](),_0x4313aa[_0x449d9c(0x200)]());},[_0x3eebab,_0x4313aa]),_0x22f906=_0x10f13a(_0x388c9a(0x296),{'className':_0x3122e6(_0x388c9a(0x326),_0x388c9a(0x285),_0x239411['colorClass'],{'univer-animate-spin':_0x239411[_0x388c9a(0x3fa)]===_0x388c9a(0x2a2),'univer-animate-pulse':_0x239411[_0x388c9a(0x3fa)]===_0x388c9a(0x2d4)}),'aria-hidden':_0x388c9a(0x2c3),'children':_0x239411[_0x388c9a(0x2a5)]}),_0x297295=_0x10f13a(_0x388c9a(0x296),{'className':_0x3122e6(_0x388c9a(0x326),'univer-h-8\x20univer-w-8\x20univer-rounded-lg',_0x388c9a(0x3bf),'focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2',_0x388c9a(0x2fa),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:univer-bg-gray-700':_0x239411['clickable'],'univer-cursor-default':!_0x239411['clickable']}),'children':_0x22f906});return _0x239411[_0x388c9a(0x29e)]?_0x10f13a(_0x1eac27,{'title':_0x24fcaf,'placement':_0x388c9a(0x23f),'children':_0x10f13a(_0x388c9a(0x3d2),{'type':_0x388c9a(0x3d2),'onClick':_0x2a749f,'onKeyDown':_0x19ddff,'className':_0x3122e6(_0x388c9a(0x2f8),_0x388c9a(0x394),_0x388c9a(0x3cb),_0x388c9a(0x3be)),'aria-label':_0x3bf224+'\x20-\x20'+_0x24fcaf,'role':_0x388c9a(0x322),'aria-live':_0x388c9a(0x317),'aria-atomic':'true','children':_0x297295})}):_0x10f13a(_0x1eac27,{'title':_0x24fcaf,'placement':'bottom','children':_0x10f13a(_0x388c9a(0x35c),{'className':_0x3122e6(_0x388c9a(0x2f8),_0x388c9a(0x394),_0x388c9a(0x3cb)),'aria-label':_0x3bf224,'role':_0x388c9a(0x322),'aria-live':'polite','aria-atomic':_0x388c9a(0x2c3),'children':_0x297295})});}function W(_0x4c5073){'@babel/helpers - typeof';const _0x5af372=_0x4885;return W=typeof Symbol==_0x5af372(0x231)&&typeof Symbol[_0x5af372(0x399)]==_0x5af372(0x379)?function(_0x330794){return typeof _0x330794;}:function(_0xfa35fe){const _0x3f6d0d=_0x5af372;return _0xfa35fe&&typeof Symbol=='function'&&_0xfa35fe[_0x3f6d0d(0x36f)]===Symbol&&_0xfa35fe!==Symbol[_0x3f6d0d(0x2c1)]?_0x3f6d0d(0x379):typeof _0xfa35fe;},W(_0x4c5073);}function Zt(_0x55035b,_0x41ad1d){const _0x165ad6=_0x4885;if(W(_0x55035b)!=_0x165ad6(0x28c)||!_0x55035b)return _0x55035b;var _0x7aa9b8=_0x55035b[Symbol['toPrimitive']];if(_0x7aa9b8!==void 0x0){var _0xe1e522=_0x7aa9b8['call'](_0x55035b,_0x41ad1d||_0x165ad6(0x3a4));if(W(_0xe1e522)!='object')return _0xe1e522;throw TypeError(_0x165ad6(0x2dc));}return(_0x41ad1d==='string'?String:Number)(_0x55035b);}function Qt(_0x6d6cb6){const _0x456f7d=_0x4885;var _0x1fd4c1=Zt(_0x6d6cb6,_0x456f7d(0x2bd));return W(_0x1fd4c1)==_0x456f7d(0x379)?_0x1fd4c1:_0x1fd4c1+'';}function G(_0x1af416,_0x428338,_0x5f504f){const _0x5a9b15=_0x4885;return(_0x428338=Qt(_0x428338))in _0x1af416?Object[_0x5a9b15(0x3b6)](_0x1af416,_0x428338,{'value':_0x5f504f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1af416[_0x428338]=_0x5f504f,_0x1af416;}function K(_0x4bebac,_0x24b62a){return function(_0x217871,_0xe0e4c4){_0x24b62a(_0x217871,_0xe0e4c4,_0x4bebac);};}function q(_0x23b2fa,_0x49fe17,_0x261a0e,_0x61311d){const _0x32fa73=_0x4885;var _0x1b79b4=arguments[_0x32fa73(0x35f)],_0x39e73b=_0x1b79b4<0x3?_0x49fe17:_0x61311d===null?_0x61311d=Object[_0x32fa73(0x337)](_0x49fe17,_0x261a0e):_0x61311d,_0x1ad276;if(typeof Reflect==_0x32fa73(0x28c)&&typeof Reflect[_0x32fa73(0x406)]==_0x32fa73(0x231))_0x39e73b=Reflect['decorate'](_0x23b2fa,_0x49fe17,_0x261a0e,_0x61311d);else{for(var _0x40d256=_0x23b2fa['length']-0x1;_0x40d256>=0x0;_0x40d256--)(_0x1ad276=_0x23b2fa[_0x40d256])&&(_0x39e73b=(_0x1b79b4<0x3?_0x1ad276(_0x39e73b):_0x1b79b4>0x3?_0x1ad276(_0x49fe17,_0x261a0e,_0x39e73b):_0x1ad276(_0x49fe17,_0x261a0e))||_0x39e73b);}return _0x1b79b4>0x3&&_0x39e73b&&Object[_0x32fa73(0x3b6)](_0x49fe17,_0x261a0e,_0x39e73b),_0x39e73b;}let J=class extends _0x1b0287{constructor(_0x5169b6,_0x270e19,_0x5e1f38,_0x4219ce){const _0x2bae80=_0x4885;super(),this[_0x2bae80(0x248)]=_0x5169b6,this[_0x2bae80(0x359)]=_0x270e19,this[_0x2bae80(0x334)]=_0x5e1f38,this[_0x2bae80(0x314)]=_0x4219ce,G(this,_0x2bae80(0x3a7),new _0x3f7448(_0x18999b[_0x2bae80(0x23a)])),this[_0x2bae80(0x28e)](),this[_0x2bae80(0x37c)]();}[_0x206259(0x37c)](){const _0x1e5bdb=_0x206259;this['disposeWithMe'](_0x433e18(this[_0x1e5bdb(0x248)]['focused$'],this[_0x1e5bdb(0x248)][_0x1e5bdb(0x3d8)](_0x13410e[_0x1e5bdb(0x2f6)]),this['_univerInstanceService'][_0x1e5bdb(0x3d8)](_0x13410e[_0x1e5bdb(0x218)]))[_0x1e5bdb(0x217)](_0x52d48e(()=>$t(this[_0x1e5bdb(0x248)])),_0xc97d77(),_0x29a006(_0x170606=>_0x170606?this[_0x1e5bdb(0x334)][_0x1e5bdb(0x269)](_0x170606):_0xd28a5f(null)),_0x29a006(_0xe8b8f=>_0xe8b8f?_0xe8b8f[_0x1e5bdb(0x1f0)]:_0xd28a5f(_0x18999b[_0x1e5bdb(0x23a)])))[_0x1e5bdb(0x385)](_0x4d87f5=>{const _0x5197c7=_0x1e5bdb;this[_0x5197c7(0x3a7)][_0x5197c7(0x2ed)](_0x4d87f5);}));}['_initStatusComponent'](){const _0x2e9fa8=_0x206259;this['disposeWithMe'](this['_uiPartsService'][_0x2e9fa8(0x2cd)](_0x46b832['HEADER_MENU'],()=>_0x2f8c6f(en({'status$':this['_status$'][_0x2e9fa8(0x266)]()}),this[_0x2e9fa8(0x359)])));}};J=q([K(0x0,_0x2d5bc6),K(0x1,_0xb8a7b6(_0x59fba4)),K(0x2,_0xb8a7b6(_0x1544ac)),K(0x3,_0x1bb97b)],J);function $t(_0x17d56d){const _0x5f5087=_0x206259;let _0x272905=_0x17d56d[_0x5f5087(0x377)](),_0x52d376=_0x272905==null?void 0x0:_0x272905[_0x5f5087(0x2f0)]();if(_0x52d376&&!_0x6bde86(_0x52d376))return _0x52d376;let _0x2c9ae3=_0x17d56d[_0x5f5087(0x335)](_0x13410e['UNIVER_DOC']),_0x2e6a25=_0x2c9ae3==null?void 0x0:_0x2c9ae3[_0x5f5087(0x2f0)]();if(_0x2e6a25&&!_0x6bde86(_0x2e6a25))return _0x2e6a25;let _0x1d5551=_0x17d56d[_0x5f5087(0x335)](_0x13410e[_0x5f5087(0x218)]);if(_0x1d5551)return _0x1d5551[_0x5f5087(0x2f0)]();let _0x589862=_0x17d56d[_0x5f5087(0x3ce)](_0x13410e['UNIVER_DOC'])[_0x5f5087(0x400)](_0x3a5b32=>!_0x6bde86(_0x3a5b32[_0x5f5087(0x2f0)]()));return _0x589862?_0x589862['getUnitId']():null;}function en(_0x49735e){let {status$:_0x3e6fe4}=_0x49735e;return function(){return _0x10f13a(Xt,{'status$':_0x3e6fe4});};}const tn=_0x49020c(_0x206259(0x331));function _0x6a1c(){const _0x355e89=['_docSyncEditingCollabCursorService','_cursorShapes','_heartbeatTimer','code','OTHER_CLIENT_EDITING','closePath','UPDATE_CURSOR','148372cNCyYH','subscribe','_updateCollabCursors','[Window\x20Error]:\x20','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_ensureSubject','_refreshCollabCursors','getConfig','_memberService','_offsetY','fillStyle','_lastResponseTimestamp','range','_textBubble','_docClipboardService','event$','univer-border-none\x20univer-bg-transparent','getDocRanges','sheetID','isArray','collaboration-client-ui.permission.content','iterator','assignAColorForMemberID','registerBeforeClose','RemoveColCommandId','_transformHistoryAndStateStack','FromArray','_context','roomMembers','/universer-api/license/formula/limit/status','_anchor','set','default','fillText','_stopBlinking','_status$','_setFormulaLimitStatus','body','setItem','_checkCalculationAvailable','getMergeData','_labelPosition','univer-text-green-500','rgba(','getViewport','_getFormulaLimitStatus','requireSession','_handleLeaveEvent','hide','_localeService','defineProperty','_clearOtherTimers','values','undoState','SUCCESS','_applyCommand','resize','onRendered','univer-appearance-none','univer-transition-all\x20univer-duration-200','collaboration-client-ui.collabStatus.fetchMiss','rgb','unitId','i18nKey','subscribeEvent','_roomMembers$','_unitStatus','_pointerMoveDisposable','_transformService','rgba','offsetY','univer-m-0\x20univer-p-0','_startBlinking','top','getAllUnitsForType','save','2467108nHNRYq','_localStorageService','button','createInstance','USERS_LEAVE','getFormulaLimitStatusUrl','getStateCache','45380drrIav','getCurrentTypeOfUnit$','arc','_syncEditingCollabCursorService','_updateSubUnitFromURLParams','executeCommand','_registerDependencies','slice','collaboration-client-ui.collabStatus.conflict','stringify','_range','color','_dataLoaderService','?taskId=','invokeId','_saveTaskMap','_toggleOnline','unshift','saveTaskMap','blue.400','_initCommandInterceptor','data','startColumn','map','shift','_httpService','version','enableFrontendLog','search','_getAnchorBounding','highlight','_messageService','complete','getActiveSheet','NO_OTHER_CLIENTS_EDITING','indicator','_removeClearOtherTimer','_updateURLWithCurrentState','delete','saveImage','_docTransformSelectionsService','find','getVpScrollXYInfoByPosToVp','addEventListener','_removeCollabCursors','removeEventListener','getSheetId','decorate','imageSourceType','getCollabCursors$','PENDING','collaboration-client-ui.session.connection-failed','findNodePositionByCharIndex','_logService','status$','_themeService','addObjects','6hKaPXN','transformRemoteChangeset','4TYnIFC','loadUnit','purple.300','FETCH_MISS','_doCreateSocket','getItem','collab-text-range-','_initDependencies','getCellMatrix','highlightSecond','_onCursorUpdate','reconnect','[RemoteUniscriptService]:\x20no\x20focused\x20unit','origin','setAlpha','_document','getUnhiddenWorksheets','docStateChange$','_blinkIntervalTimer','_handleJoinEvent','_startDocCollabCursor','max','actions','_scheduleHeartbeat','_checkAndWaitForCalculationPermission','beforeCommandExecuted','green.600','urlChange$','_initEntityListener','addObject','getUniverSheetInstance','message','_scene','application/json','pipe','UNIVER_SHEET','storage','_notificationService','collaboration-client-ui.formula.calculation.started','_pollingInterval','transformIMECache','univer-text-blue-500','clearInterval','_transformPreviousActiveRange','OTHER_CLIENTS_EDITING','2188383AQokiv','_initUnhandledRejectionListener','getUnitStatus$','selections','collaboration-client-ui.session.collaboration-timeout','START_CALCULATION','disposeWithMe','get','_docSkeletonManagerService','_draw','_memberID','Failed','_docStateChangeManagerService','CONFLICT','from','function','rgba(255,\x20255,\x20255,\x200.01)','SUBMIT_CHANGESET_TIMEOUT','min','setTimeout','currentSkeleton$','sessionTicket','collaboration-client-ui.formula.calculation.unable','getCurrentSelections','NOT_COLLAB','_collabCursorState$','_startSheetCollabCursor','height','collaboration-client-ui.formula.calculation.waiting','bottom','_revisionService','registerRenderModule','getActiveRange','_setupBeforeClosingHandler','setStateCache','row','_toggleOffline','univer-text-orange-500','_univerInstanceService','onPointerEnter$','currentUsage','_drawTextRange','onPointerMove$','selection','/run/','getSkeleton','_entities','getColorFromTheme','replaceState','transformStateCache','parseInt','_collabCursorController','getRangePointData','_commandService','OFFLINE','colno','getRelativeToViewportCoord','runOnServer','post','_cachedData','_docSkeleton','transformMutation','debug','key','maxFormulaLimit','_hasFormulaInDirtyRanges','getTypeOfUnitAdded$','push','asObservable','_isBlinkVisible','collaboration-client-ui.collaboration.closeRoom','getCollabEntity$','_session','_highlight','toString','getUndoRedoMutationParamsCache','/universer-api/frontend/logs','_unitOnClients','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_blinkTimer','_eventUnsubscribe','dispose$','eventID','_cursor','/universer-api/license/formula/limit/done','Unknown\x20user','_collabSessionService','jiqing.500','forEach','transformByState','strokeWidth','collaboration-client-ui.collaboration.single-unit.warning','setShapeProps','exhaustSavingTask','collaboration-client-ui.collabStatus.offline','roomMembers$','_entityInit$','RECT','_colorAssignService','univer-text-xl\x20univer-transition-colors\x20univer-duration-200','ticket','getTypeOfUnitDisposed$','history','then','socket$','editingUnit','object','_onCursorDelete','_initStatusComponent','getCellPositionByOffset','transformSelections','_lastPointer','_currentUsage','size','font','currentTheme$','span','290zvvXTH','replace','_maxFormulaLimit','collaboration-client-ui.collabStatus.notCollab','dispose','_shapes','_instanceService','clickable','getMember','setActiveRange','_initUserListener','spin','syncEditingCollabCursor','addClipboardHook','icon','now','_initEvent','setInterval','enableLocalCache','_color','setConfig','VIEW_MAIN','ranges','collaboration-client-ui.collabStatus.synced','cursorInfo','143424gtrAUY','/universer-api/license/formula/limit/start','_localCacheService','hovered','collaboration-client-ui.collabStatus.syncing','_config','getSheetBySheetId','text','InsertRowCommandId','_handleHeartbeatEvent','onStarting','_docTransformStateCacheService','_getLighterColor','string','includes','\x20at\x20','getCurrentSkeleton','prototype','moveTo','true','_getSessionTicket','_backgroundColor','getOffsetConfig',',\x200.2)','entityInit$','split','getParam','newValue','_saveCache','registerComponent','_cursorInfo$','yellow.400','_initCommandExecutedListener','doc.mutation.rich-text-editing','_name','startFormulaLimitUrl','pulse','_selfUnitIDs','drawWith','clearTimeout','setParam','labelPosition','_render','startRow','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','result','redoState','_initWindowErrorListener','init','DeleteRangeMoveLeftCommandId','_updateLocalCursor','triggerDblclick','onMouseMove','preventDefault','sessionStatus$','_createSocketURL','1672bEuwLn','_colorIndex','_initResize','collabCursorState$','onTransformChange$','next','_init','[Unhandled\x20Rejection]:\x20','getUnitId','show','join','_startCalculationLimit','_anchorDot','_taskIds','UNIVER_DOC','sheetId','univer-inline-flex\x20univer-items-center\x20univer-justify-center','784099igqvlX','dark:focus:univer-ring-offset-gray-800','name','beginPath','m2Prime','disableLocalCache','_urlService','InsertRangeMoveRightCommandId','getMemberID','showText','Loading','unit','_hovered','_scheduleClearOtherTimer','add','measureText','registerRefRange','_clearPolling','endColumn','[LogService\x20Error]:\x20','_cursors','href','static','_registerRenderDependencies','column','0.25.2','type','_uiPartsService','stack','functionsExecutedState','polite','Success','onCommandExecuted','_send','_drawRectRange','evenodd','subunit','isEditing','_disabled','error','RemoveRowCommandId','status','unhandledrejection','unitID','memberID','univer-flex\x20univer-items-center\x20univer-justify-center','cursorInfo$','stage','limitInfo','_drawAnchor','subUnitId','SYNCED','getCurrentRevOfUnit','with','PERMISSION_DENIED','lineno','uni.network.url-service','fill','some','_collaborationController','getCurrentUnitOfType','_refRangeService','getOwnPropertyDescriptor','_docTransformIMECacheService','_getSaveTimeout','toRgbString','collaboration-client-ui.permission.title','restore','searchParams','width','pushState','_collaborationSessionService','isActive','_highlightSecond','...','73719WCagsc','464mOjBHt','_uploadLog','_getMergeRange','_assignedColors','_beforeCloseService','startsWith','_getSheetObject','activeSheet$','_sheetSkeletonManagerService','_renderManagerService','deepClone','parse','params','releaseFormulaLimitUrl','removeParam','setUndoRedoMutationParamsCache','_releaseCalculationLimit','has','0.2)','_getScale','_injector','JOIN_ROOM_FAILED','[CollaborationDataLoaderController]','div','mutations','_hover','length','totalFormulasToCalculate','ONLINE','m1Prime','makeDirty','stageInfo','runId','_hideTimer','onPointerLeave$','Warning','backgroundColor','unsubscribe','_id','lineTo','black','SOCKET_FAILED_RETRY','constructor','_showText','Error','getValue','location','_online','_showGuardMessage','transformMutationsWithChangeset','getFocusedUnit','_configService','symbol','_handleHover','endRow','_initStatusListener'];_0x6a1c=function(){return _0x355e89;};return _0x6a1c();}let Y=class extends _0x44d0b2{constructor(_0x5e8bff,_0x557980,_0x151ed7,_0x20ad10,_0x507b3c){const _0x114087=_0x206259;super(),this[_0x114087(0x2ff)]=_0x5e8bff,this[_0x114087(0x1ef)]=_0x557980,this[_0x114087(0x257)]=_0x151ed7,this[_0x114087(0x3e3)]=_0x20ad10,_0x507b3c?_0x507b3c==null||_0x507b3c['whenReady']()[_0x114087(0x289)](()=>this[_0x114087(0x2ee)]()):(this[_0x114087(0x1ef)]['debug'](_0x114087(0x35b),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x114087(0x2ee)]());}async[_0x206259(0x2ee)](){const _0x5a6d61=_0x206259;let _0x4b0f91=this[_0x5a6d61(0x2ff)][_0x5a6d61(0x2ca)]('unit'),_0x589496=this[_0x5a6d61(0x2ff)][_0x5a6d61(0x2ca)](_0x5a6d61(0x313)),_0x11d24c=this['_urlService'][_0x5a6d61(0x2ca)]('subunit');if(!_0x4b0f91||!_0x589496){this[_0x5a6d61(0x1ef)][_0x5a6d61(0x260)](_0x5a6d61(0x35b),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}let _0x1052f0=await this['_dataLoaderService'][_0x5a6d61(0x1f6)](_0x4b0f91,Number(_0x589496),_0x11d24c);_0x1052f0&&_0x1052f0 instanceof _0x5e88af&&this['_setupSubUnitSync'](_0x1052f0);}async['_setupSubUnitSync'](_0x58a413){const _0x18cb6a=_0x206259;await this[_0x18cb6a(0x3db)](_0x58a413),_0x58a413[_0x18cb6a(0x34c)][_0x18cb6a(0x217)](_0x384030(this['dispose$']))['subscribe'](_0x5dc3f1=>{_0x5dc3f1&&this['_updateURLWithCurrentState'](_0x5dc3f1);}),this[_0x18cb6a(0x2ff)]['urlChange$']['pipe'](_0x384030(this[_0x18cb6a(0x273)]))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x58a413));}[_0x206259(0x3fc)](_0x514623,_0x3de968=!0x1){const _0x1c81ee=_0x206259;let _0x15e5b9=this[_0x1c81ee(0x2ff)]['getParam'](_0x1c81ee(0x31d));_0x514623[_0x1c81ee(0x405)]()!==_0x15e5b9&&this[_0x1c81ee(0x2ff)][_0x1c81ee(0x2d8)](_0x1c81ee(0x31d),_0x514623['getSheetId'](),_0x3de968);}async[_0x206259(0x3db)](_0x1647b3){const _0x4bd71c=_0x206259;var _0x1c932f;let _0x4cfc61=this[_0x4bd71c(0x2ff)]['getParam'](_0x4bd71c(0x31d));if(!_0x4cfc61||!_0x1647b3['getSheetBySheetId'](_0x4cfc61)){let _0x1f9903=_0x1647b3[_0x4bd71c(0x205)]()[0x0],_0x241596=_0x1647b3[_0x4bd71c(0x2b6)](_0x1f9903);if(!_0x241596)return;this[_0x4bd71c(0x3fc)](_0x241596,!0x0),await this['_commandService'][_0x4bd71c(0x3dc)](_0x5ce7e1['id'],{'unitId':_0x1647b3[_0x4bd71c(0x2f0)](),'subUnitId':_0x1f9903});return;}((_0x1c932f=_0x1647b3[_0x4bd71c(0x3f8)]())==null?void 0x0:_0x1c932f['getSheetId']())!==_0x4cfc61&&await this[_0x4bd71c(0x257)][_0x4bd71c(0x3dc)](_0x5ce7e1['id'],{'unitId':_0x1647b3[_0x4bd71c(0x2f0)](),'subUnitId':_0x4cfc61});}};Y=q([K(0x0,tn),K(0x1,_0x5916ce),K(0x2,_0x498ceb),K(0x3,_0xb8a7b6(_0x37960b)),K(0x4,_0x5b49dd(_0x51294a))],Y);var nn='@univerjs-pro/collaboration-client-ui',rn=_0x206259(0x312);let an=class extends _0x44d0b2{constructor(_0x2b9d13,_0x89d62){const _0x46f6b3=_0x206259;super(),this[_0x46f6b3(0x392)]=_0x2b9d13,this['_imageIoService']=_0x89d62,this[_0x46f6b3(0x2ee)]();}[_0x206259(0x2ee)](){const _0x48a64d=_0x206259;let _0x365f86=this;this[_0x48a64d(0x228)](this['_docClipboardService'][_0x48a64d(0x2a4)]({'onBeforePasteImage':async _0x45e2ca=>{const _0x140fda=_0x48a64d;let _0x5e1311=await _0x365f86['_imageIoService'][_0x140fda(0x3fe)](_0x45e2ca);return _0x5e1311?{'source':_0x5e1311['source'],'imageSourceType':_0x5e1311[_0x140fda(0x407)]}:null;}}));}};an=q([K(0x0,_0x42fc83),K(0x1,_0x591bd3)],an);const on=[_0x206259(0x1f7),_0x206259(0x279),_0x206259(0x20f),'red.300',_0x206259(0x3ea),_0x206259(0x2cf)];var sn=class extends _0x1b0287{constructor(..._0x414f74){const _0x276e6d=_0x206259;super(..._0x414f74),G(this,_0x276e6d(0x348),new Map()),G(this,_0x276e6d(0x2e9),0x0);}['assignAColorForMemberID'](_0x2767c3){const _0x17993e=_0x206259;if(this[_0x17993e(0x348)]['has'](_0x2767c3))return this['_assignedColors'][_0x17993e(0x229)](_0x2767c3);let _0x3bc32a=on[this[_0x17993e(0x2e9)]];return this[_0x17993e(0x2e9)]=(this[_0x17993e(0x2e9)]+0x1)%on[_0x17993e(0x35f)],this[_0x17993e(0x348)][_0x17993e(0x3a3)](_0x2767c3,_0x3bc32a),_0x3bc32a;}};function _0x4885(_0x56ee26,_0x1be633){_0x56ee26=_0x56ee26-0x1ed;const _0x6a1c75=_0x6a1c();let _0x48852a=_0x6a1c75[_0x56ee26];return _0x48852a;}function cn(_0x1a4cc9){const _0x32c480=_0x206259;let _0x12874c='';for(let _0x4b64ef of _0x1a4cc9){let {startOffset:_0x30013f,endOffset:_0x87cef3,isActive:_0x5db32a,rangeType:_0x455cc5,segmentId:_0x399b39,segmentPage:_0x329c8e}=_0x4b64ef;_0x12874c[_0x32c480(0x35f)]&&(_0x12874c+=','),_0x12874c+=_0x30013f+':'+_0x87cef3+':'+(_0x5db32a?'1':'0')+':'+_0x455cc5+':'+_0x399b39+':'+_0x329c8e;}return _0x12874c;}function ln(_0x2effa6){const _0x16e638=_0x206259;let _0x2d867d=_0x2effa6[_0x16e638(0x2c9)](','),_0x460fae=[];for(let _0x1bb378 of _0x2d867d){let [_0x354062,_0x3b24d7,_0x1364b8,_0x592f55,_0x52d693,_0x3994d7]=_0x1bb378[_0x16e638(0x2c9)](':');_0x460fae['push']({'startOffset':Number(_0x354062),'endOffset':Number(_0x3b24d7),'collapsed':_0x354062===_0x3b24d7,'isActive':_0x1364b8==='1','rangeType':_0x592f55===_0x256699['TEXT']?_0x256699['TEXT']:_0x256699[_0x16e638(0x283)],'segmentId':typeof _0x52d693==_0x16e638(0x2bd)?String(_0x52d693):'','segmentPage':Number(_0x3994d7==null?-0x1:_0x3994d7)});}return _0x460fae[_0x16e638(0x333)](_0x57a113=>_0x57a113[_0x16e638(0x341)])||(_0x460fae[0x0][_0x16e638(0x341)]=!0x0),_0x460fae;}var un=class extends _0x44d0b2{constructor(..._0x1a0855){const _0x1d3b85=_0x206259;super(..._0x1a0855),G(this,'_collabCursorState$',new _0x3f7448(null)),G(this,_0x1d3b85(0x2eb),this[_0x1d3b85(0x23b)][_0x1d3b85(0x266)]());}['syncEditingCollabCursor'](_0x20a4a6){const _0x5b4ba8=_0x206259;let {unitID:_0x77ecb,memberID:_0x2e9de8,textRanges:_0x489ce8}=_0x20a4a6,_0x2067a1=cn(_0x489ce8);if(_0x2067a1==='')return;let _0x5d9046={'unitID':_0x77ecb,'memberID':_0x2e9de8,'selection':_0x2067a1};this[_0x5b4ba8(0x23b)][_0x5b4ba8(0x2ed)](_0x5d9046);}};let dn=class extends _0x44d0b2{get['cursorInfo'](){const _0x30e4e5=_0x206259;return this[_0x30e4e5(0x2ce)][_0x30e4e5(0x372)]();}get[_0x206259(0x3a0)](){const _0x46a42a=_0x206259;return this[_0x46a42a(0x3c5)]['getValue']();}constructor(_0x3d2e44,_0x3621b1,_0x41de5f,_0x25e16d,_0x35154b,_0x279e76,_0x391240,_0xd5fafc,_0x3c288b){const _0x2ed3c9=_0x206259;super(),this[_0x2ed3c9(0x324)]=_0x3d2e44,this[_0x2ed3c9(0x26a)]=_0x3621b1,this[_0x2ed3c9(0x359)]=_0x41de5f,this[_0x2ed3c9(0x284)]=_0x25e16d,this['_memberService']=_0x35154b,this[_0x2ed3c9(0x3da)]=_0x279e76,this[_0x2ed3c9(0x3c8)]=_0x391240,this['_univerInstanceService']=_0xd5fafc,this[_0x2ed3c9(0x257)]=_0x3c288b,G(this,_0x2ed3c9(0x374),!0x1),G(this,_0x2ed3c9(0x2ee),!0x1),G(this,'_cursorInfo$',new _0x3f7448(new Map())),G(this,_0x2ed3c9(0x327),this[_0x2ed3c9(0x2ce)][_0x2ed3c9(0x266)]()),G(this,_0x2ed3c9(0x3c5),new _0x3f7448([])),G(this,_0x2ed3c9(0x281),this[_0x2ed3c9(0x3c5)][_0x2ed3c9(0x217)](_0x3352de(0x12c))),G(this,'_updateLocalCursor',_0x4e5741(_0x3a2967=>{const _0x3a3c74=_0x2ed3c9;let _0x2aebeb={'eventID':_0x12ec4a[_0x3a3c74(0x383)],'data':{'unitID':this[_0x3a3c74(0x324)],'memberID':this['_session'][_0x3a3c74(0x301)](),'selection':cn(_0x3a2967)}};this[_0x3a3c74(0x26a)]['send'](_0x2aebeb,this[_0x3a3c74(0x324)]);},0x64));}[_0x206259(0x29b)](){const _0x95a87a=_0x206259;super['dispose'](),this['_cursorInfo$'][_0x95a87a(0x2ed)](new Map()),this['_cursorInfo$'][_0x95a87a(0x3f7)](),this[_0x95a87a(0x3c5)][_0x95a87a(0x2ed)]([]),this[_0x95a87a(0x3c5)][_0x95a87a(0x3f7)]();}[_0x206259(0x2e0)](){const _0x58b19b=_0x206259;this[_0x58b19b(0x2ee)]||(this[_0x58b19b(0x2ee)]=!0x0,this[_0x58b19b(0x26a)]['sessionStatus$'][_0x58b19b(0x217)](_0x384030(this[_0x58b19b(0x273)]))[_0x58b19b(0x385)](_0x671835=>{const _0xa7be01=_0x58b19b;_0x671835===_0x2457ac[_0xa7be01(0x361)]?this[_0xa7be01(0x3e7)]():this[_0xa7be01(0x246)]();}),this['_session']['event$'][_0x58b19b(0x217)](_0x384030(this[_0x58b19b(0x273)]))['subscribe'](_0x50f561=>{const _0x49409d=_0x58b19b;let _0x36b12f=_0x50f561[_0x49409d(0x274)];_0x36b12f===_0x12ec4a['UPDATE_CURSOR']&&this[_0x49409d(0x1ff)](_0x50f561),_0x36b12f===_0x12ec4a['USERS_LEAVE']&&this[_0x49409d(0x28d)](_0x50f561);}),this[_0x58b19b(0x228)](this['_commandService'][_0x58b19b(0x319)](_0x4b02eb=>{const _0xb6d08f=_0x58b19b;let _0x7ca1c8=_0x4b02eb['params'];_0x7ca1c8!=null&&this[_0xb6d08f(0x374)]&&_0x4b02eb['id']===_0x223835['id']&&_0x7ca1c8[_0xb6d08f(0x3c2)]===this[_0xb6d08f(0x324)]&&_0x7ca1c8[_0xb6d08f(0x31e)]===!0x1&&_0x7ca1c8[_0xb6d08f(0x2ad)]['length']>0x0&&this[_0xb6d08f(0x2e2)](_0x7ca1c8[_0xb6d08f(0x2ad)]);})),this[_0x58b19b(0x3da)]['collabCursorState$'][_0x58b19b(0x217)](_0x384030(this[_0x58b19b(0x273)]))[_0x58b19b(0x385)](_0x3da3b7=>{const _0x3c7f61=_0x58b19b;if((_0x3da3b7==null?void 0x0:_0x3da3b7[_0x3c7f61(0x324)])!==this[_0x3c7f61(0x324)])return;let _0x3b03f1={'eventID':_0x12ec4a['UPDATE_CURSOR'],'data':_0x3da3b7};this[_0x3c7f61(0x1ff)](_0x3b03f1);}),this[_0x58b19b(0x228)](this[_0x58b19b(0x257)][_0x58b19b(0x319)](_0xdbab3=>{const _0x58af03=_0x58b19b;if(_0xdbab3[_0x58af03(0x351)]==null)return;let _0x27721a=_0xdbab3[_0x58af03(0x351)];if(_0xdbab3['id']!==_0x524203['id']||_0x27721a[_0x58af03(0x3c2)]!==this['unitID'])return;let _0x57b83f={'id':'doc.mutation.rich-text-editing','params':_0x27721a},_0x6ec825=this['cursorInfo'];for(let [_0xc3be05,_0x2ea7f3]of _0x6ec825){let _0xa7928b={'id':_0x58af03(0x2d1),'params':{'unitId':this[_0x58af03(0x324)],'actions':null,'textRanges':_0x2ea7f3[_0x58af03(0x2ad)]}},_0x39ea2e=this['_transformService'][_0x58af03(0x25f)](_0x57b83f,_0xa7928b,!0x1);if(_0x537eeb(_0x39ea2e))throw _0x39ea2e[_0x58af03(0x320)];_0x6ec825[_0x58af03(0x3a3)](_0xc3be05,{..._0x2ea7f3,'ranges':_0x39ea2e[_0x58af03(0x2fd)][_0x58af03(0x351)]['textRanges']});}queueMicrotask(()=>{const _0x41790e=_0x58af03;this[_0x41790e(0x2ce)][_0x41790e(0x2ed)](_0x6ec825);});})));}[_0x206259(0x1ff)](_0x294164){const _0xe652b4=_0x206259;var _0x2988f8,_0x254416;let {memberID:_0x3ef05b,selection:_0x16dba7}=_0x294164[_0xe652b4(0x3ec)],_0x2ca4b5=ln(_0x16dba7),_0x526531=(_0x2988f8=(_0x254416=this['_memberService'][_0xe652b4(0x29f)](this[_0xe652b4(0x324)],_0x3ef05b))==null?void 0x0:_0x254416['name'])==null?_0xe652b4(0x277):_0x2988f8,_0x37add0={'color':this[_0xe652b4(0x284)][_0xe652b4(0x39a)](_0x3ef05b),'name':_0x526531,'ranges':_0x2ca4b5},_0x313941=this[_0xe652b4(0x2af)];_0x313941['set'](_0x3ef05b,_0x37add0),this['_cursorInfo$']['next'](_0x313941);}['_onCursorDelete'](_0x1bb681){const _0x3f3320=_0x206259;let {memberID:_0x15634e}=_0x1bb681['data'],_0x2fb307=this[_0x3f3320(0x2af)];_0x2fb307['delete'](_0x15634e),this[_0x3f3320(0x2ce)][_0x3f3320(0x2ed)](_0x2fb307);}[_0x206259(0x3e7)](){const _0x542e1e=_0x206259;var _0x2b7513;if(this[_0x542e1e(0x374)]=!0x0,((_0x2b7513=this[_0x542e1e(0x248)][_0x542e1e(0x377)]())==null?void 0x0:_0x2b7513[_0x542e1e(0x2f0)]())!==this[_0x542e1e(0x324)])return;let _0x300fb4=this[_0x542e1e(0x359)][_0x542e1e(0x229)](_0x92d5ec)[_0x542e1e(0x395)]();Array[_0x542e1e(0x397)](_0x300fb4)&&_0x300fb4['length']>0x0&&this[_0x542e1e(0x2e2)](_0x300fb4);}[_0x206259(0x246)](){this['_online']=!0x1;}};dn=q([K(0x2,_0xb8a7b6(_0x59fba4)),K(0x3,_0xb8a7b6(sn)),K(0x4,_0xb8a7b6(_0x14dfef)),K(0x5,_0xb8a7b6(un)),K(0x6,_0x4e87b4),K(0x7,_0x2d5bc6),K(0x8,_0x498ceb)],dn);const fn=()=>{let _0x512ffa=[],_0x77da6e=!0x1;return _0xd29646=>{const _0xe62c78=_0x4885;_0x512ffa[_0xe62c78(0x265)](_0xd29646),_0x77da6e||(_0x77da6e=!0x0,setTimeout(()=>{_0x512ffa['forEach'](_0x271e21=>_0x271e21()),_0x512ffa=[],_0x77da6e=!0x1;}));};};let pn=class extends _0x44d0b2{get[_0x206259(0x2af)](){return this['_cursorInfo$']['getValue']();}get['roomMembers'](){const _0x3bbf16=_0x206259;return this[_0x3bbf16(0x3c5)][_0x3bbf16(0x372)]();}constructor(_0xb5d557,_0x1abe12,_0x4d2fcc,_0x1605dd,_0x2b5b94,_0x4223e2,_0x13e7fc,_0x40e225){const _0x347576=_0x206259;super(),this[_0x347576(0x324)]=_0xb5d557,this['_session']=_0x1abe12,this['_injector']=_0x4d2fcc,this[_0x347576(0x284)]=_0x1605dd,this[_0x347576(0x38c)]=_0x2b5b94,this[_0x347576(0x248)]=_0x4223e2,this['_commandService']=_0x13e7fc,this[_0x347576(0x336)]=_0x40e225,G(this,_0x347576(0x374),!0x1),G(this,_0x347576(0x2ee),!0x1),G(this,'_cursorInfo$',new _0x3f7448(new Map())),G(this,_0x347576(0x327),this[_0x347576(0x2ce)]['asObservable']()),G(this,_0x347576(0x3c5),new _0x3f7448([])),G(this,_0x347576(0x281),this[_0x347576(0x3c5)][_0x347576(0x217)](_0x3352de(0x12c))),G(this,_0x347576(0x2e2),_0x4e5741((_0x6b78c3,_0x536f7f)=>{const _0x48af6a=_0x347576;let _0x39fb1c={'eventID':_0x12ec4a['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x48af6a(0x26a)]['getMemberID'](),'selection':_0x551eee(_0x6b78c3,_0x536f7f[_0x48af6a(0x390)])}};this[_0x48af6a(0x26a)]['send'](_0x39fb1c,this[_0x48af6a(0x324)]);},0x64));}['dispose'](){const _0x969d64=_0x206259;super[_0x969d64(0x29b)](),this[_0x969d64(0x2ce)][_0x969d64(0x2ed)](new Map()),this[_0x969d64(0x2ce)][_0x969d64(0x3f7)](),this['_roomMembers$'][_0x969d64(0x2ed)]([]),this['_roomMembers$'][_0x969d64(0x3f7)]();}[_0x206259(0x2e0)](){const _0x20db40=_0x206259;this[_0x20db40(0x2ee)]||(this[_0x20db40(0x2ee)]=!0x0,this['_session'][_0x20db40(0x2e6)][_0x20db40(0x217)](_0x384030(this[_0x20db40(0x273)]))[_0x20db40(0x385)](_0x379b04=>{const _0x334220=_0x20db40;_0x379b04===_0x2457ac['ONLINE']?this[_0x334220(0x3e7)]():this[_0x334220(0x246)]();}),this['_session'][_0x20db40(0x393)][_0x20db40(0x217)](_0x384030(this[_0x20db40(0x273)]))[_0x20db40(0x385)](_0x23af4c=>{const _0x4cc4e4=_0x20db40;let _0x408d38=_0x23af4c[_0x4cc4e4(0x274)];_0x408d38===_0x12ec4a[_0x4cc4e4(0x383)]&&this[_0x4cc4e4(0x1ff)](_0x23af4c),_0x408d38===_0x12ec4a[_0x4cc4e4(0x3d4)]&&this[_0x4cc4e4(0x28d)](_0x23af4c);}),this['_onRefRangeChange'](),this[_0x20db40(0x228)](this['_commandService'][_0x20db40(0x319)](_0xe8cd7f=>{const _0x46ef6a=_0x20db40;if(this[_0x46ef6a(0x374)]&&_0xe8cd7f['id']===_0x3f70f2['id']&&_0xe8cd7f[_0x46ef6a(0x351)]['unitId']===this[_0x46ef6a(0x324)]){let _0x69d9ef=_0xe8cd7f['params'];this['_updateLocalCursor'](_0x69d9ef[_0x46ef6a(0x32b)],_0x69d9ef[_0x46ef6a(0x225)][0x0]);}})));}[_0x206259(0x1ff)](_0x3cf99b){const _0x582553=_0x206259;var _0xb02f7a,_0x4995a1;let {memberID:_0x103159,selection:_0x29142a}=_0x3cf99b[_0x582553(0x3ec)],{sheetName:_0x1ab0a7,range:_0x15691e}=_0x3eb8fa(_0x29142a),_0x3a84a2={'name':(_0xb02f7a=(_0x4995a1=this[_0x582553(0x38c)][_0x582553(0x29f)](this[_0x582553(0x324)],_0x103159))==null?void 0x0:_0x4995a1['name'])==null?_0x582553(0x277):_0xb02f7a,'range':this[_0x582553(0x347)](_0x1ab0a7,_0x15691e),'sheetID':_0x1ab0a7,'color':this[_0x582553(0x284)][_0x582553(0x39a)](_0x103159),'selection':_0x29142a},_0x3a6bd5=this[_0x582553(0x2af)];_0x3a6bd5['set'](_0x103159,_0x3a84a2),this[_0x582553(0x2ce)][_0x582553(0x2ed)](_0x3a6bd5);}[_0x206259(0x28d)](_0x15acb9){const _0x3f1b56=_0x206259;let {memberID:_0x277e0f}=_0x15acb9[_0x3f1b56(0x3ec)],_0x2a2097=this['cursorInfo'];_0x2a2097[_0x3f1b56(0x3fd)](_0x277e0f),this[_0x3f1b56(0x2ce)][_0x3f1b56(0x2ed)](_0x2a2097);}[_0x206259(0x347)](_0x1910b5,_0x99569c){const _0x37d3dd=_0x206259;var _0x314600;let _0x91bb0b=(_0x314600=this[_0x37d3dd(0x248)][_0x37d3dd(0x213)](this[_0x37d3dd(0x324)]))==null||(_0x314600=_0x314600[_0x37d3dd(0x2b6)](_0x1910b5))==null?void 0x0:_0x314600[_0x37d3dd(0x3ac)]();return(_0x91bb0b==null?void 0x0:_0x91bb0b[_0x37d3dd(0x400)](_0x2b9f19=>_0x25bacd['contains'](_0x2b9f19,_0x99569c)))||_0x99569c;}['_onRefRangeChange'](){const _0x14a5ca=_0x206259;let _0x1ca747=new _0x540fea(),_0x1031b3=fn(),_0x5890dd=()=>{const _0x1aa3ee=_0x4885;_0x1ca747[_0x1aa3ee(0x29b)]();let _0x2db3e6=(_0x2fae4f,_0x1edc59,_0x39b877,_0x58a05d)=>{const _0x3f84ec=_0x1aa3ee;let _0x20d4e0=[];switch(_0x2fae4f['id']){case _0xba447[_0x3f84ec(0x2e1)]:_0x20d4e0=_0x517c5a(_0x2fae4f,_0x58a05d);break;case _0xba447['DeleteRangeMoveUpCommandId']:_0x20d4e0=_0x4ddcad(_0x2fae4f,_0x58a05d);break;case _0xba447['InsertColCommandId']:_0x20d4e0=_0x4e3dcb(_0x2fae4f,_0x58a05d);break;case _0xba447['InsertRangeMoveDownCommandId']:_0x20d4e0=_0x21e2e7(_0x2fae4f,_0x58a05d);break;case _0xba447[_0x3f84ec(0x300)]:_0x20d4e0=_0x10b9dc(_0x2fae4f,_0x58a05d);break;case _0xba447[_0x3f84ec(0x2b8)]:_0x20d4e0=_0x2bbd43(_0x2fae4f,_0x58a05d);break;case _0xba447['MoveRangeCommandId']:_0x20d4e0=_0x18f08b(_0x2fae4f,_0x58a05d);break;case _0xba447[_0x3f84ec(0x39c)]:_0x20d4e0=_0x20ac72(_0x2fae4f,_0x58a05d);break;case _0xba447[_0x3f84ec(0x321)]:_0x20d4e0=_0x5c1a91(_0x2fae4f,_0x58a05d);break;}let _0x4e8639=_0xf2e426(_0x20d4e0,_0x58a05d),_0x17ab2c=this['cursorInfo'][_0x3f84ec(0x229)](_0x1edc59);if(_0x17ab2c&&_0x4e8639){let _0x3ee938={..._0x17ab2c,'range':_0x4e8639};this['cursorInfo']['set'](_0x1edc59,_0x3ee938),_0x1031b3(()=>{const _0x371982=_0x3f84ec;let _0x2f7744=this[_0x371982(0x336)][_0x371982(0x309)](_0x4e8639,_0x4e58e8=>(_0x2f7744['dispose'](),_0x2db3e6(_0x4e58e8,_0x1edc59,_0x39b877,_0x4e8639)));_0x1ca747[_0x371982(0x307)](_0x2f7744);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x1aa3ee(0x27a)]((_0x58d220,_0x55a216)=>{const _0x2d80ba=_0x1aa3ee;let {range:_0x1e401d,sheetID:_0x7c5229}=_0x58d220,_0x6d19af=this[_0x2d80ba(0x336)][_0x2d80ba(0x309)](_0x1e401d,_0x3185e4=>(_0x6d19af[_0x2d80ba(0x29b)](),_0x2db3e6(_0x3185e4,_0x55a216,_0x7c5229,_0x1e401d)));_0x1ca747[_0x2d80ba(0x307)](_0x6d19af);});};this['disposeWithMe'](_0x57ab4c(this[_0x14a5ca(0x2ce)][_0x14a5ca(0x385)](()=>{_0x5890dd();})));}['_toggleOnline'](){const _0x2da2e9=_0x206259;var _0x4a4baf,_0x3f9df1;if(this[_0x2da2e9(0x374)]=!0x0,((_0x4a4baf=this[_0x2da2e9(0x248)]['getFocusedUnit']())==null?void 0x0:_0x4a4baf['getUnitId']())!==this[_0x2da2e9(0x324)])return;let _0x46744f=(_0x3f9df1=this['_injector']['get'](_0x299afb)[_0x2da2e9(0x239)]())==null?void 0x0:_0x3f9df1[0x0],_0x4d28ce=this['_univerInstanceService'][_0x2da2e9(0x335)](_0x13410e[_0x2da2e9(0x218)])['getActiveSheet']();_0x46744f&&_0x4d28ce&&this[_0x2da2e9(0x2e2)](_0x4d28ce[_0x2da2e9(0x405)](),_0x46744f);}['_toggleOffline'](){const _0xf5b41e=_0x206259;this[_0xf5b41e(0x374)]=!0x1;}};pn=q([K(0x2,_0xb8a7b6(_0x59fba4)),K(0x3,_0xb8a7b6(sn)),K(0x4,_0xb8a7b6(_0x14dfef)),K(0x5,_0x2d5bc6),K(0x6,_0x498ceb),K(0x7,_0xb8a7b6(_0x35ff35))],pn);let X=class extends _0x44d0b2{constructor(_0x214402,_0x1f8610,_0x14dd43){const _0x37b789=_0x206259;super(),this['_univerInstanceService']=_0x214402,this[_0x37b789(0x359)]=_0x1f8610,this['_collabSessionService']=_0x14dd43,G(this,_0x37b789(0x250),new Map()),G(this,_0x37b789(0x282),new _0x24e89a()),this[_0x37b789(0x2ee)]();}[_0x206259(0x29b)](){const _0x2a5b76=_0x206259;super[_0x2a5b76(0x29b)](),this[_0x2a5b76(0x282)][_0x2a5b76(0x3f7)](),this[_0x2a5b76(0x250)]['forEach'](_0x43e4dc=>_0x43e4dc[_0x2a5b76(0x29b)]());}[_0x206259(0x408)](_0x37697b){const _0x46a1b9=_0x206259;return this[_0x46a1b9(0x250)]['has'](_0x37697b)?this[_0x46a1b9(0x250)][_0x46a1b9(0x229)](_0x37697b)[_0x46a1b9(0x327)]:this[_0x46a1b9(0x282)][_0x46a1b9(0x217)](_0x36b7c5(_0x32dc50=>_0x32dc50[_0x46a1b9(0x324)]===_0x37697b),_0x29a006(_0x2cba8e=>_0x2cba8e[_0x46a1b9(0x327)]));}[_0x206259(0x2ee)](){const _0x36c117=_0x206259;this[_0x36c117(0x248)][_0x36c117(0x264)](_0x13410e[_0x36c117(0x218)])['pipe'](_0x384030(this[_0x36c117(0x273)]))[_0x36c117(0x385)](async _0x4cf3b9=>{const _0x203204=_0x36c117;let _0x451757=_0x4cf3b9[_0x203204(0x304)]['getUnitId'](),_0x2862c2=await this[_0x203204(0x23c)](_0x451757);this['_entityInit$']['next'](_0x2862c2),this[_0x203204(0x250)][_0x203204(0x3a3)](_0x451757,_0x2862c2);}),this[_0x36c117(0x248)][_0x36c117(0x264)](_0x13410e[_0x36c117(0x2f6)])[_0x36c117(0x217)](_0x384030(this[_0x36c117(0x273)]))[_0x36c117(0x217)](_0x36b7c5(_0x57e7b6=>!_0x57e7b6['unit'][_0x36c117(0x2f0)]()['startsWith']('__')))['subscribe'](async _0x1efe34=>{const _0x3baf39=_0x36c117;let {unit:_0x49dbb6}=_0x1efe34,_0x5ce8d1=_0x49dbb6['getUnitId'](),_0x221caf=await this[_0x3baf39(0x209)](_0x5ce8d1);this['_entityInit$'][_0x3baf39(0x2ed)](_0x221caf),this['_entities'][_0x3baf39(0x3a3)](_0x5ce8d1,_0x221caf);}),_0x433e18(this[_0x36c117(0x248)]['getTypeOfUnitDisposed$'](_0x13410e[_0x36c117(0x2f6)]),this['_univerInstanceService'][_0x36c117(0x287)](_0x13410e[_0x36c117(0x218)]))[_0x36c117(0x217)](_0x384030(this[_0x36c117(0x273)]))[_0x36c117(0x385)](_0xa8098c=>{const _0x2479bf=_0x36c117;let _0x38745c=_0xa8098c[_0x2479bf(0x2f0)](),_0x4be4dc=this[_0x2479bf(0x250)][_0x2479bf(0x229)](_0x38745c);_0x4be4dc&&(_0x4be4dc[_0x2479bf(0x29b)](),this['_entities'][_0x2479bf(0x3fd)](_0x38745c));});}async[_0x206259(0x23c)](_0x1884d9){const _0x6e9b12=_0x206259;let _0x5f42ce=await this[_0x6e9b12(0x278)][_0x6e9b12(0x3b2)](_0x1884d9),_0x520883=this[_0x6e9b12(0x359)][_0x6e9b12(0x3d3)](pn,_0x1884d9,_0x5f42ce);return _0x520883[_0x6e9b12(0x2e0)](),_0x520883;}async[_0x206259(0x209)](_0x3c1e02){const _0x264612=_0x206259;let _0x339c67=await this['_collabSessionService'][_0x264612(0x3b2)](_0x3c1e02),_0x287267=this[_0x264612(0x359)]['createInstance'](dn,_0x3c1e02,_0x339c67);return _0x287267[_0x264612(0x2e0)](),_0x287267;}};X=q([K(0x0,_0x2d5bc6),K(0x1,_0xb8a7b6(_0x59fba4)),K(0x2,_0xb8a7b6(_0x52b1cf))],X);function mn(_0x48195c,_0x241792){const _0x26a96c=_0x206259;var _0x4d6e35,_0x587c7b,_0x5ba115;let {radius:_0xfc4175,width:_0x371fbd,height:_0x1a9b10}=_0x241792;_0xfc4175=(_0x4d6e35=_0xfc4175)==null?0x0:_0x4d6e35,_0x371fbd=(_0x587c7b=_0x371fbd)==null?0x1e:_0x587c7b,_0x1a9b10=(_0x5ba115=_0x1a9b10)==null?0x1e:_0x5ba115;let _0x584499=0x0,_0x4ebf0e=0x0,_0xfff5d7=0x0;_0x584499=_0x4ebf0e=_0xfff5d7=Math['min'](_0xfc4175,_0x371fbd/0x2,_0x1a9b10/0x2),_0x48195c[_0x26a96c(0x2fc)](),_0x48195c[_0x26a96c(0x2c2)](_0x584499,0x0),_0x48195c[_0x26a96c(0x36c)](_0x371fbd-_0x4ebf0e,0x0),_0x48195c['arc'](_0x371fbd-_0x4ebf0e,_0x4ebf0e,_0x4ebf0e,Math['PI']*0x3/0x2,0x0,!0x1),_0x48195c[_0x26a96c(0x36c)](_0x371fbd,_0x1a9b10-_0xfff5d7),_0x48195c[_0x26a96c(0x3d9)](_0x371fbd-_0xfff5d7,_0x1a9b10-_0xfff5d7,_0xfff5d7,0x0,Math['PI']/0x2,!0x1),_0x48195c['lineTo'](0x0,_0x1a9b10),_0x48195c['lineTo'](0x0,_0x584499),_0x48195c[_0x26a96c(0x3d9)](_0x584499,_0x584499,_0x584499,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x48195c[_0x26a96c(0x382)](),_0x241792['fill']&&(_0x48195c['save'](),_0x48195c[_0x26a96c(0x38e)]=_0x241792[_0x26a96c(0x332)],_0x241792['fillRule']===_0x26a96c(0x31c)?_0x48195c[_0x26a96c(0x332)](_0x26a96c(0x31c)):_0x48195c[_0x26a96c(0x332)](),_0x48195c[_0x26a96c(0x33c)]());}var hn=class e extends _0x382371{constructor(_0x5b507d,_0x2852ea){const _0x44c3b5=_0x206259;super(_0x5b507d,_0x2852ea),G(this,'color',void 0x0),G(this,_0x44c3b5(0x2b7),void 0x0),this[_0x44c3b5(0x3e2)]=_0x2852ea==null?void 0x0:_0x2852ea['color'],this[_0x44c3b5(0x2b7)]=_0x2852ea==null?void 0x0:_0x2852ea[_0x44c3b5(0x2b7)];}static['drawWith'](_0x48d4a7,_0x684a27){const _0x11a2c8=_0x206259;let {text:_0x4899e6,color:_0x258f33}=_0x684a27;_0x48d4a7['save'](),_0x48d4a7[_0x11a2c8(0x294)]=_0x11a2c8(0x270);let _0x1e10c2=_0x48d4a7[_0x11a2c8(0x308)](_0x4899e6)[_0x11a2c8(0x33e)];if(mn(_0x48d4a7,{'height':0x14,'radius':0x4,'width':Math[_0x11a2c8(0x234)](_0x1e10c2+0x8,0xc8),'fill':_0x258f33,'evented':!0x1}),_0x48d4a7[_0x11a2c8(0x38e)]='#FFF',_0x1e10c2>0xc0){let _0x4b7d90='',_0x348136=0x0;for(let _0x222110 of _0x4899e6){let _0x2f5f88=_0x48d4a7['measureText'](_0x222110)['width'];if(_0x348136+_0x2f5f88<=0xc0-_0x48d4a7[_0x11a2c8(0x308)]('...')[_0x11a2c8(0x33e)])_0x4b7d90+=_0x222110,_0x348136+=_0x2f5f88;else{_0x4b7d90+=_0x11a2c8(0x343);break;}}_0x48d4a7[_0x11a2c8(0x3a5)](_0x4b7d90,0x4,0xf);}else _0x48d4a7['fillText'](_0x4899e6,0x4,0xf);_0x48d4a7[_0x11a2c8(0x33c)]();}['_draw'](_0x47654b){const _0xe1117b=_0x206259;e[_0xe1117b(0x2d6)](_0x47654b,this);}};const gn='collab-text-anchor-';var _n=class{constructor(_0xadf26a,_0x5e1346,_0x971ded,_0x24ec75){const _0x1633f3=_0x206259;this[_0x1633f3(0x275)]=_0xadf26a,this[_0x1633f3(0x215)]=_0x5e1346,this[_0x1633f3(0x25e)]=_0x971ded,this[_0x1633f3(0x204)]=_0x24ec75,G(this,_0x1633f3(0x29c),[]),G(this,_0x1633f3(0x3a2),null),G(this,_0x1633f3(0x391),null),G(this,_0x1633f3(0x2f4),null),G(this,_0x1633f3(0x366),null),G(this,_0x1633f3(0x272),null),this[_0x1633f3(0x2da)]();}set[_0x206259(0x35e)](_0x314dcd){const _0x531b01=_0x206259;_0x314dcd?(this[_0x531b01(0x2f4)]&&this[_0x531b01(0x2f4)]['hide'](),this[_0x531b01(0x391)]&&this['_textBubble'][_0x531b01(0x2f1)]()):(this[_0x531b01(0x2f4)]&&this[_0x531b01(0x2f4)]['show'](),this[_0x531b01(0x391)]&&this['_textBubble'][_0x531b01(0x3b4)]());}[_0x206259(0x29b)](){const _0x5e9dd6=_0x206259;for(let _0x44f428 of this[_0x5e9dd6(0x29c)])_0x44f428[_0x5e9dd6(0x29b)]();this[_0x5e9dd6(0x391)]&&this[_0x5e9dd6(0x391)][_0x5e9dd6(0x29b)](),this['_anchorDot']&&this[_0x5e9dd6(0x2f4)][_0x5e9dd6(0x29b)](),this[_0x5e9dd6(0x3a2)]&&this[_0x5e9dd6(0x3a2)][_0x5e9dd6(0x29b)](),this[_0x5e9dd6(0x272)]&&this[_0x5e9dd6(0x272)]();}['_render'](){const _0x1bb402=_0x206259;let {_docSkeleton:_0xe487c8,_document:_0xf3bf48}=this,{color:_0x380990,name:_0x20173d,ranges:_0x409603}=this[_0x1bb402(0x275)],_0x37a7a8=_0xf3bf48[_0x1bb402(0x2c6)](),{docsLeft:_0x8c5caa,docsTop:_0x1a5086}=_0x37a7a8,_0x1202ae=new _0x48ce80(_0x37a7a8,_0xe487c8);for(let {startOffset:_0x54cb18,endOffset:_0x54cfcb,rangeType:_0x39f22a,segmentId:_0x5a1fc9,segmentPage:_0x240fac,collapsed:_0x264f9,isActive:_0x5297c6}of _0x409603){let _0x39e7f6=_0xe487c8[_0x1bb402(0x1ee)](_0x54cb18,!0x0,_0x5a1fc9,_0x240fac),_0x1e3451=_0xe487c8[_0x1bb402(0x1ee)](_0x54cfcb,!0x0,_0x5a1fc9,_0x240fac);if(_0x1e3451==null&&(_0x1e3451=_0xe487c8['findNodePositionByCharIndex'](_0x54cfcb-0x1,!0x1,_0x5a1fc9,_0x240fac)),_0x5297c6){let {contentBoxPointGroup:_0x7d9e27}=_0x1202ae[_0x1bb402(0x256)](_0x1e3451,_0x1e3451);if(_0x7d9e27[_0x1bb402(0x35f)]===0x0)continue;this[_0x1bb402(0x32a)](_0x380990,_0x7d9e27,_0x8c5caa,_0x1a5086,_0x20173d),this[_0x1bb402(0x272)]=this[_0x1bb402(0x37a)]();}if(_0x39e7f6&&_0x1e3451){if(_0x39f22a===_0x256699[_0x1bb402(0x283)]){var _0x3b4bd6;let {pointGroup:_0x1146d6}=(_0x3b4bd6=new _0xcd80e4(_0x37a7a8,_0xe487c8)[_0x1bb402(0x256)](_0x39e7f6,_0x1e3451))==null?{}:_0x3b4bd6;if(_0x1146d6==null||_0x1146d6['length']===0x0)continue;this[_0x1bb402(0x31b)](_0x380990,_0x1146d6,_0x8c5caa,_0x1a5086);}else{if(!_0x264f9){let {borderBoxPointGroup:_0x61a4bd}=_0x1202ae['getRangePointData'](_0x39e7f6,_0x1e3451);if(_0x61a4bd[_0x1bb402(0x35f)]===0x0)continue;this[_0x1bb402(0x24b)](_0x380990,_0x61a4bd,_0x8c5caa,_0x1a5086);}}}}}[_0x206259(0x32a)](_0x3c7d43,_0x3751af,_0x58ea94,_0x333e59,_0x21748d){const _0x511d10=_0x206259;let {left:_0x2a3418,top:_0x2be4f2,height:_0x5061db}=this['_getAnchorBounding'](_0x3751af),_0x1927ef=1.5/this[_0x511d10(0x358)](),_0x1beb35=new _0x50d2ba(gn+_0x555907(0x6),{'left':_0x2a3418+_0x58ea94-_0x1927ef,'top':_0x2be4f2+_0x333e59,'height':_0x5061db,'width':1.5,'fill':_0x3c7d43||_0x2e4331(_0x368165['black'],0x0),'strokeWidth':_0x1927ef,'stroke':_0x511d10(0x232),'evented':!0x0});this[_0x511d10(0x3a2)]=_0x1beb35,this[_0x511d10(0x215)][_0x511d10(0x212)](_0x1beb35,_0x45622d);let _0x39a8a5=new _0x50d2ba(gn+_0x555907(0x6),{'left':_0x2a3418+_0x58ea94-_0x1927ef,'top':_0x2be4f2+_0x333e59-0x4/0x2,'height':0x4,'width':0x4,'fill':_0x3c7d43||_0x2e4331(_0x368165[_0x511d10(0x36d)],0x0),'strokeWidth':0x0,'stroke':_0x3c7d43||_0x2e4331(_0x368165[_0x511d10(0x36d)],0x0),'evented':!0x1});this[_0x511d10(0x2f4)]=_0x39a8a5,this[_0x511d10(0x215)]['addObject'](_0x39a8a5,_0x45622d);let _0x17c642=new hn(gn+_0x555907(0x6),{'left':_0x2a3418+_0x58ea94-_0x1927ef,'top':_0x2be4f2+_0x333e59-0x14,'text':_0x21748d,'color':_0x3c7d43});this[_0x511d10(0x391)]=_0x17c642,this[_0x511d10(0x215)]['addObject'](_0x17c642,_0x45622d),this[_0x511d10(0x35e)]=!0x1;}[_0x206259(0x37a)](){const _0x327329=_0x206259;let _0xb5d430=this[_0x327329(0x3a2)][_0x327329(0x249)][_0x327329(0x3c4)](()=>{const _0x25cf65=_0x327329;this[_0x25cf65(0x35e)]=!0x0;}),_0xf0b1e9=this['_anchor'][_0x327329(0x367)]['subscribeEvent'](()=>{const _0xb290c9=_0x327329;this[_0xb290c9(0x366)]&&clearTimeout(this['_hideTimer']),this[_0xb290c9(0x366)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x45d65c=_0x327329;_0xb5d430[_0x45d65c(0x36a)](),_0xf0b1e9[_0x45d65c(0x36a)]();};}[_0x206259(0x24b)](_0x32e832,_0x110cf5,_0x31e0c8,_0x4f880c){const _0x13fb3d=_0x206259;let _0x16e485=0.2,_0x554a21=new _0x538f47(_0x32e832)[_0x13fb3d(0x203)](_0x16e485)['toRgbString'](),_0x307293=new _0x1cc85d(_0x13fb3d(0x1fb)+_0x555907(0x6),{'pointsGroup':_0x110cf5,'fill':_0x554a21||_0x2e4331(_0x368165[_0x13fb3d(0x36d)],_0x16e485),'left':_0x31e0c8,'top':_0x4f880c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x13fb3d(0x29c)][_0x13fb3d(0x265)](_0x307293),this['_scene'][_0x13fb3d(0x212)](_0x307293,_0x45622d);}[_0x206259(0x31b)](_0x17350a,_0x1170fa,_0x10c1ce,_0x1840cf){const _0x38fdd6=_0x206259;let _0x13aab7=0.2,_0x52d905=new _0x538f47(_0x17350a)[_0x38fdd6(0x203)](_0x13aab7)[_0x38fdd6(0x33a)](),_0x256ed3=new _0x1cc85d('collab-rect-range-'+_0x555907(0x6),{'pointsGroup':_0x1170fa,'fill':_0x52d905||_0x2e4331(_0x368165[_0x38fdd6(0x36d)],_0x13aab7),'left':_0x10c1ce,'top':_0x1840cf,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x38fdd6(0x29c)][_0x38fdd6(0x265)](_0x256ed3),this[_0x38fdd6(0x215)][_0x38fdd6(0x212)](_0x256ed3,_0x45622d);}[_0x206259(0x3f4)](_0x85453a){let _0x11c975=_0x85453a[0x0],_0x1eaffe=_0x11c975[0x0],_0x58bbaf=_0x11c975[0x2],{x:_0x474179,y:_0xb81f87}=_0x1eaffe,{x:_0x7fd6ed,y:_0x2fa136}=_0x58bbaf;return{'left':_0x474179,'top':_0xb81f87,'width':_0x7fd6ed-_0x474179,'height':_0x2fa136-_0xb81f87};}[_0x206259(0x358)](){const _0x3ac2cb=_0x206259;let {scaleX:_0x3a8cad,scaleY:_0x28f5a5}=this['_scene']['getAncestorScale']();return Math[_0x3ac2cb(0x20a)](_0x3a8cad,_0x28f5a5);}};let vn=class extends _0x44d0b2{constructor(_0x4b8ea4,_0x22bf23,_0x4c64a7,_0x501b99,_0x788ef8){const _0x2bbe59=_0x206259;super(),this[_0x2bbe59(0x39f)]=_0x4b8ea4,this[_0x2bbe59(0x22a)]=_0x22bf23,this[_0x2bbe59(0x255)]=_0x4c64a7,this[_0x2bbe59(0x257)]=_0x501b99,this[_0x2bbe59(0x1f1)]=_0x788ef8,G(this,_0x2bbe59(0x37e),[]),G(this,_0x2bbe59(0x30d),[]),this['_init']();}[_0x206259(0x2ee)](){const _0x586bdd=_0x206259;let _0x41268a=this['_context'][_0x586bdd(0x3c2)],_0x5d39a1=this['_docSkeletonManagerService'];this['disposeWithMe'](_0x3e361d([this[_0x586bdd(0x255)]['getCollabCursors$'](_0x41268a),this[_0x586bdd(0x1f1)][_0x586bdd(0x295)]])['pipe'](_0x52d48e(([_0x1e5b33,_0x524ac0])=>({'skeleton':_0x5d39a1[_0x586bdd(0x24f)](),'cursors':[..._0x1e5b33[_0x586bdd(0x3b8)]()]['flatMap'](_0x572f12=>({..._0x572f12,'color':this[_0x586bdd(0x1f1)][_0x586bdd(0x251)](_0x572f12[_0x586bdd(0x3e2)])}))})))['subscribe'](_0x72a4f2=>{const _0x6d4d11=_0x586bdd;if(this[_0x6d4d11(0x403)](),_0x72a4f2){let {skeleton:_0x3f5406,cursors:_0x3ea7e9}=_0x72a4f2;this['_updateCollabCursors'](_0x3f5406,_0x3ea7e9);}})),this[_0x586bdd(0x2ea)](),this[_0x586bdd(0x2d0)]();}[_0x206259(0x386)](_0x433e12,_0x40f44d){const _0x1ca413=_0x206259;let {scene:_0x1ac48a,mainComponent:_0x174dca}=this['_context'],_0x23cb6f=_0x40f44d[_0x1ca413(0x3ee)](_0x5d2d5c=>new _n(_0x5d2d5c,_0x1ac48a,_0x433e12,_0x174dca));this[_0x1ca413(0x37e)]=_0x23cb6f,this[_0x1ca413(0x30d)]=_0x40f44d;}[_0x206259(0x38a)](){const _0x3bcd00=_0x206259;this['_removeCollabCursors']();let {scene:_0xa11b81,mainComponent:_0x568cb4}=this[_0x3bcd00(0x39f)],_0x4e6bc1=this[_0x3bcd00(0x22a)][_0x3bcd00(0x24f)](),_0x3ebd23=this[_0x3bcd00(0x30d)][_0x3bcd00(0x3ee)](_0x3adc89=>new _n(_0x3adc89,_0xa11b81,_0x4e6bc1,_0x568cb4));this['_cursorShapes']=_0x3ebd23;}['_removeCollabCursors'](){const _0x38ab4c=_0x206259;this[_0x38ab4c(0x37e)]['forEach'](_0x4ed6ad=>_0x4ed6ad[_0x38ab4c(0x29b)]()),this[_0x38ab4c(0x37e)]=[];}[_0x206259(0x2d0)](){const _0x13c447=_0x206259;let _0x150453=[_0x3e6d75['id']];this['disposeWithMe'](this[_0x13c447(0x257)][_0x13c447(0x319)](_0x4a1bec=>{const _0x2e918f=_0x13c447;_0x150453[_0x2e918f(0x2be)](_0x4a1bec['id'])&&_0x4a1bec[_0x2e918f(0x351)][_0x2e918f(0x3c2)]===this[_0x2e918f(0x39f)][_0x2e918f(0x3c2)]&&this[_0x2e918f(0x38a)]();}));}[_0x206259(0x2ea)](){const _0x2ae403=_0x206259;this[_0x2ae403(0x228)](_0x55bf58(this[_0x2ae403(0x39f)]['engine'][_0x2ae403(0x2ec)])[_0x2ae403(0x217)](_0x162ac8(_0x509321=>_0x509321[_0x2ae403(0x313)]===_0x48f8e3[_0x2ae403(0x3bc)]),_0x58100d(0x10))[_0x2ae403(0x385)](()=>{this['_refreshCollabCursors']();}));}};vn=q([K(0x1,_0xb8a7b6(_0x47a3f5)),K(0x2,_0xb8a7b6(X)),K(0x3,_0x498ceb),K(0x4,_0xb8a7b6(_0x2d2a1d))],vn);var yn=class extends _0x382371{constructor(_0xcb5a25,_0x12766b){const _0x109b0b=_0x206259;if(super(_0xcb5a25,_0x12766b),G(this,'_color',void 0x0),G(this,_0x109b0b(0x305),!0x1),G(this,_0x109b0b(0x3e1),void 0x0),G(this,_0x109b0b(0x2d2),''),G(this,_0x109b0b(0x3ad),_0x109b0b(0x3cd)),G(this,_0x109b0b(0x2c5),void 0x0),G(this,_0x109b0b(0x370),void 0x0),G(this,_0x109b0b(0x26b),void 0x0),G(this,'_highlightSecond',0x4),G(this,_0x109b0b(0x271),void 0x0),G(this,_0x109b0b(0x207),void 0x0),G(this,'_isBlinkVisible',!0x0),G(this,_0x109b0b(0x38d),0x0),_0x12766b){var _0x5df637;if(this['setShapeProps'](_0x12766b),_0x12766b[_0x109b0b(0x3f5)]&&((_0x5df637=_0x12766b[_0x109b0b(0x1fe)])==null?this[_0x109b0b(0x342)]:_0x5df637)){var _0x1d806e;this[_0x109b0b(0x3cc)]((_0x1d806e=_0x12766b[_0x109b0b(0x1fe)])==null?this[_0x109b0b(0x342)]:_0x1d806e);}}this['onPointerEnter$'][_0x109b0b(0x3c4)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x109b0b(0x367)][_0x109b0b(0x3c4)](()=>this['setShapeProps']({'hovered':!0x1}));}['setOffsetY'](_0xbdb9c0){const _0x39eddf=_0x206259;this[_0x39eddf(0x38d)]=_0xbdb9c0;}[_0x206259(0x27e)](_0x390d61){const _0x5a5f30=_0x206259;var _0x3c85ee,_0x4ae0a4,_0x4b1e9b,_0x42add6,_0x28c96b,_0x1345a8,_0x295a54;this[_0x5a5f30(0x2aa)]=(_0x3c85ee=_0x390d61[_0x5a5f30(0x3e2)])==null?this['_color']:_0x3c85ee,this[_0x5a5f30(0x305)]=(_0x4ae0a4=_0x390d61[_0x5a5f30(0x2b3)])==null?this['_hovered']:_0x4ae0a4,this['_range']=(_0x4b1e9b=_0x390d61[_0x5a5f30(0x390)])==null?this[_0x5a5f30(0x3e1)]:_0x4b1e9b,this['_name']=(_0x42add6=_0x390d61['name'])==null?this[_0x5a5f30(0x2d2)]:_0x42add6,this[_0x5a5f30(0x3ad)]=(_0x28c96b=_0x390d61[_0x5a5f30(0x2d9)])==null?this[_0x5a5f30(0x3ad)]:_0x28c96b,this[_0x5a5f30(0x2c5)]=(_0x1345a8=_0x390d61[_0x5a5f30(0x369)])==null?this['_backgroundColor']:_0x1345a8,this['_showText']=(_0x295a54=_0x390d61[_0x5a5f30(0x302)])==null?this[_0x5a5f30(0x370)]:_0x295a54,_0x390d61[_0x5a5f30(0x1fe)]!==void 0x0&&(this[_0x5a5f30(0x342)]=_0x390d61[_0x5a5f30(0x1fe)]),_0x390d61['highlight']!==void 0x0&&(this[_0x5a5f30(0x26b)]=_0x390d61[_0x5a5f30(0x3f5)]),_0x390d61['offsetY']!==void 0x0&&(this['_offsetY']=_0x390d61[_0x5a5f30(0x3ca)]),this[_0x5a5f30(0x27b)]({'width':_0x390d61[_0x5a5f30(0x33e)],'height':_0x390d61[_0x5a5f30(0x23d)]});}[_0x206259(0x2e4)](_0x3eb769){const _0x507caf=_0x206259;let {row:_0xdbbcf1,column:_0xc066e5}=_0x3eb769;if(_0xdbbcf1>=this[_0x507caf(0x3e1)]['startRow']&&_0xdbbcf1<=this[_0x507caf(0x3e1)]['endRow']&&_0xc066e5>=this[_0x507caf(0x3e1)][_0x507caf(0x3ed)]&&_0xc066e5<=this[_0x507caf(0x3e1)][_0x507caf(0x30b)]){this['setShapeProps']({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}['_startBlinking'](_0x131f7d){const _0x174fc6=_0x206259;this['_stopBlinking'](),this['_isBlinkVisible']=!0x0,this['_blinkIntervalTimer']=window[_0x174fc6(0x2a8)](()=>{const _0x27bb37=_0x174fc6;this[_0x27bb37(0x267)]=!this[_0x27bb37(0x267)],this[_0x27bb37(0x363)](!0x0);},0x1f4),this['_blinkTimer']=window[_0x174fc6(0x235)](()=>{const _0xe6c242=_0x174fc6;this[_0xe6c242(0x3a6)](),this[_0xe6c242(0x267)]=!0x0,this[_0xe6c242(0x363)](!0x0);},_0x131f7d*0x3e8);}[_0x206259(0x3a6)](){const _0x1f9544=_0x206259;this['_blinkIntervalTimer']&&(window[_0x1f9544(0x21f)](this[_0x1f9544(0x207)]),this[_0x1f9544(0x207)]=void 0x0),this['_blinkTimer']&&(window[_0x1f9544(0x2d7)](this['_blinkTimer']),this[_0x1f9544(0x271)]=void 0x0);}[_0x206259(0x2e3)](_0x424fd3){return!0x1;}['dispose'](){const _0x4eee72=_0x206259;this[_0x4eee72(0x3a6)](),super[_0x4eee72(0x29b)]();}[_0x206259(0x22b)](_0x471b84){const _0x594edc=_0x206259;let _0x462a3d=this[_0x594edc(0x2aa)],_0x28532f=this[_0x594edc(0x2c5)];if(this['_highlight']&&!this[_0x594edc(0x267)]&&(_0x462a3d=this[_0x594edc(0x2bc)](this[_0x594edc(0x2aa)]),_0x28532f=this[_0x594edc(0x2c5)]?this[_0x594edc(0x2bc)](this[_0x594edc(0x2c5)]):void 0x0),_0x50d2ba[_0x594edc(0x2d6)](_0x471b84,{'width':this[_0x594edc(0x33e)],'height':this[_0x594edc(0x23d)],'strokeWidth':this[_0x594edc(0x27c)]||1.5,'stroke':_0x462a3d,'evented':!0x1,'fill':_0x28532f}),this['_hovered']||this[_0x594edc(0x370)]){var _0x1fea8a;_0x471b84[_0x594edc(0x3cf)](),_0x471b84['transform'](0x1,0x0,0x0,0x1,this[_0x594edc(0x33e)],(this['_labelPosition']===_0x594edc(0x23f)?0x0:-0x14)+((_0x1fea8a=this[_0x594edc(0x38d)])==null?0x0:_0x1fea8a)),hn[_0x594edc(0x2d6)](_0x471b84,{'text':this[_0x594edc(0x2d2)],'color':_0x462a3d}),_0x471b84[_0x594edc(0x33c)]();}}[_0x206259(0x2bc)](_0x38c0c4){const _0xcfce9b=_0x206259;return _0x38c0c4[_0xcfce9b(0x34a)]('#')?_0xcfce9b(0x3af)+Number[_0xcfce9b(0x254)](_0x38c0c4[_0xcfce9b(0x3de)](0x1,0x3),0x10)+',\x20'+Number['parseInt'](_0x38c0c4['slice'](0x3,0x5),0x10)+',\x20'+Number[_0xcfce9b(0x254)](_0x38c0c4['slice'](0x5,0x7),0x10)+_0xcfce9b(0x2c7):_0x38c0c4[_0xcfce9b(0x34a)](_0xcfce9b(0x3c9))?_0x38c0c4[_0xcfce9b(0x298)](/[\d.]+\)$/g,_0xcfce9b(0x357)):_0x38c0c4[_0xcfce9b(0x34a)](_0xcfce9b(0x3c1))?_0x38c0c4['replace'](_0xcfce9b(0x3c1),'rgba')[_0xcfce9b(0x298)](')',',\x200.2)'):_0x38c0c4;}};let bn=class extends _0x44d0b2{constructor(_0x3dc260,_0x236523,_0x342a1b,_0xc44d81){const _0x464fe1=_0x206259;super(),this[_0x464fe1(0x39f)]=_0x3dc260,this[_0x464fe1(0x34d)]=_0x236523,this[_0x464fe1(0x255)]=_0x342a1b,this['_themeService']=_0xc44d81,G(this,'_cursors',new Set()),G(this,_0x464fe1(0x291),null),G(this,_0x464fe1(0x3c7),null),this[_0x464fe1(0x2ee)]();}[_0x206259(0x2ee)](){const _0x1b1bc9=_0x206259;this[_0x1b1bc9(0x34d)]['currentSkeleton$'][_0x1b1bc9(0x217)](_0x2868c0(this[_0x1b1bc9(0x273)]),_0x3dc322(_0x23b0c1=>{const _0x3f45b1=_0x1b1bc9;if(_0x23b0c1){let _0x227651=_0x23b0c1[_0x3f45b1(0x2f7)];return _0x3e361d(this['_collabCursorController']['getCollabCursors$'](this[_0x3f45b1(0x39f)][_0x3f45b1(0x3c2)]),this['_themeService'][_0x3f45b1(0x295)])[_0x3f45b1(0x217)](_0x52d48e(([_0x2d47bb,_0x100ee2])=>{const _0x1da4fd=_0x3f45b1;let _0x2faf28=new Map();return _0x2d47bb[_0x1da4fd(0x27a)]((_0x5dc006,_0x5c1bad)=>{const _0x18761f=_0x1da4fd;if(_0x5dc006[_0x18761f(0x396)]===_0x227651){let _0x29f5ab={..._0x5dc006};_0x29f5ab[_0x18761f(0x3e2)]=this[_0x18761f(0x1f1)][_0x18761f(0x251)](_0x5dc006[_0x18761f(0x3e2)]),_0x2faf28[_0x18761f(0x3a3)](_0x5c1bad,_0x29f5ab);}}),{'skeleton':_0x23b0c1,'cursors':_0x2faf28};}));}return _0xd28a5f({'skeleton':null,'cursors':new Map()});}))[_0x1b1bc9(0x385)](({skeleton:_0x37cab4,cursors:_0x2432a8})=>{const _0x3d24e6=_0x1b1bc9;this[_0x3d24e6(0x403)](),_0x37cab4&&this[_0x3d24e6(0x386)](_0x37cab4,_0x2432a8);}),this[_0x1b1bc9(0x228)](this[_0x1b1bc9(0x34d)][_0x1b1bc9(0x236)][_0x1b1bc9(0x217)](_0x2868c0(this[_0x1b1bc9(0x273)]))[_0x1b1bc9(0x385)](_0x32e25d=>{const _0x19ffb0=_0x1b1bc9;var _0x11cc08;if(_0x32e25d==null)return;(_0x11cc08=this['_pointerMoveDisposable'])==null||_0x11cc08[_0x19ffb0(0x36a)](),this[_0x19ffb0(0x3c7)]=null;let {skeleton:_0x44ba27}=_0x32e25d,{scene:_0x4ab6af}=this[_0x19ffb0(0x39f)];this['_pointerMoveDisposable']=_0x4ab6af[_0x19ffb0(0x24c)][_0x19ffb0(0x3c4)](_0x4e5741(_0x114a10=>{const _0x29d4c4=_0x19ffb0;var _0x4a61ab,_0x5515da;let {offsetX:_0x216db1,offsetY:_0x6375a6}=_0x114a10,{x:_0xf7f02e,y:_0x1cd94a}=_0x4ab6af[_0x29d4c4(0x25a)](_0x579a07[_0x29d4c4(0x39e)]([_0x216db1,_0x6375a6])),{scaleX:_0x2b572c,scaleY:_0x134d8c}=_0x4ab6af['getAncestorScale'](),_0x2ecddb=_0x4ab6af[_0x29d4c4(0x3b0)](_0x3408cf[_0x29d4c4(0x2ac)]),_0x4ab46f=_0x4ab6af[_0x29d4c4(0x401)](_0x579a07[_0x29d4c4(0x39e)]([_0xf7f02e,_0x1cd94a]),_0x2ecddb),_0x5b05cd=_0x44ba27[_0x29d4c4(0x28f)](_0x216db1,_0x6375a6,_0x2b572c,_0x134d8c,_0x4ab46f);((_0x4a61ab=this[_0x29d4c4(0x291)])==null?void 0x0:_0x4a61ab[_0x29d4c4(0x311)])===_0x5b05cd[_0x29d4c4(0x311)]&&((_0x5515da=this[_0x29d4c4(0x291)])==null?void 0x0:_0x5515da[_0x29d4c4(0x245)])===_0x5b05cd[_0x29d4c4(0x245)]||this[_0x29d4c4(0x30d)][_0x29d4c4(0x27a)](_0x2e1f7b=>{const _0x2f27a7=_0x29d4c4;_0x2e1f7b[_0x2f27a7(0x2e4)](_0x5b05cd);});},0x64));})),this[_0x1b1bc9(0x228)](_0x57ab4c(()=>{const _0x423942=_0x1b1bc9;var _0x271d0c;(_0x271d0c=this[_0x423942(0x3c7)])==null||_0x271d0c[_0x423942(0x36a)](),this[_0x423942(0x3c7)]=null;}));}[_0x206259(0x386)](_0x17e505,_0x4ade4b){const _0xa55a84=_0x206259;let _0x513e08=this[_0xa55a84(0x34d)][_0xa55a84(0x2c0)]();if(!_0x513e08)return;let _0x5b8e12=this['_getSheetObject']();if(!_0x5b8e12)return;this['_cursors'][_0xa55a84(0x27a)](_0x5c7fc4=>{const _0x2d021d=_0xa55a84;_0x5c7fc4[_0x2d021d(0x363)]();});let {scene:_0x369204}=_0x5b8e12,_0x5b8e38=xn(Array[_0xa55a84(0x230)](_0x4ade4b[_0xa55a84(0x3b8)]()))[_0xa55a84(0x3ee)](_0x19ad6f=>{const _0x54100e=_0xa55a84;let {color:_0x284471,range:_0x4b08b5,name:_0x394473,selection:_0x30d5a2,sheetID:_0x4a11ea}=_0x19ad6f,{startColumn:_0x1cbbd4,startRow:_0x59ade8,endColumn:_0x7a90c2,endRow:_0x2fba1a}=_0x4b08b5,_0x369906=_0x2578dc(_0x59ade8,_0x1cbbd4,_0x369204,_0x513e08),_0x45f7fb=_0x2578dc(_0x2fba1a,_0x7a90c2,_0x369204,_0x513e08),{columnHeaderHeightAndMarginTop:_0x20b5be}=_0x513e08,{startX:_0x3c3f96,startY:_0x418442}=_0x369906,{endX:_0x2563dd,endY:_0x18fc31}=_0x45f7fb,_0x3750a3=_0x2563dd-_0x3c3f96,_0x117760=_0x18fc31-_0x418442;return new yn(_0x394473,{'labelPosition':_0x418442-_0x20b5be>=0x14?_0x54100e(0x3cd):_0x54100e(0x23f),'sheetID':_0x4a11ea,'range':_0x4b08b5,'color':_0x284471,'name':_0x394473,'selection':_0x30d5a2,'left':_0x3c3f96,'top':_0x418442,'width':_0x3750a3,'height':_0x117760,'evented':!0x1,'zIndex':0x1389});});_0x369204[_0xa55a84(0x1f2)](_0x5b8e38,0x1),this[_0xa55a84(0x30d)]=new Set(_0x5b8e38);}[_0x206259(0x403)](){const _0x2db635=_0x206259;var _0x2bdffe;(_0x2bdffe=this[_0x2db635(0x30d)])==null||_0x2bdffe[_0x2db635(0x27a)](_0x5051b9=>_0x5051b9['dispose']());}[_0x206259(0x34b)](){const _0x43e6cf=_0x206259;return _0x547a2f(this[_0x43e6cf(0x39f)][_0x43e6cf(0x304)],this['_context']);}};bn=q([K(0x1,_0xb8a7b6(_0x32fb05)),K(0x2,_0xb8a7b6(X)),K(0x3,_0xb8a7b6(_0x2d2a1d))],bn);function xn(_0x1a733d){const _0x27f3db=_0x206259;let _0x3bb0b8=new Map();return _0x1a733d[_0x27f3db(0x27a)](_0x391eab=>{const _0x4bde3f=_0x27f3db;if(_0x3bb0b8[_0x4bde3f(0x356)](_0x391eab[_0x4bde3f(0x24d)])){let _0x48df02=_0x3bb0b8['get'](_0x391eab[_0x4bde3f(0x24d)]);_0x48df02[_0x4bde3f(0x2fb)]+=',\x20'+_0x391eab[_0x4bde3f(0x2fb)];}else _0x3bb0b8[_0x4bde3f(0x3a3)](_0x391eab[_0x4bde3f(0x24d)],_0x391eab);}),Array[_0x27f3db(0x230)](_0x3bb0b8['values']());}let Z=class extends _0x1b0287{constructor(_0x11e1b3,_0x3614ee,_0x5a5b6c,_0x5076d5,_0x368a64,_0x59f016){const _0x4f523c=_0x206259;super(),this['_beforeCloseService']=_0x11e1b3,this[_0x4f523c(0x2b2)]=_0x3614ee,this['_collaborationUIEventService']=_0x5a5b6c,this[_0x4f523c(0x3f6)]=_0x5076d5,this[_0x4f523c(0x21a)]=_0x368a64,this[_0x4f523c(0x3b5)]=_0x59f016,this[_0x4f523c(0x243)](),this[_0x4f523c(0x2a7)]();}[_0x206259(0x243)](){const _0x25b13e=_0x206259;this['disposeWithMe'](this[_0x25b13e(0x349)][_0x25b13e(0x39b)](()=>{const _0x376e13=_0x25b13e;if(this['_localCacheService'][_0x376e13(0x3e9)][_0x376e13(0x293)])return this[_0x376e13(0x3b5)]['t']('collaboration-client-ui.collaboration.offline-data-not-saved');}));}['_initEvent'](){const _0x3658b5=_0x206259;this['disposeWithMe'](this['_collaborationUIEventService'][_0x3658b5(0x393)]['subscribe'](_0x4797f2=>{const _0x4e8114=_0x3658b5;_0x4797f2['id']===_0x1b3610[_0x4e8114(0x381)]&&this[_0x4e8114(0x3f6)][_0x4e8114(0x2f1)]({'type':_0x35617f[_0x4e8114(0x368)],'content':this[_0x4e8114(0x3b5)]['t'](_0x4e8114(0x27d))}),_0x4797f2['id']===_0x1b3610['CLOSE_ROOM']&&this[_0x4e8114(0x3f6)][_0x4e8114(0x2f1)]({'type':_0x35617f['Warning'],'content':this[_0x4e8114(0x3b5)]['t'](_0x4e8114(0x268))}),_0x4797f2['id']===_0x1b3610[_0x4e8114(0x32f)]&&this['_notificationService'][_0x4e8114(0x2f1)]({'title':this[_0x4e8114(0x3b5)]['t'](_0x4e8114(0x33b)),'content':this[_0x4e8114(0x3b5)]['t'](_0x4e8114(0x398)),'type':_0x4e8114(0x320),'duration':0x0}),_0x4797f2['id']===_0x1b3610[_0x4e8114(0x22f)]&&this['_messageService'][_0x4e8114(0x2f1)]({'type':_0x35617f[_0x4e8114(0x371)],'content':this[_0x4e8114(0x3b5)]['t'](_0x4e8114(0x268))+'('+_0x4797f2['data']+')'}),_0x4797f2['id']===_0x1b3610[_0x4e8114(0x35a)]&&this[_0x4e8114(0x3f6)][_0x4e8114(0x2f1)]({'type':_0x35617f['Warning'],'content':this[_0x4e8114(0x3b5)]['t'](_0x4797f2[_0x4e8114(0x3ec)]||'')}),_0x4797f2['id']===_0x1b3610[_0x4e8114(0x36e)]&&this[_0x4e8114(0x3f6)][_0x4e8114(0x2f1)]({'type':_0x35617f[_0x4e8114(0x368)],'content':this['_localeService']['t']('collaboration-client-ui.session.will-retry')}),_0x4797f2['id']===_0x1b3610['SOCKET_FAILED']&&this[_0x4e8114(0x3f6)][_0x4e8114(0x2f1)]({'type':_0x35617f['Error'],'content':this['_localeService']['t'](_0x4e8114(0x1ed))}),_0x4797f2['id']===_0x1b3610[_0x4e8114(0x233)]&&this[_0x4e8114(0x3f6)][_0x4e8114(0x2f1)]({'type':_0x35617f[_0x4e8114(0x371)],'content':this[_0x4e8114(0x3b5)]['t'](_0x4e8114(0x226))});}));}};Z=q([K(0x0,_0x37faa2),K(0x1,_0x17a5fc),K(0x2,_0xb8a7b6(_0x38a3cd)),K(0x3,_0x3c5b09),K(0x4,_0x2e77e8),K(0x5,_0xb8a7b6(_0x14b5d2))],Z);const Sn={};let Cn=class{constructor(_0x345ebf,_0x2f4057){const _0x5c307c=_0x206259;this[_0x5c307c(0x3c8)]=_0x345ebf,this[_0x5c307c(0x34e)]=_0x2f4057;}[_0x206259(0x21d)](_0x209e81){const _0x1ca7d8=_0x206259;this['_transformUndoRedoStack'](_0x209e81),this[_0x1ca7d8(0x220)](_0x209e81);}['transformRemoteChangeset'](_0x586625){const _0x22a4f2=_0x206259;let {unitID:_0x330b88}=_0x586625,{redoCache:_0x2ee3c7}=this['_renderManagerService']['getRenderById'](_0x330b88)[_0x22a4f2(0x32e)](_0x563c9d)[_0x22a4f2(0x26d)]();if(_0x2ee3c7[_0x22a4f2(0x35f)]===0x0)return _0x586625;let _0x113845=_0x1eece1[_0x22a4f2(0x34f)](_0x586625[_0x22a4f2(0x35d)][0x0]);for(let _0x144564=0x0;_0x144564<_0x2ee3c7[_0x22a4f2(0x35f)];_0x144564++){let _0x4a2c95={'id':_0x22a4f2(0x2d1),'params':{..._0x2ee3c7[_0x144564]}},_0xcae3e=this[_0x22a4f2(0x3c8)][_0x22a4f2(0x25f)](_0x113845,_0x4a2c95,!0x1);if(_0x537eeb(_0xcae3e))throw _0xcae3e['error'];_0x113845=_0xcae3e['m1Prime'];}return{..._0x1eece1[_0x22a4f2(0x34f)](_0x586625),'mutations':[_0x113845]};}['_transformUndoRedoStack'](_0x30fa91){const _0x3289b5=_0x206259;let {unitID:_0x4a1a36}=_0x30fa91,_0x7157bd=this[_0x3289b5(0x34e)]['getRenderById'](_0x4a1a36)['with'](_0x563c9d),{undoCache:_0x59f064,redoCache:_0x43289d}=_0x7157bd[_0x3289b5(0x26d)]();if(_0x59f064[_0x3289b5(0x35f)]===0x0||_0x43289d['length']===0x0)return;let _0x86aa55=[],_0x13bda4=[],_0x1d92b7=_0x1eece1[_0x3289b5(0x34f)](_0x30fa91['mutations'][0x0]),_0x16929b=_0x1eece1[_0x3289b5(0x34f)](_0x30fa91[_0x3289b5(0x35d)][0x0]);for(let _0x209d12=_0x59f064[_0x3289b5(0x35f)]-0x1;_0x209d12>=0x0;_0x209d12--){let _0x4f475c={'id':_0x3289b5(0x2d1),'params':{..._0x59f064[_0x209d12]}},_0x3bc42c={'id':_0x3289b5(0x2d1),'params':{..._0x43289d[_0x209d12]}},_0x319545=this['_transformService']['transformMutation'](_0x1d92b7,_0x4f475c,!0x1),_0x265166=this['_transformService'][_0x3289b5(0x25f)](_0x16929b,_0x3bc42c,!0x1);if(_0x537eeb(_0x319545))throw _0x319545['error'];if(_0x537eeb(_0x265166))throw _0x265166['error'];_0x86aa55[_0x3289b5(0x3e8)](_0x319545['m2Prime'][_0x3289b5(0x351)]),_0x13bda4[_0x3289b5(0x3e8)](_0x265166[_0x3289b5(0x2fd)][_0x3289b5(0x351)]),_0x1d92b7=_0x319545[_0x3289b5(0x362)],_0x16929b=_0x265166[_0x3289b5(0x362)];}_0x7157bd[_0x3289b5(0x354)]({'undoCache':_0x86aa55,'redoCache':_0x13bda4});}['_transformPreviousActiveRange'](_0x10a18a){const _0x17053c=_0x206259;let {unitID:_0x2aa59c}=_0x10a18a,_0x3af22a=this[_0x17053c(0x34e)]['getRenderById'](_0x2aa59c)[_0x17053c(0x32e)](_0x563c9d),_0x3ea17f=_0x3af22a[_0x17053c(0x242)]();if(_0x3ea17f==null)return;let _0x2819bf=[{'id':_0x17053c(0x2d1),'params':{'unitId':_0x10a18a['unitID'],'actions':null,'textRanges':[_0x3ea17f]}}],_0x46b5b6=this[_0x17053c(0x3c8)]['transformMutationsWithChangeset'](_0x10a18a,_0x2819bf);if(!_0x324463(_0x46b5b6))throw _0x46b5b6[_0x17053c(0x320)];let _0x43068f=_0x46b5b6[_0x17053c(0x2fd)][0x0]['params']['textRanges'];Array[_0x17053c(0x397)](_0x43068f)&&_0x43068f[_0x17053c(0x35f)]&&_0x3af22a[_0x17053c(0x2a0)](_0x43068f[0x0]);}};Cn=q([K(0x0,_0x4e87b4),K(0x1,_0xd23c31)],Cn);let wn=class{constructor(_0x3868ac,_0xd2cdae,_0x5b3c74){const _0x4e1ba6=_0x206259;this[_0x4e1ba6(0x359)]=_0x3868ac,this[_0x4e1ba6(0x3c8)]=_0xd2cdae,this[_0x4e1ba6(0x22e)]=_0x5b3c74;}[_0x206259(0x253)](_0x281df6){this['_transformHistoryAndStateStack'](_0x281df6);}[_0x206259(0x1f4)](_0x48b39f){const _0xbca7f2=_0x206259;let {unitID:_0x2bd7cf}=_0x48b39f,{collaboration:_0x592195}=this[_0xbca7f2(0x22e)][_0xbca7f2(0x3d6)](_0x2bd7cf);if(_0x592195['length']===0x0)return _0x48b39f;let _0x7aae5e=_0x1eece1[_0xbca7f2(0x34f)](_0x48b39f[_0xbca7f2(0x35d)][0x0]);for(let _0x475d1c=0x0;_0x475d1c<_0x592195[_0xbca7f2(0x35f)];_0x475d1c++){let _0x5ecefd={'id':_0xbca7f2(0x2d1),'params':{'unitId':_0x592195[_0x475d1c]['unitId'],..._0x592195[_0x475d1c][_0xbca7f2(0x2de)]}},_0x49235a=this['_transformService'][_0xbca7f2(0x25f)](_0x7aae5e,_0x5ecefd,!0x1);if(_0x537eeb(_0x49235a))throw _0x49235a[_0xbca7f2(0x320)];_0x7aae5e=_0x49235a[_0xbca7f2(0x362)];}return{..._0x1eece1[_0xbca7f2(0x34f)](_0x48b39f),'mutations':[_0x7aae5e]};}[_0x206259(0x39d)](_0x4d5fae){const _0x5f1af2=_0x206259;let {unitID:_0x2af66d}=_0x4d5fae,{history:_0x1984e0,collaboration:_0x428ca5}=this['_docStateChangeManagerService'][_0x5f1af2(0x3d6)](_0x2af66d);if(_0x1984e0[_0x5f1af2(0x35f)]===0x0&&_0x428ca5[_0x5f1af2(0x35f)]===0x0)return;let _0x55255a=[],_0x118c9e=[],_0x2e4b1f=_0x1eece1[_0x5f1af2(0x34f)](_0x4d5fae['mutations'][0x0]),_0x34ebda=_0x1eece1[_0x5f1af2(0x34f)](_0x4d5fae[_0x5f1af2(0x35d)][0x0]);for(let _0x20187e=_0x1984e0[_0x5f1af2(0x35f)]-0x1;_0x20187e>=0x0;_0x20187e--){let _0x2106d9={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1984e0[_0x20187e][_0x5f1af2(0x3c2)],..._0x1984e0[_0x20187e][_0x5f1af2(0x3b9)]}},_0x209b7e={'id':_0x5f1af2(0x2d1),'params':{'unitId':_0x1984e0[_0x20187e][_0x5f1af2(0x3c2)],..._0x1984e0[_0x20187e][_0x5f1af2(0x2de)]}},_0xd2668d=this['_transformService'][_0x5f1af2(0x25f)](_0x2e4b1f,_0x2106d9,!0x1),_0x4b494e=this[_0x5f1af2(0x3c8)]['transformMutation'](_0x34ebda,_0x209b7e,!0x1);if(_0x537eeb(_0xd2668d))throw _0xd2668d[_0x5f1af2(0x320)];if(_0x537eeb(_0x4b494e))throw _0x4b494e[_0x5f1af2(0x320)];_0x55255a[_0x5f1af2(0x3e8)]({..._0x1984e0[_0x20187e],'undoState':_0xd2668d[_0x5f1af2(0x2fd)]['params'],'redoState':_0x4b494e[_0x5f1af2(0x2fd)][_0x5f1af2(0x351)]}),_0x2e4b1f=_0xd2668d['m1Prime'],_0x34ebda=_0x4b494e['m1Prime'];}_0x2e4b1f=_0x1eece1[_0x5f1af2(0x34f)](_0x4d5fae[_0x5f1af2(0x35d)][0x0]),_0x34ebda=_0x1eece1[_0x5f1af2(0x34f)](_0x4d5fae[_0x5f1af2(0x35d)][0x0]);for(let _0x42339f=_0x428ca5[_0x5f1af2(0x35f)]-0x1;_0x42339f>=0x0;_0x42339f--){let _0x511334={'id':_0x5f1af2(0x2d1),'params':{'unitId':_0x428ca5[_0x42339f][_0x5f1af2(0x3c2)],..._0x428ca5[_0x42339f][_0x5f1af2(0x3b9)]}},_0x354048={'id':_0x5f1af2(0x2d1),'params':{'unitId':_0x428ca5[_0x42339f][_0x5f1af2(0x3c2)],..._0x428ca5[_0x42339f][_0x5f1af2(0x2de)]}},_0x5aaf0f=this[_0x5f1af2(0x3c8)][_0x5f1af2(0x25f)](_0x2e4b1f,_0x511334,!0x1),_0xb6bf38=this[_0x5f1af2(0x3c8)]['transformMutation'](_0x34ebda,_0x354048,!0x1);if(_0x537eeb(_0x5aaf0f))throw _0x5aaf0f[_0x5f1af2(0x320)];if(_0x537eeb(_0xb6bf38))throw _0xb6bf38[_0x5f1af2(0x320)];_0x118c9e[_0x5f1af2(0x3e8)]({..._0x428ca5[_0x42339f],'undoState':_0x5aaf0f[_0x5f1af2(0x2fd)]['params'],'redoState':_0xb6bf38[_0x5f1af2(0x2fd)][_0x5f1af2(0x351)]}),_0x2e4b1f=_0x5aaf0f[_0x5f1af2(0x362)],_0x34ebda=_0xb6bf38[_0x5f1af2(0x362)];}this['_docStateChangeManagerService'][_0x5f1af2(0x244)](_0x2af66d,{'history':_0x55255a,'collaboration':_0x118c9e});}};wn=q([K(0x0,_0xb8a7b6(_0x59fba4)),K(0x1,_0x4e87b4),K(0x2,_0xb8a7b6(_0x5023e3))],wn);let Tn=class{constructor(_0x5a46df,_0x253456){const _0x43ebd4=_0x206259;this[_0x43ebd4(0x359)]=_0x5a46df,this[_0x43ebd4(0x3c8)]=_0x253456;}[_0x206259(0x290)](_0x9853dc){const _0xbc7727=_0x206259;var _0x476b6f;let _0x315278=this[_0xbc7727(0x359)][_0xbc7727(0x229)](_0x92d5ec),_0x536f79=(_0x476b6f=_0x315278[_0xbc7727(0x395)]())==null?[]:_0x476b6f;if(_0x536f79[_0xbc7727(0x35f)]===0x0)return;let _0x3834af=_0x9853dc['unitID'],_0xed4e3a=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3834af,'actions':null,'textRanges':_0x536f79}}],_0x1f8166=this[_0xbc7727(0x3c8)][_0xbc7727(0x376)](_0x9853dc,_0xed4e3a);if(!_0x324463(_0x1f8166))throw _0x1f8166[_0xbc7727(0x320)];let _0x4aeb9f=_0x1f8166['m2Prime'][0x0][_0xbc7727(0x351)]['textRanges'];Array[_0xbc7727(0x397)](_0x4aeb9f)&&_0x4aeb9f['length']&&_0x315278['replaceDocRanges'](_0x4aeb9f,{'unitId':_0x3834af,'subUnitId':_0x3834af},!0x1);}};Tn=q([K(0x0,_0xb8a7b6(_0x59fba4)),K(0x1,_0x4e87b4)],Tn);let En=class extends _0x1b0287{constructor(_0x3b295f,_0x59788a,_0x4a461e,_0x38bc89,_0x257aee,_0x579504,_0x4868bf,_0x37bab0){const _0x123541=_0x206259;super(),this[_0x123541(0x22e)]=_0x3b295f,this[_0x123541(0x334)]=_0x59788a,this[_0x123541(0x338)]=_0x4a461e,this['_docTransformStateCacheService']=_0x38bc89,this[_0x123541(0x3ff)]=_0x257aee,this[_0x123541(0x37d)]=_0x579504,this[_0x123541(0x3f6)]=_0x4868bf,this[_0x123541(0x3b5)]=_0x37bab0,G(this,_0x123541(0x3a7),new _0x3f7448(_0x18999b[_0x123541(0x23a)])),this[_0x123541(0x211)]();}['_initEntityListener'](){const _0x3b8777=_0x206259;this[_0x3b8777(0x228)](this['_collaborationController'][_0x3b8777(0x2c8)]['subscribe'](_0x46f264=>{const _0x427304=_0x3b8777;let _0x545bc1=this[_0x427304(0x22e)][_0x427304(0x206)][_0x427304(0x385)](_0x56830f=>{const _0x156fc5=_0x427304;if(_0x56830f==null)return;let {unitId:_0x4347a9,redoState:_0x3f8cee,commandId:_0x5b30c6}=_0x56830f;if(_0x4347a9!==_0x46f264[_0x156fc5(0x324)])return;let _0x4b6b6b={'id':_0x5b30c6,'type':_0x526abf['MUTATION'],'params':{'unitId':_0x4347a9,'actions':_0x3f8cee[_0x156fc5(0x20b)],'textRanges':null}};_0x46f264['onLocalMutation'](_0x4b6b6b);});_0x46f264[_0x427304(0x228)](_0x545bc1),_0x46f264 instanceof _0x3a42ed&&_0x46f264['addHandlerCallback']({'onTransformIME':_0x5555ea=>this['_docTransformIMECacheService'][_0x427304(0x21d)](_0x5555ea),'onTransformState':_0x39b83b=>this[_0x427304(0x2bb)]['transformStateCache'](_0x39b83b),'onTransformSelections':_0x185767=>this[_0x427304(0x3ff)][_0x427304(0x290)](_0x185767),'onSyncEditingCollabCursor':_0x26d48c=>this[_0x427304(0x37d)][_0x427304(0x2a3)](_0x26d48c),'onTransformRemoteChangesetByIMECache':_0x4c6ff9=>this[_0x427304(0x338)][_0x427304(0x1f4)](_0x4c6ff9),'onTransformRemoteChangesetByStateCache':_0x211aa3=>this[_0x427304(0x2bb)]['transformRemoteChangeset'](_0x211aa3)});}));}};En=q([K(0x0,_0xb8a7b6(_0x5023e3)),K(0x1,_0xb8a7b6(_0x1544ac)),K(0x2,_0xb8a7b6(Cn)),K(0x3,_0xb8a7b6(wn)),K(0x4,_0xb8a7b6(Tn)),K(0x5,_0xb8a7b6(un)),K(0x6,_0x3c5b09),K(0x7,_0xb8a7b6(_0x14b5d2))],En);let Dn=class extends _0x1b0287{constructor(_0xd968a0,_0x34548f,_0x544b2b,_0x44ca92){const _0x4e6145=_0x206259;super(),this[_0x4e6145(0x359)]=_0xd968a0,this[_0x4e6145(0x3f0)]=_0x34548f,this[_0x4e6145(0x1ef)]=_0x544b2b,this[_0x4e6145(0x340)]=_0x44ca92,G(this,_0x4e6145(0x22c),void 0x0),this[_0x4e6145(0x2ee)]();}[_0x206259(0x2ee)](){const _0xd7a7e6=_0x206259;this[_0xd7a7e6(0x2df)](),this[_0xd7a7e6(0x223)](),this['_monkeyPatchLogService'](),this[_0xd7a7e6(0x2a1)]();}[_0x206259(0x2a1)](){const _0x37eb32=_0x206259;this[_0x37eb32(0x228)](this['_collaborationSessionService'][_0x37eb32(0x28a)][_0x37eb32(0x385)](_0x21e601=>{const _0x4b3707=_0x37eb32;this[_0x4b3707(0x22c)]=_0x21e601==null?void 0x0:_0x21e601[_0x4b3707(0x325)];}));}['_initWindowErrorListener'](){const _0x345418=_0x206259;let _0x59cd92=_0x384f8f=>{const _0x3419ed=_0x4885;var _0x485037;this[_0x3419ed(0x346)](_0x3419ed(0x320),_0x3419ed(0x387)+_0x384f8f['message']+_0x3419ed(0x2bf)+_0x384f8f['filename']+':'+_0x384f8f[_0x3419ed(0x330)]+':'+_0x384f8f[_0x3419ed(0x259)]+'\x0a'+(((_0x485037=_0x384f8f[_0x3419ed(0x320)])==null?void 0x0:_0x485037[_0x3419ed(0x315)])||''));};window[_0x345418(0x402)](_0x345418(0x320),_0x59cd92),this['disposeWithMe'](()=>{const _0xb32bbe=_0x345418;window[_0xb32bbe(0x404)](_0xb32bbe(0x320),_0x59cd92);});}[_0x206259(0x223)](){const _0x34fb7e=_0x206259;let _0x49474a=_0x123eea=>{const _0xfb6424=_0x4885;this[_0xfb6424(0x346)](_0xfb6424(0x320),_0xfb6424(0x2ef)+_0x123eea['reason']);};window[_0x34fb7e(0x402)](_0x34fb7e(0x323),_0x49474a),this[_0x34fb7e(0x228)](()=>{const _0x46140d=_0x34fb7e;window[_0x46140d(0x404)](_0x46140d(0x323),_0x49474a);});}['_monkeyPatchLogService'](){const _0x519066=_0x206259;let _0x310f86=this[_0x519066(0x1ef)][_0x519066(0x320)]['bind'](this[_0x519066(0x1ef)]);this[_0x519066(0x1ef)][_0x519066(0x320)]=(..._0x431e14)=>{const _0xe7d4e7=_0x519066;let _0x4a3db0=_0x431e14[_0xe7d4e7(0x3ee)](_0x199138=>_0x199138 instanceof Error?_0x199138[_0xe7d4e7(0x214)]+'\x0a'+_0x199138[_0xe7d4e7(0x315)]:String(_0x199138))[_0xe7d4e7(0x2f2)]('\x20');this['_uploadLog'](_0xe7d4e7(0x320),_0xe7d4e7(0x30c)+_0x4a3db0),_0x310f86(..._0x431e14);},this[_0x519066(0x228)](()=>{const _0x3220bd=_0x519066;this[_0x3220bd(0x1ef)]['error']=_0x310f86;});}[_0x206259(0x346)](_0x170259,_0x4e0167){const _0x126c9f=_0x206259;try{let _0x403373={'userId':this['_memberID'],'logLabel':_0x170259,'content':_0x4e0167};this[_0x126c9f(0x3f0)][_0x126c9f(0x25c)](_0x126c9f(0x26e),{'body':_0x403373})['catch'](()=>{});}catch{}}};Dn=q([K(0x0,_0xb8a7b6(_0x59fba4)),K(0x1,_0xb8a7b6(_0x396900)),K(0x2,_0x5916ce),K(0x3,_0xb8a7b6(_0x52b1cf))],Dn);function On(_0x12a2e0){const _0x1696f3=_0x206259;var _0x28ded7,_0x2ffe68;let _0x17bac9=(_0x28ded7=_0x12a2e0[_0x1696f3(0x364)])==null?void 0x0:_0x28ded7[_0x1696f3(0x328)],_0x4a5be6=((_0x2ffe68=_0x12a2e0[_0x1696f3(0x364)])==null?void 0x0:_0x2ffe68[_0x1696f3(0x360)])||0x0;return _0x17bac9===_0x52f8ca[_0x1696f3(0x227)]&&_0x4a5be6>0x0;}function kn(_0x1beb4c){const _0xf5aaa8=_0x206259;return _0x1beb4c[_0xf5aaa8(0x316)]===_0x212b69[_0xf5aaa8(0x3ba)];}let Q=class extends _0x1b0287{constructor(_0x22a5e6,_0x434040,_0xc59311,_0x510632,_0xddd5f5,_0x3890e8,_0x4f540e){const _0x377129=_0x206259;super(),this['_messageService']=_0x22a5e6,this[_0x377129(0x257)]=_0x434040,this['_configService']=_0xc59311,this[_0x377129(0x3f0)]=_0x510632,this['_univerInstanceService']=_0xddd5f5,this['_logService']=_0x3890e8,this['_localeService']=_0x4f540e,G(this,'_pollingInterval',null),G(this,'_maxFormulaLimit',0x0),G(this,'_currentUsage',0x0),G(this,'_taskIds',[]),G(this,_0x377129(0x38f),0x0),this[_0x377129(0x3eb)]();}['_initCommandInterceptor'](){const _0x46e480=_0x206259;this[_0x46e480(0x228)](this[_0x46e480(0x257)][_0x46e480(0x20e)]((_0x3519a0,_0x2cff82)=>{const _0x1e8653=_0x46e480;var _0x303ed0;if(_0x3519a0['id']!==_0x280be0['id'])return;let _0x5dd37c=_0x3519a0[_0x1e8653(0x351)];if(this[_0x1e8653(0x263)]((_0x303ed0=_0x5dd37c['dirtyRanges'])==null?[]:_0x303ed0)&&!this[_0x1e8653(0x3ab)]())throw this[_0x1e8653(0x20d)](_0x3519a0,_0x2cff82),this['_showGuardMessage'](),new _0x1149f2();})),this[_0x46e480(0x228)](this['_commandService'][_0x46e480(0x319)]((_0x1abc91,_0x1c9422)=>{const _0x11c840=_0x46e480;if(_0x1abc91['id']!==_0xe628ff['id'])return;let _0x402a73=_0x1abc91[_0x11c840(0x351)];if(On(_0x402a73)){let _0x44bc08=_0x555907();this[_0x11c840(0x2f5)][_0x11c840(0x265)](_0x44bc08),this[_0x11c840(0x2f3)](_0x44bc08);}else{if(kn(_0x402a73)&&this[_0x11c840(0x2f5)]['length']>0x0){let _0x35b7b0=this[_0x11c840(0x2f5)][_0x11c840(0x3ef)]();this['_releaseCalculationLimit'](_0x35b7b0);}}}));}[_0x206259(0x29b)](){const _0x5b7d75=_0x206259;super[_0x5b7d75(0x29b)](),this[_0x5b7d75(0x30a)](),this['_taskIds']=[],this[_0x5b7d75(0x292)]=0x0,this[_0x5b7d75(0x299)]=0x0,this[_0x5b7d75(0x38f)]=0x0;}async['_checkAndWaitForCalculationPermission'](_0x5cbcdb,_0x25fa8c){const _0x4985c7=_0x206259;for(let _0x391ecc=0x0;_0x391ecc<0x1e;_0x391ecc++)try{if(await this['_getFormulaLimitStatus'](),this[_0x4985c7(0x3ab)]()){this[_0x4985c7(0x3bb)](_0x5cbcdb,_0x25fa8c),this[_0x4985c7(0x3f6)][_0x4985c7(0x2f1)]({'content':this[_0x4985c7(0x3b5)]['t'](_0x4985c7(0x21b)),'type':_0x35617f[_0x4985c7(0x318)]});return;}await new Promise(_0x24cc4a=>{const _0xb89750=_0x4985c7;this[_0xb89750(0x21c)]=window[_0xb89750(0x235)](_0x24cc4a,0x3e8);});}catch(_0x3efecb){this['_logService'][_0x4985c7(0x320)](_0x3efecb);}this['_messageService'][_0x4985c7(0x2f1)]({'content':this['_localeService']['t'](_0x4985c7(0x238)),'type':_0x35617f[_0x4985c7(0x371)]});}['_applyCommand'](_0x56514d,_0x23e60a){const _0x27f86a=_0x206259;try{this[_0x27f86a(0x257)][_0x27f86a(0x3dc)](_0x56514d['id'],_0x56514d[_0x27f86a(0x351)],_0x23e60a);}catch(_0x1ae236){this[_0x27f86a(0x1ef)][_0x27f86a(0x320)](_0x1ae236);}}[_0x206259(0x3a8)](_0x184170,_0x1796ec){const _0x580be6=_0x206259;_0x1796ec<this['_lastResponseTimestamp']||(this[_0x580be6(0x38f)]=_0x1796ec,this[_0x580be6(0x299)]=Number[_0x580be6(0x254)](_0x184170[_0x580be6(0x262)]),this[_0x580be6(0x292)]=Number[_0x580be6(0x254)](_0x184170[_0x580be6(0x24a)]));}async[_0x206259(0x2f3)](_0x559f49){const _0x2b9eba=_0x206259;let _0x57f2ac=Date[_0x2b9eba(0x2a6)]();try{var _0x24f7b5,_0x51e59e;let _0x33a7af=((_0x24f7b5=this[_0x2b9eba(0x378)][_0x2b9eba(0x38b)](_0xde024d))==null?void 0x0:_0x24f7b5[_0x2b9eba(0x2d3)])||_0x2b9eba(0x2b1),_0xe6c858=(await this[_0x2b9eba(0x3f0)][_0x2b9eba(0x25c)](_0x33a7af,{'body':JSON[_0x2b9eba(0x3e0)]({'taskId':_0x559f49})}))[_0x2b9eba(0x3a9)];if(((_0x51e59e=_0xe6c858['error'])==null?void 0x0:_0x51e59e[_0x2b9eba(0x380)])!==_0x5e0da0['OK'])return;this[_0x2b9eba(0x3a8)](_0xe6c858[_0x2b9eba(0x329)],_0x57f2ac);}catch(_0x311d64){this['_logService'][_0x2b9eba(0x320)](_0x311d64);}}async[_0x206259(0x3b1)](_0x1fc11d){const _0x1d1c32=_0x206259;let _0xd7b0b3=Date['now']();try{var _0x361932,_0x10fc50;let _0x2dc094=((_0x361932=this[_0x1d1c32(0x378)][_0x1d1c32(0x38b)](_0xde024d))==null?void 0x0:_0x361932[_0x1d1c32(0x3d5)])||_0x1d1c32(0x3a1),_0x404e68=_0x1fc11d?_0x2dc094+_0x1d1c32(0x3e4)+encodeURIComponent(_0x1fc11d):_0x2dc094,_0x415b82=(await this['_httpService']['get'](_0x404e68))[_0x1d1c32(0x3a9)];if(((_0x10fc50=_0x415b82[_0x1d1c32(0x320)])==null?void 0x0:_0x10fc50['code'])!==_0x5e0da0['OK'])return;this['_setFormulaLimitStatus'](_0x415b82[_0x1d1c32(0x329)],_0xd7b0b3);}catch(_0x5690ce){this[_0x1d1c32(0x1ef)][_0x1d1c32(0x320)](_0x5690ce);}}async[_0x206259(0x355)](_0x20d3a8){const _0x32d55b=_0x206259;let _0x284f4c=Date[_0x32d55b(0x2a6)]();try{var _0x25e4c3,_0x3a8901;let _0x33d687=((_0x25e4c3=this[_0x32d55b(0x378)]['getConfig'](_0xde024d))==null?void 0x0:_0x25e4c3[_0x32d55b(0x352)])||_0x32d55b(0x276),_0x2588a9=(await this['_httpService'][_0x32d55b(0x25c)](_0x33d687,{'body':JSON[_0x32d55b(0x3e0)]({'taskId':_0x20d3a8})}))[_0x32d55b(0x3a9)];if(((_0x3a8901=_0x2588a9[_0x32d55b(0x320)])==null?void 0x0:_0x3a8901[_0x32d55b(0x380)])!==_0x5e0da0['OK'])return;this[_0x32d55b(0x3a8)](_0x2588a9[_0x32d55b(0x329)],_0x284f4c);}catch(_0x2f6b8a){this[_0x32d55b(0x1ef)][_0x32d55b(0x320)](_0x2f6b8a);}}[_0x206259(0x3ab)](){const _0x3d8945=_0x206259;return this[_0x3d8945(0x299)]===0x0?!0x0:this[_0x3d8945(0x299)]-this[_0x3d8945(0x292)]>0x0;}[_0x206259(0x30a)](){const _0x15e38b=_0x206259;this[_0x15e38b(0x21c)]&&(clearTimeout(this[_0x15e38b(0x21c)]),this['_pollingInterval']=null);}[_0x206259(0x375)](){const _0x245d59=_0x206259;this[_0x245d59(0x3f6)][_0x245d59(0x2f1)]({'content':this[_0x245d59(0x3b5)]['t'](_0x245d59(0x23e)),'type':_0x35617f[_0x245d59(0x303)]});}[_0x206259(0x263)](_0x490cca){const _0x2d0b2c=_0x206259;for(let _0x1bdd15 of _0x490cca){let {unitId:_0x490417,sheetId:_0xa954d6,range:_0x493794}=_0x1bdd15,_0x3ef285=this[_0x2d0b2c(0x248)]['getUnit'](_0x490417);if(!_0x3ef285)continue;let _0x4e342f=_0x3ef285[_0x2d0b2c(0x2b6)](_0xa954d6);if(!_0x4e342f)continue;let _0x3ef74a=_0x4e342f[_0x2d0b2c(0x1fd)]();for(let _0x520721=_0x493794[_0x2d0b2c(0x2db)];_0x520721<=_0x493794[_0x2d0b2c(0x37b)];_0x520721++)for(let _0xb8d584=_0x493794[_0x2d0b2c(0x3ed)];_0xb8d584<=_0x493794['endColumn'];_0xb8d584++){let _0x598784=_0x3ef74a['getValue'](_0x520721,_0xb8d584);if(_0x598784&&(_0x42b484(_0x598784['f'])||_0x5c72a3(_0x598784['si'])))return!0x0;}}return!0x1;}};Q=q([K(0x0,_0xb8a7b6(_0x3c5b09)),K(0x1,_0x498ceb),K(0x2,_0x189dcf),K(0x3,_0xb8a7b6(_0x396900)),K(0x4,_0x2d5bc6),K(0x5,_0x5916ce),K(0x6,_0xb8a7b6(_0x14b5d2))],Q);let An=class extends _0x1b0287{constructor(_0x59e7dc,_0x50c049,_0x424e13){const _0x475507=_0x206259;super(),this[_0x475507(0x378)]=_0x59e7dc,this[_0x475507(0x3d1)]=_0x50c049,this['_revisionService']=_0x424e13,G(this,'_cachedData',new Map()),G(this,'_saveTaskMap',new Map()),G(this,_0x475507(0x31f),!0x1);}[_0x206259(0x2fe)](){const _0x51507c=_0x206259;this[_0x51507c(0x31f)]=!0x0;}[_0x206259(0x2a9)](){const _0x375ea0=_0x206259;this[_0x375ea0(0x31f)]=!0x1;}get['saveTaskMap'](){const _0x877711=_0x206259;return this[_0x877711(0x3e6)];}[_0x206259(0x29b)](){this['exhaustSavingTask']()['then'](()=>super['dispose']());}async['loadOfflineData'](_0x340f02){const _0x85a0be=_0x206259;return this[_0x85a0be(0x31f)]?null:this[_0x85a0be(0x3d1)][_0x85a0be(0x1fa)](_0xafed70(_0x340f02));}async['saveOfflineData'](_0x5d0a86,_0x1f7a6d){const _0xc31a0c=_0x206259;return!!this[_0xc31a0c(0x3d1)][_0xc31a0c(0x3aa)](_0x5d0a86,_0x1f7a6d);}['updateOfflineData'](_0x344463,_0x3f5a4a,_0x5f3958,_0x389761){const _0x55e65e=_0x206259;let _0x14b77a=this[_0x55e65e(0x240)][_0x55e65e(0x32d)](_0x344463);this[_0x55e65e(0x25d)][_0x55e65e(0x3a3)](_0x344463,{'unitID':_0x344463,'type':_0x3f5a4a,'awaitingChangeset':_0x5f3958,'mutations':_0x389761,'rev':_0x14b77a}),this[_0x55e65e(0x3e6)][_0x55e65e(0x356)](_0x344463)||this['_scheduleSaving'](_0x344463);}['_scheduleSaving'](_0x3ceebe){const _0x8d73c1=_0x206259;let _0x25fcd9=this[_0x8d73c1(0x339)]();_0x25fcd9===0x0?this[_0x8d73c1(0x2cc)](_0x3ceebe):this[_0x8d73c1(0x3e6)][_0x8d73c1(0x3a3)](_0x3ceebe,setTimeout(()=>this[_0x8d73c1(0x2cc)](_0x3ceebe),_0x25fcd9));}[_0x206259(0x339)](){const _0x2df38f=_0x206259;var _0x12be96;return(_0x12be96=this[_0x2df38f(0x378)][_0x2df38f(0x38b)](_0x5c929a))==null?_0x292543:_0x12be96;}[_0x206259(0x2cc)](_0x58c919){const _0x4e5969=_0x206259;let _0x36f210=this[_0x4e5969(0x3e6)]['get'](_0x58c919);return _0x36f210!==void 0x0&&window[_0x4e5969(0x2d7)](_0x36f210),this['_localStorageService'][_0x4e5969(0x3aa)](_0xafed70(_0x58c919),this[_0x4e5969(0x25d)]['get'](_0x58c919))[_0x4e5969(0x289)](()=>this[_0x4e5969(0x3e6)]['delete'](_0x58c919));}async[_0x206259(0x27f)](){const _0xe3dabe=_0x206259;let _0x220ada=[];this[_0xe3dabe(0x3e6)][_0xe3dabe(0x27a)]((_0x3bbbd3,_0x51f348)=>{const _0x4e4169=_0xe3dabe;window[_0x4e4169(0x2d7)](_0x3bbbd3),_0x220ada[_0x4e4169(0x265)](this[_0x4e4169(0x2cc)](_0x51f348)['then'](()=>{const _0x2dea5e=_0x4e4169;this[_0x2dea5e(0x3e6)][_0x2dea5e(0x3fd)](_0x51f348);}));}),await Promise['all'](_0x220ada);}};An=q([K(0x0,_0x189dcf),K(0x1,_0x37c6e8),K(0x2,_0xb8a7b6(_0x3ac636))],An);var jn=class extends _0x44d0b2{constructor(){const _0xbb40a4=_0x206259;super(),G(this,_0xbb40a4(0x210),void 0x0),this[_0xbb40a4(0x210)]=_0xfb4a42(window,'popstate')[_0xbb40a4(0x217)](_0x384030(this[_0xbb40a4(0x273)]),_0x561cad({'bufferSize':0x1,'refCount':!0x0}),_0x496906(void 0x0));}[_0x206259(0x2d8)](_0x314a8f,_0x434a28,_0x5e62bf=!0x1){const _0x2d098b=_0x206259;let _0x1cb580=new URL(window[_0x2d098b(0x373)][_0x2d098b(0x30e)]);_0x1cb580[_0x2d098b(0x33d)][_0x2d098b(0x3a3)](_0x314a8f,_0x434a28),_0x5e62bf?window[_0x2d098b(0x288)][_0x2d098b(0x252)]('','',_0x1cb580[_0x2d098b(0x26c)]()):window['history'][_0x2d098b(0x33f)]('','',_0x1cb580[_0x2d098b(0x26c)]());}[_0x206259(0x353)](_0x64d640,_0xba8a7b=!0x1){const _0x307df3=_0x206259;let _0x56748e=new URL(window['location'][_0x307df3(0x30e)]);_0x56748e['searchParams']['delete'](_0x64d640),_0xba8a7b?window[_0x307df3(0x288)][_0x307df3(0x252)]('','',_0x56748e[_0x307df3(0x26c)]()):window[_0x307df3(0x288)][_0x307df3(0x33f)]('','',_0x56748e[_0x307df3(0x26c)]());}['getParam'](_0x3cbf44){const _0x56b485=_0x206259;var _0x5492da;return(_0x5492da=new URL(window[_0x56b485(0x373)][_0x56b485(0x30e)])['searchParams'][_0x56b485(0x229)](_0x3cbf44))==null?void 0x0:_0x5492da;}};let $=class extends _0x2676e2{constructor(_0x76caf9=Sn,_0x55cd4c,_0x1e2332,_0x584aac){const _0x54c60a=_0x206259;super(),this[_0x54c60a(0x2b5)]=_0x76caf9,this['_renderManagerService']=_0x55cd4c,this[_0x54c60a(0x359)]=_0x1e2332,this[_0x54c60a(0x378)]=_0x584aac;let {..._0x1917cb}=_0x43b789({},Sn,this[_0x54c60a(0x2b5)]);this[_0x54c60a(0x378)][_0x54c60a(0x2ab)]('collaboration-client-ui.config',_0x1917cb);}[_0x206259(0x2ba)](){const _0x5d7f4d=_0x206259;this[_0x5d7f4d(0x3dd)](),this['_initDependencies']();}[_0x206259(0x3bd)](){this['_registerRenderDependencies']();}['_registerDependencies'](){const _0x4b9603=_0x206259;var _0x32c31d;let _0x1b04db=[[sn],[Q],[Tn],[Cn],[wn],[un],[tn,{'useClass':jn}],[_0x26fea5,{'useClass':_0x5c854a}],[_0x17a5fc,{'useClass':An}],[J],[En],[Z],[X],[an],[Y]];this[_0x4b9603(0x2b5)][_0x4b9603(0x3f2)]&&_0x1b04db[_0x4b9603(0x265)]([Dn]),_0x393efa(this[_0x4b9603(0x359)],_0xa85f6c(_0x1b04db,(_0x32c31d=this[_0x4b9603(0x2b5)])==null?void 0x0:_0x32c31d['override']));}[_0x206259(0x310)](){const _0x4ba70c=_0x206259;this[_0x4ba70c(0x228)](this[_0x4ba70c(0x34e)][_0x4ba70c(0x241)](_0x13410e[_0x4ba70c(0x2f6)],[vn])),this['disposeWithMe'](this['_renderManagerService'][_0x4ba70c(0x241)](_0x13410e[_0x4ba70c(0x218)],[bn]));}[_0x206259(0x1fc)](){const _0x5e56cf=_0x206259;_0x25848c(this[_0x5e56cf(0x359)],[[X],[J],[En],[Z],[Y],[Q],[an]]),this['_config'][_0x5e56cf(0x3f2)]&&_0x25848c(this[_0x5e56cf(0x359)],[[Dn]]);}};G($,'pluginName',_0x206259(0x388)),G($,'packageName',nn),G($,_0x206259(0x3f1),rn),$=q([_0x4070e5(_0x4944ee),K(0x1,_0xd23c31),K(0x2,_0xb8a7b6(_0x59fba4)),K(0x3,_0x189dcf)],$);let Mn=class extends _0x4a830b{constructor(_0x13e160,_0x27b342,_0x11be32,_0x181489,_0x455b5a){super(_0x13e160,_0x27b342,_0x11be32,_0x181489,_0x455b5a);}async['createSocket'](_0x30e7ad){const _0x312c21=_0x206259;let _0xee32e=await this[_0x312c21(0x2c4)](),_0xf7c2d9=this['_createSocketURL'](_0x30e7ad,_0xee32e);return this[_0x312c21(0x1f9)](_0xf7c2d9);}[_0x206259(0x2e7)](_0x13a7f7,_0x34498b){const _0x257eac=_0x206259;let _0x239c9d=typeof window>'u'?new URL(_0x13a7f7):new URL(_0x13a7f7,window[_0x257eac(0x373)][_0x257eac(0x202)]);_0x239c9d[_0x257eac(0x33d)][_0x257eac(0x3a3)](_0x257eac(0x237),_0x34498b);let _0x43a765=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x257eac(0x3f3)]);return _0x43a765[_0x257eac(0x229)]('runId')&&_0x239c9d[_0x257eac(0x33d)][_0x257eac(0x3a3)]('runId',_0x43a765[_0x257eac(0x229)](_0x257eac(0x365))),_0x239c9d['toString']();}async['_getSessionTicket'](){const _0x45c3dd=_0x206259;var _0x4e19dd,_0x51f7e8,_0xe64321;let _0x8dde2a=this[_0x45c3dd(0x378)]['getConfig'](_0xde024d),_0x2dd309=(_0x4e19dd=_0x8dde2a==null?void 0x0:_0x8dde2a['wsSessionTicketUrl'])==null?_0x2cc108:_0x4e19dd;return(_0x51f7e8=(_0xe64321=(await this[_0x45c3dd(0x3f0)][_0x45c3dd(0x229)](_0x2dd309,{'headers':{'Content-Type':_0x45c3dd(0x216)}}))[_0x45c3dd(0x3a9)])==null?void 0x0:_0xe64321[_0x45c3dd(0x286)])==null?'':_0x51f7e8;}};Mn=q([K(0x0,_0xb8a7b6(_0x59fba4)),K(0x1,_0xb8a7b6(_0x396900)),K(0x2,_0x189dcf),K(0x3,_0x5916ce),K(0x4,_0x13c19b)],Mn);let Nn=class extends _0x1b0287{constructor(_0x265bf4,_0x1b54e9,_0x4f5c50){const _0x1baa1a=_0x206259;super(),this[_0x1baa1a(0x29d)]=_0x265bf4,this[_0x1baa1a(0x3f0)]=_0x1b54e9,this['_configService']=_0x4f5c50;}async[_0x206259(0x25b)](_0x120c2e,_0x29aa95,_0x5e4fd2,..._0xbc9169){const _0x2d65d0=_0x206259;var _0x35a1cb,_0x55bcee,_0x515c81,_0x5bfaf1;let _0x214adf=this['_instanceService'][_0x2d65d0(0x377)]();if(!_0x214adf)throw Error(_0x2d65d0(0x201));let _0x18ed7e=((_0x35a1cb=this[_0x2d65d0(0x378)][_0x2d65d0(0x38b)](_0x5d5a4b))==null?_0x1187e7:_0x35a1cb)+'/'+_0x120c2e+_0x2d65d0(0x24e)+_0x29aa95,_0x5c817a={'scriptId':_0x120c2e,'runId':(_0x55bcee=new URL(window['location'][_0x2d65d0(0x30e)])[_0x2d65d0(0x33d)][_0x2d65d0(0x229)]('runId'))==null?'':_0x55bcee,'function':_0x29aa95,'unitId':_0x214adf[_0x2d65d0(0x2f0)](),'argsOfFunction':JSON[_0x2d65d0(0x3e0)](_0xbc9169),'invokeId':(_0x515c81=_0x5e4fd2[_0x2d65d0(0x3e5)])==null?'':_0x515c81,'executionId':(_0x5bfaf1=_0x5e4fd2['executionId'])==null?'':_0x5bfaf1};try{let _0x5b3e7d=await this['_httpService']['post'](_0x18ed7e,{'body':_0x5c817a});return _0x5b3e7d[_0x2d65d0(0x3a9)]['error']&&_0x5b3e7d[_0x2d65d0(0x3a9)][_0x2d65d0(0x320)][_0x2d65d0(0x380)]!==_0x5e0da0['OK']?_0x2d65d0(0x22d):_0x5b3e7d[_0x2d65d0(0x3a9)][_0x2d65d0(0x2dd)];}catch{return'Failed';}}};Nn=q([K(0x0,_0x2d5bc6),K(0x1,_0xb8a7b6(_0x396900)),K(0x2,_0x189dcf)],Nn);const Pn=0x7530,Fn='ACTIVE_UNIT_EVENT_CHANNEL';var In=class extends _0x1b0287{constructor(){const _0xf7511a=_0x206259;super(),G(this,_0xf7511a(0x36b),_0x555907()),G(this,_0xf7511a(0x2d5),new Set()),G(this,'_unitOnClients',new Map()),G(this,_0xf7511a(0x37f),null),G(this,_0xf7511a(0x3b7),new Map()),G(this,_0xf7511a(0x3c6),new Map()),this[_0xf7511a(0x2ee)]();}['dispose'](){const _0xad8a6e=_0x206259;super[_0xad8a6e(0x29b)](),this[_0xad8a6e(0x3b7)][_0xad8a6e(0x27a)]((_0x49991f,_0x4771b1)=>this[_0xad8a6e(0x3fb)](_0x4771b1)),this[_0xad8a6e(0x37f)]&&window[_0xad8a6e(0x21f)](this['_heartbeatTimer']);}[_0x206259(0x224)](_0x512775){const _0x4afaa6=_0x206259;return this[_0x4afaa6(0x389)](_0x512775)[_0x4afaa6(0x217)](_0x3a2980());}[_0x206259(0x28b)](_0x409675){const _0x578c04=_0x206259;this[_0x578c04(0x2d5)][_0x578c04(0x293)]===0x0&&this['_scheduleHeartbeat'](),this[_0x578c04(0x2d5)][_0x578c04(0x307)](_0x409675),this['_send']({'type':0x0,'memberID':this[_0x578c04(0x36b)],'unitIDs':[_0x409675],'isForwarded':!0x1});}['disposeUnit'](_0x3ae12c){const _0xbb3b=_0x206259;this['_selfUnitIDs'][_0xbb3b(0x3fd)](_0x3ae12c),this[_0xbb3b(0x2d5)][_0xbb3b(0x293)]===0x0&&this[_0xbb3b(0x37f)]&&window['clearInterval'](this[_0xbb3b(0x37f)]);}[_0x206259(0x2ee)](){const _0x6fe882=_0x206259;this[_0x6fe882(0x228)](_0x57ab4c(_0xfb4a42(window,_0x6fe882(0x219))[_0x6fe882(0x385)](_0x566ad9=>{const _0x35e2d5=_0x6fe882;if(_0x566ad9[_0x35e2d5(0x261)]!==Fn||!_0x566ad9['newValue'])return;let _0x339edc=JSON[_0x35e2d5(0x350)](_0x566ad9[_0x35e2d5(0x2cb)]);this['_handleEvent'](_0x339edc);}))),window['addEventListener']('unload',()=>this[_0x6fe882(0x31a)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array['from'](this['_selfUnitIDs'])}));}['_handleEvent'](_0x36ccb4){const _0x279420=_0x206259;switch(_0x36ccb4[_0x279420(0x313)]){case 0x0:this['_handleJoinEvent'](_0x36ccb4);break;case 0x1:this[_0x279420(0x3b3)](_0x36ccb4);break;case 0x2:this[_0x279420(0x2b9)](_0x36ccb4);break;}}[_0x206259(0x208)](_0x45b869){const _0x48a5ca=_0x206259;let {unitIDs:_0x2c4f32,memberID:_0x33c64f,isForwarded:_0x544aa2}=_0x45b869;_0x2c4f32[_0x48a5ca(0x27a)](_0x40b97e=>{const _0x3f2c86=_0x48a5ca;if(!_0x544aa2&&this['_unitOnClients'][_0x3f2c86(0x356)](_0x40b97e)&&this[_0x3f2c86(0x389)](_0x40b97e)['next'](_0x42d7f5[_0x3f2c86(0x221)]),!this[_0x3f2c86(0x26f)]['has'](_0x40b97e)||!this[_0x3f2c86(0x26f)][_0x3f2c86(0x229)](_0x40b97e)['has'](_0x33c64f)){let _0x55889f=this[_0x3f2c86(0x26f)][_0x3f2c86(0x229)](_0x40b97e)||new Set();_0x55889f[_0x3f2c86(0x307)](_0x33c64f),this[_0x3f2c86(0x26f)]['set'](_0x40b97e,_0x55889f),this[_0x3f2c86(0x306)](_0x33c64f);}}),_0x544aa2||this[_0x48a5ca(0x31a)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x48a5ca(0x2d5)]],'isForwarded':!0x0});}[_0x206259(0x306)](_0x5666bb){const _0x3a6e04=_0x206259;this[_0x3a6e04(0x3fb)](_0x5666bb);let _0x1c6feb=window[_0x3a6e04(0x235)](()=>{const _0x244f88=_0x3a6e04;this[_0x244f88(0x26f)][_0x244f88(0x27a)](_0x216767=>{const _0x3e2f89=_0x244f88;_0x216767[_0x3e2f89(0x3fd)](_0x5666bb);});},Pn*0x2);this[_0x3a6e04(0x3b7)][_0x3a6e04(0x3a3)](_0x5666bb,_0x1c6feb);}[_0x206259(0x3fb)](_0xbbd7b){const _0x47c32f=_0x206259;if(this[_0x47c32f(0x3b7)][_0x47c32f(0x356)](_0xbbd7b)){let _0xe8c9a3=this[_0x47c32f(0x3b7)]['get'](_0xbbd7b);_0xe8c9a3&&window[_0x47c32f(0x2d7)](_0xe8c9a3),this[_0x47c32f(0x3b7)][_0x47c32f(0x3a3)](_0xbbd7b,null);}}['_handleLeaveEvent'](_0x5d5e46){const _0x1199ba=_0x206259;let {memberID:_0x320aa0,unitIDs:_0x1d05c5}=_0x5d5e46;_0x1d05c5['forEach'](_0x59add2=>{const _0x4b50d8=_0x4885;var _0x12088a;let _0x5e29d8=this[_0x4b50d8(0x26f)]['get'](_0x59add2);_0x5e29d8&&(_0x5e29d8[_0x4b50d8(0x3fd)](_0x320aa0),(_0x12088a=this[_0x4b50d8(0x389)](_0x59add2))==null||_0x12088a['next'](_0x5e29d8[_0x4b50d8(0x293)]===0x0?_0x42d7f5[_0x4b50d8(0x3f9)]:_0x42d7f5['OTHER_CLIENTS_EDITING']));}),this[_0x1199ba(0x3fb)](_0x320aa0);}[_0x206259(0x2b9)](_0x23c638){const _0x5e4c18=_0x206259;this['_scheduleClearOtherTimer'](_0x23c638[_0x5e4c18(0x325)]);}[_0x206259(0x31a)](_0x103140){const _0x41055f=_0x206259;localStorage[_0x41055f(0x3aa)](Fn,JSON[_0x41055f(0x3e0)](_0x103140));}[_0x206259(0x20c)](){const _0x18e70c=_0x206259;this[_0x18e70c(0x37f)]=window[_0x18e70c(0x2a8)](()=>{const _0x58aafc=_0x18e70c;this['_send']({'type':0x2,'memberID':this[_0x58aafc(0x36b)]});},Pn);}[_0x206259(0x389)](_0x279cea){const _0x2a5b5a=_0x206259;return this[_0x2a5b5a(0x3c6)][_0x2a5b5a(0x356)](_0x279cea)||this[_0x2a5b5a(0x3c6)][_0x2a5b5a(0x3a3)](_0x279cea,new _0x3f7448(_0x42d7f5[_0x2a5b5a(0x3f9)])),this['_unitStatus'][_0x2a5b5a(0x229)](_0x279cea);}};export{Mn as BrowserCollaborationSocketService,Y as CollaborationDataLoaderController,J as DesktopCollaborationStatusDisplayController,tn as IURLService,Nn as RemoteUniscriptService,yn as SheetCollabCursorShape,$ as UniverCollaborationClientUIPlugin,In as WebBrowserSingleActiveUnitService,jn as WebURLService};
|