@univerjs-pro/collaboration-client-ui 0.12.3-experimental.20251205-71d07c3 → 0.12.3-experimental.20251205-8c9a6bf

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/es-ES.js +1 -1
  6. package/lib/cjs/locale/fa-IR.js +1 -1
  7. package/lib/cjs/locale/fr-FR.js +1 -1
  8. package/lib/cjs/locale/ja-JP.js +1 -1
  9. package/lib/cjs/locale/ko-KR.js +1 -1
  10. package/lib/cjs/locale/ru-RU.js +1 -1
  11. package/lib/cjs/locale/vi-VN.js +1 -1
  12. package/lib/cjs/locale/zh-CN.js +1 -1
  13. package/lib/cjs/locale/zh-TW.js +1 -1
  14. package/lib/es/facade.js +1 -1
  15. package/lib/es/index.js +1 -1
  16. package/lib/es/locale/ca-ES.js +1 -1
  17. package/lib/es/locale/en-US.js +1 -1
  18. package/lib/es/locale/es-ES.js +1 -1
  19. package/lib/es/locale/fa-IR.js +1 -1
  20. package/lib/es/locale/fr-FR.js +1 -1
  21. package/lib/es/locale/ja-JP.js +1 -1
  22. package/lib/es/locale/ko-KR.js +1 -1
  23. package/lib/es/locale/ru-RU.js +1 -1
  24. package/lib/es/locale/vi-VN.js +1 -1
  25. package/lib/es/locale/zh-CN.js +1 -1
  26. package/lib/es/locale/zh-TW.js +1 -1
  27. package/lib/facade.js +1 -1
  28. package/lib/index.js +1 -1
  29. package/lib/locale/ca-ES.js +1 -1
  30. package/lib/locale/en-US.js +1 -1
  31. package/lib/locale/es-ES.js +1 -1
  32. package/lib/locale/fa-IR.js +1 -1
  33. package/lib/locale/fr-FR.js +1 -1
  34. package/lib/locale/ja-JP.js +1 -1
  35. package/lib/locale/ko-KR.js +1 -1
  36. package/lib/locale/ru-RU.js +1 -1
  37. package/lib/locale/vi-VN.js +1 -1
  38. package/lib/locale/zh-CN.js +1 -1
  39. package/lib/locale/zh-TW.js +1 -1
  40. package/lib/umd/facade.js +1 -1
  41. package/lib/umd/index.js +1 -1
  42. package/lib/umd/locale/ca-ES.js +1 -1
  43. package/lib/umd/locale/en-US.js +1 -1
  44. package/lib/umd/locale/es-ES.js +1 -1
  45. package/lib/umd/locale/fa-IR.js +1 -1
  46. package/lib/umd/locale/fr-FR.js +1 -1
  47. package/lib/umd/locale/ja-JP.js +1 -1
  48. package/lib/umd/locale/ko-KR.js +1 -1
  49. package/lib/umd/locale/ru-RU.js +1 -1
  50. package/lib/umd/locale/vi-VN.js +1 -1
  51. package/lib/umd/locale/zh-CN.js +1 -1
  52. package/lib/umd/locale/zh-TW.js +1 -1
  53. package/package.json +15 -15
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x2234f4=_0x34ce;(function(_0x57d19a,_0x5af446){const _0x38c640=_0x34ce,_0x5b38d8=_0x57d19a();while(!![]){try{const _0x53570d=-parseInt(_0x38c640(0x2ac))/0x1*(-parseInt(_0x38c640(0x376))/0x2)+-parseInt(_0x38c640(0x2f8))/0x3+parseInt(_0x38c640(0x390))/0x4+-parseInt(_0x38c640(0x32d))/0x5+parseInt(_0x38c640(0x38c))/0x6+parseInt(_0x38c640(0x246))/0x7*(parseInt(_0x38c640(0x2c8))/0x8)+-parseInt(_0x38c640(0x319))/0x9;if(_0x53570d===_0x5af446)break;else _0x5b38d8['push'](_0x5b38d8['shift']());}catch(_0x187882){_0x5b38d8['push'](_0x5b38d8['shift']());}}}(_0x4659,0x7d2e0));var Yt=Object[_0x2234f4(0x18a)],Wt=(_0x1b92f5,_0x4aed0b,_0x47f847)=>_0x4aed0b in _0x1b92f5?Yt(_0x1b92f5,_0x4aed0b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x47f847}):_0x1b92f5[_0x4aed0b]=_0x47f847,_=(_0x528000,_0x1f0b34,_0x50220b)=>Wt(_0x528000,typeof _0x1f0b34!=_0x2234f4(0x34a)?_0x1f0b34+'':_0x1f0b34,_0x50220b);import{jsx as _0x371a71,jsxs as _0x58337f}from'react/jsx-runtime';import{CollaborationStatus as _0x27f566,CollaborationSessionService as _0x7164ac,CollaborationController as _0x54f68d,DataLoaderService as _0x1c94a5,MemberService as _0x4eca94,SessionStatus as _0x53f485,ILocalCacheService as _0xcdb955,CollaborationUIEventService as _0x40529c,CollaborationUIEventId as _0x6c7f9c,DocCollaborationEntity as _0x301172,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x5bd5ca,getLocalCacheKey as _0x9d06b7,LOCAL_CACHE_INTERVAL as _0x40ab83,LOCAL_CACHE_INTERVAL_KEY as _0x4f1f3d,UniverCollaborationClientPlugin as _0x56a2f6,CollaborationSocketService as _0x5505d2,DEFAULT_WS_SESSION_TICKET_URL as _0x1158ce,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x1d0eb9,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x55c3a5,UnitStatus as _0x5cd56a}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x5c8592,IUniverInstanceService as _0x717147,Inject as _0xd1a258,Injector as _0x4075d0,Disposable as _0x451219,createIdentifier as _0x49a48f,ILogService as _0x5d513a,ICommandService as _0xe14216,Optional as _0x23f3c8,RxDisposable as _0x2f4832,Workbook as _0x1307be,DOC_RANGE_TYPE as _0x5bc3df,debounce as _0x4564b6,Rectangle as _0x2f8a98,DisposableCollection as _0x5a1325,toDisposable as _0x3640fe,UniverInstanceType as _0x5722a6,generateRandomId as _0x29e4dc,COLORS as _0x5c9a54,ColorKit as _0x4dd5d8,ThemeService as _0x58053e,fromEventSubject as _0x260481,Tools as _0x8e5b3b,CommandType as _0x5c096d,IConfigService as _0x3a2d6e,CanceledError as _0x299f8a,isFormulaString as _0x4bac35,isFormulaId as _0x520265,ILocalStorageService as _0x267ca5,DependentOn as _0x1afb5d,Plugin as _0x3a561a,merge as _0x51a3b6,registerDependencies as _0x232947,mergeOverrideWithDependencies as _0x5c568a,touchDependencies as _0x2ad356}from'@univerjs/core';import{useObservable as _0x2a6826,useDependency as _0x32782a,IUIPartsService as _0x4c1aca,BuiltInUIPart as _0x4d41b4,connectInjector as _0x53a3b9,IBeforeCloseService as _0x35fbb7,IMessageService as _0x1de295,INotificationService as _0x2a6254}from'@univerjs/ui';import{BehaviorSubject as _0x40aa62,switchMap as _0xa5b9ec,of as _0x472e7c,takeUntil as _0x49b716,debounceTime as _0x2b5361,Subject as _0x5307ea,filter as _0x29bcb5,merge as _0x2da9e0,combineLatest as _0xc2e36,fromEvent as _0x51b723,shareReplay as _0x1a0d46,mapTo as _0x1d319f,distinctUntilChanged as _0x113cfc}from'rxjs';import{Tooltip as _0xdf4ba9,clsx as _0x2c4f7d,MessageType as _0x47fe57}from'@univerjs/design';import{useRef as _0x1b0990,createElement as _0xdf542c,forwardRef as _0xcfd65f,useCallback as _0x71cc8e}from'react';import{IRemoteInstanceService as _0x5e2fc8}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x2dfe3b,RefRangeService as _0x13933c,SetSelectionsOperation as _0x5d35a5,SheetsSelectionsService as _0x72d1aa,EffectRefRangId as _0x494297,handleIRemoveRow as _0x46ec99,handleIRemoveCol as _0x3e4b3b,handleMoveRange as _0x133c7f,handleInsertRow as _0x2a54d5,handleInsertRangeMoveRight as _0x4a5ab7,handleInsertRangeMoveDown as _0x1abe67,handleInsertCol as _0x15b634,handleDeleteRangeMoveUp as _0x568141,handleDeleteRangeMoveLeft as _0x21a5ff,runRefRangeMutations as _0x4ca24b}from'@univerjs/sheets';import{Shape as _0x7274bf,Rect as _0x412f0f,getColor as _0x5da4d8,RegularPolygon as _0x1f3457,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x5c7d16,Vector2 as _0x9fdc2,SHEET_VIEWPORT_KEY as _0x3f9e69,IRenderManagerService as _0x5a59d5}from'@univerjs/engine-render';import{HTTPService as _0x185939,ISocketService as _0xe1ac11,WebSocketService as _0x16eb47}from'@univerjs/network';import{IDocClipboardService as _0x1c84f5,NodePositionConvertToCursor as _0x206233,NodePositionConvertToRectRange as _0x3d6ec8,TEXT_RANGE_LAYER_INDEX as _0xf3ffb1,SetDocZoomRatioOperation as _0x449456,DocIMEInputManagerService as _0x29a072,DocStateChangeManagerService as _0x569f77}from'@univerjs/docs-ui';import{IImageIoService as _0x4b58e5}from'@univerjs/drawing';import{ITransformService as _0x494dd8,CollaborationEvent as _0x963d39,isTransformMutationFailure as _0x56152a,isTransformMutationsWithChangesetSuccess as _0x34ce1a,RevisionService as _0x1467ff,ISnapshotServerService as _0x43b657}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x2a6957,RichTextEditingMutation as _0x11c787,DocSelectionManagerService as _0x121fc3,DocSkeletonManagerService as _0x6f3011}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x55c289,serializeRangeWithSheet as _0x2bb013,FormulaExecuteStageType as _0x591a78,FormulaExecutedStateType as _0xa5aeb1,SetFormulaCalculationStartMutation as _0x569dd4,SetFormulaCalculationNotificationMutation as _0x344bbd}from'@univerjs/engine-formula';import{map as _0x20745,filter as _0x38a933,throttleTime as _0x7a1734,takeUntil as _0x5364bd,switchMap as _0x384c74}from'rxjs/operators';import{SheetSkeletonManagerService as _0x43ba20,getCoordByCell as _0x253e23,getSheetObject as _0x5bbea2}from'@univerjs/sheets-ui';function Ge({ref:_0xb45f3d,..._0x288cd3}){const _0x380678=_0x2234f4,{icon:_0x55e4c4,id:_0xd1cb5f,className:_0x49b175,extend:_0x28f211,..._0x598ef7}=_0x288cd3,_0x1bf39c=(_0x380678(0x338)+_0xd1cb5f+'\x20'+(_0x49b175||''))[_0x380678(0x29e)](),_0x3f00d9=_0x1b0990('_'+vi());return At(_0x55e4c4,''+_0xd1cb5f,{'defIds':_0x55e4c4[_0x380678(0x2c3)],'idSuffix':_0x3f00d9[_0x380678(0x1a8)]},{'ref':_0xb45f3d,'className':_0x1bf39c,..._0x598ef7},_0x28f211);}function At(_0x34259c,_0x23a443,_0x138857,_0x18f1de,_0x341a95){const _0x3a16a7=_0x2234f4;return _0xdf542c(_0x34259c['tag'],{'key':_0x23a443,...gi(_0x34259c,_0x138857,_0x341a95),..._0x18f1de},(Ei(_0x34259c,_0x138857)[_0x3a16a7(0x2f0)]||[])[_0x3a16a7(0x386)]((_0x55910e,_0x3e43c3)=>At(_0x55910e,_0x23a443+'-'+_0x34259c['tag']+'-'+_0x3e43c3,_0x138857,void 0x0,_0x341a95)));}function gi(_0x52b0aa,_0x268e11,_0x18d2cb){const _0x30f21f=_0x2234f4,_0x25fa2d={..._0x52b0aa[_0x30f21f(0x17f)]};_0x18d2cb!=null&&_0x18d2cb['colorChannel1']&&_0x25fa2d[_0x30f21f(0x198)]===_0x30f21f(0x347)&&(_0x25fa2d[_0x30f21f(0x198)]=_0x18d2cb['colorChannel1']),_0x52b0aa[_0x30f21f(0x24a)]===_0x30f21f(0x342)&&_0x25fa2d['id']&&(_0x25fa2d['id']=_0x25fa2d['id']+_0x268e11[_0x30f21f(0x178)]),Object['entries'](_0x25fa2d)[_0x30f21f(0x32f)](([_0x21041b,_0x104b87])=>{const _0x385034=_0x30f21f;_0x21041b===_0x385034(0x342)&&typeof _0x104b87=='string'&&(_0x25fa2d[_0x21041b]=_0x104b87['replace'](/url\(#(.*)\)/,'url(#$1'+_0x268e11[_0x385034(0x178)]+')'));});const {defIds:_0x5acda9}=_0x268e11;return!_0x5acda9||_0x5acda9[_0x30f21f(0x31d)]===0x0||(_0x52b0aa[_0x30f21f(0x24a)]===_0x30f21f(0x1e0)&&_0x25fa2d[_0x30f21f(0x1b8)]&&(_0x25fa2d[_0x30f21f(0x1b8)]=_0x25fa2d[_0x30f21f(0x1b8)]+_0x268e11[_0x30f21f(0x178)]),Object[_0x30f21f(0x2bb)](_0x25fa2d)[_0x30f21f(0x32f)](([_0x25a9ae,_0x40647d])=>{const _0x2dbb90=_0x30f21f;typeof _0x40647d=='string'&&(_0x25fa2d[_0x25a9ae]=_0x40647d['replace'](/url\(#(.*)\)/,_0x2dbb90(0x279)+_0x268e11[_0x2dbb90(0x178)]+')'));})),_0x25fa2d;}function Ei(_0x31cfcf,_0x240a2a){const _0x55cc2c=_0x2234f4;var _0x4a2094;const {defIds:_0x1a4519}=_0x240a2a;return!_0x1a4519||_0x1a4519[_0x55cc2c(0x31d)]===0x0?_0x31cfcf:_0x31cfcf['tag']===_0x55cc2c(0x2f5)&&((_0x4a2094=_0x31cfcf['children'])!=null&&_0x4a2094[_0x55cc2c(0x31d)])?{..._0x31cfcf,'children':_0x31cfcf[_0x55cc2c(0x2f0)][_0x55cc2c(0x386)](_0x1ff54c=>typeof _0x1ff54c[_0x55cc2c(0x17f)]['id']==_0x55cc2c(0x38f)&&_0x1a4519&&_0x1a4519[_0x55cc2c(0x38d)](_0x1ff54c[_0x55cc2c(0x17f)]['id'])?{..._0x1ff54c,'attrs':{..._0x1ff54c[_0x55cc2c(0x17f)],'id':_0x1ff54c['attrs']['id']+_0x240a2a[_0x55cc2c(0x178)]}}:_0x1ff54c)}:_0x31cfcf;}function _0x34ce(_0x16bc32,_0x3b3dbc){_0x16bc32=_0x16bc32-0x13d;const _0x4659e9=_0x4659();let _0x34ce70=_0x4659e9[_0x16bc32];return _0x34ce70;}function vi(){const _0x21c44f=_0x2234f4;return Math[_0x21c44f(0x1df)]()['toString'](0x24)[_0x21c44f(0x351)](0x2,0x8);}Ge['displayName']=_0x2234f4(0x2a8);const pi={'tag':_0x2234f4(0x224),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x2234f4(0x28c),'width':'1em','height':_0x2234f4(0x23e)},'children':[{'tag':'g','attrs':{'clipPath':_0x2234f4(0x22a)},'children':[{'tag':_0x2234f4(0x33c),'attrs':{'stroke':_0x2234f4(0x19e),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x2234f4(0x1ce),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x2234f4(0x2f5),'attrs':{},'children':[{'tag':_0x2234f4(0x1d0),'attrs':{'id':_0x2234f4(0x2f1)},'children':[{'tag':_0x2234f4(0x33c),'attrs':{'fill':_0x2234f4(0x231),'d':_0x2234f4(0x333)}}]}]}],'defIds':[_0x2234f4(0x2f1)]},Pt=_0xcfd65f(function(_0x1cff24,_0xf6457a){const _0x583fda=_0x2234f4;return _0xdf542c(Ge,Object[_0x583fda(0x30b)]({},_0x1cff24,{'id':_0x583fda(0x343),'ref':_0xf6457a,'icon':pi}));});Pt[_0x2234f4(0x2b8)]=_0x2234f4(0x264);const Oi={'tag':_0x2234f4(0x224),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x2234f4(0x13d),'viewBox':_0x2234f4(0x1db),'width':'1em','height':_0x2234f4(0x23e)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x2234f4(0x33c),'attrs':{'stroke':'currentColor','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':_0x2234f4(0x1ce),'strokeLinejoin':_0x2234f4(0x1ce),'strokeWidth':1.2}}]},{'tag':_0x2234f4(0x2f5),'attrs':{},'children':[{'tag':_0x2234f4(0x1d0),'attrs':{'id':_0x2234f4(0x220)},'children':[{'tag':_0x2234f4(0x33c),'attrs':{'fill':'white','d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':['on-line-icon_clip0_910_349']},wt=_0xcfd65f(function(_0x1816e0,_0x537bb3){const _0x4120dc=_0x2234f4;return _0xdf542c(Ge,Object[_0x4120dc(0x30b)]({},_0x1816e0,{'id':_0x4120dc(0x252),'ref':_0x537bb3,'icon':Oi}));});wt[_0x2234f4(0x2b8)]=_0x2234f4(0x165);function Ti(_0x4d622c){const _0x18a818=_0x2234f4;switch(_0x4d622c){case _0x27f566['OFFLINE']:return _0x18a818(0x374);case _0x27f566[_0x18a818(0x1d6)]:return _0x18a818(0x18e);case _0x27f566[_0x18a818(0x2a3)]:return _0x18a818(0x259);case _0x27f566[_0x18a818(0x164)]:return'collabStatus.notCollab';case _0x27f566[_0x18a818(0x177)]:case _0x27f566[_0x18a818(0x1d5)]:return'collabStatus.syncing';case _0x27f566[_0x18a818(0x24f)]:case _0x27f566['PENDING']:return'collabStatus.synced';}}function Ci(_0x371e4b){const _0x33e204=_0x2234f4,{status$:_0x19f7a7}=_0x371e4b,_0x5bc46a=_0x2a6826(_0x19f7a7,_0x27f566[_0x33e204(0x164)]),_0x12a74d=_0x32782a(_0x5c8592),_0x199085=_0x32782a(_0x7164ac),_0x22ac39=_0x5bc46a!==_0x27f566['OFFLINE'],_0xab2ad7=_0x12a74d['t'](Ti(_0x5bc46a)),_0x5d864f=_0x22ac39?_0x371a71(wt,{}):_0x371a71(Pt,{}),_0x42488d=_0x71cc8e(()=>{_0x22ac39||_0x199085['reconnect']();},[_0x22ac39,_0x199085]);function _0x336924(){const _0x4cbb97=_0x33e204;return _0x58337f(_0x4cbb97(0x22f),{'className':'univer-flex\x20univer-items-center','onClick':_0x42488d,'children':[_0x371a71('div',{'className':_0x2c4f7d('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x22ac39,'univer-text-red-500':!_0x22ac39}),'children':_0x5d864f}),_0x371a71(_0x4cbb97(0x22f),{'className':_0x4cbb97(0x33d),'children':_0xab2ad7})]});}return _0x22ac39?_0x336924():_0x371a71(_0xdf4ba9,{'title':_0x12a74d['t'](_0x33e204(0x1f1)),'children':_0x336924()});}var Ri=Object['getOwnPropertyDescriptor'],Di=(_0x3e852d,_0x447740,_0x47a04a,_0x2c32ca)=>{const _0x3272dd=_0x2234f4;for(var _0x29fbb2=_0x2c32ca>0x1?void 0x0:_0x2c32ca?Ri(_0x447740,_0x47a04a):_0x447740,_0x106fcc=_0x3e852d[_0x3272dd(0x31d)]-0x1,_0x44bac8;_0x106fcc>=0x0;_0x106fcc--)(_0x44bac8=_0x3e852d[_0x106fcc])&&(_0x29fbb2=_0x44bac8(_0x29fbb2)||_0x29fbb2);return _0x29fbb2;},se=(_0x125056,_0x3a2697)=>(_0x4719b2,_0x3f11c0)=>_0x3a2697(_0x4719b2,_0x3f11c0,_0x125056);let ae=class extends _0x451219{constructor(_0x4fc6ae,_0x3c650e,_0x9449a5,_0x1e6e60){const _0x83b9f4=_0x2234f4;super(),_(this,_0x83b9f4(0x153),new _0x40aa62(_0x27f566[_0x83b9f4(0x164)])),(this[_0x83b9f4(0x275)]=_0x4fc6ae,this[_0x83b9f4(0x1e1)]=_0x3c650e,this['_collaborationController']=_0x9449a5,this[_0x83b9f4(0x206)]=_0x1e6e60,this[_0x83b9f4(0x217)](),this[_0x83b9f4(0x36c)]());}['_initStatusListener'](){const _0x4972a4=_0x2234f4;this[_0x4972a4(0x1f0)](this[_0x4972a4(0x275)][_0x4972a4(0x341)][_0x4972a4(0x277)](_0xa5b9ec(()=>{const _0x535ef7=_0x4972a4,_0x1b2ea9=this['_univerInstanceService'][_0x535ef7(0x367)]();return _0x1b2ea9?this[_0x535ef7(0x191)][_0x535ef7(0x1ec)](_0x1b2ea9[_0x535ef7(0x26e)]()):_0x472e7c(null);}),_0xa5b9ec(_0x14d98f=>_0x14d98f?_0x14d98f[_0x4972a4(0x369)]:_0x472e7c(_0x27f566['NOT_COLLAB'])))[_0x4972a4(0x190)](_0x3d9647=>{const _0x3b6732=_0x4972a4;this['_status$'][_0x3b6732(0x37e)](_0x3d9647);}));}['_initStatusComponent'](){const _0x35088f=_0x2234f4;this['disposeWithMe'](this[_0x35088f(0x206)][_0x35088f(0x25c)](_0x4d41b4[_0x35088f(0x247)],()=>_0x53a3b9(Ni({'status$':this['_status$']['asObservable']()}),this[_0x35088f(0x1e1)])));}};ae=Di([se(0x0,_0x717147),se(0x1,_0xd1a258(_0x4075d0)),se(0x2,_0xd1a258(_0x54f68d)),se(0x3,_0x4c1aca)],ae);function Ni(_0x3520a0){const {status$:_0x1c2024}=_0x3520a0;return function(){return _0x371a71(Ci,{'status$':_0x1c2024});};}const yt=_0x49a48f('uni.network.url-service');var bi=Object['getOwnPropertyDescriptor'],Li=(_0x17b25e,_0x3ab97c,_0x4f8ba0,_0x4699a1)=>{const _0x4d8da9=_0x2234f4;for(var _0x536735=_0x4699a1>0x1?void 0x0:_0x4699a1?bi(_0x3ab97c,_0x4f8ba0):_0x3ab97c,_0x9b3136=_0x17b25e[_0x4d8da9(0x31d)]-0x1,_0x4a733a;_0x9b3136>=0x0;_0x9b3136--)(_0x4a733a=_0x17b25e[_0x9b3136])&&(_0x536735=_0x4a733a(_0x536735)||_0x536735);return _0x536735;},K=(_0x4fd666,_0x5490e2)=>(_0x46d22d,_0x2b29eb)=>_0x5490e2(_0x46d22d,_0x2b29eb,_0x4fd666);let ce=class extends _0x2f4832{constructor(_0x12797e,_0x344f23,_0x594e47,_0x2adc0d,_0x1d7c68){const _0x2eb41a=_0x2234f4;super(),this[_0x2eb41a(0x20d)]=_0x12797e,this[_0x2eb41a(0x21d)]=_0x344f23,this[_0x2eb41a(0x16f)]=_0x594e47,this[_0x2eb41a(0x2fb)]=_0x2adc0d,_0x1d7c68?_0x1d7c68==null||_0x1d7c68[_0x2eb41a(0x320)]()['then'](()=>this[_0x2eb41a(0x1b5)]()):(this['_logService'][_0x2eb41a(0x30a)](_0x2eb41a(0x2ee),_0x2eb41a(0x2e7)),this[_0x2eb41a(0x1b5)]());}async['_init'](){const _0x531311=_0x2234f4,_0x4565a3=this['_urlService'][_0x531311(0x244)]('unit'),_0x25f454=this['_urlService']['getParam'](_0x531311(0x1f6)),_0x44d328=this[_0x531311(0x20d)][_0x531311(0x244)](_0x531311(0x389));if(!_0x4565a3||!_0x25f454){this[_0x531311(0x21d)][_0x531311(0x30a)](_0x531311(0x2ee),_0x531311(0x318));return;}const _0x405943=await this[_0x531311(0x2fb)][_0x531311(0x2d6)](_0x4565a3,Number(_0x25f454),_0x44d328);_0x405943&&_0x405943 instanceof _0x1307be&&this[_0x531311(0x332)](_0x405943);}async[_0x2234f4(0x332)](_0x1a453b){const _0x3576b5=_0x2234f4;await this[_0x3576b5(0x1aa)](_0x1a453b),_0x1a453b[_0x3576b5(0x1fa)][_0x3576b5(0x277)](_0x49b716(this['dispose$']))[_0x3576b5(0x190)](_0x30b56c=>{const _0x35547b=_0x3576b5;_0x30b56c&&this[_0x35547b(0x1f4)](_0x30b56c);}),this[_0x3576b5(0x20d)][_0x3576b5(0x18d)][_0x3576b5(0x277)](_0x49b716(this[_0x3576b5(0x1cd)]))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x1a453b));}['_updateURLWithCurrentState'](_0x101b77,_0x503d99=!0x1){const _0x24115c=_0x2234f4,_0x459fb1=this[_0x24115c(0x20d)][_0x24115c(0x244)]('subunit');_0x101b77[_0x24115c(0x22c)]()!==_0x459fb1&&this['_urlService']['setParam']('subunit',_0x101b77[_0x24115c(0x22c)](),_0x503d99);}async[_0x2234f4(0x1aa)](_0x47c3f1){const _0xe5fa4c=_0x2234f4;var _0x415aa6;const _0x445397=this['_urlService'][_0xe5fa4c(0x244)]('subunit');if(!_0x445397||!_0x47c3f1[_0xe5fa4c(0x312)](_0x445397)){const _0x32224a=_0x47c3f1[_0xe5fa4c(0x291)]()[0x0],_0x2bf650=_0x47c3f1[_0xe5fa4c(0x312)](_0x32224a);if(!_0x2bf650)return;this[_0xe5fa4c(0x1f4)](_0x2bf650,!0x0),await this[_0xe5fa4c(0x16f)][_0xe5fa4c(0x212)](_0x2dfe3b['id'],{'unitId':_0x47c3f1['getUnitId'](),'subUnitId':_0x32224a});return;}((_0x415aa6=_0x47c3f1['getActiveSheet']())==null?void 0x0:_0x415aa6['getSheetId']())!==_0x445397&&await this[_0xe5fa4c(0x16f)][_0xe5fa4c(0x212)](_0x2dfe3b['id'],{'unitId':_0x47c3f1[_0xe5fa4c(0x26e)](),'subUnitId':_0x445397});}};ce=Li([K(0x0,yt),K(0x1,_0x5d513a),K(0x2,_0xe14216),K(0x3,_0xd1a258(_0x1c94a5)),K(0x4,_0x23f3c8(_0x5e2fc8))],ce);var Ui=Object[_0x2234f4(0x378)],Mi=(_0x24a59e,_0x8f49a2,_0x1b6ea6,_0x2abe62)=>{const _0x3497b8=_0x2234f4;for(var _0x1daf23=_0x2abe62>0x1?void 0x0:_0x2abe62?Ui(_0x8f49a2,_0x1b6ea6):_0x8f49a2,_0x5293ab=_0x24a59e[_0x3497b8(0x31d)]-0x1,_0x397dff;_0x5293ab>=0x0;_0x5293ab--)(_0x397dff=_0x24a59e[_0x5293ab])&&(_0x1daf23=_0x397dff(_0x1daf23)||_0x1daf23);return _0x1daf23;},rt=(_0x31d47f,_0x33c435)=>(_0x128c93,_0x10b49e)=>_0x33c435(_0x128c93,_0x10b49e,_0x31d47f);let $e=class extends _0x2f4832{constructor(_0x236690,_0x4bea62){const _0x17781c=_0x2234f4;super(),this[_0x17781c(0x2e3)]=_0x236690,this[_0x17781c(0x141)]=_0x4bea62,this[_0x17781c(0x1b5)]();}[_0x2234f4(0x1b5)](){const _0x28c009=_0x2234f4,_0x578ee0=this;this[_0x28c009(0x1f0)](this['_docClipboardService'][_0x28c009(0x1ae)]({'onBeforePasteImage':async _0x32f567=>{const _0x253f84=_0x28c009,_0x1fe3a0=await _0x578ee0[_0x253f84(0x141)]['saveImage'](_0x32f567);return _0x1fe3a0?{'source':_0x1fe3a0['source'],'imageSourceType':_0x1fe3a0[_0x253f84(0x267)]}:null;}}));}};$e=Mi([rt(0x0,_0x1c84f5),rt(0x1,_0x4b58e5)],$e);const ot=[_0x2234f4(0x325),'jiqing.500','green.600',_0x2234f4(0x272),_0x2234f4(0x13e),_0x2234f4(0x222)];class Ke extends _0x451219{constructor(){const _0x299907=_0x2234f4;super(...arguments),_(this,'_assignedColors',new Map()),_(this,_0x299907(0x37f),0x0);}[_0x2234f4(0x155)](_0x4a3125){const _0x21b8a9=_0x2234f4;if(this[_0x21b8a9(0x160)][_0x21b8a9(0x30c)](_0x4a3125))return this['_assignedColors']['get'](_0x4a3125);const _0x548c25=ot[this[_0x21b8a9(0x37f)]];return this['_colorIndex']=(this[_0x21b8a9(0x37f)]+0x1)%ot[_0x21b8a9(0x31d)],this[_0x21b8a9(0x160)]['set'](_0x4a3125,_0x548c25),_0x548c25;}}function $t(_0x1e1ac9){const _0x2f512c=_0x2234f4;let _0x367c91='';for(const _0x262bf2 of _0x1e1ac9){const {startOffset:_0x5147a,endOffset:_0x44c84d,isActive:_0x1b2425,rangeType:_0x70a63d,segmentId:_0x2ce3a0,segmentPage:_0x5151b9}=_0x262bf2;_0x367c91[_0x2f512c(0x31d)]&&(_0x367c91+=','),_0x367c91+=_0x5147a+':'+_0x44c84d+':'+(_0x1b2425?'1':'0')+':'+_0x70a63d+':'+_0x2ce3a0+':'+_0x5151b9;}return _0x367c91;}function Ai(_0x3e0f0a){const _0x43495b=_0x2234f4,_0x1af12d=_0x3e0f0a[_0x43495b(0x315)](','),_0x563945=[];for(const _0xb96ef7 of _0x1af12d){const [_0x5141a6,_0x18b9a8,_0x13c913,_0x2a96b2,_0x3b6da3,_0x2e16d3]=_0xb96ef7[_0x43495b(0x315)](':');_0x563945['push']({'startOffset':Number(_0x5141a6),'endOffset':Number(_0x18b9a8),'collapsed':_0x5141a6===_0x18b9a8,'isActive':_0x13c913==='1','rangeType':_0x2a96b2===_0x5bc3df[_0x43495b(0x172)]?_0x5bc3df[_0x43495b(0x172)]:_0x5bc3df['RECT'],'segmentId':typeof _0x3b6da3==_0x43495b(0x38f)?String(_0x3b6da3):'','segmentPage':Number(_0x2e16d3!=null?_0x2e16d3:-0x1)});}return _0x563945[_0x43495b(0x203)](_0x17dd99=>_0x17dd99[_0x43495b(0x194)])||(_0x563945[0x0][_0x43495b(0x194)]=!0x0),_0x563945;}class ze extends _0x2f4832{constructor(){const _0x506e53=_0x2234f4;super(...arguments),_(this,_0x506e53(0x387),new _0x40aa62(null)),_(this,_0x506e53(0x2be),this[_0x506e53(0x387)][_0x506e53(0x32b)]());}['syncEditingCollabCursor'](_0x428840){const _0x532dfe=_0x2234f4,{unitID:_0x34d655,memberID:_0x8d994c,textRanges:_0x5be01e}=_0x428840,_0x1b2a20=$t(_0x5be01e);if(_0x1b2a20==='')return;const _0x2b9587={'unitID':_0x34d655,'memberID':_0x8d994c,'selection':_0x1b2a20};this[_0x532dfe(0x387)][_0x532dfe(0x37e)](_0x2b9587);}}var Pi=Object[_0x2234f4(0x378)],wi=(_0x2c52b0,_0x212839,_0x52a4ed,_0x16685f)=>{const _0x1599fa=_0x2234f4;for(var _0x4e0006=_0x16685f>0x1?void 0x0:_0x16685f?Pi(_0x212839,_0x52a4ed):_0x212839,_0x26d525=_0x2c52b0[_0x1599fa(0x31d)]-0x1,_0x449ba4;_0x26d525>=0x0;_0x26d525--)(_0x449ba4=_0x2c52b0[_0x26d525])&&(_0x4e0006=_0x449ba4(_0x4e0006)||_0x4e0006);return _0x4e0006;},A=(_0x1f6a48,_0x5a4530)=>(_0x3fb949,_0x1240b6)=>_0x5a4530(_0x3fb949,_0x1240b6,_0x1f6a48);const yi=0x12c,$i=0x64;let xe=class extends _0x2f4832{constructor(_0x269cb8,_0x5bcbd0,_0x96eae9,_0xfb84b6,_0x36ce4c,_0x1fe925,_0x4e81d8,_0x2ea8dc,_0x16a428){const _0x7f3bc5=_0x2234f4;super(),_(this,_0x7f3bc5(0x1f7),!0x1),_(this,'_init',!0x1),_(this,_0x7f3bc5(0x145),new _0x40aa62(new Map())),_(this,_0x7f3bc5(0x358),this[_0x7f3bc5(0x145)][_0x7f3bc5(0x32b)]()),_(this,'_roomMembers$',new _0x40aa62([])),_(this,_0x7f3bc5(0x323),this[_0x7f3bc5(0x355)][_0x7f3bc5(0x277)](_0x2b5361(yi))),_(this,_0x7f3bc5(0x330),_0x4564b6(_0x506cd7=>{const _0x2b9fd8=_0x7f3bc5,_0x2991bd={'eventID':_0x963d39[_0x2b9fd8(0x14e)],'data':{'unitID':this[_0x2b9fd8(0x298)],'memberID':this[_0x2b9fd8(0x236)][_0x2b9fd8(0x1a3)](),'selection':$t(_0x506cd7)}};this[_0x2b9fd8(0x236)][_0x2b9fd8(0x179)](_0x2991bd,this[_0x2b9fd8(0x298)]);},$i)),(this['unitID']=_0x269cb8,this[_0x7f3bc5(0x236)]=_0x5bcbd0,this[_0x7f3bc5(0x1e1)]=_0x96eae9,this[_0x7f3bc5(0x313)]=_0xfb84b6,this[_0x7f3bc5(0x17e)]=_0x36ce4c,this[_0x7f3bc5(0x1bc)]=_0x1fe925,this['_transformService']=_0x4e81d8,this['_univerInstanceService']=_0x2ea8dc,this[_0x7f3bc5(0x16f)]=_0x16a428);}get[_0x2234f4(0x310)](){const _0x128025=_0x2234f4;return this[_0x128025(0x145)][_0x128025(0x16b)]();}get[_0x2234f4(0x1f8)](){const _0x80ed2=_0x2234f4;return this['_roomMembers$'][_0x80ed2(0x16b)]();}[_0x2234f4(0x2e1)](){const _0x3d8c18=_0x2234f4;super[_0x3d8c18(0x2e1)](),this[_0x3d8c18(0x145)]['next'](new Map()),this['_cursorInfo$']['complete'](),this[_0x3d8c18(0x355)]['next']([]),this[_0x3d8c18(0x355)][_0x3d8c18(0x162)]();}['init'](){const _0x319b86=_0x2234f4;this[_0x319b86(0x1b5)]||(this[_0x319b86(0x1b5)]=!0x0,this[_0x319b86(0x236)][_0x319b86(0x1ea)][_0x319b86(0x277)](_0x49b716(this[_0x319b86(0x1cd)]))['subscribe'](_0x4548d7=>{const _0x1e9a39=_0x319b86;_0x4548d7===_0x53f485[_0x1e9a39(0x29a)]?this[_0x1e9a39(0x1e9)]():this[_0x1e9a39(0x15b)]();}),this[_0x319b86(0x236)]['event$'][_0x319b86(0x277)](_0x49b716(this[_0x319b86(0x1cd)]))['subscribe'](_0x599f94=>{const _0x21ffde=_0x319b86,_0x43deaf=_0x599f94['eventID'];_0x43deaf===_0x963d39[_0x21ffde(0x14e)]&&this[_0x21ffde(0x181)](_0x599f94),_0x43deaf===_0x963d39[_0x21ffde(0x1ab)]&&this[_0x21ffde(0x360)](_0x599f94);}),this[_0x319b86(0x1f0)](this[_0x319b86(0x16f)][_0x319b86(0x2a0)](_0xeda99c=>{const _0x2b26d2=_0x319b86,_0x5a9326=_0xeda99c[_0x2b26d2(0x22e)];_0x5a9326!=null&&this[_0x2b26d2(0x1f7)]&&_0xeda99c['id']===_0x2a6957['id']&&_0x5a9326[_0x2b26d2(0x215)]===this[_0x2b26d2(0x298)]&&_0x5a9326[_0x2b26d2(0x1c0)]===!0x1&&_0x5a9326[_0x2b26d2(0x2c5)]['length']>0x0&&this['_updateLocalCursor'](_0x5a9326[_0x2b26d2(0x2c5)]);})),this[_0x319b86(0x1bc)]['collabCursorState$'][_0x319b86(0x277)](_0x49b716(this['dispose$']))[_0x319b86(0x190)](_0xa0f45c=>{const _0x592d42=_0x319b86;if((_0xa0f45c==null?void 0x0:_0xa0f45c[_0x592d42(0x298)])!==this['unitID'])return;const _0x5b1b2e={'eventID':_0x963d39[_0x592d42(0x14e)],'data':_0xa0f45c};this[_0x592d42(0x181)](_0x5b1b2e);}),this[_0x319b86(0x1f0)](this[_0x319b86(0x16f)][_0x319b86(0x2a0)](_0x3ef0b3=>{const _0x55fc60=_0x319b86;if(_0x3ef0b3[_0x55fc60(0x22e)]==null)return;const _0x4d3643=_0x3ef0b3[_0x55fc60(0x22e)];if(_0x3ef0b3['id']!==_0x11c787['id']||_0x4d3643[_0x55fc60(0x215)]!==this[_0x55fc60(0x298)])return;const _0x4b3511={'id':_0x55fc60(0x37d),'params':_0x4d3643},_0x37cf0b=this[_0x55fc60(0x310)];for(const [_0xf803f3,_0x1633c7]of _0x37cf0b){const _0x107e58={'id':_0x55fc60(0x37d),'params':{'unitId':this[_0x55fc60(0x298)],'actions':null,'textRanges':_0x1633c7['ranges']}},_0x5195d9=this[_0x55fc60(0x1e6)]['transformMutation'](_0x4b3511,_0x107e58,!0x1);if(_0x56152a(_0x5195d9))throw _0x5195d9[_0x55fc60(0x197)];_0x37cf0b[_0x55fc60(0x1f9)](_0xf803f3,{..._0x1633c7,'ranges':_0x5195d9[_0x55fc60(0x32c)][_0x55fc60(0x22e)][_0x55fc60(0x382)]});}queueMicrotask(()=>{const _0x2357e1=_0x55fc60;this[_0x2357e1(0x145)][_0x2357e1(0x37e)](_0x37cf0b);});})));}[_0x2234f4(0x181)](_0x47c1e9){const _0x2d3092=_0x2234f4;var _0x31d451,_0x29894a;const {memberID:_0x3556ee,selection:_0x220573}=_0x47c1e9['data'],_0x4f7592=Ai(_0x220573),_0x516238=(_0x29894a=(_0x31d451=this[_0x2d3092(0x17e)]['getMember'](this[_0x2d3092(0x298)],_0x3556ee))==null?void 0x0:_0x31d451['name'])!=null?_0x29894a:'Unknown\x20user',_0x3e344a={'color':this[_0x2d3092(0x313)][_0x2d3092(0x155)](_0x3556ee),'name':_0x516238,'ranges':_0x4f7592},_0x27e5a4=this[_0x2d3092(0x310)];_0x27e5a4['set'](_0x3556ee,_0x3e344a),this[_0x2d3092(0x145)][_0x2d3092(0x37e)](_0x27e5a4);}['_onCursorDelete'](_0xa498d3){const _0x17d994=_0x2234f4,{memberID:_0x36b0d0}=_0xa498d3[_0x17d994(0x2b4)],_0x1d1168=this[_0x17d994(0x310)];_0x1d1168[_0x17d994(0x304)](_0x36b0d0),this[_0x17d994(0x145)][_0x17d994(0x37e)](_0x1d1168);}[_0x2234f4(0x1e9)](){const _0xd02798=_0x2234f4;var _0x49459f;if(this[_0xd02798(0x1f7)]=!0x0,((_0x49459f=this[_0xd02798(0x275)][_0xd02798(0x367)]())==null?void 0x0:_0x49459f[_0xd02798(0x26e)]())!==this[_0xd02798(0x298)])return;const _0x15b62b=this[_0xd02798(0x1e1)][_0xd02798(0x184)](_0x121fc3)[_0xd02798(0x2e8)]();Array[_0xd02798(0x284)](_0x15b62b)&&_0x15b62b[_0xd02798(0x31d)]>0x0&&this[_0xd02798(0x330)](_0x15b62b);}[_0x2234f4(0x15b)](){const _0x20395f=_0x2234f4;this[_0x20395f(0x1f7)]=!0x1;}};xe=wi([A(0x2,_0xd1a258(_0x4075d0)),A(0x3,_0xd1a258(Ke)),A(0x4,_0xd1a258(_0x4eca94)),A(0x5,_0xd1a258(ze)),A(0x6,_0x494dd8),A(0x7,_0x717147),A(0x8,_0xe14216)],xe);var xi=Object[_0x2234f4(0x378)],Bi=(_0x5c5b25,_0xbaf4ff,_0x46c725,_0x56cb48)=>{const _0x5a19ff=_0x2234f4;for(var _0x5426e9=_0x56cb48>0x1?void 0x0:_0x56cb48?xi(_0xbaf4ff,_0x46c725):_0xbaf4ff,_0x45f706=_0x5c5b25[_0x5a19ff(0x31d)]-0x1,_0x14f51c;_0x45f706>=0x0;_0x45f706--)(_0x14f51c=_0x5c5b25[_0x45f706])&&(_0x5426e9=_0x14f51c(_0x5426e9)||_0x5426e9);return _0x5426e9;},B=(_0x5a1b8c,_0x433465)=>(_0x56b43f,_0x2d8c05)=>_0x433465(_0x56b43f,_0x2d8c05,_0x5a1b8c);function _0x4659(){const _0x110c69=['mutations','color','SYNCED','SUCCESS','ALREADY_EXISTS','on-line-icon','column','?taskId=','_initCommandExecutedListener','collab-rect-range-','collab-text-anchor-','_uploadLog','collabStatus.fetchMiss','override','findNodePositionByCharIndex','registerComponent','addEventListener','SNAPSHOT_INVALID_SNAPSHOT','_selfUnitIDs','transformSelections','_docSkeleton','START_CALCULATION','text','OffLineIcon','_refreshCollabCursors','LICENSE_EXPORT_SIZE_EXCEEDED','imageSourceType','sheetID','getCurrentSelections','application/json','REDEMPTION_CODE_INACTIVE','USER_NOT_FOUND','startFormulaLimitUrl','getUnitId','_entityInit$','row','ENTITLE_COUPON_EXPIRED','red.300','_drawTextRange','clearInterval','_univerInstanceService','SOCKET_FAILED','pipe','enableFrontendLog','url(#$1','InsertRangeMoveRightCommandId','ticket','REDEMPTION_USER_REDEEM_TIMES_EXCEED','currentUsage','Error','all','setConfig','INVITE_CODE_REQUIRED','socket$','unit','isArray','\x20at\x20','/run/','resize','APPLY_DUPLICATED','history','flatMap','beginPath','0\x200\x2016\x2016','LICENSE_IMPORT_SIZE_EXCEEDED','stringify','save','COMPLETION_FINISHED','getUnhiddenWorksheets','UNDEFINED','CURRENT_STATUS_CANNOT_OPERATE','REDEMPTION_INVALID_CODE','_initDependencies','stageInfo','_hover','unitID','now','ONLINE','UNRECOGNIZED','MOBILE_VERIFY_CODE_MISMATCH','createSocket','trim','location','onCommandExecuted','NO_OTHER_CLIENTS_EDITING','INTERNAL_ERROR','FETCH_MISS','_saveCache','post','PY_RUNTIME_SCRIPT_ERROR','editingUnit','UniverIcon','updateOfflineData','setActiveRange','_removeClearOtherTimer','47TuzgiF','push','currentSkeleton$','_clearPolling','_getFormulaLimitStatus','startColumn','show','YUUMI_TABLE_NOT_FOUND_IN_UNIT','data','MUTATION','onMouseMove','selections','displayName','_cursors','_transformUndoRedoStack','entries','lineTo','_entities','collabCursorState$','_currentUsage','_collaborationUIEventService','stack','unhandledrejection','defIds','OTHER_CLIENT_EDITING','ranges','getActiveRange','_registerRenderDependencies','536UUpsvG','_backgroundColor','_themeService','getUndoRedoMutationParamsCache','m1Prime','replaceState','_localStorageService','InsertRangeMoveDownCommandId','transform','key','_getSheetObject','RemoveRowCommandId','_scheduleClearOtherTimer','setItem','loadUnit','searchParams','setStateCache','redoState','_drawRectRange','_docStateChangeManagerService','entityInit$','ERROR_AGAIN','filename','getRenderById','ENTITLE_CHAT_LIMIT_EXCEED','dispose','black','_docClipboardService','backgroundColor','_anchorDot','subscribeEvent','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','getDocRanges','_pollingInterval','formula.calculation.unable','shift','_createSocketURL','APPLY_PERMISSION_DENIED','[CollaborationDataLoaderController]','_initWindowErrorListener','children','off-line-icon_clip0_910_343','_document','setInterval','[Window\x20Error]:\x20','defs','name','getViewport','779538xxcbvK','_startDocCollabCursor','CONNECTOR_DATA_TOO_LARGE','_dataLoaderService','getCollabCursors$','session.connection-failed','bottom','ENTITLE_COUPON_USED_UP','onPointerEnter$','APPLY_REJECT','_getMergeRange','INVITE_CODE_HAS_BEEN_UES','delete','transformByState','_anchor','_docTransformSelectionsService','_hovered','USER_NOT_INVITED_CODE','debug','assign','has','setParam','_transformHistoryAndStateStack','FromArray','cursorInfo','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','getSheetBySheetId','_colorAssignService','CHANGESET_REVISION_CONFILICT','split','_updateCollabCursors','Unknown\x20user','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','3909582fMOGcJ','PERMISSION_DENIED','values','session.collaboration-timeout','length','registerRenderModule','YUUMI_RATE_OVER_LIMIT','whenReady','closePath','setTimeout','roomMembers$','USER_IS_ANONYMOUS','purple.300','_draw','_httpService','InsertColCommandId','getCellMatrix','MOBILE_HAS_BEEN_BOUND','asObservable','m2Prime','2678225qAWEtm','YUUMI_SUBSCRIPTION_NOT_FOUND','forEach','_updateLocalCursor','_hideTimer','_setupSubUnitSync','M0\x200H16V16H0z','_instanceService','getUnit','restore','syncEditingCollabCursor','univerjs-icon\x20univerjs-icon-','_range','_lastPointer','_cursor','path','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','search','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','getOffsetConfig','focused$','mask','off-line-icon','getSkeleton','_setFormulaLimitStatus','triggerDblclick','colorChannel1','getMember','createInstance','symbol','_clearOtherTimers','unsubscribe','_removeCollabCursors','OTHER_CLIENTS_EDITING','from','memberID','substring','INVITE_CODE_ALREADY_BOUND','limitInfo','_scheduleHeartbeat','_roomMembers$','_collaborationSessionService','_heartbeatTimer','cursorInfo$','NOT_FOUND','YUUMI_AI_RUN_FAILED','_scene','_id','_handleEvent','_configService','message','_onCursorDelete','totalFormulasToCalculate','_initEntityListener','setAlpha','_refRangeService','collaboration.closeRoom','APPLY_NON_SEQUENTIAL_REVISION','getFocusedUnit','_startCalculationLimit','status$','_renderManagerService','exhaustSavingTask','_initStatusListener','_color','YUUMI_ALL_TABLES_IS_INVALID','_config','getCellPositionByOffset','DeleteRangeMoveLeftCommandId','UNIVER_SHEET','Failed','collabStatus.offline','addObjects','17224FdKSOC','_scheduleSaving','getOwnPropertyDescriptor','_handleJoinEvent','_applyCommand','_context','_collabSessionService','doc.mutation.rich-text-editing','next','_colorIndex','_taskIds','_releaseCalculationLimit','textRanges','startRow','_registerDependencies','YUUMI_CONNECTOR_URL_NOT_FOUND','map','_collabCursorState$','RECT','subunit','_cursorShapes','functionsExecutedState','89970qZWWYw','includes','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','string','2887236HLxlQD','none','blue.400','then','_initUserListener','_imageIoService','with','ACTIVE_UNIT_EVENT_CHANNEL','YUUMI_URL_COL_OUT_OF_RANGE','_cursorInfo$','Success','evenodd','_cachedData','_hasFormulaInDirtyRanges','_textBubble','contains','AUTHORIZE_CODE_ILLEGAL','_onRefRangeChange','UPDATE_CURSOR','size','MoveRangeCommandId','drawWith','collaboration-client-ui.config','_status$','_ensureSubject','assignAColorForMemberID','height','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_localCacheService','/universer-api/frontend/logs','_initUnhandledRejectionListener','_toggleOffline','actions','maxFormulaLimit','parseInt','selection','_assignedColors','lineno','complete','_name','NOT_COLLAB','OnLineIcon','UNIVER_DOC','addObject','collaboration.offline-data-not-saved','onStarting','width','getValue','saveOfflineData','SOCKET_FAILED_RETRY','bind','_commandService','href','REDEMPTION_USER_NOT_ELIGIBLE','TEXT','LICENSE_DISTRO_REJECTED','range','PAYMENT_CHANNEL_NOT_SUPPORT','add','AWAITING','idSuffix','send','unload','transformIMECache','currentTheme$','releaseFormulaLimitUrl','_memberService','attrs','/universer-api/license/formula/limit/done','_onCursorUpdate','INVALID_ARGUMENT','transformRemoteChangeset','get','toString','clearTimeout','_beforeCloseService','onPointerLeave$','_revisionService','defineProperty','_unitStatus','hide','urlChange$','collabStatus.conflict','disposeUnit','subscribe','_collaborationController','_docTransformIMECacheService','unshift','isActive','fillStyle','_messageService','error','fill','enableLocalCache','endRow','getUnitStatus$','CLOSE_ROOM','_labelPosition','currentColor','_notificationService','getStateCache','_unitOnClients','permission.content','getMemberID','_transformPreviousActiveRange','_sheetSkeletonManagerService','eventID','saveTaskMap','current','engine','_updateSubUnitFromURLParams','USERS_LEAVE','transformMutationsWithChangeset','_saveTaskMap','addClipboardHook','_startSheetCollabCursor','_shapes','getTypeOfUnitDisposed$','REDEMPTION_CODE_HAS_BEEN_CREATED','DeleteRangeMoveUpCommandId','storage','_init','popstate','labelPosition','xlink:href','code','_render','_drawAnchor','_syncEditingCollabCursorService','...','EMAIL_VERIFY_CODE_MISMATCH','undoState','isEditing','TOO_MANY_REQUESTS','_docSyncEditingCollabCursorService','hovered','collaboration.single-unit.warning','runId','endColumn','arc','onRendered','onPointerMove$','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','onTransformChange$','_monkeyPatchLogService','dispose$','round','_eventUnsubscribe','clipPath','_initEvent','ENTITLE_INVALID_COUPON_CODE','deepClone','beforeCommandExecuted','AWAITING_WITH_PENDING','CONFLICT','parse','newValue','registerRefRange','getCurrentRevOfUnit','0\x200\x2017\x2016','_memberID','catch','ENTITLE_REPORT_LIMIT_EXCEED','random','use','_injector','/universer-api/license/formula/limit/status','sessionTicket','INVALID_INVITE_CODE','wsSessionTicketUrl','_transformService','skeleton','YUUMI_ASYNCIO_CANCELLED','_toggleOnline','sessionStatus$','JOIN_ROOM_FAILED','getCollabEntity$','_localeService','LOGIN_FAILED','getConfig','disposeWithMe','collab-client.tooltip.reconnect','fillText','getVpScrollXYInfoByPosToVp','_updateURLWithCurrentState','measureText','type','_online','roomMembers','set','activeSheet$','YUUMI_NO_CUBOID_FOR_QUESTION','ENTITLE_INSUFFICIENT_QUOTA','removeEventListener','transformMutation','formula.calculation.waiting','find','getMergeData','_initCommandInterceptor','some','#FFF','_doCreateSocket','_uiPartsService','_showGuardMessage','_handleHeartbeatEvent','LOGIN_TOKEN_PROCESSING_FAILED','fillRule','_getScale','ENSURE_SNAPSHOT_EXECUTION','_urlService','startsWith','ENTITLE_NEED_BILLING_ADDRESS','_maxFormulaLimit','getTypeOfUnitAdded$','executeCommand','requireSession','_checkCalculationAvailable','unitId','_disabled','_initStatusComponent','_send','_docTransformStateCacheService','setShapeProps','setUndoRedoMutationParamsCache','Warning','_logService','_handleHover','init','on-line-icon_clip0_910_349','body','yellow.400','transformStateCache','svg','makeDirty','_collabCursorController','toRgbString','EMAIL_HAS_BEEN_BOUND','UNAUTHENTICATED','url(#off-line-icon_clip0_910_343)','_initResize','getSheetId','_getAnchorBounding','params','div','getItem','white','getAncestorScale','ENTITLE_CAN_NOT_BUY_LOWER_OTP','LICENSE_MAX_UNITS_EXCEEDED','max','_session','_setupBeforeClosingHandler','_lastResponseTimestamp','event$','loadOfflineData','invokeId','stage','_getSessionTicket','1em','_checkAndWaitForCalculationPermission','DATA_SOURCE_TOO_LARGE','ENTITLE_DUP_SUBSCRIPTION','InsertRowCommandId','REDEMPTION_CODE_FULLY_REDEEMED','getParam','pushState','62797xSOJuY','HEADER_MENU','getRelativeToViewportCoord','SUBMIT_CHANGESET_TIMEOUT','tag','ENTITLE_USE_COUPON_NOT_1ST_TRADE','top'];_0x4659=function(){return _0x110c69;};return _0x4659();}const Fi=0x12c,ki=0x64,Hi=()=>{let _0x561b27=[],_0x5ac8fa=!0x1;return _0xb41bde=>{const _0x51f5a6=_0x34ce;_0x561b27[_0x51f5a6(0x2ad)](_0xb41bde),_0x5ac8fa||(_0x5ac8fa=!0x0,setTimeout(()=>{_0x561b27['forEach'](_0x6fb07c=>_0x6fb07c()),_0x561b27=[],_0x5ac8fa=!0x1;}));};};let Be=class extends _0x2f4832{constructor(_0x633479,_0x4f438e,_0x24f923,_0x38a0a0,_0x3764bd,_0x343993,_0x5d0f2e,_0x4407ee){const _0x2ced8a=_0x2234f4;super(),_(this,_0x2ced8a(0x1f7),!0x1),_(this,_0x2ced8a(0x1b5),!0x1),_(this,_0x2ced8a(0x145),new _0x40aa62(new Map())),_(this,_0x2ced8a(0x358),this[_0x2ced8a(0x145)][_0x2ced8a(0x32b)]()),_(this,'_roomMembers$',new _0x40aa62([])),_(this,'roomMembers$',this['_roomMembers$'][_0x2ced8a(0x277)](_0x2b5361(Fi))),_(this,_0x2ced8a(0x330),_0x4564b6((_0x284f78,_0x5320f3)=>{const _0x19a132=_0x2ced8a,_0x270720={'eventID':_0x963d39['UPDATE_CURSOR'],'data':{'unitID':this[_0x19a132(0x298)],'memberID':this[_0x19a132(0x236)][_0x19a132(0x1a3)](),'selection':_0x2bb013(_0x284f78,_0x5320f3[_0x19a132(0x174)])}};this[_0x19a132(0x236)][_0x19a132(0x179)](_0x270720,this[_0x19a132(0x298)]);},ki)),(this[_0x2ced8a(0x298)]=_0x633479,this[_0x2ced8a(0x236)]=_0x4f438e,this[_0x2ced8a(0x1e1)]=_0x24f923,this[_0x2ced8a(0x313)]=_0x38a0a0,this['_memberService']=_0x3764bd,this[_0x2ced8a(0x275)]=_0x343993,this['_commandService']=_0x5d0f2e,this['_refRangeService']=_0x4407ee);}get[_0x2234f4(0x310)](){const _0x306b3d=_0x2234f4;return this[_0x306b3d(0x145)][_0x306b3d(0x16b)]();}get[_0x2234f4(0x1f8)](){const _0x19ae98=_0x2234f4;return this['_roomMembers$'][_0x19ae98(0x16b)]();}[_0x2234f4(0x2e1)](){const _0x1caa6b=_0x2234f4;super[_0x1caa6b(0x2e1)](),this[_0x1caa6b(0x145)][_0x1caa6b(0x37e)](new Map()),this[_0x1caa6b(0x145)][_0x1caa6b(0x162)](),this[_0x1caa6b(0x355)][_0x1caa6b(0x37e)]([]),this['_roomMembers$'][_0x1caa6b(0x162)]();}[_0x2234f4(0x21f)](){const _0xffa4fa=_0x2234f4;this[_0xffa4fa(0x1b5)]||(this[_0xffa4fa(0x1b5)]=!0x0,this[_0xffa4fa(0x236)][_0xffa4fa(0x1ea)][_0xffa4fa(0x277)](_0x49b716(this['dispose$']))[_0xffa4fa(0x190)](_0x53ce8b=>{const _0x8ae815=_0xffa4fa;_0x53ce8b===_0x53f485[_0x8ae815(0x29a)]?this['_toggleOnline']():this[_0x8ae815(0x15b)]();}),this[_0xffa4fa(0x236)][_0xffa4fa(0x239)][_0xffa4fa(0x277)](_0x49b716(this[_0xffa4fa(0x1cd)]))[_0xffa4fa(0x190)](_0x5944f5=>{const _0x18ea7a=_0xffa4fa,_0x4c6b02=_0x5944f5[_0x18ea7a(0x1a6)];_0x4c6b02===_0x963d39[_0x18ea7a(0x14e)]&&this[_0x18ea7a(0x181)](_0x5944f5),_0x4c6b02===_0x963d39['USERS_LEAVE']&&this[_0x18ea7a(0x360)](_0x5944f5);}),this[_0xffa4fa(0x14d)](),this['disposeWithMe'](this[_0xffa4fa(0x16f)][_0xffa4fa(0x2a0)](_0xa874a5=>{const _0x1c9f0b=_0xffa4fa;if(this[_0x1c9f0b(0x1f7)]&&_0xa874a5['id']===_0x5d35a5['id']&&_0xa874a5[_0x1c9f0b(0x22e)][_0x1c9f0b(0x215)]===this['unitID']){const _0x3bf1e5=_0xa874a5[_0x1c9f0b(0x22e)];this[_0x1c9f0b(0x330)](_0x3bf1e5['subUnitId'],_0x3bf1e5[_0x1c9f0b(0x2b7)][0x0]);}})));}['_onCursorUpdate'](_0x528f67){const _0x31b9b8=_0x2234f4;var _0x371e19,_0x628552;const {memberID:_0x596abd,selection:_0x1d4de8}=_0x528f67[_0x31b9b8(0x2b4)],{sheetName:_0x52b242,range:_0xd22923}=_0x55c289(_0x1d4de8),_0x537bd5={'name':(_0x628552=(_0x371e19=this[_0x31b9b8(0x17e)][_0x31b9b8(0x348)](this[_0x31b9b8(0x298)],_0x596abd))==null?void 0x0:_0x371e19[_0x31b9b8(0x2f6)])!=null?_0x628552:_0x31b9b8(0x317),'range':this['_getMergeRange'](_0x52b242,_0xd22923),'sheetID':_0x52b242,'color':this[_0x31b9b8(0x313)][_0x31b9b8(0x155)](_0x596abd),'selection':_0x1d4de8},_0x1f9f82=this['cursorInfo'];_0x1f9f82['set'](_0x596abd,_0x537bd5),this[_0x31b9b8(0x145)]['next'](_0x1f9f82);}[_0x2234f4(0x360)](_0x41741a){const _0x628571=_0x2234f4,{memberID:_0x441507}=_0x41741a['data'],_0x149837=this[_0x628571(0x310)];_0x149837[_0x628571(0x304)](_0x441507),this[_0x628571(0x145)][_0x628571(0x37e)](_0x149837);}[_0x2234f4(0x302)](_0x37ae9f,_0xd6f9bd){const _0x496865=_0x2234f4;var _0x50b3b3,_0x20560a;const _0xa41923=(_0x20560a=(_0x50b3b3=this[_0x496865(0x275)]['getUniverSheetInstance'](this['unitID']))==null?void 0x0:_0x50b3b3['getSheetBySheetId'](_0x37ae9f))==null?void 0x0:_0x20560a[_0x496865(0x201)]();return(_0xa41923==null?void 0x0:_0xa41923[_0x496865(0x200)](_0x108465=>_0x2f8a98[_0x496865(0x14b)](_0x108465,_0xd6f9bd)))||_0xd6f9bd;}[_0x2234f4(0x14d)](){const _0x37b003=_0x2234f4,_0x550189=new _0x5a1325(),_0x2ac32d=Hi(),_0x1b1351=()=>{const _0x2fd787=_0x34ce;_0x550189[_0x2fd787(0x2e1)]();const _0x5903bb=(_0x2393a6,_0x32787a,_0x259a06,_0xd96277)=>{const _0x24f3e3=_0x2fd787;let _0x2cda26=[];switch(_0x2393a6['id']){case _0x494297[_0x24f3e3(0x371)]:{_0x2cda26=_0x21a5ff(_0x2393a6,_0xd96277);break;}case _0x494297[_0x24f3e3(0x1b3)]:{_0x2cda26=_0x568141(_0x2393a6,_0xd96277);break;}case _0x494297[_0x24f3e3(0x328)]:{_0x2cda26=_0x15b634(_0x2393a6,_0xd96277);break;}case _0x494297[_0x24f3e3(0x2cf)]:{_0x2cda26=_0x1abe67(_0x2393a6,_0xd96277);break;}case _0x494297[_0x24f3e3(0x27a)]:{_0x2cda26=_0x4a5ab7(_0x2393a6,_0xd96277);break;}case _0x494297[_0x24f3e3(0x242)]:{_0x2cda26=_0x2a54d5(_0x2393a6,_0xd96277);break;}case _0x494297[_0x24f3e3(0x150)]:{_0x2cda26=_0x133c7f(_0x2393a6,_0xd96277);break;}case _0x494297['RemoveColCommandId']:{_0x2cda26=_0x3e4b3b(_0x2393a6,_0xd96277);break;}case _0x494297[_0x24f3e3(0x2d3)]:{_0x2cda26=_0x46ec99(_0x2393a6,_0xd96277);break;}}const _0x3dda6e=_0x4ca24b(_0x2cda26,_0xd96277),_0x8c9424=this[_0x24f3e3(0x310)][_0x24f3e3(0x184)](_0x32787a);if(_0x8c9424&&_0x3dda6e){const _0x313194={..._0x8c9424,'range':_0x3dda6e};this[_0x24f3e3(0x310)][_0x24f3e3(0x1f9)](_0x32787a,_0x313194),_0x2ac32d(()=>{const _0x276814=_0x24f3e3,_0x3b34e8=this[_0x276814(0x364)][_0x276814(0x1d9)](_0x3dda6e,_0x2c229b=>(_0x3b34e8[_0x276814(0x2e1)](),_0x5903bb(_0x2c229b,_0x32787a,_0x259a06,_0x3dda6e)));_0x550189[_0x276814(0x176)](_0x3b34e8);});}return{'redos':[],'undos':[]};};this[_0x2fd787(0x310)][_0x2fd787(0x32f)]((_0xc793ff,_0x3a0b2b)=>{const _0x578b47=_0x2fd787,{range:_0x2c7a07,sheetID:_0x532b90}=_0xc793ff,_0x5c48f5=this[_0x578b47(0x364)]['registerRefRange'](_0x2c7a07,_0x107e50=>(_0x5c48f5[_0x578b47(0x2e1)](),_0x5903bb(_0x107e50,_0x3a0b2b,_0x532b90,_0x2c7a07)));_0x550189[_0x578b47(0x176)](_0x5c48f5);});};this[_0x37b003(0x1f0)](_0x3640fe(this[_0x37b003(0x145)][_0x37b003(0x190)](()=>{_0x1b1351();})));}[_0x2234f4(0x1e9)](){const _0x1073ac=_0x2234f4;var _0x45cfd8,_0x3c04f0;if(this[_0x1073ac(0x1f7)]=!0x0,((_0x45cfd8=this['_univerInstanceService'][_0x1073ac(0x367)]())==null?void 0x0:_0x45cfd8['getUnitId']())!==this[_0x1073ac(0x298)])return;const _0x3413f1=(_0x3c04f0=this[_0x1073ac(0x1e1)][_0x1073ac(0x184)](_0x72d1aa)[_0x1073ac(0x269)]())==null?void 0x0:_0x3c04f0[0x0],_0xbf2227=this[_0x1073ac(0x275)]['getCurrentUnitForType'](_0x5722a6[_0x1073ac(0x372)])['getActiveSheet']();_0x3413f1&&_0xbf2227&&this[_0x1073ac(0x330)](_0xbf2227['getSheetId'](),_0x3413f1);}['_toggleOffline'](){const _0x392186=_0x2234f4;this[_0x392186(0x1f7)]=!0x1;}};Be=Bi([B(0x2,_0xd1a258(_0x4075d0)),B(0x3,_0xd1a258(Ke)),B(0x4,_0xd1a258(_0x4eca94)),B(0x5,_0x717147),B(0x6,_0xe14216),B(0x7,_0xd1a258(_0x13933c))],Be);var Yi=Object['getOwnPropertyDescriptor'],Wi=(_0x14fc7c,_0x278808,_0x4d1fdc,_0x54b265)=>{const _0x3b8cfc=_0x2234f4;for(var _0x10e5be=_0x54b265>0x1?void 0x0:_0x54b265?Yi(_0x278808,_0x4d1fdc):_0x278808,_0x4d7306=_0x14fc7c[_0x3b8cfc(0x31d)]-0x1,_0x4d6c02;_0x4d7306>=0x0;_0x4d7306--)(_0x4d6c02=_0x14fc7c[_0x4d7306])&&(_0x10e5be=_0x4d6c02(_0x10e5be)||_0x10e5be);return _0x10e5be;},Ce=(_0x3916b5,_0x536d7)=>(_0x5b4b44,_0x54fa89)=>_0x536d7(_0x5b4b44,_0x54fa89,_0x3916b5);let H=class extends _0x2f4832{constructor(_0x146524,_0x4b4d12,_0x347682){const _0x6b79e6=_0x2234f4;super(),_(this,_0x6b79e6(0x2bd),new Map()),_(this,_0x6b79e6(0x26f),new _0x5307ea()),(this['_univerInstanceService']=_0x146524,this['_injector']=_0x4b4d12,this[_0x6b79e6(0x37c)]=_0x347682,this['_init']());}['dispose'](){const _0x235d62=_0x2234f4;super['dispose'](),this[_0x235d62(0x26f)][_0x235d62(0x162)](),this[_0x235d62(0x2bd)][_0x235d62(0x32f)](_0x570387=>_0x570387['dispose']());}[_0x2234f4(0x2fc)](_0x2bc121){const _0x218e5f=_0x2234f4;return this[_0x218e5f(0x2bd)][_0x218e5f(0x30c)](_0x2bc121)?this[_0x218e5f(0x2bd)][_0x218e5f(0x184)](_0x2bc121)[_0x218e5f(0x358)]:this['_entityInit$'][_0x218e5f(0x277)](_0x29bcb5(_0x79dea7=>_0x79dea7[_0x218e5f(0x298)]===_0x2bc121),_0xa5b9ec(_0x274ca0=>_0x274ca0['cursorInfo$']));}[_0x2234f4(0x1b5)](){const _0x205a55=_0x2234f4;this[_0x205a55(0x275)][_0x205a55(0x211)](_0x5722a6[_0x205a55(0x372)])[_0x205a55(0x277)](_0x49b716(this[_0x205a55(0x1cd)]))['subscribe'](async _0x5ee452=>{const _0x1f7694=_0x205a55,_0x7b7499=_0x5ee452[_0x1f7694(0x26e)](),_0x14af9e=await this[_0x1f7694(0x1af)](_0x7b7499);this['_entityInit$']['next'](_0x14af9e),this[_0x1f7694(0x2bd)][_0x1f7694(0x1f9)](_0x7b7499,_0x14af9e);}),this[_0x205a55(0x275)][_0x205a55(0x211)](_0x5722a6[_0x205a55(0x166)])[_0x205a55(0x277)](_0x49b716(this['dispose$']))[_0x205a55(0x277)](_0x29bcb5(_0x47e09b=>!_0x47e09b['getUnitId']()[_0x205a55(0x20e)]('__')))['subscribe'](async _0x42c41c=>{const _0x1381c7=_0x205a55,_0x3ec3e0=_0x42c41c[_0x1381c7(0x26e)](),_0x22cf07=await this[_0x1381c7(0x2f9)](_0x3ec3e0);this[_0x1381c7(0x26f)][_0x1381c7(0x37e)](_0x22cf07),this[_0x1381c7(0x2bd)][_0x1381c7(0x1f9)](_0x3ec3e0,_0x22cf07);}),_0x2da9e0(this['_univerInstanceService'][_0x205a55(0x1b1)](_0x5722a6['UNIVER_DOC']),this[_0x205a55(0x275)][_0x205a55(0x1b1)](_0x5722a6[_0x205a55(0x372)]))[_0x205a55(0x277)](_0x49b716(this['dispose$']))[_0x205a55(0x190)](_0x1e2107=>{const _0x5c5bee=_0x205a55,_0x318a4a=_0x1e2107[_0x5c5bee(0x26e)](),_0x660abd=this[_0x5c5bee(0x2bd)][_0x5c5bee(0x184)](_0x318a4a);_0x660abd&&(_0x660abd[_0x5c5bee(0x2e1)](),this[_0x5c5bee(0x2bd)][_0x5c5bee(0x304)](_0x318a4a));});}async['_startSheetCollabCursor'](_0x317724){const _0x5eaf66=_0x2234f4,_0x47367e=await this[_0x5eaf66(0x37c)][_0x5eaf66(0x213)](_0x317724),_0x364722=this[_0x5eaf66(0x1e1)][_0x5eaf66(0x349)](Be,_0x317724,_0x47367e);return _0x364722[_0x5eaf66(0x21f)](),_0x364722;}async[_0x2234f4(0x2f9)](_0x394aed){const _0x2b9115=_0x2234f4,_0x467ffe=await this['_collabSessionService'][_0x2b9115(0x213)](_0x394aed),_0x485acf=this[_0x2b9115(0x1e1)][_0x2b9115(0x349)](xe,_0x394aed,_0x467ffe);return _0x485acf['init'](),_0x485acf;}};H=Wi([Ce(0x0,_0x717147),Ce(0x1,_0xd1a258(_0x4075d0)),Ce(0x2,_0xd1a258(_0x7164ac))],H);const Q=0x14,at=0xc8,Re=0x4,Vi=0x5;function ji(_0x3d1632,_0x10a6a6){const _0x36a16e=_0x2234f4;let {radius:_0x2e282c,width:_0x4c7c9b,height:_0x20af8e}=_0x10a6a6;_0x2e282c=_0x2e282c!=null?_0x2e282c:0x0,_0x4c7c9b=_0x4c7c9b!=null?_0x4c7c9b:0x1e,_0x20af8e=_0x20af8e!=null?_0x20af8e:0x1e;let _0x3d3bae=0x0,_0x2bd798=0x0,_0x1ad2b2=0x0;_0x3d3bae=_0x2bd798=_0x1ad2b2=Math['min'](_0x2e282c,_0x4c7c9b/0x2,_0x20af8e/0x2),_0x3d1632[_0x36a16e(0x28b)](),_0x3d1632['moveTo'](_0x3d3bae,0x0),_0x3d1632[_0x36a16e(0x2bc)](_0x4c7c9b-_0x2bd798,0x0),_0x3d1632[_0x36a16e(0x1c7)](_0x4c7c9b-_0x2bd798,_0x2bd798,_0x2bd798,Math['PI']*0x3/0x2,0x0,!0x1),_0x3d1632[_0x36a16e(0x2bc)](_0x4c7c9b,_0x20af8e-_0x1ad2b2),_0x3d1632[_0x36a16e(0x1c7)](_0x4c7c9b-_0x1ad2b2,_0x20af8e-_0x1ad2b2,_0x1ad2b2,0x0,Math['PI']/0x2,!0x1),_0x3d1632[_0x36a16e(0x2bc)](0x0,_0x20af8e),_0x3d1632[_0x36a16e(0x2bc)](0x0,_0x3d3bae),_0x3d1632['arc'](_0x3d3bae,_0x3d3bae,_0x3d3bae,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3d1632[_0x36a16e(0x321)](),_0x10a6a6[_0x36a16e(0x198)]&&(_0x3d1632['save'](),_0x3d1632['fillStyle']=_0x10a6a6[_0x36a16e(0x198)],_0x10a6a6[_0x36a16e(0x20a)]==='evenodd'?_0x3d1632[_0x36a16e(0x198)](_0x36a16e(0x147)):_0x3d1632[_0x36a16e(0x198)](),_0x3d1632[_0x36a16e(0x336)]());}class ve extends _0x7274bf{constructor(_0x40afd4,_0x18288e){const _0x29b14d=_0x2234f4;super(_0x40afd4,_0x18288e),_(this,_0x29b14d(0x24e)),_(this,_0x29b14d(0x263)),(this['color']=_0x18288e==null?void 0x0:_0x18288e['color'],this[_0x29b14d(0x263)]=_0x18288e==null?void 0x0:_0x18288e[_0x29b14d(0x263)]);}static[_0x2234f4(0x151)](_0x504e0c,_0x5947fb){const _0x445713=_0x2234f4,{text:_0x2b8421,color:_0xc95d7e}=_0x5947fb;_0x504e0c[_0x445713(0x28f)](),_0x504e0c['font']=_0x445713(0x38e);const _0x5e4d9f=_0x504e0c[_0x445713(0x1f5)](_0x2b8421)[_0x445713(0x16a)],_0x49cd7b=Math['min'](_0x5e4d9f+0x2*Re,at);ji(_0x504e0c,{'height':Q,'radius':0x4,'width':_0x49cd7b,'fill':_0xc95d7e}),_0x504e0c[_0x445713(0x195)]=_0x445713(0x204);const _0x1954e8=Re,_0xab382f=Q-Vi,_0x58f599=at-0x2*Re;if(_0x5e4d9f>_0x58f599){let _0x3fc864='',_0x30e060=0x0;for(const _0x4888e5 of _0x2b8421){const _0x24907e=_0x504e0c[_0x445713(0x1f5)](_0x4888e5)[_0x445713(0x16a)];if(_0x30e060+_0x24907e<=_0x58f599-_0x504e0c[_0x445713(0x1f5)](_0x445713(0x1bd))[_0x445713(0x16a)])_0x3fc864+=_0x4888e5,_0x30e060+=_0x24907e;else{_0x3fc864+='...';break;}}_0x504e0c[_0x445713(0x1f2)](_0x3fc864,_0x1954e8,_0xab382f);}else _0x504e0c[_0x445713(0x1f2)](_0x2b8421,_0x1954e8,_0xab382f);_0x504e0c[_0x445713(0x336)]();}[_0x2234f4(0x326)](_0xcc029c){ve['drawWith'](_0xcc029c,this);}}const De=_0x2234f4(0x257),Xi='collab-text-range-',Gi=_0x2234f4(0x256),z=0x6,Ki=1.5,Ne=0x4,zi=1.5,Ji='rgba(255,\x20255,\x20255,\x200.01)';class ct{constructor(_0x22641f,_0x1e1b3c,_0x4f36b3,_0x15f2bb){const _0x30d021=_0x2234f4;_(this,_0x30d021(0x1b0),[]),_(this,'_anchor',null),_(this,_0x30d021(0x14a),null),_(this,'_anchorDot',null),_(this,'_hideTimer',null),_(this,_0x30d021(0x1cf),null),(this['_cursor']=_0x22641f,this[_0x30d021(0x35b)]=_0x1e1b3c,this[_0x30d021(0x261)]=_0x4f36b3,this[_0x30d021(0x2f2)]=_0x15f2bb,this[_0x30d021(0x1ba)]());}set['_hover'](_0x169942){const _0x1e463a=_0x2234f4;_0x169942?(this[_0x1e463a(0x2e5)]&&this[_0x1e463a(0x2e5)]['hide'](),this[_0x1e463a(0x14a)]&&this['_textBubble'][_0x1e463a(0x2b2)]()):(this[_0x1e463a(0x2e5)]&&this['_anchorDot']['show'](),this[_0x1e463a(0x14a)]&&this[_0x1e463a(0x14a)][_0x1e463a(0x18c)]());}[_0x2234f4(0x2e1)](){const _0xa7ad9e=_0x2234f4;for(const _0x9c8e4e of this[_0xa7ad9e(0x1b0)])_0x9c8e4e['dispose']();this[_0xa7ad9e(0x14a)]&&this[_0xa7ad9e(0x14a)][_0xa7ad9e(0x2e1)](),this['_anchorDot']&&this['_anchorDot'][_0xa7ad9e(0x2e1)](),this[_0xa7ad9e(0x306)]&&this[_0xa7ad9e(0x306)][_0xa7ad9e(0x2e1)](),this['_eventUnsubscribe']&&this['_eventUnsubscribe']();}[_0x2234f4(0x1ba)](){const _0x254812=_0x2234f4;var _0xde2000;const {_docSkeleton:_0x1f681d,_document:_0x55e694}=this,{color:_0x3834f2,name:_0x44e66c,ranges:_0x3e3ec5}=this[_0x254812(0x33b)],_0x57c3f1=_0x55e694[_0x254812(0x340)](),{docsLeft:_0x4c5234,docsTop:_0x10807e}=_0x57c3f1,_0x53261c=new _0x206233(_0x57c3f1,_0x1f681d);for(const {startOffset:_0x3bcfb6,endOffset:_0x23f36d,rangeType:_0x2eff3f,segmentId:_0x3c67d2,segmentPage:_0x201006,collapsed:_0x45b0e8,isActive:_0x142d8a}of _0x3e3ec5){const _0x15df1b=_0x1f681d['findNodePositionByCharIndex'](_0x3bcfb6,!0x0,_0x3c67d2,_0x201006);let _0x459d02=_0x1f681d[_0x254812(0x25b)](_0x23f36d,!0x0,_0x3c67d2,_0x201006);if(_0x459d02==null&&(_0x459d02=_0x1f681d['findNodePositionByCharIndex'](_0x23f36d-0x1,!0x1,_0x3c67d2,_0x201006)),_0x142d8a){const {contentBoxPointGroup:_0x40f0af}=_0x53261c['getRangePointData'](_0x459d02,_0x459d02);if(_0x40f0af['length']===0x0)continue;this[_0x254812(0x1bb)](_0x3834f2,_0x40f0af,_0x4c5234,_0x10807e,_0x44e66c),this[_0x254812(0x1cf)]=this[_0x254812(0x21e)]();}if(_0x15df1b&&_0x459d02){if(_0x2eff3f===_0x5bc3df[_0x254812(0x388)]){const _0x56ab3a=new _0x3d6ec8(_0x57c3f1,_0x1f681d),{pointGroup:_0x3010b1}=(_0xde2000=_0x56ab3a['getRangePointData'](_0x15df1b,_0x459d02))!=null?_0xde2000:{};if(_0x3010b1==null||_0x3010b1['length']===0x0)continue;this[_0x254812(0x2da)](_0x3834f2,_0x3010b1,_0x4c5234,_0x10807e);}else{if(!_0x45b0e8){const {borderBoxPointGroup:_0xebb63c}=_0x53261c['getRangePointData'](_0x15df1b,_0x459d02);if(_0xebb63c[_0x254812(0x31d)]===0x0)continue;this[_0x254812(0x273)](_0x3834f2,_0xebb63c,_0x4c5234,_0x10807e);}}}}}['_drawAnchor'](_0x476ad2,_0x3631de,_0x1968d7,_0x2fad03,_0x26349a){const _0x4b56dc=_0x2234f4,_0x27ee03=this[_0x4b56dc(0x22d)](_0x3631de),{left:_0x5a0933,top:_0x358e9d,height:_0x4a3e38}=_0x27ee03,_0x1d2b7a=this[_0x4b56dc(0x20b)](),_0x20e99b=zi/_0x1d2b7a,_0x22e740=new _0x412f0f(De+_0x29e4dc(z),{'left':_0x5a0933+_0x1968d7-_0x20e99b,'top':_0x358e9d+_0x2fad03,'height':_0x4a3e38,'width':Ki,'fill':_0x476ad2||_0x5da4d8(_0x5c9a54[_0x4b56dc(0x2e2)],0x0),'strokeWidth':_0x20e99b,'stroke':Ji,'evented':!0x0});this[_0x4b56dc(0x306)]=_0x22e740,this[_0x4b56dc(0x35b)][_0x4b56dc(0x167)](_0x22e740,_0xf3ffb1);const _0x4e6853=new _0x412f0f(De+_0x29e4dc(z),{'left':_0x5a0933+_0x1968d7-_0x20e99b,'top':_0x358e9d+_0x2fad03-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x476ad2||_0x5da4d8(_0x5c9a54[_0x4b56dc(0x2e2)],0x0),'strokeWidth':0x0,'stroke':_0x476ad2||_0x5da4d8(_0x5c9a54[_0x4b56dc(0x2e2)],0x0),'evented':!0x1});this[_0x4b56dc(0x2e5)]=_0x4e6853,this['_scene']['addObject'](_0x4e6853,_0xf3ffb1);const _0x3d4049=new ve(De+_0x29e4dc(z),{'left':_0x5a0933+_0x1968d7-_0x20e99b,'top':_0x358e9d+_0x2fad03-Q,'text':_0x26349a,'color':_0x476ad2});this[_0x4b56dc(0x14a)]=_0x3d4049,this[_0x4b56dc(0x35b)]['addObject'](_0x3d4049,_0xf3ffb1),this[_0x4b56dc(0x297)]=!0x1;}[_0x2234f4(0x21e)](){const _0x5c5e5e=_0x2234f4,_0x39e238=this[_0x5c5e5e(0x306)][_0x5c5e5e(0x300)]['subscribeEvent'](()=>{this['_hover']=!0x0;}),_0x28c98a=this['_anchor'][_0x5c5e5e(0x188)]['subscribeEvent'](()=>{const _0x5aee06=_0x5c5e5e;this[_0x5aee06(0x331)]&&clearTimeout(this[_0x5aee06(0x331)]),this[_0x5aee06(0x331)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x42a523=_0x5c5e5e;_0x39e238['unsubscribe'](),_0x28c98a[_0x42a523(0x34c)]();};}[_0x2234f4(0x273)](_0x3db0bb,_0x28fba5,_0x121bc2,_0x441b0f){const _0x56b283=_0x2234f4,_0x356317=new _0x4dd5d8(_0x3db0bb)['setAlpha'](0.2)[_0x56b283(0x227)](),_0xcb1572=new _0x1f3457(Xi+_0x29e4dc(z),{'pointsGroup':_0x28fba5,'fill':_0x356317||_0x5da4d8(_0x5c9a54[_0x56b283(0x2e2)],0.2),'left':_0x121bc2,'top':_0x441b0f,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x56b283(0x1b0)][_0x56b283(0x2ad)](_0xcb1572),this[_0x56b283(0x35b)][_0x56b283(0x167)](_0xcb1572,_0xf3ffb1);}[_0x2234f4(0x2da)](_0x32ef9f,_0x97e834,_0x599708,_0x1047e7){const _0x4c9414=_0x2234f4,_0x47101a=new _0x4dd5d8(_0x32ef9f)[_0x4c9414(0x363)](0.2)[_0x4c9414(0x227)](),_0x558c65=new _0x1f3457(Gi+_0x29e4dc(z),{'pointsGroup':_0x97e834,'fill':_0x47101a||_0x5da4d8(_0x5c9a54[_0x4c9414(0x2e2)],0.2),'left':_0x599708,'top':_0x1047e7,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4c9414(0x1b0)][_0x4c9414(0x2ad)](_0x558c65),this[_0x4c9414(0x35b)][_0x4c9414(0x167)](_0x558c65,_0xf3ffb1);}[_0x2234f4(0x22d)](_0x56b44a){const _0x525048=_0x56b44a[0x0],_0x2ffa34=_0x525048[0x0],_0xca5769=_0x525048[0x2],{x:_0x8183b1,y:_0x4f14e9}=_0x2ffa34,{x:_0xa1ca7b,y:_0x11ad6c}=_0xca5769;return{'left':_0x8183b1,'top':_0x4f14e9,'width':_0xa1ca7b-_0x8183b1,'height':_0x11ad6c-_0x4f14e9};}['_getScale'](){const _0x4ddb2a=_0x2234f4,{scaleX:_0x570750,scaleY:_0x23fea9}=this[_0x4ddb2a(0x35b)][_0x4ddb2a(0x232)]();return Math[_0x4ddb2a(0x235)](_0x570750,_0x23fea9);}}var Zi=Object[_0x2234f4(0x378)],Qi=(_0x1d99a0,_0x49825c,_0x357508,_0xc24b96)=>{const _0x40b10a=_0x2234f4;for(var _0x3acd21=_0xc24b96>0x1?void 0x0:_0xc24b96?Zi(_0x49825c,_0x357508):_0x49825c,_0x9f9e6a=_0x1d99a0[_0x40b10a(0x31d)]-0x1,_0x47e51c;_0x9f9e6a>=0x0;_0x9f9e6a--)(_0x47e51c=_0x1d99a0[_0x9f9e6a])&&(_0x3acd21=_0x47e51c(_0x3acd21)||_0x3acd21);return _0x3acd21;},ie=(_0x47a462,_0x2a2d1f)=>(_0x398d58,_0x5ef2c1)=>_0x2a2d1f(_0x398d58,_0x5ef2c1,_0x47a462);let Fe=class extends _0x2f4832{constructor(_0x4ec321,_0xf7a8e2,_0x812611,_0x8afd3a,_0x20135c){const _0x18dda6=_0x2234f4;super(),_(this,_0x18dda6(0x38a),[]),_(this,'_cursors',[]),(this[_0x18dda6(0x37b)]=_0x4ec321,this['_docSkeletonManagerService']=_0xf7a8e2,this[_0x18dda6(0x226)]=_0x812611,this[_0x18dda6(0x16f)]=_0x8afd3a,this[_0x18dda6(0x2ca)]=_0x20135c,this[_0x18dda6(0x1b5)]());}['_init'](){const _0x5be414=_0x2234f4,_0x2c33aa=this[_0x5be414(0x37b)][_0x5be414(0x215)],_0x59377c=this['_docSkeletonManagerService'];this[_0x5be414(0x1f0)](_0xc2e36([this[_0x5be414(0x226)][_0x5be414(0x2fc)](_0x2c33aa),this[_0x5be414(0x2ca)][_0x5be414(0x17c)]])[_0x5be414(0x277)](_0x20745(([_0x36a548,_0x33ce46])=>({'skeleton':_0x59377c[_0x5be414(0x344)](),'cursors':[..._0x36a548[_0x5be414(0x31b)]()][_0x5be414(0x28a)](_0x28fa44=>({..._0x28fa44,'color':this[_0x5be414(0x2ca)]['getColorFromTheme'](_0x28fa44[_0x5be414(0x24e)])}))})))[_0x5be414(0x190)](_0x133834=>{const _0x514eef=_0x5be414;if(this[_0x514eef(0x34d)](),_0x133834){const {skeleton:_0x56dc95,cursors:_0x3930d0}=_0x133834;this[_0x514eef(0x316)](_0x56dc95,_0x3930d0);}})),this[_0x5be414(0x22b)](),this[_0x5be414(0x255)]();}[_0x2234f4(0x316)](_0x22005d,_0x18c1d1){const _0x4a6b46=_0x2234f4,{scene:_0x58acf2,mainComponent:_0x4141a9}=this['_context'],_0x515d82=_0x18c1d1[_0x4a6b46(0x386)](_0x3e4f89=>new ct(_0x3e4f89,_0x58acf2,_0x22005d,_0x4141a9));this[_0x4a6b46(0x38a)]=_0x515d82,this[_0x4a6b46(0x2b9)]=_0x18c1d1;}[_0x2234f4(0x265)](){const _0xe9a222=_0x2234f4;this['_removeCollabCursors']();const {scene:_0xea7de4,mainComponent:_0x58b022}=this[_0xe9a222(0x37b)],_0x214331=this['_docSkeletonManagerService'][_0xe9a222(0x344)](),_0xfa6019=this[_0xe9a222(0x2b9)][_0xe9a222(0x386)](_0x5dc66b=>new ct(_0x5dc66b,_0xea7de4,_0x214331,_0x58b022));this['_cursorShapes']=_0xfa6019;}[_0x2234f4(0x34d)](){const _0x1da866=_0x2234f4;this['_cursorShapes']['forEach'](_0x36940f=>_0x36940f['dispose']()),this[_0x1da866(0x38a)]=[];}[_0x2234f4(0x255)](){const _0x2b84e8=_0x2234f4,_0xcd9582=[_0x449456['id']];this[_0x2b84e8(0x1f0)](this[_0x2b84e8(0x16f)][_0x2b84e8(0x2a0)](_0x5f3776=>{const _0x394dea=_0x2b84e8;_0xcd9582[_0x394dea(0x38d)](_0x5f3776['id'])&&_0x5f3776[_0x394dea(0x22e)][_0x394dea(0x215)]===this[_0x394dea(0x37b)][_0x394dea(0x215)]&&this[_0x394dea(0x265)]();}));}[_0x2234f4(0x22b)](){const _0x1a212c=_0x2234f4;this['disposeWithMe'](_0x260481(this['_context'][_0x1a212c(0x1a9)][_0x1a212c(0x1cb)])[_0x1a212c(0x277)](_0x38a933(_0xd4ef03=>_0xd4ef03[_0x1a212c(0x1f6)]===_0x5c7d16[_0x1a212c(0x287)]),_0x7a1734(0x10))[_0x1a212c(0x190)](()=>{this['_refreshCollabCursors']();}));}};Fe=Qi([ie(0x1,_0xd1a258(_0x6f3011)),ie(0x2,_0xd1a258(H)),ie(0x3,_0xe14216),ie(0x4,_0xd1a258(_0x58053e))],Fe);const qi=0x1,en=1.5;class tn extends _0x7274bf{constructor(_0x456b7b,_0x218b4b){const _0x210280=_0x2234f4;super(_0x456b7b,_0x218b4b),_(this,'_color'),_(this,_0x210280(0x308),!0x1),_(this,_0x210280(0x339)),_(this,_0x210280(0x163),''),_(this,_0x210280(0x19d),_0x210280(0x24c)),_(this,_0x210280(0x2c9)),(_0x218b4b&&this[_0x210280(0x21a)](_0x218b4b),this['onPointerEnter$'][_0x210280(0x2e6)](()=>this[_0x210280(0x21a)]({'hovered':!0x0})),this[_0x210280(0x188)][_0x210280(0x2e6)](()=>this[_0x210280(0x21a)]({'hovered':!0x1})));}[_0x2234f4(0x21a)](_0x1d58da){const _0x5523fd=_0x2234f4;var _0xd3535d,_0xe51ca7,_0x45a478,_0x2829a2,_0x3f7e72,_0x519ba9;this[_0x5523fd(0x36d)]=(_0xd3535d=_0x1d58da[_0x5523fd(0x24e)])!=null?_0xd3535d:this['_color'],this[_0x5523fd(0x308)]=(_0xe51ca7=_0x1d58da[_0x5523fd(0x1c3)])!=null?_0xe51ca7:this[_0x5523fd(0x308)],this['_range']=(_0x45a478=_0x1d58da[_0x5523fd(0x174)])!=null?_0x45a478:this[_0x5523fd(0x339)],this['_name']=(_0x2829a2=_0x1d58da[_0x5523fd(0x2f6)])!=null?_0x2829a2:this['_name'],this['_labelPosition']=(_0x3f7e72=_0x1d58da[_0x5523fd(0x1b7)])!=null?_0x3f7e72:this[_0x5523fd(0x19d)],this[_0x5523fd(0x2c9)]=(_0x519ba9=_0x1d58da[_0x5523fd(0x2e4)])!=null?_0x519ba9:this[_0x5523fd(0x2c9)],this[_0x5523fd(0x305)]({'width':_0x1d58da[_0x5523fd(0x16a)],'height':_0x1d58da[_0x5523fd(0x156)]});}['onMouseMove'](_0x8b13d3){const _0xcf2c66=_0x2234f4,{row:_0x34e3e5,column:_0x2710a0}=_0x8b13d3;if(_0x34e3e5>=this[_0xcf2c66(0x339)]['startRow']&&_0x34e3e5<=this[_0xcf2c66(0x339)]['endRow']&&_0x2710a0>=this[_0xcf2c66(0x339)][_0xcf2c66(0x2b1)]&&_0x2710a0<=this['_range'][_0xcf2c66(0x1c6)]){this[_0xcf2c66(0x21a)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x2234f4(0x346)](_0x18ae2b){return!0x1;}['_draw'](_0x53bde6){const _0x5e08a5=_0x2234f4;_0x412f0f[_0x5e08a5(0x151)](_0x53bde6,{'width':this[_0x5e08a5(0x16a)],'height':this[_0x5e08a5(0x156)],'strokeWidth':en,'stroke':this[_0x5e08a5(0x36d)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x5e08a5(0x308)]&&(_0x53bde6[_0x5e08a5(0x28f)](),_0x53bde6[_0x5e08a5(0x2d0)](0x1,0x0,0x0,0x1,this[_0x5e08a5(0x16a)],this[_0x5e08a5(0x19d)]===_0x5e08a5(0x2fe)?0x0:-Q),ve[_0x5e08a5(0x151)](_0x53bde6,{'text':this[_0x5e08a5(0x163)],'color':this['_color']}),_0x53bde6[_0x5e08a5(0x336)]());}}var sn=Object[_0x2234f4(0x378)],nn=(_0x4c2718,_0xfb915d,_0x3e5f88,_0x2ecdd6)=>{const _0x484519=_0x2234f4;for(var _0x5628c3=_0x2ecdd6>0x1?void 0x0:_0x2ecdd6?sn(_0xfb915d,_0x3e5f88):_0xfb915d,_0x15aba2=_0x4c2718[_0x484519(0x31d)]-0x1,_0x2d1535;_0x15aba2>=0x0;_0x15aba2--)(_0x2d1535=_0x4c2718[_0x15aba2])&&(_0x5628c3=_0x2d1535(_0x5628c3)||_0x5628c3);return _0x5628c3;},be=(_0x27b1ae,_0x4e5b6f)=>(_0x12c26b,_0x59890f)=>_0x4e5b6f(_0x12c26b,_0x59890f,_0x27b1ae);const rn=0x1389;let ke=class extends _0x2f4832{constructor(_0x409091,_0xafd73c,_0x28b70d,_0x5e88c8){const _0x326852=_0x2234f4;super(),_(this,_0x326852(0x2b9),new Set()),_(this,_0x326852(0x33a),null),(this[_0x326852(0x37b)]=_0x409091,this[_0x326852(0x1a5)]=_0xafd73c,this[_0x326852(0x226)]=_0x28b70d,this[_0x326852(0x2ca)]=_0x5e88c8,this[_0x326852(0x1b5)]());}[_0x2234f4(0x1b5)](){const _0x75ffec=_0x2234f4;this['_sheetSkeletonManagerService'][_0x75ffec(0x2ae)][_0x75ffec(0x277)](_0x5364bd(this[_0x75ffec(0x1cd)]),_0x384c74(_0x2f98da=>{const _0x4ae639=_0x75ffec;if(_0x2f98da){const _0x103391=_0x2f98da['sheetId'];return _0xc2e36(this['_collabCursorController'][_0x4ae639(0x2fc)](this[_0x4ae639(0x37b)][_0x4ae639(0x215)]),this[_0x4ae639(0x2ca)][_0x4ae639(0x17c)])[_0x4ae639(0x277)](_0x20745(([_0x1fd1c5,_0x26217b])=>{const _0x43ca3d=_0x4ae639,_0xfcd94b=new Map();return _0x1fd1c5[_0x43ca3d(0x32f)]((_0x8d6d60,_0x50862c)=>{const _0x48e853=_0x43ca3d;if(_0x8d6d60[_0x48e853(0x268)]===_0x103391){const _0x477754={..._0x8d6d60};_0x477754[_0x48e853(0x24e)]=this['_themeService']['getColorFromTheme'](_0x8d6d60[_0x48e853(0x24e)]),_0xfcd94b[_0x48e853(0x1f9)](_0x50862c,_0x477754);}}),{'skeleton':_0x2f98da,'cursors':_0xfcd94b};}));}return _0x472e7c({'skeleton':null,'cursors':new Map()});}))[_0x75ffec(0x190)](({skeleton:_0x4353fb,cursors:_0x4c474a})=>{const _0x523d07=_0x75ffec;this[_0x523d07(0x34d)](),_0x4353fb&&this[_0x523d07(0x316)](_0x4353fb,_0x4c474a);}),this[_0x75ffec(0x1a5)][_0x75ffec(0x2ae)][_0x75ffec(0x190)](_0x2c5e34=>{const _0x1f1402=_0x75ffec;if(_0x2c5e34==null)return;const {skeleton:_0x1b4010}=_0x2c5e34,{scene:_0x4f15c3}=this[_0x1f1402(0x37b)];_0x4f15c3[_0x1f1402(0x1c9)][_0x1f1402(0x2e6)](_0x4564b6(_0x24d68b=>{const _0x389577=_0x1f1402;var _0x3553db,_0x429765;const {offsetX:_0x42943b,offsetY:_0x5ce2a5}=_0x24d68b,{x:_0x30da6c,y:_0x1bb238}=_0x4f15c3[_0x389577(0x248)](_0x9fdc2[_0x389577(0x30f)]([_0x42943b,_0x5ce2a5])),{scaleX:_0x103874,scaleY:_0x5e32c2}=_0x4f15c3[_0x389577(0x232)](),_0x5cc77f=_0x4f15c3[_0x389577(0x2f7)](_0x3f9e69['VIEW_MAIN']),_0x401a1a=_0x4f15c3[_0x389577(0x1f3)](_0x9fdc2[_0x389577(0x30f)]([_0x30da6c,_0x1bb238]),_0x5cc77f),_0xaaff1c=_0x1b4010[_0x389577(0x370)](_0x42943b,_0x5ce2a5,_0x103874,_0x5e32c2,_0x401a1a);((_0x3553db=this[_0x389577(0x33a)])==null?void 0x0:_0x3553db[_0x389577(0x253)])===_0xaaff1c[_0x389577(0x253)]&&((_0x429765=this[_0x389577(0x33a)])==null?void 0x0:_0x429765['row'])===_0xaaff1c[_0x389577(0x270)]||this[_0x389577(0x2b9)][_0x389577(0x32f)](_0x369648=>{const _0x50b6a1=_0x389577;_0x369648[_0x50b6a1(0x2b6)](_0xaaff1c);});},0x64));});}['_updateCollabCursors'](_0x512c28,_0x2ee8c2){const _0x53996e=_0x2234f4;var _0x16a677;const _0x59d73d=(_0x16a677=this[_0x53996e(0x1a5)]['getCurrent']())==null?void 0x0:_0x16a677[_0x53996e(0x1e7)];if(!_0x59d73d)return;const _0x418df6=this[_0x53996e(0x2d2)]();if(!_0x418df6)return;this[_0x53996e(0x2b9)]['forEach'](_0x6f3175=>{const _0x264862=_0x53996e;_0x6f3175[_0x264862(0x225)]();});const {scene:_0x40c3ff}=_0x418df6,_0x72552b=on(Array[_0x53996e(0x34f)](_0x2ee8c2[_0x53996e(0x31b)]()))[_0x53996e(0x386)](_0x19ae83=>{const {color:_0x20f48d,range:_0xdf6ede,name:_0x44f4ec,selection:_0x533fff,sheetID:_0x5795a1}=_0x19ae83,{startColumn:_0x4d7662,startRow:_0x476f31,endColumn:_0x173d96,endRow:_0x51df9b}=_0xdf6ede,_0x4909d3=_0x253e23(_0x476f31,_0x4d7662,_0x40c3ff,_0x59d73d),_0x2d79a6=_0x253e23(_0x51df9b,_0x173d96,_0x40c3ff,_0x59d73d),{columnHeaderHeightAndMarginTop:_0x5e490b}=_0x59d73d,{startX:_0x38b910,startY:_0x2add09}=_0x4909d3,{endX:_0x32ccde,endY:_0x273eb4}=_0x2d79a6,_0x1dc926=_0x32ccde-_0x38b910,_0x5546d9=_0x273eb4-_0x2add09,_0xc96531={'labelPosition':_0x2add09-_0x5e490b>=Q?'top':'bottom','sheetID':_0x5795a1,'range':_0xdf6ede,'color':_0x20f48d,'name':_0x44f4ec,'selection':_0x533fff,'left':_0x38b910,'top':_0x2add09,'width':_0x1dc926,'height':_0x5546d9,'evented':!0x1,'zIndex':rn};return new tn(_0x44f4ec,_0xc96531);});_0x40c3ff[_0x53996e(0x375)](_0x72552b,qi),this[_0x53996e(0x2b9)]=new Set(_0x72552b);}[_0x2234f4(0x34d)](){const _0x437ee3=_0x2234f4;var _0x1655da;(_0x1655da=this[_0x437ee3(0x2b9)])==null||_0x1655da[_0x437ee3(0x32f)](_0x2e6b86=>_0x2e6b86['dispose']());}[_0x2234f4(0x2d2)](){const _0x198c38=_0x2234f4;return _0x5bbea2(this[_0x198c38(0x37b)][_0x198c38(0x283)],this[_0x198c38(0x37b)]);}};ke=nn([be(0x1,_0xd1a258(_0x43ba20)),be(0x2,_0xd1a258(H)),be(0x3,_0xd1a258(_0x58053e))],ke);function on(_0x1f2093){const _0x5a7949=_0x2234f4,_0x1e17bf=new Map();return _0x1f2093[_0x5a7949(0x32f)](_0x3f34a0=>{const _0x3f85d6=_0x5a7949;if(_0x1e17bf[_0x3f85d6(0x30c)](_0x3f34a0[_0x3f85d6(0x15f)])){const _0x3b46d3=_0x1e17bf[_0x3f85d6(0x184)](_0x3f34a0[_0x3f85d6(0x15f)]);_0x3b46d3['name']+=',\x20'+_0x3f34a0[_0x3f85d6(0x2f6)];}else _0x1e17bf[_0x3f85d6(0x1f9)](_0x3f34a0[_0x3f85d6(0x15f)],_0x3f34a0);}),Array['from'](_0x1e17bf[_0x5a7949(0x31b)]());}var an=Object['getOwnPropertyDescriptor'],cn=(_0x1dfd15,_0x1caaf0,_0x5e6c5d,_0x5d1da9)=>{const _0x3fb550=_0x2234f4;for(var _0x245990=_0x5d1da9>0x1?void 0x0:_0x5d1da9?an(_0x1caaf0,_0x5e6c5d):_0x1caaf0,_0x54eb01=_0x1dfd15[_0x3fb550(0x31d)]-0x1,_0x2af795;_0x54eb01>=0x0;_0x54eb01--)(_0x2af795=_0x1dfd15[_0x54eb01])&&(_0x245990=_0x2af795(_0x245990)||_0x245990);return _0x245990;},F=(_0x9f845e,_0x4ae64c)=>(_0x48b01c,_0x42d1a1)=>_0x4ae64c(_0x48b01c,_0x42d1a1,_0x9f845e);let _e=class extends _0x451219{constructor(_0x3bb9a5,_0x3dd1e5,_0x1eafda,_0x1b91b6,_0x15b075,_0x256a7e){const _0x3f0268=_0x2234f4;super(),this['_beforeCloseService']=_0x3bb9a5,this[_0x3f0268(0x158)]=_0x3dd1e5,this[_0x3f0268(0x2c0)]=_0x1eafda,this[_0x3f0268(0x196)]=_0x1b91b6,this['_notificationService']=_0x15b075,this[_0x3f0268(0x1ed)]=_0x256a7e,this[_0x3f0268(0x237)](),this['_initEvent']();}[_0x2234f4(0x237)](){const _0x50696c=_0x2234f4;this['disposeWithMe'](this[_0x50696c(0x187)]['registerBeforeClose'](()=>{const _0x351907=_0x50696c;if(this[_0x351907(0x158)][_0x351907(0x1a7)]['size'])return this[_0x351907(0x1ed)]['t'](_0x351907(0x168));}));}[_0x2234f4(0x1d1)](){const _0x3c731d=_0x2234f4;this[_0x3c731d(0x1f0)](this['_collaborationUIEventService']['event$'][_0x3c731d(0x190)](_0x129f60=>{const _0x3a8dda=_0x3c731d;_0x129f60['id']===_0x6c7f9c[_0x3a8dda(0x2c4)]&&this[_0x3a8dda(0x196)][_0x3a8dda(0x2b2)]({'type':_0x47fe57[_0x3a8dda(0x21c)],'content':this[_0x3a8dda(0x1ed)]['t'](_0x3a8dda(0x1c4))}),_0x129f60['id']===_0x6c7f9c[_0x3a8dda(0x19c)]&&this[_0x3a8dda(0x196)][_0x3a8dda(0x2b2)]({'type':_0x47fe57[_0x3a8dda(0x21c)],'content':this[_0x3a8dda(0x1ed)]['t'](_0x3a8dda(0x365))}),_0x129f60['id']===_0x6c7f9c[_0x3a8dda(0x31a)]&&this[_0x3a8dda(0x19f)][_0x3a8dda(0x2b2)]({'title':this['_localeService']['t']('permission.title'),'content':this['_localeService']['t'](_0x3a8dda(0x1a2)),'type':_0x3a8dda(0x197),'duration':0x0}),_0x129f60['id']===_0x6c7f9c[_0x3a8dda(0x1d6)]&&this['_messageService'][_0x3a8dda(0x2b2)]({'type':_0x47fe57[_0x3a8dda(0x27e)],'content':this[_0x3a8dda(0x1ed)]['t'](_0x3a8dda(0x365))+'('+_0x129f60['data']+')'}),_0x129f60['id']===_0x6c7f9c[_0x3a8dda(0x1eb)]&&this[_0x3a8dda(0x196)][_0x3a8dda(0x2b2)]({'type':_0x47fe57[_0x3a8dda(0x21c)],'content':this[_0x3a8dda(0x1ed)]['t'](_0x129f60[_0x3a8dda(0x2b4)]||'')}),_0x129f60['id']===_0x6c7f9c[_0x3a8dda(0x16d)]&&this[_0x3a8dda(0x196)]['show']({'type':_0x47fe57[_0x3a8dda(0x21c)],'content':this[_0x3a8dda(0x1ed)]['t']('session.will-retry')}),_0x129f60['id']===_0x6c7f9c[_0x3a8dda(0x276)]&&this['_messageService'][_0x3a8dda(0x2b2)]({'type':_0x47fe57[_0x3a8dda(0x27e)],'content':this['_localeService']['t'](_0x3a8dda(0x2fd))}),_0x129f60['id']===_0x6c7f9c[_0x3a8dda(0x249)]&&this['_messageService'][_0x3a8dda(0x2b2)]({'type':_0x47fe57[_0x3a8dda(0x27e)],'content':this[_0x3a8dda(0x1ed)]['t'](_0x3a8dda(0x31c))});}));}};_e=cn([F(0x0,_0x35fbb7),F(0x1,_0xcdb955),F(0x2,_0xd1a258(_0x40529c)),F(0x3,_0x1de295),F(0x4,_0x2a6254),F(0x5,_0xd1a258(_0x5c8592))],_e);var _n=Object[_0x2234f4(0x378)],ln=(_0x18f7fe,_0x2f5861,_0x3fe69b,_0x197d9f)=>{const _0x35df2f=_0x2234f4;for(var _0x46e2ef=_0x197d9f>0x1?void 0x0:_0x197d9f?_n(_0x2f5861,_0x3fe69b):_0x2f5861,_0x16de9=_0x18f7fe[_0x35df2f(0x31d)]-0x1,_0x1f186c;_0x16de9>=0x0;_0x16de9--)(_0x1f186c=_0x18f7fe[_0x16de9])&&(_0x46e2ef=_0x1f186c(_0x46e2ef)||_0x46e2ef);return _0x46e2ef;},ne=(_0x266f95,_0x593d48)=>(_0x17e298,_0x48ab21)=>_0x593d48(_0x17e298,_0x48ab21,_0x266f95);let le=class extends _0x451219{constructor(_0x12358c,_0x5d0cb1,_0x2eed4f,_0x2c317f){const _0x4dd154=_0x2234f4;super(),_(this,_0x4dd154(0x1dc)),(this[_0x4dd154(0x1e1)]=_0x12358c,this[_0x4dd154(0x327)]=_0x5d0cb1,this[_0x4dd154(0x21d)]=_0x2eed4f,this['_collaborationSessionService']=_0x2c317f,this['_init']());}[_0x2234f4(0x1b5)](){const _0x45f9b6=_0x2234f4;this[_0x45f9b6(0x2ef)](),this['_initUnhandledRejectionListener'](),this[_0x45f9b6(0x1cc)](),this[_0x45f9b6(0x140)]();}['_initUserListener'](){const _0x1a9e41=_0x2234f4;this[_0x1a9e41(0x1f0)](this[_0x1a9e41(0x356)][_0x1a9e41(0x282)]['subscribe'](_0x59448b=>{const _0x1ff661=_0x1a9e41;this[_0x1ff661(0x1dc)]=_0x59448b==null?void 0x0:_0x59448b['memberID'];}));}[_0x2234f4(0x2ef)](){const _0x15677e=_0x2234f4,_0x1e86e5=_0x30f31b=>{const _0x9b8cc2=_0x34ce;var _0x5d0e47;this[_0x9b8cc2(0x258)](_0x9b8cc2(0x197),_0x9b8cc2(0x2f4)+_0x30f31b['message']+_0x9b8cc2(0x285)+_0x30f31b[_0x9b8cc2(0x2de)]+':'+_0x30f31b[_0x9b8cc2(0x161)]+':'+_0x30f31b['colno']+'\x0a'+(((_0x5d0e47=_0x30f31b[_0x9b8cc2(0x197)])==null?void 0x0:_0x5d0e47[_0x9b8cc2(0x2c1)])||''));};window[_0x15677e(0x25d)]('error',_0x1e86e5),this[_0x15677e(0x1f0)](()=>{const _0x47f5c1=_0x15677e;window[_0x47f5c1(0x1fd)](_0x47f5c1(0x197),_0x1e86e5);});}[_0x2234f4(0x15a)](){const _0x27ecca=_0x2234f4,_0x4585f8=_0x207b8c=>{const _0xaeedf3=_0x34ce;this[_0xaeedf3(0x258)](_0xaeedf3(0x197),'[Unhandled\x20Rejection]:\x20'+_0x207b8c['reason']);};window[_0x27ecca(0x25d)](_0x27ecca(0x2c2),_0x4585f8),this[_0x27ecca(0x1f0)](()=>{const _0x598ce3=_0x27ecca;window[_0x598ce3(0x1fd)]('unhandledrejection',_0x4585f8);});}[_0x2234f4(0x1cc)](){const _0x194d86=_0x2234f4,_0x4ebc92=this[_0x194d86(0x21d)][_0x194d86(0x197)][_0x194d86(0x16e)](this[_0x194d86(0x21d)]);this[_0x194d86(0x21d)][_0x194d86(0x197)]=(..._0x41c516)=>{const _0x268441=_0x194d86,_0xa47259=_0x41c516['map'](_0x494ce0=>_0x494ce0 instanceof Error?_0x494ce0[_0x268441(0x35f)]+'\x0a'+_0x494ce0[_0x268441(0x2c1)]:String(_0x494ce0))['join']('\x20');this[_0x268441(0x258)](_0x268441(0x197),'[LogService\x20Error]:\x20'+_0xa47259),_0x4ebc92(..._0x41c516);},this[_0x194d86(0x1f0)](()=>{const _0x5c29bb=_0x194d86;this[_0x5c29bb(0x21d)][_0x5c29bb(0x197)]=_0x4ebc92;});}[_0x2234f4(0x258)](_0x5756d2,_0x3b181f){const _0xf60381=_0x2234f4;try{const _0x44bb90={'userId':this[_0xf60381(0x1dc)],'logLabel':_0x5756d2,'content':_0x3b181f};this[_0xf60381(0x327)][_0xf60381(0x2a5)](_0xf60381(0x159),{'body':_0x44bb90})[_0xf60381(0x1dd)](()=>{});}catch{}}};le=ln([ne(0x0,_0xd1a258(_0x4075d0)),ne(0x1,_0xd1a258(_0x185939)),ne(0x2,_0x5d513a),ne(0x3,_0xd1a258(_0x7164ac))],le);const hn=_0x2234f4(0x152),_t={};var un=Object[_0x2234f4(0x378)],dn=(_0x4757dd,_0x12c24c,_0x514cc6,_0x309f3f)=>{for(var _0x413cc1=_0x309f3f>0x1?void 0x0:_0x309f3f?un(_0x12c24c,_0x514cc6):_0x12c24c,_0x5a445d=_0x4757dd['length']-0x1,_0x15076c;_0x5a445d>=0x0;_0x5a445d--)(_0x15076c=_0x4757dd[_0x5a445d])&&(_0x413cc1=_0x15076c(_0x413cc1)||_0x413cc1);return _0x413cc1;},lt=(_0x1b339d,_0x51de78)=>(_0x881993,_0x52b196)=>_0x51de78(_0x881993,_0x52b196,_0x1b339d);let he=class{constructor(_0x499bc2,_0xc40d03){this['_transformService']=_0x499bc2,this['_renderManagerService']=_0xc40d03;}[_0x2234f4(0x17b)](_0x2c45c4){const _0x5e80a8=_0x2234f4;this[_0x5e80a8(0x2ba)](_0x2c45c4),this[_0x5e80a8(0x1a4)](_0x2c45c4);}[_0x2234f4(0x183)](_0x6f80a5){const _0x1eb830=_0x2234f4,{unitID:_0x1ee5d5}=_0x6f80a5,_0xb46b1b=this[_0x1eb830(0x36a)][_0x1eb830(0x2df)](_0x1ee5d5)[_0x1eb830(0x142)](_0x29a072),{redoCache:_0x4e371f}=_0xb46b1b[_0x1eb830(0x2cb)]();if(_0x4e371f[_0x1eb830(0x31d)]===0x0)return _0x6f80a5;let _0x4386c7=_0x8e5b3b[_0x1eb830(0x1d3)](_0x6f80a5[_0x1eb830(0x24d)][0x0]);for(let _0x42ece1=0x0;_0x42ece1<_0x4e371f[_0x1eb830(0x31d)];_0x42ece1++){const _0x4f6e3a={'id':_0x1eb830(0x37d),'params':{..._0x4e371f[_0x42ece1]}},_0x4c812f=this['_transformService']['transformMutation'](_0x4386c7,_0x4f6e3a,!0x1);if(_0x56152a(_0x4c812f))throw _0x4c812f[_0x1eb830(0x197)];_0x4386c7=_0x4c812f[_0x1eb830(0x2cc)];}return{..._0x8e5b3b[_0x1eb830(0x1d3)](_0x6f80a5),'mutations':[_0x4386c7]};}[_0x2234f4(0x2ba)](_0x20cc9a){const _0x347459=_0x2234f4,{unitID:_0x2d4d30}=_0x20cc9a,_0x2ceab0=this[_0x347459(0x36a)][_0x347459(0x2df)](_0x2d4d30)[_0x347459(0x142)](_0x29a072),{undoCache:_0x384edc,redoCache:_0x9a72ea}=_0x2ceab0[_0x347459(0x2cb)]();if(_0x384edc[_0x347459(0x31d)]===0x0||_0x9a72ea[_0x347459(0x31d)]===0x0)return;const _0x33b33a=[],_0x119277=[];let _0x8e5aa7=_0x8e5b3b[_0x347459(0x1d3)](_0x20cc9a['mutations'][0x0]),_0x19276b=_0x8e5b3b[_0x347459(0x1d3)](_0x20cc9a[_0x347459(0x24d)][0x0]);for(let _0x19551d=_0x384edc[_0x347459(0x31d)]-0x1;_0x19551d>=0x0;_0x19551d--){const _0x349085={'id':_0x347459(0x37d),'params':{..._0x384edc[_0x19551d]}},_0x4d0729={'id':'doc.mutation.rich-text-editing','params':{..._0x9a72ea[_0x19551d]}},_0x4b9a6a=this[_0x347459(0x1e6)]['transformMutation'](_0x8e5aa7,_0x349085,!0x1),_0x5b3e8a=this['_transformService'][_0x347459(0x1fe)](_0x19276b,_0x4d0729,!0x1);if(_0x56152a(_0x4b9a6a))throw _0x4b9a6a['error'];if(_0x56152a(_0x5b3e8a))throw _0x5b3e8a[_0x347459(0x197)];_0x33b33a['unshift'](_0x4b9a6a[_0x347459(0x32c)]['params']),_0x119277[_0x347459(0x193)](_0x5b3e8a['m2Prime']['params']),_0x8e5aa7=_0x4b9a6a[_0x347459(0x2cc)],_0x19276b=_0x5b3e8a['m1Prime'];}_0x2ceab0[_0x347459(0x21b)]({'undoCache':_0x33b33a,'redoCache':_0x119277});}[_0x2234f4(0x1a4)](_0x3ccd10){const _0x226a06=_0x2234f4,{unitID:_0x2cfaf2}=_0x3ccd10,_0x1322ce=this[_0x226a06(0x36a)][_0x226a06(0x2df)](_0x2cfaf2)[_0x226a06(0x142)](_0x29a072),_0x40501d=_0x1322ce[_0x226a06(0x2c6)]();if(_0x40501d==null)return;const _0x13fea8=[{'id':_0x226a06(0x37d),'params':{'unitId':_0x3ccd10['unitID'],'actions':null,'textRanges':[_0x40501d]}}],_0x389f55=this[_0x226a06(0x1e6)][_0x226a06(0x1ac)](_0x3ccd10,_0x13fea8);if(!_0x34ce1a(_0x389f55))throw _0x389f55[_0x226a06(0x197)];const _0x33e2b0=_0x389f55[_0x226a06(0x32c)][0x0][_0x226a06(0x22e)]['textRanges'];Array[_0x226a06(0x284)](_0x33e2b0)&&_0x33e2b0[_0x226a06(0x31d)]&&_0x1322ce[_0x226a06(0x2aa)](_0x33e2b0[0x0]);}};he=dn([lt(0x0,_0x494dd8),lt(0x1,_0x5a59d5)],he);var Sn=Object[_0x2234f4(0x378)],In=(_0x6f540c,_0x55a029,_0x44fd23,_0x249a99)=>{const _0x3f3029=_0x2234f4;for(var _0x52e444=_0x249a99>0x1?void 0x0:_0x249a99?Sn(_0x55a029,_0x44fd23):_0x55a029,_0xd22267=_0x6f540c[_0x3f3029(0x31d)]-0x1,_0x475c5a;_0xd22267>=0x0;_0xd22267--)(_0x475c5a=_0x6f540c[_0xd22267])&&(_0x52e444=_0x475c5a(_0x52e444)||_0x52e444);return _0x52e444;},Le=(_0x50116d,_0x19291f)=>(_0x12ea7d,_0xe76091)=>_0x19291f(_0x12ea7d,_0xe76091,_0x50116d);let ue=class{constructor(_0x91f868,_0x2fc569,_0x3a8bca){const _0x2ee87b=_0x2234f4;this['_injector']=_0x91f868,this[_0x2ee87b(0x1e6)]=_0x2fc569,this[_0x2ee87b(0x2db)]=_0x3a8bca;}[_0x2234f4(0x223)](_0x13e258){const _0x24ba74=_0x2234f4;this[_0x24ba74(0x30e)](_0x13e258);}[_0x2234f4(0x183)](_0xe809fb){const _0x3ce95c=_0x2234f4,{unitID:_0xbf2e69}=_0xe809fb,{collaboration:_0x2c3455}=this[_0x3ce95c(0x2db)][_0x3ce95c(0x1a0)](_0xbf2e69);if(_0x2c3455['length']===0x0)return _0xe809fb;let _0x11a769=_0x8e5b3b[_0x3ce95c(0x1d3)](_0xe809fb[_0x3ce95c(0x24d)][0x0]);for(let _0xffe3bb=0x0;_0xffe3bb<_0x2c3455[_0x3ce95c(0x31d)];_0xffe3bb++){const _0x5ef743={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2c3455[_0xffe3bb][_0x3ce95c(0x215)],..._0x2c3455[_0xffe3bb][_0x3ce95c(0x2d9)]}},_0x5559fe=this[_0x3ce95c(0x1e6)][_0x3ce95c(0x1fe)](_0x11a769,_0x5ef743,!0x1);if(_0x56152a(_0x5559fe))throw _0x5559fe[_0x3ce95c(0x197)];_0x11a769=_0x5559fe[_0x3ce95c(0x2cc)];}return{..._0x8e5b3b[_0x3ce95c(0x1d3)](_0xe809fb),'mutations':[_0x11a769]};}[_0x2234f4(0x30e)](_0x130f8f){const _0x1ac51b=_0x2234f4,{unitID:_0x3f876c}=_0x130f8f,{history:_0x1c5149,collaboration:_0xe30041}=this[_0x1ac51b(0x2db)][_0x1ac51b(0x1a0)](_0x3f876c);if(_0x1c5149['length']===0x0&&_0xe30041[_0x1ac51b(0x31d)]===0x0)return;const _0x3ef711=[],_0xea33bf=[];let _0x65781a=_0x8e5b3b[_0x1ac51b(0x1d3)](_0x130f8f[_0x1ac51b(0x24d)][0x0]),_0xc4bb9a=_0x8e5b3b[_0x1ac51b(0x1d3)](_0x130f8f[_0x1ac51b(0x24d)][0x0]);for(let _0x47dc9e=_0x1c5149[_0x1ac51b(0x31d)]-0x1;_0x47dc9e>=0x0;_0x47dc9e--){const _0x2d512d={'id':_0x1ac51b(0x37d),'params':{'unitId':_0x1c5149[_0x47dc9e][_0x1ac51b(0x215)],..._0x1c5149[_0x47dc9e]['undoState']}},_0x21fde5={'id':_0x1ac51b(0x37d),'params':{'unitId':_0x1c5149[_0x47dc9e][_0x1ac51b(0x215)],..._0x1c5149[_0x47dc9e][_0x1ac51b(0x2d9)]}},_0xb931d5=this['_transformService'][_0x1ac51b(0x1fe)](_0x65781a,_0x2d512d,!0x1),_0x3693d8=this[_0x1ac51b(0x1e6)][_0x1ac51b(0x1fe)](_0xc4bb9a,_0x21fde5,!0x1);if(_0x56152a(_0xb931d5))throw _0xb931d5[_0x1ac51b(0x197)];if(_0x56152a(_0x3693d8))throw _0x3693d8[_0x1ac51b(0x197)];_0x3ef711[_0x1ac51b(0x193)]({..._0x1c5149[_0x47dc9e],'undoState':_0xb931d5['m2Prime'][_0x1ac51b(0x22e)],'redoState':_0x3693d8[_0x1ac51b(0x32c)][_0x1ac51b(0x22e)]}),_0x65781a=_0xb931d5[_0x1ac51b(0x2cc)],_0xc4bb9a=_0x3693d8[_0x1ac51b(0x2cc)];}_0x65781a=_0x8e5b3b[_0x1ac51b(0x1d3)](_0x130f8f['mutations'][0x0]),_0xc4bb9a=_0x8e5b3b[_0x1ac51b(0x1d3)](_0x130f8f[_0x1ac51b(0x24d)][0x0]);for(let _0x54e88a=_0xe30041[_0x1ac51b(0x31d)]-0x1;_0x54e88a>=0x0;_0x54e88a--){const _0x5a301f={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xe30041[_0x54e88a][_0x1ac51b(0x215)],..._0xe30041[_0x54e88a][_0x1ac51b(0x1bf)]}},_0x3702b2={'id':_0x1ac51b(0x37d),'params':{'unitId':_0xe30041[_0x54e88a][_0x1ac51b(0x215)],..._0xe30041[_0x54e88a][_0x1ac51b(0x2d9)]}},_0x50fea7=this[_0x1ac51b(0x1e6)][_0x1ac51b(0x1fe)](_0x65781a,_0x5a301f,!0x1),_0x329159=this[_0x1ac51b(0x1e6)][_0x1ac51b(0x1fe)](_0xc4bb9a,_0x3702b2,!0x1);if(_0x56152a(_0x50fea7))throw _0x50fea7[_0x1ac51b(0x197)];if(_0x56152a(_0x329159))throw _0x329159[_0x1ac51b(0x197)];_0xea33bf[_0x1ac51b(0x193)]({..._0xe30041[_0x54e88a],'undoState':_0x50fea7[_0x1ac51b(0x32c)]['params'],'redoState':_0x329159['m2Prime'][_0x1ac51b(0x22e)]}),_0x65781a=_0x50fea7[_0x1ac51b(0x2cc)],_0xc4bb9a=_0x329159[_0x1ac51b(0x2cc)];}this[_0x1ac51b(0x2db)][_0x1ac51b(0x2d8)](_0x3f876c,{'history':_0x3ef711,'collaboration':_0xea33bf});}};ue=In([Le(0x0,_0xd1a258(_0x4075d0)),Le(0x1,_0x494dd8),Le(0x2,_0xd1a258(_0x569f77))],ue);var mn=Object[_0x2234f4(0x378)],fn=(_0x105915,_0xfd4526,_0x3e7d2,_0x24f703)=>{const _0x2e48a7=_0x2234f4;for(var _0x26cbdf=_0x24f703>0x1?void 0x0:_0x24f703?mn(_0xfd4526,_0x3e7d2):_0xfd4526,_0x2a1465=_0x105915[_0x2e48a7(0x31d)]-0x1,_0x3fd695;_0x2a1465>=0x0;_0x2a1465--)(_0x3fd695=_0x105915[_0x2a1465])&&(_0x26cbdf=_0x3fd695(_0x26cbdf)||_0x26cbdf);return _0x26cbdf;},ht=(_0x2e359e,_0x3198f8)=>(_0x3ff2a0,_0x3da6f6)=>_0x3198f8(_0x3ff2a0,_0x3da6f6,_0x2e359e);let de=class{constructor(_0x5add6e,_0x508064){const _0x4f14b4=_0x2234f4;this['_injector']=_0x5add6e,this[_0x4f14b4(0x1e6)]=_0x508064;}[_0x2234f4(0x260)](_0x32a9c5){const _0x5f54e1=_0x2234f4;var _0x17ee4d;const _0x1e1586=this[_0x5f54e1(0x1e1)][_0x5f54e1(0x184)](_0x121fc3),_0x4b949f=(_0x17ee4d=_0x1e1586[_0x5f54e1(0x2e8)]())!=null?_0x17ee4d:[];if(_0x4b949f[_0x5f54e1(0x31d)]===0x0)return;const _0x4e1150=_0x32a9c5[_0x5f54e1(0x298)],_0x53c5f0=[{'id':_0x5f54e1(0x37d),'params':{'unitId':_0x4e1150,'actions':null,'textRanges':_0x4b949f}}],_0x1f82f2=this[_0x5f54e1(0x1e6)]['transformMutationsWithChangeset'](_0x32a9c5,_0x53c5f0);if(!_0x34ce1a(_0x1f82f2))throw _0x1f82f2['error'];const _0x1408c9=_0x1f82f2[_0x5f54e1(0x32c)][0x0]['params'][_0x5f54e1(0x382)];Array['isArray'](_0x1408c9)&&_0x1408c9['length']&&_0x1e1586['replaceDocRanges'](_0x1408c9,{'unitId':_0x4e1150,'subUnitId':_0x4e1150},!0x1);}};de=fn([ht(0x0,_0xd1a258(_0x4075d0)),ht(0x1,_0x494dd8)],de);var gn=Object[_0x2234f4(0x378)],En=(_0x353647,_0x14dca9,_0x411958,_0x2dd93d)=>{const _0x2b10d2=_0x2234f4;for(var _0x1921ad=_0x2dd93d>0x1?void 0x0:_0x2dd93d?gn(_0x14dca9,_0x411958):_0x14dca9,_0x4a4f68=_0x353647[_0x2b10d2(0x31d)]-0x1,_0x31649c;_0x4a4f68>=0x0;_0x4a4f68--)(_0x31649c=_0x353647[_0x4a4f68])&&(_0x1921ad=_0x31649c(_0x1921ad)||_0x1921ad);return _0x1921ad;},U=(_0x4b3a03,_0x92940c)=>(_0x2257a2,_0xfb511e)=>_0x92940c(_0x2257a2,_0xfb511e,_0x4b3a03);let Se=class extends _0x451219{constructor(_0x479a7b,_0x374655,_0x55406e,_0x580ad5,_0xd37150,_0x42efe4,_0x2c1963,_0x35ca30){const _0x4fe305=_0x2234f4;super(),_(this,_0x4fe305(0x153),new _0x40aa62(_0x27f566[_0x4fe305(0x164)])),(this[_0x4fe305(0x2db)]=_0x479a7b,this['_collaborationController']=_0x374655,this[_0x4fe305(0x192)]=_0x55406e,this['_docTransformStateCacheService']=_0x580ad5,this[_0x4fe305(0x307)]=_0xd37150,this[_0x4fe305(0x1c2)]=_0x42efe4,this[_0x4fe305(0x196)]=_0x2c1963,this[_0x4fe305(0x1ed)]=_0x35ca30,this['_initEntityListener']());}[_0x2234f4(0x362)](){const _0x4049f9=_0x2234f4;this[_0x4049f9(0x1f0)](this[_0x4049f9(0x191)][_0x4049f9(0x2dc)][_0x4049f9(0x190)](_0xb35328=>{const _0x416acd=_0x4049f9,_0x2f964a=this[_0x416acd(0x2db)]['docStateChange$'][_0x416acd(0x190)](_0x1d603d=>{const _0x3067ef=_0x416acd;if(_0x1d603d==null)return;const {unitId:_0x53bc8e,redoState:_0x254cbe,commandId:_0x1f1515}=_0x1d603d;if(_0x53bc8e!==_0xb35328[_0x3067ef(0x298)])return;const _0x58150e={'id':_0x1f1515,'type':_0x5c096d[_0x3067ef(0x2b5)],'params':{'unitId':_0x53bc8e,'actions':_0x254cbe[_0x3067ef(0x15c)],'textRanges':null}};_0xb35328['onLocalMutation'](_0x58150e);});if(_0xb35328[_0x416acd(0x1f0)](_0x2f964a),_0xb35328 instanceof _0x301172){const _0x3271a2={'onTransformIME':_0x2f5ca7=>this['_docTransformIMECacheService'][_0x416acd(0x17b)](_0x2f5ca7),'onTransformState':_0x341993=>this[_0x416acd(0x219)][_0x416acd(0x223)](_0x341993),'onTransformSelections':_0x599655=>this['_docTransformSelectionsService'][_0x416acd(0x260)](_0x599655),'onSyncEditingCollabCursor':_0x2ccbb8=>this[_0x416acd(0x1c2)][_0x416acd(0x337)](_0x2ccbb8),'onTransformRemoteChangesetByIMECache':_0x2473d2=>this[_0x416acd(0x192)]['transformRemoteChangeset'](_0x2473d2),'onTransformRemoteChangesetByStateCache':_0x11549a=>this[_0x416acd(0x219)][_0x416acd(0x183)](_0x11549a)};_0xb35328['addHandlerCallback'](_0x3271a2);}}));}};Se=En([U(0x0,_0xd1a258(_0x569f77)),U(0x1,_0xd1a258(_0x54f68d)),U(0x2,_0xd1a258(he)),U(0x3,_0xd1a258(ue)),U(0x4,_0xd1a258(de)),U(0x5,_0xd1a258(ze)),U(0x6,_0x1de295),U(0x7,_0xd1a258(_0x5c8592))],Se);var Z=(_0x5cc489=>(_0x5cc489[_0x5cc489['UNDEFINED']=0x0]=_0x2234f4(0x292),_0x5cc489[_0x5cc489['OK']=0x1]='OK',_0x5cc489[_0x5cc489[_0x2234f4(0x2a2)]=0x2]='INTERNAL_ERROR',_0x5cc489[_0x5cc489[_0x2234f4(0x31a)]=0x3]=_0x2234f4(0x31a),_0x5cc489[_0x5cc489[_0x2234f4(0x359)]=0x4]=_0x2234f4(0x359),_0x5cc489[_0x5cc489[_0x2234f4(0x229)]=0x5]='UNAUTHENTICATED',_0x5cc489[_0x5cc489[_0x2234f4(0x251)]=0x6]='ALREADY_EXISTS',_0x5cc489[_0x5cc489[_0x2234f4(0x182)]=0x7]=_0x2234f4(0x182),_0x5cc489[_0x5cc489[_0x2234f4(0x1c1)]=0x8]=_0x2234f4(0x1c1),_0x5cc489[_0x5cc489[_0x2234f4(0x290)]=0x9]=_0x2234f4(0x290),_0x5cc489[_0x5cc489[_0x2234f4(0x1ee)]=0xa]='LOGIN_FAILED',_0x5cc489[_0x5cc489['MOBILE_VERIFY_CODE_MISMATCH']=0xb]=_0x2234f4(0x29c),_0x5cc489[_0x5cc489[_0x2234f4(0x33f)]=0xc]=_0x2234f4(0x33f),_0x5cc489[_0x5cc489['EMAIL_VERIFY_CODE_MISMATCH']=0xd]=_0x2234f4(0x1be),_0x5cc489[_0x5cc489[_0x2234f4(0x1ca)]=0xe]=_0x2234f4(0x1ca),_0x5cc489[_0x5cc489['AUTHORIZE_CODE_ILLEGAL']=0xf]=_0x2234f4(0x14c),_0x5cc489[_0x5cc489[_0x2234f4(0x209)]=0x10]=_0x2234f4(0x209),_0x5cc489[_0x5cc489[_0x2234f4(0x293)]=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x5cc489[_0x5cc489[_0x2234f4(0x2dd)]=0x65]=_0x2234f4(0x2dd),_0x5cc489[_0x5cc489['USER_NOT_FOUND']=0xc9]=_0x2234f4(0x26c),_0x5cc489[_0x5cc489[_0x2234f4(0x324)]=0xca]=_0x2234f4(0x324),_0x5cc489[_0x5cc489[_0x2234f4(0x314)]=0x1389]=_0x2234f4(0x314),_0x5cc489[_0x5cc489[_0x2234f4(0x25e)]=0x1771]=_0x2234f4(0x25e),_0x5cc489[_0x5cc489['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x5cc489[_0x5cc489[_0x2234f4(0x20c)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x5cc489[_0x5cc489[_0x2234f4(0x301)]=0x1b59]='APPLY_REJECT',_0x5cc489[_0x5cc489[_0x2234f4(0x366)]=0x1b5a]=_0x2234f4(0x366),_0x5cc489[_0x5cc489['APPLY_REVISION_CONFILICT']=0x1b5b]='APPLY_REVISION_CONFILICT',_0x5cc489[_0x5cc489[_0x2234f4(0x2ed)]=0x1b5c]=_0x2234f4(0x2ed),_0x5cc489[_0x5cc489[_0x2234f4(0x288)]=0x1b5d]=_0x2234f4(0x288),_0x5cc489[_0x5cc489[_0x2234f4(0x2fa)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x5cc489[_0x5cc489[_0x2234f4(0x234)]=0x2329]=_0x2234f4(0x234),_0x5cc489[_0x5cc489['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x5cc489[_0x5cc489[_0x2234f4(0x28d)]=0x232b]=_0x2234f4(0x28d),_0x5cc489[_0x5cc489[_0x2234f4(0x266)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x5cc489[_0x5cc489['LICENSE_DISTRO_REJECTED']=0x232d]=_0x2234f4(0x173),_0x5cc489[_0x5cc489['YUUMI_UNABLE_LOAD_URL']=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x5cc489[_0x5cc489['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x2234f4(0x144),_0x5cc489[_0x5cc489[_0x2234f4(0x31f)]=0x2713]=_0x2234f4(0x31f),_0x5cc489[_0x5cc489[_0x2234f4(0x32e)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x5cc489[_0x5cc489[_0x2234f4(0x1fb)]=0x271a]=_0x2234f4(0x1fb),_0x5cc489[_0x5cc489['YUUMI_ASYNCIO_CANCELLED']=0x271b]=_0x2234f4(0x1e8),_0x5cc489[_0x5cc489['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x2234f4(0x2b3),_0x5cc489[_0x5cc489[_0x2234f4(0x36e)]=0x271d]=_0x2234f4(0x36e),_0x5cc489[_0x5cc489[_0x2234f4(0x157)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x5cc489[_0x5cc489[_0x2234f4(0x35a)]=0x271f]=_0x2234f4(0x35a),_0x5cc489[_0x5cc489['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]=_0x2234f4(0x385),_0x5cc489[_0x5cc489[_0x2234f4(0x2a6)]=0x2af9]=_0x2234f4(0x2a6),_0x5cc489[_0x5cc489[_0x2234f4(0x303)]=0x2ee1]=_0x2234f4(0x303),_0x5cc489[_0x5cc489[_0x2234f4(0x1e4)]=0x2ee2]=_0x2234f4(0x1e4),_0x5cc489[_0x5cc489[_0x2234f4(0x281)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x5cc489[_0x5cc489[_0x2234f4(0x309)]=0x2ee4]=_0x2234f4(0x309),_0x5cc489[_0x5cc489[_0x2234f4(0x352)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x5cc489[_0x5cc489['WECHAT_HAS_BEEN_BOUND']=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x5cc489[_0x5cc489[_0x2234f4(0x32a)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x5cc489[_0x5cc489[_0x2234f4(0x228)]=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x5cc489[_0x5cc489[_0x2234f4(0x233)]=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0x5cc489[_0x5cc489[_0x2234f4(0x311)]=0x36b2]=_0x2234f4(0x311),_0x5cc489[_0x5cc489[_0x2234f4(0x241)]=0x36b3]=_0x2234f4(0x241),_0x5cc489[_0x5cc489[_0x2234f4(0x175)]=0x36b4]='PAYMENT_CHANNEL_NOT_SUPPORT',_0x5cc489[_0x5cc489[_0x2234f4(0x1d2)]=0x36b5]='ENTITLE_INVALID_COUPON_CODE',_0x5cc489[_0x5cc489[_0x2234f4(0x271)]=0x36b6]='ENTITLE_COUPON_EXPIRED',_0x5cc489[_0x5cc489[_0x2234f4(0x2ff)]=0x36b7]='ENTITLE_COUPON_USED_UP',_0x5cc489[_0x5cc489[_0x2234f4(0x24b)]=0x36b8]=_0x2234f4(0x24b),_0x5cc489[_0x5cc489[_0x2234f4(0x2e0)]=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0x5cc489[_0x5cc489[_0x2234f4(0x1de)]=0x3716]=_0x2234f4(0x1de),_0x5cc489[_0x5cc489[_0x2234f4(0x1fc)]=0x3717]=_0x2234f4(0x1fc),_0x5cc489[_0x5cc489[_0x2234f4(0x20f)]=0x37dd]=_0x2234f4(0x20f),_0x5cc489[_0x5cc489[_0x2234f4(0x294)]=0x3a99]=_0x2234f4(0x294),_0x5cc489[_0x5cc489['REDEMPTION_CODE_INACTIVE']=0x3a9a]=_0x2234f4(0x26b),_0x5cc489[_0x5cc489[_0x2234f4(0x243)]=0x3a9b]=_0x2234f4(0x243),_0x5cc489[_0x5cc489['REDEMPTION_CODE_NOT_STARTED']=0x3a9c]='REDEMPTION_CODE_NOT_STARTED',_0x5cc489[_0x5cc489['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]=_0x2234f4(0x171),_0x5cc489[_0x5cc489[_0x2234f4(0x27c)]=0x3a9e]=_0x2234f4(0x27c),_0x5cc489[_0x5cc489[_0x2234f4(0x1b2)]=0x3a9f]='REDEMPTION_CODE_HAS_BEEN_CREATED',_0x5cc489[_0x5cc489[_0x2234f4(0x240)]=0x3e81]=_0x2234f4(0x240),_0x5cc489[_0x5cc489[_0x2234f4(0x29b)]=-0x1]='UNRECOGNIZED',_0x5cc489))(Z||{});function vn(_0x5b81d4){const _0x19cf7e=_0x2234f4;var _0x542e44,_0x23d71d;const _0x171653=(_0x542e44=_0x5b81d4[_0x19cf7e(0x296)])==null?void 0x0:_0x542e44[_0x19cf7e(0x23c)],_0x487d69=((_0x23d71d=_0x5b81d4[_0x19cf7e(0x296)])==null?void 0x0:_0x23d71d[_0x19cf7e(0x361)])||0x0;return _0x171653===_0x591a78[_0x19cf7e(0x262)]&&_0x487d69>0x0;}function pn(_0x482513){const _0x3e0fda=_0x2234f4;return _0x482513[_0x3e0fda(0x38b)]===_0xa5aeb1[_0x3e0fda(0x250)];}var On=Object[_0x2234f4(0x378)],Tn=(_0x31258b,_0x17a60c,_0x4e0ac9,_0x4f77a2)=>{for(var _0x19a480=_0x4f77a2>0x1?void 0x0:_0x4f77a2?On(_0x17a60c,_0x4e0ac9):_0x17a60c,_0x2ceba7=_0x31258b['length']-0x1,_0x2b2699;_0x2ceba7>=0x0;_0x2ceba7--)(_0x2b2699=_0x31258b[_0x2ceba7])&&(_0x19a480=_0x2b2699(_0x19a480)||_0x19a480);return _0x19a480;},P=(_0xcb9c38,_0x3ec6d1)=>(_0x15f666,_0x2f434f)=>_0x3ec6d1(_0x15f666,_0x2f434f,_0xcb9c38);const Cn=_0x2234f4(0x1e2),Rn='/universer-api/license/formula/limit/start',Dn=_0x2234f4(0x180);let Ie=class extends _0x451219{constructor(_0x177af1,_0x1a8401,_0x20e972,_0x58294b,_0x5db234,_0x404b6c,_0x556eb3){const _0x47670a=_0x2234f4;super(),_(this,_0x47670a(0x2e9),null),_(this,_0x47670a(0x210),0x0),_(this,'_currentUsage',0x0),_(this,_0x47670a(0x380),[]),_(this,_0x47670a(0x238),0x0),(this['_messageService']=_0x177af1,this[_0x47670a(0x16f)]=_0x1a8401,this['_configService']=_0x20e972,this[_0x47670a(0x327)]=_0x58294b,this[_0x47670a(0x275)]=_0x5db234,this[_0x47670a(0x21d)]=_0x404b6c,this['_localeService']=_0x556eb3,this[_0x47670a(0x202)]());}[_0x2234f4(0x202)](){const _0x1ff883=_0x2234f4;this[_0x1ff883(0x1f0)](this[_0x1ff883(0x16f)][_0x1ff883(0x1d4)]((_0x2702ce,_0x219102)=>{const _0x210f39=_0x1ff883;var _0x62146d;if(_0x2702ce['id']!==_0x569dd4['id'])return;const _0x4372bf=_0x2702ce[_0x210f39(0x22e)];if(!this[_0x210f39(0x149)]((_0x62146d=_0x4372bf['dirtyRanges'])!=null?_0x62146d:[]))return;if(!this[_0x210f39(0x214)]())throw this[_0x210f39(0x23f)](_0x2702ce,_0x219102),this[_0x210f39(0x207)](),new _0x299f8a();})),this[_0x1ff883(0x1f0)](this[_0x1ff883(0x16f)]['onCommandExecuted']((_0x17519a,_0x4916c7)=>{const _0x5727ca=_0x1ff883;if(_0x17519a['id']!==_0x344bbd['id'])return;const _0xd0371f=_0x17519a[_0x5727ca(0x22e)];if(vn(_0xd0371f)){const _0x176fe4=_0x29e4dc();this[_0x5727ca(0x380)][_0x5727ca(0x2ad)](_0x176fe4),this[_0x5727ca(0x368)](_0x176fe4);}else{if(pn(_0xd0371f)&&this[_0x5727ca(0x380)][_0x5727ca(0x31d)]>0x0){const _0x28f3b6=this['_taskIds'][_0x5727ca(0x2eb)]();this[_0x5727ca(0x381)](_0x28f3b6);}}}));}[_0x2234f4(0x2e1)](){const _0x4c3295=_0x2234f4;super['dispose'](),this[_0x4c3295(0x2af)](),this[_0x4c3295(0x380)]=[],this[_0x4c3295(0x2bf)]=0x0,this[_0x4c3295(0x210)]=0x0,this[_0x4c3295(0x238)]=0x0;}async[_0x2234f4(0x23f)](_0xa49a25,_0x1d531a){const _0x241a67=_0x2234f4;for(let _0x599984=0x0;_0x599984<0x1e;_0x599984++)try{if(await this[_0x241a67(0x2b0)](),this[_0x241a67(0x214)]()){this[_0x241a67(0x37a)](_0xa49a25,_0x1d531a),this['_messageService'][_0x241a67(0x2b2)]({'content':this[_0x241a67(0x1ed)]['t']('formula.calculation.started'),'type':_0x47fe57[_0x241a67(0x146)]});return;}await new Promise(_0x38bdb8=>{const _0x9c816=_0x241a67;this[_0x9c816(0x2e9)]=window[_0x9c816(0x322)](_0x38bdb8,0x3e8);});}catch(_0x2a37c0){this[_0x241a67(0x21d)]['error'](_0x2a37c0);}this['_messageService']['show']({'content':this[_0x241a67(0x1ed)]['t'](_0x241a67(0x2ea)),'type':_0x47fe57['Error']});}[_0x2234f4(0x37a)](_0x28d423,_0x3f3a8b){const _0x536ece=_0x2234f4;try{this['_commandService'][_0x536ece(0x212)](_0x28d423['id'],_0x28d423[_0x536ece(0x22e)],_0x3f3a8b);}catch(_0x3a9ecc){this[_0x536ece(0x21d)][_0x536ece(0x197)](_0x3a9ecc);}}[_0x2234f4(0x345)](_0x201a90,_0x47bbe7){const _0x505c95=_0x2234f4;_0x47bbe7<this[_0x505c95(0x238)]||(this[_0x505c95(0x238)]=_0x47bbe7,this[_0x505c95(0x210)]=Number['parseInt'](_0x201a90[_0x505c95(0x15d)]),this[_0x505c95(0x2bf)]=Number[_0x505c95(0x15e)](_0x201a90[_0x505c95(0x27d)]));}async[_0x2234f4(0x368)](_0x4890df){const _0x4471a9=_0x2234f4;var _0x477fa0,_0x5a238d;const _0x4f021b=Date[_0x4471a9(0x299)]();try{const _0x306d57=((_0x477fa0=this['_configService'][_0x4471a9(0x1ef)](_0x5bd5ca))==null?void 0x0:_0x477fa0[_0x4471a9(0x26d)])||Rn,_0x179386=(await this[_0x4471a9(0x327)][_0x4471a9(0x2a5)](_0x306d57,{'body':JSON[_0x4471a9(0x28e)]({'taskId':_0x4890df})}))['body'];if(((_0x5a238d=_0x179386[_0x4471a9(0x197)])==null?void 0x0:_0x5a238d[_0x4471a9(0x1b9)])!==Z['OK'])return;this[_0x4471a9(0x345)](_0x179386[_0x4471a9(0x353)],_0x4f021b);}catch(_0x35848b){this[_0x4471a9(0x21d)][_0x4471a9(0x197)](_0x35848b);}}async[_0x2234f4(0x2b0)](_0x4e01e6){const _0x244594=_0x2234f4;var _0x2ac1ab,_0x4d3c33;const _0x12a7fb=Date[_0x244594(0x299)]();try{const _0x169450=((_0x2ac1ab=this[_0x244594(0x35e)][_0x244594(0x1ef)](_0x5bd5ca))==null?void 0x0:_0x2ac1ab['getformulaLimitStatusUrl'])||Cn,_0x1f9bdf=_0x4e01e6?_0x169450+_0x244594(0x254)+encodeURIComponent(_0x4e01e6):_0x169450,_0x5ac0fe=(await this[_0x244594(0x327)]['get'](_0x1f9bdf))[_0x244594(0x221)];if(((_0x4d3c33=_0x5ac0fe['error'])==null?void 0x0:_0x4d3c33[_0x244594(0x1b9)])!==Z['OK'])return;this[_0x244594(0x345)](_0x5ac0fe[_0x244594(0x353)],_0x12a7fb);}catch(_0x5044c3){this[_0x244594(0x21d)][_0x244594(0x197)](_0x5044c3);}}async[_0x2234f4(0x381)](_0x1e149c){const _0x80cc29=_0x2234f4;var _0x533eeb,_0x57ee41;const _0x21c101=Date['now']();try{const _0x333200=((_0x533eeb=this[_0x80cc29(0x35e)][_0x80cc29(0x1ef)](_0x5bd5ca))==null?void 0x0:_0x533eeb[_0x80cc29(0x17d)])||Dn,_0x5ebb70=(await this[_0x80cc29(0x327)]['post'](_0x333200,{'body':JSON[_0x80cc29(0x28e)]({'taskId':_0x1e149c})}))[_0x80cc29(0x221)];if(((_0x57ee41=_0x5ebb70['error'])==null?void 0x0:_0x57ee41[_0x80cc29(0x1b9)])!==Z['OK'])return;this[_0x80cc29(0x345)](_0x5ebb70['limitInfo'],_0x21c101);}catch(_0xfb63ab){this['_logService'][_0x80cc29(0x197)](_0xfb63ab);}}['_checkCalculationAvailable'](){const _0xe2b4a4=_0x2234f4;return this[_0xe2b4a4(0x210)]===0x0?!0x0:this['_maxFormulaLimit']-this[_0xe2b4a4(0x2bf)]>0x0;}[_0x2234f4(0x2af)](){const _0x475419=_0x2234f4;this[_0x475419(0x2e9)]&&(clearTimeout(this[_0x475419(0x2e9)]),this[_0x475419(0x2e9)]=null);}[_0x2234f4(0x207)](){const _0x19bc99=_0x2234f4;this[_0x19bc99(0x196)][_0x19bc99(0x2b2)]({'content':this['_localeService']['t'](_0x19bc99(0x1ff)),'type':_0x47fe57['Loading']});}[_0x2234f4(0x149)](_0x48f691){const _0x4e7581=_0x2234f4;for(const _0x2b720c of _0x48f691){const {unitId:_0x2545e9,sheetId:_0x47c2ed,range:_0x383ea7}=_0x2b720c,_0x135d69=this[_0x4e7581(0x275)][_0x4e7581(0x335)](_0x2545e9);if(!_0x135d69)continue;const _0xfd5605=_0x135d69[_0x4e7581(0x312)](_0x47c2ed);if(!_0xfd5605)continue;const _0xfb6993=_0xfd5605[_0x4e7581(0x329)]();for(let _0x23f679=_0x383ea7[_0x4e7581(0x383)];_0x23f679<=_0x383ea7[_0x4e7581(0x19a)];_0x23f679++)for(let _0x49af4d=_0x383ea7[_0x4e7581(0x2b1)];_0x49af4d<=_0x383ea7['endColumn'];_0x49af4d++){const _0x547765=_0xfb6993[_0x4e7581(0x16b)](_0x23f679,_0x49af4d);if(_0x547765&&(_0x4bac35(_0x547765['f'])||_0x520265(_0x547765['si'])))return!0x0;}}return!0x1;}};Ie=Tn([P(0x0,_0xd1a258(_0x1de295)),P(0x1,_0xe14216),P(0x2,_0x3a2d6e),P(0x3,_0xd1a258(_0x185939)),P(0x4,_0x717147),P(0x5,_0x5d513a),P(0x6,_0xd1a258(_0x5c8592))],Ie);var Nn=Object[_0x2234f4(0x378)],bn=(_0x4595ae,_0x1f9621,_0x2510df,_0x3ad709)=>{for(var _0xbef26f=_0x3ad709>0x1?void 0x0:_0x3ad709?Nn(_0x1f9621,_0x2510df):_0x1f9621,_0x4784d1=_0x4595ae['length']-0x1,_0x400a98;_0x4784d1>=0x0;_0x4784d1--)(_0x400a98=_0x4595ae[_0x4784d1])&&(_0xbef26f=_0x400a98(_0xbef26f)||_0xbef26f);return _0xbef26f;},Ue=(_0x47cae1,_0x3da4d0)=>(_0x1d01f3,_0x2b64ec)=>_0x3da4d0(_0x1d01f3,_0x2b64ec,_0x47cae1);let He=class extends _0x451219{constructor(_0x9ffc9d,_0xd5eae1,_0x200394){const _0x43d887=_0x2234f4;super(),_(this,_0x43d887(0x148),new Map()),_(this,_0x43d887(0x1ad),new Map()),_(this,'_disabled',!0x1),(this[_0x43d887(0x35e)]=_0x9ffc9d,this[_0x43d887(0x2ce)]=_0xd5eae1,this[_0x43d887(0x189)]=_0x200394);}['disableLocalCache'](){const _0x596510=_0x2234f4;this[_0x596510(0x216)]=!0x0;}[_0x2234f4(0x199)](){const _0x338bb7=_0x2234f4;this[_0x338bb7(0x216)]=!0x1;}get[_0x2234f4(0x1a7)](){return this['_saveTaskMap'];}[_0x2234f4(0x2e1)](){const _0x584c7b=_0x2234f4;this[_0x584c7b(0x36b)]()[_0x584c7b(0x13f)](()=>super['dispose']());}async[_0x2234f4(0x23a)](_0xe70785){const _0x4ad6fc=_0x2234f4;return this[_0x4ad6fc(0x216)]?null:this['_localStorageService'][_0x4ad6fc(0x230)](_0x9d06b7(_0xe70785));}async[_0x2234f4(0x16c)](_0x5add85,_0x3fba9d){const _0x16620a=_0x2234f4;return!!this[_0x16620a(0x2ce)]['setItem'](_0x5add85,_0x3fba9d);}[_0x2234f4(0x2a9)](_0x2405cd,_0x39319f,_0x18ff89,_0x372f98){const _0x44868f=_0x2234f4,_0xd1817f=this[_0x44868f(0x189)][_0x44868f(0x1da)](_0x2405cd);this[_0x44868f(0x148)][_0x44868f(0x1f9)](_0x2405cd,{'unitID':_0x2405cd,'type':_0x39319f,'awaitingChangeset':_0x18ff89,'mutations':_0x372f98,'rev':_0xd1817f}),this[_0x44868f(0x1ad)]['has'](_0x2405cd)||this[_0x44868f(0x377)](_0x2405cd);}['_scheduleSaving'](_0x5e7bec){const _0x524abe=_0x2234f4,_0x457181=this['_getSaveTimeout']();_0x457181===0x0?this[_0x524abe(0x2a4)](_0x5e7bec):this[_0x524abe(0x1ad)][_0x524abe(0x1f9)](_0x5e7bec,setTimeout(()=>this[_0x524abe(0x2a4)](_0x5e7bec),_0x457181));}['_getSaveTimeout'](){const _0x5b1d1c=_0x2234f4;var _0x1f597a;return(_0x1f597a=this[_0x5b1d1c(0x35e)][_0x5b1d1c(0x1ef)](_0x4f1f3d))!=null?_0x1f597a:_0x40ab83;}[_0x2234f4(0x2a4)](_0x30f038){const _0x5d43c6=_0x2234f4,_0x2a07d9=this[_0x5d43c6(0x1ad)]['get'](_0x30f038);return _0x2a07d9!==void 0x0&&window[_0x5d43c6(0x186)](_0x2a07d9),this[_0x5d43c6(0x2ce)][_0x5d43c6(0x2d5)](_0x9d06b7(_0x30f038),this[_0x5d43c6(0x148)][_0x5d43c6(0x184)](_0x30f038))[_0x5d43c6(0x13f)](()=>this['_saveTaskMap']['delete'](_0x30f038));}async['exhaustSavingTask'](){const _0x3d9a2e=_0x2234f4,_0x274316=[];this[_0x3d9a2e(0x1ad)][_0x3d9a2e(0x32f)]((_0x438a63,_0x5da18f)=>{const _0x15604f=_0x3d9a2e;window[_0x15604f(0x186)](_0x438a63),_0x274316[_0x15604f(0x2ad)](this[_0x15604f(0x2a4)](_0x5da18f)[_0x15604f(0x13f)](()=>{const _0x522af3=_0x15604f;this['_saveTaskMap'][_0x522af3(0x304)](_0x5da18f);}));}),await Promise[_0x3d9a2e(0x27f)](_0x274316);}};He=bn([Ue(0x0,_0x3a2d6e),Ue(0x1,_0x267ca5),Ue(0x2,_0xd1a258(_0x1467ff))],He);class Ln extends _0x2f4832{constructor(){const _0x2d6f7e=_0x2234f4;super(),_(this,_0x2d6f7e(0x18d)),this[_0x2d6f7e(0x18d)]=_0x51b723(window,_0x2d6f7e(0x1b6))[_0x2d6f7e(0x277)](_0x49b716(this['dispose$']),_0x1a0d46(0x1),_0x1d319f(void 0x0));}[_0x2234f4(0x30d)](_0xc0462b,_0x5c7e3a,_0x39d1d3=!0x1){const _0x57590a=_0x2234f4,_0x4b710a=new URL(window[_0x57590a(0x29f)][_0x57590a(0x170)]);_0x4b710a[_0x57590a(0x2d7)][_0x57590a(0x1f9)](_0xc0462b,_0x5c7e3a),_0x39d1d3?window[_0x57590a(0x289)]['replaceState']('','',_0x4b710a[_0x57590a(0x185)]()):window['history'][_0x57590a(0x245)]('','',_0x4b710a[_0x57590a(0x185)]());}['removeParam'](_0x5717c1,_0x4612a9=!0x1){const _0x150a89=_0x2234f4,_0x28b876=new URL(window['location'][_0x150a89(0x170)]);_0x28b876['searchParams']['delete'](_0x5717c1),_0x4612a9?window[_0x150a89(0x289)][_0x150a89(0x2cd)]('','',_0x28b876['toString']()):window[_0x150a89(0x289)][_0x150a89(0x245)]('','',_0x28b876[_0x150a89(0x185)]());}[_0x2234f4(0x244)](_0x2c9696){const _0x4fa156=_0x2234f4;var _0xf8a53d;return(_0xf8a53d=new URL(window['location'][_0x4fa156(0x170)])[_0x4fa156(0x2d7)][_0x4fa156(0x184)](_0x2c9696))!=null?_0xf8a53d:void 0x0;}}var Un=Object['defineProperty'],Mn=Object[_0x2234f4(0x378)],An=(_0x522af9,_0x32b12d,_0x50f049)=>_0x32b12d in _0x522af9?Un(_0x522af9,_0x32b12d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x50f049}):_0x522af9[_0x32b12d]=_0x50f049,Pn=(_0x2a52f4,_0x372b47,_0x5b1ea9,_0x18acb8)=>{const _0x1ce338=_0x2234f4;for(var _0x5d9c08=_0x18acb8>0x1?void 0x0:_0x18acb8?Mn(_0x372b47,_0x5b1ea9):_0x372b47,_0x28d331=_0x2a52f4[_0x1ce338(0x31d)]-0x1,_0x4f458d;_0x28d331>=0x0;_0x28d331--)(_0x4f458d=_0x2a52f4[_0x28d331])&&(_0x5d9c08=_0x4f458d(_0x5d9c08)||_0x5d9c08);return _0x5d9c08;},Me=(_0x30fb4b,_0x6d146a)=>(_0x36f142,_0x496659)=>_0x6d146a(_0x36f142,_0x496659,_0x30fb4b),wn=(_0x2e05c3,_0x39cdbe,_0x454163)=>An(_0x2e05c3,_0x39cdbe+'',_0x454163);const yn='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';let Ye=class extends _0x3a561a{constructor(_0x581d34=_t,_0x59b3fd,_0x1b52ea,_0x1be65b){const _0x36184e=_0x2234f4;super(),this['_config']=_0x581d34,this[_0x36184e(0x36a)]=_0x59b3fd,this[_0x36184e(0x1e1)]=_0x1b52ea,this[_0x36184e(0x35e)]=_0x1be65b;const {..._0x3a262a}=_0x51a3b6({},_t,this[_0x36184e(0x36f)]);this['_configService'][_0x36184e(0x280)](hn,_0x3a262a);}[_0x2234f4(0x169)](){const _0x42e227=_0x2234f4;this[_0x42e227(0x384)](),this[_0x42e227(0x295)]();}[_0x2234f4(0x1c8)](){const _0x555f8e=_0x2234f4;this[_0x555f8e(0x2c7)]();}[_0x2234f4(0x384)](){const _0x2d25b0=_0x2234f4;var _0x38941d;const _0xf49128=[[Ke],[Ie],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0xe1ac11,{'useClass':_0x16eb47}],[_0xcdb955,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0x2d25b0(0x36f)][_0x2d25b0(0x278)]&&_0xf49128[_0x2d25b0(0x2ad)]([le]),_0x232947(this[_0x2d25b0(0x1e1)],_0x5c568a(_0xf49128,(_0x38941d=this[_0x2d25b0(0x36f)])==null?void 0x0:_0x38941d[_0x2d25b0(0x25a)]));}['_registerRenderDependencies'](){const _0xe4dbe2=_0x2234f4;this['disposeWithMe'](this[_0xe4dbe2(0x36a)]['registerRenderModule'](_0x5722a6[_0xe4dbe2(0x166)],[Fe])),this[_0xe4dbe2(0x1f0)](this[_0xe4dbe2(0x36a)][_0xe4dbe2(0x31e)](_0x5722a6['UNIVER_SHEET'],[ke]));}[_0x2234f4(0x295)](){const _0x3b0c32=_0x2234f4;_0x2ad356(this['_injector'],[[H],[ae],[Se],[_e],[ce],[Ie]]),this['_config'][_0x3b0c32(0x278)]&&_0x2ad356(this[_0x3b0c32(0x1e1)],[[le]]);}};wn(Ye,'pluginName',yn),Ye=Pn([_0x1afb5d(_0x56a2f6),Me(0x1,_0x5a59d5),Me(0x2,_0xd1a258(_0x4075d0)),Me(0x3,_0x3a2d6e)],Ye);var $n=Object[_0x2234f4(0x378)],xn=(_0x481c81,_0x180af2,_0x16f98b,_0x1a14ab)=>{for(var _0x2df44d=_0x1a14ab>0x1?void 0x0:_0x1a14ab?$n(_0x180af2,_0x16f98b):_0x180af2,_0xd7909e=_0x481c81['length']-0x1,_0x1ea503;_0xd7909e>=0x0;_0xd7909e--)(_0x1ea503=_0x481c81[_0xd7909e])&&(_0x2df44d=_0x1ea503(_0x2df44d)||_0x2df44d);return _0x2df44d;},J=(_0x1f9fbe,_0x452d1a)=>(_0x46d797,_0x17fc58)=>_0x452d1a(_0x46d797,_0x17fc58,_0x1f9fbe);let ut=class extends _0x5505d2{constructor(_0x440ffc,_0x2d153d,_0x511a66,_0x5c634c,_0x3dd3ae){super(_0x440ffc,_0x2d153d,_0x511a66,_0x5c634c,_0x3dd3ae);}async[_0x2234f4(0x29d)](_0x3ef930){const _0x140b00=_0x2234f4,_0x5121ba=await this[_0x140b00(0x23d)](),_0x1845dd=this[_0x140b00(0x2ec)](_0x3ef930,_0x5121ba);return this[_0x140b00(0x205)](_0x1845dd);}['_createSocketURL'](_0x4b2220,_0x2bc4ed){const _0x29e5d0=_0x2234f4,_0x10f6ef=typeof window>'u'?new URL(_0x4b2220):new URL(_0x4b2220,window[_0x29e5d0(0x29f)]['origin']);_0x10f6ef['searchParams']['set'](_0x29e5d0(0x1e3),_0x2bc4ed);const _0x58d224=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x29e5d0(0x29f)][_0x29e5d0(0x33e)]);return _0x58d224[_0x29e5d0(0x184)]('runId')&&_0x10f6ef[_0x29e5d0(0x2d7)]['set']('runId',_0x58d224['get']('runId')),_0x10f6ef[_0x29e5d0(0x185)]();}async[_0x2234f4(0x23d)](){const _0x383adf=_0x2234f4;var _0x3a0d6d,_0x31839a,_0x8aed5d;const _0x24eae6=this[_0x383adf(0x35e)]['getConfig'](_0x5bd5ca),_0x3bcfad=(_0x3a0d6d=_0x24eae6==null?void 0x0:_0x24eae6[_0x383adf(0x1e5)])!=null?_0x3a0d6d:_0x1158ce;return(_0x8aed5d=(_0x31839a=(await this[_0x383adf(0x327)][_0x383adf(0x184)](_0x3bcfad,{'headers':{'Content-Type':_0x383adf(0x26a)}}))[_0x383adf(0x221)])==null?void 0x0:_0x31839a[_0x383adf(0x27b)])!=null?_0x8aed5d:'';}};ut=xn([J(0x0,_0xd1a258(_0x4075d0)),J(0x1,_0xd1a258(_0x185939)),J(0x2,_0x3a2d6e),J(0x3,_0x5d513a),J(0x4,_0x43b657)],ut);var Bn=Object[_0x2234f4(0x378)],Fn=(_0x5a6123,_0x11059c,_0x23eeea,_0x1f39a4)=>{for(var _0x9c1380=_0x1f39a4>0x1?void 0x0:_0x1f39a4?Bn(_0x11059c,_0x23eeea):_0x11059c,_0x3276ea=_0x5a6123['length']-0x1,_0x2e128c;_0x3276ea>=0x0;_0x3276ea--)(_0x2e128c=_0x5a6123[_0x3276ea])&&(_0x9c1380=_0x2e128c(_0x9c1380)||_0x9c1380);return _0x9c1380;},Ae=(_0x709835,_0x534972)=>(_0x243d7a,_0x5b1c80)=>_0x534972(_0x243d7a,_0x5b1c80,_0x709835);let dt=class extends _0x451219{constructor(_0x5d8592,_0x8aec19,_0x33c3c9){const _0x4f2337=_0x2234f4;super(),this[_0x4f2337(0x334)]=_0x5d8592,this[_0x4f2337(0x327)]=_0x8aec19,this[_0x4f2337(0x35e)]=_0x33c3c9;}async['runOnServer'](_0x35ae86,_0x596840,_0x1c848d,..._0x5d5e4c){const _0x2756bd=_0x2234f4;var _0x4531b5,_0x3319c4,_0x3bef7f,_0x372328;const _0x23e21e=this[_0x2756bd(0x334)][_0x2756bd(0x367)]();if(!_0x23e21e)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x1aa15d=((_0x4531b5=this[_0x2756bd(0x35e)][_0x2756bd(0x1ef)](_0x1d0eb9))!=null?_0x4531b5:_0x55c3a5)+'/'+_0x35ae86+_0x2756bd(0x286)+_0x596840,_0x401f25=new URL(window[_0x2756bd(0x29f)]['href']),_0x3107b1={'scriptId':_0x35ae86,'runId':(_0x3319c4=_0x401f25['searchParams'][_0x2756bd(0x184)](_0x2756bd(0x1c5)))!=null?_0x3319c4:'','function':_0x596840,'unitId':_0x23e21e['getUnitId'](),'argsOfFunction':JSON[_0x2756bd(0x28e)](_0x5d5e4c),'invokeId':(_0x3bef7f=_0x1c848d[_0x2756bd(0x23b)])!=null?_0x3bef7f:'','executionId':(_0x372328=_0x1c848d['executionId'])!=null?_0x372328:''};try{const _0x3450dc=await this[_0x2756bd(0x327)]['post'](_0x1aa15d,{'body':_0x3107b1});return _0x3450dc[_0x2756bd(0x221)][_0x2756bd(0x197)]&&_0x3450dc[_0x2756bd(0x221)][_0x2756bd(0x197)][_0x2756bd(0x1b9)]!==Z['OK']?'Failed':_0x3450dc[_0x2756bd(0x221)]['result'];}catch{return _0x2756bd(0x373);}}};dt=Fn([Ae(0x0,_0x717147),Ae(0x1,_0xd1a258(_0x185939)),Ae(0x2,_0x3a2d6e)],dt);const St=0x7530,It=_0x2234f4(0x143);class rr extends _0x451219{constructor(){const _0x706c6c=_0x2234f4;super(),_(this,'_id',_0x29e4dc()),_(this,_0x706c6c(0x25f),new Set()),_(this,_0x706c6c(0x1a1),new Map()),_(this,_0x706c6c(0x357),null),_(this,'_clearOtherTimers',new Map()),_(this,_0x706c6c(0x18b),new Map()),this['_init']();}[_0x2234f4(0x2e1)](){const _0x50ae2b=_0x2234f4;super[_0x50ae2b(0x2e1)](),this['_clearOtherTimers'][_0x50ae2b(0x32f)]((_0x38c9f5,_0xb4bafe)=>this[_0x50ae2b(0x2ab)](_0xb4bafe)),this['_heartbeatTimer']&&window[_0x50ae2b(0x274)](this[_0x50ae2b(0x357)]);}[_0x2234f4(0x19b)](_0x1ff8af){const _0x75ecba=_0x2234f4;return this[_0x75ecba(0x154)](_0x1ff8af)['pipe'](_0x113cfc());}[_0x2234f4(0x2a7)](_0x517707){const _0x3103bb=_0x2234f4;this[_0x3103bb(0x25f)][_0x3103bb(0x14f)]===0x0&&this[_0x3103bb(0x354)](),this[_0x3103bb(0x25f)][_0x3103bb(0x176)](_0x517707),this[_0x3103bb(0x218)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x517707],'isForwarded':!0x1});}[_0x2234f4(0x18f)](_0x3959c0){const _0x5dba2e=_0x2234f4;this[_0x5dba2e(0x25f)]['delete'](_0x3959c0),this[_0x5dba2e(0x25f)]['size']===0x0&&this['_heartbeatTimer']&&window['clearInterval'](this[_0x5dba2e(0x357)]);}[_0x2234f4(0x1b5)](){const _0x5f3cb0=_0x2234f4;this[_0x5f3cb0(0x1f0)](_0x3640fe(_0x51b723(window,_0x5f3cb0(0x1b4))[_0x5f3cb0(0x190)](_0x18b418=>{const _0x186c4b=_0x5f3cb0;if(_0x18b418[_0x186c4b(0x2d1)]!==It||!_0x18b418[_0x186c4b(0x1d8)])return;const _0xf3e028=JSON[_0x186c4b(0x1d7)](_0x18b418[_0x186c4b(0x1d8)]);this[_0x186c4b(0x35d)](_0xf3e028);}))),window[_0x5f3cb0(0x25d)](_0x5f3cb0(0x17a),()=>this[_0x5f3cb0(0x218)]({'type':0x1,'memberID':this[_0x5f3cb0(0x35c)],'unitIDs':Array['from'](this[_0x5f3cb0(0x25f)])}));}['_handleEvent'](_0x3461b1){const _0x130db0=_0x2234f4;switch(_0x3461b1[_0x130db0(0x1f6)]){case 0x0:this[_0x130db0(0x379)](_0x3461b1);break;case 0x1:this['_handleLeaveEvent'](_0x3461b1);break;case 0x2:this[_0x130db0(0x208)](_0x3461b1);break;}}[_0x2234f4(0x379)](_0x40f30c){const _0x4fb480=_0x2234f4,{unitIDs:_0x318068,memberID:_0x44566e,isForwarded:_0x2c418b}=_0x40f30c;_0x318068[_0x4fb480(0x32f)](_0x5aacdf=>{const _0x4ad87d=_0x4fb480;if(!_0x2c418b&&this[_0x4ad87d(0x1a1)]['has'](_0x5aacdf)&&this['_ensureSubject'](_0x5aacdf)['next'](_0x5cd56a['OTHER_CLIENTS_EDITING']),!this[_0x4ad87d(0x1a1)][_0x4ad87d(0x30c)](_0x5aacdf)||!this['_unitOnClients'][_0x4ad87d(0x184)](_0x5aacdf)[_0x4ad87d(0x30c)](_0x44566e)){const _0x170e10=this[_0x4ad87d(0x1a1)][_0x4ad87d(0x184)](_0x5aacdf)||new Set();_0x170e10[_0x4ad87d(0x176)](_0x44566e),this['_unitOnClients'][_0x4ad87d(0x1f9)](_0x5aacdf,_0x170e10),this[_0x4ad87d(0x2d4)](_0x44566e);}}),_0x2c418b||this[_0x4fb480(0x218)]({'type':0x0,'memberID':this[_0x4fb480(0x35c)],'unitIDs':[...this[_0x4fb480(0x25f)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x390030){const _0x11af21=_0x2234f4;this[_0x11af21(0x2ab)](_0x390030);const _0x50dd6b=window[_0x11af21(0x322)](()=>{const _0x4b1da1=_0x11af21;this[_0x4b1da1(0x1a1)][_0x4b1da1(0x32f)](_0x2c789f=>{const _0x10dba7=_0x4b1da1;_0x2c789f[_0x10dba7(0x304)](_0x390030);});},St*0x2);this[_0x11af21(0x34b)][_0x11af21(0x1f9)](_0x390030,_0x50dd6b);}[_0x2234f4(0x2ab)](_0x37b0ae){const _0x486b25=_0x2234f4;if(this['_clearOtherTimers']['has'](_0x37b0ae)){const _0x120891=this[_0x486b25(0x34b)]['get'](_0x37b0ae);_0x120891&&window[_0x486b25(0x186)](_0x120891),this[_0x486b25(0x34b)][_0x486b25(0x1f9)](_0x37b0ae,null);}}['_handleLeaveEvent'](_0x2027ae){const {memberID:_0x2825da,unitIDs:_0x4d6bd8}=_0x2027ae;_0x4d6bd8['forEach'](_0x219588=>{const _0x5485a4=_0x34ce;var _0x5921d4;const _0x1b649b=this['_unitOnClients']['get'](_0x219588);_0x1b649b&&(_0x1b649b[_0x5485a4(0x304)](_0x2825da),(_0x5921d4=this[_0x5485a4(0x154)](_0x219588))==null||_0x5921d4[_0x5485a4(0x37e)](_0x1b649b['size']===0x0?_0x5cd56a[_0x5485a4(0x2a1)]:_0x5cd56a[_0x5485a4(0x34e)]));}),this['_removeClearOtherTimer'](_0x2825da);}[_0x2234f4(0x208)](_0x1fea03){const _0x1876fa=_0x2234f4;this[_0x1876fa(0x2d4)](_0x1fea03[_0x1876fa(0x350)]);}[_0x2234f4(0x218)](_0x323e49){const _0x16d2e1=_0x2234f4;localStorage[_0x16d2e1(0x2d5)](It,JSON[_0x16d2e1(0x28e)](_0x323e49));}[_0x2234f4(0x354)](){const _0x1f7f90=_0x2234f4;this[_0x1f7f90(0x357)]=window[_0x1f7f90(0x2f3)](()=>{const _0x39e9b8=_0x1f7f90;this['_send']({'type':0x2,'memberID':this[_0x39e9b8(0x35c)]});},St);}[_0x2234f4(0x154)](_0x3522fb){const _0x29f04e=_0x2234f4;return this[_0x29f04e(0x18b)][_0x29f04e(0x30c)](_0x3522fb)||this['_unitStatus'][_0x29f04e(0x1f9)](_0x3522fb,new _0x40aa62(_0x5cd56a[_0x29f04e(0x2a1)])),this[_0x29f04e(0x18b)][_0x29f04e(0x184)](_0x3522fb);}}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 _0x23ebe7=_0x1473;(function(_0x2825c2,_0x3ac79b){const _0x5c9612=_0x1473,_0x5e6c80=_0x2825c2();while(!![]){try{const _0x2f2644=-parseInt(_0x5c9612(0x21f))/0x1+-parseInt(_0x5c9612(0x27b))/0x2+parseInt(_0x5c9612(0x22f))/0x3+-parseInt(_0x5c9612(0x258))/0x4*(parseInt(_0x5c9612(0x252))/0x5)+-parseInt(_0x5c9612(0x221))/0x6*(-parseInt(_0x5c9612(0x2b2))/0x7)+parseInt(_0x5c9612(0x2ad))/0x8*(parseInt(_0x5c9612(0x27e))/0x9)+parseInt(_0x5c9612(0x309))/0xa;if(_0x2f2644===_0x3ac79b)break;else _0x5e6c80['push'](_0x5e6c80['shift']());}catch(_0x39f0de){_0x5e6c80['push'](_0x5e6c80['shift']());}}}(_0x4a76,0x94886));var Yt=Object[_0x23ebe7(0x120)],Wt=(_0x335762,_0x937d69,_0x1b5ad4)=>_0x937d69 in _0x335762?Yt(_0x335762,_0x937d69,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1b5ad4}):_0x335762[_0x937d69]=_0x1b5ad4,_=(_0x7e5538,_0xd882ad,_0x409a8f)=>Wt(_0x7e5538,typeof _0xd882ad!=_0x23ebe7(0x2e7)?_0xd882ad+'':_0xd882ad,_0x409a8f);import{jsx as _0x31169a,jsxs as _0x327a09}from'react/jsx-runtime';import{CollaborationStatus as _0x46761b,CollaborationSessionService as _0x2b5b0a,CollaborationController as _0x585ed2,DataLoaderService as _0x51f890,MemberService as _0x381953,SessionStatus as _0xa1e56c,ILocalCacheService as _0x3efc30,CollaborationUIEventService as _0x184184,CollaborationUIEventId as _0x3a42,DocCollaborationEntity as _0x4ea44f,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x55ebf4,getLocalCacheKey as _0x2a3b38,LOCAL_CACHE_INTERVAL as _0x2601a1,LOCAL_CACHE_INTERVAL_KEY as _0x4166f5,UniverCollaborationClientPlugin as _0x1ffcc2,CollaborationSocketService as _0x2d6912,DEFAULT_WS_SESSION_TICKET_URL as _0x1ec024,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x3a399c,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x56c62e,UnitStatus as _0x16ed22}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x10502b,IUniverInstanceService as _0x2e4fbc,Inject as _0xe188da,Injector as _0x402c05,Disposable as _0x1bbcbc,createIdentifier as _0xd4c577,ILogService as _0xe57380,ICommandService as _0x16d352,Optional as _0xf9aec1,RxDisposable as _0x6981fd,Workbook as _0x468379,DOC_RANGE_TYPE as _0x6170ae,debounce as _0x2ee2a9,Rectangle as _0x1b9706,DisposableCollection as _0x5072fa,toDisposable as _0x527ea8,UniverInstanceType as _0x4815c4,generateRandomId as _0x3023d1,COLORS as _0x11d588,ColorKit as _0x200f2b,ThemeService as _0x4dfa73,fromEventSubject as _0x5343ff,Tools as _0xea71ab,CommandType as _0x40e738,IConfigService as _0x47f3de,CanceledError as _0x41315e,isFormulaString as _0x39babf,isFormulaId as _0x362f2e,ILocalStorageService as _0x55e8df,DependentOn as _0xf93286,Plugin as _0x2f6422,merge as _0x1fdd29,registerDependencies as _0x2ce1f4,mergeOverrideWithDependencies as _0x3e09cd,touchDependencies as _0x4ff469}from'@univerjs/core';import{useObservable as _0x46236e,useDependency as _0x46594b,IUIPartsService as _0x11ff37,BuiltInUIPart as _0x4b8f05,connectInjector as _0x1731d3,IBeforeCloseService as _0x1df3a1,IMessageService as _0x237ee3,INotificationService as _0x28c976}from'@univerjs/ui';import{BehaviorSubject as _0x17a144,switchMap as _0x5a2e09,of as _0x486e85,takeUntil as _0x40128f,debounceTime as _0x22bb40,Subject as _0x17d6b1,filter as _0x3595d5,merge as _0x3297a0,combineLatest as _0x35d252,fromEvent as _0x5c74ce,shareReplay as _0x1ebfd6,mapTo as _0x1bf97b,distinctUntilChanged as _0x521f46}from'rxjs';import{Tooltip as _0x4eb79d,clsx as _0x2390ec,MessageType as _0x2a6050}from'@univerjs/design';import{useRef as _0x4adab6,createElement as _0x3038a2,forwardRef as _0x101cf4,useCallback as _0x229992}from'react';import{IRemoteInstanceService as _0x5f1708}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x3c6f28,RefRangeService as _0x549280,SetSelectionsOperation as _0x2fd901,SheetsSelectionsService as _0x1d4689,EffectRefRangId as _0x404edc,handleIRemoveRow as _0x509952,handleIRemoveCol as _0xc351e5,handleMoveRange as _0x5b02e3,handleInsertRow as _0x48f81c,handleInsertRangeMoveRight as _0xe37893,handleInsertRangeMoveDown as _0x2f2bce,handleInsertCol as _0x9e94a2,handleDeleteRangeMoveUp as _0x153850,handleDeleteRangeMoveLeft as _0x5d1aa0,runRefRangeMutations as _0x1795c4}from'@univerjs/sheets';import{Shape as _0x2aa38d,Rect as _0x56c146,getColor as _0x3a8468,RegularPolygon as _0x141f61,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0xdb9c8e,Vector2 as _0x1f55fe,SHEET_VIEWPORT_KEY as _0x2f967b,IRenderManagerService as _0x2296f8}from'@univerjs/engine-render';import{HTTPService as _0x4c9e7a,ISocketService as _0x33f814,WebSocketService as _0x3cf009}from'@univerjs/network';import{IDocClipboardService as _0x4120d7,NodePositionConvertToCursor as _0x515150,NodePositionConvertToRectRange as _0x156076,TEXT_RANGE_LAYER_INDEX as _0x197fae,SetDocZoomRatioOperation as _0xc1b86e,DocIMEInputManagerService as _0x296a37,DocStateChangeManagerService as _0x12a220}from'@univerjs/docs-ui';import{IImageIoService as _0x172dee}from'@univerjs/drawing';import{ITransformService as _0x401fcf,CollaborationEvent as _0x533cbf,isTransformMutationFailure as _0x2030ce,isTransformMutationsWithChangesetSuccess as _0x5ee420,RevisionService as _0x38e0cd,ISnapshotServerService as _0x5a0af3}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x353b81,RichTextEditingMutation as _0x535079,DocSelectionManagerService as _0x583272,DocSkeletonManagerService as _0x14f820}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x442451,serializeRangeWithSheet as _0x5da7a2,FormulaExecuteStageType as _0x52926b,FormulaExecutedStateType as _0x2ef5ff,SetFormulaCalculationStartMutation as _0x512216,SetFormulaCalculationNotificationMutation as _0x33d26b}from'@univerjs/engine-formula';import{map as _0x23b0f2,filter as _0x22c5d6,throttleTime as _0x3ac8a3,takeUntil as _0xb21ebd,switchMap as _0x38cf56}from'rxjs/operators';import{SheetSkeletonManagerService as _0x1a837b,getCoordByCell as _0x4e415a,getSheetObject as _0x190bdb}from'@univerjs/sheets-ui';function Ge({ref:_0x2cc47a,..._0x3ecc10}){const _0x50aa0e=_0x23ebe7,{icon:_0x4fadb6,id:_0x338f87,className:_0x59c43d,extend:_0x4806b8,..._0x1b3c83}=_0x3ecc10,_0x42e58f=('univerjs-icon\x20univerjs-icon-'+_0x338f87+'\x20'+(_0x59c43d||''))[_0x50aa0e(0x295)](),_0xe7e41b=_0x4adab6('_'+vi());return At(_0x4fadb6,''+_0x338f87,{'defIds':_0x4fadb6[_0x50aa0e(0x21b)],'idSuffix':_0xe7e41b[_0x50aa0e(0x245)]},{'ref':_0x2cc47a,'className':_0x42e58f,..._0x1b3c83},_0x4806b8);}function At(_0x88c1f8,_0x4bb2e8,_0x302493,_0x1a8224,_0x573296){const _0x2c6600=_0x23ebe7;return _0x3038a2(_0x88c1f8['tag'],{'key':_0x4bb2e8,...gi(_0x88c1f8,_0x302493,_0x573296),..._0x1a8224},(Ei(_0x88c1f8,_0x302493)[_0x2c6600(0x18e)]||[])['map']((_0x2448cd,_0x2d77d4)=>At(_0x2448cd,_0x4bb2e8+'-'+_0x88c1f8[_0x2c6600(0x2a3)]+'-'+_0x2d77d4,_0x302493,void 0x0,_0x573296)));}function gi(_0x1f71c9,_0x2df070,_0x4847aa){const _0x120032=_0x23ebe7,_0x5340da={..._0x1f71c9[_0x120032(0x253)]};_0x4847aa!=null&&_0x4847aa[_0x120032(0x315)]&&_0x5340da[_0x120032(0x151)]===_0x120032(0x315)&&(_0x5340da[_0x120032(0x151)]=_0x4847aa[_0x120032(0x315)]),_0x1f71c9[_0x120032(0x2a3)]==='mask'&&_0x5340da['id']&&(_0x5340da['id']=_0x5340da['id']+_0x2df070['idSuffix']),Object['entries'](_0x5340da)['forEach'](([_0x525d23,_0x41afbc])=>{const _0x1936a0=_0x120032;_0x525d23===_0x1936a0(0x14a)&&typeof _0x41afbc==_0x1936a0(0x1e7)&&(_0x5340da[_0x525d23]=_0x41afbc['replace'](/url\(#(.*)\)/,'url(#$1'+_0x2df070[_0x1936a0(0x2d0)]+')'));});const {defIds:_0x2332b2}=_0x2df070;return!_0x2332b2||_0x2332b2[_0x120032(0xe3)]===0x0||(_0x1f71c9['tag']===_0x120032(0x24b)&&_0x5340da[_0x120032(0x296)]&&(_0x5340da[_0x120032(0x296)]=_0x5340da[_0x120032(0x296)]+_0x2df070['idSuffix']),Object['entries'](_0x5340da)[_0x120032(0x301)](([_0x30deb8,_0x254f8b])=>{const _0xdc14d7=_0x120032;typeof _0x254f8b==_0xdc14d7(0x1e7)&&(_0x5340da[_0x30deb8]=_0x254f8b[_0xdc14d7(0x300)](/url\(#(.*)\)/,_0xdc14d7(0x2d7)+_0x2df070[_0xdc14d7(0x2d0)]+')'));})),_0x5340da;}function Ei(_0x45844f,_0x46fd1d){const _0x3bdac0=_0x23ebe7;var _0x599f1b;const {defIds:_0x3aadb3}=_0x46fd1d;return!_0x3aadb3||_0x3aadb3['length']===0x0?_0x45844f:_0x45844f[_0x3bdac0(0x2a3)]===_0x3bdac0(0x2bd)&&((_0x599f1b=_0x45844f[_0x3bdac0(0x18e)])!=null&&_0x599f1b[_0x3bdac0(0xe3)])?{..._0x45844f,'children':_0x45844f[_0x3bdac0(0x18e)][_0x3bdac0(0x317)](_0x4b3a18=>typeof _0x4b3a18[_0x3bdac0(0x253)]['id']==_0x3bdac0(0x1e7)&&_0x3aadb3&&_0x3aadb3[_0x3bdac0(0x1d1)](_0x4b3a18[_0x3bdac0(0x253)]['id'])?{..._0x4b3a18,'attrs':{..._0x4b3a18[_0x3bdac0(0x253)],'id':_0x4b3a18[_0x3bdac0(0x253)]['id']+_0x46fd1d['idSuffix']}}:_0x4b3a18)}:_0x45844f;}function vi(){const _0x3f6b4a=_0x23ebe7;return Math[_0x3f6b4a(0xd7)]()[_0x3f6b4a(0x264)](0x24)[_0x3f6b4a(0x150)](0x2,0x8);}Ge['displayName']=_0x23ebe7(0x276);const pi={'tag':_0x23ebe7(0x1b3),'attrs':{'xmlns':_0x23ebe7(0x2c3),'fill':_0x23ebe7(0x108),'viewBox':_0x23ebe7(0x28d),'width':_0x23ebe7(0x30b),'height':_0x23ebe7(0x30b)},'children':[{'tag':'g','attrs':{'clipPath':_0x23ebe7(0x1ae)},'children':[{'tag':_0x23ebe7(0x162),'attrs':{'stroke':'currentColor','d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x23ebe7(0x17f),'strokeLinejoin':_0x23ebe7(0x17f),'strokeWidth':1.2}}]},{'tag':_0x23ebe7(0x2bd),'attrs':{},'children':[{'tag':_0x23ebe7(0xdc),'attrs':{'id':_0x23ebe7(0x24f)},'children':[{'tag':'path','attrs':{'fill':_0x23ebe7(0x2a1),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x23ebe7(0x24f)]},Pt=_0x101cf4(function(_0x4f6ada,_0x127c7a){const _0x49f67b=_0x23ebe7;return _0x3038a2(Ge,Object[_0x49f67b(0x1ff)]({},_0x4f6ada,{'id':_0x49f67b(0x133),'ref':_0x127c7a,'icon':pi}));});Pt[_0x23ebe7(0x166)]=_0x23ebe7(0x2b6);const Oi={'tag':_0x23ebe7(0x1b3),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x23ebe7(0x1fb),'width':_0x23ebe7(0x30b),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x23ebe7(0x26c)},'children':[{'tag':'path','attrs':{'stroke':_0x23ebe7(0x2c6),'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':_0x23ebe7(0x17f),'strokeLinejoin':_0x23ebe7(0x17f),'strokeWidth':1.2}}]},{'tag':_0x23ebe7(0x2bd),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x23ebe7(0x303)},'children':[{'tag':_0x23ebe7(0x162),'attrs':{'fill':'white','d':_0x23ebe7(0x2b4),'transform':'translate(.97)'}}]}]}],'defIds':[_0x23ebe7(0x303)]},wt=_0x101cf4(function(_0x174613,_0x171b68){const _0x882174=_0x23ebe7;return _0x3038a2(Ge,Object[_0x882174(0x1ff)]({},_0x174613,{'id':'on-line-icon','ref':_0x171b68,'icon':Oi}));});wt[_0x23ebe7(0x166)]=_0x23ebe7(0x1d4);function Ti(_0x28e7c5){const _0x29ea28=_0x23ebe7;switch(_0x28e7c5){case _0x46761b[_0x29ea28(0x27d)]:return'collabStatus.offline';case _0x46761b[_0x29ea28(0x185)]:return _0x29ea28(0x128);case _0x46761b['FETCH_MISS']:return _0x29ea28(0x308);case _0x46761b['NOT_COLLAB']:return _0x29ea28(0x157);case _0x46761b[_0x29ea28(0x137)]:case _0x46761b[_0x29ea28(0x13c)]:return _0x29ea28(0x293);case _0x46761b[_0x29ea28(0x2a2)]:case _0x46761b['PENDING']:return _0x29ea28(0x2d2);}}function Ci(_0x24c62b){const _0x141dfa=_0x23ebe7,{status$:_0xc361d6}=_0x24c62b,_0x98a054=_0x46236e(_0xc361d6,_0x46761b['NOT_COLLAB']),_0x645af7=_0x46594b(_0x10502b),_0x37163d=_0x46594b(_0x2b5b0a),_0xe55f5d=_0x98a054!==_0x46761b[_0x141dfa(0x27d)],_0x37a82a=_0x645af7['t'](Ti(_0x98a054)),_0x1a1175=_0xe55f5d?_0x31169a(wt,{}):_0x31169a(Pt,{}),_0x493282=_0x229992(()=>{const _0x50289c=_0x141dfa;_0xe55f5d||_0x37163d[_0x50289c(0x1a1)]();},[_0xe55f5d,_0x37163d]);function _0xb98f0a(){const _0x11f553=_0x141dfa;return _0x327a09('div',{'className':_0x11f553(0x22c),'onClick':_0x493282,'children':[_0x31169a(_0x11f553(0x17d),{'className':_0x2390ec(_0x11f553(0x29e),{'univer-text-green-500':_0xe55f5d,'univer-text-red-500':!_0xe55f5d}),'children':_0x1a1175}),_0x31169a(_0x11f553(0x17d),{'className':_0x11f553(0x288),'children':_0x37a82a})]});}return _0xe55f5d?_0xb98f0a():_0x31169a(_0x4eb79d,{'title':_0x645af7['t'](_0x141dfa(0x1b5)),'children':_0xb98f0a()});}var Ri=Object[_0x23ebe7(0x2dd)],Di=(_0x2c1d0d,_0x536eef,_0x2474ba,_0x531a2c)=>{const _0x1bcea4=_0x23ebe7;for(var _0x13496d=_0x531a2c>0x1?void 0x0:_0x531a2c?Ri(_0x536eef,_0x2474ba):_0x536eef,_0x9b82aa=_0x2c1d0d[_0x1bcea4(0xe3)]-0x1,_0x3c964b;_0x9b82aa>=0x0;_0x9b82aa--)(_0x3c964b=_0x2c1d0d[_0x9b82aa])&&(_0x13496d=_0x3c964b(_0x13496d)||_0x13496d);return _0x13496d;},se=(_0x2275cb,_0x192b54)=>(_0x298f41,_0x2324ed)=>_0x192b54(_0x298f41,_0x2324ed,_0x2275cb);let ae=class extends _0x1bbcbc{constructor(_0x1e0d5e,_0x19c41a,_0x5cda0d,_0x3b34e7){const _0x180c5f=_0x23ebe7;super(),_(this,_0x180c5f(0x1df),new _0x17a144(_0x46761b['NOT_COLLAB'])),(this[_0x180c5f(0x148)]=_0x1e0d5e,this[_0x180c5f(0xea)]=_0x19c41a,this[_0x180c5f(0x132)]=_0x5cda0d,this['_uiPartsService']=_0x3b34e7,this['_initStatusComponent'](),this['_initStatusListener']());}['_initStatusListener'](){const _0x1b7631=_0x23ebe7;this[_0x1b7631(0x20d)](this[_0x1b7631(0x148)][_0x1b7631(0x2a5)][_0x1b7631(0x1a3)](_0x5a2e09(()=>{const _0x1f8649=_0x1b7631,_0x1eae36=this[_0x1f8649(0x148)][_0x1f8649(0x10f)]();return _0x1eae36?this[_0x1f8649(0x132)][_0x1f8649(0x1bb)](_0x1eae36['getUnitId']()):_0x486e85(null);}),_0x5a2e09(_0x1ce897=>_0x1ce897?_0x1ce897[_0x1b7631(0x12f)]:_0x486e85(_0x46761b['NOT_COLLAB'])))['subscribe'](_0x216dae=>{const _0x500fd6=_0x1b7631;this[_0x500fd6(0x1df)]['next'](_0x216dae);}));}['_initStatusComponent'](){const _0x3c5c7a=_0x23ebe7;this[_0x3c5c7a(0x20d)](this[_0x3c5c7a(0x254)]['registerComponent'](_0x4b8f05['HEADER_MENU'],()=>_0x1731d3(Ni({'status$':this[_0x3c5c7a(0x1df)][_0x3c5c7a(0x30f)]()}),this[_0x3c5c7a(0xea)])));}};ae=Di([se(0x0,_0x2e4fbc),se(0x1,_0xe188da(_0x402c05)),se(0x2,_0xe188da(_0x585ed2)),se(0x3,_0x11ff37)],ae);function Ni(_0x384cde){const {status$:_0x1a2d6a}=_0x384cde;return function(){return _0x31169a(Ci,{'status$':_0x1a2d6a});};}const yt=_0xd4c577(_0x23ebe7(0x18f));var bi=Object[_0x23ebe7(0x2dd)],Li=(_0x2da001,_0x1e6c67,_0x2d2e50,_0x3f8a64)=>{for(var _0x25e15b=_0x3f8a64>0x1?void 0x0:_0x3f8a64?bi(_0x1e6c67,_0x2d2e50):_0x1e6c67,_0x41d16b=_0x2da001['length']-0x1,_0x452396;_0x41d16b>=0x0;_0x41d16b--)(_0x452396=_0x2da001[_0x41d16b])&&(_0x25e15b=_0x452396(_0x25e15b)||_0x25e15b);return _0x25e15b;},K=(_0x18ff39,_0x3f67dd)=>(_0x369aa3,_0x24c263)=>_0x3f67dd(_0x369aa3,_0x24c263,_0x18ff39);let ce=class extends _0x6981fd{constructor(_0x193db0,_0x402594,_0x3c40f7,_0x30cf93,_0x2c536d){const _0x276a12=_0x23ebe7;super(),this['_urlService']=_0x193db0,this[_0x276a12(0x114)]=_0x402594,this['_commandService']=_0x3c40f7,this[_0x276a12(0x220)]=_0x30cf93,_0x2c536d?_0x2c536d==null||_0x2c536d[_0x276a12(0x1be)]()[_0x276a12(0x226)](()=>this['_init']()):(this[_0x276a12(0x114)][_0x276a12(0x2af)](_0x276a12(0x212),_0x276a12(0x158)),this[_0x276a12(0x2ae)]());}async[_0x23ebe7(0x2ae)](){const _0x59dcaa=_0x23ebe7,_0x65af6e=this[_0x59dcaa(0x136)][_0x59dcaa(0x131)]('unit'),_0x525637=this[_0x59dcaa(0x136)][_0x59dcaa(0x131)](_0x59dcaa(0x2e6)),_0x2da636=this['_urlService']['getParam'](_0x59dcaa(0x244));if(!_0x65af6e||!_0x525637){this[_0x59dcaa(0x114)]['debug'](_0x59dcaa(0x212),_0x59dcaa(0x25d));return;}const _0x4cf3ac=await this['_dataLoaderService'][_0x59dcaa(0x12c)](_0x65af6e,Number(_0x525637),_0x2da636);_0x4cf3ac&&_0x4cf3ac instanceof _0x468379&&this[_0x59dcaa(0x161)](_0x4cf3ac);}async[_0x23ebe7(0x161)](_0x58dba1){const _0x49dd3a=_0x23ebe7;await this[_0x49dd3a(0x2fa)](_0x58dba1),_0x58dba1[_0x49dd3a(0xf1)][_0x49dd3a(0x1a3)](_0x40128f(this[_0x49dd3a(0x255)]))[_0x49dd3a(0x19c)](_0x320906=>{const _0x2b0ec9=_0x49dd3a;_0x320906&&this[_0x2b0ec9(0x2c9)](_0x320906);}),this['_urlService'][_0x49dd3a(0x29c)][_0x49dd3a(0x1a3)](_0x40128f(this['dispose$']))[_0x49dd3a(0x19c)](()=>this[_0x49dd3a(0x2fa)](_0x58dba1));}[_0x23ebe7(0x2c9)](_0x4c2667,_0x173740=!0x1){const _0x4fc989=_0x23ebe7,_0x566f8e=this[_0x4fc989(0x136)]['getParam'](_0x4fc989(0x244));_0x4c2667[_0x4fc989(0x28c)]()!==_0x566f8e&&this[_0x4fc989(0x136)][_0x4fc989(0x12b)](_0x4fc989(0x244),_0x4c2667[_0x4fc989(0x28c)](),_0x173740);}async[_0x23ebe7(0x2fa)](_0x2c04dd){const _0x1e62ce=_0x23ebe7;var _0x5673e9;const _0x1e1303=this[_0x1e62ce(0x136)]['getParam'](_0x1e62ce(0x244));if(!_0x1e1303||!_0x2c04dd[_0x1e62ce(0x2b7)](_0x1e1303)){const _0x1b1edc=_0x2c04dd[_0x1e62ce(0x21e)]()[0x0],_0x24c751=_0x2c04dd[_0x1e62ce(0x2b7)](_0x1b1edc);if(!_0x24c751)return;this['_updateURLWithCurrentState'](_0x24c751,!0x0),await this[_0x1e62ce(0x2be)]['executeCommand'](_0x3c6f28['id'],{'unitId':_0x2c04dd[_0x1e62ce(0x10a)](),'subUnitId':_0x1b1edc});return;}((_0x5673e9=_0x2c04dd['getActiveSheet']())==null?void 0x0:_0x5673e9[_0x1e62ce(0x28c)]())!==_0x1e1303&&await this[_0x1e62ce(0x2be)][_0x1e62ce(0x236)](_0x3c6f28['id'],{'unitId':_0x2c04dd[_0x1e62ce(0x10a)](),'subUnitId':_0x1e1303});}};ce=Li([K(0x0,yt),K(0x1,_0xe57380),K(0x2,_0x16d352),K(0x3,_0xe188da(_0x51f890)),K(0x4,_0xf9aec1(_0x5f1708))],ce);var Ui=Object[_0x23ebe7(0x2dd)],Mi=(_0x4ed56f,_0x341469,_0x5a6ba3,_0x41f0fc)=>{const _0x2e0544=_0x23ebe7;for(var _0x22004f=_0x41f0fc>0x1?void 0x0:_0x41f0fc?Ui(_0x341469,_0x5a6ba3):_0x341469,_0x2e67bf=_0x4ed56f[_0x2e0544(0xe3)]-0x1,_0x428362;_0x2e67bf>=0x0;_0x2e67bf--)(_0x428362=_0x4ed56f[_0x2e67bf])&&(_0x22004f=_0x428362(_0x22004f)||_0x22004f);return _0x22004f;},rt=(_0x525672,_0x4e03c3)=>(_0x5d20b6,_0x40dbc9)=>_0x4e03c3(_0x5d20b6,_0x40dbc9,_0x525672);let $e=class extends _0x6981fd{constructor(_0x376930,_0x532a7f){const _0x327347=_0x23ebe7;super(),this[_0x327347(0x13e)]=_0x376930,this[_0x327347(0x171)]=_0x532a7f,this[_0x327347(0x2ae)]();}[_0x23ebe7(0x2ae)](){const _0x8369d4=this;this['disposeWithMe'](this['_docClipboardService']['addClipboardHook']({'onBeforePasteImage':async _0x399d76=>{const _0x5799da=_0x1473,_0x4c30cb=await _0x8369d4[_0x5799da(0x171)]['saveImage'](_0x399d76);return _0x4c30cb?{'source':_0x4c30cb[_0x5799da(0x2e3)],'imageSourceType':_0x4c30cb[_0x5799da(0xf0)]}:null;}}));}};$e=Mi([rt(0x0,_0x4120d7),rt(0x1,_0x172dee)],$e);const ot=[_0x23ebe7(0x1ef),_0x23ebe7(0xda),_0x23ebe7(0x2b1),_0x23ebe7(0x15e),_0x23ebe7(0x30d),'yellow.400'];class Ke extends _0x1bbcbc{constructor(){const _0x4812c4=_0x23ebe7;super(...arguments),_(this,_0x4812c4(0x2ab),new Map()),_(this,_0x4812c4(0x1bf),0x0);}[_0x23ebe7(0x198)](_0x490adc){const _0x570b1f=_0x23ebe7;if(this['_assignedColors'][_0x570b1f(0x30a)](_0x490adc))return this['_assignedColors'][_0x570b1f(0x2e0)](_0x490adc);const _0x265244=ot[this[_0x570b1f(0x1bf)]];return this[_0x570b1f(0x1bf)]=(this['_colorIndex']+0x1)%ot[_0x570b1f(0xe3)],this['_assignedColors'][_0x570b1f(0xc3)](_0x490adc,_0x265244),_0x265244;}}function $t(_0x231da1){const _0x15d4f8=_0x23ebe7;let _0x5e7eef='';for(const _0x3d30a3 of _0x231da1){const {startOffset:_0x278ebd,endOffset:_0x180a8f,isActive:_0xf301f7,rangeType:_0xb20c6a,segmentId:_0x57d071,segmentPage:_0x3bb333}=_0x3d30a3;_0x5e7eef[_0x15d4f8(0xe3)]&&(_0x5e7eef+=','),_0x5e7eef+=_0x278ebd+':'+_0x180a8f+':'+(_0xf301f7?'1':'0')+':'+_0xb20c6a+':'+_0x57d071+':'+_0x3bb333;}return _0x5e7eef;}function Ai(_0x4530c0){const _0x2d2637=_0x23ebe7,_0x2e950d=_0x4530c0[_0x2d2637(0x1d5)](','),_0x327b8e=[];for(const _0x334919 of _0x2e950d){const [_0x235aed,_0x455a60,_0x300588,_0x1a0ab4,_0x3ae1d9,_0x305b72]=_0x334919[_0x2d2637(0x1d5)](':');_0x327b8e['push']({'startOffset':Number(_0x235aed),'endOffset':Number(_0x455a60),'collapsed':_0x235aed===_0x455a60,'isActive':_0x300588==='1','rangeType':_0x1a0ab4===_0x6170ae[_0x2d2637(0x1c1)]?_0x6170ae['TEXT']:_0x6170ae[_0x2d2637(0x2dc)],'segmentId':typeof _0x3ae1d9==_0x2d2637(0x1e7)?String(_0x3ae1d9):'','segmentPage':Number(_0x305b72!=null?_0x305b72:-0x1)});}return _0x327b8e[_0x2d2637(0x135)](_0x2190df=>_0x2190df[_0x2d2637(0x1a4)])||(_0x327b8e[0x0][_0x2d2637(0x1a4)]=!0x0),_0x327b8e;}class ze extends _0x6981fd{constructor(){const _0x44c5a0=_0x23ebe7;super(...arguments),_(this,_0x44c5a0(0x29b),new _0x17a144(null)),_(this,_0x44c5a0(0x271),this[_0x44c5a0(0x29b)][_0x44c5a0(0x30f)]());}[_0x23ebe7(0x174)](_0x4993cb){const _0x68556c=_0x23ebe7,{unitID:_0x33c601,memberID:_0x461712,textRanges:_0x38de8d}=_0x4993cb,_0x3cf3fa=$t(_0x38de8d);if(_0x3cf3fa==='')return;const _0x1ef978={'unitID':_0x33c601,'memberID':_0x461712,'selection':_0x3cf3fa};this[_0x68556c(0x29b)]['next'](_0x1ef978);}}var Pi=Object['getOwnPropertyDescriptor'],wi=(_0x3479a1,_0x295211,_0x559488,_0x5693dc)=>{for(var _0x1faf0d=_0x5693dc>0x1?void 0x0:_0x5693dc?Pi(_0x295211,_0x559488):_0x295211,_0x4f3a5c=_0x3479a1['length']-0x1,_0x3575d6;_0x4f3a5c>=0x0;_0x4f3a5c--)(_0x3575d6=_0x3479a1[_0x4f3a5c])&&(_0x1faf0d=_0x3575d6(_0x1faf0d)||_0x1faf0d);return _0x1faf0d;},A=(_0x59961a,_0xc73a54)=>(_0x500765,_0x3b0ae1)=>_0xc73a54(_0x500765,_0x3b0ae1,_0x59961a);const yi=0x12c,$i=0x64;let xe=class extends _0x6981fd{constructor(_0x253bcf,_0x56132b,_0x4d5cd6,_0x2947af,_0x10a2ea,_0x296c46,_0x31e690,_0x1ed5f9,_0x33e6cb){const _0x400db2=_0x23ebe7;super(),_(this,_0x400db2(0x1f7),!0x1),_(this,_0x400db2(0x2ae),!0x1),_(this,_0x400db2(0xe0),new _0x17a144(new Map())),_(this,_0x400db2(0xf9),this['_cursorInfo$'][_0x400db2(0x30f)]()),_(this,_0x400db2(0x17a),new _0x17a144([])),_(this,'roomMembers$',this[_0x400db2(0x17a)][_0x400db2(0x1a3)](_0x22bb40(yi))),_(this,'_updateLocalCursor',_0x2ee2a9(_0xe77007=>{const _0x48bf2a=_0x400db2,_0x527e72={'eventID':_0x533cbf['UPDATE_CURSOR'],'data':{'unitID':this[_0x48bf2a(0x1cf)],'memberID':this[_0x48bf2a(0x175)]['getMemberID'](),'selection':$t(_0xe77007)}};this[_0x48bf2a(0x175)]['send'](_0x527e72,this[_0x48bf2a(0x1cf)]);},$i)),(this[_0x400db2(0x1cf)]=_0x253bcf,this[_0x400db2(0x175)]=_0x56132b,this['_injector']=_0x4d5cd6,this[_0x400db2(0x124)]=_0x2947af,this[_0x400db2(0x280)]=_0x10a2ea,this[_0x400db2(0x2e5)]=_0x296c46,this['_transformService']=_0x31e690,this[_0x400db2(0x148)]=_0x1ed5f9,this[_0x400db2(0x2be)]=_0x33e6cb);}get[_0x23ebe7(0x2a9)](){return this['_cursorInfo$']['getValue']();}get[_0x23ebe7(0x2f3)](){const _0x41c617=_0x23ebe7;return this[_0x41c617(0x17a)][_0x41c617(0x2e1)]();}[_0x23ebe7(0x2f0)](){const _0x27e2c4=_0x23ebe7;super[_0x27e2c4(0x2f0)](),this['_cursorInfo$'][_0x27e2c4(0x259)](new Map()),this[_0x27e2c4(0xe0)][_0x27e2c4(0xd3)](),this[_0x27e2c4(0x17a)][_0x27e2c4(0x259)]([]),this[_0x27e2c4(0x17a)][_0x27e2c4(0xd3)]();}[_0x23ebe7(0x1e4)](){const _0x2f0ecf=_0x23ebe7;this[_0x2f0ecf(0x2ae)]||(this[_0x2f0ecf(0x2ae)]=!0x0,this['_session'][_0x2f0ecf(0x314)]['pipe'](_0x40128f(this['dispose$']))['subscribe'](_0x52a20b=>{const _0x22c6e4=_0x2f0ecf;_0x52a20b===_0xa1e56c[_0x22c6e4(0xd8)]?this['_toggleOnline']():this[_0x22c6e4(0x19f)]();}),this[_0x2f0ecf(0x175)][_0x2f0ecf(0x2d9)][_0x2f0ecf(0x1a3)](_0x40128f(this[_0x2f0ecf(0x255)]))['subscribe'](_0x26540b=>{const _0x9f1c24=_0x2f0ecf,_0x5b3379=_0x26540b[_0x9f1c24(0x176)];_0x5b3379===_0x533cbf['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x26540b),_0x5b3379===_0x533cbf[_0x9f1c24(0x106)]&&this[_0x9f1c24(0x19b)](_0x26540b);}),this[_0x2f0ecf(0x20d)](this[_0x2f0ecf(0x2be)]['onCommandExecuted'](_0x2d3cfc=>{const _0x1d6586=_0x2f0ecf,_0x2406e7=_0x2d3cfc[_0x1d6586(0x201)];_0x2406e7!=null&&this[_0x1d6586(0x1f7)]&&_0x2d3cfc['id']===_0x353b81['id']&&_0x2406e7['unitId']===this['unitID']&&_0x2406e7[_0x1d6586(0x16e)]===!0x1&&_0x2406e7[_0x1d6586(0x28b)][_0x1d6586(0xe3)]>0x0&&this[_0x1d6586(0x20f)](_0x2406e7[_0x1d6586(0x28b)]);})),this[_0x2f0ecf(0x2e5)][_0x2f0ecf(0x271)][_0x2f0ecf(0x1a3)](_0x40128f(this[_0x2f0ecf(0x255)]))[_0x2f0ecf(0x19c)](_0x525dfd=>{const _0x253282=_0x2f0ecf;if((_0x525dfd==null?void 0x0:_0x525dfd[_0x253282(0x1cf)])!==this[_0x253282(0x1cf)])return;const _0x40ddad={'eventID':_0x533cbf[_0x253282(0x299)],'data':_0x525dfd};this[_0x253282(0x100)](_0x40ddad);}),this[_0x2f0ecf(0x20d)](this['_commandService']['onCommandExecuted'](_0x3e7009=>{const _0x31522c=_0x2f0ecf;if(_0x3e7009[_0x31522c(0x201)]==null)return;const _0x50144a=_0x3e7009[_0x31522c(0x201)];if(_0x3e7009['id']!==_0x535079['id']||_0x50144a[_0x31522c(0x29f)]!==this[_0x31522c(0x1cf)])return;const _0x18cec8={'id':'doc.mutation.rich-text-editing','params':_0x50144a},_0x5510ba=this[_0x31522c(0x2a9)];for(const [_0x4b3ac1,_0x5a4726]of _0x5510ba){const _0x56c7fd={'id':_0x31522c(0x26b),'params':{'unitId':this[_0x31522c(0x1cf)],'actions':null,'textRanges':_0x5a4726[_0x31522c(0x28b)]}},_0x335c3d=this['_transformService'][_0x31522c(0x217)](_0x18cec8,_0x56c7fd,!0x1);if(_0x2030ce(_0x335c3d))throw _0x335c3d[_0x31522c(0x278)];_0x5510ba[_0x31522c(0xc3)](_0x4b3ac1,{..._0x5a4726,'ranges':_0x335c3d[_0x31522c(0x25e)][_0x31522c(0x201)][_0x31522c(0x239)]});}queueMicrotask(()=>{const _0xa07be2=_0x31522c;this[_0xa07be2(0xe0)]['next'](_0x5510ba);});})));}[_0x23ebe7(0x100)](_0x450531){const _0x4c7c39=_0x23ebe7;var _0x24c8ad,_0x1f01e6;const {memberID:_0x2e9170,selection:_0x5a45c1}=_0x450531[_0x4c7c39(0x121)],_0x3d263e=Ai(_0x5a45c1),_0xe0c8ea=(_0x1f01e6=(_0x24c8ad=this[_0x4c7c39(0x280)][_0x4c7c39(0x213)](this[_0x4c7c39(0x1cf)],_0x2e9170))==null?void 0x0:_0x24c8ad['name'])!=null?_0x1f01e6:_0x4c7c39(0x2b8),_0x3bbbe5={'color':this['_colorAssignService'][_0x4c7c39(0x198)](_0x2e9170),'name':_0xe0c8ea,'ranges':_0x3d263e},_0x49b42d=this[_0x4c7c39(0x2a9)];_0x49b42d[_0x4c7c39(0xc3)](_0x2e9170,_0x3bbbe5),this[_0x4c7c39(0xe0)]['next'](_0x49b42d);}[_0x23ebe7(0x19b)](_0x3419e3){const _0x2b97d6=_0x23ebe7,{memberID:_0x38e56c}=_0x3419e3[_0x2b97d6(0x121)],_0x1dd83c=this[_0x2b97d6(0x2a9)];_0x1dd83c[_0x2b97d6(0xe9)](_0x38e56c),this[_0x2b97d6(0xe0)][_0x2b97d6(0x259)](_0x1dd83c);}['_toggleOnline'](){const _0x4a2b07=_0x23ebe7;var _0x20c9a3;if(this[_0x4a2b07(0x1f7)]=!0x0,((_0x20c9a3=this['_univerInstanceService'][_0x4a2b07(0x10f)]())==null?void 0x0:_0x20c9a3[_0x4a2b07(0x10a)]())!==this['unitID'])return;const _0x172a5a=this['_injector'][_0x4a2b07(0x2e0)](_0x583272)[_0x4a2b07(0x249)]();Array['isArray'](_0x172a5a)&&_0x172a5a[_0x4a2b07(0xe3)]>0x0&&this[_0x4a2b07(0x20f)](_0x172a5a);}['_toggleOffline'](){const _0x5925e8=_0x23ebe7;this[_0x5925e8(0x1f7)]=!0x1;}};xe=wi([A(0x2,_0xe188da(_0x402c05)),A(0x3,_0xe188da(Ke)),A(0x4,_0xe188da(_0x381953)),A(0x5,_0xe188da(ze)),A(0x6,_0x401fcf),A(0x7,_0x2e4fbc),A(0x8,_0x16d352)],xe);var xi=Object[_0x23ebe7(0x2dd)],Bi=(_0x3fa492,_0x28a34c,_0x4cfdb2,_0x5eab05)=>{const _0x1657b9=_0x23ebe7;for(var _0xa3938a=_0x5eab05>0x1?void 0x0:_0x5eab05?xi(_0x28a34c,_0x4cfdb2):_0x28a34c,_0x2a99fc=_0x3fa492[_0x1657b9(0xe3)]-0x1,_0x25f6b4;_0x2a99fc>=0x0;_0x2a99fc--)(_0x25f6b4=_0x3fa492[_0x2a99fc])&&(_0xa3938a=_0x25f6b4(_0xa3938a)||_0xa3938a);return _0xa3938a;},B=(_0x143d85,_0x5c4d38)=>(_0xa88f5,_0x25f603)=>_0x5c4d38(_0xa88f5,_0x25f603,_0x143d85);const Fi=0x12c,ki=0x64,Hi=()=>{let _0xb73f72=[],_0x1fae82=!0x1;return _0x506aab=>{const _0x24b9c4=_0x1473;_0xb73f72[_0x24b9c4(0x19a)](_0x506aab),_0x1fae82||(_0x1fae82=!0x0,setTimeout(()=>{const _0x2dbf66=_0x24b9c4;_0xb73f72[_0x2dbf66(0x301)](_0x16bc52=>_0x16bc52()),_0xb73f72=[],_0x1fae82=!0x1;}));};};let Be=class extends _0x6981fd{constructor(_0x36024f,_0x2ff86f,_0x143c5c,_0x3ca328,_0x2e4125,_0x483130,_0x2c40a1,_0x1e84af){const _0x1404bb=_0x23ebe7;super(),_(this,_0x1404bb(0x1f7),!0x1),_(this,_0x1404bb(0x2ae),!0x1),_(this,_0x1404bb(0xe0),new _0x17a144(new Map())),_(this,'cursorInfo$',this[_0x1404bb(0xe0)][_0x1404bb(0x30f)]()),_(this,_0x1404bb(0x17a),new _0x17a144([])),_(this,_0x1404bb(0x2de),this[_0x1404bb(0x17a)][_0x1404bb(0x1a3)](_0x22bb40(Fi))),_(this,_0x1404bb(0x20f),_0x2ee2a9((_0x1bdb86,_0x4108b1)=>{const _0x54825b=_0x1404bb,_0x2ae76d={'eventID':_0x533cbf[_0x54825b(0x299)],'data':{'unitID':this[_0x54825b(0x1cf)],'memberID':this[_0x54825b(0x175)][_0x54825b(0xfa)](),'selection':_0x5da7a2(_0x1bdb86,_0x4108b1[_0x54825b(0x1b4)])}};this['_session'][_0x54825b(0x218)](_0x2ae76d,this[_0x54825b(0x1cf)]);},ki)),(this['unitID']=_0x36024f,this[_0x1404bb(0x175)]=_0x2ff86f,this[_0x1404bb(0xea)]=_0x143c5c,this[_0x1404bb(0x124)]=_0x3ca328,this[_0x1404bb(0x280)]=_0x2e4125,this[_0x1404bb(0x148)]=_0x483130,this[_0x1404bb(0x2be)]=_0x2c40a1,this['_refRangeService']=_0x1e84af);}get[_0x23ebe7(0x2a9)](){const _0x48ff59=_0x23ebe7;return this['_cursorInfo$'][_0x48ff59(0x2e1)]();}get[_0x23ebe7(0x2f3)](){const _0x2992de=_0x23ebe7;return this[_0x2992de(0x17a)][_0x2992de(0x2e1)]();}['dispose'](){const _0x42dafc=_0x23ebe7;super[_0x42dafc(0x2f0)](),this[_0x42dafc(0xe0)][_0x42dafc(0x259)](new Map()),this['_cursorInfo$'][_0x42dafc(0xd3)](),this[_0x42dafc(0x17a)][_0x42dafc(0x259)]([]),this[_0x42dafc(0x17a)][_0x42dafc(0xd3)]();}['init'](){const _0x1fac62=_0x23ebe7;this[_0x1fac62(0x2ae)]||(this[_0x1fac62(0x2ae)]=!0x0,this[_0x1fac62(0x175)]['sessionStatus$']['pipe'](_0x40128f(this['dispose$']))[_0x1fac62(0x19c)](_0x620286=>{const _0x123cd7=_0x1fac62;_0x620286===_0xa1e56c[_0x123cd7(0xd8)]?this[_0x123cd7(0x153)]():this[_0x123cd7(0x19f)]();}),this['_session'][_0x1fac62(0x2d9)][_0x1fac62(0x1a3)](_0x40128f(this[_0x1fac62(0x255)]))[_0x1fac62(0x19c)](_0x299404=>{const _0x1b645b=_0x1fac62,_0x5916d5=_0x299404[_0x1b645b(0x176)];_0x5916d5===_0x533cbf[_0x1b645b(0x299)]&&this[_0x1b645b(0x100)](_0x299404),_0x5916d5===_0x533cbf[_0x1b645b(0x106)]&&this[_0x1b645b(0x19b)](_0x299404);}),this['_onRefRangeChange'](),this[_0x1fac62(0x20d)](this[_0x1fac62(0x2be)][_0x1fac62(0x10d)](_0x4f50d1=>{const _0x1262da=_0x1fac62;if(this[_0x1262da(0x1f7)]&&_0x4f50d1['id']===_0x2fd901['id']&&_0x4f50d1['params'][_0x1262da(0x29f)]===this['unitID']){const _0x4482bd=_0x4f50d1[_0x1262da(0x201)];this['_updateLocalCursor'](_0x4482bd[_0x1262da(0x2f5)],_0x4482bd[_0x1262da(0xcd)][0x0]);}})));}['_onCursorUpdate'](_0x4e4335){const _0x532cc6=_0x23ebe7;var _0x316f10,_0x1ed39b;const {memberID:_0x4c959a,selection:_0x310b53}=_0x4e4335[_0x532cc6(0x121)],{sheetName:_0x447ba6,range:_0x1c3058}=_0x442451(_0x310b53),_0x3a9164={'name':(_0x1ed39b=(_0x316f10=this[_0x532cc6(0x280)][_0x532cc6(0x213)](this[_0x532cc6(0x1cf)],_0x4c959a))==null?void 0x0:_0x316f10[_0x532cc6(0x109)])!=null?_0x1ed39b:_0x532cc6(0x2b8),'range':this['_getMergeRange'](_0x447ba6,_0x1c3058),'sheetID':_0x447ba6,'color':this[_0x532cc6(0x124)][_0x532cc6(0x198)](_0x4c959a),'selection':_0x310b53},_0x41ec3a=this[_0x532cc6(0x2a9)];_0x41ec3a[_0x532cc6(0xc3)](_0x4c959a,_0x3a9164),this[_0x532cc6(0xe0)]['next'](_0x41ec3a);}[_0x23ebe7(0x19b)](_0xeeb424){const _0xa3020c=_0x23ebe7,{memberID:_0x555e08}=_0xeeb424[_0xa3020c(0x121)],_0x5693ef=this[_0xa3020c(0x2a9)];_0x5693ef[_0xa3020c(0xe9)](_0x555e08),this[_0xa3020c(0xe0)]['next'](_0x5693ef);}[_0x23ebe7(0x115)](_0x8731ac,_0x5a4ea4){const _0x34263d=_0x23ebe7;var _0x4771f5,_0xc70be7;const _0x401506=(_0xc70be7=(_0x4771f5=this[_0x34263d(0x148)][_0x34263d(0x2d1)](this[_0x34263d(0x1cf)]))==null?void 0x0:_0x4771f5[_0x34263d(0x2b7)](_0x8731ac))==null?void 0x0:_0xc70be7[_0x34263d(0x141)]();return(_0x401506==null?void 0x0:_0x401506[_0x34263d(0x216)](_0x1bf9e7=>_0x1b9706[_0x34263d(0x156)](_0x1bf9e7,_0x5a4ea4)))||_0x5a4ea4;}['_onRefRangeChange'](){const _0x24ae36=_0x23ebe7,_0x2aec8a=new _0x5072fa(),_0x35a221=Hi(),_0x4e5d47=()=>{const _0x4cbbd6=_0x1473;_0x2aec8a[_0x4cbbd6(0x2f0)]();const _0x268097=(_0x527820,_0x5273e6,_0x580c8f,_0xe7856e)=>{const _0x4a07e7=_0x4cbbd6;let _0x4efd05=[];switch(_0x527820['id']){case _0x404edc[_0x4a07e7(0x2e9)]:{_0x4efd05=_0x5d1aa0(_0x527820,_0xe7856e);break;}case _0x404edc[_0x4a07e7(0x26e)]:{_0x4efd05=_0x153850(_0x527820,_0xe7856e);break;}case _0x404edc[_0x4a07e7(0x13d)]:{_0x4efd05=_0x9e94a2(_0x527820,_0xe7856e);break;}case _0x404edc[_0x4a07e7(0x2a8)]:{_0x4efd05=_0x2f2bce(_0x527820,_0xe7856e);break;}case _0x404edc['InsertRangeMoveRightCommandId']:{_0x4efd05=_0xe37893(_0x527820,_0xe7856e);break;}case _0x404edc['InsertRowCommandId']:{_0x4efd05=_0x48f81c(_0x527820,_0xe7856e);break;}case _0x404edc[_0x4a07e7(0xf8)]:{_0x4efd05=_0x5b02e3(_0x527820,_0xe7856e);break;}case _0x404edc[_0x4a07e7(0x192)]:{_0x4efd05=_0xc351e5(_0x527820,_0xe7856e);break;}case _0x404edc[_0x4a07e7(0x190)]:{_0x4efd05=_0x509952(_0x527820,_0xe7856e);break;}}const _0x1a3a89=_0x1795c4(_0x4efd05,_0xe7856e),_0x560120=this[_0x4a07e7(0x2a9)][_0x4a07e7(0x2e0)](_0x5273e6);if(_0x560120&&_0x1a3a89){const _0x5b9457={..._0x560120,'range':_0x1a3a89};this[_0x4a07e7(0x2a9)][_0x4a07e7(0xc3)](_0x5273e6,_0x5b9457),_0x35a221(()=>{const _0x4b970a=_0x4a07e7,_0x129d60=this[_0x4b970a(0x113)][_0x4b970a(0x11c)](_0x1a3a89,_0x3708f9=>(_0x129d60[_0x4b970a(0x2f0)](),_0x268097(_0x3708f9,_0x5273e6,_0x580c8f,_0x1a3a89)));_0x2aec8a[_0x4b970a(0x15d)](_0x129d60);});}return{'redos':[],'undos':[]};};this[_0x4cbbd6(0x2a9)][_0x4cbbd6(0x301)]((_0x3704b9,_0x42b648)=>{const _0x5693f8=_0x4cbbd6,{range:_0x176bc9,sheetID:_0x20c58f}=_0x3704b9,_0x1824de=this[_0x5693f8(0x113)][_0x5693f8(0x11c)](_0x176bc9,_0x558013=>(_0x1824de[_0x5693f8(0x2f0)](),_0x268097(_0x558013,_0x42b648,_0x20c58f,_0x176bc9)));_0x2aec8a[_0x5693f8(0x15d)](_0x1824de);});};this[_0x24ae36(0x20d)](_0x527ea8(this[_0x24ae36(0xe0)]['subscribe'](()=>{_0x4e5d47();})));}['_toggleOnline'](){const _0x822a25=_0x23ebe7;var _0x201b5d,_0x30fd0b;if(this['_online']=!0x0,((_0x201b5d=this[_0x822a25(0x148)][_0x822a25(0x10f)]())==null?void 0x0:_0x201b5d['getUnitId']())!==this[_0x822a25(0x1cf)])return;const _0x1299f1=(_0x30fd0b=this['_injector'][_0x822a25(0x2e0)](_0x1d4689)[_0x822a25(0x2ee)]())==null?void 0x0:_0x30fd0b[0x0],_0x5a2cfb=this[_0x822a25(0x148)][_0x822a25(0x307)](_0x4815c4[_0x822a25(0xdb)])[_0x822a25(0x18a)]();_0x1299f1&&_0x5a2cfb&&this['_updateLocalCursor'](_0x5a2cfb[_0x822a25(0x28c)](),_0x1299f1);}[_0x23ebe7(0x19f)](){const _0x46a7d5=_0x23ebe7;this[_0x46a7d5(0x1f7)]=!0x1;}};Be=Bi([B(0x2,_0xe188da(_0x402c05)),B(0x3,_0xe188da(Ke)),B(0x4,_0xe188da(_0x381953)),B(0x5,_0x2e4fbc),B(0x6,_0x16d352),B(0x7,_0xe188da(_0x549280))],Be);var Yi=Object['getOwnPropertyDescriptor'],Wi=(_0x3310b2,_0x42366c,_0x31b7f4,_0x52d7a0)=>{for(var _0x446c88=_0x52d7a0>0x1?void 0x0:_0x52d7a0?Yi(_0x42366c,_0x31b7f4):_0x42366c,_0xdb93cb=_0x3310b2['length']-0x1,_0x5b8978;_0xdb93cb>=0x0;_0xdb93cb--)(_0x5b8978=_0x3310b2[_0xdb93cb])&&(_0x446c88=_0x5b8978(_0x446c88)||_0x446c88);return _0x446c88;},Ce=(_0x3b73dc,_0x248393)=>(_0x3bb680,_0x34d633)=>_0x248393(_0x3bb680,_0x34d633,_0x3b73dc);let H=class extends _0x6981fd{constructor(_0x52716d,_0x51b2c1,_0x98101d){const _0x13b319=_0x23ebe7;super(),_(this,_0x13b319(0x1b0),new Map()),_(this,_0x13b319(0x122),new _0x17d6b1()),(this[_0x13b319(0x148)]=_0x52716d,this[_0x13b319(0xea)]=_0x51b2c1,this['_collabSessionService']=_0x98101d,this[_0x13b319(0x2ae)]());}[_0x23ebe7(0x2f0)](){const _0x431b2c=_0x23ebe7;super[_0x431b2c(0x2f0)](),this[_0x431b2c(0x122)][_0x431b2c(0xd3)](),this['_entities'][_0x431b2c(0x301)](_0x1731d9=>_0x1731d9['dispose']());}[_0x23ebe7(0x203)](_0x4064d7){const _0x484f86=_0x23ebe7;return this['_entities'][_0x484f86(0x30a)](_0x4064d7)?this[_0x484f86(0x1b0)][_0x484f86(0x2e0)](_0x4064d7)[_0x484f86(0xf9)]:this[_0x484f86(0x122)]['pipe'](_0x3595d5(_0x463d8c=>_0x463d8c[_0x484f86(0x1cf)]===_0x4064d7),_0x5a2e09(_0x245ae1=>_0x245ae1['cursorInfo$']));}[_0x23ebe7(0x2ae)](){const _0x4d87e1=_0x23ebe7;this[_0x4d87e1(0x148)][_0x4d87e1(0x26a)](_0x4815c4[_0x4d87e1(0xdb)])['pipe'](_0x40128f(this[_0x4d87e1(0x255)]))[_0x4d87e1(0x19c)](async _0x24f8b2=>{const _0x38c2b4=_0x4d87e1,_0x11d76b=_0x24f8b2[_0x38c2b4(0x10a)](),_0x218fb2=await this[_0x38c2b4(0xeb)](_0x11d76b);this[_0x38c2b4(0x122)]['next'](_0x218fb2),this['_entities'][_0x38c2b4(0xc3)](_0x11d76b,_0x218fb2);}),this[_0x4d87e1(0x148)][_0x4d87e1(0x26a)](_0x4815c4[_0x4d87e1(0x1aa)])[_0x4d87e1(0x1a3)](_0x40128f(this[_0x4d87e1(0x255)]))[_0x4d87e1(0x1a3)](_0x3595d5(_0x1949f1=>!_0x1949f1[_0x4d87e1(0x10a)]()['startsWith']('__')))['subscribe'](async _0x46ab70=>{const _0x177a7e=_0x4d87e1,_0x3930d7=_0x46ab70[_0x177a7e(0x10a)](),_0x6d30e2=await this[_0x177a7e(0x1ed)](_0x3930d7);this[_0x177a7e(0x122)]['next'](_0x6d30e2),this[_0x177a7e(0x1b0)]['set'](_0x3930d7,_0x6d30e2);}),_0x3297a0(this[_0x4d87e1(0x148)][_0x4d87e1(0x1fe)](_0x4815c4[_0x4d87e1(0x1aa)]),this[_0x4d87e1(0x148)][_0x4d87e1(0x1fe)](_0x4815c4[_0x4d87e1(0xdb)]))[_0x4d87e1(0x1a3)](_0x40128f(this[_0x4d87e1(0x255)]))[_0x4d87e1(0x19c)](_0x43aab0=>{const _0x1ec5e5=_0x4d87e1,_0x156c62=_0x43aab0['getUnitId'](),_0x174115=this[_0x1ec5e5(0x1b0)][_0x1ec5e5(0x2e0)](_0x156c62);_0x174115&&(_0x174115[_0x1ec5e5(0x2f0)](),this['_entities'][_0x1ec5e5(0xe9)](_0x156c62));});}async[_0x23ebe7(0xeb)](_0x5623fb){const _0x426dfe=_0x23ebe7,_0x3c0c46=await this[_0x426dfe(0x2c5)][_0x426dfe(0x140)](_0x5623fb),_0x5df4dc=this[_0x426dfe(0xea)][_0x426dfe(0x1cc)](Be,_0x5623fb,_0x3c0c46);return _0x5df4dc[_0x426dfe(0x1e4)](),_0x5df4dc;}async[_0x23ebe7(0x1ed)](_0x346476){const _0x117b59=_0x23ebe7,_0x3342f8=await this['_collabSessionService'][_0x117b59(0x140)](_0x346476),_0x2954d5=this[_0x117b59(0xea)][_0x117b59(0x1cc)](xe,_0x346476,_0x3342f8);return _0x2954d5[_0x117b59(0x1e4)](),_0x2954d5;}};H=Wi([Ce(0x0,_0x2e4fbc),Ce(0x1,_0xe188da(_0x402c05)),Ce(0x2,_0xe188da(_0x2b5b0a))],H);const Q=0x14,at=0xc8,Re=0x4,Vi=0x5;function ji(_0x3534e9,_0x11ee5d){const _0x5a8f32=_0x23ebe7;let {radius:_0x45439e,width:_0x16fc7b,height:_0xedc4d5}=_0x11ee5d;_0x45439e=_0x45439e!=null?_0x45439e:0x0,_0x16fc7b=_0x16fc7b!=null?_0x16fc7b:0x1e,_0xedc4d5=_0xedc4d5!=null?_0xedc4d5:0x1e;let _0x3b03b3=0x0,_0x9de8f7=0x0,_0xa62ca1=0x0;_0x3b03b3=_0x9de8f7=_0xa62ca1=Math[_0x5a8f32(0x2ed)](_0x45439e,_0x16fc7b/0x2,_0xedc4d5/0x2),_0x3534e9[_0x5a8f32(0x1ee)](),_0x3534e9[_0x5a8f32(0x1af)](_0x3b03b3,0x0),_0x3534e9[_0x5a8f32(0x16a)](_0x16fc7b-_0x9de8f7,0x0),_0x3534e9['arc'](_0x16fc7b-_0x9de8f7,_0x9de8f7,_0x9de8f7,Math['PI']*0x3/0x2,0x0,!0x1),_0x3534e9[_0x5a8f32(0x16a)](_0x16fc7b,_0xedc4d5-_0xa62ca1),_0x3534e9[_0x5a8f32(0x117)](_0x16fc7b-_0xa62ca1,_0xedc4d5-_0xa62ca1,_0xa62ca1,0x0,Math['PI']/0x2,!0x1),_0x3534e9[_0x5a8f32(0x16a)](0x0,_0xedc4d5),_0x3534e9[_0x5a8f32(0x16a)](0x0,_0x3b03b3),_0x3534e9[_0x5a8f32(0x117)](_0x3b03b3,_0x3b03b3,_0x3b03b3,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3534e9[_0x5a8f32(0x13a)](),_0x11ee5d[_0x5a8f32(0x151)]&&(_0x3534e9['save'](),_0x3534e9[_0x5a8f32(0x1cd)]=_0x11ee5d[_0x5a8f32(0x151)],_0x11ee5d[_0x5a8f32(0x2f8)]===_0x5a8f32(0x30c)?_0x3534e9[_0x5a8f32(0x151)](_0x5a8f32(0x30c)):_0x3534e9[_0x5a8f32(0x151)](),_0x3534e9[_0x5a8f32(0xfc)]());}class ve extends _0x2aa38d{constructor(_0x96f58d,_0x19b6e2){const _0x347ac6=_0x23ebe7;super(_0x96f58d,_0x19b6e2),_(this,_0x347ac6(0x232)),_(this,_0x347ac6(0xc8)),(this[_0x347ac6(0x232)]=_0x19b6e2==null?void 0x0:_0x19b6e2[_0x347ac6(0x232)],this[_0x347ac6(0xc8)]=_0x19b6e2==null?void 0x0:_0x19b6e2[_0x347ac6(0xc8)]);}static[_0x23ebe7(0x111)](_0x1a4c3d,_0x5a8d6b){const _0x5e94d7=_0x23ebe7,{text:_0x417647,color:_0xd2eae6}=_0x5a8d6b;_0x1a4c3d[_0x5e94d7(0xdd)](),_0x1a4c3d['font']=_0x5e94d7(0x1cb);const _0x44197f=_0x1a4c3d[_0x5e94d7(0x1d9)](_0x417647)[_0x5e94d7(0x318)],_0x2d89e7=Math[_0x5e94d7(0x2ed)](_0x44197f+0x2*Re,at);ji(_0x1a4c3d,{'height':Q,'radius':0x4,'width':_0x2d89e7,'fill':_0xd2eae6}),_0x1a4c3d[_0x5e94d7(0x1cd)]='#FFF';const _0x3506e7=Re,_0x2dbd68=Q-Vi,_0x9c19f0=at-0x2*Re;if(_0x44197f>_0x9c19f0){let _0x3d9771='',_0x892c3=0x0;for(const _0x5ef07c of _0x417647){const _0x413db2=_0x1a4c3d[_0x5e94d7(0x1d9)](_0x5ef07c)['width'];if(_0x892c3+_0x413db2<=_0x9c19f0-_0x1a4c3d[_0x5e94d7(0x1d9)]('...')['width'])_0x3d9771+=_0x5ef07c,_0x892c3+=_0x413db2;else{_0x3d9771+=_0x5e94d7(0x1c5);break;}}_0x1a4c3d[_0x5e94d7(0x1da)](_0x3d9771,_0x3506e7,_0x2dbd68);}else _0x1a4c3d[_0x5e94d7(0x1da)](_0x417647,_0x3506e7,_0x2dbd68);_0x1a4c3d[_0x5e94d7(0xfc)]();}[_0x23ebe7(0x274)](_0x27567a){const _0x55c607=_0x23ebe7;ve[_0x55c607(0x111)](_0x27567a,this);}}function _0x4a76(){const _0x22326c=['send','_id','isArray','defIds','_initUserListener','toRgbString','getUnhiddenWorksheets','81850bYEIxZ','_dataLoaderService','336qWVZRA','_unitOnClients','limitInfo','searchParams','getUnit','then','REDEMPTION_CODE_FULLY_REDEEMED','unload','_localeService','USER_NOT_FOUND','_configService','univer-flex\x20univer-items-center','registerRenderModule','_setFormulaLimitStatus','2331561qPcbLJ','_beforeCloseService','getRenderById','color','parseInt','transform','VIEW_MAIN','executeCommand','ENTITLE_INSUFFICIENT_QUOTA','setInterval','textRanges','hide','_handleLeaveEvent','_monkeyPatchLogService','labelPosition','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_scene','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_scheduleClearOtherTimer','_scheduleSaving','loadOfflineData','subunit','current','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_registerRenderDependencies','MOBILE_VERIFY_CODE_MISMATCH','getDocRanges','pushState','use','selection','session.collaboration-timeout','startColumn','off-line-icon_clip0_910_343','newValue','executionId','30115NOnGwi','attrs','_uiPartsService','dispose$','sheetID','PY_RUNTIME_SCRIPT_ERROR','404xEvYON','next','subscribeEvent','YUUMI_UNABLE_LOAD_URL','_config','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','m2Prime','_labelPosition','saveOfflineData','collab-text-anchor-','_transformPreviousActiveRange','LOGIN_FAILED','toString','_localCacheService','formula.calculation.started','_docTransformSelectionsService','Error','DATA_SOURCE_TOO_LARGE','getTypeOfUnitAdded$','doc.mutation.rich-text-editing','url(#on-line-icon_clip0_910_349)','_hasFormulaInDirtyRanges','DeleteRangeMoveUpCommandId','_transformHistoryAndStateStack','YUUMI_SUBSCRIPTION_NOT_FOUND','collabCursorState$','history','_cursorShapes','_draw','origin','UniverIcon','_messageService','error','replaceState','_hover','1440008Lnsxuz','LICENSE_EXPORT_SIZE_EXCEEDED','OFFLINE','18jEoXBo','transformSelections','_memberService','_render','_getScale','editingUnit','application/json','_transformService','_range','values','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_clearOtherTimers','black','ranges','getSheetId','0\x200\x2016\x2016','all','_startCalculationLimit','startFormulaLimitUrl','MOBILE_HAS_BEEN_BOUND','collab-rect-range-','collabStatus.syncing','removeEventListener','trim','xlink:href','_refreshCollabCursors','setTimeout','UPDATE_CURSOR','skeleton','_collabCursorState$','urlChange$','_initEvent','univer-mr-2\x20univer-flex\x20univer-text-xl','unitId','INTERNAL_ERROR','white','SYNCED','tag','maxFormulaLimit','focused$','totalFormulasToCalculate','YUUMI_AI_RUN_FAILED','InsertRangeMoveDownCommandId','cursorInfo','_getSheetObject','_assignedColors','_httpService','2135168vibCnX','_init','debug','_setupBeforeClosingHandler','green.600','39977pdiyIy','INVALID_ARGUMENT','M0\x200H16V16H0z','_initUnhandledRejectionListener','OffLineIcon','getSheetBySheetId','Unknown\x20user','collaboration.closeRoom','post','ticket','LICENSE_IMPORT_SIZE_EXCEEDED','defs','_commandService','_docTransformIMECacheService','_cursors','onPointerEnter$','undoState','http://www.w3.org/2000/svg','now','_collabSessionService','currentColor','makeDirty','runOnServer','_updateURLWithCurrentState','from','LICENSE_MAX_UNITS_EXCEEDED','LOGIN_TOKEN_PROCESSING_FAILED','/run/','SUBMIT_CHANGESET_TIMEOUT','stage','idSuffix','getUniverSheetInstance','collabStatus.synced','YUUMI_TABLE_NOT_FOUND_IN_UNIT','COMPLETION_FINISHED','_notificationService','INVALID_INVITE_CODE','url(#$1','unsubscribe','event$','enableFrontendLog','_saveCache','RECT','getOwnPropertyDescriptor','roomMembers$','getVpScrollXYInfoByPosToVp','get','getValue','YUUMI_CONNECTOR_URL_NOT_FOUND','source','ENTITLE_CHAT_LIMIT_EXCEED','_syncEditingCollabCursorService','type','symbol','stack','DeleteRangeMoveLeftCommandId','transformRemoteChangeset','_removeClearOtherTimer','_localStorageService','min','getCurrentSelections','_docSyncEditingCollabCursorService','dispose','setItem','engine','roomMembers','ENTITLE_CAN_NOT_BUY_LOWER_OTP','subUnitId','memberID','YUUMI_ALL_TABLES_IS_INVALID','fillRule','sessionTicket','_updateSubUnitFromURLParams','_collabCursorController','_revisionService','[Unhandled\x20Rejection]:\x20','collab-text-range-','location','replace','forEach','ENTITLE_NEED_BILLING_ADDRESS','on-line-icon_clip0_910_349','getCellMatrix','APPLY_REJECT','_getSessionTicket','getCurrentUnitForType','collabStatus.fetchMiss','3877720agHqda','has','1em','evenodd','blue.400','/universer-api/license/formula/limit/start','asObservable','_uploadLog','Failed','getCurrentRevOfUnit','_memberID','sessionStatus$','colorChannel1','_doCreateSocket','map','width','collaboration.offline-data-not-saved','FromArray','row','ENTITLE_DUP_SUBSCRIPTION','_selfUnitIDs','REDEMPTION_CODE_INACTIVE','set','ACTIVE_UNIT_EVENT_CHANNEL','parse','onTransformChange$','setUndoRedoMutationParamsCache','text','_clearPolling','mutations','_hovered','disposeUnit','selections','LICENSE_DISTRO_REJECTED','Warning','catch','_applyCommand','rgba(255,\x20255,\x20255,\x200.01)','complete','stringify','_color','permission.title','random','ONLINE','saveTaskMap','jiqing.500','UNIVER_SHEET','clipPath','save','_collaborationUIEventService','ENTITLE_COUPON_USED_UP','_cursorInfo$','colno','_eventUnsubscribe','length','/universer-api/license/formula/limit/status','permission.content','_sheetSkeletonManagerService','unit','UNAUTHENTICATED','delete','_injector','_startSheetCollabCursor','_handleJoinEvent','UNDEFINED','onPointerLeave$','onMouseMove','imageSourceType','activeSheet$','getSkeleton','APPLY_DUPLICATED','_themeService','dirtyRanges','redoState','transformMutationsWithChangeset','MoveRangeCommandId','cursorInfo$','getMemberID','ERROR_AGAIN','restore','SNAPSHOT_HAS_BEEN_REMOVED','getActiveRange','show','_onCursorUpdate','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','NOT_COLLAB','EMAIL_VERIFY_CODE_MISMATCH','_showGuardMessage','APPLY_NON_SEQUENTIAL_REVISION','USERS_LEAVE','unhandledrejection','none','name','getUnitId','bottom','OTHER_CLIENTS_EDITING','onCommandExecuted','_createSocketURL','getFocusedUnit','_docStateChangeManagerService','drawWith','formula.calculation.unable','_refRangeService','_logService','_getMergeRange','code','arc','_updateCollabCursors','onLocalMutation','INVITE_CODE_REQUIRED','updateOfflineData','registerRefRange','\x20at\x20','NOT_FOUND','_saveTaskMap','defineProperty','data','_entityInit$','_backgroundColor','_colorAssignService','REDEMPTION_CODE_NOT_STARTED','collaboration-client-ui.config','clearTimeout','collabStatus.conflict','hovered','WECHAT_HAS_BEEN_BOUND','setParam','loadUnit','_name','_drawRectRange','status$','getUndoRedoMutationParamsCache','getParam','_collaborationController','off-line-icon','startRow','some','_urlService','AWAITING','PERMISSION_DENIED','currentUsage','closePath','_getFormulaLimitStatus','AWAITING_WITH_PENDING','InsertColCommandId','_docClipboardService','m1Prime','requireSession','getMergeData','AUTHORIZE_CODE_ILLEGAL','_getAnchorBounding','Loading','_initEntityListener','releaseFormulaLimitUrl','_drawAnchor','_univerInstanceService','clearInterval','mask','search','INVITE_CODE_HAS_BEEN_UES','currentTheme$','currentSkeleton$','getStateCache','substring','fill','_initDependencies','_toggleOnline','_removeCollabCursors','INVITE_CODE_ALREADY_BOUND','contains','collabStatus.notCollab','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','REDEMPTION_CODE_HAS_BEEN_CREATED','setConfig','_releaseCalculationLimit','_disabled','add','red.300','_docTransformStateCacheService','SUCCESS','_setupSubUnitSync','path','deepClone','_checkCalculationAvailable','USER_IS_ANONYMOUS','displayName','getformulaLimitStatusUrl','ENSURE_SNAPSHOT_EXECUTION','PAYMENT_CHANNEL_NOT_SUPPORT','lineTo','_send','_checkAndWaitForCalculationPermission','registerBeforeClose','isEditing','getViewport','REDEMPTION_INVALID_CODE','_imageIoService','addObjects','getOffsetConfig','syncEditingCollabCursor','_session','eventID','result','setShapeProps','_instanceService','_roomMembers$','enableLocalCache','JOIN_ROOM_FAILED','div','_registerDependencies','round','_pollingInterval','APPLY_PERMISSION_DENIED','_initResize','lineno','_getSaveTimeout','CONFLICT','EMAIL_HAS_BEEN_BOUND','size','_shapes','addObject','getActiveSheet','ALREADY_EXISTS','_drawTextRange','href','children','uni.network.url-service','RemoveRowCommandId','_currentUsage','RemoveColCommandId','CONNECTOR_DATA_TOO_LARGE','YUUMI_NO_CUBOID_FOR_QUESTION','YUUMI_URL_COL_OUT_OF_RANGE','endColumn','_cachedData','assignAColorForMemberID','_handleHover','push','_onCursorDelete','subscribe','exhaustSavingTask','SOCKET_FAILED_RETRY','_toggleOffline','_context','reconnect','_initCommandInterceptor','pipe','isActive','message','YUUMI_ASYNCIO_CANCELLED','flatMap','transformStateCache','endRow','UNIVER_DOC','addHandlerCallback','/universer-api/frontend/logs','SOCKET_FAILED','url(#off-line-icon_clip0_910_343)','moveTo','_entities','_hideTimer','NO_OTHER_CLIENTS_EDITING','svg','range','collab-client.tooltip.reconnect','_heartbeatTimer','session.will-retry','setAlpha','onPointerMove$','START_CALCULATION','getCollabEntity$','_renderManagerService','_textBubble','whenReady','_colorIndex','APPLY_REVISION_CONFILICT','TEXT','REDEMPTION_USER_NOT_ELIGIBLE','REDEMPTION_USER_REDEEM_TIMES_EXCEED','key','...','getConfig','transformIMECache','Success','getRangePointData','getAncestorScale','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','createInstance','fillStyle','ENTITLE_COUPON_EXPIRED','unitID','replaceDocRanges','includes','runId','docStateChange$','OnLineIcon','split','_document','_ensureSubject','unshift','measureText','fillText','_anchor','ENTITLE_REPORT_LIMIT_EXCEED','join','_collaborationSessionService','_status$','[Window\x20Error]:\x20','_docSkeletonManagerService','_transformUndoRedoStack','bind','init','getColorFromTheme','setStateCache','string','YUUMI_RATE_OVER_LIMIT','SNAPSHOT_INVALID_SNAPSHOT','pluginName','ENTITLE_INVALID_COUPON_CODE','UNRECOGNIZED','_startDocCollabCursor','beginPath','purple.300','addEventListener','USER_NOT_INVITED_CODE','getRelativeToViewportCoord','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','with','CLOSE_ROOM','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_online','getCellPositionByOffset','_unitStatus','_taskIds','0\x200\x2017\x2016','OTHER_CLIENT_EDITING','MUTATION','getTypeOfUnitDisposed$','assign','stageInfo','params','_cursor','getCollabCursors$','onStarting','_maxFormulaLimit','session.connection-failed','body','_lastResponseTimestamp','wsSessionTicketUrl','transformByState','filename','findNodePositionByCharIndex','disposeWithMe','_docSkeleton','_updateLocalCursor','_anchorDot','onRendered','[CollaborationDataLoaderController]','getMember','_lastPointer','invokeId','find','transformMutation'];_0x4a76=function(){return _0x22326c;};return _0x4a76();}const De=_0x23ebe7(0x261),Xi=_0x23ebe7(0x2fe),Gi=_0x23ebe7(0x292),z=0x6,Ki=1.5,Ne=0x4,zi=1.5,Ji=_0x23ebe7(0xd2);class ct{constructor(_0xf02d5f,_0x4018f7,_0x17f0e2,_0x4d933f){const _0x2e12c1=_0x23ebe7;_(this,_0x2e12c1(0x188),[]),_(this,_0x2e12c1(0x1db),null),_(this,_0x2e12c1(0x1bd),null),_(this,_0x2e12c1(0x210),null),_(this,_0x2e12c1(0x1b1),null),_(this,_0x2e12c1(0xe2),null),(this[_0x2e12c1(0x202)]=_0xf02d5f,this['_scene']=_0x4018f7,this[_0x2e12c1(0x20e)]=_0x17f0e2,this[_0x2e12c1(0x1d6)]=_0x4d933f,this[_0x2e12c1(0x281)]());}set[_0x23ebe7(0x27a)](_0x549077){const _0x2a4fb5=_0x23ebe7;_0x549077?(this[_0x2a4fb5(0x210)]&&this[_0x2a4fb5(0x210)]['hide'](),this[_0x2a4fb5(0x1bd)]&&this['_textBubble'][_0x2a4fb5(0xff)]()):(this[_0x2a4fb5(0x210)]&&this[_0x2a4fb5(0x210)][_0x2a4fb5(0xff)](),this['_textBubble']&&this[_0x2a4fb5(0x1bd)][_0x2a4fb5(0x23a)]());}[_0x23ebe7(0x2f0)](){const _0x345f42=_0x23ebe7;for(const _0x586c8c of this[_0x345f42(0x188)])_0x586c8c[_0x345f42(0x2f0)]();this['_textBubble']&&this[_0x345f42(0x1bd)][_0x345f42(0x2f0)](),this['_anchorDot']&&this['_anchorDot'][_0x345f42(0x2f0)](),this['_anchor']&&this[_0x345f42(0x1db)]['dispose'](),this['_eventUnsubscribe']&&this[_0x345f42(0xe2)]();}['_render'](){const _0x2ba90b=_0x23ebe7;var _0xe4055c;const {_docSkeleton:_0x258392,_document:_0x223577}=this,{color:_0x26286f,name:_0x52e243,ranges:_0x497094}=this['_cursor'],_0x2b2d22=_0x223577[_0x2ba90b(0x173)](),{docsLeft:_0x501aee,docsTop:_0x525911}=_0x2b2d22,_0xbcfb46=new _0x515150(_0x2b2d22,_0x258392);for(const {startOffset:_0x22bb67,endOffset:_0x4ec347,rangeType:_0xa95b51,segmentId:_0x2b2bd8,segmentPage:_0x259df6,collapsed:_0xb396ad,isActive:_0x154f3c}of _0x497094){const _0x4492a9=_0x258392[_0x2ba90b(0x20c)](_0x22bb67,!0x0,_0x2b2bd8,_0x259df6);let _0x5d7ce4=_0x258392['findNodePositionByCharIndex'](_0x4ec347,!0x0,_0x2b2bd8,_0x259df6);if(_0x5d7ce4==null&&(_0x5d7ce4=_0x258392[_0x2ba90b(0x20c)](_0x4ec347-0x1,!0x1,_0x2b2bd8,_0x259df6)),_0x154f3c){const {contentBoxPointGroup:_0x1384cd}=_0xbcfb46[_0x2ba90b(0x1c9)](_0x5d7ce4,_0x5d7ce4);if(_0x1384cd[_0x2ba90b(0xe3)]===0x0)continue;this[_0x2ba90b(0x147)](_0x26286f,_0x1384cd,_0x501aee,_0x525911,_0x52e243),this[_0x2ba90b(0xe2)]=this[_0x2ba90b(0x199)]();}if(_0x4492a9&&_0x5d7ce4){if(_0xa95b51===_0x6170ae[_0x2ba90b(0x2dc)]){const _0x42fcbd=new _0x156076(_0x2b2d22,_0x258392),{pointGroup:_0x3fceca}=(_0xe4055c=_0x42fcbd[_0x2ba90b(0x1c9)](_0x4492a9,_0x5d7ce4))!=null?_0xe4055c:{};if(_0x3fceca==null||_0x3fceca[_0x2ba90b(0xe3)]===0x0)continue;this['_drawRectRange'](_0x26286f,_0x3fceca,_0x501aee,_0x525911);}else{if(!_0xb396ad){const {borderBoxPointGroup:_0x152188}=_0xbcfb46['getRangePointData'](_0x4492a9,_0x5d7ce4);if(_0x152188[_0x2ba90b(0xe3)]===0x0)continue;this[_0x2ba90b(0x18c)](_0x26286f,_0x152188,_0x501aee,_0x525911);}}}}}[_0x23ebe7(0x147)](_0x2d504a,_0x42b4d4,_0x54ae9a,_0x533155,_0x27bc70){const _0xe1297f=_0x23ebe7,_0x56d962=this['_getAnchorBounding'](_0x42b4d4),{left:_0x254ba0,top:_0x15158f,height:_0x52e15d}=_0x56d962,_0x3f35ae=this[_0xe1297f(0x282)](),_0x1ac622=zi/_0x3f35ae,_0x1e7617=new _0x56c146(De+_0x3023d1(z),{'left':_0x254ba0+_0x54ae9a-_0x1ac622,'top':_0x15158f+_0x533155,'height':_0x52e15d,'width':Ki,'fill':_0x2d504a||_0x3a8468(_0x11d588['black'],0x0),'strokeWidth':_0x1ac622,'stroke':Ji,'evented':!0x0});this[_0xe1297f(0x1db)]=_0x1e7617,this[_0xe1297f(0x23f)][_0xe1297f(0x189)](_0x1e7617,_0x197fae);const _0x4c85de=new _0x56c146(De+_0x3023d1(z),{'left':_0x254ba0+_0x54ae9a-_0x1ac622,'top':_0x15158f+_0x533155-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x2d504a||_0x3a8468(_0x11d588[_0xe1297f(0x28a)],0x0),'strokeWidth':0x0,'stroke':_0x2d504a||_0x3a8468(_0x11d588[_0xe1297f(0x28a)],0x0),'evented':!0x1});this[_0xe1297f(0x210)]=_0x4c85de,this['_scene'][_0xe1297f(0x189)](_0x4c85de,_0x197fae);const _0x315d07=new ve(De+_0x3023d1(z),{'left':_0x254ba0+_0x54ae9a-_0x1ac622,'top':_0x15158f+_0x533155-Q,'text':_0x27bc70,'color':_0x2d504a});this[_0xe1297f(0x1bd)]=_0x315d07,this[_0xe1297f(0x23f)][_0xe1297f(0x189)](_0x315d07,_0x197fae),this['_hover']=!0x1;}[_0x23ebe7(0x199)](){const _0x3cbefb=_0x23ebe7,_0x3e6ffa=this['_anchor']['onPointerEnter$'][_0x3cbefb(0x25a)](()=>{const _0x31c995=_0x3cbefb;this[_0x31c995(0x27a)]=!0x0;}),_0x10b091=this[_0x3cbefb(0x1db)][_0x3cbefb(0xee)][_0x3cbefb(0x25a)](()=>{const _0x4359ee=_0x3cbefb;this[_0x4359ee(0x1b1)]&&clearTimeout(this['_hideTimer']),this[_0x4359ee(0x1b1)]=setTimeout(()=>{const _0x526164=_0x4359ee;this[_0x526164(0x27a)]=!0x1;},0x7d0);});return()=>{const _0x5c217b=_0x3cbefb;_0x3e6ffa[_0x5c217b(0x2d8)](),_0x10b091[_0x5c217b(0x2d8)]();};}['_drawTextRange'](_0x5143b1,_0x1083cc,_0x2f0ae3,_0x1b04fb){const _0x3a6823=_0x23ebe7,_0x3cc511=new _0x200f2b(_0x5143b1)[_0x3a6823(0x1b8)](0.2)[_0x3a6823(0x21d)](),_0xc2712e=new _0x141f61(Xi+_0x3023d1(z),{'pointsGroup':_0x1083cc,'fill':_0x3cc511||_0x3a8468(_0x11d588[_0x3a6823(0x28a)],0.2),'left':_0x2f0ae3,'top':_0x1b04fb,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3a6823(0x188)][_0x3a6823(0x19a)](_0xc2712e),this[_0x3a6823(0x23f)][_0x3a6823(0x189)](_0xc2712e,_0x197fae);}[_0x23ebe7(0x12e)](_0x5dec4c,_0x3c0045,_0x1f8c87,_0x5afd64){const _0x2d5d44=_0x23ebe7,_0x43d3db=new _0x200f2b(_0x5dec4c)['setAlpha'](0.2)['toRgbString'](),_0x3829f8=new _0x141f61(Gi+_0x3023d1(z),{'pointsGroup':_0x3c0045,'fill':_0x43d3db||_0x3a8468(_0x11d588['black'],0.2),'left':_0x1f8c87,'top':_0x5afd64,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2d5d44(0x188)][_0x2d5d44(0x19a)](_0x3829f8),this[_0x2d5d44(0x23f)]['addObject'](_0x3829f8,_0x197fae);}[_0x23ebe7(0x143)](_0x143f7b){const _0x1da523=_0x143f7b[0x0],_0x40eeec=_0x1da523[0x0],_0x19d243=_0x1da523[0x2],{x:_0x3bb870,y:_0x3628c8}=_0x40eeec,{x:_0x30022c,y:_0x276169}=_0x19d243;return{'left':_0x3bb870,'top':_0x3628c8,'width':_0x30022c-_0x3bb870,'height':_0x276169-_0x3628c8};}[_0x23ebe7(0x282)](){const _0x40c700=_0x23ebe7,{scaleX:_0x283cbd,scaleY:_0x40bcbb}=this[_0x40c700(0x23f)][_0x40c700(0x1ca)]();return Math['max'](_0x283cbd,_0x40bcbb);}}var Zi=Object['getOwnPropertyDescriptor'],Qi=(_0x385724,_0x4e78e9,_0x1e8787,_0x2e948f)=>{const _0x25f767=_0x23ebe7;for(var _0x1f7c84=_0x2e948f>0x1?void 0x0:_0x2e948f?Zi(_0x4e78e9,_0x1e8787):_0x4e78e9,_0x352e98=_0x385724[_0x25f767(0xe3)]-0x1,_0xcf9288;_0x352e98>=0x0;_0x352e98--)(_0xcf9288=_0x385724[_0x352e98])&&(_0x1f7c84=_0xcf9288(_0x1f7c84)||_0x1f7c84);return _0x1f7c84;},ie=(_0x2b45d5,_0x4b2173)=>(_0x185501,_0x7eead6)=>_0x4b2173(_0x185501,_0x7eead6,_0x2b45d5);let Fe=class extends _0x6981fd{constructor(_0x1f3e1e,_0x34f135,_0x32750d,_0x4d35a8,_0x4329c0){const _0x2c000b=_0x23ebe7;super(),_(this,_0x2c000b(0x273),[]),_(this,'_cursors',[]),(this[_0x2c000b(0x1a0)]=_0x1f3e1e,this['_docSkeletonManagerService']=_0x34f135,this[_0x2c000b(0x2fb)]=_0x32750d,this[_0x2c000b(0x2be)]=_0x4d35a8,this['_themeService']=_0x4329c0,this[_0x2c000b(0x2ae)]());}[_0x23ebe7(0x2ae)](){const _0x4052ce=_0x23ebe7,_0xf2c596=this['_context'][_0x4052ce(0x29f)],_0x33b503=this['_docSkeletonManagerService'];this[_0x4052ce(0x20d)](_0x35d252([this[_0x4052ce(0x2fb)][_0x4052ce(0x203)](_0xf2c596),this[_0x4052ce(0xf4)][_0x4052ce(0x14d)]])['pipe'](_0x23b0f2(([_0x3e4c3b,_0x2e40aa])=>({'skeleton':_0x33b503[_0x4052ce(0xf2)](),'cursors':[..._0x3e4c3b[_0x4052ce(0x287)]()][_0x4052ce(0x1a7)](_0x39cc5a=>({..._0x39cc5a,'color':this[_0x4052ce(0xf4)][_0x4052ce(0x1e5)](_0x39cc5a[_0x4052ce(0x232)])}))})))[_0x4052ce(0x19c)](_0x522e01=>{const _0x38d511=_0x4052ce;if(this['_removeCollabCursors'](),_0x522e01){const {skeleton:_0x40a351,cursors:_0x40c866}=_0x522e01;this[_0x38d511(0x118)](_0x40a351,_0x40c866);}})),this[_0x4052ce(0x182)](),this['_initCommandExecutedListener']();}[_0x23ebe7(0x118)](_0x164569,_0x1bf1cf){const _0x100560=_0x23ebe7,{scene:_0x108ad7,mainComponent:_0x2a767c}=this[_0x100560(0x1a0)],_0x3d35d3=_0x1bf1cf[_0x100560(0x317)](_0x47b57a=>new ct(_0x47b57a,_0x108ad7,_0x164569,_0x2a767c));this[_0x100560(0x273)]=_0x3d35d3,this[_0x100560(0x2c0)]=_0x1bf1cf;}[_0x23ebe7(0x297)](){const _0x4b4e5e=_0x23ebe7;this[_0x4b4e5e(0x154)]();const {scene:_0x1f55d7,mainComponent:_0x5e2b29}=this[_0x4b4e5e(0x1a0)],_0x8894f4=this[_0x4b4e5e(0x1e1)]['getSkeleton'](),_0x33d03d=this[_0x4b4e5e(0x2c0)]['map'](_0x9f278b=>new ct(_0x9f278b,_0x1f55d7,_0x8894f4,_0x5e2b29));this[_0x4b4e5e(0x273)]=_0x33d03d;}[_0x23ebe7(0x154)](){const _0x36cfca=_0x23ebe7;this['_cursorShapes'][_0x36cfca(0x301)](_0x1fd1e0=>_0x1fd1e0[_0x36cfca(0x2f0)]()),this[_0x36cfca(0x273)]=[];}['_initCommandExecutedListener'](){const _0x4f693d=_0x23ebe7,_0x283d07=[_0xc1b86e['id']];this['disposeWithMe'](this['_commandService'][_0x4f693d(0x10d)](_0x59361e=>{const _0x4a5a55=_0x4f693d;_0x283d07[_0x4a5a55(0x1d1)](_0x59361e['id'])&&_0x59361e[_0x4a5a55(0x201)][_0x4a5a55(0x29f)]===this[_0x4a5a55(0x1a0)][_0x4a5a55(0x29f)]&&this[_0x4a5a55(0x297)]();}));}['_initResize'](){const _0x5ccac5=_0x23ebe7;this[_0x5ccac5(0x20d)](_0x5343ff(this[_0x5ccac5(0x1a0)][_0x5ccac5(0x2f2)][_0x5ccac5(0xc6)])[_0x5ccac5(0x1a3)](_0x22c5d6(_0x239162=>_0x239162[_0x5ccac5(0x2e6)]===_0xdb9c8e['resize']),_0x3ac8a3(0x10))[_0x5ccac5(0x19c)](()=>{this['_refreshCollabCursors']();}));}};Fe=Qi([ie(0x1,_0xe188da(_0x14f820)),ie(0x2,_0xe188da(H)),ie(0x3,_0x16d352),ie(0x4,_0xe188da(_0x4dfa73))],Fe);const qi=0x1,en=1.5;class tn extends _0x2aa38d{constructor(_0x14c5c5,_0x181441){const _0x38582d=_0x23ebe7;super(_0x14c5c5,_0x181441),_(this,_0x38582d(0xd5)),_(this,_0x38582d(0xcb),!0x1),_(this,_0x38582d(0x286)),_(this,_0x38582d(0x12d),''),_(this,_0x38582d(0x25f),'top'),_(this,_0x38582d(0x123)),(_0x181441&&this[_0x38582d(0x178)](_0x181441),this[_0x38582d(0x2c1)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x38582d(0xee)][_0x38582d(0x25a)](()=>this[_0x38582d(0x178)]({'hovered':!0x1})));}['setShapeProps'](_0x4d6070){const _0xa2fcc9=_0x23ebe7;var _0x2de8c2,_0x1d65b6,_0x18b3ab,_0x4bf42e,_0x2beee5,_0x41f920;this[_0xa2fcc9(0xd5)]=(_0x2de8c2=_0x4d6070['color'])!=null?_0x2de8c2:this[_0xa2fcc9(0xd5)],this[_0xa2fcc9(0xcb)]=(_0x1d65b6=_0x4d6070[_0xa2fcc9(0x129)])!=null?_0x1d65b6:this['_hovered'],this[_0xa2fcc9(0x286)]=(_0x18b3ab=_0x4d6070['range'])!=null?_0x18b3ab:this['_range'],this[_0xa2fcc9(0x12d)]=(_0x4bf42e=_0x4d6070[_0xa2fcc9(0x109)])!=null?_0x4bf42e:this[_0xa2fcc9(0x12d)],this['_labelPosition']=(_0x2beee5=_0x4d6070[_0xa2fcc9(0x23d)])!=null?_0x2beee5:this[_0xa2fcc9(0x25f)],this[_0xa2fcc9(0x123)]=(_0x41f920=_0x4d6070['backgroundColor'])!=null?_0x41f920:this['_backgroundColor'],this[_0xa2fcc9(0x20a)]({'width':_0x4d6070['width'],'height':_0x4d6070['height']});}[_0x23ebe7(0xef)](_0x421595){const _0x221cbe=_0x23ebe7,{row:_0x2dfbbb,column:_0xc9c515}=_0x421595;if(_0x2dfbbb>=this[_0x221cbe(0x286)][_0x221cbe(0x134)]&&_0x2dfbbb<=this[_0x221cbe(0x286)]['endRow']&&_0xc9c515>=this[_0x221cbe(0x286)][_0x221cbe(0x24e)]&&_0xc9c515<=this[_0x221cbe(0x286)][_0x221cbe(0x196)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x221cbe(0x178)]({'hovered':!0x1});}['triggerDblclick'](_0x48b576){return!0x1;}[_0x23ebe7(0x274)](_0x21c2a3){const _0x8f21a6=_0x23ebe7;_0x56c146[_0x8f21a6(0x111)](_0x21c2a3,{'width':this[_0x8f21a6(0x318)],'height':this['height'],'strokeWidth':en,'stroke':this['_color'],'evented':!0x1,'fill':this['_backgroundColor']}),this['_hovered']&&(_0x21c2a3[_0x8f21a6(0xdd)](),_0x21c2a3[_0x8f21a6(0x234)](0x1,0x0,0x0,0x1,this[_0x8f21a6(0x318)],this[_0x8f21a6(0x25f)]===_0x8f21a6(0x10b)?0x0:-Q),ve[_0x8f21a6(0x111)](_0x21c2a3,{'text':this[_0x8f21a6(0x12d)],'color':this[_0x8f21a6(0xd5)]}),_0x21c2a3[_0x8f21a6(0xfc)]());}}var sn=Object[_0x23ebe7(0x2dd)],nn=(_0x240907,_0x5dfc46,_0x159695,_0x4ccaa5)=>{const _0x44279c=_0x23ebe7;for(var _0x3c9a74=_0x4ccaa5>0x1?void 0x0:_0x4ccaa5?sn(_0x5dfc46,_0x159695):_0x5dfc46,_0x3c1bf4=_0x240907[_0x44279c(0xe3)]-0x1,_0x101dcd;_0x3c1bf4>=0x0;_0x3c1bf4--)(_0x101dcd=_0x240907[_0x3c1bf4])&&(_0x3c9a74=_0x101dcd(_0x3c9a74)||_0x3c9a74);return _0x3c9a74;},be=(_0x1cbba1,_0x31df10)=>(_0x52993f,_0x27c46e)=>_0x31df10(_0x52993f,_0x27c46e,_0x1cbba1);const rn=0x1389;let ke=class extends _0x6981fd{constructor(_0x682239,_0x58c0fb,_0x325fbb,_0x763698){const _0x3ff219=_0x23ebe7;super(),_(this,'_cursors',new Set()),_(this,_0x3ff219(0x214),null),(this[_0x3ff219(0x1a0)]=_0x682239,this[_0x3ff219(0xe6)]=_0x58c0fb,this[_0x3ff219(0x2fb)]=_0x325fbb,this['_themeService']=_0x763698,this[_0x3ff219(0x2ae)]());}[_0x23ebe7(0x2ae)](){const _0x4035f9=_0x23ebe7;this[_0x4035f9(0xe6)][_0x4035f9(0x14e)][_0x4035f9(0x1a3)](_0xb21ebd(this['dispose$']),_0x38cf56(_0x14078c=>{const _0xb792b=_0x4035f9;if(_0x14078c){const _0x4bb36c=_0x14078c['sheetId'];return _0x35d252(this['_collabCursorController'][_0xb792b(0x203)](this['_context']['unitId']),this[_0xb792b(0xf4)][_0xb792b(0x14d)])['pipe'](_0x23b0f2(([_0x220722,_0x4165f6])=>{const _0x277004=_0xb792b,_0x438da4=new Map();return _0x220722[_0x277004(0x301)]((_0x45aff7,_0x4ad76d)=>{const _0x1856ce=_0x277004;if(_0x45aff7[_0x1856ce(0x256)]===_0x4bb36c){const _0x59e941={..._0x45aff7};_0x59e941[_0x1856ce(0x232)]=this[_0x1856ce(0xf4)]['getColorFromTheme'](_0x45aff7[_0x1856ce(0x232)]),_0x438da4[_0x1856ce(0xc3)](_0x4ad76d,_0x59e941);}}),{'skeleton':_0x14078c,'cursors':_0x438da4};}));}return _0x486e85({'skeleton':null,'cursors':new Map()});}))[_0x4035f9(0x19c)](({skeleton:_0x3c4f24,cursors:_0x2e2045})=>{this['_removeCollabCursors'](),_0x3c4f24&&this['_updateCollabCursors'](_0x3c4f24,_0x2e2045);}),this[_0x4035f9(0xe6)][_0x4035f9(0x14e)]['subscribe'](_0x3ca80e=>{const _0x200aa2=_0x4035f9;if(_0x3ca80e==null)return;const {skeleton:_0x12101f}=_0x3ca80e,{scene:_0x487f38}=this[_0x200aa2(0x1a0)];_0x487f38[_0x200aa2(0x1b9)][_0x200aa2(0x25a)](_0x2ee2a9(_0x1b7ad0=>{const _0x59df9e=_0x200aa2;var _0x377e95,_0x1f38b9;const {offsetX:_0x493116,offsetY:_0x31a301}=_0x1b7ad0,{x:_0x17b1ed,y:_0x40581e}=_0x487f38[_0x59df9e(0x1f2)](_0x1f55fe[_0x59df9e(0x31a)]([_0x493116,_0x31a301])),{scaleX:_0x1eae5e,scaleY:_0xf991b6}=_0x487f38[_0x59df9e(0x1ca)](),_0x4eda66=_0x487f38[_0x59df9e(0x16f)](_0x2f967b[_0x59df9e(0x235)]),_0x355d96=_0x487f38[_0x59df9e(0x2df)](_0x1f55fe[_0x59df9e(0x31a)]([_0x17b1ed,_0x40581e]),_0x4eda66),_0x373ad7=_0x12101f[_0x59df9e(0x1f8)](_0x493116,_0x31a301,_0x1eae5e,_0xf991b6,_0x355d96);((_0x377e95=this[_0x59df9e(0x214)])==null?void 0x0:_0x377e95['column'])===_0x373ad7['column']&&((_0x1f38b9=this[_0x59df9e(0x214)])==null?void 0x0:_0x1f38b9['row'])===_0x373ad7[_0x59df9e(0x31b)]||this['_cursors']['forEach'](_0x42965a=>{_0x42965a['onMouseMove'](_0x373ad7);});},0x64));});}[_0x23ebe7(0x118)](_0x21ab2a,_0x4ba189){const _0x3e7c9f=_0x23ebe7;var _0x252746;const _0x1c0374=(_0x252746=this['_sheetSkeletonManagerService']['getCurrent']())==null?void 0x0:_0x252746[_0x3e7c9f(0x29a)];if(!_0x1c0374)return;const _0x1944b8=this[_0x3e7c9f(0x2aa)]();if(!_0x1944b8)return;this[_0x3e7c9f(0x2c0)]['forEach'](_0x393369=>{const _0x2c7dbf=_0x3e7c9f;_0x393369[_0x2c7dbf(0x2c7)]();});const {scene:_0x2c2de2}=_0x1944b8,_0x46c757=on(Array[_0x3e7c9f(0x2ca)](_0x4ba189[_0x3e7c9f(0x287)]()))[_0x3e7c9f(0x317)](_0x149382=>{const _0x387ede=_0x3e7c9f,{color:_0x106701,range:_0xa87c63,name:_0x422339,selection:_0x312141,sheetID:_0x3a4888}=_0x149382,{startColumn:_0x31c530,startRow:_0x5840b3,endColumn:_0x20dadf,endRow:_0x4624c9}=_0xa87c63,_0x501025=_0x4e415a(_0x5840b3,_0x31c530,_0x2c2de2,_0x1c0374),_0xb768cd=_0x4e415a(_0x4624c9,_0x20dadf,_0x2c2de2,_0x1c0374),{columnHeaderHeightAndMarginTop:_0x3f0185}=_0x1c0374,{startX:_0x5cfa6b,startY:_0x8bbfe8}=_0x501025,{endX:_0x3971b3,endY:_0xcf4ced}=_0xb768cd,_0x335d56=_0x3971b3-_0x5cfa6b,_0x5a58ae=_0xcf4ced-_0x8bbfe8,_0x3535b8={'labelPosition':_0x8bbfe8-_0x3f0185>=Q?'top':_0x387ede(0x10b),'sheetID':_0x3a4888,'range':_0xa87c63,'color':_0x106701,'name':_0x422339,'selection':_0x312141,'left':_0x5cfa6b,'top':_0x8bbfe8,'width':_0x335d56,'height':_0x5a58ae,'evented':!0x1,'zIndex':rn};return new tn(_0x422339,_0x3535b8);});_0x2c2de2[_0x3e7c9f(0x172)](_0x46c757,qi),this[_0x3e7c9f(0x2c0)]=new Set(_0x46c757);}[_0x23ebe7(0x154)](){const _0x39578e=_0x23ebe7;var _0x518521;(_0x518521=this['_cursors'])==null||_0x518521['forEach'](_0x54a4f0=>_0x54a4f0[_0x39578e(0x2f0)]());}['_getSheetObject'](){const _0x379b96=_0x23ebe7;return _0x190bdb(this[_0x379b96(0x1a0)][_0x379b96(0xe7)],this[_0x379b96(0x1a0)]);}};ke=nn([be(0x1,_0xe188da(_0x1a837b)),be(0x2,_0xe188da(H)),be(0x3,_0xe188da(_0x4dfa73))],ke);function on(_0x537e09){const _0x57578e=_0x23ebe7,_0x419a77=new Map();return _0x537e09[_0x57578e(0x301)](_0x4049fb=>{const _0x3089cf=_0x57578e;if(_0x419a77[_0x3089cf(0x30a)](_0x4049fb[_0x3089cf(0x24c)])){const _0x40eca1=_0x419a77[_0x3089cf(0x2e0)](_0x4049fb[_0x3089cf(0x24c)]);_0x40eca1[_0x3089cf(0x109)]+=',\x20'+_0x4049fb[_0x3089cf(0x109)];}else _0x419a77['set'](_0x4049fb['selection'],_0x4049fb);}),Array[_0x57578e(0x2ca)](_0x419a77[_0x57578e(0x287)]());}var an=Object['getOwnPropertyDescriptor'],cn=(_0x5c183e,_0x40f0e1,_0x4b0b02,_0x508109)=>{const _0x482a5c=_0x23ebe7;for(var _0x56da75=_0x508109>0x1?void 0x0:_0x508109?an(_0x40f0e1,_0x4b0b02):_0x40f0e1,_0x195797=_0x5c183e[_0x482a5c(0xe3)]-0x1,_0x53bc1d;_0x195797>=0x0;_0x195797--)(_0x53bc1d=_0x5c183e[_0x195797])&&(_0x56da75=_0x53bc1d(_0x56da75)||_0x56da75);return _0x56da75;},F=(_0x1ee9b7,_0x960e68)=>(_0x2d8a2c,_0x420c21)=>_0x960e68(_0x2d8a2c,_0x420c21,_0x1ee9b7);let _e=class extends _0x1bbcbc{constructor(_0x55cf0a,_0x1c7c0c,_0x44c1bb,_0x708c7b,_0x54353b,_0x614e4b){const _0x5dd098=_0x23ebe7;super(),this[_0x5dd098(0x230)]=_0x55cf0a,this[_0x5dd098(0x265)]=_0x1c7c0c,this[_0x5dd098(0xde)]=_0x44c1bb,this[_0x5dd098(0x277)]=_0x708c7b,this[_0x5dd098(0x2d5)]=_0x54353b,this[_0x5dd098(0x229)]=_0x614e4b,this[_0x5dd098(0x2b0)](),this[_0x5dd098(0x29d)]();}[_0x23ebe7(0x2b0)](){const _0x523cc8=_0x23ebe7;this['disposeWithMe'](this[_0x523cc8(0x230)][_0x523cc8(0x16d)](()=>{const _0x34a86d=_0x523cc8;if(this[_0x34a86d(0x265)][_0x34a86d(0xd9)]['size'])return this[_0x34a86d(0x229)]['t'](_0x34a86d(0x319));}));}[_0x23ebe7(0x29d)](){const _0x117c92=_0x23ebe7;this['disposeWithMe'](this[_0x117c92(0xde)][_0x117c92(0x2d9)][_0x117c92(0x19c)](_0x440dbc=>{const _0x562dbc=_0x117c92;_0x440dbc['id']===_0x3a42[_0x562dbc(0x1fc)]&&this['_messageService'][_0x562dbc(0xff)]({'type':_0x2a6050[_0x562dbc(0xcf)],'content':this[_0x562dbc(0x229)]['t']('collaboration.single-unit.warning')}),_0x440dbc['id']===_0x3a42[_0x562dbc(0x1f5)]&&this['_messageService']['show']({'type':_0x2a6050[_0x562dbc(0xcf)],'content':this['_localeService']['t'](_0x562dbc(0x2b9))}),_0x440dbc['id']===_0x3a42[_0x562dbc(0x138)]&&this[_0x562dbc(0x2d5)][_0x562dbc(0xff)]({'title':this[_0x562dbc(0x229)]['t'](_0x562dbc(0xd6)),'content':this[_0x562dbc(0x229)]['t'](_0x562dbc(0xe5)),'type':'error','duration':0x0}),_0x440dbc['id']===_0x3a42[_0x562dbc(0x185)]&&this[_0x562dbc(0x277)][_0x562dbc(0xff)]({'type':_0x2a6050['Error'],'content':this['_localeService']['t'](_0x562dbc(0x2b9))+'('+_0x440dbc[_0x562dbc(0x121)]+')'}),_0x440dbc['id']===_0x3a42[_0x562dbc(0x17c)]&&this[_0x562dbc(0x277)]['show']({'type':_0x2a6050[_0x562dbc(0xcf)],'content':this['_localeService']['t'](_0x440dbc[_0x562dbc(0x121)]||'')}),_0x440dbc['id']===_0x3a42[_0x562dbc(0x19e)]&&this[_0x562dbc(0x277)]['show']({'type':_0x2a6050['Warning'],'content':this[_0x562dbc(0x229)]['t'](_0x562dbc(0x1b7))}),_0x440dbc['id']===_0x3a42[_0x562dbc(0x1ad)]&&this['_messageService'][_0x562dbc(0xff)]({'type':_0x2a6050['Error'],'content':this[_0x562dbc(0x229)]['t'](_0x562dbc(0x206))}),_0x440dbc['id']===_0x3a42[_0x562dbc(0x2ce)]&&this['_messageService'][_0x562dbc(0xff)]({'type':_0x2a6050[_0x562dbc(0x268)],'content':this[_0x562dbc(0x229)]['t'](_0x562dbc(0x24d))});}));}};_e=cn([F(0x0,_0x1df3a1),F(0x1,_0x3efc30),F(0x2,_0xe188da(_0x184184)),F(0x3,_0x237ee3),F(0x4,_0x28c976),F(0x5,_0xe188da(_0x10502b))],_e);var _n=Object[_0x23ebe7(0x2dd)],ln=(_0x403143,_0x2f03dc,_0x18204f,_0x369391)=>{const _0x4a844e=_0x23ebe7;for(var _0x4c0bd1=_0x369391>0x1?void 0x0:_0x369391?_n(_0x2f03dc,_0x18204f):_0x2f03dc,_0x20b9d5=_0x403143[_0x4a844e(0xe3)]-0x1,_0x452b2c;_0x20b9d5>=0x0;_0x20b9d5--)(_0x452b2c=_0x403143[_0x20b9d5])&&(_0x4c0bd1=_0x452b2c(_0x4c0bd1)||_0x4c0bd1);return _0x4c0bd1;},ne=(_0x429e78,_0xa7da79)=>(_0x362dd0,_0x301fcd)=>_0xa7da79(_0x362dd0,_0x301fcd,_0x429e78);let le=class extends _0x1bbcbc{constructor(_0x4af6fa,_0x228582,_0x41c3fb,_0x3eec6a){const _0x2d2597=_0x23ebe7;super(),_(this,_0x2d2597(0x313)),(this[_0x2d2597(0xea)]=_0x4af6fa,this[_0x2d2597(0x2ac)]=_0x228582,this[_0x2d2597(0x114)]=_0x41c3fb,this[_0x2d2597(0x1de)]=_0x3eec6a,this['_init']());}[_0x23ebe7(0x2ae)](){const _0x120f8c=_0x23ebe7;this['_initWindowErrorListener'](),this['_initUnhandledRejectionListener'](),this[_0x120f8c(0x23c)](),this[_0x120f8c(0x21c)]();}[_0x23ebe7(0x21c)](){const _0x801dd5=_0x23ebe7;this[_0x801dd5(0x20d)](this[_0x801dd5(0x1de)]['socket$'][_0x801dd5(0x19c)](_0x1da893=>{const _0x568b35=_0x801dd5;this['_memberID']=_0x1da893==null?void 0x0:_0x1da893[_0x568b35(0x2f6)];}));}['_initWindowErrorListener'](){const _0x147775=_0x23ebe7,_0x23ff53=_0x2b73b1=>{const _0x4a2902=_0x1473;var _0x320864;this[_0x4a2902(0x310)](_0x4a2902(0x278),_0x4a2902(0x1e0)+_0x2b73b1[_0x4a2902(0x1a5)]+_0x4a2902(0x11d)+_0x2b73b1[_0x4a2902(0x20b)]+':'+_0x2b73b1[_0x4a2902(0x183)]+':'+_0x2b73b1[_0x4a2902(0xe1)]+'\x0a'+(((_0x320864=_0x2b73b1[_0x4a2902(0x278)])==null?void 0x0:_0x320864[_0x4a2902(0x2e8)])||''));};window['addEventListener']('error',_0x23ff53),this[_0x147775(0x20d)](()=>{const _0x81d23a=_0x147775;window[_0x81d23a(0x294)](_0x81d23a(0x278),_0x23ff53);});}[_0x23ebe7(0x2b5)](){const _0x5d007a=_0x23ebe7,_0x18b7df=_0x19cffc=>{const _0x166612=_0x1473;this[_0x166612(0x310)](_0x166612(0x278),_0x166612(0x2fd)+_0x19cffc['reason']);};window[_0x5d007a(0x1f0)](_0x5d007a(0x107),_0x18b7df),this['disposeWithMe'](()=>{window['removeEventListener']('unhandledrejection',_0x18b7df);});}[_0x23ebe7(0x23c)](){const _0x1a1e72=_0x23ebe7,_0x4bf39a=this[_0x1a1e72(0x114)][_0x1a1e72(0x278)][_0x1a1e72(0x1e3)](this[_0x1a1e72(0x114)]);this[_0x1a1e72(0x114)][_0x1a1e72(0x278)]=(..._0x2fd221)=>{const _0x24d66e=_0x1a1e72,_0x60c0e0=_0x2fd221[_0x24d66e(0x317)](_0x2a1cf0=>_0x2a1cf0 instanceof Error?_0x2a1cf0[_0x24d66e(0x1a5)]+'\x0a'+_0x2a1cf0[_0x24d66e(0x2e8)]:String(_0x2a1cf0))[_0x24d66e(0x1dd)]('\x20');this[_0x24d66e(0x310)](_0x24d66e(0x278),'[LogService\x20Error]:\x20'+_0x60c0e0),_0x4bf39a(..._0x2fd221);},this[_0x1a1e72(0x20d)](()=>{const _0x1f0beb=_0x1a1e72;this[_0x1f0beb(0x114)][_0x1f0beb(0x278)]=_0x4bf39a;});}[_0x23ebe7(0x310)](_0x1db8a2,_0x50622e){const _0x1ca014=_0x23ebe7;try{const _0x3265f8={'userId':this[_0x1ca014(0x313)],'logLabel':_0x1db8a2,'content':_0x50622e};this['_httpService'][_0x1ca014(0x2ba)](_0x1ca014(0x1ac),{'body':_0x3265f8})[_0x1ca014(0xd0)](()=>{});}catch{}}};le=ln([ne(0x0,_0xe188da(_0x402c05)),ne(0x1,_0xe188da(_0x4c9e7a)),ne(0x2,_0xe57380),ne(0x3,_0xe188da(_0x2b5b0a))],le);const hn=_0x23ebe7(0x126),_t={};var un=Object[_0x23ebe7(0x2dd)],dn=(_0x32cc36,_0x20afa7,_0x350fa5,_0x139290)=>{for(var _0x1cf79f=_0x139290>0x1?void 0x0:_0x139290?un(_0x20afa7,_0x350fa5):_0x20afa7,_0x5dd836=_0x32cc36['length']-0x1,_0x487599;_0x5dd836>=0x0;_0x5dd836--)(_0x487599=_0x32cc36[_0x5dd836])&&(_0x1cf79f=_0x487599(_0x1cf79f)||_0x1cf79f);return _0x1cf79f;},lt=(_0x34167e,_0x4be373)=>(_0x12586d,_0x1c6d94)=>_0x4be373(_0x12586d,_0x1c6d94,_0x34167e);let he=class{constructor(_0x82f925,_0x1730b9){const _0x523494=_0x23ebe7;this['_transformService']=_0x82f925,this[_0x523494(0x1bc)]=_0x1730b9;}[_0x23ebe7(0x1c7)](_0x5da457){this['_transformUndoRedoStack'](_0x5da457),this['_transformPreviousActiveRange'](_0x5da457);}[_0x23ebe7(0x2ea)](_0x15e151){const _0x4e9aab=_0x23ebe7,{unitID:_0x5c6ab2}=_0x15e151,_0x3a080e=this[_0x4e9aab(0x1bc)]['getRenderById'](_0x5c6ab2)[_0x4e9aab(0x1f4)](_0x296a37),{redoCache:_0x29268b}=_0x3a080e['getUndoRedoMutationParamsCache']();if(_0x29268b[_0x4e9aab(0xe3)]===0x0)return _0x15e151;let _0x4d7022=_0xea71ab[_0x4e9aab(0x163)](_0x15e151[_0x4e9aab(0xca)][0x0]);for(let _0x28c974=0x0;_0x28c974<_0x29268b[_0x4e9aab(0xe3)];_0x28c974++){const _0x5af12f={'id':_0x4e9aab(0x26b),'params':{..._0x29268b[_0x28c974]}},_0x1d9ac2=this[_0x4e9aab(0x285)][_0x4e9aab(0x217)](_0x4d7022,_0x5af12f,!0x1);if(_0x2030ce(_0x1d9ac2))throw _0x1d9ac2[_0x4e9aab(0x278)];_0x4d7022=_0x1d9ac2[_0x4e9aab(0x13f)];}return{..._0xea71ab['deepClone'](_0x15e151),'mutations':[_0x4d7022]};}[_0x23ebe7(0x1e2)](_0x87638d){const _0x2d83e4=_0x23ebe7,{unitID:_0x51baaf}=_0x87638d,_0x2548f=this[_0x2d83e4(0x1bc)]['getRenderById'](_0x51baaf)[_0x2d83e4(0x1f4)](_0x296a37),{undoCache:_0x19c7bd,redoCache:_0x54f545}=_0x2548f[_0x2d83e4(0x130)]();if(_0x19c7bd[_0x2d83e4(0xe3)]===0x0||_0x54f545[_0x2d83e4(0xe3)]===0x0)return;const _0x1b563b=[],_0x21b071=[];let _0xbe82e9=_0xea71ab['deepClone'](_0x87638d['mutations'][0x0]),_0x213429=_0xea71ab[_0x2d83e4(0x163)](_0x87638d[_0x2d83e4(0xca)][0x0]);for(let _0x76d7fd=_0x19c7bd['length']-0x1;_0x76d7fd>=0x0;_0x76d7fd--){const _0x538510={'id':_0x2d83e4(0x26b),'params':{..._0x19c7bd[_0x76d7fd]}},_0x3a3ff7={'id':_0x2d83e4(0x26b),'params':{..._0x54f545[_0x76d7fd]}},_0x188226=this[_0x2d83e4(0x285)][_0x2d83e4(0x217)](_0xbe82e9,_0x538510,!0x1),_0x187740=this[_0x2d83e4(0x285)][_0x2d83e4(0x217)](_0x213429,_0x3a3ff7,!0x1);if(_0x2030ce(_0x188226))throw _0x188226[_0x2d83e4(0x278)];if(_0x2030ce(_0x187740))throw _0x187740['error'];_0x1b563b[_0x2d83e4(0x1d8)](_0x188226[_0x2d83e4(0x25e)][_0x2d83e4(0x201)]),_0x21b071['unshift'](_0x187740[_0x2d83e4(0x25e)][_0x2d83e4(0x201)]),_0xbe82e9=_0x188226[_0x2d83e4(0x13f)],_0x213429=_0x187740['m1Prime'];}_0x2548f[_0x2d83e4(0xc7)]({'undoCache':_0x1b563b,'redoCache':_0x21b071});}[_0x23ebe7(0x262)](_0x15cd51){const _0x2134de=_0x23ebe7,{unitID:_0x2f6632}=_0x15cd51,_0x4a0835=this[_0x2134de(0x1bc)][_0x2134de(0x231)](_0x2f6632)[_0x2134de(0x1f4)](_0x296a37),_0x1fb351=_0x4a0835[_0x2134de(0xfe)]();if(_0x1fb351==null)return;const _0x43d515=[{'id':_0x2134de(0x26b),'params':{'unitId':_0x15cd51[_0x2134de(0x1cf)],'actions':null,'textRanges':[_0x1fb351]}}],_0x3b63c7=this[_0x2134de(0x285)]['transformMutationsWithChangeset'](_0x15cd51,_0x43d515);if(!_0x5ee420(_0x3b63c7))throw _0x3b63c7[_0x2134de(0x278)];const _0x4db304=_0x3b63c7[_0x2134de(0x25e)][0x0][_0x2134de(0x201)]['textRanges'];Array['isArray'](_0x4db304)&&_0x4db304[_0x2134de(0xe3)]&&_0x4a0835['setActiveRange'](_0x4db304[0x0]);}};he=dn([lt(0x0,_0x401fcf),lt(0x1,_0x2296f8)],he);var Sn=Object['getOwnPropertyDescriptor'],In=(_0x3ca725,_0x32b68e,_0x123145,_0x3296fd)=>{const _0x519e82=_0x23ebe7;for(var _0x4ea163=_0x3296fd>0x1?void 0x0:_0x3296fd?Sn(_0x32b68e,_0x123145):_0x32b68e,_0x3df596=_0x3ca725[_0x519e82(0xe3)]-0x1,_0x2c6f6d;_0x3df596>=0x0;_0x3df596--)(_0x2c6f6d=_0x3ca725[_0x3df596])&&(_0x4ea163=_0x2c6f6d(_0x4ea163)||_0x4ea163);return _0x4ea163;},Le=(_0x53d2c9,_0x380b51)=>(_0x125a44,_0x5921a6)=>_0x380b51(_0x125a44,_0x5921a6,_0x53d2c9);let ue=class{constructor(_0x550f4d,_0x4d185c,_0x52a197){const _0x2ea50e=_0x23ebe7;this['_injector']=_0x550f4d,this['_transformService']=_0x4d185c,this[_0x2ea50e(0x110)]=_0x52a197;}[_0x23ebe7(0x1a8)](_0x23400b){const _0x9f00eb=_0x23ebe7;this[_0x9f00eb(0x26f)](_0x23400b);}[_0x23ebe7(0x2ea)](_0x42d4bd){const _0x27aeef=_0x23ebe7,{unitID:_0xda03af}=_0x42d4bd,{collaboration:_0x44f6f3}=this[_0x27aeef(0x110)][_0x27aeef(0x14f)](_0xda03af);if(_0x44f6f3[_0x27aeef(0xe3)]===0x0)return _0x42d4bd;let _0xf61c98=_0xea71ab[_0x27aeef(0x163)](_0x42d4bd['mutations'][0x0]);for(let _0x57bd2f=0x0;_0x57bd2f<_0x44f6f3[_0x27aeef(0xe3)];_0x57bd2f++){const _0x1c049c={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x44f6f3[_0x57bd2f][_0x27aeef(0x29f)],..._0x44f6f3[_0x57bd2f]['redoState']}},_0x16f3ba=this['_transformService'][_0x27aeef(0x217)](_0xf61c98,_0x1c049c,!0x1);if(_0x2030ce(_0x16f3ba))throw _0x16f3ba[_0x27aeef(0x278)];_0xf61c98=_0x16f3ba[_0x27aeef(0x13f)];}return{..._0xea71ab[_0x27aeef(0x163)](_0x42d4bd),'mutations':[_0xf61c98]};}[_0x23ebe7(0x26f)](_0x37a63a){const _0x4e6a6b=_0x23ebe7,{unitID:_0x24c2f2}=_0x37a63a,{history:_0x18a7bf,collaboration:_0x28b40e}=this[_0x4e6a6b(0x110)][_0x4e6a6b(0x14f)](_0x24c2f2);if(_0x18a7bf[_0x4e6a6b(0xe3)]===0x0&&_0x28b40e[_0x4e6a6b(0xe3)]===0x0)return;const _0x22b3d3=[],_0x5ddce6=[];let _0x3f93ca=_0xea71ab[_0x4e6a6b(0x163)](_0x37a63a[_0x4e6a6b(0xca)][0x0]),_0x2e6b21=_0xea71ab[_0x4e6a6b(0x163)](_0x37a63a['mutations'][0x0]);for(let _0x5250da=_0x18a7bf[_0x4e6a6b(0xe3)]-0x1;_0x5250da>=0x0;_0x5250da--){const _0x32e3dd={'id':_0x4e6a6b(0x26b),'params':{'unitId':_0x18a7bf[_0x5250da][_0x4e6a6b(0x29f)],..._0x18a7bf[_0x5250da]['undoState']}},_0xf0cf19={'id':_0x4e6a6b(0x26b),'params':{'unitId':_0x18a7bf[_0x5250da]['unitId'],..._0x18a7bf[_0x5250da]['redoState']}},_0x301aef=this[_0x4e6a6b(0x285)][_0x4e6a6b(0x217)](_0x3f93ca,_0x32e3dd,!0x1),_0x1be881=this[_0x4e6a6b(0x285)][_0x4e6a6b(0x217)](_0x2e6b21,_0xf0cf19,!0x1);if(_0x2030ce(_0x301aef))throw _0x301aef['error'];if(_0x2030ce(_0x1be881))throw _0x1be881[_0x4e6a6b(0x278)];_0x22b3d3['unshift']({..._0x18a7bf[_0x5250da],'undoState':_0x301aef[_0x4e6a6b(0x25e)][_0x4e6a6b(0x201)],'redoState':_0x1be881[_0x4e6a6b(0x25e)][_0x4e6a6b(0x201)]}),_0x3f93ca=_0x301aef[_0x4e6a6b(0x13f)],_0x2e6b21=_0x1be881['m1Prime'];}_0x3f93ca=_0xea71ab[_0x4e6a6b(0x163)](_0x37a63a[_0x4e6a6b(0xca)][0x0]),_0x2e6b21=_0xea71ab[_0x4e6a6b(0x163)](_0x37a63a['mutations'][0x0]);for(let _0x508b7e=_0x28b40e['length']-0x1;_0x508b7e>=0x0;_0x508b7e--){const _0x55e86c={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x28b40e[_0x508b7e][_0x4e6a6b(0x29f)],..._0x28b40e[_0x508b7e][_0x4e6a6b(0x2c2)]}},_0x4b2743={'id':_0x4e6a6b(0x26b),'params':{'unitId':_0x28b40e[_0x508b7e]['unitId'],..._0x28b40e[_0x508b7e][_0x4e6a6b(0xf6)]}},_0x1c07a3=this['_transformService'][_0x4e6a6b(0x217)](_0x3f93ca,_0x55e86c,!0x1),_0x10f3b2=this[_0x4e6a6b(0x285)][_0x4e6a6b(0x217)](_0x2e6b21,_0x4b2743,!0x1);if(_0x2030ce(_0x1c07a3))throw _0x1c07a3[_0x4e6a6b(0x278)];if(_0x2030ce(_0x10f3b2))throw _0x10f3b2[_0x4e6a6b(0x278)];_0x5ddce6['unshift']({..._0x28b40e[_0x508b7e],'undoState':_0x1c07a3[_0x4e6a6b(0x25e)]['params'],'redoState':_0x10f3b2[_0x4e6a6b(0x25e)]['params']}),_0x3f93ca=_0x1c07a3[_0x4e6a6b(0x13f)],_0x2e6b21=_0x10f3b2[_0x4e6a6b(0x13f)];}this[_0x4e6a6b(0x110)][_0x4e6a6b(0x1e6)](_0x24c2f2,{'history':_0x22b3d3,'collaboration':_0x5ddce6});}};ue=In([Le(0x0,_0xe188da(_0x402c05)),Le(0x1,_0x401fcf),Le(0x2,_0xe188da(_0x12a220))],ue);var mn=Object[_0x23ebe7(0x2dd)],fn=(_0x23fbb6,_0x4d0c01,_0x1029d6,_0x561c88)=>{const _0x38b4a4=_0x23ebe7;for(var _0x51fe74=_0x561c88>0x1?void 0x0:_0x561c88?mn(_0x4d0c01,_0x1029d6):_0x4d0c01,_0xc4b819=_0x23fbb6[_0x38b4a4(0xe3)]-0x1,_0x5d1890;_0xc4b819>=0x0;_0xc4b819--)(_0x5d1890=_0x23fbb6[_0xc4b819])&&(_0x51fe74=_0x5d1890(_0x51fe74)||_0x51fe74);return _0x51fe74;},ht=(_0x5813a9,_0x27e459)=>(_0x90f1c5,_0x234294)=>_0x27e459(_0x90f1c5,_0x234294,_0x5813a9);function _0x1473(_0x110825,_0x531b31){_0x110825=_0x110825-0xc2;const _0x4a7618=_0x4a76();let _0x147389=_0x4a7618[_0x110825];return _0x147389;}let de=class{constructor(_0x58a01a,_0x553f5e){const _0xa92035=_0x23ebe7;this[_0xa92035(0xea)]=_0x58a01a,this['_transformService']=_0x553f5e;}[_0x23ebe7(0x27f)](_0x13eb07){const _0x47e2e6=_0x23ebe7;var _0x4bb2a4;const _0x36b19e=this['_injector']['get'](_0x583272),_0x2bb025=(_0x4bb2a4=_0x36b19e[_0x47e2e6(0x249)]())!=null?_0x4bb2a4:[];if(_0x2bb025[_0x47e2e6(0xe3)]===0x0)return;const _0xcd5cec=_0x13eb07[_0x47e2e6(0x1cf)],_0x2181e6=[{'id':_0x47e2e6(0x26b),'params':{'unitId':_0xcd5cec,'actions':null,'textRanges':_0x2bb025}}],_0xfb22b9=this['_transformService'][_0x47e2e6(0xf7)](_0x13eb07,_0x2181e6);if(!_0x5ee420(_0xfb22b9))throw _0xfb22b9[_0x47e2e6(0x278)];const _0x127375=_0xfb22b9['m2Prime'][0x0]['params'][_0x47e2e6(0x239)];Array[_0x47e2e6(0x21a)](_0x127375)&&_0x127375[_0x47e2e6(0xe3)]&&_0x36b19e[_0x47e2e6(0x1d0)](_0x127375,{'unitId':_0xcd5cec,'subUnitId':_0xcd5cec},!0x1);}};de=fn([ht(0x0,_0xe188da(_0x402c05)),ht(0x1,_0x401fcf)],de);var gn=Object[_0x23ebe7(0x2dd)],En=(_0x4eb91e,_0x5c51b4,_0x58a77d,_0x367ace)=>{for(var _0x1395de=_0x367ace>0x1?void 0x0:_0x367ace?gn(_0x5c51b4,_0x58a77d):_0x5c51b4,_0x57a54c=_0x4eb91e['length']-0x1,_0x2d3d0f;_0x57a54c>=0x0;_0x57a54c--)(_0x2d3d0f=_0x4eb91e[_0x57a54c])&&(_0x1395de=_0x2d3d0f(_0x1395de)||_0x1395de);return _0x1395de;},U=(_0x13cd65,_0x5d11b2)=>(_0x4cd5dd,_0x98119e)=>_0x5d11b2(_0x4cd5dd,_0x98119e,_0x13cd65);let Se=class extends _0x1bbcbc{constructor(_0x418533,_0x4a52ac,_0x3f47d8,_0x54851c,_0x231cf9,_0x39e400,_0x490caa,_0x20fdc3){const _0x2d8834=_0x23ebe7;super(),_(this,'_status$',new _0x17a144(_0x46761b[_0x2d8834(0x102)])),(this[_0x2d8834(0x110)]=_0x418533,this[_0x2d8834(0x132)]=_0x4a52ac,this[_0x2d8834(0x2bf)]=_0x3f47d8,this[_0x2d8834(0x15f)]=_0x54851c,this[_0x2d8834(0x267)]=_0x231cf9,this['_docSyncEditingCollabCursorService']=_0x39e400,this['_messageService']=_0x490caa,this[_0x2d8834(0x229)]=_0x20fdc3,this[_0x2d8834(0x145)]());}['_initEntityListener'](){const _0x1d3b8a=_0x23ebe7;this[_0x1d3b8a(0x20d)](this[_0x1d3b8a(0x132)]['entityInit$'][_0x1d3b8a(0x19c)](_0x560d56=>{const _0xd5699f=_0x1d3b8a,_0x3e16cd=this['_docStateChangeManagerService'][_0xd5699f(0x1d3)][_0xd5699f(0x19c)](_0x126612=>{const _0x219c73=_0xd5699f;if(_0x126612==null)return;const {unitId:_0x633203,redoState:_0x2bb924,commandId:_0x433daf}=_0x126612;if(_0x633203!==_0x560d56[_0x219c73(0x1cf)])return;const _0x165f73={'id':_0x433daf,'type':_0x40e738[_0x219c73(0x1fd)],'params':{'unitId':_0x633203,'actions':_0x2bb924['actions'],'textRanges':null}};_0x560d56[_0x219c73(0x119)](_0x165f73);});if(_0x560d56[_0xd5699f(0x20d)](_0x3e16cd),_0x560d56 instanceof _0x4ea44f){const _0x258a0a={'onTransformIME':_0x32d9f6=>this[_0xd5699f(0x2bf)][_0xd5699f(0x1c7)](_0x32d9f6),'onTransformState':_0x105859=>this['_docTransformStateCacheService'][_0xd5699f(0x1a8)](_0x105859),'onTransformSelections':_0x2338d6=>this[_0xd5699f(0x267)][_0xd5699f(0x27f)](_0x2338d6),'onSyncEditingCollabCursor':_0x8f5587=>this[_0xd5699f(0x2ef)]['syncEditingCollabCursor'](_0x8f5587),'onTransformRemoteChangesetByIMECache':_0x2cab9f=>this[_0xd5699f(0x2bf)][_0xd5699f(0x2ea)](_0x2cab9f),'onTransformRemoteChangesetByStateCache':_0x8d2330=>this['_docTransformStateCacheService'][_0xd5699f(0x2ea)](_0x8d2330)};_0x560d56[_0xd5699f(0x1ab)](_0x258a0a);}}));}};Se=En([U(0x0,_0xe188da(_0x12a220)),U(0x1,_0xe188da(_0x585ed2)),U(0x2,_0xe188da(he)),U(0x3,_0xe188da(ue)),U(0x4,_0xe188da(de)),U(0x5,_0xe188da(ze)),U(0x6,_0x237ee3),U(0x7,_0xe188da(_0x10502b))],Se);var Z=(_0x2ecdc8=>(_0x2ecdc8[_0x2ecdc8[_0x23ebe7(0xed)]=0x0]=_0x23ebe7(0xed),_0x2ecdc8[_0x2ecdc8['OK']=0x1]='OK',_0x2ecdc8[_0x2ecdc8['INTERNAL_ERROR']=0x2]=_0x23ebe7(0x2a0),_0x2ecdc8[_0x2ecdc8['PERMISSION_DENIED']=0x3]=_0x23ebe7(0x138),_0x2ecdc8[_0x2ecdc8[_0x23ebe7(0x11e)]=0x4]=_0x23ebe7(0x11e),_0x2ecdc8[_0x2ecdc8['UNAUTHENTICATED']=0x5]=_0x23ebe7(0xe8),_0x2ecdc8[_0x2ecdc8[_0x23ebe7(0x18b)]=0x6]=_0x23ebe7(0x18b),_0x2ecdc8[_0x2ecdc8[_0x23ebe7(0x2b3)]=0x7]=_0x23ebe7(0x2b3),_0x2ecdc8[_0x2ecdc8['TOO_MANY_REQUESTS']=0x8]='TOO_MANY_REQUESTS',_0x2ecdc8[_0x2ecdc8[_0x23ebe7(0x2d4)]=0x9]='COMPLETION_FINISHED',_0x2ecdc8[_0x2ecdc8[_0x23ebe7(0x263)]=0xa]=_0x23ebe7(0x263),_0x2ecdc8[_0x2ecdc8[_0x23ebe7(0x248)]=0xb]=_0x23ebe7(0x248),_0x2ecdc8[_0x2ecdc8[_0x23ebe7(0x246)]=0xc]=_0x23ebe7(0x246),_0x2ecdc8[_0x2ecdc8[_0x23ebe7(0x103)]=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0x2ecdc8[_0x2ecdc8[_0x23ebe7(0x1f3)]=0xe]=_0x23ebe7(0x1f3),_0x2ecdc8[_0x2ecdc8['AUTHORIZE_CODE_ILLEGAL']=0xf]=_0x23ebe7(0x142),_0x2ecdc8[_0x2ecdc8[_0x23ebe7(0x2cc)]=0x10]=_0x23ebe7(0x2cc),_0x2ecdc8[_0x2ecdc8['CURRENT_STATUS_CANNOT_OPERATE']=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x2ecdc8[_0x2ecdc8[_0x23ebe7(0xfb)]=0x65]=_0x23ebe7(0xfb),_0x2ecdc8[_0x2ecdc8['USER_NOT_FOUND']=0xc9]=_0x23ebe7(0x22a),_0x2ecdc8[_0x2ecdc8[_0x23ebe7(0x165)]=0xca]='USER_IS_ANONYMOUS',_0x2ecdc8[_0x2ecdc8['CHANGESET_REVISION_CONFILICT']=0x1389]='CHANGESET_REVISION_CONFILICT',_0x2ecdc8[_0x2ecdc8[_0x23ebe7(0x1e9)]=0x1771]=_0x23ebe7(0x1e9),_0x2ecdc8[_0x2ecdc8[_0x23ebe7(0xfd)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x2ecdc8[_0x2ecdc8['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x23ebe7(0x168),_0x2ecdc8[_0x2ecdc8['APPLY_REJECT']=0x1b59]=_0x23ebe7(0x305),_0x2ecdc8[_0x2ecdc8[_0x23ebe7(0x105)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x2ecdc8[_0x2ecdc8[_0x23ebe7(0x1c0)]=0x1b5b]=_0x23ebe7(0x1c0),_0x2ecdc8[_0x2ecdc8[_0x23ebe7(0x181)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x2ecdc8[_0x2ecdc8['APPLY_DUPLICATED']=0x1b5d]=_0x23ebe7(0xf3),_0x2ecdc8[_0x2ecdc8['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x23ebe7(0x193),_0x2ecdc8[_0x2ecdc8[_0x23ebe7(0x2cb)]=0x2329]=_0x23ebe7(0x2cb),_0x2ecdc8[_0x2ecdc8['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x23ebe7(0x240),_0x2ecdc8[_0x2ecdc8[_0x23ebe7(0x2bc)]=0x232b]=_0x23ebe7(0x2bc),_0x2ecdc8[_0x2ecdc8['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x23ebe7(0x27c),_0x2ecdc8[_0x2ecdc8[_0x23ebe7(0xce)]=0x232d]=_0x23ebe7(0xce),_0x2ecdc8[_0x2ecdc8[_0x23ebe7(0x25b)]=0x2711]=_0x23ebe7(0x25b),_0x2ecdc8[_0x2ecdc8[_0x23ebe7(0x195)]=0x2712]=_0x23ebe7(0x195),_0x2ecdc8[_0x2ecdc8[_0x23ebe7(0x1e8)]=0x2713]=_0x23ebe7(0x1e8),_0x2ecdc8[_0x2ecdc8[_0x23ebe7(0x270)]=0x2714]=_0x23ebe7(0x270),_0x2ecdc8[_0x2ecdc8[_0x23ebe7(0x194)]=0x271a]=_0x23ebe7(0x194),_0x2ecdc8[_0x2ecdc8[_0x23ebe7(0x1a6)]=0x271b]=_0x23ebe7(0x1a6),_0x2ecdc8[_0x2ecdc8[_0x23ebe7(0x2d3)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x2ecdc8[_0x2ecdc8['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x23ebe7(0x2f7),_0x2ecdc8[_0x2ecdc8['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x2ecdc8[_0x2ecdc8[_0x23ebe7(0x2a7)]=0x271f]=_0x23ebe7(0x2a7),_0x2ecdc8[_0x2ecdc8[_0x23ebe7(0x2e2)]=0x2720]=_0x23ebe7(0x2e2),_0x2ecdc8[_0x2ecdc8[_0x23ebe7(0x257)]=0x2af9]=_0x23ebe7(0x257),_0x2ecdc8[_0x2ecdc8[_0x23ebe7(0x14c)]=0x2ee1]=_0x23ebe7(0x14c),_0x2ecdc8[_0x2ecdc8[_0x23ebe7(0x2d6)]=0x2ee2]=_0x23ebe7(0x2d6),_0x2ecdc8[_0x2ecdc8[_0x23ebe7(0x11a)]=0x2ee3]=_0x23ebe7(0x11a),_0x2ecdc8[_0x2ecdc8[_0x23ebe7(0x1f1)]=0x2ee4]='USER_NOT_INVITED_CODE',_0x2ecdc8[_0x2ecdc8[_0x23ebe7(0x155)]=0x2ee5]=_0x23ebe7(0x155),_0x2ecdc8[_0x2ecdc8[_0x23ebe7(0x12a)]=0x32c9]=_0x23ebe7(0x12a),_0x2ecdc8[_0x2ecdc8['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x23ebe7(0x291),_0x2ecdc8[_0x2ecdc8[_0x23ebe7(0x186)]=0x32cb]=_0x23ebe7(0x186),_0x2ecdc8[_0x2ecdc8[_0x23ebe7(0x2f4)]=0x36b1]=_0x23ebe7(0x2f4),_0x2ecdc8[_0x2ecdc8[_0x23ebe7(0x1f6)]=0x36b2]='ENTITLE_UPDOWN_GRADE_NOT_SUPPORT',_0x2ecdc8[_0x2ecdc8[_0x23ebe7(0x31c)]=0x36b3]='ENTITLE_DUP_SUBSCRIPTION',_0x2ecdc8[_0x2ecdc8[_0x23ebe7(0x169)]=0x36b4]=_0x23ebe7(0x169),_0x2ecdc8[_0x2ecdc8[_0x23ebe7(0x1eb)]=0x36b5]=_0x23ebe7(0x1eb),_0x2ecdc8[_0x2ecdc8[_0x23ebe7(0x1ce)]=0x36b6]='ENTITLE_COUPON_EXPIRED',_0x2ecdc8[_0x2ecdc8[_0x23ebe7(0xdf)]=0x36b7]=_0x23ebe7(0xdf),_0x2ecdc8[_0x2ecdc8['ENTITLE_USE_COUPON_NOT_1ST_TRADE']=0x36b8]='ENTITLE_USE_COUPON_NOT_1ST_TRADE',_0x2ecdc8[_0x2ecdc8[_0x23ebe7(0x2e4)]=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0x2ecdc8[_0x2ecdc8[_0x23ebe7(0x1dc)]=0x3716]=_0x23ebe7(0x1dc),_0x2ecdc8[_0x2ecdc8[_0x23ebe7(0x237)]=0x3717]=_0x23ebe7(0x237),_0x2ecdc8[_0x2ecdc8[_0x23ebe7(0x302)]=0x37dd]=_0x23ebe7(0x302),_0x2ecdc8[_0x2ecdc8[_0x23ebe7(0x170)]=0x3a99]=_0x23ebe7(0x170),_0x2ecdc8[_0x2ecdc8[_0x23ebe7(0xc2)]=0x3a9a]=_0x23ebe7(0xc2),_0x2ecdc8[_0x2ecdc8[_0x23ebe7(0x227)]=0x3a9b]=_0x23ebe7(0x227),_0x2ecdc8[_0x2ecdc8[_0x23ebe7(0x125)]=0x3a9c]='REDEMPTION_CODE_NOT_STARTED',_0x2ecdc8[_0x2ecdc8[_0x23ebe7(0x1c2)]=0x3a9d]=_0x23ebe7(0x1c2),_0x2ecdc8[_0x2ecdc8['REDEMPTION_USER_REDEEM_TIMES_EXCEED']=0x3a9e]=_0x23ebe7(0x1c3),_0x2ecdc8[_0x2ecdc8[_0x23ebe7(0x159)]=0x3a9f]=_0x23ebe7(0x159),_0x2ecdc8[_0x2ecdc8[_0x23ebe7(0x269)]=0x3e81]=_0x23ebe7(0x269),_0x2ecdc8[_0x2ecdc8[_0x23ebe7(0x1ec)]=-0x1]=_0x23ebe7(0x1ec),_0x2ecdc8))(Z||{});function vn(_0x4ef9af){const _0x52345c=_0x23ebe7;var _0x529ee2,_0x2d9059;const _0x12c6d4=(_0x529ee2=_0x4ef9af['stageInfo'])==null?void 0x0:_0x529ee2[_0x52345c(0x2cf)],_0x348948=((_0x2d9059=_0x4ef9af[_0x52345c(0x200)])==null?void 0x0:_0x2d9059[_0x52345c(0x2a6)])||0x0;return _0x12c6d4===_0x52926b[_0x52345c(0x1ba)]&&_0x348948>0x0;}function pn(_0x5a6b36){const _0x76f1e6=_0x23ebe7;return _0x5a6b36['functionsExecutedState']===_0x2ef5ff[_0x76f1e6(0x160)];}var On=Object[_0x23ebe7(0x2dd)],Tn=(_0x57a448,_0x19c1ae,_0x52e121,_0x25c8ed)=>{const _0x3d2e46=_0x23ebe7;for(var _0x52f2f8=_0x25c8ed>0x1?void 0x0:_0x25c8ed?On(_0x19c1ae,_0x52e121):_0x19c1ae,_0x196446=_0x57a448[_0x3d2e46(0xe3)]-0x1,_0x146cae;_0x196446>=0x0;_0x196446--)(_0x146cae=_0x57a448[_0x196446])&&(_0x52f2f8=_0x146cae(_0x52f2f8)||_0x52f2f8);return _0x52f2f8;},P=(_0x3ae34d,_0x3005ce)=>(_0x1798ac,_0x1c2bb1)=>_0x3005ce(_0x1798ac,_0x1c2bb1,_0x3ae34d);const Cn=_0x23ebe7(0xe4),Rn=_0x23ebe7(0x30e),Dn='/universer-api/license/formula/limit/done';let Ie=class extends _0x1bbcbc{constructor(_0x510138,_0x211ead,_0x565de8,_0x16184e,_0x20530f,_0x2ddb76,_0x47409d){const _0x3f403e=_0x23ebe7;super(),_(this,_0x3f403e(0x180),null),_(this,_0x3f403e(0x205),0x0),_(this,_0x3f403e(0x191),0x0),_(this,'_taskIds',[]),_(this,'_lastResponseTimestamp',0x0),(this['_messageService']=_0x510138,this[_0x3f403e(0x2be)]=_0x211ead,this[_0x3f403e(0x22b)]=_0x565de8,this[_0x3f403e(0x2ac)]=_0x16184e,this['_univerInstanceService']=_0x20530f,this[_0x3f403e(0x114)]=_0x2ddb76,this['_localeService']=_0x47409d,this[_0x3f403e(0x1a2)]());}[_0x23ebe7(0x1a2)](){const _0x7b101d=_0x23ebe7;this[_0x7b101d(0x20d)](this['_commandService']['beforeCommandExecuted']((_0x34c4ef,_0x49b145)=>{const _0x40fd80=_0x7b101d;var _0x1ff6cf;if(_0x34c4ef['id']!==_0x512216['id'])return;const _0x8754bd=_0x34c4ef['params'];if(!this[_0x40fd80(0x26d)]((_0x1ff6cf=_0x8754bd[_0x40fd80(0xf5)])!=null?_0x1ff6cf:[]))return;if(!this[_0x40fd80(0x164)]())throw this[_0x40fd80(0x16c)](_0x34c4ef,_0x49b145),this[_0x40fd80(0x104)](),new _0x41315e();})),this[_0x7b101d(0x20d)](this['_commandService'][_0x7b101d(0x10d)]((_0x59156b,_0x447bbd)=>{const _0x44a004=_0x7b101d;if(_0x59156b['id']!==_0x33d26b['id'])return;const _0x1e8528=_0x59156b[_0x44a004(0x201)];if(vn(_0x1e8528)){const _0xf82b82=_0x3023d1();this[_0x44a004(0x1fa)][_0x44a004(0x19a)](_0xf82b82),this[_0x44a004(0x28f)](_0xf82b82);}else{if(pn(_0x1e8528)&&this['_taskIds'][_0x44a004(0xe3)]>0x0){const _0x5ef6e0=this[_0x44a004(0x1fa)]['shift']();this['_releaseCalculationLimit'](_0x5ef6e0);}}}));}['dispose'](){const _0x743c58=_0x23ebe7;super[_0x743c58(0x2f0)](),this[_0x743c58(0xc9)](),this[_0x743c58(0x1fa)]=[],this[_0x743c58(0x191)]=0x0,this['_maxFormulaLimit']=0x0,this[_0x743c58(0x208)]=0x0;}async[_0x23ebe7(0x16c)](_0xfa400a,_0x21448e){const _0x2edd89=_0x23ebe7;for(let _0x47848a=0x0;_0x47848a<0x1e;_0x47848a++)try{if(await this['_getFormulaLimitStatus'](),this[_0x2edd89(0x164)]()){this['_applyCommand'](_0xfa400a,_0x21448e),this[_0x2edd89(0x277)]['show']({'content':this['_localeService']['t'](_0x2edd89(0x266)),'type':_0x2a6050[_0x2edd89(0x1c8)]});return;}await new Promise(_0x27cc08=>{const _0x5b707b=_0x2edd89;this['_pollingInterval']=window[_0x5b707b(0x298)](_0x27cc08,0x3e8);});}catch(_0x54547a){this[_0x2edd89(0x114)][_0x2edd89(0x278)](_0x54547a);}this[_0x2edd89(0x277)][_0x2edd89(0xff)]({'content':this['_localeService']['t'](_0x2edd89(0x112)),'type':_0x2a6050['Error']});}[_0x23ebe7(0xd1)](_0x47d365,_0x35f5d0){const _0x49c239=_0x23ebe7;try{this[_0x49c239(0x2be)][_0x49c239(0x236)](_0x47d365['id'],_0x47d365[_0x49c239(0x201)],_0x35f5d0);}catch(_0xfb7e44){this['_logService'][_0x49c239(0x278)](_0xfb7e44);}}[_0x23ebe7(0x22e)](_0x3e937b,_0x14c838){const _0x55c093=_0x23ebe7;_0x14c838<this[_0x55c093(0x208)]||(this['_lastResponseTimestamp']=_0x14c838,this['_maxFormulaLimit']=Number['parseInt'](_0x3e937b[_0x55c093(0x2a4)]),this[_0x55c093(0x191)]=Number[_0x55c093(0x233)](_0x3e937b[_0x55c093(0x139)]));}async[_0x23ebe7(0x28f)](_0x106a62){const _0x4a6d9e=_0x23ebe7;var _0x594376,_0x2ae774;const _0xfe1d7c=Date[_0x4a6d9e(0x2c4)]();try{const _0x13e381=((_0x594376=this[_0x4a6d9e(0x22b)]['getConfig'](_0x55ebf4))==null?void 0x0:_0x594376[_0x4a6d9e(0x290)])||Rn,_0x2fafab=(await this[_0x4a6d9e(0x2ac)][_0x4a6d9e(0x2ba)](_0x13e381,{'body':JSON[_0x4a6d9e(0xd4)]({'taskId':_0x106a62})}))[_0x4a6d9e(0x207)];if(((_0x2ae774=_0x2fafab[_0x4a6d9e(0x278)])==null?void 0x0:_0x2ae774['code'])!==Z['OK'])return;this['_setFormulaLimitStatus'](_0x2fafab[_0x4a6d9e(0x223)],_0xfe1d7c);}catch(_0x4da6cf){this[_0x4a6d9e(0x114)][_0x4a6d9e(0x278)](_0x4da6cf);}}async[_0x23ebe7(0x13b)](_0x88203){const _0xbe1095=_0x23ebe7;var _0x35ba0e,_0x94c314;const _0xc77b5a=Date['now']();try{const _0x1711fe=((_0x35ba0e=this[_0xbe1095(0x22b)]['getConfig'](_0x55ebf4))==null?void 0x0:_0x35ba0e[_0xbe1095(0x167)])||Cn,_0x40d252=_0x88203?_0x1711fe+'?taskId='+encodeURIComponent(_0x88203):_0x1711fe,_0x33643d=(await this[_0xbe1095(0x2ac)][_0xbe1095(0x2e0)](_0x40d252))[_0xbe1095(0x207)];if(((_0x94c314=_0x33643d[_0xbe1095(0x278)])==null?void 0x0:_0x94c314['code'])!==Z['OK'])return;this[_0xbe1095(0x22e)](_0x33643d['limitInfo'],_0xc77b5a);}catch(_0x18103f){this[_0xbe1095(0x114)]['error'](_0x18103f);}}async[_0x23ebe7(0x15b)](_0x29a1cc){const _0x4fcad9=_0x23ebe7;var _0x20d61d,_0x32bc69;const _0xb2e81b=Date['now']();try{const _0x53fe96=((_0x20d61d=this['_configService'][_0x4fcad9(0x1c6)](_0x55ebf4))==null?void 0x0:_0x20d61d[_0x4fcad9(0x146)])||Dn,_0x5e9833=(await this[_0x4fcad9(0x2ac)][_0x4fcad9(0x2ba)](_0x53fe96,{'body':JSON[_0x4fcad9(0xd4)]({'taskId':_0x29a1cc})}))[_0x4fcad9(0x207)];if(((_0x32bc69=_0x5e9833['error'])==null?void 0x0:_0x32bc69[_0x4fcad9(0x116)])!==Z['OK'])return;this[_0x4fcad9(0x22e)](_0x5e9833[_0x4fcad9(0x223)],_0xb2e81b);}catch(_0x426961){this['_logService'][_0x4fcad9(0x278)](_0x426961);}}[_0x23ebe7(0x164)](){const _0x1db531=_0x23ebe7;return this[_0x1db531(0x205)]===0x0?!0x0:this['_maxFormulaLimit']-this[_0x1db531(0x191)]>0x0;}[_0x23ebe7(0xc9)](){const _0x27c26b=_0x23ebe7;this[_0x27c26b(0x180)]&&(clearTimeout(this[_0x27c26b(0x180)]),this[_0x27c26b(0x180)]=null);}[_0x23ebe7(0x104)](){const _0x1abbe0=_0x23ebe7;this[_0x1abbe0(0x277)]['show']({'content':this[_0x1abbe0(0x229)]['t']('formula.calculation.waiting'),'type':_0x2a6050[_0x1abbe0(0x144)]});}[_0x23ebe7(0x26d)](_0xdf3513){const _0x4516a0=_0x23ebe7;for(const _0x239dd7 of _0xdf3513){const {unitId:_0x157ce4,sheetId:_0x7efb,range:_0x196067}=_0x239dd7,_0x331f68=this[_0x4516a0(0x148)][_0x4516a0(0x225)](_0x157ce4);if(!_0x331f68)continue;const _0x5059a5=_0x331f68[_0x4516a0(0x2b7)](_0x7efb);if(!_0x5059a5)continue;const _0x943a75=_0x5059a5[_0x4516a0(0x304)]();for(let _0x5b5298=_0x196067['startRow'];_0x5b5298<=_0x196067[_0x4516a0(0x1a9)];_0x5b5298++)for(let _0x37a172=_0x196067[_0x4516a0(0x24e)];_0x37a172<=_0x196067[_0x4516a0(0x196)];_0x37a172++){const _0x1e8f2a=_0x943a75[_0x4516a0(0x2e1)](_0x5b5298,_0x37a172);if(_0x1e8f2a&&(_0x39babf(_0x1e8f2a['f'])||_0x362f2e(_0x1e8f2a['si'])))return!0x0;}}return!0x1;}};Ie=Tn([P(0x0,_0xe188da(_0x237ee3)),P(0x1,_0x16d352),P(0x2,_0x47f3de),P(0x3,_0xe188da(_0x4c9e7a)),P(0x4,_0x2e4fbc),P(0x5,_0xe57380),P(0x6,_0xe188da(_0x10502b))],Ie);var Nn=Object[_0x23ebe7(0x2dd)],bn=(_0x6fb92d,_0x3335a6,_0xcf1892,_0x5bf5d9)=>{const _0x6e08c=_0x23ebe7;for(var _0x28f5a2=_0x5bf5d9>0x1?void 0x0:_0x5bf5d9?Nn(_0x3335a6,_0xcf1892):_0x3335a6,_0x279376=_0x6fb92d[_0x6e08c(0xe3)]-0x1,_0x5d9fd8;_0x279376>=0x0;_0x279376--)(_0x5d9fd8=_0x6fb92d[_0x279376])&&(_0x28f5a2=_0x5d9fd8(_0x28f5a2)||_0x28f5a2);return _0x28f5a2;},Ue=(_0x402071,_0x1400f8)=>(_0x1bc750,_0x1d87c1)=>_0x1400f8(_0x1bc750,_0x1d87c1,_0x402071);let He=class extends _0x1bbcbc{constructor(_0x2b43e3,_0x29d426,_0x56275c){const _0x236879=_0x23ebe7;super(),_(this,_0x236879(0x197),new Map()),_(this,'_saveTaskMap',new Map()),_(this,_0x236879(0x15c),!0x1),(this[_0x236879(0x22b)]=_0x2b43e3,this[_0x236879(0x2ec)]=_0x29d426,this[_0x236879(0x2fc)]=_0x56275c);}['disableLocalCache'](){const _0x2fe212=_0x23ebe7;this[_0x2fe212(0x15c)]=!0x0;}[_0x23ebe7(0x17b)](){const _0x3b6927=_0x23ebe7;this[_0x3b6927(0x15c)]=!0x1;}get[_0x23ebe7(0xd9)](){const _0x43db48=_0x23ebe7;return this[_0x43db48(0x11f)];}[_0x23ebe7(0x2f0)](){const _0x8e5314=_0x23ebe7;this[_0x8e5314(0x19d)]()[_0x8e5314(0x226)](()=>super['dispose']());}async[_0x23ebe7(0x243)](_0x3ba91f){const _0x1457ee=_0x23ebe7;return this[_0x1457ee(0x15c)]?null:this[_0x1457ee(0x2ec)]['getItem'](_0x2a3b38(_0x3ba91f));}async[_0x23ebe7(0x260)](_0x554819,_0x265986){const _0x329878=_0x23ebe7;return!!this[_0x329878(0x2ec)][_0x329878(0x2f1)](_0x554819,_0x265986);}[_0x23ebe7(0x11b)](_0x2388e8,_0x4cd09d,_0x46c510,_0x26f61a){const _0x1fb99f=_0x23ebe7,_0x3d92b1=this[_0x1fb99f(0x2fc)][_0x1fb99f(0x312)](_0x2388e8);this['_cachedData']['set'](_0x2388e8,{'unitID':_0x2388e8,'type':_0x4cd09d,'awaitingChangeset':_0x46c510,'mutations':_0x26f61a,'rev':_0x3d92b1}),this['_saveTaskMap'][_0x1fb99f(0x30a)](_0x2388e8)||this[_0x1fb99f(0x242)](_0x2388e8);}[_0x23ebe7(0x242)](_0x5f1b23){const _0x13c67b=_0x23ebe7,_0x4f537f=this['_getSaveTimeout']();_0x4f537f===0x0?this[_0x13c67b(0x2db)](_0x5f1b23):this[_0x13c67b(0x11f)]['set'](_0x5f1b23,setTimeout(()=>this[_0x13c67b(0x2db)](_0x5f1b23),_0x4f537f));}[_0x23ebe7(0x184)](){const _0x44ff42=_0x23ebe7;var _0x5ea0db;return(_0x5ea0db=this[_0x44ff42(0x22b)]['getConfig'](_0x4166f5))!=null?_0x5ea0db:_0x2601a1;}[_0x23ebe7(0x2db)](_0x1942bb){const _0x17e014=_0x23ebe7,_0x327816=this[_0x17e014(0x11f)][_0x17e014(0x2e0)](_0x1942bb);return _0x327816!==void 0x0&&window[_0x17e014(0x127)](_0x327816),this[_0x17e014(0x2ec)][_0x17e014(0x2f1)](_0x2a3b38(_0x1942bb),this[_0x17e014(0x197)][_0x17e014(0x2e0)](_0x1942bb))[_0x17e014(0x226)](()=>this[_0x17e014(0x11f)][_0x17e014(0xe9)](_0x1942bb));}async[_0x23ebe7(0x19d)](){const _0x35f80a=_0x23ebe7,_0x4643ea=[];this[_0x35f80a(0x11f)][_0x35f80a(0x301)]((_0x3118e,_0x22d943)=>{const _0x31f793=_0x35f80a;window['clearTimeout'](_0x3118e),_0x4643ea[_0x31f793(0x19a)](this[_0x31f793(0x2db)](_0x22d943)[_0x31f793(0x226)](()=>{const _0x1b4e6d=_0x31f793;this[_0x1b4e6d(0x11f)][_0x1b4e6d(0xe9)](_0x22d943);}));}),await Promise[_0x35f80a(0x28e)](_0x4643ea);}};He=bn([Ue(0x0,_0x47f3de),Ue(0x1,_0x55e8df),Ue(0x2,_0xe188da(_0x38e0cd))],He);class Ln extends _0x6981fd{constructor(){const _0x3feb62=_0x23ebe7;super(),_(this,_0x3feb62(0x29c)),this[_0x3feb62(0x29c)]=_0x5c74ce(window,'popstate')[_0x3feb62(0x1a3)](_0x40128f(this[_0x3feb62(0x255)]),_0x1ebfd6(0x1),_0x1bf97b(void 0x0));}[_0x23ebe7(0x12b)](_0xdc4fad,_0xc930c9,_0x184508=!0x1){const _0x45c935=_0x23ebe7,_0x329e97=new URL(window[_0x45c935(0x2ff)][_0x45c935(0x18d)]);_0x329e97[_0x45c935(0x224)]['set'](_0xdc4fad,_0xc930c9),_0x184508?window['history'][_0x45c935(0x279)]('','',_0x329e97['toString']()):window[_0x45c935(0x272)]['pushState']('','',_0x329e97[_0x45c935(0x264)]());}['removeParam'](_0x2cdc7d,_0x911140=!0x1){const _0xee0254=_0x23ebe7,_0x1816c9=new URL(window[_0xee0254(0x2ff)][_0xee0254(0x18d)]);_0x1816c9['searchParams'][_0xee0254(0xe9)](_0x2cdc7d),_0x911140?window['history'][_0xee0254(0x279)]('','',_0x1816c9[_0xee0254(0x264)]()):window[_0xee0254(0x272)][_0xee0254(0x24a)]('','',_0x1816c9[_0xee0254(0x264)]());}[_0x23ebe7(0x131)](_0x51407c){const _0x1010f2=_0x23ebe7;var _0x42ca7f;return(_0x42ca7f=new URL(window[_0x1010f2(0x2ff)][_0x1010f2(0x18d)])['searchParams'][_0x1010f2(0x2e0)](_0x51407c))!=null?_0x42ca7f:void 0x0;}}var Un=Object[_0x23ebe7(0x120)],Mn=Object['getOwnPropertyDescriptor'],An=(_0x451ce0,_0x40e1b0,_0x44858b)=>_0x40e1b0 in _0x451ce0?Un(_0x451ce0,_0x40e1b0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x44858b}):_0x451ce0[_0x40e1b0]=_0x44858b,Pn=(_0x46a8bb,_0x1f59c5,_0x226926,_0x2617b1)=>{for(var _0x27d81d=_0x2617b1>0x1?void 0x0:_0x2617b1?Mn(_0x1f59c5,_0x226926):_0x1f59c5,_0x3b2427=_0x46a8bb['length']-0x1,_0xf934c2;_0x3b2427>=0x0;_0x3b2427--)(_0xf934c2=_0x46a8bb[_0x3b2427])&&(_0x27d81d=_0xf934c2(_0x27d81d)||_0x27d81d);return _0x27d81d;},Me=(_0x27d9ef,_0x14e628)=>(_0x3e6059,_0x20b552)=>_0x14e628(_0x3e6059,_0x20b552,_0x27d9ef),wn=(_0x5f0433,_0x41f779,_0x198011)=>An(_0x5f0433,_0x41f779+'',_0x198011);const yn=_0x23ebe7(0x101);let Ye=class extends _0x2f6422{constructor(_0x11c822=_t,_0x3b419e,_0x4e3f69,_0x4fef38){const _0x287c0e=_0x23ebe7;super(),this[_0x287c0e(0x25c)]=_0x11c822,this['_renderManagerService']=_0x3b419e,this[_0x287c0e(0xea)]=_0x4e3f69,this[_0x287c0e(0x22b)]=_0x4fef38;const {..._0x1fbec7}=_0x1fdd29({},_t,this[_0x287c0e(0x25c)]);this[_0x287c0e(0x22b)][_0x287c0e(0x15a)](hn,_0x1fbec7);}[_0x23ebe7(0x204)](){const _0x236935=_0x23ebe7;this[_0x236935(0x17e)](),this[_0x236935(0x152)]();}[_0x23ebe7(0x211)](){const _0x1d71c6=_0x23ebe7;this[_0x1d71c6(0x247)]();}['_registerDependencies'](){const _0x54af43=_0x23ebe7;var _0x360f60;const _0x318139=[[Ke],[Ie],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x33f814,{'useClass':_0x3cf009}],[_0x3efc30,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0x54af43(0x25c)][_0x54af43(0x2da)]&&_0x318139['push']([le]),_0x2ce1f4(this[_0x54af43(0xea)],_0x3e09cd(_0x318139,(_0x360f60=this[_0x54af43(0x25c)])==null?void 0x0:_0x360f60['override']));}[_0x23ebe7(0x247)](){const _0x486f79=_0x23ebe7;this['disposeWithMe'](this['_renderManagerService'][_0x486f79(0x22d)](_0x4815c4['UNIVER_DOC'],[Fe])),this[_0x486f79(0x20d)](this[_0x486f79(0x1bc)][_0x486f79(0x22d)](_0x4815c4['UNIVER_SHEET'],[ke]));}[_0x23ebe7(0x152)](){const _0x39dea3=_0x23ebe7;_0x4ff469(this[_0x39dea3(0xea)],[[H],[ae],[Se],[_e],[ce],[Ie]]),this[_0x39dea3(0x25c)][_0x39dea3(0x2da)]&&_0x4ff469(this[_0x39dea3(0xea)],[[le]]);}};wn(Ye,_0x23ebe7(0x1ea),yn),Ye=Pn([_0xf93286(_0x1ffcc2),Me(0x1,_0x2296f8),Me(0x2,_0xe188da(_0x402c05)),Me(0x3,_0x47f3de)],Ye);var $n=Object[_0x23ebe7(0x2dd)],xn=(_0x52fd97,_0x54042e,_0x475af6,_0x5908e6)=>{for(var _0x1d416e=_0x5908e6>0x1?void 0x0:_0x5908e6?$n(_0x54042e,_0x475af6):_0x54042e,_0x14e630=_0x52fd97['length']-0x1,_0x36fc91;_0x14e630>=0x0;_0x14e630--)(_0x36fc91=_0x52fd97[_0x14e630])&&(_0x1d416e=_0x36fc91(_0x1d416e)||_0x1d416e);return _0x1d416e;},J=(_0x39ee60,_0x26694f)=>(_0x4a8fde,_0x32106b)=>_0x26694f(_0x4a8fde,_0x32106b,_0x39ee60);let ut=class extends _0x2d6912{constructor(_0x403b11,_0x225500,_0x46726b,_0x32bb54,_0x4c8c2f){super(_0x403b11,_0x225500,_0x46726b,_0x32bb54,_0x4c8c2f);}async['createSocket'](_0x2c7059){const _0x114e63=_0x23ebe7,_0x223a51=await this[_0x114e63(0x306)](),_0x1fbb7f=this['_createSocketURL'](_0x2c7059,_0x223a51);return this[_0x114e63(0x316)](_0x1fbb7f);}[_0x23ebe7(0x10e)](_0x130745,_0x4ea2f8){const _0x4cf28f=_0x23ebe7,_0x4b8aaa=typeof window>'u'?new URL(_0x130745):new URL(_0x130745,window[_0x4cf28f(0x2ff)][_0x4cf28f(0x275)]);_0x4b8aaa['searchParams'][_0x4cf28f(0xc3)](_0x4cf28f(0x2f9),_0x4ea2f8);const _0x2a3fa3=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x4cf28f(0x2ff)][_0x4cf28f(0x14b)]);return _0x2a3fa3[_0x4cf28f(0x2e0)]('runId')&&_0x4b8aaa[_0x4cf28f(0x224)][_0x4cf28f(0xc3)]('runId',_0x2a3fa3[_0x4cf28f(0x2e0)](_0x4cf28f(0x1d2))),_0x4b8aaa['toString']();}async[_0x23ebe7(0x306)](){const _0x58e14b=_0x23ebe7;var _0x574c87,_0x1cc023,_0x3c84cf;const _0x34ff3c=this[_0x58e14b(0x22b)][_0x58e14b(0x1c6)](_0x55ebf4),_0xd91fa4=(_0x574c87=_0x34ff3c==null?void 0x0:_0x34ff3c[_0x58e14b(0x209)])!=null?_0x574c87:_0x1ec024;return(_0x3c84cf=(_0x1cc023=(await this[_0x58e14b(0x2ac)][_0x58e14b(0x2e0)](_0xd91fa4,{'headers':{'Content-Type':_0x58e14b(0x284)}}))['body'])==null?void 0x0:_0x1cc023[_0x58e14b(0x2bb)])!=null?_0x3c84cf:'';}};ut=xn([J(0x0,_0xe188da(_0x402c05)),J(0x1,_0xe188da(_0x4c9e7a)),J(0x2,_0x47f3de),J(0x3,_0xe57380),J(0x4,_0x5a0af3)],ut);var Bn=Object[_0x23ebe7(0x2dd)],Fn=(_0x1c1b3e,_0x426777,_0x53d15e,_0x3095c4)=>{const _0x33f354=_0x23ebe7;for(var _0x287096=_0x3095c4>0x1?void 0x0:_0x3095c4?Bn(_0x426777,_0x53d15e):_0x426777,_0x389518=_0x1c1b3e[_0x33f354(0xe3)]-0x1,_0x28428b;_0x389518>=0x0;_0x389518--)(_0x28428b=_0x1c1b3e[_0x389518])&&(_0x287096=_0x28428b(_0x287096)||_0x287096);return _0x287096;},Ae=(_0x2dac70,_0x4a2631)=>(_0x209ed3,_0xa2d408)=>_0x4a2631(_0x209ed3,_0xa2d408,_0x2dac70);let dt=class extends _0x1bbcbc{constructor(_0xa59779,_0x5aa942,_0x5e1935){const _0x131094=_0x23ebe7;super(),this[_0x131094(0x179)]=_0xa59779,this[_0x131094(0x2ac)]=_0x5aa942,this[_0x131094(0x22b)]=_0x5e1935;}async[_0x23ebe7(0x2c8)](_0xc35a19,_0x355a8f,_0x5ad16c,..._0x3e4f97){const _0x34141f=_0x23ebe7;var _0x3a6962,_0x529944,_0x5e6078,_0x12bdef;const _0x11a71e=this[_0x34141f(0x179)][_0x34141f(0x10f)]();if(!_0x11a71e)throw new Error(_0x34141f(0x23e));const _0x5d8ca1=((_0x3a6962=this['_configService'][_0x34141f(0x1c6)](_0x3a399c))!=null?_0x3a6962:_0x56c62e)+'/'+_0xc35a19+_0x34141f(0x2cd)+_0x355a8f,_0x45c427=new URL(window['location']['href']),_0x10cb48={'scriptId':_0xc35a19,'runId':(_0x529944=_0x45c427[_0x34141f(0x224)][_0x34141f(0x2e0)](_0x34141f(0x1d2)))!=null?_0x529944:'','function':_0x355a8f,'unitId':_0x11a71e['getUnitId'](),'argsOfFunction':JSON['stringify'](_0x3e4f97),'invokeId':(_0x5e6078=_0x5ad16c[_0x34141f(0x215)])!=null?_0x5e6078:'','executionId':(_0x12bdef=_0x5ad16c[_0x34141f(0x251)])!=null?_0x12bdef:''};try{const _0x23ddf2=await this[_0x34141f(0x2ac)][_0x34141f(0x2ba)](_0x5d8ca1,{'body':_0x10cb48});return _0x23ddf2['body']['error']&&_0x23ddf2['body']['error']['code']!==Z['OK']?'Failed':_0x23ddf2[_0x34141f(0x207)][_0x34141f(0x177)];}catch{return _0x34141f(0x311);}}};dt=Fn([Ae(0x0,_0x2e4fbc),Ae(0x1,_0xe188da(_0x4c9e7a)),Ae(0x2,_0x47f3de)],dt);const St=0x7530,It=_0x23ebe7(0xc4);class rr extends _0x1bbcbc{constructor(){const _0x3c7770=_0x23ebe7;super(),_(this,_0x3c7770(0x219),_0x3023d1()),_(this,'_selfUnitIDs',new Set()),_(this,_0x3c7770(0x222),new Map()),_(this,_0x3c7770(0x1b6),null),_(this,_0x3c7770(0x289),new Map()),_(this,_0x3c7770(0x1f9),new Map()),this[_0x3c7770(0x2ae)]();}[_0x23ebe7(0x2f0)](){const _0x5004a5=_0x23ebe7;super[_0x5004a5(0x2f0)](),this[_0x5004a5(0x289)][_0x5004a5(0x301)]((_0x44f5aa,_0x50600a)=>this[_0x5004a5(0x2eb)](_0x50600a)),this['_heartbeatTimer']&&window['clearInterval'](this[_0x5004a5(0x1b6)]);}['getUnitStatus$'](_0x3bf2b4){const _0x2b3d5a=_0x23ebe7;return this[_0x2b3d5a(0x1d7)](_0x3bf2b4)['pipe'](_0x521f46());}[_0x23ebe7(0x283)](_0x110416){const _0xe131b6=_0x23ebe7;this['_selfUnitIDs'][_0xe131b6(0x187)]===0x0&&this['_scheduleHeartbeat'](),this[_0xe131b6(0x31d)][_0xe131b6(0x15d)](_0x110416),this[_0xe131b6(0x16b)]({'type':0x0,'memberID':this[_0xe131b6(0x219)],'unitIDs':[_0x110416],'isForwarded':!0x1});}[_0x23ebe7(0xcc)](_0x3ed6e1){const _0x2ae112=_0x23ebe7;this[_0x2ae112(0x31d)][_0x2ae112(0xe9)](_0x3ed6e1),this[_0x2ae112(0x31d)][_0x2ae112(0x187)]===0x0&&this[_0x2ae112(0x1b6)]&&window[_0x2ae112(0x149)](this[_0x2ae112(0x1b6)]);}[_0x23ebe7(0x2ae)](){const _0xf0fb0f=_0x23ebe7;this[_0xf0fb0f(0x20d)](_0x527ea8(_0x5c74ce(window,'storage')[_0xf0fb0f(0x19c)](_0x192827=>{const _0x5bf163=_0xf0fb0f;if(_0x192827[_0x5bf163(0x1c4)]!==It||!_0x192827[_0x5bf163(0x250)])return;const _0x3e100f=JSON[_0x5bf163(0xc5)](_0x192827[_0x5bf163(0x250)]);this['_handleEvent'](_0x3e100f);}))),window[_0xf0fb0f(0x1f0)](_0xf0fb0f(0x228),()=>this[_0xf0fb0f(0x16b)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array['from'](this[_0xf0fb0f(0x31d)])}));}['_handleEvent'](_0x4b12c3){const _0x2d71c2=_0x23ebe7;switch(_0x4b12c3[_0x2d71c2(0x2e6)]){case 0x0:this[_0x2d71c2(0xec)](_0x4b12c3);break;case 0x1:this[_0x2d71c2(0x23b)](_0x4b12c3);break;case 0x2:this['_handleHeartbeatEvent'](_0x4b12c3);break;}}[_0x23ebe7(0xec)](_0x558945){const _0x15a422=_0x23ebe7,{unitIDs:_0x41575f,memberID:_0x4366f1,isForwarded:_0x51c2e3}=_0x558945;_0x41575f[_0x15a422(0x301)](_0x3e7e77=>{const _0x30f21c=_0x15a422;if(!_0x51c2e3&&this[_0x30f21c(0x222)][_0x30f21c(0x30a)](_0x3e7e77)&&this[_0x30f21c(0x1d7)](_0x3e7e77)['next'](_0x16ed22[_0x30f21c(0x10c)]),!this[_0x30f21c(0x222)][_0x30f21c(0x30a)](_0x3e7e77)||!this[_0x30f21c(0x222)]['get'](_0x3e7e77)[_0x30f21c(0x30a)](_0x4366f1)){const _0x39b434=this[_0x30f21c(0x222)][_0x30f21c(0x2e0)](_0x3e7e77)||new Set();_0x39b434[_0x30f21c(0x15d)](_0x4366f1),this[_0x30f21c(0x222)]['set'](_0x3e7e77,_0x39b434),this[_0x30f21c(0x241)](_0x4366f1);}}),_0x51c2e3||this[_0x15a422(0x16b)]({'type':0x0,'memberID':this[_0x15a422(0x219)],'unitIDs':[...this[_0x15a422(0x31d)]],'isForwarded':!0x0});}[_0x23ebe7(0x241)](_0x5aa50b){const _0x2fb60f=_0x23ebe7;this['_removeClearOtherTimer'](_0x5aa50b);const _0x198693=window['setTimeout'](()=>{const _0x2da0e9=_0x1473;this[_0x2da0e9(0x222)]['forEach'](_0x576ca5=>{const _0x2d8ca0=_0x2da0e9;_0x576ca5[_0x2d8ca0(0xe9)](_0x5aa50b);});},St*0x2);this['_clearOtherTimers'][_0x2fb60f(0xc3)](_0x5aa50b,_0x198693);}[_0x23ebe7(0x2eb)](_0x369bdc){const _0x37a22=_0x23ebe7;if(this[_0x37a22(0x289)][_0x37a22(0x30a)](_0x369bdc)){const _0x517177=this[_0x37a22(0x289)][_0x37a22(0x2e0)](_0x369bdc);_0x517177&&window[_0x37a22(0x127)](_0x517177),this['_clearOtherTimers'][_0x37a22(0xc3)](_0x369bdc,null);}}[_0x23ebe7(0x23b)](_0x1252d7){const _0x1a6324=_0x23ebe7,{memberID:_0x5ee35b,unitIDs:_0x3104cf}=_0x1252d7;_0x3104cf[_0x1a6324(0x301)](_0x213739=>{const _0x51cb4b=_0x1a6324;var _0x48fc07;const _0x27dd0d=this[_0x51cb4b(0x222)][_0x51cb4b(0x2e0)](_0x213739);_0x27dd0d&&(_0x27dd0d[_0x51cb4b(0xe9)](_0x5ee35b),(_0x48fc07=this[_0x51cb4b(0x1d7)](_0x213739))==null||_0x48fc07[_0x51cb4b(0x259)](_0x27dd0d['size']===0x0?_0x16ed22[_0x51cb4b(0x1b2)]:_0x16ed22[_0x51cb4b(0x10c)]));}),this['_removeClearOtherTimer'](_0x5ee35b);}['_handleHeartbeatEvent'](_0x2cd8b9){const _0x4c77c7=_0x23ebe7;this[_0x4c77c7(0x241)](_0x2cd8b9[_0x4c77c7(0x2f6)]);}[_0x23ebe7(0x16b)](_0x1142f0){const _0x5d1b7c=_0x23ebe7;localStorage[_0x5d1b7c(0x2f1)](It,JSON[_0x5d1b7c(0xd4)](_0x1142f0));}['_scheduleHeartbeat'](){const _0x21dc8f=_0x23ebe7;this[_0x21dc8f(0x1b6)]=window[_0x21dc8f(0x238)](()=>{const _0x276601=_0x21dc8f;this[_0x276601(0x16b)]({'type':0x2,'memberID':this[_0x276601(0x219)]});},St);}[_0x23ebe7(0x1d7)](_0x3b736f){const _0xef736a=_0x23ebe7;return this[_0xef736a(0x1f9)][_0xef736a(0x30a)](_0x3b736f)||this[_0xef736a(0x1f9)][_0xef736a(0xc3)](_0x3b736f,new _0x17a144(_0x16ed22[_0xef736a(0x1b2)])),this['_unitStatus']['get'](_0x3b736f);}}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};