@univerjs-pro/collaboration-client-ui 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ar-SA.js +1 -1
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -1
  6. package/lib/cjs/locale/en-US.js +1 -1
  7. package/lib/cjs/locale/es-ES.js +1 -1
  8. package/lib/cjs/locale/fa-IR.js +1 -1
  9. package/lib/cjs/locale/fr-FR.js +1 -1
  10. package/lib/cjs/locale/id-ID.js +1 -1
  11. package/lib/cjs/locale/it-IT.js +1 -1
  12. package/lib/cjs/locale/ja-JP.js +1 -1
  13. package/lib/cjs/locale/ko-KR.js +1 -1
  14. package/lib/cjs/locale/pl-PL.js +1 -1
  15. package/lib/cjs/locale/pt-BR.js +1 -1
  16. package/lib/cjs/locale/ru-RU.js +1 -1
  17. package/lib/cjs/locale/sk-SK.js +1 -1
  18. package/lib/cjs/locale/vi-VN.js +1 -1
  19. package/lib/cjs/locale/zh-CN.js +1 -1
  20. package/lib/cjs/locale/zh-HK.js +1 -1
  21. package/lib/cjs/locale/zh-TW.js +1 -1
  22. package/lib/es/facade.js +1 -1
  23. package/lib/es/index.js +1 -1
  24. package/lib/es/locale/ar-SA.js +1 -1
  25. package/lib/es/locale/ca-ES.js +1 -1
  26. package/lib/es/locale/de-DE.js +1 -1
  27. package/lib/es/locale/en-US.js +1 -1
  28. package/lib/es/locale/es-ES.js +1 -1
  29. package/lib/es/locale/fa-IR.js +1 -1
  30. package/lib/es/locale/fr-FR.js +1 -1
  31. package/lib/es/locale/id-ID.js +1 -1
  32. package/lib/es/locale/it-IT.js +1 -1
  33. package/lib/es/locale/ja-JP.js +1 -1
  34. package/lib/es/locale/ko-KR.js +1 -1
  35. package/lib/es/locale/pl-PL.js +1 -1
  36. package/lib/es/locale/pt-BR.js +1 -1
  37. package/lib/es/locale/ru-RU.js +1 -1
  38. package/lib/es/locale/sk-SK.js +1 -1
  39. package/lib/es/locale/vi-VN.js +1 -1
  40. package/lib/es/locale/zh-CN.js +1 -1
  41. package/lib/es/locale/zh-HK.js +1 -1
  42. package/lib/es/locale/zh-TW.js +1 -1
  43. package/lib/facade.js +1 -1
  44. package/lib/index.js +1 -1
  45. package/lib/locale/ar-SA.js +1 -1
  46. package/lib/locale/ca-ES.js +1 -1
  47. package/lib/locale/de-DE.js +1 -1
  48. package/lib/locale/en-US.js +1 -1
  49. package/lib/locale/es-ES.js +1 -1
  50. package/lib/locale/fa-IR.js +1 -1
  51. package/lib/locale/fr-FR.js +1 -1
  52. package/lib/locale/id-ID.js +1 -1
  53. package/lib/locale/it-IT.js +1 -1
  54. package/lib/locale/ja-JP.js +1 -1
  55. package/lib/locale/ko-KR.js +1 -1
  56. package/lib/locale/pl-PL.js +1 -1
  57. package/lib/locale/pt-BR.js +1 -1
  58. package/lib/locale/ru-RU.js +1 -1
  59. package/lib/locale/sk-SK.js +1 -1
  60. package/lib/locale/vi-VN.js +1 -1
  61. package/lib/locale/zh-CN.js +1 -1
  62. package/lib/locale/zh-HK.js +1 -1
  63. package/lib/locale/zh-TW.js +1 -1
  64. package/lib/umd/facade.js +1 -1
  65. package/lib/umd/index.js +1 -1
  66. package/lib/umd/locale/ar-SA.js +1 -1
  67. package/lib/umd/locale/ca-ES.js +1 -1
  68. package/lib/umd/locale/de-DE.js +1 -1
  69. package/lib/umd/locale/en-US.js +1 -1
  70. package/lib/umd/locale/es-ES.js +1 -1
  71. package/lib/umd/locale/fa-IR.js +1 -1
  72. package/lib/umd/locale/fr-FR.js +1 -1
  73. package/lib/umd/locale/id-ID.js +1 -1
  74. package/lib/umd/locale/it-IT.js +1 -1
  75. package/lib/umd/locale/ja-JP.js +1 -1
  76. package/lib/umd/locale/ko-KR.js +1 -1
  77. package/lib/umd/locale/pl-PL.js +1 -1
  78. package/lib/umd/locale/pt-BR.js +1 -1
  79. package/lib/umd/locale/ru-RU.js +1 -1
  80. package/lib/umd/locale/sk-SK.js +1 -1
  81. package/lib/umd/locale/vi-VN.js +1 -1
  82. package/lib/umd/locale/zh-CN.js +1 -1
  83. package/lib/umd/locale/zh-HK.js +1 -1
  84. package/lib/umd/locale/zh-TW.js +1 -1
  85. package/package.json +18 -18
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x14429d=_0x3d03;(function(_0x3a6a69,_0x213dcf){const _0x1e9183=_0x3d03,_0x45f7ca=_0x3a6a69();while(!![]){try{const _0x556e52=parseInt(_0x1e9183(0x3d8))/0x1+-parseInt(_0x1e9183(0x3ea))/0x2+-parseInt(_0x1e9183(0x2fb))/0x3*(-parseInt(_0x1e9183(0x296))/0x4)+parseInt(_0x1e9183(0x32a))/0x5*(parseInt(_0x1e9183(0x2c4))/0x6)+-parseInt(_0x1e9183(0x38e))/0x7*(-parseInt(_0x1e9183(0x2cd))/0x8)+parseInt(_0x1e9183(0x314))/0x9*(-parseInt(_0x1e9183(0x2fc))/0xa)+-parseInt(_0x1e9183(0x292))/0xb*(parseInt(_0x1e9183(0x2c3))/0xc);if(_0x556e52===_0x213dcf)break;else _0x45f7ca['push'](_0x45f7ca['shift']());}catch(_0x2f70a3){_0x45f7ca['push'](_0x45f7ca['shift']());}}}(_0x2133,0x258ef));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x11040d,CollaborationController as _0x479467,CollaborationSessionService as _0x2b2a41,CollaborationSocketService as _0x3ab735,CollaborationStatus as _0x22cbf4,CollaborationUIEventId as _0x797de9,CollaborationUIEventService as _0x57af61,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0xb50b00,DEFAULT_WS_SESSION_TICKET_URL as _0x4cdb73,DataLoaderService as _0x5c5342,DocCollaborationEntity as _0x2b3bac,ILocalCacheService as _0x4ed906,LOCAL_CACHE_INTERVAL as _0x22821c,LOCAL_CACHE_INTERVAL_KEY as _0x4a71d9,MemberService as _0x529951,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x40ac4f,SessionStatus as _0x411373,UnitStatus as _0x12fc42,UniverCollaborationClientPlugin as _0x4990f6,getLocalCacheKey as _0x96f6b8}from'@univerjs-pro/collaboration-client';import{COLORS as _0x330629,ColorKit as _0x22b6b1,CommandType as _0x3d1507,DOC_RANGE_TYPE as _0xfd1486,DependentOn as _0x565f3d,Disposable as _0x4af7ce,DisposableCollection as _0x15436c,ICommandService as _0xdaa582,IConfigService as _0x3d218d,IImageIoService as _0x1ef202,ILocalStorageService as _0x30998f,ILogService as _0x2a6bbd,IUniverInstanceService as _0x4d77cc,Inject as _0x439243,Injector as _0x2c4c1e,LocaleService as _0x2d982f,Plugin as _0x28f90b,Rectangle as _0x2cdee5,RxDisposable as _0x32162e,ThemeService as _0xa61525,Tools as _0x59eb5c,UniverInstanceType as _0x4d263b,Workbook as _0xc04914,createIdentifier as _0x4ed343,debounce as _0x43c2fb,fromEventSubject as _0x3b1a74,generateRandomId as _0x5b5013,isInternalEditorID as _0x3f0d0f,merge as _0x13839f,mergeOverrideWithDependencies as _0x356ba2,registerDependencies as _0x572e92,toDisposable as _0x1c7e61,touchDependencies as _0x2b77cb}from'@univerjs/core';import{BuiltInUIPart as _0x589fc3,IBeforeCloseService as _0x333f87,IMessageService as _0x42a5ed,INotificationService as _0x279df2,IUIPartsService as _0x36acb8,IUnitPresenceUIAdapterRegistry as _0x2873f9,connectInjector as _0x9d541b,useDependency as _0x4a4611,useObservable as _0x40178e}from'@univerjs/ui';import{BehaviorSubject as _0x4a802e,Subject as _0x2894b9,combineLatest as _0x4f55e7,debounceTime as _0x4e32e2,distinctUntilChanged as _0x53e16d,filter as _0x49082d,fromEvent as _0x377d93,mapTo as _0x318933,merge as _0x17436b,of as _0x5f1171,shareReplay as _0xe8e11e,switchMap as _0x76e02a,takeUntil as _0x54edaf,throttle as _0x6b057b,timer as _0x5f3da1}from'rxjs';import{distinctUntilChanged as _0x4e5d12,filter as _0x225bc6,map as _0x37d85c,switchMap as _0x48ade1,takeUntil as _0x535fcc,throttleTime as _0x27ed7f}from'rxjs/operators';import{Button as _0x3c19f4,MessageType as _0x3e9b02,Tooltip as _0x4710ce,clsx as _0x163047}from'@univerjs/design';import{LoadingMultiIcon as _0x2346d5,OffLineIcon as _0x5369a1,OnLineIcon as _0x1dc6d7,WarningIcon as _0x4d4450}from'@univerjs/icons';import{createElement as _0x1b7724,useCallback as _0x5af805,useMemo as _0x5a19e1}from'react';import{jsx as _0x55526a,jsxs as _0x17f736}from'react/jsx-runtime';import{CollaborationEvent as _0x228507,ISnapshotServerService as _0x5da708,ITransformService as _0x3e0970,RevisionService as _0x4c1d46,SnapshotLoadStage as _0x56bb07,SnapshotLoadingService as _0x15d5cd,UniverCollaborationPlugin as _0x42bc38,isTransformMutationFailure as _0x51b014,isTransformMutationsWithChangesetSuccess as _0x5da30d}from'@univerjs-pro/collaboration';import{UniverLicensePlugin as _0x52194a}from'@univerjs-pro/license';import{DocSelectionManagerService as _0x25ff25,DocSkeletonManagerService as _0x101420,DocStateChangeManagerService as _0x12942b,RichTextEditingMutation as _0x56c228,SetTextSelectionsOperation as _0x54f38f,UniverDocsPlugin as _0x2f2fac}from'@univerjs/docs';import{DocIMEInputManagerService as _0x5e2811,IDocClipboardService as _0x3014aa,NodePositionConvertToCursor as _0x3e63cb,NodePositionConvertToRectRange as _0x40d888,SetDocZoomRatioOperation as _0x4c78d2,TEXT_RANGE_LAYER_INDEX as _0x2e23a0,UniverDocsUIPlugin as _0x4d590a}from'@univerjs/docs-ui';import{DocumentSkeletonPageType as _0x19d442,IRenderManagerService as _0x3ddfbd,Rect as _0x58a20d,RegularPolygon as _0x24bbe3,SHEET_VIEWPORT_KEY as _0xa2fb8c,Shape as _0xcdd8d1,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x435aa5,UniverRenderEnginePlugin as _0xb44e6a,Vector2 as _0x164f70,getColor as _0x457359,getDocumentSkeletonColumnPagePathInfo as _0x131357}from'@univerjs/engine-render';import{HTTPService as _0x103ec5,ISocketService as _0xfb68a9,UniverNetworkPlugin as _0x420728,WebSocketService as _0x4ffb7d}from'@univerjs/network';import{deserializeRangeWithSheet as _0x2f5144,serializeRangeWithSheet as _0x2e0d4e}from'@univerjs/engine-formula';import{EffectRefRangId as _0x5b9a17,RefRangeService as _0xb0be48,SetSelectionsOperation as _0x3ab318,SetWorksheetActivateCommand as _0x37f956,SheetsSelectionsService as _0x2dca29,handleDeleteRangeMoveLeft as _0x545bc5,handleDeleteRangeMoveUp as _0x16e771,handleIRemoveCol as _0xab56f7,handleIRemoveRow as _0xc812f3,handleInsertCol as _0xc026ab,handleInsertRangeMoveDown as _0x236619,handleInsertRangeMoveRight as _0x13224b,handleInsertRow as _0x41c0ed,handleMoveRange as _0xbfefff,runRefRangeMutations as _0x4964ac}from'@univerjs/sheets';import{SheetSkeletonManagerService as _0x405920,getCoordByCell as _0x527228,getSheetObject as _0x478dc1}from'@univerjs/sheets-ui';import{ErrorCode as _0x41baea}from'@univerjs/protocol';function rn(_0x4ea931){const _0x4b7801=_0x3d03;switch(_0x4ea931){case _0x22cbf4['OFFLINE']:return{'icon':_0x55526a(_0x5369a1,{}),'colorClass':_0x4b7801(0x39f),'i18nKey':'collaboration-client-ui.collabStatus.offline','tooltipKey':_0x4b7801(0x240),'clickable':!0x0,'indicator':'static'};case _0x22cbf4[_0x4b7801(0x390)]:return{'icon':_0x55526a(_0x5369a1,{}),'colorClass':_0x4b7801(0x35e),'i18nKey':_0x4b7801(0x2cf),'clickable':!0x1,'indicator':_0x4b7801(0x26c)};case _0x22cbf4['FETCH_MISS']:return{'icon':_0x55526a(_0x2346d5,{}),'colorClass':_0x4b7801(0x248),'i18nKey':_0x4b7801(0x3a1),'clickable':!0x1,'indicator':_0x4b7801(0x34f)};case _0x22cbf4[_0x4b7801(0x1e0)]:return{'icon':_0x55526a(_0x1dc6d7,{}),'colorClass':_0x4b7801(0x2e3),'i18nKey':_0x4b7801(0x389),'clickable':!0x1,'indicator':'static'};case _0x22cbf4[_0x4b7801(0x30e)]:case _0x22cbf4[_0x4b7801(0x42f)]:return{'icon':_0x55526a(_0x2346d5,{}),'colorClass':_0x4b7801(0x248),'i18nKey':'collaboration-client-ui.collabStatus.syncing','clickable':!0x1,'indicator':_0x4b7801(0x34f)};case _0x22cbf4[_0x4b7801(0x256)]:return{'icon':_0x55526a(_0x2346d5,{}),'colorClass':_0x4b7801(0x248),'i18nKey':_0x4b7801(0x246),'clickable':!0x1,'indicator':_0x4b7801(0x34f)};case _0x22cbf4[_0x4b7801(0x239)]:return{'icon':_0x55526a(_0x1dc6d7,{}),'colorClass':'univer-text-green-500','i18nKey':'collaboration-client-ui.collabStatus.synced','clickable':!0x1,'indicator':_0x4b7801(0x26c)};}}function an(_0x1ebc79){const _0x519f6e=_0x3d03;let {status$:_0x633857}=_0x1ebc79,_0x3e7ea0=_0x40178e(_0x633857,_0x22cbf4['NOT_COLLAB']),_0x131fbb=_0x4a4611(_0x2d982f),_0x11e5bd=_0x4a4611(_0x2b2a41),_0x318e62=_0x5a19e1(()=>rn(_0x3e7ea0),[_0x3e7ea0]),_0x3fc5c1=_0x3e7ea0!==_0x22cbf4[_0x519f6e(0x343)],_0x1aed05=_0x131fbb['t'](_0x318e62[_0x519f6e(0x27c)]),_0x59f841=_0x318e62[_0x519f6e(0x311)]?_0x131fbb['t'](_0x318e62[_0x519f6e(0x311)]):_0x1aed05,_0x3b9b27=_0x5af805(()=>{const _0x2fc0a3=_0x519f6e;_0x3fc5c1||_0x11e5bd[_0x2fc0a3(0x1e1)]();},[_0x3fc5c1,_0x11e5bd]),_0x143181=_0x5af805(_0x82399f=>{const _0x552a8b=_0x519f6e;!_0x3fc5c1&&(_0x82399f[_0x552a8b(0x217)]==='Enter'||_0x82399f['key']==='\x20')&&(_0x82399f[_0x552a8b(0x372)](),_0x11e5bd['reconnect']());},[_0x3fc5c1,_0x11e5bd]),_0x5d6af0=_0x55526a('span',{'className':_0x163047(_0x519f6e(0x40b),_0x519f6e(0x25a),_0x318e62[_0x519f6e(0x3af)],{'univer-animate-spin':_0x318e62[_0x519f6e(0x378)]===_0x519f6e(0x34f),'univer-animate-pulse':_0x318e62[_0x519f6e(0x378)]==='pulse'}),'aria-hidden':_0x519f6e(0x3f8),'children':_0x318e62[_0x519f6e(0x202)]}),_0x57580d=_0x55526a(_0x519f6e(0x36e),{'className':_0x163047(_0x519f6e(0x40b),_0x519f6e(0x3fd),_0x519f6e(0x267),_0x519f6e(0x423),_0x519f6e(0x39e),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x318e62[_0x519f6e(0x435)],'univer-cursor-default':!_0x318e62[_0x519f6e(0x435)]}),'children':_0x5d6af0});return _0x318e62[_0x519f6e(0x435)]?_0x55526a(_0x4710ce,{'title':_0x59f841,'placement':_0x519f6e(0x3b4),'children':_0x55526a(_0x519f6e(0x36b),{'type':_0x519f6e(0x36b),'onClick':_0x3b9b27,'onKeyDown':_0x143181,'className':_0x163047(_0x519f6e(0x2f3),_0x519f6e(0x1fa),_0x519f6e(0x280),_0x519f6e(0x2fd)),'aria-label':_0x1aed05+_0x519f6e(0x37d)+_0x59f841,'role':_0x519f6e(0x412),'aria-live':_0x519f6e(0x322),'aria-atomic':'true','children':_0x57580d})}):_0x55526a(_0x4710ce,{'title':_0x59f841,'placement':_0x519f6e(0x3b4),'children':_0x55526a('div',{'className':_0x163047(_0x519f6e(0x2f3),_0x519f6e(0x1fa),_0x519f6e(0x280)),'aria-label':_0x1aed05,'role':_0x519f6e(0x412),'aria-live':'polite','aria-atomic':_0x519f6e(0x3f8),'children':_0x57580d})});}function W(_0x4ff731){'@babel/helpers - typeof';const _0x404d93=_0x3d03;return W=typeof Symbol==_0x404d93(0x2e0)&&typeof Symbol[_0x404d93(0x23d)]=='symbol'?function(_0x2bcc0d){return typeof _0x2bcc0d;}:function(_0x36bc80){const _0x7b955d=_0x404d93;return _0x36bc80&&typeof Symbol==_0x7b955d(0x2e0)&&_0x36bc80['constructor']===Symbol&&_0x36bc80!==Symbol['prototype']?_0x7b955d(0x3f6):typeof _0x36bc80;},W(_0x4ff731);}function on(_0x28c4c6,_0x2bd210){const _0x18d39e=_0x3d03;if(W(_0x28c4c6)!='object'||!_0x28c4c6)return _0x28c4c6;var _0x4045c8=_0x28c4c6[Symbol['toPrimitive']];if(_0x4045c8!==void 0x0){var _0x450e99=_0x4045c8[_0x18d39e(0x23f)](_0x28c4c6,_0x2bd210||_0x18d39e(0x265));if(W(_0x450e99)!=_0x18d39e(0x26a))return _0x450e99;throw TypeError(_0x18d39e(0x350));}return(_0x2bd210==='string'?String:Number)(_0x28c4c6);}function sn(_0x224b0e){const _0x5642b2=_0x3d03;var _0x2cd307=on(_0x224b0e,_0x5642b2(0x2df));return W(_0x2cd307)==_0x5642b2(0x3f6)?_0x2cd307:_0x2cd307+'';}function G(_0x227af3,_0x272ed3,_0x2fe22e){const _0x4950d8=_0x3d03;return(_0x272ed3=sn(_0x272ed3))in _0x227af3?Object[_0x4950d8(0x228)](_0x227af3,_0x272ed3,{'value':_0x2fe22e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x227af3[_0x272ed3]=_0x2fe22e,_0x227af3;}function K(_0x233def,_0x36486b){return function(_0x5654b9,_0x5a25c5){_0x36486b(_0x5654b9,_0x5a25c5,_0x233def);};}function q(_0x56ac42,_0x4913eb,_0x1ba2cc,_0x16a8ee){const _0x23dac2=_0x3d03;var _0x54f100=arguments[_0x23dac2(0x3a5)],_0x8f30af=_0x54f100<0x3?_0x4913eb:_0x16a8ee===null?_0x16a8ee=Object[_0x23dac2(0x233)](_0x4913eb,_0x1ba2cc):_0x16a8ee,_0x220ef2;if(typeof Reflect==_0x23dac2(0x26a)&&typeof Reflect[_0x23dac2(0x32e)]=='function')_0x8f30af=Reflect[_0x23dac2(0x32e)](_0x56ac42,_0x4913eb,_0x1ba2cc,_0x16a8ee);else{for(var _0x12dfb3=_0x56ac42[_0x23dac2(0x3a5)]-0x1;_0x12dfb3>=0x0;_0x12dfb3--)(_0x220ef2=_0x56ac42[_0x12dfb3])&&(_0x8f30af=(_0x54f100<0x3?_0x220ef2(_0x8f30af):_0x54f100>0x3?_0x220ef2(_0x4913eb,_0x1ba2cc,_0x8f30af):_0x220ef2(_0x4913eb,_0x1ba2cc))||_0x8f30af);}return _0x54f100>0x3&&_0x8f30af&&Object[_0x23dac2(0x228)](_0x4913eb,_0x1ba2cc,_0x8f30af),_0x8f30af;}let J=class extends _0x4af7ce{constructor(_0x184143,_0xb96a31,_0x10fd6f,_0x277712,_0x50b09f){const _0x4b87bd=_0x3d03;super(),this[_0x4b87bd(0x3d9)]=_0x184143,this[_0x4b87bd(0x34e)]=_0xb96a31,this[_0x4b87bd(0x421)]=_0x10fd6f,this[_0x4b87bd(0x250)]=_0x277712,this['_presenceAdapterRegistry']=_0x50b09f,G(this,_0x4b87bd(0x2da),new _0x4a802e(_0x22cbf4[_0x4b87bd(0x1e0)])),G(this,'_presenceStatusRegistrations',new Map()),this[_0x4b87bd(0x2ca)](),this[_0x4b87bd(0x1f7)](),this[_0x4b87bd(0x3b9)]();}['dispose'](){const _0x2a4710=_0x3d03;this[_0x2a4710(0x358)]['forEach'](_0x404e3d=>_0x404e3d['dispose']()),this[_0x2a4710(0x358)]['clear'](),this['_status$'][_0x2a4710(0x24e)](),super[_0x2a4710(0x381)]();}['_initStatusListener'](){const _0x1d45dc=_0x3d03;this[_0x1d45dc(0x406)](_0x17436b(this['_univerInstanceService']['focused$'],this[_0x1d45dc(0x3d9)][_0x1d45dc(0x208)](_0x4d263b['UNIVER_DOC']),this['_univerInstanceService']['getCurrentTypeOfUnit$'](_0x4d263b[_0x1d45dc(0x1d9)]))[_0x1d45dc(0x203)](_0x37d85c(()=>cn(this[_0x1d45dc(0x3d9)])),_0x4e5d12(),_0x76e02a(_0x2063ce=>_0x2063ce?this[_0x1d45dc(0x421)][_0x1d45dc(0x22e)](_0x2063ce):_0x5f1171(null)),_0x76e02a(_0x291fdb=>_0x291fdb?_0x291fdb[_0x1d45dc(0x2fe)]:_0x5f1171(_0x22cbf4['NOT_COLLAB'])))[_0x1d45dc(0x21d)](_0x59facf=>{const _0x49d3e4=_0x1d45dc;this[_0x49d3e4(0x2da)][_0x49d3e4(0x362)](_0x59facf);}));}['_initStatusComponent'](){const _0x909642=_0x3d03;this[_0x909642(0x406)](this[_0x909642(0x250)][_0x909642(0x276)](_0x589fc3['HEADER_MENU'],()=>_0x9d541b(ln({'status$':this[_0x909642(0x2da)][_0x909642(0x1e6)]()}),this[_0x909642(0x34e)])));}[_0x14429d(0x3b9)](){const _0x53cb27=_0x14429d;let _0x2b769e=this[_0x53cb27(0x324)][_0x53cb27(0x365)][_0x53cb27(0x21d)](_0x1c27b6=>{const _0xd4d2fb=_0x53cb27;this[_0xd4d2fb(0x309)](_0x1c27b6);});this[_0x53cb27(0x406)](_0x1c7e61(()=>_0x2b769e[_0x53cb27(0x329)]()));}[_0x14429d(0x309)](_0x228217){const _0x2792f8=_0x14429d;let _0x4cccb4=new Map(_0x228217[_0x2792f8(0x21c)](_0x229e49=>_0x229e49[_0x2792f8(0x33d)]!=null)['map'](_0x103031=>[_0x103031['unitType'],_0x103031]));this[_0x2792f8(0x358)][_0x2792f8(0x333)]((_0x1a99cf,_0x44360c)=>{const _0x2239d2=_0x2792f8;_0x4cccb4[_0x2239d2(0x38f)](_0x44360c)||(_0x1a99cf[_0x2239d2(0x381)](),this[_0x2239d2(0x358)][_0x2239d2(0x2a0)](_0x44360c));}),_0x4cccb4[_0x2792f8(0x333)]((_0x38ea98,_0x369b68)=>{const _0x549e10=_0x2792f8;this['_presenceStatusRegistrations'][_0x549e10(0x38f)](_0x369b68)||this['_registerPresenceStatusComponent'](_0x38ea98);});}[_0x14429d(0x416)](_0x588327){const _0xce4ca2=_0x14429d;let _0x484b92=_0x588327[_0xce4ca2(0x33d)];if(!_0x484b92)return;let _0x3a945a=new _0x15436c(),_0x250694=new _0x4a802e(_0x22cbf4['NOT_COLLAB']);_0x3a945a[_0xce4ca2(0x264)](_0x1c7e61(()=>_0x250694['complete']())),_0x3a945a['add'](this[_0xce4ca2(0x250)][_0xce4ca2(0x276)](_0x484b92,()=>_0x9d541b(ln({'status$':_0x250694[_0xce4ca2(0x1e6)]()}),this[_0xce4ca2(0x34e)])));let _0x501801=this[_0xce4ca2(0x3d9)]['getCurrentTypeOfUnit$'](_0x588327[_0xce4ca2(0x382)])[_0xce4ca2(0x203)](_0x37d85c(_0x5cf216=>(_0x5cf216==null?void 0x0:_0x5cf216[_0xce4ca2(0x252)]())??null),_0x4e5d12(),_0x76e02a(_0xdb24ea=>_0xdb24ea?this['_collaborationController'][_0xce4ca2(0x22e)](_0xdb24ea):_0x5f1171(null)),_0x76e02a(_0x3a7304=>(_0x3a7304==null?void 0x0:_0x3a7304[_0xce4ca2(0x2fe)])??_0x5f1171(_0x22cbf4[_0xce4ca2(0x1e0)])))[_0xce4ca2(0x21d)](_0x5f5dd3=>_0x250694[_0xce4ca2(0x362)](_0x5f5dd3));_0x3a945a['add'](_0x1c7e61(()=>_0x501801[_0xce4ca2(0x329)]())),this[_0xce4ca2(0x358)][_0xce4ca2(0x1fc)](_0x588327[_0xce4ca2(0x382)],_0x3a945a);}};J=q([K(0x0,_0x4d77cc),K(0x1,_0x439243(_0x2c4c1e)),K(0x2,_0x439243(_0x479467)),K(0x3,_0x36acb8),K(0x4,_0x439243(_0x2873f9))],J);function cn(_0x220465){const _0x54370c=_0x14429d;let _0x3f3305=_0x220465[_0x54370c(0x254)](),_0x257dd3=_0x3f3305==null?void 0x0:_0x3f3305[_0x54370c(0x252)]();if(_0x257dd3&&!_0x3f0d0f(_0x257dd3))return _0x257dd3;let _0x2956b3=_0x220465[_0x54370c(0x32f)](_0x4d263b[_0x54370c(0x1e8)]),_0x47b350=_0x2956b3==null?void 0x0:_0x2956b3['getUnitId']();if(_0x47b350&&!_0x3f0d0f(_0x47b350))return _0x47b350;let _0x55bb50=_0x220465[_0x54370c(0x32f)](_0x4d263b[_0x54370c(0x1d9)]);if(_0x55bb50)return _0x55bb50[_0x54370c(0x252)]();let _0x3d6cef=_0x220465[_0x54370c(0x219)](_0x4d263b[_0x54370c(0x1e8)])['find'](_0xf5075b=>!_0x3f0d0f(_0xf5075b[_0x54370c(0x252)]()));return _0x3d6cef?_0x3d6cef[_0x54370c(0x252)]():null;}function ln(_0x4fe189){let {status$:_0x3308a1}=_0x4fe189;return function(){return _0x55526a(an,{'status$':_0x3308a1});};}var un=_0x14429d(0x2de),dn=_0x14429d(0x31b);const Y={'id':_0x14429d(0x212),'type':_0x3d1507['OPERATION'],'handler':(_0x62c38d,_0x47ee84)=>{const _0x21c3b1=_0x14429d;let _0x5e217d=_0x62c38d[_0x21c3b1(0x341)](_0x2873f9)[_0x21c3b1(0x341)](_0x47ee84['unitType']);if(!_0x5e217d)return!0x1;switch(_0x47ee84[_0x21c3b1(0x424)]['type']){case _0x21c3b1(0x1fc):return _0x5e217d['setRemotePresence'](_0x47ee84[_0x21c3b1(0x424)][_0x21c3b1(0x313)]),!0x0;case'remove':return _0x5e217d[_0x21c3b1(0x1e4)](_0x47ee84[_0x21c3b1(0x424)][_0x21c3b1(0x210)],_0x47ee84['update'][_0x21c3b1(0x21f)]),!0x0;case _0x21c3b1(0x1d7):return _0x5e217d[_0x21c3b1(0x328)](_0x47ee84[_0x21c3b1(0x424)]['unitId']),!0x0;default:return!0x1;}}},fn={};let X=class extends _0x32162e{constructor(_0x17452a,_0x4bb1d6){const _0x4ace77=_0x14429d;super(),this[_0x4ace77(0x268)]=_0x17452a,this[_0x4ace77(0x2e1)]=_0x4bb1d6,this[_0x4ace77(0x3b8)]();}[_0x14429d(0x3b8)](){const _0x28bcc7=_0x14429d;let _0x299cef=this;this['disposeWithMe'](this[_0x28bcc7(0x268)][_0x28bcc7(0x3a9)]({'onBeforePasteImage':async _0x171680=>{const _0x1a34de=_0x28bcc7;let _0x58015d=await _0x299cef['_imageIoService'][_0x1a34de(0x27e)](_0x171680);return _0x58015d?{'source':_0x58015d[_0x1a34de(0x375)],'imageSourceType':_0x58015d['imageSourceType']}:null;}}));}};X=q([K(0x0,_0x3014aa),K(0x1,_0x1ef202)],X);const pn=[_0x14429d(0x436),_0x14429d(0x3d0),'green.600',_0x14429d(0x41a),_0x14429d(0x339),_0x14429d(0x353)];var mn=class extends _0x4af7ce{constructor(..._0x1da7f9){const _0x26112d=_0x14429d;super(..._0x1da7f9),G(this,_0x26112d(0x3c3),new Map()),G(this,_0x26112d(0x405),0x0);}[_0x14429d(0x373)](_0x102edf){const _0x414c7c=_0x14429d;if(this['_assignedColors'][_0x414c7c(0x38f)](_0x102edf))return this[_0x414c7c(0x3c3)][_0x414c7c(0x341)](_0x102edf);let _0x5b45bd=pn[this[_0x414c7c(0x405)]];return this[_0x414c7c(0x405)]=(this['_colorIndex']+0x1)%pn[_0x414c7c(0x3a5)],this[_0x414c7c(0x3c3)]['set'](_0x102edf,_0x5b45bd),_0x5b45bd;}};function hn(_0x1e19fb){const _0x11d176=_0x14429d;let _0x10867d='';for(let _0x50576d of _0x1e19fb){let {startOffset:_0x4c0557,endOffset:_0x49e23f,isActive:_0x1fa1e7,rangeType:_0x268ff1,segmentId:_0xf9904a,segmentPage:_0x46b026}=_0x50576d;_0x10867d[_0x11d176(0x3a5)]&&(_0x10867d+=','),_0x10867d+=_0x4c0557+':'+_0x49e23f+':'+(_0x1fa1e7?'1':'0')+':'+_0x268ff1+':'+_0xf9904a+':'+_0x46b026;}return _0x10867d;}function gn(_0xe90c9a){const _0x221f04=_0x14429d;let _0x16ab2a=_0xe90c9a[_0x221f04(0x1fe)](','),_0x488bda=[];for(let _0x456f2b of _0x16ab2a){let [_0x5e1b67,_0x3bd095,_0x28fa02,_0x3a99bb,_0x611319,_0x36f51c]=_0x456f2b[_0x221f04(0x1fe)](':');_0x488bda[_0x221f04(0x305)]({'startOffset':Number(_0x5e1b67),'endOffset':Number(_0x3bd095),'collapsed':_0x5e1b67===_0x3bd095,'isActive':_0x28fa02==='1','rangeType':_0x3a99bb===_0xfd1486[_0x221f04(0x297)]?_0xfd1486['TEXT']:_0xfd1486[_0x221f04(0x279)],'segmentId':typeof _0x611319==_0x221f04(0x2df)?String(_0x611319):'','segmentPage':Number(_0x36f51c??-0x1)});}return _0x488bda['some'](_0x2930e7=>_0x2930e7[_0x221f04(0x299)])||(_0x488bda[0x0][_0x221f04(0x299)]=!0x0),_0x488bda;}var _n=class extends _0x32162e{constructor(..._0x5906c2){const _0x45b4db=_0x14429d;super(..._0x5906c2),G(this,_0x45b4db(0x32c),new _0x4a802e(null)),G(this,_0x45b4db(0x308),this[_0x45b4db(0x32c)][_0x45b4db(0x1e6)]());}[_0x14429d(0x245)](_0x43b4bd){const _0x6eaa0=_0x14429d;let {unitID:_0x412017,memberID:_0x3c1c6d,textRanges:_0x5cf398}=_0x43b4bd,_0x51f911=hn(_0x5cf398);if(_0x51f911==='')return;let _0x1fb0d4={'unitID':_0x412017,'memberID':_0x3c1c6d,'selection':_0x51f911};this[_0x6eaa0(0x32c)][_0x6eaa0(0x362)](_0x1fb0d4);}};let vn=class extends _0x32162e{get[_0x14429d(0x2ef)](){const _0x3aa4e8=_0x14429d;return this[_0x3aa4e8(0x2dd)][_0x3aa4e8(0x2eb)]();}get[_0x14429d(0x40f)](){const _0x3243b6=_0x14429d;return this[_0x3243b6(0x1c9)][_0x3243b6(0x2eb)]();}constructor(_0x211958,_0x1327f3,_0x21219b,_0x1e57df,_0x2e92f9,_0x3130a8,_0x3f2e8d,_0x3f5e98,_0x5f036c){const _0x5aa36d=_0x14429d;super(),this[_0x5aa36d(0x369)]=_0x211958,this['_session']=_0x1327f3,this['_injector']=_0x21219b,this[_0x5aa36d(0x2bc)]=_0x1e57df,this[_0x5aa36d(0x41e)]=_0x2e92f9,this[_0x5aa36d(0x3fa)]=_0x3130a8,this['_transformService']=_0x3f2e8d,this[_0x5aa36d(0x3d9)]=_0x3f5e98,this[_0x5aa36d(0x236)]=_0x5f036c,G(this,_0x5aa36d(0x224),!0x1),G(this,_0x5aa36d(0x3b8),!0x1),G(this,_0x5aa36d(0x2dd),new _0x4a802e(new Map())),G(this,'cursorInfo$',this[_0x5aa36d(0x2dd)]['asObservable']()),G(this,_0x5aa36d(0x1c9),new _0x4a802e([])),G(this,_0x5aa36d(0x3ee),this[_0x5aa36d(0x1c9)]['pipe'](_0x4e32e2(0x12c))),G(this,'_updateLocalCursor',_0x43c2fb(_0x2f2ea6=>{const _0x5d31fb=_0x5aa36d;let _0x1278ec={'eventID':_0x228507[_0x5d31fb(0x270)],'data':{'unitID':this[_0x5d31fb(0x369)],'memberID':this[_0x5d31fb(0x227)][_0x5d31fb(0x291)](),'selection':hn(_0x2f2ea6)}};this[_0x5d31fb(0x227)][_0x5d31fb(0x1f8)](_0x1278ec,this['unitID']);},0x64));}[_0x14429d(0x381)](){const _0x597d24=_0x14429d;super[_0x597d24(0x381)](),this[_0x597d24(0x2dd)][_0x597d24(0x362)](new Map()),this[_0x597d24(0x2dd)][_0x597d24(0x24e)](),this[_0x597d24(0x1c9)]['next']([]),this[_0x597d24(0x1c9)][_0x597d24(0x24e)]();}[_0x14429d(0x271)](){const _0x2cc28c=_0x14429d;this['_init']||(this[_0x2cc28c(0x3b8)]=!0x0,this[_0x2cc28c(0x227)]['sessionStatus$'][_0x2cc28c(0x203)](_0x54edaf(this[_0x2cc28c(0x29b)]))[_0x2cc28c(0x21d)](_0x1d80a5=>{const _0x5f4636=_0x2cc28c;_0x1d80a5===_0x411373['ONLINE']?this[_0x5f4636(0x2f2)]():this[_0x5f4636(0x1dc)]();}),this[_0x2cc28c(0x227)][_0x2cc28c(0x272)]['pipe'](_0x54edaf(this[_0x2cc28c(0x29b)]))[_0x2cc28c(0x21d)](_0x1e8f4b=>{const _0x3093fc=_0x2cc28c;let _0x281f74=_0x1e8f4b[_0x3093fc(0x43d)];_0x281f74===_0x228507[_0x3093fc(0x270)]&&this[_0x3093fc(0x3d2)](_0x1e8f4b),_0x281f74===_0x228507['USERS_LEAVE']&&this['_onCursorDelete'](_0x1e8f4b);}),this[_0x2cc28c(0x406)](this[_0x2cc28c(0x236)][_0x2cc28c(0x326)](_0x15d46d=>{const _0x2e3294=_0x2cc28c;let _0x187be8=_0x15d46d[_0x2e3294(0x38c)];_0x187be8!=null&&this[_0x2e3294(0x224)]&&_0x15d46d['id']===_0x54f38f['id']&&_0x187be8[_0x2e3294(0x210)]===this[_0x2e3294(0x369)]&&_0x187be8[_0x2e3294(0x425)]===!0x1&&_0x187be8[_0x2e3294(0x34a)]['length']>0x0&&this['_updateLocalCursor'](_0x187be8[_0x2e3294(0x34a)]);})),this['_syncEditingCollabCursorService'][_0x2cc28c(0x308)][_0x2cc28c(0x203)](_0x54edaf(this[_0x2cc28c(0x29b)]))[_0x2cc28c(0x21d)](_0x1082af=>{const _0x27315d=_0x2cc28c;if((_0x1082af==null?void 0x0:_0x1082af[_0x27315d(0x369)])!==this[_0x27315d(0x369)])return;let _0x7a769d={'eventID':_0x228507[_0x27315d(0x270)],'data':_0x1082af};this[_0x27315d(0x3d2)](_0x7a769d);}),this[_0x2cc28c(0x406)](this[_0x2cc28c(0x236)]['onCommandExecuted'](_0x965abc=>{const _0x250a56=_0x2cc28c;if(_0x965abc[_0x250a56(0x38c)]==null)return;let _0x2efb4e=_0x965abc[_0x250a56(0x38c)];if(_0x965abc['id']!==_0x56c228['id']||_0x2efb4e[_0x250a56(0x210)]!==this['unitID'])return;let _0x132c63={'id':_0x250a56(0x3b6),'params':_0x2efb4e},_0x10b6f6=this['cursorInfo'];for(let [_0x2a012b,_0x577fb4]of _0x10b6f6){let _0x5cb2ca={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x250a56(0x369)],'actions':null,'textRanges':_0x577fb4[_0x250a56(0x34a)]}},_0x431eb9=this['_transformService'][_0x250a56(0x26d)](_0x132c63,_0x5cb2ca,!0x1);if(_0x51b014(_0x431eb9))throw _0x431eb9['error'];_0x10b6f6[_0x250a56(0x1fc)](_0x2a012b,{..._0x577fb4,'ranges':_0x431eb9[_0x250a56(0x33c)][_0x250a56(0x38c)]['textRanges']});}queueMicrotask(()=>{const _0x4c8842=_0x250a56;this[_0x4c8842(0x2dd)][_0x4c8842(0x362)](_0x10b6f6);});})));}['_onCursorUpdate'](_0x470068){const _0x9a0477=_0x14429d;var _0x14fe0c;let {memberID:_0x40fe87,selection:_0x57f91b}=_0x470068['data'],_0x1b683a=gn(_0x57f91b),_0x45a19d=((_0x14fe0c=this[_0x9a0477(0x41e)][_0x9a0477(0x303)](this['unitID'],_0x40fe87))==null?void 0x0:_0x14fe0c[_0x9a0477(0x27f)])??'Unknown\x20user',_0x4ce062={'color':this[_0x9a0477(0x2bc)][_0x9a0477(0x373)](_0x40fe87),'name':_0x45a19d,'ranges':_0x1b683a},_0x283710=this[_0x9a0477(0x2ef)];_0x283710[_0x9a0477(0x1fc)](_0x40fe87,_0x4ce062),this['_cursorInfo$'][_0x9a0477(0x362)](_0x283710);}['_onCursorDelete'](_0x3e3ced){const _0x440d3c=_0x14429d;let {memberID:_0x3e7781}=_0x3e3ced[_0x440d3c(0x1cc)],_0x5c7afa=this[_0x440d3c(0x2ef)];_0x5c7afa[_0x440d3c(0x2a0)](_0x3e7781),this['_cursorInfo$'][_0x440d3c(0x362)](_0x5c7afa);}[_0x14429d(0x2f2)](){const _0x85b1d=_0x14429d;var _0x38bad1;if(this[_0x85b1d(0x224)]=!0x0,((_0x38bad1=this[_0x85b1d(0x3d9)][_0x85b1d(0x254)]())==null?void 0x0:_0x38bad1['getUnitId']())!==this['unitID'])return;let _0x5bd1a0=this['_injector'][_0x85b1d(0x341)](_0x25ff25)[_0x85b1d(0x1d6)]();Array[_0x85b1d(0x2fa)](_0x5bd1a0)&&_0x5bd1a0[_0x85b1d(0x3a5)]>0x0&&this[_0x85b1d(0x359)](_0x5bd1a0);}['_toggleOffline'](){this['_online']=!0x1;}};vn=q([K(0x2,_0x439243(_0x2c4c1e)),K(0x3,_0x439243(mn)),K(0x4,_0x439243(_0x529951)),K(0x5,_0x439243(_n)),K(0x6,_0x3e0970),K(0x7,_0x4d77cc),K(0x8,_0xdaa582)],vn);const yn=()=>{let _0x1e9ba4=[],_0x4bb944=!0x1;return _0x2c5384=>{_0x1e9ba4['push'](_0x2c5384),_0x4bb944||(_0x4bb944=!0x0,setTimeout(()=>{const _0x5455b8=_0x3d03;_0x1e9ba4[_0x5455b8(0x333)](_0x1d7769=>_0x1d7769()),_0x1e9ba4=[],_0x4bb944=!0x1;}));};};let bn=class extends _0x32162e{get[_0x14429d(0x2ef)](){const _0x42cbfe=_0x14429d;return this[_0x42cbfe(0x2dd)][_0x42cbfe(0x2eb)]();}get[_0x14429d(0x40f)](){const _0x294aa7=_0x14429d;return this[_0x294aa7(0x1c9)][_0x294aa7(0x2eb)]();}constructor(_0x1561cc,_0x12b9fc,_0x5a9bda,_0x545472,_0x473c73,_0x438a6e,_0x23bcd7,_0xfd880a){const _0x44ad65=_0x14429d;super(),this[_0x44ad65(0x369)]=_0x1561cc,this[_0x44ad65(0x227)]=_0x12b9fc,this['_injector']=_0x5a9bda,this[_0x44ad65(0x2bc)]=_0x545472,this['_memberService']=_0x473c73,this[_0x44ad65(0x3d9)]=_0x438a6e,this['_commandService']=_0x23bcd7,this[_0x44ad65(0x3c5)]=_0xfd880a,G(this,_0x44ad65(0x224),!0x1),G(this,'_init',!0x1),G(this,_0x44ad65(0x2dd),new _0x4a802e(new Map())),G(this,_0x44ad65(0x1da),this[_0x44ad65(0x2dd)][_0x44ad65(0x1e6)]()),G(this,_0x44ad65(0x1c9),new _0x4a802e([])),G(this,'roomMembers$',this[_0x44ad65(0x1c9)][_0x44ad65(0x203)](_0x4e32e2(0x12c))),G(this,'_updateLocalCursor',_0x43c2fb((_0x262d8e,_0x51a171)=>{const _0x343385=_0x44ad65;let _0x39a16f={'eventID':_0x228507['UPDATE_CURSOR'],'data':{'unitID':this[_0x343385(0x369)],'memberID':this['_session'][_0x343385(0x291)](),'selection':_0x2e0d4e(_0x262d8e,_0x51a171[_0x343385(0x3ff)])}};this[_0x343385(0x227)][_0x343385(0x1f8)](_0x39a16f,this[_0x343385(0x369)]);},0x64));}[_0x14429d(0x381)](){const _0x5d8691=_0x14429d;super[_0x5d8691(0x381)](),this[_0x5d8691(0x2dd)][_0x5d8691(0x362)](new Map()),this[_0x5d8691(0x2dd)]['complete'](),this['_roomMembers$'][_0x5d8691(0x362)]([]),this[_0x5d8691(0x1c9)]['complete']();}[_0x14429d(0x271)](){const _0x2fa933=_0x14429d;this[_0x2fa933(0x3b8)]||(this['_init']=!0x0,this[_0x2fa933(0x227)][_0x2fa933(0x428)][_0x2fa933(0x203)](_0x54edaf(this[_0x2fa933(0x29b)]))[_0x2fa933(0x21d)](_0x5550fe=>{const _0x361258=_0x2fa933;_0x5550fe===_0x411373[_0x361258(0x3cb)]?this[_0x361258(0x2f2)]():this['_toggleOffline']();}),this[_0x2fa933(0x227)][_0x2fa933(0x272)][_0x2fa933(0x203)](_0x54edaf(this[_0x2fa933(0x29b)]))['subscribe'](_0x5142f2=>{const _0x311779=_0x2fa933;let _0x53fa50=_0x5142f2[_0x311779(0x43d)];_0x53fa50===_0x228507[_0x311779(0x270)]&&this[_0x311779(0x3d2)](_0x5142f2),_0x53fa50===_0x228507['USERS_LEAVE']&&this[_0x311779(0x355)](_0x5142f2);}),this[_0x2fa933(0x273)](),this['disposeWithMe'](this[_0x2fa933(0x236)]['onCommandExecuted'](_0x3c05c6=>{const _0x1a5bf0=_0x2fa933;if(this[_0x1a5bf0(0x224)]&&_0x3c05c6['id']===_0x3ab318['id']&&_0x3c05c6[_0x1a5bf0(0x38c)][_0x1a5bf0(0x210)]===this[_0x1a5bf0(0x369)]){let _0x194c85=_0x3c05c6[_0x1a5bf0(0x38c)];this[_0x1a5bf0(0x359)](_0x194c85[_0x1a5bf0(0x36d)],_0x194c85[_0x1a5bf0(0x337)][0x0]);}})));}[_0x14429d(0x3d2)](_0x5b4692){const _0x460d9e=_0x14429d;var _0x25b0e4;let {memberID:_0x344fed,selection:_0x6da859}=_0x5b4692['data'],{sheetName:_0x3b3d38,range:_0x437fac}=_0x2f5144(_0x6da859),_0x492840={'name':((_0x25b0e4=this[_0x460d9e(0x41e)][_0x460d9e(0x303)](this[_0x460d9e(0x369)],_0x344fed))==null?void 0x0:_0x25b0e4[_0x460d9e(0x27f)])??_0x460d9e(0x364),'range':this['_getMergeRange'](_0x3b3d38,_0x437fac),'sheetID':_0x3b3d38,'color':this[_0x460d9e(0x2bc)]['assignAColorForMemberID'](_0x344fed),'selection':_0x6da859},_0x412322=this[_0x460d9e(0x2ef)];_0x412322[_0x460d9e(0x1fc)](_0x344fed,_0x492840),this[_0x460d9e(0x2dd)][_0x460d9e(0x362)](_0x412322);}['_onCursorDelete'](_0x37161e){const _0x208149=_0x14429d;let {memberID:_0x2d1d8d}=_0x37161e[_0x208149(0x1cc)],_0x50e920=this[_0x208149(0x2ef)];_0x50e920[_0x208149(0x2a0)](_0x2d1d8d),this[_0x208149(0x2dd)][_0x208149(0x362)](_0x50e920);}[_0x14429d(0x315)](_0x4711d6,_0x4ae6de){const _0x54efb5=_0x14429d;var _0x4ce92e;let _0x353ca9=(_0x4ce92e=this[_0x54efb5(0x3d9)][_0x54efb5(0x1ed)](this[_0x54efb5(0x369)],_0x4d263b[_0x54efb5(0x1d9)]))==null||(_0x4ce92e=_0x4ce92e['getSheetBySheetId'](_0x4711d6))==null?void 0x0:_0x4ce92e[_0x54efb5(0x374)]();return(_0x353ca9==null?void 0x0:_0x353ca9['find'](_0x4c47cb=>_0x2cdee5[_0x54efb5(0x43e)](_0x4c47cb,_0x4ae6de)))||_0x4ae6de;}['_onRefRangeChange'](){const _0x315e04=_0x14429d;let _0x2d46cc=new _0x15436c(),_0x484629=yn(),_0x266af7=()=>{const _0x2153bf=_0x3d03;_0x2d46cc[_0x2153bf(0x381)]();let _0x4d1bf2=(_0x14aec6,_0x36a993,_0x27ea71,_0x3c2b9f)=>{const _0x29204f=_0x2153bf;let _0x5bc7db=[];switch(_0x14aec6['id']){case _0x5b9a17['DeleteRangeMoveLeftCommandId']:_0x5bc7db=_0x545bc5(_0x14aec6,_0x3c2b9f);break;case _0x5b9a17['DeleteRangeMoveUpCommandId']:_0x5bc7db=_0x16e771(_0x14aec6,_0x3c2b9f);break;case _0x5b9a17[_0x29204f(0x391)]:_0x5bc7db=_0xc026ab(_0x14aec6,_0x3c2b9f);break;case _0x5b9a17[_0x29204f(0x1f3)]:_0x5bc7db=_0x236619(_0x14aec6,_0x3c2b9f);break;case _0x5b9a17[_0x29204f(0x2d4)]:_0x5bc7db=_0x13224b(_0x14aec6,_0x3c2b9f);break;case _0x5b9a17[_0x29204f(0x407)]:_0x5bc7db=_0x41c0ed(_0x14aec6,_0x3c2b9f);break;case _0x5b9a17['MoveRangeCommandId']:_0x5bc7db=_0xbfefff(_0x14aec6,_0x3c2b9f);break;case _0x5b9a17[_0x29204f(0x307)]:_0x5bc7db=_0xab56f7(_0x14aec6,_0x3c2b9f);break;case _0x5b9a17[_0x29204f(0x2a3)]:_0x5bc7db=_0xc812f3(_0x14aec6,_0x3c2b9f);}let _0x5e87e3=_0x4964ac(_0x5bc7db,_0x3c2b9f),_0x406d0a=this[_0x29204f(0x2ef)][_0x29204f(0x341)](_0x36a993);if(_0x406d0a&&_0x5e87e3){let _0x38cc78={..._0x406d0a,'range':_0x5e87e3};this['cursorInfo'][_0x29204f(0x1fc)](_0x36a993,_0x38cc78),_0x484629(()=>{const _0x212488=_0x29204f;let _0x23b7c0=this['_refRangeService'][_0x212488(0x3c1)](_0x5e87e3,_0x617dff=>(_0x23b7c0['dispose'](),_0x4d1bf2(_0x617dff,_0x36a993,_0x27ea71,_0x5e87e3)));_0x2d46cc['add'](_0x23b7c0);});}return{'redos':[],'undos':[]};};this[_0x2153bf(0x2ef)]['forEach']((_0x1d1fac,_0x55924b)=>{const _0x357eff=_0x2153bf;let {range:_0x3fe1b8,sheetID:_0x55ed99}=_0x1d1fac,_0x20a980=this[_0x357eff(0x3c5)][_0x357eff(0x3c1)](_0x3fe1b8,_0x30225d=>(_0x20a980[_0x357eff(0x381)](),_0x4d1bf2(_0x30225d,_0x55924b,_0x55ed99,_0x3fe1b8)));_0x2d46cc[_0x357eff(0x264)](_0x20a980);});};this[_0x315e04(0x406)](_0x1c7e61(this['_cursorInfo$'][_0x315e04(0x21d)](()=>{_0x266af7();})));}[_0x14429d(0x2f2)](){const _0xc3ff40=_0x14429d;var _0xb15091,_0x273580;if(this[_0xc3ff40(0x224)]=!0x0,((_0xb15091=this[_0xc3ff40(0x3d9)][_0xc3ff40(0x254)]())==null?void 0x0:_0xb15091['getUnitId']())!==this[_0xc3ff40(0x369)])return;let _0x5ef7d7=(_0x273580=this[_0xc3ff40(0x34e)]['get'](_0x2dca29)[_0xc3ff40(0x298)]())==null?void 0x0:_0x273580[0x0],_0x397b34=this[_0xc3ff40(0x3d9)][_0xc3ff40(0x32f)](_0x4d263b[_0xc3ff40(0x1d9)])[_0xc3ff40(0x229)]();_0x5ef7d7&&_0x397b34&&this['_updateLocalCursor'](_0x397b34['getSheetId'](),_0x5ef7d7);}[_0x14429d(0x1dc)](){this['_online']=!0x1;}};bn=q([K(0x2,_0x439243(_0x2c4c1e)),K(0x3,_0x439243(mn)),K(0x4,_0x439243(_0x529951)),K(0x5,_0x4d77cc),K(0x6,_0xdaa582),K(0x7,_0x439243(_0xb0be48))],bn);let Z=class extends _0x32162e{constructor(_0x413a05,_0x44665d,_0x3e1c70){const _0x37d0f7=_0x14429d;super(),this[_0x37d0f7(0x3d9)]=_0x413a05,this[_0x37d0f7(0x34e)]=_0x44665d,this['_collabSessionService']=_0x3e1c70,G(this,'_entities',new Map()),G(this,_0x37d0f7(0x1f1),new _0x2894b9()),this[_0x37d0f7(0x3b8)]();}[_0x14429d(0x381)](){const _0xf79db1=_0x14429d;super['dispose'](),this[_0xf79db1(0x1f1)][_0xf79db1(0x24e)](),this[_0xf79db1(0x1f9)][_0xf79db1(0x333)](_0x327f09=>_0x327f09[_0xf79db1(0x381)]());}[_0x14429d(0x335)](_0x282aef){const _0x54d975=_0x14429d;let _0x3a5af9=this[_0x54d975(0x1f9)][_0x54d975(0x341)](_0x282aef);return _0x3a5af9?_0x3a5af9[_0x54d975(0x1da)]:this[_0x54d975(0x1f1)][_0x54d975(0x203)](_0x49082d(_0x5cf358=>_0x5cf358[_0x54d975(0x369)]===_0x282aef),_0x76e02a(_0x2c493c=>_0x2c493c[_0x54d975(0x1da)]));}[_0x14429d(0x3b8)](){const _0x5ad89d=_0x14429d;this[_0x5ad89d(0x3d9)]['getTypeOfUnitAdded$'](_0x4d263b['UNIVER_SHEET'])[_0x5ad89d(0x203)](_0x54edaf(this[_0x5ad89d(0x29b)]))[_0x5ad89d(0x21d)](async _0x9f5696=>{const _0x2bdbf3=_0x5ad89d;let _0x245a48=_0x9f5696['unit'][_0x2bdbf3(0x252)](),_0x4ca243=await this[_0x2bdbf3(0x2ed)](_0x245a48);this[_0x2bdbf3(0x1f1)][_0x2bdbf3(0x362)](_0x4ca243),this['_entities'][_0x2bdbf3(0x1fc)](_0x245a48,_0x4ca243);}),this['_univerInstanceService'][_0x5ad89d(0x21a)](_0x4d263b[_0x5ad89d(0x1e8)])[_0x5ad89d(0x203)](_0x54edaf(this[_0x5ad89d(0x29b)]))[_0x5ad89d(0x203)](_0x49082d(_0xd7feb1=>!_0xd7feb1[_0x5ad89d(0x262)][_0x5ad89d(0x252)]()[_0x5ad89d(0x3ba)]('__')))[_0x5ad89d(0x21d)](async _0x57d501=>{const _0x56277a=_0x5ad89d;let {unit:_0x3f99cd}=_0x57d501,_0x5af36e=_0x3f99cd['getUnitId'](),_0x461747=await this[_0x56277a(0x395)](_0x5af36e);this[_0x56277a(0x1f1)][_0x56277a(0x362)](_0x461747),this[_0x56277a(0x1f9)][_0x56277a(0x1fc)](_0x5af36e,_0x461747);}),_0x17436b(this['_univerInstanceService'][_0x5ad89d(0x3c9)](_0x4d263b[_0x5ad89d(0x1e8)]),this[_0x5ad89d(0x3d9)]['getTypeOfUnitDisposed$'](_0x4d263b[_0x5ad89d(0x1d9)]))[_0x5ad89d(0x203)](_0x54edaf(this[_0x5ad89d(0x29b)]))[_0x5ad89d(0x21d)](_0x3f4cb4=>{const _0x1fea29=_0x5ad89d;let _0x193a37=_0x3f4cb4[_0x1fea29(0x252)](),_0x2ee410=this[_0x1fea29(0x1f9)][_0x1fea29(0x341)](_0x193a37);_0x2ee410&&(_0x2ee410[_0x1fea29(0x381)](),this[_0x1fea29(0x1f9)][_0x1fea29(0x2a0)](_0x193a37));});}async[_0x14429d(0x2ed)](_0x414f67){const _0x2fc756=_0x14429d;let _0x29beee=await this[_0x2fc756(0x237)][_0x2fc756(0x3eb)](_0x414f67),_0x1d29c7=this[_0x2fc756(0x34e)][_0x2fc756(0x3dc)](bn,_0x414f67,_0x29beee);return _0x1d29c7[_0x2fc756(0x271)](),_0x1d29c7;}async[_0x14429d(0x395)](_0x2537d0){const _0x432e96=_0x14429d;let _0x25e3d8=await this[_0x432e96(0x237)][_0x432e96(0x3eb)](_0x2537d0),_0xf315c6=this[_0x432e96(0x34e)][_0x432e96(0x3dc)](vn,_0x2537d0,_0x25e3d8);return _0xf315c6[_0x432e96(0x271)](),_0xf315c6;}};Z=q([K(0x0,_0x4d77cc),K(0x1,_0x439243(_0x2c4c1e)),K(0x2,_0x439243(_0x2b2a41))],Z);function _0x3d03(_0x27ce4,_0x3260c6){_0x27ce4=_0x27ce4-0x1c8;const _0x2133e8=_0x2133();let _0x3d0383=_0x2133e8[_0x27ce4];return _0x3d0383;}function xn(_0x14f969,_0x1daeeb){const _0x49e6b3=_0x14429d;_0x14f969['save'](),_0x14f969[_0x49e6b3(0x396)]=_0x49e6b3(0x3f7);let _0x41c0c=_0x14f969[_0x49e6b3(0x2ad)](_0x1daeeb)['width'];return _0x14f969[_0x49e6b3(0x1db)](),Math['min'](_0x41c0c+0x8,0xc8);}function Sn(_0xe453b7,_0x2ab393){const _0x5b5bda=_0x14429d;let {radius:_0x4d61fd,width:_0x2494ff,height:_0x5ec977}=_0x2ab393;_0x4d61fd??=0x0,_0x2494ff??=0x1e,_0x5ec977??=0x1e;let _0x45c484=0x0,_0x10880b=0x0,_0x47f483=0x0;_0x45c484=_0x10880b=_0x47f483=Math[_0x5b5bda(0x2d6)](_0x4d61fd,_0x2494ff/0x2,_0x5ec977/0x2),_0xe453b7[_0x5b5bda(0x31a)](),_0xe453b7[_0x5b5bda(0x38b)](_0x45c484,0x0),_0xe453b7[_0x5b5bda(0x2be)](_0x2494ff-_0x10880b,0x0),_0xe453b7[_0x5b5bda(0x2af)](_0x2494ff-_0x10880b,_0x10880b,_0x10880b,Math['PI']*0x3/0x2,0x0,!0x1),_0xe453b7['lineTo'](_0x2494ff,_0x5ec977-_0x47f483),_0xe453b7[_0x5b5bda(0x2af)](_0x2494ff-_0x47f483,_0x5ec977-_0x47f483,_0x47f483,0x0,Math['PI']/0x2,!0x1),_0xe453b7[_0x5b5bda(0x2be)](0x0,_0x5ec977),_0xe453b7['lineTo'](0x0,_0x45c484),_0xe453b7[_0x5b5bda(0x2af)](_0x45c484,_0x45c484,_0x45c484,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0xe453b7[_0x5b5bda(0x2e2)](),_0x2ab393[_0x5b5bda(0x334)]&&(_0xe453b7['save'](),_0xe453b7['fillStyle']=_0x2ab393['fill'],_0x2ab393[_0x5b5bda(0x2f1)]===_0x5b5bda(0x201)?_0xe453b7[_0x5b5bda(0x334)](_0x5b5bda(0x201)):_0xe453b7['fill'](),_0xe453b7[_0x5b5bda(0x1db)]());}var Cn=class e extends _0xcdd8d1{constructor(_0x2641a2,_0xb775fd){const _0x233653=_0x14429d;super(_0x2641a2,_0xb775fd),G(this,_0x233653(0x302),void 0x0),G(this,_0x233653(0x3f9),void 0x0),this[_0x233653(0x302)]=_0xb775fd==null?void 0x0:_0xb775fd['color'],this[_0x233653(0x3f9)]=_0xb775fd==null?void 0x0:_0xb775fd[_0x233653(0x3f9)];}static[_0x14429d(0x3d4)](_0x40422a,_0x4f5bc5){const _0x59e2ee=_0x14429d;let {text:_0x55226f,color:_0x5afdf6}=_0x4f5bc5;_0x40422a[_0x59e2ee(0x352)](),_0x40422a[_0x59e2ee(0x396)]=_0x59e2ee(0x2c8);let _0x3c417e=_0x40422a['measureText'](_0x55226f)[_0x59e2ee(0x3ef)];if(Sn(_0x40422a,{'height':0x14,'radius':0x4,'width':xn(_0x40422a,_0x55226f),'fill':_0x5afdf6,'evented':!0x1}),_0x40422a[_0x59e2ee(0x3e3)]=_0x59e2ee(0x2db),_0x3c417e>0xc0){let _0x442709='',_0xf74572=0x0;for(let _0x3310df of _0x55226f){let _0x59dd97=_0x40422a[_0x59e2ee(0x2ad)](_0x3310df)[_0x59e2ee(0x3ef)];if(_0xf74572+_0x59dd97<=0xc0-_0x40422a[_0x59e2ee(0x2ad)](_0x59e2ee(0x2d1))[_0x59e2ee(0x3ef)])_0x442709+=_0x3310df,_0xf74572+=_0x59dd97;else{_0x442709+=_0x59e2ee(0x2d1);break;}}_0x40422a[_0x59e2ee(0x20a)](_0x442709,0x4,0xf);}else _0x40422a[_0x59e2ee(0x20a)](_0x55226f,0x4,0xf);_0x40422a['restore']();}[_0x14429d(0x29d)](_0x4ece4a){const _0x35750f=_0x14429d;e[_0x35750f(0x3d4)](_0x4ece4a,this);}};const wn=_0x14429d(0x403);var Tn=class{constructor(_0x352a0e,_0xd6524c,_0x52c2f6,_0x21f9cd){const _0x24b09c=_0x14429d;this[_0x24b09c(0x404)]=_0x352a0e,this[_0x24b09c(0x370)]=_0xd6524c,this[_0x24b09c(0x40d)]=_0x52c2f6,this[_0x24b09c(0x24b)]=_0x21f9cd,G(this,_0x24b09c(0x431),[]),G(this,_0x24b09c(0x37e),null),G(this,_0x24b09c(0x316),null),G(this,_0x24b09c(0x3ab),null),G(this,_0x24b09c(0x3c8),null),G(this,'_eventUnsubscribe',null),this['_render']();}set[_0x14429d(0x2d7)](_0x251831){const _0x526127=_0x14429d;_0x251831?(this['_anchorDot']&&this[_0x526127(0x3ab)][_0x526127(0x3be)](),this['_textBubble']&&this[_0x526127(0x316)][_0x526127(0x23e)]()):(this[_0x526127(0x3ab)]&&this[_0x526127(0x3ab)]['show'](),this['_textBubble']&&this['_textBubble']['hide']());}[_0x14429d(0x381)](){const _0x2101a4=_0x14429d;for(let _0x371925 of this[_0x2101a4(0x431)])_0x371925[_0x2101a4(0x381)]();this['_textBubble']&&this[_0x2101a4(0x316)]['dispose'](),this[_0x2101a4(0x3ab)]&&this['_anchorDot'][_0x2101a4(0x381)](),this[_0x2101a4(0x37e)]&&this['_anchor'][_0x2101a4(0x381)](),this[_0x2101a4(0x42b)]&&this['_eventUnsubscribe']();}[_0x14429d(0x20f)](){const _0x565445=_0x14429d;let {_docSkeleton:_0x15fa05,_document:_0x13b99f}=this,{color:_0x2cfbb0,name:_0x3b565a,ranges:_0x20c2ab}=this['_cursor'],_0xdfd1fa=_0x13b99f['getOffsetConfig'](),{docsLeft:_0x487a91,docsTop:_0x377d63}=_0xdfd1fa,_0x31f272=new _0x3e63cb(_0xdfd1fa,_0x15fa05);for(let {startOffset:_0x11be7a,endOffset:_0x5de3a1,rangeType:_0x188a5f,segmentId:_0x8affbb,segmentPage:_0x690886,collapsed:_0x36a37f,isActive:_0x42a9de}of _0x20c2ab){let _0xd8aafb=_0x15fa05[_0x565445(0x1d0)](_0x11be7a,!0x0,_0x8affbb,_0x690886),_0x412030=_0x15fa05['findNodePositionByCharIndex'](_0x5de3a1,!0x0,_0x8affbb,_0x690886);_0x412030??=_0x15fa05[_0x565445(0x1d0)](_0x5de3a1-0x1,!0x1,_0x8affbb,_0x690886);let _0x204009=En(_0xd8aafb,_0x412030);if(_0x42a9de&&_0x204009[_0x565445(0x3db)]){let {contentBoxPointGroup:_0x58a7a8}=_0x31f272[_0x565445(0x22a)](_0x412030,_0x412030);if(_0x58a7a8[_0x565445(0x3a5)]===0x0)continue;this[_0x565445(0x3a0)](_0x2cfbb0,_0x58a7a8,_0x487a91,_0x377d63,_0x3b565a),this[_0x565445(0x42b)]=this[_0x565445(0x23c)]();}if(_0xd8aafb&&_0x412030){if(_0x188a5f===_0xfd1486['RECT']){let {pointGroup:_0x470f2f}=new _0x40d888(_0xdfd1fa,_0x15fa05)[_0x565445(0x22a)](_0xd8aafb,_0x412030)??{};if(_0x470f2f==null||_0x470f2f['length']===0x0)continue;this['_drawRectRange'](_0x2cfbb0,_0x470f2f,_0x487a91,_0x377d63);}else{if(!_0x36a37f&&_0x204009[_0x565445(0x1ff)]){let {borderBoxPointGroup:_0x16feed}=_0x31f272[_0x565445(0x22a)](_0xd8aafb,_0x412030);if(_0x16feed[_0x565445(0x3a5)]===0x0)continue;this[_0x565445(0x1d1)](_0x2cfbb0,_0x16feed,_0x487a91,_0x377d63);}}}}}[_0x14429d(0x3a0)](_0x49b85b,_0x34941c,_0x27a881,_0x5e4ffa,_0x53781e){const _0x5134d9=_0x14429d;let {left:_0x70a8dc,top:_0xef8d3f,height:_0x2c22fa}=this[_0x5134d9(0x1f4)](_0x34941c),_0x49b0dc=1.5/this[_0x5134d9(0x31f)](),_0x554daf=new _0x58a20d(wn+_0x5b5013(0x6),{'left':_0x70a8dc+_0x27a881-_0x49b0dc,'top':_0xef8d3f+_0x5e4ffa,'height':_0x2c22fa,'width':1.5,'fill':_0x49b85b||_0x457359(_0x330629[_0x5134d9(0x1f5)],0x0),'strokeWidth':_0x49b0dc,'stroke':'rgba(255,\x20255,\x20255,\x200.01)','evented':!0x0});this[_0x5134d9(0x37e)]=_0x554daf,this['_scene'][_0x5134d9(0x204)](_0x554daf,_0x2e23a0);let _0x125d60=new _0x58a20d(wn+_0x5b5013(0x6),{'left':_0x70a8dc+_0x27a881-_0x49b0dc,'top':_0xef8d3f+_0x5e4ffa-0x2,'height':0x4,'width':0x4,'fill':_0x49b85b||_0x457359(_0x330629[_0x5134d9(0x1f5)],0x0),'strokeWidth':0x0,'stroke':_0x49b85b||_0x457359(_0x330629[_0x5134d9(0x1f5)],0x0),'evented':!0x1});this[_0x5134d9(0x3ab)]=_0x125d60,this[_0x5134d9(0x370)][_0x5134d9(0x204)](_0x125d60,_0x2e23a0);let _0x414fdb=new Cn(wn+_0x5b5013(0x6),{'left':_0x70a8dc+_0x27a881-_0x49b0dc,'top':_0xef8d3f+_0x5e4ffa-0x14,'text':_0x53781e,'color':_0x49b85b});this[_0x5134d9(0x316)]=_0x414fdb,this['_scene']['addObject'](_0x414fdb,_0x2e23a0),this[_0x5134d9(0x2d7)]=!0x1;}[_0x14429d(0x23c)](){const _0x5d7be2=_0x14429d;let _0x502cc6=this[_0x5d7be2(0x37e)]['onPointerEnter$'][_0x5d7be2(0x207)](()=>{const _0x5555d6=_0x5d7be2;this[_0x5555d6(0x2d7)]=!0x0;}),_0x18dfe4=this['_anchor']['onPointerLeave$'][_0x5d7be2(0x207)](()=>{const _0x3bd797=_0x5d7be2;this[_0x3bd797(0x3c8)]&&clearTimeout(this[_0x3bd797(0x3c8)]),this[_0x3bd797(0x3c8)]=setTimeout(()=>{const _0x48edbf=_0x3bd797;this[_0x48edbf(0x2d7)]=!0x1;},0x7d0);});return()=>{const _0x1d3e92=_0x5d7be2;_0x502cc6['unsubscribe'](),_0x18dfe4[_0x1d3e92(0x329)]();};}[_0x14429d(0x1d1)](_0x24b36b,_0x128e4e,_0x40cd62,_0x5b3dfe){const _0x32048e=_0x14429d;let _0x32e004=0.2,_0x5f2624=new _0x22b6b1(_0x24b36b)[_0x32048e(0x1fd)](_0x32e004)[_0x32048e(0x28e)](),_0x3f61fa=new _0x24bbe3(_0x32048e(0x37c)+_0x5b5013(0x6),{'pointsGroup':_0x128e4e,'fill':_0x5f2624||_0x457359(_0x330629[_0x32048e(0x1f5)],_0x32e004),'left':_0x40cd62,'top':_0x5b3dfe,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x32048e(0x305)](_0x3f61fa),this[_0x32048e(0x370)][_0x32048e(0x204)](_0x3f61fa,_0x2e23a0);}[_0x14429d(0x310)](_0x2fddfb,_0xb06d94,_0x523026,_0x1c9b39){const _0x2a352f=_0x14429d;let _0x5b63aa=0.2,_0x5d8a0c=new _0x22b6b1(_0x2fddfb)['setAlpha'](_0x5b63aa)[_0x2a352f(0x28e)](),_0x4c4fa6=new _0x24bbe3('collab-rect-range-'+_0x5b5013(0x6),{'pointsGroup':_0xb06d94,'fill':_0x5d8a0c||_0x457359(_0x330629['black'],_0x5b63aa),'left':_0x523026,'top':_0x1c9b39,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2a352f(0x431)][_0x2a352f(0x305)](_0x4c4fa6),this[_0x2a352f(0x370)][_0x2a352f(0x204)](_0x4c4fa6,_0x2e23a0);}[_0x14429d(0x1f4)](_0x5e195a){let _0x21d69a=_0x5e195a[0x0],_0x38f4bb=_0x21d69a[0x0],_0xdbcc49=_0x21d69a[0x2],{x:_0xd3d298,y:_0xd2cb30}=_0x38f4bb,{x:_0x5acc65,y:_0xdf765a}=_0xdbcc49;return{'left':_0xd3d298,'top':_0xd2cb30,'width':_0x5acc65-_0xd3d298,'height':_0xdf765a-_0xd2cb30};}['_getScale'](){const _0x1f5207=_0x14429d;let {scaleX:_0xc02cd8,scaleY:_0x35301b}=this[_0x1f5207(0x370)][_0x1f5207(0x1df)]();return Math[_0x1f5207(0x432)](_0xc02cd8,_0x35301b);}};function En(_0x2355a1,_0x170c5e){const _0x16ca82=_0x14429d;if(!_0x170c5e)return{'canRenderAnchor':!0x1,'canRenderSelection':!0x1};if(!_0x2355a1||_0x2355a1[_0x16ca82(0x413)]!==_0x170c5e['pageType']||(_0x2355a1['pageType']===_0x19d442[_0x16ca82(0x2a9)]||_0x2355a1['pageType']===_0x19d442['FOOTER'])&&_0x2355a1[_0x16ca82(0x27a)]!==_0x170c5e[_0x16ca82(0x27a)])return{'canRenderAnchor':!0x0,'canRenderSelection':!0x1};let _0x47be13=_0x131357(_0x2355a1),_0x23b21a=_0x131357(_0x170c5e);return{'canRenderAnchor':!0x0,'canRenderSelection':_0x47be13==null||_0x23b21a==null?_0x47be13==null&&_0x23b21a==null:_0x47be13[_0x16ca82(0x22d)]===_0x23b21a[_0x16ca82(0x22d)]&&_0x47be13[_0x16ca82(0x2b4)]===_0x23b21a[_0x16ca82(0x2b4)]&&_0x47be13[_0x16ca82(0x1e7)]===_0x23b21a[_0x16ca82(0x1e7)]};}let Dn=class extends _0x32162e{constructor(_0x5a0902,_0x4ca4e7,_0x3a651c,_0x2652f8,_0x33bbaf){const _0x5435df=_0x14429d;super(),this[_0x5435df(0x30c)]=_0x5a0902,this[_0x5435df(0x422)]=_0x4ca4e7,this[_0x5435df(0x3ad)]=_0x3a651c,this[_0x5435df(0x236)]=_0x2652f8,this['_themeService']=_0x33bbaf,G(this,_0x5435df(0x3ca),[]),G(this,_0x5435df(0x2c1),[]),this[_0x5435df(0x3b8)]();}[_0x14429d(0x3b8)](){const _0x249207=_0x14429d;let _0x1d06d8=this[_0x249207(0x30c)][_0x249207(0x210)],_0x35c416=this['_docSkeletonManagerService'];this[_0x249207(0x406)](_0x4f55e7([this['_collabCursorController'][_0x249207(0x335)](_0x1d06d8),this[_0x249207(0x1f6)][_0x249207(0x253)]])['pipe'](_0x37d85c(([_0x1341e2,_0xd20b7f])=>({'skeleton':_0x35c416[_0x249207(0x319)](),'cursors':[..._0x1341e2[_0x249207(0x3d1)]()][_0x249207(0x3e5)](_0x56b124=>({..._0x56b124,'color':this[_0x249207(0x1f6)][_0x249207(0x393)](_0x56b124[_0x249207(0x302)])}))})))['subscribe'](_0x5074e5=>{const _0x4d3224=_0x249207;if(this[_0x4d3224(0x3cd)](),_0x5074e5){let {skeleton:_0x3fee60,cursors:_0x1a5920}=_0x5074e5;this[_0x4d3224(0x2f4)](_0x3fee60,_0x1a5920);}})),this[_0x249207(0x2b2)](),this[_0x249207(0x354)]();}[_0x14429d(0x2f4)](_0x25c5d7,_0x1afdbb){const _0x29e66c=_0x14429d;let {scene:_0x200912,mainComponent:_0x125f86}=this[_0x29e66c(0x30c)],_0x48ad1f=_0x1afdbb[_0x29e66c(0x249)](_0x256b18=>new Tn(_0x256b18,_0x200912,_0x25c5d7,_0x125f86));this[_0x29e66c(0x3ca)]=_0x48ad1f,this[_0x29e66c(0x2c1)]=_0x1afdbb;}[_0x14429d(0x349)](){const _0x3ef9fa=_0x14429d;this[_0x3ef9fa(0x3cd)]();let {scene:_0x21fae8,mainComponent:_0x12ee2e}=this[_0x3ef9fa(0x30c)],_0x3cae51=this[_0x3ef9fa(0x422)]['getSkeleton'](),_0x246623=this['_cursors']['map'](_0x139b0d=>new Tn(_0x139b0d,_0x21fae8,_0x3cae51,_0x12ee2e));this['_cursorShapes']=_0x246623;}[_0x14429d(0x3cd)](){const _0x73d81d=_0x14429d;this[_0x73d81d(0x3ca)][_0x73d81d(0x333)](_0x59e4bc=>_0x59e4bc[_0x73d81d(0x381)]()),this[_0x73d81d(0x3ca)]=[];}[_0x14429d(0x354)](){const _0x37882c=_0x14429d;let _0x3fcc26=[_0x4c78d2['id']];this['disposeWithMe'](this[_0x37882c(0x236)][_0x37882c(0x326)](_0xd63ebd=>{const _0x1de205=_0x37882c;_0x3fcc26['includes'](_0xd63ebd['id'])&&_0xd63ebd[_0x1de205(0x38c)]['unitId']===this[_0x1de205(0x30c)][_0x1de205(0x210)]&&this[_0x1de205(0x349)]();}));}[_0x14429d(0x2b2)](){const _0x4bbe2a=_0x14429d;this[_0x4bbe2a(0x406)](_0x3b1a74(this[_0x4bbe2a(0x30c)][_0x4bbe2a(0x293)]['onTransformChange$'])[_0x4bbe2a(0x203)](_0x225bc6(_0x4540a0=>_0x4540a0[_0x4bbe2a(0x3e6)]===_0x435aa5[_0x4bbe2a(0x243)]),_0x27ed7f(0x10))[_0x4bbe2a(0x21d)](()=>{const _0x2187db=_0x4bbe2a;this[_0x2187db(0x349)]();}));}};Dn=q([K(0x1,_0x439243(_0x101420)),K(0x2,_0x439243(Z)),K(0x3,_0xdaa582),K(0x4,_0x439243(_0xa61525))],Dn);var On=class extends _0xcdd8d1{constructor(_0x3ec857,_0x17094f){const _0x5c3053=_0x14429d;super(_0x3ec857,_0x17094f),G(this,_0x5c3053(0x306),void 0x0),G(this,_0x5c3053(0x3de),!0x1),G(this,_0x5c3053(0x28f),void 0x0),G(this,'_name',''),G(this,_0x5c3053(0x2ab),_0x5c3053(0x379)),G(this,_0x5c3053(0x2e5),void 0x0),G(this,_0x5c3053(0x1d8),void 0x0),G(this,'_highlight',void 0x0),G(this,_0x5c3053(0x34d),0x4),G(this,'_blinkTimer',void 0x0),G(this,_0x5c3053(0x3e8),void 0x0),G(this,'_isBlinkVisible',!0x0),G(this,_0x5c3053(0x3d6),0x0),G(this,_0x5c3053(0x325),_0x5c3053(0x214)),_0x17094f&&(this[_0x5c3053(0x26b)](_0x17094f),_0x17094f[_0x5c3053(0x411)]&&(_0x17094f['highlightSecond']??this[_0x5c3053(0x34d)])&&this[_0x5c3053(0x2a1)](_0x17094f[_0x5c3053(0x24c)]??this['_highlightSecond'])),this[_0x5c3053(0x25d)][_0x5c3053(0x207)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x5c3053(0x430)][_0x5c3053(0x207)](()=>this[_0x5c3053(0x26b)]({'hovered':!0x1}));}[_0x14429d(0x3c6)](_0x9be35b){const _0x538e60=_0x14429d;this[_0x538e60(0x3d6)]=_0x9be35b;}[_0x14429d(0x26b)](_0x3720c2){const _0x15f67e=_0x14429d;this[_0x15f67e(0x306)]=_0x3720c2[_0x15f67e(0x302)]??this[_0x15f67e(0x306)],this['_hovered']=_0x3720c2[_0x15f67e(0x409)]??this[_0x15f67e(0x3de)],this[_0x15f67e(0x28f)]=_0x3720c2[_0x15f67e(0x3ff)]??this[_0x15f67e(0x28f)],this[_0x15f67e(0x40a)]=_0x3720c2[_0x15f67e(0x27f)]??this[_0x15f67e(0x40a)],this['_labelPosition']=_0x3720c2['labelPosition']??this[_0x15f67e(0x2ab)],this[_0x15f67e(0x2e5)]=_0x3720c2[_0x15f67e(0x218)]??this[_0x15f67e(0x2e5)],this['_showText']=_0x3720c2[_0x15f67e(0x24d)]??this['_showText'],this[_0x15f67e(0x325)]=_0x3720c2[_0x15f67e(0x3da)]??this['_labelHorizontalPosition'],_0x3720c2['highlightSecond']!==void 0x0&&(this['_highlightSecond']=_0x3720c2[_0x15f67e(0x24c)]),_0x3720c2[_0x15f67e(0x411)]!==void 0x0&&(this[_0x15f67e(0x31e)]=_0x3720c2['highlight']),_0x3720c2['offsetY']!==void 0x0&&(this[_0x15f67e(0x3d6)]=_0x3720c2[_0x15f67e(0x348)]),this[_0x15f67e(0x2e7)]({'width':_0x3720c2['width'],'height':_0x3720c2[_0x15f67e(0x3fc)]});}['onMouseMove'](_0x512a2f){const _0x136b2c=_0x14429d;let {row:_0x1b65fc,column:_0x5d3606}=_0x512a2f;if(_0x1b65fc>=this['_range'][_0x136b2c(0x20e)]&&_0x1b65fc<=this[_0x136b2c(0x28f)][_0x136b2c(0x39c)]&&_0x5d3606>=this[_0x136b2c(0x28f)][_0x136b2c(0x420)]&&_0x5d3606<=this[_0x136b2c(0x28f)][_0x136b2c(0x36c)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x136b2c(0x26b)]({'hovered':!0x1});}[_0x14429d(0x2a1)](_0x5aa9e2){const _0x38a252=_0x14429d;this[_0x38a252(0x344)](),this[_0x38a252(0x30d)]=!0x0,this[_0x38a252(0x3e8)]=window[_0x38a252(0x2c5)](()=>{const _0x54ac0d=_0x38a252;this['_isBlinkVisible']=!this[_0x54ac0d(0x30d)],this[_0x54ac0d(0x384)](!0x0);},0x1f4),this[_0x38a252(0x363)]=window[_0x38a252(0x1fb)](()=>{const _0xdd611f=_0x38a252;this['_stopBlinking'](),this[_0xdd611f(0x30d)]=!0x0,this[_0xdd611f(0x384)](!0x0);},_0x5aa9e2*0x3e8);}[_0x14429d(0x344)](){const _0x300347=_0x14429d;this['_blinkIntervalTimer']&&=(window[_0x300347(0x275)](this[_0x300347(0x3e8)]),void 0x0),this[_0x300347(0x363)]&&=(window[_0x300347(0x3ec)](this[_0x300347(0x363)]),void 0x0);}[_0x14429d(0x200)](_0x4ef6cc){return!0x1;}['dispose'](){const _0x871b3b=_0x14429d;this[_0x871b3b(0x344)](),super[_0x871b3b(0x381)]();}[_0x14429d(0x29d)](_0x544e74){const _0x216413=_0x14429d;let _0x1d57f1=this[_0x216413(0x306)],_0x1f0277=this[_0x216413(0x2e5)];if(this[_0x216413(0x31e)]&&!this[_0x216413(0x30d)]&&(_0x1d57f1=this[_0x216413(0x22b)](this[_0x216413(0x306)]),_0x1f0277=this[_0x216413(0x2e5)]?this[_0x216413(0x22b)](this[_0x216413(0x2e5)]):void 0x0),_0x58a20d['drawWith'](_0x544e74,{'width':this[_0x216413(0x3ef)],'height':this[_0x216413(0x3fc)],'strokeWidth':this[_0x216413(0x226)]||1.5,'stroke':_0x1d57f1,'evented':!0x1,'fill':_0x1f0277}),this['_hovered']||this['_showText']){_0x544e74['save']();let _0x394dab=this[_0x216413(0x325)]===_0x216413(0x3d7)?-xn(_0x544e74,this[_0x216413(0x40a)]):this[_0x216413(0x3ef)];_0x544e74['transform'](0x1,0x0,0x0,0x1,_0x394dab,(this['_labelPosition']===_0x216413(0x3b4)?0x0:-0x14)+(this[_0x216413(0x3d6)]??0x0)),Cn[_0x216413(0x3d4)](_0x544e74,{'text':this[_0x216413(0x40a)],'color':_0x1d57f1}),_0x544e74[_0x216413(0x1db)]();}}[_0x14429d(0x22b)](_0xc03473){const _0x5bddaa=_0x14429d;return _0xc03473[_0x5bddaa(0x3ba)]('#')?_0x5bddaa(0x3c7)+Number[_0x5bddaa(0x2a7)](_0xc03473[_0x5bddaa(0x34c)](0x1,0x3),0x10)+',\x20'+Number[_0x5bddaa(0x2a7)](_0xc03473[_0x5bddaa(0x34c)](0x3,0x5),0x10)+',\x20'+Number[_0x5bddaa(0x2a7)](_0xc03473[_0x5bddaa(0x34c)](0x5,0x7),0x10)+',\x200.2)':_0xc03473[_0x5bddaa(0x3ba)](_0x5bddaa(0x321))?_0xc03473['replace'](/[\d.]+\)$/g,'0.2)'):_0xc03473[_0x5bddaa(0x3ba)](_0x5bddaa(0x261))?_0xc03473[_0x5bddaa(0x361)]('rgb',_0x5bddaa(0x321))['replace'](')',_0x5bddaa(0x2a2)):_0xc03473;}};let kn=class extends _0x32162e{constructor(_0xb7ad0e,_0x489c47,_0x5e8038,_0x1340ac){const _0x507a0c=_0x14429d;super(),this[_0x507a0c(0x30c)]=_0xb7ad0e,this['_sheetSkeletonManagerService']=_0x489c47,this[_0x507a0c(0x3ad)]=_0x5e8038,this[_0x507a0c(0x1f6)]=_0x1340ac,G(this,_0x507a0c(0x2c1),new Set()),G(this,'_lastPointer',null),G(this,_0x507a0c(0x37a),null),this[_0x507a0c(0x3b8)]();}['_init'](){const _0xb6f585=_0x14429d;this['_sheetSkeletonManagerService'][_0xb6f585(0x2a8)][_0xb6f585(0x203)](_0x535fcc(this['dispose$']),_0x48ade1(_0x936387=>{const _0x499846=_0xb6f585;if(_0x936387){let _0x24a7bf=_0x936387[_0x499846(0x20d)];return _0x4f55e7(this[_0x499846(0x3ad)][_0x499846(0x335)](this[_0x499846(0x30c)][_0x499846(0x210)]),this[_0x499846(0x1f6)]['currentTheme$'])[_0x499846(0x203)](_0x37d85c(([_0x357f3a,_0x33c806])=>{const _0x39d995=_0x499846;let _0xe392f0=new Map();return _0x357f3a[_0x39d995(0x333)]((_0x472169,_0x24dd3f)=>{const _0x302ce9=_0x39d995;if(_0x472169[_0x302ce9(0x2f0)]===_0x24a7bf){let _0x3a6f11={..._0x472169};_0x3a6f11['color']=this[_0x302ce9(0x1f6)][_0x302ce9(0x393)](_0x472169[_0x302ce9(0x302)]),_0xe392f0[_0x302ce9(0x1fc)](_0x24dd3f,_0x3a6f11);}}),{'skeleton':_0x936387,'cursors':_0xe392f0};}));}return _0x5f1171({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x2318e8,cursors:_0x38fe48})=>{const _0x11e735=_0xb6f585;this[_0x11e735(0x3cd)](),_0x2318e8&&this['_updateCollabCursors'](_0x2318e8,_0x38fe48);}),this[_0xb6f585(0x406)](this[_0xb6f585(0x285)]['currentSkeleton$'][_0xb6f585(0x203)](_0x535fcc(this['dispose$']))['subscribe'](_0x552382=>{const _0x303a14=_0xb6f585;var _0xe4e4e0;if(_0x552382==null)return;(_0xe4e4e0=this['_pointerMoveDisposable'])==null||_0xe4e4e0[_0x303a14(0x329)](),this[_0x303a14(0x37a)]=null;let {skeleton:_0x1e0841}=_0x552382,{scene:_0x3b0ec0}=this[_0x303a14(0x30c)];this[_0x303a14(0x37a)]=_0x3b0ec0[_0x303a14(0x3ac)][_0x303a14(0x207)](_0x43c2fb(_0x224812=>{const _0x1c219a=_0x303a14;var _0x1d9403,_0x4966e6;let {offsetX:_0x235c39,offsetY:_0x46853c}=_0x224812,{x:_0x297f43,y:_0x51e0a9}=_0x3b0ec0[_0x1c219a(0x3a6)](_0x164f70['FromArray']([_0x235c39,_0x46853c])),{scaleX:_0x10cdad,scaleY:_0x1c15f8}=_0x3b0ec0[_0x1c219a(0x1df)](),_0x50478b=_0x3b0ec0[_0x1c219a(0x251)](_0xa2fb8c[_0x1c219a(0x3e1)]),_0x419cae=_0x3b0ec0[_0x1c219a(0x438)](_0x164f70[_0x1c219a(0x230)]([_0x297f43,_0x51e0a9]),_0x50478b),_0x57c52b=_0x1e0841[_0x1c219a(0x2c2)](_0x235c39,_0x46853c,_0x10cdad,_0x1c15f8,_0x419cae);(((_0x1d9403=this[_0x1c219a(0x215)])==null?void 0x0:_0x1d9403[_0x1c219a(0x1e3)])!==_0x57c52b[_0x1c219a(0x1e3)]||((_0x4966e6=this[_0x1c219a(0x215)])==null?void 0x0:_0x4966e6[_0x1c219a(0x2e4)])!==_0x57c52b['row'])&&this[_0x1c219a(0x2c1)][_0x1c219a(0x333)](_0x59fa26=>{_0x59fa26['onMouseMove'](_0x57c52b);});},0x64));})),this['disposeWithMe'](_0x1c7e61(()=>{const _0x2c42e6=_0xb6f585;var _0x43a55f;(_0x43a55f=this['_pointerMoveDisposable'])==null||_0x43a55f[_0x2c42e6(0x329)](),this[_0x2c42e6(0x37a)]=null;}));}[_0x14429d(0x2f4)](_0x2060bb,_0x5c332b){const _0x479a66=_0x14429d;let _0x457c9c=this[_0x479a66(0x285)][_0x479a66(0x437)]();if(!_0x457c9c)return;let _0x2e7056=this[_0x479a66(0x3dd)]();if(!_0x2e7056)return;this[_0x479a66(0x2c1)][_0x479a66(0x333)](_0x80f1d2=>{const _0xae8107=_0x479a66;_0x80f1d2[_0xae8107(0x384)]();});let {scene:_0x443d74}=_0x2e7056,_0x4e4e6e=An(Array[_0x479a66(0x2d2)](_0x5c332b[_0x479a66(0x3d1)]()))[_0x479a66(0x249)](_0x2cb599=>{const _0x126250=_0x479a66;let {color:_0x2d25f0,range:_0x40b538,name:_0x4ec218,selection:_0x4e7115,sheetID:_0x5b4345}=_0x2cb599,{startColumn:_0x13910c,startRow:_0xb2ed4d,endColumn:_0x5cef47,endRow:_0x854d12}=_0x40b538,_0x2dc75a=_0x527228(_0xb2ed4d,_0x13910c,_0x443d74,_0x457c9c),_0x17a5f2=_0x527228(_0x854d12,_0x5cef47,_0x443d74,_0x457c9c),{columnHeaderHeightAndMarginTop:_0x564238}=_0x457c9c,{startX:_0x521df5,startY:_0x5366ad}=_0x2dc75a,{endX:_0x4aff10,endY:_0x3a912e}=_0x17a5f2,_0x1e4b11=_0x4aff10-_0x521df5,_0x4bee39=_0x3a912e-_0x5366ad;return new On(_0x4ec218,{'labelPosition':_0x5366ad-_0x564238>=0x14?_0x126250(0x379):_0x126250(0x3b4),'sheetID':_0x5b4345,'range':_0x40b538,'color':_0x2d25f0,'name':_0x4ec218,'selection':_0x4e7115,'left':_0x521df5,'top':_0x5366ad,'width':_0x1e4b11,'height':_0x4bee39,'evented':!0x1,'zIndex':0x1389});});_0x443d74[_0x479a66(0x231)](_0x4e4e6e,0x1),this[_0x479a66(0x2c1)]=new Set(_0x4e4e6e);}[_0x14429d(0x3cd)](){const _0x39a03e=_0x14429d;var _0x34b57c;(_0x34b57c=this[_0x39a03e(0x2c1)])==null||_0x34b57c[_0x39a03e(0x333)](_0x4f8233=>_0x4f8233[_0x39a03e(0x381)]());}[_0x14429d(0x3dd)](){const _0x26b533=_0x14429d;return _0x478dc1(this[_0x26b533(0x30c)][_0x26b533(0x262)],this['_context']);}};kn=q([K(0x1,_0x439243(_0x405920)),K(0x2,_0x439243(Z)),K(0x3,_0x439243(_0xa61525))],kn);function An(_0x35099e){const _0x1f8576=_0x14429d;let _0x42eb62=new Map();return _0x35099e[_0x1f8576(0x333)](_0x1bc57b=>{const _0x3640b7=_0x1f8576;if(_0x42eb62[_0x3640b7(0x38f)](_0x1bc57b['selection'])){let _0x477f03=_0x42eb62[_0x3640b7(0x341)](_0x1bc57b['selection']);_0x477f03[_0x3640b7(0x27f)]+=',\x20'+_0x1bc57b['name'];}else _0x42eb62['set'](_0x1bc57b['selection'],_0x1bc57b);}),Array[_0x1f8576(0x2d2)](_0x42eb62[_0x1f8576(0x3d1)]());}function jn(_0x4cb989){return typeof _0x4cb989=='object'&&!!_0x4cb989;}function Mn(_0x51900d){const _0x35389d=_0x14429d;return _0x51900d['eventID']===_0x228507[_0x35389d(0x270)]&&_0x35389d(0x1cc)in _0x51900d&&jn(_0x51900d[_0x35389d(0x1cc)])&&typeof _0x51900d['data']['memberID']==_0x35389d(0x2df)&&typeof _0x51900d[_0x35389d(0x1cc)][_0x35389d(0x304)]=='string';}function Nn(_0x261de8){const _0x379a2f=_0x14429d;return _0x261de8[_0x379a2f(0x43d)]===_0x228507[_0x379a2f(0x42e)]&&_0x379a2f(0x1cc)in _0x261de8&&jn(_0x261de8[_0x379a2f(0x1cc)])&&typeof _0x261de8[_0x379a2f(0x1cc)]['memberID']==_0x379a2f(0x2df);}function Pn(_0x5848b8,_0x501e0f){const _0x1bc03d=_0x14429d;let _0x25f683;try{_0x25f683=JSON['parse'](_0x5848b8);}catch{return null;}if(!jn(_0x25f683)||typeof _0x25f683[_0x1bc03d(0x318)]!='string'||typeof _0x25f683[_0x1bc03d(0x210)]!=_0x1bc03d(0x2df)||typeof _0x25f683[_0x1bc03d(0x36d)]!=_0x1bc03d(0x2df))return null;let _0x2b1997=typeof _0x25f683[_0x1bc03d(0x382)]==_0x1bc03d(0x33f)?_0x25f683[_0x1bc03d(0x382)]:_0x501e0f;if(_0x2b1997==null)return null;let _0x5a5756=jn(_0x25f683[_0x1bc03d(0x223)])&&typeof _0x25f683[_0x1bc03d(0x223)]['x']=='number'&&Number[_0x1bc03d(0x41d)](_0x25f683['pointer']['x'])&&typeof _0x25f683['pointer']['y']==_0x1bc03d(0x33f)&&Number['isFinite'](_0x25f683[_0x1bc03d(0x223)]['y'])?{'x':_0x25f683[_0x1bc03d(0x223)]['x'],'y':_0x25f683[_0x1bc03d(0x223)]['y']}:null;return{'kind':_0x25f683['kind'],'unitType':_0x2b1997,'unitId':_0x25f683[_0x1bc03d(0x210)],'subUnitId':_0x25f683['subUnitId'],'selectedIds':Array['isArray'](_0x25f683[_0x1bc03d(0x42d)])?_0x25f683['selectedIds']['filter'](_0x46198b=>typeof _0x46198b==_0x1bc03d(0x2df)):[],'focusedId':typeof _0x25f683['focusedId']==_0x1bc03d(0x2df)?_0x25f683[_0x1bc03d(0x274)]:null,'pointer':_0x5a5756};}function Fn(_0x97fd09,_0x325a8d,_0x43f445){const _0x303c11=_0x14429d;return{'kind':_0x325a8d,'unitType':_0x97fd09,'unitId':_0x43f445[_0x303c11(0x210)],'subUnitId':_0x43f445['subUnitId'],'selectedIds':Array[_0x303c11(0x2d2)](_0x43f445[_0x303c11(0x42d)]),'focusedId':_0x43f445['focusedId'],'pointer':_0x43f445[_0x303c11(0x223)]?{..._0x43f445[_0x303c11(0x223)]}:null};}let In=class extends _0x32162e{constructor(_0x262ef6,_0x4bce5d,_0x4c72d4,_0x1c930f,_0x22899b,_0x103f39){const _0x5e8f4a=_0x14429d;super(),this['unitId']=_0x262ef6,this[_0x5e8f4a(0x227)]=_0x4bce5d,this[_0x5e8f4a(0x28c)]=_0x4c72d4,this['_colorAssignService']=_0x1c930f,this[_0x5e8f4a(0x41e)]=_0x22899b,this['_commandService']=_0x103f39,G(this,_0x5e8f4a(0x224),!0x1),G(this,_0x5e8f4a(0x2dc),!0x1);}get[_0x14429d(0x382)](){const _0x32b78c=_0x14429d;return this[_0x32b78c(0x28c)][_0x32b78c(0x382)];}[_0x14429d(0x381)](){const _0x52725d=_0x14429d;this[_0x52725d(0x2cc)](),super['dispose']();}[_0x14429d(0x271)](){const _0x153fdf=_0x14429d;this[_0x153fdf(0x2dc)]||(this['_initialized']=!0x0,this[_0x153fdf(0x227)][_0x153fdf(0x428)][_0x153fdf(0x203)](_0x54edaf(this[_0x153fdf(0x29b)]))[_0x153fdf(0x21d)](_0x2233e6=>{const _0x309695=_0x153fdf;if(_0x2233e6===_0x411373['ONLINE']){this[_0x309695(0x224)]=!0x0;let _0x727c67=this[_0x309695(0x28c)]['getLocalPresence'](this[_0x309695(0x210)]);_0x727c67&&this[_0x309695(0x29a)](_0x727c67);return;}this[_0x309695(0x224)]=!0x1,this[_0x309695(0x2cc)]();}),this[_0x153fdf(0x227)][_0x153fdf(0x272)][_0x153fdf(0x203)](_0x54edaf(this[_0x153fdf(0x29b)]))[_0x153fdf(0x21d)](_0x219067=>{const _0xec59f0=_0x153fdf;Mn(_0x219067)?this['_handleCursorUpdate'](_0x219067):Nn(_0x219067)&&this[_0xec59f0(0x1f0)](_0x219067[_0xec59f0(0x1cc)][_0xec59f0(0x1c8)]);}),this[_0x153fdf(0x28c)]['localPresence$'][_0x153fdf(0x203)](_0x49082d(_0x401631=>this['_online']&&_0x401631['unitId']===this[_0x153fdf(0x210)]),_0x6b057b(_0x22ef94=>_0x5f3da1(_0x22ef94[_0x153fdf(0x2d0)]),{'leading':!0x0,'trailing':!0x0}),_0x54edaf(this[_0x153fdf(0x29b)]))[_0x153fdf(0x21d)](_0x4bca24=>this['_sendLocalPresence'](_0x4bca24)));}[_0x14429d(0x29a)](_0x195d76){const _0x3c560c=_0x14429d;let _0x2a5578=this['_session'][_0x3c560c(0x291)]();if(!_0x2a5578||!this[_0x3c560c(0x224)])return;let _0x23dfaf={'eventID':_0x228507[_0x3c560c(0x270)],'data':{'unitID':this[_0x3c560c(0x210)],'memberID':_0x2a5578,'selection':JSON[_0x3c560c(0x26f)](Fn(this[_0x3c560c(0x382)],this[_0x3c560c(0x28c)]['presenceKind'],_0x195d76))}};this[_0x3c560c(0x227)][_0x3c560c(0x1f8)](_0x23dfaf,this[_0x3c560c(0x210)])[_0x3c560c(0x2d8)](()=>void 0x0);}[_0x14429d(0x366)](_0x23ff35){const _0x1d5d0d=_0x14429d;let {memberID:_0x14f34b,selection:_0xd723ab}=_0x23ff35[_0x1d5d0d(0x1cc)];if(_0x14f34b===this['_session'][_0x1d5d0d(0x291)]())return;let _0x5584d1=Pn(_0xd723ab,this['unitType']);if(!_0x5584d1||_0x5584d1[_0x1d5d0d(0x318)]!==this[_0x1d5d0d(0x28c)][_0x1d5d0d(0x2aa)]||_0x5584d1['unitType']!==this[_0x1d5d0d(0x382)]||_0x5584d1[_0x1d5d0d(0x210)]!==this[_0x1d5d0d(0x210)])return;let _0x407526=this[_0x1d5d0d(0x41e)]['getMember'](this[_0x1d5d0d(0x210)],_0x14f34b),_0x25b5a8={'unitId':_0x5584d1[_0x1d5d0d(0x210)],'subUnitId':_0x5584d1[_0x1d5d0d(0x36d)],'selectedIds':_0x5584d1['selectedIds'],'focusedId':_0x5584d1['focusedId'],'pointer':_0x5584d1[_0x1d5d0d(0x223)],'memberId':_0x14f34b,'color':this[_0x1d5d0d(0x2bc)][_0x1d5d0d(0x373)](_0x14f34b),'name':(_0x407526==null?void 0x0:_0x407526['name'])??_0x14f34b};this['_commandService'][_0x1d5d0d(0x33a)](Y['id'],{'unitType':this[_0x1d5d0d(0x382)],'update':{'type':_0x1d5d0d(0x1fc),'state':_0x25b5a8}})[_0x1d5d0d(0x2d8)](()=>void 0x0);}[_0x14429d(0x1f0)](_0x69ef2a){const _0x2a9227=_0x14429d;this[_0x2a9227(0x236)][_0x2a9227(0x33a)](Y['id'],{'unitType':this[_0x2a9227(0x382)],'update':{'type':_0x2a9227(0x3b5),'unitId':this[_0x2a9227(0x210)],'memberId':_0x69ef2a}})['catch'](()=>void 0x0);}['_clearRemotePresences'](){const _0x1f9b11=_0x14429d;this[_0x1f9b11(0x236)][_0x1f9b11(0x33a)](Y['id'],{'unitType':this[_0x1f9b11(0x382)],'update':{'type':'clear','unitId':this[_0x1f9b11(0x210)]}})[_0x1f9b11(0x2d8)](()=>void 0x0);}};In=q([K(0x3,_0x439243(mn)),K(0x4,_0x439243(_0x529951)),K(0x5,_0x439243(_0xdaa582))],In);let Q=class extends _0x32162e{constructor(_0x245bfb,_0xf267e6,_0x4d0d32,_0x20a0e7){const _0x2266f9=_0x14429d;super(),this[_0x2266f9(0x3d9)]=_0x245bfb,this['_injector']=_0xf267e6,this[_0x2266f9(0x237)]=_0x4d0d32,this[_0x2266f9(0x3a2)]=_0x20a0e7,G(this,_0x2266f9(0x419),!0x1),G(this,_0x2266f9(0x1f9),new Map()),G(this,_0x2266f9(0x3a7),new Map()),G(this,'_adapterDisposables',new Map()),this[_0x2266f9(0x3b8)]();}[_0x14429d(0x381)](){const _0x2ef656=_0x14429d;this[_0x2ef656(0x419)]=!0x0,this[_0x2ef656(0x3f2)][_0x2ef656(0x333)](_0x4255e3=>_0x4255e3[_0x2ef656(0x381)]()),this[_0x2ef656(0x3f2)][_0x2ef656(0x1d7)](),this[_0x2ef656(0x1f9)]['forEach'](_0x2a2e92=>_0x2a2e92[_0x2ef656(0x381)]()),this[_0x2ef656(0x1f9)]['clear'](),this['_pendingEntities']['clear'](),super[_0x2ef656(0x381)]();}[_0x14429d(0x3b8)](){const _0x2da72c=_0x14429d;this['_adapterRegistry'][_0x2da72c(0x365)][_0x2da72c(0x203)](_0x54edaf(this[_0x2da72c(0x29b)]))['subscribe'](_0x4c2f20=>this['_syncAdapters'](_0x4c2f20));}[_0x14429d(0x1ec)](_0x515f56){const _0x1ab920=_0x14429d;let _0x1ddbc3=new Set(_0x515f56[_0x1ab920(0x249)](_0xc02e3d=>_0xc02e3d['unitType']));this[_0x1ab920(0x3f2)][_0x1ab920(0x333)]((_0x45b2ad,_0xbc937a)=>{const _0x3254d4=_0x1ab920;_0x1ddbc3[_0x3254d4(0x38f)](_0xbc937a)||(_0x45b2ad[_0x3254d4(0x381)](),this[_0x3254d4(0x3f2)][_0x3254d4(0x2a0)](_0xbc937a),this[_0x3254d4(0x2b1)](_0xbc937a));}),_0x515f56['forEach'](_0x2b611b=>{const _0x205012=_0x1ab920;this['_adapterDisposables'][_0x205012(0x38f)](_0x2b611b[_0x205012(0x382)])||this[_0x205012(0x234)](_0x2b611b);});}['_bindAdapter'](_0x11fdc9){const _0x34f542=_0x14429d;let _0x26524c=new _0x15436c();this[_0x34f542(0x3f2)][_0x34f542(0x1fc)](_0x11fdc9[_0x34f542(0x382)],_0x26524c),_0x26524c['add'](_0x11fdc9[_0x34f542(0x317)]()),this[_0x34f542(0x3d9)][_0x34f542(0x219)](_0x11fdc9[_0x34f542(0x382)])[_0x34f542(0x333)](_0x135068=>this[_0x34f542(0x24a)](_0x135068[_0x34f542(0x252)](),_0x11fdc9)['catch'](()=>void 0x0));let _0x4a50d7=this['_univerInstanceService'][_0x34f542(0x21a)](_0x11fdc9[_0x34f542(0x382)])[_0x34f542(0x21d)](({unit:_0x4a0ad2})=>this[_0x34f542(0x24a)](_0x4a0ad2[_0x34f542(0x252)](),_0x11fdc9)[_0x34f542(0x2d8)](()=>void 0x0));_0x26524c['add'](_0x1c7e61(()=>_0x4a50d7[_0x34f542(0x329)]()));let _0x267068=this['_univerInstanceService'][_0x34f542(0x3c9)](_0x11fdc9['unitType'])[_0x34f542(0x21d)](_0x3317fc=>this[_0x34f542(0x1cf)](_0x3317fc[_0x34f542(0x252)]()));_0x26524c[_0x34f542(0x264)](_0x1c7e61(()=>_0x267068[_0x34f542(0x329)]()));}async['_startEntity'](_0x5204bf,_0x478efb){const _0x329269=_0x14429d;if(this[_0x329269(0x1f9)][_0x329269(0x38f)](_0x5204bf)||this[_0x329269(0x3a7)][_0x329269(0x38f)](_0x5204bf))return;let _0x9e8967={};this[_0x329269(0x3a7)][_0x329269(0x1fc)](_0x5204bf,_0x9e8967);let _0x572d5d=await this['_collabSessionService']['requireSession'](_0x5204bf)['catch'](_0x5eda0f=>{const _0x455378=_0x329269;throw this['_pendingEntities'][_0x455378(0x341)](_0x5204bf)===_0x9e8967&&this[_0x455378(0x3a7)][_0x455378(0x2a0)](_0x5204bf),_0x5eda0f;});if(this[_0x329269(0x419)]||this['_pendingEntities'][_0x329269(0x341)](_0x5204bf)!==_0x9e8967||this[_0x329269(0x3a2)][_0x329269(0x341)](_0x478efb['unitType'])!==_0x478efb){this[_0x329269(0x3a7)][_0x329269(0x341)](_0x5204bf)===_0x9e8967&&this[_0x329269(0x3a7)]['delete'](_0x5204bf);return;}let _0x30ada7=this[_0x329269(0x34e)][_0x329269(0x3dc)](In,_0x5204bf,_0x572d5d,_0x478efb);_0x30ada7['init'](),this[_0x329269(0x3a7)][_0x329269(0x2a0)](_0x5204bf),this[_0x329269(0x1f9)]['set'](_0x5204bf,_0x30ada7);}[_0x14429d(0x1cf)](_0x202b60){const _0x35bfeb=_0x14429d;this['_pendingEntities'][_0x35bfeb(0x2a0)](_0x202b60);let _0x1ea4ac=this[_0x35bfeb(0x1f9)][_0x35bfeb(0x341)](_0x202b60);_0x1ea4ac&&(_0x1ea4ac[_0x35bfeb(0x381)](),this[_0x35bfeb(0x1f9)]['delete'](_0x202b60));}[_0x14429d(0x2b1)](_0x241cbc){const _0x54572a=_0x14429d;this['_univerInstanceService'][_0x54572a(0x219)](_0x241cbc)[_0x54572a(0x333)](_0x16a1e5=>this['_pendingEntities'][_0x54572a(0x2a0)](_0x16a1e5[_0x54572a(0x252)]())),Array[_0x54572a(0x2d2)](this[_0x54572a(0x1f9)][_0x54572a(0x3ce)]())[_0x54572a(0x333)](([_0x473094,_0x3a152e])=>{const _0x504543=_0x54572a;_0x3a152e[_0x504543(0x382)]===_0x241cbc&&this[_0x504543(0x1cf)](_0x473094);});}};Q=q([K(0x0,_0x4d77cc),K(0x1,_0x439243(_0x2c4c1e)),K(0x2,_0x439243(_0x2b2a41)),K(0x3,_0x439243(_0x2873f9))],Q);let Ln=class extends _0x4af7ce{constructor(_0x478af2,_0x52c5dc,_0x33f156,_0x1a26a6,_0x26f42d,_0x401a86){const _0x4dc92b=_0x14429d;super(),this[_0x4dc92b(0x27d)]=_0x478af2,this[_0x4dc92b(0x33e)]=_0x52c5dc,this[_0x4dc92b(0x383)]=_0x33f156,this['_messageService']=_0x1a26a6,this['_notificationService']=_0x26f42d,this[_0x4dc92b(0x221)]=_0x401a86,G(this,_0x4dc92b(0x25e),null),G(this,'_retryingConflictCacheUnitIDs',new Set()),this[_0x4dc92b(0x320)](),this[_0x4dc92b(0x2cb)]();}['dispose'](){const _0x22a08f=_0x14429d;var _0x3d608c;(_0x3d608c=this['_conflictNotification'])==null||_0x3d608c['dispose'](),this[_0x22a08f(0x25e)]=null,super[_0x22a08f(0x381)]();}[_0x14429d(0x320)](){const _0x24d486=_0x14429d;this[_0x24d486(0x406)](this['_beforeCloseService']['registerBeforeClose'](()=>{const _0x2fc291=_0x24d486;if(this['_localCacheService'][_0x2fc291(0x22c)][_0x2fc291(0x241)])return this[_0x2fc291(0x221)]['t'](_0x2fc291(0x32b));}));}[_0x14429d(0x2cb)](){const _0x100dec=_0x14429d;this[_0x100dec(0x406)](this[_0x100dec(0x383)]['event$'][_0x100dec(0x21d)](_0x47142e=>{const _0x2d7664=_0x100dec;_0x47142e['id']===_0x797de9[_0x2d7664(0x39b)]&&this[_0x2d7664(0x439)][_0x2d7664(0x23e)]({'type':_0x3e9b02[_0x2d7664(0x332)],'content':this[_0x2d7664(0x221)]['t'](_0x2d7664(0x392))}),_0x47142e['id']===_0x797de9[_0x2d7664(0x21e)]&&this[_0x2d7664(0x439)][_0x2d7664(0x23e)]({'type':_0x3e9b02['Warning'],'content':this[_0x2d7664(0x221)]['t'](_0x2d7664(0x28b))}),_0x47142e['id']===_0x797de9['PERMISSION_DENIED']&&this[_0x2d7664(0x2b3)]({'title':this[_0x2d7664(0x221)]['t'](_0x2d7664(0x400)),'content':this[_0x2d7664(0x221)]['t'](_0x2d7664(0x3e7)),'type':_0x2d7664(0x356),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'action':{'label':this[_0x2d7664(0x221)]['t'](_0x2d7664(0x1de)),'onClick':_0x216a45=>{const _0x124559=_0x2d7664;_0x216a45['preventDefault'](),window[_0x124559(0x35c)][_0x124559(0x21b)]();}}}),_0x47142e['id']===_0x797de9[_0x2d7664(0x3cc)]&&this[_0x2d7664(0x2e9)](),_0x47142e['id']===_0x797de9[_0x2d7664(0x2b8)]&&_0x47142e[_0x2d7664(0x369)]&&this[_0x2d7664(0x28d)](_0x47142e[_0x2d7664(0x369)]),_0x47142e['id']===_0x797de9[_0x2d7664(0x390)]&&this['_replaceConflictNotification']({'title':this[_0x2d7664(0x221)]['t'](_0x2d7664(0x30f)),'content':this[_0x2d7664(0x221)]['t'](_0x2d7664(0x415)),'type':'error','duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'action':{'label':this['_localeService']['t'](_0x2d7664(0x1de)),'onClick':_0x3797ea=>{const _0x3bc090=_0x2d7664;_0x3797ea[_0x3bc090(0x372)](),window[_0x3bc090(0x35c)][_0x3bc090(0x21b)]();}}}),_0x47142e['id']===_0x797de9[_0x2d7664(0x3f4)]&&this[_0x2d7664(0x439)]['show']({'type':_0x3e9b02[_0x2d7664(0x332)],'content':this[_0x2d7664(0x221)]['t'](_0x47142e['data']||'')}),_0x47142e['id']===_0x797de9[_0x2d7664(0x368)]&&this[_0x2d7664(0x439)]['show']({'type':_0x3e9b02['Warning'],'content':this[_0x2d7664(0x221)]['t'](_0x2d7664(0x402))}),_0x47142e['id']===_0x797de9[_0x2d7664(0x3b3)]&&this[_0x2d7664(0x439)]['show']({'type':_0x3e9b02[_0x2d7664(0x41f)],'content':this[_0x2d7664(0x221)]['t'](_0x2d7664(0x380))}),_0x47142e['id']===_0x797de9[_0x2d7664(0x2ff)]&&this[_0x2d7664(0x439)][_0x2d7664(0x23e)]({'type':_0x3e9b02[_0x2d7664(0x41f)],'content':this[_0x2d7664(0x221)]['t']('collaboration-client-ui.session.collaboration-timeout')});}));}[_0x14429d(0x2e9)](){const _0x20830b=_0x14429d;this[_0x20830b(0x2b3)]({'title':this[_0x20830b(0x221)]['t']('collaboration-client-ui.conflict.title'),'content':this[_0x20830b(0x221)]['t'](_0x20830b(0x2c0)),'type':_0x20830b(0x1dd),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1});}[_0x14429d(0x28d)](_0x1c41e0){const _0x10f24b=_0x14429d;this['_replaceConflictNotification']({'title':this['_localeService']['t'](_0x10f24b(0x30f)),'content':this['_localeService']['t']('collaboration-client-ui.conflict.clearFailed'),'type':_0x10f24b(0x356),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'action':{'label':this[_0x10f24b(0x221)]['t']('collaboration-client-ui.conflict.retry'),'onClick':_0x304b07=>{const _0x91d486=_0x10f24b;_0x304b07[_0x91d486(0x372)](),this['_retryConflictCacheClear'](_0x1c41e0);}}});}[_0x14429d(0x294)](_0x376ead){const _0x2df03f=_0x14429d;this[_0x2df03f(0x3b2)]['has'](_0x376ead)||(this['_retryingConflictCacheUnitIDs'][_0x2df03f(0x264)](_0x376ead),this['_showConflictProcessingNotification'](),this[_0x2df03f(0x33e)][_0x2df03f(0x27b)](_0x376ead)[_0x2df03f(0x238)](()=>window[_0x2df03f(0x35c)][_0x2df03f(0x21b)]())[_0x2df03f(0x2d8)](()=>this[_0x2df03f(0x28d)](_0x376ead))[_0x2df03f(0x3e2)](()=>this['_retryingConflictCacheUnitIDs'][_0x2df03f(0x2a0)](_0x376ead)));}[_0x14429d(0x2b3)](_0x25511c){const _0x3cab6a=_0x14429d;var _0x39293c;(_0x39293c=this[_0x3cab6a(0x25e)])==null||_0x39293c[_0x3cab6a(0x381)](),this[_0x3cab6a(0x25e)]=this['_notificationService'][_0x3cab6a(0x23e)](_0x25511c);}};Ln=q([K(0x0,_0x333f87),K(0x1,_0x4ed906),K(0x2,_0x439243(_0x57af61)),K(0x3,_0x42a5ed),K(0x4,_0x279df2),K(0x5,_0x439243(_0x2d982f))],Ln);function _0x2133(){const _0x3edb17=['RemoveColCommandId','collabCursorState$','_syncPresenceStatusComponents','_getSaveTimeout','univer-size-4\x20univer-shrink-0\x20univer-text-amber-500','_context','_isBlinkVisible','AWAITING','collaboration-client-ui.conflict.title','_drawRectRange','tooltipKey','snapshot-loading-','state','369AjYoXI','_getMergeRange','_textBubble','activate','kind','getSkeleton','beginPath','1.0.1','_blockProgressWatches','_trackActiveSaveTask','_highlight','_getScale','_setupBeforeClosingHandler','rgba','polite','executionId','_presenceAdapterRegistry','_labelHorizontalPosition','onCommandExecuted','_registerRenderDependencies','clearRemotePresences','unsubscribe','180XawXKe','collaboration-client-ui.collaboration.offline-data-not-saved','_collabCursorState$','unload','decorate','getCurrentUnitOfType','value','_urlService','Warning','forEach','fill','getCollabCursors$','allSettled','selections','/universer-api/frontend/logs','blue.400','executeCommand','timedOut','m2Prime','statusUIPart','_localCacheService','number','_isVisibleUnit','get','storage','OFFLINE','_stopBlinking','setStateCache','_memberID','_handleJoinEvent','offsetY','_refreshCollabCursors','ranges','disableLocalCache','slice','_highlightSecond','_injector','spin','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','pushState','save','yellow.400','_initCommandExecutedListener','_onCursorDelete','error','_initWindowErrorListener','_presenceStatusRegistrations','_updateLocalCursor','LOADING_BLOCKS','override','location','now','univer-text-orange-500','_createSocketURL','newValue','replace','next','_blinkTimer','Unknown\x20user','adapters$','_handleCursorUpdate','removeEventListener','SOCKET_FAILED_RETRY','unitID','setItem','button','endColumn','subUnitId','span','_cachedData','_scene','message','preventDefault','assignAColorForMemberID','getMergeData','source','_collaborationSessionService','transformMutationsWithChangeset','indicator','top','_pointerMoveDisposable','_initUnhandledRejectionListener','collab-text-range-','\x20-\x20','_anchor','addEventListener','collaboration-client-ui.session.connection-failed','dispose','unitType','_collaborationUIEventService','makeDirty','updateOfflineData','m1Prime','stage','_monkeyPatchLogService','collaboration-client-ui.collabStatus.notCollab','loadOfflineData','moveTo','params','href','7nTiNOw','has','CONFLICT','InsertColCommandId','collaboration-client-ui.collaboration.single-unit.warning','getColorFromTheme','_logService','_startDocCollabCursor','font','activeSheet$','_renderManagerService','_scheduleClearOtherTimer','onRendered','OTHER_CLIENT_EDITING','endRow','transformIMECache','dark:focus:!univer-ring-offset-gray-800','univer-text-red-500','_drawAnchor','collaboration-client-ui.collabStatus.fetchMiss','_adapterRegistry','_watchBlockProgress','mutations','length','getCoordRelativeToViewport','_pendingEntities','urlChange$','addClipboardHook','getUndoRedoMutationParamsCache','_anchorDot','onPointerMove$','_collabCursorController','timeoutId','colorClass','_initUserListener','unhandledrejection','_retryingConflictCacheUnitIDs','SOCKET_FAILED','bottom','remove','doc.mutation.rich-text-editing','getUnitStatus$','_init','_initPresenceStatusComponents','startsWith','result','lineno','_getSessionTicket','hide','loadUnit','_localStorageService','registerRefRange','getSheetBySheetId','_assignedColors','\x20at\x20','_refRangeService','setOffsetY','rgba(','_hideTimer','getTypeOfUnitDisposed$','_cursorShapes','ONLINE','CONFLICT_PROCESSING','_removeCollabCursors','entries','wsSessionTicketUrl','jiqing.500','values','_onCursorUpdate','_disposed','drawWith','ERROR','_offsetY','left','150552Chbwfn','_univerInstanceService','labelHorizontalPosition','canRenderAnchor','createInstance','_getSheetObject','_hovered','NO_OTHER_CLIENTS_EDITING','_dataLoaderService','VIEW_MAIN','finally','fillStyle','replaceSelectionInfoWithoutRefresh','flatMap','type','collaboration-client-ui.permission.content','_blinkIntervalTimer','_clearOtherTimers','215572wyNIam','requireSession','clearTimeout','debug','roomMembers$','width','_saveCache','_httpService','_adapterDisposables','_registerDependencies','JOIN_ROOM_FAILED','_configService','symbol','bold\x2013px\x20Arial,\x20sans-serif','true','text','_syncEditingCollabCursorService','_send','height','univer-h-8\x20univer-w-8\x20univer-rounded-lg','_setupSubUnitSync','range','collaboration-client-ui.permission.title','enableFrontendLog','collaboration-client-ui.session.will-retry','collab-text-anchor-','_cursor','_colorIndex','disposeWithMe','InsertRowCommandId','[LogService\x20Error]:\x20','hovered','_name','univer-flex\x20univer-items-center\x20univer-justify-center','_activeSaveTaskMap','_docSkeleton','getRenderUnitById','roomMembers','_clearTimeoutState','highlight','status','pageType','getItem','collaboration-client-ui.conflict.content','_registerPresenceStatusComponent','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_heartbeatTimer','_isDisposed','red.300','exhaustSavingTask','_initEntityListener','isFinite','_memberService','Error','startColumn','_collaborationController','_docSkeletonManagerService','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','update','isEditing','deepClone','getParam','sessionStatus$','getActiveRange','options','_eventUnsubscribe','sessionTicket','selectedIds','USERS_LEAVE','AWAITING_WITH_PENDING','onPointerLeave$','_shapes','max','primary','_id','clickable','purple.300','getCurrentSkeleton','getScrollXYInfoByViewport','_messageService','_removeClearOtherTimer','getSheetId','tableId','eventID','contains','_clearBlockProgressWatch','memberID','_roomMembers$','_timeoutState$','invokeId','data','small','editingUnit','_disposeEntity','findNodePositionByCharIndex','_drawTextRange','pluginName','transformRemoteChangeset','_updateURLWithCurrentState','_docTransformSelectionsService','getDocRanges','clear','_showText','UNIVER_SHEET','cursorInfo$','restore','_toggleOffline','loading','collaboration-client-ui.snapshotLoading.refresh','getAncestorScale','NOT_COLLAB','reconnect','_transformPreviousActiveRange','column','removeRemotePresence','unshift','asObservable','columnIndex','UNIVER_DOC','div','_doCreateSocket','runId','_syncAdapters','getUnit','alert','_initDependencies','_removeRemotePresence','_entityInit$','transformStateCache','InsertRangeMoveDownCommandId','_getAnchorBounding','black','_themeService','_initStatusListener','send','_entities','univer-border-none\x20univer-bg-transparent','setTimeout','set','setAlpha','split','canRenderSelection','triggerDblclick','evenodd','icon','pipe','addObject','setActiveRange','uni.network.url-service','subscribeEvent','getCurrentTypeOfUnit$','_docTransformStateCacheService','fillText','_handleLeaveEvent','_scheduleHeartbeat','sheetId','startRow','_render','unitId','registerRenderModule','collaboration-client-ui.operation.update-remote-unit-presence','GLOBAL','right','_lastPointer','socket$','key','backgroundColor','getAllUnitsForType','getTypeOfUnitAdded$','reload','filter','subscribe','CLOSE_ROOM','memberId','_instanceService','_localeService','search','pointer','_online','[RemoteUniscriptService]:\x20no\x20focused\x20unit','strokeWidth','_session','defineProperty','getActiveSheet','getRangePointData','_getLighterColor','saveTaskMap','pageIndex','getCollabEntity$','_disabled','FromArray','addObjects','_uploadLog','getOwnPropertyDescriptor','_bindAdapter','_handleHeartbeatEvent','_commandService','_collabSessionService','then','SYNCED','setUndoRedoMutationParamsCache','univer-fixed\x20univer-left-1/2\x20univer-top-4\x20univer-z-[1001]\x20univer-flex\x20univer-max-w-[calc(100vw-32px)]\x20-univer-translate-x-1/2\x20univer-items-center\x20univer-gap-2\x20univer-rounded-lg\x20univer-bg-gray-0\x20univer-px-3\x20univer-py-2\x20univer-text-sm\x20univer-text-gray-900\x20univer-shadow-lg\x20dark:!univer-bg-gray-700\x20dark:!univer-text-gray-0','_handleHover','iterator','show','call','collaboration-client-ui.collabClient.tooltip.reconnect','size','post','resize','_saveTaskMap','syncEditingCollabCursor','collaboration-client-ui.collabStatus.syncing','_transformService','univer-text-blue-500','map','_startEntity','_document','highlightSecond','showText','complete','_updateSubUnitFromURLParams','_uiPartsService','getViewport','getUnitId','currentTheme$','getFocusedUnit','runOnServer','PENDING','tableSource','content','with','univer-text-xl\x20univer-transition-colors\x20univer-duration-200','getConfig','[Window\x20Error]:\x20','onPointerEnter$','_conflictNotification','Loading','_revisionService','rgb','unit','_latestStates','add','default','undoState','univer-transition-all\x20univer-duration-200','_docClipboardService','setConfig','object','setShapeProps','static','transformMutation','loadedBlocks','stringify','UPDATE_CURSOR','init','event$','_onRefRangeChange','focusedId','clearInterval','registerComponent','saveOfflineData','getStateCache','RECT','segmentPage','clearOfflineData','i18nKey','_beforeCloseService','saveImage','name','univer-m-0\x20univer-p-0','[CollaborationDataLoaderController]','_docStateChangeManagerService','popstate','_unitStatus','_sheetSkeletonManagerService','COMPLETE','some','_config','_unitOnClients','stack','collaboration-client-ui.collaboration.closeRoom','_adapter','_showConflictCacheClearFailedNotification','toRgbString','_range','all','getMemberID','1269136tNAygD','engine','_retryConflictCacheClear','replaceState','853148plqWNc','TEXT','getCurrentSelections','isActive','_sendLocalPresence','dispose$','subunit','_draw','_selfUnitIDs','history','delete','_startBlinking',',\x200.2)','RemoveRowCommandId','getUnhiddenWorksheets','totalBlocks','state$','parseInt','currentSkeleton$','HEADER','presenceKind','_labelPosition','origin','measureText','redoState','arc','_docSyncEditingCollabCursorService','_disposeEntitiesForType','_initResize','_replaceConflictNotification','columnGroupId','reason','prepareTransformSelections','removeItem','CONFLICT_CACHE_CLEAR_FAILED','disposeUnit','_transformUndoRedoStack','_transformHistoryAndStateStack','_colorAssignService','_docTransformIMECacheService','lineTo','textRanges','collaboration-client-ui.conflict.processing','_cursors','getCellIndexByOffset','48DXIOPq','40278OiSJcI','setInterval','_docSelectionManagerService','getSelectionInfo','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_handleEvent','_initStatusComponent','_initEvent','_clearRemotePresences','1672088EBjsja','parse','collaboration-client-ui.collabStatus.conflict','shareInterval','...','from','_updateMessage','InsertRangeMoveRightCommandId','OTHER_CLIENTS_EDITING','min','_hover','catch','registerCommand','_status$','#FFF','_initialized','_cursorInfo$','@univerjs-pro/collaboration-client-ui','string','function','_imageIoService','closePath','univer-text-gray-400','row','_backgroundColor','snapshot-loading-timeout','transformByState','onStarting','_showConflictProcessingNotification','toISOString','getValue','toString','_startSheetCollabCursor','collaboration-client-ui.snapshotLoading.timeout','cursorInfo','sheetID','fillRule','_toggleOnline','univer-inline-flex\x20univer-items-center\x20univer-justify-center','_updateCollabCursors','_messageIds','_ensureSubject','createSocket','/run/','searchParams','isArray','3Sjtbmg','22290fdkXau','univer-appearance-none','status$','SUBMIT_CHANGESET_TIMEOUT','removeParam','timeoutState$','color','getMember','selection','push','_color'];_0x2133=function(){return _0x3edb17;};return _0x2133();}const Rn=_0x4ed343(_0x14429d(0x206));let zn=class extends _0x32162e{constructor(_0x3c463f,_0x17d4e1,_0x2cb85a,_0x2dfece){const _0xc190db=_0x14429d;super(),this[_0xc190db(0x331)]=_0x3c463f,this['_logService']=_0x17d4e1,this['_commandService']=_0x2cb85a,this[_0xc190db(0x3e0)]=_0x2dfece,this['_init']()[_0xc190db(0x2d8)](_0x46425e=>this['_logService'][_0xc190db(0x356)]('[CollaborationDataLoaderController]',_0x46425e));}async[_0x14429d(0x3b8)](){const _0xab14ed=_0x14429d;let _0x4f2f9c=this[_0xab14ed(0x331)][_0xab14ed(0x427)]('unit'),_0x8e47e3=this[_0xab14ed(0x331)][_0xab14ed(0x427)](_0xab14ed(0x3e6)),_0x28080a=this['_urlService'][_0xab14ed(0x427)](_0xab14ed(0x29c));if(!_0x4f2f9c||!_0x8e47e3){this[_0xab14ed(0x394)][_0xab14ed(0x3ed)](_0xab14ed(0x281),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}let _0x5af270=await this['_dataLoaderService'][_0xab14ed(0x3bf)](_0x4f2f9c,Number(_0x8e47e3),_0x28080a);this[_0xab14ed(0x3d3)]||_0x5af270&&_0x5af270 instanceof _0xc04914&&await this[_0xab14ed(0x3fe)](_0x5af270);}async[_0x14429d(0x3fe)](_0x79c135){const _0x35010f=_0x14429d;await this['_updateSubUnitFromURLParams'](_0x79c135,!0x0),!this[_0x35010f(0x3d3)]&&(_0x79c135[_0x35010f(0x397)][_0x35010f(0x203)](_0x54edaf(this[_0x35010f(0x29b)]))[_0x35010f(0x21d)](_0xa85152=>{const _0x4436a1=_0x35010f;_0xa85152&&this[_0x4436a1(0x1d4)](_0xa85152);}),this[_0x35010f(0x331)]['urlChange$'][_0x35010f(0x203)](_0x54edaf(this['dispose$']))[_0x35010f(0x21d)](()=>{const _0x54ba42=_0x35010f;this[_0x54ba42(0x24f)](_0x79c135)[_0x54ba42(0x2d8)](_0x12a3bd=>this['_logService']['error'](_0x54ba42(0x281),_0x12a3bd));}));}[_0x14429d(0x1d4)](_0x1eb55d,_0x553350=!0x1){const _0x279736=_0x14429d;let _0x57df06=this['_urlService']['getParam']('subunit');_0x1eb55d[_0x279736(0x43b)]()!==_0x57df06&&this['_urlService']['setParam'](_0x279736(0x29c),_0x1eb55d[_0x279736(0x43b)](),_0x553350);}async['_updateSubUnitFromURLParams'](_0x1d56a5,_0x3d1140=!0x1){const _0x173e41=_0x14429d;var _0x5cdfb4;let _0x27f781=this[_0x173e41(0x331)][_0x173e41(0x427)](_0x173e41(0x29c));if(!_0x27f781||!_0x1d56a5[_0x173e41(0x3c2)](_0x27f781)){let _0x1f68f4=_0x1d56a5[_0x173e41(0x2a4)]()[0x0],_0x3af0d5=_0x1d56a5['getSheetBySheetId'](_0x1f68f4);if(!_0x3af0d5||(this[_0x173e41(0x1d4)](_0x3af0d5,!0x0),this[_0x173e41(0x3d3)]))return;await this[_0x173e41(0x236)][_0x173e41(0x33a)](_0x37f956['id'],{'unitId':_0x1d56a5[_0x173e41(0x252)](),'subUnitId':_0x1f68f4});return;}(_0x3d1140||((_0x5cdfb4=_0x1d56a5[_0x173e41(0x229)]())==null?void 0x0:_0x5cdfb4['getSheetId']())!==_0x27f781)&&await this['_commandService'][_0x173e41(0x33a)](_0x37f956['id'],{'unitId':_0x1d56a5[_0x173e41(0x252)](),'subUnitId':_0x27f781});}};zn=q([K(0x0,Rn),K(0x1,_0x2a6bbd),K(0x2,_0xdaa582),K(0x3,_0x439243(_0x5c5342))],zn);let Bn=class{constructor(_0x3e8c9d,_0x425e93){const _0x3f0ffe=_0x14429d;this[_0x3f0ffe(0x247)]=_0x3e8c9d,this[_0x3f0ffe(0x398)]=_0x425e93;}['transformIMECache'](_0x164f10){const _0xec2e2c=_0x14429d;this['_transformUndoRedoStack'](_0x164f10),this[_0xec2e2c(0x1e2)](_0x164f10);}[_0x14429d(0x1d3)](_0x3a0758){const _0x583e1d=_0x14429d;let {unitID:_0x5b89da}=_0x3a0758,{redoCache:_0x5cd1f5}=this[_0x583e1d(0x398)][_0x583e1d(0x40e)](_0x5b89da)[_0x583e1d(0x259)](_0x5e2811)[_0x583e1d(0x3aa)]();if(_0x5cd1f5[_0x583e1d(0x3a5)]===0x0)return _0x3a0758;let _0x465ff7=_0x59eb5c['deepClone'](_0x3a0758[_0x583e1d(0x3a4)][0x0]);for(let _0x495d62=0x0;_0x495d62<_0x5cd1f5['length'];_0x495d62++){let _0x10411a={'id':'doc.mutation.rich-text-editing','params':{..._0x5cd1f5[_0x495d62]}},_0x585f6c=this[_0x583e1d(0x247)][_0x583e1d(0x26d)](_0x465ff7,_0x10411a,!0x1);if(_0x51b014(_0x585f6c))throw _0x585f6c[_0x583e1d(0x356)];_0x465ff7=_0x585f6c['m1Prime'];}return{..._0x59eb5c[_0x583e1d(0x426)](_0x3a0758),'mutations':[_0x465ff7]};}[_0x14429d(0x2ba)](_0x5c32fa){const _0x5a2162=_0x14429d;let {unitID:_0x3c6364}=_0x5c32fa,_0x5752b5=this[_0x5a2162(0x398)]['getRenderUnitById'](_0x3c6364)['with'](_0x5e2811),{undoCache:_0x3a682f,redoCache:_0x297c09}=_0x5752b5['getUndoRedoMutationParamsCache']();if(_0x3a682f[_0x5a2162(0x3a5)]===0x0||_0x297c09[_0x5a2162(0x3a5)]===0x0)return;let _0x21d6f6=[],_0x225694=[],_0x214786=_0x59eb5c[_0x5a2162(0x426)](_0x5c32fa[_0x5a2162(0x3a4)][0x0]),_0x262809=_0x59eb5c['deepClone'](_0x5c32fa[_0x5a2162(0x3a4)][0x0]);for(let _0x3923e5=_0x3a682f[_0x5a2162(0x3a5)]-0x1;_0x3923e5>=0x0;_0x3923e5--){let _0x5f216d={'id':_0x5a2162(0x3b6),'params':{..._0x3a682f[_0x3923e5]}},_0x467eb2={'id':'doc.mutation.rich-text-editing','params':{..._0x297c09[_0x3923e5]}},_0x17eb4c=this[_0x5a2162(0x247)][_0x5a2162(0x26d)](_0x214786,_0x5f216d,!0x1),_0x4b0bef=this[_0x5a2162(0x247)][_0x5a2162(0x26d)](_0x262809,_0x467eb2,!0x1);if(_0x51b014(_0x17eb4c))throw _0x17eb4c[_0x5a2162(0x356)];if(_0x51b014(_0x4b0bef))throw _0x4b0bef[_0x5a2162(0x356)];_0x21d6f6[_0x5a2162(0x1e5)](_0x17eb4c[_0x5a2162(0x33c)][_0x5a2162(0x38c)]),_0x225694[_0x5a2162(0x1e5)](_0x4b0bef['m2Prime'][_0x5a2162(0x38c)]),_0x214786=_0x17eb4c['m1Prime'],_0x262809=_0x4b0bef[_0x5a2162(0x386)];}_0x5752b5[_0x5a2162(0x23a)]({'undoCache':_0x21d6f6,'redoCache':_0x225694});}[_0x14429d(0x1e2)](_0x59ab37){const _0x506b19=_0x14429d;let {unitID:_0x5725f5}=_0x59ab37,_0x59a58b=this[_0x506b19(0x398)]['getRenderUnitById'](_0x5725f5)[_0x506b19(0x259)](_0x5e2811),_0x18cca3=_0x59a58b[_0x506b19(0x429)]();if(_0x18cca3==null)return;let _0x69d638=[{'id':_0x506b19(0x3b6),'params':{'unitId':_0x59ab37[_0x506b19(0x369)],'actions':null,'textRanges':[_0x18cca3]}}],_0x4d317c=this[_0x506b19(0x247)][_0x506b19(0x377)](_0x59ab37,_0x69d638);if(!_0x5da30d(_0x4d317c))throw _0x4d317c[_0x506b19(0x356)];let _0x1530d5=_0x4d317c[_0x506b19(0x33c)][0x0][_0x506b19(0x38c)][_0x506b19(0x2bf)];Array[_0x506b19(0x2fa)](_0x1530d5)&&_0x1530d5[_0x506b19(0x3a5)]&&_0x59a58b[_0x506b19(0x205)](_0x1530d5[0x0]);}};Bn=q([K(0x0,_0x3e0970),K(0x1,_0x3ddfbd)],Bn);let Vn=class{constructor(_0x218190,_0xe408f3,_0x1a03ef){const _0x18dcb8=_0x14429d;this[_0x18dcb8(0x34e)]=_0x218190,this[_0x18dcb8(0x247)]=_0xe408f3,this[_0x18dcb8(0x282)]=_0x1a03ef;}['transformStateCache'](_0x31e89a){const _0x488447=_0x14429d;this[_0x488447(0x2bb)](_0x31e89a);}[_0x14429d(0x1d3)](_0x49eadf){const _0x24aa15=_0x14429d;let {unitID:_0xcb539a}=_0x49eadf,{collaboration:_0x2402c1}=this[_0x24aa15(0x282)][_0x24aa15(0x278)](_0xcb539a);if(_0x2402c1[_0x24aa15(0x3a5)]===0x0)return _0x49eadf;let _0x3d1490=_0x59eb5c[_0x24aa15(0x426)](_0x49eadf[_0x24aa15(0x3a4)][0x0]);for(let _0x35deb1=0x0;_0x35deb1<_0x2402c1[_0x24aa15(0x3a5)];_0x35deb1++){let _0x302cf4={'id':_0x24aa15(0x3b6),'params':{'unitId':_0x2402c1[_0x35deb1][_0x24aa15(0x210)],..._0x2402c1[_0x35deb1][_0x24aa15(0x2ae)]}},_0x30d6bf=this[_0x24aa15(0x247)][_0x24aa15(0x26d)](_0x3d1490,_0x302cf4,!0x1);if(_0x51b014(_0x30d6bf))throw _0x30d6bf[_0x24aa15(0x356)];_0x3d1490=_0x30d6bf[_0x24aa15(0x386)];}return{..._0x59eb5c['deepClone'](_0x49eadf),'mutations':[_0x3d1490]};}[_0x14429d(0x2bb)](_0x81d4ae){const _0x3ccc1f=_0x14429d;let {unitID:_0x2892c9}=_0x81d4ae,{history:_0x2c0b2f,collaboration:_0x46be5e}=this[_0x3ccc1f(0x282)][_0x3ccc1f(0x278)](_0x2892c9);if(_0x2c0b2f[_0x3ccc1f(0x3a5)]===0x0&&_0x46be5e[_0x3ccc1f(0x3a5)]===0x0)return;let _0x2e17e4=[],_0x29f09f=[],_0x40abb1=_0x59eb5c[_0x3ccc1f(0x426)](_0x81d4ae['mutations'][0x0]),_0x100036=_0x59eb5c[_0x3ccc1f(0x426)](_0x81d4ae['mutations'][0x0]);for(let _0x1dcef3=_0x2c0b2f[_0x3ccc1f(0x3a5)]-0x1;_0x1dcef3>=0x0;_0x1dcef3--){let _0x3f1168={'id':_0x3ccc1f(0x3b6),'params':{'unitId':_0x2c0b2f[_0x1dcef3]['unitId'],..._0x2c0b2f[_0x1dcef3][_0x3ccc1f(0x266)]}},_0x528575={'id':_0x3ccc1f(0x3b6),'params':{'unitId':_0x2c0b2f[_0x1dcef3][_0x3ccc1f(0x210)],..._0x2c0b2f[_0x1dcef3][_0x3ccc1f(0x2ae)]}},_0x5bd623=this[_0x3ccc1f(0x247)][_0x3ccc1f(0x26d)](_0x40abb1,_0x3f1168,!0x1),_0x325e5c=this[_0x3ccc1f(0x247)]['transformMutation'](_0x100036,_0x528575,!0x1);if(_0x51b014(_0x5bd623))throw _0x5bd623[_0x3ccc1f(0x356)];if(_0x51b014(_0x325e5c))throw _0x325e5c[_0x3ccc1f(0x356)];_0x2e17e4[_0x3ccc1f(0x1e5)]({..._0x2c0b2f[_0x1dcef3],'undoState':_0x5bd623[_0x3ccc1f(0x33c)][_0x3ccc1f(0x38c)],'redoState':_0x325e5c[_0x3ccc1f(0x33c)][_0x3ccc1f(0x38c)]}),_0x40abb1=_0x5bd623['m1Prime'],_0x100036=_0x325e5c['m1Prime'];}_0x40abb1=_0x59eb5c[_0x3ccc1f(0x426)](_0x81d4ae['mutations'][0x0]),_0x100036=_0x59eb5c[_0x3ccc1f(0x426)](_0x81d4ae['mutations'][0x0]);for(let _0x3f22b4=_0x46be5e['length']-0x1;_0x3f22b4>=0x0;_0x3f22b4--){let _0x597da0={'id':_0x3ccc1f(0x3b6),'params':{'unitId':_0x46be5e[_0x3f22b4][_0x3ccc1f(0x210)],..._0x46be5e[_0x3f22b4][_0x3ccc1f(0x266)]}},_0x303a85={'id':_0x3ccc1f(0x3b6),'params':{'unitId':_0x46be5e[_0x3f22b4][_0x3ccc1f(0x210)],..._0x46be5e[_0x3f22b4][_0x3ccc1f(0x2ae)]}},_0x1c1d2d=this[_0x3ccc1f(0x247)][_0x3ccc1f(0x26d)](_0x40abb1,_0x597da0,!0x1),_0x4db935=this[_0x3ccc1f(0x247)][_0x3ccc1f(0x26d)](_0x100036,_0x303a85,!0x1);if(_0x51b014(_0x1c1d2d))throw _0x1c1d2d['error'];if(_0x51b014(_0x4db935))throw _0x4db935[_0x3ccc1f(0x356)];_0x29f09f[_0x3ccc1f(0x1e5)]({..._0x46be5e[_0x3f22b4],'undoState':_0x1c1d2d[_0x3ccc1f(0x33c)][_0x3ccc1f(0x38c)],'redoState':_0x4db935[_0x3ccc1f(0x33c)][_0x3ccc1f(0x38c)]}),_0x40abb1=_0x1c1d2d[_0x3ccc1f(0x386)],_0x100036=_0x4db935[_0x3ccc1f(0x386)];}this[_0x3ccc1f(0x282)][_0x3ccc1f(0x345)](_0x2892c9,{'history':_0x2e17e4,'collaboration':_0x29f09f});}};Vn=q([K(0x0,_0x439243(_0x2c4c1e)),K(0x1,_0x3e0970),K(0x2,_0x439243(_0x12942b))],Vn);let Hn=class{constructor(_0x387f58,_0x522088){const _0xfc9809=_0x14429d;this['_docSelectionManagerService']=_0x387f58,this[_0xfc9809(0x247)]=_0x522088;}[_0x14429d(0x2b6)](_0x25cce5){const _0x24e5ef=_0x14429d;var _0x5e630f;let _0x1c1857=this[_0x24e5ef(0x2c6)]['getDocRanges']()??[],_0x971fe2=this[_0x24e5ef(0x2c6)][_0x24e5ef(0x2c7)]();if(_0x1c1857[_0x24e5ef(0x3a5)]===0x0||_0x971fe2==null)return null;let _0x3d18d0=_0x25cce5[_0x24e5ef(0x369)],_0x3beed9=[{'id':_0x24e5ef(0x3b6),'params':{'unitId':_0x3d18d0,'actions':null,'textRanges':_0x1c1857}}],_0x59dd6d=this[_0x24e5ef(0x247)][_0x24e5ef(0x377)](_0x25cce5,_0x3beed9);if(!_0x5da30d(_0x59dd6d))throw _0x59dd6d[_0x24e5ef(0x356)];let _0x5ba1ad=(_0x5e630f=_0x59dd6d[_0x24e5ef(0x33c)][0x0])==null?void 0x0:_0x5e630f['params'],_0x23c04e=_0x5ba1ad&&typeof _0x5ba1ad==_0x24e5ef(0x26a)&&_0x24e5ef(0x2bf)in _0x5ba1ad?_0x5ba1ad[_0x24e5ef(0x2bf)]:null;if(!Gn(_0x23c04e))return null;let _0x4d4d82=Un(_0x25cce5['mutations'][_0x24e5ef(0x287)](_0xd27efe=>Kn(_0xd27efe[_0x24e5ef(0x38c)]))?_0x23c04e['filter'](_0x325810=>!('tableId'in _0x325810)):_0x23c04e,{..._0x971fe2,'options':_0x971fe2[_0x24e5ef(0x42a)]?{..._0x971fe2['options'],'wholeDocument':!0x1}:void 0x0}),_0x5a730f={'unitId':_0x3d18d0,'subUnitId':_0x3d18d0};this[_0x24e5ef(0x2c6)][_0x24e5ef(0x3e4)](_0x4d4d82,_0x5a730f);let _0x3cd780=!0x0;return{'commit':()=>{_0x3cd780=!0x1;},'rollback':()=>{_0x3cd780&&(_0x3cd780=!0x1,this['_docSelectionManagerService']['replaceSelectionInfoWithoutRefresh'](_0x971fe2,_0x5a730f));}};}};Hn=q([K(0x0,_0x439243(_0x25ff25)),K(0x1,_0x3e0970)],Hn);function Un(_0x35f42c,_0x224551){const _0x1f0377=_0x14429d;let _0x37c632=[],_0x3680af=[];for(let _0x59df0d of _0x35f42c)Wn(_0x59df0d)?_0x3680af[_0x1f0377(0x305)](_0x59df0d):_0x37c632[_0x1f0377(0x305)](_0x59df0d);return{..._0x224551,'textRanges':_0x37c632,'rectRanges':_0x3680af};}function Wn(_0xcf643b){const _0x49229c=_0x14429d;return _0x49229c(0x43c)in _0xcf643b;}function Gn(_0x275aa8){const _0x59c977=_0x14429d;return Array[_0x59c977(0x2fa)](_0x275aa8)&&_0x275aa8['every'](_0x117063=>typeof _0x117063==_0x59c977(0x26a)&&!!_0x117063&&'startOffset'in _0x117063&&'endOffset'in _0x117063);}function Kn(_0x3fe14d){const _0x413d91=_0x14429d;return _0x3fe14d===_0x413d91(0x257)?!0x0:Array['isArray'](_0x3fe14d)?_0x3fe14d[_0x413d91(0x287)](_0x4d626e=>Kn(_0x4d626e)):!_0x3fe14d||typeof _0x3fe14d!=_0x413d91(0x26a)?!0x1:Object[_0x413d91(0x3d1)](_0x3fe14d)[_0x413d91(0x287)](_0x2be097=>Kn(_0x2be097));}let qn=class extends _0x4af7ce{constructor(_0x5869d8,_0x2fc95f,_0xca1ed2,_0x28e8cc,_0x4c18d8,_0x24d783,_0x2bbc96){const _0x5fab1a=_0x14429d;super(),this[_0x5fab1a(0x421)]=_0x5869d8,this[_0x5fab1a(0x2bd)]=_0x2fc95f,this[_0x5fab1a(0x209)]=_0xca1ed2,this['_docTransformSelectionsService']=_0x28e8cc,this[_0x5fab1a(0x2b0)]=_0x4c18d8,this[_0x5fab1a(0x439)]=_0x24d783,this[_0x5fab1a(0x221)]=_0x2bbc96,G(this,_0x5fab1a(0x2da),new _0x4a802e(_0x22cbf4[_0x5fab1a(0x1e0)])),this[_0x5fab1a(0x41c)]();}[_0x14429d(0x41c)](){const _0x1e50f2=_0x14429d;this[_0x1e50f2(0x406)](this[_0x1e50f2(0x421)]['entityInit$'][_0x1e50f2(0x21d)](_0x2b2e40=>{const _0x103be9=_0x1e50f2;_0x2b2e40 instanceof _0x2b3bac&&_0x2b2e40['addHandlerCallback']({'onTransformIME':_0x52bcc0=>this[_0x103be9(0x2bd)][_0x103be9(0x39d)](_0x52bcc0),'onTransformState':_0x162123=>this[_0x103be9(0x209)][_0x103be9(0x1f2)](_0x162123),'onPrepareTransformSelections':_0x3ba558=>this[_0x103be9(0x1d5)]['prepareTransformSelections'](_0x3ba558),'onSyncEditingCollabCursor':_0x557b7c=>this[_0x103be9(0x2b0)]['syncEditingCollabCursor'](_0x557b7c),'onTransformRemoteChangesetByIMECache':_0x3b5943=>this['_docTransformIMECacheService'][_0x103be9(0x1d3)](_0x3b5943),'onTransformRemoteChangesetByStateCache':_0x31a09a=>this[_0x103be9(0x209)]['transformRemoteChangeset'](_0x31a09a)});}));}};qn=q([K(0x0,_0x439243(_0x479467)),K(0x1,_0x439243(Bn)),K(0x2,_0x439243(Vn)),K(0x3,_0x439243(Hn)),K(0x4,_0x439243(_n)),K(0x5,_0x42a5ed),K(0x6,_0x439243(_0x2d982f))],qn);let Jn=class extends _0x4af7ce{constructor(_0x477f81,_0x49a75d,_0x365527,_0x1553d5){const _0x50a375=_0x14429d;super(),this[_0x50a375(0x34e)]=_0x477f81,this[_0x50a375(0x3f1)]=_0x49a75d,this[_0x50a375(0x394)]=_0x365527,this[_0x50a375(0x376)]=_0x1553d5,G(this,_0x50a375(0x346),void 0x0),this['_init']();}[_0x14429d(0x3b8)](){const _0x5dfc31=_0x14429d;this[_0x5dfc31(0x357)](),this[_0x5dfc31(0x37b)](),this[_0x5dfc31(0x388)](),this[_0x5dfc31(0x3b0)]();}[_0x14429d(0x3b0)](){const _0x49555c=_0x14429d;this['disposeWithMe'](this['_collaborationSessionService'][_0x49555c(0x216)][_0x49555c(0x21d)](_0x20d418=>{const _0x31bae3=_0x49555c;this[_0x31bae3(0x346)]=_0x20d418==null?void 0x0:_0x20d418['memberID'];}));}[_0x14429d(0x357)](){const _0x2bbdc6=_0x14429d;let _0x135831=_0x288b97=>{const _0x37ecdb=_0x3d03;var _0x56786a;this[_0x37ecdb(0x232)](_0x37ecdb(0x356),_0x37ecdb(0x25c)+_0x288b97[_0x37ecdb(0x371)]+_0x37ecdb(0x3c4)+_0x288b97['filename']+':'+_0x288b97[_0x37ecdb(0x3bc)]+':'+_0x288b97['colno']+'\x0a'+(((_0x56786a=_0x288b97['error'])==null?void 0x0:_0x56786a[_0x37ecdb(0x28a)])||''));};window[_0x2bbdc6(0x37f)]('error',_0x135831),this[_0x2bbdc6(0x406)](()=>{const _0xf6638d=_0x2bbdc6;window['removeEventListener'](_0xf6638d(0x356),_0x135831);});}[_0x14429d(0x37b)](){const _0x1a91b9=_0x14429d;let _0x46edf7=_0x5c5456=>{const _0x5f5a87=_0x3d03;this[_0x5f5a87(0x232)]('error','[Unhandled\x20Rejection]:\x20'+_0x5c5456[_0x5f5a87(0x2b5)]);};window[_0x1a91b9(0x37f)]('unhandledrejection',_0x46edf7),this[_0x1a91b9(0x406)](()=>{const _0x2bff6a=_0x1a91b9;window[_0x2bff6a(0x367)](_0x2bff6a(0x3b1),_0x46edf7);});}['_monkeyPatchLogService'](){const _0x32e796=_0x14429d;let _0x51f309=this['_logService'][_0x32e796(0x356)]['bind'](this[_0x32e796(0x394)]);this[_0x32e796(0x394)][_0x32e796(0x356)]=(..._0x2ab2f2)=>{const _0x49eac6=_0x32e796;let _0x282907=_0x2ab2f2['map'](_0xb3b9d3=>_0xb3b9d3 instanceof Error?_0xb3b9d3['message']+'\x0a'+_0xb3b9d3[_0x49eac6(0x28a)]:String(_0xb3b9d3))['join']('\x20');this[_0x49eac6(0x232)](_0x49eac6(0x356),_0x49eac6(0x408)+_0x282907),_0x51f309(..._0x2ab2f2);},this[_0x32e796(0x406)](()=>{const _0x2a984d=_0x32e796;this[_0x2a984d(0x394)][_0x2a984d(0x356)]=_0x51f309;});}[_0x14429d(0x232)](_0x1daf5c,_0x2bd698){const _0x332472=_0x14429d;try{let _0x2ed5e0={'userId':this['_memberID'],'logLabel':_0x1daf5c,'content':_0x2bd698};this[_0x332472(0x3f1)][_0x332472(0x242)](_0x332472(0x338),{'body':_0x2ed5e0})['catch'](()=>{});}catch{}}};Jn=q([K(0x0,_0x439243(_0x2c4c1e)),K(0x1,_0x439243(_0x103ec5)),K(0x2,_0x2a6bbd),K(0x3,_0x439243(_0x2b2a41))],Jn);function Yn({state$:_0xd70bad}){const _0x4071e5=_0x14429d;let _0x196744=_0x40178e(_0xd70bad,null,!0x0);return _0x196744?_0x17f736(_0x4071e5(0x1e9),{'data-u-comp':_0x4071e5(0x2e6),'role':_0x4071e5(0x1ee),'className':_0x4071e5(0x23b),'children':[_0x55526a(_0x4d4450,{'className':_0x4071e5(0x30b)}),_0x55526a('span',{'children':_0x196744[_0x4071e5(0x258)]}),_0x55526a(_0x3c19f4,{'size':_0x4071e5(0x1cd),'variant':_0x4071e5(0x433),'onClick':()=>window[_0x4071e5(0x35c)][_0x4071e5(0x21b)](),'children':_0x196744['refreshLabel']})]}):null;}const Xn=_0x14429d(0x312);let Zn=class extends _0x4af7ce{constructor(_0x3e1bd8,_0x3895a9,_0x109b11,_0x21eed4,_0x1831b8,_0x190bd3){const _0x54a9d8=_0x14429d;super(),this['_snapshotLoadingService']=_0x3e1bd8,this[_0x54a9d8(0x439)]=_0x3895a9,this[_0x54a9d8(0x221)]=_0x109b11,this[_0x54a9d8(0x34e)]=_0x21eed4,this[_0x54a9d8(0x331)]=_0x190bd3,G(this,_0x54a9d8(0x1ca),new _0x4a802e(null)),G(this,_0x54a9d8(0x2f5),new Set()),G(this,_0x54a9d8(0x31c),new Map()),G(this,_0x54a9d8(0x263),new Map()),G(this,_0x54a9d8(0x301),this[_0x54a9d8(0x1ca)][_0x54a9d8(0x1e6)]());let _0x1abd1d=()=>_0x1b7724(Yn,{'state$':this[_0x54a9d8(0x301)]});this[_0x54a9d8(0x406)](_0x1831b8[_0x54a9d8(0x276)](_0x589fc3[_0x54a9d8(0x213)],()=>_0x9d541b(_0x1abd1d,this[_0x54a9d8(0x34e)]))),this['disposeWithMe'](this['_snapshotLoadingService'][_0x54a9d8(0x2a6)][_0x54a9d8(0x21d)](_0x28dfff=>{const _0x569ad7=_0x54a9d8;this[_0x569ad7(0x263)]=_0x28dfff,_0x28dfff[_0x569ad7(0x333)](_0x1c5591=>this[_0x569ad7(0x2d3)](_0x1c5591));})),this[_0x54a9d8(0x406)](this[_0x54a9d8(0x331)][_0x54a9d8(0x3a8)]['subscribe'](()=>{const _0x2a76ba=_0x54a9d8;this[_0x2a76ba(0x263)][_0x2a76ba(0x333)](_0x111d07=>this['_updateMessage'](_0x111d07));}));}[_0x14429d(0x381)](){const _0x1dec8b=_0x14429d;this[_0x1dec8b(0x2f5)][_0x1dec8b(0x333)](_0x18ed47=>this[_0x1dec8b(0x439)]['remove'](_0x18ed47)),this[_0x1dec8b(0x2f5)]['clear'](),this[_0x1dec8b(0x31c)][_0x1dec8b(0x333)](({timeoutId:_0x469604})=>clearTimeout(_0x469604)),this['_blockProgressWatches']['clear'](),this[_0x1dec8b(0x1ca)][_0x1dec8b(0x24e)](),super[_0x1dec8b(0x381)]();}[_0x14429d(0x2d3)](_0x540eaa){const _0x4c1807=_0x14429d;let _0x30a809=''+Xn+_0x540eaa[_0x4c1807(0x210)];if(_0x540eaa[_0x4c1807(0x387)]===_0x56bb07[_0x4c1807(0x286)]){this[_0x4c1807(0x43f)](_0x540eaa[_0x4c1807(0x210)]),this[_0x4c1807(0x410)](_0x540eaa[_0x4c1807(0x210)]),this[_0x4c1807(0x439)][_0x4c1807(0x3b5)](_0x30a809),this[_0x4c1807(0x2f5)][_0x4c1807(0x2a0)](_0x30a809);return;}if(!this[_0x4c1807(0x340)](_0x540eaa[_0x4c1807(0x210)])){this[_0x4c1807(0x43f)](_0x540eaa[_0x4c1807(0x210)]),this[_0x4c1807(0x410)](_0x540eaa['unitId']),this[_0x4c1807(0x439)][_0x4c1807(0x3b5)](_0x30a809),this[_0x4c1807(0x2f5)][_0x4c1807(0x2a0)](_0x30a809);return;}if(_0x540eaa['stage']===_0x56bb07[_0x4c1807(0x3d5)]){this['_clearBlockProgressWatch'](_0x540eaa[_0x4c1807(0x210)]),this[_0x4c1807(0x410)](_0x540eaa[_0x4c1807(0x210)]),this[_0x4c1807(0x439)][_0x4c1807(0x23e)]({'id':_0x30a809,'type':_0x3e9b02[_0x4c1807(0x41f)],'content':this['_localeService']['t'](_0x4c1807(0x380))}),this['_messageIds']['delete'](_0x30a809);return;}if(_0x540eaa['stage']!==_0x56bb07[_0x4c1807(0x35a)]||_0x540eaa[_0x4c1807(0x2a5)]<=0xa){this[_0x4c1807(0x43f)](_0x540eaa[_0x4c1807(0x210)]),this['_messageService']['remove'](_0x30a809),this[_0x4c1807(0x2f5)][_0x4c1807(0x2a0)](_0x30a809);return;}this[_0x4c1807(0x3a3)](_0x540eaa)||(this[_0x4c1807(0x439)]['show']({'id':_0x30a809,'type':_0x3e9b02[_0x4c1807(0x25f)],'duration':0x1/0x0,'content':this[_0x4c1807(0x221)]['t']('collaboration-client-ui.collabStatus.fetchMiss')+'\x20'+_0x540eaa[_0x4c1807(0x26e)]+'/'+_0x540eaa[_0x4c1807(0x2a5)]}),this[_0x4c1807(0x2f5)]['add'](_0x30a809));}[_0x14429d(0x3a3)](_0x309477){const _0x4a4556=_0x14429d;let _0x394e5d=this[_0x4a4556(0x31c)][_0x4a4556(0x341)](_0x309477[_0x4a4556(0x210)]);if((_0x394e5d==null?void 0x0:_0x394e5d['loadedBlocks'])===_0x309477[_0x4a4556(0x26e)])return _0x394e5d[_0x4a4556(0x33b)];this[_0x4a4556(0x43f)](_0x309477[_0x4a4556(0x210)]);let _0x5034bd=setTimeout(()=>{const _0x335760=_0x4a4556;let _0x1224ca=this[_0x335760(0x31c)][_0x335760(0x341)](_0x309477['unitId']);if(!_0x1224ca||_0x1224ca[_0x335760(0x3ae)]!==_0x5034bd)return;_0x1224ca['timedOut']=!0x0;let _0x357629=''+Xn+_0x309477['unitId'];this[_0x335760(0x439)][_0x335760(0x3b5)](_0x357629),this[_0x335760(0x2f5)][_0x335760(0x2a0)](_0x357629),this[_0x335760(0x1ca)][_0x335760(0x362)]({'unitId':_0x309477[_0x335760(0x210)],'content':this[_0x335760(0x221)]['t'](_0x335760(0x2ee),String(_0x309477[_0x335760(0x26e)]),String(_0x309477[_0x335760(0x2a5)])),'refreshLabel':this[_0x335760(0x221)]['t'](_0x335760(0x1de))});},0xea60);return this['_blockProgressWatches'][_0x4a4556(0x1fc)](_0x309477[_0x4a4556(0x210)],{'loadedBlocks':_0x309477['loadedBlocks'],'timedOut':!0x1,'timeoutId':_0x5034bd}),!0x1;}[_0x14429d(0x43f)](_0x722b30){const _0x459dee=_0x14429d;let _0x5accd2=this[_0x459dee(0x31c)][_0x459dee(0x341)](_0x722b30);_0x5accd2&&(clearTimeout(_0x5accd2['timeoutId']),this['_blockProgressWatches'][_0x459dee(0x2a0)](_0x722b30),this[_0x459dee(0x410)](_0x722b30));}[_0x14429d(0x410)](_0x2a8ead){const _0x49d590=_0x14429d;var _0x292b62;((_0x292b62=this[_0x49d590(0x1ca)][_0x49d590(0x330)])==null?void 0x0:_0x292b62[_0x49d590(0x210)])===_0x2a8ead&&this[_0x49d590(0x1ca)][_0x49d590(0x362)](null);}[_0x14429d(0x340)](_0x419c58){const _0x12718c=_0x14429d;let _0x3d028a=this[_0x12718c(0x331)][_0x12718c(0x427)](_0x12718c(0x262));return!_0x3d028a||_0x3d028a===_0x419c58;}};Zn=q([K(0x0,_0x439243(_0x15d5cd)),K(0x1,_0x42a5ed),K(0x2,_0x439243(_0x2d982f)),K(0x3,_0x439243(_0x2c4c1e)),K(0x4,_0x36acb8),K(0x5,Rn)],Zn);let Qn=class extends _0x4af7ce{constructor(_0x12b979,_0x100504,_0x5a6b3a){const _0x34e3e2=_0x14429d;super(),this['_configService']=_0x12b979,this[_0x34e3e2(0x3c0)]=_0x100504,this['_revisionService']=_0x5a6b3a,G(this,_0x34e3e2(0x36f),new Map()),G(this,'_saveTaskMap',new Map()),G(this,'_activeSaveTaskMap',new Map()),G(this,_0x34e3e2(0x22f),!0x1);}[_0x14429d(0x34b)](){const _0x556c69=_0x14429d;this[_0x556c69(0x22f)]=!0x0;}['enableLocalCache'](){this['_disabled']=!0x1;}get[_0x14429d(0x22c)](){const _0x72884d=_0x14429d;return this[_0x72884d(0x244)];}[_0x14429d(0x381)](){const _0x2ef789=_0x14429d;this[_0x2ef789(0x41b)]()['then'](()=>super['dispose']());}async[_0x14429d(0x38a)](_0x4f6578){const _0x3340d1=_0x14429d;return this[_0x3340d1(0x22f)]?null:this['_localStorageService'][_0x3340d1(0x414)](_0x96f6b8(_0x4f6578));}async[_0x14429d(0x277)](_0x28d9db,_0x170f81){const _0x47565e=_0x14429d;let _0x457133=this[_0x47565e(0x3c0)][_0x47565e(0x36a)](_0x96f6b8(_0x28d9db),_0x170f81);return this['_trackActiveSaveTask'](_0x28d9db,_0x457133),!!await _0x457133;}async['backupOfflineData'](_0x3d8158,_0x59bc30){const _0x6370bb=_0x14429d;let _0x584130=this[_0x6370bb(0x36f)][_0x6370bb(0x341)](_0x3d8158)??await this[_0x6370bb(0x3c0)]['getItem'](_0x96f6b8(_0x3d8158));if(!_0x584130)return;let _0x5a2042=Date[_0x6370bb(0x35d)](),_0x5757a1=new Date(_0x5a2042)[_0x6370bb(0x2ea)]();await this[_0x6370bb(0x3c0)]['setItem'](_0x96f6b8(_0x3d8158)+':backup:'+_0x5a2042,{'reason':_0x59bc30,'createdAt':_0x5757a1,'data':_0x584130});}async[_0x14429d(0x27b)](_0x2b313e){const _0x37e644=_0x14429d;let _0x22b425=this[_0x37e644(0x244)][_0x37e644(0x341)](_0x2b313e);_0x22b425!==void 0x0&&(window['clearTimeout'](_0x22b425),this[_0x37e644(0x244)][_0x37e644(0x2a0)](_0x2b313e));let _0x58c2ba=this[_0x37e644(0x40c)][_0x37e644(0x341)](_0x2b313e);_0x58c2ba&&await Promise[_0x37e644(0x336)](_0x58c2ba),this[_0x37e644(0x36f)][_0x37e644(0x2a0)](_0x2b313e),await this['_localStorageService'][_0x37e644(0x2b7)](_0x96f6b8(_0x2b313e));}[_0x14429d(0x385)](_0x5bda6c,_0x20c83f,_0x5accc,_0x5c6d8f){const _0x2c9bdb=_0x14429d;let _0x45c71a=this[_0x2c9bdb(0x260)]['getCurrentRevOfUnit'](_0x5bda6c);this[_0x2c9bdb(0x36f)]['set'](_0x5bda6c,{'unitID':_0x5bda6c,'type':_0x20c83f,'awaitingChangeset':_0x5accc,'mutations':_0x5c6d8f,'rev':_0x45c71a}),this[_0x2c9bdb(0x244)][_0x2c9bdb(0x38f)](_0x5bda6c)||this['_scheduleSaving'](_0x5bda6c);}['_scheduleSaving'](_0x19586b){const _0x511ca0=_0x14429d;let _0x577918=this['_getSaveTimeout']();_0x577918===0x0?this['_saveCache'](_0x19586b):this[_0x511ca0(0x244)][_0x511ca0(0x1fc)](_0x19586b,window[_0x511ca0(0x1fb)](()=>this[_0x511ca0(0x3f0)](_0x19586b),_0x577918));}[_0x14429d(0x30a)](){const _0x5d3069=_0x14429d;return this[_0x5d3069(0x3f5)]['getConfig'](_0x4a71d9)??_0x22821c;}[_0x14429d(0x3f0)](_0x58e636){const _0x140218=_0x14429d;let _0x1b1cfa=this['_saveTaskMap']['get'](_0x58e636);_0x1b1cfa!==void 0x0&&window[_0x140218(0x3ec)](_0x1b1cfa);let _0x2707af=this[_0x140218(0x3c0)]['setItem'](_0x96f6b8(_0x58e636),this['_cachedData']['get'](_0x58e636))[_0x140218(0x238)](()=>this['_saveTaskMap'][_0x140218(0x2a0)](_0x58e636));return this[_0x140218(0x31d)](_0x58e636,_0x2707af),_0x2707af;}[_0x14429d(0x31d)](_0x43671b,_0x19ae6c){const _0x54d4c3=_0x14429d;let _0x5f6ade=this[_0x54d4c3(0x40c)][_0x54d4c3(0x341)](_0x43671b);_0x5f6ade||(_0x5f6ade=new Set(),this[_0x54d4c3(0x40c)]['set'](_0x43671b,_0x5f6ade)),_0x5f6ade[_0x54d4c3(0x264)](_0x19ae6c);let _0x15d822=()=>{const _0x46e61b=_0x54d4c3;_0x5f6ade[_0x46e61b(0x2a0)](_0x19ae6c),_0x5f6ade['size']===0x0&&this['_activeSaveTaskMap']['delete'](_0x43671b);};_0x19ae6c['then'](_0x15d822,_0x15d822);}async[_0x14429d(0x41b)](){const _0x5e33b2=_0x14429d;let _0x2824e3=[];this['_saveTaskMap']['forEach']((_0x1c57a6,_0x486c00)=>{const _0x1b5b73=_0x3d03;window[_0x1b5b73(0x3ec)](_0x1c57a6),_0x2824e3['push'](this[_0x1b5b73(0x3f0)](_0x486c00)[_0x1b5b73(0x238)](()=>{const _0x30344b=_0x1b5b73;this[_0x30344b(0x244)]['delete'](_0x486c00);}));}),await Promise[_0x5e33b2(0x290)](_0x2824e3);}};Qn=q([K(0x0,_0x3d218d),K(0x1,_0x30998f),K(0x2,_0x439243(_0x4c1d46))],Qn);var $n=class extends _0x32162e{constructor(){const _0x7021fd=_0x14429d;super(),G(this,_0x7021fd(0x3a8),void 0x0),this[_0x7021fd(0x3a8)]=_0x377d93(window,_0x7021fd(0x283))['pipe'](_0x54edaf(this[_0x7021fd(0x29b)]),_0xe8e11e({'bufferSize':0x1,'refCount':!0x0}),_0x318933(void 0x0));}['setParam'](_0x4b183b,_0x29f8fa,_0x48b520=!0x1){const _0x504223=_0x14429d;let _0x2b0ef5=new URL(window[_0x504223(0x35c)][_0x504223(0x38d)]);_0x2b0ef5[_0x504223(0x2f9)][_0x504223(0x1fc)](_0x4b183b,_0x29f8fa),_0x48b520?window[_0x504223(0x29f)]['replaceState']('','',_0x2b0ef5[_0x504223(0x2ec)]()):window[_0x504223(0x29f)][_0x504223(0x351)]('','',_0x2b0ef5[_0x504223(0x2ec)]());}[_0x14429d(0x300)](_0x177bb6,_0x26d6d3=!0x1){const _0x9acb23=_0x14429d;let _0x7d0182=new URL(window[_0x9acb23(0x35c)][_0x9acb23(0x38d)]);_0x7d0182[_0x9acb23(0x2f9)][_0x9acb23(0x2a0)](_0x177bb6),_0x26d6d3?window[_0x9acb23(0x29f)][_0x9acb23(0x295)]('','',_0x7d0182[_0x9acb23(0x2ec)]()):window[_0x9acb23(0x29f)][_0x9acb23(0x351)]('','',_0x7d0182[_0x9acb23(0x2ec)]());}[_0x14429d(0x427)](_0x570975){const _0x398ca5=_0x14429d;return new URL(window[_0x398ca5(0x35c)]['href'])['searchParams'][_0x398ca5(0x341)](_0x570975)??void 0x0;}};let $=class extends _0x28f90b{constructor(_0x5a9ae3=fn,_0x57fea1,_0x2c1428,_0x5ce8b5,_0x2c47cd){const _0x290fdc=_0x14429d;super(),this[_0x290fdc(0x288)]=_0x5a9ae3,this[_0x290fdc(0x398)]=_0x57fea1,this[_0x290fdc(0x34e)]=_0x2c1428,this[_0x290fdc(0x3f5)]=_0x5ce8b5,this[_0x290fdc(0x236)]=_0x2c47cd;let {..._0x162583}=_0x13839f({},fn,this[_0x290fdc(0x288)]);this['_configService'][_0x290fdc(0x269)]('collaboration-client-ui.config',_0x162583);}[_0x14429d(0x2e8)](){const _0x425d0a=_0x14429d;this[_0x425d0a(0x3f3)](),this[_0x425d0a(0x406)](this[_0x425d0a(0x236)][_0x425d0a(0x2d9)](Y)),this[_0x425d0a(0x1ef)]();}[_0x14429d(0x39a)](){const _0x1dfa58=_0x14429d;this[_0x1dfa58(0x327)]();}[_0x14429d(0x3f3)](){const _0x574a47=_0x14429d;var _0x5748c5;let _0x384595=[[mn],[Rn,{'useClass':$n}],[_0xfb68a9,{'useClass':_0x4ffb7d}],[_0x4ed906,{'useClass':Qn}],[J],[Ln],[Z],[Q],[zn],[Zn]];this[_0x574a47(0x288)]['enableDocumentCollaborationUI']!==!0x1&&_0x384595[_0x574a47(0x305)]([Hn],[Bn],[Vn],[_n],[qn],[X]),this[_0x574a47(0x288)][_0x574a47(0x401)]&&_0x384595['push']([Jn]),_0x572e92(this['_injector'],_0x356ba2(_0x384595,(_0x5748c5=this[_0x574a47(0x288)])==null?void 0x0:_0x5748c5[_0x574a47(0x35b)]));}[_0x14429d(0x327)](){const _0x282047=_0x14429d;this[_0x282047(0x288)]['enableDocumentCollaborationUI']!==!0x1&&this[_0x282047(0x406)](this[_0x282047(0x398)][_0x282047(0x211)](_0x4d263b[_0x282047(0x1e8)],[Dn])),this[_0x282047(0x406)](this[_0x282047(0x398)]['registerRenderModule'](_0x4d263b[_0x282047(0x1d9)],[kn]));}[_0x14429d(0x1ef)](){const _0xc5caad=_0x14429d;_0x2b77cb(this[_0xc5caad(0x34e)],[[Z],[Q],[J],[Ln],[zn],[Zn]]),this[_0xc5caad(0x288)]['enableDocumentCollaborationUI']!==!0x1&&_0x2b77cb(this[_0xc5caad(0x34e)],[[qn],[X]]),this['_config']['enableFrontendLog']&&_0x2b77cb(this[_0xc5caad(0x34e)],[[Jn]]);}};G($,_0x14429d(0x1d2),_0x14429d(0x417)),G($,'packageName',un),G($,'version',dn),$=q([_0x565f3d(_0x52194a,_0x2f2fac,_0xb44e6a,_0x420728,_0x42bc38,_0x4d590a,_0x4990f6),K(0x1,_0x3ddfbd),K(0x2,_0x439243(_0x2c4c1e)),K(0x3,_0x3d218d),K(0x4,_0xdaa582)],$);let er=class extends _0x3ab735{constructor(_0x38cb80,_0x5d4057,_0x2f5a2e,_0x1a2e88,_0x3ff632){super(_0x38cb80,_0x5d4057,_0x2f5a2e,_0x1a2e88,_0x3ff632);}async[_0x14429d(0x2f7)](_0x2f9c65){const _0x3231e0=_0x14429d;let _0x12050e=await this[_0x3231e0(0x3bd)](),_0xc9309b=this[_0x3231e0(0x35f)](_0x2f9c65,_0x12050e);return this[_0x3231e0(0x1ea)](_0xc9309b);}[_0x14429d(0x35f)](_0x5ad386,_0x1f5d06){const _0x538c7f=_0x14429d;let _0x2c32cd=typeof window>'u'?new URL(_0x5ad386):new URL(_0x5ad386,window['location'][_0x538c7f(0x2ac)]);_0x2c32cd[_0x538c7f(0x2f9)][_0x538c7f(0x1fc)](_0x538c7f(0x42c),_0x1f5d06);let _0x294c8d=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x538c7f(0x222)]);return _0x294c8d[_0x538c7f(0x341)](_0x538c7f(0x1eb))&&_0x2c32cd[_0x538c7f(0x2f9)][_0x538c7f(0x1fc)](_0x538c7f(0x1eb),_0x294c8d[_0x538c7f(0x341)](_0x538c7f(0x1eb))),_0x2c32cd[_0x538c7f(0x2ec)]();}async[_0x14429d(0x3bd)](){const _0x13cee4=_0x14429d;var _0x314025;let _0x281de6=this[_0x13cee4(0x3f5)][_0x13cee4(0x25b)](_0x11040d),_0x5cf232=(_0x281de6==null?void 0x0:_0x281de6[_0x13cee4(0x3cf)])??_0x4cdb73;return((_0x314025=(await this['_httpService'][_0x13cee4(0x341)](_0x5cf232,{'headers':{'Content-Type':'application/json'}}))['body'])==null?void 0x0:_0x314025['ticket'])??'';}};er=q([K(0x0,_0x439243(_0x2c4c1e)),K(0x1,_0x439243(_0x103ec5)),K(0x2,_0x3d218d),K(0x3,_0x2a6bbd),K(0x4,_0x5da708)],er);let tr=class extends _0x4af7ce{constructor(_0x5b6126,_0x31a02b,_0x43feea){const _0xffaa6=_0x14429d;super(),this[_0xffaa6(0x220)]=_0x5b6126,this[_0xffaa6(0x3f1)]=_0x31a02b,this[_0xffaa6(0x3f5)]=_0x43feea;}async[_0x14429d(0x255)](_0x30361f,_0x336728,_0xc22b84,..._0x3829eb){const _0x5aa10d=_0x14429d;let _0x214998=this[_0x5aa10d(0x220)][_0x5aa10d(0x254)]();if(!_0x214998)throw Error(_0x5aa10d(0x225));let _0x320f1d=(this[_0x5aa10d(0x3f5)][_0x5aa10d(0x25b)](_0x40ac4f)??_0xb50b00)+'/'+_0x30361f+_0x5aa10d(0x2f8)+_0x336728,_0x180bea={'scriptId':_0x30361f,'runId':new URL(window[_0x5aa10d(0x35c)]['href'])['searchParams'][_0x5aa10d(0x341)](_0x5aa10d(0x1eb))??'','function':_0x336728,'unitId':_0x214998[_0x5aa10d(0x252)](),'argsOfFunction':JSON['stringify'](_0x3829eb),'invokeId':_0xc22b84[_0x5aa10d(0x1cb)]??'','executionId':_0xc22b84[_0x5aa10d(0x323)]??''};try{let _0x1d09a6=await this[_0x5aa10d(0x3f1)]['post'](_0x320f1d,{'body':_0x180bea});return _0x1d09a6['body'][_0x5aa10d(0x356)]&&_0x1d09a6['body']['error']['code']!==_0x41baea['OK']?'Failed':_0x1d09a6['body'][_0x5aa10d(0x3bb)];}catch{return'Failed';}}};tr=q([K(0x0,_0x4d77cc),K(0x1,_0x439243(_0x103ec5)),K(0x2,_0x3d218d)],tr);const nr=0x7530,rr='ACTIVE_UNIT_EVENT_CHANNEL';var ir=class extends _0x4af7ce{constructor(){const _0x5b0037=_0x14429d;super(),G(this,'_id',_0x5b5013()),G(this,_0x5b0037(0x29e),new Set()),G(this,_0x5b0037(0x289),new Map()),G(this,_0x5b0037(0x418),null),G(this,_0x5b0037(0x3e9),new Map()),G(this,_0x5b0037(0x284),new Map()),this['_init']();}[_0x14429d(0x381)](){const _0x3d9278=_0x14429d;super['dispose'](),this['_clearOtherTimers'][_0x3d9278(0x333)]((_0xd7e6e0,_0x5db42f)=>this[_0x3d9278(0x43a)](_0x5db42f)),this[_0x3d9278(0x418)]&&window['clearInterval'](this['_heartbeatTimer']);}[_0x14429d(0x3b7)](_0x2ddcca){const _0x5df466=_0x14429d;return this[_0x5df466(0x2f6)](_0x2ddcca)[_0x5df466(0x203)](_0x53e16d());}[_0x14429d(0x1ce)](_0x69084f){const _0x4a316b=_0x14429d;this['_selfUnitIDs'][_0x4a316b(0x241)]===0x0&&this['_scheduleHeartbeat'](),this[_0x4a316b(0x29e)][_0x4a316b(0x264)](_0x69084f),this[_0x4a316b(0x3fb)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x69084f],'isForwarded':!0x1});}[_0x14429d(0x2b9)](_0x8bd62d){const _0x41f5ac=_0x14429d;this[_0x41f5ac(0x29e)][_0x41f5ac(0x2a0)](_0x8bd62d),this[_0x41f5ac(0x29e)]['size']===0x0&&this['_heartbeatTimer']&&window[_0x41f5ac(0x275)](this[_0x41f5ac(0x418)]);}[_0x14429d(0x3b8)](){const _0x4f9ed1=_0x14429d;this[_0x4f9ed1(0x406)](_0x1c7e61(_0x377d93(window,_0x4f9ed1(0x342))['subscribe'](_0x1d74a3=>{const _0x220f6e=_0x4f9ed1;if(_0x1d74a3[_0x220f6e(0x217)]!==rr||!_0x1d74a3['newValue'])return;let _0x436be6=JSON[_0x220f6e(0x2ce)](_0x1d74a3[_0x220f6e(0x360)]);this[_0x220f6e(0x2c9)](_0x436be6);}))),window[_0x4f9ed1(0x37f)](_0x4f9ed1(0x32d),()=>this[_0x4f9ed1(0x3fb)]({'type':0x1,'memberID':this[_0x4f9ed1(0x434)],'unitIDs':Array['from'](this['_selfUnitIDs'])}));}[_0x14429d(0x2c9)](_0x14b66d){const _0x2ef125=_0x14429d;switch(_0x14b66d[_0x2ef125(0x3e6)]){case 0x0:this[_0x2ef125(0x347)](_0x14b66d);break;case 0x1:this[_0x2ef125(0x20b)](_0x14b66d);break;case 0x2:this['_handleHeartbeatEvent'](_0x14b66d);}}[_0x14429d(0x347)](_0x2613d1){const _0x49681d=_0x14429d;let {unitIDs:_0x24247f,memberID:_0x1b1163,isForwarded:_0xe0470e}=_0x2613d1;_0x24247f['forEach'](_0x918ef9=>{const _0xebbfa9=_0x3d03;if(!_0xe0470e&&this[_0xebbfa9(0x289)][_0xebbfa9(0x38f)](_0x918ef9)&&this['_ensureSubject'](_0x918ef9)[_0xebbfa9(0x362)](_0x12fc42[_0xebbfa9(0x2d5)]),!this[_0xebbfa9(0x289)][_0xebbfa9(0x38f)](_0x918ef9)||!this['_unitOnClients'][_0xebbfa9(0x341)](_0x918ef9)['has'](_0x1b1163)){let _0x1791c1=this[_0xebbfa9(0x289)]['get'](_0x918ef9)||new Set();_0x1791c1[_0xebbfa9(0x264)](_0x1b1163),this['_unitOnClients'][_0xebbfa9(0x1fc)](_0x918ef9,_0x1791c1),this[_0xebbfa9(0x399)](_0x1b1163);}}),_0xe0470e||this[_0x49681d(0x3fb)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x49681d(0x29e)]],'isForwarded':!0x0});}[_0x14429d(0x399)](_0x305675){const _0xc5b02=_0x14429d;this[_0xc5b02(0x43a)](_0x305675);let _0x597b38=window[_0xc5b02(0x1fb)](()=>{const _0x613662=_0xc5b02;this[_0x613662(0x289)][_0x613662(0x333)](_0x47e3d4=>{_0x47e3d4['delete'](_0x305675);});},nr*0x2);this[_0xc5b02(0x3e9)]['set'](_0x305675,_0x597b38);}[_0x14429d(0x43a)](_0x3a014b){const _0x2331d9=_0x14429d;if(this['_clearOtherTimers'][_0x2331d9(0x38f)](_0x3a014b)){let _0x295521=this['_clearOtherTimers'][_0x2331d9(0x341)](_0x3a014b);_0x295521&&window[_0x2331d9(0x3ec)](_0x295521),this['_clearOtherTimers'][_0x2331d9(0x1fc)](_0x3a014b,null);}}['_handleLeaveEvent'](_0x131b40){const _0x4916e5=_0x14429d;let {memberID:_0x28611e,unitIDs:_0x3d9bec}=_0x131b40;_0x3d9bec[_0x4916e5(0x333)](_0x3cf10c=>{const _0x4944a1=_0x4916e5;var _0x1196d3;let _0xac650b=this[_0x4944a1(0x289)][_0x4944a1(0x341)](_0x3cf10c);_0xac650b&&(_0xac650b[_0x4944a1(0x2a0)](_0x28611e),(_0x1196d3=this[_0x4944a1(0x2f6)](_0x3cf10c))==null||_0x1196d3[_0x4944a1(0x362)](_0xac650b['size']===0x0?_0x12fc42[_0x4944a1(0x3df)]:_0x12fc42['OTHER_CLIENTS_EDITING']));}),this[_0x4916e5(0x43a)](_0x28611e);}[_0x14429d(0x235)](_0x1107eb){const _0x30c005=_0x14429d;this[_0x30c005(0x399)](_0x1107eb[_0x30c005(0x1c8)]);}[_0x14429d(0x3fb)](_0x20eacc){const _0x450b07=_0x14429d;localStorage[_0x450b07(0x36a)](rr,JSON[_0x450b07(0x26f)](_0x20eacc));}[_0x14429d(0x20c)](){const _0x355c0c=_0x14429d;this['_heartbeatTimer']=window[_0x355c0c(0x2c5)](()=>{const _0x3cec44=_0x355c0c;this[_0x3cec44(0x3fb)]({'type':0x2,'memberID':this[_0x3cec44(0x434)]});},nr);}[_0x14429d(0x2f6)](_0x4ce2c0){const _0x4e0925=_0x14429d;return this[_0x4e0925(0x284)][_0x4e0925(0x38f)](_0x4ce2c0)||this[_0x4e0925(0x284)][_0x4e0925(0x1fc)](_0x4ce2c0,new _0x4a802e(_0x12fc42[_0x4e0925(0x3df)])),this[_0x4e0925(0x284)][_0x4e0925(0x341)](_0x4ce2c0);}};export{er as BrowserCollaborationSocketService,J as DesktopCollaborationStatusDisplayController,Rn as IURLService,tr as RemoteUniscriptService,On as SheetCollabCursorShape,$ as UniverCollaborationClientUIPlugin,ir as WebBrowserSingleActiveUnitService};
1
+ const _0x247c5a=_0x2e9b;(function(_0x5ac71f,_0x4cc541){const _0x3a3105=_0x2e9b,_0x1ae49c=_0x5ac71f();while(!![]){try{const _0x5da43f=-parseInt(_0x3a3105(0x1ec))/0x1*(parseInt(_0x3a3105(0x20c))/0x2)+parseInt(_0x3a3105(0x1d3))/0x3*(parseInt(_0x3a3105(0x3d6))/0x4)+parseInt(_0x3a3105(0x2fb))/0x5+-parseInt(_0x3a3105(0x2b6))/0x6+parseInt(_0x3a3105(0x3ba))/0x7*(-parseInt(_0x3a3105(0x33c))/0x8)+parseInt(_0x3a3105(0x332))/0x9+parseInt(_0x3a3105(0x1b9))/0xa*(parseInt(_0x3a3105(0x1d2))/0xb);if(_0x5da43f===_0x4cc541)break;else _0x1ae49c['push'](_0x1ae49c['shift']());}catch(_0x120bb2){_0x1ae49c['push'](_0x1ae49c['shift']());}}}(_0x29c9,0x2065c));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0xc7ece1,CollaborationController as _0x501041,CollaborationSessionService as _0xed7c81,CollaborationSocketService as _0x25c99b,CollaborationStatus as _0x5c157a,CollaborationUIEventId as _0x2b0b3d,CollaborationUIEventService as _0x1327e3,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x41c70c,DEFAULT_WS_SESSION_TICKET_URL as _0x3a4d7e,DataLoaderService as _0x51e8bf,DocCollaborationEntity as _0x4a9a22,ILocalCacheService as _0x1974ac,LOCAL_CACHE_INTERVAL as _0x56be35,LOCAL_CACHE_INTERVAL_KEY as _0x39f139,MemberService as _0x405f4a,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x1db53f,SessionStatus as _0x511a18,UnitStatus as _0x258828,UniverCollaborationClientPlugin as _0x1116a6,getLocalCacheKey as _0x98c216}from'@univerjs-pro/collaboration-client';import{COLORS as _0xf528d4,ColorKit as _0x2ac9a9,CommandType as _0x54dfe6,DOC_RANGE_TYPE as _0x26a332,DependentOn as _0x3e9939,Disposable as _0x50ca1f,DisposableCollection as _0x469794,ICommandService as _0x3fa174,IConfigService as _0xdca818,IImageIoService as _0x173c5c,ILocalStorageService as _0x24200d,ILogService as _0x583b3f,IUniverInstanceService as _0x3fd3c3,Inject as _0x3b8ccc,Injector as _0x5c9bca,LocaleService as _0x5a18da,Plugin as _0x50441f,Rectangle as _0x12eda0,RxDisposable as _0x3318cc,ThemeService as _0xbb7758,Tools as _0x55db4d,UniverInstanceType as _0x98e284,Workbook as _0x16e1e6,createIdentifier as _0x44855e,debounce as _0x5bd974,fromEventSubject as _0x56e033,generateRandomId as _0x4a2001,isInternalEditorID as _0x543c0f,merge as _0x1ee81d,mergeOverrideWithDependencies as _0x47a538,registerDependencies as _0x3b0029,toDisposable as _0x265f18,touchDependencies as _0x327d6b}from'@univerjs/core';import{BuiltInUIPart as _0x4fb6b8,IBeforeCloseService as _0x1b0f9c,IMessageService as _0x4a0381,INotificationService as _0x502777,IUIPartsService as _0x4bd601,IUnitPresenceUIAdapterRegistry as _0x5a5714,connectInjector as _0x107421,useDependency as _0x28e5e2,useObservable as _0x47ef38}from'@univerjs/ui';import{BehaviorSubject as _0x24b100,Subject as _0x5896e4,combineLatest as _0x3e4240,debounceTime as _0x166d03,distinctUntilChanged as _0xc32d41,filter as _0x48c179,fromEvent as _0x1412e7,mapTo as _0x13e54e,merge as _0x424375,of as _0x2a2751,shareReplay as _0x28413a,switchMap as _0x34977b,takeUntil as _0x3fa56b,throttle as _0x14b9f0,timer as _0x22ec2d}from'rxjs';import{distinctUntilChanged as _0x5403c2,filter as _0x240473,map as _0x328767,switchMap as _0x51e718,takeUntil as _0x1a5f96,throttleTime as _0x596cdc}from'rxjs/operators';import{Button as _0x58172d,MessageType as _0x2f977e,Tooltip as _0x4a1448,clsx as _0x4a14d0}from'@univerjs/design';import{LoadingMultiIcon as _0x169f56,OffLineIcon as _0x49cce6,OnLineIcon as _0x57556d,WarningIcon as _0x14cc8f}from'@univerjs/icons';import{createElement as _0x30be06,useCallback as _0x6c1b82,useMemo as _0x540e69}from'react';import{jsx as _0x5b3a46,jsxs as _0x10ab35}from'react/jsx-runtime';import{CollaborationEvent as _0x6181db,ISnapshotServerService as _0x3b6c27,ITransformService as _0x2ebb05,RevisionService as _0x49db3a,SnapshotLoadStage as _0x338f29,SnapshotLoadingService as _0x1a827f,UniverCollaborationPlugin as _0x1724e3,isTransformMutationFailure as _0x2be4e3,isTransformMutationsWithChangesetSuccess as _0x10ddcf}from'@univerjs-pro/collaboration';import{UniverLicensePlugin as _0x3df221}from'@univerjs-pro/license';import{DocSelectionManagerService as _0x16bdd0,DocSkeletonManagerService as _0x585056,DocStateChangeManagerService as _0x56aa2a,RichTextEditingMutation as _0x759f54,SetTextSelectionsOperation as _0x4e121a,UniverDocsPlugin as _0x2f83a4}from'@univerjs/docs';import{DocIMEInputManagerService as _0x5beedc,IDocClipboardService as _0x3088c8,NodePositionConvertToCursor as _0x36c330,NodePositionConvertToRectRange as _0x1095f0,SetDocZoomRatioOperation as _0x4186fd,TEXT_RANGE_LAYER_INDEX as _0x7badc3,UniverDocsUIPlugin as _0x74c715}from'@univerjs/docs-ui';import{DocumentSkeletonPageType as _0x52e84a,IRenderManagerService as _0x34d5fc,Rect as _0x52bc18,RegularPolygon as _0x31acbf,SHEET_VIEWPORT_KEY as _0x4bb69c,Shape as _0x522a01,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x3f0e13,UniverRenderEnginePlugin as _0x5161e3,Vector2 as _0x3adc07,getColor as _0x2949e8,getDocumentSkeletonColumnPagePathInfo as _0x336b78}from'@univerjs/engine-render';import{HTTPService as _0x47169a,ISocketService as _0x4b4083,UniverNetworkPlugin as _0x3bb077,WebSocketService as _0x3c7443}from'@univerjs/network';import{deserializeRangeWithSheet as _0x264f50,serializeRangeWithSheet as _0x1e4d3b}from'@univerjs/engine-formula';import{EffectRefRangId as _0x4934af,RefRangeService as _0x4485d1,SetSelectionsOperation as _0x21c51f,SetWorksheetActivateCommand as _0x211d66,SheetsSelectionsService as _0x157274,handleDeleteRangeMoveLeft as _0x48fd4e,handleDeleteRangeMoveUp as _0x378cdc,handleIRemoveCol as _0x4f79ac,handleIRemoveRow as _0x3f2774,handleInsertCol as _0xff97dd,handleInsertRangeMoveDown as _0x5cf38c,handleInsertRangeMoveRight as _0x5239d4,handleInsertRow as _0x447949,handleMoveRange as _0x3a5cbb,runRefRangeMutations as _0x25ff6b}from'@univerjs/sheets';import{SheetSkeletonManagerService as _0xfb8c7d,getCoordByCell as _0x3bf5c4,getSheetObject as _0x12b1af}from'@univerjs/sheets-ui';import{ErrorCode as _0x530575}from'@univerjs/protocol';function rn(_0x18854f){const _0x230362=_0x2e9b;switch(_0x18854f){case _0x5c157a[_0x230362(0x315)]:return{'icon':_0x5b3a46(_0x49cce6,{}),'colorClass':_0x230362(0x2ce),'i18nKey':_0x230362(0x23d),'tooltipKey':'collaboration-client-ui.collabClient.tooltip.reconnect','clickable':!0x0,'indicator':_0x230362(0x2b8)};case _0x5c157a[_0x230362(0x1b0)]:return{'icon':_0x5b3a46(_0x49cce6,{}),'colorClass':_0x230362(0x3c8),'i18nKey':_0x230362(0x39b),'clickable':!0x1,'indicator':_0x230362(0x2b8)};case _0x5c157a['FETCH_MISS']:return{'icon':_0x5b3a46(_0x169f56,{}),'colorClass':_0x230362(0x264),'i18nKey':'collaboration-client-ui.collabStatus.fetchMiss','clickable':!0x1,'indicator':_0x230362(0x366)};case _0x5c157a[_0x230362(0x288)]:return{'icon':_0x5b3a46(_0x57556d,{}),'colorClass':_0x230362(0x2dd),'i18nKey':_0x230362(0x1d6),'clickable':!0x1,'indicator':'static'};case _0x5c157a[_0x230362(0x2a6)]:case _0x5c157a['AWAITING_WITH_PENDING']:return{'icon':_0x5b3a46(_0x169f56,{}),'colorClass':_0x230362(0x264),'i18nKey':'collaboration-client-ui.collabStatus.syncing','clickable':!0x1,'indicator':_0x230362(0x366)};case _0x5c157a[_0x230362(0x1f2)]:return{'icon':_0x5b3a46(_0x169f56,{}),'colorClass':'univer-text-blue-500','i18nKey':_0x230362(0x225),'clickable':!0x1,'indicator':_0x230362(0x366)};case _0x5c157a[_0x230362(0x35d)]:return{'icon':_0x5b3a46(_0x57556d,{}),'colorClass':'univer-text-green-500','i18nKey':_0x230362(0x403),'clickable':!0x1,'indicator':_0x230362(0x2b8)};}}function an(_0x4027f4){const _0x4a4509=_0x2e9b;let {status$:_0x5f12c6}=_0x4027f4,_0x1cc1d7=_0x47ef38(_0x5f12c6,_0x5c157a['NOT_COLLAB']),_0x1b2efc=_0x28e5e2(_0x5a18da),_0x482770=_0x28e5e2(_0xed7c81),_0x2fa76d=_0x540e69(()=>rn(_0x1cc1d7),[_0x1cc1d7]),_0x3ada52=_0x1cc1d7!==_0x5c157a['OFFLINE'],_0x2dd196=_0x1b2efc['t'](_0x2fa76d['i18nKey']),_0x377037=_0x2fa76d['tooltipKey']?_0x1b2efc['t'](_0x2fa76d[_0x4a4509(0x1b1)]):_0x2dd196,_0x51651b=_0x6c1b82(()=>{const _0x31cab4=_0x4a4509;_0x3ada52||_0x482770[_0x31cab4(0x22e)]();},[_0x3ada52,_0x482770]),_0x4e0250=_0x6c1b82(_0x144d1a=>{const _0x25b03f=_0x4a4509;!_0x3ada52&&(_0x144d1a[_0x25b03f(0x2f6)]===_0x25b03f(0x21d)||_0x144d1a[_0x25b03f(0x2f6)]==='\x20')&&(_0x144d1a['preventDefault'](),_0x482770[_0x25b03f(0x22e)]());},[_0x3ada52,_0x482770]),_0x14d84c=_0x5b3a46(_0x4a4509(0x1bd),{'className':_0x4a14d0(_0x4a4509(0x1e5),'univer-text-xl\x20univer-transition-colors\x20univer-duration-200',_0x2fa76d[_0x4a4509(0x2f9)],{'univer-animate-spin':_0x2fa76d[_0x4a4509(0x221)]===_0x4a4509(0x366),'univer-animate-pulse':_0x2fa76d[_0x4a4509(0x221)]===_0x4a4509(0x40a)}),'aria-hidden':_0x4a4509(0x285),'children':_0x2fa76d[_0x4a4509(0x2ad)]}),_0x18039e=_0x5b3a46(_0x4a4509(0x1bd),{'className':_0x4a14d0('univer-flex\x20univer-items-center\x20univer-justify-center',_0x4a4509(0x2ec),_0x4a4509(0x2d7),_0x4a4509(0x31d),_0x4a4509(0x3b9),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x2fa76d[_0x4a4509(0x270)],'univer-cursor-default':!_0x2fa76d['clickable']}),'children':_0x14d84c});return _0x2fa76d[_0x4a4509(0x270)]?_0x5b3a46(_0x4a1448,{'title':_0x377037,'placement':_0x4a4509(0x381),'children':_0x5b3a46('button',{'type':'button','onClick':_0x51651b,'onKeyDown':_0x4e0250,'className':_0x4a14d0(_0x4a4509(0x38a),_0x4a4509(0x2bd),_0x4a4509(0x1ae),'univer-appearance-none'),'aria-label':_0x2dd196+_0x4a4509(0x2a7)+_0x377037,'role':_0x4a4509(0x1bf),'aria-live':_0x4a4509(0x1bc),'aria-atomic':'true','children':_0x18039e})}):_0x5b3a46(_0x4a1448,{'title':_0x377037,'placement':'bottom','children':_0x5b3a46(_0x4a4509(0x202),{'className':_0x4a14d0('univer-inline-flex\x20univer-items-center\x20univer-justify-center','univer-border-none\x20univer-bg-transparent',_0x4a4509(0x1ae)),'aria-label':_0x2dd196,'role':'status','aria-live':'polite','aria-atomic':_0x4a4509(0x285),'children':_0x18039e})});}function W(_0x1ab00b){'@babel/helpers - typeof';const _0xd006ab=_0x2e9b;return W=typeof Symbol==_0xd006ab(0x3cc)&&typeof Symbol['iterator']==_0xd006ab(0x1e8)?function(_0x32f72c){return typeof _0x32f72c;}:function(_0x74068a){const _0x331131=_0xd006ab;return _0x74068a&&typeof Symbol==_0x331131(0x3cc)&&_0x74068a[_0x331131(0x299)]===Symbol&&_0x74068a!==Symbol[_0x331131(0x260)]?_0x331131(0x1e8):typeof _0x74068a;},W(_0x1ab00b);}function on(_0x146b02,_0x37e985){const _0x208f9f=_0x2e9b;if(W(_0x146b02)!=_0x208f9f(0x300)||!_0x146b02)return _0x146b02;var _0x1c5760=_0x146b02[Symbol['toPrimitive']];if(_0x1c5760!==void 0x0){var _0x2212ac=_0x1c5760[_0x208f9f(0x331)](_0x146b02,_0x37e985||_0x208f9f(0x362));if(W(_0x2212ac)!='object')return _0x2212ac;throw TypeError(_0x208f9f(0x290));}return(_0x37e985==='string'?String:Number)(_0x146b02);}function sn(_0x31c5a7){var _0x5188de=on(_0x31c5a7,'string');return W(_0x5188de)=='symbol'?_0x5188de:_0x5188de+'';}function G(_0x1e31a2,_0x3c0390,_0x1d63a8){const _0x19c6a5=_0x2e9b;return(_0x3c0390=sn(_0x3c0390))in _0x1e31a2?Object[_0x19c6a5(0x1fb)](_0x1e31a2,_0x3c0390,{'value':_0x1d63a8,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1e31a2[_0x3c0390]=_0x1d63a8,_0x1e31a2;}function K(_0x5eeaef,_0x54d1e9){return function(_0x5cd856,_0x3995fd){_0x54d1e9(_0x5cd856,_0x3995fd,_0x5eeaef);};}function q(_0x358a09,_0x2422a7,_0x1e0f79,_0x351ff4){const _0x2cbdc7=_0x2e9b;var _0x1c8c2d=arguments['length'],_0x4dc4d6=_0x1c8c2d<0x3?_0x2422a7:_0x351ff4===null?_0x351ff4=Object[_0x2cbdc7(0x334)](_0x2422a7,_0x1e0f79):_0x351ff4,_0x29708e;if(typeof Reflect==_0x2cbdc7(0x300)&&typeof Reflect[_0x2cbdc7(0x1b3)]==_0x2cbdc7(0x3cc))_0x4dc4d6=Reflect[_0x2cbdc7(0x1b3)](_0x358a09,_0x2422a7,_0x1e0f79,_0x351ff4);else{for(var _0x372b42=_0x358a09[_0x2cbdc7(0x23e)]-0x1;_0x372b42>=0x0;_0x372b42--)(_0x29708e=_0x358a09[_0x372b42])&&(_0x4dc4d6=(_0x1c8c2d<0x3?_0x29708e(_0x4dc4d6):_0x1c8c2d>0x3?_0x29708e(_0x2422a7,_0x1e0f79,_0x4dc4d6):_0x29708e(_0x2422a7,_0x1e0f79))||_0x4dc4d6);}return _0x1c8c2d>0x3&&_0x4dc4d6&&Object[_0x2cbdc7(0x1fb)](_0x2422a7,_0x1e0f79,_0x4dc4d6),_0x4dc4d6;}let J=class extends _0x50ca1f{constructor(_0x29ae91,_0x5cfda4,_0x417e42,_0x5d59c5,_0x1ab7ae){const _0x380625=_0x2e9b;super(),this[_0x380625(0x390)]=_0x29ae91,this[_0x380625(0x325)]=_0x5cfda4,this[_0x380625(0x2cd)]=_0x417e42,this[_0x380625(0x3fe)]=_0x5d59c5,this['_presenceAdapterRegistry']=_0x1ab7ae,G(this,_0x380625(0x227),new _0x24b100(_0x5c157a[_0x380625(0x288)])),G(this,'_presenceStatusRegistrations',new Map()),this[_0x380625(0x392)](),this['_initStatusListener'](),this['_initPresenceStatusComponents']();}[_0x247c5a(0x204)](){const _0xcdb968=_0x247c5a;this[_0xcdb968(0x2bb)]['forEach'](_0x15f778=>_0x15f778['dispose']()),this['_presenceStatusRegistrations']['clear'](),this[_0xcdb968(0x227)]['complete'](),super[_0xcdb968(0x204)]();}[_0x247c5a(0x2ee)](){const _0x516566=_0x247c5a;this[_0x516566(0x3a7)](_0x424375(this[_0x516566(0x390)][_0x516566(0x40e)],this[_0x516566(0x390)][_0x516566(0x271)](_0x98e284[_0x516566(0x3b2)]),this['_univerInstanceService'][_0x516566(0x271)](_0x98e284[_0x516566(0x3bd)]))[_0x516566(0x2cc)](_0x328767(()=>cn(this['_univerInstanceService'])),_0x5403c2(),_0x34977b(_0x1bfd08=>_0x1bfd08?this[_0x516566(0x2cd)][_0x516566(0x224)](_0x1bfd08):_0x2a2751(null)),_0x34977b(_0x128ed1=>_0x128ed1?_0x128ed1['status$']:_0x2a2751(_0x5c157a[_0x516566(0x288)])))['subscribe'](_0x30a361=>{const _0x90e5e=_0x516566;this['_status$'][_0x90e5e(0x1c0)](_0x30a361);}));}[_0x247c5a(0x392)](){const _0xb0b112=_0x247c5a;this['disposeWithMe'](this[_0xb0b112(0x3fe)]['registerComponent'](_0x4fb6b8['HEADER_MENU'],()=>_0x107421(ln({'status$':this[_0xb0b112(0x227)]['asObservable']()}),this[_0xb0b112(0x325)])));}[_0x247c5a(0x347)](){const _0x2d9a41=_0x247c5a;let _0x2479c0=this['_presenceAdapterRegistry']['adapters$'][_0x2d9a41(0x2d5)](_0x2e7165=>{const _0x2502e0=_0x2d9a41;this[_0x2502e0(0x1dc)](_0x2e7165);});this[_0x2d9a41(0x3a7)](_0x265f18(()=>_0x2479c0[_0x2d9a41(0x1f6)]()));}[_0x247c5a(0x1dc)](_0x3cbf73){const _0x1eb840=_0x247c5a;let _0x1f6156=new Map(_0x3cbf73['filter'](_0x1a90a7=>_0x1a90a7[_0x1eb840(0x1ff)]!=null)[_0x1eb840(0x1f3)](_0x6de11f=>[_0x6de11f[_0x1eb840(0x2a1)],_0x6de11f]));this[_0x1eb840(0x2bb)]['forEach']((_0x22c0f8,_0x4664fe)=>{const _0x3f4277=_0x1eb840;_0x1f6156[_0x3f4277(0x2ed)](_0x4664fe)||(_0x22c0f8[_0x3f4277(0x204)](),this[_0x3f4277(0x2bb)][_0x3f4277(0x2ea)](_0x4664fe));}),_0x1f6156['forEach']((_0x45d443,_0x4bdb25)=>{const _0x55700e=_0x1eb840;this[_0x55700e(0x2bb)][_0x55700e(0x2ed)](_0x4bdb25)||this[_0x55700e(0x320)](_0x45d443);});}[_0x247c5a(0x320)](_0x1c54a9){const _0x45cbea=_0x247c5a;let _0x1bf75f=_0x1c54a9[_0x45cbea(0x1ff)];if(!_0x1bf75f)return;let _0x1a385a=new _0x469794(),_0x55fc10=new _0x24b100(_0x5c157a[_0x45cbea(0x288)]);_0x1a385a[_0x45cbea(0x23b)](_0x265f18(()=>_0x55fc10['complete']())),_0x1a385a[_0x45cbea(0x23b)](this[_0x45cbea(0x3fe)]['registerComponent'](_0x1bf75f,()=>_0x107421(ln({'status$':_0x55fc10[_0x45cbea(0x3d8)]()}),this[_0x45cbea(0x325)])));let _0xb3c88b=this[_0x45cbea(0x390)]['getCurrentTypeOfUnit$'](_0x1c54a9[_0x45cbea(0x2a1)])[_0x45cbea(0x2cc)](_0x328767(_0x485d6a=>(_0x485d6a==null?void 0x0:_0x485d6a[_0x45cbea(0x308)]())??null),_0x5403c2(),_0x34977b(_0x326ad3=>_0x326ad3?this[_0x45cbea(0x2cd)][_0x45cbea(0x224)](_0x326ad3):_0x2a2751(null)),_0x34977b(_0x156046=>(_0x156046==null?void 0x0:_0x156046['status$'])??_0x2a2751(_0x5c157a['NOT_COLLAB'])))[_0x45cbea(0x2d5)](_0x4fae01=>_0x55fc10['next'](_0x4fae01));_0x1a385a[_0x45cbea(0x23b)](_0x265f18(()=>_0xb3c88b[_0x45cbea(0x1f6)]())),this['_presenceStatusRegistrations']['set'](_0x1c54a9[_0x45cbea(0x2a1)],_0x1a385a);}};J=q([K(0x0,_0x3fd3c3),K(0x1,_0x3b8ccc(_0x5c9bca)),K(0x2,_0x3b8ccc(_0x501041)),K(0x3,_0x4bd601),K(0x4,_0x3b8ccc(_0x5a5714))],J);function cn(_0x38b39d){const _0x35a0dc=_0x247c5a;let _0x3258ce=_0x38b39d['getFocusedUnit'](),_0x2da903=_0x3258ce==null?void 0x0:_0x3258ce[_0x35a0dc(0x308)]();if(_0x2da903&&!_0x543c0f(_0x2da903))return _0x2da903;let _0x4da35b=_0x38b39d['getCurrentUnitOfType'](_0x98e284[_0x35a0dc(0x3b2)]),_0xd56070=_0x4da35b==null?void 0x0:_0x4da35b[_0x35a0dc(0x308)]();if(_0xd56070&&!_0x543c0f(_0xd56070))return _0xd56070;let _0xbd7e69=_0x38b39d['getCurrentUnitOfType'](_0x98e284[_0x35a0dc(0x3bd)]);if(_0xbd7e69)return _0xbd7e69[_0x35a0dc(0x308)]();let _0xf5018e=_0x38b39d[_0x35a0dc(0x250)](_0x98e284[_0x35a0dc(0x3b2)])[_0x35a0dc(0x310)](_0x1859d5=>!_0x543c0f(_0x1859d5[_0x35a0dc(0x308)]()));return _0xf5018e?_0xf5018e['getUnitId']():null;}function ln(_0x1e6c59){let {status$:_0x28526b}=_0x1e6c59;return function(){return _0x5b3a46(an,{'status$':_0x28526b});};}var un=_0x247c5a(0x342),dn=_0x247c5a(0x27b);const Y={'id':_0x247c5a(0x2d6),'type':_0x54dfe6[_0x247c5a(0x28a)],'handler':(_0x246684,_0x3c9a58)=>{const _0x5288fe=_0x247c5a;let _0x4968eb=_0x246684[_0x5288fe(0x211)](_0x5a5714)['get'](_0x3c9a58[_0x5288fe(0x2a1)]);if(!_0x4968eb)return!0x1;switch(_0x3c9a58[_0x5288fe(0x3fa)]['type']){case _0x5288fe(0x21f):return _0x4968eb[_0x5288fe(0x3f8)](_0x3c9a58[_0x5288fe(0x3fa)][_0x5288fe(0x394)]),!0x0;case'remove':return _0x4968eb[_0x5288fe(0x1df)](_0x3c9a58[_0x5288fe(0x3fa)]['unitId'],_0x3c9a58[_0x5288fe(0x3fa)][_0x5288fe(0x28d)]),!0x0;case'clear':return _0x4968eb['clearRemotePresences'](_0x3c9a58[_0x5288fe(0x3fa)][_0x5288fe(0x399)]),!0x0;default:return!0x1;}}},fn={};let X=class extends _0x3318cc{constructor(_0x2108c4,_0x156fed){const _0x1113d4=_0x247c5a;super(),this[_0x1113d4(0x203)]=_0x2108c4,this['_imageIoService']=_0x156fed,this[_0x1113d4(0x302)]();}['_init'](){const _0x81963e=_0x247c5a;let _0x6ba2=this;this['disposeWithMe'](this['_docClipboardService'][_0x81963e(0x335)]({'onBeforePasteImage':async _0x54935d=>{const _0x53621a=_0x81963e;let _0x16716e=await _0x6ba2[_0x53621a(0x385)][_0x53621a(0x2d0)](_0x54935d);return _0x16716e?{'source':_0x16716e[_0x53621a(0x3aa)],'imageSourceType':_0x16716e[_0x53621a(0x2c4)]}:null;}}));}};X=q([K(0x0,_0x3088c8),K(0x1,_0x173c5c)],X);const pn=['purple.300','jiqing.500','green.600',_0x247c5a(0x380),_0x247c5a(0x28c),_0x247c5a(0x30e)];var mn=class extends _0x50ca1f{constructor(..._0x5c5e2f){const _0xce57a0=_0x247c5a;super(..._0x5c5e2f),G(this,_0xce57a0(0x350),new Map()),G(this,'_colorIndex',0x0);}[_0x247c5a(0x1d4)](_0x20c7d6){const _0x708835=_0x247c5a;if(this[_0x708835(0x350)][_0x708835(0x2ed)](_0x20c7d6))return this[_0x708835(0x350)][_0x708835(0x211)](_0x20c7d6);let _0x13acdd=pn[this[_0x708835(0x243)]];return this[_0x708835(0x243)]=(this[_0x708835(0x243)]+0x1)%pn['length'],this[_0x708835(0x350)]['set'](_0x20c7d6,_0x13acdd),_0x13acdd;}};function hn(_0x144092){const _0x4ec872=_0x247c5a;let _0x408dce='';for(let _0x447492 of _0x144092){let {startOffset:_0x2daa4a,endOffset:_0x5e6df5,isActive:_0x27d49f,rangeType:_0x3e4524,segmentId:_0x11c205,segmentPage:_0x1d0a57}=_0x447492;_0x408dce[_0x4ec872(0x23e)]&&(_0x408dce+=','),_0x408dce+=_0x2daa4a+':'+_0x5e6df5+':'+(_0x27d49f?'1':'0')+':'+_0x3e4524+':'+_0x11c205+':'+_0x1d0a57;}return _0x408dce;}function gn(_0x260cca){const _0x47f3d3=_0x247c5a;let _0x3e3381=_0x260cca[_0x47f3d3(0x2cf)](','),_0x32929d=[];for(let _0x27abfd of _0x3e3381){let [_0x2764b5,_0x1e3f32,_0x29a1ad,_0x316e77,_0x592903,_0x2fd3a4]=_0x27abfd[_0x47f3d3(0x2cf)](':');_0x32929d[_0x47f3d3(0x319)]({'startOffset':Number(_0x2764b5),'endOffset':Number(_0x1e3f32),'collapsed':_0x2764b5===_0x1e3f32,'isActive':_0x29a1ad==='1','rangeType':_0x316e77===_0x26a332[_0x47f3d3(0x393)]?_0x26a332[_0x47f3d3(0x393)]:_0x26a332[_0x47f3d3(0x1fd)],'segmentId':typeof _0x592903=='string'?String(_0x592903):'','segmentPage':Number(_0x2fd3a4??-0x1)});}return _0x32929d[_0x47f3d3(0x2b4)](_0x444fcb=>_0x444fcb[_0x47f3d3(0x3f3)])||(_0x32929d[0x0][_0x47f3d3(0x3f3)]=!0x0),_0x32929d;}var _n=class extends _0x3318cc{constructor(..._0x556a6f){const _0x19225c=_0x247c5a;super(..._0x556a6f),G(this,_0x19225c(0x3cf),new _0x24b100(null)),G(this,_0x19225c(0x312),this[_0x19225c(0x3cf)][_0x19225c(0x3d8)]());}[_0x247c5a(0x26b)](_0x571a8f){const _0x529132=_0x247c5a;let {unitID:_0x3d63f4,memberID:_0x278829,textRanges:_0x38f1f6}=_0x571a8f,_0x330786=hn(_0x38f1f6);if(_0x330786==='')return;let _0x115e0d={'unitID':_0x3d63f4,'memberID':_0x278829,'selection':_0x330786};this['_collabCursorState$'][_0x529132(0x1c0)](_0x115e0d);}};let vn=class extends _0x3318cc{get[_0x247c5a(0x1ba)](){const _0x89892f=_0x247c5a;return this['_cursorInfo$'][_0x89892f(0x379)]();}get[_0x247c5a(0x235)](){const _0x20d153=_0x247c5a;return this['_roomMembers$'][_0x20d153(0x379)]();}constructor(_0x147bf0,_0x4753ef,_0xf0157e,_0x2bc259,_0x1abd58,_0x265150,_0x131f36,_0x25bcfe,_0x2bf14a){const _0x52878d=_0x247c5a;super(),this['unitID']=_0x147bf0,this[_0x52878d(0x29d)]=_0x4753ef,this[_0x52878d(0x325)]=_0xf0157e,this[_0x52878d(0x246)]=_0x2bc259,this['_memberService']=_0x1abd58,this[_0x52878d(0x1e7)]=_0x265150,this[_0x52878d(0x30d)]=_0x131f36,this[_0x52878d(0x390)]=_0x25bcfe,this[_0x52878d(0x3fb)]=_0x2bf14a,G(this,'_online',!0x1),G(this,_0x52878d(0x302),!0x1),G(this,'_cursorInfo$',new _0x24b100(new Map())),G(this,_0x52878d(0x22f),this[_0x52878d(0x212)]['asObservable']()),G(this,'_roomMembers$',new _0x24b100([])),G(this,'roomMembers$',this[_0x52878d(0x30c)][_0x52878d(0x2cc)](_0x166d03(0x12c))),G(this,_0x52878d(0x205),_0x5bd974(_0x2e6d26=>{const _0x480f4b=_0x52878d;let _0x1d314f={'eventID':_0x6181db[_0x480f4b(0x3f6)],'data':{'unitID':this[_0x480f4b(0x29c)],'memberID':this[_0x480f4b(0x29d)][_0x480f4b(0x360)](),'selection':hn(_0x2e6d26)}};this[_0x480f4b(0x29d)][_0x480f4b(0x3e1)](_0x1d314f,this[_0x480f4b(0x29c)]);},0x64));}[_0x247c5a(0x204)](){const _0x4d8468=_0x247c5a;super[_0x4d8468(0x204)](),this[_0x4d8468(0x212)]['next'](new Map()),this[_0x4d8468(0x212)][_0x4d8468(0x36f)](),this[_0x4d8468(0x30c)]['next']([]),this['_roomMembers$']['complete']();}[_0x247c5a(0x284)](){const _0x2b6a1e=_0x247c5a;this[_0x2b6a1e(0x302)]||(this['_init']=!0x0,this['_session'][_0x2b6a1e(0x304)][_0x2b6a1e(0x2cc)](_0x3fa56b(this[_0x2b6a1e(0x40c)]))['subscribe'](_0x5473e2=>{const _0x144479=_0x2b6a1e;_0x5473e2===_0x511a18['ONLINE']?this[_0x144479(0x1e4)]():this[_0x144479(0x3a8)]();}),this[_0x2b6a1e(0x29d)][_0x2b6a1e(0x382)][_0x2b6a1e(0x2cc)](_0x3fa56b(this[_0x2b6a1e(0x40c)]))[_0x2b6a1e(0x2d5)](_0x535ea1=>{const _0x44572c=_0x2b6a1e;let _0x4498aa=_0x535ea1[_0x44572c(0x37d)];_0x4498aa===_0x6181db[_0x44572c(0x3f6)]&&this[_0x44572c(0x22d)](_0x535ea1),_0x4498aa===_0x6181db[_0x44572c(0x3db)]&&this[_0x44572c(0x3da)](_0x535ea1);}),this[_0x2b6a1e(0x3a7)](this[_0x2b6a1e(0x3fb)]['onCommandExecuted'](_0x10c9b9=>{const _0x3c2b2c=_0x2b6a1e;let _0x56d536=_0x10c9b9[_0x3c2b2c(0x37c)];_0x56d536!=null&&this[_0x3c2b2c(0x412)]&&_0x10c9b9['id']===_0x4e121a['id']&&_0x56d536[_0x3c2b2c(0x399)]===this[_0x3c2b2c(0x29c)]&&_0x56d536[_0x3c2b2c(0x1ed)]===!0x1&&_0x56d536[_0x3c2b2c(0x3a9)]['length']>0x0&&this['_updateLocalCursor'](_0x56d536[_0x3c2b2c(0x3a9)]);})),this['_syncEditingCollabCursorService'][_0x2b6a1e(0x312)][_0x2b6a1e(0x2cc)](_0x3fa56b(this[_0x2b6a1e(0x40c)]))[_0x2b6a1e(0x2d5)](_0x181ada=>{const _0x1d0c6a=_0x2b6a1e;if((_0x181ada==null?void 0x0:_0x181ada[_0x1d0c6a(0x29c)])!==this['unitID'])return;let _0x595a32={'eventID':_0x6181db[_0x1d0c6a(0x3f6)],'data':_0x181ada};this[_0x1d0c6a(0x22d)](_0x595a32);}),this['disposeWithMe'](this[_0x2b6a1e(0x3fb)][_0x2b6a1e(0x3ce)](_0x452ed0=>{const _0x3048d9=_0x2b6a1e;if(_0x452ed0[_0x3048d9(0x37c)]==null)return;let _0x2ba9c3=_0x452ed0[_0x3048d9(0x37c)];if(_0x452ed0['id']!==_0x759f54['id']||_0x2ba9c3[_0x3048d9(0x399)]!==this[_0x3048d9(0x29c)])return;let _0x33714e={'id':_0x3048d9(0x242),'params':_0x2ba9c3},_0x69f943=this['cursorInfo'];for(let [_0x253c82,_0x15af9c]of _0x69f943){let _0x1e00af={'id':_0x3048d9(0x242),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x15af9c[_0x3048d9(0x3a9)]}},_0x542248=this['_transformService'][_0x3048d9(0x3ed)](_0x33714e,_0x1e00af,!0x1);if(_0x2be4e3(_0x542248))throw _0x542248['error'];_0x69f943[_0x3048d9(0x21f)](_0x253c82,{..._0x15af9c,'ranges':_0x542248[_0x3048d9(0x24b)][_0x3048d9(0x37c)]['textRanges']});}queueMicrotask(()=>{const _0x52fb8c=_0x3048d9;this[_0x52fb8c(0x212)][_0x52fb8c(0x1c0)](_0x69f943);});})));}[_0x247c5a(0x22d)](_0x4c732f){const _0x1c4048=_0x247c5a;var _0x33321d;let {memberID:_0x14ba7d,selection:_0x56161c}=_0x4c732f['data'],_0x191d60=gn(_0x56161c),_0x4e4940=((_0x33321d=this[_0x1c4048(0x3f7)][_0x1c4048(0x265)](this[_0x1c4048(0x29c)],_0x14ba7d))==null?void 0x0:_0x33321d['name'])??_0x1c4048(0x352),_0x463d9f={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x14ba7d),'name':_0x4e4940,'ranges':_0x191d60},_0x45d374=this[_0x1c4048(0x1ba)];_0x45d374[_0x1c4048(0x21f)](_0x14ba7d,_0x463d9f),this[_0x1c4048(0x212)][_0x1c4048(0x1c0)](_0x45d374);}[_0x247c5a(0x3da)](_0x193a03){const _0x41ce7b=_0x247c5a;let {memberID:_0x4fbdf9}=_0x193a03['data'],_0x35c858=this[_0x41ce7b(0x1ba)];_0x35c858[_0x41ce7b(0x2ea)](_0x4fbdf9),this[_0x41ce7b(0x212)][_0x41ce7b(0x1c0)](_0x35c858);}[_0x247c5a(0x1e4)](){const _0x495e08=_0x247c5a;var _0xc18e90;if(this[_0x495e08(0x412)]=!0x0,((_0xc18e90=this['_univerInstanceService'][_0x495e08(0x200)]())==null?void 0x0:_0xc18e90[_0x495e08(0x308)]())!==this[_0x495e08(0x29c)])return;let _0x498d5b=this[_0x495e08(0x325)]['get'](_0x16bdd0)[_0x495e08(0x372)]();Array[_0x495e08(0x3ca)](_0x498d5b)&&_0x498d5b[_0x495e08(0x23e)]>0x0&&this[_0x495e08(0x205)](_0x498d5b);}[_0x247c5a(0x3a8)](){const _0xbea32e=_0x247c5a;this[_0xbea32e(0x412)]=!0x1;}};vn=q([K(0x2,_0x3b8ccc(_0x5c9bca)),K(0x3,_0x3b8ccc(mn)),K(0x4,_0x3b8ccc(_0x405f4a)),K(0x5,_0x3b8ccc(_n)),K(0x6,_0x2ebb05),K(0x7,_0x3fd3c3),K(0x8,_0x3fa174)],vn);const yn=()=>{let _0x424796=[],_0x18626b=!0x1;return _0xd11596=>{const _0x5e5438=_0x2e9b;_0x424796[_0x5e5438(0x319)](_0xd11596),_0x18626b||(_0x18626b=!0x0,setTimeout(()=>{const _0x1256f9=_0x5e5438;_0x424796[_0x1256f9(0x409)](_0x2f37b1=>_0x2f37b1()),_0x424796=[],_0x18626b=!0x1;}));};};let bn=class extends _0x3318cc{get[_0x247c5a(0x1ba)](){const _0x52adc8=_0x247c5a;return this[_0x52adc8(0x212)][_0x52adc8(0x379)]();}get['roomMembers'](){const _0x3f08a4=_0x247c5a;return this[_0x3f08a4(0x30c)][_0x3f08a4(0x379)]();}constructor(_0x444a59,_0x29c83f,_0x337ebb,_0x18968c,_0x3414d2,_0x5b47c7,_0x5bc5e8,_0x39845f){const _0x84fbb=_0x247c5a;super(),this[_0x84fbb(0x29c)]=_0x444a59,this[_0x84fbb(0x29d)]=_0x29c83f,this[_0x84fbb(0x325)]=_0x337ebb,this[_0x84fbb(0x246)]=_0x18968c,this[_0x84fbb(0x3f7)]=_0x3414d2,this[_0x84fbb(0x390)]=_0x5b47c7,this[_0x84fbb(0x3fb)]=_0x5bc5e8,this[_0x84fbb(0x2a8)]=_0x39845f,G(this,_0x84fbb(0x412),!0x1),G(this,_0x84fbb(0x302),!0x1),G(this,'_cursorInfo$',new _0x24b100(new Map())),G(this,_0x84fbb(0x22f),this['_cursorInfo$'][_0x84fbb(0x3d8)]()),G(this,_0x84fbb(0x30c),new _0x24b100([])),G(this,_0x84fbb(0x24f),this[_0x84fbb(0x30c)]['pipe'](_0x166d03(0x12c))),G(this,_0x84fbb(0x205),_0x5bd974((_0x3fb7f6,_0x4e9072)=>{const _0x37f0dd=_0x84fbb;let _0x2d0f2d={'eventID':_0x6181db[_0x37f0dd(0x3f6)],'data':{'unitID':this['unitID'],'memberID':this[_0x37f0dd(0x29d)][_0x37f0dd(0x360)](),'selection':_0x1e4d3b(_0x3fb7f6,_0x4e9072[_0x37f0dd(0x2e5)])}};this[_0x37f0dd(0x29d)][_0x37f0dd(0x3e1)](_0x2d0f2d,this[_0x37f0dd(0x29c)]);},0x64));}[_0x247c5a(0x204)](){const _0x543bb1=_0x247c5a;super[_0x543bb1(0x204)](),this[_0x543bb1(0x212)][_0x543bb1(0x1c0)](new Map()),this[_0x543bb1(0x212)][_0x543bb1(0x36f)](),this['_roomMembers$']['next']([]),this[_0x543bb1(0x30c)][_0x543bb1(0x36f)]();}[_0x247c5a(0x284)](){const _0x5f0b6a=_0x247c5a;this['_init']||(this[_0x5f0b6a(0x302)]=!0x0,this['_session'][_0x5f0b6a(0x304)][_0x5f0b6a(0x2cc)](_0x3fa56b(this['dispose$']))[_0x5f0b6a(0x2d5)](_0xda02b5=>{const _0x328485=_0x5f0b6a;_0xda02b5===_0x511a18[_0x328485(0x410)]?this[_0x328485(0x1e4)]():this[_0x328485(0x3a8)]();}),this[_0x5f0b6a(0x29d)]['event$'][_0x5f0b6a(0x2cc)](_0x3fa56b(this[_0x5f0b6a(0x40c)]))[_0x5f0b6a(0x2d5)](_0x7b87e7=>{const _0x2f1c2c=_0x5f0b6a;let _0x5bc778=_0x7b87e7[_0x2f1c2c(0x37d)];_0x5bc778===_0x6181db[_0x2f1c2c(0x3f6)]&&this['_onCursorUpdate'](_0x7b87e7),_0x5bc778===_0x6181db[_0x2f1c2c(0x3db)]&&this['_onCursorDelete'](_0x7b87e7);}),this[_0x5f0b6a(0x387)](),this[_0x5f0b6a(0x3a7)](this['_commandService'][_0x5f0b6a(0x3ce)](_0x31f857=>{const _0x539351=_0x5f0b6a;if(this['_online']&&_0x31f857['id']===_0x21c51f['id']&&_0x31f857[_0x539351(0x37c)][_0x539351(0x399)]===this[_0x539351(0x29c)]){let _0x4654ba=_0x31f857[_0x539351(0x37c)];this[_0x539351(0x205)](_0x4654ba['subUnitId'],_0x4654ba['selections'][0x0]);}})));}['_onCursorUpdate'](_0x516419){const _0x574b67=_0x247c5a;var _0x5cb2a2;let {memberID:_0x142310,selection:_0x3773fb}=_0x516419[_0x574b67(0x231)],{sheetName:_0x1982d3,range:_0x51fe72}=_0x264f50(_0x3773fb),_0xeaea86={'name':((_0x5cb2a2=this[_0x574b67(0x3f7)][_0x574b67(0x265)](this[_0x574b67(0x29c)],_0x142310))==null?void 0x0:_0x5cb2a2[_0x574b67(0x261)])??_0x574b67(0x352),'range':this[_0x574b67(0x307)](_0x1982d3,_0x51fe72),'sheetID':_0x1982d3,'color':this[_0x574b67(0x246)][_0x574b67(0x1d4)](_0x142310),'selection':_0x3773fb},_0x469f34=this[_0x574b67(0x1ba)];_0x469f34[_0x574b67(0x21f)](_0x142310,_0xeaea86),this['_cursorInfo$']['next'](_0x469f34);}[_0x247c5a(0x3da)](_0x394137){const _0x18c0be=_0x247c5a;let {memberID:_0x4c39e8}=_0x394137[_0x18c0be(0x231)],_0x200933=this[_0x18c0be(0x1ba)];_0x200933[_0x18c0be(0x2ea)](_0x4c39e8),this[_0x18c0be(0x212)][_0x18c0be(0x1c0)](_0x200933);}['_getMergeRange'](_0x1577cf,_0x4f33a9){const _0x6f7127=_0x247c5a;var _0x3a9c2c;let _0x5dde5e=(_0x3a9c2c=this['_univerInstanceService']['getUnit'](this[_0x6f7127(0x29c)],_0x98e284[_0x6f7127(0x3bd)]))==null||(_0x3a9c2c=_0x3a9c2c['getSheetBySheetId'](_0x1577cf))==null?void 0x0:_0x3a9c2c[_0x6f7127(0x33d)]();return(_0x5dde5e==null?void 0x0:_0x5dde5e[_0x6f7127(0x310)](_0x30ad20=>_0x12eda0['contains'](_0x30ad20,_0x4f33a9)))||_0x4f33a9;}['_onRefRangeChange'](){const _0x43a1e4=_0x247c5a;let _0x10605b=new _0x469794(),_0x33cfee=yn(),_0x13c74f=()=>{const _0x42442f=_0x2e9b;_0x10605b[_0x42442f(0x204)]();let _0x5e0681=(_0x135432,_0x61cad8,_0x19fa32,_0x2575b4)=>{const _0x4392f0=_0x42442f;let _0xa37fbd=[];switch(_0x135432['id']){case _0x4934af[_0x4392f0(0x305)]:_0xa37fbd=_0x48fd4e(_0x135432,_0x2575b4);break;case _0x4934af[_0x4392f0(0x1f7)]:_0xa37fbd=_0x378cdc(_0x135432,_0x2575b4);break;case _0x4934af[_0x4392f0(0x3e2)]:_0xa37fbd=_0xff97dd(_0x135432,_0x2575b4);break;case _0x4934af[_0x4392f0(0x35f)]:_0xa37fbd=_0x5cf38c(_0x135432,_0x2575b4);break;case _0x4934af['InsertRangeMoveRightCommandId']:_0xa37fbd=_0x5239d4(_0x135432,_0x2575b4);break;case _0x4934af[_0x4392f0(0x39e)]:_0xa37fbd=_0x447949(_0x135432,_0x2575b4);break;case _0x4934af[_0x4392f0(0x29a)]:_0xa37fbd=_0x3a5cbb(_0x135432,_0x2575b4);break;case _0x4934af[_0x4392f0(0x1ca)]:_0xa37fbd=_0x4f79ac(_0x135432,_0x2575b4);break;case _0x4934af[_0x4392f0(0x2f7)]:_0xa37fbd=_0x3f2774(_0x135432,_0x2575b4);}let _0x5f00f5=_0x25ff6b(_0xa37fbd,_0x2575b4),_0xfb56b0=this[_0x4392f0(0x1ba)][_0x4392f0(0x211)](_0x61cad8);if(_0xfb56b0&&_0x5f00f5){let _0x101b6e={..._0xfb56b0,'range':_0x5f00f5};this[_0x4392f0(0x1ba)]['set'](_0x61cad8,_0x101b6e),_0x33cfee(()=>{const _0x18f2e3=_0x4392f0;let _0x166182=this[_0x18f2e3(0x2a8)]['registerRefRange'](_0x5f00f5,_0x2838a5=>(_0x166182['dispose'](),_0x5e0681(_0x2838a5,_0x61cad8,_0x19fa32,_0x5f00f5)));_0x10605b['add'](_0x166182);});}return{'redos':[],'undos':[]};};this[_0x42442f(0x1ba)][_0x42442f(0x409)]((_0x1850d4,_0x44d433)=>{const _0x15fa2e=_0x42442f;let {range:_0x389e51,sheetID:_0x546434}=_0x1850d4,_0x287984=this[_0x15fa2e(0x2a8)][_0x15fa2e(0x34f)](_0x389e51,_0x1ed5bb=>(_0x287984[_0x15fa2e(0x204)](),_0x5e0681(_0x1ed5bb,_0x44d433,_0x546434,_0x389e51)));_0x10605b[_0x15fa2e(0x23b)](_0x287984);});};this[_0x43a1e4(0x3a7)](_0x265f18(this[_0x43a1e4(0x212)][_0x43a1e4(0x2d5)](()=>{_0x13c74f();})));}[_0x247c5a(0x1e4)](){const _0x45253f=_0x247c5a;var _0x551ac6,_0x99df90;if(this[_0x45253f(0x412)]=!0x0,((_0x551ac6=this[_0x45253f(0x390)][_0x45253f(0x200)]())==null?void 0x0:_0x551ac6[_0x45253f(0x308)]())!==this['unitID'])return;let _0x22c05e=(_0x99df90=this[_0x45253f(0x325)][_0x45253f(0x211)](_0x157274)[_0x45253f(0x39a)]())==null?void 0x0:_0x99df90[0x0],_0x1ca859=this[_0x45253f(0x390)][_0x45253f(0x367)](_0x98e284[_0x45253f(0x3bd)])[_0x45253f(0x268)]();_0x22c05e&&_0x1ca859&&this['_updateLocalCursor'](_0x1ca859[_0x45253f(0x411)](),_0x22c05e);}['_toggleOffline'](){this['_online']=!0x1;}};function _0x2e9b(_0x39927a,_0x488fe8){_0x39927a=_0x39927a-0x1a9;const _0x29c94f=_0x29c9();let _0x2e9b70=_0x29c94f[_0x39927a];return _0x2e9b70;}bn=q([K(0x2,_0x3b8ccc(_0x5c9bca)),K(0x3,_0x3b8ccc(mn)),K(0x4,_0x3b8ccc(_0x405f4a)),K(0x5,_0x3fd3c3),K(0x6,_0x3fa174),K(0x7,_0x3b8ccc(_0x4485d1))],bn);let Z=class extends _0x3318cc{constructor(_0x2796bd,_0x2275fa,_0x43a956){const _0x5eb3f8=_0x247c5a;super(),this[_0x5eb3f8(0x390)]=_0x2796bd,this[_0x5eb3f8(0x325)]=_0x2275fa,this[_0x5eb3f8(0x337)]=_0x43a956,G(this,_0x5eb3f8(0x1c7),new Map()),G(this,_0x5eb3f8(0x40f),new _0x5896e4()),this[_0x5eb3f8(0x302)]();}[_0x247c5a(0x204)](){const _0x2b24e1=_0x247c5a;super[_0x2b24e1(0x204)](),this['_entityInit$'][_0x2b24e1(0x36f)](),this[_0x2b24e1(0x1c7)]['forEach'](_0xf2b225=>_0xf2b225[_0x2b24e1(0x204)]());}[_0x247c5a(0x33b)](_0xc3ca58){const _0x590ed9=_0x247c5a;let _0x44455f=this[_0x590ed9(0x1c7)][_0x590ed9(0x211)](_0xc3ca58);return _0x44455f?_0x44455f[_0x590ed9(0x22f)]:this[_0x590ed9(0x40f)][_0x590ed9(0x2cc)](_0x48c179(_0x5a33e5=>_0x5a33e5[_0x590ed9(0x29c)]===_0xc3ca58),_0x34977b(_0x3a6455=>_0x3a6455[_0x590ed9(0x22f)]));}[_0x247c5a(0x302)](){const _0x52bc2b=_0x247c5a;this[_0x52bc2b(0x390)]['getTypeOfUnitAdded$'](_0x98e284[_0x52bc2b(0x3bd)])[_0x52bc2b(0x2cc)](_0x3fa56b(this[_0x52bc2b(0x40c)]))['subscribe'](async _0x281020=>{const _0x1721e3=_0x52bc2b;let _0x277c45=_0x281020[_0x1721e3(0x400)][_0x1721e3(0x308)](),_0xb34516=await this['_startSheetCollabCursor'](_0x277c45);this['_entityInit$'][_0x1721e3(0x1c0)](_0xb34516),this[_0x1721e3(0x1c7)][_0x1721e3(0x21f)](_0x277c45,_0xb34516);}),this[_0x52bc2b(0x390)][_0x52bc2b(0x2a0)](_0x98e284[_0x52bc2b(0x3b2)])[_0x52bc2b(0x2cc)](_0x3fa56b(this[_0x52bc2b(0x40c)]))['pipe'](_0x48c179(_0x4f6100=>!_0x4f6100['unit']['getUnitId']()[_0x52bc2b(0x244)]('__')))['subscribe'](async _0x5650db=>{const _0x513109=_0x52bc2b;let {unit:_0x3ce160}=_0x5650db,_0x5d251d=_0x3ce160[_0x513109(0x308)](),_0x2d7c68=await this[_0x513109(0x301)](_0x5d251d);this[_0x513109(0x40f)][_0x513109(0x1c0)](_0x2d7c68),this['_entities'][_0x513109(0x21f)](_0x5d251d,_0x2d7c68);}),_0x424375(this[_0x52bc2b(0x390)][_0x52bc2b(0x251)](_0x98e284[_0x52bc2b(0x3b2)]),this[_0x52bc2b(0x390)][_0x52bc2b(0x251)](_0x98e284[_0x52bc2b(0x3bd)]))['pipe'](_0x3fa56b(this[_0x52bc2b(0x40c)]))['subscribe'](_0x1616dd=>{const _0x56a954=_0x52bc2b;let _0x1ba324=_0x1616dd[_0x56a954(0x308)](),_0x1a9e7e=this['_entities'][_0x56a954(0x211)](_0x1ba324);_0x1a9e7e&&(_0x1a9e7e[_0x56a954(0x204)](),this['_entities'][_0x56a954(0x2ea)](_0x1ba324));});}async[_0x247c5a(0x23a)](_0x548765){const _0x4c4448=_0x247c5a;let _0xf51c21=await this[_0x4c4448(0x337)][_0x4c4448(0x2bf)](_0x548765),_0x1cc78f=this[_0x4c4448(0x325)][_0x4c4448(0x21a)](bn,_0x548765,_0xf51c21);return _0x1cc78f[_0x4c4448(0x284)](),_0x1cc78f;}async['_startDocCollabCursor'](_0x19996a){const _0x3fde21=_0x247c5a;let _0x4db3f7=await this[_0x3fde21(0x337)]['requireSession'](_0x19996a),_0x3d6305=this[_0x3fde21(0x325)][_0x3fde21(0x21a)](vn,_0x19996a,_0x4db3f7);return _0x3d6305[_0x3fde21(0x284)](),_0x3d6305;}};Z=q([K(0x0,_0x3fd3c3),K(0x1,_0x3b8ccc(_0x5c9bca)),K(0x2,_0x3b8ccc(_0xed7c81))],Z);function xn(_0x3f39da,_0x5bfcc8){const _0x535b87=_0x247c5a;_0x3f39da['save'](),_0x3f39da['font']=_0x535b87(0x384);let _0x21d25e=_0x3f39da[_0x535b87(0x2d2)](_0x5bfcc8)[_0x535b87(0x375)];return _0x3f39da['restore'](),Math[_0x535b87(0x34a)](_0x21d25e+0x8,0xc8);}function Sn(_0x1fa308,_0x4b6ab8){const _0x10c4f9=_0x247c5a;let {radius:_0x4444f5,width:_0x33fdbe,height:_0x318539}=_0x4b6ab8;_0x4444f5??=0x0,_0x33fdbe??=0x1e,_0x318539??=0x1e;let _0x60e587=0x0,_0xf07747=0x0,_0x2aa74b=0x0;_0x60e587=_0xf07747=_0x2aa74b=Math['min'](_0x4444f5,_0x33fdbe/0x2,_0x318539/0x2),_0x1fa308['beginPath'](),_0x1fa308[_0x10c4f9(0x33e)](_0x60e587,0x0),_0x1fa308[_0x10c4f9(0x217)](_0x33fdbe-_0xf07747,0x0),_0x1fa308[_0x10c4f9(0x1b4)](_0x33fdbe-_0xf07747,_0xf07747,_0xf07747,Math['PI']*0x3/0x2,0x0,!0x1),_0x1fa308['lineTo'](_0x33fdbe,_0x318539-_0x2aa74b),_0x1fa308[_0x10c4f9(0x1b4)](_0x33fdbe-_0x2aa74b,_0x318539-_0x2aa74b,_0x2aa74b,0x0,Math['PI']/0x2,!0x1),_0x1fa308[_0x10c4f9(0x217)](0x0,_0x318539),_0x1fa308[_0x10c4f9(0x217)](0x0,_0x60e587),_0x1fa308[_0x10c4f9(0x1b4)](_0x60e587,_0x60e587,_0x60e587,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1fa308[_0x10c4f9(0x1f8)](),_0x4b6ab8[_0x10c4f9(0x345)]&&(_0x1fa308[_0x10c4f9(0x286)](),_0x1fa308['fillStyle']=_0x4b6ab8[_0x10c4f9(0x345)],_0x4b6ab8[_0x10c4f9(0x266)]===_0x10c4f9(0x3c6)?_0x1fa308[_0x10c4f9(0x345)](_0x10c4f9(0x3c6)):_0x1fa308[_0x10c4f9(0x345)](),_0x1fa308[_0x10c4f9(0x25b)]());}var Cn=class e extends _0x522a01{constructor(_0x2581ae,_0x397df1){const _0x114f57=_0x247c5a;super(_0x2581ae,_0x397df1),G(this,_0x114f57(0x3b1),void 0x0),G(this,_0x114f57(0x358),void 0x0),this[_0x114f57(0x3b1)]=_0x397df1==null?void 0x0:_0x397df1[_0x114f57(0x3b1)],this[_0x114f57(0x358)]=_0x397df1==null?void 0x0:_0x397df1['text'];}static['drawWith'](_0x2d7e9f,_0x4ea7d1){const _0xf95c35=_0x247c5a;let {text:_0x477af6,color:_0x26ce65}=_0x4ea7d1;_0x2d7e9f[_0xf95c35(0x286)](),_0x2d7e9f['font']='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';let _0x4d8f35=_0x2d7e9f[_0xf95c35(0x2d2)](_0x477af6)['width'];if(Sn(_0x2d7e9f,{'height':0x14,'radius':0x4,'width':xn(_0x2d7e9f,_0x477af6),'fill':_0x26ce65,'evented':!0x1}),_0x2d7e9f['fillStyle']=_0xf95c35(0x1c9),_0x4d8f35>0xc0){let _0x22fc76='',_0x1eed1e=0x0;for(let _0x3f3d21 of _0x477af6){let _0x468e58=_0x2d7e9f['measureText'](_0x3f3d21)[_0xf95c35(0x375)];if(_0x1eed1e+_0x468e58<=0xc0-_0x2d7e9f['measureText'](_0xf95c35(0x1f0))[_0xf95c35(0x375)])_0x22fc76+=_0x3f3d21,_0x1eed1e+=_0x468e58;else{_0x22fc76+=_0xf95c35(0x1f0);break;}}_0x2d7e9f[_0xf95c35(0x1d8)](_0x22fc76,0x4,0xf);}else _0x2d7e9f[_0xf95c35(0x1d8)](_0x477af6,0x4,0xf);_0x2d7e9f[_0xf95c35(0x25b)]();}[_0x247c5a(0x2ef)](_0x6e8bd5){e['drawWith'](_0x6e8bd5,this);}};const wn=_0x247c5a(0x3bf);var Tn=class{constructor(_0x17aa4a,_0x3988b1,_0x3c7ba3,_0x44c47d){const _0x556232=_0x247c5a;this[_0x556232(0x1e1)]=_0x17aa4a,this['_scene']=_0x3988b1,this['_docSkeleton']=_0x3c7ba3,this[_0x556232(0x38f)]=_0x44c47d,G(this,'_shapes',[]),G(this,'_anchor',null),G(this,_0x556232(0x32c),null),G(this,_0x556232(0x2f8),null),G(this,_0x556232(0x35a),null),G(this,'_eventUnsubscribe',null),this[_0x556232(0x1ad)]();}set[_0x247c5a(0x1eb)](_0x4061f3){const _0x129ac5=_0x247c5a;_0x4061f3?(this['_anchorDot']&&this[_0x129ac5(0x2f8)][_0x129ac5(0x3b5)](),this[_0x129ac5(0x32c)]&&this[_0x129ac5(0x32c)][_0x129ac5(0x30a)]()):(this['_anchorDot']&&this[_0x129ac5(0x2f8)][_0x129ac5(0x30a)](),this['_textBubble']&&this[_0x129ac5(0x32c)][_0x129ac5(0x3b5)]());}[_0x247c5a(0x204)](){const _0x2f1e97=_0x247c5a;for(let _0x3a528a of this[_0x2f1e97(0x365)])_0x3a528a[_0x2f1e97(0x204)]();this['_textBubble']&&this['_textBubble'][_0x2f1e97(0x204)](),this[_0x2f1e97(0x2f8)]&&this['_anchorDot'][_0x2f1e97(0x204)](),this[_0x2f1e97(0x2c1)]&&this['_anchor']['dispose'](),this[_0x2f1e97(0x3c5)]&&this[_0x2f1e97(0x3c5)]();}[_0x247c5a(0x1ad)](){const _0x46dcc4=_0x247c5a;let {_docSkeleton:_0x552c41,_document:_0x190e01}=this,{color:_0x592a50,name:_0x19ff33,ranges:_0x1e8cd4}=this[_0x46dcc4(0x1e1)],_0x26174e=_0x190e01['getOffsetConfig'](),{docsLeft:_0x4550e4,docsTop:_0x556317}=_0x26174e,_0x196d4c=new _0x36c330(_0x26174e,_0x552c41);for(let {startOffset:_0x1395b5,endOffset:_0x2dfc33,rangeType:_0xec8895,segmentId:_0x29b22f,segmentPage:_0x1586ed,collapsed:_0x2b9e6f,isActive:_0x1b340c}of _0x1e8cd4){let _0x8c59c8=_0x552c41[_0x46dcc4(0x3eb)](_0x1395b5,!0x0,_0x29b22f,_0x1586ed),_0x445d24=_0x552c41[_0x46dcc4(0x3eb)](_0x2dfc33,!0x0,_0x29b22f,_0x1586ed);_0x445d24??=_0x552c41[_0x46dcc4(0x3eb)](_0x2dfc33-0x1,!0x1,_0x29b22f,_0x1586ed);let _0x45c6bf=En(_0x8c59c8,_0x445d24);if(_0x1b340c&&_0x45c6bf['canRenderAnchor']){let {contentBoxPointGroup:_0xf1b6d8}=_0x196d4c[_0x46dcc4(0x37a)](_0x445d24,_0x445d24);if(_0xf1b6d8[_0x46dcc4(0x23e)]===0x0)continue;this[_0x46dcc4(0x237)](_0x592a50,_0xf1b6d8,_0x4550e4,_0x556317,_0x19ff33),this['_eventUnsubscribe']=this[_0x46dcc4(0x282)]();}if(_0x8c59c8&&_0x445d24){if(_0xec8895===_0x26a332[_0x46dcc4(0x1fd)]){let {pointGroup:_0x5d44f6}=new _0x1095f0(_0x26174e,_0x552c41)[_0x46dcc4(0x37a)](_0x8c59c8,_0x445d24)??{};if(_0x5d44f6==null||_0x5d44f6[_0x46dcc4(0x23e)]===0x0)continue;this[_0x46dcc4(0x292)](_0x592a50,_0x5d44f6,_0x4550e4,_0x556317);}else{if(!_0x2b9e6f&&_0x45c6bf[_0x46dcc4(0x29e)]){let {borderBoxPointGroup:_0x24dcbd}=_0x196d4c[_0x46dcc4(0x37a)](_0x8c59c8,_0x445d24);if(_0x24dcbd['length']===0x0)continue;this[_0x46dcc4(0x31f)](_0x592a50,_0x24dcbd,_0x4550e4,_0x556317);}}}}}['_drawAnchor'](_0x381a06,_0x1dfda5,_0x319729,_0x52439e,_0x57b5aa){const _0x1435f6=_0x247c5a;let {left:_0x54c62e,top:_0x5d967a,height:_0x2bffa3}=this[_0x1435f6(0x3df)](_0x1dfda5),_0x1de0a2=1.5/this['_getScale'](),_0x27a757=new _0x52bc18(wn+_0x4a2001(0x6),{'left':_0x54c62e+_0x319729-_0x1de0a2,'top':_0x5d967a+_0x52439e,'height':_0x2bffa3,'width':1.5,'fill':_0x381a06||_0x2949e8(_0xf528d4[_0x1435f6(0x373)],0x0),'strokeWidth':_0x1de0a2,'stroke':_0x1435f6(0x27a),'evented':!0x0});this[_0x1435f6(0x2c1)]=_0x27a757,this['_scene'][_0x1435f6(0x207)](_0x27a757,_0x7badc3);let _0x376cdb=new _0x52bc18(wn+_0x4a2001(0x6),{'left':_0x54c62e+_0x319729-_0x1de0a2,'top':_0x5d967a+_0x52439e-0x2,'height':0x4,'width':0x4,'fill':_0x381a06||_0x2949e8(_0xf528d4[_0x1435f6(0x373)],0x0),'strokeWidth':0x0,'stroke':_0x381a06||_0x2949e8(_0xf528d4['black'],0x0),'evented':!0x1});this[_0x1435f6(0x2f8)]=_0x376cdb,this[_0x1435f6(0x40b)][_0x1435f6(0x207)](_0x376cdb,_0x7badc3);let _0x2c0f44=new Cn(wn+_0x4a2001(0x6),{'left':_0x54c62e+_0x319729-_0x1de0a2,'top':_0x5d967a+_0x52439e-0x14,'text':_0x57b5aa,'color':_0x381a06});this[_0x1435f6(0x32c)]=_0x2c0f44,this[_0x1435f6(0x40b)][_0x1435f6(0x207)](_0x2c0f44,_0x7badc3),this[_0x1435f6(0x1eb)]=!0x1;}[_0x247c5a(0x282)](){const _0x5604fb=_0x247c5a;let _0x29e84a=this[_0x5604fb(0x2c1)]['onPointerEnter$'][_0x5604fb(0x2af)](()=>{const _0x5e0140=_0x5604fb;this[_0x5e0140(0x1eb)]=!0x0;}),_0x30bd89=this[_0x5604fb(0x2c1)][_0x5604fb(0x2ae)]['subscribeEvent'](()=>{const _0x2b4f28=_0x5604fb;this[_0x2b4f28(0x35a)]&&clearTimeout(this[_0x2b4f28(0x35a)]),this[_0x2b4f28(0x35a)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x224578=_0x5604fb;_0x29e84a[_0x224578(0x1f6)](),_0x30bd89[_0x224578(0x1f6)]();};}[_0x247c5a(0x31f)](_0x3c07e1,_0x4667e5,_0x89f4c3,_0x16f3ea){const _0x2f63fa=_0x247c5a;let _0x51ce6b=0.2,_0xb12a9a=new _0x2ac9a9(_0x3c07e1)[_0x2f63fa(0x1ea)](_0x51ce6b)['toRgbString'](),_0x2c49da=new _0x31acbf(_0x2f63fa(0x34e)+_0x4a2001(0x6),{'pointsGroup':_0x4667e5,'fill':_0xb12a9a||_0x2949e8(_0xf528d4['black'],_0x51ce6b),'left':_0x89f4c3,'top':_0x16f3ea,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2f63fa(0x365)][_0x2f63fa(0x319)](_0x2c49da),this['_scene'][_0x2f63fa(0x207)](_0x2c49da,_0x7badc3);}[_0x247c5a(0x292)](_0xc5f8a4,_0x3c5c6e,_0x32fd28,_0x5297b8){const _0x3507a4=_0x247c5a;let _0x4af16f=0.2,_0x260784=new _0x2ac9a9(_0xc5f8a4)[_0x3507a4(0x1ea)](_0x4af16f)['toRgbString'](),_0x168966=new _0x31acbf(_0x3507a4(0x1f5)+_0x4a2001(0x6),{'pointsGroup':_0x3c5c6e,'fill':_0x260784||_0x2949e8(_0xf528d4['black'],_0x4af16f),'left':_0x32fd28,'top':_0x5297b8,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3507a4(0x365)][_0x3507a4(0x319)](_0x168966),this[_0x3507a4(0x40b)]['addObject'](_0x168966,_0x7badc3);}[_0x247c5a(0x3df)](_0x47c90d){let _0x5f4326=_0x47c90d[0x0],_0x3229b9=_0x5f4326[0x0],_0x315f32=_0x5f4326[0x2],{x:_0x3d93cf,y:_0xc25aca}=_0x3229b9,{x:_0x1ac5cf,y:_0xe12db0}=_0x315f32;return{'left':_0x3d93cf,'top':_0xc25aca,'width':_0x1ac5cf-_0x3d93cf,'height':_0xe12db0-_0xc25aca};}['_getScale'](){const _0x21aa61=_0x247c5a;let {scaleX:_0x9a3dc4,scaleY:_0x1b8199}=this[_0x21aa61(0x40b)][_0x21aa61(0x3c7)]();return Math['max'](_0x9a3dc4,_0x1b8199);}};function En(_0x276376,_0x4250fb){const _0x12c994=_0x247c5a;if(!_0x4250fb)return{'canRenderAnchor':!0x1,'canRenderSelection':!0x1};if(!_0x276376||_0x276376[_0x12c994(0x24e)]!==_0x4250fb[_0x12c994(0x24e)]||(_0x276376['pageType']===_0x52e84a[_0x12c994(0x405)]||_0x276376[_0x12c994(0x24e)]===_0x52e84a[_0x12c994(0x29b)])&&_0x276376[_0x12c994(0x336)]!==_0x4250fb[_0x12c994(0x336)])return{'canRenderAnchor':!0x0,'canRenderSelection':!0x1};let _0x2f269b=_0x336b78(_0x276376),_0x41023c=_0x336b78(_0x4250fb);return{'canRenderAnchor':!0x0,'canRenderSelection':_0x2f269b==null||_0x41023c==null?_0x2f269b==null&&_0x41023c==null:_0x2f269b[_0x12c994(0x3dc)]===_0x41023c['pageIndex']&&_0x2f269b['columnGroupId']===_0x41023c[_0x12c994(0x311)]&&_0x2f269b[_0x12c994(0x1dd)]===_0x41023c[_0x12c994(0x1dd)]};}let Dn=class extends _0x3318cc{constructor(_0xa074cc,_0x266782,_0x5989eb,_0x50587c,_0x1b0069){const _0x2b8441=_0x247c5a;super(),this[_0x2b8441(0x31e)]=_0xa074cc,this['_docSkeletonManagerService']=_0x266782,this[_0x2b8441(0x2b1)]=_0x5989eb,this[_0x2b8441(0x3fb)]=_0x50587c,this['_themeService']=_0x1b0069,G(this,_0x2b8441(0x24d),[]),G(this,_0x2b8441(0x313),[]),this[_0x2b8441(0x302)]();}[_0x247c5a(0x302)](){const _0x4165e0=_0x247c5a;let _0x51d622=this[_0x4165e0(0x31e)][_0x4165e0(0x399)],_0x15a508=this[_0x4165e0(0x1c1)];this[_0x4165e0(0x3a7)](_0x3e4240([this[_0x4165e0(0x2b1)][_0x4165e0(0x33b)](_0x51d622),this[_0x4165e0(0x306)][_0x4165e0(0x3b3)]])[_0x4165e0(0x2cc)](_0x328767(([_0x1413ea,_0x1fd8d7])=>({'skeleton':_0x15a508[_0x4165e0(0x329)](),'cursors':[..._0x1413ea[_0x4165e0(0x35e)]()][_0x4165e0(0x27e)](_0x3f111d=>({..._0x3f111d,'color':this[_0x4165e0(0x306)]['getColorFromTheme'](_0x3f111d[_0x4165e0(0x3b1)])}))})))[_0x4165e0(0x2d5)](_0x1463ed=>{const _0x3bf38f=_0x4165e0;if(this[_0x3bf38f(0x363)](),_0x1463ed){let {skeleton:_0x4083a4,cursors:_0xbf333b}=_0x1463ed;this[_0x3bf38f(0x1ab)](_0x4083a4,_0xbf333b);}})),this['_initResize'](),this[_0x4165e0(0x1e0)]();}[_0x247c5a(0x1ab)](_0x3038ab,_0x514fb6){const _0x29a192=_0x247c5a;let {scene:_0x1b0391,mainComponent:_0x4a4e11}=this[_0x29a192(0x31e)],_0x391af6=_0x514fb6['map'](_0xc65482=>new Tn(_0xc65482,_0x1b0391,_0x3038ab,_0x4a4e11));this[_0x29a192(0x24d)]=_0x391af6,this[_0x29a192(0x313)]=_0x514fb6;}[_0x247c5a(0x3e0)](){const _0x2ce561=_0x247c5a;this[_0x2ce561(0x363)]();let {scene:_0x4239b5,mainComponent:_0x26ce47}=this[_0x2ce561(0x31e)],_0x3601db=this['_docSkeletonManagerService']['getSkeleton'](),_0x423d52=this['_cursors'][_0x2ce561(0x1f3)](_0x308761=>new Tn(_0x308761,_0x4239b5,_0x3601db,_0x26ce47));this[_0x2ce561(0x24d)]=_0x423d52;}['_removeCollabCursors'](){const _0x453616=_0x247c5a;this['_cursorShapes'][_0x453616(0x409)](_0x2f40ae=>_0x2f40ae[_0x453616(0x204)]()),this[_0x453616(0x24d)]=[];}[_0x247c5a(0x1e0)](){const _0x5c5ca9=_0x247c5a;let _0x460335=[_0x4186fd['id']];this['disposeWithMe'](this['_commandService'][_0x5c5ca9(0x3ce)](_0xe2e71c=>{const _0x3c2dbc=_0x5c5ca9;_0x460335[_0x3c2dbc(0x2f4)](_0xe2e71c['id'])&&_0xe2e71c[_0x3c2dbc(0x37c)][_0x3c2dbc(0x399)]===this[_0x3c2dbc(0x31e)]['unitId']&&this['_refreshCollabCursors']();}));}[_0x247c5a(0x3ad)](){const _0x447a35=_0x247c5a;this[_0x447a35(0x3a7)](_0x56e033(this[_0x447a35(0x31e)]['engine'][_0x447a35(0x259)])[_0x447a35(0x2cc)](_0x240473(_0x45ad23=>_0x45ad23[_0x447a35(0x2d8)]===_0x3f0e13[_0x447a35(0x31a)]),_0x596cdc(0x10))[_0x447a35(0x2d5)](()=>{const _0x34edb6=_0x447a35;this[_0x34edb6(0x3e0)]();}));}};Dn=q([K(0x1,_0x3b8ccc(_0x585056)),K(0x2,_0x3b8ccc(Z)),K(0x3,_0x3fa174),K(0x4,_0x3b8ccc(_0xbb7758))],Dn);var On=class extends _0x522a01{constructor(_0x5de9d7,_0x483e87){const _0x462381=_0x247c5a;super(_0x5de9d7,_0x483e87),G(this,_0x462381(0x339),void 0x0),G(this,_0x462381(0x34d),!0x1),G(this,_0x462381(0x2f3),void 0x0),G(this,_0x462381(0x1de),''),G(this,_0x462381(0x26f),_0x462381(0x2ac)),G(this,_0x462381(0x2a3),void 0x0),G(this,'_showText',void 0x0),G(this,'_highlight',void 0x0),G(this,'_highlightSecond',0x4),G(this,'_blinkTimer',void 0x0),G(this,_0x462381(0x1b8),void 0x0),G(this,_0x462381(0x3ac),!0x0),G(this,'_offsetY',0x0),G(this,_0x462381(0x254),_0x462381(0x2cb)),_0x483e87&&(this[_0x462381(0x3e8)](_0x483e87),_0x483e87[_0x462381(0x32e)]&&(_0x483e87['highlightSecond']??this[_0x462381(0x2a9)])&&this['_startBlinking'](_0x483e87[_0x462381(0x263)]??this[_0x462381(0x2a9)])),this[_0x462381(0x258)][_0x462381(0x2af)](()=>this[_0x462381(0x3e8)]({'hovered':!0x0})),this[_0x462381(0x2ae)][_0x462381(0x2af)](()=>this[_0x462381(0x3e8)]({'hovered':!0x1}));}[_0x247c5a(0x348)](_0x2d51dd){this['_offsetY']=_0x2d51dd;}[_0x247c5a(0x3e8)](_0x127ee2){const _0x2f958a=_0x247c5a;this[_0x2f958a(0x339)]=_0x127ee2[_0x2f958a(0x3b1)]??this[_0x2f958a(0x339)],this['_hovered']=_0x127ee2[_0x2f958a(0x1d9)]??this[_0x2f958a(0x34d)],this[_0x2f958a(0x2f3)]=_0x127ee2[_0x2f958a(0x2e5)]??this['_range'],this['_name']=_0x127ee2['name']??this[_0x2f958a(0x1de)],this[_0x2f958a(0x26f)]=_0x127ee2[_0x2f958a(0x25c)]??this['_labelPosition'],this['_backgroundColor']=_0x127ee2[_0x2f958a(0x3ef)]??this['_backgroundColor'],this[_0x2f958a(0x3f0)]=_0x127ee2['showText']??this[_0x2f958a(0x3f0)],this[_0x2f958a(0x254)]=_0x127ee2[_0x2f958a(0x3c0)]??this[_0x2f958a(0x254)],_0x127ee2[_0x2f958a(0x263)]!==void 0x0&&(this[_0x2f958a(0x2a9)]=_0x127ee2[_0x2f958a(0x263)]),_0x127ee2[_0x2f958a(0x32e)]!==void 0x0&&(this['_highlight']=_0x127ee2['highlight']),_0x127ee2[_0x2f958a(0x228)]!==void 0x0&&(this[_0x2f958a(0x3dd)]=_0x127ee2[_0x2f958a(0x228)]),this[_0x2f958a(0x402)]({'width':_0x127ee2[_0x2f958a(0x375)],'height':_0x127ee2['height']});}[_0x247c5a(0x2e9)](_0x2e4866){const _0x188870=_0x247c5a;let {row:_0x23ef0e,column:_0x5bd6e0}=_0x2e4866;if(_0x23ef0e>=this[_0x188870(0x2f3)][_0x188870(0x1da)]&&_0x23ef0e<=this[_0x188870(0x2f3)][_0x188870(0x3ee)]&&_0x5bd6e0>=this[_0x188870(0x2f3)][_0x188870(0x321)]&&_0x5bd6e0<=this[_0x188870(0x2f3)][_0x188870(0x1be)]){this[_0x188870(0x3e8)]({'hovered':!0x0});return;}this[_0x188870(0x3e8)]({'hovered':!0x1});}['_startBlinking'](_0x5e5611){const _0x181fdb=_0x247c5a;this['_stopBlinking'](),this['_isBlinkVisible']=!0x0,this[_0x181fdb(0x1b8)]=window['setInterval'](()=>{const _0x490a5a=_0x181fdb;this['_isBlinkVisible']=!this[_0x490a5a(0x3ac)],this[_0x490a5a(0x220)](!0x0);},0x1f4),this[_0x181fdb(0x353)]=window[_0x181fdb(0x1c8)](()=>{const _0x36fb99=_0x181fdb;this[_0x36fb99(0x3d1)](),this[_0x36fb99(0x3ac)]=!0x0,this[_0x36fb99(0x220)](!0x0);},_0x5e5611*0x3e8);}[_0x247c5a(0x3d1)](){const _0x464823=_0x247c5a;this[_0x464823(0x1b8)]&&=(window[_0x464823(0x2d4)](this[_0x464823(0x1b8)]),void 0x0),this[_0x464823(0x353)]&&=(window[_0x464823(0x249)](this[_0x464823(0x353)]),void 0x0);}['triggerDblclick'](_0x328afd){return!0x1;}['dispose'](){const _0xf2e5d6=_0x247c5a;this[_0xf2e5d6(0x3d1)](),super[_0xf2e5d6(0x204)]();}[_0x247c5a(0x2ef)](_0x2de793){const _0x1c4220=_0x247c5a;let _0x4c5383=this[_0x1c4220(0x339)],_0xb96973=this[_0x1c4220(0x2a3)];if(this[_0x1c4220(0x2ca)]&&!this[_0x1c4220(0x3ac)]&&(_0x4c5383=this[_0x1c4220(0x341)](this[_0x1c4220(0x339)]),_0xb96973=this['_backgroundColor']?this['_getLighterColor'](this[_0x1c4220(0x2a3)]):void 0x0),_0x52bc18[_0x1c4220(0x374)](_0x2de793,{'width':this[_0x1c4220(0x375)],'height':this[_0x1c4220(0x247)],'strokeWidth':this[_0x1c4220(0x413)]||1.5,'stroke':_0x4c5383,'evented':!0x1,'fill':_0xb96973}),this[_0x1c4220(0x34d)]||this[_0x1c4220(0x3f0)]){_0x2de793[_0x1c4220(0x286)]();let _0x213025=this[_0x1c4220(0x254)]===_0x1c4220(0x240)?-xn(_0x2de793,this['_name']):this[_0x1c4220(0x375)];_0x2de793[_0x1c4220(0x3e3)](0x1,0x0,0x0,0x1,_0x213025,(this[_0x1c4220(0x26f)]===_0x1c4220(0x381)?0x0:-0x14)+(this[_0x1c4220(0x3dd)]??0x0)),Cn[_0x1c4220(0x374)](_0x2de793,{'text':this[_0x1c4220(0x1de)],'color':_0x4c5383}),_0x2de793[_0x1c4220(0x25b)]();}}['_getLighterColor'](_0x5ab84e){const _0x4a361d=_0x247c5a;return _0x5ab84e[_0x4a361d(0x244)]('#')?'rgba('+Number[_0x4a361d(0x2c7)](_0x5ab84e[_0x4a361d(0x3af)](0x1,0x3),0x10)+',\x20'+Number[_0x4a361d(0x2c7)](_0x5ab84e[_0x4a361d(0x3af)](0x3,0x5),0x10)+',\x20'+Number[_0x4a361d(0x2c7)](_0x5ab84e[_0x4a361d(0x3af)](0x5,0x7),0x10)+_0x4a361d(0x1e9):_0x5ab84e[_0x4a361d(0x244)]('rgba')?_0x5ab84e[_0x4a361d(0x322)](/[\d.]+\)$/g,_0x4a361d(0x248)):_0x5ab84e[_0x4a361d(0x244)]('rgb')?_0x5ab84e[_0x4a361d(0x322)]('rgb',_0x4a361d(0x406))[_0x4a361d(0x322)](')',_0x4a361d(0x1e9)):_0x5ab84e;}};let kn=class extends _0x3318cc{constructor(_0x37efa2,_0x2954c6,_0x174170,_0x54ce55){const _0xc92138=_0x247c5a;super(),this[_0xc92138(0x31e)]=_0x37efa2,this['_sheetSkeletonManagerService']=_0x2954c6,this[_0xc92138(0x2b1)]=_0x174170,this[_0xc92138(0x306)]=_0x54ce55,G(this,_0xc92138(0x313),new Set()),G(this,'_lastPointer',null),G(this,_0xc92138(0x291),null),this[_0xc92138(0x302)]();}[_0x247c5a(0x302)](){const _0x2a4188=_0x247c5a;this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x2a4188(0x2cc)](_0x1a5f96(this[_0x2a4188(0x40c)]),_0x51e718(_0x12868b=>{const _0x1996a5=_0x2a4188;if(_0x12868b){let _0x4bf54e=_0x12868b[_0x1996a5(0x229)];return _0x3e4240(this[_0x1996a5(0x2b1)][_0x1996a5(0x33b)](this['_context'][_0x1996a5(0x399)]),this[_0x1996a5(0x306)]['currentTheme$'])[_0x1996a5(0x2cc)](_0x328767(([_0x14c7af,_0x2ddb14])=>{let _0x183e4e=new Map();return _0x14c7af['forEach']((_0x490126,_0x45c88d)=>{const _0x10017b=_0x2e9b;if(_0x490126['sheetID']===_0x4bf54e){let _0x944228={..._0x490126};_0x944228[_0x10017b(0x3b1)]=this['_themeService'][_0x10017b(0x26a)](_0x490126['color']),_0x183e4e[_0x10017b(0x21f)](_0x45c88d,_0x944228);}}),{'skeleton':_0x12868b,'cursors':_0x183e4e};}));}return _0x2a2751({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x5bbacf,cursors:_0x3d6275})=>{const _0x5cca3d=_0x2a4188;this[_0x5cca3d(0x363)](),_0x5bbacf&&this['_updateCollabCursors'](_0x5bbacf,_0x3d6275);}),this[_0x2a4188(0x3a7)](this['_sheetSkeletonManagerService'][_0x2a4188(0x236)][_0x2a4188(0x2cc)](_0x1a5f96(this['dispose$']))['subscribe'](_0x30538c=>{const _0x586a7a=_0x2a4188;var _0x25d60e;if(_0x30538c==null)return;(_0x25d60e=this[_0x586a7a(0x291)])==null||_0x25d60e[_0x586a7a(0x1f6)](),this[_0x586a7a(0x291)]=null;let {skeleton:_0x50a801}=_0x30538c,{scene:_0x1c3bf9}=this['_context'];this[_0x586a7a(0x291)]=_0x1c3bf9[_0x586a7a(0x226)]['subscribeEvent'](_0x5bd974(_0x3bb3f2=>{const _0x5a1879=_0x586a7a;var _0x494e55,_0x2ad3c7;let {offsetX:_0x3c25d4,offsetY:_0x4d2afb}=_0x3bb3f2,{x:_0x3e3024,y:_0xa03481}=_0x1c3bf9[_0x5a1879(0x283)](_0x3adc07[_0x5a1879(0x3b8)]([_0x3c25d4,_0x4d2afb])),{scaleX:_0x64c65f,scaleY:_0x13c4e0}=_0x1c3bf9[_0x5a1879(0x3c7)](),_0x2216fc=_0x1c3bf9['getViewport'](_0x4bb69c[_0x5a1879(0x22a)]),_0x26f004=_0x1c3bf9[_0x5a1879(0x21e)](_0x3adc07['FromArray']([_0x3e3024,_0xa03481]),_0x2216fc),_0x4939a5=_0x50a801[_0x5a1879(0x26e)](_0x3c25d4,_0x4d2afb,_0x64c65f,_0x13c4e0,_0x26f004);(((_0x494e55=this['_lastPointer'])==null?void 0x0:_0x494e55[_0x5a1879(0x3e4)])!==_0x4939a5[_0x5a1879(0x3e4)]||((_0x2ad3c7=this['_lastPointer'])==null?void 0x0:_0x2ad3c7[_0x5a1879(0x25d)])!==_0x4939a5[_0x5a1879(0x25d)])&&this[_0x5a1879(0x313)][_0x5a1879(0x409)](_0x5dd453=>{const _0x51e5eb=_0x5a1879;_0x5dd453[_0x51e5eb(0x2e9)](_0x4939a5);});},0x64));})),this[_0x2a4188(0x3a7)](_0x265f18(()=>{const _0x138713=_0x2a4188;var _0x2e8bfa;(_0x2e8bfa=this[_0x138713(0x291)])==null||_0x2e8bfa[_0x138713(0x1f6)](),this[_0x138713(0x291)]=null;}));}[_0x247c5a(0x1ab)](_0x2d25cb,_0x4bb140){const _0x1db468=_0x247c5a;let _0x154aa4=this['_sheetSkeletonManagerService'][_0x1db468(0x355)]();if(!_0x154aa4)return;let _0x5d732c=this[_0x1db468(0x1fa)]();if(!_0x5d732c)return;this[_0x1db468(0x313)][_0x1db468(0x409)](_0xbaf683=>{_0xbaf683['makeDirty']();});let {scene:_0x1d0ed8}=_0x5d732c,_0x5b8077=An(Array[_0x1db468(0x287)](_0x4bb140[_0x1db468(0x35e)]()))[_0x1db468(0x1f3)](_0x4b1f92=>{const _0x438684=_0x1db468;let {color:_0x3936fd,range:_0x53c1b9,name:_0x1ec014,selection:_0x507243,sheetID:_0x1ea6a7}=_0x4b1f92,{startColumn:_0x4302ed,startRow:_0x3e3d60,endColumn:_0x4691f4,endRow:_0x2547e2}=_0x53c1b9,_0x1eb38d=_0x3bf5c4(_0x3e3d60,_0x4302ed,_0x1d0ed8,_0x154aa4),_0x1033dc=_0x3bf5c4(_0x2547e2,_0x4691f4,_0x1d0ed8,_0x154aa4),{columnHeaderHeightAndMarginTop:_0x4b2138}=_0x154aa4,{startX:_0x4c5f5e,startY:_0x3ed746}=_0x1eb38d,{endX:_0x54ea30,endY:_0x29d855}=_0x1033dc,_0x3c03b0=_0x54ea30-_0x4c5f5e,_0xe5a76f=_0x29d855-_0x3ed746;return new On(_0x1ec014,{'labelPosition':_0x3ed746-_0x4b2138>=0x14?_0x438684(0x2ac):_0x438684(0x381),'sheetID':_0x1ea6a7,'range':_0x53c1b9,'color':_0x3936fd,'name':_0x1ec014,'selection':_0x507243,'left':_0x4c5f5e,'top':_0x3ed746,'width':_0x3c03b0,'height':_0xe5a76f,'evented':!0x1,'zIndex':0x1389});});_0x1d0ed8[_0x1db468(0x33a)](_0x5b8077,0x1),this[_0x1db468(0x313)]=new Set(_0x5b8077);}[_0x247c5a(0x363)](){const _0x41d511=_0x247c5a;var _0xbc6d9f;(_0xbc6d9f=this[_0x41d511(0x313)])==null||_0xbc6d9f['forEach'](_0x4a1ea3=>_0x4a1ea3[_0x41d511(0x204)]());}['_getSheetObject'](){const _0x13f64e=_0x247c5a;return _0x12b1af(this[_0x13f64e(0x31e)][_0x13f64e(0x400)],this['_context']);}};kn=q([K(0x1,_0x3b8ccc(_0xfb8c7d)),K(0x2,_0x3b8ccc(Z)),K(0x3,_0x3b8ccc(_0xbb7758))],kn);function An(_0x148bcb){const _0x1cc211=_0x247c5a;let _0x486b01=new Map();return _0x148bcb[_0x1cc211(0x409)](_0x4fda54=>{const _0x536c64=_0x1cc211;if(_0x486b01[_0x536c64(0x2ed)](_0x4fda54[_0x536c64(0x275)])){let _0x18f781=_0x486b01['get'](_0x4fda54['selection']);_0x18f781[_0x536c64(0x261)]+=',\x20'+_0x4fda54['name'];}else _0x486b01[_0x536c64(0x21f)](_0x4fda54['selection'],_0x4fda54);}),Array[_0x1cc211(0x287)](_0x486b01[_0x1cc211(0x35e)]());}function jn(_0x57b943){const _0x4b9ad=_0x247c5a;return typeof _0x57b943==_0x4b9ad(0x300)&&!!_0x57b943;}function Mn(_0x4257f4){const _0x429398=_0x247c5a;return _0x4257f4['eventID']===_0x6181db['UPDATE_CURSOR']&&'data'in _0x4257f4&&jn(_0x4257f4[_0x429398(0x231)])&&typeof _0x4257f4[_0x429398(0x231)][_0x429398(0x2f2)]==_0x429398(0x3f9)&&typeof _0x4257f4['data']['selection']==_0x429398(0x3f9);}function Nn(_0x1d53f7){const _0x4658d2=_0x247c5a;return _0x1d53f7['eventID']===_0x6181db[_0x4658d2(0x3db)]&&_0x4658d2(0x231)in _0x1d53f7&&jn(_0x1d53f7[_0x4658d2(0x231)])&&typeof _0x1d53f7[_0x4658d2(0x231)][_0x4658d2(0x2f2)]=='string';}function Pn(_0x4fd3b2,_0x33f8d9){const _0x5adbc5=_0x247c5a;let _0x529335;try{_0x529335=JSON[_0x5adbc5(0x3f1)](_0x4fd3b2);}catch{return null;}if(!jn(_0x529335)||typeof _0x529335[_0x5adbc5(0x20b)]!=_0x5adbc5(0x3f9)||typeof _0x529335['unitId']!='string'||typeof _0x529335[_0x5adbc5(0x326)]!=_0x5adbc5(0x3f9))return null;let _0xf420e9=typeof _0x529335[_0x5adbc5(0x2a1)]==_0x5adbc5(0x3fd)?_0x529335[_0x5adbc5(0x2a1)]:_0x33f8d9;if(_0xf420e9==null)return null;let _0x1de210=jn(_0x529335[_0x5adbc5(0x377)])&&typeof _0x529335[_0x5adbc5(0x377)]['x']=='number'&&Number['isFinite'](_0x529335[_0x5adbc5(0x377)]['x'])&&typeof _0x529335['pointer']['y']==_0x5adbc5(0x3fd)&&Number[_0x5adbc5(0x36e)](_0x529335[_0x5adbc5(0x377)]['y'])?{'x':_0x529335[_0x5adbc5(0x377)]['x'],'y':_0x529335[_0x5adbc5(0x377)]['y']}:null;return{'kind':_0x529335[_0x5adbc5(0x20b)],'unitType':_0xf420e9,'unitId':_0x529335[_0x5adbc5(0x399)],'subUnitId':_0x529335[_0x5adbc5(0x326)],'selectedIds':Array['isArray'](_0x529335[_0x5adbc5(0x238)])?_0x529335[_0x5adbc5(0x238)][_0x5adbc5(0x351)](_0x4a2c00=>typeof _0x4a2c00==_0x5adbc5(0x3f9)):[],'focusedId':typeof _0x529335[_0x5adbc5(0x2a5)]=='string'?_0x529335[_0x5adbc5(0x2a5)]:null,'pointer':_0x1de210};}function Fn(_0x589ea1,_0x45d0b2,_0x1856f5){const _0x3cc074=_0x247c5a;return{'kind':_0x45d0b2,'unitType':_0x589ea1,'unitId':_0x1856f5[_0x3cc074(0x399)],'subUnitId':_0x1856f5[_0x3cc074(0x326)],'selectedIds':Array['from'](_0x1856f5[_0x3cc074(0x238)]),'focusedId':_0x1856f5[_0x3cc074(0x2a5)],'pointer':_0x1856f5[_0x3cc074(0x377)]?{..._0x1856f5[_0x3cc074(0x377)]}:null};}let In=class extends _0x3318cc{constructor(_0x198409,_0x1797e2,_0x7f942c,_0xb0bf13,_0x24e30f,_0x2c5d25){const _0x538a66=_0x247c5a;super(),this['unitId']=_0x198409,this[_0x538a66(0x29d)]=_0x1797e2,this[_0x538a66(0x1cc)]=_0x7f942c,this[_0x538a66(0x246)]=_0xb0bf13,this[_0x538a66(0x3f7)]=_0x24e30f,this[_0x538a66(0x3fb)]=_0x2c5d25,G(this,_0x538a66(0x412),!0x1),G(this,_0x538a66(0x2b7),!0x1);}get[_0x247c5a(0x2a1)](){const _0x32f2fa=_0x247c5a;return this['_adapter'][_0x32f2fa(0x2a1)];}[_0x247c5a(0x204)](){const _0xfd9dee=_0x247c5a;this[_0xfd9dee(0x24c)](),super[_0xfd9dee(0x204)]();}[_0x247c5a(0x284)](){const _0x2272eb=_0x247c5a;this[_0x2272eb(0x2b7)]||(this['_initialized']=!0x0,this[_0x2272eb(0x29d)][_0x2272eb(0x304)][_0x2272eb(0x2cc)](_0x3fa56b(this[_0x2272eb(0x40c)]))[_0x2272eb(0x2d5)](_0xffd9a3=>{const _0x113d6c=_0x2272eb;if(_0xffd9a3===_0x511a18[_0x113d6c(0x410)]){this['_online']=!0x0;let _0x109a62=this[_0x113d6c(0x1cc)][_0x113d6c(0x343)](this[_0x113d6c(0x399)]);_0x109a62&&this[_0x113d6c(0x3c1)](_0x109a62);return;}this[_0x113d6c(0x412)]=!0x1,this['_clearRemotePresences']();}),this[_0x2272eb(0x29d)]['event$'][_0x2272eb(0x2cc)](_0x3fa56b(this[_0x2272eb(0x40c)]))[_0x2272eb(0x2d5)](_0x354815=>{const _0xee9632=_0x2272eb;Mn(_0x354815)?this[_0xee9632(0x2a4)](_0x354815):Nn(_0x354815)&&this[_0xee9632(0x38b)](_0x354815[_0xee9632(0x231)][_0xee9632(0x2f2)]);}),this[_0x2272eb(0x1cc)][_0x2272eb(0x369)][_0x2272eb(0x2cc)](_0x48c179(_0x5998a0=>this['_online']&&_0x5998a0[_0x2272eb(0x399)]===this['unitId']),_0x14b9f0(_0x2cf5ea=>_0x22ec2d(_0x2cf5ea[_0x2272eb(0x346)]),{'leading':!0x0,'trailing':!0x0}),_0x3fa56b(this[_0x2272eb(0x40c)]))['subscribe'](_0x1d73e1=>this[_0x2272eb(0x3c1)](_0x1d73e1)));}[_0x247c5a(0x3c1)](_0x1301b1){const _0x449225=_0x247c5a;let _0x514a2f=this[_0x449225(0x29d)][_0x449225(0x360)]();if(!_0x514a2f||!this[_0x449225(0x412)])return;let _0x16519a={'eventID':_0x6181db['UPDATE_CURSOR'],'data':{'unitID':this[_0x449225(0x399)],'memberID':_0x514a2f,'selection':JSON[_0x449225(0x257)](Fn(this[_0x449225(0x2a1)],this[_0x449225(0x1cc)]['presenceKind'],_0x1301b1))}};this[_0x449225(0x29d)][_0x449225(0x3e1)](_0x16519a,this[_0x449225(0x399)])[_0x449225(0x1ac)](()=>void 0x0);}[_0x247c5a(0x2a4)](_0x1b837e){const _0xe0fea8=_0x247c5a;let {memberID:_0x51ca45,selection:_0x4c3c06}=_0x1b837e[_0xe0fea8(0x231)];if(_0x51ca45===this['_session']['getMemberID']())return;let _0x3072ce=Pn(_0x4c3c06,this[_0xe0fea8(0x2a1)]);if(!_0x3072ce||_0x3072ce['kind']!==this['_adapter'][_0xe0fea8(0x296)]||_0x3072ce[_0xe0fea8(0x2a1)]!==this['unitType']||_0x3072ce['unitId']!==this[_0xe0fea8(0x399)])return;let _0x2fd95b=this['_memberService'][_0xe0fea8(0x265)](this[_0xe0fea8(0x399)],_0x51ca45),_0x19ca14={'unitId':_0x3072ce[_0xe0fea8(0x399)],'subUnitId':_0x3072ce[_0xe0fea8(0x326)],'selectedIds':_0x3072ce[_0xe0fea8(0x238)],'focusedId':_0x3072ce[_0xe0fea8(0x2a5)],'pointer':_0x3072ce[_0xe0fea8(0x377)],'memberId':_0x51ca45,'color':this[_0xe0fea8(0x246)][_0xe0fea8(0x1d4)](_0x51ca45),'name':(_0x2fd95b==null?void 0x0:_0x2fd95b[_0xe0fea8(0x261)])??_0x51ca45};this[_0xe0fea8(0x3fb)]['executeCommand'](Y['id'],{'unitType':this[_0xe0fea8(0x2a1)],'update':{'type':'set','state':_0x19ca14}})[_0xe0fea8(0x1ac)](()=>void 0x0);}[_0x247c5a(0x38b)](_0x2f0cee){const _0x4f4ad2=_0x247c5a;this[_0x4f4ad2(0x3fb)]['executeCommand'](Y['id'],{'unitType':this[_0x4f4ad2(0x2a1)],'update':{'type':_0x4f4ad2(0x3bc),'unitId':this[_0x4f4ad2(0x399)],'memberId':_0x2f0cee}})[_0x4f4ad2(0x1ac)](()=>void 0x0);}['_clearRemotePresences'](){const _0x22daba=_0x247c5a;this[_0x22daba(0x3fb)][_0x22daba(0x3f4)](Y['id'],{'unitType':this[_0x22daba(0x2a1)],'update':{'type':_0x22daba(0x3cd),'unitId':this['unitId']}})['catch'](()=>void 0x0);}};In=q([K(0x3,_0x3b8ccc(mn)),K(0x4,_0x3b8ccc(_0x405f4a)),K(0x5,_0x3b8ccc(_0x3fa174))],In);let Q=class extends _0x3318cc{constructor(_0x30dc3d,_0x14245f,_0x1ea05e,_0x463684){const _0xfbd8cc=_0x247c5a;super(),this[_0xfbd8cc(0x390)]=_0x30dc3d,this[_0xfbd8cc(0x325)]=_0x14245f,this[_0xfbd8cc(0x337)]=_0x1ea05e,this['_adapterRegistry']=_0x463684,G(this,_0xfbd8cc(0x277),!0x1),G(this,_0xfbd8cc(0x1c7),new Map()),G(this,_0xfbd8cc(0x338),new Map()),G(this,'_adapterDisposables',new Map()),this[_0xfbd8cc(0x302)]();}[_0x247c5a(0x204)](){const _0x450f4e=_0x247c5a;this[_0x450f4e(0x277)]=!0x0,this['_adapterDisposables']['forEach'](_0x2735d9=>_0x2735d9['dispose']()),this[_0x450f4e(0x27d)][_0x450f4e(0x3cd)](),this[_0x450f4e(0x1c7)]['forEach'](_0x3120b0=>_0x3120b0[_0x450f4e(0x204)]()),this[_0x450f4e(0x1c7)]['clear'](),this[_0x450f4e(0x338)]['clear'](),super[_0x450f4e(0x204)]();}[_0x247c5a(0x302)](){const _0x474253=_0x247c5a;this['_adapterRegistry'][_0x474253(0x1d1)][_0x474253(0x2cc)](_0x3fa56b(this[_0x474253(0x40c)]))[_0x474253(0x2d5)](_0x444450=>this[_0x474253(0x3c9)](_0x444450));}[_0x247c5a(0x3c9)](_0x5e7b95){const _0x5ef8af=_0x247c5a;let _0x1e5a93=new Set(_0x5e7b95[_0x5ef8af(0x1f3)](_0x5ec4b3=>_0x5ec4b3[_0x5ef8af(0x2a1)]));this['_adapterDisposables'][_0x5ef8af(0x409)]((_0x49145a,_0x46adf9)=>{const _0x26476b=_0x5ef8af;_0x1e5a93[_0x26476b(0x2ed)](_0x46adf9)||(_0x49145a[_0x26476b(0x204)](),this[_0x26476b(0x27d)][_0x26476b(0x2ea)](_0x46adf9),this[_0x26476b(0x35c)](_0x46adf9));}),_0x5e7b95[_0x5ef8af(0x409)](_0x444545=>{const _0x51e2bf=_0x5ef8af;this[_0x51e2bf(0x27d)][_0x51e2bf(0x2ed)](_0x444545[_0x51e2bf(0x2a1)])||this[_0x51e2bf(0x28e)](_0x444545);});}[_0x247c5a(0x28e)](_0x4416db){const _0x4ee753=_0x247c5a;let _0x3ec667=new _0x469794();this[_0x4ee753(0x27d)][_0x4ee753(0x21f)](_0x4416db[_0x4ee753(0x2a1)],_0x3ec667),_0x3ec667[_0x4ee753(0x23b)](_0x4416db['activate']()),this['_univerInstanceService'][_0x4ee753(0x250)](_0x4416db[_0x4ee753(0x2a1)])[_0x4ee753(0x409)](_0x2177da=>this[_0x4ee753(0x398)](_0x2177da[_0x4ee753(0x308)](),_0x4416db)[_0x4ee753(0x1ac)](()=>void 0x0));let _0x2d5ffe=this['_univerInstanceService'][_0x4ee753(0x2a0)](_0x4416db['unitType'])[_0x4ee753(0x2d5)](({unit:_0x415d2a})=>this[_0x4ee753(0x398)](_0x415d2a[_0x4ee753(0x308)](),_0x4416db)['catch'](()=>void 0x0));_0x3ec667[_0x4ee753(0x23b)](_0x265f18(()=>_0x2d5ffe[_0x4ee753(0x1f6)]()));let _0x2021e9=this[_0x4ee753(0x390)][_0x4ee753(0x251)](_0x4416db[_0x4ee753(0x2a1)])['subscribe'](_0x44449a=>this[_0x4ee753(0x371)](_0x44449a[_0x4ee753(0x308)]()));_0x3ec667['add'](_0x265f18(()=>_0x2021e9[_0x4ee753(0x1f6)]()));}async[_0x247c5a(0x398)](_0x33c861,_0x4b519c){const _0x213d19=_0x247c5a;if(this[_0x213d19(0x1c7)][_0x213d19(0x2ed)](_0x33c861)||this[_0x213d19(0x338)]['has'](_0x33c861))return;let _0x3c9771={};this[_0x213d19(0x338)][_0x213d19(0x21f)](_0x33c861,_0x3c9771);let _0x2879a6=await this[_0x213d19(0x337)]['requireSession'](_0x33c861)[_0x213d19(0x1ac)](_0x364109=>{const _0x12dc3d=_0x213d19;throw this['_pendingEntities']['get'](_0x33c861)===_0x3c9771&&this[_0x12dc3d(0x338)][_0x12dc3d(0x2ea)](_0x33c861),_0x364109;});if(this[_0x213d19(0x277)]||this[_0x213d19(0x338)][_0x213d19(0x211)](_0x33c861)!==_0x3c9771||this[_0x213d19(0x26d)][_0x213d19(0x211)](_0x4b519c['unitType'])!==_0x4b519c){this['_pendingEntities'][_0x213d19(0x211)](_0x33c861)===_0x3c9771&&this[_0x213d19(0x338)]['delete'](_0x33c861);return;}let _0x25a02d=this[_0x213d19(0x325)][_0x213d19(0x21a)](In,_0x33c861,_0x2879a6,_0x4b519c);_0x25a02d['init'](),this[_0x213d19(0x338)][_0x213d19(0x2ea)](_0x33c861),this[_0x213d19(0x1c7)][_0x213d19(0x21f)](_0x33c861,_0x25a02d);}[_0x247c5a(0x371)](_0x591128){const _0x1f41f8=_0x247c5a;this[_0x1f41f8(0x338)][_0x1f41f8(0x2ea)](_0x591128);let _0x2a3914=this[_0x1f41f8(0x1c7)][_0x1f41f8(0x211)](_0x591128);_0x2a3914&&(_0x2a3914['dispose'](),this[_0x1f41f8(0x1c7)][_0x1f41f8(0x2ea)](_0x591128));}[_0x247c5a(0x35c)](_0x32e61){const _0x280af7=_0x247c5a;this['_univerInstanceService']['getAllUnitsForType'](_0x32e61)[_0x280af7(0x409)](_0x1ef457=>this[_0x280af7(0x338)]['delete'](_0x1ef457[_0x280af7(0x308)]())),Array[_0x280af7(0x287)](this[_0x280af7(0x1c7)]['entries']())[_0x280af7(0x409)](([_0x11cffc,_0x43aad4])=>{const _0x25992d=_0x280af7;_0x43aad4[_0x25992d(0x2a1)]===_0x32e61&&this[_0x25992d(0x371)](_0x11cffc);});}};Q=q([K(0x0,_0x3fd3c3),K(0x1,_0x3b8ccc(_0x5c9bca)),K(0x2,_0x3b8ccc(_0xed7c81)),K(0x3,_0x3b8ccc(_0x5a5714))],Q);let Ln=class extends _0x50ca1f{constructor(_0x9fef84,_0xee2880,_0x151c6e,_0x19db78,_0x43c8cb,_0x5f410a){const _0x9a5b58=_0x247c5a;super(),this[_0x9a5b58(0x239)]=_0x9fef84,this[_0x9a5b58(0x2e7)]=_0xee2880,this['_collaborationUIEventService']=_0x151c6e,this[_0x9a5b58(0x1b7)]=_0x19db78,this['_notificationService']=_0x43c8cb,this['_localeService']=_0x5f410a,G(this,_0x9a5b58(0x25e),null),G(this,_0x9a5b58(0x1b5),new Set()),this[_0x9a5b58(0x1ce)](),this[_0x9a5b58(0x2de)]();}[_0x247c5a(0x204)](){const _0x41f367=_0x247c5a;var _0x3b165e;(_0x3b165e=this['_conflictNotification'])==null||_0x3b165e[_0x41f367(0x204)](),this[_0x41f367(0x25e)]=null,super[_0x41f367(0x204)]();}[_0x247c5a(0x1ce)](){const _0x1f4e2f=_0x247c5a;this[_0x1f4e2f(0x3a7)](this['_beforeCloseService'][_0x1f4e2f(0x1f1)](()=>{const _0x2e66ad=_0x1f4e2f;if(this['_localCacheService']['saveTaskMap']['size'])return this[_0x2e66ad(0x3e6)]['t']('collaboration-client-ui.collaboration.offline-data-not-saved');}));}[_0x247c5a(0x2de)](){const _0x3524eb=_0x247c5a;this[_0x3524eb(0x3a7)](this[_0x3524eb(0x3f5)]['event$'][_0x3524eb(0x2d5)](_0x5b2189=>{const _0x47e23c=_0x3524eb;_0x5b2189['id']===_0x2b0b3d[_0x47e23c(0x2c6)]&&this['_messageService']['show']({'type':_0x2f977e[_0x47e23c(0x1ef)],'content':this[_0x47e23c(0x3e6)]['t']('collaboration-client-ui.collaboration.single-unit.warning')}),_0x5b2189['id']===_0x2b0b3d[_0x47e23c(0x223)]&&this[_0x47e23c(0x1b7)][_0x47e23c(0x30a)]({'type':_0x2f977e['Warning'],'content':this[_0x47e23c(0x3e6)]['t'](_0x47e23c(0x3cb))}),_0x5b2189['id']===_0x2b0b3d['PERMISSION_DENIED']&&this[_0x47e23c(0x276)]({'title':this['_localeService']['t'](_0x47e23c(0x316)),'content':this['_localeService']['t']('collaboration-client-ui.permission.content'),'type':_0x47e23c(0x3f2),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'action':{'label':this['_localeService']['t'](_0x47e23c(0x1c4)),'onClick':_0xd51d7b=>{const _0x39e9df=_0x47e23c;_0xd51d7b[_0x39e9df(0x2dc)](),window[_0x39e9df(0x274)][_0x39e9df(0x26c)]();}}}),_0x5b2189['id']===_0x2b0b3d['CONFLICT_PROCESSING']&&this[_0x47e23c(0x1f9)](),_0x5b2189['id']===_0x2b0b3d[_0x47e23c(0x309)]&&_0x5b2189[_0x47e23c(0x29c)]&&this['_showConflictCacheClearFailedNotification'](_0x5b2189[_0x47e23c(0x29c)]),_0x5b2189['id']===_0x2b0b3d['CONFLICT']&&this[_0x47e23c(0x276)]({'title':this[_0x47e23c(0x3e6)]['t'](_0x47e23c(0x3de)),'content':this[_0x47e23c(0x3e6)]['t']('collaboration-client-ui.conflict.content'),'type':'error','duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'action':{'label':this[_0x47e23c(0x3e6)]['t']('collaboration-client-ui.snapshotLoading.refresh'),'onClick':_0x99abef=>{const _0x4bcad8=_0x47e23c;_0x99abef[_0x4bcad8(0x2dc)](),window['location'][_0x4bcad8(0x26c)]();}}}),_0x5b2189['id']===_0x2b0b3d[_0x47e23c(0x24a)]&&this[_0x47e23c(0x1b7)][_0x47e23c(0x30a)]({'type':_0x2f977e['Warning'],'content':this['_localeService']['t'](_0x5b2189['data']||'')}),_0x5b2189['id']===_0x2b0b3d[_0x47e23c(0x2fd)]&&this[_0x47e23c(0x1b7)]['show']({'type':_0x2f977e[_0x47e23c(0x1ef)],'content':this[_0x47e23c(0x3e6)]['t'](_0x47e23c(0x3b0))}),_0x5b2189['id']===_0x2b0b3d[_0x47e23c(0x333)]&&this[_0x47e23c(0x1b7)][_0x47e23c(0x30a)]({'type':_0x2f977e[_0x47e23c(0x3d2)],'content':this['_localeService']['t'](_0x47e23c(0x3ea))}),_0x5b2189['id']===_0x2b0b3d[_0x47e23c(0x404)]&&this[_0x47e23c(0x1b7)]['show']({'type':_0x2f977e[_0x47e23c(0x3d2)],'content':this[_0x47e23c(0x3e6)]['t'](_0x47e23c(0x206))});}));}['_showConflictProcessingNotification'](){const _0x473cf5=_0x247c5a;this['_replaceConflictNotification']({'title':this[_0x473cf5(0x3e6)]['t'](_0x473cf5(0x3de)),'content':this[_0x473cf5(0x3e6)]['t'](_0x473cf5(0x2b3)),'type':_0x473cf5(0x38d),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1});}['_showConflictCacheClearFailedNotification'](_0x52411d){const _0x548085=_0x247c5a;this[_0x548085(0x276)]({'title':this[_0x548085(0x3e6)]['t']('collaboration-client-ui.conflict.title'),'content':this[_0x548085(0x3e6)]['t'](_0x548085(0x295)),'type':'error','duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'action':{'label':this['_localeService']['t'](_0x548085(0x2eb)),'onClick':_0x337102=>{const _0x207b5e=_0x548085;_0x337102[_0x207b5e(0x2dc)](),this['_retryConflictCacheClear'](_0x52411d);}}});}[_0x247c5a(0x297)](_0x5b1ed2){const _0x2a90f3=_0x247c5a;this['_retryingConflictCacheUnitIDs']['has'](_0x5b1ed2)||(this[_0x2a90f3(0x1b5)][_0x2a90f3(0x23b)](_0x5b1ed2),this[_0x2a90f3(0x1f9)](),this[_0x2a90f3(0x2e7)][_0x2a90f3(0x22c)](_0x5b1ed2)['then'](()=>window[_0x2a90f3(0x274)]['reload']())['catch'](()=>this[_0x2a90f3(0x33f)](_0x5b1ed2))[_0x2a90f3(0x2a2)](()=>this[_0x2a90f3(0x1b5)][_0x2a90f3(0x2ea)](_0x5b1ed2)));}['_replaceConflictNotification'](_0x5cdc90){const _0xb2b6dd=_0x247c5a;var _0x26c52d;(_0x26c52d=this['_conflictNotification'])==null||_0x26c52d['dispose'](),this[_0xb2b6dd(0x25e)]=this['_notificationService'][_0xb2b6dd(0x30a)](_0x5cdc90);}};Ln=q([K(0x0,_0x1b0f9c),K(0x1,_0x1974ac),K(0x2,_0x3b8ccc(_0x1327e3)),K(0x3,_0x4a0381),K(0x4,_0x502777),K(0x5,_0x3b8ccc(_0x5a18da))],Ln);const Rn=_0x44855e(_0x247c5a(0x32f));let zn=class extends _0x3318cc{constructor(_0xf749be,_0xd86437,_0x45e5da,_0x255798){const _0x2e75e6=_0x247c5a;super(),this[_0x2e75e6(0x1b6)]=_0xf749be,this[_0x2e75e6(0x2be)]=_0xd86437,this[_0x2e75e6(0x3fb)]=_0x45e5da,this[_0x2e75e6(0x3be)]=_0x255798,this[_0x2e75e6(0x302)]()['catch'](_0x27c6b0=>this[_0x2e75e6(0x2be)][_0x2e75e6(0x3f2)](_0x2e75e6(0x2ff),_0x27c6b0));}async[_0x247c5a(0x302)](){const _0x402715=_0x247c5a;let _0x55d4a9=this[_0x402715(0x1b6)][_0x402715(0x20d)](_0x402715(0x400)),_0x20a4b3=this['_urlService'][_0x402715(0x20d)](_0x402715(0x2d8)),_0x384fd3=this[_0x402715(0x1b6)][_0x402715(0x20d)]('subunit');if(!_0x55d4a9||!_0x20a4b3){this[_0x402715(0x2be)][_0x402715(0x281)](_0x402715(0x2ff),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}let _0x1386c9=await this[_0x402715(0x3be)]['loadUnit'](_0x55d4a9,Number(_0x20a4b3),_0x384fd3);this['_disposed']||_0x1386c9&&_0x1386c9 instanceof _0x16e1e6&&await this[_0x402715(0x1e6)](_0x1386c9);}async['_setupSubUnitSync'](_0x2767f8){const _0x5f5d74=_0x247c5a;await this['_updateSubUnitFromURLParams'](_0x2767f8,!0x0),!this[_0x5f5d74(0x408)]&&(_0x2767f8[_0x5f5d74(0x317)][_0x5f5d74(0x2cc)](_0x3fa56b(this[_0x5f5d74(0x40c)]))[_0x5f5d74(0x2d5)](_0x43914a=>{const _0x435c05=_0x5f5d74;_0x43914a&&this[_0x435c05(0x34b)](_0x43914a);}),this[_0x5f5d74(0x1b6)][_0x5f5d74(0x210)][_0x5f5d74(0x2cc)](_0x3fa56b(this[_0x5f5d74(0x40c)]))[_0x5f5d74(0x2d5)](()=>{const _0x43c1f0=_0x5f5d74;this['_updateSubUnitFromURLParams'](_0x2767f8)[_0x43c1f0(0x1ac)](_0x48936f=>this[_0x43c1f0(0x2be)][_0x43c1f0(0x3f2)](_0x43c1f0(0x2ff),_0x48936f));}));}['_updateURLWithCurrentState'](_0x352d84,_0x7c1313=!0x1){const _0x4443b2=_0x247c5a;let _0x354aa8=this[_0x4443b2(0x1b6)]['getParam']('subunit');_0x352d84[_0x4443b2(0x411)]()!==_0x354aa8&&this[_0x4443b2(0x1b6)][_0x4443b2(0x3b4)](_0x4443b2(0x3ff),_0x352d84[_0x4443b2(0x411)](),_0x7c1313);}async[_0x247c5a(0x3e9)](_0x83be18,_0x4fd00a=!0x1){const _0x4f7b90=_0x247c5a;var _0x1eb76e;let _0x5190ca=this['_urlService']['getParam'](_0x4f7b90(0x3ff));if(!_0x5190ca||!_0x83be18[_0x4f7b90(0x294)](_0x5190ca)){let _0x31fc7a=_0x83be18[_0x4f7b90(0x1c6)]()[0x0],_0x2a4074=_0x83be18[_0x4f7b90(0x294)](_0x31fc7a);if(!_0x2a4074||(this['_updateURLWithCurrentState'](_0x2a4074,!0x0),this[_0x4f7b90(0x408)]))return;await this['_commandService'][_0x4f7b90(0x3f4)](_0x211d66['id'],{'unitId':_0x83be18[_0x4f7b90(0x308)](),'subUnitId':_0x31fc7a});return;}(_0x4fd00a||((_0x1eb76e=_0x83be18[_0x4f7b90(0x268)]())==null?void 0x0:_0x1eb76e[_0x4f7b90(0x411)]())!==_0x5190ca)&&await this[_0x4f7b90(0x3fb)][_0x4f7b90(0x3f4)](_0x211d66['id'],{'unitId':_0x83be18[_0x4f7b90(0x308)](),'subUnitId':_0x5190ca});}};zn=q([K(0x0,Rn),K(0x1,_0x583b3f),K(0x2,_0x3fa174),K(0x3,_0x3b8ccc(_0x51e8bf))],zn);let Bn=class{constructor(_0x58d822,_0x5d74ba){const _0x358355=_0x247c5a;this['_transformService']=_0x58d822,this[_0x358355(0x37f)]=_0x5d74ba;}[_0x247c5a(0x3ec)](_0x3be5c6){const _0x52dee4=_0x247c5a;this['_transformUndoRedoStack'](_0x3be5c6),this[_0x52dee4(0x314)](_0x3be5c6);}[_0x247c5a(0x31c)](_0x127c1d){const _0x428b21=_0x247c5a;let {unitID:_0x1e966b}=_0x127c1d,{redoCache:_0x236037}=this[_0x428b21(0x37f)]['getRenderUnitById'](_0x1e966b)[_0x428b21(0x267)](_0x5beedc)[_0x428b21(0x3b6)]();if(_0x236037[_0x428b21(0x23e)]===0x0)return _0x127c1d;let _0x4bb135=_0x55db4d['deepClone'](_0x127c1d['mutations'][0x0]);for(let _0x3a8736=0x0;_0x3a8736<_0x236037[_0x428b21(0x23e)];_0x3a8736++){let _0x47d94e={'id':_0x428b21(0x242),'params':{..._0x236037[_0x3a8736]}},_0x5b1a3a=this[_0x428b21(0x30d)][_0x428b21(0x3ed)](_0x4bb135,_0x47d94e,!0x1);if(_0x2be4e3(_0x5b1a3a))throw _0x5b1a3a[_0x428b21(0x3f2)];_0x4bb135=_0x5b1a3a[_0x428b21(0x2c0)];}return{..._0x55db4d[_0x428b21(0x2e6)](_0x127c1d),'mutations':[_0x4bb135]};}['_transformUndoRedoStack'](_0x2a406e){const _0xafeac6=_0x247c5a;let {unitID:_0x1efc2a}=_0x2a406e,_0x4ec9f2=this['_renderManagerService'][_0xafeac6(0x1a9)](_0x1efc2a)[_0xafeac6(0x267)](_0x5beedc),{undoCache:_0x11b12c,redoCache:_0x2fb9af}=_0x4ec9f2[_0xafeac6(0x3b6)]();if(_0x11b12c[_0xafeac6(0x23e)]===0x0||_0x2fb9af[_0xafeac6(0x23e)]===0x0)return;let _0x498e59=[],_0x4f187c=[],_0x4cf8c3=_0x55db4d[_0xafeac6(0x2e6)](_0x2a406e['mutations'][0x0]),_0x38c5c3=_0x55db4d[_0xafeac6(0x2e6)](_0x2a406e['mutations'][0x0]);for(let _0x47cedf=_0x11b12c['length']-0x1;_0x47cedf>=0x0;_0x47cedf--){let _0x554aaa={'id':'doc.mutation.rich-text-editing','params':{..._0x11b12c[_0x47cedf]}},_0x3df78e={'id':_0xafeac6(0x242),'params':{..._0x2fb9af[_0x47cedf]}},_0x13c869=this[_0xafeac6(0x30d)][_0xafeac6(0x3ed)](_0x4cf8c3,_0x554aaa,!0x1),_0x335b86=this[_0xafeac6(0x30d)]['transformMutation'](_0x38c5c3,_0x3df78e,!0x1);if(_0x2be4e3(_0x13c869))throw _0x13c869[_0xafeac6(0x3f2)];if(_0x2be4e3(_0x335b86))throw _0x335b86[_0xafeac6(0x3f2)];_0x498e59['unshift'](_0x13c869[_0xafeac6(0x24b)][_0xafeac6(0x37c)]),_0x4f187c[_0xafeac6(0x38e)](_0x335b86['m2Prime'][_0xafeac6(0x37c)]),_0x4cf8c3=_0x13c869['m1Prime'],_0x38c5c3=_0x335b86[_0xafeac6(0x2c0)];}_0x4ec9f2[_0xafeac6(0x273)]({'undoCache':_0x498e59,'redoCache':_0x4f187c});}[_0x247c5a(0x314)](_0x1b0999){const _0x21fabc=_0x247c5a;let {unitID:_0x24f9da}=_0x1b0999,_0x46103b=this[_0x21fabc(0x37f)][_0x21fabc(0x1a9)](_0x24f9da)['with'](_0x5beedc),_0x50af7b=_0x46103b['getActiveRange']();if(_0x50af7b==null)return;let _0x5e3251=[{'id':_0x21fabc(0x242),'params':{'unitId':_0x1b0999[_0x21fabc(0x29c)],'actions':null,'textRanges':[_0x50af7b]}}],_0x2b9118=this[_0x21fabc(0x30d)][_0x21fabc(0x213)](_0x1b0999,_0x5e3251);if(!_0x10ddcf(_0x2b9118))throw _0x2b9118[_0x21fabc(0x3f2)];let _0x1f220f=_0x2b9118[_0x21fabc(0x24b)][0x0][_0x21fabc(0x37c)]['textRanges'];Array[_0x21fabc(0x3ca)](_0x1f220f)&&_0x1f220f[_0x21fabc(0x23e)]&&_0x46103b[_0x21fabc(0x272)](_0x1f220f[0x0]);}};function _0x29c9(){const _0x2af8a0=['find','columnGroupId','collabCursorState$','_cursors','_transformPreviousActiveRange','OFFLINE','collaboration-client-ui.permission.title','activeSheet$','_registerDependencies','push','resize','_initDependencies','transformRemoteChangeset','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','_context','_drawTextRange','_registerPresenceStatusComponent','startColumn','replace','getCurrentRevOfUnit','registerComponent','_injector','subUnitId','wsSessionTicketUrl','startOffset','getSkeleton','executionId','backupOfflineData','_textBubble','_collaborationSessionService','highlight','uni.network.url-service','[Unhandled\x20Rejection]:\x20','call','557928vMSmFr','SOCKET_FAILED','getOwnPropertyDescriptor','addClipboardHook','segmentPage','_collabSessionService','_pendingEntities','_color','addObjects','getCollabCursors$','8yuEvFo','getMergeData','moveTo','_showConflictCacheClearFailedNotification','collaboration-client-ui.config','_getLighterColor','@univerjs-pro/collaboration-client-ui','getLocalPresence','tableSource','fill','shareInterval','_initPresenceStatusComponents','setOffsetY','setItem','min','_updateURLWithCurrentState','replaceState','_hovered','collab-text-range-','registerRefRange','_assignedColors','filter','Unknown\x20user','_blinkTimer','registerRenderModule','getCurrentSkeleton','timeoutState$','_scheduleHeartbeat','text','_messageIds','_hideTimer','enableDocumentCollaborationUI','_disposeEntitiesForType','SYNCED','values','InsertRangeMoveDownCommandId','getMemberID','options','default','_removeCollabCursors','mutations','_shapes','spin','getCurrentUnitOfType','_initWindowErrorListener','localPresence$','_unitStatus','lineno','_updateMessage','[RemoteUniscriptService]:\x20no\x20focused\x20unit','isFinite','complete','sessionTicket','_disposeEntity','getDocRanges','black','drawWith','width','_send','pointer','_docTransformStateCacheService','getValue','getRangePointData','collaboration-client-ui.snapshotLoading.timeout','params','eventID','application/json','_renderManagerService','red.300','bottom','event$','unload','bold\x2013px\x20Arial,\x20sans-serif','_imageIoService','_blockProgressWatches','_onRefRangeChange','undoState','toISOString','univer-inline-flex\x20univer-items-center\x20univer-justify-center','_removeRemotePresence','exhaustSavingTask','loading','unshift','_document','_univerInstanceService','textRanges','_initStatusComponent','TEXT','state','setInterval','onRendered','tableId','_startEntity','unitId','getCurrentSelections','collaboration-client-ui.collabStatus.conflict','getUnitStatus$','getItem','InsertRowCommandId','replaceSelectionInfoWithoutRefresh','updateOfflineData','_docStateChangeManagerService','transformStateCache','_config','_handleHeartbeatEvent','_watchBlockProgress','getSelectionInfo','disposeWithMe','_toggleOffline','ranges','source','timeoutId','_isBlinkVisible','_initResize','univer-fixed\x20univer-left-1/2\x20univer-top-4\x20univer-z-[1001]\x20univer-flex\x20univer-max-w-[calc(100vw-32px)]\x20-univer-translate-x-1/2\x20univer-items-center\x20univer-gap-2\x20univer-rounded-lg\x20univer-bg-gray-0\x20univer-px-3\x20univer-py-2\x20univer-text-sm\x20univer-text-gray-900\x20univer-shadow-lg\x20dark:!univer-bg-gray-700\x20dark:!univer-text-gray-0','slice','collaboration-client-ui.session.will-retry','color','UNIVER_DOC','currentTheme$','setParam','hide','getUndoRedoMutationParamsCache','_cachedData','FromArray','dark:focus:!univer-ring-offset-gray-800','716597AcidHZ','snapshot-loading-timeout','remove','UNIVER_SHEET','_dataLoaderService','collab-text-anchor-','labelHorizontalPosition','_sendLocalPresence','_docSyncEditingCollabCursorService','all','version','_eventUnsubscribe','evenodd','getAncestorScale','univer-text-orange-500','_syncAdapters','isArray','collaboration-client-ui.collaboration.closeRoom','function','clear','onCommandExecuted','_collabCursorState$','removeItem','_stopBlinking','Error','LOADING_BLOCKS','Failed','_isVisibleUnit','2896nGVAYD','_heartbeatTimer','asObservable','origin','_onCursorDelete','USERS_LEAVE','pageIndex','_offsetY','collaboration-client-ui.conflict.title','_getAnchorBounding','_refreshCollabCursors','send','InsertColCommandId','transform','column','_configService','_localeService','setConfig','setShapeProps','_updateSubUnitFromURLParams','collaboration-client-ui.session.connection-failed','findNodePositionByCharIndex','transformIMECache','transformMutation','endRow','backgroundColor','_showText','parse','error','isActive','executeCommand','_collaborationUIEventService','UPDATE_CURSOR','_memberService','setRemotePresence','string','update','_commandService','_id','number','_uiPartsService','subunit','unit','popstate','transformByState','collaboration-client-ui.collabStatus.synced','SUBMIT_CHANGESET_TIMEOUT','HEADER','rgba','runOnServer','_disposed','forEach','pulse','_scene','dispose$','_latestStates','focused$','_entityInit$','ONLINE','getSheetId','_online','strokeWidth','getRenderUnitById','setStateCache','_updateCollabCursors','catch','_render','univer-m-0\x20univer-p-0','_transformHistoryAndStateStack','CONFLICT','tooltipKey','_saveTaskMap','decorate','arc','_retryingConflictCacheUnitIDs','_urlService','_messageService','_blinkIntervalTimer','530xTuwWm','cursorInfo','removeEventListener','polite','span','endColumn','status','next','_docSkeletonManagerService','ERROR','addHandlerCallback','collaboration-client-ui.snapshotLoading.refresh','[Window\x20Error]:\x20','getUnhiddenWorksheets','_entities','setTimeout','#FFF','RemoveColCommandId','_revisionService','_adapter','timedOut','_setupBeforeClosingHandler','_docTransformIMECacheService','_ensureSubject','adapters$','39457zMlllf','405xPnJkZ','assignAColorForMemberID','_docTransformSelectionsService','collaboration-client-ui.collabStatus.notCollab','_activeSaveTaskMap','fillText','hovered','startRow','onStarting','_syncPresenceStatusComponents','columnIndex','_name','removeRemotePresence','_initCommandExecutedListener','_cursor','reason','_httpService','_toggleOnline','univer-flex\x20univer-items-center\x20univer-justify-center','_setupSubUnitSync','_syncEditingCollabCursorService','symbol',',\x200.2)','setAlpha','_hover','292pUgGlV','isEditing','_scheduleSaving','Warning','...','registerBeforeClose','PENDING','map','_initUserListener','collab-rect-range-','unsubscribe','DeleteRangeMoveUpCommandId','closePath','_showConflictProcessingNotification','_getSheetObject','defineProperty','then','RECT','_clearBlockProgressWatch','statusUIPart','getFocusedUnit','_registerRenderDependencies','div','_docClipboardService','dispose','_updateLocalCursor','collaboration-client-ui.session.collaboration-timeout','addObject','toString','history','_removeClearOtherTimer','kind','376GRkfJZ','getParam','post','_handleEvent','urlChange$','get','_cursorInfo$','transformMutationsWithChangeset','_initUnhandledRejectionListener','editingUnit','_docSelectionManagerService','lineTo','now','_instanceService','createInstance','createSocket','packageName','Enter','getScrollXYInfoByViewport','set','makeDirty','indicator','result','CLOSE_ROOM','getCollabEntity$','collaboration-client-ui.collabStatus.syncing','onPointerMove$','_status$','offsetY','sheetId','VIEW_MAIN','small','clearOfflineData','_onCursorUpdate','reconnect','cursorInfo$','content','data','totalBlocks','stack','invokeId','roomMembers','currentSkeleton$','_drawAnchor','selectedIds','_beforeCloseService','_startSheetCollabCursor','add','snapshot-loading-','collaboration-client-ui.collabStatus.offline','length','_scheduleClearOtherTimer','left','/universer-api/frontend/logs','doc.mutation.rich-text-editing','_colorIndex','startsWith','pluginName','_colorAssignService','height','0.2)','clearTimeout','JOIN_ROOM_FAILED','m2Prime','_clearRemotePresences','_cursorShapes','pageType','roomMembers$','getAllUnitsForType','getTypeOfUnitDisposed$','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_handleJoinEvent','_labelHorizontalPosition','_getSaveTimeout','size','stringify','onPointerEnter$','onTransformChange$','_monkeyPatchLogService','restore','labelPosition','row','_conflictNotification','disposeUnit','prototype','name','[LogService\x20Error]:\x20','highlightSecond','univer-text-blue-500','getMember','fillRule','with','getActiveSheet','_clearTimeoutState','getColorFromTheme','syncEditingCollabCursor','reload','_adapterRegistry','getCellIndexByOffset','_labelPosition','clickable','getCurrentTypeOfUnit$','setActiveRange','setUndoRedoMutationParamsCache','location','selection','_replaceConflictNotification','_isDisposed','NO_OTHER_CLIENTS_EDITING','unhandledrejection','rgba(255,\x20255,\x20255,\x200.01)','1.0.2','every','_adapterDisposables','flatMap','_snapshotLoadingService','/run/','debug','_handleHover','getCoordRelativeToViewport','init','true','save','from','NOT_COLLAB','_unitOnClients','OPERATION','redoState','blue.400','memberId','_bindAdapter','bind','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_pointerMoveDisposable','_drawRectRange','_localStorageService','getSheetBySheetId','collaboration-client-ui.conflict.clearFailed','presenceKind','_retryConflictCacheClear','COMPLETE','constructor','MoveRangeCommandId','FOOTER','unitID','_session','canRenderSelection','getConfig','getTypeOfUnitAdded$','unitType','finally','_backgroundColor','_handleCursorUpdate','focusedId','AWAITING','\x20-\x20','_refRangeService','_highlightSecond','registerCommand','_disabled','top','icon','onPointerLeave$','subscribeEvent','_memberID','_collabCursorController','code','collaboration-client-ui.conflict.processing','some','join','1149012laMCRC','_initialized','static','_trackActiveSaveTask','entityInit$','_presenceStatusRegistrations','loadOfflineData','univer-border-none\x20univer-bg-transparent','_logService','requireSession','m1Prime','_anchor','_clearOtherTimers','href','imageSourceType','_uploadLog','OTHER_CLIENT_EDITING','parseInt','override','socket$','_highlight','right','pipe','_collaborationController','univer-text-red-500','split','saveImage','pushState','measureText','runId','clearInterval','subscribe','collaboration-client-ui.operation.update-remote-unit-presence','univer-transition-all\x20univer-duration-200','type','body','_getSessionTicket','_selfUnitIDs','preventDefault','univer-text-gray-400','_initEvent','prepareTransformSelections','stage','search','loadedBlocks','addEventListener',':backup:','range','deepClone','_localCacheService','univer-size-4\x20univer-shrink-0\x20univer-text-amber-500','onMouseMove','delete','collaboration-client-ui.conflict.retry','univer-h-8\x20univer-w-8\x20univer-rounded-lg','has','_initStatusListener','_draw','_timeoutState$','searchParams','memberID','_range','includes','_saveCache','key','RemoveRowCommandId','_anchorDot','colorClass','_handleLeaveEvent','658130Lyrknj','removeParam','SOCKET_FAILED_RETRY','primary','[CollaborationDataLoaderController]','object','_startDocCollabCursor','_init','_createSocketURL','sessionStatus$','DeleteRangeMoveLeftCommandId','_themeService','_getMergeRange','getUnitId','CONFLICT_CACHE_CLEAR_FAILED','show','saveTaskMap','_roomMembers$','_transformService','yellow.400','getStateCache'];_0x29c9=function(){return _0x2af8a0;};return _0x29c9();}Bn=q([K(0x0,_0x2ebb05),K(0x1,_0x34d5fc)],Bn);let Vn=class{constructor(_0xf13f6e,_0xfefa7c,_0x9ffcfa){const _0x1d7355=_0x247c5a;this[_0x1d7355(0x325)]=_0xf13f6e,this[_0x1d7355(0x30d)]=_0xfefa7c,this['_docStateChangeManagerService']=_0x9ffcfa;}[_0x247c5a(0x3a2)](_0x3cb5f3){const _0x4710fa=_0x247c5a;this[_0x4710fa(0x1af)](_0x3cb5f3);}['transformRemoteChangeset'](_0x2aa4d4){const _0x29817d=_0x247c5a;let {unitID:_0x32d79e}=_0x2aa4d4,{collaboration:_0x3b1a4}=this['_docStateChangeManagerService']['getStateCache'](_0x32d79e);if(_0x3b1a4[_0x29817d(0x23e)]===0x0)return _0x2aa4d4;let _0x412e73=_0x55db4d['deepClone'](_0x2aa4d4[_0x29817d(0x364)][0x0]);for(let _0x48c9a4=0x0;_0x48c9a4<_0x3b1a4[_0x29817d(0x23e)];_0x48c9a4++){let _0x57a793={'id':_0x29817d(0x242),'params':{'unitId':_0x3b1a4[_0x48c9a4]['unitId'],..._0x3b1a4[_0x48c9a4][_0x29817d(0x28b)]}},_0x47b3dd=this[_0x29817d(0x30d)][_0x29817d(0x3ed)](_0x412e73,_0x57a793,!0x1);if(_0x2be4e3(_0x47b3dd))throw _0x47b3dd[_0x29817d(0x3f2)];_0x412e73=_0x47b3dd['m1Prime'];}return{..._0x55db4d[_0x29817d(0x2e6)](_0x2aa4d4),'mutations':[_0x412e73]};}[_0x247c5a(0x1af)](_0x1530e2){const _0x496af4=_0x247c5a;let {unitID:_0x13b9d7}=_0x1530e2,{history:_0x1b37ee,collaboration:_0x2e65ab}=this[_0x496af4(0x3a1)][_0x496af4(0x30f)](_0x13b9d7);if(_0x1b37ee[_0x496af4(0x23e)]===0x0&&_0x2e65ab[_0x496af4(0x23e)]===0x0)return;let _0x47938e=[],_0x122c42=[],_0x267c36=_0x55db4d[_0x496af4(0x2e6)](_0x1530e2[_0x496af4(0x364)][0x0]),_0x5e8829=_0x55db4d[_0x496af4(0x2e6)](_0x1530e2[_0x496af4(0x364)][0x0]);for(let _0x4a02d6=_0x1b37ee[_0x496af4(0x23e)]-0x1;_0x4a02d6>=0x0;_0x4a02d6--){let _0xf5367c={'id':_0x496af4(0x242),'params':{'unitId':_0x1b37ee[_0x4a02d6][_0x496af4(0x399)],..._0x1b37ee[_0x4a02d6][_0x496af4(0x388)]}},_0x21a5ec={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1b37ee[_0x4a02d6]['unitId'],..._0x1b37ee[_0x4a02d6][_0x496af4(0x28b)]}},_0x1449e2=this[_0x496af4(0x30d)][_0x496af4(0x3ed)](_0x267c36,_0xf5367c,!0x1),_0xdbbc81=this[_0x496af4(0x30d)][_0x496af4(0x3ed)](_0x5e8829,_0x21a5ec,!0x1);if(_0x2be4e3(_0x1449e2))throw _0x1449e2[_0x496af4(0x3f2)];if(_0x2be4e3(_0xdbbc81))throw _0xdbbc81[_0x496af4(0x3f2)];_0x47938e[_0x496af4(0x38e)]({..._0x1b37ee[_0x4a02d6],'undoState':_0x1449e2['m2Prime'][_0x496af4(0x37c)],'redoState':_0xdbbc81[_0x496af4(0x24b)]['params']}),_0x267c36=_0x1449e2[_0x496af4(0x2c0)],_0x5e8829=_0xdbbc81['m1Prime'];}_0x267c36=_0x55db4d[_0x496af4(0x2e6)](_0x1530e2[_0x496af4(0x364)][0x0]),_0x5e8829=_0x55db4d[_0x496af4(0x2e6)](_0x1530e2[_0x496af4(0x364)][0x0]);for(let _0x5b7620=_0x2e65ab[_0x496af4(0x23e)]-0x1;_0x5b7620>=0x0;_0x5b7620--){let _0x22b2af={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2e65ab[_0x5b7620][_0x496af4(0x399)],..._0x2e65ab[_0x5b7620]['undoState']}},_0xf23f99={'id':_0x496af4(0x242),'params':{'unitId':_0x2e65ab[_0x5b7620][_0x496af4(0x399)],..._0x2e65ab[_0x5b7620]['redoState']}},_0x1d39d8=this[_0x496af4(0x30d)][_0x496af4(0x3ed)](_0x267c36,_0x22b2af,!0x1),_0x2c71e9=this[_0x496af4(0x30d)][_0x496af4(0x3ed)](_0x5e8829,_0xf23f99,!0x1);if(_0x2be4e3(_0x1d39d8))throw _0x1d39d8[_0x496af4(0x3f2)];if(_0x2be4e3(_0x2c71e9))throw _0x2c71e9[_0x496af4(0x3f2)];_0x122c42[_0x496af4(0x38e)]({..._0x2e65ab[_0x5b7620],'undoState':_0x1d39d8[_0x496af4(0x24b)][_0x496af4(0x37c)],'redoState':_0x2c71e9[_0x496af4(0x24b)]['params']}),_0x267c36=_0x1d39d8[_0x496af4(0x2c0)],_0x5e8829=_0x2c71e9[_0x496af4(0x2c0)];}this[_0x496af4(0x3a1)][_0x496af4(0x1aa)](_0x13b9d7,{'history':_0x47938e,'collaboration':_0x122c42});}};Vn=q([K(0x0,_0x3b8ccc(_0x5c9bca)),K(0x1,_0x2ebb05),K(0x2,_0x3b8ccc(_0x56aa2a))],Vn);let Hn=class{constructor(_0x5acca6,_0xf42fd7){const _0x405230=_0x247c5a;this[_0x405230(0x216)]=_0x5acca6,this[_0x405230(0x30d)]=_0xf42fd7;}[_0x247c5a(0x2df)](_0x23f339){const _0x247ade=_0x247c5a;var _0x13cb3a;let _0x5c1781=this[_0x247ade(0x216)][_0x247ade(0x372)]()??[],_0x15458a=this['_docSelectionManagerService'][_0x247ade(0x3a6)]();if(_0x5c1781[_0x247ade(0x23e)]===0x0||_0x15458a==null)return null;let _0x3a0dee=_0x23f339[_0x247ade(0x29c)],_0x24fc96=[{'id':_0x247ade(0x242),'params':{'unitId':_0x3a0dee,'actions':null,'textRanges':_0x5c1781}}],_0xfe2ae7=this['_transformService'][_0x247ade(0x213)](_0x23f339,_0x24fc96);if(!_0x10ddcf(_0xfe2ae7))throw _0xfe2ae7[_0x247ade(0x3f2)];let _0x33c4fd=(_0x13cb3a=_0xfe2ae7[_0x247ade(0x24b)][0x0])==null?void 0x0:_0x13cb3a[_0x247ade(0x37c)],_0x1e1dd8=_0x33c4fd&&typeof _0x33c4fd==_0x247ade(0x300)&&_0x247ade(0x391)in _0x33c4fd?_0x33c4fd['textRanges']:null;if(!Gn(_0x1e1dd8))return null;let _0x4956dc=Un(_0x23f339[_0x247ade(0x364)][_0x247ade(0x2b4)](_0x3ce6c4=>Kn(_0x3ce6c4[_0x247ade(0x37c)]))?_0x1e1dd8['filter'](_0x31bfc5=>!(_0x247ade(0x397)in _0x31bfc5)):_0x1e1dd8,{..._0x15458a,'options':_0x15458a[_0x247ade(0x361)]?{..._0x15458a[_0x247ade(0x361)],'wholeDocument':!0x1}:void 0x0}),_0x4d18d2={'unitId':_0x3a0dee,'subUnitId':_0x3a0dee};this[_0x247ade(0x216)]['replaceSelectionInfoWithoutRefresh'](_0x4956dc,_0x4d18d2);let _0x23a76f=!0x0;return{'commit':()=>{_0x23a76f=!0x1;},'rollback':()=>{const _0x5b8027=_0x247ade;_0x23a76f&&(_0x23a76f=!0x1,this[_0x5b8027(0x216)][_0x5b8027(0x39f)](_0x15458a,_0x4d18d2));}};}};Hn=q([K(0x0,_0x3b8ccc(_0x16bdd0)),K(0x1,_0x2ebb05)],Hn);function Un(_0x5b3c93,_0x238954){let _0x2292cb=[],_0x507f2f=[];for(let _0x4ffe1e of _0x5b3c93)Wn(_0x4ffe1e)?_0x507f2f['push'](_0x4ffe1e):_0x2292cb['push'](_0x4ffe1e);return{..._0x238954,'textRanges':_0x2292cb,'rectRanges':_0x507f2f};}function Wn(_0x2b644b){return'tableId'in _0x2b644b;}function Gn(_0x2f8436){const _0xa010e=_0x247c5a;return Array[_0xa010e(0x3ca)](_0x2f8436)&&_0x2f8436[_0xa010e(0x27c)](_0x595253=>typeof _0x595253==_0xa010e(0x300)&&!!_0x595253&&_0xa010e(0x328)in _0x595253&&'endOffset'in _0x595253);}function Kn(_0x55ec95){const _0x4d8033=_0x247c5a;return _0x55ec95===_0x4d8033(0x344)?!0x0:Array[_0x4d8033(0x3ca)](_0x55ec95)?_0x55ec95[_0x4d8033(0x2b4)](_0x535e77=>Kn(_0x535e77)):!_0x55ec95||typeof _0x55ec95!='object'?!0x1:Object[_0x4d8033(0x35e)](_0x55ec95)[_0x4d8033(0x2b4)](_0x3653b8=>Kn(_0x3653b8));}let qn=class extends _0x50ca1f{constructor(_0x428ca9,_0x26882d,_0x1f1d4b,_0x1c65b6,_0x1adee4,_0x7af276,_0x19f924){const _0x1d469d=_0x247c5a;super(),this[_0x1d469d(0x2cd)]=_0x428ca9,this[_0x1d469d(0x1cf)]=_0x26882d,this[_0x1d469d(0x378)]=_0x1f1d4b,this[_0x1d469d(0x1d5)]=_0x1c65b6,this[_0x1d469d(0x3c2)]=_0x1adee4,this[_0x1d469d(0x1b7)]=_0x7af276,this[_0x1d469d(0x3e6)]=_0x19f924,G(this,'_status$',new _0x24b100(_0x5c157a['NOT_COLLAB'])),this['_initEntityListener']();}['_initEntityListener'](){const _0x1cff04=_0x247c5a;this[_0x1cff04(0x3a7)](this[_0x1cff04(0x2cd)][_0x1cff04(0x2ba)]['subscribe'](_0x39592c=>{const _0x5a006d=_0x1cff04;_0x39592c instanceof _0x4a9a22&&_0x39592c[_0x5a006d(0x1c3)]({'onTransformIME':_0x30649e=>this[_0x5a006d(0x1cf)][_0x5a006d(0x3ec)](_0x30649e),'onTransformState':_0x5d0468=>this[_0x5a006d(0x378)][_0x5a006d(0x3a2)](_0x5d0468),'onPrepareTransformSelections':_0x5a9845=>this[_0x5a006d(0x1d5)][_0x5a006d(0x2df)](_0x5a9845),'onSyncEditingCollabCursor':_0x1a59bf=>this[_0x5a006d(0x3c2)][_0x5a006d(0x26b)](_0x1a59bf),'onTransformRemoteChangesetByIMECache':_0x12f915=>this[_0x5a006d(0x1cf)][_0x5a006d(0x31c)](_0x12f915),'onTransformRemoteChangesetByStateCache':_0x16385d=>this[_0x5a006d(0x378)][_0x5a006d(0x31c)](_0x16385d)});}));}};qn=q([K(0x0,_0x3b8ccc(_0x501041)),K(0x1,_0x3b8ccc(Bn)),K(0x2,_0x3b8ccc(Vn)),K(0x3,_0x3b8ccc(Hn)),K(0x4,_0x3b8ccc(_n)),K(0x5,_0x4a0381),K(0x6,_0x3b8ccc(_0x5a18da))],qn);let Jn=class extends _0x50ca1f{constructor(_0x1ced60,_0x849185,_0x27d891,_0x22cdc0){const _0x2e4046=_0x247c5a;super(),this[_0x2e4046(0x325)]=_0x1ced60,this['_httpService']=_0x849185,this[_0x2e4046(0x2be)]=_0x27d891,this[_0x2e4046(0x32d)]=_0x22cdc0,G(this,_0x2e4046(0x2b0),void 0x0),this[_0x2e4046(0x302)]();}['_init'](){const _0x3f7c60=_0x247c5a;this[_0x3f7c60(0x368)](),this[_0x3f7c60(0x214)](),this[_0x3f7c60(0x25a)](),this[_0x3f7c60(0x1f4)]();}[_0x247c5a(0x1f4)](){const _0xaed843=_0x247c5a;this[_0xaed843(0x3a7)](this['_collaborationSessionService'][_0xaed843(0x2c9)]['subscribe'](_0x2ff9dc=>{const _0x5aaddc=_0xaed843;this['_memberID']=_0x2ff9dc==null?void 0x0:_0x2ff9dc[_0x5aaddc(0x2f2)];}));}['_initWindowErrorListener'](){const _0xa51d3f=_0x247c5a;let _0xf0731f=_0x5c2978=>{const _0x18bac6=_0x2e9b;var _0x23a357;this['_uploadLog'](_0x18bac6(0x3f2),_0x18bac6(0x1c5)+_0x5c2978['message']+'\x20at\x20'+_0x5c2978['filename']+':'+_0x5c2978[_0x18bac6(0x36b)]+':'+_0x5c2978['colno']+'\x0a'+(((_0x23a357=_0x5c2978[_0x18bac6(0x3f2)])==null?void 0x0:_0x23a357[_0x18bac6(0x233)])||''));};window[_0xa51d3f(0x2e3)]('error',_0xf0731f),this[_0xa51d3f(0x3a7)](()=>{const _0x5ae89b=_0xa51d3f;window[_0x5ae89b(0x1bb)](_0x5ae89b(0x3f2),_0xf0731f);});}[_0x247c5a(0x214)](){const _0x26c911=_0x247c5a;let _0x3a4935=_0x4215e6=>{const _0x173ab8=_0x2e9b;this[_0x173ab8(0x2c5)](_0x173ab8(0x3f2),_0x173ab8(0x330)+_0x4215e6[_0x173ab8(0x1e2)]);};window['addEventListener'](_0x26c911(0x279),_0x3a4935),this[_0x26c911(0x3a7)](()=>{const _0x39e540=_0x26c911;window['removeEventListener'](_0x39e540(0x279),_0x3a4935);});}[_0x247c5a(0x25a)](){const _0x59c6cd=_0x247c5a;let _0x14af05=this[_0x59c6cd(0x2be)][_0x59c6cd(0x3f2)][_0x59c6cd(0x28f)](this[_0x59c6cd(0x2be)]);this[_0x59c6cd(0x2be)][_0x59c6cd(0x3f2)]=(..._0x3bffe3)=>{const _0x36b003=_0x59c6cd;let _0x1b586b=_0x3bffe3['map'](_0x44af4d=>_0x44af4d instanceof Error?_0x44af4d['message']+'\x0a'+_0x44af4d[_0x36b003(0x233)]:String(_0x44af4d))[_0x36b003(0x2b5)]('\x20');this[_0x36b003(0x2c5)]('error',_0x36b003(0x262)+_0x1b586b),_0x14af05(..._0x3bffe3);},this[_0x59c6cd(0x3a7)](()=>{const _0x1a1733=_0x59c6cd;this[_0x1a1733(0x2be)][_0x1a1733(0x3f2)]=_0x14af05;});}[_0x247c5a(0x2c5)](_0x518b63,_0x577a4a){const _0x2b25b6=_0x247c5a;try{let _0x78853f={'userId':this[_0x2b25b6(0x2b0)],'logLabel':_0x518b63,'content':_0x577a4a};this[_0x2b25b6(0x1e3)][_0x2b25b6(0x20e)](_0x2b25b6(0x241),{'body':_0x78853f})[_0x2b25b6(0x1ac)](()=>{});}catch{}}};Jn=q([K(0x0,_0x3b8ccc(_0x5c9bca)),K(0x1,_0x3b8ccc(_0x47169a)),K(0x2,_0x583b3f),K(0x3,_0x3b8ccc(_0xed7c81))],Jn);function Yn({state$:_0x27a554}){const _0x48ab3a=_0x247c5a;let _0x19b206=_0x47ef38(_0x27a554,null,!0x0);return _0x19b206?_0x10ab35(_0x48ab3a(0x202),{'data-u-comp':_0x48ab3a(0x3bb),'role':'alert','className':_0x48ab3a(0x3ae),'children':[_0x5b3a46(_0x14cc8f,{'className':_0x48ab3a(0x2e8)}),_0x5b3a46(_0x48ab3a(0x1bd),{'children':_0x19b206[_0x48ab3a(0x230)]}),_0x5b3a46(_0x58172d,{'size':_0x48ab3a(0x22b),'variant':_0x48ab3a(0x2fe),'onClick':()=>window['location'][_0x48ab3a(0x26c)](),'children':_0x19b206['refreshLabel']})]}):null;}const Xn=_0x247c5a(0x23c);let Zn=class extends _0x50ca1f{constructor(_0x54df5d,_0x4f8120,_0x227b49,_0x38e097,_0x255e53,_0x53f511){const _0x845fa1=_0x247c5a;super(),this[_0x845fa1(0x27f)]=_0x54df5d,this[_0x845fa1(0x1b7)]=_0x4f8120,this[_0x845fa1(0x3e6)]=_0x227b49,this[_0x845fa1(0x325)]=_0x38e097,this[_0x845fa1(0x1b6)]=_0x53f511,G(this,_0x845fa1(0x2f0),new _0x24b100(null)),G(this,_0x845fa1(0x359),new Set()),G(this,'_blockProgressWatches',new Map()),G(this,'_latestStates',new Map()),G(this,'timeoutState$',this[_0x845fa1(0x2f0)][_0x845fa1(0x3d8)]());let _0x3fa948=()=>_0x30be06(Yn,{'state$':this[_0x845fa1(0x356)]});this[_0x845fa1(0x3a7)](_0x255e53[_0x845fa1(0x324)](_0x4fb6b8['GLOBAL'],()=>_0x107421(_0x3fa948,this[_0x845fa1(0x325)]))),this[_0x845fa1(0x3a7)](this[_0x845fa1(0x27f)]['state$'][_0x845fa1(0x2d5)](_0x1964c2=>{const _0x116575=_0x845fa1;this[_0x116575(0x40d)]=_0x1964c2,_0x1964c2[_0x116575(0x409)](_0x50ff66=>this[_0x116575(0x36c)](_0x50ff66));})),this[_0x845fa1(0x3a7)](this[_0x845fa1(0x1b6)]['urlChange$']['subscribe'](()=>{const _0x4f26af=_0x845fa1;this['_latestStates'][_0x4f26af(0x409)](_0x49e33a=>this[_0x4f26af(0x36c)](_0x49e33a));}));}['dispose'](){const _0x5e2115=_0x247c5a;this[_0x5e2115(0x359)][_0x5e2115(0x409)](_0x57a539=>this['_messageService'][_0x5e2115(0x3bc)](_0x57a539)),this['_messageIds']['clear'](),this[_0x5e2115(0x386)][_0x5e2115(0x409)](({timeoutId:_0x1b3b89})=>clearTimeout(_0x1b3b89)),this[_0x5e2115(0x386)][_0x5e2115(0x3cd)](),this[_0x5e2115(0x2f0)][_0x5e2115(0x36f)](),super[_0x5e2115(0x204)]();}[_0x247c5a(0x36c)](_0x37b893){const _0x5388df=_0x247c5a;let _0xcdac66=''+Xn+_0x37b893[_0x5388df(0x399)];if(_0x37b893['stage']===_0x338f29[_0x5388df(0x298)]){this[_0x5388df(0x1fe)](_0x37b893[_0x5388df(0x399)]),this['_clearTimeoutState'](_0x37b893[_0x5388df(0x399)]),this[_0x5388df(0x1b7)][_0x5388df(0x3bc)](_0xcdac66),this[_0x5388df(0x359)]['delete'](_0xcdac66);return;}if(!this[_0x5388df(0x3d5)](_0x37b893[_0x5388df(0x399)])){this[_0x5388df(0x1fe)](_0x37b893[_0x5388df(0x399)]),this[_0x5388df(0x269)](_0x37b893[_0x5388df(0x399)]),this[_0x5388df(0x1b7)][_0x5388df(0x3bc)](_0xcdac66),this[_0x5388df(0x359)][_0x5388df(0x2ea)](_0xcdac66);return;}if(_0x37b893['stage']===_0x338f29[_0x5388df(0x1c2)]){this[_0x5388df(0x1fe)](_0x37b893[_0x5388df(0x399)]),this[_0x5388df(0x269)](_0x37b893[_0x5388df(0x399)]),this[_0x5388df(0x1b7)][_0x5388df(0x30a)]({'id':_0xcdac66,'type':_0x2f977e[_0x5388df(0x3d2)],'content':this[_0x5388df(0x3e6)]['t'](_0x5388df(0x3ea))}),this[_0x5388df(0x359)][_0x5388df(0x2ea)](_0xcdac66);return;}if(_0x37b893[_0x5388df(0x2e0)]!==_0x338f29[_0x5388df(0x3d3)]||_0x37b893[_0x5388df(0x232)]<=0xa){this['_clearBlockProgressWatch'](_0x37b893[_0x5388df(0x399)]),this[_0x5388df(0x1b7)][_0x5388df(0x3bc)](_0xcdac66),this[_0x5388df(0x359)]['delete'](_0xcdac66);return;}this[_0x5388df(0x3a5)](_0x37b893)||(this[_0x5388df(0x1b7)][_0x5388df(0x30a)]({'id':_0xcdac66,'type':_0x2f977e['Loading'],'duration':0x1/0x0,'content':this['_localeService']['t']('collaboration-client-ui.collabStatus.fetchMiss')+'\x20'+_0x37b893[_0x5388df(0x2e2)]+'/'+_0x37b893['totalBlocks']}),this['_messageIds'][_0x5388df(0x23b)](_0xcdac66));}[_0x247c5a(0x3a5)](_0x4026a4){const _0x47ae6b=_0x247c5a;let _0x10b9df=this['_blockProgressWatches'][_0x47ae6b(0x211)](_0x4026a4['unitId']);if((_0x10b9df==null?void 0x0:_0x10b9df[_0x47ae6b(0x2e2)])===_0x4026a4[_0x47ae6b(0x2e2)])return _0x10b9df['timedOut'];this[_0x47ae6b(0x1fe)](_0x4026a4[_0x47ae6b(0x399)]);let _0x1b8faa=setTimeout(()=>{const _0x433ef1=_0x47ae6b;let _0x413a88=this[_0x433ef1(0x386)][_0x433ef1(0x211)](_0x4026a4[_0x433ef1(0x399)]);if(!_0x413a88||_0x413a88[_0x433ef1(0x3ab)]!==_0x1b8faa)return;_0x413a88[_0x433ef1(0x1cd)]=!0x0;let _0x750331=''+Xn+_0x4026a4[_0x433ef1(0x399)];this['_messageService'][_0x433ef1(0x3bc)](_0x750331),this[_0x433ef1(0x359)][_0x433ef1(0x2ea)](_0x750331),this['_timeoutState$'][_0x433ef1(0x1c0)]({'unitId':_0x4026a4['unitId'],'content':this['_localeService']['t'](_0x433ef1(0x37b),String(_0x4026a4[_0x433ef1(0x2e2)]),String(_0x4026a4[_0x433ef1(0x232)])),'refreshLabel':this[_0x433ef1(0x3e6)]['t']('collaboration-client-ui.snapshotLoading.refresh')});},0xea60);return this['_blockProgressWatches'][_0x47ae6b(0x21f)](_0x4026a4[_0x47ae6b(0x399)],{'loadedBlocks':_0x4026a4['loadedBlocks'],'timedOut':!0x1,'timeoutId':_0x1b8faa}),!0x1;}[_0x247c5a(0x1fe)](_0x425717){const _0x2016de=_0x247c5a;let _0x17b122=this[_0x2016de(0x386)][_0x2016de(0x211)](_0x425717);_0x17b122&&(clearTimeout(_0x17b122[_0x2016de(0x3ab)]),this[_0x2016de(0x386)]['delete'](_0x425717),this[_0x2016de(0x269)](_0x425717));}[_0x247c5a(0x269)](_0x1eb87e){const _0x3cd55e=_0x247c5a;var _0x538374;((_0x538374=this[_0x3cd55e(0x2f0)]['value'])==null?void 0x0:_0x538374[_0x3cd55e(0x399)])===_0x1eb87e&&this[_0x3cd55e(0x2f0)][_0x3cd55e(0x1c0)](null);}[_0x247c5a(0x3d5)](_0x35135a){const _0x23e918=_0x247c5a;let _0x5dbb68=this[_0x23e918(0x1b6)][_0x23e918(0x20d)](_0x23e918(0x400));return!_0x5dbb68||_0x5dbb68===_0x35135a;}};Zn=q([K(0x0,_0x3b8ccc(_0x1a827f)),K(0x1,_0x4a0381),K(0x2,_0x3b8ccc(_0x5a18da)),K(0x3,_0x3b8ccc(_0x5c9bca)),K(0x4,_0x4bd601),K(0x5,Rn)],Zn);let Qn=class extends _0x50ca1f{constructor(_0x2f9409,_0x18e921,_0x22d518){const _0x10f3a1=_0x247c5a;super(),this[_0x10f3a1(0x3e5)]=_0x2f9409,this[_0x10f3a1(0x293)]=_0x18e921,this[_0x10f3a1(0x1cb)]=_0x22d518,G(this,'_cachedData',new Map()),G(this,_0x10f3a1(0x1b2),new Map()),G(this,_0x10f3a1(0x1d7),new Map()),G(this,_0x10f3a1(0x2ab),!0x1);}['disableLocalCache'](){const _0x3ac10a=_0x247c5a;this[_0x3ac10a(0x2ab)]=!0x0;}['enableLocalCache'](){const _0x2eb60e=_0x247c5a;this[_0x2eb60e(0x2ab)]=!0x1;}get[_0x247c5a(0x30b)](){const _0x71825c=_0x247c5a;return this[_0x71825c(0x1b2)];}[_0x247c5a(0x204)](){const _0x153a8f=_0x247c5a;this[_0x153a8f(0x38c)]()[_0x153a8f(0x1fc)](()=>super['dispose']());}async[_0x247c5a(0x2bc)](_0x279398){const _0x156b34=_0x247c5a;return this[_0x156b34(0x2ab)]?null:this[_0x156b34(0x293)][_0x156b34(0x39d)](_0x98c216(_0x279398));}async['saveOfflineData'](_0x182fbf,_0x172f28){const _0x21ba6d=_0x247c5a;let _0x103e49=this[_0x21ba6d(0x293)][_0x21ba6d(0x349)](_0x98c216(_0x182fbf),_0x172f28);return this['_trackActiveSaveTask'](_0x182fbf,_0x103e49),!!await _0x103e49;}async[_0x247c5a(0x32b)](_0x87b3e6,_0xe7e973){const _0x292594=_0x247c5a;let _0x5682bb=this[_0x292594(0x3b7)][_0x292594(0x211)](_0x87b3e6)??await this[_0x292594(0x293)][_0x292594(0x39d)](_0x98c216(_0x87b3e6));if(!_0x5682bb)return;let _0x212d3e=Date[_0x292594(0x218)](),_0x169637=new Date(_0x212d3e)[_0x292594(0x389)]();await this[_0x292594(0x293)][_0x292594(0x349)](_0x98c216(_0x87b3e6)+_0x292594(0x2e4)+_0x212d3e,{'reason':_0xe7e973,'createdAt':_0x169637,'data':_0x5682bb});}async[_0x247c5a(0x22c)](_0x4130ed){const _0x295c38=_0x247c5a;let _0x24af77=this['_saveTaskMap'][_0x295c38(0x211)](_0x4130ed);_0x24af77!==void 0x0&&(window['clearTimeout'](_0x24af77),this['_saveTaskMap'][_0x295c38(0x2ea)](_0x4130ed));let _0xb15de6=this[_0x295c38(0x1d7)]['get'](_0x4130ed);_0xb15de6&&await Promise['allSettled'](_0xb15de6),this[_0x295c38(0x3b7)][_0x295c38(0x2ea)](_0x4130ed),await this['_localStorageService'][_0x295c38(0x3d0)](_0x98c216(_0x4130ed));}[_0x247c5a(0x3a0)](_0x2f447f,_0x3897ef,_0x348ea6,_0x3db9ad){const _0x26f30d=_0x247c5a;let _0x54f46a=this[_0x26f30d(0x1cb)][_0x26f30d(0x323)](_0x2f447f);this[_0x26f30d(0x3b7)][_0x26f30d(0x21f)](_0x2f447f,{'unitID':_0x2f447f,'type':_0x3897ef,'awaitingChangeset':_0x348ea6,'mutations':_0x3db9ad,'rev':_0x54f46a}),this['_saveTaskMap'][_0x26f30d(0x2ed)](_0x2f447f)||this[_0x26f30d(0x1ee)](_0x2f447f);}[_0x247c5a(0x1ee)](_0xcb3263){const _0x1b6275=_0x247c5a;let _0x5b9dcb=this[_0x1b6275(0x255)]();_0x5b9dcb===0x0?this[_0x1b6275(0x2f5)](_0xcb3263):this[_0x1b6275(0x1b2)]['set'](_0xcb3263,window[_0x1b6275(0x1c8)](()=>this[_0x1b6275(0x2f5)](_0xcb3263),_0x5b9dcb));}[_0x247c5a(0x255)](){const _0x284986=_0x247c5a;return this['_configService'][_0x284986(0x29f)](_0x39f139)??_0x56be35;}[_0x247c5a(0x2f5)](_0x2e4c87){const _0x5b7f85=_0x247c5a;let _0x44bd02=this['_saveTaskMap'][_0x5b7f85(0x211)](_0x2e4c87);_0x44bd02!==void 0x0&&window[_0x5b7f85(0x249)](_0x44bd02);let _0x3be44d=this[_0x5b7f85(0x293)][_0x5b7f85(0x349)](_0x98c216(_0x2e4c87),this['_cachedData']['get'](_0x2e4c87))[_0x5b7f85(0x1fc)](()=>this[_0x5b7f85(0x1b2)][_0x5b7f85(0x2ea)](_0x2e4c87));return this[_0x5b7f85(0x2b9)](_0x2e4c87,_0x3be44d),_0x3be44d;}['_trackActiveSaveTask'](_0x471151,_0x47e927){const _0x506a1f=_0x247c5a;let _0x5a7d87=this['_activeSaveTaskMap'][_0x506a1f(0x211)](_0x471151);_0x5a7d87||(_0x5a7d87=new Set(),this['_activeSaveTaskMap'][_0x506a1f(0x21f)](_0x471151,_0x5a7d87)),_0x5a7d87[_0x506a1f(0x23b)](_0x47e927);let _0x1025ed=()=>{const _0x45000b=_0x506a1f;_0x5a7d87['delete'](_0x47e927),_0x5a7d87[_0x45000b(0x256)]===0x0&&this['_activeSaveTaskMap'][_0x45000b(0x2ea)](_0x471151);};_0x47e927[_0x506a1f(0x1fc)](_0x1025ed,_0x1025ed);}async['exhaustSavingTask'](){const _0x1c5535=_0x247c5a;let _0xf09a33=[];this[_0x1c5535(0x1b2)]['forEach']((_0x3f341c,_0x335a7d)=>{const _0x436ed0=_0x1c5535;window[_0x436ed0(0x249)](_0x3f341c),_0xf09a33['push'](this[_0x436ed0(0x2f5)](_0x335a7d)['then'](()=>{const _0x4af67c=_0x436ed0;this[_0x4af67c(0x1b2)][_0x4af67c(0x2ea)](_0x335a7d);}));}),await Promise[_0x1c5535(0x3c3)](_0xf09a33);}};Qn=q([K(0x0,_0xdca818),K(0x1,_0x24200d),K(0x2,_0x3b8ccc(_0x49db3a))],Qn);var $n=class extends _0x3318cc{constructor(){const _0x38e8a6=_0x247c5a;super(),G(this,_0x38e8a6(0x210),void 0x0),this[_0x38e8a6(0x210)]=_0x1412e7(window,_0x38e8a6(0x401))['pipe'](_0x3fa56b(this[_0x38e8a6(0x40c)]),_0x28413a({'bufferSize':0x1,'refCount':!0x0}),_0x13e54e(void 0x0));}[_0x247c5a(0x3b4)](_0x1eb4e0,_0x495fed,_0x11c354=!0x1){const _0x492b3f=_0x247c5a;let _0x1a50a6=new URL(window['location']['href']);_0x1a50a6[_0x492b3f(0x2f1)]['set'](_0x1eb4e0,_0x495fed),_0x11c354?window['history'][_0x492b3f(0x34c)]('','',_0x1a50a6[_0x492b3f(0x208)]()):window['history'][_0x492b3f(0x2d1)]('','',_0x1a50a6[_0x492b3f(0x208)]());}[_0x247c5a(0x2fc)](_0x4395b0,_0x45ddf7=!0x1){const _0x3d988e=_0x247c5a;let _0x3c6eb1=new URL(window[_0x3d988e(0x274)][_0x3d988e(0x2c3)]);_0x3c6eb1[_0x3d988e(0x2f1)][_0x3d988e(0x2ea)](_0x4395b0),_0x45ddf7?window[_0x3d988e(0x209)]['replaceState']('','',_0x3c6eb1[_0x3d988e(0x208)]()):window[_0x3d988e(0x209)][_0x3d988e(0x2d1)]('','',_0x3c6eb1['toString']());}[_0x247c5a(0x20d)](_0x18ef73){const _0x58e690=_0x247c5a;return new URL(window['location'][_0x58e690(0x2c3)])[_0x58e690(0x2f1)][_0x58e690(0x211)](_0x18ef73)??void 0x0;}};let $=class extends _0x50441f{constructor(_0x29d422=fn,_0x48aca5,_0x817941,_0x53644a,_0x52c8f6){const _0x19fa3d=_0x247c5a;super(),this[_0x19fa3d(0x3a3)]=_0x29d422,this[_0x19fa3d(0x37f)]=_0x48aca5,this[_0x19fa3d(0x325)]=_0x817941,this[_0x19fa3d(0x3e5)]=_0x53644a,this[_0x19fa3d(0x3fb)]=_0x52c8f6;let {..._0x170623}=_0x1ee81d({},fn,this[_0x19fa3d(0x3a3)]);this[_0x19fa3d(0x3e5)][_0x19fa3d(0x3e7)](_0x19fa3d(0x340),_0x170623);}[_0x247c5a(0x1db)](){const _0x18ac4b=_0x247c5a;this[_0x18ac4b(0x318)](),this[_0x18ac4b(0x3a7)](this[_0x18ac4b(0x3fb)][_0x18ac4b(0x2aa)](Y)),this[_0x18ac4b(0x31b)]();}[_0x247c5a(0x396)](){const _0x32414c=_0x247c5a;this[_0x32414c(0x201)]();}[_0x247c5a(0x318)](){const _0x16538e=_0x247c5a;var _0x266dbe;let _0x4fd978=[[mn],[Rn,{'useClass':$n}],[_0x4b4083,{'useClass':_0x3c7443}],[_0x1974ac,{'useClass':Qn}],[J],[Ln],[Z],[Q],[zn],[Zn]];this[_0x16538e(0x3a3)][_0x16538e(0x35b)]!==!0x1&&_0x4fd978[_0x16538e(0x319)]([Hn],[Bn],[Vn],[_n],[qn],[X]),this[_0x16538e(0x3a3)]['enableFrontendLog']&&_0x4fd978[_0x16538e(0x319)]([Jn]),_0x3b0029(this[_0x16538e(0x325)],_0x47a538(_0x4fd978,(_0x266dbe=this[_0x16538e(0x3a3)])==null?void 0x0:_0x266dbe[_0x16538e(0x2c8)]));}['_registerRenderDependencies'](){const _0x438067=_0x247c5a;this[_0x438067(0x3a3)][_0x438067(0x35b)]!==!0x1&&this[_0x438067(0x3a7)](this['_renderManagerService'][_0x438067(0x354)](_0x98e284[_0x438067(0x3b2)],[Dn])),this[_0x438067(0x3a7)](this[_0x438067(0x37f)][_0x438067(0x354)](_0x98e284[_0x438067(0x3bd)],[kn]));}[_0x247c5a(0x31b)](){const _0xeefa4=_0x247c5a;_0x327d6b(this[_0xeefa4(0x325)],[[Z],[Q],[J],[Ln],[zn],[Zn]]),this[_0xeefa4(0x3a3)]['enableDocumentCollaborationUI']!==!0x1&&_0x327d6b(this[_0xeefa4(0x325)],[[qn],[X]]),this['_config']['enableFrontendLog']&&_0x327d6b(this[_0xeefa4(0x325)],[[Jn]]);}};G($,_0x247c5a(0x245),_0x247c5a(0x252)),G($,_0x247c5a(0x21c),un),G($,_0x247c5a(0x3c4),dn),$=q([_0x3e9939(_0x3df221,_0x2f83a4,_0x5161e3,_0x3bb077,_0x1724e3,_0x74c715,_0x1116a6),K(0x1,_0x34d5fc),K(0x2,_0x3b8ccc(_0x5c9bca)),K(0x3,_0xdca818),K(0x4,_0x3fa174)],$);let er=class extends _0x25c99b{constructor(_0x21d2e5,_0x42d501,_0x42a6e2,_0x188707,_0x227805){super(_0x21d2e5,_0x42d501,_0x42a6e2,_0x188707,_0x227805);}async[_0x247c5a(0x21b)](_0x5a929d){const _0x1ba774=_0x247c5a;let _0x4200cf=await this[_0x1ba774(0x2da)](),_0x43f348=this[_0x1ba774(0x303)](_0x5a929d,_0x4200cf);return this['_doCreateSocket'](_0x43f348);}[_0x247c5a(0x303)](_0x2d6eca,_0x14d649){const _0x5357ea=_0x247c5a;let _0x26c1cd=typeof window>'u'?new URL(_0x2d6eca):new URL(_0x2d6eca,window[_0x5357ea(0x274)][_0x5357ea(0x3d9)]);_0x26c1cd[_0x5357ea(0x2f1)][_0x5357ea(0x21f)](_0x5357ea(0x370),_0x14d649);let _0x3106c4=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x5357ea(0x274)][_0x5357ea(0x2e1)]);return _0x3106c4[_0x5357ea(0x211)]('runId')&&_0x26c1cd[_0x5357ea(0x2f1)][_0x5357ea(0x21f)](_0x5357ea(0x2d3),_0x3106c4[_0x5357ea(0x211)]('runId')),_0x26c1cd[_0x5357ea(0x208)]();}async[_0x247c5a(0x2da)](){const _0x6b9947=_0x247c5a;var _0x74a968;let _0x97e070=this['_configService'][_0x6b9947(0x29f)](_0xc7ece1),_0x25bf22=(_0x97e070==null?void 0x0:_0x97e070[_0x6b9947(0x327)])??_0x3a4d7e;return((_0x74a968=(await this[_0x6b9947(0x1e3)][_0x6b9947(0x211)](_0x25bf22,{'headers':{'Content-Type':_0x6b9947(0x37e)}}))[_0x6b9947(0x2d9)])==null?void 0x0:_0x74a968['ticket'])??'';}};er=q([K(0x0,_0x3b8ccc(_0x5c9bca)),K(0x1,_0x3b8ccc(_0x47169a)),K(0x2,_0xdca818),K(0x3,_0x583b3f),K(0x4,_0x3b6c27)],er);let tr=class extends _0x50ca1f{constructor(_0x430ed6,_0x2c8633,_0x2c8c28){const _0x4ba7db=_0x247c5a;super(),this[_0x4ba7db(0x219)]=_0x430ed6,this['_httpService']=_0x2c8633,this['_configService']=_0x2c8c28;}async[_0x247c5a(0x407)](_0x411377,_0x2eaa87,_0x594aa3,..._0x51f2ce){const _0x568ad3=_0x247c5a;let _0x15ec09=this[_0x568ad3(0x219)]['getFocusedUnit']();if(!_0x15ec09)throw Error(_0x568ad3(0x36d));let _0x800198=(this[_0x568ad3(0x3e5)][_0x568ad3(0x29f)](_0x1db53f)??_0x41c70c)+'/'+_0x411377+_0x568ad3(0x280)+_0x2eaa87,_0x57d1bd={'scriptId':_0x411377,'runId':new URL(window[_0x568ad3(0x274)]['href'])[_0x568ad3(0x2f1)][_0x568ad3(0x211)]('runId')??'','function':_0x2eaa87,'unitId':_0x15ec09[_0x568ad3(0x308)](),'argsOfFunction':JSON[_0x568ad3(0x257)](_0x51f2ce),'invokeId':_0x594aa3[_0x568ad3(0x234)]??'','executionId':_0x594aa3[_0x568ad3(0x32a)]??''};try{let _0x5cefc6=await this[_0x568ad3(0x1e3)][_0x568ad3(0x20e)](_0x800198,{'body':_0x57d1bd});return _0x5cefc6[_0x568ad3(0x2d9)][_0x568ad3(0x3f2)]&&_0x5cefc6[_0x568ad3(0x2d9)][_0x568ad3(0x3f2)][_0x568ad3(0x2b2)]!==_0x530575['OK']?_0x568ad3(0x3d4):_0x5cefc6[_0x568ad3(0x2d9)][_0x568ad3(0x222)];}catch{return _0x568ad3(0x3d4);}}};tr=q([K(0x0,_0x3fd3c3),K(0x1,_0x3b8ccc(_0x47169a)),K(0x2,_0xdca818)],tr);const nr=0x7530,rr='ACTIVE_UNIT_EVENT_CHANNEL';var ir=class extends _0x50ca1f{constructor(){const _0x13bb30=_0x247c5a;super(),G(this,_0x13bb30(0x3fc),_0x4a2001()),G(this,'_selfUnitIDs',new Set()),G(this,'_unitOnClients',new Map()),G(this,_0x13bb30(0x3d7),null),G(this,'_clearOtherTimers',new Map()),G(this,'_unitStatus',new Map()),this[_0x13bb30(0x302)]();}[_0x247c5a(0x204)](){const _0x4432b1=_0x247c5a;super[_0x4432b1(0x204)](),this[_0x4432b1(0x2c2)][_0x4432b1(0x409)]((_0x5910de,_0x4cb8f6)=>this[_0x4432b1(0x20a)](_0x4cb8f6)),this[_0x4432b1(0x3d7)]&&window[_0x4432b1(0x2d4)](this[_0x4432b1(0x3d7)]);}[_0x247c5a(0x39c)](_0x3e114e){const _0x2fc8d5=_0x247c5a;return this[_0x2fc8d5(0x1d0)](_0x3e114e)['pipe'](_0xc32d41());}[_0x247c5a(0x215)](_0x41c769){const _0x1eaf40=_0x247c5a;this[_0x1eaf40(0x2db)]['size']===0x0&&this[_0x1eaf40(0x357)](),this[_0x1eaf40(0x2db)]['add'](_0x41c769),this['_send']({'type':0x0,'memberID':this[_0x1eaf40(0x3fc)],'unitIDs':[_0x41c769],'isForwarded':!0x1});}[_0x247c5a(0x25f)](_0x12dbec){const _0x3045b9=_0x247c5a;this[_0x3045b9(0x2db)][_0x3045b9(0x2ea)](_0x12dbec),this['_selfUnitIDs']['size']===0x0&&this[_0x3045b9(0x3d7)]&&window[_0x3045b9(0x2d4)](this['_heartbeatTimer']);}[_0x247c5a(0x302)](){const _0x39ebbe=_0x247c5a;this[_0x39ebbe(0x3a7)](_0x265f18(_0x1412e7(window,'storage')[_0x39ebbe(0x2d5)](_0x3c97cd=>{const _0xc85310=_0x39ebbe;if(_0x3c97cd[_0xc85310(0x2f6)]!==rr||!_0x3c97cd['newValue'])return;let _0x1020b7=JSON['parse'](_0x3c97cd['newValue']);this[_0xc85310(0x20f)](_0x1020b7);}))),window['addEventListener'](_0x39ebbe(0x383),()=>this['_send']({'type':0x1,'memberID':this[_0x39ebbe(0x3fc)],'unitIDs':Array[_0x39ebbe(0x287)](this[_0x39ebbe(0x2db)])}));}[_0x247c5a(0x20f)](_0x4bc15a){const _0x357dfe=_0x247c5a;switch(_0x4bc15a[_0x357dfe(0x2d8)]){case 0x0:this[_0x357dfe(0x253)](_0x4bc15a);break;case 0x1:this[_0x357dfe(0x2fa)](_0x4bc15a);break;case 0x2:this[_0x357dfe(0x3a4)](_0x4bc15a);}}[_0x247c5a(0x253)](_0x55f4ca){const _0x43ec82=_0x247c5a;let {unitIDs:_0x57d578,memberID:_0x53eb6f,isForwarded:_0x220ba8}=_0x55f4ca;_0x57d578[_0x43ec82(0x409)](_0x4fae80=>{const _0x5d51db=_0x43ec82;if(!_0x220ba8&&this[_0x5d51db(0x289)][_0x5d51db(0x2ed)](_0x4fae80)&&this[_0x5d51db(0x1d0)](_0x4fae80)[_0x5d51db(0x1c0)](_0x258828['OTHER_CLIENTS_EDITING']),!this[_0x5d51db(0x289)][_0x5d51db(0x2ed)](_0x4fae80)||!this[_0x5d51db(0x289)][_0x5d51db(0x211)](_0x4fae80)[_0x5d51db(0x2ed)](_0x53eb6f)){let _0x319dfd=this['_unitOnClients'][_0x5d51db(0x211)](_0x4fae80)||new Set();_0x319dfd['add'](_0x53eb6f),this[_0x5d51db(0x289)][_0x5d51db(0x21f)](_0x4fae80,_0x319dfd),this['_scheduleClearOtherTimer'](_0x53eb6f);}}),_0x220ba8||this[_0x43ec82(0x376)]({'type':0x0,'memberID':this[_0x43ec82(0x3fc)],'unitIDs':[...this[_0x43ec82(0x2db)]],'isForwarded':!0x0});}[_0x247c5a(0x23f)](_0xc5478a){const _0x4b8469=_0x247c5a;this['_removeClearOtherTimer'](_0xc5478a);let _0x3854bf=window[_0x4b8469(0x1c8)](()=>{const _0x57d16b=_0x4b8469;this[_0x57d16b(0x289)]['forEach'](_0x5a3311=>{const _0x17b116=_0x57d16b;_0x5a3311[_0x17b116(0x2ea)](_0xc5478a);});},nr*0x2);this[_0x4b8469(0x2c2)]['set'](_0xc5478a,_0x3854bf);}[_0x247c5a(0x20a)](_0x2bab7d){const _0x61cb3=_0x247c5a;if(this[_0x61cb3(0x2c2)][_0x61cb3(0x2ed)](_0x2bab7d)){let _0x22723f=this[_0x61cb3(0x2c2)][_0x61cb3(0x211)](_0x2bab7d);_0x22723f&&window['clearTimeout'](_0x22723f),this[_0x61cb3(0x2c2)][_0x61cb3(0x21f)](_0x2bab7d,null);}}[_0x247c5a(0x2fa)](_0x538da5){const _0x2a9c6d=_0x247c5a;let {memberID:_0x40cee5,unitIDs:_0x5dda0b}=_0x538da5;_0x5dda0b[_0x2a9c6d(0x409)](_0x351c62=>{const _0x55af1f=_0x2a9c6d;var _0x5cf7e5;let _0x5e9d84=this['_unitOnClients'][_0x55af1f(0x211)](_0x351c62);_0x5e9d84&&(_0x5e9d84['delete'](_0x40cee5),(_0x5cf7e5=this['_ensureSubject'](_0x351c62))==null||_0x5cf7e5[_0x55af1f(0x1c0)](_0x5e9d84[_0x55af1f(0x256)]===0x0?_0x258828[_0x55af1f(0x278)]:_0x258828['OTHER_CLIENTS_EDITING']));}),this[_0x2a9c6d(0x20a)](_0x40cee5);}[_0x247c5a(0x3a4)](_0x49e9d8){const _0x7ac323=_0x247c5a;this[_0x7ac323(0x23f)](_0x49e9d8[_0x7ac323(0x2f2)]);}[_0x247c5a(0x376)](_0x25b7bd){const _0xc7dfe4=_0x247c5a;localStorage[_0xc7dfe4(0x349)](rr,JSON[_0xc7dfe4(0x257)](_0x25b7bd));}['_scheduleHeartbeat'](){const _0x311fe1=_0x247c5a;this['_heartbeatTimer']=window[_0x311fe1(0x395)](()=>{const _0x38ec09=_0x311fe1;this[_0x38ec09(0x376)]({'type':0x2,'memberID':this[_0x38ec09(0x3fc)]});},nr);}['_ensureSubject'](_0x426355){const _0x414cb5=_0x247c5a;return this['_unitStatus']['has'](_0x426355)||this[_0x414cb5(0x36a)][_0x414cb5(0x21f)](_0x426355,new _0x24b100(_0x258828[_0x414cb5(0x278)])),this[_0x414cb5(0x36a)][_0x414cb5(0x211)](_0x426355);}};export{er as BrowserCollaborationSocketService,J as DesktopCollaborationStatusDisplayController,Rn as IURLService,tr as RemoteUniscriptService,On as SheetCollabCursorShape,$ as UniverCollaborationClientUIPlugin,ir as WebBrowserSingleActiveUnitService};