@univerjs-pro/collaboration-client-ui 0.15.2 → 0.15.3-insiders.20260131-b9b8805

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 (58) 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/sk-SK.js +1 -0
  12. package/lib/cjs/locale/vi-VN.js +1 -1
  13. package/lib/cjs/locale/zh-CN.js +1 -1
  14. package/lib/cjs/locale/zh-TW.js +1 -1
  15. package/lib/es/facade.js +1 -1
  16. package/lib/es/index.js +1 -1
  17. package/lib/es/locale/ca-ES.js +1 -1
  18. package/lib/es/locale/en-US.js +1 -1
  19. package/lib/es/locale/es-ES.js +1 -1
  20. package/lib/es/locale/fa-IR.js +1 -1
  21. package/lib/es/locale/fr-FR.js +1 -1
  22. package/lib/es/locale/ja-JP.js +1 -1
  23. package/lib/es/locale/ko-KR.js +1 -1
  24. package/lib/es/locale/ru-RU.js +1 -1
  25. package/lib/es/locale/sk-SK.js +1 -0
  26. package/lib/es/locale/vi-VN.js +1 -1
  27. package/lib/es/locale/zh-CN.js +1 -1
  28. package/lib/es/locale/zh-TW.js +1 -1
  29. package/lib/facade.js +1 -1
  30. package/lib/index.js +1 -1
  31. package/lib/locale/ca-ES.js +1 -1
  32. package/lib/locale/en-US.js +1 -1
  33. package/lib/locale/es-ES.js +1 -1
  34. package/lib/locale/fa-IR.js +1 -1
  35. package/lib/locale/fr-FR.js +1 -1
  36. package/lib/locale/ja-JP.js +1 -1
  37. package/lib/locale/ko-KR.js +1 -1
  38. package/lib/locale/ru-RU.js +1 -1
  39. package/lib/locale/sk-SK.js +1 -0
  40. package/lib/locale/vi-VN.js +1 -1
  41. package/lib/locale/zh-CN.js +1 -1
  42. package/lib/locale/zh-TW.js +1 -1
  43. package/lib/types/locale/sk-SK.d.ts +3 -0
  44. package/lib/umd/facade.js +1 -1
  45. package/lib/umd/index.js +1 -1
  46. package/lib/umd/locale/ca-ES.js +1 -1
  47. package/lib/umd/locale/en-US.js +1 -1
  48. package/lib/umd/locale/es-ES.js +1 -1
  49. package/lib/umd/locale/fa-IR.js +1 -1
  50. package/lib/umd/locale/fr-FR.js +1 -1
  51. package/lib/umd/locale/ja-JP.js +1 -1
  52. package/lib/umd/locale/ko-KR.js +1 -1
  53. package/lib/umd/locale/ru-RU.js +1 -1
  54. package/lib/umd/locale/sk-SK.js +1 -0
  55. package/lib/umd/locale/vi-VN.js +1 -1
  56. package/lib/umd/locale/zh-CN.js +1 -1
  57. package/lib/umd/locale/zh-TW.js +1 -1
  58. package/package.json +17 -17
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x2d19ee=_0x3b77;(function(_0xf99d55,_0x9c8459){const _0x208190=_0x3b77,_0x14acff=_0xf99d55();while(!![]){try{const _0x24b4e3=-parseInt(_0x208190(0x1e6))/0x1*(-parseInt(_0x208190(0x208))/0x2)+parseInt(_0x208190(0x211))/0x3+parseInt(_0x208190(0x1f5))/0x4*(parseInt(_0x208190(0x13f))/0x5)+-parseInt(_0x208190(0x2b7))/0x6*(parseInt(_0x208190(0x255))/0x7)+parseInt(_0x208190(0x1f1))/0x8+parseInt(_0x208190(0x213))/0x9*(-parseInt(_0x208190(0x21a))/0xa)+parseInt(_0x208190(0x32c))/0xb*(-parseInt(_0x208190(0x316))/0xc);if(_0x24b4e3===_0x9c8459)break;else _0x14acff['push'](_0x14acff['shift']());}catch(_0x3ce0ae){_0x14acff['push'](_0x14acff['shift']());}}}(_0x4498,0xbd9fb));var Yt=Object[_0x2d19ee(0x18c)],Wt=(_0x1b3d81,_0x4aa84c,_0x2f974c)=>_0x4aa84c in _0x1b3d81?Yt(_0x1b3d81,_0x4aa84c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2f974c}):_0x1b3d81[_0x4aa84c]=_0x2f974c,_=(_0x523605,_0x55d198,_0x22d6ab)=>Wt(_0x523605,typeof _0x55d198!=_0x2d19ee(0x2e2)?_0x55d198+'':_0x55d198,_0x22d6ab);import{jsx as _0x13af06,jsxs as _0x350478}from'react/jsx-runtime';import{CollaborationStatus as _0x14e54a,CollaborationSessionService as _0x431e53,CollaborationController as _0x151f08,DataLoaderService as _0x29e90b,MemberService as _0x50cc3e,SessionStatus as _0x476595,ILocalCacheService as _0x26b1ca,CollaborationUIEventService as _0x195a88,CollaborationUIEventId as _0x54f12f,DocCollaborationEntity as _0x5da887,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x189603,getLocalCacheKey as _0x5850c1,LOCAL_CACHE_INTERVAL as _0x9823a9,LOCAL_CACHE_INTERVAL_KEY as _0x3d4cf4,UniverCollaborationClientPlugin as _0x3b5370,CollaborationSocketService as _0x1caedd,DEFAULT_WS_SESSION_TICKET_URL as _0x3e7782,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x26e0b7,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x36e979,UnitStatus as _0x59d149}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x548920,IUniverInstanceService as _0x5ea64d,Inject as _0x13e3c7,Injector as _0x6717c8,Disposable as _0x55618d,createIdentifier as _0x926075,ILogService as _0x2bfead,ICommandService as _0x44deef,Optional as _0x33a5b3,RxDisposable as _0x5b8c04,Workbook as _0x828b8,DOC_RANGE_TYPE as _0x18a061,debounce as _0x1b4ae8,Rectangle as _0x5e86a6,DisposableCollection as _0x1a4482,toDisposable as _0x5684e2,UniverInstanceType as _0x1de887,generateRandomId as _0x377b4b,COLORS as _0x2aff34,ColorKit as _0x44158f,ThemeService as _0x1331d6,fromEventSubject as _0x5b2081,Tools as _0x2fbfda,CommandType as _0x569143,IConfigService as _0x46a8a4,CanceledError as _0x1dbb9e,isFormulaString as _0x14248c,isFormulaId as _0xcdcb23,ILocalStorageService as _0x12194a,DependentOn as _0x3f4a8a,Plugin as _0x3c443e,merge as _0x2b7521,registerDependencies as _0x2c2aad,mergeOverrideWithDependencies as _0x3b0ae8,touchDependencies as _0x248c4c}from'@univerjs/core';import{useObservable as _0x4db001,useDependency as _0x1efc03,IUIPartsService as _0x97227,BuiltInUIPart as _0xe393a3,connectInjector as _0x350c26,IBeforeCloseService as _0x58a1a6,IMessageService as _0x551408,INotificationService as _0x3ad334}from'@univerjs/ui';import{BehaviorSubject as _0x5689a5,switchMap as _0x1650bc,of as _0x272a51,takeUntil as _0xefe94,debounceTime as _0x5be43e,Subject as _0x233e98,filter as _0x2dc8e8,merge as _0x2a4316,combineLatest as _0x383e72,fromEvent as _0x197cc9,shareReplay as _0x240f5f,mapTo as _0x11e4f1,distinctUntilChanged as _0x52d636}from'rxjs';import{Tooltip as _0x54f95e,clsx as _0x43e4cc,MessageType as _0xe3500e}from'@univerjs/design';import{useRef as _0x24162f,createElement as _0x1b2a1b,forwardRef as _0x1b3544,useCallback as _0x204a71}from'react';import{IRemoteInstanceService as _0x317103}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x5e7345,RefRangeService as _0x14edcb,SetSelectionsOperation as _0x3b568d,SheetsSelectionsService as _0x47686c,EffectRefRangId as _0x114d3,handleIRemoveRow as _0x442d3c,handleIRemoveCol as _0x3fee0c,handleMoveRange as _0x1f2d01,handleInsertRow as _0x26c1a0,handleInsertRangeMoveRight as _0x24380d,handleInsertRangeMoveDown as _0x56e9d2,handleInsertCol as _0xd21edf,handleDeleteRangeMoveUp as _0x1edd71,handleDeleteRangeMoveLeft as _0x5efdb6,runRefRangeMutations as _0x3367c1}from'@univerjs/sheets';import{Shape as _0x5dc12a,Rect as _0x2bdd35,getColor as _0x4c407c,RegularPolygon as _0x36ecd6,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x5e28be,Vector2 as _0x59221c,SHEET_VIEWPORT_KEY as _0x29367b,IRenderManagerService as _0x3e8801}from'@univerjs/engine-render';import{HTTPService as _0x58299b,ISocketService as _0x8a83ca,WebSocketService as _0x1d6857}from'@univerjs/network';import{IDocClipboardService as _0x4f593b,NodePositionConvertToCursor as _0x10e74e,NodePositionConvertToRectRange as _0x2997cf,TEXT_RANGE_LAYER_INDEX as _0x978a3f,SetDocZoomRatioOperation as _0x2d8f9a,DocIMEInputManagerService as _0x57bd0a,DocStateChangeManagerService as _0x7528bc}from'@univerjs/docs-ui';import{IImageIoService as _0x4b07be}from'@univerjs/drawing';import{ITransformService as _0x3990fc,CollaborationEvent as _0x48c478,isTransformMutationFailure as _0xbfd48e,isTransformMutationsWithChangesetSuccess as _0x1f1a8a,RevisionService as _0x1c8bce,ISnapshotServerService as _0x35e927}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x231784,RichTextEditingMutation as _0x41a482,DocSelectionManagerService as _0x318e9f,DocSkeletonManagerService as _0x1ccfa7}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x3f42d5,serializeRangeWithSheet as _0x542bca,FormulaExecuteStageType as _0x5d8674,FormulaExecutedStateType as _0x2ae0c4,SetFormulaCalculationStartMutation as _0x4f8fdb,SetFormulaCalculationNotificationMutation as _0x33cc11}from'@univerjs/engine-formula';import{map as _0x4406a1,filter as _0x53c322,throttleTime as _0x42dfe3,takeUntil as _0xb23e26,switchMap as _0x2c4106}from'rxjs/operators';import{SheetSkeletonManagerService as _0x33de6b,getCoordByCell as _0x412d35,getSheetObject as _0x2cc164}from'@univerjs/sheets-ui';function Ge({ref:_0xc92e74,..._0x316474}){const _0x82fa73=_0x2d19ee,{icon:_0x19c54d,id:_0x4cf573,className:_0x414dd2,extend:_0x8d932b,..._0x1e0faf}=_0x316474,_0x7c0a71=(_0x82fa73(0x31b)+_0x4cf573+'\x20'+(_0x414dd2||''))[_0x82fa73(0x20d)](),_0x2fc3cd=_0x24162f('_'+vi());return At(_0x19c54d,''+_0x4cf573,{'defIds':_0x19c54d[_0x82fa73(0x2cb)],'idSuffix':_0x2fc3cd[_0x82fa73(0x349)]},{'ref':_0xc92e74,'className':_0x7c0a71,..._0x1e0faf},_0x8d932b);}function At(_0x2a31d9,_0x3fe495,_0xd794b5,_0x429547,_0x248b0e){const _0x1ea6f2=_0x2d19ee;return _0x1b2a1b(_0x2a31d9[_0x1ea6f2(0x143)],{'key':_0x3fe495,...gi(_0x2a31d9,_0xd794b5,_0x248b0e),..._0x429547},(Ei(_0x2a31d9,_0xd794b5)[_0x1ea6f2(0x1b2)]||[])['map']((_0x5a0478,_0x3ed1d9)=>At(_0x5a0478,_0x3fe495+'-'+_0x2a31d9[_0x1ea6f2(0x143)]+'-'+_0x3ed1d9,_0xd794b5,void 0x0,_0x248b0e)));}function gi(_0x371add,_0x2e5f5e,_0x424494){const _0xea8bc9=_0x2d19ee,_0x2c36dd={..._0x371add[_0xea8bc9(0x278)]};_0x424494!=null&&_0x424494[_0xea8bc9(0x1d6)]&&_0x2c36dd[_0xea8bc9(0x1be)]==='colorChannel1'&&(_0x2c36dd[_0xea8bc9(0x1be)]=_0x424494[_0xea8bc9(0x1d6)]),_0x371add[_0xea8bc9(0x143)]===_0xea8bc9(0x1ef)&&_0x2c36dd['id']&&(_0x2c36dd['id']=_0x2c36dd['id']+_0x2e5f5e[_0xea8bc9(0x15a)]),Object[_0xea8bc9(0x2c0)](_0x2c36dd)[_0xea8bc9(0x136)](([_0x5adecf,_0x29bf92])=>{const _0x361bb4=_0xea8bc9;_0x5adecf===_0x361bb4(0x1ef)&&typeof _0x29bf92==_0x361bb4(0x132)&&(_0x2c36dd[_0x5adecf]=_0x29bf92[_0x361bb4(0x23b)](/url\(#(.*)\)/,_0x361bb4(0x2e8)+_0x2e5f5e[_0x361bb4(0x15a)]+')'));});const {defIds:_0x305019}=_0x2e5f5e;return!_0x305019||_0x305019['length']===0x0||(_0x371add[_0xea8bc9(0x143)]===_0xea8bc9(0x2fa)&&_0x2c36dd[_0xea8bc9(0x1ed)]&&(_0x2c36dd[_0xea8bc9(0x1ed)]=_0x2c36dd[_0xea8bc9(0x1ed)]+_0x2e5f5e[_0xea8bc9(0x15a)]),Object[_0xea8bc9(0x2c0)](_0x2c36dd)['forEach'](([_0x44c803,_0x34f37e])=>{const _0x53ae8f=_0xea8bc9;typeof _0x34f37e==_0x53ae8f(0x132)&&(_0x2c36dd[_0x44c803]=_0x34f37e[_0x53ae8f(0x23b)](/url\(#(.*)\)/,_0x53ae8f(0x2e8)+_0x2e5f5e[_0x53ae8f(0x15a)]+')'));})),_0x2c36dd;}function Ei(_0x18d73f,_0x421119){const _0x18a6f6=_0x2d19ee;var _0x41fb6b;const {defIds:_0x5abf62}=_0x421119;return!_0x5abf62||_0x5abf62['length']===0x0?_0x18d73f:_0x18d73f[_0x18a6f6(0x143)]===_0x18a6f6(0x2d5)&&((_0x41fb6b=_0x18d73f['children'])!=null&&_0x41fb6b['length'])?{..._0x18d73f,'children':_0x18d73f['children']['map'](_0x2b33ca=>typeof _0x2b33ca[_0x18a6f6(0x278)]['id']==_0x18a6f6(0x132)&&_0x5abf62&&_0x5abf62['includes'](_0x2b33ca[_0x18a6f6(0x278)]['id'])?{..._0x2b33ca,'attrs':{..._0x2b33ca[_0x18a6f6(0x278)],'id':_0x2b33ca[_0x18a6f6(0x278)]['id']+_0x421119['idSuffix']}}:_0x2b33ca)}:_0x18d73f;}function vi(){const _0x11c765=_0x2d19ee;return Math[_0x11c765(0x19f)]()['toString'](0x24)['substring'](0x2,0x8);}Ge['displayName']='UniverIcon';const pi={'tag':'svg','attrs':{'xmlns':_0x2d19ee(0x26d),'fill':_0x2d19ee(0x29b),'viewBox':_0x2d19ee(0x209),'width':_0x2d19ee(0x34d),'height':_0x2d19ee(0x34d)},'children':[{'tag':'g','attrs':{'clipPath':_0x2d19ee(0x371)},'children':[{'tag':_0x2d19ee(0x2a2),'attrs':{'stroke':_0x2d19ee(0x1eb),'d':_0x2d19ee(0x1ff),'strokeLinecap':_0x2d19ee(0x2ab),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x2d19ee(0x2d5),'attrs':{},'children':[{'tag':_0x2d19ee(0x1b9),'attrs':{'id':_0x2d19ee(0x24d)},'children':[{'tag':_0x2d19ee(0x2a2),'attrs':{'fill':_0x2d19ee(0x385),'d':_0x2d19ee(0x341)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},Pt=_0x1b3544(function(_0x324bab,_0x4881df){const _0x497cdd=_0x2d19ee;return _0x1b2a1b(Ge,Object[_0x497cdd(0x20b)]({},_0x324bab,{'id':_0x497cdd(0x149),'ref':_0x4881df,'icon':pi}));});Pt['displayName']='OffLineIcon';const Oi={'tag':'svg','attrs':{'xmlns':_0x2d19ee(0x26d),'fill':'none','viewBox':'0\x200\x2017\x2016','width':_0x2d19ee(0x34d),'height':_0x2d19ee(0x34d)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x2d19ee(0x2a2),'attrs':{'stroke':_0x2d19ee(0x1eb),'d':_0x2d19ee(0x31c),'strokeLinecap':_0x2d19ee(0x2ab),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x2d19ee(0x1b9),'attrs':{'id':_0x2d19ee(0x13b)},'children':[{'tag':'path','attrs':{'fill':'white','d':_0x2d19ee(0x341),'transform':_0x2d19ee(0x2b1)}}]}]}],'defIds':[_0x2d19ee(0x13b)]},wt=_0x1b3544(function(_0x1e2834,_0x1efcf0){const _0x3a0b15=_0x2d19ee;return _0x1b2a1b(Ge,Object['assign']({},_0x1e2834,{'id':_0x3a0b15(0x1f4),'ref':_0x1efcf0,'icon':Oi}));});wt[_0x2d19ee(0x321)]=_0x2d19ee(0x147);function Ti(_0xf1464c){const _0x58e388=_0x2d19ee;switch(_0xf1464c){case _0x14e54a[_0x58e388(0x370)]:return _0x58e388(0x35a);case _0x14e54a['CONFLICT']:return _0x58e388(0x1c5);case _0x14e54a[_0x58e388(0x342)]:return _0x58e388(0x314);case _0x14e54a[_0x58e388(0x130)]:return'collabStatus.notCollab';case _0x14e54a['AWAITING']:case _0x14e54a[_0x58e388(0x274)]:return _0x58e388(0x2e4);case _0x14e54a[_0x58e388(0x29c)]:case _0x14e54a[_0x58e388(0x338)]:return'collabStatus.synced';}}function Ci(_0x5c4d90){const _0x2fc783=_0x2d19ee,{status$:_0x275023}=_0x5c4d90,_0xd83c4=_0x4db001(_0x275023,_0x14e54a[_0x2fc783(0x130)]),_0x24e969=_0x1efc03(_0x548920),_0x58f16b=_0x1efc03(_0x431e53),_0x563bbb=_0xd83c4!==_0x14e54a[_0x2fc783(0x370)],_0x49b1d4=_0x24e969['t'](Ti(_0xd83c4)),_0x63d40e=_0x563bbb?_0x13af06(wt,{}):_0x13af06(Pt,{}),_0x534432=_0x204a71(()=>{const _0x250563=_0x2fc783;_0x563bbb||_0x58f16b[_0x250563(0x358)]();},[_0x563bbb,_0x58f16b]);function _0x539232(){const _0x4abcc9=_0x2fc783;return _0x350478(_0x4abcc9(0x168),{'className':_0x4abcc9(0x19c),'onClick':_0x534432,'children':[_0x13af06(_0x4abcc9(0x168),{'className':_0x43e4cc(_0x4abcc9(0x297),{'univer-text-green-500':_0x563bbb,'univer-text-red-500':!_0x563bbb}),'children':_0x63d40e}),_0x13af06('div',{'className':_0x4abcc9(0x257),'children':_0x49b1d4})]});}return _0x563bbb?_0x539232():_0x13af06(_0x54f95e,{'title':_0x24e969['t']('collab-client.tooltip.reconnect'),'children':_0x539232()});}var Ri=Object[_0x2d19ee(0x2a7)],Di=(_0x4147cc,_0xb6d86c,_0x447ead,_0x35cb94)=>{for(var _0x42b4c0=_0x35cb94>0x1?void 0x0:_0x35cb94?Ri(_0xb6d86c,_0x447ead):_0xb6d86c,_0x2d3768=_0x4147cc['length']-0x1,_0x1a2fb3;_0x2d3768>=0x0;_0x2d3768--)(_0x1a2fb3=_0x4147cc[_0x2d3768])&&(_0x42b4c0=_0x1a2fb3(_0x42b4c0)||_0x42b4c0);return _0x42b4c0;},se=(_0x5de384,_0x165912)=>(_0x7c8ec8,_0x8b5a7c)=>_0x165912(_0x7c8ec8,_0x8b5a7c,_0x5de384);let ae=class extends _0x55618d{constructor(_0x585adc,_0x7af9d2,_0x1131b5,_0x4291a7){const _0x2aa964=_0x2d19ee;super(),_(this,_0x2aa964(0x2d7),new _0x5689a5(_0x14e54a[_0x2aa964(0x130)])),(this[_0x2aa964(0x17f)]=_0x585adc,this[_0x2aa964(0x2b2)]=_0x7af9d2,this[_0x2aa964(0x156)]=_0x1131b5,this['_uiPartsService']=_0x4291a7,this[_0x2aa964(0x18e)](),this[_0x2aa964(0x2d1)]());}[_0x2d19ee(0x2d1)](){const _0x556679=_0x2d19ee;this[_0x556679(0x1b6)](this['_univerInstanceService'][_0x556679(0x26b)][_0x556679(0x359)](_0x1650bc(()=>{const _0x980042=_0x556679,_0x28cfb3=this[_0x980042(0x17f)][_0x980042(0x17b)]();return _0x28cfb3?this['_collaborationController'][_0x980042(0x148)](_0x28cfb3[_0x980042(0x377)]()):_0x272a51(null);}),_0x1650bc(_0x14a7ec=>_0x14a7ec?_0x14a7ec[_0x556679(0x305)]:_0x272a51(_0x14e54a[_0x556679(0x130)])))['subscribe'](_0x48b82e=>{const _0x42796b=_0x556679;this[_0x42796b(0x2d7)]['next'](_0x48b82e);}));}['_initStatusComponent'](){const _0x20f055=_0x2d19ee;this[_0x20f055(0x1b6)](this[_0x20f055(0x16d)][_0x20f055(0x1ac)](_0xe393a3[_0x20f055(0x15b)],()=>_0x350c26(Ni({'status$':this[_0x20f055(0x2d7)][_0x20f055(0x27b)]()}),this['_injector'])));}};ae=Di([se(0x0,_0x5ea64d),se(0x1,_0x13e3c7(_0x6717c8)),se(0x2,_0x13e3c7(_0x151f08)),se(0x3,_0x97227)],ae);function Ni(_0x48c6d1){const {status$:_0x24a863}=_0x48c6d1;return function(){return _0x13af06(Ci,{'status$':_0x24a863});};}function _0x3b77(_0x495d42,_0x58f022){_0x495d42=_0x495d42-0x12e;const _0x449872=_0x4498();let _0x3b7737=_0x449872[_0x495d42];return _0x3b7737;}const yt=_0x926075(_0x2d19ee(0x258));var bi=Object[_0x2d19ee(0x2a7)],Li=(_0x3b574f,_0x3577ae,_0x37f3ad,_0x32370a)=>{for(var _0x4559b5=_0x32370a>0x1?void 0x0:_0x32370a?bi(_0x3577ae,_0x37f3ad):_0x3577ae,_0x3fe8aa=_0x3b574f['length']-0x1,_0x43e158;_0x3fe8aa>=0x0;_0x3fe8aa--)(_0x43e158=_0x3b574f[_0x3fe8aa])&&(_0x4559b5=_0x43e158(_0x4559b5)||_0x4559b5);return _0x4559b5;},K=(_0x3bf197,_0x4af006)=>(_0x461226,_0x33cfe7)=>_0x4af006(_0x461226,_0x33cfe7,_0x3bf197);let ce=class extends _0x5b8c04{constructor(_0x2449f7,_0x3c62ac,_0x45e227,_0x2684de,_0x4f2bc4){const _0x11190c=_0x2d19ee;super(),this[_0x11190c(0x354)]=_0x2449f7,this['_logService']=_0x3c62ac,this[_0x11190c(0x162)]=_0x45e227,this['_dataLoaderService']=_0x2684de,_0x4f2bc4?_0x4f2bc4==null||_0x4f2bc4[_0x11190c(0x159)]()['then'](()=>this['_init']()):(this[_0x11190c(0x244)][_0x11190c(0x1f7)](_0x11190c(0x15d),_0x11190c(0x1d4)),this[_0x11190c(0x1e9)]());}async['_init'](){const _0x21298f=_0x2d19ee,_0x5f4f18=this[_0x21298f(0x354)][_0x21298f(0x172)](_0x21298f(0x235)),_0x3b9424=this[_0x21298f(0x354)]['getParam'](_0x21298f(0x164)),_0x1d76a3=this[_0x21298f(0x354)]['getParam'](_0x21298f(0x261));if(!_0x5f4f18||!_0x3b9424){this['_logService']['debug']('[CollaborationDataLoaderController]',_0x21298f(0x2a6));return;}const _0x38d3aa=await this[_0x21298f(0x2e9)][_0x21298f(0x154)](_0x5f4f18,Number(_0x3b9424),_0x1d76a3);_0x38d3aa&&_0x38d3aa instanceof _0x828b8&&this[_0x21298f(0x315)](_0x38d3aa);}async[_0x2d19ee(0x315)](_0x305d26){const _0x42f09e=_0x2d19ee;await this[_0x42f09e(0x33c)](_0x305d26),_0x305d26['activeSheet$'][_0x42f09e(0x359)](_0xefe94(this[_0x42f09e(0x339)]))['subscribe'](_0x17ed7f=>{const _0x5b25c9=_0x42f09e;_0x17ed7f&&this[_0x5b25c9(0x32f)](_0x17ed7f);}),this[_0x42f09e(0x354)][_0x42f09e(0x34f)][_0x42f09e(0x359)](_0xefe94(this[_0x42f09e(0x339)]))[_0x42f09e(0x150)](()=>this[_0x42f09e(0x33c)](_0x305d26));}[_0x2d19ee(0x32f)](_0x187158,_0x5b6825=!0x1){const _0x5e11e0=_0x2d19ee,_0xc8acc6=this['_urlService']['getParam'](_0x5e11e0(0x261));_0x187158[_0x5e11e0(0x2e6)]()!==_0xc8acc6&&this['_urlService'][_0x5e11e0(0x1f6)](_0x5e11e0(0x261),_0x187158['getSheetId'](),_0x5b6825);}async[_0x2d19ee(0x33c)](_0x291d6b){const _0x4ba364=_0x2d19ee;var _0xeaaa63;const _0x1941e7=this['_urlService'][_0x4ba364(0x172)](_0x4ba364(0x261));if(!_0x1941e7||!_0x291d6b['getSheetBySheetId'](_0x1941e7)){const _0x596227=_0x291d6b[_0x4ba364(0x1e3)]()[0x0],_0x52ac8b=_0x291d6b[_0x4ba364(0x275)](_0x596227);if(!_0x52ac8b)return;this[_0x4ba364(0x32f)](_0x52ac8b,!0x0),await this[_0x4ba364(0x162)]['executeCommand'](_0x5e7345['id'],{'unitId':_0x291d6b['getUnitId'](),'subUnitId':_0x596227});return;}((_0xeaaa63=_0x291d6b[_0x4ba364(0x273)]())==null?void 0x0:_0xeaaa63[_0x4ba364(0x2e6)]())!==_0x1941e7&&await this[_0x4ba364(0x162)][_0x4ba364(0x16a)](_0x5e7345['id'],{'unitId':_0x291d6b[_0x4ba364(0x377)](),'subUnitId':_0x1941e7});}};ce=Li([K(0x0,yt),K(0x1,_0x2bfead),K(0x2,_0x44deef),K(0x3,_0x13e3c7(_0x29e90b)),K(0x4,_0x33a5b3(_0x317103))],ce);var Ui=Object[_0x2d19ee(0x2a7)],Mi=(_0x58e900,_0x2d1bae,_0x57dc17,_0x11b1f2)=>{const _0x559028=_0x2d19ee;for(var _0xa3b5af=_0x11b1f2>0x1?void 0x0:_0x11b1f2?Ui(_0x2d1bae,_0x57dc17):_0x2d1bae,_0x34b2dd=_0x58e900[_0x559028(0x375)]-0x1,_0x3bc50d;_0x34b2dd>=0x0;_0x34b2dd--)(_0x3bc50d=_0x58e900[_0x34b2dd])&&(_0xa3b5af=_0x3bc50d(_0xa3b5af)||_0xa3b5af);return _0xa3b5af;},rt=(_0x4b00db,_0x2eff46)=>(_0x85a7cc,_0x33e5b5)=>_0x2eff46(_0x85a7cc,_0x33e5b5,_0x4b00db);let $e=class extends _0x5b8c04{constructor(_0x226cfa,_0x5d0f7a){const _0x520808=_0x2d19ee;super(),this[_0x520808(0x22b)]=_0x226cfa,this['_imageIoService']=_0x5d0f7a,this[_0x520808(0x1e9)]();}[_0x2d19ee(0x1e9)](){const _0x9a31ca=_0x2d19ee,_0xfaa1fc=this;this['disposeWithMe'](this[_0x9a31ca(0x22b)][_0x9a31ca(0x194)]({'onBeforePasteImage':async _0xf86f=>{const _0x3d977d=_0x9a31ca,_0x372908=await _0xfaa1fc[_0x3d977d(0x1a8)]['saveImage'](_0xf86f);return _0x372908?{'source':_0x372908['source'],'imageSourceType':_0x372908[_0x3d977d(0x135)]}:null;}}));}};$e=Mi([rt(0x0,_0x4f593b),rt(0x1,_0x4b07be)],$e);const ot=[_0x2d19ee(0x306),_0x2d19ee(0x28e),_0x2d19ee(0x228),'red.300',_0x2d19ee(0x2ee),_0x2d19ee(0x17e)];class Ke extends _0x55618d{constructor(){super(...arguments),_(this,'_assignedColors',new Map()),_(this,'_colorIndex',0x0);}[_0x2d19ee(0x267)](_0x40acbb){const _0x4c8a37=_0x2d19ee;if(this['_assignedColors']['has'](_0x40acbb))return this['_assignedColors'][_0x4c8a37(0x1a4)](_0x40acbb);const _0x39f607=ot[this[_0x4c8a37(0x301)]];return this[_0x4c8a37(0x301)]=(this[_0x4c8a37(0x301)]+0x1)%ot['length'],this[_0x4c8a37(0x1f0)]['set'](_0x40acbb,_0x39f607),_0x39f607;}}function $t(_0xc22d0){const _0x2c9473=_0x2d19ee;let _0x343932='';for(const _0x59f08c of _0xc22d0){const {startOffset:_0x178db6,endOffset:_0xf4352c,isActive:_0x452d75,rangeType:_0x13666e,segmentId:_0x366bc6,segmentPage:_0xef9c6c}=_0x59f08c;_0x343932[_0x2c9473(0x375)]&&(_0x343932+=','),_0x343932+=_0x178db6+':'+_0xf4352c+':'+(_0x452d75?'1':'0')+':'+_0x13666e+':'+_0x366bc6+':'+_0xef9c6c;}return _0x343932;}function Ai(_0x489dd3){const _0x22a264=_0x2d19ee,_0x195122=_0x489dd3[_0x22a264(0x223)](','),_0xa0cd0f=[];for(const _0x452fc6 of _0x195122){const [_0x1dd0ad,_0x1d42c0,_0x1ac622,_0x17ee72,_0x32e4b0,_0x2adb58]=_0x452fc6[_0x22a264(0x223)](':');_0xa0cd0f[_0x22a264(0x1bb)]({'startOffset':Number(_0x1dd0ad),'endOffset':Number(_0x1d42c0),'collapsed':_0x1dd0ad===_0x1d42c0,'isActive':_0x1ac622==='1','rangeType':_0x17ee72===_0x18a061['TEXT']?_0x18a061[_0x22a264(0x21f)]:_0x18a061[_0x22a264(0x1d8)],'segmentId':typeof _0x32e4b0==_0x22a264(0x132)?String(_0x32e4b0):'','segmentPage':Number(_0x2adb58!=null?_0x2adb58:-0x1)});}return _0xa0cd0f['some'](_0x953d6d=>_0x953d6d[_0x22a264(0x1b8)])||(_0xa0cd0f[0x0][_0x22a264(0x1b8)]=!0x0),_0xa0cd0f;}class ze extends _0x5b8c04{constructor(){const _0x5c5301=_0x2d19ee;super(...arguments),_(this,_0x5c5301(0x2de),new _0x5689a5(null)),_(this,_0x5c5301(0x2dc),this['_collabCursorState$'][_0x5c5301(0x27b)]());}['syncEditingCollabCursor'](_0xa88ba9){const _0x1fc8af=_0x2d19ee,{unitID:_0x16a303,memberID:_0x132aec,textRanges:_0x19d6bd}=_0xa88ba9,_0x1c2bf0=$t(_0x19d6bd);if(_0x1c2bf0==='')return;const _0x3ae1a9={'unitID':_0x16a303,'memberID':_0x132aec,'selection':_0x1c2bf0};this['_collabCursorState$'][_0x1fc8af(0x1a9)](_0x3ae1a9);}}var Pi=Object[_0x2d19ee(0x2a7)],wi=(_0x42c420,_0x3f71af,_0x152013,_0x59352b)=>{const _0x15c1ab=_0x2d19ee;for(var _0x1ab8a6=_0x59352b>0x1?void 0x0:_0x59352b?Pi(_0x3f71af,_0x152013):_0x3f71af,_0x3c5025=_0x42c420[_0x15c1ab(0x375)]-0x1,_0xcbb8e4;_0x3c5025>=0x0;_0x3c5025--)(_0xcbb8e4=_0x42c420[_0x3c5025])&&(_0x1ab8a6=_0xcbb8e4(_0x1ab8a6)||_0x1ab8a6);return _0x1ab8a6;},A=(_0x35d785,_0x5dccc0)=>(_0x453bdb,_0x590021)=>_0x5dccc0(_0x453bdb,_0x590021,_0x35d785);const yi=0x12c,$i=0x64;let xe=class extends _0x5b8c04{constructor(_0xff6ff,_0x4b1055,_0xdccaa6,_0xe66107,_0x1afff0,_0x381aad,_0x51c78a,_0x5be8fd,_0x5a0ae8){const _0x536b0a=_0x2d19ee;super(),_(this,_0x536b0a(0x2a1),!0x1),_(this,'_init',!0x1),_(this,'_cursorInfo$',new _0x5689a5(new Map())),_(this,'cursorInfo$',this['_cursorInfo$'][_0x536b0a(0x27b)]()),_(this,_0x536b0a(0x229),new _0x5689a5([])),_(this,_0x536b0a(0x265),this[_0x536b0a(0x229)][_0x536b0a(0x359)](_0x5be43e(yi))),_(this,_0x536b0a(0x2bf),_0x1b4ae8(_0x5cbcda=>{const _0x2e00f6=_0x536b0a,_0xc59269={'eventID':_0x48c478[_0x2e00f6(0x141)],'data':{'unitID':this['unitID'],'memberID':this[_0x2e00f6(0x337)]['getMemberID'](),'selection':$t(_0x5cbcda)}};this[_0x2e00f6(0x337)][_0x2e00f6(0x16e)](_0xc59269,this['unitID']);},$i)),(this[_0x536b0a(0x369)]=_0xff6ff,this[_0x536b0a(0x337)]=_0x4b1055,this[_0x536b0a(0x2b2)]=_0xdccaa6,this[_0x536b0a(0x1e7)]=_0xe66107,this[_0x536b0a(0x268)]=_0x1afff0,this[_0x536b0a(0x33b)]=_0x381aad,this[_0x536b0a(0x2f6)]=_0x51c78a,this[_0x536b0a(0x17f)]=_0x5be8fd,this['_commandService']=_0x5a0ae8);}get[_0x2d19ee(0x344)](){const _0x1a3616=_0x2d19ee;return this[_0x1a3616(0x2eb)][_0x1a3616(0x378)]();}get[_0x2d19ee(0x2d2)](){const _0x5a59b9=_0x2d19ee;return this['_roomMembers$'][_0x5a59b9(0x378)]();}[_0x2d19ee(0x2cf)](){const _0x1ae3b6=_0x2d19ee;super['dispose'](),this[_0x1ae3b6(0x2eb)][_0x1ae3b6(0x1a9)](new Map()),this[_0x1ae3b6(0x2eb)][_0x1ae3b6(0x2a5)](),this[_0x1ae3b6(0x229)][_0x1ae3b6(0x1a9)]([]),this['_roomMembers$'][_0x1ae3b6(0x2a5)]();}[_0x2d19ee(0x155)](){const _0x53e333=_0x2d19ee;this[_0x53e333(0x1e9)]||(this[_0x53e333(0x1e9)]=!0x0,this[_0x53e333(0x337)][_0x53e333(0x351)]['pipe'](_0xefe94(this['dispose$']))[_0x53e333(0x150)](_0x3be386=>{const _0x52a13f=_0x53e333;_0x3be386===_0x476595[_0x52a13f(0x1d5)]?this[_0x52a13f(0x24f)]():this[_0x52a13f(0x1bc)]();}),this[_0x53e333(0x337)][_0x53e333(0x246)][_0x53e333(0x359)](_0xefe94(this[_0x53e333(0x339)]))[_0x53e333(0x150)](_0x579e85=>{const _0x3035ac=_0x53e333,_0x331905=_0x579e85[_0x3035ac(0x33a)];_0x331905===_0x48c478[_0x3035ac(0x141)]&&this['_onCursorUpdate'](_0x579e85),_0x331905===_0x48c478[_0x3035ac(0x284)]&&this['_onCursorDelete'](_0x579e85);}),this['disposeWithMe'](this['_commandService'][_0x53e333(0x21e)](_0x1b44c8=>{const _0xca1ef4=_0x53e333,_0x5756f7=_0x1b44c8[_0xca1ef4(0x19b)];_0x5756f7!=null&&this[_0xca1ef4(0x2a1)]&&_0x1b44c8['id']===_0x231784['id']&&_0x5756f7[_0xca1ef4(0x352)]===this['unitID']&&_0x5756f7[_0xca1ef4(0x2c9)]===!0x1&&_0x5756f7[_0xca1ef4(0x2d4)]['length']>0x0&&this[_0xca1ef4(0x2bf)](_0x5756f7[_0xca1ef4(0x2d4)]);})),this[_0x53e333(0x33b)][_0x53e333(0x2dc)][_0x53e333(0x359)](_0xefe94(this['dispose$']))['subscribe'](_0x99354b=>{const _0x57ce8d=_0x53e333;if((_0x99354b==null?void 0x0:_0x99354b['unitID'])!==this[_0x57ce8d(0x369)])return;const _0x4d48f1={'eventID':_0x48c478['UPDATE_CURSOR'],'data':_0x99354b};this[_0x57ce8d(0x324)](_0x4d48f1);}),this[_0x53e333(0x1b6)](this[_0x53e333(0x162)][_0x53e333(0x21e)](_0x307512=>{const _0x178961=_0x53e333;if(_0x307512[_0x178961(0x19b)]==null)return;const _0x5dd176=_0x307512[_0x178961(0x19b)];if(_0x307512['id']!==_0x41a482['id']||_0x5dd176[_0x178961(0x352)]!==this[_0x178961(0x369)])return;const _0x3a186c={'id':'doc.mutation.rich-text-editing','params':_0x5dd176},_0x5acc3a=this[_0x178961(0x344)];for(const [_0x42064e,_0x42b25a]of _0x5acc3a){const _0x1bd933={'id':_0x178961(0x12f),'params':{'unitId':this[_0x178961(0x369)],'actions':null,'textRanges':_0x42b25a[_0x178961(0x2d4)]}},_0x4f1b54=this[_0x178961(0x2f6)][_0x178961(0x1d9)](_0x3a186c,_0x1bd933,!0x1);if(_0xbfd48e(_0x4f1b54))throw _0x4f1b54['error'];_0x5acc3a['set'](_0x42064e,{..._0x42b25a,'ranges':_0x4f1b54[_0x178961(0x2cc)][_0x178961(0x19b)]['textRanges']});}queueMicrotask(()=>{const _0x11f23a=_0x178961;this[_0x11f23a(0x2eb)][_0x11f23a(0x1a9)](_0x5acc3a);});})));}['_onCursorUpdate'](_0x1ca262){const _0x3dd18b=_0x2d19ee;var _0x55525f,_0x2e7bf8;const {memberID:_0x308034,selection:_0x5b8179}=_0x1ca262[_0x3dd18b(0x2d3)],_0x34ef10=Ai(_0x5b8179),_0xfcaf4=(_0x2e7bf8=(_0x55525f=this[_0x3dd18b(0x268)]['getMember'](this[_0x3dd18b(0x369)],_0x308034))==null?void 0x0:_0x55525f[_0x3dd18b(0x28a)])!=null?_0x2e7bf8:_0x3dd18b(0x2b6),_0x433957={'color':this[_0x3dd18b(0x1e7)][_0x3dd18b(0x267)](_0x308034),'name':_0xfcaf4,'ranges':_0x34ef10},_0x5a9e65=this[_0x3dd18b(0x344)];_0x5a9e65['set'](_0x308034,_0x433957),this[_0x3dd18b(0x2eb)]['next'](_0x5a9e65);}[_0x2d19ee(0x1bf)](_0x31d479){const _0x26666a=_0x2d19ee,{memberID:_0x8207de}=_0x31d479['data'],_0x1d7ba8=this[_0x26666a(0x344)];_0x1d7ba8[_0x26666a(0x20a)](_0x8207de),this['_cursorInfo$'][_0x26666a(0x1a9)](_0x1d7ba8);}['_toggleOnline'](){const _0x27a8f4=_0x2d19ee;var _0x48d5b9;if(this['_online']=!0x0,((_0x48d5b9=this[_0x27a8f4(0x17f)][_0x27a8f4(0x17b)]())==null?void 0x0:_0x48d5b9[_0x27a8f4(0x377)]())!==this['unitID'])return;const _0x1d5d50=this['_injector'][_0x27a8f4(0x1a4)](_0x318e9f)['getDocRanges']();Array[_0x27a8f4(0x1c8)](_0x1d5d50)&&_0x1d5d50['length']>0x0&&this[_0x27a8f4(0x2bf)](_0x1d5d50);}['_toggleOffline'](){const _0x39e8b2=_0x2d19ee;this[_0x39e8b2(0x2a1)]=!0x1;}};xe=wi([A(0x2,_0x13e3c7(_0x6717c8)),A(0x3,_0x13e3c7(Ke)),A(0x4,_0x13e3c7(_0x50cc3e)),A(0x5,_0x13e3c7(ze)),A(0x6,_0x3990fc),A(0x7,_0x5ea64d),A(0x8,_0x44deef)],xe);var xi=Object[_0x2d19ee(0x2a7)],Bi=(_0x4cb8db,_0x1a5725,_0x30938d,_0x1fbff0)=>{for(var _0x1c494b=_0x1fbff0>0x1?void 0x0:_0x1fbff0?xi(_0x1a5725,_0x30938d):_0x1a5725,_0x5b4857=_0x4cb8db['length']-0x1,_0x3e18aa;_0x5b4857>=0x0;_0x5b4857--)(_0x3e18aa=_0x4cb8db[_0x5b4857])&&(_0x1c494b=_0x3e18aa(_0x1c494b)||_0x1c494b);return _0x1c494b;},B=(_0x48e32f,_0x1c121c)=>(_0x5214c7,_0x41ff08)=>_0x1c121c(_0x5214c7,_0x41ff08,_0x48e32f);const Fi=0x12c,ki=0x64,Hi=()=>{let _0xefb2cd=[],_0x116d10=!0x1;return _0x7051ed=>{const _0x2047a7=_0x3b77;_0xefb2cd[_0x2047a7(0x1bb)](_0x7051ed),_0x116d10||(_0x116d10=!0x0,setTimeout(()=>{_0xefb2cd['forEach'](_0x17e8cf=>_0x17e8cf()),_0xefb2cd=[],_0x116d10=!0x1;}));};};let Be=class extends _0x5b8c04{constructor(_0x4a1246,_0x23a247,_0x4637bd,_0x27cf16,_0x158d33,_0x1e2809,_0x55f71c,_0x3ac80d){const _0x3a8ff1=_0x2d19ee;super(),_(this,_0x3a8ff1(0x2a1),!0x1),_(this,_0x3a8ff1(0x1e9),!0x1),_(this,_0x3a8ff1(0x2eb),new _0x5689a5(new Map())),_(this,_0x3a8ff1(0x2a9),this['_cursorInfo$'][_0x3a8ff1(0x27b)]()),_(this,'_roomMembers$',new _0x5689a5([])),_(this,_0x3a8ff1(0x265),this[_0x3a8ff1(0x229)]['pipe'](_0x5be43e(Fi))),_(this,_0x3a8ff1(0x2bf),_0x1b4ae8((_0x1a971c,_0x4634aa)=>{const _0xedf9ff=_0x3a8ff1,_0x5a0137={'eventID':_0x48c478[_0xedf9ff(0x141)],'data':{'unitID':this[_0xedf9ff(0x369)],'memberID':this['_session'][_0xedf9ff(0x151)](),'selection':_0x542bca(_0x1a971c,_0x4634aa[_0xedf9ff(0x186)])}};this[_0xedf9ff(0x337)]['send'](_0x5a0137,this[_0xedf9ff(0x369)]);},ki)),(this[_0x3a8ff1(0x369)]=_0x4a1246,this[_0x3a8ff1(0x337)]=_0x23a247,this['_injector']=_0x4637bd,this[_0x3a8ff1(0x1e7)]=_0x27cf16,this[_0x3a8ff1(0x268)]=_0x158d33,this[_0x3a8ff1(0x17f)]=_0x1e2809,this[_0x3a8ff1(0x162)]=_0x55f71c,this[_0x3a8ff1(0x308)]=_0x3ac80d);}get[_0x2d19ee(0x344)](){const _0x92a995=_0x2d19ee;return this['_cursorInfo$'][_0x92a995(0x378)]();}get['roomMembers'](){const _0x2f79b2=_0x2d19ee;return this['_roomMembers$'][_0x2f79b2(0x378)]();}[_0x2d19ee(0x2cf)](){const _0x45c467=_0x2d19ee;super[_0x45c467(0x2cf)](),this[_0x45c467(0x2eb)][_0x45c467(0x1a9)](new Map()),this['_cursorInfo$'][_0x45c467(0x2a5)](),this['_roomMembers$']['next']([]),this['_roomMembers$'][_0x45c467(0x2a5)]();}['init'](){const _0x52e5cc=_0x2d19ee;this[_0x52e5cc(0x1e9)]||(this[_0x52e5cc(0x1e9)]=!0x0,this[_0x52e5cc(0x337)][_0x52e5cc(0x351)]['pipe'](_0xefe94(this[_0x52e5cc(0x339)]))['subscribe'](_0x5a3da4=>{const _0x5609fd=_0x52e5cc;_0x5a3da4===_0x476595[_0x5609fd(0x1d5)]?this[_0x5609fd(0x24f)]():this[_0x5609fd(0x1bc)]();}),this[_0x52e5cc(0x337)][_0x52e5cc(0x246)]['pipe'](_0xefe94(this[_0x52e5cc(0x339)]))[_0x52e5cc(0x150)](_0x4a10bb=>{const _0x1fa8d5=_0x52e5cc,_0x44e94d=_0x4a10bb['eventID'];_0x44e94d===_0x48c478[_0x1fa8d5(0x141)]&&this[_0x1fa8d5(0x324)](_0x4a10bb),_0x44e94d===_0x48c478['USERS_LEAVE']&&this['_onCursorDelete'](_0x4a10bb);}),this[_0x52e5cc(0x133)](),this[_0x52e5cc(0x1b6)](this[_0x52e5cc(0x162)][_0x52e5cc(0x21e)](_0x113298=>{const _0x462820=_0x52e5cc;if(this['_online']&&_0x113298['id']===_0x3b568d['id']&&_0x113298[_0x462820(0x19b)]['unitId']===this['unitID']){const _0x25091a=_0x113298['params'];this[_0x462820(0x2bf)](_0x25091a['subUnitId'],_0x25091a[_0x462820(0x331)][0x0]);}})));}[_0x2d19ee(0x324)](_0x5595c4){const _0x3916d0=_0x2d19ee;var _0x50131a,_0x55fc69;const {memberID:_0xc67e23,selection:_0x1504e3}=_0x5595c4[_0x3916d0(0x2d3)],{sheetName:_0x331cab,range:_0x116c6c}=_0x3f42d5(_0x1504e3),_0x12b7f6={'name':(_0x55fc69=(_0x50131a=this['_memberService'][_0x3916d0(0x2ad)](this[_0x3916d0(0x369)],_0xc67e23))==null?void 0x0:_0x50131a[_0x3916d0(0x28a)])!=null?_0x55fc69:'Unknown\x20user','range':this[_0x3916d0(0x381)](_0x331cab,_0x116c6c),'sheetID':_0x331cab,'color':this[_0x3916d0(0x1e7)]['assignAColorForMemberID'](_0xc67e23),'selection':_0x1504e3},_0x66b4c5=this[_0x3916d0(0x344)];_0x66b4c5[_0x3916d0(0x165)](_0xc67e23,_0x12b7f6),this[_0x3916d0(0x2eb)][_0x3916d0(0x1a9)](_0x66b4c5);}[_0x2d19ee(0x1bf)](_0x258b2c){const _0x14975e=_0x2d19ee,{memberID:_0x273128}=_0x258b2c[_0x14975e(0x2d3)],_0x47a572=this['cursorInfo'];_0x47a572['delete'](_0x273128),this[_0x14975e(0x2eb)][_0x14975e(0x1a9)](_0x47a572);}[_0x2d19ee(0x381)](_0x205ebf,_0x48f68a){const _0x14d71f=_0x2d19ee;var _0x5ea982,_0x39b1b0;const _0x36fae9=(_0x39b1b0=(_0x5ea982=this[_0x14d71f(0x17f)][_0x14d71f(0x1b0)](this[_0x14d71f(0x369)]))==null?void 0x0:_0x5ea982['getSheetBySheetId'](_0x205ebf))==null?void 0x0:_0x39b1b0[_0x14d71f(0x1e5)]();return(_0x36fae9==null?void 0x0:_0x36fae9[_0x14d71f(0x242)](_0x1a7fd8=>_0x5e86a6[_0x14d71f(0x1e2)](_0x1a7fd8,_0x48f68a)))||_0x48f68a;}[_0x2d19ee(0x133)](){const _0x48fdc2=_0x2d19ee,_0x508b61=new _0x1a4482(),_0x37e284=Hi(),_0x4b650f=()=>{const _0x135063=_0x3b77;_0x508b61[_0x135063(0x2cf)]();const _0x523afb=(_0x5711d5,_0x40bf88,_0xc1c214,_0xb8252f)=>{const _0xb0cff4=_0x135063;let _0x23ae11=[];switch(_0x5711d5['id']){case _0x114d3[_0xb0cff4(0x303)]:{_0x23ae11=_0x5efdb6(_0x5711d5,_0xb8252f);break;}case _0x114d3[_0xb0cff4(0x346)]:{_0x23ae11=_0x1edd71(_0x5711d5,_0xb8252f);break;}case _0x114d3['InsertColCommandId']:{_0x23ae11=_0xd21edf(_0x5711d5,_0xb8252f);break;}case _0x114d3[_0xb0cff4(0x170)]:{_0x23ae11=_0x56e9d2(_0x5711d5,_0xb8252f);break;}case _0x114d3['InsertRangeMoveRightCommandId']:{_0x23ae11=_0x24380d(_0x5711d5,_0xb8252f);break;}case _0x114d3['InsertRowCommandId']:{_0x23ae11=_0x26c1a0(_0x5711d5,_0xb8252f);break;}case _0x114d3[_0xb0cff4(0x166)]:{_0x23ae11=_0x1f2d01(_0x5711d5,_0xb8252f);break;}case _0x114d3[_0xb0cff4(0x1cc)]:{_0x23ae11=_0x3fee0c(_0x5711d5,_0xb8252f);break;}case _0x114d3['RemoveRowCommandId']:{_0x23ae11=_0x442d3c(_0x5711d5,_0xb8252f);break;}}const _0x4a33c9=_0x3367c1(_0x23ae11,_0xb8252f),_0xc45237=this[_0xb0cff4(0x344)][_0xb0cff4(0x1a4)](_0x40bf88);if(_0xc45237&&_0x4a33c9){const _0x45aa0f={..._0xc45237,'range':_0x4a33c9};this[_0xb0cff4(0x344)][_0xb0cff4(0x165)](_0x40bf88,_0x45aa0f),_0x37e284(()=>{const _0x55feb5=_0xb0cff4,_0x4b31c3=this['_refRangeService'][_0x55feb5(0x35c)](_0x4a33c9,_0x3dcc31=>(_0x4b31c3[_0x55feb5(0x2cf)](),_0x523afb(_0x3dcc31,_0x40bf88,_0xc1c214,_0x4a33c9)));_0x508b61[_0x55feb5(0x191)](_0x4b31c3);});}return{'redos':[],'undos':[]};};this[_0x135063(0x344)][_0x135063(0x136)]((_0x329e1e,_0x27dedf)=>{const _0x474f25=_0x135063,{range:_0x3f2ab5,sheetID:_0x30eba8}=_0x329e1e,_0x470991=this['_refRangeService'][_0x474f25(0x35c)](_0x3f2ab5,_0x2a772e=>(_0x470991[_0x474f25(0x2cf)](),_0x523afb(_0x2a772e,_0x27dedf,_0x30eba8,_0x3f2ab5)));_0x508b61[_0x474f25(0x191)](_0x470991);});};this[_0x48fdc2(0x1b6)](_0x5684e2(this[_0x48fdc2(0x2eb)][_0x48fdc2(0x150)](()=>{_0x4b650f();})));}['_toggleOnline'](){const _0x4cec69=_0x2d19ee;var _0x592465,_0x47c51b;if(this[_0x4cec69(0x2a1)]=!0x0,((_0x592465=this[_0x4cec69(0x17f)][_0x4cec69(0x17b)]())==null?void 0x0:_0x592465[_0x4cec69(0x377)]())!==this[_0x4cec69(0x369)])return;const _0x7b379c=(_0x47c51b=this[_0x4cec69(0x2b2)][_0x4cec69(0x1a4)](_0x47686c)['getCurrentSelections']())==null?void 0x0:_0x47c51b[0x0],_0x4628e5=this['_univerInstanceService'][_0x4cec69(0x2ca)](_0x1de887[_0x4cec69(0x225)])['getActiveSheet']();_0x7b379c&&_0x4628e5&&this[_0x4cec69(0x2bf)](_0x4628e5['getSheetId'](),_0x7b379c);}[_0x2d19ee(0x1bc)](){this['_online']=!0x1;}};Be=Bi([B(0x2,_0x13e3c7(_0x6717c8)),B(0x3,_0x13e3c7(Ke)),B(0x4,_0x13e3c7(_0x50cc3e)),B(0x5,_0x5ea64d),B(0x6,_0x44deef),B(0x7,_0x13e3c7(_0x14edcb))],Be);var Yi=Object[_0x2d19ee(0x2a7)],Wi=(_0x2230c9,_0x5ba5ee,_0x15af10,_0x307dc9)=>{for(var _0x65d638=_0x307dc9>0x1?void 0x0:_0x307dc9?Yi(_0x5ba5ee,_0x15af10):_0x5ba5ee,_0x202282=_0x2230c9['length']-0x1,_0x266195;_0x202282>=0x0;_0x202282--)(_0x266195=_0x2230c9[_0x202282])&&(_0x65d638=_0x266195(_0x65d638)||_0x65d638);return _0x65d638;},Ce=(_0x5d140c,_0x4609b8)=>(_0x5b3e82,_0x21e5d4)=>_0x4609b8(_0x5b3e82,_0x21e5d4,_0x5d140c);let H=class extends _0x5b8c04{constructor(_0x2e6ff5,_0x302f3b,_0x2ce10a){const _0x2dff79=_0x2d19ee;super(),_(this,_0x2dff79(0x363),new Map()),_(this,_0x2dff79(0x28d),new _0x233e98()),(this[_0x2dff79(0x17f)]=_0x2e6ff5,this[_0x2dff79(0x2b2)]=_0x302f3b,this['_collabSessionService']=_0x2ce10a,this['_init']());}[_0x2d19ee(0x2cf)](){const _0x7195e=_0x2d19ee;super[_0x7195e(0x2cf)](),this[_0x7195e(0x28d)]['complete'](),this['_entities'][_0x7195e(0x136)](_0x4a3277=>_0x4a3277['dispose']());}[_0x2d19ee(0x2f9)](_0x1bb188){const _0x389de4=_0x2d19ee;return this[_0x389de4(0x363)][_0x389de4(0x230)](_0x1bb188)?this['_entities']['get'](_0x1bb188)['cursorInfo$']:this['_entityInit$'][_0x389de4(0x359)](_0x2dc8e8(_0x206cc0=>_0x206cc0[_0x389de4(0x369)]===_0x1bb188),_0x1650bc(_0x304fcf=>_0x304fcf[_0x389de4(0x2a9)]));}[_0x2d19ee(0x1e9)](){const _0xa15a0d=_0x2d19ee;this[_0xa15a0d(0x17f)][_0xa15a0d(0x2c1)](_0x1de887[_0xa15a0d(0x225)])[_0xa15a0d(0x359)](_0xefe94(this[_0xa15a0d(0x339)]))[_0xa15a0d(0x150)](async _0x482401=>{const _0x3a47de=_0xa15a0d,_0x3ec035=_0x482401[_0x3a47de(0x377)](),_0x5b27f6=await this[_0x3a47de(0x248)](_0x3ec035);this[_0x3a47de(0x28d)]['next'](_0x5b27f6),this[_0x3a47de(0x363)][_0x3a47de(0x165)](_0x3ec035,_0x5b27f6);}),this[_0xa15a0d(0x17f)]['getTypeOfUnitAdded$'](_0x1de887[_0xa15a0d(0x319)])['pipe'](_0xefe94(this[_0xa15a0d(0x339)]))[_0xa15a0d(0x359)](_0x2dc8e8(_0x4f3306=>!_0x4f3306[_0xa15a0d(0x377)]()[_0xa15a0d(0x27a)]('__')))[_0xa15a0d(0x150)](async _0x2e18c9=>{const _0x362252=_0xa15a0d,_0x26ef0a=_0x2e18c9[_0x362252(0x377)](),_0x3f06a0=await this[_0x362252(0x22a)](_0x26ef0a);this[_0x362252(0x28d)][_0x362252(0x1a9)](_0x3f06a0),this[_0x362252(0x363)][_0x362252(0x165)](_0x26ef0a,_0x3f06a0);}),_0x2a4316(this[_0xa15a0d(0x17f)]['getTypeOfUnitDisposed$'](_0x1de887[_0xa15a0d(0x319)]),this[_0xa15a0d(0x17f)]['getTypeOfUnitDisposed$'](_0x1de887[_0xa15a0d(0x225)]))[_0xa15a0d(0x359)](_0xefe94(this[_0xa15a0d(0x339)]))[_0xa15a0d(0x150)](_0x23b95b=>{const _0x573111=_0xa15a0d,_0x56aa8c=_0x23b95b['getUnitId'](),_0x215f85=this[_0x573111(0x363)]['get'](_0x56aa8c);_0x215f85&&(_0x215f85['dispose'](),this[_0x573111(0x363)][_0x573111(0x20a)](_0x56aa8c));});}async[_0x2d19ee(0x248)](_0x3c45e3){const _0x580598=_0x2d19ee,_0xc101a8=await this[_0x580598(0x1da)][_0x580598(0x187)](_0x3c45e3),_0x2ed9e7=this[_0x580598(0x2b2)]['createInstance'](Be,_0x3c45e3,_0xc101a8);return _0x2ed9e7[_0x580598(0x155)](),_0x2ed9e7;}async[_0x2d19ee(0x22a)](_0x340172){const _0x1a720b=_0x2d19ee,_0x2ceea0=await this[_0x1a720b(0x1da)]['requireSession'](_0x340172),_0x2c134d=this[_0x1a720b(0x2b2)][_0x1a720b(0x188)](xe,_0x340172,_0x2ceea0);return _0x2c134d[_0x1a720b(0x155)](),_0x2c134d;}};H=Wi([Ce(0x0,_0x5ea64d),Ce(0x1,_0x13e3c7(_0x6717c8)),Ce(0x2,_0x13e3c7(_0x431e53))],H);const Q=0x14,at=0xc8,Re=0x4,Vi=0x5;function ji(_0x435398,_0x31ee6a){const _0x489edb=_0x2d19ee;let {radius:_0x4da5d7,width:_0x5b2dd5,height:_0x59c3d5}=_0x31ee6a;_0x4da5d7=_0x4da5d7!=null?_0x4da5d7:0x0,_0x5b2dd5=_0x5b2dd5!=null?_0x5b2dd5:0x1e,_0x59c3d5=_0x59c3d5!=null?_0x59c3d5:0x1e;let _0x177617=0x0,_0x2c64c0=0x0,_0x36a1f9=0x0;_0x177617=_0x2c64c0=_0x36a1f9=Math[_0x489edb(0x30d)](_0x4da5d7,_0x5b2dd5/0x2,_0x59c3d5/0x2),_0x435398[_0x489edb(0x217)](),_0x435398[_0x489edb(0x1dc)](_0x177617,0x0),_0x435398[_0x489edb(0x348)](_0x5b2dd5-_0x2c64c0,0x0),_0x435398[_0x489edb(0x2aa)](_0x5b2dd5-_0x2c64c0,_0x2c64c0,_0x2c64c0,Math['PI']*0x3/0x2,0x0,!0x1),_0x435398[_0x489edb(0x348)](_0x5b2dd5,_0x59c3d5-_0x36a1f9),_0x435398['arc'](_0x5b2dd5-_0x36a1f9,_0x59c3d5-_0x36a1f9,_0x36a1f9,0x0,Math['PI']/0x2,!0x1),_0x435398[_0x489edb(0x348)](0x0,_0x59c3d5),_0x435398['lineTo'](0x0,_0x177617),_0x435398[_0x489edb(0x2aa)](_0x177617,_0x177617,_0x177617,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x435398['closePath'](),_0x31ee6a[_0x489edb(0x1be)]&&(_0x435398[_0x489edb(0x2b3)](),_0x435398[_0x489edb(0x281)]=_0x31ee6a[_0x489edb(0x1be)],_0x31ee6a[_0x489edb(0x366)]===_0x489edb(0x157)?_0x435398[_0x489edb(0x1be)]('evenodd'):_0x435398['fill'](),_0x435398['restore']());}class ve extends _0x5dc12a{constructor(_0x58343c,_0x23b311){const _0x5210d5=_0x2d19ee;super(_0x58343c,_0x23b311),_(this,_0x5210d5(0x201)),_(this,_0x5210d5(0x365)),(this[_0x5210d5(0x201)]=_0x23b311==null?void 0x0:_0x23b311[_0x5210d5(0x201)],this[_0x5210d5(0x365)]=_0x23b311==null?void 0x0:_0x23b311[_0x5210d5(0x365)]);}static[_0x2d19ee(0x25c)](_0x436f37,_0x230041){const _0x2c7688=_0x2d19ee,{text:_0x23478c,color:_0x138bc8}=_0x230041;_0x436f37['save'](),_0x436f37[_0x2c7688(0x1f2)]=_0x2c7688(0x139);const _0x50045f=_0x436f37[_0x2c7688(0x1fb)](_0x23478c)[_0x2c7688(0x199)],_0xd93d5e=Math[_0x2c7688(0x30d)](_0x50045f+0x2*Re,at);ji(_0x436f37,{'height':Q,'radius':0x4,'width':_0xd93d5e,'fill':_0x138bc8}),_0x436f37['fillStyle']=_0x2c7688(0x19a);const _0x1d6384=Re,_0x3745b9=Q-Vi,_0x206ece=at-0x2*Re;if(_0x50045f>_0x206ece){let _0x4d38e5='',_0x201c15=0x0;for(const _0x212515 of _0x23478c){const _0x4be244=_0x436f37['measureText'](_0x212515)['width'];if(_0x201c15+_0x4be244<=_0x206ece-_0x436f37[_0x2c7688(0x1fb)](_0x2c7688(0x32b))[_0x2c7688(0x199)])_0x4d38e5+=_0x212515,_0x201c15+=_0x4be244;else{_0x4d38e5+=_0x2c7688(0x32b);break;}}_0x436f37[_0x2c7688(0x1b5)](_0x4d38e5,_0x1d6384,_0x3745b9);}else _0x436f37[_0x2c7688(0x1b5)](_0x23478c,_0x1d6384,_0x3745b9);_0x436f37[_0x2c7688(0x312)]();}[_0x2d19ee(0x28f)](_0x193441){const _0x555454=_0x2d19ee;ve[_0x555454(0x25c)](_0x193441,this);}}const De=_0x2d19ee(0x271),Xi='collab-text-range-',Gi=_0x2d19ee(0x293),z=0x6,Ki=1.5,Ne=0x4,zi=1.5,Ji=_0x2d19ee(0x152);class ct{constructor(_0x270024,_0x4202cb,_0x1c73ac,_0x30fce4){const _0x43d2d2=_0x2d19ee;_(this,_0x43d2d2(0x25f),[]),_(this,'_anchor',null),_(this,'_textBubble',null),_(this,_0x43d2d2(0x2e0),null),_(this,_0x43d2d2(0x334),null),_(this,_0x43d2d2(0x1cf),null),(this[_0x43d2d2(0x1fe)]=_0x270024,this[_0x43d2d2(0x27f)]=_0x4202cb,this[_0x43d2d2(0x243)]=_0x1c73ac,this[_0x43d2d2(0x2db)]=_0x30fce4,this[_0x43d2d2(0x2d9)]());}set[_0x2d19ee(0x207)](_0xd57d16){const _0x1be557=_0x2d19ee;_0xd57d16?(this[_0x1be557(0x2e0)]&&this[_0x1be557(0x2e0)][_0x1be557(0x160)](),this['_textBubble']&&this[_0x1be557(0x21c)][_0x1be557(0x14b)]()):(this[_0x1be557(0x2e0)]&&this[_0x1be557(0x2e0)][_0x1be557(0x14b)](),this[_0x1be557(0x21c)]&&this[_0x1be557(0x21c)][_0x1be557(0x160)]());}[_0x2d19ee(0x2cf)](){const _0x450f87=_0x2d19ee;for(const _0x59f490 of this[_0x450f87(0x25f)])_0x59f490[_0x450f87(0x2cf)]();this['_textBubble']&&this['_textBubble'][_0x450f87(0x2cf)](),this['_anchorDot']&&this[_0x450f87(0x2e0)][_0x450f87(0x2cf)](),this[_0x450f87(0x1a2)]&&this[_0x450f87(0x1a2)]['dispose'](),this[_0x450f87(0x1cf)]&&this[_0x450f87(0x1cf)]();}[_0x2d19ee(0x2d9)](){const _0x1cca05=_0x2d19ee;var _0x19790e;const {_docSkeleton:_0x4930d9,_document:_0x1d0410}=this,{color:_0x1065cd,name:_0x27dadd,ranges:_0xcaaa52}=this[_0x1cca05(0x1fe)],_0x3cde1=_0x1d0410['getOffsetConfig'](),{docsLeft:_0xd0cb04,docsTop:_0x495fba}=_0x3cde1,_0x4de46e=new _0x10e74e(_0x3cde1,_0x4930d9);for(const {startOffset:_0x2d8b0f,endOffset:_0x411061,rangeType:_0x44b6a0,segmentId:_0x41208a,segmentPage:_0x136331,collapsed:_0x194116,isActive:_0x56c903}of _0xcaaa52){const _0x2b8bba=_0x4930d9['findNodePositionByCharIndex'](_0x2d8b0f,!0x0,_0x41208a,_0x136331);let _0x5be889=_0x4930d9['findNodePositionByCharIndex'](_0x411061,!0x0,_0x41208a,_0x136331);if(_0x5be889==null&&(_0x5be889=_0x4930d9[_0x1cca05(0x36d)](_0x411061-0x1,!0x1,_0x41208a,_0x136331)),_0x56c903){const {contentBoxPointGroup:_0x27664b}=_0x4de46e[_0x1cca05(0x161)](_0x5be889,_0x5be889);if(_0x27664b[_0x1cca05(0x375)]===0x0)continue;this[_0x1cca05(0x28c)](_0x1065cd,_0x27664b,_0xd0cb04,_0x495fba,_0x27dadd),this[_0x1cca05(0x1cf)]=this[_0x1cca05(0x215)]();}if(_0x2b8bba&&_0x5be889){if(_0x44b6a0===_0x18a061['RECT']){const _0x117d14=new _0x2997cf(_0x3cde1,_0x4930d9),{pointGroup:_0x1f6593}=(_0x19790e=_0x117d14['getRangePointData'](_0x2b8bba,_0x5be889))!=null?_0x19790e:{};if(_0x1f6593==null||_0x1f6593[_0x1cca05(0x375)]===0x0)continue;this[_0x1cca05(0x221)](_0x1065cd,_0x1f6593,_0xd0cb04,_0x495fba);}else{if(!_0x194116){const {borderBoxPointGroup:_0x445fa9}=_0x4de46e['getRangePointData'](_0x2b8bba,_0x5be889);if(_0x445fa9[_0x1cca05(0x375)]===0x0)continue;this[_0x1cca05(0x33d)](_0x1065cd,_0x445fa9,_0xd0cb04,_0x495fba);}}}}}[_0x2d19ee(0x28c)](_0x1230a9,_0x4afd4a,_0x4c163b,_0x4a110d,_0x54d55c){const _0x2a7e89=_0x2d19ee,_0x223758=this['_getAnchorBounding'](_0x4afd4a),{left:_0x39f21b,top:_0x43f7de,height:_0x2064d2}=_0x223758,_0x49e021=this[_0x2a7e89(0x1d7)](),_0x31c893=zi/_0x49e021,_0x391e37=new _0x2bdd35(De+_0x377b4b(z),{'left':_0x39f21b+_0x4c163b-_0x31c893,'top':_0x43f7de+_0x4a110d,'height':_0x2064d2,'width':Ki,'fill':_0x1230a9||_0x4c407c(_0x2aff34[_0x2a7e89(0x138)],0x0),'strokeWidth':_0x31c893,'stroke':Ji,'evented':!0x0});this[_0x2a7e89(0x1a2)]=_0x391e37,this[_0x2a7e89(0x27f)][_0x2a7e89(0x21d)](_0x391e37,_0x978a3f);const _0x4737e1=new _0x2bdd35(De+_0x377b4b(z),{'left':_0x39f21b+_0x4c163b-_0x31c893,'top':_0x43f7de+_0x4a110d-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x1230a9||_0x4c407c(_0x2aff34[_0x2a7e89(0x138)],0x0),'strokeWidth':0x0,'stroke':_0x1230a9||_0x4c407c(_0x2aff34[_0x2a7e89(0x138)],0x0),'evented':!0x1});this[_0x2a7e89(0x2e0)]=_0x4737e1,this[_0x2a7e89(0x27f)][_0x2a7e89(0x21d)](_0x4737e1,_0x978a3f);const _0x13490a=new ve(De+_0x377b4b(z),{'left':_0x39f21b+_0x4c163b-_0x31c893,'top':_0x43f7de+_0x4a110d-Q,'text':_0x54d55c,'color':_0x1230a9});this[_0x2a7e89(0x21c)]=_0x13490a,this[_0x2a7e89(0x27f)][_0x2a7e89(0x21d)](_0x13490a,_0x978a3f),this[_0x2a7e89(0x207)]=!0x1;}[_0x2d19ee(0x215)](){const _0x84acf=_0x2d19ee,_0x5ab53e=this[_0x84acf(0x1a2)][_0x84acf(0x17d)][_0x84acf(0x283)](()=>{const _0x424dad=_0x84acf;this[_0x424dad(0x207)]=!0x0;}),_0x5f0285=this['_anchor'][_0x84acf(0x249)][_0x84acf(0x283)](()=>{const _0x371626=_0x84acf;this[_0x371626(0x334)]&&clearTimeout(this[_0x371626(0x334)]),this[_0x371626(0x334)]=setTimeout(()=>{const _0x2e8654=_0x371626;this[_0x2e8654(0x207)]=!0x1;},0x7d0);});return()=>{const _0x5f3681=_0x84acf;_0x5ab53e['unsubscribe'](),_0x5f0285[_0x5f3681(0x16b)]();};}[_0x2d19ee(0x33d)](_0x2a97a6,_0x1c1457,_0x2d3dd5,_0x541528){const _0x368a24=_0x2d19ee,_0x27921d=new _0x44158f(_0x2a97a6)[_0x368a24(0x330)](0.2)[_0x368a24(0x1ae)](),_0x2282ac=new _0x36ecd6(Xi+_0x377b4b(z),{'pointsGroup':_0x1c1457,'fill':_0x27921d||_0x4c407c(_0x2aff34[_0x368a24(0x138)],0.2),'left':_0x2d3dd5,'top':_0x541528,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x368a24(0x25f)][_0x368a24(0x1bb)](_0x2282ac),this[_0x368a24(0x27f)][_0x368a24(0x21d)](_0x2282ac,_0x978a3f);}['_drawRectRange'](_0x4702e7,_0x3f59c7,_0x2cdca6,_0x4717e5){const _0x836b90=_0x2d19ee,_0x1bca27=new _0x44158f(_0x4702e7)[_0x836b90(0x330)](0.2)['toRgbString'](),_0x2f02fa=new _0x36ecd6(Gi+_0x377b4b(z),{'pointsGroup':_0x3f59c7,'fill':_0x1bca27||_0x4c407c(_0x2aff34[_0x836b90(0x138)],0.2),'left':_0x2cdca6,'top':_0x4717e5,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x836b90(0x25f)]['push'](_0x2f02fa),this[_0x836b90(0x27f)][_0x836b90(0x21d)](_0x2f02fa,_0x978a3f);}[_0x2d19ee(0x23d)](_0x227d7b){const _0x322bb8=_0x227d7b[0x0],_0x537dd4=_0x322bb8[0x0],_0x4f5d8b=_0x322bb8[0x2],{x:_0x459062,y:_0x3a3901}=_0x537dd4,{x:_0x2e587d,y:_0x41b618}=_0x4f5d8b;return{'left':_0x459062,'top':_0x3a3901,'width':_0x2e587d-_0x459062,'height':_0x41b618-_0x3a3901};}[_0x2d19ee(0x1d7)](){const _0x207ad8=_0x2d19ee,{scaleX:_0x366471,scaleY:_0x5f4e42}=this['_scene'][_0x207ad8(0x224)]();return Math[_0x207ad8(0x1db)](_0x366471,_0x5f4e42);}}var Zi=Object[_0x2d19ee(0x2a7)],Qi=(_0x278a75,_0xc9b7a5,_0x156cb7,_0x28ee21)=>{const _0x20170e=_0x2d19ee;for(var _0x15ed83=_0x28ee21>0x1?void 0x0:_0x28ee21?Zi(_0xc9b7a5,_0x156cb7):_0xc9b7a5,_0x1aa9da=_0x278a75[_0x20170e(0x375)]-0x1,_0x281ee5;_0x1aa9da>=0x0;_0x1aa9da--)(_0x281ee5=_0x278a75[_0x1aa9da])&&(_0x15ed83=_0x281ee5(_0x15ed83)||_0x15ed83);return _0x15ed83;},ie=(_0x20698e,_0x8f20a8)=>(_0x4881a3,_0x280581)=>_0x8f20a8(_0x4881a3,_0x280581,_0x20698e);let Fe=class extends _0x5b8c04{constructor(_0x3e42a9,_0x3030dc,_0x43e6a9,_0x52f39a,_0x2fe8a8){const _0x71dcbf=_0x2d19ee;super(),_(this,_0x71dcbf(0x28b),[]),_(this,_0x71dcbf(0x1af),[]),(this[_0x71dcbf(0x37e)]=_0x3e42a9,this[_0x71dcbf(0x336)]=_0x3030dc,this['_collabCursorController']=_0x43e6a9,this[_0x71dcbf(0x162)]=_0x52f39a,this[_0x71dcbf(0x18f)]=_0x2fe8a8,this['_init']());}[_0x2d19ee(0x1e9)](){const _0x5c332c=_0x2d19ee,_0x4e5312=this[_0x5c332c(0x37e)][_0x5c332c(0x352)],_0x55e84a=this['_docSkeletonManagerService'];this[_0x5c332c(0x1b6)](_0x383e72([this[_0x5c332c(0x1e1)][_0x5c332c(0x2f9)](_0x4e5312),this['_themeService']['currentTheme$']])[_0x5c332c(0x359)](_0x4406a1(([_0x5a95ef,_0x45aa4c])=>({'skeleton':_0x55e84a['getSkeleton'](),'cursors':[..._0x5a95ef[_0x5c332c(0x31f)]()][_0x5c332c(0x1c9)](_0x15e2e6=>({..._0x15e2e6,'color':this[_0x5c332c(0x18f)][_0x5c332c(0x2a4)](_0x15e2e6['color'])}))})))[_0x5c332c(0x150)](_0x550d6c=>{const _0x585e47=_0x5c332c;if(this[_0x585e47(0x367)](),_0x550d6c){const {skeleton:_0x5908db,cursors:_0x441c73}=_0x550d6c;this[_0x585e47(0x252)](_0x5908db,_0x441c73);}})),this[_0x5c332c(0x37f)](),this[_0x5c332c(0x222)]();}[_0x2d19ee(0x252)](_0x2a0cf2,_0x31c3a5){const _0x1f9bc9=_0x2d19ee,{scene:_0x567b40,mainComponent:_0x2c5253}=this[_0x1f9bc9(0x37e)],_0x2af5d2=_0x31c3a5['map'](_0x57d194=>new ct(_0x57d194,_0x567b40,_0x2a0cf2,_0x2c5253));this['_cursorShapes']=_0x2af5d2,this[_0x1f9bc9(0x1af)]=_0x31c3a5;}[_0x2d19ee(0x1de)](){const _0x149397=_0x2d19ee;this['_removeCollabCursors']();const {scene:_0x44211a,mainComponent:_0x3c13af}=this[_0x149397(0x37e)],_0xdace4a=this[_0x149397(0x336)][_0x149397(0x364)](),_0x27acf5=this[_0x149397(0x1af)][_0x149397(0x350)](_0x448c02=>new ct(_0x448c02,_0x44211a,_0xdace4a,_0x3c13af));this[_0x149397(0x28b)]=_0x27acf5;}[_0x2d19ee(0x367)](){const _0x4d019c=_0x2d19ee;this[_0x4d019c(0x28b)][_0x4d019c(0x136)](_0x27de62=>_0x27de62['dispose']()),this[_0x4d019c(0x28b)]=[];}[_0x2d19ee(0x222)](){const _0x2f10e=_0x2d19ee,_0x4b209e=[_0x2d8f9a['id']];this[_0x2f10e(0x1b6)](this[_0x2f10e(0x162)][_0x2f10e(0x21e)](_0x50b433=>{const _0x4012c7=_0x2f10e;_0x4b209e[_0x4012c7(0x329)](_0x50b433['id'])&&_0x50b433[_0x4012c7(0x19b)][_0x4012c7(0x352)]===this[_0x4012c7(0x37e)][_0x4012c7(0x352)]&&this[_0x4012c7(0x1de)]();}));}[_0x2d19ee(0x37f)](){const _0xc17909=_0x2d19ee;this[_0xc17909(0x1b6)](_0x5b2081(this[_0xc17909(0x37e)]['engine'][_0xc17909(0x2c2)])[_0xc17909(0x359)](_0x53c322(_0x47198c=>_0x47198c[_0xc17909(0x164)]===_0x5e28be[_0xc17909(0x299)]),_0x42dfe3(0x10))[_0xc17909(0x150)](()=>{this['_refreshCollabCursors']();}));}};Fe=Qi([ie(0x1,_0x13e3c7(_0x1ccfa7)),ie(0x2,_0x13e3c7(H)),ie(0x3,_0x44deef),ie(0x4,_0x13e3c7(_0x1331d6))],Fe);const qi=0x1,en=1.5;class tn extends _0x5dc12a{constructor(_0x12cbf3,_0x2f9888){const _0x583f39=_0x2d19ee;super(_0x12cbf3,_0x2f9888),_(this,'_color'),_(this,'_hovered',!0x1),_(this,_0x583f39(0x30f)),_(this,_0x583f39(0x2e1),''),_(this,_0x583f39(0x368),_0x583f39(0x34a)),_(this,'_backgroundColor'),(_0x2f9888&&this[_0x583f39(0x19d)](_0x2f9888),this[_0x583f39(0x17d)][_0x583f39(0x283)](()=>this[_0x583f39(0x19d)]({'hovered':!0x0})),this[_0x583f39(0x249)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x2d19ee(0x19d)](_0x125eb5){const _0x3de449=_0x2d19ee;var _0x4250f4,_0x1be2af,_0x2bffea,_0x52fe26,_0x430196,_0x567229;this[_0x3de449(0x144)]=(_0x4250f4=_0x125eb5[_0x3de449(0x201)])!=null?_0x4250f4:this['_color'],this[_0x3de449(0x218)]=(_0x1be2af=_0x125eb5['hovered'])!=null?_0x1be2af:this[_0x3de449(0x218)],this['_range']=(_0x2bffea=_0x125eb5[_0x3de449(0x186)])!=null?_0x2bffea:this['_range'],this[_0x3de449(0x2e1)]=(_0x52fe26=_0x125eb5[_0x3de449(0x28a)])!=null?_0x52fe26:this[_0x3de449(0x2e1)],this[_0x3de449(0x368)]=(_0x430196=_0x125eb5[_0x3de449(0x175)])!=null?_0x430196:this[_0x3de449(0x368)],this[_0x3de449(0x181)]=(_0x567229=_0x125eb5[_0x3de449(0x276)])!=null?_0x567229:this['_backgroundColor'],this[_0x3de449(0x131)]({'width':_0x125eb5[_0x3de449(0x199)],'height':_0x125eb5['height']});}[_0x2d19ee(0x35f)](_0x499b2a){const _0x437eea=_0x2d19ee,{row:_0x4da585,column:_0x32568f}=_0x499b2a;if(_0x4da585>=this['_range'][_0x437eea(0x163)]&&_0x4da585<=this['_range'][_0x437eea(0x355)]&&_0x32568f>=this[_0x437eea(0x30f)][_0x437eea(0x309)]&&_0x32568f<=this[_0x437eea(0x30f)][_0x437eea(0x35e)]){this[_0x437eea(0x19d)]({'hovered':!0x0});return;}this[_0x437eea(0x19d)]({'hovered':!0x1});}[_0x2d19ee(0x302)](_0x4f8135){return!0x1;}[_0x2d19ee(0x28f)](_0x4545b3){const _0x1b316b=_0x2d19ee;_0x2bdd35[_0x1b316b(0x25c)](_0x4545b3,{'width':this[_0x1b316b(0x199)],'height':this[_0x1b316b(0x1ad)],'strokeWidth':en,'stroke':this[_0x1b316b(0x144)],'evented':!0x1,'fill':this[_0x1b316b(0x181)]}),this[_0x1b316b(0x218)]&&(_0x4545b3['save'](),_0x4545b3[_0x1b316b(0x251)](0x1,0x0,0x0,0x1,this['width'],this[_0x1b316b(0x368)]===_0x1b316b(0x2ac)?0x0:-Q),ve[_0x1b316b(0x25c)](_0x4545b3,{'text':this['_name'],'color':this['_color']}),_0x4545b3[_0x1b316b(0x312)]());}}var sn=Object[_0x2d19ee(0x2a7)],nn=(_0x519af5,_0x4dbca8,_0x4c928d,_0x20660b)=>{const _0x2c84c4=_0x2d19ee;for(var _0x35ff53=_0x20660b>0x1?void 0x0:_0x20660b?sn(_0x4dbca8,_0x4c928d):_0x4dbca8,_0x4d1219=_0x519af5[_0x2c84c4(0x375)]-0x1,_0x5b0742;_0x4d1219>=0x0;_0x4d1219--)(_0x5b0742=_0x519af5[_0x4d1219])&&(_0x35ff53=_0x5b0742(_0x35ff53)||_0x35ff53);return _0x35ff53;},be=(_0x1b03ea,_0x43f626)=>(_0x228205,_0x357827)=>_0x43f626(_0x228205,_0x357827,_0x1b03ea);const rn=0x1389;let ke=class extends _0x5b8c04{constructor(_0x16b685,_0x1f6949,_0x2a1a93,_0x179ca4){const _0x5cbb9f=_0x2d19ee;super(),_(this,_0x5cbb9f(0x1af),new Set()),_(this,_0x5cbb9f(0x1d1),null),(this[_0x5cbb9f(0x37e)]=_0x16b685,this[_0x5cbb9f(0x360)]=_0x1f6949,this[_0x5cbb9f(0x1e1)]=_0x2a1a93,this[_0x5cbb9f(0x18f)]=_0x179ca4,this[_0x5cbb9f(0x1e9)]());}['_init'](){const _0x5c921b=_0x2d19ee;this[_0x5c921b(0x360)]['currentSkeleton$'][_0x5c921b(0x359)](_0xb23e26(this['dispose$']),_0x2c4106(_0x5ea8e1=>{const _0x4a3bad=_0x5c921b;if(_0x5ea8e1){const _0x2bd179=_0x5ea8e1[_0x4a3bad(0x1f8)];return _0x383e72(this['_collabCursorController'][_0x4a3bad(0x2f9)](this[_0x4a3bad(0x37e)]['unitId']),this[_0x4a3bad(0x18f)][_0x4a3bad(0x33e)])[_0x4a3bad(0x359)](_0x4406a1(([_0x535f85,_0x121946])=>{const _0x3853e8=_0x4a3bad,_0x3cf1e7=new Map();return _0x535f85[_0x3853e8(0x136)]((_0x4b5fa,_0x3d290b)=>{const _0x27be4f=_0x3853e8;if(_0x4b5fa['sheetID']===_0x2bd179){const _0x24d100={..._0x4b5fa};_0x24d100[_0x27be4f(0x201)]=this[_0x27be4f(0x18f)][_0x27be4f(0x2a4)](_0x4b5fa[_0x27be4f(0x201)]),_0x3cf1e7[_0x27be4f(0x165)](_0x3d290b,_0x24d100);}}),{'skeleton':_0x5ea8e1,'cursors':_0x3cf1e7};}));}return _0x272a51({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x59f426,cursors:_0x1c917b})=>{const _0x106434=_0x5c921b;this['_removeCollabCursors'](),_0x59f426&&this[_0x106434(0x252)](_0x59f426,_0x1c917b);}),this['_sheetSkeletonManagerService'][_0x5c921b(0x1e8)][_0x5c921b(0x150)](_0x46b480=>{const _0x46ee44=_0x5c921b;if(_0x46b480==null)return;const {skeleton:_0x50ee39}=_0x46b480,{scene:_0x55114d}=this[_0x46ee44(0x37e)];_0x55114d['onPointerMove$'][_0x46ee44(0x283)](_0x1b4ae8(_0xbc0ad8=>{const _0xc583a5=_0x46ee44;var _0x573844,_0xdf07;const {offsetX:_0x3dbc63,offsetY:_0x1727d4}=_0xbc0ad8,{x:_0xcc8b54,y:_0x5627d3}=_0x55114d[_0xc583a5(0x23c)](_0x59221c['FromArray']([_0x3dbc63,_0x1727d4])),{scaleX:_0x48c0d6,scaleY:_0x15a8c9}=_0x55114d[_0xc583a5(0x224)](),_0x31afd2=_0x55114d[_0xc583a5(0x1c7)](_0x29367b[_0xc583a5(0x241)]),_0xa67a49=_0x55114d[_0xc583a5(0x32d)](_0x59221c[_0xc583a5(0x2b8)]([_0xcc8b54,_0x5627d3]),_0x31afd2),_0x4cd172=_0x50ee39[_0xc583a5(0x1ab)](_0x3dbc63,_0x1727d4,_0x48c0d6,_0x15a8c9,_0xa67a49);((_0x573844=this[_0xc583a5(0x1d1)])==null?void 0x0:_0x573844[_0xc583a5(0x2df)])===_0x4cd172[_0xc583a5(0x2df)]&&((_0xdf07=this[_0xc583a5(0x1d1)])==null?void 0x0:_0xdf07[_0xc583a5(0x317)])===_0x4cd172[_0xc583a5(0x317)]||this[_0xc583a5(0x1af)][_0xc583a5(0x136)](_0x568431=>{const _0x56e8ee=_0xc583a5;_0x568431[_0x56e8ee(0x35f)](_0x4cd172);});},0x64));});}[_0x2d19ee(0x252)](_0x451145,_0x45f7d9){const _0x3193d2=_0x2d19ee;var _0x1f3a99;const _0xdc991f=(_0x1f3a99=this[_0x3193d2(0x360)][_0x3193d2(0x280)]())==null?void 0x0:_0x1f3a99['skeleton'];if(!_0xdc991f)return;const _0x5dc77c=this[_0x3193d2(0x247)]();if(!_0x5dc77c)return;this[_0x3193d2(0x1af)][_0x3193d2(0x136)](_0x25f643=>{const _0x53f93d=_0x3193d2;_0x25f643[_0x53f93d(0x193)]();});const {scene:_0x41c697}=_0x5dc77c,_0x4cce11=on(Array[_0x3193d2(0x292)](_0x45f7d9[_0x3193d2(0x31f)]()))[_0x3193d2(0x350)](_0x58a5db=>{const _0x34f3cf=_0x3193d2,{color:_0x53ed5d,range:_0x10740f,name:_0x5cbfca,selection:_0x4ed6f8,sheetID:_0x3ea561}=_0x58a5db,{startColumn:_0x27b076,startRow:_0x3984fb,endColumn:_0xcd0d18,endRow:_0x467c29}=_0x10740f,_0x383ba6=_0x412d35(_0x3984fb,_0x27b076,_0x41c697,_0xdc991f),_0x4a707f=_0x412d35(_0x467c29,_0xcd0d18,_0x41c697,_0xdc991f),{columnHeaderHeightAndMarginTop:_0x1875e}=_0xdc991f,{startX:_0x53353b,startY:_0x448d9f}=_0x383ba6,{endX:_0x255179,endY:_0x4b6a84}=_0x4a707f,_0xc7d594=_0x255179-_0x53353b,_0x5cc2eb=_0x4b6a84-_0x448d9f,_0x398ff4={'labelPosition':_0x448d9f-_0x1875e>=Q?_0x34f3cf(0x34a):_0x34f3cf(0x2ac),'sheetID':_0x3ea561,'range':_0x10740f,'color':_0x53ed5d,'name':_0x5cbfca,'selection':_0x4ed6f8,'left':_0x53353b,'top':_0x448d9f,'width':_0xc7d594,'height':_0x5cc2eb,'evented':!0x1,'zIndex':rn};return new tn(_0x5cbfca,_0x398ff4);});_0x41c697[_0x3193d2(0x296)](_0x4cce11,qi),this[_0x3193d2(0x1af)]=new Set(_0x4cce11);}['_removeCollabCursors'](){const _0x29f29d=_0x2d19ee;var _0x550e95;(_0x550e95=this[_0x29f29d(0x1af)])==null||_0x550e95['forEach'](_0x2db9cd=>_0x2db9cd['dispose']());}[_0x2d19ee(0x247)](){const _0x57f049=_0x2d19ee;return _0x2cc164(this['_context'][_0x57f049(0x235)],this['_context']);}};ke=nn([be(0x1,_0x13e3c7(_0x33de6b)),be(0x2,_0x13e3c7(H)),be(0x3,_0x13e3c7(_0x1331d6))],ke);function on(_0x289585){const _0x2580ad=_0x2d19ee,_0x571ca0=new Map();return _0x289585[_0x2580ad(0x136)](_0x17f676=>{const _0x5acb7b=_0x2580ad;if(_0x571ca0[_0x5acb7b(0x230)](_0x17f676[_0x5acb7b(0x20c)])){const _0x344e81=_0x571ca0[_0x5acb7b(0x1a4)](_0x17f676[_0x5acb7b(0x20c)]);_0x344e81[_0x5acb7b(0x28a)]+=',\x20'+_0x17f676['name'];}else _0x571ca0[_0x5acb7b(0x165)](_0x17f676[_0x5acb7b(0x20c)],_0x17f676);}),Array[_0x2580ad(0x292)](_0x571ca0['values']());}var an=Object['getOwnPropertyDescriptor'],cn=(_0x3c1aae,_0x435f5b,_0x54eb7a,_0x129136)=>{const _0x4a4e42=_0x2d19ee;for(var _0x469ab6=_0x129136>0x1?void 0x0:_0x129136?an(_0x435f5b,_0x54eb7a):_0x435f5b,_0xf8ae11=_0x3c1aae[_0x4a4e42(0x375)]-0x1,_0x19e0e9;_0xf8ae11>=0x0;_0xf8ae11--)(_0x19e0e9=_0x3c1aae[_0xf8ae11])&&(_0x469ab6=_0x19e0e9(_0x469ab6)||_0x469ab6);return _0x469ab6;},F=(_0x1432bf,_0xf0e77a)=>(_0x25324b,_0x44ab2d)=>_0xf0e77a(_0x25324b,_0x44ab2d,_0x1432bf);let _e=class extends _0x55618d{constructor(_0x7ceb21,_0x22fe9a,_0x785097,_0x2a45a5,_0x56240d,_0x173986){const _0x5f4ee6=_0x2d19ee;super(),this[_0x5f4ee6(0x171)]=_0x7ceb21,this['_localCacheService']=_0x22fe9a,this[_0x5f4ee6(0x345)]=_0x785097,this[_0x5f4ee6(0x16f)]=_0x2a45a5,this[_0x5f4ee6(0x1ba)]=_0x56240d,this[_0x5f4ee6(0x2ea)]=_0x173986,this[_0x5f4ee6(0x2ce)](),this[_0x5f4ee6(0x30c)]();}[_0x2d19ee(0x2ce)](){const _0x53fc5e=_0x2d19ee;this[_0x53fc5e(0x1b6)](this[_0x53fc5e(0x171)]['registerBeforeClose'](()=>{const _0x4c96e1=_0x53fc5e;if(this[_0x4c96e1(0x356)][_0x4c96e1(0x134)][_0x4c96e1(0x26a)])return this['_localeService']['t'](_0x4c96e1(0x232));}));}[_0x2d19ee(0x30c)](){const _0x4cd166=_0x2d19ee;this[_0x4cd166(0x1b6)](this[_0x4cd166(0x345)][_0x4cd166(0x246)][_0x4cd166(0x150)](_0x5010b6=>{const _0x16ffe1=_0x4cd166;_0x5010b6['id']===_0x54f12f[_0x16ffe1(0x183)]&&this[_0x16ffe1(0x16f)][_0x16ffe1(0x14b)]({'type':_0xe3500e[_0x16ffe1(0x1fc)],'content':this[_0x16ffe1(0x2ea)]['t'](_0x16ffe1(0x22f))}),_0x5010b6['id']===_0x54f12f['CLOSE_ROOM']&&this['_messageService'][_0x16ffe1(0x14b)]({'type':_0xe3500e[_0x16ffe1(0x1fc)],'content':this[_0x16ffe1(0x2ea)]['t'](_0x16ffe1(0x205))}),_0x5010b6['id']===_0x54f12f[_0x16ffe1(0x2f5)]&&this[_0x16ffe1(0x1ba)][_0x16ffe1(0x14b)]({'title':this[_0x16ffe1(0x2ea)]['t'](_0x16ffe1(0x1b1)),'content':this[_0x16ffe1(0x2ea)]['t'](_0x16ffe1(0x1a7)),'type':_0x16ffe1(0x1f9),'duration':0x0}),_0x5010b6['id']===_0x54f12f['CONFLICT']&&this[_0x16ffe1(0x16f)][_0x16ffe1(0x14b)]({'type':_0xe3500e[_0x16ffe1(0x185)],'content':this[_0x16ffe1(0x2ea)]['t']('collaboration.closeRoom')+'('+_0x5010b6['data']+')'}),_0x5010b6['id']===_0x54f12f[_0x16ffe1(0x1b4)]&&this[_0x16ffe1(0x16f)]['show']({'type':_0xe3500e['Warning'],'content':this[_0x16ffe1(0x2ea)]['t'](_0x5010b6[_0x16ffe1(0x2d3)]||'')}),_0x5010b6['id']===_0x54f12f[_0x16ffe1(0x372)]&&this[_0x16ffe1(0x16f)][_0x16ffe1(0x14b)]({'type':_0xe3500e[_0x16ffe1(0x1fc)],'content':this[_0x16ffe1(0x2ea)]['t'](_0x16ffe1(0x27d))}),_0x5010b6['id']===_0x54f12f[_0x16ffe1(0x25a)]&&this[_0x16ffe1(0x16f)][_0x16ffe1(0x14b)]({'type':_0xe3500e[_0x16ffe1(0x185)],'content':this[_0x16ffe1(0x2ea)]['t']('session.connection-failed')}),_0x5010b6['id']===_0x54f12f['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x16ffe1(0x16f)]['show']({'type':_0xe3500e[_0x16ffe1(0x185)],'content':this[_0x16ffe1(0x2ea)]['t'](_0x16ffe1(0x240))});}));}};_e=cn([F(0x0,_0x58a1a6),F(0x1,_0x26b1ca),F(0x2,_0x13e3c7(_0x195a88)),F(0x3,_0x551408),F(0x4,_0x3ad334),F(0x5,_0x13e3c7(_0x548920))],_e);var _n=Object[_0x2d19ee(0x2a7)],ln=(_0x2d8099,_0x321a93,_0x1a4a93,_0x4ec372)=>{const _0x5549ef=_0x2d19ee;for(var _0x28118d=_0x4ec372>0x1?void 0x0:_0x4ec372?_n(_0x321a93,_0x1a4a93):_0x321a93,_0x2f21a=_0x2d8099[_0x5549ef(0x375)]-0x1,_0x281734;_0x2f21a>=0x0;_0x2f21a--)(_0x281734=_0x2d8099[_0x2f21a])&&(_0x28118d=_0x281734(_0x28118d)||_0x28118d);return _0x28118d;},ne=(_0x247f78,_0x462afa)=>(_0x26fe13,_0x4ce749)=>_0x462afa(_0x26fe13,_0x4ce749,_0x247f78);let le=class extends _0x55618d{constructor(_0x1059d4,_0x3da29f,_0x25b4b9,_0x24d058){const _0x28b106=_0x2d19ee;super(),_(this,_0x28b106(0x30a)),(this[_0x28b106(0x2b2)]=_0x1059d4,this[_0x28b106(0x26e)]=_0x3da29f,this['_logService']=_0x25b4b9,this[_0x28b106(0x376)]=_0x24d058,this[_0x28b106(0x1e9)]());}[_0x2d19ee(0x1e9)](){const _0x51550b=_0x2d19ee;this[_0x51550b(0x362)](),this[_0x51550b(0x2ef)](),this[_0x51550b(0x19e)](),this[_0x51550b(0x206)]();}[_0x2d19ee(0x206)](){const _0x23753d=_0x2d19ee;this[_0x23753d(0x1b6)](this[_0x23753d(0x376)]['socket$']['subscribe'](_0x37c67d=>{const _0x266d73=_0x23753d;this[_0x266d73(0x30a)]=_0x37c67d==null?void 0x0:_0x37c67d[_0x266d73(0x169)];}));}[_0x2d19ee(0x362)](){const _0x2d4b73=_0x2d19ee,_0x1e51a6=_0x10aa05=>{const _0x244ec0=_0x3b77;var _0x306b0a;this[_0x244ec0(0x12e)](_0x244ec0(0x1f9),_0x244ec0(0x2af)+_0x10aa05[_0x244ec0(0x23f)]+_0x244ec0(0x2da)+_0x10aa05['filename']+':'+_0x10aa05[_0x244ec0(0x291)]+':'+_0x10aa05[_0x244ec0(0x212)]+'\x0a'+(((_0x306b0a=_0x10aa05[_0x244ec0(0x1f9)])==null?void 0x0:_0x306b0a[_0x244ec0(0x295)])||''));};window[_0x2d4b73(0x25b)](_0x2d4b73(0x1f9),_0x1e51a6),this['disposeWithMe'](()=>{const _0x145a73=_0x2d4b73;window[_0x145a73(0x37c)](_0x145a73(0x1f9),_0x1e51a6);});}[_0x2d19ee(0x2ef)](){const _0x3fb73f=_0x2d19ee,_0x1be6c2=_0x22afa6=>{const _0x1abeb2=_0x3b77;this[_0x1abeb2(0x12e)]('error',_0x1abeb2(0x179)+_0x22afa6['reason']);};window[_0x3fb73f(0x25b)](_0x3fb73f(0x26f),_0x1be6c2),this[_0x3fb73f(0x1b6)](()=>{const _0x57d0a7=_0x3fb73f;window[_0x57d0a7(0x37c)](_0x57d0a7(0x26f),_0x1be6c2);});}[_0x2d19ee(0x19e)](){const _0x2a94ff=_0x2d19ee,_0x48da72=this['_logService'][_0x2a94ff(0x1f9)][_0x2a94ff(0x2c3)](this[_0x2a94ff(0x244)]);this[_0x2a94ff(0x244)][_0x2a94ff(0x1f9)]=(..._0x1ac629)=>{const _0x5ad08c=_0x2a94ff,_0x16a209=_0x1ac629['map'](_0xd622e0=>_0xd622e0 instanceof Error?_0xd622e0[_0x5ad08c(0x23f)]+'\x0a'+_0xd622e0['stack']:String(_0xd622e0))[_0x5ad08c(0x184)]('\x20');this[_0x5ad08c(0x12e)](_0x5ad08c(0x1f9),_0x5ad08c(0x198)+_0x16a209),_0x48da72(..._0x1ac629);},this['disposeWithMe'](()=>{const _0x39fd0d=_0x2a94ff;this[_0x39fd0d(0x244)][_0x39fd0d(0x1f9)]=_0x48da72;});}['_uploadLog'](_0x1309f1,_0x324fc6){const _0x57f7d5=_0x2d19ee;try{const _0x5dde85={'userId':this[_0x57f7d5(0x30a)],'logLabel':_0x1309f1,'content':_0x324fc6};this[_0x57f7d5(0x26e)]['post'](_0x57f7d5(0x1c1),{'body':_0x5dde85})[_0x57f7d5(0x2be)](()=>{});}catch{}}};function _0x4498(){const _0x554654=['searchParams','url(#$1','_dataLoaderService','_localeService','_cursorInfo$','parseInt','_selfUnitIDs','blue.400','_initUnhandledRejectionListener','_docStateChangeManagerService','_instanceService','m1Prime','limitInfo','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','PERMISSION_DENIED','_transformService','_removeClearOtherTimer','SUCCESS','getCollabCursors$','use','wsSessionTicketUrl','ENTITLE_CAN_NOT_BUY_LOWER_OTP','SNAPSHOT_INVALID_SNAPSHOT','_registerRenderDependencies','YUUMI_ASYNCIO_CANCELLED','invokeId','_colorIndex','triggerDblclick','DeleteRangeMoveLeftCommandId','result','status$','purple.300','origin','_refRangeService','startColumn','_memberID','DATA_SOURCE_TOO_LARGE','_initEvent','min','_getSaveTimeout','_range','NOT_FOUND','_handleEvent','restore','START_CALCULATION','collabStatus.fetchMiss','_setupSubUnitSync','60rsowth','row','_clearPolling','UNIVER_DOC','clearTimeout','univerjs-icon\x20univerjs-icon-','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','LICENSE_IMPORT_SIZE_EXCEEDED','_docTransformIMECacheService','values','_releaseCalculationLimit','displayName','_handleHeartbeatEvent','transformSelections','_onCursorUpdate','transformStateCache','LICENSE_DISTRO_REJECTED','INVITE_CODE_REQUIRED','_docSyncEditingCollabCursorService','includes','stringify','...','3446663kCotNU','getVpScrollXYInfoByPosToVp','_transformHistoryAndStateStack','_updateURLWithCurrentState','setAlpha','selections','REDEMPTION_CODE_NOT_STARTED','_docTransformSelectionsService','_hideTimer','_initCommandInterceptor','_docSkeletonManagerService','_session','PENDING','dispose$','eventID','_syncEditingCollabCursorService','_updateSubUnitFromURLParams','_drawTextRange','currentTheme$','onLocalMutation','MUTATION','M0\x200H16V16H0z','FETCH_MISS','ENTITLE_INSUFFICIENT_QUOTA','cursorInfo','_collaborationUIEventService','DeleteRangeMoveUpCommandId','runId','lineTo','current','top','/run/','getUndoRedoMutationParamsCache','1em','deepClone','urlChange$','map','sessionStatus$','unitId','search','_urlService','endRow','_localCacheService','_handleLeaveEvent','reconnect','pipe','collabStatus.offline','ENTITLE_COUPON_EXPIRED','registerRefRange','ERROR_AGAIN','endColumn','onMouseMove','_sheetSkeletonManagerService','PY_RUNTIME_SCRIPT_ERROR','_initWindowErrorListener','_entities','getSkeleton','text','fillRule','_removeCollabCursors','_labelPosition','unitID','_checkCalculationAvailable','newValue','_getSessionTicket','findNodePositionByCharIndex','redoState','stage','OFFLINE','url(#off-line-icon_clip0_910_343)','SOCKET_FAILED_RETRY','saveOfflineData','_localStorageService','length','_collaborationSessionService','getUnitId','getValue','storage','_getFormulaLimitStatus','_doCreateSocket','removeEventListener','LOGIN_FAILED','_context','_initResize','_hasFormulaInDirtyRanges','_getMergeRange','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','ENSURE_SNAPSHOT_EXECUTION','_taskIds','white','_heartbeatTimer','_uploadLog','doc.mutation.rich-text-editing','NOT_COLLAB','transformByState','string','_onRefRangeChange','saveTaskMap','imageSourceType','forEach','_lastResponseTimestamp','black','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_configService','on-line-icon_clip0_910_349','APPLY_DUPLICATED','onRendered','REDEMPTION_CODE_FULLY_REDEEMED','4292065VBiNff','YUUMI_SUBSCRIPTION_NOT_FOUND','UPDATE_CURSOR','addHandlerCallback','tag','_color','_unitOnClients','_showGuardMessage','OnLineIcon','getCollabEntity$','off-line-icon','undoState','show','all','currentUsage','YUUMI_AI_RUN_FAILED','setTimeout','subscribe','getMemberID','rgba(255,\x20255,\x20255,\x200.01)','LOGIN_TOKEN_PROCESSING_FAILED','loadUnit','init','_collaborationController','evenodd','TOO_MANY_REQUESTS','whenReady','idSuffix','HEADER_MENU','override','[CollaborationDataLoaderController]','ACTIVE_UNIT_EVENT_CHANNEL','ENTITLE_COUPON_USED_UP','hide','getRangePointData','_commandService','startRow','type','set','MoveRangeCommandId','_id','div','memberID','executeCommand','unsubscribe','disableLocalCache','_uiPartsService','send','_messageService','InsertRangeMoveDownCommandId','_beforeCloseService','getParam','startFormulaLimitUrl','unshift','labelPosition','WECHAT_HAS_BEEN_BOUND','APPLY_PERMISSION_DENIED','ALREADY_EXISTS','[Unhandled\x20Rejection]:\x20','INVALID_ARGUMENT','getFocusedUnit','_pollingInterval','onPointerEnter$','yellow.400','_univerInstanceService','APPLY_REVISION_CONFILICT','_backgroundColor','transformIMECache','OTHER_CLIENT_EDITING','join','Error','range','requireSession','createInstance','INVALID_INVITE_CODE','setActiveRange','REDEMPTION_CODE_INACTIVE','defineProperty','_maxFormulaLimit','_initStatusComponent','_themeService','REDEMPTION_INVALID_CODE','add','CHANGESET_REVISION_CONFILICT','makeDirty','addClipboardHook','getConfig','OTHER_CLIENTS_EDITING','INVITE_CODE_HAS_BEEN_UES','[LogService\x20Error]:\x20','width','#FFF','params','univer-flex\x20univer-items-center','setShapeProps','_monkeyPatchLogService','random','YUUMI_TABLE_NOT_FOUND_IN_UNIT','APPLY_REJECT','_anchor','_send','get','totalFormulasToCalculate','AUTHORIZE_CODE_ILLEGAL','permission.content','_imageIoService','next','_clearOtherTimers','getCellPositionByOffset','registerComponent','height','toRgbString','_cursors','getUniverSheetInstance','permission.title','children','application/json','JOIN_ROOM_FAILED','fillText','disposeWithMe','then','isActive','clipPath','_notificationService','push','_toggleOffline','history','fill','_onCursorDelete','LICENSE_MAX_UNITS_EXCEEDED','/universer-api/frontend/logs','_revisionService','key','formula.calculation.waiting','collabStatus.conflict','_checkAndWaitForCalculationPermission','getViewport','isArray','flatMap','setUndoRedoMutationParamsCache','getCellMatrix','RemoveColCommandId','UNDEFINED','YUUMI_NO_CUBOID_FOR_QUESTION','_eventUnsubscribe','_startCalculationLimit','_lastPointer','replaceState','YUUMI_RATE_OVER_LIMIT','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','ONLINE','colorChannel1','_getScale','RECT','transformMutation','_collabSessionService','max','moveTo','getStateCache','_refreshCollabCursors','CURRENT_STATUS_CANNOT_OPERATE','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_collabCursorController','contains','getUnhiddenWorksheets','YUUMI_UNABLE_LOAD_URL','getMergeData','12WrOgoS','_colorAssignService','currentSkeleton$','_init','now','currentColor','mutations','xlink:href','_applyCommand','mask','_assignedColors','9400440MOyjrQ','font','location','on-line-icon','4fMOKCi','setParam','debug','sheetId','error','_docTransformStateCacheService','measureText','Warning','ticket','_cursor','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','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','color','toString','YUUMI_ALL_TABLES_IS_INVALID','enableLocalCache','collaboration.closeRoom','_initUserListener','_hover','101152LvdYuF','0\x200\x2016\x2016','delete','assign','selection','trim','REDEMPTION_USER_NOT_ELIGIBLE','parse','transformRemoteChangeset','3320121NbySqr','colno','36syBAdB','YUUMI_CONNECTOR_URL_NOT_FOUND','_handleHover','disposeUnit','beginPath','_hovered','exhaustSavingTask','966250hHDdQA','EMAIL_HAS_BEEN_BOUND','_textBubble','addObject','onCommandExecuted','TEXT','_scheduleClearOtherTimer','_drawRectRange','_initCommandExecutedListener','split','getAncestorScale','UNIVER_SHEET','href','getCurrentRevOfUnit','green.600','_roomMembers$','_startDocCollabCursor','_docClipboardService','code','_createSocketURL','transformMutationsWithChangeset','collaboration.single-unit.warning','has','dirtyRanges','collaboration.offline-data-not-saved','MOBILE_VERIFY_CODE_MISMATCH','executionId','unit','_initEntityListener','registerRenderModule','setInterval','_registerDependencies','ENTITLE_CHAT_LIMIT_EXCEED','replace','getRelativeToViewportCoord','_getAnchorBounding','_renderManagerService','message','session.collaboration-timeout','VIEW_MAIN','find','_docSkeleton','_logService','_saveTaskMap','event$','_getSheetObject','_startSheetCollabCursor','onPointerLeave$','sessionTicket','_scheduleSaving','collaboration-client-ui.config','off-line-icon_clip0_910_343','pushState','_toggleOnline','INVITE_CODE_ALREADY_BOUND','transform','_updateCollabCursors','_initDependencies','maxFormulaLimit','47789sKUNOO','REDEMPTION_CODE_HAS_BEEN_CREATED','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','uni.network.url-service','_handleJoinEvent','SOCKET_FAILED','addEventListener','drawWith','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','getRenderById','_shapes','removeParam','subunit','actions','setConfig','post','roomMembers$','ENTITLE_NEED_BILLING_ADDRESS','assignAColorForMemberID','_memberService','LICENSE_EXPORT_SIZE_EXCEEDED','size','focused$','APPLY_NON_SEQUENTIAL_REVISION','http://www.w3.org/2000/svg','_httpService','unhandledrejection','_transformUndoRedoStack','collab-text-anchor-','ENTITLE_USE_COUPON_NOT_1ST_TRADE','getActiveSheet','AWAITING_WITH_PENDING','getSheetBySheetId','backgroundColor','USER_IS_ANONYMOUS','attrs','USER_NOT_INVITED_CODE','startsWith','asObservable','entityInit$','session.will-retry','_saveCache','_scene','getCurrent','fillStyle','loadOfflineData','subscribeEvent','USERS_LEAVE','body','_setFormulaLimitStatus','ENTITLE_DUP_SUBSCRIPTION','ENTITLE_INVALID_COUPON_CODE','shift','name','_cursorShapes','_drawAnchor','_entityInit$','jiqing.500','_draw','setItem','lineno','from','collab-rect-range-','CONNECTOR_DATA_TOO_LARGE','stack','addObjects','univer-mr-2\x20univer-flex\x20univer-text-xl','_disabled','resize','with','none','SYNCED','_currentUsage','releaseFormulaLimitUrl','getDocRanges','ENTITLE_REPORT_LIMIT_EXCEED','_online','path','_config','getColorFromTheme','complete','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','getOwnPropertyDescriptor','_scheduleHeartbeat','cursorInfo$','arc','round','bottom','getMember','_transformPreviousActiveRange','[Window\x20Error]:\x20','NO_OTHER_CLIENTS_EDITING','translate(.97)','_injector','save','USER_NOT_FOUND','textRanges','Unknown\x20user','894maUJrJ','FromArray','onStarting','YUUMI_URL_COL_OUT_OF_RANGE','REDEMPTION_USER_REDEEM_TIMES_EXCEED','_ensureSubject','_unitStatus','catch','_updateLocalCursor','entries','getTypeOfUnitAdded$','onTransformChange$','bind','_cachedData','docStateChange$','formula.calculation.unable','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','PAYMENT_CHANNEL_NOT_SUPPORT','isEditing','getCurrentUnitForType','defIds','m2Prime','EMAIL_VERIFY_CODE_MISMATCH','_setupBeforeClosingHandler','dispose','Failed','_initStatusListener','roomMembers','data','ranges','defs','UNAUTHENTICATED','_status$','UNRECOGNIZED','_render','\x20at\x20','_document','collabCursorState$','INTERNAL_ERROR','_collabCursorState$','column','_anchorDot','_name','symbol','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','collabStatus.syncing','getformulaLimitStatusUrl','getSheetId'];_0x4498=function(){return _0x554654;};return _0x4498();}le=ln([ne(0x0,_0x13e3c7(_0x6717c8)),ne(0x1,_0x13e3c7(_0x58299b)),ne(0x2,_0x2bfead),ne(0x3,_0x13e3c7(_0x431e53))],le);const hn=_0x2d19ee(0x24c),_t={};var un=Object[_0x2d19ee(0x2a7)],dn=(_0x540cd2,_0xf6814c,_0x5cf472,_0x2e4e6d)=>{const _0x496166=_0x2d19ee;for(var _0x3054f0=_0x2e4e6d>0x1?void 0x0:_0x2e4e6d?un(_0xf6814c,_0x5cf472):_0xf6814c,_0x1969be=_0x540cd2[_0x496166(0x375)]-0x1,_0x1d7059;_0x1969be>=0x0;_0x1969be--)(_0x1d7059=_0x540cd2[_0x1969be])&&(_0x3054f0=_0x1d7059(_0x3054f0)||_0x3054f0);return _0x3054f0;},lt=(_0x53318f,_0x13062e)=>(_0x382812,_0x557ccf)=>_0x13062e(_0x382812,_0x557ccf,_0x53318f);let he=class{constructor(_0x3fe2d8,_0x3dd813){const _0x3afe8d=_0x2d19ee;this['_transformService']=_0x3fe2d8,this[_0x3afe8d(0x23e)]=_0x3dd813;}['transformIMECache'](_0x1c8523){const _0x295601=_0x2d19ee;this[_0x295601(0x270)](_0x1c8523),this[_0x295601(0x2ae)](_0x1c8523);}[_0x2d19ee(0x210)](_0x539611){const _0x190217=_0x2d19ee,{unitID:_0x4f6ad9}=_0x539611,_0x5711fa=this[_0x190217(0x23e)][_0x190217(0x25e)](_0x4f6ad9)[_0x190217(0x29a)](_0x57bd0a),{redoCache:_0x358ead}=_0x5711fa[_0x190217(0x34c)]();if(_0x358ead['length']===0x0)return _0x539611;let _0x5aff15=_0x2fbfda[_0x190217(0x34e)](_0x539611[_0x190217(0x1ec)][0x0]);for(let _0x380c61=0x0;_0x380c61<_0x358ead[_0x190217(0x375)];_0x380c61++){const _0x23dd1f={'id':'doc.mutation.rich-text-editing','params':{..._0x358ead[_0x380c61]}},_0x31f56f=this[_0x190217(0x2f6)][_0x190217(0x1d9)](_0x5aff15,_0x23dd1f,!0x1);if(_0xbfd48e(_0x31f56f))throw _0x31f56f[_0x190217(0x1f9)];_0x5aff15=_0x31f56f[_0x190217(0x2f2)];}return{..._0x2fbfda[_0x190217(0x34e)](_0x539611),'mutations':[_0x5aff15]};}['_transformUndoRedoStack'](_0x2ca40d){const _0xc154c5=_0x2d19ee,{unitID:_0x4157f}=_0x2ca40d,_0x2a877f=this[_0xc154c5(0x23e)]['getRenderById'](_0x4157f)['with'](_0x57bd0a),{undoCache:_0x187fc7,redoCache:_0x225a4d}=_0x2a877f[_0xc154c5(0x34c)]();if(_0x187fc7[_0xc154c5(0x375)]===0x0||_0x225a4d[_0xc154c5(0x375)]===0x0)return;const _0x2498a7=[],_0x26959d=[];let _0x5118b1=_0x2fbfda[_0xc154c5(0x34e)](_0x2ca40d[_0xc154c5(0x1ec)][0x0]),_0x4baf34=_0x2fbfda[_0xc154c5(0x34e)](_0x2ca40d[_0xc154c5(0x1ec)][0x0]);for(let _0xca7224=_0x187fc7['length']-0x1;_0xca7224>=0x0;_0xca7224--){const _0x41fcf5={'id':_0xc154c5(0x12f),'params':{..._0x187fc7[_0xca7224]}},_0x1b3cb6={'id':_0xc154c5(0x12f),'params':{..._0x225a4d[_0xca7224]}},_0x3f1b3f=this[_0xc154c5(0x2f6)][_0xc154c5(0x1d9)](_0x5118b1,_0x41fcf5,!0x1),_0x4f014f=this[_0xc154c5(0x2f6)][_0xc154c5(0x1d9)](_0x4baf34,_0x1b3cb6,!0x1);if(_0xbfd48e(_0x3f1b3f))throw _0x3f1b3f[_0xc154c5(0x1f9)];if(_0xbfd48e(_0x4f014f))throw _0x4f014f[_0xc154c5(0x1f9)];_0x2498a7[_0xc154c5(0x174)](_0x3f1b3f['m2Prime'][_0xc154c5(0x19b)]),_0x26959d[_0xc154c5(0x174)](_0x4f014f[_0xc154c5(0x2cc)][_0xc154c5(0x19b)]),_0x5118b1=_0x3f1b3f[_0xc154c5(0x2f2)],_0x4baf34=_0x4f014f[_0xc154c5(0x2f2)];}_0x2a877f[_0xc154c5(0x1ca)]({'undoCache':_0x2498a7,'redoCache':_0x26959d});}['_transformPreviousActiveRange'](_0x4467b6){const _0x251f6f=_0x2d19ee,{unitID:_0x4601ff}=_0x4467b6,_0x183f85=this[_0x251f6f(0x23e)]['getRenderById'](_0x4601ff)[_0x251f6f(0x29a)](_0x57bd0a),_0x3284cb=_0x183f85['getActiveRange']();if(_0x3284cb==null)return;const _0x53a610=[{'id':_0x251f6f(0x12f),'params':{'unitId':_0x4467b6['unitID'],'actions':null,'textRanges':[_0x3284cb]}}],_0x49ef32=this['_transformService']['transformMutationsWithChangeset'](_0x4467b6,_0x53a610);if(!_0x1f1a8a(_0x49ef32))throw _0x49ef32[_0x251f6f(0x1f9)];const _0x5abd96=_0x49ef32[_0x251f6f(0x2cc)][0x0][_0x251f6f(0x19b)][_0x251f6f(0x2b5)];Array[_0x251f6f(0x1c8)](_0x5abd96)&&_0x5abd96['length']&&_0x183f85[_0x251f6f(0x18a)](_0x5abd96[0x0]);}};he=dn([lt(0x0,_0x3990fc),lt(0x1,_0x3e8801)],he);var Sn=Object['getOwnPropertyDescriptor'],In=(_0x590ceb,_0x375ddd,_0x16a7d4,_0x496cb6)=>{const _0x57c585=_0x2d19ee;for(var _0x5e1a43=_0x496cb6>0x1?void 0x0:_0x496cb6?Sn(_0x375ddd,_0x16a7d4):_0x375ddd,_0x1d33f9=_0x590ceb[_0x57c585(0x375)]-0x1,_0x57828c;_0x1d33f9>=0x0;_0x1d33f9--)(_0x57828c=_0x590ceb[_0x1d33f9])&&(_0x5e1a43=_0x57828c(_0x5e1a43)||_0x5e1a43);return _0x5e1a43;},Le=(_0x597f74,_0x2b0af8)=>(_0x458724,_0x5695e6)=>_0x2b0af8(_0x458724,_0x5695e6,_0x597f74);let ue=class{constructor(_0x52fc3b,_0x4819a0,_0x1d1358){const _0x2cacd1=_0x2d19ee;this['_injector']=_0x52fc3b,this[_0x2cacd1(0x2f6)]=_0x4819a0,this['_docStateChangeManagerService']=_0x1d1358;}[_0x2d19ee(0x325)](_0x5a7955){const _0x3929fb=_0x2d19ee;this[_0x3929fb(0x32e)](_0x5a7955);}[_0x2d19ee(0x210)](_0x42d9be){const _0x32def=_0x2d19ee,{unitID:_0x23398a}=_0x42d9be,{collaboration:_0x35af14}=this[_0x32def(0x2f0)][_0x32def(0x1dd)](_0x23398a);if(_0x35af14[_0x32def(0x375)]===0x0)return _0x42d9be;let _0x595e47=_0x2fbfda[_0x32def(0x34e)](_0x42d9be[_0x32def(0x1ec)][0x0]);for(let _0x3efe52=0x0;_0x3efe52<_0x35af14[_0x32def(0x375)];_0x3efe52++){const _0x34b620={'id':_0x32def(0x12f),'params':{'unitId':_0x35af14[_0x3efe52][_0x32def(0x352)],..._0x35af14[_0x3efe52]['redoState']}},_0x1598e4=this[_0x32def(0x2f6)]['transformMutation'](_0x595e47,_0x34b620,!0x1);if(_0xbfd48e(_0x1598e4))throw _0x1598e4[_0x32def(0x1f9)];_0x595e47=_0x1598e4[_0x32def(0x2f2)];}return{..._0x2fbfda[_0x32def(0x34e)](_0x42d9be),'mutations':[_0x595e47]};}[_0x2d19ee(0x32e)](_0x597f8f){const _0x192d1=_0x2d19ee,{unitID:_0x54231b}=_0x597f8f,{history:_0x3f92fe,collaboration:_0x4c5510}=this[_0x192d1(0x2f0)]['getStateCache'](_0x54231b);if(_0x3f92fe[_0x192d1(0x375)]===0x0&&_0x4c5510[_0x192d1(0x375)]===0x0)return;const _0xc73ca6=[],_0x1ff7c3=[];let _0x492ebf=_0x2fbfda[_0x192d1(0x34e)](_0x597f8f[_0x192d1(0x1ec)][0x0]),_0x4272ff=_0x2fbfda[_0x192d1(0x34e)](_0x597f8f[_0x192d1(0x1ec)][0x0]);for(let _0x263506=_0x3f92fe['length']-0x1;_0x263506>=0x0;_0x263506--){const _0x352fa3={'id':_0x192d1(0x12f),'params':{'unitId':_0x3f92fe[_0x263506][_0x192d1(0x352)],..._0x3f92fe[_0x263506][_0x192d1(0x14a)]}},_0x4bd09b={'id':_0x192d1(0x12f),'params':{'unitId':_0x3f92fe[_0x263506][_0x192d1(0x352)],..._0x3f92fe[_0x263506][_0x192d1(0x36e)]}},_0x3a6a97=this[_0x192d1(0x2f6)][_0x192d1(0x1d9)](_0x492ebf,_0x352fa3,!0x1),_0x57beae=this[_0x192d1(0x2f6)][_0x192d1(0x1d9)](_0x4272ff,_0x4bd09b,!0x1);if(_0xbfd48e(_0x3a6a97))throw _0x3a6a97['error'];if(_0xbfd48e(_0x57beae))throw _0x57beae[_0x192d1(0x1f9)];_0xc73ca6['unshift']({..._0x3f92fe[_0x263506],'undoState':_0x3a6a97[_0x192d1(0x2cc)][_0x192d1(0x19b)],'redoState':_0x57beae[_0x192d1(0x2cc)][_0x192d1(0x19b)]}),_0x492ebf=_0x3a6a97[_0x192d1(0x2f2)],_0x4272ff=_0x57beae[_0x192d1(0x2f2)];}_0x492ebf=_0x2fbfda[_0x192d1(0x34e)](_0x597f8f[_0x192d1(0x1ec)][0x0]),_0x4272ff=_0x2fbfda['deepClone'](_0x597f8f['mutations'][0x0]);for(let _0x3c63e4=_0x4c5510[_0x192d1(0x375)]-0x1;_0x3c63e4>=0x0;_0x3c63e4--){const _0x888d36={'id':_0x192d1(0x12f),'params':{'unitId':_0x4c5510[_0x3c63e4][_0x192d1(0x352)],..._0x4c5510[_0x3c63e4][_0x192d1(0x14a)]}},_0x3c2ba2={'id':_0x192d1(0x12f),'params':{'unitId':_0x4c5510[_0x3c63e4][_0x192d1(0x352)],..._0x4c5510[_0x3c63e4]['redoState']}},_0x3aab40=this[_0x192d1(0x2f6)]['transformMutation'](_0x492ebf,_0x888d36,!0x1),_0x5624cb=this[_0x192d1(0x2f6)][_0x192d1(0x1d9)](_0x4272ff,_0x3c2ba2,!0x1);if(_0xbfd48e(_0x3aab40))throw _0x3aab40[_0x192d1(0x1f9)];if(_0xbfd48e(_0x5624cb))throw _0x5624cb[_0x192d1(0x1f9)];_0x1ff7c3[_0x192d1(0x174)]({..._0x4c5510[_0x3c63e4],'undoState':_0x3aab40[_0x192d1(0x2cc)][_0x192d1(0x19b)],'redoState':_0x5624cb[_0x192d1(0x2cc)][_0x192d1(0x19b)]}),_0x492ebf=_0x3aab40['m1Prime'],_0x4272ff=_0x5624cb[_0x192d1(0x2f2)];}this[_0x192d1(0x2f0)]['setStateCache'](_0x54231b,{'history':_0xc73ca6,'collaboration':_0x1ff7c3});}};ue=In([Le(0x0,_0x13e3c7(_0x6717c8)),Le(0x1,_0x3990fc),Le(0x2,_0x13e3c7(_0x7528bc))],ue);var mn=Object[_0x2d19ee(0x2a7)],fn=(_0x9cd1c1,_0x233171,_0x4f108c,_0xb3ce5f)=>{for(var _0x4d979b=_0xb3ce5f>0x1?void 0x0:_0xb3ce5f?mn(_0x233171,_0x4f108c):_0x233171,_0x593d0d=_0x9cd1c1['length']-0x1,_0x57cbb3;_0x593d0d>=0x0;_0x593d0d--)(_0x57cbb3=_0x9cd1c1[_0x593d0d])&&(_0x4d979b=_0x57cbb3(_0x4d979b)||_0x4d979b);return _0x4d979b;},ht=(_0x15f2be,_0x576101)=>(_0x3cc277,_0x305094)=>_0x576101(_0x3cc277,_0x305094,_0x15f2be);let de=class{constructor(_0x4a170c,_0x133bdc){const _0x4e78ec=_0x2d19ee;this[_0x4e78ec(0x2b2)]=_0x4a170c,this[_0x4e78ec(0x2f6)]=_0x133bdc;}[_0x2d19ee(0x323)](_0x208d0f){const _0x362ae7=_0x2d19ee;var _0x22ef8c;const _0x1b2c54=this['_injector'][_0x362ae7(0x1a4)](_0x318e9f),_0x4b47ac=(_0x22ef8c=_0x1b2c54[_0x362ae7(0x29f)]())!=null?_0x22ef8c:[];if(_0x4b47ac[_0x362ae7(0x375)]===0x0)return;const _0x26977c=_0x208d0f[_0x362ae7(0x369)],_0x3d5eac=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x26977c,'actions':null,'textRanges':_0x4b47ac}}],_0x3084ab=this[_0x362ae7(0x2f6)][_0x362ae7(0x22e)](_0x208d0f,_0x3d5eac);if(!_0x1f1a8a(_0x3084ab))throw _0x3084ab['error'];const _0x587d1a=_0x3084ab[_0x362ae7(0x2cc)][0x0][_0x362ae7(0x19b)][_0x362ae7(0x2b5)];Array[_0x362ae7(0x1c8)](_0x587d1a)&&_0x587d1a[_0x362ae7(0x375)]&&_0x1b2c54['replaceDocRanges'](_0x587d1a,{'unitId':_0x26977c,'subUnitId':_0x26977c},!0x1);}};de=fn([ht(0x0,_0x13e3c7(_0x6717c8)),ht(0x1,_0x3990fc)],de);var gn=Object[_0x2d19ee(0x2a7)],En=(_0x29f24d,_0x43cb46,_0x268fe2,_0x313bae)=>{const _0x2b84c0=_0x2d19ee;for(var _0x2cd900=_0x313bae>0x1?void 0x0:_0x313bae?gn(_0x43cb46,_0x268fe2):_0x43cb46,_0x889780=_0x29f24d[_0x2b84c0(0x375)]-0x1,_0x17a722;_0x889780>=0x0;_0x889780--)(_0x17a722=_0x29f24d[_0x889780])&&(_0x2cd900=_0x17a722(_0x2cd900)||_0x2cd900);return _0x2cd900;},U=(_0x4a7c76,_0xd5897b)=>(_0x2de368,_0x3adc1f)=>_0xd5897b(_0x2de368,_0x3adc1f,_0x4a7c76);let Se=class extends _0x55618d{constructor(_0x687429,_0x5f3e19,_0xdc1337,_0x3b9833,_0x5c4211,_0x4109c8,_0xa97e7a,_0x339a53){const _0x5b85b3=_0x2d19ee;super(),_(this,_0x5b85b3(0x2d7),new _0x5689a5(_0x14e54a[_0x5b85b3(0x130)])),(this[_0x5b85b3(0x2f0)]=_0x687429,this[_0x5b85b3(0x156)]=_0x5f3e19,this['_docTransformIMECacheService']=_0xdc1337,this['_docTransformStateCacheService']=_0x3b9833,this['_docTransformSelectionsService']=_0x5c4211,this[_0x5b85b3(0x328)]=_0x4109c8,this['_messageService']=_0xa97e7a,this[_0x5b85b3(0x2ea)]=_0x339a53,this['_initEntityListener']());}[_0x2d19ee(0x236)](){const _0x1aa2c2=_0x2d19ee;this['disposeWithMe'](this[_0x1aa2c2(0x156)][_0x1aa2c2(0x27c)][_0x1aa2c2(0x150)](_0x564ed5=>{const _0x999348=_0x1aa2c2,_0x2bf5a6=this[_0x999348(0x2f0)][_0x999348(0x2c5)][_0x999348(0x150)](_0x72ece0=>{const _0x554c91=_0x999348;if(_0x72ece0==null)return;const {unitId:_0x546ca3,redoState:_0x5f0d0a,commandId:_0xfeea51}=_0x72ece0;if(_0x546ca3!==_0x564ed5[_0x554c91(0x369)])return;const _0xd733f={'id':_0xfeea51,'type':_0x569143[_0x554c91(0x340)],'params':{'unitId':_0x546ca3,'actions':_0x5f0d0a[_0x554c91(0x262)],'textRanges':null}};_0x564ed5[_0x554c91(0x33f)](_0xd733f);});if(_0x564ed5[_0x999348(0x1b6)](_0x2bf5a6),_0x564ed5 instanceof _0x5da887){const _0xf5f721={'onTransformIME':_0x193415=>this[_0x999348(0x31e)][_0x999348(0x182)](_0x193415),'onTransformState':_0x388489=>this[_0x999348(0x1fa)][_0x999348(0x325)](_0x388489),'onTransformSelections':_0xb6bc5c=>this[_0x999348(0x333)]['transformSelections'](_0xb6bc5c),'onSyncEditingCollabCursor':_0x52d1aa=>this[_0x999348(0x328)]['syncEditingCollabCursor'](_0x52d1aa),'onTransformRemoteChangesetByIMECache':_0x4d20d4=>this[_0x999348(0x31e)][_0x999348(0x210)](_0x4d20d4),'onTransformRemoteChangesetByStateCache':_0x293d71=>this[_0x999348(0x1fa)][_0x999348(0x210)](_0x293d71)};_0x564ed5[_0x999348(0x142)](_0xf5f721);}}));}};Se=En([U(0x0,_0x13e3c7(_0x7528bc)),U(0x1,_0x13e3c7(_0x151f08)),U(0x2,_0x13e3c7(he)),U(0x3,_0x13e3c7(ue)),U(0x4,_0x13e3c7(de)),U(0x5,_0x13e3c7(ze)),U(0x6,_0x551408),U(0x7,_0x13e3c7(_0x548920))],Se);var Z=(_0x5c5bee=>(_0x5c5bee[_0x5c5bee[_0x2d19ee(0x1cd)]=0x0]='UNDEFINED',_0x5c5bee[_0x5c5bee['OK']=0x1]='OK',_0x5c5bee[_0x5c5bee['INTERNAL_ERROR']=0x2]=_0x2d19ee(0x2dd),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x2f5)]=0x3]=_0x2d19ee(0x2f5),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x310)]=0x4]='NOT_FOUND',_0x5c5bee[_0x5c5bee['UNAUTHENTICATED']=0x5]=_0x2d19ee(0x2d6),_0x5c5bee[_0x5c5bee['ALREADY_EXISTS']=0x6]=_0x2d19ee(0x178),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x17a)]=0x7]=_0x2d19ee(0x17a),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x158)]=0x8]=_0x2d19ee(0x158),_0x5c5bee[_0x5c5bee['COMPLETION_FINISHED']=0x9]='COMPLETION_FINISHED',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x37d)]=0xa]=_0x2d19ee(0x37d),_0x5c5bee[_0x5c5bee['MOBILE_VERIFY_CODE_MISMATCH']=0xb]=_0x2d19ee(0x233),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x2f4)]=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x2cd)]=0xd]=_0x2d19ee(0x2cd),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x25d)]=0xe]=_0x2d19ee(0x25d),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x1a6)]=0xf]='AUTHORIZE_CODE_ILLEGAL',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x153)]=0x10]=_0x2d19ee(0x153),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x1df)]=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x35d)]=0x65]=_0x2d19ee(0x35d),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x2b4)]=0xc9]=_0x2d19ee(0x2b4),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x277)]=0xca]=_0x2d19ee(0x277),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x192)]=0x1389]=_0x2d19ee(0x192),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x2fd)]=0x1771]=_0x2d19ee(0x2fd),_0x5c5bee[_0x5c5bee['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x383)]=0x1773]=_0x2d19ee(0x383),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x1a1)]=0x1b59]=_0x2d19ee(0x1a1),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x26c)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x180)]=0x1b5b]=_0x2d19ee(0x180),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x177)]=0x1b5c]=_0x2d19ee(0x177),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x13c)]=0x1b5d]=_0x2d19ee(0x13c),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x294)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x1c0)]=0x2329]=_0x2d19ee(0x1c0),_0x5c5bee[_0x5c5bee['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x2d19ee(0x382),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x31d)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x269)]=0x232c]=_0x2d19ee(0x269),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x326)]=0x232d]=_0x2d19ee(0x326),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x1e4)]=0x2711]=_0x2d19ee(0x1e4),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x2ba)]=0x2712]=_0x2d19ee(0x2ba),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x1d3)]=0x2713]=_0x2d19ee(0x1d3),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x140)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x1ce)]=0x271a]=_0x2d19ee(0x1ce),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x2ff)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x1a0)]=0x271c]=_0x2d19ee(0x1a0),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x203)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x5c5bee[_0x5c5bee['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x2d19ee(0x2e3),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x14e)]=0x271f]=_0x2d19ee(0x14e),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x214)]=0x2720]=_0x2d19ee(0x214),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x361)]=0x2af9]=_0x2d19ee(0x361),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x197)]=0x2ee1]=_0x2d19ee(0x197),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x189)]=0x2ee2]='INVALID_INVITE_CODE',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x327)]=0x2ee3]=_0x2d19ee(0x327),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x279)]=0x2ee4]=_0x2d19ee(0x279),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x250)]=0x2ee5]=_0x2d19ee(0x250),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x176)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x5c5bee[_0x5c5bee['MOBILE_HAS_BEEN_BOUND']=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x21b)]=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x2fc)]=0x36b1]=_0x2d19ee(0x2fc),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x200)]=0x36b2]=_0x2d19ee(0x200),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x287)]=0x36b3]='ENTITLE_DUP_SUBSCRIPTION',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x2c8)]=0x36b4]='PAYMENT_CHANNEL_NOT_SUPPORT',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x288)]=0x36b5]=_0x2d19ee(0x288),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x35b)]=0x36b6]='ENTITLE_COUPON_EXPIRED',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x15f)]=0x36b7]=_0x2d19ee(0x15f),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x272)]=0x36b8]=_0x2d19ee(0x272),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x23a)]=0x3715]=_0x2d19ee(0x23a),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x2a0)]=0x3716]=_0x2d19ee(0x2a0),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x343)]=0x3717]=_0x2d19ee(0x343),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x266)]=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x190)]=0x3a99]=_0x2d19ee(0x190),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x18b)]=0x3a9a]=_0x2d19ee(0x18b),_0x5c5bee[_0x5c5bee['REDEMPTION_CODE_FULLY_REDEEMED']=0x3a9b]=_0x2d19ee(0x13e),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x332)]=0x3a9c]='REDEMPTION_CODE_NOT_STARTED',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x20e)]=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x2bb)]=0x3a9e]='REDEMPTION_USER_REDEEM_TIMES_EXCEED',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x256)]=0x3a9f]=_0x2d19ee(0x256),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x30b)]=0x3e81]=_0x2d19ee(0x30b),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x2d8)]=-0x1]=_0x2d19ee(0x2d8),_0x5c5bee))(Z||{});function vn(_0x2b4667){const _0x23881d=_0x2d19ee;var _0x208e70,_0x465e35;const _0x8c0661=(_0x208e70=_0x2b4667['stageInfo'])==null?void 0x0:_0x208e70[_0x23881d(0x36f)],_0x57f057=((_0x465e35=_0x2b4667['stageInfo'])==null?void 0x0:_0x465e35[_0x23881d(0x1a5)])||0x0;return _0x8c0661===_0x5d8674[_0x23881d(0x313)]&&_0x57f057>0x0;}function pn(_0x256f3d){const _0x275ed7=_0x2d19ee;return _0x256f3d['functionsExecutedState']===_0x2ae0c4[_0x275ed7(0x2f8)];}var On=Object[_0x2d19ee(0x2a7)],Tn=(_0x4e4a70,_0x418883,_0x5f2d82,_0x410715)=>{const _0x775fb1=_0x2d19ee;for(var _0x57197f=_0x410715>0x1?void 0x0:_0x410715?On(_0x418883,_0x5f2d82):_0x418883,_0x367f93=_0x4e4a70[_0x775fb1(0x375)]-0x1,_0x24e8af;_0x367f93>=0x0;_0x367f93--)(_0x24e8af=_0x4e4a70[_0x367f93])&&(_0x57197f=_0x24e8af(_0x57197f)||_0x57197f);return _0x57197f;},P=(_0x208601,_0x1cec2d)=>(_0x319a87,_0xb1bca9)=>_0x1cec2d(_0x319a87,_0xb1bca9,_0x208601);const Cn='/universer-api/license/formula/limit/status',Rn='/universer-api/license/formula/limit/start',Dn='/universer-api/license/formula/limit/done';let Ie=class extends _0x55618d{constructor(_0xcc6e53,_0x4d7258,_0x3e567e,_0x4e1d6d,_0x3ae3ac,_0x512a99,_0x5c15de){const _0x17aaf0=_0x2d19ee;super(),_(this,'_pollingInterval',null),_(this,_0x17aaf0(0x18d),0x0),_(this,_0x17aaf0(0x29d),0x0),_(this,'_taskIds',[]),_(this,_0x17aaf0(0x137),0x0),(this[_0x17aaf0(0x16f)]=_0xcc6e53,this[_0x17aaf0(0x162)]=_0x4d7258,this[_0x17aaf0(0x13a)]=_0x3e567e,this['_httpService']=_0x4e1d6d,this['_univerInstanceService']=_0x3ae3ac,this['_logService']=_0x512a99,this[_0x17aaf0(0x2ea)]=_0x5c15de,this[_0x17aaf0(0x335)]());}[_0x2d19ee(0x335)](){const _0x35c0ca=_0x2d19ee;this[_0x35c0ca(0x1b6)](this[_0x35c0ca(0x162)]['beforeCommandExecuted']((_0x4094e9,_0x55d8ab)=>{const _0x433236=_0x35c0ca;var _0x38bcf0;if(_0x4094e9['id']!==_0x4f8fdb['id'])return;const _0x101d97=_0x4094e9[_0x433236(0x19b)];if(!this[_0x433236(0x380)]((_0x38bcf0=_0x101d97[_0x433236(0x231)])!=null?_0x38bcf0:[]))return;if(!this[_0x433236(0x36a)]())throw this[_0x433236(0x1c6)](_0x4094e9,_0x55d8ab),this[_0x433236(0x146)](),new _0x1dbb9e();})),this[_0x35c0ca(0x1b6)](this[_0x35c0ca(0x162)][_0x35c0ca(0x21e)]((_0x34953d,_0x36f5b6)=>{const _0x961d0=_0x35c0ca;if(_0x34953d['id']!==_0x33cc11['id'])return;const _0xf38736=_0x34953d['params'];if(vn(_0xf38736)){const _0x1264a4=_0x377b4b();this['_taskIds']['push'](_0x1264a4),this[_0x961d0(0x1d0)](_0x1264a4);}else{if(pn(_0xf38736)&&this['_taskIds'][_0x961d0(0x375)]>0x0){const _0x1c5fc0=this['_taskIds'][_0x961d0(0x289)]();this[_0x961d0(0x320)](_0x1c5fc0);}}}));}[_0x2d19ee(0x2cf)](){const _0x472e42=_0x2d19ee;super[_0x472e42(0x2cf)](),this[_0x472e42(0x318)](),this[_0x472e42(0x384)]=[],this[_0x472e42(0x29d)]=0x0,this[_0x472e42(0x18d)]=0x0,this[_0x472e42(0x137)]=0x0;}async[_0x2d19ee(0x1c6)](_0x1f84f0,_0x1974df){const _0x23506c=_0x2d19ee;for(let _0x24729b=0x0;_0x24729b<0x1e;_0x24729b++)try{if(await this[_0x23506c(0x37a)](),this[_0x23506c(0x36a)]()){this['_applyCommand'](_0x1f84f0,_0x1974df),this[_0x23506c(0x16f)][_0x23506c(0x14b)]({'content':this[_0x23506c(0x2ea)]['t']('formula.calculation.started'),'type':_0xe3500e['Success']});return;}await new Promise(_0x16f281=>{const _0x5b94a5=_0x23506c;this[_0x5b94a5(0x17c)]=window['setTimeout'](_0x16f281,0x3e8);});}catch(_0x44fadf){this[_0x23506c(0x244)][_0x23506c(0x1f9)](_0x44fadf);}this[_0x23506c(0x16f)][_0x23506c(0x14b)]({'content':this['_localeService']['t'](_0x23506c(0x2c6)),'type':_0xe3500e[_0x23506c(0x185)]});}[_0x2d19ee(0x1ee)](_0xa2832a,_0x42294e){const _0x575c49=_0x2d19ee;try{this['_commandService'][_0x575c49(0x16a)](_0xa2832a['id'],_0xa2832a[_0x575c49(0x19b)],_0x42294e);}catch(_0x35329a){this['_logService'][_0x575c49(0x1f9)](_0x35329a);}}[_0x2d19ee(0x286)](_0x3d89d6,_0x2a4ba7){const _0x2ec63b=_0x2d19ee;_0x2a4ba7<this[_0x2ec63b(0x137)]||(this[_0x2ec63b(0x137)]=_0x2a4ba7,this[_0x2ec63b(0x18d)]=Number[_0x2ec63b(0x2ec)](_0x3d89d6[_0x2ec63b(0x254)]),this[_0x2ec63b(0x29d)]=Number[_0x2ec63b(0x2ec)](_0x3d89d6[_0x2ec63b(0x14d)]));}async[_0x2d19ee(0x1d0)](_0x488007){const _0x2f31bb=_0x2d19ee;var _0x176a45,_0x2a3f50;const _0x2f983e=Date[_0x2f31bb(0x1ea)]();try{const _0x12f937=((_0x176a45=this[_0x2f31bb(0x13a)]['getConfig'](_0x189603))==null?void 0x0:_0x176a45[_0x2f31bb(0x173)])||Rn,_0x1ecd2d=(await this[_0x2f31bb(0x26e)][_0x2f31bb(0x264)](_0x12f937,{'body':JSON[_0x2f31bb(0x32a)]({'taskId':_0x488007})}))['body'];if(((_0x2a3f50=_0x1ecd2d['error'])==null?void 0x0:_0x2a3f50[_0x2f31bb(0x22c)])!==Z['OK'])return;this[_0x2f31bb(0x286)](_0x1ecd2d[_0x2f31bb(0x2f3)],_0x2f983e);}catch(_0x32531b){this[_0x2f31bb(0x244)][_0x2f31bb(0x1f9)](_0x32531b);}}async[_0x2d19ee(0x37a)](_0x248b86){const _0xfb0003=_0x2d19ee;var _0x3ee818,_0x5e2886;const _0x58ccdf=Date[_0xfb0003(0x1ea)]();try{const _0x4044a3=((_0x3ee818=this[_0xfb0003(0x13a)][_0xfb0003(0x195)](_0x189603))==null?void 0x0:_0x3ee818[_0xfb0003(0x2e5)])||Cn,_0x5193a8=_0x248b86?_0x4044a3+'?taskId='+encodeURIComponent(_0x248b86):_0x4044a3,_0x41c7d0=(await this['_httpService']['get'](_0x5193a8))[_0xfb0003(0x285)];if(((_0x5e2886=_0x41c7d0[_0xfb0003(0x1f9)])==null?void 0x0:_0x5e2886[_0xfb0003(0x22c)])!==Z['OK'])return;this['_setFormulaLimitStatus'](_0x41c7d0[_0xfb0003(0x2f3)],_0x58ccdf);}catch(_0x4677d9){this['_logService'][_0xfb0003(0x1f9)](_0x4677d9);}}async[_0x2d19ee(0x320)](_0x19825b){const _0x5774a9=_0x2d19ee;var _0x346db3,_0x48c78a;const _0x4670d1=Date[_0x5774a9(0x1ea)]();try{const _0xa1109e=((_0x346db3=this[_0x5774a9(0x13a)][_0x5774a9(0x195)](_0x189603))==null?void 0x0:_0x346db3[_0x5774a9(0x29e)])||Dn,_0x2a4fde=(await this[_0x5774a9(0x26e)]['post'](_0xa1109e,{'body':JSON[_0x5774a9(0x32a)]({'taskId':_0x19825b})}))[_0x5774a9(0x285)];if(((_0x48c78a=_0x2a4fde['error'])==null?void 0x0:_0x48c78a[_0x5774a9(0x22c)])!==Z['OK'])return;this[_0x5774a9(0x286)](_0x2a4fde[_0x5774a9(0x2f3)],_0x4670d1);}catch(_0x3e48aa){this['_logService'][_0x5774a9(0x1f9)](_0x3e48aa);}}[_0x2d19ee(0x36a)](){const _0x2faf7f=_0x2d19ee;return this[_0x2faf7f(0x18d)]===0x0?!0x0:this[_0x2faf7f(0x18d)]-this[_0x2faf7f(0x29d)]>0x0;}['_clearPolling'](){const _0x5836d1=_0x2d19ee;this[_0x5836d1(0x17c)]&&(clearTimeout(this[_0x5836d1(0x17c)]),this['_pollingInterval']=null);}[_0x2d19ee(0x146)](){const _0x29d7bd=_0x2d19ee;this[_0x29d7bd(0x16f)][_0x29d7bd(0x14b)]({'content':this[_0x29d7bd(0x2ea)]['t'](_0x29d7bd(0x1c4)),'type':_0xe3500e['Loading']});}[_0x2d19ee(0x380)](_0x1679f7){const _0x303311=_0x2d19ee;for(const _0x315506 of _0x1679f7){const {unitId:_0x5f2717,sheetId:_0x534efb,range:_0x830391}=_0x315506,_0x5826c2=this['_univerInstanceService']['getUnit'](_0x5f2717);if(!_0x5826c2)continue;const _0x5c9e7b=_0x5826c2[_0x303311(0x275)](_0x534efb);if(!_0x5c9e7b)continue;const _0x2a4045=_0x5c9e7b[_0x303311(0x1cb)]();for(let _0xb3b960=_0x830391[_0x303311(0x163)];_0xb3b960<=_0x830391[_0x303311(0x355)];_0xb3b960++)for(let _0x4ff9c8=_0x830391[_0x303311(0x309)];_0x4ff9c8<=_0x830391[_0x303311(0x35e)];_0x4ff9c8++){const _0x3074d2=_0x2a4045[_0x303311(0x378)](_0xb3b960,_0x4ff9c8);if(_0x3074d2&&(_0x14248c(_0x3074d2['f'])||_0xcdcb23(_0x3074d2['si'])))return!0x0;}}return!0x1;}};Ie=Tn([P(0x0,_0x13e3c7(_0x551408)),P(0x1,_0x44deef),P(0x2,_0x46a8a4),P(0x3,_0x13e3c7(_0x58299b)),P(0x4,_0x5ea64d),P(0x5,_0x2bfead),P(0x6,_0x13e3c7(_0x548920))],Ie);var Nn=Object[_0x2d19ee(0x2a7)],bn=(_0x4e12cf,_0x591555,_0xe4e293,_0x2c8e13)=>{const _0x4fdefe=_0x2d19ee;for(var _0x189c67=_0x2c8e13>0x1?void 0x0:_0x2c8e13?Nn(_0x591555,_0xe4e293):_0x591555,_0x567279=_0x4e12cf[_0x4fdefe(0x375)]-0x1,_0x598bca;_0x567279>=0x0;_0x567279--)(_0x598bca=_0x4e12cf[_0x567279])&&(_0x189c67=_0x598bca(_0x189c67)||_0x189c67);return _0x189c67;},Ue=(_0x135334,_0x27e192)=>(_0x7d8942,_0x5a0c44)=>_0x27e192(_0x7d8942,_0x5a0c44,_0x135334);let He=class extends _0x55618d{constructor(_0x2d3b65,_0x55991d,_0x5d0a6f){const _0x3e7f39=_0x2d19ee;super(),_(this,_0x3e7f39(0x2c4),new Map()),_(this,_0x3e7f39(0x245),new Map()),_(this,_0x3e7f39(0x298),!0x1),(this[_0x3e7f39(0x13a)]=_0x2d3b65,this[_0x3e7f39(0x374)]=_0x55991d,this['_revisionService']=_0x5d0a6f);}[_0x2d19ee(0x16c)](){this['_disabled']=!0x0;}[_0x2d19ee(0x204)](){const _0x389f98=_0x2d19ee;this[_0x389f98(0x298)]=!0x1;}get[_0x2d19ee(0x134)](){const _0x41a64e=_0x2d19ee;return this[_0x41a64e(0x245)];}['dispose'](){const _0x2d50bf=_0x2d19ee;this[_0x2d50bf(0x219)]()['then'](()=>super['dispose']());}async[_0x2d19ee(0x282)](_0x9bedd8){const _0x296fdd=_0x2d19ee;return this[_0x296fdd(0x298)]?null:this['_localStorageService']['getItem'](_0x5850c1(_0x9bedd8));}async[_0x2d19ee(0x373)](_0x2e8cff,_0x4fbe21){const _0x298b2c=_0x2d19ee;return!!this[_0x298b2c(0x374)][_0x298b2c(0x290)](_0x2e8cff,_0x4fbe21);}['updateOfflineData'](_0x3939cb,_0x3043a1,_0x72d43d,_0x281327){const _0x175766=_0x2d19ee,_0x3e73ca=this[_0x175766(0x1c2)][_0x175766(0x227)](_0x3939cb);this[_0x175766(0x2c4)]['set'](_0x3939cb,{'unitID':_0x3939cb,'type':_0x3043a1,'awaitingChangeset':_0x72d43d,'mutations':_0x281327,'rev':_0x3e73ca}),this[_0x175766(0x245)]['has'](_0x3939cb)||this[_0x175766(0x24b)](_0x3939cb);}[_0x2d19ee(0x24b)](_0x51bf2c){const _0x3e5628=_0x2d19ee,_0x386960=this[_0x3e5628(0x30e)]();_0x386960===0x0?this[_0x3e5628(0x27e)](_0x51bf2c):this[_0x3e5628(0x245)][_0x3e5628(0x165)](_0x51bf2c,setTimeout(()=>this[_0x3e5628(0x27e)](_0x51bf2c),_0x386960));}[_0x2d19ee(0x30e)](){const _0x585e4c=_0x2d19ee;var _0x126c8d;return(_0x126c8d=this['_configService'][_0x585e4c(0x195)](_0x3d4cf4))!=null?_0x126c8d:_0x9823a9;}[_0x2d19ee(0x27e)](_0x340be8){const _0x296c6b=_0x2d19ee,_0x3ee3db=this[_0x296c6b(0x245)]['get'](_0x340be8);return _0x3ee3db!==void 0x0&&window[_0x296c6b(0x31a)](_0x3ee3db),this['_localStorageService'][_0x296c6b(0x290)](_0x5850c1(_0x340be8),this['_cachedData'][_0x296c6b(0x1a4)](_0x340be8))['then'](()=>this[_0x296c6b(0x245)]['delete'](_0x340be8));}async[_0x2d19ee(0x219)](){const _0x3b6a95=_0x2d19ee,_0x5987bb=[];this[_0x3b6a95(0x245)][_0x3b6a95(0x136)]((_0x29cf69,_0x1d223c)=>{const _0x296d15=_0x3b6a95;window[_0x296d15(0x31a)](_0x29cf69),_0x5987bb[_0x296d15(0x1bb)](this[_0x296d15(0x27e)](_0x1d223c)[_0x296d15(0x1b7)](()=>{const _0x541c5e=_0x296d15;this[_0x541c5e(0x245)]['delete'](_0x1d223c);}));}),await Promise[_0x3b6a95(0x14c)](_0x5987bb);}};He=bn([Ue(0x0,_0x46a8a4),Ue(0x1,_0x12194a),Ue(0x2,_0x13e3c7(_0x1c8bce))],He);class Ln extends _0x5b8c04{constructor(){const _0x5472f4=_0x2d19ee;super(),_(this,_0x5472f4(0x34f)),this[_0x5472f4(0x34f)]=_0x197cc9(window,'popstate')[_0x5472f4(0x359)](_0xefe94(this[_0x5472f4(0x339)]),_0x240f5f(0x1),_0x11e4f1(void 0x0));}[_0x2d19ee(0x1f6)](_0x197f8a,_0x8c19c4,_0x1d6ea1=!0x1){const _0x212600=_0x2d19ee,_0x492818=new URL(window[_0x212600(0x1f3)]['href']);_0x492818[_0x212600(0x2e7)]['set'](_0x197f8a,_0x8c19c4),_0x1d6ea1?window[_0x212600(0x1bd)][_0x212600(0x1d2)]('','',_0x492818[_0x212600(0x202)]()):window[_0x212600(0x1bd)]['pushState']('','',_0x492818[_0x212600(0x202)]());}[_0x2d19ee(0x260)](_0x3335e7,_0x552081=!0x1){const _0x278315=_0x2d19ee,_0x63faa=new URL(window[_0x278315(0x1f3)]['href']);_0x63faa['searchParams'][_0x278315(0x20a)](_0x3335e7),_0x552081?window[_0x278315(0x1bd)][_0x278315(0x1d2)]('','',_0x63faa[_0x278315(0x202)]()):window['history'][_0x278315(0x24e)]('','',_0x63faa[_0x278315(0x202)]());}[_0x2d19ee(0x172)](_0x2e6620){const _0x2ce507=_0x2d19ee;var _0xe5443b;return(_0xe5443b=new URL(window[_0x2ce507(0x1f3)][_0x2ce507(0x226)])['searchParams'][_0x2ce507(0x1a4)](_0x2e6620))!=null?_0xe5443b:void 0x0;}}var Un=Object[_0x2d19ee(0x18c)],Mn=Object['getOwnPropertyDescriptor'],An=(_0x8b4961,_0x37524b,_0x1c0475)=>_0x37524b in _0x8b4961?Un(_0x8b4961,_0x37524b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1c0475}):_0x8b4961[_0x37524b]=_0x1c0475,Pn=(_0xca2858,_0xa3910f,_0x51b750,_0x2a05e7)=>{for(var _0x22df6a=_0x2a05e7>0x1?void 0x0:_0x2a05e7?Mn(_0xa3910f,_0x51b750):_0xa3910f,_0x50c4f1=_0xca2858['length']-0x1,_0x9ca1b7;_0x50c4f1>=0x0;_0x50c4f1--)(_0x9ca1b7=_0xca2858[_0x50c4f1])&&(_0x22df6a=_0x9ca1b7(_0x22df6a)||_0x22df6a);return _0x22df6a;},Me=(_0xb87721,_0x3925dc)=>(_0x48ee5a,_0xf9df4f)=>_0x3925dc(_0x48ee5a,_0xf9df4f,_0xb87721),wn=(_0x4fa227,_0x2913f8,_0x2c9dfb)=>An(_0x4fa227,_0x2913f8+'',_0x2c9dfb);const yn=_0x2d19ee(0x2c7);let Ye=class extends _0x3c443e{constructor(_0x4071f0=_t,_0x3d63ab,_0x574f6b,_0x2f1969){const _0x39e09b=_0x2d19ee;super(),this[_0x39e09b(0x2a3)]=_0x4071f0,this[_0x39e09b(0x23e)]=_0x3d63ab,this[_0x39e09b(0x2b2)]=_0x574f6b,this[_0x39e09b(0x13a)]=_0x2f1969;const {..._0x21f80d}=_0x2b7521({},_t,this[_0x39e09b(0x2a3)]);this[_0x39e09b(0x13a)][_0x39e09b(0x263)](hn,_0x21f80d);}[_0x2d19ee(0x2b9)](){const _0x232373=_0x2d19ee;this['_registerDependencies'](),this[_0x232373(0x253)]();}[_0x2d19ee(0x13d)](){const _0x30d1e4=_0x2d19ee;this[_0x30d1e4(0x2fe)]();}[_0x2d19ee(0x239)](){const _0x126b6c=_0x2d19ee;var _0x5f44d9;const _0x3a56e1=[[Ke],[Ie],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x8a83ca,{'useClass':_0x1d6857}],[_0x26b1ca,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0x126b6c(0x2a3)]['enableFrontendLog']&&_0x3a56e1[_0x126b6c(0x1bb)]([le]),_0x2c2aad(this[_0x126b6c(0x2b2)],_0x3b0ae8(_0x3a56e1,(_0x5f44d9=this[_0x126b6c(0x2a3)])==null?void 0x0:_0x5f44d9[_0x126b6c(0x15c)]));}[_0x2d19ee(0x2fe)](){const _0x3f6b56=_0x2d19ee;this[_0x3f6b56(0x1b6)](this[_0x3f6b56(0x23e)][_0x3f6b56(0x237)](_0x1de887['UNIVER_DOC'],[Fe])),this[_0x3f6b56(0x1b6)](this[_0x3f6b56(0x23e)][_0x3f6b56(0x237)](_0x1de887[_0x3f6b56(0x225)],[ke]));}[_0x2d19ee(0x253)](){const _0x4dc292=_0x2d19ee;_0x248c4c(this[_0x4dc292(0x2b2)],[[H],[ae],[Se],[_e],[ce],[Ie]]),this['_config']['enableFrontendLog']&&_0x248c4c(this['_injector'],[[le]]);}};wn(Ye,'pluginName',yn),Ye=Pn([_0x3f4a8a(_0x3b5370),Me(0x1,_0x3e8801),Me(0x2,_0x13e3c7(_0x6717c8)),Me(0x3,_0x46a8a4)],Ye);var $n=Object['getOwnPropertyDescriptor'],xn=(_0x318c35,_0x515852,_0xff9462,_0x5f3898)=>{const _0x13d982=_0x2d19ee;for(var _0x21fea2=_0x5f3898>0x1?void 0x0:_0x5f3898?$n(_0x515852,_0xff9462):_0x515852,_0xcf615=_0x318c35[_0x13d982(0x375)]-0x1,_0x266341;_0xcf615>=0x0;_0xcf615--)(_0x266341=_0x318c35[_0xcf615])&&(_0x21fea2=_0x266341(_0x21fea2)||_0x21fea2);return _0x21fea2;},J=(_0x519a48,_0x47e511)=>(_0x237372,_0x5d70d5)=>_0x47e511(_0x237372,_0x5d70d5,_0x519a48);let ut=class extends _0x1caedd{constructor(_0x425599,_0x409021,_0x382d95,_0x230b83,_0x5f0a2a){super(_0x425599,_0x409021,_0x382d95,_0x230b83,_0x5f0a2a);}async['createSocket'](_0x1d62b1){const _0x197c04=_0x2d19ee,_0x1adc14=await this[_0x197c04(0x36c)](),_0x4fbeff=this[_0x197c04(0x22d)](_0x1d62b1,_0x1adc14);return this[_0x197c04(0x37b)](_0x4fbeff);}[_0x2d19ee(0x22d)](_0x383529,_0x346137){const _0xe22fd9=_0x2d19ee,_0x498321=typeof window>'u'?new URL(_0x383529):new URL(_0x383529,window[_0xe22fd9(0x1f3)][_0xe22fd9(0x307)]);_0x498321['searchParams'][_0xe22fd9(0x165)](_0xe22fd9(0x24a),_0x346137);const _0x1ba993=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0xe22fd9(0x1f3)][_0xe22fd9(0x353)]);return _0x1ba993[_0xe22fd9(0x1a4)]('runId')&&_0x498321[_0xe22fd9(0x2e7)][_0xe22fd9(0x165)]('runId',_0x1ba993[_0xe22fd9(0x1a4)]('runId')),_0x498321[_0xe22fd9(0x202)]();}async[_0x2d19ee(0x36c)](){const _0x5cb196=_0x2d19ee;var _0x28e325,_0x47b39c,_0x14b4c2;const _0x21f1ea=this[_0x5cb196(0x13a)][_0x5cb196(0x195)](_0x189603),_0x486695=(_0x28e325=_0x21f1ea==null?void 0x0:_0x21f1ea[_0x5cb196(0x2fb)])!=null?_0x28e325:_0x3e7782;return(_0x14b4c2=(_0x47b39c=(await this[_0x5cb196(0x26e)]['get'](_0x486695,{'headers':{'Content-Type':_0x5cb196(0x1b3)}}))[_0x5cb196(0x285)])==null?void 0x0:_0x47b39c[_0x5cb196(0x1fd)])!=null?_0x14b4c2:'';}};ut=xn([J(0x0,_0x13e3c7(_0x6717c8)),J(0x1,_0x13e3c7(_0x58299b)),J(0x2,_0x46a8a4),J(0x3,_0x2bfead),J(0x4,_0x35e927)],ut);var Bn=Object[_0x2d19ee(0x2a7)],Fn=(_0x5ce624,_0xfc550f,_0x3d3c17,_0x4b98ef)=>{for(var _0x977204=_0x4b98ef>0x1?void 0x0:_0x4b98ef?Bn(_0xfc550f,_0x3d3c17):_0xfc550f,_0x40c4f5=_0x5ce624['length']-0x1,_0x1c4d1e;_0x40c4f5>=0x0;_0x40c4f5--)(_0x1c4d1e=_0x5ce624[_0x40c4f5])&&(_0x977204=_0x1c4d1e(_0x977204)||_0x977204);return _0x977204;},Ae=(_0xcb0da0,_0x585f96)=>(_0x23acae,_0x3ac667)=>_0x585f96(_0x23acae,_0x3ac667,_0xcb0da0);let dt=class extends _0x55618d{constructor(_0x3caaaf,_0x38d233,_0x19e507){const _0xba47fd=_0x2d19ee;super(),this[_0xba47fd(0x2f1)]=_0x3caaaf,this[_0xba47fd(0x26e)]=_0x38d233,this['_configService']=_0x19e507;}async['runOnServer'](_0x1d119e,_0x2fddfc,_0x58d554,..._0x5a9146){const _0xd7c55d=_0x2d19ee;var _0x44568b,_0x2af588,_0x3d61fc,_0x5fc2d6;const _0x4f4098=this[_0xd7c55d(0x2f1)]['getFocusedUnit']();if(!_0x4f4098)throw new Error(_0xd7c55d(0x1e0));const _0x38f983=((_0x44568b=this[_0xd7c55d(0x13a)]['getConfig'](_0x26e0b7))!=null?_0x44568b:_0x36e979)+'/'+_0x1d119e+_0xd7c55d(0x34b)+_0x2fddfc,_0x2e8a06=new URL(window[_0xd7c55d(0x1f3)][_0xd7c55d(0x226)]),_0x2beeac={'scriptId':_0x1d119e,'runId':(_0x2af588=_0x2e8a06['searchParams'][_0xd7c55d(0x1a4)](_0xd7c55d(0x347)))!=null?_0x2af588:'','function':_0x2fddfc,'unitId':_0x4f4098[_0xd7c55d(0x377)](),'argsOfFunction':JSON[_0xd7c55d(0x32a)](_0x5a9146),'invokeId':(_0x3d61fc=_0x58d554[_0xd7c55d(0x300)])!=null?_0x3d61fc:'','executionId':(_0x5fc2d6=_0x58d554[_0xd7c55d(0x234)])!=null?_0x5fc2d6:''};try{const _0x4dde07=await this[_0xd7c55d(0x26e)]['post'](_0x38f983,{'body':_0x2beeac});return _0x4dde07[_0xd7c55d(0x285)][_0xd7c55d(0x1f9)]&&_0x4dde07[_0xd7c55d(0x285)][_0xd7c55d(0x1f9)]['code']!==Z['OK']?'Failed':_0x4dde07[_0xd7c55d(0x285)][_0xd7c55d(0x304)];}catch{return _0xd7c55d(0x2d0);}}};dt=Fn([Ae(0x0,_0x5ea64d),Ae(0x1,_0x13e3c7(_0x58299b)),Ae(0x2,_0x46a8a4)],dt);const St=0x7530,It=_0x2d19ee(0x15e);class rr extends _0x55618d{constructor(){const _0x245d20=_0x2d19ee;super(),_(this,_0x245d20(0x167),_0x377b4b()),_(this,_0x245d20(0x2ed),new Set()),_(this,_0x245d20(0x145),new Map()),_(this,_0x245d20(0x386),null),_(this,'_clearOtherTimers',new Map()),_(this,_0x245d20(0x2bd),new Map()),this['_init']();}['dispose'](){const _0x5ab909=_0x2d19ee;super[_0x5ab909(0x2cf)](),this[_0x5ab909(0x1aa)][_0x5ab909(0x136)]((_0x4cee4f,_0x21914f)=>this[_0x5ab909(0x2f7)](_0x21914f)),this[_0x5ab909(0x386)]&&window['clearInterval'](this[_0x5ab909(0x386)]);}['getUnitStatus$'](_0x4f7e4e){const _0xf6e0a2=_0x2d19ee;return this[_0xf6e0a2(0x2bc)](_0x4f7e4e)[_0xf6e0a2(0x359)](_0x52d636());}['editingUnit'](_0x19015f){const _0x3a53f8=_0x2d19ee;this['_selfUnitIDs'][_0x3a53f8(0x26a)]===0x0&&this[_0x3a53f8(0x2a8)](),this[_0x3a53f8(0x2ed)]['add'](_0x19015f),this[_0x3a53f8(0x1a3)]({'type':0x0,'memberID':this[_0x3a53f8(0x167)],'unitIDs':[_0x19015f],'isForwarded':!0x1});}[_0x2d19ee(0x216)](_0x475a7b){const _0x16e08e=_0x2d19ee;this[_0x16e08e(0x2ed)][_0x16e08e(0x20a)](_0x475a7b),this[_0x16e08e(0x2ed)][_0x16e08e(0x26a)]===0x0&&this[_0x16e08e(0x386)]&&window['clearInterval'](this[_0x16e08e(0x386)]);}['_init'](){const _0x215c95=_0x2d19ee;this[_0x215c95(0x1b6)](_0x5684e2(_0x197cc9(window,_0x215c95(0x379))[_0x215c95(0x150)](_0x269255=>{const _0x836598=_0x215c95;if(_0x269255[_0x836598(0x1c3)]!==It||!_0x269255[_0x836598(0x36b)])return;const _0x5a654d=JSON[_0x836598(0x20f)](_0x269255[_0x836598(0x36b)]);this[_0x836598(0x311)](_0x5a654d);}))),window[_0x215c95(0x25b)]('unload',()=>this[_0x215c95(0x1a3)]({'type':0x1,'memberID':this[_0x215c95(0x167)],'unitIDs':Array[_0x215c95(0x292)](this[_0x215c95(0x2ed)])}));}[_0x2d19ee(0x311)](_0x3ef991){const _0x1e0c00=_0x2d19ee;switch(_0x3ef991['type']){case 0x0:this[_0x1e0c00(0x259)](_0x3ef991);break;case 0x1:this['_handleLeaveEvent'](_0x3ef991);break;case 0x2:this[_0x1e0c00(0x322)](_0x3ef991);break;}}[_0x2d19ee(0x259)](_0x2fe8e5){const _0x42bc5f=_0x2d19ee,{unitIDs:_0x2cf65f,memberID:_0x2b265a,isForwarded:_0x41f897}=_0x2fe8e5;_0x2cf65f['forEach'](_0x5a0f9b=>{const _0x4da5ca=_0x3b77;if(!_0x41f897&&this[_0x4da5ca(0x145)]['has'](_0x5a0f9b)&&this[_0x4da5ca(0x2bc)](_0x5a0f9b)[_0x4da5ca(0x1a9)](_0x59d149[_0x4da5ca(0x196)]),!this[_0x4da5ca(0x145)][_0x4da5ca(0x230)](_0x5a0f9b)||!this[_0x4da5ca(0x145)][_0x4da5ca(0x1a4)](_0x5a0f9b)['has'](_0x2b265a)){const _0x58f465=this[_0x4da5ca(0x145)]['get'](_0x5a0f9b)||new Set();_0x58f465[_0x4da5ca(0x191)](_0x2b265a),this['_unitOnClients'][_0x4da5ca(0x165)](_0x5a0f9b,_0x58f465),this[_0x4da5ca(0x220)](_0x2b265a);}}),_0x41f897||this[_0x42bc5f(0x1a3)]({'type':0x0,'memberID':this[_0x42bc5f(0x167)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x2d19ee(0x220)](_0x354025){const _0x53e1cc=_0x2d19ee;this[_0x53e1cc(0x2f7)](_0x354025);const _0x206370=window[_0x53e1cc(0x14f)](()=>{const _0x8ec563=_0x53e1cc;this['_unitOnClients'][_0x8ec563(0x136)](_0x273db3=>{const _0x41a658=_0x8ec563;_0x273db3[_0x41a658(0x20a)](_0x354025);});},St*0x2);this['_clearOtherTimers'][_0x53e1cc(0x165)](_0x354025,_0x206370);}['_removeClearOtherTimer'](_0x389753){const _0x12850b=_0x2d19ee;if(this[_0x12850b(0x1aa)][_0x12850b(0x230)](_0x389753)){const _0x3d37be=this[_0x12850b(0x1aa)]['get'](_0x389753);_0x3d37be&&window[_0x12850b(0x31a)](_0x3d37be),this['_clearOtherTimers'][_0x12850b(0x165)](_0x389753,null);}}[_0x2d19ee(0x357)](_0x4d8fbe){const _0x58640f=_0x2d19ee,{memberID:_0x2c9bfa,unitIDs:_0x44ad08}=_0x4d8fbe;_0x44ad08['forEach'](_0x357d08=>{const _0x3bf183=_0x3b77;var _0xe82f03;const _0x11b38a=this[_0x3bf183(0x145)][_0x3bf183(0x1a4)](_0x357d08);_0x11b38a&&(_0x11b38a['delete'](_0x2c9bfa),(_0xe82f03=this['_ensureSubject'](_0x357d08))==null||_0xe82f03[_0x3bf183(0x1a9)](_0x11b38a[_0x3bf183(0x26a)]===0x0?_0x59d149[_0x3bf183(0x2b0)]:_0x59d149[_0x3bf183(0x196)]));}),this[_0x58640f(0x2f7)](_0x2c9bfa);}[_0x2d19ee(0x322)](_0x31d27a){const _0x5e6a42=_0x2d19ee;this[_0x5e6a42(0x220)](_0x31d27a['memberID']);}[_0x2d19ee(0x1a3)](_0x6877ba){const _0x4a814b=_0x2d19ee;localStorage[_0x4a814b(0x290)](It,JSON[_0x4a814b(0x32a)](_0x6877ba));}[_0x2d19ee(0x2a8)](){const _0x1a79d0=_0x2d19ee;this['_heartbeatTimer']=window[_0x1a79d0(0x238)](()=>{const _0x59aff8=_0x1a79d0;this[_0x59aff8(0x1a3)]({'type':0x2,'memberID':this[_0x59aff8(0x167)]});},St);}[_0x2d19ee(0x2bc)](_0x2bc1e6){const _0x5a3c59=_0x2d19ee;return this['_unitStatus'][_0x5a3c59(0x230)](_0x2bc1e6)||this['_unitStatus']['set'](_0x2bc1e6,new _0x5689a5(_0x59d149[_0x5a3c59(0x2b0)])),this[_0x5a3c59(0x2bd)][_0x5a3c59(0x1a4)](_0x2bc1e6);}}export{ut as BrowserCollaborationSocketService,ce as CollaborationDataLoaderController,ae as DesktopCollaborationStatusDisplayController,yt as IURLService,dt as RemoteUniscriptService,tn as SheetCollabCursorShape,Ye as UniverCollaborationClientUIPlugin,rr as WebBrowserSingleActiveUnitService,Ln as WebURLService};
1
+ const _0x35261d=_0x4abd;(function(_0x480bc8,_0x193556){const _0x4e908e=_0x4abd,_0x59d378=_0x480bc8();while(!![]){try{const _0x301076=-parseInt(_0x4e908e(0x15a))/0x1+parseInt(_0x4e908e(0x1f0))/0x2*(parseInt(_0x4e908e(0xa7))/0x3)+parseInt(_0x4e908e(0x100))/0x4*(-parseInt(_0x4e908e(0x1a9))/0x5)+-parseInt(_0x4e908e(0x20d))/0x6*(-parseInt(_0x4e908e(0x26a))/0x7)+parseInt(_0x4e908e(0x130))/0x8*(parseInt(_0x4e908e(0x203))/0x9)+parseInt(_0x4e908e(0x253))/0xa+parseInt(_0x4e908e(0x292))/0xb*(-parseInt(_0x4e908e(0x284))/0xc);if(_0x301076===_0x193556)break;else _0x59d378['push'](_0x59d378['shift']());}catch(_0x47a395){_0x59d378['push'](_0x59d378['shift']());}}}(_0xb14e,0xdbd0c));var Yt=Object[_0x35261d(0x28f)],Wt=(_0x5df013,_0x553c4d,_0x10cac9)=>_0x553c4d in _0x5df013?Yt(_0x5df013,_0x553c4d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x10cac9}):_0x5df013[_0x553c4d]=_0x10cac9,_=(_0x1e4f2c,_0x21bdd1,_0x3f7bd1)=>Wt(_0x1e4f2c,typeof _0x21bdd1!='symbol'?_0x21bdd1+'':_0x21bdd1,_0x3f7bd1);import{jsx as _0x123b37,jsxs as _0x136bd2}from'react/jsx-runtime';import{CollaborationStatus as _0x2481d0,CollaborationSessionService as _0x161ab7,CollaborationController as _0x230f4,DataLoaderService as _0x2a0ba1,MemberService as _0x1d803f,SessionStatus as _0x90c74a,CollaborationUIEventService as _0x2448af,CollaborationUIEventId as _0x2cf9a6,ILocalCacheService as _0xd5c05d,DocCollaborationEntity as _0x3903e1,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x1dee33,getLocalCacheKey as _0x5c11c9,LOCAL_CACHE_INTERVAL as _0x1717c5,LOCAL_CACHE_INTERVAL_KEY as _0x5143e0,UniverCollaborationClientPlugin as _0x5eb974,CollaborationSocketService as _0xb3f5c5,DEFAULT_WS_SESSION_TICKET_URL as _0x5aed54,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x14929d,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x3879f6,UnitStatus as _0x4ee52f}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x33240e,Inject as _0x526d56,Injector as _0x3393f4,Disposable as _0x574664,IUniverInstanceService as _0x4da50f,createIdentifier as _0x41b37a,Optional as _0x268191,RxDisposable as _0x5cd561,Workbook as _0x1f4ff6,ILogService as _0x17989f,ICommandService as _0x431d0d,DOC_RANGE_TYPE as _0x4e947f,debounce as _0x5a5de3,Rectangle as _0x3e30a0,DisposableCollection as _0x262a72,toDisposable as _0x511582,UniverInstanceType as _0x388843,generateRandomId as _0x18acb6,COLORS as _0x311919,ColorKit as _0x12767b,ThemeService as _0x160c6e,fromEventSubject as _0x179326,Tools as _0x3faafe,CommandType as _0x120b22,CanceledError as _0x1a6f68,isFormulaString as _0x3a2fd2,isFormulaId as _0x388f83,IConfigService as _0x5905c3,ILocalStorageService as _0x151749,DependentOn as _0x8c3cbd,Plugin as _0x45b27a,merge as _0x2fa91d,registerDependencies as _0xdb3599,mergeOverrideWithDependencies as _0x596139,touchDependencies as _0x2e4ee7}from'@univerjs/core';import{useObservable as _0x42eacf,useDependency as _0x5109a4,BuiltInUIPart as _0x4fc840,connectInjector as _0x422396,IUIPartsService as _0x2e4356,IBeforeCloseService as _0xcf29c0,IMessageService as _0xc6b805,INotificationService as _0x2c5f9a}from'@univerjs/ui';import{BehaviorSubject as _0x190ae5,switchMap as _0xef42d4,of as _0x53ce20,takeUntil as _0x4bde4f,debounceTime as _0x4e6ba7,Subject as _0x41a143,filter as _0x3f794e,merge as _0x152dc6,combineLatest as _0x251939,fromEvent as _0x2e0772,shareReplay as _0x4ecbeb,mapTo as _0x44e1c9,distinctUntilChanged as _0x1d9c3f}from'rxjs';function _0x4abd(_0x3ebf4e,_0x424c05){_0x3ebf4e=_0x3ebf4e-0x96;const _0xb14e1a=_0xb14e();let _0x4abda6=_0xb14e1a[_0x3ebf4e];return _0x4abda6;}import{Tooltip as _0x33d14c,clsx as _0x1d332e,MessageType as _0x2edb7e}from'@univerjs/design';import{useRef as _0x4b765c,createElement as _0xcaa144,forwardRef as _0x3cd533,useCallback as _0x7d7eae}from'react';import{IRemoteInstanceService as _0x4025fd}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0xdcd55e,RefRangeService as _0x565041,SetSelectionsOperation as _0x16a987,SheetsSelectionsService as _0x2a5f3c,EffectRefRangId as _0x4acbd2,handleIRemoveRow as _0x4cfe5f,handleIRemoveCol as _0x2d9b28,handleMoveRange as _0x31fea7,handleInsertRow as _0xe2aa24,handleInsertRangeMoveRight as _0x135739,handleInsertRangeMoveDown as _0x256dc5,handleInsertCol as _0x2efea8,handleDeleteRangeMoveUp as _0x37e305,handleDeleteRangeMoveLeft as _0x15d3f4,runRefRangeMutations as _0x2bc501}from'@univerjs/sheets';import{Shape as _0x4b83f3,Rect as _0x3fac0b,getColor as _0x12e3fb,RegularPolygon as _0x44a4ed,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x2258d1,Vector2 as _0x3f118f,SHEET_VIEWPORT_KEY as _0x315cae,IRenderManagerService as _0x1589e8}from'@univerjs/engine-render';import{HTTPService as _0x1165a8,ISocketService as _0x2d2f28,WebSocketService as _0x5dbb21}from'@univerjs/network';import{IDocClipboardService as _0x3ee682,NodePositionConvertToCursor as _0x593536,NodePositionConvertToRectRange as _0x816e09,TEXT_RANGE_LAYER_INDEX as _0x4e7e07,SetDocZoomRatioOperation as _0x246c84,DocIMEInputManagerService as _0x5a23cc,DocStateChangeManagerService as _0x2a92a0}from'@univerjs/docs-ui';import{IImageIoService as _0x15ac52}from'@univerjs/drawing';import{CollaborationEvent as _0x31166c,isTransformMutationFailure as _0x384eb6,ITransformService as _0x2bb8a5,isTransformMutationsWithChangesetSuccess as _0x5a6ed3,RevisionService as _0x507cc2,ISnapshotServerService as _0x2760d7}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x805b1b,RichTextEditingMutation as _0x12357d,DocSelectionManagerService as _0x40ad8f,DocSkeletonManagerService as _0x144934}from'@univerjs/docs';import{deserializeRangeWithSheet as _0xac7da6,serializeRangeWithSheet as _0xf40097,FormulaExecuteStageType as _0x2261f9,FormulaExecutedStateType as _0x58475e,SetFormulaCalculationStartMutation as _0x3d9f3b,SetFormulaCalculationNotificationMutation as _0x4f5bc0}from'@univerjs/engine-formula';import{map as _0x3b7002,filter as _0x41a922,throttleTime as _0x5543f9,takeUntil as _0x45c0b6,switchMap as _0x4f1383}from'rxjs/operators';import{SheetSkeletonManagerService as _0x18e06d,getCoordByCell as _0xca1a2a,getSheetObject as _0x5c8b20}from'@univerjs/sheets-ui';function Ge({ref:_0x30d41a,..._0x289125}){const _0x394ede=_0x35261d,{icon:_0x2a16c9,id:_0x37bc36,className:_0x11f177,extend:_0x4256b2,..._0x2fa735}=_0x289125,_0x12ba45=(_0x394ede(0x17f)+_0x37bc36+'\x20'+(_0x11f177||''))['trim'](),_0x3fe149=_0x4b765c('_'+vi());return At(_0x2a16c9,''+_0x37bc36,{'defIds':_0x2a16c9[_0x394ede(0x14e)],'idSuffix':_0x3fe149[_0x394ede(0xf4)]},{'ref':_0x30d41a,'className':_0x12ba45,..._0x2fa735},_0x4256b2);}function At(_0x946114,_0x511b4e,_0x4602a2,_0x4b6c3c,_0x1f6850){const _0x37b246=_0x35261d;return _0xcaa144(_0x946114[_0x37b246(0x140)],{'key':_0x511b4e,...gi(_0x946114,_0x4602a2,_0x1f6850),..._0x4b6c3c},(Ei(_0x946114,_0x4602a2)[_0x37b246(0x12f)]||[])[_0x37b246(0x1ba)]((_0x43ec80,_0x41d0d5)=>At(_0x43ec80,_0x511b4e+'-'+_0x946114[_0x37b246(0x140)]+'-'+_0x41d0d5,_0x4602a2,void 0x0,_0x1f6850)));}function gi(_0x7b872e,_0x18e800,_0x346b5f){const _0xcf5fb4=_0x35261d,_0x481a99={..._0x7b872e[_0xcf5fb4(0xd4)]};_0x346b5f!=null&&_0x346b5f[_0xcf5fb4(0x21e)]&&_0x481a99[_0xcf5fb4(0xb4)]===_0xcf5fb4(0x21e)&&(_0x481a99[_0xcf5fb4(0xb4)]=_0x346b5f[_0xcf5fb4(0x21e)]),_0x7b872e[_0xcf5fb4(0x140)]===_0xcf5fb4(0xcc)&&_0x481a99['id']&&(_0x481a99['id']=_0x481a99['id']+_0x18e800[_0xcf5fb4(0x2bb)]),Object[_0xcf5fb4(0xb5)](_0x481a99)[_0xcf5fb4(0xd9)](([_0x122d69,_0x156457])=>{const _0x1194f8=_0xcf5fb4;_0x122d69===_0x1194f8(0xcc)&&typeof _0x156457=='string'&&(_0x481a99[_0x122d69]=_0x156457[_0x1194f8(0x12e)](/url\(#(.*)\)/,'url(#$1'+_0x18e800['idSuffix']+')'));});const {defIds:_0x3d26cf}=_0x18e800;return!_0x3d26cf||_0x3d26cf[_0xcf5fb4(0x2cc)]===0x0||(_0x7b872e['tag']==='use'&&_0x481a99[_0xcf5fb4(0xed)]&&(_0x481a99[_0xcf5fb4(0xed)]=_0x481a99['xlink:href']+_0x18e800[_0xcf5fb4(0x2bb)]),Object[_0xcf5fb4(0xb5)](_0x481a99)[_0xcf5fb4(0xd9)](([_0x2e10ef,_0x12be24])=>{const _0x59bc89=_0xcf5fb4;typeof _0x12be24==_0x59bc89(0x239)&&(_0x481a99[_0x2e10ef]=_0x12be24['replace'](/url\(#(.*)\)/,_0x59bc89(0xbc)+_0x18e800[_0x59bc89(0x2bb)]+')'));})),_0x481a99;}function Ei(_0x1ff821,_0x42d38d){const _0x526a64=_0x35261d;var _0x3125d8;const {defIds:_0x4d9c54}=_0x42d38d;return!_0x4d9c54||_0x4d9c54[_0x526a64(0x2cc)]===0x0?_0x1ff821:_0x1ff821[_0x526a64(0x140)]==='defs'&&((_0x3125d8=_0x1ff821['children'])!=null&&_0x3125d8[_0x526a64(0x2cc)])?{..._0x1ff821,'children':_0x1ff821[_0x526a64(0x12f)]['map'](_0x401037=>typeof _0x401037[_0x526a64(0xd4)]['id']==_0x526a64(0x239)&&_0x4d9c54&&_0x4d9c54[_0x526a64(0x1be)](_0x401037[_0x526a64(0xd4)]['id'])?{..._0x401037,'attrs':{..._0x401037[_0x526a64(0xd4)],'id':_0x401037[_0x526a64(0xd4)]['id']+_0x42d38d[_0x526a64(0x2bb)]}}:_0x401037)}:_0x1ff821;}function vi(){const _0x2312b4=_0x35261d;return Math[_0x2312b4(0x1ef)]()[_0x2312b4(0xdc)](0x24)[_0x2312b4(0x231)](0x2,0x8);}Ge['displayName']=_0x35261d(0x252);const pi={'tag':_0x35261d(0x205),'attrs':{'xmlns':_0x35261d(0x255),'fill':_0x35261d(0x260),'viewBox':_0x35261d(0x2e6),'width':_0x35261d(0x228),'height':_0x35261d(0x228)},'children':[{'tag':'g','attrs':{'clipPath':_0x35261d(0x1b1)},'children':[{'tag':_0x35261d(0x17b),'attrs':{'stroke':_0x35261d(0x29e),'d':_0x35261d(0x2e2),'strokeLinecap':_0x35261d(0x171),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x35261d(0x275),'attrs':{'id':_0x35261d(0x1d4)},'children':[{'tag':_0x35261d(0x17b),'attrs':{'fill':'white','d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x35261d(0x1d4)]},Pt=_0x3cd533(function(_0x2746d1,_0x22bc7d){const _0x4711ec=_0x35261d;return _0xcaa144(Ge,Object[_0x4711ec(0x13f)]({},_0x2746d1,{'id':_0x4711ec(0x218),'ref':_0x22bc7d,'icon':pi}));});Pt[_0x35261d(0x9d)]=_0x35261d(0x234);const Oi={'tag':_0x35261d(0x205),'attrs':{'xmlns':_0x35261d(0x255),'fill':_0x35261d(0x260),'viewBox':_0x35261d(0xbb),'width':_0x35261d(0x228),'height':_0x35261d(0x228)},'children':[{'tag':'g','attrs':{'clipPath':_0x35261d(0x197)},'children':[{'tag':'path','attrs':{'stroke':_0x35261d(0x29e),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x35261d(0x171),'strokeLinejoin':_0x35261d(0x171),'strokeWidth':1.2}}]},{'tag':_0x35261d(0x11b),'attrs':{},'children':[{'tag':_0x35261d(0x275),'attrs':{'id':_0x35261d(0xe3)},'children':[{'tag':'path','attrs':{'fill':_0x35261d(0x1b5),'d':'M0\x200H16V16H0z','transform':_0x35261d(0x10e)}}]}]}],'defIds':[_0x35261d(0xe3)]},wt=_0x3cd533(function(_0x4c099f,_0x42c766){const _0x3f4af7=_0x35261d;return _0xcaa144(Ge,Object[_0x3f4af7(0x13f)]({},_0x4c099f,{'id':'on-line-icon','ref':_0x42c766,'icon':Oi}));});wt['displayName']=_0x35261d(0xe9);function Ti(_0x3b856e){const _0x1c63e8=_0x35261d;switch(_0x3b856e){case _0x2481d0['OFFLINE']:return _0x1c63e8(0x2a0);case _0x2481d0[_0x1c63e8(0x19e)]:return _0x1c63e8(0x1d7);case _0x2481d0[_0x1c63e8(0xe8)]:return _0x1c63e8(0x9e);case _0x2481d0[_0x1c63e8(0x1c8)]:return _0x1c63e8(0x121);case _0x2481d0[_0x1c63e8(0xcd)]:case _0x2481d0['AWAITING_WITH_PENDING']:return'collabStatus.syncing';case _0x2481d0[_0x1c63e8(0xbf)]:case _0x2481d0['PENDING']:return _0x1c63e8(0x1cd);}}function Ci(_0xd78d7d){const _0x523be6=_0x35261d,{status$:_0x39e084}=_0xd78d7d,_0x173401=_0x42eacf(_0x39e084,_0x2481d0['NOT_COLLAB']),_0x2be36a=_0x5109a4(_0x33240e),_0x281468=_0x5109a4(_0x161ab7),_0x145a4c=_0x173401!==_0x2481d0[_0x523be6(0x2a6)],_0x38f4f4=_0x2be36a['t'](Ti(_0x173401)),_0x51d15f=_0x145a4c?_0x123b37(wt,{}):_0x123b37(Pt,{}),_0xe9f397=_0x7d7eae(()=>{const _0x5d5186=_0x523be6;_0x145a4c||_0x281468[_0x5d5186(0xdb)]();},[_0x145a4c,_0x281468]);function _0x3ccacf(){const _0x39de62=_0x523be6;return _0x136bd2(_0x39de62(0xe4),{'className':_0x39de62(0x1d8),'onClick':_0xe9f397,'children':[_0x123b37(_0x39de62(0xe4),{'className':_0x1d332e(_0x39de62(0x276),{'univer-text-green-500':_0x145a4c,'univer-text-red-500':!_0x145a4c}),'children':_0x51d15f}),_0x123b37(_0x39de62(0xe4),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x38f4f4})]});}return _0x145a4c?_0x3ccacf():_0x123b37(_0x33d14c,{'title':_0x2be36a['t'](_0x523be6(0x18b)),'children':_0x3ccacf()});}var Ri=Object[_0x35261d(0x2ec)],Di=(_0x5a6b48,_0x3d96f9,_0x239543,_0x48f678)=>{const _0x246c1a=_0x35261d;for(var _0x468d07=_0x48f678>0x1?void 0x0:_0x48f678?Ri(_0x3d96f9,_0x239543):_0x3d96f9,_0x184e07=_0x5a6b48[_0x246c1a(0x2cc)]-0x1,_0x555169;_0x184e07>=0x0;_0x184e07--)(_0x555169=_0x5a6b48[_0x184e07])&&(_0x468d07=_0x555169(_0x468d07)||_0x468d07);return _0x468d07;},se=(_0x5cbe86,_0x5670a4)=>(_0x514252,_0x441f09)=>_0x5670a4(_0x514252,_0x441f09,_0x5cbe86);let ae=class extends _0x574664{constructor(_0x4b48ff,_0x1e19f8,_0x1a4528,_0x73e3e8){const _0x5d049b=_0x35261d;super(),_(this,_0x5d049b(0x142),new _0x190ae5(_0x2481d0[_0x5d049b(0x1c8)])),(this[_0x5d049b(0x108)]=_0x4b48ff,this[_0x5d049b(0x2de)]=_0x1e19f8,this['_collaborationController']=_0x1a4528,this[_0x5d049b(0x189)]=_0x73e3e8,this[_0x5d049b(0x107)](),this[_0x5d049b(0xee)]());}[_0x35261d(0xee)](){const _0x55472b=_0x35261d;this[_0x55472b(0x2ca)](this['_univerInstanceService'][_0x55472b(0x240)][_0x55472b(0x2e3)](_0xef42d4(()=>{const _0x16d689=_0x55472b,_0x5cea38=this['_univerInstanceService']['getFocusedUnit']();return _0x5cea38?this['_collaborationController'][_0x16d689(0x2c7)](_0x5cea38[_0x16d689(0x10f)]()):_0x53ce20(null);}),_0xef42d4(_0x5d39a8=>_0x5d39a8?_0x5d39a8[_0x55472b(0x227)]:_0x53ce20(_0x2481d0[_0x55472b(0x1c8)])))[_0x55472b(0x223)](_0x55c037=>{const _0x3d5d1b=_0x55472b;this[_0x3d5d1b(0x142)][_0x3d5d1b(0x106)](_0x55c037);}));}[_0x35261d(0x107)](){const _0x41cbb9=_0x35261d;this['disposeWithMe'](this[_0x41cbb9(0x189)][_0x41cbb9(0x226)](_0x4fc840[_0x41cbb9(0x152)],()=>_0x422396(Ni({'status$':this['_status$'][_0x41cbb9(0x173)]()}),this[_0x41cbb9(0x2de)])));}};ae=Di([se(0x0,_0x4da50f),se(0x1,_0x526d56(_0x3393f4)),se(0x2,_0x526d56(_0x230f4)),se(0x3,_0x2e4356)],ae);function Ni(_0x12e570){const {status$:_0x278215}=_0x12e570;return function(){return _0x123b37(Ci,{'status$':_0x278215});};}const yt=_0x41b37a('uni.network.url-service');var bi=Object[_0x35261d(0x2ec)],Li=(_0x20f059,_0x1978a,_0x498ce9,_0x496f3b)=>{for(var _0x446ae0=_0x496f3b>0x1?void 0x0:_0x496f3b?bi(_0x1978a,_0x498ce9):_0x1978a,_0xb3b32f=_0x20f059['length']-0x1,_0x1100ea;_0xb3b32f>=0x0;_0xb3b32f--)(_0x1100ea=_0x20f059[_0xb3b32f])&&(_0x446ae0=_0x1100ea(_0x446ae0)||_0x446ae0);return _0x446ae0;},K=(_0x28aebe,_0x446965)=>(_0x405060,_0x113ca9)=>_0x446965(_0x405060,_0x113ca9,_0x28aebe);let ce=class extends _0x5cd561{constructor(_0x13c029,_0x3a6527,_0x3aca2a,_0x5863dd,_0xcb83c4){const _0x45a69a=_0x35261d;super(),this['_urlService']=_0x13c029,this['_logService']=_0x3a6527,this[_0x45a69a(0x198)]=_0x3aca2a,this[_0x45a69a(0x99)]=_0x5863dd,_0xcb83c4?_0xcb83c4==null||_0xcb83c4['whenReady']()['then'](()=>this['_init']()):(this['_logService']['debug'](_0x45a69a(0x281),_0x45a69a(0x2d6)),this[_0x45a69a(0x187)]());}async[_0x35261d(0x187)](){const _0x18f89f=_0x35261d,_0xabd2a6=this[_0x18f89f(0xfa)][_0x18f89f(0x2dc)](_0x18f89f(0x22d)),_0x9830a3=this[_0x18f89f(0xfa)][_0x18f89f(0x2dc)](_0x18f89f(0x1d6)),_0x4bb9b2=this[_0x18f89f(0xfa)][_0x18f89f(0x2dc)]('subunit');if(!_0xabd2a6||!_0x9830a3){this[_0x18f89f(0x2cd)][_0x18f89f(0x232)](_0x18f89f(0x281),_0x18f89f(0x24b));return;}const _0x21fbc5=await this[_0x18f89f(0x99)][_0x18f89f(0xf3)](_0xabd2a6,Number(_0x9830a3),_0x4bb9b2);_0x21fbc5&&_0x21fbc5 instanceof _0x1f4ff6&&this[_0x18f89f(0xf1)](_0x21fbc5);}async[_0x35261d(0xf1)](_0x1fb909){const _0x428f8d=_0x35261d;await this['_updateSubUnitFromURLParams'](_0x1fb909),_0x1fb909[_0x428f8d(0x29a)][_0x428f8d(0x2e3)](_0x4bde4f(this['dispose$']))['subscribe'](_0x1bc2a6=>{const _0x52f647=_0x428f8d;_0x1bc2a6&&this[_0x52f647(0x1e0)](_0x1bc2a6);}),this['_urlService'][_0x428f8d(0x2b8)][_0x428f8d(0x2e3)](_0x4bde4f(this[_0x428f8d(0x2c1)]))[_0x428f8d(0x223)](()=>this['_updateSubUnitFromURLParams'](_0x1fb909));}['_updateURLWithCurrentState'](_0x8c200d,_0x58a172=!0x1){const _0x4202ad=_0x35261d,_0xe3ae30=this[_0x4202ad(0xfa)][_0x4202ad(0x2dc)](_0x4202ad(0x26d));_0x8c200d[_0x4202ad(0x2c6)]()!==_0xe3ae30&&this[_0x4202ad(0xfa)][_0x4202ad(0x269)](_0x4202ad(0x26d),_0x8c200d[_0x4202ad(0x2c6)](),_0x58a172);}async[_0x35261d(0x18f)](_0x393c5d){const _0x346ec3=_0x35261d;var _0x4669af;const _0x5508ad=this[_0x346ec3(0xfa)][_0x346ec3(0x2dc)]('subunit');if(!_0x5508ad||!_0x393c5d['getSheetBySheetId'](_0x5508ad)){const _0x42d464=_0x393c5d[_0x346ec3(0x9c)]()[0x0],_0x1fcb5b=_0x393c5d[_0x346ec3(0x1db)](_0x42d464);if(!_0x1fcb5b)return;this[_0x346ec3(0x1e0)](_0x1fcb5b,!0x0),await this[_0x346ec3(0x198)][_0x346ec3(0xf2)](_0xdcd55e['id'],{'unitId':_0x393c5d['getUnitId'](),'subUnitId':_0x42d464});return;}((_0x4669af=_0x393c5d[_0x346ec3(0x278)]())==null?void 0x0:_0x4669af[_0x346ec3(0x2c6)]())!==_0x5508ad&&await this[_0x346ec3(0x198)][_0x346ec3(0xf2)](_0xdcd55e['id'],{'unitId':_0x393c5d[_0x346ec3(0x10f)](),'subUnitId':_0x5508ad});}};ce=Li([K(0x0,yt),K(0x1,_0x17989f),K(0x2,_0x431d0d),K(0x3,_0x526d56(_0x2a0ba1)),K(0x4,_0x268191(_0x4025fd))],ce);var Ui=Object['getOwnPropertyDescriptor'],Mi=(_0x280108,_0x48f42d,_0x54440d,_0xc55850)=>{const _0x54da46=_0x35261d;for(var _0x458cf9=_0xc55850>0x1?void 0x0:_0xc55850?Ui(_0x48f42d,_0x54440d):_0x48f42d,_0x2eefca=_0x280108[_0x54da46(0x2cc)]-0x1,_0xa5c84b;_0x2eefca>=0x0;_0x2eefca--)(_0xa5c84b=_0x280108[_0x2eefca])&&(_0x458cf9=_0xa5c84b(_0x458cf9)||_0x458cf9);return _0x458cf9;},rt=(_0x8985de,_0x5b2135)=>(_0x1dff06,_0x1eb33a)=>_0x5b2135(_0x1dff06,_0x1eb33a,_0x8985de);let $e=class extends _0x5cd561{constructor(_0x5b16f3,_0x1e5da6){const _0x14958e=_0x35261d;super(),this[_0x14958e(0x10b)]=_0x5b16f3,this[_0x14958e(0x2ab)]=_0x1e5da6,this[_0x14958e(0x187)]();}[_0x35261d(0x187)](){const _0x140e9f=_0x35261d,_0x383f77=this;this[_0x140e9f(0x2ca)](this['_docClipboardService']['addClipboardHook']({'onBeforePasteImage':async _0x4cf8cc=>{const _0x5a6fcc=_0x140e9f,_0x249144=await _0x383f77[_0x5a6fcc(0x2ab)][_0x5a6fcc(0x1a7)](_0x4cf8cc);return _0x249144?{'source':_0x249144['source'],'imageSourceType':_0x249144[_0x5a6fcc(0xaa)]}:null;}}));}};$e=Mi([rt(0x0,_0x3ee682),rt(0x1,_0x15ac52)],$e);const ot=[_0x35261d(0x2f2),'jiqing.500',_0x35261d(0x1dc),'red.300',_0x35261d(0xec),_0x35261d(0x22c)];class Ke extends _0x574664{constructor(){const _0x55faa2=_0x35261d;super(...arguments),_(this,_0x55faa2(0x119),new Map()),_(this,_0x55faa2(0x2d3),0x0);}[_0x35261d(0x1d0)](_0x374527){const _0x1393c3=_0x35261d;if(this['_assignedColors']['has'](_0x374527))return this[_0x1393c3(0x119)]['get'](_0x374527);const _0x133099=ot[this['_colorIndex']];return this[_0x1393c3(0x2d3)]=(this[_0x1393c3(0x2d3)]+0x1)%ot[_0x1393c3(0x2cc)],this['_assignedColors']['set'](_0x374527,_0x133099),_0x133099;}}function $t(_0x8f3d54){const _0x1b553b=_0x35261d;let _0x508c5c='';for(const _0x78be8f of _0x8f3d54){const {startOffset:_0x474e8b,endOffset:_0x485509,isActive:_0x4cc351,rangeType:_0x1ad98e,segmentId:_0x39fe67,segmentPage:_0x6d0c24}=_0x78be8f;_0x508c5c[_0x1b553b(0x2cc)]&&(_0x508c5c+=','),_0x508c5c+=_0x474e8b+':'+_0x485509+':'+(_0x4cc351?'1':'0')+':'+_0x1ad98e+':'+_0x39fe67+':'+_0x6d0c24;}return _0x508c5c;}function Ai(_0x5a4be9){const _0x3f0b5f=_0x35261d,_0x1d7d82=_0x5a4be9[_0x3f0b5f(0x212)](','),_0x5acce7=[];for(const _0x3f8eab of _0x1d7d82){const [_0x4f42f7,_0x3811ba,_0xada770,_0x35020b,_0x108edf,_0x2fff31]=_0x3f8eab[_0x3f0b5f(0x212)](':');_0x5acce7[_0x3f0b5f(0xd1)]({'startOffset':Number(_0x4f42f7),'endOffset':Number(_0x3811ba),'collapsed':_0x4f42f7===_0x3811ba,'isActive':_0xada770==='1','rangeType':_0x35020b===_0x4e947f[_0x3f0b5f(0x204)]?_0x4e947f[_0x3f0b5f(0x204)]:_0x4e947f[_0x3f0b5f(0x122)],'segmentId':typeof _0x108edf==_0x3f0b5f(0x239)?String(_0x108edf):'','segmentPage':Number(_0x2fff31!=null?_0x2fff31:-0x1)});}return _0x5acce7[_0x3f0b5f(0xd6)](_0x549a77=>_0x549a77[_0x3f0b5f(0x2e8)])||(_0x5acce7[0x0][_0x3f0b5f(0x2e8)]=!0x0),_0x5acce7;}class ze extends _0x5cd561{constructor(){const _0x2dca4b=_0x35261d;super(...arguments),_(this,_0x2dca4b(0x1eb),new _0x190ae5(null)),_(this,'collabCursorState$',this[_0x2dca4b(0x1eb)][_0x2dca4b(0x173)]());}[_0x35261d(0xf7)](_0x3eacf3){const _0x2b03f1=_0x35261d,{unitID:_0x38e2d5,memberID:_0x42703d,textRanges:_0x28a56c}=_0x3eacf3,_0x379045=$t(_0x28a56c);if(_0x379045==='')return;const _0x98fd01={'unitID':_0x38e2d5,'memberID':_0x42703d,'selection':_0x379045};this[_0x2b03f1(0x1eb)][_0x2b03f1(0x106)](_0x98fd01);}}var Pi=Object['getOwnPropertyDescriptor'],wi=(_0x5c393e,_0x5935d3,_0x29ac6c,_0x537bbb)=>{for(var _0x345945=_0x537bbb>0x1?void 0x0:_0x537bbb?Pi(_0x5935d3,_0x29ac6c):_0x5935d3,_0x2cf1e0=_0x5c393e['length']-0x1,_0x9b12a3;_0x2cf1e0>=0x0;_0x2cf1e0--)(_0x9b12a3=_0x5c393e[_0x2cf1e0])&&(_0x345945=_0x9b12a3(_0x345945)||_0x345945);return _0x345945;},A=(_0x5e5514,_0x21fad1)=>(_0x4286bb,_0x16f04b)=>_0x21fad1(_0x4286bb,_0x16f04b,_0x5e5514);const yi=0x12c,$i=0x64;let xe=class extends _0x5cd561{constructor(_0x5bfca2,_0x435f45,_0x3aaa8a,_0x1c26da,_0x377f4e,_0x34f232,_0x2ecda3,_0x55877f,_0x2f1edd){const _0x4b74b2=_0x35261d;super(),_(this,'_online',!0x1),_(this,'_init',!0x1),_(this,_0x4b74b2(0x111),new _0x190ae5(new Map())),_(this,'cursorInfo$',this['_cursorInfo$']['asObservable']()),_(this,_0x4b74b2(0xff),new _0x190ae5([])),_(this,'roomMembers$',this['_roomMembers$'][_0x4b74b2(0x2e3)](_0x4e6ba7(yi))),_(this,_0x4b74b2(0x1ec),_0x5a5de3(_0x252883=>{const _0x551bba=_0x4b74b2,_0x25823f={'eventID':_0x31166c['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x551bba(0x1f1)]['getMemberID'](),'selection':$t(_0x252883)}};this[_0x551bba(0x1f1)][_0x551bba(0x25b)](_0x25823f,this[_0x551bba(0x16b)]);},$i)),(this[_0x4b74b2(0x16b)]=_0x5bfca2,this[_0x4b74b2(0x1f1)]=_0x435f45,this[_0x4b74b2(0x2de)]=_0x3aaa8a,this[_0x4b74b2(0x2a4)]=_0x1c26da,this['_memberService']=_0x377f4e,this[_0x4b74b2(0xac)]=_0x34f232,this[_0x4b74b2(0x2ba)]=_0x2ecda3,this[_0x4b74b2(0x108)]=_0x55877f,this[_0x4b74b2(0x198)]=_0x2f1edd);}get[_0x35261d(0x21c)](){const _0x4e8125=_0x35261d;return this[_0x4e8125(0x111)][_0x4e8125(0x177)]();}get['roomMembers'](){const _0x5a6cea=_0x35261d;return this[_0x5a6cea(0xff)][_0x5a6cea(0x177)]();}[_0x35261d(0x256)](){const _0x17d7c0=_0x35261d;super['dispose'](),this[_0x17d7c0(0x111)][_0x17d7c0(0x106)](new Map()),this['_cursorInfo$']['complete'](),this[_0x17d7c0(0xff)][_0x17d7c0(0x106)]([]),this[_0x17d7c0(0xff)][_0x17d7c0(0x186)]();}['init'](){const _0x5a6e88=_0x35261d;this['_init']||(this[_0x5a6e88(0x187)]=!0x0,this[_0x5a6e88(0x1f1)]['sessionStatus$']['pipe'](_0x4bde4f(this[_0x5a6e88(0x2c1)]))['subscribe'](_0x50f133=>{const _0x43a8fd=_0x5a6e88;_0x50f133===_0x90c74a[_0x43a8fd(0xc6)]?this[_0x43a8fd(0x1bb)]():this[_0x43a8fd(0x248)]();}),this[_0x5a6e88(0x1f1)]['event$'][_0x5a6e88(0x2e3)](_0x4bde4f(this['dispose$']))[_0x5a6e88(0x223)](_0x20fd85=>{const _0x5db09d=_0x5a6e88,_0x415bca=_0x20fd85[_0x5db09d(0x191)];_0x415bca===_0x31166c[_0x5db09d(0x1c0)]&&this[_0x5db09d(0x24d)](_0x20fd85),_0x415bca===_0x31166c[_0x5db09d(0x2d0)]&&this['_onCursorDelete'](_0x20fd85);}),this[_0x5a6e88(0x2ca)](this[_0x5a6e88(0x198)]['onCommandExecuted'](_0x5a18fb=>{const _0x34350a=_0x5a6e88,_0x1ac071=_0x5a18fb['params'];_0x1ac071!=null&&this[_0x34350a(0x14a)]&&_0x5a18fb['id']===_0x805b1b['id']&&_0x1ac071[_0x34350a(0x196)]===this[_0x34350a(0x16b)]&&_0x1ac071[_0x34350a(0x1ac)]===!0x1&&_0x1ac071[_0x34350a(0x132)][_0x34350a(0x2cc)]>0x0&&this[_0x34350a(0x1ec)](_0x1ac071[_0x34350a(0x132)]);})),this[_0x5a6e88(0xac)][_0x5a6e88(0x2ee)][_0x5a6e88(0x2e3)](_0x4bde4f(this[_0x5a6e88(0x2c1)]))['subscribe'](_0x3c8cb8=>{const _0x3840e2=_0x5a6e88;if((_0x3c8cb8==null?void 0x0:_0x3c8cb8['unitID'])!==this['unitID'])return;const _0x351a84={'eventID':_0x31166c[_0x3840e2(0x1c0)],'data':_0x3c8cb8};this[_0x3840e2(0x24d)](_0x351a84);}),this[_0x5a6e88(0x2ca)](this['_commandService'][_0x5a6e88(0xb8)](_0x2d8799=>{const _0x4c6dff=_0x5a6e88;if(_0x2d8799[_0x4c6dff(0x1fc)]==null)return;const _0xfe6380=_0x2d8799[_0x4c6dff(0x1fc)];if(_0x2d8799['id']!==_0x12357d['id']||_0xfe6380[_0x4c6dff(0x196)]!==this[_0x4c6dff(0x16b)])return;const _0x5607f0={'id':'doc.mutation.rich-text-editing','params':_0xfe6380},_0x557f80=this[_0x4c6dff(0x21c)];for(const [_0x2a3f4f,_0x121b53]of _0x557f80){const _0x12f9c8={'id':'doc.mutation.rich-text-editing','params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x121b53[_0x4c6dff(0x132)]}},_0x35aa5f=this[_0x4c6dff(0x2ba)][_0x4c6dff(0x14b)](_0x5607f0,_0x12f9c8,!0x1);if(_0x384eb6(_0x35aa5f))throw _0x35aa5f['error'];_0x557f80['set'](_0x2a3f4f,{..._0x121b53,'ranges':_0x35aa5f[_0x4c6dff(0x1e9)][_0x4c6dff(0x1fc)][_0x4c6dff(0xde)]});}queueMicrotask(()=>{const _0x2d2393=_0x4c6dff;this[_0x2d2393(0x111)][_0x2d2393(0x106)](_0x557f80);});})));}[_0x35261d(0x24d)](_0x4994b9){const _0x4d139f=_0x35261d;var _0x55623a,_0x11622d;const {memberID:_0x54143e,selection:_0x1daf48}=_0x4994b9[_0x4d139f(0x11d)],_0x9262b3=Ai(_0x1daf48),_0x44cdb3=(_0x11622d=(_0x55623a=this[_0x4d139f(0x1ea)][_0x4d139f(0x273)](this[_0x4d139f(0x16b)],_0x54143e))==null?void 0x0:_0x55623a[_0x4d139f(0x1f2)])!=null?_0x11622d:_0x4d139f(0x23a),_0x53707e={'color':this['_colorAssignService'][_0x4d139f(0x1d0)](_0x54143e),'name':_0x44cdb3,'ranges':_0x9262b3},_0x49b3d4=this[_0x4d139f(0x21c)];_0x49b3d4[_0x4d139f(0x156)](_0x54143e,_0x53707e),this['_cursorInfo$'][_0x4d139f(0x106)](_0x49b3d4);}['_onCursorDelete'](_0x50307c){const _0x2bf031=_0x35261d,{memberID:_0x3bf8f8}=_0x50307c[_0x2bf031(0x11d)],_0x3d9b8f=this[_0x2bf031(0x21c)];_0x3d9b8f['delete'](_0x3bf8f8),this[_0x2bf031(0x111)][_0x2bf031(0x106)](_0x3d9b8f);}[_0x35261d(0x1bb)](){const _0xb2446c=_0x35261d;var _0x2553e6;if(this[_0xb2446c(0x14a)]=!0x0,((_0x2553e6=this[_0xb2446c(0x108)][_0xb2446c(0x10c)]())==null?void 0x0:_0x2553e6[_0xb2446c(0x10f)]())!==this[_0xb2446c(0x16b)])return;const _0x319a44=this[_0xb2446c(0x2de)][_0xb2446c(0x1aa)](_0x40ad8f)[_0xb2446c(0x28a)]();Array[_0xb2446c(0x233)](_0x319a44)&&_0x319a44[_0xb2446c(0x2cc)]>0x0&&this['_updateLocalCursor'](_0x319a44);}['_toggleOffline'](){const _0x5e9eed=_0x35261d;this[_0x5e9eed(0x14a)]=!0x1;}};xe=wi([A(0x2,_0x526d56(_0x3393f4)),A(0x3,_0x526d56(Ke)),A(0x4,_0x526d56(_0x1d803f)),A(0x5,_0x526d56(ze)),A(0x6,_0x2bb8a5),A(0x7,_0x4da50f),A(0x8,_0x431d0d)],xe);var xi=Object[_0x35261d(0x2ec)],Bi=(_0x46ec2c,_0x3f4a9b,_0x5123e0,_0x401e16)=>{const _0x2742d2=_0x35261d;for(var _0x381e60=_0x401e16>0x1?void 0x0:_0x401e16?xi(_0x3f4a9b,_0x5123e0):_0x3f4a9b,_0x4a9801=_0x46ec2c[_0x2742d2(0x2cc)]-0x1,_0x366df2;_0x4a9801>=0x0;_0x4a9801--)(_0x366df2=_0x46ec2c[_0x4a9801])&&(_0x381e60=_0x366df2(_0x381e60)||_0x381e60);return _0x381e60;},B=(_0x490bb6,_0x94933c)=>(_0x253bcf,_0x58c083)=>_0x94933c(_0x253bcf,_0x58c083,_0x490bb6);const Fi=0x12c,ki=0x64,Hi=()=>{let _0xf9cac6=[],_0x2bde6c=!0x1;return _0x2f1c34=>{const _0x451a65=_0x4abd;_0xf9cac6[_0x451a65(0xd1)](_0x2f1c34),_0x2bde6c||(_0x2bde6c=!0x0,setTimeout(()=>{const _0x3e17ed=_0x451a65;_0xf9cac6[_0x3e17ed(0xd9)](_0x463316=>_0x463316()),_0xf9cac6=[],_0x2bde6c=!0x1;}));};};let Be=class extends _0x5cd561{constructor(_0x3c91f9,_0x1e45ec,_0x56edea,_0x5046f3,_0x4662d2,_0x5773fc,_0x5b75b7,_0x577429){const _0x58720a=_0x35261d;super(),_(this,'_online',!0x1),_(this,_0x58720a(0x187),!0x1),_(this,_0x58720a(0x111),new _0x190ae5(new Map())),_(this,_0x58720a(0x194),this[_0x58720a(0x111)][_0x58720a(0x173)]()),_(this,_0x58720a(0xff),new _0x190ae5([])),_(this,_0x58720a(0x2e1),this[_0x58720a(0xff)][_0x58720a(0x2e3)](_0x4e6ba7(Fi))),_(this,_0x58720a(0x1ec),_0x5a5de3((_0x15547c,_0x10a4fa)=>{const _0x215e02=_0x58720a,_0x2c9c93={'eventID':_0x31166c[_0x215e02(0x1c0)],'data':{'unitID':this[_0x215e02(0x16b)],'memberID':this['_session'][_0x215e02(0x160)](),'selection':_0xf40097(_0x15547c,_0x10a4fa[_0x215e02(0x1ce)])}};this[_0x215e02(0x1f1)][_0x215e02(0x25b)](_0x2c9c93,this[_0x215e02(0x16b)]);},ki)),(this[_0x58720a(0x16b)]=_0x3c91f9,this[_0x58720a(0x1f1)]=_0x1e45ec,this[_0x58720a(0x2de)]=_0x56edea,this[_0x58720a(0x2a4)]=_0x5046f3,this[_0x58720a(0x1ea)]=_0x4662d2,this[_0x58720a(0x108)]=_0x5773fc,this['_commandService']=_0x5b75b7,this['_refRangeService']=_0x577429);}get[_0x35261d(0x21c)](){const _0x1e85f3=_0x35261d;return this[_0x1e85f3(0x111)][_0x1e85f3(0x177)]();}get[_0x35261d(0x270)](){const _0x2eb46b=_0x35261d;return this[_0x2eb46b(0xff)]['getValue']();}['dispose'](){const _0x1d7c64=_0x35261d;super[_0x1d7c64(0x256)](),this[_0x1d7c64(0x111)][_0x1d7c64(0x106)](new Map()),this[_0x1d7c64(0x111)][_0x1d7c64(0x186)](),this['_roomMembers$'][_0x1d7c64(0x106)]([]),this[_0x1d7c64(0xff)]['complete']();}[_0x35261d(0x2a1)](){const _0x5bfa7b=_0x35261d;this['_init']||(this[_0x5bfa7b(0x187)]=!0x0,this[_0x5bfa7b(0x1f1)][_0x5bfa7b(0x193)][_0x5bfa7b(0x2e3)](_0x4bde4f(this[_0x5bfa7b(0x2c1)]))[_0x5bfa7b(0x223)](_0x3b4b30=>{const _0x4334d6=_0x5bfa7b;_0x3b4b30===_0x90c74a['ONLINE']?this[_0x4334d6(0x1bb)]():this[_0x4334d6(0x248)]();}),this[_0x5bfa7b(0x1f1)]['event$'][_0x5bfa7b(0x2e3)](_0x4bde4f(this['dispose$']))[_0x5bfa7b(0x223)](_0x4fc328=>{const _0x4f185f=_0x5bfa7b,_0x5bc117=_0x4fc328[_0x4f185f(0x191)];_0x5bc117===_0x31166c[_0x4f185f(0x1c0)]&&this[_0x4f185f(0x24d)](_0x4fc328),_0x5bc117===_0x31166c[_0x4f185f(0x2d0)]&&this['_onCursorDelete'](_0x4fc328);}),this[_0x5bfa7b(0x29d)](),this['disposeWithMe'](this[_0x5bfa7b(0x198)][_0x5bfa7b(0xb8)](_0xf3e44a=>{const _0x1ceb0f=_0x5bfa7b;if(this[_0x1ceb0f(0x14a)]&&_0xf3e44a['id']===_0x16a987['id']&&_0xf3e44a['params']['unitId']===this[_0x1ceb0f(0x16b)]){const _0x60fe63=_0xf3e44a[_0x1ceb0f(0x1fc)];this['_updateLocalCursor'](_0x60fe63[_0x1ceb0f(0x161)],_0x60fe63[_0x1ceb0f(0x17e)][0x0]);}})));}['_onCursorUpdate'](_0xbe16f3){const _0x879839=_0x35261d;var _0x16c1b0,_0x19baa2;const {memberID:_0xf513c6,selection:_0x154762}=_0xbe16f3[_0x879839(0x11d)],{sheetName:_0xcc6adf,range:_0x55bc8a}=_0xac7da6(_0x154762),_0x20c33c={'name':(_0x19baa2=(_0x16c1b0=this['_memberService'][_0x879839(0x273)](this['unitID'],_0xf513c6))==null?void 0x0:_0x16c1b0[_0x879839(0x1f2)])!=null?_0x19baa2:_0x879839(0x23a),'range':this['_getMergeRange'](_0xcc6adf,_0x55bc8a),'sheetID':_0xcc6adf,'color':this[_0x879839(0x2a4)][_0x879839(0x1d0)](_0xf513c6),'selection':_0x154762},_0x571f5c=this['cursorInfo'];_0x571f5c['set'](_0xf513c6,_0x20c33c),this[_0x879839(0x111)][_0x879839(0x106)](_0x571f5c);}[_0x35261d(0x21a)](_0x5ab50d){const _0x2211b7=_0x35261d,{memberID:_0x36fbee}=_0x5ab50d[_0x2211b7(0x11d)],_0x574baf=this[_0x2211b7(0x21c)];_0x574baf['delete'](_0x36fbee),this['_cursorInfo$']['next'](_0x574baf);}[_0x35261d(0xe0)](_0x2a7d74,_0x133313){const _0x2bbe8f=_0x35261d;var _0x29410b,_0x20bf3f;const _0x4fd543=(_0x20bf3f=(_0x29410b=this['_univerInstanceService'][_0x2bbe8f(0xb0)](this[_0x2bbe8f(0x16b)]))==null?void 0x0:_0x29410b[_0x2bbe8f(0x1db)](_0x2a7d74))==null?void 0x0:_0x20bf3f[_0x2bbe8f(0x279)]();return(_0x4fd543==null?void 0x0:_0x4fd543[_0x2bbe8f(0x1a2)](_0x30a911=>_0x3e30a0['contains'](_0x30a911,_0x133313)))||_0x133313;}['_onRefRangeChange'](){const _0xb81947=_0x35261d,_0x518f04=new _0x262a72(),_0x4b2061=Hi(),_0x357199=()=>{const _0x369921=_0x4abd;_0x518f04[_0x369921(0x256)]();const _0x2e1a28=(_0x316002,_0x1834bc,_0xd4a33a,_0x4d7bdf)=>{const _0x214715=_0x369921;let _0x5b6b8d=[];switch(_0x316002['id']){case _0x4acbd2[_0x214715(0x1a1)]:{_0x5b6b8d=_0x15d3f4(_0x316002,_0x4d7bdf);break;}case _0x4acbd2['DeleteRangeMoveUpCommandId']:{_0x5b6b8d=_0x37e305(_0x316002,_0x4d7bdf);break;}case _0x4acbd2[_0x214715(0x1b9)]:{_0x5b6b8d=_0x2efea8(_0x316002,_0x4d7bdf);break;}case _0x4acbd2[_0x214715(0x2ac)]:{_0x5b6b8d=_0x256dc5(_0x316002,_0x4d7bdf);break;}case _0x4acbd2[_0x214715(0x2a3)]:{_0x5b6b8d=_0x135739(_0x316002,_0x4d7bdf);break;}case _0x4acbd2[_0x214715(0x12c)]:{_0x5b6b8d=_0xe2aa24(_0x316002,_0x4d7bdf);break;}case _0x4acbd2[_0x214715(0x249)]:{_0x5b6b8d=_0x31fea7(_0x316002,_0x4d7bdf);break;}case _0x4acbd2[_0x214715(0x2e7)]:{_0x5b6b8d=_0x2d9b28(_0x316002,_0x4d7bdf);break;}case _0x4acbd2[_0x214715(0x182)]:{_0x5b6b8d=_0x4cfe5f(_0x316002,_0x4d7bdf);break;}}const _0x3ae269=_0x2bc501(_0x5b6b8d,_0x4d7bdf),_0x58fdbb=this[_0x214715(0x21c)][_0x214715(0x1aa)](_0x1834bc);if(_0x58fdbb&&_0x3ae269){const _0x46cdb7={..._0x58fdbb,'range':_0x3ae269};this[_0x214715(0x21c)][_0x214715(0x156)](_0x1834bc,_0x46cdb7),_0x4b2061(()=>{const _0x1f893f=_0x214715,_0x13a267=this[_0x1f893f(0x224)][_0x1f893f(0xba)](_0x3ae269,_0x3fd333=>(_0x13a267['dispose'](),_0x2e1a28(_0x3fd333,_0x1834bc,_0xd4a33a,_0x3ae269)));_0x518f04['add'](_0x13a267);});}return{'redos':[],'undos':[]};};this[_0x369921(0x21c)][_0x369921(0xd9)]((_0x20a0b5,_0x793570)=>{const _0x256e3a=_0x369921,{range:_0x515d31,sheetID:_0x461879}=_0x20a0b5,_0x515012=this[_0x256e3a(0x224)]['registerRefRange'](_0x515d31,_0x186c2a=>(_0x515012['dispose'](),_0x2e1a28(_0x186c2a,_0x793570,_0x461879,_0x515d31)));_0x518f04['add'](_0x515012);});};this[_0xb81947(0x2ca)](_0x511582(this['_cursorInfo$'][_0xb81947(0x223)](()=>{_0x357199();})));}[_0x35261d(0x1bb)](){const _0xc4aea5=_0x35261d;var _0x2c718b,_0x5ecc9d;if(this[_0xc4aea5(0x14a)]=!0x0,((_0x2c718b=this['_univerInstanceService'][_0xc4aea5(0x10c)]())==null?void 0x0:_0x2c718b[_0xc4aea5(0x10f)]())!==this[_0xc4aea5(0x16b)])return;const _0x4d82e4=(_0x5ecc9d=this['_injector'][_0xc4aea5(0x1aa)](_0x2a5f3c)[_0xc4aea5(0x13b)]())==null?void 0x0:_0x5ecc9d[0x0],_0x1fbc79=this[_0xc4aea5(0x108)]['getCurrentUnitForType'](_0x388843[_0xc4aea5(0x127)])['getActiveSheet']();_0x4d82e4&&_0x1fbc79&&this[_0xc4aea5(0x1ec)](_0x1fbc79[_0xc4aea5(0x2c6)](),_0x4d82e4);}['_toggleOffline'](){this['_online']=!0x1;}};Be=Bi([B(0x2,_0x526d56(_0x3393f4)),B(0x3,_0x526d56(Ke)),B(0x4,_0x526d56(_0x1d803f)),B(0x5,_0x4da50f),B(0x6,_0x431d0d),B(0x7,_0x526d56(_0x565041))],Be);var Yi=Object[_0x35261d(0x2ec)],Wi=(_0x46c687,_0x1a3e15,_0x4b1f91,_0x947a85)=>{const _0x32f2a9=_0x35261d;for(var _0x534c57=_0x947a85>0x1?void 0x0:_0x947a85?Yi(_0x1a3e15,_0x4b1f91):_0x1a3e15,_0x38c308=_0x46c687[_0x32f2a9(0x2cc)]-0x1,_0x5e7d19;_0x38c308>=0x0;_0x38c308--)(_0x5e7d19=_0x46c687[_0x38c308])&&(_0x534c57=_0x5e7d19(_0x534c57)||_0x534c57);return _0x534c57;},Ce=(_0x3691ea,_0x13f757)=>(_0x2a76cd,_0x1ef80f)=>_0x13f757(_0x2a76cd,_0x1ef80f,_0x3691ea);let H=class extends _0x5cd561{constructor(_0x7ef1af,_0x4c2ad9,_0x48a1ce){const _0x1d7f4c=_0x35261d;super(),_(this,_0x1d7f4c(0x290),new Map()),_(this,_0x1d7f4c(0x2c9),new _0x41a143()),(this['_univerInstanceService']=_0x7ef1af,this[_0x1d7f4c(0x2de)]=_0x4c2ad9,this[_0x1d7f4c(0x103)]=_0x48a1ce,this[_0x1d7f4c(0x187)]());}[_0x35261d(0x256)](){const _0x65a23f=_0x35261d;super['dispose'](),this['_entityInit$']['complete'](),this['_entities']['forEach'](_0x1a3742=>_0x1a3742[_0x65a23f(0x256)]());}['getCollabCursors$'](_0x4081d8){const _0x44b5bf=_0x35261d;return this[_0x44b5bf(0x290)][_0x44b5bf(0x291)](_0x4081d8)?this[_0x44b5bf(0x290)][_0x44b5bf(0x1aa)](_0x4081d8)[_0x44b5bf(0x194)]:this['_entityInit$'][_0x44b5bf(0x2e3)](_0x3f794e(_0x41bfe0=>_0x41bfe0[_0x44b5bf(0x16b)]===_0x4081d8),_0xef42d4(_0x4cf01e=>_0x4cf01e[_0x44b5bf(0x194)]));}[_0x35261d(0x187)](){const _0x1f8690=_0x35261d;this[_0x1f8690(0x108)][_0x1f8690(0x2dd)](_0x388843['UNIVER_SHEET'])[_0x1f8690(0x2e3)](_0x4bde4f(this['dispose$']))[_0x1f8690(0x223)](async _0x40dfe5=>{const _0xedd50=_0x1f8690,_0x1db05f=_0x40dfe5[_0xedd50(0x10f)](),_0x3df277=await this[_0xedd50(0xf5)](_0x1db05f);this[_0xedd50(0x2c9)][_0xedd50(0x106)](_0x3df277),this[_0xedd50(0x290)][_0xedd50(0x156)](_0x1db05f,_0x3df277);}),this[_0x1f8690(0x108)][_0x1f8690(0x2dd)](_0x388843['UNIVER_DOC'])[_0x1f8690(0x2e3)](_0x4bde4f(this['dispose$']))['pipe'](_0x3f794e(_0x53bede=>!_0x53bede['getUnitId']()[_0x1f8690(0x271)]('__')))[_0x1f8690(0x223)](async _0xccea1e=>{const _0x2a7a83=_0x1f8690,_0x42adb7=_0xccea1e[_0x2a7a83(0x10f)](),_0x1e6960=await this['_startDocCollabCursor'](_0x42adb7);this[_0x2a7a83(0x2c9)]['next'](_0x1e6960),this['_entities']['set'](_0x42adb7,_0x1e6960);}),_0x152dc6(this['_univerInstanceService'][_0x1f8690(0x297)](_0x388843[_0x1f8690(0x235)]),this[_0x1f8690(0x108)]['getTypeOfUnitDisposed$'](_0x388843[_0x1f8690(0x127)]))['pipe'](_0x4bde4f(this[_0x1f8690(0x2c1)]))[_0x1f8690(0x223)](_0x11fde1=>{const _0x4b06d=_0x1f8690,_0x4f011a=_0x11fde1['getUnitId'](),_0x359911=this['_entities'][_0x4b06d(0x1aa)](_0x4f011a);_0x359911&&(_0x359911[_0x4b06d(0x256)](),this[_0x4b06d(0x290)][_0x4b06d(0x2d4)](_0x4f011a));});}async[_0x35261d(0xf5)](_0x3723cf){const _0x3a9117=_0x35261d,_0x1b0c80=await this[_0x3a9117(0x103)][_0x3a9117(0x9f)](_0x3723cf),_0x4f6a75=this[_0x3a9117(0x2de)][_0x3a9117(0x143)](Be,_0x3723cf,_0x1b0c80);return _0x4f6a75[_0x3a9117(0x2a1)](),_0x4f6a75;}async['_startDocCollabCursor'](_0x47c8a2){const _0x23a0d4=_0x35261d,_0x3ff85e=await this[_0x23a0d4(0x103)][_0x23a0d4(0x9f)](_0x47c8a2),_0x235085=this[_0x23a0d4(0x2de)][_0x23a0d4(0x143)](xe,_0x47c8a2,_0x3ff85e);return _0x235085['init'](),_0x235085;}};H=Wi([Ce(0x0,_0x4da50f),Ce(0x1,_0x526d56(_0x3393f4)),Ce(0x2,_0x526d56(_0x161ab7))],H);const Q=0x14,at=0xc8,Re=0x4,Vi=0x5;function ji(_0x27b65d,_0x50f215){const _0x484f47=_0x35261d;let {radius:_0x194840,width:_0x529c28,height:_0x2827a0}=_0x50f215;_0x194840=_0x194840!=null?_0x194840:0x0,_0x529c28=_0x529c28!=null?_0x529c28:0x1e,_0x2827a0=_0x2827a0!=null?_0x2827a0:0x1e;let _0x3d97b0=0x0,_0x4b0a0f=0x0,_0x5dcc20=0x0;_0x3d97b0=_0x4b0a0f=_0x5dcc20=Math[_0x484f47(0x277)](_0x194840,_0x529c28/0x2,_0x2827a0/0x2),_0x27b65d[_0x484f47(0x97)](),_0x27b65d[_0x484f47(0x18c)](_0x3d97b0,0x0),_0x27b65d[_0x484f47(0x1e1)](_0x529c28-_0x4b0a0f,0x0),_0x27b65d['arc'](_0x529c28-_0x4b0a0f,_0x4b0a0f,_0x4b0a0f,Math['PI']*0x3/0x2,0x0,!0x1),_0x27b65d[_0x484f47(0x1e1)](_0x529c28,_0x2827a0-_0x5dcc20),_0x27b65d['arc'](_0x529c28-_0x5dcc20,_0x2827a0-_0x5dcc20,_0x5dcc20,0x0,Math['PI']/0x2,!0x1),_0x27b65d[_0x484f47(0x1e1)](0x0,_0x2827a0),_0x27b65d[_0x484f47(0x1e1)](0x0,_0x3d97b0),_0x27b65d[_0x484f47(0x220)](_0x3d97b0,_0x3d97b0,_0x3d97b0,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x27b65d['closePath'](),_0x50f215['fill']&&(_0x27b65d[_0x484f47(0x1c7)](),_0x27b65d[_0x484f47(0x105)]=_0x50f215[_0x484f47(0xb4)],_0x50f215['fillRule']==='evenodd'?_0x27b65d['fill'](_0x484f47(0x29c)):_0x27b65d[_0x484f47(0xb4)](),_0x27b65d[_0x484f47(0x120)]());}class ve extends _0x4b83f3{constructor(_0x53c8b2,_0x3bec40){const _0x2f1ca3=_0x35261d;super(_0x53c8b2,_0x3bec40),_(this,'color'),_(this,'text'),(this[_0x2f1ca3(0x163)]=_0x3bec40==null?void 0x0:_0x3bec40[_0x2f1ca3(0x163)],this[_0x2f1ca3(0x23d)]=_0x3bec40==null?void 0x0:_0x3bec40[_0x2f1ca3(0x23d)]);}static[_0x35261d(0x293)](_0x3cb302,_0xed52c4){const _0x16eb58=_0x35261d,{text:_0x4d775f,color:_0x22cbac}=_0xed52c4;_0x3cb302[_0x16eb58(0x1c7)](),_0x3cb302[_0x16eb58(0x1c1)]=_0x16eb58(0x288);const _0xc69863=_0x3cb302[_0x16eb58(0x10d)](_0x4d775f)[_0x16eb58(0x266)],_0x449879=Math[_0x16eb58(0x277)](_0xc69863+0x2*Re,at);ji(_0x3cb302,{'height':Q,'radius':0x4,'width':_0x449879,'fill':_0x22cbac}),_0x3cb302[_0x16eb58(0x105)]='#FFF';const _0x37670e=Re,_0x4a570f=Q-Vi,_0x208662=at-0x2*Re;if(_0xc69863>_0x208662){let _0x2010c4='',_0x17f3b2=0x0;for(const _0x497302 of _0x4d775f){const _0x5e8f16=_0x3cb302['measureText'](_0x497302)[_0x16eb58(0x266)];if(_0x17f3b2+_0x5e8f16<=_0x208662-_0x3cb302[_0x16eb58(0x10d)](_0x16eb58(0x2d7))[_0x16eb58(0x266)])_0x2010c4+=_0x497302,_0x17f3b2+=_0x5e8f16;else{_0x2010c4+=_0x16eb58(0x2d7);break;}}_0x3cb302[_0x16eb58(0x1ed)](_0x2010c4,_0x37670e,_0x4a570f);}else _0x3cb302[_0x16eb58(0x1ed)](_0x4d775f,_0x37670e,_0x4a570f);_0x3cb302[_0x16eb58(0x120)]();}[_0x35261d(0x18e)](_0x2ddc36){const _0x462330=_0x35261d;ve[_0x462330(0x293)](_0x2ddc36,this);}}const De='collab-text-anchor-',Xi='collab-text-range-',Gi=_0x35261d(0x1df),z=0x6,Ki=1.5,Ne=0x4,zi=1.5,Ji='rgba(255,\x20255,\x20255,\x200.01)';class ct{constructor(_0x441cd9,_0x3403c,_0x1ac199,_0x44abbe){const _0x3d6097=_0x35261d;_(this,'_shapes',[]),_(this,_0x3d6097(0x1ca),null),_(this,'_textBubble',null),_(this,_0x3d6097(0x215),null),_(this,_0x3d6097(0x12a),null),_(this,_0x3d6097(0x164),null),(this[_0x3d6097(0x19a)]=_0x441cd9,this[_0x3d6097(0x1ad)]=_0x3403c,this[_0x3d6097(0xe1)]=_0x1ac199,this[_0x3d6097(0x19b)]=_0x44abbe,this[_0x3d6097(0x124)]());}set[_0x35261d(0x268)](_0x2d27ba){const _0x234023=_0x35261d;_0x2d27ba?(this[_0x234023(0x215)]&&this[_0x234023(0x215)][_0x234023(0xad)](),this[_0x234023(0xf0)]&&this[_0x234023(0xf0)][_0x234023(0x1d2)]()):(this[_0x234023(0x215)]&&this[_0x234023(0x215)][_0x234023(0x1d2)](),this[_0x234023(0xf0)]&&this[_0x234023(0xf0)][_0x234023(0xad)]());}[_0x35261d(0x256)](){const _0x323054=_0x35261d;for(const _0xc9e16c of this[_0x323054(0x13d)])_0xc9e16c['dispose']();this[_0x323054(0xf0)]&&this[_0x323054(0xf0)][_0x323054(0x256)](),this[_0x323054(0x215)]&&this['_anchorDot'][_0x323054(0x256)](),this[_0x323054(0x1ca)]&&this[_0x323054(0x1ca)][_0x323054(0x256)](),this[_0x323054(0x164)]&&this[_0x323054(0x164)]();}[_0x35261d(0x124)](){const _0x1818c6=_0x35261d;var _0x4c9373;const {_docSkeleton:_0x2a89ab,_document:_0x113d02}=this,{color:_0x35d701,name:_0x4bc72f,ranges:_0x355432}=this['_cursor'],_0x490e45=_0x113d02[_0x1818c6(0x16a)](),{docsLeft:_0x44e9b5,docsTop:_0x3fc7b7}=_0x490e45,_0x313bf8=new _0x593536(_0x490e45,_0x2a89ab);for(const {startOffset:_0x3ca66f,endOffset:_0x4241ab,rangeType:_0x24e5b7,segmentId:_0xf9f3b5,segmentPage:_0x4480e7,collapsed:_0x49f79b,isActive:_0x573fda}of _0x355432){const _0x3d728b=_0x2a89ab[_0x1818c6(0x1ab)](_0x3ca66f,!0x0,_0xf9f3b5,_0x4480e7);let _0x2cb4fb=_0x2a89ab[_0x1818c6(0x1ab)](_0x4241ab,!0x0,_0xf9f3b5,_0x4480e7);if(_0x2cb4fb==null&&(_0x2cb4fb=_0x2a89ab[_0x1818c6(0x1ab)](_0x4241ab-0x1,!0x1,_0xf9f3b5,_0x4480e7)),_0x573fda){const {contentBoxPointGroup:_0x241b04}=_0x313bf8['getRangePointData'](_0x2cb4fb,_0x2cb4fb);if(_0x241b04['length']===0x0)continue;this[_0x1818c6(0x125)](_0x35d701,_0x241b04,_0x44e9b5,_0x3fc7b7,_0x4bc72f),this[_0x1818c6(0x164)]=this['_handleHover']();}if(_0x3d728b&&_0x2cb4fb){if(_0x24e5b7===_0x4e947f[_0x1818c6(0x122)]){const _0x2a5dfa=new _0x816e09(_0x490e45,_0x2a89ab),{pointGroup:_0x341515}=(_0x4c9373=_0x2a5dfa[_0x1818c6(0x114)](_0x3d728b,_0x2cb4fb))!=null?_0x4c9373:{};if(_0x341515==null||_0x341515[_0x1818c6(0x2cc)]===0x0)continue;this[_0x1818c6(0xce)](_0x35d701,_0x341515,_0x44e9b5,_0x3fc7b7);}else{if(!_0x49f79b){const {borderBoxPointGroup:_0xaffb68}=_0x313bf8['getRangePointData'](_0x3d728b,_0x2cb4fb);if(_0xaffb68[_0x1818c6(0x2cc)]===0x0)continue;this[_0x1818c6(0x1bc)](_0x35d701,_0xaffb68,_0x44e9b5,_0x3fc7b7);}}}}}[_0x35261d(0x125)](_0x416914,_0x26b35c,_0x3d761f,_0x5ef854,_0x27d3f9){const _0x2bce07=_0x35261d,_0x2fadf1=this[_0x2bce07(0x126)](_0x26b35c),{left:_0xcaf7e9,top:_0x5a0155,height:_0x2de9d9}=_0x2fadf1,_0x5a335e=this[_0x2bce07(0x213)](),_0x348c47=zi/_0x5a335e,_0x5a9cd4=new _0x3fac0b(De+_0x18acb6(z),{'left':_0xcaf7e9+_0x3d761f-_0x348c47,'top':_0x5a0155+_0x5ef854,'height':_0x2de9d9,'width':Ki,'fill':_0x416914||_0x12e3fb(_0x311919[_0x2bce07(0x1e8)],0x0),'strokeWidth':_0x348c47,'stroke':Ji,'evented':!0x0});this[_0x2bce07(0x1ca)]=_0x5a9cd4,this['_scene']['addObject'](_0x5a9cd4,_0x4e7e07);const _0xf698f6=new _0x3fac0b(De+_0x18acb6(z),{'left':_0xcaf7e9+_0x3d761f-_0x348c47,'top':_0x5a0155+_0x5ef854-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x416914||_0x12e3fb(_0x311919['black'],0x0),'strokeWidth':0x0,'stroke':_0x416914||_0x12e3fb(_0x311919[_0x2bce07(0x1e8)],0x0),'evented':!0x1});this['_anchorDot']=_0xf698f6,this[_0x2bce07(0x1ad)][_0x2bce07(0x27b)](_0xf698f6,_0x4e7e07);const _0x4092ea=new ve(De+_0x18acb6(z),{'left':_0xcaf7e9+_0x3d761f-_0x348c47,'top':_0x5a0155+_0x5ef854-Q,'text':_0x27d3f9,'color':_0x416914});this[_0x2bce07(0xf0)]=_0x4092ea,this[_0x2bce07(0x1ad)][_0x2bce07(0x27b)](_0x4092ea,_0x4e7e07),this[_0x2bce07(0x268)]=!0x1;}[_0x35261d(0x29f)](){const _0x4fd2d4=_0x35261d,_0x1f5e4e=this[_0x4fd2d4(0x1ca)][_0x4fd2d4(0x267)]['subscribeEvent'](()=>{this['_hover']=!0x0;}),_0x24f92f=this['_anchor'][_0x4fd2d4(0x222)]['subscribeEvent'](()=>{const _0x5b7050=_0x4fd2d4;this[_0x5b7050(0x12a)]&&clearTimeout(this[_0x5b7050(0x12a)]),this[_0x5b7050(0x12a)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x1c370c=_0x4fd2d4;_0x1f5e4e[_0x1c370c(0x2be)](),_0x24f92f[_0x1c370c(0x2be)]();};}['_drawTextRange'](_0x5da616,_0x2b641a,_0x26018d,_0xab8b2b){const _0x334837=_0x35261d,_0x4a68f9=new _0x12767b(_0x5da616)[_0x334837(0x285)](0.2)[_0x334837(0x20f)](),_0xf1678c=new _0x44a4ed(Xi+_0x18acb6(z),{'pointsGroup':_0x2b641a,'fill':_0x4a68f9||_0x12e3fb(_0x311919[_0x334837(0x1e8)],0.2),'left':_0x26018d,'top':_0xab8b2b,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x334837(0xd1)](_0xf1678c),this[_0x334837(0x1ad)][_0x334837(0x27b)](_0xf1678c,_0x4e7e07);}[_0x35261d(0xce)](_0x546f09,_0x472ae0,_0x251bac,_0x4a647a){const _0x473e41=_0x35261d,_0xaaf44c=new _0x12767b(_0x546f09)[_0x473e41(0x285)](0.2)[_0x473e41(0x20f)](),_0x56f69b=new _0x44a4ed(Gi+_0x18acb6(z),{'pointsGroup':_0x472ae0,'fill':_0xaaf44c||_0x12e3fb(_0x311919[_0x473e41(0x1e8)],0.2),'left':_0x251bac,'top':_0x4a647a,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x473e41(0x13d)][_0x473e41(0xd1)](_0x56f69b),this['_scene']['addObject'](_0x56f69b,_0x4e7e07);}[_0x35261d(0x126)](_0x2ebdac){const _0x20d385=_0x2ebdac[0x0],_0x21c111=_0x20d385[0x0],_0x1f8c33=_0x20d385[0x2],{x:_0x3d40a0,y:_0x1ec580}=_0x21c111,{x:_0x2788d7,y:_0x1f31c8}=_0x1f8c33;return{'left':_0x3d40a0,'top':_0x1ec580,'width':_0x2788d7-_0x3d40a0,'height':_0x1f31c8-_0x1ec580};}[_0x35261d(0x213)](){const _0x1887a2=_0x35261d,{scaleX:_0x57cb02,scaleY:_0x15d293}=this['_scene']['getAncestorScale']();return Math[_0x1887a2(0x26c)](_0x57cb02,_0x15d293);}}var Zi=Object[_0x35261d(0x2ec)],Qi=(_0x23297c,_0x4a6107,_0x597e9d,_0x4b8c16)=>{const _0x16ab38=_0x35261d;for(var _0x359b75=_0x4b8c16>0x1?void 0x0:_0x4b8c16?Zi(_0x4a6107,_0x597e9d):_0x4a6107,_0x2e6d15=_0x23297c[_0x16ab38(0x2cc)]-0x1,_0x50822a;_0x2e6d15>=0x0;_0x2e6d15--)(_0x50822a=_0x23297c[_0x2e6d15])&&(_0x359b75=_0x50822a(_0x359b75)||_0x359b75);return _0x359b75;},ie=(_0x3b7ea2,_0xf9caea)=>(_0x47b05e,_0x135390)=>_0xf9caea(_0x47b05e,_0x135390,_0x3b7ea2);let Fe=class extends _0x5cd561{constructor(_0x4f975a,_0x3ef2df,_0x3beb5a,_0x183c04,_0x3378b3){const _0x435bd8=_0x35261d;super(),_(this,_0x435bd8(0x1f9),[]),_(this,_0x435bd8(0x208),[]),(this[_0x435bd8(0x1c2)]=_0x4f975a,this[_0x435bd8(0x2b9)]=_0x3ef2df,this['_collabCursorController']=_0x3beb5a,this[_0x435bd8(0x198)]=_0x183c04,this['_themeService']=_0x3378b3,this[_0x435bd8(0x187)]());}[_0x35261d(0x187)](){const _0x3e1542=_0x35261d,_0x1a8ff5=this[_0x3e1542(0x1c2)]['unitId'],_0x396450=this[_0x3e1542(0x2b9)];this[_0x3e1542(0x2ca)](_0x251939([this[_0x3e1542(0x2e9)]['getCollabCursors$'](_0x1a8ff5),this[_0x3e1542(0xab)]['currentTheme$']])['pipe'](_0x3b7002(([_0x2f206a,_0x5a0a22])=>({'skeleton':_0x396450['getSkeleton'](),'cursors':[..._0x2f206a['values']()][_0x3e1542(0x2ea)](_0x1f5603=>({..._0x1f5603,'color':this['_themeService'][_0x3e1542(0x155)](_0x1f5603[_0x3e1542(0x163)])}))})))[_0x3e1542(0x223)](_0x42c49a=>{if(this['_removeCollabCursors'](),_0x42c49a){const {skeleton:_0x2de3e4,cursors:_0x6902e0}=_0x42c49a;this['_updateCollabCursors'](_0x2de3e4,_0x6902e0);}})),this[_0x3e1542(0xf6)](),this['_initCommandExecutedListener']();}['_updateCollabCursors'](_0x452ab1,_0x526a08){const _0x47adb8=_0x35261d,{scene:_0x42d205,mainComponent:_0x313f29}=this[_0x47adb8(0x1c2)],_0x26f7ba=_0x526a08[_0x47adb8(0x1ba)](_0x427419=>new ct(_0x427419,_0x42d205,_0x452ab1,_0x313f29));this[_0x47adb8(0x1f9)]=_0x26f7ba,this['_cursors']=_0x526a08;}[_0x35261d(0x274)](){const _0x210f5f=_0x35261d;this['_removeCollabCursors']();const {scene:_0x5cf5b7,mainComponent:_0x4ca2ab}=this['_context'],_0x3344ef=this['_docSkeletonManagerService'][_0x210f5f(0xe2)](),_0x373bfe=this['_cursors'][_0x210f5f(0x1ba)](_0x17ff21=>new ct(_0x17ff21,_0x5cf5b7,_0x3344ef,_0x4ca2ab));this[_0x210f5f(0x1f9)]=_0x373bfe;}['_removeCollabCursors'](){const _0x5832e3=_0x35261d;this[_0x5832e3(0x1f9)][_0x5832e3(0xd9)](_0x20a09c=>_0x20a09c[_0x5832e3(0x256)]()),this[_0x5832e3(0x1f9)]=[];}['_initCommandExecutedListener'](){const _0x66223c=_0x35261d,_0x162326=[_0x246c84['id']];this[_0x66223c(0x2ca)](this['_commandService'][_0x66223c(0xb8)](_0x5cf179=>{const _0x5ae2ca=_0x66223c;_0x162326[_0x5ae2ca(0x1be)](_0x5cf179['id'])&&_0x5cf179['params'][_0x5ae2ca(0x196)]===this[_0x5ae2ca(0x1c2)]['unitId']&&this['_refreshCollabCursors']();}));}['_initResize'](){const _0x172933=_0x35261d;this[_0x172933(0x2ca)](_0x179326(this[_0x172933(0x1c2)][_0x172933(0x137)][_0x172933(0x26b)])[_0x172933(0x2e3)](_0x41a922(_0x56d21a=>_0x56d21a[_0x172933(0x1d6)]===_0x2258d1[_0x172933(0x2d8)]),_0x5543f9(0x10))[_0x172933(0x223)](()=>{const _0x6db646=_0x172933;this[_0x6db646(0x274)]();}));}};Fe=Qi([ie(0x1,_0x526d56(_0x144934)),ie(0x2,_0x526d56(H)),ie(0x3,_0x431d0d),ie(0x4,_0x526d56(_0x160c6e))],Fe);const qi=0x1,en=1.5;class tn extends _0x4b83f3{constructor(_0xb9846,_0xa7eb84){const _0x464ece=_0x35261d;super(_0xb9846,_0xa7eb84),_(this,_0x464ece(0xfc)),_(this,_0x464ece(0x11e),!0x1),_(this,_0x464ece(0x1bd)),_(this,_0x464ece(0x1c5),''),_(this,_0x464ece(0xa8),_0x464ece(0x20b)),_(this,_0x464ece(0x195)),(_0xa7eb84&&this['setShapeProps'](_0xa7eb84),this[_0x464ece(0x267)]['subscribeEvent'](()=>this[_0x464ece(0xa2)]({'hovered':!0x0})),this[_0x464ece(0x222)][_0x464ece(0x216)](()=>this['setShapeProps']({'hovered':!0x1})));}['setShapeProps'](_0x2e9237){const _0x5cb411=_0x35261d;var _0x3f6c60,_0xe1b983,_0x37dd19,_0x45f241,_0x2f622f,_0x29ebe1;this['_color']=(_0x3f6c60=_0x2e9237['color'])!=null?_0x3f6c60:this[_0x5cb411(0xfc)],this[_0x5cb411(0x11e)]=(_0xe1b983=_0x2e9237[_0x5cb411(0x25e)])!=null?_0xe1b983:this['_hovered'],this[_0x5cb411(0x1bd)]=(_0x37dd19=_0x2e9237[_0x5cb411(0x1ce)])!=null?_0x37dd19:this[_0x5cb411(0x1bd)],this[_0x5cb411(0x1c5)]=(_0x45f241=_0x2e9237['name'])!=null?_0x45f241:this[_0x5cb411(0x1c5)],this[_0x5cb411(0xa8)]=(_0x2f622f=_0x2e9237['labelPosition'])!=null?_0x2f622f:this[_0x5cb411(0xa8)],this[_0x5cb411(0x195)]=(_0x29ebe1=_0x2e9237[_0x5cb411(0x287)])!=null?_0x29ebe1:this['_backgroundColor'],this[_0x5cb411(0x1d3)]({'width':_0x2e9237[_0x5cb411(0x266)],'height':_0x2e9237[_0x5cb411(0xfd)]});}[_0x35261d(0x1a6)](_0x4132c1){const _0x3b438b=_0x35261d,{row:_0x20ebd0,column:_0x28b9a5}=_0x4132c1;if(_0x20ebd0>=this['_range']['startRow']&&_0x20ebd0<=this[_0x3b438b(0x1bd)]['endRow']&&_0x28b9a5>=this[_0x3b438b(0x1bd)][_0x3b438b(0x2bd)]&&_0x28b9a5<=this[_0x3b438b(0x1bd)][_0x3b438b(0x259)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x3b438b(0xa2)]({'hovered':!0x1});}['triggerDblclick'](_0xb33d97){return!0x1;}[_0x35261d(0x18e)](_0x3f2a4e){const _0x331e10=_0x35261d;_0x3fac0b[_0x331e10(0x293)](_0x3f2a4e,{'width':this['width'],'height':this[_0x331e10(0xfd)],'strokeWidth':en,'stroke':this[_0x331e10(0xfc)],'evented':!0x1,'fill':this[_0x331e10(0x195)]}),this[_0x331e10(0x11e)]&&(_0x3f2a4e['save'](),_0x3f2a4e[_0x331e10(0xd2)](0x1,0x0,0x0,0x1,this[_0x331e10(0x266)],this[_0x331e10(0xa8)]===_0x331e10(0x27c)?0x0:-Q),ve['drawWith'](_0x3f2a4e,{'text':this[_0x331e10(0x1c5)],'color':this[_0x331e10(0xfc)]}),_0x3f2a4e[_0x331e10(0x120)]());}}var sn=Object[_0x35261d(0x2ec)],nn=(_0xcfd49,_0x22fd29,_0x13f2fd,_0x5592d9)=>{const _0x18b4e2=_0x35261d;for(var _0xcb68f4=_0x5592d9>0x1?void 0x0:_0x5592d9?sn(_0x22fd29,_0x13f2fd):_0x22fd29,_0x50ec72=_0xcfd49[_0x18b4e2(0x2cc)]-0x1,_0xa927b5;_0x50ec72>=0x0;_0x50ec72--)(_0xa927b5=_0xcfd49[_0x50ec72])&&(_0xcb68f4=_0xa927b5(_0xcb68f4)||_0xcb68f4);return _0xcb68f4;},be=(_0x3f0cd9,_0x296780)=>(_0x1a253a,_0x500fd0)=>_0x296780(_0x1a253a,_0x500fd0,_0x3f0cd9);const rn=0x1389;let ke=class extends _0x5cd561{constructor(_0x367764,_0x161931,_0x2ca953,_0x53ed1e){const _0x56754c=_0x35261d;super(),_(this,_0x56754c(0x208),new Set()),_(this,_0x56754c(0x145),null),(this[_0x56754c(0x1c2)]=_0x367764,this[_0x56754c(0x2a7)]=_0x161931,this[_0x56754c(0x2e9)]=_0x2ca953,this['_themeService']=_0x53ed1e,this[_0x56754c(0x187)]());}[_0x35261d(0x187)](){const _0x1408e8=_0x35261d;this['_sheetSkeletonManagerService'][_0x1408e8(0x2a2)][_0x1408e8(0x2e3)](_0x45c0b6(this[_0x1408e8(0x2c1)]),_0x4f1383(_0x4c2e4c=>{const _0x591dfb=_0x1408e8;if(_0x4c2e4c){const _0x717b7e=_0x4c2e4c[_0x591dfb(0x1a0)];return _0x251939(this[_0x591dfb(0x2e9)][_0x591dfb(0x28e)](this[_0x591dfb(0x1c2)][_0x591dfb(0x196)]),this[_0x591dfb(0xab)][_0x591dfb(0x166)])['pipe'](_0x3b7002(([_0xbcb83c,_0x1191b3])=>{const _0xfe758a=new Map();return _0xbcb83c['forEach']((_0x6432b5,_0x24f053)=>{const _0x36bcf6=_0x4abd;if(_0x6432b5['sheetID']===_0x717b7e){const _0x8f9e17={..._0x6432b5};_0x8f9e17[_0x36bcf6(0x163)]=this[_0x36bcf6(0xab)][_0x36bcf6(0x155)](_0x6432b5[_0x36bcf6(0x163)]),_0xfe758a[_0x36bcf6(0x156)](_0x24f053,_0x8f9e17);}}),{'skeleton':_0x4c2e4c,'cursors':_0xfe758a};}));}return _0x53ce20({'skeleton':null,'cursors':new Map()});}))[_0x1408e8(0x223)](({skeleton:_0x2a787b,cursors:_0x396842})=>{const _0x4e2c46=_0x1408e8;this['_removeCollabCursors'](),_0x2a787b&&this[_0x4e2c46(0x17c)](_0x2a787b,_0x396842);}),this[_0x1408e8(0x2a7)][_0x1408e8(0x2a2)]['subscribe'](_0xfd55b5=>{const _0x1fb431=_0x1408e8;if(_0xfd55b5==null)return;const {skeleton:_0x35dc72}=_0xfd55b5,{scene:_0x2829f5}=this['_context'];_0x2829f5[_0x1fb431(0x236)][_0x1fb431(0x216)](_0x5a5de3(_0x3c0d20=>{const _0x4637f4=_0x1fb431;var _0x54d5aa,_0xe74b96;const {offsetX:_0x59df6e,offsetY:_0x3e7e04}=_0x3c0d20,{x:_0x5140cc,y:_0x5c02f6}=_0x2829f5[_0x4637f4(0x2e5)](_0x3f118f[_0x4637f4(0x2b0)]([_0x59df6e,_0x3e7e04])),{scaleX:_0xa853c1,scaleY:_0x2d7b4e}=_0x2829f5['getAncestorScale'](),_0x587713=_0x2829f5[_0x4637f4(0xd7)](_0x315cae[_0x4637f4(0x27a)]),_0x187d3f=_0x2829f5[_0x4637f4(0x2c5)](_0x3f118f[_0x4637f4(0x2b0)]([_0x5140cc,_0x5c02f6]),_0x587713),_0x4ebc64=_0x35dc72[_0x4637f4(0x2d5)](_0x59df6e,_0x3e7e04,_0xa853c1,_0x2d7b4e,_0x187d3f);((_0x54d5aa=this[_0x4637f4(0x145)])==null?void 0x0:_0x54d5aa[_0x4637f4(0xa6)])===_0x4ebc64['column']&&((_0xe74b96=this['_lastPointer'])==null?void 0x0:_0xe74b96[_0x4637f4(0x2bf)])===_0x4ebc64[_0x4637f4(0x2bf)]||this['_cursors'][_0x4637f4(0xd9)](_0x588668=>{const _0x5bd71d=_0x4637f4;_0x588668[_0x5bd71d(0x1a6)](_0x4ebc64);});},0x64));});}[_0x35261d(0x17c)](_0x54cbb4,_0x224af5){const _0x8a2bd3=_0x35261d;var _0xdb16be;const _0x4cd10b=(_0xdb16be=this[_0x8a2bd3(0x2a7)][_0x8a2bd3(0x104)]())==null?void 0x0:_0xdb16be[_0x8a2bd3(0x109)];if(!_0x4cd10b)return;const _0x3eb84c=this[_0x8a2bd3(0x1e6)]();if(!_0x3eb84c)return;this['_cursors'][_0x8a2bd3(0xd9)](_0x56ee13=>{const _0xc83c61=_0x8a2bd3;_0x56ee13[_0xc83c61(0x217)]();});const {scene:_0x5b4cf5}=_0x3eb84c,_0x33da7d=on(Array[_0x8a2bd3(0xf9)](_0x224af5[_0x8a2bd3(0x178)]()))['map'](_0x6f9124=>{const _0x1da76a=_0x8a2bd3,{color:_0x29d95c,range:_0x558988,name:_0xa2978,selection:_0x1344da,sheetID:_0x2f3908}=_0x6f9124,{startColumn:_0x1b9bd6,startRow:_0x59da29,endColumn:_0x3a15a1,endRow:_0x92a37a}=_0x558988,_0x2edc8c=_0xca1a2a(_0x59da29,_0x1b9bd6,_0x5b4cf5,_0x4cd10b),_0x1391be=_0xca1a2a(_0x92a37a,_0x3a15a1,_0x5b4cf5,_0x4cd10b),{columnHeaderHeightAndMarginTop:_0x17d564}=_0x4cd10b,{startX:_0x4c2f02,startY:_0x1943d9}=_0x2edc8c,{endX:_0x5296b8,endY:_0x1e9c7b}=_0x1391be,_0x341c64=_0x5296b8-_0x4c2f02,_0x419e15=_0x1e9c7b-_0x1943d9,_0x2e7624={'labelPosition':_0x1943d9-_0x17d564>=Q?_0x1da76a(0x20b):_0x1da76a(0x27c),'sheetID':_0x2f3908,'range':_0x558988,'color':_0x29d95c,'name':_0xa2978,'selection':_0x1344da,'left':_0x4c2f02,'top':_0x1943d9,'width':_0x341c64,'height':_0x419e15,'evented':!0x1,'zIndex':rn};return new tn(_0xa2978,_0x2e7624);});_0x5b4cf5[_0x8a2bd3(0x101)](_0x33da7d,qi),this['_cursors']=new Set(_0x33da7d);}[_0x35261d(0x1e2)](){const _0x277c4a=_0x35261d;var _0x498a28;(_0x498a28=this[_0x277c4a(0x208)])==null||_0x498a28['forEach'](_0x4ebab6=>_0x4ebab6['dispose']());}['_getSheetObject'](){const _0x11302b=_0x35261d;return _0x5c8b20(this[_0x11302b(0x1c2)][_0x11302b(0x22d)],this['_context']);}};ke=nn([be(0x1,_0x526d56(_0x18e06d)),be(0x2,_0x526d56(H)),be(0x3,_0x526d56(_0x160c6e))],ke);function on(_0x103ab6){const _0x301106=_0x35261d,_0x3af9ac=new Map();return _0x103ab6[_0x301106(0xd9)](_0x32ed39=>{const _0x3c1366=_0x301106;if(_0x3af9ac['has'](_0x32ed39['selection'])){const _0x3f848f=_0x3af9ac['get'](_0x32ed39[_0x3c1366(0x251)]);_0x3f848f[_0x3c1366(0x1f2)]+=',\x20'+_0x32ed39[_0x3c1366(0x1f2)];}else _0x3af9ac[_0x3c1366(0x156)](_0x32ed39[_0x3c1366(0x251)],_0x32ed39);}),Array['from'](_0x3af9ac[_0x301106(0x178)]());}var an=Object[_0x35261d(0x2ec)],cn=(_0x50f2f9,_0x5d7e7e,_0x4256cf,_0x2e7fc7)=>{const _0x37d741=_0x35261d;for(var _0x1cc0b7=_0x2e7fc7>0x1?void 0x0:_0x2e7fc7?an(_0x5d7e7e,_0x4256cf):_0x5d7e7e,_0x28614b=_0x50f2f9[_0x37d741(0x2cc)]-0x1,_0x2023fb;_0x28614b>=0x0;_0x28614b--)(_0x2023fb=_0x50f2f9[_0x28614b])&&(_0x1cc0b7=_0x2023fb(_0x1cc0b7)||_0x1cc0b7);return _0x1cc0b7;},F=(_0x1d6cb2,_0x174860)=>(_0x2eaf6a,_0x10b4ba)=>_0x174860(_0x2eaf6a,_0x10b4ba,_0x1d6cb2);let _e=class extends _0x574664{constructor(_0xde69f2,_0x2a39a8,_0x246d2c,_0x6306a8,_0x43d797,_0x592c44){const _0x2aa1d8=_0x35261d;super(),this[_0x2aa1d8(0x1b3)]=_0xde69f2,this[_0x2aa1d8(0x1f6)]=_0x2a39a8,this[_0x2aa1d8(0x2b2)]=_0x246d2c,this[_0x2aa1d8(0x20e)]=_0x6306a8,this['_notificationService']=_0x43d797,this[_0x2aa1d8(0x167)]=_0x592c44,this['_setupBeforeClosingHandler'](),this['_initEvent']();}['_setupBeforeClosingHandler'](){const _0xe07d29=_0x35261d;this['disposeWithMe'](this[_0xe07d29(0x1b3)][_0xe07d29(0x11c)](()=>{const _0x3ea801=_0xe07d29;if(this[_0x3ea801(0x1f6)]['saveTaskMap'][_0x3ea801(0x1d9)])return this[_0x3ea801(0x167)]['t'](_0x3ea801(0x23b));}));}[_0x35261d(0x13c)](){const _0x2f0f7f=_0x35261d;this[_0x2f0f7f(0x2ca)](this['_collaborationUIEventService'][_0x2f0f7f(0x15f)][_0x2f0f7f(0x223)](_0x8ce1e5=>{const _0x1bcfd4=_0x2f0f7f;_0x8ce1e5['id']===_0x2cf9a6[_0x1bcfd4(0x209)]&&this[_0x1bcfd4(0x20e)]['show']({'type':_0x2edb7e[_0x1bcfd4(0x15c)],'content':this['_localeService']['t']('collaboration.single-unit.warning')}),_0x8ce1e5['id']===_0x2cf9a6[_0x1bcfd4(0x250)]&&this['_messageService'][_0x1bcfd4(0x1d2)]({'type':_0x2edb7e[_0x1bcfd4(0x15c)],'content':this[_0x1bcfd4(0x167)]['t'](_0x1bcfd4(0x202))}),_0x8ce1e5['id']===_0x2cf9a6[_0x1bcfd4(0xc1)]&&this[_0x1bcfd4(0xfe)]['show']({'title':this[_0x1bcfd4(0x167)]['t'](_0x1bcfd4(0x14c)),'content':this[_0x1bcfd4(0x167)]['t'](_0x1bcfd4(0x28c)),'type':_0x1bcfd4(0x2a8),'duration':0x0}),_0x8ce1e5['id']===_0x2cf9a6['CONFLICT']&&this[_0x1bcfd4(0x20e)][_0x1bcfd4(0x1d2)]({'type':_0x2edb7e[_0x1bcfd4(0x113)],'content':this[_0x1bcfd4(0x167)]['t'](_0x1bcfd4(0x202))+'('+_0x8ce1e5[_0x1bcfd4(0x11d)]+')'}),_0x8ce1e5['id']===_0x2cf9a6[_0x1bcfd4(0x12b)]&&this[_0x1bcfd4(0x20e)][_0x1bcfd4(0x1d2)]({'type':_0x2edb7e[_0x1bcfd4(0x15c)],'content':this[_0x1bcfd4(0x167)]['t'](_0x8ce1e5['data']||'')}),_0x8ce1e5['id']===_0x2cf9a6[_0x1bcfd4(0x1a5)]&&this[_0x1bcfd4(0x20e)][_0x1bcfd4(0x1d2)]({'type':_0x2edb7e[_0x1bcfd4(0x15c)],'content':this[_0x1bcfd4(0x167)]['t'](_0x1bcfd4(0x229))}),_0x8ce1e5['id']===_0x2cf9a6[_0x1bcfd4(0x112)]&&this[_0x1bcfd4(0x20e)][_0x1bcfd4(0x1d2)]({'type':_0x2edb7e[_0x1bcfd4(0x113)],'content':this['_localeService']['t']('session.connection-failed')}),_0x8ce1e5['id']===_0x2cf9a6[_0x1bcfd4(0x2ce)]&&this[_0x1bcfd4(0x20e)][_0x1bcfd4(0x1d2)]({'type':_0x2edb7e['Error'],'content':this['_localeService']['t'](_0x1bcfd4(0xc2))});}));}};_e=cn([F(0x0,_0xcf29c0),F(0x1,_0xd5c05d),F(0x2,_0x526d56(_0x2448af)),F(0x3,_0xc6b805),F(0x4,_0x2c5f9a),F(0x5,_0x526d56(_0x33240e))],_e);var _n=Object[_0x35261d(0x2ec)],ln=(_0xc0c757,_0x31d626,_0xb7d15d,_0x24d4aa)=>{const _0x17af14=_0x35261d;for(var _0x37be47=_0x24d4aa>0x1?void 0x0:_0x24d4aa?_n(_0x31d626,_0xb7d15d):_0x31d626,_0x37fe72=_0xc0c757[_0x17af14(0x2cc)]-0x1,_0x3fdb58;_0x37fe72>=0x0;_0x37fe72--)(_0x3fdb58=_0xc0c757[_0x37fe72])&&(_0x37be47=_0x3fdb58(_0x37be47)||_0x37be47);return _0x37be47;},ne=(_0x1b6d6f,_0x2fd6b8)=>(_0x138910,_0x28f816)=>_0x2fd6b8(_0x138910,_0x28f816,_0x1b6d6f);let le=class extends _0x574664{constructor(_0x523fe5,_0xeea8b8,_0x5705fa,_0x5d2461){const _0x3df5d3=_0x35261d;super(),_(this,_0x3df5d3(0x154)),(this[_0x3df5d3(0x2de)]=_0x523fe5,this[_0x3df5d3(0x2c2)]=_0xeea8b8,this[_0x3df5d3(0x2cd)]=_0x5705fa,this['_collaborationSessionService']=_0x5d2461,this[_0x3df5d3(0x187)]());}['_init'](){const _0x142b12=_0x35261d;this['_initWindowErrorListener'](),this[_0x142b12(0x23e)](),this['_monkeyPatchLogService'](),this[_0x142b12(0x2af)]();}[_0x35261d(0x2af)](){const _0x688415=_0x35261d;this[_0x688415(0x2ca)](this[_0x688415(0xb2)][_0x688415(0x26f)]['subscribe'](_0x3ad764=>{const _0x516bf1=_0x688415;this[_0x516bf1(0x154)]=_0x3ad764==null?void 0x0:_0x3ad764['memberID'];}));}[_0x35261d(0x1af)](){const _0x1b534c=_0x35261d,_0x5223c6=_0x4b5d38=>{const _0x4ca17b=_0x4abd;var _0x42b3ad;this[_0x4ca17b(0x25f)](_0x4ca17b(0x2a8),_0x4ca17b(0x21b)+_0x4b5d38[_0x4ca17b(0xa9)]+_0x4ca17b(0x1fa)+_0x4b5d38['filename']+':'+_0x4b5d38[_0x4ca17b(0x221)]+':'+_0x4b5d38[_0x4ca17b(0x1e5)]+'\x0a'+(((_0x42b3ad=_0x4b5d38[_0x4ca17b(0x2a8)])==null?void 0x0:_0x42b3ad['stack'])||''));};window[_0x1b534c(0x1c9)](_0x1b534c(0x2a8),_0x5223c6),this[_0x1b534c(0x2ca)](()=>{const _0x492b46=_0x1b534c;window[_0x492b46(0xbe)](_0x492b46(0x2a8),_0x5223c6);});}[_0x35261d(0x23e)](){const _0xc51986=_0x35261d,_0x52cf38=_0x59daee=>{const _0x98b8fb=_0x4abd;this['_uploadLog'](_0x98b8fb(0x2a8),_0x98b8fb(0x22f)+_0x59daee['reason']);};window[_0xc51986(0x1c9)](_0xc51986(0x1fe),_0x52cf38),this['disposeWithMe'](()=>{const _0x178824=_0xc51986;window[_0x178824(0xbe)]('unhandledrejection',_0x52cf38);});}['_monkeyPatchLogService'](){const _0x337254=_0x35261d,_0x22bd9a=this[_0x337254(0x2cd)]['error'][_0x337254(0x146)](this[_0x337254(0x2cd)]);this[_0x337254(0x2cd)][_0x337254(0x2a8)]=(..._0x9b8ba0)=>{const _0xd21a6d=_0x337254,_0x18b8d3=_0x9b8ba0[_0xd21a6d(0x1ba)](_0x323f22=>_0x323f22 instanceof Error?_0x323f22[_0xd21a6d(0xa9)]+'\x0a'+_0x323f22[_0xd21a6d(0x150)]:String(_0x323f22))['join']('\x20');this['_uploadLog'](_0xd21a6d(0x2a8),_0xd21a6d(0x2aa)+_0x18b8d3),_0x22bd9a(..._0x9b8ba0);},this[_0x337254(0x2ca)](()=>{this['_logService']['error']=_0x22bd9a;});}[_0x35261d(0x25f)](_0x21756d,_0xacb264){const _0x3994dd=_0x35261d;try{const _0x4dda3b={'userId':this[_0x3994dd(0x154)],'logLabel':_0x21756d,'content':_0xacb264};this[_0x3994dd(0x2c2)][_0x3994dd(0x17d)](_0x3994dd(0x2b7),{'body':_0x4dda3b})[_0x3994dd(0xd0)](()=>{});}catch{}}};le=ln([ne(0x0,_0x526d56(_0x3393f4)),ne(0x1,_0x526d56(_0x1165a8)),ne(0x2,_0x17989f),ne(0x3,_0x526d56(_0x161ab7))],le);const hn=_0x35261d(0x1cc),_t={};var un=Object[_0x35261d(0x2ec)],dn=(_0x58f0c2,_0x420537,_0x29a1bf,_0x2bf924)=>{const _0xc8d0b6=_0x35261d;for(var _0x5eb3e1=_0x2bf924>0x1?void 0x0:_0x2bf924?un(_0x420537,_0x29a1bf):_0x420537,_0x1f02b7=_0x58f0c2[_0xc8d0b6(0x2cc)]-0x1,_0x4f4376;_0x1f02b7>=0x0;_0x1f02b7--)(_0x4f4376=_0x58f0c2[_0x1f02b7])&&(_0x5eb3e1=_0x4f4376(_0x5eb3e1)||_0x5eb3e1);return _0x5eb3e1;},lt=(_0x387190,_0xb4ce7a)=>(_0x304f9e,_0x1a22d8)=>_0xb4ce7a(_0x304f9e,_0x1a22d8,_0x387190);let he=class{constructor(_0x48a74c,_0x3b753f){const _0x3d4329=_0x35261d;this[_0x3d4329(0x2ba)]=_0x48a74c,this[_0x3d4329(0x263)]=_0x3b753f;}[_0x35261d(0x2cb)](_0x4034ec){const _0x162618=_0x35261d;this[_0x162618(0x214)](_0x4034ec),this[_0x162618(0xd3)](_0x4034ec);}[_0x35261d(0x19f)](_0xcc4409){const _0x89ec8a=_0x35261d,{unitID:_0x181047}=_0xcc4409,_0x4d3654=this[_0x89ec8a(0x263)]['getRenderById'](_0x181047)[_0x89ec8a(0x2e0)](_0x5a23cc),{redoCache:_0x363c34}=_0x4d3654[_0x89ec8a(0x192)]();if(_0x363c34[_0x89ec8a(0x2cc)]===0x0)return _0xcc4409;let _0x3dc466=_0x3faafe[_0x89ec8a(0xe5)](_0xcc4409[_0x89ec8a(0x9a)][0x0]);for(let _0x283571=0x0;_0x283571<_0x363c34[_0x89ec8a(0x2cc)];_0x283571++){const _0x356102={'id':_0x89ec8a(0x165),'params':{..._0x363c34[_0x283571]}},_0x35affd=this['_transformService'][_0x89ec8a(0x14b)](_0x3dc466,_0x356102,!0x1);if(_0x384eb6(_0x35affd))throw _0x35affd[_0x89ec8a(0x2a8)];_0x3dc466=_0x35affd[_0x89ec8a(0x1b6)];}return{..._0x3faafe[_0x89ec8a(0xe5)](_0xcc4409),'mutations':[_0x3dc466]};}[_0x35261d(0x214)](_0x56304a){const _0x5b1409=_0x35261d,{unitID:_0x235c33}=_0x56304a,_0x57bc2c=this[_0x5b1409(0x263)]['getRenderById'](_0x235c33)[_0x5b1409(0x2e0)](_0x5a23cc),{undoCache:_0x2f64d8,redoCache:_0x9dde72}=_0x57bc2c['getUndoRedoMutationParamsCache']();if(_0x2f64d8['length']===0x0||_0x9dde72[_0x5b1409(0x2cc)]===0x0)return;const _0x592641=[],_0x29f132=[];let _0x5d78cd=_0x3faafe[_0x5b1409(0xe5)](_0x56304a['mutations'][0x0]),_0x5915d5=_0x3faafe['deepClone'](_0x56304a[_0x5b1409(0x9a)][0x0]);for(let _0x5b38a5=_0x2f64d8['length']-0x1;_0x5b38a5>=0x0;_0x5b38a5--){const _0x313be4={'id':_0x5b1409(0x165),'params':{..._0x2f64d8[_0x5b38a5]}},_0x571651={'id':_0x5b1409(0x165),'params':{..._0x9dde72[_0x5b38a5]}},_0x215f3b=this[_0x5b1409(0x2ba)][_0x5b1409(0x14b)](_0x5d78cd,_0x313be4,!0x1),_0x2bf076=this[_0x5b1409(0x2ba)]['transformMutation'](_0x5915d5,_0x571651,!0x1);if(_0x384eb6(_0x215f3b))throw _0x215f3b[_0x5b1409(0x2a8)];if(_0x384eb6(_0x2bf076))throw _0x2bf076['error'];_0x592641[_0x5b1409(0xd8)](_0x215f3b[_0x5b1409(0x1e9)]['params']),_0x29f132['unshift'](_0x2bf076[_0x5b1409(0x1e9)][_0x5b1409(0x1fc)]),_0x5d78cd=_0x215f3b['m1Prime'],_0x5915d5=_0x2bf076[_0x5b1409(0x1b6)];}_0x57bc2c[_0x5b1409(0x185)]({'undoCache':_0x592641,'redoCache':_0x29f132});}['_transformPreviousActiveRange'](_0x4767a2){const _0x22fdc8=_0x35261d,{unitID:_0x1b3d45}=_0x4767a2,_0x19a1a1=this[_0x22fdc8(0x263)]['getRenderById'](_0x1b3d45)[_0x22fdc8(0x2e0)](_0x5a23cc),_0x1b8f67=_0x19a1a1['getActiveRange']();if(_0x1b8f67==null)return;const _0x5b94cc=[{'id':_0x22fdc8(0x165),'params':{'unitId':_0x4767a2[_0x22fdc8(0x16b)],'actions':null,'textRanges':[_0x1b8f67]}}],_0x711f07=this[_0x22fdc8(0x2ba)][_0x22fdc8(0x175)](_0x4767a2,_0x5b94cc);if(!_0x5a6ed3(_0x711f07))throw _0x711f07[_0x22fdc8(0x2a8)];const _0x308d19=_0x711f07[_0x22fdc8(0x1e9)][0x0][_0x22fdc8(0x1fc)][_0x22fdc8(0xde)];Array[_0x22fdc8(0x233)](_0x308d19)&&_0x308d19['length']&&_0x19a1a1[_0x22fdc8(0xbd)](_0x308d19[0x0]);}};he=dn([lt(0x0,_0x2bb8a5),lt(0x1,_0x1589e8)],he);var Sn=Object[_0x35261d(0x2ec)],In=(_0x453806,_0x19d791,_0x4d1436,_0x16176d)=>{for(var _0x2f1814=_0x16176d>0x1?void 0x0:_0x16176d?Sn(_0x19d791,_0x4d1436):_0x19d791,_0x154556=_0x453806['length']-0x1,_0x237a31;_0x154556>=0x0;_0x154556--)(_0x237a31=_0x453806[_0x154556])&&(_0x2f1814=_0x237a31(_0x2f1814)||_0x2f1814);return _0x2f1814;},Le=(_0x3c9570,_0x124f70)=>(_0x3d1d93,_0x3c6e8a)=>_0x124f70(_0x3d1d93,_0x3c6e8a,_0x3c9570);let ue=class{constructor(_0x73f782,_0x41da56,_0x196327){const _0x451d6a=_0x35261d;this[_0x451d6a(0x2de)]=_0x73f782,this[_0x451d6a(0x2ba)]=_0x41da56,this['_docStateChangeManagerService']=_0x196327;}[_0x35261d(0xb7)](_0xe014af){const _0x15efbe=_0x35261d;this[_0x15efbe(0x2c0)](_0xe014af);}[_0x35261d(0x19f)](_0x2e01c5){const _0x8c7d06=_0x35261d,{unitID:_0x3ae204}=_0x2e01c5,{collaboration:_0x302de4}=this['_docStateChangeManagerService']['getStateCache'](_0x3ae204);if(_0x302de4[_0x8c7d06(0x2cc)]===0x0)return _0x2e01c5;let _0x4d9a50=_0x3faafe[_0x8c7d06(0xe5)](_0x2e01c5['mutations'][0x0]);for(let _0x1dd509=0x0;_0x1dd509<_0x302de4[_0x8c7d06(0x2cc)];_0x1dd509++){const _0xad20f9={'id':_0x8c7d06(0x165),'params':{'unitId':_0x302de4[_0x1dd509]['unitId'],..._0x302de4[_0x1dd509][_0x8c7d06(0x2a5)]}},_0x4b7103=this['_transformService'][_0x8c7d06(0x14b)](_0x4d9a50,_0xad20f9,!0x1);if(_0x384eb6(_0x4b7103))throw _0x4b7103[_0x8c7d06(0x2a8)];_0x4d9a50=_0x4b7103[_0x8c7d06(0x1b6)];}return{..._0x3faafe[_0x8c7d06(0xe5)](_0x2e01c5),'mutations':[_0x4d9a50]};}[_0x35261d(0x2c0)](_0x3cec8b){const _0x929e99=_0x35261d,{unitID:_0x37c0c1}=_0x3cec8b,{history:_0x3e1580,collaboration:_0x503b5a}=this[_0x929e99(0x151)][_0x929e99(0x138)](_0x37c0c1);if(_0x3e1580[_0x929e99(0x2cc)]===0x0&&_0x503b5a[_0x929e99(0x2cc)]===0x0)return;const _0x1e709b=[],_0x51294e=[];let _0x145658=_0x3faafe[_0x929e99(0xe5)](_0x3cec8b[_0x929e99(0x9a)][0x0]),_0x48d1b4=_0x3faafe[_0x929e99(0xe5)](_0x3cec8b[_0x929e99(0x9a)][0x0]);for(let _0x3787ae=_0x3e1580[_0x929e99(0x2cc)]-0x1;_0x3787ae>=0x0;_0x3787ae--){const _0x1b792c={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3e1580[_0x3787ae][_0x929e99(0x196)],..._0x3e1580[_0x3787ae][_0x929e99(0x211)]}},_0x2d2412={'id':_0x929e99(0x165),'params':{'unitId':_0x3e1580[_0x3787ae][_0x929e99(0x196)],..._0x3e1580[_0x3787ae]['redoState']}},_0x3ba2e2=this[_0x929e99(0x2ba)][_0x929e99(0x14b)](_0x145658,_0x1b792c,!0x1),_0xd7bfd3=this['_transformService'][_0x929e99(0x14b)](_0x48d1b4,_0x2d2412,!0x1);if(_0x384eb6(_0x3ba2e2))throw _0x3ba2e2[_0x929e99(0x2a8)];if(_0x384eb6(_0xd7bfd3))throw _0xd7bfd3['error'];_0x1e709b[_0x929e99(0xd8)]({..._0x3e1580[_0x3787ae],'undoState':_0x3ba2e2[_0x929e99(0x1e9)]['params'],'redoState':_0xd7bfd3[_0x929e99(0x1e9)][_0x929e99(0x1fc)]}),_0x145658=_0x3ba2e2[_0x929e99(0x1b6)],_0x48d1b4=_0xd7bfd3[_0x929e99(0x1b6)];}_0x145658=_0x3faafe[_0x929e99(0xe5)](_0x3cec8b[_0x929e99(0x9a)][0x0]),_0x48d1b4=_0x3faafe['deepClone'](_0x3cec8b[_0x929e99(0x9a)][0x0]);for(let _0x5ab27a=_0x503b5a['length']-0x1;_0x5ab27a>=0x0;_0x5ab27a--){const _0x1e36ee={'id':_0x929e99(0x165),'params':{'unitId':_0x503b5a[_0x5ab27a][_0x929e99(0x196)],..._0x503b5a[_0x5ab27a][_0x929e99(0x211)]}},_0x3da654={'id':_0x929e99(0x165),'params':{'unitId':_0x503b5a[_0x5ab27a][_0x929e99(0x196)],..._0x503b5a[_0x5ab27a][_0x929e99(0x2a5)]}},_0x1265bb=this[_0x929e99(0x2ba)][_0x929e99(0x14b)](_0x145658,_0x1e36ee,!0x1),_0x43259c=this['_transformService']['transformMutation'](_0x48d1b4,_0x3da654,!0x1);if(_0x384eb6(_0x1265bb))throw _0x1265bb[_0x929e99(0x2a8)];if(_0x384eb6(_0x43259c))throw _0x43259c[_0x929e99(0x2a8)];_0x51294e[_0x929e99(0xd8)]({..._0x503b5a[_0x5ab27a],'undoState':_0x1265bb[_0x929e99(0x1e9)]['params'],'redoState':_0x43259c[_0x929e99(0x1e9)]['params']}),_0x145658=_0x1265bb['m1Prime'],_0x48d1b4=_0x43259c[_0x929e99(0x1b6)];}this[_0x929e99(0x151)]['setStateCache'](_0x37c0c1,{'history':_0x1e709b,'collaboration':_0x51294e});}};function _0xb14e(){const _0x3d552e=['_commandService','origin','_cursor','_document','ENTITLE_NEED_BILLING_ADDRESS','_maxFormulaLimit','CONFLICT','transformRemoteChangeset','sheetId','DeleteRangeMoveLeftCommandId','find','_applyCommand','setTimeout','SOCKET_FAILED_RETRY','onMouseMove','saveImage','_collaborationController','6575lMCjZE','get','findNodePositionByCharIndex','isEditing','_scene','LICENSE_DISTRO_REJECTED','_initWindowErrorListener','_createSocketURL','url(#off-line-icon_clip0_910_343)','_docSyncEditingCollabCursorService','_beforeCloseService','_cachedData','white','m1Prime','YUUMI_URL_COL_OUT_OF_RANGE','then','InsertColCommandId','map','_toggleOnline','_drawTextRange','_range','includes','[RemoteUniscriptService]:\x20no\x20focused\x20unit','UPDATE_CURSOR','font','_context','limitInfo','actions','_name','result','save','NOT_COLLAB','addEventListener','_anchor','runOnServer','collaboration-client-ui.config','collabStatus.synced','range','LICENSE_IMPORT_SIZE_EXCEEDED','assignAColorForMemberID','_currentUsage','show','transformByState','off-line-icon_clip0_910_343','key','type','collabStatus.conflict','univer-flex\x20univer-items-center','size','INVITE_CODE_HAS_BEEN_UES','getSheetBySheetId','green.600','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','LICENSE_EXPORT_SIZE_EXCEEDED','collab-rect-range-','_updateURLWithCurrentState','lineTo','_removeCollabCursors','setItem','loadOfflineData','colno','_getSheetObject','_checkCalculationAvailable','black','m2Prime','_memberService','_collabCursorState$','_updateLocalCursor','fillText','beforeCommandExecuted','random','22958NWMnUe','_session','name','MOBILE_VERIFY_CODE_MISMATCH','dirtyRanges','_scheduleClearOtherTimer','_localCacheService','ENTITLE_USE_COUPON_NOT_1ST_TRADE','_unitOnClients','_cursorShapes','\x20at\x20','_config','params','runId','unhandledrejection','/universer-api/license/formula/limit/done','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_registerDependencies','collaboration.closeRoom','78453cYntQp','TEXT','svg','CHANGESET_REVISION_CONFILICT','search','_cursors','OTHER_CLIENT_EDITING','_disabled','top','MOBILE_HAS_BEEN_BOUND','163236lqoeaC','_messageService','toRgbString','replaceDocRanges','undoState','split','_getScale','_transformUndoRedoStack','_anchorDot','subscribeEvent','makeDirty','off-line-icon','EMAIL_HAS_BEEN_BOUND','_onCursorDelete','[Window\x20Error]:\x20','cursorInfo','START_CALCULATION','colorChannel1','REDEMPTION_CODE_HAS_BEEN_CREATED','arc','lineno','onPointerLeave$','subscribe','_refRangeService','_showGuardMessage','registerComponent','status$','1em','session.will-retry','LOGIN_FAILED','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','yellow.400','unit','add','[Unhandled\x20Rejection]:\x20','ENTITLE_CHAT_LIMIT_EXCEED','substring','debug','isArray','OffLineIcon','UNIVER_DOC','onPointerMove$','_removeClearOtherTimer','_saveCache','string','Unknown\x20user','collaboration.offline-data-not-saved','ticket','text','_initUnhandledRejectionListener','LOGIN_TOKEN_PROCESSING_FAILED','focused$','memberID','setConfig','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_id','NOT_FOUND','ENTITLE_INSUFFICIENT_QUOTA','newValue','_toggleOffline','MoveRangeCommandId','enableLocalCache','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','startRow','_onCursorUpdate','_registerRenderDependencies','location','CLOSE_ROOM','selection','UniverIcon','13364700nDbtve','pushState','http://www.w3.org/2000/svg','dispose','formula.calculation.unable','YUUMI_TABLE_NOT_FOUND_IN_UNIT','endColumn','UNDEFINED','send','stringify','NO_OTHER_CLIENTS_EDITING','hovered','_uploadLog','none','_handleHeartbeatEvent','updateOfflineData','_renderManagerService','createSocket','registerRenderModule','width','onPointerEnter$','_hover','setParam','133wxgEOP','onTransformChange$','max','subunit','REDEMPTION_USER_REDEEM_TIMES_EXCEED','socket$','roomMembers','startsWith','parse','getMember','_refreshCollabCursors','clipPath','univer-mr-2\x20univer-flex\x20univer-text-xl','min','getActiveSheet','getMergeData','VIEW_MAIN','addObject','bottom','_instanceService','wsSessionTicketUrl','endRow','_docTransformStateCacheService','[CollaborationDataLoaderController]','unload','USER_IS_ANONYMOUS','3553008SvApGR','setAlpha','_docTransformSelectionsService','backgroundColor','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_getFormulaLimitStatus','getDocRanges','_taskIds','permission.content','getFormulaLimitStatusUrl','getCollabCursors$','defineProperty','_entities','has','55ZwpkEC','drawWith','PAYMENT_CHANNEL_NOT_SUPPORT','_ensureSubject','REDEMPTION_CODE_INACTIVE','getTypeOfUnitDisposed$','_localStorageService','searchParams','activeSheet$','ENTITLE_REPORT_LIMIT_EXCEED','evenodd','_onRefRangeChange','currentColor','_handleHover','collabStatus.offline','init','currentSkeleton$','InsertRangeMoveRightCommandId','_colorAssignService','redoState','OFFLINE','_sheetSkeletonManagerService','error','_docTransformIMECacheService','[LogService\x20Error]:\x20','_imageIoService','InsertRangeMoveDownCommandId','shift','_getSaveTimeout','_initUserListener','FromArray','UNAUTHENTICATED','_collaborationUIEventService','ENTITLE_DUP_SUBSCRIPTION','SNAPSHOT_INVALID_SNAPSHOT','CURRENT_STATUS_CANNOT_OPERATE','SUCCESS','/universer-api/frontend/logs','urlChange$','_docSkeletonManagerService','_transformService','idSuffix','parseInt','startColumn','unsubscribe','row','_transformHistoryAndStateStack','dispose$','_httpService','_initCommandInterceptor','WECHAT_HAS_BEEN_BOUND','getVpScrollXYInfoByPosToVp','getSheetId','getCollabEntity$','onRendered','_entityInit$','disposeWithMe','transformIMECache','length','_logService','SUBMIT_CHANGESET_TIMEOUT','onLocalMutation','USERS_LEAVE','transformSelections','_unitStatus','_colorIndex','delete','getCellPositionByOffset','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','...','resize','YUUMI_RATE_OVER_LIMIT','/universer-api/license/formula/limit/status','CONNECTOR_DATA_TOO_LARGE','getParam','getTypeOfUnitAdded$','_injector','totalFormulasToCalculate','with','roomMembers$','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','pipe','REDEMPTION_INVALID_CODE','getRelativeToViewportCoord','0\x200\x2016\x2016','RemoveColCommandId','isActive','_collabCursorController','flatMap','clearTimeout','getOwnPropertyDescriptor','_selfUnitIDs','collabCursorState$','ENTITLE_COUPON_USED_UP','all','_lastResponseTimestamp','purple.300','Loading','beginPath','_checkAndWaitForCalculationPermission','_dataLoaderService','mutations','DATA_SOURCE_TOO_LARGE','getUnhiddenWorksheets','displayName','collabStatus.fetchMiss','requireSession','_scheduleHeartbeat','REDEMPTION_CODE_FULLY_REDEEMED','setShapeProps','/run/','YUUMI_AI_RUN_FAILED','pluginName','column','363XCSnhw','_labelPosition','message','imageSourceType','_themeService','_syncEditingCollabCursorService','hide','EMAIL_VERIFY_CODE_MISMATCH','YUUMI_CONNECTOR_URL_NOT_FOUND','getUniverSheetInstance','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_collaborationSessionService','ERROR_AGAIN','fill','entries','APPLY_PERMISSION_DENIED','transformStateCache','onCommandExecuted','now','registerRefRange','0\x200\x2017\x2016','url(#$1','setActiveRange','removeEventListener','SYNCED','_setFormulaLimitStatus','PERMISSION_DENIED','session.collaboration-timeout','editingUnit','stageInfo','enableFrontendLog','ONLINE','YUUMI_UNABLE_LOAD_URL','invokeId','_initDependencies','setInterval','MUTATION','mask','AWAITING','_drawRectRange','_saveTaskMap','catch','push','transform','_transformPreviousActiveRange','attrs','href','some','getViewport','unshift','forEach','_handleJoinEvent','reconnect','toString','Failed','textRanges','YUUMI_ALL_TABLES_IS_INVALID','_getMergeRange','_docSkeleton','getSkeleton','on-line-icon_clip0_910_349','div','deepClone','APPLY_DUPLICATED','history','FETCH_MISS','OnLineIcon','_handleLeaveEvent','REDEMPTION_USER_NOT_ELIGIBLE','blue.400','xlink:href','_initStatusListener','SNAPSHOT_HAS_BEEN_REMOVED','_textBubble','_setupSubUnitSync','executeCommand','loadUnit','current','_startSheetCollabCursor','_initResize','syncEditingCollabCursor','_clearOtherTimers','from','_urlService','APPLY_REVISION_CONFILICT','_color','height','_notificationService','_roomMembers$','3244RqIiMC','addObjects','_scheduleSaving','_collabSessionService','getCurrent','fillStyle','next','_initStatusComponent','_univerInstanceService','skeleton','clearInterval','_docClipboardService','getFocusedUnit','measureText','translate(.97)','getUnitId','_pollingInterval','_cursorInfo$','SOCKET_FAILED','Error','getRangePointData','INTERNAL_ERROR','LICENSE_MAX_UNITS_EXCEEDED','removeParam','getCurrentRevOfUnit','_assignedColors','APPLY_REJECT','defs','registerBeforeClose','data','_hovered','_send','restore','collabStatus.notCollab','RECT','INVITE_CODE_ALREADY_BOUND','_render','_drawAnchor','_getAnchorBounding','UNIVER_SHEET','exhaustSavingTask','replaceState','_hideTimer','JOIN_ROOM_FAILED','InsertRowCommandId','_getSessionTicket','replace','children','1160sbaShA','INVALID_ARGUMENT','ranges','_releaseCalculationLimit','APPLY_NON_SEQUENTIAL_REVISION','getUnit','_doCreateSocket','engine','getStateCache','onStarting','executionId','getCurrentSelections','_initEvent','_shapes','ALREADY_EXISTS','assign','tag','getCellMatrix','_status$','createInstance','USER_NOT_FOUND','_lastPointer','bind','_revisionService','currentUsage','ENSURE_SNAPSHOT_EXECUTION','_online','transformMutation','permission.title','TOO_MANY_REQUESTS','defIds','getConfig','stack','_docStateChangeManagerService','HEADER_MENU','OTHER_CLIENTS_EDITING','_memberID','getColorFromTheme','set','saveOfflineData','INVALID_INVITE_CODE','_hasFormulaInDirtyRanges','1059059WtrIWw','code','Warning','YUUMI_ASYNCIO_CANCELLED','USER_NOT_INVITED_CODE','event$','getMemberID','subUnitId','YUUMI_NO_CUBOID_FOR_QUESTION','color','_eventUnsubscribe','doc.mutation.rich-text-editing','currentTheme$','_localeService','functionsExecutedState','maxFormulaLimit','getOffsetConfig','unitID','PY_RUNTIME_SCRIPT_ERROR','_heartbeatTimer','body','_clearPolling','COMPLETION_FINISHED','round','INVITE_CODE_REQUIRED','asObservable','storage','transformMutationsWithChangeset','ENTITLE_CAN_NOT_BUY_LOWER_OTP','getValue','values','ENTITLE_COUPON_EXPIRED','Success','path','_updateCollabCursors','post','selections','univerjs-icon\x20univerjs-icon-','YUUMI_SUBSCRIPTION_NOT_FOUND','_startCalculationLimit','RemoveRowCommandId','UNRECOGNIZED','_initEntityListener','setUndoRedoMutationParamsCache','complete','_init','_handleEvent','_uiPartsService','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','collab-client.tooltip.reconnect','moveTo','_configService','_draw','_updateSubUnitFromURLParams','stage','eventID','getUndoRedoMutationParamsCache','sessionStatus$','cursorInfo$','_backgroundColor','unitId','url(#on-line-icon_clip0_910_349)'];_0xb14e=function(){return _0x3d552e;};return _0xb14e();}ue=In([Le(0x0,_0x526d56(_0x3393f4)),Le(0x1,_0x2bb8a5),Le(0x2,_0x526d56(_0x2a92a0))],ue);var mn=Object[_0x35261d(0x2ec)],fn=(_0x1d2e87,_0x23355f,_0x170a2d,_0x868628)=>{const _0x308fa6=_0x35261d;for(var _0x23d412=_0x868628>0x1?void 0x0:_0x868628?mn(_0x23355f,_0x170a2d):_0x23355f,_0x2fed84=_0x1d2e87[_0x308fa6(0x2cc)]-0x1,_0x5bd873;_0x2fed84>=0x0;_0x2fed84--)(_0x5bd873=_0x1d2e87[_0x2fed84])&&(_0x23d412=_0x5bd873(_0x23d412)||_0x23d412);return _0x23d412;},ht=(_0x5afd77,_0x417fc5)=>(_0x5882ff,_0x80538a)=>_0x417fc5(_0x5882ff,_0x80538a,_0x5afd77);let de=class{constructor(_0x545675,_0x57a390){const _0x2982c4=_0x35261d;this[_0x2982c4(0x2de)]=_0x545675,this['_transformService']=_0x57a390;}[_0x35261d(0x2d1)](_0x1663f9){const _0x25604e=_0x35261d;var _0x37c13e;const _0x3f2326=this[_0x25604e(0x2de)][_0x25604e(0x1aa)](_0x40ad8f),_0x2b8cf3=(_0x37c13e=_0x3f2326['getDocRanges']())!=null?_0x37c13e:[];if(_0x2b8cf3[_0x25604e(0x2cc)]===0x0)return;const _0x411b97=_0x1663f9[_0x25604e(0x16b)],_0x218dfa=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x411b97,'actions':null,'textRanges':_0x2b8cf3}}],_0x1a3eea=this[_0x25604e(0x2ba)][_0x25604e(0x175)](_0x1663f9,_0x218dfa);if(!_0x5a6ed3(_0x1a3eea))throw _0x1a3eea[_0x25604e(0x2a8)];const _0x18f6b6=_0x1a3eea[_0x25604e(0x1e9)][0x0][_0x25604e(0x1fc)][_0x25604e(0xde)];Array[_0x25604e(0x233)](_0x18f6b6)&&_0x18f6b6[_0x25604e(0x2cc)]&&_0x3f2326[_0x25604e(0x210)](_0x18f6b6,{'unitId':_0x411b97,'subUnitId':_0x411b97},!0x1);}};de=fn([ht(0x0,_0x526d56(_0x3393f4)),ht(0x1,_0x2bb8a5)],de);var gn=Object[_0x35261d(0x2ec)],En=(_0x19df75,_0x2982e3,_0x115f5c,_0x2cd48e)=>{const _0x502b2b=_0x35261d;for(var _0x454bb8=_0x2cd48e>0x1?void 0x0:_0x2cd48e?gn(_0x2982e3,_0x115f5c):_0x2982e3,_0x1c10a9=_0x19df75[_0x502b2b(0x2cc)]-0x1,_0x415b38;_0x1c10a9>=0x0;_0x1c10a9--)(_0x415b38=_0x19df75[_0x1c10a9])&&(_0x454bb8=_0x415b38(_0x454bb8)||_0x454bb8);return _0x454bb8;},U=(_0xd5adb3,_0x23df62)=>(_0x1af43f,_0x47b4b7)=>_0x23df62(_0x1af43f,_0x47b4b7,_0xd5adb3);let Se=class extends _0x574664{constructor(_0x369d96,_0x453a66,_0x191bd5,_0x2f4c4d,_0x1ac254,_0x41b43c,_0x1b07a7,_0x35f6eb){const _0x2b976d=_0x35261d;super(),_(this,_0x2b976d(0x142),new _0x190ae5(_0x2481d0[_0x2b976d(0x1c8)])),(this['_docStateChangeManagerService']=_0x369d96,this[_0x2b976d(0x1a8)]=_0x453a66,this[_0x2b976d(0x2a9)]=_0x191bd5,this[_0x2b976d(0x280)]=_0x2f4c4d,this[_0x2b976d(0x286)]=_0x1ac254,this[_0x2b976d(0x1b2)]=_0x41b43c,this[_0x2b976d(0x20e)]=_0x1b07a7,this['_localeService']=_0x35f6eb,this[_0x2b976d(0x184)]());}[_0x35261d(0x184)](){const _0x4ba3f3=_0x35261d;this[_0x4ba3f3(0x2ca)](this['_collaborationController']['entityInit$'][_0x4ba3f3(0x223)](_0x2ef230=>{const _0x181254=_0x4ba3f3,_0x43f2dc=this['_docStateChangeManagerService']['docStateChange$'][_0x181254(0x223)](_0x1077d5=>{const _0x1f3fc0=_0x181254;if(_0x1077d5==null)return;const {unitId:_0x5dbd65,redoState:_0x1a3a46,commandId:_0x2fbb2b}=_0x1077d5;if(_0x5dbd65!==_0x2ef230['unitID'])return;const _0x297b93={'id':_0x2fbb2b,'type':_0x120b22[_0x1f3fc0(0xcb)],'params':{'unitId':_0x5dbd65,'actions':_0x1a3a46[_0x1f3fc0(0x1c4)],'textRanges':null}};_0x2ef230[_0x1f3fc0(0x2cf)](_0x297b93);});if(_0x2ef230[_0x181254(0x2ca)](_0x43f2dc),_0x2ef230 instanceof _0x3903e1){const _0xd38b28={'onTransformIME':_0x1f2325=>this[_0x181254(0x2a9)][_0x181254(0x2cb)](_0x1f2325),'onTransformState':_0x51a7bc=>this[_0x181254(0x280)]['transformStateCache'](_0x51a7bc),'onTransformSelections':_0x472649=>this[_0x181254(0x286)][_0x181254(0x2d1)](_0x472649),'onSyncEditingCollabCursor':_0x19327f=>this[_0x181254(0x1b2)][_0x181254(0xf7)](_0x19327f),'onTransformRemoteChangesetByIMECache':_0x334f60=>this[_0x181254(0x2a9)][_0x181254(0x19f)](_0x334f60),'onTransformRemoteChangesetByStateCache':_0x29f98b=>this[_0x181254(0x280)][_0x181254(0x19f)](_0x29f98b)};_0x2ef230['addHandlerCallback'](_0xd38b28);}}));}};Se=En([U(0x0,_0x526d56(_0x2a92a0)),U(0x1,_0x526d56(_0x230f4)),U(0x2,_0x526d56(he)),U(0x3,_0x526d56(ue)),U(0x4,_0x526d56(de)),U(0x5,_0x526d56(ze)),U(0x6,_0xc6b805),U(0x7,_0x526d56(_0x33240e))],Se);var Z=(_0x2eb1ae=>(_0x2eb1ae[_0x2eb1ae['UNDEFINED']=0x0]=_0x35261d(0x25a),_0x2eb1ae[_0x2eb1ae['OK']=0x1]='OK',_0x2eb1ae[_0x2eb1ae[_0x35261d(0x115)]=0x2]='INTERNAL_ERROR',_0x2eb1ae[_0x2eb1ae[_0x35261d(0xc1)]=0x3]=_0x35261d(0xc1),_0x2eb1ae[_0x2eb1ae[_0x35261d(0x245)]=0x4]=_0x35261d(0x245),_0x2eb1ae[_0x2eb1ae[_0x35261d(0x2b1)]=0x5]=_0x35261d(0x2b1),_0x2eb1ae[_0x2eb1ae[_0x35261d(0x13e)]=0x6]=_0x35261d(0x13e),_0x2eb1ae[_0x2eb1ae[_0x35261d(0x131)]=0x7]=_0x35261d(0x131),_0x2eb1ae[_0x2eb1ae['TOO_MANY_REQUESTS']=0x8]=_0x35261d(0x14d),_0x2eb1ae[_0x2eb1ae['COMPLETION_FINISHED']=0x9]=_0x35261d(0x170),_0x2eb1ae[_0x2eb1ae[_0x35261d(0x22a)]=0xa]=_0x35261d(0x22a),_0x2eb1ae[_0x2eb1ae[_0x35261d(0x1f3)]=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x2eb1ae[_0x2eb1ae[_0x35261d(0x243)]=0xc]=_0x35261d(0x243),_0x2eb1ae[_0x2eb1ae[_0x35261d(0xae)]=0xd]=_0x35261d(0xae),_0x2eb1ae[_0x2eb1ae['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]=_0x35261d(0xb1),_0x2eb1ae[_0x2eb1ae['AUTHORIZE_CODE_ILLEGAL']=0xf]='AUTHORIZE_CODE_ILLEGAL',_0x2eb1ae[_0x2eb1ae[_0x35261d(0x23f)]=0x10]='LOGIN_TOKEN_PROCESSING_FAILED',_0x2eb1ae[_0x2eb1ae[_0x35261d(0x2b5)]=0x64]=_0x35261d(0x2b5),_0x2eb1ae[_0x2eb1ae[_0x35261d(0xb3)]=0x65]='ERROR_AGAIN',_0x2eb1ae[_0x2eb1ae['USER_NOT_FOUND']=0xc9]=_0x35261d(0x144),_0x2eb1ae[_0x2eb1ae[_0x35261d(0x283)]=0xca]=_0x35261d(0x283),_0x2eb1ae[_0x2eb1ae[_0x35261d(0x206)]=0x1389]=_0x35261d(0x206),_0x2eb1ae[_0x2eb1ae[_0x35261d(0x2b4)]=0x1771]=_0x35261d(0x2b4),_0x2eb1ae[_0x2eb1ae[_0x35261d(0xef)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x2eb1ae[_0x2eb1ae[_0x35261d(0x149)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x2eb1ae[_0x2eb1ae[_0x35261d(0x11a)]=0x1b59]=_0x35261d(0x11a),_0x2eb1ae[_0x2eb1ae[_0x35261d(0x134)]=0x1b5a]=_0x35261d(0x134),_0x2eb1ae[_0x2eb1ae[_0x35261d(0xfb)]=0x1b5b]=_0x35261d(0xfb),_0x2eb1ae[_0x2eb1ae[_0x35261d(0xb6)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x2eb1ae[_0x2eb1ae[_0x35261d(0xe6)]=0x1b5d]='APPLY_DUPLICATED',_0x2eb1ae[_0x2eb1ae[_0x35261d(0x2db)]=0x1f41]=_0x35261d(0x2db),_0x2eb1ae[_0x2eb1ae[_0x35261d(0x116)]=0x2329]=_0x35261d(0x116),_0x2eb1ae[_0x2eb1ae['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x35261d(0x18a),_0x2eb1ae[_0x2eb1ae['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x35261d(0x1cf),_0x2eb1ae[_0x2eb1ae[_0x35261d(0x1de)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x2eb1ae[_0x2eb1ae[_0x35261d(0x1ae)]=0x232d]=_0x35261d(0x1ae),_0x2eb1ae[_0x2eb1ae[_0x35261d(0xc7)]=0x2711]=_0x35261d(0xc7),_0x2eb1ae[_0x2eb1ae['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x35261d(0x1b7),_0x2eb1ae[_0x2eb1ae[_0x35261d(0x2d9)]=0x2713]=_0x35261d(0x2d9),_0x2eb1ae[_0x2eb1ae[_0x35261d(0x180)]=0x2714]=_0x35261d(0x180),_0x2eb1ae[_0x2eb1ae[_0x35261d(0x162)]=0x271a]=_0x35261d(0x162),_0x2eb1ae[_0x2eb1ae[_0x35261d(0x15d)]=0x271b]=_0x35261d(0x15d),_0x2eb1ae[_0x2eb1ae[_0x35261d(0x258)]=0x271c]=_0x35261d(0x258),_0x2eb1ae[_0x2eb1ae[_0x35261d(0xdf)]=0x271d]=_0x35261d(0xdf),_0x2eb1ae[_0x2eb1ae[_0x35261d(0x200)]=0x271e]=_0x35261d(0x200),_0x2eb1ae[_0x2eb1ae[_0x35261d(0xa4)]=0x271f]=_0x35261d(0xa4),_0x2eb1ae[_0x2eb1ae[_0x35261d(0xaf)]=0x2720]=_0x35261d(0xaf),_0x2eb1ae[_0x2eb1ae[_0x35261d(0x16c)]=0x2af9]=_0x35261d(0x16c),_0x2eb1ae[_0x2eb1ae[_0x35261d(0x1da)]=0x2ee1]=_0x35261d(0x1da),_0x2eb1ae[_0x2eb1ae[_0x35261d(0x158)]=0x2ee2]=_0x35261d(0x158),_0x2eb1ae[_0x2eb1ae[_0x35261d(0x172)]=0x2ee3]=_0x35261d(0x172),_0x2eb1ae[_0x2eb1ae[_0x35261d(0x15e)]=0x2ee4]=_0x35261d(0x15e),_0x2eb1ae[_0x2eb1ae[_0x35261d(0x123)]=0x2ee5]=_0x35261d(0x123),_0x2eb1ae[_0x2eb1ae[_0x35261d(0x2c4)]=0x32c9]=_0x35261d(0x2c4),_0x2eb1ae[_0x2eb1ae[_0x35261d(0x20c)]=0x32ca]=_0x35261d(0x20c),_0x2eb1ae[_0x2eb1ae[_0x35261d(0x219)]=0x32cb]=_0x35261d(0x219),_0x2eb1ae[_0x2eb1ae['ENTITLE_CAN_NOT_BUY_LOWER_OTP']=0x36b1]=_0x35261d(0x176),_0x2eb1ae[_0x2eb1ae[_0x35261d(0x22b)]=0x36b2]=_0x35261d(0x22b),_0x2eb1ae[_0x2eb1ae[_0x35261d(0x2b3)]=0x36b3]=_0x35261d(0x2b3),_0x2eb1ae[_0x2eb1ae[_0x35261d(0x294)]=0x36b4]='PAYMENT_CHANNEL_NOT_SUPPORT',_0x2eb1ae[_0x2eb1ae['ENTITLE_INVALID_COUPON_CODE']=0x36b5]='ENTITLE_INVALID_COUPON_CODE',_0x2eb1ae[_0x2eb1ae[_0x35261d(0x179)]=0x36b6]='ENTITLE_COUPON_EXPIRED',_0x2eb1ae[_0x2eb1ae[_0x35261d(0x2ef)]=0x36b7]=_0x35261d(0x2ef),_0x2eb1ae[_0x2eb1ae[_0x35261d(0x1f7)]=0x36b8]='ENTITLE_USE_COUPON_NOT_1ST_TRADE',_0x2eb1ae[_0x2eb1ae[_0x35261d(0x230)]=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0x2eb1ae[_0x2eb1ae[_0x35261d(0x29b)]=0x3716]=_0x35261d(0x29b),_0x2eb1ae[_0x2eb1ae[_0x35261d(0x246)]=0x3717]=_0x35261d(0x246),_0x2eb1ae[_0x2eb1ae['ENTITLE_NEED_BILLING_ADDRESS']=0x37dd]=_0x35261d(0x19c),_0x2eb1ae[_0x2eb1ae['REDEMPTION_INVALID_CODE']=0x3a99]=_0x35261d(0x2e4),_0x2eb1ae[_0x2eb1ae[_0x35261d(0x296)]=0x3a9a]=_0x35261d(0x296),_0x2eb1ae[_0x2eb1ae[_0x35261d(0xa1)]=0x3a9b]=_0x35261d(0xa1),_0x2eb1ae[_0x2eb1ae['REDEMPTION_CODE_NOT_STARTED']=0x3a9c]='REDEMPTION_CODE_NOT_STARTED',_0x2eb1ae[_0x2eb1ae[_0x35261d(0xeb)]=0x3a9d]=_0x35261d(0xeb),_0x2eb1ae[_0x2eb1ae[_0x35261d(0x26e)]=0x3a9e]=_0x35261d(0x26e),_0x2eb1ae[_0x2eb1ae[_0x35261d(0x21f)]=0x3a9f]=_0x35261d(0x21f),_0x2eb1ae[_0x2eb1ae[_0x35261d(0x9b)]=0x3e81]='DATA_SOURCE_TOO_LARGE',_0x2eb1ae[_0x2eb1ae[_0x35261d(0x183)]=-0x1]='UNRECOGNIZED',_0x2eb1ae))(Z||{});function vn(_0x4c9f99){const _0x3b00f0=_0x35261d;var _0x338c66,_0x1a75f0;const _0xf86632=(_0x338c66=_0x4c9f99[_0x3b00f0(0xc4)])==null?void 0x0:_0x338c66[_0x3b00f0(0x190)],_0x2c0f88=((_0x1a75f0=_0x4c9f99[_0x3b00f0(0xc4)])==null?void 0x0:_0x1a75f0[_0x3b00f0(0x2df)])||0x0;return _0xf86632===_0x2261f9[_0x3b00f0(0x21d)]&&_0x2c0f88>0x0;}function pn(_0x62b8df){const _0x52eca0=_0x35261d;return _0x62b8df[_0x52eca0(0x168)]===_0x58475e[_0x52eca0(0x2b6)];}var On=Object[_0x35261d(0x2ec)],Tn=(_0x406e70,_0xbf9c9f,_0x41eb91,_0x56b97b)=>{const _0x4c14c1=_0x35261d;for(var _0x19ed24=_0x56b97b>0x1?void 0x0:_0x56b97b?On(_0xbf9c9f,_0x41eb91):_0xbf9c9f,_0xb3afdb=_0x406e70[_0x4c14c1(0x2cc)]-0x1,_0x2e668f;_0xb3afdb>=0x0;_0xb3afdb--)(_0x2e668f=_0x406e70[_0xb3afdb])&&(_0x19ed24=_0x2e668f(_0x19ed24)||_0x19ed24);return _0x19ed24;},P=(_0x5bd688,_0x3f9a84)=>(_0x3ee13b,_0x4bd702)=>_0x3f9a84(_0x3ee13b,_0x4bd702,_0x5bd688);const Cn=_0x35261d(0x2da),Rn='/universer-api/license/formula/limit/start',Dn=_0x35261d(0x1ff);let Ie=class extends _0x574664{constructor(_0x3558b9,_0x37f1fe,_0x19712e,_0x28d416,_0x1eb675,_0x2d8b88,_0x3e3814){const _0xcf202d=_0x35261d;super(),_(this,'_pollingInterval',null),_(this,'_maxFormulaLimit',0x0),_(this,_0xcf202d(0x1d1),0x0),_(this,_0xcf202d(0x28b),[]),_(this,_0xcf202d(0x2f1),0x0),(this[_0xcf202d(0x20e)]=_0x3558b9,this[_0xcf202d(0x198)]=_0x37f1fe,this[_0xcf202d(0x18d)]=_0x19712e,this['_httpService']=_0x28d416,this[_0xcf202d(0x108)]=_0x1eb675,this[_0xcf202d(0x2cd)]=_0x2d8b88,this[_0xcf202d(0x167)]=_0x3e3814,this[_0xcf202d(0x2c3)]());}[_0x35261d(0x2c3)](){const _0x577b29=_0x35261d;this[_0x577b29(0x2ca)](this['_commandService'][_0x577b29(0x1ee)]((_0x5b4177,_0x6d83a8)=>{const _0x130889=_0x577b29;var _0x3e2215;if(_0x5b4177['id']!==_0x3d9f3b['id'])return;const _0x12029c=_0x5b4177[_0x130889(0x1fc)];if(!this['_hasFormulaInDirtyRanges']((_0x3e2215=_0x12029c[_0x130889(0x1f4)])!=null?_0x3e2215:[]))return;if(!this[_0x130889(0x1e7)]())throw this[_0x130889(0x98)](_0x5b4177,_0x6d83a8),this[_0x130889(0x225)](),new _0x1a6f68();})),this[_0x577b29(0x2ca)](this[_0x577b29(0x198)]['onCommandExecuted']((_0x4ef21d,_0x2c221a)=>{const _0x23fdeb=_0x577b29;if(_0x4ef21d['id']!==_0x4f5bc0['id'])return;const _0x4fb136=_0x4ef21d[_0x23fdeb(0x1fc)];if(vn(_0x4fb136)){const _0x127f95=_0x18acb6();this['_taskIds'][_0x23fdeb(0xd1)](_0x127f95),this[_0x23fdeb(0x181)](_0x127f95);}else{if(pn(_0x4fb136)&&this[_0x23fdeb(0x28b)][_0x23fdeb(0x2cc)]>0x0){const _0x1e02a4=this[_0x23fdeb(0x28b)][_0x23fdeb(0x2ad)]();this[_0x23fdeb(0x133)](_0x1e02a4);}}}));}[_0x35261d(0x256)](){const _0x14e0ab=_0x35261d;super['dispose'](),this[_0x14e0ab(0x16f)](),this[_0x14e0ab(0x28b)]=[],this[_0x14e0ab(0x1d1)]=0x0,this[_0x14e0ab(0x19d)]=0x0,this[_0x14e0ab(0x2f1)]=0x0;}async['_checkAndWaitForCalculationPermission'](_0x2e1485,_0x2c1254){const _0x393ae7=_0x35261d;for(let _0x4f10fa=0x0;_0x4f10fa<0x1e;_0x4f10fa++)try{if(await this[_0x393ae7(0x289)](),this[_0x393ae7(0x1e7)]()){this['_applyCommand'](_0x2e1485,_0x2c1254),this[_0x393ae7(0x20e)][_0x393ae7(0x1d2)]({'content':this[_0x393ae7(0x167)]['t']('formula.calculation.started'),'type':_0x2edb7e[_0x393ae7(0x17a)]});return;}await new Promise(_0x2021ee=>{const _0x5d6c22=_0x393ae7;this[_0x5d6c22(0x110)]=window[_0x5d6c22(0x1a4)](_0x2021ee,0x3e8);});}catch(_0xec4084){this[_0x393ae7(0x2cd)]['error'](_0xec4084);}this[_0x393ae7(0x20e)][_0x393ae7(0x1d2)]({'content':this[_0x393ae7(0x167)]['t'](_0x393ae7(0x257)),'type':_0x2edb7e[_0x393ae7(0x113)]});}[_0x35261d(0x1a3)](_0x4d45d7,_0x3afe3a){const _0x13e643=_0x35261d;try{this['_commandService']['executeCommand'](_0x4d45d7['id'],_0x4d45d7[_0x13e643(0x1fc)],_0x3afe3a);}catch(_0x9614b9){this[_0x13e643(0x2cd)][_0x13e643(0x2a8)](_0x9614b9);}}['_setFormulaLimitStatus'](_0x24fe18,_0x404231){const _0x4bedf5=_0x35261d;_0x404231<this[_0x4bedf5(0x2f1)]||(this[_0x4bedf5(0x2f1)]=_0x404231,this[_0x4bedf5(0x19d)]=Number['parseInt'](_0x24fe18[_0x4bedf5(0x169)]),this['_currentUsage']=Number[_0x4bedf5(0x2bc)](_0x24fe18[_0x4bedf5(0x148)]));}async[_0x35261d(0x181)](_0x33cec3){const _0x4e7e15=_0x35261d;var _0x4325dc,_0x5683fd;const _0x5aa211=Date[_0x4e7e15(0xb9)]();try{const _0x4f032e=((_0x4325dc=this[_0x4e7e15(0x18d)]['getConfig'](_0x1dee33))==null?void 0x0:_0x4325dc['startFormulaLimitUrl'])||Rn,_0x426770=(await this[_0x4e7e15(0x2c2)][_0x4e7e15(0x17d)](_0x4f032e,{'body':JSON['stringify']({'taskId':_0x33cec3})}))[_0x4e7e15(0x16e)];if(((_0x5683fd=_0x426770['error'])==null?void 0x0:_0x5683fd[_0x4e7e15(0x15b)])!==Z['OK'])return;this[_0x4e7e15(0xc0)](_0x426770[_0x4e7e15(0x1c3)],_0x5aa211);}catch(_0x31c93c){this[_0x4e7e15(0x2cd)][_0x4e7e15(0x2a8)](_0x31c93c);}}async[_0x35261d(0x289)](_0x2e3b26){const _0x5046ef=_0x35261d;var _0x588c12,_0x168369;const _0x4fe41f=Date[_0x5046ef(0xb9)]();try{const _0x48f34c=((_0x588c12=this[_0x5046ef(0x18d)][_0x5046ef(0x14f)](_0x1dee33))==null?void 0x0:_0x588c12[_0x5046ef(0x28d)])||Cn,_0x21a8d3=_0x2e3b26?_0x48f34c+'?taskId='+encodeURIComponent(_0x2e3b26):_0x48f34c,_0x7fd205=(await this[_0x5046ef(0x2c2)][_0x5046ef(0x1aa)](_0x21a8d3))[_0x5046ef(0x16e)];if(((_0x168369=_0x7fd205[_0x5046ef(0x2a8)])==null?void 0x0:_0x168369['code'])!==Z['OK'])return;this[_0x5046ef(0xc0)](_0x7fd205['limitInfo'],_0x4fe41f);}catch(_0x543b8b){this[_0x5046ef(0x2cd)][_0x5046ef(0x2a8)](_0x543b8b);}}async['_releaseCalculationLimit'](_0x40e80a){const _0x5c7db4=_0x35261d;var _0x841028,_0x299ea9;const _0x4ea248=Date[_0x5c7db4(0xb9)]();try{const _0x2c1798=((_0x841028=this[_0x5c7db4(0x18d)][_0x5c7db4(0x14f)](_0x1dee33))==null?void 0x0:_0x841028['releaseFormulaLimitUrl'])||Dn,_0x5620ca=(await this[_0x5c7db4(0x2c2)][_0x5c7db4(0x17d)](_0x2c1798,{'body':JSON[_0x5c7db4(0x25c)]({'taskId':_0x40e80a})}))[_0x5c7db4(0x16e)];if(((_0x299ea9=_0x5620ca[_0x5c7db4(0x2a8)])==null?void 0x0:_0x299ea9[_0x5c7db4(0x15b)])!==Z['OK'])return;this[_0x5c7db4(0xc0)](_0x5620ca[_0x5c7db4(0x1c3)],_0x4ea248);}catch(_0x3e597e){this[_0x5c7db4(0x2cd)]['error'](_0x3e597e);}}[_0x35261d(0x1e7)](){const _0x49e224=_0x35261d;return this[_0x49e224(0x19d)]===0x0?!0x0:this[_0x49e224(0x19d)]-this['_currentUsage']>0x0;}[_0x35261d(0x16f)](){const _0x5cd77a=_0x35261d;this[_0x5cd77a(0x110)]&&(clearTimeout(this[_0x5cd77a(0x110)]),this[_0x5cd77a(0x110)]=null);}['_showGuardMessage'](){const _0x3c897a=_0x35261d;this[_0x3c897a(0x20e)][_0x3c897a(0x1d2)]({'content':this['_localeService']['t']('formula.calculation.waiting'),'type':_0x2edb7e[_0x3c897a(0x96)]});}[_0x35261d(0x159)](_0xc2ae5a){const _0x1e7863=_0x35261d;for(const _0x572e4b of _0xc2ae5a){const {unitId:_0x2836c3,sheetId:_0x16244f,range:_0x23caf7}=_0x572e4b,_0x3c1055=this[_0x1e7863(0x108)][_0x1e7863(0x135)](_0x2836c3);if(!_0x3c1055)continue;const _0x8d87b4=_0x3c1055[_0x1e7863(0x1db)](_0x16244f);if(!_0x8d87b4)continue;const _0x16929a=_0x8d87b4[_0x1e7863(0x141)]();for(let _0x6b4d2=_0x23caf7[_0x1e7863(0x24c)];_0x6b4d2<=_0x23caf7[_0x1e7863(0x27f)];_0x6b4d2++)for(let _0x49d99b=_0x23caf7[_0x1e7863(0x2bd)];_0x49d99b<=_0x23caf7['endColumn'];_0x49d99b++){const _0x2d0114=_0x16929a[_0x1e7863(0x177)](_0x6b4d2,_0x49d99b);if(_0x2d0114&&(_0x3a2fd2(_0x2d0114['f'])||_0x388f83(_0x2d0114['si'])))return!0x0;}}return!0x1;}};Ie=Tn([P(0x0,_0x526d56(_0xc6b805)),P(0x1,_0x431d0d),P(0x2,_0x5905c3),P(0x3,_0x526d56(_0x1165a8)),P(0x4,_0x4da50f),P(0x5,_0x17989f),P(0x6,_0x526d56(_0x33240e))],Ie);var Nn=Object['getOwnPropertyDescriptor'],bn=(_0x4d842e,_0x61285,_0x3a7fd6,_0x4a5cf4)=>{const _0x1d0afa=_0x35261d;for(var _0x23a454=_0x4a5cf4>0x1?void 0x0:_0x4a5cf4?Nn(_0x61285,_0x3a7fd6):_0x61285,_0x580628=_0x4d842e[_0x1d0afa(0x2cc)]-0x1,_0x4effaa;_0x580628>=0x0;_0x580628--)(_0x4effaa=_0x4d842e[_0x580628])&&(_0x23a454=_0x4effaa(_0x23a454)||_0x23a454);return _0x23a454;},Ue=(_0x124c9e,_0x455a9d)=>(_0x186710,_0xce3524)=>_0x455a9d(_0x186710,_0xce3524,_0x124c9e);let He=class extends _0x574664{constructor(_0x10053f,_0x1aa995,_0x2c2377){const _0x10e7cb=_0x35261d;super(),_(this,_0x10e7cb(0x1b4),new Map()),_(this,_0x10e7cb(0xcf),new Map()),_(this,_0x10e7cb(0x20a),!0x1),(this['_configService']=_0x10053f,this[_0x10e7cb(0x298)]=_0x1aa995,this[_0x10e7cb(0x147)]=_0x2c2377);}['disableLocalCache'](){const _0x472f90=_0x35261d;this[_0x472f90(0x20a)]=!0x0;}[_0x35261d(0x24a)](){const _0x4633e8=_0x35261d;this[_0x4633e8(0x20a)]=!0x1;}get['saveTaskMap'](){return this['_saveTaskMap'];}[_0x35261d(0x256)](){const _0x92a591=_0x35261d;this[_0x92a591(0x128)]()[_0x92a591(0x1b8)](()=>super[_0x92a591(0x256)]());}async[_0x35261d(0x1e4)](_0xa50c11){const _0x3d059b=_0x35261d;return this[_0x3d059b(0x20a)]?null:this[_0x3d059b(0x298)]['getItem'](_0x5c11c9(_0xa50c11));}async[_0x35261d(0x157)](_0x3808d1,_0x1348dd){const _0x1825ab=_0x35261d;return!!this[_0x1825ab(0x298)][_0x1825ab(0x1e3)](_0x3808d1,_0x1348dd);}[_0x35261d(0x262)](_0x4b68aa,_0x16cc00,_0x5d04c6,_0x67b653){const _0xe8c21b=_0x35261d,_0x180e1f=this['_revisionService'][_0xe8c21b(0x118)](_0x4b68aa);this[_0xe8c21b(0x1b4)]['set'](_0x4b68aa,{'unitID':_0x4b68aa,'type':_0x16cc00,'awaitingChangeset':_0x5d04c6,'mutations':_0x67b653,'rev':_0x180e1f}),this[_0xe8c21b(0xcf)]['has'](_0x4b68aa)||this[_0xe8c21b(0x102)](_0x4b68aa);}[_0x35261d(0x102)](_0x5c5a42){const _0x44c4ef=_0x35261d,_0x89c339=this[_0x44c4ef(0x2ae)]();_0x89c339===0x0?this['_saveCache'](_0x5c5a42):this[_0x44c4ef(0xcf)][_0x44c4ef(0x156)](_0x5c5a42,setTimeout(()=>this[_0x44c4ef(0x238)](_0x5c5a42),_0x89c339));}[_0x35261d(0x2ae)](){var _0x4f6f55;return(_0x4f6f55=this['_configService']['getConfig'](_0x5143e0))!=null?_0x4f6f55:_0x1717c5;}[_0x35261d(0x238)](_0x3f39f4){const _0x1b243f=_0x35261d,_0x482979=this['_saveTaskMap'][_0x1b243f(0x1aa)](_0x3f39f4);return _0x482979!==void 0x0&&window[_0x1b243f(0x2eb)](_0x482979),this[_0x1b243f(0x298)][_0x1b243f(0x1e3)](_0x5c11c9(_0x3f39f4),this[_0x1b243f(0x1b4)][_0x1b243f(0x1aa)](_0x3f39f4))[_0x1b243f(0x1b8)](()=>this[_0x1b243f(0xcf)]['delete'](_0x3f39f4));}async[_0x35261d(0x128)](){const _0x15012b=_0x35261d,_0x701f97=[];this['_saveTaskMap']['forEach']((_0x1576b2,_0x2f4916)=>{const _0x515942=_0x4abd;window[_0x515942(0x2eb)](_0x1576b2),_0x701f97[_0x515942(0xd1)](this[_0x515942(0x238)](_0x2f4916)[_0x515942(0x1b8)](()=>{const _0x264486=_0x515942;this[_0x264486(0xcf)][_0x264486(0x2d4)](_0x2f4916);}));}),await Promise[_0x15012b(0x2f0)](_0x701f97);}};He=bn([Ue(0x0,_0x5905c3),Ue(0x1,_0x151749),Ue(0x2,_0x526d56(_0x507cc2))],He);class Ln extends _0x5cd561{constructor(){const _0x35f9a9=_0x35261d;super(),_(this,_0x35f9a9(0x2b8)),this[_0x35f9a9(0x2b8)]=_0x2e0772(window,'popstate')[_0x35f9a9(0x2e3)](_0x4bde4f(this[_0x35f9a9(0x2c1)]),_0x4ecbeb(0x1),_0x44e1c9(void 0x0));}['setParam'](_0x4681a2,_0x2769ea,_0x38d6b3=!0x1){const _0x48141e=_0x35261d,_0x315247=new URL(window[_0x48141e(0x24f)][_0x48141e(0xd5)]);_0x315247[_0x48141e(0x299)][_0x48141e(0x156)](_0x4681a2,_0x2769ea),_0x38d6b3?window[_0x48141e(0xe7)]['replaceState']('','',_0x315247[_0x48141e(0xdc)]()):window['history'][_0x48141e(0x254)]('','',_0x315247['toString']());}[_0x35261d(0x117)](_0x52443f,_0xb2b2e9=!0x1){const _0x4392c6=_0x35261d,_0x51a95d=new URL(window[_0x4392c6(0x24f)][_0x4392c6(0xd5)]);_0x51a95d[_0x4392c6(0x299)][_0x4392c6(0x2d4)](_0x52443f),_0xb2b2e9?window[_0x4392c6(0xe7)][_0x4392c6(0x129)]('','',_0x51a95d[_0x4392c6(0xdc)]()):window['history'][_0x4392c6(0x254)]('','',_0x51a95d['toString']());}['getParam'](_0x480f20){const _0x4b93b5=_0x35261d;var _0x424067;return(_0x424067=new URL(window['location'][_0x4b93b5(0xd5)])[_0x4b93b5(0x299)][_0x4b93b5(0x1aa)](_0x480f20))!=null?_0x424067:void 0x0;}}var Un=Object[_0x35261d(0x28f)],Mn=Object['getOwnPropertyDescriptor'],An=(_0x391331,_0x407c20,_0x1597b2)=>_0x407c20 in _0x391331?Un(_0x391331,_0x407c20,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1597b2}):_0x391331[_0x407c20]=_0x1597b2,Pn=(_0x2c2ef5,_0x5e25ac,_0x529272,_0x30a65f)=>{for(var _0x57910b=_0x30a65f>0x1?void 0x0:_0x30a65f?Mn(_0x5e25ac,_0x529272):_0x5e25ac,_0x578e74=_0x2c2ef5['length']-0x1,_0x150afb;_0x578e74>=0x0;_0x578e74--)(_0x150afb=_0x2c2ef5[_0x578e74])&&(_0x57910b=_0x150afb(_0x57910b)||_0x57910b);return _0x57910b;},Me=(_0x26668b,_0x418244)=>(_0xf78688,_0x65ab3e)=>_0x418244(_0xf78688,_0x65ab3e,_0x26668b),wn=(_0x4daefa,_0x23f4ba,_0x542347)=>An(_0x4daefa,_0x23f4ba+'',_0x542347);const yn=_0x35261d(0x1dd);let Ye=class extends _0x45b27a{constructor(_0xb2c742=_t,_0x106b45,_0x4c1ce4,_0x1dbf8a){const _0x1370a1=_0x35261d;super(),this['_config']=_0xb2c742,this[_0x1370a1(0x263)]=_0x106b45,this[_0x1370a1(0x2de)]=_0x4c1ce4,this[_0x1370a1(0x18d)]=_0x1dbf8a;const {..._0x2352cd}=_0x2fa91d({},_t,this['_config']);this[_0x1370a1(0x18d)][_0x1370a1(0x242)](hn,_0x2352cd);}[_0x35261d(0x139)](){const _0x15e8de=_0x35261d;this[_0x15e8de(0x201)](),this[_0x15e8de(0xc9)]();}[_0x35261d(0x2c8)](){const _0xf8835f=_0x35261d;this[_0xf8835f(0x24e)]();}[_0x35261d(0x201)](){const _0x44faae=_0x35261d;var _0x250eee;const _0x448cec=[[Ke],[Ie],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x2d2f28,{'useClass':_0x5dbb21}],[_0xd5c05d,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0x44faae(0x1fb)][_0x44faae(0xc5)]&&_0x448cec[_0x44faae(0xd1)]([le]),_0xdb3599(this[_0x44faae(0x2de)],_0x596139(_0x448cec,(_0x250eee=this[_0x44faae(0x1fb)])==null?void 0x0:_0x250eee['override']));}[_0x35261d(0x24e)](){const _0x701acb=_0x35261d;this[_0x701acb(0x2ca)](this[_0x701acb(0x263)][_0x701acb(0x265)](_0x388843['UNIVER_DOC'],[Fe])),this[_0x701acb(0x2ca)](this[_0x701acb(0x263)]['registerRenderModule'](_0x388843[_0x701acb(0x127)],[ke]));}[_0x35261d(0xc9)](){const _0x4b1862=_0x35261d;_0x2e4ee7(this[_0x4b1862(0x2de)],[[H],[ae],[Se],[_e],[ce],[Ie]]),this['_config'][_0x4b1862(0xc5)]&&_0x2e4ee7(this['_injector'],[[le]]);}};wn(Ye,_0x35261d(0xa5),yn),Ye=Pn([_0x8c3cbd(_0x5eb974),Me(0x1,_0x1589e8),Me(0x2,_0x526d56(_0x3393f4)),Me(0x3,_0x5905c3)],Ye);var $n=Object[_0x35261d(0x2ec)],xn=(_0x3ee214,_0x2f323a,_0x51d3b1,_0x582df7)=>{const _0x111b79=_0x35261d;for(var _0x862123=_0x582df7>0x1?void 0x0:_0x582df7?$n(_0x2f323a,_0x51d3b1):_0x2f323a,_0x5a2a29=_0x3ee214[_0x111b79(0x2cc)]-0x1,_0x6d67ba;_0x5a2a29>=0x0;_0x5a2a29--)(_0x6d67ba=_0x3ee214[_0x5a2a29])&&(_0x862123=_0x6d67ba(_0x862123)||_0x862123);return _0x862123;},J=(_0xf448b5,_0x41e67f)=>(_0x307316,_0x57625b)=>_0x41e67f(_0x307316,_0x57625b,_0xf448b5);let ut=class extends _0xb3f5c5{constructor(_0x1acd45,_0xef1e9,_0x41e690,_0x1288d7,_0x3c66b3){super(_0x1acd45,_0xef1e9,_0x41e690,_0x1288d7,_0x3c66b3);}async[_0x35261d(0x264)](_0x4472fa){const _0x21c6e5=_0x35261d,_0x136a7d=await this[_0x21c6e5(0x12d)](),_0x302d11=this[_0x21c6e5(0x1b0)](_0x4472fa,_0x136a7d);return this[_0x21c6e5(0x136)](_0x302d11);}[_0x35261d(0x1b0)](_0x4e0b60,_0x4d9cdf){const _0x1284f7=_0x35261d,_0x5e7ff2=typeof window>'u'?new URL(_0x4e0b60):new URL(_0x4e0b60,window[_0x1284f7(0x24f)][_0x1284f7(0x199)]);_0x5e7ff2[_0x1284f7(0x299)]['set']('sessionTicket',_0x4d9cdf);const _0x4d17d6=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x1284f7(0x207)]);return _0x4d17d6['get']('runId')&&_0x5e7ff2['searchParams']['set'](_0x1284f7(0x1fd),_0x4d17d6[_0x1284f7(0x1aa)](_0x1284f7(0x1fd))),_0x5e7ff2['toString']();}async[_0x35261d(0x12d)](){const _0x26c043=_0x35261d;var _0x118294,_0x512ac5,_0x579f7e;const _0x47f212=this[_0x26c043(0x18d)][_0x26c043(0x14f)](_0x1dee33),_0x237b68=(_0x118294=_0x47f212==null?void 0x0:_0x47f212[_0x26c043(0x27e)])!=null?_0x118294:_0x5aed54;return(_0x579f7e=(_0x512ac5=(await this[_0x26c043(0x2c2)][_0x26c043(0x1aa)](_0x237b68,{'headers':{'Content-Type':'application/json'}}))['body'])==null?void 0x0:_0x512ac5[_0x26c043(0x23c)])!=null?_0x579f7e:'';}};ut=xn([J(0x0,_0x526d56(_0x3393f4)),J(0x1,_0x526d56(_0x1165a8)),J(0x2,_0x5905c3),J(0x3,_0x17989f),J(0x4,_0x2760d7)],ut);var Bn=Object[_0x35261d(0x2ec)],Fn=(_0x3c66ed,_0x29a246,_0x3cf082,_0x2f046b)=>{for(var _0x483e80=_0x2f046b>0x1?void 0x0:_0x2f046b?Bn(_0x29a246,_0x3cf082):_0x29a246,_0x10ecfa=_0x3c66ed['length']-0x1,_0x361b78;_0x10ecfa>=0x0;_0x10ecfa--)(_0x361b78=_0x3c66ed[_0x10ecfa])&&(_0x483e80=_0x361b78(_0x483e80)||_0x483e80);return _0x483e80;},Ae=(_0x2bfc00,_0x26d48a)=>(_0x2fe96c,_0xb3201e)=>_0x26d48a(_0x2fe96c,_0xb3201e,_0x2bfc00);let dt=class extends _0x574664{constructor(_0x176606,_0xf224b9,_0x261b9c){const _0x3c2bb1=_0x35261d;super(),this['_instanceService']=_0x176606,this[_0x3c2bb1(0x2c2)]=_0xf224b9,this[_0x3c2bb1(0x18d)]=_0x261b9c;}async[_0x35261d(0x1cb)](_0x101e27,_0x6647e,_0x4bd080,..._0x1a1898){const _0x905675=_0x35261d;var _0x31c239,_0x3431ff,_0x1faa35,_0x2f695f;const _0xd0d236=this[_0x905675(0x27d)][_0x905675(0x10c)]();if(!_0xd0d236)throw new Error(_0x905675(0x1bf));const _0x18bd12=((_0x31c239=this['_configService'][_0x905675(0x14f)](_0x14929d))!=null?_0x31c239:_0x3879f6)+'/'+_0x101e27+_0x905675(0xa3)+_0x6647e,_0x19fc77=new URL(window[_0x905675(0x24f)]['href']),_0x57e9b1={'scriptId':_0x101e27,'runId':(_0x3431ff=_0x19fc77[_0x905675(0x299)][_0x905675(0x1aa)](_0x905675(0x1fd)))!=null?_0x3431ff:'','function':_0x6647e,'unitId':_0xd0d236[_0x905675(0x10f)](),'argsOfFunction':JSON[_0x905675(0x25c)](_0x1a1898),'invokeId':(_0x1faa35=_0x4bd080[_0x905675(0xc8)])!=null?_0x1faa35:'','executionId':(_0x2f695f=_0x4bd080[_0x905675(0x13a)])!=null?_0x2f695f:''};try{const _0x5cf9ec=await this[_0x905675(0x2c2)]['post'](_0x18bd12,{'body':_0x57e9b1});return _0x5cf9ec[_0x905675(0x16e)][_0x905675(0x2a8)]&&_0x5cf9ec[_0x905675(0x16e)][_0x905675(0x2a8)]['code']!==Z['OK']?_0x905675(0xdd):_0x5cf9ec['body'][_0x905675(0x1c6)];}catch{return'Failed';}}};dt=Fn([Ae(0x0,_0x4da50f),Ae(0x1,_0x526d56(_0x1165a8)),Ae(0x2,_0x5905c3)],dt);const St=0x7530,It='ACTIVE_UNIT_EVENT_CHANNEL';class rr extends _0x574664{constructor(){const _0x3255b9=_0x35261d;super(),_(this,_0x3255b9(0x244),_0x18acb6()),_(this,_0x3255b9(0x2ed),new Set()),_(this,_0x3255b9(0x1f8),new Map()),_(this,'_heartbeatTimer',null),_(this,'_clearOtherTimers',new Map()),_(this,_0x3255b9(0x2d2),new Map()),this[_0x3255b9(0x187)]();}[_0x35261d(0x256)](){const _0x43c139=_0x35261d;super[_0x43c139(0x256)](),this[_0x43c139(0xf8)][_0x43c139(0xd9)]((_0x53ae52,_0x1c5bcb)=>this[_0x43c139(0x237)](_0x1c5bcb)),this[_0x43c139(0x16d)]&&window[_0x43c139(0x10a)](this['_heartbeatTimer']);}['getUnitStatus$'](_0x40acd5){const _0x4ba3c4=_0x35261d;return this['_ensureSubject'](_0x40acd5)[_0x4ba3c4(0x2e3)](_0x1d9c3f());}[_0x35261d(0xc3)](_0x21297a){const _0x5d4a8b=_0x35261d;this[_0x5d4a8b(0x2ed)][_0x5d4a8b(0x1d9)]===0x0&&this[_0x5d4a8b(0xa0)](),this[_0x5d4a8b(0x2ed)][_0x5d4a8b(0x22e)](_0x21297a),this[_0x5d4a8b(0x11f)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x21297a],'isForwarded':!0x1});}['disposeUnit'](_0x353650){const _0x45c454=_0x35261d;this[_0x45c454(0x2ed)][_0x45c454(0x2d4)](_0x353650),this[_0x45c454(0x2ed)][_0x45c454(0x1d9)]===0x0&&this[_0x45c454(0x16d)]&&window[_0x45c454(0x10a)](this['_heartbeatTimer']);}[_0x35261d(0x187)](){const _0x4904c6=_0x35261d;this[_0x4904c6(0x2ca)](_0x511582(_0x2e0772(window,_0x4904c6(0x174))[_0x4904c6(0x223)](_0x405077=>{const _0x19c805=_0x4904c6;if(_0x405077[_0x19c805(0x1d5)]!==It||!_0x405077[_0x19c805(0x247)])return;const _0x509207=JSON[_0x19c805(0x272)](_0x405077[_0x19c805(0x247)]);this[_0x19c805(0x188)](_0x509207);}))),window['addEventListener'](_0x4904c6(0x282),()=>this['_send']({'type':0x1,'memberID':this[_0x4904c6(0x244)],'unitIDs':Array[_0x4904c6(0xf9)](this[_0x4904c6(0x2ed)])}));}[_0x35261d(0x188)](_0x1b698a){const _0x23600d=_0x35261d;switch(_0x1b698a[_0x23600d(0x1d6)]){case 0x0:this[_0x23600d(0xda)](_0x1b698a);break;case 0x1:this['_handleLeaveEvent'](_0x1b698a);break;case 0x2:this[_0x23600d(0x261)](_0x1b698a);break;}}[_0x35261d(0xda)](_0x38514b){const _0x392a69=_0x35261d,{unitIDs:_0xaba3af,memberID:_0x50017f,isForwarded:_0x3d559d}=_0x38514b;_0xaba3af[_0x392a69(0xd9)](_0x57ac3a=>{const _0x5940b4=_0x392a69;if(!_0x3d559d&&this[_0x5940b4(0x1f8)][_0x5940b4(0x291)](_0x57ac3a)&&this[_0x5940b4(0x295)](_0x57ac3a)[_0x5940b4(0x106)](_0x4ee52f[_0x5940b4(0x153)]),!this[_0x5940b4(0x1f8)][_0x5940b4(0x291)](_0x57ac3a)||!this[_0x5940b4(0x1f8)]['get'](_0x57ac3a)[_0x5940b4(0x291)](_0x50017f)){const _0x2d5563=this[_0x5940b4(0x1f8)]['get'](_0x57ac3a)||new Set();_0x2d5563[_0x5940b4(0x22e)](_0x50017f),this[_0x5940b4(0x1f8)][_0x5940b4(0x156)](_0x57ac3a,_0x2d5563),this[_0x5940b4(0x1f5)](_0x50017f);}}),_0x3d559d||this['_send']({'type':0x0,'memberID':this[_0x392a69(0x244)],'unitIDs':[...this[_0x392a69(0x2ed)]],'isForwarded':!0x0});}[_0x35261d(0x1f5)](_0x4f0dd9){const _0x1fa697=_0x35261d;this[_0x1fa697(0x237)](_0x4f0dd9);const _0x317811=window[_0x1fa697(0x1a4)](()=>{const _0x67eb56=_0x1fa697;this[_0x67eb56(0x1f8)]['forEach'](_0x1576e9=>{const _0x3dfd16=_0x67eb56;_0x1576e9[_0x3dfd16(0x2d4)](_0x4f0dd9);});},St*0x2);this[_0x1fa697(0xf8)][_0x1fa697(0x156)](_0x4f0dd9,_0x317811);}[_0x35261d(0x237)](_0x5765eb){const _0x522517=_0x35261d;if(this['_clearOtherTimers'][_0x522517(0x291)](_0x5765eb)){const _0x3cc4a8=this[_0x522517(0xf8)][_0x522517(0x1aa)](_0x5765eb);_0x3cc4a8&&window[_0x522517(0x2eb)](_0x3cc4a8),this[_0x522517(0xf8)][_0x522517(0x156)](_0x5765eb,null);}}[_0x35261d(0xea)](_0x42054f){const _0x54ac94=_0x35261d,{memberID:_0x1ae175,unitIDs:_0x5ed5cc}=_0x42054f;_0x5ed5cc['forEach'](_0xc6f5be=>{const _0x3c2158=_0x4abd;var _0x44856e;const _0x5e4f5d=this[_0x3c2158(0x1f8)][_0x3c2158(0x1aa)](_0xc6f5be);_0x5e4f5d&&(_0x5e4f5d[_0x3c2158(0x2d4)](_0x1ae175),(_0x44856e=this[_0x3c2158(0x295)](_0xc6f5be))==null||_0x44856e['next'](_0x5e4f5d['size']===0x0?_0x4ee52f[_0x3c2158(0x25d)]:_0x4ee52f['OTHER_CLIENTS_EDITING']));}),this[_0x54ac94(0x237)](_0x1ae175);}[_0x35261d(0x261)](_0x2f8bf9){const _0x10a89a=_0x35261d;this[_0x10a89a(0x1f5)](_0x2f8bf9[_0x10a89a(0x241)]);}[_0x35261d(0x11f)](_0x52b9b8){const _0x4cc3cc=_0x35261d;localStorage[_0x4cc3cc(0x1e3)](It,JSON[_0x4cc3cc(0x25c)](_0x52b9b8));}[_0x35261d(0xa0)](){const _0x5d9a27=_0x35261d;this['_heartbeatTimer']=window[_0x5d9a27(0xca)](()=>{const _0x1db00f=_0x5d9a27;this[_0x1db00f(0x11f)]({'type':0x2,'memberID':this[_0x1db00f(0x244)]});},St);}[_0x35261d(0x295)](_0x3df45c){const _0x5187a7=_0x35261d;return this[_0x5187a7(0x2d2)][_0x5187a7(0x291)](_0x3df45c)||this[_0x5187a7(0x2d2)][_0x5187a7(0x156)](_0x3df45c,new _0x190ae5(_0x4ee52f[_0x5187a7(0x25d)])),this[_0x5187a7(0x2d2)][_0x5187a7(0x1aa)](_0x3df45c);}}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};