@univerjs-pro/collaboration-client-ui 0.10.6-nightly.202509060614 → 0.10.6-nightly.202509060724

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 (49) 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/ko-KR.js +1 -1
  9. package/lib/cjs/locale/ru-RU.js +1 -1
  10. package/lib/cjs/locale/vi-VN.js +1 -1
  11. package/lib/cjs/locale/zh-CN.js +1 -1
  12. package/lib/cjs/locale/zh-TW.js +1 -1
  13. package/lib/es/facade.js +1 -1
  14. package/lib/es/index.js +1 -1
  15. package/lib/es/locale/ca-ES.js +1 -1
  16. package/lib/es/locale/en-US.js +1 -1
  17. package/lib/es/locale/es-ES.js +1 -1
  18. package/lib/es/locale/fa-IR.js +1 -1
  19. package/lib/es/locale/fr-FR.js +1 -1
  20. package/lib/es/locale/ko-KR.js +1 -1
  21. package/lib/es/locale/ru-RU.js +1 -1
  22. package/lib/es/locale/vi-VN.js +1 -1
  23. package/lib/es/locale/zh-CN.js +1 -1
  24. package/lib/es/locale/zh-TW.js +1 -1
  25. package/lib/facade.js +1 -1
  26. package/lib/index.js +1 -1
  27. package/lib/locale/ca-ES.js +1 -1
  28. package/lib/locale/en-US.js +1 -1
  29. package/lib/locale/es-ES.js +1 -1
  30. package/lib/locale/fa-IR.js +1 -1
  31. package/lib/locale/fr-FR.js +1 -1
  32. package/lib/locale/ko-KR.js +1 -1
  33. package/lib/locale/ru-RU.js +1 -1
  34. package/lib/locale/vi-VN.js +1 -1
  35. package/lib/locale/zh-CN.js +1 -1
  36. package/lib/locale/zh-TW.js +1 -1
  37. package/lib/umd/facade.js +1 -1
  38. package/lib/umd/index.js +1 -1
  39. package/lib/umd/locale/ca-ES.js +1 -1
  40. package/lib/umd/locale/en-US.js +1 -1
  41. package/lib/umd/locale/es-ES.js +1 -1
  42. package/lib/umd/locale/fa-IR.js +1 -1
  43. package/lib/umd/locale/fr-FR.js +1 -1
  44. package/lib/umd/locale/ko-KR.js +1 -1
  45. package/lib/umd/locale/ru-RU.js +1 -1
  46. package/lib/umd/locale/vi-VN.js +1 -1
  47. package/lib/umd/locale/zh-CN.js +1 -1
  48. package/lib/umd/locale/zh-TW.js +1 -1
  49. package/package.json +15 -15
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function _0xae5d(_0x47fcf6,_0x41cb53){const _0x4448bb=_0x4448();return _0xae5d=function(_0xae5d2,_0x404f1a){_0xae5d2=_0xae5d2-0x98;let _0x48bc28=_0x4448bb[_0xae5d2];return _0x48bc28;},_0xae5d(_0x47fcf6,_0x41cb53);}const _0x53fae0=_0xae5d;(function(_0x4de1ff,_0xed76a8){const _0x4c2676=_0xae5d,_0x3280d4=_0x4de1ff();while(!![]){try{const _0x39d3d2=parseInt(_0x4c2676(0xa5))/0x1*(parseInt(_0x4c2676(0x9e))/0x2)+-parseInt(_0x4c2676(0x99))/0x3*(-parseInt(_0x4c2676(0x98))/0x4)+-parseInt(_0x4c2676(0x9c))/0x5*(-parseInt(_0x4c2676(0x9b))/0x6)+-parseInt(_0x4c2676(0xa2))/0x7*(-parseInt(_0x4c2676(0xa1))/0x8)+-parseInt(_0x4c2676(0x9d))/0x9+parseInt(_0x4c2676(0xa0))/0xa+parseInt(_0x4c2676(0xa3))/0xb*(-parseInt(_0x4c2676(0xa7))/0xc);if(_0x39d3d2===_0xed76a8)break;else _0x3280d4['push'](_0x3280d4['shift']());}catch(_0x2ee12e){_0x3280d4['push'](_0x3280d4['shift']());}}}(_0x4448,0xed00b));function _0x4448(){const _0x5519de=['2545795PqjJUp','5179527ohlPfE','156yvsYwf','_injector','1891840ntVgom','9574616cpaIFn','7ZnuKLg','407OYjXSx','get','24423AZFhMY','runOnServer','1174728YdawWo','3436084EgKSPW','3PIqSbv','extend','12qsWDYK'];_0x4448=function(){return _0x5519de;};return _0x4448();}const t=require('@univerjs-pro/collaboration-client-ui'),e=require('@univerjs/core/facade');class c extends e['FUniver']{[_0x53fae0(0xa6)](_0xd71328,_0x211075,..._0x370ef9){const _0x166abc=_0x53fae0;return this[_0x166abc(0x9f)][_0x166abc(0xa4)](t['RemoteUniscriptService'])[_0x166abc(0xa6)](_0xd71328,_0x211075,{},..._0x370ef9);}}e['FUniver'][_0x53fae0(0x9a)](c);
1
+ 'use strict';function _0x1c97(_0x506868,_0x5e1a16){const _0x224488=_0x2244();return _0x1c97=function(_0x1c974a,_0x51628d){_0x1c974a=_0x1c974a-0xba;let _0x5823b3=_0x224488[_0x1c974a];return _0x5823b3;},_0x1c97(_0x506868,_0x5e1a16);}const _0x491b18=_0x1c97;(function(_0x3a2cb0,_0x5c0bd3){const _0x3c8556=_0x1c97,_0x315897=_0x3a2cb0();while(!![]){try{const _0x9b5f5c=parseInt(_0x3c8556(0xc2))/0x1+-parseInt(_0x3c8556(0xbd))/0x2*(-parseInt(_0x3c8556(0xc5))/0x3)+-parseInt(_0x3c8556(0xba))/0x4+-parseInt(_0x3c8556(0xbc))/0x5+parseInt(_0x3c8556(0xbb))/0x6*(-parseInt(_0x3c8556(0xc7))/0x7)+parseInt(_0x3c8556(0xc6))/0x8*(-parseInt(_0x3c8556(0xc1))/0x9)+-parseInt(_0x3c8556(0xbe))/0xa*(-parseInt(_0x3c8556(0xc8))/0xb);if(_0x9b5f5c===_0x5c0bd3)break;else _0x315897['push'](_0x315897['shift']());}catch(_0x462de6){_0x315897['push'](_0x315897['shift']());}}}(_0x2244,0xa54bf));const t=require('@univerjs-pro/collaboration-client-ui'),e=require('@univerjs/core/facade');class c extends e[_0x491b18(0xc3)]{['runOnServer'](_0x383acb,_0x440b01,..._0x58d2da){const _0x2b00e1=_0x491b18;return this[_0x2b00e1(0xc0)][_0x2b00e1(0xbf)](t['RemoteUniscriptService'])['runOnServer'](_0x383acb,_0x440b01,{},..._0x58d2da);}}function _0x2244(){const _0x21ca7c=['734992bbBeAE','43967blqBrj','11ylENmR','3994624MkfSKa','6wdYRXs','1532565ygEkjp','344IMyeaG','8348860EWVLZE','get','_injector','72BWBTly','1017431TkVuLT','FUniver','extend','15195XhEhHI'];_0x2244=function(){return _0x21ca7c;};return _0x2244();}e['FUniver'][_0x491b18(0xc4)](c);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x373e19=_0x2638;(function(_0x2ec726,_0x35bc80){const _0x163453=_0x2638,_0x182663=_0x2ec726();while(!![]){try{const _0x5d4cd7=-parseInt(_0x163453(0x2aa))/0x1*(-parseInt(_0x163453(0xba))/0x2)+-parseInt(_0x163453(0x2b3))/0x3+parseInt(_0x163453(0x1b3))/0x4+parseInt(_0x163453(0x2ed))/0x5*(parseInt(_0x163453(0xc7))/0x6)+parseInt(_0x163453(0x31a))/0x7+-parseInt(_0x163453(0xfb))/0x8*(-parseInt(_0x163453(0x1e9))/0x9)+-parseInt(_0x163453(0x1dd))/0xa;if(_0x5d4cd7===_0x35bc80)break;else _0x182663['push'](_0x182663['shift']());}catch(_0xb121ff){_0x182663['push'](_0x182663['shift']());}}}(_0x2c3a,0xce4c0));var We=Object[_0x373e19(0x1ac)],Ve=(_0xa87438,_0xbfe2de,_0x3698a3)=>_0xbfe2de in _0xa87438?We(_0xa87438,_0xbfe2de,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3698a3}):_0xa87438[_0xbfe2de]=_0x3698a3,h=(_0x1dd692,_0x167b6f,_0x9a8a1a)=>Ve(_0x1dd692,typeof _0x167b6f!=_0x373e19(0x30e)?_0x167b6f+'':_0x167b6f,_0x9a8a1a);Object[_0x373e19(0x1ac)](exports,Symbol[_0x373e19(0x23e)],{'value':_0x373e19(0x172)});const P=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),d=require('rxjs'),D=require('@univerjs/design'),M=require('react'),Xe=require('@univerjs/rpc'),g=require('@univerjs/sheets'),p=require('@univerjs/engine-render'),K=require('@univerjs/network'),E=require('@univerjs/docs-ui'),Ge=require('@univerjs/drawing'),m=require('@univerjs-pro/collaboration'),Y=require('@univerjs/docs'),Ee=require('@univerjs/engine-formula'),$=require('rxjs/operators'),G=require('@univerjs/sheets-ui');var b=function(){const _0xb71531=_0x373e19;return b=Object['assign']||function(_0x43e502){const _0x746ebc=_0x2638;for(var _0x5037a0,_0x2ff99f=0x1,_0x54b78e=arguments[_0x746ebc(0x1a4)];_0x2ff99f<_0x54b78e;_0x2ff99f++){_0x5037a0=arguments[_0x2ff99f];for(var _0x39f050 in _0x5037a0)Object['prototype'][_0x746ebc(0x15b)][_0x746ebc(0x1b5)](_0x5037a0,_0x39f050)&&(_0x43e502[_0x39f050]=_0x5037a0[_0x39f050]);}return _0x43e502;},b[_0xb71531(0x26b)](this,arguments);},Ke=function(_0x1744a3,_0x29e8cd){const _0x5c85df=_0x373e19;var _0x588b1a={};for(var _0x4d1109 in _0x1744a3)Object[_0x5c85df(0x28a)]['hasOwnProperty'][_0x5c85df(0x1b5)](_0x1744a3,_0x4d1109)&&_0x29e8cd['indexOf'](_0x4d1109)<0x0&&(_0x588b1a[_0x4d1109]=_0x1744a3[_0x4d1109]);if(_0x1744a3!=null&&typeof Object[_0x5c85df(0x203)]==_0x5c85df(0xb1)){for(var _0x2d3e3c=0x0,_0x4d1109=Object[_0x5c85df(0x203)](_0x1744a3);_0x2d3e3c<_0x4d1109[_0x5c85df(0x1a4)];_0x2d3e3c++)_0x29e8cd[_0x5c85df(0x2e9)](_0x4d1109[_0x2d3e3c])<0x0&&Object[_0x5c85df(0x28a)][_0x5c85df(0x18a)][_0x5c85df(0x1b5)](_0x1744a3,_0x4d1109[_0x2d3e3c])&&(_0x588b1a[_0x4d1109[_0x2d3e3c]]=_0x1744a3[_0x4d1109[_0x2d3e3c]]);}return _0x588b1a;},ge=M[_0x373e19(0x15d)](function(_0x1c08a1,_0x5d84d1){const _0x3a739a=_0x373e19;var _0xe97b90=_0x1c08a1[_0x3a739a(0x31e)],_0x124cc0=_0x1c08a1['id'],_0x1f9560=_0x1c08a1[_0x3a739a(0xdf)],_0x59f623=_0x1c08a1['extend'],_0x129cee=Ke(_0x1c08a1,['icon','id',_0x3a739a(0xdf),_0x3a739a(0x2b9)]),_0xc82c48=_0x3a739a(0x31f)['concat'](_0x124cc0,'\x20')[_0x3a739a(0x1f3)](_0x1f9560||'')[_0x3a739a(0x1db)](),_0x45c7cc=M[_0x3a739a(0xe7)]('_'[_0x3a739a(0x1f3)](Je()));return Pe(_0xe97b90,''[_0x3a739a(0x1f3)](_0x124cc0),{'defIds':_0xe97b90[_0x3a739a(0x242)],'idSuffix':_0x45c7cc[_0x3a739a(0x21c)]},b({'ref':_0x5d84d1,'className':_0xc82c48},_0x129cee),_0x59f623);});function Pe(_0x26621f,_0xb789a5,_0x362161,_0x514886,_0x1b4201){const _0x32cd2f=_0x373e19;return M[_0x32cd2f(0x2d1)](_0x26621f[_0x32cd2f(0xd7)],b(b({'key':_0xb789a5},qe(_0x26621f,_0x362161,_0x1b4201)),_0x514886),(ze(_0x26621f,_0x362161)[_0x32cd2f(0x260)]||[])[_0x32cd2f(0x1e4)](function(_0x53d432,_0x4782a1){const _0x458c4c=_0x32cd2f;return Pe(_0x53d432,''['concat'](_0xb789a5,'-')[_0x458c4c(0x1f3)](_0x26621f['tag'],'-')[_0x458c4c(0x1f3)](_0x4782a1),_0x362161,void 0x0,_0x1b4201);}));}function qe(_0x331a50,_0x628326,_0x280229){const _0x2627ab=_0x373e19;var _0x5ccb5f=b({},_0x331a50[_0x2627ab(0x13d)]);_0x280229!=null&&_0x280229[_0x2627ab(0x2a1)]&&_0x5ccb5f[_0x2627ab(0xec)]===_0x2627ab(0x2a1)&&(_0x5ccb5f[_0x2627ab(0xec)]=_0x280229['colorChannel1']),_0x331a50[_0x2627ab(0xd7)]===_0x2627ab(0x150)&&_0x5ccb5f['id']&&(_0x5ccb5f['id']=_0x5ccb5f['id']+_0x628326[_0x2627ab(0x21a)]),Object[_0x2627ab(0xf9)](_0x5ccb5f)[_0x2627ab(0x22a)](function(_0x40988f){const _0x671404=_0x2627ab;var _0x443c7f=_0x40988f[0x0],_0x222fec=_0x40988f[0x1];_0x443c7f===_0x671404(0x150)&&typeof _0x222fec==_0x671404(0x184)&&(_0x5ccb5f[_0x443c7f]=_0x222fec[_0x671404(0xc8)](/url\(#(.*)\)/,_0x671404(0xdb)[_0x671404(0x1f3)](_0x628326[_0x671404(0x21a)],')')));});var _0xcaa5f3=_0x628326[_0x2627ab(0x242)];return!_0xcaa5f3||_0xcaa5f3[_0x2627ab(0x1a4)]===0x0||(_0x331a50[_0x2627ab(0xd7)]===_0x2627ab(0x2dc)&&_0x5ccb5f[_0x2627ab(0x259)]&&(_0x5ccb5f[_0x2627ab(0x259)]=_0x5ccb5f[_0x2627ab(0x259)]+_0x628326[_0x2627ab(0x21a)]),Object[_0x2627ab(0xf9)](_0x5ccb5f)[_0x2627ab(0x22a)](function(_0x5502af){const _0x24fa0f=_0x2627ab;var _0x54b3c2=_0x5502af[0x0],_0x2f81d4=_0x5502af[0x1];typeof _0x2f81d4==_0x24fa0f(0x184)&&(_0x5ccb5f[_0x54b3c2]=_0x2f81d4['replace'](/url\(#(.*)\)/,'url(#$1'['concat'](_0x628326['idSuffix'],')')));})),_0x5ccb5f;}function ze(_0x4c6e70,_0x26c0d3){const _0x1b364f=_0x373e19;var _0x1d6731,_0x470dd2=_0x26c0d3[_0x1b364f(0x242)];return!_0x470dd2||_0x470dd2[_0x1b364f(0x1a4)]===0x0?_0x4c6e70:_0x4c6e70[_0x1b364f(0xd7)]===_0x1b364f(0x2f6)&&(!((_0x1d6731=_0x4c6e70[_0x1b364f(0x260)])===null||_0x1d6731===void 0x0)&&_0x1d6731[_0x1b364f(0x1a4)])?b(b({},_0x4c6e70),{'children':_0x4c6e70[_0x1b364f(0x260)][_0x1b364f(0x1e4)](function(_0x20d571){const _0x225383=_0x1b364f;return typeof _0x20d571[_0x225383(0x13d)]['id']==_0x225383(0x184)&&_0x470dd2&&_0x470dd2['includes'](_0x20d571['attrs']['id'])?b(b({},_0x20d571),{'attrs':b(b({},_0x20d571['attrs']),{'id':_0x20d571['attrs']['id']+_0x26c0d3[_0x225383(0x21a)]})}):_0x20d571;})}):_0x4c6e70;}function Je(){const _0x3653d4=_0x373e19;return Math[_0x3653d4(0x1c1)]()[_0x3653d4(0x314)](0x24)[_0x3653d4(0x236)](0x2,0x8);}ge[_0x373e19(0xe9)]=_0x373e19(0x12b);var Ze={'tag':_0x373e19(0x23b),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':'0\x200\x2016\x2016','width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x373e19(0x2f4)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x373e19(0x2ad),'strokeLinecap':_0x373e19(0x2eb),'strokeLinejoin':_0x373e19(0x2eb),'strokeWidth':1.2}}]},{'tag':_0x373e19(0x2f6),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':'white','d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x373e19(0x2c0)]},we=M[_0x373e19(0x15d)](function(_0x3048cd,_0x1a7f11){const _0x46f382=_0x373e19;return M[_0x46f382(0x2d1)](ge,Object[_0x46f382(0x18c)]({},_0x3048cd,{'id':_0x46f382(0x29e),'ref':_0x1a7f11,'icon':Ze}));});function _0x2c3a(){const _0x2d5e83=['IUIPartsService','executionId','CollaborationSocketService','m2Prime','substring','_disabled','_renderManagerService','collaboration.closeRoom','WebURLService','svg','_docSkeleton','green.600','toStringTag','useDependency','INVITE_CODE_REQUIRED','UNRECOGNIZED','defIds','filter','on-line-icon','Error','sheetID','unsubscribe','_commandService','_clearOtherTimers','_updateCollabCursors','_id','max','_createSocketURL','_collaborationUIEventService','INVITE_CODE_ALREADY_BOUND','RegularPolygon','setInterval','asObservable','useCallback','purple.300','_initEvent','engine','activeSheet$','delete','xlink:href','registerRefRange','_startDocCollabCursor','selection','INTERNAL_ERROR','HTTPService','measureText','children','getUnitId','_unitOnClients','_updateLocalCursor','_backgroundColor','DependentOn','_httpService','_colorIndex','handleInsertRangeMoveDown','IConfigService','replaceDocRanges','apply','focused$','handleInsertRangeMoveRight','PERMISSION_DENIED','IRenderManagerService','_scheduleClearOtherTimer','LICENSE_EXPORT_SIZE_EXCEEDED','labelPosition','_textBubble','_setupBeforeClosingHandler','Rect','_send','replaceState','executeCommand','onPointerEnter$','YUUMI_ALL_TABLES_IS_INVALID','NodePositionConvertToCursor','0\x200\x2017\x2016','onCommandExecuted','deepClone','CommandType','docStateChange$','has','getRelativeToViewportCoord','WebBrowserSingleActiveUnitService','CLOSE_ROOM','toDisposable','mutations','roomMembers$','getDocRanges','setShapeProps','prototype','_session','ILogService','UPDATE_CURSOR','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_removeClearOtherTimer','_render','createInstance','_cursorShapes','shareReplay','_logService','_getSheetObject','with','isArray','_colorAssignService','mapTo','setTimeout','connectInjector','UniverCollaborationClientPlugin','Unknown\x20user','off-line-icon','Subject','subUnitId','colorChannel1','RemoveColCommandId','APPLY_REVISION_CONFILICT','none','mergeOverrideWithDependencies','search','onRendered','startsWith','set','3QKzmGK','transformByState','_configService','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','OnLineIcon','InsertRowCommandId','_selfUnitIDs','Failed','transform','4442130CSuahh','startRow','_getSaveTimeout','text','exhaustSavingTask','unload','extend','_entities','handleInsertRow','textRanges','_ensureSubject','getUniverSheetInstance','getAncestorScale','off-line-icon_clip0_910_343','CollaborationUIEventId','RefRangeService','_color','CollaborationStatus','Rectangle','_handleJoinEvent','ACTIVE_UNIT_EVENT_CHANNEL','InsertRangeMoveRightCommandId','_doCreateSocket','_status$','_imageIoService','LICENSE_MAX_UNITS_EXCEEDED','setParam','location','_localeService','_shapes','createElement','top','_updateURLWithCurrentState','_urlService','subscribeEvent','CollaborationSessionService','_memberService','body','loadUnit','getCollabEntity$','createSocket','use','origin','LOCAL_CACHE_INTERVAL_KEY','BuiltInUIPart','IMessageService','dispose$','getConfig','from','SNAPSHOT_INVALID_SNAPSHOT','next','debug','setStateCache','IImageIoService','indexOf','APPLY_NON_SEQUENTIAL_REVISION','round','Inject','268210aZyBBi','combineLatest','requireSession','EffectRefRangId','YUUMI_SUBSCRIPTION_NOT_FOUND','onStarting','memberID','url(#off-line-icon_clip0_910_343)','getCollabCursors$','defs','session.collaboration-timeout','runRefRangeMutations','ALREADY_EXISTS','Vector2','_instanceService','UniverInstanceType','url(#on-line-icon_clip0_910_349)','yellow.400','_initEntityListener','saveOfflineData','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','SheetsSelectionsService','_univerInstanceService','popstate','getOwnPropertyDescriptor','Tools','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','imageSourceType','setItem','#FFF','SetWorksheetActivateCommand','Warning','_syncEditingCollabCursorService','symbol','runId','cursorInfo$','_online','_docStateChangeManagerService','_notificationService','toString','registerDependencies','fromEventSubject','INotificationService','INVALID_INVITE_CODE','searchParams','6047685KQHvxm','OffLineIcon','LICENSE_DISTRO_REJECTED','_collabCursorController','icon','univerjs-icon\x20univerjs-icon-','m1Prime','href','getParam','MOBILE_VERIFY_CODE_MISMATCH','type','toRgbString','SheetCollabCursorShape','_cursors','unit','editingUnit','lineTo','getSheetId','getColor','makeDirty','1em','getCurrentSelections','_refreshCollabCursors','function','endColumn','getTypeOfUnitAdded$','YUUMI_RATE_OVER_LIMIT','OTHER_CLIENT_EDITING','application/json','complete','height','DocIMEInputManagerService','562642zyxoMM','_init','NO_OTHER_CLIENTS_EDITING','DOC_RANGE_TYPE','clearTimeout','blue.400','EMAIL_VERIFY_CODE_MISMATCH','doc.mutation.rich-text-editing','push','clearInterval','Injector','getMember','unshift','48HjviwP','replace','drawWith','collaboration-client.offline-data-not-saved','evenodd','switchMap','saveImage','FromArray','_range','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','some','_labelPosition','NodePositionConvertToRectRange','_removeCollabCursors','sessionTicket','_setupSubUnitSync','tag','RemoteUniscriptService','hide','DocCollaborationEntity','url(#$1','_registerDependencies','registerBeforeClose','_getSessionTicket','className','_collabCursorState$','onPointerLeave$','getCurrentRevOfUnit','history','_scheduleHeartbeat','init','debounceTime','useRef','CONNECTOR_DATA_TOO_LARGE','displayName','BrowserCollaborationSocketService','includes','fill','show','_collaborationController','transformSelections','RxDisposable','_handleHeartbeatEvent','invokeId','beginPath','entityInit$','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','LICENSE_IMPORT_SIZE_EXCEEDED','unitId','UNIVER_DOC','entries','VIEW_MAIN','5308024JcYabj','COLORS','SetDocZoomRatioOperation','APPLY_DUPLICATED','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','moveTo','ITransformService','transformMutation','currentColor','stringify','findNodePositionByCharIndex','getRenderById','syncEditingCollabCursor','YUUMI_ASYNCIO_CANCELLED','_updateSubUnitFromURLParams','DocSelectionManagerService','UNAUTHENTICATED','EMAIL_HAS_BEEN_BOUND','OTHER_CLIENTS_EDITING','_drawRectRange','_docTransformStateCacheService','ranges','error','hovered','[CollaborationDataLoaderController]','DeleteRangeMoveUpCommandId','removeParam','_transformService','disposeUnit','getTypeOfUnitDisposed$','_roomMembers$','triggerDblclick','merge','HEADER_MENU','_localCacheService','serializeRangeWithSheet','IURLService','SheetSkeletonManagerService','collab-text-range-','endRow','on-line-icon_clip0_910_349','InsertRangeMoveDownCommandId','key','_docClipboardService','YUUMI_TABLE_NOT_FOUND_IN_UNIT','row','Tooltip','handleDeleteRangeMoveLeft','UniverIcon','transformMutationsWithChangeset','UnitStatus','Plugin','DocStateChangeManagerService','MUTATION','_hideTimer','APPLY_PERMISSION_DENIED','values','restore','_scene','isActive','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','jiqing.500','DocSkeletonManagerService','pluginName','touchDependencies','disposeWithMe','attrs','MemberService','data','parse','whenReady','_beforeCloseService','arc','CHANGESET_REVISION_CONFILICT','subscribe','getMemberID','_cachedData','APPLY_REJECT','post','then','_entityInit$','_messageService','rgba(255,\x20255,\x20255,\x200.01)','fillText','_docTransformIMECacheService','mask','_initStatusListener','ONLINE','addObjects','permission.title','jsx','permission.content','IUniverInstanceService','_assignedColors','_anchorDot','_uiPartsService','hasOwnProperty','sheetId','forwardRef','override','ILocalCacheService','DEFAULT_WS_SESSION_TICKET_URL','NOT_COLLAB','_lastPointer','save','COMPLETION_FINISHED','transformRemoteChangeset','_revisionService','TEXT_RANGE_LAYER_INDEX','_cursor','_collabSessionService','_scheduleSaving','_getScale','ColorKit','_initCommandExecutedListener','collabStatus.notCollab','UniverCollaborationClientUIPlugin','_heartbeatTimer','distinctUntilChanged','Module','width','split','clipPath','USERS_LEAVE','get','AWAITING','ENSURE_SNAPSHOT_EXECUTION','CollaborationController','getActiveRange','generateRandomId','_name','getOffsetConfig','bottom','onMouseMove','all','params','onTransformChange$','string','_drawTextRange','_saveTaskMap','status$','path','pushState','propertyIsEnumerable','_sheetSkeletonManagerService','assign','TEXT','_docSyncEditingCollabCursorService','black','_onCursorUpdate','enableLocalCache','SHEET_VIEWPORT_KEY','_saveCache','_onCursorDelete','event$','jsxs','currentTheme$','_themeService','_localStorageService','isTransformMutationFailure','_toggleOffline','getItem','getFocusedUnit','LOCAL_CACHE_INTERVAL','_eventUnsubscribe','getCurrent','SYNCED','FETCH_MISS','add','length','_context','/run/','saveTaskMap','BehaviorSubject','getActiveSheet','Optional','_config','defineProperty','sessionStatus$','DesktopCollaborationStatusDisplayController','ICommandService','DeleteRangeMoveLeftCommandId','fillStyle','_hover','3369488KTsvQa','_docSkeletonManagerService','call','storage','SNAPSHOT_HAS_BEEN_REMOVED','urlChange$','takeUntil','handleDeleteRangeMoveUp','handleMoveRange','CollaborationUIEventService','PY_RUNTIME_SCRIPT_ERROR','YUUMI_UNABLE_LOAD_URL','CollaborationDataLoaderController','size','random','http://www.w3.org/2000/svg','deserializeRangeWithSheet','_transformUndoRedoStack','SUBMIT_CHANGESET_TIMEOUT','collab-client.tooltip.reconnect','RECT','_initResize','setAlpha','LOGIN_FAILED','undoState','_toggleOnline','CONFLICT','setConfig','_initDependencies','YUUMI_NO_CUBOID_FOR_QUESTION','_hovered','newValue','YUUMI_AI_RUN_FAILED','getStateCache','runOnServer','getMergeData','onPointerMove$','flatMap','getValue','collaboration-client-ui.config','trim','debounce','19807300mtfbKy','UNIVER_SHEET','YUUMI_URL_COL_OUT_OF_RANGE','ThemeService','eventID','Disposable','collabStatus.syncing','map','Shape','assignAColorForMemberID','_getAnchorBounding','getRangePointData','18QduPLO','color','SetSelectionsOperation','name','addObject','isTransformMutationsWithChangesetSuccess','unitID','_refRangeService','ticket','AWAITING_WITH_PENDING','concat','startColumn','throttleTime','CollaborationEvent','session.connection-failed','pipe','_onRefRangeChange','MessageType','YUUMI_CONNECTOR_URL_NOT_FOUND','code','wsSessionTicketUrl','getSheetBySheetId','min','_handleLeaveEvent','_anchor','_transformHistoryAndStateStack','getOwnPropertySymbols','collaboration.single-unit.warning','_initStatusComponent','cursorInfo','INVITE_CODE_HAS_BEEN_UES','_cursorInfo$','collabCursorState$','skeleton','_injector','collab-text-anchor-','getUndoRedoMutationParamsCache','createIdentifier','M0\x200H16V16H0z','getLocalCacheKey','actions','_dataLoaderService','backgroundColor','selections','div','getUnhiddenWorksheets','...','_registerRenderDependencies','getCoordByCell','idSuffix','currentSkeleton$','current','_handleEvent','NOT_FOUND','roomMembers','font','fromEvent','SOCKET_FAILED','send','column','range','dispose','registerComponent','InsertColCommandId','subunit','forEach','PENDING','_draw','USER_NOT_INVITED_CODE','redoState','_drawAnchor','LocaleService','_getMergeRange'];_0x2c3a=function(){return _0x2d5e83;};return _0x2c3a();}we[_0x373e19(0xe9)]=_0x373e19(0x31b);var Qe={'tag':'svg','attrs':{'xmlns':_0x373e19(0x1c2),'fill':_0x373e19(0x2a4),'viewBox':_0x373e19(0x27c),'width':_0x373e19(0x32e),'height':_0x373e19(0x32e)},'children':[{'tag':'g','attrs':{'clipPath':_0x373e19(0x2fd)},'children':[{'tag':_0x373e19(0x188),'attrs':{'stroke':_0x373e19(0x103),'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':_0x373e19(0x2eb),'strokeLinejoin':_0x373e19(0x2eb),'strokeWidth':1.2}}]},{'tag':_0x373e19(0x2f6),'attrs':{},'children':[{'tag':_0x373e19(0x175),'attrs':{'id':_0x373e19(0x123)},'children':[{'tag':_0x373e19(0x188),'attrs':{'fill':'white','d':_0x373e19(0x20f),'transform':'translate(.97)'}}]}]}],'defIds':[_0x373e19(0x123)]},Ae=M[_0x373e19(0x15d)](function(_0x316a9b,_0x3ee623){const _0x55a048=_0x373e19;return M[_0x55a048(0x2d1)](ge,Object[_0x55a048(0x18c)]({},_0x316a9b,{'id':_0x55a048(0x244),'ref':_0x3ee623,'icon':Qe}));});Ae[_0x373e19(0xe9)]=_0x373e19(0x2ae);function et(_0x11b945){const _0x45ce40=_0x373e19;switch(_0x11b945){case u[_0x45ce40(0x2c4)]['OFFLINE']:return'collabStatus.offline';case u[_0x45ce40(0x2c4)]['CONFLICT']:return'collabStatus.conflict';case u['CollaborationStatus'][_0x45ce40(0x1a2)]:return'collabStatus.fetchMiss';case u[_0x45ce40(0x2c4)][_0x45ce40(0x161)]:return _0x45ce40(0x16e);case u['CollaborationStatus'][_0x45ce40(0x178)]:case u[_0x45ce40(0x2c4)][_0x45ce40(0x1f2)]:return _0x45ce40(0x1e3);case u[_0x45ce40(0x2c4)][_0x45ce40(0x1a1)]:case u[_0x45ce40(0x2c4)][_0x45ce40(0x22b)]:return'collabStatus.synced';}}function tt(_0x5a841f){const _0x30d828=_0x373e19,{status$:_0x2ca6b9}=_0x5a841f,_0x617fac=O['useObservable'](_0x2ca6b9,u[_0x30d828(0x2c4)][_0x30d828(0x161)]),_0x235dbc=O[_0x30d828(0x23f)](a[_0x30d828(0x230)]),_0x596623=O[_0x30d828(0x23f)](u[_0x30d828(0x2d6)]),_0x3e0782=_0x617fac!==u[_0x30d828(0x2c4)]['OFFLINE'],_0x21319d=_0x235dbc['t'](et(_0x617fac)),_0x1f5a3c=_0x3e0782?P['jsx'](Ae,{}):P[_0x30d828(0x155)](we,{}),_0x337396=M[_0x30d828(0x253)](()=>{_0x3e0782||_0x596623['reconnect']();},[_0x3e0782,_0x596623]);function _0xd2191b(){const _0xebba49=_0x30d828;return P[_0xebba49(0x196)](_0xebba49(0x215),{'className':'univer-flex\x20univer-items-center','onClick':_0x337396,'children':[P['jsx']('div',{'className':D['clsx']('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x3e0782,'univer-text-red-500':!_0x3e0782}),'children':_0x1f5a3c}),P['jsx'](_0xebba49(0x215),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x21319d})]});}return _0x3e0782?_0xd2191b():P[_0x30d828(0x155)](D[_0x30d828(0x129)],{'title':_0x235dbc['t'](_0x30d828(0x1c6)),'children':_0xd2191b()});}var st=Object[_0x373e19(0x305)],it=(_0x516db6,_0x113d6d,_0x285fd6,_0x5d7371)=>{const _0x5d0368=_0x373e19;for(var _0x55e308=_0x5d7371>0x1?void 0x0:_0x5d7371?st(_0x113d6d,_0x285fd6):_0x113d6d,_0x2e2399=_0x516db6[_0x5d0368(0x1a4)]-0x1,_0xe74e41;_0x2e2399>=0x0;_0x2e2399--)(_0xe74e41=_0x516db6[_0x2e2399])&&(_0x55e308=_0xe74e41(_0x55e308)||_0x55e308);return _0x55e308;},V=(_0x18c885,_0x4ab0fd)=>(_0x40c096,_0x2a57a4)=>_0x4ab0fd(_0x40c096,_0x2a57a4,_0x18c885);exports[_0x373e19(0x1ae)]=class extends a[_0x373e19(0x1e2)]{constructor(_0x4f98ab,_0x3a52a6,_0x569623,_0x2caf90){const _0x4a9cde=_0x373e19;super(),h(this,_0x4a9cde(0x2ca),new d['BehaviorSubject'](u['CollaborationStatus'][_0x4a9cde(0x161)])),(this['_univerInstanceService']=_0x4f98ab,this['_injector']=_0x3a52a6,this[_0x4a9cde(0xee)]=_0x569623,this[_0x4a9cde(0x15a)]=_0x2caf90,this[_0x4a9cde(0x205)](),this[_0x4a9cde(0x151)]());}[_0x373e19(0x151)](){const _0xb594ec=_0x373e19;this[_0xb594ec(0x13c)](this['_univerInstanceService'][_0xb594ec(0x26c)]['pipe'](d[_0xb594ec(0xcc)](()=>{const _0x4fe033=_0xb594ec,_0x3d3701=this[_0x4fe033(0x303)][_0x4fe033(0x19d)]();return _0x3d3701?this[_0x4fe033(0xee)][_0x4fe033(0x2da)](_0x3d3701['getUnitId']()):d['of'](null);}),d[_0xb594ec(0xcc)](_0x252191=>_0x252191?_0x252191[_0xb594ec(0x187)]:d['of'](u['CollaborationStatus'][_0xb594ec(0x161)])))[_0xb594ec(0x145)](_0x45e2dc=>{const _0x2425aa=_0xb594ec;this['_status$'][_0x2425aa(0x2e5)](_0x45e2dc);}));}[_0x373e19(0x205)](){const _0x24f4fb=_0x373e19;this[_0x24f4fb(0x13c)](this['_uiPartsService'][_0x24f4fb(0x227)](O[_0x24f4fb(0x2df)][_0x24f4fb(0x11c)],()=>O[_0x24f4fb(0x29b)](nt({'status$':this[_0x24f4fb(0x2ca)][_0x24f4fb(0x252)]()}),this[_0x24f4fb(0x20b)])));}},exports[_0x373e19(0x1ae)]=it([V(0x0,a['IUniverInstanceService']),V(0x1,a['Inject'](a[_0x373e19(0xc4)])),V(0x2,a[_0x373e19(0x2ec)](u[_0x373e19(0x17a)])),V(0x3,O[_0x373e19(0x232)])],exports[_0x373e19(0x1ae)]);function nt(_0x31edb9){const {status$:_0x2b50a9}=_0x31edb9;return function(){const _0x4f8fec=_0x2638;return P[_0x4f8fec(0x155)](tt,{'status$':_0x2b50a9});};}const me=a[_0x373e19(0x20e)]('uni.network.url-service');var rt=Object[_0x373e19(0x305)],ot=(_0x466201,_0x3857e6,_0x44f42b,_0x4c34ee)=>{const _0x16eaa2=_0x373e19;for(var _0x94a59c=_0x4c34ee>0x1?void 0x0:_0x4c34ee?rt(_0x3857e6,_0x44f42b):_0x3857e6,_0x51e54c=_0x466201[_0x16eaa2(0x1a4)]-0x1,_0x30db5e;_0x51e54c>=0x0;_0x51e54c--)(_0x30db5e=_0x466201[_0x51e54c])&&(_0x94a59c=_0x30db5e(_0x94a59c)||_0x94a59c);return _0x94a59c;},k=(_0x192f63,_0x426d3c)=>(_0x4cfd90,_0x5d7591)=>_0x426d3c(_0x4cfd90,_0x5d7591,_0x192f63);exports[_0x373e19(0x1bf)]=class extends a[_0x373e19(0xf0)]{constructor(_0x1bac7b,_0x45a82d,_0x3e05d7,_0x2948f7,_0x3f6cfa){const _0x47a667=_0x373e19;super(),this[_0x47a667(0x2d4)]=_0x1bac7b,this[_0x47a667(0x294)]=_0x45a82d,this[_0x47a667(0x248)]=_0x3e05d7,this['_dataLoaderService']=_0x2948f7,_0x3f6cfa?_0x3f6cfa==null||_0x3f6cfa[_0x47a667(0x141)]()['then'](()=>this['_init']()):(this[_0x47a667(0x294)]['debug'](_0x47a667(0x113),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x47a667(0xbb)]());}async['_init'](){const _0x196f68=_0x373e19,_0x4ca8d6=this[_0x196f68(0x2d4)][_0x196f68(0x322)](_0x196f68(0x328)),_0x196f13=this['_urlService'][_0x196f68(0x322)](_0x196f68(0x324)),_0x125abd=this[_0x196f68(0x2d4)]['getParam'](_0x196f68(0x229));if(!_0x4ca8d6||!_0x196f13){this[_0x196f68(0x294)][_0x196f68(0x2e6)]('[CollaborationDataLoaderController]',_0x196f68(0x307));return;}const _0x3b88d2=await this[_0x196f68(0x212)][_0x196f68(0x2d9)](_0x4ca8d6,Number(_0x196f13),_0x125abd);_0x3b88d2&&_0x3b88d2 instanceof a['Workbook']&&this[_0x196f68(0xd6)](_0x3b88d2);}async['_setupSubUnitSync'](_0x1d7626){const _0x2baea2=_0x373e19;await this[_0x2baea2(0x109)](_0x1d7626),_0x1d7626[_0x2baea2(0x257)][_0x2baea2(0x1f8)](d[_0x2baea2(0x1b9)](this[_0x2baea2(0x2e1)]))['subscribe'](_0xb545b0=>{const _0x52487b=_0x2baea2;_0xb545b0&&this[_0x52487b(0x2d3)](_0xb545b0);}),this['_urlService'][_0x2baea2(0x1b8)][_0x2baea2(0x1f8)](d['takeUntil'](this[_0x2baea2(0x2e1)]))[_0x2baea2(0x145)](()=>this[_0x2baea2(0x109)](_0x1d7626));}['_updateURLWithCurrentState'](_0x3fdcd3,_0x1151f4=!0x1){const _0x4f7903=_0x373e19,_0x3edee7=this[_0x4f7903(0x2d4)][_0x4f7903(0x322)](_0x4f7903(0x229));_0x3fdcd3[_0x4f7903(0x32b)]()!==_0x3edee7&&this[_0x4f7903(0x2d4)][_0x4f7903(0x2cd)]('subunit',_0x3fdcd3[_0x4f7903(0x32b)](),_0x1151f4);}async['_updateSubUnitFromURLParams'](_0x4b32d9){const _0x5c6295=_0x373e19;var _0x5bf2f3;const _0x2965e8=this[_0x5c6295(0x2d4)][_0x5c6295(0x322)](_0x5c6295(0x229));if(!_0x2965e8||!_0x4b32d9[_0x5c6295(0x1fe)](_0x2965e8)){const _0x4ea8f9=_0x4b32d9[_0x5c6295(0x216)]()[0x0],_0x13b1f7=_0x4b32d9['getSheetBySheetId'](_0x4ea8f9);if(!_0x13b1f7)return;this['_updateURLWithCurrentState'](_0x13b1f7,!0x0),await this['_commandService'][_0x5c6295(0x278)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x4b32d9[_0x5c6295(0x261)](),'subUnitId':_0x4ea8f9});return;}((_0x5bf2f3=_0x4b32d9[_0x5c6295(0x1a9)]())==null?void 0x0:_0x5bf2f3[_0x5c6295(0x32b)]())!==_0x2965e8&&await this[_0x5c6295(0x248)][_0x5c6295(0x278)](g[_0x5c6295(0x30b)]['id'],{'unitId':_0x4b32d9[_0x5c6295(0x261)](),'subUnitId':_0x2965e8});}},exports[_0x373e19(0x1bf)]=ot([k(0x0,me),k(0x1,a[_0x373e19(0x28c)]),k(0x2,a['ICommandService']),k(0x3,a[_0x373e19(0x2ec)](u['DataLoaderService'])),k(0x4,a[_0x373e19(0x1aa)](Xe['IRemoteInstanceService']))],exports[_0x373e19(0x1bf)]);var at=Object[_0x373e19(0x305)],ct=(_0x38af15,_0x1ce6aa,_0x521d1f,_0x5145a8)=>{for(var _0x4b6a91=_0x5145a8>0x1?void 0x0:_0x5145a8?at(_0x1ce6aa,_0x521d1f):_0x1ce6aa,_0x36b275=_0x38af15['length']-0x1,_0x585e38;_0x36b275>=0x0;_0x36b275--)(_0x585e38=_0x38af15[_0x36b275])&&(_0x4b6a91=_0x585e38(_0x4b6a91)||_0x4b6a91);return _0x4b6a91;},be=(_0x26647a,_0x1638b0)=>(_0x19e83e,_0x56618e)=>_0x1638b0(_0x19e83e,_0x56618e,_0x26647a);let ue=class extends a[_0x373e19(0xf0)]{constructor(_0x163ed0,_0x57347f){const _0x18d033=_0x373e19;super(),this[_0x18d033(0x126)]=_0x163ed0,this[_0x18d033(0x2cb)]=_0x57347f,this[_0x18d033(0xbb)]();}[_0x373e19(0xbb)](){const _0x294fc2=_0x373e19,_0x13e851=this;this[_0x294fc2(0x13c)](this[_0x294fc2(0x126)]['addClipboardHook']({'onBeforePasteImage':async _0x43e4d9=>{const _0x10f5e9=_0x294fc2,_0x38d86c=await _0x13e851['_imageIoService'][_0x10f5e9(0xcd)](_0x43e4d9);return _0x38d86c?{'source':_0x38d86c['source'],'imageSourceType':_0x38d86c[_0x10f5e9(0x308)]}:null;}}));}};ue=ct([be(0x0,E['IDocClipboardService']),be(0x1,Ge[_0x373e19(0x2e8)])],ue);const Oe=[_0x373e19(0x254),_0x373e19(0x138),_0x373e19(0x23d),'red.300',_0x373e19(0xbf),_0x373e19(0x2fe)];function _0x2638(_0x2d319f,_0x37e9a6){const _0x2c3a8b=_0x2c3a();return _0x2638=function(_0x26382f,_0x30001d){_0x26382f=_0x26382f-0xb0;let _0x2fb487=_0x2c3a8b[_0x26382f];return _0x2fb487;},_0x2638(_0x2d319f,_0x37e9a6);}class Ce extends a[_0x373e19(0x1e2)]{constructor(){const _0x405a9c=_0x373e19;super(...arguments),h(this,_0x405a9c(0x158),new Map()),h(this,_0x405a9c(0x267),0x0);}[_0x373e19(0x1e6)](_0x1d61e3){const _0x1356c3=_0x373e19;if(this[_0x1356c3(0x158)][_0x1356c3(0x281)](_0x1d61e3))return this['_assignedColors']['get'](_0x1d61e3);const _0x533443=Oe[this[_0x1356c3(0x267)]];return this[_0x1356c3(0x267)]=(this[_0x1356c3(0x267)]+0x1)%Oe[_0x1356c3(0x1a4)],this[_0x1356c3(0x158)][_0x1356c3(0x2a9)](_0x1d61e3,_0x533443),_0x533443;}}function ye(_0x2eaa0c){let _0x947bc0='';for(const _0x4920ac of _0x2eaa0c){const {startOffset:_0x3afd93,endOffset:_0x17c114,isActive:_0x17bd73,rangeType:_0x4e006b,segmentId:_0x531cb0,segmentPage:_0x22536c}=_0x4920ac;_0x947bc0['length']&&(_0x947bc0+=','),_0x947bc0+=_0x3afd93+':'+_0x17c114+':'+(_0x17bd73?'1':'0')+':'+_0x4e006b+':'+_0x531cb0+':'+_0x22536c;}return _0x947bc0;}function lt(_0x1e5d9b){const _0x5c17cc=_0x373e19,_0x2d8145=_0x1e5d9b[_0x5c17cc(0x174)](','),_0x4ba82b=[];for(const _0x483080 of _0x2d8145){const [_0x4d53b0,_0x4b52d0,_0x3c7ccd,_0x36801f,_0xe1ac6f,_0x2d6c69]=_0x483080['split'](':');_0x4ba82b[_0x5c17cc(0xc2)]({'startOffset':Number(_0x4d53b0),'endOffset':Number(_0x4b52d0),'collapsed':_0x4d53b0===_0x4b52d0,'isActive':_0x3c7ccd==='1','rangeType':_0x36801f===a[_0x5c17cc(0xbd)]['TEXT']?a[_0x5c17cc(0xbd)][_0x5c17cc(0x18d)]:a[_0x5c17cc(0xbd)][_0x5c17cc(0x1c7)],'segmentId':typeof _0xe1ac6f=='string'?String(_0xe1ac6f):'','segmentPage':Number(_0x2d6c69!=null?_0x2d6c69:-0x1)});}return _0x4ba82b[_0x5c17cc(0xd1)](_0x4d6ff7=>_0x4d6ff7[_0x5c17cc(0x136)])||(_0x4ba82b[0x0][_0x5c17cc(0x136)]=!0x0),_0x4ba82b;}class pe extends a['RxDisposable']{constructor(){const _0x107b51=_0x373e19;super(...arguments),h(this,'_collabCursorState$',new d[(_0x107b51(0x1a8))](null)),h(this,_0x107b51(0x209),this[_0x107b51(0xe0)][_0x107b51(0x252)]());}[_0x373e19(0x107)](_0x44e16c){const _0x3a8d05=_0x373e19,{unitID:_0x4bcdd2,memberID:_0x1eafce,textRanges:_0x3ae513}=_0x44e16c,_0x3f118b=ye(_0x3ae513);if(_0x3f118b==='')return;const _0xaba70b={'unitID':_0x4bcdd2,'memberID':_0x1eafce,'selection':_0x3f118b};this[_0x3a8d05(0xe0)][_0x3a8d05(0x2e5)](_0xaba70b);}}var _t=Object[_0x373e19(0x305)],ht=(_0x8597f,_0x1d0f6a,_0x46a393,_0x3e3dad)=>{const _0x44c2fd=_0x373e19;for(var _0x5c58e4=_0x3e3dad>0x1?void 0x0:_0x3e3dad?_t(_0x1d0f6a,_0x46a393):_0x1d0f6a,_0x200406=_0x8597f[_0x44c2fd(0x1a4)]-0x1,_0x271716;_0x200406>=0x0;_0x200406--)(_0x271716=_0x8597f[_0x200406])&&(_0x5c58e4=_0x271716(_0x5c58e4)||_0x5c58e4);return _0x5c58e4;},L=(_0x2336a6,_0x782344)=>(_0x249362,_0x17de32)=>_0x782344(_0x249362,_0x17de32,_0x2336a6);const ut=0x12c,dt=0x64;let de=class extends a[_0x373e19(0xf0)]{constructor(_0x113446,_0x243f79,_0x5b3c98,_0xc696d9,_0x281119,_0xf7dc22,_0x4c49b9,_0x162098,_0x48fb09){const _0x3b9591=_0x373e19;super(),h(this,_0x3b9591(0x311),!0x1),h(this,_0x3b9591(0xbb),!0x1),h(this,_0x3b9591(0x208),new d[(_0x3b9591(0x1a8))](new Map())),h(this,_0x3b9591(0x310),this[_0x3b9591(0x208)][_0x3b9591(0x252)]()),h(this,'_roomMembers$',new d[(_0x3b9591(0x1a8))]([])),h(this,_0x3b9591(0x287),this['_roomMembers$'][_0x3b9591(0x1f8)](d[_0x3b9591(0xe6)](ut))),h(this,_0x3b9591(0x263),a[_0x3b9591(0x1dc)](_0x497067=>{const _0x39a1f6=_0x3b9591,_0xebc488={'eventID':m[_0x39a1f6(0x1f6)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x39a1f6(0x28b)][_0x39a1f6(0x146)](),'selection':ye(_0x497067)}};this[_0x39a1f6(0x28b)][_0x39a1f6(0x223)](_0xebc488,this[_0x39a1f6(0x1ef)]);},dt)),(this[_0x3b9591(0x1ef)]=_0x113446,this[_0x3b9591(0x28b)]=_0x243f79,this[_0x3b9591(0x20b)]=_0x5b3c98,this[_0x3b9591(0x298)]=_0xc696d9,this[_0x3b9591(0x2d7)]=_0x281119,this[_0x3b9591(0x30d)]=_0xf7dc22,this[_0x3b9591(0x116)]=_0x4c49b9,this['_univerInstanceService']=_0x162098,this[_0x3b9591(0x248)]=_0x48fb09);}get[_0x373e19(0x206)](){const _0x44b34e=_0x373e19;return this['_cursorInfo$'][_0x44b34e(0x1d9)]();}get[_0x373e19(0x21f)](){const _0x494d82=_0x373e19;return this[_0x494d82(0x119)][_0x494d82(0x1d9)]();}[_0x373e19(0x226)](){const _0x172e7f=_0x373e19;super['dispose'](),this[_0x172e7f(0x208)][_0x172e7f(0x2e5)](new Map()),this[_0x172e7f(0x208)][_0x172e7f(0xb7)](),this[_0x172e7f(0x119)][_0x172e7f(0x2e5)]([]),this[_0x172e7f(0x119)]['complete']();}[_0x373e19(0xe5)](){const _0x4b9bcb=_0x373e19;this['_init']||(this['_init']=!0x0,this[_0x4b9bcb(0x28b)][_0x4b9bcb(0x1ad)][_0x4b9bcb(0x1f8)](d[_0x4b9bcb(0x1b9)](this[_0x4b9bcb(0x2e1)]))[_0x4b9bcb(0x145)](_0x17383f=>{const _0x3f7251=_0x4b9bcb;_0x17383f===u['SessionStatus'][_0x3f7251(0x152)]?this[_0x3f7251(0x1cc)]():this['_toggleOffline']();}),this[_0x4b9bcb(0x28b)][_0x4b9bcb(0x195)][_0x4b9bcb(0x1f8)](d[_0x4b9bcb(0x1b9)](this[_0x4b9bcb(0x2e1)]))[_0x4b9bcb(0x145)](_0xbc3703=>{const _0x5c706c=_0x4b9bcb,_0x2f56bc=_0xbc3703['eventID'];_0x2f56bc===m[_0x5c706c(0x1f6)][_0x5c706c(0x28d)]&&this[_0x5c706c(0x190)](_0xbc3703),_0x2f56bc===m['CollaborationEvent']['USERS_LEAVE']&&this['_onCursorDelete'](_0xbc3703);}),this[_0x4b9bcb(0x13c)](this['_commandService']['onCommandExecuted'](_0x5f1c1e=>{const _0x4cf252=_0x4b9bcb,_0x21e9e1=_0x5f1c1e[_0x4cf252(0x182)];_0x21e9e1!=null&&this[_0x4cf252(0x311)]&&_0x5f1c1e['id']===Y['SetTextSelectionsOperation']['id']&&_0x21e9e1[_0x4cf252(0xf7)]===this[_0x4cf252(0x1ef)]&&_0x21e9e1['isEditing']===!0x1&&_0x21e9e1[_0x4cf252(0x110)][_0x4cf252(0x1a4)]>0x0&&this['_updateLocalCursor'](_0x21e9e1['ranges']);})),this[_0x4b9bcb(0x30d)]['collabCursorState$'][_0x4b9bcb(0x1f8)](d[_0x4b9bcb(0x1b9)](this[_0x4b9bcb(0x2e1)]))[_0x4b9bcb(0x145)](_0x26c011=>{const _0x15e1b8=_0x4b9bcb;if((_0x26c011==null?void 0x0:_0x26c011[_0x15e1b8(0x1ef)])!==this[_0x15e1b8(0x1ef)])return;const _0x17ba6f={'eventID':m['CollaborationEvent'][_0x15e1b8(0x28d)],'data':_0x26c011};this['_onCursorUpdate'](_0x17ba6f);}),this[_0x4b9bcb(0x13c)](this[_0x4b9bcb(0x248)][_0x4b9bcb(0x27d)](_0x3ab3f1=>{const _0x106bac=_0x4b9bcb;if(_0x3ab3f1[_0x106bac(0x182)]==null)return;const _0xe5e07=_0x3ab3f1[_0x106bac(0x182)];if(_0x3ab3f1['id']!==Y['RichTextEditingMutation']['id']||_0xe5e07[_0x106bac(0xf7)]!==this[_0x106bac(0x1ef)])return;const _0x441dcf={'id':'doc.mutation.rich-text-editing','params':_0xe5e07},_0x23b2ed=this[_0x106bac(0x206)];for(const [_0x185b29,_0x5ed0cf]of _0x23b2ed){const _0xe1572={'id':_0x106bac(0xc1),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x5ed0cf['ranges']}},_0x182151=this[_0x106bac(0x116)][_0x106bac(0x102)](_0x441dcf,_0xe1572,!0x1);if(m['isTransformMutationFailure'](_0x182151))throw _0x182151[_0x106bac(0x111)];_0x23b2ed[_0x106bac(0x2a9)](_0x185b29,{..._0x5ed0cf,'ranges':_0x182151[_0x106bac(0x235)][_0x106bac(0x182)][_0x106bac(0x2bc)]});}queueMicrotask(()=>{const _0x5e6120=_0x106bac;this[_0x5e6120(0x208)][_0x5e6120(0x2e5)](_0x23b2ed);});})));}[_0x373e19(0x190)](_0x389b56){const _0xa9bfdd=_0x373e19;var _0x519ee5,_0x22b673;const {memberID:_0x1ccd8e,selection:_0x4797f4}=_0x389b56[_0xa9bfdd(0x13f)],_0x4ec47b=lt(_0x4797f4),_0x39e9df=(_0x22b673=(_0x519ee5=this[_0xa9bfdd(0x2d7)][_0xa9bfdd(0xc5)](this[_0xa9bfdd(0x1ef)],_0x1ccd8e))==null?void 0x0:_0x519ee5[_0xa9bfdd(0x1ec)])!=null?_0x22b673:'Unknown\x20user',_0x216e67={'color':this[_0xa9bfdd(0x298)]['assignAColorForMemberID'](_0x1ccd8e),'name':_0x39e9df,'ranges':_0x4ec47b},_0x153d0a=this[_0xa9bfdd(0x206)];_0x153d0a[_0xa9bfdd(0x2a9)](_0x1ccd8e,_0x216e67),this[_0xa9bfdd(0x208)][_0xa9bfdd(0x2e5)](_0x153d0a);}[_0x373e19(0x194)](_0x3395bd){const _0x47feae=_0x373e19,{memberID:_0x4df97d}=_0x3395bd[_0x47feae(0x13f)],_0x5912dd=this['cursorInfo'];_0x5912dd[_0x47feae(0x258)](_0x4df97d),this[_0x47feae(0x208)][_0x47feae(0x2e5)](_0x5912dd);}[_0x373e19(0x1cc)](){const _0x5a7958=_0x373e19;var _0x345bdb;if(this[_0x5a7958(0x311)]=!0x0,((_0x345bdb=this[_0x5a7958(0x303)][_0x5a7958(0x19d)]())==null?void 0x0:_0x345bdb[_0x5a7958(0x261)]())!==this[_0x5a7958(0x1ef)])return;const _0x477313=this[_0x5a7958(0x20b)][_0x5a7958(0x177)](Y[_0x5a7958(0x10a)])[_0x5a7958(0x288)]();Array[_0x5a7958(0x297)](_0x477313)&&_0x477313['length']>0x0&&this[_0x5a7958(0x263)](_0x477313);}[_0x373e19(0x19b)](){this['_online']=!0x1;}};de=ht([L(0x2,a[_0x373e19(0x2ec)](a[_0x373e19(0xc4)])),L(0x3,a[_0x373e19(0x2ec)](Ce)),L(0x4,a['Inject'](u[_0x373e19(0x13e)])),L(0x5,a[_0x373e19(0x2ec)](pe)),L(0x6,m[_0x373e19(0x101)]),L(0x7,a[_0x373e19(0x157)]),L(0x8,a[_0x373e19(0x1af)])],de);var St=Object[_0x373e19(0x305)],ft=(_0x584050,_0x24aba9,_0x3c5376,_0x4a2923)=>{const _0x1b281c=_0x373e19;for(var _0xfea012=_0x4a2923>0x1?void 0x0:_0x4a2923?St(_0x24aba9,_0x3c5376):_0x24aba9,_0x3fda8a=_0x584050[_0x1b281c(0x1a4)]-0x1,_0x5ee1cc;_0x3fda8a>=0x0;_0x3fda8a--)(_0x5ee1cc=_0x584050[_0x3fda8a])&&(_0xfea012=_0x5ee1cc(_0xfea012)||_0xfea012);return _0xfea012;},A=(_0x3152ac,_0x5a9bcb)=>(_0x262af1,_0x323b44)=>_0x5a9bcb(_0x262af1,_0x323b44,_0x3152ac);const It=0x12c,vt=0x64,gt=()=>{let _0x3e2ed3=[],_0x91df12=!0x1;return _0x2b2b22=>{const _0x222a33=_0x2638;_0x3e2ed3[_0x222a33(0xc2)](_0x2b2b22),_0x91df12||(_0x91df12=!0x0,setTimeout(()=>{const _0x1b0c55=_0x222a33;_0x3e2ed3[_0x1b0c55(0x22a)](_0x2fff20=>_0x2fff20()),_0x3e2ed3=[],_0x91df12=!0x1;}));};};let Se=class extends a['RxDisposable']{constructor(_0x364467,_0x22342c,_0x2e2501,_0x557b83,_0x110ece,_0x28855e,_0x414497,_0xe19115){const _0x56ca58=_0x373e19;super(),h(this,_0x56ca58(0x311),!0x1),h(this,'_init',!0x1),h(this,_0x56ca58(0x208),new d['BehaviorSubject'](new Map())),h(this,_0x56ca58(0x310),this[_0x56ca58(0x208)]['asObservable']()),h(this,_0x56ca58(0x119),new d[(_0x56ca58(0x1a8))]([])),h(this,_0x56ca58(0x287),this[_0x56ca58(0x119)][_0x56ca58(0x1f8)](d['debounceTime'](It))),h(this,_0x56ca58(0x263),a[_0x56ca58(0x1dc)]((_0x94fb5c,_0x27b09b)=>{const _0x1c58ba=_0x56ca58,_0x41a08d={'eventID':m[_0x1c58ba(0x1f6)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x1c58ba(0x28b)][_0x1c58ba(0x146)](),'selection':Ee[_0x1c58ba(0x11e)](_0x94fb5c,_0x27b09b[_0x1c58ba(0x225)])}};this[_0x1c58ba(0x28b)][_0x1c58ba(0x223)](_0x41a08d,this[_0x1c58ba(0x1ef)]);},vt)),(this[_0x56ca58(0x1ef)]=_0x364467,this[_0x56ca58(0x28b)]=_0x22342c,this[_0x56ca58(0x20b)]=_0x2e2501,this['_colorAssignService']=_0x557b83,this[_0x56ca58(0x2d7)]=_0x110ece,this[_0x56ca58(0x303)]=_0x28855e,this[_0x56ca58(0x248)]=_0x414497,this[_0x56ca58(0x1f0)]=_0xe19115);}get[_0x373e19(0x206)](){const _0x389f19=_0x373e19;return this[_0x389f19(0x208)][_0x389f19(0x1d9)]();}get[_0x373e19(0x21f)](){const _0x472915=_0x373e19;return this[_0x472915(0x119)][_0x472915(0x1d9)]();}['dispose'](){const _0x38242b=_0x373e19;super['dispose'](),this[_0x38242b(0x208)][_0x38242b(0x2e5)](new Map()),this[_0x38242b(0x208)]['complete'](),this[_0x38242b(0x119)][_0x38242b(0x2e5)]([]),this[_0x38242b(0x119)][_0x38242b(0xb7)]();}[_0x373e19(0xe5)](){const _0x1ac696=_0x373e19;this[_0x1ac696(0xbb)]||(this[_0x1ac696(0xbb)]=!0x0,this['_session']['sessionStatus$'][_0x1ac696(0x1f8)](d[_0x1ac696(0x1b9)](this['dispose$']))['subscribe'](_0x438435=>{const _0x446d71=_0x1ac696;_0x438435===u['SessionStatus']['ONLINE']?this['_toggleOnline']():this[_0x446d71(0x19b)]();}),this[_0x1ac696(0x28b)]['event$'][_0x1ac696(0x1f8)](d['takeUntil'](this[_0x1ac696(0x2e1)]))[_0x1ac696(0x145)](_0x4c70d8=>{const _0x5af1b6=_0x1ac696,_0x132192=_0x4c70d8[_0x5af1b6(0x1e1)];_0x132192===m[_0x5af1b6(0x1f6)][_0x5af1b6(0x28d)]&&this[_0x5af1b6(0x190)](_0x4c70d8),_0x132192===m[_0x5af1b6(0x1f6)][_0x5af1b6(0x176)]&&this['_onCursorDelete'](_0x4c70d8);}),this[_0x1ac696(0x1f9)](),this[_0x1ac696(0x13c)](this[_0x1ac696(0x248)][_0x1ac696(0x27d)](_0x547885=>{const _0x205bbc=_0x1ac696;if(this[_0x205bbc(0x311)]&&_0x547885['id']===g[_0x205bbc(0x1eb)]['id']&&_0x547885[_0x205bbc(0x182)][_0x205bbc(0xf7)]===this[_0x205bbc(0x1ef)]){const _0x19f8b1=_0x547885['params'];this[_0x205bbc(0x263)](_0x19f8b1[_0x205bbc(0x2a0)],_0x19f8b1[_0x205bbc(0x214)][0x0]);}})));}['_onCursorUpdate'](_0x13e61a){const _0x3cd807=_0x373e19;var _0x3894eb,_0x5d3b98;const {memberID:_0x2fdace,selection:_0x1b15c8}=_0x13e61a[_0x3cd807(0x13f)],{sheetName:_0x58981e,range:_0x58d00d}=Ee[_0x3cd807(0x1c3)](_0x1b15c8),_0x3f62f5={'name':(_0x5d3b98=(_0x3894eb=this[_0x3cd807(0x2d7)][_0x3cd807(0xc5)](this[_0x3cd807(0x1ef)],_0x2fdace))==null?void 0x0:_0x3894eb['name'])!=null?_0x5d3b98:_0x3cd807(0x29d),'range':this[_0x3cd807(0x231)](_0x58981e,_0x58d00d),'sheetID':_0x58981e,'color':this[_0x3cd807(0x298)][_0x3cd807(0x1e6)](_0x2fdace),'selection':_0x1b15c8},_0x586812=this[_0x3cd807(0x206)];_0x586812[_0x3cd807(0x2a9)](_0x2fdace,_0x3f62f5),this[_0x3cd807(0x208)]['next'](_0x586812);}['_onCursorDelete'](_0x4a44e7){const _0x5ec480=_0x373e19,{memberID:_0x14a724}=_0x4a44e7['data'],_0x5e1c73=this[_0x5ec480(0x206)];_0x5e1c73[_0x5ec480(0x258)](_0x14a724),this[_0x5ec480(0x208)][_0x5ec480(0x2e5)](_0x5e1c73);}[_0x373e19(0x231)](_0x39c090,_0x41fae9){const _0x509b8b=_0x373e19;var _0x3f1faf,_0x34d765;const _0x5c40e5=(_0x34d765=(_0x3f1faf=this[_0x509b8b(0x303)][_0x509b8b(0x2be)](this[_0x509b8b(0x1ef)]))==null?void 0x0:_0x3f1faf[_0x509b8b(0x1fe)](_0x39c090))==null?void 0x0:_0x34d765[_0x509b8b(0x1d6)]();return(_0x5c40e5==null?void 0x0:_0x5c40e5['find'](_0x4db961=>a[_0x509b8b(0x2c5)]['contains'](_0x4db961,_0x41fae9)))||_0x41fae9;}['_onRefRangeChange'](){const _0x35721e=_0x373e19,_0xbe85f3=new a['DisposableCollection'](),_0x454b05=gt(),_0x5e7be6=()=>{const _0x4e2bb1=_0x2638;_0xbe85f3[_0x4e2bb1(0x226)]();const _0x381e85=(_0x5d8dfa,_0x251797,_0x37d6a9,_0x48f671)=>{const _0x325260=_0x4e2bb1;let _0xb7d3bc=[];switch(_0x5d8dfa['id']){case g[_0x325260(0x2f0)][_0x325260(0x1b0)]:{_0xb7d3bc=g[_0x325260(0x12a)](_0x5d8dfa,_0x48f671);break;}case g['EffectRefRangId'][_0x325260(0x114)]:{_0xb7d3bc=g[_0x325260(0x1ba)](_0x5d8dfa,_0x48f671);break;}case g[_0x325260(0x2f0)][_0x325260(0x228)]:{_0xb7d3bc=g['handleInsertCol'](_0x5d8dfa,_0x48f671);break;}case g[_0x325260(0x2f0)][_0x325260(0x124)]:{_0xb7d3bc=g[_0x325260(0x268)](_0x5d8dfa,_0x48f671);break;}case g[_0x325260(0x2f0)][_0x325260(0x2c8)]:{_0xb7d3bc=g[_0x325260(0x26d)](_0x5d8dfa,_0x48f671);break;}case g[_0x325260(0x2f0)][_0x325260(0x2af)]:{_0xb7d3bc=g[_0x325260(0x2bb)](_0x5d8dfa,_0x48f671);break;}case g['EffectRefRangId']['MoveRangeCommandId']:{_0xb7d3bc=g[_0x325260(0x1bb)](_0x5d8dfa,_0x48f671);break;}case g[_0x325260(0x2f0)][_0x325260(0x2a2)]:{_0xb7d3bc=g['handleIRemoveCol'](_0x5d8dfa,_0x48f671);break;}case g[_0x325260(0x2f0)]['RemoveRowCommandId']:{_0xb7d3bc=g['handleIRemoveRow'](_0x5d8dfa,_0x48f671);break;}}const _0x76e663=g[_0x325260(0x2f8)](_0xb7d3bc,_0x48f671),_0x1d6f2f=this[_0x325260(0x206)]['get'](_0x251797);if(_0x1d6f2f&&_0x76e663){const _0x425893={..._0x1d6f2f,'range':_0x76e663};this[_0x325260(0x206)]['set'](_0x251797,_0x425893),_0x454b05(()=>{const _0x173c38=_0x325260,_0xcd9a97=this[_0x173c38(0x1f0)][_0x173c38(0x25a)](_0x76e663,_0x5d07a3=>(_0xcd9a97[_0x173c38(0x226)](),_0x381e85(_0x5d07a3,_0x251797,_0x37d6a9,_0x76e663)));_0xbe85f3[_0x173c38(0x1a3)](_0xcd9a97);});}return{'redos':[],'undos':[]};};this[_0x4e2bb1(0x206)][_0x4e2bb1(0x22a)]((_0x471237,_0x1fea73)=>{const _0x34218e=_0x4e2bb1,{range:_0x153f75,sheetID:_0x21af3c}=_0x471237,_0xcc55e1=this['_refRangeService'][_0x34218e(0x25a)](_0x153f75,_0x24a05c=>(_0xcc55e1[_0x34218e(0x226)](),_0x381e85(_0x24a05c,_0x1fea73,_0x21af3c,_0x153f75)));_0xbe85f3['add'](_0xcc55e1);});};this[_0x35721e(0x13c)](a[_0x35721e(0x285)](this[_0x35721e(0x208)]['subscribe'](()=>{_0x5e7be6();})));}[_0x373e19(0x1cc)](){const _0x57614d=_0x373e19;var _0x1c5ad1,_0x38414b;if(this[_0x57614d(0x311)]=!0x0,((_0x1c5ad1=this[_0x57614d(0x303)][_0x57614d(0x19d)]())==null?void 0x0:_0x1c5ad1['getUnitId']())!==this['unitID'])return;const _0x4fe0b7=(_0x38414b=this['_injector']['get'](g[_0x57614d(0x302)])[_0x57614d(0x32f)]())==null?void 0x0:_0x38414b[0x0],_0x31ac87=this['_univerInstanceService']['getCurrentUnitForType'](a[_0x57614d(0x2fc)][_0x57614d(0x1de)])[_0x57614d(0x1a9)]();_0x4fe0b7&&_0x31ac87&&this['_updateLocalCursor'](_0x31ac87[_0x57614d(0x32b)](),_0x4fe0b7);}['_toggleOffline'](){this['_online']=!0x1;}};Se=ft([A(0x2,a[_0x373e19(0x2ec)](a[_0x373e19(0xc4)])),A(0x3,a[_0x373e19(0x2ec)](Ce)),A(0x4,a[_0x373e19(0x2ec)](u[_0x373e19(0x13e)])),A(0x5,a[_0x373e19(0x157)]),A(0x6,a[_0x373e19(0x1af)]),A(0x7,a['Inject'](g[_0x373e19(0x2c2)]))],Se);var mt=Object[_0x373e19(0x305)],Ct=(_0x260761,_0x247b39,_0x2e28b9,_0x639d9c)=>{const _0x5e7ac6=_0x373e19;for(var _0x1cfb14=_0x639d9c>0x1?void 0x0:_0x639d9c?mt(_0x247b39,_0x2e28b9):_0x247b39,_0x316f6e=_0x260761[_0x5e7ac6(0x1a4)]-0x1,_0x3f86e0;_0x316f6e>=0x0;_0x316f6e--)(_0x3f86e0=_0x260761[_0x316f6e])&&(_0x1cfb14=_0x3f86e0(_0x1cfb14)||_0x1cfb14);return _0x1cfb14;},ie=(_0x4c267b,_0x5f29b7)=>(_0x57c0ea,_0x506b10)=>_0x5f29b7(_0x57c0ea,_0x506b10,_0x4c267b);let x=class extends a[_0x373e19(0xf0)]{constructor(_0x147827,_0x53a5f9,_0x3cc56a){const _0x25a150=_0x373e19;super(),h(this,'_entities',new Map()),h(this,_0x25a150(0x14b),new d[(_0x25a150(0x29f))]()),(this[_0x25a150(0x303)]=_0x147827,this[_0x25a150(0x20b)]=_0x53a5f9,this['_collabSessionService']=_0x3cc56a,this[_0x25a150(0xbb)]());}[_0x373e19(0x226)](){const _0x4aef61=_0x373e19;super[_0x4aef61(0x226)](),this['_entityInit$'][_0x4aef61(0xb7)](),this[_0x4aef61(0x2ba)][_0x4aef61(0x22a)](_0x2d3182=>_0x2d3182['dispose']());}['getCollabCursors$'](_0x40e92f){const _0x3745fe=_0x373e19;return this['_entities'][_0x3745fe(0x281)](_0x40e92f)?this['_entities'][_0x3745fe(0x177)](_0x40e92f)[_0x3745fe(0x310)]:this['_entityInit$']['pipe'](d[_0x3745fe(0x243)](_0x3f804d=>_0x3f804d[_0x3745fe(0x1ef)]===_0x40e92f),d[_0x3745fe(0xcc)](_0x4992e5=>_0x4992e5[_0x3745fe(0x310)]));}[_0x373e19(0xbb)](){const _0x4b766f=_0x373e19;this['_univerInstanceService'][_0x4b766f(0xb3)](a['UniverInstanceType'][_0x4b766f(0x1de)])['pipe'](d[_0x4b766f(0x1b9)](this['dispose$']))[_0x4b766f(0x145)](async _0x2ea52f=>{const _0x4e6938=_0x4b766f,_0x3bade9=_0x2ea52f['getUnitId'](),_0x33d8f0=await this['_startSheetCollabCursor'](_0x3bade9);this[_0x4e6938(0x14b)][_0x4e6938(0x2e5)](_0x33d8f0),this[_0x4e6938(0x2ba)][_0x4e6938(0x2a9)](_0x3bade9,_0x33d8f0);}),this[_0x4b766f(0x303)][_0x4b766f(0xb3)](a[_0x4b766f(0x2fc)][_0x4b766f(0xf8)])[_0x4b766f(0x1f8)](d['takeUntil'](this[_0x4b766f(0x2e1)]))[_0x4b766f(0x1f8)](d[_0x4b766f(0x243)](_0xdac780=>!_0xdac780[_0x4b766f(0x261)]()[_0x4b766f(0x2a8)]('__')))[_0x4b766f(0x145)](async _0x174dd3=>{const _0x420a00=_0x4b766f,_0x381aac=_0x174dd3[_0x420a00(0x261)](),_0x51b990=await this[_0x420a00(0x25b)](_0x381aac);this['_entityInit$']['next'](_0x51b990),this[_0x420a00(0x2ba)][_0x420a00(0x2a9)](_0x381aac,_0x51b990);}),d[_0x4b766f(0x11b)](this[_0x4b766f(0x303)][_0x4b766f(0x118)](a['UniverInstanceType'][_0x4b766f(0xf8)]),this[_0x4b766f(0x303)][_0x4b766f(0x118)](a[_0x4b766f(0x2fc)]['UNIVER_SHEET']))[_0x4b766f(0x1f8)](d[_0x4b766f(0x1b9)](this[_0x4b766f(0x2e1)]))[_0x4b766f(0x145)](_0x91bb95=>{const _0x306a41=_0x4b766f,_0x31b6c2=_0x91bb95[_0x306a41(0x261)](),_0x21dc60=this['_entities'][_0x306a41(0x177)](_0x31b6c2);_0x21dc60&&(_0x21dc60[_0x306a41(0x226)](),this[_0x306a41(0x2ba)]['delete'](_0x31b6c2));});}async['_startSheetCollabCursor'](_0x2933e7){const _0x421b14=_0x373e19,_0xab92ed=await this[_0x421b14(0x169)][_0x421b14(0x2ef)](_0x2933e7),_0x151b0b=this[_0x421b14(0x20b)][_0x421b14(0x291)](Se,_0x2933e7,_0xab92ed);return _0x151b0b[_0x421b14(0xe5)](),_0x151b0b;}async[_0x373e19(0x25b)](_0x368b44){const _0x504f83=_0x373e19,_0x162224=await this[_0x504f83(0x169)][_0x504f83(0x2ef)](_0x368b44),_0x3de8b2=this[_0x504f83(0x20b)][_0x504f83(0x291)](de,_0x368b44,_0x162224);return _0x3de8b2[_0x504f83(0xe5)](),_0x3de8b2;}};x=Ct([ie(0x0,a[_0x373e19(0x157)]),ie(0x1,a[_0x373e19(0x2ec)](a[_0x373e19(0xc4)])),ie(0x2,a['Inject'](u[_0x373e19(0x2d6)]))],x);const W=0x14,Te=0xc8,ne=0x4,pt=0x5;function Et(_0x5cc8ff,_0x13a38b){const _0x2bf8e5=_0x373e19;let {radius:_0x4f707f,width:_0x5a2f6d,height:_0x1048c0}=_0x13a38b;_0x4f707f=_0x4f707f!=null?_0x4f707f:0x0,_0x5a2f6d=_0x5a2f6d!=null?_0x5a2f6d:0x1e,_0x1048c0=_0x1048c0!=null?_0x1048c0:0x1e;let _0x382f8d=0x0,_0x4cecf1=0x0,_0x36023e=0x0;_0x382f8d=_0x4cecf1=_0x36023e=Math[_0x2bf8e5(0x1ff)](_0x4f707f,_0x5a2f6d/0x2,_0x1048c0/0x2),_0x5cc8ff[_0x2bf8e5(0xf3)](),_0x5cc8ff[_0x2bf8e5(0x100)](_0x382f8d,0x0),_0x5cc8ff[_0x2bf8e5(0x32a)](_0x5a2f6d-_0x4cecf1,0x0),_0x5cc8ff[_0x2bf8e5(0x143)](_0x5a2f6d-_0x4cecf1,_0x4cecf1,_0x4cecf1,Math['PI']*0x3/0x2,0x0,!0x1),_0x5cc8ff[_0x2bf8e5(0x32a)](_0x5a2f6d,_0x1048c0-_0x36023e),_0x5cc8ff['arc'](_0x5a2f6d-_0x36023e,_0x1048c0-_0x36023e,_0x36023e,0x0,Math['PI']/0x2,!0x1),_0x5cc8ff['lineTo'](0x0,_0x1048c0),_0x5cc8ff[_0x2bf8e5(0x32a)](0x0,_0x382f8d),_0x5cc8ff[_0x2bf8e5(0x143)](_0x382f8d,_0x382f8d,_0x382f8d,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x5cc8ff['closePath'](),_0x13a38b[_0x2bf8e5(0xec)]&&(_0x5cc8ff[_0x2bf8e5(0x163)](),_0x5cc8ff['fillStyle']=_0x13a38b[_0x2bf8e5(0xec)],_0x13a38b['fillRule']===_0x2bf8e5(0xcb)?_0x5cc8ff['fill'](_0x2bf8e5(0xcb)):_0x5cc8ff['fill'](),_0x5cc8ff[_0x2bf8e5(0x134)]());}class ee extends p[_0x373e19(0x1e5)]{constructor(_0x5de5bd,_0x32875b){const _0x71048b=_0x373e19;super(_0x5de5bd,_0x32875b),h(this,'color'),h(this,_0x71048b(0x2b6)),(this[_0x71048b(0x1ea)]=_0x32875b==null?void 0x0:_0x32875b[_0x71048b(0x1ea)],this['text']=_0x32875b==null?void 0x0:_0x32875b[_0x71048b(0x2b6)]);}static[_0x373e19(0xc9)](_0x522afc,_0x132d78){const _0x15081d=_0x373e19,{text:_0x47e421,color:_0x81d9ab}=_0x132d78;_0x522afc[_0x15081d(0x163)](),_0x522afc[_0x15081d(0x220)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x224323=_0x522afc[_0x15081d(0x25f)](_0x47e421)['width'],_0x426f88=Math[_0x15081d(0x1ff)](_0x224323+0x2*ne,Te);Et(_0x522afc,{'height':W,'radius':0x4,'width':_0x426f88,'fill':_0x81d9ab}),_0x522afc[_0x15081d(0x1b1)]=_0x15081d(0x30a);const _0x29b9af=ne,_0x5ae8bf=W-pt,_0x152fea=Te-0x2*ne;if(_0x224323>_0x152fea){let _0x578f33='',_0x40267c=0x0;for(const _0xf956ff of _0x47e421){const _0x2bd38c=_0x522afc[_0x15081d(0x25f)](_0xf956ff)[_0x15081d(0x173)];if(_0x40267c+_0x2bd38c<=_0x152fea-_0x522afc[_0x15081d(0x25f)](_0x15081d(0x217))['width'])_0x578f33+=_0xf956ff,_0x40267c+=_0x2bd38c;else{_0x578f33+=_0x15081d(0x217);break;}}_0x522afc[_0x15081d(0x14e)](_0x578f33,_0x29b9af,_0x5ae8bf);}else _0x522afc[_0x15081d(0x14e)](_0x47e421,_0x29b9af,_0x5ae8bf);_0x522afc[_0x15081d(0x134)]();}[_0x373e19(0x22c)](_0x24e2b1){ee['drawWith'](_0x24e2b1,this);}}const re=_0x373e19(0x20c),bt=_0x373e19(0x121),Ot='collab-rect-range-',F=0x6,Tt=1.5,oe=0x4,Rt=1.5,Dt=_0x373e19(0x14d);class Re{constructor(_0x34749d,_0x5348ff,_0x32348a,_0x2c49c1){const _0x243e44=_0x373e19;h(this,_0x243e44(0x2d0),[]),h(this,_0x243e44(0x201),null),h(this,_0x243e44(0x273),null),h(this,_0x243e44(0x159),null),h(this,_0x243e44(0x131),null),h(this,_0x243e44(0x19f),null),(this[_0x243e44(0x168)]=_0x34749d,this[_0x243e44(0x135)]=_0x5348ff,this[_0x243e44(0x23c)]=_0x32348a,this['_document']=_0x2c49c1,this[_0x243e44(0x290)]());}set[_0x373e19(0x1b2)](_0x2a55a1){const _0x1dd21b=_0x373e19;_0x2a55a1?(this[_0x1dd21b(0x159)]&&this[_0x1dd21b(0x159)][_0x1dd21b(0xd9)](),this[_0x1dd21b(0x273)]&&this['_textBubble'][_0x1dd21b(0xed)]()):(this[_0x1dd21b(0x159)]&&this['_anchorDot']['show'](),this[_0x1dd21b(0x273)]&&this[_0x1dd21b(0x273)][_0x1dd21b(0xd9)]());}[_0x373e19(0x226)](){const _0x4dafdd=_0x373e19;for(const _0x3e35a0 of this[_0x4dafdd(0x2d0)])_0x3e35a0[_0x4dafdd(0x226)]();this[_0x4dafdd(0x273)]&&this['_textBubble'][_0x4dafdd(0x226)](),this[_0x4dafdd(0x159)]&&this['_anchorDot'][_0x4dafdd(0x226)](),this[_0x4dafdd(0x201)]&&this[_0x4dafdd(0x201)][_0x4dafdd(0x226)](),this[_0x4dafdd(0x19f)]&&this['_eventUnsubscribe']();}[_0x373e19(0x290)](){const _0x303768=_0x373e19;var _0x57d985;const {_docSkeleton:_0x3c9965,_document:_0x2dc762}=this,{color:_0xd0acc1,name:_0x39ece5,ranges:_0xf100ce}=this['_cursor'],_0x2710e0=_0x2dc762[_0x303768(0x17e)](),{docsLeft:_0x22a6c8,docsTop:_0xe34262}=_0x2710e0,_0x1e50aa=new E[(_0x303768(0x27b))](_0x2710e0,_0x3c9965);for(const {startOffset:_0x43da02,endOffset:_0x5e71e1,rangeType:_0xd3fe74,segmentId:_0x4ccd03,segmentPage:_0x155abf,collapsed:_0x5a8a7a,isActive:_0x40ea0b}of _0xf100ce){const _0xaf8f7a=_0x3c9965[_0x303768(0x105)](_0x43da02,!0x0,_0x4ccd03,_0x155abf);let _0x1efd9b=_0x3c9965[_0x303768(0x105)](_0x5e71e1,!0x0,_0x4ccd03,_0x155abf);if(_0x1efd9b==null&&(_0x1efd9b=_0x3c9965[_0x303768(0x105)](_0x5e71e1-0x1,!0x1,_0x4ccd03,_0x155abf)),_0x40ea0b){const {contentBoxPointGroup:_0x3f591c}=_0x1e50aa[_0x303768(0x1e8)](_0x1efd9b,_0x1efd9b);if(_0x3f591c[_0x303768(0x1a4)]===0x0)continue;this['_drawAnchor'](_0xd0acc1,_0x3f591c,_0x22a6c8,_0xe34262,_0x39ece5),this[_0x303768(0x19f)]=this['_handleHover']();}if(_0xaf8f7a&&_0x1efd9b){if(_0xd3fe74===a[_0x303768(0xbd)][_0x303768(0x1c7)]){const _0x4ea6d9=new E[(_0x303768(0xd3))](_0x2710e0,_0x3c9965),{pointGroup:_0x8dd74f}=(_0x57d985=_0x4ea6d9['getRangePointData'](_0xaf8f7a,_0x1efd9b))!=null?_0x57d985:{};if(_0x8dd74f==null||_0x8dd74f['length']===0x0)continue;this[_0x303768(0x10e)](_0xd0acc1,_0x8dd74f,_0x22a6c8,_0xe34262);}else{if(!_0x5a8a7a){const {borderBoxPointGroup:_0x2f3c48}=_0x1e50aa[_0x303768(0x1e8)](_0xaf8f7a,_0x1efd9b);if(_0x2f3c48[_0x303768(0x1a4)]===0x0)continue;this[_0x303768(0x185)](_0xd0acc1,_0x2f3c48,_0x22a6c8,_0xe34262);}}}}}[_0x373e19(0x22f)](_0x5703df,_0xcacd4e,_0x139ef7,_0x12fdc7,_0x34cc74){const _0x404398=_0x373e19,_0x116dd8=this['_getAnchorBounding'](_0xcacd4e),{left:_0x348f7f,top:_0x492311,height:_0x475295}=_0x116dd8,_0x4dc2bf=this[_0x404398(0x16b)](),_0x583bf1=Rt/_0x4dc2bf,_0x142046=new p[(_0x404398(0x275))](re+a[_0x404398(0x17c)](F),{'left':_0x348f7f+_0x139ef7-_0x583bf1,'top':_0x492311+_0x12fdc7,'height':_0x475295,'width':Tt,'fill':_0x5703df||p[_0x404398(0x32c)](a['COLORS'][_0x404398(0x18f)],0x0),'strokeWidth':_0x583bf1,'stroke':Dt,'evented':!0x0});this['_anchor']=_0x142046,this[_0x404398(0x135)][_0x404398(0x1ed)](_0x142046,E[_0x404398(0x167)]);const _0x34a7c1=new p[(_0x404398(0x275))](re+a['generateRandomId'](F),{'left':_0x348f7f+_0x139ef7-_0x583bf1,'top':_0x492311+_0x12fdc7-oe/0x2,'height':oe,'width':oe,'fill':_0x5703df||p[_0x404398(0x32c)](a[_0x404398(0xfc)][_0x404398(0x18f)],0x0),'strokeWidth':0x0,'stroke':_0x5703df||p[_0x404398(0x32c)](a['COLORS'][_0x404398(0x18f)],0x0),'evented':!0x1});this[_0x404398(0x159)]=_0x34a7c1,this[_0x404398(0x135)]['addObject'](_0x34a7c1,E[_0x404398(0x167)]);const _0x4bbda8=new ee(re+a[_0x404398(0x17c)](F),{'left':_0x348f7f+_0x139ef7-_0x583bf1,'top':_0x492311+_0x12fdc7-W,'text':_0x34cc74,'color':_0x5703df});this[_0x404398(0x273)]=_0x4bbda8,this[_0x404398(0x135)][_0x404398(0x1ed)](_0x4bbda8,E['TEXT_RANGE_LAYER_INDEX']),this['_hover']=!0x1;}['_handleHover'](){const _0x39bbe9=_0x373e19,_0x5c0005=this[_0x39bbe9(0x201)]['onPointerEnter$'][_0x39bbe9(0x2d5)](()=>{const _0x26ac04=_0x39bbe9;this[_0x26ac04(0x1b2)]=!0x0;}),_0x296d19=this['_anchor'][_0x39bbe9(0xe1)][_0x39bbe9(0x2d5)](()=>{const _0x13eb6b=_0x39bbe9;this[_0x13eb6b(0x131)]&&clearTimeout(this['_hideTimer']),this[_0x13eb6b(0x131)]=setTimeout(()=>{const _0x2d9412=_0x13eb6b;this[_0x2d9412(0x1b2)]=!0x1;},0x7d0);});return()=>{const _0x5865cb=_0x39bbe9;_0x5c0005[_0x5865cb(0x247)](),_0x296d19[_0x5865cb(0x247)]();};}[_0x373e19(0x185)](_0x5e55a8,_0xcd9e43,_0x4ecd3d,_0x11e5c1){const _0x7ec8b2=_0x373e19,_0x25168a=new a[(_0x7ec8b2(0x16c))](_0x5e55a8)[_0x7ec8b2(0x1c9)](0.2)['toRgbString'](),_0x348b6c=new p[(_0x7ec8b2(0x250))](bt+a[_0x7ec8b2(0x17c)](F),{'pointsGroup':_0xcd9e43,'fill':_0x25168a||p[_0x7ec8b2(0x32c)](a[_0x7ec8b2(0xfc)][_0x7ec8b2(0x18f)],0.2),'left':_0x4ecd3d,'top':_0x11e5c1,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x7ec8b2(0x2d0)][_0x7ec8b2(0xc2)](_0x348b6c),this[_0x7ec8b2(0x135)][_0x7ec8b2(0x1ed)](_0x348b6c,E['TEXT_RANGE_LAYER_INDEX']);}[_0x373e19(0x10e)](_0x5f1275,_0x1ac988,_0x1d51d2,_0x944a85){const _0x18a08e=_0x373e19,_0x2a569c=new a[(_0x18a08e(0x16c))](_0x5f1275)['setAlpha'](0.2)[_0x18a08e(0x325)](),_0x830e5b=new p[(_0x18a08e(0x250))](Ot+a[_0x18a08e(0x17c)](F),{'pointsGroup':_0x1ac988,'fill':_0x2a569c||p[_0x18a08e(0x32c)](a[_0x18a08e(0xfc)][_0x18a08e(0x18f)],0.2),'left':_0x1d51d2,'top':_0x944a85,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x830e5b),this['_scene'][_0x18a08e(0x1ed)](_0x830e5b,E['TEXT_RANGE_LAYER_INDEX']);}[_0x373e19(0x1e7)](_0x1242ac){const _0x3cc1ef=_0x1242ac[0x0],_0x37bad8=_0x3cc1ef[0x0],_0x405d37=_0x3cc1ef[0x2],{x:_0x4143b9,y:_0x30d4d7}=_0x37bad8,{x:_0x3f936c,y:_0x49e498}=_0x405d37;return{'left':_0x4143b9,'top':_0x30d4d7,'width':_0x3f936c-_0x4143b9,'height':_0x49e498-_0x30d4d7};}[_0x373e19(0x16b)](){const _0x45a8a1=_0x373e19,{scaleX:_0x37ac21,scaleY:_0xd1434a}=this['_scene'][_0x45a8a1(0x2bf)]();return Math[_0x45a8a1(0x24c)](_0x37ac21,_0xd1434a);}}var Ut=Object[_0x373e19(0x305)],Nt=(_0x21b81a,_0x43a4e6,_0x1e801d,_0x1662ac)=>{for(var _0x5a473b=_0x1662ac>0x1?void 0x0:_0x1662ac?Ut(_0x43a4e6,_0x1e801d):_0x43a4e6,_0x154923=_0x21b81a['length']-0x1,_0x4181b6;_0x154923>=0x0;_0x154923--)(_0x4181b6=_0x21b81a[_0x154923])&&(_0x5a473b=_0x4181b6(_0x5a473b)||_0x5a473b);return _0x5a473b;},X=(_0x2466f6,_0x4eeb68)=>(_0x111f6a,_0x43bcda)=>_0x4eeb68(_0x111f6a,_0x43bcda,_0x2466f6);let fe=class extends a[_0x373e19(0xf0)]{constructor(_0x1c9382,_0x5e0dca,_0x257e75,_0xabb585,_0x3e2d99){const _0x21dc5b=_0x373e19;super(),h(this,_0x21dc5b(0x292),[]),h(this,_0x21dc5b(0x327),[]),(this['_context']=_0x1c9382,this['_docSkeletonManagerService']=_0x5e0dca,this['_collabCursorController']=_0x257e75,this[_0x21dc5b(0x248)]=_0xabb585,this['_themeService']=_0x3e2d99,this[_0x21dc5b(0xbb)]());}[_0x373e19(0xbb)](){const _0x16f4aa=_0x373e19,_0x1377b7=this[_0x16f4aa(0x1a5)][_0x16f4aa(0xf7)],_0x4ec356=this[_0x16f4aa(0x1b4)];this['disposeWithMe'](d[_0x16f4aa(0x2ee)]([this['_collabCursorController'][_0x16f4aa(0x2f5)](_0x1377b7),this[_0x16f4aa(0x198)][_0x16f4aa(0x197)]])['pipe']($[_0x16f4aa(0x1e4)](([_0x3fd98c,_0x6fdb05])=>({'skeleton':_0x4ec356['getSkeleton'](),'cursors':[..._0x3fd98c[_0x16f4aa(0x133)]()][_0x16f4aa(0x1d8)](_0x33d059=>({..._0x33d059,'color':this[_0x16f4aa(0x198)]['getColorFromTheme'](_0x33d059['color'])}))})))[_0x16f4aa(0x145)](_0x2a685a=>{const _0x4af710=_0x16f4aa;if(this[_0x4af710(0xd4)](),_0x2a685a){const {skeleton:_0x101221,cursors:_0x3d4ea7}=_0x2a685a;this['_updateCollabCursors'](_0x101221,_0x3d4ea7);}})),this[_0x16f4aa(0x1c8)](),this[_0x16f4aa(0x16d)]();}[_0x373e19(0x24a)](_0x24a791,_0x5e2588){const _0x50e2e2=_0x373e19,{scene:_0x291437,mainComponent:_0x532a97}=this[_0x50e2e2(0x1a5)],_0x383ea8=_0x5e2588[_0x50e2e2(0x1e4)](_0xf2e192=>new Re(_0xf2e192,_0x291437,_0x24a791,_0x532a97));this[_0x50e2e2(0x292)]=_0x383ea8,this[_0x50e2e2(0x327)]=_0x5e2588;}[_0x373e19(0xb0)](){const _0x1266b7=_0x373e19;this[_0x1266b7(0xd4)]();const {scene:_0x4597bc,mainComponent:_0x2ce76c}=this['_context'],_0x3564c8=this[_0x1266b7(0x1b4)]['getSkeleton'](),_0x1b54bc=this[_0x1266b7(0x327)][_0x1266b7(0x1e4)](_0x13fe1a=>new Re(_0x13fe1a,_0x4597bc,_0x3564c8,_0x2ce76c));this[_0x1266b7(0x292)]=_0x1b54bc;}[_0x373e19(0xd4)](){const _0x1ba6f7=_0x373e19;this[_0x1ba6f7(0x292)][_0x1ba6f7(0x22a)](_0x5864b7=>_0x5864b7[_0x1ba6f7(0x226)]()),this[_0x1ba6f7(0x292)]=[];}['_initCommandExecutedListener'](){const _0x4eb847=_0x373e19,_0x415942=[E[_0x4eb847(0xfd)]['id']];this[_0x4eb847(0x13c)](this['_commandService']['onCommandExecuted'](_0x12b315=>{const _0x5dfb07=_0x4eb847;_0x415942[_0x5dfb07(0xeb)](_0x12b315['id'])&&_0x12b315['params'][_0x5dfb07(0xf7)]===this['_context'][_0x5dfb07(0xf7)]&&this['_refreshCollabCursors']();}));}[_0x373e19(0x1c8)](){const _0xbba4fa=_0x373e19;this['disposeWithMe'](a[_0xbba4fa(0x316)](this[_0xbba4fa(0x1a5)][_0xbba4fa(0x256)][_0xbba4fa(0x183)])[_0xbba4fa(0x1f8)]($[_0xbba4fa(0x243)](_0x3092f1=>_0x3092f1[_0xbba4fa(0x324)]===p['TRANSFORM_CHANGE_OBSERVABLE_TYPE']['resize']),$[_0xbba4fa(0x1f5)](0x10))[_0xbba4fa(0x145)](()=>{const _0x4b44cf=_0xbba4fa;this[_0x4b44cf(0xb0)]();}));}};fe=Nt([X(0x1,a['Inject'](Y[_0x373e19(0x139)])),X(0x2,a[_0x373e19(0x2ec)](x)),X(0x3,a[_0x373e19(0x1af)]),X(0x4,a['Inject'](a[_0x373e19(0x1e0)]))],fe);const Mt=0x1,Lt=1.5;class $e extends p[_0x373e19(0x1e5)]{constructor(_0x2c7f83,_0xaf6fa1){const _0x4915c7=_0x373e19;super(_0x2c7f83,_0xaf6fa1),h(this,_0x4915c7(0x2c3)),h(this,'_hovered',!0x1),h(this,_0x4915c7(0xcf)),h(this,_0x4915c7(0x17d),''),h(this,_0x4915c7(0xd2),'top'),h(this,_0x4915c7(0x264)),(_0xaf6fa1&&this[_0x4915c7(0x289)](_0xaf6fa1),this[_0x4915c7(0x279)][_0x4915c7(0x2d5)](()=>this[_0x4915c7(0x289)]({'hovered':!0x0})),this[_0x4915c7(0xe1)][_0x4915c7(0x2d5)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x373e19(0x289)](_0x463156){const _0x29dd27=_0x373e19;var _0x465679,_0x517a07,_0xdc2c7,_0x78915a,_0x1b5411,_0x536c0f;this[_0x29dd27(0x2c3)]=(_0x465679=_0x463156[_0x29dd27(0x1ea)])!=null?_0x465679:this[_0x29dd27(0x2c3)],this[_0x29dd27(0x1d1)]=(_0x517a07=_0x463156[_0x29dd27(0x112)])!=null?_0x517a07:this[_0x29dd27(0x1d1)],this[_0x29dd27(0xcf)]=(_0xdc2c7=_0x463156[_0x29dd27(0x225)])!=null?_0xdc2c7:this[_0x29dd27(0xcf)],this[_0x29dd27(0x17d)]=(_0x78915a=_0x463156[_0x29dd27(0x1ec)])!=null?_0x78915a:this['_name'],this[_0x29dd27(0xd2)]=(_0x1b5411=_0x463156[_0x29dd27(0x272)])!=null?_0x1b5411:this[_0x29dd27(0xd2)],this[_0x29dd27(0x264)]=(_0x536c0f=_0x463156[_0x29dd27(0x213)])!=null?_0x536c0f:this[_0x29dd27(0x264)],this[_0x29dd27(0x2ab)]({'width':_0x463156['width'],'height':_0x463156[_0x29dd27(0xb8)]});}[_0x373e19(0x180)](_0x2e047f){const _0x3e260d=_0x373e19,{row:_0x1b96de,column:_0x20ec24}=_0x2e047f;if(_0x1b96de>=this[_0x3e260d(0xcf)][_0x3e260d(0x2b4)]&&_0x1b96de<=this[_0x3e260d(0xcf)][_0x3e260d(0x122)]&&_0x20ec24>=this[_0x3e260d(0xcf)][_0x3e260d(0x1f4)]&&_0x20ec24<=this[_0x3e260d(0xcf)][_0x3e260d(0xb2)]){this[_0x3e260d(0x289)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x373e19(0x11a)](_0x2bb23b){return!0x1;}[_0x373e19(0x22c)](_0x5f0bfb){const _0x8bcab8=_0x373e19;p['Rect']['drawWith'](_0x5f0bfb,{'width':this[_0x8bcab8(0x173)],'height':this[_0x8bcab8(0xb8)],'strokeWidth':Lt,'stroke':this[_0x8bcab8(0x2c3)],'evented':!0x1,'fill':this[_0x8bcab8(0x264)]}),this[_0x8bcab8(0x1d1)]&&(_0x5f0bfb['save'](),_0x5f0bfb[_0x8bcab8(0x2b2)](0x1,0x0,0x0,0x1,this[_0x8bcab8(0x173)],this[_0x8bcab8(0xd2)]===_0x8bcab8(0x17f)?0x0:-W),ee['drawWith'](_0x5f0bfb,{'text':this[_0x8bcab8(0x17d)],'color':this[_0x8bcab8(0x2c3)]}),_0x5f0bfb['restore']());}}var Pt=Object[_0x373e19(0x305)],wt=(_0x53ecb8,_0x19d1ea,_0x7527ae,_0xd56cd)=>{const _0x570e9a=_0x373e19;for(var _0x549ac1=_0xd56cd>0x1?void 0x0:_0xd56cd?Pt(_0x19d1ea,_0x7527ae):_0x19d1ea,_0xc9faff=_0x53ecb8[_0x570e9a(0x1a4)]-0x1,_0x7faea5;_0xc9faff>=0x0;_0xc9faff--)(_0x7faea5=_0x53ecb8[_0xc9faff])&&(_0x549ac1=_0x7faea5(_0x549ac1)||_0x549ac1);return _0x549ac1;},ae=(_0x273ba0,_0x5e1d5e)=>(_0x5e3e6e,_0x58a411)=>_0x5e1d5e(_0x5e3e6e,_0x58a411,_0x273ba0);const At=0x1389;let Ie=class extends a['RxDisposable']{constructor(_0x381696,_0x805519,_0x335fe6,_0x511795){const _0x3d2de8=_0x373e19;super(),h(this,_0x3d2de8(0x327),new Set()),h(this,_0x3d2de8(0x162),null),(this[_0x3d2de8(0x1a5)]=_0x381696,this[_0x3d2de8(0x18b)]=_0x805519,this[_0x3d2de8(0x31d)]=_0x335fe6,this[_0x3d2de8(0x198)]=_0x511795,this['_init']());}[_0x373e19(0xbb)](){const _0x1894e5=_0x373e19;this['_sheetSkeletonManagerService'][_0x1894e5(0x21b)]['pipe']($[_0x1894e5(0x1b9)](this[_0x1894e5(0x2e1)]),$[_0x1894e5(0xcc)](_0x366b60=>{const _0x404a1c=_0x1894e5;if(_0x366b60){const _0x3225d2=_0x366b60[_0x404a1c(0x15c)];return d[_0x404a1c(0x2ee)](this[_0x404a1c(0x31d)][_0x404a1c(0x2f5)](this['_context'][_0x404a1c(0xf7)]),this[_0x404a1c(0x198)][_0x404a1c(0x197)])[_0x404a1c(0x1f8)]($[_0x404a1c(0x1e4)](([_0x3ccb61,_0x504a9c])=>{const _0x36ffbe=_0x404a1c,_0x1bfc17=new Map();return _0x3ccb61[_0x36ffbe(0x22a)]((_0x1311e9,_0x39cf62)=>{const _0x383401=_0x36ffbe;if(_0x1311e9[_0x383401(0x246)]===_0x3225d2){const _0x51b070={..._0x1311e9};_0x51b070['color']=this[_0x383401(0x198)]['getColorFromTheme'](_0x1311e9[_0x383401(0x1ea)]),_0x1bfc17[_0x383401(0x2a9)](_0x39cf62,_0x51b070);}}),{'skeleton':_0x366b60,'cursors':_0x1bfc17};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x1894e5(0x145)](({skeleton:_0x1a73cd,cursors:_0x528586})=>{const _0x2139cb=_0x1894e5;this[_0x2139cb(0xd4)](),_0x1a73cd&&this['_updateCollabCursors'](_0x1a73cd,_0x528586);}),this['_sheetSkeletonManagerService'][_0x1894e5(0x21b)][_0x1894e5(0x145)](_0x332295=>{const _0x48697f=_0x1894e5;if(_0x332295==null)return;const {skeleton:_0x9cce87}=_0x332295,{scene:_0x42fb42}=this[_0x48697f(0x1a5)];_0x42fb42[_0x48697f(0x1d7)][_0x48697f(0x2d5)](a[_0x48697f(0x1dc)](_0xff3d3a=>{const _0x42bfd1=_0x48697f;var _0x4679e9,_0x4732fe;const {offsetX:_0x4c71ce,offsetY:_0x339f8b}=_0xff3d3a,{x:_0x2e11d5,y:_0x586867}=_0x42fb42[_0x42bfd1(0x282)](p[_0x42bfd1(0x2fa)][_0x42bfd1(0xce)]([_0x4c71ce,_0x339f8b])),{scaleX:_0x2829c6,scaleY:_0x2850e1}=_0x42fb42[_0x42bfd1(0x2bf)](),_0x2cec99=_0x42fb42['getViewport'](p[_0x42bfd1(0x192)][_0x42bfd1(0xfa)]),_0x2d6c9b=_0x42fb42['getVpScrollXYInfoByPosToVp'](p['Vector2'][_0x42bfd1(0xce)]([_0x2e11d5,_0x586867]),_0x2cec99),_0x179926=_0x9cce87['getCellPositionByOffset'](_0x4c71ce,_0x339f8b,_0x2829c6,_0x2850e1,_0x2d6c9b);((_0x4679e9=this['_lastPointer'])==null?void 0x0:_0x4679e9[_0x42bfd1(0x224)])===_0x179926[_0x42bfd1(0x224)]&&((_0x4732fe=this[_0x42bfd1(0x162)])==null?void 0x0:_0x4732fe[_0x42bfd1(0x128)])===_0x179926[_0x42bfd1(0x128)]||this[_0x42bfd1(0x327)][_0x42bfd1(0x22a)](_0x1e1bda=>{const _0x2c83fb=_0x42bfd1;_0x1e1bda[_0x2c83fb(0x180)](_0x179926);});},0x64));});}[_0x373e19(0x24a)](_0x1182e2,_0x3a894b){const _0x596c52=_0x373e19;var _0x32419e;const _0x1438be=(_0x32419e=this[_0x596c52(0x18b)][_0x596c52(0x1a0)]())==null?void 0x0:_0x32419e[_0x596c52(0x20a)];if(!_0x1438be)return;const _0x38e8ff=this['_getSheetObject']();if(!_0x38e8ff)return;this['_cursors']['forEach'](_0x5ccd2a=>{const _0x57ba17=_0x596c52;_0x5ccd2a[_0x57ba17(0x32d)]();});const {scene:_0x31dffc}=_0x38e8ff,_0x4b0593=yt(Array[_0x596c52(0x2e3)](_0x3a894b[_0x596c52(0x133)]()))['map'](_0x72ca3f=>{const _0x35b718=_0x596c52,{color:_0x421eb0,range:_0x1f7538,name:_0x609e8b,selection:_0x41ba0c,sheetID:_0x182d99}=_0x72ca3f,{startColumn:_0x3e26e5,startRow:_0x5eafe8,endColumn:_0x2705e5,endRow:_0x2da02a}=_0x1f7538,_0x33cd37=G[_0x35b718(0x219)](_0x5eafe8,_0x3e26e5,_0x31dffc,_0x1438be),_0x4fcdfb=G['getCoordByCell'](_0x2da02a,_0x2705e5,_0x31dffc,_0x1438be),{columnHeaderHeightAndMarginTop:_0x2d05b5}=_0x1438be,{startX:_0xfe0058,startY:_0x4f8cf4}=_0x33cd37,{endX:_0x44aed3,endY:_0xcc5482}=_0x4fcdfb,_0x316e35=_0x44aed3-_0xfe0058,_0x696fb2=_0xcc5482-_0x4f8cf4,_0x1b6ecb={'labelPosition':_0x4f8cf4-_0x2d05b5>=W?_0x35b718(0x2d2):'bottom','sheetID':_0x182d99,'range':_0x1f7538,'color':_0x421eb0,'name':_0x609e8b,'selection':_0x41ba0c,'left':_0xfe0058,'top':_0x4f8cf4,'width':_0x316e35,'height':_0x696fb2,'evented':!0x1,'zIndex':At};return new $e(_0x609e8b,_0x1b6ecb);});_0x31dffc[_0x596c52(0x153)](_0x4b0593,Mt),this['_cursors']=new Set(_0x4b0593);}[_0x373e19(0xd4)](){const _0x22333f=_0x373e19;var _0x3a620a;(_0x3a620a=this[_0x22333f(0x327)])==null||_0x3a620a['forEach'](_0x3db9d0=>_0x3db9d0['dispose']());}[_0x373e19(0x295)](){const _0xd6b26d=_0x373e19;return G['getSheetObject'](this[_0xd6b26d(0x1a5)][_0xd6b26d(0x328)],this[_0xd6b26d(0x1a5)]);}};Ie=wt([ae(0x1,a[_0x373e19(0x2ec)](G[_0x373e19(0x120)])),ae(0x2,a['Inject'](x)),ae(0x3,a['Inject'](a[_0x373e19(0x1e0)]))],Ie);function yt(_0x7b6628){const _0xd361=_0x373e19,_0x1b8334=new Map();return _0x7b6628[_0xd361(0x22a)](_0x1ed6d6=>{const _0x32df9f=_0xd361;if(_0x1b8334['has'](_0x1ed6d6[_0x32df9f(0x25c)])){const _0x9196df=_0x1b8334[_0x32df9f(0x177)](_0x1ed6d6['selection']);_0x9196df['name']+=',\x20'+_0x1ed6d6[_0x32df9f(0x1ec)];}else _0x1b8334['set'](_0x1ed6d6['selection'],_0x1ed6d6);}),Array[_0xd361(0x2e3)](_0x1b8334[_0xd361(0x133)]());}var $t=Object[_0x373e19(0x305)],xt=(_0x904ed3,_0x4e4c71,_0x365bfe,_0x3a64d0)=>{for(var _0x182199=_0x3a64d0>0x1?void 0x0:_0x3a64d0?$t(_0x4e4c71,_0x365bfe):_0x4e4c71,_0x5c69a3=_0x904ed3['length']-0x1,_0x9dd832;_0x5c69a3>=0x0;_0x5c69a3--)(_0x9dd832=_0x904ed3[_0x5c69a3])&&(_0x182199=_0x9dd832(_0x182199)||_0x182199);return _0x182199;},y=(_0x2e3420,_0x1b504f)=>(_0x1c4269,_0x19f66e)=>_0x1b504f(_0x1c4269,_0x19f66e,_0x2e3420);let q=class extends a[_0x373e19(0x1e2)]{constructor(_0xba026c,_0x5408e8,_0x15afc5,_0xa14de,_0x17980c,_0x2abbd8){const _0x2eae8a=_0x373e19;super(),this[_0x2eae8a(0x142)]=_0xba026c,this[_0x2eae8a(0x11d)]=_0x5408e8,this[_0x2eae8a(0x24e)]=_0x15afc5,this[_0x2eae8a(0x14c)]=_0xa14de,this[_0x2eae8a(0x313)]=_0x17980c,this['_localeService']=_0x2abbd8,this[_0x2eae8a(0x274)](),this[_0x2eae8a(0x255)]();}['_setupBeforeClosingHandler'](){const _0x20db53=_0x373e19;this[_0x20db53(0x13c)](this[_0x20db53(0x142)][_0x20db53(0xdd)](()=>{const _0x5641f4=_0x20db53;if(this['_localCacheService']['saveTaskMap'][_0x5641f4(0x1c0)])return this[_0x5641f4(0x2cf)]['t'](_0x5641f4(0xca));}));}[_0x373e19(0x255)](){const _0x3114ed=_0x373e19;this[_0x3114ed(0x13c)](this[_0x3114ed(0x24e)][_0x3114ed(0x195)][_0x3114ed(0x145)](_0x361415=>{const _0x574998=_0x3114ed;_0x361415['id']===u[_0x574998(0x2c1)][_0x574998(0xb5)]&&this[_0x574998(0x14c)][_0x574998(0xed)]({'type':D['MessageType']['Warning'],'content':this[_0x574998(0x2cf)]['t'](_0x574998(0x204))}),_0x361415['id']===u[_0x574998(0x2c1)][_0x574998(0x284)]&&this[_0x574998(0x14c)][_0x574998(0xed)]({'type':D[_0x574998(0x1fa)][_0x574998(0x30c)],'content':this['_localeService']['t']('collaboration.closeRoom')}),_0x361415['id']===u[_0x574998(0x2c1)][_0x574998(0x26e)]&&this['_notificationService'][_0x574998(0xed)]({'title':this[_0x574998(0x2cf)]['t'](_0x574998(0x154)),'content':this[_0x574998(0x2cf)]['t'](_0x574998(0x156)),'type':'error','duration':0x0}),_0x361415['id']===u[_0x574998(0x2c1)][_0x574998(0x1cd)]&&this[_0x574998(0x14c)][_0x574998(0xed)]({'type':D[_0x574998(0x1fa)][_0x574998(0x245)],'content':this[_0x574998(0x2cf)]['t'](_0x574998(0x239))+'('+_0x361415[_0x574998(0x13f)]+')'}),_0x361415['id']===u[_0x574998(0x2c1)]['JOIN_ROOM_FAILED']&&this[_0x574998(0x14c)][_0x574998(0xed)]({'type':D['MessageType'][_0x574998(0x30c)],'content':this[_0x574998(0x2cf)]['t'](_0x361415[_0x574998(0x13f)]||'')}),_0x361415['id']===u['CollaborationUIEventId']['SOCKET_FAILED_RETRY']&&this[_0x574998(0x14c)][_0x574998(0xed)]({'type':D[_0x574998(0x1fa)]['Warning'],'content':this[_0x574998(0x2cf)]['t']('session.will-retry')}),_0x361415['id']===u['CollaborationUIEventId'][_0x574998(0x222)]&&this['_messageService'][_0x574998(0xed)]({'type':D[_0x574998(0x1fa)][_0x574998(0x245)],'content':this[_0x574998(0x2cf)]['t'](_0x574998(0x1f7))}),_0x361415['id']===u['CollaborationUIEventId'][_0x574998(0x1c5)]&&this[_0x574998(0x14c)][_0x574998(0xed)]({'type':D['MessageType']['Error'],'content':this['_localeService']['t'](_0x574998(0x2f7))});}));}};q=xt([y(0x0,O['IBeforeCloseService']),y(0x1,u[_0x373e19(0x15f)]),y(0x2,a[_0x373e19(0x2ec)](u[_0x373e19(0x1bc)])),y(0x3,O[_0x373e19(0x2e0)]),y(0x4,O[_0x373e19(0x317)]),y(0x5,a[_0x373e19(0x2ec)](a[_0x373e19(0x230)]))],q);const Bt=_0x373e19(0x1da),De={};var jt=Object[_0x373e19(0x305)],kt=(_0x43d030,_0x4aa180,_0x371fc6,_0x3a0192)=>{const _0x2e8c9a=_0x373e19;for(var _0x30472b=_0x3a0192>0x1?void 0x0:_0x3a0192?jt(_0x4aa180,_0x371fc6):_0x4aa180,_0x18ac64=_0x43d030[_0x2e8c9a(0x1a4)]-0x1,_0x5c957b;_0x18ac64>=0x0;_0x18ac64--)(_0x5c957b=_0x43d030[_0x18ac64])&&(_0x30472b=_0x5c957b(_0x30472b)||_0x30472b);return _0x30472b;},Ue=(_0x5606c1,_0x46afa2)=>(_0x134b9,_0x37cc5e)=>_0x46afa2(_0x134b9,_0x37cc5e,_0x5606c1);let z=class{constructor(_0x37f1f4,_0x364d1e){const _0x371d28=_0x373e19;this[_0x371d28(0x116)]=_0x37f1f4,this[_0x371d28(0x238)]=_0x364d1e;}['transformIMECache'](_0x36a27f){const _0x5a7c88=_0x373e19;this[_0x5a7c88(0x1c4)](_0x36a27f),this['_transformPreviousActiveRange'](_0x36a27f);}['transformRemoteChangeset'](_0x20d9a5){const _0x52cec8=_0x373e19,{unitID:_0x4cfcdb}=_0x20d9a5,_0x11aaba=this[_0x52cec8(0x238)][_0x52cec8(0x106)](_0x4cfcdb)[_0x52cec8(0x296)](E['DocIMEInputManagerService']),{redoCache:_0x5ce51d}=_0x11aaba[_0x52cec8(0x20d)]();if(_0x5ce51d[_0x52cec8(0x1a4)]===0x0)return _0x20d9a5;let _0x3d46c2=a[_0x52cec8(0x306)]['deepClone'](_0x20d9a5[_0x52cec8(0x286)][0x0]);for(let _0x5b6656=0x0;_0x5b6656<_0x5ce51d['length'];_0x5b6656++){const _0x5091e5={'id':_0x52cec8(0xc1),'params':{..._0x5ce51d[_0x5b6656]}},_0x543fa3=this[_0x52cec8(0x116)][_0x52cec8(0x102)](_0x3d46c2,_0x5091e5,!0x1);if(m[_0x52cec8(0x19a)](_0x543fa3))throw _0x543fa3[_0x52cec8(0x111)];_0x3d46c2=_0x543fa3[_0x52cec8(0x320)];}return{...a['Tools'][_0x52cec8(0x27e)](_0x20d9a5),'mutations':[_0x3d46c2]};}[_0x373e19(0x1c4)](_0x4e944e){const _0x44d54a=_0x373e19,{unitID:_0x518188}=_0x4e944e,_0x3f4329=this[_0x44d54a(0x238)][_0x44d54a(0x106)](_0x518188)[_0x44d54a(0x296)](E[_0x44d54a(0xb9)]),{undoCache:_0x40481d,redoCache:_0x8ccf92}=_0x3f4329[_0x44d54a(0x20d)]();if(_0x40481d['length']===0x0||_0x8ccf92[_0x44d54a(0x1a4)]===0x0)return;const _0x4fc562=[],_0x4b9e56=[];let _0x20f0a5=a[_0x44d54a(0x306)][_0x44d54a(0x27e)](_0x4e944e[_0x44d54a(0x286)][0x0]),_0x27e5e8=a[_0x44d54a(0x306)][_0x44d54a(0x27e)](_0x4e944e[_0x44d54a(0x286)][0x0]);for(let _0x406dab=_0x40481d['length']-0x1;_0x406dab>=0x0;_0x406dab--){const _0x3a10b6={'id':_0x44d54a(0xc1),'params':{..._0x40481d[_0x406dab]}},_0x3bd72e={'id':'doc.mutation.rich-text-editing','params':{..._0x8ccf92[_0x406dab]}},_0x2871cc=this['_transformService']['transformMutation'](_0x20f0a5,_0x3a10b6,!0x1),_0x11d8a7=this[_0x44d54a(0x116)][_0x44d54a(0x102)](_0x27e5e8,_0x3bd72e,!0x1);if(m[_0x44d54a(0x19a)](_0x2871cc))throw _0x2871cc[_0x44d54a(0x111)];if(m[_0x44d54a(0x19a)](_0x11d8a7))throw _0x11d8a7['error'];_0x4fc562['unshift'](_0x2871cc['m2Prime'][_0x44d54a(0x182)]),_0x4b9e56['unshift'](_0x11d8a7['m2Prime'][_0x44d54a(0x182)]),_0x20f0a5=_0x2871cc['m1Prime'],_0x27e5e8=_0x11d8a7[_0x44d54a(0x320)];}_0x3f4329['setUndoRedoMutationParamsCache']({'undoCache':_0x4fc562,'redoCache':_0x4b9e56});}['_transformPreviousActiveRange'](_0x39c464){const _0x30874a=_0x373e19,{unitID:_0x4c8e49}=_0x39c464,_0x1816b4=this[_0x30874a(0x238)]['getRenderById'](_0x4c8e49)[_0x30874a(0x296)](E[_0x30874a(0xb9)]),_0x2d5795=_0x1816b4[_0x30874a(0x17b)]();if(_0x2d5795==null)return;const _0x4200a7=[{'id':_0x30874a(0xc1),'params':{'unitId':_0x39c464[_0x30874a(0x1ef)],'actions':null,'textRanges':[_0x2d5795]}}],_0x5d428b=this[_0x30874a(0x116)]['transformMutationsWithChangeset'](_0x39c464,_0x4200a7);if(!m[_0x30874a(0x1ee)](_0x5d428b))throw _0x5d428b[_0x30874a(0x111)];const _0x435309=_0x5d428b[_0x30874a(0x235)][0x0][_0x30874a(0x182)][_0x30874a(0x2bc)];Array[_0x30874a(0x297)](_0x435309)&&_0x435309[_0x30874a(0x1a4)]&&_0x1816b4['setActiveRange'](_0x435309[0x0]);}};z=kt([Ue(0x0,m[_0x373e19(0x101)]),Ue(0x1,p['IRenderManagerService'])],z);var Ft=Object['getOwnPropertyDescriptor'],Ht=(_0x37846e,_0x13f111,_0x24bd02,_0x36a7df)=>{const _0x126efb=_0x373e19;for(var _0xf2def9=_0x36a7df>0x1?void 0x0:_0x36a7df?Ft(_0x13f111,_0x24bd02):_0x13f111,_0x513357=_0x37846e[_0x126efb(0x1a4)]-0x1,_0x175617;_0x513357>=0x0;_0x513357--)(_0x175617=_0x37846e[_0x513357])&&(_0xf2def9=_0x175617(_0xf2def9)||_0xf2def9);return _0xf2def9;},ce=(_0x23c08a,_0x53939a)=>(_0x4bf799,_0x2d1fa2)=>_0x53939a(_0x4bf799,_0x2d1fa2,_0x23c08a);let J=class{constructor(_0xa71a33,_0x2ba010,_0x4d43b6){const _0xca91b9=_0x373e19;this[_0xca91b9(0x20b)]=_0xa71a33,this[_0xca91b9(0x116)]=_0x2ba010,this[_0xca91b9(0x312)]=_0x4d43b6;}['transformStateCache'](_0x1bd3ac){const _0x5efb77=_0x373e19;this[_0x5efb77(0x202)](_0x1bd3ac);}[_0x373e19(0x165)](_0x3491ff){const _0x322f2d=_0x373e19,{unitID:_0x294e17}=_0x3491ff,{collaboration:_0x145f39}=this[_0x322f2d(0x312)]['getStateCache'](_0x294e17);if(_0x145f39['length']===0x0)return _0x3491ff;let _0x4b7534=a[_0x322f2d(0x306)][_0x322f2d(0x27e)](_0x3491ff[_0x322f2d(0x286)][0x0]);for(let _0x1ba169=0x0;_0x1ba169<_0x145f39['length'];_0x1ba169++){const _0x378257={'id':_0x322f2d(0xc1),'params':{'unitId':_0x145f39[_0x1ba169][_0x322f2d(0xf7)],..._0x145f39[_0x1ba169][_0x322f2d(0x22e)]}},_0x32a563=this['_transformService'][_0x322f2d(0x102)](_0x4b7534,_0x378257,!0x1);if(m[_0x322f2d(0x19a)](_0x32a563))throw _0x32a563[_0x322f2d(0x111)];_0x4b7534=_0x32a563[_0x322f2d(0x320)];}return{...a[_0x322f2d(0x306)][_0x322f2d(0x27e)](_0x3491ff),'mutations':[_0x4b7534]};}[_0x373e19(0x202)](_0x3dd5a1){const _0x23fca6=_0x373e19,{unitID:_0x44bcbe}=_0x3dd5a1,{history:_0x3dd6f8,collaboration:_0x2408d1}=this[_0x23fca6(0x312)][_0x23fca6(0x1d4)](_0x44bcbe);if(_0x3dd6f8['length']===0x0&&_0x2408d1[_0x23fca6(0x1a4)]===0x0)return;const _0x1e7bd2=[],_0x3dd1c9=[];let _0x499865=a[_0x23fca6(0x306)][_0x23fca6(0x27e)](_0x3dd5a1[_0x23fca6(0x286)][0x0]),_0x2f319d=a[_0x23fca6(0x306)][_0x23fca6(0x27e)](_0x3dd5a1['mutations'][0x0]);for(let _0x312379=_0x3dd6f8[_0x23fca6(0x1a4)]-0x1;_0x312379>=0x0;_0x312379--){const _0x1faee3={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3dd6f8[_0x312379][_0x23fca6(0xf7)],..._0x3dd6f8[_0x312379]['undoState']}},_0x50f9dc={'id':_0x23fca6(0xc1),'params':{'unitId':_0x3dd6f8[_0x312379][_0x23fca6(0xf7)],..._0x3dd6f8[_0x312379][_0x23fca6(0x22e)]}},_0x395d05=this[_0x23fca6(0x116)][_0x23fca6(0x102)](_0x499865,_0x1faee3,!0x1),_0x311071=this[_0x23fca6(0x116)][_0x23fca6(0x102)](_0x2f319d,_0x50f9dc,!0x1);if(m[_0x23fca6(0x19a)](_0x395d05))throw _0x395d05['error'];if(m[_0x23fca6(0x19a)](_0x311071))throw _0x311071[_0x23fca6(0x111)];_0x1e7bd2[_0x23fca6(0xc6)]({..._0x3dd6f8[_0x312379],'undoState':_0x395d05[_0x23fca6(0x235)][_0x23fca6(0x182)],'redoState':_0x311071[_0x23fca6(0x235)]['params']}),_0x499865=_0x395d05[_0x23fca6(0x320)],_0x2f319d=_0x311071[_0x23fca6(0x320)];}_0x499865=a['Tools'][_0x23fca6(0x27e)](_0x3dd5a1[_0x23fca6(0x286)][0x0]),_0x2f319d=a[_0x23fca6(0x306)][_0x23fca6(0x27e)](_0x3dd5a1['mutations'][0x0]);for(let _0x22305d=_0x2408d1['length']-0x1;_0x22305d>=0x0;_0x22305d--){const _0x3dba9f={'id':_0x23fca6(0xc1),'params':{'unitId':_0x2408d1[_0x22305d][_0x23fca6(0xf7)],..._0x2408d1[_0x22305d][_0x23fca6(0x1cb)]}},_0x2a92eb={'id':_0x23fca6(0xc1),'params':{'unitId':_0x2408d1[_0x22305d][_0x23fca6(0xf7)],..._0x2408d1[_0x22305d][_0x23fca6(0x22e)]}},_0x1ccd95=this[_0x23fca6(0x116)][_0x23fca6(0x102)](_0x499865,_0x3dba9f,!0x1),_0x478646=this[_0x23fca6(0x116)][_0x23fca6(0x102)](_0x2f319d,_0x2a92eb,!0x1);if(m[_0x23fca6(0x19a)](_0x1ccd95))throw _0x1ccd95[_0x23fca6(0x111)];if(m[_0x23fca6(0x19a)](_0x478646))throw _0x478646[_0x23fca6(0x111)];_0x3dd1c9[_0x23fca6(0xc6)]({..._0x2408d1[_0x22305d],'undoState':_0x1ccd95[_0x23fca6(0x235)][_0x23fca6(0x182)],'redoState':_0x478646[_0x23fca6(0x235)][_0x23fca6(0x182)]}),_0x499865=_0x1ccd95[_0x23fca6(0x320)],_0x2f319d=_0x478646[_0x23fca6(0x320)];}this[_0x23fca6(0x312)][_0x23fca6(0x2e7)](_0x44bcbe,{'history':_0x1e7bd2,'collaboration':_0x3dd1c9});}};J=Ht([ce(0x0,a['Inject'](a[_0x373e19(0xc4)])),ce(0x1,m['ITransformService']),ce(0x2,a[_0x373e19(0x2ec)](E['DocStateChangeManagerService']))],J);var Yt=Object[_0x373e19(0x305)],Wt=(_0x16c3c9,_0x21406c,_0x52b7a4,_0x32afef)=>{const _0x51ef35=_0x373e19;for(var _0x14e042=_0x32afef>0x1?void 0x0:_0x32afef?Yt(_0x21406c,_0x52b7a4):_0x21406c,_0x3de70d=_0x16c3c9[_0x51ef35(0x1a4)]-0x1,_0x3b6512;_0x3de70d>=0x0;_0x3de70d--)(_0x3b6512=_0x16c3c9[_0x3de70d])&&(_0x14e042=_0x3b6512(_0x14e042)||_0x14e042);return _0x14e042;},Ne=(_0x5a4a5f,_0x2657d4)=>(_0x2b3e45,_0x581b33)=>_0x2657d4(_0x2b3e45,_0x581b33,_0x5a4a5f);let Z=class{constructor(_0x3a6985,_0x161551){const _0x1e2cfc=_0x373e19;this[_0x1e2cfc(0x20b)]=_0x3a6985,this[_0x1e2cfc(0x116)]=_0x161551;}[_0x373e19(0xef)](_0x11f4c9){const _0xb65bdf=_0x373e19;var _0x2334a8;const _0x3f0927=this[_0xb65bdf(0x20b)][_0xb65bdf(0x177)](Y['DocSelectionManagerService']),_0xba3d61=(_0x2334a8=_0x3f0927[_0xb65bdf(0x288)]())!=null?_0x2334a8:[];if(_0xba3d61[_0xb65bdf(0x1a4)]===0x0)return;const _0x10fb58=_0x11f4c9['unitID'],_0x5c110d=[{'id':_0xb65bdf(0xc1),'params':{'unitId':_0x10fb58,'actions':null,'textRanges':_0xba3d61}}],_0xa19f1f=this[_0xb65bdf(0x116)][_0xb65bdf(0x12c)](_0x11f4c9,_0x5c110d);if(!m[_0xb65bdf(0x1ee)](_0xa19f1f))throw _0xa19f1f[_0xb65bdf(0x111)];const _0x4f76e6=_0xa19f1f['m2Prime'][0x0][_0xb65bdf(0x182)][_0xb65bdf(0x2bc)];Array[_0xb65bdf(0x297)](_0x4f76e6)&&_0x4f76e6[_0xb65bdf(0x1a4)]&&_0x3f0927[_0xb65bdf(0x26a)](_0x4f76e6,{'unitId':_0x10fb58,'subUnitId':_0x10fb58},!0x1);}};Z=Wt([Ne(0x0,a['Inject'](a[_0x373e19(0xc4)])),Ne(0x1,m[_0x373e19(0x101)])],Z);var Vt=Object['getOwnPropertyDescriptor'],Xt=(_0x5155d5,_0x20e920,_0x509a98,_0x4516cf)=>{const _0x44abad=_0x373e19;for(var _0x44131d=_0x4516cf>0x1?void 0x0:_0x4516cf?Vt(_0x20e920,_0x509a98):_0x20e920,_0x575dd8=_0x5155d5[_0x44abad(0x1a4)]-0x1,_0x42105e;_0x575dd8>=0x0;_0x575dd8--)(_0x42105e=_0x5155d5[_0x575dd8])&&(_0x44131d=_0x42105e(_0x44131d)||_0x44131d);return _0x44131d;},N=(_0x350864,_0x270f13)=>(_0x5abc58,_0x4fd808)=>_0x270f13(_0x5abc58,_0x4fd808,_0x350864);let Q=class extends a[_0x373e19(0x1e2)]{constructor(_0x5d7d27,_0x402e6f,_0x18a4e6,_0x1aae6e,_0x4de27e,_0x7cec61,_0x316c2f,_0x5b983b){const _0x428586=_0x373e19;super(),h(this,_0x428586(0x2ca),new d['BehaviorSubject'](u['CollaborationStatus'][_0x428586(0x161)])),(this[_0x428586(0x312)]=_0x5d7d27,this[_0x428586(0xee)]=_0x402e6f,this[_0x428586(0x14f)]=_0x18a4e6,this[_0x428586(0x10f)]=_0x1aae6e,this['_docTransformSelectionsService']=_0x4de27e,this[_0x428586(0x18e)]=_0x7cec61,this['_messageService']=_0x316c2f,this[_0x428586(0x2cf)]=_0x5b983b,this[_0x428586(0x2ff)]());}['_initEntityListener'](){const _0x323fbb=_0x373e19;this[_0x323fbb(0x13c)](this['_collaborationController'][_0x323fbb(0xf4)][_0x323fbb(0x145)](_0x44fe79=>{const _0x40caf4=_0x323fbb,_0x43b8ff=this[_0x40caf4(0x312)][_0x40caf4(0x280)][_0x40caf4(0x145)](_0x1b6436=>{const _0x42a212=_0x40caf4;if(_0x1b6436==null)return;const {unitId:_0x2b5830,redoState:_0x31e5fa,commandId:_0x11dd18}=_0x1b6436;if(_0x2b5830!==_0x44fe79[_0x42a212(0x1ef)])return;const _0x486069={'id':_0x11dd18,'type':a[_0x42a212(0x27f)][_0x42a212(0x130)],'params':{'unitId':_0x2b5830,'actions':_0x31e5fa[_0x42a212(0x211)],'textRanges':null}};_0x44fe79['onLocalMutation'](_0x486069);});if(_0x44fe79[_0x40caf4(0x13c)](_0x43b8ff),_0x44fe79 instanceof u[_0x40caf4(0xda)]){const _0x9964e3={'onTransformIME':_0x1e9231=>this[_0x40caf4(0x14f)]['transformIMECache'](_0x1e9231),'onTransformState':_0x5c948b=>this[_0x40caf4(0x10f)]['transformStateCache'](_0x5c948b),'onTransformSelections':_0x7aa8ea=>this['_docTransformSelectionsService'][_0x40caf4(0xef)](_0x7aa8ea),'onSyncEditingCollabCursor':_0x38b254=>this['_docSyncEditingCollabCursorService']['syncEditingCollabCursor'](_0x38b254),'onTransformRemoteChangesetByIMECache':_0x49fa6a=>this[_0x40caf4(0x14f)][_0x40caf4(0x165)](_0x49fa6a),'onTransformRemoteChangesetByStateCache':_0xce245d=>this['_docTransformStateCacheService'][_0x40caf4(0x165)](_0xce245d)};_0x44fe79['addHandlerCallback'](_0x9964e3);}}));}};Q=Xt([N(0x0,a[_0x373e19(0x2ec)](E[_0x373e19(0x12f)])),N(0x1,a['Inject'](u['CollaborationController'])),N(0x2,a[_0x373e19(0x2ec)](z)),N(0x3,a['Inject'](J)),N(0x4,a[_0x373e19(0x2ec)](Z)),N(0x5,a[_0x373e19(0x2ec)](pe)),N(0x6,O[_0x373e19(0x2e0)]),N(0x7,a[_0x373e19(0x2ec)](a['LocaleService']))],Q);var Gt=Object[_0x373e19(0x305)],Kt=(_0x4dfa62,_0x49ca65,_0x43a720,_0x1e502b)=>{const _0x4225ff=_0x373e19;for(var _0x5207f2=_0x1e502b>0x1?void 0x0:_0x1e502b?Gt(_0x49ca65,_0x43a720):_0x49ca65,_0x60ae09=_0x4dfa62[_0x4225ff(0x1a4)]-0x1,_0x3f1b74;_0x60ae09>=0x0;_0x60ae09--)(_0x3f1b74=_0x4dfa62[_0x60ae09])&&(_0x5207f2=_0x3f1b74(_0x5207f2)||_0x5207f2);return _0x5207f2;},le=(_0x538248,_0x2f6e6b)=>(_0x456b94,_0x45adda)=>_0x2f6e6b(_0x456b94,_0x45adda,_0x538248);let ve=class extends a[_0x373e19(0x1e2)]{constructor(_0x26be06,_0x5d5563,_0x552e77){const _0xbf8b5f=_0x373e19;super(),h(this,_0xbf8b5f(0x147),new Map()),h(this,_0xbf8b5f(0x186),new Map()),h(this,_0xbf8b5f(0x237),!0x1),(this[_0xbf8b5f(0x2ac)]=_0x26be06,this[_0xbf8b5f(0x199)]=_0x5d5563,this[_0xbf8b5f(0x166)]=_0x552e77);}['disableLocalCache'](){const _0x422e81=_0x373e19;this[_0x422e81(0x237)]=!0x0;}[_0x373e19(0x191)](){const _0x217614=_0x373e19;this[_0x217614(0x237)]=!0x1;}get[_0x373e19(0x1a7)](){const _0x188a9f=_0x373e19;return this[_0x188a9f(0x186)];}['dispose'](){const _0x5d36f7=_0x373e19;this[_0x5d36f7(0x2b7)]()['then'](()=>super['dispose']());}async['loadOfflineData'](_0x41f45a){const _0x1aa929=_0x373e19;return this['_disabled']?null:this[_0x1aa929(0x199)][_0x1aa929(0x19c)](u['getLocalCacheKey'](_0x41f45a));}async[_0x373e19(0x300)](_0x30ec2d,_0x4c0ddc){const _0x208040=_0x373e19;return!!this[_0x208040(0x199)]['setItem'](_0x30ec2d,_0x4c0ddc);}['updateOfflineData'](_0x148743,_0x5be38a,_0x5d9699,_0x395237){const _0x4c855c=_0x373e19,_0x701171=this[_0x4c855c(0x166)][_0x4c855c(0xe2)](_0x148743);this[_0x4c855c(0x147)][_0x4c855c(0x2a9)](_0x148743,{'unitID':_0x148743,'type':_0x5be38a,'awaitingChangeset':_0x5d9699,'mutations':_0x395237,'rev':_0x701171}),this[_0x4c855c(0x186)][_0x4c855c(0x281)](_0x148743)||this[_0x4c855c(0x16a)](_0x148743);}[_0x373e19(0x16a)](_0x5cf223){const _0x158b31=_0x373e19,_0x4ea165=this[_0x158b31(0x2b5)]();_0x4ea165===0x0?this[_0x158b31(0x193)](_0x5cf223):this['_saveTaskMap'][_0x158b31(0x2a9)](_0x5cf223,setTimeout(()=>this[_0x158b31(0x193)](_0x5cf223),_0x4ea165));}[_0x373e19(0x2b5)](){const _0xf342af=_0x373e19;var _0x2d7b5f;return(_0x2d7b5f=this[_0xf342af(0x2ac)][_0xf342af(0x2e2)](u[_0xf342af(0x2de)]))!=null?_0x2d7b5f:u[_0xf342af(0x19e)];}[_0x373e19(0x193)](_0x3a84f2){const _0x34185d=_0x373e19,_0x57bdbc=this[_0x34185d(0x186)]['get'](_0x3a84f2);return _0x57bdbc!==void 0x0&&window[_0x34185d(0xbe)](_0x57bdbc),this['_localStorageService']['setItem'](u[_0x34185d(0x210)](_0x3a84f2),this['_cachedData'][_0x34185d(0x177)](_0x3a84f2))['then'](()=>this[_0x34185d(0x186)]['delete'](_0x3a84f2));}async[_0x373e19(0x2b7)](){const _0x5559ad=_0x373e19,_0x52bd17=[];this['_saveTaskMap'][_0x5559ad(0x22a)]((_0x330ec2,_0x268d29)=>{const _0x9ea831=_0x5559ad;window[_0x9ea831(0xbe)](_0x330ec2),_0x52bd17[_0x9ea831(0xc2)](this[_0x9ea831(0x193)](_0x268d29)[_0x9ea831(0x14a)](()=>{const _0x57bc10=_0x9ea831;this[_0x57bc10(0x186)][_0x57bc10(0x258)](_0x268d29);}));}),await Promise[_0x5559ad(0x181)](_0x52bd17);}};ve=Kt([le(0x0,a[_0x373e19(0x269)]),le(0x1,a['ILocalStorageService']),le(0x2,a[_0x373e19(0x2ec)](m['RevisionService']))],ve);class xe extends a['RxDisposable']{constructor(){const _0x3bea43=_0x373e19;super(),h(this,'urlChange$'),this['urlChange$']=d['fromEvent'](window,_0x3bea43(0x304))[_0x3bea43(0x1f8)](d[_0x3bea43(0x1b9)](this[_0x3bea43(0x2e1)]),d[_0x3bea43(0x293)](0x1),d[_0x3bea43(0x299)](void 0x0));}['setParam'](_0x5060ac,_0x33eb64,_0x477a49=!0x1){const _0x3b50be=_0x373e19,_0x3076f4=new URL(window[_0x3b50be(0x2ce)][_0x3b50be(0x321)]);_0x3076f4[_0x3b50be(0x319)][_0x3b50be(0x2a9)](_0x5060ac,_0x33eb64),_0x477a49?window[_0x3b50be(0xe3)][_0x3b50be(0x277)]('','',_0x3076f4[_0x3b50be(0x314)]()):window[_0x3b50be(0xe3)][_0x3b50be(0x189)]('','',_0x3076f4[_0x3b50be(0x314)]());}[_0x373e19(0x115)](_0x577347,_0x4bdda6=!0x1){const _0x232050=_0x373e19,_0x5b4736=new URL(window['location'][_0x232050(0x321)]);_0x5b4736[_0x232050(0x319)][_0x232050(0x258)](_0x577347),_0x4bdda6?window['history'][_0x232050(0x277)]('','',_0x5b4736['toString']()):window[_0x232050(0xe3)][_0x232050(0x189)]('','',_0x5b4736[_0x232050(0x314)]());}[_0x373e19(0x322)](_0x42c5bf){const _0x59c235=_0x373e19;var _0x108c45;return(_0x108c45=new URL(window[_0x59c235(0x2ce)][_0x59c235(0x321)])[_0x59c235(0x319)][_0x59c235(0x177)](_0x42c5bf))!=null?_0x108c45:void 0x0;}}var qt=Object[_0x373e19(0x1ac)],zt=Object[_0x373e19(0x305)],Jt=(_0x3ca152,_0x2188b6,_0x19c38b)=>_0x2188b6 in _0x3ca152?qt(_0x3ca152,_0x2188b6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x19c38b}):_0x3ca152[_0x2188b6]=_0x19c38b,Zt=(_0x59302f,_0x50c7dd,_0x2dc7a3,_0x1f4665)=>{const _0x34028e=_0x373e19;for(var _0x52348a=_0x1f4665>0x1?void 0x0:_0x1f4665?zt(_0x50c7dd,_0x2dc7a3):_0x50c7dd,_0x3da5cf=_0x59302f[_0x34028e(0x1a4)]-0x1,_0x59e212;_0x3da5cf>=0x0;_0x3da5cf--)(_0x59e212=_0x59302f[_0x3da5cf])&&(_0x52348a=_0x59e212(_0x52348a)||_0x52348a);return _0x52348a;},_e=(_0x19222d,_0x5abe25)=>(_0xc15a20,_0x44f308)=>_0x5abe25(_0xc15a20,_0x44f308,_0x19222d),Qt=(_0x177e30,_0x506c9d,_0x4cb039)=>Jt(_0x177e30,_0x506c9d+'',_0x4cb039);const es=_0x373e19(0xff);exports['UniverCollaborationClientUIPlugin']=class extends a[_0x373e19(0x12e)]{constructor(_0x18a752=De,_0x5431ed,_0x179c0a,_0x3df464){const _0x2827e0=_0x373e19;super(),this[_0x2827e0(0x1ab)]=_0x18a752,this[_0x2827e0(0x238)]=_0x5431ed,this[_0x2827e0(0x20b)]=_0x179c0a,this[_0x2827e0(0x2ac)]=_0x3df464;const {..._0x5ba2cd}=a['merge']({},De,this[_0x2827e0(0x1ab)]);this[_0x2827e0(0x2ac)][_0x2827e0(0x1ce)](Bt,_0x5ba2cd);}[_0x373e19(0x2f2)](){const _0x1e28f1=_0x373e19;this[_0x1e28f1(0xdc)](),this['_initDependencies']();}[_0x373e19(0x2a7)](){const _0x55d3dd=_0x373e19;this[_0x55d3dd(0x218)]();}[_0x373e19(0xdc)](){const _0xb5799d=_0x373e19;var _0x5b7064;const _0x5e6c30=[[Ce],[Z],[z],[J],[pe],[me,{'useClass':xe}],[K['ISocketService'],{'useClass':K['WebSocketService']}],[u[_0xb5799d(0x15f)],{'useClass':ve}],[exports[_0xb5799d(0x1ae)]],[Q],[q],[x],[ue],[exports[_0xb5799d(0x1bf)]]];a[_0xb5799d(0x315)](this[_0xb5799d(0x20b)],a[_0xb5799d(0x2a5)](_0x5e6c30,(_0x5b7064=this[_0xb5799d(0x1ab)])==null?void 0x0:_0x5b7064[_0xb5799d(0x15e)]));}[_0x373e19(0x218)](){const _0x406ab0=_0x373e19;this[_0x406ab0(0x13c)](this['_renderManagerService']['registerRenderModule'](a['UniverInstanceType'][_0x406ab0(0xf8)],[fe])),this[_0x406ab0(0x13c)](this[_0x406ab0(0x238)]['registerRenderModule'](a[_0x406ab0(0x2fc)][_0x406ab0(0x1de)],[Ie]));}[_0x373e19(0x1cf)](){const _0x45e298=_0x373e19;a[_0x45e298(0x13b)](this[_0x45e298(0x20b)],[[x],[exports['DesktopCollaborationStatusDisplayController']],[Q],[q],[exports[_0x45e298(0x1bf)]]]);}},Qt(exports[_0x373e19(0x16f)],_0x373e19(0x13a),es),exports[_0x373e19(0x16f)]=Zt([a[_0x373e19(0x265)](u[_0x373e19(0x29c)]),_e(0x1,p[_0x373e19(0x26f)]),_e(0x2,a[_0x373e19(0x2ec)](a[_0x373e19(0xc4)])),_e(0x3,a[_0x373e19(0x269)])],exports[_0x373e19(0x16f)]);var ts=Object['getOwnPropertyDescriptor'],ss=(_0x4246c8,_0x5f5d31,_0x2cfac4,_0x1e0d47)=>{for(var _0x334637=_0x1e0d47>0x1?void 0x0:_0x1e0d47?ts(_0x5f5d31,_0x2cfac4):_0x5f5d31,_0x2348bf=_0x4246c8['length']-0x1,_0x2f7f92;_0x2348bf>=0x0;_0x2348bf--)(_0x2f7f92=_0x4246c8[_0x2348bf])&&(_0x334637=_0x2f7f92(_0x334637)||_0x334637);return _0x334637;},H=(_0x233125,_0x3585b5)=>(_0x2159ae,_0x4293cc)=>_0x3585b5(_0x2159ae,_0x4293cc,_0x233125);exports[_0x373e19(0xea)]=class extends u[_0x373e19(0x234)]{constructor(_0x2ac52f,_0x233df9,_0x4e1edc,_0x3bff51,_0x4be5f3){super(_0x2ac52f,_0x233df9,_0x4e1edc,_0x3bff51,_0x4be5f3);}async[_0x373e19(0x2db)](_0x58bec2){const _0x4548e2=_0x373e19,_0x2e67a0=await this[_0x4548e2(0xde)](),_0x42059f=this[_0x4548e2(0x24d)](_0x58bec2,_0x2e67a0);return this[_0x4548e2(0x2c9)](_0x42059f);}[_0x373e19(0x24d)](_0x3a126c,_0x58b283){const _0x20c26=_0x373e19,_0x17d792=typeof window>'u'?new URL(_0x3a126c):new URL(_0x3a126c,window[_0x20c26(0x2ce)][_0x20c26(0x2dd)]);_0x17d792[_0x20c26(0x319)][_0x20c26(0x2a9)](_0x20c26(0xd5),_0x58b283);const _0xc55598=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x20c26(0x2ce)][_0x20c26(0x2a6)]);return _0xc55598['get']('runId')&&_0x17d792[_0x20c26(0x319)][_0x20c26(0x2a9)](_0x20c26(0x30f),_0xc55598[_0x20c26(0x177)](_0x20c26(0x30f))),_0x17d792[_0x20c26(0x314)]();}async[_0x373e19(0xde)](){const _0x36f327=_0x373e19;var _0x4c669e,_0x5e0163,_0x3d133a;const _0x23d16c=this[_0x36f327(0x2ac)][_0x36f327(0x2e2)](u[_0x36f327(0xd0)]),_0x15b5b1=(_0x4c669e=_0x23d16c==null?void 0x0:_0x23d16c[_0x36f327(0x1fd)])!=null?_0x4c669e:u[_0x36f327(0x160)];return(_0x3d133a=(_0x5e0163=(await this[_0x36f327(0x266)]['get'](_0x15b5b1,{'headers':{'Content-Type':_0x36f327(0xb6)}}))[_0x36f327(0x2d8)])==null?void 0x0:_0x5e0163[_0x36f327(0x1f1)])!=null?_0x3d133a:'';}},exports[_0x373e19(0xea)]=ss([H(0x0,a['Inject'](a[_0x373e19(0xc4)])),H(0x1,a[_0x373e19(0x2ec)](K[_0x373e19(0x25e)])),H(0x2,a[_0x373e19(0x269)]),H(0x3,a[_0x373e19(0x28c)]),H(0x4,m['ISnapshotServerService'])],exports[_0x373e19(0xea)]);var Be=(_0x814e7b=>(_0x814e7b[_0x814e7b['UNDEFINED']=0x0]='UNDEFINED',_0x814e7b[_0x814e7b['OK']=0x1]='OK',_0x814e7b[_0x814e7b[_0x373e19(0x25d)]=0x2]=_0x373e19(0x25d),_0x814e7b[_0x814e7b[_0x373e19(0x26e)]=0x3]=_0x373e19(0x26e),_0x814e7b[_0x814e7b[_0x373e19(0x21e)]=0x4]='NOT_FOUND',_0x814e7b[_0x814e7b['UNAUTHENTICATED']=0x5]=_0x373e19(0x10b),_0x814e7b[_0x814e7b[_0x373e19(0x2f9)]=0x6]=_0x373e19(0x2f9),_0x814e7b[_0x814e7b['INVALID_ARGUMENT']=0x7]='INVALID_ARGUMENT',_0x814e7b[_0x814e7b['TOO_MANY_REQUESTS']=0x8]='TOO_MANY_REQUESTS',_0x814e7b[_0x814e7b[_0x373e19(0x164)]=0x9]=_0x373e19(0x164),_0x814e7b[_0x814e7b[_0x373e19(0x1ca)]=0xa]=_0x373e19(0x1ca),_0x814e7b[_0x814e7b['MOBILE_VERIFY_CODE_MISMATCH']=0xb]=_0x373e19(0x323),_0x814e7b[_0x814e7b[_0x373e19(0x137)]=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x814e7b[_0x814e7b['EMAIL_VERIFY_CODE_MISMATCH']=0xd]=_0x373e19(0xc0),_0x814e7b[_0x814e7b[_0x373e19(0xf5)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x814e7b[_0x814e7b[_0x373e19(0x144)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x814e7b[_0x814e7b[_0x373e19(0x2e4)]=0x1771]=_0x373e19(0x2e4),_0x814e7b[_0x814e7b[_0x373e19(0x1b7)]=0x1772]=_0x373e19(0x1b7),_0x814e7b[_0x814e7b[_0x373e19(0x179)]=0x1773]=_0x373e19(0x179),_0x814e7b[_0x814e7b['APPLY_REJECT']=0x1b59]=_0x373e19(0x148),_0x814e7b[_0x814e7b[_0x373e19(0x2ea)]=0x1b5a]=_0x373e19(0x2ea),_0x814e7b[_0x814e7b[_0x373e19(0x2a3)]=0x1b5b]=_0x373e19(0x2a3),_0x814e7b[_0x814e7b[_0x373e19(0x132)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x814e7b[_0x814e7b[_0x373e19(0xfe)]=0x1b5d]=_0x373e19(0xfe),_0x814e7b[_0x814e7b[_0x373e19(0xe8)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x814e7b[_0x814e7b['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x373e19(0x2cc),_0x814e7b[_0x814e7b[_0x373e19(0x301)]=0x232a]=_0x373e19(0x301),_0x814e7b[_0x814e7b[_0x373e19(0xf6)]=0x232b]=_0x373e19(0xf6),_0x814e7b[_0x814e7b[_0x373e19(0x271)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x814e7b[_0x814e7b[_0x373e19(0x31c)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x814e7b[_0x814e7b[_0x373e19(0x1be)]=0x2711]=_0x373e19(0x1be),_0x814e7b[_0x814e7b[_0x373e19(0x1df)]=0x2712]=_0x373e19(0x1df),_0x814e7b[_0x814e7b[_0x373e19(0xb4)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x814e7b[_0x814e7b['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x373e19(0x2f1),_0x814e7b[_0x814e7b[_0x373e19(0x1d0)]=0x271a]=_0x373e19(0x1d0),_0x814e7b[_0x814e7b[_0x373e19(0x108)]=0x271b]=_0x373e19(0x108),_0x814e7b[_0x814e7b['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x373e19(0x127),_0x814e7b[_0x814e7b[_0x373e19(0x27a)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x814e7b[_0x814e7b[_0x373e19(0x28e)]=0x271e]=_0x373e19(0x28e),_0x814e7b[_0x814e7b[_0x373e19(0x1d3)]=0x271f]=_0x373e19(0x1d3),_0x814e7b[_0x814e7b[_0x373e19(0x1fb)]=0x2720]=_0x373e19(0x1fb),_0x814e7b[_0x814e7b[_0x373e19(0x1bd)]=0x2af9]=_0x373e19(0x1bd),_0x814e7b[_0x814e7b[_0x373e19(0x207)]=0x2ee1]=_0x373e19(0x207),_0x814e7b[_0x814e7b['INVALID_INVITE_CODE']=0x2ee2]=_0x373e19(0x318),_0x814e7b[_0x814e7b['INVITE_CODE_REQUIRED']=0x2ee3]=_0x373e19(0x240),_0x814e7b[_0x814e7b[_0x373e19(0x22d)]=0x2ee4]=_0x373e19(0x22d),_0x814e7b[_0x814e7b[_0x373e19(0x24f)]=0x2ee5]=_0x373e19(0x24f),_0x814e7b[_0x814e7b['WECHAT_HAS_BEEN_BOUND']=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x814e7b[_0x814e7b['MOBILE_HAS_BEEN_BOUND']=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x814e7b[_0x814e7b[_0x373e19(0x10c)]=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x814e7b[_0x814e7b[_0x373e19(0x241)]=-0x1]='UNRECOGNIZED',_0x814e7b))(Be||{}),is=Object[_0x373e19(0x305)],ns=(_0xc3ec51,_0x59553c,_0xbc3788,_0x4fe5e1)=>{const _0x35b133=_0x373e19;for(var _0x4203c0=_0x4fe5e1>0x1?void 0x0:_0x4fe5e1?is(_0x59553c,_0xbc3788):_0x59553c,_0x4548a2=_0xc3ec51[_0x35b133(0x1a4)]-0x1,_0x1d1dea;_0x4548a2>=0x0;_0x4548a2--)(_0x1d1dea=_0xc3ec51[_0x4548a2])&&(_0x4203c0=_0x1d1dea(_0x4203c0)||_0x4203c0);return _0x4203c0;},he=(_0x2121a1,_0x359666)=>(_0xfc118c,_0x2e24cd)=>_0x359666(_0xfc118c,_0x2e24cd,_0x2121a1);exports[_0x373e19(0xd8)]=class extends a[_0x373e19(0x1e2)]{constructor(_0x49b395,_0x34b92f,_0x45d327){const _0xf607be=_0x373e19;super(),this[_0xf607be(0x2fb)]=_0x49b395,this[_0xf607be(0x266)]=_0x34b92f,this['_configService']=_0x45d327;}async[_0x373e19(0x1d5)](_0x2d687e,_0x2bb743,_0x2c74a4,..._0x21c330){const _0x3e5bf2=_0x373e19;var _0x48998f,_0x212e42,_0x118681,_0x2a6fc2;const _0x3783c7=this[_0x3e5bf2(0x2fb)][_0x3e5bf2(0x19d)]();if(!_0x3783c7)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x3f44c2=((_0x48998f=this[_0x3e5bf2(0x2ac)][_0x3e5bf2(0x2e2)](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x48998f:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x2d687e+_0x3e5bf2(0x1a6)+_0x2bb743,_0x43d808=new URL(window[_0x3e5bf2(0x2ce)][_0x3e5bf2(0x321)]),_0x44424a={'scriptId':_0x2d687e,'runId':(_0x212e42=_0x43d808[_0x3e5bf2(0x319)]['get'](_0x3e5bf2(0x30f)))!=null?_0x212e42:'','function':_0x2bb743,'unitId':_0x3783c7[_0x3e5bf2(0x261)](),'argsOfFunction':JSON[_0x3e5bf2(0x104)](_0x21c330),'invokeId':(_0x118681=_0x2c74a4[_0x3e5bf2(0xf2)])!=null?_0x118681:'','executionId':(_0x2a6fc2=_0x2c74a4[_0x3e5bf2(0x233)])!=null?_0x2a6fc2:''};try{const _0x12f66d=await this['_httpService'][_0x3e5bf2(0x149)](_0x3f44c2,{'body':_0x44424a});return _0x12f66d['body'][_0x3e5bf2(0x111)]&&_0x12f66d['body'][_0x3e5bf2(0x111)][_0x3e5bf2(0x1fc)]!==Be['OK']?'Failed':_0x12f66d[_0x3e5bf2(0x2d8)]['result'];}catch{return _0x3e5bf2(0x2b1);}}},exports[_0x373e19(0xd8)]=ns([he(0x0,a[_0x373e19(0x157)]),he(0x1,a[_0x373e19(0x2ec)](K['HTTPService'])),he(0x2,a[_0x373e19(0x269)])],exports[_0x373e19(0xd8)]);const Me=0x7530,Le=_0x373e19(0x2c7);class rs extends a[_0x373e19(0x1e2)]{constructor(){const _0x40b147=_0x373e19;super(),h(this,_0x40b147(0x24b),a[_0x40b147(0x17c)]()),h(this,_0x40b147(0x2b0),new Set()),h(this,_0x40b147(0x262),new Map()),h(this,_0x40b147(0x170),null),h(this,'_clearOtherTimers',new Map()),h(this,'_unitStatus',new Map()),this[_0x40b147(0xbb)]();}[_0x373e19(0x226)](){const _0x35dadc=_0x373e19;super[_0x35dadc(0x226)](),this[_0x35dadc(0x249)][_0x35dadc(0x22a)]((_0x25240f,_0x3c3179)=>this[_0x35dadc(0x28f)](_0x3c3179)),this['_heartbeatTimer']&&window[_0x35dadc(0xc3)](this['_heartbeatTimer']);}['getUnitStatus$'](_0xf6b1d2){const _0x3e3435=_0x373e19;return this[_0x3e3435(0x2bd)](_0xf6b1d2)[_0x3e3435(0x1f8)](d[_0x3e3435(0x171)]());}[_0x373e19(0x329)](_0x2071e8){const _0x30f435=_0x373e19;this[_0x30f435(0x2b0)][_0x30f435(0x1c0)]===0x0&&this[_0x30f435(0xe4)](),this[_0x30f435(0x2b0)][_0x30f435(0x1a3)](_0x2071e8),this['_send']({'type':0x0,'memberID':this[_0x30f435(0x24b)],'unitIDs':[_0x2071e8],'isForwarded':!0x1});}[_0x373e19(0x117)](_0x52d697){const _0x4cc2da=_0x373e19;this[_0x4cc2da(0x2b0)][_0x4cc2da(0x258)](_0x52d697),this[_0x4cc2da(0x2b0)][_0x4cc2da(0x1c0)]===0x0&&this['_heartbeatTimer']&&window['clearInterval'](this[_0x4cc2da(0x170)]);}[_0x373e19(0xbb)](){const _0x5a536c=_0x373e19;this[_0x5a536c(0x13c)](a['toDisposable'](d[_0x5a536c(0x221)](window,_0x5a536c(0x1b6))[_0x5a536c(0x145)](_0x564881=>{const _0x1f9f52=_0x5a536c;if(_0x564881[_0x1f9f52(0x125)]!==Le||!_0x564881[_0x1f9f52(0x1d2)])return;const _0x216b70=JSON[_0x1f9f52(0x140)](_0x564881['newValue']);this[_0x1f9f52(0x21d)](_0x216b70);}))),window['addEventListener'](_0x5a536c(0x2b8),()=>this[_0x5a536c(0x276)]({'type':0x1,'memberID':this[_0x5a536c(0x24b)],'unitIDs':Array['from'](this[_0x5a536c(0x2b0)])}));}[_0x373e19(0x21d)](_0x43708e){const _0xdaab89=_0x373e19;switch(_0x43708e[_0xdaab89(0x324)]){case 0x0:this[_0xdaab89(0x2c6)](_0x43708e);break;case 0x1:this[_0xdaab89(0x200)](_0x43708e);break;case 0x2:this[_0xdaab89(0xf1)](_0x43708e);break;}}[_0x373e19(0x2c6)](_0x4a5aec){const _0xa2fe1e=_0x373e19,{unitIDs:_0xbad220,memberID:_0x431e0d,isForwarded:_0x3f0167}=_0x4a5aec;_0xbad220[_0xa2fe1e(0x22a)](_0x1b9999=>{const _0x196fbc=_0xa2fe1e;if(!_0x3f0167&&this[_0x196fbc(0x262)][_0x196fbc(0x281)](_0x1b9999)&&this[_0x196fbc(0x2bd)](_0x1b9999)['next'](u['UnitStatus'][_0x196fbc(0x10d)]),!this[_0x196fbc(0x262)][_0x196fbc(0x281)](_0x1b9999)||!this['_unitOnClients'][_0x196fbc(0x177)](_0x1b9999)[_0x196fbc(0x281)](_0x431e0d)){const _0x1f079e=this[_0x196fbc(0x262)][_0x196fbc(0x177)](_0x1b9999)||new Set();_0x1f079e['add'](_0x431e0d),this[_0x196fbc(0x262)][_0x196fbc(0x2a9)](_0x1b9999,_0x1f079e),this[_0x196fbc(0x270)](_0x431e0d);}}),_0x3f0167||this[_0xa2fe1e(0x276)]({'type':0x0,'memberID':this[_0xa2fe1e(0x24b)],'unitIDs':[...this[_0xa2fe1e(0x2b0)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x17dc27){const _0x46481e=_0x373e19;this[_0x46481e(0x28f)](_0x17dc27);const _0x23db5a=window[_0x46481e(0x29a)](()=>{const _0x1d4756=_0x46481e;this[_0x1d4756(0x262)][_0x1d4756(0x22a)](_0x33f795=>{const _0x4875da=_0x1d4756;_0x33f795[_0x4875da(0x258)](_0x17dc27);});},Me*0x2);this['_clearOtherTimers'][_0x46481e(0x2a9)](_0x17dc27,_0x23db5a);}[_0x373e19(0x28f)](_0x1a795c){const _0x39cb54=_0x373e19;if(this[_0x39cb54(0x249)][_0x39cb54(0x281)](_0x1a795c)){const _0x17660d=this[_0x39cb54(0x249)][_0x39cb54(0x177)](_0x1a795c);_0x17660d&&window[_0x39cb54(0xbe)](_0x17660d),this['_clearOtherTimers'][_0x39cb54(0x2a9)](_0x1a795c,null);}}[_0x373e19(0x200)](_0x299a07){const _0x230259=_0x373e19,{memberID:_0x3170b3,unitIDs:_0x132a81}=_0x299a07;_0x132a81['forEach'](_0x49f16a=>{const _0x5467ad=_0x2638;var _0x398a3d;const _0x1f47f3=this[_0x5467ad(0x262)][_0x5467ad(0x177)](_0x49f16a);_0x1f47f3&&(_0x1f47f3[_0x5467ad(0x258)](_0x3170b3),(_0x398a3d=this[_0x5467ad(0x2bd)](_0x49f16a))==null||_0x398a3d[_0x5467ad(0x2e5)](_0x1f47f3[_0x5467ad(0x1c0)]===0x0?u[_0x5467ad(0x12d)][_0x5467ad(0xbc)]:u[_0x5467ad(0x12d)][_0x5467ad(0x10d)]));}),this[_0x230259(0x28f)](_0x3170b3);}['_handleHeartbeatEvent'](_0x5427f9){const _0x3fc517=_0x373e19;this[_0x3fc517(0x270)](_0x5427f9[_0x3fc517(0x2f3)]);}['_send'](_0x368c14){const _0x167df9=_0x373e19;localStorage[_0x167df9(0x309)](Le,JSON[_0x167df9(0x104)](_0x368c14));}[_0x373e19(0xe4)](){const _0x2deac4=_0x373e19;this['_heartbeatTimer']=window[_0x2deac4(0x251)](()=>{const _0xb37204=_0x2deac4;this[_0xb37204(0x276)]({'type':0x2,'memberID':this[_0xb37204(0x24b)]});},Me);}[_0x373e19(0x2bd)](_0x21da91){const _0x14942d=_0x373e19;return this['_unitStatus'][_0x14942d(0x281)](_0x21da91)||this['_unitStatus'][_0x14942d(0x2a9)](_0x21da91,new d[(_0x14942d(0x1a8))](u[_0x14942d(0x12d)][_0x14942d(0xbc)])),this['_unitStatus'][_0x14942d(0x177)](_0x21da91);}}exports[_0x373e19(0x11f)]=me,exports[_0x373e19(0x326)]=$e,exports[_0x373e19(0x283)]=rs,exports[_0x373e19(0x23a)]=xe;
1
+ 'use strict';const _0x3e4096=_0x6398;(function(_0x2aa07a,_0x24f14b){const _0x433529=_0x6398,_0x5ec09b=_0x2aa07a();while(!![]){try{const _0x2b49f2=-parseInt(_0x433529(0x34b))/0x1+parseInt(_0x433529(0x2f0))/0x2+parseInt(_0x433529(0x2b8))/0x3+parseInt(_0x433529(0x196))/0x4*(parseInt(_0x433529(0x1ba))/0x5)+parseInt(_0x433529(0x1ce))/0x6*(parseInt(_0x433529(0x2c1))/0x7)+-parseInt(_0x433529(0x319))/0x8+-parseInt(_0x433529(0x2db))/0x9*(parseInt(_0x433529(0x2d8))/0xa);if(_0x2b49f2===_0x24f14b)break;else _0x5ec09b['push'](_0x5ec09b['shift']());}catch(_0x4b4b28){_0x5ec09b['push'](_0x5ec09b['shift']());}}}(_0x5253,0xcce3c));var We=Object[_0x3e4096(0x262)],Ve=(_0x44a05f,_0x554152,_0x198241)=>_0x554152 in _0x44a05f?We(_0x44a05f,_0x554152,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x198241}):_0x44a05f[_0x554152]=_0x198241,h=(_0x600c51,_0x4467b1,_0x189ad4)=>Ve(_0x600c51,typeof _0x4467b1!=_0x3e4096(0x201)?_0x4467b1+'':_0x4467b1,_0x189ad4);Object[_0x3e4096(0x262)](exports,Symbol[_0x3e4096(0x162)],{'value':'Module'});const P=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),d=require('rxjs'),D=require('@univerjs/design'),M=require('react'),Xe=require('@univerjs/rpc'),g=require('@univerjs/sheets'),p=require('@univerjs/engine-render'),K=require('@univerjs/network'),E=require('@univerjs/docs-ui'),Ge=require('@univerjs/drawing'),m=require('@univerjs-pro/collaboration'),Y=require('@univerjs/docs'),Ee=require('@univerjs/engine-formula'),$=require('rxjs/operators'),G=require('@univerjs/sheets-ui');var b=function(){const _0x168691=_0x3e4096;return b=Object[_0x168691(0x371)]||function(_0x147f84){const _0x3f7b07=_0x168691;for(var _0xf9a1be,_0x46084e=0x1,_0x269f75=arguments[_0x3f7b07(0x20a)];_0x46084e<_0x269f75;_0x46084e++){_0xf9a1be=arguments[_0x46084e];for(var _0xca6940 in _0xf9a1be)Object[_0x3f7b07(0x1c6)][_0x3f7b07(0x311)]['call'](_0xf9a1be,_0xca6940)&&(_0x147f84[_0xca6940]=_0xf9a1be[_0xca6940]);}return _0x147f84;},b[_0x168691(0x184)](this,arguments);},Ke=function(_0x3a1df1,_0x163390){const _0x393f5c=_0x3e4096;var _0x5eed2e={};for(var _0x19de1f in _0x3a1df1)Object[_0x393f5c(0x1c6)]['hasOwnProperty'][_0x393f5c(0x38e)](_0x3a1df1,_0x19de1f)&&_0x163390[_0x393f5c(0x242)](_0x19de1f)<0x0&&(_0x5eed2e[_0x19de1f]=_0x3a1df1[_0x19de1f]);if(_0x3a1df1!=null&&typeof Object[_0x393f5c(0x33b)]==_0x393f5c(0x152)){for(var _0x55cab0=0x0,_0x19de1f=Object[_0x393f5c(0x33b)](_0x3a1df1);_0x55cab0<_0x19de1f['length'];_0x55cab0++)_0x163390['indexOf'](_0x19de1f[_0x55cab0])<0x0&&Object['prototype'][_0x393f5c(0x1c8)]['call'](_0x3a1df1,_0x19de1f[_0x55cab0])&&(_0x5eed2e[_0x19de1f[_0x55cab0]]=_0x3a1df1[_0x19de1f[_0x55cab0]]);}return _0x5eed2e;},ge=M[_0x3e4096(0x329)](function(_0x1d22c3,_0x38c891){const _0x548a70=_0x3e4096;var _0x59bf1f=_0x1d22c3[_0x548a70(0x173)],_0x2c13ed=_0x1d22c3['id'],_0x3656ac=_0x1d22c3[_0x548a70(0x205)],_0x111ad3=_0x1d22c3[_0x548a70(0x193)],_0x14b09c=Ke(_0x1d22c3,['icon','id',_0x548a70(0x205),_0x548a70(0x193)]),_0x528267='univerjs-icon\x20univerjs-icon-'[_0x548a70(0x254)](_0x2c13ed,'\x20')[_0x548a70(0x254)](_0x3656ac||'')[_0x548a70(0x2e4)](),_0x2cb66f=M[_0x548a70(0x2df)]('_'[_0x548a70(0x254)](Je()));return Pe(_0x59bf1f,''[_0x548a70(0x254)](_0x2c13ed),{'defIds':_0x59bf1f[_0x548a70(0x2da)],'idSuffix':_0x2cb66f[_0x548a70(0x2be)]},b({'ref':_0x38c891,'className':_0x528267},_0x14b09c),_0x111ad3);});function Pe(_0x5eb1ef,_0x28ac7c,_0x4dfd80,_0x510cde,_0x3ca009){const _0x381545=_0x3e4096;return M[_0x381545(0x1a1)](_0x5eb1ef[_0x381545(0x271)],b(b({'key':_0x28ac7c},qe(_0x5eb1ef,_0x4dfd80,_0x3ca009)),_0x510cde),(ze(_0x5eb1ef,_0x4dfd80)[_0x381545(0x34e)]||[])['map'](function(_0x51f972,_0x30156b){const _0x539731=_0x381545;return Pe(_0x51f972,''['concat'](_0x28ac7c,'-')[_0x539731(0x254)](_0x5eb1ef['tag'],'-')[_0x539731(0x254)](_0x30156b),_0x4dfd80,void 0x0,_0x3ca009);}));}function qe(_0x2e641b,_0x3513e5,_0xe77cb4){const _0x581d6f=_0x3e4096;var _0x43e337=b({},_0x2e641b[_0x581d6f(0x1d3)]);_0xe77cb4!=null&&_0xe77cb4[_0x581d6f(0x37a)]&&_0x43e337[_0x581d6f(0x372)]===_0x581d6f(0x37a)&&(_0x43e337[_0x581d6f(0x372)]=_0xe77cb4['colorChannel1']),_0x2e641b[_0x581d6f(0x271)]==='mask'&&_0x43e337['id']&&(_0x43e337['id']=_0x43e337['id']+_0x3513e5[_0x581d6f(0x2d6)]),Object[_0x581d6f(0x1bc)](_0x43e337)[_0x581d6f(0x268)](function(_0x57d0e4){const _0x2eabbe=_0x581d6f;var _0x58ec1a=_0x57d0e4[0x0],_0x4670bf=_0x57d0e4[0x1];_0x58ec1a===_0x2eabbe(0x3cc)&&typeof _0x4670bf==_0x2eabbe(0x33d)&&(_0x43e337[_0x58ec1a]=_0x4670bf[_0x2eabbe(0x218)](/url\(#(.*)\)/,_0x2eabbe(0x1a8)[_0x2eabbe(0x254)](_0x3513e5[_0x2eabbe(0x2d6)],')')));});var _0x845c10=_0x3513e5[_0x581d6f(0x2da)];return!_0x845c10||_0x845c10[_0x581d6f(0x20a)]===0x0||(_0x2e641b[_0x581d6f(0x271)]==='use'&&_0x43e337[_0x581d6f(0x224)]&&(_0x43e337[_0x581d6f(0x224)]=_0x43e337['xlink:href']+_0x3513e5[_0x581d6f(0x2d6)]),Object[_0x581d6f(0x1bc)](_0x43e337)[_0x581d6f(0x268)](function(_0x16dc12){const _0x92df8=_0x581d6f;var _0x292212=_0x16dc12[0x0],_0x3792b8=_0x16dc12[0x1];typeof _0x3792b8==_0x92df8(0x33d)&&(_0x43e337[_0x292212]=_0x3792b8['replace'](/url\(#(.*)\)/,'url(#$1'[_0x92df8(0x254)](_0x3513e5[_0x92df8(0x2d6)],')')));})),_0x43e337;}function ze(_0x294a82,_0x54c550){const _0x28c9b9=_0x3e4096;var _0x4dc7a0,_0x392ce9=_0x54c550[_0x28c9b9(0x2da)];return!_0x392ce9||_0x392ce9['length']===0x0?_0x294a82:_0x294a82[_0x28c9b9(0x271)]===_0x28c9b9(0x289)&&(!((_0x4dc7a0=_0x294a82[_0x28c9b9(0x34e)])===null||_0x4dc7a0===void 0x0)&&_0x4dc7a0[_0x28c9b9(0x20a)])?b(b({},_0x294a82),{'children':_0x294a82[_0x28c9b9(0x34e)][_0x28c9b9(0x399)](function(_0x2692b0){const _0x2c7017=_0x28c9b9;return typeof _0x2692b0[_0x2c7017(0x1d3)]['id']==_0x2c7017(0x33d)&&_0x392ce9&&_0x392ce9[_0x2c7017(0x373)](_0x2692b0[_0x2c7017(0x1d3)]['id'])?b(b({},_0x2692b0),{'attrs':b(b({},_0x2692b0[_0x2c7017(0x1d3)]),{'id':_0x2692b0[_0x2c7017(0x1d3)]['id']+_0x54c550[_0x2c7017(0x2d6)]})}):_0x2692b0;})}):_0x294a82;}function Je(){const _0x3e2a99=_0x3e4096;return Math['random']()['toString'](0x24)[_0x3e2a99(0x187)](0x2,0x8);}ge['displayName']=_0x3e4096(0x26a);var Ze={'tag':_0x3e4096(0x3a2),'attrs':{'xmlns':_0x3e4096(0x26b),'fill':_0x3e4096(0x1f2),'viewBox':_0x3e4096(0x3b6),'width':_0x3e4096(0x174),'height':_0x3e4096(0x174)},'children':[{'tag':'g','attrs':{'clipPath':_0x3e4096(0x35e)},'children':[{'tag':_0x3e4096(0x36f),'attrs':{'stroke':'currentColor','d':_0x3e4096(0x2d7),'strokeLinecap':'round','strokeLinejoin':_0x3e4096(0x188),'strokeWidth':1.2}}]},{'tag':_0x3e4096(0x289),'attrs':{},'children':[{'tag':_0x3e4096(0x359),'attrs':{'id':_0x3e4096(0x33c)},'children':[{'tag':_0x3e4096(0x36f),'attrs':{'fill':_0x3e4096(0x354),'d':_0x3e4096(0x22e)}}]}]}],'defIds':[_0x3e4096(0x33c)]},we=M[_0x3e4096(0x329)](function(_0x2f1aa8,_0x399771){const _0x1ccc21=_0x3e4096;return M[_0x1ccc21(0x1a1)](ge,Object[_0x1ccc21(0x371)]({},_0x2f1aa8,{'id':_0x1ccc21(0x19f),'ref':_0x399771,'icon':Ze}));});we['displayName']=_0x3e4096(0x1f5);var Qe={'tag':_0x3e4096(0x3a2),'attrs':{'xmlns':_0x3e4096(0x26b),'fill':_0x3e4096(0x1f2),'viewBox':_0x3e4096(0x34a),'width':_0x3e4096(0x174),'height':_0x3e4096(0x174)},'children':[{'tag':'g','attrs':{'clipPath':_0x3e4096(0x3a0)},'children':[{'tag':_0x3e4096(0x36f),'attrs':{'stroke':_0x3e4096(0x285),'d':_0x3e4096(0x15c),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x3e4096(0x289),'attrs':{},'children':[{'tag':_0x3e4096(0x359),'attrs':{'id':_0x3e4096(0x336)},'children':[{'tag':_0x3e4096(0x36f),'attrs':{'fill':'white','d':_0x3e4096(0x22e),'transform':_0x3e4096(0x1ac)}}]}]}],'defIds':[_0x3e4096(0x336)]},Ae=M[_0x3e4096(0x329)](function(_0x1e6aed,_0x456afb){const _0x3c7185=_0x3e4096;return M['createElement'](ge,Object[_0x3c7185(0x371)]({},_0x1e6aed,{'id':'on-line-icon','ref':_0x456afb,'icon':Qe}));});Ae[_0x3e4096(0x2ee)]=_0x3e4096(0x376);function et(_0x4b1817){const _0x298a61=_0x3e4096;switch(_0x4b1817){case u['CollaborationStatus'][_0x298a61(0x226)]:return _0x298a61(0x2c8);case u['CollaborationStatus']['CONFLICT']:return _0x298a61(0x2dd);case u[_0x298a61(0x2fc)]['FETCH_MISS']:return _0x298a61(0x2c9);case u[_0x298a61(0x2fc)]['NOT_COLLAB']:return _0x298a61(0x34f);case u[_0x298a61(0x2fc)][_0x298a61(0x204)]:case u[_0x298a61(0x2fc)][_0x298a61(0x2a3)]:return _0x298a61(0x18a);case u[_0x298a61(0x2fc)][_0x298a61(0x17b)]:case u[_0x298a61(0x2fc)]['PENDING']:return _0x298a61(0x28f);}}function tt(_0xe1de3b){const _0x55e577=_0x3e4096,{status$:_0x4816dd}=_0xe1de3b,_0x34652f=O['useObservable'](_0x4816dd,u[_0x55e577(0x2fc)]['NOT_COLLAB']),_0xa2852d=O['useDependency'](a['LocaleService']),_0x1bb681=O['useDependency'](u['CollaborationSessionService']),_0x224953=_0x34652f!==u[_0x55e577(0x2fc)][_0x55e577(0x226)],_0x25c8dd=_0xa2852d['t'](et(_0x34652f)),_0x59811d=_0x224953?P['jsx'](Ae,{}):P[_0x55e577(0x3a3)](we,{}),_0x44606b=M[_0x55e577(0x21a)](()=>{_0x224953||_0x1bb681['reconnect']();},[_0x224953,_0x1bb681]);function _0x38de4d(){const _0x4b2a45=_0x55e577;return P[_0x4b2a45(0x19c)]('div',{'className':_0x4b2a45(0x2d9),'onClick':_0x44606b,'children':[P['jsx'](_0x4b2a45(0x1a7),{'className':D[_0x4b2a45(0x1e1)](_0x4b2a45(0x2f5),{'univer-text-green-500':_0x224953,'univer-text-red-500':!_0x224953}),'children':_0x59811d}),P[_0x4b2a45(0x3a3)](_0x4b2a45(0x1a7),{'className':_0x4b2a45(0x248),'children':_0x25c8dd})]});}return _0x224953?_0x38de4d():P[_0x55e577(0x3a3)](D['Tooltip'],{'title':_0xa2852d['t'](_0x55e577(0x299)),'children':_0x38de4d()});}var st=Object[_0x3e4096(0x2e2)],it=(_0x158b81,_0x1cbd36,_0x32605c,_0x1d8ba0)=>{const _0x892a00=_0x3e4096;for(var _0x5ee0e2=_0x1d8ba0>0x1?void 0x0:_0x1d8ba0?st(_0x1cbd36,_0x32605c):_0x1cbd36,_0x2f5a05=_0x158b81[_0x892a00(0x20a)]-0x1,_0x1e51c5;_0x2f5a05>=0x0;_0x2f5a05--)(_0x1e51c5=_0x158b81[_0x2f5a05])&&(_0x5ee0e2=_0x1e51c5(_0x5ee0e2)||_0x5ee0e2);return _0x5ee0e2;},V=(_0x2c22c3,_0x37ee3c)=>(_0x279632,_0xc308d5)=>_0x37ee3c(_0x279632,_0xc308d5,_0x2c22c3);exports['DesktopCollaborationStatusDisplayController']=class extends a['Disposable']{constructor(_0x1b01ff,_0x3b6d75,_0x149384,_0x1bc669){const _0x3898ba=_0x3e4096;super(),h(this,'_status$',new d['BehaviorSubject'](u[_0x3898ba(0x2fc)][_0x3898ba(0x3a4)])),(this[_0x3898ba(0x22a)]=_0x1b01ff,this[_0x3898ba(0x37b)]=_0x3b6d75,this[_0x3898ba(0x1eb)]=_0x149384,this[_0x3898ba(0x337)]=_0x1bc669,this['_initStatusComponent'](),this[_0x3898ba(0x333)]());}[_0x3e4096(0x333)](){const _0x9bb844=_0x3e4096;this[_0x9bb844(0x2c2)](this[_0x9bb844(0x22a)][_0x9bb844(0x157)][_0x9bb844(0x2a0)](d['switchMap'](()=>{const _0x1548ba=_0x9bb844,_0x527c80=this[_0x1548ba(0x22a)]['getFocusedUnit']();return _0x527c80?this[_0x1548ba(0x1eb)][_0x1548ba(0x2f3)](_0x527c80[_0x1548ba(0x227)]()):d['of'](null);}),d[_0x9bb844(0x2d4)](_0x5b79bd=>_0x5b79bd?_0x5b79bd[_0x9bb844(0x178)]:d['of'](u['CollaborationStatus'][_0x9bb844(0x3a4)])))['subscribe'](_0x233f64=>{const _0x4e0179=_0x9bb844;this[_0x4e0179(0x272)][_0x4e0179(0x2f4)](_0x233f64);}));}[_0x3e4096(0x263)](){const _0x18ccb5=_0x3e4096;this[_0x18ccb5(0x2c2)](this[_0x18ccb5(0x337)]['registerComponent'](O['BuiltInUIPart']['HEADER_MENU'],()=>O['connectInjector'](nt({'status$':this[_0x18ccb5(0x272)][_0x18ccb5(0x1cf)]()}),this[_0x18ccb5(0x37b)])));}},exports[_0x3e4096(0x25b)]=it([V(0x0,a[_0x3e4096(0x3ac)]),V(0x1,a[_0x3e4096(0x3ca)](a['Injector'])),V(0x2,a[_0x3e4096(0x3ca)](u[_0x3e4096(0x18e)])),V(0x3,O[_0x3e4096(0x16b)])],exports[_0x3e4096(0x25b)]);function nt(_0x54f383){const {status$:_0x50f85b}=_0x54f383;return function(){const _0x42ffea=_0x6398;return P[_0x42ffea(0x3a3)](tt,{'status$':_0x50f85b});};}const me=a[_0x3e4096(0x283)](_0x3e4096(0x30d));var rt=Object[_0x3e4096(0x2e2)],ot=(_0xb98adb,_0x50b3b0,_0x505be1,_0x1cfad6)=>{for(var _0x455938=_0x1cfad6>0x1?void 0x0:_0x1cfad6?rt(_0x50b3b0,_0x505be1):_0x50b3b0,_0x4ca68f=_0xb98adb['length']-0x1,_0x19e34e;_0x4ca68f>=0x0;_0x4ca68f--)(_0x19e34e=_0xb98adb[_0x4ca68f])&&(_0x455938=_0x19e34e(_0x455938)||_0x455938);return _0x455938;},k=(_0xd545d3,_0x5770e7)=>(_0x54c263,_0x19e6ac)=>_0x5770e7(_0x54c263,_0x19e6ac,_0xd545d3);exports['CollaborationDataLoaderController']=class extends a[_0x3e4096(0x168)]{constructor(_0x59855b,_0x4f12b1,_0xd6a9fd,_0x3c26e0,_0x36b875){const _0x3d2de0=_0x3e4096;super(),this['_urlService']=_0x59855b,this[_0x3d2de0(0x238)]=_0x4f12b1,this[_0x3d2de0(0x1ee)]=_0xd6a9fd,this[_0x3d2de0(0x34d)]=_0x3c26e0,_0x36b875?_0x36b875==null||_0x36b875[_0x3d2de0(0x362)]()[_0x3d2de0(0x264)](()=>this[_0x3d2de0(0x1e7)]()):(this[_0x3d2de0(0x238)][_0x3d2de0(0x24a)](_0x3d2de0(0x153),_0x3d2de0(0x386)),this['_init']());}async['_init'](){const _0x51a764=_0x3e4096,_0x16b34c=this[_0x51a764(0x267)][_0x51a764(0x265)](_0x51a764(0x18c)),_0x1e0c9d=this[_0x51a764(0x267)]['getParam'](_0x51a764(0x39c)),_0x3a75e3=this[_0x51a764(0x267)][_0x51a764(0x265)](_0x51a764(0x1b3));if(!_0x16b34c||!_0x1e0c9d){this[_0x51a764(0x238)][_0x51a764(0x24a)](_0x51a764(0x153),_0x51a764(0x2b1));return;}const _0x1d9773=await this[_0x51a764(0x34d)][_0x51a764(0x1b8)](_0x16b34c,Number(_0x1e0c9d),_0x3a75e3);_0x1d9773&&_0x1d9773 instanceof a[_0x51a764(0x32f)]&&this['_setupSubUnitSync'](_0x1d9773);}async[_0x3e4096(0x234)](_0x226a6d){const _0x37124a=_0x3e4096;await this[_0x37124a(0x334)](_0x226a6d),_0x226a6d[_0x37124a(0x385)][_0x37124a(0x2a0)](d[_0x37124a(0x3c0)](this[_0x37124a(0x1d0)]))['subscribe'](_0x17cc84=>{const _0x5b730f=_0x37124a;_0x17cc84&&this[_0x5b730f(0x251)](_0x17cc84);}),this[_0x37124a(0x267)][_0x37124a(0x26d)]['pipe'](d[_0x37124a(0x3c0)](this[_0x37124a(0x1d0)]))[_0x37124a(0x290)](()=>this[_0x37124a(0x334)](_0x226a6d));}['_updateURLWithCurrentState'](_0x1bb8d8,_0x100fd3=!0x1){const _0x7aa436=_0x3e4096,_0xfb4e08=this['_urlService']['getParam'](_0x7aa436(0x1b3));_0x1bb8d8[_0x7aa436(0x367)]()!==_0xfb4e08&&this[_0x7aa436(0x267)][_0x7aa436(0x36c)](_0x7aa436(0x1b3),_0x1bb8d8[_0x7aa436(0x367)](),_0x100fd3);}async[_0x3e4096(0x334)](_0x446f9f){const _0xa9062a=_0x3e4096;var _0x278270;const _0x533b3c=this[_0xa9062a(0x267)][_0xa9062a(0x265)]('subunit');if(!_0x533b3c||!_0x446f9f['getSheetBySheetId'](_0x533b3c)){const _0x39d9d1=_0x446f9f[_0xa9062a(0x1a6)]()[0x0],_0x24978c=_0x446f9f[_0xa9062a(0x26e)](_0x39d9d1);if(!_0x24978c)return;this[_0xa9062a(0x251)](_0x24978c,!0x0),await this[_0xa9062a(0x1ee)][_0xa9062a(0x1ff)](g[_0xa9062a(0x16d)]['id'],{'unitId':_0x446f9f[_0xa9062a(0x227)](),'subUnitId':_0x39d9d1});return;}((_0x278270=_0x446f9f[_0xa9062a(0x261)]())==null?void 0x0:_0x278270['getSheetId']())!==_0x533b3c&&await this[_0xa9062a(0x1ee)]['executeCommand'](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x446f9f[_0xa9062a(0x227)](),'subUnitId':_0x533b3c});}},exports[_0x3e4096(0x295)]=ot([k(0x0,me),k(0x1,a[_0x3e4096(0x195)]),k(0x2,a[_0x3e4096(0x18f)]),k(0x3,a[_0x3e4096(0x3ca)](u[_0x3e4096(0x245)])),k(0x4,a['Optional'](Xe[_0x3e4096(0x327)]))],exports[_0x3e4096(0x295)]);var at=Object[_0x3e4096(0x2e2)],ct=(_0x5a8837,_0x2181fa,_0x275b42,_0x30cc7a)=>{const _0x3453f2=_0x3e4096;for(var _0x1f5fda=_0x30cc7a>0x1?void 0x0:_0x30cc7a?at(_0x2181fa,_0x275b42):_0x2181fa,_0x4b81d2=_0x5a8837[_0x3453f2(0x20a)]-0x1,_0x572f46;_0x4b81d2>=0x0;_0x4b81d2--)(_0x572f46=_0x5a8837[_0x4b81d2])&&(_0x1f5fda=_0x572f46(_0x1f5fda)||_0x1f5fda);return _0x1f5fda;},be=(_0x25b90b,_0x4e95be)=>(_0x43756e,_0x49b7a6)=>_0x4e95be(_0x43756e,_0x49b7a6,_0x25b90b);let ue=class extends a['RxDisposable']{constructor(_0x50ac9c,_0x2fb4a1){const _0x43b5c1=_0x3e4096;super(),this['_docClipboardService']=_0x50ac9c,this['_imageIoService']=_0x2fb4a1,this[_0x43b5c1(0x1e7)]();}[_0x3e4096(0x1e7)](){const _0x2503d7=_0x3e4096,_0x4af52b=this;this['disposeWithMe'](this[_0x2503d7(0x3bf)]['addClipboardHook']({'onBeforePasteImage':async _0x3326ea=>{const _0x57f170=_0x2503d7,_0x5774ea=await _0x4af52b[_0x57f170(0x389)][_0x57f170(0x3a9)](_0x3326ea);return _0x5774ea?{'source':_0x5774ea[_0x57f170(0x240)],'imageSourceType':_0x5774ea[_0x57f170(0x2bb)]}:null;}}));}};ue=ct([be(0x0,E[_0x3e4096(0x1b7)]),be(0x1,Ge[_0x3e4096(0x2fb)])],ue);const Oe=['purple.300',_0x3e4096(0x1b9),_0x3e4096(0x15a),'red.300',_0x3e4096(0x343),_0x3e4096(0x16c)];class Ce extends a[_0x3e4096(0x35c)]{constructor(){const _0x1b8929=_0x3e4096;super(...arguments),h(this,'_assignedColors',new Map()),h(this,_0x1b8929(0x1a4),0x0);}[_0x3e4096(0x2bd)](_0x307da8){const _0x3f525c=_0x3e4096;if(this[_0x3f525c(0x1d1)][_0x3f525c(0x1af)](_0x307da8))return this[_0x3f525c(0x1d1)][_0x3f525c(0x351)](_0x307da8);const _0xc90cae=Oe[this['_colorIndex']];return this[_0x3f525c(0x1a4)]=(this['_colorIndex']+0x1)%Oe[_0x3f525c(0x20a)],this[_0x3f525c(0x1d1)][_0x3f525c(0x369)](_0x307da8,_0xc90cae),_0xc90cae;}}function ye(_0x15e45d){const _0x63775d=_0x3e4096;let _0x4439f1='';for(const _0x403fb8 of _0x15e45d){const {startOffset:_0x1d015b,endOffset:_0x4b6841,isActive:_0x33e312,rangeType:_0x12dba3,segmentId:_0x44e63c,segmentPage:_0x2bd365}=_0x403fb8;_0x4439f1[_0x63775d(0x20a)]&&(_0x4439f1+=','),_0x4439f1+=_0x1d015b+':'+_0x4b6841+':'+(_0x33e312?'1':'0')+':'+_0x12dba3+':'+_0x44e63c+':'+_0x2bd365;}return _0x4439f1;}function lt(_0x4f1403){const _0x1e92fe=_0x3e4096,_0x51d73a=_0x4f1403['split'](','),_0x2e4b0b=[];for(const _0x50d371 of _0x51d73a){const [_0x1caebf,_0x6a7bed,_0x3a4827,_0x45dc3f,_0x31bc50,_0x230ac6]=_0x50d371['split'](':');_0x2e4b0b[_0x1e92fe(0x2b2)]({'startOffset':Number(_0x1caebf),'endOffset':Number(_0x6a7bed),'collapsed':_0x1caebf===_0x6a7bed,'isActive':_0x3a4827==='1','rangeType':_0x45dc3f===a['DOC_RANGE_TYPE']['TEXT']?a['DOC_RANGE_TYPE']['TEXT']:a['DOC_RANGE_TYPE'][_0x1e92fe(0x18d)],'segmentId':typeof _0x31bc50==_0x1e92fe(0x33d)?String(_0x31bc50):'','segmentPage':Number(_0x230ac6!=null?_0x230ac6:-0x1)});}return _0x2e4b0b[_0x1e92fe(0x288)](_0x43ffb2=>_0x43ffb2['isActive'])||(_0x2e4b0b[0x0]['isActive']=!0x0),_0x2e4b0b;}class pe extends a[_0x3e4096(0x168)]{constructor(){const _0x4590ce=_0x3e4096;super(...arguments),h(this,_0x4590ce(0x352),new d[(_0x4590ce(0x1db))](null)),h(this,_0x4590ce(0x2e5),this[_0x4590ce(0x352)][_0x4590ce(0x1cf)]());}[_0x3e4096(0x1fd)](_0x10b98d){const _0x1031b0=_0x3e4096,{unitID:_0x333439,memberID:_0xf81715,textRanges:_0x206a0f}=_0x10b98d,_0x47a545=ye(_0x206a0f);if(_0x47a545==='')return;const _0x210ff0={'unitID':_0x333439,'memberID':_0xf81715,'selection':_0x47a545};this['_collabCursorState$'][_0x1031b0(0x2f4)](_0x210ff0);}}var _t=Object[_0x3e4096(0x2e2)],ht=(_0x54126d,_0x40990e,_0x3c9f47,_0x5e467b)=>{for(var _0x4faa1b=_0x5e467b>0x1?void 0x0:_0x5e467b?_t(_0x40990e,_0x3c9f47):_0x40990e,_0x168266=_0x54126d['length']-0x1,_0x4372e9;_0x168266>=0x0;_0x168266--)(_0x4372e9=_0x54126d[_0x168266])&&(_0x4faa1b=_0x4372e9(_0x4faa1b)||_0x4faa1b);return _0x4faa1b;},L=(_0x48cb8d,_0x24a386)=>(_0x10dc2f,_0x2c027a)=>_0x24a386(_0x10dc2f,_0x2c027a,_0x48cb8d);const ut=0x12c,dt=0x64;let de=class extends a[_0x3e4096(0x168)]{constructor(_0x24b9c4,_0x4601b7,_0x223d57,_0x2ea8f6,_0x4b506f,_0xb323f9,_0x3e02a6,_0x36f225,_0x31305e){const _0x2d3572=_0x3e4096;super(),h(this,'_online',!0x1),h(this,_0x2d3572(0x1e7),!0x1),h(this,_0x2d3572(0x381),new d[(_0x2d3572(0x1db))](new Map())),h(this,_0x2d3572(0x22f),this['_cursorInfo$']['asObservable']()),h(this,'_roomMembers$',new d['BehaviorSubject']([])),h(this,'roomMembers$',this[_0x2d3572(0x2fa)]['pipe'](d['debounceTime'](ut))),h(this,'_updateLocalCursor',a[_0x2d3572(0x266)](_0x41800b=>{const _0x354c36=_0x2d3572,_0x2aaa6e={'eventID':m[_0x354c36(0x165)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x354c36(0x397)],'memberID':this[_0x354c36(0x298)][_0x354c36(0x2b9)](),'selection':ye(_0x41800b)}};this['_session'][_0x354c36(0x2d0)](_0x2aaa6e,this[_0x354c36(0x397)]);},dt)),(this[_0x2d3572(0x397)]=_0x24b9c4,this[_0x2d3572(0x298)]=_0x4601b7,this[_0x2d3572(0x37b)]=_0x223d57,this[_0x2d3572(0x2e7)]=_0x2ea8f6,this['_memberService']=_0x4b506f,this['_syncEditingCollabCursorService']=_0xb323f9,this[_0x2d3572(0x323)]=_0x3e02a6,this[_0x2d3572(0x22a)]=_0x36f225,this[_0x2d3572(0x1ee)]=_0x31305e);}get['cursorInfo'](){const _0x26058e=_0x3e4096;return this[_0x26058e(0x381)]['getValue']();}get[_0x3e4096(0x2bf)](){const _0x535e38=_0x3e4096;return this[_0x535e38(0x2fa)][_0x535e38(0x23f)]();}[_0x3e4096(0x296)](){const _0x42fa82=_0x3e4096;super[_0x42fa82(0x296)](),this[_0x42fa82(0x381)]['next'](new Map()),this[_0x42fa82(0x381)][_0x42fa82(0x214)](),this[_0x42fa82(0x2fa)][_0x42fa82(0x2f4)]([]),this['_roomMembers$'][_0x42fa82(0x214)]();}['init'](){const _0xe1735c=_0x3e4096;this[_0xe1735c(0x1e7)]||(this[_0xe1735c(0x1e7)]=!0x0,this[_0xe1735c(0x298)][_0xe1735c(0x33a)][_0xe1735c(0x2a0)](d[_0xe1735c(0x3c0)](this[_0xe1735c(0x1d0)]))[_0xe1735c(0x290)](_0x5345f2=>{const _0x3d4fc2=_0xe1735c;_0x5345f2===u[_0x3d4fc2(0x180)][_0x3d4fc2(0x313)]?this[_0x3d4fc2(0x32d)]():this['_toggleOffline']();}),this['_session'][_0xe1735c(0x1fb)]['pipe'](d[_0xe1735c(0x3c0)](this[_0xe1735c(0x1d0)]))['subscribe'](_0x3b2c94=>{const _0x149a95=_0xe1735c,_0x1ab09f=_0x3b2c94[_0x149a95(0x39d)];_0x1ab09f===m[_0x149a95(0x165)][_0x149a95(0x1f4)]&&this[_0x149a95(0x2ad)](_0x3b2c94),_0x1ab09f===m[_0x149a95(0x165)][_0x149a95(0x377)]&&this[_0x149a95(0x177)](_0x3b2c94);}),this[_0xe1735c(0x2c2)](this['_commandService'][_0xe1735c(0x1b4)](_0x52f80a=>{const _0x5e40e2=_0xe1735c,_0x3ec78a=_0x52f80a['params'];_0x3ec78a!=null&&this[_0x5e40e2(0x281)]&&_0x52f80a['id']===Y[_0x5e40e2(0x21b)]['id']&&_0x3ec78a[_0x5e40e2(0x20c)]===this[_0x5e40e2(0x397)]&&_0x3ec78a[_0x5e40e2(0x31f)]===!0x1&&_0x3ec78a['ranges']['length']>0x0&&this[_0x5e40e2(0x365)](_0x3ec78a[_0x5e40e2(0x217)]);})),this[_0xe1735c(0x20e)][_0xe1735c(0x2e5)][_0xe1735c(0x2a0)](d[_0xe1735c(0x3c0)](this[_0xe1735c(0x1d0)]))[_0xe1735c(0x290)](_0x49500e=>{const _0x56a187=_0xe1735c;if((_0x49500e==null?void 0x0:_0x49500e['unitID'])!==this[_0x56a187(0x397)])return;const _0x4012d8={'eventID':m[_0x56a187(0x165)][_0x56a187(0x1f4)],'data':_0x49500e};this['_onCursorUpdate'](_0x4012d8);}),this['disposeWithMe'](this[_0xe1735c(0x1ee)]['onCommandExecuted'](_0x3f51f5=>{const _0x13cb7f=_0xe1735c;if(_0x3f51f5[_0x13cb7f(0x1bb)]==null)return;const _0xe32ad3=_0x3f51f5['params'];if(_0x3f51f5['id']!==Y[_0x13cb7f(0x186)]['id']||_0xe32ad3['unitId']!==this[_0x13cb7f(0x397)])return;const _0x408b9b={'id':_0x13cb7f(0x1e0),'params':_0xe32ad3},_0xe0e9a6=this[_0x13cb7f(0x30e)];for(const [_0x3a87e2,_0x47b526]of _0xe0e9a6){const _0x4c0685={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x13cb7f(0x397)],'actions':null,'textRanges':_0x47b526[_0x13cb7f(0x217)]}},_0xc991ce=this[_0x13cb7f(0x323)][_0x13cb7f(0x29f)](_0x408b9b,_0x4c0685,!0x1);if(m[_0x13cb7f(0x300)](_0xc991ce))throw _0xc991ce[_0x13cb7f(0x24d)];_0xe0e9a6['set'](_0x3a87e2,{..._0x47b526,'ranges':_0xc991ce['m2Prime'][_0x13cb7f(0x1bb)][_0x13cb7f(0x2f1)]});}queueMicrotask(()=>{const _0x4c01ad=_0x13cb7f;this['_cursorInfo$'][_0x4c01ad(0x2f4)](_0xe0e9a6);});})));}[_0x3e4096(0x2ad)](_0x4d78f4){const _0x43e95a=_0x3e4096;var _0x2878aa,_0x1e3c6f;const {memberID:_0x6fdd22,selection:_0x1075ca}=_0x4d78f4[_0x43e95a(0x1da)],_0x18b5c5=lt(_0x1075ca),_0x3267a2=(_0x1e3c6f=(_0x2878aa=this[_0x43e95a(0x310)][_0x43e95a(0x3aa)](this[_0x43e95a(0x397)],_0x6fdd22))==null?void 0x0:_0x2878aa[_0x43e95a(0x23c)])!=null?_0x1e3c6f:_0x43e95a(0x3bd),_0x4a6b2d={'color':this['_colorAssignService'][_0x43e95a(0x2bd)](_0x6fdd22),'name':_0x3267a2,'ranges':_0x18b5c5},_0x5e8188=this['cursorInfo'];_0x5e8188[_0x43e95a(0x369)](_0x6fdd22,_0x4a6b2d),this[_0x43e95a(0x381)][_0x43e95a(0x2f4)](_0x5e8188);}[_0x3e4096(0x177)](_0x19ed1a){const _0x2b8406=_0x3e4096,{memberID:_0x3dbef8}=_0x19ed1a[_0x2b8406(0x1da)],_0x169135=this['cursorInfo'];_0x169135[_0x2b8406(0x1f8)](_0x3dbef8),this['_cursorInfo$'][_0x2b8406(0x2f4)](_0x169135);}['_toggleOnline'](){const _0x2fd944=_0x3e4096;var _0x2ec440;if(this['_online']=!0x0,((_0x2ec440=this['_univerInstanceService'][_0x2fd944(0x358)]())==null?void 0x0:_0x2ec440[_0x2fd944(0x227)]())!==this[_0x2fd944(0x397)])return;const _0x41ae0b=this[_0x2fd944(0x37b)][_0x2fd944(0x351)](Y[_0x2fd944(0x2de)])[_0x2fd944(0x20b)]();Array[_0x2fd944(0x27a)](_0x41ae0b)&&_0x41ae0b[_0x2fd944(0x20a)]>0x0&&this['_updateLocalCursor'](_0x41ae0b);}['_toggleOffline'](){const _0x53e5b3=_0x3e4096;this[_0x53e5b3(0x281)]=!0x1;}};de=ht([L(0x2,a[_0x3e4096(0x3ca)](a['Injector'])),L(0x3,a['Inject'](Ce)),L(0x4,a['Inject'](u[_0x3e4096(0x29b)])),L(0x5,a[_0x3e4096(0x3ca)](pe)),L(0x6,m['ITransformService']),L(0x7,a[_0x3e4096(0x3ac)]),L(0x8,a[_0x3e4096(0x18f)])],de);var St=Object['getOwnPropertyDescriptor'],ft=(_0x481c95,_0x8d20b5,_0x2f6e20,_0x2897ea)=>{const _0x3e4761=_0x3e4096;for(var _0x500996=_0x2897ea>0x1?void 0x0:_0x2897ea?St(_0x8d20b5,_0x2f6e20):_0x8d20b5,_0x1c96be=_0x481c95[_0x3e4761(0x20a)]-0x1,_0x2034a7;_0x1c96be>=0x0;_0x1c96be--)(_0x2034a7=_0x481c95[_0x1c96be])&&(_0x500996=_0x2034a7(_0x500996)||_0x500996);return _0x500996;},A=(_0x57c49c,_0x55581a)=>(_0x4473d2,_0x1a7951)=>_0x55581a(_0x4473d2,_0x1a7951,_0x57c49c);const It=0x12c,vt=0x64,gt=()=>{let _0xa42d75=[],_0x4e8124=!0x1;return _0x1520c1=>{const _0x4d3523=_0x6398;_0xa42d75[_0x4d3523(0x2b2)](_0x1520c1),_0x4e8124||(_0x4e8124=!0x0,setTimeout(()=>{const _0x2f1e2b=_0x4d3523;_0xa42d75[_0x2f1e2b(0x268)](_0x160f46=>_0x160f46()),_0xa42d75=[],_0x4e8124=!0x1;}));};};let Se=class extends a['RxDisposable']{constructor(_0x2a300d,_0x1932c6,_0x53b1ba,_0x35fc8e,_0x10b0cf,_0x83f223,_0x238f41,_0x47c7aa){const _0x5ac3e2=_0x3e4096;super(),h(this,_0x5ac3e2(0x281),!0x1),h(this,_0x5ac3e2(0x1e7),!0x1),h(this,_0x5ac3e2(0x381),new d['BehaviorSubject'](new Map())),h(this,_0x5ac3e2(0x22f),this[_0x5ac3e2(0x381)]['asObservable']()),h(this,_0x5ac3e2(0x2fa),new d[(_0x5ac3e2(0x1db))]([])),h(this,_0x5ac3e2(0x216),this['_roomMembers$'][_0x5ac3e2(0x2a0)](d[_0x5ac3e2(0x19d)](It))),h(this,_0x5ac3e2(0x365),a[_0x5ac3e2(0x266)]((_0x15a40f,_0x10ee53)=>{const _0x298cc6=_0x5ac3e2,_0x17cb8a={'eventID':m[_0x298cc6(0x165)][_0x298cc6(0x1f4)],'data':{'unitID':this[_0x298cc6(0x397)],'memberID':this[_0x298cc6(0x298)][_0x298cc6(0x2b9)](),'selection':Ee[_0x298cc6(0x2b7)](_0x15a40f,_0x10ee53[_0x298cc6(0x315)])}};this[_0x298cc6(0x298)][_0x298cc6(0x2d0)](_0x17cb8a,this[_0x298cc6(0x397)]);},vt)),(this[_0x5ac3e2(0x397)]=_0x2a300d,this[_0x5ac3e2(0x298)]=_0x1932c6,this[_0x5ac3e2(0x37b)]=_0x53b1ba,this[_0x5ac3e2(0x2e7)]=_0x35fc8e,this[_0x5ac3e2(0x310)]=_0x10b0cf,this[_0x5ac3e2(0x22a)]=_0x83f223,this['_commandService']=_0x238f41,this[_0x5ac3e2(0x331)]=_0x47c7aa);}get[_0x3e4096(0x30e)](){const _0x2ff90=_0x3e4096;return this['_cursorInfo$'][_0x2ff90(0x23f)]();}get['roomMembers'](){const _0x405750=_0x3e4096;return this[_0x405750(0x2fa)][_0x405750(0x23f)]();}[_0x3e4096(0x296)](){const _0x45e2c2=_0x3e4096;super[_0x45e2c2(0x296)](),this[_0x45e2c2(0x381)][_0x45e2c2(0x2f4)](new Map()),this['_cursorInfo$']['complete'](),this['_roomMembers$'][_0x45e2c2(0x2f4)]([]),this['_roomMembers$']['complete']();}[_0x3e4096(0x2ec)](){const _0x20dd01=_0x3e4096;this[_0x20dd01(0x1e7)]||(this[_0x20dd01(0x1e7)]=!0x0,this[_0x20dd01(0x298)][_0x20dd01(0x33a)][_0x20dd01(0x2a0)](d[_0x20dd01(0x3c0)](this[_0x20dd01(0x1d0)]))[_0x20dd01(0x290)](_0x4bfc1e=>{const _0x23bbd0=_0x20dd01;_0x4bfc1e===u['SessionStatus']['ONLINE']?this[_0x23bbd0(0x32d)]():this[_0x23bbd0(0x208)]();}),this[_0x20dd01(0x298)][_0x20dd01(0x1fb)][_0x20dd01(0x2a0)](d['takeUntil'](this[_0x20dd01(0x1d0)]))['subscribe'](_0x518337=>{const _0x235b7a=_0x20dd01,_0x7c965b=_0x518337[_0x235b7a(0x39d)];_0x7c965b===m[_0x235b7a(0x165)]['UPDATE_CURSOR']&&this[_0x235b7a(0x2ad)](_0x518337),_0x7c965b===m[_0x235b7a(0x165)][_0x235b7a(0x377)]&&this[_0x235b7a(0x177)](_0x518337);}),this[_0x20dd01(0x2dc)](),this[_0x20dd01(0x2c2)](this['_commandService'][_0x20dd01(0x1b4)](_0x22f223=>{const _0x39fd9c=_0x20dd01;if(this['_online']&&_0x22f223['id']===g[_0x39fd9c(0x3a7)]['id']&&_0x22f223[_0x39fd9c(0x1bb)][_0x39fd9c(0x20c)]===this[_0x39fd9c(0x397)]){const _0x1c0b14=_0x22f223['params'];this['_updateLocalCursor'](_0x1c0b14[_0x39fd9c(0x3ab)],_0x1c0b14[_0x39fd9c(0x396)][0x0]);}})));}[_0x3e4096(0x2ad)](_0x2ceed5){const _0x5e1218=_0x3e4096;var _0x360e1b,_0x30b73d;const {memberID:_0x5e4d0b,selection:_0x1c2197}=_0x2ceed5[_0x5e1218(0x1da)],{sheetName:_0x416f06,range:_0x258639}=Ee[_0x5e1218(0x394)](_0x1c2197),_0x35c2e4={'name':(_0x30b73d=(_0x360e1b=this['_memberService'][_0x5e1218(0x3aa)](this['unitID'],_0x5e4d0b))==null?void 0x0:_0x360e1b[_0x5e1218(0x23c)])!=null?_0x30b73d:'Unknown\x20user','range':this[_0x5e1218(0x29d)](_0x416f06,_0x258639),'sheetID':_0x416f06,'color':this['_colorAssignService'][_0x5e1218(0x2bd)](_0x5e4d0b),'selection':_0x1c2197},_0x12d1af=this[_0x5e1218(0x30e)];_0x12d1af[_0x5e1218(0x369)](_0x5e4d0b,_0x35c2e4),this[_0x5e1218(0x381)][_0x5e1218(0x2f4)](_0x12d1af);}[_0x3e4096(0x177)](_0x57a87c){const _0x57f2fe=_0x3e4096,{memberID:_0x419d16}=_0x57a87c[_0x57f2fe(0x1da)],_0x3fb7b6=this[_0x57f2fe(0x30e)];_0x3fb7b6['delete'](_0x419d16),this[_0x57f2fe(0x381)][_0x57f2fe(0x2f4)](_0x3fb7b6);}['_getMergeRange'](_0x5b690a,_0x57a21a){const _0x5932e2=_0x3e4096;var _0xf7c698,_0x42767e;const _0x1d4b94=(_0x42767e=(_0xf7c698=this[_0x5932e2(0x22a)][_0x5932e2(0x1de)](this['unitID']))==null?void 0x0:_0xf7c698[_0x5932e2(0x26e)](_0x5b690a))==null?void 0x0:_0x42767e[_0x5932e2(0x2d3)]();return(_0x1d4b94==null?void 0x0:_0x1d4b94[_0x5932e2(0x2ff)](_0x4b987f=>a['Rectangle'][_0x5932e2(0x256)](_0x4b987f,_0x57a21a)))||_0x57a21a;}[_0x3e4096(0x2dc)](){const _0x42147d=_0x3e4096,_0x815290=new a['DisposableCollection'](),_0x1fa97d=gt(),_0x2f5533=()=>{const _0x3da54f=_0x6398;_0x815290[_0x3da54f(0x296)]();const _0x31e595=(_0x4bd140,_0xbca8d4,_0x2aa084,_0x473ce0)=>{const _0x46c1fb=_0x3da54f;let _0x522f9a=[];switch(_0x4bd140['id']){case g['EffectRefRangId'][_0x46c1fb(0x2bc)]:{_0x522f9a=g[_0x46c1fb(0x2a9)](_0x4bd140,_0x473ce0);break;}case g['EffectRefRangId'][_0x46c1fb(0x1c2)]:{_0x522f9a=g[_0x46c1fb(0x203)](_0x4bd140,_0x473ce0);break;}case g[_0x46c1fb(0x308)][_0x46c1fb(0x276)]:{_0x522f9a=g[_0x46c1fb(0x1b6)](_0x4bd140,_0x473ce0);break;}case g[_0x46c1fb(0x308)]['InsertRangeMoveDownCommandId']:{_0x522f9a=g[_0x46c1fb(0x2f9)](_0x4bd140,_0x473ce0);break;}case g[_0x46c1fb(0x308)][_0x46c1fb(0x28e)]:{_0x522f9a=g[_0x46c1fb(0x2b0)](_0x4bd140,_0x473ce0);break;}case g['EffectRefRangId'][_0x46c1fb(0x2e9)]:{_0x522f9a=g[_0x46c1fb(0x2ca)](_0x4bd140,_0x473ce0);break;}case g[_0x46c1fb(0x308)][_0x46c1fb(0x190)]:{_0x522f9a=g[_0x46c1fb(0x25d)](_0x4bd140,_0x473ce0);break;}case g['EffectRefRangId'][_0x46c1fb(0x215)]:{_0x522f9a=g['handleIRemoveCol'](_0x4bd140,_0x473ce0);break;}case g[_0x46c1fb(0x308)][_0x46c1fb(0x19b)]:{_0x522f9a=g[_0x46c1fb(0x15e)](_0x4bd140,_0x473ce0);break;}}const _0x569ec4=g[_0x46c1fb(0x1cb)](_0x522f9a,_0x473ce0),_0x4a82bb=this[_0x46c1fb(0x30e)][_0x46c1fb(0x351)](_0xbca8d4);if(_0x4a82bb&&_0x569ec4){const _0x28f9f8={..._0x4a82bb,'range':_0x569ec4};this[_0x46c1fb(0x30e)][_0x46c1fb(0x369)](_0xbca8d4,_0x28f9f8),_0x1fa97d(()=>{const _0xe988d3=_0x46c1fb,_0x53bf29=this[_0xe988d3(0x331)][_0xe988d3(0x2f2)](_0x569ec4,_0x31d59e=>(_0x53bf29[_0xe988d3(0x296)](),_0x31e595(_0x31d59e,_0xbca8d4,_0x2aa084,_0x569ec4)));_0x815290[_0xe988d3(0x176)](_0x53bf29);});}return{'redos':[],'undos':[]};};this[_0x3da54f(0x30e)][_0x3da54f(0x268)]((_0x58ce11,_0x57cab3)=>{const _0x41af2b=_0x3da54f,{range:_0x2f5b85,sheetID:_0x27a7b5}=_0x58ce11,_0x273dde=this['_refRangeService'][_0x41af2b(0x2f2)](_0x2f5b85,_0x39d654=>(_0x273dde['dispose'](),_0x31e595(_0x39d654,_0x57cab3,_0x27a7b5,_0x2f5b85)));_0x815290[_0x41af2b(0x176)](_0x273dde);});};this[_0x42147d(0x2c2)](a[_0x42147d(0x219)](this['_cursorInfo$']['subscribe'](()=>{_0x2f5533();})));}[_0x3e4096(0x32d)](){const _0x11b6b4=_0x3e4096;var _0x26a6b7,_0x17c562;if(this[_0x11b6b4(0x281)]=!0x0,((_0x26a6b7=this['_univerInstanceService'][_0x11b6b4(0x358)]())==null?void 0x0:_0x26a6b7['getUnitId']())!==this[_0x11b6b4(0x397)])return;const _0x5e4a3a=(_0x17c562=this['_injector']['get'](g[_0x11b6b4(0x339)])['getCurrentSelections']())==null?void 0x0:_0x17c562[0x0],_0x29821e=this[_0x11b6b4(0x22a)]['getCurrentUnitForType'](a['UniverInstanceType']['UNIVER_SHEET'])['getActiveSheet']();_0x5e4a3a&&_0x29821e&&this[_0x11b6b4(0x365)](_0x29821e['getSheetId'](),_0x5e4a3a);}[_0x3e4096(0x208)](){this['_online']=!0x1;}};Se=ft([A(0x2,a[_0x3e4096(0x3ca)](a[_0x3e4096(0x3d7)])),A(0x3,a[_0x3e4096(0x3ca)](Ce)),A(0x4,a[_0x3e4096(0x3ca)](u[_0x3e4096(0x29b)])),A(0x5,a[_0x3e4096(0x3ac)]),A(0x6,a['ICommandService']),A(0x7,a[_0x3e4096(0x3ca)](g[_0x3e4096(0x348)]))],Se);var mt=Object[_0x3e4096(0x2e2)],Ct=(_0x2645d8,_0x371624,_0x66d983,_0x5334fa)=>{const _0x45b4d8=_0x3e4096;for(var _0x3f0292=_0x5334fa>0x1?void 0x0:_0x5334fa?mt(_0x371624,_0x66d983):_0x371624,_0x4bde5c=_0x2645d8[_0x45b4d8(0x20a)]-0x1,_0x20ed9b;_0x4bde5c>=0x0;_0x4bde5c--)(_0x20ed9b=_0x2645d8[_0x4bde5c])&&(_0x3f0292=_0x20ed9b(_0x3f0292)||_0x3f0292);return _0x3f0292;},ie=(_0x9d0bb4,_0x3f1447)=>(_0x107502,_0x4e5835)=>_0x3f1447(_0x107502,_0x4e5835,_0x9d0bb4);let x=class extends a[_0x3e4096(0x168)]{constructor(_0x11e0fe,_0x5e5158,_0x2a362e){const _0x299af2=_0x3e4096;super(),h(this,'_entities',new Map()),h(this,_0x299af2(0x27d),new d[(_0x299af2(0x2d1))]()),(this['_univerInstanceService']=_0x11e0fe,this[_0x299af2(0x37b)]=_0x5e5158,this[_0x299af2(0x301)]=_0x2a362e,this[_0x299af2(0x1e7)]());}[_0x3e4096(0x296)](){const _0x1161aa=_0x3e4096;super['dispose'](),this[_0x1161aa(0x27d)][_0x1161aa(0x214)](),this[_0x1161aa(0x1ad)][_0x1161aa(0x268)](_0x2d59d4=>_0x2d59d4[_0x1161aa(0x296)]());}['getCollabCursors$'](_0x3bd18e){const _0x2dde26=_0x3e4096;return this[_0x2dde26(0x1ad)]['has'](_0x3bd18e)?this[_0x2dde26(0x1ad)][_0x2dde26(0x351)](_0x3bd18e)[_0x2dde26(0x22f)]:this[_0x2dde26(0x27d)]['pipe'](d[_0x2dde26(0x16e)](_0x3b65cb=>_0x3b65cb[_0x2dde26(0x397)]===_0x3bd18e),d['switchMap'](_0x4319b8=>_0x4319b8[_0x2dde26(0x22f)]));}[_0x3e4096(0x1e7)](){const _0x37113d=_0x3e4096;this[_0x37113d(0x22a)][_0x37113d(0x156)](a['UniverInstanceType'][_0x37113d(0x17f)])[_0x37113d(0x2a0)](d[_0x37113d(0x3c0)](this[_0x37113d(0x1d0)]))['subscribe'](async _0x4de8e2=>{const _0x2b53ad=_0x37113d,_0x541ba9=_0x4de8e2[_0x2b53ad(0x227)](),_0x16e76f=await this[_0x2b53ad(0x3d6)](_0x541ba9);this[_0x2b53ad(0x27d)][_0x2b53ad(0x2f4)](_0x16e76f),this[_0x2b53ad(0x1ad)][_0x2b53ad(0x369)](_0x541ba9,_0x16e76f);}),this[_0x37113d(0x22a)]['getTypeOfUnitAdded$'](a[_0x37113d(0x3cb)][_0x37113d(0x1cc)])[_0x37113d(0x2a0)](d[_0x37113d(0x3c0)](this[_0x37113d(0x1d0)]))[_0x37113d(0x2a0)](d[_0x37113d(0x16e)](_0x15df5e=>!_0x15df5e[_0x37113d(0x227)]()[_0x37113d(0x1e4)]('__')))[_0x37113d(0x290)](async _0x5f4910=>{const _0x53e9e0=_0x37113d,_0x4eba44=_0x5f4910[_0x53e9e0(0x227)](),_0x2af6e5=await this[_0x53e9e0(0x38b)](_0x4eba44);this[_0x53e9e0(0x27d)][_0x53e9e0(0x2f4)](_0x2af6e5),this[_0x53e9e0(0x1ad)][_0x53e9e0(0x369)](_0x4eba44,_0x2af6e5);}),d['merge'](this[_0x37113d(0x22a)][_0x37113d(0x255)](a[_0x37113d(0x3cb)][_0x37113d(0x1cc)]),this[_0x37113d(0x22a)]['getTypeOfUnitDisposed$'](a[_0x37113d(0x3cb)][_0x37113d(0x17f)]))[_0x37113d(0x2a0)](d[_0x37113d(0x3c0)](this[_0x37113d(0x1d0)]))['subscribe'](_0x2fa51f=>{const _0x5b0c10=_0x37113d,_0x4da8be=_0x2fa51f[_0x5b0c10(0x227)](),_0x12db82=this[_0x5b0c10(0x1ad)]['get'](_0x4da8be);_0x12db82&&(_0x12db82[_0x5b0c10(0x296)](),this[_0x5b0c10(0x1ad)][_0x5b0c10(0x1f8)](_0x4da8be));});}async[_0x3e4096(0x3d6)](_0x54e4b1){const _0x1b63fb=_0x3e4096,_0x3c135f=await this['_collabSessionService']['requireSession'](_0x54e4b1),_0x352d9f=this['_injector'][_0x1b63fb(0x1f3)](Se,_0x54e4b1,_0x3c135f);return _0x352d9f[_0x1b63fb(0x2ec)](),_0x352d9f;}async['_startDocCollabCursor'](_0x28edb1){const _0x1ec287=_0x3e4096,_0x3d3e36=await this[_0x1ec287(0x301)][_0x1ec287(0x17e)](_0x28edb1),_0x108c26=this[_0x1ec287(0x37b)][_0x1ec287(0x1f3)](de,_0x28edb1,_0x3d3e36);return _0x108c26[_0x1ec287(0x2ec)](),_0x108c26;}};x=Ct([ie(0x0,a['IUniverInstanceService']),ie(0x1,a[_0x3e4096(0x3ca)](a['Injector'])),ie(0x2,a[_0x3e4096(0x3ca)](u[_0x3e4096(0x244)]))],x);const W=0x14,Te=0xc8,ne=0x4,pt=0x5;function Et(_0x599785,_0x3e07af){const _0xc3646c=_0x3e4096;let {radius:_0x39d977,width:_0x34cc22,height:_0x2850a9}=_0x3e07af;_0x39d977=_0x39d977!=null?_0x39d977:0x0,_0x34cc22=_0x34cc22!=null?_0x34cc22:0x1e,_0x2850a9=_0x2850a9!=null?_0x2850a9:0x1e;let _0x2ee7e0=0x0,_0x4828aa=0x0,_0x5dd838=0x0;_0x2ee7e0=_0x4828aa=_0x5dd838=Math['min'](_0x39d977,_0x34cc22/0x2,_0x2850a9/0x2),_0x599785[_0xc3646c(0x21f)](),_0x599785[_0xc3646c(0x2ae)](_0x2ee7e0,0x0),_0x599785[_0xc3646c(0x22c)](_0x34cc22-_0x4828aa,0x0),_0x599785[_0xc3646c(0x3c5)](_0x34cc22-_0x4828aa,_0x4828aa,_0x4828aa,Math['PI']*0x3/0x2,0x0,!0x1),_0x599785[_0xc3646c(0x22c)](_0x34cc22,_0x2850a9-_0x5dd838),_0x599785[_0xc3646c(0x3c5)](_0x34cc22-_0x5dd838,_0x2850a9-_0x5dd838,_0x5dd838,0x0,Math['PI']/0x2,!0x1),_0x599785['lineTo'](0x0,_0x2850a9),_0x599785[_0xc3646c(0x22c)](0x0,_0x2ee7e0),_0x599785[_0xc3646c(0x3c5)](_0x2ee7e0,_0x2ee7e0,_0x2ee7e0,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x599785[_0xc3646c(0x3d3)](),_0x3e07af[_0xc3646c(0x372)]&&(_0x599785['save'](),_0x599785[_0xc3646c(0x364)]=_0x3e07af['fill'],_0x3e07af[_0xc3646c(0x3d2)]===_0xc3646c(0x25a)?_0x599785['fill']('evenodd'):_0x599785[_0xc3646c(0x372)](),_0x599785['restore']());}class ee extends p[_0x3e4096(0x1b0)]{constructor(_0x440110,_0x7e7025){const _0x3b7c16=_0x3e4096;super(_0x440110,_0x7e7025),h(this,'color'),h(this,_0x3b7c16(0x353)),(this[_0x3b7c16(0x26f)]=_0x7e7025==null?void 0x0:_0x7e7025[_0x3b7c16(0x26f)],this[_0x3b7c16(0x353)]=_0x7e7025==null?void 0x0:_0x7e7025[_0x3b7c16(0x353)]);}static[_0x3e4096(0x25f)](_0x2458f7,_0x4afa79){const _0x205978=_0x3e4096,{text:_0x36d0e0,color:_0x2e8933}=_0x4afa79;_0x2458f7['save'](),_0x2458f7['font']=_0x205978(0x252);const _0x4f1ebb=_0x2458f7[_0x205978(0x1a5)](_0x36d0e0)[_0x205978(0x26c)],_0x5bf974=Math['min'](_0x4f1ebb+0x2*ne,Te);Et(_0x2458f7,{'height':W,'radius':0x4,'width':_0x5bf974,'fill':_0x2e8933}),_0x2458f7['fillStyle']=_0x205978(0x280);const _0x29d890=ne,_0x1d5577=W-pt,_0x4e1420=Te-0x2*ne;if(_0x4f1ebb>_0x4e1420){let _0x284212='',_0x5b1841=0x0;for(const _0x50d547 of _0x36d0e0){const _0x305a8d=_0x2458f7[_0x205978(0x1a5)](_0x50d547)['width'];if(_0x5b1841+_0x305a8d<=_0x4e1420-_0x2458f7[_0x205978(0x1a5)](_0x205978(0x159))[_0x205978(0x26c)])_0x284212+=_0x50d547,_0x5b1841+=_0x305a8d;else{_0x284212+=_0x205978(0x159);break;}}_0x2458f7['fillText'](_0x284212,_0x29d890,_0x1d5577);}else _0x2458f7[_0x205978(0x2fd)](_0x36d0e0,_0x29d890,_0x1d5577);_0x2458f7[_0x205978(0x170)]();}[_0x3e4096(0x2c0)](_0x582645){const _0x18ea3e=_0x3e4096;ee[_0x18ea3e(0x25f)](_0x582645,this);}}const re=_0x3e4096(0x182),bt='collab-text-range-',Ot=_0x3e4096(0x225),F=0x6,Tt=1.5,oe=0x4,Rt=1.5,Dt=_0x3e4096(0x318);class Re{constructor(_0x425e90,_0x3fd242,_0x173583,_0x43dcac){const _0x333f74=_0x3e4096;h(this,_0x333f74(0x1b2),[]),h(this,_0x333f74(0x338),null),h(this,_0x333f74(0x375),null),h(this,_0x333f74(0x16f),null),h(this,_0x333f74(0x250),null),h(this,_0x333f74(0x1c5),null),(this[_0x333f74(0x163)]=_0x425e90,this[_0x333f74(0x231)]=_0x3fd242,this[_0x333f74(0x2ed)]=_0x173583,this[_0x333f74(0x2b5)]=_0x43dcac,this['_render']());}set['_hover'](_0x37625d){const _0x541fa6=_0x3e4096;_0x37625d?(this[_0x541fa6(0x16f)]&&this[_0x541fa6(0x16f)][_0x541fa6(0x332)](),this[_0x541fa6(0x375)]&&this[_0x541fa6(0x375)][_0x541fa6(0x2cb)]()):(this[_0x541fa6(0x16f)]&&this[_0x541fa6(0x16f)][_0x541fa6(0x2cb)](),this['_textBubble']&&this[_0x541fa6(0x375)][_0x541fa6(0x332)]());}[_0x3e4096(0x296)](){const _0x3ea802=_0x3e4096;for(const _0x51198d of this[_0x3ea802(0x1b2)])_0x51198d[_0x3ea802(0x296)]();this[_0x3ea802(0x375)]&&this['_textBubble']['dispose'](),this[_0x3ea802(0x16f)]&&this[_0x3ea802(0x16f)]['dispose'](),this[_0x3ea802(0x338)]&&this['_anchor'][_0x3ea802(0x296)](),this['_eventUnsubscribe']&&this[_0x3ea802(0x1c5)]();}['_render'](){const _0x2f5311=_0x3e4096;var _0x1ef1a8;const {_docSkeleton:_0x3d6c90,_document:_0x4285fd}=this,{color:_0x56316b,name:_0x7f5b89,ranges:_0x319003}=this[_0x2f5311(0x163)],_0x422be6=_0x4285fd[_0x2f5311(0x307)](),{docsLeft:_0x26c867,docsTop:_0x3e4b72}=_0x422be6,_0x23b4d0=new E[(_0x2f5311(0x24b))](_0x422be6,_0x3d6c90);for(const {startOffset:_0x133674,endOffset:_0x38d13f,rangeType:_0xc63621,segmentId:_0x4495e3,segmentPage:_0x18cfcd,collapsed:_0x2aea2b,isActive:_0x487d2f}of _0x319003){const _0x2d61ce=_0x3d6c90[_0x2f5311(0x230)](_0x133674,!0x0,_0x4495e3,_0x18cfcd);let _0x537f58=_0x3d6c90[_0x2f5311(0x230)](_0x38d13f,!0x0,_0x4495e3,_0x18cfcd);if(_0x537f58==null&&(_0x537f58=_0x3d6c90['findNodePositionByCharIndex'](_0x38d13f-0x1,!0x1,_0x4495e3,_0x18cfcd)),_0x487d2f){const {contentBoxPointGroup:_0x3be255}=_0x23b4d0[_0x2f5311(0x235)](_0x537f58,_0x537f58);if(_0x3be255['length']===0x0)continue;this['_drawAnchor'](_0x56316b,_0x3be255,_0x26c867,_0x3e4b72,_0x7f5b89),this[_0x2f5311(0x1c5)]=this[_0x2f5311(0x1fa)]();}if(_0x2d61ce&&_0x537f58){if(_0xc63621===a[_0x2f5311(0x3b4)][_0x2f5311(0x18d)]){const _0x36af0d=new E[(_0x2f5311(0x181))](_0x422be6,_0x3d6c90),{pointGroup:_0x2a2a2a}=(_0x1ef1a8=_0x36af0d['getRangePointData'](_0x2d61ce,_0x537f58))!=null?_0x1ef1a8:{};if(_0x2a2a2a==null||_0x2a2a2a[_0x2f5311(0x20a)]===0x0)continue;this[_0x2f5311(0x270)](_0x56316b,_0x2a2a2a,_0x26c867,_0x3e4b72);}else{if(!_0x2aea2b){const {borderBoxPointGroup:_0x266474}=_0x23b4d0[_0x2f5311(0x235)](_0x2d61ce,_0x537f58);if(_0x266474[_0x2f5311(0x20a)]===0x0)continue;this[_0x2f5311(0x31c)](_0x56316b,_0x266474,_0x26c867,_0x3e4b72);}}}}}[_0x3e4096(0x356)](_0x25f737,_0x5cca5b,_0x27ded6,_0x44636f,_0x5c4354){const _0x5332ef=_0x3e4096,_0x4c4817=this[_0x5332ef(0x3b9)](_0x5cca5b),{left:_0x2c5bba,top:_0x37899f,height:_0x25a903}=_0x4c4817,_0x780f96=this[_0x5332ef(0x3a6)](),_0x22f502=Rt/_0x780f96,_0x4e25f2=new p['Rect'](re+a[_0x5332ef(0x24f)](F),{'left':_0x2c5bba+_0x27ded6-_0x22f502,'top':_0x37899f+_0x44636f,'height':_0x25a903,'width':Tt,'fill':_0x25f737||p[_0x5332ef(0x35b)](a[_0x5332ef(0x292)]['black'],0x0),'strokeWidth':_0x22f502,'stroke':Dt,'evented':!0x0});this['_anchor']=_0x4e25f2,this[_0x5332ef(0x231)]['addObject'](_0x4e25f2,E['TEXT_RANGE_LAYER_INDEX']);const _0xcbc256=new p[(_0x5332ef(0x340))](re+a[_0x5332ef(0x24f)](F),{'left':_0x2c5bba+_0x27ded6-_0x22f502,'top':_0x37899f+_0x44636f-oe/0x2,'height':oe,'width':oe,'fill':_0x25f737||p[_0x5332ef(0x35b)](a['COLORS']['black'],0x0),'strokeWidth':0x0,'stroke':_0x25f737||p[_0x5332ef(0x35b)](a[_0x5332ef(0x292)][_0x5332ef(0x325)],0x0),'evented':!0x1});this['_anchorDot']=_0xcbc256,this[_0x5332ef(0x231)][_0x5332ef(0x1d4)](_0xcbc256,E[_0x5332ef(0x392)]);const _0x4cd2ae=new ee(re+a[_0x5332ef(0x24f)](F),{'left':_0x2c5bba+_0x27ded6-_0x22f502,'top':_0x37899f+_0x44636f-W,'text':_0x5c4354,'color':_0x25f737});this[_0x5332ef(0x375)]=_0x4cd2ae,this[_0x5332ef(0x231)][_0x5332ef(0x1d4)](_0x4cd2ae,E[_0x5332ef(0x392)]),this[_0x5332ef(0x2ac)]=!0x1;}[_0x3e4096(0x1fa)](){const _0x4856f5=_0x3e4096,_0x1f7e2b=this[_0x4856f5(0x338)]['onPointerEnter$'][_0x4856f5(0x1c9)](()=>{const _0x4f0afe=_0x4856f5;this[_0x4f0afe(0x2ac)]=!0x0;}),_0x42b101=this[_0x4856f5(0x338)][_0x4856f5(0x220)][_0x4856f5(0x1c9)](()=>{const _0x49c60a=_0x4856f5;this['_hideTimer']&&clearTimeout(this['_hideTimer']),this[_0x49c60a(0x250)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x24c655=_0x4856f5;_0x1f7e2b['unsubscribe'](),_0x42b101[_0x24c655(0x1be)]();};}[_0x3e4096(0x31c)](_0x1925d1,_0x22e90b,_0x29de08,_0x962309){const _0x6381b4=_0x3e4096,_0x4a8511=new a['ColorKit'](_0x1925d1)[_0x6381b4(0x222)](0.2)[_0x6381b4(0x380)](),_0x2a637e=new p['RegularPolygon'](bt+a['generateRandomId'](F),{'pointsGroup':_0x22e90b,'fill':_0x4a8511||p[_0x6381b4(0x35b)](a[_0x6381b4(0x292)][_0x6381b4(0x325)],0.2),'left':_0x29de08,'top':_0x962309,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x6381b4(0x1b2)][_0x6381b4(0x2b2)](_0x2a637e),this[_0x6381b4(0x231)][_0x6381b4(0x1d4)](_0x2a637e,E[_0x6381b4(0x392)]);}[_0x3e4096(0x270)](_0x2db64b,_0x2b6337,_0x55ea5b,_0x294f56){const _0x587319=_0x3e4096,_0xbfbdab=new a['ColorKit'](_0x2db64b)['setAlpha'](0.2)['toRgbString'](),_0x7abe1=new p[(_0x587319(0x379))](Ot+a[_0x587319(0x24f)](F),{'pointsGroup':_0x2b6337,'fill':_0xbfbdab||p[_0x587319(0x35b)](a['COLORS'][_0x587319(0x325)],0.2),'left':_0x55ea5b,'top':_0x294f56,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x587319(0x2b2)](_0x7abe1),this[_0x587319(0x231)]['addObject'](_0x7abe1,E[_0x587319(0x392)]);}[_0x3e4096(0x3b9)](_0x5c1db2){const _0x42b633=_0x5c1db2[0x0],_0xa55630=_0x42b633[0x0],_0x287b72=_0x42b633[0x2],{x:_0x132d15,y:_0x3ab52e}=_0xa55630,{x:_0x12ab92,y:_0xa30ce2}=_0x287b72;return{'left':_0x132d15,'top':_0x3ab52e,'width':_0x12ab92-_0x132d15,'height':_0xa30ce2-_0x3ab52e};}[_0x3e4096(0x3a6)](){const _0x2cb028=_0x3e4096,{scaleX:_0x6caee0,scaleY:_0x1c0206}=this[_0x2cb028(0x231)]['getAncestorScale']();return Math[_0x2cb028(0x2ea)](_0x6caee0,_0x1c0206);}}var Ut=Object[_0x3e4096(0x2e2)],Nt=(_0x18e494,_0x13ea84,_0x504387,_0x14519c)=>{for(var _0x478e88=_0x14519c>0x1?void 0x0:_0x14519c?Ut(_0x13ea84,_0x504387):_0x13ea84,_0x2336c5=_0x18e494['length']-0x1,_0xff4275;_0x2336c5>=0x0;_0x2336c5--)(_0xff4275=_0x18e494[_0x2336c5])&&(_0x478e88=_0xff4275(_0x478e88)||_0x478e88);return _0x478e88;},X=(_0x5e51a9,_0x3d12e2)=>(_0x33237f,_0x23d7a6)=>_0x3d12e2(_0x33237f,_0x23d7a6,_0x5e51a9);let fe=class extends a['RxDisposable']{constructor(_0x24793b,_0xb6d13e,_0x2052f5,_0xe162d4,_0xde6604){const _0x2a2fcb=_0x3e4096;super(),h(this,_0x2a2fcb(0x3bc),[]),h(this,_0x2a2fcb(0x2a5),[]),(this[_0x2a2fcb(0x35d)]=_0x24793b,this[_0x2a2fcb(0x24e)]=_0xb6d13e,this[_0x2a2fcb(0x31e)]=_0x2052f5,this[_0x2a2fcb(0x1ee)]=_0xe162d4,this[_0x2a2fcb(0x39f)]=_0xde6604,this[_0x2a2fcb(0x1e7)]());}[_0x3e4096(0x1e7)](){const _0x5afd40=_0x3e4096,_0x3e3296=this['_context'][_0x5afd40(0x20c)],_0x49fc48=this[_0x5afd40(0x24e)];this[_0x5afd40(0x2c2)](d[_0x5afd40(0x2c5)]([this[_0x5afd40(0x31e)]['getCollabCursors$'](_0x3e3296),this[_0x5afd40(0x39f)]['currentTheme$']])[_0x5afd40(0x2a0)]($['map'](([_0x27952c,_0x54a6ea])=>({'skeleton':_0x49fc48[_0x5afd40(0x2a4)](),'cursors':[..._0x27952c[_0x5afd40(0x23b)]()][_0x5afd40(0x3d4)](_0x3189b1=>({..._0x3189b1,'color':this[_0x5afd40(0x39f)][_0x5afd40(0x1e3)](_0x3189b1[_0x5afd40(0x26f)])}))})))[_0x5afd40(0x290)](_0x4504a5=>{const _0x5e3f83=_0x5afd40;if(this['_removeCollabCursors'](),_0x4504a5){const {skeleton:_0x28736c,cursors:_0x3683c3}=_0x4504a5;this[_0x5e3f83(0x395)](_0x28736c,_0x3683c3);}})),this[_0x5afd40(0x328)](),this[_0x5afd40(0x1d5)]();}['_updateCollabCursors'](_0x3278fc,_0xb40932){const _0x49bf38=_0x3e4096,{scene:_0x5a0775,mainComponent:_0x4cb9ab}=this[_0x49bf38(0x35d)],_0x121826=_0xb40932[_0x49bf38(0x399)](_0x36c233=>new Re(_0x36c233,_0x5a0775,_0x3278fc,_0x4cb9ab));this[_0x49bf38(0x3bc)]=_0x121826,this[_0x49bf38(0x2a5)]=_0xb40932;}['_refreshCollabCursors'](){const _0xaf449d=_0x3e4096;this['_removeCollabCursors']();const {scene:_0x5b8f25,mainComponent:_0x3bad66}=this['_context'],_0xda99ea=this['_docSkeletonManagerService'][_0xaf449d(0x2a4)](),_0x6899ff=this[_0xaf449d(0x2a5)]['map'](_0xce8d9b=>new Re(_0xce8d9b,_0x5b8f25,_0xda99ea,_0x3bad66));this[_0xaf449d(0x3bc)]=_0x6899ff;}[_0x3e4096(0x189)](){const _0x40284d=_0x3e4096;this[_0x40284d(0x3bc)]['forEach'](_0x25fa4a=>_0x25fa4a[_0x40284d(0x296)]()),this[_0x40284d(0x3bc)]=[];}[_0x3e4096(0x1d5)](){const _0xe13456=_0x3e4096,_0x13362f=[E['SetDocZoomRatioOperation']['id']];this[_0xe13456(0x2c2)](this[_0xe13456(0x1ee)][_0xe13456(0x1b4)](_0x28e455=>{const _0x3059bf=_0xe13456;_0x13362f[_0x3059bf(0x373)](_0x28e455['id'])&&_0x28e455[_0x3059bf(0x1bb)][_0x3059bf(0x20c)]===this['_context'][_0x3059bf(0x20c)]&&this['_refreshCollabCursors']();}));}[_0x3e4096(0x328)](){const _0x4f0e97=_0x3e4096;this[_0x4f0e97(0x2c2)](a[_0x4f0e97(0x33e)](this[_0x4f0e97(0x35d)][_0x4f0e97(0x1f1)][_0x4f0e97(0x19a)])[_0x4f0e97(0x2a0)]($[_0x4f0e97(0x16e)](_0x349d35=>_0x349d35['type']===p[_0x4f0e97(0x253)][_0x4f0e97(0x15f)]),$['throttleTime'](0x10))[_0x4f0e97(0x290)](()=>{const _0x39d026=_0x4f0e97;this[_0x39d026(0x3b0)]();}));}};fe=Nt([X(0x1,a[_0x3e4096(0x3ca)](Y['DocSkeletonManagerService'])),X(0x2,a[_0x3e4096(0x3ca)](x)),X(0x3,a[_0x3e4096(0x18f)]),X(0x4,a[_0x3e4096(0x3ca)](a[_0x3e4096(0x1bf)]))],fe);const Mt=0x1,Lt=1.5;class $e extends p['Shape']{constructor(_0x1503de,_0x170860){const _0x10ba06=_0x3e4096;super(_0x1503de,_0x170860),h(this,_0x10ba06(0x3b8)),h(this,_0x10ba06(0x35f),!0x1),h(this,'_range'),h(this,_0x10ba06(0x23d),''),h(this,_0x10ba06(0x335),_0x10ba06(0x36b)),h(this,'_backgroundColor'),(_0x170860&&this[_0x10ba06(0x2c4)](_0x170860),this[_0x10ba06(0x1d8)][_0x10ba06(0x1c9)](()=>this[_0x10ba06(0x2c4)]({'hovered':!0x0})),this[_0x10ba06(0x220)][_0x10ba06(0x1c9)](()=>this[_0x10ba06(0x2c4)]({'hovered':!0x1})));}[_0x3e4096(0x2c4)](_0x1d77a0){const _0x329b84=_0x3e4096;var _0x1c9715,_0x5010ab,_0xff072d,_0x5c36d3,_0x27b540,_0x29a8fb;this[_0x329b84(0x3b8)]=(_0x1c9715=_0x1d77a0[_0x329b84(0x26f)])!=null?_0x1c9715:this[_0x329b84(0x3b8)],this['_hovered']=(_0x5010ab=_0x1d77a0['hovered'])!=null?_0x5010ab:this['_hovered'],this[_0x329b84(0x1c7)]=(_0xff072d=_0x1d77a0[_0x329b84(0x315)])!=null?_0xff072d:this['_range'],this[_0x329b84(0x23d)]=(_0x5c36d3=_0x1d77a0[_0x329b84(0x23c)])!=null?_0x5c36d3:this['_name'],this[_0x329b84(0x335)]=(_0x27b540=_0x1d77a0[_0x329b84(0x202)])!=null?_0x27b540:this['_labelPosition'],this[_0x329b84(0x1c3)]=(_0x29a8fb=_0x1d77a0[_0x329b84(0x274)])!=null?_0x29a8fb:this['_backgroundColor'],this[_0x329b84(0x303)]({'width':_0x1d77a0[_0x329b84(0x26c)],'height':_0x1d77a0[_0x329b84(0x1a3)]});}[_0x3e4096(0x210)](_0x539960){const _0x265802=_0x3e4096,{row:_0x259994,column:_0x2aeb89}=_0x539960;if(_0x259994>=this[_0x265802(0x1c7)][_0x265802(0x3b3)]&&_0x259994<=this[_0x265802(0x1c7)][_0x265802(0x3c7)]&&_0x2aeb89>=this['_range'][_0x265802(0x38a)]&&_0x2aeb89<=this['_range'][_0x265802(0x37d)]){this[_0x265802(0x2c4)]({'hovered':!0x0});return;}this[_0x265802(0x2c4)]({'hovered':!0x1});}[_0x3e4096(0x20f)](_0x32c7a1){return!0x1;}[_0x3e4096(0x2c0)](_0x3d698e){const _0x224ef9=_0x3e4096;p[_0x224ef9(0x340)]['drawWith'](_0x3d698e,{'width':this[_0x224ef9(0x26c)],'height':this['height'],'strokeWidth':Lt,'stroke':this[_0x224ef9(0x3b8)],'evented':!0x1,'fill':this[_0x224ef9(0x1c3)]}),this['_hovered']&&(_0x3d698e['save'](),_0x3d698e['transform'](0x1,0x0,0x0,0x1,this[_0x224ef9(0x26c)],this['_labelPosition']===_0x224ef9(0x1ab)?0x0:-W),ee[_0x224ef9(0x25f)](_0x3d698e,{'text':this[_0x224ef9(0x23d)],'color':this['_color']}),_0x3d698e[_0x224ef9(0x170)]());}}var Pt=Object[_0x3e4096(0x2e2)],wt=(_0xc72634,_0x7038e7,_0x554b16,_0x36c20d)=>{const _0x15a734=_0x3e4096;for(var _0x4b0c65=_0x36c20d>0x1?void 0x0:_0x36c20d?Pt(_0x7038e7,_0x554b16):_0x7038e7,_0x5001db=_0xc72634[_0x15a734(0x20a)]-0x1,_0x48ebb9;_0x5001db>=0x0;_0x5001db--)(_0x48ebb9=_0xc72634[_0x5001db])&&(_0x4b0c65=_0x48ebb9(_0x4b0c65)||_0x4b0c65);return _0x4b0c65;},ae=(_0x294f2a,_0x381e88)=>(_0x4873e1,_0xb1da61)=>_0x381e88(_0x4873e1,_0xb1da61,_0x294f2a);const At=0x1389;let Ie=class extends a[_0x3e4096(0x168)]{constructor(_0x57c06e,_0x39d6a9,_0x577d7d,_0x1c18a4){const _0x53dc72=_0x3e4096;super(),h(this,_0x53dc72(0x2a5),new Set()),h(this,_0x53dc72(0x3be),null),(this['_context']=_0x57c06e,this['_sheetSkeletonManagerService']=_0x39d6a9,this[_0x53dc72(0x31e)]=_0x577d7d,this[_0x53dc72(0x39f)]=_0x1c18a4,this[_0x53dc72(0x1e7)]());}[_0x3e4096(0x1e7)](){const _0x59800d=_0x3e4096;this[_0x59800d(0x317)][_0x59800d(0x38c)][_0x59800d(0x2a0)]($['takeUntil'](this[_0x59800d(0x1d0)]),$['switchMap'](_0x49eff3=>{const _0x80e40d=_0x59800d;if(_0x49eff3){const _0x1674f5=_0x49eff3[_0x80e40d(0x1df)];return d[_0x80e40d(0x2c5)](this[_0x80e40d(0x31e)]['getCollabCursors$'](this[_0x80e40d(0x35d)][_0x80e40d(0x20c)]),this[_0x80e40d(0x39f)]['currentTheme$'])[_0x80e40d(0x2a0)]($[_0x80e40d(0x399)](([_0x3c1d05,_0x549d02])=>{const _0x5c562e=_0x80e40d,_0xfbdacc=new Map();return _0x3c1d05[_0x5c562e(0x268)]((_0x42de53,_0x3a3c8f)=>{const _0x32ca76=_0x5c562e;if(_0x42de53[_0x32ca76(0x1f7)]===_0x1674f5){const _0xd5cfa6={..._0x42de53};_0xd5cfa6[_0x32ca76(0x26f)]=this[_0x32ca76(0x39f)][_0x32ca76(0x1e3)](_0x42de53[_0x32ca76(0x26f)]),_0xfbdacc[_0x32ca76(0x369)](_0x3a3c8f,_0xd5cfa6);}}),{'skeleton':_0x49eff3,'cursors':_0xfbdacc};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x59800d(0x290)](({skeleton:_0x1a27b1,cursors:_0x39d0aa})=>{const _0x5423c2=_0x59800d;this[_0x5423c2(0x189)](),_0x1a27b1&&this[_0x5423c2(0x395)](_0x1a27b1,_0x39d0aa);}),this[_0x59800d(0x317)][_0x59800d(0x38c)][_0x59800d(0x290)](_0x48eb05=>{const _0x2adecc=_0x59800d;if(_0x48eb05==null)return;const {skeleton:_0x3e0601}=_0x48eb05,{scene:_0x3afbdc}=this[_0x2adecc(0x35d)];_0x3afbdc[_0x2adecc(0x199)][_0x2adecc(0x1c9)](a[_0x2adecc(0x266)](_0x4b8e56=>{const _0x46c755=_0x2adecc;var _0x1d2c59,_0x3207be;const {offsetX:_0x1590ec,offsetY:_0x3468f1}=_0x4b8e56,{x:_0x588c9d,y:_0x3e5519}=_0x3afbdc['getRelativeToViewportCoord'](p[_0x46c755(0x321)][_0x46c755(0x27f)]([_0x1590ec,_0x3468f1])),{scaleX:_0x4c6913,scaleY:_0x495b69}=_0x3afbdc[_0x46c755(0x23e)](),_0x2a797a=_0x3afbdc[_0x46c755(0x15d)](p[_0x46c755(0x30b)][_0x46c755(0x209)]),_0x1c48f5=_0x3afbdc[_0x46c755(0x212)](p[_0x46c755(0x321)][_0x46c755(0x27f)]([_0x588c9d,_0x3e5519]),_0x2a797a),_0x5f29c0=_0x3e0601[_0x46c755(0x206)](_0x1590ec,_0x3468f1,_0x4c6913,_0x495b69,_0x1c48f5);((_0x1d2c59=this[_0x46c755(0x3be)])==null?void 0x0:_0x1d2c59[_0x46c755(0x304)])===_0x5f29c0[_0x46c755(0x304)]&&((_0x3207be=this[_0x46c755(0x3be)])==null?void 0x0:_0x3207be[_0x46c755(0x2d2)])===_0x5f29c0[_0x46c755(0x2d2)]||this[_0x46c755(0x2a5)]['forEach'](_0x23ebd7=>{_0x23ebd7['onMouseMove'](_0x5f29c0);});},0x64));});}[_0x3e4096(0x395)](_0x2ad060,_0xea32aa){const _0x13936d=_0x3e4096;var _0xb685d;const _0x31522f=(_0xb685d=this[_0x13936d(0x317)][_0x13936d(0x291)]())==null?void 0x0:_0xb685d[_0x13936d(0x18b)];if(!_0x31522f)return;const _0x4b40a9=this['_getSheetObject']();if(!_0x4b40a9)return;this[_0x13936d(0x2a5)]['forEach'](_0x5b1df0=>{const _0x3099db=_0x13936d;_0x5b1df0[_0x3099db(0x36a)]();});const {scene:_0x1e846f}=_0x4b40a9,_0x1617ae=yt(Array['from'](_0xea32aa[_0x13936d(0x23b)]()))[_0x13936d(0x399)](_0x262bfd=>{const {color:_0x2810ad,range:_0x3e1d32,name:_0x9d72d6,selection:_0x5d56c6,sheetID:_0x293922}=_0x262bfd,{startColumn:_0x42e86d,startRow:_0x448e4d,endColumn:_0x2f160f,endRow:_0x3b121f}=_0x3e1d32,_0x1b53df=G['getCoordByCell'](_0x448e4d,_0x42e86d,_0x1e846f,_0x31522f),_0x19dcc8=G['getCoordByCell'](_0x3b121f,_0x2f160f,_0x1e846f,_0x31522f),{columnHeaderHeightAndMarginTop:_0x533aa0}=_0x31522f,{startX:_0x121af2,startY:_0x1b7d09}=_0x1b53df,{endX:_0x28a9ea,endY:_0x17dceb}=_0x19dcc8,_0x21ff15=_0x28a9ea-_0x121af2,_0x2cf4c3=_0x17dceb-_0x1b7d09,_0xde27b1={'labelPosition':_0x1b7d09-_0x533aa0>=W?'top':'bottom','sheetID':_0x293922,'range':_0x3e1d32,'color':_0x2810ad,'name':_0x9d72d6,'selection':_0x5d56c6,'left':_0x121af2,'top':_0x1b7d09,'width':_0x21ff15,'height':_0x2cf4c3,'evented':!0x1,'zIndex':At};return new $e(_0x9d72d6,_0xde27b1);});_0x1e846f[_0x13936d(0x179)](_0x1617ae,Mt),this[_0x13936d(0x2a5)]=new Set(_0x1617ae);}[_0x3e4096(0x189)](){const _0x4e7753=_0x3e4096;var _0x540877;(_0x540877=this[_0x4e7753(0x2a5)])==null||_0x540877[_0x4e7753(0x268)](_0x3c21df=>_0x3c21df[_0x4e7753(0x296)]());}['_getSheetObject'](){const _0x3eda0d=_0x3e4096;return G['getSheetObject'](this[_0x3eda0d(0x35d)][_0x3eda0d(0x18c)],this['_context']);}};Ie=wt([ae(0x1,a[_0x3e4096(0x3ca)](G[_0x3e4096(0x15b)])),ae(0x2,a[_0x3e4096(0x3ca)](x)),ae(0x3,a[_0x3e4096(0x3ca)](a['ThemeService']))],Ie);function yt(_0x921d3b){const _0xbf92ed=_0x3e4096,_0x47709e=new Map();return _0x921d3b['forEach'](_0x5dd2eb=>{const _0x74fd55=_0x6398;if(_0x47709e[_0x74fd55(0x1af)](_0x5dd2eb['selection'])){const _0x24911a=_0x47709e[_0x74fd55(0x351)](_0x5dd2eb[_0x74fd55(0x368)]);_0x24911a[_0x74fd55(0x23c)]+=',\x20'+_0x5dd2eb['name'];}else _0x47709e[_0x74fd55(0x369)](_0x5dd2eb[_0x74fd55(0x368)],_0x5dd2eb);}),Array['from'](_0x47709e[_0xbf92ed(0x23b)]());}var $t=Object[_0x3e4096(0x2e2)],xt=(_0x515b7c,_0x32bc39,_0x23bdf0,_0x452e7e)=>{const _0x3cba94=_0x3e4096;for(var _0x52efe3=_0x452e7e>0x1?void 0x0:_0x452e7e?$t(_0x32bc39,_0x23bdf0):_0x32bc39,_0x39fe83=_0x515b7c[_0x3cba94(0x20a)]-0x1,_0x483d22;_0x39fe83>=0x0;_0x39fe83--)(_0x483d22=_0x515b7c[_0x39fe83])&&(_0x52efe3=_0x483d22(_0x52efe3)||_0x52efe3);return _0x52efe3;},y=(_0x306560,_0x4aa841)=>(_0x5291a1,_0x2ffe1f)=>_0x4aa841(_0x5291a1,_0x2ffe1f,_0x306560);let q=class extends a[_0x3e4096(0x35c)]{constructor(_0x5afab7,_0x5aebe8,_0x17479b,_0x8ec9de,_0xd7b6b8,_0x126bd3){const _0x3dcdb7=_0x3e4096;super(),this[_0x3dcdb7(0x3bb)]=_0x5afab7,this['_localCacheService']=_0x5aebe8,this[_0x3dcdb7(0x28b)]=_0x17479b,this['_messageService']=_0x8ec9de,this['_notificationService']=_0xd7b6b8,this[_0x3dcdb7(0x2f6)]=_0x126bd3,this['_setupBeforeClosingHandler'](),this[_0x3dcdb7(0x388)]();}[_0x3e4096(0x2f7)](){const _0x57fb1f=_0x3e4096;this['disposeWithMe'](this[_0x57fb1f(0x3bb)][_0x57fb1f(0x2a1)](()=>{const _0x10f142=_0x57fb1f;if(this['_localCacheService']['saveTaskMap'][_0x10f142(0x39e)])return this[_0x10f142(0x2f6)]['t'](_0x10f142(0x316));}));}[_0x3e4096(0x388)](){const _0x5e64a0=_0x3e4096;this['disposeWithMe'](this[_0x5e64a0(0x28b)][_0x5e64a0(0x1fb)][_0x5e64a0(0x290)](_0x5065da=>{const _0x576e30=_0x5e64a0;_0x5065da['id']===u[_0x576e30(0x169)][_0x576e30(0x1d6)]&&this[_0x576e30(0x297)]['show']({'type':D[_0x576e30(0x2c3)]['Warning'],'content':this[_0x576e30(0x2f6)]['t'](_0x576e30(0x3d5))}),_0x5065da['id']===u[_0x576e30(0x169)]['CLOSE_ROOM']&&this[_0x576e30(0x297)][_0x576e30(0x2cb)]({'type':D[_0x576e30(0x2c3)][_0x576e30(0x2aa)],'content':this[_0x576e30(0x2f6)]['t']('collaboration.closeRoom')}),_0x5065da['id']===u[_0x576e30(0x169)][_0x576e30(0x1e9)]&&this['_notificationService'][_0x576e30(0x2cb)]({'title':this[_0x576e30(0x2f6)]['t'](_0x576e30(0x345)),'content':this[_0x576e30(0x2f6)]['t']('permission.content'),'type':_0x576e30(0x24d),'duration':0x0}),_0x5065da['id']===u[_0x576e30(0x169)][_0x576e30(0x2b6)]&&this[_0x576e30(0x297)][_0x576e30(0x2cb)]({'type':D[_0x576e30(0x2c3)]['Error'],'content':this[_0x576e30(0x2f6)]['t']('collaboration.closeRoom')+'('+_0x5065da['data']+')'}),_0x5065da['id']===u[_0x576e30(0x169)]['JOIN_ROOM_FAILED']&&this[_0x576e30(0x297)][_0x576e30(0x2cb)]({'type':D[_0x576e30(0x2c3)][_0x576e30(0x2aa)],'content':this[_0x576e30(0x2f6)]['t'](_0x5065da[_0x576e30(0x1da)]||'')}),_0x5065da['id']===u[_0x576e30(0x169)][_0x576e30(0x2e0)]&&this[_0x576e30(0x297)][_0x576e30(0x2cb)]({'type':D[_0x576e30(0x2c3)]['Warning'],'content':this[_0x576e30(0x2f6)]['t'](_0x576e30(0x38d))}),_0x5065da['id']===u[_0x576e30(0x169)][_0x576e30(0x3ce)]&&this[_0x576e30(0x297)][_0x576e30(0x2cb)]({'type':D[_0x576e30(0x2c3)][_0x576e30(0x185)],'content':this['_localeService']['t'](_0x576e30(0x21c))}),_0x5065da['id']===u[_0x576e30(0x169)][_0x576e30(0x2ef)]&&this[_0x576e30(0x297)][_0x576e30(0x2cb)]({'type':D[_0x576e30(0x2c3)]['Error'],'content':this['_localeService']['t'](_0x576e30(0x246))});}));}};q=xt([y(0x0,O[_0x3e4096(0x27c)]),y(0x1,u[_0x3e4096(0x29a)]),y(0x2,a[_0x3e4096(0x3ca)](u['CollaborationUIEventService'])),y(0x3,O[_0x3e4096(0x247)]),y(0x4,O[_0x3e4096(0x1aa)]),y(0x5,a[_0x3e4096(0x3ca)](a[_0x3e4096(0x38f)]))],q);const Bt=_0x3e4096(0x30f),De={};function _0x5253(){const _0x5cee55=['_onCursorUpdate','moveTo','transformStateCache','handleInsertRangeMoveRight','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','push','body','SNAPSHOT_INVALID_SNAPSHOT','_document','CONFLICT','serializeRangeWithSheet','3357165wcIDHM','getMemberID','with','imageSourceType','DeleteRangeMoveLeftCommandId','assignAColorForMemberID','current','roomMembers','_draw','8347381tGgSGd','disposeWithMe','MessageType','setShapeProps','combineLatest','BrowserCollaborationSocketService','YUUMI_UNABLE_LOAD_URL','collabStatus.offline','collabStatus.fetchMiss','handleInsertRow','show','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','setInterval','searchParams','_transformHistoryAndStateStack','send','Subject','row','getMergeData','switchMap','WebSocketService','idSuffix','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','122950xnRBLK','univer-flex\x20univer-items-center','defIds','423IagnWl','_onRefRangeChange','collabStatus.conflict','DocSelectionManagerService','useRef','SOCKET_FAILED_RETRY','EMAIL_VERIFY_CODE_MISMATCH','getOwnPropertyDescriptor','UNRECOGNIZED','trim','collabCursorState$','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_colorAssignService','location','InsertRowCommandId','max','stringify','init','_docSkeleton','displayName','SUBMIT_CHANGESET_TIMEOUT','2576222xxsvZe','textRanges','registerRefRange','getCollabEntity$','next','univer-mr-2\x20univer-flex\x20univer-text-xl','_localeService','_setupBeforeClosingHandler','_docStateChangeManagerService','handleInsertRangeMoveDown','_roomMembers$','IImageIoService','CollaborationStatus','fillText','addEventListener','find','isTransformMutationFailure','_collabSessionService','LOGIN_FAILED','transformByState','column','getLocalCacheKey','_scheduleHeartbeat','getOffsetConfig','EffectRefRangId','_handleHeartbeatEvent','INVITE_CODE_REQUIRED','SHEET_VIEWPORT_KEY','_removeClearOtherTimer','uni.network.url-service','cursorInfo','collaboration-client-ui.config','_memberService','hasOwnProperty','ILocalStorageService','ONLINE','docStateChange$','range','collaboration-client.offline-data-not-saved','_sheetSkeletonManagerService','rgba(255,\x20255,\x20255,\x200.01)','8202552wZNRso','YUUMI_NO_CUBOID_FOR_QUESTION','IConfigService','_drawTextRange','_initDependencies','_collabCursorController','isEditing','editingUnit','Vector2','YUUMI_SUBSCRIPTION_NOT_FOUND','_transformService','search','black','APPLY_DUPLICATED','IRemoteInstanceService','_initResize','forwardRef','YUUMI_ALL_TABLES_IS_INVALID','INVITE_CODE_HAS_BEEN_UES','DocCollaborationEntity','_toggleOnline','CommandType','Workbook','getRenderById','_refRangeService','hide','_initStatusListener','_updateSubUnitFromURLParams','_labelPosition','on-line-icon_clip0_910_349','_uiPartsService','_anchor','SheetsSelectionsService','sessionStatus$','getOwnPropertySymbols','off-line-icon_clip0_910_343','string','fromEventSubject','getUnitStatus$','Rect','redoState','SNAPSHOT_HAS_BEEN_REMOVED','blue.400','UnitStatus','permission.title','entityInit$','application/json','RefRangeService','setActiveRange','0\x200\x2017\x2016','1467690KyAkwf','OTHER_CLIENTS_EDITING','_dataLoaderService','children','collabStatus.notCollab','setConfig','get','_collabCursorState$','text','white','removeParam','_drawAnchor','YUUMI_ASYNCIO_CANCELLED','getFocusedUnit','clipPath','transformIMECache','getColor','Disposable','_context','url(#off-line-icon_clip0_910_343)','_hovered','undoState','_transformPreviousActiveRange','whenReady','runId','fillStyle','_updateLocalCursor','APPLY_NON_SEQUENTIAL_REVISION','getSheetId','selection','set','makeDirty','top','setParam','MOBILE_HAS_BEEN_BOUND','COMPLETION_FINISHED','path','DependentOn','assign','fill','includes','replaceDocRanges','_textBubble','OnLineIcon','USERS_LEAVE','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','RegularPolygon','colorChannel1','_injector','USER_NOT_INVITED_CODE','endColumn','popstate','_instanceService','toRgbString','_cursorInfo$','ALREADY_EXISTS','addHandlerCallback','href','activeSheet$','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','LICENSE_DISTRO_REJECTED','_initEvent','_imageIoService','startColumn','_startDocCollabCursor','currentSkeleton$','session.will-retry','call','LocaleService','m1Prime','YUUMI_TABLE_NOT_FOUND_IN_UNIT','TEXT_RANGE_LAYER_INDEX','ACTIVE_UNIT_EVENT_CHANNEL','deserializeRangeWithSheet','_updateCollabCursors','selections','unitID','all','map','origin','DEFAULT_WS_SESSION_TICKET_URL','type','eventID','size','_themeService','url(#on-line-icon_clip0_910_349)','_getSaveTimeout','svg','jsx','NOT_COLLAB','UniverCollaborationClientPlugin','_getScale','SetSelectionsOperation','NOT_FOUND','saveImage','getMember','subUnitId','IUniverInstanceService','RemoteUniscriptService','distinctUntilChanged','unshift','_refreshCollabCursors','sessionTicket','MUTATION','startRow','DOC_RANGE_TYPE','_createSocketURL','0\x200\x2016\x2016','ENSURE_SNAPSHOT_EXECUTION','_color','_getAnchorBounding','YUUMI_RATE_OVER_LIMIT','_beforeCloseService','_cursorShapes','Unknown\x20user','_lastPointer','_docClipboardService','takeUntil','_registerDependencies','code','_clearOtherTimers','Plugin','arc','exhaustSavingTask','endRow','registerRenderModule','TOO_MANY_REQUESTS','Inject','UniverInstanceType','mask','_unitStatus','SOCKET_FAILED','m2Prime','clearInterval','storage','fillRule','closePath','flatMap','collaboration.single-unit.warning','_startSheetCollabCursor','Injector','function','[CollaborationDataLoaderController]','IRenderManagerService','ITransformService','getTypeOfUnitAdded$','focused$','_docTransformIMECacheService','...','green.600','SheetSkeletonManagerService','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','getViewport','handleIRemoveRow','resize','_scheduleClearOtherTimer','_disabled','toStringTag','_cursor','_registerRenderDependencies','CollaborationEvent','runOnServer','onStarting','RxDisposable','CollaborationUIEventId','enableLocalCache','IUIPartsService','yellow.400','SetWorksheetActivateCommand','filter','_anchorDot','restore','_getSessionTicket','INVALID_ARGUMENT','icon','1em','MOBILE_VERIFY_CODE_MISMATCH','add','_onCursorDelete','status$','addObjects','history','SYNCED','YUUMI_CONNECTOR_URL_NOT_FOUND','_docSyncEditingCollabCursorService','requireSession','UNIVER_SHEET','SessionStatus','NodePositionConvertToRectRange','collab-text-anchor-','merge','apply','Error','RichTextEditingMutation','substring','round','_removeCollabCursors','collabStatus.syncing','skeleton','unit','RECT','CollaborationController','ICommandService','MoveRangeCommandId','_unitOnClients','DocIMEInputManagerService','extend','_doCreateSocket','ILogService','112892WBuTJm','WECHAT_HAS_BEEN_BOUND','getUndoRedoMutationParamsCache','onPointerMove$','onTransformChange$','RemoveRowCommandId','jsxs','debounceTime','IURLService','off-line-icon','LICENSE_IMPORT_SIZE_EXCEEDED','createElement','transformRemoteChangeset','height','_colorIndex','measureText','getUnhiddenWorksheets','div','url(#$1','_docTransformStateCacheService','INotificationService','bottom','translate(.97)','_entities','CONNECTOR_DATA_TOO_LARGE','has','Shape','setUndoRedoMutationParamsCache','_shapes','subunit','onCommandExecuted','wsSessionTicketUrl','handleInsertCol','IDocClipboardService','loadUnit','jiqing.500','55TFebrq','params','entries','_handleEvent','unsubscribe','ThemeService','fromEvent','unload','DeleteRangeMoveUpCommandId','_backgroundColor','_httpService','_eventUnsubscribe','prototype','_range','propertyIsEnumerable','subscribeEvent','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','runRefRangeMutations','UNIVER_DOC','NO_OTHER_CLIENTS_EDITING','6DJdJpM','asObservable','dispose$','_assignedColors','LICENSE_EXPORT_SIZE_EXCEEDED','attrs','addObject','_initCommandExecutedListener','OTHER_CLIENT_EDITING','UNAUTHENTICATED','onPointerEnter$','WebBrowserSingleActiveUnitService','data','BehaviorSubject','APPLY_REVISION_CONFILICT','_localStorageService','getUniverSheetInstance','sheetId','doc.mutation.rich-text-editing','clsx','disposeUnit','getColorFromTheme','startsWith','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','INVALID_INVITE_CODE','_init','post','PERMISSION_DENIED','pluginName','_collaborationController','getCurrentRevOfUnit','disableLocalCache','_commandService','actions','_renderManagerService','engine','none','createInstance','UPDATE_CURSOR','OffLineIcon','loadOfflineData','sheetID','delete','_ensureSubject','_handleHover','event$','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','syncEditingCollabCursor','_send','executeCommand','getConfig','symbol','labelPosition','handleDeleteRangeMoveUp','AWAITING','className','getCellPositionByOffset','_initEntityListener','_toggleOffline','VIEW_MAIN','length','getDocRanges','unitId','clearTimeout','_syncEditingCollabCursorService','triggerDblclick','onMouseMove','deepClone','getVpScrollXYInfoByPosToVp','pushState','complete','RemoveColCommandId','roomMembers$','ranges','replace','toDisposable','useCallback','SetTextSelectionsOperation','session.connection-failed','_saveCache','_cachedData','beginPath','onPointerLeave$','WebURLService','setAlpha','DocStateChangeManagerService','xlink:href','collab-rect-range-','OFFLINE','getUnitId','from','UniverCollaborationClientUIPlugin','_univerInstanceService','INVITE_CODE_ALREADY_BOUND','lineTo','CHANGESET_REVISION_CONFILICT','M0\x200H16V16H0z','cursorInfo$','findNodePositionByCharIndex','_scene','YUUMI_AI_RUN_FAILED','mutations','_setupSubUnitSync','getRangePointData','_configService','_heartbeatTimer','_logService','_handleLeaveEvent','_scheduleSaving','values','name','_name','getAncestorScale','getValue','source','APPLY_PERMISSION_DENIED','indexOf','Failed','CollaborationSessionService','DataLoaderService','session.collaboration-timeout','IMessageService','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_config','debug','NodePositionConvertToCursor','_id','error','_docSkeletonManagerService','generateRandomId','_hideTimer','_updateURLWithCurrentState','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','TRANSFORM_CHANGE_OBSERVABLE_TYPE','concat','getTypeOfUnitDisposed$','contains','key','Tools','YUUMI_URL_COL_OUT_OF_RANGE','evenodd','DesktopCollaborationStatusDisplayController','_revisionService','handleMoveRange','toString','drawWith','saveOfflineData','getActiveSheet','defineProperty','_initStatusComponent','then','getParam','debounce','_urlService','forEach','updateOfflineData','UniverIcon','http://www.w3.org/2000/svg','width','urlChange$','getSheetBySheetId','color','_drawRectRange','tag','_status$','_selfUnitIDs','backgroundColor','PY_RUNTIME_SCRIPT_ERROR','InsertColCommandId','override','getActiveRange','LICENSE_MAX_UNITS_EXCEEDED','isArray','transformSelections','IBeforeCloseService','_entityInit$','isTransformMutationsWithChangesetSuccess','FromArray','#FFF','_online','registerDependencies','createIdentifier','getStateCache','currentColor','APPLY_REJECT','_saveTaskMap','some','defs','newValue','_collaborationUIEventService','shareReplay','touchDependencies','InsertRangeMoveRightCommandId','collabStatus.synced','subscribe','getCurrent','COLORS','UNDEFINED','/run/','CollaborationDataLoaderController','dispose','_messageService','_session','collab-client.tooltip.reconnect','ILocalCacheService','MemberService','result','_getMergeRange','HTTPService','transformMutation','pipe','registerBeforeClose','_transformUndoRedoStack','AWAITING_WITH_PENDING','getSkeleton','_cursors','replaceState','ISnapshotServerService','setItem','handleDeleteRangeMoveLeft','Warning','_handleJoinEvent','_hover'];_0x5253=function(){return _0x5cee55;};return _0x5253();}var jt=Object[_0x3e4096(0x2e2)],kt=(_0x58b597,_0x548e59,_0x5d59f2,_0x4c0793)=>{for(var _0x35f53a=_0x4c0793>0x1?void 0x0:_0x4c0793?jt(_0x548e59,_0x5d59f2):_0x548e59,_0xbaaa78=_0x58b597['length']-0x1,_0x4e7919;_0xbaaa78>=0x0;_0xbaaa78--)(_0x4e7919=_0x58b597[_0xbaaa78])&&(_0x35f53a=_0x4e7919(_0x35f53a)||_0x35f53a);return _0x35f53a;},Ue=(_0x30f6ad,_0x4adba9)=>(_0x17d894,_0x1a32b5)=>_0x4adba9(_0x17d894,_0x1a32b5,_0x30f6ad);let z=class{constructor(_0x58fcd0,_0x439e0e){const _0xe1de9=_0x3e4096;this[_0xe1de9(0x323)]=_0x58fcd0,this['_renderManagerService']=_0x439e0e;}['transformIMECache'](_0x51111b){const _0x17242a=_0x3e4096;this[_0x17242a(0x2a2)](_0x51111b),this[_0x17242a(0x361)](_0x51111b);}['transformRemoteChangeset'](_0x410153){const _0x43deec=_0x3e4096,{unitID:_0x219143}=_0x410153,_0x5e3825=this[_0x43deec(0x1f0)][_0x43deec(0x330)](_0x219143)[_0x43deec(0x2ba)](E['DocIMEInputManagerService']),{redoCache:_0x4616d2}=_0x5e3825['getUndoRedoMutationParamsCache']();if(_0x4616d2[_0x43deec(0x20a)]===0x0)return _0x410153;let _0x31b2c6=a[_0x43deec(0x258)][_0x43deec(0x211)](_0x410153['mutations'][0x0]);for(let _0x46f147=0x0;_0x46f147<_0x4616d2[_0x43deec(0x20a)];_0x46f147++){const _0x373a54={'id':_0x43deec(0x1e0),'params':{..._0x4616d2[_0x46f147]}},_0x4e2853=this[_0x43deec(0x323)][_0x43deec(0x29f)](_0x31b2c6,_0x373a54,!0x1);if(m['isTransformMutationFailure'](_0x4e2853))throw _0x4e2853[_0x43deec(0x24d)];_0x31b2c6=_0x4e2853[_0x43deec(0x390)];}return{...a['Tools'][_0x43deec(0x211)](_0x410153),'mutations':[_0x31b2c6]};}[_0x3e4096(0x2a2)](_0xa2e74d){const _0x17b05d=_0x3e4096,{unitID:_0x2a07e9}=_0xa2e74d,_0x59103c=this['_renderManagerService'][_0x17b05d(0x330)](_0x2a07e9)['with'](E['DocIMEInputManagerService']),{undoCache:_0x17af7c,redoCache:_0xcbbc97}=_0x59103c[_0x17b05d(0x198)]();if(_0x17af7c[_0x17b05d(0x20a)]===0x0||_0xcbbc97[_0x17b05d(0x20a)]===0x0)return;const _0x4dde8c=[],_0x3425c7=[];let _0xdb9976=a[_0x17b05d(0x258)]['deepClone'](_0xa2e74d[_0x17b05d(0x233)][0x0]),_0x433360=a[_0x17b05d(0x258)][_0x17b05d(0x211)](_0xa2e74d[_0x17b05d(0x233)][0x0]);for(let _0xf38024=_0x17af7c['length']-0x1;_0xf38024>=0x0;_0xf38024--){const _0x165e5a={'id':'doc.mutation.rich-text-editing','params':{..._0x17af7c[_0xf38024]}},_0x2a882b={'id':_0x17b05d(0x1e0),'params':{..._0xcbbc97[_0xf38024]}},_0x293fa5=this[_0x17b05d(0x323)][_0x17b05d(0x29f)](_0xdb9976,_0x165e5a,!0x1),_0x4b9fca=this[_0x17b05d(0x323)][_0x17b05d(0x29f)](_0x433360,_0x2a882b,!0x1);if(m['isTransformMutationFailure'](_0x293fa5))throw _0x293fa5[_0x17b05d(0x24d)];if(m[_0x17b05d(0x300)](_0x4b9fca))throw _0x4b9fca['error'];_0x4dde8c[_0x17b05d(0x3af)](_0x293fa5['m2Prime'][_0x17b05d(0x1bb)]),_0x3425c7[_0x17b05d(0x3af)](_0x4b9fca[_0x17b05d(0x3cf)][_0x17b05d(0x1bb)]),_0xdb9976=_0x293fa5[_0x17b05d(0x390)],_0x433360=_0x4b9fca[_0x17b05d(0x390)];}_0x59103c[_0x17b05d(0x1b1)]({'undoCache':_0x4dde8c,'redoCache':_0x3425c7});}[_0x3e4096(0x361)](_0x3e58d9){const _0x22ec81=_0x3e4096,{unitID:_0x2fa187}=_0x3e58d9,_0xf3b94b=this[_0x22ec81(0x1f0)][_0x22ec81(0x330)](_0x2fa187)['with'](E[_0x22ec81(0x192)]),_0x16f32c=_0xf3b94b[_0x22ec81(0x278)]();if(_0x16f32c==null)return;const _0x461c69=[{'id':_0x22ec81(0x1e0),'params':{'unitId':_0x3e58d9[_0x22ec81(0x397)],'actions':null,'textRanges':[_0x16f32c]}}],_0x2ee2ef=this[_0x22ec81(0x323)]['transformMutationsWithChangeset'](_0x3e58d9,_0x461c69);if(!m['isTransformMutationsWithChangesetSuccess'](_0x2ee2ef))throw _0x2ee2ef[_0x22ec81(0x24d)];const _0x5b4cb8=_0x2ee2ef['m2Prime'][0x0]['params']['textRanges'];Array[_0x22ec81(0x27a)](_0x5b4cb8)&&_0x5b4cb8['length']&&_0xf3b94b[_0x22ec81(0x349)](_0x5b4cb8[0x0]);}};z=kt([Ue(0x0,m[_0x3e4096(0x155)]),Ue(0x1,p[_0x3e4096(0x154)])],z);var Ft=Object[_0x3e4096(0x2e2)],Ht=(_0x4becb9,_0x5a90f9,_0x21e597,_0x418ac9)=>{const _0x5da917=_0x3e4096;for(var _0x55b110=_0x418ac9>0x1?void 0x0:_0x418ac9?Ft(_0x5a90f9,_0x21e597):_0x5a90f9,_0x19dfd6=_0x4becb9[_0x5da917(0x20a)]-0x1,_0x2868aa;_0x19dfd6>=0x0;_0x19dfd6--)(_0x2868aa=_0x4becb9[_0x19dfd6])&&(_0x55b110=_0x2868aa(_0x55b110)||_0x55b110);return _0x55b110;},ce=(_0x1bffcc,_0x428ead)=>(_0x29eca8,_0x285ca7)=>_0x428ead(_0x29eca8,_0x285ca7,_0x1bffcc);let J=class{constructor(_0x3b6fcf,_0x3ac657,_0x284431){const _0x1fcb2a=_0x3e4096;this[_0x1fcb2a(0x37b)]=_0x3b6fcf,this[_0x1fcb2a(0x323)]=_0x3ac657,this[_0x1fcb2a(0x2f8)]=_0x284431;}[_0x3e4096(0x2af)](_0x465827){const _0x3a44e2=_0x3e4096;this[_0x3a44e2(0x2cf)](_0x465827);}[_0x3e4096(0x1a2)](_0x3cd655){const _0x1dcd5e=_0x3e4096,{unitID:_0x3c8d4b}=_0x3cd655,{collaboration:_0xcf6a6a}=this[_0x1dcd5e(0x2f8)][_0x1dcd5e(0x284)](_0x3c8d4b);if(_0xcf6a6a[_0x1dcd5e(0x20a)]===0x0)return _0x3cd655;let _0x5e8167=a[_0x1dcd5e(0x258)][_0x1dcd5e(0x211)](_0x3cd655[_0x1dcd5e(0x233)][0x0]);for(let _0x5526a8=0x0;_0x5526a8<_0xcf6a6a[_0x1dcd5e(0x20a)];_0x5526a8++){const _0x55b270={'id':_0x1dcd5e(0x1e0),'params':{'unitId':_0xcf6a6a[_0x5526a8][_0x1dcd5e(0x20c)],..._0xcf6a6a[_0x5526a8][_0x1dcd5e(0x341)]}},_0x3db88b=this[_0x1dcd5e(0x323)][_0x1dcd5e(0x29f)](_0x5e8167,_0x55b270,!0x1);if(m[_0x1dcd5e(0x300)](_0x3db88b))throw _0x3db88b[_0x1dcd5e(0x24d)];_0x5e8167=_0x3db88b[_0x1dcd5e(0x390)];}return{...a['Tools'][_0x1dcd5e(0x211)](_0x3cd655),'mutations':[_0x5e8167]};}[_0x3e4096(0x2cf)](_0x124c61){const _0xdda6b3=_0x3e4096,{unitID:_0x101049}=_0x124c61,{history:_0x4de6dc,collaboration:_0x3d9c82}=this[_0xdda6b3(0x2f8)]['getStateCache'](_0x101049);if(_0x4de6dc['length']===0x0&&_0x3d9c82[_0xdda6b3(0x20a)]===0x0)return;const _0x274319=[],_0x438b72=[];let _0x574a9a=a['Tools']['deepClone'](_0x124c61[_0xdda6b3(0x233)][0x0]),_0x539c59=a[_0xdda6b3(0x258)]['deepClone'](_0x124c61['mutations'][0x0]);for(let _0x8a69d9=_0x4de6dc[_0xdda6b3(0x20a)]-0x1;_0x8a69d9>=0x0;_0x8a69d9--){const _0x996fa1={'id':_0xdda6b3(0x1e0),'params':{'unitId':_0x4de6dc[_0x8a69d9][_0xdda6b3(0x20c)],..._0x4de6dc[_0x8a69d9]['undoState']}},_0x334428={'id':_0xdda6b3(0x1e0),'params':{'unitId':_0x4de6dc[_0x8a69d9]['unitId'],..._0x4de6dc[_0x8a69d9][_0xdda6b3(0x341)]}},_0x1d0b53=this[_0xdda6b3(0x323)][_0xdda6b3(0x29f)](_0x574a9a,_0x996fa1,!0x1),_0x1a4e81=this[_0xdda6b3(0x323)]['transformMutation'](_0x539c59,_0x334428,!0x1);if(m[_0xdda6b3(0x300)](_0x1d0b53))throw _0x1d0b53[_0xdda6b3(0x24d)];if(m[_0xdda6b3(0x300)](_0x1a4e81))throw _0x1a4e81['error'];_0x274319[_0xdda6b3(0x3af)]({..._0x4de6dc[_0x8a69d9],'undoState':_0x1d0b53[_0xdda6b3(0x3cf)][_0xdda6b3(0x1bb)],'redoState':_0x1a4e81['m2Prime'][_0xdda6b3(0x1bb)]}),_0x574a9a=_0x1d0b53[_0xdda6b3(0x390)],_0x539c59=_0x1a4e81['m1Prime'];}_0x574a9a=a[_0xdda6b3(0x258)]['deepClone'](_0x124c61['mutations'][0x0]),_0x539c59=a[_0xdda6b3(0x258)][_0xdda6b3(0x211)](_0x124c61['mutations'][0x0]);for(let _0x15952b=_0x3d9c82[_0xdda6b3(0x20a)]-0x1;_0x15952b>=0x0;_0x15952b--){const _0x58c234={'id':_0xdda6b3(0x1e0),'params':{'unitId':_0x3d9c82[_0x15952b][_0xdda6b3(0x20c)],..._0x3d9c82[_0x15952b][_0xdda6b3(0x360)]}},_0x150b43={'id':_0xdda6b3(0x1e0),'params':{'unitId':_0x3d9c82[_0x15952b]['unitId'],..._0x3d9c82[_0x15952b][_0xdda6b3(0x341)]}},_0x2e69ca=this[_0xdda6b3(0x323)]['transformMutation'](_0x574a9a,_0x58c234,!0x1),_0xc4ef51=this[_0xdda6b3(0x323)][_0xdda6b3(0x29f)](_0x539c59,_0x150b43,!0x1);if(m[_0xdda6b3(0x300)](_0x2e69ca))throw _0x2e69ca['error'];if(m[_0xdda6b3(0x300)](_0xc4ef51))throw _0xc4ef51['error'];_0x438b72['unshift']({..._0x3d9c82[_0x15952b],'undoState':_0x2e69ca['m2Prime'][_0xdda6b3(0x1bb)],'redoState':_0xc4ef51[_0xdda6b3(0x3cf)][_0xdda6b3(0x1bb)]}),_0x574a9a=_0x2e69ca['m1Prime'],_0x539c59=_0xc4ef51['m1Prime'];}this[_0xdda6b3(0x2f8)]['setStateCache'](_0x101049,{'history':_0x274319,'collaboration':_0x438b72});}};J=Ht([ce(0x0,a['Inject'](a[_0x3e4096(0x3d7)])),ce(0x1,m[_0x3e4096(0x155)]),ce(0x2,a['Inject'](E['DocStateChangeManagerService']))],J);var Yt=Object[_0x3e4096(0x2e2)],Wt=(_0x4a4431,_0x54a317,_0x536b90,_0x3d95da)=>{const _0x55e6e2=_0x3e4096;for(var _0x536679=_0x3d95da>0x1?void 0x0:_0x3d95da?Yt(_0x54a317,_0x536b90):_0x54a317,_0x89c760=_0x4a4431[_0x55e6e2(0x20a)]-0x1,_0x9d2e01;_0x89c760>=0x0;_0x89c760--)(_0x9d2e01=_0x4a4431[_0x89c760])&&(_0x536679=_0x9d2e01(_0x536679)||_0x536679);return _0x536679;},Ne=(_0x264e97,_0x2a14af)=>(_0x1b9787,_0x5e85d8)=>_0x2a14af(_0x1b9787,_0x5e85d8,_0x264e97);let Z=class{constructor(_0x4c9d84,_0x19c2c2){const _0x1ba058=_0x3e4096;this[_0x1ba058(0x37b)]=_0x4c9d84,this[_0x1ba058(0x323)]=_0x19c2c2;}[_0x3e4096(0x27b)](_0x49d572){const _0x264783=_0x3e4096;var _0x2ed38a;const _0x5d2624=this[_0x264783(0x37b)][_0x264783(0x351)](Y['DocSelectionManagerService']),_0x2cd1a7=(_0x2ed38a=_0x5d2624['getDocRanges']())!=null?_0x2ed38a:[];if(_0x2cd1a7[_0x264783(0x20a)]===0x0)return;const _0x1c77b3=_0x49d572[_0x264783(0x397)],_0x46187d=[{'id':_0x264783(0x1e0),'params':{'unitId':_0x1c77b3,'actions':null,'textRanges':_0x2cd1a7}}],_0x524308=this[_0x264783(0x323)]['transformMutationsWithChangeset'](_0x49d572,_0x46187d);if(!m[_0x264783(0x27e)](_0x524308))throw _0x524308['error'];const _0x12ac15=_0x524308[_0x264783(0x3cf)][0x0][_0x264783(0x1bb)][_0x264783(0x2f1)];Array[_0x264783(0x27a)](_0x12ac15)&&_0x12ac15[_0x264783(0x20a)]&&_0x5d2624[_0x264783(0x374)](_0x12ac15,{'unitId':_0x1c77b3,'subUnitId':_0x1c77b3},!0x1);}};Z=Wt([Ne(0x0,a['Inject'](a[_0x3e4096(0x3d7)])),Ne(0x1,m[_0x3e4096(0x155)])],Z);var Vt=Object['getOwnPropertyDescriptor'],Xt=(_0x27841b,_0x21693e,_0x58e595,_0x31810a)=>{for(var _0x218d8e=_0x31810a>0x1?void 0x0:_0x31810a?Vt(_0x21693e,_0x58e595):_0x21693e,_0x10b1cb=_0x27841b['length']-0x1,_0x152b16;_0x10b1cb>=0x0;_0x10b1cb--)(_0x152b16=_0x27841b[_0x10b1cb])&&(_0x218d8e=_0x152b16(_0x218d8e)||_0x218d8e);return _0x218d8e;},N=(_0x204155,_0x36fb18)=>(_0x3b6e57,_0x575f07)=>_0x36fb18(_0x3b6e57,_0x575f07,_0x204155);let Q=class extends a[_0x3e4096(0x35c)]{constructor(_0x2a5bc5,_0x5703a5,_0x2595fc,_0x4f9561,_0x1493d3,_0x4496b0,_0x23dc49,_0x634aa0){const _0x283f54=_0x3e4096;super(),h(this,_0x283f54(0x272),new d[(_0x283f54(0x1db))](u[_0x283f54(0x2fc)][_0x283f54(0x3a4)])),(this[_0x283f54(0x2f8)]=_0x2a5bc5,this['_collaborationController']=_0x5703a5,this['_docTransformIMECacheService']=_0x2595fc,this[_0x283f54(0x1a9)]=_0x4f9561,this['_docTransformSelectionsService']=_0x1493d3,this[_0x283f54(0x17d)]=_0x4496b0,this[_0x283f54(0x297)]=_0x23dc49,this[_0x283f54(0x2f6)]=_0x634aa0,this['_initEntityListener']());}[_0x3e4096(0x207)](){const _0x46ada7=_0x3e4096;this[_0x46ada7(0x2c2)](this[_0x46ada7(0x1eb)][_0x46ada7(0x346)][_0x46ada7(0x290)](_0x47a424=>{const _0x372930=_0x46ada7,_0x1e985d=this[_0x372930(0x2f8)][_0x372930(0x314)]['subscribe'](_0x28a119=>{const _0x8e2922=_0x372930;if(_0x28a119==null)return;const {unitId:_0x598b92,redoState:_0x98c967,commandId:_0x4b4dd5}=_0x28a119;if(_0x598b92!==_0x47a424[_0x8e2922(0x397)])return;const _0x1e1f94={'id':_0x4b4dd5,'type':a[_0x8e2922(0x32e)][_0x8e2922(0x3b2)],'params':{'unitId':_0x598b92,'actions':_0x98c967[_0x8e2922(0x1ef)],'textRanges':null}};_0x47a424['onLocalMutation'](_0x1e1f94);});if(_0x47a424[_0x372930(0x2c2)](_0x1e985d),_0x47a424 instanceof u[_0x372930(0x32c)]){const _0x4ab466={'onTransformIME':_0x357179=>this[_0x372930(0x158)][_0x372930(0x35a)](_0x357179),'onTransformState':_0x231175=>this[_0x372930(0x1a9)][_0x372930(0x2af)](_0x231175),'onTransformSelections':_0x2d2f8b=>this['_docTransformSelectionsService'][_0x372930(0x27b)](_0x2d2f8b),'onSyncEditingCollabCursor':_0x3e1465=>this[_0x372930(0x17d)][_0x372930(0x1fd)](_0x3e1465),'onTransformRemoteChangesetByIMECache':_0x14435d=>this['_docTransformIMECacheService'][_0x372930(0x1a2)](_0x14435d),'onTransformRemoteChangesetByStateCache':_0x20e944=>this[_0x372930(0x1a9)]['transformRemoteChangeset'](_0x20e944)};_0x47a424[_0x372930(0x383)](_0x4ab466);}}));}};Q=Xt([N(0x0,a[_0x3e4096(0x3ca)](E[_0x3e4096(0x223)])),N(0x1,a[_0x3e4096(0x3ca)](u[_0x3e4096(0x18e)])),N(0x2,a['Inject'](z)),N(0x3,a[_0x3e4096(0x3ca)](J)),N(0x4,a[_0x3e4096(0x3ca)](Z)),N(0x5,a[_0x3e4096(0x3ca)](pe)),N(0x6,O[_0x3e4096(0x247)]),N(0x7,a[_0x3e4096(0x3ca)](a[_0x3e4096(0x38f)]))],Q);var Gt=Object[_0x3e4096(0x2e2)],Kt=(_0x3a9b0e,_0x51f5a6,_0x290dfa,_0x502d6f)=>{const _0x4701b7=_0x3e4096;for(var _0x1acc2b=_0x502d6f>0x1?void 0x0:_0x502d6f?Gt(_0x51f5a6,_0x290dfa):_0x51f5a6,_0x4a423e=_0x3a9b0e[_0x4701b7(0x20a)]-0x1,_0x5ac2db;_0x4a423e>=0x0;_0x4a423e--)(_0x5ac2db=_0x3a9b0e[_0x4a423e])&&(_0x1acc2b=_0x5ac2db(_0x1acc2b)||_0x1acc2b);return _0x1acc2b;},le=(_0x222f8c,_0x4a3e6e)=>(_0x1bfcd6,_0x946a13)=>_0x4a3e6e(_0x1bfcd6,_0x946a13,_0x222f8c);let ve=class extends a['Disposable']{constructor(_0xbbaedb,_0x157490,_0x1ff75a){const _0x45bea4=_0x3e4096;super(),h(this,_0x45bea4(0x21e),new Map()),h(this,'_saveTaskMap',new Map()),h(this,_0x45bea4(0x161),!0x1),(this[_0x45bea4(0x236)]=_0xbbaedb,this[_0x45bea4(0x1dd)]=_0x157490,this[_0x45bea4(0x25c)]=_0x1ff75a);}[_0x3e4096(0x1ed)](){const _0x4efbf0=_0x3e4096;this[_0x4efbf0(0x161)]=!0x0;}[_0x3e4096(0x16a)](){const _0x55db61=_0x3e4096;this[_0x55db61(0x161)]=!0x1;}get['saveTaskMap'](){const _0x375ff3=_0x3e4096;return this[_0x375ff3(0x287)];}['dispose'](){const _0x3909e4=_0x3e4096;this[_0x3909e4(0x3c6)]()['then'](()=>super[_0x3909e4(0x296)]());}async[_0x3e4096(0x1f6)](_0x4a2dcf){const _0x43dd7b=_0x3e4096;return this['_disabled']?null:this[_0x43dd7b(0x1dd)]['getItem'](u[_0x43dd7b(0x305)](_0x4a2dcf));}async[_0x3e4096(0x260)](_0x1a84c3,_0x1ad314){const _0x3b1411=_0x3e4096;return!!this[_0x3b1411(0x1dd)][_0x3b1411(0x2a8)](_0x1a84c3,_0x1ad314);}[_0x3e4096(0x269)](_0x45daad,_0x5d3f5a,_0x129143,_0x244faf){const _0x4cb5ae=_0x3e4096,_0xfbfd21=this[_0x4cb5ae(0x25c)][_0x4cb5ae(0x1ec)](_0x45daad);this[_0x4cb5ae(0x21e)][_0x4cb5ae(0x369)](_0x45daad,{'unitID':_0x45daad,'type':_0x5d3f5a,'awaitingChangeset':_0x129143,'mutations':_0x244faf,'rev':_0xfbfd21}),this[_0x4cb5ae(0x287)][_0x4cb5ae(0x1af)](_0x45daad)||this['_scheduleSaving'](_0x45daad);}[_0x3e4096(0x23a)](_0x4b631d){const _0x366734=_0x3e4096,_0x2ccf54=this[_0x366734(0x3a1)]();_0x2ccf54===0x0?this['_saveCache'](_0x4b631d):this['_saveTaskMap']['set'](_0x4b631d,setTimeout(()=>this[_0x366734(0x21d)](_0x4b631d),_0x2ccf54));}[_0x3e4096(0x3a1)](){const _0xfe398a=_0x3e4096;var _0x2f5acd;return(_0x2f5acd=this[_0xfe398a(0x236)]['getConfig'](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x2f5acd:u['LOCAL_CACHE_INTERVAL'];}['_saveCache'](_0x5bc9d4){const _0x287313=_0x3e4096,_0x448cbe=this[_0x287313(0x287)][_0x287313(0x351)](_0x5bc9d4);return _0x448cbe!==void 0x0&&window[_0x287313(0x20d)](_0x448cbe),this[_0x287313(0x1dd)]['setItem'](u['getLocalCacheKey'](_0x5bc9d4),this[_0x287313(0x21e)][_0x287313(0x351)](_0x5bc9d4))[_0x287313(0x264)](()=>this[_0x287313(0x287)][_0x287313(0x1f8)](_0x5bc9d4));}async[_0x3e4096(0x3c6)](){const _0x5d61fe=_0x3e4096,_0x432c14=[];this[_0x5d61fe(0x287)][_0x5d61fe(0x268)]((_0x4b328e,_0x838491)=>{const _0xfb4d6c=_0x5d61fe;window[_0xfb4d6c(0x20d)](_0x4b328e),_0x432c14['push'](this[_0xfb4d6c(0x21d)](_0x838491)[_0xfb4d6c(0x264)](()=>{const _0x528302=_0xfb4d6c;this[_0x528302(0x287)][_0x528302(0x1f8)](_0x838491);}));}),await Promise[_0x5d61fe(0x398)](_0x432c14);}};ve=Kt([le(0x0,a[_0x3e4096(0x31b)]),le(0x1,a[_0x3e4096(0x312)]),le(0x2,a['Inject'](m['RevisionService']))],ve);class xe extends a[_0x3e4096(0x168)]{constructor(){const _0x2dd725=_0x3e4096;super(),h(this,'urlChange$'),this[_0x2dd725(0x26d)]=d[_0x2dd725(0x1c0)](window,_0x2dd725(0x37e))['pipe'](d['takeUntil'](this['dispose$']),d[_0x2dd725(0x28c)](0x1),d['mapTo'](void 0x0));}[_0x3e4096(0x36c)](_0x331d77,_0x22cbcf,_0x2f624a=!0x1){const _0x5ac924=_0x3e4096,_0x3594cd=new URL(window[_0x5ac924(0x2e8)][_0x5ac924(0x384)]);_0x3594cd[_0x5ac924(0x2ce)][_0x5ac924(0x369)](_0x331d77,_0x22cbcf),_0x2f624a?window[_0x5ac924(0x17a)][_0x5ac924(0x2a6)]('','',_0x3594cd[_0x5ac924(0x25e)]()):window[_0x5ac924(0x17a)][_0x5ac924(0x213)]('','',_0x3594cd[_0x5ac924(0x25e)]());}[_0x3e4096(0x355)](_0x395bbc,_0x5ac4f0=!0x1){const _0x178ce2=_0x3e4096,_0x3dfc37=new URL(window[_0x178ce2(0x2e8)][_0x178ce2(0x384)]);_0x3dfc37['searchParams'][_0x178ce2(0x1f8)](_0x395bbc),_0x5ac4f0?window[_0x178ce2(0x17a)][_0x178ce2(0x2a6)]('','',_0x3dfc37[_0x178ce2(0x25e)]()):window[_0x178ce2(0x17a)][_0x178ce2(0x213)]('','',_0x3dfc37[_0x178ce2(0x25e)]());}['getParam'](_0x2da57f){const _0x3eee5b=_0x3e4096;var _0x500baa;return(_0x500baa=new URL(window['location'][_0x3eee5b(0x384)])[_0x3eee5b(0x2ce)][_0x3eee5b(0x351)](_0x2da57f))!=null?_0x500baa:void 0x0;}}var qt=Object[_0x3e4096(0x262)],zt=Object[_0x3e4096(0x2e2)],Jt=(_0x50659e,_0x2f9fc1,_0xeb134a)=>_0x2f9fc1 in _0x50659e?qt(_0x50659e,_0x2f9fc1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xeb134a}):_0x50659e[_0x2f9fc1]=_0xeb134a,Zt=(_0x5d8b2e,_0x1c8440,_0x2b7074,_0x455444)=>{for(var _0x4ac80b=_0x455444>0x1?void 0x0:_0x455444?zt(_0x1c8440,_0x2b7074):_0x1c8440,_0x2bbaa8=_0x5d8b2e['length']-0x1,_0x34bac4;_0x2bbaa8>=0x0;_0x2bbaa8--)(_0x34bac4=_0x5d8b2e[_0x2bbaa8])&&(_0x4ac80b=_0x34bac4(_0x4ac80b)||_0x4ac80b);return _0x4ac80b;},_e=(_0x438d30,_0x148a15)=>(_0xfb544f,_0x332b7d)=>_0x148a15(_0xfb544f,_0x332b7d,_0x438d30),Qt=(_0x378a59,_0x2cb48a,_0x65b7c1)=>Jt(_0x378a59,_0x2cb48a+'',_0x65b7c1);const es='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports['UniverCollaborationClientUIPlugin']=class extends a[_0x3e4096(0x3c4)]{constructor(_0x10a3fc=De,_0x7b6c8d,_0x3866cc,_0x19e6c6){const _0x307100=_0x3e4096;super(),this[_0x307100(0x249)]=_0x10a3fc,this[_0x307100(0x1f0)]=_0x7b6c8d,this[_0x307100(0x37b)]=_0x3866cc,this[_0x307100(0x236)]=_0x19e6c6;const {..._0x5a0061}=a[_0x307100(0x183)]({},De,this[_0x307100(0x249)]);this['_configService'][_0x307100(0x350)](Bt,_0x5a0061);}[_0x3e4096(0x167)](){const _0x525885=_0x3e4096;this[_0x525885(0x3c1)](),this[_0x525885(0x31d)]();}['onRendered'](){const _0x192c31=_0x3e4096;this[_0x192c31(0x164)]();}[_0x3e4096(0x3c1)](){const _0x2c15b6=_0x3e4096;var _0x445026;const _0x2ec1af=[[Ce],[Z],[z],[J],[pe],[me,{'useClass':xe}],[K['ISocketService'],{'useClass':K[_0x2c15b6(0x2d5)]}],[u['ILocalCacheService'],{'useClass':ve}],[exports[_0x2c15b6(0x25b)]],[Q],[q],[x],[ue],[exports[_0x2c15b6(0x295)]]];a[_0x2c15b6(0x282)](this[_0x2c15b6(0x37b)],a['mergeOverrideWithDependencies'](_0x2ec1af,(_0x445026=this['_config'])==null?void 0x0:_0x445026[_0x2c15b6(0x277)]));}[_0x3e4096(0x164)](){const _0x25982f=_0x3e4096;this[_0x25982f(0x2c2)](this['_renderManagerService'][_0x25982f(0x3c8)](a[_0x25982f(0x3cb)]['UNIVER_DOC'],[fe])),this[_0x25982f(0x2c2)](this[_0x25982f(0x1f0)]['registerRenderModule'](a[_0x25982f(0x3cb)][_0x25982f(0x17f)],[Ie]));}[_0x3e4096(0x31d)](){const _0x3ee33d=_0x3e4096;a[_0x3ee33d(0x28d)](this[_0x3ee33d(0x37b)],[[x],[exports[_0x3ee33d(0x25b)]],[Q],[q],[exports[_0x3ee33d(0x295)]]]);}},Qt(exports['UniverCollaborationClientUIPlugin'],_0x3e4096(0x1ea),es),exports[_0x3e4096(0x229)]=Zt([a[_0x3e4096(0x370)](u[_0x3e4096(0x3a5)]),_e(0x1,p[_0x3e4096(0x154)]),_e(0x2,a[_0x3e4096(0x3ca)](a[_0x3e4096(0x3d7)])),_e(0x3,a[_0x3e4096(0x31b)])],exports['UniverCollaborationClientUIPlugin']);function _0x6398(_0x37819a,_0x190116){const _0x5253fa=_0x5253();return _0x6398=function(_0x6398da,_0x53cac4){_0x6398da=_0x6398da-0x152;let _0x580959=_0x5253fa[_0x6398da];return _0x580959;},_0x6398(_0x37819a,_0x190116);}var ts=Object[_0x3e4096(0x2e2)],ss=(_0x1231e3,_0x34373c,_0x1a0231,_0x14715b)=>{for(var _0x5758ca=_0x14715b>0x1?void 0x0:_0x14715b?ts(_0x34373c,_0x1a0231):_0x34373c,_0x1c2db8=_0x1231e3['length']-0x1,_0x23eeea;_0x1c2db8>=0x0;_0x1c2db8--)(_0x23eeea=_0x1231e3[_0x1c2db8])&&(_0x5758ca=_0x23eeea(_0x5758ca)||_0x5758ca);return _0x5758ca;},H=(_0x1ff7f5,_0x209db7)=>(_0xe4228c,_0x81fe5d)=>_0x209db7(_0xe4228c,_0x81fe5d,_0x1ff7f5);exports[_0x3e4096(0x2c6)]=class extends u['CollaborationSocketService']{constructor(_0x4af886,_0x5c906f,_0x54283b,_0x406f43,_0x2ac73b){super(_0x4af886,_0x5c906f,_0x54283b,_0x406f43,_0x2ac73b);}async['createSocket'](_0x1a4e0a){const _0x2b27ee=_0x3e4096,_0x51de2b=await this['_getSessionTicket'](),_0x1ce308=this[_0x2b27ee(0x3b5)](_0x1a4e0a,_0x51de2b);return this[_0x2b27ee(0x194)](_0x1ce308);}[_0x3e4096(0x3b5)](_0x31de05,_0x49d672){const _0xc5d681=_0x3e4096,_0x4240f7=typeof window>'u'?new URL(_0x31de05):new URL(_0x31de05,window[_0xc5d681(0x2e8)][_0xc5d681(0x39a)]);_0x4240f7['searchParams'][_0xc5d681(0x369)](_0xc5d681(0x3b1),_0x49d672);const _0x4d7c24=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0xc5d681(0x324)]);return _0x4d7c24[_0xc5d681(0x351)](_0xc5d681(0x363))&&_0x4240f7['searchParams']['set'](_0xc5d681(0x363),_0x4d7c24[_0xc5d681(0x351)](_0xc5d681(0x363))),_0x4240f7[_0xc5d681(0x25e)]();}async[_0x3e4096(0x171)](){const _0x26a118=_0x3e4096;var _0x4a3b91,_0x16d6ee,_0x237a0c;const _0x54141e=this[_0x26a118(0x236)][_0x26a118(0x200)](u[_0x26a118(0x1fc)]),_0x193d5e=(_0x4a3b91=_0x54141e==null?void 0x0:_0x54141e[_0x26a118(0x1b5)])!=null?_0x4a3b91:u[_0x26a118(0x39b)];return(_0x237a0c=(_0x16d6ee=(await this['_httpService'][_0x26a118(0x351)](_0x193d5e,{'headers':{'Content-Type':_0x26a118(0x347)}}))[_0x26a118(0x2b3)])==null?void 0x0:_0x16d6ee['ticket'])!=null?_0x237a0c:'';}},exports[_0x3e4096(0x2c6)]=ss([H(0x0,a[_0x3e4096(0x3ca)](a[_0x3e4096(0x3d7)])),H(0x1,a['Inject'](K[_0x3e4096(0x29e)])),H(0x2,a['IConfigService']),H(0x3,a[_0x3e4096(0x195)]),H(0x4,m[_0x3e4096(0x2a7)])],exports[_0x3e4096(0x2c6)]);var Be=(_0x25370c=>(_0x25370c[_0x25370c[_0x3e4096(0x293)]=0x0]=_0x3e4096(0x293),_0x25370c[_0x25370c['OK']=0x1]='OK',_0x25370c[_0x25370c['INTERNAL_ERROR']=0x2]='INTERNAL_ERROR',_0x25370c[_0x25370c['PERMISSION_DENIED']=0x3]=_0x3e4096(0x1e9),_0x25370c[_0x25370c[_0x3e4096(0x3a8)]=0x4]=_0x3e4096(0x3a8),_0x25370c[_0x25370c[_0x3e4096(0x1d7)]=0x5]=_0x3e4096(0x1d7),_0x25370c[_0x25370c[_0x3e4096(0x382)]=0x6]='ALREADY_EXISTS',_0x25370c[_0x25370c[_0x3e4096(0x172)]=0x7]='INVALID_ARGUMENT',_0x25370c[_0x25370c['TOO_MANY_REQUESTS']=0x8]=_0x3e4096(0x3c9),_0x25370c[_0x25370c[_0x3e4096(0x36e)]=0x9]='COMPLETION_FINISHED',_0x25370c[_0x25370c[_0x3e4096(0x302)]=0xa]=_0x3e4096(0x302),_0x25370c[_0x25370c[_0x3e4096(0x175)]=0xb]=_0x3e4096(0x175),_0x25370c[_0x25370c[_0x3e4096(0x378)]=0xc]=_0x3e4096(0x378),_0x25370c[_0x25370c[_0x3e4096(0x2e1)]=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0x25370c[_0x25370c['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x25370c[_0x25370c[_0x3e4096(0x22d)]=0x1389]=_0x3e4096(0x22d),_0x25370c[_0x25370c[_0x3e4096(0x2b4)]=0x1771]=_0x3e4096(0x2b4),_0x25370c[_0x25370c[_0x3e4096(0x342)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x25370c[_0x25370c[_0x3e4096(0x3b7)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x25370c[_0x25370c[_0x3e4096(0x286)]=0x1b59]=_0x3e4096(0x286),_0x25370c[_0x25370c['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x3e4096(0x366),_0x25370c[_0x25370c[_0x3e4096(0x1dc)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x25370c[_0x25370c['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x3e4096(0x241),_0x25370c[_0x25370c['APPLY_DUPLICATED']=0x1b5d]=_0x3e4096(0x326),_0x25370c[_0x25370c[_0x3e4096(0x1ae)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x25370c[_0x25370c['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x3e4096(0x279),_0x25370c[_0x25370c[_0x3e4096(0x1ca)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x25370c[_0x25370c[_0x3e4096(0x1a0)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x25370c[_0x25370c[_0x3e4096(0x1d2)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x25370c[_0x25370c[_0x3e4096(0x387)]=0x232d]=_0x3e4096(0x387),_0x25370c[_0x25370c[_0x3e4096(0x2c7)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x25370c[_0x25370c[_0x3e4096(0x259)]=0x2712]=_0x3e4096(0x259),_0x25370c[_0x25370c[_0x3e4096(0x3ba)]=0x2713]=_0x3e4096(0x3ba),_0x25370c[_0x25370c['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x3e4096(0x322),_0x25370c[_0x25370c[_0x3e4096(0x31a)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x25370c[_0x25370c['YUUMI_ASYNCIO_CANCELLED']=0x271b]=_0x3e4096(0x357),_0x25370c[_0x25370c[_0x3e4096(0x391)]=0x271c]=_0x3e4096(0x391),_0x25370c[_0x25370c[_0x3e4096(0x32a)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x25370c[_0x25370c[_0x3e4096(0x2cc)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x25370c[_0x25370c[_0x3e4096(0x232)]=0x271f]='YUUMI_AI_RUN_FAILED',_0x25370c[_0x25370c[_0x3e4096(0x17c)]=0x2720]='YUUMI_CONNECTOR_URL_NOT_FOUND',_0x25370c[_0x25370c[_0x3e4096(0x275)]=0x2af9]=_0x3e4096(0x275),_0x25370c[_0x25370c[_0x3e4096(0x32b)]=0x2ee1]=_0x3e4096(0x32b),_0x25370c[_0x25370c[_0x3e4096(0x1e6)]=0x2ee2]=_0x3e4096(0x1e6),_0x25370c[_0x25370c[_0x3e4096(0x30a)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x25370c[_0x25370c['USER_NOT_INVITED_CODE']=0x2ee4]=_0x3e4096(0x37c),_0x25370c[_0x25370c['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x3e4096(0x22b),_0x25370c[_0x25370c[_0x3e4096(0x197)]=0x32c9]=_0x3e4096(0x197),_0x25370c[_0x25370c[_0x3e4096(0x36d)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x25370c[_0x25370c['EMAIL_HAS_BEEN_BOUND']=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x25370c[_0x25370c[_0x3e4096(0x2e3)]=-0x1]=_0x3e4096(0x2e3),_0x25370c))(Be||{}),is=Object['getOwnPropertyDescriptor'],ns=(_0xb3f0aa,_0x48393e,_0x2909ba,_0x2aceea)=>{const _0x23b383=_0x3e4096;for(var _0x22b7b8=_0x2aceea>0x1?void 0x0:_0x2aceea?is(_0x48393e,_0x2909ba):_0x48393e,_0x56282c=_0xb3f0aa[_0x23b383(0x20a)]-0x1,_0x203d59;_0x56282c>=0x0;_0x56282c--)(_0x203d59=_0xb3f0aa[_0x56282c])&&(_0x22b7b8=_0x203d59(_0x22b7b8)||_0x22b7b8);return _0x22b7b8;},he=(_0x2b8b32,_0x522b98)=>(_0xd88ab7,_0x4a9ac9)=>_0x522b98(_0xd88ab7,_0x4a9ac9,_0x2b8b32);exports[_0x3e4096(0x3ad)]=class extends a[_0x3e4096(0x35c)]{constructor(_0x582797,_0x4e685e,_0x2e13ba){const _0x5e7d4a=_0x3e4096;super(),this[_0x5e7d4a(0x37f)]=_0x582797,this[_0x5e7d4a(0x1c4)]=_0x4e685e,this[_0x5e7d4a(0x236)]=_0x2e13ba;}async[_0x3e4096(0x166)](_0x184489,_0x2a0955,_0x5b3bff,..._0x60fe56){const _0x39a150=_0x3e4096;var _0x4de6ee,_0x358133,_0x584d93,_0x2348dc;const _0x4a9679=this[_0x39a150(0x37f)][_0x39a150(0x358)]();if(!_0x4a9679)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0xaf6737=((_0x4de6ee=this[_0x39a150(0x236)]['getConfig'](u[_0x39a150(0x2e6)]))!=null?_0x4de6ee:u[_0x39a150(0x1e5)])+'/'+_0x184489+_0x39a150(0x294)+_0x2a0955,_0x35da15=new URL(window['location']['href']),_0x3857e4={'scriptId':_0x184489,'runId':(_0x358133=_0x35da15['searchParams'][_0x39a150(0x351)]('runId'))!=null?_0x358133:'','function':_0x2a0955,'unitId':_0x4a9679[_0x39a150(0x227)](),'argsOfFunction':JSON[_0x39a150(0x2eb)](_0x60fe56),'invokeId':(_0x584d93=_0x5b3bff['invokeId'])!=null?_0x584d93:'','executionId':(_0x2348dc=_0x5b3bff['executionId'])!=null?_0x2348dc:''};try{const _0x1a7248=await this[_0x39a150(0x1c4)][_0x39a150(0x1e8)](_0xaf6737,{'body':_0x3857e4});return _0x1a7248[_0x39a150(0x2b3)][_0x39a150(0x24d)]&&_0x1a7248[_0x39a150(0x2b3)]['error'][_0x39a150(0x3c2)]!==Be['OK']?_0x39a150(0x243):_0x1a7248[_0x39a150(0x2b3)][_0x39a150(0x29c)];}catch{return'Failed';}}},exports[_0x3e4096(0x3ad)]=ns([he(0x0,a[_0x3e4096(0x3ac)]),he(0x1,a['Inject'](K['HTTPService'])),he(0x2,a[_0x3e4096(0x31b)])],exports[_0x3e4096(0x3ad)]);const Me=0x7530,Le=_0x3e4096(0x393);class rs extends a[_0x3e4096(0x35c)]{constructor(){const _0x4a3b0c=_0x3e4096;super(),h(this,_0x4a3b0c(0x24c),a[_0x4a3b0c(0x24f)]()),h(this,_0x4a3b0c(0x273),new Set()),h(this,_0x4a3b0c(0x191),new Map()),h(this,_0x4a3b0c(0x237),null),h(this,_0x4a3b0c(0x3c3),new Map()),h(this,_0x4a3b0c(0x3cd),new Map()),this[_0x4a3b0c(0x1e7)]();}[_0x3e4096(0x296)](){const _0xcceaa8=_0x3e4096;super[_0xcceaa8(0x296)](),this[_0xcceaa8(0x3c3)]['forEach']((_0x93476e,_0x461104)=>this[_0xcceaa8(0x30c)](_0x461104)),this[_0xcceaa8(0x237)]&&window[_0xcceaa8(0x3d0)](this[_0xcceaa8(0x237)]);}[_0x3e4096(0x33f)](_0x57de2c){const _0x25f838=_0x3e4096;return this[_0x25f838(0x1f9)](_0x57de2c)[_0x25f838(0x2a0)](d[_0x25f838(0x3ae)]());}[_0x3e4096(0x320)](_0x5f5dba){const _0x36ca47=_0x3e4096;this[_0x36ca47(0x273)][_0x36ca47(0x39e)]===0x0&&this[_0x36ca47(0x306)](),this[_0x36ca47(0x273)][_0x36ca47(0x176)](_0x5f5dba),this['_send']({'type':0x0,'memberID':this[_0x36ca47(0x24c)],'unitIDs':[_0x5f5dba],'isForwarded':!0x1});}[_0x3e4096(0x1e2)](_0x1cd3bb){const _0x152ac1=_0x3e4096;this[_0x152ac1(0x273)][_0x152ac1(0x1f8)](_0x1cd3bb),this[_0x152ac1(0x273)][_0x152ac1(0x39e)]===0x0&&this['_heartbeatTimer']&&window[_0x152ac1(0x3d0)](this[_0x152ac1(0x237)]);}['_init'](){const _0x51ae25=_0x3e4096;this[_0x51ae25(0x2c2)](a['toDisposable'](d[_0x51ae25(0x1c0)](window,_0x51ae25(0x3d1))[_0x51ae25(0x290)](_0x368461=>{const _0xd7c36f=_0x51ae25;if(_0x368461[_0xd7c36f(0x257)]!==Le||!_0x368461[_0xd7c36f(0x28a)])return;const _0x2e2f50=JSON['parse'](_0x368461[_0xd7c36f(0x28a)]);this[_0xd7c36f(0x1bd)](_0x2e2f50);}))),window[_0x51ae25(0x2fe)](_0x51ae25(0x1c1),()=>this['_send']({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x51ae25(0x228)](this[_0x51ae25(0x273)])}));}[_0x3e4096(0x1bd)](_0x5c0c66){const _0x590e08=_0x3e4096;switch(_0x5c0c66[_0x590e08(0x39c)]){case 0x0:this[_0x590e08(0x2ab)](_0x5c0c66);break;case 0x1:this[_0x590e08(0x239)](_0x5c0c66);break;case 0x2:this[_0x590e08(0x309)](_0x5c0c66);break;}}[_0x3e4096(0x2ab)](_0x4b59cf){const _0x1618c4=_0x3e4096,{unitIDs:_0x1e309e,memberID:_0x260493,isForwarded:_0x302f10}=_0x4b59cf;_0x1e309e[_0x1618c4(0x268)](_0x869fd4=>{const _0x1f4d42=_0x1618c4;if(!_0x302f10&&this[_0x1f4d42(0x191)]['has'](_0x869fd4)&&this[_0x1f4d42(0x1f9)](_0x869fd4)[_0x1f4d42(0x2f4)](u[_0x1f4d42(0x344)][_0x1f4d42(0x34c)]),!this[_0x1f4d42(0x191)][_0x1f4d42(0x1af)](_0x869fd4)||!this[_0x1f4d42(0x191)][_0x1f4d42(0x351)](_0x869fd4)['has'](_0x260493)){const _0x3e2b54=this[_0x1f4d42(0x191)]['get'](_0x869fd4)||new Set();_0x3e2b54[_0x1f4d42(0x176)](_0x260493),this[_0x1f4d42(0x191)][_0x1f4d42(0x369)](_0x869fd4,_0x3e2b54),this[_0x1f4d42(0x160)](_0x260493);}}),_0x302f10||this[_0x1618c4(0x1fe)]({'type':0x0,'memberID':this[_0x1618c4(0x24c)],'unitIDs':[...this[_0x1618c4(0x273)]],'isForwarded':!0x0});}[_0x3e4096(0x160)](_0xb40b28){const _0xb6b990=_0x3e4096;this[_0xb6b990(0x30c)](_0xb40b28);const _0x29c0ed=window['setTimeout'](()=>{const _0x542ce2=_0xb6b990;this[_0x542ce2(0x191)][_0x542ce2(0x268)](_0x2c3237=>{const _0x218cbd=_0x542ce2;_0x2c3237[_0x218cbd(0x1f8)](_0xb40b28);});},Me*0x2);this[_0xb6b990(0x3c3)][_0xb6b990(0x369)](_0xb40b28,_0x29c0ed);}[_0x3e4096(0x30c)](_0x5ef9bc){const _0x1f3a2a=_0x3e4096;if(this['_clearOtherTimers'][_0x1f3a2a(0x1af)](_0x5ef9bc)){const _0x3779eb=this['_clearOtherTimers'][_0x1f3a2a(0x351)](_0x5ef9bc);_0x3779eb&&window[_0x1f3a2a(0x20d)](_0x3779eb),this[_0x1f3a2a(0x3c3)][_0x1f3a2a(0x369)](_0x5ef9bc,null);}}['_handleLeaveEvent'](_0xcd0f98){const _0x3a9102=_0x3e4096,{memberID:_0x5acc2d,unitIDs:_0x1b4644}=_0xcd0f98;_0x1b4644[_0x3a9102(0x268)](_0x3cc438=>{const _0x128e12=_0x3a9102;var _0x479565;const _0x4e3ace=this[_0x128e12(0x191)][_0x128e12(0x351)](_0x3cc438);_0x4e3ace&&(_0x4e3ace[_0x128e12(0x1f8)](_0x5acc2d),(_0x479565=this[_0x128e12(0x1f9)](_0x3cc438))==null||_0x479565[_0x128e12(0x2f4)](_0x4e3ace['size']===0x0?u[_0x128e12(0x344)][_0x128e12(0x1cd)]:u[_0x128e12(0x344)][_0x128e12(0x34c)]));}),this[_0x3a9102(0x30c)](_0x5acc2d);}[_0x3e4096(0x309)](_0x446121){const _0xedd63c=_0x3e4096;this[_0xedd63c(0x160)](_0x446121['memberID']);}[_0x3e4096(0x1fe)](_0x1818b5){const _0x4ffb17=_0x3e4096;localStorage['setItem'](Le,JSON[_0x4ffb17(0x2eb)](_0x1818b5));}[_0x3e4096(0x306)](){const _0x579c73=_0x3e4096;this[_0x579c73(0x237)]=window[_0x579c73(0x2cd)](()=>{const _0x67c40c=_0x579c73;this[_0x67c40c(0x1fe)]({'type':0x2,'memberID':this[_0x67c40c(0x24c)]});},Me);}[_0x3e4096(0x1f9)](_0x2bf2ea){const _0x3d7621=_0x3e4096;return this[_0x3d7621(0x3cd)][_0x3d7621(0x1af)](_0x2bf2ea)||this[_0x3d7621(0x3cd)][_0x3d7621(0x369)](_0x2bf2ea,new d['BehaviorSubject'](u['UnitStatus'][_0x3d7621(0x1cd)])),this[_0x3d7621(0x3cd)][_0x3d7621(0x351)](_0x2bf2ea);}}exports[_0x3e4096(0x19e)]=me,exports['SheetCollabCursorShape']=$e,exports[_0x3e4096(0x1d9)]=rs,exports[_0x3e4096(0x221)]=xe;