@univerjs-pro/collaboration-client-ui 0.12.0 → 0.12.1

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 (55) 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/types/controllers/config.schema.d.ts +5 -0
  41. package/lib/types/controllers/frontend-log/frontend-log.controller.d.ts +17 -0
  42. package/lib/umd/facade.js +1 -1
  43. package/lib/umd/index.js +1 -1
  44. package/lib/umd/locale/ca-ES.js +1 -1
  45. package/lib/umd/locale/en-US.js +1 -1
  46. package/lib/umd/locale/es-ES.js +1 -1
  47. package/lib/umd/locale/fa-IR.js +1 -1
  48. package/lib/umd/locale/fr-FR.js +1 -1
  49. package/lib/umd/locale/ja-JP.js +1 -1
  50. package/lib/umd/locale/ko-KR.js +1 -1
  51. package/lib/umd/locale/ru-RU.js +1 -1
  52. package/lib/umd/locale/vi-VN.js +1 -1
  53. package/lib/umd/locale/zh-CN.js +1 -1
  54. package/lib/umd/locale/zh-TW.js +1 -1
  55. package/package.json +16 -16
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x517afa=_0x4ad2;(function(_0x59798c,_0x421909){const _0x7bd44a=_0x4ad2,_0x1dd0be=_0x59798c();while(!![]){try{const _0x5767fc=parseInt(_0x7bd44a(0x82))/0x1+parseInt(_0x7bd44a(0x169))/0x2*(parseInt(_0x7bd44a(0x1f3))/0x3)+-parseInt(_0x7bd44a(0x142))/0x4+parseInt(_0x7bd44a(0x156))/0x5*(parseInt(_0x7bd44a(0x117))/0x6)+parseInt(_0x7bd44a(0x1b1))/0x7*(-parseInt(_0x7bd44a(0x157))/0x8)+-parseInt(_0x7bd44a(0x294))/0x9+parseInt(_0x7bd44a(0x22b))/0xa;if(_0x5767fc===_0x421909)break;else _0x1dd0be['push'](_0x1dd0be['shift']());}catch(_0xd5b0a5){_0x1dd0be['push'](_0x1dd0be['shift']());}}}(_0x1e85,0x623f9));var Ft=Object[_0x517afa(0xa8)],kt=(_0x5a2880,_0x4a8471,_0x3d2c14)=>_0x4a8471 in _0x5a2880?Ft(_0x5a2880,_0x4a8471,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3d2c14}):_0x5a2880[_0x4a8471]=_0x3d2c14,l=(_0x9a81f7,_0x2cf990,_0x46698b)=>kt(_0x9a81f7,typeof _0x2cf990!='symbol'?_0x2cf990+'':_0x2cf990,_0x46698b);import{jsx as _0x277ba7,jsxs as _0x1bde0f}from'react/jsx-runtime';import{CollaborationStatus as _0x5039cf,CollaborationSessionService as _0x2c25d7,CollaborationController as _0x477518,DataLoaderService as _0x2a1a88,MemberService as _0x4164ee,SessionStatus as _0x309895,ILocalCacheService as _0x190965,CollaborationUIEventService as _0x3671b7,CollaborationUIEventId as _0x175362,DocCollaborationEntity as _0x39449e,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x174b68,getLocalCacheKey as _0x439647,LOCAL_CACHE_INTERVAL as _0x5d3637,LOCAL_CACHE_INTERVAL_KEY as _0x141eb8,UniverCollaborationClientPlugin as _0x246cf1,CollaborationSocketService as _0x5c223d,DEFAULT_WS_SESSION_TICKET_URL as _0x84448e,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x5be24c,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x2db30,UnitStatus as _0x182996}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x3ae72e,IUniverInstanceService as _0x30c7ee,Inject as _0x388393,Injector as _0x258030,Disposable as _0x4057f7,createIdentifier as _0x39e1c8,ILogService as _0x46da51,ICommandService as _0x4ab028,Optional as _0x4ea5e5,RxDisposable as _0x518648,Workbook as _0x2a5c81,DOC_RANGE_TYPE as _0x13dbee,debounce as _0x5465f7,Rectangle as _0x54ee1a,DisposableCollection as _0x57a43d,toDisposable as _0x5d128c,UniverInstanceType as _0x4ed0b3,generateRandomId as _0x24b861,COLORS as _0x520d70,ColorKit as _0x27dda8,ThemeService as _0x4d7d85,fromEventSubject as _0xdcf17c,Tools as _0x24fd68,CommandType as _0x18ebdb,IConfigService as _0x6a4de3,CanceledError as _0x458890,isFormulaString as _0x434ee5,isFormulaId as _0x2fae16,ILocalStorageService as _0xbe08f5,DependentOn as _0x2422e9,Plugin as _0x576e66,merge as _0xff84a3,registerDependencies as _0x183763,mergeOverrideWithDependencies as _0x328036,touchDependencies as _0x36d93c}from'@univerjs/core';import{useObservable as _0x42cc23,useDependency as _0x5058dd,IUIPartsService as _0x396b61,BuiltInUIPart as _0x606109,connectInjector as _0x2a674f,IBeforeCloseService as _0x1e0e35,IMessageService as _0x341740,INotificationService as _0x577074}from'@univerjs/ui';import{BehaviorSubject as _0x340b13,switchMap as _0x1308ff,of as _0x38b4ff,takeUntil as _0xd33296,debounceTime as _0x59a831,Subject as _0x25ec2f,filter as _0x4edfe7,merge as _0x2f4c1a,combineLatest as _0x41429a,fromEvent as _0x258e3e,shareReplay as _0x4adcb8,mapTo as _0x487335,distinctUntilChanged as _0xfe7dd9}from'rxjs';import{Tooltip as _0x576972,clsx as _0x116133,MessageType as _0x43794b}from'@univerjs/design';import{useRef as _0x23f6bc,createElement as _0x217658,forwardRef as _0x33f249,useCallback as _0x3c5a52}from'react';import{IRemoteInstanceService as _0x4dada7}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x3fab11,RefRangeService as _0x2c0610,SetSelectionsOperation as _0x24b6af,SheetsSelectionsService as _0x4b8257,EffectRefRangId as _0x3786ea,handleIRemoveRow as _0x559731,handleIRemoveCol as _0x1788e2,handleMoveRange as _0x443ce7,handleInsertRow as _0x223b9d,handleInsertRangeMoveRight as _0x516fbd,handleInsertRangeMoveDown as _0x2cc346,handleInsertCol as _0x11dfa9,handleDeleteRangeMoveUp as _0x1cffba,handleDeleteRangeMoveLeft as _0x3b4431,runRefRangeMutations as _0x575db5}from'@univerjs/sheets';import{Shape as _0x965c3a,Rect as _0x54f591,getColor as _0x4d4f6a,RegularPolygon as _0x6dd2a8,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x2dd456,Vector2 as _0x4ad7c8,SHEET_VIEWPORT_KEY as _0x1f1ace,IRenderManagerService as _0x7acb9e}from'@univerjs/engine-render';import{HTTPService as _0x345138,ISocketService as _0x5adab9,WebSocketService as _0x558214}from'@univerjs/network';import{IDocClipboardService as _0xaa9e07,NodePositionConvertToCursor as _0x22b823,NodePositionConvertToRectRange as _0x4d41d5,TEXT_RANGE_LAYER_INDEX as _0x57eea3,SetDocZoomRatioOperation as _0x2a3ec3,DocIMEInputManagerService as _0x30a772,DocStateChangeManagerService as _0x3d7f81}from'@univerjs/docs-ui';import{IImageIoService as _0x32f1bc}from'@univerjs/drawing';import{ITransformService as _0x2e28c1,CollaborationEvent as _0x2aa15d,isTransformMutationFailure as _0x18536c,isTransformMutationsWithChangesetSuccess as _0x2ef47c,RevisionService as _0x1fb0da,ISnapshotServerService as _0x3419af}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x1ec7e1,RichTextEditingMutation as _0x3321ec,DocSelectionManagerService as _0x59d42f,DocSkeletonManagerService as _0x162c1a}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x2f7970,serializeRangeWithSheet as _0x1ae78a,FormulaExecuteStageType as _0x93f55d,FormulaExecutedStateType as _0x1da652,SetFormulaCalculationStartMutation as _0xa507f6,SetFormulaCalculationNotificationMutation as _0x3f8c9d}from'@univerjs/engine-formula';import{map as _0x4ee011,filter as _0x4cc029,throttleTime as _0x1a7dfa,takeUntil as _0x2533f0,switchMap as _0x23dfcb}from'rxjs/operators';import{SheetSkeletonManagerService as _0x4703f3,getCoordByCell as _0x10d1ca,getSheetObject as _0x3aa887}from'@univerjs/sheets-ui';function Ve({ref:_0x5bfeab,..._0xa6fbcf}){const _0x3d6d95=_0x517afa,{icon:_0x24d3dd,id:_0x3013c6,className:_0x52f677,extend:_0xfaa4c7,..._0x4b48be}=_0xa6fbcf,_0xaf6e07=('univerjs-icon\x20univerjs-icon-'+_0x3013c6+'\x20'+(_0x52f677||''))['trim'](),_0x2bfcde=_0x23f6bc('_'+gi());return Ut(_0x24d3dd,''+_0x3013c6,{'defIds':_0x24d3dd[_0x3d6d95(0x1ef)],'idSuffix':_0x2bfcde['current']},{'ref':_0x5bfeab,'className':_0xaf6e07,..._0x4b48be},_0xfaa4c7);}function Ut(_0x5e6d66,_0x552b58,_0x47df7d,_0x14c2cf,_0xf0a37d){const _0xa2f119=_0x517afa;return _0x217658(_0x5e6d66['tag'],{'key':_0x552b58,...mi(_0x5e6d66,_0x47df7d,_0xf0a37d),..._0x14c2cf},(fi(_0x5e6d66,_0x47df7d)[_0xa2f119(0x1af)]||[])[_0xa2f119(0x193)]((_0x4155a2,_0x190190)=>Ut(_0x4155a2,_0x552b58+'-'+_0x5e6d66[_0xa2f119(0x264)]+'-'+_0x190190,_0x47df7d,void 0x0,_0xf0a37d)));}function mi(_0x262718,_0x33ba4e,_0x180ede){const _0xda6143=_0x517afa,_0x22ab1b={..._0x262718['attrs']};_0x180ede!=null&&_0x180ede['colorChannel1']&&_0x22ab1b['fill']===_0xda6143(0x106)&&(_0x22ab1b['fill']=_0x180ede[_0xda6143(0x106)]),_0x262718[_0xda6143(0x264)]===_0xda6143(0x197)&&_0x22ab1b['id']&&(_0x22ab1b['id']=_0x22ab1b['id']+_0x33ba4e[_0xda6143(0x276)]),Object[_0xda6143(0x1dd)](_0x22ab1b)[_0xda6143(0x17f)](([_0x575f0e,_0x5be218])=>{const _0x24e62b=_0xda6143;_0x575f0e===_0x24e62b(0x197)&&typeof _0x5be218==_0x24e62b(0x149)&&(_0x22ab1b[_0x575f0e]=_0x5be218[_0x24e62b(0x216)](/url\(#(.*)\)/,_0x24e62b(0x9d)+_0x33ba4e[_0x24e62b(0x276)]+')'));});const {defIds:_0x9363d7}=_0x33ba4e;return!_0x9363d7||_0x9363d7[_0xda6143(0x1d1)]===0x0||(_0x262718[_0xda6143(0x264)]===_0xda6143(0x17e)&&_0x22ab1b['xlink:href']&&(_0x22ab1b[_0xda6143(0xa1)]=_0x22ab1b['xlink:href']+_0x33ba4e[_0xda6143(0x276)]),Object[_0xda6143(0x1dd)](_0x22ab1b)['forEach'](([_0xa97d55,_0x2f4f30])=>{const _0x33a548=_0xda6143;typeof _0x2f4f30==_0x33a548(0x149)&&(_0x22ab1b[_0xa97d55]=_0x2f4f30['replace'](/url\(#(.*)\)/,_0x33a548(0x9d)+_0x33ba4e[_0x33a548(0x276)]+')'));})),_0x22ab1b;}function fi(_0x5b5c03,_0x3bd42f){const _0x3913fe=_0x517afa;var _0x5e1ae8;const {defIds:_0x406ce6}=_0x3bd42f;return!_0x406ce6||_0x406ce6['length']===0x0?_0x5b5c03:_0x5b5c03[_0x3913fe(0x264)]===_0x3913fe(0x120)&&((_0x5e1ae8=_0x5b5c03['children'])!=null&&_0x5e1ae8[_0x3913fe(0x1d1)])?{..._0x5b5c03,'children':_0x5b5c03[_0x3913fe(0x1af)][_0x3913fe(0x193)](_0x31735e=>typeof _0x31735e[_0x3913fe(0x1db)]['id']==_0x3913fe(0x149)&&_0x406ce6&&_0x406ce6[_0x3913fe(0x170)](_0x31735e[_0x3913fe(0x1db)]['id'])?{..._0x31735e,'attrs':{..._0x31735e[_0x3913fe(0x1db)],'id':_0x31735e['attrs']['id']+_0x3bd42f[_0x3913fe(0x276)]}}:_0x31735e)}:_0x5b5c03;}function gi(){const _0xad11d6=_0x517afa;return Math['random']()[_0xad11d6(0xee)](0x24)[_0xad11d6(0x109)](0x2,0x8);}Ve[_0x517afa(0x114)]='UniverIcon';const vi={'tag':'svg','attrs':{'xmlns':_0x517afa(0x1d0),'fill':'none','viewBox':_0x517afa(0xbc),'width':_0x517afa(0xe4),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x517afa(0x172)},'children':[{'tag':_0x517afa(0x10a),'attrs':{'stroke':_0x517afa(0x192),'d':_0x517afa(0x27c),'strokeLinecap':'round','strokeLinejoin':_0x517afa(0xcb),'strokeWidth':1.2}}]},{'tag':_0x517afa(0x120),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x517afa(0x9e)},'children':[{'tag':_0x517afa(0x10a),'attrs':{'fill':'white','d':_0x517afa(0x7a)}}]}]}],'defIds':[_0x517afa(0x9e)]},Lt=_0x33f249(function(_0x389dae,_0x48818b){const _0x460a5e=_0x517afa;return _0x217658(Ve,Object['assign']({},_0x389dae,{'id':_0x460a5e(0xea),'ref':_0x48818b,'icon':vi}));});Lt['displayName']=_0x517afa(0x13f);const Ei={'tag':_0x517afa(0x6f),'attrs':{'xmlns':_0x517afa(0x1d0),'fill':'none','viewBox':_0x517afa(0xb1),'width':_0x517afa(0xe4),'height':_0x517afa(0xe4)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x517afa(0x10a),'attrs':{'stroke':_0x517afa(0x192),'d':_0x517afa(0xdc),'strokeLinecap':_0x517afa(0xcb),'strokeLinejoin':_0x517afa(0xcb),'strokeWidth':1.2}}]},{'tag':_0x517afa(0x120),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x517afa(0xde)},'children':[{'tag':_0x517afa(0x10a),'attrs':{'fill':'white','d':'M0\x200H16V16H0z','transform':_0x517afa(0x152)}}]}]}],'defIds':[_0x517afa(0xde)]},Mt=_0x33f249(function(_0x3a1bff,_0x1ff957){const _0x46b02b=_0x517afa;return _0x217658(Ve,Object[_0x46b02b(0x1bd)]({},_0x3a1bff,{'id':_0x46b02b(0xa9),'ref':_0x1ff957,'icon':Ei}));});Mt[_0x517afa(0x114)]='OnLineIcon';function pi(_0x246a7c){const _0x458919=_0x517afa;switch(_0x246a7c){case _0x5039cf['OFFLINE']:return _0x458919(0xfc);case _0x5039cf[_0x458919(0x275)]:return _0x458919(0x84);case _0x5039cf[_0x458919(0x153)]:return _0x458919(0x1de);case _0x5039cf['NOT_COLLAB']:return _0x458919(0x260);case _0x5039cf['AWAITING']:case _0x5039cf['AWAITING_WITH_PENDING']:return'collabStatus.syncing';case _0x5039cf[_0x458919(0x14c)]:case _0x5039cf[_0x458919(0x23d)]:return'collabStatus.synced';}}function Oi(_0x1fe203){const _0x2780fb=_0x517afa,{status$:_0x4afa5e}=_0x1fe203,_0x3d1551=_0x42cc23(_0x4afa5e,_0x5039cf[_0x2780fb(0x24b)]),_0x168f93=_0x5058dd(_0x3ae72e),_0x830629=_0x5058dd(_0x2c25d7),_0x3d2e53=_0x3d1551!==_0x5039cf[_0x2780fb(0x9f)],_0x1f2e85=_0x168f93['t'](pi(_0x3d1551)),_0x24ddc8=_0x3d2e53?_0x277ba7(Mt,{}):_0x277ba7(Lt,{}),_0x247f49=_0x3c5a52(()=>{const _0x5ab0ad=_0x2780fb;_0x3d2e53||_0x830629[_0x5ab0ad(0x75)]();},[_0x3d2e53,_0x830629]);function _0x593962(){const _0x5b40c9=_0x2780fb;return _0x1bde0f(_0x5b40c9(0x1b7),{'className':_0x5b40c9(0x71),'onClick':_0x247f49,'children':[_0x277ba7(_0x5b40c9(0x1b7),{'className':_0x116133(_0x5b40c9(0x19c),{'univer-text-green-500':_0x3d2e53,'univer-text-red-500':!_0x3d2e53}),'children':_0x24ddc8}),_0x277ba7(_0x5b40c9(0x1b7),{'className':_0x5b40c9(0x204),'children':_0x1f2e85})]});}return _0x3d2e53?_0x593962():_0x277ba7(_0x576972,{'title':_0x168f93['t']('collab-client.tooltip.reconnect'),'children':_0x593962()});}var Ti=Object['getOwnPropertyDescriptor'],Ci=(_0x2beec6,_0xf1868,_0x236baa,_0xec97fc)=>{const _0x4a9fab=_0x517afa;for(var _0x2b1a11=_0xec97fc>0x1?void 0x0:_0xec97fc?Ti(_0xf1868,_0x236baa):_0xf1868,_0x49a528=_0x2beec6[_0x4a9fab(0x1d1)]-0x1,_0x1f9e63;_0x49a528>=0x0;_0x49a528--)(_0x1f9e63=_0x2beec6[_0x49a528])&&(_0x2b1a11=_0x1f9e63(_0x2b1a11)||_0x2b1a11);return _0x2b1a11;},se=(_0x1b45e8,_0xf62440)=>(_0x2d8c1a,_0x1559d1)=>_0xf62440(_0x2d8c1a,_0x1559d1,_0x1b45e8);let oe=class extends _0x4057f7{constructor(_0xa8a9d1,_0x190dfd,_0x3b783a,_0x2128af){const _0x557379=_0x517afa;super(),l(this,'_status$',new _0x340b13(_0x5039cf[_0x557379(0x24b)])),(this[_0x557379(0xb4)]=_0xa8a9d1,this[_0x557379(0x22f)]=_0x190dfd,this[_0x557379(0x15d)]=_0x3b783a,this[_0x557379(0x268)]=_0x2128af,this[_0x557379(0x11a)](),this[_0x557379(0x23e)]());}[_0x517afa(0x23e)](){const _0x2a543c=_0x517afa;this[_0x2a543c(0x161)](this['_univerInstanceService'][_0x2a543c(0xd0)]['pipe'](_0x1308ff(()=>{const _0x50fd83=_0x2a543c,_0x20a7eb=this[_0x50fd83(0xb4)][_0x50fd83(0x228)]();return _0x20a7eb?this[_0x50fd83(0x15d)][_0x50fd83(0x176)](_0x20a7eb['getUnitId']()):_0x38b4ff(null);}),_0x1308ff(_0x2bb4ae=>_0x2bb4ae?_0x2bb4ae[_0x2a543c(0x155)]:_0x38b4ff(_0x5039cf[_0x2a543c(0x24b)])))[_0x2a543c(0x243)](_0x21fa30=>{const _0x326167=_0x2a543c;this[_0x326167(0x245)][_0x326167(0xb2)](_0x21fa30);}));}[_0x517afa(0x11a)](){const _0x36298d=_0x517afa;this[_0x36298d(0x161)](this['_uiPartsService']['registerComponent'](_0x606109['HEADER_MENU'],()=>_0x2a674f(Ri({'status$':this[_0x36298d(0x245)][_0x36298d(0x198)]()}),this[_0x36298d(0x22f)])));}};oe=Ci([se(0x0,_0x30c7ee),se(0x1,_0x388393(_0x258030)),se(0x2,_0x388393(_0x477518)),se(0x3,_0x396b61)],oe);function Ri(_0x3a38ac){const {status$:_0x3580c7}=_0x3a38ac;return function(){return _0x277ba7(Oi,{'status$':_0x3580c7});};}const At=_0x39e1c8(_0x517afa(0x168));var Di=Object[_0x517afa(0x217)],Ni=(_0x27341c,_0x52be70,_0x434edb,_0x3f335a)=>{const _0x12f46e=_0x517afa;for(var _0x1032c7=_0x3f335a>0x1?void 0x0:_0x3f335a?Di(_0x52be70,_0x434edb):_0x52be70,_0x39ae90=_0x27341c[_0x12f46e(0x1d1)]-0x1,_0x559833;_0x39ae90>=0x0;_0x39ae90--)(_0x559833=_0x27341c[_0x39ae90])&&(_0x1032c7=_0x559833(_0x1032c7)||_0x1032c7);return _0x1032c7;},K=(_0x20c8d8,_0x42a27d)=>(_0x368a1d,_0x3315cf)=>_0x42a27d(_0x368a1d,_0x3315cf,_0x20c8d8);let ae=class extends _0x518648{constructor(_0x2d342a,_0x4ccbe7,_0x1df9ea,_0x269dda,_0x80710d){const _0x18a868=_0x517afa;super(),this['_urlService']=_0x2d342a,this[_0x18a868(0x237)]=_0x4ccbe7,this[_0x18a868(0x27f)]=_0x1df9ea,this['_dataLoaderService']=_0x269dda,_0x80710d?_0x80710d==null||_0x80710d[_0x18a868(0x93)]()[_0x18a868(0x189)](()=>this['_init']()):(this[_0x18a868(0x237)][_0x18a868(0x194)]('[CollaborationDataLoaderController]','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x18a868(0xf3)]());}async['_init'](){const _0xdb0516=_0x517afa,_0x303827=this['_urlService']['getParam'](_0xdb0516(0x1ec)),_0x481ab6=this[_0xdb0516(0x242)][_0xdb0516(0xf5)](_0xdb0516(0x7e)),_0x685544=this['_urlService']['getParam'](_0xdb0516(0x7d));if(!_0x303827||!_0x481ab6){this[_0xdb0516(0x237)][_0xdb0516(0x194)](_0xdb0516(0x207),_0xdb0516(0x12d));return;}const _0x5a00dd=await this[_0xdb0516(0x1b0)][_0xdb0516(0xd5)](_0x303827,Number(_0x481ab6),_0x685544);_0x5a00dd&&_0x5a00dd instanceof _0x2a5c81&&this['_setupSubUnitSync'](_0x5a00dd);}async[_0x517afa(0x1c1)](_0x38d6c6){const _0x4ed5b3=_0x517afa;await this[_0x4ed5b3(0x6c)](_0x38d6c6),_0x38d6c6[_0x4ed5b3(0x19d)][_0x4ed5b3(0x7b)](_0xd33296(this['dispose$']))[_0x4ed5b3(0x243)](_0x8cd8a5=>{const _0x1757a4=_0x4ed5b3;_0x8cd8a5&&this[_0x1757a4(0x23f)](_0x8cd8a5);}),this[_0x4ed5b3(0x242)][_0x4ed5b3(0x20e)][_0x4ed5b3(0x7b)](_0xd33296(this['dispose$']))['subscribe'](()=>this[_0x4ed5b3(0x6c)](_0x38d6c6));}[_0x517afa(0x23f)](_0x2da51c,_0x162be8=!0x1){const _0x12044e=_0x517afa,_0x9a9089=this[_0x12044e(0x242)][_0x12044e(0xf5)]('subunit');_0x2da51c[_0x12044e(0x83)]()!==_0x9a9089&&this[_0x12044e(0x242)][_0x12044e(0x281)]('subunit',_0x2da51c[_0x12044e(0x83)](),_0x162be8);}async[_0x517afa(0x6c)](_0x132fe9){const _0x358343=_0x517afa;var _0x2b7771;const _0x217fca=this[_0x358343(0x242)][_0x358343(0xf5)](_0x358343(0x7d));if(!_0x217fca||!_0x132fe9['getSheetBySheetId'](_0x217fca)){const _0x306cb0=_0x132fe9[_0x358343(0x1f0)]()[0x0],_0x5c5991=_0x132fe9[_0x358343(0x18f)](_0x306cb0);if(!_0x5c5991)return;this['_updateURLWithCurrentState'](_0x5c5991,!0x0),await this['_commandService'][_0x358343(0x111)](_0x3fab11['id'],{'unitId':_0x132fe9[_0x358343(0x90)](),'subUnitId':_0x306cb0});return;}((_0x2b7771=_0x132fe9['getActiveSheet']())==null?void 0x0:_0x2b7771[_0x358343(0x83)]())!==_0x217fca&&await this[_0x358343(0x27f)][_0x358343(0x111)](_0x3fab11['id'],{'unitId':_0x132fe9[_0x358343(0x90)](),'subUnitId':_0x217fca});}};ae=Ni([K(0x0,At),K(0x1,_0x46da51),K(0x2,_0x4ab028),K(0x3,_0x388393(_0x2a1a88)),K(0x4,_0x4ea5e5(_0x4dada7))],ae);var bi=Object[_0x517afa(0x217)],Ui=(_0x3a589e,_0x271cc7,_0xee4681,_0x2b03ed)=>{const _0x2b818b=_0x517afa;for(var _0x23d4d7=_0x2b03ed>0x1?void 0x0:_0x2b03ed?bi(_0x271cc7,_0xee4681):_0x271cc7,_0x124f65=_0x3a589e[_0x2b818b(0x1d1)]-0x1,_0x47b0f2;_0x124f65>=0x0;_0x124f65--)(_0x47b0f2=_0x3a589e[_0x124f65])&&(_0x23d4d7=_0x47b0f2(_0x23d4d7)||_0x23d4d7);return _0x23d4d7;},tt=(_0x1da118,_0x5f0858)=>(_0x5a9b32,_0x492fc8)=>_0x5f0858(_0x5a9b32,_0x492fc8,_0x1da118);let Ae=class extends _0x518648{constructor(_0x3c548b,_0x287896){const _0x4ab910=_0x517afa;super(),this[_0x4ab910(0x1d4)]=_0x3c548b,this[_0x4ab910(0x238)]=_0x287896,this[_0x4ab910(0xf3)]();}[_0x517afa(0xf3)](){const _0x807ef7=_0x517afa,_0xed730a=this;this[_0x807ef7(0x161)](this[_0x807ef7(0x1d4)][_0x807ef7(0xcd)]({'onBeforePasteImage':async _0x104091=>{const _0x421e66=_0x807ef7,_0x22c284=await _0xed730a[_0x421e66(0x238)][_0x421e66(0x22d)](_0x104091);return _0x22c284?{'source':_0x22c284['source'],'imageSourceType':_0x22c284[_0x421e66(0x1e4)]}:null;}}));}};Ae=Ui([tt(0x0,_0xaa9e07),tt(0x1,_0x32f1bc)],Ae);const st=['purple.300',_0x517afa(0x1f8),_0x517afa(0xeb),_0x517afa(0x25d),_0x517afa(0x116),'yellow.400'];class je extends _0x4057f7{constructor(){const _0x532079=_0x517afa;super(...arguments),l(this,_0x532079(0x271),new Map()),l(this,_0x532079(0x158),0x0);}['assignAColorForMemberID'](_0x7aa126){const _0x43b310=_0x517afa;if(this['_assignedColors'][_0x43b310(0x248)](_0x7aa126))return this[_0x43b310(0x271)][_0x43b310(0x19b)](_0x7aa126);const _0x4d835b=st[this[_0x43b310(0x158)]];return this[_0x43b310(0x158)]=(this[_0x43b310(0x158)]+0x1)%st[_0x43b310(0x1d1)],this[_0x43b310(0x271)][_0x43b310(0x11e)](_0x7aa126,_0x4d835b),_0x4d835b;}}function Pt(_0x5e9642){const _0x265b04=_0x517afa;let _0x263ae5='';for(const _0x50a3df of _0x5e9642){const {startOffset:_0x54adc5,endOffset:_0x53eba6,isActive:_0x4bad31,rangeType:_0x4bf001,segmentId:_0x3935cd,segmentPage:_0xcc0f57}=_0x50a3df;_0x263ae5[_0x265b04(0x1d1)]&&(_0x263ae5+=','),_0x263ae5+=_0x54adc5+':'+_0x53eba6+':'+(_0x4bad31?'1':'0')+':'+_0x4bf001+':'+_0x3935cd+':'+_0xcc0f57;}return _0x263ae5;}function Li(_0x28dae9){const _0x5e844c=_0x517afa,_0x5de168=_0x28dae9[_0x5e844c(0xa4)](','),_0x1dde10=[];for(const _0x15e125 of _0x5de168){const [_0x5e1c5a,_0x5dc617,_0x163197,_0x3430a9,_0x2a8359,_0x57d42f]=_0x15e125[_0x5e844c(0xa4)](':');_0x1dde10['push']({'startOffset':Number(_0x5e1c5a),'endOffset':Number(_0x5dc617),'collapsed':_0x5e1c5a===_0x5dc617,'isActive':_0x163197==='1','rangeType':_0x3430a9===_0x13dbee['TEXT']?_0x13dbee['TEXT']:_0x13dbee[_0x5e844c(0x1ba)],'segmentId':typeof _0x2a8359=='string'?String(_0x2a8359):'','segmentPage':Number(_0x57d42f!=null?_0x57d42f:-0x1)});}return _0x1dde10[_0x5e844c(0x15e)](_0x592fd5=>_0x592fd5[_0x5e844c(0x24a)])||(_0x1dde10[0x0][_0x5e844c(0x24a)]=!0x0),_0x1dde10;}class Xe extends _0x518648{constructor(){const _0x5bbd14=_0x517afa;super(...arguments),l(this,_0x5bbd14(0x123),new _0x340b13(null)),l(this,'collabCursorState$',this[_0x5bbd14(0x123)][_0x5bbd14(0x198)]());}[_0x517afa(0x14a)](_0x2227c6){const _0x1b7d2f=_0x517afa,{unitID:_0x20ed6a,memberID:_0x447a78,textRanges:_0x441103}=_0x2227c6,_0x5ee698=Pt(_0x441103);if(_0x5ee698==='')return;const _0xeaed33={'unitID':_0x20ed6a,'memberID':_0x447a78,'selection':_0x5ee698};this[_0x1b7d2f(0x123)][_0x1b7d2f(0xb2)](_0xeaed33);}}var Mi=Object['getOwnPropertyDescriptor'],Ai=(_0x5c52be,_0x113c0e,_0x3f753c,_0x22ba5d)=>{for(var _0x426601=_0x22ba5d>0x1?void 0x0:_0x22ba5d?Mi(_0x113c0e,_0x3f753c):_0x113c0e,_0x3a3feb=_0x5c52be['length']-0x1,_0x159a49;_0x3a3feb>=0x0;_0x3a3feb--)(_0x159a49=_0x5c52be[_0x3a3feb])&&(_0x426601=_0x159a49(_0x426601)||_0x426601);return _0x426601;},A=(_0x3dee63,_0x2adcf7)=>(_0x1b4ae5,_0x25d1b8)=>_0x2adcf7(_0x1b4ae5,_0x25d1b8,_0x3dee63);const Pi=0x12c,wi=0x64;let Pe=class extends _0x518648{constructor(_0x5c3433,_0x328926,_0x1e1b10,_0x444016,_0x2d75f0,_0x1cf721,_0x490a57,_0x312c88,_0x531b60){const _0x56bd48=_0x517afa;super(),l(this,_0x56bd48(0xa7),!0x1),l(this,_0x56bd48(0xf3),!0x1),l(this,_0x56bd48(0x234),new _0x340b13(new Map())),l(this,_0x56bd48(0x255),this[_0x56bd48(0x234)]['asObservable']()),l(this,_0x56bd48(0x1f5),new _0x340b13([])),l(this,'roomMembers$',this[_0x56bd48(0x1f5)][_0x56bd48(0x7b)](_0x59a831(Pi))),l(this,_0x56bd48(0x284),_0x5465f7(_0x286426=>{const _0x15f7c9=_0x56bd48,_0x21f282={'eventID':_0x2aa15d[_0x15f7c9(0xd7)],'data':{'unitID':this['unitID'],'memberID':this['_session']['getMemberID'](),'selection':Pt(_0x286426)}};this[_0x15f7c9(0xad)][_0x15f7c9(0x267)](_0x21f282,this[_0x15f7c9(0x186)]);},wi)),(this[_0x56bd48(0x186)]=_0x5c3433,this[_0x56bd48(0xad)]=_0x328926,this[_0x56bd48(0x22f)]=_0x1e1b10,this['_colorAssignService']=_0x444016,this[_0x56bd48(0x1d9)]=_0x2d75f0,this[_0x56bd48(0x66)]=_0x1cf721,this[_0x56bd48(0x295)]=_0x490a57,this[_0x56bd48(0xb4)]=_0x312c88,this[_0x56bd48(0x27f)]=_0x531b60);}get[_0x517afa(0x253)](){const _0x5bbc65=_0x517afa;return this['_cursorInfo$'][_0x5bbc65(0x89)]();}get[_0x517afa(0xf4)](){const _0x46a170=_0x517afa;return this[_0x46a170(0x1f5)][_0x46a170(0x89)]();}[_0x517afa(0x121)](){const _0x4645ac=_0x517afa;super[_0x4645ac(0x121)](),this['_cursorInfo$'][_0x4645ac(0xb2)](new Map()),this[_0x4645ac(0x234)][_0x4645ac(0x202)](),this[_0x4645ac(0x1f5)][_0x4645ac(0xb2)]([]),this[_0x4645ac(0x1f5)]['complete']();}['init'](){const _0x4bff03=_0x517afa;this[_0x4bff03(0xf3)]||(this[_0x4bff03(0xf3)]=!0x0,this[_0x4bff03(0xad)]['sessionStatus$'][_0x4bff03(0x7b)](_0xd33296(this[_0x4bff03(0x1e9)]))['subscribe'](_0x61aa1=>{const _0x2f867e=_0x4bff03;_0x61aa1===_0x309895['ONLINE']?this[_0x2f867e(0x177)]():this['_toggleOffline']();}),this[_0x4bff03(0xad)][_0x4bff03(0x226)][_0x4bff03(0x7b)](_0xd33296(this[_0x4bff03(0x1e9)]))[_0x4bff03(0x243)](_0x296dfc=>{const _0x1d2a06=_0x4bff03,_0x37a521=_0x296dfc[_0x1d2a06(0x69)];_0x37a521===_0x2aa15d['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x296dfc),_0x37a521===_0x2aa15d[_0x1d2a06(0x26c)]&&this['_onCursorDelete'](_0x296dfc);}),this[_0x4bff03(0x161)](this['_commandService'][_0x4bff03(0x208)](_0x2b90ab=>{const _0x44a781=_0x4bff03,_0x5eb7c3=_0x2b90ab[_0x44a781(0x269)];_0x5eb7c3!=null&&this['_online']&&_0x2b90ab['id']===_0x1ec7e1['id']&&_0x5eb7c3[_0x44a781(0x140)]===this[_0x44a781(0x186)]&&_0x5eb7c3[_0x44a781(0xe9)]===!0x1&&_0x5eb7c3[_0x44a781(0x25f)]['length']>0x0&&this[_0x44a781(0x284)](_0x5eb7c3['ranges']);})),this[_0x4bff03(0x66)][_0x4bff03(0xa6)][_0x4bff03(0x7b)](_0xd33296(this['dispose$']))[_0x4bff03(0x243)](_0x1d5e1e=>{const _0x2ad665=_0x4bff03;if((_0x1d5e1e==null?void 0x0:_0x1d5e1e[_0x2ad665(0x186)])!==this[_0x2ad665(0x186)])return;const _0x121ded={'eventID':_0x2aa15d['UPDATE_CURSOR'],'data':_0x1d5e1e};this[_0x2ad665(0x209)](_0x121ded);}),this[_0x4bff03(0x161)](this[_0x4bff03(0x27f)][_0x4bff03(0x208)](_0x8fa16=>{const _0x58c72b=_0x4bff03;if(_0x8fa16['params']==null)return;const _0x329bde=_0x8fa16[_0x58c72b(0x269)];if(_0x8fa16['id']!==_0x3321ec['id']||_0x329bde[_0x58c72b(0x140)]!==this[_0x58c72b(0x186)])return;const _0x54e2a8={'id':_0x58c72b(0x21f),'params':_0x329bde},_0x2f63a4=this[_0x58c72b(0x253)];for(const [_0xf47117,_0x2c4165]of _0x2f63a4){const _0xad3e8={'id':_0x58c72b(0x21f),'params':{'unitId':this[_0x58c72b(0x186)],'actions':null,'textRanges':_0x2c4165[_0x58c72b(0x25f)]}},_0x108dcc=this['_transformService'][_0x58c72b(0x1c4)](_0x54e2a8,_0xad3e8,!0x1);if(_0x18536c(_0x108dcc))throw _0x108dcc[_0x58c72b(0x154)];_0x2f63a4[_0x58c72b(0x11e)](_0xf47117,{..._0x2c4165,'ranges':_0x108dcc['m2Prime'][_0x58c72b(0x269)][_0x58c72b(0x1a7)]});}queueMicrotask(()=>{const _0x260184=_0x58c72b;this[_0x260184(0x234)][_0x260184(0xb2)](_0x2f63a4);});})));}[_0x517afa(0x209)](_0x1d3822){const _0x203a87=_0x517afa;var _0x51d598,_0x68ec78;const {memberID:_0x4d848e,selection:_0x526396}=_0x1d3822['data'],_0x5db27e=Li(_0x526396),_0x3e52af=(_0x68ec78=(_0x51d598=this[_0x203a87(0x1d9)][_0x203a87(0x1f9)](this['unitID'],_0x4d848e))==null?void 0x0:_0x51d598[_0x203a87(0xf8)])!=null?_0x68ec78:_0x203a87(0x22a),_0x5d9ebd={'color':this[_0x203a87(0xe5)][_0x203a87(0xa0)](_0x4d848e),'name':_0x3e52af,'ranges':_0x5db27e},_0x226837=this[_0x203a87(0x253)];_0x226837['set'](_0x4d848e,_0x5d9ebd),this['_cursorInfo$']['next'](_0x226837);}[_0x517afa(0x20b)](_0x592d2e){const _0xa582e8=_0x517afa,{memberID:_0x7a95a7}=_0x592d2e[_0xa582e8(0x16f)],_0x47acc9=this[_0xa582e8(0x253)];_0x47acc9[_0xa582e8(0x26d)](_0x7a95a7),this[_0xa582e8(0x234)][_0xa582e8(0xb2)](_0x47acc9);}[_0x517afa(0x177)](){const _0x1909b7=_0x517afa;var _0xb52e46;if(this[_0x1909b7(0xa7)]=!0x0,((_0xb52e46=this[_0x1909b7(0xb4)][_0x1909b7(0x228)]())==null?void 0x0:_0xb52e46[_0x1909b7(0x90)]())!==this[_0x1909b7(0x186)])return;const _0x5f4213=this['_injector'][_0x1909b7(0x19b)](_0x59d42f)[_0x1909b7(0x15c)]();Array[_0x1909b7(0x229)](_0x5f4213)&&_0x5f4213[_0x1909b7(0x1d1)]>0x0&&this[_0x1909b7(0x284)](_0x5f4213);}[_0x517afa(0x218)](){const _0x4aec1b=_0x517afa;this[_0x4aec1b(0xa7)]=!0x1;}};Pe=Ai([A(0x2,_0x388393(_0x258030)),A(0x3,_0x388393(je)),A(0x4,_0x388393(_0x4164ee)),A(0x5,_0x388393(Xe)),A(0x6,_0x2e28c1),A(0x7,_0x30c7ee),A(0x8,_0x4ab028)],Pe);var yi=Object[_0x517afa(0x217)],$i=(_0x45bb84,_0x2b2fe3,_0x22da68,_0x2a8a11)=>{const _0x5ab209=_0x517afa;for(var _0x5db564=_0x2a8a11>0x1?void 0x0:_0x2a8a11?yi(_0x2b2fe3,_0x22da68):_0x2b2fe3,_0x53f4a5=_0x45bb84[_0x5ab209(0x1d1)]-0x1,_0x4706cc;_0x53f4a5>=0x0;_0x53f4a5--)(_0x4706cc=_0x45bb84[_0x53f4a5])&&(_0x5db564=_0x4706cc(_0x5db564)||_0x5db564);return _0x5db564;},B=(_0xc1b32,_0x15babb)=>(_0x2e3581,_0xadafe1)=>_0x15babb(_0x2e3581,_0xadafe1,_0xc1b32);const xi=0x12c,Bi=0x64,Fi=()=>{let _0x1020bf=[],_0x20e473=!0x1;return _0x331a1b=>{const _0x3d3fe5=_0x4ad2;_0x1020bf[_0x3d3fe5(0x178)](_0x331a1b),_0x20e473||(_0x20e473=!0x0,setTimeout(()=>{const _0x38ad4d=_0x3d3fe5;_0x1020bf[_0x38ad4d(0x17f)](_0xa08f75=>_0xa08f75()),_0x1020bf=[],_0x20e473=!0x1;}));};};let we=class extends _0x518648{constructor(_0x4a9b9e,_0xc9c157,_0x73a832,_0x38901f,_0x32ad48,_0x5657ce,_0x3cfa7b,_0x3d27e3){const _0xd28acc=_0x517afa;super(),l(this,_0xd28acc(0xa7),!0x1),l(this,_0xd28acc(0xf3),!0x1),l(this,'_cursorInfo$',new _0x340b13(new Map())),l(this,'cursorInfo$',this[_0xd28acc(0x234)]['asObservable']()),l(this,_0xd28acc(0x1f5),new _0x340b13([])),l(this,_0xd28acc(0x1fe),this[_0xd28acc(0x1f5)][_0xd28acc(0x7b)](_0x59a831(xi))),l(this,_0xd28acc(0x284),_0x5465f7((_0x33772c,_0x570664)=>{const _0x2c9d2a=_0xd28acc,_0x18d796={'eventID':_0x2aa15d['UPDATE_CURSOR'],'data':{'unitID':this[_0x2c9d2a(0x186)],'memberID':this[_0x2c9d2a(0xad)][_0x2c9d2a(0xc2)](),'selection':_0x1ae78a(_0x33772c,_0x570664['range'])}};this[_0x2c9d2a(0xad)][_0x2c9d2a(0x267)](_0x18d796,this[_0x2c9d2a(0x186)]);},Bi)),(this[_0xd28acc(0x186)]=_0x4a9b9e,this[_0xd28acc(0xad)]=_0xc9c157,this['_injector']=_0x73a832,this[_0xd28acc(0xe5)]=_0x38901f,this[_0xd28acc(0x1d9)]=_0x32ad48,this[_0xd28acc(0xb4)]=_0x5657ce,this[_0xd28acc(0x27f)]=_0x3cfa7b,this['_refRangeService']=_0x3d27e3);}get[_0x517afa(0x253)](){const _0x3b8c2c=_0x517afa;return this[_0x3b8c2c(0x234)][_0x3b8c2c(0x89)]();}get[_0x517afa(0xf4)](){const _0x27f646=_0x517afa;return this[_0x27f646(0x1f5)][_0x27f646(0x89)]();}['dispose'](){const _0x780598=_0x517afa;super[_0x780598(0x121)](),this['_cursorInfo$'][_0x780598(0xb2)](new Map()),this[_0x780598(0x234)][_0x780598(0x202)](),this[_0x780598(0x1f5)][_0x780598(0xb2)]([]),this['_roomMembers$'][_0x780598(0x202)]();}[_0x517afa(0x1bb)](){const _0x37fa7a=_0x517afa;this['_init']||(this[_0x37fa7a(0xf3)]=!0x0,this['_session'][_0x37fa7a(0x12b)][_0x37fa7a(0x7b)](_0xd33296(this['dispose$']))['subscribe'](_0x5070b9=>{const _0x7db586=_0x37fa7a;_0x5070b9===_0x309895['ONLINE']?this[_0x7db586(0x177)]():this[_0x7db586(0x218)]();}),this[_0x37fa7a(0xad)][_0x37fa7a(0x226)]['pipe'](_0xd33296(this[_0x37fa7a(0x1e9)]))[_0x37fa7a(0x243)](_0x1ec446=>{const _0x2813e6=_0x37fa7a,_0x3687af=_0x1ec446[_0x2813e6(0x69)];_0x3687af===_0x2aa15d[_0x2813e6(0xd7)]&&this[_0x2813e6(0x209)](_0x1ec446),_0x3687af===_0x2aa15d[_0x2813e6(0x26c)]&&this[_0x2813e6(0x20b)](_0x1ec446);}),this['_onRefRangeChange'](),this[_0x37fa7a(0x161)](this['_commandService'][_0x37fa7a(0x208)](_0x32761b=>{const _0x321346=_0x37fa7a;if(this['_online']&&_0x32761b['id']===_0x24b6af['id']&&_0x32761b['params'][_0x321346(0x140)]===this[_0x321346(0x186)]){const _0x46be23=_0x32761b[_0x321346(0x269)];this[_0x321346(0x284)](_0x46be23[_0x321346(0x15a)],_0x46be23[_0x321346(0x13a)][0x0]);}})));}[_0x517afa(0x209)](_0x473b66){const _0x3d45b0=_0x517afa;var _0x598fef,_0x39e513;const {memberID:_0x993bf4,selection:_0x8c5fb5}=_0x473b66['data'],{sheetName:_0x5d2220,range:_0x25b0ef}=_0x2f7970(_0x8c5fb5),_0x1d8bfc={'name':(_0x39e513=(_0x598fef=this[_0x3d45b0(0x1d9)][_0x3d45b0(0x1f9)](this[_0x3d45b0(0x186)],_0x993bf4))==null?void 0x0:_0x598fef[_0x3d45b0(0xf8)])!=null?_0x39e513:_0x3d45b0(0x22a),'range':this['_getMergeRange'](_0x5d2220,_0x25b0ef),'sheetID':_0x5d2220,'color':this[_0x3d45b0(0xe5)][_0x3d45b0(0xa0)](_0x993bf4),'selection':_0x8c5fb5},_0xd1788=this[_0x3d45b0(0x253)];_0xd1788[_0x3d45b0(0x11e)](_0x993bf4,_0x1d8bfc),this[_0x3d45b0(0x234)][_0x3d45b0(0xb2)](_0xd1788);}[_0x517afa(0x20b)](_0x3547f8){const _0x176164=_0x517afa,{memberID:_0x4ba7f3}=_0x3547f8[_0x176164(0x16f)],_0x63d5a2=this[_0x176164(0x253)];_0x63d5a2[_0x176164(0x26d)](_0x4ba7f3),this[_0x176164(0x234)][_0x176164(0xb2)](_0x63d5a2);}[_0x517afa(0x72)](_0x3aa281,_0x41b4ba){const _0x318f83=_0x517afa;var _0x549508,_0x3c770a;const _0x577250=(_0x3c770a=(_0x549508=this[_0x318f83(0xb4)][_0x318f83(0x11b)](this[_0x318f83(0x186)]))==null?void 0x0:_0x549508['getSheetBySheetId'](_0x3aa281))==null?void 0x0:_0x3c770a['getMergeData']();return(_0x577250==null?void 0x0:_0x577250[_0x318f83(0x108)](_0x300d92=>_0x54ee1a[_0x318f83(0x9c)](_0x300d92,_0x41b4ba)))||_0x41b4ba;}[_0x517afa(0x214)](){const _0x28e8fb=_0x517afa,_0x91e2df=new _0x57a43d(),_0x334ce3=Fi(),_0x19bbfd=()=>{const _0x2f3f19=_0x4ad2;_0x91e2df[_0x2f3f19(0x121)]();const _0x2b532b=(_0x19ee4b,_0x412742,_0x343cc0,_0x2847bd)=>{const _0x4225d7=_0x2f3f19;let _0x52674f=[];switch(_0x19ee4b['id']){case _0x3786ea[_0x4225d7(0x25c)]:{_0x52674f=_0x3b4431(_0x19ee4b,_0x2847bd);break;}case _0x3786ea[_0x4225d7(0x131)]:{_0x52674f=_0x1cffba(_0x19ee4b,_0x2847bd);break;}case _0x3786ea[_0x4225d7(0x10b)]:{_0x52674f=_0x11dfa9(_0x19ee4b,_0x2847bd);break;}case _0x3786ea['InsertRangeMoveDownCommandId']:{_0x52674f=_0x2cc346(_0x19ee4b,_0x2847bd);break;}case _0x3786ea[_0x4225d7(0x203)]:{_0x52674f=_0x516fbd(_0x19ee4b,_0x2847bd);break;}case _0x3786ea['InsertRowCommandId']:{_0x52674f=_0x223b9d(_0x19ee4b,_0x2847bd);break;}case _0x3786ea[_0x4225d7(0x94)]:{_0x52674f=_0x443ce7(_0x19ee4b,_0x2847bd);break;}case _0x3786ea[_0x4225d7(0x8b)]:{_0x52674f=_0x1788e2(_0x19ee4b,_0x2847bd);break;}case _0x3786ea[_0x4225d7(0x81)]:{_0x52674f=_0x559731(_0x19ee4b,_0x2847bd);break;}}const _0xf33b78=_0x575db5(_0x52674f,_0x2847bd),_0x2fb4f6=this[_0x4225d7(0x253)][_0x4225d7(0x19b)](_0x412742);if(_0x2fb4f6&&_0xf33b78){const _0x47de2e={..._0x2fb4f6,'range':_0xf33b78};this['cursorInfo']['set'](_0x412742,_0x47de2e),_0x334ce3(()=>{const _0x547b0f=_0x4225d7,_0x565801=this[_0x547b0f(0x16b)][_0x547b0f(0x20f)](_0xf33b78,_0x3632f4=>(_0x565801[_0x547b0f(0x121)](),_0x2b532b(_0x3632f4,_0x412742,_0x343cc0,_0xf33b78)));_0x91e2df['add'](_0x565801);});}return{'redos':[],'undos':[]};};this[_0x2f3f19(0x253)][_0x2f3f19(0x17f)]((_0x1b9df4,_0x5e6198)=>{const _0x4fb892=_0x2f3f19,{range:_0x30445a,sheetID:_0x3c7288}=_0x1b9df4,_0x2446c6=this[_0x4fb892(0x16b)][_0x4fb892(0x20f)](_0x30445a,_0x1abff8=>(_0x2446c6[_0x4fb892(0x121)](),_0x2b532b(_0x1abff8,_0x5e6198,_0x3c7288,_0x30445a)));_0x91e2df[_0x4fb892(0xef)](_0x2446c6);});};this[_0x28e8fb(0x161)](_0x5d128c(this['_cursorInfo$'][_0x28e8fb(0x243)](()=>{_0x19bbfd();})));}[_0x517afa(0x177)](){const _0x51f54b=_0x517afa;var _0x1769fe,_0x32afa9;if(this['_online']=!0x0,((_0x1769fe=this[_0x51f54b(0xb4)][_0x51f54b(0x228)]())==null?void 0x0:_0x1769fe[_0x51f54b(0x90)]())!==this[_0x51f54b(0x186)])return;const _0x145116=(_0x32afa9=this[_0x51f54b(0x22f)]['get'](_0x4b8257)[_0x51f54b(0xc9)]())==null?void 0x0:_0x32afa9[0x0],_0x332ac5=this[_0x51f54b(0xb4)]['getCurrentUnitForType'](_0x4ed0b3[_0x51f54b(0x211)])['getActiveSheet']();_0x145116&&_0x332ac5&&this['_updateLocalCursor'](_0x332ac5[_0x51f54b(0x83)](),_0x145116);}[_0x517afa(0x218)](){const _0x331618=_0x517afa;this[_0x331618(0xa7)]=!0x1;}};we=$i([B(0x2,_0x388393(_0x258030)),B(0x3,_0x388393(je)),B(0x4,_0x388393(_0x4164ee)),B(0x5,_0x30c7ee),B(0x6,_0x4ab028),B(0x7,_0x388393(_0x2c0610))],we);var ki=Object[_0x517afa(0x217)],Hi=(_0x4343dd,_0x56984c,_0x4bf1c9,_0x570a4d)=>{const _0x2a3f1e=_0x517afa;for(var _0x41c405=_0x570a4d>0x1?void 0x0:_0x570a4d?ki(_0x56984c,_0x4bf1c9):_0x56984c,_0x426f24=_0x4343dd[_0x2a3f1e(0x1d1)]-0x1,_0x5ce1c9;_0x426f24>=0x0;_0x426f24--)(_0x5ce1c9=_0x4343dd[_0x426f24])&&(_0x41c405=_0x5ce1c9(_0x41c405)||_0x41c405);return _0x41c405;},Ee=(_0x37743f,_0x25d6df)=>(_0x143889,_0x29524d)=>_0x25d6df(_0x143889,_0x29524d,_0x37743f);let H=class extends _0x518648{constructor(_0x645138,_0x11beec,_0xadfc10){const _0x5658f7=_0x517afa;super(),l(this,'_entities',new Map()),l(this,_0x5658f7(0x1cc),new _0x25ec2f()),(this[_0x5658f7(0xb4)]=_0x645138,this['_injector']=_0x11beec,this[_0x5658f7(0x1a8)]=_0xadfc10,this[_0x5658f7(0xf3)]());}[_0x517afa(0x121)](){const _0x35f67e=_0x517afa;super['dispose'](),this[_0x35f67e(0x1cc)][_0x35f67e(0x202)](),this[_0x35f67e(0x1e5)][_0x35f67e(0x17f)](_0x56f1f8=>_0x56f1f8[_0x35f67e(0x121)]());}[_0x517afa(0x205)](_0x411976){const _0x4783ea=_0x517afa;return this[_0x4783ea(0x1e5)][_0x4783ea(0x248)](_0x411976)?this[_0x4783ea(0x1e5)][_0x4783ea(0x19b)](_0x411976)[_0x4783ea(0x255)]:this[_0x4783ea(0x1cc)][_0x4783ea(0x7b)](_0x4edfe7(_0x3ab5ce=>_0x3ab5ce[_0x4783ea(0x186)]===_0x411976),_0x1308ff(_0x2de03e=>_0x2de03e['cursorInfo$']));}[_0x517afa(0xf3)](){const _0x206117=_0x517afa;this[_0x206117(0xb4)]['getTypeOfUnitAdded$'](_0x4ed0b3['UNIVER_SHEET'])[_0x206117(0x7b)](_0xd33296(this[_0x206117(0x1e9)]))[_0x206117(0x243)](async _0x3b652c=>{const _0x4e2ac6=_0x206117,_0x275a57=_0x3b652c[_0x4e2ac6(0x90)](),_0x4cd8b2=await this[_0x4e2ac6(0x17a)](_0x275a57);this[_0x4e2ac6(0x1cc)][_0x4e2ac6(0xb2)](_0x4cd8b2),this['_entities'][_0x4e2ac6(0x11e)](_0x275a57,_0x4cd8b2);}),this[_0x206117(0xb4)]['getTypeOfUnitAdded$'](_0x4ed0b3[_0x206117(0xf0)])[_0x206117(0x7b)](_0xd33296(this['dispose$']))[_0x206117(0x7b)](_0x4edfe7(_0x5aa57b=>!_0x5aa57b['getUnitId']()['startsWith']('__')))[_0x206117(0x243)](async _0x1ae181=>{const _0xbdeb3e=_0x206117,_0x2d62cf=_0x1ae181[_0xbdeb3e(0x90)](),_0x2a3076=await this[_0xbdeb3e(0x1e6)](_0x2d62cf);this[_0xbdeb3e(0x1cc)]['next'](_0x2a3076),this[_0xbdeb3e(0x1e5)][_0xbdeb3e(0x11e)](_0x2d62cf,_0x2a3076);}),_0x2f4c1a(this[_0x206117(0xb4)][_0x206117(0x1fa)](_0x4ed0b3['UNIVER_DOC']),this[_0x206117(0xb4)]['getTypeOfUnitDisposed$'](_0x4ed0b3[_0x206117(0x211)]))[_0x206117(0x7b)](_0xd33296(this[_0x206117(0x1e9)]))['subscribe'](_0x5691df=>{const _0x3323bb=_0x206117,_0x2e3e0e=_0x5691df[_0x3323bb(0x90)](),_0xef9d45=this[_0x3323bb(0x1e5)][_0x3323bb(0x19b)](_0x2e3e0e);_0xef9d45&&(_0xef9d45['dispose'](),this[_0x3323bb(0x1e5)]['delete'](_0x2e3e0e));});}async['_startSheetCollabCursor'](_0x2ba64c){const _0x3494ee=_0x517afa,_0x3b1762=await this[_0x3494ee(0x1a8)][_0x3494ee(0x146)](_0x2ba64c),_0x2f20e6=this['_injector'][_0x3494ee(0x263)](we,_0x2ba64c,_0x3b1762);return _0x2f20e6[_0x3494ee(0x1bb)](),_0x2f20e6;}async[_0x517afa(0x1e6)](_0x58e15b){const _0x4fb0b6=_0x517afa,_0x2df5c4=await this[_0x4fb0b6(0x1a8)][_0x4fb0b6(0x146)](_0x58e15b),_0x583a5e=this[_0x4fb0b6(0x22f)][_0x4fb0b6(0x263)](Pe,_0x58e15b,_0x2df5c4);return _0x583a5e[_0x4fb0b6(0x1bb)](),_0x583a5e;}};H=Hi([Ee(0x0,_0x30c7ee),Ee(0x1,_0x388393(_0x258030)),Ee(0x2,_0x388393(_0x2c25d7))],H);function _0x4ad2(_0x40d07e,_0x45a39a){const _0x1e85d5=_0x1e85();return _0x4ad2=function(_0x4ad208,_0x1fcd5c){_0x4ad208=_0x4ad208-0x64;let _0x1b0897=_0x1e85d5[_0x4ad208];return _0x1b0897;},_0x4ad2(_0x40d07e,_0x45a39a);}const Q=0x14,it=0xc8,pe=0x4,Yi=0x5;function Wi(_0x4862c3,_0x56f022){const _0x1fbfa0=_0x517afa;let {radius:_0x7e1d69,width:_0x5960c5,height:_0x1056b4}=_0x56f022;_0x7e1d69=_0x7e1d69!=null?_0x7e1d69:0x0,_0x5960c5=_0x5960c5!=null?_0x5960c5:0x1e,_0x1056b4=_0x1056b4!=null?_0x1056b4:0x1e;let _0x2ef22f=0x0,_0x5724c0=0x0,_0x43f1fc=0x0;_0x2ef22f=_0x5724c0=_0x43f1fc=Math[_0x1fbfa0(0x135)](_0x7e1d69,_0x5960c5/0x2,_0x1056b4/0x2),_0x4862c3[_0x1fbfa0(0x266)](),_0x4862c3[_0x1fbfa0(0xec)](_0x2ef22f,0x0),_0x4862c3[_0x1fbfa0(0x105)](_0x5960c5-_0x5724c0,0x0),_0x4862c3[_0x1fbfa0(0x25a)](_0x5960c5-_0x5724c0,_0x5724c0,_0x5724c0,Math['PI']*0x3/0x2,0x0,!0x1),_0x4862c3[_0x1fbfa0(0x105)](_0x5960c5,_0x1056b4-_0x43f1fc),_0x4862c3['arc'](_0x5960c5-_0x43f1fc,_0x1056b4-_0x43f1fc,_0x43f1fc,0x0,Math['PI']/0x2,!0x1),_0x4862c3[_0x1fbfa0(0x105)](0x0,_0x1056b4),_0x4862c3[_0x1fbfa0(0x105)](0x0,_0x2ef22f),_0x4862c3[_0x1fbfa0(0x25a)](_0x2ef22f,_0x2ef22f,_0x2ef22f,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4862c3[_0x1fbfa0(0x215)](),_0x56f022['fill']&&(_0x4862c3['save'](),_0x4862c3[_0x1fbfa0(0x101)]=_0x56f022['fill'],_0x56f022[_0x1fbfa0(0x1e7)]===_0x1fbfa0(0x67)?_0x4862c3[_0x1fbfa0(0x77)](_0x1fbfa0(0x67)):_0x4862c3[_0x1fbfa0(0x77)](),_0x4862c3['restore']());}class me extends _0x965c3a{constructor(_0x36e80f,_0x2d0a3b){const _0x419f38=_0x517afa;super(_0x36e80f,_0x2d0a3b),l(this,_0x419f38(0xdf)),l(this,_0x419f38(0x287)),(this[_0x419f38(0xdf)]=_0x2d0a3b==null?void 0x0:_0x2d0a3b[_0x419f38(0xdf)],this[_0x419f38(0x287)]=_0x2d0a3b==null?void 0x0:_0x2d0a3b['text']);}static['drawWith'](_0x50405d,_0x50678d){const _0x28aa27=_0x517afa,{text:_0x53ea7d,color:_0x10b704}=_0x50678d;_0x50405d[_0x28aa27(0x147)](),_0x50405d[_0x28aa27(0x292)]=_0x28aa27(0x7f);const _0x24eb2f=_0x50405d[_0x28aa27(0x1bc)](_0x53ea7d)[_0x28aa27(0x1ee)],_0x31efa3=Math['min'](_0x24eb2f+0x2*pe,it);Wi(_0x50405d,{'height':Q,'radius':0x4,'width':_0x31efa3,'fill':_0x10b704}),_0x50405d['fillStyle']='#FFF';const _0x36f223=pe,_0x47398d=Q-Yi,_0x1ff68a=it-0x2*pe;if(_0x24eb2f>_0x1ff68a){let _0x40b36d='',_0x53edf6=0x0;for(const _0x593334 of _0x53ea7d){const _0xd56cfa=_0x50405d[_0x28aa27(0x1bc)](_0x593334)['width'];if(_0x53edf6+_0xd56cfa<=_0x1ff68a-_0x50405d[_0x28aa27(0x1bc)](_0x28aa27(0xab))['width'])_0x40b36d+=_0x593334,_0x53edf6+=_0xd56cfa;else{_0x40b36d+=_0x28aa27(0xab);break;}}_0x50405d[_0x28aa27(0x12f)](_0x40b36d,_0x36f223,_0x47398d);}else _0x50405d[_0x28aa27(0x12f)](_0x53ea7d,_0x36f223,_0x47398d);_0x50405d[_0x28aa27(0x70)]();}[_0x517afa(0x78)](_0x5c164c){const _0x3fb4a0=_0x517afa;me[_0x3fb4a0(0x12c)](_0x5c164c,this);}}const Oe=_0x517afa(0x95),Vi=_0x517afa(0x1bf),ji='collab-rect-range-',z=0x6,Xi=1.5,Te=0x4,Gi=1.5,Ki=_0x517afa(0x128);class nt{constructor(_0x12f06c,_0x3abc28,_0xbbaaae,_0x59ebcc){const _0x27b03e=_0x517afa;l(this,_0x27b03e(0x10c),[]),l(this,_0x27b03e(0x27d),null),l(this,'_textBubble',null),l(this,'_anchorDot',null),l(this,_0x27b03e(0x1aa),null),l(this,'_eventUnsubscribe',null),(this[_0x27b03e(0x270)]=_0x12f06c,this[_0x27b03e(0x132)]=_0x3abc28,this[_0x27b03e(0x136)]=_0xbbaaae,this[_0x27b03e(0x73)]=_0x59ebcc,this[_0x27b03e(0xc4)]());}set[_0x517afa(0xb5)](_0x3dfc13){const _0x4382ae=_0x517afa;_0x3dfc13?(this[_0x4382ae(0x236)]&&this[_0x4382ae(0x236)][_0x4382ae(0x181)](),this[_0x4382ae(0x28b)]&&this[_0x4382ae(0x28b)][_0x4382ae(0xd6)]()):(this[_0x4382ae(0x236)]&&this[_0x4382ae(0x236)]['show'](),this[_0x4382ae(0x28b)]&&this[_0x4382ae(0x28b)][_0x4382ae(0x181)]());}[_0x517afa(0x121)](){const _0x28062c=_0x517afa;for(const _0x4c0799 of this[_0x28062c(0x10c)])_0x4c0799[_0x28062c(0x121)]();this[_0x28062c(0x28b)]&&this[_0x28062c(0x28b)][_0x28062c(0x121)](),this[_0x28062c(0x236)]&&this[_0x28062c(0x236)]['dispose'](),this[_0x28062c(0x27d)]&&this[_0x28062c(0x27d)]['dispose'](),this[_0x28062c(0x185)]&&this[_0x28062c(0x185)]();}[_0x517afa(0xc4)](){const _0x4597c4=_0x517afa;var _0x17fa94;const {_docSkeleton:_0x383f21,_document:_0x264125}=this,{color:_0x309182,name:_0x4de3df,ranges:_0x22ef0c}=this['_cursor'],_0x585345=_0x264125['getOffsetConfig'](),{docsLeft:_0x2ccd0f,docsTop:_0x3703b4}=_0x585345,_0x1f7ad2=new _0x22b823(_0x585345,_0x383f21);for(const {startOffset:_0x31f17e,endOffset:_0x1af54b,rangeType:_0x728e6a,segmentId:_0x1b55fd,segmentPage:_0x3aeff9,collapsed:_0x5e4e86,isActive:_0x4a7d5d}of _0x22ef0c){const _0x134bdc=_0x383f21[_0x4597c4(0x10d)](_0x31f17e,!0x0,_0x1b55fd,_0x3aeff9);let _0x1e633f=_0x383f21[_0x4597c4(0x10d)](_0x1af54b,!0x0,_0x1b55fd,_0x3aeff9);if(_0x1e633f==null&&(_0x1e633f=_0x383f21[_0x4597c4(0x10d)](_0x1af54b-0x1,!0x1,_0x1b55fd,_0x3aeff9)),_0x4a7d5d){const {contentBoxPointGroup:_0x1f0935}=_0x1f7ad2[_0x4597c4(0x261)](_0x1e633f,_0x1e633f);if(_0x1f0935[_0x4597c4(0x1d1)]===0x0)continue;this[_0x4597c4(0x19f)](_0x309182,_0x1f0935,_0x2ccd0f,_0x3703b4,_0x4de3df),this[_0x4597c4(0x185)]=this['_handleHover']();}if(_0x134bdc&&_0x1e633f){if(_0x728e6a===_0x13dbee['RECT']){const _0x46e7be=new _0x4d41d5(_0x585345,_0x383f21),{pointGroup:_0x4b7d28}=(_0x17fa94=_0x46e7be['getRangePointData'](_0x134bdc,_0x1e633f))!=null?_0x17fa94:{};if(_0x4b7d28==null||_0x4b7d28[_0x4597c4(0x1d1)]===0x0)continue;this['_drawRectRange'](_0x309182,_0x4b7d28,_0x2ccd0f,_0x3703b4);}else{if(!_0x5e4e86){const {borderBoxPointGroup:_0x182dc4}=_0x1f7ad2['getRangePointData'](_0x134bdc,_0x1e633f);if(_0x182dc4['length']===0x0)continue;this[_0x4597c4(0xd9)](_0x309182,_0x182dc4,_0x2ccd0f,_0x3703b4);}}}}}[_0x517afa(0x19f)](_0xb937a3,_0x3aec95,_0x4103f6,_0x478822,_0x3643e6){const _0x5a6df9=_0x517afa,_0x2924fd=this[_0x5a6df9(0x16e)](_0x3aec95),{left:_0x5be36e,top:_0x42b5de,height:_0xd79e66}=_0x2924fd,_0x3319da=this['_getScale'](),_0x1707b8=Gi/_0x3319da,_0x2c7148=new _0x54f591(Oe+_0x24b861(z),{'left':_0x5be36e+_0x4103f6-_0x1707b8,'top':_0x42b5de+_0x478822,'height':_0xd79e66,'width':Xi,'fill':_0xb937a3||_0x4d4f6a(_0x520d70[_0x5a6df9(0xba)],0x0),'strokeWidth':_0x1707b8,'stroke':Ki,'evented':!0x0});this['_anchor']=_0x2c7148,this['_scene'][_0x5a6df9(0x151)](_0x2c7148,_0x57eea3);const _0x408fef=new _0x54f591(Oe+_0x24b861(z),{'left':_0x5be36e+_0x4103f6-_0x1707b8,'top':_0x42b5de+_0x478822-Te/0x2,'height':Te,'width':Te,'fill':_0xb937a3||_0x4d4f6a(_0x520d70[_0x5a6df9(0xba)],0x0),'strokeWidth':0x0,'stroke':_0xb937a3||_0x4d4f6a(_0x520d70[_0x5a6df9(0xba)],0x0),'evented':!0x1});this['_anchorDot']=_0x408fef,this[_0x5a6df9(0x132)][_0x5a6df9(0x151)](_0x408fef,_0x57eea3);const _0x13cb91=new me(Oe+_0x24b861(z),{'left':_0x5be36e+_0x4103f6-_0x1707b8,'top':_0x42b5de+_0x478822-Q,'text':_0x3643e6,'color':_0xb937a3});this[_0x5a6df9(0x28b)]=_0x13cb91,this[_0x5a6df9(0x132)][_0x5a6df9(0x151)](_0x13cb91,_0x57eea3),this[_0x5a6df9(0xb5)]=!0x1;}['_handleHover'](){const _0x59dce2=_0x517afa,_0x59e6a7=this[_0x59dce2(0x27d)]['onPointerEnter$']['subscribeEvent'](()=>{const _0x2bb66d=_0x59dce2;this[_0x2bb66d(0xb5)]=!0x0;}),_0xd0a599=this[_0x59dce2(0x27d)][_0x59dce2(0x1b6)][_0x59dce2(0x1b9)](()=>{const _0x236821=_0x59dce2;this[_0x236821(0x1aa)]&&clearTimeout(this[_0x236821(0x1aa)]),this['_hideTimer']=setTimeout(()=>{const _0x3fcac6=_0x236821;this[_0x3fcac6(0xb5)]=!0x1;},0x7d0);});return()=>{const _0x18ec8c=_0x59dce2;_0x59e6a7['unsubscribe'](),_0xd0a599[_0x18ec8c(0x183)]();};}[_0x517afa(0xd9)](_0x2a1681,_0x2ea02c,_0x194a02,_0x510151){const _0x429cac=_0x517afa,_0x2580a5=new _0x27dda8(_0x2a1681)[_0x429cac(0x227)](0.2)['toRgbString'](),_0x1f8b7a=new _0x6dd2a8(Vi+_0x24b861(z),{'pointsGroup':_0x2ea02c,'fill':_0x2580a5||_0x4d4f6a(_0x520d70[_0x429cac(0xba)],0.2),'left':_0x194a02,'top':_0x510151,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x429cac(0x10c)][_0x429cac(0x178)](_0x1f8b7a),this[_0x429cac(0x132)][_0x429cac(0x151)](_0x1f8b7a,_0x57eea3);}[_0x517afa(0x28f)](_0x31545d,_0x42c77e,_0x4a9f8d,_0x23bad3){const _0x5aa9f8=_0x517afa,_0x58f5e0=new _0x27dda8(_0x31545d)[_0x5aa9f8(0x227)](0.2)[_0x5aa9f8(0x10f)](),_0x576fa7=new _0x6dd2a8(ji+_0x24b861(z),{'pointsGroup':_0x42c77e,'fill':_0x58f5e0||_0x4d4f6a(_0x520d70[_0x5aa9f8(0xba)],0.2),'left':_0x4a9f8d,'top':_0x23bad3,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5aa9f8(0x10c)][_0x5aa9f8(0x178)](_0x576fa7),this[_0x5aa9f8(0x132)][_0x5aa9f8(0x151)](_0x576fa7,_0x57eea3);}[_0x517afa(0x16e)](_0x217d00){const _0x4818ec=_0x217d00[0x0],_0x5cd9ee=_0x4818ec[0x0],_0x3fcf86=_0x4818ec[0x2],{x:_0x284e01,y:_0x49183d}=_0x5cd9ee,{x:_0x594e39,y:_0x1ea92d}=_0x3fcf86;return{'left':_0x284e01,'top':_0x49183d,'width':_0x594e39-_0x284e01,'height':_0x1ea92d-_0x49183d};}[_0x517afa(0x1ca)](){const _0x3b3368=_0x517afa,{scaleX:_0x4a2282,scaleY:_0x25b036}=this['_scene'][_0x3b3368(0x166)]();return Math[_0x3b3368(0x282)](_0x4a2282,_0x25b036);}}function _0x1e85(){const _0x41b31d=['color','OTHER_CLIENT_EDITING','APPLY_NON_SEQUENTIAL_REVISION','now','getSkeleton','1em','_colorAssignService','deepClone','clearInterval','getUndoRedoMutationParamsCache','isEditing','off-line-icon','green.600','moveTo','_localCacheService','toString','add','UNIVER_DOC','removeParam','size','_init','roomMembers','getParam','INTERNAL_ERROR','CONNECTOR_DATA_TOO_LARGE','name','PERMISSION_DENIED','ENTITLE_DUP_SUBSCRIPTION','addObjects','collabStatus.offline','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_docSyncEditingCollabCursorService','stringify','override','fillStyle','NO_OTHER_CLIENTS_EDITING','beforeCommandExecuted','REDEMPTION_USER_REDEEM_TIMES_EXCEED','lineTo','colorChannel1','REDEMPTION_CODE_FULLY_REDEEMED','find','substring','path','InsertColCommandId','_shapes','findNodePositionByCharIndex','onLocalMutation','toRgbString','_labelPosition','executeCommand','_setFormulaLimitStatus','_renderManagerService','displayName','session.collaboration-timeout','blue.400','306ZyzxlJ','ENTITLE_REPORT_LIMIT_EXCEED','permission.content','_initStatusComponent','getUniverSheetInstance','UNDEFINED','getStateCache','set','replaceState','defs','dispose','_doCreateSocket','_collabCursorState$','INVITE_CODE_REQUIRED','pushState','COMPLETION_FINISHED','collaboration.single-unit.warning','rgba(255,\x20255,\x20255,\x200.01)','formula.calculation.waiting','INVALID_ARGUMENT','sessionStatus$','drawWith','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_cachedData','fillText','ENTITLE_INSUFFICIENT_QUOTA','DeleteRangeMoveUpCommandId','_scene','dirtyRanges','_heartbeatTimer','min','_docSkeleton','undoState','_range','transformSelections','selections','YUUMI_NO_CUBOID_FOR_QUESTION','setUndoRedoMutationParamsCache','INVITE_CODE_HAS_BEEN_UES','getRelativeToViewportCoord','OffLineIcon','unitId','currentUsage','409488MGjWXN','_docTransformStateCacheService','_getSaveTimeout','_refreshCollabCursors','requireSession','save','_removeClearOtherTimer','string','syncEditingCollabCursor','_lastResponseTimestamp','SYNCED','_taskIds','_collabCursorController','transformByState','_registerDependencies','addObject','translate(.97)','FETCH_MISS','error','status$','18530IsfPMZ','511064BUkdGW','_colorIndex','OTHER_CLIENTS_EDITING','subUnitId','_checkAndWaitForCalculationPermission','getDocRanges','_collaborationController','some','body','USER_IS_ANONYMOUS','disposeWithMe','totalFormulasToCalculate','registerBeforeClose','maxFormulaLimit','LICENSE_IMPORT_SIZE_EXCEEDED','getAncestorScale','DATA_SOURCE_TOO_LARGE','uni.network.url-service','910408KSeBKf','ERROR_AGAIN','_refRangeService','setStateCache','getVpScrollXYInfoByPosToVp','_getAnchorBounding','data','includes','FromArray','url(#off-line-icon_clip0_910_343)','history','_send','_scheduleClearOtherTimer','getCollabEntity$','_toggleOnline','push','ENTITLE_NEED_BILLING_ADDRESS','_startSheetCollabCursor','_applyCommand','_beforeCloseService','disableLocalCache','use','forEach','_config','hide','transformMutationsWithChangeset','unsubscribe','ticket','_eventUnsubscribe','unitID','_sheetSkeletonManagerService','_initCommandExecutedListener','then','USER_NOT_INVITED_CODE','REDEMPTION_INVALID_CODE','_scheduleHeartbeat','setItem','result','getSheetBySheetId','runOnServer','_messageService','currentColor','map','debug','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','APPLY_REVISION_CONFILICT','mask','asObservable','YUUMI_RATE_OVER_LIMIT','getActiveRange','get','univer-mr-2\x20univer-flex\x20univer-text-xl','activeSheet$','ENSURE_SNAPSHOT_EXECUTION','_drawAnchor','VIEW_MAIN','key','parse','_setupBeforeClosingHandler','getRenderById','_instanceService','storage','textRanges','_collabSessionService','SNAPSHOT_HAS_BEEN_REMOVED','_hideTimer','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_selfUnitIDs','INVALID_INVITE_CODE','Loading','children','_dataLoaderService','28EaLEWR','transformRemoteChangeset','search','NOT_FOUND','limitInfo','onPointerLeave$','div','_docSkeletonManagerService','subscribeEvent','RECT','init','measureText','assign','EMAIL_VERIFY_CODE_MISMATCH','collab-text-range-','_getSheetObject','_setupSubUnitSync','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','loadOfflineData','transformMutation','YUUMI_AI_RUN_FAILED','SNAPSHOT_INVALID_SNAPSHOT','top','_unitStatus','code','_getScale','WECHAT_HAS_BEEN_BOUND','_entityInit$','from','bottom','setTimeout','http://www.w3.org/2000/svg','length','getItem','_handleEvent','_docClipboardService','_showGuardMessage','Warning','AUTHORIZE_CODE_ILLEGAL','SOCKET_FAILED_RETRY','_memberService','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','attrs','CURRENT_STATUS_CANNOT_OPERATE','entries','collabStatus.fetchMiss','engine','sheetID','APPLY_REJECT','_themeService','APPLY_DUPLICATED','imageSourceType','_entities','_startDocCollabCursor','fillRule','USER_NOT_FOUND','dispose$','executionId','session.connection-failed','unit','getViewport','width','defIds','getUnhiddenWorksheets','_id','_getFormulaLimitStatus','3DnRdhV','PAYMENT_CHANNEL_NOT_SUPPORT','_roomMembers$','resize','row','jiqing.500','getMember','getTypeOfUnitDisposed$','searchParams','backgroundColor','_clearOtherTimers','roomMembers$','updateOfflineData','EMAIL_HAS_BEEN_BOUND','getConfig','complete','InsertRangeMoveRightCommandId','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','getCollabCursors$','_maxFormulaLimit','[CollaborationDataLoaderController]','onCommandExecuted','_onCursorUpdate','redoState','_onCursorDelete','onPointerEnter$','_removeCollabCursors','urlChange$','registerRefRange','_lastPointer','UNIVER_SHEET','_revisionService','onMouseMove','_onRefRangeChange','closePath','replace','getOwnPropertyDescriptor','_toggleOffline','with','_initEvent','_httpService','PY_RUNTIME_SCRIPT_ERROR','YUUMI_CONNECTOR_URL_NOT_FOUND','LOGIN_TOKEN_PROCESSING_FAILED','doc.mutation.rich-text-editing','_saveCache','makeDirty','collaboration-client-ui.config','enableLocalCache','YUUMI_ALL_TABLES_IS_INVALID','hovered','event$','setAlpha','getFocusedUnit','isArray','Unknown\x20user','1265750RUVdjc','ACTIVE_UNIT_EVENT_CHANNEL','saveImage','pluginName','_injector','setConfig','_disabled','transformIMECache','START_CALCULATION','_cursorInfo$','post','_anchorDot','_logService','_imageIoService','docStateChange$','onStarting','YUUMI_SUBSCRIPTION_NOT_FOUND','_clearPolling','PENDING','_initStatusListener','_updateURLWithCurrentState','_handleLeaveEvent','_ensureSubject','_urlService','subscribe','_currentUsage','_status$','SOCKET_FAILED','/run/','has','height','isActive','NOT_COLLAB','m2Prime','getformulaLimitStatusUrl','all','getCurrentRevOfUnit','href','_handleJoinEvent','LICENSE_EXPORT_SIZE_EXCEEDED','cursorInfo','getCurrent','cursorInfo$','stage','_releaseCalculationLimit','application/json','saveOfflineData','arc','currentTheme$','DeleteRangeMoveLeftCommandId','red.300','_createSocketURL','ranges','collabStatus.notCollab','getRangePointData','_docTransformSelectionsService','createInstance','tag','editingUnit','beginPath','send','_uiPartsService','params','mutations','collaboration-client.offline-data-not-saved','USERS_LEAVE','delete','transform','SUBMIT_CHANGESET_TIMEOUT','_cursor','_assignedColors','_hovered','/universer-api/license/formula/limit/done','entityInit$','CONFLICT','idSuffix','_docStateChangeManagerService','YUUMI_URL_COL_OUT_OF_RANGE','_transformUndoRedoStack','_saveTaskMap','ENTITLE_CHAT_LIMIT_EXCEED','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','_anchor','ENTITLE_CAN_NOT_BUY_LOWER_OTP','_commandService','?taskId=','setParam','max','stageInfo','_updateLocalCursor','unshift','MUTATION','text','_color','_initCommandInterceptor','LICENSE_MAX_UNITS_EXCEEDED','_textBubble','column','ALREADY_EXISTS','_localStorageService','_drawRectRange','location','MOBILE_HAS_BEEN_BOUND','font','INVITE_CODE_ALREADY_BOUND','2783889SmCIue','_transformService','_docTransformIMECacheService','setInterval','wsSessionTicketUrl','SUCCESS','_syncEditingCollabCursorService','evenodd','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','eventID','_transformPreviousActiveRange','runId','_updateSubUnitFromURLParams','selection','registerRenderModule','svg','restore','univer-flex\x20univer-items-center','_getMergeRange','_document','_transformHistoryAndStateStack','reconnect','REDEMPTION_CODE_HAS_BEEN_CREATED','fill','_draw','shift','M0\x200H16V16H0z','pipe','permission.title','subunit','type','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','endRow','RemoveRowCommandId','298865ytrNhi','getSheetId','collabStatus.conflict','_initResize','currentSkeleton$','origin','_name','getValue','_hasFormulaInDirtyRanges','RemoveColCommandId','_startCalculationLimit','YUUMI_ASYNCIO_CANCELLED','_backgroundColor','Error','getUnitId','_context','_updateCollabCursors','whenReady','MoveRangeCommandId','collab-text-anchor-','exhaustSavingTask','APPLY_PERMISSION_DENIED','endColumn','_pollingInterval','_unitOnClients','_scheduleSaving','contains','url(#$1','off-line-icon_clip0_910_343','OFFLINE','assignAColorForMemberID','xlink:href','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_initEntityListener','split','MOBILE_VERIFY_CODE_MISMATCH','collabCursorState$','_online','defineProperty','on-line-icon','m1Prime','...','functionsExecutedState','_session','_registerRenderDependencies','values','YUUMI_UNABLE_LOAD_URL','0\x200\x2017\x2016','next','saveTaskMap','_univerInstanceService','_hover','newValue','TOO_MANY_REQUESTS','_notificationService','Failed','black','setShapeProps','0\x200\x2016\x2016','_cursors','clearTimeout','REDEMPTION_CODE_INACTIVE','LICENSE_DISTRO_REJECTED','UNRECOGNIZED','getMemberID','REDEMPTION_CODE_NOT_STARTED','_render','_getSessionTicket','_configService','onPointerMove$','collaboration.closeRoom','getCurrentSelections','startFormulaLimitUrl','round','disposeUnit','addClipboardHook','startRow','startColumn','focused$','transformStateCache','_checkCalculationAvailable','addHandlerCallback','unload','loadUnit','show','UPDATE_CURSOR','UNAUTHENTICATED','_drawTextRange','_cursorShapes','_localeService','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','LOGIN_FAILED','on-line-icon_clip0_910_349'];_0x1e85=function(){return _0x41b31d;};return _0x1e85();}var zi=Object[_0x517afa(0x217)],Ji=(_0x37f32c,_0xba789f,_0x3c5667,_0x3c03c2)=>{const _0x40201f=_0x517afa;for(var _0x45c090=_0x3c03c2>0x1?void 0x0:_0x3c03c2?zi(_0xba789f,_0x3c5667):_0xba789f,_0x50ab61=_0x37f32c[_0x40201f(0x1d1)]-0x1,_0x36b1df;_0x50ab61>=0x0;_0x50ab61--)(_0x36b1df=_0x37f32c[_0x50ab61])&&(_0x45c090=_0x36b1df(_0x45c090)||_0x45c090);return _0x45c090;},ie=(_0x403136,_0x132da6)=>(_0x4c0073,_0x17be63)=>_0x132da6(_0x4c0073,_0x17be63,_0x403136);let ye=class extends _0x518648{constructor(_0x337615,_0x135bbf,_0x5f2687,_0x20199d,_0x2ea171){const _0x56fd18=_0x517afa;super(),l(this,_0x56fd18(0xda),[]),l(this,_0x56fd18(0xbd),[]),(this[_0x56fd18(0x91)]=_0x337615,this[_0x56fd18(0x1b8)]=_0x135bbf,this[_0x56fd18(0x14e)]=_0x5f2687,this[_0x56fd18(0x27f)]=_0x20199d,this[_0x56fd18(0x1e2)]=_0x2ea171,this['_init']());}[_0x517afa(0xf3)](){const _0xf2a926=_0x517afa,_0x4ae723=this[_0xf2a926(0x91)]['unitId'],_0x1f4125=this['_docSkeletonManagerService'];this[_0xf2a926(0x161)](_0x41429a([this[_0xf2a926(0x14e)][_0xf2a926(0x205)](_0x4ae723),this['_themeService'][_0xf2a926(0x25b)]])[_0xf2a926(0x7b)](_0x4ee011(([_0x2ff7f8,_0x477b9e])=>({'skeleton':_0x1f4125['getSkeleton'](),'cursors':[..._0x2ff7f8[_0xf2a926(0xaf)]()]['flatMap'](_0x34f9f0=>({..._0x34f9f0,'color':this[_0xf2a926(0x1e2)]['getColorFromTheme'](_0x34f9f0[_0xf2a926(0xdf)])}))})))[_0xf2a926(0x243)](_0x371178=>{const _0x53095d=_0xf2a926;if(this[_0x53095d(0x20d)](),_0x371178){const {skeleton:_0xcdfbd,cursors:_0x23b662}=_0x371178;this[_0x53095d(0x92)](_0xcdfbd,_0x23b662);}})),this[_0xf2a926(0x85)](),this['_initCommandExecutedListener']();}[_0x517afa(0x92)](_0x419188,_0x55a1b3){const _0x2cf2cd=_0x517afa,{scene:_0x316f7a,mainComponent:_0x30bd54}=this[_0x2cf2cd(0x91)],_0x8f5119=_0x55a1b3[_0x2cf2cd(0x193)](_0x242929=>new nt(_0x242929,_0x316f7a,_0x419188,_0x30bd54));this[_0x2cf2cd(0xda)]=_0x8f5119,this['_cursors']=_0x55a1b3;}[_0x517afa(0x145)](){const _0x4bd211=_0x517afa;this[_0x4bd211(0x20d)]();const {scene:_0xae241a,mainComponent:_0x2805ee}=this[_0x4bd211(0x91)],_0x3794cc=this[_0x4bd211(0x1b8)][_0x4bd211(0xe3)](),_0x6a473b=this[_0x4bd211(0xbd)]['map'](_0x107e45=>new nt(_0x107e45,_0xae241a,_0x3794cc,_0x2805ee));this[_0x4bd211(0xda)]=_0x6a473b;}[_0x517afa(0x20d)](){const _0x323f63=_0x517afa;this[_0x323f63(0xda)][_0x323f63(0x17f)](_0x3780c6=>_0x3780c6[_0x323f63(0x121)]()),this['_cursorShapes']=[];}[_0x517afa(0x188)](){const _0x244f56=_0x517afa,_0x101246=[_0x2a3ec3['id']];this[_0x244f56(0x161)](this['_commandService']['onCommandExecuted'](_0x498361=>{const _0x196b5a=_0x244f56;_0x101246[_0x196b5a(0x170)](_0x498361['id'])&&_0x498361[_0x196b5a(0x269)][_0x196b5a(0x140)]===this[_0x196b5a(0x91)][_0x196b5a(0x140)]&&this[_0x196b5a(0x145)]();}));}[_0x517afa(0x85)](){const _0x3424c1=_0x517afa;this['disposeWithMe'](_0xdcf17c(this[_0x3424c1(0x91)][_0x3424c1(0x1df)]['onTransformChange$'])['pipe'](_0x4cc029(_0x216c0b=>_0x216c0b['type']===_0x2dd456[_0x3424c1(0x1f6)]),_0x1a7dfa(0x10))[_0x3424c1(0x243)](()=>{const _0x3dc584=_0x3424c1;this[_0x3dc584(0x145)]();}));}};ye=Ji([ie(0x1,_0x388393(_0x162c1a)),ie(0x2,_0x388393(H)),ie(0x3,_0x4ab028),ie(0x4,_0x388393(_0x4d7d85))],ye);const Zi=0x1,Qi=1.5;class qi extends _0x965c3a{constructor(_0x429493,_0x2c559c){const _0x228d2d=_0x517afa;super(_0x429493,_0x2c559c),l(this,_0x228d2d(0x288)),l(this,_0x228d2d(0x272),!0x1),l(this,_0x228d2d(0x138)),l(this,_0x228d2d(0x88),''),l(this,_0x228d2d(0x110),_0x228d2d(0x1c7)),l(this,_0x228d2d(0x8e)),(_0x2c559c&&this[_0x228d2d(0xbb)](_0x2c559c),this[_0x228d2d(0x20c)][_0x228d2d(0x1b9)](()=>this[_0x228d2d(0xbb)]({'hovered':!0x0})),this[_0x228d2d(0x1b6)][_0x228d2d(0x1b9)](()=>this[_0x228d2d(0xbb)]({'hovered':!0x1})));}[_0x517afa(0xbb)](_0x26d96c){const _0x2e0c41=_0x517afa;var _0x551ba4,_0x58e5f8,_0x35a6bf,_0x19e734,_0x1c8749,_0x1f8002;this[_0x2e0c41(0x288)]=(_0x551ba4=_0x26d96c[_0x2e0c41(0xdf)])!=null?_0x551ba4:this[_0x2e0c41(0x288)],this['_hovered']=(_0x58e5f8=_0x26d96c[_0x2e0c41(0x225)])!=null?_0x58e5f8:this[_0x2e0c41(0x272)],this[_0x2e0c41(0x138)]=(_0x35a6bf=_0x26d96c['range'])!=null?_0x35a6bf:this[_0x2e0c41(0x138)],this['_name']=(_0x19e734=_0x26d96c[_0x2e0c41(0xf8)])!=null?_0x19e734:this[_0x2e0c41(0x88)],this[_0x2e0c41(0x110)]=(_0x1c8749=_0x26d96c['labelPosition'])!=null?_0x1c8749:this[_0x2e0c41(0x110)],this[_0x2e0c41(0x8e)]=(_0x1f8002=_0x26d96c[_0x2e0c41(0x1fc)])!=null?_0x1f8002:this[_0x2e0c41(0x8e)],this[_0x2e0c41(0x14f)]({'width':_0x26d96c[_0x2e0c41(0x1ee)],'height':_0x26d96c['height']});}[_0x517afa(0x213)](_0x3dab74){const _0x282a2a=_0x517afa,{row:_0x4861b1,column:_0x6fc78f}=_0x3dab74;if(_0x4861b1>=this[_0x282a2a(0x138)][_0x282a2a(0xce)]&&_0x4861b1<=this[_0x282a2a(0x138)][_0x282a2a(0x80)]&&_0x6fc78f>=this[_0x282a2a(0x138)]['startColumn']&&_0x6fc78f<=this[_0x282a2a(0x138)]['endColumn']){this[_0x282a2a(0xbb)]({'hovered':!0x0});return;}this[_0x282a2a(0xbb)]({'hovered':!0x1});}['triggerDblclick'](_0x3e58e0){return!0x1;}[_0x517afa(0x78)](_0x1444c3){const _0x299a14=_0x517afa;_0x54f591[_0x299a14(0x12c)](_0x1444c3,{'width':this['width'],'height':this[_0x299a14(0x249)],'strokeWidth':Qi,'stroke':this[_0x299a14(0x288)],'evented':!0x1,'fill':this[_0x299a14(0x8e)]}),this[_0x299a14(0x272)]&&(_0x1444c3[_0x299a14(0x147)](),_0x1444c3[_0x299a14(0x26e)](0x1,0x0,0x0,0x1,this[_0x299a14(0x1ee)],this[_0x299a14(0x110)]===_0x299a14(0x1ce)?0x0:-Q),me['drawWith'](_0x1444c3,{'text':this[_0x299a14(0x88)],'color':this['_color']}),_0x1444c3['restore']());}}var en=Object[_0x517afa(0x217)],tn=(_0x19ebf0,_0x5b13fc,_0x343362,_0xd8df34)=>{const _0x554386=_0x517afa;for(var _0x1b931e=_0xd8df34>0x1?void 0x0:_0xd8df34?en(_0x5b13fc,_0x343362):_0x5b13fc,_0x13641c=_0x19ebf0[_0x554386(0x1d1)]-0x1,_0x43d7c1;_0x13641c>=0x0;_0x13641c--)(_0x43d7c1=_0x19ebf0[_0x13641c])&&(_0x1b931e=_0x43d7c1(_0x1b931e)||_0x1b931e);return _0x1b931e;},Ce=(_0x4f7dba,_0x12892a)=>(_0x3ddac3,_0x1747de)=>_0x12892a(_0x3ddac3,_0x1747de,_0x4f7dba);const sn=0x1389;let $e=class extends _0x518648{constructor(_0x33e5e2,_0x1487ff,_0x266e7a,_0x77ee90){const _0x4e637b=_0x517afa;super(),l(this,_0x4e637b(0xbd),new Set()),l(this,_0x4e637b(0x210),null),(this[_0x4e637b(0x91)]=_0x33e5e2,this[_0x4e637b(0x187)]=_0x1487ff,this[_0x4e637b(0x14e)]=_0x266e7a,this[_0x4e637b(0x1e2)]=_0x77ee90,this[_0x4e637b(0xf3)]());}['_init'](){const _0x297707=_0x517afa;this[_0x297707(0x187)]['currentSkeleton$'][_0x297707(0x7b)](_0x2533f0(this[_0x297707(0x1e9)]),_0x23dfcb(_0x1e6620=>{const _0x2a1bde=_0x297707;if(_0x1e6620){const _0x490071=_0x1e6620['sheetId'];return _0x41429a(this['_collabCursorController'][_0x2a1bde(0x205)](this[_0x2a1bde(0x91)][_0x2a1bde(0x140)]),this['_themeService'][_0x2a1bde(0x25b)])['pipe'](_0x4ee011(([_0x39b135,_0x2465d0])=>{const _0xf6c9d0=new Map();return _0x39b135['forEach']((_0x3433c5,_0x1801cc)=>{const _0x5d9b51=_0x4ad2;if(_0x3433c5[_0x5d9b51(0x1e0)]===_0x490071){const _0x1fc8c0={..._0x3433c5};_0x1fc8c0[_0x5d9b51(0xdf)]=this['_themeService']['getColorFromTheme'](_0x3433c5[_0x5d9b51(0xdf)]),_0xf6c9d0['set'](_0x1801cc,_0x1fc8c0);}}),{'skeleton':_0x1e6620,'cursors':_0xf6c9d0};}));}return _0x38b4ff({'skeleton':null,'cursors':new Map()});}))[_0x297707(0x243)](({skeleton:_0x149f3c,cursors:_0x268c40})=>{const _0x35d9bb=_0x297707;this[_0x35d9bb(0x20d)](),_0x149f3c&&this[_0x35d9bb(0x92)](_0x149f3c,_0x268c40);}),this[_0x297707(0x187)][_0x297707(0x86)][_0x297707(0x243)](_0x25150f=>{const _0x5a48cb=_0x297707;if(_0x25150f==null)return;const {skeleton:_0x383828}=_0x25150f,{scene:_0x497a31}=this[_0x5a48cb(0x91)];_0x497a31[_0x5a48cb(0xc7)][_0x5a48cb(0x1b9)](_0x5465f7(_0x50dfb9=>{const _0xa2bb71=_0x5a48cb;var _0x46760c,_0x293d2f;const {offsetX:_0x562630,offsetY:_0x256a81}=_0x50dfb9,{x:_0x405776,y:_0x2cd196}=_0x497a31[_0xa2bb71(0x13e)](_0x4ad7c8['FromArray']([_0x562630,_0x256a81])),{scaleX:_0xc028e0,scaleY:_0x412b03}=_0x497a31['getAncestorScale'](),_0x322b0f=_0x497a31[_0xa2bb71(0x1ed)](_0x1f1ace[_0xa2bb71(0x1a0)]),_0x386160=_0x497a31[_0xa2bb71(0x16d)](_0x4ad7c8[_0xa2bb71(0x171)]([_0x405776,_0x2cd196]),_0x322b0f),_0x1b27c7=_0x383828['getCellPositionByOffset'](_0x562630,_0x256a81,_0xc028e0,_0x412b03,_0x386160);((_0x46760c=this[_0xa2bb71(0x210)])==null?void 0x0:_0x46760c[_0xa2bb71(0x28c)])===_0x1b27c7[_0xa2bb71(0x28c)]&&((_0x293d2f=this[_0xa2bb71(0x210)])==null?void 0x0:_0x293d2f[_0xa2bb71(0x1f7)])===_0x1b27c7[_0xa2bb71(0x1f7)]||this['_cursors'][_0xa2bb71(0x17f)](_0x26a033=>{const _0x2a177c=_0xa2bb71;_0x26a033[_0x2a177c(0x213)](_0x1b27c7);});},0x64));});}['_updateCollabCursors'](_0x3807b7,_0x3a10aa){const _0x6efb2=_0x517afa;var _0xf20e6b;const _0x5be4a1=(_0xf20e6b=this[_0x6efb2(0x187)][_0x6efb2(0x254)]())==null?void 0x0:_0xf20e6b['skeleton'];if(!_0x5be4a1)return;const _0xa8162b=this[_0x6efb2(0x1c0)]();if(!_0xa8162b)return;this['_cursors']['forEach'](_0x306482=>{const _0x27ef68=_0x6efb2;_0x306482[_0x27ef68(0x221)]();});const {scene:_0x92f103}=_0xa8162b,_0x36f274=nn(Array[_0x6efb2(0x1cd)](_0x3a10aa[_0x6efb2(0xaf)]()))[_0x6efb2(0x193)](_0x432f9f=>{const _0x2fdd41=_0x6efb2,{color:_0x5887f9,range:_0x5791a0,name:_0x189001,selection:_0x26a515,sheetID:_0x2db938}=_0x432f9f,{startColumn:_0x44bc8d,startRow:_0x3f332b,endColumn:_0x1a936b,endRow:_0x47cdf1}=_0x5791a0,_0x28ff1d=_0x10d1ca(_0x3f332b,_0x44bc8d,_0x92f103,_0x5be4a1),_0x11406b=_0x10d1ca(_0x47cdf1,_0x1a936b,_0x92f103,_0x5be4a1),{columnHeaderHeightAndMarginTop:_0x17a643}=_0x5be4a1,{startX:_0x54bd26,startY:_0x48f706}=_0x28ff1d,{endX:_0x204883,endY:_0x15896f}=_0x11406b,_0x295131=_0x204883-_0x54bd26,_0x4bca02=_0x15896f-_0x48f706,_0x448721={'labelPosition':_0x48f706-_0x17a643>=Q?_0x2fdd41(0x1c7):_0x2fdd41(0x1ce),'sheetID':_0x2db938,'range':_0x5791a0,'color':_0x5887f9,'name':_0x189001,'selection':_0x26a515,'left':_0x54bd26,'top':_0x48f706,'width':_0x295131,'height':_0x4bca02,'evented':!0x1,'zIndex':sn};return new qi(_0x189001,_0x448721);});_0x92f103[_0x6efb2(0xfb)](_0x36f274,Zi),this['_cursors']=new Set(_0x36f274);}['_removeCollabCursors'](){const _0x24ceff=_0x517afa;var _0xd168a8;(_0xd168a8=this[_0x24ceff(0xbd)])==null||_0xd168a8[_0x24ceff(0x17f)](_0xd9841d=>_0xd9841d[_0x24ceff(0x121)]());}[_0x517afa(0x1c0)](){const _0x11f851=_0x517afa;return _0x3aa887(this[_0x11f851(0x91)][_0x11f851(0x1ec)],this[_0x11f851(0x91)]);}};$e=tn([Ce(0x1,_0x388393(_0x4703f3)),Ce(0x2,_0x388393(H)),Ce(0x3,_0x388393(_0x4d7d85))],$e);function nn(_0x434a65){const _0x487d08=_0x517afa,_0x5e10c9=new Map();return _0x434a65[_0x487d08(0x17f)](_0x56c4b0=>{const _0x1a899d=_0x487d08;if(_0x5e10c9['has'](_0x56c4b0[_0x1a899d(0x6d)])){const _0x7e279e=_0x5e10c9[_0x1a899d(0x19b)](_0x56c4b0[_0x1a899d(0x6d)]);_0x7e279e[_0x1a899d(0xf8)]+=',\x20'+_0x56c4b0[_0x1a899d(0xf8)];}else _0x5e10c9[_0x1a899d(0x11e)](_0x56c4b0[_0x1a899d(0x6d)],_0x56c4b0);}),Array[_0x487d08(0x1cd)](_0x5e10c9['values']());}var rn=Object[_0x517afa(0x217)],on=(_0x3b4fed,_0x4e1716,_0x2500c0,_0x403b6d)=>{const _0x48abf1=_0x517afa;for(var _0x1c212d=_0x403b6d>0x1?void 0x0:_0x403b6d?rn(_0x4e1716,_0x2500c0):_0x4e1716,_0xad212c=_0x3b4fed[_0x48abf1(0x1d1)]-0x1,_0x5b5257;_0xad212c>=0x0;_0xad212c--)(_0x5b5257=_0x3b4fed[_0xad212c])&&(_0x1c212d=_0x5b5257(_0x1c212d)||_0x1c212d);return _0x1c212d;},F=(_0x20f412,_0x25f52c)=>(_0x5c5a3d,_0x4d3194)=>_0x25f52c(_0x5c5a3d,_0x4d3194,_0x20f412);let ce=class extends _0x4057f7{constructor(_0x3700ff,_0x5488b2,_0x44b68e,_0x39ac2a,_0x1befe7,_0x1f1a07){const _0x6cbe1b=_0x517afa;super(),this['_beforeCloseService']=_0x3700ff,this[_0x6cbe1b(0xed)]=_0x5488b2,this['_collaborationUIEventService']=_0x44b68e,this[_0x6cbe1b(0x191)]=_0x39ac2a,this[_0x6cbe1b(0xb8)]=_0x1befe7,this[_0x6cbe1b(0xdb)]=_0x1f1a07,this[_0x6cbe1b(0x1a3)](),this[_0x6cbe1b(0x21a)]();}[_0x517afa(0x1a3)](){const _0x34ba59=_0x517afa;this['disposeWithMe'](this[_0x34ba59(0x17c)][_0x34ba59(0x163)](()=>{const _0x5cdd06=_0x34ba59;if(this['_localCacheService'][_0x5cdd06(0xb3)][_0x5cdd06(0xf2)])return this[_0x5cdd06(0xdb)]['t'](_0x5cdd06(0x26b));}));}[_0x517afa(0x21a)](){const _0x1f8fd1=_0x517afa;this['disposeWithMe'](this['_collaborationUIEventService'][_0x1f8fd1(0x226)][_0x1f8fd1(0x243)](_0x17b0da=>{const _0x2ccaaa=_0x1f8fd1;_0x17b0da['id']===_0x175362[_0x2ccaaa(0xe0)]&&this[_0x2ccaaa(0x191)]['show']({'type':_0x43794b['Warning'],'content':this[_0x2ccaaa(0xdb)]['t'](_0x2ccaaa(0x127))}),_0x17b0da['id']===_0x175362['CLOSE_ROOM']&&this[_0x2ccaaa(0x191)][_0x2ccaaa(0xd6)]({'type':_0x43794b[_0x2ccaaa(0x1d6)],'content':this['_localeService']['t'](_0x2ccaaa(0xc8))}),_0x17b0da['id']===_0x175362['PERMISSION_DENIED']&&this[_0x2ccaaa(0xb8)][_0x2ccaaa(0xd6)]({'title':this['_localeService']['t'](_0x2ccaaa(0x7c)),'content':this[_0x2ccaaa(0xdb)]['t'](_0x2ccaaa(0x119)),'type':'error','duration':0x0}),_0x17b0da['id']===_0x175362[_0x2ccaaa(0x275)]&&this[_0x2ccaaa(0x191)][_0x2ccaaa(0xd6)]({'type':_0x43794b['Error'],'content':this[_0x2ccaaa(0xdb)]['t'](_0x2ccaaa(0xc8))+'('+_0x17b0da[_0x2ccaaa(0x16f)]+')'}),_0x17b0da['id']===_0x175362['JOIN_ROOM_FAILED']&&this[_0x2ccaaa(0x191)][_0x2ccaaa(0xd6)]({'type':_0x43794b[_0x2ccaaa(0x1d6)],'content':this[_0x2ccaaa(0xdb)]['t'](_0x17b0da[_0x2ccaaa(0x16f)]||'')}),_0x17b0da['id']===_0x175362[_0x2ccaaa(0x1d8)]&&this[_0x2ccaaa(0x191)][_0x2ccaaa(0xd6)]({'type':_0x43794b['Warning'],'content':this[_0x2ccaaa(0xdb)]['t']('session.will-retry')}),_0x17b0da['id']===_0x175362[_0x2ccaaa(0x246)]&&this[_0x2ccaaa(0x191)][_0x2ccaaa(0xd6)]({'type':_0x43794b[_0x2ccaaa(0x8f)],'content':this[_0x2ccaaa(0xdb)]['t'](_0x2ccaaa(0x1eb))}),_0x17b0da['id']===_0x175362[_0x2ccaaa(0x26f)]&&this[_0x2ccaaa(0x191)][_0x2ccaaa(0xd6)]({'type':_0x43794b['Error'],'content':this[_0x2ccaaa(0xdb)]['t'](_0x2ccaaa(0x115))});}));}};ce=on([F(0x0,_0x1e0e35),F(0x1,_0x190965),F(0x2,_0x388393(_0x3671b7)),F(0x3,_0x341740),F(0x4,_0x577074),F(0x5,_0x388393(_0x3ae72e))],ce);const an=_0x517afa(0x222),rt={};var cn=Object[_0x517afa(0x217)],_n=(_0x3ae042,_0x10a46f,_0x273f65,_0x3c9bdb)=>{const _0x518aa0=_0x517afa;for(var _0x187418=_0x3c9bdb>0x1?void 0x0:_0x3c9bdb?cn(_0x10a46f,_0x273f65):_0x10a46f,_0x111d57=_0x3ae042[_0x518aa0(0x1d1)]-0x1,_0x55fd48;_0x111d57>=0x0;_0x111d57--)(_0x55fd48=_0x3ae042[_0x111d57])&&(_0x187418=_0x55fd48(_0x187418)||_0x187418);return _0x187418;},ot=(_0x324d99,_0x4e30d1)=>(_0x59d06c,_0x17e609)=>_0x4e30d1(_0x59d06c,_0x17e609,_0x324d99);let _e=class{constructor(_0x5b9987,_0x39f375){const _0x5ea6c4=_0x517afa;this[_0x5ea6c4(0x295)]=_0x5b9987,this[_0x5ea6c4(0x113)]=_0x39f375;}['transformIMECache'](_0x19c6ac){const _0x59d30b=_0x517afa;this['_transformUndoRedoStack'](_0x19c6ac),this[_0x59d30b(0x6a)](_0x19c6ac);}[_0x517afa(0x1b2)](_0x1f5f28){const _0x47d3ac=_0x517afa,{unitID:_0x435790}=_0x1f5f28,_0x971b61=this[_0x47d3ac(0x113)][_0x47d3ac(0x1a4)](_0x435790)[_0x47d3ac(0x219)](_0x30a772),{redoCache:_0x5f12b9}=_0x971b61[_0x47d3ac(0xe8)]();if(_0x5f12b9[_0x47d3ac(0x1d1)]===0x0)return _0x1f5f28;let _0x463c29=_0x24fd68[_0x47d3ac(0xe6)](_0x1f5f28[_0x47d3ac(0x26a)][0x0]);for(let _0x47838d=0x0;_0x47838d<_0x5f12b9['length'];_0x47838d++){const _0x92998b={'id':_0x47d3ac(0x21f),'params':{..._0x5f12b9[_0x47838d]}},_0x567bcd=this[_0x47d3ac(0x295)][_0x47d3ac(0x1c4)](_0x463c29,_0x92998b,!0x1);if(_0x18536c(_0x567bcd))throw _0x567bcd[_0x47d3ac(0x154)];_0x463c29=_0x567bcd[_0x47d3ac(0xaa)];}return{..._0x24fd68['deepClone'](_0x1f5f28),'mutations':[_0x463c29]};}[_0x517afa(0x279)](_0x2edaba){const _0x1124e6=_0x517afa,{unitID:_0x3df96a}=_0x2edaba,_0x5b3589=this[_0x1124e6(0x113)][_0x1124e6(0x1a4)](_0x3df96a)[_0x1124e6(0x219)](_0x30a772),{undoCache:_0x6b1ddf,redoCache:_0x584b5c}=_0x5b3589[_0x1124e6(0xe8)]();if(_0x6b1ddf['length']===0x0||_0x584b5c[_0x1124e6(0x1d1)]===0x0)return;const _0x2f2b3f=[],_0x1ff2da=[];let _0x126d48=_0x24fd68['deepClone'](_0x2edaba[_0x1124e6(0x26a)][0x0]),_0x550f33=_0x24fd68[_0x1124e6(0xe6)](_0x2edaba[_0x1124e6(0x26a)][0x0]);for(let _0x2efa3f=_0x6b1ddf['length']-0x1;_0x2efa3f>=0x0;_0x2efa3f--){const _0x1d2383={'id':_0x1124e6(0x21f),'params':{..._0x6b1ddf[_0x2efa3f]}},_0x52fa1a={'id':'doc.mutation.rich-text-editing','params':{..._0x584b5c[_0x2efa3f]}},_0x4f453d=this[_0x1124e6(0x295)][_0x1124e6(0x1c4)](_0x126d48,_0x1d2383,!0x1),_0x1d1bcb=this[_0x1124e6(0x295)]['transformMutation'](_0x550f33,_0x52fa1a,!0x1);if(_0x18536c(_0x4f453d))throw _0x4f453d[_0x1124e6(0x154)];if(_0x18536c(_0x1d1bcb))throw _0x1d1bcb[_0x1124e6(0x154)];_0x2f2b3f['unshift'](_0x4f453d[_0x1124e6(0x24c)]['params']),_0x1ff2da[_0x1124e6(0x285)](_0x1d1bcb[_0x1124e6(0x24c)][_0x1124e6(0x269)]),_0x126d48=_0x4f453d[_0x1124e6(0xaa)],_0x550f33=_0x1d1bcb[_0x1124e6(0xaa)];}_0x5b3589[_0x1124e6(0x13c)]({'undoCache':_0x2f2b3f,'redoCache':_0x1ff2da});}[_0x517afa(0x6a)](_0x4dc19c){const _0x2e5859=_0x517afa,{unitID:_0x5e00d8}=_0x4dc19c,_0x5942f7=this[_0x2e5859(0x113)][_0x2e5859(0x1a4)](_0x5e00d8)['with'](_0x30a772),_0x4afd79=_0x5942f7[_0x2e5859(0x19a)]();if(_0x4afd79==null)return;const _0x18b393=[{'id':_0x2e5859(0x21f),'params':{'unitId':_0x4dc19c[_0x2e5859(0x186)],'actions':null,'textRanges':[_0x4afd79]}}],_0x4ebfe5=this[_0x2e5859(0x295)]['transformMutationsWithChangeset'](_0x4dc19c,_0x18b393);if(!_0x2ef47c(_0x4ebfe5))throw _0x4ebfe5['error'];const _0x31d6ae=_0x4ebfe5[_0x2e5859(0x24c)][0x0][_0x2e5859(0x269)]['textRanges'];Array[_0x2e5859(0x229)](_0x31d6ae)&&_0x31d6ae[_0x2e5859(0x1d1)]&&_0x5942f7['setActiveRange'](_0x31d6ae[0x0]);}};_e=_n([ot(0x0,_0x2e28c1),ot(0x1,_0x7acb9e)],_e);var ln=Object[_0x517afa(0x217)],hn=(_0x4458cf,_0x46f2de,_0x7c4124,_0x53bec4)=>{const _0x2729f4=_0x517afa;for(var _0x455bf3=_0x53bec4>0x1?void 0x0:_0x53bec4?ln(_0x46f2de,_0x7c4124):_0x46f2de,_0x432b8f=_0x4458cf[_0x2729f4(0x1d1)]-0x1,_0x155fca;_0x432b8f>=0x0;_0x432b8f--)(_0x155fca=_0x4458cf[_0x432b8f])&&(_0x455bf3=_0x155fca(_0x455bf3)||_0x455bf3);return _0x455bf3;},Re=(_0x50126d,_0x99f43a)=>(_0x50fb61,_0x3fcdf5)=>_0x99f43a(_0x50fb61,_0x3fcdf5,_0x50126d);let le=class{constructor(_0x126124,_0x2d336a,_0x38dc96){const _0x3cb7e8=_0x517afa;this[_0x3cb7e8(0x22f)]=_0x126124,this[_0x3cb7e8(0x295)]=_0x2d336a,this['_docStateChangeManagerService']=_0x38dc96;}[_0x517afa(0xd1)](_0x20f3b6){const _0x2e2afc=_0x517afa;this[_0x2e2afc(0x74)](_0x20f3b6);}[_0x517afa(0x1b2)](_0x384922){const _0x53fdb9=_0x517afa,{unitID:_0x2574a5}=_0x384922,{collaboration:_0x393a64}=this[_0x53fdb9(0x277)][_0x53fdb9(0x11d)](_0x2574a5);if(_0x393a64[_0x53fdb9(0x1d1)]===0x0)return _0x384922;let _0x1b8d66=_0x24fd68[_0x53fdb9(0xe6)](_0x384922[_0x53fdb9(0x26a)][0x0]);for(let _0x4b7413=0x0;_0x4b7413<_0x393a64[_0x53fdb9(0x1d1)];_0x4b7413++){const _0x3acf16={'id':_0x53fdb9(0x21f),'params':{'unitId':_0x393a64[_0x4b7413]['unitId'],..._0x393a64[_0x4b7413][_0x53fdb9(0x20a)]}},_0x5784c4=this['_transformService'][_0x53fdb9(0x1c4)](_0x1b8d66,_0x3acf16,!0x1);if(_0x18536c(_0x5784c4))throw _0x5784c4[_0x53fdb9(0x154)];_0x1b8d66=_0x5784c4[_0x53fdb9(0xaa)];}return{..._0x24fd68[_0x53fdb9(0xe6)](_0x384922),'mutations':[_0x1b8d66]};}[_0x517afa(0x74)](_0x3a10ac){const _0x7cbf23=_0x517afa,{unitID:_0x2829ed}=_0x3a10ac,{history:_0x32e1c9,collaboration:_0xcfbd13}=this[_0x7cbf23(0x277)][_0x7cbf23(0x11d)](_0x2829ed);if(_0x32e1c9[_0x7cbf23(0x1d1)]===0x0&&_0xcfbd13['length']===0x0)return;const _0x28b2a2=[],_0x4d6d5d=[];let _0x2c38d3=_0x24fd68[_0x7cbf23(0xe6)](_0x3a10ac[_0x7cbf23(0x26a)][0x0]),_0x36db6f=_0x24fd68[_0x7cbf23(0xe6)](_0x3a10ac['mutations'][0x0]);for(let _0x418fa8=_0x32e1c9[_0x7cbf23(0x1d1)]-0x1;_0x418fa8>=0x0;_0x418fa8--){const _0x41de1b={'id':_0x7cbf23(0x21f),'params':{'unitId':_0x32e1c9[_0x418fa8][_0x7cbf23(0x140)],..._0x32e1c9[_0x418fa8]['undoState']}},_0x4ffa14={'id':_0x7cbf23(0x21f),'params':{'unitId':_0x32e1c9[_0x418fa8][_0x7cbf23(0x140)],..._0x32e1c9[_0x418fa8][_0x7cbf23(0x20a)]}},_0xa61010=this[_0x7cbf23(0x295)][_0x7cbf23(0x1c4)](_0x2c38d3,_0x41de1b,!0x1),_0x4169bf=this['_transformService'][_0x7cbf23(0x1c4)](_0x36db6f,_0x4ffa14,!0x1);if(_0x18536c(_0xa61010))throw _0xa61010[_0x7cbf23(0x154)];if(_0x18536c(_0x4169bf))throw _0x4169bf[_0x7cbf23(0x154)];_0x28b2a2[_0x7cbf23(0x285)]({..._0x32e1c9[_0x418fa8],'undoState':_0xa61010[_0x7cbf23(0x24c)][_0x7cbf23(0x269)],'redoState':_0x4169bf['m2Prime']['params']}),_0x2c38d3=_0xa61010[_0x7cbf23(0xaa)],_0x36db6f=_0x4169bf[_0x7cbf23(0xaa)];}_0x2c38d3=_0x24fd68[_0x7cbf23(0xe6)](_0x3a10ac['mutations'][0x0]),_0x36db6f=_0x24fd68[_0x7cbf23(0xe6)](_0x3a10ac['mutations'][0x0]);for(let _0x66037d=_0xcfbd13[_0x7cbf23(0x1d1)]-0x1;_0x66037d>=0x0;_0x66037d--){const _0x4ae7db={'id':_0x7cbf23(0x21f),'params':{'unitId':_0xcfbd13[_0x66037d]['unitId'],..._0xcfbd13[_0x66037d][_0x7cbf23(0x137)]}},_0x583663={'id':_0x7cbf23(0x21f),'params':{'unitId':_0xcfbd13[_0x66037d]['unitId'],..._0xcfbd13[_0x66037d][_0x7cbf23(0x20a)]}},_0x2ea0dd=this[_0x7cbf23(0x295)][_0x7cbf23(0x1c4)](_0x2c38d3,_0x4ae7db,!0x1),_0x5e24ee=this[_0x7cbf23(0x295)]['transformMutation'](_0x36db6f,_0x583663,!0x1);if(_0x18536c(_0x2ea0dd))throw _0x2ea0dd[_0x7cbf23(0x154)];if(_0x18536c(_0x5e24ee))throw _0x5e24ee[_0x7cbf23(0x154)];_0x4d6d5d['unshift']({..._0xcfbd13[_0x66037d],'undoState':_0x2ea0dd[_0x7cbf23(0x24c)]['params'],'redoState':_0x5e24ee['m2Prime']['params']}),_0x2c38d3=_0x2ea0dd[_0x7cbf23(0xaa)],_0x36db6f=_0x5e24ee[_0x7cbf23(0xaa)];}this[_0x7cbf23(0x277)][_0x7cbf23(0x16c)](_0x2829ed,{'history':_0x28b2a2,'collaboration':_0x4d6d5d});}};le=hn([Re(0x0,_0x388393(_0x258030)),Re(0x1,_0x2e28c1),Re(0x2,_0x388393(_0x3d7f81))],le);var un=Object[_0x517afa(0x217)],dn=(_0xece5e7,_0x4d7754,_0x1673fd,_0x17545b)=>{const _0x30ff08=_0x517afa;for(var _0x37cacc=_0x17545b>0x1?void 0x0:_0x17545b?un(_0x4d7754,_0x1673fd):_0x4d7754,_0x37d560=_0xece5e7[_0x30ff08(0x1d1)]-0x1,_0x5c2de4;_0x37d560>=0x0;_0x37d560--)(_0x5c2de4=_0xece5e7[_0x37d560])&&(_0x37cacc=_0x5c2de4(_0x37cacc)||_0x37cacc);return _0x37cacc;},at=(_0x1518c1,_0x2989f3)=>(_0x1a4fe4,_0x4f3bf0)=>_0x2989f3(_0x1a4fe4,_0x4f3bf0,_0x1518c1);let he=class{constructor(_0x2fda4f,_0x2c59bc){const _0x29c5e5=_0x517afa;this[_0x29c5e5(0x22f)]=_0x2fda4f,this[_0x29c5e5(0x295)]=_0x2c59bc;}['transformSelections'](_0x5309e9){const _0x4a0b0b=_0x517afa;var _0x55aa30;const _0x9cf969=this[_0x4a0b0b(0x22f)][_0x4a0b0b(0x19b)](_0x59d42f),_0x49537d=(_0x55aa30=_0x9cf969['getDocRanges']())!=null?_0x55aa30:[];if(_0x49537d[_0x4a0b0b(0x1d1)]===0x0)return;const _0x9cca00=_0x5309e9[_0x4a0b0b(0x186)],_0x597da6=[{'id':_0x4a0b0b(0x21f),'params':{'unitId':_0x9cca00,'actions':null,'textRanges':_0x49537d}}],_0x1217b0=this[_0x4a0b0b(0x295)][_0x4a0b0b(0x182)](_0x5309e9,_0x597da6);if(!_0x2ef47c(_0x1217b0))throw _0x1217b0[_0x4a0b0b(0x154)];const _0xcf83dd=_0x1217b0['m2Prime'][0x0][_0x4a0b0b(0x269)]['textRanges'];Array[_0x4a0b0b(0x229)](_0xcf83dd)&&_0xcf83dd['length']&&_0x9cf969['replaceDocRanges'](_0xcf83dd,{'unitId':_0x9cca00,'subUnitId':_0x9cca00},!0x1);}};he=dn([at(0x0,_0x388393(_0x258030)),at(0x1,_0x2e28c1)],he);var Sn=Object[_0x517afa(0x217)],In=(_0x3b0f7c,_0x5c9b72,_0x3b5bab,_0x3dc740)=>{const _0x4b69bc=_0x517afa;for(var _0x1f2b4c=_0x3dc740>0x1?void 0x0:_0x3dc740?Sn(_0x5c9b72,_0x3b5bab):_0x5c9b72,_0x242280=_0x3b0f7c[_0x4b69bc(0x1d1)]-0x1,_0x49b9da;_0x242280>=0x0;_0x242280--)(_0x49b9da=_0x3b0f7c[_0x242280])&&(_0x1f2b4c=_0x49b9da(_0x1f2b4c)||_0x1f2b4c);return _0x1f2b4c;},b=(_0x148e5f,_0x3b65d8)=>(_0x5093b8,_0x447037)=>_0x3b65d8(_0x5093b8,_0x447037,_0x148e5f);let ue=class extends _0x4057f7{constructor(_0x390a71,_0x2a381c,_0xa0b5da,_0x4faef1,_0x4ed0f3,_0x350e03,_0x5b60a1,_0x711cd4){const _0x5397d5=_0x517afa;super(),l(this,_0x5397d5(0x245),new _0x340b13(_0x5039cf['NOT_COLLAB'])),(this[_0x5397d5(0x277)]=_0x390a71,this[_0x5397d5(0x15d)]=_0x2a381c,this['_docTransformIMECacheService']=_0xa0b5da,this[_0x5397d5(0x143)]=_0x4faef1,this[_0x5397d5(0x262)]=_0x4ed0f3,this[_0x5397d5(0xfe)]=_0x350e03,this[_0x5397d5(0x191)]=_0x5b60a1,this[_0x5397d5(0xdb)]=_0x711cd4,this['_initEntityListener']());}[_0x517afa(0xa3)](){const _0x1d4228=_0x517afa;this[_0x1d4228(0x161)](this[_0x1d4228(0x15d)][_0x1d4228(0x274)]['subscribe'](_0x3bc89f=>{const _0xa0f12f=_0x1d4228,_0x172d8d=this[_0xa0f12f(0x277)][_0xa0f12f(0x239)]['subscribe'](_0x1f0d78=>{const _0xe9171f=_0xa0f12f;if(_0x1f0d78==null)return;const {unitId:_0x19a576,redoState:_0x35f6ad,commandId:_0x90a0e9}=_0x1f0d78;if(_0x19a576!==_0x3bc89f[_0xe9171f(0x186)])return;const _0xaaa88c={'id':_0x90a0e9,'type':_0x18ebdb[_0xe9171f(0x286)],'params':{'unitId':_0x19a576,'actions':_0x35f6ad['actions'],'textRanges':null}};_0x3bc89f[_0xe9171f(0x10e)](_0xaaa88c);});if(_0x3bc89f['disposeWithMe'](_0x172d8d),_0x3bc89f instanceof _0x39449e){const _0xa0e02f={'onTransformIME':_0x5eee1f=>this[_0xa0f12f(0x296)][_0xa0f12f(0x232)](_0x5eee1f),'onTransformState':_0x115574=>this[_0xa0f12f(0x143)][_0xa0f12f(0xd1)](_0x115574),'onTransformSelections':_0x27f67f=>this[_0xa0f12f(0x262)][_0xa0f12f(0x139)](_0x27f67f),'onSyncEditingCollabCursor':_0x183e92=>this[_0xa0f12f(0xfe)][_0xa0f12f(0x14a)](_0x183e92),'onTransformRemoteChangesetByIMECache':_0x4e2912=>this[_0xa0f12f(0x296)]['transformRemoteChangeset'](_0x4e2912),'onTransformRemoteChangesetByStateCache':_0x24ffa1=>this[_0xa0f12f(0x143)][_0xa0f12f(0x1b2)](_0x24ffa1)};_0x3bc89f[_0xa0f12f(0xd3)](_0xa0e02f);}}));}};ue=In([b(0x0,_0x388393(_0x3d7f81)),b(0x1,_0x388393(_0x477518)),b(0x2,_0x388393(_e)),b(0x3,_0x388393(le)),b(0x4,_0x388393(he)),b(0x5,_0x388393(Xe)),b(0x6,_0x341740),b(0x7,_0x388393(_0x3ae72e))],ue);var Z=(_0x1a20bc=>(_0x1a20bc[_0x1a20bc[_0x517afa(0x11c)]=0x0]='UNDEFINED',_0x1a20bc[_0x1a20bc['OK']=0x1]='OK',_0x1a20bc[_0x1a20bc[_0x517afa(0xf6)]=0x2]=_0x517afa(0xf6),_0x1a20bc[_0x1a20bc[_0x517afa(0xf9)]=0x3]=_0x517afa(0xf9),_0x1a20bc[_0x1a20bc[_0x517afa(0x1b4)]=0x4]='NOT_FOUND',_0x1a20bc[_0x1a20bc[_0x517afa(0xd8)]=0x5]=_0x517afa(0xd8),_0x1a20bc[_0x1a20bc[_0x517afa(0x28d)]=0x6]=_0x517afa(0x28d),_0x1a20bc[_0x1a20bc[_0x517afa(0x12a)]=0x7]=_0x517afa(0x12a),_0x1a20bc[_0x1a20bc[_0x517afa(0xb7)]=0x8]=_0x517afa(0xb7),_0x1a20bc[_0x1a20bc['COMPLETION_FINISHED']=0x9]=_0x517afa(0x126),_0x1a20bc[_0x1a20bc['LOGIN_FAILED']=0xa]=_0x517afa(0xdd),_0x1a20bc[_0x1a20bc['MOBILE_VERIFY_CODE_MISMATCH']=0xb]=_0x517afa(0xa5),_0x1a20bc[_0x1a20bc['MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xc]=_0x517afa(0x195),_0x1a20bc[_0x1a20bc[_0x517afa(0x1be)]=0xd]=_0x517afa(0x1be),_0x1a20bc[_0x1a20bc[_0x517afa(0x1ab)]=0xe]=_0x517afa(0x1ab),_0x1a20bc[_0x1a20bc[_0x517afa(0x1d7)]=0xf]=_0x517afa(0x1d7),_0x1a20bc[_0x1a20bc[_0x517afa(0x21e)]=0x10]='LOGIN_TOKEN_PROCESSING_FAILED',_0x1a20bc[_0x1a20bc['CURRENT_STATUS_CANNOT_OPERATE']=0x64]=_0x517afa(0x1dc),_0x1a20bc[_0x1a20bc[_0x517afa(0x16a)]=0x65]=_0x517afa(0x16a),_0x1a20bc[_0x1a20bc[_0x517afa(0x1e8)]=0xc9]=_0x517afa(0x1e8),_0x1a20bc[_0x1a20bc['USER_IS_ANONYMOUS']=0xca]=_0x517afa(0x160),_0x1a20bc[_0x1a20bc['CHANGESET_REVISION_CONFILICT']=0x1389]='CHANGESET_REVISION_CONFILICT',_0x1a20bc[_0x1a20bc[_0x517afa(0x1c6)]=0x1771]=_0x517afa(0x1c6),_0x1a20bc[_0x1a20bc[_0x517afa(0x1a9)]=0x1772]=_0x517afa(0x1a9),_0x1a20bc[_0x1a20bc['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x517afa(0x19e),_0x1a20bc[_0x1a20bc[_0x517afa(0x1e1)]=0x1b59]=_0x517afa(0x1e1),_0x1a20bc[_0x1a20bc[_0x517afa(0xe1)]=0x1b5a]=_0x517afa(0xe1),_0x1a20bc[_0x1a20bc['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x517afa(0x196),_0x1a20bc[_0x1a20bc[_0x517afa(0x97)]=0x1b5c]=_0x517afa(0x97),_0x1a20bc[_0x1a20bc[_0x517afa(0x1e3)]=0x1b5d]=_0x517afa(0x1e3),_0x1a20bc[_0x1a20bc[_0x517afa(0xf7)]=0x1f41]=_0x517afa(0xf7),_0x1a20bc[_0x1a20bc['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x517afa(0x28a),_0x1a20bc[_0x1a20bc[_0x517afa(0x1da)]=0x232a]=_0x517afa(0x1da),_0x1a20bc[_0x1a20bc['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x517afa(0x165),_0x1a20bc[_0x1a20bc[_0x517afa(0x252)]=0x232c]=_0x517afa(0x252),_0x1a20bc[_0x1a20bc[_0x517afa(0xc0)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x1a20bc[_0x1a20bc[_0x517afa(0xb0)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x1a20bc[_0x1a20bc[_0x517afa(0x278)]=0x2712]=_0x517afa(0x278),_0x1a20bc[_0x1a20bc[_0x517afa(0x199)]=0x2713]=_0x517afa(0x199),_0x1a20bc[_0x1a20bc[_0x517afa(0x23b)]=0x2714]=_0x517afa(0x23b),_0x1a20bc[_0x1a20bc[_0x517afa(0x13b)]=0x271a]=_0x517afa(0x13b),_0x1a20bc[_0x1a20bc['YUUMI_ASYNCIO_CANCELLED']=0x271b]=_0x517afa(0x8d),_0x1a20bc[_0x1a20bc['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x1a20bc[_0x1a20bc['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x517afa(0x224),_0x1a20bc[_0x1a20bc[_0x517afa(0x68)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x1a20bc[_0x1a20bc[_0x517afa(0x1c5)]=0x271f]=_0x517afa(0x1c5),_0x1a20bc[_0x1a20bc[_0x517afa(0x21d)]=0x2720]=_0x517afa(0x21d),_0x1a20bc[_0x1a20bc['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x517afa(0x21c),_0x1a20bc[_0x1a20bc[_0x517afa(0x13d)]=0x2ee1]=_0x517afa(0x13d),_0x1a20bc[_0x1a20bc[_0x517afa(0x1ad)]=0x2ee2]=_0x517afa(0x1ad),_0x1a20bc[_0x1a20bc['INVITE_CODE_REQUIRED']=0x2ee3]=_0x517afa(0x124),_0x1a20bc[_0x1a20bc[_0x517afa(0x18a)]=0x2ee4]=_0x517afa(0x18a),_0x1a20bc[_0x1a20bc[_0x517afa(0x293)]=0x2ee5]=_0x517afa(0x293),_0x1a20bc[_0x1a20bc[_0x517afa(0x1cb)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x1a20bc[_0x1a20bc[_0x517afa(0x291)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x1a20bc[_0x1a20bc['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x517afa(0x200),_0x1a20bc[_0x1a20bc[_0x517afa(0x27e)]=0x36b1]=_0x517afa(0x27e),_0x1a20bc[_0x1a20bc['ENTITLE_UPDOWN_GRADE_NOT_SUPPORT']=0x36b2]=_0x517afa(0xfd),_0x1a20bc[_0x1a20bc[_0x517afa(0xfa)]=0x36b3]=_0x517afa(0xfa),_0x1a20bc[_0x1a20bc[_0x517afa(0x1f4)]=0x36b4]=_0x517afa(0x1f4),_0x1a20bc[_0x1a20bc[_0x517afa(0x27b)]=0x3715]=_0x517afa(0x27b),_0x1a20bc[_0x1a20bc[_0x517afa(0x118)]=0x3716]='ENTITLE_REPORT_LIMIT_EXCEED',_0x1a20bc[_0x1a20bc[_0x517afa(0x130)]=0x3717]='ENTITLE_INSUFFICIENT_QUOTA',_0x1a20bc[_0x1a20bc['ENTITLE_NEED_BILLING_ADDRESS']=0x37dd]=_0x517afa(0x179),_0x1a20bc[_0x1a20bc[_0x517afa(0x18b)]=0x3a99]=_0x517afa(0x18b),_0x1a20bc[_0x1a20bc[_0x517afa(0xbf)]=0x3a9a]=_0x517afa(0xbf),_0x1a20bc[_0x1a20bc[_0x517afa(0x107)]=0x3a9b]=_0x517afa(0x107),_0x1a20bc[_0x1a20bc[_0x517afa(0xc3)]=0x3a9c]=_0x517afa(0xc3),_0x1a20bc[_0x1a20bc['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x1a20bc[_0x1a20bc[_0x517afa(0x104)]=0x3a9e]=_0x517afa(0x104),_0x1a20bc[_0x1a20bc[_0x517afa(0x76)]=0x3a9f]=_0x517afa(0x76),_0x1a20bc[_0x1a20bc[_0x517afa(0x167)]=0x3e81]='DATA_SOURCE_TOO_LARGE',_0x1a20bc[_0x1a20bc['UNRECOGNIZED']=-0x1]=_0x517afa(0xc1),_0x1a20bc))(Z||{});function mn(_0x4d6f50){const _0x209b02=_0x517afa;var _0xfd3c42,_0x24ead2;const _0x32d0ec=(_0xfd3c42=_0x4d6f50[_0x209b02(0x283)])==null?void 0x0:_0xfd3c42[_0x209b02(0x256)],_0x5cb3c1=((_0x24ead2=_0x4d6f50[_0x209b02(0x283)])==null?void 0x0:_0x24ead2[_0x209b02(0x162)])||0x0;return _0x32d0ec===_0x93f55d[_0x209b02(0x233)]&&_0x5cb3c1>0x0;}function fn(_0x2db790){const _0x3ed280=_0x517afa;return _0x2db790[_0x3ed280(0xac)]===_0x1da652[_0x3ed280(0x65)];}var gn=Object[_0x517afa(0x217)],vn=(_0x42edd7,_0x36cd90,_0x650ab3,_0x5746d6)=>{const _0x58b2c2=_0x517afa;for(var _0x4c71d2=_0x5746d6>0x1?void 0x0:_0x5746d6?gn(_0x36cd90,_0x650ab3):_0x36cd90,_0x38f27f=_0x42edd7[_0x58b2c2(0x1d1)]-0x1,_0x1a02cb;_0x38f27f>=0x0;_0x38f27f--)(_0x1a02cb=_0x42edd7[_0x38f27f])&&(_0x4c71d2=_0x1a02cb(_0x4c71d2)||_0x4c71d2);return _0x4c71d2;},P=(_0x1b3eda,_0x32ddc3)=>(_0x535d94,_0x2c1350)=>_0x32ddc3(_0x535d94,_0x2c1350,_0x1b3eda);const En='/universer-api/license/formula/limit/status',pn='/universer-api/license/formula/limit/start',On=_0x517afa(0x273);let de=class extends _0x4057f7{constructor(_0x20ff60,_0x29f812,_0x3c6dbd,_0x165279,_0x46c0d4,_0x155e8a,_0x8c97dc){const _0x538433=_0x517afa;super(),l(this,_0x538433(0x99),null),l(this,'_maxFormulaLimit',0x0),l(this,'_currentUsage',0x0),l(this,_0x538433(0x14d),[]),l(this,_0x538433(0x14b),0x0),(this[_0x538433(0x191)]=_0x20ff60,this[_0x538433(0x27f)]=_0x29f812,this[_0x538433(0xc6)]=_0x3c6dbd,this[_0x538433(0x21b)]=_0x165279,this['_univerInstanceService']=_0x46c0d4,this[_0x538433(0x237)]=_0x155e8a,this['_localeService']=_0x8c97dc,this[_0x538433(0x289)]());}[_0x517afa(0x289)](){const _0x95c16=_0x517afa;this['disposeWithMe'](this['_commandService'][_0x95c16(0x103)]((_0x5f37d4,_0x465109)=>{const _0x3ccf7c=_0x95c16;var _0x5d7b85;if(_0x5f37d4['id']!==_0xa507f6['id'])return;const _0x20befe=_0x5f37d4[_0x3ccf7c(0x269)];if(!this['_hasFormulaInDirtyRanges']((_0x5d7b85=_0x20befe[_0x3ccf7c(0x133)])!=null?_0x5d7b85:[]))return;if(!this[_0x3ccf7c(0xd2)]())throw this[_0x3ccf7c(0x15b)](_0x5f37d4,_0x465109),this[_0x3ccf7c(0x1d5)](),new _0x458890();})),this[_0x95c16(0x161)](this[_0x95c16(0x27f)][_0x95c16(0x208)]((_0x5b3de1,_0x3ce737)=>{const _0x42d722=_0x95c16;if(_0x5b3de1['id']!==_0x3f8c9d['id'])return;const _0xcc16a6=_0x5b3de1[_0x42d722(0x269)];if(mn(_0xcc16a6)){const _0x4037ca=_0x24b861();this[_0x42d722(0x14d)]['push'](_0x4037ca),this[_0x42d722(0x8c)](_0x4037ca);}else{if(fn(_0xcc16a6)&&this[_0x42d722(0x14d)]['length']>0x0){const _0x29aad4=this[_0x42d722(0x14d)][_0x42d722(0x79)]();this[_0x42d722(0x257)](_0x29aad4);}}}));}['dispose'](){const _0x3aa429=_0x517afa;super[_0x3aa429(0x121)](),this[_0x3aa429(0x23c)](),this[_0x3aa429(0x14d)]=[],this[_0x3aa429(0x244)]=0x0,this[_0x3aa429(0x206)]=0x0,this[_0x3aa429(0x14b)]=0x0;}async[_0x517afa(0x15b)](_0x593a5e,_0x22c115){const _0x51301a=_0x517afa;for(let _0x188b6c=0x0;_0x188b6c<0x1e;_0x188b6c++)try{if(await this[_0x51301a(0x1f2)](),this[_0x51301a(0xd2)]()){this[_0x51301a(0x17b)](_0x593a5e,_0x22c115),this[_0x51301a(0x191)][_0x51301a(0xd6)]({'content':this['_localeService']['t']('formula.calculation.started'),'type':_0x43794b['Success']});return;}await new Promise(_0x3d8cd9=>{const _0x2ce021=_0x51301a;this[_0x2ce021(0x99)]=window[_0x2ce021(0x1cf)](_0x3d8cd9,0x3e8);});}catch(_0x33fda0){this['_logService'][_0x51301a(0x154)](_0x33fda0);}this[_0x51301a(0x191)][_0x51301a(0xd6)]({'content':this['_localeService']['t']('formula.calculation.unable'),'type':_0x43794b[_0x51301a(0x8f)]});}['_applyCommand'](_0x1582cf,_0x543d5e){const _0x5c5b27=_0x517afa;try{this[_0x5c5b27(0x27f)][_0x5c5b27(0x111)](_0x1582cf['id'],_0x1582cf[_0x5c5b27(0x269)],_0x543d5e);}catch(_0x525ead){this[_0x5c5b27(0x237)][_0x5c5b27(0x154)](_0x525ead);}}[_0x517afa(0x112)](_0x45244e,_0x17c92f){const _0x2da246=_0x517afa;_0x17c92f<this[_0x2da246(0x14b)]||(this[_0x2da246(0x14b)]=_0x17c92f,this[_0x2da246(0x206)]=Number['parseInt'](_0x45244e[_0x2da246(0x164)]),this[_0x2da246(0x244)]=Number['parseInt'](_0x45244e[_0x2da246(0x141)]));}async[_0x517afa(0x8c)](_0x226969){const _0x5218fc=_0x517afa;var _0x1531f2,_0x3db894;const _0x5641d9=Date['now']();try{const _0x4f578b=((_0x1531f2=this[_0x5218fc(0xc6)]['getConfig'](_0x174b68))==null?void 0x0:_0x1531f2[_0x5218fc(0xca)])||pn,_0x26d139=(await this[_0x5218fc(0x21b)]['post'](_0x4f578b,{'body':JSON[_0x5218fc(0xff)]({'taskId':_0x226969})}))[_0x5218fc(0x15f)];if(((_0x3db894=_0x26d139[_0x5218fc(0x154)])==null?void 0x0:_0x3db894[_0x5218fc(0x1c9)])!==Z['OK'])return;this['_setFormulaLimitStatus'](_0x26d139[_0x5218fc(0x1b5)],_0x5641d9);}catch(_0x35ac8d){this[_0x5218fc(0x237)]['error'](_0x35ac8d);}}async[_0x517afa(0x1f2)](_0x2efd39){const _0x274cbe=_0x517afa;var _0x2ed56c,_0x2418a9;const _0x35bbce=Date[_0x274cbe(0xe2)]();try{const _0x48ace7=((_0x2ed56c=this[_0x274cbe(0xc6)]['getConfig'](_0x174b68))==null?void 0x0:_0x2ed56c[_0x274cbe(0x24d)])||En,_0x36ffe1=_0x2efd39?_0x48ace7+_0x274cbe(0x280)+encodeURIComponent(_0x2efd39):_0x48ace7,_0x4bd62c=(await this[_0x274cbe(0x21b)]['get'](_0x36ffe1))['body'];if(((_0x2418a9=_0x4bd62c[_0x274cbe(0x154)])==null?void 0x0:_0x2418a9['code'])!==Z['OK'])return;this[_0x274cbe(0x112)](_0x4bd62c[_0x274cbe(0x1b5)],_0x35bbce);}catch(_0x158de8){this['_logService'][_0x274cbe(0x154)](_0x158de8);}}async[_0x517afa(0x257)](_0x271961){const _0x2aba0c=_0x517afa;var _0x18859e,_0xbe029c;const _0x5ebc96=Date[_0x2aba0c(0xe2)]();try{const _0x1a5486=((_0x18859e=this[_0x2aba0c(0xc6)]['getConfig'](_0x174b68))==null?void 0x0:_0x18859e['releaseFormulaLimitUrl'])||On,_0x17daef=(await this[_0x2aba0c(0x21b)]['post'](_0x1a5486,{'body':JSON['stringify']({'taskId':_0x271961})}))[_0x2aba0c(0x15f)];if(((_0xbe029c=_0x17daef[_0x2aba0c(0x154)])==null?void 0x0:_0xbe029c[_0x2aba0c(0x1c9)])!==Z['OK'])return;this[_0x2aba0c(0x112)](_0x17daef[_0x2aba0c(0x1b5)],_0x5ebc96);}catch(_0x46ac57){this[_0x2aba0c(0x237)][_0x2aba0c(0x154)](_0x46ac57);}}['_checkCalculationAvailable'](){const _0x29df4d=_0x517afa;return this['_maxFormulaLimit']===0x0?!0x0:this[_0x29df4d(0x206)]-this[_0x29df4d(0x244)]>0x0;}[_0x517afa(0x23c)](){const _0x566f10=_0x517afa;this[_0x566f10(0x99)]&&(clearTimeout(this[_0x566f10(0x99)]),this[_0x566f10(0x99)]=null);}[_0x517afa(0x1d5)](){const _0x34d020=_0x517afa;this['_messageService'][_0x34d020(0xd6)]({'content':this[_0x34d020(0xdb)]['t'](_0x34d020(0x129)),'type':_0x43794b[_0x34d020(0x1ae)]});}[_0x517afa(0x8a)](_0x4a54d6){const _0x3127bc=_0x517afa;for(const _0x139f2d of _0x4a54d6){const {unitId:_0x360549,sheetId:_0x4b8697,range:_0xe0b171}=_0x139f2d,_0x5be82c=this[_0x3127bc(0xb4)]['getUnit'](_0x360549);if(!_0x5be82c)continue;const _0x3cf598=_0x5be82c[_0x3127bc(0x18f)](_0x4b8697);if(!_0x3cf598)continue;const _0x30c1b6=_0x3cf598['getCellMatrix']();for(let _0x5f4648=_0xe0b171['startRow'];_0x5f4648<=_0xe0b171[_0x3127bc(0x80)];_0x5f4648++)for(let _0x41fba2=_0xe0b171[_0x3127bc(0xcf)];_0x41fba2<=_0xe0b171[_0x3127bc(0x98)];_0x41fba2++){const _0x30c985=_0x30c1b6[_0x3127bc(0x89)](_0x5f4648,_0x41fba2);if(_0x30c985&&(_0x434ee5(_0x30c985['f'])||_0x2fae16(_0x30c985['si'])))return!0x0;}}return!0x1;}};de=vn([P(0x0,_0x388393(_0x341740)),P(0x1,_0x4ab028),P(0x2,_0x6a4de3),P(0x3,_0x388393(_0x345138)),P(0x4,_0x30c7ee),P(0x5,_0x46da51),P(0x6,_0x388393(_0x3ae72e))],de);var Tn=Object[_0x517afa(0x217)],Cn=(_0x516afe,_0xb22d77,_0x3b03f1,_0x33614e)=>{const _0xb10d20=_0x517afa;for(var _0x58f3ce=_0x33614e>0x1?void 0x0:_0x33614e?Tn(_0xb22d77,_0x3b03f1):_0xb22d77,_0x2acf0b=_0x516afe[_0xb10d20(0x1d1)]-0x1,_0xa26ba;_0x2acf0b>=0x0;_0x2acf0b--)(_0xa26ba=_0x516afe[_0x2acf0b])&&(_0x58f3ce=_0xa26ba(_0x58f3ce)||_0x58f3ce);return _0x58f3ce;},De=(_0x408472,_0x168c64)=>(_0x48ee2c,_0x486808)=>_0x168c64(_0x48ee2c,_0x486808,_0x408472);let xe=class extends _0x4057f7{constructor(_0x25539e,_0x4edeeb,_0x3eb649){const _0x569a2b=_0x517afa;super(),l(this,_0x569a2b(0x12e),new Map()),l(this,_0x569a2b(0x27a),new Map()),l(this,_0x569a2b(0x231),!0x1),(this[_0x569a2b(0xc6)]=_0x25539e,this[_0x569a2b(0x28e)]=_0x4edeeb,this[_0x569a2b(0x212)]=_0x3eb649);}[_0x517afa(0x17d)](){const _0x32d058=_0x517afa;this[_0x32d058(0x231)]=!0x0;}[_0x517afa(0x223)](){const _0x4d861e=_0x517afa;this[_0x4d861e(0x231)]=!0x1;}get[_0x517afa(0xb3)](){return this['_saveTaskMap'];}[_0x517afa(0x121)](){const _0x1b55af=_0x517afa;this[_0x1b55af(0x96)]()[_0x1b55af(0x189)](()=>super[_0x1b55af(0x121)]());}async[_0x517afa(0x1c3)](_0xc26c88){const _0xdfee4f=_0x517afa;return this['_disabled']?null:this['_localStorageService'][_0xdfee4f(0x1d2)](_0x439647(_0xc26c88));}async[_0x517afa(0x259)](_0x4c3fb9,_0x670f80){const _0x36d466=_0x517afa;return!!this['_localStorageService'][_0x36d466(0x18d)](_0x4c3fb9,_0x670f80);}[_0x517afa(0x1ff)](_0x37064e,_0x525bd6,_0x48dccb,_0x3988b2){const _0xee7b78=_0x517afa,_0x575caf=this[_0xee7b78(0x212)][_0xee7b78(0x24f)](_0x37064e);this[_0xee7b78(0x12e)][_0xee7b78(0x11e)](_0x37064e,{'unitID':_0x37064e,'type':_0x525bd6,'awaitingChangeset':_0x48dccb,'mutations':_0x3988b2,'rev':_0x575caf}),this[_0xee7b78(0x27a)][_0xee7b78(0x248)](_0x37064e)||this[_0xee7b78(0x9b)](_0x37064e);}['_scheduleSaving'](_0x3e077d){const _0x540a54=_0x517afa,_0x1e2e2e=this[_0x540a54(0x144)]();_0x1e2e2e===0x0?this[_0x540a54(0x220)](_0x3e077d):this['_saveTaskMap'][_0x540a54(0x11e)](_0x3e077d,setTimeout(()=>this[_0x540a54(0x220)](_0x3e077d),_0x1e2e2e));}[_0x517afa(0x144)](){const _0x47f51d=_0x517afa;var _0x14626b;return(_0x14626b=this[_0x47f51d(0xc6)][_0x47f51d(0x201)](_0x141eb8))!=null?_0x14626b:_0x5d3637;}[_0x517afa(0x220)](_0x50867e){const _0x2dba9a=_0x517afa,_0xe14ff4=this['_saveTaskMap'][_0x2dba9a(0x19b)](_0x50867e);return _0xe14ff4!==void 0x0&&window[_0x2dba9a(0xbe)](_0xe14ff4),this[_0x2dba9a(0x28e)][_0x2dba9a(0x18d)](_0x439647(_0x50867e),this[_0x2dba9a(0x12e)][_0x2dba9a(0x19b)](_0x50867e))[_0x2dba9a(0x189)](()=>this[_0x2dba9a(0x27a)][_0x2dba9a(0x26d)](_0x50867e));}async[_0x517afa(0x96)](){const _0x4651c8=_0x517afa,_0x531f4f=[];this[_0x4651c8(0x27a)][_0x4651c8(0x17f)]((_0x11f40c,_0x535c89)=>{const _0x354589=_0x4651c8;window[_0x354589(0xbe)](_0x11f40c),_0x531f4f['push'](this['_saveCache'](_0x535c89)[_0x354589(0x189)](()=>{const _0x29d529=_0x354589;this['_saveTaskMap'][_0x29d529(0x26d)](_0x535c89);}));}),await Promise[_0x4651c8(0x24e)](_0x531f4f);}};xe=Cn([De(0x0,_0x6a4de3),De(0x1,_0xbe08f5),De(0x2,_0x388393(_0x1fb0da))],xe);class Rn extends _0x518648{constructor(){const _0x39ba9e=_0x517afa;super(),l(this,'urlChange$'),this['urlChange$']=_0x258e3e(window,'popstate')[_0x39ba9e(0x7b)](_0xd33296(this[_0x39ba9e(0x1e9)]),_0x4adcb8(0x1),_0x487335(void 0x0));}[_0x517afa(0x281)](_0x1182bd,_0x4440e3,_0x4ce1b5=!0x1){const _0x2b8b2b=_0x517afa,_0x344e83=new URL(window[_0x2b8b2b(0x290)][_0x2b8b2b(0x250)]);_0x344e83[_0x2b8b2b(0x1fb)][_0x2b8b2b(0x11e)](_0x1182bd,_0x4440e3),_0x4ce1b5?window['history'][_0x2b8b2b(0x11f)]('','',_0x344e83[_0x2b8b2b(0xee)]()):window[_0x2b8b2b(0x173)][_0x2b8b2b(0x125)]('','',_0x344e83['toString']());}[_0x517afa(0xf1)](_0x72dc06,_0x576f15=!0x1){const _0x396972=_0x517afa,_0x4e151c=new URL(window[_0x396972(0x290)]['href']);_0x4e151c['searchParams'][_0x396972(0x26d)](_0x72dc06),_0x576f15?window[_0x396972(0x173)][_0x396972(0x11f)]('','',_0x4e151c['toString']()):window[_0x396972(0x173)][_0x396972(0x125)]('','',_0x4e151c[_0x396972(0xee)]());}[_0x517afa(0xf5)](_0x42739c){const _0x59ea87=_0x517afa;var _0x5d2149;return(_0x5d2149=new URL(window[_0x59ea87(0x290)][_0x59ea87(0x250)])[_0x59ea87(0x1fb)][_0x59ea87(0x19b)](_0x42739c))!=null?_0x5d2149:void 0x0;}}var Dn=Object['defineProperty'],Nn=Object['getOwnPropertyDescriptor'],bn=(_0x75f93a,_0x450df4,_0x1e14f0)=>_0x450df4 in _0x75f93a?Dn(_0x75f93a,_0x450df4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1e14f0}):_0x75f93a[_0x450df4]=_0x1e14f0,Un=(_0x3fb22a,_0x612123,_0x1110f8,_0xd35fa1)=>{const _0x17934a=_0x517afa;for(var _0x29f87a=_0xd35fa1>0x1?void 0x0:_0xd35fa1?Nn(_0x612123,_0x1110f8):_0x612123,_0x1b468b=_0x3fb22a[_0x17934a(0x1d1)]-0x1,_0x3b0d11;_0x1b468b>=0x0;_0x1b468b--)(_0x3b0d11=_0x3fb22a[_0x1b468b])&&(_0x29f87a=_0x3b0d11(_0x29f87a)||_0x29f87a);return _0x29f87a;},Ne=(_0x25a969,_0x350ae3)=>(_0xc584a9,_0x471781)=>_0x350ae3(_0xc584a9,_0x471781,_0x25a969),Ln=(_0x35d2d9,_0x11516a,_0x4f6538)=>bn(_0x35d2d9,_0x11516a+'',_0x4f6538);const Mn=_0x517afa(0x1c2);let Be=class extends _0x576e66{constructor(_0x134e48=rt,_0x21f916,_0x557771,_0x11708a){const _0xbbb914=_0x517afa;super(),this[_0xbbb914(0x180)]=_0x134e48,this[_0xbbb914(0x113)]=_0x21f916,this[_0xbbb914(0x22f)]=_0x557771,this[_0xbbb914(0xc6)]=_0x11708a;const {..._0x4b6022}=_0xff84a3({},rt,this[_0xbbb914(0x180)]);this[_0xbbb914(0xc6)][_0xbbb914(0x230)](an,_0x4b6022);}[_0x517afa(0x23a)](){const _0xed6282=_0x517afa;this[_0xed6282(0x150)](),this['_initDependencies']();}['onRendered'](){const _0x325492=_0x517afa;this[_0x325492(0xae)]();}[_0x517afa(0x150)](){const _0x40ac8b=_0x517afa;var _0x28c032;const _0x366b49=[[je],[de],[he],[_e],[le],[Xe],[At,{'useClass':Rn}],[_0x5adab9,{'useClass':_0x558214}],[_0x190965,{'useClass':xe}],[oe],[ue],[ce],[H],[Ae],[ae]];_0x183763(this[_0x40ac8b(0x22f)],_0x328036(_0x366b49,(_0x28c032=this[_0x40ac8b(0x180)])==null?void 0x0:_0x28c032[_0x40ac8b(0x100)]));}['_registerRenderDependencies'](){const _0x5ac2d4=_0x517afa;this[_0x5ac2d4(0x161)](this['_renderManagerService'][_0x5ac2d4(0x6e)](_0x4ed0b3[_0x5ac2d4(0xf0)],[ye])),this['disposeWithMe'](this[_0x5ac2d4(0x113)][_0x5ac2d4(0x6e)](_0x4ed0b3[_0x5ac2d4(0x211)],[$e]));}['_initDependencies'](){const _0x587f12=_0x517afa;_0x36d93c(this[_0x587f12(0x22f)],[[H],[oe],[ue],[ce],[ae],[de]]);}};Ln(Be,_0x517afa(0x22e),Mn),Be=Un([_0x2422e9(_0x246cf1),Ne(0x1,_0x7acb9e),Ne(0x2,_0x388393(_0x258030)),Ne(0x3,_0x6a4de3)],Be);var An=Object[_0x517afa(0x217)],Pn=(_0x2ff376,_0x9fac01,_0x35963e,_0x81f380)=>{const _0x3baa0e=_0x517afa;for(var _0x1e3e4d=_0x81f380>0x1?void 0x0:_0x81f380?An(_0x9fac01,_0x35963e):_0x9fac01,_0x538f2f=_0x2ff376[_0x3baa0e(0x1d1)]-0x1,_0x412cb3;_0x538f2f>=0x0;_0x538f2f--)(_0x412cb3=_0x2ff376[_0x538f2f])&&(_0x1e3e4d=_0x412cb3(_0x1e3e4d)||_0x1e3e4d);return _0x1e3e4d;},J=(_0xb9c1f1,_0x13955e)=>(_0x14ce0f,_0x39c5de)=>_0x13955e(_0x14ce0f,_0x39c5de,_0xb9c1f1);let ct=class extends _0x5c223d{constructor(_0x3428e1,_0x2f0096,_0x48cc36,_0x53a874,_0x291fd9){super(_0x3428e1,_0x2f0096,_0x48cc36,_0x53a874,_0x291fd9);}async['createSocket'](_0x1bd2c1){const _0x5c280a=_0x517afa,_0x5cebef=await this[_0x5c280a(0xc5)](),_0x51fbc2=this['_createSocketURL'](_0x1bd2c1,_0x5cebef);return this[_0x5c280a(0x122)](_0x51fbc2);}[_0x517afa(0x25e)](_0x4bf289,_0x23a8d5){const _0x8ca50a=_0x517afa,_0x2a701c=typeof window>'u'?new URL(_0x4bf289):new URL(_0x4bf289,window[_0x8ca50a(0x290)][_0x8ca50a(0x87)]);_0x2a701c[_0x8ca50a(0x1fb)][_0x8ca50a(0x11e)]('sessionTicket',_0x23a8d5);const _0x57240a=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x8ca50a(0x290)][_0x8ca50a(0x1b3)]);return _0x57240a['get']('runId')&&_0x2a701c[_0x8ca50a(0x1fb)][_0x8ca50a(0x11e)](_0x8ca50a(0x6b),_0x57240a[_0x8ca50a(0x19b)](_0x8ca50a(0x6b))),_0x2a701c[_0x8ca50a(0xee)]();}async[_0x517afa(0xc5)](){const _0x2b8b07=_0x517afa;var _0x10da06,_0x3b371b,_0x2e7c0a;const _0x490f68=this[_0x2b8b07(0xc6)][_0x2b8b07(0x201)](_0x174b68),_0x48659f=(_0x10da06=_0x490f68==null?void 0x0:_0x490f68[_0x2b8b07(0x64)])!=null?_0x10da06:_0x84448e;return(_0x2e7c0a=(_0x3b371b=(await this[_0x2b8b07(0x21b)][_0x2b8b07(0x19b)](_0x48659f,{'headers':{'Content-Type':_0x2b8b07(0x258)}}))['body'])==null?void 0x0:_0x3b371b[_0x2b8b07(0x184)])!=null?_0x2e7c0a:'';}};ct=Pn([J(0x0,_0x388393(_0x258030)),J(0x1,_0x388393(_0x345138)),J(0x2,_0x6a4de3),J(0x3,_0x46da51),J(0x4,_0x3419af)],ct);var wn=Object[_0x517afa(0x217)],yn=(_0x8e2e0f,_0x1aeee1,_0xf4372,_0x7112)=>{const _0x2dbf6a=_0x517afa;for(var _0x58496e=_0x7112>0x1?void 0x0:_0x7112?wn(_0x1aeee1,_0xf4372):_0x1aeee1,_0x4ce315=_0x8e2e0f[_0x2dbf6a(0x1d1)]-0x1,_0x2f09c1;_0x4ce315>=0x0;_0x4ce315--)(_0x2f09c1=_0x8e2e0f[_0x4ce315])&&(_0x58496e=_0x2f09c1(_0x58496e)||_0x58496e);return _0x58496e;},be=(_0x479338,_0x4ebe8b)=>(_0x11f824,_0x2f569b)=>_0x4ebe8b(_0x11f824,_0x2f569b,_0x479338);let _t=class extends _0x4057f7{constructor(_0x32cabd,_0x120fb2,_0x375742){const _0x5dbca3=_0x517afa;super(),this[_0x5dbca3(0x1a5)]=_0x32cabd,this['_httpService']=_0x120fb2,this[_0x5dbca3(0xc6)]=_0x375742;}async[_0x517afa(0x190)](_0x30c50c,_0xae4965,_0x16543f,..._0x465e95){const _0x3038d3=_0x517afa;var _0x5b0974,_0x193cd5,_0x59b5b3,_0x57d416;const _0x163a08=this[_0x3038d3(0x1a5)][_0x3038d3(0x228)]();if(!_0x163a08)throw new Error(_0x3038d3(0xa2));const _0x6b7b66=((_0x5b0974=this['_configService'][_0x3038d3(0x201)](_0x5be24c))!=null?_0x5b0974:_0x2db30)+'/'+_0x30c50c+_0x3038d3(0x247)+_0xae4965,_0x1d4631=new URL(window[_0x3038d3(0x290)][_0x3038d3(0x250)]),_0x23ad41={'scriptId':_0x30c50c,'runId':(_0x193cd5=_0x1d4631[_0x3038d3(0x1fb)][_0x3038d3(0x19b)](_0x3038d3(0x6b)))!=null?_0x193cd5:'','function':_0xae4965,'unitId':_0x163a08[_0x3038d3(0x90)](),'argsOfFunction':JSON[_0x3038d3(0xff)](_0x465e95),'invokeId':(_0x59b5b3=_0x16543f['invokeId'])!=null?_0x59b5b3:'','executionId':(_0x57d416=_0x16543f[_0x3038d3(0x1ea)])!=null?_0x57d416:''};try{const _0x1201ad=await this[_0x3038d3(0x21b)][_0x3038d3(0x235)](_0x6b7b66,{'body':_0x23ad41});return _0x1201ad[_0x3038d3(0x15f)][_0x3038d3(0x154)]&&_0x1201ad['body'][_0x3038d3(0x154)]['code']!==Z['OK']?_0x3038d3(0xb9):_0x1201ad[_0x3038d3(0x15f)][_0x3038d3(0x18e)];}catch{return _0x3038d3(0xb9);}}};_t=yn([be(0x0,_0x30c7ee),be(0x1,_0x388393(_0x345138)),be(0x2,_0x6a4de3)],_t);const lt=0x7530,ht=_0x517afa(0x22c);class tr extends _0x4057f7{constructor(){const _0x4c1c38=_0x517afa;super(),l(this,_0x4c1c38(0x1f1),_0x24b861()),l(this,_0x4c1c38(0x1ac),new Set()),l(this,_0x4c1c38(0x9a),new Map()),l(this,_0x4c1c38(0x134),null),l(this,_0x4c1c38(0x1fd),new Map()),l(this,_0x4c1c38(0x1c8),new Map()),this['_init']();}[_0x517afa(0x121)](){const _0x520346=_0x517afa;super[_0x520346(0x121)](),this[_0x520346(0x1fd)][_0x520346(0x17f)]((_0xbf1db2,_0x165190)=>this[_0x520346(0x148)](_0x165190)),this[_0x520346(0x134)]&&window[_0x520346(0xe7)](this[_0x520346(0x134)]);}['getUnitStatus$'](_0x53e614){return this['_ensureSubject'](_0x53e614)['pipe'](_0xfe7dd9());}[_0x517afa(0x265)](_0x135c13){const _0x39a802=_0x517afa;this[_0x39a802(0x1ac)][_0x39a802(0xf2)]===0x0&&this['_scheduleHeartbeat'](),this[_0x39a802(0x1ac)][_0x39a802(0xef)](_0x135c13),this[_0x39a802(0x174)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x135c13],'isForwarded':!0x1});}[_0x517afa(0xcc)](_0x856fa3){const _0x211217=_0x517afa;this['_selfUnitIDs'][_0x211217(0x26d)](_0x856fa3),this[_0x211217(0x1ac)][_0x211217(0xf2)]===0x0&&this[_0x211217(0x134)]&&window['clearInterval'](this[_0x211217(0x134)]);}['_init'](){const _0x54dbb8=_0x517afa;this[_0x54dbb8(0x161)](_0x5d128c(_0x258e3e(window,_0x54dbb8(0x1a6))['subscribe'](_0x57c6e5=>{const _0x5600b9=_0x54dbb8;if(_0x57c6e5[_0x5600b9(0x1a1)]!==ht||!_0x57c6e5[_0x5600b9(0xb6)])return;const _0x12f928=JSON[_0x5600b9(0x1a2)](_0x57c6e5[_0x5600b9(0xb6)]);this['_handleEvent'](_0x12f928);}))),window['addEventListener'](_0x54dbb8(0xd4),()=>this[_0x54dbb8(0x174)]({'type':0x1,'memberID':this[_0x54dbb8(0x1f1)],'unitIDs':Array[_0x54dbb8(0x1cd)](this[_0x54dbb8(0x1ac)])}));}[_0x517afa(0x1d3)](_0x277228){const _0x2bc802=_0x517afa;switch(_0x277228[_0x2bc802(0x7e)]){case 0x0:this[_0x2bc802(0x251)](_0x277228);break;case 0x1:this[_0x2bc802(0x240)](_0x277228);break;case 0x2:this['_handleHeartbeatEvent'](_0x277228);break;}}[_0x517afa(0x251)](_0x41631c){const _0x28cd09=_0x517afa,{unitIDs:_0x3fcd1b,memberID:_0x322d0d,isForwarded:_0x3561e7}=_0x41631c;_0x3fcd1b[_0x28cd09(0x17f)](_0x234857=>{const _0x35277b=_0x28cd09;if(!_0x3561e7&&this[_0x35277b(0x9a)]['has'](_0x234857)&&this['_ensureSubject'](_0x234857)['next'](_0x182996['OTHER_CLIENTS_EDITING']),!this[_0x35277b(0x9a)][_0x35277b(0x248)](_0x234857)||!this[_0x35277b(0x9a)][_0x35277b(0x19b)](_0x234857)[_0x35277b(0x248)](_0x322d0d)){const _0x30e2e4=this['_unitOnClients']['get'](_0x234857)||new Set();_0x30e2e4[_0x35277b(0xef)](_0x322d0d),this[_0x35277b(0x9a)][_0x35277b(0x11e)](_0x234857,_0x30e2e4),this[_0x35277b(0x175)](_0x322d0d);}}),_0x3561e7||this[_0x28cd09(0x174)]({'type':0x0,'memberID':this[_0x28cd09(0x1f1)],'unitIDs':[...this[_0x28cd09(0x1ac)]],'isForwarded':!0x0});}[_0x517afa(0x175)](_0x16f577){const _0x1dca94=_0x517afa;this[_0x1dca94(0x148)](_0x16f577);const _0x3d05b3=window[_0x1dca94(0x1cf)](()=>{const _0x396a66=_0x1dca94;this['_unitOnClients'][_0x396a66(0x17f)](_0x1c1128=>{_0x1c1128['delete'](_0x16f577);});},lt*0x2);this[_0x1dca94(0x1fd)]['set'](_0x16f577,_0x3d05b3);}[_0x517afa(0x148)](_0x4de560){const _0x105f79=_0x517afa;if(this[_0x105f79(0x1fd)]['has'](_0x4de560)){const _0x53e76c=this[_0x105f79(0x1fd)][_0x105f79(0x19b)](_0x4de560);_0x53e76c&&window[_0x105f79(0xbe)](_0x53e76c),this['_clearOtherTimers'][_0x105f79(0x11e)](_0x4de560,null);}}[_0x517afa(0x240)](_0x5a6670){const _0xec18cf=_0x517afa,{memberID:_0x3560e0,unitIDs:_0x5cb6f8}=_0x5a6670;_0x5cb6f8[_0xec18cf(0x17f)](_0x4b52e0=>{const _0x7cf082=_0xec18cf;var _0x2e045e;const _0x18a1d7=this[_0x7cf082(0x9a)]['get'](_0x4b52e0);_0x18a1d7&&(_0x18a1d7[_0x7cf082(0x26d)](_0x3560e0),(_0x2e045e=this[_0x7cf082(0x241)](_0x4b52e0))==null||_0x2e045e[_0x7cf082(0xb2)](_0x18a1d7['size']===0x0?_0x182996[_0x7cf082(0x102)]:_0x182996[_0x7cf082(0x159)]));}),this[_0xec18cf(0x148)](_0x3560e0);}['_handleHeartbeatEvent'](_0x57da80){const _0x41e076=_0x517afa;this[_0x41e076(0x175)](_0x57da80['memberID']);}[_0x517afa(0x174)](_0x347b81){const _0x2992a6=_0x517afa;localStorage[_0x2992a6(0x18d)](ht,JSON['stringify'](_0x347b81));}[_0x517afa(0x18c)](){const _0x4d3b59=_0x517afa;this[_0x4d3b59(0x134)]=window[_0x4d3b59(0x297)](()=>{const _0xc57d32=_0x4d3b59;this['_send']({'type':0x2,'memberID':this[_0xc57d32(0x1f1)]});},lt);}[_0x517afa(0x241)](_0x32e38e){const _0x232c48=_0x517afa;return this[_0x232c48(0x1c8)][_0x232c48(0x248)](_0x32e38e)||this[_0x232c48(0x1c8)]['set'](_0x32e38e,new _0x340b13(_0x182996[_0x232c48(0x102)])),this[_0x232c48(0x1c8)][_0x232c48(0x19b)](_0x32e38e);}}export{ct as BrowserCollaborationSocketService,ae as CollaborationDataLoaderController,oe as DesktopCollaborationStatusDisplayController,At as IURLService,_t as RemoteUniscriptService,qi as SheetCollabCursorShape,Be as UniverCollaborationClientUIPlugin,tr as WebBrowserSingleActiveUnitService,Rn as WebURLService};
1
+ const _0x10cc18=_0x58c2;(function(_0x1b9ca3,_0x4cf5b1){const _0x461f6f=_0x58c2,_0x5953cf=_0x1b9ca3();while(!![]){try{const _0x3c3633=parseInt(_0x461f6f(0x319))/0x1*(parseInt(_0x461f6f(0x329))/0x2)+parseInt(_0x461f6f(0x236))/0x3+-parseInt(_0x461f6f(0x224))/0x4*(-parseInt(_0x461f6f(0x166))/0x5)+-parseInt(_0x461f6f(0x247))/0x6*(parseInt(_0x461f6f(0x129))/0x7)+parseInt(_0x461f6f(0x235))/0x8*(-parseInt(_0x461f6f(0x15a))/0x9)+parseInt(_0x461f6f(0x19b))/0xa+-parseInt(_0x461f6f(0x266))/0xb*(-parseInt(_0x461f6f(0x314))/0xc);if(_0x3c3633===_0x4cf5b1)break;else _0x5953cf['push'](_0x5953cf['shift']());}catch(_0x316892){_0x5953cf['push'](_0x5953cf['shift']());}}}(_0x270e,0x97fac));var Yt=Object[_0x10cc18(0x1e4)],Wt=(_0x3cb592,_0x8679c5,_0x23aa55)=>_0x8679c5 in _0x3cb592?Yt(_0x3cb592,_0x8679c5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x23aa55}):_0x3cb592[_0x8679c5]=_0x23aa55,_=(_0x2af420,_0x2e0d11,_0x43dedb)=>Wt(_0x2af420,typeof _0x2e0d11!=_0x10cc18(0x2de)?_0x2e0d11+'':_0x2e0d11,_0x43dedb);import{jsx as _0xccee15,jsxs as _0xc66364}from'react/jsx-runtime';import{CollaborationStatus as _0x3d84ba,CollaborationSessionService as _0x1abc06,CollaborationController as _0x69ed9c,DataLoaderService as _0x382568,MemberService as _0xf95f76,SessionStatus as _0x756bff,ILocalCacheService as _0x3a4f5a,CollaborationUIEventService as _0x32b243,CollaborationUIEventId as _0x5e0b6b,DocCollaborationEntity as _0x59b116,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x209e63,getLocalCacheKey as _0x59f688,LOCAL_CACHE_INTERVAL as _0x4a9fea,LOCAL_CACHE_INTERVAL_KEY as _0x24dd1f,UniverCollaborationClientPlugin as _0x4c184a,CollaborationSocketService as _0x4e6c96,DEFAULT_WS_SESSION_TICKET_URL as _0x45c098,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x2d33ca,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x550c3a,UnitStatus as _0x4078f0}from'@univerjs-pro/collaboration-client';import{LocaleService as _0xefd7ba,IUniverInstanceService as _0x631d26,Inject as _0x2c9f2f,Injector as _0x3955fb,Disposable as _0x3e748e,createIdentifier as _0x5d6f8c,ILogService as _0x1368e3,ICommandService as _0x526fee,Optional as _0x2f165a,RxDisposable as _0x460db8,Workbook as _0x18daa7,DOC_RANGE_TYPE as _0x22acc,debounce as _0x51b589,Rectangle as _0x40c7c0,DisposableCollection as _0x5a6462,toDisposable as _0x555679,UniverInstanceType as _0x5045e8,generateRandomId as _0x5236ab,COLORS as _0x10fc5a,ColorKit as _0x1a8ee3,ThemeService as _0x31d312,fromEventSubject as _0x2b51fa,Tools as _0x4984ae,CommandType as _0x3e471d,IConfigService as _0x56b98d,CanceledError as _0x20efe7,isFormulaString as _0x5b53ca,isFormulaId as _0x3e9eba,ILocalStorageService as _0x2ba981,DependentOn as _0x5aa65c,Plugin as _0x5ba41c,merge as _0x5c3498,registerDependencies as _0x4b4f71,mergeOverrideWithDependencies as _0x436173,touchDependencies as _0x569f6e}from'@univerjs/core';import{useObservable as _0x3a1844,useDependency as _0x22da28,IUIPartsService as _0x25683e,BuiltInUIPart as _0x4ec0d2,connectInjector as _0x3832e5,IBeforeCloseService as _0x4d68ed,IMessageService as _0x41d342,INotificationService as _0x3c2d52}from'@univerjs/ui';import{BehaviorSubject as _0x1ced39,switchMap as _0x5e120f,of as _0x281440,takeUntil as _0x55bd62,debounceTime as _0x3be16c,Subject as _0x495c27,filter as _0x12a7d2,merge as _0x153e90,combineLatest as _0x5c05c1,fromEvent as _0x5171f8,shareReplay as _0x1b1b8c,mapTo as _0x5a5b3d,distinctUntilChanged as _0x34b2d2}from'rxjs';import{Tooltip as _0x556043,clsx as _0x25975e,MessageType as _0x22c147}from'@univerjs/design';import{useRef as _0x13a3f9,createElement as _0x2bc3c8,forwardRef as _0x21f1d1,useCallback as _0x3ffd3d}from'react';import{IRemoteInstanceService as _0x2cc7be}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x3e1701,RefRangeService as _0x4afbe7,SetSelectionsOperation as _0x3c2d3f,SheetsSelectionsService as _0xc9e973,EffectRefRangId as _0xe50d17,handleIRemoveRow as _0x11bbdd,handleIRemoveCol as _0x27e994,handleMoveRange as _0x379eb2,handleInsertRow as _0x524712,handleInsertRangeMoveRight as _0x1916d7,handleInsertRangeMoveDown as _0x3177b4,handleInsertCol as _0x3b58f5,handleDeleteRangeMoveUp as _0x3a245f,handleDeleteRangeMoveLeft as _0xc34664,runRefRangeMutations as _0x178978}from'@univerjs/sheets';import{Shape as _0x28bace,Rect as _0x2dfad6,getColor as _0x44dbc,RegularPolygon as _0x2a7a95,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x4c9c8a,Vector2 as _0x4b7404,SHEET_VIEWPORT_KEY as _0x32c43e,IRenderManagerService as _0x20cff4}from'@univerjs/engine-render';import{HTTPService as _0x47ffcb,ISocketService as _0x2befe2,WebSocketService as _0x21a377}from'@univerjs/network';import{IDocClipboardService as _0x401c42,NodePositionConvertToCursor as _0x3f6a22,NodePositionConvertToRectRange as _0x4973b1,TEXT_RANGE_LAYER_INDEX as _0x531506,SetDocZoomRatioOperation as _0x198811,DocIMEInputManagerService as _0x10cfe8,DocStateChangeManagerService as _0x58cfb8}from'@univerjs/docs-ui';import{IImageIoService as _0x3ef8ac}from'@univerjs/drawing';function _0x270e(){const _0x15d413=['hovered','_collabCursorState$','push','OnLineIcon','transform','_renderManagerService','result','ENTITLE_CAN_NOT_BUY_LOWER_OTP','[Unhandled\x20Rejection]:\x20','...','getTypeOfUnitDisposed$','MOBILE_VERIFY_CODE_MISMATCH','UNIVER_SHEET','_status$','_unitOnClients','history','href','resize','sheetID','shift','addHandlerCallback','_toggleOnline','RemoveColCommandId','engine','_uiPartsService','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','translate(.97)','mutations','_initCommandExecutedListener','_entities','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_heartbeatTimer','size','filename','onRendered','transformByState','dispose$','clearTimeout','save','YUUMI_ASYNCIO_CANCELLED','_color','black','limitInfo','InsertColCommandId','fillStyle','body','none','on-line-icon_clip0_910_349','_scheduleClearOtherTimer','subUnitId','getSheetBySheetId','m2Prime','_roomMembers$','ALREADY_EXISTS','LICENSE_MAX_UNITS_EXCEEDED','_initUserListener','_registerRenderDependencies','4HZDXFn','init','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','exhaustSavingTask','MUTATION','setActiveRange','getViewport','_initEvent','setStateCache','location','1em','_updateLocalCursor','actions','includes','_handleHover','dispose','addObjects','405616igWxeR','567468NDgWAp','moveTo','UNIVER_DOC','set','path','find','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_startSheetCollabCursor','REDEMPTION_USER_NOT_ELIGIBLE','code','min','fillText','subunit','REDEMPTION_CODE_HAS_BEEN_CREATED','[CollaborationDataLoaderController]','[RemoteUniscriptService]:\x20no\x20focused\x20unit','labelPosition','5616xnmQJA','now','unitID','ticket','UPDATE_CURSOR','REDEMPTION_INVALID_CODE','_getFormulaLimitStatus','getActiveSheet','_initResize','_initWindowErrorListener','removeEventListener','_docStateChangeManagerService','getConfig','_shapes','onPointerMove$','beforeCommandExecuted','deepClone','getCollabEntity$','_document','getUnitId','stack','_clearPolling','defs','_init','_hovered','transformMutation','_draw','getMemberID','_beforeCloseService','delete','currentTheme$','550737xzoXGk','LOGIN_FAILED','searchParams','blue.400','JOIN_ROOM_FAILED','OTHER_CLIENTS_EDITING','key','_sheetSkeletonManagerService','onPointerLeave$','setTimeout','collabStatus.offline','_revisionService','_cursorShapes','runOnServer','_range','ENTITLE_CHAT_LIMIT_EXCEED','_httpService','eventID','_name','_messageService','name','REDEMPTION_USER_REDEEM_TIMES_EXCEED','PY_RUNTIME_SCRIPT_ERROR','pluginName','Unknown\x20user','getValue','startColumn','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','registerRenderModule','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','OFFLINE','drawWith','loadOfflineData','_onCursorDelete','subscribe','_drawAnchor','formula.calculation.waiting','hide','transformMutationsWithChangeset','_transformUndoRedoStack','_onCursorUpdate','executionId','_taskIds','idSuffix','_collaborationSessionService','VIEW_MAIN','tag','getUnitStatus$','endRow','pipe','UniverIcon','top','USER_NOT_FOUND','PENDING','_commandService','url(#on-line-icon_clip0_910_349)','transformSelections','evenodd','_hasFormulaInDirtyRanges','collab-text-anchor-','isActive','setAlpha','sessionTicket','_hover','entries','_memberService','ENTITLE_NEED_BILLING_ADDRESS','_docTransformSelectionsService','m1Prime','collaboration.closeRoom','/run/','SNAPSHOT_HAS_BEEN_REMOVED','/universer-api/license/formula/limit/start','FETCH_MISS','getColorFromTheme','WECHAT_HAS_BEEN_BOUND','/universer-api/license/formula/limit/status','_labelPosition','LICENSE_DISTRO_REJECTED','xlink:href','_online','ENSURE_SNAPSHOT_EXECUTION','PERMISSION_DENIED','YUUMI_RATE_OVER_LIMIT','RemoveRowCommandId','cursorInfo$','message','has','disposeUnit','http://www.w3.org/2000/svg','column','_currentUsage','_initCommandInterceptor','univer-mr-2\x20univer-flex\x20univer-text-xl','subscribeEvent','_docClipboardService','currentSkeleton$','getMergeData','Warning','formula.calculation.unable','children','random','YUUMI_AI_RUN_FAILED','_applyCommand','_backgroundColor','_updateURLWithCurrentState','newValue','isArray','_handleEvent','use','trim','_initDependencies','/universer-api/frontend/logs','_updateCollabCursors','PAYMENT_CHANNEL_NOT_SUPPORT','mask','DeleteRangeMoveUpCommandId','measureText','univer-flex\x20univer-items-center','?taskId=','symbol','onPointerEnter$','TEXT','getVpScrollXYInfoByPosToVp','memberID','asObservable','_handleLeaveEvent','LICENSE_IMPORT_SIZE_EXCEEDED','_docTransformIMECacheService','YUUMI_NO_CUBOID_FOR_QUESTION','requireSession','_cursors','source','YUUMI_URL_COL_OUT_OF_RANGE','docStateChange$','replace','_localStorageService','from','_saveCache','parse','INVALID_ARGUMENT','TOO_MANY_REQUESTS','font','getTypeOfUnitAdded$','div','_monkeyPatchLogService','_startDocCollabCursor','_cachedData','InsertRangeMoveDownCommandId','map','M0\x200H16V16H0z','unsubscribe','_cursor','setInterval','white','_univerInstanceService','displayName','_localeService','setConfig','clipPath','disableLocalCache','redoState','_maxFormulaLimit','complete','FromArray','getUnit','ONLINE','getCurrentUnitForType','getCellPositionByOffset','collabStatus.conflict','onMouseMove','_memberID','_lastPointer','runId','204kgQtTX','range','toRgbString','HEADER_MENU','collabStatus.syncing','627xEuMYm','lineTo','_send','_startCalculationLimit','transformIMECache','APPLY_REJECT','unhandledrejection','width','APPLY_REVISION_CONFILICT','currentColor','REDEMPTION_CODE_NOT_STARTED','transformRemoteChangeset','addEventListener','yellow.400','getSheetId','_cursorInfo$','578uTxvgC','YUUMI_SUBSCRIPTION_NOT_FOUND','#FFF','status$','_config','restore','_handleJoinEvent','_assignedColors','_collaborationUIEventService','addClipboardHook','_refreshCollabCursors','editingUnit','show','cursorInfo','roomMembers$','_textBubble','_syncEditingCollabCursorService','enableFrontendLog','closePath','SUBMIT_CHANGESET_TIMEOUT','_scheduleHeartbeat','_injector','fillRule','round','CHANGESET_REVISION_CONFILICT','stageInfo','off-line-icon_clip0_910_343','_collabSessionService','startRow','getUndoRedoMutationParamsCache','length','flatMap','_toggleOffline','session.connection-failed','REDEMPTION_CODE_INACTIVE','executeCommand','add','CONNECTOR_DATA_TOO_LARGE','ENTITLE_REPORT_LIMIT_EXCEED','onLocalMutation','imageSourceType','with','getRenderById','doc.mutation.rich-text-editing','selection','backgroundColor','undoState','NOT_COLLAB','_docSkeletonManagerService','_releaseCalculationLimit','_removeCollabCursors','assign','_transformHistoryAndStateStack','getRangePointData','_createSocketURL','_pollingInterval','_saveTaskMap','maxFormulaLimit','_initUnhandledRejectionListener','_removeClearOtherTimer','text','_disabled','getSkeleton','collabStatus.synced','split','_showGuardMessage','ranges','APPLY_PERMISSION_DENIED','_themeService','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','permission.content','setShapeProps','_initEntityListener','on-line-icon','getCurrentRevOfUnit','skeleton','get','_localCacheService','7427NdRSZD','INTERNAL_ERROR','string','forEach','registerComponent','collab-text-range-','Success','fill','colorChannel1','INVALID_INVITE_CODE','_drawRectRange','colno','_getSaveTimeout','INVITE_CODE_ALREADY_BOUND','socket$','_initStatusListener','off-line-icon','debug','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','getUniverSheetInstance','_getAnchorBounding','transformStateCache','assignAColorForMemberID','_clearOtherTimers','_setupSubUnitSync','current','NO_OTHER_CLIENTS_EDITING','activeSheet$','_docTransformStateCacheService','REDEMPTION_CODE_FULLY_REDEEMED','svg','session.will-retry','_entityInit$','parseInt','UNRECOGNIZED','addObject','_uploadLog','collab-rect-range-','url(#$1','reconnect','params','YUUMI_TABLE_NOT_FOUND_IN_UNIT','Error','createInstance','_scene','urlChange$','getAncestorScale','APPLY_NON_SEQUENTIAL_REVISION','selections','45PQlhKh','send','DeleteRangeMoveLeftCommandId','override','replaceState','endColumn','USER_NOT_INVITED_CODE','storage','application/json','registerBeforeClose','onCommandExecuted','invokeId','1185875zrVCWH','getFocusedUnit','USERS_LEAVE','origin','unitId','arc','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_transformService','_eventUnsubscribe','stringify','onStarting','setParam','YUUMI_CONNECTOR_URL_NOT_FOUND','contains','UNAUTHENTICATED','join','_drawTextRange','_colorAssignService','popstate','ENTITLE_DUP_SUBSCRIPTION','height','SOCKET_FAILED_RETRY','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_session','_checkCalculationAvailable','_transformPreviousActiveRange','Failed','url(#off-line-icon_clip0_910_343)','_selfUnitIDs','getItem','_onRefRangeChange','getStateCache','totalFormulasToCalculate','_context','rgba(255,\x20255,\x20255,\x200.01)','getCollabCursors$','sheetId','_handleHeartbeatEvent','AWAITING_WITH_PENDING','_dataLoaderService','_imageIoService','_hideTimer','_logService','collabStatus.fetchMiss','_scheduleSaving','_id','collaboration.single-unit.warning','_refRangeService','COMPLETION_FINISHED','_ensureSubject','USER_IS_ANONYMOUS','syncEditingCollabCursor','YUUMI_ALL_TABLES_IS_INVALID','4104410cyGPRQ','_instanceService','_updateSubUnitFromURLParams','getParam','findNodePositionByCharIndex','LICENSE_EXPORT_SIZE_EXCEEDED','_colorIndex','textRanges','_urlService','_docSyncEditingCollabCursorService','setItem','UNDEFINED','_getSessionTicket','SNAPSHOT_INVALID_SNAPSHOT','sessionStatus$','red.300','_setFormulaLimitStatus','error','clearInterval','CONFLICT','then','OTHER_CLIENT_EDITING','uni.network.url-service','purple.300','LOGIN_TOKEN_PROCESSING_FAILED','setUndoRedoMutationParamsCache','unshift','START_CALCULATION','_anchor','_anchorDot','some','NOT_FOUND','INVITE_CODE_HAS_BEEN_UES','disposeWithMe','triggerDblclick','MOBILE_HAS_BEEN_BOUND','AUTHORIZE_CODE_ILLEGAL','MoveRangeCommandId','catch','collab-client.tooltip.reconnect','RECT','getOffsetConfig','event$','collabCursorState$','bottom','_unitStatus','_collaborationController','_configService','DATA_SOURCE_TOO_LARGE','toString','collaboration-client-ui.config','type','EMAIL_HAS_BEEN_BOUND','formula.calculation.started','attrs','_collabCursorController','getCurrent','_setupBeforeClosingHandler','EMAIL_VERIFY_CODE_MISMATCH','_checkAndWaitForCalculationPermission','getActiveRange','getDocRanges','0\x200\x2016\x2016','lineno','_lastResponseTimestamp','currentUsage','ERROR_AGAIN','registerRefRange','saveTaskMap','data','next','_render','post','defineProperty','color','SUCCESS','isEditing','collabStatus.notCollab','getUnhiddenWorksheets','getOwnPropertyDescriptor'];_0x270e=function(){return _0x15d413;};return _0x270e();}import{ITransformService as _0x447d81,CollaborationEvent as _0x56f5f5,isTransformMutationFailure as _0x3ff0c5,isTransformMutationsWithChangesetSuccess as _0x4e8f7d,RevisionService as _0x6cec3d,ISnapshotServerService as _0x4a0d66}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x359fd6,RichTextEditingMutation as _0x15c2de,DocSelectionManagerService as _0x196312,DocSkeletonManagerService as _0x9d459b}from'@univerjs/docs';import{deserializeRangeWithSheet as _0xaa972c,serializeRangeWithSheet as _0x5ebf47,FormulaExecuteStageType as _0x915ac4,FormulaExecutedStateType as _0x4723a6,SetFormulaCalculationStartMutation as _0x19bce6,SetFormulaCalculationNotificationMutation as _0x391c35}from'@univerjs/engine-formula';import{map as _0x47b623,filter as _0x3cb932,throttleTime as _0x5756a9,takeUntil as _0x2ea52d,switchMap as _0x33a13a}from'rxjs/operators';import{SheetSkeletonManagerService as _0x2cb62f,getCoordByCell as _0x2094e3,getSheetObject as _0x32f0c0}from'@univerjs/sheets-ui';function Ge({ref:_0x1032b1,..._0x1693ed}){const _0x16917e=_0x10cc18,{icon:_0x470a1d,id:_0x55b0fb,className:_0x5634a5,extend:_0x57258d,..._0xff030d}=_0x1693ed,_0xdc16de=('univerjs-icon\x20univerjs-icon-'+_0x55b0fb+'\x20'+(_0x5634a5||''))[_0x16917e(0x2d4)](),_0x29fe6a=_0x13a3f9('_'+Ei());return At(_0x470a1d,''+_0x55b0fb,{'defIds':_0x470a1d['defIds'],'idSuffix':_0x29fe6a[_0x16917e(0x142)]},{'ref':_0x1032b1,'className':_0xdc16de,..._0xff030d},_0x57258d);}function At(_0x1a7b41,_0x5b6a2d,_0x28ca18,_0x381858,_0x234f54){const _0x1f4b57=_0x10cc18;return _0x2bc3c8(_0x1a7b41[_0x1f4b57(0x294)],{'key':_0x5b6a2d,...gi(_0x1a7b41,_0x28ca18,_0x234f54),..._0x381858},(vi(_0x1a7b41,_0x28ca18)[_0x1f4b57(0x2ca)]||[])['map']((_0x31805a,_0x229cc7)=>At(_0x31805a,_0x5b6a2d+'-'+_0x1a7b41[_0x1f4b57(0x294)]+'-'+_0x229cc7,_0x28ca18,void 0x0,_0x234f54)));}function gi(_0x39d7f2,_0xa8b9d5,_0x37679f){const _0x43dd0e=_0x10cc18,_0x535db8={..._0x39d7f2[_0x43dd0e(0x1d1)]};_0x37679f!=null&&_0x37679f[_0x43dd0e(0x131)]&&_0x535db8[_0x43dd0e(0x130)]===_0x43dd0e(0x131)&&(_0x535db8[_0x43dd0e(0x130)]=_0x37679f[_0x43dd0e(0x131)]),_0x39d7f2['tag']===_0x43dd0e(0x2d9)&&_0x535db8['id']&&(_0x535db8['id']=_0x535db8['id']+_0xa8b9d5[_0x43dd0e(0x291)]),Object[_0x43dd0e(0x2a6)](_0x535db8)[_0x43dd0e(0x12c)](([_0x1f9a06,_0x8b6b6e])=>{const _0x68dbf3=_0x43dd0e;_0x1f9a06==='mask'&&typeof _0x8b6b6e==_0x68dbf3(0x12b)&&(_0x535db8[_0x1f9a06]=_0x8b6b6e[_0x68dbf3(0x2ed)](/url\(#(.*)\)/,'url(#$1'+_0xa8b9d5['idSuffix']+')'));});const {defIds:_0x470cfc}=_0xa8b9d5;return!_0x470cfc||_0x470cfc[_0x43dd0e(0xf9)]===0x0||(_0x39d7f2[_0x43dd0e(0x294)]===_0x43dd0e(0x2d3)&&_0x535db8['xlink:href']&&(_0x535db8[_0x43dd0e(0x2b5)]=_0x535db8[_0x43dd0e(0x2b5)]+_0xa8b9d5['idSuffix']),Object[_0x43dd0e(0x2a6)](_0x535db8)[_0x43dd0e(0x12c)](([_0x532c0e,_0x2a7f81])=>{const _0x4d13f6=_0x43dd0e;typeof _0x2a7f81=='string'&&(_0x535db8[_0x532c0e]=_0x2a7f81['replace'](/url\(#(.*)\)/,_0x4d13f6(0x14f)+_0xa8b9d5[_0x4d13f6(0x291)]+')'));})),_0x535db8;}function vi(_0x311d5e,_0x1fe83c){const _0x2b0b30=_0x10cc18;var _0x19b777;const {defIds:_0x23b623}=_0x1fe83c;return!_0x23b623||_0x23b623[_0x2b0b30(0xf9)]===0x0?_0x311d5e:_0x311d5e['tag']===_0x2b0b30(0x25d)&&((_0x19b777=_0x311d5e['children'])!=null&&_0x19b777[_0x2b0b30(0xf9)])?{..._0x311d5e,'children':_0x311d5e[_0x2b0b30(0x2ca)][_0x2b0b30(0x2fb)](_0x27cb71=>typeof _0x27cb71[_0x2b0b30(0x1d1)]['id']==_0x2b0b30(0x12b)&&_0x23b623&&_0x23b623[_0x2b0b30(0x231)](_0x27cb71[_0x2b0b30(0x1d1)]['id'])?{..._0x27cb71,'attrs':{..._0x27cb71[_0x2b0b30(0x1d1)],'id':_0x27cb71[_0x2b0b30(0x1d1)]['id']+_0x1fe83c['idSuffix']}}:_0x27cb71)}:_0x311d5e;}function Ei(){const _0x47e230=_0x10cc18;return Math[_0x47e230(0x2cb)]()[_0x47e230(0x1cc)](0x24)['substring'](0x2,0x8);}Ge['displayName']=_0x10cc18(0x298);const pi={'tag':_0x10cc18(0x147),'attrs':{'xmlns':_0x10cc18(0x2bf),'fill':_0x10cc18(0x219),'viewBox':_0x10cc18(0x1d9),'width':_0x10cc18(0x22e),'height':_0x10cc18(0x22e)},'children':[{'tag':'g','attrs':{'clipPath':_0x10cc18(0x181)},'children':[{'tag':_0x10cc18(0x23a),'attrs':{'stroke':_0x10cc18(0x322),'d':_0x10cc18(0x281),'strokeLinecap':_0x10cc18(0xf2),'strokeLinejoin':_0x10cc18(0xf2),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x10cc18(0x305),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x10cc18(0x23a),'attrs':{'fill':_0x10cc18(0x300),'d':_0x10cc18(0x2fc)}}]}]}],'defIds':[_0x10cc18(0xf5)]},Pt=_0x21f1d1(function(_0x50745c,_0x510198){const _0x41abfd=_0x10cc18;return _0x2bc3c8(Ge,Object['assign']({},_0x50745c,{'id':_0x41abfd(0x139),'ref':_0x510198,'icon':pi}));});Pt[_0x10cc18(0x302)]='OffLineIcon';const Oi={'tag':_0x10cc18(0x147),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':'0\x200\x2017\x2016','width':_0x10cc18(0x22e),'height':_0x10cc18(0x22e)},'children':[{'tag':'g','attrs':{'clipPath':_0x10cc18(0x29d)},'children':[{'tag':_0x10cc18(0x23a),'attrs':{'stroke':_0x10cc18(0x322),'d':_0x10cc18(0x13b),'strokeLinecap':_0x10cc18(0xf2),'strokeLinejoin':_0x10cc18(0xf2),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x10cc18(0x305),'attrs':{'id':_0x10cc18(0x21a)},'children':[{'tag':_0x10cc18(0x23a),'attrs':{'fill':'white','d':_0x10cc18(0x2fc),'transform':_0x10cc18(0x205)}}]}]}],'defIds':[_0x10cc18(0x21a)]},wt=_0x21f1d1(function(_0x35ba9f,_0x555f66){const _0x9e3689=_0x10cc18;return _0x2bc3c8(Ge,Object[_0x9e3689(0x10e)]({},_0x35ba9f,{'id':_0x9e3689(0x124),'ref':_0x555f66,'icon':Oi}));});wt[_0x10cc18(0x302)]=_0x10cc18(0x1ee);function Ti(_0x2f3e4f){const _0x102c38=_0x10cc18;switch(_0x2f3e4f){case _0x3d84ba['OFFLINE']:return _0x102c38(0x270);case _0x3d84ba[_0x102c38(0x1ae)]:return _0x102c38(0x30f);case _0x3d84ba[_0x102c38(0x2af)]:return _0x102c38(0x191);case _0x3d84ba[_0x102c38(0x10a)]:return _0x102c38(0x1e8);case _0x3d84ba['AWAITING']:case _0x3d84ba[_0x102c38(0x18c)]:return _0x102c38(0x318);case _0x3d84ba['SYNCED']:case _0x3d84ba[_0x102c38(0x29b)]:return _0x102c38(0x11a);}}function Ci(_0x51055a){const _0x3e490c=_0x10cc18,{status$:_0x563f5d}=_0x51055a,_0x30171e=_0x3a1844(_0x563f5d,_0x3d84ba[_0x3e490c(0x10a)]),_0xc78957=_0x22da28(_0xefd7ba),_0x2e8536=_0x22da28(_0x1abc06),_0x376bba=_0x30171e!==_0x3d84ba[_0x3e490c(0x284)],_0x407a7b=_0xc78957['t'](Ti(_0x30171e)),_0x4ca82a=_0x376bba?_0xccee15(wt,{}):_0xccee15(Pt,{}),_0x27694d=_0x3ffd3d(()=>{const _0x373b99=_0x3e490c;_0x376bba||_0x2e8536[_0x373b99(0x150)]();},[_0x376bba,_0x2e8536]);function _0x4eda0f(){const _0x18540f=_0x3e490c;return _0xc66364(_0x18540f(0x2f6),{'className':_0x18540f(0x2dc),'onClick':_0x27694d,'children':[_0xccee15(_0x18540f(0x2f6),{'className':_0x25975e(_0x18540f(0x2c3),{'univer-text-green-500':_0x376bba,'univer-text-red-500':!_0x376bba}),'children':_0x4ca82a}),_0xccee15('div',{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x407a7b})]});}return _0x376bba?_0x4eda0f():_0xccee15(_0x556043,{'title':_0xc78957['t'](_0x3e490c(0x1c2)),'children':_0x4eda0f()});}var Ri=Object[_0x10cc18(0x1ea)],Di=(_0x16ece6,_0x440bf3,_0x544c52,_0x12d08c)=>{const _0x29e1c9=_0x10cc18;for(var _0x16574f=_0x12d08c>0x1?void 0x0:_0x12d08c?Ri(_0x440bf3,_0x544c52):_0x440bf3,_0x22b78e=_0x16ece6[_0x29e1c9(0xf9)]-0x1,_0x4358c1;_0x22b78e>=0x0;_0x22b78e--)(_0x4358c1=_0x16ece6[_0x22b78e])&&(_0x16574f=_0x4358c1(_0x16574f)||_0x16574f);return _0x16574f;},se=(_0x33b795,_0x5dda09)=>(_0xa9a24,_0x46ea2e)=>_0x5dda09(_0xa9a24,_0x46ea2e,_0x33b795);let ae=class extends _0x3e748e{constructor(_0x142d47,_0x29b506,_0x426a23,_0x32b696){const _0x15b32f=_0x10cc18;super(),_(this,_0x15b32f(0x1f8),new _0x1ced39(_0x3d84ba[_0x15b32f(0x10a)])),(this[_0x15b32f(0x301)]=_0x142d47,this[_0x15b32f(0xf0)]=_0x29b506,this[_0x15b32f(0x1c9)]=_0x426a23,this[_0x15b32f(0x203)]=_0x32b696,this['_initStatusComponent'](),this[_0x15b32f(0x138)]());}[_0x10cc18(0x138)](){const _0x30ab7d=_0x10cc18;this[_0x30ab7d(0x1bc)](this[_0x30ab7d(0x301)]['focused$'][_0x30ab7d(0x297)](_0x5e120f(()=>{const _0x229351=_0x30ab7d,_0x1a70b9=this['_univerInstanceService'][_0x229351(0x167)]();return _0x1a70b9?this[_0x229351(0x1c9)][_0x229351(0x258)](_0x1a70b9[_0x229351(0x25a)]()):_0x281440(null);}),_0x5e120f(_0x448f90=>_0x448f90?_0x448f90[_0x30ab7d(0x32c)]:_0x281440(_0x3d84ba['NOT_COLLAB'])))[_0x30ab7d(0x288)](_0x571140=>{const _0x2393d1=_0x30ab7d;this[_0x2393d1(0x1f8)][_0x2393d1(0x1e1)](_0x571140);}));}['_initStatusComponent'](){const _0xa63959=_0x10cc18;this[_0xa63959(0x1bc)](this[_0xa63959(0x203)][_0xa63959(0x12d)](_0x4ec0d2[_0xa63959(0x317)],()=>_0x3832e5(bi({'status$':this[_0xa63959(0x1f8)][_0xa63959(0x2e3)]()}),this[_0xa63959(0xf0)])));}};ae=Di([se(0x0,_0x631d26),se(0x1,_0x2c9f2f(_0x3955fb)),se(0x2,_0x2c9f2f(_0x69ed9c)),se(0x3,_0x25683e)],ae);function bi(_0x2d7b45){const {status$:_0x4b6af7}=_0x2d7b45;return function(){return _0xccee15(Ci,{'status$':_0x4b6af7});};}const yt=_0x5d6f8c(_0x10cc18(0x1b1));var Ni=Object[_0x10cc18(0x1ea)],Li=(_0x352138,_0x3ca791,_0x452907,_0x28f9ea)=>{const _0x351152=_0x10cc18;for(var _0x7f6ef1=_0x28f9ea>0x1?void 0x0:_0x28f9ea?Ni(_0x3ca791,_0x452907):_0x3ca791,_0x473383=_0x352138[_0x351152(0xf9)]-0x1,_0x211654;_0x473383>=0x0;_0x473383--)(_0x211654=_0x352138[_0x473383])&&(_0x7f6ef1=_0x211654(_0x7f6ef1)||_0x7f6ef1);return _0x7f6ef1;},K=(_0x446e29,_0x2cc895)=>(_0x2c5901,_0x180b87)=>_0x2cc895(_0x2c5901,_0x180b87,_0x446e29);let ce=class extends _0x460db8{constructor(_0x5a6037,_0x12276a,_0x8dd6c5,_0x3eb531,_0x140903){const _0x20f48c=_0x10cc18;super(),this[_0x20f48c(0x1a3)]=_0x5a6037,this[_0x20f48c(0x190)]=_0x12276a,this[_0x20f48c(0x29c)]=_0x8dd6c5,this[_0x20f48c(0x18d)]=_0x3eb531,_0x140903?_0x140903==null||_0x140903['whenReady']()['then'](()=>this['_init']()):(this[_0x20f48c(0x190)][_0x20f48c(0x13a)](_0x20f48c(0x244),_0x20f48c(0x204)),this[_0x20f48c(0x25e)]());}async[_0x10cc18(0x25e)](){const _0x54663a=_0x10cc18,_0x2a413f=this[_0x54663a(0x1a3)]['getParam']('unit'),_0x2abe4f=this['_urlService'][_0x54663a(0x19e)](_0x54663a(0x1ce)),_0xb594=this['_urlService'][_0x54663a(0x19e)](_0x54663a(0x242));if(!_0x2a413f||!_0x2abe4f){this['_logService']['debug'](_0x54663a(0x244),_0x54663a(0x120));return;}const _0x20f581=await this[_0x54663a(0x18d)]['loadUnit'](_0x2a413f,Number(_0x2abe4f),_0xb594);_0x20f581&&_0x20f581 instanceof _0x18daa7&&this[_0x54663a(0x141)](_0x20f581);}async['_setupSubUnitSync'](_0x289528){const _0x33760c=_0x10cc18;await this[_0x33760c(0x19d)](_0x289528),_0x289528[_0x33760c(0x144)][_0x33760c(0x297)](_0x55bd62(this[_0x33760c(0x20f)]))[_0x33760c(0x288)](_0x361d2c=>{const _0x5e0566=_0x33760c;_0x361d2c&&this[_0x5e0566(0x2cf)](_0x361d2c);}),this[_0x33760c(0x1a3)][_0x33760c(0x156)][_0x33760c(0x297)](_0x55bd62(this[_0x33760c(0x20f)]))[_0x33760c(0x288)](()=>this[_0x33760c(0x19d)](_0x289528));}[_0x10cc18(0x2cf)](_0x339860,_0x3a918e=!0x1){const _0x1c53ca=_0x10cc18,_0x45d35c=this[_0x1c53ca(0x1a3)][_0x1c53ca(0x19e)](_0x1c53ca(0x242));_0x339860[_0x1c53ca(0x327)]()!==_0x45d35c&&this['_urlService'][_0x1c53ca(0x171)](_0x1c53ca(0x242),_0x339860['getSheetId'](),_0x3a918e);}async['_updateSubUnitFromURLParams'](_0x38ceaa){const _0x520efa=_0x10cc18;var _0x416d6e;const _0xdd34f6=this[_0x520efa(0x1a3)][_0x520efa(0x19e)]('subunit');if(!_0xdd34f6||!_0x38ceaa[_0x520efa(0x21d)](_0xdd34f6)){const _0x5d46a2=_0x38ceaa[_0x520efa(0x1e9)]()[0x0],_0x234bf3=_0x38ceaa[_0x520efa(0x21d)](_0x5d46a2);if(!_0x234bf3)return;this[_0x520efa(0x2cf)](_0x234bf3,!0x0),await this[_0x520efa(0x29c)][_0x520efa(0xfe)](_0x3e1701['id'],{'unitId':_0x38ceaa[_0x520efa(0x25a)](),'subUnitId':_0x5d46a2});return;}((_0x416d6e=_0x38ceaa['getActiveSheet']())==null?void 0x0:_0x416d6e[_0x520efa(0x327)]())!==_0xdd34f6&&await this[_0x520efa(0x29c)][_0x520efa(0xfe)](_0x3e1701['id'],{'unitId':_0x38ceaa['getUnitId'](),'subUnitId':_0xdd34f6});}};ce=Li([K(0x0,yt),K(0x1,_0x1368e3),K(0x2,_0x526fee),K(0x3,_0x2c9f2f(_0x382568)),K(0x4,_0x2f165a(_0x2cc7be))],ce);var Ui=Object[_0x10cc18(0x1ea)],Mi=(_0x53ebfe,_0x226c43,_0x5edeae,_0x4bdceb)=>{const _0x2de856=_0x10cc18;for(var _0x161e26=_0x4bdceb>0x1?void 0x0:_0x4bdceb?Ui(_0x226c43,_0x5edeae):_0x226c43,_0x326c9c=_0x53ebfe[_0x2de856(0xf9)]-0x1,_0x456145;_0x326c9c>=0x0;_0x326c9c--)(_0x456145=_0x53ebfe[_0x326c9c])&&(_0x161e26=_0x456145(_0x161e26)||_0x161e26);return _0x161e26;},rt=(_0x103aa0,_0x4b5860)=>(_0x32747d,_0x2dd917)=>_0x4b5860(_0x32747d,_0x2dd917,_0x103aa0);let $e=class extends _0x460db8{constructor(_0x372838,_0x4863dc){const _0x178895=_0x10cc18;super(),this[_0x178895(0x2c5)]=_0x372838,this[_0x178895(0x18e)]=_0x4863dc,this[_0x178895(0x25e)]();}[_0x10cc18(0x25e)](){const _0x59501c=_0x10cc18,_0x5638b1=this;this['disposeWithMe'](this['_docClipboardService'][_0x59501c(0xe4)]({'onBeforePasteImage':async _0x67b28f=>{const _0x5dc87b=_0x59501c,_0x3784ed=await _0x5638b1['_imageIoService']['saveImage'](_0x67b28f);return _0x3784ed?{'source':_0x3784ed[_0x5dc87b(0x2ea)],'imageSourceType':_0x3784ed[_0x5dc87b(0x103)]}:null;}}));}};$e=Mi([rt(0x0,_0x401c42),rt(0x1,_0x3ef8ac)],$e);const ot=[_0x10cc18(0x1b2),'jiqing.500','green.600',_0x10cc18(0x1aa),_0x10cc18(0x269),_0x10cc18(0x326)];class Ke extends _0x3e748e{constructor(){const _0x1011c7=_0x10cc18;super(...arguments),_(this,_0x1011c7(0x330),new Map()),_(this,'_colorIndex',0x0);}[_0x10cc18(0x13f)](_0x50d88e){const _0x4e67a=_0x10cc18;if(this[_0x4e67a(0x330)][_0x4e67a(0x2bd)](_0x50d88e))return this[_0x4e67a(0x330)][_0x4e67a(0x127)](_0x50d88e);const _0x1aeb1b=ot[this[_0x4e67a(0x1a1)]];return this[_0x4e67a(0x1a1)]=(this[_0x4e67a(0x1a1)]+0x1)%ot['length'],this['_assignedColors'][_0x4e67a(0x239)](_0x50d88e,_0x1aeb1b),_0x1aeb1b;}}function $t(_0x447243){const _0x473212=_0x10cc18;let _0x207293='';for(const _0x39304a of _0x447243){const {startOffset:_0x43f161,endOffset:_0x387e89,isActive:_0x4092b6,rangeType:_0x39cd79,segmentId:_0x3b7693,segmentPage:_0x2c721b}=_0x39304a;_0x207293[_0x473212(0xf9)]&&(_0x207293+=','),_0x207293+=_0x43f161+':'+_0x387e89+':'+(_0x4092b6?'1':'0')+':'+_0x39cd79+':'+_0x3b7693+':'+_0x2c721b;}return _0x207293;}function Ai(_0x500333){const _0x2e32ee=_0x10cc18,_0x49f486=_0x500333[_0x2e32ee(0x11b)](','),_0x5ab4ca=[];for(const _0x1eec39 of _0x49f486){const [_0x2107f5,_0x4c31ad,_0x3b535c,_0x34ad93,_0x2e8347,_0x3792e0]=_0x1eec39[_0x2e32ee(0x11b)](':');_0x5ab4ca['push']({'startOffset':Number(_0x2107f5),'endOffset':Number(_0x4c31ad),'collapsed':_0x2107f5===_0x4c31ad,'isActive':_0x3b535c==='1','rangeType':_0x34ad93===_0x22acc[_0x2e32ee(0x2e0)]?_0x22acc[_0x2e32ee(0x2e0)]:_0x22acc[_0x2e32ee(0x1c3)],'segmentId':typeof _0x2e8347==_0x2e32ee(0x12b)?String(_0x2e8347):'','segmentPage':Number(_0x3792e0!=null?_0x3792e0:-0x1)});}return _0x5ab4ca[_0x2e32ee(0x1b9)](_0x5d734f=>_0x5d734f['isActive'])||(_0x5ab4ca[0x0][_0x2e32ee(0x2a2)]=!0x0),_0x5ab4ca;}class ze extends _0x460db8{constructor(){const _0x4d52f5=_0x10cc18;super(...arguments),_(this,_0x4d52f5(0x1ec),new _0x1ced39(null)),_(this,_0x4d52f5(0x1c6),this['_collabCursorState$'][_0x4d52f5(0x2e3)]());}['syncEditingCollabCursor'](_0x399ca6){const _0x500aa2=_0x10cc18,{unitID:_0x4bc344,memberID:_0x562a20,textRanges:_0x80a8a9}=_0x399ca6,_0x457985=$t(_0x80a8a9);if(_0x457985==='')return;const _0x292a3d={'unitID':_0x4bc344,'memberID':_0x562a20,'selection':_0x457985};this[_0x500aa2(0x1ec)]['next'](_0x292a3d);}}var Pi=Object[_0x10cc18(0x1ea)],wi=(_0x204151,_0x29aef1,_0x36b5c7,_0x28796c)=>{for(var _0x491c57=_0x28796c>0x1?void 0x0:_0x28796c?Pi(_0x29aef1,_0x36b5c7):_0x29aef1,_0x534438=_0x204151['length']-0x1,_0x1f528a;_0x534438>=0x0;_0x534438--)(_0x1f528a=_0x204151[_0x534438])&&(_0x491c57=_0x1f528a(_0x491c57)||_0x491c57);return _0x491c57;},A=(_0x3476c8,_0x4ae80f)=>(_0x5d7a3d,_0x1b036e)=>_0x4ae80f(_0x5d7a3d,_0x1b036e,_0x3476c8);const yi=0x12c,$i=0x64;let xe=class extends _0x460db8{constructor(_0x109e1b,_0x451678,_0x267e22,_0x9a37e6,_0x443438,_0x440f75,_0x442ea9,_0x10a945,_0x48caf7){const _0xc31378=_0x10cc18;super(),_(this,_0xc31378(0x2b6),!0x1),_(this,_0xc31378(0x25e),!0x1),_(this,_0xc31378(0x328),new _0x1ced39(new Map())),_(this,_0xc31378(0x2bb),this['_cursorInfo$'][_0xc31378(0x2e3)]()),_(this,_0xc31378(0x21f),new _0x1ced39([])),_(this,'roomMembers$',this['_roomMembers$'][_0xc31378(0x297)](_0x3be16c(yi))),_(this,_0xc31378(0x22f),_0x51b589(_0x2024a9=>{const _0x56204e=_0xc31378,_0x55ce9c={'eventID':_0x56f5f5[_0x56204e(0x24b)],'data':{'unitID':this[_0x56204e(0x249)],'memberID':this[_0x56204e(0x17d)][_0x56204e(0x262)](),'selection':$t(_0x2024a9)}};this[_0x56204e(0x17d)][_0x56204e(0x15b)](_0x55ce9c,this[_0x56204e(0x249)]);},$i)),(this['unitID']=_0x109e1b,this[_0xc31378(0x17d)]=_0x451678,this[_0xc31378(0xf0)]=_0x267e22,this['_colorAssignService']=_0x9a37e6,this[_0xc31378(0x2a7)]=_0x443438,this[_0xc31378(0xeb)]=_0x440f75,this['_transformService']=_0x442ea9,this[_0xc31378(0x301)]=_0x10a945,this[_0xc31378(0x29c)]=_0x48caf7);}get[_0x10cc18(0xe8)](){const _0x43f1cf=_0x10cc18;return this[_0x43f1cf(0x328)][_0x43f1cf(0x27f)]();}get['roomMembers'](){const _0x46e6eb=_0x10cc18;return this[_0x46e6eb(0x21f)][_0x46e6eb(0x27f)]();}[_0x10cc18(0x233)](){const _0x2041b4=_0x10cc18;super[_0x2041b4(0x233)](),this[_0x2041b4(0x328)][_0x2041b4(0x1e1)](new Map()),this[_0x2041b4(0x328)][_0x2041b4(0x309)](),this[_0x2041b4(0x21f)][_0x2041b4(0x1e1)]([]),this[_0x2041b4(0x21f)][_0x2041b4(0x309)]();}['init'](){const _0x7cfb6c=_0x10cc18;this['_init']||(this['_init']=!0x0,this[_0x7cfb6c(0x17d)][_0x7cfb6c(0x1a9)][_0x7cfb6c(0x297)](_0x55bd62(this['dispose$']))[_0x7cfb6c(0x288)](_0x9c9a5=>{const _0x1909b5=_0x7cfb6c;_0x9c9a5===_0x756bff[_0x1909b5(0x30c)]?this[_0x1909b5(0x200)]():this['_toggleOffline']();}),this[_0x7cfb6c(0x17d)][_0x7cfb6c(0x1c5)][_0x7cfb6c(0x297)](_0x55bd62(this[_0x7cfb6c(0x20f)]))[_0x7cfb6c(0x288)](_0x499ab4=>{const _0x5c9b77=_0x7cfb6c,_0x1a8ab2=_0x499ab4['eventID'];_0x1a8ab2===_0x56f5f5['UPDATE_CURSOR']&&this[_0x5c9b77(0x28e)](_0x499ab4),_0x1a8ab2===_0x56f5f5[_0x5c9b77(0x168)]&&this[_0x5c9b77(0x287)](_0x499ab4);}),this[_0x7cfb6c(0x1bc)](this['_commandService'][_0x7cfb6c(0x164)](_0x4013f5=>{const _0x232632=_0x7cfb6c,_0x312db3=_0x4013f5[_0x232632(0x151)];_0x312db3!=null&&this[_0x232632(0x2b6)]&&_0x4013f5['id']===_0x359fd6['id']&&_0x312db3['unitId']===this[_0x232632(0x249)]&&_0x312db3[_0x232632(0x1e7)]===!0x1&&_0x312db3[_0x232632(0x11d)]['length']>0x0&&this[_0x232632(0x22f)](_0x312db3['ranges']);})),this[_0x7cfb6c(0xeb)][_0x7cfb6c(0x1c6)][_0x7cfb6c(0x297)](_0x55bd62(this['dispose$']))[_0x7cfb6c(0x288)](_0x2e5867=>{const _0xd89f4d=_0x7cfb6c;if((_0x2e5867==null?void 0x0:_0x2e5867['unitID'])!==this['unitID'])return;const _0x277e3e={'eventID':_0x56f5f5[_0xd89f4d(0x24b)],'data':_0x2e5867};this[_0xd89f4d(0x28e)](_0x277e3e);}),this['disposeWithMe'](this[_0x7cfb6c(0x29c)][_0x7cfb6c(0x164)](_0x1cd532=>{const _0x2640e4=_0x7cfb6c;if(_0x1cd532[_0x2640e4(0x151)]==null)return;const _0xf6a80b=_0x1cd532[_0x2640e4(0x151)];if(_0x1cd532['id']!==_0x15c2de['id']||_0xf6a80b[_0x2640e4(0x16a)]!==this[_0x2640e4(0x249)])return;const _0x3f6d4d={'id':_0x2640e4(0x106),'params':_0xf6a80b},_0x1ddfbb=this['cursorInfo'];for(const [_0x3b503e,_0x1f5ced]of _0x1ddfbb){const _0x341f0a={'id':_0x2640e4(0x106),'params':{'unitId':this[_0x2640e4(0x249)],'actions':null,'textRanges':_0x1f5ced[_0x2640e4(0x11d)]}},_0x3e99b7=this[_0x2640e4(0x16d)][_0x2640e4(0x260)](_0x3f6d4d,_0x341f0a,!0x1);if(_0x3ff0c5(_0x3e99b7))throw _0x3e99b7['error'];_0x1ddfbb[_0x2640e4(0x239)](_0x3b503e,{..._0x1f5ced,'ranges':_0x3e99b7[_0x2640e4(0x21e)]['params'][_0x2640e4(0x1a2)]});}queueMicrotask(()=>{const _0x4f84f5=_0x2640e4;this['_cursorInfo$'][_0x4f84f5(0x1e1)](_0x1ddfbb);});})));}['_onCursorUpdate'](_0x291b15){const _0x1960bf=_0x10cc18;var _0x59eb20,_0x5e0340;const {memberID:_0x3787d6,selection:_0x33307f}=_0x291b15[_0x1960bf(0x1e0)],_0x4774bc=Ai(_0x33307f),_0x1ff1e5=(_0x5e0340=(_0x59eb20=this[_0x1960bf(0x2a7)]['getMember'](this[_0x1960bf(0x249)],_0x3787d6))==null?void 0x0:_0x59eb20[_0x1960bf(0x27a)])!=null?_0x5e0340:_0x1960bf(0x27e),_0x5dcc5f={'color':this[_0x1960bf(0x177)][_0x1960bf(0x13f)](_0x3787d6),'name':_0x1ff1e5,'ranges':_0x4774bc},_0x210b0a=this[_0x1960bf(0xe8)];_0x210b0a['set'](_0x3787d6,_0x5dcc5f),this[_0x1960bf(0x328)][_0x1960bf(0x1e1)](_0x210b0a);}[_0x10cc18(0x287)](_0x185a96){const _0x5a5fe4=_0x10cc18,{memberID:_0x645ff0}=_0x185a96['data'],_0x2c9e8a=this[_0x5a5fe4(0xe8)];_0x2c9e8a['delete'](_0x645ff0),this[_0x5a5fe4(0x328)]['next'](_0x2c9e8a);}['_toggleOnline'](){const _0x3128f1=_0x10cc18;var _0x2210fa;if(this[_0x3128f1(0x2b6)]=!0x0,((_0x2210fa=this['_univerInstanceService'][_0x3128f1(0x167)]())==null?void 0x0:_0x2210fa[_0x3128f1(0x25a)]())!==this[_0x3128f1(0x249)])return;const _0x5dc587=this[_0x3128f1(0xf0)][_0x3128f1(0x127)](_0x196312)[_0x3128f1(0x1d8)]();Array[_0x3128f1(0x2d1)](_0x5dc587)&&_0x5dc587[_0x3128f1(0xf9)]>0x0&&this[_0x3128f1(0x22f)](_0x5dc587);}[_0x10cc18(0xfb)](){const _0xd10f4d=_0x10cc18;this[_0xd10f4d(0x2b6)]=!0x1;}};xe=wi([A(0x2,_0x2c9f2f(_0x3955fb)),A(0x3,_0x2c9f2f(Ke)),A(0x4,_0x2c9f2f(_0xf95f76)),A(0x5,_0x2c9f2f(ze)),A(0x6,_0x447d81),A(0x7,_0x631d26),A(0x8,_0x526fee)],xe);var xi=Object[_0x10cc18(0x1ea)],Bi=(_0x5a1623,_0x1bc5bc,_0x43a4e5,_0x4b2a5d)=>{const _0x56f50c=_0x10cc18;for(var _0x228745=_0x4b2a5d>0x1?void 0x0:_0x4b2a5d?xi(_0x1bc5bc,_0x43a4e5):_0x1bc5bc,_0x3c21fb=_0x5a1623[_0x56f50c(0xf9)]-0x1,_0x5a56de;_0x3c21fb>=0x0;_0x3c21fb--)(_0x5a56de=_0x5a1623[_0x3c21fb])&&(_0x228745=_0x5a56de(_0x228745)||_0x228745);return _0x228745;},B=(_0x3c6228,_0x584fb6)=>(_0x4dfb40,_0x178084)=>_0x584fb6(_0x4dfb40,_0x178084,_0x3c6228);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x34d026=[],_0x473893=!0x1;return _0x599f40=>{_0x34d026['push'](_0x599f40),_0x473893||(_0x473893=!0x0,setTimeout(()=>{const _0x577561=_0x58c2;_0x34d026[_0x577561(0x12c)](_0x40ec8b=>_0x40ec8b()),_0x34d026=[],_0x473893=!0x1;}));};};let Be=class extends _0x460db8{constructor(_0x4bb8ba,_0x1d4859,_0x4ed454,_0x1a77ce,_0x33fa68,_0x53caa0,_0x5161f8,_0x15b078){const _0x202a8f=_0x10cc18;super(),_(this,_0x202a8f(0x2b6),!0x1),_(this,_0x202a8f(0x25e),!0x1),_(this,'_cursorInfo$',new _0x1ced39(new Map())),_(this,'cursorInfo$',this[_0x202a8f(0x328)]['asObservable']()),_(this,_0x202a8f(0x21f),new _0x1ced39([])),_(this,_0x202a8f(0xe9),this[_0x202a8f(0x21f)]['pipe'](_0x3be16c(Fi))),_(this,'_updateLocalCursor',_0x51b589((_0x5b18f9,_0x37cd3f)=>{const _0x1c9449=_0x202a8f,_0xc51dd5={'eventID':_0x56f5f5[_0x1c9449(0x24b)],'data':{'unitID':this[_0x1c9449(0x249)],'memberID':this[_0x1c9449(0x17d)]['getMemberID'](),'selection':_0x5ebf47(_0x5b18f9,_0x37cd3f[_0x1c9449(0x315)])}};this[_0x1c9449(0x17d)][_0x1c9449(0x15b)](_0xc51dd5,this[_0x1c9449(0x249)]);},ki)),(this[_0x202a8f(0x249)]=_0x4bb8ba,this['_session']=_0x1d4859,this[_0x202a8f(0xf0)]=_0x4ed454,this['_colorAssignService']=_0x1a77ce,this[_0x202a8f(0x2a7)]=_0x33fa68,this[_0x202a8f(0x301)]=_0x53caa0,this[_0x202a8f(0x29c)]=_0x5161f8,this[_0x202a8f(0x195)]=_0x15b078);}get[_0x10cc18(0xe8)](){const _0x13f51b=_0x10cc18;return this['_cursorInfo$'][_0x13f51b(0x27f)]();}get['roomMembers'](){const _0x444e87=_0x10cc18;return this[_0x444e87(0x21f)][_0x444e87(0x27f)]();}[_0x10cc18(0x233)](){const _0x2de668=_0x10cc18;super[_0x2de668(0x233)](),this[_0x2de668(0x328)][_0x2de668(0x1e1)](new Map()),this[_0x2de668(0x328)][_0x2de668(0x309)](),this[_0x2de668(0x21f)]['next']([]),this[_0x2de668(0x21f)][_0x2de668(0x309)]();}[_0x10cc18(0x225)](){const _0x361300=_0x10cc18;this[_0x361300(0x25e)]||(this[_0x361300(0x25e)]=!0x0,this[_0x361300(0x17d)][_0x361300(0x1a9)][_0x361300(0x297)](_0x55bd62(this[_0x361300(0x20f)]))[_0x361300(0x288)](_0x180585=>{const _0x56de3e=_0x361300;_0x180585===_0x756bff['ONLINE']?this[_0x56de3e(0x200)]():this[_0x56de3e(0xfb)]();}),this['_session']['event$'][_0x361300(0x297)](_0x55bd62(this['dispose$']))[_0x361300(0x288)](_0x2f1e85=>{const _0x299aaa=_0x361300,_0x3e9688=_0x2f1e85[_0x299aaa(0x277)];_0x3e9688===_0x56f5f5[_0x299aaa(0x24b)]&&this[_0x299aaa(0x28e)](_0x2f1e85),_0x3e9688===_0x56f5f5['USERS_LEAVE']&&this[_0x299aaa(0x287)](_0x2f1e85);}),this['_onRefRangeChange'](),this[_0x361300(0x1bc)](this['_commandService'][_0x361300(0x164)](_0x420df2=>{const _0x1d6cef=_0x361300;if(this[_0x1d6cef(0x2b6)]&&_0x420df2['id']===_0x3c2d3f['id']&&_0x420df2[_0x1d6cef(0x151)][_0x1d6cef(0x16a)]===this[_0x1d6cef(0x249)]){const _0x5e5a81=_0x420df2[_0x1d6cef(0x151)];this[_0x1d6cef(0x22f)](_0x5e5a81[_0x1d6cef(0x21c)],_0x5e5a81[_0x1d6cef(0x159)][0x0]);}})));}[_0x10cc18(0x28e)](_0x16bfca){const _0x323d8b=_0x10cc18;var _0x280eab,_0x357285;const {memberID:_0x292f39,selection:_0x58f555}=_0x16bfca[_0x323d8b(0x1e0)],{sheetName:_0x60f871,range:_0xe6d72f}=_0xaa972c(_0x58f555),_0x32eb1b={'name':(_0x357285=(_0x280eab=this[_0x323d8b(0x2a7)]['getMember'](this['unitID'],_0x292f39))==null?void 0x0:_0x280eab[_0x323d8b(0x27a)])!=null?_0x357285:_0x323d8b(0x27e),'range':this['_getMergeRange'](_0x60f871,_0xe6d72f),'sheetID':_0x60f871,'color':this[_0x323d8b(0x177)]['assignAColorForMemberID'](_0x292f39),'selection':_0x58f555},_0x304fc5=this['cursorInfo'];_0x304fc5[_0x323d8b(0x239)](_0x292f39,_0x32eb1b),this[_0x323d8b(0x328)][_0x323d8b(0x1e1)](_0x304fc5);}['_onCursorDelete'](_0x1f7364){const _0x46cc1e=_0x10cc18,{memberID:_0x5b2b06}=_0x1f7364[_0x46cc1e(0x1e0)],_0x3f0e5e=this[_0x46cc1e(0xe8)];_0x3f0e5e['delete'](_0x5b2b06),this['_cursorInfo$'][_0x46cc1e(0x1e1)](_0x3f0e5e);}['_getMergeRange'](_0x24646d,_0x278fc8){const _0x19ee48=_0x10cc18;var _0x538625,_0x5587dd;const _0x31395e=(_0x5587dd=(_0x538625=this[_0x19ee48(0x301)][_0x19ee48(0x13c)](this['unitID']))==null?void 0x0:_0x538625[_0x19ee48(0x21d)](_0x24646d))==null?void 0x0:_0x5587dd[_0x19ee48(0x2c7)]();return(_0x31395e==null?void 0x0:_0x31395e[_0x19ee48(0x23b)](_0x21d6a9=>_0x40c7c0[_0x19ee48(0x173)](_0x21d6a9,_0x278fc8)))||_0x278fc8;}[_0x10cc18(0x184)](){const _0x365a09=_0x10cc18,_0x24b7a9=new _0x5a6462(),_0x5c8193=Hi(),_0x2b16fa=()=>{const _0x1bc005=_0x58c2;_0x24b7a9[_0x1bc005(0x233)]();const _0x492bc7=(_0x3c9cb0,_0x452062,_0x5ced80,_0x8865e6)=>{const _0x106601=_0x1bc005;let _0x1f1946=[];switch(_0x3c9cb0['id']){case _0xe50d17[_0x106601(0x15c)]:{_0x1f1946=_0xc34664(_0x3c9cb0,_0x8865e6);break;}case _0xe50d17[_0x106601(0x2da)]:{_0x1f1946=_0x3a245f(_0x3c9cb0,_0x8865e6);break;}case _0xe50d17[_0x106601(0x216)]:{_0x1f1946=_0x3b58f5(_0x3c9cb0,_0x8865e6);break;}case _0xe50d17[_0x106601(0x2fa)]:{_0x1f1946=_0x3177b4(_0x3c9cb0,_0x8865e6);break;}case _0xe50d17['InsertRangeMoveRightCommandId']:{_0x1f1946=_0x1916d7(_0x3c9cb0,_0x8865e6);break;}case _0xe50d17['InsertRowCommandId']:{_0x1f1946=_0x524712(_0x3c9cb0,_0x8865e6);break;}case _0xe50d17[_0x106601(0x1c0)]:{_0x1f1946=_0x379eb2(_0x3c9cb0,_0x8865e6);break;}case _0xe50d17[_0x106601(0x201)]:{_0x1f1946=_0x27e994(_0x3c9cb0,_0x8865e6);break;}case _0xe50d17[_0x106601(0x2ba)]:{_0x1f1946=_0x11bbdd(_0x3c9cb0,_0x8865e6);break;}}const _0x556490=_0x178978(_0x1f1946,_0x8865e6),_0x5328fa=this['cursorInfo'][_0x106601(0x127)](_0x452062);if(_0x5328fa&&_0x556490){const _0x14f963={..._0x5328fa,'range':_0x556490};this[_0x106601(0xe8)][_0x106601(0x239)](_0x452062,_0x14f963),_0x5c8193(()=>{const _0xe2da53=_0x106601,_0x40455b=this['_refRangeService'][_0xe2da53(0x1de)](_0x556490,_0x511074=>(_0x40455b[_0xe2da53(0x233)](),_0x492bc7(_0x511074,_0x452062,_0x5ced80,_0x556490)));_0x24b7a9[_0xe2da53(0xff)](_0x40455b);});}return{'redos':[],'undos':[]};};this[_0x1bc005(0xe8)][_0x1bc005(0x12c)]((_0x5e41a6,_0x1fee50)=>{const _0x457200=_0x1bc005,{range:_0x335f35,sheetID:_0x4d85d0}=_0x5e41a6,_0xc863b8=this[_0x457200(0x195)][_0x457200(0x1de)](_0x335f35,_0x132be=>(_0xc863b8[_0x457200(0x233)](),_0x492bc7(_0x132be,_0x1fee50,_0x4d85d0,_0x335f35)));_0x24b7a9[_0x457200(0xff)](_0xc863b8);});};this[_0x365a09(0x1bc)](_0x555679(this[_0x365a09(0x328)]['subscribe'](()=>{_0x2b16fa();})));}[_0x10cc18(0x200)](){const _0x50cd6f=_0x10cc18;var _0x3ca18e,_0x2a0a1e;if(this[_0x50cd6f(0x2b6)]=!0x0,((_0x3ca18e=this['_univerInstanceService'][_0x50cd6f(0x167)]())==null?void 0x0:_0x3ca18e[_0x50cd6f(0x25a)]())!==this[_0x50cd6f(0x249)])return;const _0x3b781c=(_0x2a0a1e=this[_0x50cd6f(0xf0)][_0x50cd6f(0x127)](_0xc9e973)['getCurrentSelections']())==null?void 0x0:_0x2a0a1e[0x0],_0x3383c1=this[_0x50cd6f(0x301)][_0x50cd6f(0x30d)](_0x5045e8['UNIVER_SHEET'])[_0x50cd6f(0x24e)]();_0x3b781c&&_0x3383c1&&this['_updateLocalCursor'](_0x3383c1[_0x50cd6f(0x327)](),_0x3b781c);}[_0x10cc18(0xfb)](){const _0xd05f8d=_0x10cc18;this[_0xd05f8d(0x2b6)]=!0x1;}};Be=Bi([B(0x2,_0x2c9f2f(_0x3955fb)),B(0x3,_0x2c9f2f(Ke)),B(0x4,_0x2c9f2f(_0xf95f76)),B(0x5,_0x631d26),B(0x6,_0x526fee),B(0x7,_0x2c9f2f(_0x4afbe7))],Be);var Yi=Object[_0x10cc18(0x1ea)],Wi=(_0x2bc50a,_0x1f21cd,_0x350947,_0x4f2b27)=>{for(var _0x16e86c=_0x4f2b27>0x1?void 0x0:_0x4f2b27?Yi(_0x1f21cd,_0x350947):_0x1f21cd,_0x55ceeb=_0x2bc50a['length']-0x1,_0x479cb9;_0x55ceeb>=0x0;_0x55ceeb--)(_0x479cb9=_0x2bc50a[_0x55ceeb])&&(_0x16e86c=_0x479cb9(_0x16e86c)||_0x16e86c);return _0x16e86c;},Ce=(_0x57bc08,_0x5cc3ee)=>(_0x542fc7,_0x1a1848)=>_0x5cc3ee(_0x542fc7,_0x1a1848,_0x57bc08);let H=class extends _0x460db8{constructor(_0xa3c911,_0x7ea805,_0x297687){const _0x37e8e3=_0x10cc18;super(),_(this,_0x37e8e3(0x208),new Map()),_(this,_0x37e8e3(0x149),new _0x495c27()),(this[_0x37e8e3(0x301)]=_0xa3c911,this['_injector']=_0x7ea805,this[_0x37e8e3(0xf6)]=_0x297687,this['_init']());}['dispose'](){const _0x33184d=_0x10cc18;super[_0x33184d(0x233)](),this[_0x33184d(0x149)][_0x33184d(0x309)](),this[_0x33184d(0x208)][_0x33184d(0x12c)](_0x5d2c38=>_0x5d2c38[_0x33184d(0x233)]());}['getCollabCursors$'](_0x28fb90){const _0x73c0ea=_0x10cc18;return this[_0x73c0ea(0x208)][_0x73c0ea(0x2bd)](_0x28fb90)?this[_0x73c0ea(0x208)][_0x73c0ea(0x127)](_0x28fb90)[_0x73c0ea(0x2bb)]:this[_0x73c0ea(0x149)]['pipe'](_0x12a7d2(_0x4f3f82=>_0x4f3f82['unitID']===_0x28fb90),_0x5e120f(_0x418ba0=>_0x418ba0['cursorInfo$']));}['_init'](){const _0x565a96=_0x10cc18;this[_0x565a96(0x301)][_0x565a96(0x2f5)](_0x5045e8[_0x565a96(0x1f7)])['pipe'](_0x55bd62(this[_0x565a96(0x20f)]))[_0x565a96(0x288)](async _0x3918db=>{const _0x4c8128=_0x565a96,_0x27d827=_0x3918db[_0x4c8128(0x25a)](),_0x5a6bda=await this[_0x4c8128(0x23d)](_0x27d827);this[_0x4c8128(0x149)][_0x4c8128(0x1e1)](_0x5a6bda),this[_0x4c8128(0x208)]['set'](_0x27d827,_0x5a6bda);}),this[_0x565a96(0x301)][_0x565a96(0x2f5)](_0x5045e8['UNIVER_DOC'])[_0x565a96(0x297)](_0x55bd62(this[_0x565a96(0x20f)]))[_0x565a96(0x297)](_0x12a7d2(_0x5ef585=>!_0x5ef585[_0x565a96(0x25a)]()['startsWith']('__')))[_0x565a96(0x288)](async _0x5aa716=>{const _0x186b9e=_0x565a96,_0x3695e1=_0x5aa716[_0x186b9e(0x25a)](),_0x11ceec=await this[_0x186b9e(0x2f8)](_0x3695e1);this[_0x186b9e(0x149)][_0x186b9e(0x1e1)](_0x11ceec),this[_0x186b9e(0x208)][_0x186b9e(0x239)](_0x3695e1,_0x11ceec);}),_0x153e90(this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x5045e8['UNIVER_DOC']),this[_0x565a96(0x301)][_0x565a96(0x1f5)](_0x5045e8['UNIVER_SHEET']))['pipe'](_0x55bd62(this[_0x565a96(0x20f)]))['subscribe'](_0x390ced=>{const _0x230285=_0x565a96,_0x499d10=_0x390ced[_0x230285(0x25a)](),_0x588299=this[_0x230285(0x208)][_0x230285(0x127)](_0x499d10);_0x588299&&(_0x588299[_0x230285(0x233)](),this[_0x230285(0x208)][_0x230285(0x264)](_0x499d10));});}async[_0x10cc18(0x23d)](_0x3bc658){const _0x355154=_0x10cc18,_0x11b944=await this[_0x355154(0xf6)][_0x355154(0x2e8)](_0x3bc658),_0x77159d=this[_0x355154(0xf0)]['createInstance'](Be,_0x3bc658,_0x11b944);return _0x77159d[_0x355154(0x225)](),_0x77159d;}async[_0x10cc18(0x2f8)](_0x383db6){const _0x242c7b=_0x10cc18,_0x9a005=await this[_0x242c7b(0xf6)][_0x242c7b(0x2e8)](_0x383db6),_0x93bcd=this[_0x242c7b(0xf0)][_0x242c7b(0x154)](xe,_0x383db6,_0x9a005);return _0x93bcd[_0x242c7b(0x225)](),_0x93bcd;}};H=Wi([Ce(0x0,_0x631d26),Ce(0x1,_0x2c9f2f(_0x3955fb)),Ce(0x2,_0x2c9f2f(_0x1abc06))],H);const Q=0x14,at=0xc8,Re=0x4,ji=0x5;function Vi(_0x5c043e,_0xa0f5d6){const _0x599c63=_0x10cc18;let {radius:_0x897ebc,width:_0x8c4328,height:_0x142d15}=_0xa0f5d6;_0x897ebc=_0x897ebc!=null?_0x897ebc:0x0,_0x8c4328=_0x8c4328!=null?_0x8c4328:0x1e,_0x142d15=_0x142d15!=null?_0x142d15:0x1e;let _0x3aa4de=0x0,_0x5ae3cb=0x0,_0x3ea7a2=0x0;_0x3aa4de=_0x5ae3cb=_0x3ea7a2=Math[_0x599c63(0x240)](_0x897ebc,_0x8c4328/0x2,_0x142d15/0x2),_0x5c043e['beginPath'](),_0x5c043e[_0x599c63(0x237)](_0x3aa4de,0x0),_0x5c043e[_0x599c63(0x31a)](_0x8c4328-_0x5ae3cb,0x0),_0x5c043e['arc'](_0x8c4328-_0x5ae3cb,_0x5ae3cb,_0x5ae3cb,Math['PI']*0x3/0x2,0x0,!0x1),_0x5c043e[_0x599c63(0x31a)](_0x8c4328,_0x142d15-_0x3ea7a2),_0x5c043e[_0x599c63(0x16b)](_0x8c4328-_0x3ea7a2,_0x142d15-_0x3ea7a2,_0x3ea7a2,0x0,Math['PI']/0x2,!0x1),_0x5c043e[_0x599c63(0x31a)](0x0,_0x142d15),_0x5c043e['lineTo'](0x0,_0x3aa4de),_0x5c043e[_0x599c63(0x16b)](_0x3aa4de,_0x3aa4de,_0x3aa4de,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x5c043e[_0x599c63(0xed)](),_0xa0f5d6['fill']&&(_0x5c043e[_0x599c63(0x211)](),_0x5c043e['fillStyle']=_0xa0f5d6['fill'],_0xa0f5d6[_0x599c63(0xf1)]===_0x599c63(0x29f)?_0x5c043e[_0x599c63(0x130)](_0x599c63(0x29f)):_0x5c043e[_0x599c63(0x130)](),_0x5c043e[_0x599c63(0x32e)]());}class Ee extends _0x28bace{constructor(_0x552ba7,_0x224522){const _0x7fc531=_0x10cc18;super(_0x552ba7,_0x224522),_(this,_0x7fc531(0x1e5)),_(this,'text'),(this[_0x7fc531(0x1e5)]=_0x224522==null?void 0x0:_0x224522['color'],this[_0x7fc531(0x117)]=_0x224522==null?void 0x0:_0x224522[_0x7fc531(0x117)]);}static[_0x10cc18(0x285)](_0x761801,_0x45fddc){const _0x22d59f=_0x10cc18,{text:_0x1232c7,color:_0x241547}=_0x45fddc;_0x761801[_0x22d59f(0x211)](),_0x761801[_0x22d59f(0x2f4)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x806c61=_0x761801[_0x22d59f(0x2db)](_0x1232c7)['width'],_0x111ac9=Math[_0x22d59f(0x240)](_0x806c61+0x2*Re,at);Vi(_0x761801,{'height':Q,'radius':0x4,'width':_0x111ac9,'fill':_0x241547}),_0x761801[_0x22d59f(0x217)]=_0x22d59f(0x32b);const _0xcf3420=Re,_0x492173=Q-ji,_0x164288=at-0x2*Re;if(_0x806c61>_0x164288){let _0x3b1e32='',_0x33f493=0x0;for(const _0x4dd338 of _0x1232c7){const _0x2cb55f=_0x761801[_0x22d59f(0x2db)](_0x4dd338)[_0x22d59f(0x320)];if(_0x33f493+_0x2cb55f<=_0x164288-_0x761801[_0x22d59f(0x2db)](_0x22d59f(0x1f4))[_0x22d59f(0x320)])_0x3b1e32+=_0x4dd338,_0x33f493+=_0x2cb55f;else{_0x3b1e32+='...';break;}}_0x761801[_0x22d59f(0x241)](_0x3b1e32,_0xcf3420,_0x492173);}else _0x761801[_0x22d59f(0x241)](_0x1232c7,_0xcf3420,_0x492173);_0x761801[_0x22d59f(0x32e)]();}[_0x10cc18(0x261)](_0x467208){Ee['drawWith'](_0x467208,this);}}const De=_0x10cc18(0x2a1),Xi=_0x10cc18(0x12e),Gi=_0x10cc18(0x14e),z=0x6,Ki=1.5,be=0x4,zi=1.5,Ji=_0x10cc18(0x188);class ct{constructor(_0x32714c,_0x4e4490,_0xea590d,_0x55f794){const _0x36f487=_0x10cc18;_(this,_0x36f487(0x254),[]),_(this,'_anchor',null),_(this,_0x36f487(0xea),null),_(this,_0x36f487(0x1b8),null),_(this,'_hideTimer',null),_(this,_0x36f487(0x16e),null),(this[_0x36f487(0x2fe)]=_0x32714c,this[_0x36f487(0x155)]=_0x4e4490,this['_docSkeleton']=_0xea590d,this[_0x36f487(0x259)]=_0x55f794,this['_render']());}set[_0x10cc18(0x2a5)](_0x5f13b6){const _0x2b6943=_0x10cc18;_0x5f13b6?(this[_0x2b6943(0x1b8)]&&this['_anchorDot'][_0x2b6943(0x28b)](),this[_0x2b6943(0xea)]&&this[_0x2b6943(0xea)]['show']()):(this[_0x2b6943(0x1b8)]&&this[_0x2b6943(0x1b8)]['show'](),this[_0x2b6943(0xea)]&&this[_0x2b6943(0xea)][_0x2b6943(0x28b)]());}[_0x10cc18(0x233)](){const _0x422e6a=_0x10cc18;for(const _0x5a6e12 of this[_0x422e6a(0x254)])_0x5a6e12['dispose']();this[_0x422e6a(0xea)]&&this['_textBubble'][_0x422e6a(0x233)](),this[_0x422e6a(0x1b8)]&&this[_0x422e6a(0x1b8)]['dispose'](),this[_0x422e6a(0x1b7)]&&this[_0x422e6a(0x1b7)][_0x422e6a(0x233)](),this['_eventUnsubscribe']&&this[_0x422e6a(0x16e)]();}[_0x10cc18(0x1e2)](){const _0x1eb34d=_0x10cc18;var _0x14a0db;const {_docSkeleton:_0x146965,_document:_0x2bdef0}=this,{color:_0x41c1d9,name:_0x2c821a,ranges:_0x2f4f30}=this['_cursor'],_0x74b5e0=_0x2bdef0[_0x1eb34d(0x1c4)](),{docsLeft:_0x410c3e,docsTop:_0x166715}=_0x74b5e0,_0xbdf07=new _0x3f6a22(_0x74b5e0,_0x146965);for(const {startOffset:_0x7a5156,endOffset:_0x1dc063,rangeType:_0x120223,segmentId:_0x4dd1ae,segmentPage:_0x4d085c,collapsed:_0x32cb2c,isActive:_0x3c23a1}of _0x2f4f30){const _0x4c0c36=_0x146965['findNodePositionByCharIndex'](_0x7a5156,!0x0,_0x4dd1ae,_0x4d085c);let _0x45b6e5=_0x146965[_0x1eb34d(0x19f)](_0x1dc063,!0x0,_0x4dd1ae,_0x4d085c);if(_0x45b6e5==null&&(_0x45b6e5=_0x146965[_0x1eb34d(0x19f)](_0x1dc063-0x1,!0x1,_0x4dd1ae,_0x4d085c)),_0x3c23a1){const {contentBoxPointGroup:_0x44f803}=_0xbdf07[_0x1eb34d(0x110)](_0x45b6e5,_0x45b6e5);if(_0x44f803[_0x1eb34d(0xf9)]===0x0)continue;this[_0x1eb34d(0x289)](_0x41c1d9,_0x44f803,_0x410c3e,_0x166715,_0x2c821a),this[_0x1eb34d(0x16e)]=this[_0x1eb34d(0x232)]();}if(_0x4c0c36&&_0x45b6e5){if(_0x120223===_0x22acc['RECT']){const _0x4fca71=new _0x4973b1(_0x74b5e0,_0x146965),{pointGroup:_0x3cbc59}=(_0x14a0db=_0x4fca71[_0x1eb34d(0x110)](_0x4c0c36,_0x45b6e5))!=null?_0x14a0db:{};if(_0x3cbc59==null||_0x3cbc59[_0x1eb34d(0xf9)]===0x0)continue;this[_0x1eb34d(0x133)](_0x41c1d9,_0x3cbc59,_0x410c3e,_0x166715);}else{if(!_0x32cb2c){const {borderBoxPointGroup:_0xc0056d}=_0xbdf07['getRangePointData'](_0x4c0c36,_0x45b6e5);if(_0xc0056d[_0x1eb34d(0xf9)]===0x0)continue;this[_0x1eb34d(0x176)](_0x41c1d9,_0xc0056d,_0x410c3e,_0x166715);}}}}}[_0x10cc18(0x289)](_0xe8b98d,_0x57f570,_0x4e8479,_0xbeaf50,_0x1e99a6){const _0x3c9161=_0x10cc18,_0x12c95c=this[_0x3c9161(0x13d)](_0x57f570),{left:_0x4fa335,top:_0x4875c0,height:_0x177b51}=_0x12c95c,_0x400bd7=this['_getScale'](),_0x178504=zi/_0x400bd7,_0x336a9d=new _0x2dfad6(De+_0x5236ab(z),{'left':_0x4fa335+_0x4e8479-_0x178504,'top':_0x4875c0+_0xbeaf50,'height':_0x177b51,'width':Ki,'fill':_0xe8b98d||_0x44dbc(_0x10fc5a[_0x3c9161(0x214)],0x0),'strokeWidth':_0x178504,'stroke':Ji,'evented':!0x0});this[_0x3c9161(0x1b7)]=_0x336a9d,this[_0x3c9161(0x155)]['addObject'](_0x336a9d,_0x531506);const _0x47a627=new _0x2dfad6(De+_0x5236ab(z),{'left':_0x4fa335+_0x4e8479-_0x178504,'top':_0x4875c0+_0xbeaf50-be/0x2,'height':be,'width':be,'fill':_0xe8b98d||_0x44dbc(_0x10fc5a['black'],0x0),'strokeWidth':0x0,'stroke':_0xe8b98d||_0x44dbc(_0x10fc5a['black'],0x0),'evented':!0x1});this[_0x3c9161(0x1b8)]=_0x47a627,this[_0x3c9161(0x155)][_0x3c9161(0x14c)](_0x47a627,_0x531506);const _0x5d09f3=new Ee(De+_0x5236ab(z),{'left':_0x4fa335+_0x4e8479-_0x178504,'top':_0x4875c0+_0xbeaf50-Q,'text':_0x1e99a6,'color':_0xe8b98d});this[_0x3c9161(0xea)]=_0x5d09f3,this[_0x3c9161(0x155)][_0x3c9161(0x14c)](_0x5d09f3,_0x531506),this['_hover']=!0x1;}['_handleHover'](){const _0x3dd158=_0x10cc18,_0x4d490e=this[_0x3dd158(0x1b7)][_0x3dd158(0x2df)][_0x3dd158(0x2c4)](()=>{const _0x5b7c11=_0x3dd158;this[_0x5b7c11(0x2a5)]=!0x0;}),_0x13be7e=this[_0x3dd158(0x1b7)][_0x3dd158(0x26e)][_0x3dd158(0x2c4)](()=>{const _0x57145d=_0x3dd158;this[_0x57145d(0x18f)]&&clearTimeout(this[_0x57145d(0x18f)]),this[_0x57145d(0x18f)]=setTimeout(()=>{const _0x9ed6bd=_0x57145d;this[_0x9ed6bd(0x2a5)]=!0x1;},0x7d0);});return()=>{const _0x9a2a5c=_0x3dd158;_0x4d490e[_0x9a2a5c(0x2fd)](),_0x13be7e[_0x9a2a5c(0x2fd)]();};}['_drawTextRange'](_0x55556f,_0x3d5fdf,_0x16f1ca,_0x1417b8){const _0x4856dc=_0x10cc18,_0x2b6374=new _0x1a8ee3(_0x55556f)['setAlpha'](0.2)[_0x4856dc(0x316)](),_0x169ec0=new _0x2a7a95(Xi+_0x5236ab(z),{'pointsGroup':_0x3d5fdf,'fill':_0x2b6374||_0x44dbc(_0x10fc5a[_0x4856dc(0x214)],0.2),'left':_0x16f1ca,'top':_0x1417b8,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4856dc(0x254)]['push'](_0x169ec0),this[_0x4856dc(0x155)]['addObject'](_0x169ec0,_0x531506);}['_drawRectRange'](_0x458807,_0x1244ce,_0x406ad8,_0x37c77f){const _0x397297=_0x10cc18,_0x2bba6d=new _0x1a8ee3(_0x458807)[_0x397297(0x2a3)](0.2)[_0x397297(0x316)](),_0x4fb0b3=new _0x2a7a95(Gi+_0x5236ab(z),{'pointsGroup':_0x1244ce,'fill':_0x2bba6d||_0x44dbc(_0x10fc5a[_0x397297(0x214)],0.2),'left':_0x406ad8,'top':_0x37c77f,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x397297(0x254)][_0x397297(0x1ed)](_0x4fb0b3),this['_scene'][_0x397297(0x14c)](_0x4fb0b3,_0x531506);}[_0x10cc18(0x13d)](_0x1fec42){const _0x165c78=_0x1fec42[0x0],_0x610946=_0x165c78[0x0],_0x4e56ac=_0x165c78[0x2],{x:_0x24a990,y:_0x3acee6}=_0x610946,{x:_0x5bfb35,y:_0x5c1bc9}=_0x4e56ac;return{'left':_0x24a990,'top':_0x3acee6,'width':_0x5bfb35-_0x24a990,'height':_0x5c1bc9-_0x3acee6};}['_getScale'](){const _0x373f93=_0x10cc18,{scaleX:_0x3cf3ac,scaleY:_0x15eb97}=this[_0x373f93(0x155)][_0x373f93(0x157)]();return Math['max'](_0x3cf3ac,_0x15eb97);}}var Zi=Object['getOwnPropertyDescriptor'],Qi=(_0x3302e9,_0x27faca,_0x5cbdc7,_0x2912c3)=>{const _0xced644=_0x10cc18;for(var _0x2594f2=_0x2912c3>0x1?void 0x0:_0x2912c3?Zi(_0x27faca,_0x5cbdc7):_0x27faca,_0x39b844=_0x3302e9[_0xced644(0xf9)]-0x1,_0x4add4d;_0x39b844>=0x0;_0x39b844--)(_0x4add4d=_0x3302e9[_0x39b844])&&(_0x2594f2=_0x4add4d(_0x2594f2)||_0x2594f2);return _0x2594f2;},ie=(_0xa1a12a,_0x2bdbc0)=>(_0x3d4e3b,_0x38f83d)=>_0x2bdbc0(_0x3d4e3b,_0x38f83d,_0xa1a12a);let Fe=class extends _0x460db8{constructor(_0x8fde48,_0x810d11,_0x265390,_0x43256d,_0xd822fb){const _0x5f1e4b=_0x10cc18;super(),_(this,_0x5f1e4b(0x272),[]),_(this,'_cursors',[]),(this[_0x5f1e4b(0x187)]=_0x8fde48,this[_0x5f1e4b(0x10b)]=_0x810d11,this['_collabCursorController']=_0x265390,this[_0x5f1e4b(0x29c)]=_0x43256d,this[_0x5f1e4b(0x11f)]=_0xd822fb,this[_0x5f1e4b(0x25e)]());}['_init'](){const _0x3dac2f=_0x10cc18,_0x4f6aff=this[_0x3dac2f(0x187)][_0x3dac2f(0x16a)],_0x2ef8e9=this[_0x3dac2f(0x10b)];this[_0x3dac2f(0x1bc)](_0x5c05c1([this[_0x3dac2f(0x1d2)][_0x3dac2f(0x189)](_0x4f6aff),this[_0x3dac2f(0x11f)]['currentTheme$']])[_0x3dac2f(0x297)](_0x47b623(([_0x4a02cd,_0x194490])=>({'skeleton':_0x2ef8e9[_0x3dac2f(0x119)](),'cursors':[..._0x4a02cd['values']()][_0x3dac2f(0xfa)](_0x100a2a=>({..._0x100a2a,'color':this[_0x3dac2f(0x11f)][_0x3dac2f(0x2b0)](_0x100a2a[_0x3dac2f(0x1e5)])}))})))[_0x3dac2f(0x288)](_0x28a8c5=>{const _0x52a3f0=_0x3dac2f;if(this[_0x52a3f0(0x10d)](),_0x28a8c5){const {skeleton:_0x3edfb5,cursors:_0x5c3ca1}=_0x28a8c5;this[_0x52a3f0(0x2d7)](_0x3edfb5,_0x5c3ca1);}})),this[_0x3dac2f(0x24f)](),this[_0x3dac2f(0x207)]();}[_0x10cc18(0x2d7)](_0x9a82b6,_0x3f18db){const _0x2d7862=_0x10cc18,{scene:_0x64ffb6,mainComponent:_0x505401}=this[_0x2d7862(0x187)],_0x4e5207=_0x3f18db[_0x2d7862(0x2fb)](_0x2c7ddc=>new ct(_0x2c7ddc,_0x64ffb6,_0x9a82b6,_0x505401));this[_0x2d7862(0x272)]=_0x4e5207,this[_0x2d7862(0x2e9)]=_0x3f18db;}[_0x10cc18(0xe5)](){const _0x28a722=_0x10cc18;this['_removeCollabCursors']();const {scene:_0x58b5c5,mainComponent:_0x5c2be1}=this[_0x28a722(0x187)],_0x39859f=this[_0x28a722(0x10b)][_0x28a722(0x119)](),_0x5818a3=this['_cursors'][_0x28a722(0x2fb)](_0x690e53=>new ct(_0x690e53,_0x58b5c5,_0x39859f,_0x5c2be1));this[_0x28a722(0x272)]=_0x5818a3;}[_0x10cc18(0x10d)](){const _0x26e20e=_0x10cc18;this['_cursorShapes'][_0x26e20e(0x12c)](_0x1f0114=>_0x1f0114[_0x26e20e(0x233)]()),this['_cursorShapes']=[];}[_0x10cc18(0x207)](){const _0x51dab9=_0x10cc18,_0x4dec36=[_0x198811['id']];this[_0x51dab9(0x1bc)](this[_0x51dab9(0x29c)][_0x51dab9(0x164)](_0x20a7ec=>{const _0x224ba8=_0x51dab9;_0x4dec36[_0x224ba8(0x231)](_0x20a7ec['id'])&&_0x20a7ec['params']['unitId']===this[_0x224ba8(0x187)][_0x224ba8(0x16a)]&&this[_0x224ba8(0xe5)]();}));}[_0x10cc18(0x24f)](){const _0x2c14f7=_0x10cc18;this[_0x2c14f7(0x1bc)](_0x2b51fa(this[_0x2c14f7(0x187)][_0x2c14f7(0x202)]['onTransformChange$'])[_0x2c14f7(0x297)](_0x3cb932(_0x160482=>_0x160482[_0x2c14f7(0x1ce)]===_0x4c9c8a[_0x2c14f7(0x1fc)]),_0x5756a9(0x10))['subscribe'](()=>{this['_refreshCollabCursors']();}));}};Fe=Qi([ie(0x1,_0x2c9f2f(_0x9d459b)),ie(0x2,_0x2c9f2f(H)),ie(0x3,_0x526fee),ie(0x4,_0x2c9f2f(_0x31d312))],Fe);const qi=0x1,en=1.5;class tn extends _0x28bace{constructor(_0x14037f,_0x6a4e50){const _0x224016=_0x10cc18;super(_0x14037f,_0x6a4e50),_(this,_0x224016(0x213)),_(this,_0x224016(0x25f),!0x1),_(this,_0x224016(0x274)),_(this,_0x224016(0x278),''),_(this,_0x224016(0x2b3),_0x224016(0x299)),_(this,_0x224016(0x2ce)),(_0x6a4e50&&this[_0x224016(0x122)](_0x6a4e50),this['onPointerEnter$'][_0x224016(0x2c4)](()=>this[_0x224016(0x122)]({'hovered':!0x0})),this[_0x224016(0x26e)][_0x224016(0x2c4)](()=>this[_0x224016(0x122)]({'hovered':!0x1})));}[_0x10cc18(0x122)](_0x2d086f){const _0x554365=_0x10cc18;var _0x5bc9fc,_0xa9aedd,_0x420879,_0x309937,_0x258cba,_0x59dfc4;this['_color']=(_0x5bc9fc=_0x2d086f[_0x554365(0x1e5)])!=null?_0x5bc9fc:this[_0x554365(0x213)],this[_0x554365(0x25f)]=(_0xa9aedd=_0x2d086f[_0x554365(0x1eb)])!=null?_0xa9aedd:this['_hovered'],this['_range']=(_0x420879=_0x2d086f['range'])!=null?_0x420879:this[_0x554365(0x274)],this[_0x554365(0x278)]=(_0x309937=_0x2d086f[_0x554365(0x27a)])!=null?_0x309937:this['_name'],this[_0x554365(0x2b3)]=(_0x258cba=_0x2d086f[_0x554365(0x246)])!=null?_0x258cba:this['_labelPosition'],this[_0x554365(0x2ce)]=(_0x59dfc4=_0x2d086f[_0x554365(0x108)])!=null?_0x59dfc4:this[_0x554365(0x2ce)],this[_0x554365(0x20e)]({'width':_0x2d086f[_0x554365(0x320)],'height':_0x2d086f['height']});}[_0x10cc18(0x310)](_0x53a791){const _0xf43080=_0x10cc18,{row:_0x44ffb8,column:_0x509269}=_0x53a791;if(_0x44ffb8>=this[_0xf43080(0x274)][_0xf43080(0xf7)]&&_0x44ffb8<=this['_range'][_0xf43080(0x296)]&&_0x509269>=this[_0xf43080(0x274)][_0xf43080(0x280)]&&_0x509269<=this[_0xf43080(0x274)][_0xf43080(0x15f)]){this[_0xf43080(0x122)]({'hovered':!0x0});return;}this[_0xf43080(0x122)]({'hovered':!0x1});}[_0x10cc18(0x1bd)](_0x4f04f4){return!0x1;}[_0x10cc18(0x261)](_0x4cc091){const _0x52a3ff=_0x10cc18;_0x2dfad6[_0x52a3ff(0x285)](_0x4cc091,{'width':this[_0x52a3ff(0x320)],'height':this[_0x52a3ff(0x17a)],'strokeWidth':en,'stroke':this[_0x52a3ff(0x213)],'evented':!0x1,'fill':this['_backgroundColor']}),this['_hovered']&&(_0x4cc091[_0x52a3ff(0x211)](),_0x4cc091[_0x52a3ff(0x1ef)](0x1,0x0,0x0,0x1,this[_0x52a3ff(0x320)],this[_0x52a3ff(0x2b3)]==='bottom'?0x0:-Q),Ee[_0x52a3ff(0x285)](_0x4cc091,{'text':this[_0x52a3ff(0x278)],'color':this['_color']}),_0x4cc091[_0x52a3ff(0x32e)]());}}var sn=Object[_0x10cc18(0x1ea)],nn=(_0x3a883b,_0x3ff8e9,_0x17202e,_0x329391)=>{const _0x418071=_0x10cc18;for(var _0x3fe8a5=_0x329391>0x1?void 0x0:_0x329391?sn(_0x3ff8e9,_0x17202e):_0x3ff8e9,_0x1014ed=_0x3a883b[_0x418071(0xf9)]-0x1,_0x1d8579;_0x1014ed>=0x0;_0x1014ed--)(_0x1d8579=_0x3a883b[_0x1014ed])&&(_0x3fe8a5=_0x1d8579(_0x3fe8a5)||_0x3fe8a5);return _0x3fe8a5;},Ne=(_0x503935,_0x1ea326)=>(_0x4b8e5d,_0x4e404c)=>_0x1ea326(_0x4b8e5d,_0x4e404c,_0x503935);const rn=0x1389;let ke=class extends _0x460db8{constructor(_0x9d1720,_0x53187c,_0x3bc7c,_0x103db0){const _0x297507=_0x10cc18;super(),_(this,_0x297507(0x2e9),new Set()),_(this,_0x297507(0x312),null),(this[_0x297507(0x187)]=_0x9d1720,this['_sheetSkeletonManagerService']=_0x53187c,this[_0x297507(0x1d2)]=_0x3bc7c,this[_0x297507(0x11f)]=_0x103db0,this['_init']());}[_0x10cc18(0x25e)](){const _0x358e93=_0x10cc18;this[_0x358e93(0x26d)][_0x358e93(0x2c6)][_0x358e93(0x297)](_0x2ea52d(this[_0x358e93(0x20f)]),_0x33a13a(_0x3786f1=>{const _0x5e49a7=_0x358e93;if(_0x3786f1){const _0x57cc08=_0x3786f1[_0x5e49a7(0x18a)];return _0x5c05c1(this[_0x5e49a7(0x1d2)][_0x5e49a7(0x189)](this[_0x5e49a7(0x187)]['unitId']),this[_0x5e49a7(0x11f)][_0x5e49a7(0x265)])[_0x5e49a7(0x297)](_0x47b623(([_0x5e4721,_0x1d058e])=>{const _0xafe4b1=_0x5e49a7,_0x26ce0b=new Map();return _0x5e4721[_0xafe4b1(0x12c)]((_0x2039a8,_0x507d1f)=>{const _0x1360fb=_0xafe4b1;if(_0x2039a8[_0x1360fb(0x1fd)]===_0x57cc08){const _0x379bca={..._0x2039a8};_0x379bca[_0x1360fb(0x1e5)]=this[_0x1360fb(0x11f)][_0x1360fb(0x2b0)](_0x2039a8[_0x1360fb(0x1e5)]),_0x26ce0b['set'](_0x507d1f,_0x379bca);}}),{'skeleton':_0x3786f1,'cursors':_0x26ce0b};}));}return _0x281440({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x56a350,cursors:_0x34125d})=>{const _0x39c58b=_0x358e93;this[_0x39c58b(0x10d)](),_0x56a350&&this[_0x39c58b(0x2d7)](_0x56a350,_0x34125d);}),this[_0x358e93(0x26d)][_0x358e93(0x2c6)][_0x358e93(0x288)](_0xd2c59c=>{const _0x9f3589=_0x358e93;if(_0xd2c59c==null)return;const {skeleton:_0x23ae51}=_0xd2c59c,{scene:_0x5044e5}=this[_0x9f3589(0x187)];_0x5044e5[_0x9f3589(0x255)][_0x9f3589(0x2c4)](_0x51b589(_0x1263ac=>{const _0x12055b=_0x9f3589;var _0x12db83,_0x181477;const {offsetX:_0x26ee5c,offsetY:_0x3a6003}=_0x1263ac,{x:_0x8fdd29,y:_0x3d666d}=_0x5044e5['getRelativeToViewportCoord'](_0x4b7404[_0x12055b(0x30a)]([_0x26ee5c,_0x3a6003])),{scaleX:_0x44fb37,scaleY:_0x188103}=_0x5044e5[_0x12055b(0x157)](),_0x2c0a89=_0x5044e5[_0x12055b(0x22a)](_0x32c43e[_0x12055b(0x293)]),_0xc8f162=_0x5044e5[_0x12055b(0x2e1)](_0x4b7404[_0x12055b(0x30a)]([_0x8fdd29,_0x3d666d]),_0x2c0a89),_0x58272c=_0x23ae51[_0x12055b(0x30e)](_0x26ee5c,_0x3a6003,_0x44fb37,_0x188103,_0xc8f162);((_0x12db83=this[_0x12055b(0x312)])==null?void 0x0:_0x12db83[_0x12055b(0x2c0)])===_0x58272c[_0x12055b(0x2c0)]&&((_0x181477=this[_0x12055b(0x312)])==null?void 0x0:_0x181477['row'])===_0x58272c['row']||this[_0x12055b(0x2e9)][_0x12055b(0x12c)](_0x4e8385=>{const _0x16affd=_0x12055b;_0x4e8385[_0x16affd(0x310)](_0x58272c);});},0x64));});}[_0x10cc18(0x2d7)](_0x204b77,_0xda0728){const _0x515e90=_0x10cc18;var _0x312c29;const _0x59a503=(_0x312c29=this[_0x515e90(0x26d)][_0x515e90(0x1d3)]())==null?void 0x0:_0x312c29[_0x515e90(0x126)];if(!_0x59a503)return;const _0x13bbde=this['_getSheetObject']();if(!_0x13bbde)return;this[_0x515e90(0x2e9)][_0x515e90(0x12c)](_0x58d37b=>{_0x58d37b['makeDirty']();});const {scene:_0x5efa8c}=_0x13bbde,_0x141f09=on(Array['from'](_0xda0728['values']()))[_0x515e90(0x2fb)](_0xc0f61f=>{const _0x5ea3e2=_0x515e90,{color:_0x36b2ce,range:_0x929e7c,name:_0x2734ed,selection:_0x3e45e4,sheetID:_0x2d1435}=_0xc0f61f,{startColumn:_0x576b6c,startRow:_0x500a1b,endColumn:_0x22f339,endRow:_0x38bb72}=_0x929e7c,_0x3790f2=_0x2094e3(_0x500a1b,_0x576b6c,_0x5efa8c,_0x59a503),_0x430db7=_0x2094e3(_0x38bb72,_0x22f339,_0x5efa8c,_0x59a503),{columnHeaderHeightAndMarginTop:_0x386d5b}=_0x59a503,{startX:_0x166b2c,startY:_0x3c6201}=_0x3790f2,{endX:_0xb37cb6,endY:_0x241798}=_0x430db7,_0x1bb7c2=_0xb37cb6-_0x166b2c,_0x3ee683=_0x241798-_0x3c6201,_0x5a5e92={'labelPosition':_0x3c6201-_0x386d5b>=Q?_0x5ea3e2(0x299):_0x5ea3e2(0x1c7),'sheetID':_0x2d1435,'range':_0x929e7c,'color':_0x36b2ce,'name':_0x2734ed,'selection':_0x3e45e4,'left':_0x166b2c,'top':_0x3c6201,'width':_0x1bb7c2,'height':_0x3ee683,'evented':!0x1,'zIndex':rn};return new tn(_0x2734ed,_0x5a5e92);});_0x5efa8c[_0x515e90(0x234)](_0x141f09,qi),this[_0x515e90(0x2e9)]=new Set(_0x141f09);}['_removeCollabCursors'](){const _0x3a2492=_0x10cc18;var _0x51c7a7;(_0x51c7a7=this[_0x3a2492(0x2e9)])==null||_0x51c7a7[_0x3a2492(0x12c)](_0x4be8e1=>_0x4be8e1[_0x3a2492(0x233)]());}['_getSheetObject'](){const _0x5e2722=_0x10cc18;return _0x32f0c0(this[_0x5e2722(0x187)]['unit'],this['_context']);}};ke=nn([Ne(0x1,_0x2c9f2f(_0x2cb62f)),Ne(0x2,_0x2c9f2f(H)),Ne(0x3,_0x2c9f2f(_0x31d312))],ke);function on(_0x2e25dc){const _0x41b685=_0x10cc18,_0x3981c2=new Map();return _0x2e25dc[_0x41b685(0x12c)](_0xca24a9=>{const _0x2c4c04=_0x41b685;if(_0x3981c2[_0x2c4c04(0x2bd)](_0xca24a9[_0x2c4c04(0x107)])){const _0x503722=_0x3981c2[_0x2c4c04(0x127)](_0xca24a9[_0x2c4c04(0x107)]);_0x503722[_0x2c4c04(0x27a)]+=',\x20'+_0xca24a9[_0x2c4c04(0x27a)];}else _0x3981c2[_0x2c4c04(0x239)](_0xca24a9['selection'],_0xca24a9);}),Array['from'](_0x3981c2['values']());}function _0x58c2(_0x1ab2b1,_0x39d731){const _0x270efc=_0x270e();return _0x58c2=function(_0x58c22a,_0x4188ba){_0x58c22a=_0x58c22a-0xe4;let _0xc3c535=_0x270efc[_0x58c22a];return _0xc3c535;},_0x58c2(_0x1ab2b1,_0x39d731);}var an=Object[_0x10cc18(0x1ea)],cn=(_0x1c75eb,_0xfdd4d8,_0x9389de,_0x28ae0a)=>{const _0x5cc2cd=_0x10cc18;for(var _0x1dda77=_0x28ae0a>0x1?void 0x0:_0x28ae0a?an(_0xfdd4d8,_0x9389de):_0xfdd4d8,_0x527467=_0x1c75eb[_0x5cc2cd(0xf9)]-0x1,_0x4b383c;_0x527467>=0x0;_0x527467--)(_0x4b383c=_0x1c75eb[_0x527467])&&(_0x1dda77=_0x4b383c(_0x1dda77)||_0x1dda77);return _0x1dda77;},F=(_0x4d0cf7,_0x565d54)=>(_0x330465,_0x25a67b)=>_0x565d54(_0x330465,_0x25a67b,_0x4d0cf7);let _e=class extends _0x3e748e{constructor(_0x4d5f76,_0x3cd275,_0x232be5,_0xfd79f3,_0x2bfebd,_0xb5f199){const _0x1f3029=_0x10cc18;super(),this[_0x1f3029(0x263)]=_0x4d5f76,this[_0x1f3029(0x128)]=_0x3cd275,this[_0x1f3029(0x331)]=_0x232be5,this[_0x1f3029(0x279)]=_0xfd79f3,this['_notificationService']=_0x2bfebd,this[_0x1f3029(0x303)]=_0xb5f199,this[_0x1f3029(0x1d4)](),this[_0x1f3029(0x22b)]();}[_0x10cc18(0x1d4)](){const _0x75c75a=_0x10cc18;this['disposeWithMe'](this[_0x75c75a(0x263)][_0x75c75a(0x163)](()=>{const _0x196a53=_0x75c75a;if(this[_0x196a53(0x128)][_0x196a53(0x1df)][_0x196a53(0x20b)])return this[_0x196a53(0x303)]['t']('collaboration-client.offline-data-not-saved');}));}[_0x10cc18(0x22b)](){const _0x5132eb=_0x10cc18;this[_0x5132eb(0x1bc)](this[_0x5132eb(0x331)][_0x5132eb(0x1c5)][_0x5132eb(0x288)](_0x15a3de=>{const _0x410494=_0x5132eb;_0x15a3de['id']===_0x5e0b6b[_0x410494(0x1b0)]&&this[_0x410494(0x279)][_0x410494(0xe7)]({'type':_0x22c147['Warning'],'content':this[_0x410494(0x303)]['t'](_0x410494(0x194))}),_0x15a3de['id']===_0x5e0b6b['CLOSE_ROOM']&&this[_0x410494(0x279)][_0x410494(0xe7)]({'type':_0x22c147[_0x410494(0x2c8)],'content':this['_localeService']['t'](_0x410494(0x2ab))}),_0x15a3de['id']===_0x5e0b6b[_0x410494(0x2b8)]&&this['_notificationService'][_0x410494(0xe7)]({'title':this['_localeService']['t']('permission.title'),'content':this[_0x410494(0x303)]['t'](_0x410494(0x121)),'type':_0x410494(0x1ac),'duration':0x0}),_0x15a3de['id']===_0x5e0b6b['CONFLICT']&&this['_messageService'][_0x410494(0xe7)]({'type':_0x22c147['Error'],'content':this[_0x410494(0x303)]['t'](_0x410494(0x2ab))+'('+_0x15a3de[_0x410494(0x1e0)]+')'}),_0x15a3de['id']===_0x5e0b6b[_0x410494(0x26a)]&&this[_0x410494(0x279)]['show']({'type':_0x22c147[_0x410494(0x2c8)],'content':this[_0x410494(0x303)]['t'](_0x15a3de['data']||'')}),_0x15a3de['id']===_0x5e0b6b[_0x410494(0x17b)]&&this['_messageService'][_0x410494(0xe7)]({'type':_0x22c147[_0x410494(0x2c8)],'content':this[_0x410494(0x303)]['t'](_0x410494(0x148))}),_0x15a3de['id']===_0x5e0b6b['SOCKET_FAILED']&&this[_0x410494(0x279)][_0x410494(0xe7)]({'type':_0x22c147[_0x410494(0x153)],'content':this['_localeService']['t'](_0x410494(0xfc))}),_0x15a3de['id']===_0x5e0b6b[_0x410494(0xee)]&&this[_0x410494(0x279)][_0x410494(0xe7)]({'type':_0x22c147[_0x410494(0x153)],'content':this['_localeService']['t']('session.collaboration-timeout')});}));}};_e=cn([F(0x0,_0x4d68ed),F(0x1,_0x3a4f5a),F(0x2,_0x2c9f2f(_0x32b243)),F(0x3,_0x41d342),F(0x4,_0x3c2d52),F(0x5,_0x2c9f2f(_0xefd7ba))],_e);var _n=Object['getOwnPropertyDescriptor'],ln=(_0x239ad6,_0x4e12a5,_0xd103a9,_0x2256da)=>{for(var _0x1ebdb5=_0x2256da>0x1?void 0x0:_0x2256da?_n(_0x4e12a5,_0xd103a9):_0x4e12a5,_0x3c41c7=_0x239ad6['length']-0x1,_0x3f1378;_0x3c41c7>=0x0;_0x3c41c7--)(_0x3f1378=_0x239ad6[_0x3c41c7])&&(_0x1ebdb5=_0x3f1378(_0x1ebdb5)||_0x1ebdb5);return _0x1ebdb5;},ne=(_0x55032a,_0x3c8d61)=>(_0x31ed82,_0x58a613)=>_0x3c8d61(_0x31ed82,_0x58a613,_0x55032a);let le=class extends _0x3e748e{constructor(_0x2f4959,_0x506dbb,_0x5cd175,_0x159810){const _0xa5353f=_0x10cc18;super(),_(this,'_memberID'),(this['_injector']=_0x2f4959,this[_0xa5353f(0x276)]=_0x506dbb,this['_logService']=_0x5cd175,this['_collaborationSessionService']=_0x159810,this['_init']());}[_0x10cc18(0x25e)](){const _0x2ebc47=_0x10cc18;this[_0x2ebc47(0x250)](),this['_initUnhandledRejectionListener'](),this[_0x2ebc47(0x2f7)](),this[_0x2ebc47(0x222)]();}[_0x10cc18(0x222)](){const _0x4b80a7=_0x10cc18;this['disposeWithMe'](this[_0x4b80a7(0x292)][_0x4b80a7(0x137)][_0x4b80a7(0x288)](_0x5c302b=>{this['_memberID']=_0x5c302b==null?void 0x0:_0x5c302b['memberID'];}));}[_0x10cc18(0x250)](){const _0x204d12=_0x10cc18,_0x447b60=_0x5e777b=>{const _0x1ad90c=_0x58c2;var _0x6c6291;this[_0x1ad90c(0x14d)](_0x1ad90c(0x1ac),'[Window\x20Error]:\x20'+_0x5e777b['message']+'\x20at\x20'+_0x5e777b[_0x1ad90c(0x20c)]+':'+_0x5e777b[_0x1ad90c(0x1da)]+':'+_0x5e777b[_0x1ad90c(0x134)]+'\x0a'+(((_0x6c6291=_0x5e777b[_0x1ad90c(0x1ac)])==null?void 0x0:_0x6c6291[_0x1ad90c(0x25b)])||''));};window[_0x204d12(0x325)](_0x204d12(0x1ac),_0x447b60),this[_0x204d12(0x1bc)](()=>{const _0x4877b5=_0x204d12;window[_0x4877b5(0x251)](_0x4877b5(0x1ac),_0x447b60);});}[_0x10cc18(0x115)](){const _0x8b2f99=_0x10cc18,_0x183213=_0x1c6e99=>{const _0x329052=_0x58c2;this[_0x329052(0x14d)](_0x329052(0x1ac),_0x329052(0x1f3)+_0x1c6e99['reason']);};window[_0x8b2f99(0x325)](_0x8b2f99(0x31f),_0x183213),this[_0x8b2f99(0x1bc)](()=>{const _0x143a93=_0x8b2f99;window[_0x143a93(0x251)]('unhandledrejection',_0x183213);});}[_0x10cc18(0x2f7)](){const _0x4f7c40=_0x10cc18,_0x195ac2=this[_0x4f7c40(0x190)][_0x4f7c40(0x1ac)]['bind'](this[_0x4f7c40(0x190)]);this[_0x4f7c40(0x190)][_0x4f7c40(0x1ac)]=(..._0x44ab1e)=>{const _0x264ede=_0x4f7c40,_0x374341=_0x44ab1e[_0x264ede(0x2fb)](_0x18554c=>_0x18554c instanceof Error?_0x18554c[_0x264ede(0x2bc)]+'\x0a'+_0x18554c['stack']:String(_0x18554c))[_0x264ede(0x175)]('\x20');this['_uploadLog']('error','[LogService\x20Error]:\x20'+_0x374341),_0x195ac2(..._0x44ab1e);},this['disposeWithMe'](()=>{const _0x512447=_0x4f7c40;this[_0x512447(0x190)][_0x512447(0x1ac)]=_0x195ac2;});}[_0x10cc18(0x14d)](_0x130334,_0x41781b){const _0x53081c=_0x10cc18;try{const _0x5c6fd1={'userId':this[_0x53081c(0x311)],'logLabel':_0x130334,'content':_0x41781b};this['_httpService']['post'](_0x53081c(0x2d6),{'body':_0x5c6fd1})[_0x53081c(0x1c1)](()=>{});}catch{}}};le=ln([ne(0x0,_0x2c9f2f(_0x3955fb)),ne(0x1,_0x2c9f2f(_0x47ffcb)),ne(0x2,_0x1368e3),ne(0x3,_0x2c9f2f(_0x1abc06))],le);const hn=_0x10cc18(0x1cd),_t={};var un=Object[_0x10cc18(0x1ea)],dn=(_0x1a4275,_0x34d69d,_0x3d2f91,_0x3e50e6)=>{const _0x106de8=_0x10cc18;for(var _0x2ff2b2=_0x3e50e6>0x1?void 0x0:_0x3e50e6?un(_0x34d69d,_0x3d2f91):_0x34d69d,_0x3f53c6=_0x1a4275[_0x106de8(0xf9)]-0x1,_0x2a8361;_0x3f53c6>=0x0;_0x3f53c6--)(_0x2a8361=_0x1a4275[_0x3f53c6])&&(_0x2ff2b2=_0x2a8361(_0x2ff2b2)||_0x2ff2b2);return _0x2ff2b2;},lt=(_0x45250e,_0x19f61d)=>(_0x28be00,_0x45e56d)=>_0x19f61d(_0x28be00,_0x45e56d,_0x45250e);let he=class{constructor(_0x453437,_0x4a39f3){const _0x1fe490=_0x10cc18;this[_0x1fe490(0x16d)]=_0x453437,this[_0x1fe490(0x1f0)]=_0x4a39f3;}[_0x10cc18(0x31d)](_0x4c8e55){const _0x553d2e=_0x10cc18;this[_0x553d2e(0x28d)](_0x4c8e55),this[_0x553d2e(0x17f)](_0x4c8e55);}[_0x10cc18(0x324)](_0x3e2eca){const _0x2138b4=_0x10cc18,{unitID:_0x2b3adb}=_0x3e2eca,_0x54eee6=this[_0x2138b4(0x1f0)][_0x2138b4(0x105)](_0x2b3adb)['with'](_0x10cfe8),{redoCache:_0x2fc7fc}=_0x54eee6['getUndoRedoMutationParamsCache']();if(_0x2fc7fc['length']===0x0)return _0x3e2eca;let _0x4ceb1d=_0x4984ae[_0x2138b4(0x257)](_0x3e2eca[_0x2138b4(0x206)][0x0]);for(let _0x42a7dc=0x0;_0x42a7dc<_0x2fc7fc[_0x2138b4(0xf9)];_0x42a7dc++){const _0x1f7be6={'id':_0x2138b4(0x106),'params':{..._0x2fc7fc[_0x42a7dc]}},_0x5a9468=this[_0x2138b4(0x16d)][_0x2138b4(0x260)](_0x4ceb1d,_0x1f7be6,!0x1);if(_0x3ff0c5(_0x5a9468))throw _0x5a9468[_0x2138b4(0x1ac)];_0x4ceb1d=_0x5a9468[_0x2138b4(0x2aa)];}return{..._0x4984ae['deepClone'](_0x3e2eca),'mutations':[_0x4ceb1d]};}[_0x10cc18(0x28d)](_0x49ccb4){const _0x55b193=_0x10cc18,{unitID:_0x3d2929}=_0x49ccb4,_0x28da71=this[_0x55b193(0x1f0)]['getRenderById'](_0x3d2929)[_0x55b193(0x104)](_0x10cfe8),{undoCache:_0x248e4c,redoCache:_0x49f272}=_0x28da71[_0x55b193(0xf8)]();if(_0x248e4c['length']===0x0||_0x49f272['length']===0x0)return;const _0x207a6c=[],_0x250641=[];let _0x4b7507=_0x4984ae[_0x55b193(0x257)](_0x49ccb4[_0x55b193(0x206)][0x0]),_0x4a72cd=_0x4984ae[_0x55b193(0x257)](_0x49ccb4[_0x55b193(0x206)][0x0]);for(let _0x40c2c1=_0x248e4c[_0x55b193(0xf9)]-0x1;_0x40c2c1>=0x0;_0x40c2c1--){const _0xc4d525={'id':_0x55b193(0x106),'params':{..._0x248e4c[_0x40c2c1]}},_0x1b466d={'id':_0x55b193(0x106),'params':{..._0x49f272[_0x40c2c1]}},_0x5adc51=this[_0x55b193(0x16d)][_0x55b193(0x260)](_0x4b7507,_0xc4d525,!0x1),_0xcb3f84=this['_transformService']['transformMutation'](_0x4a72cd,_0x1b466d,!0x1);if(_0x3ff0c5(_0x5adc51))throw _0x5adc51[_0x55b193(0x1ac)];if(_0x3ff0c5(_0xcb3f84))throw _0xcb3f84['error'];_0x207a6c[_0x55b193(0x1b5)](_0x5adc51[_0x55b193(0x21e)][_0x55b193(0x151)]),_0x250641[_0x55b193(0x1b5)](_0xcb3f84[_0x55b193(0x21e)][_0x55b193(0x151)]),_0x4b7507=_0x5adc51['m1Prime'],_0x4a72cd=_0xcb3f84['m1Prime'];}_0x28da71[_0x55b193(0x1b4)]({'undoCache':_0x207a6c,'redoCache':_0x250641});}['_transformPreviousActiveRange'](_0x4126d3){const _0x397984=_0x10cc18,{unitID:_0x484b5e}=_0x4126d3,_0x52eae8=this[_0x397984(0x1f0)][_0x397984(0x105)](_0x484b5e)[_0x397984(0x104)](_0x10cfe8),_0x2c48eb=_0x52eae8[_0x397984(0x1d7)]();if(_0x2c48eb==null)return;const _0x3dfb56=[{'id':_0x397984(0x106),'params':{'unitId':_0x4126d3[_0x397984(0x249)],'actions':null,'textRanges':[_0x2c48eb]}}],_0x2bf1b9=this[_0x397984(0x16d)][_0x397984(0x28c)](_0x4126d3,_0x3dfb56);if(!_0x4e8f7d(_0x2bf1b9))throw _0x2bf1b9[_0x397984(0x1ac)];const _0x10553d=_0x2bf1b9['m2Prime'][0x0][_0x397984(0x151)]['textRanges'];Array['isArray'](_0x10553d)&&_0x10553d[_0x397984(0xf9)]&&_0x52eae8[_0x397984(0x229)](_0x10553d[0x0]);}};he=dn([lt(0x0,_0x447d81),lt(0x1,_0x20cff4)],he);var Sn=Object[_0x10cc18(0x1ea)],mn=(_0x21a8ce,_0x285d38,_0x1a8836,_0x26e98b)=>{const _0x2860a6=_0x10cc18;for(var _0x24007f=_0x26e98b>0x1?void 0x0:_0x26e98b?Sn(_0x285d38,_0x1a8836):_0x285d38,_0x592092=_0x21a8ce[_0x2860a6(0xf9)]-0x1,_0x59e972;_0x592092>=0x0;_0x592092--)(_0x59e972=_0x21a8ce[_0x592092])&&(_0x24007f=_0x59e972(_0x24007f)||_0x24007f);return _0x24007f;},Le=(_0x16e17a,_0x4b1f4f)=>(_0xf3f0b1,_0x5f2651)=>_0x4b1f4f(_0xf3f0b1,_0x5f2651,_0x16e17a);let ue=class{constructor(_0x520da4,_0x9473e2,_0x40dc1f){const _0x30331f=_0x10cc18;this['_injector']=_0x520da4,this[_0x30331f(0x16d)]=_0x9473e2,this['_docStateChangeManagerService']=_0x40dc1f;}[_0x10cc18(0x13e)](_0x128609){const _0x4306a9=_0x10cc18;this[_0x4306a9(0x10f)](_0x128609);}[_0x10cc18(0x324)](_0x2171e1){const _0x44447a=_0x10cc18,{unitID:_0x36eb05}=_0x2171e1,{collaboration:_0x4016e3}=this[_0x44447a(0x252)]['getStateCache'](_0x36eb05);if(_0x4016e3[_0x44447a(0xf9)]===0x0)return _0x2171e1;let _0x4613f2=_0x4984ae[_0x44447a(0x257)](_0x2171e1['mutations'][0x0]);for(let _0x5a606b=0x0;_0x5a606b<_0x4016e3[_0x44447a(0xf9)];_0x5a606b++){const _0x55e158={'id':_0x44447a(0x106),'params':{'unitId':_0x4016e3[_0x5a606b][_0x44447a(0x16a)],..._0x4016e3[_0x5a606b][_0x44447a(0x307)]}},_0x2a9e0c=this['_transformService'][_0x44447a(0x260)](_0x4613f2,_0x55e158,!0x1);if(_0x3ff0c5(_0x2a9e0c))throw _0x2a9e0c[_0x44447a(0x1ac)];_0x4613f2=_0x2a9e0c['m1Prime'];}return{..._0x4984ae[_0x44447a(0x257)](_0x2171e1),'mutations':[_0x4613f2]};}[_0x10cc18(0x10f)](_0x9ef506){const _0x54986f=_0x10cc18,{unitID:_0x3d55b2}=_0x9ef506,{history:_0x620009,collaboration:_0x4b6721}=this[_0x54986f(0x252)][_0x54986f(0x185)](_0x3d55b2);if(_0x620009[_0x54986f(0xf9)]===0x0&&_0x4b6721[_0x54986f(0xf9)]===0x0)return;const _0x460992=[],_0x56d0ce=[];let _0x494900=_0x4984ae['deepClone'](_0x9ef506[_0x54986f(0x206)][0x0]),_0x4a20fa=_0x4984ae[_0x54986f(0x257)](_0x9ef506['mutations'][0x0]);for(let _0x1320a7=_0x620009[_0x54986f(0xf9)]-0x1;_0x1320a7>=0x0;_0x1320a7--){const _0x33513e={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x620009[_0x1320a7][_0x54986f(0x16a)],..._0x620009[_0x1320a7][_0x54986f(0x109)]}},_0x192a10={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x620009[_0x1320a7]['unitId'],..._0x620009[_0x1320a7]['redoState']}},_0xd1f02b=this['_transformService']['transformMutation'](_0x494900,_0x33513e,!0x1),_0x5821dc=this[_0x54986f(0x16d)]['transformMutation'](_0x4a20fa,_0x192a10,!0x1);if(_0x3ff0c5(_0xd1f02b))throw _0xd1f02b[_0x54986f(0x1ac)];if(_0x3ff0c5(_0x5821dc))throw _0x5821dc[_0x54986f(0x1ac)];_0x460992[_0x54986f(0x1b5)]({..._0x620009[_0x1320a7],'undoState':_0xd1f02b['m2Prime'][_0x54986f(0x151)],'redoState':_0x5821dc[_0x54986f(0x21e)]['params']}),_0x494900=_0xd1f02b[_0x54986f(0x2aa)],_0x4a20fa=_0x5821dc['m1Prime'];}_0x494900=_0x4984ae[_0x54986f(0x257)](_0x9ef506[_0x54986f(0x206)][0x0]),_0x4a20fa=_0x4984ae[_0x54986f(0x257)](_0x9ef506['mutations'][0x0]);for(let _0x252832=_0x4b6721[_0x54986f(0xf9)]-0x1;_0x252832>=0x0;_0x252832--){const _0x85f924={'id':_0x54986f(0x106),'params':{'unitId':_0x4b6721[_0x252832][_0x54986f(0x16a)],..._0x4b6721[_0x252832][_0x54986f(0x109)]}},_0x13e0fa={'id':_0x54986f(0x106),'params':{'unitId':_0x4b6721[_0x252832][_0x54986f(0x16a)],..._0x4b6721[_0x252832][_0x54986f(0x307)]}},_0x4a5a3c=this['_transformService'][_0x54986f(0x260)](_0x494900,_0x85f924,!0x1),_0x2d8042=this['_transformService'][_0x54986f(0x260)](_0x4a20fa,_0x13e0fa,!0x1);if(_0x3ff0c5(_0x4a5a3c))throw _0x4a5a3c[_0x54986f(0x1ac)];if(_0x3ff0c5(_0x2d8042))throw _0x2d8042['error'];_0x56d0ce[_0x54986f(0x1b5)]({..._0x4b6721[_0x252832],'undoState':_0x4a5a3c[_0x54986f(0x21e)][_0x54986f(0x151)],'redoState':_0x2d8042['m2Prime']['params']}),_0x494900=_0x4a5a3c[_0x54986f(0x2aa)],_0x4a20fa=_0x2d8042[_0x54986f(0x2aa)];}this[_0x54986f(0x252)][_0x54986f(0x22c)](_0x3d55b2,{'history':_0x460992,'collaboration':_0x56d0ce});}};ue=mn([Le(0x0,_0x2c9f2f(_0x3955fb)),Le(0x1,_0x447d81),Le(0x2,_0x2c9f2f(_0x58cfb8))],ue);var In=Object[_0x10cc18(0x1ea)],fn=(_0x50f8f6,_0x25b639,_0x52f4ed,_0xe87461)=>{for(var _0x148cca=_0xe87461>0x1?void 0x0:_0xe87461?In(_0x25b639,_0x52f4ed):_0x25b639,_0x7f7a08=_0x50f8f6['length']-0x1,_0x2904c3;_0x7f7a08>=0x0;_0x7f7a08--)(_0x2904c3=_0x50f8f6[_0x7f7a08])&&(_0x148cca=_0x2904c3(_0x148cca)||_0x148cca);return _0x148cca;},ht=(_0xb998d8,_0x44ceed)=>(_0x5818ad,_0x1cacb8)=>_0x44ceed(_0x5818ad,_0x1cacb8,_0xb998d8);let de=class{constructor(_0x309edc,_0x44d1ad){const _0x43b9d3=_0x10cc18;this[_0x43b9d3(0xf0)]=_0x309edc,this[_0x43b9d3(0x16d)]=_0x44d1ad;}['transformSelections'](_0x598361){const _0xef872e=_0x10cc18;var _0x37cbae;const _0x4dc4e6=this[_0xef872e(0xf0)][_0xef872e(0x127)](_0x196312),_0x8dcbf0=(_0x37cbae=_0x4dc4e6[_0xef872e(0x1d8)]())!=null?_0x37cbae:[];if(_0x8dcbf0[_0xef872e(0xf9)]===0x0)return;const _0x490675=_0x598361[_0xef872e(0x249)],_0x2a67f5=[{'id':_0xef872e(0x106),'params':{'unitId':_0x490675,'actions':null,'textRanges':_0x8dcbf0}}],_0x2430f8=this[_0xef872e(0x16d)][_0xef872e(0x28c)](_0x598361,_0x2a67f5);if(!_0x4e8f7d(_0x2430f8))throw _0x2430f8[_0xef872e(0x1ac)];const _0x50439a=_0x2430f8[_0xef872e(0x21e)][0x0][_0xef872e(0x151)][_0xef872e(0x1a2)];Array[_0xef872e(0x2d1)](_0x50439a)&&_0x50439a[_0xef872e(0xf9)]&&_0x4dc4e6['replaceDocRanges'](_0x50439a,{'unitId':_0x490675,'subUnitId':_0x490675},!0x1);}};de=fn([ht(0x0,_0x2c9f2f(_0x3955fb)),ht(0x1,_0x447d81)],de);var gn=Object['getOwnPropertyDescriptor'],vn=(_0x464b87,_0x2647aa,_0x3e4df8,_0x23a408)=>{const _0x5d2288=_0x10cc18;for(var _0xc1784c=_0x23a408>0x1?void 0x0:_0x23a408?gn(_0x2647aa,_0x3e4df8):_0x2647aa,_0x11304a=_0x464b87[_0x5d2288(0xf9)]-0x1,_0x8b6e8f;_0x11304a>=0x0;_0x11304a--)(_0x8b6e8f=_0x464b87[_0x11304a])&&(_0xc1784c=_0x8b6e8f(_0xc1784c)||_0xc1784c);return _0xc1784c;},U=(_0xcadf04,_0x305096)=>(_0xf4f47a,_0x28f1bd)=>_0x305096(_0xf4f47a,_0x28f1bd,_0xcadf04);let Se=class extends _0x3e748e{constructor(_0x1e18af,_0x25be45,_0x480daf,_0x2c6318,_0x30caa3,_0x447c82,_0x42a86a,_0x159519){const _0x195893=_0x10cc18;super(),_(this,_0x195893(0x1f8),new _0x1ced39(_0x3d84ba['NOT_COLLAB'])),(this[_0x195893(0x252)]=_0x1e18af,this[_0x195893(0x1c9)]=_0x25be45,this['_docTransformIMECacheService']=_0x480daf,this[_0x195893(0x145)]=_0x2c6318,this[_0x195893(0x2a9)]=_0x30caa3,this['_docSyncEditingCollabCursorService']=_0x447c82,this[_0x195893(0x279)]=_0x42a86a,this[_0x195893(0x303)]=_0x159519,this[_0x195893(0x123)]());}[_0x10cc18(0x123)](){const _0x267b2e=_0x10cc18;this['disposeWithMe'](this[_0x267b2e(0x1c9)]['entityInit$']['subscribe'](_0x536905=>{const _0x5a481f=_0x267b2e,_0x52c5c0=this['_docStateChangeManagerService'][_0x5a481f(0x2ec)]['subscribe'](_0x6cce2e=>{const _0x35e53f=_0x5a481f;if(_0x6cce2e==null)return;const {unitId:_0x34650a,redoState:_0x372c23,commandId:_0x3f4612}=_0x6cce2e;if(_0x34650a!==_0x536905[_0x35e53f(0x249)])return;const _0x33b1f8={'id':_0x3f4612,'type':_0x3e471d[_0x35e53f(0x228)],'params':{'unitId':_0x34650a,'actions':_0x372c23[_0x35e53f(0x230)],'textRanges':null}};_0x536905[_0x35e53f(0x102)](_0x33b1f8);});if(_0x536905[_0x5a481f(0x1bc)](_0x52c5c0),_0x536905 instanceof _0x59b116){const _0x404b56={'onTransformIME':_0x3fd6a5=>this[_0x5a481f(0x2e6)][_0x5a481f(0x31d)](_0x3fd6a5),'onTransformState':_0x534a90=>this['_docTransformStateCacheService'][_0x5a481f(0x13e)](_0x534a90),'onTransformSelections':_0x59dfc9=>this[_0x5a481f(0x2a9)][_0x5a481f(0x29e)](_0x59dfc9),'onSyncEditingCollabCursor':_0x102a84=>this[_0x5a481f(0x1a4)][_0x5a481f(0x199)](_0x102a84),'onTransformRemoteChangesetByIMECache':_0x3bc2ec=>this[_0x5a481f(0x2e6)][_0x5a481f(0x324)](_0x3bc2ec),'onTransformRemoteChangesetByStateCache':_0x178f40=>this[_0x5a481f(0x145)][_0x5a481f(0x324)](_0x178f40)};_0x536905[_0x5a481f(0x1ff)](_0x404b56);}}));}};Se=vn([U(0x0,_0x2c9f2f(_0x58cfb8)),U(0x1,_0x2c9f2f(_0x69ed9c)),U(0x2,_0x2c9f2f(he)),U(0x3,_0x2c9f2f(ue)),U(0x4,_0x2c9f2f(de)),U(0x5,_0x2c9f2f(ze)),U(0x6,_0x41d342),U(0x7,_0x2c9f2f(_0xefd7ba))],Se);var Z=(_0x2988cf=>(_0x2988cf[_0x2988cf[_0x10cc18(0x1a6)]=0x0]=_0x10cc18(0x1a6),_0x2988cf[_0x2988cf['OK']=0x1]='OK',_0x2988cf[_0x2988cf[_0x10cc18(0x12a)]=0x2]=_0x10cc18(0x12a),_0x2988cf[_0x2988cf[_0x10cc18(0x2b8)]=0x3]=_0x10cc18(0x2b8),_0x2988cf[_0x2988cf[_0x10cc18(0x1ba)]=0x4]=_0x10cc18(0x1ba),_0x2988cf[_0x2988cf[_0x10cc18(0x174)]=0x5]='UNAUTHENTICATED',_0x2988cf[_0x2988cf[_0x10cc18(0x220)]=0x6]=_0x10cc18(0x220),_0x2988cf[_0x2988cf[_0x10cc18(0x2f2)]=0x7]=_0x10cc18(0x2f2),_0x2988cf[_0x2988cf['TOO_MANY_REQUESTS']=0x8]=_0x10cc18(0x2f3),_0x2988cf[_0x2988cf[_0x10cc18(0x196)]=0x9]=_0x10cc18(0x196),_0x2988cf[_0x2988cf['LOGIN_FAILED']=0xa]=_0x10cc18(0x267),_0x2988cf[_0x2988cf[_0x10cc18(0x1f6)]=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x2988cf[_0x2988cf[_0x10cc18(0x17c)]=0xc]=_0x10cc18(0x17c),_0x2988cf[_0x2988cf[_0x10cc18(0x1d5)]=0xd]=_0x10cc18(0x1d5),_0x2988cf[_0x2988cf[_0x10cc18(0x283)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x2988cf[_0x2988cf[_0x10cc18(0x1bf)]=0xf]=_0x10cc18(0x1bf),_0x2988cf[_0x2988cf[_0x10cc18(0x1b3)]=0x10]=_0x10cc18(0x1b3),_0x2988cf[_0x2988cf['CURRENT_STATUS_CANNOT_OPERATE']=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x2988cf[_0x2988cf['ERROR_AGAIN']=0x65]=_0x10cc18(0x1dd),_0x2988cf[_0x2988cf[_0x10cc18(0x29a)]=0xc9]=_0x10cc18(0x29a),_0x2988cf[_0x2988cf[_0x10cc18(0x198)]=0xca]='USER_IS_ANONYMOUS',_0x2988cf[_0x2988cf[_0x10cc18(0xf3)]=0x1389]=_0x10cc18(0xf3),_0x2988cf[_0x2988cf[_0x10cc18(0x1a8)]=0x1771]=_0x10cc18(0x1a8),_0x2988cf[_0x2988cf[_0x10cc18(0x2ad)]=0x1772]=_0x10cc18(0x2ad),_0x2988cf[_0x2988cf['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x10cc18(0x2b7),_0x2988cf[_0x2988cf[_0x10cc18(0x31e)]=0x1b59]=_0x10cc18(0x31e),_0x2988cf[_0x2988cf['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x10cc18(0x158),_0x2988cf[_0x2988cf[_0x10cc18(0x321)]=0x1b5b]=_0x10cc18(0x321),_0x2988cf[_0x2988cf[_0x10cc18(0x11e)]=0x1b5c]=_0x10cc18(0x11e),_0x2988cf[_0x2988cf['APPLY_DUPLICATED']=0x1b5d]='APPLY_DUPLICATED',_0x2988cf[_0x2988cf[_0x10cc18(0x100)]=0x1f41]=_0x10cc18(0x100),_0x2988cf[_0x2988cf['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x10cc18(0x221),_0x2988cf[_0x2988cf[_0x10cc18(0x226)]=0x232a]=_0x10cc18(0x226),_0x2988cf[_0x2988cf[_0x10cc18(0x2e5)]=0x232b]=_0x10cc18(0x2e5),_0x2988cf[_0x2988cf['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x10cc18(0x1a0),_0x2988cf[_0x2988cf[_0x10cc18(0x2b4)]=0x232d]=_0x10cc18(0x2b4),_0x2988cf[_0x2988cf['YUUMI_UNABLE_LOAD_URL']=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x2988cf[_0x2988cf[_0x10cc18(0x2eb)]=0x2712]=_0x10cc18(0x2eb),_0x2988cf[_0x2988cf['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x10cc18(0x2b9),_0x2988cf[_0x2988cf[_0x10cc18(0x32a)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x2988cf[_0x2988cf[_0x10cc18(0x2e7)]=0x271a]=_0x10cc18(0x2e7),_0x2988cf[_0x2988cf[_0x10cc18(0x212)]=0x271b]=_0x10cc18(0x212),_0x2988cf[_0x2988cf[_0x10cc18(0x152)]=0x271c]=_0x10cc18(0x152),_0x2988cf[_0x2988cf[_0x10cc18(0x19a)]=0x271d]=_0x10cc18(0x19a),_0x2988cf[_0x2988cf[_0x10cc18(0x209)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x2988cf[_0x2988cf[_0x10cc18(0x2cc)]=0x271f]=_0x10cc18(0x2cc),_0x2988cf[_0x2988cf['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]=_0x10cc18(0x172),_0x2988cf[_0x2988cf[_0x10cc18(0x27c)]=0x2af9]=_0x10cc18(0x27c),_0x2988cf[_0x2988cf['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x10cc18(0x1bb),_0x2988cf[_0x2988cf[_0x10cc18(0x132)]=0x2ee2]='INVALID_INVITE_CODE',_0x2988cf[_0x2988cf['INVITE_CODE_REQUIRED']=0x2ee3]='INVITE_CODE_REQUIRED',_0x2988cf[_0x2988cf[_0x10cc18(0x160)]=0x2ee4]=_0x10cc18(0x160),_0x2988cf[_0x2988cf[_0x10cc18(0x136)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x2988cf[_0x2988cf['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x10cc18(0x2b1),_0x2988cf[_0x2988cf['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x10cc18(0x1be),_0x2988cf[_0x2988cf[_0x10cc18(0x1cf)]=0x32cb]=_0x10cc18(0x1cf),_0x2988cf[_0x2988cf[_0x10cc18(0x1f2)]=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0x2988cf[_0x2988cf[_0x10cc18(0x16c)]=0x36b2]='ENTITLE_UPDOWN_GRADE_NOT_SUPPORT',_0x2988cf[_0x2988cf[_0x10cc18(0x179)]=0x36b3]=_0x10cc18(0x179),_0x2988cf[_0x2988cf[_0x10cc18(0x2d8)]=0x36b4]=_0x10cc18(0x2d8),_0x2988cf[_0x2988cf[_0x10cc18(0x275)]=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0x2988cf[_0x2988cf[_0x10cc18(0x101)]=0x3716]=_0x10cc18(0x101),_0x2988cf[_0x2988cf['ENTITLE_INSUFFICIENT_QUOTA']=0x3717]='ENTITLE_INSUFFICIENT_QUOTA',_0x2988cf[_0x2988cf['ENTITLE_NEED_BILLING_ADDRESS']=0x37dd]=_0x10cc18(0x2a8),_0x2988cf[_0x2988cf[_0x10cc18(0x24c)]=0x3a99]=_0x10cc18(0x24c),_0x2988cf[_0x2988cf['REDEMPTION_CODE_INACTIVE']=0x3a9a]=_0x10cc18(0xfd),_0x2988cf[_0x2988cf['REDEMPTION_CODE_FULLY_REDEEMED']=0x3a9b]=_0x10cc18(0x146),_0x2988cf[_0x2988cf[_0x10cc18(0x323)]=0x3a9c]=_0x10cc18(0x323),_0x2988cf[_0x2988cf[_0x10cc18(0x23e)]=0x3a9d]=_0x10cc18(0x23e),_0x2988cf[_0x2988cf['REDEMPTION_USER_REDEEM_TIMES_EXCEED']=0x3a9e]=_0x10cc18(0x27b),_0x2988cf[_0x2988cf[_0x10cc18(0x243)]=0x3a9f]='REDEMPTION_CODE_HAS_BEEN_CREATED',_0x2988cf[_0x2988cf[_0x10cc18(0x1cb)]=0x3e81]=_0x10cc18(0x1cb),_0x2988cf[_0x2988cf[_0x10cc18(0x14b)]=-0x1]=_0x10cc18(0x14b),_0x2988cf))(Z||{});function En(_0x588148){const _0x339717=_0x10cc18;var _0xa58ff5,_0x492ba2;const _0x7da222=(_0xa58ff5=_0x588148[_0x339717(0xf4)])==null?void 0x0:_0xa58ff5['stage'],_0x8765a0=((_0x492ba2=_0x588148[_0x339717(0xf4)])==null?void 0x0:_0x492ba2[_0x339717(0x186)])||0x0;return _0x7da222===_0x915ac4[_0x339717(0x1b6)]&&_0x8765a0>0x0;}function pn(_0x59f19e){const _0x239b97=_0x10cc18;return _0x59f19e['functionsExecutedState']===_0x4723a6[_0x239b97(0x1e6)];}var On=Object['getOwnPropertyDescriptor'],Tn=(_0x4c2b13,_0x59b739,_0x4ca5b0,_0x50983a)=>{const _0x4be405=_0x10cc18;for(var _0x4d320c=_0x50983a>0x1?void 0x0:_0x50983a?On(_0x59b739,_0x4ca5b0):_0x59b739,_0x35f12a=_0x4c2b13[_0x4be405(0xf9)]-0x1,_0x492216;_0x35f12a>=0x0;_0x35f12a--)(_0x492216=_0x4c2b13[_0x35f12a])&&(_0x4d320c=_0x492216(_0x4d320c)||_0x4d320c);return _0x4d320c;},P=(_0x5b3396,_0x36bccc)=>(_0x3cc557,_0x5ab87c)=>_0x36bccc(_0x3cc557,_0x5ab87c,_0x5b3396);const Cn=_0x10cc18(0x2b2),Rn=_0x10cc18(0x2ae),Dn='/universer-api/license/formula/limit/done';let me=class extends _0x3e748e{constructor(_0x4dec20,_0x2d442e,_0x5d9dee,_0x879938,_0x15f059,_0x2be7f6,_0xc84276){const _0x34b80b=_0x10cc18;super(),_(this,'_pollingInterval',null),_(this,_0x34b80b(0x308),0x0),_(this,'_currentUsage',0x0),_(this,_0x34b80b(0x290),[]),_(this,_0x34b80b(0x1db),0x0),(this[_0x34b80b(0x279)]=_0x4dec20,this[_0x34b80b(0x29c)]=_0x2d442e,this['_configService']=_0x5d9dee,this['_httpService']=_0x879938,this[_0x34b80b(0x301)]=_0x15f059,this[_0x34b80b(0x190)]=_0x2be7f6,this[_0x34b80b(0x303)]=_0xc84276,this[_0x34b80b(0x2c2)]());}['_initCommandInterceptor'](){const _0x3f36cf=_0x10cc18;this[_0x3f36cf(0x1bc)](this['_commandService'][_0x3f36cf(0x256)]((_0x55a370,_0x5bf829)=>{const _0x44fd3f=_0x3f36cf;var _0x302426;if(_0x55a370['id']!==_0x19bce6['id'])return;const _0x504c6b=_0x55a370[_0x44fd3f(0x151)];if(!this[_0x44fd3f(0x2a0)]((_0x302426=_0x504c6b['dirtyRanges'])!=null?_0x302426:[]))return;if(!this['_checkCalculationAvailable']())throw this[_0x44fd3f(0x1d6)](_0x55a370,_0x5bf829),this[_0x44fd3f(0x11c)](),new _0x20efe7();})),this['disposeWithMe'](this[_0x3f36cf(0x29c)][_0x3f36cf(0x164)]((_0x380da4,_0x26e2a8)=>{const _0x5725e6=_0x3f36cf;if(_0x380da4['id']!==_0x391c35['id'])return;const _0x46873d=_0x380da4[_0x5725e6(0x151)];if(En(_0x46873d)){const _0x17041a=_0x5236ab();this[_0x5725e6(0x290)][_0x5725e6(0x1ed)](_0x17041a),this[_0x5725e6(0x31c)](_0x17041a);}else{if(pn(_0x46873d)&&this[_0x5725e6(0x290)][_0x5725e6(0xf9)]>0x0){const _0x2489cb=this[_0x5725e6(0x290)][_0x5725e6(0x1fe)]();this[_0x5725e6(0x10c)](_0x2489cb);}}}));}[_0x10cc18(0x233)](){const _0x3d5236=_0x10cc18;super[_0x3d5236(0x233)](),this[_0x3d5236(0x25c)](),this[_0x3d5236(0x290)]=[],this[_0x3d5236(0x2c1)]=0x0,this[_0x3d5236(0x308)]=0x0,this[_0x3d5236(0x1db)]=0x0;}async[_0x10cc18(0x1d6)](_0x4fac1e,_0x15977b){const _0x132adc=_0x10cc18;for(let _0x435a35=0x0;_0x435a35<0x1e;_0x435a35++)try{if(await this[_0x132adc(0x24d)](),this['_checkCalculationAvailable']()){this[_0x132adc(0x2cd)](_0x4fac1e,_0x15977b),this['_messageService'][_0x132adc(0xe7)]({'content':this[_0x132adc(0x303)]['t'](_0x132adc(0x1d0)),'type':_0x22c147[_0x132adc(0x12f)]});return;}await new Promise(_0x13c1b8=>{const _0x216f7a=_0x132adc;this[_0x216f7a(0x112)]=window[_0x216f7a(0x26f)](_0x13c1b8,0x3e8);});}catch(_0x5d560b){this[_0x132adc(0x190)][_0x132adc(0x1ac)](_0x5d560b);}this[_0x132adc(0x279)][_0x132adc(0xe7)]({'content':this[_0x132adc(0x303)]['t'](_0x132adc(0x2c9)),'type':_0x22c147[_0x132adc(0x153)]});}[_0x10cc18(0x2cd)](_0x1ebad2,_0x2feae3){const _0x48e03b=_0x10cc18;try{this[_0x48e03b(0x29c)][_0x48e03b(0xfe)](_0x1ebad2['id'],_0x1ebad2['params'],_0x2feae3);}catch(_0x408758){this[_0x48e03b(0x190)][_0x48e03b(0x1ac)](_0x408758);}}[_0x10cc18(0x1ab)](_0x239057,_0x2a137d){const _0x19bdab=_0x10cc18;_0x2a137d<this['_lastResponseTimestamp']||(this[_0x19bdab(0x1db)]=_0x2a137d,this[_0x19bdab(0x308)]=Number[_0x19bdab(0x14a)](_0x239057[_0x19bdab(0x114)]),this['_currentUsage']=Number[_0x19bdab(0x14a)](_0x239057[_0x19bdab(0x1dc)]));}async[_0x10cc18(0x31c)](_0x40757c){const _0x177391=_0x10cc18;var _0x43ae04,_0x1eacac;const _0x48cdda=Date['now']();try{const _0x75aa=((_0x43ae04=this[_0x177391(0x1ca)][_0x177391(0x253)](_0x209e63))==null?void 0x0:_0x43ae04['startFormulaLimitUrl'])||Rn,_0xf07c7c=(await this['_httpService'][_0x177391(0x1e3)](_0x75aa,{'body':JSON[_0x177391(0x16f)]({'taskId':_0x40757c})}))[_0x177391(0x218)];if(((_0x1eacac=_0xf07c7c['error'])==null?void 0x0:_0x1eacac[_0x177391(0x23f)])!==Z['OK'])return;this[_0x177391(0x1ab)](_0xf07c7c['limitInfo'],_0x48cdda);}catch(_0x10e490){this[_0x177391(0x190)][_0x177391(0x1ac)](_0x10e490);}}async[_0x10cc18(0x24d)](_0x5b693e){const _0x3d6cf1=_0x10cc18;var _0x4bb7fc,_0xf0ca8c;const _0x31774c=Date[_0x3d6cf1(0x248)]();try{const _0x5c9066=((_0x4bb7fc=this[_0x3d6cf1(0x1ca)][_0x3d6cf1(0x253)](_0x209e63))==null?void 0x0:_0x4bb7fc['getformulaLimitStatusUrl'])||Cn,_0x426c71=_0x5b693e?_0x5c9066+_0x3d6cf1(0x2dd)+encodeURIComponent(_0x5b693e):_0x5c9066,_0xa02a4e=(await this['_httpService'][_0x3d6cf1(0x127)](_0x426c71))[_0x3d6cf1(0x218)];if(((_0xf0ca8c=_0xa02a4e[_0x3d6cf1(0x1ac)])==null?void 0x0:_0xf0ca8c[_0x3d6cf1(0x23f)])!==Z['OK'])return;this[_0x3d6cf1(0x1ab)](_0xa02a4e[_0x3d6cf1(0x215)],_0x31774c);}catch(_0x526784){this[_0x3d6cf1(0x190)]['error'](_0x526784);}}async[_0x10cc18(0x10c)](_0x54fa31){const _0x4999f7=_0x10cc18;var _0x39846e,_0x1acce6;const _0x524c8f=Date[_0x4999f7(0x248)]();try{const _0x54ec01=((_0x39846e=this[_0x4999f7(0x1ca)][_0x4999f7(0x253)](_0x209e63))==null?void 0x0:_0x39846e['releaseFormulaLimitUrl'])||Dn,_0x58f0e4=(await this[_0x4999f7(0x276)][_0x4999f7(0x1e3)](_0x54ec01,{'body':JSON[_0x4999f7(0x16f)]({'taskId':_0x54fa31})}))[_0x4999f7(0x218)];if(((_0x1acce6=_0x58f0e4[_0x4999f7(0x1ac)])==null?void 0x0:_0x1acce6[_0x4999f7(0x23f)])!==Z['OK'])return;this[_0x4999f7(0x1ab)](_0x58f0e4[_0x4999f7(0x215)],_0x524c8f);}catch(_0x26ac90){this[_0x4999f7(0x190)][_0x4999f7(0x1ac)](_0x26ac90);}}[_0x10cc18(0x17e)](){const _0x486023=_0x10cc18;return this[_0x486023(0x308)]===0x0?!0x0:this[_0x486023(0x308)]-this[_0x486023(0x2c1)]>0x0;}['_clearPolling'](){const _0x5f5061=_0x10cc18;this[_0x5f5061(0x112)]&&(clearTimeout(this[_0x5f5061(0x112)]),this[_0x5f5061(0x112)]=null);}[_0x10cc18(0x11c)](){const _0x3fc532=_0x10cc18;this['_messageService']['show']({'content':this['_localeService']['t'](_0x3fc532(0x28a)),'type':_0x22c147['Loading']});}['_hasFormulaInDirtyRanges'](_0x4d703e){const _0x5400d9=_0x10cc18;for(const _0xa31837 of _0x4d703e){const {unitId:_0x58189d,sheetId:_0x42ae4a,range:_0x3f34ae}=_0xa31837,_0x22ad5e=this['_univerInstanceService'][_0x5400d9(0x30b)](_0x58189d);if(!_0x22ad5e)continue;const _0x3ecccb=_0x22ad5e[_0x5400d9(0x21d)](_0x42ae4a);if(!_0x3ecccb)continue;const _0xa9be59=_0x3ecccb['getCellMatrix']();for(let _0x131aca=_0x3f34ae['startRow'];_0x131aca<=_0x3f34ae[_0x5400d9(0x296)];_0x131aca++)for(let _0x3be568=_0x3f34ae[_0x5400d9(0x280)];_0x3be568<=_0x3f34ae[_0x5400d9(0x15f)];_0x3be568++){const _0x970438=_0xa9be59[_0x5400d9(0x27f)](_0x131aca,_0x3be568);if(_0x970438&&(_0x5b53ca(_0x970438['f'])||_0x3e9eba(_0x970438['si'])))return!0x0;}}return!0x1;}};me=Tn([P(0x0,_0x2c9f2f(_0x41d342)),P(0x1,_0x526fee),P(0x2,_0x56b98d),P(0x3,_0x2c9f2f(_0x47ffcb)),P(0x4,_0x631d26),P(0x5,_0x1368e3),P(0x6,_0x2c9f2f(_0xefd7ba))],me);var bn=Object[_0x10cc18(0x1ea)],Nn=(_0x319729,_0x5f370c,_0x5c45fd,_0x2926dc)=>{const _0x4eaab6=_0x10cc18;for(var _0x15db89=_0x2926dc>0x1?void 0x0:_0x2926dc?bn(_0x5f370c,_0x5c45fd):_0x5f370c,_0x4ac0c5=_0x319729[_0x4eaab6(0xf9)]-0x1,_0x17ddaf;_0x4ac0c5>=0x0;_0x4ac0c5--)(_0x17ddaf=_0x319729[_0x4ac0c5])&&(_0x15db89=_0x17ddaf(_0x15db89)||_0x15db89);return _0x15db89;},Ue=(_0x73662f,_0x465a86)=>(_0x1d7436,_0x453bf6)=>_0x465a86(_0x1d7436,_0x453bf6,_0x73662f);let He=class extends _0x3e748e{constructor(_0x3aab84,_0x5cc44c,_0x4579e9){const _0x77a84d=_0x10cc18;super(),_(this,_0x77a84d(0x2f9),new Map()),_(this,_0x77a84d(0x113),new Map()),_(this,_0x77a84d(0x118),!0x1),(this[_0x77a84d(0x1ca)]=_0x3aab84,this[_0x77a84d(0x2ee)]=_0x5cc44c,this['_revisionService']=_0x4579e9);}[_0x10cc18(0x306)](){this['_disabled']=!0x0;}['enableLocalCache'](){const _0x2ef407=_0x10cc18;this[_0x2ef407(0x118)]=!0x1;}get['saveTaskMap'](){return this['_saveTaskMap'];}['dispose'](){const _0x2aa743=_0x10cc18;this[_0x2aa743(0x227)]()[_0x2aa743(0x1af)](()=>super[_0x2aa743(0x233)]());}async[_0x10cc18(0x286)](_0x12a3db){const _0x59febf=_0x10cc18;return this[_0x59febf(0x118)]?null:this[_0x59febf(0x2ee)][_0x59febf(0x183)](_0x59f688(_0x12a3db));}async['saveOfflineData'](_0x10c72f,_0x26ed98){const _0x448d62=_0x10cc18;return!!this[_0x448d62(0x2ee)][_0x448d62(0x1a5)](_0x10c72f,_0x26ed98);}['updateOfflineData'](_0x5f7ebf,_0x38a9d8,_0x26dea1,_0x9fcaa0){const _0x3186d6=_0x10cc18,_0x2c4d2f=this[_0x3186d6(0x271)][_0x3186d6(0x125)](_0x5f7ebf);this[_0x3186d6(0x2f9)][_0x3186d6(0x239)](_0x5f7ebf,{'unitID':_0x5f7ebf,'type':_0x38a9d8,'awaitingChangeset':_0x26dea1,'mutations':_0x9fcaa0,'rev':_0x2c4d2f}),this['_saveTaskMap'][_0x3186d6(0x2bd)](_0x5f7ebf)||this['_scheduleSaving'](_0x5f7ebf);}[_0x10cc18(0x192)](_0x4d405a){const _0x1739ea=_0x10cc18,_0xaa4964=this['_getSaveTimeout']();_0xaa4964===0x0?this[_0x1739ea(0x2f0)](_0x4d405a):this[_0x1739ea(0x113)]['set'](_0x4d405a,setTimeout(()=>this[_0x1739ea(0x2f0)](_0x4d405a),_0xaa4964));}[_0x10cc18(0x135)](){const _0x40f0a2=_0x10cc18;var _0x3ea499;return(_0x3ea499=this[_0x40f0a2(0x1ca)][_0x40f0a2(0x253)](_0x24dd1f))!=null?_0x3ea499:_0x4a9fea;}[_0x10cc18(0x2f0)](_0x5829f3){const _0x5476f8=_0x10cc18,_0x551406=this[_0x5476f8(0x113)]['get'](_0x5829f3);return _0x551406!==void 0x0&&window['clearTimeout'](_0x551406),this[_0x5476f8(0x2ee)]['setItem'](_0x59f688(_0x5829f3),this[_0x5476f8(0x2f9)][_0x5476f8(0x127)](_0x5829f3))[_0x5476f8(0x1af)](()=>this[_0x5476f8(0x113)]['delete'](_0x5829f3));}async[_0x10cc18(0x227)](){const _0x54606a=_0x10cc18,_0x2c46d0=[];this[_0x54606a(0x113)][_0x54606a(0x12c)]((_0x5a8c95,_0x4d6886)=>{const _0x2f714e=_0x54606a;window[_0x2f714e(0x210)](_0x5a8c95),_0x2c46d0[_0x2f714e(0x1ed)](this[_0x2f714e(0x2f0)](_0x4d6886)['then'](()=>{const _0x419443=_0x2f714e;this['_saveTaskMap'][_0x419443(0x264)](_0x4d6886);}));}),await Promise['all'](_0x2c46d0);}};He=Nn([Ue(0x0,_0x56b98d),Ue(0x1,_0x2ba981),Ue(0x2,_0x2c9f2f(_0x6cec3d))],He);class Ln extends _0x460db8{constructor(){const _0x968c34=_0x10cc18;super(),_(this,_0x968c34(0x156)),this['urlChange$']=_0x5171f8(window,_0x968c34(0x178))[_0x968c34(0x297)](_0x55bd62(this[_0x968c34(0x20f)]),_0x1b1b8c(0x1),_0x5a5b3d(void 0x0));}['setParam'](_0xbb5dc2,_0x57483e,_0x7da0e4=!0x1){const _0x38b1d0=_0x10cc18,_0x2f8841=new URL(window[_0x38b1d0(0x22d)]['href']);_0x2f8841['searchParams'][_0x38b1d0(0x239)](_0xbb5dc2,_0x57483e),_0x7da0e4?window['history']['replaceState']('','',_0x2f8841['toString']()):window[_0x38b1d0(0x1fa)]['pushState']('','',_0x2f8841[_0x38b1d0(0x1cc)]());}['removeParam'](_0x2c0bb9,_0x1c06cc=!0x1){const _0x3e1cdc=_0x10cc18,_0x110853=new URL(window[_0x3e1cdc(0x22d)][_0x3e1cdc(0x1fb)]);_0x110853['searchParams'][_0x3e1cdc(0x264)](_0x2c0bb9),_0x1c06cc?window[_0x3e1cdc(0x1fa)][_0x3e1cdc(0x15e)]('','',_0x110853[_0x3e1cdc(0x1cc)]()):window[_0x3e1cdc(0x1fa)]['pushState']('','',_0x110853[_0x3e1cdc(0x1cc)]());}[_0x10cc18(0x19e)](_0x21d338){const _0x424f34=_0x10cc18;var _0x2b79eb;return(_0x2b79eb=new URL(window['location'][_0x424f34(0x1fb)])[_0x424f34(0x268)][_0x424f34(0x127)](_0x21d338))!=null?_0x2b79eb:void 0x0;}}var Un=Object[_0x10cc18(0x1e4)],Mn=Object['getOwnPropertyDescriptor'],An=(_0x91efb5,_0x36a199,_0x58275f)=>_0x36a199 in _0x91efb5?Un(_0x91efb5,_0x36a199,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x58275f}):_0x91efb5[_0x36a199]=_0x58275f,Pn=(_0x4cb136,_0x255336,_0x271932,_0x37d324)=>{const _0x2f0fe3=_0x10cc18;for(var _0x318a6a=_0x37d324>0x1?void 0x0:_0x37d324?Mn(_0x255336,_0x271932):_0x255336,_0x2be757=_0x4cb136[_0x2f0fe3(0xf9)]-0x1,_0x1d9d1d;_0x2be757>=0x0;_0x2be757--)(_0x1d9d1d=_0x4cb136[_0x2be757])&&(_0x318a6a=_0x1d9d1d(_0x318a6a)||_0x318a6a);return _0x318a6a;},Me=(_0x1bb5fe,_0x2b4022)=>(_0x37b692,_0x5db2ac)=>_0x2b4022(_0x37b692,_0x5db2ac,_0x1bb5fe),wn=(_0x1a0a10,_0x832b9d,_0x4495ca)=>An(_0x1a0a10,_0x832b9d+'',_0x4495ca);const yn=_0x10cc18(0x23c);let Ye=class extends _0x5ba41c{constructor(_0x4ff199=_t,_0x101755,_0x52d32c,_0x15e84e){const _0x9994fb=_0x10cc18;super(),this[_0x9994fb(0x32d)]=_0x4ff199,this[_0x9994fb(0x1f0)]=_0x101755,this[_0x9994fb(0xf0)]=_0x52d32c,this[_0x9994fb(0x1ca)]=_0x15e84e;const {..._0x3fd4c3}=_0x5c3498({},_t,this[_0x9994fb(0x32d)]);this[_0x9994fb(0x1ca)][_0x9994fb(0x304)](hn,_0x3fd4c3);}[_0x10cc18(0x170)](){this['_registerDependencies'](),this['_initDependencies']();}[_0x10cc18(0x20d)](){const _0x5eacef=_0x10cc18;this[_0x5eacef(0x223)]();}['_registerDependencies'](){const _0x5c6086=_0x10cc18;var _0x1300f6;const _0x43486e=[[Ke],[me],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x2befe2,{'useClass':_0x21a377}],[_0x3a4f5a,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0x5c6086(0x32d)][_0x5c6086(0xec)]&&_0x43486e[_0x5c6086(0x1ed)]([le]),_0x4b4f71(this[_0x5c6086(0xf0)],_0x436173(_0x43486e,(_0x1300f6=this[_0x5c6086(0x32d)])==null?void 0x0:_0x1300f6[_0x5c6086(0x15d)]));}[_0x10cc18(0x223)](){const _0x143203=_0x10cc18;this[_0x143203(0x1bc)](this[_0x143203(0x1f0)]['registerRenderModule'](_0x5045e8[_0x143203(0x238)],[Fe])),this[_0x143203(0x1bc)](this['_renderManagerService'][_0x143203(0x282)](_0x5045e8[_0x143203(0x1f7)],[ke]));}[_0x10cc18(0x2d5)](){const _0x20bf6c=_0x10cc18;_0x569f6e(this['_injector'],[[H],[ae],[Se],[_e],[ce],[me]]),this[_0x20bf6c(0x32d)][_0x20bf6c(0xec)]&&_0x569f6e(this[_0x20bf6c(0xf0)],[[le]]);}};wn(Ye,_0x10cc18(0x27d),yn),Ye=Pn([_0x5aa65c(_0x4c184a),Me(0x1,_0x20cff4),Me(0x2,_0x2c9f2f(_0x3955fb)),Me(0x3,_0x56b98d)],Ye);var $n=Object[_0x10cc18(0x1ea)],xn=(_0x2cda49,_0x2a7bb9,_0x264cab,_0x353d96)=>{for(var _0x199d1b=_0x353d96>0x1?void 0x0:_0x353d96?$n(_0x2a7bb9,_0x264cab):_0x2a7bb9,_0x2a9cc7=_0x2cda49['length']-0x1,_0x547287;_0x2a9cc7>=0x0;_0x2a9cc7--)(_0x547287=_0x2cda49[_0x2a9cc7])&&(_0x199d1b=_0x547287(_0x199d1b)||_0x199d1b);return _0x199d1b;},J=(_0x37f494,_0x345cb0)=>(_0x2302d9,_0x1a8027)=>_0x345cb0(_0x2302d9,_0x1a8027,_0x37f494);let ut=class extends _0x4e6c96{constructor(_0x51a5ff,_0x357894,_0x58dd81,_0xc7c605,_0x16f00e){super(_0x51a5ff,_0x357894,_0x58dd81,_0xc7c605,_0x16f00e);}async['createSocket'](_0x114931){const _0xff6cf4=_0x10cc18,_0x53ad48=await this[_0xff6cf4(0x1a7)](),_0x50eb7d=this[_0xff6cf4(0x111)](_0x114931,_0x53ad48);return this['_doCreateSocket'](_0x50eb7d);}[_0x10cc18(0x111)](_0x38f540,_0x398c04){const _0x62bedd=_0x10cc18,_0x1857a4=typeof window>'u'?new URL(_0x38f540):new URL(_0x38f540,window[_0x62bedd(0x22d)][_0x62bedd(0x169)]);_0x1857a4['searchParams'][_0x62bedd(0x239)](_0x62bedd(0x2a4),_0x398c04);const _0x187d87=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x62bedd(0x22d)]['search']);return _0x187d87[_0x62bedd(0x127)]('runId')&&_0x1857a4[_0x62bedd(0x268)][_0x62bedd(0x239)](_0x62bedd(0x313),_0x187d87[_0x62bedd(0x127)](_0x62bedd(0x313))),_0x1857a4[_0x62bedd(0x1cc)]();}async[_0x10cc18(0x1a7)](){const _0x2eddaa=_0x10cc18;var _0xaacdb,_0x9d68d9,_0x3d4511;const _0x199628=this[_0x2eddaa(0x1ca)]['getConfig'](_0x209e63),_0x2b7053=(_0xaacdb=_0x199628==null?void 0x0:_0x199628['wsSessionTicketUrl'])!=null?_0xaacdb:_0x45c098;return(_0x3d4511=(_0x9d68d9=(await this[_0x2eddaa(0x276)]['get'](_0x2b7053,{'headers':{'Content-Type':_0x2eddaa(0x162)}}))[_0x2eddaa(0x218)])==null?void 0x0:_0x9d68d9[_0x2eddaa(0x24a)])!=null?_0x3d4511:'';}};ut=xn([J(0x0,_0x2c9f2f(_0x3955fb)),J(0x1,_0x2c9f2f(_0x47ffcb)),J(0x2,_0x56b98d),J(0x3,_0x1368e3),J(0x4,_0x4a0d66)],ut);var Bn=Object['getOwnPropertyDescriptor'],Fn=(_0x3af744,_0x2d80a9,_0x2f82ce,_0x56e808)=>{for(var _0x3b51bf=_0x56e808>0x1?void 0x0:_0x56e808?Bn(_0x2d80a9,_0x2f82ce):_0x2d80a9,_0x56b40c=_0x3af744['length']-0x1,_0x20fa39;_0x56b40c>=0x0;_0x56b40c--)(_0x20fa39=_0x3af744[_0x56b40c])&&(_0x3b51bf=_0x20fa39(_0x3b51bf)||_0x3b51bf);return _0x3b51bf;},Ae=(_0x4ef56f,_0x33b4c1)=>(_0x1ce0eb,_0x29052b)=>_0x33b4c1(_0x1ce0eb,_0x29052b,_0x4ef56f);let dt=class extends _0x3e748e{constructor(_0x1f5809,_0x26244d,_0xef789e){const _0x3ee5ff=_0x10cc18;super(),this[_0x3ee5ff(0x19c)]=_0x1f5809,this[_0x3ee5ff(0x276)]=_0x26244d,this[_0x3ee5ff(0x1ca)]=_0xef789e;}async[_0x10cc18(0x273)](_0x5a2c86,_0x2b267c,_0x46e808,..._0x18d2ce){const _0x313f05=_0x10cc18;var _0x468ed3,_0x579cd8,_0x2d6080,_0x2f834a;const _0x2db994=this[_0x313f05(0x19c)][_0x313f05(0x167)]();if(!_0x2db994)throw new Error(_0x313f05(0x245));const _0x81eb29=((_0x468ed3=this['_configService'][_0x313f05(0x253)](_0x2d33ca))!=null?_0x468ed3:_0x550c3a)+'/'+_0x5a2c86+_0x313f05(0x2ac)+_0x2b267c,_0x543ad3=new URL(window[_0x313f05(0x22d)][_0x313f05(0x1fb)]),_0x8a8c19={'scriptId':_0x5a2c86,'runId':(_0x579cd8=_0x543ad3[_0x313f05(0x268)][_0x313f05(0x127)](_0x313f05(0x313)))!=null?_0x579cd8:'','function':_0x2b267c,'unitId':_0x2db994[_0x313f05(0x25a)](),'argsOfFunction':JSON[_0x313f05(0x16f)](_0x18d2ce),'invokeId':(_0x2d6080=_0x46e808[_0x313f05(0x165)])!=null?_0x2d6080:'','executionId':(_0x2f834a=_0x46e808[_0x313f05(0x28f)])!=null?_0x2f834a:''};try{const _0x21fdb2=await this['_httpService'][_0x313f05(0x1e3)](_0x81eb29,{'body':_0x8a8c19});return _0x21fdb2[_0x313f05(0x218)][_0x313f05(0x1ac)]&&_0x21fdb2['body'][_0x313f05(0x1ac)][_0x313f05(0x23f)]!==Z['OK']?_0x313f05(0x180):_0x21fdb2['body'][_0x313f05(0x1f1)];}catch{return _0x313f05(0x180);}}};dt=Fn([Ae(0x0,_0x631d26),Ae(0x1,_0x2c9f2f(_0x47ffcb)),Ae(0x2,_0x56b98d)],dt);const St=0x7530,mt='ACTIVE_UNIT_EVENT_CHANNEL';class rr extends _0x3e748e{constructor(){const _0x22a3f0=_0x10cc18;super(),_(this,_0x22a3f0(0x193),_0x5236ab()),_(this,_0x22a3f0(0x182),new Set()),_(this,_0x22a3f0(0x1f9),new Map()),_(this,_0x22a3f0(0x20a),null),_(this,_0x22a3f0(0x140),new Map()),_(this,_0x22a3f0(0x1c8),new Map()),this[_0x22a3f0(0x25e)]();}[_0x10cc18(0x233)](){const _0x379395=_0x10cc18;super[_0x379395(0x233)](),this['_clearOtherTimers'][_0x379395(0x12c)]((_0x24c887,_0x5d6e06)=>this[_0x379395(0x116)](_0x5d6e06)),this['_heartbeatTimer']&&window[_0x379395(0x1ad)](this[_0x379395(0x20a)]);}[_0x10cc18(0x295)](_0x234293){const _0x57ea34=_0x10cc18;return this['_ensureSubject'](_0x234293)[_0x57ea34(0x297)](_0x34b2d2());}[_0x10cc18(0xe6)](_0x36c3e2){const _0x543cf3=_0x10cc18;this[_0x543cf3(0x182)][_0x543cf3(0x20b)]===0x0&&this[_0x543cf3(0xef)](),this[_0x543cf3(0x182)][_0x543cf3(0xff)](_0x36c3e2),this[_0x543cf3(0x31b)]({'type':0x0,'memberID':this[_0x543cf3(0x193)],'unitIDs':[_0x36c3e2],'isForwarded':!0x1});}[_0x10cc18(0x2be)](_0x4dd8e7){const _0x143b7b=_0x10cc18;this[_0x143b7b(0x182)][_0x143b7b(0x264)](_0x4dd8e7),this['_selfUnitIDs'][_0x143b7b(0x20b)]===0x0&&this[_0x143b7b(0x20a)]&&window[_0x143b7b(0x1ad)](this[_0x143b7b(0x20a)]);}['_init'](){const _0x11f171=_0x10cc18;this[_0x11f171(0x1bc)](_0x555679(_0x5171f8(window,_0x11f171(0x161))[_0x11f171(0x288)](_0x25825a=>{const _0x3daa5a=_0x11f171;if(_0x25825a[_0x3daa5a(0x26c)]!==mt||!_0x25825a[_0x3daa5a(0x2d0)])return;const _0x531686=JSON[_0x3daa5a(0x2f1)](_0x25825a[_0x3daa5a(0x2d0)]);this[_0x3daa5a(0x2d2)](_0x531686);}))),window['addEventListener']('unload',()=>this[_0x11f171(0x31b)]({'type':0x1,'memberID':this[_0x11f171(0x193)],'unitIDs':Array[_0x11f171(0x2ef)](this[_0x11f171(0x182)])}));}[_0x10cc18(0x2d2)](_0x441807){const _0x2789bb=_0x10cc18;switch(_0x441807['type']){case 0x0:this['_handleJoinEvent'](_0x441807);break;case 0x1:this['_handleLeaveEvent'](_0x441807);break;case 0x2:this[_0x2789bb(0x18b)](_0x441807);break;}}[_0x10cc18(0x32f)](_0xa26ff4){const {unitIDs:_0x2f5912,memberID:_0x17e488,isForwarded:_0x5e820f}=_0xa26ff4;_0x2f5912['forEach'](_0x3a5e9e=>{const _0x52d019=_0x58c2;if(!_0x5e820f&&this[_0x52d019(0x1f9)][_0x52d019(0x2bd)](_0x3a5e9e)&&this['_ensureSubject'](_0x3a5e9e)[_0x52d019(0x1e1)](_0x4078f0[_0x52d019(0x26b)]),!this[_0x52d019(0x1f9)]['has'](_0x3a5e9e)||!this[_0x52d019(0x1f9)]['get'](_0x3a5e9e)[_0x52d019(0x2bd)](_0x17e488)){const _0xa7913d=this[_0x52d019(0x1f9)][_0x52d019(0x127)](_0x3a5e9e)||new Set();_0xa7913d['add'](_0x17e488),this[_0x52d019(0x1f9)][_0x52d019(0x239)](_0x3a5e9e,_0xa7913d),this[_0x52d019(0x21b)](_0x17e488);}}),_0x5e820f||this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x10cc18(0x21b)](_0x33cb75){const _0x15136a=_0x10cc18;this[_0x15136a(0x116)](_0x33cb75);const _0x4737d9=window[_0x15136a(0x26f)](()=>{this['_unitOnClients']['forEach'](_0x4864ff=>{const _0x5a0c73=_0x58c2;_0x4864ff[_0x5a0c73(0x264)](_0x33cb75);});},St*0x2);this[_0x15136a(0x140)]['set'](_0x33cb75,_0x4737d9);}[_0x10cc18(0x116)](_0x252d8d){const _0x2dacad=_0x10cc18;if(this[_0x2dacad(0x140)][_0x2dacad(0x2bd)](_0x252d8d)){const _0x406672=this[_0x2dacad(0x140)][_0x2dacad(0x127)](_0x252d8d);_0x406672&&window[_0x2dacad(0x210)](_0x406672),this[_0x2dacad(0x140)][_0x2dacad(0x239)](_0x252d8d,null);}}[_0x10cc18(0x2e4)](_0x40e046){const _0x154c8f=_0x10cc18,{memberID:_0x3e7fa7,unitIDs:_0x4ac60b}=_0x40e046;_0x4ac60b[_0x154c8f(0x12c)](_0x5984ee=>{const _0x4ac451=_0x154c8f;var _0x1c66e0;const _0x502ec6=this[_0x4ac451(0x1f9)][_0x4ac451(0x127)](_0x5984ee);_0x502ec6&&(_0x502ec6[_0x4ac451(0x264)](_0x3e7fa7),(_0x1c66e0=this[_0x4ac451(0x197)](_0x5984ee))==null||_0x1c66e0[_0x4ac451(0x1e1)](_0x502ec6[_0x4ac451(0x20b)]===0x0?_0x4078f0[_0x4ac451(0x143)]:_0x4078f0[_0x4ac451(0x26b)]));}),this['_removeClearOtherTimer'](_0x3e7fa7);}['_handleHeartbeatEvent'](_0x31b9ea){const _0x3d5b5d=_0x10cc18;this[_0x3d5b5d(0x21b)](_0x31b9ea[_0x3d5b5d(0x2e2)]);}[_0x10cc18(0x31b)](_0x5167f7){const _0x44c52d=_0x10cc18;localStorage['setItem'](mt,JSON[_0x44c52d(0x16f)](_0x5167f7));}[_0x10cc18(0xef)](){const _0xb654e6=_0x10cc18;this[_0xb654e6(0x20a)]=window[_0xb654e6(0x2ff)](()=>{const _0x52e312=_0xb654e6;this[_0x52e312(0x31b)]({'type':0x2,'memberID':this['_id']});},St);}[_0x10cc18(0x197)](_0x2c9fdb){const _0x4c26e8=_0x10cc18;return this[_0x4c26e8(0x1c8)][_0x4c26e8(0x2bd)](_0x2c9fdb)||this[_0x4c26e8(0x1c8)]['set'](_0x2c9fdb,new _0x1ced39(_0x4078f0[_0x4c26e8(0x143)])),this['_unitStatus'][_0x4c26e8(0x127)](_0x2c9fdb);}}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};