@univerjs-pro/collaboration-client-ui 0.15.2-insiders.20260119-edc718c → 0.15.2-insiders.20260124-12fc7f0

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 (53) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/es-ES.js +1 -1
  6. package/lib/cjs/locale/fa-IR.js +1 -1
  7. package/lib/cjs/locale/fr-FR.js +1 -1
  8. package/lib/cjs/locale/ja-JP.js +1 -1
  9. package/lib/cjs/locale/ko-KR.js +1 -1
  10. package/lib/cjs/locale/ru-RU.js +1 -1
  11. package/lib/cjs/locale/vi-VN.js +1 -1
  12. package/lib/cjs/locale/zh-CN.js +1 -1
  13. package/lib/cjs/locale/zh-TW.js +1 -1
  14. package/lib/es/facade.js +1 -1
  15. package/lib/es/index.js +1 -1
  16. package/lib/es/locale/ca-ES.js +1 -1
  17. package/lib/es/locale/en-US.js +1 -1
  18. package/lib/es/locale/es-ES.js +1 -1
  19. package/lib/es/locale/fa-IR.js +1 -1
  20. package/lib/es/locale/fr-FR.js +1 -1
  21. package/lib/es/locale/ja-JP.js +1 -1
  22. package/lib/es/locale/ko-KR.js +1 -1
  23. package/lib/es/locale/ru-RU.js +1 -1
  24. package/lib/es/locale/vi-VN.js +1 -1
  25. package/lib/es/locale/zh-CN.js +1 -1
  26. package/lib/es/locale/zh-TW.js +1 -1
  27. package/lib/facade.js +1 -1
  28. package/lib/index.js +1 -1
  29. package/lib/locale/ca-ES.js +1 -1
  30. package/lib/locale/en-US.js +1 -1
  31. package/lib/locale/es-ES.js +1 -1
  32. package/lib/locale/fa-IR.js +1 -1
  33. package/lib/locale/fr-FR.js +1 -1
  34. package/lib/locale/ja-JP.js +1 -1
  35. package/lib/locale/ko-KR.js +1 -1
  36. package/lib/locale/ru-RU.js +1 -1
  37. package/lib/locale/vi-VN.js +1 -1
  38. package/lib/locale/zh-CN.js +1 -1
  39. package/lib/locale/zh-TW.js +1 -1
  40. package/lib/umd/facade.js +1 -1
  41. package/lib/umd/index.js +1 -1
  42. package/lib/umd/locale/ca-ES.js +1 -1
  43. package/lib/umd/locale/en-US.js +1 -1
  44. package/lib/umd/locale/es-ES.js +1 -1
  45. package/lib/umd/locale/fa-IR.js +1 -1
  46. package/lib/umd/locale/fr-FR.js +1 -1
  47. package/lib/umd/locale/ja-JP.js +1 -1
  48. package/lib/umd/locale/ko-KR.js +1 -1
  49. package/lib/umd/locale/ru-RU.js +1 -1
  50. package/lib/umd/locale/vi-VN.js +1 -1
  51. package/lib/umd/locale/zh-CN.js +1 -1
  52. package/lib/umd/locale/zh-TW.js +1 -1
  53. package/package.json +15 -15
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x240916=_0x9124;(function(_0x14df41,_0x392860){const _0x3c8605=_0x9124,_0x5d3b27=_0x14df41();while(!![]){try{const _0x416a3e=parseInt(_0x3c8605(0x197))/0x1+parseInt(_0x3c8605(0x1b8))/0x2+parseInt(_0x3c8605(0x16f))/0x3+-parseInt(_0x3c8605(0x2cc))/0x4+parseInt(_0x3c8605(0xf5))/0x5+-parseInt(_0x3c8605(0x148))/0x6+-parseInt(_0x3c8605(0x17d))/0x7;if(_0x416a3e===_0x392860)break;else _0x5d3b27['push'](_0x5d3b27['shift']());}catch(_0xb31671){_0x5d3b27['push'](_0x5d3b27['shift']());}}}(_0xf9f6,0xbd63b));var Yt=Object[_0x240916(0x10c)],Wt=(_0x753bc5,_0x2f8d89,_0x16cc9d)=>_0x2f8d89 in _0x753bc5?Yt(_0x753bc5,_0x2f8d89,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x16cc9d}):_0x753bc5[_0x2f8d89]=_0x16cc9d,_=(_0x3e7e3f,_0x388dd2,_0x182eec)=>Wt(_0x3e7e3f,typeof _0x388dd2!=_0x240916(0x290)?_0x388dd2+'':_0x388dd2,_0x182eec);function _0x9124(_0x4eef53,_0x4385c1){_0x4eef53=_0x4eef53-0xce;const _0xf9f668=_0xf9f6();let _0x912412=_0xf9f668[_0x4eef53];return _0x912412;}import{jsx as _0xc53f37,jsxs as _0x20f8a2}from'react/jsx-runtime';import{CollaborationStatus as _0x1cb4cc,CollaborationSessionService as _0x27d44b,CollaborationController as _0x4a10bf,DataLoaderService as _0x361d6f,MemberService as _0x11723a,SessionStatus as _0x83b48e,ILocalCacheService as _0x45d2d0,CollaborationUIEventService as _0x1be880,CollaborationUIEventId as _0x892b1e,DocCollaborationEntity as _0x320279,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x2941e8,getLocalCacheKey as _0x373961,LOCAL_CACHE_INTERVAL as _0x197b86,LOCAL_CACHE_INTERVAL_KEY as _0x67fadd,UniverCollaborationClientPlugin as _0x3f596b,CollaborationSocketService as _0x5d1c82,DEFAULT_WS_SESSION_TICKET_URL as _0x67f602,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x2b191a,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x50718d,UnitStatus as _0x58c8e7}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x53f064,IUniverInstanceService as _0x81870d,Inject as _0x451de1,Injector as _0x30dac5,Disposable as _0xf771d3,createIdentifier as _0x3cc41a,ILogService as _0x48e521,ICommandService as _0x5e5675,Optional as _0x590a7d,RxDisposable as _0x3122c4,Workbook as _0x8b9ea7,DOC_RANGE_TYPE as _0x3c1574,debounce as _0x17e35b,Rectangle as _0x49f784,DisposableCollection as _0x113270,toDisposable as _0x13afa3,UniverInstanceType as _0x2e1b84,generateRandomId as _0x2664d4,COLORS as _0x2b8935,ColorKit as _0x19d4f9,ThemeService as _0x57f958,fromEventSubject as _0x63123d,Tools as _0x141325,CommandType as _0x445795,IConfigService as _0x1510c1,CanceledError as _0x100082,isFormulaString as _0x53c2f3,isFormulaId as _0x390515,ILocalStorageService as _0x3a4d59,DependentOn as _0x394ca8,Plugin as _0x18025e,merge as _0x3aa68c,registerDependencies as _0x4856aa,mergeOverrideWithDependencies as _0xc1ed92,touchDependencies as _0xa68686}from'@univerjs/core';import{useObservable as _0x2e10a2,useDependency as _0x3d0f09,IUIPartsService as _0x3cadbd,BuiltInUIPart as _0x5ab223,connectInjector as _0x3361c7,IBeforeCloseService as _0x159d32,IMessageService as _0x110574,INotificationService as _0xbbab2c}from'@univerjs/ui';import{BehaviorSubject as _0x37599d,switchMap as _0x38976a,of as _0x4cadb4,takeUntil as _0xb0eea8,debounceTime as _0x18bb22,Subject as _0x16d6c4,filter as _0xa9cd8e,merge as _0x4bce0e,combineLatest as _0x207d2b,fromEvent as _0x572af5,shareReplay as _0x5f297a,mapTo as _0x15fcb9,distinctUntilChanged as _0x57e7da}from'rxjs';import{Tooltip as _0x3726b7,clsx as _0x52ece7,MessageType as _0x24cf21}from'@univerjs/design';import{useRef as _0x4e3cf1,createElement as _0x21c330,forwardRef as _0x3805e3,useCallback as _0x5a6b05}from'react';import{IRemoteInstanceService as _0x6f5dda}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x103b32,RefRangeService as _0x44115d,SetSelectionsOperation as _0x12ebb5,SheetsSelectionsService as _0x368647,EffectRefRangId as _0xab8473,handleIRemoveRow as _0x3ad6e3,handleIRemoveCol as _0x4b51ea,handleMoveRange as _0x133eca,handleInsertRow as _0x209d65,handleInsertRangeMoveRight as _0x20f389,handleInsertRangeMoveDown as _0x3fc51e,handleInsertCol as _0x17c1bf,handleDeleteRangeMoveUp as _0x1d554c,handleDeleteRangeMoveLeft as _0x5940a0,runRefRangeMutations as _0x4fc651}from'@univerjs/sheets';import{Shape as _0xa92bc,Rect as _0x3d2ae1,getColor as _0x525b34,RegularPolygon as _0x542d56,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x97306c,Vector2 as _0x2e233c,SHEET_VIEWPORT_KEY as _0xf0062,IRenderManagerService as _0x4d689b}from'@univerjs/engine-render';import{HTTPService as _0x20e19d,ISocketService as _0x237440,WebSocketService as _0x276479}from'@univerjs/network';import{IDocClipboardService as _0x42c8e5,NodePositionConvertToCursor as _0x150b12,NodePositionConvertToRectRange as _0x19dc65,TEXT_RANGE_LAYER_INDEX as _0x15a21c,SetDocZoomRatioOperation as _0x1a7732,DocIMEInputManagerService as _0x193f11,DocStateChangeManagerService as _0x3199a5}from'@univerjs/docs-ui';import{IImageIoService as _0x152fb2}from'@univerjs/drawing';import{ITransformService as _0x10d68c,CollaborationEvent as _0x761ce2,isTransformMutationFailure as _0x699f6f,isTransformMutationsWithChangesetSuccess as _0x73df74,RevisionService as _0x5092a2,ISnapshotServerService as _0x295e6f}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x43bf97,RichTextEditingMutation as _0x87d6e4,DocSelectionManagerService as _0x5f3a65,DocSkeletonManagerService as _0x1102c9}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x1ec9a4,serializeRangeWithSheet as _0x47dbec,FormulaExecuteStageType as _0x39b8f6,FormulaExecutedStateType as _0xb5c3c9,SetFormulaCalculationStartMutation as _0x1971b5,SetFormulaCalculationNotificationMutation as _0x446ee4}from'@univerjs/engine-formula';import{map as _0x58bc15,filter as _0x491785,throttleTime as _0x3118d0,takeUntil as _0x2b4e82,switchMap as _0x1fc78b}from'rxjs/operators';import{SheetSkeletonManagerService as _0x3e7369,getCoordByCell as _0xdb9d86,getSheetObject as _0x453f91}from'@univerjs/sheets-ui';function Ge({ref:_0x30581c,..._0x5c497f}){const _0x409716=_0x240916,{icon:_0x39741f,id:_0x174781,className:_0x56f2b9,extend:_0x1fb941,..._0x5f46b1}=_0x5c497f,_0x8f1960=(_0x409716(0x2f4)+_0x174781+'\x20'+(_0x56f2b9||''))['trim'](),_0x4380c3=_0x4e3cf1('_'+vi());return At(_0x39741f,''+_0x174781,{'defIds':_0x39741f['defIds'],'idSuffix':_0x4380c3[_0x409716(0x131)]},{'ref':_0x30581c,'className':_0x8f1960,..._0x5f46b1},_0x1fb941);}function At(_0x1b83f3,_0x55b0cd,_0x1dd509,_0x2d3344,_0x2e70ff){const _0x471f3c=_0x240916;return _0x21c330(_0x1b83f3[_0x471f3c(0x2c8)],{'key':_0x55b0cd,...gi(_0x1b83f3,_0x1dd509,_0x2e70ff),..._0x2d3344},(Ei(_0x1b83f3,_0x1dd509)[_0x471f3c(0x1af)]||[])[_0x471f3c(0x281)]((_0x53b6b8,_0x29b22c)=>At(_0x53b6b8,_0x55b0cd+'-'+_0x1b83f3[_0x471f3c(0x2c8)]+'-'+_0x29b22c,_0x1dd509,void 0x0,_0x2e70ff)));}function gi(_0x31fca8,_0x1b969b,_0x271c04){const _0x1bc8e6=_0x240916,_0x30e3a2={..._0x31fca8[_0x1bc8e6(0x244)]};_0x271c04!=null&&_0x271c04[_0x1bc8e6(0x195)]&&_0x30e3a2['fill']===_0x1bc8e6(0x195)&&(_0x30e3a2[_0x1bc8e6(0x224)]=_0x271c04['colorChannel1']),_0x31fca8['tag']==='mask'&&_0x30e3a2['id']&&(_0x30e3a2['id']=_0x30e3a2['id']+_0x1b969b[_0x1bc8e6(0x27c)]),Object['entries'](_0x30e3a2)[_0x1bc8e6(0x2e8)](([_0x1461f5,_0xf19524])=>{const _0x3bdbee=_0x1bc8e6;_0x1461f5===_0x3bdbee(0x249)&&typeof _0xf19524==_0x3bdbee(0x19c)&&(_0x30e3a2[_0x1461f5]=_0xf19524['replace'](/url\(#(.*)\)/,_0x3bdbee(0x297)+_0x1b969b['idSuffix']+')'));});const {defIds:_0x195eb6}=_0x1b969b;return!_0x195eb6||_0x195eb6[_0x1bc8e6(0xfb)]===0x0||(_0x31fca8['tag']==='use'&&_0x30e3a2[_0x1bc8e6(0x222)]&&(_0x30e3a2[_0x1bc8e6(0x222)]=_0x30e3a2[_0x1bc8e6(0x222)]+_0x1b969b[_0x1bc8e6(0x27c)]),Object[_0x1bc8e6(0xe9)](_0x30e3a2)[_0x1bc8e6(0x2e8)](([_0x2ad8bf,_0x5a5442])=>{const _0x15e23a=_0x1bc8e6;typeof _0x5a5442==_0x15e23a(0x19c)&&(_0x30e3a2[_0x2ad8bf]=_0x5a5442[_0x15e23a(0x12a)](/url\(#(.*)\)/,'url(#$1'+_0x1b969b['idSuffix']+')'));})),_0x30e3a2;}function Ei(_0x561505,_0x42f9d1){const _0x178cb5=_0x240916;var _0x55f2da;const {defIds:_0x5e7036}=_0x42f9d1;return!_0x5e7036||_0x5e7036[_0x178cb5(0xfb)]===0x0?_0x561505:_0x561505['tag']==='defs'&&((_0x55f2da=_0x561505[_0x178cb5(0x1af)])!=null&&_0x55f2da[_0x178cb5(0xfb)])?{..._0x561505,'children':_0x561505[_0x178cb5(0x1af)][_0x178cb5(0x281)](_0x53a312=>typeof _0x53a312[_0x178cb5(0x244)]['id']=='string'&&_0x5e7036&&_0x5e7036['includes'](_0x53a312['attrs']['id'])?{..._0x53a312,'attrs':{..._0x53a312[_0x178cb5(0x244)],'id':_0x53a312[_0x178cb5(0x244)]['id']+_0x42f9d1['idSuffix']}}:_0x53a312)}:_0x561505;}function vi(){const _0x4a9e19=_0x240916;return Math[_0x4a9e19(0x21d)]()[_0x4a9e19(0x257)](0x24)[_0x4a9e19(0x1ce)](0x2,0x8);}Ge[_0x240916(0x18b)]=_0x240916(0x134);const pi={'tag':_0x240916(0x138),'attrs':{'xmlns':_0x240916(0x25f),'fill':_0x240916(0x319),'viewBox':'0\x200\x2016\x2016','width':_0x240916(0x18d),'height':_0x240916(0x18d)},'children':[{'tag':'g','attrs':{'clipPath':_0x240916(0x204)},'children':[{'tag':_0x240916(0x10a),'attrs':{'stroke':'currentColor','d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x240916(0x229),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x240916(0x196),'attrs':{},'children':[{'tag':_0x240916(0x177),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x240916(0x10a),'attrs':{'fill':_0x240916(0x20b),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-icon_clip0_910_343']},Pt=_0x3805e3(function(_0x54d846,_0x4cefd5){const _0xdabca6=_0x240916;return _0x21c330(Ge,Object[_0xdabca6(0x23d)]({},_0x54d846,{'id':_0xdabca6(0x1a7),'ref':_0x4cefd5,'icon':pi}));});Pt['displayName']=_0x240916(0x137);const Oi={'tag':_0x240916(0x138),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x240916(0x319),'viewBox':_0x240916(0x1c6),'width':_0x240916(0x18d),'height':_0x240916(0x18d)},'children':[{'tag':'g','attrs':{'clipPath':_0x240916(0x16b)},'children':[{'tag':_0x240916(0x10a),'attrs':{'stroke':_0x240916(0x2ac),'d':_0x240916(0x140),'strokeLinecap':_0x240916(0x229),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x240916(0x196),'attrs':{},'children':[{'tag':_0x240916(0x177),'attrs':{'id':_0x240916(0x13d)},'children':[{'tag':_0x240916(0x10a),'attrs':{'fill':_0x240916(0x20b),'d':_0x240916(0x135),'transform':_0x240916(0x2c6)}}]}]}],'defIds':[_0x240916(0x13d)]},wt=_0x3805e3(function(_0x108499,_0x4f1ba8){const _0x65eae=_0x240916;return _0x21c330(Ge,Object[_0x65eae(0x23d)]({},_0x108499,{'id':_0x65eae(0x261),'ref':_0x4f1ba8,'icon':Oi}));});wt[_0x240916(0x18b)]=_0x240916(0x252);function Ti(_0x1eee67){const _0x2f0ecb=_0x240916;switch(_0x1eee67){case _0x1cb4cc[_0x2f0ecb(0x147)]:return _0x2f0ecb(0x191);case _0x1cb4cc[_0x2f0ecb(0x279)]:return _0x2f0ecb(0x105);case _0x1cb4cc[_0x2f0ecb(0x1d5)]:return'collabStatus.fetchMiss';case _0x1cb4cc[_0x2f0ecb(0x23c)]:return _0x2f0ecb(0x1eb);case _0x1cb4cc[_0x2f0ecb(0x314)]:case _0x1cb4cc[_0x2f0ecb(0x1ac)]:return _0x2f0ecb(0x17f);case _0x1cb4cc[_0x2f0ecb(0xfd)]:case _0x1cb4cc[_0x2f0ecb(0x25d)]:return _0x2f0ecb(0x146);}}function Ci(_0x45a1c8){const _0x99e4d7=_0x240916,{status$:_0x2543ae}=_0x45a1c8,_0x5948ec=_0x2e10a2(_0x2543ae,_0x1cb4cc[_0x99e4d7(0x23c)]),_0x29514b=_0x3d0f09(_0x53f064),_0x131fcd=_0x3d0f09(_0x27d44b),_0x1a58ed=_0x5948ec!==_0x1cb4cc[_0x99e4d7(0x147)],_0x50d72c=_0x29514b['t'](Ti(_0x5948ec)),_0x21f88b=_0x1a58ed?_0xc53f37(wt,{}):_0xc53f37(Pt,{}),_0x22f74a=_0x5a6b05(()=>{_0x1a58ed||_0x131fcd['reconnect']();},[_0x1a58ed,_0x131fcd]);function _0x31b726(){const _0x1cbbec=_0x99e4d7;return _0x20f8a2(_0x1cbbec(0x17a),{'className':_0x1cbbec(0x287),'onClick':_0x22f74a,'children':[_0xc53f37(_0x1cbbec(0x17a),{'className':_0x52ece7('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x1a58ed,'univer-text-red-500':!_0x1a58ed}),'children':_0x21f88b}),_0xc53f37('div',{'className':_0x1cbbec(0x15b),'children':_0x50d72c})]});}return _0x1a58ed?_0x31b726():_0xc53f37(_0x3726b7,{'title':_0x29514b['t'](_0x99e4d7(0x15f)),'children':_0x31b726()});}var Ri=Object[_0x240916(0x1f8)],Di=(_0x20ee02,_0x11739e,_0x57a343,_0x2e891b)=>{const _0x245bb2=_0x240916;for(var _0x118a0f=_0x2e891b>0x1?void 0x0:_0x2e891b?Ri(_0x11739e,_0x57a343):_0x11739e,_0x121e0f=_0x20ee02[_0x245bb2(0xfb)]-0x1,_0x47c329;_0x121e0f>=0x0;_0x121e0f--)(_0x47c329=_0x20ee02[_0x121e0f])&&(_0x118a0f=_0x47c329(_0x118a0f)||_0x118a0f);return _0x118a0f;},se=(_0x5ded3b,_0xa3023b)=>(_0x2b8802,_0x3b8c3c)=>_0xa3023b(_0x2b8802,_0x3b8c3c,_0x5ded3b);let ae=class extends _0xf771d3{constructor(_0x5b858c,_0x348391,_0x585164,_0x5ddb38){const _0xed6be6=_0x240916;super(),_(this,_0xed6be6(0x2a1),new _0x37599d(_0x1cb4cc[_0xed6be6(0x23c)])),(this['_univerInstanceService']=_0x5b858c,this[_0xed6be6(0x26e)]=_0x348391,this[_0xed6be6(0x114)]=_0x585164,this[_0xed6be6(0x2cd)]=_0x5ddb38,this[_0xed6be6(0x306)](),this['_initStatusListener']());}[_0x240916(0x21e)](){const _0x4272ed=_0x240916;this[_0x4272ed(0xe0)](this['_univerInstanceService'][_0x4272ed(0x1ca)][_0x4272ed(0x1e1)](_0x38976a(()=>{const _0x5a408f=_0x4272ed,_0x3ce369=this[_0x5a408f(0x1d7)]['getFocusedUnit']();return _0x3ce369?this['_collaborationController'][_0x5a408f(0x153)](_0x3ce369[_0x5a408f(0x2a6)]()):_0x4cadb4(null);}),_0x38976a(_0x3850ba=>_0x3850ba?_0x3850ba['status$']:_0x4cadb4(_0x1cb4cc['NOT_COLLAB'])))[_0x4272ed(0x111)](_0x246a8a=>{const _0x2eb6f0=_0x4272ed;this['_status$'][_0x2eb6f0(0x1cc)](_0x246a8a);}));}['_initStatusComponent'](){const _0x4f22f2=_0x240916;this[_0x4f22f2(0xe0)](this[_0x4f22f2(0x2cd)]['registerComponent'](_0x5ab223[_0x4f22f2(0x22f)],()=>_0x3361c7(Ni({'status$':this[_0x4f22f2(0x2a1)][_0x4f22f2(0x24c)]()}),this['_injector'])));}};ae=Di([se(0x0,_0x81870d),se(0x1,_0x451de1(_0x30dac5)),se(0x2,_0x451de1(_0x4a10bf)),se(0x3,_0x3cadbd)],ae);function Ni(_0x1435a4){const {status$:_0xae89cd}=_0x1435a4;return function(){return _0xc53f37(Ci,{'status$':_0xae89cd});};}const yt=_0x3cc41a(_0x240916(0x292));var bi=Object[_0x240916(0x1f8)],Li=(_0x145187,_0x5d48c1,_0x3b4162,_0x4b3d64)=>{const _0x32d37c=_0x240916;for(var _0x3e0fda=_0x4b3d64>0x1?void 0x0:_0x4b3d64?bi(_0x5d48c1,_0x3b4162):_0x5d48c1,_0x395425=_0x145187[_0x32d37c(0xfb)]-0x1,_0x24cb5e;_0x395425>=0x0;_0x395425--)(_0x24cb5e=_0x145187[_0x395425])&&(_0x3e0fda=_0x24cb5e(_0x3e0fda)||_0x3e0fda);return _0x3e0fda;},K=(_0x58b31c,_0xd8e885)=>(_0x3d4475,_0x44ff36)=>_0xd8e885(_0x3d4475,_0x44ff36,_0x58b31c);let ce=class extends _0x3122c4{constructor(_0x42e56c,_0x5bb4bf,_0x2446dc,_0xcd04ee,_0x5e2a60){const _0x22f108=_0x240916;super(),this[_0x22f108(0x13f)]=_0x42e56c,this[_0x22f108(0x26f)]=_0x5bb4bf,this[_0x22f108(0x208)]=_0x2446dc,this[_0x22f108(0x130)]=_0xcd04ee,_0x5e2a60?_0x5e2a60==null||_0x5e2a60[_0x22f108(0x142)]()['then'](()=>this['_init']()):(this[_0x22f108(0x26f)][_0x22f108(0x28c)]('[CollaborationDataLoaderController]',_0x22f108(0x2ba)),this[_0x22f108(0x163)]());}async['_init'](){const _0x38ad3d=_0x240916,_0x10e190=this[_0x38ad3d(0x13f)][_0x38ad3d(0x2ec)](_0x38ad3d(0x262)),_0x19b4fc=this['_urlService'][_0x38ad3d(0x2ec)]('type'),_0x296a39=this['_urlService']['getParam'](_0x38ad3d(0x218));if(!_0x10e190||!_0x19b4fc){this[_0x38ad3d(0x26f)][_0x38ad3d(0x28c)](_0x38ad3d(0x26b),_0x38ad3d(0xee));return;}const _0x529284=await this[_0x38ad3d(0x130)]['loadUnit'](_0x10e190,Number(_0x19b4fc),_0x296a39);_0x529284&&_0x529284 instanceof _0x8b9ea7&&this[_0x38ad3d(0x2e4)](_0x529284);}async[_0x240916(0x2e4)](_0x1b97cf){const _0x41c6bd=_0x240916;await this[_0x41c6bd(0xf6)](_0x1b97cf),_0x1b97cf[_0x41c6bd(0x14f)]['pipe'](_0xb0eea8(this[_0x41c6bd(0x221)]))[_0x41c6bd(0x111)](_0xfb7095=>{_0xfb7095&&this['_updateURLWithCurrentState'](_0xfb7095);}),this[_0x41c6bd(0x13f)]['urlChange$'][_0x41c6bd(0x1e1)](_0xb0eea8(this[_0x41c6bd(0x221)]))['subscribe'](()=>this[_0x41c6bd(0xf6)](_0x1b97cf));}['_updateURLWithCurrentState'](_0x27556e,_0xd4c260=!0x1){const _0x243de2=_0x240916,_0x3f0eb3=this[_0x243de2(0x13f)][_0x243de2(0x2ec)](_0x243de2(0x218));_0x27556e[_0x243de2(0x2c5)]()!==_0x3f0eb3&&this[_0x243de2(0x13f)][_0x243de2(0x277)](_0x243de2(0x218),_0x27556e[_0x243de2(0x2c5)](),_0xd4c260);}async['_updateSubUnitFromURLParams'](_0x1b8671){const _0x2328fd=_0x240916;var _0x605756;const _0xf2d64b=this[_0x2328fd(0x13f)]['getParam'](_0x2328fd(0x218));if(!_0xf2d64b||!_0x1b8671[_0x2328fd(0x12b)](_0xf2d64b)){const _0x2a85df=_0x1b8671[_0x2328fd(0x139)]()[0x0],_0x413455=_0x1b8671[_0x2328fd(0x12b)](_0x2a85df);if(!_0x413455)return;this[_0x2328fd(0x124)](_0x413455,!0x0),await this[_0x2328fd(0x208)][_0x2328fd(0x282)](_0x103b32['id'],{'unitId':_0x1b8671[_0x2328fd(0x2a6)](),'subUnitId':_0x2a85df});return;}((_0x605756=_0x1b8671[_0x2328fd(0x178)]())==null?void 0x0:_0x605756['getSheetId']())!==_0xf2d64b&&await this['_commandService'][_0x2328fd(0x282)](_0x103b32['id'],{'unitId':_0x1b8671[_0x2328fd(0x2a6)](),'subUnitId':_0xf2d64b});}};ce=Li([K(0x0,yt),K(0x1,_0x48e521),K(0x2,_0x5e5675),K(0x3,_0x451de1(_0x361d6f)),K(0x4,_0x590a7d(_0x6f5dda))],ce);var Ui=Object[_0x240916(0x1f8)],Mi=(_0x556df4,_0x3ecdc1,_0x4345ac,_0x1ad4a7)=>{const _0x72320e=_0x240916;for(var _0x338144=_0x1ad4a7>0x1?void 0x0:_0x1ad4a7?Ui(_0x3ecdc1,_0x4345ac):_0x3ecdc1,_0x4199ca=_0x556df4[_0x72320e(0xfb)]-0x1,_0x1acf0b;_0x4199ca>=0x0;_0x4199ca--)(_0x1acf0b=_0x556df4[_0x4199ca])&&(_0x338144=_0x1acf0b(_0x338144)||_0x338144);return _0x338144;},rt=(_0x2212d7,_0x242ba5)=>(_0x3ea308,_0x20cc81)=>_0x242ba5(_0x3ea308,_0x20cc81,_0x2212d7);let $e=class extends _0x3122c4{constructor(_0x4b98e4,_0x7e8656){const _0x25cdf7=_0x240916;super(),this[_0x25cdf7(0x2e7)]=_0x4b98e4,this[_0x25cdf7(0x1e7)]=_0x7e8656,this[_0x25cdf7(0x163)]();}[_0x240916(0x163)](){const _0x49b763=_0x240916,_0x292a22=this;this[_0x49b763(0xe0)](this[_0x49b763(0x2e7)][_0x49b763(0xd6)]({'onBeforePasteImage':async _0x4acd35=>{const _0x2f3850=_0x49b763,_0x194a8f=await _0x292a22[_0x2f3850(0x1e7)][_0x2f3850(0x2b2)](_0x4acd35);return _0x194a8f?{'source':_0x194a8f[_0x2f3850(0x234)],'imageSourceType':_0x194a8f[_0x2f3850(0x27a)]}:null;}}));}};$e=Mi([rt(0x0,_0x42c8e5),rt(0x1,_0x152fb2)],$e);const ot=[_0x240916(0x303),_0x240916(0x2eb),_0x240916(0x186),_0x240916(0x1ef),'blue.400',_0x240916(0x23f)];class Ke extends _0xf771d3{constructor(){const _0x565a37=_0x240916;super(...arguments),_(this,_0x565a37(0xf9),new Map()),_(this,_0x565a37(0x104),0x0);}[_0x240916(0x2e6)](_0x57d481){const _0x31274f=_0x240916;if(this['_assignedColors'][_0x31274f(0x298)](_0x57d481))return this['_assignedColors'][_0x31274f(0x1c7)](_0x57d481);const _0x4a7ff5=ot[this[_0x31274f(0x104)]];return this[_0x31274f(0x104)]=(this['_colorIndex']+0x1)%ot[_0x31274f(0xfb)],this[_0x31274f(0xf9)][_0x31274f(0x26a)](_0x57d481,_0x4a7ff5),_0x4a7ff5;}}function $t(_0x547dfb){const _0x3bf0f9=_0x240916;let _0x48aadc='';for(const _0x5663fd of _0x547dfb){const {startOffset:_0x3e9bcf,endOffset:_0x93db27,isActive:_0x539810,rangeType:_0x4bc5f2,segmentId:_0x2a96dc,segmentPage:_0x2563f1}=_0x5663fd;_0x48aadc[_0x3bf0f9(0xfb)]&&(_0x48aadc+=','),_0x48aadc+=_0x3e9bcf+':'+_0x93db27+':'+(_0x539810?'1':'0')+':'+_0x4bc5f2+':'+_0x2a96dc+':'+_0x2563f1;}return _0x48aadc;}function Ai(_0x28000b){const _0x4fde62=_0x240916,_0x3e2bc1=_0x28000b['split'](','),_0x255663=[];for(const _0x2ab7bc of _0x3e2bc1){const [_0x203358,_0x295579,_0x1599e4,_0x12e04f,_0x385541,_0x4a123a]=_0x2ab7bc['split'](':');_0x255663['push']({'startOffset':Number(_0x203358),'endOffset':Number(_0x295579),'collapsed':_0x203358===_0x295579,'isActive':_0x1599e4==='1','rangeType':_0x12e04f===_0x3c1574[_0x4fde62(0x1dd)]?_0x3c1574[_0x4fde62(0x1dd)]:_0x3c1574[_0x4fde62(0x241)],'segmentId':typeof _0x385541==_0x4fde62(0x19c)?String(_0x385541):'','segmentPage':Number(_0x4a123a!=null?_0x4a123a:-0x1)});}return _0x255663[_0x4fde62(0x2d7)](_0x1e0fce=>_0x1e0fce[_0x4fde62(0x173)])||(_0x255663[0x0][_0x4fde62(0x173)]=!0x0),_0x255663;}class ze extends _0x3122c4{constructor(){const _0x3b9ffd=_0x240916;super(...arguments),_(this,'_collabCursorState$',new _0x37599d(null)),_(this,_0x3b9ffd(0x19e),this[_0x3b9ffd(0x2b0)]['asObservable']());}[_0x240916(0x2f3)](_0x2b5243){const _0x2c0048=_0x240916,{unitID:_0x1ff308,memberID:_0x24f0a7,textRanges:_0x2c2f60}=_0x2b5243,_0x544278=$t(_0x2c2f60);if(_0x544278==='')return;const _0x79ff50={'unitID':_0x1ff308,'memberID':_0x24f0a7,'selection':_0x544278};this['_collabCursorState$'][_0x2c0048(0x1cc)](_0x79ff50);}}var Pi=Object[_0x240916(0x1f8)],wi=(_0x7cc092,_0x108c22,_0x117913,_0x5c82b2)=>{for(var _0x4c1c15=_0x5c82b2>0x1?void 0x0:_0x5c82b2?Pi(_0x108c22,_0x117913):_0x108c22,_0x5610d1=_0x7cc092['length']-0x1,_0x14e828;_0x5610d1>=0x0;_0x5610d1--)(_0x14e828=_0x7cc092[_0x5610d1])&&(_0x4c1c15=_0x14e828(_0x4c1c15)||_0x4c1c15);return _0x4c1c15;},A=(_0x5e9e66,_0xdd2f0d)=>(_0x5673e3,_0x2623b0)=>_0xdd2f0d(_0x5673e3,_0x2623b0,_0x5e9e66);function _0xf9f6(){const _0x183878=['PAYMENT_CHANNEL_NOT_SUPPORT','CONFLICT','imageSourceType','_ensureSubject','idSuffix','WECHAT_HAS_BEEN_BOUND','lineTo','_drawTextRange','moveTo','map','executeCommand','ticket','text','CONNECTOR_DATA_TOO_LARGE','stringify','univer-flex\x20univer-items-center','LICENSE_IMPORT_SIZE_EXCEEDED','_textBubble','cursorInfo','_docTransformSelectionsService','debug','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_selfUnitIDs','_removeClearOtherTimer','symbol','_refreshCollabCursors','uni.network.url-service','application/json','getStateCache','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','pushState','url(#$1','has','_lastPointer','YUUMI_TABLE_NOT_FOUND_IN_UNIT','USER_IS_ANONYMOUS','_heartbeatTimer','_cursorInfo$','_scheduleHeartbeat','_checkAndWaitForCalculationPermission','UNIVER_DOC','_status$','column','_saveCache','_labelPosition','?taskId=','getUnitId','sessionStatus$','ENTITLE_INVALID_COUPON_CODE','ENSURE_SNAPSHOT_EXECUTION','_docSkeletonManagerService','getTypeOfUnitDisposed$','currentColor','code','_memberID','AUTHORIZE_CODE_ILLEGAL','_collabCursorState$','_render','saveImage','arc','_anchor','startsWith','MUTATION','getUnit','_clearOtherTimers','collaboration.single-unit.warning','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','fillStyle','PY_RUNTIME_SCRIPT_ERROR','_doCreateSocket','_onRefRangeChange','_localStorageService','releaseFormulaLimitUrl','_docTransformStateCacheService','permission.title','endRow','getAncestorScale','getSheetId','translate(.97)','_hover','tag','engine','getCollabCursors$','_scheduleSaving','126044AdPoiH','_uiPartsService','ERROR_AGAIN','_beforeCloseService','removeParam','_uploadLog','UPDATE_CURSOR','_handleEvent','_docSkeleton','name','runId','some','lineno','onPointerLeave$','wsSessionTicketUrl','key','backgroundColor','RemoveColCommandId','_config','_draw','_showGuardMessage','setAlpha','YUUMI_SUBSCRIPTION_NOT_FOUND','toRgbString','_setupSubUnitSync','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','assignAColorForMemberID','_docClipboardService','forEach','REDEMPTION_CODE_FULLY_REDEEMED','ENTITLE_COUPON_USED_UP','jiqing.500','getParam','getUndoRedoMutationParamsCache','InsertColCommandId','deepClone','type','_saveTaskMap','_onCursorDelete','syncEditingCollabCursor','univerjs-icon\x20univerjs-icon-','SNAPSHOT_INVALID_SNAPSHOT','popstate','_maxFormulaLimit','_notificationService','rgba(255,\x20255,\x20255,\x200.01)','_sheetSkeletonManagerService','getTypeOfUnitAdded$','executionId','START_CALCULATION','ENTITLE_NEED_BILLING_ADDRESS','_entityInit$','_instanceService','REDEMPTION_USER_NOT_ELIGIBLE','startColumn','purple.300','stageInfo','_getSessionTicket','_initStatusComponent','_setFormulaLimitStatus','cursorInfo$','labelPosition','_docStateChangeManagerService','EMAIL_HAS_BEEN_BOUND','sessionTicket','complete','setInterval','LICENSE_DISTRO_REJECTED','with','_handleHeartbeatEvent','filename','_getSheetObject','AWAITING','InsertRangeMoveRightCommandId','endColumn','_collabCursorController','session.connection-failed','none','_cursors','override','_entities','urlChange$','_transformUndoRedoStack','_themeService','_online','restore','beforeCommandExecuted','addClipboardHook','USER_NOT_FOUND','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','Error','MOBILE_VERIFY_CODE_MISMATCH','clearTimeout','requireSession','flatMap','storage','LICENSE_MAX_UNITS_EXCEEDED','disposeWithMe','ENTITLE_REPORT_LIMIT_EXCEED','black','_updateCollabCursors','size','SNAPSHOT_HAS_BEEN_REMOVED','YUUMI_ALL_TABLES_IS_INVALID','_clearPolling','_getMergeRange','entries','event$','_disabled','MoveRangeCommandId','_colorAssignService','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','/universer-api/license/formula/limit/done','beginPath','getRenderById','ENTITLE_CAN_NOT_BUY_LOWER_OTP','replaceState','Loading','3612635kxkGxK','_updateSubUnitFromURLParams','ONLINE','getFocusedUnit','_assignedColors','setTimeout','length','_session','SYNCED','#FFF','_initCommandExecutedListener','unshift','getDocRanges','top','m2Prime','_colorIndex','collabStatus.conflict','max','onStarting','createInstance','hide','path','transformMutationsWithChangeset','defineProperty','dirtyRanges','session.collaboration-timeout','href','registerRefRange','subscribe','_getScale','m1Prime','_collaborationController','currentUsage','onPointerMove$','_docSyncEditingCollabCursorService','getValue','min','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','drawWith','loadOfflineData','_initCommandInterceptor','_removeCollabCursors','YUUMI_RATE_OVER_LIMIT','clearInterval','_monkeyPatchLogService','catch','addObject','_updateURLWithCurrentState','INVITE_CODE_ALREADY_BOUND','collab-text-range-','result','_transformHistoryAndStateStack','getColorFromTheme','replace','getSheetBySheetId','Unknown\x20user','enableLocalCache','totalFormulasToCalculate','setItem','_dataLoaderService','current','getRangePointData','updateOfflineData','UniverIcon','M0\x200H16V16H0z','_handleJoinEvent','OffLineIcon','svg','getUnhiddenWorksheets','_setupBeforeClosingHandler','CHANGESET_REVISION_CONFILICT','_collaborationSessionService','on-line-icon_clip0_910_349','shift','_urlService','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','redoState','whenReady','memberID','ENTITLE_DUP_SUBSCRIPTION','_lastResponseTimestamp','collabStatus.synced','OFFLINE','4616250iJrskm','REDEMPTION_INVALID_CODE','from','YUUMI_AI_RUN_FAILED','getOffsetConfig','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','now','activeSheet$','Success','entityInit$','NO_OTHER_CLIENTS_EDITING','getCollabEntity$','ALREADY_EXISTS','getCellMatrix','transformSelections','bottom','_startDocCollabCursor','includes','_cursor','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','APPLY_DUPLICATED','PERMISSION_DENIED','_name','collab-client.tooltip.reconnect','transform','FromArray','exhaustSavingTask','_init','then','_unitOnClients','transformIMECache','_unitStatus','findNodePositionByCharIndex','onLocalMutation','_checkCalculationAvailable','url(#on-line-icon_clip0_910_349)','textRanges','collaboration-client-ui.config','message','2845146ZXnmoF','MOBILE_HAS_BEEN_BOUND','onCommandExecuted','mutations','isActive','_color','location','formula.calculation.unable','clipPath','getActiveSheet','_drawAnchor','div','transformRemoteChangeset','limitInfo','10707529NtcHBt','REDEMPTION_USER_REDEEM_TIMES_EXCEED','collabStatus.syncing','APPLY_REJECT','/universer-api/license/formula/limit/status','onRendered','transformMutation','registerRenderModule','dispose','green.600','OTHER_CLIENTS_EDITING','_cursorShapes','onTransformChange$','history','displayName','_initUserListener','1em','UNDEFINED','subscribeEvent','_messageService','collabStatus.offline','REDEMPTION_CODE_INACTIVE','currentTheme$','removeEventListener','colorChannel1','defs','143075WOZyfe','_scene','/universer-api/license/formula/limit/start','add','Failed','string','_httpService','collabCursorState$','_backgroundColor','getCurrent','RemoveRowCommandId','_revisionService','_startSheetCollabCursor','SOCKET_FAILED','_docTransformIMECacheService','setActiveRange','off-line-icon','triggerDblclick','createSocket','isEditing','...','AWAITING_WITH_PENDING','_releaseCalculationLimit','getVpScrollXYInfoByPosToVp','children','_toggleOffline','_roomMembers$','_startCalculationLimit','unsubscribe','USERS_LEAVE','doc.mutation.rich-text-editing','send','_shapes','2584576yePTuy','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_toggleOnline','EMAIL_VERIFY_CODE_MISMATCH','_drawRectRange','_getSaveTimeout','origin','_transformService','setConfig','_applyCommand','evenodd','[LogService\x20Error]:\x20','_context','startRow','0\x200\x2017\x2016','get','setUndoRedoMutationParamsCache','measureText','focused$','_taskIds','next','getViewport','substring','getMemberID','_initEvent','getCurrentRevOfUnit','post','YUUMI_CONNECTOR_URL_NOT_FOUND','\x20at\x20','FETCH_MISS','_collabSessionService','_univerInstanceService','params','APPLY_REVISION_CONFILICT','_initDependencies','actions','delete','TEXT','eventID','SOCKET_FAILED_RETRY','push','pipe','getUnitStatus$','_hideTimer','body','_registerRenderDependencies','REDEMPTION_CODE_HAS_BEEN_CREATED','_imageIoService','/universer-api/frontend/logs','row','YUUMI_UNABLE_LOAD_URL','collabStatus.notCollab','_pollingInterval','getCellPositionByOffset','getSkeleton','red.300','_handleHover','parse','_id','CLOSE_ROOM','save','init','setShapeProps','session.will-retry','getOwnPropertyDescriptor','isArray','values','onPointerEnter$','unitId','DATA_SOURCE_TOO_LARGE','_handleLeaveEvent','_transformPreviousActiveRange','transformStateCache','_initResize','functionsExecutedState','YUUMI_URL_COL_OUT_OF_RANGE','url(#off-line-icon_clip0_910_343)','DeleteRangeMoveUpCommandId','APPLY_NON_SEQUENTIAL_REVISION','ENTITLE_COUPON_EXPIRED','_commandService','YUUMI_NO_CUBOID_FOR_QUESTION','error','white','APPLY_PERMISSION_DENIED','disposeUnit','parseInt','_initUnhandledRejectionListener','newValue','searchParams','_renderManagerService','data','getMember','unhandledrejection','addEventListener','runOnServer','subunit','_onCursorUpdate','_cachedData','CURRENT_STATUS_CANNOT_OPERATE','roomMembers','random','_initStatusListener','collaboration.closeRoom','range','dispose$','xlink:href','width','fill','LICENSE_EXPORT_SIZE_EXCEEDED','_hasFormulaInDirtyRanges','_syncEditingCollabCursorService','_anchorDot','round','_initEntityListener','all','unitID','LOGIN_TOKEN_PROCESSING_FAILED','onMouseMove','HEADER_MENU','INVALID_INVITE_CODE','enableFrontendLog','INVALID_ARGUMENT','_registerDependencies','source','INVITE_CODE_REQUIRED','maxFormulaLimit','USER_NOT_INVITED_CODE','_range','_localeService','formula.calculation.started','selections','NOT_COLLAB','assign','_refRangeService','yellow.400','REDEMPTION_CODE_NOT_STARTED','RECT','NOT_FOUND','INTERNAL_ERROR','attrs','_memberService','Warning','setStateCache','search','mask','_scheduleClearOtherTimer','fillText','asObservable','_hovered','UNAUTHENTICATED','_send','color','COMPLETION_FINISHED','OnLineIcon','selection','undoState','TOO_MANY_REQUESTS','transformByState','toString','_collaborationUIEventService','_initWindowErrorListener','[Unhandled\x20Rejection]:\x20','saveTaskMap','UNRECOGNIZED','PENDING','ENTITLE_CHAT_LIMIT_EXCEED','http://www.w3.org/2000/svg','_eventUnsubscribe','on-line-icon','unit','_configService','INVITE_CODE_HAS_BEEN_UES','_getAnchorBounding','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','show','subUnitId','ENTITLE_INSUFFICIENT_QUOTA','set','[CollaborationDataLoaderController]','ranges','_currentUsage','_injector','_logService','LOGIN_FAILED','getConfig','_updateLocalCursor','stage','font','_createSocketURL','UNIVER_SHEET','setParam'];_0xf9f6=function(){return _0x183878;};return _0xf9f6();}const yi=0x12c,$i=0x64;let xe=class extends _0x3122c4{constructor(_0x1efaa2,_0x10bb26,_0x325e5e,_0x2b11f3,_0x426809,_0xfce1f7,_0x4921f2,_0x330c02,_0x1e5e6d){const _0x10e326=_0x240916;super(),_(this,'_online',!0x1),_(this,_0x10e326(0x163),!0x1),_(this,_0x10e326(0x29d),new _0x37599d(new Map())),_(this,_0x10e326(0x308),this[_0x10e326(0x29d)][_0x10e326(0x24c)]()),_(this,_0x10e326(0x1b1),new _0x37599d([])),_(this,'roomMembers$',this[_0x10e326(0x1b1)][_0x10e326(0x1e1)](_0x18bb22(yi))),_(this,_0x10e326(0x272),_0x17e35b(_0x21d156=>{const _0x90fde4=_0x10e326,_0x24db4d={'eventID':_0x761ce2[_0x90fde4(0x2d2)],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0x90fde4(0x1cf)](),'selection':$t(_0x21d156)}};this[_0x90fde4(0xfc)][_0x90fde4(0x1b6)](_0x24db4d,this[_0x90fde4(0x22c)]);},$i)),(this['unitID']=_0x1efaa2,this['_session']=_0x10bb26,this[_0x10e326(0x26e)]=_0x325e5e,this[_0x10e326(0xed)]=_0x2b11f3,this[_0x10e326(0x245)]=_0x426809,this['_syncEditingCollabCursorService']=_0xfce1f7,this[_0x10e326(0x1bf)]=_0x4921f2,this['_univerInstanceService']=_0x330c02,this[_0x10e326(0x208)]=_0x1e5e6d);}get['cursorInfo'](){const _0x5ef626=_0x240916;return this[_0x5ef626(0x29d)]['getValue']();}get[_0x240916(0x21c)](){const _0x40f811=_0x240916;return this[_0x40f811(0x1b1)][_0x40f811(0x118)]();}['dispose'](){const _0x37c79f=_0x240916;super[_0x37c79f(0x185)](),this[_0x37c79f(0x29d)]['next'](new Map()),this['_cursorInfo$'][_0x37c79f(0x30d)](),this[_0x37c79f(0x1b1)]['next']([]),this[_0x37c79f(0x1b1)][_0x37c79f(0x30d)]();}[_0x240916(0x1f5)](){const _0x391383=_0x240916;this[_0x391383(0x163)]||(this[_0x391383(0x163)]=!0x0,this[_0x391383(0xfc)][_0x391383(0x2a7)][_0x391383(0x1e1)](_0xb0eea8(this['dispose$']))[_0x391383(0x111)](_0x2c3e44=>{const _0x568dcb=_0x391383;_0x2c3e44===_0x83b48e[_0x568dcb(0xf7)]?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x391383(0xfc)]['event$'][_0x391383(0x1e1)](_0xb0eea8(this['dispose$']))['subscribe'](_0x2a7a4a=>{const _0x42457e=_0x391383,_0xa0b97c=_0x2a7a4a[_0x42457e(0x1de)];_0xa0b97c===_0x761ce2[_0x42457e(0x2d2)]&&this[_0x42457e(0x219)](_0x2a7a4a),_0xa0b97c===_0x761ce2[_0x42457e(0x1b4)]&&this[_0x42457e(0x2f2)](_0x2a7a4a);}),this[_0x391383(0xe0)](this[_0x391383(0x208)][_0x391383(0x171)](_0x2307d3=>{const _0x3ea790=_0x391383,_0x339d0=_0x2307d3[_0x3ea790(0x1d8)];_0x339d0!=null&&this['_online']&&_0x2307d3['id']===_0x43bf97['id']&&_0x339d0[_0x3ea790(0x1fc)]===this[_0x3ea790(0x22c)]&&_0x339d0[_0x3ea790(0x1aa)]===!0x1&&_0x339d0[_0x3ea790(0x26c)]['length']>0x0&&this[_0x3ea790(0x272)](_0x339d0['ranges']);})),this[_0x391383(0x227)][_0x391383(0x19e)][_0x391383(0x1e1)](_0xb0eea8(this[_0x391383(0x221)]))[_0x391383(0x111)](_0x198d77=>{const _0x2c1486=_0x391383;if((_0x198d77==null?void 0x0:_0x198d77['unitID'])!==this[_0x2c1486(0x22c)])return;const _0x417152={'eventID':_0x761ce2[_0x2c1486(0x2d2)],'data':_0x198d77};this['_onCursorUpdate'](_0x417152);}),this['disposeWithMe'](this[_0x391383(0x208)][_0x391383(0x171)](_0x260aca=>{const _0x22a09e=_0x391383;if(_0x260aca[_0x22a09e(0x1d8)]==null)return;const _0x8b8665=_0x260aca['params'];if(_0x260aca['id']!==_0x87d6e4['id']||_0x8b8665[_0x22a09e(0x1fc)]!==this[_0x22a09e(0x22c)])return;const _0x52618f={'id':_0x22a09e(0x1b5),'params':_0x8b8665},_0x328f01=this[_0x22a09e(0x28a)];for(const [_0x4fa251,_0x3ef16b]of _0x328f01){const _0x5421fe={'id':_0x22a09e(0x1b5),'params':{'unitId':this[_0x22a09e(0x22c)],'actions':null,'textRanges':_0x3ef16b[_0x22a09e(0x26c)]}},_0x205a6c=this['_transformService'][_0x22a09e(0x183)](_0x52618f,_0x5421fe,!0x1);if(_0x699f6f(_0x205a6c))throw _0x205a6c[_0x22a09e(0x20a)];_0x328f01[_0x22a09e(0x26a)](_0x4fa251,{..._0x3ef16b,'ranges':_0x205a6c[_0x22a09e(0x103)][_0x22a09e(0x1d8)][_0x22a09e(0x16c)]});}queueMicrotask(()=>{const _0x4745f4=_0x22a09e;this[_0x4745f4(0x29d)][_0x4745f4(0x1cc)](_0x328f01);});})));}[_0x240916(0x219)](_0x3de89a){const _0x1fbdd2=_0x240916;var _0x25e19d,_0x5f0f79;const {memberID:_0x45e83d,selection:_0x55ca5a}=_0x3de89a['data'],_0x2027b8=Ai(_0x55ca5a),_0x55b120=(_0x5f0f79=(_0x25e19d=this[_0x1fbdd2(0x245)][_0x1fbdd2(0x214)](this['unitID'],_0x45e83d))==null?void 0x0:_0x25e19d[_0x1fbdd2(0x2d5)])!=null?_0x5f0f79:_0x1fbdd2(0x12c),_0x42a13d={'color':this[_0x1fbdd2(0xed)][_0x1fbdd2(0x2e6)](_0x45e83d),'name':_0x55b120,'ranges':_0x2027b8},_0x906f52=this[_0x1fbdd2(0x28a)];_0x906f52['set'](_0x45e83d,_0x42a13d),this[_0x1fbdd2(0x29d)][_0x1fbdd2(0x1cc)](_0x906f52);}[_0x240916(0x2f2)](_0x51367b){const _0x12cc3b=_0x240916,{memberID:_0x231da4}=_0x51367b[_0x12cc3b(0x213)],_0x37dcd0=this[_0x12cc3b(0x28a)];_0x37dcd0[_0x12cc3b(0x1dc)](_0x231da4),this[_0x12cc3b(0x29d)][_0x12cc3b(0x1cc)](_0x37dcd0);}[_0x240916(0x1ba)](){const _0x1a66cf=_0x240916;var _0x3a8260;if(this['_online']=!0x0,((_0x3a8260=this[_0x1a66cf(0x1d7)][_0x1a66cf(0xf8)]())==null?void 0x0:_0x3a8260['getUnitId']())!==this[_0x1a66cf(0x22c)])return;const _0x42d303=this[_0x1a66cf(0x26e)][_0x1a66cf(0x1c7)](_0x5f3a65)[_0x1a66cf(0x101)]();Array[_0x1a66cf(0x1f9)](_0x42d303)&&_0x42d303[_0x1a66cf(0xfb)]>0x0&&this[_0x1a66cf(0x272)](_0x42d303);}[_0x240916(0x1b0)](){this['_online']=!0x1;}};xe=wi([A(0x2,_0x451de1(_0x30dac5)),A(0x3,_0x451de1(Ke)),A(0x4,_0x451de1(_0x11723a)),A(0x5,_0x451de1(ze)),A(0x6,_0x10d68c),A(0x7,_0x81870d),A(0x8,_0x5e5675)],xe);var xi=Object['getOwnPropertyDescriptor'],Bi=(_0x1a7520,_0xa7a775,_0x4f4331,_0x25f438)=>{const _0x20f221=_0x240916;for(var _0x51fee=_0x25f438>0x1?void 0x0:_0x25f438?xi(_0xa7a775,_0x4f4331):_0xa7a775,_0x55d6f7=_0x1a7520[_0x20f221(0xfb)]-0x1,_0x1bb836;_0x55d6f7>=0x0;_0x55d6f7--)(_0x1bb836=_0x1a7520[_0x55d6f7])&&(_0x51fee=_0x1bb836(_0x51fee)||_0x51fee);return _0x51fee;},B=(_0x2642a9,_0x5551c9)=>(_0x3d992d,_0x205527)=>_0x5551c9(_0x3d992d,_0x205527,_0x2642a9);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x462ad1=[],_0x1a7b8e=!0x1;return _0x501418=>{const _0x5a474c=_0x9124;_0x462ad1[_0x5a474c(0x1e0)](_0x501418),_0x1a7b8e||(_0x1a7b8e=!0x0,setTimeout(()=>{_0x462ad1['forEach'](_0x3f8117=>_0x3f8117()),_0x462ad1=[],_0x1a7b8e=!0x1;}));};};let Be=class extends _0x3122c4{constructor(_0x43a487,_0x47d308,_0x5ceabd,_0x117fcf,_0x4b6a2d,_0x11a3aa,_0x4e23ae,_0x93ae84){const _0x1b05cd=_0x240916;super(),_(this,_0x1b05cd(0xd3),!0x1),_(this,_0x1b05cd(0x163),!0x1),_(this,_0x1b05cd(0x29d),new _0x37599d(new Map())),_(this,_0x1b05cd(0x308),this['_cursorInfo$'][_0x1b05cd(0x24c)]()),_(this,_0x1b05cd(0x1b1),new _0x37599d([])),_(this,'roomMembers$',this['_roomMembers$']['pipe'](_0x18bb22(Fi))),_(this,_0x1b05cd(0x272),_0x17e35b((_0x442360,_0x589a82)=>{const _0x4824d9=_0x1b05cd,_0x8c7e3a={'eventID':_0x761ce2['UPDATE_CURSOR'],'data':{'unitID':this[_0x4824d9(0x22c)],'memberID':this[_0x4824d9(0xfc)][_0x4824d9(0x1cf)](),'selection':_0x47dbec(_0x442360,_0x589a82[_0x4824d9(0x220)])}};this[_0x4824d9(0xfc)][_0x4824d9(0x1b6)](_0x8c7e3a,this['unitID']);},ki)),(this[_0x1b05cd(0x22c)]=_0x43a487,this[_0x1b05cd(0xfc)]=_0x47d308,this[_0x1b05cd(0x26e)]=_0x5ceabd,this[_0x1b05cd(0xed)]=_0x117fcf,this[_0x1b05cd(0x245)]=_0x4b6a2d,this[_0x1b05cd(0x1d7)]=_0x11a3aa,this[_0x1b05cd(0x208)]=_0x4e23ae,this[_0x1b05cd(0x23e)]=_0x93ae84);}get['cursorInfo'](){const _0x451c0a=_0x240916;return this[_0x451c0a(0x29d)]['getValue']();}get['roomMembers'](){const _0x14ee5f=_0x240916;return this[_0x14ee5f(0x1b1)][_0x14ee5f(0x118)]();}[_0x240916(0x185)](){const _0x491a83=_0x240916;super['dispose'](),this[_0x491a83(0x29d)][_0x491a83(0x1cc)](new Map()),this[_0x491a83(0x29d)][_0x491a83(0x30d)](),this['_roomMembers$']['next']([]),this[_0x491a83(0x1b1)][_0x491a83(0x30d)]();}[_0x240916(0x1f5)](){const _0x5bd4d5=_0x240916;this[_0x5bd4d5(0x163)]||(this['_init']=!0x0,this[_0x5bd4d5(0xfc)][_0x5bd4d5(0x2a7)][_0x5bd4d5(0x1e1)](_0xb0eea8(this[_0x5bd4d5(0x221)]))[_0x5bd4d5(0x111)](_0x1e10db=>{const _0x5a2dcd=_0x5bd4d5;_0x1e10db===_0x83b48e['ONLINE']?this[_0x5a2dcd(0x1ba)]():this[_0x5a2dcd(0x1b0)]();}),this[_0x5bd4d5(0xfc)]['event$'][_0x5bd4d5(0x1e1)](_0xb0eea8(this[_0x5bd4d5(0x221)]))[_0x5bd4d5(0x111)](_0x30dbc6=>{const _0x3ecc30=_0x5bd4d5,_0x3c2991=_0x30dbc6[_0x3ecc30(0x1de)];_0x3c2991===_0x761ce2[_0x3ecc30(0x2d2)]&&this[_0x3ecc30(0x219)](_0x30dbc6),_0x3c2991===_0x761ce2[_0x3ecc30(0x1b4)]&&this[_0x3ecc30(0x2f2)](_0x30dbc6);}),this[_0x5bd4d5(0x2be)](),this[_0x5bd4d5(0xe0)](this[_0x5bd4d5(0x208)][_0x5bd4d5(0x171)](_0xd7d660=>{const _0x2ade57=_0x5bd4d5;if(this[_0x2ade57(0xd3)]&&_0xd7d660['id']===_0x12ebb5['id']&&_0xd7d660['params'][_0x2ade57(0x1fc)]===this[_0x2ade57(0x22c)]){const _0x4f0e4c=_0xd7d660['params'];this[_0x2ade57(0x272)](_0x4f0e4c[_0x2ade57(0x268)],_0x4f0e4c[_0x2ade57(0x23b)][0x0]);}})));}['_onCursorUpdate'](_0x55879f){const _0x2a18e7=_0x240916;var _0xa283bb,_0xd9b079;const {memberID:_0xc0a7b7,selection:_0x308f25}=_0x55879f[_0x2a18e7(0x213)],{sheetName:_0x10b014,range:_0x5f0330}=_0x1ec9a4(_0x308f25),_0x4ff4a8={'name':(_0xd9b079=(_0xa283bb=this[_0x2a18e7(0x245)][_0x2a18e7(0x214)](this['unitID'],_0xc0a7b7))==null?void 0x0:_0xa283bb[_0x2a18e7(0x2d5)])!=null?_0xd9b079:'Unknown\x20user','range':this[_0x2a18e7(0xe8)](_0x10b014,_0x5f0330),'sheetID':_0x10b014,'color':this[_0x2a18e7(0xed)][_0x2a18e7(0x2e6)](_0xc0a7b7),'selection':_0x308f25},_0x415345=this[_0x2a18e7(0x28a)];_0x415345[_0x2a18e7(0x26a)](_0xc0a7b7,_0x4ff4a8),this[_0x2a18e7(0x29d)]['next'](_0x415345);}[_0x240916(0x2f2)](_0x4589d1){const _0x20fd33=_0x240916,{memberID:_0x91c7dd}=_0x4589d1['data'],_0x5b1d18=this[_0x20fd33(0x28a)];_0x5b1d18[_0x20fd33(0x1dc)](_0x91c7dd),this['_cursorInfo$'][_0x20fd33(0x1cc)](_0x5b1d18);}[_0x240916(0xe8)](_0x131ad2,_0x561f4c){const _0x1a6760=_0x240916;var _0x426d5b,_0x772c7c;const _0x3fd833=(_0x772c7c=(_0x426d5b=this['_univerInstanceService']['getUniverSheetInstance'](this[_0x1a6760(0x22c)]))==null?void 0x0:_0x426d5b[_0x1a6760(0x12b)](_0x131ad2))==null?void 0x0:_0x772c7c['getMergeData']();return(_0x3fd833==null?void 0x0:_0x3fd833['find'](_0x36cbc2=>_0x49f784['contains'](_0x36cbc2,_0x561f4c)))||_0x561f4c;}[_0x240916(0x2be)](){const _0xec64db=_0x240916,_0x146283=new _0x113270(),_0x59b2f7=Hi(),_0x4f4ac0=()=>{const _0x48ae34=_0x9124;_0x146283['dispose']();const _0x2e8395=(_0x4a11b8,_0xf8af1e,_0x6a1e90,_0x45e915)=>{const _0x49ddb4=_0x9124;let _0x5a3c68=[];switch(_0x4a11b8['id']){case _0xab8473['DeleteRangeMoveLeftCommandId']:{_0x5a3c68=_0x5940a0(_0x4a11b8,_0x45e915);break;}case _0xab8473[_0x49ddb4(0x205)]:{_0x5a3c68=_0x1d554c(_0x4a11b8,_0x45e915);break;}case _0xab8473[_0x49ddb4(0x2ee)]:{_0x5a3c68=_0x17c1bf(_0x4a11b8,_0x45e915);break;}case _0xab8473['InsertRangeMoveDownCommandId']:{_0x5a3c68=_0x3fc51e(_0x4a11b8,_0x45e915);break;}case _0xab8473[_0x49ddb4(0x315)]:{_0x5a3c68=_0x20f389(_0x4a11b8,_0x45e915);break;}case _0xab8473['InsertRowCommandId']:{_0x5a3c68=_0x209d65(_0x4a11b8,_0x45e915);break;}case _0xab8473[_0x49ddb4(0xec)]:{_0x5a3c68=_0x133eca(_0x4a11b8,_0x45e915);break;}case _0xab8473[_0x49ddb4(0x2dd)]:{_0x5a3c68=_0x4b51ea(_0x4a11b8,_0x45e915);break;}case _0xab8473[_0x49ddb4(0x1a1)]:{_0x5a3c68=_0x3ad6e3(_0x4a11b8,_0x45e915);break;}}const _0x351284=_0x4fc651(_0x5a3c68,_0x45e915),_0x19e380=this[_0x49ddb4(0x28a)][_0x49ddb4(0x1c7)](_0xf8af1e);if(_0x19e380&&_0x351284){const _0x54ca2a={..._0x19e380,'range':_0x351284};this['cursorInfo'][_0x49ddb4(0x26a)](_0xf8af1e,_0x54ca2a),_0x59b2f7(()=>{const _0x4f3a94=_0x49ddb4,_0x164114=this[_0x4f3a94(0x23e)][_0x4f3a94(0x110)](_0x351284,_0xad40eb=>(_0x164114[_0x4f3a94(0x185)](),_0x2e8395(_0xad40eb,_0xf8af1e,_0x6a1e90,_0x351284)));_0x146283[_0x4f3a94(0x19a)](_0x164114);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x48ae34(0x2e8)]((_0x184739,_0x2a6914)=>{const _0x353a01=_0x48ae34,{range:_0x499966,sheetID:_0x575cf6}=_0x184739,_0x26d3fb=this['_refRangeService'][_0x353a01(0x110)](_0x499966,_0x2d12d1=>(_0x26d3fb[_0x353a01(0x185)](),_0x2e8395(_0x2d12d1,_0x2a6914,_0x575cf6,_0x499966)));_0x146283[_0x353a01(0x19a)](_0x26d3fb);});};this[_0xec64db(0xe0)](_0x13afa3(this[_0xec64db(0x29d)]['subscribe'](()=>{_0x4f4ac0();})));}[_0x240916(0x1ba)](){const _0x483673=_0x240916;var _0x3a4a8b,_0x8bb734;if(this[_0x483673(0xd3)]=!0x0,((_0x3a4a8b=this['_univerInstanceService'][_0x483673(0xf8)]())==null?void 0x0:_0x3a4a8b[_0x483673(0x2a6)]())!==this[_0x483673(0x22c)])return;const _0x332edc=(_0x8bb734=this[_0x483673(0x26e)][_0x483673(0x1c7)](_0x368647)['getCurrentSelections']())==null?void 0x0:_0x8bb734[0x0],_0x2841dc=this[_0x483673(0x1d7)]['getCurrentUnitForType'](_0x2e1b84[_0x483673(0x276)])[_0x483673(0x178)]();_0x332edc&&_0x2841dc&&this[_0x483673(0x272)](_0x2841dc['getSheetId'](),_0x332edc);}[_0x240916(0x1b0)](){const _0x1c07ef=_0x240916;this[_0x1c07ef(0xd3)]=!0x1;}};Be=Bi([B(0x2,_0x451de1(_0x30dac5)),B(0x3,_0x451de1(Ke)),B(0x4,_0x451de1(_0x11723a)),B(0x5,_0x81870d),B(0x6,_0x5e5675),B(0x7,_0x451de1(_0x44115d))],Be);var Yi=Object[_0x240916(0x1f8)],Wi=(_0x5ce3a9,_0x577de3,_0x254a40,_0x15b56f)=>{const _0x5844b2=_0x240916;for(var _0xee980d=_0x15b56f>0x1?void 0x0:_0x15b56f?Yi(_0x577de3,_0x254a40):_0x577de3,_0x2f9109=_0x5ce3a9[_0x5844b2(0xfb)]-0x1,_0x203099;_0x2f9109>=0x0;_0x2f9109--)(_0x203099=_0x5ce3a9[_0x2f9109])&&(_0xee980d=_0x203099(_0xee980d)||_0xee980d);return _0xee980d;},Ce=(_0x523b4c,_0x2902ea)=>(_0x5a32eb,_0x5a6ff5)=>_0x2902ea(_0x5a32eb,_0x5a6ff5,_0x523b4c);let H=class extends _0x3122c4{constructor(_0x5a32cf,_0x32ff47,_0x1d062c){const _0x415a72=_0x240916;super(),_(this,_0x415a72(0xcf),new Map()),_(this,_0x415a72(0x2ff),new _0x16d6c4()),(this[_0x415a72(0x1d7)]=_0x5a32cf,this[_0x415a72(0x26e)]=_0x32ff47,this[_0x415a72(0x1d6)]=_0x1d062c,this[_0x415a72(0x163)]());}[_0x240916(0x185)](){const _0x2be10f=_0x240916;super['dispose'](),this['_entityInit$'][_0x2be10f(0x30d)](),this[_0x2be10f(0xcf)][_0x2be10f(0x2e8)](_0x4b0486=>_0x4b0486[_0x2be10f(0x185)]());}[_0x240916(0x2ca)](_0x5eff66){const _0x2c5f43=_0x240916;return this[_0x2c5f43(0xcf)][_0x2c5f43(0x298)](_0x5eff66)?this[_0x2c5f43(0xcf)][_0x2c5f43(0x1c7)](_0x5eff66)[_0x2c5f43(0x308)]:this['_entityInit$'][_0x2c5f43(0x1e1)](_0xa9cd8e(_0x2af836=>_0x2af836[_0x2c5f43(0x22c)]===_0x5eff66),_0x38976a(_0x20de04=>_0x20de04[_0x2c5f43(0x308)]));}[_0x240916(0x163)](){const _0x158362=_0x240916;this[_0x158362(0x1d7)][_0x158362(0x2fb)](_0x2e1b84[_0x158362(0x276)])[_0x158362(0x1e1)](_0xb0eea8(this[_0x158362(0x221)]))['subscribe'](async _0x59cc7d=>{const _0x43c730=_0x158362,_0x19cc9b=_0x59cc7d['getUnitId'](),_0x454588=await this[_0x43c730(0x1a3)](_0x19cc9b);this[_0x43c730(0x2ff)][_0x43c730(0x1cc)](_0x454588),this[_0x43c730(0xcf)][_0x43c730(0x26a)](_0x19cc9b,_0x454588);}),this[_0x158362(0x1d7)][_0x158362(0x2fb)](_0x2e1b84[_0x158362(0x2a0)])[_0x158362(0x1e1)](_0xb0eea8(this['dispose$']))['pipe'](_0xa9cd8e(_0x563204=>!_0x563204[_0x158362(0x2a6)]()[_0x158362(0x2b5)]('__')))['subscribe'](async _0x1d944a=>{const _0x3da00c=_0x158362,_0x3ffcde=_0x1d944a[_0x3da00c(0x2a6)](),_0x1ce568=await this['_startDocCollabCursor'](_0x3ffcde);this[_0x3da00c(0x2ff)][_0x3da00c(0x1cc)](_0x1ce568),this['_entities'][_0x3da00c(0x26a)](_0x3ffcde,_0x1ce568);}),_0x4bce0e(this[_0x158362(0x1d7)][_0x158362(0x2ab)](_0x2e1b84[_0x158362(0x2a0)]),this[_0x158362(0x1d7)][_0x158362(0x2ab)](_0x2e1b84[_0x158362(0x276)]))['pipe'](_0xb0eea8(this[_0x158362(0x221)]))[_0x158362(0x111)](_0x55fde1=>{const _0x5c4c33=_0x158362,_0x3356fc=_0x55fde1[_0x5c4c33(0x2a6)](),_0x1b762d=this['_entities']['get'](_0x3356fc);_0x1b762d&&(_0x1b762d['dispose'](),this[_0x5c4c33(0xcf)][_0x5c4c33(0x1dc)](_0x3356fc));});}async[_0x240916(0x1a3)](_0x200023){const _0x3d1575=_0x240916,_0x356445=await this[_0x3d1575(0x1d6)][_0x3d1575(0xdc)](_0x200023),_0x47a165=this[_0x3d1575(0x26e)][_0x3d1575(0x108)](Be,_0x200023,_0x356445);return _0x47a165[_0x3d1575(0x1f5)](),_0x47a165;}async[_0x240916(0x158)](_0x2fc74b){const _0x5793d8=_0x240916,_0x3e9e25=await this['_collabSessionService'][_0x5793d8(0xdc)](_0x2fc74b),_0x55a0a9=this[_0x5793d8(0x26e)][_0x5793d8(0x108)](xe,_0x2fc74b,_0x3e9e25);return _0x55a0a9[_0x5793d8(0x1f5)](),_0x55a0a9;}};H=Wi([Ce(0x0,_0x81870d),Ce(0x1,_0x451de1(_0x30dac5)),Ce(0x2,_0x451de1(_0x27d44b))],H);const Q=0x14,at=0xc8,Re=0x4,Vi=0x5;function ji(_0x1407c4,_0x22cad5){const _0x2fc4ac=_0x240916;let {radius:_0x4cc706,width:_0x1983a4,height:_0x1829bd}=_0x22cad5;_0x4cc706=_0x4cc706!=null?_0x4cc706:0x0,_0x1983a4=_0x1983a4!=null?_0x1983a4:0x1e,_0x1829bd=_0x1829bd!=null?_0x1829bd:0x1e;let _0x290748=0x0,_0x439ec5=0x0,_0x25a6c0=0x0;_0x290748=_0x439ec5=_0x25a6c0=Math['min'](_0x4cc706,_0x1983a4/0x2,_0x1829bd/0x2),_0x1407c4[_0x2fc4ac(0xf0)](),_0x1407c4[_0x2fc4ac(0x280)](_0x290748,0x0),_0x1407c4[_0x2fc4ac(0x27e)](_0x1983a4-_0x439ec5,0x0),_0x1407c4[_0x2fc4ac(0x2b3)](_0x1983a4-_0x439ec5,_0x439ec5,_0x439ec5,Math['PI']*0x3/0x2,0x0,!0x1),_0x1407c4['lineTo'](_0x1983a4,_0x1829bd-_0x25a6c0),_0x1407c4[_0x2fc4ac(0x2b3)](_0x1983a4-_0x25a6c0,_0x1829bd-_0x25a6c0,_0x25a6c0,0x0,Math['PI']/0x2,!0x1),_0x1407c4['lineTo'](0x0,_0x1829bd),_0x1407c4[_0x2fc4ac(0x27e)](0x0,_0x290748),_0x1407c4[_0x2fc4ac(0x2b3)](_0x290748,_0x290748,_0x290748,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1407c4['closePath'](),_0x22cad5['fill']&&(_0x1407c4['save'](),_0x1407c4[_0x2fc4ac(0x2bb)]=_0x22cad5[_0x2fc4ac(0x224)],_0x22cad5['fillRule']==='evenodd'?_0x1407c4[_0x2fc4ac(0x224)](_0x2fc4ac(0x1c2)):_0x1407c4['fill'](),_0x1407c4['restore']());}class ve extends _0xa92bc{constructor(_0x56b328,_0x41f904){const _0x34922e=_0x240916;super(_0x56b328,_0x41f904),_(this,_0x34922e(0x250)),_(this,_0x34922e(0x284)),(this[_0x34922e(0x250)]=_0x41f904==null?void 0x0:_0x41f904['color'],this[_0x34922e(0x284)]=_0x41f904==null?void 0x0:_0x41f904['text']);}static[_0x240916(0x11b)](_0x36647a,_0x26513e){const _0x473dd2=_0x240916,{text:_0x1e7275,color:_0x9bd810}=_0x26513e;_0x36647a[_0x473dd2(0x1f4)](),_0x36647a[_0x473dd2(0x274)]=_0x473dd2(0x295);const _0x59d75b=_0x36647a[_0x473dd2(0x1c9)](_0x1e7275)[_0x473dd2(0x223)],_0x548824=Math[_0x473dd2(0x119)](_0x59d75b+0x2*Re,at);ji(_0x36647a,{'height':Q,'radius':0x4,'width':_0x548824,'fill':_0x9bd810}),_0x36647a[_0x473dd2(0x2bb)]=_0x473dd2(0xfe);const _0x38bffa=Re,_0x13f69b=Q-Vi,_0x58e1cf=at-0x2*Re;if(_0x59d75b>_0x58e1cf){let _0x331a39='',_0x354bde=0x0;for(const _0x40a2de of _0x1e7275){const _0x366066=_0x36647a[_0x473dd2(0x1c9)](_0x40a2de)[_0x473dd2(0x223)];if(_0x354bde+_0x366066<=_0x58e1cf-_0x36647a[_0x473dd2(0x1c9)]('...')[_0x473dd2(0x223)])_0x331a39+=_0x40a2de,_0x354bde+=_0x366066;else{_0x331a39+=_0x473dd2(0x1ab);break;}}_0x36647a[_0x473dd2(0x24b)](_0x331a39,_0x38bffa,_0x13f69b);}else _0x36647a[_0x473dd2(0x24b)](_0x1e7275,_0x38bffa,_0x13f69b);_0x36647a[_0x473dd2(0xd4)]();}[_0x240916(0x2df)](_0xf77f03){const _0x4728a7=_0x240916;ve[_0x4728a7(0x11b)](_0xf77f03,this);}}const De='collab-text-anchor-',Xi=_0x240916(0x126),Gi='collab-rect-range-',z=0x6,Ki=1.5,Ne=0x4,zi=1.5,Ji=_0x240916(0x2f9);class ct{constructor(_0x1adc6e,_0x41598c,_0x5b2eb4,_0x20a1c9){const _0x1be779=_0x240916;_(this,'_shapes',[]),_(this,_0x1be779(0x2b4),null),_(this,_0x1be779(0x289),null),_(this,'_anchorDot',null),_(this,_0x1be779(0x1e3),null),_(this,_0x1be779(0x260),null),(this['_cursor']=_0x1adc6e,this['_scene']=_0x41598c,this[_0x1be779(0x2d4)]=_0x5b2eb4,this['_document']=_0x20a1c9,this[_0x1be779(0x2b1)]());}set[_0x240916(0x2c7)](_0x2d2ad1){const _0x23a8d7=_0x240916;_0x2d2ad1?(this[_0x23a8d7(0x228)]&&this['_anchorDot'][_0x23a8d7(0x109)](),this[_0x23a8d7(0x289)]&&this[_0x23a8d7(0x289)]['show']()):(this[_0x23a8d7(0x228)]&&this[_0x23a8d7(0x228)]['show'](),this[_0x23a8d7(0x289)]&&this[_0x23a8d7(0x289)][_0x23a8d7(0x109)]());}[_0x240916(0x185)](){const _0x4d5b17=_0x240916;for(const _0x43c05a of this[_0x4d5b17(0x1b7)])_0x43c05a[_0x4d5b17(0x185)]();this[_0x4d5b17(0x289)]&&this[_0x4d5b17(0x289)][_0x4d5b17(0x185)](),this[_0x4d5b17(0x228)]&&this[_0x4d5b17(0x228)]['dispose'](),this['_anchor']&&this[_0x4d5b17(0x2b4)][_0x4d5b17(0x185)](),this[_0x4d5b17(0x260)]&&this[_0x4d5b17(0x260)]();}[_0x240916(0x2b1)](){const _0x5c1a62=_0x240916;var _0x9fec7;const {_docSkeleton:_0xb9c9b7,_document:_0x1e9064}=this,{color:_0xbba92f,name:_0x35e066,ranges:_0x4c4e68}=this[_0x5c1a62(0x15a)],_0xc42e99=_0x1e9064[_0x5c1a62(0x14c)](),{docsLeft:_0x37ab5b,docsTop:_0x34d10f}=_0xc42e99,_0x4404eb=new _0x150b12(_0xc42e99,_0xb9c9b7);for(const {startOffset:_0x583238,endOffset:_0x55b73c,rangeType:_0x50aac1,segmentId:_0x1a5200,segmentPage:_0x8a29f5,collapsed:_0x1dcb92,isActive:_0x2f13ee}of _0x4c4e68){const _0x26d6c5=_0xb9c9b7[_0x5c1a62(0x168)](_0x583238,!0x0,_0x1a5200,_0x8a29f5);let _0x13f582=_0xb9c9b7[_0x5c1a62(0x168)](_0x55b73c,!0x0,_0x1a5200,_0x8a29f5);if(_0x13f582==null&&(_0x13f582=_0xb9c9b7[_0x5c1a62(0x168)](_0x55b73c-0x1,!0x1,_0x1a5200,_0x8a29f5)),_0x2f13ee){const {contentBoxPointGroup:_0x2787d5}=_0x4404eb[_0x5c1a62(0x132)](_0x13f582,_0x13f582);if(_0x2787d5[_0x5c1a62(0xfb)]===0x0)continue;this['_drawAnchor'](_0xbba92f,_0x2787d5,_0x37ab5b,_0x34d10f,_0x35e066),this[_0x5c1a62(0x260)]=this['_handleHover']();}if(_0x26d6c5&&_0x13f582){if(_0x50aac1===_0x3c1574[_0x5c1a62(0x241)]){const _0x1f32b8=new _0x19dc65(_0xc42e99,_0xb9c9b7),{pointGroup:_0x2a566f}=(_0x9fec7=_0x1f32b8[_0x5c1a62(0x132)](_0x26d6c5,_0x13f582))!=null?_0x9fec7:{};if(_0x2a566f==null||_0x2a566f['length']===0x0)continue;this[_0x5c1a62(0x1bc)](_0xbba92f,_0x2a566f,_0x37ab5b,_0x34d10f);}else{if(!_0x1dcb92){const {borderBoxPointGroup:_0x276745}=_0x4404eb[_0x5c1a62(0x132)](_0x26d6c5,_0x13f582);if(_0x276745[_0x5c1a62(0xfb)]===0x0)continue;this['_drawTextRange'](_0xbba92f,_0x276745,_0x37ab5b,_0x34d10f);}}}}}[_0x240916(0x179)](_0x2200f2,_0xd6150b,_0x17131e,_0x38c76d,_0x257b5f){const _0x138dc7=_0x240916,_0x521691=this[_0x138dc7(0x265)](_0xd6150b),{left:_0x32254e,top:_0x32982a,height:_0x5c09fd}=_0x521691,_0x5cde07=this[_0x138dc7(0x112)](),_0x4d168a=zi/_0x5cde07,_0x1520c1=new _0x3d2ae1(De+_0x2664d4(z),{'left':_0x32254e+_0x17131e-_0x4d168a,'top':_0x32982a+_0x38c76d,'height':_0x5c09fd,'width':Ki,'fill':_0x2200f2||_0x525b34(_0x2b8935['black'],0x0),'strokeWidth':_0x4d168a,'stroke':Ji,'evented':!0x0});this[_0x138dc7(0x2b4)]=_0x1520c1,this['_scene'][_0x138dc7(0x123)](_0x1520c1,_0x15a21c);const _0x76203=new _0x3d2ae1(De+_0x2664d4(z),{'left':_0x32254e+_0x17131e-_0x4d168a,'top':_0x32982a+_0x38c76d-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x2200f2||_0x525b34(_0x2b8935[_0x138dc7(0xe2)],0x0),'strokeWidth':0x0,'stroke':_0x2200f2||_0x525b34(_0x2b8935[_0x138dc7(0xe2)],0x0),'evented':!0x1});this[_0x138dc7(0x228)]=_0x76203,this[_0x138dc7(0x198)][_0x138dc7(0x123)](_0x76203,_0x15a21c);const _0x5f2163=new ve(De+_0x2664d4(z),{'left':_0x32254e+_0x17131e-_0x4d168a,'top':_0x32982a+_0x38c76d-Q,'text':_0x257b5f,'color':_0x2200f2});this[_0x138dc7(0x289)]=_0x5f2163,this[_0x138dc7(0x198)]['addObject'](_0x5f2163,_0x15a21c),this[_0x138dc7(0x2c7)]=!0x1;}[_0x240916(0x1f0)](){const _0x350a87=_0x240916,_0x4796f8=this['_anchor'][_0x350a87(0x1fb)][_0x350a87(0x18f)](()=>{const _0x32d309=_0x350a87;this[_0x32d309(0x2c7)]=!0x0;}),_0x2461cf=this['_anchor'][_0x350a87(0x2d9)][_0x350a87(0x18f)](()=>{const _0x2678fb=_0x350a87;this[_0x2678fb(0x1e3)]&&clearTimeout(this[_0x2678fb(0x1e3)]),this[_0x2678fb(0x1e3)]=setTimeout(()=>{const _0xb87003=_0x2678fb;this[_0xb87003(0x2c7)]=!0x1;},0x7d0);});return()=>{const _0x1de2f1=_0x350a87;_0x4796f8[_0x1de2f1(0x1b3)](),_0x2461cf['unsubscribe']();};}[_0x240916(0x27f)](_0x4e10b8,_0x2c7eac,_0x4662a6,_0xf8dad1){const _0x4ea9f6=_0x240916,_0x5526e5=new _0x19d4f9(_0x4e10b8)[_0x4ea9f6(0x2e1)](0.2)['toRgbString'](),_0x25e0f1=new _0x542d56(Xi+_0x2664d4(z),{'pointsGroup':_0x2c7eac,'fill':_0x5526e5||_0x525b34(_0x2b8935[_0x4ea9f6(0xe2)],0.2),'left':_0x4662a6,'top':_0xf8dad1,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4ea9f6(0x1b7)][_0x4ea9f6(0x1e0)](_0x25e0f1),this[_0x4ea9f6(0x198)][_0x4ea9f6(0x123)](_0x25e0f1,_0x15a21c);}[_0x240916(0x1bc)](_0x248566,_0x199f12,_0x4945e0,_0x3e40fe){const _0x346399=_0x240916,_0x4254c2=new _0x19d4f9(_0x248566)[_0x346399(0x2e1)](0.2)[_0x346399(0x2e3)](),_0x255b9d=new _0x542d56(Gi+_0x2664d4(z),{'pointsGroup':_0x199f12,'fill':_0x4254c2||_0x525b34(_0x2b8935[_0x346399(0xe2)],0.2),'left':_0x4945e0,'top':_0x3e40fe,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x346399(0x1b7)][_0x346399(0x1e0)](_0x255b9d),this[_0x346399(0x198)][_0x346399(0x123)](_0x255b9d,_0x15a21c);}[_0x240916(0x265)](_0x85498){const _0x4b9e70=_0x85498[0x0],_0xe280f9=_0x4b9e70[0x0],_0x525513=_0x4b9e70[0x2],{x:_0x5c923f,y:_0x41c112}=_0xe280f9,{x:_0x99ef93,y:_0xd94ad7}=_0x525513;return{'left':_0x5c923f,'top':_0x41c112,'width':_0x99ef93-_0x5c923f,'height':_0xd94ad7-_0x41c112};}['_getScale'](){const _0x40e63b=_0x240916,{scaleX:_0x14ed33,scaleY:_0x7c9859}=this[_0x40e63b(0x198)][_0x40e63b(0x2c4)]();return Math[_0x40e63b(0x106)](_0x14ed33,_0x7c9859);}}var Zi=Object[_0x240916(0x1f8)],Qi=(_0x5af806,_0x5acde5,_0x477e59,_0xc79394)=>{const _0x3df1cc=_0x240916;for(var _0x5f06fc=_0xc79394>0x1?void 0x0:_0xc79394?Zi(_0x5acde5,_0x477e59):_0x5acde5,_0x1115f8=_0x5af806[_0x3df1cc(0xfb)]-0x1,_0xaadfe9;_0x1115f8>=0x0;_0x1115f8--)(_0xaadfe9=_0x5af806[_0x1115f8])&&(_0x5f06fc=_0xaadfe9(_0x5f06fc)||_0x5f06fc);return _0x5f06fc;},ie=(_0x1ae933,_0x507a14)=>(_0x7c1f0f,_0x3196f6)=>_0x507a14(_0x7c1f0f,_0x3196f6,_0x1ae933);let Fe=class extends _0x3122c4{constructor(_0x34a0ee,_0x58cbdc,_0x19bc6a,_0x58ec77,_0x437617){const _0x69d3ab=_0x240916;super(),_(this,'_cursorShapes',[]),_(this,_0x69d3ab(0x31a),[]),(this[_0x69d3ab(0x1c4)]=_0x34a0ee,this[_0x69d3ab(0x2aa)]=_0x58cbdc,this[_0x69d3ab(0x317)]=_0x19bc6a,this[_0x69d3ab(0x208)]=_0x58ec77,this[_0x69d3ab(0xd2)]=_0x437617,this[_0x69d3ab(0x163)]());}[_0x240916(0x163)](){const _0x362ee5=_0x240916,_0x312ab5=this[_0x362ee5(0x1c4)]['unitId'],_0x225a74=this['_docSkeletonManagerService'];this[_0x362ee5(0xe0)](_0x207d2b([this[_0x362ee5(0x317)][_0x362ee5(0x2ca)](_0x312ab5),this[_0x362ee5(0xd2)][_0x362ee5(0x193)]])[_0x362ee5(0x1e1)](_0x58bc15(([_0x591725,_0x49074c])=>({'skeleton':_0x225a74[_0x362ee5(0x1ee)](),'cursors':[..._0x591725['values']()][_0x362ee5(0xdd)](_0x1a23e7=>({..._0x1a23e7,'color':this[_0x362ee5(0xd2)][_0x362ee5(0x129)](_0x1a23e7[_0x362ee5(0x250)])}))})))[_0x362ee5(0x111)](_0x3412e3=>{const _0x543ae7=_0x362ee5;if(this['_removeCollabCursors'](),_0x3412e3){const {skeleton:_0x1cd68e,cursors:_0xf28519}=_0x3412e3;this[_0x543ae7(0xe3)](_0x1cd68e,_0xf28519);}})),this[_0x362ee5(0x201)](),this[_0x362ee5(0xff)]();}[_0x240916(0xe3)](_0x22d342,_0x55859e){const _0x1553d3=_0x240916,{scene:_0x3af709,mainComponent:_0x367c8e}=this['_context'],_0x415975=_0x55859e['map'](_0x889472=>new ct(_0x889472,_0x3af709,_0x22d342,_0x367c8e));this[_0x1553d3(0x188)]=_0x415975,this[_0x1553d3(0x31a)]=_0x55859e;}[_0x240916(0x291)](){const _0x18e24a=_0x240916;this[_0x18e24a(0x11e)]();const {scene:_0x3b78da,mainComponent:_0x3262fb}=this[_0x18e24a(0x1c4)],_0x2e1e69=this[_0x18e24a(0x2aa)][_0x18e24a(0x1ee)](),_0x5982bc=this['_cursors'][_0x18e24a(0x281)](_0x490385=>new ct(_0x490385,_0x3b78da,_0x2e1e69,_0x3262fb));this[_0x18e24a(0x188)]=_0x5982bc;}[_0x240916(0x11e)](){const _0x578f5b=_0x240916;this[_0x578f5b(0x188)][_0x578f5b(0x2e8)](_0x54b7d4=>_0x54b7d4[_0x578f5b(0x185)]()),this['_cursorShapes']=[];}['_initCommandExecutedListener'](){const _0x1f88b1=_0x240916,_0x3dc3f1=[_0x1a7732['id']];this['disposeWithMe'](this[_0x1f88b1(0x208)][_0x1f88b1(0x171)](_0x4683ea=>{const _0x15fa73=_0x1f88b1;_0x3dc3f1[_0x15fa73(0x159)](_0x4683ea['id'])&&_0x4683ea[_0x15fa73(0x1d8)]['unitId']===this[_0x15fa73(0x1c4)]['unitId']&&this[_0x15fa73(0x291)]();}));}['_initResize'](){const _0x1bf695=_0x240916;this['disposeWithMe'](_0x63123d(this[_0x1bf695(0x1c4)][_0x1bf695(0x2c9)][_0x1bf695(0x189)])['pipe'](_0x491785(_0x3cb363=>_0x3cb363[_0x1bf695(0x2f0)]===_0x97306c['resize']),_0x3118d0(0x10))[_0x1bf695(0x111)](()=>{const _0x149d28=_0x1bf695;this[_0x149d28(0x291)]();}));}};Fe=Qi([ie(0x1,_0x451de1(_0x1102c9)),ie(0x2,_0x451de1(H)),ie(0x3,_0x5e5675),ie(0x4,_0x451de1(_0x57f958))],Fe);const qi=0x1,en=1.5;class tn extends _0xa92bc{constructor(_0x2c4507,_0x1ae1c8){const _0x2ead75=_0x240916;super(_0x2c4507,_0x1ae1c8),_(this,_0x2ead75(0x174)),_(this,_0x2ead75(0x24d),!0x1),_(this,_0x2ead75(0x238)),_(this,_0x2ead75(0x15e),''),_(this,'_labelPosition',_0x2ead75(0x102)),_(this,_0x2ead75(0x19f)),(_0x1ae1c8&&this[_0x2ead75(0x1f6)](_0x1ae1c8),this[_0x2ead75(0x1fb)][_0x2ead75(0x18f)](()=>this[_0x2ead75(0x1f6)]({'hovered':!0x0})),this['onPointerLeave$'][_0x2ead75(0x18f)](()=>this[_0x2ead75(0x1f6)]({'hovered':!0x1})));}[_0x240916(0x1f6)](_0x41095b){const _0x877484=_0x240916;var _0x4326e8,_0x571185,_0x17f9be,_0xf25d83,_0x40fc50,_0x239688;this[_0x877484(0x174)]=(_0x4326e8=_0x41095b['color'])!=null?_0x4326e8:this[_0x877484(0x174)],this[_0x877484(0x24d)]=(_0x571185=_0x41095b['hovered'])!=null?_0x571185:this[_0x877484(0x24d)],this[_0x877484(0x238)]=(_0x17f9be=_0x41095b[_0x877484(0x220)])!=null?_0x17f9be:this[_0x877484(0x238)],this[_0x877484(0x15e)]=(_0xf25d83=_0x41095b[_0x877484(0x2d5)])!=null?_0xf25d83:this['_name'],this[_0x877484(0x2a4)]=(_0x40fc50=_0x41095b[_0x877484(0x309)])!=null?_0x40fc50:this[_0x877484(0x2a4)],this[_0x877484(0x19f)]=(_0x239688=_0x41095b[_0x877484(0x2dc)])!=null?_0x239688:this[_0x877484(0x19f)],this[_0x877484(0x256)]({'width':_0x41095b[_0x877484(0x223)],'height':_0x41095b['height']});}[_0x240916(0x22e)](_0x5043e3){const _0x9acdbf=_0x240916,{row:_0x1f9d59,column:_0x2e5728}=_0x5043e3;if(_0x1f9d59>=this[_0x9acdbf(0x238)][_0x9acdbf(0x1c5)]&&_0x1f9d59<=this[_0x9acdbf(0x238)][_0x9acdbf(0x2c3)]&&_0x2e5728>=this['_range'][_0x9acdbf(0x302)]&&_0x2e5728<=this[_0x9acdbf(0x238)][_0x9acdbf(0x316)]){this[_0x9acdbf(0x1f6)]({'hovered':!0x0});return;}this[_0x9acdbf(0x1f6)]({'hovered':!0x1});}[_0x240916(0x1a8)](_0x391472){return!0x1;}['_draw'](_0x310986){const _0x4daceb=_0x240916;_0x3d2ae1['drawWith'](_0x310986,{'width':this[_0x4daceb(0x223)],'height':this['height'],'strokeWidth':en,'stroke':this[_0x4daceb(0x174)],'evented':!0x1,'fill':this[_0x4daceb(0x19f)]}),this[_0x4daceb(0x24d)]&&(_0x310986[_0x4daceb(0x1f4)](),_0x310986[_0x4daceb(0x160)](0x1,0x0,0x0,0x1,this[_0x4daceb(0x223)],this[_0x4daceb(0x2a4)]===_0x4daceb(0x157)?0x0:-Q),ve['drawWith'](_0x310986,{'text':this[_0x4daceb(0x15e)],'color':this[_0x4daceb(0x174)]}),_0x310986[_0x4daceb(0xd4)]());}}var sn=Object['getOwnPropertyDescriptor'],nn=(_0xc60d0b,_0x5d73b2,_0x156f9a,_0x253061)=>{const _0x1a2fe1=_0x240916;for(var _0x204ab6=_0x253061>0x1?void 0x0:_0x253061?sn(_0x5d73b2,_0x156f9a):_0x5d73b2,_0x126e9e=_0xc60d0b[_0x1a2fe1(0xfb)]-0x1,_0x30c75c;_0x126e9e>=0x0;_0x126e9e--)(_0x30c75c=_0xc60d0b[_0x126e9e])&&(_0x204ab6=_0x30c75c(_0x204ab6)||_0x204ab6);return _0x204ab6;},be=(_0x445e58,_0x444142)=>(_0x316f39,_0x4b0c0a)=>_0x444142(_0x316f39,_0x4b0c0a,_0x445e58);const rn=0x1389;let ke=class extends _0x3122c4{constructor(_0x27075f,_0x2cea59,_0x2ca89b,_0x59d74f){const _0x14c91e=_0x240916;super(),_(this,_0x14c91e(0x31a),new Set()),_(this,'_lastPointer',null),(this[_0x14c91e(0x1c4)]=_0x27075f,this[_0x14c91e(0x2fa)]=_0x2cea59,this[_0x14c91e(0x317)]=_0x2ca89b,this[_0x14c91e(0xd2)]=_0x59d74f,this[_0x14c91e(0x163)]());}[_0x240916(0x163)](){const _0x37055e=_0x240916;this[_0x37055e(0x2fa)]['currentSkeleton$'][_0x37055e(0x1e1)](_0x2b4e82(this[_0x37055e(0x221)]),_0x1fc78b(_0x107b5a=>{const _0xeced1e=_0x37055e;if(_0x107b5a){const _0x6da28b=_0x107b5a['sheetId'];return _0x207d2b(this['_collabCursorController'][_0xeced1e(0x2ca)](this[_0xeced1e(0x1c4)][_0xeced1e(0x1fc)]),this[_0xeced1e(0xd2)][_0xeced1e(0x193)])[_0xeced1e(0x1e1)](_0x58bc15(([_0x50294a,_0x5cf57f])=>{const _0x5f0e0c=_0xeced1e,_0x3b5121=new Map();return _0x50294a[_0x5f0e0c(0x2e8)]((_0x26eff3,_0x1729c8)=>{const _0x95f225=_0x5f0e0c;if(_0x26eff3['sheetID']===_0x6da28b){const _0x2a0c79={..._0x26eff3};_0x2a0c79[_0x95f225(0x250)]=this[_0x95f225(0xd2)][_0x95f225(0x129)](_0x26eff3[_0x95f225(0x250)]),_0x3b5121[_0x95f225(0x26a)](_0x1729c8,_0x2a0c79);}}),{'skeleton':_0x107b5a,'cursors':_0x3b5121};}));}return _0x4cadb4({'skeleton':null,'cursors':new Map()});}))[_0x37055e(0x111)](({skeleton:_0xdfcc3c,cursors:_0x3516c2})=>{const _0x2c87ed=_0x37055e;this[_0x2c87ed(0x11e)](),_0xdfcc3c&&this['_updateCollabCursors'](_0xdfcc3c,_0x3516c2);}),this[_0x37055e(0x2fa)]['currentSkeleton$'][_0x37055e(0x111)](_0x5301ce=>{const _0x24ff51=_0x37055e;if(_0x5301ce==null)return;const {skeleton:_0x3e2b44}=_0x5301ce,{scene:_0x1dc65b}=this[_0x24ff51(0x1c4)];_0x1dc65b[_0x24ff51(0x116)][_0x24ff51(0x18f)](_0x17e35b(_0x4bf2f6=>{const _0x47e836=_0x24ff51;var _0x98366d,_0x33ce0a;const {offsetX:_0x5a5c54,offsetY:_0x98567}=_0x4bf2f6,{x:_0x2df475,y:_0x2d1197}=_0x1dc65b['getRelativeToViewportCoord'](_0x2e233c[_0x47e836(0x161)]([_0x5a5c54,_0x98567])),{scaleX:_0x1a1b8c,scaleY:_0x4f0f66}=_0x1dc65b[_0x47e836(0x2c4)](),_0xbca479=_0x1dc65b[_0x47e836(0x1cd)](_0xf0062['VIEW_MAIN']),_0x1ad4a1=_0x1dc65b[_0x47e836(0x1ae)](_0x2e233c[_0x47e836(0x161)]([_0x2df475,_0x2d1197]),_0xbca479),_0x343601=_0x3e2b44[_0x47e836(0x1ed)](_0x5a5c54,_0x98567,_0x1a1b8c,_0x4f0f66,_0x1ad4a1);((_0x98366d=this[_0x47e836(0x299)])==null?void 0x0:_0x98366d[_0x47e836(0x2a2)])===_0x343601[_0x47e836(0x2a2)]&&((_0x33ce0a=this[_0x47e836(0x299)])==null?void 0x0:_0x33ce0a[_0x47e836(0x1e9)])===_0x343601['row']||this['_cursors'][_0x47e836(0x2e8)](_0x327db7=>{_0x327db7['onMouseMove'](_0x343601);});},0x64));});}['_updateCollabCursors'](_0x39738b,_0x79e0e9){const _0x5b8edf=_0x240916;var _0x234d60;const _0x20bc7e=(_0x234d60=this[_0x5b8edf(0x2fa)][_0x5b8edf(0x1a0)]())==null?void 0x0:_0x234d60['skeleton'];if(!_0x20bc7e)return;const _0x411c03=this[_0x5b8edf(0x313)]();if(!_0x411c03)return;this[_0x5b8edf(0x31a)]['forEach'](_0x30476c=>{_0x30476c['makeDirty']();});const {scene:_0xc1a21}=_0x411c03,_0x3815a3=on(Array[_0x5b8edf(0x14a)](_0x79e0e9[_0x5b8edf(0x1fa)]()))[_0x5b8edf(0x281)](_0x669538=>{const _0x160377=_0x5b8edf,{color:_0x1d467b,range:_0x53746c,name:_0x25f8e1,selection:_0x382c3b,sheetID:_0x2ca7ab}=_0x669538,{startColumn:_0x3a9ad8,startRow:_0x4a775b,endColumn:_0x52662e,endRow:_0x233fe2}=_0x53746c,_0x22222f=_0xdb9d86(_0x4a775b,_0x3a9ad8,_0xc1a21,_0x20bc7e),_0x3b3000=_0xdb9d86(_0x233fe2,_0x52662e,_0xc1a21,_0x20bc7e),{columnHeaderHeightAndMarginTop:_0x223705}=_0x20bc7e,{startX:_0xe064a0,startY:_0x23abbc}=_0x22222f,{endX:_0x32c999,endY:_0x50ea6e}=_0x3b3000,_0x1159a6=_0x32c999-_0xe064a0,_0x52748a=_0x50ea6e-_0x23abbc,_0x26f350={'labelPosition':_0x23abbc-_0x223705>=Q?_0x160377(0x102):_0x160377(0x157),'sheetID':_0x2ca7ab,'range':_0x53746c,'color':_0x1d467b,'name':_0x25f8e1,'selection':_0x382c3b,'left':_0xe064a0,'top':_0x23abbc,'width':_0x1159a6,'height':_0x52748a,'evented':!0x1,'zIndex':rn};return new tn(_0x25f8e1,_0x26f350);});_0xc1a21['addObjects'](_0x3815a3,qi),this[_0x5b8edf(0x31a)]=new Set(_0x3815a3);}[_0x240916(0x11e)](){const _0x3a4afc=_0x240916;var _0x2f143a;(_0x2f143a=this[_0x3a4afc(0x31a)])==null||_0x2f143a['forEach'](_0x27770e=>_0x27770e[_0x3a4afc(0x185)]());}[_0x240916(0x313)](){const _0x12ee01=_0x240916;return _0x453f91(this[_0x12ee01(0x1c4)][_0x12ee01(0x262)],this[_0x12ee01(0x1c4)]);}};ke=nn([be(0x1,_0x451de1(_0x3e7369)),be(0x2,_0x451de1(H)),be(0x3,_0x451de1(_0x57f958))],ke);function on(_0x554328){const _0x3bae7f=_0x240916,_0x837398=new Map();return _0x554328[_0x3bae7f(0x2e8)](_0x314472=>{const _0x5cbb6f=_0x3bae7f;if(_0x837398[_0x5cbb6f(0x298)](_0x314472[_0x5cbb6f(0x253)])){const _0xcd1a9=_0x837398[_0x5cbb6f(0x1c7)](_0x314472[_0x5cbb6f(0x253)]);_0xcd1a9['name']+=',\x20'+_0x314472[_0x5cbb6f(0x2d5)];}else _0x837398[_0x5cbb6f(0x26a)](_0x314472[_0x5cbb6f(0x253)],_0x314472);}),Array[_0x3bae7f(0x14a)](_0x837398[_0x3bae7f(0x1fa)]());}var an=Object[_0x240916(0x1f8)],cn=(_0x2154a7,_0x5b01c7,_0x49dda8,_0x562ada)=>{const _0x1cbc41=_0x240916;for(var _0x461b50=_0x562ada>0x1?void 0x0:_0x562ada?an(_0x5b01c7,_0x49dda8):_0x5b01c7,_0x47db7b=_0x2154a7[_0x1cbc41(0xfb)]-0x1,_0x5419d2;_0x47db7b>=0x0;_0x47db7b--)(_0x5419d2=_0x2154a7[_0x47db7b])&&(_0x461b50=_0x5419d2(_0x461b50)||_0x461b50);return _0x461b50;},F=(_0xd93924,_0x44cf31)=>(_0x518b4b,_0x529b66)=>_0x44cf31(_0x518b4b,_0x529b66,_0xd93924);let _e=class extends _0xf771d3{constructor(_0x448560,_0x5e2d3f,_0x309f0f,_0x86188a,_0x307336,_0x5b866d){const _0x4c29f7=_0x240916;super(),this[_0x4c29f7(0x2cf)]=_0x448560,this['_localCacheService']=_0x5e2d3f,this[_0x4c29f7(0x258)]=_0x309f0f,this[_0x4c29f7(0x190)]=_0x86188a,this['_notificationService']=_0x307336,this[_0x4c29f7(0x239)]=_0x5b866d,this[_0x4c29f7(0x13a)](),this['_initEvent']();}['_setupBeforeClosingHandler'](){const _0xfea1ed=_0x240916;this[_0xfea1ed(0xe0)](this['_beforeCloseService']['registerBeforeClose'](()=>{const _0xe88136=_0xfea1ed;if(this['_localCacheService'][_0xe88136(0x25b)][_0xe88136(0xe4)])return this[_0xe88136(0x239)]['t']('collaboration.offline-data-not-saved');}));}[_0x240916(0x1d0)](){const _0x3515ab=_0x240916;this['disposeWithMe'](this['_collaborationUIEventService'][_0x3515ab(0xea)][_0x3515ab(0x111)](_0x273cf8=>{const _0x1736ff=_0x3515ab;_0x273cf8['id']===_0x892b1e['OTHER_CLIENT_EDITING']&&this['_messageService']['show']({'type':_0x24cf21[_0x1736ff(0x246)],'content':this[_0x1736ff(0x239)]['t'](_0x1736ff(0x2b9))}),_0x273cf8['id']===_0x892b1e[_0x1736ff(0x1f3)]&&this['_messageService'][_0x1736ff(0x267)]({'type':_0x24cf21[_0x1736ff(0x246)],'content':this[_0x1736ff(0x239)]['t'](_0x1736ff(0x21f))}),_0x273cf8['id']===_0x892b1e[_0x1736ff(0x15d)]&&this[_0x1736ff(0x2f8)][_0x1736ff(0x267)]({'title':this[_0x1736ff(0x239)]['t'](_0x1736ff(0x2c2)),'content':this[_0x1736ff(0x239)]['t']('permission.content'),'type':'error','duration':0x0}),_0x273cf8['id']===_0x892b1e[_0x1736ff(0x279)]&&this['_messageService'][_0x1736ff(0x267)]({'type':_0x24cf21[_0x1736ff(0xd9)],'content':this['_localeService']['t'](_0x1736ff(0x21f))+'('+_0x273cf8[_0x1736ff(0x213)]+')'}),_0x273cf8['id']===_0x892b1e['JOIN_ROOM_FAILED']&&this[_0x1736ff(0x190)][_0x1736ff(0x267)]({'type':_0x24cf21['Warning'],'content':this[_0x1736ff(0x239)]['t'](_0x273cf8['data']||'')}),_0x273cf8['id']===_0x892b1e[_0x1736ff(0x1df)]&&this[_0x1736ff(0x190)][_0x1736ff(0x267)]({'type':_0x24cf21[_0x1736ff(0x246)],'content':this[_0x1736ff(0x239)]['t'](_0x1736ff(0x1f7))}),_0x273cf8['id']===_0x892b1e[_0x1736ff(0x1a4)]&&this['_messageService'][_0x1736ff(0x267)]({'type':_0x24cf21[_0x1736ff(0xd9)],'content':this[_0x1736ff(0x239)]['t'](_0x1736ff(0x318))}),_0x273cf8['id']===_0x892b1e['SUBMIT_CHANGESET_TIMEOUT']&&this['_messageService']['show']({'type':_0x24cf21[_0x1736ff(0xd9)],'content':this[_0x1736ff(0x239)]['t'](_0x1736ff(0x10e))});}));}};_e=cn([F(0x0,_0x159d32),F(0x1,_0x45d2d0),F(0x2,_0x451de1(_0x1be880)),F(0x3,_0x110574),F(0x4,_0xbbab2c),F(0x5,_0x451de1(_0x53f064))],_e);var _n=Object['getOwnPropertyDescriptor'],ln=(_0x475ba5,_0x25a603,_0xefe9c0,_0x25f98f)=>{const _0x3c0700=_0x240916;for(var _0xcdcc4a=_0x25f98f>0x1?void 0x0:_0x25f98f?_n(_0x25a603,_0xefe9c0):_0x25a603,_0x45c755=_0x475ba5[_0x3c0700(0xfb)]-0x1,_0x1c5df0;_0x45c755>=0x0;_0x45c755--)(_0x1c5df0=_0x475ba5[_0x45c755])&&(_0xcdcc4a=_0x1c5df0(_0xcdcc4a)||_0xcdcc4a);return _0xcdcc4a;},ne=(_0x38d91e,_0x504be8)=>(_0x511dc1,_0x269d64)=>_0x504be8(_0x511dc1,_0x269d64,_0x38d91e);let le=class extends _0xf771d3{constructor(_0x5061a5,_0x269c5e,_0x3fe83a,_0x1271a2){const _0x5ee44d=_0x240916;super(),_(this,_0x5ee44d(0x2ae)),(this['_injector']=_0x5061a5,this[_0x5ee44d(0x19d)]=_0x269c5e,this['_logService']=_0x3fe83a,this[_0x5ee44d(0x13c)]=_0x1271a2,this[_0x5ee44d(0x163)]());}[_0x240916(0x163)](){const _0x6aa67=_0x240916;this[_0x6aa67(0x259)](),this[_0x6aa67(0x20f)](),this[_0x6aa67(0x121)](),this[_0x6aa67(0x18c)]();}[_0x240916(0x18c)](){const _0x16f95b=_0x240916;this[_0x16f95b(0xe0)](this[_0x16f95b(0x13c)]['socket$']['subscribe'](_0x3b89b3=>{const _0x3962e6=_0x16f95b;this[_0x3962e6(0x2ae)]=_0x3b89b3==null?void 0x0:_0x3b89b3[_0x3962e6(0x143)];}));}[_0x240916(0x259)](){const _0x2079c3=_0x240916,_0x2fdfd5=_0x27d535=>{const _0x3dabc6=_0x9124;var _0x289fb7;this['_uploadLog'](_0x3dabc6(0x20a),'[Window\x20Error]:\x20'+_0x27d535[_0x3dabc6(0x16e)]+_0x3dabc6(0x1d4)+_0x27d535[_0x3dabc6(0x312)]+':'+_0x27d535[_0x3dabc6(0x2d8)]+':'+_0x27d535['colno']+'\x0a'+(((_0x289fb7=_0x27d535['error'])==null?void 0x0:_0x289fb7['stack'])||''));};window['addEventListener'](_0x2079c3(0x20a),_0x2fdfd5),this[_0x2079c3(0xe0)](()=>{const _0x5adfc8=_0x2079c3;window[_0x5adfc8(0x194)](_0x5adfc8(0x20a),_0x2fdfd5);});}['_initUnhandledRejectionListener'](){const _0x5e5628=_0x240916,_0x56b26a=_0x4ff2b9=>{const _0x10925f=_0x9124;this[_0x10925f(0x2d1)](_0x10925f(0x20a),_0x10925f(0x25a)+_0x4ff2b9['reason']);};window[_0x5e5628(0x216)](_0x5e5628(0x215),_0x56b26a),this['disposeWithMe'](()=>{const _0x275464=_0x5e5628;window[_0x275464(0x194)](_0x275464(0x215),_0x56b26a);});}['_monkeyPatchLogService'](){const _0x7adff5=_0x240916,_0x1e5e5f=this[_0x7adff5(0x26f)]['error']['bind'](this[_0x7adff5(0x26f)]);this[_0x7adff5(0x26f)][_0x7adff5(0x20a)]=(..._0x25766d)=>{const _0x26e898=_0x7adff5,_0x281665=_0x25766d[_0x26e898(0x281)](_0x532519=>_0x532519 instanceof Error?_0x532519[_0x26e898(0x16e)]+'\x0a'+_0x532519['stack']:String(_0x532519))['join']('\x20');this['_uploadLog'](_0x26e898(0x20a),_0x26e898(0x1c3)+_0x281665),_0x1e5e5f(..._0x25766d);},this[_0x7adff5(0xe0)](()=>{const _0x2b9a72=_0x7adff5;this['_logService'][_0x2b9a72(0x20a)]=_0x1e5e5f;});}['_uploadLog'](_0x9daf5f,_0x2285c5){const _0x3aa0fb=_0x240916;try{const _0x4eded={'userId':this[_0x3aa0fb(0x2ae)],'logLabel':_0x9daf5f,'content':_0x2285c5};this[_0x3aa0fb(0x19d)]['post'](_0x3aa0fb(0x1e8),{'body':_0x4eded})[_0x3aa0fb(0x122)](()=>{});}catch{}}};le=ln([ne(0x0,_0x451de1(_0x30dac5)),ne(0x1,_0x451de1(_0x20e19d)),ne(0x2,_0x48e521),ne(0x3,_0x451de1(_0x27d44b))],le);const hn=_0x240916(0x16d),_t={};var un=Object['getOwnPropertyDescriptor'],dn=(_0xa9579d,_0x4e6c4b,_0x4026fa,_0x329d51)=>{const _0x40e8c7=_0x240916;for(var _0x1980ac=_0x329d51>0x1?void 0x0:_0x329d51?un(_0x4e6c4b,_0x4026fa):_0x4e6c4b,_0x3c37c4=_0xa9579d[_0x40e8c7(0xfb)]-0x1,_0x484d01;_0x3c37c4>=0x0;_0x3c37c4--)(_0x484d01=_0xa9579d[_0x3c37c4])&&(_0x1980ac=_0x484d01(_0x1980ac)||_0x1980ac);return _0x1980ac;},lt=(_0x23b242,_0x4bfa64)=>(_0x5f3a67,_0x5e5d8e)=>_0x4bfa64(_0x5f3a67,_0x5e5d8e,_0x23b242);let he=class{constructor(_0x5963dc,_0x4cc7bd){const _0x20a291=_0x240916;this[_0x20a291(0x1bf)]=_0x5963dc,this[_0x20a291(0x212)]=_0x4cc7bd;}[_0x240916(0x166)](_0x11654a){const _0x137600=_0x240916;this[_0x137600(0xd1)](_0x11654a),this[_0x137600(0x1ff)](_0x11654a);}[_0x240916(0x17b)](_0x1c91e9){const _0x347e93=_0x240916,{unitID:_0x3b620c}=_0x1c91e9,_0x3ae244=this['_renderManagerService']['getRenderById'](_0x3b620c)['with'](_0x193f11),{redoCache:_0x405741}=_0x3ae244[_0x347e93(0x2ed)]();if(_0x405741[_0x347e93(0xfb)]===0x0)return _0x1c91e9;let _0x4b287c=_0x141325[_0x347e93(0x2ef)](_0x1c91e9[_0x347e93(0x172)][0x0]);for(let _0x54b9a2=0x0;_0x54b9a2<_0x405741[_0x347e93(0xfb)];_0x54b9a2++){const _0x56f263={'id':_0x347e93(0x1b5),'params':{..._0x405741[_0x54b9a2]}},_0x34528d=this['_transformService']['transformMutation'](_0x4b287c,_0x56f263,!0x1);if(_0x699f6f(_0x34528d))throw _0x34528d['error'];_0x4b287c=_0x34528d['m1Prime'];}return{..._0x141325[_0x347e93(0x2ef)](_0x1c91e9),'mutations':[_0x4b287c]};}[_0x240916(0xd1)](_0x3e6132){const _0x33219c=_0x240916,{unitID:_0x56ba71}=_0x3e6132,_0x112bf8=this[_0x33219c(0x212)][_0x33219c(0xf1)](_0x56ba71)[_0x33219c(0x310)](_0x193f11),{undoCache:_0x4e34e9,redoCache:_0x42fac4}=_0x112bf8[_0x33219c(0x2ed)]();if(_0x4e34e9[_0x33219c(0xfb)]===0x0||_0x42fac4[_0x33219c(0xfb)]===0x0)return;const _0x1e42d7=[],_0x45a661=[];let _0x174b6d=_0x141325[_0x33219c(0x2ef)](_0x3e6132[_0x33219c(0x172)][0x0]),_0x4401bd=_0x141325[_0x33219c(0x2ef)](_0x3e6132['mutations'][0x0]);for(let _0x355469=_0x4e34e9[_0x33219c(0xfb)]-0x1;_0x355469>=0x0;_0x355469--){const _0x6ee3a5={'id':_0x33219c(0x1b5),'params':{..._0x4e34e9[_0x355469]}},_0x43e4b4={'id':_0x33219c(0x1b5),'params':{..._0x42fac4[_0x355469]}},_0x5bac09=this['_transformService'][_0x33219c(0x183)](_0x174b6d,_0x6ee3a5,!0x1),_0x1fed99=this['_transformService']['transformMutation'](_0x4401bd,_0x43e4b4,!0x1);if(_0x699f6f(_0x5bac09))throw _0x5bac09[_0x33219c(0x20a)];if(_0x699f6f(_0x1fed99))throw _0x1fed99['error'];_0x1e42d7[_0x33219c(0x100)](_0x5bac09[_0x33219c(0x103)][_0x33219c(0x1d8)]),_0x45a661[_0x33219c(0x100)](_0x1fed99[_0x33219c(0x103)][_0x33219c(0x1d8)]),_0x174b6d=_0x5bac09[_0x33219c(0x113)],_0x4401bd=_0x1fed99['m1Prime'];}_0x112bf8[_0x33219c(0x1c8)]({'undoCache':_0x1e42d7,'redoCache':_0x45a661});}[_0x240916(0x1ff)](_0xbacaa){const _0x3314f2=_0x240916,{unitID:_0x17e38d}=_0xbacaa,_0x150b78=this[_0x3314f2(0x212)]['getRenderById'](_0x17e38d)['with'](_0x193f11),_0x5124d2=_0x150b78['getActiveRange']();if(_0x5124d2==null)return;const _0x1c1d5c=[{'id':_0x3314f2(0x1b5),'params':{'unitId':_0xbacaa['unitID'],'actions':null,'textRanges':[_0x5124d2]}}],_0x402d0e=this['_transformService'][_0x3314f2(0x10b)](_0xbacaa,_0x1c1d5c);if(!_0x73df74(_0x402d0e))throw _0x402d0e[_0x3314f2(0x20a)];const _0x24e6a5=_0x402d0e['m2Prime'][0x0][_0x3314f2(0x1d8)][_0x3314f2(0x16c)];Array[_0x3314f2(0x1f9)](_0x24e6a5)&&_0x24e6a5['length']&&_0x150b78[_0x3314f2(0x1a6)](_0x24e6a5[0x0]);}};he=dn([lt(0x0,_0x10d68c),lt(0x1,_0x4d689b)],he);var Sn=Object[_0x240916(0x1f8)],In=(_0x2fd0c8,_0x54f199,_0x8e7ac0,_0x11a80e)=>{const _0xb3f604=_0x240916;for(var _0x478dbf=_0x11a80e>0x1?void 0x0:_0x11a80e?Sn(_0x54f199,_0x8e7ac0):_0x54f199,_0x49d542=_0x2fd0c8[_0xb3f604(0xfb)]-0x1,_0x70484b;_0x49d542>=0x0;_0x49d542--)(_0x70484b=_0x2fd0c8[_0x49d542])&&(_0x478dbf=_0x70484b(_0x478dbf)||_0x478dbf);return _0x478dbf;},Le=(_0x148580,_0x1556ba)=>(_0x170a0d,_0x19d7db)=>_0x1556ba(_0x170a0d,_0x19d7db,_0x148580);let ue=class{constructor(_0x412af1,_0x5997f0,_0x855e8){const _0x3bd9aa=_0x240916;this['_injector']=_0x412af1,this[_0x3bd9aa(0x1bf)]=_0x5997f0,this[_0x3bd9aa(0x30a)]=_0x855e8;}[_0x240916(0x200)](_0xa8d2b1){this['_transformHistoryAndStateStack'](_0xa8d2b1);}[_0x240916(0x17b)](_0x3b211e){const _0x29de05=_0x240916,{unitID:_0x5148e5}=_0x3b211e,{collaboration:_0x195a6e}=this['_docStateChangeManagerService'][_0x29de05(0x294)](_0x5148e5);if(_0x195a6e['length']===0x0)return _0x3b211e;let _0x5e573e=_0x141325[_0x29de05(0x2ef)](_0x3b211e[_0x29de05(0x172)][0x0]);for(let _0x5f53e2=0x0;_0x5f53e2<_0x195a6e[_0x29de05(0xfb)];_0x5f53e2++){const _0x41e6e5={'id':_0x29de05(0x1b5),'params':{'unitId':_0x195a6e[_0x5f53e2][_0x29de05(0x1fc)],..._0x195a6e[_0x5f53e2]['redoState']}},_0x1d98bc=this[_0x29de05(0x1bf)][_0x29de05(0x183)](_0x5e573e,_0x41e6e5,!0x1);if(_0x699f6f(_0x1d98bc))throw _0x1d98bc['error'];_0x5e573e=_0x1d98bc['m1Prime'];}return{..._0x141325[_0x29de05(0x2ef)](_0x3b211e),'mutations':[_0x5e573e]};}[_0x240916(0x128)](_0x3e0482){const _0x210226=_0x240916,{unitID:_0x333570}=_0x3e0482,{history:_0x4ab5f3,collaboration:_0x599183}=this['_docStateChangeManagerService']['getStateCache'](_0x333570);if(_0x4ab5f3[_0x210226(0xfb)]===0x0&&_0x599183[_0x210226(0xfb)]===0x0)return;const _0x2b0283=[],_0x4592a3=[];let _0x1c2d92=_0x141325['deepClone'](_0x3e0482['mutations'][0x0]),_0x40761a=_0x141325[_0x210226(0x2ef)](_0x3e0482[_0x210226(0x172)][0x0]);for(let _0x551ad0=_0x4ab5f3[_0x210226(0xfb)]-0x1;_0x551ad0>=0x0;_0x551ad0--){const _0x30f862={'id':_0x210226(0x1b5),'params':{'unitId':_0x4ab5f3[_0x551ad0]['unitId'],..._0x4ab5f3[_0x551ad0]['undoState']}},_0x178ac4={'id':_0x210226(0x1b5),'params':{'unitId':_0x4ab5f3[_0x551ad0][_0x210226(0x1fc)],..._0x4ab5f3[_0x551ad0][_0x210226(0x141)]}},_0x721352=this[_0x210226(0x1bf)]['transformMutation'](_0x1c2d92,_0x30f862,!0x1),_0x47e73a=this[_0x210226(0x1bf)][_0x210226(0x183)](_0x40761a,_0x178ac4,!0x1);if(_0x699f6f(_0x721352))throw _0x721352[_0x210226(0x20a)];if(_0x699f6f(_0x47e73a))throw _0x47e73a[_0x210226(0x20a)];_0x2b0283[_0x210226(0x100)]({..._0x4ab5f3[_0x551ad0],'undoState':_0x721352['m2Prime']['params'],'redoState':_0x47e73a[_0x210226(0x103)][_0x210226(0x1d8)]}),_0x1c2d92=_0x721352[_0x210226(0x113)],_0x40761a=_0x47e73a['m1Prime'];}_0x1c2d92=_0x141325[_0x210226(0x2ef)](_0x3e0482[_0x210226(0x172)][0x0]),_0x40761a=_0x141325[_0x210226(0x2ef)](_0x3e0482[_0x210226(0x172)][0x0]);for(let _0x2d9762=_0x599183['length']-0x1;_0x2d9762>=0x0;_0x2d9762--){const _0x596e7c={'id':_0x210226(0x1b5),'params':{'unitId':_0x599183[_0x2d9762][_0x210226(0x1fc)],..._0x599183[_0x2d9762][_0x210226(0x254)]}},_0x2e60bf={'id':_0x210226(0x1b5),'params':{'unitId':_0x599183[_0x2d9762][_0x210226(0x1fc)],..._0x599183[_0x2d9762][_0x210226(0x141)]}},_0x53455b=this[_0x210226(0x1bf)][_0x210226(0x183)](_0x1c2d92,_0x596e7c,!0x1),_0x4c26b8=this[_0x210226(0x1bf)]['transformMutation'](_0x40761a,_0x2e60bf,!0x1);if(_0x699f6f(_0x53455b))throw _0x53455b[_0x210226(0x20a)];if(_0x699f6f(_0x4c26b8))throw _0x4c26b8[_0x210226(0x20a)];_0x4592a3['unshift']({..._0x599183[_0x2d9762],'undoState':_0x53455b[_0x210226(0x103)][_0x210226(0x1d8)],'redoState':_0x4c26b8[_0x210226(0x103)][_0x210226(0x1d8)]}),_0x1c2d92=_0x53455b[_0x210226(0x113)],_0x40761a=_0x4c26b8[_0x210226(0x113)];}this[_0x210226(0x30a)][_0x210226(0x247)](_0x333570,{'history':_0x2b0283,'collaboration':_0x4592a3});}};ue=In([Le(0x0,_0x451de1(_0x30dac5)),Le(0x1,_0x10d68c),Le(0x2,_0x451de1(_0x3199a5))],ue);var mn=Object[_0x240916(0x1f8)],fn=(_0x257f35,_0x413c7f,_0x48ac66,_0x55e374)=>{const _0x3b8607=_0x240916;for(var _0x47a7b3=_0x55e374>0x1?void 0x0:_0x55e374?mn(_0x413c7f,_0x48ac66):_0x413c7f,_0x20f760=_0x257f35[_0x3b8607(0xfb)]-0x1,_0x546a66;_0x20f760>=0x0;_0x20f760--)(_0x546a66=_0x257f35[_0x20f760])&&(_0x47a7b3=_0x546a66(_0x47a7b3)||_0x47a7b3);return _0x47a7b3;},ht=(_0x12f40e,_0x820533)=>(_0x2f4cb8,_0x1018b0)=>_0x820533(_0x2f4cb8,_0x1018b0,_0x12f40e);let de=class{constructor(_0x3a0aa0,_0xdb1591){const _0x38b822=_0x240916;this[_0x38b822(0x26e)]=_0x3a0aa0,this[_0x38b822(0x1bf)]=_0xdb1591;}[_0x240916(0x156)](_0x47bf24){const _0x5ce377=_0x240916;var _0x2fb8c8;const _0x589126=this[_0x5ce377(0x26e)][_0x5ce377(0x1c7)](_0x5f3a65),_0x6d4b76=(_0x2fb8c8=_0x589126['getDocRanges']())!=null?_0x2fb8c8:[];if(_0x6d4b76[_0x5ce377(0xfb)]===0x0)return;const _0xc6bc96=_0x47bf24[_0x5ce377(0x22c)],_0x41ba8a=[{'id':_0x5ce377(0x1b5),'params':{'unitId':_0xc6bc96,'actions':null,'textRanges':_0x6d4b76}}],_0xcdcdcf=this[_0x5ce377(0x1bf)][_0x5ce377(0x10b)](_0x47bf24,_0x41ba8a);if(!_0x73df74(_0xcdcdcf))throw _0xcdcdcf[_0x5ce377(0x20a)];const _0x2313e5=_0xcdcdcf[_0x5ce377(0x103)][0x0][_0x5ce377(0x1d8)][_0x5ce377(0x16c)];Array[_0x5ce377(0x1f9)](_0x2313e5)&&_0x2313e5[_0x5ce377(0xfb)]&&_0x589126['replaceDocRanges'](_0x2313e5,{'unitId':_0xc6bc96,'subUnitId':_0xc6bc96},!0x1);}};de=fn([ht(0x0,_0x451de1(_0x30dac5)),ht(0x1,_0x10d68c)],de);var gn=Object['getOwnPropertyDescriptor'],En=(_0x159454,_0x415069,_0x2c3b96,_0x231e67)=>{const _0x3af46b=_0x240916;for(var _0x4051f4=_0x231e67>0x1?void 0x0:_0x231e67?gn(_0x415069,_0x2c3b96):_0x415069,_0x5b5621=_0x159454[_0x3af46b(0xfb)]-0x1,_0x47c248;_0x5b5621>=0x0;_0x5b5621--)(_0x47c248=_0x159454[_0x5b5621])&&(_0x4051f4=_0x47c248(_0x4051f4)||_0x4051f4);return _0x4051f4;},U=(_0xacc485,_0x150f58)=>(_0x3ed17a,_0x2d125d)=>_0x150f58(_0x3ed17a,_0x2d125d,_0xacc485);let Se=class extends _0xf771d3{constructor(_0x4533f5,_0x469d56,_0x250d28,_0x14cd8d,_0x40bda4,_0x297283,_0x906908,_0x4b95f6){const _0x33e55c=_0x240916;super(),_(this,_0x33e55c(0x2a1),new _0x37599d(_0x1cb4cc[_0x33e55c(0x23c)])),(this['_docStateChangeManagerService']=_0x4533f5,this[_0x33e55c(0x114)]=_0x469d56,this[_0x33e55c(0x1a5)]=_0x250d28,this[_0x33e55c(0x2c1)]=_0x14cd8d,this[_0x33e55c(0x28b)]=_0x40bda4,this[_0x33e55c(0x117)]=_0x297283,this[_0x33e55c(0x190)]=_0x906908,this[_0x33e55c(0x239)]=_0x4b95f6,this[_0x33e55c(0x22a)]());}[_0x240916(0x22a)](){const _0x3d46a4=_0x240916;this['disposeWithMe'](this[_0x3d46a4(0x114)][_0x3d46a4(0x151)]['subscribe'](_0xefe530=>{const _0x1e389b=_0x3d46a4,_0x383c73=this['_docStateChangeManagerService']['docStateChange$'][_0x1e389b(0x111)](_0x2a2332=>{const _0xd1d0cf=_0x1e389b;if(_0x2a2332==null)return;const {unitId:_0x3281db,redoState:_0x91822f,commandId:_0x18dd0c}=_0x2a2332;if(_0x3281db!==_0xefe530[_0xd1d0cf(0x22c)])return;const _0x4543cd={'id':_0x18dd0c,'type':_0x445795[_0xd1d0cf(0x2b6)],'params':{'unitId':_0x3281db,'actions':_0x91822f[_0xd1d0cf(0x1db)],'textRanges':null}};_0xefe530[_0xd1d0cf(0x169)](_0x4543cd);});if(_0xefe530['disposeWithMe'](_0x383c73),_0xefe530 instanceof _0x320279){const _0x3d1798={'onTransformIME':_0x54361b=>this['_docTransformIMECacheService']['transformIMECache'](_0x54361b),'onTransformState':_0x509e2f=>this['_docTransformStateCacheService']['transformStateCache'](_0x509e2f),'onTransformSelections':_0x58b394=>this[_0x1e389b(0x28b)][_0x1e389b(0x156)](_0x58b394),'onSyncEditingCollabCursor':_0x1ace80=>this[_0x1e389b(0x117)][_0x1e389b(0x2f3)](_0x1ace80),'onTransformRemoteChangesetByIMECache':_0x5e334b=>this[_0x1e389b(0x1a5)][_0x1e389b(0x17b)](_0x5e334b),'onTransformRemoteChangesetByStateCache':_0x70dc82=>this[_0x1e389b(0x2c1)][_0x1e389b(0x17b)](_0x70dc82)};_0xefe530['addHandlerCallback'](_0x3d1798);}}));}};Se=En([U(0x0,_0x451de1(_0x3199a5)),U(0x1,_0x451de1(_0x4a10bf)),U(0x2,_0x451de1(he)),U(0x3,_0x451de1(ue)),U(0x4,_0x451de1(de)),U(0x5,_0x451de1(ze)),U(0x6,_0x110574),U(0x7,_0x451de1(_0x53f064))],Se);var Z=(_0x1d891c=>(_0x1d891c[_0x1d891c[_0x240916(0x18e)]=0x0]='UNDEFINED',_0x1d891c[_0x1d891c['OK']=0x1]='OK',_0x1d891c[_0x1d891c[_0x240916(0x243)]=0x2]=_0x240916(0x243),_0x1d891c[_0x1d891c[_0x240916(0x15d)]=0x3]=_0x240916(0x15d),_0x1d891c[_0x1d891c['NOT_FOUND']=0x4]=_0x240916(0x242),_0x1d891c[_0x1d891c[_0x240916(0x24e)]=0x5]=_0x240916(0x24e),_0x1d891c[_0x1d891c[_0x240916(0x154)]=0x6]=_0x240916(0x154),_0x1d891c[_0x1d891c[_0x240916(0x232)]=0x7]='INVALID_ARGUMENT',_0x1d891c[_0x1d891c[_0x240916(0x255)]=0x8]=_0x240916(0x255),_0x1d891c[_0x1d891c[_0x240916(0x251)]=0x9]='COMPLETION_FINISHED',_0x1d891c[_0x1d891c['LOGIN_FAILED']=0xa]=_0x240916(0x270),_0x1d891c[_0x1d891c[_0x240916(0xda)]=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x1d891c[_0x1d891c[_0x240916(0x1b9)]=0xc]=_0x240916(0x1b9),_0x1d891c[_0x1d891c[_0x240916(0x1bb)]=0xd]=_0x240916(0x1bb),_0x1d891c[_0x1d891c[_0x240916(0x11a)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x1d891c[_0x1d891c[_0x240916(0x2af)]=0xf]=_0x240916(0x2af),_0x1d891c[_0x1d891c[_0x240916(0x22d)]=0x10]=_0x240916(0x22d),_0x1d891c[_0x1d891c[_0x240916(0x21b)]=0x64]=_0x240916(0x21b),_0x1d891c[_0x1d891c['ERROR_AGAIN']=0x65]=_0x240916(0x2ce),_0x1d891c[_0x1d891c[_0x240916(0xd7)]=0xc9]='USER_NOT_FOUND',_0x1d891c[_0x1d891c[_0x240916(0x29b)]=0xca]=_0x240916(0x29b),_0x1d891c[_0x1d891c[_0x240916(0x13b)]=0x1389]=_0x240916(0x13b),_0x1d891c[_0x1d891c[_0x240916(0x2f5)]=0x1771]=_0x240916(0x2f5),_0x1d891c[_0x1d891c[_0x240916(0xe5)]=0x1772]=_0x240916(0xe5),_0x1d891c[_0x1d891c[_0x240916(0x2a9)]=0x1773]=_0x240916(0x2a9),_0x1d891c[_0x1d891c[_0x240916(0x180)]=0x1b59]=_0x240916(0x180),_0x1d891c[_0x1d891c[_0x240916(0x206)]=0x1b5a]=_0x240916(0x206),_0x1d891c[_0x1d891c['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x240916(0x1d9),_0x1d891c[_0x1d891c[_0x240916(0x20c)]=0x1b5c]=_0x240916(0x20c),_0x1d891c[_0x1d891c[_0x240916(0x15c)]=0x1b5d]=_0x240916(0x15c),_0x1d891c[_0x1d891c['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x240916(0x285),_0x1d891c[_0x1d891c['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x240916(0xdf),_0x1d891c[_0x1d891c[_0x240916(0x2e5)]=0x232a]=_0x240916(0x2e5),_0x1d891c[_0x1d891c['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x240916(0x288),_0x1d891c[_0x1d891c['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x240916(0x225),_0x1d891c[_0x1d891c[_0x240916(0x30f)]=0x232d]=_0x240916(0x30f),_0x1d891c[_0x1d891c[_0x240916(0x1ea)]=0x2711]=_0x240916(0x1ea),_0x1d891c[_0x1d891c[_0x240916(0x203)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x1d891c[_0x1d891c[_0x240916(0x11f)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x1d891c[_0x1d891c[_0x240916(0x2e2)]=0x2714]=_0x240916(0x2e2),_0x1d891c[_0x1d891c['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0x240916(0x209),_0x1d891c[_0x1d891c['YUUMI_ASYNCIO_CANCELLED']=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x1d891c[_0x1d891c[_0x240916(0x29a)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x1d891c[_0x1d891c[_0x240916(0xe6)]=0x271d]=_0x240916(0xe6),_0x1d891c[_0x1d891c['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x240916(0xd8),_0x1d891c[_0x1d891c[_0x240916(0x14b)]=0x271f]=_0x240916(0x14b),_0x1d891c[_0x1d891c[_0x240916(0x1d3)]=0x2720]='YUUMI_CONNECTOR_URL_NOT_FOUND',_0x1d891c[_0x1d891c['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x240916(0x2bc),_0x1d891c[_0x1d891c['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x240916(0x264),_0x1d891c[_0x1d891c[_0x240916(0x230)]=0x2ee2]=_0x240916(0x230),_0x1d891c[_0x1d891c[_0x240916(0x235)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x1d891c[_0x1d891c[_0x240916(0x237)]=0x2ee4]=_0x240916(0x237),_0x1d891c[_0x1d891c[_0x240916(0x125)]=0x2ee5]=_0x240916(0x125),_0x1d891c[_0x1d891c[_0x240916(0x27d)]=0x32c9]=_0x240916(0x27d),_0x1d891c[_0x1d891c[_0x240916(0x170)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x1d891c[_0x1d891c[_0x240916(0x30b)]=0x32cb]=_0x240916(0x30b),_0x1d891c[_0x1d891c[_0x240916(0xf2)]=0x36b1]=_0x240916(0xf2),_0x1d891c[_0x1d891c[_0x240916(0x14d)]=0x36b2]=_0x240916(0x14d),_0x1d891c[_0x1d891c[_0x240916(0x144)]=0x36b3]=_0x240916(0x144),_0x1d891c[_0x1d891c[_0x240916(0x278)]=0x36b4]='PAYMENT_CHANNEL_NOT_SUPPORT',_0x1d891c[_0x1d891c[_0x240916(0x2a8)]=0x36b5]=_0x240916(0x2a8),_0x1d891c[_0x1d891c[_0x240916(0x207)]=0x36b6]='ENTITLE_COUPON_EXPIRED',_0x1d891c[_0x1d891c['ENTITLE_COUPON_USED_UP']=0x36b7]=_0x240916(0x2ea),_0x1d891c[_0x1d891c['ENTITLE_USE_COUPON_NOT_1ST_TRADE']=0x36b8]='ENTITLE_USE_COUPON_NOT_1ST_TRADE',_0x1d891c[_0x1d891c[_0x240916(0x25e)]=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0x1d891c[_0x1d891c[_0x240916(0xe1)]=0x3716]=_0x240916(0xe1),_0x1d891c[_0x1d891c['ENTITLE_INSUFFICIENT_QUOTA']=0x3717]=_0x240916(0x269),_0x1d891c[_0x1d891c[_0x240916(0x2fe)]=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x1d891c[_0x1d891c[_0x240916(0x149)]=0x3a99]=_0x240916(0x149),_0x1d891c[_0x1d891c[_0x240916(0x192)]=0x3a9a]='REDEMPTION_CODE_INACTIVE',_0x1d891c[_0x1d891c[_0x240916(0x2e9)]=0x3a9b]=_0x240916(0x2e9),_0x1d891c[_0x1d891c[_0x240916(0x240)]=0x3a9c]=_0x240916(0x240),_0x1d891c[_0x1d891c['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]=_0x240916(0x301),_0x1d891c[_0x1d891c[_0x240916(0x17e)]=0x3a9e]=_0x240916(0x17e),_0x1d891c[_0x1d891c[_0x240916(0x1e6)]=0x3a9f]='REDEMPTION_CODE_HAS_BEEN_CREATED',_0x1d891c[_0x1d891c['DATA_SOURCE_TOO_LARGE']=0x3e81]=_0x240916(0x1fd),_0x1d891c[_0x1d891c[_0x240916(0x25c)]=-0x1]=_0x240916(0x25c),_0x1d891c))(Z||{});function vn(_0x27be7c){const _0x59e115=_0x240916;var _0xe5c215,_0x2c58d2;const _0x5cbf99=(_0xe5c215=_0x27be7c['stageInfo'])==null?void 0x0:_0xe5c215[_0x59e115(0x273)],_0x3e885f=((_0x2c58d2=_0x27be7c[_0x59e115(0x304)])==null?void 0x0:_0x2c58d2[_0x59e115(0x12e)])||0x0;return _0x5cbf99===_0x39b8f6[_0x59e115(0x2fd)]&&_0x3e885f>0x0;}function pn(_0x1f3723){const _0x511ea0=_0x240916;return _0x1f3723[_0x511ea0(0x202)]===_0xb5c3c9['SUCCESS'];}var On=Object['getOwnPropertyDescriptor'],Tn=(_0x4f1396,_0x5f4675,_0x5b892a,_0x43ca21)=>{const _0x1d076b=_0x240916;for(var _0x571ac4=_0x43ca21>0x1?void 0x0:_0x43ca21?On(_0x5f4675,_0x5b892a):_0x5f4675,_0x9a4528=_0x4f1396[_0x1d076b(0xfb)]-0x1,_0x4f4cd6;_0x9a4528>=0x0;_0x9a4528--)(_0x4f4cd6=_0x4f1396[_0x9a4528])&&(_0x571ac4=_0x4f4cd6(_0x571ac4)||_0x571ac4);return _0x571ac4;},P=(_0x4a1d68,_0x2c060f)=>(_0x35ea79,_0x2af949)=>_0x2c060f(_0x35ea79,_0x2af949,_0x4a1d68);const Cn=_0x240916(0x181),Rn=_0x240916(0x199),Dn=_0x240916(0xef);let Ie=class extends _0xf771d3{constructor(_0x52c29b,_0x5830b3,_0x518cef,_0x5c75c2,_0x196f90,_0x1e8213,_0x38c548){const _0x31a21f=_0x240916;super(),_(this,_0x31a21f(0x1ec),null),_(this,_0x31a21f(0x2f7),0x0),_(this,'_currentUsage',0x0),_(this,_0x31a21f(0x1cb),[]),_(this,_0x31a21f(0x145),0x0),(this[_0x31a21f(0x190)]=_0x52c29b,this['_commandService']=_0x5830b3,this[_0x31a21f(0x263)]=_0x518cef,this[_0x31a21f(0x19d)]=_0x5c75c2,this[_0x31a21f(0x1d7)]=_0x196f90,this[_0x31a21f(0x26f)]=_0x1e8213,this[_0x31a21f(0x239)]=_0x38c548,this[_0x31a21f(0x11d)]());}[_0x240916(0x11d)](){const _0x34cd14=_0x240916;this[_0x34cd14(0xe0)](this[_0x34cd14(0x208)][_0x34cd14(0xd5)]((_0x34c5cf,_0x283704)=>{const _0x1a3747=_0x34cd14;var _0x2d303a;if(_0x34c5cf['id']!==_0x1971b5['id'])return;const _0x293bd7=_0x34c5cf[_0x1a3747(0x1d8)];if(!this['_hasFormulaInDirtyRanges']((_0x2d303a=_0x293bd7[_0x1a3747(0x10d)])!=null?_0x2d303a:[]))return;if(!this['_checkCalculationAvailable']())throw this[_0x1a3747(0x29f)](_0x34c5cf,_0x283704),this[_0x1a3747(0x2e0)](),new _0x100082();})),this[_0x34cd14(0xe0)](this['_commandService'][_0x34cd14(0x171)]((_0x25668d,_0x3102a4)=>{const _0x11c68f=_0x34cd14;if(_0x25668d['id']!==_0x446ee4['id'])return;const _0x2f0dee=_0x25668d[_0x11c68f(0x1d8)];if(vn(_0x2f0dee)){const _0x777358=_0x2664d4();this[_0x11c68f(0x1cb)][_0x11c68f(0x1e0)](_0x777358),this['_startCalculationLimit'](_0x777358);}else{if(pn(_0x2f0dee)&&this[_0x11c68f(0x1cb)][_0x11c68f(0xfb)]>0x0){const _0x21fabb=this['_taskIds'][_0x11c68f(0x13e)]();this['_releaseCalculationLimit'](_0x21fabb);}}}));}[_0x240916(0x185)](){const _0x37d1a7=_0x240916;super[_0x37d1a7(0x185)](),this[_0x37d1a7(0xe7)](),this[_0x37d1a7(0x1cb)]=[],this[_0x37d1a7(0x26d)]=0x0,this[_0x37d1a7(0x2f7)]=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x240916(0x29f)](_0x4d3fd5,_0x5e2b30){const _0x5525bb=_0x240916;for(let _0x5785be=0x0;_0x5785be<0x1e;_0x5785be++)try{if(await this['_getFormulaLimitStatus'](),this[_0x5525bb(0x16a)]()){this[_0x5525bb(0x1c1)](_0x4d3fd5,_0x5e2b30),this[_0x5525bb(0x190)][_0x5525bb(0x267)]({'content':this[_0x5525bb(0x239)]['t'](_0x5525bb(0x23a)),'type':_0x24cf21[_0x5525bb(0x150)]});return;}await new Promise(_0x2b004b=>{const _0x171f13=_0x5525bb;this[_0x171f13(0x1ec)]=window[_0x171f13(0xfa)](_0x2b004b,0x3e8);});}catch(_0x127fd8){this['_logService']['error'](_0x127fd8);}this[_0x5525bb(0x190)][_0x5525bb(0x267)]({'content':this[_0x5525bb(0x239)]['t'](_0x5525bb(0x176)),'type':_0x24cf21[_0x5525bb(0xd9)]});}[_0x240916(0x1c1)](_0x1e9bc4,_0x5be3ad){const _0x25a098=_0x240916;try{this[_0x25a098(0x208)][_0x25a098(0x282)](_0x1e9bc4['id'],_0x1e9bc4[_0x25a098(0x1d8)],_0x5be3ad);}catch(_0x4631d3){this[_0x25a098(0x26f)][_0x25a098(0x20a)](_0x4631d3);}}[_0x240916(0x307)](_0x38023b,_0x1e8983){const _0x140e8f=_0x240916;_0x1e8983<this[_0x140e8f(0x145)]||(this[_0x140e8f(0x145)]=_0x1e8983,this[_0x140e8f(0x2f7)]=Number[_0x140e8f(0x20e)](_0x38023b[_0x140e8f(0x236)]),this['_currentUsage']=Number['parseInt'](_0x38023b[_0x140e8f(0x115)]));}async[_0x240916(0x1b2)](_0x37965c){const _0x5e9974=_0x240916;var _0x4a3bf1,_0xfee2c6;const _0x57467c=Date[_0x5e9974(0x14e)]();try{const _0x385450=((_0x4a3bf1=this[_0x5e9974(0x263)]['getConfig'](_0x2941e8))==null?void 0x0:_0x4a3bf1['startFormulaLimitUrl'])||Rn,_0x1ea0bb=(await this[_0x5e9974(0x19d)][_0x5e9974(0x1d2)](_0x385450,{'body':JSON['stringify']({'taskId':_0x37965c})}))[_0x5e9974(0x1e4)];if(((_0xfee2c6=_0x1ea0bb[_0x5e9974(0x20a)])==null?void 0x0:_0xfee2c6[_0x5e9974(0x2ad)])!==Z['OK'])return;this[_0x5e9974(0x307)](_0x1ea0bb[_0x5e9974(0x17c)],_0x57467c);}catch(_0x20d104){this[_0x5e9974(0x26f)][_0x5e9974(0x20a)](_0x20d104);}}async['_getFormulaLimitStatus'](_0x1b64a6){const _0x15cc86=_0x240916;var _0x24eb51,_0x3d5b2d;const _0x111b65=Date[_0x15cc86(0x14e)]();try{const _0x3e8b81=((_0x24eb51=this[_0x15cc86(0x263)][_0x15cc86(0x271)](_0x2941e8))==null?void 0x0:_0x24eb51['getformulaLimitStatusUrl'])||Cn,_0x2c8418=_0x1b64a6?_0x3e8b81+_0x15cc86(0x2a5)+encodeURIComponent(_0x1b64a6):_0x3e8b81,_0x433cd2=(await this[_0x15cc86(0x19d)][_0x15cc86(0x1c7)](_0x2c8418))[_0x15cc86(0x1e4)];if(((_0x3d5b2d=_0x433cd2[_0x15cc86(0x20a)])==null?void 0x0:_0x3d5b2d[_0x15cc86(0x2ad)])!==Z['OK'])return;this[_0x15cc86(0x307)](_0x433cd2[_0x15cc86(0x17c)],_0x111b65);}catch(_0x58ea3d){this[_0x15cc86(0x26f)][_0x15cc86(0x20a)](_0x58ea3d);}}async[_0x240916(0x1ad)](_0x5d4a04){const _0x35049f=_0x240916;var _0x33a9a8,_0x12d97a;const _0x61482f=Date[_0x35049f(0x14e)]();try{const _0x41cc6d=((_0x33a9a8=this[_0x35049f(0x263)][_0x35049f(0x271)](_0x2941e8))==null?void 0x0:_0x33a9a8[_0x35049f(0x2c0)])||Dn,_0x1ccc45=(await this[_0x35049f(0x19d)][_0x35049f(0x1d2)](_0x41cc6d,{'body':JSON[_0x35049f(0x286)]({'taskId':_0x5d4a04})}))['body'];if(((_0x12d97a=_0x1ccc45[_0x35049f(0x20a)])==null?void 0x0:_0x12d97a['code'])!==Z['OK'])return;this[_0x35049f(0x307)](_0x1ccc45[_0x35049f(0x17c)],_0x61482f);}catch(_0x1eae34){this['_logService'][_0x35049f(0x20a)](_0x1eae34);}}[_0x240916(0x16a)](){const _0x1efa3e=_0x240916;return this[_0x1efa3e(0x2f7)]===0x0?!0x0:this['_maxFormulaLimit']-this[_0x1efa3e(0x26d)]>0x0;}[_0x240916(0xe7)](){const _0x20b54c=_0x240916;this['_pollingInterval']&&(clearTimeout(this[_0x20b54c(0x1ec)]),this[_0x20b54c(0x1ec)]=null);}[_0x240916(0x2e0)](){const _0x5edadb=_0x240916;this['_messageService'][_0x5edadb(0x267)]({'content':this[_0x5edadb(0x239)]['t']('formula.calculation.waiting'),'type':_0x24cf21[_0x5edadb(0xf4)]});}[_0x240916(0x226)](_0x30b86f){const _0x3a097e=_0x240916;for(const _0x28efaf of _0x30b86f){const {unitId:_0x4b0a4f,sheetId:_0x1de772,range:_0x4bc7cf}=_0x28efaf,_0x13760f=this['_univerInstanceService'][_0x3a097e(0x2b7)](_0x4b0a4f);if(!_0x13760f)continue;const _0x417ceb=_0x13760f[_0x3a097e(0x12b)](_0x1de772);if(!_0x417ceb)continue;const _0x28dff1=_0x417ceb[_0x3a097e(0x155)]();for(let _0xdbc18d=_0x4bc7cf['startRow'];_0xdbc18d<=_0x4bc7cf[_0x3a097e(0x2c3)];_0xdbc18d++)for(let _0x22ad76=_0x4bc7cf[_0x3a097e(0x302)];_0x22ad76<=_0x4bc7cf[_0x3a097e(0x316)];_0x22ad76++){const _0x109408=_0x28dff1['getValue'](_0xdbc18d,_0x22ad76);if(_0x109408&&(_0x53c2f3(_0x109408['f'])||_0x390515(_0x109408['si'])))return!0x0;}}return!0x1;}};Ie=Tn([P(0x0,_0x451de1(_0x110574)),P(0x1,_0x5e5675),P(0x2,_0x1510c1),P(0x3,_0x451de1(_0x20e19d)),P(0x4,_0x81870d),P(0x5,_0x48e521),P(0x6,_0x451de1(_0x53f064))],Ie);var Nn=Object[_0x240916(0x1f8)],bn=(_0x16caaa,_0x27fecd,_0x2f6a2b,_0xa07a3f)=>{const _0x270f42=_0x240916;for(var _0x5d19f0=_0xa07a3f>0x1?void 0x0:_0xa07a3f?Nn(_0x27fecd,_0x2f6a2b):_0x27fecd,_0x2feb93=_0x16caaa[_0x270f42(0xfb)]-0x1,_0x593ff2;_0x2feb93>=0x0;_0x2feb93--)(_0x593ff2=_0x16caaa[_0x2feb93])&&(_0x5d19f0=_0x593ff2(_0x5d19f0)||_0x5d19f0);return _0x5d19f0;},Ue=(_0x16eebe,_0x43e2b7)=>(_0x57a900,_0x3a42d9)=>_0x43e2b7(_0x57a900,_0x3a42d9,_0x16eebe);let He=class extends _0xf771d3{constructor(_0xf17147,_0x15b5b8,_0x2cd838){const _0x15e221=_0x240916;super(),_(this,_0x15e221(0x21a),new Map()),_(this,_0x15e221(0x2f1),new Map()),_(this,_0x15e221(0xeb),!0x1),(this[_0x15e221(0x263)]=_0xf17147,this[_0x15e221(0x2bf)]=_0x15b5b8,this[_0x15e221(0x1a2)]=_0x2cd838);}['disableLocalCache'](){const _0x1795c9=_0x240916;this[_0x1795c9(0xeb)]=!0x0;}[_0x240916(0x12d)](){const _0x5b5564=_0x240916;this[_0x5b5564(0xeb)]=!0x1;}get[_0x240916(0x25b)](){const _0x34be35=_0x240916;return this[_0x34be35(0x2f1)];}[_0x240916(0x185)](){const _0x5a4247=_0x240916;this[_0x5a4247(0x162)]()[_0x5a4247(0x164)](()=>super[_0x5a4247(0x185)]());}async[_0x240916(0x11c)](_0x56c2a8){const _0xc62a80=_0x240916;return this[_0xc62a80(0xeb)]?null:this[_0xc62a80(0x2bf)]['getItem'](_0x373961(_0x56c2a8));}async['saveOfflineData'](_0xbd0006,_0x1e3614){const _0xa6cb1a=_0x240916;return!!this[_0xa6cb1a(0x2bf)]['setItem'](_0xbd0006,_0x1e3614);}[_0x240916(0x133)](_0x4fcd71,_0x24a0cd,_0x2fcdf9,_0x4e8872){const _0x114609=_0x240916,_0x579992=this[_0x114609(0x1a2)][_0x114609(0x1d1)](_0x4fcd71);this['_cachedData']['set'](_0x4fcd71,{'unitID':_0x4fcd71,'type':_0x24a0cd,'awaitingChangeset':_0x2fcdf9,'mutations':_0x4e8872,'rev':_0x579992}),this[_0x114609(0x2f1)][_0x114609(0x298)](_0x4fcd71)||this[_0x114609(0x2cb)](_0x4fcd71);}[_0x240916(0x2cb)](_0x50ec32){const _0x17f6bc=_0x240916,_0x5a566d=this[_0x17f6bc(0x1bd)]();_0x5a566d===0x0?this[_0x17f6bc(0x2a3)](_0x50ec32):this['_saveTaskMap'][_0x17f6bc(0x26a)](_0x50ec32,setTimeout(()=>this[_0x17f6bc(0x2a3)](_0x50ec32),_0x5a566d));}[_0x240916(0x1bd)](){const _0x394b5f=_0x240916;var _0x454119;return(_0x454119=this['_configService'][_0x394b5f(0x271)](_0x67fadd))!=null?_0x454119:_0x197b86;}[_0x240916(0x2a3)](_0xdd3727){const _0x1805ab=_0x240916,_0x1f8f00=this[_0x1805ab(0x2f1)][_0x1805ab(0x1c7)](_0xdd3727);return _0x1f8f00!==void 0x0&&window[_0x1805ab(0xdb)](_0x1f8f00),this[_0x1805ab(0x2bf)][_0x1805ab(0x12f)](_0x373961(_0xdd3727),this[_0x1805ab(0x21a)]['get'](_0xdd3727))[_0x1805ab(0x164)](()=>this[_0x1805ab(0x2f1)]['delete'](_0xdd3727));}async[_0x240916(0x162)](){const _0x5e8620=_0x240916,_0x360b50=[];this[_0x5e8620(0x2f1)][_0x5e8620(0x2e8)]((_0x44e107,_0x3a6ed4)=>{const _0x426479=_0x5e8620;window[_0x426479(0xdb)](_0x44e107),_0x360b50[_0x426479(0x1e0)](this[_0x426479(0x2a3)](_0x3a6ed4)[_0x426479(0x164)](()=>{const _0x2c421d=_0x426479;this[_0x2c421d(0x2f1)]['delete'](_0x3a6ed4);}));}),await Promise[_0x5e8620(0x22b)](_0x360b50);}};He=bn([Ue(0x0,_0x1510c1),Ue(0x1,_0x3a4d59),Ue(0x2,_0x451de1(_0x5092a2))],He);class Ln extends _0x3122c4{constructor(){const _0x47ae80=_0x240916;super(),_(this,'urlChange$'),this[_0x47ae80(0xd0)]=_0x572af5(window,_0x47ae80(0x2f6))['pipe'](_0xb0eea8(this[_0x47ae80(0x221)]),_0x5f297a(0x1),_0x15fcb9(void 0x0));}[_0x240916(0x277)](_0x15ed13,_0x2cb787,_0x4a13f2=!0x1){const _0x233b2f=_0x240916,_0xed3890=new URL(window[_0x233b2f(0x175)]['href']);_0xed3890[_0x233b2f(0x211)][_0x233b2f(0x26a)](_0x15ed13,_0x2cb787),_0x4a13f2?window[_0x233b2f(0x18a)][_0x233b2f(0xf3)]('','',_0xed3890[_0x233b2f(0x257)]()):window['history']['pushState']('','',_0xed3890['toString']());}[_0x240916(0x2d0)](_0x5500cd,_0x325cf2=!0x1){const _0xaa7c31=_0x240916,_0x528d70=new URL(window[_0xaa7c31(0x175)][_0xaa7c31(0x10f)]);_0x528d70[_0xaa7c31(0x211)][_0xaa7c31(0x1dc)](_0x5500cd),_0x325cf2?window[_0xaa7c31(0x18a)][_0xaa7c31(0xf3)]('','',_0x528d70[_0xaa7c31(0x257)]()):window[_0xaa7c31(0x18a)][_0xaa7c31(0x296)]('','',_0x528d70['toString']());}[_0x240916(0x2ec)](_0x38ada4){const _0x2805ab=_0x240916;var _0x12d76a;return(_0x12d76a=new URL(window[_0x2805ab(0x175)][_0x2805ab(0x10f)])[_0x2805ab(0x211)]['get'](_0x38ada4))!=null?_0x12d76a:void 0x0;}}var Un=Object[_0x240916(0x10c)],Mn=Object[_0x240916(0x1f8)],An=(_0x2cee78,_0x2a53b7,_0x2b0ab8)=>_0x2a53b7 in _0x2cee78?Un(_0x2cee78,_0x2a53b7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2b0ab8}):_0x2cee78[_0x2a53b7]=_0x2b0ab8,Pn=(_0x4bf775,_0x17fc95,_0x5e975f,_0x27601b)=>{const _0x30eb13=_0x240916;for(var _0x3f9399=_0x27601b>0x1?void 0x0:_0x27601b?Mn(_0x17fc95,_0x5e975f):_0x17fc95,_0x96b569=_0x4bf775[_0x30eb13(0xfb)]-0x1,_0x232d18;_0x96b569>=0x0;_0x96b569--)(_0x232d18=_0x4bf775[_0x96b569])&&(_0x3f9399=_0x232d18(_0x3f9399)||_0x3f9399);return _0x3f9399;},Me=(_0x31604e,_0x5ee5a7)=>(_0x34cb48,_0x43a1e4)=>_0x5ee5a7(_0x34cb48,_0x43a1e4,_0x31604e),wn=(_0x227e0f,_0x2b437f,_0x3d4d20)=>An(_0x227e0f,_0x2b437f+'',_0x3d4d20);const yn=_0x240916(0x266);let Ye=class extends _0x18025e{constructor(_0xffe9cd=_t,_0x51f6fc,_0x1f39af,_0x3f7991){const _0x11d9df=_0x240916;super(),this[_0x11d9df(0x2de)]=_0xffe9cd,this[_0x11d9df(0x212)]=_0x51f6fc,this[_0x11d9df(0x26e)]=_0x1f39af,this['_configService']=_0x3f7991;const {..._0x5331df}=_0x3aa68c({},_t,this['_config']);this['_configService'][_0x11d9df(0x1c0)](hn,_0x5331df);}[_0x240916(0x107)](){const _0x2c71fc=_0x240916;this[_0x2c71fc(0x233)](),this[_0x2c71fc(0x1da)]();}[_0x240916(0x182)](){const _0x123ae8=_0x240916;this[_0x123ae8(0x1e5)]();}[_0x240916(0x233)](){const _0x28c10b=_0x240916;var _0x3deb17;const _0x249448=[[Ke],[Ie],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x237440,{'useClass':_0x276479}],[_0x45d2d0,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0x28c10b(0x2de)][_0x28c10b(0x231)]&&_0x249448['push']([le]),_0x4856aa(this[_0x28c10b(0x26e)],_0xc1ed92(_0x249448,(_0x3deb17=this[_0x28c10b(0x2de)])==null?void 0x0:_0x3deb17[_0x28c10b(0xce)]));}[_0x240916(0x1e5)](){const _0x337cd2=_0x240916;this[_0x337cd2(0xe0)](this[_0x337cd2(0x212)][_0x337cd2(0x184)](_0x2e1b84['UNIVER_DOC'],[Fe])),this['disposeWithMe'](this[_0x337cd2(0x212)]['registerRenderModule'](_0x2e1b84['UNIVER_SHEET'],[ke]));}['_initDependencies'](){const _0x232c67=_0x240916;_0xa68686(this[_0x232c67(0x26e)],[[H],[ae],[Se],[_e],[ce],[Ie]]),this['_config'][_0x232c67(0x231)]&&_0xa68686(this[_0x232c67(0x26e)],[[le]]);}};wn(Ye,'pluginName',yn),Ye=Pn([_0x394ca8(_0x3f596b),Me(0x1,_0x4d689b),Me(0x2,_0x451de1(_0x30dac5)),Me(0x3,_0x1510c1)],Ye);var $n=Object[_0x240916(0x1f8)],xn=(_0x112283,_0x3381be,_0x19b01f,_0x20bc41)=>{const _0x185cbe=_0x240916;for(var _0x2e91fb=_0x20bc41>0x1?void 0x0:_0x20bc41?$n(_0x3381be,_0x19b01f):_0x3381be,_0x493aa5=_0x112283[_0x185cbe(0xfb)]-0x1,_0x923c34;_0x493aa5>=0x0;_0x493aa5--)(_0x923c34=_0x112283[_0x493aa5])&&(_0x2e91fb=_0x923c34(_0x2e91fb)||_0x2e91fb);return _0x2e91fb;},J=(_0x4cdfb6,_0x24b803)=>(_0x139953,_0x2e1004)=>_0x24b803(_0x139953,_0x2e1004,_0x4cdfb6);let ut=class extends _0x5d1c82{constructor(_0x56f010,_0x5e3f3d,_0x16afdf,_0x36d556,_0x3e2695){super(_0x56f010,_0x5e3f3d,_0x16afdf,_0x36d556,_0x3e2695);}async[_0x240916(0x1a9)](_0x3b1abe){const _0x4ae41f=_0x240916,_0xad87d0=await this[_0x4ae41f(0x305)](),_0x44190b=this[_0x4ae41f(0x275)](_0x3b1abe,_0xad87d0);return this[_0x4ae41f(0x2bd)](_0x44190b);}[_0x240916(0x275)](_0x282c27,_0x1b8bb6){const _0x1cf8d6=_0x240916,_0x3438f6=typeof window>'u'?new URL(_0x282c27):new URL(_0x282c27,window[_0x1cf8d6(0x175)][_0x1cf8d6(0x1be)]);_0x3438f6[_0x1cf8d6(0x211)]['set'](_0x1cf8d6(0x30c),_0x1b8bb6);const _0x4ae457=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x1cf8d6(0x248)]);return _0x4ae457[_0x1cf8d6(0x1c7)](_0x1cf8d6(0x2d6))&&_0x3438f6[_0x1cf8d6(0x211)][_0x1cf8d6(0x26a)]('runId',_0x4ae457[_0x1cf8d6(0x1c7)](_0x1cf8d6(0x2d6))),_0x3438f6['toString']();}async[_0x240916(0x305)](){const _0x562d57=_0x240916;var _0x4f3bee,_0xfe27ae,_0x3c3093;const _0x3fb753=this[_0x562d57(0x263)]['getConfig'](_0x2941e8),_0x1c74d0=(_0x4f3bee=_0x3fb753==null?void 0x0:_0x3fb753[_0x562d57(0x2da)])!=null?_0x4f3bee:_0x67f602;return(_0x3c3093=(_0xfe27ae=(await this[_0x562d57(0x19d)]['get'](_0x1c74d0,{'headers':{'Content-Type':_0x562d57(0x293)}}))[_0x562d57(0x1e4)])==null?void 0x0:_0xfe27ae[_0x562d57(0x283)])!=null?_0x3c3093:'';}};ut=xn([J(0x0,_0x451de1(_0x30dac5)),J(0x1,_0x451de1(_0x20e19d)),J(0x2,_0x1510c1),J(0x3,_0x48e521),J(0x4,_0x295e6f)],ut);var Bn=Object[_0x240916(0x1f8)],Fn=(_0x2f3657,_0x596011,_0x5b4065,_0x2f9016)=>{const _0x55de58=_0x240916;for(var _0x5d4022=_0x2f9016>0x1?void 0x0:_0x2f9016?Bn(_0x596011,_0x5b4065):_0x596011,_0x41d0f6=_0x2f3657[_0x55de58(0xfb)]-0x1,_0x537bce;_0x41d0f6>=0x0;_0x41d0f6--)(_0x537bce=_0x2f3657[_0x41d0f6])&&(_0x5d4022=_0x537bce(_0x5d4022)||_0x5d4022);return _0x5d4022;},Ae=(_0x23685a,_0x57233c)=>(_0x5df0aa,_0x560a3c)=>_0x57233c(_0x5df0aa,_0x560a3c,_0x23685a);let dt=class extends _0xf771d3{constructor(_0x51ccea,_0x4a758b,_0x33982a){const _0x6efc03=_0x240916;super(),this[_0x6efc03(0x300)]=_0x51ccea,this[_0x6efc03(0x19d)]=_0x4a758b,this[_0x6efc03(0x263)]=_0x33982a;}async[_0x240916(0x217)](_0x26f5cf,_0x3e742f,_0x3b9d1f,..._0x13932e){const _0x142301=_0x240916;var _0x14873a,_0x26c791,_0x442d30,_0x54e31e;const _0x344cc0=this[_0x142301(0x300)][_0x142301(0xf8)]();if(!_0x344cc0)throw new Error(_0x142301(0x28d));const _0x2e099c=((_0x14873a=this['_configService']['getConfig'](_0x2b191a))!=null?_0x14873a:_0x50718d)+'/'+_0x26f5cf+'/run/'+_0x3e742f,_0x286e05=new URL(window[_0x142301(0x175)]['href']),_0x48a2f9={'scriptId':_0x26f5cf,'runId':(_0x26c791=_0x286e05[_0x142301(0x211)][_0x142301(0x1c7)](_0x142301(0x2d6)))!=null?_0x26c791:'','function':_0x3e742f,'unitId':_0x344cc0[_0x142301(0x2a6)](),'argsOfFunction':JSON[_0x142301(0x286)](_0x13932e),'invokeId':(_0x442d30=_0x3b9d1f['invokeId'])!=null?_0x442d30:'','executionId':(_0x54e31e=_0x3b9d1f[_0x142301(0x2fc)])!=null?_0x54e31e:''};try{const _0x1223d1=await this[_0x142301(0x19d)][_0x142301(0x1d2)](_0x2e099c,{'body':_0x48a2f9});return _0x1223d1[_0x142301(0x1e4)][_0x142301(0x20a)]&&_0x1223d1[_0x142301(0x1e4)][_0x142301(0x20a)][_0x142301(0x2ad)]!==Z['OK']?_0x142301(0x19b):_0x1223d1['body'][_0x142301(0x127)];}catch{return _0x142301(0x19b);}}};dt=Fn([Ae(0x0,_0x81870d),Ae(0x1,_0x451de1(_0x20e19d)),Ae(0x2,_0x1510c1)],dt);const St=0x7530,It='ACTIVE_UNIT_EVENT_CHANNEL';class rr extends _0xf771d3{constructor(){const _0x439150=_0x240916;super(),_(this,_0x439150(0x1f2),_0x2664d4()),_(this,'_selfUnitIDs',new Set()),_(this,_0x439150(0x165),new Map()),_(this,_0x439150(0x29c),null),_(this,_0x439150(0x2b8),new Map()),_(this,_0x439150(0x167),new Map()),this[_0x439150(0x163)]();}[_0x240916(0x185)](){const _0xf728fd=_0x240916;super[_0xf728fd(0x185)](),this['_clearOtherTimers'][_0xf728fd(0x2e8)]((_0x4843dc,_0x11fdee)=>this[_0xf728fd(0x28f)](_0x11fdee)),this['_heartbeatTimer']&&window['clearInterval'](this[_0xf728fd(0x29c)]);}[_0x240916(0x1e2)](_0x1ffb8c){const _0x29b232=_0x240916;return this['_ensureSubject'](_0x1ffb8c)[_0x29b232(0x1e1)](_0x57e7da());}['editingUnit'](_0x14fdb1){const _0x1c2439=_0x240916;this[_0x1c2439(0x28e)]['size']===0x0&&this[_0x1c2439(0x29e)](),this[_0x1c2439(0x28e)][_0x1c2439(0x19a)](_0x14fdb1),this[_0x1c2439(0x24f)]({'type':0x0,'memberID':this[_0x1c2439(0x1f2)],'unitIDs':[_0x14fdb1],'isForwarded':!0x1});}[_0x240916(0x20d)](_0x84ea9f){const _0x410cda=_0x240916;this[_0x410cda(0x28e)][_0x410cda(0x1dc)](_0x84ea9f),this[_0x410cda(0x28e)]['size']===0x0&&this['_heartbeatTimer']&&window[_0x410cda(0x120)](this['_heartbeatTimer']);}[_0x240916(0x163)](){const _0x22378f=_0x240916;this[_0x22378f(0xe0)](_0x13afa3(_0x572af5(window,_0x22378f(0xde))[_0x22378f(0x111)](_0x2b7893=>{const _0x1283ab=_0x22378f;if(_0x2b7893[_0x1283ab(0x2db)]!==It||!_0x2b7893[_0x1283ab(0x210)])return;const _0x358698=JSON[_0x1283ab(0x1f1)](_0x2b7893[_0x1283ab(0x210)]);this[_0x1283ab(0x2d3)](_0x358698);}))),window[_0x22378f(0x216)]('unload',()=>this[_0x22378f(0x24f)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x22378f(0x14a)](this[_0x22378f(0x28e)])}));}['_handleEvent'](_0x1e68b5){const _0x116719=_0x240916;switch(_0x1e68b5[_0x116719(0x2f0)]){case 0x0:this[_0x116719(0x136)](_0x1e68b5);break;case 0x1:this[_0x116719(0x1fe)](_0x1e68b5);break;case 0x2:this[_0x116719(0x311)](_0x1e68b5);break;}}['_handleJoinEvent'](_0x25b7f7){const _0x301b67=_0x240916,{unitIDs:_0x2f0a5c,memberID:_0x7afb04,isForwarded:_0x2314bb}=_0x25b7f7;_0x2f0a5c[_0x301b67(0x2e8)](_0x258139=>{const _0x20a8d0=_0x301b67;if(!_0x2314bb&&this[_0x20a8d0(0x165)][_0x20a8d0(0x298)](_0x258139)&&this[_0x20a8d0(0x27b)](_0x258139)[_0x20a8d0(0x1cc)](_0x58c8e7[_0x20a8d0(0x187)]),!this[_0x20a8d0(0x165)][_0x20a8d0(0x298)](_0x258139)||!this[_0x20a8d0(0x165)][_0x20a8d0(0x1c7)](_0x258139)[_0x20a8d0(0x298)](_0x7afb04)){const _0x29690f=this['_unitOnClients'][_0x20a8d0(0x1c7)](_0x258139)||new Set();_0x29690f[_0x20a8d0(0x19a)](_0x7afb04),this[_0x20a8d0(0x165)][_0x20a8d0(0x26a)](_0x258139,_0x29690f),this[_0x20a8d0(0x24a)](_0x7afb04);}}),_0x2314bb||this[_0x301b67(0x24f)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x301b67(0x28e)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0xd7ad1b){const _0x5bff4e=_0x240916;this['_removeClearOtherTimer'](_0xd7ad1b);const _0x53689c=window[_0x5bff4e(0xfa)](()=>{const _0x13319c=_0x5bff4e;this[_0x13319c(0x165)][_0x13319c(0x2e8)](_0x1cbbb8=>{const _0x554a39=_0x13319c;_0x1cbbb8[_0x554a39(0x1dc)](_0xd7ad1b);});},St*0x2);this[_0x5bff4e(0x2b8)][_0x5bff4e(0x26a)](_0xd7ad1b,_0x53689c);}[_0x240916(0x28f)](_0x182db1){const _0x1a6d25=_0x240916;if(this[_0x1a6d25(0x2b8)][_0x1a6d25(0x298)](_0x182db1)){const _0x4e9097=this[_0x1a6d25(0x2b8)][_0x1a6d25(0x1c7)](_0x182db1);_0x4e9097&&window['clearTimeout'](_0x4e9097),this[_0x1a6d25(0x2b8)][_0x1a6d25(0x26a)](_0x182db1,null);}}[_0x240916(0x1fe)](_0x513160){const _0x429984=_0x240916,{memberID:_0x55b070,unitIDs:_0x59290a}=_0x513160;_0x59290a[_0x429984(0x2e8)](_0xfe526a=>{const _0x36a53b=_0x429984;var _0x423bd9;const _0x11bb43=this[_0x36a53b(0x165)][_0x36a53b(0x1c7)](_0xfe526a);_0x11bb43&&(_0x11bb43[_0x36a53b(0x1dc)](_0x55b070),(_0x423bd9=this[_0x36a53b(0x27b)](_0xfe526a))==null||_0x423bd9[_0x36a53b(0x1cc)](_0x11bb43[_0x36a53b(0xe4)]===0x0?_0x58c8e7[_0x36a53b(0x152)]:_0x58c8e7[_0x36a53b(0x187)]));}),this[_0x429984(0x28f)](_0x55b070);}[_0x240916(0x311)](_0x15425d){this['_scheduleClearOtherTimer'](_0x15425d['memberID']);}[_0x240916(0x24f)](_0x574c47){const _0x2a8c80=_0x240916;localStorage['setItem'](It,JSON[_0x2a8c80(0x286)](_0x574c47));}[_0x240916(0x29e)](){const _0x6b6044=_0x240916;this[_0x6b6044(0x29c)]=window[_0x6b6044(0x30e)](()=>{const _0x3b1eab=_0x6b6044;this[_0x3b1eab(0x24f)]({'type':0x2,'memberID':this[_0x3b1eab(0x1f2)]});},St);}[_0x240916(0x27b)](_0x43d6ce){const _0x3f939e=_0x240916;return this['_unitStatus'][_0x3f939e(0x298)](_0x43d6ce)||this[_0x3f939e(0x167)][_0x3f939e(0x26a)](_0x43d6ce,new _0x37599d(_0x58c8e7['NO_OTHER_CLIENTS_EDITING'])),this['_unitStatus'][_0x3f939e(0x1c7)](_0x43d6ce);}}export{ut as BrowserCollaborationSocketService,ce as CollaborationDataLoaderController,ae as DesktopCollaborationStatusDisplayController,yt as IURLService,dt as RemoteUniscriptService,tn as SheetCollabCursorShape,Ye as UniverCollaborationClientUIPlugin,rr as WebBrowserSingleActiveUnitService,Ln as WebURLService};
1
+ const _0x5cd2e1=_0xc1c7;(function(_0x47d999,_0x128144){const _0x235d23=_0xc1c7,_0x4041e8=_0x47d999();while(!![]){try{const _0x339328=parseInt(_0x235d23(0x20f))/0x1+-parseInt(_0x235d23(0x281))/0x2*(-parseInt(_0x235d23(0x236))/0x3)+-parseInt(_0x235d23(0x1c1))/0x4*(parseInt(_0x235d23(0x3a2))/0x5)+-parseInt(_0x235d23(0x251))/0x6+parseInt(_0x235d23(0x350))/0x7*(-parseInt(_0x235d23(0x36e))/0x8)+parseInt(_0x235d23(0x33b))/0x9+-parseInt(_0x235d23(0x205))/0xa*(-parseInt(_0x235d23(0x30e))/0xb);if(_0x339328===_0x128144)break;else _0x4041e8['push'](_0x4041e8['shift']());}catch(_0x3ba4c5){_0x4041e8['push'](_0x4041e8['shift']());}}}(_0x1402,0xf04b6));var Yt=Object[_0x5cd2e1(0x2d8)],Wt=(_0x5f1b6b,_0x2bb62c,_0xa5cf70)=>_0x2bb62c in _0x5f1b6b?Yt(_0x5f1b6b,_0x2bb62c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xa5cf70}):_0x5f1b6b[_0x2bb62c]=_0xa5cf70,_=(_0x5dfad0,_0x1fba86,_0x455c84)=>Wt(_0x5dfad0,typeof _0x1fba86!=_0x5cd2e1(0x1c7)?_0x1fba86+'':_0x1fba86,_0x455c84);import{jsx as _0x18b240,jsxs as _0x5cccd7}from'react/jsx-runtime';import{CollaborationStatus as _0x2eedc4,CollaborationSessionService as _0x5c8b4c,CollaborationController as _0x653e72,DataLoaderService as _0xf24669,MemberService as _0x44e3da,SessionStatus as _0x373a85,ILocalCacheService as _0x2f092b,CollaborationUIEventService as _0x1f2235,CollaborationUIEventId as _0x8498da,DocCollaborationEntity as _0x19f78d,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x3698b1,getLocalCacheKey as _0x5f3576,LOCAL_CACHE_INTERVAL as _0x1a39b7,LOCAL_CACHE_INTERVAL_KEY as _0x63fea5,UniverCollaborationClientPlugin as _0x34dff9,CollaborationSocketService as _0x2303b5,DEFAULT_WS_SESSION_TICKET_URL as _0x137a0e,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x25f49d,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x5ac840,UnitStatus as _0x522c35}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x247dfc,IUniverInstanceService as _0x296958,Inject as _0xf4d66f,Injector as _0xae1fe5,Disposable as _0x570abd,createIdentifier as _0x197fd9,ILogService as _0x3343ad,ICommandService as _0x33726a,Optional as _0xbfe425,RxDisposable as _0xb8a4ef,Workbook as _0x46566b,DOC_RANGE_TYPE as _0x38326c,debounce as _0x55cfda,Rectangle as _0x557bf8,DisposableCollection as _0x154bfa,toDisposable as _0x1182c8,UniverInstanceType as _0x298b40,generateRandomId as _0x2bc8c1,COLORS as _0x4c198e,ColorKit as _0x106cbc,ThemeService as _0x2ad83a,fromEventSubject as _0x3bbec4,Tools as _0x106280,CommandType as _0x7f0e47,IConfigService as _0x19d257,CanceledError as _0x21dfe5,isFormulaString as _0x27ee34,isFormulaId as _0x397057,ILocalStorageService as _0xa4ed63,DependentOn as _0x35d530,Plugin as _0x31ad12,merge as _0x49c2ae,registerDependencies as _0x2ed16c,mergeOverrideWithDependencies as _0x272528,touchDependencies as _0x2e6ab8}from'@univerjs/core';import{useObservable as _0xdb9fc4,useDependency as _0x2a52db,IUIPartsService as _0xe01a4b,BuiltInUIPart as _0x17d987,connectInjector as _0x2dcf9c,IBeforeCloseService as _0x11252d,IMessageService as _0x347467,INotificationService as _0x55bab0}from'@univerjs/ui';import{BehaviorSubject as _0x59b9f6,switchMap as _0x3ee0f0,of as _0x529786,takeUntil as _0x27172d,debounceTime as _0x1c0d71,Subject as _0x50bd36,filter as _0x23fc73,merge as _0x1047ef,combineLatest as _0x29b637,fromEvent as _0x4ca1ea,shareReplay as _0x52baa3,mapTo as _0x185422,distinctUntilChanged as _0x4f772a}from'rxjs';import{Tooltip as _0x1bbaf2,clsx as _0x3022bc,MessageType as _0x50fba4}from'@univerjs/design';import{useRef as _0xfe7314,createElement as _0xdd59f1,forwardRef as _0x902ad7,useCallback as _0x21cb51}from'react';import{IRemoteInstanceService as _0x10547a}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x35ab4e,RefRangeService as _0x110f7f,SetSelectionsOperation as _0x58dcd8,SheetsSelectionsService as _0x12665f,EffectRefRangId as _0x3ec1c7,handleIRemoveRow as _0x20df3d,handleIRemoveCol as _0x21bd6d,handleMoveRange as _0x398d4a,handleInsertRow as _0x7cde13,handleInsertRangeMoveRight as _0x22037c,handleInsertRangeMoveDown as _0x55f9a,handleInsertCol as _0x59a916,handleDeleteRangeMoveUp as _0x190678,handleDeleteRangeMoveLeft as _0x54b7c1,runRefRangeMutations as _0xb75889}from'@univerjs/sheets';import{Shape as _0x4b9cbe,Rect as _0x2d1bf5,getColor as _0x24880e,RegularPolygon as _0xd9e657,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x5dc9aa,Vector2 as _0x2915cf,SHEET_VIEWPORT_KEY as _0x4fea51,IRenderManagerService as _0x1313bc}from'@univerjs/engine-render';import{HTTPService as _0x43b379,ISocketService as _0x14224e,WebSocketService as _0x1a0016}from'@univerjs/network';import{IDocClipboardService as _0x3ad532,NodePositionConvertToCursor as _0x385735,NodePositionConvertToRectRange as _0x443d5d,TEXT_RANGE_LAYER_INDEX as _0x5412da,SetDocZoomRatioOperation as _0x4afac5,DocIMEInputManagerService as _0x2ca4d7,DocStateChangeManagerService as _0x581053}from'@univerjs/docs-ui';import{IImageIoService as _0x2009f9}from'@univerjs/drawing';import{ITransformService as _0x4717ac,CollaborationEvent as _0x15277f,isTransformMutationFailure as _0x57e874,isTransformMutationsWithChangesetSuccess as _0x3af7b8,RevisionService as _0x51de99,ISnapshotServerService as _0x20d4c6}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x27fff9,RichTextEditingMutation as _0x117a04,DocSelectionManagerService as _0x1f6f6a,DocSkeletonManagerService as _0x6561bc}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x2ddc3b,serializeRangeWithSheet as _0x1e114a,FormulaExecuteStageType as _0x2d2b6f,FormulaExecutedStateType as _0x534541,SetFormulaCalculationStartMutation as _0x212ff4,SetFormulaCalculationNotificationMutation as _0x3ce6bc}from'@univerjs/engine-formula';import{map as _0x29f709,filter as _0x2cfe9d,throttleTime as _0x46253a,takeUntil as _0x359cc7,switchMap as _0x3a6a71}from'rxjs/operators';import{SheetSkeletonManagerService as _0x21020f,getCoordByCell as _0x2c9d54,getSheetObject as _0x1f3a80}from'@univerjs/sheets-ui';function Ge({ref:_0x126b4e,..._0x2a93f7}){const _0x5719=_0x5cd2e1,{icon:_0x3277fe,id:_0x1c6d09,className:_0x321d10,extend:_0x1a6f1f,..._0x46c9c2}=_0x2a93f7,_0x463699=('univerjs-icon\x20univerjs-icon-'+_0x1c6d09+'\x20'+(_0x321d10||''))['trim'](),_0x2d9af8=_0xfe7314('_'+vi());return At(_0x3277fe,''+_0x1c6d09,{'defIds':_0x3277fe['defIds'],'idSuffix':_0x2d9af8[_0x5719(0x2b0)]},{'ref':_0x126b4e,'className':_0x463699,..._0x46c9c2},_0x1a6f1f);}function At(_0x8a41d7,_0x57bf58,_0x3092dd,_0x3e7936,_0x3e4396){const _0x591760=_0x5cd2e1;return _0xdd59f1(_0x8a41d7[_0x591760(0x34f)],{'key':_0x57bf58,...gi(_0x8a41d7,_0x3092dd,_0x3e4396),..._0x3e7936},(Ei(_0x8a41d7,_0x3092dd)[_0x591760(0x364)]||[])[_0x591760(0x29a)]((_0x5d3910,_0xd3c025)=>At(_0x5d3910,_0x57bf58+'-'+_0x8a41d7['tag']+'-'+_0xd3c025,_0x3092dd,void 0x0,_0x3e4396)));}function gi(_0x5e0f09,_0x4cf007,_0x2aefba){const _0x73d1db=_0x5cd2e1,_0x52ad1b={..._0x5e0f09[_0x73d1db(0x22f)]};_0x2aefba!=null&&_0x2aefba[_0x73d1db(0x29d)]&&_0x52ad1b[_0x73d1db(0x27c)]==='colorChannel1'&&(_0x52ad1b[_0x73d1db(0x27c)]=_0x2aefba[_0x73d1db(0x29d)]),_0x5e0f09['tag']==='mask'&&_0x52ad1b['id']&&(_0x52ad1b['id']=_0x52ad1b['id']+_0x4cf007[_0x73d1db(0x215)]),Object[_0x73d1db(0x3a9)](_0x52ad1b)['forEach'](([_0x38c85d,_0x4956f3])=>{const _0x52dbee=_0x73d1db;_0x38c85d==='mask'&&typeof _0x4956f3==_0x52dbee(0x22a)&&(_0x52ad1b[_0x38c85d]=_0x4956f3['replace'](/url\(#(.*)\)/,'url(#$1'+_0x4cf007[_0x52dbee(0x215)]+')'));});const {defIds:_0x5b050f}=_0x4cf007;return!_0x5b050f||_0x5b050f['length']===0x0||(_0x5e0f09[_0x73d1db(0x34f)]===_0x73d1db(0x31b)&&_0x52ad1b['xlink:href']&&(_0x52ad1b[_0x73d1db(0x1d9)]=_0x52ad1b[_0x73d1db(0x1d9)]+_0x4cf007['idSuffix']),Object[_0x73d1db(0x3a9)](_0x52ad1b)['forEach'](([_0x2b51ce,_0x4981dd])=>{const _0x2fe319=_0x73d1db;typeof _0x4981dd==_0x2fe319(0x22a)&&(_0x52ad1b[_0x2b51ce]=_0x4981dd[_0x2fe319(0x2ca)](/url\(#(.*)\)/,'url(#$1'+_0x4cf007[_0x2fe319(0x215)]+')'));})),_0x52ad1b;}function Ei(_0x3b5085,_0x28988c){const _0x3e24b5=_0x5cd2e1;var _0x38a2ea;const {defIds:_0x207023}=_0x28988c;return!_0x207023||_0x207023[_0x3e24b5(0x3ed)]===0x0?_0x3b5085:_0x3b5085['tag']===_0x3e24b5(0x309)&&((_0x38a2ea=_0x3b5085['children'])!=null&&_0x38a2ea[_0x3e24b5(0x3ed)])?{..._0x3b5085,'children':_0x3b5085[_0x3e24b5(0x364)][_0x3e24b5(0x29a)](_0x2dc55e=>typeof _0x2dc55e['attrs']['id']=='string'&&_0x207023&&_0x207023[_0x3e24b5(0x3f8)](_0x2dc55e[_0x3e24b5(0x22f)]['id'])?{..._0x2dc55e,'attrs':{..._0x2dc55e[_0x3e24b5(0x22f)],'id':_0x2dc55e[_0x3e24b5(0x22f)]['id']+_0x28988c[_0x3e24b5(0x215)]}}:_0x2dc55e)}:_0x3b5085;}function vi(){const _0x4d3b5d=_0x5cd2e1;return Math[_0x4d3b5d(0x3a5)]()[_0x4d3b5d(0x2da)](0x24)[_0x4d3b5d(0x1ff)](0x2,0x8);}Ge['displayName']=_0x5cd2e1(0x2d6);const pi={'tag':_0x5cd2e1(0x32b),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x5cd2e1(0x2e2),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x5cd2e1(0x34d)},'children':[{'tag':'g','attrs':{'clipPath':_0x5cd2e1(0x301)},'children':[{'tag':_0x5cd2e1(0x3e4),'attrs':{'stroke':_0x5cd2e1(0x1f6),'d':_0x5cd2e1(0x343),'strokeLinecap':_0x5cd2e1(0x3fe),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x5cd2e1(0x309),'attrs':{},'children':[{'tag':_0x5cd2e1(0x389),'attrs':{'id':_0x5cd2e1(0x3f0)},'children':[{'tag':_0x5cd2e1(0x3e4),'attrs':{'fill':_0x5cd2e1(0x1f8),'d':_0x5cd2e1(0x33f)}}]}]}],'defIds':[_0x5cd2e1(0x3f0)]},Pt=_0x902ad7(function(_0x370caf,_0x2de635){const _0xc62cc1=_0x5cd2e1;return _0xdd59f1(Ge,Object[_0xc62cc1(0x1bd)]({},_0x370caf,{'id':_0xc62cc1(0x248),'ref':_0x2de635,'icon':pi}));});Pt[_0x5cd2e1(0x37a)]=_0x5cd2e1(0x21f);const Oi={'tag':_0x5cd2e1(0x32b),'attrs':{'xmlns':_0x5cd2e1(0x2ae),'fill':_0x5cd2e1(0x2e2),'viewBox':_0x5cd2e1(0x31d),'width':'1em','height':_0x5cd2e1(0x34d)},'children':[{'tag':'g','attrs':{'clipPath':_0x5cd2e1(0x224)},'children':[{'tag':_0x5cd2e1(0x3e4),'attrs':{'stroke':_0x5cd2e1(0x1f6),'d':_0x5cd2e1(0x1c3),'strokeLinecap':_0x5cd2e1(0x3fe),'strokeLinejoin':_0x5cd2e1(0x3fe),'strokeWidth':1.2}}]},{'tag':_0x5cd2e1(0x309),'attrs':{},'children':[{'tag':_0x5cd2e1(0x389),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':'path','attrs':{'fill':_0x5cd2e1(0x1f8),'d':_0x5cd2e1(0x33f),'transform':_0x5cd2e1(0x383)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},wt=_0x902ad7(function(_0x1b1468,_0x283a7f){const _0x17bcbc=_0x5cd2e1;return _0xdd59f1(Ge,Object[_0x17bcbc(0x1bd)]({},_0x1b1468,{'id':_0x17bcbc(0x22e),'ref':_0x283a7f,'icon':Oi}));});wt[_0x5cd2e1(0x37a)]=_0x5cd2e1(0x2c4);function Ti(_0x2ffde8){const _0x39431c=_0x5cd2e1;switch(_0x2ffde8){case _0x2eedc4[_0x39431c(0x33e)]:return _0x39431c(0x3b7);case _0x2eedc4[_0x39431c(0x33a)]:return'collabStatus.conflict';case _0x2eedc4[_0x39431c(0x23a)]:return _0x39431c(0x2a4);case _0x2eedc4[_0x39431c(0x1e0)]:return _0x39431c(0x307);case _0x2eedc4['AWAITING']:case _0x2eedc4['AWAITING_WITH_PENDING']:return _0x39431c(0x21d);case _0x2eedc4['SYNCED']:case _0x2eedc4[_0x39431c(0x282)]:return'collabStatus.synced';}}function Ci(_0x570748){const _0x516e2a=_0x5cd2e1,{status$:_0x372609}=_0x570748,_0x31d108=_0xdb9fc4(_0x372609,_0x2eedc4[_0x516e2a(0x1e0)]),_0x5bbe22=_0x2a52db(_0x247dfc),_0x555395=_0x2a52db(_0x5c8b4c),_0x453e9c=_0x31d108!==_0x2eedc4[_0x516e2a(0x33e)],_0x401eea=_0x5bbe22['t'](Ti(_0x31d108)),_0x5232da=_0x453e9c?_0x18b240(wt,{}):_0x18b240(Pt,{}),_0x38777e=_0x21cb51(()=>{_0x453e9c||_0x555395['reconnect']();},[_0x453e9c,_0x555395]);function _0x16aae8(){const _0x38ba6c=_0x516e2a;return _0x5cccd7(_0x38ba6c(0x28b),{'className':_0x38ba6c(0x32e),'onClick':_0x38777e,'children':[_0x18b240('div',{'className':_0x3022bc(_0x38ba6c(0x3ce),{'univer-text-green-500':_0x453e9c,'univer-text-red-500':!_0x453e9c}),'children':_0x5232da}),_0x18b240(_0x38ba6c(0x28b),{'className':_0x38ba6c(0x341),'children':_0x401eea})]});}return _0x453e9c?_0x16aae8():_0x18b240(_0x1bbaf2,{'title':_0x5bbe22['t'](_0x516e2a(0x317)),'children':_0x16aae8()});}var Ri=Object[_0x5cd2e1(0x2c3)],Di=(_0x204aa9,_0x2f0e37,_0x5c9bfe,_0xbe177)=>{const _0x550cf3=_0x5cd2e1;for(var _0x508287=_0xbe177>0x1?void 0x0:_0xbe177?Ri(_0x2f0e37,_0x5c9bfe):_0x2f0e37,_0x1841e9=_0x204aa9[_0x550cf3(0x3ed)]-0x1,_0x133c0c;_0x1841e9>=0x0;_0x1841e9--)(_0x133c0c=_0x204aa9[_0x1841e9])&&(_0x508287=_0x133c0c(_0x508287)||_0x508287);return _0x508287;},se=(_0x238849,_0x394adb)=>(_0x17b86a,_0x222b3e)=>_0x394adb(_0x17b86a,_0x222b3e,_0x238849);let ae=class extends _0x570abd{constructor(_0x64a00d,_0x1c48ff,_0x42a623,_0x102505){const _0x5c9c33=_0x5cd2e1;super(),_(this,'_status$',new _0x59b9f6(_0x2eedc4['NOT_COLLAB'])),(this[_0x5c9c33(0x256)]=_0x64a00d,this['_injector']=_0x1c48ff,this['_collaborationController']=_0x42a623,this[_0x5c9c33(0x2d5)]=_0x102505,this['_initStatusComponent'](),this['_initStatusListener']());}[_0x5cd2e1(0x222)](){const _0x3330ce=_0x5cd2e1;this[_0x3330ce(0x2cf)](this['_univerInstanceService']['focused$']['pipe'](_0x3ee0f0(()=>{const _0x26218d=_0x3330ce,_0x404791=this[_0x26218d(0x256)][_0x26218d(0x348)]();return _0x404791?this[_0x26218d(0x206)]['getCollabEntity$'](_0x404791[_0x26218d(0x354)]()):_0x529786(null);}),_0x3ee0f0(_0x5c2181=>_0x5c2181?_0x5c2181['status$']:_0x529786(_0x2eedc4[_0x3330ce(0x1e0)])))[_0x3330ce(0x34a)](_0x55cc6a=>{const _0x2f93d1=_0x3330ce;this[_0x2f93d1(0x2ef)][_0x2f93d1(0x3dd)](_0x55cc6a);}));}['_initStatusComponent'](){const _0x192bc6=_0x5cd2e1;this['disposeWithMe'](this[_0x192bc6(0x2d5)]['registerComponent'](_0x17d987['HEADER_MENU'],()=>_0x2dcf9c(Ni({'status$':this[_0x192bc6(0x2ef)][_0x192bc6(0x405)]()}),this[_0x192bc6(0x22c)])));}};ae=Di([se(0x0,_0x296958),se(0x1,_0xf4d66f(_0xae1fe5)),se(0x2,_0xf4d66f(_0x653e72)),se(0x3,_0xe01a4b)],ae);function Ni(_0x3e61c5){const {status$:_0x5e43ac}=_0x3e61c5;return function(){return _0x18b240(Ci,{'status$':_0x5e43ac});};}const yt=_0x197fd9('uni.network.url-service');var bi=Object[_0x5cd2e1(0x2c3)],Li=(_0x31a1c6,_0x35865f,_0x418d07,_0x22bd44)=>{const _0x125e83=_0x5cd2e1;for(var _0x1f396c=_0x22bd44>0x1?void 0x0:_0x22bd44?bi(_0x35865f,_0x418d07):_0x35865f,_0x144724=_0x31a1c6[_0x125e83(0x3ed)]-0x1,_0x23fbca;_0x144724>=0x0;_0x144724--)(_0x23fbca=_0x31a1c6[_0x144724])&&(_0x1f396c=_0x23fbca(_0x1f396c)||_0x1f396c);return _0x1f396c;},K=(_0x5684d3,_0x414957)=>(_0x4ee733,_0xf5d133)=>_0x414957(_0x4ee733,_0xf5d133,_0x5684d3);let ce=class extends _0xb8a4ef{constructor(_0x2382b2,_0x2b5476,_0x2fbeb0,_0x26fdab,_0x1f81b5){const _0x175b9d=_0x5cd2e1;super(),this[_0x175b9d(0x207)]=_0x2382b2,this[_0x175b9d(0x315)]=_0x2b5476,this['_commandService']=_0x2fbeb0,this[_0x175b9d(0x347)]=_0x26fdab,_0x1f81b5?_0x1f81b5==null||_0x1f81b5[_0x175b9d(0x377)]()[_0x175b9d(0x1b8)](()=>this['_init']()):(this[_0x175b9d(0x315)][_0x175b9d(0x3e0)](_0x175b9d(0x3a4),_0x175b9d(0x33c)),this[_0x175b9d(0x396)]());}async['_init'](){const _0x5b4bca=_0x5cd2e1,_0x11cc2d=this[_0x5b4bca(0x207)][_0x5b4bca(0x2dc)](_0x5b4bca(0x2ff)),_0x142a5b=this['_urlService']['getParam']('type'),_0x2662c9=this[_0x5b4bca(0x207)][_0x5b4bca(0x2dc)](_0x5b4bca(0x36b));if(!_0x11cc2d||!_0x142a5b){this[_0x5b4bca(0x315)][_0x5b4bca(0x3e0)](_0x5b4bca(0x3a4),_0x5b4bca(0x313));return;}const _0x33dd88=await this[_0x5b4bca(0x347)][_0x5b4bca(0x385)](_0x11cc2d,Number(_0x142a5b),_0x2662c9);_0x33dd88&&_0x33dd88 instanceof _0x46566b&&this[_0x5b4bca(0x3b2)](_0x33dd88);}async['_setupSubUnitSync'](_0x37e9b6){const _0x5385ec=_0x5cd2e1;await this[_0x5385ec(0x3e6)](_0x37e9b6),_0x37e9b6[_0x5385ec(0x2d0)]['pipe'](_0x27172d(this[_0x5385ec(0x1fb)]))[_0x5385ec(0x34a)](_0x3cc7d1=>{const _0x1d963e=_0x5385ec;_0x3cc7d1&&this[_0x1d963e(0x342)](_0x3cc7d1);}),this[_0x5385ec(0x207)][_0x5385ec(0x3d0)][_0x5385ec(0x26f)](_0x27172d(this[_0x5385ec(0x1fb)]))[_0x5385ec(0x34a)](()=>this[_0x5385ec(0x3e6)](_0x37e9b6));}[_0x5cd2e1(0x342)](_0x25ba19,_0x47711d=!0x1){const _0x634e6c=_0x5cd2e1,_0x59e85e=this[_0x634e6c(0x207)]['getParam'](_0x634e6c(0x36b));_0x25ba19['getSheetId']()!==_0x59e85e&&this[_0x634e6c(0x207)][_0x634e6c(0x3cf)](_0x634e6c(0x36b),_0x25ba19[_0x634e6c(0x23e)](),_0x47711d);}async[_0x5cd2e1(0x3e6)](_0x3f6f45){const _0x5eec18=_0x5cd2e1;var _0x48a688;const _0x56b724=this['_urlService'][_0x5eec18(0x2dc)](_0x5eec18(0x36b));if(!_0x56b724||!_0x3f6f45[_0x5eec18(0x1cf)](_0x56b724)){const _0x253814=_0x3f6f45['getUnhiddenWorksheets']()[0x0],_0xaa453c=_0x3f6f45[_0x5eec18(0x1cf)](_0x253814);if(!_0xaa453c)return;this[_0x5eec18(0x342)](_0xaa453c,!0x0),await this['_commandService'][_0x5eec18(0x30f)](_0x35ab4e['id'],{'unitId':_0x3f6f45[_0x5eec18(0x354)](),'subUnitId':_0x253814});return;}((_0x48a688=_0x3f6f45['getActiveSheet']())==null?void 0x0:_0x48a688['getSheetId']())!==_0x56b724&&await this['_commandService'][_0x5eec18(0x30f)](_0x35ab4e['id'],{'unitId':_0x3f6f45[_0x5eec18(0x354)](),'subUnitId':_0x56b724});}};ce=Li([K(0x0,yt),K(0x1,_0x3343ad),K(0x2,_0x33726a),K(0x3,_0xf4d66f(_0xf24669)),K(0x4,_0xbfe425(_0x10547a))],ce);var Ui=Object['getOwnPropertyDescriptor'],Mi=(_0x3098c5,_0x10a066,_0x2d988b,_0x30f427)=>{const _0x1ed74c=_0x5cd2e1;for(var _0x45f8c9=_0x30f427>0x1?void 0x0:_0x30f427?Ui(_0x10a066,_0x2d988b):_0x10a066,_0x4b7576=_0x3098c5[_0x1ed74c(0x3ed)]-0x1,_0x46cd08;_0x4b7576>=0x0;_0x4b7576--)(_0x46cd08=_0x3098c5[_0x4b7576])&&(_0x45f8c9=_0x46cd08(_0x45f8c9)||_0x45f8c9);return _0x45f8c9;},rt=(_0x533c3d,_0x4361be)=>(_0x445fe6,_0x15a38a)=>_0x4361be(_0x445fe6,_0x15a38a,_0x533c3d);let $e=class extends _0xb8a4ef{constructor(_0x3b1f9e,_0x591266){const _0x5ca5ed=_0x5cd2e1;super(),this[_0x5ca5ed(0x243)]=_0x3b1f9e,this[_0x5ca5ed(0x2bf)]=_0x591266,this['_init']();}[_0x5cd2e1(0x396)](){const _0x128391=_0x5cd2e1,_0x3f89c9=this;this[_0x128391(0x2cf)](this[_0x128391(0x243)][_0x128391(0x2ce)]({'onBeforePasteImage':async _0x805f52=>{const _0x1549cf=_0x128391,_0x4ad977=await _0x3f89c9[_0x1549cf(0x2bf)][_0x1549cf(0x3e1)](_0x805f52);return _0x4ad977?{'source':_0x4ad977[_0x1549cf(0x306)],'imageSourceType':_0x4ad977[_0x1549cf(0x21a)]}:null;}}));}};$e=Mi([rt(0x0,_0x3ad532),rt(0x1,_0x2009f9)],$e);const ot=[_0x5cd2e1(0x290),_0x5cd2e1(0x1dd),_0x5cd2e1(0x20b),'red.300',_0x5cd2e1(0x314),_0x5cd2e1(0x2f1)];class Ke extends _0x570abd{constructor(){const _0x447848=_0x5cd2e1;super(...arguments),_(this,'_assignedColors',new Map()),_(this,_0x447848(0x35e),0x0);}[_0x5cd2e1(0x23d)](_0x3f990d){const _0x5450d4=_0x5cd2e1;if(this['_assignedColors']['has'](_0x3f990d))return this['_assignedColors']['get'](_0x3f990d);const _0x52622e=ot[this[_0x5450d4(0x35e)]];return this[_0x5450d4(0x35e)]=(this[_0x5450d4(0x35e)]+0x1)%ot['length'],this['_assignedColors'][_0x5450d4(0x322)](_0x3f990d,_0x52622e),_0x52622e;}}function $t(_0x45d2dc){const _0x4ccd90=_0x5cd2e1;let _0x42490c='';for(const _0x31e690 of _0x45d2dc){const {startOffset:_0x1835f3,endOffset:_0x3c02d3,isActive:_0x30d62a,rangeType:_0x18233e,segmentId:_0x54a8ec,segmentPage:_0x1b61b6}=_0x31e690;_0x42490c[_0x4ccd90(0x3ed)]&&(_0x42490c+=','),_0x42490c+=_0x1835f3+':'+_0x3c02d3+':'+(_0x30d62a?'1':'0')+':'+_0x18233e+':'+_0x54a8ec+':'+_0x1b61b6;}return _0x42490c;}function Ai(_0x3011f1){const _0x3652b5=_0x5cd2e1,_0x11185e=_0x3011f1['split'](','),_0x2bd9dd=[];for(const _0x2677e2 of _0x11185e){const [_0x23651b,_0x46453a,_0x246f46,_0x5e55e8,_0x53272a,_0x34298c]=_0x2677e2['split'](':');_0x2bd9dd['push']({'startOffset':Number(_0x23651b),'endOffset':Number(_0x46453a),'collapsed':_0x23651b===_0x46453a,'isActive':_0x246f46==='1','rangeType':_0x5e55e8===_0x38326c[_0x3652b5(0x369)]?_0x38326c[_0x3652b5(0x369)]:_0x38326c['RECT'],'segmentId':typeof _0x53272a==_0x3652b5(0x22a)?String(_0x53272a):'','segmentPage':Number(_0x34298c!=null?_0x34298c:-0x1)});}return _0x2bd9dd[_0x3652b5(0x34e)](_0x4c8383=>_0x4c8383[_0x3652b5(0x1ea)])||(_0x2bd9dd[0x0][_0x3652b5(0x1ea)]=!0x0),_0x2bd9dd;}class ze extends _0xb8a4ef{constructor(){const _0x1ef8ce=_0x5cd2e1;super(...arguments),_(this,'_collabCursorState$',new _0x59b9f6(null)),_(this,_0x1ef8ce(0x335),this[_0x1ef8ce(0x272)][_0x1ef8ce(0x405)]());}['syncEditingCollabCursor'](_0x551f31){const _0x5dd167=_0x5cd2e1,{unitID:_0x180571,memberID:_0x70e977,textRanges:_0x2a9a27}=_0x551f31,_0x4e287b=$t(_0x2a9a27);if(_0x4e287b==='')return;const _0x3f1458={'unitID':_0x180571,'memberID':_0x70e977,'selection':_0x4e287b};this['_collabCursorState$'][_0x5dd167(0x3dd)](_0x3f1458);}}var Pi=Object[_0x5cd2e1(0x2c3)],wi=(_0x57b81c,_0x386ab4,_0x53e0ba,_0x418b15)=>{const _0x31e9e8=_0x5cd2e1;for(var _0x2b0c41=_0x418b15>0x1?void 0x0:_0x418b15?Pi(_0x386ab4,_0x53e0ba):_0x386ab4,_0x38cbf9=_0x57b81c[_0x31e9e8(0x3ed)]-0x1,_0x46efec;_0x38cbf9>=0x0;_0x38cbf9--)(_0x46efec=_0x57b81c[_0x38cbf9])&&(_0x2b0c41=_0x46efec(_0x2b0c41)||_0x2b0c41);return _0x2b0c41;},A=(_0x360322,_0x1025e1)=>(_0x178339,_0x116c04)=>_0x1025e1(_0x178339,_0x116c04,_0x360322);const yi=0x12c,$i=0x64;let xe=class extends _0xb8a4ef{constructor(_0xa9f3a4,_0x2fff91,_0x5d01bc,_0x5c72c7,_0x410c0d,_0x2043a2,_0x3832b5,_0x393da0,_0x30a11c){const _0x3f974b=_0x5cd2e1;super(),_(this,_0x3f974b(0x2f2),!0x1),_(this,_0x3f974b(0x396),!0x1),_(this,_0x3f974b(0x38f),new _0x59b9f6(new Map())),_(this,_0x3f974b(0x209),this[_0x3f974b(0x38f)]['asObservable']()),_(this,_0x3f974b(0x401),new _0x59b9f6([])),_(this,_0x3f974b(0x352),this[_0x3f974b(0x401)][_0x3f974b(0x26f)](_0x1c0d71(yi))),_(this,_0x3f974b(0x23c),_0x55cfda(_0x4ab5fa=>{const _0x5c776c=_0x3f974b,_0x123d12={'eventID':_0x15277f[_0x5c776c(0x34c)],'data':{'unitID':this[_0x5c776c(0x287)],'memberID':this['_session'][_0x5c776c(0x3d8)](),'selection':$t(_0x4ab5fa)}};this['_session'][_0x5c776c(0x2bd)](_0x123d12,this[_0x5c776c(0x287)]);},$i)),(this[_0x3f974b(0x287)]=_0xa9f3a4,this[_0x3f974b(0x25d)]=_0x2fff91,this[_0x3f974b(0x22c)]=_0x5d01bc,this[_0x3f974b(0x3c9)]=_0x5c72c7,this['_memberService']=_0x410c0d,this['_syncEditingCollabCursorService']=_0x2043a2,this[_0x3f974b(0x1df)]=_0x3832b5,this['_univerInstanceService']=_0x393da0,this[_0x3f974b(0x1e8)]=_0x30a11c);}get['cursorInfo'](){return this['_cursorInfo$']['getValue']();}get[_0x5cd2e1(0x28d)](){const _0x22257d=_0x5cd2e1;return this['_roomMembers$'][_0x22257d(0x28a)]();}['dispose'](){const _0x1540fe=_0x5cd2e1;super['dispose'](),this[_0x1540fe(0x38f)][_0x1540fe(0x3dd)](new Map()),this[_0x1540fe(0x38f)][_0x1540fe(0x267)](),this[_0x1540fe(0x401)][_0x1540fe(0x3dd)]([]),this['_roomMembers$'][_0x1540fe(0x267)]();}['init'](){const _0xfb3c08=_0x5cd2e1;this[_0xfb3c08(0x396)]||(this[_0xfb3c08(0x396)]=!0x0,this['_session'][_0xfb3c08(0x31e)][_0xfb3c08(0x26f)](_0x27172d(this[_0xfb3c08(0x1fb)]))['subscribe'](_0x3c1754=>{const _0x11cb14=_0xfb3c08;_0x3c1754===_0x373a85[_0x11cb14(0x28e)]?this[_0x11cb14(0x2d9)]():this[_0x11cb14(0x3da)]();}),this[_0xfb3c08(0x25d)][_0xfb3c08(0x26b)][_0xfb3c08(0x26f)](_0x27172d(this['dispose$']))['subscribe'](_0x532c32=>{const _0x5af2c6=_0xfb3c08,_0x454678=_0x532c32[_0x5af2c6(0x294)];_0x454678===_0x15277f[_0x5af2c6(0x34c)]&&this[_0x5af2c6(0x3f2)](_0x532c32),_0x454678===_0x15277f[_0x5af2c6(0x297)]&&this[_0x5af2c6(0x1f1)](_0x532c32);}),this['disposeWithMe'](this[_0xfb3c08(0x1e8)][_0xfb3c08(0x32f)](_0x292397=>{const _0x3505d9=_0xfb3c08,_0x1d5dbf=_0x292397[_0x3505d9(0x216)];_0x1d5dbf!=null&&this[_0x3505d9(0x2f2)]&&_0x292397['id']===_0x27fff9['id']&&_0x1d5dbf[_0x3505d9(0x1e5)]===this[_0x3505d9(0x287)]&&_0x1d5dbf['isEditing']===!0x1&&_0x1d5dbf['ranges']['length']>0x0&&this['_updateLocalCursor'](_0x1d5dbf[_0x3505d9(0x1c8)]);})),this['_syncEditingCollabCursorService'][_0xfb3c08(0x335)][_0xfb3c08(0x26f)](_0x27172d(this[_0xfb3c08(0x1fb)]))['subscribe'](_0xe1bc5=>{const _0x5f18f3=_0xfb3c08;if((_0xe1bc5==null?void 0x0:_0xe1bc5[_0x5f18f3(0x287)])!==this[_0x5f18f3(0x287)])return;const _0x5e856b={'eventID':_0x15277f[_0x5f18f3(0x34c)],'data':_0xe1bc5};this[_0x5f18f3(0x3f2)](_0x5e856b);}),this[_0xfb3c08(0x2cf)](this[_0xfb3c08(0x1e8)][_0xfb3c08(0x32f)](_0x9f76a6=>{const _0x3869ff=_0xfb3c08;if(_0x9f76a6[_0x3869ff(0x216)]==null)return;const _0x4f62da=_0x9f76a6[_0x3869ff(0x216)];if(_0x9f76a6['id']!==_0x117a04['id']||_0x4f62da['unitId']!==this['unitID'])return;const _0xb2dd82={'id':_0x3869ff(0x336),'params':_0x4f62da},_0x5332b2=this[_0x3869ff(0x365)];for(const [_0x1b28b8,_0x39a627]of _0x5332b2){const _0xf7991f={'id':'doc.mutation.rich-text-editing','params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x39a627[_0x3869ff(0x1c8)]}},_0x10a048=this[_0x3869ff(0x1df)][_0x3869ff(0x2fc)](_0xb2dd82,_0xf7991f,!0x1);if(_0x57e874(_0x10a048))throw _0x10a048['error'];_0x5332b2['set'](_0x1b28b8,{..._0x39a627,'ranges':_0x10a048['m2Prime'][_0x3869ff(0x216)]['textRanges']});}queueMicrotask(()=>{const _0x5c17d5=_0x3869ff;this[_0x5c17d5(0x38f)][_0x5c17d5(0x3dd)](_0x5332b2);});})));}['_onCursorUpdate'](_0x2ee8d1){const _0x17be90=_0x5cd2e1;var _0x4a3594,_0x37d7b9;const {memberID:_0x3ccffc,selection:_0x3cd68e}=_0x2ee8d1[_0x17be90(0x1fd)],_0x4e70a3=Ai(_0x3cd68e),_0x2f4f13=(_0x37d7b9=(_0x4a3594=this[_0x17be90(0x25f)][_0x17be90(0x2db)](this[_0x17be90(0x287)],_0x3ccffc))==null?void 0x0:_0x4a3594[_0x17be90(0x3b6)])!=null?_0x37d7b9:_0x17be90(0x1ba),_0x4762d1={'color':this[_0x17be90(0x3c9)][_0x17be90(0x23d)](_0x3ccffc),'name':_0x2f4f13,'ranges':_0x4e70a3},_0x94cab7=this['cursorInfo'];_0x94cab7[_0x17be90(0x322)](_0x3ccffc,_0x4762d1),this[_0x17be90(0x38f)][_0x17be90(0x3dd)](_0x94cab7);}[_0x5cd2e1(0x1f1)](_0xf1ca1f){const _0x10fe00=_0x5cd2e1,{memberID:_0x4f1c11}=_0xf1ca1f[_0x10fe00(0x1fd)],_0x19c84f=this[_0x10fe00(0x365)];_0x19c84f['delete'](_0x4f1c11),this[_0x10fe00(0x38f)][_0x10fe00(0x3dd)](_0x19c84f);}[_0x5cd2e1(0x2d9)](){const _0xf20cf7=_0x5cd2e1;var _0x3de721;if(this['_online']=!0x0,((_0x3de721=this[_0xf20cf7(0x256)][_0xf20cf7(0x348)]())==null?void 0x0:_0x3de721[_0xf20cf7(0x354)]())!==this[_0xf20cf7(0x287)])return;const _0x58ed7b=this[_0xf20cf7(0x22c)][_0xf20cf7(0x2b6)](_0x1f6f6a)[_0xf20cf7(0x3ea)]();Array[_0xf20cf7(0x276)](_0x58ed7b)&&_0x58ed7b[_0xf20cf7(0x3ed)]>0x0&&this[_0xf20cf7(0x23c)](_0x58ed7b);}[_0x5cd2e1(0x3da)](){const _0x53c951=_0x5cd2e1;this[_0x53c951(0x2f2)]=!0x1;}};xe=wi([A(0x2,_0xf4d66f(_0xae1fe5)),A(0x3,_0xf4d66f(Ke)),A(0x4,_0xf4d66f(_0x44e3da)),A(0x5,_0xf4d66f(ze)),A(0x6,_0x4717ac),A(0x7,_0x296958),A(0x8,_0x33726a)],xe);var xi=Object['getOwnPropertyDescriptor'],Bi=(_0x447aff,_0x1d3aba,_0x303b83,_0xe220c5)=>{const _0x5d1b26=_0x5cd2e1;for(var _0x32f92d=_0xe220c5>0x1?void 0x0:_0xe220c5?xi(_0x1d3aba,_0x303b83):_0x1d3aba,_0x229362=_0x447aff[_0x5d1b26(0x3ed)]-0x1,_0x4ede02;_0x229362>=0x0;_0x229362--)(_0x4ede02=_0x447aff[_0x229362])&&(_0x32f92d=_0x4ede02(_0x32f92d)||_0x32f92d);return _0x32f92d;},B=(_0x39fcd7,_0x3fcb79)=>(_0x50fa87,_0x1d41c1)=>_0x3fcb79(_0x50fa87,_0x1d41c1,_0x39fcd7);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x55de3c=[],_0x2d5df7=!0x1;return _0x2a86fc=>{const _0x15537c=_0xc1c7;_0x55de3c[_0x15537c(0x30a)](_0x2a86fc),_0x2d5df7||(_0x2d5df7=!0x0,setTimeout(()=>{const _0x2dbf7d=_0x15537c;_0x55de3c[_0x2dbf7d(0x258)](_0xa1dde3=>_0xa1dde3()),_0x55de3c=[],_0x2d5df7=!0x1;}));};};let Be=class extends _0xb8a4ef{constructor(_0xf0b2eb,_0x5369cd,_0x4c4cdb,_0x1f3993,_0x76af2c,_0x57736a,_0xa447d0,_0x463839){const _0x39a1e6=_0x5cd2e1;super(),_(this,_0x39a1e6(0x2f2),!0x1),_(this,'_init',!0x1),_(this,_0x39a1e6(0x38f),new _0x59b9f6(new Map())),_(this,_0x39a1e6(0x209),this[_0x39a1e6(0x38f)][_0x39a1e6(0x405)]()),_(this,'_roomMembers$',new _0x59b9f6([])),_(this,_0x39a1e6(0x352),this[_0x39a1e6(0x401)]['pipe'](_0x1c0d71(Fi))),_(this,_0x39a1e6(0x23c),_0x55cfda((_0x34e224,_0x729c2e)=>{const _0x36b015=_0x39a1e6,_0x37fe79={'eventID':_0x15277f[_0x36b015(0x34c)],'data':{'unitID':this[_0x36b015(0x287)],'memberID':this[_0x36b015(0x25d)][_0x36b015(0x3d8)](),'selection':_0x1e114a(_0x34e224,_0x729c2e[_0x36b015(0x391)])}};this[_0x36b015(0x25d)][_0x36b015(0x2bd)](_0x37fe79,this[_0x36b015(0x287)]);},ki)),(this[_0x39a1e6(0x287)]=_0xf0b2eb,this[_0x39a1e6(0x25d)]=_0x5369cd,this[_0x39a1e6(0x22c)]=_0x4c4cdb,this[_0x39a1e6(0x3c9)]=_0x1f3993,this['_memberService']=_0x76af2c,this[_0x39a1e6(0x256)]=_0x57736a,this[_0x39a1e6(0x1e8)]=_0xa447d0,this[_0x39a1e6(0x340)]=_0x463839);}get[_0x5cd2e1(0x365)](){const _0x1c05cd=_0x5cd2e1;return this[_0x1c05cd(0x38f)][_0x1c05cd(0x28a)]();}get[_0x5cd2e1(0x28d)](){const _0x1fd13f=_0x5cd2e1;return this[_0x1fd13f(0x401)]['getValue']();}['dispose'](){const _0xd9b323=_0x5cd2e1;super[_0xd9b323(0x1cc)](),this[_0xd9b323(0x38f)][_0xd9b323(0x3dd)](new Map()),this['_cursorInfo$'][_0xd9b323(0x267)](),this[_0xd9b323(0x401)][_0xd9b323(0x3dd)]([]),this[_0xd9b323(0x401)][_0xd9b323(0x267)]();}[_0x5cd2e1(0x329)](){const _0x3f1fb3=_0x5cd2e1;this[_0x3f1fb3(0x396)]||(this[_0x3f1fb3(0x396)]=!0x0,this[_0x3f1fb3(0x25d)][_0x3f1fb3(0x31e)]['pipe'](_0x27172d(this['dispose$']))[_0x3f1fb3(0x34a)](_0x180d47=>{const _0x33e67d=_0x3f1fb3;_0x180d47===_0x373a85[_0x33e67d(0x28e)]?this[_0x33e67d(0x2d9)]():this[_0x33e67d(0x3da)]();}),this[_0x3f1fb3(0x25d)][_0x3f1fb3(0x26b)]['pipe'](_0x27172d(this[_0x3f1fb3(0x1fb)]))[_0x3f1fb3(0x34a)](_0x743a28=>{const _0x44174b=_0x3f1fb3,_0x1db710=_0x743a28[_0x44174b(0x294)];_0x1db710===_0x15277f[_0x44174b(0x34c)]&&this[_0x44174b(0x3f2)](_0x743a28),_0x1db710===_0x15277f['USERS_LEAVE']&&this[_0x44174b(0x1f1)](_0x743a28);}),this[_0x3f1fb3(0x2ee)](),this['disposeWithMe'](this['_commandService'][_0x3f1fb3(0x32f)](_0x17557c=>{const _0x452de3=_0x3f1fb3;if(this[_0x452de3(0x2f2)]&&_0x17557c['id']===_0x58dcd8['id']&&_0x17557c[_0x452de3(0x216)][_0x452de3(0x1e5)]===this[_0x452de3(0x287)]){const _0x4273bb=_0x17557c[_0x452de3(0x216)];this[_0x452de3(0x23c)](_0x4273bb[_0x452de3(0x34b)],_0x4273bb['selections'][0x0]);}})));}[_0x5cd2e1(0x3f2)](_0x1f689f){const _0x4f65cd=_0x5cd2e1;var _0x5cc3c8,_0x3f471c;const {memberID:_0x35e982,selection:_0x36ef06}=_0x1f689f[_0x4f65cd(0x1fd)],{sheetName:_0x556c43,range:_0x53cab8}=_0x2ddc3b(_0x36ef06),_0x52386a={'name':(_0x3f471c=(_0x5cc3c8=this[_0x4f65cd(0x25f)][_0x4f65cd(0x2db)](this[_0x4f65cd(0x287)],_0x35e982))==null?void 0x0:_0x5cc3c8[_0x4f65cd(0x3b6)])!=null?_0x3f471c:_0x4f65cd(0x1ba),'range':this[_0x4f65cd(0x367)](_0x556c43,_0x53cab8),'sheetID':_0x556c43,'color':this[_0x4f65cd(0x3c9)][_0x4f65cd(0x23d)](_0x35e982),'selection':_0x36ef06},_0x4410bd=this['cursorInfo'];_0x4410bd['set'](_0x35e982,_0x52386a),this[_0x4f65cd(0x38f)][_0x4f65cd(0x3dd)](_0x4410bd);}['_onCursorDelete'](_0x10216f){const _0x16eebc=_0x5cd2e1,{memberID:_0x4ecc8e}=_0x10216f[_0x16eebc(0x1fd)],_0x2e8aaa=this[_0x16eebc(0x365)];_0x2e8aaa[_0x16eebc(0x35c)](_0x4ecc8e),this[_0x16eebc(0x38f)][_0x16eebc(0x3dd)](_0x2e8aaa);}[_0x5cd2e1(0x367)](_0x15f036,_0x6bbc78){const _0x17f0f3=_0x5cd2e1;var _0x364472,_0x357f39;const _0x1490c0=(_0x357f39=(_0x364472=this[_0x17f0f3(0x256)][_0x17f0f3(0x3b8)](this[_0x17f0f3(0x287)]))==null?void 0x0:_0x364472[_0x17f0f3(0x1cf)](_0x15f036))==null?void 0x0:_0x357f39[_0x17f0f3(0x400)]();return(_0x1490c0==null?void 0x0:_0x1490c0['find'](_0x801204=>_0x557bf8[_0x17f0f3(0x38a)](_0x801204,_0x6bbc78)))||_0x6bbc78;}[_0x5cd2e1(0x2ee)](){const _0x19a148=_0x5cd2e1,_0x259ac7=new _0x154bfa(),_0x50a608=Hi(),_0x3203ee=()=>{const _0x52b674=_0xc1c7;_0x259ac7['dispose']();const _0x3ec088=(_0xd8f00c,_0x1b352f,_0x28cc5b,_0x4173e0)=>{const _0x3e8be5=_0xc1c7;let _0x3e682b=[];switch(_0xd8f00c['id']){case _0x3ec1c7[_0x3e8be5(0x1bc)]:{_0x3e682b=_0x54b7c1(_0xd8f00c,_0x4173e0);break;}case _0x3ec1c7[_0x3e8be5(0x3dc)]:{_0x3e682b=_0x190678(_0xd8f00c,_0x4173e0);break;}case _0x3ec1c7[_0x3e8be5(0x2ac)]:{_0x3e682b=_0x59a916(_0xd8f00c,_0x4173e0);break;}case _0x3ec1c7[_0x3e8be5(0x353)]:{_0x3e682b=_0x55f9a(_0xd8f00c,_0x4173e0);break;}case _0x3ec1c7[_0x3e8be5(0x1f7)]:{_0x3e682b=_0x22037c(_0xd8f00c,_0x4173e0);break;}case _0x3ec1c7[_0x3e8be5(0x3a7)]:{_0x3e682b=_0x7cde13(_0xd8f00c,_0x4173e0);break;}case _0x3ec1c7[_0x3e8be5(0x30b)]:{_0x3e682b=_0x398d4a(_0xd8f00c,_0x4173e0);break;}case _0x3ec1c7[_0x3e8be5(0x387)]:{_0x3e682b=_0x21bd6d(_0xd8f00c,_0x4173e0);break;}case _0x3ec1c7[_0x3e8be5(0x1e6)]:{_0x3e682b=_0x20df3d(_0xd8f00c,_0x4173e0);break;}}const _0x3045f3=_0xb75889(_0x3e682b,_0x4173e0),_0x129383=this['cursorInfo'][_0x3e8be5(0x2b6)](_0x1b352f);if(_0x129383&&_0x3045f3){const _0x336a6f={..._0x129383,'range':_0x3045f3};this[_0x3e8be5(0x365)]['set'](_0x1b352f,_0x336a6f),_0x50a608(()=>{const _0x411ea2=_0x3e8be5,_0x3725ed=this[_0x411ea2(0x340)][_0x411ea2(0x344)](_0x3045f3,_0x358c3c=>(_0x3725ed['dispose'](),_0x3ec088(_0x358c3c,_0x1b352f,_0x28cc5b,_0x3045f3)));_0x259ac7['add'](_0x3725ed);});}return{'redos':[],'undos':[]};};this[_0x52b674(0x365)]['forEach']((_0x39fe7e,_0xa5885f)=>{const _0x5d3615=_0x52b674,{range:_0x48173e,sheetID:_0xbbecd9}=_0x39fe7e,_0x31c595=this[_0x5d3615(0x340)][_0x5d3615(0x344)](_0x48173e,_0xca268c=>(_0x31c595['dispose'](),_0x3ec088(_0xca268c,_0xa5885f,_0xbbecd9,_0x48173e)));_0x259ac7[_0x5d3615(0x3db)](_0x31c595);});};this[_0x19a148(0x2cf)](_0x1182c8(this['_cursorInfo$'][_0x19a148(0x34a)](()=>{_0x3203ee();})));}[_0x5cd2e1(0x2d9)](){const _0x125717=_0x5cd2e1;var _0x12ee9a,_0x190fee;if(this['_online']=!0x0,((_0x12ee9a=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x12ee9a[_0x125717(0x354)]())!==this[_0x125717(0x287)])return;const _0x567192=(_0x190fee=this[_0x125717(0x22c)]['get'](_0x12665f)[_0x125717(0x27f)]())==null?void 0x0:_0x190fee[0x0],_0x3b0889=this[_0x125717(0x256)][_0x125717(0x31f)](_0x298b40[_0x125717(0x3ef)])[_0x125717(0x395)]();_0x567192&&_0x3b0889&&this[_0x125717(0x23c)](_0x3b0889[_0x125717(0x23e)](),_0x567192);}['_toggleOffline'](){this['_online']=!0x1;}};Be=Bi([B(0x2,_0xf4d66f(_0xae1fe5)),B(0x3,_0xf4d66f(Ke)),B(0x4,_0xf4d66f(_0x44e3da)),B(0x5,_0x296958),B(0x6,_0x33726a),B(0x7,_0xf4d66f(_0x110f7f))],Be);var Yi=Object[_0x5cd2e1(0x2c3)],Wi=(_0x713b45,_0x86e16e,_0x3a4981,_0x2bb923)=>{for(var _0xe5a31e=_0x2bb923>0x1?void 0x0:_0x2bb923?Yi(_0x86e16e,_0x3a4981):_0x86e16e,_0x50b4a3=_0x713b45['length']-0x1,_0x36aeff;_0x50b4a3>=0x0;_0x50b4a3--)(_0x36aeff=_0x713b45[_0x50b4a3])&&(_0xe5a31e=_0x36aeff(_0xe5a31e)||_0xe5a31e);return _0xe5a31e;},Ce=(_0x39cf09,_0x58a828)=>(_0x5ae8a4,_0x182c7c)=>_0x58a828(_0x5ae8a4,_0x182c7c,_0x39cf09);let H=class extends _0xb8a4ef{constructor(_0x581f36,_0x306092,_0x3b0ce5){const _0x4b3b6b=_0x5cd2e1;super(),_(this,'_entities',new Map()),_(this,_0x4b3b6b(0x2c1),new _0x50bd36()),(this[_0x4b3b6b(0x256)]=_0x581f36,this[_0x4b3b6b(0x22c)]=_0x306092,this[_0x4b3b6b(0x260)]=_0x3b0ce5,this[_0x4b3b6b(0x396)]());}[_0x5cd2e1(0x1cc)](){const _0x3e4d96=_0x5cd2e1;super[_0x3e4d96(0x1cc)](),this[_0x3e4d96(0x2c1)]['complete'](),this[_0x3e4d96(0x201)][_0x3e4d96(0x258)](_0x14c6a7=>_0x14c6a7[_0x3e4d96(0x1cc)]());}['getCollabCursors$'](_0x4f7daa){const _0x390b65=_0x5cd2e1;return this[_0x390b65(0x201)][_0x390b65(0x217)](_0x4f7daa)?this[_0x390b65(0x201)][_0x390b65(0x2b6)](_0x4f7daa)['cursorInfo$']:this[_0x390b65(0x2c1)][_0x390b65(0x26f)](_0x23fc73(_0x154ac8=>_0x154ac8[_0x390b65(0x287)]===_0x4f7daa),_0x3ee0f0(_0x277af4=>_0x277af4['cursorInfo$']));}[_0x5cd2e1(0x396)](){const _0x17fbe0=_0x5cd2e1;this[_0x17fbe0(0x256)][_0x17fbe0(0x2e9)](_0x298b40[_0x17fbe0(0x3ef)])['pipe'](_0x27172d(this[_0x17fbe0(0x1fb)]))[_0x17fbe0(0x34a)](async _0x2c99ea=>{const _0x29356d=_0x17fbe0,_0x1679cc=_0x2c99ea[_0x29356d(0x354)](),_0x3a4a24=await this[_0x29356d(0x331)](_0x1679cc);this[_0x29356d(0x2c1)][_0x29356d(0x3dd)](_0x3a4a24),this['_entities']['set'](_0x1679cc,_0x3a4a24);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x298b40[_0x17fbe0(0x2ba)])[_0x17fbe0(0x26f)](_0x27172d(this['dispose$']))['pipe'](_0x23fc73(_0xf22345=>!_0xf22345[_0x17fbe0(0x354)]()[_0x17fbe0(0x3cb)]('__')))['subscribe'](async _0x3b1531=>{const _0x4d7d77=_0x17fbe0,_0xdd0be7=_0x3b1531[_0x4d7d77(0x354)](),_0x321fe2=await this[_0x4d7d77(0x3fb)](_0xdd0be7);this['_entityInit$'][_0x4d7d77(0x3dd)](_0x321fe2),this[_0x4d7d77(0x201)][_0x4d7d77(0x322)](_0xdd0be7,_0x321fe2);}),_0x1047ef(this[_0x17fbe0(0x256)][_0x17fbe0(0x368)](_0x298b40[_0x17fbe0(0x2ba)]),this[_0x17fbe0(0x256)][_0x17fbe0(0x368)](_0x298b40[_0x17fbe0(0x3ef)]))[_0x17fbe0(0x26f)](_0x27172d(this[_0x17fbe0(0x1fb)]))[_0x17fbe0(0x34a)](_0x323d73=>{const _0x2b131b=_0x17fbe0,_0x4455af=_0x323d73[_0x2b131b(0x354)](),_0xeeab3b=this[_0x2b131b(0x201)][_0x2b131b(0x2b6)](_0x4455af);_0xeeab3b&&(_0xeeab3b['dispose'](),this[_0x2b131b(0x201)]['delete'](_0x4455af));});}async['_startSheetCollabCursor'](_0x4af589){const _0x1183a4=_0x5cd2e1,_0x28a93a=await this['_collabSessionService'][_0x1183a4(0x3e3)](_0x4af589),_0x557dd0=this[_0x1183a4(0x22c)][_0x1183a4(0x259)](Be,_0x4af589,_0x28a93a);return _0x557dd0[_0x1183a4(0x329)](),_0x557dd0;}async[_0x5cd2e1(0x3fb)](_0xb54b98){const _0xf6f38c=_0x5cd2e1,_0x415604=await this[_0xf6f38c(0x260)][_0xf6f38c(0x3e3)](_0xb54b98),_0x11da4f=this[_0xf6f38c(0x22c)][_0xf6f38c(0x259)](xe,_0xb54b98,_0x415604);return _0x11da4f[_0xf6f38c(0x329)](),_0x11da4f;}};H=Wi([Ce(0x0,_0x296958),Ce(0x1,_0xf4d66f(_0xae1fe5)),Ce(0x2,_0xf4d66f(_0x5c8b4c))],H);const Q=0x14,at=0xc8,Re=0x4,Vi=0x5;function ji(_0xae0f5d,_0x4ca319){const _0x13b764=_0x5cd2e1;let {radius:_0x2f3f55,width:_0x5be2ba,height:_0x4eff4b}=_0x4ca319;_0x2f3f55=_0x2f3f55!=null?_0x2f3f55:0x0,_0x5be2ba=_0x5be2ba!=null?_0x5be2ba:0x1e,_0x4eff4b=_0x4eff4b!=null?_0x4eff4b:0x1e;let _0x5809b2=0x0,_0x3458be=0x0,_0x2a577b=0x0;_0x5809b2=_0x3458be=_0x2a577b=Math[_0x13b764(0x1dc)](_0x2f3f55,_0x5be2ba/0x2,_0x4eff4b/0x2),_0xae0f5d[_0x13b764(0x250)](),_0xae0f5d[_0x13b764(0x220)](_0x5809b2,0x0),_0xae0f5d['lineTo'](_0x5be2ba-_0x3458be,0x0),_0xae0f5d[_0x13b764(0x337)](_0x5be2ba-_0x3458be,_0x3458be,_0x3458be,Math['PI']*0x3/0x2,0x0,!0x1),_0xae0f5d[_0x13b764(0x38c)](_0x5be2ba,_0x4eff4b-_0x2a577b),_0xae0f5d['arc'](_0x5be2ba-_0x2a577b,_0x4eff4b-_0x2a577b,_0x2a577b,0x0,Math['PI']/0x2,!0x1),_0xae0f5d[_0x13b764(0x38c)](0x0,_0x4eff4b),_0xae0f5d['lineTo'](0x0,_0x5809b2),_0xae0f5d[_0x13b764(0x337)](_0x5809b2,_0x5809b2,_0x5809b2,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0xae0f5d['closePath'](),_0x4ca319[_0x13b764(0x27c)]&&(_0xae0f5d[_0x13b764(0x2f5)](),_0xae0f5d[_0x13b764(0x20e)]=_0x4ca319[_0x13b764(0x27c)],_0x4ca319[_0x13b764(0x237)]==='evenodd'?_0xae0f5d[_0x13b764(0x27c)]('evenodd'):_0xae0f5d['fill'](),_0xae0f5d['restore']());}class ve extends _0x4b9cbe{constructor(_0x36949e,_0x1db0d5){const _0x29dc6d=_0x5cd2e1;super(_0x36949e,_0x1db0d5),_(this,_0x29dc6d(0x24a)),_(this,_0x29dc6d(0x1d2)),(this[_0x29dc6d(0x24a)]=_0x1db0d5==null?void 0x0:_0x1db0d5[_0x29dc6d(0x24a)],this[_0x29dc6d(0x1d2)]=_0x1db0d5==null?void 0x0:_0x1db0d5['text']);}static['drawWith'](_0x2d25fb,_0xa5cd89){const _0x198dc5=_0x5cd2e1,{text:_0x46abc3,color:_0x58e66c}=_0xa5cd89;_0x2d25fb['save'](),_0x2d25fb[_0x198dc5(0x298)]=_0x198dc5(0x3c1);const _0x58f3e2=_0x2d25fb[_0x198dc5(0x257)](_0x46abc3)[_0x198dc5(0x218)],_0xb590a5=Math['min'](_0x58f3e2+0x2*Re,at);ji(_0x2d25fb,{'height':Q,'radius':0x4,'width':_0xb590a5,'fill':_0x58e66c}),_0x2d25fb['fillStyle']='#FFF';const _0x237008=Re,_0x3c8e14=Q-Vi,_0x142752=at-0x2*Re;if(_0x58f3e2>_0x142752){let _0x99c208='',_0x399d82=0x0;for(const _0x55d097 of _0x46abc3){const _0x3d1e33=_0x2d25fb[_0x198dc5(0x257)](_0x55d097)['width'];if(_0x399d82+_0x3d1e33<=_0x142752-_0x2d25fb[_0x198dc5(0x257)]('...')[_0x198dc5(0x218)])_0x99c208+=_0x55d097,_0x399d82+=_0x3d1e33;else{_0x99c208+=_0x198dc5(0x39c);break;}}_0x2d25fb[_0x198dc5(0x2d7)](_0x99c208,_0x237008,_0x3c8e14);}else _0x2d25fb['fillText'](_0x46abc3,_0x237008,_0x3c8e14);_0x2d25fb[_0x198dc5(0x3d9)]();}[_0x5cd2e1(0x280)](_0x4291fd){const _0xef126f=_0x5cd2e1;ve[_0xef126f(0x356)](_0x4291fd,this);}}const De=_0x5cd2e1(0x2a9),Xi=_0x5cd2e1(0x3e2),Gi=_0x5cd2e1(0x283),z=0x6,Ki=1.5,Ne=0x4,zi=1.5,Ji=_0x5cd2e1(0x1ee);class ct{constructor(_0x24f88a,_0x42b8de,_0x31e809,_0x28fa13){const _0xfccd13=_0x5cd2e1;_(this,_0xfccd13(0x38b),[]),_(this,_0xfccd13(0x2b9),null),_(this,_0xfccd13(0x1c4),null),_(this,'_anchorDot',null),_(this,_0xfccd13(0x246),null),_(this,'_eventUnsubscribe',null),(this[_0xfccd13(0x223)]=_0x24f88a,this[_0xfccd13(0x2bb)]=_0x42b8de,this[_0xfccd13(0x21e)]=_0x31e809,this[_0xfccd13(0x310)]=_0x28fa13,this[_0xfccd13(0x36a)]());}set['_hover'](_0x170ce7){const _0x2ca291=_0x5cd2e1;_0x170ce7?(this[_0x2ca291(0x1e7)]&&this['_anchorDot'][_0x2ca291(0x1da)](),this[_0x2ca291(0x1c4)]&&this[_0x2ca291(0x1c4)]['show']()):(this[_0x2ca291(0x1e7)]&&this[_0x2ca291(0x1e7)][_0x2ca291(0x312)](),this[_0x2ca291(0x1c4)]&&this[_0x2ca291(0x1c4)][_0x2ca291(0x1da)]());}['dispose'](){const _0x2fd805=_0x5cd2e1;for(const _0x4a9f9c of this[_0x2fd805(0x38b)])_0x4a9f9c[_0x2fd805(0x1cc)]();this['_textBubble']&&this['_textBubble']['dispose'](),this[_0x2fd805(0x1e7)]&&this[_0x2fd805(0x1e7)][_0x2fd805(0x1cc)](),this['_anchor']&&this[_0x2fd805(0x2b9)][_0x2fd805(0x1cc)](),this['_eventUnsubscribe']&&this[_0x2fd805(0x39a)]();}[_0x5cd2e1(0x36a)](){const _0x29cc3a=_0x5cd2e1;var _0x272c26;const {_docSkeleton:_0x4590c8,_document:_0x110afc}=this,{color:_0x4d4732,name:_0x18ffa5,ranges:_0x2101ea}=this[_0x29cc3a(0x223)],_0x6b1b4=_0x110afc['getOffsetConfig'](),{docsLeft:_0x50812d,docsTop:_0x598fb9}=_0x6b1b4,_0x43bd7e=new _0x385735(_0x6b1b4,_0x4590c8);for(const {startOffset:_0x424c1f,endOffset:_0xaab52c,rangeType:_0x2290b9,segmentId:_0x3d60ce,segmentPage:_0x557109,collapsed:_0x12b827,isActive:_0x363cd0}of _0x2101ea){const _0x3a0298=_0x4590c8[_0x29cc3a(0x39b)](_0x424c1f,!0x0,_0x3d60ce,_0x557109);let _0x2a79fe=_0x4590c8[_0x29cc3a(0x39b)](_0xaab52c,!0x0,_0x3d60ce,_0x557109);if(_0x2a79fe==null&&(_0x2a79fe=_0x4590c8[_0x29cc3a(0x39b)](_0xaab52c-0x1,!0x1,_0x3d60ce,_0x557109)),_0x363cd0){const {contentBoxPointGroup:_0x1de513}=_0x43bd7e[_0x29cc3a(0x3a1)](_0x2a79fe,_0x2a79fe);if(_0x1de513[_0x29cc3a(0x3ed)]===0x0)continue;this[_0x29cc3a(0x3d3)](_0x4d4732,_0x1de513,_0x50812d,_0x598fb9,_0x18ffa5),this[_0x29cc3a(0x39a)]=this[_0x29cc3a(0x328)]();}if(_0x3a0298&&_0x2a79fe){if(_0x2290b9===_0x38326c[_0x29cc3a(0x200)]){const _0x447b6e=new _0x443d5d(_0x6b1b4,_0x4590c8),{pointGroup:_0x623726}=(_0x272c26=_0x447b6e[_0x29cc3a(0x3a1)](_0x3a0298,_0x2a79fe))!=null?_0x272c26:{};if(_0x623726==null||_0x623726['length']===0x0)continue;this[_0x29cc3a(0x32d)](_0x4d4732,_0x623726,_0x50812d,_0x598fb9);}else{if(!_0x12b827){const {borderBoxPointGroup:_0x36188c}=_0x43bd7e[_0x29cc3a(0x3a1)](_0x3a0298,_0x2a79fe);if(_0x36188c['length']===0x0)continue;this[_0x29cc3a(0x366)](_0x4d4732,_0x36188c,_0x50812d,_0x598fb9);}}}}}[_0x5cd2e1(0x3d3)](_0x2bf574,_0x3de16f,_0x2079cb,_0x303f5b,_0x3375ef){const _0xdb15d6=_0x5cd2e1,_0x2ba064=this[_0xdb15d6(0x3aa)](_0x3de16f),{left:_0x35414b,top:_0x13968e,height:_0x504f66}=_0x2ba064,_0x530613=this[_0xdb15d6(0x311)](),_0x55e8b2=zi/_0x530613,_0x40c962=new _0x2d1bf5(De+_0x2bc8c1(z),{'left':_0x35414b+_0x2079cb-_0x55e8b2,'top':_0x13968e+_0x303f5b,'height':_0x504f66,'width':Ki,'fill':_0x2bf574||_0x24880e(_0x4c198e['black'],0x0),'strokeWidth':_0x55e8b2,'stroke':Ji,'evented':!0x0});this[_0xdb15d6(0x2b9)]=_0x40c962,this[_0xdb15d6(0x2bb)][_0xdb15d6(0x2dd)](_0x40c962,_0x5412da);const _0x1e78bc=new _0x2d1bf5(De+_0x2bc8c1(z),{'left':_0x35414b+_0x2079cb-_0x55e8b2,'top':_0x13968e+_0x303f5b-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x2bf574||_0x24880e(_0x4c198e[_0xdb15d6(0x279)],0x0),'strokeWidth':0x0,'stroke':_0x2bf574||_0x24880e(_0x4c198e[_0xdb15d6(0x279)],0x0),'evented':!0x1});this[_0xdb15d6(0x1e7)]=_0x1e78bc,this['_scene'][_0xdb15d6(0x2dd)](_0x1e78bc,_0x5412da);const _0x28da55=new ve(De+_0x2bc8c1(z),{'left':_0x35414b+_0x2079cb-_0x55e8b2,'top':_0x13968e+_0x303f5b-Q,'text':_0x3375ef,'color':_0x2bf574});this[_0xdb15d6(0x1c4)]=_0x28da55,this[_0xdb15d6(0x2bb)][_0xdb15d6(0x2dd)](_0x28da55,_0x5412da),this[_0xdb15d6(0x321)]=!0x1;}[_0x5cd2e1(0x328)](){const _0x2e7abf=_0x5cd2e1,_0x23dbe=this[_0x2e7abf(0x2b9)][_0x2e7abf(0x22b)][_0x2e7abf(0x390)](()=>{this['_hover']=!0x0;}),_0x30b77b=this[_0x2e7abf(0x2b9)][_0x2e7abf(0x1e1)][_0x2e7abf(0x390)](()=>{const _0x374293=_0x2e7abf;this[_0x374293(0x246)]&&clearTimeout(this[_0x374293(0x246)]),this['_hideTimer']=setTimeout(()=>{const _0x493cf5=_0x374293;this[_0x493cf5(0x321)]=!0x1;},0x7d0);});return()=>{const _0x3327b3=_0x2e7abf;_0x23dbe[_0x3327b3(0x2ec)](),_0x30b77b[_0x3327b3(0x2ec)]();};}[_0x5cd2e1(0x366)](_0x4d00f0,_0x147559,_0x2e4858,_0x1624a4){const _0x579925=_0x5cd2e1,_0x495bd3=new _0x106cbc(_0x4d00f0)['setAlpha'](0.2)[_0x579925(0x2fb)](),_0x2be3b7=new _0xd9e657(Xi+_0x2bc8c1(z),{'pointsGroup':_0x147559,'fill':_0x495bd3||_0x24880e(_0x4c198e[_0x579925(0x279)],0.2),'left':_0x2e4858,'top':_0x1624a4,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x579925(0x38b)][_0x579925(0x30a)](_0x2be3b7),this[_0x579925(0x2bb)][_0x579925(0x2dd)](_0x2be3b7,_0x5412da);}[_0x5cd2e1(0x32d)](_0x11ad95,_0x196155,_0x413e40,_0x1e4d4a){const _0x49cc92=_0x5cd2e1,_0x2c9053=new _0x106cbc(_0x11ad95)[_0x49cc92(0x2bc)](0.2)[_0x49cc92(0x2fb)](),_0x1862ab=new _0xd9e657(Gi+_0x2bc8c1(z),{'pointsGroup':_0x196155,'fill':_0x2c9053||_0x24880e(_0x4c198e[_0x49cc92(0x279)],0.2),'left':_0x413e40,'top':_0x1e4d4a,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x49cc92(0x38b)][_0x49cc92(0x30a)](_0x1862ab),this[_0x49cc92(0x2bb)]['addObject'](_0x1862ab,_0x5412da);}[_0x5cd2e1(0x3aa)](_0x43171f){const _0x4c0584=_0x43171f[0x0],_0x4c741b=_0x4c0584[0x0],_0x44959a=_0x4c0584[0x2],{x:_0x30e6d6,y:_0x50bdc5}=_0x4c741b,{x:_0x4be9bd,y:_0x10dbf8}=_0x44959a;return{'left':_0x30e6d6,'top':_0x50bdc5,'width':_0x4be9bd-_0x30e6d6,'height':_0x10dbf8-_0x50bdc5};}['_getScale'](){const _0x3177d2=_0x5cd2e1,{scaleX:_0x32765a,scaleY:_0x3f247f}=this[_0x3177d2(0x2bb)]['getAncestorScale']();return Math[_0x3177d2(0x285)](_0x32765a,_0x3f247f);}}var Zi=Object['getOwnPropertyDescriptor'],Qi=(_0x4c42d3,_0x8fb1e6,_0x360e8d,_0x50548a)=>{const _0x33156f=_0x5cd2e1;for(var _0x104585=_0x50548a>0x1?void 0x0:_0x50548a?Zi(_0x8fb1e6,_0x360e8d):_0x8fb1e6,_0x3bd5b9=_0x4c42d3[_0x33156f(0x3ed)]-0x1,_0x13cdf1;_0x3bd5b9>=0x0;_0x3bd5b9--)(_0x13cdf1=_0x4c42d3[_0x3bd5b9])&&(_0x104585=_0x13cdf1(_0x104585)||_0x104585);return _0x104585;},ie=(_0x5366b8,_0x5d4cc7)=>(_0x49171c,_0x1c3c6f)=>_0x5d4cc7(_0x49171c,_0x1c3c6f,_0x5366b8);let Fe=class extends _0xb8a4ef{constructor(_0x5f319f,_0x1d302b,_0x29133b,_0x43d428,_0x58759){const _0x509433=_0x5cd2e1;super(),_(this,_0x509433(0x269),[]),_(this,_0x509433(0x35f),[]),(this['_context']=_0x5f319f,this[_0x509433(0x2b2)]=_0x1d302b,this[_0x509433(0x407)]=_0x29133b,this[_0x509433(0x1e8)]=_0x43d428,this[_0x509433(0x292)]=_0x58759,this['_init']());}['_init'](){const _0x275092=_0x5cd2e1,_0x18cb55=this[_0x275092(0x334)][_0x275092(0x1e5)],_0x3dc68d=this[_0x275092(0x2b2)];this[_0x275092(0x2cf)](_0x29b637([this['_collabCursorController'][_0x275092(0x273)](_0x18cb55),this['_themeService'][_0x275092(0x3bf)]])['pipe'](_0x29f709(([_0xc2b502,_0xe96cde])=>({'skeleton':_0x3dc68d[_0x275092(0x3f3)](),'cursors':[..._0xc2b502['values']()][_0x275092(0x2cb)](_0x71404d=>({..._0x71404d,'color':this['_themeService']['getColorFromTheme'](_0x71404d[_0x275092(0x24a)])}))})))['subscribe'](_0x4bbf5e=>{if(this['_removeCollabCursors'](),_0x4bbf5e){const {skeleton:_0x20dad1,cursors:_0x482491}=_0x4bbf5e;this['_updateCollabCursors'](_0x20dad1,_0x482491);}})),this['_initResize'](),this[_0x275092(0x2b5)]();}['_updateCollabCursors'](_0x3e43cc,_0x256f4b){const _0xa99056=_0x5cd2e1,{scene:_0x57d934,mainComponent:_0x2300a2}=this[_0xa99056(0x334)],_0x5509ff=_0x256f4b[_0xa99056(0x29a)](_0x41258c=>new ct(_0x41258c,_0x57d934,_0x3e43cc,_0x2300a2));this['_cursorShapes']=_0x5509ff,this[_0xa99056(0x35f)]=_0x256f4b;}[_0x5cd2e1(0x1e2)](){const _0x12a8ff=_0x5cd2e1;this['_removeCollabCursors']();const {scene:_0x279da3,mainComponent:_0x4c0d9a}=this[_0x12a8ff(0x334)],_0x519402=this[_0x12a8ff(0x2b2)]['getSkeleton'](),_0x126587=this[_0x12a8ff(0x35f)]['map'](_0x568ee7=>new ct(_0x568ee7,_0x279da3,_0x519402,_0x4c0d9a));this[_0x12a8ff(0x269)]=_0x126587;}[_0x5cd2e1(0x2fe)](){const _0x64944f=_0x5cd2e1;this[_0x64944f(0x269)]['forEach'](_0x20e86d=>_0x20e86d[_0x64944f(0x1cc)]()),this[_0x64944f(0x269)]=[];}[_0x5cd2e1(0x2b5)](){const _0xdaf67c=_0x5cd2e1,_0x291bc7=[_0x4afac5['id']];this['disposeWithMe'](this[_0xdaf67c(0x1e8)]['onCommandExecuted'](_0x452c55=>{const _0x273ce6=_0xdaf67c;_0x291bc7[_0x273ce6(0x3f8)](_0x452c55['id'])&&_0x452c55[_0x273ce6(0x216)][_0x273ce6(0x1e5)]===this['_context']['unitId']&&this[_0x273ce6(0x1e2)]();}));}['_initResize'](){const _0x2dc27a=_0x5cd2e1;this[_0x2dc27a(0x2cf)](_0x3bbec4(this['_context']['engine'][_0x2dc27a(0x1fe)])['pipe'](_0x2cfe9d(_0x1fcdcc=>_0x1fcdcc[_0x2dc27a(0x2c6)]===_0x5dc9aa[_0x2dc27a(0x3ca)]),_0x46253a(0x10))[_0x2dc27a(0x34a)](()=>{const _0x1550e2=_0x2dc27a;this[_0x1550e2(0x1e2)]();}));}};Fe=Qi([ie(0x1,_0xf4d66f(_0x6561bc)),ie(0x2,_0xf4d66f(H)),ie(0x3,_0x33726a),ie(0x4,_0xf4d66f(_0x2ad83a))],Fe);const qi=0x1,en=1.5;class tn extends _0x4b9cbe{constructor(_0x150a6e,_0x3d5762){const _0x1b8f8b=_0x5cd2e1;super(_0x150a6e,_0x3d5762),_(this,'_color'),_(this,_0x1b8f8b(0x203),!0x1),_(this,_0x1b8f8b(0x363)),_(this,_0x1b8f8b(0x360),''),_(this,_0x1b8f8b(0x26c),_0x1b8f8b(0x393)),_(this,_0x1b8f8b(0x1bf)),(_0x3d5762&&this[_0x1b8f8b(0x21c)](_0x3d5762),this[_0x1b8f8b(0x22b)][_0x1b8f8b(0x390)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x1b8f8b(0x1e1)][_0x1b8f8b(0x390)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x5cd2e1(0x21c)](_0x2e3e2c){const _0x1841c7=_0x5cd2e1;var _0x570878,_0x55b4fa,_0x19a293,_0x3a3b09,_0x46526c,_0x5ebe2c;this['_color']=(_0x570878=_0x2e3e2c[_0x1841c7(0x24a)])!=null?_0x570878:this[_0x1841c7(0x388)],this['_hovered']=(_0x55b4fa=_0x2e3e2c[_0x1841c7(0x28c)])!=null?_0x55b4fa:this[_0x1841c7(0x203)],this[_0x1841c7(0x363)]=(_0x19a293=_0x2e3e2c[_0x1841c7(0x391)])!=null?_0x19a293:this['_range'],this['_name']=(_0x3a3b09=_0x2e3e2c['name'])!=null?_0x3a3b09:this['_name'],this[_0x1841c7(0x26c)]=(_0x46526c=_0x2e3e2c[_0x1841c7(0x2c5)])!=null?_0x46526c:this['_labelPosition'],this[_0x1841c7(0x1bf)]=(_0x5ebe2c=_0x2e3e2c['backgroundColor'])!=null?_0x5ebe2c:this[_0x1841c7(0x1bf)],this[_0x1841c7(0x38e)]({'width':_0x2e3e2c[_0x1841c7(0x218)],'height':_0x2e3e2c[_0x1841c7(0x1ec)]});}[_0x5cd2e1(0x2b3)](_0x45ef9b){const _0x5cd65c=_0x5cd2e1,{row:_0x50d527,column:_0x26c1da}=_0x45ef9b;if(_0x50d527>=this[_0x5cd65c(0x363)][_0x5cd65c(0x2ab)]&&_0x50d527<=this[_0x5cd65c(0x363)][_0x5cd65c(0x399)]&&_0x26c1da>=this[_0x5cd65c(0x363)][_0x5cd65c(0x255)]&&_0x26c1da<=this['_range']['endColumn']){this[_0x5cd65c(0x21c)]({'hovered':!0x0});return;}this[_0x5cd65c(0x21c)]({'hovered':!0x1});}[_0x5cd2e1(0x378)](_0x5367a2){return!0x1;}[_0x5cd2e1(0x280)](_0xc337e3){const _0x1cc62f=_0x5cd2e1;_0x2d1bf5[_0x1cc62f(0x356)](_0xc337e3,{'width':this[_0x1cc62f(0x218)],'height':this[_0x1cc62f(0x1ec)],'strokeWidth':en,'stroke':this[_0x1cc62f(0x388)],'evented':!0x1,'fill':this['_backgroundColor']}),this['_hovered']&&(_0xc337e3['save'](),_0xc337e3[_0x1cc62f(0x1c2)](0x1,0x0,0x0,0x1,this[_0x1cc62f(0x218)],this[_0x1cc62f(0x26c)]===_0x1cc62f(0x3e8)?0x0:-Q),ve[_0x1cc62f(0x356)](_0xc337e3,{'text':this[_0x1cc62f(0x360)],'color':this['_color']}),_0xc337e3['restore']());}}var sn=Object[_0x5cd2e1(0x2c3)],nn=(_0x17fcb0,_0x28db64,_0x551dbc,_0x432144)=>{const _0x45bec9=_0x5cd2e1;for(var _0x11b00d=_0x432144>0x1?void 0x0:_0x432144?sn(_0x28db64,_0x551dbc):_0x28db64,_0x263e67=_0x17fcb0[_0x45bec9(0x3ed)]-0x1,_0x4bb66d;_0x263e67>=0x0;_0x263e67--)(_0x4bb66d=_0x17fcb0[_0x263e67])&&(_0x11b00d=_0x4bb66d(_0x11b00d)||_0x11b00d);return _0x11b00d;},be=(_0x2f9f8f,_0x386a1e)=>(_0x3d8000,_0x1fd9a6)=>_0x386a1e(_0x3d8000,_0x1fd9a6,_0x2f9f8f);const rn=0x1389;let ke=class extends _0xb8a4ef{constructor(_0x247fc9,_0x4d5485,_0x44909d,_0x3d62f2){const _0x1391f8=_0x5cd2e1;super(),_(this,_0x1391f8(0x35f),new Set()),_(this,_0x1391f8(0x333),null),(this['_context']=_0x247fc9,this[_0x1391f8(0x263)]=_0x4d5485,this[_0x1391f8(0x407)]=_0x44909d,this[_0x1391f8(0x292)]=_0x3d62f2,this[_0x1391f8(0x396)]());}[_0x5cd2e1(0x396)](){const _0x517395=_0x5cd2e1;this[_0x517395(0x263)][_0x517395(0x3b0)][_0x517395(0x26f)](_0x359cc7(this[_0x517395(0x1fb)]),_0x3a6a71(_0x431322=>{const _0x1c5298=_0x517395;if(_0x431322){const _0xe72000=_0x431322['sheetId'];return _0x29b637(this[_0x1c5298(0x407)][_0x1c5298(0x273)](this[_0x1c5298(0x334)][_0x1c5298(0x1e5)]),this[_0x1c5298(0x292)][_0x1c5298(0x3bf)])[_0x1c5298(0x26f)](_0x29f709(([_0x38155e,_0x314983])=>{const _0x47d043=_0x1c5298,_0x5bbabf=new Map();return _0x38155e[_0x47d043(0x258)]((_0x1386ea,_0x56cfb1)=>{const _0x2bb645=_0x47d043;if(_0x1386ea[_0x2bb645(0x231)]===_0xe72000){const _0x392e30={..._0x1386ea};_0x392e30[_0x2bb645(0x24a)]=this['_themeService'][_0x2bb645(0x325)](_0x1386ea[_0x2bb645(0x24a)]),_0x5bbabf[_0x2bb645(0x322)](_0x56cfb1,_0x392e30);}}),{'skeleton':_0x431322,'cursors':_0x5bbabf};}));}return _0x529786({'skeleton':null,'cursors':new Map()});}))[_0x517395(0x34a)](({skeleton:_0x3be574,cursors:_0x391e30})=>{const _0x3196bb=_0x517395;this[_0x3196bb(0x2fe)](),_0x3be574&&this['_updateCollabCursors'](_0x3be574,_0x391e30);}),this['_sheetSkeletonManagerService'][_0x517395(0x3b0)]['subscribe'](_0x36ca71=>{const _0x277c0d=_0x517395;if(_0x36ca71==null)return;const {skeleton:_0x4a282b}=_0x36ca71,{scene:_0x1b882c}=this['_context'];_0x1b882c[_0x277c0d(0x3fd)]['subscribeEvent'](_0x55cfda(_0x4325b4=>{const _0x5f0336=_0x277c0d;var _0x10846e,_0x5df330;const {offsetX:_0x4b1f19,offsetY:_0x289b21}=_0x4325b4,{x:_0x59d87a,y:_0x291121}=_0x1b882c[_0x5f0336(0x265)](_0x2915cf['FromArray']([_0x4b1f19,_0x289b21])),{scaleX:_0x53c0de,scaleY:_0x5a3dee}=_0x1b882c[_0x5f0336(0x30d)](),_0x38b89d=_0x1b882c[_0x5f0336(0x25c)](_0x4fea51['VIEW_MAIN']),_0x36741b=_0x1b882c[_0x5f0336(0x1f3)](_0x2915cf['FromArray']([_0x59d87a,_0x291121]),_0x38b89d),_0x46760f=_0x4a282b[_0x5f0336(0x1d4)](_0x4b1f19,_0x289b21,_0x53c0de,_0x5a3dee,_0x36741b);((_0x10846e=this[_0x5f0336(0x333)])==null?void 0x0:_0x10846e[_0x5f0336(0x339)])===_0x46760f[_0x5f0336(0x339)]&&((_0x5df330=this[_0x5f0336(0x333)])==null?void 0x0:_0x5df330[_0x5f0336(0x362)])===_0x46760f[_0x5f0336(0x362)]||this[_0x5f0336(0x35f)][_0x5f0336(0x258)](_0x5e1390=>{const _0x56123c=_0x5f0336;_0x5e1390[_0x56123c(0x2b3)](_0x46760f);});},0x64));});}[_0x5cd2e1(0x271)](_0x1df996,_0x28e120){const _0xec9c67=_0x5cd2e1;var _0x106e48;const _0x58516f=(_0x106e48=this[_0xec9c67(0x263)][_0xec9c67(0x349)]())==null?void 0x0:_0x106e48['skeleton'];if(!_0x58516f)return;const _0x2d96b4=this['_getSheetObject']();if(!_0x2d96b4)return;this[_0xec9c67(0x35f)][_0xec9c67(0x258)](_0x29409b=>{const _0x48b86b=_0xec9c67;_0x29409b[_0x48b86b(0x1d5)]();});const {scene:_0x4e52c1}=_0x2d96b4,_0x5ca33e=on(Array[_0xec9c67(0x3bd)](_0x28e120[_0xec9c67(0x37b)]()))['map'](_0x581429=>{const _0x2a07bf=_0xec9c67,{color:_0x138b0e,range:_0x2c0efd,name:_0x428c72,selection:_0x5ccc8d,sheetID:_0x4c61df}=_0x581429,{startColumn:_0x49b1d9,startRow:_0x2790d0,endColumn:_0xa693c8,endRow:_0x18314c}=_0x2c0efd,_0x3237fb=_0x2c9d54(_0x2790d0,_0x49b1d9,_0x4e52c1,_0x58516f),_0x4dbdd2=_0x2c9d54(_0x18314c,_0xa693c8,_0x4e52c1,_0x58516f),{columnHeaderHeightAndMarginTop:_0x3a5344}=_0x58516f,{startX:_0x359ff3,startY:_0x399d67}=_0x3237fb,{endX:_0xeb506f,endY:_0x45d581}=_0x4dbdd2,_0x2b1c7e=_0xeb506f-_0x359ff3,_0x699614=_0x45d581-_0x399d67,_0xc3a9c9={'labelPosition':_0x399d67-_0x3a5344>=Q?_0x2a07bf(0x393):'bottom','sheetID':_0x4c61df,'range':_0x2c0efd,'color':_0x138b0e,'name':_0x428c72,'selection':_0x5ccc8d,'left':_0x359ff3,'top':_0x399d67,'width':_0x2b1c7e,'height':_0x699614,'evented':!0x1,'zIndex':rn};return new tn(_0x428c72,_0xc3a9c9);});_0x4e52c1['addObjects'](_0x5ca33e,qi),this[_0xec9c67(0x35f)]=new Set(_0x5ca33e);}['_removeCollabCursors'](){const _0x151dd0=_0x5cd2e1;var _0x20e51c;(_0x20e51c=this[_0x151dd0(0x35f)])==null||_0x20e51c[_0x151dd0(0x258)](_0x2caa64=>_0x2caa64['dispose']());}[_0x5cd2e1(0x21b)](){const _0x11ca70=_0x5cd2e1;return _0x1f3a80(this[_0x11ca70(0x334)][_0x11ca70(0x2ff)],this['_context']);}};ke=nn([be(0x1,_0xf4d66f(_0x21020f)),be(0x2,_0xf4d66f(H)),be(0x3,_0xf4d66f(_0x2ad83a))],ke);function on(_0xdf9147){const _0x574423=_0x5cd2e1,_0x1cf469=new Map();return _0xdf9147[_0x574423(0x258)](_0x3a3ed6=>{const _0x507c5a=_0x574423;if(_0x1cf469[_0x507c5a(0x217)](_0x3a3ed6[_0x507c5a(0x374)])){const _0x411ba1=_0x1cf469[_0x507c5a(0x2b6)](_0x3a3ed6[_0x507c5a(0x374)]);_0x411ba1[_0x507c5a(0x3b6)]+=',\x20'+_0x3a3ed6['name'];}else _0x1cf469[_0x507c5a(0x322)](_0x3a3ed6[_0x507c5a(0x374)],_0x3a3ed6);}),Array[_0x574423(0x3bd)](_0x1cf469['values']());}var an=Object[_0x5cd2e1(0x2c3)],cn=(_0x53eb3c,_0x524dbe,_0x5ea3dd,_0x32b387)=>{for(var _0x5d3eaa=_0x32b387>0x1?void 0x0:_0x32b387?an(_0x524dbe,_0x5ea3dd):_0x524dbe,_0xf3e073=_0x53eb3c['length']-0x1,_0x404346;_0xf3e073>=0x0;_0xf3e073--)(_0x404346=_0x53eb3c[_0xf3e073])&&(_0x5d3eaa=_0x404346(_0x5d3eaa)||_0x5d3eaa);return _0x5d3eaa;},F=(_0x1877b0,_0x100e8b)=>(_0xc9552e,_0x24109d)=>_0x100e8b(_0xc9552e,_0x24109d,_0x1877b0);let _e=class extends _0x570abd{constructor(_0x29255e,_0xbbac12,_0x2bbb2b,_0x3d5472,_0x1a6219,_0xfc22e5){const _0x2f4186=_0x5cd2e1;super(),this[_0x2f4186(0x2e1)]=_0x29255e,this[_0x2f4186(0x37e)]=_0xbbac12,this['_collaborationUIEventService']=_0x2bbb2b,this['_messageService']=_0x3d5472,this[_0x2f4186(0x208)]=_0x1a6219,this[_0x2f4186(0x2df)]=_0xfc22e5,this['_setupBeforeClosingHandler'](),this[_0x2f4186(0x3f4)]();}[_0x5cd2e1(0x2e0)](){const _0x2dadf8=_0x5cd2e1;this[_0x2dadf8(0x2cf)](this[_0x2dadf8(0x2e1)]['registerBeforeClose'](()=>{const _0x70cf65=_0x2dadf8;if(this['_localCacheService'][_0x70cf65(0x1b9)][_0x70cf65(0x247)])return this[_0x70cf65(0x2df)]['t'](_0x70cf65(0x370));}));}[_0x5cd2e1(0x3f4)](){const _0x5884cd=_0x5cd2e1;this[_0x5884cd(0x2cf)](this['_collaborationUIEventService'][_0x5884cd(0x26b)][_0x5884cd(0x34a)](_0x17703a=>{const _0x45e648=_0x5884cd;_0x17703a['id']===_0x8498da['OTHER_CLIENT_EDITING']&&this['_messageService'][_0x45e648(0x312)]({'type':_0x50fba4[_0x45e648(0x30c)],'content':this[_0x45e648(0x2df)]['t'](_0x45e648(0x3f5))}),_0x17703a['id']===_0x8498da[_0x45e648(0x2f3)]&&this[_0x45e648(0x305)][_0x45e648(0x312)]({'type':_0x50fba4[_0x45e648(0x30c)],'content':this[_0x45e648(0x2df)]['t']('collaboration.closeRoom')}),_0x17703a['id']===_0x8498da['PERMISSION_DENIED']&&this['_notificationService'][_0x45e648(0x312)]({'title':this[_0x45e648(0x2df)]['t']('permission.title'),'content':this[_0x45e648(0x2df)]['t'](_0x45e648(0x2c7)),'type':'error','duration':0x0}),_0x17703a['id']===_0x8498da[_0x45e648(0x33a)]&&this[_0x45e648(0x305)][_0x45e648(0x312)]({'type':_0x50fba4[_0x45e648(0x3c6)],'content':this[_0x45e648(0x2df)]['t']('collaboration.closeRoom')+'('+_0x17703a[_0x45e648(0x1fd)]+')'}),_0x17703a['id']===_0x8498da[_0x45e648(0x2c0)]&&this[_0x45e648(0x305)][_0x45e648(0x312)]({'type':_0x50fba4[_0x45e648(0x30c)],'content':this[_0x45e648(0x2df)]['t'](_0x17703a['data']||'')}),_0x17703a['id']===_0x8498da[_0x45e648(0x1d7)]&&this[_0x45e648(0x305)][_0x45e648(0x312)]({'type':_0x50fba4['Warning'],'content':this[_0x45e648(0x2df)]['t'](_0x45e648(0x3de))}),_0x17703a['id']===_0x8498da[_0x45e648(0x1db)]&&this[_0x45e648(0x305)][_0x45e648(0x312)]({'type':_0x50fba4[_0x45e648(0x3c6)],'content':this[_0x45e648(0x2df)]['t']('session.connection-failed')}),_0x17703a['id']===_0x8498da[_0x45e648(0x386)]&&this[_0x45e648(0x305)][_0x45e648(0x312)]({'type':_0x50fba4[_0x45e648(0x3c6)],'content':this[_0x45e648(0x2df)]['t'](_0x45e648(0x351))});}));}};_e=cn([F(0x0,_0x11252d),F(0x1,_0x2f092b),F(0x2,_0xf4d66f(_0x1f2235)),F(0x3,_0x347467),F(0x4,_0x55bab0),F(0x5,_0xf4d66f(_0x247dfc))],_e);var _n=Object[_0x5cd2e1(0x2c3)],ln=(_0x5e23a4,_0x4e296e,_0x3d02ed,_0x5ba3e1)=>{const _0x372f75=_0x5cd2e1;for(var _0x34f67a=_0x5ba3e1>0x1?void 0x0:_0x5ba3e1?_n(_0x4e296e,_0x3d02ed):_0x4e296e,_0xe4dfb5=_0x5e23a4[_0x372f75(0x3ed)]-0x1,_0x275216;_0xe4dfb5>=0x0;_0xe4dfb5--)(_0x275216=_0x5e23a4[_0xe4dfb5])&&(_0x34f67a=_0x275216(_0x34f67a)||_0x34f67a);return _0x34f67a;},ne=(_0x4be880,_0x45e680)=>(_0x33ae6c,_0x28c1cc)=>_0x45e680(_0x33ae6c,_0x28c1cc,_0x4be880);let le=class extends _0x570abd{constructor(_0x2a58e0,_0x28d4b2,_0x1c95f4,_0x45dbb7){const _0x52a3f7=_0x5cd2e1;super(),_(this,_0x52a3f7(0x2c8)),(this[_0x52a3f7(0x22c)]=_0x2a58e0,this['_httpService']=_0x28d4b2,this['_logService']=_0x1c95f4,this[_0x52a3f7(0x3fc)]=_0x45dbb7,this[_0x52a3f7(0x396)]());}[_0x5cd2e1(0x396)](){const _0x5a9876=_0x5cd2e1;this['_initWindowErrorListener'](),this[_0x5a9876(0x25a)](),this[_0x5a9876(0x332)](),this['_initUserListener']();}[_0x5cd2e1(0x2aa)](){const _0x1cc02f=_0x5cd2e1;this[_0x1cc02f(0x2cf)](this['_collaborationSessionService']['socket$'][_0x1cc02f(0x34a)](_0xea398=>{const _0x2bccea=_0x1cc02f;this[_0x2bccea(0x2c8)]=_0xea398==null?void 0x0:_0xea398['memberID'];}));}[_0x5cd2e1(0x2e3)](){const _0x542d98=_0x5cd2e1,_0x3304b8=_0x490787=>{const _0x555ca7=_0xc1c7;var _0x250e23;this[_0x555ca7(0x268)](_0x555ca7(0x35b),_0x555ca7(0x1c9)+_0x490787['message']+_0x555ca7(0x379)+_0x490787[_0x555ca7(0x2a8)]+':'+_0x490787[_0x555ca7(0x212)]+':'+_0x490787['colno']+'\x0a'+(((_0x250e23=_0x490787[_0x555ca7(0x35b)])==null?void 0x0:_0x250e23[_0x555ca7(0x299)])||''));};window[_0x542d98(0x1d6)](_0x542d98(0x35b),_0x3304b8),this[_0x542d98(0x2cf)](()=>{const _0x41c97c=_0x542d98;window[_0x41c97c(0x23b)]('error',_0x3304b8);});}['_initUnhandledRejectionListener'](){const _0x3c565a=_0x5cd2e1,_0x2dfb19=_0x65b45d=>{const _0x1e275f=_0xc1c7;this[_0x1e275f(0x268)](_0x1e275f(0x35b),_0x1e275f(0x3cc)+_0x65b45d[_0x1e275f(0x3be)]);};window[_0x3c565a(0x1d6)](_0x3c565a(0x3ab),_0x2dfb19),this[_0x3c565a(0x2cf)](()=>{const _0x531d2d=_0x3c565a;window[_0x531d2d(0x23b)]('unhandledrejection',_0x2dfb19);});}[_0x5cd2e1(0x332)](){const _0x38b6f6=_0x5cd2e1,_0x2cc377=this[_0x38b6f6(0x315)][_0x38b6f6(0x35b)][_0x38b6f6(0x28f)](this['_logService']);this[_0x38b6f6(0x315)][_0x38b6f6(0x35b)]=(..._0x34ac6f)=>{const _0xf83295=_0x38b6f6,_0xe10f5a=_0x34ac6f[_0xf83295(0x29a)](_0x34b97b=>_0x34b97b instanceof Error?_0x34b97b[_0xf83295(0x3f1)]+'\x0a'+_0x34b97b[_0xf83295(0x299)]:String(_0x34b97b))[_0xf83295(0x381)]('\x20');this['_uploadLog']('error',_0xf83295(0x2b7)+_0xe10f5a),_0x2cc377(..._0x34ac6f);},this[_0x38b6f6(0x2cf)](()=>{const _0x283f34=_0x38b6f6;this[_0x283f34(0x315)][_0x283f34(0x35b)]=_0x2cc377;});}[_0x5cd2e1(0x268)](_0x1edb97,_0x528798){const _0x5d7741=_0x5cd2e1;try{const _0x5714c1={'userId':this[_0x5d7741(0x2c8)],'logLabel':_0x1edb97,'content':_0x528798};this['_httpService'][_0x5d7741(0x2f7)](_0x5d7741(0x213),{'body':_0x5714c1})['catch'](()=>{});}catch{}}};le=ln([ne(0x0,_0xf4d66f(_0xae1fe5)),ne(0x1,_0xf4d66f(_0x43b379)),ne(0x2,_0x3343ad),ne(0x3,_0xf4d66f(_0x5c8b4c))],le);const hn=_0x5cd2e1(0x29e),_t={};var un=Object[_0x5cd2e1(0x2c3)],dn=(_0x4f4f28,_0x446a58,_0x4a2655,_0x4d0b19)=>{const _0x3983bb=_0x5cd2e1;for(var _0x2e10b2=_0x4d0b19>0x1?void 0x0:_0x4d0b19?un(_0x446a58,_0x4a2655):_0x446a58,_0x2e28d6=_0x4f4f28[_0x3983bb(0x3ed)]-0x1,_0x3062e1;_0x2e28d6>=0x0;_0x2e28d6--)(_0x3062e1=_0x4f4f28[_0x2e28d6])&&(_0x2e10b2=_0x3062e1(_0x2e10b2)||_0x2e10b2);return _0x2e10b2;},lt=(_0x59bf24,_0x55face)=>(_0x553eba,_0x1963b9)=>_0x55face(_0x553eba,_0x1963b9,_0x59bf24);function _0xc1c7(_0x262af3,_0xffaf2e){_0x262af3=_0x262af3-0x1b6;const _0x14020b=_0x1402();let _0xc1c735=_0x14020b[_0x262af3];return _0xc1c735;}let he=class{constructor(_0x51702e,_0x3e1f73){const _0x53e380=_0x5cd2e1;this[_0x53e380(0x1df)]=_0x51702e,this['_renderManagerService']=_0x3e1f73;}['transformIMECache'](_0x15adcd){const _0x5ca79b=_0x5cd2e1;this[_0x5ca79b(0x296)](_0x15adcd),this['_transformPreviousActiveRange'](_0x15adcd);}['transformRemoteChangeset'](_0x58d15d){const _0x83741b=_0x5cd2e1,{unitID:_0x53b790}=_0x58d15d,_0x35a5a6=this[_0x83741b(0x227)][_0x83741b(0x32a)](_0x53b790)[_0x83741b(0x238)](_0x2ca4d7),{redoCache:_0x114de8}=_0x35a5a6[_0x83741b(0x2e5)]();if(_0x114de8[_0x83741b(0x3ed)]===0x0)return _0x58d15d;let _0x128096=_0x106280[_0x83741b(0x2a0)](_0x58d15d[_0x83741b(0x24c)][0x0]);for(let _0x4a651f=0x0;_0x4a651f<_0x114de8[_0x83741b(0x3ed)];_0x4a651f++){const _0x3afd2f={'id':_0x83741b(0x336),'params':{..._0x114de8[_0x4a651f]}},_0x1fd75c=this[_0x83741b(0x1df)]['transformMutation'](_0x128096,_0x3afd2f,!0x1);if(_0x57e874(_0x1fd75c))throw _0x1fd75c[_0x83741b(0x35b)];_0x128096=_0x1fd75c[_0x83741b(0x293)];}return{..._0x106280['deepClone'](_0x58d15d),'mutations':[_0x128096]};}[_0x5cd2e1(0x296)](_0x19a43c){const _0x2fb16a=_0x5cd2e1,{unitID:_0x420659}=_0x19a43c,_0x5b0474=this[_0x2fb16a(0x227)]['getRenderById'](_0x420659)['with'](_0x2ca4d7),{undoCache:_0x3a8062,redoCache:_0x217e2e}=_0x5b0474[_0x2fb16a(0x2e5)]();if(_0x3a8062[_0x2fb16a(0x3ed)]===0x0||_0x217e2e[_0x2fb16a(0x3ed)]===0x0)return;const _0x29f6d0=[],_0x215dcb=[];let _0x5393fe=_0x106280['deepClone'](_0x19a43c[_0x2fb16a(0x24c)][0x0]),_0x2206c3=_0x106280[_0x2fb16a(0x2a0)](_0x19a43c[_0x2fb16a(0x24c)][0x0]);for(let _0x74e904=_0x3a8062[_0x2fb16a(0x3ed)]-0x1;_0x74e904>=0x0;_0x74e904--){const _0x36adfa={'id':_0x2fb16a(0x336),'params':{..._0x3a8062[_0x74e904]}},_0xf9127d={'id':'doc.mutation.rich-text-editing','params':{..._0x217e2e[_0x74e904]}},_0xd342cc=this['_transformService'][_0x2fb16a(0x2fc)](_0x5393fe,_0x36adfa,!0x1),_0x54c453=this[_0x2fb16a(0x1df)][_0x2fb16a(0x2fc)](_0x2206c3,_0xf9127d,!0x1);if(_0x57e874(_0xd342cc))throw _0xd342cc[_0x2fb16a(0x35b)];if(_0x57e874(_0x54c453))throw _0x54c453['error'];_0x29f6d0[_0x2fb16a(0x3b4)](_0xd342cc[_0x2fb16a(0x326)][_0x2fb16a(0x216)]),_0x215dcb[_0x2fb16a(0x3b4)](_0x54c453[_0x2fb16a(0x326)][_0x2fb16a(0x216)]),_0x5393fe=_0xd342cc['m1Prime'],_0x2206c3=_0x54c453[_0x2fb16a(0x293)];}_0x5b0474[_0x2fb16a(0x2e6)]({'undoCache':_0x29f6d0,'redoCache':_0x215dcb});}[_0x5cd2e1(0x291)](_0x4b2684){const _0x309863=_0x5cd2e1,{unitID:_0x502988}=_0x4b2684,_0x214f65=this[_0x309863(0x227)]['getRenderById'](_0x502988)[_0x309863(0x238)](_0x2ca4d7),_0x5b6dc9=_0x214f65[_0x309863(0x3d7)]();if(_0x5b6dc9==null)return;const _0x2cf818=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4b2684[_0x309863(0x287)],'actions':null,'textRanges':[_0x5b6dc9]}}],_0x3ea123=this[_0x309863(0x1df)][_0x309863(0x1be)](_0x4b2684,_0x2cf818);if(!_0x3af7b8(_0x3ea123))throw _0x3ea123['error'];const _0x18117c=_0x3ea123[_0x309863(0x326)][0x0][_0x309863(0x216)]['textRanges'];Array['isArray'](_0x18117c)&&_0x18117c['length']&&_0x214f65[_0x309863(0x3c7)](_0x18117c[0x0]);}};he=dn([lt(0x0,_0x4717ac),lt(0x1,_0x1313bc)],he);var Sn=Object[_0x5cd2e1(0x2c3)],In=(_0x115134,_0x42e396,_0x38a997,_0x36d1ed)=>{for(var _0x46e95e=_0x36d1ed>0x1?void 0x0:_0x36d1ed?Sn(_0x42e396,_0x38a997):_0x42e396,_0x52768e=_0x115134['length']-0x1,_0x267fcf;_0x52768e>=0x0;_0x52768e--)(_0x267fcf=_0x115134[_0x52768e])&&(_0x46e95e=_0x267fcf(_0x46e95e)||_0x46e95e);return _0x46e95e;},Le=(_0x1cabf0,_0x13ac2a)=>(_0x22c007,_0x3c7d0e)=>_0x13ac2a(_0x22c007,_0x3c7d0e,_0x1cabf0);let ue=class{constructor(_0x28d228,_0x5e1a07,_0x3947e0){const _0x2732f3=_0x5cd2e1;this['_injector']=_0x28d228,this[_0x2732f3(0x1df)]=_0x5e1a07,this['_docStateChangeManagerService']=_0x3947e0;}['transformStateCache'](_0xba80c9){const _0x4d782e=_0x5cd2e1;this[_0x4d782e(0x27d)](_0xba80c9);}[_0x5cd2e1(0x24f)](_0x1c3633){const _0xe46d15=_0x5cd2e1,{unitID:_0x22acfb}=_0x1c3633,{collaboration:_0x4b75a6}=this[_0xe46d15(0x346)][_0xe46d15(0x371)](_0x22acfb);if(_0x4b75a6[_0xe46d15(0x3ed)]===0x0)return _0x1c3633;let _0x57deac=_0x106280[_0xe46d15(0x2a0)](_0x1c3633[_0xe46d15(0x24c)][0x0]);for(let _0xa81693=0x0;_0xa81693<_0x4b75a6['length'];_0xa81693++){const _0x596f9a={'id':_0xe46d15(0x336),'params':{'unitId':_0x4b75a6[_0xa81693][_0xe46d15(0x1e5)],..._0x4b75a6[_0xa81693][_0xe46d15(0x225)]}},_0x1929d0=this[_0xe46d15(0x1df)][_0xe46d15(0x2fc)](_0x57deac,_0x596f9a,!0x1);if(_0x57e874(_0x1929d0))throw _0x1929d0[_0xe46d15(0x35b)];_0x57deac=_0x1929d0[_0xe46d15(0x293)];}return{..._0x106280[_0xe46d15(0x2a0)](_0x1c3633),'mutations':[_0x57deac]};}[_0x5cd2e1(0x27d)](_0x55333a){const _0x15f5e1=_0x5cd2e1,{unitID:_0x532243}=_0x55333a,{history:_0x29623b,collaboration:_0x28bda2}=this[_0x15f5e1(0x346)][_0x15f5e1(0x371)](_0x532243);if(_0x29623b['length']===0x0&&_0x28bda2[_0x15f5e1(0x3ed)]===0x0)return;const _0x15a043=[],_0x53ae42=[];let _0x2f6f4d=_0x106280[_0x15f5e1(0x2a0)](_0x55333a[_0x15f5e1(0x24c)][0x0]),_0x312f70=_0x106280[_0x15f5e1(0x2a0)](_0x55333a[_0x15f5e1(0x24c)][0x0]);for(let _0xd821d=_0x29623b[_0x15f5e1(0x3ed)]-0x1;_0xd821d>=0x0;_0xd821d--){const _0x2a42b9={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x29623b[_0xd821d][_0x15f5e1(0x1e5)],..._0x29623b[_0xd821d][_0x15f5e1(0x358)]}},_0x46fa19={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x29623b[_0xd821d]['unitId'],..._0x29623b[_0xd821d]['redoState']}},_0x4ca3d3=this[_0x15f5e1(0x1df)][_0x15f5e1(0x2fc)](_0x2f6f4d,_0x2a42b9,!0x1),_0x3048bf=this[_0x15f5e1(0x1df)][_0x15f5e1(0x2fc)](_0x312f70,_0x46fa19,!0x1);if(_0x57e874(_0x4ca3d3))throw _0x4ca3d3['error'];if(_0x57e874(_0x3048bf))throw _0x3048bf[_0x15f5e1(0x35b)];_0x15a043[_0x15f5e1(0x3b4)]({..._0x29623b[_0xd821d],'undoState':_0x4ca3d3[_0x15f5e1(0x326)][_0x15f5e1(0x216)],'redoState':_0x3048bf['m2Prime'][_0x15f5e1(0x216)]}),_0x2f6f4d=_0x4ca3d3['m1Prime'],_0x312f70=_0x3048bf[_0x15f5e1(0x293)];}_0x2f6f4d=_0x106280['deepClone'](_0x55333a[_0x15f5e1(0x24c)][0x0]),_0x312f70=_0x106280[_0x15f5e1(0x2a0)](_0x55333a[_0x15f5e1(0x24c)][0x0]);for(let _0x3a1b31=_0x28bda2['length']-0x1;_0x3a1b31>=0x0;_0x3a1b31--){const _0x42a0fe={'id':_0x15f5e1(0x336),'params':{'unitId':_0x28bda2[_0x3a1b31][_0x15f5e1(0x1e5)],..._0x28bda2[_0x3a1b31][_0x15f5e1(0x358)]}},_0x46a2d3={'id':_0x15f5e1(0x336),'params':{'unitId':_0x28bda2[_0x3a1b31][_0x15f5e1(0x1e5)],..._0x28bda2[_0x3a1b31]['redoState']}},_0x143cbf=this['_transformService'][_0x15f5e1(0x2fc)](_0x2f6f4d,_0x42a0fe,!0x1),_0x48fc9c=this[_0x15f5e1(0x1df)][_0x15f5e1(0x2fc)](_0x312f70,_0x46a2d3,!0x1);if(_0x57e874(_0x143cbf))throw _0x143cbf[_0x15f5e1(0x35b)];if(_0x57e874(_0x48fc9c))throw _0x48fc9c[_0x15f5e1(0x35b)];_0x53ae42[_0x15f5e1(0x3b4)]({..._0x28bda2[_0x3a1b31],'undoState':_0x143cbf['m2Prime']['params'],'redoState':_0x48fc9c['m2Prime'][_0x15f5e1(0x216)]}),_0x2f6f4d=_0x143cbf[_0x15f5e1(0x293)],_0x312f70=_0x48fc9c[_0x15f5e1(0x293)];}this['_docStateChangeManagerService']['setStateCache'](_0x532243,{'history':_0x15a043,'collaboration':_0x53ae42});}};ue=In([Le(0x0,_0xf4d66f(_0xae1fe5)),Le(0x1,_0x4717ac),Le(0x2,_0xf4d66f(_0x581053))],ue);var mn=Object[_0x5cd2e1(0x2c3)],fn=(_0x3b14d9,_0x55524,_0x5c45fd,_0x5f418e)=>{const _0x3d46e9=_0x5cd2e1;for(var _0x419ef0=_0x5f418e>0x1?void 0x0:_0x5f418e?mn(_0x55524,_0x5c45fd):_0x55524,_0x4a0574=_0x3b14d9[_0x3d46e9(0x3ed)]-0x1,_0x4b836f;_0x4a0574>=0x0;_0x4a0574--)(_0x4b836f=_0x3b14d9[_0x4a0574])&&(_0x419ef0=_0x4b836f(_0x419ef0)||_0x419ef0);return _0x419ef0;},ht=(_0xd38ff5,_0x63949d)=>(_0x202e2b,_0x417cbb)=>_0x63949d(_0x202e2b,_0x417cbb,_0xd38ff5);let de=class{constructor(_0x396a1a,_0x36e22a){const _0x3af791=_0x5cd2e1;this[_0x3af791(0x22c)]=_0x396a1a,this[_0x3af791(0x1df)]=_0x36e22a;}[_0x5cd2e1(0x394)](_0x4fe1cd){const _0x3a275b=_0x5cd2e1;var _0x3cb854;const _0x36d9cd=this[_0x3a275b(0x22c)][_0x3a275b(0x2b6)](_0x1f6f6a),_0x19c686=(_0x3cb854=_0x36d9cd[_0x3a275b(0x3ea)]())!=null?_0x3cb854:[];if(_0x19c686[_0x3a275b(0x3ed)]===0x0)return;const _0x37ebca=_0x4fe1cd['unitID'],_0x455517=[{'id':_0x3a275b(0x336),'params':{'unitId':_0x37ebca,'actions':null,'textRanges':_0x19c686}}],_0x22b523=this[_0x3a275b(0x1df)][_0x3a275b(0x1be)](_0x4fe1cd,_0x455517);if(!_0x3af7b8(_0x22b523))throw _0x22b523[_0x3a275b(0x35b)];const _0x31a310=_0x22b523[_0x3a275b(0x326)][0x0][_0x3a275b(0x216)][_0x3a275b(0x2a1)];Array['isArray'](_0x31a310)&&_0x31a310['length']&&_0x36d9cd['replaceDocRanges'](_0x31a310,{'unitId':_0x37ebca,'subUnitId':_0x37ebca},!0x1);}};de=fn([ht(0x0,_0xf4d66f(_0xae1fe5)),ht(0x1,_0x4717ac)],de);var gn=Object[_0x5cd2e1(0x2c3)],En=(_0x1a1754,_0x5ae0eb,_0x18433a,_0x579a9a)=>{const _0x31cd1c=_0x5cd2e1;for(var _0x10873a=_0x579a9a>0x1?void 0x0:_0x579a9a?gn(_0x5ae0eb,_0x18433a):_0x5ae0eb,_0x411152=_0x1a1754[_0x31cd1c(0x3ed)]-0x1,_0x3cc703;_0x411152>=0x0;_0x411152--)(_0x3cc703=_0x1a1754[_0x411152])&&(_0x10873a=_0x3cc703(_0x10873a)||_0x10873a);return _0x10873a;},U=(_0x39ee7b,_0x277d2f)=>(_0x5bdd2f,_0x4ec841)=>_0x277d2f(_0x5bdd2f,_0x4ec841,_0x39ee7b);let Se=class extends _0x570abd{constructor(_0x157282,_0x2ce67f,_0x534756,_0x23b707,_0x4d3511,_0x468955,_0x32894c,_0x50937a){const _0x28a4bf=_0x5cd2e1;super(),_(this,_0x28a4bf(0x2ef),new _0x59b9f6(_0x2eedc4[_0x28a4bf(0x1e0)])),(this[_0x28a4bf(0x346)]=_0x157282,this[_0x28a4bf(0x206)]=_0x2ce67f,this[_0x28a4bf(0x27a)]=_0x534756,this[_0x28a4bf(0x2b8)]=_0x23b707,this[_0x28a4bf(0x266)]=_0x4d3511,this['_docSyncEditingCollabCursorService']=_0x468955,this[_0x28a4bf(0x305)]=_0x32894c,this[_0x28a4bf(0x2df)]=_0x50937a,this[_0x28a4bf(0x3b5)]());}[_0x5cd2e1(0x3b5)](){const _0x15a1c7=_0x5cd2e1;this[_0x15a1c7(0x2cf)](this[_0x15a1c7(0x206)][_0x15a1c7(0x33d)]['subscribe'](_0x111657=>{const _0x59075f=_0x15a1c7,_0x32ec5b=this[_0x59075f(0x346)][_0x59075f(0x3a0)][_0x59075f(0x34a)](_0x19782c=>{const _0xeb8afe=_0x59075f;if(_0x19782c==null)return;const {unitId:_0x57bc43,redoState:_0x1746a0,commandId:_0xf2edc5}=_0x19782c;if(_0x57bc43!==_0x111657[_0xeb8afe(0x287)])return;const _0x550368={'id':_0xf2edc5,'type':_0x7f0e47[_0xeb8afe(0x2a2)],'params':{'unitId':_0x57bc43,'actions':_0x1746a0[_0xeb8afe(0x264)],'textRanges':null}};_0x111657[_0xeb8afe(0x320)](_0x550368);});if(_0x111657[_0x59075f(0x2cf)](_0x32ec5b),_0x111657 instanceof _0x19f78d){const _0x5ab865={'onTransformIME':_0x4432d3=>this[_0x59075f(0x27a)]['transformIMECache'](_0x4432d3),'onTransformState':_0x4087ad=>this[_0x59075f(0x2b8)][_0x59075f(0x36c)](_0x4087ad),'onTransformSelections':_0x5e3f39=>this[_0x59075f(0x266)][_0x59075f(0x394)](_0x5e3f39),'onSyncEditingCollabCursor':_0xb9d7d9=>this[_0x59075f(0x254)][_0x59075f(0x3ae)](_0xb9d7d9),'onTransformRemoteChangesetByIMECache':_0x5c39e0=>this[_0x59075f(0x27a)][_0x59075f(0x24f)](_0x5c39e0),'onTransformRemoteChangesetByStateCache':_0x28c3b0=>this[_0x59075f(0x2b8)][_0x59075f(0x24f)](_0x28c3b0)};_0x111657[_0x59075f(0x221)](_0x5ab865);}}));}};Se=En([U(0x0,_0xf4d66f(_0x581053)),U(0x1,_0xf4d66f(_0x653e72)),U(0x2,_0xf4d66f(he)),U(0x3,_0xf4d66f(ue)),U(0x4,_0xf4d66f(de)),U(0x5,_0xf4d66f(ze)),U(0x6,_0x347467),U(0x7,_0xf4d66f(_0x247dfc))],Se);var Z=(_0x4588d7=>(_0x4588d7[_0x4588d7[_0x5cd2e1(0x3bb)]=0x0]=_0x5cd2e1(0x3bb),_0x4588d7[_0x4588d7['OK']=0x1]='OK',_0x4588d7[_0x4588d7['INTERNAL_ERROR']=0x2]='INTERNAL_ERROR',_0x4588d7[_0x4588d7[_0x5cd2e1(0x20a)]=0x3]='PERMISSION_DENIED',_0x4588d7[_0x4588d7[_0x5cd2e1(0x39f)]=0x4]='NOT_FOUND',_0x4588d7[_0x4588d7[_0x5cd2e1(0x2e4)]=0x5]=_0x5cd2e1(0x2e4),_0x4588d7[_0x4588d7[_0x5cd2e1(0x289)]=0x6]=_0x5cd2e1(0x289),_0x4588d7[_0x4588d7[_0x5cd2e1(0x24e)]=0x7]='INVALID_ARGUMENT',_0x4588d7[_0x4588d7[_0x5cd2e1(0x202)]=0x8]=_0x5cd2e1(0x202),_0x4588d7[_0x4588d7[_0x5cd2e1(0x302)]=0x9]=_0x5cd2e1(0x302),_0x4588d7[_0x4588d7['LOGIN_FAILED']=0xa]=_0x5cd2e1(0x286),_0x4588d7[_0x4588d7[_0x5cd2e1(0x26e)]=0xb]=_0x5cd2e1(0x26e),_0x4588d7[_0x4588d7[_0x5cd2e1(0x232)]=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x4588d7[_0x4588d7[_0x5cd2e1(0x372)]=0xd]=_0x5cd2e1(0x372),_0x4588d7[_0x4588d7[_0x5cd2e1(0x355)]=0xe]=_0x5cd2e1(0x355),_0x4588d7[_0x4588d7['AUTHORIZE_CODE_ILLEGAL']=0xf]=_0x5cd2e1(0x1eb),_0x4588d7[_0x4588d7['LOGIN_TOKEN_PROCESSING_FAILED']=0x10]=_0x5cd2e1(0x3f7),_0x4588d7[_0x4588d7['CURRENT_STATUS_CANNOT_OPERATE']=0x64]=_0x5cd2e1(0x323),_0x4588d7[_0x4588d7[_0x5cd2e1(0x2cd)]=0x65]=_0x5cd2e1(0x2cd),_0x4588d7[_0x4588d7['USER_NOT_FOUND']=0xc9]=_0x5cd2e1(0x26d),_0x4588d7[_0x4588d7[_0x5cd2e1(0x3c3)]=0xca]='USER_IS_ANONYMOUS',_0x4588d7[_0x4588d7[_0x5cd2e1(0x303)]=0x1389]=_0x5cd2e1(0x303),_0x4588d7[_0x4588d7['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x5cd2e1(0x2c9),_0x4588d7[_0x4588d7[_0x5cd2e1(0x1d1)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x4588d7[_0x4588d7[_0x5cd2e1(0x3a6)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x4588d7[_0x4588d7['APPLY_REJECT']=0x1b59]=_0x5cd2e1(0x376),_0x4588d7[_0x4588d7[_0x5cd2e1(0x234)]=0x1b5a]=_0x5cd2e1(0x234),_0x4588d7[_0x4588d7[_0x5cd2e1(0x2cc)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x4588d7[_0x4588d7[_0x5cd2e1(0x274)]=0x1b5c]=_0x5cd2e1(0x274),_0x4588d7[_0x4588d7[_0x5cd2e1(0x318)]=0x1b5d]=_0x5cd2e1(0x318),_0x4588d7[_0x4588d7['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x5cd2e1(0x404),_0x4588d7[_0x4588d7['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x4588d7[_0x4588d7[_0x5cd2e1(0x3d2)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x4588d7[_0x4588d7[_0x5cd2e1(0x2e7)]=0x232b]=_0x5cd2e1(0x2e7),_0x4588d7[_0x4588d7[_0x5cd2e1(0x39d)]=0x232c]=_0x5cd2e1(0x39d),_0x4588d7[_0x4588d7[_0x5cd2e1(0x252)]=0x232d]=_0x5cd2e1(0x252),_0x4588d7[_0x4588d7['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x5cd2e1(0x3ba),_0x4588d7[_0x4588d7['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x4588d7[_0x4588d7[_0x5cd2e1(0x1f4)]=0x2713]=_0x5cd2e1(0x1f4),_0x4588d7[_0x4588d7[_0x5cd2e1(0x2d1)]=0x2714]=_0x5cd2e1(0x2d1),_0x4588d7[_0x4588d7[_0x5cd2e1(0x214)]=0x271a]=_0x5cd2e1(0x214),_0x4588d7[_0x4588d7['YUUMI_ASYNCIO_CANCELLED']=0x271b]=_0x5cd2e1(0x2f8),_0x4588d7[_0x4588d7['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x5cd2e1(0x20d),_0x4588d7[_0x4588d7[_0x5cd2e1(0x3e9)]=0x271d]=_0x5cd2e1(0x3e9),_0x4588d7[_0x4588d7[_0x5cd2e1(0x2a5)]=0x271e]=_0x5cd2e1(0x2a5),_0x4588d7[_0x4588d7['YUUMI_AI_RUN_FAILED']=0x271f]=_0x5cd2e1(0x1fc),_0x4588d7[_0x4588d7[_0x5cd2e1(0x3ec)]=0x2720]=_0x5cd2e1(0x3ec),_0x4588d7[_0x4588d7[_0x5cd2e1(0x3e7)]=0x2af9]=_0x5cd2e1(0x3e7),_0x4588d7[_0x4588d7[_0x5cd2e1(0x204)]=0x2ee1]=_0x5cd2e1(0x204),_0x4588d7[_0x4588d7[_0x5cd2e1(0x2f9)]=0x2ee2]=_0x5cd2e1(0x2f9),_0x4588d7[_0x4588d7['INVITE_CODE_REQUIRED']=0x2ee3]=_0x5cd2e1(0x327),_0x4588d7[_0x4588d7[_0x5cd2e1(0x1c6)]=0x2ee4]=_0x5cd2e1(0x1c6),_0x4588d7[_0x4588d7['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x5cd2e1(0x330),_0x4588d7[_0x4588d7[_0x5cd2e1(0x3ee)]=0x32c9]=_0x5cd2e1(0x3ee),_0x4588d7[_0x4588d7[_0x5cd2e1(0x1b6)]=0x32ca]=_0x5cd2e1(0x1b6),_0x4588d7[_0x4588d7[_0x5cd2e1(0x1ca)]=0x32cb]=_0x5cd2e1(0x1ca),_0x4588d7[_0x4588d7[_0x5cd2e1(0x3c8)]=0x36b1]=_0x5cd2e1(0x3c8),_0x4588d7[_0x4588d7[_0x5cd2e1(0x241)]=0x36b2]=_0x5cd2e1(0x241),_0x4588d7[_0x4588d7['ENTITLE_DUP_SUBSCRIPTION']=0x36b3]=_0x5cd2e1(0x392),_0x4588d7[_0x4588d7['PAYMENT_CHANNEL_NOT_SUPPORT']=0x36b4]='PAYMENT_CHANNEL_NOT_SUPPORT',_0x4588d7[_0x4588d7[_0x5cd2e1(0x1de)]=0x36b5]=_0x5cd2e1(0x1de),_0x4588d7[_0x4588d7[_0x5cd2e1(0x2d3)]=0x36b6]='ENTITLE_COUPON_EXPIRED',_0x4588d7[_0x4588d7[_0x5cd2e1(0x261)]=0x36b7]=_0x5cd2e1(0x261),_0x4588d7[_0x4588d7['ENTITLE_USE_COUPON_NOT_1ST_TRADE']=0x36b8]=_0x5cd2e1(0x3b9),_0x4588d7[_0x4588d7[_0x5cd2e1(0x2f0)]=0x3715]=_0x5cd2e1(0x2f0),_0x4588d7[_0x4588d7[_0x5cd2e1(0x1e3)]=0x3716]=_0x5cd2e1(0x1e3),_0x4588d7[_0x4588d7[_0x5cd2e1(0x2d4)]=0x3717]=_0x5cd2e1(0x2d4),_0x4588d7[_0x4588d7[_0x5cd2e1(0x2f4)]=0x37dd]=_0x5cd2e1(0x2f4),_0x4588d7[_0x4588d7['REDEMPTION_INVALID_CODE']=0x3a99]=_0x5cd2e1(0x408),_0x4588d7[_0x4588d7['REDEMPTION_CODE_INACTIVE']=0x3a9a]=_0x5cd2e1(0x1d3),_0x4588d7[_0x4588d7[_0x5cd2e1(0x1f9)]=0x3a9b]=_0x5cd2e1(0x1f9),_0x4588d7[_0x4588d7[_0x5cd2e1(0x2e8)]=0x3a9c]='REDEMPTION_CODE_NOT_STARTED',_0x4588d7[_0x4588d7['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x4588d7[_0x4588d7[_0x5cd2e1(0x3b3)]=0x3a9e]='REDEMPTION_USER_REDEEM_TIMES_EXCEED',_0x4588d7[_0x4588d7['REDEMPTION_CODE_HAS_BEEN_CREATED']=0x3a9f]=_0x5cd2e1(0x275),_0x4588d7[_0x4588d7[_0x5cd2e1(0x235)]=0x3e81]=_0x5cd2e1(0x235),_0x4588d7[_0x4588d7['UNRECOGNIZED']=-0x1]=_0x5cd2e1(0x1ce),_0x4588d7))(Z||{});function vn(_0x86b825){const _0x100ac4=_0x5cd2e1;var _0x1b1dfd,_0x52a2d8;const _0x497bee=(_0x1b1dfd=_0x86b825[_0x100ac4(0x25b)])==null?void 0x0:_0x1b1dfd[_0x100ac4(0x1f2)],_0x46b5bd=((_0x52a2d8=_0x86b825[_0x100ac4(0x25b)])==null?void 0x0:_0x52a2d8['totalFormulasToCalculate'])||0x0;return _0x497bee===_0x2d2b6f[_0x100ac4(0x2eb)]&&_0x46b5bd>0x0;}function pn(_0x607beb){const _0x31da42=_0x5cd2e1;return _0x607beb[_0x31da42(0x31a)]===_0x534541['SUCCESS'];}var On=Object[_0x5cd2e1(0x2c3)],Tn=(_0x3b9dfd,_0x1a45b7,_0x34b15e,_0x2a829b)=>{const _0x5bff17=_0x5cd2e1;for(var _0x3054ef=_0x2a829b>0x1?void 0x0:_0x2a829b?On(_0x1a45b7,_0x34b15e):_0x1a45b7,_0x1e1729=_0x3b9dfd[_0x5bff17(0x3ed)]-0x1,_0xd8559a;_0x1e1729>=0x0;_0x1e1729--)(_0xd8559a=_0x3b9dfd[_0x1e1729])&&(_0x3054ef=_0xd8559a(_0x3054ef)||_0x3054ef);return _0x3054ef;},P=(_0x1d714f,_0x170c6a)=>(_0x3fb104,_0x16335d)=>_0x170c6a(_0x3fb104,_0x16335d,_0x1d714f);const Cn='/universer-api/license/formula/limit/status',Rn=_0x5cd2e1(0x3c0),Dn=_0x5cd2e1(0x2fa);let Ie=class extends _0x570abd{constructor(_0x10e7c7,_0x97a78b,_0xb703b8,_0x1e3ee3,_0x2c32c2,_0x579a03,_0x45cf65){const _0x26c040=_0x5cd2e1;super(),_(this,_0x26c040(0x3e5),null),_(this,_0x26c040(0x2ad),0x0),_(this,'_currentUsage',0x0),_(this,_0x26c040(0x402),[]),_(this,_0x26c040(0x3f9),0x0),(this['_messageService']=_0x10e7c7,this[_0x26c040(0x1e8)]=_0x97a78b,this[_0x26c040(0x382)]=_0xb703b8,this['_httpService']=_0x1e3ee3,this[_0x26c040(0x256)]=_0x2c32c2,this['_logService']=_0x579a03,this[_0x26c040(0x2df)]=_0x45cf65,this[_0x26c040(0x277)]());}[_0x5cd2e1(0x277)](){const _0x5e4fce=_0x5cd2e1;this[_0x5e4fce(0x2cf)](this['_commandService'][_0x5e4fce(0x22d)]((_0x1e94fc,_0xfe1ca3)=>{const _0x169396=_0x5e4fce;var _0x42cbe2;if(_0x1e94fc['id']!==_0x212ff4['id'])return;const _0xf1cad5=_0x1e94fc[_0x169396(0x216)];if(!this[_0x169396(0x3f6)]((_0x42cbe2=_0xf1cad5[_0x169396(0x3af)])!=null?_0x42cbe2:[]))return;if(!this[_0x169396(0x3d4)]())throw this[_0x169396(0x2de)](_0x1e94fc,_0xfe1ca3),this[_0x169396(0x319)](),new _0x21dfe5();})),this[_0x5e4fce(0x2cf)](this['_commandService'][_0x5e4fce(0x32f)]((_0x1e5c08,_0x1cbf8a)=>{const _0x73f8bc=_0x5e4fce;if(_0x1e5c08['id']!==_0x3ce6bc['id'])return;const _0x3c6d32=_0x1e5c08[_0x73f8bc(0x216)];if(vn(_0x3c6d32)){const _0x5eaee5=_0x2bc8c1();this[_0x73f8bc(0x402)][_0x73f8bc(0x30a)](_0x5eaee5),this[_0x73f8bc(0x229)](_0x5eaee5);}else{if(pn(_0x3c6d32)&&this[_0x73f8bc(0x402)][_0x73f8bc(0x3ed)]>0x0){const _0x2bdf53=this[_0x73f8bc(0x402)][_0x73f8bc(0x397)]();this['_releaseCalculationLimit'](_0x2bdf53);}}}));}[_0x5cd2e1(0x1cc)](){const _0x514e49=_0x5cd2e1;super['dispose'](),this[_0x514e49(0x2d2)](),this[_0x514e49(0x402)]=[],this['_currentUsage']=0x0,this[_0x514e49(0x2ad)]=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x5cd2e1(0x2de)](_0x3919f5,_0x52d854){const _0x4df622=_0x5cd2e1;for(let _0x191c98=0x0;_0x191c98<0x1e;_0x191c98++)try{if(await this[_0x4df622(0x300)](),this[_0x4df622(0x3d4)]()){this[_0x4df622(0x1f0)](_0x3919f5,_0x52d854),this[_0x4df622(0x305)][_0x4df622(0x312)]({'content':this[_0x4df622(0x2df)]['t'](_0x4df622(0x1d0)),'type':_0x50fba4['Success']});return;}await new Promise(_0x162ec6=>{const _0x5d1f07=_0x4df622;this[_0x5d1f07(0x3e5)]=window[_0x5d1f07(0x304)](_0x162ec6,0x3e8);});}catch(_0x4f3927){this['_logService'][_0x4df622(0x35b)](_0x4f3927);}this[_0x4df622(0x305)]['show']({'content':this['_localeService']['t'](_0x4df622(0x2a6)),'type':_0x50fba4[_0x4df622(0x3c6)]});}[_0x5cd2e1(0x1f0)](_0x5e4848,_0x58e836){const _0x23c76c=_0x5cd2e1;try{this[_0x23c76c(0x1e8)]['executeCommand'](_0x5e4848['id'],_0x5e4848[_0x23c76c(0x216)],_0x58e836);}catch(_0x42382a){this[_0x23c76c(0x315)]['error'](_0x42382a);}}[_0x5cd2e1(0x29f)](_0x558eed,_0x1ba089){const _0x478f95=_0x5cd2e1;_0x1ba089<this[_0x478f95(0x3f9)]||(this[_0x478f95(0x3f9)]=_0x1ba089,this['_maxFormulaLimit']=Number[_0x478f95(0x3b1)](_0x558eed[_0x478f95(0x211)]),this['_currentUsage']=Number['parseInt'](_0x558eed[_0x478f95(0x406)]));}async[_0x5cd2e1(0x229)](_0x220eab){const _0x57ba12=_0x5cd2e1;var _0x3d2f59,_0x4901f6;const _0x10cc40=Date[_0x57ba12(0x245)]();try{const _0x4abd2d=((_0x3d2f59=this[_0x57ba12(0x382)][_0x57ba12(0x27b)](_0x3698b1))==null?void 0x0:_0x3d2f59[_0x57ba12(0x230)])||Rn,_0x45f48d=(await this[_0x57ba12(0x324)][_0x57ba12(0x2f7)](_0x4abd2d,{'body':JSON[_0x57ba12(0x359)]({'taskId':_0x220eab})}))[_0x57ba12(0x2ea)];if(((_0x4901f6=_0x45f48d[_0x57ba12(0x35b)])==null?void 0x0:_0x4901f6[_0x57ba12(0x1c0)])!==Z['OK'])return;this[_0x57ba12(0x29f)](_0x45f48d['limitInfo'],_0x10cc40);}catch(_0x324d88){this['_logService']['error'](_0x324d88);}}async['_getFormulaLimitStatus'](_0x2707a4){const _0x2f766e=_0x5cd2e1;var _0x325c0f,_0x55b1ad;const _0x18842c=Date['now']();try{const _0x579916=((_0x325c0f=this[_0x2f766e(0x382)]['getConfig'](_0x3698b1))==null?void 0x0:_0x325c0f[_0x2f766e(0x384)])||Cn,_0x1bde2b=_0x2707a4?_0x579916+_0x2f766e(0x373)+encodeURIComponent(_0x2707a4):_0x579916,_0x4ef764=(await this[_0x2f766e(0x324)][_0x2f766e(0x2b6)](_0x1bde2b))[_0x2f766e(0x2ea)];if(((_0x55b1ad=_0x4ef764[_0x2f766e(0x35b)])==null?void 0x0:_0x55b1ad[_0x2f766e(0x1c0)])!==Z['OK'])return;this[_0x2f766e(0x29f)](_0x4ef764['limitInfo'],_0x18842c);}catch(_0xebd2cd){this['_logService'][_0x2f766e(0x35b)](_0xebd2cd);}}async['_releaseCalculationLimit'](_0x4a396d){const _0x105d6a=_0x5cd2e1;var _0x154cb5,_0xe5df5c;const _0x67f2b7=Date[_0x105d6a(0x245)]();try{const _0x27a23e=((_0x154cb5=this[_0x105d6a(0x382)][_0x105d6a(0x27b)](_0x3698b1))==null?void 0x0:_0x154cb5[_0x105d6a(0x37d)])||Dn,_0x3d7705=(await this['_httpService'][_0x105d6a(0x2f7)](_0x27a23e,{'body':JSON[_0x105d6a(0x359)]({'taskId':_0x4a396d})}))[_0x105d6a(0x2ea)];if(((_0xe5df5c=_0x3d7705[_0x105d6a(0x35b)])==null?void 0x0:_0xe5df5c['code'])!==Z['OK'])return;this['_setFormulaLimitStatus'](_0x3d7705['limitInfo'],_0x67f2b7);}catch(_0x52b1df){this[_0x105d6a(0x315)][_0x105d6a(0x35b)](_0x52b1df);}}[_0x5cd2e1(0x3d4)](){const _0x32e185=_0x5cd2e1;return this[_0x32e185(0x2ad)]===0x0?!0x0:this[_0x32e185(0x2ad)]-this[_0x32e185(0x1fa)]>0x0;}[_0x5cd2e1(0x2d2)](){const _0x13fc9b=_0x5cd2e1;this['_pollingInterval']&&(clearTimeout(this[_0x13fc9b(0x3e5)]),this['_pollingInterval']=null);}[_0x5cd2e1(0x319)](){const _0x502aa0=_0x5cd2e1;this[_0x502aa0(0x305)][_0x502aa0(0x312)]({'content':this[_0x502aa0(0x2df)]['t'](_0x502aa0(0x25e)),'type':_0x50fba4[_0x502aa0(0x308)]});}[_0x5cd2e1(0x3f6)](_0x5c27f8){const _0x20a572=_0x5cd2e1;for(const _0x522c48 of _0x5c27f8){const {unitId:_0x40cbce,sheetId:_0x53621f,range:_0x3348ee}=_0x522c48,_0x48c723=this[_0x20a572(0x256)][_0x20a572(0x2c2)](_0x40cbce);if(!_0x48c723)continue;const _0x4e821c=_0x48c723['getSheetBySheetId'](_0x53621f);if(!_0x4e821c)continue;const _0x4c10f7=_0x4e821c[_0x20a572(0x2be)]();for(let _0x58c68e=_0x3348ee[_0x20a572(0x2ab)];_0x58c68e<=_0x3348ee[_0x20a572(0x399)];_0x58c68e++)for(let _0x33e31d=_0x3348ee[_0x20a572(0x255)];_0x33e31d<=_0x3348ee['endColumn'];_0x33e31d++){const _0x2b3343=_0x4c10f7[_0x20a572(0x28a)](_0x58c68e,_0x33e31d);if(_0x2b3343&&(_0x27ee34(_0x2b3343['f'])||_0x397057(_0x2b3343['si'])))return!0x0;}}return!0x1;}};Ie=Tn([P(0x0,_0xf4d66f(_0x347467)),P(0x1,_0x33726a),P(0x2,_0x19d257),P(0x3,_0xf4d66f(_0x43b379)),P(0x4,_0x296958),P(0x5,_0x3343ad),P(0x6,_0xf4d66f(_0x247dfc))],Ie);var Nn=Object[_0x5cd2e1(0x2c3)],bn=(_0x400542,_0x536858,_0x4093c0,_0x27f992)=>{const _0x2fd6ca=_0x5cd2e1;for(var _0x4c132e=_0x27f992>0x1?void 0x0:_0x27f992?Nn(_0x536858,_0x4093c0):_0x536858,_0x48d2a8=_0x400542[_0x2fd6ca(0x3ed)]-0x1,_0x308bf3;_0x48d2a8>=0x0;_0x48d2a8--)(_0x308bf3=_0x400542[_0x48d2a8])&&(_0x4c132e=_0x308bf3(_0x4c132e)||_0x4c132e);return _0x4c132e;},Ue=(_0x5e3232,_0x5d9b42)=>(_0x4aefca,_0x1a9f33)=>_0x5d9b42(_0x4aefca,_0x1a9f33,_0x5e3232);let He=class extends _0x570abd{constructor(_0x2ce241,_0x48fc2d,_0x14d681){const _0x5ca256=_0x5cd2e1;super(),_(this,_0x5ca256(0x1cd),new Map()),_(this,_0x5ca256(0x1bb),new Map()),_(this,_0x5ca256(0x278),!0x1),(this[_0x5ca256(0x382)]=_0x2ce241,this[_0x5ca256(0x2a7)]=_0x48fc2d,this[_0x5ca256(0x37f)]=_0x14d681);}[_0x5cd2e1(0x1ef)](){const _0x3091f8=_0x5cd2e1;this[_0x3091f8(0x278)]=!0x0;}[_0x5cd2e1(0x24b)](){const _0x429eb2=_0x5cd2e1;this[_0x429eb2(0x278)]=!0x1;}get[_0x5cd2e1(0x1b9)](){const _0x265f47=_0x5cd2e1;return this[_0x265f47(0x1bb)];}[_0x5cd2e1(0x1cc)](){const _0x267c0b=_0x5cd2e1;this['exhaustSavingTask']()[_0x267c0b(0x1b8)](()=>super['dispose']());}async[_0x5cd2e1(0x2a3)](_0x12e9b8){const _0xa70e92=_0x5cd2e1;return this[_0xa70e92(0x278)]?null:this[_0xa70e92(0x2a7)][_0xa70e92(0x3d1)](_0x5f3576(_0x12e9b8));}async[_0x5cd2e1(0x2ed)](_0x2eabc4,_0x477fdb){const _0x24377b=_0x5cd2e1;return!!this['_localStorageService'][_0x24377b(0x226)](_0x2eabc4,_0x477fdb);}[_0x5cd2e1(0x3eb)](_0x177ef0,_0x57578c,_0x428352,_0x5bd15b){const _0x57a81c=_0x5cd2e1,_0x2d17dd=this['_revisionService'][_0x57a81c(0x219)](_0x177ef0);this[_0x57a81c(0x1cd)][_0x57a81c(0x322)](_0x177ef0,{'unitID':_0x177ef0,'type':_0x57578c,'awaitingChangeset':_0x428352,'mutations':_0x5bd15b,'rev':_0x2d17dd}),this[_0x57a81c(0x1bb)]['has'](_0x177ef0)||this[_0x57a81c(0x210)](_0x177ef0);}[_0x5cd2e1(0x210)](_0x77f1cd){const _0x71f4a2=_0x5cd2e1,_0x40f9c=this[_0x71f4a2(0x253)]();_0x40f9c===0x0?this[_0x71f4a2(0x288)](_0x77f1cd):this[_0x71f4a2(0x1bb)][_0x71f4a2(0x322)](_0x77f1cd,setTimeout(()=>this['_saveCache'](_0x77f1cd),_0x40f9c));}[_0x5cd2e1(0x253)](){var _0x87c274;return(_0x87c274=this['_configService']['getConfig'](_0x63fea5))!=null?_0x87c274:_0x1a39b7;}[_0x5cd2e1(0x288)](_0x5b8ec8){const _0x3925f3=_0x5cd2e1,_0x553307=this[_0x3925f3(0x1bb)][_0x3925f3(0x2b6)](_0x5b8ec8);return _0x553307!==void 0x0&&window[_0x3925f3(0x35d)](_0x553307),this[_0x3925f3(0x2a7)][_0x3925f3(0x226)](_0x5f3576(_0x5b8ec8),this['_cachedData'][_0x3925f3(0x2b6)](_0x5b8ec8))[_0x3925f3(0x1b8)](()=>this[_0x3925f3(0x1bb)][_0x3925f3(0x35c)](_0x5b8ec8));}async[_0x5cd2e1(0x1e4)](){const _0x3453d9=_0x5cd2e1,_0x24a180=[];this[_0x3453d9(0x1bb)]['forEach']((_0x457af9,_0x47c8d0)=>{const _0x1de111=_0x3453d9;window[_0x1de111(0x35d)](_0x457af9),_0x24a180['push'](this['_saveCache'](_0x47c8d0)['then'](()=>{const _0x1bfd84=_0x1de111;this[_0x1bfd84(0x1bb)][_0x1bfd84(0x35c)](_0x47c8d0);}));}),await Promise[_0x3453d9(0x1ed)](_0x24a180);}};He=bn([Ue(0x0,_0x19d257),Ue(0x1,_0xa4ed63),Ue(0x2,_0xf4d66f(_0x51de99))],He);class Ln extends _0xb8a4ef{constructor(){const _0x2a0a46=_0x5cd2e1;super(),_(this,'urlChange$'),this[_0x2a0a46(0x3d0)]=_0x4ca1ea(window,_0x2a0a46(0x249))[_0x2a0a46(0x26f)](_0x27172d(this[_0x2a0a46(0x1fb)]),_0x52baa3(0x1),_0x185422(void 0x0));}[_0x5cd2e1(0x3cf)](_0x5ae9ed,_0x295e0b,_0x5f5940=!0x1){const _0x50d0aa=_0x5cd2e1,_0x26d7d1=new URL(window[_0x50d0aa(0x26a)][_0x50d0aa(0x2fd)]);_0x26d7d1[_0x50d0aa(0x244)][_0x50d0aa(0x322)](_0x5ae9ed,_0x295e0b),_0x5f5940?window['history'][_0x50d0aa(0x3ad)]('','',_0x26d7d1[_0x50d0aa(0x2da)]()):window['history']['pushState']('','',_0x26d7d1[_0x50d0aa(0x2da)]());}[_0x5cd2e1(0x345)](_0x479803,_0x10212c=!0x1){const _0x161767=_0x5cd2e1,_0x2e0890=new URL(window[_0x161767(0x26a)][_0x161767(0x2fd)]);_0x2e0890[_0x161767(0x244)][_0x161767(0x35c)](_0x479803),_0x10212c?window[_0x161767(0x1d8)][_0x161767(0x3ad)]('','',_0x2e0890['toString']()):window['history'][_0x161767(0x24d)]('','',_0x2e0890[_0x161767(0x2da)]());}['getParam'](_0x1b9d22){const _0x536578=_0x5cd2e1;var _0x435cf2;return(_0x435cf2=new URL(window[_0x536578(0x26a)][_0x536578(0x2fd)])[_0x536578(0x244)][_0x536578(0x2b6)](_0x1b9d22))!=null?_0x435cf2:void 0x0;}}var Un=Object[_0x5cd2e1(0x2d8)],Mn=Object[_0x5cd2e1(0x2c3)],An=(_0xd0cd02,_0x426a45,_0x2559ac)=>_0x426a45 in _0xd0cd02?Un(_0xd0cd02,_0x426a45,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2559ac}):_0xd0cd02[_0x426a45]=_0x2559ac,Pn=(_0xedd506,_0x518fef,_0x52c955,_0x4c30e2)=>{const _0x54d577=_0x5cd2e1;for(var _0x4b69bd=_0x4c30e2>0x1?void 0x0:_0x4c30e2?Mn(_0x518fef,_0x52c955):_0x518fef,_0x488bea=_0xedd506[_0x54d577(0x3ed)]-0x1,_0x2aae0a;_0x488bea>=0x0;_0x488bea--)(_0x2aae0a=_0xedd506[_0x488bea])&&(_0x4b69bd=_0x2aae0a(_0x4b69bd)||_0x4b69bd);return _0x4b69bd;},Me=(_0x49cb2c,_0x5ce196)=>(_0x24f291,_0x5f31f6)=>_0x5ce196(_0x24f291,_0x5f31f6,_0x49cb2c),wn=(_0x5aca21,_0x2f2d7f,_0x511190)=>An(_0x5aca21,_0x2f2d7f+'',_0x511190);const yn='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';let Ye=class extends _0x31ad12{constructor(_0x1d8d33=_t,_0x3dbf88,_0x36af07,_0x8970ee){const _0x43eb5c=_0x5cd2e1;super(),this['_config']=_0x1d8d33,this[_0x43eb5c(0x227)]=_0x3dbf88,this[_0x43eb5c(0x22c)]=_0x36af07,this[_0x43eb5c(0x382)]=_0x8970ee;const {..._0x2ba3b5}=_0x49c2ae({},_t,this[_0x43eb5c(0x3bc)]);this[_0x43eb5c(0x382)][_0x43eb5c(0x239)](hn,_0x2ba3b5);}['onStarting'](){const _0x4f2c57=_0x5cd2e1;this[_0x4f2c57(0x240)](),this[_0x4f2c57(0x375)]();}[_0x5cd2e1(0x1f5)](){const _0x5c6833=_0x5cd2e1;this[_0x5c6833(0x32c)]();}[_0x5cd2e1(0x240)](){const _0x32d715=_0x5cd2e1;var _0x5f4051;const _0x2ab428=[[Ke],[Ie],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x14224e,{'useClass':_0x1a0016}],[_0x2f092b,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0x32d715(0x3bc)][_0x32d715(0x35a)]&&_0x2ab428[_0x32d715(0x30a)]([le]),_0x2ed16c(this['_injector'],_0x272528(_0x2ab428,(_0x5f4051=this[_0x32d715(0x3bc)])==null?void 0x0:_0x5f4051[_0x32d715(0x380)]));}[_0x5cd2e1(0x32c)](){const _0x2af41b=_0x5cd2e1;this[_0x2af41b(0x2cf)](this['_renderManagerService'][_0x2af41b(0x1e9)](_0x298b40[_0x2af41b(0x2ba)],[Fe])),this[_0x2af41b(0x2cf)](this[_0x2af41b(0x227)][_0x2af41b(0x1e9)](_0x298b40[_0x2af41b(0x3ef)],[ke]));}[_0x5cd2e1(0x375)](){const _0x4a9165=_0x5cd2e1;_0x2e6ab8(this[_0x4a9165(0x22c)],[[H],[ae],[Se],[_e],[ce],[Ie]]),this[_0x4a9165(0x3bc)][_0x4a9165(0x35a)]&&_0x2e6ab8(this[_0x4a9165(0x22c)],[[le]]);}};wn(Ye,'pluginName',yn),Ye=Pn([_0x35d530(_0x34dff9),Me(0x1,_0x1313bc),Me(0x2,_0xf4d66f(_0xae1fe5)),Me(0x3,_0x19d257)],Ye);var $n=Object[_0x5cd2e1(0x2c3)],xn=(_0x2ea464,_0x436776,_0x40c9ff,_0x467a65)=>{const _0x3c3036=_0x5cd2e1;for(var _0x57500b=_0x467a65>0x1?void 0x0:_0x467a65?$n(_0x436776,_0x40c9ff):_0x436776,_0x2b1b6e=_0x2ea464[_0x3c3036(0x3ed)]-0x1,_0xc5889f;_0x2b1b6e>=0x0;_0x2b1b6e--)(_0xc5889f=_0x2ea464[_0x2b1b6e])&&(_0x57500b=_0xc5889f(_0x57500b)||_0x57500b);return _0x57500b;},J=(_0x466f29,_0x24cf58)=>(_0x594dca,_0x1119c5)=>_0x24cf58(_0x594dca,_0x1119c5,_0x466f29);let ut=class extends _0x2303b5{constructor(_0x228d8d,_0x476cd6,_0x23fba5,_0x26f409,_0x1afba5){super(_0x228d8d,_0x476cd6,_0x23fba5,_0x26f409,_0x1afba5);}async[_0x5cd2e1(0x20c)](_0x28b7b6){const _0xf97429=_0x5cd2e1,_0x1bd949=await this['_getSessionTicket'](),_0x3c7e0d=this[_0xf97429(0x2af)](_0x28b7b6,_0x1bd949);return this[_0xf97429(0x295)](_0x3c7e0d);}[_0x5cd2e1(0x2af)](_0x12262e,_0x10c406){const _0x51137a=_0x5cd2e1,_0x425329=typeof window>'u'?new URL(_0x12262e):new URL(_0x12262e,window[_0x51137a(0x26a)][_0x51137a(0x357)]);_0x425329[_0x51137a(0x244)]['set'](_0x51137a(0x38d),_0x10c406);const _0x47af51=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x51137a(0x26a)][_0x51137a(0x270)]);return _0x47af51['get'](_0x51137a(0x1c5))&&_0x425329[_0x51137a(0x244)][_0x51137a(0x322)](_0x51137a(0x1c5),_0x47af51[_0x51137a(0x2b6)](_0x51137a(0x1c5))),_0x425329['toString']();}async[_0x5cd2e1(0x3ff)](){const _0x308983=_0x5cd2e1;var _0x4ab30d,_0x166475,_0x1cbd1c;const _0x28bfcf=this['_configService']['getConfig'](_0x3698b1),_0x12e223=(_0x4ab30d=_0x28bfcf==null?void 0x0:_0x28bfcf[_0x308983(0x37c)])!=null?_0x4ab30d:_0x137a0e;return(_0x1cbd1c=(_0x166475=(await this['_httpService'][_0x308983(0x2b6)](_0x12e223,{'headers':{'Content-Type':_0x308983(0x398)}}))['body'])==null?void 0x0:_0x166475['ticket'])!=null?_0x1cbd1c:'';}};function _0x1402(){const _0xe7c6d6=['UNAUTHENTICATED','getUndoRedoMutationParamsCache','setUndoRedoMutationParamsCache','LICENSE_IMPORT_SIZE_EXCEEDED','REDEMPTION_CODE_NOT_STARTED','getTypeOfUnitAdded$','body','START_CALCULATION','unsubscribe','saveOfflineData','_onRefRangeChange','_status$','ENTITLE_CHAT_LIMIT_EXCEED','yellow.400','_online','CLOSE_ROOM','ENTITLE_NEED_BILLING_ADDRESS','save','clearInterval','post','YUUMI_ASYNCIO_CANCELLED','INVALID_INVITE_CODE','/universer-api/license/formula/limit/done','toRgbString','transformMutation','href','_removeCollabCursors','unit','_getFormulaLimitStatus','url(#off-line-icon_clip0_910_343)','COMPLETION_FINISHED','CHANGESET_REVISION_CONFILICT','setTimeout','_messageService','source','collabStatus.notCollab','Loading','defs','push','MoveRangeCommandId','Warning','getAncestorScale','351978wdGWmu','executeCommand','_document','_getScale','show','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','blue.400','_logService','getUnitStatus$','collab-client.tooltip.reconnect','APPLY_DUPLICATED','_showGuardMessage','functionsExecutedState','use','executionId','0\x200\x2017\x2016','sessionStatus$','getCurrentUnitForType','onLocalMutation','_hover','set','CURRENT_STATUS_CANNOT_OPERATE','_httpService','getColorFromTheme','m2Prime','INVITE_CODE_REQUIRED','_handleHover','init','getRenderById','svg','_registerRenderDependencies','_drawRectRange','univer-flex\x20univer-items-center','onCommandExecuted','INVITE_CODE_ALREADY_BOUND','_startSheetCollabCursor','_monkeyPatchLogService','_lastPointer','_context','collabCursorState$','doc.mutation.rich-text-editing','arc','newValue','column','CONFLICT','13091220MKzymP','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','entityInit$','OFFLINE','M0\x200H16V16H0z','_refRangeService','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_updateURLWithCurrentState','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','registerRefRange','removeParam','_docStateChangeManagerService','_dataLoaderService','getFocusedUnit','getCurrent','subscribe','subUnitId','UPDATE_CURSOR','1em','some','tag','133etCQqn','session.collaboration-timeout','roomMembers$','InsertRangeMoveDownCommandId','getUnitId','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','drawWith','origin','undoState','stringify','enableFrontendLog','error','delete','clearTimeout','_colorIndex','_cursors','_name','_handleEvent','row','_range','children','cursorInfo','_drawTextRange','_getMergeRange','getTypeOfUnitDisposed$','TEXT','_render','subunit','transformStateCache','key','366088EUjygV','/run/','collaboration.offline-data-not-saved','getStateCache','EMAIL_VERIFY_CODE_MISMATCH','?taskId=','selection','_initDependencies','APPLY_REJECT','whenReady','triggerDblclick','\x20at\x20','displayName','values','wsSessionTicketUrl','releaseFormulaLimitUrl','_localCacheService','_revisionService','override','join','_configService','translate(.97)','getFormulaLimitStatusUrl','loadUnit','SUBMIT_CHANGESET_TIMEOUT','RemoveColCommandId','_color','clipPath','contains','_shapes','lineTo','sessionTicket','transformByState','_cursorInfo$','subscribeEvent','range','ENTITLE_DUP_SUBSCRIPTION','top','transformSelections','getActiveSheet','_init','shift','application/json','endRow','_eventUnsubscribe','findNodePositionByCharIndex','...','LICENSE_EXPORT_SIZE_EXCEEDED','runOnServer','NOT_FOUND','docStateChange$','getRangePointData','1383255QfYoRA','_removeClearOtherTimer','[CollaborationDataLoaderController]','random','ENSURE_SNAPSHOT_EXECUTION','InsertRowCommandId','Failed','entries','_getAnchorBounding','unhandledrejection','_selfUnitIDs','replaceState','syncEditingCollabCursor','dirtyRanges','currentSkeleton$','parseInt','_setupSubUnitSync','REDEMPTION_USER_REDEEM_TIMES_EXCEED','unshift','_initEntityListener','name','collabStatus.offline','getUniverSheetInstance','ENTITLE_USE_COUPON_NOT_1ST_TRADE','YUUMI_UNABLE_LOAD_URL','UNDEFINED','_config','from','reason','currentTheme$','/universer-api/license/formula/limit/start','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','editingUnit','USER_IS_ANONYMOUS','_ensureSubject','setInterval','Error','setActiveRange','ENTITLE_CAN_NOT_BUY_LOWER_OTP','_colorAssignService','resize','startsWith','[Unhandled\x20Rejection]:\x20','_send','univer-mr-2\x20univer-flex\x20univer-text-xl','setParam','urlChange$','getItem','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_drawAnchor','_checkCalculationAvailable','_scheduleHeartbeat','storage','getActiveRange','getMemberID','restore','_toggleOffline','add','DeleteRangeMoveUpCommandId','next','session.will-retry','_unitStatus','debug','saveImage','collab-text-range-','requireSession','path','_pollingInterval','_updateSubUnitFromURLParams','PY_RUNTIME_SCRIPT_ERROR','bottom','YUUMI_ALL_TABLES_IS_INVALID','getDocRanges','updateOfflineData','YUUMI_CONNECTOR_URL_NOT_FOUND','length','WECHAT_HAS_BEEN_BOUND','UNIVER_SHEET','off-line-icon_clip0_910_343','message','_onCursorUpdate','getSkeleton','_initEvent','collaboration.single-unit.warning','_hasFormulaInDirtyRanges','LOGIN_TOKEN_PROCESSING_FAILED','includes','_lastResponseTimestamp','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_startDocCollabCursor','_collaborationSessionService','onPointerMove$','round','_getSessionTicket','getMergeData','_roomMembers$','_taskIds','_clearOtherTimers','CONNECTOR_DATA_TOO_LARGE','asObservable','currentUsage','_collabCursorController','REDEMPTION_INVALID_CODE','MOBILE_HAS_BEEN_BOUND','invokeId','then','saveTaskMap','Unknown\x20user','_saveTaskMap','DeleteRangeMoveLeftCommandId','assign','transformMutationsWithChangeset','_backgroundColor','code','28PAXiiu','transform','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','_textBubble','runId','USER_NOT_INVITED_CODE','symbol','ranges','[Window\x20Error]:\x20','EMAIL_HAS_BEEN_BOUND','NO_OTHER_CLIENTS_EDITING','dispose','_cachedData','UNRECOGNIZED','getSheetBySheetId','formula.calculation.started','SNAPSHOT_HAS_BEEN_REMOVED','text','REDEMPTION_CODE_INACTIVE','getCellPositionByOffset','makeDirty','addEventListener','SOCKET_FAILED_RETRY','history','xlink:href','hide','SOCKET_FAILED','min','jiqing.500','ENTITLE_INVALID_COUPON_CODE','_transformService','NOT_COLLAB','onPointerLeave$','_refreshCollabCursors','ENTITLE_REPORT_LIMIT_EXCEED','exhaustSavingTask','unitId','RemoveRowCommandId','_anchorDot','_commandService','registerRenderModule','isActive','AUTHORIZE_CODE_ILLEGAL','height','all','rgba(255,\x20255,\x20255,\x200.01)','disableLocalCache','_applyCommand','_onCursorDelete','stage','getVpScrollXYInfoByPosToVp','YUUMI_RATE_OVER_LIMIT','onRendered','currentColor','InsertRangeMoveRightCommandId','white','REDEMPTION_CODE_FULLY_REDEEMED','_currentUsage','dispose$','YUUMI_AI_RUN_FAILED','data','onTransformChange$','substring','RECT','_entities','TOO_MANY_REQUESTS','_hovered','INVITE_CODE_HAS_BEEN_UES','620znYOfg','_collaborationController','_urlService','_notificationService','cursorInfo$','PERMISSION_DENIED','green.600','createSocket','YUUMI_TABLE_NOT_FOUND_IN_UNIT','fillStyle','1650654sqIcAh','_scheduleSaving','maxFormulaLimit','lineno','/universer-api/frontend/logs','YUUMI_NO_CUBOID_FOR_QUESTION','idSuffix','params','has','width','getCurrentRevOfUnit','imageSourceType','_getSheetObject','setShapeProps','collabStatus.syncing','_docSkeleton','OffLineIcon','moveTo','addHandlerCallback','_initStatusListener','_cursor','url(#on-line-icon_clip0_910_349)','redoState','setItem','_renderManagerService','_heartbeatTimer','_startCalculationLimit','string','onPointerEnter$','_injector','beforeCommandExecuted','on-line-icon','attrs','startFormulaLimitUrl','sheetID','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_handleJoinEvent','APPLY_NON_SEQUENTIAL_REVISION','DATA_SOURCE_TOO_LARGE','6147xdfIRo','fillRule','with','setConfig','FETCH_MISS','removeEventListener','_updateLocalCursor','assignAColorForMemberID','getSheetId','_instanceService','_registerDependencies','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_handleHeartbeatEvent','_docClipboardService','searchParams','now','_hideTimer','size','off-line-icon','popstate','color','enableLocalCache','mutations','pushState','INVALID_ARGUMENT','transformRemoteChangeset','beginPath','7928322vLVEvu','LICENSE_DISTRO_REJECTED','_getSaveTimeout','_docSyncEditingCollabCursorService','startColumn','_univerInstanceService','measureText','forEach','createInstance','_initUnhandledRejectionListener','stageInfo','getViewport','_session','formula.calculation.waiting','_memberService','_collabSessionService','ENTITLE_COUPON_USED_UP','disposeUnit','_sheetSkeletonManagerService','actions','getRelativeToViewportCoord','_docTransformSelectionsService','complete','_uploadLog','_cursorShapes','location','event$','_labelPosition','USER_NOT_FOUND','MOBILE_VERIFY_CODE_MISMATCH','pipe','search','_updateCollabCursors','_collabCursorState$','getCollabCursors$','APPLY_PERMISSION_DENIED','REDEMPTION_CODE_HAS_BEEN_CREATED','isArray','_initCommandInterceptor','_disabled','black','_docTransformIMECacheService','getConfig','fill','_transformHistoryAndStateStack','OTHER_CLIENTS_EDITING','getCurrentSelections','_draw','22JfrVml','PENDING','collab-rect-range-','_id','max','LOGIN_FAILED','unitID','_saveCache','ALREADY_EXISTS','getValue','div','hovered','roomMembers','ONLINE','bind','purple.300','_transformPreviousActiveRange','_themeService','m1Prime','eventID','_doCreateSocket','_transformUndoRedoStack','USERS_LEAVE','font','stack','map','parse','_handleLeaveEvent','colorChannel1','collaboration-client-ui.config','_setFormulaLimitStatus','deepClone','textRanges','MUTATION','loadOfflineData','collabStatus.fetchMiss','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','formula.calculation.unable','_localStorageService','filename','collab-text-anchor-','_initUserListener','startRow','InsertColCommandId','_maxFormulaLimit','http://www.w3.org/2000/svg','_createSocketURL','current','_unitOnClients','_docSkeletonManagerService','onMouseMove','_scheduleClearOtherTimer','_initCommandExecutedListener','get','[LogService\x20Error]:\x20','_docTransformStateCacheService','_anchor','UNIVER_DOC','_scene','setAlpha','send','getCellMatrix','_imageIoService','JOIN_ROOM_FAILED','_entityInit$','getUnit','getOwnPropertyDescriptor','OnLineIcon','labelPosition','type','permission.content','_memberID','SNAPSHOT_INVALID_SNAPSHOT','replace','flatMap','APPLY_REVISION_CONFILICT','ERROR_AGAIN','addClipboardHook','disposeWithMe','activeSheet$','YUUMI_SUBSCRIPTION_NOT_FOUND','_clearPolling','ENTITLE_COUPON_EXPIRED','ENTITLE_INSUFFICIENT_QUOTA','_uiPartsService','UniverIcon','fillText','defineProperty','_toggleOnline','toString','getMember','getParam','addObject','_checkAndWaitForCalculationPermission','_localeService','_setupBeforeClosingHandler','_beforeCloseService','none','_initWindowErrorListener'];_0x1402=function(){return _0xe7c6d6;};return _0x1402();}ut=xn([J(0x0,_0xf4d66f(_0xae1fe5)),J(0x1,_0xf4d66f(_0x43b379)),J(0x2,_0x19d257),J(0x3,_0x3343ad),J(0x4,_0x20d4c6)],ut);var Bn=Object[_0x5cd2e1(0x2c3)],Fn=(_0x52b728,_0xc7bded,_0x2007be,_0x5090c5)=>{const _0x4d3570=_0x5cd2e1;for(var _0x2013ed=_0x5090c5>0x1?void 0x0:_0x5090c5?Bn(_0xc7bded,_0x2007be):_0xc7bded,_0x562d45=_0x52b728[_0x4d3570(0x3ed)]-0x1,_0x139543;_0x562d45>=0x0;_0x562d45--)(_0x139543=_0x52b728[_0x562d45])&&(_0x2013ed=_0x139543(_0x2013ed)||_0x2013ed);return _0x2013ed;},Ae=(_0xa4136d,_0x4f79ac)=>(_0x43eb18,_0x38a746)=>_0x4f79ac(_0x43eb18,_0x38a746,_0xa4136d);let dt=class extends _0x570abd{constructor(_0x3073ff,_0x3f251c,_0x58f3ec){const _0x199612=_0x5cd2e1;super(),this[_0x199612(0x23f)]=_0x3073ff,this[_0x199612(0x324)]=_0x3f251c,this['_configService']=_0x58f3ec;}async[_0x5cd2e1(0x39e)](_0x20219a,_0x1489be,_0x402bd7,..._0x501a12){const _0x1885ae=_0x5cd2e1;var _0x2e4362,_0x1fdb5a,_0xf1a8a4,_0x378b47;const _0x314ed6=this[_0x1885ae(0x23f)]['getFocusedUnit']();if(!_0x314ed6)throw new Error(_0x1885ae(0x3fa));const _0x5c038a=((_0x2e4362=this[_0x1885ae(0x382)][_0x1885ae(0x27b)](_0x25f49d))!=null?_0x2e4362:_0x5ac840)+'/'+_0x20219a+_0x1885ae(0x36f)+_0x1489be,_0x2f02ae=new URL(window[_0x1885ae(0x26a)]['href']),_0x175a47={'scriptId':_0x20219a,'runId':(_0x1fdb5a=_0x2f02ae['searchParams'][_0x1885ae(0x2b6)]('runId'))!=null?_0x1fdb5a:'','function':_0x1489be,'unitId':_0x314ed6['getUnitId'](),'argsOfFunction':JSON[_0x1885ae(0x359)](_0x501a12),'invokeId':(_0xf1a8a4=_0x402bd7[_0x1885ae(0x1b7)])!=null?_0xf1a8a4:'','executionId':(_0x378b47=_0x402bd7[_0x1885ae(0x31c)])!=null?_0x378b47:''};try{const _0x18c2b1=await this[_0x1885ae(0x324)][_0x1885ae(0x2f7)](_0x5c038a,{'body':_0x175a47});return _0x18c2b1[_0x1885ae(0x2ea)][_0x1885ae(0x35b)]&&_0x18c2b1[_0x1885ae(0x2ea)][_0x1885ae(0x35b)]['code']!==Z['OK']?_0x1885ae(0x3a8):_0x18c2b1[_0x1885ae(0x2ea)]['result'];}catch{return _0x1885ae(0x3a8);}}};dt=Fn([Ae(0x0,_0x296958),Ae(0x1,_0xf4d66f(_0x43b379)),Ae(0x2,_0x19d257)],dt);const St=0x7530,It='ACTIVE_UNIT_EVENT_CHANNEL';class rr extends _0x570abd{constructor(){const _0x47f578=_0x5cd2e1;super(),_(this,_0x47f578(0x284),_0x2bc8c1()),_(this,'_selfUnitIDs',new Set()),_(this,_0x47f578(0x2b1),new Map()),_(this,_0x47f578(0x228),null),_(this,_0x47f578(0x403),new Map()),_(this,'_unitStatus',new Map()),this[_0x47f578(0x396)]();}[_0x5cd2e1(0x1cc)](){const _0x409cfd=_0x5cd2e1;super[_0x409cfd(0x1cc)](),this[_0x409cfd(0x403)]['forEach']((_0x3f87f9,_0x5bd5e1)=>this[_0x409cfd(0x3a3)](_0x5bd5e1)),this[_0x409cfd(0x228)]&&window['clearInterval'](this['_heartbeatTimer']);}[_0x5cd2e1(0x316)](_0x52df41){const _0x3cf287=_0x5cd2e1;return this['_ensureSubject'](_0x52df41)[_0x3cf287(0x26f)](_0x4f772a());}[_0x5cd2e1(0x3c2)](_0x2f01d5){const _0x3e4ba2=_0x5cd2e1;this[_0x3e4ba2(0x3ac)][_0x3e4ba2(0x247)]===0x0&&this[_0x3e4ba2(0x3d5)](),this[_0x3e4ba2(0x3ac)]['add'](_0x2f01d5),this[_0x3e4ba2(0x3cd)]({'type':0x0,'memberID':this[_0x3e4ba2(0x284)],'unitIDs':[_0x2f01d5],'isForwarded':!0x1});}[_0x5cd2e1(0x262)](_0x19f83d){const _0x4c3f64=_0x5cd2e1;this['_selfUnitIDs'][_0x4c3f64(0x35c)](_0x19f83d),this['_selfUnitIDs'][_0x4c3f64(0x247)]===0x0&&this[_0x4c3f64(0x228)]&&window[_0x4c3f64(0x2f6)](this[_0x4c3f64(0x228)]);}['_init'](){const _0x2717bc=_0x5cd2e1;this[_0x2717bc(0x2cf)](_0x1182c8(_0x4ca1ea(window,_0x2717bc(0x3d6))[_0x2717bc(0x34a)](_0x967d35=>{const _0x8ddcb9=_0x2717bc;if(_0x967d35[_0x8ddcb9(0x36d)]!==It||!_0x967d35['newValue'])return;const _0x459a50=JSON[_0x8ddcb9(0x29b)](_0x967d35[_0x8ddcb9(0x338)]);this['_handleEvent'](_0x459a50);}))),window[_0x2717bc(0x1d6)]('unload',()=>this[_0x2717bc(0x3cd)]({'type':0x1,'memberID':this[_0x2717bc(0x284)],'unitIDs':Array[_0x2717bc(0x3bd)](this[_0x2717bc(0x3ac)])}));}[_0x5cd2e1(0x361)](_0x540f87){const _0x4877d9=_0x5cd2e1;switch(_0x540f87['type']){case 0x0:this['_handleJoinEvent'](_0x540f87);break;case 0x1:this[_0x4877d9(0x29c)](_0x540f87);break;case 0x2:this[_0x4877d9(0x242)](_0x540f87);break;}}[_0x5cd2e1(0x233)](_0x2cdd99){const _0x3f4a2f=_0x5cd2e1,{unitIDs:_0x2fe9fe,memberID:_0x4836b8,isForwarded:_0x2b44d5}=_0x2cdd99;_0x2fe9fe[_0x3f4a2f(0x258)](_0x473b26=>{const _0x211c49=_0x3f4a2f;if(!_0x2b44d5&&this[_0x211c49(0x2b1)][_0x211c49(0x217)](_0x473b26)&&this[_0x211c49(0x3c4)](_0x473b26)[_0x211c49(0x3dd)](_0x522c35['OTHER_CLIENTS_EDITING']),!this[_0x211c49(0x2b1)][_0x211c49(0x217)](_0x473b26)||!this['_unitOnClients'][_0x211c49(0x2b6)](_0x473b26)[_0x211c49(0x217)](_0x4836b8)){const _0x5796dd=this[_0x211c49(0x2b1)]['get'](_0x473b26)||new Set();_0x5796dd['add'](_0x4836b8),this[_0x211c49(0x2b1)]['set'](_0x473b26,_0x5796dd),this[_0x211c49(0x2b4)](_0x4836b8);}}),_0x2b44d5||this[_0x3f4a2f(0x3cd)]({'type':0x0,'memberID':this[_0x3f4a2f(0x284)],'unitIDs':[...this[_0x3f4a2f(0x3ac)]],'isForwarded':!0x0});}[_0x5cd2e1(0x2b4)](_0x120ccd){const _0x83f568=_0x5cd2e1;this[_0x83f568(0x3a3)](_0x120ccd);const _0x5b7cdb=window[_0x83f568(0x304)](()=>{const _0x43a36f=_0x83f568;this['_unitOnClients'][_0x43a36f(0x258)](_0x56bae5=>{const _0x196ea7=_0x43a36f;_0x56bae5[_0x196ea7(0x35c)](_0x120ccd);});},St*0x2);this[_0x83f568(0x403)][_0x83f568(0x322)](_0x120ccd,_0x5b7cdb);}['_removeClearOtherTimer'](_0xac1503){const _0x2133ec=_0x5cd2e1;if(this[_0x2133ec(0x403)][_0x2133ec(0x217)](_0xac1503)){const _0x403673=this[_0x2133ec(0x403)][_0x2133ec(0x2b6)](_0xac1503);_0x403673&&window['clearTimeout'](_0x403673),this['_clearOtherTimers'][_0x2133ec(0x322)](_0xac1503,null);}}[_0x5cd2e1(0x29c)](_0x5c6470){const _0x5339f2=_0x5cd2e1,{memberID:_0x29b9da,unitIDs:_0x50da8f}=_0x5c6470;_0x50da8f[_0x5339f2(0x258)](_0x2e9913=>{const _0x450d68=_0x5339f2;var _0x3935e7;const _0x490501=this[_0x450d68(0x2b1)]['get'](_0x2e9913);_0x490501&&(_0x490501[_0x450d68(0x35c)](_0x29b9da),(_0x3935e7=this[_0x450d68(0x3c4)](_0x2e9913))==null||_0x3935e7[_0x450d68(0x3dd)](_0x490501[_0x450d68(0x247)]===0x0?_0x522c35[_0x450d68(0x1cb)]:_0x522c35[_0x450d68(0x27e)]));}),this['_removeClearOtherTimer'](_0x29b9da);}[_0x5cd2e1(0x242)](_0x2a5c68){const _0x1fa67a=_0x5cd2e1;this[_0x1fa67a(0x2b4)](_0x2a5c68['memberID']);}[_0x5cd2e1(0x3cd)](_0x53fbf7){const _0x5f53a9=_0x5cd2e1;localStorage[_0x5f53a9(0x226)](It,JSON[_0x5f53a9(0x359)](_0x53fbf7));}[_0x5cd2e1(0x3d5)](){const _0x572018=_0x5cd2e1;this[_0x572018(0x228)]=window[_0x572018(0x3c5)](()=>{const _0x3e6e42=_0x572018;this[_0x3e6e42(0x3cd)]({'type':0x2,'memberID':this['_id']});},St);}[_0x5cd2e1(0x3c4)](_0x49ce29){const _0xe81ed5=_0x5cd2e1;return this[_0xe81ed5(0x3df)][_0xe81ed5(0x217)](_0x49ce29)||this['_unitStatus']['set'](_0x49ce29,new _0x59b9f6(_0x522c35['NO_OTHER_CLIENTS_EDITING'])),this['_unitStatus'][_0xe81ed5(0x2b6)](_0x49ce29);}}export{ut as BrowserCollaborationSocketService,ce as CollaborationDataLoaderController,ae as DesktopCollaborationStatusDisplayController,yt as IURLService,dt as RemoteUniscriptService,tn as SheetCollabCursorShape,Ye as UniverCollaborationClientUIPlugin,rr as WebBrowserSingleActiveUnitService,Ln as WebURLService};