@univerjs-pro/collaboration-client-ui 0.14.0-insiders.20251227-b250a8d → 0.15.0-insiders.20251227-dafc157
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.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +16 -16
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x36542c=_0x4dd1;(function(_0x469b09,_0x3ff677){const _0x564d83=_0x4dd1,_0x37edb7=_0x469b09();while(!![]){try{const _0x2c53a5=parseInt(_0x564d83(0x2e3))/0x1+-parseInt(_0x564d83(0x2e8))/0x2*(-parseInt(_0x564d83(0x1cd))/0x3)+parseInt(_0x564d83(0x187))/0x4+-parseInt(_0x564d83(0x129))/0x5*(parseInt(_0x564d83(0x130))/0x6)+-parseInt(_0x564d83(0x256))/0x7+parseInt(_0x564d83(0x30e))/0x8+-parseInt(_0x564d83(0x12c))/0x9;if(_0x2c53a5===_0x3ff677)break;else _0x37edb7['push'](_0x37edb7['shift']());}catch(_0x639c27){_0x37edb7['push'](_0x37edb7['shift']());}}}(_0x24c3,0x2dd78));var Yt=Object[_0x36542c(0x22b)],Wt=(_0x22554f,_0x262451,_0x4d28da)=>_0x262451 in _0x22554f?Yt(_0x22554f,_0x262451,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4d28da}):_0x22554f[_0x262451]=_0x4d28da,_=(_0x1e7b56,_0x3a7d6e,_0x25b006)=>Wt(_0x1e7b56,typeof _0x3a7d6e!=_0x36542c(0x2d1)?_0x3a7d6e+'':_0x3a7d6e,_0x25b006);import{jsx as _0x2ded1c,jsxs as _0x16fa83}from'react/jsx-runtime';import{CollaborationStatus as _0x23527c,CollaborationSessionService as _0x403187,CollaborationController as _0xeb50a,DataLoaderService as _0x4c8203,MemberService as _0x40b044,SessionStatus as _0x355249,ILocalCacheService as _0x386892,CollaborationUIEventService as _0x5a0b75,CollaborationUIEventId as _0x5b6a2e,DocCollaborationEntity as _0x59bf88,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x289bc7,getLocalCacheKey as _0x2b234a,LOCAL_CACHE_INTERVAL as _0xf2292,LOCAL_CACHE_INTERVAL_KEY as _0x490f83,UniverCollaborationClientPlugin as _0x405f63,CollaborationSocketService as _0x3f9356,DEFAULT_WS_SESSION_TICKET_URL as _0x1745dd,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x5e5c8e,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0xaab990,UnitStatus as _0x3e2038}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x1cbe37,IUniverInstanceService as _0x4d0d85,Inject as _0x338b4d,Injector as _0x2c838e,Disposable as _0xc640cc,createIdentifier as _0x3626ec,ILogService as _0x4838cb,ICommandService as _0x344a42,Optional as _0x175102,RxDisposable as _0x2e3ce9,Workbook as _0x4ddd2c,DOC_RANGE_TYPE as _0x584882,debounce as _0x9e9857,Rectangle as _0x2e16f4,DisposableCollection as _0x543d43,toDisposable as _0x6a8bba,UniverInstanceType as _0x11c449,generateRandomId as _0x52eed0,COLORS as _0x1bb289,ColorKit as _0x131f5a,ThemeService as _0x331d79,fromEventSubject as _0x4a08d3,Tools as _0x36941c,CommandType as _0x185fc4,IConfigService as _0x3da9ca,CanceledError as _0x5548aa,isFormulaString as _0x33f895,isFormulaId as _0x57b445,ILocalStorageService as _0x15b36e,DependentOn as _0x3fcff2,Plugin as _0x3eef90,merge as _0x12e663,registerDependencies as _0x238b35,mergeOverrideWithDependencies as _0x10c9d8,touchDependencies as _0x878293}from'@univerjs/core';import{useObservable as _0x34b08a,useDependency as _0x347d2d,IUIPartsService as _0x400226,BuiltInUIPart as _0x27f577,connectInjector as _0x201ff9,IBeforeCloseService as _0x2bbef3,IMessageService as _0x90efad,INotificationService as _0x59af86}from'@univerjs/ui';import{BehaviorSubject as _0x311c05,switchMap as _0x245695,of as _0x5eb303,takeUntil as _0x5427bd,debounceTime as _0x21f33f,Subject as _0x447fde,filter as _0x4479ea,merge as _0x343681,combineLatest as _0x174358,fromEvent as _0x35f93f,shareReplay as _0x48f2bc,mapTo as _0x2a8f2a,distinctUntilChanged as _0x441b5e}from'rxjs';import{Tooltip as _0x153236,clsx as _0x3512bb,MessageType as _0x5d4ed0}from'@univerjs/design';import{useRef as _0x10c6e2,createElement as _0x37d50e,forwardRef as _0x2b3773,useCallback as _0x1c5f7c}from'react';import{IRemoteInstanceService as _0xc83799}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x5ab370,RefRangeService as _0x2b036c,SetSelectionsOperation as _0xe3e116,SheetsSelectionsService as _0x50f7fc,EffectRefRangId as _0xbdbc78,handleIRemoveRow as _0x33c362,handleIRemoveCol as _0x90c53d,handleMoveRange as _0x1630dc,handleInsertRow as _0xabb663,handleInsertRangeMoveRight as _0x30ec30,handleInsertRangeMoveDown as _0x198007,handleInsertCol as _0x667606,handleDeleteRangeMoveUp as _0x4cf62c,handleDeleteRangeMoveLeft as _0x56041b,runRefRangeMutations as _0x5161f8}from'@univerjs/sheets';import{Shape as _0x1e4876,Rect as _0x20c8d4,getColor as _0x4a919b,RegularPolygon as _0x43c252,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x7f58f8,Vector2 as _0x35ebd3,SHEET_VIEWPORT_KEY as _0x2e4a5e,IRenderManagerService as _0x325ffd}from'@univerjs/engine-render';import{HTTPService as _0x5f42ec,ISocketService as _0x1a891b,WebSocketService as _0x566dd2}from'@univerjs/network';import{IDocClipboardService as _0x4f1f12,NodePositionConvertToCursor as _0x1cb209,NodePositionConvertToRectRange as _0x22d440,TEXT_RANGE_LAYER_INDEX as _0x513ae7,SetDocZoomRatioOperation as _0x1e5c3e,DocIMEInputManagerService as _0x40b6fc,DocStateChangeManagerService as _0x2cc006}from'@univerjs/docs-ui';import{IImageIoService as _0x505849}from'@univerjs/drawing';import{ITransformService as _0x20cc24,CollaborationEvent as _0x31f204,isTransformMutationFailure as _0x5aaf2c,isTransformMutationsWithChangesetSuccess as _0x41b3f2,RevisionService as _0x2e162a,ISnapshotServerService as _0x2f7663}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x43ed68,RichTextEditingMutation as _0x14a58c,DocSelectionManagerService as _0x564962,DocSkeletonManagerService as _0x265ea4}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x4a4084,serializeRangeWithSheet as _0x73d1ce,FormulaExecuteStageType as _0x2e6da7,FormulaExecutedStateType as _0x267fe6,SetFormulaCalculationStartMutation as _0x384e02,SetFormulaCalculationNotificationMutation as _0x8dbaaa}from'@univerjs/engine-formula';import{map as _0x59c5bc,filter as _0x283ed0,throttleTime as _0x218010,takeUntil as _0x88348d,switchMap as _0x469c3c}from'rxjs/operators';import{SheetSkeletonManagerService as _0x49f76f,getCoordByCell as _0x504140,getSheetObject as _0x3b0908}from'@univerjs/sheets-ui';function Ge({ref:_0x5ae69d,..._0x537d83}){const _0x20cb19=_0x36542c,{icon:_0x2e55c1,id:_0x7a5981,className:_0x128a89,extend:_0x8dffc4,..._0x317057}=_0x537d83,_0x54508a=(_0x20cb19(0x26a)+_0x7a5981+'\x20'+(_0x128a89||''))[_0x20cb19(0x20e)](),_0x110649=_0x10c6e2('_'+vi());return At(_0x2e55c1,''+_0x7a5981,{'defIds':_0x2e55c1[_0x20cb19(0x11c)],'idSuffix':_0x110649[_0x20cb19(0x333)]},{'ref':_0x5ae69d,'className':_0x54508a,..._0x317057},_0x8dffc4);}function At(_0x484c25,_0x380377,_0x491806,_0x6fec5a,_0x7aee01){const _0x5b68f1=_0x36542c;return _0x37d50e(_0x484c25[_0x5b68f1(0x2a7)],{'key':_0x380377,...gi(_0x484c25,_0x491806,_0x7aee01),..._0x6fec5a},(Ei(_0x484c25,_0x491806)['children']||[])[_0x5b68f1(0x257)]((_0x1c0188,_0x2984e2)=>At(_0x1c0188,_0x380377+'-'+_0x484c25[_0x5b68f1(0x2a7)]+'-'+_0x2984e2,_0x491806,void 0x0,_0x7aee01)));}function gi(_0x136c5f,_0x12be0f,_0x33e5cc){const _0x2a548c=_0x36542c,_0x59048b={..._0x136c5f[_0x2a548c(0x34d)]};_0x33e5cc!=null&&_0x33e5cc[_0x2a548c(0x244)]&&_0x59048b[_0x2a548c(0x169)]===_0x2a548c(0x244)&&(_0x59048b[_0x2a548c(0x169)]=_0x33e5cc['colorChannel1']),_0x136c5f['tag']===_0x2a548c(0x23b)&&_0x59048b['id']&&(_0x59048b['id']=_0x59048b['id']+_0x12be0f[_0x2a548c(0x27d)]),Object['entries'](_0x59048b)[_0x2a548c(0x310)](([_0x283926,_0x4ebd13])=>{const _0x2f2b14=_0x2a548c;_0x283926===_0x2f2b14(0x23b)&&typeof _0x4ebd13==_0x2f2b14(0x289)&&(_0x59048b[_0x283926]=_0x4ebd13[_0x2f2b14(0x2b4)](/url\(#(.*)\)/,'url(#$1'+_0x12be0f[_0x2f2b14(0x27d)]+')'));});const {defIds:_0x30b08b}=_0x12be0f;return!_0x30b08b||_0x30b08b[_0x2a548c(0x125)]===0x0||(_0x136c5f[_0x2a548c(0x2a7)]===_0x2a548c(0x274)&&_0x59048b[_0x2a548c(0x215)]&&(_0x59048b['xlink:href']=_0x59048b['xlink:href']+_0x12be0f[_0x2a548c(0x27d)]),Object[_0x2a548c(0x318)](_0x59048b)['forEach'](([_0x468dbc,_0x4cbd10])=>{const _0x3a7544=_0x2a548c;typeof _0x4cbd10=='string'&&(_0x59048b[_0x468dbc]=_0x4cbd10[_0x3a7544(0x2b4)](/url\(#(.*)\)/,_0x3a7544(0x31b)+_0x12be0f[_0x3a7544(0x27d)]+')'));})),_0x59048b;}function Ei(_0x8f9da1,_0x4757d7){const _0x39a566=_0x36542c;var _0x13b39d;const {defIds:_0x21e95b}=_0x4757d7;return!_0x21e95b||_0x21e95b[_0x39a566(0x125)]===0x0?_0x8f9da1:_0x8f9da1['tag']===_0x39a566(0x303)&&((_0x13b39d=_0x8f9da1[_0x39a566(0x336)])!=null&&_0x13b39d['length'])?{..._0x8f9da1,'children':_0x8f9da1[_0x39a566(0x336)][_0x39a566(0x257)](_0x5df71a=>typeof _0x5df71a[_0x39a566(0x34d)]['id']==_0x39a566(0x289)&&_0x21e95b&&_0x21e95b['includes'](_0x5df71a[_0x39a566(0x34d)]['id'])?{..._0x5df71a,'attrs':{..._0x5df71a[_0x39a566(0x34d)],'id':_0x5df71a['attrs']['id']+_0x4757d7[_0x39a566(0x27d)]}}:_0x5df71a)}:_0x8f9da1;}function vi(){const _0x54f7cd=_0x36542c;return Math['random']()[_0x54f7cd(0x153)](0x24)[_0x54f7cd(0x260)](0x2,0x8);}Ge[_0x36542c(0x2a4)]='UniverIcon';const pi={'tag':_0x36542c(0x1b0),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x36542c(0x2f5),'viewBox':_0x36542c(0x229),'width':'1em','height':_0x36542c(0x18e)},'children':[{'tag':'g','attrs':{'clipPath':_0x36542c(0x29b)},'children':[{'tag':'path','attrs':{'stroke':_0x36542c(0x26c),'d':_0x36542c(0x322),'strokeLinecap':_0x36542c(0x1b6),'strokeLinejoin':_0x36542c(0x1b6),'strokeWidth':1.2}}]},{'tag':_0x36542c(0x303),'attrs':{},'children':[{'tag':_0x36542c(0x1f9),'attrs':{'id':_0x36542c(0x24c)},'children':[{'tag':'path','attrs':{'fill':_0x36542c(0x2c5),'d':_0x36542c(0x331)}}]}]}],'defIds':[_0x36542c(0x24c)]},Pt=_0x2b3773(function(_0x157690,_0x3d2175){const _0x2dd553=_0x36542c;return _0x37d50e(Ge,Object[_0x2dd553(0x1a9)]({},_0x157690,{'id':_0x2dd553(0x250),'ref':_0x3d2175,'icon':pi}));});Pt[_0x36542c(0x2a4)]=_0x36542c(0x2bb);const Oi={'tag':_0x36542c(0x1b0),'attrs':{'xmlns':_0x36542c(0x305),'fill':_0x36542c(0x2f5),'viewBox':_0x36542c(0x29f),'width':_0x36542c(0x18e),'height':_0x36542c(0x18e)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x36542c(0x2e6),'attrs':{'stroke':'currentColor','d':_0x36542c(0x29d),'strokeLinecap':_0x36542c(0x1b6),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x36542c(0x303),'attrs':{},'children':[{'tag':_0x36542c(0x1f9),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x36542c(0x2e6),'attrs':{'fill':'white','d':_0x36542c(0x331),'transform':_0x36542c(0x2d5)}}]}]}],'defIds':[_0x36542c(0x1e8)]},wt=_0x2b3773(function(_0x1978d1,_0x389b9c){const _0x4c65a2=_0x36542c;return _0x37d50e(Ge,Object[_0x4c65a2(0x1a9)]({},_0x1978d1,{'id':_0x4c65a2(0x2f3),'ref':_0x389b9c,'icon':Oi}));});wt[_0x36542c(0x2a4)]=_0x36542c(0x18d);function Ti(_0x380efc){const _0xb1896=_0x36542c;switch(_0x380efc){case _0x23527c[_0xb1896(0x202)]:return _0xb1896(0x156);case _0x23527c[_0xb1896(0x1f4)]:return _0xb1896(0x127);case _0x23527c[_0xb1896(0x268)]:return'collabStatus.fetchMiss';case _0x23527c[_0xb1896(0x277)]:return'collabStatus.notCollab';case _0x23527c['AWAITING']:case _0x23527c[_0xb1896(0x2db)]:return _0xb1896(0x239);case _0x23527c[_0xb1896(0x164)]:case _0x23527c[_0xb1896(0x30f)]:return _0xb1896(0x1fa);}}function Ci(_0x101286){const _0x47609f=_0x36542c,{status$:_0x46c7d5}=_0x101286,_0x1e3f66=_0x34b08a(_0x46c7d5,_0x23527c[_0x47609f(0x277)]),_0x387b61=_0x347d2d(_0x1cbe37),_0x2a591d=_0x347d2d(_0x403187),_0x308a86=_0x1e3f66!==_0x23527c[_0x47609f(0x202)],_0x4a9f3f=_0x387b61['t'](Ti(_0x1e3f66)),_0x1d7a3a=_0x308a86?_0x2ded1c(wt,{}):_0x2ded1c(Pt,{}),_0x5eb4d7=_0x1c5f7c(()=>{_0x308a86||_0x2a591d['reconnect']();},[_0x308a86,_0x2a591d]);function _0x401a98(){const _0x38eb0c=_0x47609f;return _0x16fa83('div',{'className':_0x38eb0c(0x261),'onClick':_0x5eb4d7,'children':[_0x2ded1c(_0x38eb0c(0x1b4),{'className':_0x3512bb(_0x38eb0c(0x32a),{'univer-text-green-500':_0x308a86,'univer-text-red-500':!_0x308a86}),'children':_0x1d7a3a}),_0x2ded1c(_0x38eb0c(0x1b4),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x4a9f3f})]});}return _0x308a86?_0x401a98():_0x2ded1c(_0x153236,{'title':_0x387b61['t'](_0x47609f(0x208)),'children':_0x401a98()});}var Ri=Object['getOwnPropertyDescriptor'],Di=(_0x4542c0,_0x3151b8,_0x4674a9,_0x2d1b21)=>{const _0x58968e=_0x36542c;for(var _0x57f90e=_0x2d1b21>0x1?void 0x0:_0x2d1b21?Ri(_0x3151b8,_0x4674a9):_0x3151b8,_0x49d9a7=_0x4542c0[_0x58968e(0x125)]-0x1,_0x42b88d;_0x49d9a7>=0x0;_0x49d9a7--)(_0x42b88d=_0x4542c0[_0x49d9a7])&&(_0x57f90e=_0x42b88d(_0x57f90e)||_0x57f90e);return _0x57f90e;},se=(_0x2181f0,_0x3b1b1b)=>(_0x14b353,_0x5e5aca)=>_0x3b1b1b(_0x14b353,_0x5e5aca,_0x2181f0);let ae=class extends _0xc640cc{constructor(_0x2c31ed,_0x4f4182,_0x317ce4,_0xcfbe2f){const _0x2b3fa0=_0x36542c;super(),_(this,'_status$',new _0x311c05(_0x23527c[_0x2b3fa0(0x277)])),(this['_univerInstanceService']=_0x2c31ed,this['_injector']=_0x4f4182,this[_0x2b3fa0(0x183)]=_0x317ce4,this[_0x2b3fa0(0x193)]=_0xcfbe2f,this[_0x2b3fa0(0x253)](),this['_initStatusListener']());}[_0x36542c(0x11b)](){const _0xbc5122=_0x36542c;this[_0xbc5122(0x2e0)](this[_0xbc5122(0x2c2)]['focused$'][_0xbc5122(0x124)](_0x245695(()=>{const _0x47792e=_0xbc5122,_0x19a591=this['_univerInstanceService'][_0x47792e(0x1d2)]();return _0x19a591?this[_0x47792e(0x183)]['getCollabEntity$'](_0x19a591[_0x47792e(0x123)]()):_0x5eb303(null);}),_0x245695(_0xc6c925=>_0xc6c925?_0xc6c925[_0xbc5122(0x306)]:_0x5eb303(_0x23527c['NOT_COLLAB'])))[_0xbc5122(0x1cc)](_0x431b9d=>{const _0x5bd12a=_0xbc5122;this['_status$'][_0x5bd12a(0x21f)](_0x431b9d);}));}[_0x36542c(0x253)](){const _0x30b59a=_0x36542c;this[_0x30b59a(0x2e0)](this[_0x30b59a(0x193)][_0x30b59a(0x190)](_0x27f577['HEADER_MENU'],()=>_0x201ff9(Ni({'status$':this[_0x30b59a(0x241)][_0x30b59a(0x231)]()}),this[_0x30b59a(0x207)])));}};ae=Di([se(0x0,_0x4d0d85),se(0x1,_0x338b4d(_0x2c838e)),se(0x2,_0x338b4d(_0xeb50a)),se(0x3,_0x400226)],ae);function Ni(_0x3b82c7){const {status$:_0x253590}=_0x3b82c7;return function(){return _0x2ded1c(Ci,{'status$':_0x253590});};}const yt=_0x3626ec('uni.network.url-service');var bi=Object[_0x36542c(0x281)],Li=(_0x5dd554,_0x27285c,_0x53b3fc,_0x363b5a)=>{const _0x311e22=_0x36542c;for(var _0x2f2929=_0x363b5a>0x1?void 0x0:_0x363b5a?bi(_0x27285c,_0x53b3fc):_0x27285c,_0x434116=_0x5dd554[_0x311e22(0x125)]-0x1,_0x198645;_0x434116>=0x0;_0x434116--)(_0x198645=_0x5dd554[_0x434116])&&(_0x2f2929=_0x198645(_0x2f2929)||_0x2f2929);return _0x2f2929;},K=(_0xc1c7b6,_0x1558f1)=>(_0x368977,_0x452404)=>_0x1558f1(_0x368977,_0x452404,_0xc1c7b6);let ce=class extends _0x2e3ce9{constructor(_0x3996ba,_0x316ae7,_0xdc80a6,_0x6d1668,_0x419999){const _0x671df8=_0x36542c;super(),this[_0x671df8(0x233)]=_0x3996ba,this['_logService']=_0x316ae7,this[_0x671df8(0x14b)]=_0xdc80a6,this['_dataLoaderService']=_0x6d1668,_0x419999?_0x419999==null||_0x419999[_0x671df8(0x264)]()[_0x671df8(0x2de)](()=>this[_0x671df8(0x2f7)]()):(this[_0x671df8(0x14d)][_0x671df8(0x1bc)](_0x671df8(0x126),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x671df8(0x2f7)]());}async[_0x36542c(0x2f7)](){const _0x244851=_0x36542c,_0x631a07=this['_urlService']['getParam'](_0x244851(0x33c)),_0x1b6e21=this[_0x244851(0x233)][_0x244851(0x12f)]('type'),_0x198bda=this[_0x244851(0x233)][_0x244851(0x12f)]('subunit');if(!_0x631a07||!_0x1b6e21){this['_logService'][_0x244851(0x1bc)](_0x244851(0x126),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x21d1ba=await this[_0x244851(0x1b1)]['loadUnit'](_0x631a07,Number(_0x1b6e21),_0x198bda);_0x21d1ba&&_0x21d1ba instanceof _0x4ddd2c&&this[_0x244851(0x1b3)](_0x21d1ba);}async[_0x36542c(0x1b3)](_0x169fb9){const _0x527794=_0x36542c;await this['_updateSubUnitFromURLParams'](_0x169fb9),_0x169fb9['activeSheet$']['pipe'](_0x5427bd(this[_0x527794(0x272)]))[_0x527794(0x1cc)](_0x1f8afd=>{const _0x1ae193=_0x527794;_0x1f8afd&&this[_0x1ae193(0x23f)](_0x1f8afd);}),this[_0x527794(0x233)]['urlChange$'][_0x527794(0x124)](_0x5427bd(this[_0x527794(0x272)]))[_0x527794(0x1cc)](()=>this['_updateSubUnitFromURLParams'](_0x169fb9));}['_updateURLWithCurrentState'](_0x4c7d79,_0x181a7d=!0x1){const _0x5bfae1=_0x36542c,_0x43860b=this[_0x5bfae1(0x233)][_0x5bfae1(0x12f)](_0x5bfae1(0x22c));_0x4c7d79['getSheetId']()!==_0x43860b&&this[_0x5bfae1(0x233)][_0x5bfae1(0x291)](_0x5bfae1(0x22c),_0x4c7d79[_0x5bfae1(0x1d7)](),_0x181a7d);}async['_updateSubUnitFromURLParams'](_0x45ba4c){const _0x4b628b=_0x36542c;var _0x3c85c8;const _0x4057b9=this[_0x4b628b(0x233)]['getParam'](_0x4b628b(0x22c));if(!_0x4057b9||!_0x45ba4c[_0x4b628b(0x316)](_0x4057b9)){const _0x55495a=_0x45ba4c[_0x4b628b(0x2cd)]()[0x0],_0x505edb=_0x45ba4c[_0x4b628b(0x316)](_0x55495a);if(!_0x505edb)return;this[_0x4b628b(0x23f)](_0x505edb,!0x0),await this['_commandService'][_0x4b628b(0x302)](_0x5ab370['id'],{'unitId':_0x45ba4c[_0x4b628b(0x123)](),'subUnitId':_0x55495a});return;}((_0x3c85c8=_0x45ba4c[_0x4b628b(0x1fc)]())==null?void 0x0:_0x3c85c8[_0x4b628b(0x1d7)]())!==_0x4057b9&&await this[_0x4b628b(0x14b)][_0x4b628b(0x302)](_0x5ab370['id'],{'unitId':_0x45ba4c[_0x4b628b(0x123)](),'subUnitId':_0x4057b9});}};ce=Li([K(0x0,yt),K(0x1,_0x4838cb),K(0x2,_0x344a42),K(0x3,_0x338b4d(_0x4c8203)),K(0x4,_0x175102(_0xc83799))],ce);var Ui=Object['getOwnPropertyDescriptor'],Mi=(_0x51406e,_0x5aaf50,_0x724836,_0x3ed0af)=>{for(var _0x1fa4c1=_0x3ed0af>0x1?void 0x0:_0x3ed0af?Ui(_0x5aaf50,_0x724836):_0x5aaf50,_0x4b97a4=_0x51406e['length']-0x1,_0xbca35b;_0x4b97a4>=0x0;_0x4b97a4--)(_0xbca35b=_0x51406e[_0x4b97a4])&&(_0x1fa4c1=_0xbca35b(_0x1fa4c1)||_0x1fa4c1);return _0x1fa4c1;},rt=(_0x208bb6,_0x111f6c)=>(_0x3353e8,_0x3ba352)=>_0x111f6c(_0x3353e8,_0x3ba352,_0x208bb6);let $e=class extends _0x2e3ce9{constructor(_0x3f6f02,_0x3bb9fb){const _0x6c2081=_0x36542c;super(),this[_0x6c2081(0x1c4)]=_0x3f6f02,this['_imageIoService']=_0x3bb9fb,this[_0x6c2081(0x2f7)]();}[_0x36542c(0x2f7)](){const _0x32cd56=_0x36542c,_0xbeafff=this;this[_0x32cd56(0x2e0)](this['_docClipboardService'][_0x32cd56(0x1e7)]({'onBeforePasteImage':async _0x4f8da0=>{const _0x3fae16=_0x32cd56,_0x1fd6dc=await _0xbeafff['_imageIoService'][_0x3fae16(0x11d)](_0x4f8da0);return _0x1fd6dc?{'source':_0x1fd6dc[_0x3fae16(0x1a7)],'imageSourceType':_0x1fd6dc['imageSourceType']}:null;}}));}};$e=Mi([rt(0x0,_0x4f1f12),rt(0x1,_0x505849)],$e);const ot=[_0x36542c(0x327),_0x36542c(0x28f),'green.600',_0x36542c(0x31a),_0x36542c(0x113),_0x36542c(0x1e2)];class Ke extends _0xc640cc{constructor(){const _0xb23bfb=_0x36542c;super(...arguments),_(this,_0xb23bfb(0x2a6),new Map()),_(this,_0xb23bfb(0x2c3),0x0);}['assignAColorForMemberID'](_0xac646e){const _0x1dc201=_0x36542c;if(this[_0x1dc201(0x2a6)][_0x1dc201(0x16f)](_0xac646e))return this[_0x1dc201(0x2a6)][_0x1dc201(0x194)](_0xac646e);const _0x48fb72=ot[this[_0x1dc201(0x2c3)]];return this[_0x1dc201(0x2c3)]=(this['_colorIndex']+0x1)%ot[_0x1dc201(0x125)],this[_0x1dc201(0x2a6)][_0x1dc201(0x25a)](_0xac646e,_0x48fb72),_0x48fb72;}}function $t(_0x5420e5){const _0x3d53f2=_0x36542c;let _0x3dffa9='';for(const _0x438db6 of _0x5420e5){const {startOffset:_0xab6d73,endOffset:_0x1309d2,isActive:_0x539504,rangeType:_0x290224,segmentId:_0x5250f0,segmentPage:_0x3664ec}=_0x438db6;_0x3dffa9[_0x3d53f2(0x125)]&&(_0x3dffa9+=','),_0x3dffa9+=_0xab6d73+':'+_0x1309d2+':'+(_0x539504?'1':'0')+':'+_0x290224+':'+_0x5250f0+':'+_0x3664ec;}return _0x3dffa9;}function Ai(_0x10ce74){const _0x10cbb0=_0x36542c,_0xec2957=_0x10ce74['split'](','),_0x2d6841=[];for(const _0x2a4046 of _0xec2957){const [_0x4d1a76,_0x1046a0,_0x476537,_0x43e014,_0x2ce495,_0x44c87c]=_0x2a4046['split'](':');_0x2d6841[_0x10cbb0(0x133)]({'startOffset':Number(_0x4d1a76),'endOffset':Number(_0x1046a0),'collapsed':_0x4d1a76===_0x1046a0,'isActive':_0x476537==='1','rangeType':_0x43e014===_0x584882['TEXT']?_0x584882['TEXT']:_0x584882[_0x10cbb0(0x2d2)],'segmentId':typeof _0x2ce495==_0x10cbb0(0x289)?String(_0x2ce495):'','segmentPage':Number(_0x44c87c!=null?_0x44c87c:-0x1)});}return _0x2d6841['some'](_0x14e93d=>_0x14e93d['isActive'])||(_0x2d6841[0x0][_0x10cbb0(0x136)]=!0x0),_0x2d6841;}class ze extends _0x2e3ce9{constructor(){const _0x139573=_0x36542c;super(...arguments),_(this,_0x139573(0x14a),new _0x311c05(null)),_(this,'collabCursorState$',this[_0x139573(0x14a)][_0x139573(0x231)]());}[_0x36542c(0x162)](_0x20ae31){const _0x380ac5=_0x36542c,{unitID:_0xebbbeb,memberID:_0x34dc6c,textRanges:_0x3e5ae8}=_0x20ae31,_0x38e633=$t(_0x3e5ae8);if(_0x38e633==='')return;const _0x587429={'unitID':_0xebbbeb,'memberID':_0x34dc6c,'selection':_0x38e633};this[_0x380ac5(0x14a)][_0x380ac5(0x21f)](_0x587429);}}var Pi=Object[_0x36542c(0x281)],wi=(_0x5eb331,_0x3568c,_0x217d5f,_0x1c837b)=>{for(var _0x128dea=_0x1c837b>0x1?void 0x0:_0x1c837b?Pi(_0x3568c,_0x217d5f):_0x3568c,_0x4597c6=_0x5eb331['length']-0x1,_0x11f819;_0x4597c6>=0x0;_0x4597c6--)(_0x11f819=_0x5eb331[_0x4597c6])&&(_0x128dea=_0x11f819(_0x128dea)||_0x128dea);return _0x128dea;},A=(_0x442078,_0x38621)=>(_0x422f13,_0xee6b12)=>_0x38621(_0x422f13,_0xee6b12,_0x442078);const yi=0x12c,$i=0x64;let xe=class extends _0x2e3ce9{constructor(_0x4f94d3,_0x5c63b2,_0x8626e0,_0x550460,_0x2e7f80,_0x5568b5,_0x3e4be5,_0x1b678a,_0x5c2c34){const _0x156cce=_0x36542c;super(),_(this,_0x156cce(0x270),!0x1),_(this,_0x156cce(0x2f7),!0x1),_(this,_0x156cce(0x2ed),new _0x311c05(new Map())),_(this,_0x156cce(0x15f),this[_0x156cce(0x2ed)][_0x156cce(0x231)]()),_(this,_0x156cce(0x1ce),new _0x311c05([])),_(this,'roomMembers$',this['_roomMembers$']['pipe'](_0x21f33f(yi))),_(this,_0x156cce(0x26d),_0x9e9857(_0x57c040=>{const _0x13ad79=_0x156cce,_0xfc9177={'eventID':_0x31f204[_0x13ad79(0x26e)],'data':{'unitID':this[_0x13ad79(0x26b)],'memberID':this['_session']['getMemberID'](),'selection':$t(_0x57c040)}};this[_0x13ad79(0x329)][_0x13ad79(0x2fd)](_0xfc9177,this[_0x13ad79(0x26b)]);},$i)),(this[_0x156cce(0x26b)]=_0x4f94d3,this[_0x156cce(0x329)]=_0x5c63b2,this['_injector']=_0x8626e0,this['_colorAssignService']=_0x550460,this[_0x156cce(0x216)]=_0x2e7f80,this['_syncEditingCollabCursorService']=_0x5568b5,this[_0x156cce(0x2c1)]=_0x3e4be5,this[_0x156cce(0x2c2)]=_0x1b678a,this['_commandService']=_0x5c2c34);}get[_0x36542c(0x1a1)](){const _0x149351=_0x36542c;return this[_0x149351(0x2ed)][_0x149351(0x185)]();}get[_0x36542c(0x2af)](){const _0x2ca07e=_0x36542c;return this[_0x2ca07e(0x1ce)][_0x2ca07e(0x185)]();}['dispose'](){const _0x2d2c12=_0x36542c;super[_0x2d2c12(0x1f7)](),this[_0x2d2c12(0x2ed)]['next'](new Map()),this[_0x2d2c12(0x2ed)][_0x2d2c12(0x31f)](),this[_0x2d2c12(0x1ce)]['next']([]),this[_0x2d2c12(0x1ce)][_0x2d2c12(0x31f)]();}['init'](){const _0x3cf368=_0x36542c;this[_0x3cf368(0x2f7)]||(this[_0x3cf368(0x2f7)]=!0x0,this[_0x3cf368(0x329)][_0x3cf368(0x165)][_0x3cf368(0x124)](_0x5427bd(this['dispose$']))[_0x3cf368(0x1cc)](_0x753345=>{const _0x1c1fb7=_0x3cf368;_0x753345===_0x355249[_0x1c1fb7(0x27f)]?this['_toggleOnline']():this[_0x1c1fb7(0x20d)]();}),this[_0x3cf368(0x329)][_0x3cf368(0x34f)]['pipe'](_0x5427bd(this[_0x3cf368(0x272)]))[_0x3cf368(0x1cc)](_0x27197c=>{const _0x355eeb=_0x3cf368,_0x351ea7=_0x27197c[_0x355eeb(0x27a)];_0x351ea7===_0x31f204[_0x355eeb(0x26e)]&&this[_0x355eeb(0x1b2)](_0x27197c),_0x351ea7===_0x31f204[_0x355eeb(0x144)]&&this[_0x355eeb(0x171)](_0x27197c);}),this['disposeWithMe'](this['_commandService'][_0x3cf368(0x19e)](_0x1b0d09=>{const _0xe682ad=_0x3cf368,_0x29aa4a=_0x1b0d09[_0xe682ad(0x335)];_0x29aa4a!=null&&this[_0xe682ad(0x270)]&&_0x1b0d09['id']===_0x43ed68['id']&&_0x29aa4a[_0xe682ad(0x20a)]===this[_0xe682ad(0x26b)]&&_0x29aa4a[_0xe682ad(0x184)]===!0x1&&_0x29aa4a[_0xe682ad(0x206)][_0xe682ad(0x125)]>0x0&&this[_0xe682ad(0x26d)](_0x29aa4a[_0xe682ad(0x206)]);})),this[_0x3cf368(0x11f)][_0x3cf368(0x13b)]['pipe'](_0x5427bd(this[_0x3cf368(0x272)]))[_0x3cf368(0x1cc)](_0x561421=>{const _0x4a2109=_0x3cf368;if((_0x561421==null?void 0x0:_0x561421[_0x4a2109(0x26b)])!==this[_0x4a2109(0x26b)])return;const _0x5aefc5={'eventID':_0x31f204['UPDATE_CURSOR'],'data':_0x561421};this[_0x4a2109(0x1b2)](_0x5aefc5);}),this[_0x3cf368(0x2e0)](this['_commandService'][_0x3cf368(0x19e)](_0x2dd2b9=>{const _0x53736d=_0x3cf368;if(_0x2dd2b9[_0x53736d(0x335)]==null)return;const _0x49d7b8=_0x2dd2b9['params'];if(_0x2dd2b9['id']!==_0x14a58c['id']||_0x49d7b8[_0x53736d(0x20a)]!==this[_0x53736d(0x26b)])return;const _0x1a04d3={'id':_0x53736d(0x33f),'params':_0x49d7b8},_0x4d2b7e=this[_0x53736d(0x1a1)];for(const [_0x3968da,_0x344112]of _0x4d2b7e){const _0x167c70={'id':_0x53736d(0x33f),'params':{'unitId':this[_0x53736d(0x26b)],'actions':null,'textRanges':_0x344112[_0x53736d(0x206)]}},_0x3c35eb=this[_0x53736d(0x2c1)][_0x53736d(0x2f4)](_0x1a04d3,_0x167c70,!0x1);if(_0x5aaf2c(_0x3c35eb))throw _0x3c35eb[_0x53736d(0x245)];_0x4d2b7e[_0x53736d(0x25a)](_0x3968da,{..._0x344112,'ranges':_0x3c35eb[_0x53736d(0x21e)][_0x53736d(0x335)][_0x53736d(0x340)]});}queueMicrotask(()=>{const _0xea1e66=_0x53736d;this[_0xea1e66(0x2ed)][_0xea1e66(0x21f)](_0x4d2b7e);});})));}[_0x36542c(0x1b2)](_0x48bee1){const _0x1f2985=_0x36542c;var _0x4e4308,_0x40da3d;const {memberID:_0x33ca2a,selection:_0x5d8677}=_0x48bee1[_0x1f2985(0x1c5)],_0x5571e2=Ai(_0x5d8677),_0x174fb2=(_0x40da3d=(_0x4e4308=this[_0x1f2985(0x216)][_0x1f2985(0x2c8)](this[_0x1f2985(0x26b)],_0x33ca2a))==null?void 0x0:_0x4e4308[_0x1f2985(0x182)])!=null?_0x40da3d:'Unknown\x20user',_0x2f1fb3={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x33ca2a),'name':_0x174fb2,'ranges':_0x5571e2},_0xeb3002=this[_0x1f2985(0x1a1)];_0xeb3002[_0x1f2985(0x25a)](_0x33ca2a,_0x2f1fb3),this['_cursorInfo$'][_0x1f2985(0x21f)](_0xeb3002);}[_0x36542c(0x171)](_0x466f4b){const _0x35202a=_0x36542c,{memberID:_0x10f746}=_0x466f4b['data'],_0x25ec75=this[_0x35202a(0x1a1)];_0x25ec75[_0x35202a(0x158)](_0x10f746),this[_0x35202a(0x2ed)][_0x35202a(0x21f)](_0x25ec75);}[_0x36542c(0x150)](){const _0x28ce5f=_0x36542c;var _0x20f15d;if(this['_online']=!0x0,((_0x20f15d=this[_0x28ce5f(0x2c2)][_0x28ce5f(0x1d2)]())==null?void 0x0:_0x20f15d[_0x28ce5f(0x123)]())!==this[_0x28ce5f(0x26b)])return;const _0x41e328=this[_0x28ce5f(0x207)]['get'](_0x564962)[_0x28ce5f(0x157)]();Array[_0x28ce5f(0x1ec)](_0x41e328)&&_0x41e328[_0x28ce5f(0x125)]>0x0&&this['_updateLocalCursor'](_0x41e328);}[_0x36542c(0x20d)](){const _0xf57940=_0x36542c;this[_0xf57940(0x270)]=!0x1;}};xe=wi([A(0x2,_0x338b4d(_0x2c838e)),A(0x3,_0x338b4d(Ke)),A(0x4,_0x338b4d(_0x40b044)),A(0x5,_0x338b4d(ze)),A(0x6,_0x20cc24),A(0x7,_0x4d0d85),A(0x8,_0x344a42)],xe);var xi=Object[_0x36542c(0x281)],Bi=(_0x46060f,_0x213ccf,_0x582c93,_0x3e0137)=>{const _0x8fc710=_0x36542c;for(var _0xefdb66=_0x3e0137>0x1?void 0x0:_0x3e0137?xi(_0x213ccf,_0x582c93):_0x213ccf,_0x2c22ec=_0x46060f[_0x8fc710(0x125)]-0x1,_0x17532f;_0x2c22ec>=0x0;_0x2c22ec--)(_0x17532f=_0x46060f[_0x2c22ec])&&(_0xefdb66=_0x17532f(_0xefdb66)||_0xefdb66);return _0xefdb66;},B=(_0x1f7a4b,_0x1ab496)=>(_0x523073,_0xb0d34c)=>_0x1ab496(_0x523073,_0xb0d34c,_0x1f7a4b);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x4c95d5=[],_0x346af6=!0x1;return _0x325dd8=>{_0x4c95d5['push'](_0x325dd8),_0x346af6||(_0x346af6=!0x0,setTimeout(()=>{const _0x525a46=_0x4dd1;_0x4c95d5[_0x525a46(0x310)](_0x56bfd9=>_0x56bfd9()),_0x4c95d5=[],_0x346af6=!0x1;}));};};let Be=class extends _0x2e3ce9{constructor(_0xc5f4f4,_0x316aef,_0x36f03e,_0xc23f38,_0x239843,_0x3faebe,_0x2e79c0,_0x1af39a){const _0x4dce9a=_0x36542c;super(),_(this,_0x4dce9a(0x270),!0x1),_(this,_0x4dce9a(0x2f7),!0x1),_(this,'_cursorInfo$',new _0x311c05(new Map())),_(this,'cursorInfo$',this[_0x4dce9a(0x2ed)][_0x4dce9a(0x231)]()),_(this,'_roomMembers$',new _0x311c05([])),_(this,'roomMembers$',this[_0x4dce9a(0x1ce)][_0x4dce9a(0x124)](_0x21f33f(Fi))),_(this,_0x4dce9a(0x26d),_0x9e9857((_0xae040b,_0x2b2f5a)=>{const _0x193f84=_0x4dce9a,_0xe3edc={'eventID':_0x31f204[_0x193f84(0x26e)],'data':{'unitID':this[_0x193f84(0x26b)],'memberID':this['_session']['getMemberID'](),'selection':_0x73d1ce(_0xae040b,_0x2b2f5a[_0x193f84(0x243)])}};this[_0x193f84(0x329)][_0x193f84(0x2fd)](_0xe3edc,this[_0x193f84(0x26b)]);},ki)),(this[_0x4dce9a(0x26b)]=_0xc5f4f4,this[_0x4dce9a(0x329)]=_0x316aef,this[_0x4dce9a(0x207)]=_0x36f03e,this['_colorAssignService']=_0xc23f38,this[_0x4dce9a(0x216)]=_0x239843,this[_0x4dce9a(0x2c2)]=_0x3faebe,this[_0x4dce9a(0x14b)]=_0x2e79c0,this['_refRangeService']=_0x1af39a);}get[_0x36542c(0x1a1)](){const _0x122ca1=_0x36542c;return this[_0x122ca1(0x2ed)][_0x122ca1(0x185)]();}get[_0x36542c(0x2af)](){const _0x2d4880=_0x36542c;return this['_roomMembers$'][_0x2d4880(0x185)]();}[_0x36542c(0x1f7)](){const _0x142454=_0x36542c;super[_0x142454(0x1f7)](),this[_0x142454(0x2ed)][_0x142454(0x21f)](new Map()),this[_0x142454(0x2ed)][_0x142454(0x31f)](),this['_roomMembers$'][_0x142454(0x21f)]([]),this[_0x142454(0x1ce)][_0x142454(0x31f)]();}[_0x36542c(0x15d)](){const _0x1d72a8=_0x36542c;this[_0x1d72a8(0x2f7)]||(this[_0x1d72a8(0x2f7)]=!0x0,this[_0x1d72a8(0x329)][_0x1d72a8(0x165)][_0x1d72a8(0x124)](_0x5427bd(this[_0x1d72a8(0x272)]))[_0x1d72a8(0x1cc)](_0x2b19f5=>{const _0x1a7459=_0x1d72a8;_0x2b19f5===_0x355249[_0x1a7459(0x27f)]?this[_0x1a7459(0x150)]():this[_0x1a7459(0x20d)]();}),this[_0x1d72a8(0x329)][_0x1d72a8(0x34f)]['pipe'](_0x5427bd(this[_0x1d72a8(0x272)]))[_0x1d72a8(0x1cc)](_0x2d1e2a=>{const _0x23ad70=_0x1d72a8,_0x26c877=_0x2d1e2a[_0x23ad70(0x27a)];_0x26c877===_0x31f204[_0x23ad70(0x26e)]&&this[_0x23ad70(0x1b2)](_0x2d1e2a),_0x26c877===_0x31f204[_0x23ad70(0x144)]&&this[_0x23ad70(0x171)](_0x2d1e2a);}),this['_onRefRangeChange'](),this[_0x1d72a8(0x2e0)](this[_0x1d72a8(0x14b)]['onCommandExecuted'](_0x4cc280=>{const _0x5cbce6=_0x1d72a8;if(this['_online']&&_0x4cc280['id']===_0xe3e116['id']&&_0x4cc280[_0x5cbce6(0x335)][_0x5cbce6(0x20a)]===this['unitID']){const _0x3ca86a=_0x4cc280[_0x5cbce6(0x335)];this['_updateLocalCursor'](_0x3ca86a[_0x5cbce6(0x1a5)],_0x3ca86a[_0x5cbce6(0x258)][0x0]);}})));}[_0x36542c(0x1b2)](_0xdab638){const _0x57f8ef=_0x36542c;var _0x45545d,_0x470ccd;const {memberID:_0x4aa542,selection:_0x2ade8d}=_0xdab638[_0x57f8ef(0x1c5)],{sheetName:_0x884213,range:_0x37bd20}=_0x4a4084(_0x2ade8d),_0x24f482={'name':(_0x470ccd=(_0x45545d=this[_0x57f8ef(0x216)][_0x57f8ef(0x2c8)](this['unitID'],_0x4aa542))==null?void 0x0:_0x45545d[_0x57f8ef(0x182)])!=null?_0x470ccd:'Unknown\x20user','range':this['_getMergeRange'](_0x884213,_0x37bd20),'sheetID':_0x884213,'color':this[_0x57f8ef(0x2a3)]['assignAColorForMemberID'](_0x4aa542),'selection':_0x2ade8d},_0xbfd0fd=this['cursorInfo'];_0xbfd0fd[_0x57f8ef(0x25a)](_0x4aa542,_0x24f482),this[_0x57f8ef(0x2ed)][_0x57f8ef(0x21f)](_0xbfd0fd);}[_0x36542c(0x171)](_0x84a9b){const _0x3ddff8=_0x36542c,{memberID:_0x217d3a}=_0x84a9b[_0x3ddff8(0x1c5)],_0x34cdd5=this[_0x3ddff8(0x1a1)];_0x34cdd5['delete'](_0x217d3a),this['_cursorInfo$'][_0x3ddff8(0x21f)](_0x34cdd5);}[_0x36542c(0x2b9)](_0xfb5b74,_0x16322c){const _0x450a65=_0x36542c;var _0x341381,_0x20e231;const _0x4cd777=(_0x20e231=(_0x341381=this['_univerInstanceService']['getUniverSheetInstance'](this[_0x450a65(0x26b)]))==null?void 0x0:_0x341381['getSheetBySheetId'](_0xfb5b74))==null?void 0x0:_0x20e231[_0x450a65(0x12a)]();return(_0x4cd777==null?void 0x0:_0x4cd777[_0x450a65(0x2d6)](_0x24152a=>_0x2e16f4['contains'](_0x24152a,_0x16322c)))||_0x16322c;}[_0x36542c(0x2a8)](){const _0x25d219=_0x36542c,_0x1320f9=new _0x543d43(),_0x593025=Hi(),_0x3aaf1f=()=>{const _0x4e8eea=_0x4dd1;_0x1320f9[_0x4e8eea(0x1f7)]();const _0x5c0158=(_0x58a7c1,_0xbd0ddb,_0x1090c6,_0x3d02c6)=>{const _0x5435cd=_0x4e8eea;let _0x53c09a=[];switch(_0x58a7c1['id']){case _0xbdbc78[_0x5435cd(0x1cb)]:{_0x53c09a=_0x56041b(_0x58a7c1,_0x3d02c6);break;}case _0xbdbc78[_0x5435cd(0x151)]:{_0x53c09a=_0x4cf62c(_0x58a7c1,_0x3d02c6);break;}case _0xbdbc78[_0x5435cd(0x25c)]:{_0x53c09a=_0x667606(_0x58a7c1,_0x3d02c6);break;}case _0xbdbc78[_0x5435cd(0x1b5)]:{_0x53c09a=_0x198007(_0x58a7c1,_0x3d02c6);break;}case _0xbdbc78[_0x5435cd(0x249)]:{_0x53c09a=_0x30ec30(_0x58a7c1,_0x3d02c6);break;}case _0xbdbc78[_0x5435cd(0x2ce)]:{_0x53c09a=_0xabb663(_0x58a7c1,_0x3d02c6);break;}case _0xbdbc78[_0x5435cd(0x252)]:{_0x53c09a=_0x1630dc(_0x58a7c1,_0x3d02c6);break;}case _0xbdbc78[_0x5435cd(0x1ac)]:{_0x53c09a=_0x90c53d(_0x58a7c1,_0x3d02c6);break;}case _0xbdbc78[_0x5435cd(0x34a)]:{_0x53c09a=_0x33c362(_0x58a7c1,_0x3d02c6);break;}}const _0x15fb11=_0x5161f8(_0x53c09a,_0x3d02c6),_0x1e3767=this['cursorInfo'][_0x5435cd(0x194)](_0xbd0ddb);if(_0x1e3767&&_0x15fb11){const _0x396660={..._0x1e3767,'range':_0x15fb11};this[_0x5435cd(0x1a1)][_0x5435cd(0x25a)](_0xbd0ddb,_0x396660),_0x593025(()=>{const _0x561e34=_0x5435cd,_0x2958d1=this[_0x561e34(0x23e)]['registerRefRange'](_0x15fb11,_0x2ca8e1=>(_0x2958d1[_0x561e34(0x1f7)](),_0x5c0158(_0x2ca8e1,_0xbd0ddb,_0x1090c6,_0x15fb11)));_0x1320f9[_0x561e34(0x214)](_0x2958d1);});}return{'redos':[],'undos':[]};};this[_0x4e8eea(0x1a1)][_0x4e8eea(0x310)]((_0xb9ec95,_0x101e57)=>{const _0x92197e=_0x4e8eea,{range:_0x1e87e2,sheetID:_0x4af753}=_0xb9ec95,_0x47a298=this[_0x92197e(0x23e)][_0x92197e(0x15c)](_0x1e87e2,_0x3f0cfe=>(_0x47a298[_0x92197e(0x1f7)](),_0x5c0158(_0x3f0cfe,_0x101e57,_0x4af753,_0x1e87e2)));_0x1320f9[_0x92197e(0x214)](_0x47a298);});};this[_0x25d219(0x2e0)](_0x6a8bba(this['_cursorInfo$'][_0x25d219(0x1cc)](()=>{_0x3aaf1f();})));}[_0x36542c(0x150)](){const _0x5c9e39=_0x36542c;var _0x4b72a8,_0x4a9e65;if(this[_0x5c9e39(0x270)]=!0x0,((_0x4b72a8=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x4b72a8['getUnitId']())!==this[_0x5c9e39(0x26b)])return;const _0x35e807=(_0x4a9e65=this[_0x5c9e39(0x207)][_0x5c9e39(0x194)](_0x50f7fc)[_0x5c9e39(0x142)]())==null?void 0x0:_0x4a9e65[0x0],_0xcbd50=this[_0x5c9e39(0x2c2)][_0x5c9e39(0x2d7)](_0x11c449['UNIVER_SHEET'])[_0x5c9e39(0x1fc)]();_0x35e807&&_0xcbd50&&this['_updateLocalCursor'](_0xcbd50[_0x5c9e39(0x1d7)](),_0x35e807);}[_0x36542c(0x20d)](){this['_online']=!0x1;}};Be=Bi([B(0x2,_0x338b4d(_0x2c838e)),B(0x3,_0x338b4d(Ke)),B(0x4,_0x338b4d(_0x40b044)),B(0x5,_0x4d0d85),B(0x6,_0x344a42),B(0x7,_0x338b4d(_0x2b036c))],Be);var Yi=Object[_0x36542c(0x281)],Wi=(_0x3682fa,_0x4d6462,_0x3757b2,_0x40767b)=>{for(var _0x63c57b=_0x40767b>0x1?void 0x0:_0x40767b?Yi(_0x4d6462,_0x3757b2):_0x4d6462,_0x48754c=_0x3682fa['length']-0x1,_0x37ead8;_0x48754c>=0x0;_0x48754c--)(_0x37ead8=_0x3682fa[_0x48754c])&&(_0x63c57b=_0x37ead8(_0x63c57b)||_0x63c57b);return _0x63c57b;},Ce=(_0x5dce8f,_0x5d3ea7)=>(_0x4a6404,_0x475178)=>_0x5d3ea7(_0x4a6404,_0x475178,_0x5dce8f);function _0x24c3(){const _0x1de29f=['color','message','idSuffix','permission.content','ONLINE','selection','getOwnPropertyDescriptor','_doCreateSocket','_initResize','ENTITLE_REPORT_LIMIT_EXCEED','YUUMI_UNABLE_LOAD_URL','USER_IS_ANONYMOUS','_handleJoinEvent','createSocket','string','_transformUndoRedoStack','values','getCellPositionByOffset','now','NO_OTHER_CLIENTS_EDITING','jiqing.500','getformulaLimitStatusUrl','setParam','_showGuardMessage','INVITE_CODE_HAS_BEEN_UES','editingUnit','getCurrentRevOfUnit','_unitStatus','TOO_MANY_REQUESTS','REDEMPTION_INVALID_CODE','transformByState','session.collaboration-timeout','url(#off-line-icon_clip0_910_343)','_backgroundColor','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','shift','0\x200\x2017\x2016','getVpScrollXYInfoByPosToVp','YUUMI_AI_RUN_FAILED','lineTo','_colorAssignService','displayName','transformStateCache','_assignedColors','tag','_onRefRangeChange','column','YUUMI_ASYNCIO_CANCELLED','setItem','_anchor','getUnit','sheetID','roomMembers','/universer-api/license/formula/limit/status','getColorFromTheme','_cursors','_transformHistoryAndStateStack','replace','onRendered','storage','EMAIL_HAS_BEEN_BOUND','[LogService\x20Error]:\x20','_getMergeRange','collaboration-client-ui.config','OffLineIcon','getTypeOfUnitAdded$','_collaborationSessionService','_scheduleHeartbeat','setUndoRedoMutationParamsCache','ENTITLE_USE_COUPON_NOT_1ST_TRADE','_transformService','_univerInstanceService','_colorIndex','_memberID','white','_scene','backgroundColor','getMember','LICENSE_MAX_UNITS_EXCEEDED','_color','wsSessionTicketUrl','getSkeleton','getUnhiddenWorksheets','InsertRowCommandId','replaceDocRanges','_lastPointer','symbol','RECT','startFormulaLimitUrl','width','translate(.97)','find','getCurrentUnitForType','_registerRenderDependencies','getUndoRedoMutationParamsCache','Error','AWAITING_WITH_PENDING','runId','setAlpha','then','startColumn','disposeWithMe','ENTITLE_NEED_BILLING_ADDRESS','CURRENT_STATUS_CANNOT_OPERATE','279775ZCxPTK','formula.calculation.waiting','code','path','unsubscribe','283838gUstVT','LICENSE_DISTRO_REJECTED','actions','YUUMI_RATE_OVER_LIMIT','UNAUTHENTICATED','_cursorInfo$','sheetId','_docStateChangeManagerService','_releaseCalculationLimit','onTransformChange$','SOCKET_FAILED_RETRY','on-line-icon','transformMutation','none','INVITE_CODE_ALREADY_BOUND','_init','_getFormulaLimitStatus','clearTimeout','ENTITLE_CAN_NOT_BUY_LOWER_OTP','YUUMI_URL_COL_OUT_OF_RANGE','_transformPreviousActiveRange','send','_config','urlChange$','_shapes','_sheetSkeletonManagerService','executeCommand','defs','session.connection-failed','http://www.w3.org/2000/svg','status$','USER_NOT_FOUND','lineno','ENTITLE_DUP_SUBSCRIPTION','ENTITLE_CHAT_LIMIT_EXCEED','START_CALCULATION','YUUMI_NO_CUBOID_FOR_QUESTION','?taskId=','1680048DyezkS','PENDING','forEach','UNDEFINED','_labelPosition','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','CHANGESET_REVISION_CONFILICT','_getAnchorBounding','getSheetBySheetId','collab-text-anchor-','entries','closePath','red.300','url(#$1','_scheduleClearOtherTimer','Success','_startCalculationLimit','complete','startsWith','INTERNAL_ERROR','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','formula.calculation.unable','_saveCache','_getSaveTimeout','size','purple.300','_hideTimer','_session','univer-mr-2\x20univer-flex\x20univer-text-xl','_setupBeforeClosingHandler','row','VIEW_MAIN','fillStyle','moveTo','_initUnhandledRejectionListener','M0\x200H16V16H0z','drawWith','current','_collabSessionService','params','children','enableFrontendLog','mutations','_handleHeartbeatEvent','collab-text-range-','removeEventListener','unit','_render','_docTransformIMECacheService','doc.mutation.rich-text-editing','textRanges','setShapeProps','with','bottom','FromArray','_startDocCollabCursor','body','WECHAT_HAS_BEEN_BOUND','LOGIN_TOKEN_PROCESSING_FAILED','height','RemoveRowCommandId','clearInterval','_instanceService','attrs','ticket','event$','startRow','_localeService','_textBubble','[Window\x20Error]:\x20','_themeService','ALREADY_EXISTS','_cachedData','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','text','getCurrent','_context','from','transform','COMPLETION_FINISHED','_document','top','DATA_SOURCE_TOO_LARGE','unhandledrejection','findNodePositionByCharIndex','blue.400','bind','REDEMPTION_CODE_INACTIVE','addEventListener','enableLocalCache','unload','_removeCollabCursors','_checkCalculationAvailable','_initStatusListener','defIds','saveImage','getRelativeToViewportCoord','_syncEditingCollabCursorService','UNRECOGNIZED','LICENSE_EXPORT_SIZE_EXCEEDED','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','getUnitId','pipe','length','[CollaborationDataLoaderController]','collabStatus.conflict','_handleLeaveEvent','450605diAwuH','getMergeData','/run/','4504887vdrtSS','history','APPLY_REVISION_CONFILICT','getParam','6DFRAxe','search','makeDirty','push','formula.calculation.started','_saveTaskMap','isActive','stageInfo','YUUMI_CONNECTOR_URL_NOT_FOUND','transformRemoteChangeset','_beforeCloseService','collabCursorState$','_hasFormulaInDirtyRanges','memberID','hovered','YUUMI_ALL_TABLES_IS_INVALID','ENSURE_SNAPSHOT_EXECUTION','getStateCache','getCurrentSelections','_hovered','USERS_LEAVE','_notificationService','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_handleEvent','YUUMI_TABLE_NOT_FOUND_IN_UNIT','onStarting','_collabCursorState$','_commandService','deepClone','_logService','getOffsetConfig','engine','_toggleOnline','DeleteRangeMoveUpCommandId','INVITE_CODE_REQUIRED','toString','createInstance','Warning','collabStatus.offline','getDocRanges','delete','_anchorDot','_checkAndWaitForCalculationPermission','_registerDependencies','registerRefRange','init','onPointerEnter$','cursorInfo$','onMouseMove','restore','syncEditingCollabCursor','_configService','SYNCED','sessionStatus$','OTHER_CLIENT_EDITING','parseInt','registerRenderModule','fill','/universer-api/license/formula/limit/done','_monkeyPatchLogService','APPLY_DUPLICATED','triggerDblclick','MUTATION','has','_hover','_onCursorDelete','includes','parse','undoState','_uploadLog','UNIVER_SHEET','newValue','ENTITLE_COUPON_USED_UP','join','_pollingInterval','addObject','_getSessionTicket','_createSocketURL','CLOSE_ROOM','_removeClearOtherTimer','popstate','_unitOnClients','name','_collaborationController','isEditing','getValue','_clearOtherTimers','1279212FuzNOw','subscribeEvent','removeParam','disposeUnit','_httpService','black','OnLineIcon','1em','INVALID_ARGUMENT','registerComponent','docStateChange$','invokeId','_uiPartsService','get','entityInit$','_getSheetObject','_cursorShapes','_selfUnitIDs','APPLY_NON_SEQUENTIAL_REVISION','_localStorageService','_name','toRgbString','collaboration.closeRoom','onCommandExecuted','colno','href','cursorInfo','stringify','registerBeforeClose','maxFormulaLimit','subUnitId','labelPosition','source','_entities','assign','socket$','type','RemoveColCommandId','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_send','reason','svg','_dataLoaderService','_onCursorUpdate','_setupSubUnitSync','div','InsertRangeMoveDownCommandId','round','permission.title','ENTITLE_COUPON_EXPIRED','_scheduleSaving','REDEMPTION_CODE_NOT_STARTED','getUnitStatus$','debug','skeleton','_initDependencies','MOBILE_HAS_BEEN_BOUND','LOGIN_FAILED','_drawRectRange','getTypeOfUnitDisposed$','save','_docClipboardService','data','_setFormulaLimitStatus','_refreshCollabCursors','_initWindowErrorListener','getCollabCursors$','currentSkeleton$','DeleteRangeMoveLeftCommandId','subscribe','3IWYchc','_roomMembers$','_lastResponseTimestamp','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','flatMap','getFocusedUnit','result','_updateCollabCursors','_collaborationUIEventService','replaceState','getSheetId','_heartbeatTimer','updateOfflineData','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','max','collaboration.single-unit.warning','Loading','_drawTextRange','SOCKET_FAILED','getConfig','setConfig','yellow.400','_messageService','rgba(255,\x20255,\x20255,\x200.01)','_initEntityListener','unshift','addClipboardHook','on-line-icon_clip0_910_349','redoState','evenodd','OTHER_CLIENTS_EDITING','isArray','origin','REDEMPTION_CODE_FULLY_REDEEMED','saveOfflineData','APPLY_REJECT','pluginName','setInterval','min','CONFLICT','_startSheetCollabCursor','/universer-api/license/formula/limit/start','dispose','YUUMI_SUBSCRIPTION_NOT_FOUND','clipPath','collabStatus.synced','ERROR_AGAIN','getActiveSheet','searchParams','USER_NOT_INVITED_CODE','EMAIL_VERIFY_CODE_MISMATCH','ENTITLE_INSUFFICIENT_QUOTA','_revisionService','OFFLINE','_renderManagerService','...','measureText','ranges','_injector','collab-client.tooltip.reconnect','INVALID_INVITE_CODE','unitId','_getScale','JOIN_ROOM_FAILED','_toggleOffline','trim','application/json','m1Prime','_docSkeletonManagerService','CONNECTOR_DATA_TOO_LARGE','_handleHover','add','xlink:href','_memberService','APPLY_PERMISSION_DENIED','_collabCursorController','show','hide','_docSyncEditingCollabCursorService','_initEvent','post','m2Prime','next','REDEMPTION_CODE_HAS_BEEN_CREATED','#FFF','collaboration.offline-data-not-saved','PY_RUNTIME_SCRIPT_ERROR','REDEMPTION_USER_REDEEM_TIMES_EXCEED','_clearPolling','_applyCommand','transformIMECache','PERMISSION_DENIED','0\x200\x2016\x2016','exhaustSavingTask','defineProperty','subunit','_docTransformStateCacheService','_cursor','currentTheme$','transformSelections','asObservable','endColumn','_urlService','_currentUsage','Failed','pushState','_eventUnsubscribe','onLocalMutation','collabStatus.syncing','_disabled','mask','fillText','SNAPSHOT_INVALID_SNAPSHOT','_refRangeService','_updateURLWithCurrentState','saveTaskMap','_status$','addHandlerCallback','range','colorChannel1','error','_range','loadOfflineData','onPointerLeave$','InsertRangeMoveRightCommandId','_maxFormulaLimit','_draw','off-line-icon_clip0_910_343','getRenderById','arc','_id','off-line-icon','limitInfo','MoveRangeCommandId','_initStatusComponent','NOT_FOUND','UNIVER_DOC','1211497lZsjXs','map','selections','_initCommandExecutedListener','set','_initCommandInterceptor','InsertColCommandId','MOBILE_VERIFY_CODE_MISMATCH','executionId','_drawAnchor','substring','univer-flex\x20univer-items-center','getRangePointData','_entityInit$','whenReady','disableLocalCache','transformMutationsWithChangeset','_taskIds','FETCH_MISS','REDEMPTION_USER_NOT_ELIGIBLE','univerjs-icon\x20univerjs-icon-','unitID','currentColor','_updateLocalCursor','UPDATE_CURSOR','_initUserListener','_online','getAncestorScale','dispose$','filename','use','location','PAYMENT_CHANNEL_NOT_SUPPORT','NOT_COLLAB','SUCCESS','endRow','eventID'];_0x24c3=function(){return _0x1de29f;};return _0x24c3();}let H=class extends _0x2e3ce9{constructor(_0x3e972d,_0x47dffc,_0x3895c3){const _0x5633c9=_0x36542c;super(),_(this,_0x5633c9(0x1a8),new Map()),_(this,'_entityInit$',new _0x447fde()),(this[_0x5633c9(0x2c2)]=_0x3e972d,this['_injector']=_0x47dffc,this['_collabSessionService']=_0x3895c3,this[_0x5633c9(0x2f7)]());}[_0x36542c(0x1f7)](){const _0x3af870=_0x36542c;super[_0x3af870(0x1f7)](),this[_0x3af870(0x263)]['complete'](),this[_0x3af870(0x1a8)][_0x3af870(0x310)](_0x2c724a=>_0x2c724a['dispose']());}[_0x36542c(0x1c9)](_0x535b8c){const _0x490b4b=_0x36542c;return this[_0x490b4b(0x1a8)][_0x490b4b(0x16f)](_0x535b8c)?this[_0x490b4b(0x1a8)][_0x490b4b(0x194)](_0x535b8c)[_0x490b4b(0x15f)]:this[_0x490b4b(0x263)]['pipe'](_0x4479ea(_0x1dfbbc=>_0x1dfbbc[_0x490b4b(0x26b)]===_0x535b8c),_0x245695(_0x44783c=>_0x44783c['cursorInfo$']));}[_0x36542c(0x2f7)](){const _0x5b799d=_0x36542c;this[_0x5b799d(0x2c2)][_0x5b799d(0x2bc)](_0x11c449[_0x5b799d(0x176)])[_0x5b799d(0x124)](_0x5427bd(this[_0x5b799d(0x272)]))[_0x5b799d(0x1cc)](async _0x3352cf=>{const _0x51184c=_0x5b799d,_0x595225=_0x3352cf[_0x51184c(0x123)](),_0x810a55=await this[_0x51184c(0x1f5)](_0x595225);this[_0x51184c(0x263)][_0x51184c(0x21f)](_0x810a55),this[_0x51184c(0x1a8)]['set'](_0x595225,_0x810a55);}),this[_0x5b799d(0x2c2)][_0x5b799d(0x2bc)](_0x11c449[_0x5b799d(0x255)])[_0x5b799d(0x124)](_0x5427bd(this[_0x5b799d(0x272)]))[_0x5b799d(0x124)](_0x4479ea(_0xd8970=>!_0xd8970[_0x5b799d(0x123)]()[_0x5b799d(0x320)]('__')))[_0x5b799d(0x1cc)](async _0x495f3e=>{const _0x4714b8=_0x5b799d,_0x889341=_0x495f3e[_0x4714b8(0x123)](),_0x187129=await this[_0x4714b8(0x345)](_0x889341);this[_0x4714b8(0x263)][_0x4714b8(0x21f)](_0x187129),this['_entities'][_0x4714b8(0x25a)](_0x889341,_0x187129);}),_0x343681(this[_0x5b799d(0x2c2)][_0x5b799d(0x1c2)](_0x11c449[_0x5b799d(0x255)]),this[_0x5b799d(0x2c2)]['getTypeOfUnitDisposed$'](_0x11c449[_0x5b799d(0x176)]))[_0x5b799d(0x124)](_0x5427bd(this[_0x5b799d(0x272)]))['subscribe'](_0x2a2c36=>{const _0x22e7bb=_0x5b799d,_0x1cbefb=_0x2a2c36[_0x22e7bb(0x123)](),_0x112049=this[_0x22e7bb(0x1a8)][_0x22e7bb(0x194)](_0x1cbefb);_0x112049&&(_0x112049['dispose'](),this[_0x22e7bb(0x1a8)]['delete'](_0x1cbefb));});}async['_startSheetCollabCursor'](_0x6cc5d7){const _0x38634c=_0x36542c,_0x197fde=await this[_0x38634c(0x334)]['requireSession'](_0x6cc5d7),_0x32342b=this[_0x38634c(0x207)][_0x38634c(0x154)](Be,_0x6cc5d7,_0x197fde);return _0x32342b[_0x38634c(0x15d)](),_0x32342b;}async[_0x36542c(0x345)](_0xa0c901){const _0x43c8da=_0x36542c,_0x4a229d=await this[_0x43c8da(0x334)]['requireSession'](_0xa0c901),_0xc388a5=this['_injector'][_0x43c8da(0x154)](xe,_0xa0c901,_0x4a229d);return _0xc388a5[_0x43c8da(0x15d)](),_0xc388a5;}};H=Wi([Ce(0x0,_0x4d0d85),Ce(0x1,_0x338b4d(_0x2c838e)),Ce(0x2,_0x338b4d(_0x403187))],H);const Q=0x14,at=0xc8,Re=0x4,Vi=0x5;function ji(_0x274d3f,_0x2634e5){const _0x35518f=_0x36542c;let {radius:_0xb847d5,width:_0x52c456,height:_0x459602}=_0x2634e5;_0xb847d5=_0xb847d5!=null?_0xb847d5:0x0,_0x52c456=_0x52c456!=null?_0x52c456:0x1e,_0x459602=_0x459602!=null?_0x459602:0x1e;let _0x33a8e9=0x0,_0x5e0dae=0x0,_0x3ec6cf=0x0;_0x33a8e9=_0x5e0dae=_0x3ec6cf=Math[_0x35518f(0x1f3)](_0xb847d5,_0x52c456/0x2,_0x459602/0x2),_0x274d3f['beginPath'](),_0x274d3f[_0x35518f(0x32f)](_0x33a8e9,0x0),_0x274d3f[_0x35518f(0x2a2)](_0x52c456-_0x5e0dae,0x0),_0x274d3f['arc'](_0x52c456-_0x5e0dae,_0x5e0dae,_0x5e0dae,Math['PI']*0x3/0x2,0x0,!0x1),_0x274d3f[_0x35518f(0x2a2)](_0x52c456,_0x459602-_0x3ec6cf),_0x274d3f[_0x35518f(0x24e)](_0x52c456-_0x3ec6cf,_0x459602-_0x3ec6cf,_0x3ec6cf,0x0,Math['PI']/0x2,!0x1),_0x274d3f[_0x35518f(0x2a2)](0x0,_0x459602),_0x274d3f[_0x35518f(0x2a2)](0x0,_0x33a8e9),_0x274d3f[_0x35518f(0x24e)](_0x33a8e9,_0x33a8e9,_0x33a8e9,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x274d3f[_0x35518f(0x319)](),_0x2634e5[_0x35518f(0x169)]&&(_0x274d3f['save'](),_0x274d3f[_0x35518f(0x32e)]=_0x2634e5[_0x35518f(0x169)],_0x2634e5['fillRule']===_0x35518f(0x1ea)?_0x274d3f[_0x35518f(0x169)](_0x35518f(0x1ea)):_0x274d3f[_0x35518f(0x169)](),_0x274d3f[_0x35518f(0x161)]());}class ve extends _0x1e4876{constructor(_0x5d9e13,_0x1d01d4){const _0x1d72f3=_0x36542c;super(_0x5d9e13,_0x1d01d4),_(this,_0x1d72f3(0x27b)),_(this,_0x1d72f3(0x358)),(this[_0x1d72f3(0x27b)]=_0x1d01d4==null?void 0x0:_0x1d01d4[_0x1d72f3(0x27b)],this[_0x1d72f3(0x358)]=_0x1d01d4==null?void 0x0:_0x1d01d4['text']);}static[_0x36542c(0x332)](_0x5ef112,_0x3b03f4){const _0x109b72=_0x36542c,{text:_0x2f4951,color:_0x2b100d}=_0x3b03f4;_0x5ef112[_0x109b72(0x1c3)](),_0x5ef112['font']=_0x109b72(0x313);const _0x1b3876=_0x5ef112[_0x109b72(0x205)](_0x2f4951)['width'],_0x324d37=Math['min'](_0x1b3876+0x2*Re,at);ji(_0x5ef112,{'height':Q,'radius':0x4,'width':_0x324d37,'fill':_0x2b100d}),_0x5ef112[_0x109b72(0x32e)]=_0x109b72(0x221);const _0x34487b=Re,_0x194e22=Q-Vi,_0x4ebd23=at-0x2*Re;if(_0x1b3876>_0x4ebd23){let _0x2b570e='',_0x257786=0x0;for(const _0x110a13 of _0x2f4951){const _0x2f8037=_0x5ef112['measureText'](_0x110a13)[_0x109b72(0x2d4)];if(_0x257786+_0x2f8037<=_0x4ebd23-_0x5ef112[_0x109b72(0x205)](_0x109b72(0x204))[_0x109b72(0x2d4)])_0x2b570e+=_0x110a13,_0x257786+=_0x2f8037;else{_0x2b570e+=_0x109b72(0x204);break;}}_0x5ef112[_0x109b72(0x23c)](_0x2b570e,_0x34487b,_0x194e22);}else _0x5ef112['fillText'](_0x2f4951,_0x34487b,_0x194e22);_0x5ef112[_0x109b72(0x161)]();}[_0x36542c(0x24b)](_0x42088f){ve['drawWith'](_0x42088f,this);}}const De=_0x36542c(0x317),Xi=_0x36542c(0x33a),Gi='collab-rect-range-',z=0x6,Ki=1.5,Ne=0x4,zi=1.5,Ji=_0x36542c(0x1e4);class ct{constructor(_0x51f87d,_0x4c57bd,_0xa0e90b,_0x456a2f){const _0x47eac3=_0x36542c;_(this,_0x47eac3(0x300),[]),_(this,_0x47eac3(0x2ac),null),_(this,_0x47eac3(0x352),null),_(this,_0x47eac3(0x159),null),_(this,'_hideTimer',null),_(this,_0x47eac3(0x237),null),(this['_cursor']=_0x51f87d,this[_0x47eac3(0x2c6)]=_0x4c57bd,this['_docSkeleton']=_0xa0e90b,this[_0x47eac3(0x35e)]=_0x456a2f,this[_0x47eac3(0x33d)]());}set[_0x36542c(0x170)](_0x4ada76){const _0x34ab3a=_0x36542c;_0x4ada76?(this['_anchorDot']&&this[_0x34ab3a(0x159)][_0x34ab3a(0x21a)](),this[_0x34ab3a(0x352)]&&this[_0x34ab3a(0x352)][_0x34ab3a(0x219)]()):(this[_0x34ab3a(0x159)]&&this['_anchorDot'][_0x34ab3a(0x219)](),this[_0x34ab3a(0x352)]&&this[_0x34ab3a(0x352)][_0x34ab3a(0x21a)]());}[_0x36542c(0x1f7)](){const _0x2b2d2e=_0x36542c;for(const _0x30089c of this[_0x2b2d2e(0x300)])_0x30089c[_0x2b2d2e(0x1f7)]();this['_textBubble']&&this['_textBubble']['dispose'](),this[_0x2b2d2e(0x159)]&&this[_0x2b2d2e(0x159)][_0x2b2d2e(0x1f7)](),this[_0x2b2d2e(0x2ac)]&&this['_anchor'][_0x2b2d2e(0x1f7)](),this['_eventUnsubscribe']&&this['_eventUnsubscribe']();}[_0x36542c(0x33d)](){const _0x16ec7b=_0x36542c;var _0x3d6ce0;const {_docSkeleton:_0x41f743,_document:_0xb1e995}=this,{color:_0x399cdb,name:_0x3c185c,ranges:_0x5c75bf}=this[_0x16ec7b(0x22e)],_0x59276d=_0xb1e995[_0x16ec7b(0x14e)](),{docsLeft:_0x207967,docsTop:_0x193577}=_0x59276d,_0x2868a7=new _0x1cb209(_0x59276d,_0x41f743);for(const {startOffset:_0x40cd67,endOffset:_0x5b416f,rangeType:_0xd664c4,segmentId:_0x5ce131,segmentPage:_0x3fb152,collapsed:_0x58b8a1,isActive:_0x1ca08b}of _0x5c75bf){const _0x2a0a49=_0x41f743[_0x16ec7b(0x112)](_0x40cd67,!0x0,_0x5ce131,_0x3fb152);let _0x54dfe4=_0x41f743[_0x16ec7b(0x112)](_0x5b416f,!0x0,_0x5ce131,_0x3fb152);if(_0x54dfe4==null&&(_0x54dfe4=_0x41f743['findNodePositionByCharIndex'](_0x5b416f-0x1,!0x1,_0x5ce131,_0x3fb152)),_0x1ca08b){const {contentBoxPointGroup:_0x363035}=_0x2868a7[_0x16ec7b(0x262)](_0x54dfe4,_0x54dfe4);if(_0x363035[_0x16ec7b(0x125)]===0x0)continue;this[_0x16ec7b(0x25f)](_0x399cdb,_0x363035,_0x207967,_0x193577,_0x3c185c),this[_0x16ec7b(0x237)]=this[_0x16ec7b(0x213)]();}if(_0x2a0a49&&_0x54dfe4){if(_0xd664c4===_0x584882[_0x16ec7b(0x2d2)]){const _0x103de0=new _0x22d440(_0x59276d,_0x41f743),{pointGroup:_0x19589a}=(_0x3d6ce0=_0x103de0[_0x16ec7b(0x262)](_0x2a0a49,_0x54dfe4))!=null?_0x3d6ce0:{};if(_0x19589a==null||_0x19589a[_0x16ec7b(0x125)]===0x0)continue;this[_0x16ec7b(0x1c1)](_0x399cdb,_0x19589a,_0x207967,_0x193577);}else{if(!_0x58b8a1){const {borderBoxPointGroup:_0x63d74}=_0x2868a7['getRangePointData'](_0x2a0a49,_0x54dfe4);if(_0x63d74[_0x16ec7b(0x125)]===0x0)continue;this[_0x16ec7b(0x1de)](_0x399cdb,_0x63d74,_0x207967,_0x193577);}}}}}[_0x36542c(0x25f)](_0x968d5f,_0xc8269b,_0x53f61a,_0x279164,_0x3b646e){const _0x471b53=_0x36542c,_0x110924=this[_0x471b53(0x315)](_0xc8269b),{left:_0xf2e407,top:_0xfbe2f,height:_0x24d7d3}=_0x110924,_0x1c9035=this[_0x471b53(0x20b)](),_0x108813=zi/_0x1c9035,_0x3b8a58=new _0x20c8d4(De+_0x52eed0(z),{'left':_0xf2e407+_0x53f61a-_0x108813,'top':_0xfbe2f+_0x279164,'height':_0x24d7d3,'width':Ki,'fill':_0x968d5f||_0x4a919b(_0x1bb289['black'],0x0),'strokeWidth':_0x108813,'stroke':Ji,'evented':!0x0});this[_0x471b53(0x2ac)]=_0x3b8a58,this[_0x471b53(0x2c6)][_0x471b53(0x17b)](_0x3b8a58,_0x513ae7);const _0x578335=new _0x20c8d4(De+_0x52eed0(z),{'left':_0xf2e407+_0x53f61a-_0x108813,'top':_0xfbe2f+_0x279164-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x968d5f||_0x4a919b(_0x1bb289[_0x471b53(0x18c)],0x0),'strokeWidth':0x0,'stroke':_0x968d5f||_0x4a919b(_0x1bb289['black'],0x0),'evented':!0x1});this[_0x471b53(0x159)]=_0x578335,this['_scene']['addObject'](_0x578335,_0x513ae7);const _0x3a8678=new ve(De+_0x52eed0(z),{'left':_0xf2e407+_0x53f61a-_0x108813,'top':_0xfbe2f+_0x279164-Q,'text':_0x3b646e,'color':_0x968d5f});this['_textBubble']=_0x3a8678,this['_scene'][_0x471b53(0x17b)](_0x3a8678,_0x513ae7),this[_0x471b53(0x170)]=!0x1;}['_handleHover'](){const _0x563330=_0x36542c,_0x3de06a=this['_anchor'][_0x563330(0x15e)][_0x563330(0x188)](()=>{const _0x3ad86a=_0x563330;this[_0x3ad86a(0x170)]=!0x0;}),_0x3c5de5=this[_0x563330(0x2ac)][_0x563330(0x248)][_0x563330(0x188)](()=>{const _0x2404e1=_0x563330;this['_hideTimer']&&clearTimeout(this[_0x2404e1(0x328)]),this[_0x2404e1(0x328)]=setTimeout(()=>{const _0x12fd57=_0x2404e1;this[_0x12fd57(0x170)]=!0x1;},0x7d0);});return()=>{const _0x46f725=_0x563330;_0x3de06a[_0x46f725(0x2e7)](),_0x3c5de5['unsubscribe']();};}['_drawTextRange'](_0x2804ba,_0x4a92c0,_0x5af623,_0x3e593a){const _0x1bd4b3=_0x36542c,_0xa415a8=new _0x131f5a(_0x2804ba)[_0x1bd4b3(0x2dd)](0.2)[_0x1bd4b3(0x19c)](),_0x1ab608=new _0x43c252(Xi+_0x52eed0(z),{'pointsGroup':_0x4a92c0,'fill':_0xa415a8||_0x4a919b(_0x1bb289['black'],0.2),'left':_0x5af623,'top':_0x3e593a,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1bd4b3(0x300)]['push'](_0x1ab608),this[_0x1bd4b3(0x2c6)][_0x1bd4b3(0x17b)](_0x1ab608,_0x513ae7);}[_0x36542c(0x1c1)](_0x4d1fdd,_0xfc6344,_0x148bb2,_0x5b3aad){const _0x13a424=_0x36542c,_0x41471f=new _0x131f5a(_0x4d1fdd)[_0x13a424(0x2dd)](0.2)['toRgbString'](),_0x37e201=new _0x43c252(Gi+_0x52eed0(z),{'pointsGroup':_0xfc6344,'fill':_0x41471f||_0x4a919b(_0x1bb289['black'],0.2),'left':_0x148bb2,'top':_0x5b3aad,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x13a424(0x300)][_0x13a424(0x133)](_0x37e201),this[_0x13a424(0x2c6)][_0x13a424(0x17b)](_0x37e201,_0x513ae7);}[_0x36542c(0x315)](_0x18b48c){const _0x5aec39=_0x18b48c[0x0],_0x8b0224=_0x5aec39[0x0],_0x56cf96=_0x5aec39[0x2],{x:_0x2ef7e5,y:_0xa751b2}=_0x8b0224,{x:_0x55673f,y:_0x5dc242}=_0x56cf96;return{'left':_0x2ef7e5,'top':_0xa751b2,'width':_0x55673f-_0x2ef7e5,'height':_0x5dc242-_0xa751b2};}[_0x36542c(0x20b)](){const _0x58a47a=_0x36542c,{scaleX:_0xc8c633,scaleY:_0x14f905}=this['_scene'][_0x58a47a(0x271)]();return Math[_0x58a47a(0x1db)](_0xc8c633,_0x14f905);}}var Zi=Object[_0x36542c(0x281)],Qi=(_0x1e11ae,_0x345676,_0x25bcb3,_0x4cda33)=>{for(var _0x3f3e86=_0x4cda33>0x1?void 0x0:_0x4cda33?Zi(_0x345676,_0x25bcb3):_0x345676,_0x1b6df2=_0x1e11ae['length']-0x1,_0x461bd6;_0x1b6df2>=0x0;_0x1b6df2--)(_0x461bd6=_0x1e11ae[_0x1b6df2])&&(_0x3f3e86=_0x461bd6(_0x3f3e86)||_0x3f3e86);return _0x3f3e86;},ie=(_0xc745b2,_0x5a4142)=>(_0x2f0e89,_0x1c0732)=>_0x5a4142(_0x2f0e89,_0x1c0732,_0xc745b2);let Fe=class extends _0x2e3ce9{constructor(_0x44f5c5,_0x25540e,_0x4ba7f1,_0x454906,_0x11e128){const _0x472d6f=_0x36542c;super(),_(this,'_cursorShapes',[]),_(this,'_cursors',[]),(this['_context']=_0x44f5c5,this[_0x472d6f(0x211)]=_0x25540e,this[_0x472d6f(0x218)]=_0x4ba7f1,this[_0x472d6f(0x14b)]=_0x454906,this[_0x472d6f(0x354)]=_0x11e128,this[_0x472d6f(0x2f7)]());}['_init'](){const _0x263d7d=_0x36542c,_0x17d770=this['_context'][_0x263d7d(0x20a)],_0x800ff3=this[_0x263d7d(0x211)];this[_0x263d7d(0x2e0)](_0x174358([this[_0x263d7d(0x218)]['getCollabCursors$'](_0x17d770),this[_0x263d7d(0x354)][_0x263d7d(0x22f)]])[_0x263d7d(0x124)](_0x59c5bc(([_0x10925f,_0x502f3e])=>({'skeleton':_0x800ff3[_0x263d7d(0x2cc)](),'cursors':[..._0x10925f[_0x263d7d(0x28b)]()][_0x263d7d(0x1d1)](_0x5e7a48=>({..._0x5e7a48,'color':this['_themeService'][_0x263d7d(0x2b1)](_0x5e7a48[_0x263d7d(0x27b)])}))})))[_0x263d7d(0x1cc)](_0x3da7e6=>{const _0x591455=_0x263d7d;if(this[_0x591455(0x119)](),_0x3da7e6){const {skeleton:_0x590a3b,cursors:_0x124ba6}=_0x3da7e6;this['_updateCollabCursors'](_0x590a3b,_0x124ba6);}})),this[_0x263d7d(0x283)](),this[_0x263d7d(0x259)]();}[_0x36542c(0x1d4)](_0x7fcc50,_0x1f9253){const _0x1b08e=_0x36542c,{scene:_0x33581a,mainComponent:_0x1b667c}=this['_context'],_0x37482e=_0x1f9253[_0x1b08e(0x257)](_0x172fc2=>new ct(_0x172fc2,_0x33581a,_0x7fcc50,_0x1b667c));this[_0x1b08e(0x197)]=_0x37482e,this[_0x1b08e(0x2b2)]=_0x1f9253;}['_refreshCollabCursors'](){const _0x35f52c=_0x36542c;this['_removeCollabCursors']();const {scene:_0x289c06,mainComponent:_0x4ab8a1}=this[_0x35f52c(0x35a)],_0x340e44=this[_0x35f52c(0x211)][_0x35f52c(0x2cc)](),_0x393135=this[_0x35f52c(0x2b2)][_0x35f52c(0x257)](_0x1f720c=>new ct(_0x1f720c,_0x289c06,_0x340e44,_0x4ab8a1));this['_cursorShapes']=_0x393135;}['_removeCollabCursors'](){const _0x43d4a5=_0x36542c;this['_cursorShapes'][_0x43d4a5(0x310)](_0x516901=>_0x516901[_0x43d4a5(0x1f7)]()),this[_0x43d4a5(0x197)]=[];}[_0x36542c(0x259)](){const _0x136c7b=_0x36542c,_0x4f5bee=[_0x1e5c3e['id']];this[_0x136c7b(0x2e0)](this[_0x136c7b(0x14b)]['onCommandExecuted'](_0x460a71=>{const _0x58fbd6=_0x136c7b;_0x4f5bee[_0x58fbd6(0x172)](_0x460a71['id'])&&_0x460a71['params'][_0x58fbd6(0x20a)]===this['_context'][_0x58fbd6(0x20a)]&&this[_0x58fbd6(0x1c7)]();}));}[_0x36542c(0x283)](){const _0x1b1b77=_0x36542c;this[_0x1b1b77(0x2e0)](_0x4a08d3(this[_0x1b1b77(0x35a)][_0x1b1b77(0x14f)][_0x1b1b77(0x2f1)])[_0x1b1b77(0x124)](_0x283ed0(_0xf5852e=>_0xf5852e[_0x1b1b77(0x1ab)]===_0x7f58f8['resize']),_0x218010(0x10))[_0x1b1b77(0x1cc)](()=>{const _0x44b217=_0x1b1b77;this[_0x44b217(0x1c7)]();}));}};Fe=Qi([ie(0x1,_0x338b4d(_0x265ea4)),ie(0x2,_0x338b4d(H)),ie(0x3,_0x344a42),ie(0x4,_0x338b4d(_0x331d79))],Fe);const qi=0x1,en=1.5;class tn extends _0x1e4876{constructor(_0x42718d,_0x311072){const _0x1f6630=_0x36542c;super(_0x42718d,_0x311072),_(this,_0x1f6630(0x2ca)),_(this,_0x1f6630(0x143),!0x1),_(this,_0x1f6630(0x246)),_(this,_0x1f6630(0x19b),''),_(this,_0x1f6630(0x312),_0x1f6630(0x35f)),_(this,_0x1f6630(0x29c)),(_0x311072&&this[_0x1f6630(0x341)](_0x311072),this[_0x1f6630(0x15e)]['subscribeEvent'](()=>this[_0x1f6630(0x341)]({'hovered':!0x0})),this[_0x1f6630(0x248)][_0x1f6630(0x188)](()=>this[_0x1f6630(0x341)]({'hovered':!0x1})));}[_0x36542c(0x341)](_0xd53762){const _0x558466=_0x36542c;var _0x5a8220,_0x38b34d,_0x288a76,_0x1485f4,_0x12e0a1,_0x2052b0;this[_0x558466(0x2ca)]=(_0x5a8220=_0xd53762[_0x558466(0x27b)])!=null?_0x5a8220:this['_color'],this[_0x558466(0x143)]=(_0x38b34d=_0xd53762[_0x558466(0x13e)])!=null?_0x38b34d:this[_0x558466(0x143)],this['_range']=(_0x288a76=_0xd53762[_0x558466(0x243)])!=null?_0x288a76:this[_0x558466(0x246)],this['_name']=(_0x1485f4=_0xd53762['name'])!=null?_0x1485f4:this[_0x558466(0x19b)],this[_0x558466(0x312)]=(_0x12e0a1=_0xd53762[_0x558466(0x1a6)])!=null?_0x12e0a1:this['_labelPosition'],this[_0x558466(0x29c)]=(_0x2052b0=_0xd53762[_0x558466(0x2c7)])!=null?_0x2052b0:this[_0x558466(0x29c)],this[_0x558466(0x299)]({'width':_0xd53762['width'],'height':_0xd53762[_0x558466(0x349)]});}[_0x36542c(0x160)](_0x33a29b){const _0x35d50b=_0x36542c,{row:_0x3bc5ee,column:_0x5c370f}=_0x33a29b;if(_0x3bc5ee>=this['_range'][_0x35d50b(0x350)]&&_0x3bc5ee<=this[_0x35d50b(0x246)][_0x35d50b(0x279)]&&_0x5c370f>=this[_0x35d50b(0x246)][_0x35d50b(0x2df)]&&_0x5c370f<=this['_range'][_0x35d50b(0x232)]){this[_0x35d50b(0x341)]({'hovered':!0x0});return;}this[_0x35d50b(0x341)]({'hovered':!0x1});}[_0x36542c(0x16d)](_0x5cd72f){return!0x1;}[_0x36542c(0x24b)](_0x113568){const _0x1b74f1=_0x36542c;_0x20c8d4[_0x1b74f1(0x332)](_0x113568,{'width':this[_0x1b74f1(0x2d4)],'height':this[_0x1b74f1(0x349)],'strokeWidth':en,'stroke':this[_0x1b74f1(0x2ca)],'evented':!0x1,'fill':this[_0x1b74f1(0x29c)]}),this[_0x1b74f1(0x143)]&&(_0x113568[_0x1b74f1(0x1c3)](),_0x113568[_0x1b74f1(0x35c)](0x1,0x0,0x0,0x1,this['width'],this[_0x1b74f1(0x312)]===_0x1b74f1(0x343)?0x0:-Q),ve[_0x1b74f1(0x332)](_0x113568,{'text':this['_name'],'color':this[_0x1b74f1(0x2ca)]}),_0x113568[_0x1b74f1(0x161)]());}}var sn=Object['getOwnPropertyDescriptor'],nn=(_0x396333,_0x3ddb9d,_0x1733f0,_0x522aa1)=>{const _0x5585ef=_0x36542c;for(var _0x4e7cb2=_0x522aa1>0x1?void 0x0:_0x522aa1?sn(_0x3ddb9d,_0x1733f0):_0x3ddb9d,_0x5a3976=_0x396333[_0x5585ef(0x125)]-0x1,_0x11f9a4;_0x5a3976>=0x0;_0x5a3976--)(_0x11f9a4=_0x396333[_0x5a3976])&&(_0x4e7cb2=_0x11f9a4(_0x4e7cb2)||_0x4e7cb2);return _0x4e7cb2;},be=(_0x2d2872,_0x439192)=>(_0x4bf60e,_0x4a7973)=>_0x439192(_0x4bf60e,_0x4a7973,_0x2d2872);const rn=0x1389;let ke=class extends _0x2e3ce9{constructor(_0x27256b,_0x22019c,_0x935b2b,_0x44dfb2){const _0x33701d=_0x36542c;super(),_(this,_0x33701d(0x2b2),new Set()),_(this,_0x33701d(0x2d0),null),(this[_0x33701d(0x35a)]=_0x27256b,this[_0x33701d(0x301)]=_0x22019c,this[_0x33701d(0x218)]=_0x935b2b,this[_0x33701d(0x354)]=_0x44dfb2,this['_init']());}[_0x36542c(0x2f7)](){const _0x3f2c34=_0x36542c;this[_0x3f2c34(0x301)][_0x3f2c34(0x1ca)]['pipe'](_0x88348d(this[_0x3f2c34(0x272)]),_0x469c3c(_0x6197d8=>{const _0xe1908a=_0x3f2c34;if(_0x6197d8){const _0x4a9752=_0x6197d8[_0xe1908a(0x2ee)];return _0x174358(this['_collabCursorController']['getCollabCursors$'](this[_0xe1908a(0x35a)][_0xe1908a(0x20a)]),this[_0xe1908a(0x354)][_0xe1908a(0x22f)])[_0xe1908a(0x124)](_0x59c5bc(([_0x2676ff,_0x364090])=>{const _0x4de157=_0xe1908a,_0x36121f=new Map();return _0x2676ff[_0x4de157(0x310)]((_0x1dcf9d,_0x2a5207)=>{const _0x42aa6f=_0x4de157;if(_0x1dcf9d[_0x42aa6f(0x2ae)]===_0x4a9752){const _0x33acde={..._0x1dcf9d};_0x33acde['color']=this[_0x42aa6f(0x354)]['getColorFromTheme'](_0x1dcf9d[_0x42aa6f(0x27b)]),_0x36121f['set'](_0x2a5207,_0x33acde);}}),{'skeleton':_0x6197d8,'cursors':_0x36121f};}));}return _0x5eb303({'skeleton':null,'cursors':new Map()});}))[_0x3f2c34(0x1cc)](({skeleton:_0x271af9,cursors:_0x528b2d})=>{const _0x37cbf2=_0x3f2c34;this[_0x37cbf2(0x119)](),_0x271af9&&this['_updateCollabCursors'](_0x271af9,_0x528b2d);}),this[_0x3f2c34(0x301)][_0x3f2c34(0x1ca)]['subscribe'](_0x185153=>{const _0x162e9b=_0x3f2c34;if(_0x185153==null)return;const {skeleton:_0x3bc4c8}=_0x185153,{scene:_0xe2f91b}=this['_context'];_0xe2f91b['onPointerMove$'][_0x162e9b(0x188)](_0x9e9857(_0x20151e=>{const _0x5f442a=_0x162e9b;var _0x12969d,_0xf5b79c;const {offsetX:_0x334b0e,offsetY:_0x33d859}=_0x20151e,{x:_0x3f9d34,y:_0x52d6e9}=_0xe2f91b[_0x5f442a(0x11e)](_0x35ebd3['FromArray']([_0x334b0e,_0x33d859])),{scaleX:_0x4014e8,scaleY:_0x4621c3}=_0xe2f91b[_0x5f442a(0x271)](),_0x1dd294=_0xe2f91b['getViewport'](_0x2e4a5e[_0x5f442a(0x32d)]),_0x112c0c=_0xe2f91b[_0x5f442a(0x2a0)](_0x35ebd3[_0x5f442a(0x344)]([_0x3f9d34,_0x52d6e9]),_0x1dd294),_0x314184=_0x3bc4c8[_0x5f442a(0x28c)](_0x334b0e,_0x33d859,_0x4014e8,_0x4621c3,_0x112c0c);((_0x12969d=this['_lastPointer'])==null?void 0x0:_0x12969d[_0x5f442a(0x2a9)])===_0x314184[_0x5f442a(0x2a9)]&&((_0xf5b79c=this[_0x5f442a(0x2d0)])==null?void 0x0:_0xf5b79c[_0x5f442a(0x32c)])===_0x314184[_0x5f442a(0x32c)]||this['_cursors']['forEach'](_0x16f0a7=>{const _0x379b99=_0x5f442a;_0x16f0a7[_0x379b99(0x160)](_0x314184);});},0x64));});}[_0x36542c(0x1d4)](_0x143e99,_0xc2149e){const _0x1d8c39=_0x36542c;var _0x213e50;const _0x10b0e2=(_0x213e50=this[_0x1d8c39(0x301)][_0x1d8c39(0x359)]())==null?void 0x0:_0x213e50[_0x1d8c39(0x1bd)];if(!_0x10b0e2)return;const _0x39931b=this[_0x1d8c39(0x196)]();if(!_0x39931b)return;this[_0x1d8c39(0x2b2)]['forEach'](_0x500f57=>{const _0xa7e627=_0x1d8c39;_0x500f57[_0xa7e627(0x132)]();});const {scene:_0x27e88d}=_0x39931b,_0x12b1ca=on(Array['from'](_0xc2149e[_0x1d8c39(0x28b)]()))['map'](_0x406f6c=>{const _0x202e3d=_0x1d8c39,{color:_0x4d4477,range:_0x558361,name:_0x53363a,selection:_0x1630a5,sheetID:_0x5d4953}=_0x406f6c,{startColumn:_0x525cfc,startRow:_0x32a6f4,endColumn:_0x6230c9,endRow:_0xb9eeb4}=_0x558361,_0x49a3ae=_0x504140(_0x32a6f4,_0x525cfc,_0x27e88d,_0x10b0e2),_0x4bebb1=_0x504140(_0xb9eeb4,_0x6230c9,_0x27e88d,_0x10b0e2),{columnHeaderHeightAndMarginTop:_0x3af41f}=_0x10b0e2,{startX:_0x5570aa,startY:_0x3a2eca}=_0x49a3ae,{endX:_0x37c27c,endY:_0x2811b2}=_0x4bebb1,_0xe5441d=_0x37c27c-_0x5570aa,_0x21de13=_0x2811b2-_0x3a2eca,_0x43a8bf={'labelPosition':_0x3a2eca-_0x3af41f>=Q?'top':_0x202e3d(0x343),'sheetID':_0x5d4953,'range':_0x558361,'color':_0x4d4477,'name':_0x53363a,'selection':_0x1630a5,'left':_0x5570aa,'top':_0x3a2eca,'width':_0xe5441d,'height':_0x21de13,'evented':!0x1,'zIndex':rn};return new tn(_0x53363a,_0x43a8bf);});_0x27e88d['addObjects'](_0x12b1ca,qi),this[_0x1d8c39(0x2b2)]=new Set(_0x12b1ca);}['_removeCollabCursors'](){const _0x54c1d6=_0x36542c;var _0x517993;(_0x517993=this[_0x54c1d6(0x2b2)])==null||_0x517993[_0x54c1d6(0x310)](_0x375411=>_0x375411[_0x54c1d6(0x1f7)]());}['_getSheetObject'](){const _0x36f49d=_0x36542c;return _0x3b0908(this['_context'][_0x36f49d(0x33c)],this[_0x36f49d(0x35a)]);}};ke=nn([be(0x1,_0x338b4d(_0x49f76f)),be(0x2,_0x338b4d(H)),be(0x3,_0x338b4d(_0x331d79))],ke);function on(_0x321c4e){const _0x4ab701=_0x36542c,_0xb98030=new Map();return _0x321c4e[_0x4ab701(0x310)](_0x4cf92b=>{const _0x37a802=_0x4ab701;if(_0xb98030[_0x37a802(0x16f)](_0x4cf92b[_0x37a802(0x280)])){const _0x2177dc=_0xb98030['get'](_0x4cf92b[_0x37a802(0x280)]);_0x2177dc[_0x37a802(0x182)]+=',\x20'+_0x4cf92b[_0x37a802(0x182)];}else _0xb98030['set'](_0x4cf92b[_0x37a802(0x280)],_0x4cf92b);}),Array['from'](_0xb98030[_0x4ab701(0x28b)]());}var an=Object[_0x36542c(0x281)],cn=(_0x55e873,_0x2a0d08,_0x656fc4,_0x3fb4da)=>{const _0x2bb606=_0x36542c;for(var _0x46dc7c=_0x3fb4da>0x1?void 0x0:_0x3fb4da?an(_0x2a0d08,_0x656fc4):_0x2a0d08,_0x5c5814=_0x55e873[_0x2bb606(0x125)]-0x1,_0x37062d;_0x5c5814>=0x0;_0x5c5814--)(_0x37062d=_0x55e873[_0x5c5814])&&(_0x46dc7c=_0x37062d(_0x46dc7c)||_0x46dc7c);return _0x46dc7c;},F=(_0x1e035f,_0x53d11a)=>(_0x37666a,_0xf9fdf4)=>_0x53d11a(_0x37666a,_0xf9fdf4,_0x1e035f);let _e=class extends _0xc640cc{constructor(_0x137a4b,_0x128ac0,_0x47d96f,_0x939dd5,_0x4e2529,_0x14b950){const _0x1d9156=_0x36542c;super(),this[_0x1d9156(0x13a)]=_0x137a4b,this['_localCacheService']=_0x128ac0,this[_0x1d9156(0x1d5)]=_0x47d96f,this[_0x1d9156(0x1e3)]=_0x939dd5,this[_0x1d9156(0x145)]=_0x4e2529,this[_0x1d9156(0x351)]=_0x14b950,this[_0x1d9156(0x32b)](),this[_0x1d9156(0x21c)]();}[_0x36542c(0x32b)](){const _0x5ea1e4=_0x36542c;this[_0x5ea1e4(0x2e0)](this['_beforeCloseService'][_0x5ea1e4(0x1a3)](()=>{const _0x46393f=_0x5ea1e4;if(this['_localCacheService']['saveTaskMap'][_0x46393f(0x326)])return this[_0x46393f(0x351)]['t'](_0x46393f(0x222));}));}['_initEvent'](){const _0x50c25d=_0x36542c;this[_0x50c25d(0x2e0)](this[_0x50c25d(0x1d5)][_0x50c25d(0x34f)][_0x50c25d(0x1cc)](_0x3e6ec9=>{const _0x4456d6=_0x50c25d;_0x3e6ec9['id']===_0x5b6a2e[_0x4456d6(0x166)]&&this['_messageService'][_0x4456d6(0x219)]({'type':_0x5d4ed0[_0x4456d6(0x155)],'content':this[_0x4456d6(0x351)]['t'](_0x4456d6(0x1dc))}),_0x3e6ec9['id']===_0x5b6a2e[_0x4456d6(0x17e)]&&this[_0x4456d6(0x1e3)]['show']({'type':_0x5d4ed0[_0x4456d6(0x155)],'content':this[_0x4456d6(0x351)]['t'](_0x4456d6(0x19d))}),_0x3e6ec9['id']===_0x5b6a2e[_0x4456d6(0x228)]&&this[_0x4456d6(0x145)][_0x4456d6(0x219)]({'title':this[_0x4456d6(0x351)]['t'](_0x4456d6(0x1b7)),'content':this[_0x4456d6(0x351)]['t'](_0x4456d6(0x27e)),'type':_0x4456d6(0x245),'duration':0x0}),_0x3e6ec9['id']===_0x5b6a2e[_0x4456d6(0x1f4)]&&this[_0x4456d6(0x1e3)][_0x4456d6(0x219)]({'type':_0x5d4ed0[_0x4456d6(0x2da)],'content':this[_0x4456d6(0x351)]['t']('collaboration.closeRoom')+'('+_0x3e6ec9['data']+')'}),_0x3e6ec9['id']===_0x5b6a2e[_0x4456d6(0x20c)]&&this['_messageService'][_0x4456d6(0x219)]({'type':_0x5d4ed0['Warning'],'content':this[_0x4456d6(0x351)]['t'](_0x3e6ec9['data']||'')}),_0x3e6ec9['id']===_0x5b6a2e[_0x4456d6(0x2f2)]&&this[_0x4456d6(0x1e3)][_0x4456d6(0x219)]({'type':_0x5d4ed0['Warning'],'content':this[_0x4456d6(0x351)]['t']('session.will-retry')}),_0x3e6ec9['id']===_0x5b6a2e[_0x4456d6(0x1df)]&&this[_0x4456d6(0x1e3)]['show']({'type':_0x5d4ed0[_0x4456d6(0x2da)],'content':this[_0x4456d6(0x351)]['t'](_0x4456d6(0x304))}),_0x3e6ec9['id']===_0x5b6a2e['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x4456d6(0x1e3)]['show']({'type':_0x5d4ed0[_0x4456d6(0x2da)],'content':this[_0x4456d6(0x351)]['t'](_0x4456d6(0x29a))});}));}};_e=cn([F(0x0,_0x2bbef3),F(0x1,_0x386892),F(0x2,_0x338b4d(_0x5a0b75)),F(0x3,_0x90efad),F(0x4,_0x59af86),F(0x5,_0x338b4d(_0x1cbe37))],_e);var _n=Object[_0x36542c(0x281)],ln=(_0x3acb8a,_0x4e76fa,_0x6e79cf,_0x488223)=>{const _0x5e9527=_0x36542c;for(var _0x554982=_0x488223>0x1?void 0x0:_0x488223?_n(_0x4e76fa,_0x6e79cf):_0x4e76fa,_0x8a4cee=_0x3acb8a[_0x5e9527(0x125)]-0x1,_0x569f7b;_0x8a4cee>=0x0;_0x8a4cee--)(_0x569f7b=_0x3acb8a[_0x8a4cee])&&(_0x554982=_0x569f7b(_0x554982)||_0x554982);return _0x554982;},ne=(_0x73b274,_0xb84909)=>(_0x4e22f8,_0x2cd61d)=>_0xb84909(_0x4e22f8,_0x2cd61d,_0x73b274);let le=class extends _0xc640cc{constructor(_0x3fda42,_0x59fb79,_0x2e8295,_0x4f713a){const _0x59b43c=_0x36542c;super(),_(this,_0x59b43c(0x2c4)),(this[_0x59b43c(0x207)]=_0x3fda42,this['_httpService']=_0x59fb79,this[_0x59b43c(0x14d)]=_0x2e8295,this[_0x59b43c(0x2bd)]=_0x4f713a,this[_0x59b43c(0x2f7)]());}[_0x36542c(0x2f7)](){const _0x48c9ac=_0x36542c;this[_0x48c9ac(0x1c8)](),this[_0x48c9ac(0x330)](),this[_0x48c9ac(0x16b)](),this[_0x48c9ac(0x26f)]();}[_0x36542c(0x26f)](){const _0x93629d=_0x36542c;this[_0x93629d(0x2e0)](this[_0x93629d(0x2bd)][_0x93629d(0x1aa)][_0x93629d(0x1cc)](_0x5c4fc0=>{const _0x1850ac=_0x93629d;this['_memberID']=_0x5c4fc0==null?void 0x0:_0x5c4fc0[_0x1850ac(0x13d)];}));}[_0x36542c(0x1c8)](){const _0x19c919=_0x36542c,_0x3c5425=_0x3bb4a8=>{const _0x4dda6d=_0x4dd1;var _0x5ef404;this[_0x4dda6d(0x175)](_0x4dda6d(0x245),_0x4dda6d(0x353)+_0x3bb4a8['message']+'\x20at\x20'+_0x3bb4a8[_0x4dda6d(0x273)]+':'+_0x3bb4a8[_0x4dda6d(0x308)]+':'+_0x3bb4a8[_0x4dda6d(0x19f)]+'\x0a'+(((_0x5ef404=_0x3bb4a8[_0x4dda6d(0x245)])==null?void 0x0:_0x5ef404['stack'])||''));};window[_0x19c919(0x116)](_0x19c919(0x245),_0x3c5425),this[_0x19c919(0x2e0)](()=>{const _0x16db3f=_0x19c919;window[_0x16db3f(0x33b)](_0x16db3f(0x245),_0x3c5425);});}[_0x36542c(0x330)](){const _0xd1bd13=_0x36542c,_0xf40d74=_0x13e9f6=>{const _0xe4aab0=_0x4dd1;this[_0xe4aab0(0x175)](_0xe4aab0(0x245),'[Unhandled\x20Rejection]:\x20'+_0x13e9f6[_0xe4aab0(0x1af)]);};window[_0xd1bd13(0x116)](_0xd1bd13(0x111),_0xf40d74),this[_0xd1bd13(0x2e0)](()=>{const _0x5743b0=_0xd1bd13;window['removeEventListener'](_0x5743b0(0x111),_0xf40d74);});}[_0x36542c(0x16b)](){const _0x4f86d5=_0x36542c,_0x330d0d=this[_0x4f86d5(0x14d)][_0x4f86d5(0x245)][_0x4f86d5(0x114)](this[_0x4f86d5(0x14d)]);this[_0x4f86d5(0x14d)]['error']=(..._0x195b89)=>{const _0x51c4fc=_0x4f86d5,_0x1eee9e=_0x195b89['map'](_0x1ff0d9=>_0x1ff0d9 instanceof Error?_0x1ff0d9[_0x51c4fc(0x27c)]+'\x0a'+_0x1ff0d9['stack']:String(_0x1ff0d9))[_0x51c4fc(0x179)]('\x20');this['_uploadLog']('error',_0x51c4fc(0x2b8)+_0x1eee9e),_0x330d0d(..._0x195b89);},this['disposeWithMe'](()=>{const _0x2387d8=_0x4f86d5;this[_0x2387d8(0x14d)][_0x2387d8(0x245)]=_0x330d0d;});}[_0x36542c(0x175)](_0x13d66d,_0x52bf5d){const _0x521f8a=_0x36542c;try{const _0x10fd02={'userId':this[_0x521f8a(0x2c4)],'logLabel':_0x13d66d,'content':_0x52bf5d};this[_0x521f8a(0x18b)]['post']('/universer-api/frontend/logs',{'body':_0x10fd02})['catch'](()=>{});}catch{}}};le=ln([ne(0x0,_0x338b4d(_0x2c838e)),ne(0x1,_0x338b4d(_0x5f42ec)),ne(0x2,_0x4838cb),ne(0x3,_0x338b4d(_0x403187))],le);function _0x4dd1(_0x4f301f,_0x48e35c){_0x4f301f=_0x4f301f-0x111;const _0x24c379=_0x24c3();let _0x4dd1bb=_0x24c379[_0x4f301f];return _0x4dd1bb;}const hn=_0x36542c(0x2ba),_t={};var un=Object['getOwnPropertyDescriptor'],dn=(_0x5d4a09,_0x423956,_0x8bfc7,_0x2d46d3)=>{const _0x4e6ee5=_0x36542c;for(var _0x3a5e1c=_0x2d46d3>0x1?void 0x0:_0x2d46d3?un(_0x423956,_0x8bfc7):_0x423956,_0x55795f=_0x5d4a09[_0x4e6ee5(0x125)]-0x1,_0x489653;_0x55795f>=0x0;_0x55795f--)(_0x489653=_0x5d4a09[_0x55795f])&&(_0x3a5e1c=_0x489653(_0x3a5e1c)||_0x3a5e1c);return _0x3a5e1c;},lt=(_0x328345,_0x1d1bea)=>(_0x2ff216,_0x1d8a0d)=>_0x1d1bea(_0x2ff216,_0x1d8a0d,_0x328345);let he=class{constructor(_0x59ff23,_0x17e251){const _0x367774=_0x36542c;this[_0x367774(0x2c1)]=_0x59ff23,this[_0x367774(0x203)]=_0x17e251;}[_0x36542c(0x227)](_0x43c28f){const _0x4aa4e1=_0x36542c;this[_0x4aa4e1(0x28a)](_0x43c28f),this['_transformPreviousActiveRange'](_0x43c28f);}[_0x36542c(0x139)](_0x233c39){const _0x5ba538=_0x36542c,{unitID:_0x2ee23a}=_0x233c39,_0x307ab8=this[_0x5ba538(0x203)][_0x5ba538(0x24d)](_0x2ee23a)[_0x5ba538(0x342)](_0x40b6fc),{redoCache:_0x501720}=_0x307ab8[_0x5ba538(0x2d9)]();if(_0x501720[_0x5ba538(0x125)]===0x0)return _0x233c39;let _0x2306eb=_0x36941c[_0x5ba538(0x14c)](_0x233c39[_0x5ba538(0x338)][0x0]);for(let _0x102b46=0x0;_0x102b46<_0x501720[_0x5ba538(0x125)];_0x102b46++){const _0x31dcbb={'id':'doc.mutation.rich-text-editing','params':{..._0x501720[_0x102b46]}},_0x476b2a=this[_0x5ba538(0x2c1)][_0x5ba538(0x2f4)](_0x2306eb,_0x31dcbb,!0x1);if(_0x5aaf2c(_0x476b2a))throw _0x476b2a[_0x5ba538(0x245)];_0x2306eb=_0x476b2a[_0x5ba538(0x210)];}return{..._0x36941c['deepClone'](_0x233c39),'mutations':[_0x2306eb]};}[_0x36542c(0x28a)](_0x314b8b){const _0x8788b4=_0x36542c,{unitID:_0x5928d1}=_0x314b8b,_0x504b56=this[_0x8788b4(0x203)]['getRenderById'](_0x5928d1)[_0x8788b4(0x342)](_0x40b6fc),{undoCache:_0x5af360,redoCache:_0x1d3bbe}=_0x504b56[_0x8788b4(0x2d9)]();if(_0x5af360[_0x8788b4(0x125)]===0x0||_0x1d3bbe[_0x8788b4(0x125)]===0x0)return;const _0x1df63c=[],_0x1f4662=[];let _0x2fa29c=_0x36941c[_0x8788b4(0x14c)](_0x314b8b['mutations'][0x0]),_0x4648cb=_0x36941c[_0x8788b4(0x14c)](_0x314b8b['mutations'][0x0]);for(let _0x27ee33=_0x5af360[_0x8788b4(0x125)]-0x1;_0x27ee33>=0x0;_0x27ee33--){const _0x57ee12={'id':'doc.mutation.rich-text-editing','params':{..._0x5af360[_0x27ee33]}},_0xcbd35c={'id':_0x8788b4(0x33f),'params':{..._0x1d3bbe[_0x27ee33]}},_0x1d93d0=this['_transformService']['transformMutation'](_0x2fa29c,_0x57ee12,!0x1),_0xe95e67=this[_0x8788b4(0x2c1)][_0x8788b4(0x2f4)](_0x4648cb,_0xcbd35c,!0x1);if(_0x5aaf2c(_0x1d93d0))throw _0x1d93d0[_0x8788b4(0x245)];if(_0x5aaf2c(_0xe95e67))throw _0xe95e67[_0x8788b4(0x245)];_0x1df63c[_0x8788b4(0x1e6)](_0x1d93d0[_0x8788b4(0x21e)]['params']),_0x1f4662[_0x8788b4(0x1e6)](_0xe95e67[_0x8788b4(0x21e)][_0x8788b4(0x335)]),_0x2fa29c=_0x1d93d0[_0x8788b4(0x210)],_0x4648cb=_0xe95e67[_0x8788b4(0x210)];}_0x504b56[_0x8788b4(0x2bf)]({'undoCache':_0x1df63c,'redoCache':_0x1f4662});}[_0x36542c(0x2fc)](_0x59bfe4){const _0x3d1ff7=_0x36542c,{unitID:_0x222313}=_0x59bfe4,_0x18d062=this['_renderManagerService']['getRenderById'](_0x222313)[_0x3d1ff7(0x342)](_0x40b6fc),_0x4648a5=_0x18d062['getActiveRange']();if(_0x4648a5==null)return;const _0x429c7a=[{'id':_0x3d1ff7(0x33f),'params':{'unitId':_0x59bfe4[_0x3d1ff7(0x26b)],'actions':null,'textRanges':[_0x4648a5]}}],_0xf64313=this['_transformService'][_0x3d1ff7(0x266)](_0x59bfe4,_0x429c7a);if(!_0x41b3f2(_0xf64313))throw _0xf64313[_0x3d1ff7(0x245)];const _0x25f460=_0xf64313[_0x3d1ff7(0x21e)][0x0]['params'][_0x3d1ff7(0x340)];Array[_0x3d1ff7(0x1ec)](_0x25f460)&&_0x25f460[_0x3d1ff7(0x125)]&&_0x18d062['setActiveRange'](_0x25f460[0x0]);}};he=dn([lt(0x0,_0x20cc24),lt(0x1,_0x325ffd)],he);var Sn=Object['getOwnPropertyDescriptor'],In=(_0x11e73e,_0xaa0c74,_0xd46729,_0x44524e)=>{for(var _0x3d1330=_0x44524e>0x1?void 0x0:_0x44524e?Sn(_0xaa0c74,_0xd46729):_0xaa0c74,_0x137e89=_0x11e73e['length']-0x1,_0x23fd7e;_0x137e89>=0x0;_0x137e89--)(_0x23fd7e=_0x11e73e[_0x137e89])&&(_0x3d1330=_0x23fd7e(_0x3d1330)||_0x3d1330);return _0x3d1330;},Le=(_0x1c2ccf,_0x19ff2b)=>(_0x3a6eb9,_0x310869)=>_0x19ff2b(_0x3a6eb9,_0x310869,_0x1c2ccf);let ue=class{constructor(_0x474c5c,_0x360bd1,_0x47e1d6){const _0xe16a00=_0x36542c;this[_0xe16a00(0x207)]=_0x474c5c,this[_0xe16a00(0x2c1)]=_0x360bd1,this['_docStateChangeManagerService']=_0x47e1d6;}[_0x36542c(0x2a5)](_0x167fbc){this['_transformHistoryAndStateStack'](_0x167fbc);}[_0x36542c(0x139)](_0x5cbc7f){const _0x1bb49f=_0x36542c,{unitID:_0x220df5}=_0x5cbc7f,{collaboration:_0x195311}=this['_docStateChangeManagerService'][_0x1bb49f(0x141)](_0x220df5);if(_0x195311['length']===0x0)return _0x5cbc7f;let _0x15d1c6=_0x36941c['deepClone'](_0x5cbc7f[_0x1bb49f(0x338)][0x0]);for(let _0x123c88=0x0;_0x123c88<_0x195311[_0x1bb49f(0x125)];_0x123c88++){const _0x4360f9={'id':_0x1bb49f(0x33f),'params':{'unitId':_0x195311[_0x123c88][_0x1bb49f(0x20a)],..._0x195311[_0x123c88][_0x1bb49f(0x1e9)]}},_0x234900=this[_0x1bb49f(0x2c1)]['transformMutation'](_0x15d1c6,_0x4360f9,!0x1);if(_0x5aaf2c(_0x234900))throw _0x234900[_0x1bb49f(0x245)];_0x15d1c6=_0x234900[_0x1bb49f(0x210)];}return{..._0x36941c[_0x1bb49f(0x14c)](_0x5cbc7f),'mutations':[_0x15d1c6]};}[_0x36542c(0x2b3)](_0x586129){const _0x26cf0e=_0x36542c,{unitID:_0x111073}=_0x586129,{history:_0x269b8b,collaboration:_0x1cd26b}=this[_0x26cf0e(0x2ef)]['getStateCache'](_0x111073);if(_0x269b8b[_0x26cf0e(0x125)]===0x0&&_0x1cd26b[_0x26cf0e(0x125)]===0x0)return;const _0x11d792=[],_0x3bbe18=[];let _0x1e7622=_0x36941c[_0x26cf0e(0x14c)](_0x586129[_0x26cf0e(0x338)][0x0]),_0x49d6a8=_0x36941c['deepClone'](_0x586129[_0x26cf0e(0x338)][0x0]);for(let _0x3a4562=_0x269b8b['length']-0x1;_0x3a4562>=0x0;_0x3a4562--){const _0x1ecb69={'id':_0x26cf0e(0x33f),'params':{'unitId':_0x269b8b[_0x3a4562][_0x26cf0e(0x20a)],..._0x269b8b[_0x3a4562]['undoState']}},_0xd41ca7={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x269b8b[_0x3a4562][_0x26cf0e(0x20a)],..._0x269b8b[_0x3a4562][_0x26cf0e(0x1e9)]}},_0x46fa7d=this[_0x26cf0e(0x2c1)][_0x26cf0e(0x2f4)](_0x1e7622,_0x1ecb69,!0x1),_0xd92785=this[_0x26cf0e(0x2c1)][_0x26cf0e(0x2f4)](_0x49d6a8,_0xd41ca7,!0x1);if(_0x5aaf2c(_0x46fa7d))throw _0x46fa7d[_0x26cf0e(0x245)];if(_0x5aaf2c(_0xd92785))throw _0xd92785[_0x26cf0e(0x245)];_0x11d792[_0x26cf0e(0x1e6)]({..._0x269b8b[_0x3a4562],'undoState':_0x46fa7d[_0x26cf0e(0x21e)][_0x26cf0e(0x335)],'redoState':_0xd92785['m2Prime']['params']}),_0x1e7622=_0x46fa7d[_0x26cf0e(0x210)],_0x49d6a8=_0xd92785['m1Prime'];}_0x1e7622=_0x36941c['deepClone'](_0x586129[_0x26cf0e(0x338)][0x0]),_0x49d6a8=_0x36941c[_0x26cf0e(0x14c)](_0x586129[_0x26cf0e(0x338)][0x0]);for(let _0x57d0b7=_0x1cd26b['length']-0x1;_0x57d0b7>=0x0;_0x57d0b7--){const _0x4504c0={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1cd26b[_0x57d0b7]['unitId'],..._0x1cd26b[_0x57d0b7][_0x26cf0e(0x174)]}},_0x5e4eeb={'id':_0x26cf0e(0x33f),'params':{'unitId':_0x1cd26b[_0x57d0b7][_0x26cf0e(0x20a)],..._0x1cd26b[_0x57d0b7][_0x26cf0e(0x1e9)]}},_0x1e55c7=this['_transformService']['transformMutation'](_0x1e7622,_0x4504c0,!0x1),_0xba6f5d=this[_0x26cf0e(0x2c1)][_0x26cf0e(0x2f4)](_0x49d6a8,_0x5e4eeb,!0x1);if(_0x5aaf2c(_0x1e55c7))throw _0x1e55c7[_0x26cf0e(0x245)];if(_0x5aaf2c(_0xba6f5d))throw _0xba6f5d[_0x26cf0e(0x245)];_0x3bbe18['unshift']({..._0x1cd26b[_0x57d0b7],'undoState':_0x1e55c7['m2Prime'][_0x26cf0e(0x335)],'redoState':_0xba6f5d[_0x26cf0e(0x21e)][_0x26cf0e(0x335)]}),_0x1e7622=_0x1e55c7[_0x26cf0e(0x210)],_0x49d6a8=_0xba6f5d[_0x26cf0e(0x210)];}this[_0x26cf0e(0x2ef)]['setStateCache'](_0x111073,{'history':_0x11d792,'collaboration':_0x3bbe18});}};ue=In([Le(0x0,_0x338b4d(_0x2c838e)),Le(0x1,_0x20cc24),Le(0x2,_0x338b4d(_0x2cc006))],ue);var mn=Object[_0x36542c(0x281)],fn=(_0x42963f,_0x565bf3,_0x1699ea,_0x5ce703)=>{for(var _0x276269=_0x5ce703>0x1?void 0x0:_0x5ce703?mn(_0x565bf3,_0x1699ea):_0x565bf3,_0x4e4b2f=_0x42963f['length']-0x1,_0xfa6e26;_0x4e4b2f>=0x0;_0x4e4b2f--)(_0xfa6e26=_0x42963f[_0x4e4b2f])&&(_0x276269=_0xfa6e26(_0x276269)||_0x276269);return _0x276269;},ht=(_0x4a9dab,_0x4fcff0)=>(_0x3d78ee,_0xb1fdbf)=>_0x4fcff0(_0x3d78ee,_0xb1fdbf,_0x4a9dab);let de=class{constructor(_0x3b32a0,_0x33e799){const _0x5ee0a7=_0x36542c;this[_0x5ee0a7(0x207)]=_0x3b32a0,this[_0x5ee0a7(0x2c1)]=_0x33e799;}[_0x36542c(0x230)](_0x25fefe){const _0x1029d2=_0x36542c;var _0x7f8725;const _0x270fb5=this[_0x1029d2(0x207)][_0x1029d2(0x194)](_0x564962),_0x420b97=(_0x7f8725=_0x270fb5[_0x1029d2(0x157)]())!=null?_0x7f8725:[];if(_0x420b97[_0x1029d2(0x125)]===0x0)return;const _0x30df44=_0x25fefe[_0x1029d2(0x26b)],_0x102dab=[{'id':_0x1029d2(0x33f),'params':{'unitId':_0x30df44,'actions':null,'textRanges':_0x420b97}}],_0x1d3ac3=this[_0x1029d2(0x2c1)][_0x1029d2(0x266)](_0x25fefe,_0x102dab);if(!_0x41b3f2(_0x1d3ac3))throw _0x1d3ac3[_0x1029d2(0x245)];const _0x5a8cb6=_0x1d3ac3[_0x1029d2(0x21e)][0x0][_0x1029d2(0x335)]['textRanges'];Array['isArray'](_0x5a8cb6)&&_0x5a8cb6[_0x1029d2(0x125)]&&_0x270fb5[_0x1029d2(0x2cf)](_0x5a8cb6,{'unitId':_0x30df44,'subUnitId':_0x30df44},!0x1);}};de=fn([ht(0x0,_0x338b4d(_0x2c838e)),ht(0x1,_0x20cc24)],de);var gn=Object[_0x36542c(0x281)],En=(_0x4f8512,_0x4fdc59,_0x4a7a20,_0x25f195)=>{const _0x53d6f2=_0x36542c;for(var _0x4e5a4d=_0x25f195>0x1?void 0x0:_0x25f195?gn(_0x4fdc59,_0x4a7a20):_0x4fdc59,_0x3ba39d=_0x4f8512[_0x53d6f2(0x125)]-0x1,_0x3a2e97;_0x3ba39d>=0x0;_0x3ba39d--)(_0x3a2e97=_0x4f8512[_0x3ba39d])&&(_0x4e5a4d=_0x3a2e97(_0x4e5a4d)||_0x4e5a4d);return _0x4e5a4d;},U=(_0x48325e,_0x5d183d)=>(_0xfdd947,_0x222100)=>_0x5d183d(_0xfdd947,_0x222100,_0x48325e);let Se=class extends _0xc640cc{constructor(_0x37592f,_0x253540,_0x56c61d,_0x19521e,_0xd630b6,_0x185e11,_0x4f4ff1,_0x51d76e){const _0xb4f880=_0x36542c;super(),_(this,_0xb4f880(0x241),new _0x311c05(_0x23527c[_0xb4f880(0x277)])),(this['_docStateChangeManagerService']=_0x37592f,this[_0xb4f880(0x183)]=_0x253540,this[_0xb4f880(0x33e)]=_0x56c61d,this['_docTransformStateCacheService']=_0x19521e,this['_docTransformSelectionsService']=_0xd630b6,this['_docSyncEditingCollabCursorService']=_0x185e11,this[_0xb4f880(0x1e3)]=_0x4f4ff1,this['_localeService']=_0x51d76e,this[_0xb4f880(0x1e5)]());}[_0x36542c(0x1e5)](){const _0xe59914=_0x36542c;this[_0xe59914(0x2e0)](this[_0xe59914(0x183)][_0xe59914(0x195)][_0xe59914(0x1cc)](_0x360800=>{const _0x27961c=_0xe59914,_0x1601be=this['_docStateChangeManagerService'][_0x27961c(0x191)][_0x27961c(0x1cc)](_0x2e9f40=>{const _0x53ae02=_0x27961c;if(_0x2e9f40==null)return;const {unitId:_0x299759,redoState:_0x388a51,commandId:_0x4486f3}=_0x2e9f40;if(_0x299759!==_0x360800[_0x53ae02(0x26b)])return;const _0x329a89={'id':_0x4486f3,'type':_0x185fc4[_0x53ae02(0x16e)],'params':{'unitId':_0x299759,'actions':_0x388a51[_0x53ae02(0x2ea)],'textRanges':null}};_0x360800[_0x53ae02(0x238)](_0x329a89);});if(_0x360800[_0x27961c(0x2e0)](_0x1601be),_0x360800 instanceof _0x59bf88){const _0xe92968={'onTransformIME':_0x2151e5=>this[_0x27961c(0x33e)][_0x27961c(0x227)](_0x2151e5),'onTransformState':_0x23e9da=>this[_0x27961c(0x22d)][_0x27961c(0x2a5)](_0x23e9da),'onTransformSelections':_0xde0689=>this['_docTransformSelectionsService'][_0x27961c(0x230)](_0xde0689),'onSyncEditingCollabCursor':_0x188566=>this[_0x27961c(0x21b)][_0x27961c(0x162)](_0x188566),'onTransformRemoteChangesetByIMECache':_0x9d4f2c=>this[_0x27961c(0x33e)][_0x27961c(0x139)](_0x9d4f2c),'onTransformRemoteChangesetByStateCache':_0xcc262b=>this[_0x27961c(0x22d)]['transformRemoteChangeset'](_0xcc262b)};_0x360800[_0x27961c(0x242)](_0xe92968);}}));}};Se=En([U(0x0,_0x338b4d(_0x2cc006)),U(0x1,_0x338b4d(_0xeb50a)),U(0x2,_0x338b4d(he)),U(0x3,_0x338b4d(ue)),U(0x4,_0x338b4d(de)),U(0x5,_0x338b4d(ze)),U(0x6,_0x90efad),U(0x7,_0x338b4d(_0x1cbe37))],Se);var Z=(_0x266d7f=>(_0x266d7f[_0x266d7f['UNDEFINED']=0x0]=_0x36542c(0x311),_0x266d7f[_0x266d7f['OK']=0x1]='OK',_0x266d7f[_0x266d7f[_0x36542c(0x321)]=0x2]=_0x36542c(0x321),_0x266d7f[_0x266d7f[_0x36542c(0x228)]=0x3]=_0x36542c(0x228),_0x266d7f[_0x266d7f[_0x36542c(0x254)]=0x4]=_0x36542c(0x254),_0x266d7f[_0x266d7f['UNAUTHENTICATED']=0x5]=_0x36542c(0x2ec),_0x266d7f[_0x266d7f[_0x36542c(0x355)]=0x6]=_0x36542c(0x355),_0x266d7f[_0x266d7f['INVALID_ARGUMENT']=0x7]=_0x36542c(0x18f),_0x266d7f[_0x266d7f[_0x36542c(0x297)]=0x8]=_0x36542c(0x297),_0x266d7f[_0x266d7f[_0x36542c(0x35d)]=0x9]=_0x36542c(0x35d),_0x266d7f[_0x266d7f[_0x36542c(0x1c0)]=0xa]=_0x36542c(0x1c0),_0x266d7f[_0x266d7f[_0x36542c(0x25d)]=0xb]=_0x36542c(0x25d),_0x266d7f[_0x266d7f[_0x36542c(0x357)]=0xc]=_0x36542c(0x357),_0x266d7f[_0x266d7f[_0x36542c(0x1ff)]=0xd]=_0x36542c(0x1ff),_0x266d7f[_0x266d7f[_0x36542c(0x122)]=0xe]=_0x36542c(0x122),_0x266d7f[_0x266d7f['AUTHORIZE_CODE_ILLEGAL']=0xf]='AUTHORIZE_CODE_ILLEGAL',_0x266d7f[_0x266d7f['LOGIN_TOKEN_PROCESSING_FAILED']=0x10]=_0x36542c(0x348),_0x266d7f[_0x266d7f['CURRENT_STATUS_CANNOT_OPERATE']=0x64]=_0x36542c(0x2e2),_0x266d7f[_0x266d7f[_0x36542c(0x1fb)]=0x65]=_0x36542c(0x1fb),_0x266d7f[_0x266d7f['USER_NOT_FOUND']=0xc9]=_0x36542c(0x307),_0x266d7f[_0x266d7f['USER_IS_ANONYMOUS']=0xca]=_0x36542c(0x286),_0x266d7f[_0x266d7f[_0x36542c(0x314)]=0x1389]=_0x36542c(0x314),_0x266d7f[_0x266d7f[_0x36542c(0x23d)]=0x1771]=_0x36542c(0x23d),_0x266d7f[_0x266d7f['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x266d7f[_0x266d7f[_0x36542c(0x140)]=0x1773]=_0x36542c(0x140),_0x266d7f[_0x266d7f[_0x36542c(0x1f0)]=0x1b59]=_0x36542c(0x1f0),_0x266d7f[_0x266d7f[_0x36542c(0x199)]=0x1b5a]=_0x36542c(0x199),_0x266d7f[_0x266d7f[_0x36542c(0x12e)]=0x1b5b]=_0x36542c(0x12e),_0x266d7f[_0x266d7f['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x36542c(0x217),_0x266d7f[_0x266d7f[_0x36542c(0x16c)]=0x1b5d]=_0x36542c(0x16c),_0x266d7f[_0x266d7f['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x36542c(0x212),_0x266d7f[_0x266d7f[_0x36542c(0x2c9)]=0x2329]=_0x36542c(0x2c9),_0x266d7f[_0x266d7f['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x36542c(0x1da),_0x266d7f[_0x266d7f['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x266d7f[_0x266d7f[_0x36542c(0x121)]=0x232c]=_0x36542c(0x121),_0x266d7f[_0x266d7f[_0x36542c(0x2e9)]=0x232d]=_0x36542c(0x2e9),_0x266d7f[_0x266d7f[_0x36542c(0x285)]=0x2711]=_0x36542c(0x285),_0x266d7f[_0x266d7f['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x36542c(0x2fb),_0x266d7f[_0x266d7f['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x36542c(0x2eb),_0x266d7f[_0x266d7f[_0x36542c(0x1f8)]=0x2714]=_0x36542c(0x1f8),_0x266d7f[_0x266d7f[_0x36542c(0x30c)]=0x271a]=_0x36542c(0x30c),_0x266d7f[_0x266d7f[_0x36542c(0x2aa)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x266d7f[_0x266d7f[_0x36542c(0x148)]=0x271c]=_0x36542c(0x148),_0x266d7f[_0x266d7f[_0x36542c(0x13f)]=0x271d]=_0x36542c(0x13f),_0x266d7f[_0x266d7f[_0x36542c(0x1d0)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x266d7f[_0x266d7f[_0x36542c(0x2a1)]=0x271f]=_0x36542c(0x2a1),_0x266d7f[_0x266d7f[_0x36542c(0x138)]=0x2720]=_0x36542c(0x138),_0x266d7f[_0x266d7f[_0x36542c(0x223)]=0x2af9]=_0x36542c(0x223),_0x266d7f[_0x266d7f[_0x36542c(0x293)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x266d7f[_0x266d7f[_0x36542c(0x209)]=0x2ee2]='INVALID_INVITE_CODE',_0x266d7f[_0x266d7f['INVITE_CODE_REQUIRED']=0x2ee3]=_0x36542c(0x152),_0x266d7f[_0x266d7f[_0x36542c(0x1fe)]=0x2ee4]=_0x36542c(0x1fe),_0x266d7f[_0x266d7f[_0x36542c(0x2f6)]=0x2ee5]=_0x36542c(0x2f6),_0x266d7f[_0x266d7f[_0x36542c(0x347)]=0x32c9]=_0x36542c(0x347),_0x266d7f[_0x266d7f[_0x36542c(0x1bf)]=0x32ca]=_0x36542c(0x1bf),_0x266d7f[_0x266d7f[_0x36542c(0x2b7)]=0x32cb]=_0x36542c(0x2b7),_0x266d7f[_0x266d7f[_0x36542c(0x2fa)]=0x36b1]=_0x36542c(0x2fa),_0x266d7f[_0x266d7f[_0x36542c(0x146)]=0x36b2]=_0x36542c(0x146),_0x266d7f[_0x266d7f[_0x36542c(0x309)]=0x36b3]=_0x36542c(0x309),_0x266d7f[_0x266d7f[_0x36542c(0x276)]=0x36b4]=_0x36542c(0x276),_0x266d7f[_0x266d7f['ENTITLE_INVALID_COUPON_CODE']=0x36b5]='ENTITLE_INVALID_COUPON_CODE',_0x266d7f[_0x266d7f[_0x36542c(0x1b8)]=0x36b6]=_0x36542c(0x1b8),_0x266d7f[_0x266d7f[_0x36542c(0x178)]=0x36b7]=_0x36542c(0x178),_0x266d7f[_0x266d7f[_0x36542c(0x2c0)]=0x36b8]=_0x36542c(0x2c0),_0x266d7f[_0x266d7f['ENTITLE_CHAT_LIMIT_EXCEED']=0x3715]=_0x36542c(0x30a),_0x266d7f[_0x266d7f[_0x36542c(0x284)]=0x3716]=_0x36542c(0x284),_0x266d7f[_0x266d7f['ENTITLE_INSUFFICIENT_QUOTA']=0x3717]=_0x36542c(0x200),_0x266d7f[_0x266d7f[_0x36542c(0x2e1)]=0x37dd]=_0x36542c(0x2e1),_0x266d7f[_0x266d7f[_0x36542c(0x298)]=0x3a99]=_0x36542c(0x298),_0x266d7f[_0x266d7f[_0x36542c(0x115)]=0x3a9a]=_0x36542c(0x115),_0x266d7f[_0x266d7f[_0x36542c(0x1ee)]=0x3a9b]=_0x36542c(0x1ee),_0x266d7f[_0x266d7f[_0x36542c(0x1ba)]=0x3a9c]=_0x36542c(0x1ba),_0x266d7f[_0x266d7f[_0x36542c(0x269)]=0x3a9d]=_0x36542c(0x269),_0x266d7f[_0x266d7f[_0x36542c(0x224)]=0x3a9e]=_0x36542c(0x224),_0x266d7f[_0x266d7f[_0x36542c(0x220)]=0x3a9f]=_0x36542c(0x220),_0x266d7f[_0x266d7f[_0x36542c(0x360)]=0x3e81]=_0x36542c(0x360),_0x266d7f[_0x266d7f[_0x36542c(0x120)]=-0x1]='UNRECOGNIZED',_0x266d7f))(Z||{});function vn(_0x373586){const _0x1f7519=_0x36542c;var _0x22cb1c,_0x5508bb;const _0x147bcd=(_0x22cb1c=_0x373586[_0x1f7519(0x137)])==null?void 0x0:_0x22cb1c['stage'],_0x4e2301=((_0x5508bb=_0x373586[_0x1f7519(0x137)])==null?void 0x0:_0x5508bb['totalFormulasToCalculate'])||0x0;return _0x147bcd===_0x2e6da7[_0x1f7519(0x30b)]&&_0x4e2301>0x0;}function pn(_0x31983e){const _0x8b94eb=_0x36542c;return _0x31983e['functionsExecutedState']===_0x267fe6[_0x8b94eb(0x278)];}var On=Object['getOwnPropertyDescriptor'],Tn=(_0x29b9f4,_0x539bfc,_0x592bc6,_0x367794)=>{const _0x5b1fb5=_0x36542c;for(var _0x3cf5f9=_0x367794>0x1?void 0x0:_0x367794?On(_0x539bfc,_0x592bc6):_0x539bfc,_0x19247a=_0x29b9f4[_0x5b1fb5(0x125)]-0x1,_0x1d0a68;_0x19247a>=0x0;_0x19247a--)(_0x1d0a68=_0x29b9f4[_0x19247a])&&(_0x3cf5f9=_0x1d0a68(_0x3cf5f9)||_0x3cf5f9);return _0x3cf5f9;},P=(_0x47fc3d,_0x5c74c2)=>(_0x5c0329,_0xdb7fb4)=>_0x5c74c2(_0x5c0329,_0xdb7fb4,_0x47fc3d);const Cn=_0x36542c(0x2b0),Rn=_0x36542c(0x1f6),Dn=_0x36542c(0x16a);let Ie=class extends _0xc640cc{constructor(_0x251ca1,_0x3e3496,_0x460160,_0x42e891,_0x198208,_0x5a70e9,_0x5bc970){const _0x554f44=_0x36542c;super(),_(this,'_pollingInterval',null),_(this,_0x554f44(0x24a),0x0),_(this,_0x554f44(0x234),0x0),_(this,'_taskIds',[]),_(this,_0x554f44(0x1cf),0x0),(this[_0x554f44(0x1e3)]=_0x251ca1,this[_0x554f44(0x14b)]=_0x3e3496,this[_0x554f44(0x163)]=_0x460160,this[_0x554f44(0x18b)]=_0x42e891,this[_0x554f44(0x2c2)]=_0x198208,this[_0x554f44(0x14d)]=_0x5a70e9,this[_0x554f44(0x351)]=_0x5bc970,this[_0x554f44(0x25b)]());}[_0x36542c(0x25b)](){const _0x2ac3ad=_0x36542c;this[_0x2ac3ad(0x2e0)](this[_0x2ac3ad(0x14b)]['beforeCommandExecuted']((_0x4eb364,_0x2971da)=>{const _0xac196b=_0x2ac3ad;var _0x453cdf;if(_0x4eb364['id']!==_0x384e02['id'])return;const _0x24adec=_0x4eb364['params'];if(!this[_0xac196b(0x13c)]((_0x453cdf=_0x24adec['dirtyRanges'])!=null?_0x453cdf:[]))return;if(!this[_0xac196b(0x11a)]())throw this['_checkAndWaitForCalculationPermission'](_0x4eb364,_0x2971da),this[_0xac196b(0x292)](),new _0x5548aa();})),this[_0x2ac3ad(0x2e0)](this[_0x2ac3ad(0x14b)]['onCommandExecuted']((_0xa88d45,_0x59dfe4)=>{const _0x10eb80=_0x2ac3ad;if(_0xa88d45['id']!==_0x8dbaaa['id'])return;const _0x139b0e=_0xa88d45['params'];if(vn(_0x139b0e)){const _0x1e9468=_0x52eed0();this[_0x10eb80(0x267)]['push'](_0x1e9468),this[_0x10eb80(0x31e)](_0x1e9468);}else{if(pn(_0x139b0e)&&this['_taskIds'][_0x10eb80(0x125)]>0x0){const _0x3bf258=this[_0x10eb80(0x267)][_0x10eb80(0x29e)]();this[_0x10eb80(0x2f0)](_0x3bf258);}}}));}[_0x36542c(0x1f7)](){const _0x3819fd=_0x36542c;super[_0x3819fd(0x1f7)](),this[_0x3819fd(0x225)](),this[_0x3819fd(0x267)]=[],this[_0x3819fd(0x234)]=0x0,this[_0x3819fd(0x24a)]=0x0,this[_0x3819fd(0x1cf)]=0x0;}async[_0x36542c(0x15a)](_0xba08b5,_0x525816){const _0x5907b1=_0x36542c;for(let _0xe84dde=0x0;_0xe84dde<0x1e;_0xe84dde++)try{if(await this[_0x5907b1(0x2f8)](),this[_0x5907b1(0x11a)]()){this[_0x5907b1(0x226)](_0xba08b5,_0x525816),this[_0x5907b1(0x1e3)][_0x5907b1(0x219)]({'content':this['_localeService']['t'](_0x5907b1(0x134)),'type':_0x5d4ed0[_0x5907b1(0x31d)]});return;}await new Promise(_0x4ed79e=>{const _0x563df1=_0x5907b1;this[_0x563df1(0x17a)]=window['setTimeout'](_0x4ed79e,0x3e8);});}catch(_0x3ca460){this[_0x5907b1(0x14d)][_0x5907b1(0x245)](_0x3ca460);}this[_0x5907b1(0x1e3)][_0x5907b1(0x219)]({'content':this[_0x5907b1(0x351)]['t'](_0x5907b1(0x323)),'type':_0x5d4ed0[_0x5907b1(0x2da)]});}[_0x36542c(0x226)](_0x3f2e3b,_0x5ca323){const _0x5d03e7=_0x36542c;try{this['_commandService'][_0x5d03e7(0x302)](_0x3f2e3b['id'],_0x3f2e3b['params'],_0x5ca323);}catch(_0x43caf9){this[_0x5d03e7(0x14d)]['error'](_0x43caf9);}}[_0x36542c(0x1c6)](_0x1d9588,_0x3d89e9){const _0x248ef9=_0x36542c;_0x3d89e9<this[_0x248ef9(0x1cf)]||(this[_0x248ef9(0x1cf)]=_0x3d89e9,this[_0x248ef9(0x24a)]=Number[_0x248ef9(0x167)](_0x1d9588[_0x248ef9(0x1a4)]),this['_currentUsage']=Number[_0x248ef9(0x167)](_0x1d9588['currentUsage']));}async['_startCalculationLimit'](_0x1981a3){const _0x15f91f=_0x36542c;var _0x5a1c90,_0x154db2;const _0x3bc5b4=Date[_0x15f91f(0x28d)]();try{const _0x3e9b19=((_0x5a1c90=this['_configService'][_0x15f91f(0x1e0)](_0x289bc7))==null?void 0x0:_0x5a1c90[_0x15f91f(0x2d3)])||Rn,_0x4b9cfa=(await this[_0x15f91f(0x18b)][_0x15f91f(0x21d)](_0x3e9b19,{'body':JSON[_0x15f91f(0x1a2)]({'taskId':_0x1981a3})}))['body'];if(((_0x154db2=_0x4b9cfa[_0x15f91f(0x245)])==null?void 0x0:_0x154db2[_0x15f91f(0x2e5)])!==Z['OK'])return;this['_setFormulaLimitStatus'](_0x4b9cfa['limitInfo'],_0x3bc5b4);}catch(_0x54a9a0){this[_0x15f91f(0x14d)][_0x15f91f(0x245)](_0x54a9a0);}}async[_0x36542c(0x2f8)](_0x5abd5d){const _0xad8b4d=_0x36542c;var _0x4535e6,_0xfd860e;const _0x53c196=Date[_0xad8b4d(0x28d)]();try{const _0x4be8b7=((_0x4535e6=this[_0xad8b4d(0x163)][_0xad8b4d(0x1e0)](_0x289bc7))==null?void 0x0:_0x4535e6[_0xad8b4d(0x290)])||Cn,_0x286515=_0x5abd5d?_0x4be8b7+_0xad8b4d(0x30d)+encodeURIComponent(_0x5abd5d):_0x4be8b7,_0x458a2e=(await this[_0xad8b4d(0x18b)][_0xad8b4d(0x194)](_0x286515))[_0xad8b4d(0x346)];if(((_0xfd860e=_0x458a2e['error'])==null?void 0x0:_0xfd860e[_0xad8b4d(0x2e5)])!==Z['OK'])return;this[_0xad8b4d(0x1c6)](_0x458a2e[_0xad8b4d(0x251)],_0x53c196);}catch(_0x9dc976){this[_0xad8b4d(0x14d)]['error'](_0x9dc976);}}async['_releaseCalculationLimit'](_0x46dd75){const _0x529dc5=_0x36542c;var _0x17b5df,_0x1c4b48;const _0x5892c1=Date['now']();try{const _0x18f336=((_0x17b5df=this[_0x529dc5(0x163)][_0x529dc5(0x1e0)](_0x289bc7))==null?void 0x0:_0x17b5df['releaseFormulaLimitUrl'])||Dn,_0x340d30=(await this[_0x529dc5(0x18b)][_0x529dc5(0x21d)](_0x18f336,{'body':JSON['stringify']({'taskId':_0x46dd75})}))[_0x529dc5(0x346)];if(((_0x1c4b48=_0x340d30[_0x529dc5(0x245)])==null?void 0x0:_0x1c4b48[_0x529dc5(0x2e5)])!==Z['OK'])return;this['_setFormulaLimitStatus'](_0x340d30[_0x529dc5(0x251)],_0x5892c1);}catch(_0xbf6824){this[_0x529dc5(0x14d)][_0x529dc5(0x245)](_0xbf6824);}}['_checkCalculationAvailable'](){const _0x29d1fb=_0x36542c;return this[_0x29d1fb(0x24a)]===0x0?!0x0:this[_0x29d1fb(0x24a)]-this[_0x29d1fb(0x234)]>0x0;}['_clearPolling'](){const _0x858e61=_0x36542c;this[_0x858e61(0x17a)]&&(clearTimeout(this['_pollingInterval']),this['_pollingInterval']=null);}[_0x36542c(0x292)](){const _0x2a3352=_0x36542c;this[_0x2a3352(0x1e3)]['show']({'content':this[_0x2a3352(0x351)]['t'](_0x2a3352(0x2e4)),'type':_0x5d4ed0[_0x2a3352(0x1dd)]});}['_hasFormulaInDirtyRanges'](_0x5e19de){const _0x35f6bb=_0x36542c;for(const _0x1e8335 of _0x5e19de){const {unitId:_0x2632ee,sheetId:_0x267c16,range:_0x406d9a}=_0x1e8335,_0x2c59de=this[_0x35f6bb(0x2c2)][_0x35f6bb(0x2ad)](_0x2632ee);if(!_0x2c59de)continue;const _0x5a5d0d=_0x2c59de[_0x35f6bb(0x316)](_0x267c16);if(!_0x5a5d0d)continue;const _0x541b29=_0x5a5d0d['getCellMatrix']();for(let _0x50ab9e=_0x406d9a[_0x35f6bb(0x350)];_0x50ab9e<=_0x406d9a[_0x35f6bb(0x279)];_0x50ab9e++)for(let _0x4d27ab=_0x406d9a[_0x35f6bb(0x2df)];_0x4d27ab<=_0x406d9a['endColumn'];_0x4d27ab++){const _0x4bcdb3=_0x541b29[_0x35f6bb(0x185)](_0x50ab9e,_0x4d27ab);if(_0x4bcdb3&&(_0x33f895(_0x4bcdb3['f'])||_0x57b445(_0x4bcdb3['si'])))return!0x0;}}return!0x1;}};Ie=Tn([P(0x0,_0x338b4d(_0x90efad)),P(0x1,_0x344a42),P(0x2,_0x3da9ca),P(0x3,_0x338b4d(_0x5f42ec)),P(0x4,_0x4d0d85),P(0x5,_0x4838cb),P(0x6,_0x338b4d(_0x1cbe37))],Ie);var Nn=Object[_0x36542c(0x281)],bn=(_0x3905a9,_0x169ab3,_0x366aaf,_0x8feb57)=>{for(var _0x1b6a27=_0x8feb57>0x1?void 0x0:_0x8feb57?Nn(_0x169ab3,_0x366aaf):_0x169ab3,_0x10346a=_0x3905a9['length']-0x1,_0x35ae72;_0x10346a>=0x0;_0x10346a--)(_0x35ae72=_0x3905a9[_0x10346a])&&(_0x1b6a27=_0x35ae72(_0x1b6a27)||_0x1b6a27);return _0x1b6a27;},Ue=(_0xe58a2e,_0x5cd31f)=>(_0x3386af,_0x579be7)=>_0x5cd31f(_0x3386af,_0x579be7,_0xe58a2e);let He=class extends _0xc640cc{constructor(_0x4e4cba,_0x39b02a,_0xd2c1fc){const _0x2afede=_0x36542c;super(),_(this,_0x2afede(0x356),new Map()),_(this,'_saveTaskMap',new Map()),_(this,'_disabled',!0x1),(this[_0x2afede(0x163)]=_0x4e4cba,this[_0x2afede(0x19a)]=_0x39b02a,this[_0x2afede(0x201)]=_0xd2c1fc);}[_0x36542c(0x265)](){const _0x1634da=_0x36542c;this[_0x1634da(0x23a)]=!0x0;}[_0x36542c(0x117)](){const _0x4656f1=_0x36542c;this[_0x4656f1(0x23a)]=!0x1;}get[_0x36542c(0x240)](){const _0x4bd96c=_0x36542c;return this[_0x4bd96c(0x135)];}['dispose'](){const _0x40bdd1=_0x36542c;this[_0x40bdd1(0x22a)]()[_0x40bdd1(0x2de)](()=>super[_0x40bdd1(0x1f7)]());}async[_0x36542c(0x247)](_0x53b4a5){const _0x39e96c=_0x36542c;return this[_0x39e96c(0x23a)]?null:this['_localStorageService']['getItem'](_0x2b234a(_0x53b4a5));}async[_0x36542c(0x1ef)](_0x237e4e,_0x1547aa){const _0x13ef9e=_0x36542c;return!!this[_0x13ef9e(0x19a)][_0x13ef9e(0x2ab)](_0x237e4e,_0x1547aa);}[_0x36542c(0x1d9)](_0x2fccf5,_0xd1ad5f,_0x3a706f,_0x657ae3){const _0x2c8eb4=_0x36542c,_0x52f54e=this[_0x2c8eb4(0x201)][_0x2c8eb4(0x295)](_0x2fccf5);this[_0x2c8eb4(0x356)]['set'](_0x2fccf5,{'unitID':_0x2fccf5,'type':_0xd1ad5f,'awaitingChangeset':_0x3a706f,'mutations':_0x657ae3,'rev':_0x52f54e}),this['_saveTaskMap']['has'](_0x2fccf5)||this[_0x2c8eb4(0x1b9)](_0x2fccf5);}[_0x36542c(0x1b9)](_0x70c760){const _0x2f309f=_0x36542c,_0x1197ca=this[_0x2f309f(0x325)]();_0x1197ca===0x0?this[_0x2f309f(0x324)](_0x70c760):this[_0x2f309f(0x135)][_0x2f309f(0x25a)](_0x70c760,setTimeout(()=>this[_0x2f309f(0x324)](_0x70c760),_0x1197ca));}[_0x36542c(0x325)](){const _0x3a0036=_0x36542c;var _0x171444;return(_0x171444=this[_0x3a0036(0x163)][_0x3a0036(0x1e0)](_0x490f83))!=null?_0x171444:_0xf2292;}[_0x36542c(0x324)](_0xba9ce3){const _0x1d9575=_0x36542c,_0x59f3e7=this['_saveTaskMap']['get'](_0xba9ce3);return _0x59f3e7!==void 0x0&&window['clearTimeout'](_0x59f3e7),this[_0x1d9575(0x19a)]['setItem'](_0x2b234a(_0xba9ce3),this[_0x1d9575(0x356)]['get'](_0xba9ce3))[_0x1d9575(0x2de)](()=>this[_0x1d9575(0x135)][_0x1d9575(0x158)](_0xba9ce3));}async[_0x36542c(0x22a)](){const _0x42f40a=_0x36542c,_0x5d3408=[];this[_0x42f40a(0x135)]['forEach']((_0x182bb2,_0x3e88b8)=>{const _0x6de704=_0x42f40a;window[_0x6de704(0x2f9)](_0x182bb2),_0x5d3408[_0x6de704(0x133)](this['_saveCache'](_0x3e88b8)[_0x6de704(0x2de)](()=>{const _0x2ba30c=_0x6de704;this[_0x2ba30c(0x135)][_0x2ba30c(0x158)](_0x3e88b8);}));}),await Promise['all'](_0x5d3408);}};He=bn([Ue(0x0,_0x3da9ca),Ue(0x1,_0x15b36e),Ue(0x2,_0x338b4d(_0x2e162a))],He);class Ln extends _0x2e3ce9{constructor(){const _0x54d77d=_0x36542c;super(),_(this,_0x54d77d(0x2ff)),this['urlChange$']=_0x35f93f(window,_0x54d77d(0x180))['pipe'](_0x5427bd(this['dispose$']),_0x48f2bc(0x1),_0x2a8f2a(void 0x0));}[_0x36542c(0x291)](_0x109c8b,_0x1362c6,_0x5944d5=!0x1){const _0x2ec0bb=_0x36542c,_0x237174=new URL(window[_0x2ec0bb(0x275)][_0x2ec0bb(0x1a0)]);_0x237174[_0x2ec0bb(0x1fd)]['set'](_0x109c8b,_0x1362c6),_0x5944d5?window[_0x2ec0bb(0x12d)]['replaceState']('','',_0x237174['toString']()):window[_0x2ec0bb(0x12d)][_0x2ec0bb(0x236)]('','',_0x237174[_0x2ec0bb(0x153)]());}[_0x36542c(0x189)](_0x329e0d,_0x3854b2=!0x1){const _0x158192=_0x36542c,_0x1fa273=new URL(window[_0x158192(0x275)][_0x158192(0x1a0)]);_0x1fa273[_0x158192(0x1fd)]['delete'](_0x329e0d),_0x3854b2?window[_0x158192(0x12d)][_0x158192(0x1d6)]('','',_0x1fa273['toString']()):window[_0x158192(0x12d)][_0x158192(0x236)]('','',_0x1fa273[_0x158192(0x153)]());}[_0x36542c(0x12f)](_0x3a9718){const _0x46fb31=_0x36542c;var _0x1fdfde;return(_0x1fdfde=new URL(window[_0x46fb31(0x275)][_0x46fb31(0x1a0)])[_0x46fb31(0x1fd)][_0x46fb31(0x194)](_0x3a9718))!=null?_0x1fdfde:void 0x0;}}var Un=Object[_0x36542c(0x22b)],Mn=Object[_0x36542c(0x281)],An=(_0x161c54,_0x412a82,_0x4e43d1)=>_0x412a82 in _0x161c54?Un(_0x161c54,_0x412a82,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4e43d1}):_0x161c54[_0x412a82]=_0x4e43d1,Pn=(_0x9d76fa,_0x8ac5e,_0x142bed,_0x341fd5)=>{for(var _0x463a55=_0x341fd5>0x1?void 0x0:_0x341fd5?Mn(_0x8ac5e,_0x142bed):_0x8ac5e,_0x5e6352=_0x9d76fa['length']-0x1,_0x545081;_0x5e6352>=0x0;_0x5e6352--)(_0x545081=_0x9d76fa[_0x5e6352])&&(_0x463a55=_0x545081(_0x463a55)||_0x463a55);return _0x463a55;},Me=(_0x129db4,_0x3dde69)=>(_0x1d7521,_0x14a51d)=>_0x3dde69(_0x1d7521,_0x14a51d,_0x129db4),wn=(_0x36ef50,_0x3ca2e2,_0x50c934)=>An(_0x36ef50,_0x3ca2e2+'',_0x50c934);const yn='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';let Ye=class extends _0x3eef90{constructor(_0x4c6e4=_t,_0x284b65,_0x1769ac,_0x31590f){const _0x1e0611=_0x36542c;super(),this['_config']=_0x4c6e4,this[_0x1e0611(0x203)]=_0x284b65,this['_injector']=_0x1769ac,this[_0x1e0611(0x163)]=_0x31590f;const {..._0x6fe669}=_0x12e663({},_t,this[_0x1e0611(0x2fe)]);this['_configService'][_0x1e0611(0x1e1)](hn,_0x6fe669);}[_0x36542c(0x149)](){const _0x3eef34=_0x36542c;this[_0x3eef34(0x15b)](),this[_0x3eef34(0x1be)]();}[_0x36542c(0x2b5)](){const _0x3fe583=_0x36542c;this[_0x3fe583(0x2d8)]();}[_0x36542c(0x15b)](){const _0x2be0e6=_0x36542c;var _0x410450;const _0x3a6a9c=[[Ke],[Ie],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x1a891b,{'useClass':_0x566dd2}],[_0x386892,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0x2be0e6(0x2fe)][_0x2be0e6(0x337)]&&_0x3a6a9c['push']([le]),_0x238b35(this[_0x2be0e6(0x207)],_0x10c9d8(_0x3a6a9c,(_0x410450=this[_0x2be0e6(0x2fe)])==null?void 0x0:_0x410450['override']));}[_0x36542c(0x2d8)](){const _0xa84da=_0x36542c;this['disposeWithMe'](this[_0xa84da(0x203)][_0xa84da(0x168)](_0x11c449[_0xa84da(0x255)],[Fe])),this[_0xa84da(0x2e0)](this[_0xa84da(0x203)][_0xa84da(0x168)](_0x11c449[_0xa84da(0x176)],[ke]));}[_0x36542c(0x1be)](){const _0x31c41c=_0x36542c;_0x878293(this[_0x31c41c(0x207)],[[H],[ae],[Se],[_e],[ce],[Ie]]),this[_0x31c41c(0x2fe)][_0x31c41c(0x337)]&&_0x878293(this['_injector'],[[le]]);}};wn(Ye,_0x36542c(0x1f1),yn),Ye=Pn([_0x3fcff2(_0x405f63),Me(0x1,_0x325ffd),Me(0x2,_0x338b4d(_0x2c838e)),Me(0x3,_0x3da9ca)],Ye);var $n=Object[_0x36542c(0x281)],xn=(_0x5ac413,_0x5ecc46,_0x148467,_0x5c0c1a)=>{const _0x4ed07e=_0x36542c;for(var _0x1c9591=_0x5c0c1a>0x1?void 0x0:_0x5c0c1a?$n(_0x5ecc46,_0x148467):_0x5ecc46,_0x43164a=_0x5ac413[_0x4ed07e(0x125)]-0x1,_0x286746;_0x43164a>=0x0;_0x43164a--)(_0x286746=_0x5ac413[_0x43164a])&&(_0x1c9591=_0x286746(_0x1c9591)||_0x1c9591);return _0x1c9591;},J=(_0x5e210a,_0x4507d2)=>(_0x3f3039,_0x2a527d)=>_0x4507d2(_0x3f3039,_0x2a527d,_0x5e210a);let ut=class extends _0x3f9356{constructor(_0x4dd6e6,_0x494dd5,_0x22cd76,_0x577e60,_0x7d60e3){super(_0x4dd6e6,_0x494dd5,_0x22cd76,_0x577e60,_0x7d60e3);}async[_0x36542c(0x288)](_0x586243){const _0x34d884=_0x36542c,_0x15fcef=await this[_0x34d884(0x17c)](),_0x230e0d=this['_createSocketURL'](_0x586243,_0x15fcef);return this[_0x34d884(0x282)](_0x230e0d);}[_0x36542c(0x17d)](_0x40b0fa,_0x2bd05a){const _0x2a035d=_0x36542c,_0x406350=typeof window>'u'?new URL(_0x40b0fa):new URL(_0x40b0fa,window['location'][_0x2a035d(0x1ed)]);_0x406350[_0x2a035d(0x1fd)][_0x2a035d(0x25a)]('sessionTicket',_0x2bd05a);const _0x2960de=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x2a035d(0x275)][_0x2a035d(0x131)]);return _0x2960de[_0x2a035d(0x194)](_0x2a035d(0x2dc))&&_0x406350[_0x2a035d(0x1fd)][_0x2a035d(0x25a)](_0x2a035d(0x2dc),_0x2960de['get']('runId')),_0x406350[_0x2a035d(0x153)]();}async[_0x36542c(0x17c)](){const _0x3fa019=_0x36542c;var _0x4e4c3b,_0x254d74,_0x4f7086;const _0x597f1e=this['_configService'][_0x3fa019(0x1e0)](_0x289bc7),_0x5e1917=(_0x4e4c3b=_0x597f1e==null?void 0x0:_0x597f1e[_0x3fa019(0x2cb)])!=null?_0x4e4c3b:_0x1745dd;return(_0x4f7086=(_0x254d74=(await this['_httpService'][_0x3fa019(0x194)](_0x5e1917,{'headers':{'Content-Type':_0x3fa019(0x20f)}}))[_0x3fa019(0x346)])==null?void 0x0:_0x254d74[_0x3fa019(0x34e)])!=null?_0x4f7086:'';}};ut=xn([J(0x0,_0x338b4d(_0x2c838e)),J(0x1,_0x338b4d(_0x5f42ec)),J(0x2,_0x3da9ca),J(0x3,_0x4838cb),J(0x4,_0x2f7663)],ut);var Bn=Object['getOwnPropertyDescriptor'],Fn=(_0x22d82d,_0x5d46c6,_0x32f847,_0x152c97)=>{const _0x3560e5=_0x36542c;for(var _0x5c8d45=_0x152c97>0x1?void 0x0:_0x152c97?Bn(_0x5d46c6,_0x32f847):_0x5d46c6,_0x381522=_0x22d82d[_0x3560e5(0x125)]-0x1,_0x4f01a2;_0x381522>=0x0;_0x381522--)(_0x4f01a2=_0x22d82d[_0x381522])&&(_0x5c8d45=_0x4f01a2(_0x5c8d45)||_0x5c8d45);return _0x5c8d45;},Ae=(_0x5f4090,_0x24feb7)=>(_0x518be4,_0x3afd88)=>_0x24feb7(_0x518be4,_0x3afd88,_0x5f4090);let dt=class extends _0xc640cc{constructor(_0x1d004c,_0x35bc66,_0x52fa68){const _0x3ec2fd=_0x36542c;super(),this[_0x3ec2fd(0x34c)]=_0x1d004c,this[_0x3ec2fd(0x18b)]=_0x35bc66,this[_0x3ec2fd(0x163)]=_0x52fa68;}async['runOnServer'](_0x5b8db4,_0x423393,_0x20cb25,..._0x48b8a2){const _0x310e38=_0x36542c;var _0x332fde,_0x2c3ef5,_0x39dcd6,_0x40f5fb;const _0x32c816=this[_0x310e38(0x34c)][_0x310e38(0x1d2)]();if(!_0x32c816)throw new Error(_0x310e38(0x1ad));const _0x51ab10=((_0x332fde=this['_configService'][_0x310e38(0x1e0)](_0x5e5c8e))!=null?_0x332fde:_0xaab990)+'/'+_0x5b8db4+_0x310e38(0x12b)+_0x423393,_0xf49b7=new URL(window['location'][_0x310e38(0x1a0)]),_0x5adffa={'scriptId':_0x5b8db4,'runId':(_0x2c3ef5=_0xf49b7['searchParams'][_0x310e38(0x194)](_0x310e38(0x2dc)))!=null?_0x2c3ef5:'','function':_0x423393,'unitId':_0x32c816['getUnitId'](),'argsOfFunction':JSON[_0x310e38(0x1a2)](_0x48b8a2),'invokeId':(_0x39dcd6=_0x20cb25[_0x310e38(0x192)])!=null?_0x39dcd6:'','executionId':(_0x40f5fb=_0x20cb25[_0x310e38(0x25e)])!=null?_0x40f5fb:''};try{const _0x2d4f6f=await this[_0x310e38(0x18b)][_0x310e38(0x21d)](_0x51ab10,{'body':_0x5adffa});return _0x2d4f6f[_0x310e38(0x346)]['error']&&_0x2d4f6f[_0x310e38(0x346)]['error'][_0x310e38(0x2e5)]!==Z['OK']?_0x310e38(0x235):_0x2d4f6f[_0x310e38(0x346)][_0x310e38(0x1d3)];}catch{return _0x310e38(0x235);}}};dt=Fn([Ae(0x0,_0x4d0d85),Ae(0x1,_0x338b4d(_0x5f42ec)),Ae(0x2,_0x3da9ca)],dt);const St=0x7530,It='ACTIVE_UNIT_EVENT_CHANNEL';class rr extends _0xc640cc{constructor(){const _0x4ebc12=_0x36542c;super(),_(this,_0x4ebc12(0x24f),_0x52eed0()),_(this,_0x4ebc12(0x198),new Set()),_(this,_0x4ebc12(0x181),new Map()),_(this,'_heartbeatTimer',null),_(this,_0x4ebc12(0x186),new Map()),_(this,'_unitStatus',new Map()),this[_0x4ebc12(0x2f7)]();}[_0x36542c(0x1f7)](){const _0x58f97f=_0x36542c;super[_0x58f97f(0x1f7)](),this[_0x58f97f(0x186)][_0x58f97f(0x310)]((_0x93eec6,_0x50b235)=>this['_removeClearOtherTimer'](_0x50b235)),this[_0x58f97f(0x1d8)]&&window[_0x58f97f(0x34b)](this[_0x58f97f(0x1d8)]);}[_0x36542c(0x1bb)](_0x106c5e){const _0x2bb124=_0x36542c;return this['_ensureSubject'](_0x106c5e)[_0x2bb124(0x124)](_0x441b5e());}[_0x36542c(0x294)](_0x917230){const _0xe565f2=_0x36542c;this[_0xe565f2(0x198)][_0xe565f2(0x326)]===0x0&&this[_0xe565f2(0x2be)](),this[_0xe565f2(0x198)][_0xe565f2(0x214)](_0x917230),this[_0xe565f2(0x1ae)]({'type':0x0,'memberID':this[_0xe565f2(0x24f)],'unitIDs':[_0x917230],'isForwarded':!0x1});}[_0x36542c(0x18a)](_0x3ab81e){const _0x1ec08f=_0x36542c;this['_selfUnitIDs'][_0x1ec08f(0x158)](_0x3ab81e),this[_0x1ec08f(0x198)][_0x1ec08f(0x326)]===0x0&&this['_heartbeatTimer']&&window[_0x1ec08f(0x34b)](this[_0x1ec08f(0x1d8)]);}[_0x36542c(0x2f7)](){const _0x36663a=_0x36542c;this[_0x36663a(0x2e0)](_0x6a8bba(_0x35f93f(window,_0x36663a(0x2b6))[_0x36663a(0x1cc)](_0x105455=>{const _0x240c27=_0x36663a;if(_0x105455['key']!==It||!_0x105455['newValue'])return;const _0x3c5ab9=JSON[_0x240c27(0x173)](_0x105455[_0x240c27(0x177)]);this['_handleEvent'](_0x3c5ab9);}))),window[_0x36663a(0x116)](_0x36663a(0x118),()=>this[_0x36663a(0x1ae)]({'type':0x1,'memberID':this[_0x36663a(0x24f)],'unitIDs':Array[_0x36663a(0x35b)](this[_0x36663a(0x198)])}));}[_0x36542c(0x147)](_0x1cea68){const _0x42f1f5=_0x36542c;switch(_0x1cea68[_0x42f1f5(0x1ab)]){case 0x0:this[_0x42f1f5(0x287)](_0x1cea68);break;case 0x1:this[_0x42f1f5(0x128)](_0x1cea68);break;case 0x2:this[_0x42f1f5(0x339)](_0x1cea68);break;}}['_handleJoinEvent'](_0x147110){const _0x5279a9=_0x36542c,{unitIDs:_0x3e70c5,memberID:_0x1ff3dd,isForwarded:_0x14aa21}=_0x147110;_0x3e70c5['forEach'](_0x327bdf=>{const _0x840698=_0x4dd1;if(!_0x14aa21&&this[_0x840698(0x181)][_0x840698(0x16f)](_0x327bdf)&&this['_ensureSubject'](_0x327bdf)[_0x840698(0x21f)](_0x3e2038[_0x840698(0x1eb)]),!this[_0x840698(0x181)]['has'](_0x327bdf)||!this[_0x840698(0x181)]['get'](_0x327bdf)[_0x840698(0x16f)](_0x1ff3dd)){const _0x507a5f=this['_unitOnClients']['get'](_0x327bdf)||new Set();_0x507a5f[_0x840698(0x214)](_0x1ff3dd),this[_0x840698(0x181)][_0x840698(0x25a)](_0x327bdf,_0x507a5f),this[_0x840698(0x31c)](_0x1ff3dd);}}),_0x14aa21||this['_send']({'type':0x0,'memberID':this[_0x5279a9(0x24f)],'unitIDs':[...this[_0x5279a9(0x198)]],'isForwarded':!0x0});}[_0x36542c(0x31c)](_0x470a11){const _0x42cd23=_0x36542c;this[_0x42cd23(0x17f)](_0x470a11);const _0x281ff5=window['setTimeout'](()=>{const _0x50a6c1=_0x42cd23;this['_unitOnClients'][_0x50a6c1(0x310)](_0x3112fc=>{const _0x474d66=_0x50a6c1;_0x3112fc[_0x474d66(0x158)](_0x470a11);});},St*0x2);this['_clearOtherTimers'][_0x42cd23(0x25a)](_0x470a11,_0x281ff5);}[_0x36542c(0x17f)](_0x330590){const _0xa1b68f=_0x36542c;if(this[_0xa1b68f(0x186)][_0xa1b68f(0x16f)](_0x330590)){const _0x509a67=this[_0xa1b68f(0x186)]['get'](_0x330590);_0x509a67&&window[_0xa1b68f(0x2f9)](_0x509a67),this['_clearOtherTimers'][_0xa1b68f(0x25a)](_0x330590,null);}}['_handleLeaveEvent'](_0x5292ae){const _0x2637af=_0x36542c,{memberID:_0x171171,unitIDs:_0x20b87b}=_0x5292ae;_0x20b87b['forEach'](_0x3727a6=>{const _0x44149b=_0x4dd1;var _0x5c9241;const _0x516617=this[_0x44149b(0x181)][_0x44149b(0x194)](_0x3727a6);_0x516617&&(_0x516617[_0x44149b(0x158)](_0x171171),(_0x5c9241=this['_ensureSubject'](_0x3727a6))==null||_0x5c9241['next'](_0x516617[_0x44149b(0x326)]===0x0?_0x3e2038[_0x44149b(0x28e)]:_0x3e2038[_0x44149b(0x1eb)]));}),this[_0x2637af(0x17f)](_0x171171);}[_0x36542c(0x339)](_0x14ca0f){const _0x2cd9c1=_0x36542c;this['_scheduleClearOtherTimer'](_0x14ca0f[_0x2cd9c1(0x13d)]);}[_0x36542c(0x1ae)](_0x1b10c4){const _0x941924=_0x36542c;localStorage['setItem'](It,JSON[_0x941924(0x1a2)](_0x1b10c4));}[_0x36542c(0x2be)](){const _0x1f2232=_0x36542c;this['_heartbeatTimer']=window[_0x1f2232(0x1f2)](()=>{const _0x2e9b03=_0x1f2232;this[_0x2e9b03(0x1ae)]({'type':0x2,'memberID':this[_0x2e9b03(0x24f)]});},St);}['_ensureSubject'](_0x4c7c03){const _0x56bec8=_0x36542c;return this['_unitStatus'][_0x56bec8(0x16f)](_0x4c7c03)||this[_0x56bec8(0x296)][_0x56bec8(0x25a)](_0x4c7c03,new _0x311c05(_0x3e2038[_0x56bec8(0x28e)])),this[_0x56bec8(0x296)][_0x56bec8(0x194)](_0x4c7c03);}}export{ut as BrowserCollaborationSocketService,ce as CollaborationDataLoaderController,ae as DesktopCollaborationStatusDisplayController,yt as IURLService,dt as RemoteUniscriptService,tn as SheetCollabCursorShape,Ye as UniverCollaborationClientUIPlugin,rr as WebBrowserSingleActiveUnitService,Ln as WebURLService};
|
|
1
|
+
const _0x137374=_0x3d3a;(function(_0x53e699,_0x4f6379){const _0xdb8bf9=_0x3d3a,_0xea166a=_0x53e699();while(!![]){try{const _0x46faf9=-parseInt(_0xdb8bf9(0x2e5))/0x1+parseInt(_0xdb8bf9(0x200))/0x2*(-parseInt(_0xdb8bf9(0x271))/0x3)+parseInt(_0xdb8bf9(0x355))/0x4+parseInt(_0xdb8bf9(0x3c0))/0x5*(-parseInt(_0xdb8bf9(0x21e))/0x6)+parseInt(_0xdb8bf9(0x421))/0x7*(parseInt(_0xdb8bf9(0x373))/0x8)+parseInt(_0xdb8bf9(0x1fa))/0x9*(-parseInt(_0xdb8bf9(0x247))/0xa)+parseInt(_0xdb8bf9(0x353))/0xb*(-parseInt(_0xdb8bf9(0x2c4))/0xc);if(_0x46faf9===_0x4f6379)break;else _0xea166a['push'](_0xea166a['shift']());}catch(_0x45922e){_0xea166a['push'](_0xea166a['shift']());}}}(_0x1d03,0x3b9df));var Yt=Object[_0x137374(0x35b)],Wt=(_0x5bf455,_0x314ac2,_0x435a93)=>_0x314ac2 in _0x5bf455?Yt(_0x5bf455,_0x314ac2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x435a93}):_0x5bf455[_0x314ac2]=_0x435a93,_=(_0x19b9a9,_0x332dbe,_0x31507f)=>Wt(_0x19b9a9,typeof _0x332dbe!=_0x137374(0x376)?_0x332dbe+'':_0x332dbe,_0x31507f);import{jsx as _0x8509cd,jsxs as _0x17eceb}from'react/jsx-runtime';import{CollaborationStatus as _0x2e02de,CollaborationSessionService as _0x66bad9,CollaborationController as _0x573dad,DataLoaderService as _0x329ea5,MemberService as _0x1e15f6,SessionStatus as _0x1147de,ILocalCacheService as _0x2b1e85,CollaborationUIEventService as _0x166f27,CollaborationUIEventId as _0x3041bd,DocCollaborationEntity as _0x1d259e,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x1e86b8,getLocalCacheKey as _0xe796ed,LOCAL_CACHE_INTERVAL as _0x48566c,LOCAL_CACHE_INTERVAL_KEY as _0x5a78ff,UniverCollaborationClientPlugin as _0x5d1b34,CollaborationSocketService as _0x3c5468,DEFAULT_WS_SESSION_TICKET_URL as _0x3801bf,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x599585,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0xe555a2,UnitStatus as _0xb88388}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x55a4a7,IUniverInstanceService as _0x14d7a9,Inject as _0x23f7c2,Injector as _0x1173e2,Disposable as _0x2dffbf,createIdentifier as _0x414700,ILogService as _0x4cfb97,ICommandService as _0x532ba9,Optional as _0x367d62,RxDisposable as _0xa32225,Workbook as _0xac5a73,DOC_RANGE_TYPE as _0x5e55c6,debounce as _0x5e38e7,Rectangle as _0x510353,DisposableCollection as _0x21c388,toDisposable as _0x10b382,UniverInstanceType as _0x221888,generateRandomId as _0x1a0884,COLORS as _0x456502,ColorKit as _0x2a7785,ThemeService as _0x27efaf,fromEventSubject as _0x5e75e5,Tools as _0x43e3cb,CommandType as _0x5f58f3,IConfigService as _0x33a0bc,CanceledError as _0xaf0871,isFormulaString as _0x34edce,isFormulaId as _0x669a1e,ILocalStorageService as _0x2c6c03,DependentOn as _0x7f4b09,Plugin as _0xa676fd,merge as _0x2a3f8e,registerDependencies as _0x5d6cf9,mergeOverrideWithDependencies as _0x5e1524,touchDependencies as _0x41e9c7}from'@univerjs/core';import{useObservable as _0xa2a3ef,useDependency as _0x594231,IUIPartsService as _0x22d5a9,BuiltInUIPart as _0x86dd93,connectInjector as _0x2bbfbb,IBeforeCloseService as _0x3bf86c,IMessageService as _0x3d39b5,INotificationService as _0x5cea2e}from'@univerjs/ui';import{BehaviorSubject as _0x5b93d9,switchMap as _0x5cbe42,of as _0x3f9e73,takeUntil as _0x1d8ed1,debounceTime as _0xf53222,Subject as _0x24d9e4,filter as _0x2cee0a,merge as _0x2fab56,combineLatest as _0x5129a0,fromEvent as _0x58ef8d,shareReplay as _0x411e24,mapTo as _0x5b150f,distinctUntilChanged as _0x553790}from'rxjs';import{Tooltip as _0x24fcac,clsx as _0x3c192e,MessageType as _0x17ce26}from'@univerjs/design';import{useRef as _0x20cd3d,createElement as _0x4a2fa2,forwardRef as _0x14884c,useCallback as _0x2fceac}from'react';import{IRemoteInstanceService as _0x223ed4}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x44656d,RefRangeService as _0x46b6a8,SetSelectionsOperation as _0x49f5b6,SheetsSelectionsService as _0x552954,EffectRefRangId as _0x495460,handleIRemoveRow as _0x429be3,handleIRemoveCol as _0x2e7529,handleMoveRange as _0x43875b,handleInsertRow as _0x2c24c2,handleInsertRangeMoveRight as _0x4fea4e,handleInsertRangeMoveDown as _0x1aa2a3,handleInsertCol as _0x310ac0,handleDeleteRangeMoveUp as _0x19e82f,handleDeleteRangeMoveLeft as _0x5d65ed,runRefRangeMutations as _0x521ce3}from'@univerjs/sheets';import{Shape as _0x24350b,Rect as _0x43325f,getColor as _0x252682,RegularPolygon as _0x4db73d,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x33a8b4,Vector2 as _0x81a68f,SHEET_VIEWPORT_KEY as _0x10210d,IRenderManagerService as _0x46c3d4}from'@univerjs/engine-render';import{HTTPService as _0x2410da,ISocketService as _0x499c83,WebSocketService as _0x18cf93}from'@univerjs/network';import{IDocClipboardService as _0xe41cee,NodePositionConvertToCursor as _0x118499,NodePositionConvertToRectRange as _0x5c33ef,TEXT_RANGE_LAYER_INDEX as _0x2afac1,SetDocZoomRatioOperation as _0xe0676e,DocIMEInputManagerService as _0x14ec08,DocStateChangeManagerService as _0x11105a}from'@univerjs/docs-ui';import{IImageIoService as _0xb3b996}from'@univerjs/drawing';import{ITransformService as _0x44abdb,CollaborationEvent as _0xf8b602,isTransformMutationFailure as _0x5c3d1d,isTransformMutationsWithChangesetSuccess as _0x53d5b6,RevisionService as _0x29aef1,ISnapshotServerService as _0x425c73}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x33f8ea,RichTextEditingMutation as _0x26be09,DocSelectionManagerService as _0x46950a,DocSkeletonManagerService as _0x281b9b}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x13c820,serializeRangeWithSheet as _0x2ef9fb,FormulaExecuteStageType as _0xa43128,FormulaExecutedStateType as _0x8f19c0,SetFormulaCalculationStartMutation as _0x3fa7c3,SetFormulaCalculationNotificationMutation as _0x18e3c7}from'@univerjs/engine-formula';import{map as _0x37ca5f,filter as _0x58385a,throttleTime as _0x12f0f6,takeUntil as _0x17f684,switchMap as _0x44a498}from'rxjs/operators';import{SheetSkeletonManagerService as _0x16576d,getCoordByCell as _0x4a882f,getSheetObject as _0x4b881}from'@univerjs/sheets-ui';function Ge({ref:_0x153cfa,..._0xfb167b}){const _0xc0942=_0x137374,{icon:_0x341fba,id:_0x25dc73,className:_0x426c58,extend:_0x3108db,..._0x127dc3}=_0xfb167b,_0x1c98d8=(_0xc0942(0x3dc)+_0x25dc73+'\x20'+(_0x426c58||''))['trim'](),_0x38a229=_0x20cd3d('_'+vi());return At(_0x341fba,''+_0x25dc73,{'defIds':_0x341fba[_0xc0942(0x322)],'idSuffix':_0x38a229[_0xc0942(0x397)]},{'ref':_0x153cfa,'className':_0x1c98d8,..._0x127dc3},_0x3108db);}function At(_0x5f13b6,_0x13db71,_0x32c213,_0x44ecb1,_0x39202a){const _0x1cdf4e=_0x137374;return _0x4a2fa2(_0x5f13b6[_0x1cdf4e(0x3af)],{'key':_0x13db71,...gi(_0x5f13b6,_0x32c213,_0x39202a),..._0x44ecb1},(Ei(_0x5f13b6,_0x32c213)[_0x1cdf4e(0x3b6)]||[])[_0x1cdf4e(0x384)]((_0x2ee0bd,_0x2c7104)=>At(_0x2ee0bd,_0x13db71+'-'+_0x5f13b6[_0x1cdf4e(0x3af)]+'-'+_0x2c7104,_0x32c213,void 0x0,_0x39202a)));}function gi(_0x456a86,_0x4dd5a4,_0x18aed7){const _0x2c36a3=_0x137374,_0x1b3e92={..._0x456a86[_0x2c36a3(0x420)]};_0x18aed7!=null&&_0x18aed7[_0x2c36a3(0x29a)]&&_0x1b3e92[_0x2c36a3(0x2c1)]===_0x2c36a3(0x29a)&&(_0x1b3e92[_0x2c36a3(0x2c1)]=_0x18aed7[_0x2c36a3(0x29a)]),_0x456a86[_0x2c36a3(0x3af)]===_0x2c36a3(0x3e7)&&_0x1b3e92['id']&&(_0x1b3e92['id']=_0x1b3e92['id']+_0x4dd5a4[_0x2c36a3(0x367)]),Object['entries'](_0x1b3e92)['forEach'](([_0xde606c,_0x3edd49])=>{const _0x4e1411=_0x2c36a3;_0xde606c===_0x4e1411(0x3e7)&&typeof _0x3edd49==_0x4e1411(0x27e)&&(_0x1b3e92[_0xde606c]=_0x3edd49[_0x4e1411(0x21a)](/url\(#(.*)\)/,'url(#$1'+_0x4dd5a4[_0x4e1411(0x367)]+')'));});const {defIds:_0x466028}=_0x4dd5a4;return!_0x466028||_0x466028[_0x2c36a3(0x327)]===0x0||(_0x456a86[_0x2c36a3(0x3af)]===_0x2c36a3(0x2db)&&_0x1b3e92['xlink:href']&&(_0x1b3e92[_0x2c36a3(0x36e)]=_0x1b3e92[_0x2c36a3(0x36e)]+_0x4dd5a4[_0x2c36a3(0x367)]),Object[_0x2c36a3(0x245)](_0x1b3e92)[_0x2c36a3(0x343)](([_0x5def54,_0x3c9e86])=>{const _0x453eda=_0x2c36a3;typeof _0x3c9e86==_0x453eda(0x27e)&&(_0x1b3e92[_0x5def54]=_0x3c9e86[_0x453eda(0x21a)](/url\(#(.*)\)/,_0x453eda(0x3da)+_0x4dd5a4['idSuffix']+')'));})),_0x1b3e92;}function Ei(_0x64e349,_0x3bd18e){const _0x5bbac4=_0x137374;var _0x3875f2;const {defIds:_0x1793c8}=_0x3bd18e;return!_0x1793c8||_0x1793c8[_0x5bbac4(0x327)]===0x0?_0x64e349:_0x64e349[_0x5bbac4(0x3af)]==='defs'&&((_0x3875f2=_0x64e349[_0x5bbac4(0x3b6)])!=null&&_0x3875f2[_0x5bbac4(0x327)])?{..._0x64e349,'children':_0x64e349[_0x5bbac4(0x3b6)][_0x5bbac4(0x384)](_0x4fb254=>typeof _0x4fb254[_0x5bbac4(0x420)]['id']==_0x5bbac4(0x27e)&&_0x1793c8&&_0x1793c8[_0x5bbac4(0x2ab)](_0x4fb254[_0x5bbac4(0x420)]['id'])?{..._0x4fb254,'attrs':{..._0x4fb254['attrs'],'id':_0x4fb254[_0x5bbac4(0x420)]['id']+_0x3bd18e[_0x5bbac4(0x367)]}}:_0x4fb254)}:_0x64e349;}function vi(){const _0x164c00=_0x137374;return Math[_0x164c00(0x2a4)]()['toString'](0x24)['substring'](0x2,0x8);}Ge['displayName']='UniverIcon';const pi={'tag':_0x137374(0x371),'attrs':{'xmlns':_0x137374(0x2ad),'fill':'none','viewBox':_0x137374(0x30c),'width':_0x137374(0x228),'height':_0x137374(0x228)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x137374(0x223),'attrs':{'stroke':_0x137374(0x38a),'d':_0x137374(0x422),'strokeLinecap':_0x137374(0x253),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x137374(0x202),'attrs':{},'children':[{'tag':_0x137374(0x1f0),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x137374(0x223),'attrs':{'fill':_0x137374(0x3c6),'d':_0x137374(0x20e)}}]}]}],'defIds':[_0x137374(0x32e)]},Pt=_0x14884c(function(_0x16e478,_0x3d12a0){return _0x4a2fa2(Ge,Object['assign']({},_0x16e478,{'id':'off-line-icon','ref':_0x3d12a0,'icon':pi}));});function _0x3d3a(_0x22f5d9,_0x522b57){_0x22f5d9=_0x22f5d9-0x1db;const _0x1d031b=_0x1d03();let _0x3d3a42=_0x1d031b[_0x22f5d9];return _0x3d3a42;}Pt[_0x137374(0x2da)]=_0x137374(0x393);const Oi={'tag':'svg','attrs':{'xmlns':_0x137374(0x2ad),'fill':_0x137374(0x38c),'viewBox':_0x137374(0x40a),'width':_0x137374(0x228),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x137374(0x223),'attrs':{'stroke':'currentColor','d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':'round','strokeLinejoin':_0x137374(0x253),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x137374(0x2fe)},'children':[{'tag':_0x137374(0x223),'attrs':{'fill':_0x137374(0x3c6),'d':_0x137374(0x20e),'transform':'translate(.97)'}}]}]}],'defIds':[_0x137374(0x2fe)]},wt=_0x14884c(function(_0x3e0c24,_0x14e77c){const _0x3c8a41=_0x137374;return _0x4a2fa2(Ge,Object[_0x3c8a41(0x2a2)]({},_0x3e0c24,{'id':_0x3c8a41(0x3dd),'ref':_0x14e77c,'icon':Oi}));});wt['displayName']=_0x137374(0x3f1);function Ti(_0x31c7b0){const _0x138b2e=_0x137374;switch(_0x31c7b0){case _0x2e02de['OFFLINE']:return _0x138b2e(0x3d6);case _0x2e02de[_0x138b2e(0x3a4)]:return _0x138b2e(0x222);case _0x2e02de['FETCH_MISS']:return _0x138b2e(0x33e);case _0x2e02de[_0x138b2e(0x2af)]:return'collabStatus.notCollab';case _0x2e02de['AWAITING']:case _0x2e02de[_0x138b2e(0x370)]:return'collabStatus.syncing';case _0x2e02de[_0x138b2e(0x307)]:case _0x2e02de[_0x138b2e(0x26d)]:return'collabStatus.synced';}}function Ci(_0xcd89e6){const _0x3b07c8=_0x137374,{status$:_0x1898f4}=_0xcd89e6,_0xf184b9=_0xa2a3ef(_0x1898f4,_0x2e02de['NOT_COLLAB']),_0x4403af=_0x594231(_0x55a4a7),_0x8c25dc=_0x594231(_0x66bad9),_0x5d39d7=_0xf184b9!==_0x2e02de[_0x3b07c8(0x3f6)],_0x5a36b9=_0x4403af['t'](Ti(_0xf184b9)),_0x45375e=_0x5d39d7?_0x8509cd(wt,{}):_0x8509cd(Pt,{}),_0x2d9098=_0x2fceac(()=>{const _0x4d3713=_0x3b07c8;_0x5d39d7||_0x8c25dc[_0x4d3713(0x1f5)]();},[_0x5d39d7,_0x8c25dc]);function _0xcff54c(){const _0x15232b=_0x3b07c8;return _0x17eceb(_0x15232b(0x28f),{'className':_0x15232b(0x3ff),'onClick':_0x2d9098,'children':[_0x8509cd(_0x15232b(0x28f),{'className':_0x3c192e(_0x15232b(0x36a),{'univer-text-green-500':_0x5d39d7,'univer-text-red-500':!_0x5d39d7}),'children':_0x45375e}),_0x8509cd(_0x15232b(0x28f),{'className':_0x15232b(0x257),'children':_0x5a36b9})]});}return _0x5d39d7?_0xcff54c():_0x8509cd(_0x24fcac,{'title':_0x4403af['t'](_0x3b07c8(0x1ef)),'children':_0xcff54c()});}var Ri=Object['getOwnPropertyDescriptor'],Di=(_0x51868e,_0x5c25a0,_0x11054d,_0x3f4fce)=>{const _0x12fb0b=_0x137374;for(var _0x26153a=_0x3f4fce>0x1?void 0x0:_0x3f4fce?Ri(_0x5c25a0,_0x11054d):_0x5c25a0,_0x3c5d40=_0x51868e[_0x12fb0b(0x327)]-0x1,_0x56cde5;_0x3c5d40>=0x0;_0x3c5d40--)(_0x56cde5=_0x51868e[_0x3c5d40])&&(_0x26153a=_0x56cde5(_0x26153a)||_0x26153a);return _0x26153a;},se=(_0x56658b,_0x580564)=>(_0x59d3ca,_0x2ea457)=>_0x580564(_0x59d3ca,_0x2ea457,_0x56658b);let ae=class extends _0x2dffbf{constructor(_0x5596ce,_0xd72649,_0x443dcd,_0x4ac404){const _0x5a0b6b=_0x137374;super(),_(this,_0x5a0b6b(0x293),new _0x5b93d9(_0x2e02de[_0x5a0b6b(0x2af)])),(this[_0x5a0b6b(0x366)]=_0x5596ce,this[_0x5a0b6b(0x265)]=_0xd72649,this['_collaborationController']=_0x443dcd,this[_0x5a0b6b(0x30a)]=_0x4ac404,this['_initStatusComponent'](),this[_0x5a0b6b(0x35e)]());}[_0x137374(0x35e)](){const _0x1f273d=_0x137374;this['disposeWithMe'](this[_0x1f273d(0x366)]['focused$'][_0x1f273d(0x25f)](_0x5cbe42(()=>{const _0x243266=_0x1f273d,_0x1d6895=this[_0x243266(0x366)]['getFocusedUnit']();return _0x1d6895?this[_0x243266(0x32f)][_0x243266(0x275)](_0x1d6895[_0x243266(0x254)]()):_0x3f9e73(null);}),_0x5cbe42(_0x3c431c=>_0x3c431c?_0x3c431c[_0x1f273d(0x334)]:_0x3f9e73(_0x2e02de[_0x1f273d(0x2af)])))[_0x1f273d(0x305)](_0x52a429=>{const _0x4d1ef3=_0x1f273d;this['_status$'][_0x4d1ef3(0x28d)](_0x52a429);}));}[_0x137374(0x40c)](){const _0x519b76=_0x137374;this[_0x519b76(0x32c)](this[_0x519b76(0x30a)][_0x519b76(0x415)](_0x86dd93['HEADER_MENU'],()=>_0x2bbfbb(Ni({'status$':this[_0x519b76(0x293)]['asObservable']()}),this['_injector'])));}};ae=Di([se(0x0,_0x14d7a9),se(0x1,_0x23f7c2(_0x1173e2)),se(0x2,_0x23f7c2(_0x573dad)),se(0x3,_0x22d5a9)],ae);function Ni(_0x36e51a){const {status$:_0x5ef316}=_0x36e51a;return function(){return _0x8509cd(Ci,{'status$':_0x5ef316});};}const yt=_0x414700(_0x137374(0x3e1));var bi=Object[_0x137374(0x2cb)],Li=(_0x1e0be3,_0x2ab542,_0x1449e7,_0x2e64ce)=>{for(var _0x188bf3=_0x2e64ce>0x1?void 0x0:_0x2e64ce?bi(_0x2ab542,_0x1449e7):_0x2ab542,_0x4fcb34=_0x1e0be3['length']-0x1,_0x1539bd;_0x4fcb34>=0x0;_0x4fcb34--)(_0x1539bd=_0x1e0be3[_0x4fcb34])&&(_0x188bf3=_0x1539bd(_0x188bf3)||_0x188bf3);return _0x188bf3;},K=(_0x4df660,_0x37c620)=>(_0x5263ef,_0x5ad99f)=>_0x37c620(_0x5263ef,_0x5ad99f,_0x4df660);let ce=class extends _0xa32225{constructor(_0x4dffe4,_0x2ef7e3,_0x4b4611,_0x232b8a,_0x52a353){const _0x1c738c=_0x137374;super(),this[_0x1c738c(0x235)]=_0x4dffe4,this[_0x1c738c(0x2ff)]=_0x2ef7e3,this[_0x1c738c(0x233)]=_0x4b4611,this['_dataLoaderService']=_0x232b8a,_0x52a353?_0x52a353==null||_0x52a353[_0x1c738c(0x22a)]()[_0x1c738c(0x312)](()=>this[_0x1c738c(0x1de)]()):(this[_0x1c738c(0x2ff)]['debug']('[CollaborationDataLoaderController]',_0x1c738c(0x2d4)),this[_0x1c738c(0x1de)]());}async[_0x137374(0x1de)](){const _0x4c4c4f=_0x137374,_0x48aeef=this[_0x4c4c4f(0x235)]['getParam'](_0x4c4c4f(0x3b0)),_0x456c2c=this['_urlService'][_0x4c4c4f(0x1e0)](_0x4c4c4f(0x404)),_0x3667e9=this[_0x4c4c4f(0x235)][_0x4c4c4f(0x1e0)]('subunit');if(!_0x48aeef||!_0x456c2c){this[_0x4c4c4f(0x2ff)]['debug'](_0x4c4c4f(0x284),_0x4c4c4f(0x3f5));return;}const _0x24e9fb=await this[_0x4c4c4f(0x2fa)][_0x4c4c4f(0x220)](_0x48aeef,Number(_0x456c2c),_0x3667e9);_0x24e9fb&&_0x24e9fb instanceof _0xac5a73&&this[_0x4c4c4f(0x23b)](_0x24e9fb);}async[_0x137374(0x23b)](_0x4741f1){const _0x33eb1a=_0x137374;await this[_0x33eb1a(0x35f)](_0x4741f1),_0x4741f1['activeSheet$'][_0x33eb1a(0x25f)](_0x1d8ed1(this[_0x33eb1a(0x3c7)]))[_0x33eb1a(0x305)](_0x1cf9d4=>{const _0x3478b9=_0x33eb1a;_0x1cf9d4&&this[_0x3478b9(0x37c)](_0x1cf9d4);}),this['_urlService'][_0x33eb1a(0x317)][_0x33eb1a(0x25f)](_0x1d8ed1(this['dispose$']))[_0x33eb1a(0x305)](()=>this[_0x33eb1a(0x35f)](_0x4741f1));}[_0x137374(0x37c)](_0xc4884d,_0xa3be2a=!0x1){const _0x5cf567=_0x137374,_0xbeda00=this[_0x5cf567(0x235)]['getParam'](_0x5cf567(0x2a3));_0xc4884d[_0x5cf567(0x2f3)]()!==_0xbeda00&&this[_0x5cf567(0x235)][_0x5cf567(0x324)](_0x5cf567(0x2a3),_0xc4884d[_0x5cf567(0x2f3)](),_0xa3be2a);}async[_0x137374(0x35f)](_0x53a6ec){const _0x2b0551=_0x137374;var _0x1a5661;const _0x21ae36=this[_0x2b0551(0x235)][_0x2b0551(0x1e0)](_0x2b0551(0x2a3));if(!_0x21ae36||!_0x53a6ec[_0x2b0551(0x2f4)](_0x21ae36)){const _0x323963=_0x53a6ec[_0x2b0551(0x2e3)]()[0x0],_0xc1c66d=_0x53a6ec[_0x2b0551(0x2f4)](_0x323963);if(!_0xc1c66d)return;this['_updateURLWithCurrentState'](_0xc1c66d,!0x0),await this['_commandService'][_0x2b0551(0x2d6)](_0x44656d['id'],{'unitId':_0x53a6ec[_0x2b0551(0x254)](),'subUnitId':_0x323963});return;}((_0x1a5661=_0x53a6ec[_0x2b0551(0x3d8)]())==null?void 0x0:_0x1a5661[_0x2b0551(0x2f3)]())!==_0x21ae36&&await this[_0x2b0551(0x233)][_0x2b0551(0x2d6)](_0x44656d['id'],{'unitId':_0x53a6ec['getUnitId'](),'subUnitId':_0x21ae36});}};ce=Li([K(0x0,yt),K(0x1,_0x4cfb97),K(0x2,_0x532ba9),K(0x3,_0x23f7c2(_0x329ea5)),K(0x4,_0x367d62(_0x223ed4))],ce);var Ui=Object[_0x137374(0x2cb)],Mi=(_0x3b7e6d,_0xbe7656,_0x1c276b,_0x23b005)=>{for(var _0x3dca31=_0x23b005>0x1?void 0x0:_0x23b005?Ui(_0xbe7656,_0x1c276b):_0xbe7656,_0xcb2d50=_0x3b7e6d['length']-0x1,_0x1e960c;_0xcb2d50>=0x0;_0xcb2d50--)(_0x1e960c=_0x3b7e6d[_0xcb2d50])&&(_0x3dca31=_0x1e960c(_0x3dca31)||_0x3dca31);return _0x3dca31;},rt=(_0x2f78c6,_0x25c9f6)=>(_0x354b96,_0x51f461)=>_0x25c9f6(_0x354b96,_0x51f461,_0x2f78c6);let $e=class extends _0xa32225{constructor(_0xac4f91,_0x2f0a86){const _0x850673=_0x137374;super(),this[_0x850673(0x267)]=_0xac4f91,this[_0x850673(0x29d)]=_0x2f0a86,this['_init']();}[_0x137374(0x1de)](){const _0x51906d=_0x137374,_0x4ce010=this;this[_0x51906d(0x32c)](this[_0x51906d(0x267)][_0x51906d(0x2f5)]({'onBeforePasteImage':async _0xc0bbe1=>{const _0x596fa4=_0x51906d,_0x264831=await _0x4ce010['_imageIoService']['saveImage'](_0xc0bbe1);return _0x264831?{'source':_0x264831[_0x596fa4(0x224)],'imageSourceType':_0x264831['imageSourceType']}:null;}}));}};$e=Mi([rt(0x0,_0xe41cee),rt(0x1,_0xb3b996)],$e);const ot=[_0x137374(0x39d),'jiqing.500',_0x137374(0x33a),_0x137374(0x40e),_0x137374(0x288),_0x137374(0x3c5)];class Ke extends _0x2dffbf{constructor(){const _0x4b7b58=_0x137374;super(...arguments),_(this,'_assignedColors',new Map()),_(this,_0x4b7b58(0x313),0x0);}[_0x137374(0x350)](_0x314b39){const _0x30ad6f=_0x137374;if(this['_assignedColors']['has'](_0x314b39))return this[_0x30ad6f(0x280)][_0x30ad6f(0x34d)](_0x314b39);const _0x512401=ot[this[_0x30ad6f(0x313)]];return this[_0x30ad6f(0x313)]=(this[_0x30ad6f(0x313)]+0x1)%ot[_0x30ad6f(0x327)],this[_0x30ad6f(0x280)][_0x30ad6f(0x308)](_0x314b39,_0x512401),_0x512401;}}function $t(_0x5dc80a){const _0x26ee8c=_0x137374;let _0x31381b='';for(const _0x28abc9 of _0x5dc80a){const {startOffset:_0x6f190c,endOffset:_0x416a1a,isActive:_0x3e2c8e,rangeType:_0x1c81dc,segmentId:_0x1b4477,segmentPage:_0x79cc09}=_0x28abc9;_0x31381b[_0x26ee8c(0x327)]&&(_0x31381b+=','),_0x31381b+=_0x6f190c+':'+_0x416a1a+':'+(_0x3e2c8e?'1':'0')+':'+_0x1c81dc+':'+_0x1b4477+':'+_0x79cc09;}return _0x31381b;}function Ai(_0x8e1748){const _0x4bf7ef=_0x137374,_0x4d1652=_0x8e1748[_0x4bf7ef(0x34f)](','),_0x23bdef=[];for(const _0x4892e5 of _0x4d1652){const [_0x7462ec,_0x159b77,_0xe73a5b,_0x3436d7,_0x5ef157,_0x29358f]=_0x4892e5['split'](':');_0x23bdef[_0x4bf7ef(0x378)]({'startOffset':Number(_0x7462ec),'endOffset':Number(_0x159b77),'collapsed':_0x7462ec===_0x159b77,'isActive':_0xe73a5b==='1','rangeType':_0x3436d7===_0x5e55c6['TEXT']?_0x5e55c6[_0x4bf7ef(0x3b8)]:_0x5e55c6[_0x4bf7ef(0x256)],'segmentId':typeof _0x5ef157==_0x4bf7ef(0x27e)?String(_0x5ef157):'','segmentPage':Number(_0x29358f!=null?_0x29358f:-0x1)});}return _0x23bdef[_0x4bf7ef(0x2a8)](_0x1fe274=>_0x1fe274[_0x4bf7ef(0x299)])||(_0x23bdef[0x0][_0x4bf7ef(0x299)]=!0x0),_0x23bdef;}class ze extends _0xa32225{constructor(){const _0x3b7ed6=_0x137374;super(...arguments),_(this,_0x3b7ed6(0x1e3),new _0x5b93d9(null)),_(this,'collabCursorState$',this[_0x3b7ed6(0x1e3)][_0x3b7ed6(0x315)]());}[_0x137374(0x354)](_0x126fe8){const _0x1cd15b=_0x137374,{unitID:_0xd03a96,memberID:_0x22a0a8,textRanges:_0xf5693d}=_0x126fe8,_0x32464e=$t(_0xf5693d);if(_0x32464e==='')return;const _0x4574d5={'unitID':_0xd03a96,'memberID':_0x22a0a8,'selection':_0x32464e};this[_0x1cd15b(0x1e3)][_0x1cd15b(0x28d)](_0x4574d5);}}var Pi=Object[_0x137374(0x2cb)],wi=(_0x1ba89c,_0xb93a44,_0x5ae7fe,_0x254d73)=>{const _0x560e51=_0x137374;for(var _0x294f30=_0x254d73>0x1?void 0x0:_0x254d73?Pi(_0xb93a44,_0x5ae7fe):_0xb93a44,_0xfbc908=_0x1ba89c[_0x560e51(0x327)]-0x1,_0x175bd9;_0xfbc908>=0x0;_0xfbc908--)(_0x175bd9=_0x1ba89c[_0xfbc908])&&(_0x294f30=_0x175bd9(_0x294f30)||_0x294f30);return _0x294f30;},A=(_0x3d7715,_0x246253)=>(_0x233b08,_0xc4c4da)=>_0x246253(_0x233b08,_0xc4c4da,_0x3d7715);const yi=0x12c,$i=0x64;let xe=class extends _0xa32225{constructor(_0x109eec,_0x571039,_0x43e7b2,_0x33a68c,_0x4bc2fc,_0xae55c2,_0x3e4a96,_0x572207,_0x16283b){const _0x3419d4=_0x137374;super(),_(this,_0x3419d4(0x2c0),!0x1),_(this,_0x3419d4(0x1de),!0x1),_(this,_0x3419d4(0x337),new _0x5b93d9(new Map())),_(this,_0x3419d4(0x2e0),this[_0x3419d4(0x337)]['asObservable']()),_(this,_0x3419d4(0x3e0),new _0x5b93d9([])),_(this,'roomMembers$',this[_0x3419d4(0x3e0)]['pipe'](_0xf53222(yi))),_(this,_0x3419d4(0x1f7),_0x5e38e7(_0x31de2e=>{const _0x3ac383=_0x3419d4,_0x116fcf={'eventID':_0xf8b602['UPDATE_CURSOR'],'data':{'unitID':this[_0x3ac383(0x1f4)],'memberID':this[_0x3ac383(0x263)][_0x3ac383(0x22d)](),'selection':$t(_0x31de2e)}};this['_session'][_0x3ac383(0x3e2)](_0x116fcf,this['unitID']);},$i)),(this[_0x3419d4(0x1f4)]=_0x109eec,this[_0x3419d4(0x263)]=_0x571039,this[_0x3419d4(0x265)]=_0x43e7b2,this[_0x3419d4(0x357)]=_0x33a68c,this[_0x3419d4(0x419)]=_0x4bc2fc,this['_syncEditingCollabCursorService']=_0xae55c2,this[_0x3419d4(0x304)]=_0x3e4a96,this['_univerInstanceService']=_0x572207,this[_0x3419d4(0x233)]=_0x16283b);}get[_0x137374(0x2fd)](){const _0x1f32f1=_0x137374;return this[_0x1f32f1(0x337)][_0x1f32f1(0x352)]();}get[_0x137374(0x2f8)](){const _0x5c98c1=_0x137374;return this['_roomMembers$'][_0x5c98c1(0x352)]();}['dispose'](){const _0x68c0fd=_0x137374;super['dispose'](),this[_0x68c0fd(0x337)]['next'](new Map()),this[_0x68c0fd(0x337)][_0x68c0fd(0x301)](),this[_0x68c0fd(0x3e0)][_0x68c0fd(0x28d)]([]),this[_0x68c0fd(0x3e0)][_0x68c0fd(0x301)]();}['init'](){const _0x3b43db=_0x137374;this['_init']||(this[_0x3b43db(0x1de)]=!0x0,this[_0x3b43db(0x263)][_0x3b43db(0x3de)][_0x3b43db(0x25f)](_0x1d8ed1(this[_0x3b43db(0x3c7)]))[_0x3b43db(0x305)](_0x5f1453=>{const _0x5d8803=_0x3b43db;_0x5f1453===_0x1147de[_0x5d8803(0x386)]?this[_0x5d8803(0x3d1)]():this['_toggleOffline']();}),this[_0x3b43db(0x263)][_0x3b43db(0x1e9)][_0x3b43db(0x25f)](_0x1d8ed1(this[_0x3b43db(0x3c7)]))[_0x3b43db(0x305)](_0x129ab=>{const _0x15346f=_0x3b43db,_0x3a1f92=_0x129ab[_0x15346f(0x239)];_0x3a1f92===_0xf8b602[_0x15346f(0x2cc)]&&this[_0x15346f(0x2cf)](_0x129ab),_0x3a1f92===_0xf8b602[_0x15346f(0x3fb)]&&this['_onCursorDelete'](_0x129ab);}),this[_0x3b43db(0x32c)](this[_0x3b43db(0x233)][_0x3b43db(0x23a)](_0x59578c=>{const _0x310cfc=_0x3b43db,_0x4650fa=_0x59578c['params'];_0x4650fa!=null&&this['_online']&&_0x59578c['id']===_0x33f8ea['id']&&_0x4650fa[_0x310cfc(0x207)]===this[_0x310cfc(0x1f4)]&&_0x4650fa[_0x310cfc(0x362)]===!0x1&&_0x4650fa['ranges'][_0x310cfc(0x327)]>0x0&&this['_updateLocalCursor'](_0x4650fa[_0x310cfc(0x227)]);})),this[_0x3b43db(0x211)]['collabCursorState$'][_0x3b43db(0x25f)](_0x1d8ed1(this['dispose$']))[_0x3b43db(0x305)](_0x44211c=>{const _0x26878c=_0x3b43db;if((_0x44211c==null?void 0x0:_0x44211c['unitID'])!==this['unitID'])return;const _0xf3e3f6={'eventID':_0xf8b602[_0x26878c(0x2cc)],'data':_0x44211c};this[_0x26878c(0x2cf)](_0xf3e3f6);}),this['disposeWithMe'](this[_0x3b43db(0x233)][_0x3b43db(0x23a)](_0x390e15=>{const _0x1c0b8e=_0x3b43db;if(_0x390e15[_0x1c0b8e(0x2c3)]==null)return;const _0x1f6488=_0x390e15[_0x1c0b8e(0x2c3)];if(_0x390e15['id']!==_0x26be09['id']||_0x1f6488[_0x1c0b8e(0x207)]!==this[_0x1c0b8e(0x1f4)])return;const _0x4d1236={'id':_0x1c0b8e(0x338),'params':_0x1f6488},_0x4db296=this['cursorInfo'];for(const [_0x456fdd,_0x3af459]of _0x4db296){const _0x21dfa1={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x1c0b8e(0x1f4)],'actions':null,'textRanges':_0x3af459[_0x1c0b8e(0x227)]}},_0x5dc4ac=this[_0x1c0b8e(0x304)]['transformMutation'](_0x4d1236,_0x21dfa1,!0x1);if(_0x5c3d1d(_0x5dc4ac))throw _0x5dc4ac[_0x1c0b8e(0x349)];_0x4db296[_0x1c0b8e(0x308)](_0x456fdd,{..._0x3af459,'ranges':_0x5dc4ac[_0x1c0b8e(0x20c)][_0x1c0b8e(0x2c3)]['textRanges']});}queueMicrotask(()=>{const _0x58e7d8=_0x1c0b8e;this[_0x58e7d8(0x337)]['next'](_0x4db296);});})));}[_0x137374(0x2cf)](_0x2638ee){const _0xc74b37=_0x137374;var _0x20787e,_0x5d43b8;const {memberID:_0x5594ed,selection:_0xfc113e}=_0x2638ee[_0xc74b37(0x286)],_0xf8eb3d=Ai(_0xfc113e),_0x1d0528=(_0x5d43b8=(_0x20787e=this['_memberService'][_0xc74b37(0x21d)](this[_0xc74b37(0x1f4)],_0x5594ed))==null?void 0x0:_0x20787e[_0xc74b37(0x1ff)])!=null?_0x5d43b8:_0xc74b37(0x274),_0x1577b7={'color':this[_0xc74b37(0x357)][_0xc74b37(0x350)](_0x5594ed),'name':_0x1d0528,'ranges':_0xf8eb3d},_0x14c677=this[_0xc74b37(0x2fd)];_0x14c677[_0xc74b37(0x308)](_0x5594ed,_0x1577b7),this[_0xc74b37(0x337)][_0xc74b37(0x28d)](_0x14c677);}['_onCursorDelete'](_0x4fad6a){const _0x1846a0=_0x137374,{memberID:_0x3ef1ed}=_0x4fad6a[_0x1846a0(0x286)],_0x56116a=this[_0x1846a0(0x2fd)];_0x56116a[_0x1846a0(0x2c2)](_0x3ef1ed),this['_cursorInfo$'][_0x1846a0(0x28d)](_0x56116a);}[_0x137374(0x3d1)](){const _0x5e0f92=_0x137374;var _0x4482cc;if(this['_online']=!0x0,((_0x4482cc=this[_0x5e0f92(0x366)][_0x5e0f92(0x3f8)]())==null?void 0x0:_0x4482cc[_0x5e0f92(0x254)]())!==this[_0x5e0f92(0x1f4)])return;const _0x563341=this['_injector']['get'](_0x46950a)[_0x5e0f92(0x369)]();Array[_0x5e0f92(0x3a7)](_0x563341)&&_0x563341['length']>0x0&&this[_0x5e0f92(0x1f7)](_0x563341);}[_0x137374(0x380)](){const _0xd39bb7=_0x137374;this[_0xd39bb7(0x2c0)]=!0x1;}};xe=wi([A(0x2,_0x23f7c2(_0x1173e2)),A(0x3,_0x23f7c2(Ke)),A(0x4,_0x23f7c2(_0x1e15f6)),A(0x5,_0x23f7c2(ze)),A(0x6,_0x44abdb),A(0x7,_0x14d7a9),A(0x8,_0x532ba9)],xe);var xi=Object[_0x137374(0x2cb)],Bi=(_0x453b71,_0x3c2fc3,_0x290936,_0x5599ec)=>{const _0x3e30a2=_0x137374;for(var _0x2dfa83=_0x5599ec>0x1?void 0x0:_0x5599ec?xi(_0x3c2fc3,_0x290936):_0x3c2fc3,_0x4fa144=_0x453b71[_0x3e30a2(0x327)]-0x1,_0x3681fc;_0x4fa144>=0x0;_0x4fa144--)(_0x3681fc=_0x453b71[_0x4fa144])&&(_0x2dfa83=_0x3681fc(_0x2dfa83)||_0x2dfa83);return _0x2dfa83;},B=(_0x595192,_0x148cbb)=>(_0x417696,_0x4b8c4e)=>_0x148cbb(_0x417696,_0x4b8c4e,_0x595192);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x4022d0=[],_0x429c56=!0x1;return _0x1d442e=>{_0x4022d0['push'](_0x1d442e),_0x429c56||(_0x429c56=!0x0,setTimeout(()=>{const _0x51974e=_0x3d3a;_0x4022d0[_0x51974e(0x343)](_0x43b9a1=>_0x43b9a1()),_0x4022d0=[],_0x429c56=!0x1;}));};};let Be=class extends _0xa32225{constructor(_0x5405d2,_0x1a81f5,_0x540566,_0x3e67c6,_0x122f73,_0x236757,_0x1f7cae,_0x103e89){const _0x1f6481=_0x137374;super(),_(this,_0x1f6481(0x2c0),!0x1),_(this,_0x1f6481(0x1de),!0x1),_(this,_0x1f6481(0x337),new _0x5b93d9(new Map())),_(this,_0x1f6481(0x2e0),this['_cursorInfo$']['asObservable']()),_(this,_0x1f6481(0x3e0),new _0x5b93d9([])),_(this,_0x1f6481(0x205),this[_0x1f6481(0x3e0)]['pipe'](_0xf53222(Fi))),_(this,_0x1f6481(0x1f7),_0x5e38e7((_0x2f3cd9,_0x360472)=>{const _0x54a846=_0x1f6481,_0x282170={'eventID':_0xf8b602[_0x54a846(0x2cc)],'data':{'unitID':this[_0x54a846(0x1f4)],'memberID':this['_session'][_0x54a846(0x22d)](),'selection':_0x2ef9fb(_0x2f3cd9,_0x360472['range'])}};this['_session'][_0x54a846(0x3e2)](_0x282170,this['unitID']);},ki)),(this[_0x1f6481(0x1f4)]=_0x5405d2,this[_0x1f6481(0x263)]=_0x1a81f5,this['_injector']=_0x540566,this[_0x1f6481(0x357)]=_0x3e67c6,this['_memberService']=_0x122f73,this[_0x1f6481(0x366)]=_0x236757,this[_0x1f6481(0x233)]=_0x1f7cae,this[_0x1f6481(0x413)]=_0x103e89);}get[_0x137374(0x2fd)](){const _0x234f4e=_0x137374;return this[_0x234f4e(0x337)]['getValue']();}get[_0x137374(0x2f8)](){const _0x497584=_0x137374;return this['_roomMembers$'][_0x497584(0x352)]();}[_0x137374(0x325)](){const _0x3e7204=_0x137374;super[_0x3e7204(0x325)](),this[_0x3e7204(0x337)][_0x3e7204(0x28d)](new Map()),this[_0x3e7204(0x337)][_0x3e7204(0x301)](),this['_roomMembers$'][_0x3e7204(0x28d)]([]),this['_roomMembers$'][_0x3e7204(0x301)]();}['init'](){const _0x3163dc=_0x137374;this[_0x3163dc(0x1de)]||(this[_0x3163dc(0x1de)]=!0x0,this[_0x3163dc(0x263)]['sessionStatus$']['pipe'](_0x1d8ed1(this[_0x3163dc(0x3c7)]))[_0x3163dc(0x305)](_0x92a1ac=>{const _0x576f23=_0x3163dc;_0x92a1ac===_0x1147de[_0x576f23(0x386)]?this[_0x576f23(0x3d1)]():this['_toggleOffline']();}),this[_0x3163dc(0x263)][_0x3163dc(0x1e9)]['pipe'](_0x1d8ed1(this['dispose$']))['subscribe'](_0x56a981=>{const _0x284835=_0x3163dc,_0x5eb8bc=_0x56a981['eventID'];_0x5eb8bc===_0xf8b602[_0x284835(0x2cc)]&&this[_0x284835(0x2cf)](_0x56a981),_0x5eb8bc===_0xf8b602[_0x284835(0x3fb)]&&this[_0x284835(0x241)](_0x56a981);}),this['_onRefRangeChange'](),this[_0x3163dc(0x32c)](this[_0x3163dc(0x233)][_0x3163dc(0x23a)](_0x1040eb=>{const _0xdf901c=_0x3163dc;if(this['_online']&&_0x1040eb['id']===_0x49f5b6['id']&&_0x1040eb[_0xdf901c(0x2c3)][_0xdf901c(0x207)]===this['unitID']){const _0x1b7870=_0x1040eb[_0xdf901c(0x2c3)];this[_0xdf901c(0x1f7)](_0x1b7870[_0xdf901c(0x32a)],_0x1b7870[_0xdf901c(0x2e2)][0x0]);}})));}[_0x137374(0x2cf)](_0x2c994e){const _0x507202=_0x137374;var _0x468da6,_0x581bbe;const {memberID:_0x3ff27a,selection:_0x4ad318}=_0x2c994e['data'],{sheetName:_0x3a81e3,range:_0x5cf037}=_0x13c820(_0x4ad318),_0x352950={'name':(_0x581bbe=(_0x468da6=this['_memberService'][_0x507202(0x21d)](this[_0x507202(0x1f4)],_0x3ff27a))==null?void 0x0:_0x468da6[_0x507202(0x1ff)])!=null?_0x581bbe:_0x507202(0x274),'range':this[_0x507202(0x3f0)](_0x3a81e3,_0x5cf037),'sheetID':_0x3a81e3,'color':this[_0x507202(0x357)]['assignAColorForMemberID'](_0x3ff27a),'selection':_0x4ad318},_0x42bd93=this[_0x507202(0x2fd)];_0x42bd93['set'](_0x3ff27a,_0x352950),this[_0x507202(0x337)]['next'](_0x42bd93);}[_0x137374(0x241)](_0x4773f9){const _0x197a65=_0x137374,{memberID:_0x54eae9}=_0x4773f9[_0x197a65(0x286)],_0x54aeb2=this['cursorInfo'];_0x54aeb2['delete'](_0x54eae9),this[_0x197a65(0x337)][_0x197a65(0x28d)](_0x54aeb2);}[_0x137374(0x3f0)](_0x2441bd,_0x16eea8){const _0x314d41=_0x137374;var _0xd30ee8,_0x431b5e;const _0x3d8e8e=(_0x431b5e=(_0xd30ee8=this['_univerInstanceService'][_0x314d41(0x31b)](this[_0x314d41(0x1f4)]))==null?void 0x0:_0xd30ee8['getSheetBySheetId'](_0x2441bd))==null?void 0x0:_0x431b5e[_0x314d41(0x2ce)]();return(_0x3d8e8e==null?void 0x0:_0x3d8e8e[_0x314d41(0x215)](_0x4d727b=>_0x510353['contains'](_0x4d727b,_0x16eea8)))||_0x16eea8;}['_onRefRangeChange'](){const _0x5a9a7d=_0x137374,_0x4ccdf4=new _0x21c388(),_0x123f75=Hi(),_0x1d40cb=()=>{const _0x4dd24b=_0x3d3a;_0x4ccdf4[_0x4dd24b(0x325)]();const _0x35b0c0=(_0x2f8b4f,_0x5a5b2e,_0x51d42a,_0x5b38ec)=>{const _0x48bf36=_0x4dd24b;let _0x1c7af3=[];switch(_0x2f8b4f['id']){case _0x495460[_0x48bf36(0x41f)]:{_0x1c7af3=_0x5d65ed(_0x2f8b4f,_0x5b38ec);break;}case _0x495460[_0x48bf36(0x2ca)]:{_0x1c7af3=_0x19e82f(_0x2f8b4f,_0x5b38ec);break;}case _0x495460['InsertColCommandId']:{_0x1c7af3=_0x310ac0(_0x2f8b4f,_0x5b38ec);break;}case _0x495460[_0x48bf36(0x2e1)]:{_0x1c7af3=_0x1aa2a3(_0x2f8b4f,_0x5b38ec);break;}case _0x495460[_0x48bf36(0x2ba)]:{_0x1c7af3=_0x4fea4e(_0x2f8b4f,_0x5b38ec);break;}case _0x495460[_0x48bf36(0x418)]:{_0x1c7af3=_0x2c24c2(_0x2f8b4f,_0x5b38ec);break;}case _0x495460[_0x48bf36(0x3f3)]:{_0x1c7af3=_0x43875b(_0x2f8b4f,_0x5b38ec);break;}case _0x495460['RemoveColCommandId']:{_0x1c7af3=_0x2e7529(_0x2f8b4f,_0x5b38ec);break;}case _0x495460[_0x48bf36(0x1f8)]:{_0x1c7af3=_0x429be3(_0x2f8b4f,_0x5b38ec);break;}}const _0x173ab5=_0x521ce3(_0x1c7af3,_0x5b38ec),_0x8ff000=this['cursorInfo']['get'](_0x5a5b2e);if(_0x8ff000&&_0x173ab5){const _0x2a6244={..._0x8ff000,'range':_0x173ab5};this[_0x48bf36(0x2fd)][_0x48bf36(0x308)](_0x5a5b2e,_0x2a6244),_0x123f75(()=>{const _0x5cd107=_0x48bf36,_0x2c8cc4=this[_0x5cd107(0x413)][_0x5cd107(0x3ee)](_0x173ab5,_0x3aaf5e=>(_0x2c8cc4[_0x5cd107(0x325)](),_0x35b0c0(_0x3aaf5e,_0x5a5b2e,_0x51d42a,_0x173ab5)));_0x4ccdf4[_0x5cd107(0x37d)](_0x2c8cc4);});}return{'redos':[],'undos':[]};};this['cursorInfo']['forEach']((_0x3792fa,_0x5ac070)=>{const _0x3af6a4=_0x4dd24b,{range:_0x325ff7,sheetID:_0x38527b}=_0x3792fa,_0x2be4d7=this[_0x3af6a4(0x413)][_0x3af6a4(0x3ee)](_0x325ff7,_0x125e58=>(_0x2be4d7['dispose'](),_0x35b0c0(_0x125e58,_0x5ac070,_0x38527b,_0x325ff7)));_0x4ccdf4[_0x3af6a4(0x37d)](_0x2be4d7);});};this[_0x5a9a7d(0x32c)](_0x10b382(this[_0x5a9a7d(0x337)][_0x5a9a7d(0x305)](()=>{_0x1d40cb();})));}[_0x137374(0x3d1)](){const _0x57cfd9=_0x137374;var _0x59eeac,_0x2deeb5;if(this['_online']=!0x0,((_0x59eeac=this[_0x57cfd9(0x366)][_0x57cfd9(0x3f8)]())==null?void 0x0:_0x59eeac[_0x57cfd9(0x254)]())!==this[_0x57cfd9(0x1f4)])return;const _0x1a8865=(_0x2deeb5=this[_0x57cfd9(0x265)]['get'](_0x552954)[_0x57cfd9(0x25a)]())==null?void 0x0:_0x2deeb5[0x0],_0x12f164=this[_0x57cfd9(0x366)][_0x57cfd9(0x41a)](_0x221888[_0x57cfd9(0x35c)])[_0x57cfd9(0x3d8)]();_0x1a8865&&_0x12f164&&this[_0x57cfd9(0x1f7)](_0x12f164[_0x57cfd9(0x2f3)](),_0x1a8865);}[_0x137374(0x380)](){this['_online']=!0x1;}};Be=Bi([B(0x2,_0x23f7c2(_0x1173e2)),B(0x3,_0x23f7c2(Ke)),B(0x4,_0x23f7c2(_0x1e15f6)),B(0x5,_0x14d7a9),B(0x6,_0x532ba9),B(0x7,_0x23f7c2(_0x46b6a8))],Be);var Yi=Object[_0x137374(0x2cb)],Wi=(_0x445820,_0x581360,_0x45be04,_0x3f9d09)=>{for(var _0x3b61c7=_0x3f9d09>0x1?void 0x0:_0x3f9d09?Yi(_0x581360,_0x45be04):_0x581360,_0x476ab8=_0x445820['length']-0x1,_0x5935ea;_0x476ab8>=0x0;_0x476ab8--)(_0x5935ea=_0x445820[_0x476ab8])&&(_0x3b61c7=_0x5935ea(_0x3b61c7)||_0x3b61c7);return _0x3b61c7;},Ce=(_0xa6124e,_0x50a775)=>(_0x1ba36b,_0x3a8167)=>_0x50a775(_0x1ba36b,_0x3a8167,_0xa6124e);let H=class extends _0xa32225{constructor(_0x189921,_0x86d38b,_0x9e72cb){const _0x1da4cc=_0x137374;super(),_(this,'_entities',new Map()),_(this,_0x1da4cc(0x3ab),new _0x24d9e4()),(this[_0x1da4cc(0x366)]=_0x189921,this[_0x1da4cc(0x265)]=_0x86d38b,this[_0x1da4cc(0x358)]=_0x9e72cb,this[_0x1da4cc(0x1de)]());}['dispose'](){const _0xb46bdc=_0x137374;super[_0xb46bdc(0x325)](),this[_0xb46bdc(0x3ab)][_0xb46bdc(0x301)](),this['_entities']['forEach'](_0x590447=>_0x590447[_0xb46bdc(0x325)]());}[_0x137374(0x27a)](_0x5177de){const _0x4336a0=_0x137374;return this[_0x4336a0(0x20b)][_0x4336a0(0x3ea)](_0x5177de)?this[_0x4336a0(0x20b)][_0x4336a0(0x34d)](_0x5177de)['cursorInfo$']:this['_entityInit$'][_0x4336a0(0x25f)](_0x2cee0a(_0x4bd2e0=>_0x4bd2e0['unitID']===_0x5177de),_0x5cbe42(_0x598060=>_0x598060[_0x4336a0(0x2e0)]));}[_0x137374(0x1de)](){const _0x16a4ec=_0x137374;this[_0x16a4ec(0x366)][_0x16a4ec(0x379)](_0x221888['UNIVER_SHEET'])[_0x16a4ec(0x25f)](_0x1d8ed1(this[_0x16a4ec(0x3c7)]))[_0x16a4ec(0x305)](async _0xf36bf5=>{const _0x3c1c59=_0x16a4ec,_0x2ac614=_0xf36bf5['getUnitId'](),_0xf9b7df=await this[_0x3c1c59(0x282)](_0x2ac614);this[_0x3c1c59(0x3ab)]['next'](_0xf9b7df),this[_0x3c1c59(0x20b)][_0x3c1c59(0x308)](_0x2ac614,_0xf9b7df);}),this[_0x16a4ec(0x366)][_0x16a4ec(0x379)](_0x221888[_0x16a4ec(0x2f2)])[_0x16a4ec(0x25f)](_0x1d8ed1(this['dispose$']))[_0x16a4ec(0x25f)](_0x2cee0a(_0x24641d=>!_0x24641d[_0x16a4ec(0x254)]()[_0x16a4ec(0x3ef)]('__')))[_0x16a4ec(0x305)](async _0x4d38b6=>{const _0x327f36=_0x16a4ec,_0x3642e2=_0x4d38b6['getUnitId'](),_0x3bc39e=await this['_startDocCollabCursor'](_0x3642e2);this['_entityInit$'][_0x327f36(0x28d)](_0x3bc39e),this[_0x327f36(0x20b)]['set'](_0x3642e2,_0x3bc39e);}),_0x2fab56(this[_0x16a4ec(0x366)][_0x16a4ec(0x2aa)](_0x221888[_0x16a4ec(0x2f2)]),this[_0x16a4ec(0x366)][_0x16a4ec(0x2aa)](_0x221888[_0x16a4ec(0x35c)]))[_0x16a4ec(0x25f)](_0x1d8ed1(this['dispose$']))[_0x16a4ec(0x305)](_0x196217=>{const _0x48dd9a=_0x16a4ec,_0x3d3671=_0x196217[_0x48dd9a(0x254)](),_0x62216b=this[_0x48dd9a(0x20b)]['get'](_0x3d3671);_0x62216b&&(_0x62216b[_0x48dd9a(0x325)](),this[_0x48dd9a(0x20b)]['delete'](_0x3d3671));});}async['_startSheetCollabCursor'](_0x3e9e78){const _0x3b927c=_0x137374,_0x4ea4bc=await this[_0x3b927c(0x358)][_0x3b927c(0x277)](_0x3e9e78),_0x107387=this[_0x3b927c(0x265)]['createInstance'](Be,_0x3e9e78,_0x4ea4bc);return _0x107387['init'](),_0x107387;}async[_0x137374(0x346)](_0x350b26){const _0x216bb6=_0x137374,_0x2bf9db=await this[_0x216bb6(0x358)]['requireSession'](_0x350b26),_0x535761=this[_0x216bb6(0x265)][_0x216bb6(0x3a3)](xe,_0x350b26,_0x2bf9db);return _0x535761['init'](),_0x535761;}};H=Wi([Ce(0x0,_0x14d7a9),Ce(0x1,_0x23f7c2(_0x1173e2)),Ce(0x2,_0x23f7c2(_0x66bad9))],H);const Q=0x14,at=0xc8,Re=0x4,Vi=0x5;function ji(_0x11e71a,_0x18f707){const _0x322c08=_0x137374;let {radius:_0x553156,width:_0x2a483e,height:_0x393873}=_0x18f707;_0x553156=_0x553156!=null?_0x553156:0x0,_0x2a483e=_0x2a483e!=null?_0x2a483e:0x1e,_0x393873=_0x393873!=null?_0x393873:0x1e;let _0xa81492=0x0,_0x5b61b3=0x0,_0x13901d=0x0;_0xa81492=_0x5b61b3=_0x13901d=Math[_0x322c08(0x407)](_0x553156,_0x2a483e/0x2,_0x393873/0x2),_0x11e71a['beginPath'](),_0x11e71a[_0x322c08(0x3c3)](_0xa81492,0x0),_0x11e71a['lineTo'](_0x2a483e-_0x5b61b3,0x0),_0x11e71a[_0x322c08(0x39f)](_0x2a483e-_0x5b61b3,_0x5b61b3,_0x5b61b3,Math['PI']*0x3/0x2,0x0,!0x1),_0x11e71a[_0x322c08(0x20a)](_0x2a483e,_0x393873-_0x13901d),_0x11e71a[_0x322c08(0x39f)](_0x2a483e-_0x13901d,_0x393873-_0x13901d,_0x13901d,0x0,Math['PI']/0x2,!0x1),_0x11e71a[_0x322c08(0x20a)](0x0,_0x393873),_0x11e71a[_0x322c08(0x20a)](0x0,_0xa81492),_0x11e71a[_0x322c08(0x39f)](_0xa81492,_0xa81492,_0xa81492,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x11e71a[_0x322c08(0x40d)](),_0x18f707['fill']&&(_0x11e71a[_0x322c08(0x264)](),_0x11e71a[_0x322c08(0x22f)]=_0x18f707[_0x322c08(0x2c1)],_0x18f707['fillRule']===_0x322c08(0x361)?_0x11e71a['fill']('evenodd'):_0x11e71a[_0x322c08(0x2c1)](),_0x11e71a[_0x322c08(0x39a)]());}class ve extends _0x24350b{constructor(_0x5c3d2c,_0x810e4b){const _0x8507fd=_0x137374;super(_0x5c3d2c,_0x810e4b),_(this,_0x8507fd(0x26f)),_(this,_0x8507fd(0x3a9)),(this[_0x8507fd(0x26f)]=_0x810e4b==null?void 0x0:_0x810e4b['color'],this[_0x8507fd(0x3a9)]=_0x810e4b==null?void 0x0:_0x810e4b[_0x8507fd(0x3a9)]);}static[_0x137374(0x1ea)](_0x33d1cc,_0x2e8abe){const _0x523a51=_0x137374,{text:_0x38beea,color:_0x428a22}=_0x2e8abe;_0x33d1cc[_0x523a51(0x264)](),_0x33d1cc['font']=_0x523a51(0x21f);const _0x404099=_0x33d1cc['measureText'](_0x38beea)[_0x523a51(0x385)],_0x396269=Math['min'](_0x404099+0x2*Re,at);ji(_0x33d1cc,{'height':Q,'radius':0x4,'width':_0x396269,'fill':_0x428a22}),_0x33d1cc[_0x523a51(0x22f)]='#FFF';const _0x102a95=Re,_0x44e0dc=Q-Vi,_0x30943e=at-0x2*Re;if(_0x404099>_0x30943e){let _0x4ce1a6='',_0x4e145d=0x0;for(const _0x3626ea of _0x38beea){const _0x242199=_0x33d1cc[_0x523a51(0x2de)](_0x3626ea)[_0x523a51(0x385)];if(_0x4e145d+_0x242199<=_0x30943e-_0x33d1cc[_0x523a51(0x2de)](_0x523a51(0x36f))[_0x523a51(0x385)])_0x4ce1a6+=_0x3626ea,_0x4e145d+=_0x242199;else{_0x4ce1a6+=_0x523a51(0x36f);break;}}_0x33d1cc[_0x523a51(0x23c)](_0x4ce1a6,_0x102a95,_0x44e0dc);}else _0x33d1cc['fillText'](_0x38beea,_0x102a95,_0x44e0dc);_0x33d1cc[_0x523a51(0x39a)]();}[_0x137374(0x1f1)](_0x35e3cb){ve['drawWith'](_0x35e3cb,this);}}const De=_0x137374(0x31c),Xi='collab-text-range-',Gi=_0x137374(0x37a),z=0x6,Ki=1.5,Ne=0x4,zi=1.5,Ji='rgba(255,\x20255,\x20255,\x200.01)';class ct{constructor(_0x50f398,_0x23db4e,_0xcbb04c,_0x5d4538){const _0x3fff3c=_0x137374;_(this,_0x3fff3c(0x270),[]),_(this,_0x3fff3c(0x281),null),_(this,'_textBubble',null),_(this,_0x3fff3c(0x3e3),null),_(this,_0x3fff3c(0x2bb),null),_(this,_0x3fff3c(0x2b0),null),(this[_0x3fff3c(0x38d)]=_0x50f398,this[_0x3fff3c(0x37f)]=_0x23db4e,this['_docSkeleton']=_0xcbb04c,this[_0x3fff3c(0x345)]=_0x5d4538,this[_0x3fff3c(0x330)]());}set[_0x137374(0x2f6)](_0x534d31){const _0x12f2eb=_0x137374;_0x534d31?(this['_anchorDot']&&this[_0x12f2eb(0x3e3)][_0x12f2eb(0x3ec)](),this[_0x12f2eb(0x23e)]&&this[_0x12f2eb(0x23e)]['show']()):(this[_0x12f2eb(0x3e3)]&&this[_0x12f2eb(0x3e3)][_0x12f2eb(0x342)](),this['_textBubble']&&this[_0x12f2eb(0x23e)][_0x12f2eb(0x3ec)]());}[_0x137374(0x325)](){const _0x196716=_0x137374;for(const _0x2ef33d of this[_0x196716(0x270)])_0x2ef33d['dispose']();this[_0x196716(0x23e)]&&this['_textBubble'][_0x196716(0x325)](),this[_0x196716(0x3e3)]&&this[_0x196716(0x3e3)][_0x196716(0x325)](),this[_0x196716(0x281)]&&this[_0x196716(0x281)][_0x196716(0x325)](),this['_eventUnsubscribe']&&this[_0x196716(0x2b0)]();}['_render'](){const _0xd2605d=_0x137374;var _0x50ca26;const {_docSkeleton:_0x1b228c,_document:_0x539840}=this,{color:_0x57e381,name:_0x1cc3af,ranges:_0x1606db}=this[_0xd2605d(0x38d)],_0x4ed0e2=_0x539840[_0xd2605d(0x38f)](),{docsLeft:_0x2c548f,docsTop:_0x3c6d80}=_0x4ed0e2,_0x285ccc=new _0x118499(_0x4ed0e2,_0x1b228c);for(const {startOffset:_0x1d3794,endOffset:_0x3b7a08,rangeType:_0x2dcbd1,segmentId:_0x12e9f6,segmentPage:_0x139682,collapsed:_0x7e0f3d,isActive:_0x301b19}of _0x1606db){const _0x35bf0b=_0x1b228c[_0xd2605d(0x1e5)](_0x1d3794,!0x0,_0x12e9f6,_0x139682);let _0x86d053=_0x1b228c[_0xd2605d(0x1e5)](_0x3b7a08,!0x0,_0x12e9f6,_0x139682);if(_0x86d053==null&&(_0x86d053=_0x1b228c['findNodePositionByCharIndex'](_0x3b7a08-0x1,!0x1,_0x12e9f6,_0x139682)),_0x301b19){const {contentBoxPointGroup:_0x400027}=_0x285ccc[_0xd2605d(0x1ec)](_0x86d053,_0x86d053);if(_0x400027[_0xd2605d(0x327)]===0x0)continue;this[_0xd2605d(0x408)](_0x57e381,_0x400027,_0x2c548f,_0x3c6d80,_0x1cc3af),this['_eventUnsubscribe']=this['_handleHover']();}if(_0x35bf0b&&_0x86d053){if(_0x2dcbd1===_0x5e55c6[_0xd2605d(0x256)]){const _0x30d367=new _0x5c33ef(_0x4ed0e2,_0x1b228c),{pointGroup:_0x20f825}=(_0x50ca26=_0x30d367['getRangePointData'](_0x35bf0b,_0x86d053))!=null?_0x50ca26:{};if(_0x20f825==null||_0x20f825[_0xd2605d(0x327)]===0x0)continue;this[_0xd2605d(0x3d2)](_0x57e381,_0x20f825,_0x2c548f,_0x3c6d80);}else{if(!_0x7e0f3d){const {borderBoxPointGroup:_0xc2585a}=_0x285ccc['getRangePointData'](_0x35bf0b,_0x86d053);if(_0xc2585a[_0xd2605d(0x327)]===0x0)continue;this['_drawTextRange'](_0x57e381,_0xc2585a,_0x2c548f,_0x3c6d80);}}}}}[_0x137374(0x408)](_0x29e2d7,_0x3c5a3c,_0x4dbbfe,_0x1e71dc,_0x5954ed){const _0xcd1434=_0x137374,_0x28fce1=this['_getAnchorBounding'](_0x3c5a3c),{left:_0x56154e,top:_0x1b0e68,height:_0x5dbe96}=_0x28fce1,_0x15c336=this[_0xcd1434(0x2e9)](),_0x2b8388=zi/_0x15c336,_0x1e1ed2=new _0x43325f(De+_0x1a0884(z),{'left':_0x56154e+_0x4dbbfe-_0x2b8388,'top':_0x1b0e68+_0x1e71dc,'height':_0x5dbe96,'width':Ki,'fill':_0x29e2d7||_0x252682(_0x456502['black'],0x0),'strokeWidth':_0x2b8388,'stroke':Ji,'evented':!0x0});this[_0xcd1434(0x281)]=_0x1e1ed2,this[_0xcd1434(0x37f)][_0xcd1434(0x24e)](_0x1e1ed2,_0x2afac1);const _0x202ef2=new _0x43325f(De+_0x1a0884(z),{'left':_0x56154e+_0x4dbbfe-_0x2b8388,'top':_0x1b0e68+_0x1e71dc-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x29e2d7||_0x252682(_0x456502['black'],0x0),'strokeWidth':0x0,'stroke':_0x29e2d7||_0x252682(_0x456502[_0xcd1434(0x28b)],0x0),'evented':!0x1});this[_0xcd1434(0x3e3)]=_0x202ef2,this['_scene'][_0xcd1434(0x24e)](_0x202ef2,_0x2afac1);const _0x279b60=new ve(De+_0x1a0884(z),{'left':_0x56154e+_0x4dbbfe-_0x2b8388,'top':_0x1b0e68+_0x1e71dc-Q,'text':_0x5954ed,'color':_0x29e2d7});this[_0xcd1434(0x23e)]=_0x279b60,this[_0xcd1434(0x37f)][_0xcd1434(0x24e)](_0x279b60,_0x2afac1),this[_0xcd1434(0x2f6)]=!0x1;}['_handleHover'](){const _0x34f7c8=_0x137374,_0x1419f8=this[_0x34f7c8(0x281)][_0x34f7c8(0x260)]['subscribeEvent'](()=>{this['_hover']=!0x0;}),_0x268608=this['_anchor'][_0x34f7c8(0x230)][_0x34f7c8(0x374)](()=>{const _0x2d09d4=_0x34f7c8;this['_hideTimer']&&clearTimeout(this[_0x2d09d4(0x2bb)]),this[_0x2d09d4(0x2bb)]=setTimeout(()=>{const _0x6d0897=_0x2d09d4;this[_0x6d0897(0x2f6)]=!0x1;},0x7d0);});return()=>{const _0x4f0382=_0x34f7c8;_0x1419f8[_0x4f0382(0x2ed)](),_0x268608[_0x4f0382(0x2ed)]();};}[_0x137374(0x201)](_0x23cc0b,_0x1cb6d4,_0x494ba3,_0x265a32){const _0xff4c3=_0x137374,_0x450ca7=new _0x2a7785(_0x23cc0b)[_0xff4c3(0x344)](0.2)[_0xff4c3(0x249)](),_0x10891b=new _0x4db73d(Xi+_0x1a0884(z),{'pointsGroup':_0x1cb6d4,'fill':_0x450ca7||_0x252682(_0x456502[_0xff4c3(0x28b)],0.2),'left':_0x494ba3,'top':_0x265a32,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xff4c3(0x270)][_0xff4c3(0x378)](_0x10891b),this[_0xff4c3(0x37f)][_0xff4c3(0x24e)](_0x10891b,_0x2afac1);}['_drawRectRange'](_0x2bfb7c,_0x3fb00d,_0x19f3be,_0x2f34a3){const _0x11ccfe=_0x137374,_0x3ab4cc=new _0x2a7785(_0x2bfb7c)[_0x11ccfe(0x344)](0.2)['toRgbString'](),_0x34df01=new _0x4db73d(Gi+_0x1a0884(z),{'pointsGroup':_0x3fb00d,'fill':_0x3ab4cc||_0x252682(_0x456502['black'],0.2),'left':_0x19f3be,'top':_0x2f34a3,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x11ccfe(0x270)][_0x11ccfe(0x378)](_0x34df01),this[_0x11ccfe(0x37f)][_0x11ccfe(0x24e)](_0x34df01,_0x2afac1);}[_0x137374(0x2e7)](_0x3e14e7){const _0x32e862=_0x3e14e7[0x0],_0x5f13bf=_0x32e862[0x0],_0x3ad688=_0x32e862[0x2],{x:_0x61e71d,y:_0x4cbd7d}=_0x5f13bf,{x:_0xe1b587,y:_0x784548}=_0x3ad688;return{'left':_0x61e71d,'top':_0x4cbd7d,'width':_0xe1b587-_0x61e71d,'height':_0x784548-_0x4cbd7d};}['_getScale'](){const _0x221531=_0x137374,{scaleX:_0x49a5ec,scaleY:_0x2089b2}=this[_0x221531(0x37f)]['getAncestorScale']();return Math['max'](_0x49a5ec,_0x2089b2);}}var Zi=Object[_0x137374(0x2cb)],Qi=(_0x57fef0,_0x2bb2b8,_0x1d171a,_0x3e03f0)=>{const _0x28d50d=_0x137374;for(var _0x3d275e=_0x3e03f0>0x1?void 0x0:_0x3e03f0?Zi(_0x2bb2b8,_0x1d171a):_0x2bb2b8,_0x5350f4=_0x57fef0[_0x28d50d(0x327)]-0x1,_0x3dfd14;_0x5350f4>=0x0;_0x5350f4--)(_0x3dfd14=_0x57fef0[_0x5350f4])&&(_0x3d275e=_0x3dfd14(_0x3d275e)||_0x3d275e);return _0x3d275e;},ie=(_0x19bed6,_0x5334f8)=>(_0x1a7825,_0x4d7d0d)=>_0x5334f8(_0x1a7825,_0x4d7d0d,_0x19bed6);let Fe=class extends _0xa32225{constructor(_0x4eaa6b,_0x170749,_0x217325,_0x12f013,_0x267e48){const _0x38ba0b=_0x137374;super(),_(this,_0x38ba0b(0x27d),[]),_(this,_0x38ba0b(0x3c1),[]),(this[_0x38ba0b(0x229)]=_0x4eaa6b,this['_docSkeletonManagerService']=_0x170749,this[_0x38ba0b(0x285)]=_0x217325,this[_0x38ba0b(0x233)]=_0x12f013,this['_themeService']=_0x267e48,this[_0x38ba0b(0x1de)]());}[_0x137374(0x1de)](){const _0x2c1e62=_0x137374,_0x39b0fe=this[_0x2c1e62(0x229)][_0x2c1e62(0x207)],_0x416e9e=this[_0x2c1e62(0x217)];this[_0x2c1e62(0x32c)](_0x5129a0([this[_0x2c1e62(0x285)]['getCollabCursors$'](_0x39b0fe),this[_0x2c1e62(0x410)][_0x2c1e62(0x1ee)]])[_0x2c1e62(0x25f)](_0x37ca5f(([_0x37c556,_0x1d5a3d])=>({'skeleton':_0x416e9e[_0x2c1e62(0x37e)](),'cursors':[..._0x37c556[_0x2c1e62(0x364)]()][_0x2c1e62(0x2cd)](_0x1c69b7=>({..._0x1c69b7,'color':this['_themeService']['getColorFromTheme'](_0x1c69b7['color'])}))})))['subscribe'](_0x1afc7b=>{const _0xbe0061=_0x2c1e62;if(this[_0xbe0061(0x295)](),_0x1afc7b){const {skeleton:_0x4b1401,cursors:_0x29a1ac}=_0x1afc7b;this[_0xbe0061(0x302)](_0x4b1401,_0x29a1ac);}})),this[_0x2c1e62(0x2d1)](),this['_initCommandExecutedListener']();}['_updateCollabCursors'](_0x462147,_0x4edc2f){const _0x3b4d7e=_0x137374,{scene:_0xb37a12,mainComponent:_0x5eb0da}=this[_0x3b4d7e(0x229)],_0x279703=_0x4edc2f[_0x3b4d7e(0x384)](_0x17d4bc=>new ct(_0x17d4bc,_0xb37a12,_0x462147,_0x5eb0da));this[_0x3b4d7e(0x27d)]=_0x279703,this['_cursors']=_0x4edc2f;}[_0x137374(0x1e1)](){const _0x2cfc4e=_0x137374;this[_0x2cfc4e(0x295)]();const {scene:_0xa45920,mainComponent:_0x55028b}=this['_context'],_0x327df6=this[_0x2cfc4e(0x217)][_0x2cfc4e(0x37e)](),_0x1d064b=this[_0x2cfc4e(0x3c1)][_0x2cfc4e(0x384)](_0x1682ee=>new ct(_0x1682ee,_0xa45920,_0x327df6,_0x55028b));this['_cursorShapes']=_0x1d064b;}['_removeCollabCursors'](){const _0x18b337=_0x137374;this[_0x18b337(0x27d)]['forEach'](_0x2b4593=>_0x2b4593[_0x18b337(0x325)]()),this[_0x18b337(0x27d)]=[];}[_0x137374(0x314)](){const _0xe8aeb7=_0x137374,_0x6f8777=[_0xe0676e['id']];this[_0xe8aeb7(0x32c)](this[_0xe8aeb7(0x233)][_0xe8aeb7(0x23a)](_0x36a17a=>{const _0x409d89=_0xe8aeb7;_0x6f8777[_0x409d89(0x2ab)](_0x36a17a['id'])&&_0x36a17a['params'][_0x409d89(0x207)]===this[_0x409d89(0x229)]['unitId']&&this[_0x409d89(0x1e1)]();}));}[_0x137374(0x2d1)](){const _0x440d70=_0x137374;this[_0x440d70(0x32c)](_0x5e75e5(this['_context']['engine'][_0x440d70(0x359)])['pipe'](_0x58385a(_0x52bde6=>_0x52bde6['type']===_0x33a8b4[_0x440d70(0x332)]),_0x12f0f6(0x10))[_0x440d70(0x305)](()=>{const _0x4040f0=_0x440d70;this[_0x4040f0(0x1e1)]();}));}};Fe=Qi([ie(0x1,_0x23f7c2(_0x281b9b)),ie(0x2,_0x23f7c2(H)),ie(0x3,_0x532ba9),ie(0x4,_0x23f7c2(_0x27efaf))],Fe);const qi=0x1,en=1.5;class tn extends _0x24350b{constructor(_0x21a0c9,_0x32dd0d){const _0x2d6788=_0x137374;super(_0x21a0c9,_0x32dd0d),_(this,'_color'),_(this,_0x2d6788(0x399),!0x1),_(this,'_range'),_(this,_0x2d6788(0x28e),''),_(this,_0x2d6788(0x237),_0x2d6788(0x3d5)),_(this,_0x2d6788(0x23d)),(_0x32dd0d&&this[_0x2d6788(0x406)](_0x32dd0d),this[_0x2d6788(0x260)][_0x2d6788(0x374)](()=>this[_0x2d6788(0x406)]({'hovered':!0x0})),this[_0x2d6788(0x230)]['subscribeEvent'](()=>this[_0x2d6788(0x406)]({'hovered':!0x1})));}['setShapeProps'](_0x3b6259){const _0x132e85=_0x137374;var _0x3aa1e6,_0x440345,_0x1dc848,_0x7f912,_0x564eac,_0x4b9245;this[_0x132e85(0x3ae)]=(_0x3aa1e6=_0x3b6259[_0x132e85(0x26f)])!=null?_0x3aa1e6:this[_0x132e85(0x3ae)],this[_0x132e85(0x399)]=(_0x440345=_0x3b6259[_0x132e85(0x3ac)])!=null?_0x440345:this[_0x132e85(0x399)],this[_0x132e85(0x3bd)]=(_0x1dc848=_0x3b6259['range'])!=null?_0x1dc848:this['_range'],this[_0x132e85(0x28e)]=(_0x7f912=_0x3b6259[_0x132e85(0x1ff)])!=null?_0x7f912:this[_0x132e85(0x28e)],this[_0x132e85(0x237)]=(_0x564eac=_0x3b6259[_0x132e85(0x1e7)])!=null?_0x564eac:this['_labelPosition'],this[_0x132e85(0x23d)]=(_0x4b9245=_0x3b6259[_0x132e85(0x30e)])!=null?_0x4b9245:this['_backgroundColor'],this[_0x132e85(0x300)]({'width':_0x3b6259[_0x132e85(0x385)],'height':_0x3b6259[_0x132e85(0x20f)]});}[_0x137374(0x2f1)](_0x463825){const _0x586a1b=_0x137374,{row:_0x1548b5,column:_0xcd11ad}=_0x463825;if(_0x1548b5>=this[_0x586a1b(0x3bd)][_0x586a1b(0x326)]&&_0x1548b5<=this[_0x586a1b(0x3bd)][_0x586a1b(0x375)]&&_0xcd11ad>=this[_0x586a1b(0x3bd)][_0x586a1b(0x234)]&&_0xcd11ad<=this['_range'][_0x586a1b(0x21b)]){this[_0x586a1b(0x406)]({'hovered':!0x0});return;}this[_0x586a1b(0x406)]({'hovered':!0x1});}['triggerDblclick'](_0x4ed09b){return!0x1;}[_0x137374(0x1f1)](_0x19e3b1){const _0x49e196=_0x137374;_0x43325f[_0x49e196(0x1ea)](_0x19e3b1,{'width':this[_0x49e196(0x385)],'height':this['height'],'strokeWidth':en,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x49e196(0x23d)]}),this[_0x49e196(0x399)]&&(_0x19e3b1[_0x49e196(0x264)](),_0x19e3b1[_0x49e196(0x2d8)](0x1,0x0,0x0,0x1,this[_0x49e196(0x385)],this['_labelPosition']===_0x49e196(0x231)?0x0:-Q),ve[_0x49e196(0x1ea)](_0x19e3b1,{'text':this[_0x49e196(0x28e)],'color':this[_0x49e196(0x3ae)]}),_0x19e3b1[_0x49e196(0x39a)]());}}var sn=Object['getOwnPropertyDescriptor'],nn=(_0x1020cf,_0x30c2b9,_0x88e1d0,_0x3a7a1a)=>{const _0xc994ab=_0x137374;for(var _0x2c3fd9=_0x3a7a1a>0x1?void 0x0:_0x3a7a1a?sn(_0x30c2b9,_0x88e1d0):_0x30c2b9,_0x2ea332=_0x1020cf[_0xc994ab(0x327)]-0x1,_0x2e2903;_0x2ea332>=0x0;_0x2ea332--)(_0x2e2903=_0x1020cf[_0x2ea332])&&(_0x2c3fd9=_0x2e2903(_0x2c3fd9)||_0x2c3fd9);return _0x2c3fd9;},be=(_0xc4b9a3,_0x486778)=>(_0x3fde90,_0x1e5621)=>_0x486778(_0x3fde90,_0x1e5621,_0xc4b9a3);const rn=0x1389;let ke=class extends _0xa32225{constructor(_0x4c8415,_0x4db5b1,_0x39637d,_0x3c7383){const _0x56fcc1=_0x137374;super(),_(this,_0x56fcc1(0x3c1),new Set()),_(this,'_lastPointer',null),(this['_context']=_0x4c8415,this[_0x56fcc1(0x3e5)]=_0x4db5b1,this['_collabCursorController']=_0x39637d,this['_themeService']=_0x3c7383,this['_init']());}[_0x137374(0x1de)](){const _0x52bc66=_0x137374;this[_0x52bc66(0x3e5)][_0x52bc66(0x390)][_0x52bc66(0x25f)](_0x17f684(this['dispose$']),_0x44a498(_0xf146a4=>{const _0x38db39=_0x52bc66;if(_0xf146a4){const _0x111245=_0xf146a4[_0x38db39(0x258)];return _0x5129a0(this[_0x38db39(0x285)][_0x38db39(0x27a)](this['_context'][_0x38db39(0x207)]),this['_themeService'][_0x38db39(0x1ee)])[_0x38db39(0x25f)](_0x37ca5f(([_0x4b544c,_0x3c627d])=>{const _0x15d5fd=_0x38db39,_0x41f4c3=new Map();return _0x4b544c[_0x15d5fd(0x343)]((_0xfe3c4,_0x5efe39)=>{const _0x752d4=_0x15d5fd;if(_0xfe3c4[_0x752d4(0x331)]===_0x111245){const _0x204175={..._0xfe3c4};_0x204175[_0x752d4(0x26f)]=this['_themeService'][_0x752d4(0x20d)](_0xfe3c4[_0x752d4(0x26f)]),_0x41f4c3['set'](_0x5efe39,_0x204175);}}),{'skeleton':_0xf146a4,'cursors':_0x41f4c3};}));}return _0x3f9e73({'skeleton':null,'cursors':new Map()});}))[_0x52bc66(0x305)](({skeleton:_0xeef647,cursors:_0x9c539f})=>{const _0x51d3d9=_0x52bc66;this['_removeCollabCursors'](),_0xeef647&&this[_0x51d3d9(0x302)](_0xeef647,_0x9c539f);}),this[_0x52bc66(0x3e5)][_0x52bc66(0x390)][_0x52bc66(0x305)](_0x1ce73=>{const _0x53868f=_0x52bc66;if(_0x1ce73==null)return;const {skeleton:_0x5ad136}=_0x1ce73,{scene:_0xb6fb6c}=this[_0x53868f(0x229)];_0xb6fb6c[_0x53868f(0x3c9)]['subscribeEvent'](_0x5e38e7(_0x208b5a=>{const _0x229c05=_0x53868f;var _0x2049f8,_0x12e08b;const {offsetX:_0x5bb66b,offsetY:_0x3167d5}=_0x208b5a,{x:_0x4052fb,y:_0x1e13fd}=_0xb6fb6c[_0x229c05(0x2e8)](_0x81a68f['FromArray']([_0x5bb66b,_0x3167d5])),{scaleX:_0xd017f0,scaleY:_0x1e60db}=_0xb6fb6c[_0x229c05(0x3ce)](),_0x41e876=_0xb6fb6c[_0x229c05(0x26c)](_0x10210d[_0x229c05(0x22e)]),_0x4c9d7e=_0xb6fb6c[_0x229c05(0x291)](_0x81a68f['FromArray']([_0x4052fb,_0x1e13fd]),_0x41e876),_0x486de8=_0x5ad136['getCellPositionByOffset'](_0x5bb66b,_0x3167d5,_0xd017f0,_0x1e60db,_0x4c9d7e);((_0x2049f8=this['_lastPointer'])==null?void 0x0:_0x2049f8[_0x229c05(0x2d5)])===_0x486de8[_0x229c05(0x2d5)]&&((_0x12e08b=this[_0x229c05(0x297)])==null?void 0x0:_0x12e08b[_0x229c05(0x311)])===_0x486de8[_0x229c05(0x311)]||this['_cursors'][_0x229c05(0x343)](_0x205d96=>{const _0x3d3012=_0x229c05;_0x205d96[_0x3d3012(0x2f1)](_0x486de8);});},0x64));});}[_0x137374(0x302)](_0xa6eeb,_0x493463){const _0x350327=_0x137374;var _0x310c00;const _0x8e114c=(_0x310c00=this['_sheetSkeletonManagerService'][_0x350327(0x34e)]())==null?void 0x0:_0x310c00['skeleton'];if(!_0x8e114c)return;const _0x3ffd78=this['_getSheetObject']();if(!_0x3ffd78)return;this['_cursors']['forEach'](_0x514333=>{const _0x4ebeed=_0x350327;_0x514333[_0x4ebeed(0x2f9)]();});const {scene:_0x4e4d85}=_0x3ffd78,_0x5a25c2=on(Array[_0x350327(0x377)](_0x493463['values']()))[_0x350327(0x384)](_0x40deaf=>{const _0x1c1f08=_0x350327,{color:_0x214516,range:_0x19f611,name:_0x4bc644,selection:_0x2ef19e,sheetID:_0xad9d6c}=_0x40deaf,{startColumn:_0x2c8630,startRow:_0x2faf08,endColumn:_0x1b6533,endRow:_0xeec2db}=_0x19f611,_0x5c07dc=_0x4a882f(_0x2faf08,_0x2c8630,_0x4e4d85,_0x8e114c),_0xabd522=_0x4a882f(_0xeec2db,_0x1b6533,_0x4e4d85,_0x8e114c),{columnHeaderHeightAndMarginTop:_0x259f4e}=_0x8e114c,{startX:_0x54a279,startY:_0x55cf95}=_0x5c07dc,{endX:_0x1a2e3f,endY:_0x58d2e5}=_0xabd522,_0x5e6c84=_0x1a2e3f-_0x54a279,_0x295dc5=_0x58d2e5-_0x55cf95,_0x426ce5={'labelPosition':_0x55cf95-_0x259f4e>=Q?_0x1c1f08(0x3d5):'bottom','sheetID':_0xad9d6c,'range':_0x19f611,'color':_0x214516,'name':_0x4bc644,'selection':_0x2ef19e,'left':_0x54a279,'top':_0x55cf95,'width':_0x5e6c84,'height':_0x295dc5,'evented':!0x1,'zIndex':rn};return new tn(_0x4bc644,_0x426ce5);});_0x4e4d85[_0x350327(0x412)](_0x5a25c2,qi),this['_cursors']=new Set(_0x5a25c2);}[_0x137374(0x295)](){const _0x41db56=_0x137374;var _0x2379aa;(_0x2379aa=this[_0x41db56(0x3c1)])==null||_0x2379aa['forEach'](_0xedaec6=>_0xedaec6[_0x41db56(0x325)]());}[_0x137374(0x3e8)](){const _0x33530=_0x137374;return _0x4b881(this[_0x33530(0x229)][_0x33530(0x3b0)],this[_0x33530(0x229)]);}};ke=nn([be(0x1,_0x23f7c2(_0x16576d)),be(0x2,_0x23f7c2(H)),be(0x3,_0x23f7c2(_0x27efaf))],ke);function on(_0x1943cc){const _0x33a6b9=_0x137374,_0x4cadf0=new Map();return _0x1943cc[_0x33a6b9(0x343)](_0x3da916=>{const _0x452350=_0x33a6b9;if(_0x4cadf0[_0x452350(0x3ea)](_0x3da916[_0x452350(0x372)])){const _0x16496c=_0x4cadf0[_0x452350(0x34d)](_0x3da916[_0x452350(0x372)]);_0x16496c[_0x452350(0x1ff)]+=',\x20'+_0x3da916[_0x452350(0x1ff)];}else _0x4cadf0[_0x452350(0x308)](_0x3da916[_0x452350(0x372)],_0x3da916);}),Array[_0x33a6b9(0x377)](_0x4cadf0['values']());}var an=Object[_0x137374(0x2cb)],cn=(_0x1aab35,_0x533464,_0x35f6b3,_0x1eaaa1)=>{const _0x2e57e8=_0x137374;for(var _0x39c8b4=_0x1eaaa1>0x1?void 0x0:_0x1eaaa1?an(_0x533464,_0x35f6b3):_0x533464,_0x96013c=_0x1aab35[_0x2e57e8(0x327)]-0x1,_0x133e60;_0x96013c>=0x0;_0x96013c--)(_0x133e60=_0x1aab35[_0x96013c])&&(_0x39c8b4=_0x133e60(_0x39c8b4)||_0x39c8b4);return _0x39c8b4;},F=(_0xf5216b,_0x55d190)=>(_0x44372d,_0x2d297c)=>_0x55d190(_0x44372d,_0x2d297c,_0xf5216b);let _e=class extends _0x2dffbf{constructor(_0xc8ef21,_0x331bd4,_0x20853e,_0x334fb6,_0x37a21a,_0x23cb2a){const _0x2ea94c=_0x137374;super(),this[_0x2ea94c(0x32b)]=_0xc8ef21,this[_0x2ea94c(0x335)]=_0x331bd4,this[_0x2ea94c(0x3fe)]=_0x20853e,this[_0x2ea94c(0x294)]=_0x334fb6,this[_0x2ea94c(0x242)]=_0x37a21a,this[_0x2ea94c(0x403)]=_0x23cb2a,this[_0x2ea94c(0x22c)](),this[_0x2ea94c(0x32d)]();}['_setupBeforeClosingHandler'](){const _0x376389=_0x137374;this[_0x376389(0x32c)](this['_beforeCloseService'][_0x376389(0x38e)](()=>{const _0x42088c=_0x376389;if(this[_0x42088c(0x335)][_0x42088c(0x36c)][_0x42088c(0x2c7)])return this[_0x42088c(0x403)]['t']('collaboration.offline-data-not-saved');}));}[_0x137374(0x32d)](){const _0x222cb6=_0x137374;this[_0x222cb6(0x32c)](this['_collaborationUIEventService']['event$']['subscribe'](_0x55c3de=>{const _0x5568e8=_0x222cb6;_0x55c3de['id']===_0x3041bd['OTHER_CLIENT_EDITING']&&this['_messageService'][_0x5568e8(0x342)]({'type':_0x17ce26[_0x5568e8(0x2eb)],'content':this['_localeService']['t'](_0x5568e8(0x1eb))}),_0x55c3de['id']===_0x3041bd[_0x5568e8(0x321)]&&this[_0x5568e8(0x294)][_0x5568e8(0x342)]({'type':_0x17ce26[_0x5568e8(0x2eb)],'content':this['_localeService']['t'](_0x5568e8(0x2b3))}),_0x55c3de['id']===_0x3041bd[_0x5568e8(0x2ef)]&&this['_notificationService'][_0x5568e8(0x342)]({'title':this[_0x5568e8(0x403)]['t'](_0x5568e8(0x3b1)),'content':this[_0x5568e8(0x403)]['t']('permission.content'),'type':'error','duration':0x0}),_0x55c3de['id']===_0x3041bd['CONFLICT']&&this[_0x5568e8(0x294)][_0x5568e8(0x342)]({'type':_0x17ce26[_0x5568e8(0x41b)],'content':this[_0x5568e8(0x403)]['t'](_0x5568e8(0x2b3))+'('+_0x55c3de[_0x5568e8(0x286)]+')'}),_0x55c3de['id']===_0x3041bd[_0x5568e8(0x336)]&&this['_messageService'][_0x5568e8(0x342)]({'type':_0x17ce26[_0x5568e8(0x2eb)],'content':this[_0x5568e8(0x403)]['t'](_0x55c3de[_0x5568e8(0x286)]||'')}),_0x55c3de['id']===_0x3041bd[_0x5568e8(0x225)]&&this[_0x5568e8(0x294)]['show']({'type':_0x17ce26[_0x5568e8(0x2eb)],'content':this[_0x5568e8(0x403)]['t']('session.will-retry')}),_0x55c3de['id']===_0x3041bd['SOCKET_FAILED']&&this['_messageService'][_0x5568e8(0x342)]({'type':_0x17ce26[_0x5568e8(0x41b)],'content':this['_localeService']['t'](_0x5568e8(0x2c6))}),_0x55c3de['id']===_0x3041bd['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x5568e8(0x294)][_0x5568e8(0x342)]({'type':_0x17ce26['Error'],'content':this[_0x5568e8(0x403)]['t'](_0x5568e8(0x309))});}));}};_e=cn([F(0x0,_0x3bf86c),F(0x1,_0x2b1e85),F(0x2,_0x23f7c2(_0x166f27)),F(0x3,_0x3d39b5),F(0x4,_0x5cea2e),F(0x5,_0x23f7c2(_0x55a4a7))],_e);var _n=Object[_0x137374(0x2cb)],ln=(_0x4df74d,_0x10437c,_0xd4816f,_0x1d79cb)=>{for(var _0x159251=_0x1d79cb>0x1?void 0x0:_0x1d79cb?_n(_0x10437c,_0xd4816f):_0x10437c,_0x1a46cb=_0x4df74d['length']-0x1,_0x158f8e;_0x1a46cb>=0x0;_0x1a46cb--)(_0x158f8e=_0x4df74d[_0x1a46cb])&&(_0x159251=_0x158f8e(_0x159251)||_0x159251);return _0x159251;},ne=(_0x1bb144,_0x4e766a)=>(_0x4863cd,_0x5423d1)=>_0x4e766a(_0x4863cd,_0x5423d1,_0x1bb144);let le=class extends _0x2dffbf{constructor(_0x584200,_0x27e3f1,_0x594a4b,_0x32976a){const _0x2acc19=_0x137374;super(),_(this,_0x2acc19(0x2df)),(this['_injector']=_0x584200,this['_httpService']=_0x27e3f1,this[_0x2acc19(0x2ff)]=_0x594a4b,this[_0x2acc19(0x394)]=_0x32976a,this[_0x2acc19(0x1de)]());}[_0x137374(0x1de)](){const _0x2fdcfa=_0x137374;this[_0x2fdcfa(0x39e)](),this[_0x2fdcfa(0x2a6)](),this['_monkeyPatchLogService'](),this[_0x2fdcfa(0x2f0)]();}['_initUserListener'](){const _0x29e256=_0x137374;this[_0x29e256(0x32c)](this[_0x29e256(0x394)][_0x29e256(0x2fb)][_0x29e256(0x305)](_0xda40d2=>{const _0x211245=_0x29e256;this[_0x211245(0x2df)]=_0xda40d2==null?void 0x0:_0xda40d2['memberID'];}));}[_0x137374(0x39e)](){const _0x8fbf8e=_0x137374,_0x32f8d2=_0x322dbe=>{const _0x4b33ac=_0x3d3a;var _0x299945;this[_0x4b33ac(0x30b)](_0x4b33ac(0x349),_0x4b33ac(0x368)+_0x322dbe[_0x4b33ac(0x3a1)]+_0x4b33ac(0x401)+_0x322dbe[_0x4b33ac(0x1e8)]+':'+_0x322dbe[_0x4b33ac(0x2bd)]+':'+_0x322dbe[_0x4b33ac(0x240)]+'\x0a'+(((_0x299945=_0x322dbe[_0x4b33ac(0x349)])==null?void 0x0:_0x299945['stack'])||''));};window['addEventListener']('error',_0x32f8d2),this[_0x8fbf8e(0x32c)](()=>{const _0x4236ea=_0x8fbf8e;window[_0x4236ea(0x31f)]('error',_0x32f8d2);});}[_0x137374(0x2a6)](){const _0x16ffad=_0x137374,_0x34f848=_0x5eb65d=>{const _0x15a349=_0x3d3a;this[_0x15a349(0x30b)]('error',_0x15a349(0x2b8)+_0x5eb65d[_0x15a349(0x30f)]);};window[_0x16ffad(0x417)](_0x16ffad(0x3c2),_0x34f848),this[_0x16ffad(0x32c)](()=>{const _0x3fc613=_0x16ffad;window[_0x3fc613(0x31f)](_0x3fc613(0x3c2),_0x34f848);});}[_0x137374(0x250)](){const _0x4187f9=_0x137374,_0x159208=this[_0x4187f9(0x2ff)][_0x4187f9(0x349)]['bind'](this[_0x4187f9(0x2ff)]);this['_logService']['error']=(..._0x508d2d)=>{const _0x71b0ba=_0x4187f9,_0xfda123=_0x508d2d[_0x71b0ba(0x384)](_0x1d7933=>_0x1d7933 instanceof Error?_0x1d7933[_0x71b0ba(0x3a1)]+'\x0a'+_0x1d7933[_0x71b0ba(0x2a9)]:String(_0x1d7933))['join']('\x20');this[_0x71b0ba(0x30b)](_0x71b0ba(0x349),_0x71b0ba(0x3bb)+_0xfda123),_0x159208(..._0x508d2d);},this[_0x4187f9(0x32c)](()=>{const _0x48b1a6=_0x4187f9;this[_0x48b1a6(0x2ff)][_0x48b1a6(0x349)]=_0x159208;});}[_0x137374(0x30b)](_0x561093,_0xcbdf27){const _0x14569b=_0x137374;try{const _0x228777={'userId':this[_0x14569b(0x2df)],'logLabel':_0x561093,'content':_0xcbdf27};this[_0x14569b(0x31d)][_0x14569b(0x2b6)](_0x14569b(0x298),{'body':_0x228777})[_0x14569b(0x289)](()=>{});}catch{}}};le=ln([ne(0x0,_0x23f7c2(_0x1173e2)),ne(0x1,_0x23f7c2(_0x2410da)),ne(0x2,_0x4cfb97),ne(0x3,_0x23f7c2(_0x66bad9))],le);const hn='collaboration-client-ui.config',_t={};var un=Object[_0x137374(0x2cb)],dn=(_0x109cc6,_0x2410af,_0x3b6b0e,_0x21cfea)=>{const _0x3d7727=_0x137374;for(var _0x52cda6=_0x21cfea>0x1?void 0x0:_0x21cfea?un(_0x2410af,_0x3b6b0e):_0x2410af,_0x43883a=_0x109cc6[_0x3d7727(0x327)]-0x1,_0x2d0a41;_0x43883a>=0x0;_0x43883a--)(_0x2d0a41=_0x109cc6[_0x43883a])&&(_0x52cda6=_0x2d0a41(_0x52cda6)||_0x52cda6);return _0x52cda6;},lt=(_0x5d97ef,_0x55f5e8)=>(_0x462e5e,_0x4670b2)=>_0x55f5e8(_0x462e5e,_0x4670b2,_0x5d97ef);let he=class{constructor(_0x1deea7,_0x2bc49b){const _0x45e1a7=_0x137374;this['_transformService']=_0x1deea7,this[_0x45e1a7(0x2d9)]=_0x2bc49b;}[_0x137374(0x25d)](_0x35c1ff){const _0x19258a=_0x137374;this[_0x19258a(0x323)](_0x35c1ff),this['_transformPreviousActiveRange'](_0x35c1ff);}[_0x137374(0x347)](_0x3de299){const _0x33b2a5=_0x137374,{unitID:_0x23fec5}=_0x3de299,_0x7a951=this[_0x33b2a5(0x2d9)][_0x33b2a5(0x3a0)](_0x23fec5)[_0x33b2a5(0x296)](_0x14ec08),{redoCache:_0x3929ea}=_0x7a951[_0x33b2a5(0x398)]();if(_0x3929ea[_0x33b2a5(0x327)]===0x0)return _0x3de299;let _0x3de4e1=_0x43e3cb['deepClone'](_0x3de299[_0x33b2a5(0x3cf)][0x0]);for(let _0x13dcf3=0x0;_0x13dcf3<_0x3929ea[_0x33b2a5(0x327)];_0x13dcf3++){const _0x32626f={'id':_0x33b2a5(0x338),'params':{..._0x3929ea[_0x13dcf3]}},_0x1061a6=this[_0x33b2a5(0x304)]['transformMutation'](_0x3de4e1,_0x32626f,!0x1);if(_0x5c3d1d(_0x1061a6))throw _0x1061a6[_0x33b2a5(0x349)];_0x3de4e1=_0x1061a6[_0x33b2a5(0x1e2)];}return{..._0x43e3cb[_0x33b2a5(0x28a)](_0x3de299),'mutations':[_0x3de4e1]};}[_0x137374(0x323)](_0x3356cd){const _0x3de53a=_0x137374,{unitID:_0x12394a}=_0x3356cd,_0x4c76dd=this['_renderManagerService'][_0x3de53a(0x3a0)](_0x12394a)[_0x3de53a(0x296)](_0x14ec08),{undoCache:_0x2317bc,redoCache:_0x3ec85f}=_0x4c76dd[_0x3de53a(0x398)]();if(_0x2317bc[_0x3de53a(0x327)]===0x0||_0x3ec85f[_0x3de53a(0x327)]===0x0)return;const _0x22368e=[],_0x47f016=[];let _0xbcd786=_0x43e3cb[_0x3de53a(0x28a)](_0x3356cd['mutations'][0x0]),_0x2409e0=_0x43e3cb[_0x3de53a(0x28a)](_0x3356cd['mutations'][0x0]);for(let _0x3171ba=_0x2317bc[_0x3de53a(0x327)]-0x1;_0x3171ba>=0x0;_0x3171ba--){const _0x9b6c5c={'id':_0x3de53a(0x338),'params':{..._0x2317bc[_0x3171ba]}},_0x2e0224={'id':_0x3de53a(0x338),'params':{..._0x3ec85f[_0x3171ba]}},_0x466d89=this[_0x3de53a(0x304)][_0x3de53a(0x339)](_0xbcd786,_0x9b6c5c,!0x1),_0x543fec=this[_0x3de53a(0x304)][_0x3de53a(0x339)](_0x2409e0,_0x2e0224,!0x1);if(_0x5c3d1d(_0x466d89))throw _0x466d89[_0x3de53a(0x349)];if(_0x5c3d1d(_0x543fec))throw _0x543fec[_0x3de53a(0x349)];_0x22368e['unshift'](_0x466d89[_0x3de53a(0x20c)][_0x3de53a(0x2c3)]),_0x47f016[_0x3de53a(0x3a5)](_0x543fec[_0x3de53a(0x20c)][_0x3de53a(0x2c3)]),_0xbcd786=_0x466d89[_0x3de53a(0x1e2)],_0x2409e0=_0x543fec[_0x3de53a(0x1e2)];}_0x4c76dd[_0x3de53a(0x36b)]({'undoCache':_0x22368e,'redoCache':_0x47f016});}[_0x137374(0x276)](_0x478340){const _0xf21c2=_0x137374,{unitID:_0x3277d6}=_0x478340,_0x2f8393=this[_0xf21c2(0x2d9)]['getRenderById'](_0x3277d6)['with'](_0x14ec08),_0x27f08e=_0x2f8393[_0xf21c2(0x3f7)]();if(_0x27f08e==null)return;const _0x248436=[{'id':_0xf21c2(0x338),'params':{'unitId':_0x478340[_0xf21c2(0x1f4)],'actions':null,'textRanges':[_0x27f08e]}}],_0x3d0244=this[_0xf21c2(0x304)]['transformMutationsWithChangeset'](_0x478340,_0x248436);if(!_0x53d5b6(_0x3d0244))throw _0x3d0244['error'];const _0x17cdd0=_0x3d0244[_0xf21c2(0x20c)][0x0][_0xf21c2(0x2c3)][_0xf21c2(0x3bf)];Array['isArray'](_0x17cdd0)&&_0x17cdd0[_0xf21c2(0x327)]&&_0x2f8393[_0xf21c2(0x2a1)](_0x17cdd0[0x0]);}};he=dn([lt(0x0,_0x44abdb),lt(0x1,_0x46c3d4)],he);var Sn=Object['getOwnPropertyDescriptor'],In=(_0x267ae8,_0x1715a7,_0x2f18ad,_0x30fe54)=>{const _0x93b486=_0x137374;for(var _0x182422=_0x30fe54>0x1?void 0x0:_0x30fe54?Sn(_0x1715a7,_0x2f18ad):_0x1715a7,_0x4c41c6=_0x267ae8[_0x93b486(0x327)]-0x1,_0x15bd9f;_0x4c41c6>=0x0;_0x4c41c6--)(_0x15bd9f=_0x267ae8[_0x4c41c6])&&(_0x182422=_0x15bd9f(_0x182422)||_0x182422);return _0x182422;},Le=(_0x101fdc,_0x23f7bf)=>(_0x13ebab,_0x521ce9)=>_0x23f7bf(_0x13ebab,_0x521ce9,_0x101fdc);let ue=class{constructor(_0x512e61,_0x20c22a,_0x1f82f2){const _0x115072=_0x137374;this[_0x115072(0x265)]=_0x512e61,this['_transformService']=_0x20c22a,this[_0x115072(0x351)]=_0x1f82f2;}[_0x137374(0x251)](_0x518794){const _0x49be7c=_0x137374;this[_0x49be7c(0x3cc)](_0x518794);}[_0x137374(0x347)](_0x130c8b){const _0x41ffe7=_0x137374,{unitID:_0x264341}=_0x130c8b,{collaboration:_0x575afb}=this['_docStateChangeManagerService'][_0x41ffe7(0x219)](_0x264341);if(_0x575afb['length']===0x0)return _0x130c8b;let _0x1176bc=_0x43e3cb['deepClone'](_0x130c8b[_0x41ffe7(0x3cf)][0x0]);for(let _0x3320cf=0x0;_0x3320cf<_0x575afb[_0x41ffe7(0x327)];_0x3320cf++){const _0x356012={'id':_0x41ffe7(0x338),'params':{'unitId':_0x575afb[_0x3320cf][_0x41ffe7(0x207)],..._0x575afb[_0x3320cf]['redoState']}},_0x11b00b=this[_0x41ffe7(0x304)][_0x41ffe7(0x339)](_0x1176bc,_0x356012,!0x1);if(_0x5c3d1d(_0x11b00b))throw _0x11b00b[_0x41ffe7(0x349)];_0x1176bc=_0x11b00b[_0x41ffe7(0x1e2)];}return{..._0x43e3cb[_0x41ffe7(0x28a)](_0x130c8b),'mutations':[_0x1176bc]};}[_0x137374(0x3cc)](_0x303460){const _0x3c16ce=_0x137374,{unitID:_0x3e0053}=_0x303460,{history:_0x5993ab,collaboration:_0x5f5a36}=this[_0x3c16ce(0x351)][_0x3c16ce(0x219)](_0x3e0053);if(_0x5993ab[_0x3c16ce(0x327)]===0x0&&_0x5f5a36['length']===0x0)return;const _0x1ff474=[],_0xe1d792=[];let _0x3dd5fd=_0x43e3cb['deepClone'](_0x303460[_0x3c16ce(0x3cf)][0x0]),_0x36f9f4=_0x43e3cb[_0x3c16ce(0x28a)](_0x303460['mutations'][0x0]);for(let _0xc7a2c9=_0x5993ab['length']-0x1;_0xc7a2c9>=0x0;_0xc7a2c9--){const _0x1935f0={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5993ab[_0xc7a2c9][_0x3c16ce(0x207)],..._0x5993ab[_0xc7a2c9]['undoState']}},_0x4a0476={'id':_0x3c16ce(0x338),'params':{'unitId':_0x5993ab[_0xc7a2c9][_0x3c16ce(0x207)],..._0x5993ab[_0xc7a2c9][_0x3c16ce(0x3e9)]}},_0x3e5bc1=this['_transformService'][_0x3c16ce(0x339)](_0x3dd5fd,_0x1935f0,!0x1),_0x5d32cb=this[_0x3c16ce(0x304)]['transformMutation'](_0x36f9f4,_0x4a0476,!0x1);if(_0x5c3d1d(_0x3e5bc1))throw _0x3e5bc1[_0x3c16ce(0x349)];if(_0x5c3d1d(_0x5d32cb))throw _0x5d32cb[_0x3c16ce(0x349)];_0x1ff474[_0x3c16ce(0x3a5)]({..._0x5993ab[_0xc7a2c9],'undoState':_0x3e5bc1[_0x3c16ce(0x20c)]['params'],'redoState':_0x5d32cb[_0x3c16ce(0x20c)][_0x3c16ce(0x2c3)]}),_0x3dd5fd=_0x3e5bc1[_0x3c16ce(0x1e2)],_0x36f9f4=_0x5d32cb[_0x3c16ce(0x1e2)];}_0x3dd5fd=_0x43e3cb[_0x3c16ce(0x28a)](_0x303460['mutations'][0x0]),_0x36f9f4=_0x43e3cb['deepClone'](_0x303460[_0x3c16ce(0x3cf)][0x0]);for(let _0x88493=_0x5f5a36[_0x3c16ce(0x327)]-0x1;_0x88493>=0x0;_0x88493--){const _0x48327c={'id':_0x3c16ce(0x338),'params':{'unitId':_0x5f5a36[_0x88493][_0x3c16ce(0x207)],..._0x5f5a36[_0x88493]['undoState']}},_0x35de44={'id':_0x3c16ce(0x338),'params':{'unitId':_0x5f5a36[_0x88493]['unitId'],..._0x5f5a36[_0x88493][_0x3c16ce(0x3e9)]}},_0xbe5a72=this[_0x3c16ce(0x304)][_0x3c16ce(0x339)](_0x3dd5fd,_0x48327c,!0x1),_0x2c1ee8=this[_0x3c16ce(0x304)][_0x3c16ce(0x339)](_0x36f9f4,_0x35de44,!0x1);if(_0x5c3d1d(_0xbe5a72))throw _0xbe5a72['error'];if(_0x5c3d1d(_0x2c1ee8))throw _0x2c1ee8['error'];_0xe1d792[_0x3c16ce(0x3a5)]({..._0x5f5a36[_0x88493],'undoState':_0xbe5a72[_0x3c16ce(0x20c)][_0x3c16ce(0x2c3)],'redoState':_0x2c1ee8[_0x3c16ce(0x20c)]['params']}),_0x3dd5fd=_0xbe5a72[_0x3c16ce(0x1e2)],_0x36f9f4=_0x2c1ee8[_0x3c16ce(0x1e2)];}this[_0x3c16ce(0x351)][_0x3c16ce(0x36d)](_0x3e0053,{'history':_0x1ff474,'collaboration':_0xe1d792});}};ue=In([Le(0x0,_0x23f7c2(_0x1173e2)),Le(0x1,_0x44abdb),Le(0x2,_0x23f7c2(_0x11105a))],ue);var mn=Object[_0x137374(0x2cb)],fn=(_0x4eef2a,_0xcc704a,_0x3f68ae,_0x224ae9)=>{for(var _0x5c8327=_0x224ae9>0x1?void 0x0:_0x224ae9?mn(_0xcc704a,_0x3f68ae):_0xcc704a,_0x2b7856=_0x4eef2a['length']-0x1,_0x59cbbc;_0x2b7856>=0x0;_0x2b7856--)(_0x59cbbc=_0x4eef2a[_0x2b7856])&&(_0x5c8327=_0x59cbbc(_0x5c8327)||_0x5c8327);return _0x5c8327;},ht=(_0x180180,_0x598b58)=>(_0x592009,_0x47f489)=>_0x598b58(_0x592009,_0x47f489,_0x180180);let de=class{constructor(_0x3ee5a4,_0x3cd7f5){const _0x392e62=_0x137374;this[_0x392e62(0x265)]=_0x3ee5a4,this[_0x392e62(0x304)]=_0x3cd7f5;}[_0x137374(0x259)](_0xd05e21){const _0x4a13f8=_0x137374;var _0x452988;const _0x565926=this[_0x4a13f8(0x265)][_0x4a13f8(0x34d)](_0x46950a),_0x48e226=(_0x452988=_0x565926[_0x4a13f8(0x369)]())!=null?_0x452988:[];if(_0x48e226[_0x4a13f8(0x327)]===0x0)return;const _0x3f2364=_0xd05e21[_0x4a13f8(0x1f4)],_0xf7ba5d=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3f2364,'actions':null,'textRanges':_0x48e226}}],_0x5f42a5=this[_0x4a13f8(0x304)][_0x4a13f8(0x392)](_0xd05e21,_0xf7ba5d);if(!_0x53d5b6(_0x5f42a5))throw _0x5f42a5[_0x4a13f8(0x349)];const _0x4b2f0e=_0x5f42a5[_0x4a13f8(0x20c)][0x0][_0x4a13f8(0x2c3)][_0x4a13f8(0x3bf)];Array[_0x4a13f8(0x3a7)](_0x4b2f0e)&&_0x4b2f0e[_0x4a13f8(0x327)]&&_0x565926[_0x4a13f8(0x2b5)](_0x4b2f0e,{'unitId':_0x3f2364,'subUnitId':_0x3f2364},!0x1);}};de=fn([ht(0x0,_0x23f7c2(_0x1173e2)),ht(0x1,_0x44abdb)],de);var gn=Object[_0x137374(0x2cb)],En=(_0xfb0a07,_0x5d6747,_0x3d518d,_0xd86848)=>{const _0x442202=_0x137374;for(var _0x1f72ef=_0xd86848>0x1?void 0x0:_0xd86848?gn(_0x5d6747,_0x3d518d):_0x5d6747,_0x1a17c8=_0xfb0a07[_0x442202(0x327)]-0x1,_0x466425;_0x1a17c8>=0x0;_0x1a17c8--)(_0x466425=_0xfb0a07[_0x1a17c8])&&(_0x1f72ef=_0x466425(_0x1f72ef)||_0x1f72ef);return _0x1f72ef;},U=(_0x848f91,_0x32b4ec)=>(_0x353a25,_0xc4678f)=>_0x32b4ec(_0x353a25,_0xc4678f,_0x848f91);let Se=class extends _0x2dffbf{constructor(_0x5ced7d,_0x302e30,_0x3437af,_0xc8e864,_0x36d0e8,_0x21b013,_0x2eef8a,_0x1e1c06){const _0x1d0123=_0x137374;super(),_(this,'_status$',new _0x5b93d9(_0x2e02de[_0x1d0123(0x2af)])),(this[_0x1d0123(0x351)]=_0x5ced7d,this['_collaborationController']=_0x302e30,this[_0x1d0123(0x3f2)]=_0x3437af,this['_docTransformStateCacheService']=_0xc8e864,this[_0x1d0123(0x383)]=_0x36d0e8,this[_0x1d0123(0x3a8)]=_0x21b013,this['_messageService']=_0x2eef8a,this['_localeService']=_0x1e1c06,this[_0x1d0123(0x1ed)]());}[_0x137374(0x1ed)](){const _0x3c2d0a=_0x137374;this['disposeWithMe'](this[_0x3c2d0a(0x32f)]['entityInit$'][_0x3c2d0a(0x305)](_0x21619c=>{const _0x201727=_0x3c2d0a,_0x3c0300=this[_0x201727(0x351)][_0x201727(0x328)]['subscribe'](_0x35675d=>{const _0x1071ae=_0x201727;if(_0x35675d==null)return;const {unitId:_0x1451a5,redoState:_0x3f93a7,commandId:_0x51f419}=_0x35675d;if(_0x1451a5!==_0x21619c[_0x1071ae(0x1f4)])return;const _0x211350={'id':_0x51f419,'type':_0x5f58f3['MUTATION'],'params':{'unitId':_0x1451a5,'actions':_0x3f93a7['actions'],'textRanges':null}};_0x21619c['onLocalMutation'](_0x211350);});if(_0x21619c[_0x201727(0x32c)](_0x3c0300),_0x21619c instanceof _0x1d259e){const _0x4f7390={'onTransformIME':_0x229938=>this['_docTransformIMECacheService'][_0x201727(0x25d)](_0x229938),'onTransformState':_0x1b5f48=>this[_0x201727(0x2bf)][_0x201727(0x251)](_0x1b5f48),'onTransformSelections':_0x30b6ec=>this[_0x201727(0x383)][_0x201727(0x259)](_0x30b6ec),'onSyncEditingCollabCursor':_0x20e17e=>this[_0x201727(0x3a8)][_0x201727(0x354)](_0x20e17e),'onTransformRemoteChangesetByIMECache':_0x53e206=>this[_0x201727(0x3f2)][_0x201727(0x347)](_0x53e206),'onTransformRemoteChangesetByStateCache':_0x3d8ec=>this[_0x201727(0x2bf)][_0x201727(0x347)](_0x3d8ec)};_0x21619c['addHandlerCallback'](_0x4f7390);}}));}};function _0x1d03(){const _0x4e2396=['currentColor','_handleEvent','none','_cursor','registerBeforeClose','getOffsetConfig','currentSkeleton$','/universer-api/license/formula/limit/done','transformMutationsWithChangeset','OffLineIcon','_collaborationSessionService','disableLocalCache','_doCreateSocket','current','getUndoRedoMutationParamsCache','_hovered','restore','clearInterval','getConfig','purple.300','_initWindowErrorListener','arc','getRenderById','message','ENTITLE_INSUFFICIENT_QUOTA','createInstance','CONFLICT','unshift','_scheduleClearOtherTimer','isArray','_docSyncEditingCollabCursorService','text','pushState','_entityInit$','hovered','YUUMI_ALL_TABLES_IS_INVALID','_color','tag','unit','permission.title','onRendered','updateOfflineData','CURRENT_STATUS_CANNOT_OPERATE','invokeId','children','APPLY_NON_SEQUENTIAL_REVISION','TEXT','ENTITLE_USE_COUPON_NOT_1ST_TRADE','parseInt','[LogService\x20Error]:\x20','REDEMPTION_USER_REDEEM_TIMES_EXCEED','_range','toString','textRanges','510245DMFHfF','_cursors','unhandledrejection','moveTo','beforeCommandExecuted','yellow.400','white','dispose$','UNAUTHENTICATED','onPointerMove$','APPLY_REVISION_CONFILICT','removeParam','_transformHistoryAndStateStack','ENTITLE_CHAT_LIMIT_EXCEED','getAncestorScale','mutations','_showGuardMessage','_toggleOnline','_drawRectRange','ENSURE_SNAPSHOT_EXECUTION','LOGIN_TOKEN_PROCESSING_FAILED','top','collabStatus.offline','Failed','getActiveSheet','memberID','url(#$1','LICENSE_IMPORT_SIZE_EXCEEDED','univerjs-icon\x20univerjs-icon-','on-line-icon','sessionStatus$','_currentUsage','_roomMembers$','uni.network.url-service','send','_anchorDot','_getSessionTicket','_sheetSkeletonManagerService','_clearPolling','mask','_getSheetObject','redoState','has','functionsExecutedState','hide','INVITE_CODE_ALREADY_BOUND','registerRefRange','startsWith','_getMergeRange','OnLineIcon','_docTransformIMECacheService','MoveRangeCommandId','_handleJoinEvent','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','OFFLINE','getActiveRange','getFocusedUnit','body','_setFormulaLimitStatus','USERS_LEAVE','_handleLeaveEvent','_pollingInterval','_collaborationUIEventService','univer-flex\x20univer-items-center','replaceState','\x20at\x20','_localStorageService','_localeService','type','popstate','setShapeProps','min','_drawAnchor','_applyCommand','0\x200\x2017\x2016','_releaseCalculationLimit','_initStatusComponent','closePath','red.300','MOBILE_VERIFY_CODE_MISMATCH','_themeService','application/json','addObjects','_refRangeService','setInterval','registerComponent','START_CALCULATION','addEventListener','InsertRowCommandId','_memberService','getCurrentUnitForType','Error','_id','_initCommandInterceptor','_hasFormulaInDirtyRanges','DeleteRangeMoveLeftCommandId','attrs','10703sNXNID','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','YUUMI_RATE_OVER_LIMIT','LICENSE_EXPORT_SIZE_EXCEEDED','formula.calculation.waiting','_init','exhaustSavingTask','getParam','_refreshCollabCursors','m1Prime','_collabCursorState$','_scheduleSaving','findNodePositionByCharIndex','ENTITLE_REPORT_LIMIT_EXCEED','labelPosition','filename','event$','drawWith','collaboration.single-unit.warning','getRangePointData','_initEntityListener','currentTheme$','collab-client.tooltip.reconnect','clipPath','_draw','ERROR_AGAIN','dirtyRanges','unitID','reconnect','_saveTaskMap','_updateLocalCursor','RemoveRowCommandId','_scheduleHeartbeat','1046745KVtfWz','SNAPSHOT_INVALID_SNAPSHOT','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_initDependencies','_handleHeartbeatEvent','name','258pWaBSu','_drawTextRange','defs','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','YUUMI_URL_COL_OUT_OF_RANGE','roomMembers$','YUUMI_TABLE_NOT_FOUND_IN_UNIT','unitId','REDEMPTION_CODE_INACTIVE','AUTHORIZE_CODE_ILLEGAL','lineTo','_entities','m2Prime','getColorFromTheme','M0\x200H16V16H0z','height','stageInfo','_syncEditingCollabCursorService','enableFrontendLog','YUUMI_CONNECTOR_URL_NOT_FOUND','Success','find','clearTimeout','_docSkeletonManagerService','_clearOtherTimers','getStateCache','replace','endColumn','REDEMPTION_CODE_FULLY_REDEEMED','getMember','6hSDqfy','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','loadUnit','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','collabStatus.conflict','path','source','SOCKET_FAILED_RETRY','getUnit','ranges','1em','_context','whenReady','setTimeout','_setupBeforeClosingHandler','getMemberID','VIEW_MAIN','fillStyle','onPointerLeave$','bottom','WECHAT_HAS_BEEN_BOUND','_commandService','startColumn','_urlService','REDEMPTION_INVALID_CODE','_labelPosition','_registerRenderDependencies','eventID','onCommandExecuted','_setupSubUnitSync','fillText','_backgroundColor','_textBubble','onStarting','colno','_onCursorDelete','_notificationService','loadOfflineData','INVITE_CODE_REQUIRED','entries','DATA_SOURCE_TOO_LARGE','20LrqYfV','MOBILE_HAS_BEEN_BOUND','toRgbString','saveOfflineData','unload','REDEMPTION_CODE_NOT_STARTED','_ensureSubject','addObject','PY_RUNTIME_SCRIPT_ERROR','_monkeyPatchLogService','transformStateCache','result','round','getUnitId','_unitOnClients','RECT','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','sheetId','transformSelections','getCurrentSelections','ENTITLE_COUPON_USED_UP','_config','transformIMECache','APPLY_REJECT','pipe','onPointerEnter$','_saveCache','_cachedData','_session','save','_injector','CONNECTOR_DATA_TOO_LARGE','_docClipboardService','executionId','PAYMENT_CHANNEL_NOT_SUPPORT','USER_IS_ANONYMOUS','getUnitStatus$','getViewport','PENDING','_configService','color','_shapes','96Cgzlet','maxFormulaLimit','COMPLETION_FINISHED','Unknown\x20user','getCollabEntity$','_transformPreviousActiveRange','requireSession','_unitStatus','enableLocalCache','getCollabCursors$','INVITE_CODE_HAS_BEEN_UES','YUUMI_UNABLE_LOAD_URL','_cursorShapes','string','wsSessionTicketUrl','_assignedColors','_anchor','_startSheetCollabCursor','pluginName','[CollaborationDataLoaderController]','_collabCursorController','data','ENTITLE_NEED_BILLING_ADDRESS','blue.400','catch','deepClone','black','ALREADY_EXISTS','next','_name','div','ENTITLE_DUP_SUBSCRIPTION','getVpScrollXYInfoByPosToVp','history','_status$','_messageService','_removeCollabCursors','with','_lastPointer','/universer-api/frontend/logs','isActive','colorChannel1','YUUMI_SUBSCRIPTION_NOT_FOUND','SNAPSHOT_HAS_BEEN_REMOVED','_imageIoService','_registerDependencies','_maxFormulaLimit','_heartbeatTimer','setActiveRange','assign','subunit','random','searchParams','_initUnhandledRejectionListener','_send','some','stack','getTypeOfUnitDisposed$','includes','_disabled','http://www.w3.org/2000/svg','setItem','NOT_COLLAB','_eventUnsubscribe','ACTIVE_UNIT_EVENT_CHANNEL','APPLY_DUPLICATED','collaboration.closeRoom','YUUMI_NO_CUBOID_FOR_QUESTION','replaceDocRanges','post','_taskIds','[Unhandled\x20Rejection]:\x20','_instanceService','InsertRangeMoveRightCommandId','_hideTimer','_selfUnitIDs','lineno','NOT_FOUND','_docTransformStateCacheService','_online','fill','delete','params','1668RFciyf','editingUnit','session.connection-failed','size','key','registerRenderModule','DeleteRangeMoveUpCommandId','getOwnPropertyDescriptor','UPDATE_CURSOR','flatMap','getMergeData','_onCursorUpdate','UNRECOGNIZED','_initResize','getCurrentRevOfUnit','REDEMPTION_CODE_HAS_BEEN_CREATED','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','column','executeCommand','EMAIL_VERIFY_CODE_MISMATCH','transform','_renderManagerService','displayName','use','INTERNAL_ERROR','EMAIL_HAS_BEEN_BOUND','measureText','_memberID','cursorInfo$','InsertRangeMoveDownCommandId','selections','getUnhiddenWorksheets','href','968vZAZRZ','LICENSE_MAX_UNITS_EXCEEDED','_getAnchorBounding','getRelativeToViewportCoord','_getScale','releaseFormulaLimitUrl','Warning','_removeClearOtherTimer','unsubscribe','YUUMI_ASYNCIO_CANCELLED','PERMISSION_DENIED','_initUserListener','onMouseMove','UNIVER_DOC','getSheetId','getSheetBySheetId','addClipboardHook','_hover','runId','roomMembers','makeDirty','_dataLoaderService','socket$','_getFormulaLimitStatus','cursorInfo','on-line-icon_clip0_910_349','_logService','transformByState','complete','_updateCollabCursors','storage','_transformService','subscribe','REDEMPTION_USER_NOT_ELIGIBLE','SYNCED','set','session.collaboration-timeout','_uiPartsService','_uploadLog','0\x200\x2016\x2016','stringify','backgroundColor','reason','limitInfo','row','then','_colorIndex','_initCommandExecutedListener','asObservable','location','urlChange$','/universer-api/license/formula/limit/status','UNDEFINED','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','getUniverSheetInstance','collab-text-anchor-','_httpService','_checkCalculationAvailable','removeEventListener','USER_NOT_INVITED_CODE','CLOSE_ROOM','defIds','_transformUndoRedoStack','setParam','dispose','startRow','length','docStateChange$','/universer-api/license/formula/limit/start','subUnitId','_beforeCloseService','disposeWithMe','_initEvent','off-line-icon_clip0_910_343','_collaborationController','_render','sheetID','resize','formula.calculation.unable','status$','_localCacheService','JOIN_ROOM_FAILED','_cursorInfo$','doc.mutation.rich-text-editing','transformMutation','green.600','ticket','code','USER_NOT_FOUND','collabStatus.fetchMiss','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','now','stage','show','forEach','setAlpha','_document','_startDocCollabCursor','transformRemoteChangeset','LICENSE_DISTRO_REJECTED','error','_revisionService','CHANGESET_REVISION_CONFILICT','TOO_MANY_REQUESTS','get','getCurrent','split','assignAColorForMemberID','_docStateChangeManagerService','getValue','5467NTjagK','syncEditingCollabCursor','1505120VZUoOw','all','_colorAssignService','_collabSessionService','onTransformChange$','/run/','defineProperty','UNIVER_SHEET','disposeUnit','_initStatusListener','_updateSubUnitFromURLParams','LOGIN_FAILED','evenodd','isEditing','_lastResponseTimestamp','values','INVALID_INVITE_CODE','_univerInstanceService','idSuffix','[Window\x20Error]:\x20','getDocRanges','univer-mr-2\x20univer-flex\x20univer-text-xl','setUndoRedoMutationParamsCache','saveTaskMap','setStateCache','xlink:href','...','AWAITING_WITH_PENDING','svg','selection','1448pkOXJe','subscribeEvent','endRow','symbol','from','push','getTypeOfUnitAdded$','collab-rect-range-','getformulaLimitStatusUrl','_updateURLWithCurrentState','add','getSkeleton','_scene','_toggleOffline','search','createSocket','_docTransformSelectionsService','map','width','ONLINE','_createSocketURL','_startCalculationLimit','YUUMI_AI_RUN_FAILED'];_0x1d03=function(){return _0x4e2396;};return _0x1d03();}Se=En([U(0x0,_0x23f7c2(_0x11105a)),U(0x1,_0x23f7c2(_0x573dad)),U(0x2,_0x23f7c2(he)),U(0x3,_0x23f7c2(ue)),U(0x4,_0x23f7c2(de)),U(0x5,_0x23f7c2(ze)),U(0x6,_0x3d39b5),U(0x7,_0x23f7c2(_0x55a4a7))],Se);var Z=(_0x284a62=>(_0x284a62[_0x284a62['UNDEFINED']=0x0]=_0x137374(0x319),_0x284a62[_0x284a62['OK']=0x1]='OK',_0x284a62[_0x284a62['INTERNAL_ERROR']=0x2]=_0x137374(0x2dc),_0x284a62[_0x284a62['PERMISSION_DENIED']=0x3]=_0x137374(0x2ef),_0x284a62[_0x284a62['NOT_FOUND']=0x4]=_0x137374(0x2be),_0x284a62[_0x284a62[_0x137374(0x3c8)]=0x5]=_0x137374(0x3c8),_0x284a62[_0x284a62[_0x137374(0x28c)]=0x6]=_0x137374(0x28c),_0x284a62[_0x284a62['INVALID_ARGUMENT']=0x7]='INVALID_ARGUMENT',_0x284a62[_0x284a62['TOO_MANY_REQUESTS']=0x8]=_0x137374(0x34c),_0x284a62[_0x284a62[_0x137374(0x273)]=0x9]='COMPLETION_FINISHED',_0x284a62[_0x284a62[_0x137374(0x360)]=0xa]=_0x137374(0x360),_0x284a62[_0x284a62[_0x137374(0x40f)]=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x284a62[_0x284a62[_0x137374(0x221)]=0xc]=_0x137374(0x221),_0x284a62[_0x284a62[_0x137374(0x2d7)]=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0x284a62[_0x284a62[_0x137374(0x1fc)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x284a62[_0x284a62[_0x137374(0x209)]=0xf]=_0x137374(0x209),_0x284a62[_0x284a62[_0x137374(0x3d4)]=0x10]=_0x137374(0x3d4),_0x284a62[_0x284a62[_0x137374(0x3b4)]=0x64]=_0x137374(0x3b4),_0x284a62[_0x284a62[_0x137374(0x1f2)]=0x65]=_0x137374(0x1f2),_0x284a62[_0x284a62[_0x137374(0x33d)]=0xc9]=_0x137374(0x33d),_0x284a62[_0x284a62[_0x137374(0x26a)]=0xca]=_0x137374(0x26a),_0x284a62[_0x284a62[_0x137374(0x34b)]=0x1389]=_0x137374(0x34b),_0x284a62[_0x284a62[_0x137374(0x1fb)]=0x1771]=_0x137374(0x1fb),_0x284a62[_0x284a62[_0x137374(0x29c)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x284a62[_0x284a62[_0x137374(0x3d3)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x284a62[_0x284a62['APPLY_REJECT']=0x1b59]=_0x137374(0x25e),_0x284a62[_0x284a62[_0x137374(0x3b7)]=0x1b5a]=_0x137374(0x3b7),_0x284a62[_0x284a62[_0x137374(0x3ca)]=0x1b5b]=_0x137374(0x3ca),_0x284a62[_0x284a62['APPLY_PERMISSION_DENIED']=0x1b5c]='APPLY_PERMISSION_DENIED',_0x284a62[_0x284a62[_0x137374(0x2b2)]=0x1b5d]='APPLY_DUPLICATED',_0x284a62[_0x284a62['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x137374(0x266),_0x284a62[_0x284a62[_0x137374(0x2e6)]=0x2329]=_0x137374(0x2e6),_0x284a62[_0x284a62['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x284a62[_0x284a62[_0x137374(0x3db)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x284a62[_0x284a62[_0x137374(0x1dc)]=0x232c]=_0x137374(0x1dc),_0x284a62[_0x284a62[_0x137374(0x348)]=0x232d]=_0x137374(0x348),_0x284a62[_0x284a62[_0x137374(0x27c)]=0x2711]=_0x137374(0x27c),_0x284a62[_0x284a62[_0x137374(0x204)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x284a62[_0x284a62[_0x137374(0x1db)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x284a62[_0x284a62[_0x137374(0x29b)]=0x2714]=_0x137374(0x29b),_0x284a62[_0x284a62[_0x137374(0x2b4)]=0x271a]=_0x137374(0x2b4),_0x284a62[_0x284a62[_0x137374(0x2ee)]=0x271b]=_0x137374(0x2ee),_0x284a62[_0x284a62['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x137374(0x206),_0x284a62[_0x284a62['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x137374(0x3ad),_0x284a62[_0x284a62[_0x137374(0x31a)]=0x271e]=_0x137374(0x31a),_0x284a62[_0x284a62['YUUMI_AI_RUN_FAILED']=0x271f]=_0x137374(0x389),_0x284a62[_0x284a62[_0x137374(0x213)]=0x2720]=_0x137374(0x213),_0x284a62[_0x284a62[_0x137374(0x24f)]=0x2af9]=_0x137374(0x24f),_0x284a62[_0x284a62[_0x137374(0x27b)]=0x2ee1]=_0x137374(0x27b),_0x284a62[_0x284a62[_0x137374(0x365)]=0x2ee2]='INVALID_INVITE_CODE',_0x284a62[_0x284a62['INVITE_CODE_REQUIRED']=0x2ee3]=_0x137374(0x244),_0x284a62[_0x284a62[_0x137374(0x320)]=0x2ee4]=_0x137374(0x320),_0x284a62[_0x284a62[_0x137374(0x3ed)]=0x2ee5]=_0x137374(0x3ed),_0x284a62[_0x284a62['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x137374(0x232),_0x284a62[_0x284a62[_0x137374(0x248)]=0x32ca]=_0x137374(0x248),_0x284a62[_0x284a62[_0x137374(0x2dd)]=0x32cb]=_0x137374(0x2dd),_0x284a62[_0x284a62['ENTITLE_CAN_NOT_BUY_LOWER_OTP']=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0x284a62[_0x284a62[_0x137374(0x33f)]=0x36b2]=_0x137374(0x33f),_0x284a62[_0x284a62[_0x137374(0x290)]=0x36b3]='ENTITLE_DUP_SUBSCRIPTION',_0x284a62[_0x284a62[_0x137374(0x269)]=0x36b4]=_0x137374(0x269),_0x284a62[_0x284a62['ENTITLE_INVALID_COUPON_CODE']=0x36b5]='ENTITLE_INVALID_COUPON_CODE',_0x284a62[_0x284a62['ENTITLE_COUPON_EXPIRED']=0x36b6]='ENTITLE_COUPON_EXPIRED',_0x284a62[_0x284a62['ENTITLE_COUPON_USED_UP']=0x36b7]=_0x137374(0x25b),_0x284a62[_0x284a62[_0x137374(0x3b9)]=0x36b8]=_0x137374(0x3b9),_0x284a62[_0x284a62[_0x137374(0x3cd)]=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0x284a62[_0x284a62[_0x137374(0x1e6)]=0x3716]=_0x137374(0x1e6),_0x284a62[_0x284a62[_0x137374(0x3a2)]=0x3717]=_0x137374(0x3a2),_0x284a62[_0x284a62[_0x137374(0x287)]=0x37dd]=_0x137374(0x287),_0x284a62[_0x284a62[_0x137374(0x236)]=0x3a99]='REDEMPTION_INVALID_CODE',_0x284a62[_0x284a62[_0x137374(0x208)]=0x3a9a]='REDEMPTION_CODE_INACTIVE',_0x284a62[_0x284a62[_0x137374(0x21c)]=0x3a9b]=_0x137374(0x21c),_0x284a62[_0x284a62[_0x137374(0x24c)]=0x3a9c]='REDEMPTION_CODE_NOT_STARTED',_0x284a62[_0x284a62[_0x137374(0x306)]=0x3a9d]=_0x137374(0x306),_0x284a62[_0x284a62['REDEMPTION_USER_REDEEM_TIMES_EXCEED']=0x3a9e]=_0x137374(0x3bc),_0x284a62[_0x284a62[_0x137374(0x2d3)]=0x3a9f]=_0x137374(0x2d3),_0x284a62[_0x284a62[_0x137374(0x246)]=0x3e81]=_0x137374(0x246),_0x284a62[_0x284a62[_0x137374(0x2d0)]=-0x1]=_0x137374(0x2d0),_0x284a62))(Z||{});function vn(_0x1b1917){const _0x15d7d4=_0x137374;var _0xe85a39,_0x39482d;const _0x303b09=(_0xe85a39=_0x1b1917[_0x15d7d4(0x210)])==null?void 0x0:_0xe85a39[_0x15d7d4(0x341)],_0x5305da=((_0x39482d=_0x1b1917[_0x15d7d4(0x210)])==null?void 0x0:_0x39482d['totalFormulasToCalculate'])||0x0;return _0x303b09===_0xa43128[_0x15d7d4(0x416)]&&_0x5305da>0x0;}function pn(_0x222720){const _0x1fd674=_0x137374;return _0x222720[_0x1fd674(0x3eb)]===_0x8f19c0['SUCCESS'];}var On=Object[_0x137374(0x2cb)],Tn=(_0x3c216b,_0x323397,_0x1b04b5,_0x4660a1)=>{const _0x8e9627=_0x137374;for(var _0x5bce6c=_0x4660a1>0x1?void 0x0:_0x4660a1?On(_0x323397,_0x1b04b5):_0x323397,_0x226e3f=_0x3c216b[_0x8e9627(0x327)]-0x1,_0x47338b;_0x226e3f>=0x0;_0x226e3f--)(_0x47338b=_0x3c216b[_0x226e3f])&&(_0x5bce6c=_0x47338b(_0x5bce6c)||_0x5bce6c);return _0x5bce6c;},P=(_0x2cad86,_0x102dcc)=>(_0x22e7de,_0x3aec2e)=>_0x102dcc(_0x22e7de,_0x3aec2e,_0x2cad86);const Cn=_0x137374(0x318),Rn=_0x137374(0x329),Dn=_0x137374(0x391);let Ie=class extends _0x2dffbf{constructor(_0x537ded,_0x49af36,_0x28d60d,_0x47fffe,_0xbddf85,_0x403951,_0x367c05){const _0x27dd39=_0x137374;super(),_(this,_0x27dd39(0x3fd),null),_(this,_0x27dd39(0x29f),0x0),_(this,'_currentUsage',0x0),_(this,_0x27dd39(0x2b7),[]),_(this,_0x27dd39(0x363),0x0),(this[_0x27dd39(0x294)]=_0x537ded,this[_0x27dd39(0x233)]=_0x49af36,this['_configService']=_0x28d60d,this[_0x27dd39(0x31d)]=_0x47fffe,this[_0x27dd39(0x366)]=_0xbddf85,this['_logService']=_0x403951,this[_0x27dd39(0x403)]=_0x367c05,this['_initCommandInterceptor']());}[_0x137374(0x41d)](){const _0x3a4ec0=_0x137374;this[_0x3a4ec0(0x32c)](this[_0x3a4ec0(0x233)][_0x3a4ec0(0x3c4)]((_0x42743c,_0x3ab456)=>{const _0x2b7570=_0x3a4ec0;var _0xcdde61;if(_0x42743c['id']!==_0x3fa7c3['id'])return;const _0x5f5a17=_0x42743c['params'];if(!this[_0x2b7570(0x41e)]((_0xcdde61=_0x5f5a17[_0x2b7570(0x1f3)])!=null?_0xcdde61:[]))return;if(!this[_0x2b7570(0x31e)]())throw this['_checkAndWaitForCalculationPermission'](_0x42743c,_0x3ab456),this[_0x2b7570(0x3d0)](),new _0xaf0871();})),this[_0x3a4ec0(0x32c)](this[_0x3a4ec0(0x233)][_0x3a4ec0(0x23a)]((_0x1cbf81,_0x161b6c)=>{const _0x2fe5b0=_0x3a4ec0;if(_0x1cbf81['id']!==_0x18e3c7['id'])return;const _0x3f02db=_0x1cbf81[_0x2fe5b0(0x2c3)];if(vn(_0x3f02db)){const _0x29be58=_0x1a0884();this[_0x2fe5b0(0x2b7)]['push'](_0x29be58),this[_0x2fe5b0(0x388)](_0x29be58);}else{if(pn(_0x3f02db)&&this[_0x2fe5b0(0x2b7)][_0x2fe5b0(0x327)]>0x0){const _0x33fa56=this[_0x2fe5b0(0x2b7)]['shift']();this['_releaseCalculationLimit'](_0x33fa56);}}}));}[_0x137374(0x325)](){const _0x57891a=_0x137374;super[_0x57891a(0x325)](),this[_0x57891a(0x3e6)](),this[_0x57891a(0x2b7)]=[],this['_currentUsage']=0x0,this[_0x57891a(0x29f)]=0x0,this[_0x57891a(0x363)]=0x0;}async['_checkAndWaitForCalculationPermission'](_0x4ca819,_0x52273f){const _0xbab481=_0x137374;for(let _0x250a3f=0x0;_0x250a3f<0x1e;_0x250a3f++)try{if(await this[_0xbab481(0x2fc)](),this[_0xbab481(0x31e)]()){this['_applyCommand'](_0x4ca819,_0x52273f),this['_messageService']['show']({'content':this[_0xbab481(0x403)]['t']('formula.calculation.started'),'type':_0x17ce26[_0xbab481(0x214)]});return;}await new Promise(_0x1904ee=>{const _0x35ab20=_0xbab481;this['_pollingInterval']=window[_0x35ab20(0x22b)](_0x1904ee,0x3e8);});}catch(_0x45cd83){this[_0xbab481(0x2ff)][_0xbab481(0x349)](_0x45cd83);}this[_0xbab481(0x294)][_0xbab481(0x342)]({'content':this[_0xbab481(0x403)]['t'](_0xbab481(0x333)),'type':_0x17ce26[_0xbab481(0x41b)]});}[_0x137374(0x409)](_0x47424f,_0x566c31){const _0x1053c3=_0x137374;try{this[_0x1053c3(0x233)][_0x1053c3(0x2d6)](_0x47424f['id'],_0x47424f[_0x1053c3(0x2c3)],_0x566c31);}catch(_0x4830c3){this[_0x1053c3(0x2ff)][_0x1053c3(0x349)](_0x4830c3);}}[_0x137374(0x3fa)](_0x25f640,_0x575657){const _0x3cc7d9=_0x137374;_0x575657<this[_0x3cc7d9(0x363)]||(this[_0x3cc7d9(0x363)]=_0x575657,this[_0x3cc7d9(0x29f)]=Number[_0x3cc7d9(0x3ba)](_0x25f640[_0x3cc7d9(0x272)]),this[_0x3cc7d9(0x3df)]=Number[_0x3cc7d9(0x3ba)](_0x25f640['currentUsage']));}async[_0x137374(0x388)](_0x1c621d){const _0x508c7c=_0x137374;var _0x108f92,_0x45543a;const _0x1316a0=Date[_0x508c7c(0x340)]();try{const _0x14665b=((_0x108f92=this[_0x508c7c(0x26e)]['getConfig'](_0x1e86b8))==null?void 0x0:_0x108f92['startFormulaLimitUrl'])||Rn,_0x2473cd=(await this[_0x508c7c(0x31d)][_0x508c7c(0x2b6)](_0x14665b,{'body':JSON[_0x508c7c(0x30d)]({'taskId':_0x1c621d})}))[_0x508c7c(0x3f9)];if(((_0x45543a=_0x2473cd['error'])==null?void 0x0:_0x45543a[_0x508c7c(0x33c)])!==Z['OK'])return;this[_0x508c7c(0x3fa)](_0x2473cd[_0x508c7c(0x310)],_0x1316a0);}catch(_0xd94f12){this['_logService'][_0x508c7c(0x349)](_0xd94f12);}}async['_getFormulaLimitStatus'](_0x34c3b9){const _0x442a4e=_0x137374;var _0x5c95eb,_0x9957f0;const _0x4fb4a0=Date[_0x442a4e(0x340)]();try{const _0x490dde=((_0x5c95eb=this['_configService'][_0x442a4e(0x39c)](_0x1e86b8))==null?void 0x0:_0x5c95eb[_0x442a4e(0x37b)])||Cn,_0x2a4b2a=_0x34c3b9?_0x490dde+'?taskId='+encodeURIComponent(_0x34c3b9):_0x490dde,_0x7e2de2=(await this[_0x442a4e(0x31d)]['get'](_0x2a4b2a))[_0x442a4e(0x3f9)];if(((_0x9957f0=_0x7e2de2[_0x442a4e(0x349)])==null?void 0x0:_0x9957f0[_0x442a4e(0x33c)])!==Z['OK'])return;this[_0x442a4e(0x3fa)](_0x7e2de2[_0x442a4e(0x310)],_0x4fb4a0);}catch(_0x3d6d7f){this[_0x442a4e(0x2ff)][_0x442a4e(0x349)](_0x3d6d7f);}}async[_0x137374(0x40b)](_0x539c73){const _0x340d9b=_0x137374;var _0x48ca8d,_0x5b9453;const _0xefa3e3=Date[_0x340d9b(0x340)]();try{const _0x3061e2=((_0x48ca8d=this[_0x340d9b(0x26e)][_0x340d9b(0x39c)](_0x1e86b8))==null?void 0x0:_0x48ca8d[_0x340d9b(0x2ea)])||Dn,_0x4595f2=(await this[_0x340d9b(0x31d)][_0x340d9b(0x2b6)](_0x3061e2,{'body':JSON['stringify']({'taskId':_0x539c73})}))[_0x340d9b(0x3f9)];if(((_0x5b9453=_0x4595f2[_0x340d9b(0x349)])==null?void 0x0:_0x5b9453[_0x340d9b(0x33c)])!==Z['OK'])return;this[_0x340d9b(0x3fa)](_0x4595f2[_0x340d9b(0x310)],_0xefa3e3);}catch(_0x19a38d){this[_0x340d9b(0x2ff)][_0x340d9b(0x349)](_0x19a38d);}}[_0x137374(0x31e)](){const _0x459cab=_0x137374;return this['_maxFormulaLimit']===0x0?!0x0:this[_0x459cab(0x29f)]-this['_currentUsage']>0x0;}[_0x137374(0x3e6)](){const _0x11d6d4=_0x137374;this['_pollingInterval']&&(clearTimeout(this[_0x11d6d4(0x3fd)]),this[_0x11d6d4(0x3fd)]=null);}['_showGuardMessage'](){const _0x21c0e0=_0x137374;this[_0x21c0e0(0x294)]['show']({'content':this[_0x21c0e0(0x403)]['t'](_0x21c0e0(0x1dd)),'type':_0x17ce26['Loading']});}[_0x137374(0x41e)](_0x3316bc){const _0x5473ea=_0x137374;for(const _0x3001f9 of _0x3316bc){const {unitId:_0x205873,sheetId:_0x2a45ea,range:_0x217d6b}=_0x3001f9,_0x4d44c0=this[_0x5473ea(0x366)][_0x5473ea(0x226)](_0x205873);if(!_0x4d44c0)continue;const _0x35c587=_0x4d44c0[_0x5473ea(0x2f4)](_0x2a45ea);if(!_0x35c587)continue;const _0x350485=_0x35c587['getCellMatrix']();for(let _0x5907ed=_0x217d6b['startRow'];_0x5907ed<=_0x217d6b['endRow'];_0x5907ed++)for(let _0x1e63f2=_0x217d6b[_0x5473ea(0x234)];_0x1e63f2<=_0x217d6b[_0x5473ea(0x21b)];_0x1e63f2++){const _0x1d044c=_0x350485[_0x5473ea(0x352)](_0x5907ed,_0x1e63f2);if(_0x1d044c&&(_0x34edce(_0x1d044c['f'])||_0x669a1e(_0x1d044c['si'])))return!0x0;}}return!0x1;}};Ie=Tn([P(0x0,_0x23f7c2(_0x3d39b5)),P(0x1,_0x532ba9),P(0x2,_0x33a0bc),P(0x3,_0x23f7c2(_0x2410da)),P(0x4,_0x14d7a9),P(0x5,_0x4cfb97),P(0x6,_0x23f7c2(_0x55a4a7))],Ie);var Nn=Object[_0x137374(0x2cb)],bn=(_0x1681d8,_0x362502,_0xe7509a,_0x574d5c)=>{for(var _0x15e5cf=_0x574d5c>0x1?void 0x0:_0x574d5c?Nn(_0x362502,_0xe7509a):_0x362502,_0x14355b=_0x1681d8['length']-0x1,_0x1887c5;_0x14355b>=0x0;_0x14355b--)(_0x1887c5=_0x1681d8[_0x14355b])&&(_0x15e5cf=_0x1887c5(_0x15e5cf)||_0x15e5cf);return _0x15e5cf;},Ue=(_0x34b88f,_0x17ca47)=>(_0x260ab1,_0x1c3165)=>_0x17ca47(_0x260ab1,_0x1c3165,_0x34b88f);let He=class extends _0x2dffbf{constructor(_0x3bd13e,_0x1621ca,_0x57d284){const _0x287e48=_0x137374;super(),_(this,_0x287e48(0x262),new Map()),_(this,_0x287e48(0x1f6),new Map()),_(this,_0x287e48(0x2ac),!0x1),(this[_0x287e48(0x26e)]=_0x3bd13e,this[_0x287e48(0x402)]=_0x1621ca,this[_0x287e48(0x34a)]=_0x57d284);}[_0x137374(0x395)](){const _0x5ec6c5=_0x137374;this[_0x5ec6c5(0x2ac)]=!0x0;}[_0x137374(0x279)](){const _0x34cd82=_0x137374;this[_0x34cd82(0x2ac)]=!0x1;}get[_0x137374(0x36c)](){const _0x36cc02=_0x137374;return this[_0x36cc02(0x1f6)];}['dispose'](){const _0x279ce8=_0x137374;this['exhaustSavingTask']()[_0x279ce8(0x312)](()=>super[_0x279ce8(0x325)]());}async[_0x137374(0x243)](_0xf96e56){const _0x5ecdf4=_0x137374;return this[_0x5ecdf4(0x2ac)]?null:this['_localStorageService']['getItem'](_0xe796ed(_0xf96e56));}async[_0x137374(0x24a)](_0xf2fc9f,_0x5a756d){const _0xb2f18e=_0x137374;return!!this['_localStorageService'][_0xb2f18e(0x2ae)](_0xf2fc9f,_0x5a756d);}[_0x137374(0x3b3)](_0x31c974,_0x5f2258,_0x3cc75f,_0x458119){const _0x5ded57=_0x137374,_0x40429b=this[_0x5ded57(0x34a)][_0x5ded57(0x2d2)](_0x31c974);this['_cachedData'][_0x5ded57(0x308)](_0x31c974,{'unitID':_0x31c974,'type':_0x5f2258,'awaitingChangeset':_0x3cc75f,'mutations':_0x458119,'rev':_0x40429b}),this[_0x5ded57(0x1f6)]['has'](_0x31c974)||this[_0x5ded57(0x1e4)](_0x31c974);}[_0x137374(0x1e4)](_0x1b794c){const _0x525db5=_0x137374,_0x599a49=this['_getSaveTimeout']();_0x599a49===0x0?this[_0x525db5(0x261)](_0x1b794c):this[_0x525db5(0x1f6)][_0x525db5(0x308)](_0x1b794c,setTimeout(()=>this['_saveCache'](_0x1b794c),_0x599a49));}['_getSaveTimeout'](){const _0x2a7a49=_0x137374;var _0x1538db;return(_0x1538db=this[_0x2a7a49(0x26e)]['getConfig'](_0x5a78ff))!=null?_0x1538db:_0x48566c;}[_0x137374(0x261)](_0x25be46){const _0x33c651=_0x137374,_0x290846=this[_0x33c651(0x1f6)]['get'](_0x25be46);return _0x290846!==void 0x0&&window[_0x33c651(0x216)](_0x290846),this['_localStorageService'][_0x33c651(0x2ae)](_0xe796ed(_0x25be46),this[_0x33c651(0x262)]['get'](_0x25be46))[_0x33c651(0x312)](()=>this[_0x33c651(0x1f6)][_0x33c651(0x2c2)](_0x25be46));}async[_0x137374(0x1df)](){const _0x5a45c1=_0x137374,_0x4e6072=[];this[_0x5a45c1(0x1f6)]['forEach']((_0x5db05f,_0xfd122d)=>{const _0x294c97=_0x5a45c1;window[_0x294c97(0x216)](_0x5db05f),_0x4e6072['push'](this[_0x294c97(0x261)](_0xfd122d)[_0x294c97(0x312)](()=>{const _0x5dba3d=_0x294c97;this[_0x5dba3d(0x1f6)][_0x5dba3d(0x2c2)](_0xfd122d);}));}),await Promise[_0x5a45c1(0x356)](_0x4e6072);}};He=bn([Ue(0x0,_0x33a0bc),Ue(0x1,_0x2c6c03),Ue(0x2,_0x23f7c2(_0x29aef1))],He);class Ln extends _0xa32225{constructor(){const _0x119da6=_0x137374;super(),_(this,_0x119da6(0x317)),this[_0x119da6(0x317)]=_0x58ef8d(window,_0x119da6(0x405))['pipe'](_0x1d8ed1(this[_0x119da6(0x3c7)]),_0x411e24(0x1),_0x5b150f(void 0x0));}[_0x137374(0x324)](_0x3ff5b3,_0x1f66c1,_0x4e8de7=!0x1){const _0x216095=_0x137374,_0x280781=new URL(window[_0x216095(0x316)][_0x216095(0x2e4)]);_0x280781[_0x216095(0x2a5)][_0x216095(0x308)](_0x3ff5b3,_0x1f66c1),_0x4e8de7?window[_0x216095(0x292)][_0x216095(0x400)]('','',_0x280781[_0x216095(0x3be)]()):window[_0x216095(0x292)][_0x216095(0x3aa)]('','',_0x280781['toString']());}[_0x137374(0x3cb)](_0xd017d0,_0x372e95=!0x1){const _0x5834f3=_0x137374,_0x52985e=new URL(window[_0x5834f3(0x316)][_0x5834f3(0x2e4)]);_0x52985e[_0x5834f3(0x2a5)]['delete'](_0xd017d0),_0x372e95?window[_0x5834f3(0x292)][_0x5834f3(0x400)]('','',_0x52985e[_0x5834f3(0x3be)]()):window['history']['pushState']('','',_0x52985e[_0x5834f3(0x3be)]());}['getParam'](_0x87286a){const _0x46eb98=_0x137374;var _0x44aae0;return(_0x44aae0=new URL(window[_0x46eb98(0x316)][_0x46eb98(0x2e4)])[_0x46eb98(0x2a5)]['get'](_0x87286a))!=null?_0x44aae0:void 0x0;}}var Un=Object[_0x137374(0x35b)],Mn=Object[_0x137374(0x2cb)],An=(_0x544042,_0xe70fbf,_0x193bd4)=>_0xe70fbf in _0x544042?Un(_0x544042,_0xe70fbf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x193bd4}):_0x544042[_0xe70fbf]=_0x193bd4,Pn=(_0x2844da,_0x43a117,_0x3bc695,_0x151564)=>{for(var _0x471cff=_0x151564>0x1?void 0x0:_0x151564?Mn(_0x43a117,_0x3bc695):_0x43a117,_0x2546a6=_0x2844da['length']-0x1,_0x5b19cf;_0x2546a6>=0x0;_0x2546a6--)(_0x5b19cf=_0x2844da[_0x2546a6])&&(_0x471cff=_0x5b19cf(_0x471cff)||_0x471cff);return _0x471cff;},Me=(_0x29a830,_0x41cb79)=>(_0x1a1c23,_0x47faa5)=>_0x41cb79(_0x1a1c23,_0x47faa5,_0x29a830),wn=(_0x10aa3d,_0x2668a4,_0x448cdf)=>An(_0x10aa3d,_0x2668a4+'',_0x448cdf);const yn=_0x137374(0x203);let Ye=class extends _0xa676fd{constructor(_0x39c036=_t,_0x5781c9,_0x16fe12,_0x4d03d6){const _0x5cd181=_0x137374;super(),this[_0x5cd181(0x25c)]=_0x39c036,this[_0x5cd181(0x2d9)]=_0x5781c9,this[_0x5cd181(0x265)]=_0x16fe12,this[_0x5cd181(0x26e)]=_0x4d03d6;const {..._0x1c85d7}=_0x2a3f8e({},_t,this[_0x5cd181(0x25c)]);this[_0x5cd181(0x26e)]['setConfig'](hn,_0x1c85d7);}[_0x137374(0x23f)](){const _0x308bb8=_0x137374;this[_0x308bb8(0x29e)](),this['_initDependencies']();}[_0x137374(0x3b2)](){this['_registerRenderDependencies']();}[_0x137374(0x29e)](){const _0x1ab14f=_0x137374;var _0x129c47;const _0x454370=[[Ke],[Ie],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x499c83,{'useClass':_0x18cf93}],[_0x2b1e85,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0x1ab14f(0x25c)][_0x1ab14f(0x212)]&&_0x454370['push']([le]),_0x5d6cf9(this[_0x1ab14f(0x265)],_0x5e1524(_0x454370,(_0x129c47=this[_0x1ab14f(0x25c)])==null?void 0x0:_0x129c47['override']));}[_0x137374(0x238)](){const _0x54be65=_0x137374;this[_0x54be65(0x32c)](this[_0x54be65(0x2d9)]['registerRenderModule'](_0x221888[_0x54be65(0x2f2)],[Fe])),this[_0x54be65(0x32c)](this[_0x54be65(0x2d9)][_0x54be65(0x2c9)](_0x221888[_0x54be65(0x35c)],[ke]));}[_0x137374(0x1fd)](){const _0x176b08=_0x137374;_0x41e9c7(this[_0x176b08(0x265)],[[H],[ae],[Se],[_e],[ce],[Ie]]),this[_0x176b08(0x25c)][_0x176b08(0x212)]&&_0x41e9c7(this['_injector'],[[le]]);}};wn(Ye,_0x137374(0x283),yn),Ye=Pn([_0x7f4b09(_0x5d1b34),Me(0x1,_0x46c3d4),Me(0x2,_0x23f7c2(_0x1173e2)),Me(0x3,_0x33a0bc)],Ye);var $n=Object[_0x137374(0x2cb)],xn=(_0x1afbb9,_0x397457,_0x1619b5,_0x8eb2c2)=>{const _0x1b48f4=_0x137374;for(var _0x368dd4=_0x8eb2c2>0x1?void 0x0:_0x8eb2c2?$n(_0x397457,_0x1619b5):_0x397457,_0x1257fe=_0x1afbb9[_0x1b48f4(0x327)]-0x1,_0x19920b;_0x1257fe>=0x0;_0x1257fe--)(_0x19920b=_0x1afbb9[_0x1257fe])&&(_0x368dd4=_0x19920b(_0x368dd4)||_0x368dd4);return _0x368dd4;},J=(_0x11ed9c,_0x350896)=>(_0x380e39,_0x5a7813)=>_0x350896(_0x380e39,_0x5a7813,_0x11ed9c);let ut=class extends _0x3c5468{constructor(_0x371ac0,_0xbeeeca,_0x4f0d5d,_0x3dd535,_0x3b0524){super(_0x371ac0,_0xbeeeca,_0x4f0d5d,_0x3dd535,_0x3b0524);}async[_0x137374(0x382)](_0x2f26b4){const _0x22e29e=_0x137374,_0x1754c6=await this[_0x22e29e(0x3e4)](),_0x2733a5=this[_0x22e29e(0x387)](_0x2f26b4,_0x1754c6);return this[_0x22e29e(0x396)](_0x2733a5);}[_0x137374(0x387)](_0x2ffa8d,_0x5159a7){const _0x541ff1=_0x137374,_0x2109f5=typeof window>'u'?new URL(_0x2ffa8d):new URL(_0x2ffa8d,window[_0x541ff1(0x316)]['origin']);_0x2109f5[_0x541ff1(0x2a5)][_0x541ff1(0x308)]('sessionTicket',_0x5159a7);const _0x4e5d6c=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x541ff1(0x316)][_0x541ff1(0x381)]);return _0x4e5d6c[_0x541ff1(0x34d)](_0x541ff1(0x2f7))&&_0x2109f5[_0x541ff1(0x2a5)][_0x541ff1(0x308)]('runId',_0x4e5d6c['get'](_0x541ff1(0x2f7))),_0x2109f5[_0x541ff1(0x3be)]();}async[_0x137374(0x3e4)](){const _0x406a36=_0x137374;var _0x13c79b,_0x4d2b26,_0x46878d;const _0x5c44a3=this[_0x406a36(0x26e)][_0x406a36(0x39c)](_0x1e86b8),_0x348948=(_0x13c79b=_0x5c44a3==null?void 0x0:_0x5c44a3[_0x406a36(0x27f)])!=null?_0x13c79b:_0x3801bf;return(_0x46878d=(_0x4d2b26=(await this[_0x406a36(0x31d)]['get'](_0x348948,{'headers':{'Content-Type':_0x406a36(0x411)}}))['body'])==null?void 0x0:_0x4d2b26[_0x406a36(0x33b)])!=null?_0x46878d:'';}};ut=xn([J(0x0,_0x23f7c2(_0x1173e2)),J(0x1,_0x23f7c2(_0x2410da)),J(0x2,_0x33a0bc),J(0x3,_0x4cfb97),J(0x4,_0x425c73)],ut);var Bn=Object[_0x137374(0x2cb)],Fn=(_0x4f4e1d,_0x47e7e0,_0x1ceefa,_0x504e8e)=>{const _0x4d3c47=_0x137374;for(var _0x5f516b=_0x504e8e>0x1?void 0x0:_0x504e8e?Bn(_0x47e7e0,_0x1ceefa):_0x47e7e0,_0x7589e4=_0x4f4e1d[_0x4d3c47(0x327)]-0x1,_0x5a3e7d;_0x7589e4>=0x0;_0x7589e4--)(_0x5a3e7d=_0x4f4e1d[_0x7589e4])&&(_0x5f516b=_0x5a3e7d(_0x5f516b)||_0x5f516b);return _0x5f516b;},Ae=(_0x241f6d,_0x874214)=>(_0x5c08b7,_0x54550f)=>_0x874214(_0x5c08b7,_0x54550f,_0x241f6d);let dt=class extends _0x2dffbf{constructor(_0xfd8e0,_0x43d78d,_0x19cd04){const _0x404e2a=_0x137374;super(),this[_0x404e2a(0x2b9)]=_0xfd8e0,this['_httpService']=_0x43d78d,this['_configService']=_0x19cd04;}async['runOnServer'](_0x461ad2,_0xbbb50a,_0x3afc35,..._0x304b39){const _0x53fa50=_0x137374;var _0x2bba62,_0x3aeb24,_0x3ac0c0,_0x57b6f5;const _0x22ae42=this[_0x53fa50(0x2b9)]['getFocusedUnit']();if(!_0x22ae42)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x2e2c0d=((_0x2bba62=this[_0x53fa50(0x26e)][_0x53fa50(0x39c)](_0x599585))!=null?_0x2bba62:_0xe555a2)+'/'+_0x461ad2+_0x53fa50(0x35a)+_0xbbb50a,_0x37c271=new URL(window['location'][_0x53fa50(0x2e4)]),_0xf3e2e3={'scriptId':_0x461ad2,'runId':(_0x3aeb24=_0x37c271[_0x53fa50(0x2a5)][_0x53fa50(0x34d)]('runId'))!=null?_0x3aeb24:'','function':_0xbbb50a,'unitId':_0x22ae42[_0x53fa50(0x254)](),'argsOfFunction':JSON[_0x53fa50(0x30d)](_0x304b39),'invokeId':(_0x3ac0c0=_0x3afc35[_0x53fa50(0x3b5)])!=null?_0x3ac0c0:'','executionId':(_0x57b6f5=_0x3afc35[_0x53fa50(0x268)])!=null?_0x57b6f5:''};try{const _0x324635=await this[_0x53fa50(0x31d)]['post'](_0x2e2c0d,{'body':_0xf3e2e3});return _0x324635[_0x53fa50(0x3f9)][_0x53fa50(0x349)]&&_0x324635[_0x53fa50(0x3f9)][_0x53fa50(0x349)][_0x53fa50(0x33c)]!==Z['OK']?_0x53fa50(0x3d7):_0x324635[_0x53fa50(0x3f9)][_0x53fa50(0x252)];}catch{return _0x53fa50(0x3d7);}}};dt=Fn([Ae(0x0,_0x14d7a9),Ae(0x1,_0x23f7c2(_0x2410da)),Ae(0x2,_0x33a0bc)],dt);const St=0x7530,It=_0x137374(0x2b1);class rr extends _0x2dffbf{constructor(){const _0x67a4ab=_0x137374;super(),_(this,_0x67a4ab(0x41c),_0x1a0884()),_(this,'_selfUnitIDs',new Set()),_(this,_0x67a4ab(0x255),new Map()),_(this,_0x67a4ab(0x2a0),null),_(this,_0x67a4ab(0x218),new Map()),_(this,'_unitStatus',new Map()),this[_0x67a4ab(0x1de)]();}[_0x137374(0x325)](){const _0x2350bd=_0x137374;super[_0x2350bd(0x325)](),this[_0x2350bd(0x218)][_0x2350bd(0x343)]((_0x524bfd,_0x3de0b0)=>this[_0x2350bd(0x2ec)](_0x3de0b0)),this[_0x2350bd(0x2a0)]&&window[_0x2350bd(0x39b)](this[_0x2350bd(0x2a0)]);}[_0x137374(0x26b)](_0x4c60d9){const _0x2c641a=_0x137374;return this[_0x2c641a(0x24d)](_0x4c60d9)[_0x2c641a(0x25f)](_0x553790());}[_0x137374(0x2c5)](_0x5401c2){const _0x3197fc=_0x137374;this[_0x3197fc(0x2bc)][_0x3197fc(0x2c7)]===0x0&&this[_0x3197fc(0x1f9)](),this[_0x3197fc(0x2bc)][_0x3197fc(0x37d)](_0x5401c2),this['_send']({'type':0x0,'memberID':this[_0x3197fc(0x41c)],'unitIDs':[_0x5401c2],'isForwarded':!0x1});}[_0x137374(0x35d)](_0x52c9a4){const _0x18984a=_0x137374;this[_0x18984a(0x2bc)][_0x18984a(0x2c2)](_0x52c9a4),this[_0x18984a(0x2bc)][_0x18984a(0x2c7)]===0x0&&this[_0x18984a(0x2a0)]&&window[_0x18984a(0x39b)](this[_0x18984a(0x2a0)]);}['_init'](){const _0x5bca3f=_0x137374;this[_0x5bca3f(0x32c)](_0x10b382(_0x58ef8d(window,_0x5bca3f(0x303))[_0x5bca3f(0x305)](_0x3e25e9=>{const _0x54c560=_0x5bca3f;if(_0x3e25e9[_0x54c560(0x2c8)]!==It||!_0x3e25e9['newValue'])return;const _0x15e382=JSON['parse'](_0x3e25e9['newValue']);this[_0x54c560(0x38b)](_0x15e382);}))),window[_0x5bca3f(0x417)](_0x5bca3f(0x24b),()=>this['_send']({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x5bca3f(0x377)](this[_0x5bca3f(0x2bc)])}));}['_handleEvent'](_0x2d9a22){const _0x20cdcf=_0x137374;switch(_0x2d9a22[_0x20cdcf(0x404)]){case 0x0:this['_handleJoinEvent'](_0x2d9a22);break;case 0x1:this[_0x20cdcf(0x3fc)](_0x2d9a22);break;case 0x2:this[_0x20cdcf(0x1fe)](_0x2d9a22);break;}}[_0x137374(0x3f4)](_0x28c309){const _0x217b8f=_0x137374,{unitIDs:_0x2ee2fd,memberID:_0x37b1e5,isForwarded:_0x1117f3}=_0x28c309;_0x2ee2fd[_0x217b8f(0x343)](_0x506752=>{const _0xb24ca3=_0x217b8f;if(!_0x1117f3&&this[_0xb24ca3(0x255)][_0xb24ca3(0x3ea)](_0x506752)&&this['_ensureSubject'](_0x506752)[_0xb24ca3(0x28d)](_0xb88388['OTHER_CLIENTS_EDITING']),!this[_0xb24ca3(0x255)][_0xb24ca3(0x3ea)](_0x506752)||!this[_0xb24ca3(0x255)][_0xb24ca3(0x34d)](_0x506752)[_0xb24ca3(0x3ea)](_0x37b1e5)){const _0x5def34=this[_0xb24ca3(0x255)][_0xb24ca3(0x34d)](_0x506752)||new Set();_0x5def34['add'](_0x37b1e5),this['_unitOnClients']['set'](_0x506752,_0x5def34),this['_scheduleClearOtherTimer'](_0x37b1e5);}}),_0x1117f3||this[_0x217b8f(0x2a7)]({'type':0x0,'memberID':this[_0x217b8f(0x41c)],'unitIDs':[...this[_0x217b8f(0x2bc)]],'isForwarded':!0x0});}[_0x137374(0x3a6)](_0x26f8f4){const _0x2a90d3=_0x137374;this[_0x2a90d3(0x2ec)](_0x26f8f4);const _0x4d0dd3=window[_0x2a90d3(0x22b)](()=>{const _0x313289=_0x2a90d3;this[_0x313289(0x255)]['forEach'](_0x1a814e=>{_0x1a814e['delete'](_0x26f8f4);});},St*0x2);this[_0x2a90d3(0x218)][_0x2a90d3(0x308)](_0x26f8f4,_0x4d0dd3);}['_removeClearOtherTimer'](_0x2dd0f8){const _0x458ebe=_0x137374;if(this['_clearOtherTimers'][_0x458ebe(0x3ea)](_0x2dd0f8)){const _0x5584da=this[_0x458ebe(0x218)][_0x458ebe(0x34d)](_0x2dd0f8);_0x5584da&&window[_0x458ebe(0x216)](_0x5584da),this[_0x458ebe(0x218)][_0x458ebe(0x308)](_0x2dd0f8,null);}}[_0x137374(0x3fc)](_0x50b52c){const _0x5381aa=_0x137374,{memberID:_0x293572,unitIDs:_0x55fc7a}=_0x50b52c;_0x55fc7a[_0x5381aa(0x343)](_0x30513b=>{const _0x41258f=_0x5381aa;var _0x54acf3;const _0x1a0ec6=this[_0x41258f(0x255)]['get'](_0x30513b);_0x1a0ec6&&(_0x1a0ec6[_0x41258f(0x2c2)](_0x293572),(_0x54acf3=this[_0x41258f(0x24d)](_0x30513b))==null||_0x54acf3['next'](_0x1a0ec6['size']===0x0?_0xb88388['NO_OTHER_CLIENTS_EDITING']:_0xb88388['OTHER_CLIENTS_EDITING']));}),this['_removeClearOtherTimer'](_0x293572);}[_0x137374(0x1fe)](_0x33f0f1){const _0x51ba95=_0x137374;this[_0x51ba95(0x3a6)](_0x33f0f1[_0x51ba95(0x3d9)]);}[_0x137374(0x2a7)](_0x2be42f){const _0x29f359=_0x137374;localStorage['setItem'](It,JSON[_0x29f359(0x30d)](_0x2be42f));}['_scheduleHeartbeat'](){const _0x1fe2dc=_0x137374;this[_0x1fe2dc(0x2a0)]=window[_0x1fe2dc(0x414)](()=>{const _0x18ac62=_0x1fe2dc;this[_0x18ac62(0x2a7)]({'type':0x2,'memberID':this['_id']});},St);}[_0x137374(0x24d)](_0x5eb84c){const _0x17a70a=_0x137374;return this[_0x17a70a(0x278)][_0x17a70a(0x3ea)](_0x5eb84c)||this[_0x17a70a(0x278)][_0x17a70a(0x308)](_0x5eb84c,new _0x5b93d9(_0xb88388['NO_OTHER_CLIENTS_EDITING'])),this['_unitStatus'][_0x17a70a(0x34d)](_0x5eb84c);}}export{ut as BrowserCollaborationSocketService,ce as CollaborationDataLoaderController,ae as DesktopCollaborationStatusDisplayController,yt as IURLService,dt as RemoteUniscriptService,tn as SheetCollabCursorShape,Ye as UniverCollaborationClientUIPlugin,rr as WebBrowserSingleActiveUnitService,Ln as WebURLService};
|