@univerjs-pro/collaboration-client-ui 0.10.12 → 0.10.13-nightly.202510290902

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.
Files changed (49) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/es-ES.js +1 -1
  6. package/lib/cjs/locale/fa-IR.js +1 -1
  7. package/lib/cjs/locale/fr-FR.js +1 -1
  8. package/lib/cjs/locale/ko-KR.js +1 -1
  9. package/lib/cjs/locale/ru-RU.js +1 -1
  10. package/lib/cjs/locale/vi-VN.js +1 -1
  11. package/lib/cjs/locale/zh-CN.js +1 -1
  12. package/lib/cjs/locale/zh-TW.js +1 -1
  13. package/lib/es/facade.js +1 -1
  14. package/lib/es/index.js +1 -1
  15. package/lib/es/locale/ca-ES.js +1 -1
  16. package/lib/es/locale/en-US.js +1 -1
  17. package/lib/es/locale/es-ES.js +1 -1
  18. package/lib/es/locale/fa-IR.js +1 -1
  19. package/lib/es/locale/fr-FR.js +1 -1
  20. package/lib/es/locale/ko-KR.js +1 -1
  21. package/lib/es/locale/ru-RU.js +1 -1
  22. package/lib/es/locale/vi-VN.js +1 -1
  23. package/lib/es/locale/zh-CN.js +1 -1
  24. package/lib/es/locale/zh-TW.js +1 -1
  25. package/lib/facade.js +1 -1
  26. package/lib/index.js +1 -1
  27. package/lib/locale/ca-ES.js +1 -1
  28. package/lib/locale/en-US.js +1 -1
  29. package/lib/locale/es-ES.js +1 -1
  30. package/lib/locale/fa-IR.js +1 -1
  31. package/lib/locale/fr-FR.js +1 -1
  32. package/lib/locale/ko-KR.js +1 -1
  33. package/lib/locale/ru-RU.js +1 -1
  34. package/lib/locale/vi-VN.js +1 -1
  35. package/lib/locale/zh-CN.js +1 -1
  36. package/lib/locale/zh-TW.js +1 -1
  37. package/lib/umd/facade.js +1 -1
  38. package/lib/umd/index.js +1 -1
  39. package/lib/umd/locale/ca-ES.js +1 -1
  40. package/lib/umd/locale/en-US.js +1 -1
  41. package/lib/umd/locale/es-ES.js +1 -1
  42. package/lib/umd/locale/fa-IR.js +1 -1
  43. package/lib/umd/locale/fr-FR.js +1 -1
  44. package/lib/umd/locale/ko-KR.js +1 -1
  45. package/lib/umd/locale/ru-RU.js +1 -1
  46. package/lib/umd/locale/vi-VN.js +1 -1
  47. package/lib/umd/locale/zh-CN.js +1 -1
  48. package/lib/umd/locale/zh-TW.js +1 -1
  49. package/package.json +19 -19
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x279361=_0x168c;(function(_0x145b65,_0x1d1c8e){const _0x5cc53e=_0x168c,_0xcd1603=_0x145b65();while(!![]){try{const _0x3293f2=parseInt(_0x5cc53e(0x236))/0x1*(-parseInt(_0x5cc53e(0x2dd))/0x2)+-parseInt(_0x5cc53e(0x15c))/0x3*(parseInt(_0x5cc53e(0x31d))/0x4)+-parseInt(_0x5cc53e(0x1ef))/0x5+parseInt(_0x5cc53e(0x1d5))/0x6+parseInt(_0x5cc53e(0x24a))/0x7*(parseInt(_0x5cc53e(0x352))/0x8)+parseInt(_0x5cc53e(0x13d))/0x9+parseInt(_0x5cc53e(0x32b))/0xa*(parseInt(_0x5cc53e(0x26a))/0xb);if(_0x3293f2===_0x1d1c8e)break;else _0xcd1603['push'](_0xcd1603['shift']());}catch(_0x926d77){_0xcd1603['push'](_0xcd1603['shift']());}}}(_0x46ed,0xc90c7));var kt=Object[_0x279361(0x1b5)],Ht=(_0xb573b6,_0x4a31c4,_0x5b2f72)=>_0x4a31c4 in _0xb573b6?kt(_0xb573b6,_0x4a31c4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5b2f72}):_0xb573b6[_0x4a31c4]=_0x5b2f72,_=(_0x10a8bb,_0xe154d3,_0x55898b)=>Ht(_0x10a8bb,typeof _0xe154d3!=_0x279361(0x20d)?_0xe154d3+'':_0xe154d3,_0x55898b);import{jsx as _0x417d02,jsxs as _0x12ae45}from'react/jsx-runtime';import{CollaborationStatus as _0x20f601,CollaborationSessionService as _0xe3b745,CollaborationController as _0x1c1280,DataLoaderService as _0x13e42a,MemberService as _0x4ac7a2,SessionStatus as _0x4ef11f,ILocalCacheService as _0x3b29b1,CollaborationUIEventService as _0x5307c3,CollaborationUIEventId as _0x48a9b0,DocCollaborationEntity as _0x237a0f,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x15a639,getLocalCacheKey as _0x5e73e3,LOCAL_CACHE_INTERVAL as _0x4b0503,LOCAL_CACHE_INTERVAL_KEY as _0x451d1f,UniverCollaborationClientPlugin as _0x3a6051,CollaborationSocketService as _0x26a376,DEFAULT_WS_SESSION_TICKET_URL as _0x5705fa,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x1f2e5e,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x43c7d3,UnitStatus as _0x4fc1d9}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x5852b4,IUniverInstanceService as _0x56b693,Inject as _0x349554,Injector as _0x543124,Disposable as _0x2972bb,createIdentifier as _0xf30ca8,ILogService as _0x525e85,ICommandService as _0x28d9e9,Optional as _0x3ff1c0,RxDisposable as _0x46d041,Workbook as _0x549dc5,DOC_RANGE_TYPE as _0x57a80d,debounce as _0x22d40a,Rectangle as _0x5c6826,DisposableCollection as _0x3616d9,toDisposable as _0x9a67c7,UniverInstanceType as _0x3d4c4a,generateRandomId as _0x1667d1,COLORS as _0x42b207,ColorKit as _0x17b25c,ThemeService as _0x5bf8fa,fromEventSubject as _0x470ace,Tools as _0x55b651,CommandType as _0x2d51ab,IConfigService as _0x3b186e,CanceledError as _0x4ccc82,isFormulaString as _0x54db1c,isFormulaId as _0x320189,ILocalStorageService as _0x47a719,DependentOn as _0x23c35b,Plugin as _0x565e94,merge as _0x206c2b,registerDependencies as _0x1c6e38,mergeOverrideWithDependencies as _0x274243,touchDependencies as _0x5a0569}from'@univerjs/core';import{useObservable as _0x23d515,useDependency as _0x23cdda,IUIPartsService as _0x213a5b,BuiltInUIPart as _0xcddbf3,connectInjector as _0xf3565a,IBeforeCloseService as _0x310aab,IMessageService as _0x382ae3,INotificationService as _0x3a220c}from'@univerjs/ui';import{BehaviorSubject as _0x5ccbb2,switchMap as _0x336798,of as _0x472e19,takeUntil as _0x1f12e2,debounceTime as _0x4cb684,Subject as _0x57abac,filter as _0x5eca73,merge as _0x27a14c,combineLatest as _0x4310f5,fromEvent as _0x175217,shareReplay as _0x2aeefc,mapTo as _0x2fd631,distinctUntilChanged as _0x1fa727}from'rxjs';import{Tooltip as _0x5c1611,clsx as _0x4889cb,MessageType as _0x41554e}from'@univerjs/design';import{forwardRef as _0x1bf544,useRef as _0x46ac09,createElement as _0x4fd7b0,useCallback as _0x1ee64f}from'react';import{IRemoteInstanceService as _0x15d297}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x306b9d,RefRangeService as _0x4336d8,SetSelectionsOperation as _0x2b686f,SheetsSelectionsService as _0x3c434f,EffectRefRangId as _0x5ba2a6,handleIRemoveRow as _0x471a44,handleIRemoveCol as _0x1e5959,handleMoveRange as _0x1450ab,handleInsertRow as _0x17b391,handleInsertRangeMoveRight as _0x1413a9,handleInsertRangeMoveDown as _0x1ac42c,handleInsertCol as _0x16ea5d,handleDeleteRangeMoveUp as _0x563e59,handleDeleteRangeMoveLeft as _0x23cee5,runRefRangeMutations as _0x4a4ccd}from'@univerjs/sheets';import{Shape as _0x8d0ab,Rect as _0x5beebc,getColor as _0x3775c8,RegularPolygon as _0x1ec3a4,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x167676,Vector2 as _0x5abf10,SHEET_VIEWPORT_KEY as _0x42cb58,IRenderManagerService as _0x3bda3f}from'@univerjs/engine-render';import{HTTPService as _0x4be316,ISocketService as _0x4665df,WebSocketService as _0x113f5a}from'@univerjs/network';import{IDocClipboardService as _0x145d98,NodePositionConvertToCursor as _0x11eb33,NodePositionConvertToRectRange as _0x1d33b0,TEXT_RANGE_LAYER_INDEX as _0x260d0d,SetDocZoomRatioOperation as _0x1d8eb6,DocIMEInputManagerService as _0x4f8931,DocStateChangeManagerService as _0xedf1f6}from'@univerjs/docs-ui';import{IImageIoService as _0x371d41}from'@univerjs/drawing';function _0x168c(_0x2feb4b,_0x137f3b){const _0x46ede2=_0x46ed();return _0x168c=function(_0x168c6e,_0x477b48){_0x168c6e=_0x168c6e-0x139;let _0xedfd64=_0x46ede2[_0x168c6e];return _0xedfd64;},_0x168c(_0x2feb4b,_0x137f3b);}import{ITransformService as _0x5aa3d9,CollaborationEvent as _0x52ad46,isTransformMutationFailure as _0x325207,isTransformMutationsWithChangesetSuccess as _0x1bca00,RevisionService as _0x2816b1,ISnapshotServerService as _0x3c8a43}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x3e4467,RichTextEditingMutation as _0xa51f36,DocSelectionManagerService as _0x304158,DocSkeletonManagerService as _0x40e4ab}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x1ea442,serializeRangeWithSheet as _0x5ddf78,FormulaExecuteStageType as _0x16e445,FormulaExecutedStateType as _0x24f9e0,SetFormulaCalculationStartMutation as _0x45c15a,SetFormulaCalculationNotificationMutation as _0x49e7c7}from'@univerjs/engine-formula';import{map as _0x457ae1,filter as _0x142e74,throttleTime as _0x449b52,takeUntil as _0xc3d5cb,switchMap as _0x1e056c}from'rxjs/operators';import{SheetSkeletonManagerService as _0x17a6cb,getCoordByCell as _0xdccc3d,getSheetObject as _0x18a982}from'@univerjs/sheets-ui';var g=function(){const _0x2e25e9=_0x279361;return g=Object['assign']||function(_0x480600){const _0x3f6ecb=_0x168c;for(var _0xed0fce,_0x2bc88a=0x1,_0x4a15a4=arguments[_0x3f6ecb(0x35e)];_0x2bc88a<_0x4a15a4;_0x2bc88a++){_0xed0fce=arguments[_0x2bc88a];for(var _0x26b635 in _0xed0fce)Object['prototype'][_0x3f6ecb(0x1d0)][_0x3f6ecb(0x1dc)](_0xed0fce,_0x26b635)&&(_0x480600[_0x26b635]=_0xed0fce[_0x26b635]);}return _0x480600;},g[_0x2e25e9(0x1b7)](this,arguments);},Ii=function(_0x369fac,_0x478c06){const _0x5e203b=_0x279361;var _0x2b2f94={};for(var _0x4bf863 in _0x369fac)Object['prototype'][_0x5e203b(0x1d0)][_0x5e203b(0x1dc)](_0x369fac,_0x4bf863)&&_0x478c06[_0x5e203b(0x298)](_0x4bf863)<0x0&&(_0x2b2f94[_0x4bf863]=_0x369fac[_0x4bf863]);if(_0x369fac!=null&&typeof Object[_0x5e203b(0x211)]==_0x5e203b(0x15f)){for(var _0x3f6c96=0x0,_0x4bf863=Object['getOwnPropertySymbols'](_0x369fac);_0x3f6c96<_0x4bf863[_0x5e203b(0x35e)];_0x3f6c96++)_0x478c06[_0x5e203b(0x298)](_0x4bf863[_0x3f6c96])<0x0&&Object['prototype'][_0x5e203b(0x1a0)][_0x5e203b(0x1dc)](_0x369fac,_0x4bf863[_0x3f6c96])&&(_0x2b2f94[_0x4bf863[_0x3f6c96]]=_0x369fac[_0x4bf863[_0x3f6c96]]);}return _0x2b2f94;},Xe=_0x1bf544(function(_0x66dd2c,_0x1dbc56){const _0x101922=_0x279361;var _0xd6f87b=_0x66dd2c[_0x101922(0x142)],_0xb94293=_0x66dd2c['id'],_0x325eb2=_0x66dd2c[_0x101922(0x26e)],_0x1019fe=_0x66dd2c[_0x101922(0x361)],_0x3405a5=Ii(_0x66dd2c,[_0x101922(0x142),'id',_0x101922(0x26e),'extend']),_0x572816=_0x101922(0x354)[_0x101922(0x25b)](_0xb94293,'\x20')[_0x101922(0x25b)](_0x325eb2||'')[_0x101922(0x2f1)](),_0x27027f=_0x46ac09('_'['concat'](Ei()));return Lt(_0xd6f87b,''['concat'](_0xb94293),{'defIds':_0xd6f87b[_0x101922(0x2c1)],'idSuffix':_0x27027f['current']},g({'ref':_0x1dbc56,'className':_0x572816},_0x3405a5),_0x1019fe);});function Lt(_0x20695d,_0x3a695c,_0x51e171,_0x23be71,_0x2ce83b){const _0x8c0924=_0x279361;return _0x4fd7b0(_0x20695d['tag'],g(g({'key':_0x3a695c},gi(_0x20695d,_0x51e171,_0x2ce83b)),_0x23be71),(vi(_0x20695d,_0x51e171)[_0x8c0924(0x216)]||[])['map'](function(_0x4ec9b9,_0x38f68e){const _0xe63473=_0x8c0924;return Lt(_0x4ec9b9,''['concat'](_0x3a695c,'-')['concat'](_0x20695d[_0xe63473(0x261)],'-')['concat'](_0x38f68e),_0x51e171,void 0x0,_0x2ce83b);}));}function gi(_0x31999a,_0x4004b6,_0x571c64){const _0x233b53=_0x279361;var _0x274493=g({},_0x31999a[_0x233b53(0x162)]);_0x571c64!=null&&_0x571c64['colorChannel1']&&_0x274493[_0x233b53(0x308)]==='colorChannel1'&&(_0x274493[_0x233b53(0x308)]=_0x571c64[_0x233b53(0x28f)]),_0x31999a['tag']==='mask'&&_0x274493['id']&&(_0x274493['id']=_0x274493['id']+_0x4004b6[_0x233b53(0x2c0)]),Object[_0x233b53(0x1ff)](_0x274493)['forEach'](function(_0x1d07e4){const _0x25ab7b=_0x233b53;var _0x4356be=_0x1d07e4[0x0],_0x582a23=_0x1d07e4[0x1];_0x4356be==='mask'&&typeof _0x582a23==_0x25ab7b(0x278)&&(_0x274493[_0x4356be]=_0x582a23[_0x25ab7b(0x324)](/url\(#(.*)\)/,'url(#$1'[_0x25ab7b(0x25b)](_0x4004b6[_0x25ab7b(0x2c0)],')')));});var _0x28d537=_0x4004b6[_0x233b53(0x2c1)];return!_0x28d537||_0x28d537[_0x233b53(0x35e)]===0x0||(_0x31999a['tag']==='use'&&_0x274493['xlink:href']&&(_0x274493[_0x233b53(0x2d4)]=_0x274493[_0x233b53(0x2d4)]+_0x4004b6[_0x233b53(0x2c0)]),Object[_0x233b53(0x1ff)](_0x274493)[_0x233b53(0x1a6)](function(_0x26ae33){const _0x14659c=_0x233b53;var _0x1a6b63=_0x26ae33[0x0],_0xc6dcc8=_0x26ae33[0x1];typeof _0xc6dcc8==_0x14659c(0x278)&&(_0x274493[_0x1a6b63]=_0xc6dcc8[_0x14659c(0x324)](/url\(#(.*)\)/,'url(#$1'[_0x14659c(0x25b)](_0x4004b6[_0x14659c(0x2c0)],')')));})),_0x274493;}function vi(_0x115615,_0x5f0b90){const _0x2565dd=_0x279361;var _0x38ea8a,_0x42936c=_0x5f0b90[_0x2565dd(0x2c1)];return!_0x42936c||_0x42936c[_0x2565dd(0x35e)]===0x0?_0x115615:_0x115615[_0x2565dd(0x261)]===_0x2565dd(0x23d)&&(!((_0x38ea8a=_0x115615[_0x2565dd(0x216)])===null||_0x38ea8a===void 0x0)&&_0x38ea8a[_0x2565dd(0x35e)])?g(g({},_0x115615),{'children':_0x115615[_0x2565dd(0x216)]['map'](function(_0x1ec695){const _0x1376ad=_0x2565dd;return typeof _0x1ec695[_0x1376ad(0x162)]['id']=='string'&&_0x42936c&&_0x42936c[_0x1376ad(0x281)](_0x1ec695['attrs']['id'])?g(g({},_0x1ec695),{'attrs':g(g({},_0x1ec695['attrs']),{'id':_0x1ec695['attrs']['id']+_0x5f0b90[_0x1376ad(0x2c0)]})}):_0x1ec695;})}):_0x115615;}function Ei(){const _0x51d9a6=_0x279361;return Math[_0x51d9a6(0x29d)]()[_0x51d9a6(0x259)](0x24)['substring'](0x2,0x8);}Xe['displayName']=_0x279361(0x205);var pi={'tag':'svg','attrs':{'xmlns':_0x279361(0x23b),'fill':'none','viewBox':_0x279361(0x2bb),'width':_0x279361(0x335),'height':_0x279361(0x335)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x279361(0x16f),'attrs':{'stroke':_0x279361(0x181),'d':_0x279361(0x2ee),'strokeLinecap':'round','strokeLinejoin':_0x279361(0x2b1),'strokeWidth':1.2}}]},{'tag':_0x279361(0x23d),'attrs':{},'children':[{'tag':_0x279361(0x1ba),'attrs':{'id':_0x279361(0x16c)},'children':[{'tag':_0x279361(0x16f),'attrs':{'fill':'white','d':_0x279361(0x271)}}]}]}],'defIds':[_0x279361(0x16c)]},Mt=_0x1bf544(function(_0x3169f8,_0x3955d5){const _0x3d1fd1=_0x279361;return _0x4fd7b0(Xe,Object[_0x3d1fd1(0x2c4)]({},_0x3169f8,{'id':'off-line-icon','ref':_0x3955d5,'icon':pi}));});Mt['displayName']='OffLineIcon';var Oi={'tag':_0x279361(0x1ea),'attrs':{'xmlns':_0x279361(0x23b),'fill':'none','viewBox':_0x279361(0x14c),'width':'1em','height':_0x279361(0x335)},'children':[{'tag':'g','attrs':{'clipPath':_0x279361(0x1c8)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x279361(0x2a3),'strokeLinecap':_0x279361(0x2b1),'strokeLinejoin':_0x279361(0x2b1),'strokeWidth':1.2}}]},{'tag':_0x279361(0x23d),'attrs':{},'children':[{'tag':_0x279361(0x1ba),'attrs':{'id':_0x279361(0x292)},'children':[{'tag':'path','attrs':{'fill':_0x279361(0x260),'d':_0x279361(0x271),'transform':'translate(.97)'}}]}]}],'defIds':[_0x279361(0x292)]},At=_0x1bf544(function(_0x52a5fc,_0x420489){const _0x5b75e6=_0x279361;return _0x4fd7b0(Xe,Object['assign']({},_0x52a5fc,{'id':_0x5b75e6(0x254),'ref':_0x420489,'icon':Oi}));});At[_0x279361(0x376)]=_0x279361(0x168);function Ti(_0x2ac268){const _0x474ac4=_0x279361;switch(_0x2ac268){case _0x20f601['OFFLINE']:return _0x474ac4(0x1fc);case _0x20f601['CONFLICT']:return _0x474ac4(0x2c2);case _0x20f601['FETCH_MISS']:return _0x474ac4(0x381);case _0x20f601[_0x474ac4(0x1de)]:return _0x474ac4(0x238);case _0x20f601[_0x474ac4(0x16d)]:case _0x20f601[_0x474ac4(0x2ef)]:return _0x474ac4(0x153);case _0x20f601['SYNCED']:case _0x20f601[_0x474ac4(0x1e0)]:return _0x474ac4(0x1d9);}}function Ci(_0x422252){const _0x55e215=_0x279361,{status$:_0x228746}=_0x422252,_0x4c7f2b=_0x23d515(_0x228746,_0x20f601[_0x55e215(0x1de)]),_0x4687bf=_0x23cdda(_0x5852b4),_0x290a0f=_0x23cdda(_0xe3b745),_0x4868ae=_0x4c7f2b!==_0x20f601['OFFLINE'],_0x240234=_0x4687bf['t'](Ti(_0x4c7f2b)),_0x455f93=_0x4868ae?_0x417d02(At,{}):_0x417d02(Mt,{}),_0x4f2247=_0x1ee64f(()=>{const _0x1ae6ee=_0x55e215;_0x4868ae||_0x290a0f[_0x1ae6ee(0x143)]();},[_0x4868ae,_0x290a0f]);function _0x3f69d0(){const _0x4c1a22=_0x55e215;return _0x12ae45(_0x4c1a22(0x22b),{'className':'univer-flex\x20univer-items-center','onClick':_0x4f2247,'children':[_0x417d02(_0x4c1a22(0x22b),{'className':_0x4889cb(_0x4c1a22(0x2d5),{'univer-text-green-500':_0x4868ae,'univer-text-red-500':!_0x4868ae}),'children':_0x455f93}),_0x417d02(_0x4c1a22(0x22b),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x240234})]});}return _0x4868ae?_0x3f69d0():_0x417d02(_0x5c1611,{'title':_0x4687bf['t'](_0x55e215(0x1e5)),'children':_0x3f69d0()});}var Ri=Object[_0x279361(0x1ec)],Di=(_0x4d1d78,_0x5c942a,_0x1df142,_0x402ee2)=>{const _0x4f1e72=_0x279361;for(var _0x40e0f5=_0x402ee2>0x1?void 0x0:_0x402ee2?Ri(_0x5c942a,_0x1df142):_0x5c942a,_0x712dbd=_0x4d1d78[_0x4f1e72(0x35e)]-0x1,_0x5d253e;_0x712dbd>=0x0;_0x712dbd--)(_0x5d253e=_0x4d1d78[_0x712dbd])&&(_0x40e0f5=_0x5d253e(_0x40e0f5)||_0x40e0f5);return _0x40e0f5;},ie=(_0x2510c1,_0x61712)=>(_0x24bae5,_0x4cf7dc)=>_0x61712(_0x24bae5,_0x4cf7dc,_0x2510c1);let ae=class extends _0x2972bb{constructor(_0x3b3501,_0x356f3e,_0x1e331c,_0x41b7f1){const _0xa568c5=_0x279361;super(),_(this,_0xa568c5(0x2ad),new _0x5ccbb2(_0x20f601['NOT_COLLAB'])),(this[_0xa568c5(0x276)]=_0x3b3501,this[_0xa568c5(0x31b)]=_0x356f3e,this[_0xa568c5(0x2ac)]=_0x1e331c,this[_0xa568c5(0x35b)]=_0x41b7f1,this[_0xa568c5(0x2e7)](),this[_0xa568c5(0x37a)]());}[_0x279361(0x37a)](){const _0x4888a1=_0x279361;this[_0x4888a1(0x285)](this[_0x4888a1(0x276)]['focused$'][_0x4888a1(0x34d)](_0x336798(()=>{const _0x5ad2a1=_0x4888a1,_0x39d007=this[_0x5ad2a1(0x276)]['getFocusedUnit']();return _0x39d007?this[_0x5ad2a1(0x2ac)][_0x5ad2a1(0x2e9)](_0x39d007['getUnitId']()):_0x472e19(null);}),_0x336798(_0x58046a=>_0x58046a?_0x58046a[_0x4888a1(0x184)]:_0x472e19(_0x20f601[_0x4888a1(0x1de)])))[_0x4888a1(0x1f6)](_0x101a89=>{const _0x14bcae=_0x4888a1;this[_0x14bcae(0x2ad)][_0x14bcae(0x1e4)](_0x101a89);}));}[_0x279361(0x2e7)](){const _0x27c57b=_0x279361;this['disposeWithMe'](this['_uiPartsService']['registerComponent'](_0xcddbf3[_0x27c57b(0x36e)],()=>_0xf3565a(bi({'status$':this['_status$']['asObservable']()}),this[_0x27c57b(0x31b)])));}};ae=Di([ie(0x0,_0x56b693),ie(0x1,_0x349554(_0x543124)),ie(0x2,_0x349554(_0x1c1280)),ie(0x3,_0x213a5b)],ae);function bi(_0x50ee51){const {status$:_0x536dcc}=_0x50ee51;return function(){return _0x417d02(Ci,{'status$':_0x536dcc});};}const Pt=_0xf30ca8(_0x279361(0x154));var Ni=Object[_0x279361(0x1ec)],Ui=(_0xf5cfd,_0x5c0852,_0x46b5f2,_0x55eeea)=>{const _0x2a1d18=_0x279361;for(var _0x3a41ce=_0x55eeea>0x1?void 0x0:_0x55eeea?Ni(_0x5c0852,_0x46b5f2):_0x5c0852,_0xeee6e5=_0xf5cfd[_0x2a1d18(0x35e)]-0x1,_0x4b2d5e;_0xeee6e5>=0x0;_0xeee6e5--)(_0x4b2d5e=_0xf5cfd[_0xeee6e5])&&(_0x3a41ce=_0x4b2d5e(_0x3a41ce)||_0x3a41ce);return _0x3a41ce;},z=(_0x3dcb3f,_0x2eadd2)=>(_0x31582a,_0x11409b)=>_0x2eadd2(_0x31582a,_0x11409b,_0x3dcb3f);let ce=class extends _0x46d041{constructor(_0x51dd45,_0x25524f,_0x3375df,_0x5ea8fc,_0xe9d601){const _0x44868f=_0x279361;super(),this[_0x44868f(0x287)]=_0x51dd45,this['_logService']=_0x25524f,this['_commandService']=_0x3375df,this[_0x44868f(0x347)]=_0x5ea8fc,_0xe9d601?_0xe9d601==null||_0xe9d601[_0x44868f(0x160)]()[_0x44868f(0x19e)](()=>this[_0x44868f(0x275)]()):(this['_logService'][_0x44868f(0x2f5)]('[CollaborationDataLoaderController]','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x44868f(0x275)]());}async['_init'](){const _0x4ead38=_0x279361,_0x4e217f=this['_urlService']['getParam'](_0x4ead38(0x14d)),_0x3ddaaa=this[_0x4ead38(0x287)][_0x4ead38(0x242)](_0x4ead38(0x297)),_0x1760bb=this[_0x4ead38(0x287)][_0x4ead38(0x242)](_0x4ead38(0x37b));if(!_0x4e217f||!_0x3ddaaa){this[_0x4ead38(0x1da)][_0x4ead38(0x2f5)]('[CollaborationDataLoaderController]',_0x4ead38(0x33d));return;}const _0x2264a4=await this[_0x4ead38(0x347)][_0x4ead38(0x155)](_0x4e217f,Number(_0x3ddaaa),_0x1760bb);_0x2264a4&&_0x2264a4 instanceof _0x549dc5&&this['_setupSubUnitSync'](_0x2264a4);}async[_0x279361(0x333)](_0x3cecab){const _0x44192f=_0x279361;await this['_updateSubUnitFromURLParams'](_0x3cecab),_0x3cecab[_0x44192f(0x351)][_0x44192f(0x34d)](_0x1f12e2(this['dispose$']))[_0x44192f(0x1f6)](_0x4f4756=>{_0x4f4756&&this['_updateURLWithCurrentState'](_0x4f4756);}),this[_0x44192f(0x287)]['urlChange$'][_0x44192f(0x34d)](_0x1f12e2(this['dispose$']))[_0x44192f(0x1f6)](()=>this['_updateSubUnitFromURLParams'](_0x3cecab));}[_0x279361(0x18e)](_0x1f9801,_0x11baff=!0x1){const _0x2f0e7d=_0x279361,_0x2d05d0=this[_0x2f0e7d(0x287)][_0x2f0e7d(0x242)]('subunit');_0x1f9801[_0x2f0e7d(0x13e)]()!==_0x2d05d0&&this[_0x2f0e7d(0x287)][_0x2f0e7d(0x17e)]('subunit',_0x1f9801[_0x2f0e7d(0x13e)](),_0x11baff);}async[_0x279361(0x32d)](_0x1ae399){const _0x2cfb80=_0x279361;var _0x26fb4b;const _0x5204a4=this[_0x2cfb80(0x287)]['getParam'](_0x2cfb80(0x37b));if(!_0x5204a4||!_0x1ae399['getSheetBySheetId'](_0x5204a4)){const _0x12f3d7=_0x1ae399[_0x2cfb80(0x385)]()[0x0],_0x2a7b15=_0x1ae399[_0x2cfb80(0x2f4)](_0x12f3d7);if(!_0x2a7b15)return;this['_updateURLWithCurrentState'](_0x2a7b15,!0x0),await this['_commandService']['executeCommand'](_0x306b9d['id'],{'unitId':_0x1ae399[_0x2cfb80(0x228)](),'subUnitId':_0x12f3d7});return;}((_0x26fb4b=_0x1ae399['getActiveSheet']())==null?void 0x0:_0x26fb4b[_0x2cfb80(0x13e)]())!==_0x5204a4&&await this[_0x2cfb80(0x232)][_0x2cfb80(0x30d)](_0x306b9d['id'],{'unitId':_0x1ae399[_0x2cfb80(0x228)](),'subUnitId':_0x5204a4});}};ce=Ui([z(0x0,Pt),z(0x1,_0x525e85),z(0x2,_0x28d9e9),z(0x3,_0x349554(_0x13e42a)),z(0x4,_0x3ff1c0(_0x15d297))],ce);var Li=Object[_0x279361(0x1ec)],Mi=(_0x12ba4a,_0x3d992f,_0x41279a,_0xdbd515)=>{const _0x5c5fd2=_0x279361;for(var _0x1c4c20=_0xdbd515>0x1?void 0x0:_0xdbd515?Li(_0x3d992f,_0x41279a):_0x3d992f,_0x2c26f0=_0x12ba4a[_0x5c5fd2(0x35e)]-0x1,_0x58cbe8;_0x2c26f0>=0x0;_0x2c26f0--)(_0x58cbe8=_0x12ba4a[_0x2c26f0])&&(_0x1c4c20=_0x58cbe8(_0x1c4c20)||_0x1c4c20);return _0x1c4c20;},it=(_0x1828ee,_0x15e207)=>(_0xb3618f,_0x12f860)=>_0x15e207(_0xb3618f,_0x12f860,_0x1828ee);let Pe=class extends _0x46d041{constructor(_0x20e01b,_0x305ca5){const _0x5a1211=_0x279361;super(),this[_0x5a1211(0x1a9)]=_0x20e01b,this[_0x5a1211(0x22d)]=_0x305ca5,this[_0x5a1211(0x275)]();}[_0x279361(0x275)](){const _0x5ba699=_0x279361,_0x54585f=this;this[_0x5ba699(0x285)](this[_0x5ba699(0x1a9)][_0x5ba699(0x24b)]({'onBeforePasteImage':async _0x414133=>{const _0x45db33=_0x5ba699,_0x25c9d3=await _0x54585f[_0x45db33(0x22d)][_0x45db33(0x2c6)](_0x414133);return _0x25c9d3?{'source':_0x25c9d3['source'],'imageSourceType':_0x25c9d3[_0x45db33(0x1a2)]}:null;}}));}};Pe=Mi([it(0x0,_0x145d98),it(0x1,_0x371d41)],Pe);const nt=[_0x279361(0x37c),_0x279361(0x27e),_0x279361(0x249),'red.300',_0x279361(0x1df),_0x279361(0x180)];class Ge extends _0x2972bb{constructor(){const _0x156eea=_0x279361;super(...arguments),_(this,_0x156eea(0x1a8),new Map()),_(this,_0x156eea(0x374),0x0);}[_0x279361(0x2ed)](_0x2c0d45){const _0x2d40cb=_0x279361;if(this[_0x2d40cb(0x1a8)]['has'](_0x2c0d45))return this[_0x2d40cb(0x1a8)][_0x2d40cb(0x225)](_0x2c0d45);const _0x23e2a6=nt[this[_0x2d40cb(0x374)]];return this['_colorIndex']=(this[_0x2d40cb(0x374)]+0x1)%nt[_0x2d40cb(0x35e)],this[_0x2d40cb(0x1a8)][_0x2d40cb(0x357)](_0x2c0d45,_0x23e2a6),_0x23e2a6;}}function wt(_0x1fc344){const _0x41096e=_0x279361;let _0x42c3b0='';for(const _0x102b09 of _0x1fc344){const {startOffset:_0x595265,endOffset:_0x316184,isActive:_0x1a235f,rangeType:_0xf5f0eb,segmentId:_0x34d6b8,segmentPage:_0x1c4f56}=_0x102b09;_0x42c3b0[_0x41096e(0x35e)]&&(_0x42c3b0+=','),_0x42c3b0+=_0x595265+':'+_0x316184+':'+(_0x1a235f?'1':'0')+':'+_0xf5f0eb+':'+_0x34d6b8+':'+_0x1c4f56;}return _0x42c3b0;}function Ai(_0x3d0373){const _0x18f6d8=_0x279361,_0x46cb8e=_0x3d0373[_0x18f6d8(0x329)](','),_0x28e4c0=[];for(const _0x5114b1 of _0x46cb8e){const [_0x1f291b,_0x30159f,_0x961b9f,_0x8faca8,_0x40516e,_0x21e69d]=_0x5114b1['split'](':');_0x28e4c0[_0x18f6d8(0x246)]({'startOffset':Number(_0x1f291b),'endOffset':Number(_0x30159f),'collapsed':_0x1f291b===_0x30159f,'isActive':_0x961b9f==='1','rangeType':_0x8faca8===_0x57a80d[_0x18f6d8(0x1cf)]?_0x57a80d[_0x18f6d8(0x1cf)]:_0x57a80d[_0x18f6d8(0x383)],'segmentId':typeof _0x40516e==_0x18f6d8(0x278)?String(_0x40516e):'','segmentPage':Number(_0x21e69d!=null?_0x21e69d:-0x1)});}return _0x28e4c0[_0x18f6d8(0x1c7)](_0x2d17e2=>_0x2d17e2[_0x18f6d8(0x13c)])||(_0x28e4c0[0x0][_0x18f6d8(0x13c)]=!0x0),_0x28e4c0;}class Ke extends _0x46d041{constructor(){const _0x385253=_0x279361;super(...arguments),_(this,_0x385253(0x372),new _0x5ccbb2(null)),_(this,_0x385253(0x1cb),this[_0x385253(0x372)][_0x385253(0x34e)]());}[_0x279361(0x2e2)](_0x172aba){const _0x5d5fc3=_0x279361,{unitID:_0x51d388,memberID:_0x540631,textRanges:_0x1e7bf4}=_0x172aba,_0x525a00=wt(_0x1e7bf4);if(_0x525a00==='')return;const _0x5d341a={'unitID':_0x51d388,'memberID':_0x540631,'selection':_0x525a00};this[_0x5d5fc3(0x372)][_0x5d5fc3(0x1e4)](_0x5d341a);}}var Pi=Object[_0x279361(0x1ec)],wi=(_0xa37405,_0x34d832,_0x3dd48f,_0x9850bc)=>{const _0x8d1f64=_0x279361;for(var _0x13d460=_0x9850bc>0x1?void 0x0:_0x9850bc?Pi(_0x34d832,_0x3dd48f):_0x34d832,_0x844512=_0xa37405[_0x8d1f64(0x35e)]-0x1,_0x35b9d2;_0x844512>=0x0;_0x844512--)(_0x35b9d2=_0xa37405[_0x844512])&&(_0x13d460=_0x35b9d2(_0x13d460)||_0x13d460);return _0x13d460;},P=(_0x16527e,_0x582f8e)=>(_0x47d347,_0x3aba57)=>_0x582f8e(_0x47d347,_0x3aba57,_0x16527e);const yi=0x12c,$i=0x64;let we=class extends _0x46d041{constructor(_0xde5f1a,_0x63c16,_0xc58830,_0x4422a4,_0x23f44c,_0x1b204a,_0x1718ae,_0x4ec9d4,_0x57fe99){const _0x17cb3b=_0x279361;super(),_(this,_0x17cb3b(0x264),!0x1),_(this,'_init',!0x1),_(this,'_cursorInfo$',new _0x5ccbb2(new Map())),_(this,_0x17cb3b(0x1be),this[_0x17cb3b(0x195)][_0x17cb3b(0x34e)]()),_(this,_0x17cb3b(0x229),new _0x5ccbb2([])),_(this,'roomMembers$',this[_0x17cb3b(0x229)][_0x17cb3b(0x34d)](_0x4cb684(yi))),_(this,_0x17cb3b(0x1d7),_0x22d40a(_0x21e4bb=>{const _0x42b111=_0x17cb3b,_0x5c2620={'eventID':_0x52ad46[_0x42b111(0x2c8)],'data':{'unitID':this[_0x42b111(0x2ea)],'memberID':this['_session'][_0x42b111(0x387)](),'selection':wt(_0x21e4bb)}};this[_0x42b111(0x28e)][_0x42b111(0x14e)](_0x5c2620,this[_0x42b111(0x2ea)]);},$i)),(this[_0x17cb3b(0x2ea)]=_0xde5f1a,this[_0x17cb3b(0x28e)]=_0x63c16,this[_0x17cb3b(0x31b)]=_0xc58830,this[_0x17cb3b(0x350)]=_0x4422a4,this[_0x17cb3b(0x1f0)]=_0x23f44c,this[_0x17cb3b(0x311)]=_0x1b204a,this['_transformService']=_0x1718ae,this[_0x17cb3b(0x276)]=_0x4ec9d4,this[_0x17cb3b(0x232)]=_0x57fe99);}get[_0x279361(0x2fa)](){const _0x46304b=_0x279361;return this[_0x46304b(0x195)][_0x46304b(0x263)]();}get[_0x279361(0x231)](){const _0x44e571=_0x279361;return this[_0x44e571(0x229)][_0x44e571(0x263)]();}[_0x279361(0x1e2)](){const _0x35dcd2=_0x279361;super['dispose'](),this[_0x35dcd2(0x195)][_0x35dcd2(0x1e4)](new Map()),this[_0x35dcd2(0x195)][_0x35dcd2(0x262)](),this['_roomMembers$'][_0x35dcd2(0x1e4)]([]),this[_0x35dcd2(0x229)][_0x35dcd2(0x262)]();}[_0x279361(0x35a)](){const _0x39a4a4=_0x279361;this[_0x39a4a4(0x275)]||(this[_0x39a4a4(0x275)]=!0x0,this[_0x39a4a4(0x28e)][_0x39a4a4(0x21a)][_0x39a4a4(0x34d)](_0x1f12e2(this[_0x39a4a4(0x337)]))[_0x39a4a4(0x1f6)](_0x14d276=>{const _0x40bba5=_0x39a4a4;_0x14d276===_0x4ef11f['ONLINE']?this['_toggleOnline']():this[_0x40bba5(0x359)]();}),this['_session'][_0x39a4a4(0x2d3)]['pipe'](_0x1f12e2(this['dispose$']))[_0x39a4a4(0x1f6)](_0x4630f6=>{const _0x576866=_0x39a4a4,_0x27a93a=_0x4630f6['eventID'];_0x27a93a===_0x52ad46[_0x576866(0x2c8)]&&this[_0x576866(0x356)](_0x4630f6),_0x27a93a===_0x52ad46[_0x576866(0x196)]&&this[_0x576866(0x21d)](_0x4630f6);}),this[_0x39a4a4(0x285)](this[_0x39a4a4(0x232)][_0x39a4a4(0x258)](_0x41cc5d=>{const _0x1e837e=_0x39a4a4,_0x4ae763=_0x41cc5d[_0x1e837e(0x141)];_0x4ae763!=null&&this['_online']&&_0x41cc5d['id']===_0x3e4467['id']&&_0x4ae763[_0x1e837e(0x140)]===this[_0x1e837e(0x2ea)]&&_0x4ae763[_0x1e837e(0x1d3)]===!0x1&&_0x4ae763[_0x1e837e(0x291)][_0x1e837e(0x35e)]>0x0&&this['_updateLocalCursor'](_0x4ae763[_0x1e837e(0x291)]);})),this[_0x39a4a4(0x311)][_0x39a4a4(0x1cb)][_0x39a4a4(0x34d)](_0x1f12e2(this['dispose$']))['subscribe'](_0x3af6ce=>{const _0x5bd130=_0x39a4a4;if((_0x3af6ce==null?void 0x0:_0x3af6ce[_0x5bd130(0x2ea)])!==this[_0x5bd130(0x2ea)])return;const _0x19aeef={'eventID':_0x52ad46[_0x5bd130(0x2c8)],'data':_0x3af6ce};this[_0x5bd130(0x356)](_0x19aeef);}),this[_0x39a4a4(0x285)](this['_commandService'][_0x39a4a4(0x258)](_0x3338b2=>{const _0x183c64=_0x39a4a4;if(_0x3338b2[_0x183c64(0x141)]==null)return;const _0x4a0420=_0x3338b2[_0x183c64(0x141)];if(_0x3338b2['id']!==_0xa51f36['id']||_0x4a0420['unitId']!==this['unitID'])return;const _0xa1e656={'id':_0x183c64(0x2ab),'params':_0x4a0420},_0x107e24=this[_0x183c64(0x2fa)];for(const [_0x815cd7,_0x5d58fe]of _0x107e24){const _0x2cb18f={'id':_0x183c64(0x2ab),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x5d58fe['ranges']}},_0x36b4f1=this[_0x183c64(0x192)][_0x183c64(0x1bc)](_0xa1e656,_0x2cb18f,!0x1);if(_0x325207(_0x36b4f1))throw _0x36b4f1[_0x183c64(0x21b)];_0x107e24[_0x183c64(0x357)](_0x815cd7,{..._0x5d58fe,'ranges':_0x36b4f1['m2Prime'][_0x183c64(0x141)][_0x183c64(0x1d4)]});}queueMicrotask(()=>{const _0x2e9690=_0x183c64;this['_cursorInfo$'][_0x2e9690(0x1e4)](_0x107e24);});})));}[_0x279361(0x356)](_0xd5e2ca){const _0x38b788=_0x279361;var _0x6631e7,_0x455f38;const {memberID:_0x493487,selection:_0x21ff0b}=_0xd5e2ca[_0x38b788(0x28a)],_0x57bc8f=Ai(_0x21ff0b),_0x551b39=(_0x455f38=(_0x6631e7=this[_0x38b788(0x1f0)][_0x38b788(0x296)](this[_0x38b788(0x2ea)],_0x493487))==null?void 0x0:_0x6631e7[_0x38b788(0x371)])!=null?_0x455f38:_0x38b788(0x29b),_0x57b810={'color':this[_0x38b788(0x350)][_0x38b788(0x2ed)](_0x493487),'name':_0x551b39,'ranges':_0x57bc8f},_0x5af7f5=this['cursorInfo'];_0x5af7f5[_0x38b788(0x357)](_0x493487,_0x57b810),this[_0x38b788(0x195)][_0x38b788(0x1e4)](_0x5af7f5);}[_0x279361(0x21d)](_0x2fd2b0){const _0xf2b53b=_0x279361,{memberID:_0x5e40e0}=_0x2fd2b0['data'],_0x1d6d69=this[_0xf2b53b(0x2fa)];_0x1d6d69[_0xf2b53b(0x250)](_0x5e40e0),this['_cursorInfo$']['next'](_0x1d6d69);}[_0x279361(0x20f)](){const _0x2a1cbd=_0x279361;var _0x166ce4;if(this[_0x2a1cbd(0x264)]=!0x0,((_0x166ce4=this[_0x2a1cbd(0x276)][_0x2a1cbd(0x1c2)]())==null?void 0x0:_0x166ce4[_0x2a1cbd(0x228)]())!==this[_0x2a1cbd(0x2ea)])return;const _0x2bf29a=this[_0x2a1cbd(0x31b)]['get'](_0x304158)[_0x2a1cbd(0x227)]();Array['isArray'](_0x2bf29a)&&_0x2bf29a[_0x2a1cbd(0x35e)]>0x0&&this[_0x2a1cbd(0x1d7)](_0x2bf29a);}[_0x279361(0x359)](){const _0x1c94e4=_0x279361;this[_0x1c94e4(0x264)]=!0x1;}};we=wi([P(0x2,_0x349554(_0x543124)),P(0x3,_0x349554(Ge)),P(0x4,_0x349554(_0x4ac7a2)),P(0x5,_0x349554(Ke)),P(0x6,_0x5aa3d9),P(0x7,_0x56b693),P(0x8,_0x28d9e9)],we);var xi=Object[_0x279361(0x1ec)],Bi=(_0x326288,_0x57205b,_0x4e6b5e,_0x159751)=>{const _0x294ee2=_0x279361;for(var _0x45f5ed=_0x159751>0x1?void 0x0:_0x159751?xi(_0x57205b,_0x4e6b5e):_0x57205b,_0x48c060=_0x326288[_0x294ee2(0x35e)]-0x1,_0x5edcff;_0x48c060>=0x0;_0x48c060--)(_0x5edcff=_0x326288[_0x48c060])&&(_0x45f5ed=_0x5edcff(_0x45f5ed)||_0x45f5ed);return _0x45f5ed;},F=(_0x55022b,_0x489eae)=>(_0x6e1960,_0x3c2619)=>_0x489eae(_0x6e1960,_0x3c2619,_0x55022b);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x25c320=[],_0x2d3e7b=!0x1;return _0x566061=>{const _0x49479b=_0x168c;_0x25c320[_0x49479b(0x246)](_0x566061),_0x2d3e7b||(_0x2d3e7b=!0x0,setTimeout(()=>{const _0x46c84d=_0x49479b;_0x25c320[_0x46c84d(0x1a6)](_0x3d4e36=>_0x3d4e36()),_0x25c320=[],_0x2d3e7b=!0x1;}));};};let ye=class extends _0x46d041{constructor(_0x25d56d,_0x46add1,_0x57076e,_0x350364,_0xb3cbb5,_0x3e25c6,_0x1236b6,_0x210042){const _0xfe13cd=_0x279361;super(),_(this,_0xfe13cd(0x264),!0x1),_(this,_0xfe13cd(0x275),!0x1),_(this,_0xfe13cd(0x195),new _0x5ccbb2(new Map())),_(this,_0xfe13cd(0x1be),this[_0xfe13cd(0x195)][_0xfe13cd(0x34e)]()),_(this,_0xfe13cd(0x229),new _0x5ccbb2([])),_(this,_0xfe13cd(0x303),this['_roomMembers$'][_0xfe13cd(0x34d)](_0x4cb684(Fi))),_(this,_0xfe13cd(0x1d7),_0x22d40a((_0x312bfd,_0x4668f7)=>{const _0x4c3330=_0xfe13cd,_0x3a8357={'eventID':_0x52ad46[_0x4c3330(0x2c8)],'data':{'unitID':this[_0x4c3330(0x2ea)],'memberID':this[_0x4c3330(0x28e)][_0x4c3330(0x387)](),'selection':_0x5ddf78(_0x312bfd,_0x4668f7[_0x4c3330(0x2be)])}};this['_session'][_0x4c3330(0x14e)](_0x3a8357,this[_0x4c3330(0x2ea)]);},ki)),(this[_0xfe13cd(0x2ea)]=_0x25d56d,this[_0xfe13cd(0x28e)]=_0x46add1,this[_0xfe13cd(0x31b)]=_0x57076e,this[_0xfe13cd(0x350)]=_0x350364,this[_0xfe13cd(0x1f0)]=_0xb3cbb5,this[_0xfe13cd(0x276)]=_0x3e25c6,this[_0xfe13cd(0x232)]=_0x1236b6,this[_0xfe13cd(0x273)]=_0x210042);}get[_0x279361(0x2fa)](){const _0x46bffc=_0x279361;return this[_0x46bffc(0x195)]['getValue']();}get[_0x279361(0x231)](){const _0x465f39=_0x279361;return this['_roomMembers$'][_0x465f39(0x263)]();}[_0x279361(0x1e2)](){const _0x44e1d3=_0x279361;super[_0x44e1d3(0x1e2)](),this[_0x44e1d3(0x195)][_0x44e1d3(0x1e4)](new Map()),this[_0x44e1d3(0x195)]['complete'](),this[_0x44e1d3(0x229)][_0x44e1d3(0x1e4)]([]),this[_0x44e1d3(0x229)]['complete']();}['init'](){const _0x1ac25b=_0x279361;this[_0x1ac25b(0x275)]||(this['_init']=!0x0,this[_0x1ac25b(0x28e)][_0x1ac25b(0x21a)][_0x1ac25b(0x34d)](_0x1f12e2(this['dispose$']))[_0x1ac25b(0x1f6)](_0xabd9f3=>{const _0xb8469a=_0x1ac25b;_0xabd9f3===_0x4ef11f[_0xb8469a(0x1c6)]?this['_toggleOnline']():this['_toggleOffline']();}),this['_session']['event$'][_0x1ac25b(0x34d)](_0x1f12e2(this[_0x1ac25b(0x337)]))[_0x1ac25b(0x1f6)](_0x481fcb=>{const _0x5e4386=_0x1ac25b,_0x28ee17=_0x481fcb[_0x5e4386(0x323)];_0x28ee17===_0x52ad46[_0x5e4386(0x2c8)]&&this['_onCursorUpdate'](_0x481fcb),_0x28ee17===_0x52ad46[_0x5e4386(0x196)]&&this['_onCursorDelete'](_0x481fcb);}),this[_0x1ac25b(0x1ae)](),this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x11bc33=>{const _0x326e17=_0x1ac25b;if(this['_online']&&_0x11bc33['id']===_0x2b686f['id']&&_0x11bc33['params']['unitId']===this[_0x326e17(0x2ea)]){const _0xb082bf=_0x11bc33[_0x326e17(0x141)];this[_0x326e17(0x1d7)](_0xb082bf[_0x326e17(0x223)],_0xb082bf[_0x326e17(0x295)][0x0]);}})));}[_0x279361(0x356)](_0xd8b2a2){const _0x3a5fbf=_0x279361;var _0x2604f9,_0x44312b;const {memberID:_0x32ddb4,selection:_0x6d835c}=_0xd8b2a2[_0x3a5fbf(0x28a)],{sheetName:_0x1ca129,range:_0x5f5a1f}=_0x1ea442(_0x6d835c),_0x20884b={'name':(_0x44312b=(_0x2604f9=this[_0x3a5fbf(0x1f0)]['getMember'](this[_0x3a5fbf(0x2ea)],_0x32ddb4))==null?void 0x0:_0x2604f9[_0x3a5fbf(0x371)])!=null?_0x44312b:_0x3a5fbf(0x29b),'range':this[_0x3a5fbf(0x1bf)](_0x1ca129,_0x5f5a1f),'sheetID':_0x1ca129,'color':this[_0x3a5fbf(0x350)][_0x3a5fbf(0x2ed)](_0x32ddb4),'selection':_0x6d835c},_0x5e4e89=this[_0x3a5fbf(0x2fa)];_0x5e4e89['set'](_0x32ddb4,_0x20884b),this[_0x3a5fbf(0x195)][_0x3a5fbf(0x1e4)](_0x5e4e89);}[_0x279361(0x21d)](_0x898be){const _0x12ed8e=_0x279361,{memberID:_0x46f610}=_0x898be['data'],_0x3aabad=this[_0x12ed8e(0x2fa)];_0x3aabad['delete'](_0x46f610),this[_0x12ed8e(0x195)]['next'](_0x3aabad);}[_0x279361(0x1bf)](_0x42dc07,_0x29f012){const _0x3c5382=_0x279361;var _0x6dc3ae,_0xa2a642;const _0x68a5a0=(_0xa2a642=(_0x6dc3ae=this['_univerInstanceService'][_0x3c5382(0x22f)](this[_0x3c5382(0x2ea)]))==null?void 0x0:_0x6dc3ae[_0x3c5382(0x2f4)](_0x42dc07))==null?void 0x0:_0xa2a642[_0x3c5382(0x380)]();return(_0x68a5a0==null?void 0x0:_0x68a5a0[_0x3c5382(0x316)](_0x1d301a=>_0x5c6826[_0x3c5382(0x2af)](_0x1d301a,_0x29f012)))||_0x29f012;}[_0x279361(0x1ae)](){const _0x2c96cf=_0x279361,_0x5804ae=new _0x3616d9(),_0xf67885=Hi(),_0x1e39ad=()=>{const _0x4a4969=_0x168c;_0x5804ae[_0x4a4969(0x1e2)]();const _0x176e99=(_0x47b21c,_0x43ca01,_0x48b038,_0x1ca4e2)=>{const _0x201329=_0x4a4969;let _0x11e732=[];switch(_0x47b21c['id']){case _0x5ba2a6[_0x201329(0x20a)]:{_0x11e732=_0x23cee5(_0x47b21c,_0x1ca4e2);break;}case _0x5ba2a6[_0x201329(0x2d2)]:{_0x11e732=_0x563e59(_0x47b21c,_0x1ca4e2);break;}case _0x5ba2a6[_0x201329(0x17a)]:{_0x11e732=_0x16ea5d(_0x47b21c,_0x1ca4e2);break;}case _0x5ba2a6[_0x201329(0x18f)]:{_0x11e732=_0x1ac42c(_0x47b21c,_0x1ca4e2);break;}case _0x5ba2a6[_0x201329(0x28c)]:{_0x11e732=_0x1413a9(_0x47b21c,_0x1ca4e2);break;}case _0x5ba2a6['InsertRowCommandId']:{_0x11e732=_0x17b391(_0x47b21c,_0x1ca4e2);break;}case _0x5ba2a6[_0x201329(0x388)]:{_0x11e732=_0x1450ab(_0x47b21c,_0x1ca4e2);break;}case _0x5ba2a6['RemoveColCommandId']:{_0x11e732=_0x1e5959(_0x47b21c,_0x1ca4e2);break;}case _0x5ba2a6[_0x201329(0x305)]:{_0x11e732=_0x471a44(_0x47b21c,_0x1ca4e2);break;}}const _0x22fe45=_0x4a4ccd(_0x11e732,_0x1ca4e2),_0x3539a2=this[_0x201329(0x2fa)][_0x201329(0x225)](_0x43ca01);if(_0x3539a2&&_0x22fe45){const _0x4e3712={..._0x3539a2,'range':_0x22fe45};this[_0x201329(0x2fa)][_0x201329(0x357)](_0x43ca01,_0x4e3712),_0xf67885(()=>{const _0x594c33=_0x201329,_0x151acf=this['_refRangeService'][_0x594c33(0x2c5)](_0x22fe45,_0x7f3ce7=>(_0x151acf[_0x594c33(0x1e2)](),_0x176e99(_0x7f3ce7,_0x43ca01,_0x48b038,_0x22fe45)));_0x5804ae['add'](_0x151acf);});}return{'redos':[],'undos':[]};};this['cursorInfo']['forEach']((_0x56b199,_0x581be4)=>{const _0x13fe8c=_0x4a4969,{range:_0x1c333a,sheetID:_0x40290e}=_0x56b199,_0xf83522=this[_0x13fe8c(0x273)][_0x13fe8c(0x2c5)](_0x1c333a,_0x2c6f21=>(_0xf83522[_0x13fe8c(0x1e2)](),_0x176e99(_0x2c6f21,_0x581be4,_0x40290e,_0x1c333a)));_0x5804ae[_0x13fe8c(0x169)](_0xf83522);});};this[_0x2c96cf(0x285)](_0x9a67c7(this['_cursorInfo$']['subscribe'](()=>{_0x1e39ad();})));}[_0x279361(0x20f)](){const _0x38d3d3=_0x279361;var _0x4ec26a,_0x4ca6b2;if(this['_online']=!0x0,((_0x4ec26a=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x4ec26a[_0x38d3d3(0x228)]())!==this[_0x38d3d3(0x2ea)])return;const _0x1a7ce4=(_0x4ca6b2=this[_0x38d3d3(0x31b)][_0x38d3d3(0x225)](_0x3c434f)[_0x38d3d3(0x2a8)]())==null?void 0x0:_0x4ca6b2[0x0],_0x43d977=this['_univerInstanceService'][_0x38d3d3(0x18c)](_0x3d4c4a[_0x38d3d3(0x26c)])[_0x38d3d3(0x363)]();_0x1a7ce4&&_0x43d977&&this[_0x38d3d3(0x1d7)](_0x43d977[_0x38d3d3(0x13e)](),_0x1a7ce4);}[_0x279361(0x359)](){this['_online']=!0x1;}};ye=Bi([F(0x2,_0x349554(_0x543124)),F(0x3,_0x349554(Ge)),F(0x4,_0x349554(_0x4ac7a2)),F(0x5,_0x56b693),F(0x6,_0x28d9e9),F(0x7,_0x349554(_0x4336d8))],ye);var Yi=Object[_0x279361(0x1ec)],Wi=(_0xac01ba,_0x362c96,_0x371d6e,_0x28b79b)=>{const _0x15147d=_0x279361;for(var _0x3582f5=_0x28b79b>0x1?void 0x0:_0x28b79b?Yi(_0x362c96,_0x371d6e):_0x362c96,_0x48d402=_0xac01ba[_0x15147d(0x35e)]-0x1,_0x136270;_0x48d402>=0x0;_0x48d402--)(_0x136270=_0xac01ba[_0x48d402])&&(_0x3582f5=_0x136270(_0x3582f5)||_0x3582f5);return _0x3582f5;},pe=(_0x133e75,_0x235896)=>(_0x2bedaf,_0xcce4b3)=>_0x235896(_0x2bedaf,_0xcce4b3,_0x133e75);let Y=class extends _0x46d041{constructor(_0x5cd5cb,_0xe40ed1,_0x434953){const _0x3e0c88=_0x279361;super(),_(this,_0x3e0c88(0x171),new Map()),_(this,_0x3e0c88(0x241),new _0x57abac()),(this[_0x3e0c88(0x276)]=_0x5cd5cb,this[_0x3e0c88(0x31b)]=_0xe40ed1,this['_collabSessionService']=_0x434953,this[_0x3e0c88(0x275)]());}[_0x279361(0x1e2)](){const _0x59c713=_0x279361;super[_0x59c713(0x1e2)](),this[_0x59c713(0x241)][_0x59c713(0x262)](),this['_entities'][_0x59c713(0x1a6)](_0x557d7b=>_0x557d7b[_0x59c713(0x1e2)]());}[_0x279361(0x139)](_0x40016b){const _0x176da8=_0x279361;return this['_entities'][_0x176da8(0x30e)](_0x40016b)?this[_0x176da8(0x171)][_0x176da8(0x225)](_0x40016b)[_0x176da8(0x1be)]:this[_0x176da8(0x241)]['pipe'](_0x5eca73(_0x586d2a=>_0x586d2a[_0x176da8(0x2ea)]===_0x40016b),_0x336798(_0x45001d=>_0x45001d[_0x176da8(0x1be)]));}[_0x279361(0x275)](){const _0xa7876c=_0x279361;this[_0xa7876c(0x276)][_0xa7876c(0x18d)](_0x3d4c4a[_0xa7876c(0x26c)])[_0xa7876c(0x34d)](_0x1f12e2(this[_0xa7876c(0x337)]))[_0xa7876c(0x1f6)](async _0x478cec=>{const _0x5947ab=_0xa7876c,_0x446027=_0x478cec[_0x5947ab(0x228)](),_0x34fe57=await this[_0x5947ab(0x1eb)](_0x446027);this['_entityInit$']['next'](_0x34fe57),this['_entities']['set'](_0x446027,_0x34fe57);}),this[_0xa7876c(0x276)]['getTypeOfUnitAdded$'](_0x3d4c4a['UNIVER_DOC'])[_0xa7876c(0x34d)](_0x1f12e2(this['dispose$']))[_0xa7876c(0x34d)](_0x5eca73(_0x53e27e=>!_0x53e27e[_0xa7876c(0x228)]()[_0xa7876c(0x24e)]('__')))[_0xa7876c(0x1f6)](async _0x481df5=>{const _0x3952a7=_0xa7876c,_0x442b56=_0x481df5['getUnitId'](),_0x544438=await this[_0x3952a7(0x2dc)](_0x442b56);this[_0x3952a7(0x241)][_0x3952a7(0x1e4)](_0x544438),this[_0x3952a7(0x171)][_0x3952a7(0x357)](_0x442b56,_0x544438);}),_0x27a14c(this[_0xa7876c(0x276)]['getTypeOfUnitDisposed$'](_0x3d4c4a[_0xa7876c(0x14b)]),this[_0xa7876c(0x276)][_0xa7876c(0x17b)](_0x3d4c4a[_0xa7876c(0x26c)]))['pipe'](_0x1f12e2(this[_0xa7876c(0x337)]))[_0xa7876c(0x1f6)](_0x2eb0fd=>{const _0x3a9879=_0xa7876c,_0x1ca3e5=_0x2eb0fd['getUnitId'](),_0x1908e5=this[_0x3a9879(0x171)][_0x3a9879(0x225)](_0x1ca3e5);_0x1908e5&&(_0x1908e5[_0x3a9879(0x1e2)](),this[_0x3a9879(0x171)][_0x3a9879(0x250)](_0x1ca3e5));});}async['_startSheetCollabCursor'](_0x12473a){const _0x1ed677=_0x279361,_0x5ebe52=await this['_collabSessionService'][_0x1ed677(0x156)](_0x12473a),_0x19db77=this['_injector'][_0x1ed677(0x1f5)](ye,_0x12473a,_0x5ebe52);return _0x19db77[_0x1ed677(0x35a)](),_0x19db77;}async[_0x279361(0x2dc)](_0x7a971b){const _0x2bffc5=_0x279361,_0x2a7e01=await this[_0x2bffc5(0x293)]['requireSession'](_0x7a971b),_0x31d8f3=this[_0x2bffc5(0x31b)]['createInstance'](we,_0x7a971b,_0x2a7e01);return _0x31d8f3[_0x2bffc5(0x35a)](),_0x31d8f3;}};Y=Wi([pe(0x0,_0x56b693),pe(0x1,_0x349554(_0x543124)),pe(0x2,_0x349554(_0xe3b745))],Y);const q=0x14,rt=0xc8,Oe=0x4,Vi=0x5;function ji(_0x546da8,_0x512132){const _0x38da78=_0x279361;let {radius:_0x169d94,width:_0x3fa090,height:_0x18b373}=_0x512132;_0x169d94=_0x169d94!=null?_0x169d94:0x0,_0x3fa090=_0x3fa090!=null?_0x3fa090:0x1e,_0x18b373=_0x18b373!=null?_0x18b373:0x1e;let _0x3a1b05=0x0,_0xd05e01=0x0,_0x37a8ee=0x0;_0x3a1b05=_0xd05e01=_0x37a8ee=Math[_0x38da78(0x237)](_0x169d94,_0x3fa090/0x2,_0x18b373/0x2),_0x546da8[_0x38da78(0x36a)](),_0x546da8[_0x38da78(0x2b8)](_0x3a1b05,0x0),_0x546da8[_0x38da78(0x369)](_0x3fa090-_0xd05e01,0x0),_0x546da8['arc'](_0x3fa090-_0xd05e01,_0xd05e01,_0xd05e01,Math['PI']*0x3/0x2,0x0,!0x1),_0x546da8['lineTo'](_0x3fa090,_0x18b373-_0x37a8ee),_0x546da8[_0x38da78(0x389)](_0x3fa090-_0x37a8ee,_0x18b373-_0x37a8ee,_0x37a8ee,0x0,Math['PI']/0x2,!0x1),_0x546da8[_0x38da78(0x369)](0x0,_0x18b373),_0x546da8[_0x38da78(0x369)](0x0,_0x3a1b05),_0x546da8[_0x38da78(0x389)](_0x3a1b05,_0x3a1b05,_0x3a1b05,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x546da8[_0x38da78(0x177)](),_0x512132[_0x38da78(0x308)]&&(_0x546da8[_0x38da78(0x301)](),_0x546da8['fillStyle']=_0x512132[_0x38da78(0x308)],_0x512132[_0x38da78(0x26d)]===_0x38da78(0x251)?_0x546da8[_0x38da78(0x308)](_0x38da78(0x251)):_0x546da8[_0x38da78(0x308)](),_0x546da8[_0x38da78(0x30f)]());}class Ie extends _0x8d0ab{constructor(_0x474bc6,_0x22d745){const _0x5a44ce=_0x279361;super(_0x474bc6,_0x22d745),_(this,_0x5a44ce(0x314)),_(this,_0x5a44ce(0x20e)),(this[_0x5a44ce(0x314)]=_0x22d745==null?void 0x0:_0x22d745['color'],this[_0x5a44ce(0x20e)]=_0x22d745==null?void 0x0:_0x22d745['text']);}static[_0x279361(0x2cf)](_0x3de8f7,_0x5f2b0d){const _0x517183=_0x279361,{text:_0x5ae77a,color:_0xec66f2}=_0x5f2b0d;_0x3de8f7[_0x517183(0x301)](),_0x3de8f7[_0x517183(0x379)]=_0x517183(0x25a);const _0x39fc57=_0x3de8f7[_0x517183(0x13f)](_0x5ae77a)[_0x517183(0x29a)],_0x5469ae=Math[_0x517183(0x237)](_0x39fc57+0x2*Oe,rt);ji(_0x3de8f7,{'height':q,'radius':0x4,'width':_0x5469ae,'fill':_0xec66f2}),_0x3de8f7[_0x517183(0x364)]=_0x517183(0x1d6);const _0x1ea05f=Oe,_0x5d6318=q-Vi,_0x381f8f=rt-0x2*Oe;if(_0x39fc57>_0x381f8f){let _0x1633a8='',_0x542b68=0x0;for(const _0x8f9db7 of _0x5ae77a){const _0x3f757d=_0x3de8f7[_0x517183(0x13f)](_0x8f9db7)[_0x517183(0x29a)];if(_0x542b68+_0x3f757d<=_0x381f8f-_0x3de8f7[_0x517183(0x13f)](_0x517183(0x332))[_0x517183(0x29a)])_0x1633a8+=_0x8f9db7,_0x542b68+=_0x3f757d;else{_0x1633a8+=_0x517183(0x332);break;}}_0x3de8f7['fillText'](_0x1633a8,_0x1ea05f,_0x5d6318);}else _0x3de8f7[_0x517183(0x190)](_0x5ae77a,_0x1ea05f,_0x5d6318);_0x3de8f7[_0x517183(0x30f)]();}[_0x279361(0x200)](_0x53ac51){const _0x1e9c2b=_0x279361;Ie[_0x1e9c2b(0x2cf)](_0x53ac51,this);}}const Te=_0x279361(0x1fd),Xi=_0x279361(0x36d),Gi=_0x279361(0x212),J=0x6,Ki=1.5,Ce=0x4,zi=1.5,Ji=_0x279361(0x300);class ot{constructor(_0x9a147c,_0x1fda1d,_0x300fe3,_0x4b8902){const _0xe50168=_0x279361;_(this,_0xe50168(0x23f),[]),_(this,_0xe50168(0x289),null),_(this,_0xe50168(0x159),null),_(this,'_anchorDot',null),_(this,_0xe50168(0x185),null),_(this,_0xe50168(0x2a7),null),(this[_0xe50168(0x226)]=_0x9a147c,this[_0xe50168(0x220)]=_0x1fda1d,this[_0xe50168(0x33f)]=_0x300fe3,this[_0xe50168(0x144)]=_0x4b8902,this[_0xe50168(0x230)]());}set['_hover'](_0x3d1c10){const _0x15ff21=_0x279361;_0x3d1c10?(this['_anchorDot']&&this[_0x15ff21(0x2d6)][_0x15ff21(0x360)](),this[_0x15ff21(0x159)]&&this['_textBubble'][_0x15ff21(0x1b4)]()):(this['_anchorDot']&&this[_0x15ff21(0x2d6)][_0x15ff21(0x1b4)](),this[_0x15ff21(0x159)]&&this[_0x15ff21(0x159)][_0x15ff21(0x360)]());}['dispose'](){const _0x349b1c=_0x279361;for(const _0x2bf0cb of this[_0x349b1c(0x23f)])_0x2bf0cb[_0x349b1c(0x1e2)]();this['_textBubble']&&this[_0x349b1c(0x159)][_0x349b1c(0x1e2)](),this['_anchorDot']&&this[_0x349b1c(0x2d6)][_0x349b1c(0x1e2)](),this[_0x349b1c(0x289)]&&this['_anchor'][_0x349b1c(0x1e2)](),this[_0x349b1c(0x2a7)]&&this['_eventUnsubscribe']();}[_0x279361(0x230)](){const _0x586fd4=_0x279361;var _0x582218;const {_docSkeleton:_0x1712c6,_document:_0xccb3da}=this,{color:_0x34975e,name:_0x3af834,ranges:_0x53121d}=this[_0x586fd4(0x226)],_0x46c69c=_0xccb3da['getOffsetConfig'](),{docsLeft:_0x8ac9fe,docsTop:_0xbe53ed}=_0x46c69c,_0xb07d33=new _0x11eb33(_0x46c69c,_0x1712c6);for(const {startOffset:_0x1623f6,endOffset:_0x46654a,rangeType:_0x40f6b1,segmentId:_0x9035a8,segmentPage:_0x3a2c03,collapsed:_0x40f867,isActive:_0xd268c5}of _0x53121d){const _0x4a3869=_0x1712c6['findNodePositionByCharIndex'](_0x1623f6,!0x0,_0x9035a8,_0x3a2c03);let _0x3b02c7=_0x1712c6[_0x586fd4(0x256)](_0x46654a,!0x0,_0x9035a8,_0x3a2c03);if(_0x3b02c7==null&&(_0x3b02c7=_0x1712c6[_0x586fd4(0x256)](_0x46654a-0x1,!0x1,_0x9035a8,_0x3a2c03)),_0xd268c5){const {contentBoxPointGroup:_0x7449a5}=_0xb07d33[_0x586fd4(0x306)](_0x3b02c7,_0x3b02c7);if(_0x7449a5['length']===0x0)continue;this['_drawAnchor'](_0x34975e,_0x7449a5,_0x8ac9fe,_0xbe53ed,_0x3af834),this['_eventUnsubscribe']=this[_0x586fd4(0x375)]();}if(_0x4a3869&&_0x3b02c7){if(_0x40f6b1===_0x57a80d[_0x586fd4(0x383)]){const _0x4be36a=new _0x1d33b0(_0x46c69c,_0x1712c6),{pointGroup:_0x2a09ed}=(_0x582218=_0x4be36a[_0x586fd4(0x306)](_0x4a3869,_0x3b02c7))!=null?_0x582218:{};if(_0x2a09ed==null||_0x2a09ed[_0x586fd4(0x35e)]===0x0)continue;this[_0x586fd4(0x1fe)](_0x34975e,_0x2a09ed,_0x8ac9fe,_0xbe53ed);}else{if(!_0x40f867){const {borderBoxPointGroup:_0x40dbfc}=_0xb07d33[_0x586fd4(0x306)](_0x4a3869,_0x3b02c7);if(_0x40dbfc[_0x586fd4(0x35e)]===0x0)continue;this[_0x586fd4(0x22a)](_0x34975e,_0x40dbfc,_0x8ac9fe,_0xbe53ed);}}}}}[_0x279361(0x367)](_0x4fa935,_0x3dc697,_0x253cf7,_0xbc2f79,_0x523e2d){const _0x92623f=_0x279361,_0x3392fe=this[_0x92623f(0x19d)](_0x3dc697),{left:_0x4b75bd,top:_0x405d22,height:_0x2ed5b8}=_0x3392fe,_0x547ff7=this[_0x92623f(0x203)](),_0x334465=zi/_0x547ff7,_0x23fdbe=new _0x5beebc(Te+_0x1667d1(J),{'left':_0x4b75bd+_0x253cf7-_0x334465,'top':_0x405d22+_0xbc2f79,'height':_0x2ed5b8,'width':Ki,'fill':_0x4fa935||_0x3775c8(_0x42b207[_0x92623f(0x1a3)],0x0),'strokeWidth':_0x334465,'stroke':Ji,'evented':!0x0});this[_0x92623f(0x289)]=_0x23fdbe,this[_0x92623f(0x220)][_0x92623f(0x174)](_0x23fdbe,_0x260d0d);const _0x18d722=new _0x5beebc(Te+_0x1667d1(J),{'left':_0x4b75bd+_0x253cf7-_0x334465,'top':_0x405d22+_0xbc2f79-Ce/0x2,'height':Ce,'width':Ce,'fill':_0x4fa935||_0x3775c8(_0x42b207['black'],0x0),'strokeWidth':0x0,'stroke':_0x4fa935||_0x3775c8(_0x42b207[_0x92623f(0x1a3)],0x0),'evented':!0x1});this['_anchorDot']=_0x18d722,this[_0x92623f(0x220)]['addObject'](_0x18d722,_0x260d0d);const _0x187977=new Ie(Te+_0x1667d1(J),{'left':_0x4b75bd+_0x253cf7-_0x334465,'top':_0x405d22+_0xbc2f79-q,'text':_0x523e2d,'color':_0x4fa935});this[_0x92623f(0x159)]=_0x187977,this['_scene']['addObject'](_0x187977,_0x260d0d),this[_0x92623f(0x340)]=!0x1;}['_handleHover'](){const _0x210f87=_0x279361,_0x1ff205=this[_0x210f87(0x289)][_0x210f87(0x161)]['subscribeEvent'](()=>{const _0x365000=_0x210f87;this[_0x365000(0x340)]=!0x0;}),_0x52e6ad=this['_anchor'][_0x210f87(0x29c)]['subscribeEvent'](()=>{const _0x190160=_0x210f87;this['_hideTimer']&&clearTimeout(this[_0x190160(0x185)]),this[_0x190160(0x185)]=setTimeout(()=>{const _0xf8c0a8=_0x190160;this[_0xf8c0a8(0x340)]=!0x1;},0x7d0);});return()=>{const _0x128bb1=_0x210f87;_0x1ff205[_0x128bb1(0x1e9)](),_0x52e6ad[_0x128bb1(0x1e9)]();};}['_drawTextRange'](_0x25e715,_0x4cf9cd,_0x4b9c66,_0x5ddc33){const _0x24163a=_0x279361,_0x302dca=new _0x17b25c(_0x25e715)[_0x24163a(0x152)](0.2)[_0x24163a(0x2f7)](),_0x4e5025=new _0x1ec3a4(Xi+_0x1667d1(J),{'pointsGroup':_0x4cf9cd,'fill':_0x302dca||_0x3775c8(_0x42b207[_0x24163a(0x1a3)],0.2),'left':_0x4b9c66,'top':_0x5ddc33,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x24163a(0x246)](_0x4e5025),this[_0x24163a(0x220)][_0x24163a(0x174)](_0x4e5025,_0x260d0d);}[_0x279361(0x1fe)](_0x1c27b0,_0x267ce5,_0x368658,_0x57ee38){const _0x91ec3d=_0x279361,_0x1b5b12=new _0x17b25c(_0x1c27b0)[_0x91ec3d(0x152)](0.2)['toRgbString'](),_0x1124cd=new _0x1ec3a4(Gi+_0x1667d1(J),{'pointsGroup':_0x267ce5,'fill':_0x1b5b12||_0x3775c8(_0x42b207['black'],0.2),'left':_0x368658,'top':_0x57ee38,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x1124cd),this[_0x91ec3d(0x220)][_0x91ec3d(0x174)](_0x1124cd,_0x260d0d);}[_0x279361(0x19d)](_0xcd8ca7){const _0x4f12ac=_0xcd8ca7[0x0],_0x373241=_0x4f12ac[0x0],_0x469f16=_0x4f12ac[0x2],{x:_0x50b0a6,y:_0x52d524}=_0x373241,{x:_0x180fb9,y:_0x44f73f}=_0x469f16;return{'left':_0x50b0a6,'top':_0x52d524,'width':_0x180fb9-_0x50b0a6,'height':_0x44f73f-_0x52d524};}[_0x279361(0x203)](){const _0x4599b0=_0x279361,{scaleX:_0x39c574,scaleY:_0x4451bd}=this[_0x4599b0(0x220)][_0x4599b0(0x1c0)]();return Math[_0x4599b0(0x2d7)](_0x39c574,_0x4451bd);}}var Zi=Object[_0x279361(0x1ec)],Qi=(_0x581e3a,_0x257702,_0x439cd5,_0x4c5665)=>{const _0x2c2186=_0x279361;for(var _0x2f3547=_0x4c5665>0x1?void 0x0:_0x4c5665?Zi(_0x257702,_0x439cd5):_0x257702,_0x4699aa=_0x581e3a[_0x2c2186(0x35e)]-0x1,_0x2aee93;_0x4699aa>=0x0;_0x4699aa--)(_0x2aee93=_0x581e3a[_0x4699aa])&&(_0x2f3547=_0x2aee93(_0x2f3547)||_0x2f3547);return _0x2f3547;},ne=(_0x265bbf,_0x35fd9c)=>(_0x5d1d3d,_0x52f2a4)=>_0x35fd9c(_0x5d1d3d,_0x52f2a4,_0x265bbf);let $e=class extends _0x46d041{constructor(_0x43be05,_0x343e40,_0x56977c,_0x4ea8ac,_0x5c7f19){const _0x103db3=_0x279361;super(),_(this,_0x103db3(0x17c),[]),_(this,'_cursors',[]),(this[_0x103db3(0x2f3)]=_0x43be05,this[_0x103db3(0x16e)]=_0x343e40,this[_0x103db3(0x1b1)]=_0x56977c,this[_0x103db3(0x232)]=_0x4ea8ac,this['_themeService']=_0x5c7f19,this[_0x103db3(0x275)]());}[_0x279361(0x275)](){const _0x254c5d=_0x279361,_0x18fe2b=this[_0x254c5d(0x2f3)][_0x254c5d(0x140)],_0x42dde4=this[_0x254c5d(0x16e)];this[_0x254c5d(0x285)](_0x4310f5([this[_0x254c5d(0x1b1)][_0x254c5d(0x139)](_0x18fe2b),this[_0x254c5d(0x21f)]['currentTheme$']])[_0x254c5d(0x34d)](_0x457ae1(([_0x4cac3c,_0x4ed542])=>({'skeleton':_0x42dde4[_0x254c5d(0x1f1)](),'cursors':[..._0x4cac3c[_0x254c5d(0x244)]()][_0x254c5d(0x30c)](_0x6609f3=>({..._0x6609f3,'color':this[_0x254c5d(0x21f)][_0x254c5d(0x32e)](_0x6609f3[_0x254c5d(0x314)])}))})))[_0x254c5d(0x1f6)](_0x391e63=>{const _0x2f2c56=_0x254c5d;if(this[_0x2f2c56(0x31c)](),_0x391e63){const {skeleton:_0x34da4f,cursors:_0x10c3b8}=_0x391e63;this['_updateCollabCursors'](_0x34da4f,_0x10c3b8);}})),this['_initResize'](),this[_0x254c5d(0x34f)]();}[_0x279361(0x179)](_0x19844f,_0x2efa4b){const _0x52bf8f=_0x279361,{scene:_0x183707,mainComponent:_0x27bea0}=this[_0x52bf8f(0x2f3)],_0x24e2f7=_0x2efa4b[_0x52bf8f(0x16a)](_0x1b4074=>new ot(_0x1b4074,_0x183707,_0x19844f,_0x27bea0));this[_0x52bf8f(0x17c)]=_0x24e2f7,this['_cursors']=_0x2efa4b;}[_0x279361(0x198)](){const _0x4be296=_0x279361;this[_0x4be296(0x31c)]();const {scene:_0x4e9b50,mainComponent:_0x3534b7}=this[_0x4be296(0x2f3)],_0xb329c5=this[_0x4be296(0x16e)][_0x4be296(0x1f1)](),_0x5bf543=this[_0x4be296(0x233)][_0x4be296(0x16a)](_0x149444=>new ot(_0x149444,_0x4e9b50,_0xb329c5,_0x3534b7));this['_cursorShapes']=_0x5bf543;}[_0x279361(0x31c)](){const _0x58c807=_0x279361;this['_cursorShapes'][_0x58c807(0x1a6)](_0x2c296d=>_0x2c296d['dispose']()),this[_0x58c807(0x17c)]=[];}[_0x279361(0x34f)](){const _0x3fb483=_0x279361,_0x1e0f71=[_0x1d8eb6['id']];this[_0x3fb483(0x285)](this[_0x3fb483(0x232)]['onCommandExecuted'](_0x525513=>{const _0x2772cc=_0x3fb483;_0x1e0f71['includes'](_0x525513['id'])&&_0x525513['params'][_0x2772cc(0x140)]===this[_0x2772cc(0x2f3)][_0x2772cc(0x140)]&&this[_0x2772cc(0x198)]();}));}[_0x279361(0x207)](){const _0x22b7a8=_0x279361;this['disposeWithMe'](_0x470ace(this[_0x22b7a8(0x2f3)]['engine'][_0x22b7a8(0x268)])[_0x22b7a8(0x34d)](_0x142e74(_0x34cb34=>_0x34cb34['type']===_0x167676['resize']),_0x449b52(0x10))[_0x22b7a8(0x1f6)](()=>{const _0x299dee=_0x22b7a8;this[_0x299dee(0x198)]();}));}};$e=Qi([ne(0x1,_0x349554(_0x40e4ab)),ne(0x2,_0x349554(Y)),ne(0x3,_0x28d9e9),ne(0x4,_0x349554(_0x5bf8fa))],$e);const qi=0x1,en=1.5;class tn extends _0x8d0ab{constructor(_0x49e97c,_0x3fdff9){const _0x42b6b6=_0x279361;super(_0x49e97c,_0x3fdff9),_(this,_0x42b6b6(0x370)),_(this,_0x42b6b6(0x1d1),!0x1),_(this,_0x42b6b6(0x2d9)),_(this,_0x42b6b6(0x215),''),_(this,'_labelPosition',_0x42b6b6(0x35c)),_(this,_0x42b6b6(0x182)),(_0x3fdff9&&this[_0x42b6b6(0x280)](_0x3fdff9),this[_0x42b6b6(0x161)][_0x42b6b6(0x2b4)](()=>this[_0x42b6b6(0x280)]({'hovered':!0x0})),this[_0x42b6b6(0x29c)][_0x42b6b6(0x2b4)](()=>this[_0x42b6b6(0x280)]({'hovered':!0x1})));}[_0x279361(0x280)](_0x53f93c){const _0x21422c=_0x279361;var _0x1a5b15,_0x1c9c83,_0x5b3932,_0x549b5e,_0x2abfd7,_0x4641e6;this[_0x21422c(0x370)]=(_0x1a5b15=_0x53f93c['color'])!=null?_0x1a5b15:this[_0x21422c(0x370)],this['_hovered']=(_0x1c9c83=_0x53f93c[_0x21422c(0x2a4)])!=null?_0x1c9c83:this['_hovered'],this['_range']=(_0x5b3932=_0x53f93c[_0x21422c(0x2be)])!=null?_0x5b3932:this[_0x21422c(0x2d9)],this['_name']=(_0x549b5e=_0x53f93c['name'])!=null?_0x549b5e:this[_0x21422c(0x215)],this[_0x21422c(0x1f8)]=(_0x2abfd7=_0x53f93c['labelPosition'])!=null?_0x2abfd7:this[_0x21422c(0x1f8)],this[_0x21422c(0x182)]=(_0x4641e6=_0x53f93c[_0x21422c(0x197)])!=null?_0x4641e6:this[_0x21422c(0x182)],this[_0x21422c(0x25e)]({'width':_0x53f93c[_0x21422c(0x29a)],'height':_0x53f93c['height']});}[_0x279361(0x33a)](_0x1cdc26){const _0x31417e=_0x279361,{row:_0x5e9b16,column:_0x5066eb}=_0x1cdc26;if(_0x5e9b16>=this[_0x31417e(0x2d9)][_0x31417e(0x310)]&&_0x5e9b16<=this['_range']['endRow']&&_0x5066eb>=this[_0x31417e(0x2d9)][_0x31417e(0x353)]&&_0x5066eb<=this[_0x31417e(0x2d9)][_0x31417e(0x27c)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x31417e(0x280)]({'hovered':!0x1});}['triggerDblclick'](_0x3c39dd){return!0x1;}['_draw'](_0x3159b8){const _0x4f9f15=_0x279361;_0x5beebc['drawWith'](_0x3159b8,{'width':this[_0x4f9f15(0x29a)],'height':this[_0x4f9f15(0x2df)],'strokeWidth':en,'stroke':this[_0x4f9f15(0x370)],'evented':!0x1,'fill':this[_0x4f9f15(0x182)]}),this[_0x4f9f15(0x1d1)]&&(_0x3159b8[_0x4f9f15(0x301)](),_0x3159b8[_0x4f9f15(0x320)](0x1,0x0,0x0,0x1,this['width'],this[_0x4f9f15(0x1f8)]===_0x4f9f15(0x1ee)?0x0:-q),Ie[_0x4f9f15(0x2cf)](_0x3159b8,{'text':this[_0x4f9f15(0x215)],'color':this[_0x4f9f15(0x370)]}),_0x3159b8[_0x4f9f15(0x30f)]());}}var sn=Object['getOwnPropertyDescriptor'],nn=(_0x122e3c,_0x178c8c,_0x51eee5,_0x5ce12c)=>{const _0x43c4a5=_0x279361;for(var _0x33e7e7=_0x5ce12c>0x1?void 0x0:_0x5ce12c?sn(_0x178c8c,_0x51eee5):_0x178c8c,_0x47e9c1=_0x122e3c[_0x43c4a5(0x35e)]-0x1,_0x507bd5;_0x47e9c1>=0x0;_0x47e9c1--)(_0x507bd5=_0x122e3c[_0x47e9c1])&&(_0x33e7e7=_0x507bd5(_0x33e7e7)||_0x33e7e7);return _0x33e7e7;},Re=(_0x52091f,_0x499f51)=>(_0x7d1545,_0xd7c10f)=>_0x499f51(_0x7d1545,_0xd7c10f,_0x52091f);const rn=0x1389;let xe=class extends _0x46d041{constructor(_0x31f7df,_0x50575e,_0xdbce14,_0xba7fca){const _0x2c643f=_0x279361;super(),_(this,_0x2c643f(0x233),new Set()),_(this,_0x2c643f(0x2e0),null),(this[_0x2c643f(0x2f3)]=_0x31f7df,this[_0x2c643f(0x1e8)]=_0x50575e,this[_0x2c643f(0x1b1)]=_0xdbce14,this[_0x2c643f(0x21f)]=_0xba7fca,this[_0x2c643f(0x275)]());}[_0x279361(0x275)](){const _0x4b9e7=_0x279361;this[_0x4b9e7(0x1e8)]['currentSkeleton$'][_0x4b9e7(0x34d)](_0xc3d5cb(this[_0x4b9e7(0x337)]),_0x1e056c(_0x348a16=>{const _0x11d0f8=_0x4b9e7;if(_0x348a16){const _0x1d5805=_0x348a16['sheetId'];return _0x4310f5(this[_0x11d0f8(0x1b1)][_0x11d0f8(0x139)](this[_0x11d0f8(0x2f3)][_0x11d0f8(0x140)]),this[_0x11d0f8(0x21f)][_0x11d0f8(0x13a)])[_0x11d0f8(0x34d)](_0x457ae1(([_0x2449e6,_0x2d3040])=>{const _0x4164bd=_0x11d0f8,_0x2876da=new Map();return _0x2449e6[_0x4164bd(0x1a6)]((_0x465787,_0xaf0b3a)=>{const _0x582a2b=_0x4164bd;if(_0x465787[_0x582a2b(0x1fa)]===_0x1d5805){const _0x5a859a={..._0x465787};_0x5a859a[_0x582a2b(0x314)]=this['_themeService'][_0x582a2b(0x32e)](_0x465787[_0x582a2b(0x314)]),_0x2876da[_0x582a2b(0x357)](_0xaf0b3a,_0x5a859a);}}),{'skeleton':_0x348a16,'cursors':_0x2876da};}));}return _0x472e19({'skeleton':null,'cursors':new Map()});}))[_0x4b9e7(0x1f6)](({skeleton:_0x4f0464,cursors:_0x42a903})=>{const _0x4ccc40=_0x4b9e7;this[_0x4ccc40(0x31c)](),_0x4f0464&&this[_0x4ccc40(0x179)](_0x4f0464,_0x42a903);}),this[_0x4b9e7(0x1e8)][_0x4b9e7(0x284)][_0x4b9e7(0x1f6)](_0x467757=>{const _0x23be3b=_0x4b9e7;if(_0x467757==null)return;const {skeleton:_0x3a633a}=_0x467757,{scene:_0x189174}=this['_context'];_0x189174[_0x23be3b(0x14f)][_0x23be3b(0x2b4)](_0x22d40a(_0x2cd578=>{const _0x29dcba=_0x23be3b;var _0x180057,_0x48172b;const {offsetX:_0x20c091,offsetY:_0x548b7f}=_0x2cd578,{x:_0xf8efe6,y:_0xa59f88}=_0x189174[_0x29dcba(0x283)](_0x5abf10[_0x29dcba(0x2aa)]([_0x20c091,_0x548b7f])),{scaleX:_0x529553,scaleY:_0x50ccb7}=_0x189174['getAncestorScale'](),_0x1a0cb8=_0x189174[_0x29dcba(0x1cd)](_0x42cb58[_0x29dcba(0x19b)]),_0x2fb264=_0x189174[_0x29dcba(0x149)](_0x5abf10[_0x29dcba(0x2aa)]([_0xf8efe6,_0xa59f88]),_0x1a0cb8),_0x269d68=_0x3a633a[_0x29dcba(0x34c)](_0x20c091,_0x548b7f,_0x529553,_0x50ccb7,_0x2fb264);((_0x180057=this['_lastPointer'])==null?void 0x0:_0x180057['column'])===_0x269d68[_0x29dcba(0x365)]&&((_0x48172b=this[_0x29dcba(0x2e0)])==null?void 0x0:_0x48172b[_0x29dcba(0x2cb)])===_0x269d68['row']||this[_0x29dcba(0x233)][_0x29dcba(0x1a6)](_0x362162=>{_0x362162['onMouseMove'](_0x269d68);});},0x64));});}[_0x279361(0x179)](_0x4b9ec0,_0x453041){const _0x9e64bc=_0x279361;var _0x30bc68;const _0x3361b3=(_0x30bc68=this[_0x9e64bc(0x1e8)][_0x9e64bc(0x342)]())==null?void 0x0:_0x30bc68['skeleton'];if(!_0x3361b3)return;const _0x15ffcf=this[_0x9e64bc(0x147)]();if(!_0x15ffcf)return;this[_0x9e64bc(0x233)][_0x9e64bc(0x1a6)](_0x20eaf1=>{const _0x4ca479=_0x9e64bc;_0x20eaf1[_0x4ca479(0x1ca)]();});const {scene:_0x4c15a5}=_0x15ffcf,_0x584029=on(Array[_0x9e64bc(0x23a)](_0x453041[_0x9e64bc(0x244)]()))[_0x9e64bc(0x16a)](_0x164d0c=>{const _0x48ce9a=_0x9e64bc,{color:_0x308eff,range:_0x401cc0,name:_0x2e5043,selection:_0x2fea85,sheetID:_0x36e7aa}=_0x164d0c,{startColumn:_0x43762f,startRow:_0x206556,endColumn:_0x2e3802,endRow:_0x159fce}=_0x401cc0,_0x33734d=_0xdccc3d(_0x206556,_0x43762f,_0x4c15a5,_0x3361b3),_0x317cad=_0xdccc3d(_0x159fce,_0x2e3802,_0x4c15a5,_0x3361b3),{columnHeaderHeightAndMarginTop:_0x4836a6}=_0x3361b3,{startX:_0x352dc1,startY:_0x2f3116}=_0x33734d,{endX:_0x589c5e,endY:_0x463dba}=_0x317cad,_0x522054=_0x589c5e-_0x352dc1,_0x54af75=_0x463dba-_0x2f3116,_0x2e9df6={'labelPosition':_0x2f3116-_0x4836a6>=q?_0x48ce9a(0x35c):_0x48ce9a(0x1ee),'sheetID':_0x36e7aa,'range':_0x401cc0,'color':_0x308eff,'name':_0x2e5043,'selection':_0x2fea85,'left':_0x352dc1,'top':_0x2f3116,'width':_0x522054,'height':_0x54af75,'evented':!0x1,'zIndex':rn};return new tn(_0x2e5043,_0x2e9df6);});_0x4c15a5[_0x9e64bc(0x15a)](_0x584029,qi),this[_0x9e64bc(0x233)]=new Set(_0x584029);}['_removeCollabCursors'](){const _0x5f3b82=_0x279361;var _0x426d49;(_0x426d49=this['_cursors'])==null||_0x426d49[_0x5f3b82(0x1a6)](_0x543678=>_0x543678['dispose']());}['_getSheetObject'](){const _0x557a0b=_0x279361;return _0x18a982(this['_context'][_0x557a0b(0x14d)],this[_0x557a0b(0x2f3)]);}};xe=nn([Re(0x1,_0x349554(_0x17a6cb)),Re(0x2,_0x349554(Y)),Re(0x3,_0x349554(_0x5bf8fa))],xe);function on(_0x549936){const _0x55133d=_0x279361,_0x548123=new Map();return _0x549936[_0x55133d(0x1a6)](_0x20832e=>{const _0x2ba3c2=_0x55133d;if(_0x548123[_0x2ba3c2(0x30e)](_0x20832e[_0x2ba3c2(0x201)])){const _0x3d82c6=_0x548123[_0x2ba3c2(0x225)](_0x20832e[_0x2ba3c2(0x201)]);_0x3d82c6[_0x2ba3c2(0x371)]+=',\x20'+_0x20832e[_0x2ba3c2(0x371)];}else _0x548123[_0x2ba3c2(0x357)](_0x20832e[_0x2ba3c2(0x201)],_0x20832e);}),Array[_0x55133d(0x23a)](_0x548123[_0x55133d(0x244)]());}var an=Object[_0x279361(0x1ec)],cn=(_0x431a81,_0x4339ef,_0x535b64,_0xe17581)=>{const _0x387661=_0x279361;for(var _0x151477=_0xe17581>0x1?void 0x0:_0xe17581?an(_0x4339ef,_0x535b64):_0x4339ef,_0x1b5562=_0x431a81[_0x387661(0x35e)]-0x1,_0x177619;_0x1b5562>=0x0;_0x1b5562--)(_0x177619=_0x431a81[_0x1b5562])&&(_0x151477=_0x177619(_0x151477)||_0x151477);return _0x151477;},k=(_0x513305,_0x33aad7)=>(_0x40621e,_0x20962f)=>_0x33aad7(_0x40621e,_0x20962f,_0x513305);let le=class extends _0x2972bb{constructor(_0x197e92,_0x9a219b,_0x19a38d,_0x23a949,_0x15e02c,_0x1943e4){const _0x18421e=_0x279361;super(),this[_0x18421e(0x2cc)]=_0x197e92,this[_0x18421e(0x150)]=_0x9a219b,this[_0x18421e(0x325)]=_0x19a38d,this[_0x18421e(0x386)]=_0x23a949,this[_0x18421e(0x277)]=_0x15e02c,this[_0x18421e(0x26f)]=_0x1943e4,this['_setupBeforeClosingHandler'](),this['_initEvent']();}[_0x279361(0x255)](){const _0x15fccd=_0x279361;this[_0x15fccd(0x285)](this[_0x15fccd(0x2cc)][_0x15fccd(0x27b)](()=>{const _0x24c55d=_0x15fccd;if(this[_0x24c55d(0x150)][_0x24c55d(0x33e)][_0x24c55d(0x1c4)])return this[_0x24c55d(0x26f)]['t'](_0x24c55d(0x1ac));}));}['_initEvent'](){const _0xa1ec3f=_0x279361;this['disposeWithMe'](this[_0xa1ec3f(0x325)][_0xa1ec3f(0x2d3)][_0xa1ec3f(0x1f6)](_0x54fba3=>{const _0x4483d8=_0xa1ec3f;_0x54fba3['id']===_0x48a9b0[_0x4483d8(0x339)]&&this[_0x4483d8(0x386)]['show']({'type':_0x41554e[_0x4483d8(0x148)],'content':this['_localeService']['t']('collaboration.single-unit.warning')}),_0x54fba3['id']===_0x48a9b0[_0x4483d8(0x269)]&&this[_0x4483d8(0x386)][_0x4483d8(0x1b4)]({'type':_0x41554e[_0x4483d8(0x148)],'content':this['_localeService']['t'](_0x4483d8(0x2a2))}),_0x54fba3['id']===_0x48a9b0[_0x4483d8(0x2bd)]&&this[_0x4483d8(0x277)][_0x4483d8(0x1b4)]({'title':this[_0x4483d8(0x26f)]['t']('permission.title'),'content':this['_localeService']['t'](_0x4483d8(0x30b)),'type':_0x4483d8(0x21b),'duration':0x0}),_0x54fba3['id']===_0x48a9b0[_0x4483d8(0x302)]&&this[_0x4483d8(0x386)]['show']({'type':_0x41554e[_0x4483d8(0x1aa)],'content':this[_0x4483d8(0x26f)]['t']('collaboration.closeRoom')+'('+_0x54fba3['data']+')'}),_0x54fba3['id']===_0x48a9b0[_0x4483d8(0x2e4)]&&this['_messageService']['show']({'type':_0x41554e[_0x4483d8(0x148)],'content':this['_localeService']['t'](_0x54fba3[_0x4483d8(0x28a)]||'')}),_0x54fba3['id']===_0x48a9b0['SOCKET_FAILED_RETRY']&&this['_messageService']['show']({'type':_0x41554e[_0x4483d8(0x148)],'content':this[_0x4483d8(0x26f)]['t']('session.will-retry')}),_0x54fba3['id']===_0x48a9b0[_0x4483d8(0x27f)]&&this[_0x4483d8(0x386)][_0x4483d8(0x1b4)]({'type':_0x41554e['Error'],'content':this[_0x4483d8(0x26f)]['t'](_0x4483d8(0x30a))}),_0x54fba3['id']===_0x48a9b0['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x4483d8(0x386)][_0x4483d8(0x1b4)]({'type':_0x41554e[_0x4483d8(0x1aa)],'content':this[_0x4483d8(0x26f)]['t'](_0x4483d8(0x1bb))});}));}};le=cn([k(0x0,_0x310aab),k(0x1,_0x3b29b1),k(0x2,_0x349554(_0x5307c3)),k(0x3,_0x382ae3),k(0x4,_0x3a220c),k(0x5,_0x349554(_0x5852b4))],le);const ln=_0x279361(0x2fd),at={};var _n=Object[_0x279361(0x1ec)],hn=(_0x9bcb7a,_0x124b5a,_0x1c66e6,_0x11dcf7)=>{const _0x4c01bb=_0x279361;for(var _0x171b8e=_0x11dcf7>0x1?void 0x0:_0x11dcf7?_n(_0x124b5a,_0x1c66e6):_0x124b5a,_0x29c339=_0x9bcb7a[_0x4c01bb(0x35e)]-0x1,_0x388b17;_0x29c339>=0x0;_0x29c339--)(_0x388b17=_0x9bcb7a[_0x29c339])&&(_0x171b8e=_0x388b17(_0x171b8e)||_0x171b8e);return _0x171b8e;},ct=(_0x122508,_0x2974c9)=>(_0x3d6d8d,_0x4af94d)=>_0x2974c9(_0x3d6d8d,_0x4af94d,_0x122508);let _e=class{constructor(_0x1b305a,_0xc60ce0){const _0x4c538a=_0x279361;this['_transformService']=_0x1b305a,this[_0x4c538a(0x2e5)]=_0xc60ce0;}[_0x279361(0x1fb)](_0x14c433){const _0x20db52=_0x279361;this[_0x20db52(0x206)](_0x14c433),this['_transformPreviousActiveRange'](_0x14c433);}[_0x279361(0x1d2)](_0x53f9e8){const _0x24bdd0=_0x279361,{unitID:_0x5065ae}=_0x53f9e8,_0xd4e5a7=this['_renderManagerService']['getRenderById'](_0x5065ae)[_0x24bdd0(0x343)](_0x4f8931),{redoCache:_0x4d0007}=_0xd4e5a7[_0x24bdd0(0x2bf)]();if(_0x4d0007[_0x24bdd0(0x35e)]===0x0)return _0x53f9e8;let _0x1d81ef=_0x55b651[_0x24bdd0(0x17f)](_0x53f9e8[_0x24bdd0(0x344)][0x0]);for(let _0x3f3ff9=0x0;_0x3f3ff9<_0x4d0007[_0x24bdd0(0x35e)];_0x3f3ff9++){const _0x17aa92={'id':'doc.mutation.rich-text-editing','params':{..._0x4d0007[_0x3f3ff9]}},_0x381f27=this['_transformService'][_0x24bdd0(0x1bc)](_0x1d81ef,_0x17aa92,!0x1);if(_0x325207(_0x381f27))throw _0x381f27[_0x24bdd0(0x21b)];_0x1d81ef=_0x381f27['m1Prime'];}return{..._0x55b651['deepClone'](_0x53f9e8),'mutations':[_0x1d81ef]};}[_0x279361(0x206)](_0x5f3164){const _0xe929fc=_0x279361,{unitID:_0x74b68c}=_0x5f3164,_0x1d6281=this[_0xe929fc(0x2e5)][_0xe929fc(0x209)](_0x74b68c)['with'](_0x4f8931),{undoCache:_0x452ac0,redoCache:_0x1a4394}=_0x1d6281['getUndoRedoMutationParamsCache']();if(_0x452ac0[_0xe929fc(0x35e)]===0x0||_0x1a4394[_0xe929fc(0x35e)]===0x0)return;const _0x549275=[],_0x523fd8=[];let _0x37ed33=_0x55b651[_0xe929fc(0x17f)](_0x5f3164[_0xe929fc(0x344)][0x0]),_0xa86854=_0x55b651[_0xe929fc(0x17f)](_0x5f3164['mutations'][0x0]);for(let _0x586bf6=_0x452ac0['length']-0x1;_0x586bf6>=0x0;_0x586bf6--){const _0x512938={'id':_0xe929fc(0x2ab),'params':{..._0x452ac0[_0x586bf6]}},_0x496307={'id':_0xe929fc(0x2ab),'params':{..._0x1a4394[_0x586bf6]}},_0x19bc5f=this[_0xe929fc(0x192)]['transformMutation'](_0x37ed33,_0x512938,!0x1),_0x4859fd=this[_0xe929fc(0x192)][_0xe929fc(0x1bc)](_0xa86854,_0x496307,!0x1);if(_0x325207(_0x19bc5f))throw _0x19bc5f[_0xe929fc(0x21b)];if(_0x325207(_0x4859fd))throw _0x4859fd['error'];_0x549275['unshift'](_0x19bc5f['m2Prime'][_0xe929fc(0x141)]),_0x523fd8[_0xe929fc(0x373)](_0x4859fd['m2Prime'][_0xe929fc(0x141)]),_0x37ed33=_0x19bc5f[_0xe929fc(0x2d0)],_0xa86854=_0x4859fd[_0xe929fc(0x2d0)];}_0x1d6281[_0xe929fc(0x32a)]({'undoCache':_0x549275,'redoCache':_0x523fd8});}[_0x279361(0x36b)](_0x320c53){const _0x4608b2=_0x279361,{unitID:_0x3c02ee}=_0x320c53,_0x48bf71=this[_0x4608b2(0x2e5)][_0x4608b2(0x209)](_0x3c02ee)[_0x4608b2(0x343)](_0x4f8931),_0x2005b7=_0x48bf71[_0x4608b2(0x345)]();if(_0x2005b7==null)return;const _0x26636b=[{'id':_0x4608b2(0x2ab),'params':{'unitId':_0x320c53[_0x4608b2(0x2ea)],'actions':null,'textRanges':[_0x2005b7]}}],_0x96ecd9=this[_0x4608b2(0x192)][_0x4608b2(0x2eb)](_0x320c53,_0x26636b);if(!_0x1bca00(_0x96ecd9))throw _0x96ecd9[_0x4608b2(0x21b)];const _0x511523=_0x96ecd9[_0x4608b2(0x1b2)][0x0][_0x4608b2(0x141)][_0x4608b2(0x1d4)];Array[_0x4608b2(0x17d)](_0x511523)&&_0x511523[_0x4608b2(0x35e)]&&_0x48bf71[_0x4608b2(0x312)](_0x511523[0x0]);}};_e=hn([ct(0x0,_0x5aa3d9),ct(0x1,_0x3bda3f)],_e);var un=Object[_0x279361(0x1ec)],dn=(_0x15f3ad,_0x452269,_0x30593e,_0xe76fd)=>{const _0x3172c4=_0x279361;for(var _0x27564e=_0xe76fd>0x1?void 0x0:_0xe76fd?un(_0x452269,_0x30593e):_0x452269,_0x2c501b=_0x15f3ad[_0x3172c4(0x35e)]-0x1,_0x577102;_0x2c501b>=0x0;_0x2c501b--)(_0x577102=_0x15f3ad[_0x2c501b])&&(_0x27564e=_0x577102(_0x27564e)||_0x27564e);return _0x27564e;},De=(_0x59fa88,_0x19a95a)=>(_0x45088f,_0x3f8ecc)=>_0x19a95a(_0x45088f,_0x3f8ecc,_0x59fa88);let he=class{constructor(_0x3ca1d5,_0x5bd91f,_0x42ede7){const _0x40438b=_0x279361;this['_injector']=_0x3ca1d5,this[_0x40438b(0x192)]=_0x5bd91f,this['_docStateChangeManagerService']=_0x42ede7;}[_0x279361(0x158)](_0x4178f3){this['_transformHistoryAndStateStack'](_0x4178f3);}['transformRemoteChangeset'](_0x4ec1de){const _0xa4a94c=_0x279361,{unitID:_0x153c97}=_0x4ec1de,{collaboration:_0x1d8dc8}=this[_0xa4a94c(0x1a5)][_0xa4a94c(0x15d)](_0x153c97);if(_0x1d8dc8[_0xa4a94c(0x35e)]===0x0)return _0x4ec1de;let _0x1a054a=_0x55b651[_0xa4a94c(0x17f)](_0x4ec1de[_0xa4a94c(0x344)][0x0]);for(let _0x1e2982=0x0;_0x1e2982<_0x1d8dc8[_0xa4a94c(0x35e)];_0x1e2982++){const _0x1851c1={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1d8dc8[_0x1e2982]['unitId'],..._0x1d8dc8[_0x1e2982][_0xa4a94c(0x2c7)]}},_0x9c880=this['_transformService']['transformMutation'](_0x1a054a,_0x1851c1,!0x1);if(_0x325207(_0x9c880))throw _0x9c880['error'];_0x1a054a=_0x9c880[_0xa4a94c(0x2d0)];}return{..._0x55b651[_0xa4a94c(0x17f)](_0x4ec1de),'mutations':[_0x1a054a]};}[_0x279361(0x2ec)](_0x2b1d8f){const _0x535d61=_0x279361,{unitID:_0x17dfbd}=_0x2b1d8f,{history:_0x41fa4a,collaboration:_0x3c4be2}=this[_0x535d61(0x1a5)]['getStateCache'](_0x17dfbd);if(_0x41fa4a['length']===0x0&&_0x3c4be2['length']===0x0)return;const _0xd535d9=[],_0x4fef7b=[];let _0x17ed4f=_0x55b651[_0x535d61(0x17f)](_0x2b1d8f[_0x535d61(0x344)][0x0]),_0xd9ecdc=_0x55b651[_0x535d61(0x17f)](_0x2b1d8f[_0x535d61(0x344)][0x0]);for(let _0x171e11=_0x41fa4a[_0x535d61(0x35e)]-0x1;_0x171e11>=0x0;_0x171e11--){const _0x41d368={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x41fa4a[_0x171e11]['unitId'],..._0x41fa4a[_0x171e11][_0x535d61(0x219)]}},_0x3f7a10={'id':_0x535d61(0x2ab),'params':{'unitId':_0x41fa4a[_0x171e11][_0x535d61(0x140)],..._0x41fa4a[_0x171e11][_0x535d61(0x2c7)]}},_0x4495fa=this['_transformService'][_0x535d61(0x1bc)](_0x17ed4f,_0x41d368,!0x1),_0x428d9b=this[_0x535d61(0x192)][_0x535d61(0x1bc)](_0xd9ecdc,_0x3f7a10,!0x1);if(_0x325207(_0x4495fa))throw _0x4495fa['error'];if(_0x325207(_0x428d9b))throw _0x428d9b[_0x535d61(0x21b)];_0xd535d9[_0x535d61(0x373)]({..._0x41fa4a[_0x171e11],'undoState':_0x4495fa['m2Prime'][_0x535d61(0x141)],'redoState':_0x428d9b[_0x535d61(0x1b2)][_0x535d61(0x141)]}),_0x17ed4f=_0x4495fa[_0x535d61(0x2d0)],_0xd9ecdc=_0x428d9b[_0x535d61(0x2d0)];}_0x17ed4f=_0x55b651[_0x535d61(0x17f)](_0x2b1d8f[_0x535d61(0x344)][0x0]),_0xd9ecdc=_0x55b651[_0x535d61(0x17f)](_0x2b1d8f[_0x535d61(0x344)][0x0]);for(let _0x161499=_0x3c4be2[_0x535d61(0x35e)]-0x1;_0x161499>=0x0;_0x161499--){const _0x18bcbc={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3c4be2[_0x161499]['unitId'],..._0x3c4be2[_0x161499][_0x535d61(0x219)]}},_0x247acc={'id':_0x535d61(0x2ab),'params':{'unitId':_0x3c4be2[_0x161499]['unitId'],..._0x3c4be2[_0x161499][_0x535d61(0x2c7)]}},_0x42c952=this[_0x535d61(0x192)][_0x535d61(0x1bc)](_0x17ed4f,_0x18bcbc,!0x1),_0x27563a=this[_0x535d61(0x192)][_0x535d61(0x1bc)](_0xd9ecdc,_0x247acc,!0x1);if(_0x325207(_0x42c952))throw _0x42c952[_0x535d61(0x21b)];if(_0x325207(_0x27563a))throw _0x27563a[_0x535d61(0x21b)];_0x4fef7b[_0x535d61(0x373)]({..._0x3c4be2[_0x161499],'undoState':_0x42c952[_0x535d61(0x1b2)][_0x535d61(0x141)],'redoState':_0x27563a[_0x535d61(0x1b2)]['params']}),_0x17ed4f=_0x42c952['m1Prime'],_0xd9ecdc=_0x27563a[_0x535d61(0x2d0)];}this[_0x535d61(0x1a5)][_0x535d61(0x15b)](_0x17dfbd,{'history':_0xd535d9,'collaboration':_0x4fef7b});}};he=dn([De(0x0,_0x349554(_0x543124)),De(0x1,_0x5aa3d9),De(0x2,_0x349554(_0xedf1f6))],he);var fn=Object[_0x279361(0x1ec)],Sn=(_0x18a1fa,_0x15974a,_0x336d58,_0x3f05f5)=>{const _0xd95bc6=_0x279361;for(var _0x285896=_0x3f05f5>0x1?void 0x0:_0x3f05f5?fn(_0x15974a,_0x336d58):_0x15974a,_0x2aad51=_0x18a1fa[_0xd95bc6(0x35e)]-0x1,_0x44c551;_0x2aad51>=0x0;_0x2aad51--)(_0x44c551=_0x18a1fa[_0x2aad51])&&(_0x285896=_0x44c551(_0x285896)||_0x285896);return _0x285896;},lt=(_0x14d525,_0x16ada6)=>(_0x457e4b,_0x324be3)=>_0x16ada6(_0x457e4b,_0x324be3,_0x14d525);let ue=class{constructor(_0x5ac66a,_0x11b40f){const _0x39ce12=_0x279361;this[_0x39ce12(0x31b)]=_0x5ac66a,this[_0x39ce12(0x192)]=_0x11b40f;}['transformSelections'](_0x428ac2){const _0x1a74e0=_0x279361;var _0x3c0b4b;const _0x2ef18d=this[_0x1a74e0(0x31b)][_0x1a74e0(0x225)](_0x304158),_0x274c79=(_0x3c0b4b=_0x2ef18d[_0x1a74e0(0x227)]())!=null?_0x3c0b4b:[];if(_0x274c79[_0x1a74e0(0x35e)]===0x0)return;const _0x46f174=_0x428ac2[_0x1a74e0(0x2ea)],_0x464705=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x46f174,'actions':null,'textRanges':_0x274c79}}],_0x2c6778=this[_0x1a74e0(0x192)][_0x1a74e0(0x2eb)](_0x428ac2,_0x464705);if(!_0x1bca00(_0x2c6778))throw _0x2c6778[_0x1a74e0(0x21b)];const _0x5a4aa6=_0x2c6778[_0x1a74e0(0x1b2)][0x0]['params'][_0x1a74e0(0x1d4)];Array['isArray'](_0x5a4aa6)&&_0x5a4aa6[_0x1a74e0(0x35e)]&&_0x2ef18d[_0x1a74e0(0x163)](_0x5a4aa6,{'unitId':_0x46f174,'subUnitId':_0x46f174},!0x1);}};ue=Sn([lt(0x0,_0x349554(_0x543124)),lt(0x1,_0x5aa3d9)],ue);var mn=Object[_0x279361(0x1ec)],In=(_0x598500,_0x1554b1,_0x3d0b2f,_0x81bef6)=>{for(var _0xfc75fa=_0x81bef6>0x1?void 0x0:_0x81bef6?mn(_0x1554b1,_0x3d0b2f):_0x1554b1,_0x37e541=_0x598500['length']-0x1,_0x205cad;_0x37e541>=0x0;_0x37e541--)(_0x205cad=_0x598500[_0x37e541])&&(_0xfc75fa=_0x205cad(_0xfc75fa)||_0xfc75fa);return _0xfc75fa;},U=(_0x76904,_0x3d2c09)=>(_0x5d7da6,_0xf5e965)=>_0x3d2c09(_0x5d7da6,_0xf5e965,_0x76904);let de=class extends _0x2972bb{constructor(_0x1730f4,_0x43855c,_0x20c84c,_0x1160dc,_0x4ac710,_0x3304a3,_0x168985,_0x9323de){const _0xcd839a=_0x279361;super(),_(this,_0xcd839a(0x2ad),new _0x5ccbb2(_0x20f601[_0xcd839a(0x1de)])),(this['_docStateChangeManagerService']=_0x1730f4,this['_collaborationController']=_0x43855c,this[_0xcd839a(0x341)]=_0x20c84c,this[_0xcd839a(0x1a1)]=_0x1160dc,this[_0xcd839a(0x1e1)]=_0x4ac710,this[_0xcd839a(0x186)]=_0x3304a3,this['_messageService']=_0x168985,this[_0xcd839a(0x26f)]=_0x9323de,this[_0xcd839a(0x172)]());}[_0x279361(0x172)](){const _0x547f04=_0x279361;this[_0x547f04(0x285)](this[_0x547f04(0x2ac)]['entityInit$']['subscribe'](_0x15c9ab=>{const _0x37be94=_0x547f04,_0x5c83a2=this[_0x37be94(0x1a5)]['docStateChange$'][_0x37be94(0x1f6)](_0x267adc=>{const _0x2a6952=_0x37be94;if(_0x267adc==null)return;const {unitId:_0x46b4ca,redoState:_0x547bae,commandId:_0x19046c}=_0x267adc;if(_0x46b4ca!==_0x15c9ab[_0x2a6952(0x2ea)])return;const _0x1d9205={'id':_0x19046c,'type':_0x2d51ab[_0x2a6952(0x1c3)],'params':{'unitId':_0x46b4ca,'actions':_0x547bae[_0x2a6952(0x165)],'textRanges':null}};_0x15c9ab[_0x2a6952(0x2d8)](_0x1d9205);});if(_0x15c9ab[_0x37be94(0x285)](_0x5c83a2),_0x15c9ab instanceof _0x237a0f){const _0x5bd131={'onTransformIME':_0x439d9d=>this['_docTransformIMECacheService'][_0x37be94(0x1fb)](_0x439d9d),'onTransformState':_0x35d937=>this[_0x37be94(0x1a1)][_0x37be94(0x158)](_0x35d937),'onTransformSelections':_0x52b62a=>this[_0x37be94(0x1e1)][_0x37be94(0x1a4)](_0x52b62a),'onSyncEditingCollabCursor':_0x385c86=>this[_0x37be94(0x186)][_0x37be94(0x2e2)](_0x385c86),'onTransformRemoteChangesetByIMECache':_0x19e388=>this[_0x37be94(0x341)][_0x37be94(0x1d2)](_0x19e388),'onTransformRemoteChangesetByStateCache':_0x66761d=>this[_0x37be94(0x1a1)][_0x37be94(0x1d2)](_0x66761d)};_0x15c9ab[_0x37be94(0x315)](_0x5bd131);}}));}};de=In([U(0x0,_0x349554(_0xedf1f6)),U(0x1,_0x349554(_0x1c1280)),U(0x2,_0x349554(_e)),U(0x3,_0x349554(he)),U(0x4,_0x349554(ue)),U(0x5,_0x349554(Ke)),U(0x6,_0x382ae3),U(0x7,_0x349554(_0x5852b4))],de);var Q=(_0x4cfd7c=>(_0x4cfd7c[_0x4cfd7c[_0x279361(0x267)]=0x0]='UNDEFINED',_0x4cfd7c[_0x4cfd7c['OK']=0x1]='OK',_0x4cfd7c[_0x4cfd7c[_0x279361(0x384)]=0x2]=_0x279361(0x384),_0x4cfd7c[_0x4cfd7c[_0x279361(0x2bd)]=0x3]='PERMISSION_DENIED',_0x4cfd7c[_0x4cfd7c[_0x279361(0x24f)]=0x4]=_0x279361(0x24f),_0x4cfd7c[_0x4cfd7c['UNAUTHENTICATED']=0x5]=_0x279361(0x166),_0x4cfd7c[_0x4cfd7c[_0x279361(0x31e)]=0x6]=_0x279361(0x31e),_0x4cfd7c[_0x4cfd7c[_0x279361(0x1ab)]=0x7]='INVALID_ARGUMENT',_0x4cfd7c[_0x4cfd7c[_0x279361(0x2ce)]=0x8]=_0x279361(0x2ce),_0x4cfd7c[_0x4cfd7c[_0x279361(0x170)]=0x9]='COMPLETION_FINISHED',_0x4cfd7c[_0x4cfd7c[_0x279361(0x35d)]=0xa]=_0x279361(0x35d),_0x4cfd7c[_0x4cfd7c[_0x279361(0x1ce)]=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x4cfd7c[_0x4cfd7c['MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x4cfd7c[_0x4cfd7c[_0x279361(0x194)]=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0x4cfd7c[_0x4cfd7c[_0x279361(0x322)]=0xe]=_0x279361(0x322),_0x4cfd7c[_0x4cfd7c[_0x279361(0x167)]=0xf]=_0x279361(0x167),_0x4cfd7c[_0x4cfd7c[_0x279361(0x358)]=0x10]=_0x279361(0x358),_0x4cfd7c[_0x4cfd7c[_0x279361(0x20b)]=0x64]=_0x279361(0x20b),_0x4cfd7c[_0x4cfd7c[_0x279361(0x257)]=0x65]=_0x279361(0x257),_0x4cfd7c[_0x4cfd7c[_0x279361(0x146)]=0xc9]=_0x279361(0x146),_0x4cfd7c[_0x4cfd7c['USER_IS_ANONYMOUS']=0xca]=_0x279361(0x248),_0x4cfd7c[_0x4cfd7c[_0x279361(0x234)]=0x1389]=_0x279361(0x234),_0x4cfd7c[_0x4cfd7c[_0x279361(0x2f8)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x4cfd7c[_0x4cfd7c[_0x279361(0x327)]=0x1772]=_0x279361(0x327),_0x4cfd7c[_0x4cfd7c[_0x279361(0x27a)]=0x1773]=_0x279361(0x27a),_0x4cfd7c[_0x4cfd7c[_0x279361(0x37e)]=0x1b59]=_0x279361(0x37e),_0x4cfd7c[_0x4cfd7c['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x279361(0x1f3),_0x4cfd7c[_0x4cfd7c['APPLY_REVISION_CONFILICT']=0x1b5b]='APPLY_REVISION_CONFILICT',_0x4cfd7c[_0x4cfd7c[_0x279361(0x29e)]=0x1b5c]=_0x279361(0x29e),_0x4cfd7c[_0x4cfd7c[_0x279361(0x2f6)]=0x1b5d]=_0x279361(0x2f6),_0x4cfd7c[_0x4cfd7c[_0x279361(0x27d)]=0x1f41]=_0x279361(0x27d),_0x4cfd7c[_0x4cfd7c[_0x279361(0x1ad)]=0x2329]=_0x279361(0x1ad),_0x4cfd7c[_0x4cfd7c[_0x279361(0x2a0)]=0x232a]=_0x279361(0x2a0),_0x4cfd7c[_0x4cfd7c[_0x279361(0x16b)]=0x232b]=_0x279361(0x16b),_0x4cfd7c[_0x4cfd7c[_0x279361(0x26b)]=0x232c]=_0x279361(0x26b),_0x4cfd7c[_0x4cfd7c[_0x279361(0x2e3)]=0x232d]=_0x279361(0x2e3),_0x4cfd7c[_0x4cfd7c['YUUMI_UNABLE_LOAD_URL']=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x4cfd7c[_0x4cfd7c['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x4cfd7c[_0x4cfd7c[_0x279361(0x31a)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x4cfd7c[_0x4cfd7c[_0x279361(0x319)]=0x2714]=_0x279361(0x319),_0x4cfd7c[_0x4cfd7c[_0x279361(0x294)]=0x271a]=_0x279361(0x294),_0x4cfd7c[_0x4cfd7c[_0x279361(0x175)]=0x271b]=_0x279361(0x175),_0x4cfd7c[_0x4cfd7c['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x279361(0x272),_0x4cfd7c[_0x4cfd7c[_0x279361(0x2f2)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x4cfd7c[_0x4cfd7c[_0x279361(0x18a)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x4cfd7c[_0x4cfd7c[_0x279361(0x2a1)]=0x271f]=_0x279361(0x2a1),_0x4cfd7c[_0x4cfd7c[_0x279361(0x338)]=0x2720]='YUUMI_CONNECTOR_URL_NOT_FOUND',_0x4cfd7c[_0x4cfd7c['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x4cfd7c[_0x4cfd7c[_0x279361(0x2ca)]=0x2ee1]=_0x279361(0x2ca),_0x4cfd7c[_0x4cfd7c[_0x279361(0x19a)]=0x2ee2]=_0x279361(0x19a),_0x4cfd7c[_0x4cfd7c[_0x279361(0x37f)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x4cfd7c[_0x4cfd7c[_0x279361(0x36c)]=0x2ee4]=_0x279361(0x36c),_0x4cfd7c[_0x4cfd7c['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x279361(0x331),_0x4cfd7c[_0x4cfd7c[_0x279361(0x288)]=0x32c9]=_0x279361(0x288),_0x4cfd7c[_0x4cfd7c[_0x279361(0x28d)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x4cfd7c[_0x4cfd7c['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x279361(0x35f),_0x4cfd7c[_0x4cfd7c[_0x279361(0x204)]=0x36b1]=_0x279361(0x204),_0x4cfd7c[_0x4cfd7c[_0x279361(0x2ba)]=0x36b2]=_0x279361(0x2ba),_0x4cfd7c[_0x4cfd7c[_0x279361(0x270)]=0x36b3]='ENTITLE_DUP_SUBSCRIPTION',_0x4cfd7c[_0x4cfd7c[_0x279361(0x1b3)]=0x36b4]=_0x279361(0x1b3),_0x4cfd7c[_0x4cfd7c['ENTITLE_CHAT_LIMIT_EXCEED']=0x3715]=_0x279361(0x349),_0x4cfd7c[_0x4cfd7c[_0x279361(0x218)]=0x3716]=_0x279361(0x218),_0x4cfd7c[_0x4cfd7c[_0x279361(0x1f9)]=0x37dd]=_0x279361(0x1f9),_0x4cfd7c[_0x4cfd7c[_0x279361(0x22c)]=0x3a99]=_0x279361(0x22c),_0x4cfd7c[_0x4cfd7c[_0x279361(0x313)]=0x3a9a]=_0x279361(0x313),_0x4cfd7c[_0x4cfd7c['REDEMPTION_CODE_FULLY_REDEEMED']=0x3a9b]=_0x279361(0x239),_0x4cfd7c[_0x4cfd7c[_0x279361(0x31f)]=0x3a9c]=_0x279361(0x31f),_0x4cfd7c[_0x4cfd7c[_0x279361(0x240)]=0x3a9d]=_0x279361(0x240),_0x4cfd7c[_0x4cfd7c['REDEMPTION_USER_REDEEM_TIMES_EXCEED']=0x3a9e]=_0x279361(0x176),_0x4cfd7c[_0x4cfd7c['REDEMPTION_CODE_HAS_BEEN_CREATED']=0x3a9f]='REDEMPTION_CODE_HAS_BEEN_CREATED',_0x4cfd7c[_0x4cfd7c['UNRECOGNIZED']=-0x1]=_0x279361(0x247),_0x4cfd7c))(Q||{});function gn(_0x2585ec){const _0x4da53f=_0x279361;var _0x2e7387,_0x10e1d8;const _0x149e70=(_0x2e7387=_0x2585ec[_0x4da53f(0x25c)])==null?void 0x0:_0x2e7387[_0x4da53f(0x210)],_0x24bf2e=((_0x10e1d8=_0x2585ec[_0x4da53f(0x25c)])==null?void 0x0:_0x10e1d8[_0x4da53f(0x222)])||0x0;return _0x149e70===_0x16e445[_0x4da53f(0x2b5)]&&_0x24bf2e>0x0;}function vn(_0x497a3d){const _0x3381c5=_0x279361;return _0x497a3d['functionsExecutedState']===_0x24f9e0[_0x3381c5(0x183)];}var En=Object[_0x279361(0x1ec)],pn=(_0x2f2ada,_0x5efd40,_0x4cdfa7,_0x5f1afd)=>{const _0x491585=_0x279361;for(var _0x13f532=_0x5f1afd>0x1?void 0x0:_0x5f1afd?En(_0x5efd40,_0x4cdfa7):_0x5efd40,_0x44edce=_0x2f2ada[_0x491585(0x35e)]-0x1,_0x1fa41e;_0x44edce>=0x0;_0x44edce--)(_0x1fa41e=_0x2f2ada[_0x44edce])&&(_0x13f532=_0x1fa41e(_0x13f532)||_0x13f532);return _0x13f532;},w=(_0x47954e,_0x3aea54)=>(_0x50f857,_0x42578b)=>_0x3aea54(_0x50f857,_0x42578b,_0x47954e);function _0x46ed(){const _0x4d560a=['some','url(#on-line-icon_clip0_910_349)','href','makeDirty','collabCursorState$','replaceState','getViewport','MOBILE_VERIFY_CODE_MISMATCH','TEXT','hasOwnProperty','_hovered','transformRemoteChangeset','isEditing','textRanges','1740582yEFbtT','#FFF','_updateLocalCursor','_handleLeaveEvent','collabStatus.synced','_logService','body','call','_maxFormulaLimit','NOT_COLLAB','blue.400','PENDING','_docTransformSelectionsService','dispose','application/json','next','collab-client.tooltip.reconnect','_config','clearInterval','_sheetSkeletonManagerService','unsubscribe','svg','_startSheetCollabCursor','getOwnPropertyDescriptor','_selfUnitIDs','bottom','4964460JNQScW','_memberService','getSkeleton','getUnit','APPLY_NON_SEQUENTIAL_REVISION','getformulaLimitStatusUrl','createInstance','subscribe','beforeCommandExecuted','_labelPosition','ENTITLE_NEED_BILLING_ADDRESS','sheetID','transformIMECache','collabStatus.offline','collab-text-anchor-','_drawRectRange','entries','_draw','selection','releaseFormulaLimitUrl','_getScale','ENTITLE_CAN_NOT_BUY_LOWER_OTP','UniverIcon','_transformUndoRedoStack','_initResize','_send','getRenderById','DeleteRangeMoveLeftCommandId','CURRENT_STATUS_CANNOT_OPERATE','_getSaveTimeout','symbol','text','_toggleOnline','stage','getOwnPropertySymbols','collab-rect-range-','_taskIds','NO_OTHER_CLIENTS_EDITING','_name','children','stringify','ENTITLE_REPORT_LIMIT_EXCEED','undoState','sessionStatus$','error','clearTimeout','_onCursorDelete','exhaustSavingTask','_themeService','_scene','executionId','totalFormulasToCalculate','subUnitId','_unitOnClients','get','_cursor','getDocRanges','getUnitId','_roomMembers$','_drawTextRange','div','REDEMPTION_INVALID_CODE','_imageIoService','_showGuardMessage','getUniverSheetInstance','_render','roomMembers','_commandService','_cursors','CHANGESET_REVISION_CONFILICT','parseInt','1158434vYRqRF','min','collabStatus.notCollab','REDEMPTION_CODE_FULLY_REDEEMED','from','http://www.w3.org/2000/svg','removeParam','defs','_getSessionTicket','_shapes','REDEMPTION_USER_NOT_ELIGIBLE','_entityInit$','getParam','_releaseCalculationLimit','values','_ensureSubject','push','UNRECOGNIZED','USER_IS_ANONYMOUS','green.600','7QQIEhA','addClipboardHook','onStarting','setTimeout','startsWith','NOT_FOUND','delete','evenodd','_saveCache','loadOfflineData','on-line-icon','_setupBeforeClosingHandler','findNodePositionByCharIndex','ERROR_AGAIN','onCommandExecuted','toString','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','concat','stageInfo','_unitStatus','transformByState','/universer-api/license/formula/limit/status','white','tag','complete','getValue','_online','_setFormulaLimitStatus','_cachedData','UNDEFINED','onTransformChange$','CLOSE_ROOM','96569JpfhAS','LICENSE_EXPORT_SIZE_EXCEEDED','UNIVER_SHEET','fillRule','className','_localeService','ENTITLE_DUP_SUBSCRIPTION','M0\x200H16V16H0z','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_refRangeService','_initDependencies','_init','_univerInstanceService','_notificationService','string','Failed','ENSURE_SNAPSHOT_EXECUTION','registerBeforeClose','endColumn','CONNECTOR_DATA_TOO_LARGE','jiqing.500','SOCKET_FAILED','setShapeProps','includes','getConfig','getRelativeToViewportCoord','currentSkeleton$','disposeWithMe','/run/','_urlService','WECHAT_HAS_BEEN_BOUND','_anchor','data','searchParams','InsertRangeMoveRightCommandId','MOBILE_HAS_BEEN_BOUND','_session','colorChannel1','_checkAndWaitForCalculationPermission','ranges','on-line-icon_clip0_910_349','_collabSessionService','YUUMI_NO_CUBOID_FOR_QUESTION','selections','getMember','type','indexOf','limitInfo','width','Unknown\x20user','onPointerLeave$','random','APPLY_PERMISSION_DENIED','_heartbeatTimer','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','YUUMI_AI_RUN_FAILED','collaboration.closeRoom','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','hovered','_httpService','shift','_eventUnsubscribe','getCurrentSelections','location','FromArray','doc.mutation.rich-text-editing','_collaborationController','_status$','Loading','contains','_doCreateSocket','round','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','addEventListener','subscribeEvent','START_CALCULATION','ticket','_id','moveTo','registerRenderModule','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','0\x200\x2016\x2016','setInterval','PERMISSION_DENIED','range','getUndoRedoMutationParamsCache','idSuffix','defIds','collabStatus.conflict','setItem','assign','registerRefRange','saveImage','redoState','UPDATE_CURSOR','_startCalculationLimit','INVITE_CODE_HAS_BEEN_UES','row','_beforeCloseService','_getFormulaLimitStatus','TOO_MANY_REQUESTS','drawWith','m1Prime','endRow','DeleteRangeMoveUpCommandId','event$','xlink:href','univer-mr-2\x20univer-flex\x20univer-text-xl','_anchorDot','max','onLocalMutation','_range','sessionTicket','memberID','_startDocCollabCursor','2nYluVR','_revisionService','height','_lastPointer','storage','syncEditingCollabCursor','LICENSE_DISTRO_REJECTED','JOIN_ROOM_FAILED','_renderManagerService','post','_initStatusComponent','unload','getCollabEntity$','unitID','transformMutationsWithChangeset','_transformHistoryAndStateStack','assignAColorForMemberID','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','AWAITING_WITH_PENDING','runOnServer','trim','YUUMI_ALL_TABLES_IS_INVALID','_context','getSheetBySheetId','debug','APPLY_DUPLICATED','toRgbString','SNAPSHOT_INVALID_SNAPSHOT','invokeId','cursorInfo','_clearPolling','_handleHeartbeatEvent','collaboration-client-ui.config','_createSocketURL','parse','rgba(255,\x20255,\x20255,\x200.01)','save','CONFLICT','roomMembers$','Success','RemoveRowCommandId','getRangePointData','newValue','fill','_scheduleHeartbeat','session.connection-failed','permission.content','flatMap','executeCommand','has','restore','startRow','_syncEditingCollabCursorService','setActiveRange','REDEMPTION_CODE_INACTIVE','color','addHandlerCallback','find','ACTIVE_UNIT_EVENT_CHANNEL','startFormulaLimitUrl','YUUMI_SUBSCRIPTION_NOT_FOUND','YUUMI_RATE_OVER_LIMIT','_injector','_removeCollabCursors','8aZvhTA','ALREADY_EXISTS','REDEMPTION_CODE_NOT_STARTED','transform','history','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','eventID','replace','_collaborationUIEventService','search','SNAPSHOT_HAS_BEEN_REMOVED','_checkCalculationAvailable','split','setUndoRedoMutationParamsCache','2540lxFTSQ','_instanceService','_updateSubUnitFromURLParams','getColorFromTheme','getItem','_handleEvent','INVITE_CODE_ALREADY_BOUND','...','_setupSubUnitSync','_handleJoinEvent','1em','popstate','dispose$','YUUMI_CONNECTOR_URL_NOT_FOUND','OTHER_CLIENT_EDITING','onMouseMove','_scheduleClearOtherTimer','getCurrentRevOfUnit','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','saveTaskMap','_docSkeleton','_hover','_docTransformIMECacheService','getCurrent','with','mutations','getActiveRange','formula.calculation.started','_dataLoaderService','_hasFormulaInDirtyRanges','ENTITLE_CHAT_LIMIT_EXCEED','updateOfflineData','override','getCellPositionByOffset','pipe','asObservable','_initCommandExecutedListener','_colorAssignService','activeSheet$','4957736FzeCrw','startColumn','univerjs-icon\x20univerjs-icon-','_applyCommand','_onCursorUpdate','set','LOGIN_TOKEN_PROCESSING_FAILED','_toggleOffline','init','_uiPartsService','top','LOGIN_FAILED','length','EMAIL_HAS_BEEN_BOUND','hide','extend','all','getActiveSheet','fillStyle','column','_scheduleSaving','_drawAnchor','pushState','lineTo','beginPath','_transformPreviousActiveRange','USER_NOT_INVITED_CODE','collab-text-range-','HEADER_MENU','getCellMatrix','_color','name','_collabCursorState$','unshift','_colorIndex','_handleHover','displayName','runId','onRendered','font','_initStatusListener','subunit','purple.300','_saveTaskMap','APPLY_REJECT','INVITE_CODE_REQUIRED','getMergeData','collabStatus.fetchMiss','now','RECT','INTERNAL_ERROR','getUnhiddenWorksheets','_messageService','getMemberID','MoveRangeCommandId','arc','createSocket','getCollabCursors$','currentTheme$','_disabled','isActive','11985003NoYWod','getSheetId','measureText','unitId','params','icon','reconnect','_document','[RemoteUniscriptService]:\x20no\x20focused\x20unit','USER_NOT_FOUND','_getSheetObject','Warning','getVpScrollXYInfoByPosToVp','_registerDependencies','UNIVER_DOC','0\x200\x2017\x2016','unit','send','onPointerMove$','_localCacheService','dirtyRanges','setAlpha','collabStatus.syncing','uni.network.url-service','loadUnit','requireSession','_localStorageService','transformStateCache','_textBubble','addObjects','setStateCache','2244789jBjkEv','getStateCache','code','function','whenReady','onPointerEnter$','attrs','replaceDocRanges','_registerRenderDependencies','actions','UNAUTHENTICATED','AUTHORIZE_CODE_ILLEGAL','OnLineIcon','add','map','LICENSE_IMPORT_SIZE_EXCEEDED','off-line-icon_clip0_910_343','AWAITING','_docSkeletonManagerService','path','COMPLETION_FINISHED','_entities','_initEntityListener','_lastResponseTimestamp','addObject','YUUMI_ASYNCIO_CANCELLED','REDEMPTION_USER_REDEEM_TIMES_EXCEED','closePath','?taskId=','_updateCollabCursors','InsertColCommandId','getTypeOfUnitDisposed$','_cursorShapes','isArray','setParam','deepClone','yellow.400','currentColor','_backgroundColor','SUCCESS','status$','_hideTimer','_docSyncEditingCollabCursorService','/universer-api/license/formula/limit/done','_initCommandInterceptor','pluginName','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','disableLocalCache','getCurrentUnitForType','getTypeOfUnitAdded$','_updateURLWithCurrentState','InsertRangeMoveDownCommandId','fillText','getUnitStatus$','_transformService','setConfig','EMAIL_VERIFY_CODE_MISMATCH','_cursorInfo$','USERS_LEAVE','backgroundColor','_refreshCollabCursors','key','INVALID_INVITE_CODE','VIEW_MAIN','_clearOtherTimers','_getAnchorBounding','then','_configService','propertyIsEnumerable','_docTransformStateCacheService','imageSourceType','black','transformSelections','_docStateChangeManagerService','forEach','_pollingInterval','_assignedColors','_docClipboardService','Error','INVALID_ARGUMENT','collaboration-client.offline-data-not-saved','LICENSE_MAX_UNITS_EXCEEDED','_onRefRangeChange','saveOfflineData','urlChange$','_collabCursorController','m2Prime','PAYMENT_CHANNEL_NOT_SUPPORT','show','defineProperty','result','apply','enableLocalCache','_removeClearOtherTimer','clipPath','session.collaboration-timeout','transformMutation','_currentUsage','cursorInfo$','_getMergeRange','getAncestorScale','OTHER_CLIENTS_EDITING','getFocusedUnit','MUTATION','size','/universer-api/license/formula/limit/start','ONLINE'];_0x46ed=function(){return _0x4d560a;};return _0x46ed();}const On=_0x279361(0x25f),Tn=_0x279361(0x1c5),Cn=_0x279361(0x187);let fe=class extends _0x2972bb{constructor(_0x28e513,_0x5ddbba,_0x14afc3,_0x523655,_0x5d3ca7,_0x144744,_0x598a7a){const _0x33d4a1=_0x279361;super(),_(this,'_pollingInterval',null),_(this,'_maxFormulaLimit',0x0),_(this,_0x33d4a1(0x1bd),0x0),_(this,_0x33d4a1(0x213),[]),_(this,'_lastResponseTimestamp',0x0),(this[_0x33d4a1(0x386)]=_0x28e513,this[_0x33d4a1(0x232)]=_0x5ddbba,this['_configService']=_0x14afc3,this[_0x33d4a1(0x2a5)]=_0x523655,this[_0x33d4a1(0x276)]=_0x5d3ca7,this[_0x33d4a1(0x1da)]=_0x144744,this['_localeService']=_0x598a7a,this[_0x33d4a1(0x188)]());}[_0x279361(0x188)](){const _0x5c5897=_0x279361;this['disposeWithMe'](this['_commandService'][_0x5c5897(0x1f7)]((_0x17f686,_0x2f8c7b)=>{const _0x1e54f6=_0x5c5897;if(_0x17f686['id']!==_0x45c15a['id'])return;const _0xa4a8ce=_0x17f686[_0x1e54f6(0x141)];if(!this['_hasFormulaInDirtyRanges'](_0xa4a8ce[_0x1e54f6(0x151)]))return;if(!this[_0x1e54f6(0x328)]())throw this[_0x1e54f6(0x290)](_0x17f686,_0x2f8c7b),this['_showGuardMessage'](),new _0x4ccc82();})),this[_0x5c5897(0x285)](this[_0x5c5897(0x232)]['onCommandExecuted']((_0x4c0cdc,_0x49587c)=>{const _0x48a21e=_0x5c5897;if(_0x4c0cdc['id']!==_0x49e7c7['id'])return;const _0x57da47=_0x4c0cdc[_0x48a21e(0x141)];if(gn(_0x57da47)){const _0x18beaf=_0x1667d1();this[_0x48a21e(0x213)][_0x48a21e(0x246)](_0x18beaf),this['_startCalculationLimit'](_0x18beaf);}else{if(vn(_0x57da47)&&this[_0x48a21e(0x213)][_0x48a21e(0x35e)]>0x0){const _0xfab00e=this[_0x48a21e(0x213)][_0x48a21e(0x2a6)]();this[_0x48a21e(0x243)](_0xfab00e);}}}));}[_0x279361(0x1e2)](){const _0x31d3f5=_0x279361;super[_0x31d3f5(0x1e2)](),this[_0x31d3f5(0x2fb)](),this[_0x31d3f5(0x213)]=[],this[_0x31d3f5(0x1bd)]=0x0,this[_0x31d3f5(0x1dd)]=0x0,this[_0x31d3f5(0x173)]=0x0;}async['_checkAndWaitForCalculationPermission'](_0x1c4f0d,_0x39db12){const _0x2c3a86=_0x279361;for(let _0x3059cb=0x0;_0x3059cb<0x1e;_0x3059cb++)try{if(await this[_0x2c3a86(0x2cd)](),this[_0x2c3a86(0x328)]()){this[_0x2c3a86(0x355)](_0x1c4f0d,_0x39db12),this[_0x2c3a86(0x386)]['show']({'content':this[_0x2c3a86(0x26f)]['t'](_0x2c3a86(0x346)),'type':_0x41554e[_0x2c3a86(0x304)]});return;}await new Promise(_0x2c4462=>{const _0x4e2ff0=_0x2c3a86;this[_0x4e2ff0(0x1a7)]=window[_0x4e2ff0(0x24d)](_0x2c4462,0x3e8);});}catch(_0xe9dee0){this[_0x2c3a86(0x1da)]['error'](_0xe9dee0);}this[_0x2c3a86(0x386)][_0x2c3a86(0x1b4)]({'content':this[_0x2c3a86(0x26f)]['t']('formula.calculation.unable'),'type':_0x41554e[_0x2c3a86(0x1aa)]});}[_0x279361(0x355)](_0x1b6405,_0x5cb7ff){const _0x59f949=_0x279361;try{this[_0x59f949(0x232)][_0x59f949(0x30d)](_0x1b6405['id'],_0x1b6405[_0x59f949(0x141)],_0x5cb7ff);}catch(_0xca159f){this[_0x59f949(0x1da)][_0x59f949(0x21b)](_0xca159f);}}[_0x279361(0x265)](_0x382217,_0x841bf0){const _0x5d45c8=_0x279361;_0x841bf0<this['_lastResponseTimestamp']||(this['_lastResponseTimestamp']=_0x841bf0,this[_0x5d45c8(0x1dd)]=Number['parseInt'](_0x382217['maxFormulaLimit']),this[_0x5d45c8(0x1bd)]=Number[_0x5d45c8(0x235)](_0x382217['currentUsage']));}async[_0x279361(0x2c9)](_0x1f1bfd){const _0x344a91=_0x279361;var _0x42935b,_0x321efc;const _0x263817=Date[_0x344a91(0x382)]();try{const _0x395008=((_0x42935b=this['_configService'][_0x344a91(0x282)](_0x15a639))==null?void 0x0:_0x42935b[_0x344a91(0x318)])||Tn,_0x5a643b=(await this[_0x344a91(0x2a5)][_0x344a91(0x2e6)](_0x395008,{'body':JSON[_0x344a91(0x217)]({'taskId':_0x1f1bfd})}))[_0x344a91(0x1db)];if(((_0x321efc=_0x5a643b['error'])==null?void 0x0:_0x321efc[_0x344a91(0x15e)])!==Q['OK'])return;this[_0x344a91(0x265)](_0x5a643b[_0x344a91(0x299)],_0x263817);}catch(_0x2a70a9){this[_0x344a91(0x1da)]['error'](_0x2a70a9);}}async[_0x279361(0x2cd)](_0x29990d){const _0x5d6e50=_0x279361;var _0x3cff26,_0x5e5004;const _0x2389a6=Date[_0x5d6e50(0x382)]();try{const _0x3f52fc=((_0x3cff26=this[_0x5d6e50(0x19f)][_0x5d6e50(0x282)](_0x15a639))==null?void 0x0:_0x3cff26[_0x5d6e50(0x1f4)])||On,_0x369956=_0x29990d?_0x3f52fc+_0x5d6e50(0x178)+encodeURIComponent(_0x29990d):_0x3f52fc,_0x528d96=(await this['_httpService'][_0x5d6e50(0x225)](_0x369956))['body'];if(((_0x5e5004=_0x528d96['error'])==null?void 0x0:_0x5e5004[_0x5d6e50(0x15e)])!==Q['OK'])return;this[_0x5d6e50(0x265)](_0x528d96[_0x5d6e50(0x299)],_0x2389a6);}catch(_0x31b380){this[_0x5d6e50(0x1da)][_0x5d6e50(0x21b)](_0x31b380);}}async[_0x279361(0x243)](_0x38f62a){const _0x15e711=_0x279361;var _0x54b389,_0x25a6d2;const _0x1b3705=Date['now']();try{const _0x3891ff=((_0x54b389=this[_0x15e711(0x19f)]['getConfig'](_0x15a639))==null?void 0x0:_0x54b389[_0x15e711(0x202)])||Cn,_0x29505d=(await this[_0x15e711(0x2a5)][_0x15e711(0x2e6)](_0x3891ff,{'body':JSON['stringify']({'taskId':_0x38f62a})}))[_0x15e711(0x1db)];if(((_0x25a6d2=_0x29505d[_0x15e711(0x21b)])==null?void 0x0:_0x25a6d2['code'])!==Q['OK'])return;this[_0x15e711(0x265)](_0x29505d[_0x15e711(0x299)],_0x1b3705);}catch(_0x2fc2b4){this[_0x15e711(0x1da)][_0x15e711(0x21b)](_0x2fc2b4);}}['_checkCalculationAvailable'](){const _0x24cc88=_0x279361;return this['_maxFormulaLimit']===0x0?!0x0:this[_0x24cc88(0x1dd)]-this[_0x24cc88(0x1bd)]>0x0;}[_0x279361(0x2fb)](){const _0x15829e=_0x279361;this[_0x15829e(0x1a7)]&&(clearTimeout(this[_0x15829e(0x1a7)]),this[_0x15829e(0x1a7)]=null);}[_0x279361(0x22e)](){const _0x11990d=_0x279361;this['_messageService']['show']({'content':this['_localeService']['t']('formula.calculation.waiting'),'type':_0x41554e[_0x11990d(0x2ae)]});}[_0x279361(0x348)](_0x1ed21d){const _0x56643a=_0x279361;for(const _0x3b1c5e of _0x1ed21d){const {unitId:_0x51bfc8,sheetId:_0x1a1aff,range:_0x33e84f}=_0x3b1c5e,_0x338376=this[_0x56643a(0x276)][_0x56643a(0x1f2)](_0x51bfc8);if(!_0x338376)continue;const _0x3ec094=_0x338376['getSheetBySheetId'](_0x1a1aff);if(!_0x3ec094)continue;const _0x4da635=_0x3ec094[_0x56643a(0x36f)]();for(let _0x2af0e8=_0x33e84f['startRow'];_0x2af0e8<=_0x33e84f[_0x56643a(0x2d1)];_0x2af0e8++)for(let _0x148dac=_0x33e84f[_0x56643a(0x353)];_0x148dac<=_0x33e84f[_0x56643a(0x27c)];_0x148dac++){const _0x59c561=_0x4da635[_0x56643a(0x263)](_0x2af0e8,_0x148dac);if(_0x59c561&&(_0x54db1c(_0x59c561['f'])||_0x320189(_0x59c561['si'])))return!0x0;}}return!0x1;}};fe=pn([w(0x0,_0x349554(_0x382ae3)),w(0x1,_0x28d9e9),w(0x2,_0x3b186e),w(0x3,_0x349554(_0x4be316)),w(0x4,_0x56b693),w(0x5,_0x525e85),w(0x6,_0x349554(_0x5852b4))],fe);var Rn=Object[_0x279361(0x1ec)],Dn=(_0x346234,_0x5c3766,_0x30152b,_0x2966f5)=>{const _0x25fc6c=_0x279361;for(var _0x539985=_0x2966f5>0x1?void 0x0:_0x2966f5?Rn(_0x5c3766,_0x30152b):_0x5c3766,_0x3c7eb7=_0x346234[_0x25fc6c(0x35e)]-0x1,_0x226ae5;_0x3c7eb7>=0x0;_0x3c7eb7--)(_0x226ae5=_0x346234[_0x3c7eb7])&&(_0x539985=_0x226ae5(_0x539985)||_0x539985);return _0x539985;},be=(_0x5740ef,_0x1c232a)=>(_0x3d648d,_0x4a3a88)=>_0x1c232a(_0x3d648d,_0x4a3a88,_0x5740ef);let Be=class extends _0x2972bb{constructor(_0x1bc43a,_0x17ad62,_0x1e852a){const _0x1c3e48=_0x279361;super(),_(this,'_cachedData',new Map()),_(this,_0x1c3e48(0x37d),new Map()),_(this,_0x1c3e48(0x13b),!0x1),(this['_configService']=_0x1bc43a,this['_localStorageService']=_0x17ad62,this[_0x1c3e48(0x2de)]=_0x1e852a);}[_0x279361(0x18b)](){const _0x416014=_0x279361;this[_0x416014(0x13b)]=!0x0;}[_0x279361(0x1b8)](){const _0x4935c4=_0x279361;this[_0x4935c4(0x13b)]=!0x1;}get['saveTaskMap'](){return this['_saveTaskMap'];}[_0x279361(0x1e2)](){const _0x48584e=_0x279361;this[_0x48584e(0x21e)]()[_0x48584e(0x19e)](()=>super[_0x48584e(0x1e2)]());}async[_0x279361(0x253)](_0x2b47a9){const _0x55f304=_0x279361;return this['_disabled']?null:this[_0x55f304(0x157)][_0x55f304(0x32f)](_0x5e73e3(_0x2b47a9));}async[_0x279361(0x1af)](_0x3588c5,_0x4a686c){const _0xeb4224=_0x279361;return!!this[_0xeb4224(0x157)]['setItem'](_0x3588c5,_0x4a686c);}[_0x279361(0x34a)](_0x4d10d9,_0x18e2a9,_0x3d1a4b,_0x96f646){const _0x338a55=_0x279361,_0x3e5305=this[_0x338a55(0x2de)][_0x338a55(0x33c)](_0x4d10d9);this[_0x338a55(0x266)][_0x338a55(0x357)](_0x4d10d9,{'unitID':_0x4d10d9,'type':_0x18e2a9,'awaitingChangeset':_0x3d1a4b,'mutations':_0x96f646,'rev':_0x3e5305}),this[_0x338a55(0x37d)][_0x338a55(0x30e)](_0x4d10d9)||this['_scheduleSaving'](_0x4d10d9);}[_0x279361(0x366)](_0x359743){const _0x1160e8=_0x279361,_0x425c94=this[_0x1160e8(0x20c)]();_0x425c94===0x0?this[_0x1160e8(0x252)](_0x359743):this[_0x1160e8(0x37d)][_0x1160e8(0x357)](_0x359743,setTimeout(()=>this[_0x1160e8(0x252)](_0x359743),_0x425c94));}['_getSaveTimeout'](){const _0x4aed92=_0x279361;var _0x1be355;return(_0x1be355=this[_0x4aed92(0x19f)][_0x4aed92(0x282)](_0x451d1f))!=null?_0x1be355:_0x4b0503;}[_0x279361(0x252)](_0x22d965){const _0x59e6db=_0x279361,_0x3be692=this['_saveTaskMap'][_0x59e6db(0x225)](_0x22d965);return _0x3be692!==void 0x0&&window[_0x59e6db(0x21c)](_0x3be692),this[_0x59e6db(0x157)]['setItem'](_0x5e73e3(_0x22d965),this['_cachedData']['get'](_0x22d965))[_0x59e6db(0x19e)](()=>this[_0x59e6db(0x37d)][_0x59e6db(0x250)](_0x22d965));}async['exhaustSavingTask'](){const _0x3ee0c0=_0x279361,_0x50b35f=[];this[_0x3ee0c0(0x37d)][_0x3ee0c0(0x1a6)]((_0xbda23f,_0x11440f)=>{const _0x2b4b56=_0x3ee0c0;window[_0x2b4b56(0x21c)](_0xbda23f),_0x50b35f[_0x2b4b56(0x246)](this[_0x2b4b56(0x252)](_0x11440f)[_0x2b4b56(0x19e)](()=>{const _0x550fe3=_0x2b4b56;this[_0x550fe3(0x37d)][_0x550fe3(0x250)](_0x11440f);}));}),await Promise[_0x3ee0c0(0x362)](_0x50b35f);}};Be=Dn([be(0x0,_0x3b186e),be(0x1,_0x47a719),be(0x2,_0x349554(_0x2816b1))],Be);class bn extends _0x46d041{constructor(){const _0xc15ba=_0x279361;super(),_(this,_0xc15ba(0x1b0)),this['urlChange$']=_0x175217(window,_0xc15ba(0x336))[_0xc15ba(0x34d)](_0x1f12e2(this[_0xc15ba(0x337)]),_0x2aeefc(0x1),_0x2fd631(void 0x0));}[_0x279361(0x17e)](_0x2f54e5,_0x4d1827,_0x4b3b30=!0x1){const _0x4378a7=_0x279361,_0x5e56d1=new URL(window[_0x4378a7(0x2a9)][_0x4378a7(0x1c9)]);_0x5e56d1[_0x4378a7(0x28b)][_0x4378a7(0x357)](_0x2f54e5,_0x4d1827),_0x4b3b30?window[_0x4378a7(0x321)][_0x4378a7(0x1cc)]('','',_0x5e56d1['toString']()):window[_0x4378a7(0x321)][_0x4378a7(0x368)]('','',_0x5e56d1[_0x4378a7(0x259)]());}[_0x279361(0x23c)](_0xb91617,_0x26b4d9=!0x1){const _0x387cc3=_0x279361,_0x1a158a=new URL(window['location'][_0x387cc3(0x1c9)]);_0x1a158a[_0x387cc3(0x28b)][_0x387cc3(0x250)](_0xb91617),_0x26b4d9?window['history']['replaceState']('','',_0x1a158a['toString']()):window[_0x387cc3(0x321)]['pushState']('','',_0x1a158a[_0x387cc3(0x259)]());}[_0x279361(0x242)](_0x5734f6){const _0x65368b=_0x279361;var _0x1ef7c5;return(_0x1ef7c5=new URL(window[_0x65368b(0x2a9)][_0x65368b(0x1c9)])[_0x65368b(0x28b)][_0x65368b(0x225)](_0x5734f6))!=null?_0x1ef7c5:void 0x0;}}var Nn=Object[_0x279361(0x1b5)],Un=Object[_0x279361(0x1ec)],Ln=(_0x26f1fd,_0x2497ba,_0x321de3)=>_0x2497ba in _0x26f1fd?Nn(_0x26f1fd,_0x2497ba,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x321de3}):_0x26f1fd[_0x2497ba]=_0x321de3,Mn=(_0x52cd55,_0x28f3ca,_0x3f1d07,_0x575265)=>{for(var _0xc78917=_0x575265>0x1?void 0x0:_0x575265?Un(_0x28f3ca,_0x3f1d07):_0x28f3ca,_0x2c6d99=_0x52cd55['length']-0x1,_0xb3d91f;_0x2c6d99>=0x0;_0x2c6d99--)(_0xb3d91f=_0x52cd55[_0x2c6d99])&&(_0xc78917=_0xb3d91f(_0xc78917)||_0xc78917);return _0xc78917;},Ne=(_0x10ec78,_0x228cb7)=>(_0x133cc7,_0x52b481)=>_0x228cb7(_0x133cc7,_0x52b481,_0x10ec78),An=(_0x24d028,_0x19221e,_0x51e1be)=>Ln(_0x24d028,_0x19221e+'',_0x51e1be);const Pn=_0x279361(0x2b2);let Fe=class extends _0x565e94{constructor(_0x3589da=at,_0x41ccdf,_0x4a860d,_0x38ac9e){const _0x4d7ef0=_0x279361;super(),this[_0x4d7ef0(0x1e6)]=_0x3589da,this[_0x4d7ef0(0x2e5)]=_0x41ccdf,this[_0x4d7ef0(0x31b)]=_0x4a860d,this[_0x4d7ef0(0x19f)]=_0x38ac9e;const {..._0x30cb1a}=_0x206c2b({},at,this[_0x4d7ef0(0x1e6)]);this[_0x4d7ef0(0x19f)][_0x4d7ef0(0x193)](ln,_0x30cb1a);}[_0x279361(0x24c)](){this['_registerDependencies'](),this['_initDependencies']();}[_0x279361(0x378)](){const _0x2d78ef=_0x279361;this[_0x2d78ef(0x164)]();}[_0x279361(0x14a)](){const _0x58bc04=_0x279361;var _0x13735d;const _0x328535=[[Ge],[fe],[ue],[_e],[he],[Ke],[Pt,{'useClass':bn}],[_0x4665df,{'useClass':_0x113f5a}],[_0x3b29b1,{'useClass':Be}],[ae],[de],[le],[Y],[Pe],[ce]];_0x1c6e38(this[_0x58bc04(0x31b)],_0x274243(_0x328535,(_0x13735d=this[_0x58bc04(0x1e6)])==null?void 0x0:_0x13735d[_0x58bc04(0x34b)]));}[_0x279361(0x164)](){const _0x2e92d2=_0x279361;this[_0x2e92d2(0x285)](this['_renderManagerService'][_0x2e92d2(0x2b9)](_0x3d4c4a['UNIVER_DOC'],[$e])),this['disposeWithMe'](this[_0x2e92d2(0x2e5)]['registerRenderModule'](_0x3d4c4a[_0x2e92d2(0x26c)],[xe]));}[_0x279361(0x274)](){const _0x53fae4=_0x279361;_0x5a0569(this[_0x53fae4(0x31b)],[[Y],[ae],[de],[le],[ce],[fe]]);}};An(Fe,_0x279361(0x189),Pn),Fe=Mn([_0x23c35b(_0x3a6051),Ne(0x1,_0x3bda3f),Ne(0x2,_0x349554(_0x543124)),Ne(0x3,_0x3b186e)],Fe);var wn=Object[_0x279361(0x1ec)],yn=(_0xf9d391,_0x52fb8b,_0x3357ee,_0x4f9388)=>{for(var _0x34d8b3=_0x4f9388>0x1?void 0x0:_0x4f9388?wn(_0x52fb8b,_0x3357ee):_0x52fb8b,_0xb3c42b=_0xf9d391['length']-0x1,_0x4fcc07;_0xb3c42b>=0x0;_0xb3c42b--)(_0x4fcc07=_0xf9d391[_0xb3c42b])&&(_0x34d8b3=_0x4fcc07(_0x34d8b3)||_0x34d8b3);return _0x34d8b3;},Z=(_0x4f4ed1,_0x555b7a)=>(_0x6a1c94,_0x2c357f)=>_0x555b7a(_0x6a1c94,_0x2c357f,_0x4f4ed1);let _t=class extends _0x26a376{constructor(_0x13ecd2,_0x5e5fd1,_0x146576,_0x52b21e,_0x2b35c7){super(_0x13ecd2,_0x5e5fd1,_0x146576,_0x52b21e,_0x2b35c7);}async[_0x279361(0x38a)](_0x281693){const _0x4e5f44=_0x279361,_0x4d2d06=await this[_0x4e5f44(0x23e)](),_0x52de02=this[_0x4e5f44(0x2fe)](_0x281693,_0x4d2d06);return this[_0x4e5f44(0x2b0)](_0x52de02);}[_0x279361(0x2fe)](_0x2dad1d,_0x3e272a){const _0x4dc45f=_0x279361,_0x262ce6=typeof window>'u'?new URL(_0x2dad1d):new URL(_0x2dad1d,window[_0x4dc45f(0x2a9)]['origin']);_0x262ce6[_0x4dc45f(0x28b)][_0x4dc45f(0x357)](_0x4dc45f(0x2da),_0x3e272a);const _0x323105=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x4dc45f(0x2a9)][_0x4dc45f(0x326)]);return _0x323105[_0x4dc45f(0x225)](_0x4dc45f(0x377))&&_0x262ce6[_0x4dc45f(0x28b)][_0x4dc45f(0x357)]('runId',_0x323105[_0x4dc45f(0x225)](_0x4dc45f(0x377))),_0x262ce6['toString']();}async[_0x279361(0x23e)](){const _0x8d36b0=_0x279361;var _0x2277c5,_0x5368e0,_0x3960d7;const _0x29e85f=this[_0x8d36b0(0x19f)]['getConfig'](_0x15a639),_0x2dad8d=(_0x2277c5=_0x29e85f==null?void 0x0:_0x29e85f['wsSessionTicketUrl'])!=null?_0x2277c5:_0x5705fa;return(_0x3960d7=(_0x5368e0=(await this[_0x8d36b0(0x2a5)][_0x8d36b0(0x225)](_0x2dad8d,{'headers':{'Content-Type':_0x8d36b0(0x1e3)}}))['body'])==null?void 0x0:_0x5368e0[_0x8d36b0(0x2b6)])!=null?_0x3960d7:'';}};_t=yn([Z(0x0,_0x349554(_0x543124)),Z(0x1,_0x349554(_0x4be316)),Z(0x2,_0x3b186e),Z(0x3,_0x525e85),Z(0x4,_0x3c8a43)],_t);var $n=Object[_0x279361(0x1ec)],xn=(_0x21b28d,_0x106c60,_0x37dfd3,_0x4003ba)=>{const _0x3adbd0=_0x279361;for(var _0x120023=_0x4003ba>0x1?void 0x0:_0x4003ba?$n(_0x106c60,_0x37dfd3):_0x106c60,_0xac1a82=_0x21b28d[_0x3adbd0(0x35e)]-0x1,_0x32569f;_0xac1a82>=0x0;_0xac1a82--)(_0x32569f=_0x21b28d[_0xac1a82])&&(_0x120023=_0x32569f(_0x120023)||_0x120023);return _0x120023;},Ue=(_0x43eda6,_0x59dcc5)=>(_0x99e3d6,_0x45564b)=>_0x59dcc5(_0x99e3d6,_0x45564b,_0x43eda6);let ht=class extends _0x2972bb{constructor(_0x27347a,_0x13b79b,_0xe1d817){const _0x1bc86c=_0x279361;super(),this[_0x1bc86c(0x32c)]=_0x27347a,this['_httpService']=_0x13b79b,this['_configService']=_0xe1d817;}async[_0x279361(0x2f0)](_0x547a8d,_0x13a05b,_0xd9ad4e,..._0x3d21fa){const _0x33ec94=_0x279361;var _0x49b340,_0x2d882f,_0x24a195,_0x1304fe;const _0x270b59=this['_instanceService']['getFocusedUnit']();if(!_0x270b59)throw new Error(_0x33ec94(0x145));const _0x106a45=((_0x49b340=this[_0x33ec94(0x19f)][_0x33ec94(0x282)](_0x1f2e5e))!=null?_0x49b340:_0x43c7d3)+'/'+_0x547a8d+_0x33ec94(0x286)+_0x13a05b,_0xe662e0=new URL(window['location'][_0x33ec94(0x1c9)]),_0x10b280={'scriptId':_0x547a8d,'runId':(_0x2d882f=_0xe662e0['searchParams']['get']('runId'))!=null?_0x2d882f:'','function':_0x13a05b,'unitId':_0x270b59[_0x33ec94(0x228)](),'argsOfFunction':JSON[_0x33ec94(0x217)](_0x3d21fa),'invokeId':(_0x24a195=_0xd9ad4e[_0x33ec94(0x2f9)])!=null?_0x24a195:'','executionId':(_0x1304fe=_0xd9ad4e[_0x33ec94(0x221)])!=null?_0x1304fe:''};try{const _0x3fa6a5=await this[_0x33ec94(0x2a5)]['post'](_0x106a45,{'body':_0x10b280});return _0x3fa6a5[_0x33ec94(0x1db)][_0x33ec94(0x21b)]&&_0x3fa6a5[_0x33ec94(0x1db)][_0x33ec94(0x21b)][_0x33ec94(0x15e)]!==Q['OK']?_0x33ec94(0x279):_0x3fa6a5[_0x33ec94(0x1db)][_0x33ec94(0x1b6)];}catch{return _0x33ec94(0x279);}}};ht=xn([Ue(0x0,_0x56b693),Ue(0x1,_0x349554(_0x4be316)),Ue(0x2,_0x3b186e)],ht);const ut=0x7530,dt=_0x279361(0x317);class ir extends _0x2972bb{constructor(){const _0x3cdca0=_0x279361;super(),_(this,_0x3cdca0(0x2b7),_0x1667d1()),_(this,_0x3cdca0(0x1ed),new Set()),_(this,_0x3cdca0(0x224),new Map()),_(this,_0x3cdca0(0x29f),null),_(this,_0x3cdca0(0x19c),new Map()),_(this,'_unitStatus',new Map()),this[_0x3cdca0(0x275)]();}[_0x279361(0x1e2)](){const _0x58bd5c=_0x279361;super[_0x58bd5c(0x1e2)](),this[_0x58bd5c(0x19c)][_0x58bd5c(0x1a6)]((_0x2dd197,_0x4fc751)=>this[_0x58bd5c(0x1b9)](_0x4fc751)),this[_0x58bd5c(0x29f)]&&window['clearInterval'](this['_heartbeatTimer']);}[_0x279361(0x191)](_0x2026e5){const _0x207689=_0x279361;return this[_0x207689(0x245)](_0x2026e5)[_0x207689(0x34d)](_0x1fa727());}['editingUnit'](_0x740d3){const _0x248b2a=_0x279361;this[_0x248b2a(0x1ed)][_0x248b2a(0x1c4)]===0x0&&this[_0x248b2a(0x309)](),this[_0x248b2a(0x1ed)]['add'](_0x740d3),this[_0x248b2a(0x208)]({'type':0x0,'memberID':this[_0x248b2a(0x2b7)],'unitIDs':[_0x740d3],'isForwarded':!0x1});}['disposeUnit'](_0x455c6f){const _0x27f93c=_0x279361;this[_0x27f93c(0x1ed)][_0x27f93c(0x250)](_0x455c6f),this['_selfUnitIDs']['size']===0x0&&this[_0x27f93c(0x29f)]&&window[_0x27f93c(0x1e7)](this[_0x27f93c(0x29f)]);}['_init'](){const _0x556087=_0x279361;this[_0x556087(0x285)](_0x9a67c7(_0x175217(window,_0x556087(0x2e1))['subscribe'](_0x52f225=>{const _0x314140=_0x556087;if(_0x52f225[_0x314140(0x199)]!==dt||!_0x52f225[_0x314140(0x307)])return;const _0x52c968=JSON[_0x314140(0x2ff)](_0x52f225[_0x314140(0x307)]);this[_0x314140(0x330)](_0x52c968);}))),window[_0x556087(0x2b3)](_0x556087(0x2e8),()=>this[_0x556087(0x208)]({'type':0x1,'memberID':this[_0x556087(0x2b7)],'unitIDs':Array[_0x556087(0x23a)](this[_0x556087(0x1ed)])}));}[_0x279361(0x330)](_0x45ff37){const _0x4e3851=_0x279361;switch(_0x45ff37[_0x4e3851(0x297)]){case 0x0:this[_0x4e3851(0x334)](_0x45ff37);break;case 0x1:this[_0x4e3851(0x1d8)](_0x45ff37);break;case 0x2:this[_0x4e3851(0x2fc)](_0x45ff37);break;}}[_0x279361(0x334)](_0xaa0abb){const _0xd25f50=_0x279361,{unitIDs:_0x13915d,memberID:_0x5c8293,isForwarded:_0x5db55d}=_0xaa0abb;_0x13915d['forEach'](_0x31fdaf=>{const _0x4e17c1=_0x168c;if(!_0x5db55d&&this[_0x4e17c1(0x224)][_0x4e17c1(0x30e)](_0x31fdaf)&&this[_0x4e17c1(0x245)](_0x31fdaf)[_0x4e17c1(0x1e4)](_0x4fc1d9[_0x4e17c1(0x1c1)]),!this[_0x4e17c1(0x224)][_0x4e17c1(0x30e)](_0x31fdaf)||!this[_0x4e17c1(0x224)]['get'](_0x31fdaf)['has'](_0x5c8293)){const _0x56872c=this[_0x4e17c1(0x224)][_0x4e17c1(0x225)](_0x31fdaf)||new Set();_0x56872c[_0x4e17c1(0x169)](_0x5c8293),this[_0x4e17c1(0x224)][_0x4e17c1(0x357)](_0x31fdaf,_0x56872c),this[_0x4e17c1(0x33b)](_0x5c8293);}}),_0x5db55d||this[_0xd25f50(0x208)]({'type':0x0,'memberID':this[_0xd25f50(0x2b7)],'unitIDs':[...this[_0xd25f50(0x1ed)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x2ebad9){const _0x184085=_0x279361;this['_removeClearOtherTimer'](_0x2ebad9);const _0x14647c=window[_0x184085(0x24d)](()=>{const _0x58a149=_0x184085;this[_0x58a149(0x224)][_0x58a149(0x1a6)](_0x21f5df=>{const _0x58171c=_0x58a149;_0x21f5df[_0x58171c(0x250)](_0x2ebad9);});},ut*0x2);this['_clearOtherTimers'][_0x184085(0x357)](_0x2ebad9,_0x14647c);}[_0x279361(0x1b9)](_0x428053){const _0x47bd42=_0x279361;if(this[_0x47bd42(0x19c)]['has'](_0x428053)){const _0xa7e22=this[_0x47bd42(0x19c)][_0x47bd42(0x225)](_0x428053);_0xa7e22&&window[_0x47bd42(0x21c)](_0xa7e22),this['_clearOtherTimers'][_0x47bd42(0x357)](_0x428053,null);}}[_0x279361(0x1d8)](_0x266a75){const _0x57d5a4=_0x279361,{memberID:_0x5896f6,unitIDs:_0x93b78d}=_0x266a75;_0x93b78d['forEach'](_0x40cc6f=>{const _0x363e3e=_0x168c;var _0x132386;const _0xe9c7b8=this[_0x363e3e(0x224)][_0x363e3e(0x225)](_0x40cc6f);_0xe9c7b8&&(_0xe9c7b8[_0x363e3e(0x250)](_0x5896f6),(_0x132386=this[_0x363e3e(0x245)](_0x40cc6f))==null||_0x132386[_0x363e3e(0x1e4)](_0xe9c7b8[_0x363e3e(0x1c4)]===0x0?_0x4fc1d9[_0x363e3e(0x214)]:_0x4fc1d9[_0x363e3e(0x1c1)]));}),this[_0x57d5a4(0x1b9)](_0x5896f6);}['_handleHeartbeatEvent'](_0x5236ba){const _0x2a8bb6=_0x279361;this[_0x2a8bb6(0x33b)](_0x5236ba[_0x2a8bb6(0x2db)]);}['_send'](_0xe34ece){const _0x3771e9=_0x279361;localStorage[_0x3771e9(0x2c3)](dt,JSON['stringify'](_0xe34ece));}[_0x279361(0x309)](){const _0x1e5d13=_0x279361;this['_heartbeatTimer']=window[_0x1e5d13(0x2bc)](()=>{const _0x4f4836=_0x1e5d13;this['_send']({'type':0x2,'memberID':this[_0x4f4836(0x2b7)]});},ut);}['_ensureSubject'](_0x43547d){const _0x2c3a75=_0x279361;return this[_0x2c3a75(0x25d)]['has'](_0x43547d)||this['_unitStatus']['set'](_0x43547d,new _0x5ccbb2(_0x4fc1d9[_0x2c3a75(0x214)])),this[_0x2c3a75(0x25d)][_0x2c3a75(0x225)](_0x43547d);}}export{_t as BrowserCollaborationSocketService,ce as CollaborationDataLoaderController,ae as DesktopCollaborationStatusDisplayController,Pt as IURLService,ht as RemoteUniscriptService,tn as SheetCollabCursorShape,Fe as UniverCollaborationClientUIPlugin,ir as WebBrowserSingleActiveUnitService,bn as WebURLService};
1
+ const _0x4a1058=_0x4539;(function(_0x59e49d,_0x1bea3b){const _0x26b42c=_0x4539,_0x17148c=_0x59e49d();while(!![]){try{const _0x4e5894=-parseInt(_0x26b42c(0x293))/0x1*(-parseInt(_0x26b42c(0x137))/0x2)+parseInt(_0x26b42c(0xdc))/0x3*(-parseInt(_0x26b42c(0x213))/0x4)+parseInt(_0x26b42c(0x2ca))/0x5+parseInt(_0x26b42c(0xd5))/0x6*(-parseInt(_0x26b42c(0x21f))/0x7)+-parseInt(_0x26b42c(0x294))/0x8+parseInt(_0x26b42c(0x24c))/0x9*(parseInt(_0x26b42c(0x1a3))/0xa)+parseInt(_0x26b42c(0x28c))/0xb*(parseInt(_0x26b42c(0x2b9))/0xc);if(_0x4e5894===_0x1bea3b)break;else _0x17148c['push'](_0x17148c['shift']());}catch(_0x3107c3){_0x17148c['push'](_0x17148c['shift']());}}}(_0x45e8,0x7abfc));var Ft=Object[_0x4a1058(0x150)],kt=(_0x212cd6,_0x50c145,_0x171ace)=>_0x50c145 in _0x212cd6?Ft(_0x212cd6,_0x50c145,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x171ace}):_0x212cd6[_0x50c145]=_0x171ace,l=(_0x4a5bbd,_0x233974,_0x21dcae)=>kt(_0x4a5bbd,typeof _0x233974!=_0x4a1058(0x199)?_0x233974+'':_0x233974,_0x21dcae);import{jsx as _0x50aa30,jsxs as _0x1eb1d2}from'react/jsx-runtime';import{CollaborationStatus as _0x85e9be,CollaborationSessionService as _0x31c78a,CollaborationController as _0x4f89a9,DataLoaderService as _0x3c963a,MemberService as _0x2fbcf9,SessionStatus as _0xf202c8,ILocalCacheService as _0x486a5f,CollaborationUIEventService as _0x22187c,CollaborationUIEventId as _0x47a735,DocCollaborationEntity as _0x1d469f,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x5adb8e,getLocalCacheKey as _0x3f74b7,LOCAL_CACHE_INTERVAL as _0x16cb8a,LOCAL_CACHE_INTERVAL_KEY as _0x1d61b2,UniverCollaborationClientPlugin as _0x4dd462,CollaborationSocketService as _0x1d1749,DEFAULT_WS_SESSION_TICKET_URL as _0x514cfa,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x2499e8,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x20d45f,UnitStatus as _0x4c4e53}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x569789,IUniverInstanceService as _0x604bfa,Inject as _0x22985b,Injector as _0x421c05,Disposable as _0x2ea4ee,createIdentifier as _0x4a943d,ILogService as _0x3d9fd0,ICommandService as _0x5c0795,Optional as _0x1b2ff4,RxDisposable as _0x321bd0,Workbook as _0x28d61f,DOC_RANGE_TYPE as _0x8fda61,debounce as _0x25a42e,Rectangle as _0x3b0d7c,DisposableCollection as _0x5f2212,toDisposable as _0x2e5ead,UniverInstanceType as _0x5ec37c,generateRandomId as _0x52c05b,COLORS as _0x2c0292,ColorKit as _0x3c136c,ThemeService as _0xd08a6,fromEventSubject as _0x5a1aae,Tools as _0x3e0932,CommandType as _0x3f2b39,IConfigService as _0xfc45b4,CanceledError as _0x1ee7c7,isFormulaString as _0x17812e,isFormulaId as _0x2448fc,ILocalStorageService as _0x2d3778,DependentOn as _0x2a3643,Plugin as _0x401b9c,merge as _0x3e7ea3,registerDependencies as _0x1e0393,mergeOverrideWithDependencies as _0x12820a,touchDependencies as _0x9b7b4}from'@univerjs/core';import{useObservable as _0x5940ce,useDependency as _0xcd657,IUIPartsService as _0x4bcbe2,BuiltInUIPart as _0x1a8eef,connectInjector as _0x2e4b67,IBeforeCloseService as _0x4ea8ef,IMessageService as _0x529307,INotificationService as _0x5b33fc}from'@univerjs/ui';import{BehaviorSubject as _0x4d6555,switchMap as _0x3799e1,of as _0x3c8d33,takeUntil as _0xa0a1cc,debounceTime as _0x449e70,Subject as _0xcd5cfe,filter as _0x225365,merge as _0x283e6c,combineLatest as _0x30ea1d,fromEvent as _0x47cd1f,shareReplay as _0x46da00,mapTo as _0x2f68cf,distinctUntilChanged as _0x56fc05}from'rxjs';import{Tooltip as _0x3af8b8,clsx as _0x37a106,MessageType as _0x31bdd1}from'@univerjs/design';import{useRef as _0x5317f4,createElement as _0x2729e2,forwardRef as _0x5b164e,useCallback as _0x162f47}from'react';import{IRemoteInstanceService as _0x511a0a}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x594478,RefRangeService as _0x1500b9,SetSelectionsOperation as _0x117815,SheetsSelectionsService as _0x5099f1,EffectRefRangId as _0x3c7fd2,handleIRemoveRow as _0xd0a13e,handleIRemoveCol as _0x446f9f,handleMoveRange as _0x82b504,handleInsertRow as _0x108d9c,handleInsertRangeMoveRight as _0x4f79c2,handleInsertRangeMoveDown as _0x2ed1c6,handleInsertCol as _0x2878db,handleDeleteRangeMoveUp as _0x49d96e,handleDeleteRangeMoveLeft as _0x56f714,runRefRangeMutations as _0x3e1b34}from'@univerjs/sheets';import{Shape as _0x557107,Rect as _0x48ad0c,getColor as _0x3a5d8a,RegularPolygon as _0x48e5d3,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x4334d1,Vector2 as _0x163fc2,SHEET_VIEWPORT_KEY as _0xbf806e,IRenderManagerService as _0x50a960}from'@univerjs/engine-render';import{HTTPService as _0x1548e0,ISocketService as _0x3da187,WebSocketService as _0x1617f1}from'@univerjs/network';import{IDocClipboardService as _0x3b37fb,NodePositionConvertToCursor as _0x7549,NodePositionConvertToRectRange as _0x3e39ba,TEXT_RANGE_LAYER_INDEX as _0x29cb1a,SetDocZoomRatioOperation as _0x3c1137,DocIMEInputManagerService as _0x1a0771,DocStateChangeManagerService as _0x11674d}from'@univerjs/docs-ui';import{IImageIoService as _0x4a13e9}from'@univerjs/drawing';import{ITransformService as _0x918a9,CollaborationEvent as _0x219aca,isTransformMutationFailure as _0x4c1867,isTransformMutationsWithChangesetSuccess as _0x5adc85,RevisionService as _0xec17d,ISnapshotServerService as _0x4d9e92}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x769c2a,RichTextEditingMutation as _0x47d0a4,DocSelectionManagerService as _0x437796,DocSkeletonManagerService as _0x2db7a9}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x2f7d46,serializeRangeWithSheet as _0x177277,FormulaExecuteStageType as _0x4bcca7,FormulaExecutedStateType as _0x48201f,SetFormulaCalculationStartMutation as _0x1ceb29,SetFormulaCalculationNotificationMutation as _0x48ea6e}from'@univerjs/engine-formula';import{map as _0x14d2a3,filter as _0x36fe7f,throttleTime as _0x2e87c4,takeUntil as _0x340901,switchMap as _0x5ae300}from'rxjs/operators';import{SheetSkeletonManagerService as _0x5f3465,getCoordByCell as _0x2349b0,getSheetObject as _0x1d9f3a}from'@univerjs/sheets-ui';function Ve({ref:_0x5402f8,..._0x38c435}){const _0x54eb6c=_0x4a1058,{icon:_0x2de647,id:_0x295e14,className:_0x127e17,extend:_0x113fb9,..._0x1750ee}=_0x38c435,_0x1ca338=(_0x54eb6c(0x122)+_0x295e14+'\x20'+(_0x127e17||''))[_0x54eb6c(0x179)](),_0x75e4a1=_0x5317f4('_'+gi());return Ut(_0x2de647,''+_0x295e14,{'defIds':_0x2de647[_0x54eb6c(0x168)],'idSuffix':_0x75e4a1[_0x54eb6c(0x9f)]},{'ref':_0x5402f8,'className':_0x1ca338,..._0x1750ee},_0x113fb9);}function Ut(_0x593b81,_0x1a7e95,_0x31a296,_0x996a27,_0x7d753c){const _0x21db4a=_0x4a1058;return _0x2729e2(_0x593b81[_0x21db4a(0xc9)],{'key':_0x1a7e95,...mi(_0x593b81,_0x31a296,_0x7d753c),..._0x996a27},(fi(_0x593b81,_0x31a296)[_0x21db4a(0x167)]||[])[_0x21db4a(0x116)]((_0x5a25ba,_0x44651f)=>Ut(_0x5a25ba,_0x1a7e95+'-'+_0x593b81[_0x21db4a(0xc9)]+'-'+_0x44651f,_0x31a296,void 0x0,_0x7d753c)));}function mi(_0x43b241,_0x41134d,_0x27af35){const _0x5818ca=_0x4a1058,_0x5b724a={..._0x43b241[_0x5818ca(0x2b2)]};_0x27af35!=null&&_0x27af35[_0x5818ca(0xb2)]&&_0x5b724a[_0x5818ca(0x218)]===_0x5818ca(0xb2)&&(_0x5b724a[_0x5818ca(0x218)]=_0x27af35[_0x5818ca(0xb2)]),_0x43b241[_0x5818ca(0xc9)]===_0x5818ca(0xbb)&&_0x5b724a['id']&&(_0x5b724a['id']=_0x5b724a['id']+_0x41134d[_0x5818ca(0x200)]),Object['entries'](_0x5b724a)[_0x5818ca(0x1c7)](([_0xcc980a,_0x11d62d])=>{const _0x5d9990=_0x5818ca;_0xcc980a==='mask'&&typeof _0x11d62d==_0x5d9990(0xdb)&&(_0x5b724a[_0xcc980a]=_0x11d62d[_0x5d9990(0x1b3)](/url\(#(.*)\)/,_0x5d9990(0x265)+_0x41134d[_0x5d9990(0x200)]+')'));});const {defIds:_0x1c9288}=_0x41134d;return!_0x1c9288||_0x1c9288[_0x5818ca(0x99)]===0x0||(_0x43b241[_0x5818ca(0xc9)]===_0x5818ca(0xd1)&&_0x5b724a[_0x5818ca(0x173)]&&(_0x5b724a['xlink:href']=_0x5b724a[_0x5818ca(0x173)]+_0x41134d[_0x5818ca(0x200)]),Object[_0x5818ca(0x175)](_0x5b724a)[_0x5818ca(0x1c7)](([_0x1d8eb3,_0x353ae8])=>{const _0x175dcf=_0x5818ca;typeof _0x353ae8==_0x175dcf(0xdb)&&(_0x5b724a[_0x1d8eb3]=_0x353ae8['replace'](/url\(#(.*)\)/,_0x175dcf(0x265)+_0x41134d[_0x175dcf(0x200)]+')'));})),_0x5b724a;}function fi(_0x5c65e2,_0x6ef6af){const _0x3bec19=_0x4a1058;var _0x17073c;const {defIds:_0x58acc0}=_0x6ef6af;return!_0x58acc0||_0x58acc0[_0x3bec19(0x99)]===0x0?_0x5c65e2:_0x5c65e2[_0x3bec19(0xc9)]===_0x3bec19(0x16f)&&((_0x17073c=_0x5c65e2['children'])!=null&&_0x17073c[_0x3bec19(0x99)])?{..._0x5c65e2,'children':_0x5c65e2['children'][_0x3bec19(0x116)](_0xd6005e=>typeof _0xd6005e[_0x3bec19(0x2b2)]['id']==_0x3bec19(0xdb)&&_0x58acc0&&_0x58acc0[_0x3bec19(0x273)](_0xd6005e['attrs']['id'])?{..._0xd6005e,'attrs':{..._0xd6005e[_0x3bec19(0x2b2)],'id':_0xd6005e[_0x3bec19(0x2b2)]['id']+_0x6ef6af[_0x3bec19(0x200)]}}:_0xd6005e)}:_0x5c65e2;}function gi(){const _0x30b914=_0x4a1058;return Math['random']()['toString'](0x24)[_0x30b914(0x1dd)](0x2,0x8);}Ve[_0x4a1058(0x1f7)]=_0x4a1058(0x1f6);const vi={'tag':_0x4a1058(0x155),'attrs':{'xmlns':_0x4a1058(0x269),'fill':_0x4a1058(0x28b),'viewBox':_0x4a1058(0x256),'width':_0x4a1058(0x247),'height':_0x4a1058(0x247)},'children':[{'tag':'g','attrs':{'clipPath':_0x4a1058(0xb5)},'children':[{'tag':_0x4a1058(0x101),'attrs':{'stroke':_0x4a1058(0x118),'d':_0x4a1058(0x210),'strokeLinecap':_0x4a1058(0x161),'strokeLinejoin':_0x4a1058(0x161),'strokeWidth':1.2}}]},{'tag':_0x4a1058(0x16f),'attrs':{},'children':[{'tag':_0x4a1058(0x244),'attrs':{'id':_0x4a1058(0xf9)},'children':[{'tag':_0x4a1058(0x101),'attrs':{'fill':_0x4a1058(0x2b0),'d':_0x4a1058(0xd7)}}]}]}],'defIds':[_0x4a1058(0xf9)]},Lt=_0x5b164e(function(_0x19bc86,_0x1edc96){const _0x29f8e9=_0x4a1058;return _0x2729e2(Ve,Object['assign']({},_0x19bc86,{'id':_0x29f8e9(0x133),'ref':_0x1edc96,'icon':vi}));});Lt[_0x4a1058(0x1f7)]=_0x4a1058(0x10a);const Ei={'tag':_0x4a1058(0x155),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x4a1058(0x28b),'viewBox':_0x4a1058(0x176),'width':'1em','height':_0x4a1058(0x247)},'children':[{'tag':'g','attrs':{'clipPath':_0x4a1058(0x2c2)},'children':[{'tag':_0x4a1058(0x101),'attrs':{'stroke':_0x4a1058(0x118),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x4a1058(0x161),'strokeLinejoin':_0x4a1058(0x161),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x4a1058(0x244),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x4a1058(0x101),'attrs':{'fill':_0x4a1058(0x2b0),'d':_0x4a1058(0xd7),'transform':_0x4a1058(0x1d1)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},Mt=_0x5b164e(function(_0x23a41f,_0x4ab306){const _0x4a9ad4=_0x4a1058;return _0x2729e2(Ve,Object[_0x4a9ad4(0x296)]({},_0x23a41f,{'id':_0x4a9ad4(0x20b),'ref':_0x4ab306,'icon':Ei}));});Mt[_0x4a1058(0x1f7)]=_0x4a1058(0x29f);function pi(_0x484e1c){const _0x36c77b=_0x4a1058;switch(_0x484e1c){case _0x85e9be[_0x36c77b(0x14e)]:return _0x36c77b(0xd2);case _0x85e9be[_0x36c77b(0x24e)]:return _0x36c77b(0xb9);case _0x85e9be[_0x36c77b(0x2bb)]:return'collabStatus.fetchMiss';case _0x85e9be['NOT_COLLAB']:return'collabStatus.notCollab';case _0x85e9be['AWAITING']:case _0x85e9be[_0x36c77b(0x25b)]:return'collabStatus.syncing';case _0x85e9be[_0x36c77b(0x277)]:case _0x85e9be['PENDING']:return _0x36c77b(0x1f1);}}function Oi(_0x21b936){const _0x3ec31e=_0x4a1058,{status$:_0x1b9ca0}=_0x21b936,_0x4ba5df=_0x5940ce(_0x1b9ca0,_0x85e9be['NOT_COLLAB']),_0x47b8ee=_0xcd657(_0x569789),_0x588b5c=_0xcd657(_0x31c78a),_0x289268=_0x4ba5df!==_0x85e9be[_0x3ec31e(0x14e)],_0x32175d=_0x47b8ee['t'](pi(_0x4ba5df)),_0x263ed9=_0x289268?_0x50aa30(Mt,{}):_0x50aa30(Lt,{}),_0x54a1ec=_0x162f47(()=>{const _0xbc8b20=_0x3ec31e;_0x289268||_0x588b5c[_0xbc8b20(0x268)]();},[_0x289268,_0x588b5c]);function _0x15bd91(){const _0x4092af=_0x3ec31e;return _0x1eb1d2(_0x4092af(0x110),{'className':_0x4092af(0x1c1),'onClick':_0x54a1ec,'children':[_0x50aa30(_0x4092af(0x110),{'className':_0x37a106(_0x4092af(0x18e),{'univer-text-green-500':_0x289268,'univer-text-red-500':!_0x289268}),'children':_0x263ed9}),_0x50aa30(_0x4092af(0x110),{'className':_0x4092af(0x1db),'children':_0x32175d})]});}return _0x289268?_0x15bd91():_0x50aa30(_0x3af8b8,{'title':_0x47b8ee['t'](_0x3ec31e(0x12c)),'children':_0x15bd91()});}var Ti=Object[_0x4a1058(0x19c)],Ci=(_0x5f2b94,_0xaa0256,_0x524bc8,_0x2ffefe)=>{const _0x3f92fb=_0x4a1058;for(var _0x37f71e=_0x2ffefe>0x1?void 0x0:_0x2ffefe?Ti(_0xaa0256,_0x524bc8):_0xaa0256,_0x15a79f=_0x5f2b94[_0x3f92fb(0x99)]-0x1,_0x1338f8;_0x15a79f>=0x0;_0x15a79f--)(_0x1338f8=_0x5f2b94[_0x15a79f])&&(_0x37f71e=_0x1338f8(_0x37f71e)||_0x37f71e);return _0x37f71e;},se=(_0xc58015,_0x1658d4)=>(_0x45ec49,_0x20a0e5)=>_0x1658d4(_0x45ec49,_0x20a0e5,_0xc58015);let oe=class extends _0x2ea4ee{constructor(_0x251cb0,_0x4c4749,_0x34c28e,_0x9e7dba){const _0x2325cd=_0x4a1058;super(),l(this,_0x2325cd(0x290),new _0x4d6555(_0x85e9be[_0x2325cd(0x1d6)])),(this[_0x2325cd(0x1dc)]=_0x251cb0,this[_0x2325cd(0x2d1)]=_0x4c4749,this[_0x2325cd(0xe3)]=_0x34c28e,this[_0x2325cd(0x2b4)]=_0x9e7dba,this['_initStatusComponent'](),this['_initStatusListener']());}[_0x4a1058(0x222)](){const _0x52cf8c=_0x4a1058;this['disposeWithMe'](this[_0x52cf8c(0x1dc)][_0x52cf8c(0x299)]['pipe'](_0x3799e1(()=>{const _0x53ce6b=_0x52cf8c,_0x2fcd8f=this[_0x53ce6b(0x1dc)][_0x53ce6b(0x26e)]();return _0x2fcd8f?this['_collaborationController'][_0x53ce6b(0x27a)](_0x2fcd8f['getUnitId']()):_0x3c8d33(null);}),_0x3799e1(_0x2e0a4c=>_0x2e0a4c?_0x2e0a4c[_0x52cf8c(0x2a4)]:_0x3c8d33(_0x85e9be[_0x52cf8c(0x1d6)])))[_0x52cf8c(0x262)](_0x492a04=>{const _0x180f5d=_0x52cf8c;this[_0x180f5d(0x290)][_0x180f5d(0x9c)](_0x492a04);}));}['_initStatusComponent'](){const _0x218bcc=_0x4a1058;this[_0x218bcc(0xca)](this[_0x218bcc(0x2b4)][_0x218bcc(0x138)](_0x1a8eef[_0x218bcc(0x2c1)],()=>_0x2e4b67(Ri({'status$':this[_0x218bcc(0x290)][_0x218bcc(0x1d3)]()}),this[_0x218bcc(0x2d1)])));}};oe=Ci([se(0x0,_0x604bfa),se(0x1,_0x22985b(_0x421c05)),se(0x2,_0x22985b(_0x4f89a9)),se(0x3,_0x4bcbe2)],oe);function Ri(_0x4c58fd){const {status$:_0x3cd8d7}=_0x4c58fd;return function(){return _0x50aa30(Oi,{'status$':_0x3cd8d7});};}const At=_0x4a943d(_0x4a1058(0x2b5));var Di=Object[_0x4a1058(0x19c)],Ni=(_0x26bc81,_0x4b1d2f,_0x10f517,_0x51f286)=>{const _0x5d3535=_0x4a1058;for(var _0x4cf7f8=_0x51f286>0x1?void 0x0:_0x51f286?Di(_0x4b1d2f,_0x10f517):_0x4b1d2f,_0x742809=_0x26bc81[_0x5d3535(0x99)]-0x1,_0x11fcb6;_0x742809>=0x0;_0x742809--)(_0x11fcb6=_0x26bc81[_0x742809])&&(_0x4cf7f8=_0x11fcb6(_0x4cf7f8)||_0x4cf7f8);return _0x4cf7f8;},K=(_0x393344,_0x3a807e)=>(_0x1e5c35,_0x2654a8)=>_0x3a807e(_0x1e5c35,_0x2654a8,_0x393344);let ae=class extends _0x321bd0{constructor(_0x1f92cf,_0x49371d,_0x82d1d9,_0x9cea13,_0x308e66){const _0x256695=_0x4a1058;super(),this['_urlService']=_0x1f92cf,this[_0x256695(0x2b3)]=_0x49371d,this[_0x256695(0x2a1)]=_0x82d1d9,this[_0x256695(0x1ab)]=_0x9cea13,_0x308e66?_0x308e66==null||_0x308e66[_0x256695(0x249)]()[_0x256695(0x207)](()=>this[_0x256695(0x190)]()):(this[_0x256695(0x2b3)][_0x256695(0x238)](_0x256695(0x243),_0x256695(0x16a)),this[_0x256695(0x190)]());}async[_0x4a1058(0x190)](){const _0x593336=_0x4a1058,_0x5d5f67=this[_0x593336(0x1c0)][_0x593336(0xe8)](_0x593336(0x156)),_0x15c060=this['_urlService'][_0x593336(0xe8)](_0x593336(0x171)),_0x1f374a=this[_0x593336(0x1c0)][_0x593336(0xe8)]('subunit');if(!_0x5d5f67||!_0x15c060){this[_0x593336(0x2b3)][_0x593336(0x238)]('[CollaborationDataLoaderController]',_0x593336(0x27b));return;}const _0x1a3032=await this[_0x593336(0x1ab)]['loadUnit'](_0x5d5f67,Number(_0x15c060),_0x1f374a);_0x1a3032&&_0x1a3032 instanceof _0x28d61f&&this['_setupSubUnitSync'](_0x1a3032);}async[_0x4a1058(0xaf)](_0x57dd25){const _0x190ead=_0x4a1058;await this[_0x190ead(0x147)](_0x57dd25),_0x57dd25['activeSheet$'][_0x190ead(0x1e6)](_0xa0a1cc(this[_0x190ead(0x106)]))[_0x190ead(0x262)](_0x13d954=>{const _0x1bc624=_0x190ead;_0x13d954&&this[_0x1bc624(0x209)](_0x13d954);}),this[_0x190ead(0x1c0)]['urlChange$'][_0x190ead(0x1e6)](_0xa0a1cc(this[_0x190ead(0x106)]))[_0x190ead(0x262)](()=>this['_updateSubUnitFromURLParams'](_0x57dd25));}[_0x4a1058(0x209)](_0x406758,_0x4dddaa=!0x1){const _0x561e80=_0x4a1058,_0x401518=this[_0x561e80(0x1c0)][_0x561e80(0xe8)](_0x561e80(0x226));_0x406758[_0x561e80(0x10d)]()!==_0x401518&&this[_0x561e80(0x1c0)]['setParam'](_0x561e80(0x226),_0x406758[_0x561e80(0x10d)](),_0x4dddaa);}async['_updateSubUnitFromURLParams'](_0x110798){const _0x12ab3f=_0x4a1058;var _0x370d8a;const _0x2980e7=this['_urlService'][_0x12ab3f(0xe8)](_0x12ab3f(0x226));if(!_0x2980e7||!_0x110798[_0x12ab3f(0x114)](_0x2980e7)){const _0x201ee7=_0x110798[_0x12ab3f(0x1a7)]()[0x0],_0x1686a1=_0x110798[_0x12ab3f(0x114)](_0x201ee7);if(!_0x1686a1)return;this[_0x12ab3f(0x209)](_0x1686a1,!0x0),await this[_0x12ab3f(0x2a1)][_0x12ab3f(0x246)](_0x594478['id'],{'unitId':_0x110798[_0x12ab3f(0x18f)](),'subUnitId':_0x201ee7});return;}((_0x370d8a=_0x110798['getActiveSheet']())==null?void 0x0:_0x370d8a[_0x12ab3f(0x10d)]())!==_0x2980e7&&await this['_commandService'][_0x12ab3f(0x246)](_0x594478['id'],{'unitId':_0x110798['getUnitId'](),'subUnitId':_0x2980e7});}};ae=Ni([K(0x0,At),K(0x1,_0x3d9fd0),K(0x2,_0x5c0795),K(0x3,_0x22985b(_0x3c963a)),K(0x4,_0x1b2ff4(_0x511a0a))],ae);var bi=Object[_0x4a1058(0x19c)],Ui=(_0x8f5f8a,_0x3dcb0e,_0x288f25,_0x21fbf8)=>{const _0xb00280=_0x4a1058;for(var _0x36d723=_0x21fbf8>0x1?void 0x0:_0x21fbf8?bi(_0x3dcb0e,_0x288f25):_0x3dcb0e,_0x450ff4=_0x8f5f8a[_0xb00280(0x99)]-0x1,_0x127112;_0x450ff4>=0x0;_0x450ff4--)(_0x127112=_0x8f5f8a[_0x450ff4])&&(_0x36d723=_0x127112(_0x36d723)||_0x36d723);return _0x36d723;},tt=(_0x271592,_0x36f71b)=>(_0x2c92f5,_0x32a932)=>_0x36f71b(_0x2c92f5,_0x32a932,_0x271592);let Ae=class extends _0x321bd0{constructor(_0x99fbdd,_0x38f83c){const _0x9a58e9=_0x4a1058;super(),this[_0x9a58e9(0x1f4)]=_0x99fbdd,this[_0x9a58e9(0x100)]=_0x38f83c,this[_0x9a58e9(0x190)]();}[_0x4a1058(0x190)](){const _0x4467d6=_0x4a1058,_0x2dcf18=this;this['disposeWithMe'](this[_0x4467d6(0x1f4)]['addClipboardHook']({'onBeforePasteImage':async _0x58da8f=>{const _0x3b3b86=_0x4467d6,_0x2d3190=await _0x2dcf18['_imageIoService'][_0x3b3b86(0x26b)](_0x58da8f);return _0x2d3190?{'source':_0x2d3190[_0x3b3b86(0x2cd)],'imageSourceType':_0x2d3190[_0x3b3b86(0x29a)]}:null;}}));}};Ae=Ui([tt(0x0,_0x3b37fb),tt(0x1,_0x4a13e9)],Ae);const st=['purple.300',_0x4a1058(0xc1),_0x4a1058(0x1e1),_0x4a1058(0x1fd),_0x4a1058(0x286),_0x4a1058(0x18b)];class je extends _0x2ea4ee{constructor(){super(...arguments),l(this,'_assignedColors',new Map()),l(this,'_colorIndex',0x0);}[_0x4a1058(0x223)](_0x2d7837){const _0x2337f5=_0x4a1058;if(this[_0x2337f5(0x230)][_0x2337f5(0x219)](_0x2d7837))return this[_0x2337f5(0x230)]['get'](_0x2d7837);const _0x9ce0e0=st[this[_0x2337f5(0x182)]];return this[_0x2337f5(0x182)]=(this[_0x2337f5(0x182)]+0x1)%st[_0x2337f5(0x99)],this['_assignedColors']['set'](_0x2d7837,_0x9ce0e0),_0x9ce0e0;}}function Pt(_0x5485f0){const _0x2caf41=_0x4a1058;let _0x1b6a00='';for(const _0x2f7bf3 of _0x5485f0){const {startOffset:_0x4a5ff3,endOffset:_0x493bb9,isActive:_0x3a0474,rangeType:_0x38acb8,segmentId:_0x28fbc8,segmentPage:_0x5f4cbf}=_0x2f7bf3;_0x1b6a00[_0x2caf41(0x99)]&&(_0x1b6a00+=','),_0x1b6a00+=_0x4a5ff3+':'+_0x493bb9+':'+(_0x3a0474?'1':'0')+':'+_0x38acb8+':'+_0x28fbc8+':'+_0x5f4cbf;}return _0x1b6a00;}function Li(_0x228c87){const _0x43f349=_0x4a1058,_0x2a7f9c=_0x228c87['split'](','),_0xab3e02=[];for(const _0x3bad4b of _0x2a7f9c){const [_0x40cbba,_0x47df2d,_0x14b76a,_0x469427,_0x378933,_0x45eab7]=_0x3bad4b[_0x43f349(0x1d5)](':');_0xab3e02[_0x43f349(0x10e)]({'startOffset':Number(_0x40cbba),'endOffset':Number(_0x47df2d),'collapsed':_0x40cbba===_0x47df2d,'isActive':_0x14b76a==='1','rangeType':_0x469427===_0x8fda61[_0x43f349(0x1a1)]?_0x8fda61['TEXT']:_0x8fda61['RECT'],'segmentId':typeof _0x378933==_0x43f349(0xdb)?String(_0x378933):'','segmentPage':Number(_0x45eab7!=null?_0x45eab7:-0x1)});}return _0xab3e02[_0x43f349(0xa1)](_0x4fd994=>_0x4fd994[_0x43f349(0x274)])||(_0xab3e02[0x0][_0x43f349(0x274)]=!0x0),_0xab3e02;}class Xe extends _0x321bd0{constructor(){const _0x2185ee=_0x4a1058;super(...arguments),l(this,_0x2185ee(0x11e),new _0x4d6555(null)),l(this,_0x2185ee(0x1f8),this['_collabCursorState$'][_0x2185ee(0x1d3)]());}[_0x4a1058(0xd0)](_0xfd51b3){const _0x11b5a6=_0x4a1058,{unitID:_0x4fe858,memberID:_0x49b77f,textRanges:_0x48fd8b}=_0xfd51b3,_0x3a0c50=Pt(_0x48fd8b);if(_0x3a0c50==='')return;const _0x24334b={'unitID':_0x4fe858,'memberID':_0x49b77f,'selection':_0x3a0c50};this[_0x11b5a6(0x11e)]['next'](_0x24334b);}}var Mi=Object[_0x4a1058(0x19c)],Ai=(_0x45b22a,_0x17dc70,_0x191670,_0x5f2bd3)=>{const _0x54b41c=_0x4a1058;for(var _0x137829=_0x5f2bd3>0x1?void 0x0:_0x5f2bd3?Mi(_0x17dc70,_0x191670):_0x17dc70,_0x2bed5f=_0x45b22a[_0x54b41c(0x99)]-0x1,_0x50f446;_0x2bed5f>=0x0;_0x2bed5f--)(_0x50f446=_0x45b22a[_0x2bed5f])&&(_0x137829=_0x50f446(_0x137829)||_0x137829);return _0x137829;},A=(_0x5b4948,_0x4e4dfe)=>(_0x5448f7,_0x167243)=>_0x4e4dfe(_0x5448f7,_0x167243,_0x5b4948);const Pi=0x12c,wi=0x64;let Pe=class extends _0x321bd0{constructor(_0x400828,_0x2dc32f,_0x23a368,_0x19bbaf,_0x51c585,_0xd260d1,_0x409474,_0x5a4039,_0x299423){const _0x48edbc=_0x4a1058;super(),l(this,_0x48edbc(0xea),!0x1),l(this,_0x48edbc(0x190),!0x1),l(this,_0x48edbc(0x215),new _0x4d6555(new Map())),l(this,_0x48edbc(0x136),this[_0x48edbc(0x215)][_0x48edbc(0x1d3)]()),l(this,'_roomMembers$',new _0x4d6555([])),l(this,_0x48edbc(0xec),this[_0x48edbc(0x1c9)][_0x48edbc(0x1e6)](_0x449e70(Pi))),l(this,_0x48edbc(0x1d0),_0x25a42e(_0x384a8a=>{const _0x283878=_0x48edbc,_0x1d0a83={'eventID':_0x219aca['UPDATE_CURSOR'],'data':{'unitID':this[_0x283878(0x1c5)],'memberID':this[_0x283878(0x145)]['getMemberID'](),'selection':Pt(_0x384a8a)}};this[_0x283878(0x145)]['send'](_0x1d0a83,this['unitID']);},wi)),(this['unitID']=_0x400828,this[_0x48edbc(0x145)]=_0x2dc32f,this['_injector']=_0x23a368,this[_0x48edbc(0x271)]=_0x19bbaf,this[_0x48edbc(0x1ee)]=_0x51c585,this[_0x48edbc(0x98)]=_0xd260d1,this['_transformService']=_0x409474,this[_0x48edbc(0x1dc)]=_0x5a4039,this[_0x48edbc(0x2a1)]=_0x299423);}get[_0x4a1058(0x201)](){const _0x36c571=_0x4a1058;return this[_0x36c571(0x215)][_0x36c571(0x2ce)]();}get[_0x4a1058(0x1f0)](){const _0x21d436=_0x4a1058;return this['_roomMembers$'][_0x21d436(0x2ce)]();}[_0x4a1058(0x21e)](){const _0x231a38=_0x4a1058;super['dispose'](),this[_0x231a38(0x215)]['next'](new Map()),this[_0x231a38(0x215)][_0x231a38(0xef)](),this[_0x231a38(0x1c9)]['next']([]),this[_0x231a38(0x1c9)][_0x231a38(0xef)]();}[_0x4a1058(0x233)](){const _0x5d3c35=_0x4a1058;this[_0x5d3c35(0x190)]||(this['_init']=!0x0,this[_0x5d3c35(0x145)]['sessionStatus$'][_0x5d3c35(0x1e6)](_0xa0a1cc(this[_0x5d3c35(0x106)]))[_0x5d3c35(0x262)](_0x5a8676=>{const _0x4b2784=_0x5d3c35;_0x5a8676===_0xf202c8[_0x4b2784(0x28e)]?this[_0x4b2784(0x94)]():this['_toggleOffline']();}),this['_session'][_0x5d3c35(0x220)][_0x5d3c35(0x1e6)](_0xa0a1cc(this['dispose$']))[_0x5d3c35(0x262)](_0x5804cc=>{const _0x471a17=_0x5d3c35,_0x4ff16c=_0x5804cc[_0x471a17(0x26f)];_0x4ff16c===_0x219aca[_0x471a17(0x13a)]&&this[_0x471a17(0xff)](_0x5804cc),_0x4ff16c===_0x219aca[_0x471a17(0xe2)]&&this[_0x471a17(0x2a6)](_0x5804cc);}),this['disposeWithMe'](this[_0x5d3c35(0x2a1)][_0x5d3c35(0x180)](_0x33c9c7=>{const _0x219f5f=_0x5d3c35,_0x4a8141=_0x33c9c7[_0x219f5f(0x1de)];_0x4a8141!=null&&this[_0x219f5f(0xea)]&&_0x33c9c7['id']===_0x769c2a['id']&&_0x4a8141['unitId']===this[_0x219f5f(0x1c5)]&&_0x4a8141[_0x219f5f(0xab)]===!0x1&&_0x4a8141[_0x219f5f(0xf5)]['length']>0x0&&this[_0x219f5f(0x1d0)](_0x4a8141['ranges']);})),this[_0x5d3c35(0x98)][_0x5d3c35(0x1f8)]['pipe'](_0xa0a1cc(this[_0x5d3c35(0x106)]))[_0x5d3c35(0x262)](_0x103c3e=>{const _0x425d33=_0x5d3c35;if((_0x103c3e==null?void 0x0:_0x103c3e[_0x425d33(0x1c5)])!==this[_0x425d33(0x1c5)])return;const _0x4c89a8={'eventID':_0x219aca['UPDATE_CURSOR'],'data':_0x103c3e};this[_0x425d33(0xff)](_0x4c89a8);}),this[_0x5d3c35(0xca)](this['_commandService'][_0x5d3c35(0x180)](_0x21ae5b=>{const _0x27f592=_0x5d3c35;if(_0x21ae5b[_0x27f592(0x1de)]==null)return;const _0x6d8437=_0x21ae5b[_0x27f592(0x1de)];if(_0x21ae5b['id']!==_0x47d0a4['id']||_0x6d8437[_0x27f592(0x2c6)]!==this[_0x27f592(0x1c5)])return;const _0x3073ee={'id':_0x27f592(0x172),'params':_0x6d8437},_0x526bfa=this[_0x27f592(0x201)];for(const [_0x11feeb,_0x295150]of _0x526bfa){const _0x39747d={'id':_0x27f592(0x172),'params':{'unitId':this[_0x27f592(0x1c5)],'actions':null,'textRanges':_0x295150[_0x27f592(0xf5)]}},_0x34b9a7=this['_transformService'][_0x27f592(0xb3)](_0x3073ee,_0x39747d,!0x1);if(_0x4c1867(_0x34b9a7))throw _0x34b9a7[_0x27f592(0x29e)];_0x526bfa['set'](_0x11feeb,{..._0x295150,'ranges':_0x34b9a7[_0x27f592(0x14a)][_0x27f592(0x1de)][_0x27f592(0x25e)]});}queueMicrotask(()=>{const _0xb2178f=_0x27f592;this[_0xb2178f(0x215)][_0xb2178f(0x9c)](_0x526bfa);});})));}[_0x4a1058(0xff)](_0x2522a4){const _0x94835f=_0x4a1058;var _0x13878c,_0x2d699e;const {memberID:_0x4be21d,selection:_0x2425f6}=_0x2522a4[_0x94835f(0x1ad)],_0x82760=Li(_0x2425f6),_0xa59b6c=(_0x2d699e=(_0x13878c=this['_memberService']['getMember'](this[_0x94835f(0x1c5)],_0x4be21d))==null?void 0x0:_0x13878c['name'])!=null?_0x2d699e:_0x94835f(0x17a),_0x3d11e1={'color':this[_0x94835f(0x271)][_0x94835f(0x223)](_0x4be21d),'name':_0xa59b6c,'ranges':_0x82760},_0x5dd44f=this['cursorInfo'];_0x5dd44f[_0x94835f(0x90)](_0x4be21d,_0x3d11e1),this['_cursorInfo$']['next'](_0x5dd44f);}[_0x4a1058(0x2a6)](_0x4b7f3b){const _0x17e09b=_0x4a1058,{memberID:_0x315865}=_0x4b7f3b[_0x17e09b(0x1ad)],_0x59b390=this[_0x17e09b(0x201)];_0x59b390['delete'](_0x315865),this[_0x17e09b(0x215)][_0x17e09b(0x9c)](_0x59b390);}[_0x4a1058(0x94)](){const _0x34232d=_0x4a1058;var _0x3cf2ac;if(this[_0x34232d(0xea)]=!0x0,((_0x3cf2ac=this[_0x34232d(0x1dc)][_0x34232d(0x26e)]())==null?void 0x0:_0x3cf2ac[_0x34232d(0x18f)]())!==this[_0x34232d(0x1c5)])return;const _0x4c3988=this[_0x34232d(0x2d1)][_0x34232d(0x298)](_0x437796)[_0x34232d(0x140)]();Array['isArray'](_0x4c3988)&&_0x4c3988[_0x34232d(0x99)]>0x0&&this['_updateLocalCursor'](_0x4c3988);}[_0x4a1058(0xa6)](){const _0x44ff2f=_0x4a1058;this[_0x44ff2f(0xea)]=!0x1;}};Pe=Ai([A(0x2,_0x22985b(_0x421c05)),A(0x3,_0x22985b(je)),A(0x4,_0x22985b(_0x2fbcf9)),A(0x5,_0x22985b(Xe)),A(0x6,_0x918a9),A(0x7,_0x604bfa),A(0x8,_0x5c0795)],Pe);var yi=Object[_0x4a1058(0x19c)],$i=(_0x4ede87,_0x5a4352,_0x421918,_0x2bd4f4)=>{for(var _0x4c60a0=_0x2bd4f4>0x1?void 0x0:_0x2bd4f4?yi(_0x5a4352,_0x421918):_0x5a4352,_0x2560c0=_0x4ede87['length']-0x1,_0x103ab8;_0x2560c0>=0x0;_0x2560c0--)(_0x103ab8=_0x4ede87[_0x2560c0])&&(_0x4c60a0=_0x103ab8(_0x4c60a0)||_0x4c60a0);return _0x4c60a0;},B=(_0x4f7393,_0x13be66)=>(_0x3e1787,_0x238d40)=>_0x13be66(_0x3e1787,_0x238d40,_0x4f7393);const xi=0x12c,Bi=0x64,Fi=()=>{let _0x1c04e5=[],_0x3f90e2=!0x1;return _0xe1624c=>{const _0x20cfb0=_0x4539;_0x1c04e5[_0x20cfb0(0x10e)](_0xe1624c),_0x3f90e2||(_0x3f90e2=!0x0,setTimeout(()=>{const _0x64b2f1=_0x20cfb0;_0x1c04e5[_0x64b2f1(0x1c7)](_0xf6ef44=>_0xf6ef44()),_0x1c04e5=[],_0x3f90e2=!0x1;}));};};let we=class extends _0x321bd0{constructor(_0x2b67a8,_0x27e663,_0x2acce3,_0xe2fc2,_0x1340e3,_0x478847,_0x1df310,_0x464cd7){const _0xaea2d=_0x4a1058;super(),l(this,_0xaea2d(0xea),!0x1),l(this,'_init',!0x1),l(this,_0xaea2d(0x215),new _0x4d6555(new Map())),l(this,_0xaea2d(0x136),this[_0xaea2d(0x215)][_0xaea2d(0x1d3)]()),l(this,_0xaea2d(0x1c9),new _0x4d6555([])),l(this,_0xaea2d(0xec),this[_0xaea2d(0x1c9)][_0xaea2d(0x1e6)](_0x449e70(xi))),l(this,_0xaea2d(0x1d0),_0x25a42e((_0x585b82,_0x56bbc9)=>{const _0x4073b8=_0xaea2d,_0x594080={'eventID':_0x219aca[_0x4073b8(0x13a)],'data':{'unitID':this[_0x4073b8(0x1c5)],'memberID':this[_0x4073b8(0x145)][_0x4073b8(0x17c)](),'selection':_0x177277(_0x585b82,_0x56bbc9[_0x4073b8(0x2ad)])}};this[_0x4073b8(0x145)][_0x4073b8(0x96)](_0x594080,this[_0x4073b8(0x1c5)]);},Bi)),(this[_0xaea2d(0x1c5)]=_0x2b67a8,this[_0xaea2d(0x145)]=_0x27e663,this[_0xaea2d(0x2d1)]=_0x2acce3,this['_colorAssignService']=_0xe2fc2,this[_0xaea2d(0x1ee)]=_0x1340e3,this[_0xaea2d(0x1dc)]=_0x478847,this[_0xaea2d(0x2a1)]=_0x1df310,this['_refRangeService']=_0x464cd7);}get['cursorInfo'](){const _0x1f8047=_0x4a1058;return this[_0x1f8047(0x215)]['getValue']();}get[_0x4a1058(0x1f0)](){const _0x5ce17f=_0x4a1058;return this[_0x5ce17f(0x1c9)][_0x5ce17f(0x2ce)]();}[_0x4a1058(0x21e)](){const _0x1c46ce=_0x4a1058;super[_0x1c46ce(0x21e)](),this[_0x1c46ce(0x215)][_0x1c46ce(0x9c)](new Map()),this[_0x1c46ce(0x215)]['complete'](),this['_roomMembers$'][_0x1c46ce(0x9c)]([]),this[_0x1c46ce(0x1c9)][_0x1c46ce(0xef)]();}['init'](){const _0x1fc8b0=_0x4a1058;this[_0x1fc8b0(0x190)]||(this[_0x1fc8b0(0x190)]=!0x0,this['_session'][_0x1fc8b0(0x279)]['pipe'](_0xa0a1cc(this[_0x1fc8b0(0x106)]))['subscribe'](_0x5821df=>{const _0xe03d42=_0x1fc8b0;_0x5821df===_0xf202c8['ONLINE']?this[_0xe03d42(0x94)]():this[_0xe03d42(0xa6)]();}),this['_session']['event$'][_0x1fc8b0(0x1e6)](_0xa0a1cc(this[_0x1fc8b0(0x106)]))[_0x1fc8b0(0x262)](_0xdd5e0e=>{const _0x357146=_0x1fc8b0,_0x52ccde=_0xdd5e0e[_0x357146(0x26f)];_0x52ccde===_0x219aca['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0xdd5e0e),_0x52ccde===_0x219aca[_0x357146(0xe2)]&&this['_onCursorDelete'](_0xdd5e0e);}),this[_0x1fc8b0(0x287)](),this[_0x1fc8b0(0xca)](this['_commandService'][_0x1fc8b0(0x180)](_0x37a702=>{const _0x54def8=_0x1fc8b0;if(this[_0x54def8(0xea)]&&_0x37a702['id']===_0x117815['id']&&_0x37a702[_0x54def8(0x1de)][_0x54def8(0x2c6)]===this[_0x54def8(0x1c5)]){const _0x31efaf=_0x37a702['params'];this['_updateLocalCursor'](_0x31efaf[_0x54def8(0x248)],_0x31efaf[_0x54def8(0x1fc)][0x0]);}})));}['_onCursorUpdate'](_0x579b54){const _0x3f03e3=_0x4a1058;var _0x18bdf9,_0x42c0c2;const {memberID:_0x868c58,selection:_0x491c24}=_0x579b54['data'],{sheetName:_0x2c92cc,range:_0x53030d}=_0x2f7d46(_0x491c24),_0xd365e4={'name':(_0x42c0c2=(_0x18bdf9=this[_0x3f03e3(0x1ee)]['getMember'](this[_0x3f03e3(0x1c5)],_0x868c58))==null?void 0x0:_0x18bdf9[_0x3f03e3(0x23f)])!=null?_0x42c0c2:'Unknown\x20user','range':this[_0x3f03e3(0x2b8)](_0x2c92cc,_0x53030d),'sheetID':_0x2c92cc,'color':this[_0x3f03e3(0x271)][_0x3f03e3(0x223)](_0x868c58),'selection':_0x491c24},_0x4667c1=this[_0x3f03e3(0x201)];_0x4667c1[_0x3f03e3(0x90)](_0x868c58,_0xd365e4),this[_0x3f03e3(0x215)][_0x3f03e3(0x9c)](_0x4667c1);}[_0x4a1058(0x2a6)](_0x2025a6){const _0x26b704=_0x4a1058,{memberID:_0x131cb3}=_0x2025a6[_0x26b704(0x1ad)],_0x185dfb=this['cursorInfo'];_0x185dfb[_0x26b704(0xf2)](_0x131cb3),this['_cursorInfo$'][_0x26b704(0x9c)](_0x185dfb);}[_0x4a1058(0x2b8)](_0xd40e23,_0x47c96e){const _0x542e6c=_0x4a1058;var _0x339f18,_0x310a8a;const _0x12504e=(_0x310a8a=(_0x339f18=this[_0x542e6c(0x1dc)]['getUniverSheetInstance'](this[_0x542e6c(0x1c5)]))==null?void 0x0:_0x339f18[_0x542e6c(0x114)](_0xd40e23))==null?void 0x0:_0x310a8a[_0x542e6c(0x1b2)]();return(_0x12504e==null?void 0x0:_0x12504e[_0x542e6c(0x24a)](_0x243dbe=>_0x3b0d7c[_0x542e6c(0xa9)](_0x243dbe,_0x47c96e)))||_0x47c96e;}[_0x4a1058(0x287)](){const _0x34cc7f=_0x4a1058,_0x3bd59d=new _0x5f2212(),_0x1ebc9f=Fi(),_0xfcb529=()=>{const _0x493f3f=_0x4539;_0x3bd59d[_0x493f3f(0x21e)]();const _0x31449c=(_0x446a1c,_0x2f1174,_0x5f22e5,_0x504e4e)=>{const _0xf425da=_0x493f3f;let _0x3fe168=[];switch(_0x446a1c['id']){case _0x3c7fd2[_0xf425da(0x28f)]:{_0x3fe168=_0x56f714(_0x446a1c,_0x504e4e);break;}case _0x3c7fd2['DeleteRangeMoveUpCommandId']:{_0x3fe168=_0x49d96e(_0x446a1c,_0x504e4e);break;}case _0x3c7fd2['InsertColCommandId']:{_0x3fe168=_0x2878db(_0x446a1c,_0x504e4e);break;}case _0x3c7fd2['InsertRangeMoveDownCommandId']:{_0x3fe168=_0x2ed1c6(_0x446a1c,_0x504e4e);break;}case _0x3c7fd2[_0xf425da(0x259)]:{_0x3fe168=_0x4f79c2(_0x446a1c,_0x504e4e);break;}case _0x3c7fd2[_0xf425da(0x270)]:{_0x3fe168=_0x108d9c(_0x446a1c,_0x504e4e);break;}case _0x3c7fd2[_0xf425da(0x1aa)]:{_0x3fe168=_0x82b504(_0x446a1c,_0x504e4e);break;}case _0x3c7fd2['RemoveColCommandId']:{_0x3fe168=_0x446f9f(_0x446a1c,_0x504e4e);break;}case _0x3c7fd2[_0xf425da(0x280)]:{_0x3fe168=_0xd0a13e(_0x446a1c,_0x504e4e);break;}}const _0x19bb94=_0x3e1b34(_0x3fe168,_0x504e4e),_0x93bd95=this[_0xf425da(0x201)][_0xf425da(0x298)](_0x2f1174);if(_0x93bd95&&_0x19bb94){const _0x3569e2={..._0x93bd95,'range':_0x19bb94};this[_0xf425da(0x201)][_0xf425da(0x90)](_0x2f1174,_0x3569e2),_0x1ebc9f(()=>{const _0x41d0b6=_0xf425da,_0x1ae13b=this['_refRangeService'][_0x41d0b6(0x9d)](_0x19bb94,_0x256c0c=>(_0x1ae13b[_0x41d0b6(0x21e)](),_0x31449c(_0x256c0c,_0x2f1174,_0x5f22e5,_0x19bb94)));_0x3bd59d[_0x41d0b6(0x177)](_0x1ae13b);});}return{'redos':[],'undos':[]};};this[_0x493f3f(0x201)][_0x493f3f(0x1c7)]((_0x2a0ea0,_0x377b68)=>{const _0x442b26=_0x493f3f,{range:_0x191add,sheetID:_0x15a18e}=_0x2a0ea0,_0x19ea81=this[_0x442b26(0x2c4)]['registerRefRange'](_0x191add,_0x40ec61=>(_0x19ea81[_0x442b26(0x21e)](),_0x31449c(_0x40ec61,_0x377b68,_0x15a18e,_0x191add)));_0x3bd59d[_0x442b26(0x177)](_0x19ea81);});};this[_0x34cc7f(0xca)](_0x2e5ead(this[_0x34cc7f(0x215)][_0x34cc7f(0x262)](()=>{_0xfcb529();})));}[_0x4a1058(0x94)](){const _0x5e4d6a=_0x4a1058;var _0x592da1,_0x30d5dd;if(this[_0x5e4d6a(0xea)]=!0x0,((_0x592da1=this[_0x5e4d6a(0x1dc)][_0x5e4d6a(0x26e)]())==null?void 0x0:_0x592da1[_0x5e4d6a(0x18f)]())!==this[_0x5e4d6a(0x1c5)])return;const _0x46a7cb=(_0x30d5dd=this[_0x5e4d6a(0x2d1)][_0x5e4d6a(0x298)](_0x5099f1)['getCurrentSelections']())==null?void 0x0:_0x30d5dd[0x0],_0x3a1973=this[_0x5e4d6a(0x1dc)][_0x5e4d6a(0x1a6)](_0x5ec37c['UNIVER_SHEET'])[_0x5e4d6a(0x14f)]();_0x46a7cb&&_0x3a1973&&this[_0x5e4d6a(0x1d0)](_0x3a1973[_0x5e4d6a(0x10d)](),_0x46a7cb);}[_0x4a1058(0xa6)](){const _0xa55023=_0x4a1058;this[_0xa55023(0xea)]=!0x1;}};we=$i([B(0x2,_0x22985b(_0x421c05)),B(0x3,_0x22985b(je)),B(0x4,_0x22985b(_0x2fbcf9)),B(0x5,_0x604bfa),B(0x6,_0x5c0795),B(0x7,_0x22985b(_0x1500b9))],we);function _0x4539(_0x80c245,_0x4f4dd9){const _0x45e838=_0x45e8();return _0x4539=function(_0x4539c3,_0x38d0de){_0x4539c3=_0x4539c3-0x90;let _0x1c9458=_0x45e838[_0x4539c3];return _0x1c9458;},_0x4539(_0x80c245,_0x4f4dd9);}var ki=Object[_0x4a1058(0x19c)],Hi=(_0xf66489,_0x4ccf4f,_0x18f407,_0x8a197d)=>{for(var _0x3cbb52=_0x8a197d>0x1?void 0x0:_0x8a197d?ki(_0x4ccf4f,_0x18f407):_0x4ccf4f,_0x5caf9a=_0xf66489['length']-0x1,_0x45811a;_0x5caf9a>=0x0;_0x5caf9a--)(_0x45811a=_0xf66489[_0x5caf9a])&&(_0x3cbb52=_0x45811a(_0x3cbb52)||_0x3cbb52);return _0x3cbb52;},Ee=(_0xe60c4f,_0x470a49)=>(_0x3c2f7d,_0x2b3a2e)=>_0x470a49(_0x3c2f7d,_0x2b3a2e,_0xe60c4f);let H=class extends _0x321bd0{constructor(_0x158bb6,_0x506a26,_0x513a83){const _0x267e33=_0x4a1058;super(),l(this,_0x267e33(0xbf),new Map()),l(this,_0x267e33(0x2c0),new _0xcd5cfe()),(this[_0x267e33(0x1dc)]=_0x158bb6,this['_injector']=_0x506a26,this[_0x267e33(0xb1)]=_0x513a83,this[_0x267e33(0x190)]());}[_0x4a1058(0x21e)](){const _0x398882=_0x4a1058;super[_0x398882(0x21e)](),this['_entityInit$'][_0x398882(0xef)](),this['_entities'][_0x398882(0x1c7)](_0xe71ebd=>_0xe71ebd[_0x398882(0x21e)]());}[_0x4a1058(0x15b)](_0x4e1ac5){const _0xdd28fe=_0x4a1058;return this[_0xdd28fe(0xbf)][_0xdd28fe(0x219)](_0x4e1ac5)?this['_entities'][_0xdd28fe(0x298)](_0x4e1ac5)[_0xdd28fe(0x136)]:this[_0xdd28fe(0x2c0)][_0xdd28fe(0x1e6)](_0x225365(_0x593b8e=>_0x593b8e[_0xdd28fe(0x1c5)]===_0x4e1ac5),_0x3799e1(_0x466ed5=>_0x466ed5['cursorInfo$']));}['_init'](){const _0x4cb30e=_0x4a1058;this[_0x4cb30e(0x1dc)][_0x4cb30e(0x198)](_0x5ec37c['UNIVER_SHEET'])[_0x4cb30e(0x1e6)](_0xa0a1cc(this[_0x4cb30e(0x106)]))['subscribe'](async _0x20f5d6=>{const _0x2fb4cb=_0x4cb30e,_0x4d6780=_0x20f5d6[_0x2fb4cb(0x18f)](),_0x109005=await this[_0x2fb4cb(0x216)](_0x4d6780);this[_0x2fb4cb(0x2c0)]['next'](_0x109005),this[_0x2fb4cb(0xbf)]['set'](_0x4d6780,_0x109005);}),this[_0x4cb30e(0x1dc)][_0x4cb30e(0x198)](_0x5ec37c[_0x4cb30e(0x2ac)])[_0x4cb30e(0x1e6)](_0xa0a1cc(this['dispose$']))[_0x4cb30e(0x1e6)](_0x225365(_0x108cf9=>!_0x108cf9['getUnitId']()[_0x4cb30e(0xd9)]('__')))[_0x4cb30e(0x262)](async _0x10b6de=>{const _0x3c6344=_0x4cb30e,_0x2729d5=_0x10b6de['getUnitId'](),_0x4bc8f7=await this[_0x3c6344(0xd8)](_0x2729d5);this[_0x3c6344(0x2c0)][_0x3c6344(0x9c)](_0x4bc8f7),this[_0x3c6344(0xbf)]['set'](_0x2729d5,_0x4bc8f7);}),_0x283e6c(this[_0x4cb30e(0x1dc)][_0x4cb30e(0x16e)](_0x5ec37c['UNIVER_DOC']),this[_0x4cb30e(0x1dc)][_0x4cb30e(0x16e)](_0x5ec37c[_0x4cb30e(0x12f)]))[_0x4cb30e(0x1e6)](_0xa0a1cc(this[_0x4cb30e(0x106)]))[_0x4cb30e(0x262)](_0x1c0cff=>{const _0x4a5629=_0x4cb30e,_0x5eebc8=_0x1c0cff[_0x4a5629(0x18f)](),_0x30fee6=this[_0x4a5629(0xbf)][_0x4a5629(0x298)](_0x5eebc8);_0x30fee6&&(_0x30fee6[_0x4a5629(0x21e)](),this[_0x4a5629(0xbf)][_0x4a5629(0xf2)](_0x5eebc8));});}async[_0x4a1058(0x216)](_0x32bde7){const _0x30857a=_0x4a1058,_0x2eeb9c=await this[_0x30857a(0xb1)]['requireSession'](_0x32bde7),_0x1dbe7b=this[_0x30857a(0x2d1)][_0x30857a(0x202)](we,_0x32bde7,_0x2eeb9c);return _0x1dbe7b[_0x30857a(0x233)](),_0x1dbe7b;}async[_0x4a1058(0xd8)](_0x569854){const _0x2f71a7=_0x4a1058,_0xb80a33=await this[_0x2f71a7(0xb1)][_0x2f71a7(0x297)](_0x569854),_0x67d80=this[_0x2f71a7(0x2d1)][_0x2f71a7(0x202)](Pe,_0x569854,_0xb80a33);return _0x67d80[_0x2f71a7(0x233)](),_0x67d80;}};H=Hi([Ee(0x0,_0x604bfa),Ee(0x1,_0x22985b(_0x421c05)),Ee(0x2,_0x22985b(_0x31c78a))],H);const Q=0x14,it=0xc8,pe=0x4,Yi=0x5;function Wi(_0x12a191,_0x318d6e){const _0x5c3721=_0x4a1058;let {radius:_0x526140,width:_0x3442c2,height:_0x4b8374}=_0x318d6e;_0x526140=_0x526140!=null?_0x526140:0x0,_0x3442c2=_0x3442c2!=null?_0x3442c2:0x1e,_0x4b8374=_0x4b8374!=null?_0x4b8374:0x1e;let _0x28389a=0x0,_0x4291cb=0x0,_0x2ce409=0x0;_0x28389a=_0x4291cb=_0x2ce409=Math[_0x5c3721(0x10f)](_0x526140,_0x3442c2/0x2,_0x4b8374/0x2),_0x12a191[_0x5c3721(0x191)](),_0x12a191[_0x5c3721(0x113)](_0x28389a,0x0),_0x12a191[_0x5c3721(0x240)](_0x3442c2-_0x4291cb,0x0),_0x12a191[_0x5c3721(0x1b0)](_0x3442c2-_0x4291cb,_0x4291cb,_0x4291cb,Math['PI']*0x3/0x2,0x0,!0x1),_0x12a191[_0x5c3721(0x240)](_0x3442c2,_0x4b8374-_0x2ce409),_0x12a191[_0x5c3721(0x1b0)](_0x3442c2-_0x2ce409,_0x4b8374-_0x2ce409,_0x2ce409,0x0,Math['PI']/0x2,!0x1),_0x12a191[_0x5c3721(0x240)](0x0,_0x4b8374),_0x12a191[_0x5c3721(0x240)](0x0,_0x28389a),_0x12a191[_0x5c3721(0x1b0)](_0x28389a,_0x28389a,_0x28389a,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x12a191[_0x5c3721(0xae)](),_0x318d6e[_0x5c3721(0x218)]&&(_0x12a191[_0x5c3721(0x26d)](),_0x12a191['fillStyle']=_0x318d6e['fill'],_0x318d6e[_0x5c3721(0xcc)]===_0x5c3721(0x188)?_0x12a191[_0x5c3721(0x218)](_0x5c3721(0x188)):_0x12a191[_0x5c3721(0x218)](),_0x12a191[_0x5c3721(0xa3)]());}class me extends _0x557107{constructor(_0x170536,_0x2953f0){const _0x2d430d=_0x4a1058;super(_0x170536,_0x2953f0),l(this,_0x2d430d(0x27e)),l(this,_0x2d430d(0xdd)),(this[_0x2d430d(0x27e)]=_0x2953f0==null?void 0x0:_0x2953f0[_0x2d430d(0x27e)],this[_0x2d430d(0xdd)]=_0x2953f0==null?void 0x0:_0x2953f0[_0x2d430d(0xdd)]);}static[_0x4a1058(0x2c5)](_0x28329a,_0x5039ae){const _0x3a468e=_0x4a1058,{text:_0x267a17,color:_0x8858f1}=_0x5039ae;_0x28329a[_0x3a468e(0x26d)](),_0x28329a[_0x3a468e(0xa2)]=_0x3a468e(0x12d);const _0x28b96e=_0x28329a[_0x3a468e(0x25a)](_0x267a17)[_0x3a468e(0x19d)],_0xe241be=Math[_0x3a468e(0x10f)](_0x28b96e+0x2*pe,it);Wi(_0x28329a,{'height':Q,'radius':0x4,'width':_0xe241be,'fill':_0x8858f1}),_0x28329a['fillStyle']=_0x3a468e(0x165);const _0x1f185d=pe,_0x3828ee=Q-Yi,_0x225a3c=it-0x2*pe;if(_0x28b96e>_0x225a3c){let _0x4b1a0d='',_0x432191=0x0;for(const _0xa32125 of _0x267a17){const _0x125a0c=_0x28329a[_0x3a468e(0x25a)](_0xa32125)[_0x3a468e(0x19d)];if(_0x432191+_0x125a0c<=_0x225a3c-_0x28329a[_0x3a468e(0x25a)](_0x3a468e(0x242))[_0x3a468e(0x19d)])_0x4b1a0d+=_0xa32125,_0x432191+=_0x125a0c;else{_0x4b1a0d+='...';break;}}_0x28329a['fillText'](_0x4b1a0d,_0x1f185d,_0x3828ee);}else _0x28329a[_0x3a468e(0x29c)](_0x267a17,_0x1f185d,_0x3828ee);_0x28329a['restore']();}[_0x4a1058(0x24f)](_0x25cf82){me['drawWith'](_0x25cf82,this);}}const Oe=_0x4a1058(0x1ff),Vi='collab-text-range-',ji='collab-rect-range-',z=0x6,Xi=1.5,Te=0x4,Gi=1.5,Ki='rgba(255,\x20255,\x20255,\x200.01)';class nt{constructor(_0x271039,_0x2d5f31,_0x2b749b,_0x38671f){const _0x19d2d6=_0x4a1058;l(this,'_shapes',[]),l(this,_0x19d2d6(0x291),null),l(this,_0x19d2d6(0x15e),null),l(this,_0x19d2d6(0x17e),null),l(this,_0x19d2d6(0x1e0),null),l(this,'_eventUnsubscribe',null),(this[_0x19d2d6(0xc4)]=_0x271039,this[_0x19d2d6(0xbc)]=_0x2d5f31,this[_0x19d2d6(0x13e)]=_0x2b749b,this[_0x19d2d6(0xbd)]=_0x38671f,this['_render']());}set[_0x4a1058(0x95)](_0x22d5f0){const _0x413e18=_0x4a1058;_0x22d5f0?(this[_0x413e18(0x17e)]&&this[_0x413e18(0x17e)][_0x413e18(0x1ec)](),this[_0x413e18(0x15e)]&&this['_textBubble'][_0x413e18(0x153)]()):(this[_0x413e18(0x17e)]&&this['_anchorDot'][_0x413e18(0x153)](),this[_0x413e18(0x15e)]&&this[_0x413e18(0x15e)][_0x413e18(0x1ec)]());}[_0x4a1058(0x21e)](){const _0x2a5b4c=_0x4a1058;for(const _0x2665ec of this[_0x2a5b4c(0xee)])_0x2665ec[_0x2a5b4c(0x21e)]();this[_0x2a5b4c(0x15e)]&&this['_textBubble'][_0x2a5b4c(0x21e)](),this[_0x2a5b4c(0x17e)]&&this[_0x2a5b4c(0x17e)]['dispose'](),this[_0x2a5b4c(0x291)]&&this['_anchor']['dispose'](),this[_0x2a5b4c(0x266)]&&this[_0x2a5b4c(0x266)]();}[_0x4a1058(0x251)](){const _0xdff58f=_0x4a1058;var _0x5a5f1d;const {_docSkeleton:_0x250239,_document:_0xad3166}=this,{color:_0x2be12a,name:_0x29e2c7,ranges:_0x28e20e}=this[_0xdff58f(0xc4)],_0x33b276=_0xad3166['getOffsetConfig'](),{docsLeft:_0x4ecd65,docsTop:_0x12fa70}=_0x33b276,_0xeaddb2=new _0x7549(_0x33b276,_0x250239);for(const {startOffset:_0x4dcc78,endOffset:_0x27bb36,rangeType:_0x3acd3b,segmentId:_0x1ddb5e,segmentPage:_0x54aeb1,collapsed:_0x2c50f6,isActive:_0xcad2c4}of _0x28e20e){const _0x2c2f10=_0x250239[_0xdff58f(0x1d9)](_0x4dcc78,!0x0,_0x1ddb5e,_0x54aeb1);let _0x427fd3=_0x250239[_0xdff58f(0x1d9)](_0x27bb36,!0x0,_0x1ddb5e,_0x54aeb1);if(_0x427fd3==null&&(_0x427fd3=_0x250239['findNodePositionByCharIndex'](_0x27bb36-0x1,!0x1,_0x1ddb5e,_0x54aeb1)),_0xcad2c4){const {contentBoxPointGroup:_0x5503b9}=_0xeaddb2[_0xdff58f(0x206)](_0x427fd3,_0x427fd3);if(_0x5503b9['length']===0x0)continue;this[_0xdff58f(0x282)](_0x2be12a,_0x5503b9,_0x4ecd65,_0x12fa70,_0x29e2c7),this[_0xdff58f(0x266)]=this[_0xdff58f(0x18c)]();}if(_0x2c2f10&&_0x427fd3){if(_0x3acd3b===_0x8fda61[_0xdff58f(0xf0)]){const _0x13ebae=new _0x3e39ba(_0x33b276,_0x250239),{pointGroup:_0x142f8}=(_0x5a5f1d=_0x13ebae[_0xdff58f(0x206)](_0x2c2f10,_0x427fd3))!=null?_0x5a5f1d:{};if(_0x142f8==null||_0x142f8[_0xdff58f(0x99)]===0x0)continue;this[_0xdff58f(0x2ae)](_0x2be12a,_0x142f8,_0x4ecd65,_0x12fa70);}else{if(!_0x2c50f6){const {borderBoxPointGroup:_0x838030}=_0xeaddb2[_0xdff58f(0x206)](_0x2c2f10,_0x427fd3);if(_0x838030['length']===0x0)continue;this['_drawTextRange'](_0x2be12a,_0x838030,_0x4ecd65,_0x12fa70);}}}}}[_0x4a1058(0x282)](_0x3f6e83,_0x25d17e,_0x363622,_0x20e0d8,_0x4fc56c){const _0x296e1b=_0x4a1058,_0x28f6c0=this[_0x296e1b(0x126)](_0x25d17e),{left:_0x56d3c3,top:_0x540f39,height:_0x56cd7e}=_0x28f6c0,_0x56c886=this['_getScale'](),_0x26dbb4=Gi/_0x56c886,_0x2b6a60=new _0x48ad0c(Oe+_0x52c05b(z),{'left':_0x56d3c3+_0x363622-_0x26dbb4,'top':_0x540f39+_0x20e0d8,'height':_0x56cd7e,'width':Xi,'fill':_0x3f6e83||_0x3a5d8a(_0x2c0292[_0x296e1b(0x1b8)],0x0),'strokeWidth':_0x26dbb4,'stroke':Ki,'evented':!0x0});this[_0x296e1b(0x291)]=_0x2b6a60,this[_0x296e1b(0xbc)][_0x296e1b(0xcf)](_0x2b6a60,_0x29cb1a);const _0x166301=new _0x48ad0c(Oe+_0x52c05b(z),{'left':_0x56d3c3+_0x363622-_0x26dbb4,'top':_0x540f39+_0x20e0d8-Te/0x2,'height':Te,'width':Te,'fill':_0x3f6e83||_0x3a5d8a(_0x2c0292['black'],0x0),'strokeWidth':0x0,'stroke':_0x3f6e83||_0x3a5d8a(_0x2c0292[_0x296e1b(0x1b8)],0x0),'evented':!0x1});this[_0x296e1b(0x17e)]=_0x166301,this[_0x296e1b(0xbc)][_0x296e1b(0xcf)](_0x166301,_0x29cb1a);const _0x24ad30=new me(Oe+_0x52c05b(z),{'left':_0x56d3c3+_0x363622-_0x26dbb4,'top':_0x540f39+_0x20e0d8-Q,'text':_0x4fc56c,'color':_0x3f6e83});this[_0x296e1b(0x15e)]=_0x24ad30,this[_0x296e1b(0xbc)][_0x296e1b(0xcf)](_0x24ad30,_0x29cb1a),this[_0x296e1b(0x95)]=!0x1;}['_handleHover'](){const _0x3ec60a=_0x4a1058,_0x4f79fb=this['_anchor'][_0x3ec60a(0x25c)]['subscribeEvent'](()=>{const _0x27f565=_0x3ec60a;this[_0x27f565(0x95)]=!0x0;}),_0x4eab35=this[_0x3ec60a(0x291)][_0x3ec60a(0x2b6)][_0x3ec60a(0x1bb)](()=>{const _0x122894=_0x3ec60a;this[_0x122894(0x1e0)]&&clearTimeout(this[_0x122894(0x1e0)]),this[_0x122894(0x1e0)]=setTimeout(()=>{const _0x5766d0=_0x122894;this[_0x5766d0(0x95)]=!0x1;},0x7d0);});return()=>{const _0x5b9e6e=_0x3ec60a;_0x4f79fb[_0x5b9e6e(0x18d)](),_0x4eab35[_0x5b9e6e(0x18d)]();};}[_0x4a1058(0x292)](_0x3c6c87,_0x33b9d9,_0x503368,_0x530ed1){const _0x5b7fd0=_0x4a1058,_0x5ee829=new _0x3c136c(_0x3c6c87)['setAlpha'](0.2)[_0x5b7fd0(0x132)](),_0x5cbdec=new _0x48e5d3(Vi+_0x52c05b(z),{'pointsGroup':_0x33b9d9,'fill':_0x5ee829||_0x3a5d8a(_0x2c0292['black'],0.2),'left':_0x503368,'top':_0x530ed1,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5b7fd0(0xee)][_0x5b7fd0(0x10e)](_0x5cbdec),this[_0x5b7fd0(0xbc)][_0x5b7fd0(0xcf)](_0x5cbdec,_0x29cb1a);}['_drawRectRange'](_0x48d7da,_0x181c5c,_0x126491,_0x243289){const _0x3382b8=_0x4a1058,_0x1a84cc=new _0x3c136c(_0x48d7da)['setAlpha'](0.2)[_0x3382b8(0x132)](),_0x22377c=new _0x48e5d3(ji+_0x52c05b(z),{'pointsGroup':_0x181c5c,'fill':_0x1a84cc||_0x3a5d8a(_0x2c0292[_0x3382b8(0x1b8)],0.2),'left':_0x126491,'top':_0x243289,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3382b8(0xee)][_0x3382b8(0x10e)](_0x22377c),this[_0x3382b8(0xbc)][_0x3382b8(0xcf)](_0x22377c,_0x29cb1a);}[_0x4a1058(0x126)](_0x15bd17){const _0x5ef759=_0x15bd17[0x0],_0x51654b=_0x5ef759[0x0],_0x2f6dc8=_0x5ef759[0x2],{x:_0xe27292,y:_0x4481c9}=_0x51654b,{x:_0xe0c817,y:_0x39815d}=_0x2f6dc8;return{'left':_0xe27292,'top':_0x4481c9,'width':_0xe0c817-_0xe27292,'height':_0x39815d-_0x4481c9};}[_0x4a1058(0x22a)](){const _0x3efd4b=_0x4a1058,{scaleX:_0x19e838,scaleY:_0x199881}=this[_0x3efd4b(0xbc)][_0x3efd4b(0x1a2)]();return Math[_0x3efd4b(0x22c)](_0x19e838,_0x199881);}}var zi=Object[_0x4a1058(0x19c)],Ji=(_0x4cfef2,_0x31fb3c,_0x3fd976,_0xa30f7b)=>{const _0x101480=_0x4a1058;for(var _0x7056f6=_0xa30f7b>0x1?void 0x0:_0xa30f7b?zi(_0x31fb3c,_0x3fd976):_0x31fb3c,_0x37c7ff=_0x4cfef2[_0x101480(0x99)]-0x1,_0x16ddc0;_0x37c7ff>=0x0;_0x37c7ff--)(_0x16ddc0=_0x4cfef2[_0x37c7ff])&&(_0x7056f6=_0x16ddc0(_0x7056f6)||_0x7056f6);return _0x7056f6;},ie=(_0x1f5871,_0xb75df8)=>(_0x5ed24b,_0x5f89d5)=>_0xb75df8(_0x5ed24b,_0x5f89d5,_0x1f5871);let ye=class extends _0x321bd0{constructor(_0x3db142,_0x33961f,_0x5cdb30,_0x282a2b,_0x1fb235){const _0x5b807a=_0x4a1058;super(),l(this,_0x5b807a(0x14d),[]),l(this,_0x5b807a(0x27d),[]),(this[_0x5b807a(0xad)]=_0x3db142,this[_0x5b807a(0x288)]=_0x33961f,this[_0x5b807a(0xfe)]=_0x5cdb30,this[_0x5b807a(0x2a1)]=_0x282a2b,this[_0x5b807a(0x12a)]=_0x1fb235,this[_0x5b807a(0x190)]());}['_init'](){const _0x39f4b6=_0x4a1058,_0x25dea9=this[_0x39f4b6(0xad)][_0x39f4b6(0x2c6)],_0x1e398b=this[_0x39f4b6(0x288)];this[_0x39f4b6(0xca)](_0x30ea1d([this[_0x39f4b6(0xfe)][_0x39f4b6(0x15b)](_0x25dea9),this['_themeService'][_0x39f4b6(0x189)]])['pipe'](_0x14d2a3(([_0xdaf9a7,_0x5a710e])=>({'skeleton':_0x1e398b[_0x39f4b6(0xf4)](),'cursors':[..._0xdaf9a7[_0x39f4b6(0x241)]()][_0x39f4b6(0x2d0)](_0x29ca53=>({..._0x29ca53,'color':this[_0x39f4b6(0x12a)][_0x39f4b6(0x1eb)](_0x29ca53[_0x39f4b6(0x27e)])}))})))[_0x39f4b6(0x262)](_0x4bd733=>{const _0x193f21=_0x39f4b6;if(this[_0x193f21(0x2cc)](),_0x4bd733){const {skeleton:_0x896b95,cursors:_0x5bccc8}=_0x4bd733;this['_updateCollabCursors'](_0x896b95,_0x5bccc8);}})),this[_0x39f4b6(0x1c3)](),this['_initCommandExecutedListener']();}[_0x4a1058(0x159)](_0x3dfc86,_0xe374ac){const _0x1cd7d9=_0x4a1058,{scene:_0x1f5fdb,mainComponent:_0x17e1a0}=this['_context'],_0x4dd8a1=_0xe374ac[_0x1cd7d9(0x116)](_0x631248=>new nt(_0x631248,_0x1f5fdb,_0x3dfc86,_0x17e1a0));this['_cursorShapes']=_0x4dd8a1,this['_cursors']=_0xe374ac;}['_refreshCollabCursors'](){const _0x291c78=_0x4a1058;this[_0x291c78(0x2cc)]();const {scene:_0x59458e,mainComponent:_0xebd246}=this[_0x291c78(0xad)],_0x27990b=this[_0x291c78(0x288)][_0x291c78(0xf4)](),_0x238bc5=this[_0x291c78(0x27d)][_0x291c78(0x116)](_0x42e0d4=>new nt(_0x42e0d4,_0x59458e,_0x27990b,_0xebd246));this[_0x291c78(0x14d)]=_0x238bc5;}['_removeCollabCursors'](){const _0x1b48fc=_0x4a1058;this[_0x1b48fc(0x14d)][_0x1b48fc(0x1c7)](_0x20fe71=>_0x20fe71[_0x1b48fc(0x21e)]()),this[_0x1b48fc(0x14d)]=[];}['_initCommandExecutedListener'](){const _0x152b1b=_0x4a1058,_0x333c01=[_0x3c1137['id']];this[_0x152b1b(0xca)](this['_commandService'][_0x152b1b(0x180)](_0x2cbf9d=>{const _0x2e6908=_0x152b1b;_0x333c01[_0x2e6908(0x273)](_0x2cbf9d['id'])&&_0x2cbf9d[_0x2e6908(0x1de)][_0x2e6908(0x2c6)]===this['_context'][_0x2e6908(0x2c6)]&&this[_0x2e6908(0x10b)]();}));}[_0x4a1058(0x1c3)](){const _0x209028=_0x4a1058;this[_0x209028(0xca)](_0x5a1aae(this[_0x209028(0xad)][_0x209028(0x267)][_0x209028(0xa0)])[_0x209028(0x1e6)](_0x36fe7f(_0x36c26c=>_0x36c26c['type']===_0x4334d1[_0x209028(0x15f)]),_0x2e87c4(0x10))[_0x209028(0x262)](()=>{const _0x26b40c=_0x209028;this[_0x26b40c(0x10b)]();}));}};ye=Ji([ie(0x1,_0x22985b(_0x2db7a9)),ie(0x2,_0x22985b(H)),ie(0x3,_0x5c0795),ie(0x4,_0x22985b(_0xd08a6))],ye);const Zi=0x1,Qi=1.5;class qi extends _0x557107{constructor(_0x1deb47,_0x16087c){const _0xe4c046=_0x4a1058;super(_0x1deb47,_0x16087c),l(this,'_color'),l(this,_0xe4c046(0xe4),!0x1),l(this,'_range'),l(this,_0xe4c046(0x26a),''),l(this,_0xe4c046(0x2ba),_0xe4c046(0x212)),l(this,'_backgroundColor'),(_0x16087c&&this[_0xe4c046(0x9b)](_0x16087c),this[_0xe4c046(0x25c)][_0xe4c046(0x1bb)](()=>this[_0xe4c046(0x9b)]({'hovered':!0x0})),this[_0xe4c046(0x2b6)][_0xe4c046(0x1bb)](()=>this[_0xe4c046(0x9b)]({'hovered':!0x1})));}[_0x4a1058(0x9b)](_0x4f10ad){const _0x52e249=_0x4a1058;var _0x7b2219,_0x2c8fb6,_0x1d4f52,_0x3e037b,_0x176e40,_0x5a4be9;this[_0x52e249(0x1f9)]=(_0x7b2219=_0x4f10ad[_0x52e249(0x27e)])!=null?_0x7b2219:this[_0x52e249(0x1f9)],this[_0x52e249(0xe4)]=(_0x2c8fb6=_0x4f10ad[_0x52e249(0x214)])!=null?_0x2c8fb6:this[_0x52e249(0xe4)],this[_0x52e249(0x261)]=(_0x1d4f52=_0x4f10ad[_0x52e249(0x2ad)])!=null?_0x1d4f52:this[_0x52e249(0x261)],this[_0x52e249(0x26a)]=(_0x3e037b=_0x4f10ad[_0x52e249(0x23f)])!=null?_0x3e037b:this['_name'],this[_0x52e249(0x2ba)]=(_0x176e40=_0x4f10ad[_0x52e249(0x2a7)])!=null?_0x176e40:this['_labelPosition'],this[_0x52e249(0x1d8)]=(_0x5a4be9=_0x4f10ad[_0x52e249(0xd6)])!=null?_0x5a4be9:this[_0x52e249(0x1d8)],this['transformByState']({'width':_0x4f10ad[_0x52e249(0x19d)],'height':_0x4f10ad[_0x52e249(0x11b)]});}[_0x4a1058(0x14b)](_0xd9533c){const _0x50c1ea=_0x4a1058,{row:_0x300b0d,column:_0x5367ff}=_0xd9533c;if(_0x300b0d>=this[_0x50c1ea(0x261)][_0x50c1ea(0x2a2)]&&_0x300b0d<=this[_0x50c1ea(0x261)][_0x50c1ea(0x1e2)]&&_0x5367ff>=this[_0x50c1ea(0x261)][_0x50c1ea(0x11c)]&&_0x5367ff<=this[_0x50c1ea(0x261)][_0x50c1ea(0xbe)]){this['setShapeProps']({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}['triggerDblclick'](_0xcb08e6){return!0x1;}[_0x4a1058(0x24f)](_0x1eab32){const _0x88083a=_0x4a1058;_0x48ad0c['drawWith'](_0x1eab32,{'width':this[_0x88083a(0x19d)],'height':this[_0x88083a(0x11b)],'strokeWidth':Qi,'stroke':this[_0x88083a(0x1f9)],'evented':!0x1,'fill':this[_0x88083a(0x1d8)]}),this['_hovered']&&(_0x1eab32['save'](),_0x1eab32[_0x88083a(0x211)](0x1,0x0,0x0,0x1,this['width'],this[_0x88083a(0x2ba)]===_0x88083a(0xb6)?0x0:-Q),me['drawWith'](_0x1eab32,{'text':this[_0x88083a(0x26a)],'color':this['_color']}),_0x1eab32[_0x88083a(0xa3)]());}}var en=Object[_0x4a1058(0x19c)],tn=(_0x58e249,_0x24ea36,_0x29fe47,_0x216609)=>{for(var _0x543656=_0x216609>0x1?void 0x0:_0x216609?en(_0x24ea36,_0x29fe47):_0x24ea36,_0x593815=_0x58e249['length']-0x1,_0x1d399e;_0x593815>=0x0;_0x593815--)(_0x1d399e=_0x58e249[_0x593815])&&(_0x543656=_0x1d399e(_0x543656)||_0x543656);return _0x543656;},Ce=(_0x2150d2,_0x2e11c2)=>(_0x11258b,_0x3c5ad8)=>_0x2e11c2(_0x11258b,_0x3c5ad8,_0x2150d2);const sn=0x1389;let $e=class extends _0x321bd0{constructor(_0x1f80a8,_0x5b8e92,_0x5835c5,_0x2544c6){const _0x7dccf0=_0x4a1058;super(),l(this,'_cursors',new Set()),l(this,_0x7dccf0(0x275),null),(this[_0x7dccf0(0xad)]=_0x1f80a8,this[_0x7dccf0(0x115)]=_0x5b8e92,this[_0x7dccf0(0xfe)]=_0x5835c5,this[_0x7dccf0(0x12a)]=_0x2544c6,this[_0x7dccf0(0x190)]());}[_0x4a1058(0x190)](){const _0x5f0187=_0x4a1058;this[_0x5f0187(0x115)][_0x5f0187(0x169)][_0x5f0187(0x1e6)](_0x340901(this[_0x5f0187(0x106)]),_0x5ae300(_0x594d8b=>{const _0xf5a200=_0x5f0187;if(_0x594d8b){const _0x31f36b=_0x594d8b[_0xf5a200(0x102)];return _0x30ea1d(this['_collabCursorController'][_0xf5a200(0x15b)](this[_0xf5a200(0xad)][_0xf5a200(0x2c6)]),this[_0xf5a200(0x12a)][_0xf5a200(0x189)])['pipe'](_0x14d2a3(([_0x3af7f1,_0x39cd91])=>{const _0x4c2436=new Map();return _0x3af7f1['forEach']((_0xdbb92c,_0x337c06)=>{const _0x54a4f8=_0x4539;if(_0xdbb92c[_0x54a4f8(0x143)]===_0x31f36b){const _0x50ce8f={..._0xdbb92c};_0x50ce8f[_0x54a4f8(0x27e)]=this['_themeService'][_0x54a4f8(0x1eb)](_0xdbb92c[_0x54a4f8(0x27e)]),_0x4c2436['set'](_0x337c06,_0x50ce8f);}}),{'skeleton':_0x594d8b,'cursors':_0x4c2436};}));}return _0x3c8d33({'skeleton':null,'cursors':new Map()});}))[_0x5f0187(0x262)](({skeleton:_0x5a4669,cursors:_0x1500a0})=>{const _0x22be71=_0x5f0187;this[_0x22be71(0x2cc)](),_0x5a4669&&this[_0x22be71(0x159)](_0x5a4669,_0x1500a0);}),this[_0x5f0187(0x115)][_0x5f0187(0x169)]['subscribe'](_0x5eef13=>{const _0x35c73b=_0x5f0187;if(_0x5eef13==null)return;const {skeleton:_0x52ecad}=_0x5eef13,{scene:_0x17d256}=this[_0x35c73b(0xad)];_0x17d256[_0x35c73b(0x186)]['subscribeEvent'](_0x25a42e(_0x45fa32=>{const _0x2f4ea3=_0x35c73b;var _0xd9ae2e,_0x5cc2b0;const {offsetX:_0x1235dd,offsetY:_0x4154c7}=_0x45fa32,{x:_0x5af282,y:_0x4d3171}=_0x17d256[_0x2f4ea3(0x9a)](_0x163fc2[_0x2f4ea3(0x1e4)]([_0x1235dd,_0x4154c7])),{scaleX:_0x343b85,scaleY:_0x35a787}=_0x17d256[_0x2f4ea3(0x1a2)](),_0x34169a=_0x17d256[_0x2f4ea3(0x120)](_0xbf806e['VIEW_MAIN']),_0x45b61d=_0x17d256[_0x2f4ea3(0x151)](_0x163fc2[_0x2f4ea3(0x1e4)]([_0x5af282,_0x4d3171]),_0x34169a),_0x3988fa=_0x52ecad[_0x2f4ea3(0x1f5)](_0x1235dd,_0x4154c7,_0x343b85,_0x35a787,_0x45b61d);((_0xd9ae2e=this['_lastPointer'])==null?void 0x0:_0xd9ae2e[_0x2f4ea3(0x1fb)])===_0x3988fa['column']&&((_0x5cc2b0=this[_0x2f4ea3(0x275)])==null?void 0x0:_0x5cc2b0[_0x2f4ea3(0xc3)])===_0x3988fa['row']||this[_0x2f4ea3(0x27d)]['forEach'](_0x264ce3=>{_0x264ce3['onMouseMove'](_0x3988fa);});},0x64));});}[_0x4a1058(0x159)](_0x231d51,_0x582c01){const _0x107f7f=_0x4a1058;var _0x554dac;const _0x2b21f5=(_0x554dac=this['_sheetSkeletonManagerService']['getCurrent']())==null?void 0x0:_0x554dac[_0x107f7f(0xc0)];if(!_0x2b21f5)return;const _0x463c7a=this[_0x107f7f(0x1e7)]();if(!_0x463c7a)return;this[_0x107f7f(0x27d)][_0x107f7f(0x1c7)](_0x21d780=>{_0x21d780['makeDirty']();});const {scene:_0x12d4b1}=_0x463c7a,_0x4cbef4=nn(Array[_0x107f7f(0x283)](_0x582c01[_0x107f7f(0x241)]()))[_0x107f7f(0x116)](_0x459817=>{const _0x3f09d2=_0x107f7f,{color:_0x1f6a0e,range:_0x14df55,name:_0x17def7,selection:_0x20da7b,sheetID:_0x32fa2e}=_0x459817,{startColumn:_0x4ec754,startRow:_0xb7a27f,endColumn:_0x3a9a8b,endRow:_0x2b1907}=_0x14df55,_0x4c2e93=_0x2349b0(_0xb7a27f,_0x4ec754,_0x12d4b1,_0x2b21f5),_0x364994=_0x2349b0(_0x2b1907,_0x3a9a8b,_0x12d4b1,_0x2b21f5),{columnHeaderHeightAndMarginTop:_0x4b579b}=_0x2b21f5,{startX:_0x55808b,startY:_0x3a5894}=_0x4c2e93,{endX:_0x5b8ebc,endY:_0x220067}=_0x364994,_0x1277d7=_0x5b8ebc-_0x55808b,_0xacc281=_0x220067-_0x3a5894,_0x5c18d1={'labelPosition':_0x3a5894-_0x4b579b>=Q?'top':_0x3f09d2(0xb6),'sheetID':_0x32fa2e,'range':_0x14df55,'color':_0x1f6a0e,'name':_0x17def7,'selection':_0x20da7b,'left':_0x55808b,'top':_0x3a5894,'width':_0x1277d7,'height':_0xacc281,'evented':!0x1,'zIndex':sn};return new qi(_0x17def7,_0x5c18d1);});_0x12d4b1[_0x107f7f(0x22e)](_0x4cbef4,Zi),this[_0x107f7f(0x27d)]=new Set(_0x4cbef4);}[_0x4a1058(0x2cc)](){const _0x9389a8=_0x4a1058;var _0x56bff2;(_0x56bff2=this['_cursors'])==null||_0x56bff2[_0x9389a8(0x1c7)](_0x35a15c=>_0x35a15c['dispose']());}[_0x4a1058(0x1e7)](){const _0x439d62=_0x4a1058;return _0x1d9f3a(this[_0x439d62(0xad)][_0x439d62(0x156)],this[_0x439d62(0xad)]);}};$e=tn([Ce(0x1,_0x22985b(_0x5f3465)),Ce(0x2,_0x22985b(H)),Ce(0x3,_0x22985b(_0xd08a6))],$e);function nn(_0x59244d){const _0x3e2ecb=_0x4a1058,_0x22bb65=new Map();return _0x59244d[_0x3e2ecb(0x1c7)](_0x2a47de=>{const _0x293176=_0x3e2ecb;if(_0x22bb65['has'](_0x2a47de[_0x293176(0x19a)])){const _0x2d11b2=_0x22bb65['get'](_0x2a47de[_0x293176(0x19a)]);_0x2d11b2['name']+=',\x20'+_0x2a47de[_0x293176(0x23f)];}else _0x22bb65['set'](_0x2a47de[_0x293176(0x19a)],_0x2a47de);}),Array['from'](_0x22bb65[_0x3e2ecb(0x241)]());}var rn=Object[_0x4a1058(0x19c)],on=(_0x499901,_0x15e351,_0x4e6ed0,_0x307f70)=>{const _0x3deeae=_0x4a1058;for(var _0x4bf35b=_0x307f70>0x1?void 0x0:_0x307f70?rn(_0x15e351,_0x4e6ed0):_0x15e351,_0x3330cb=_0x499901[_0x3deeae(0x99)]-0x1,_0x4dbaef;_0x3330cb>=0x0;_0x3330cb--)(_0x4dbaef=_0x499901[_0x3330cb])&&(_0x4bf35b=_0x4dbaef(_0x4bf35b)||_0x4bf35b);return _0x4bf35b;},F=(_0x13bda4,_0xed7a0d)=>(_0x1f0329,_0x400289)=>_0xed7a0d(_0x1f0329,_0x400289,_0x13bda4);let ce=class extends _0x2ea4ee{constructor(_0x45fdfa,_0x42572f,_0x8016a8,_0x5d7df7,_0x10bb69,_0x29b7cf){const _0x2b603f=_0x4a1058;super(),this[_0x2b603f(0x157)]=_0x45fdfa,this[_0x2b603f(0x208)]=_0x42572f,this[_0x2b603f(0x29b)]=_0x8016a8,this[_0x2b603f(0x15c)]=_0x5d7df7,this['_notificationService']=_0x10bb69,this[_0x2b603f(0x2b7)]=_0x29b7cf,this[_0x2b603f(0x119)](),this[_0x2b603f(0x1df)]();}['_setupBeforeClosingHandler'](){const _0x24eab2=_0x4a1058;this[_0x24eab2(0xca)](this[_0x24eab2(0x157)][_0x24eab2(0x13d)](()=>{const _0xb4fa4b=_0x24eab2;if(this[_0xb4fa4b(0x208)]['saveTaskMap'][_0xb4fa4b(0x1cc)])return this[_0xb4fa4b(0x2b7)]['t'](_0xb4fa4b(0x272));}));}['_initEvent'](){const _0x5d7027=_0x4a1058;this[_0x5d7027(0xca)](this[_0x5d7027(0x29b)][_0x5d7027(0x220)][_0x5d7027(0x262)](_0x5770ad=>{const _0x332fc7=_0x5d7027;_0x5770ad['id']===_0x47a735[_0x332fc7(0xce)]&&this['_messageService'][_0x332fc7(0x153)]({'type':_0x31bdd1[_0x332fc7(0x264)],'content':this[_0x332fc7(0x2b7)]['t'](_0x332fc7(0x1b6))}),_0x5770ad['id']===_0x47a735[_0x332fc7(0xa4)]&&this['_messageService'][_0x332fc7(0x153)]({'type':_0x31bdd1['Warning'],'content':this['_localeService']['t']('collaboration.closeRoom')}),_0x5770ad['id']===_0x47a735[_0x332fc7(0x221)]&&this['_notificationService'][_0x332fc7(0x153)]({'title':this[_0x332fc7(0x2b7)]['t']('permission.title'),'content':this[_0x332fc7(0x2b7)]['t'](_0x332fc7(0x2a5)),'type':_0x332fc7(0x29e),'duration':0x0}),_0x5770ad['id']===_0x47a735['CONFLICT']&&this[_0x332fc7(0x15c)]['show']({'type':_0x31bdd1[_0x332fc7(0x2cf)],'content':this[_0x332fc7(0x2b7)]['t']('collaboration.closeRoom')+'('+_0x5770ad[_0x332fc7(0x1ad)]+')'}),_0x5770ad['id']===_0x47a735[_0x332fc7(0x18a)]&&this[_0x332fc7(0x15c)][_0x332fc7(0x153)]({'type':_0x31bdd1[_0x332fc7(0x264)],'content':this[_0x332fc7(0x2b7)]['t'](_0x5770ad[_0x332fc7(0x1ad)]||'')}),_0x5770ad['id']===_0x47a735[_0x332fc7(0x16d)]&&this[_0x332fc7(0x15c)][_0x332fc7(0x153)]({'type':_0x31bdd1[_0x332fc7(0x264)],'content':this['_localeService']['t'](_0x332fc7(0x1d7))}),_0x5770ad['id']===_0x47a735[_0x332fc7(0x1da)]&&this[_0x332fc7(0x15c)]['show']({'type':_0x31bdd1[_0x332fc7(0x2cf)],'content':this[_0x332fc7(0x2b7)]['t'](_0x332fc7(0x142))}),_0x5770ad['id']===_0x47a735[_0x332fc7(0x103)]&&this[_0x332fc7(0x15c)][_0x332fc7(0x153)]({'type':_0x31bdd1[_0x332fc7(0x2cf)],'content':this[_0x332fc7(0x2b7)]['t'](_0x332fc7(0x111))});}));}};ce=on([F(0x0,_0x4ea8ef),F(0x1,_0x486a5f),F(0x2,_0x22985b(_0x22187c)),F(0x3,_0x529307),F(0x4,_0x5b33fc),F(0x5,_0x22985b(_0x569789))],ce);const an='collaboration-client-ui.config',rt={};var cn=Object[_0x4a1058(0x19c)],_n=(_0x1b2151,_0x20ed12,_0x20fa29,_0x2e3a6c)=>{const _0x53227e=_0x4a1058;for(var _0x4c864c=_0x2e3a6c>0x1?void 0x0:_0x2e3a6c?cn(_0x20ed12,_0x20fa29):_0x20ed12,_0x1045ac=_0x1b2151[_0x53227e(0x99)]-0x1,_0x29cda1;_0x1045ac>=0x0;_0x1045ac--)(_0x29cda1=_0x1b2151[_0x1045ac])&&(_0x4c864c=_0x29cda1(_0x4c864c)||_0x4c864c);return _0x4c864c;},ot=(_0x5ebbd1,_0x4b4a6b)=>(_0x17b332,_0x10d377)=>_0x4b4a6b(_0x17b332,_0x10d377,_0x5ebbd1);let _e=class{constructor(_0x3d40f3,_0x5ae712){const _0x2d713e=_0x4a1058;this[_0x2d713e(0x27f)]=_0x3d40f3,this['_renderManagerService']=_0x5ae712;}['transformIMECache'](_0xd2e5c2){const _0x73ccc=_0x4a1058;this['_transformUndoRedoStack'](_0xd2e5c2),this[_0x73ccc(0x25d)](_0xd2e5c2);}[_0x4a1058(0x23b)](_0x311e7f){const _0x357c41=_0x4a1058,{unitID:_0x22473b}=_0x311e7f,_0x1a0497=this[_0x357c41(0x25f)][_0x357c41(0xb4)](_0x22473b)[_0x357c41(0x28a)](_0x1a0771),{redoCache:_0xeeb469}=_0x1a0497[_0x357c41(0xb0)]();if(_0xeeb469['length']===0x0)return _0x311e7f;let _0x1fef5b=_0x3e0932[_0x357c41(0x1b4)](_0x311e7f['mutations'][0x0]);for(let _0x5113fc=0x0;_0x5113fc<_0xeeb469[_0x357c41(0x99)];_0x5113fc++){const _0x4cc11c={'id':_0x357c41(0x172),'params':{..._0xeeb469[_0x5113fc]}},_0x4a658a=this[_0x357c41(0x27f)]['transformMutation'](_0x1fef5b,_0x4cc11c,!0x1);if(_0x4c1867(_0x4a658a))throw _0x4a658a[_0x357c41(0x29e)];_0x1fef5b=_0x4a658a[_0x357c41(0x19b)];}return{..._0x3e0932['deepClone'](_0x311e7f),'mutations':[_0x1fef5b]};}[_0x4a1058(0xfa)](_0x433cd4){const _0x169ab6=_0x4a1058,{unitID:_0x341cdc}=_0x433cd4,_0xed9935=this[_0x169ab6(0x25f)][_0x169ab6(0xb4)](_0x341cdc)[_0x169ab6(0x28a)](_0x1a0771),{undoCache:_0x53e1fb,redoCache:_0x208802}=_0xed9935[_0x169ab6(0xb0)]();if(_0x53e1fb[_0x169ab6(0x99)]===0x0||_0x208802[_0x169ab6(0x99)]===0x0)return;const _0x56f2bb=[],_0x4a432c=[];let _0x2388ae=_0x3e0932[_0x169ab6(0x1b4)](_0x433cd4[_0x169ab6(0x185)][0x0]),_0xff287=_0x3e0932[_0x169ab6(0x1b4)](_0x433cd4['mutations'][0x0]);for(let _0x527204=_0x53e1fb[_0x169ab6(0x99)]-0x1;_0x527204>=0x0;_0x527204--){const _0x34df95={'id':'doc.mutation.rich-text-editing','params':{..._0x53e1fb[_0x527204]}},_0x17ec05={'id':_0x169ab6(0x172),'params':{..._0x208802[_0x527204]}},_0xf061eb=this[_0x169ab6(0x27f)][_0x169ab6(0xb3)](_0x2388ae,_0x34df95,!0x1),_0x4eba4d=this['_transformService'][_0x169ab6(0xb3)](_0xff287,_0x17ec05,!0x1);if(_0x4c1867(_0xf061eb))throw _0xf061eb[_0x169ab6(0x29e)];if(_0x4c1867(_0x4eba4d))throw _0x4eba4d[_0x169ab6(0x29e)];_0x56f2bb[_0x169ab6(0x194)](_0xf061eb['m2Prime']['params']),_0x4a432c['unshift'](_0x4eba4d[_0x169ab6(0x14a)][_0x169ab6(0x1de)]),_0x2388ae=_0xf061eb['m1Prime'],_0xff287=_0x4eba4d['m1Prime'];}_0xed9935[_0x169ab6(0x20d)]({'undoCache':_0x56f2bb,'redoCache':_0x4a432c});}[_0x4a1058(0x25d)](_0x23d0aa){const _0x3a0d7f=_0x4a1058,{unitID:_0x3bf81f}=_0x23d0aa,_0x3d4b1e=this[_0x3a0d7f(0x25f)][_0x3a0d7f(0xb4)](_0x3bf81f)[_0x3a0d7f(0x28a)](_0x1a0771),_0x26e394=_0x3d4b1e[_0x3a0d7f(0x91)]();if(_0x26e394==null)return;const _0x2239f=[{'id':_0x3a0d7f(0x172),'params':{'unitId':_0x23d0aa[_0x3a0d7f(0x1c5)],'actions':null,'textRanges':[_0x26e394]}}],_0x3db99b=this[_0x3a0d7f(0x27f)]['transformMutationsWithChangeset'](_0x23d0aa,_0x2239f);if(!_0x5adc85(_0x3db99b))throw _0x3db99b[_0x3a0d7f(0x29e)];const _0x25917f=_0x3db99b[_0x3a0d7f(0x14a)][0x0]['params'][_0x3a0d7f(0x25e)];Array[_0x3a0d7f(0xfc)](_0x25917f)&&_0x25917f[_0x3a0d7f(0x99)]&&_0x3d4b1e[_0x3a0d7f(0x1cd)](_0x25917f[0x0]);}};_e=_n([ot(0x0,_0x918a9),ot(0x1,_0x50a960)],_e);var ln=Object[_0x4a1058(0x19c)],hn=(_0x3d74ed,_0x4bdf12,_0x597314,_0x451024)=>{const _0x47fee4=_0x4a1058;for(var _0x2f2c88=_0x451024>0x1?void 0x0:_0x451024?ln(_0x4bdf12,_0x597314):_0x4bdf12,_0x458dbd=_0x3d74ed[_0x47fee4(0x99)]-0x1,_0x23f096;_0x458dbd>=0x0;_0x458dbd--)(_0x23f096=_0x3d74ed[_0x458dbd])&&(_0x2f2c88=_0x23f096(_0x2f2c88)||_0x2f2c88);return _0x2f2c88;},Re=(_0x32bea9,_0x2d970a)=>(_0x559506,_0x537a5d)=>_0x2d970a(_0x559506,_0x537a5d,_0x32bea9);let le=class{constructor(_0x1daf1c,_0x3a849f,_0x1066d8){const _0x45b3e7=_0x4a1058;this[_0x45b3e7(0x2d1)]=_0x1daf1c,this[_0x45b3e7(0x27f)]=_0x3a849f,this[_0x45b3e7(0x11a)]=_0x1066d8;}[_0x4a1058(0x1ce)](_0x41c350){const _0x5ad8f6=_0x4a1058;this[_0x5ad8f6(0x1ac)](_0x41c350);}[_0x4a1058(0x23b)](_0x1cda4c){const _0x141704=_0x4a1058,{unitID:_0x4d7210}=_0x1cda4c,{collaboration:_0x4e04a1}=this[_0x141704(0x11a)][_0x141704(0x285)](_0x4d7210);if(_0x4e04a1[_0x141704(0x99)]===0x0)return _0x1cda4c;let _0x4da69f=_0x3e0932[_0x141704(0x1b4)](_0x1cda4c[_0x141704(0x185)][0x0]);for(let _0x38906b=0x0;_0x38906b<_0x4e04a1['length'];_0x38906b++){const _0x51e6af={'id':_0x141704(0x172),'params':{'unitId':_0x4e04a1[_0x38906b]['unitId'],..._0x4e04a1[_0x38906b]['redoState']}},_0x454534=this[_0x141704(0x27f)][_0x141704(0xb3)](_0x4da69f,_0x51e6af,!0x1);if(_0x4c1867(_0x454534))throw _0x454534['error'];_0x4da69f=_0x454534[_0x141704(0x19b)];}return{..._0x3e0932[_0x141704(0x1b4)](_0x1cda4c),'mutations':[_0x4da69f]};}['_transformHistoryAndStateStack'](_0x3c184f){const _0x2a4923=_0x4a1058,{unitID:_0x14df6d}=_0x3c184f,{history:_0x3c0822,collaboration:_0x4a6b2b}=this[_0x2a4923(0x11a)][_0x2a4923(0x285)](_0x14df6d);if(_0x3c0822['length']===0x0&&_0x4a6b2b[_0x2a4923(0x99)]===0x0)return;const _0x5c32f1=[],_0x3eee3b=[];let _0x33c571=_0x3e0932[_0x2a4923(0x1b4)](_0x3c184f[_0x2a4923(0x185)][0x0]),_0x346de9=_0x3e0932[_0x2a4923(0x1b4)](_0x3c184f['mutations'][0x0]);for(let _0x23cda2=_0x3c0822['length']-0x1;_0x23cda2>=0x0;_0x23cda2--){const _0x5288cb={'id':_0x2a4923(0x172),'params':{'unitId':_0x3c0822[_0x23cda2][_0x2a4923(0x2c6)],..._0x3c0822[_0x23cda2][_0x2a4923(0x22d)]}},_0x350f9e={'id':_0x2a4923(0x172),'params':{'unitId':_0x3c0822[_0x23cda2][_0x2a4923(0x2c6)],..._0x3c0822[_0x23cda2][_0x2a4923(0xe9)]}},_0x2a8a9d=this[_0x2a4923(0x27f)][_0x2a4923(0xb3)](_0x33c571,_0x5288cb,!0x1),_0x2ed642=this[_0x2a4923(0x27f)][_0x2a4923(0xb3)](_0x346de9,_0x350f9e,!0x1);if(_0x4c1867(_0x2a8a9d))throw _0x2a8a9d['error'];if(_0x4c1867(_0x2ed642))throw _0x2ed642[_0x2a4923(0x29e)];_0x5c32f1[_0x2a4923(0x194)]({..._0x3c0822[_0x23cda2],'undoState':_0x2a8a9d[_0x2a4923(0x14a)][_0x2a4923(0x1de)],'redoState':_0x2ed642[_0x2a4923(0x14a)]['params']}),_0x33c571=_0x2a8a9d[_0x2a4923(0x19b)],_0x346de9=_0x2ed642['m1Prime'];}_0x33c571=_0x3e0932[_0x2a4923(0x1b4)](_0x3c184f[_0x2a4923(0x185)][0x0]),_0x346de9=_0x3e0932['deepClone'](_0x3c184f['mutations'][0x0]);for(let _0x55f0e3=_0x4a6b2b[_0x2a4923(0x99)]-0x1;_0x55f0e3>=0x0;_0x55f0e3--){const _0x4d02b4={'id':_0x2a4923(0x172),'params':{'unitId':_0x4a6b2b[_0x55f0e3][_0x2a4923(0x2c6)],..._0x4a6b2b[_0x55f0e3][_0x2a4923(0x22d)]}},_0x32aee7={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4a6b2b[_0x55f0e3][_0x2a4923(0x2c6)],..._0x4a6b2b[_0x55f0e3][_0x2a4923(0xe9)]}},_0x557452=this[_0x2a4923(0x27f)]['transformMutation'](_0x33c571,_0x4d02b4,!0x1),_0x34a6ed=this[_0x2a4923(0x27f)]['transformMutation'](_0x346de9,_0x32aee7,!0x1);if(_0x4c1867(_0x557452))throw _0x557452[_0x2a4923(0x29e)];if(_0x4c1867(_0x34a6ed))throw _0x34a6ed['error'];_0x3eee3b[_0x2a4923(0x194)]({..._0x4a6b2b[_0x55f0e3],'undoState':_0x557452[_0x2a4923(0x14a)][_0x2a4923(0x1de)],'redoState':_0x34a6ed[_0x2a4923(0x14a)]['params']}),_0x33c571=_0x557452['m1Prime'],_0x346de9=_0x34a6ed['m1Prime'];}this[_0x2a4923(0x11a)][_0x2a4923(0xda)](_0x14df6d,{'history':_0x5c32f1,'collaboration':_0x3eee3b});}};le=hn([Re(0x0,_0x22985b(_0x421c05)),Re(0x1,_0x918a9),Re(0x2,_0x22985b(_0x11674d))],le);var un=Object[_0x4a1058(0x19c)],dn=(_0x4a0e8e,_0x26bcf4,_0x220eec,_0x2cc290)=>{const _0x3b0943=_0x4a1058;for(var _0x273323=_0x2cc290>0x1?void 0x0:_0x2cc290?un(_0x26bcf4,_0x220eec):_0x26bcf4,_0x66ffd0=_0x4a0e8e[_0x3b0943(0x99)]-0x1,_0x3bb06b;_0x66ffd0>=0x0;_0x66ffd0--)(_0x3bb06b=_0x4a0e8e[_0x66ffd0])&&(_0x273323=_0x3bb06b(_0x273323)||_0x273323);return _0x273323;},at=(_0x422201,_0x58d995)=>(_0x59ddcd,_0xa08319)=>_0x58d995(_0x59ddcd,_0xa08319,_0x422201);let he=class{constructor(_0x201bc3,_0x558f6a){const _0x12921a=_0x4a1058;this[_0x12921a(0x2d1)]=_0x201bc3,this[_0x12921a(0x27f)]=_0x558f6a;}[_0x4a1058(0x164)](_0x3db451){const _0x25923b=_0x4a1058;var _0x11b8eb;const _0x338db8=this[_0x25923b(0x2d1)]['get'](_0x437796),_0x3a3551=(_0x11b8eb=_0x338db8[_0x25923b(0x140)]())!=null?_0x11b8eb:[];if(_0x3a3551[_0x25923b(0x99)]===0x0)return;const _0x349cd5=_0x3db451[_0x25923b(0x1c5)],_0x562f92=[{'id':_0x25923b(0x172),'params':{'unitId':_0x349cd5,'actions':null,'textRanges':_0x3a3551}}],_0x23181e=this[_0x25923b(0x27f)][_0x25923b(0x1cf)](_0x3db451,_0x562f92);if(!_0x5adc85(_0x23181e))throw _0x23181e[_0x25923b(0x29e)];const _0x9d6f99=_0x23181e[_0x25923b(0x14a)][0x0][_0x25923b(0x1de)][_0x25923b(0x25e)];Array[_0x25923b(0xfc)](_0x9d6f99)&&_0x9d6f99['length']&&_0x338db8[_0x25923b(0x196)](_0x9d6f99,{'unitId':_0x349cd5,'subUnitId':_0x349cd5},!0x1);}};he=dn([at(0x0,_0x22985b(_0x421c05)),at(0x1,_0x918a9)],he);var Sn=Object[_0x4a1058(0x19c)],In=(_0x113567,_0x3bcd1f,_0x1cdb77,_0x264e9f)=>{for(var _0x3575aa=_0x264e9f>0x1?void 0x0:_0x264e9f?Sn(_0x3bcd1f,_0x1cdb77):_0x3bcd1f,_0x29732f=_0x113567['length']-0x1,_0x545032;_0x29732f>=0x0;_0x29732f--)(_0x545032=_0x113567[_0x29732f])&&(_0x3575aa=_0x545032(_0x3575aa)||_0x3575aa);return _0x3575aa;},b=(_0x55d630,_0x4eb447)=>(_0x4af682,_0x40cf83)=>_0x4eb447(_0x4af682,_0x40cf83,_0x55d630);let ue=class extends _0x2ea4ee{constructor(_0x47b542,_0x3a5a46,_0x19decf,_0x595062,_0x2f0488,_0x28e8fe,_0x15f850,_0x3191ec){const _0x4df683=_0x4a1058;super(),l(this,'_status$',new _0x4d6555(_0x85e9be['NOT_COLLAB'])),(this[_0x4df683(0x11a)]=_0x47b542,this[_0x4df683(0xe3)]=_0x3a5a46,this[_0x4df683(0x123)]=_0x19decf,this['_docTransformStateCacheService']=_0x595062,this['_docTransformSelectionsService']=_0x2f0488,this[_0x4df683(0xc6)]=_0x28e8fe,this['_messageService']=_0x15f850,this[_0x4df683(0x2b7)]=_0x3191ec,this[_0x4df683(0x160)]());}[_0x4a1058(0x160)](){const _0x1880ae=_0x4a1058;this[_0x1880ae(0xca)](this['_collaborationController'][_0x1880ae(0x23d)]['subscribe'](_0x3f610f=>{const _0x5bcb7d=_0x1880ae,_0x16c386=this[_0x5bcb7d(0x11a)][_0x5bcb7d(0x250)]['subscribe'](_0x5a8d48=>{const _0x426f5c=_0x5bcb7d;if(_0x5a8d48==null)return;const {unitId:_0xfed94a,redoState:_0x1be758,commandId:_0xa468bf}=_0x5a8d48;if(_0xfed94a!==_0x3f610f[_0x426f5c(0x1c5)])return;const _0x221443={'id':_0xa468bf,'type':_0x3f2b39['MUTATION'],'params':{'unitId':_0xfed94a,'actions':_0x1be758[_0x426f5c(0x12b)],'textRanges':null}};_0x3f610f[_0x426f5c(0x276)](_0x221443);});if(_0x3f610f[_0x5bcb7d(0xca)](_0x16c386),_0x3f610f instanceof _0x1d469f){const _0x1b3a02={'onTransformIME':_0x88e915=>this[_0x5bcb7d(0x123)][_0x5bcb7d(0x1b7)](_0x88e915),'onTransformState':_0x3e8d0c=>this[_0x5bcb7d(0x174)][_0x5bcb7d(0x1ce)](_0x3e8d0c),'onTransformSelections':_0x5a90f4=>this[_0x5bcb7d(0x2bd)][_0x5bcb7d(0x164)](_0x5a90f4),'onSyncEditingCollabCursor':_0x443908=>this[_0x5bcb7d(0xc6)][_0x5bcb7d(0xd0)](_0x443908),'onTransformRemoteChangesetByIMECache':_0x4e8b17=>this['_docTransformIMECacheService'][_0x5bcb7d(0x23b)](_0x4e8b17),'onTransformRemoteChangesetByStateCache':_0x219cd3=>this['_docTransformStateCacheService'][_0x5bcb7d(0x23b)](_0x219cd3)};_0x3f610f['addHandlerCallback'](_0x1b3a02);}}));}};ue=In([b(0x0,_0x22985b(_0x11674d)),b(0x1,_0x22985b(_0x4f89a9)),b(0x2,_0x22985b(_e)),b(0x3,_0x22985b(le)),b(0x4,_0x22985b(he)),b(0x5,_0x22985b(Xe)),b(0x6,_0x529307),b(0x7,_0x22985b(_0x569789))],ue);var Z=(_0x1b2047=>(_0x1b2047[_0x1b2047[_0x4a1058(0x1fe)]=0x0]=_0x4a1058(0x1fe),_0x1b2047[_0x1b2047['OK']=0x1]='OK',_0x1b2047[_0x1b2047['INTERNAL_ERROR']=0x2]=_0x4a1058(0x236),_0x1b2047[_0x1b2047[_0x4a1058(0x221)]=0x3]='PERMISSION_DENIED',_0x1b2047[_0x1b2047[_0x4a1058(0x21b)]=0x4]=_0x4a1058(0x21b),_0x1b2047[_0x1b2047[_0x4a1058(0x109)]=0x5]=_0x4a1058(0x109),_0x1b2047[_0x1b2047[_0x4a1058(0x92)]=0x6]=_0x4a1058(0x92),_0x1b2047[_0x1b2047[_0x4a1058(0x2c3)]=0x7]='INVALID_ARGUMENT',_0x1b2047[_0x1b2047[_0x4a1058(0xf7)]=0x8]=_0x4a1058(0xf7),_0x1b2047[_0x1b2047['COMPLETION_FINISHED']=0x9]=_0x4a1058(0x146),_0x1b2047[_0x1b2047[_0x4a1058(0x257)]=0xa]=_0x4a1058(0x257),_0x1b2047[_0x1b2047[_0x4a1058(0x22f)]=0xb]=_0x4a1058(0x22f),_0x1b2047[_0x1b2047[_0x4a1058(0x281)]=0xc]=_0x4a1058(0x281),_0x1b2047[_0x1b2047[_0x4a1058(0x131)]=0xd]=_0x4a1058(0x131),_0x1b2047[_0x1b2047[_0x4a1058(0xe6)]=0xe]=_0x4a1058(0xe6),_0x1b2047[_0x1b2047[_0x4a1058(0xe0)]=0xf]='AUTHORIZE_CODE_ILLEGAL',_0x1b2047[_0x1b2047[_0x4a1058(0xf8)]=0x10]=_0x4a1058(0xf8),_0x1b2047[_0x1b2047[_0x4a1058(0x11d)]=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x1b2047[_0x1b2047[_0x4a1058(0x97)]=0x65]=_0x4a1058(0x97),_0x1b2047[_0x1b2047[_0x4a1058(0x193)]=0xc9]=_0x4a1058(0x193),_0x1b2047[_0x1b2047[_0x4a1058(0x1ae)]=0xca]=_0x4a1058(0x1ae),_0x1b2047[_0x1b2047[_0x4a1058(0x16b)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x1b2047[_0x1b2047['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x4a1058(0x1ea),_0x1b2047[_0x1b2047[_0x4a1058(0x1e3)]=0x1772]=_0x4a1058(0x1e3),_0x1b2047[_0x1b2047[_0x4a1058(0x154)]=0x1773]=_0x4a1058(0x154),_0x1b2047[_0x1b2047[_0x4a1058(0x21c)]=0x1b59]=_0x4a1058(0x21c),_0x1b2047[_0x1b2047[_0x4a1058(0x2aa)]=0x1b5a]=_0x4a1058(0x2aa),_0x1b2047[_0x1b2047[_0x4a1058(0x1b9)]=0x1b5b]=_0x4a1058(0x1b9),_0x1b2047[_0x1b2047['APPLY_PERMISSION_DENIED']=0x1b5c]='APPLY_PERMISSION_DENIED',_0x1b2047[_0x1b2047[_0x4a1058(0x158)]=0x1b5d]=_0x4a1058(0x158),_0x1b2047[_0x1b2047['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x4a1058(0xc5),_0x1b2047[_0x1b2047['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x4a1058(0x127),_0x1b2047[_0x1b2047['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x4a1058(0x2c7),_0x1b2047[_0x1b2047[_0x4a1058(0x2ab)]=0x232b]=_0x4a1058(0x2ab),_0x1b2047[_0x1b2047['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x4a1058(0x23c),_0x1b2047[_0x1b2047[_0x4a1058(0x2bf)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x1b2047[_0x1b2047[_0x4a1058(0x28d)]=0x2711]=_0x4a1058(0x28d),_0x1b2047[_0x1b2047[_0x4a1058(0x205)]=0x2712]=_0x4a1058(0x205),_0x1b2047[_0x1b2047['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x4a1058(0xdf),_0x1b2047[_0x1b2047[_0x4a1058(0x245)]=0x2714]=_0x4a1058(0x245),_0x1b2047[_0x1b2047[_0x4a1058(0x1f3)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x1b2047[_0x1b2047[_0x4a1058(0x170)]=0x271b]=_0x4a1058(0x170),_0x1b2047[_0x1b2047[_0x4a1058(0x17b)]=0x271c]=_0x4a1058(0x17b),_0x1b2047[_0x1b2047[_0x4a1058(0x104)]=0x271d]=_0x4a1058(0x104),_0x1b2047[_0x1b2047[_0x4a1058(0x107)]=0x271e]=_0x4a1058(0x107),_0x1b2047[_0x1b2047[_0x4a1058(0x141)]=0x271f]=_0x4a1058(0x141),_0x1b2047[_0x1b2047[_0x4a1058(0xb8)]=0x2720]=_0x4a1058(0xb8),_0x1b2047[_0x1b2047[_0x4a1058(0x2b1)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x1b2047[_0x1b2047[_0x4a1058(0x1d4)]=0x2ee1]=_0x4a1058(0x1d4),_0x1b2047[_0x1b2047[_0x4a1058(0x17f)]=0x2ee2]=_0x4a1058(0x17f),_0x1b2047[_0x1b2047[_0x4a1058(0x1c4)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x1b2047[_0x1b2047[_0x4a1058(0x1ef)]=0x2ee4]=_0x4a1058(0x1ef),_0x1b2047[_0x1b2047[_0x4a1058(0xe7)]=0x2ee5]=_0x4a1058(0xe7),_0x1b2047[_0x1b2047[_0x4a1058(0x16c)]=0x32c9]=_0x4a1058(0x16c),_0x1b2047[_0x1b2047[_0x4a1058(0x181)]=0x32ca]=_0x4a1058(0x181),_0x1b2047[_0x1b2047[_0x4a1058(0x135)]=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x1b2047[_0x1b2047[_0x4a1058(0x225)]=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0x1b2047[_0x1b2047['ENTITLE_UPDOWN_GRADE_NOT_SUPPORT']=0x36b2]=_0x4a1058(0x15d),_0x1b2047[_0x1b2047[_0x4a1058(0x278)]=0x36b3]='ENTITLE_DUP_SUBSCRIPTION',_0x1b2047[_0x1b2047[_0x4a1058(0xc8)]=0x36b4]=_0x4a1058(0xc8),_0x1b2047[_0x1b2047['ENTITLE_CHAT_LIMIT_EXCEED']=0x3715]=_0x4a1058(0x93),_0x1b2047[_0x1b2047[_0x4a1058(0x20a)]=0x3716]='ENTITLE_REPORT_LIMIT_EXCEED',_0x1b2047[_0x1b2047[_0x4a1058(0x26c)]=0x37dd]=_0x4a1058(0x26c),_0x1b2047[_0x1b2047[_0x4a1058(0x2cb)]=0x3a99]=_0x4a1058(0x2cb),_0x1b2047[_0x1b2047['REDEMPTION_CODE_INACTIVE']=0x3a9a]='REDEMPTION_CODE_INACTIVE',_0x1b2047[_0x1b2047[_0x4a1058(0xa7)]=0x3a9b]='REDEMPTION_CODE_FULLY_REDEEMED',_0x1b2047[_0x1b2047[_0x4a1058(0x152)]=0x3a9c]=_0x4a1058(0x152),_0x1b2047[_0x1b2047[_0x4a1058(0x144)]=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x1b2047[_0x1b2047[_0x4a1058(0x237)]=0x3a9e]=_0x4a1058(0x237),_0x1b2047[_0x1b2047[_0x4a1058(0xba)]=0x3a9f]=_0x4a1058(0xba),_0x1b2047[_0x1b2047[_0x4a1058(0x2a9)]=-0x1]=_0x4a1058(0x2a9),_0x1b2047))(Z||{});function mn(_0x1289ba){const _0x2b40c9=_0x4a1058;var _0x6b0e32,_0x1c48a2;const _0x3b8ce5=(_0x6b0e32=_0x1289ba[_0x2b40c9(0x1a9)])==null?void 0x0:_0x6b0e32[_0x2b40c9(0x1c2)],_0x446fe7=((_0x1c48a2=_0x1289ba['stageInfo'])==null?void 0x0:_0x1c48a2[_0x2b40c9(0xcb)])||0x0;return _0x3b8ce5===_0x4bcca7[_0x2b40c9(0xfb)]&&_0x446fe7>0x0;}function fn(_0x4bba36){const _0x2a8911=_0x4a1058;return _0x4bba36[_0x2a8911(0x105)]===_0x48201f['SUCCESS'];}var gn=Object[_0x4a1058(0x19c)],vn=(_0x9af1b2,_0x4d0d1d,_0xe85c37,_0x120256)=>{const _0x1a6863=_0x4a1058;for(var _0x1721db=_0x120256>0x1?void 0x0:_0x120256?gn(_0x4d0d1d,_0xe85c37):_0x4d0d1d,_0x47ca12=_0x9af1b2[_0x1a6863(0x99)]-0x1,_0x470577;_0x47ca12>=0x0;_0x47ca12--)(_0x470577=_0x9af1b2[_0x47ca12])&&(_0x1721db=_0x470577(_0x1721db)||_0x1721db);return _0x1721db;},P=(_0x122647,_0x16ce5)=>(_0x441090,_0x344de1)=>_0x16ce5(_0x441090,_0x344de1,_0x122647);const En=_0x4a1058(0x162),pn=_0x4a1058(0xe5),On='/universer-api/license/formula/limit/done';let de=class extends _0x2ea4ee{constructor(_0x5af5b9,_0x48d156,_0x1c6df2,_0x44bd9e,_0x128e06,_0x4b0fe4,_0x194ac0){const _0x3db581=_0x4a1058;super(),l(this,_0x3db581(0x20f),null),l(this,_0x3db581(0x252),0x0),l(this,_0x3db581(0x2a3),0x0),l(this,_0x3db581(0x195),[]),l(this,_0x3db581(0x11f),0x0),(this['_messageService']=_0x5af5b9,this[_0x3db581(0x2a1)]=_0x48d156,this[_0x3db581(0xc7)]=_0x1c6df2,this[_0x3db581(0x1e5)]=_0x44bd9e,this[_0x3db581(0x1dc)]=_0x128e06,this['_logService']=_0x4b0fe4,this['_localeService']=_0x194ac0,this[_0x3db581(0x22b)]());}[_0x4a1058(0x22b)](){const _0x9e7ace=_0x4a1058;this[_0x9e7ace(0xca)](this['_commandService'][_0x9e7ace(0x149)]((_0x5092af,_0x56572c)=>{const _0x2cf042=_0x9e7ace;if(_0x5092af['id']!==_0x1ceb29['id'])return;const _0x5d7b41=_0x5092af[_0x2cf042(0x1de)];if(!this[_0x2cf042(0x232)](_0x5d7b41[_0x2cf042(0x255)]))return;if(!this[_0x2cf042(0x134)]())throw this['_checkAndWaitForCalculationPermission'](_0x5092af,_0x56572c),this[_0x2cf042(0x289)](),new _0x1ee7c7();})),this[_0x9e7ace(0xca)](this[_0x9e7ace(0x2a1)][_0x9e7ace(0x180)]((_0x2b36ce,_0x2996ac)=>{const _0x2b523d=_0x9e7ace;if(_0x2b36ce['id']!==_0x48ea6e['id'])return;const _0x445b71=_0x2b36ce['params'];if(mn(_0x445b71)){const _0x43ae3c=_0x52c05b();this[_0x2b523d(0x195)]['push'](_0x43ae3c),this['_startCalculationLimit'](_0x43ae3c);}else{if(fn(_0x445b71)&&this[_0x2b523d(0x195)]['length']>0x0){const _0x1f9ae6=this['_taskIds'][_0x2b523d(0x1bc)]();this[_0x2b523d(0x235)](_0x1f9ae6);}}}));}[_0x4a1058(0x21e)](){const _0x3cde23=_0x4a1058;super[_0x3cde23(0x21e)](),this['_clearPolling'](),this[_0x3cde23(0x195)]=[],this[_0x3cde23(0x2a3)]=0x0,this[_0x3cde23(0x252)]=0x0,this[_0x3cde23(0x11f)]=0x0;}async[_0x4a1058(0x112)](_0x45577d,_0x5a1a06){const _0x2a82df=_0x4a1058;for(let _0x1f56a1=0x0;_0x1f56a1<0x1e;_0x1f56a1++)try{if(await this[_0x2a82df(0xac)](),this[_0x2a82df(0x134)]()){this[_0x2a82df(0x263)](_0x45577d,_0x5a1a06),this[_0x2a82df(0x15c)][_0x2a82df(0x153)]({'content':this[_0x2a82df(0x2b7)]['t'](_0x2a82df(0x108)),'type':_0x31bdd1['Success']});return;}await new Promise(_0x5c88e4=>{const _0x179b79=_0x2a82df;this['_pollingInterval']=window[_0x179b79(0xd3)](_0x5c88e4,0x3e8);});}catch(_0x3133a3){this[_0x2a82df(0x2b3)][_0x2a82df(0x29e)](_0x3133a3);}this[_0x2a82df(0x15c)]['show']({'content':this['_localeService']['t'](_0x2a82df(0x1b1)),'type':_0x31bdd1['Error']});}[_0x4a1058(0x263)](_0x1f8918,_0x51658c){const _0x423cee=_0x4a1058;try{this[_0x423cee(0x2a1)][_0x423cee(0x246)](_0x1f8918['id'],_0x1f8918[_0x423cee(0x1de)],_0x51658c);}catch(_0x2c8a16){this[_0x423cee(0x2b3)]['error'](_0x2c8a16);}}[_0x4a1058(0x2a8)](_0x3832a1,_0x2e3bbc){const _0x6e74b1=_0x4a1058;_0x2e3bbc<this[_0x6e74b1(0x11f)]||(this[_0x6e74b1(0x11f)]=_0x2e3bbc,this[_0x6e74b1(0x252)]=Number[_0x6e74b1(0x1cb)](_0x3832a1[_0x6e74b1(0x229)]),this[_0x6e74b1(0x2a3)]=Number[_0x6e74b1(0x1cb)](_0x3832a1[_0x6e74b1(0x231)]));}async[_0x4a1058(0x1d2)](_0x4599fe){const _0x326e7d=_0x4a1058;var _0x2f8a96,_0xaa181a;const _0x1aa502=Date[_0x326e7d(0x29d)]();try{const _0x21c369=((_0x2f8a96=this[_0x326e7d(0xc7)][_0x326e7d(0x19e)](_0x5adb8e))==null?void 0x0:_0x2f8a96[_0x326e7d(0x13b)])||pn,_0x5bd527=(await this[_0x326e7d(0x1e5)][_0x326e7d(0x2c9)](_0x21c369,{'body':JSON[_0x326e7d(0xeb)]({'taskId':_0x4599fe})}))[_0x326e7d(0x128)];if(((_0xaa181a=_0x5bd527['error'])==null?void 0x0:_0xaa181a[_0x326e7d(0xf3)])!==Z['OK'])return;this['_setFormulaLimitStatus'](_0x5bd527[_0x326e7d(0x117)],_0x1aa502);}catch(_0x5e1141){this[_0x326e7d(0x2b3)]['error'](_0x5e1141);}}async['_getFormulaLimitStatus'](_0x43fa59){const _0x43faf4=_0x4a1058;var _0xb51a04,_0xcfd66b;const _0x45dd56=Date[_0x43faf4(0x29d)]();try{const _0x28dfd5=((_0xb51a04=this['_configService'][_0x43faf4(0x19e)](_0x5adb8e))==null?void 0x0:_0xb51a04[_0x43faf4(0x1be)])||En,_0x4deb84=_0x43fa59?_0x28dfd5+_0x43faf4(0x139)+encodeURIComponent(_0x43fa59):_0x28dfd5,_0x53d0d4=(await this[_0x43faf4(0x1e5)][_0x43faf4(0x298)](_0x4deb84))[_0x43faf4(0x128)];if(((_0xcfd66b=_0x53d0d4[_0x43faf4(0x29e)])==null?void 0x0:_0xcfd66b['code'])!==Z['OK'])return;this[_0x43faf4(0x2a8)](_0x53d0d4[_0x43faf4(0x117)],_0x45dd56);}catch(_0x5f59a2){this['_logService'][_0x43faf4(0x29e)](_0x5f59a2);}}async[_0x4a1058(0x235)](_0x375b52){const _0x32e0d0=_0x4a1058;var _0x15bcb7,_0x64f9ce;const _0x4ac9c5=Date['now']();try{const _0xb6cdc7=((_0x15bcb7=this[_0x32e0d0(0xc7)][_0x32e0d0(0x19e)](_0x5adb8e))==null?void 0x0:_0x15bcb7['releaseFormulaLimitUrl'])||On,_0x3730f0=(await this[_0x32e0d0(0x1e5)][_0x32e0d0(0x2c9)](_0xb6cdc7,{'body':JSON['stringify']({'taskId':_0x375b52})}))[_0x32e0d0(0x128)];if(((_0x64f9ce=_0x3730f0[_0x32e0d0(0x29e)])==null?void 0x0:_0x64f9ce[_0x32e0d0(0xf3)])!==Z['OK'])return;this[_0x32e0d0(0x2a8)](_0x3730f0[_0x32e0d0(0x117)],_0x4ac9c5);}catch(_0x7bfe09){this[_0x32e0d0(0x2b3)]['error'](_0x7bfe09);}}['_checkCalculationAvailable'](){const _0x54bf79=_0x4a1058;return this[_0x54bf79(0x252)]===0x0?!0x0:this[_0x54bf79(0x252)]-this[_0x54bf79(0x2a3)]>0x0;}['_clearPolling'](){const _0x27799e=_0x4a1058;this[_0x27799e(0x20f)]&&(clearTimeout(this[_0x27799e(0x20f)]),this[_0x27799e(0x20f)]=null);}[_0x4a1058(0x289)](){const _0x16e57f=_0x4a1058;this[_0x16e57f(0x15c)][_0x16e57f(0x153)]({'content':this['_localeService']['t'](_0x16e57f(0xaa)),'type':_0x31bdd1[_0x16e57f(0x217)]});}[_0x4a1058(0x232)](_0x96828f){const _0x35f032=_0x4a1058;for(const _0x5155aa of _0x96828f){const {unitId:_0x26d23f,sheetId:_0x5487e3,range:_0x308eaa}=_0x5155aa,_0x21a5a2=this['_univerInstanceService'][_0x35f032(0x227)](_0x26d23f);if(!_0x21a5a2)continue;const _0x1cb59f=_0x21a5a2[_0x35f032(0x114)](_0x5487e3);if(!_0x1cb59f)continue;const _0x554b90=_0x1cb59f['getCellMatrix']();for(let _0x23cc1d=_0x308eaa[_0x35f032(0x2a2)];_0x23cc1d<=_0x308eaa['endRow'];_0x23cc1d++)for(let _0x22ffbb=_0x308eaa[_0x35f032(0x11c)];_0x22ffbb<=_0x308eaa[_0x35f032(0xbe)];_0x22ffbb++){const _0x3027cc=_0x554b90['getValue'](_0x23cc1d,_0x22ffbb);if(_0x3027cc&&(_0x17812e(_0x3027cc['f'])||_0x2448fc(_0x3027cc['si'])))return!0x0;}}return!0x1;}};function _0x45e8(){const _0x37e5e9=['updateOfflineData','_getAnchorBounding','LICENSE_MAX_UNITS_EXCEEDED','body','sessionTicket','_themeService','actions','collab-client.tooltip.reconnect','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','urlChange$','UNIVER_SHEET','pushState','EMAIL_VERIFY_CODE_MISMATCH','toRgbString','off-line-icon','_checkCalculationAvailable','EMAIL_HAS_BEEN_BOUND','cursorInfo$','6rObddT','registerComponent','?taskId=','UPDATE_CURSOR','startFormulaLimitUrl','storage','registerBeforeClose','_docSkeleton','OTHER_CLIENTS_EDITING','getDocRanges','YUUMI_AI_RUN_FAILED','session.connection-failed','sheetID','REDEMPTION_USER_NOT_ELIGIBLE','_session','COMPLETION_FINISHED','_updateSubUnitFromURLParams','replaceState','beforeCommandExecuted','m2Prime','onMouseMove','location','_cursorShapes','OFFLINE','getActiveSheet','defineProperty','getVpScrollXYInfoByPosToVp','REDEMPTION_CODE_NOT_STARTED','show','ENSURE_SNAPSHOT_EXECUTION','svg','unit','_beforeCloseService','APPLY_DUPLICATED','_updateCollabCursors','searchParams','getCollabCursors$','_messageService','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_textBubble','resize','_initEntityListener','round','/universer-api/license/formula/limit/status','_saveCache','transformSelections','#FFF','_handleEvent','children','defIds','currentSkeleton$','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','CHANGESET_REVISION_CONFILICT','WECHAT_HAS_BEEN_BOUND','SOCKET_FAILED_RETRY','getTypeOfUnitDisposed$','defs','YUUMI_ASYNCIO_CANCELLED','type','doc.mutation.rich-text-editing','xlink:href','_docTransformStateCacheService','entries','0\x200\x2017\x2016','add','_heartbeatTimer','trim','Unknown\x20user','YUUMI_TABLE_NOT_FOUND_IN_UNIT','getMemberID','memberID','_anchorDot','INVALID_INVITE_CODE','onCommandExecuted','MOBILE_HAS_BEEN_BOUND','_colorIndex','_send','_disabled','mutations','onPointerMove$','_saveTaskMap','evenodd','currentTheme$','JOIN_ROOM_FAILED','yellow.400','_handleHover','unsubscribe','univer-mr-2\x20univer-flex\x20univer-text-xl','getUnitId','_init','beginPath','runOnServer','USER_NOT_FOUND','unshift','_taskIds','replaceDocRanges','[RemoteUniscriptService]:\x20no\x20focused\x20unit','getTypeOfUnitAdded$','symbol','selection','m1Prime','getOwnPropertyDescriptor','width','getConfig','_scheduleClearOtherTimer','ticket','TEXT','getAncestorScale','232360BAsdtD','NO_OTHER_CLIENTS_EDITING','search','getCurrentUnitForType','getUnhiddenWorksheets','history','stageInfo','MoveRangeCommandId','_dataLoaderService','_transformHistoryAndStateStack','data','USER_IS_ANONYMOUS','wsSessionTicketUrl','arc','formula.calculation.unable','getMergeData','replace','deepClone','_scheduleSaving','collaboration.single-unit.warning','transformIMECache','black','APPLY_REVISION_CONFILICT','_unitOnClients','subscribeEvent','shift','setInterval','getformulaLimitStatusUrl','_localStorageService','_urlService','univer-flex\x20univer-items-center','stage','_initResize','INVITE_CODE_REQUIRED','unitID','ACTIVE_UNIT_EVENT_CHANNEL','forEach','onRendered','_roomMembers$','clearInterval','parseInt','size','setActiveRange','transformStateCache','transformMutationsWithChangeset','_updateLocalCursor','translate(.97)','_startCalculationLimit','asObservable','INVITE_CODE_HAS_BEEN_UES','split','NOT_COLLAB','session.will-retry','_backgroundColor','findNodePositionByCharIndex','SOCKET_FAILED','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_univerInstanceService','substring','params','_initEvent','_hideTimer','green.600','endRow','SNAPSHOT_HAS_BEEN_REMOVED','FromArray','_httpService','pipe','_getSheetObject','_getSaveTimeout','parse','SNAPSHOT_INVALID_SNAPSHOT','getColorFromTheme','hide','onStarting','_memberService','USER_NOT_INVITED_CODE','roomMembers','collabStatus.synced','Failed','YUUMI_NO_CUBOID_FOR_QUESTION','_docClipboardService','getCellPositionByOffset','UniverIcon','displayName','collabCursorState$','_color','getCurrentRevOfUnit','column','selections','red.300','UNDEFINED','collab-text-anchor-','idSuffix','cursorInfo','createInstance','_clearOtherTimers','getUnitStatus$','YUUMI_URL_COL_OUT_OF_RANGE','getRangePointData','then','_localCacheService','_updateURLWithCurrentState','ENTITLE_REPORT_LIMIT_EXCEED','on-line-icon','key','setUndoRedoMutationParamsCache','enableLocalCache','_pollingInterval','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','transform','top','32512lArAFx','hovered','_cursorInfo$','_startSheetCollabCursor','Loading','fill','has','_handleJoinEvent','NOT_FOUND','APPLY_REJECT','_ensureSubject','dispose','7336tfxsbM','event$','PERMISSION_DENIED','_initStatusListener','assignAColorForMemberID','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','ENTITLE_CAN_NOT_BUY_LOWER_OTP','subunit','getUnit','_config','maxFormulaLimit','_getScale','_initCommandInterceptor','max','undoState','addObjects','MOBILE_VERIFY_CODE_MISMATCH','_assignedColors','currentUsage','_hasFormulaInDirtyRanges','init','invokeId','_releaseCalculationLimit','INTERNAL_ERROR','REDEMPTION_USER_REDEEM_TIMES_EXCEED','debug','removeParam','addEventListener','transformRemoteChangeset','LICENSE_EXPORT_SIZE_EXCEEDED','entityInit$','editingUnit','name','lineTo','values','...','[CollaborationDataLoaderController]','clipPath','YUUMI_SUBSCRIPTION_NOT_FOUND','executeCommand','1em','subUnitId','whenReady','find','_instanceService','252YguHrI','href','CONFLICT','_draw','docStateChange$','_render','_maxFormulaLimit','_handleHeartbeatEvent','_doCreateSocket','dirtyRanges','0\x200\x2016\x2016','LOGIN_FAILED','popstate','InsertRangeMoveRightCommandId','measureText','AWAITING_WITH_PENDING','onPointerEnter$','_transformPreviousActiveRange','textRanges','_renderManagerService','getItem','_range','subscribe','_applyCommand','Warning','url(#$1','_eventUnsubscribe','engine','reconnect','http://www.w3.org/2000/svg','_name','saveImage','ENTITLE_NEED_BILLING_ADDRESS','save','getFocusedUnit','eventID','InsertRowCommandId','_colorAssignService','collaboration-client.offline-data-not-saved','includes','isActive','_lastPointer','onLocalMutation','SYNCED','ENTITLE_DUP_SUBSCRIPTION','sessionStatus$','getCollabEntity$','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_getSessionTicket','_cursors','color','_transformService','RemoveRowCommandId','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_drawAnchor','from','registerRenderModule','getStateCache','blue.400','_onRefRangeChange','_docSkeletonManagerService','_showGuardMessage','with','none','71665jvnGkN','YUUMI_UNABLE_LOAD_URL','ONLINE','DeleteRangeMoveLeftCommandId','_status$','_anchor','_drawTextRange','51165OnUSqI','1046208fUCfiK','/run/','assign','requireSession','get','focused$','imageSourceType','_collaborationUIEventService','fillText','now','error','OnLineIcon','newValue','_commandService','startRow','_currentUsage','status$','permission.content','_onCursorDelete','labelPosition','_setFormulaLimitStatus','UNRECOGNIZED','APPLY_NON_SEQUENTIAL_REVISION','LICENSE_IMPORT_SIZE_EXCEEDED','UNIVER_DOC','range','_drawRectRange','saveTaskMap','white','PY_RUNTIME_SCRIPT_ERROR','attrs','_logService','_uiPartsService','uni.network.url-service','onPointerLeave$','_localeService','_getMergeRange','216lJQdzI','_labelPosition','FETCH_MISS','saveOfflineData','_docTransformSelectionsService','disableLocalCache','LICENSE_DISTRO_REJECTED','_entityInit$','HEADER_MENU','url(#on-line-icon_clip0_910_349)','INVALID_ARGUMENT','_refRangeService','drawWith','unitId','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','application/json','post','1813035PFAtMV','REDEMPTION_INVALID_CODE','_removeCollabCursors','source','getValue','Error','flatMap','_injector','set','getActiveRange','ALREADY_EXISTS','ENTITLE_CHAT_LIMIT_EXCEED','_toggleOnline','_hover','send','ERROR_AGAIN','_syncEditingCollabCursorService','length','getRelativeToViewportCoord','setShapeProps','next','registerRefRange','clearTimeout','current','onTransformChange$','some','font','restore','CLOSE_ROOM','_initDependencies','_toggleOffline','REDEMPTION_CODE_FULLY_REDEEMED','result','contains','formula.calculation.waiting','isEditing','_getFormulaLimitStatus','_context','closePath','_setupSubUnitSync','getUndoRedoMutationParamsCache','_collabSessionService','colorChannel1','transformMutation','getRenderById','url(#off-line-icon_clip0_910_343)','bottom','_id','YUUMI_CONNECTOR_URL_NOT_FOUND','collabStatus.conflict','REDEMPTION_CODE_HAS_BEEN_CREATED','mask','_scene','_document','endColumn','_entities','skeleton','jiqing.500','runId','row','_cursor','CONNECTOR_DATA_TOO_LARGE','_docSyncEditingCollabCursorService','_configService','PAYMENT_CHANNEL_NOT_SUPPORT','tag','disposeWithMe','totalFormulasToCalculate','fillRule','_removeClearOtherTimer','OTHER_CLIENT_EDITING','addObject','syncEditingCollabCursor','use','collabStatus.offline','setTimeout','_selfUnitIDs','606qWduLV','backgroundColor','M0\x200H16V16H0z','_startDocCollabCursor','startsWith','setStateCache','string','201drHvBD','text','override','YUUMI_RATE_OVER_LIMIT','AUTHORIZE_CODE_ILLEGAL','exhaustSavingTask','USERS_LEAVE','_collaborationController','_hovered','/universer-api/license/formula/limit/start','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','INVITE_CODE_ALREADY_BOUND','getParam','redoState','_online','stringify','roomMembers$','setItem','_shapes','complete','RECT','_unitStatus','delete','code','getSkeleton','ranges','loadOfflineData','TOO_MANY_REQUESTS','LOGIN_TOKEN_PROCESSING_FAILED','off-line-icon_clip0_910_343','_transformUndoRedoStack','START_CALCULATION','isArray','_cachedData','_collabCursorController','_onCursorUpdate','_imageIoService','path','sheetId','SUBMIT_CHANGESET_TIMEOUT','YUUMI_ALL_TABLES_IS_INVALID','functionsExecutedState','dispose$','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','formula.calculation.started','UNAUTHENTICATED','OffLineIcon','_refreshCollabCursors','toString','getSheetId','push','min','div','session.collaboration-timeout','_checkAndWaitForCalculationPermission','moveTo','getSheetBySheetId','_sheetSkeletonManagerService','map','limitInfo','currentColor','_setupBeforeClosingHandler','_docStateChangeManagerService','height','startColumn','CURRENT_STATUS_CANNOT_OPERATE','_collabCursorState$','_lastResponseTimestamp','getViewport','pluginName','univerjs-icon\x20univerjs-icon-','_docTransformIMECacheService','_handleLeaveEvent'];_0x45e8=function(){return _0x37e5e9;};return _0x45e8();}de=vn([P(0x0,_0x22985b(_0x529307)),P(0x1,_0x5c0795),P(0x2,_0xfc45b4),P(0x3,_0x22985b(_0x1548e0)),P(0x4,_0x604bfa),P(0x5,_0x3d9fd0),P(0x6,_0x22985b(_0x569789))],de);var Tn=Object[_0x4a1058(0x19c)],Cn=(_0x4d965d,_0x5d1c08,_0x136425,_0x16f7f7)=>{for(var _0x13f6a3=_0x16f7f7>0x1?void 0x0:_0x16f7f7?Tn(_0x5d1c08,_0x136425):_0x5d1c08,_0x3aa21c=_0x4d965d['length']-0x1,_0x206ade;_0x3aa21c>=0x0;_0x3aa21c--)(_0x206ade=_0x4d965d[_0x3aa21c])&&(_0x13f6a3=_0x206ade(_0x13f6a3)||_0x13f6a3);return _0x13f6a3;},De=(_0x1e617d,_0xcdc2e9)=>(_0x2d18d7,_0x3c0159)=>_0xcdc2e9(_0x2d18d7,_0x3c0159,_0x1e617d);let xe=class extends _0x2ea4ee{constructor(_0x48831c,_0x4a35b8,_0xf49deb){const _0xde02ea=_0x4a1058;super(),l(this,_0xde02ea(0xfd),new Map()),l(this,'_saveTaskMap',new Map()),l(this,'_disabled',!0x1),(this[_0xde02ea(0xc7)]=_0x48831c,this[_0xde02ea(0x1bf)]=_0x4a35b8,this['_revisionService']=_0xf49deb);}[_0x4a1058(0x2be)](){this['_disabled']=!0x0;}[_0x4a1058(0x20e)](){const _0x31bbab=_0x4a1058;this[_0x31bbab(0x184)]=!0x1;}get[_0x4a1058(0x2af)](){const _0x3991f1=_0x4a1058;return this[_0x3991f1(0x187)];}[_0x4a1058(0x21e)](){const _0x3dab5c=_0x4a1058;this[_0x3dab5c(0xe1)]()[_0x3dab5c(0x207)](()=>super[_0x3dab5c(0x21e)]());}async[_0x4a1058(0xf6)](_0x43ffd3){const _0x337025=_0x4a1058;return this[_0x337025(0x184)]?null:this[_0x337025(0x1bf)][_0x337025(0x260)](_0x3f74b7(_0x43ffd3));}async[_0x4a1058(0x2bc)](_0x16d488,_0x535180){const _0xb1669f=_0x4a1058;return!!this[_0xb1669f(0x1bf)][_0xb1669f(0xed)](_0x16d488,_0x535180);}[_0x4a1058(0x125)](_0x55f47f,_0x266f00,_0xdabfd3,_0x110070){const _0x3bd5fc=_0x4a1058,_0x598d48=this['_revisionService'][_0x3bd5fc(0x1fa)](_0x55f47f);this[_0x3bd5fc(0xfd)][_0x3bd5fc(0x90)](_0x55f47f,{'unitID':_0x55f47f,'type':_0x266f00,'awaitingChangeset':_0xdabfd3,'mutations':_0x110070,'rev':_0x598d48}),this[_0x3bd5fc(0x187)][_0x3bd5fc(0x219)](_0x55f47f)||this[_0x3bd5fc(0x1b5)](_0x55f47f);}[_0x4a1058(0x1b5)](_0x8fddbc){const _0xf9c804=_0x4a1058,_0x518fe7=this[_0xf9c804(0x1e8)]();_0x518fe7===0x0?this['_saveCache'](_0x8fddbc):this['_saveTaskMap'][_0xf9c804(0x90)](_0x8fddbc,setTimeout(()=>this[_0xf9c804(0x163)](_0x8fddbc),_0x518fe7));}[_0x4a1058(0x1e8)](){const _0x3f9279=_0x4a1058;var _0x337229;return(_0x337229=this[_0x3f9279(0xc7)][_0x3f9279(0x19e)](_0x1d61b2))!=null?_0x337229:_0x16cb8a;}[_0x4a1058(0x163)](_0xd0196a){const _0x3094ab=_0x4a1058,_0x5a4782=this[_0x3094ab(0x187)][_0x3094ab(0x298)](_0xd0196a);return _0x5a4782!==void 0x0&&window[_0x3094ab(0x9e)](_0x5a4782),this['_localStorageService']['setItem'](_0x3f74b7(_0xd0196a),this['_cachedData'][_0x3094ab(0x298)](_0xd0196a))[_0x3094ab(0x207)](()=>this[_0x3094ab(0x187)][_0x3094ab(0xf2)](_0xd0196a));}async[_0x4a1058(0xe1)](){const _0x1284e5=_0x4a1058,_0x465be6=[];this[_0x1284e5(0x187)][_0x1284e5(0x1c7)]((_0x29e189,_0x633f7f)=>{const _0x3b5e04=_0x1284e5;window[_0x3b5e04(0x9e)](_0x29e189),_0x465be6[_0x3b5e04(0x10e)](this[_0x3b5e04(0x163)](_0x633f7f)[_0x3b5e04(0x207)](()=>{const _0x42111f=_0x3b5e04;this[_0x42111f(0x187)][_0x42111f(0xf2)](_0x633f7f);}));}),await Promise['all'](_0x465be6);}};xe=Cn([De(0x0,_0xfc45b4),De(0x1,_0x2d3778),De(0x2,_0x22985b(_0xec17d))],xe);class Rn extends _0x321bd0{constructor(){const _0x3be4f5=_0x4a1058;super(),l(this,'urlChange$'),this[_0x3be4f5(0x12e)]=_0x47cd1f(window,_0x3be4f5(0x258))[_0x3be4f5(0x1e6)](_0xa0a1cc(this[_0x3be4f5(0x106)]),_0x46da00(0x1),_0x2f68cf(void 0x0));}['setParam'](_0xcb03c4,_0x33b4b7,_0x4c2dbf=!0x1){const _0xc08bf1=_0x4a1058,_0x444166=new URL(window['location'][_0xc08bf1(0x24d)]);_0x444166[_0xc08bf1(0x15a)][_0xc08bf1(0x90)](_0xcb03c4,_0x33b4b7),_0x4c2dbf?window[_0xc08bf1(0x1a8)][_0xc08bf1(0x148)]('','',_0x444166[_0xc08bf1(0x10c)]()):window[_0xc08bf1(0x1a8)]['pushState']('','',_0x444166[_0xc08bf1(0x10c)]());}[_0x4a1058(0x239)](_0x2c9fa0,_0x2798bb=!0x1){const _0x4635db=_0x4a1058,_0x3fb035=new URL(window[_0x4635db(0x14c)][_0x4635db(0x24d)]);_0x3fb035[_0x4635db(0x15a)][_0x4635db(0xf2)](_0x2c9fa0),_0x2798bb?window[_0x4635db(0x1a8)][_0x4635db(0x148)]('','',_0x3fb035[_0x4635db(0x10c)]()):window['history'][_0x4635db(0x130)]('','',_0x3fb035[_0x4635db(0x10c)]());}[_0x4a1058(0xe8)](_0xea8276){const _0x43c5b1=_0x4a1058;var _0x4ad269;return(_0x4ad269=new URL(window[_0x43c5b1(0x14c)][_0x43c5b1(0x24d)])[_0x43c5b1(0x15a)][_0x43c5b1(0x298)](_0xea8276))!=null?_0x4ad269:void 0x0;}}var Dn=Object[_0x4a1058(0x150)],Nn=Object[_0x4a1058(0x19c)],bn=(_0x47a5b0,_0x1ed323,_0x3b0700)=>_0x1ed323 in _0x47a5b0?Dn(_0x47a5b0,_0x1ed323,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3b0700}):_0x47a5b0[_0x1ed323]=_0x3b0700,Un=(_0x6c9dca,_0xfa786,_0x58b19a,_0x318cb7)=>{const _0x521828=_0x4a1058;for(var _0x2b5b5a=_0x318cb7>0x1?void 0x0:_0x318cb7?Nn(_0xfa786,_0x58b19a):_0xfa786,_0x55168b=_0x6c9dca[_0x521828(0x99)]-0x1,_0x540f58;_0x55168b>=0x0;_0x55168b--)(_0x540f58=_0x6c9dca[_0x55168b])&&(_0x2b5b5a=_0x540f58(_0x2b5b5a)||_0x2b5b5a);return _0x2b5b5a;},Ne=(_0x18cf34,_0x1696e7)=>(_0x28368e,_0x73dc32)=>_0x1696e7(_0x28368e,_0x73dc32,_0x18cf34),Ln=(_0x9ea3f0,_0x4eb681,_0x2fbf4f)=>bn(_0x9ea3f0,_0x4eb681+'',_0x2fbf4f);const Mn=_0x4a1058(0x224);let Be=class extends _0x401b9c{constructor(_0xf0dd7=rt,_0x3f2307,_0x11cb6f,_0x35478d){const _0x4078a2=_0x4a1058;super(),this['_config']=_0xf0dd7,this['_renderManagerService']=_0x3f2307,this['_injector']=_0x11cb6f,this[_0x4078a2(0xc7)]=_0x35478d;const {..._0x52a9de}=_0x3e7ea3({},rt,this[_0x4078a2(0x228)]);this['_configService']['setConfig'](an,_0x52a9de);}[_0x4a1058(0x1ed)](){const _0x2281e5=_0x4a1058;this['_registerDependencies'](),this[_0x2281e5(0xa5)]();}[_0x4a1058(0x1c8)](){this['_registerRenderDependencies']();}['_registerDependencies'](){const _0x7b9580=_0x4a1058;var _0x158051;const _0x53808c=[[je],[de],[he],[_e],[le],[Xe],[At,{'useClass':Rn}],[_0x3da187,{'useClass':_0x1617f1}],[_0x486a5f,{'useClass':xe}],[oe],[ue],[ce],[H],[Ae],[ae]];_0x1e0393(this[_0x7b9580(0x2d1)],_0x12820a(_0x53808c,(_0x158051=this['_config'])==null?void 0x0:_0x158051[_0x7b9580(0xde)]));}['_registerRenderDependencies'](){const _0x126486=_0x4a1058;this[_0x126486(0xca)](this['_renderManagerService'][_0x126486(0x284)](_0x5ec37c[_0x126486(0x2ac)],[ye])),this[_0x126486(0xca)](this[_0x126486(0x25f)]['registerRenderModule'](_0x5ec37c[_0x126486(0x12f)],[$e]));}['_initDependencies'](){const _0x2e2c0c=_0x4a1058;_0x9b7b4(this[_0x2e2c0c(0x2d1)],[[H],[oe],[ue],[ce],[ae],[de]]);}};Ln(Be,_0x4a1058(0x121),Mn),Be=Un([_0x2a3643(_0x4dd462),Ne(0x1,_0x50a960),Ne(0x2,_0x22985b(_0x421c05)),Ne(0x3,_0xfc45b4)],Be);var An=Object[_0x4a1058(0x19c)],Pn=(_0x2ca29b,_0x3a1a1d,_0x2ceeda,_0x97762d)=>{const _0x1f6903=_0x4a1058;for(var _0x50fcf5=_0x97762d>0x1?void 0x0:_0x97762d?An(_0x3a1a1d,_0x2ceeda):_0x3a1a1d,_0x49e23f=_0x2ca29b[_0x1f6903(0x99)]-0x1,_0x260804;_0x49e23f>=0x0;_0x49e23f--)(_0x260804=_0x2ca29b[_0x49e23f])&&(_0x50fcf5=_0x260804(_0x50fcf5)||_0x50fcf5);return _0x50fcf5;},J=(_0x4b0cab,_0x58e4f4)=>(_0x1ba8b6,_0x9e4c49)=>_0x58e4f4(_0x1ba8b6,_0x9e4c49,_0x4b0cab);let ct=class extends _0x1d1749{constructor(_0x433df6,_0x4da455,_0x1975ce,_0x3791a8,_0x51bc89){super(_0x433df6,_0x4da455,_0x1975ce,_0x3791a8,_0x51bc89);}async['createSocket'](_0x1e0284){const _0xabad85=_0x4a1058,_0x4b44a5=await this['_getSessionTicket'](),_0x4a401d=this['_createSocketURL'](_0x1e0284,_0x4b44a5);return this[_0xabad85(0x254)](_0x4a401d);}['_createSocketURL'](_0x4c798f,_0x46fecc){const _0x270c77=_0x4a1058,_0x5738dc=typeof window>'u'?new URL(_0x4c798f):new URL(_0x4c798f,window['location']['origin']);_0x5738dc[_0x270c77(0x15a)][_0x270c77(0x90)](_0x270c77(0x129),_0x46fecc);const _0xdfa275=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x270c77(0x1a5)]);return _0xdfa275[_0x270c77(0x298)](_0x270c77(0xc2))&&_0x5738dc[_0x270c77(0x15a)][_0x270c77(0x90)](_0x270c77(0xc2),_0xdfa275[_0x270c77(0x298)](_0x270c77(0xc2))),_0x5738dc[_0x270c77(0x10c)]();}async[_0x4a1058(0x27c)](){const _0x14cac0=_0x4a1058;var _0x517c99,_0x56db2e,_0x5af071;const _0x5e08e7=this[_0x14cac0(0xc7)][_0x14cac0(0x19e)](_0x5adb8e),_0x5b3451=(_0x517c99=_0x5e08e7==null?void 0x0:_0x5e08e7[_0x14cac0(0x1af)])!=null?_0x517c99:_0x514cfa;return(_0x5af071=(_0x56db2e=(await this[_0x14cac0(0x1e5)][_0x14cac0(0x298)](_0x5b3451,{'headers':{'Content-Type':_0x14cac0(0x2c8)}}))[_0x14cac0(0x128)])==null?void 0x0:_0x56db2e[_0x14cac0(0x1a0)])!=null?_0x5af071:'';}};ct=Pn([J(0x0,_0x22985b(_0x421c05)),J(0x1,_0x22985b(_0x1548e0)),J(0x2,_0xfc45b4),J(0x3,_0x3d9fd0),J(0x4,_0x4d9e92)],ct);var wn=Object[_0x4a1058(0x19c)],yn=(_0x1e8409,_0x4c344a,_0x5aef77,_0x280547)=>{const _0x5d93fc=_0x4a1058;for(var _0x2568a9=_0x280547>0x1?void 0x0:_0x280547?wn(_0x4c344a,_0x5aef77):_0x4c344a,_0x266186=_0x1e8409[_0x5d93fc(0x99)]-0x1,_0x6c0e00;_0x266186>=0x0;_0x266186--)(_0x6c0e00=_0x1e8409[_0x266186])&&(_0x2568a9=_0x6c0e00(_0x2568a9)||_0x2568a9);return _0x2568a9;},be=(_0x21acb3,_0x276482)=>(_0x2f084f,_0x19564e)=>_0x276482(_0x2f084f,_0x19564e,_0x21acb3);let _t=class extends _0x2ea4ee{constructor(_0x33ca77,_0xa1ed13,_0x519134){const _0x2f5192=_0x4a1058;super(),this[_0x2f5192(0x24b)]=_0x33ca77,this[_0x2f5192(0x1e5)]=_0xa1ed13,this[_0x2f5192(0xc7)]=_0x519134;}async[_0x4a1058(0x192)](_0x42b536,_0x39c75c,_0x4958b3,..._0x2cb8ba){const _0x4f742c=_0x4a1058;var _0x50d049,_0x1b5686,_0x597296,_0x275859;const _0x59ab3e=this[_0x4f742c(0x24b)]['getFocusedUnit']();if(!_0x59ab3e)throw new Error(_0x4f742c(0x197));const _0x51aa28=((_0x50d049=this[_0x4f742c(0xc7)][_0x4f742c(0x19e)](_0x2499e8))!=null?_0x50d049:_0x20d45f)+'/'+_0x42b536+_0x4f742c(0x295)+_0x39c75c,_0xf7ae94=new URL(window[_0x4f742c(0x14c)][_0x4f742c(0x24d)]),_0x3a003f={'scriptId':_0x42b536,'runId':(_0x1b5686=_0xf7ae94['searchParams']['get'](_0x4f742c(0xc2)))!=null?_0x1b5686:'','function':_0x39c75c,'unitId':_0x59ab3e['getUnitId'](),'argsOfFunction':JSON[_0x4f742c(0xeb)](_0x2cb8ba),'invokeId':(_0x597296=_0x4958b3[_0x4f742c(0x234)])!=null?_0x597296:'','executionId':(_0x275859=_0x4958b3['executionId'])!=null?_0x275859:''};try{const _0x5e8014=await this['_httpService']['post'](_0x51aa28,{'body':_0x3a003f});return _0x5e8014[_0x4f742c(0x128)][_0x4f742c(0x29e)]&&_0x5e8014['body']['error'][_0x4f742c(0xf3)]!==Z['OK']?_0x4f742c(0x1f2):_0x5e8014['body'][_0x4f742c(0xa8)];}catch{return _0x4f742c(0x1f2);}}};_t=yn([be(0x0,_0x604bfa),be(0x1,_0x22985b(_0x1548e0)),be(0x2,_0xfc45b4)],_t);const lt=0x7530,ht=_0x4a1058(0x1c6);class tr extends _0x2ea4ee{constructor(){const _0x368074=_0x4a1058;super(),l(this,'_id',_0x52c05b()),l(this,_0x368074(0xd4),new Set()),l(this,_0x368074(0x1ba),new Map()),l(this,'_heartbeatTimer',null),l(this,'_clearOtherTimers',new Map()),l(this,'_unitStatus',new Map()),this[_0x368074(0x190)]();}[_0x4a1058(0x21e)](){const _0x4e1556=_0x4a1058;super[_0x4e1556(0x21e)](),this[_0x4e1556(0x203)][_0x4e1556(0x1c7)]((_0x23c6e9,_0x29c4ca)=>this[_0x4e1556(0xcd)](_0x29c4ca)),this[_0x4e1556(0x178)]&&window[_0x4e1556(0x1ca)](this[_0x4e1556(0x178)]);}[_0x4a1058(0x204)](_0x29aa32){return this['_ensureSubject'](_0x29aa32)['pipe'](_0x56fc05());}[_0x4a1058(0x23e)](_0xf5ba9e){const _0x13268b=_0x4a1058;this['_selfUnitIDs'][_0x13268b(0x1cc)]===0x0&&this['_scheduleHeartbeat'](),this[_0x13268b(0xd4)][_0x13268b(0x177)](_0xf5ba9e),this[_0x13268b(0x183)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0xf5ba9e],'isForwarded':!0x1});}['disposeUnit'](_0x14bf35){const _0x197dc0=_0x4a1058;this['_selfUnitIDs'][_0x197dc0(0xf2)](_0x14bf35),this[_0x197dc0(0xd4)]['size']===0x0&&this[_0x197dc0(0x178)]&&window[_0x197dc0(0x1ca)](this['_heartbeatTimer']);}[_0x4a1058(0x190)](){const _0xe0b1e2=_0x4a1058;this['disposeWithMe'](_0x2e5ead(_0x47cd1f(window,_0xe0b1e2(0x13c))[_0xe0b1e2(0x262)](_0x532201=>{const _0x4454d2=_0xe0b1e2;if(_0x532201[_0x4454d2(0x20c)]!==ht||!_0x532201['newValue'])return;const _0x5f0498=JSON[_0x4454d2(0x1e9)](_0x532201[_0x4454d2(0x2a0)]);this[_0x4454d2(0x166)](_0x5f0498);}))),window[_0xe0b1e2(0x23a)]('unload',()=>this[_0xe0b1e2(0x183)]({'type':0x1,'memberID':this[_0xe0b1e2(0xb7)],'unitIDs':Array[_0xe0b1e2(0x283)](this['_selfUnitIDs'])}));}['_handleEvent'](_0x4abd53){const _0x260749=_0x4a1058;switch(_0x4abd53[_0x260749(0x171)]){case 0x0:this[_0x260749(0x21a)](_0x4abd53);break;case 0x1:this[_0x260749(0x124)](_0x4abd53);break;case 0x2:this[_0x260749(0x253)](_0x4abd53);break;}}[_0x4a1058(0x21a)](_0x21987d){const _0x1d18c1=_0x4a1058,{unitIDs:_0x2b38a0,memberID:_0x2baba2,isForwarded:_0x80bac9}=_0x21987d;_0x2b38a0[_0x1d18c1(0x1c7)](_0x1a9f80=>{const _0x1ac691=_0x1d18c1;if(!_0x80bac9&&this[_0x1ac691(0x1ba)][_0x1ac691(0x219)](_0x1a9f80)&&this[_0x1ac691(0x21d)](_0x1a9f80)[_0x1ac691(0x9c)](_0x4c4e53[_0x1ac691(0x13f)]),!this[_0x1ac691(0x1ba)]['has'](_0x1a9f80)||!this[_0x1ac691(0x1ba)]['get'](_0x1a9f80)[_0x1ac691(0x219)](_0x2baba2)){const _0x257cce=this[_0x1ac691(0x1ba)][_0x1ac691(0x298)](_0x1a9f80)||new Set();_0x257cce['add'](_0x2baba2),this['_unitOnClients'][_0x1ac691(0x90)](_0x1a9f80,_0x257cce),this[_0x1ac691(0x19f)](_0x2baba2);}}),_0x80bac9||this[_0x1d18c1(0x183)]({'type':0x0,'memberID':this[_0x1d18c1(0xb7)],'unitIDs':[...this[_0x1d18c1(0xd4)]],'isForwarded':!0x0});}[_0x4a1058(0x19f)](_0x55fc37){const _0x13c43=_0x4a1058;this[_0x13c43(0xcd)](_0x55fc37);const _0x2022ad=window[_0x13c43(0xd3)](()=>{const _0x5d99a1=_0x13c43;this[_0x5d99a1(0x1ba)][_0x5d99a1(0x1c7)](_0x433b08=>{_0x433b08['delete'](_0x55fc37);});},lt*0x2);this[_0x13c43(0x203)][_0x13c43(0x90)](_0x55fc37,_0x2022ad);}[_0x4a1058(0xcd)](_0x437e87){const _0x219c0b=_0x4a1058;if(this[_0x219c0b(0x203)]['has'](_0x437e87)){const _0x3b21f7=this[_0x219c0b(0x203)][_0x219c0b(0x298)](_0x437e87);_0x3b21f7&&window[_0x219c0b(0x9e)](_0x3b21f7),this[_0x219c0b(0x203)][_0x219c0b(0x90)](_0x437e87,null);}}[_0x4a1058(0x124)](_0x194ac7){const _0x23ab61=_0x4a1058,{memberID:_0x596b8b,unitIDs:_0x371eb8}=_0x194ac7;_0x371eb8[_0x23ab61(0x1c7)](_0x54a252=>{const _0x57ad6c=_0x23ab61;var _0x3ac065;const _0x54f753=this[_0x57ad6c(0x1ba)][_0x57ad6c(0x298)](_0x54a252);_0x54f753&&(_0x54f753[_0x57ad6c(0xf2)](_0x596b8b),(_0x3ac065=this[_0x57ad6c(0x21d)](_0x54a252))==null||_0x3ac065[_0x57ad6c(0x9c)](_0x54f753[_0x57ad6c(0x1cc)]===0x0?_0x4c4e53['NO_OTHER_CLIENTS_EDITING']:_0x4c4e53[_0x57ad6c(0x13f)]));}),this['_removeClearOtherTimer'](_0x596b8b);}[_0x4a1058(0x253)](_0x1d8928){const _0x42960e=_0x4a1058;this[_0x42960e(0x19f)](_0x1d8928[_0x42960e(0x17d)]);}['_send'](_0x50a2a7){const _0x284639=_0x4a1058;localStorage[_0x284639(0xed)](ht,JSON[_0x284639(0xeb)](_0x50a2a7));}['_scheduleHeartbeat'](){const _0x19a6e5=_0x4a1058;this[_0x19a6e5(0x178)]=window[_0x19a6e5(0x1bd)](()=>{const _0x369c1a=_0x19a6e5;this[_0x369c1a(0x183)]({'type':0x2,'memberID':this[_0x369c1a(0xb7)]});},lt);}[_0x4a1058(0x21d)](_0x54d0f5){const _0x5972f4=_0x4a1058;return this[_0x5972f4(0xf1)][_0x5972f4(0x219)](_0x54d0f5)||this[_0x5972f4(0xf1)][_0x5972f4(0x90)](_0x54d0f5,new _0x4d6555(_0x4c4e53[_0x5972f4(0x1a4)])),this[_0x5972f4(0xf1)][_0x5972f4(0x298)](_0x54d0f5);}}export{ct as BrowserCollaborationSocketService,ae as CollaborationDataLoaderController,oe as DesktopCollaborationStatusDisplayController,At as IURLService,_t as RemoteUniscriptService,qi as SheetCollabCursorShape,Be as UniverCollaborationClientUIPlugin,tr as WebBrowserSingleActiveUnitService,Rn as WebURLService};