@univerjs-pro/collaboration-client-ui 0.12.4-experimental.20251210-d708bff → 0.12.4-experimental.20251210-29c379a
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 +15 -15
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x46d0db=_0x4fdf;(function(_0x39b706,_0x28f744){const _0x13e2d2=_0x4fdf,_0x3e367d=_0x39b706();while(!![]){try{const _0x4ae0f5=parseInt(_0x13e2d2(0x2d8))/0x1*(parseInt(_0x13e2d2(0x2df))/0x2)+parseInt(_0x13e2d2(0x201))/0x3*(-parseInt(_0x13e2d2(0x3e5))/0x4)+-parseInt(_0x13e2d2(0x247))/0x5+-parseInt(_0x13e2d2(0x248))/0x6*(-parseInt(_0x13e2d2(0x1db))/0x7)+parseInt(_0x13e2d2(0x3da))/0x8+parseInt(_0x13e2d2(0x276))/0x9*(-parseInt(_0x13e2d2(0x3cf))/0xa)+parseInt(_0x13e2d2(0x2bd))/0xb*(parseInt(_0x13e2d2(0x395))/0xc);if(_0x4ae0f5===_0x28f744)break;else _0x3e367d['push'](_0x3e367d['shift']());}catch(_0x489da9){_0x3e367d['push'](_0x3e367d['shift']());}}}(_0x55b3,0x8a25e));var Yt=Object[_0x46d0db(0x20a)],Wt=(_0xbdedb,_0x326ec6,_0x3e907a)=>_0x326ec6 in _0xbdedb?Yt(_0xbdedb,_0x326ec6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3e907a}):_0xbdedb[_0x326ec6]=_0x3e907a,_=(_0x2228ce,_0x2c5260,_0x14ef0e)=>Wt(_0x2228ce,typeof _0x2c5260!=_0x46d0db(0x3bb)?_0x2c5260+'':_0x2c5260,_0x14ef0e);import{jsx as _0x51cab3,jsxs as _0xd762c0}from'react/jsx-runtime';import{CollaborationStatus as _0x3a48be,CollaborationSessionService as _0x3840d4,CollaborationController as _0x1e646e,DataLoaderService as _0x549625,MemberService as _0x245c8d,SessionStatus as _0x61e47f,ILocalCacheService as _0x30567e,CollaborationUIEventService as _0x1f424b,CollaborationUIEventId as _0x31159c,DocCollaborationEntity as _0x311d59,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x331045,getLocalCacheKey as _0x5d5e14,LOCAL_CACHE_INTERVAL as _0x41d58a,LOCAL_CACHE_INTERVAL_KEY as _0x57a441,UniverCollaborationClientPlugin as _0x930682,CollaborationSocketService as _0x1bb4a1,DEFAULT_WS_SESSION_TICKET_URL as _0x202521,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x155d53,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0xac7d50,UnitStatus as _0x4155df}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x4fbd2b,IUniverInstanceService as _0x2b2591,Inject as _0xea701b,Injector as _0x29824e,Disposable as _0x325e21,createIdentifier as _0xc99d95,ILogService as _0xf63a71,ICommandService as _0x1f0fa6,Optional as _0x12132d,RxDisposable as _0x4128f2,Workbook as _0x725426,DOC_RANGE_TYPE as _0x4dd949,debounce as _0x1530e6,Rectangle as _0x26b4f0,DisposableCollection as _0x4f5214,toDisposable as _0xd54434,UniverInstanceType as _0xee6b2,generateRandomId as _0x316c01,COLORS as _0x3433f6,ColorKit as _0xe4264a,ThemeService as _0x4e6929,fromEventSubject as _0x572b71,Tools as _0x193f3d,CommandType as _0x32d026,IConfigService as _0x2f71c6,CanceledError as _0x391ab4,isFormulaString as _0x2c0875,isFormulaId as _0x2d1200,ILocalStorageService as _0x2b6927,DependentOn as _0x514518,Plugin as _0x77b34d,merge as _0x2e11c2,registerDependencies as _0x29599c,mergeOverrideWithDependencies as _0x250639,touchDependencies as _0x2e2d25}from'@univerjs/core';import{useObservable as _0x47d542,useDependency as _0x158269,IUIPartsService as _0x5d7c5f,BuiltInUIPart as _0x5de6e0,connectInjector as _0x2a8b05,IBeforeCloseService as _0x17bc31,IMessageService as _0x25d450,INotificationService as _0x1b2ee8}from'@univerjs/ui';import{BehaviorSubject as _0xe5dabe,switchMap as _0xd3a12e,of as _0x45fb3c,takeUntil as _0x3a9d76,debounceTime as _0x225383,Subject as _0x4f3095,filter as _0x271fea,merge as _0x3bcfd6,combineLatest as _0x251a62,fromEvent as _0x550027,shareReplay as _0x34a5e8,mapTo as _0x20a6b6,distinctUntilChanged as _0x10b6a3}from'rxjs';import{Tooltip as _0x4e5e2a,clsx as _0x252119,MessageType as _0x404ab1}from'@univerjs/design';import{useRef as _0x5db2b9,createElement as _0x43157b,forwardRef as _0x95f0e,useCallback as _0x269898}from'react';import{IRemoteInstanceService as _0x35262a}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x1bdbdc,RefRangeService as _0x1ea0ab,SetSelectionsOperation as _0x508f0e,SheetsSelectionsService as _0x152304,EffectRefRangId as _0x5a6104,handleIRemoveRow as _0x3ecfc5,handleIRemoveCol as _0x4b771b,handleMoveRange as _0x17daf7,handleInsertRow as _0x52d453,handleInsertRangeMoveRight as _0x326a81,handleInsertRangeMoveDown as _0x53880d,handleInsertCol as _0x34e3c9,handleDeleteRangeMoveUp as _0x2a052e,handleDeleteRangeMoveLeft as _0x2f32e9,runRefRangeMutations as _0x544486}from'@univerjs/sheets';import{Shape as _0x374fb5,Rect as _0x4dbc14,getColor as _0x44ad87,RegularPolygon as _0xa81d5e,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x2da767,Vector2 as _0x1a7621,SHEET_VIEWPORT_KEY as _0x546f5f,IRenderManagerService as _0x38baec}from'@univerjs/engine-render';import{HTTPService as _0x146466,ISocketService as _0x2e5978,WebSocketService as _0x20f03b}from'@univerjs/network';import{IDocClipboardService as _0x6db524,NodePositionConvertToCursor as _0x880a56,NodePositionConvertToRectRange as _0x42b1b8,TEXT_RANGE_LAYER_INDEX as _0x2d25d8,SetDocZoomRatioOperation as _0x4d07bf,DocIMEInputManagerService as _0x6b1360,DocStateChangeManagerService as _0x369bb6}from'@univerjs/docs-ui';import{IImageIoService as _0x18da6b}from'@univerjs/drawing';import{ITransformService as _0x3ec468,CollaborationEvent as _0x3e05c7,isTransformMutationFailure as _0xe71731,isTransformMutationsWithChangesetSuccess as _0x4984e5,RevisionService as _0x3bad50,ISnapshotServerService as _0x189b23}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x30df8b,RichTextEditingMutation as _0xef6574,DocSelectionManagerService as _0x11d383,DocSkeletonManagerService as _0x169330}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x85a7b4,serializeRangeWithSheet as _0x545e12,FormulaExecuteStageType as _0x33e62e,FormulaExecutedStateType as _0x5107e3,SetFormulaCalculationStartMutation as _0xd13b4b,SetFormulaCalculationNotificationMutation as _0x4191e8}from'@univerjs/engine-formula';import{map as _0x2a3dd6,filter as _0x82a1f5,throttleTime as _0x2e9f56,takeUntil as _0x402121,switchMap as _0x310d20}from'rxjs/operators';import{SheetSkeletonManagerService as _0x437ffc,getCoordByCell as _0x58f1da,getSheetObject as _0x146077}from'@univerjs/sheets-ui';function Ge({ref:_0x34f134,..._0x2476d5}){const _0x2139c8=_0x46d0db,{icon:_0x57cc9c,id:_0x5d556a,className:_0x3bad63,extend:_0x43b964,..._0x3ab409}=_0x2476d5,_0x5126d0=(_0x2139c8(0x293)+_0x5d556a+'\x20'+(_0x3bad63||''))[_0x2139c8(0x255)](),_0x2e8302=_0x5db2b9('_'+vi());return At(_0x57cc9c,''+_0x5d556a,{'defIds':_0x57cc9c[_0x2139c8(0x1d9)],'idSuffix':_0x2e8302[_0x2139c8(0x1ed)]},{'ref':_0x34f134,'className':_0x5126d0,..._0x3ab409},_0x43b964);}function At(_0x37234d,_0x2c2f17,_0x5a740e,_0x18ecc5,_0x55f43a){const _0x52577f=_0x46d0db;return _0x43157b(_0x37234d[_0x52577f(0x3ae)],{'key':_0x2c2f17,...gi(_0x37234d,_0x5a740e,_0x55f43a),..._0x18ecc5},(Ei(_0x37234d,_0x5a740e)[_0x52577f(0x31f)]||[])[_0x52577f(0x2ee)]((_0x54f9f9,_0x1c3522)=>At(_0x54f9f9,_0x2c2f17+'-'+_0x37234d[_0x52577f(0x3ae)]+'-'+_0x1c3522,_0x5a740e,void 0x0,_0x55f43a)));}function gi(_0x4ecd9f,_0x119991,_0x54d52a){const _0xb71148=_0x46d0db,_0x250082={..._0x4ecd9f['attrs']};_0x54d52a!=null&&_0x54d52a['colorChannel1']&&_0x250082[_0xb71148(0x30b)]===_0xb71148(0x2e0)&&(_0x250082[_0xb71148(0x30b)]=_0x54d52a['colorChannel1']),_0x4ecd9f['tag']===_0xb71148(0x1eb)&&_0x250082['id']&&(_0x250082['id']=_0x250082['id']+_0x119991[_0xb71148(0x39c)]),Object[_0xb71148(0x259)](_0x250082)[_0xb71148(0x207)](([_0x470fb4,_0x4d7876])=>{const _0x1ac351=_0xb71148;_0x470fb4===_0x1ac351(0x1eb)&&typeof _0x4d7876==_0x1ac351(0x347)&&(_0x250082[_0x470fb4]=_0x4d7876[_0x1ac351(0x286)](/url\(#(.*)\)/,_0x1ac351(0x1dc)+_0x119991['idSuffix']+')'));});const {defIds:_0x43b483}=_0x119991;return!_0x43b483||_0x43b483['length']===0x0||(_0x4ecd9f['tag']===_0xb71148(0x21f)&&_0x250082['xlink:href']&&(_0x250082[_0xb71148(0x2be)]=_0x250082[_0xb71148(0x2be)]+_0x119991['idSuffix']),Object[_0xb71148(0x259)](_0x250082)['forEach'](([_0x5eeecf,_0x1d4cc3])=>{const _0x5593da=_0xb71148;typeof _0x1d4cc3==_0x5593da(0x347)&&(_0x250082[_0x5eeecf]=_0x1d4cc3['replace'](/url\(#(.*)\)/,'url(#$1'+_0x119991[_0x5593da(0x39c)]+')'));})),_0x250082;}function Ei(_0x2c039f,_0x318c36){const _0x4fd595=_0x46d0db;var _0x45f733;const {defIds:_0x263be}=_0x318c36;return!_0x263be||_0x263be['length']===0x0?_0x2c039f:_0x2c039f['tag']===_0x4fd595(0x234)&&((_0x45f733=_0x2c039f[_0x4fd595(0x31f)])!=null&&_0x45f733['length'])?{..._0x2c039f,'children':_0x2c039f[_0x4fd595(0x31f)][_0x4fd595(0x2ee)](_0x3570ac=>typeof _0x3570ac[_0x4fd595(0x312)]['id']==_0x4fd595(0x347)&&_0x263be&&_0x263be[_0x4fd595(0x2ba)](_0x3570ac[_0x4fd595(0x312)]['id'])?{..._0x3570ac,'attrs':{..._0x3570ac[_0x4fd595(0x312)],'id':_0x3570ac[_0x4fd595(0x312)]['id']+_0x318c36[_0x4fd595(0x39c)]}}:_0x3570ac)}:_0x2c039f;}function vi(){const _0x1701cd=_0x46d0db;return Math[_0x1701cd(0x3fd)]()[_0x1701cd(0x37c)](0x24)['substring'](0x2,0x8);}Ge[_0x46d0db(0x223)]=_0x46d0db(0x1ce);const pi={'tag':_0x46d0db(0x2f1),'attrs':{'xmlns':_0x46d0db(0x3d0),'fill':_0x46d0db(0x1d8),'viewBox':_0x46d0db(0x408),'width':_0x46d0db(0x3c1),'height':_0x46d0db(0x3c1)},'children':[{'tag':'g','attrs':{'clipPath':_0x46d0db(0x309)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x46d0db(0x29e),'strokeLinecap':_0x46d0db(0x336),'strokeLinejoin':_0x46d0db(0x336),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x46d0db(0x2a5),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':_0x46d0db(0x2ec),'d':_0x46d0db(0x40d)}}]}]}],'defIds':[_0x46d0db(0x272)]},Pt=_0x95f0e(function(_0x37372a,_0x4c3823){const _0x19b04c=_0x46d0db;return _0x43157b(Ge,Object[_0x19b04c(0x2c9)]({},_0x37372a,{'id':'off-line-icon','ref':_0x4c3823,'icon':pi}));});Pt[_0x46d0db(0x223)]=_0x46d0db(0x249);const Oi={'tag':_0x46d0db(0x2f1),'attrs':{'xmlns':_0x46d0db(0x3d0),'fill':'none','viewBox':_0x46d0db(0x392),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x46d0db(0x3a9)},'children':[{'tag':'path','attrs':{'stroke':_0x46d0db(0x311),'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':_0x46d0db(0x336),'strokeLinejoin':_0x46d0db(0x336),'strokeWidth':1.2}}]},{'tag':_0x46d0db(0x234),'attrs':{},'children':[{'tag':_0x46d0db(0x2a5),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x46d0db(0x1cf),'attrs':{'fill':_0x46d0db(0x2ec),'d':_0x46d0db(0x40d),'transform':_0x46d0db(0x1ff)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},wt=_0x95f0e(function(_0x28a0bf,_0x4501d9){const _0x16c876=_0x46d0db;return _0x43157b(Ge,Object[_0x16c876(0x2c9)]({},_0x28a0bf,{'id':'on-line-icon','ref':_0x4501d9,'icon':Oi}));});wt[_0x46d0db(0x223)]=_0x46d0db(0x25f);function Ti(_0x507b6f){const _0xfd9d7=_0x46d0db;switch(_0x507b6f){case _0x3a48be[_0xfd9d7(0x1d2)]:return'collabStatus.offline';case _0x3a48be[_0xfd9d7(0x268)]:return _0xfd9d7(0x204);case _0x3a48be['FETCH_MISS']:return _0xfd9d7(0x26e);case _0x3a48be['NOT_COLLAB']:return'collabStatus.notCollab';case _0x3a48be[_0xfd9d7(0x307)]:case _0x3a48be['AWAITING_WITH_PENDING']:return _0xfd9d7(0x316);case _0x3a48be[_0xfd9d7(0x27e)]:case _0x3a48be[_0xfd9d7(0x376)]:return _0xfd9d7(0x32f);}}function Ci(_0x5308e2){const _0x2439c3=_0x46d0db,{status$:_0x1eaa4}=_0x5308e2,_0x728fa3=_0x47d542(_0x1eaa4,_0x3a48be[_0x2439c3(0x35c)]),_0x32c215=_0x158269(_0x4fbd2b),_0x4e886c=_0x158269(_0x3840d4),_0x590b77=_0x728fa3!==_0x3a48be[_0x2439c3(0x1d2)],_0x51e634=_0x32c215['t'](Ti(_0x728fa3)),_0x7c669=_0x590b77?_0x51cab3(wt,{}):_0x51cab3(Pt,{}),_0x3a11e0=_0x269898(()=>{const _0x5c088f=_0x2439c3;_0x590b77||_0x4e886c[_0x5c088f(0x2c8)]();},[_0x590b77,_0x4e886c]);function _0x314fd5(){const _0xd55136=_0x2439c3;return _0xd762c0(_0xd55136(0x2a3),{'className':_0xd55136(0x1f5),'onClick':_0x3a11e0,'children':[_0x51cab3('div',{'className':_0x252119(_0xd55136(0x323),{'univer-text-green-500':_0x590b77,'univer-text-red-500':!_0x590b77}),'children':_0x7c669}),_0x51cab3(_0xd55136(0x2a3),{'className':_0xd55136(0x2c2),'children':_0x51e634})]});}return _0x590b77?_0x314fd5():_0x51cab3(_0x4e5e2a,{'title':_0x32c215['t'](_0x2439c3(0x241)),'children':_0x314fd5()});}var Ri=Object[_0x46d0db(0x3db)],Di=(_0x23c0f3,_0x1b3fb3,_0x265e83,_0x506e16)=>{const _0x589a6c=_0x46d0db;for(var _0xd7e99b=_0x506e16>0x1?void 0x0:_0x506e16?Ri(_0x1b3fb3,_0x265e83):_0x1b3fb3,_0x6533da=_0x23c0f3[_0x589a6c(0x3c7)]-0x1,_0x33ff3d;_0x6533da>=0x0;_0x6533da--)(_0x33ff3d=_0x23c0f3[_0x6533da])&&(_0xd7e99b=_0x33ff3d(_0xd7e99b)||_0xd7e99b);return _0xd7e99b;},se=(_0x19a4ca,_0x5264a5)=>(_0xc80860,_0x3a52fb)=>_0x5264a5(_0xc80860,_0x3a52fb,_0x19a4ca);let ae=class extends _0x325e21{constructor(_0x14cc19,_0xdf52f4,_0x2948c2,_0x357e48){const _0x29b976=_0x46d0db;super(),_(this,_0x29b976(0x27b),new _0xe5dabe(_0x3a48be[_0x29b976(0x35c)])),(this[_0x29b976(0x267)]=_0x14cc19,this['_injector']=_0xdf52f4,this['_collaborationController']=_0x2948c2,this[_0x29b976(0x36c)]=_0x357e48,this[_0x29b976(0x36b)](),this[_0x29b976(0x38a)]());}['_initStatusListener'](){const _0x225624=_0x46d0db;this[_0x225624(0x365)](this['_univerInstanceService']['focused$'][_0x225624(0x303)](_0xd3a12e(()=>{const _0x2e0bf3=_0x225624,_0x14f396=this[_0x2e0bf3(0x267)][_0x2e0bf3(0x3f5)]();return _0x14f396?this['_collaborationController']['getCollabEntity$'](_0x14f396[_0x2e0bf3(0x226)]()):_0x45fb3c(null);}),_0xd3a12e(_0x1019e7=>_0x1019e7?_0x1019e7[_0x225624(0x283)]:_0x45fb3c(_0x3a48be[_0x225624(0x35c)])))[_0x225624(0x22d)](_0x587d11=>{const _0x567be4=_0x225624;this[_0x567be4(0x27b)][_0x567be4(0x3b6)](_0x587d11);}));}[_0x46d0db(0x36b)](){const _0x5608de=_0x46d0db;this['disposeWithMe'](this[_0x5608de(0x36c)][_0x5608de(0x28a)](_0x5de6e0[_0x5608de(0x271)],()=>_0x2a8b05(Ni({'status$':this['_status$'][_0x5608de(0x210)]()}),this[_0x5608de(0x278)])));}};ae=Di([se(0x0,_0x2b2591),se(0x1,_0xea701b(_0x29824e)),se(0x2,_0xea701b(_0x1e646e)),se(0x3,_0x5d7c5f)],ae);function Ni(_0x36b44c){const {status$:_0x36a821}=_0x36b44c;return function(){return _0x51cab3(Ci,{'status$':_0x36a821});};}const yt=_0xc99d95(_0x46d0db(0x353));var bi=Object[_0x46d0db(0x3db)],Li=(_0x5045cc,_0x1daaa2,_0x4ef640,_0x425ac7)=>{for(var _0x589ae3=_0x425ac7>0x1?void 0x0:_0x425ac7?bi(_0x1daaa2,_0x4ef640):_0x1daaa2,_0x7b8bbe=_0x5045cc['length']-0x1,_0x1e41ad;_0x7b8bbe>=0x0;_0x7b8bbe--)(_0x1e41ad=_0x5045cc[_0x7b8bbe])&&(_0x589ae3=_0x1e41ad(_0x589ae3)||_0x589ae3);return _0x589ae3;},K=(_0x8f41e0,_0x56d2c8)=>(_0x52ff76,_0x2c82f9)=>_0x56d2c8(_0x52ff76,_0x2c82f9,_0x8f41e0);let ce=class extends _0x4128f2{constructor(_0x4103a8,_0x26f48b,_0x437821,_0x13bd41,_0x182ad7){const _0x38fa40=_0x46d0db;super(),this[_0x38fa40(0x275)]=_0x4103a8,this[_0x38fa40(0x281)]=_0x26f48b,this[_0x38fa40(0x34c)]=_0x437821,this[_0x38fa40(0x25e)]=_0x13bd41,_0x182ad7?_0x182ad7==null||_0x182ad7['whenReady']()[_0x38fa40(0x1e8)](()=>this['_init']()):(this[_0x38fa40(0x281)][_0x38fa40(0x3f4)](_0x38fa40(0x3f9),_0x38fa40(0x416)),this[_0x38fa40(0x389)]());}async['_init'](){const _0xbb5ac3=_0x46d0db,_0x3443d7=this[_0xbb5ac3(0x275)][_0xbb5ac3(0x235)](_0xbb5ac3(0x3d2)),_0x15daf7=this[_0xbb5ac3(0x275)][_0xbb5ac3(0x235)](_0xbb5ac3(0x266)),_0x525be5=this[_0xbb5ac3(0x275)][_0xbb5ac3(0x235)](_0xbb5ac3(0x30f));if(!_0x3443d7||!_0x15daf7){this[_0xbb5ac3(0x281)][_0xbb5ac3(0x3f4)](_0xbb5ac3(0x3f9),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x21b5df=await this[_0xbb5ac3(0x25e)]['loadUnit'](_0x3443d7,Number(_0x15daf7),_0x525be5);_0x21b5df&&_0x21b5df instanceof _0x725426&&this[_0xbb5ac3(0x2cf)](_0x21b5df);}async[_0x46d0db(0x2cf)](_0x300596){const _0x5a6621=_0x46d0db;await this[_0x5a6621(0x3cc)](_0x300596),_0x300596[_0x5a6621(0x345)][_0x5a6621(0x303)](_0x3a9d76(this['dispose$']))[_0x5a6621(0x22d)](_0x4e0f94=>{_0x4e0f94&&this['_updateURLWithCurrentState'](_0x4e0f94);}),this[_0x5a6621(0x275)][_0x5a6621(0x39f)][_0x5a6621(0x303)](_0x3a9d76(this[_0x5a6621(0x2b3)]))[_0x5a6621(0x22d)](()=>this[_0x5a6621(0x3cc)](_0x300596));}['_updateURLWithCurrentState'](_0x18ab3f,_0x16feaf=!0x1){const _0xe0cd51=_0x46d0db,_0xee51f7=this[_0xe0cd51(0x275)]['getParam'](_0xe0cd51(0x30f));_0x18ab3f[_0xe0cd51(0x3d1)]()!==_0xee51f7&&this[_0xe0cd51(0x275)][_0xe0cd51(0x317)](_0xe0cd51(0x30f),_0x18ab3f[_0xe0cd51(0x3d1)](),_0x16feaf);}async['_updateSubUnitFromURLParams'](_0x2fd3bd){const _0x335248=_0x46d0db;var _0x12050c;const _0x3f517f=this[_0x335248(0x275)][_0x335248(0x235)](_0x335248(0x30f));if(!_0x3f517f||!_0x2fd3bd[_0x335248(0x22a)](_0x3f517f)){const _0xfc5fa0=_0x2fd3bd['getUnhiddenWorksheets']()[0x0],_0xf8683c=_0x2fd3bd[_0x335248(0x22a)](_0xfc5fa0);if(!_0xf8683c)return;this[_0x335248(0x3ba)](_0xf8683c,!0x0),await this[_0x335248(0x34c)][_0x335248(0x296)](_0x1bdbdc['id'],{'unitId':_0x2fd3bd[_0x335248(0x226)](),'subUnitId':_0xfc5fa0});return;}((_0x12050c=_0x2fd3bd[_0x335248(0x383)]())==null?void 0x0:_0x12050c['getSheetId']())!==_0x3f517f&&await this[_0x335248(0x34c)][_0x335248(0x296)](_0x1bdbdc['id'],{'unitId':_0x2fd3bd[_0x335248(0x226)](),'subUnitId':_0x3f517f});}};ce=Li([K(0x0,yt),K(0x1,_0xf63a71),K(0x2,_0x1f0fa6),K(0x3,_0xea701b(_0x549625)),K(0x4,_0x12132d(_0x35262a))],ce);var Ui=Object[_0x46d0db(0x3db)],Mi=(_0x5761ec,_0xd15fdd,_0x3e545d,_0x3bd9ac)=>{const _0x46d8d2=_0x46d0db;for(var _0xcac2c6=_0x3bd9ac>0x1?void 0x0:_0x3bd9ac?Ui(_0xd15fdd,_0x3e545d):_0xd15fdd,_0x43291c=_0x5761ec[_0x46d8d2(0x3c7)]-0x1,_0x1520b6;_0x43291c>=0x0;_0x43291c--)(_0x1520b6=_0x5761ec[_0x43291c])&&(_0xcac2c6=_0x1520b6(_0xcac2c6)||_0xcac2c6);return _0xcac2c6;},rt=(_0x4e9e65,_0x379c62)=>(_0x42a586,_0x43f04f)=>_0x379c62(_0x42a586,_0x43f04f,_0x4e9e65);let $e=class extends _0x4128f2{constructor(_0x566683,_0x472920){const _0x203373=_0x46d0db;super(),this[_0x203373(0x25c)]=_0x566683,this['_imageIoService']=_0x472920,this[_0x203373(0x389)]();}[_0x46d0db(0x389)](){const _0x24d27e=_0x46d0db,_0x115c97=this;this[_0x24d27e(0x365)](this['_docClipboardService'][_0x24d27e(0x3bc)]({'onBeforePasteImage':async _0x16913d=>{const _0x23f073=_0x24d27e,_0x2598e3=await _0x115c97[_0x23f073(0x1d6)][_0x23f073(0x2c1)](_0x16913d);return _0x2598e3?{'source':_0x2598e3[_0x23f073(0x2a1)],'imageSourceType':_0x2598e3[_0x23f073(0x344)]}:null;}}));}};$e=Mi([rt(0x0,_0x6db524),rt(0x1,_0x18da6b)],$e);const ot=[_0x46d0db(0x2c4),'jiqing.500',_0x46d0db(0x360),'red.300',_0x46d0db(0x21e),'yellow.400'];class Ke extends _0x325e21{constructor(){const _0x10ba9b=_0x46d0db;super(...arguments),_(this,'_assignedColors',new Map()),_(this,_0x10ba9b(0x299),0x0);}['assignAColorForMemberID'](_0x5d0e31){const _0x2b74dc=_0x46d0db;if(this[_0x2b74dc(0x2da)][_0x2b74dc(0x325)](_0x5d0e31))return this['_assignedColors'][_0x2b74dc(0x387)](_0x5d0e31);const _0x303d6e=ot[this[_0x2b74dc(0x299)]];return this[_0x2b74dc(0x299)]=(this[_0x2b74dc(0x299)]+0x1)%ot[_0x2b74dc(0x3c7)],this[_0x2b74dc(0x2da)][_0x2b74dc(0x32b)](_0x5d0e31,_0x303d6e),_0x303d6e;}}function $t(_0x49bcfe){const _0x2bb74a=_0x46d0db;let _0x2c2038='';for(const _0x393a17 of _0x49bcfe){const {startOffset:_0x483e31,endOffset:_0x744be1,isActive:_0x2587c9,rangeType:_0x59948a,segmentId:_0x1cbeff,segmentPage:_0x5977cc}=_0x393a17;_0x2c2038[_0x2bb74a(0x3c7)]&&(_0x2c2038+=','),_0x2c2038+=_0x483e31+':'+_0x744be1+':'+(_0x2587c9?'1':'0')+':'+_0x59948a+':'+_0x1cbeff+':'+_0x5977cc;}return _0x2c2038;}function Ai(_0x469389){const _0x1e184c=_0x46d0db,_0x22d898=_0x469389['split'](','),_0x15b4da=[];for(const _0x393ccd of _0x22d898){const [_0x782baf,_0x4b28a9,_0x53563a,_0x43b074,_0x3f4549,_0x4d1e61]=_0x393ccd['split'](':');_0x15b4da[_0x1e184c(0x2ac)]({'startOffset':Number(_0x782baf),'endOffset':Number(_0x4b28a9),'collapsed':_0x782baf===_0x4b28a9,'isActive':_0x53563a==='1','rangeType':_0x43b074===_0x4dd949[_0x1e184c(0x22c)]?_0x4dd949['TEXT']:_0x4dd949['RECT'],'segmentId':typeof _0x3f4549==_0x1e184c(0x347)?String(_0x3f4549):'','segmentPage':Number(_0x4d1e61!=null?_0x4d1e61:-0x1)});}return _0x15b4da[_0x1e184c(0x363)](_0x5adef2=>_0x5adef2[_0x1e184c(0x3ed)])||(_0x15b4da[0x0][_0x1e184c(0x3ed)]=!0x0),_0x15b4da;}class ze extends _0x4128f2{constructor(){const _0x2b4a82=_0x46d0db;super(...arguments),_(this,'_collabCursorState$',new _0xe5dabe(null)),_(this,_0x2b4a82(0x22b),this['_collabCursorState$'][_0x2b4a82(0x210)]());}[_0x46d0db(0x2f6)](_0x5108f7){const {unitID:_0x1c8bbc,memberID:_0x2617db,textRanges:_0x1955d4}=_0x5108f7,_0x32e84e=$t(_0x1955d4);if(_0x32e84e==='')return;const _0x10ca2a={'unitID':_0x1c8bbc,'memberID':_0x2617db,'selection':_0x32e84e};this['_collabCursorState$']['next'](_0x10ca2a);}}function _0x4fdf(_0x5a41c9,_0x300bc5){_0x5a41c9=_0x5a41c9-0x1c9;const _0x55b3d7=_0x55b3();let _0x4fdf3c=_0x55b3d7[_0x5a41c9];return _0x4fdf3c;}var Pi=Object[_0x46d0db(0x3db)],wi=(_0x5a014a,_0x362a3,_0x244442,_0x3357c3)=>{const _0x47fb51=_0x46d0db;for(var _0x2e32df=_0x3357c3>0x1?void 0x0:_0x3357c3?Pi(_0x362a3,_0x244442):_0x362a3,_0x4c8ea6=_0x5a014a[_0x47fb51(0x3c7)]-0x1,_0x19cd54;_0x4c8ea6>=0x0;_0x4c8ea6--)(_0x19cd54=_0x5a014a[_0x4c8ea6])&&(_0x2e32df=_0x19cd54(_0x2e32df)||_0x2e32df);return _0x2e32df;},A=(_0x558e59,_0x348ab1)=>(_0x3e4c0f,_0x3f3a94)=>_0x348ab1(_0x3e4c0f,_0x3f3a94,_0x558e59);const yi=0x12c,$i=0x64;let xe=class extends _0x4128f2{constructor(_0x1106ec,_0x33a0c5,_0x9fc2cc,_0xb6873a,_0x392f4b,_0x1f6fde,_0x255224,_0xd46c80,_0x512635){const _0x30b273=_0x46d0db;super(),_(this,_0x30b273(0x1fe),!0x1),_(this,_0x30b273(0x389),!0x1),_(this,'_cursorInfo$',new _0xe5dabe(new Map())),_(this,_0x30b273(0x375),this[_0x30b273(0x357)][_0x30b273(0x210)]()),_(this,_0x30b273(0x305),new _0xe5dabe([])),_(this,'roomMembers$',this['_roomMembers$'][_0x30b273(0x303)](_0x225383(yi))),_(this,'_updateLocalCursor',_0x1530e6(_0x3632ef=>{const _0x3df72a=_0x30b273,_0x4651fb={'eventID':_0x3e05c7[_0x3df72a(0x26c)],'data':{'unitID':this[_0x3df72a(0x23d)],'memberID':this[_0x3df72a(0x38b)][_0x3df72a(0x32e)](),'selection':$t(_0x3632ef)}};this['_session'][_0x3df72a(0x341)](_0x4651fb,this[_0x3df72a(0x23d)]);},$i)),(this[_0x30b273(0x23d)]=_0x1106ec,this[_0x30b273(0x38b)]=_0x33a0c5,this[_0x30b273(0x278)]=_0x9fc2cc,this[_0x30b273(0x358)]=_0xb6873a,this[_0x30b273(0x227)]=_0x392f4b,this[_0x30b273(0x23c)]=_0x1f6fde,this[_0x30b273(0x297)]=_0x255224,this[_0x30b273(0x267)]=_0xd46c80,this[_0x30b273(0x34c)]=_0x512635);}get[_0x46d0db(0x3eb)](){const _0x1caa38=_0x46d0db;return this[_0x1caa38(0x357)][_0x1caa38(0x400)]();}get[_0x46d0db(0x331)](){const _0x7a1793=_0x46d0db;return this[_0x7a1793(0x305)]['getValue']();}[_0x46d0db(0x339)](){const _0xa9d9d0=_0x46d0db;super[_0xa9d9d0(0x339)](),this[_0xa9d9d0(0x357)][_0xa9d9d0(0x3b6)](new Map()),this[_0xa9d9d0(0x357)]['complete'](),this[_0xa9d9d0(0x305)][_0xa9d9d0(0x3b6)]([]),this[_0xa9d9d0(0x305)][_0xa9d9d0(0x401)]();}['init'](){const _0x1dd831=_0x46d0db;this[_0x1dd831(0x389)]||(this['_init']=!0x0,this[_0x1dd831(0x38b)][_0x1dd831(0x352)][_0x1dd831(0x303)](_0x3a9d76(this[_0x1dd831(0x2b3)]))[_0x1dd831(0x22d)](_0x5c387f=>{const _0x227433=_0x1dd831;_0x5c387f===_0x61e47f[_0x227433(0x3c0)]?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x1dd831(0x38b)][_0x1dd831(0x212)][_0x1dd831(0x303)](_0x3a9d76(this['dispose$']))['subscribe'](_0xc34976=>{const _0xb5f264=_0x1dd831,_0x59b7b4=_0xc34976[_0xb5f264(0x386)];_0x59b7b4===_0x3e05c7['UPDATE_CURSOR']&&this[_0xb5f264(0x342)](_0xc34976),_0x59b7b4===_0x3e05c7[_0xb5f264(0x3d6)]&&this[_0xb5f264(0x3b0)](_0xc34976);}),this[_0x1dd831(0x365)](this[_0x1dd831(0x34c)][_0x1dd831(0x3a8)](_0x5cd9b6=>{const _0x1644ff=_0x1dd831,_0xeb71ab=_0x5cd9b6['params'];_0xeb71ab!=null&&this[_0x1644ff(0x1fe)]&&_0x5cd9b6['id']===_0x30df8b['id']&&_0xeb71ab[_0x1644ff(0x2f9)]===this['unitID']&&_0xeb71ab[_0x1644ff(0x2d4)]===!0x1&&_0xeb71ab['ranges'][_0x1644ff(0x3c7)]>0x0&&this[_0x1644ff(0x2ae)](_0xeb71ab[_0x1644ff(0x304)]);})),this[_0x1dd831(0x23c)][_0x1dd831(0x22b)]['pipe'](_0x3a9d76(this[_0x1dd831(0x2b3)]))[_0x1dd831(0x22d)](_0x3e3efb=>{const _0x169b35=_0x1dd831;if((_0x3e3efb==null?void 0x0:_0x3e3efb['unitID'])!==this['unitID'])return;const _0x16ecf5={'eventID':_0x3e05c7['UPDATE_CURSOR'],'data':_0x3e3efb};this[_0x169b35(0x342)](_0x16ecf5);}),this[_0x1dd831(0x365)](this['_commandService'][_0x1dd831(0x3a8)](_0x422290=>{const _0x2ee225=_0x1dd831;if(_0x422290[_0x2ee225(0x2a9)]==null)return;const _0x3261b4=_0x422290['params'];if(_0x422290['id']!==_0xef6574['id']||_0x3261b4[_0x2ee225(0x2f9)]!==this[_0x2ee225(0x23d)])return;const _0x41a97e={'id':_0x2ee225(0x26b),'params':_0x3261b4},_0x229c3c=this[_0x2ee225(0x3eb)];for(const [_0x5e4074,_0x36975c]of _0x229c3c){const _0xae5a10={'id':_0x2ee225(0x26b),'params':{'unitId':this[_0x2ee225(0x23d)],'actions':null,'textRanges':_0x36975c[_0x2ee225(0x304)]}},_0x38e56e=this['_transformService'][_0x2ee225(0x367)](_0x41a97e,_0xae5a10,!0x1);if(_0xe71731(_0x38e56e))throw _0x38e56e[_0x2ee225(0x263)];_0x229c3c[_0x2ee225(0x32b)](_0x5e4074,{..._0x36975c,'ranges':_0x38e56e[_0x2ee225(0x3a3)][_0x2ee225(0x2a9)][_0x2ee225(0x319)]});}queueMicrotask(()=>{const _0x4834bc=_0x2ee225;this[_0x4834bc(0x357)][_0x4834bc(0x3b6)](_0x229c3c);});})));}[_0x46d0db(0x342)](_0x5504c9){const _0x5b3fb6=_0x46d0db;var _0x3eb874,_0x326117;const {memberID:_0x4a2093,selection:_0x214f73}=_0x5504c9['data'],_0x24985b=Ai(_0x214f73),_0x4c8fc7=(_0x326117=(_0x3eb874=this[_0x5b3fb6(0x227)][_0x5b3fb6(0x33a)](this[_0x5b3fb6(0x23d)],_0x4a2093))==null?void 0x0:_0x3eb874[_0x5b3fb6(0x1d5)])!=null?_0x326117:_0x5b3fb6(0x3c2),_0x16daaf={'color':this[_0x5b3fb6(0x358)][_0x5b3fb6(0x22e)](_0x4a2093),'name':_0x4c8fc7,'ranges':_0x24985b},_0x3a4720=this['cursorInfo'];_0x3a4720[_0x5b3fb6(0x32b)](_0x4a2093,_0x16daaf),this[_0x5b3fb6(0x357)]['next'](_0x3a4720);}['_onCursorDelete'](_0x15864e){const _0x167cd3=_0x46d0db,{memberID:_0x58615f}=_0x15864e['data'],_0x29314b=this[_0x167cd3(0x3eb)];_0x29314b[_0x167cd3(0x291)](_0x58615f),this[_0x167cd3(0x357)][_0x167cd3(0x3b6)](_0x29314b);}[_0x46d0db(0x35e)](){const _0x503aff=_0x46d0db;var _0xf4bd7d;if(this[_0x503aff(0x1fe)]=!0x0,((_0xf4bd7d=this[_0x503aff(0x267)][_0x503aff(0x3f5)]())==null?void 0x0:_0xf4bd7d[_0x503aff(0x226)]())!==this['unitID'])return;const _0x19ae3f=this[_0x503aff(0x278)][_0x503aff(0x387)](_0x11d383)[_0x503aff(0x24f)]();Array[_0x503aff(0x1e5)](_0x19ae3f)&&_0x19ae3f[_0x503aff(0x3c7)]>0x0&&this[_0x503aff(0x2ae)](_0x19ae3f);}['_toggleOffline'](){const _0x45d703=_0x46d0db;this[_0x45d703(0x1fe)]=!0x1;}};xe=wi([A(0x2,_0xea701b(_0x29824e)),A(0x3,_0xea701b(Ke)),A(0x4,_0xea701b(_0x245c8d)),A(0x5,_0xea701b(ze)),A(0x6,_0x3ec468),A(0x7,_0x2b2591),A(0x8,_0x1f0fa6)],xe);var xi=Object[_0x46d0db(0x3db)],Bi=(_0x1c1f21,_0x5b4a62,_0x5e7959,_0x2ecd16)=>{for(var _0x5c4ac0=_0x2ecd16>0x1?void 0x0:_0x2ecd16?xi(_0x5b4a62,_0x5e7959):_0x5b4a62,_0x36e97d=_0x1c1f21['length']-0x1,_0x3d6216;_0x36e97d>=0x0;_0x36e97d--)(_0x3d6216=_0x1c1f21[_0x36e97d])&&(_0x5c4ac0=_0x3d6216(_0x5c4ac0)||_0x5c4ac0);return _0x5c4ac0;},B=(_0x4d559f,_0x1ce27c)=>(_0x2dd6d2,_0x43ca55)=>_0x1ce27c(_0x2dd6d2,_0x43ca55,_0x4d559f);const Fi=0x12c,ki=0x64,Hi=()=>{let _0xe608a4=[],_0x130d95=!0x1;return _0x50b751=>{const _0x2c9a99=_0x4fdf;_0xe608a4[_0x2c9a99(0x2ac)](_0x50b751),_0x130d95||(_0x130d95=!0x0,setTimeout(()=>{const _0x1156b6=_0x2c9a99;_0xe608a4[_0x1156b6(0x207)](_0x1d441f=>_0x1d441f()),_0xe608a4=[],_0x130d95=!0x1;}));};};let Be=class extends _0x4128f2{constructor(_0x4b8e33,_0x4b32e3,_0x2173dc,_0x1c962a,_0x4a0b25,_0x2439a4,_0x357864,_0x23b4a6){const _0x3d94c2=_0x46d0db;super(),_(this,_0x3d94c2(0x1fe),!0x1),_(this,_0x3d94c2(0x389),!0x1),_(this,_0x3d94c2(0x357),new _0xe5dabe(new Map())),_(this,_0x3d94c2(0x375),this[_0x3d94c2(0x357)][_0x3d94c2(0x210)]()),_(this,_0x3d94c2(0x305),new _0xe5dabe([])),_(this,_0x3d94c2(0x232),this['_roomMembers$'][_0x3d94c2(0x303)](_0x225383(Fi))),_(this,_0x3d94c2(0x2ae),_0x1530e6((_0x15b374,_0x19de36)=>{const _0x4e8f02=_0x3d94c2,_0xb036c={'eventID':_0x3e05c7[_0x4e8f02(0x26c)],'data':{'unitID':this[_0x4e8f02(0x23d)],'memberID':this[_0x4e8f02(0x38b)]['getMemberID'](),'selection':_0x545e12(_0x15b374,_0x19de36[_0x4e8f02(0x3a2)])}};this[_0x4e8f02(0x38b)][_0x4e8f02(0x341)](_0xb036c,this['unitID']);},ki)),(this['unitID']=_0x4b8e33,this[_0x3d94c2(0x38b)]=_0x4b32e3,this['_injector']=_0x2173dc,this[_0x3d94c2(0x358)]=_0x1c962a,this[_0x3d94c2(0x227)]=_0x4a0b25,this[_0x3d94c2(0x267)]=_0x2439a4,this[_0x3d94c2(0x34c)]=_0x357864,this[_0x3d94c2(0x1ca)]=_0x23b4a6);}get['cursorInfo'](){const _0x25f980=_0x46d0db;return this[_0x25f980(0x357)]['getValue']();}get[_0x46d0db(0x331)](){const _0xf0220=_0x46d0db;return this[_0xf0220(0x305)]['getValue']();}[_0x46d0db(0x339)](){const _0x548320=_0x46d0db;super[_0x548320(0x339)](),this[_0x548320(0x357)][_0x548320(0x3b6)](new Map()),this[_0x548320(0x357)]['complete'](),this[_0x548320(0x305)][_0x548320(0x3b6)]([]),this[_0x548320(0x305)][_0x548320(0x401)]();}['init'](){const _0x588d08=_0x46d0db;this[_0x588d08(0x389)]||(this[_0x588d08(0x389)]=!0x0,this['_session'][_0x588d08(0x352)][_0x588d08(0x303)](_0x3a9d76(this[_0x588d08(0x2b3)]))[_0x588d08(0x22d)](_0x588dc4=>{const _0x5ae36a=_0x588d08;_0x588dc4===_0x61e47f[_0x5ae36a(0x3c0)]?this[_0x5ae36a(0x35e)]():this[_0x5ae36a(0x3d9)]();}),this[_0x588d08(0x38b)]['event$'][_0x588d08(0x303)](_0x3a9d76(this[_0x588d08(0x2b3)]))[_0x588d08(0x22d)](_0x38f5d1=>{const _0x3169b6=_0x588d08,_0xf0ee90=_0x38f5d1[_0x3169b6(0x386)];_0xf0ee90===_0x3e05c7['UPDATE_CURSOR']&&this[_0x3169b6(0x342)](_0x38f5d1),_0xf0ee90===_0x3e05c7['USERS_LEAVE']&&this[_0x3169b6(0x3b0)](_0x38f5d1);}),this[_0x588d08(0x3ac)](),this[_0x588d08(0x365)](this[_0x588d08(0x34c)][_0x588d08(0x3a8)](_0x19da73=>{const _0x16f970=_0x588d08;if(this[_0x16f970(0x1fe)]&&_0x19da73['id']===_0x508f0e['id']&&_0x19da73[_0x16f970(0x2a9)][_0x16f970(0x2f9)]===this['unitID']){const _0x5eee35=_0x19da73[_0x16f970(0x2a9)];this[_0x16f970(0x2ae)](_0x5eee35['subUnitId'],_0x5eee35[_0x16f970(0x25d)][0x0]);}})));}[_0x46d0db(0x342)](_0x232f3c){const _0x376c1c=_0x46d0db;var _0x238c91,_0x11d871;const {memberID:_0x58cfd9,selection:_0x267e6a}=_0x232f3c[_0x376c1c(0x2ca)],{sheetName:_0x4ef5b4,range:_0x26be10}=_0x85a7b4(_0x267e6a),_0x4090aa={'name':(_0x11d871=(_0x238c91=this[_0x376c1c(0x227)][_0x376c1c(0x33a)](this[_0x376c1c(0x23d)],_0x58cfd9))==null?void 0x0:_0x238c91['name'])!=null?_0x11d871:_0x376c1c(0x3c2),'range':this[_0x376c1c(0x1ec)](_0x4ef5b4,_0x26be10),'sheetID':_0x4ef5b4,'color':this[_0x376c1c(0x358)][_0x376c1c(0x22e)](_0x58cfd9),'selection':_0x267e6a},_0x585c23=this['cursorInfo'];_0x585c23[_0x376c1c(0x32b)](_0x58cfd9,_0x4090aa),this['_cursorInfo$'][_0x376c1c(0x3b6)](_0x585c23);}['_onCursorDelete'](_0x54b1f5){const _0x867acb=_0x46d0db,{memberID:_0x3b0e89}=_0x54b1f5['data'],_0xad2ba9=this['cursorInfo'];_0xad2ba9[_0x867acb(0x291)](_0x3b0e89),this[_0x867acb(0x357)][_0x867acb(0x3b6)](_0xad2ba9);}['_getMergeRange'](_0x1f9bb0,_0x5eaa1e){const _0x1f3259=_0x46d0db;var _0x16d8f2,_0x241267;const _0x414913=(_0x241267=(_0x16d8f2=this[_0x1f3259(0x267)][_0x1f3259(0x3aa)](this[_0x1f3259(0x23d)]))==null?void 0x0:_0x16d8f2[_0x1f3259(0x22a)](_0x1f9bb0))==null?void 0x0:_0x241267[_0x1f3259(0x3b8)]();return(_0x414913==null?void 0x0:_0x414913['find'](_0x5e2eee=>_0x26b4f0[_0x1f3259(0x315)](_0x5e2eee,_0x5eaa1e)))||_0x5eaa1e;}[_0x46d0db(0x3ac)](){const _0x12486e=_0x46d0db,_0x192b77=new _0x4f5214(),_0x4802aa=Hi(),_0x41b8a6=()=>{const _0x329c89=_0x4fdf;_0x192b77[_0x329c89(0x339)]();const _0x14c4fa=(_0x4c394f,_0x25ec36,_0x4edad3,_0x3460e9)=>{const _0x326f9c=_0x329c89;let _0x2d6fbb=[];switch(_0x4c394f['id']){case _0x5a6104['DeleteRangeMoveLeftCommandId']:{_0x2d6fbb=_0x2f32e9(_0x4c394f,_0x3460e9);break;}case _0x5a6104[_0x326f9c(0x3c4)]:{_0x2d6fbb=_0x2a052e(_0x4c394f,_0x3460e9);break;}case _0x5a6104[_0x326f9c(0x39d)]:{_0x2d6fbb=_0x34e3c9(_0x4c394f,_0x3460e9);break;}case _0x5a6104['InsertRangeMoveDownCommandId']:{_0x2d6fbb=_0x53880d(_0x4c394f,_0x3460e9);break;}case _0x5a6104['InsertRangeMoveRightCommandId']:{_0x2d6fbb=_0x326a81(_0x4c394f,_0x3460e9);break;}case _0x5a6104[_0x326f9c(0x2eb)]:{_0x2d6fbb=_0x52d453(_0x4c394f,_0x3460e9);break;}case _0x5a6104[_0x326f9c(0x3b4)]:{_0x2d6fbb=_0x17daf7(_0x4c394f,_0x3460e9);break;}case _0x5a6104[_0x326f9c(0x295)]:{_0x2d6fbb=_0x4b771b(_0x4c394f,_0x3460e9);break;}case _0x5a6104['RemoveRowCommandId']:{_0x2d6fbb=_0x3ecfc5(_0x4c394f,_0x3460e9);break;}}const _0x275c09=_0x544486(_0x2d6fbb,_0x3460e9),_0x265f30=this[_0x326f9c(0x3eb)][_0x326f9c(0x387)](_0x25ec36);if(_0x265f30&&_0x275c09){const _0x10007e={..._0x265f30,'range':_0x275c09};this['cursorInfo'][_0x326f9c(0x32b)](_0x25ec36,_0x10007e),_0x4802aa(()=>{const _0x236e97=_0x326f9c,_0xdda180=this['_refRangeService'][_0x236e97(0x20c)](_0x275c09,_0x5c7a10=>(_0xdda180[_0x236e97(0x339)](),_0x14c4fa(_0x5c7a10,_0x25ec36,_0x4edad3,_0x275c09)));_0x192b77['add'](_0xdda180);});}return{'redos':[],'undos':[]};};this[_0x329c89(0x3eb)][_0x329c89(0x207)]((_0x334698,_0x43f223)=>{const _0x2ee843=_0x329c89,{range:_0xec810f,sheetID:_0x1120f9}=_0x334698,_0x19248e=this[_0x2ee843(0x1ca)][_0x2ee843(0x20c)](_0xec810f,_0x542bd2=>(_0x19248e['dispose'](),_0x14c4fa(_0x542bd2,_0x43f223,_0x1120f9,_0xec810f)));_0x192b77[_0x2ee843(0x3b9)](_0x19248e);});};this[_0x12486e(0x365)](_0xd54434(this[_0x12486e(0x357)][_0x12486e(0x22d)](()=>{_0x41b8a6();})));}[_0x46d0db(0x35e)](){const _0x2cd06b=_0x46d0db;var _0x321e1b,_0xd42dfb;if(this[_0x2cd06b(0x1fe)]=!0x0,((_0x321e1b=this[_0x2cd06b(0x267)][_0x2cd06b(0x3f5)]())==null?void 0x0:_0x321e1b['getUnitId']())!==this['unitID'])return;const _0x1955bd=(_0xd42dfb=this[_0x2cd06b(0x278)][_0x2cd06b(0x387)](_0x152304)['getCurrentSelections']())==null?void 0x0:_0xd42dfb[0x0],_0xee4dca=this[_0x2cd06b(0x267)][_0x2cd06b(0x35b)](_0xee6b2[_0x2cd06b(0x3af)])[_0x2cd06b(0x383)]();_0x1955bd&&_0xee4dca&&this[_0x2cd06b(0x2ae)](_0xee4dca[_0x2cd06b(0x3d1)](),_0x1955bd);}['_toggleOffline'](){this['_online']=!0x1;}};Be=Bi([B(0x2,_0xea701b(_0x29824e)),B(0x3,_0xea701b(Ke)),B(0x4,_0xea701b(_0x245c8d)),B(0x5,_0x2b2591),B(0x6,_0x1f0fa6),B(0x7,_0xea701b(_0x1ea0ab))],Be);var Yi=Object['getOwnPropertyDescriptor'],Wi=(_0x1ebcf4,_0x26ee10,_0x404607,_0x3fcd98)=>{const _0x519c0c=_0x46d0db;for(var _0x49f17b=_0x3fcd98>0x1?void 0x0:_0x3fcd98?Yi(_0x26ee10,_0x404607):_0x26ee10,_0x5b8585=_0x1ebcf4[_0x519c0c(0x3c7)]-0x1,_0x1cfd3e;_0x5b8585>=0x0;_0x5b8585--)(_0x1cfd3e=_0x1ebcf4[_0x5b8585])&&(_0x49f17b=_0x1cfd3e(_0x49f17b)||_0x49f17b);return _0x49f17b;},Ce=(_0x46efb9,_0x22996a)=>(_0x5ba909,_0x47ba2a)=>_0x22996a(_0x5ba909,_0x47ba2a,_0x46efb9);let H=class extends _0x4128f2{constructor(_0x418b39,_0x48d4fe,_0x11d306){const _0x35839d=_0x46d0db;super(),_(this,_0x35839d(0x411),new Map()),_(this,_0x35839d(0x2a2),new _0x4f3095()),(this[_0x35839d(0x267)]=_0x418b39,this[_0x35839d(0x278)]=_0x48d4fe,this['_collabSessionService']=_0x11d306,this[_0x35839d(0x389)]());}[_0x46d0db(0x339)](){const _0x133571=_0x46d0db;super[_0x133571(0x339)](),this[_0x133571(0x2a2)][_0x133571(0x401)](),this[_0x133571(0x411)][_0x133571(0x207)](_0xa97fc3=>_0xa97fc3[_0x133571(0x339)]());}[_0x46d0db(0x3ff)](_0x54822b){const _0x26c104=_0x46d0db;return this[_0x26c104(0x411)]['has'](_0x54822b)?this[_0x26c104(0x411)][_0x26c104(0x387)](_0x54822b)['cursorInfo$']:this[_0x26c104(0x2a2)]['pipe'](_0x271fea(_0x15c1e8=>_0x15c1e8['unitID']===_0x54822b),_0xd3a12e(_0x37f3b5=>_0x37f3b5['cursorInfo$']));}['_init'](){const _0x12de67=_0x46d0db;this[_0x12de67(0x267)]['getTypeOfUnitAdded$'](_0xee6b2[_0x12de67(0x3af)])['pipe'](_0x3a9d76(this[_0x12de67(0x2b3)]))[_0x12de67(0x22d)](async _0x57b2f0=>{const _0x31823f=_0x12de67,_0x163984=_0x57b2f0['getUnitId'](),_0x3fa9d0=await this[_0x31823f(0x38f)](_0x163984);this['_entityInit$'][_0x31823f(0x3b6)](_0x3fa9d0),this[_0x31823f(0x411)][_0x31823f(0x32b)](_0x163984,_0x3fa9d0);}),this[_0x12de67(0x267)][_0x12de67(0x1d4)](_0xee6b2[_0x12de67(0x36d)])[_0x12de67(0x303)](_0x3a9d76(this['dispose$']))[_0x12de67(0x303)](_0x271fea(_0x8ff100=>!_0x8ff100['getUnitId']()['startsWith']('__')))[_0x12de67(0x22d)](async _0x1c2c58=>{const _0x470d6c=_0x12de67,_0x501bb5=_0x1c2c58[_0x470d6c(0x226)](),_0x35d9d4=await this[_0x470d6c(0x29d)](_0x501bb5);this['_entityInit$']['next'](_0x35d9d4),this['_entities'][_0x470d6c(0x32b)](_0x501bb5,_0x35d9d4);}),_0x3bcfd6(this[_0x12de67(0x267)][_0x12de67(0x40e)](_0xee6b2['UNIVER_DOC']),this[_0x12de67(0x267)]['getTypeOfUnitDisposed$'](_0xee6b2['UNIVER_SHEET']))['pipe'](_0x3a9d76(this[_0x12de67(0x2b3)]))[_0x12de67(0x22d)](_0x18b73c=>{const _0x273f22=_0x12de67,_0x44f66f=_0x18b73c[_0x273f22(0x226)](),_0x5acd9c=this[_0x273f22(0x411)]['get'](_0x44f66f);_0x5acd9c&&(_0x5acd9c[_0x273f22(0x339)](),this['_entities'][_0x273f22(0x291)](_0x44f66f));});}async['_startSheetCollabCursor'](_0x1e86cb){const _0xe0a1eb=_0x46d0db,_0x39da22=await this[_0xe0a1eb(0x354)]['requireSession'](_0x1e86cb),_0x43f2d5=this[_0xe0a1eb(0x278)][_0xe0a1eb(0x209)](Be,_0x1e86cb,_0x39da22);return _0x43f2d5[_0xe0a1eb(0x26d)](),_0x43f2d5;}async[_0x46d0db(0x29d)](_0x565a38){const _0x4d1114=_0x46d0db,_0x5cd183=await this[_0x4d1114(0x354)][_0x4d1114(0x398)](_0x565a38),_0x5b2902=this['_injector'][_0x4d1114(0x209)](xe,_0x565a38,_0x5cd183);return _0x5b2902['init'](),_0x5b2902;}};H=Wi([Ce(0x0,_0x2b2591),Ce(0x1,_0xea701b(_0x29824e)),Ce(0x2,_0xea701b(_0x3840d4))],H);const Q=0x14,at=0xc8,Re=0x4,Vi=0x5;function ji(_0x24006e,_0x595409){const _0x28ae8f=_0x46d0db;let {radius:_0x4998e2,width:_0x249fe3,height:_0x4e3e26}=_0x595409;_0x4998e2=_0x4998e2!=null?_0x4998e2:0x0,_0x249fe3=_0x249fe3!=null?_0x249fe3:0x1e,_0x4e3e26=_0x4e3e26!=null?_0x4e3e26:0x1e;let _0x259a8c=0x0,_0x5959a4=0x0,_0x5dc825=0x0;_0x259a8c=_0x5959a4=_0x5dc825=Math['min'](_0x4998e2,_0x249fe3/0x2,_0x4e3e26/0x2),_0x24006e[_0x28ae8f(0x277)](),_0x24006e[_0x28ae8f(0x25b)](_0x259a8c,0x0),_0x24006e[_0x28ae8f(0x2b5)](_0x249fe3-_0x5959a4,0x0),_0x24006e[_0x28ae8f(0x265)](_0x249fe3-_0x5959a4,_0x5959a4,_0x5959a4,Math['PI']*0x3/0x2,0x0,!0x1),_0x24006e[_0x28ae8f(0x2b5)](_0x249fe3,_0x4e3e26-_0x5dc825),_0x24006e[_0x28ae8f(0x265)](_0x249fe3-_0x5dc825,_0x4e3e26-_0x5dc825,_0x5dc825,0x0,Math['PI']/0x2,!0x1),_0x24006e[_0x28ae8f(0x2b5)](0x0,_0x4e3e26),_0x24006e['lineTo'](0x0,_0x259a8c),_0x24006e[_0x28ae8f(0x265)](_0x259a8c,_0x259a8c,_0x259a8c,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x24006e[_0x28ae8f(0x3fb)](),_0x595409[_0x28ae8f(0x30b)]&&(_0x24006e[_0x28ae8f(0x343)](),_0x24006e[_0x28ae8f(0x2fb)]=_0x595409[_0x28ae8f(0x30b)],_0x595409['fillRule']===_0x28ae8f(0x2ef)?_0x24006e[_0x28ae8f(0x30b)](_0x28ae8f(0x2ef)):_0x24006e[_0x28ae8f(0x30b)](),_0x24006e['restore']());}class ve extends _0x374fb5{constructor(_0x14c295,_0x182741){const _0x1b11a7=_0x46d0db;super(_0x14c295,_0x182741),_(this,_0x1b11a7(0x2d5)),_(this,'text'),(this[_0x1b11a7(0x2d5)]=_0x182741==null?void 0x0:_0x182741['color'],this[_0x1b11a7(0x237)]=_0x182741==null?void 0x0:_0x182741[_0x1b11a7(0x237)]);}static[_0x46d0db(0x374)](_0x24e727,_0x4adafb){const _0x1291c4=_0x46d0db,{text:_0x5029a0,color:_0x406a61}=_0x4adafb;_0x24e727['save'](),_0x24e727[_0x1291c4(0x2d9)]=_0x1291c4(0x41a);const _0x5bcc42=_0x24e727['measureText'](_0x5029a0)['width'],_0x5ead40=Math[_0x1291c4(0x2c6)](_0x5bcc42+0x2*Re,at);ji(_0x24e727,{'height':Q,'radius':0x4,'width':_0x5ead40,'fill':_0x406a61}),_0x24e727[_0x1291c4(0x2fb)]=_0x1291c4(0x251);const _0x46fa59=Re,_0x2bcddf=Q-Vi,_0x33405f=at-0x2*Re;if(_0x5bcc42>_0x33405f){let _0x5267c5='',_0x4df61d=0x0;for(const _0x1621af of _0x5029a0){const _0x7de477=_0x24e727[_0x1291c4(0x2b7)](_0x1621af)[_0x1291c4(0x361)];if(_0x4df61d+_0x7de477<=_0x33405f-_0x24e727[_0x1291c4(0x2b7)](_0x1291c4(0x2ea))[_0x1291c4(0x361)])_0x5267c5+=_0x1621af,_0x4df61d+=_0x7de477;else{_0x5267c5+=_0x1291c4(0x2ea);break;}}_0x24e727[_0x1291c4(0x240)](_0x5267c5,_0x46fa59,_0x2bcddf);}else _0x24e727[_0x1291c4(0x240)](_0x5029a0,_0x46fa59,_0x2bcddf);_0x24e727[_0x1291c4(0x250)]();}[_0x46d0db(0x3d4)](_0x275ac3){ve['drawWith'](_0x275ac3,this);}}const De=_0x46d0db(0x3d8),Xi='collab-text-range-',Gi='collab-rect-range-',z=0x6,Ki=1.5,Ne=0x4,zi=1.5,Ji=_0x46d0db(0x30e);class ct{constructor(_0x82bde6,_0x5489f8,_0x4dd358,_0x2d0e40){const _0x2e0b5d=_0x46d0db;_(this,_0x2e0b5d(0x39a),[]),_(this,_0x2e0b5d(0x3ca),null),_(this,_0x2e0b5d(0x284),null),_(this,_0x2e0b5d(0x231),null),_(this,_0x2e0b5d(0x254),null),_(this,_0x2e0b5d(0x3ef),null),(this[_0x2e0b5d(0x3ec)]=_0x82bde6,this[_0x2e0b5d(0x35d)]=_0x5489f8,this[_0x2e0b5d(0x370)]=_0x4dd358,this[_0x2e0b5d(0x3f0)]=_0x2d0e40,this[_0x2e0b5d(0x1e7)]());}set['_hover'](_0x518d33){const _0x509b00=_0x46d0db;_0x518d33?(this[_0x509b00(0x231)]&&this['_anchorDot']['hide'](),this[_0x509b00(0x284)]&&this[_0x509b00(0x284)]['show']()):(this[_0x509b00(0x231)]&&this[_0x509b00(0x231)]['show'](),this[_0x509b00(0x284)]&&this['_textBubble'][_0x509b00(0x334)]());}[_0x46d0db(0x339)](){const _0x188ada=_0x46d0db;for(const _0xe640e of this[_0x188ada(0x39a)])_0xe640e[_0x188ada(0x339)]();this[_0x188ada(0x284)]&&this[_0x188ada(0x284)][_0x188ada(0x339)](),this[_0x188ada(0x231)]&&this['_anchorDot'][_0x188ada(0x339)](),this[_0x188ada(0x3ca)]&&this[_0x188ada(0x3ca)][_0x188ada(0x339)](),this[_0x188ada(0x3ef)]&&this[_0x188ada(0x3ef)]();}['_render'](){const _0xce517f=_0x46d0db;var _0x25f31c;const {_docSkeleton:_0x484996,_document:_0x25d78d}=this,{color:_0x4ad017,name:_0x588314,ranges:_0x6a5180}=this[_0xce517f(0x3ec)],_0x1ca1ce=_0x25d78d['getOffsetConfig'](),{docsLeft:_0x1d3420,docsTop:_0x2ac9b5}=_0x1ca1ce,_0x57d30a=new _0x880a56(_0x1ca1ce,_0x484996);for(const {startOffset:_0x3b879f,endOffset:_0x2553c6,rangeType:_0x168cc8,segmentId:_0x2b37eb,segmentPage:_0x4ecb3b,collapsed:_0x50d834,isActive:_0x1cb8f4}of _0x6a5180){const _0x1b8708=_0x484996[_0xce517f(0x3a7)](_0x3b879f,!0x0,_0x2b37eb,_0x4ecb3b);let _0x57a679=_0x484996[_0xce517f(0x3a7)](_0x2553c6,!0x0,_0x2b37eb,_0x4ecb3b);if(_0x57a679==null&&(_0x57a679=_0x484996['findNodePositionByCharIndex'](_0x2553c6-0x1,!0x1,_0x2b37eb,_0x4ecb3b)),_0x1cb8f4){const {contentBoxPointGroup:_0x53b6ea}=_0x57d30a[_0xce517f(0x3de)](_0x57a679,_0x57a679);if(_0x53b6ea[_0xce517f(0x3c7)]===0x0)continue;this[_0xce517f(0x41b)](_0x4ad017,_0x53b6ea,_0x1d3420,_0x2ac9b5,_0x588314),this['_eventUnsubscribe']=this['_handleHover']();}if(_0x1b8708&&_0x57a679){if(_0x168cc8===_0x4dd949[_0xce517f(0x355)]){const _0x36245f=new _0x42b1b8(_0x1ca1ce,_0x484996),{pointGroup:_0x97a680}=(_0x25f31c=_0x36245f[_0xce517f(0x3de)](_0x1b8708,_0x57a679))!=null?_0x25f31c:{};if(_0x97a680==null||_0x97a680[_0xce517f(0x3c7)]===0x0)continue;this[_0xce517f(0x245)](_0x4ad017,_0x97a680,_0x1d3420,_0x2ac9b5);}else{if(!_0x50d834){const {borderBoxPointGroup:_0x3c274c}=_0x57d30a[_0xce517f(0x3de)](_0x1b8708,_0x57a679);if(_0x3c274c[_0xce517f(0x3c7)]===0x0)continue;this['_drawTextRange'](_0x4ad017,_0x3c274c,_0x1d3420,_0x2ac9b5);}}}}}[_0x46d0db(0x41b)](_0x373eac,_0x278335,_0x5509f0,_0x165ee7,_0x4188a5){const _0x2842ce=_0x46d0db,_0xa4f979=this[_0x2842ce(0x219)](_0x278335),{left:_0x3efb92,top:_0x39f19c,height:_0x37c183}=_0xa4f979,_0x2ffec3=this[_0x2842ce(0x256)](),_0x5ee093=zi/_0x2ffec3,_0x4f1a13=new _0x4dbc14(De+_0x316c01(z),{'left':_0x3efb92+_0x5509f0-_0x5ee093,'top':_0x39f19c+_0x165ee7,'height':_0x37c183,'width':Ki,'fill':_0x373eac||_0x44ad87(_0x3433f6[_0x2842ce(0x3fe)],0x0),'strokeWidth':_0x5ee093,'stroke':Ji,'evented':!0x0});this[_0x2842ce(0x3ca)]=_0x4f1a13,this[_0x2842ce(0x35d)][_0x2842ce(0x29b)](_0x4f1a13,_0x2d25d8);const _0x3a430f=new _0x4dbc14(De+_0x316c01(z),{'left':_0x3efb92+_0x5509f0-_0x5ee093,'top':_0x39f19c+_0x165ee7-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x373eac||_0x44ad87(_0x3433f6['black'],0x0),'strokeWidth':0x0,'stroke':_0x373eac||_0x44ad87(_0x3433f6[_0x2842ce(0x3fe)],0x0),'evented':!0x1});this[_0x2842ce(0x231)]=_0x3a430f,this[_0x2842ce(0x35d)]['addObject'](_0x3a430f,_0x2d25d8);const _0x47b64e=new ve(De+_0x316c01(z),{'left':_0x3efb92+_0x5509f0-_0x5ee093,'top':_0x39f19c+_0x165ee7-Q,'text':_0x4188a5,'color':_0x373eac});this['_textBubble']=_0x47b64e,this['_scene']['addObject'](_0x47b64e,_0x2d25d8),this[_0x2842ce(0x368)]=!0x1;}[_0x46d0db(0x2f7)](){const _0x555150=_0x46d0db,_0x3db6ce=this[_0x555150(0x3ca)][_0x555150(0x1f8)][_0x555150(0x1fa)](()=>{const _0x80618b=_0x555150;this[_0x80618b(0x368)]=!0x0;}),_0x2eca6c=this[_0x555150(0x3ca)]['onPointerLeave$']['subscribeEvent'](()=>{const _0x1330b3=_0x555150;this[_0x1330b3(0x254)]&&clearTimeout(this[_0x1330b3(0x254)]),this[_0x1330b3(0x254)]=setTimeout(()=>{const _0x2fdabc=_0x1330b3;this[_0x2fdabc(0x368)]=!0x1;},0x7d0);});return()=>{const _0x320f3d=_0x555150;_0x3db6ce[_0x320f3d(0x3c6)](),_0x2eca6c[_0x320f3d(0x3c6)]();};}['_drawTextRange'](_0x3eb8bf,_0x5ceda5,_0x17ddea,_0x161bf8){const _0x51523e=_0x46d0db,_0x319cf3=new _0xe4264a(_0x3eb8bf)[_0x51523e(0x24b)](0.2)[_0x51523e(0x33b)](),_0x5304fb=new _0xa81d5e(Xi+_0x316c01(z),{'pointsGroup':_0x5ceda5,'fill':_0x319cf3||_0x44ad87(_0x3433f6[_0x51523e(0x3fe)],0.2),'left':_0x17ddea,'top':_0x161bf8,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x51523e(0x39a)][_0x51523e(0x2ac)](_0x5304fb),this[_0x51523e(0x35d)]['addObject'](_0x5304fb,_0x2d25d8);}['_drawRectRange'](_0x1069ab,_0xf773fd,_0x577e49,_0x2fd643){const _0xe4760d=_0x46d0db,_0x506b50=new _0xe4264a(_0x1069ab)[_0xe4760d(0x24b)](0.2)[_0xe4760d(0x33b)](),_0x208671=new _0xa81d5e(Gi+_0x316c01(z),{'pointsGroup':_0xf773fd,'fill':_0x506b50||_0x44ad87(_0x3433f6[_0xe4760d(0x3fe)],0.2),'left':_0x577e49,'top':_0x2fd643,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xe4760d(0x39a)][_0xe4760d(0x2ac)](_0x208671),this[_0xe4760d(0x35d)]['addObject'](_0x208671,_0x2d25d8);}[_0x46d0db(0x219)](_0x3cc29b){const _0x395f7f=_0x3cc29b[0x0],_0x142ffe=_0x395f7f[0x0],_0x2e20d0=_0x395f7f[0x2],{x:_0x54d6a0,y:_0x5b454d}=_0x142ffe,{x:_0x5ef8a5,y:_0x55be22}=_0x2e20d0;return{'left':_0x54d6a0,'top':_0x5b454d,'width':_0x5ef8a5-_0x54d6a0,'height':_0x55be22-_0x5b454d};}[_0x46d0db(0x256)](){const _0x1e5925=_0x46d0db,{scaleX:_0x3d5395,scaleY:_0x542587}=this[_0x1e5925(0x35d)][_0x1e5925(0x2b9)]();return Math[_0x1e5925(0x3e0)](_0x3d5395,_0x542587);}}var Zi=Object[_0x46d0db(0x3db)],Qi=(_0x48a8e2,_0x4abcb5,_0x3c064c,_0x14200a)=>{const _0x490a3=_0x46d0db;for(var _0x140abc=_0x14200a>0x1?void 0x0:_0x14200a?Zi(_0x4abcb5,_0x3c064c):_0x4abcb5,_0x4b10ab=_0x48a8e2[_0x490a3(0x3c7)]-0x1,_0xa8f7c1;_0x4b10ab>=0x0;_0x4b10ab--)(_0xa8f7c1=_0x48a8e2[_0x4b10ab])&&(_0x140abc=_0xa8f7c1(_0x140abc)||_0x140abc);return _0x140abc;},ie=(_0xcbd2f0,_0x430112)=>(_0x2a4aa9,_0x1c8111)=>_0x430112(_0x2a4aa9,_0x1c8111,_0xcbd2f0);let Fe=class extends _0x4128f2{constructor(_0x3fb3c2,_0x56d424,_0x353284,_0x531c31,_0x5bd792){const _0x207aac=_0x46d0db;super(),_(this,_0x207aac(0x314),[]),_(this,_0x207aac(0x35f),[]),(this['_context']=_0x3fb3c2,this[_0x207aac(0x417)]=_0x56d424,this[_0x207aac(0x348)]=_0x353284,this['_commandService']=_0x531c31,this[_0x207aac(0x2ed)]=_0x5bd792,this[_0x207aac(0x389)]());}[_0x46d0db(0x389)](){const _0xa5e29e=_0x46d0db,_0x367ac3=this[_0xa5e29e(0x340)][_0xa5e29e(0x2f9)],_0xbdc230=this['_docSkeletonManagerService'];this[_0xa5e29e(0x365)](_0x251a62([this[_0xa5e29e(0x348)][_0xa5e29e(0x3ff)](_0x367ac3),this['_themeService'][_0xa5e29e(0x38d)]])[_0xa5e29e(0x303)](_0x2a3dd6(([_0x27a996,_0x5330c1])=>({'skeleton':_0xbdc230[_0xa5e29e(0x34f)](),'cursors':[..._0x27a996['values']()]['flatMap'](_0x2e6f5e=>({..._0x2e6f5e,'color':this[_0xa5e29e(0x2ed)][_0xa5e29e(0x22f)](_0x2e6f5e['color'])}))})))[_0xa5e29e(0x22d)](_0x1f7ec0=>{const _0x480861=_0xa5e29e;if(this[_0x480861(0x27a)](),_0x1f7ec0){const {skeleton:_0x2f256e,cursors:_0x3c5ea6}=_0x1f7ec0;this['_updateCollabCursors'](_0x2f256e,_0x3c5ea6);}})),this[_0xa5e29e(0x31d)](),this[_0xa5e29e(0x2a0)]();}['_updateCollabCursors'](_0x41f7fa,_0x1ef94d){const _0x3a092a=_0x46d0db,{scene:_0x110b4e,mainComponent:_0xc15b5}=this[_0x3a092a(0x340)],_0x4ea9c6=_0x1ef94d[_0x3a092a(0x2ee)](_0x532296=>new ct(_0x532296,_0x110b4e,_0x41f7fa,_0xc15b5));this[_0x3a092a(0x314)]=_0x4ea9c6,this['_cursors']=_0x1ef94d;}[_0x46d0db(0x27d)](){const _0x158424=_0x46d0db;this[_0x158424(0x27a)]();const {scene:_0x1f8010,mainComponent:_0x400bec}=this[_0x158424(0x340)],_0x39521b=this['_docSkeletonManagerService'][_0x158424(0x34f)](),_0x609487=this[_0x158424(0x35f)][_0x158424(0x2ee)](_0x8a85df=>new ct(_0x8a85df,_0x1f8010,_0x39521b,_0x400bec));this[_0x158424(0x314)]=_0x609487;}[_0x46d0db(0x27a)](){const _0x9f777a=_0x46d0db;this['_cursorShapes'][_0x9f777a(0x207)](_0x1585df=>_0x1585df[_0x9f777a(0x339)]()),this[_0x9f777a(0x314)]=[];}['_initCommandExecutedListener'](){const _0x433541=_0x46d0db,_0x1c5f7e=[_0x4d07bf['id']];this[_0x433541(0x365)](this[_0x433541(0x34c)][_0x433541(0x3a8)](_0x4b3ab9=>{const _0x1548e0=_0x433541;_0x1c5f7e[_0x1548e0(0x2ba)](_0x4b3ab9['id'])&&_0x4b3ab9[_0x1548e0(0x2a9)][_0x1548e0(0x2f9)]===this[_0x1548e0(0x340)][_0x1548e0(0x2f9)]&&this[_0x1548e0(0x27d)]();}));}['_initResize'](){const _0x5c5fce=_0x46d0db;this[_0x5c5fce(0x365)](_0x572b71(this['_context'][_0x5c5fce(0x1df)]['onTransformChange$'])['pipe'](_0x82a1f5(_0x455a96=>_0x455a96[_0x5c5fce(0x266)]===_0x2da767[_0x5c5fce(0x1e3)]),_0x2e9f56(0x10))['subscribe'](()=>{this['_refreshCollabCursors']();}));}};Fe=Qi([ie(0x1,_0xea701b(_0x169330)),ie(0x2,_0xea701b(H)),ie(0x3,_0x1f0fa6),ie(0x4,_0xea701b(_0x4e6929))],Fe);const qi=0x1,en=1.5;class tn extends _0x374fb5{constructor(_0x305fc7,_0x479f6c){const _0x565234=_0x46d0db;super(_0x305fc7,_0x479f6c),_(this,'_color'),_(this,_0x565234(0x3f2),!0x1),_(this,_0x565234(0x1f4)),_(this,_0x565234(0x3df),''),_(this,_0x565234(0x2b4),_0x565234(0x390)),_(this,_0x565234(0x3ad)),(_0x479f6c&&this['setShapeProps'](_0x479f6c),this['onPointerEnter$']['subscribeEvent'](()=>this[_0x565234(0x2a6)]({'hovered':!0x0})),this[_0x565234(0x261)][_0x565234(0x1fa)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x46d0db(0x2a6)](_0x3fc62f){const _0x388d3f=_0x46d0db;var _0x25349b,_0x55830b,_0x31e17c,_0x5319b5,_0xe0454b,_0x2b08f8;this[_0x388d3f(0x1f9)]=(_0x25349b=_0x3fc62f[_0x388d3f(0x2d5)])!=null?_0x25349b:this[_0x388d3f(0x1f9)],this[_0x388d3f(0x3f2)]=(_0x55830b=_0x3fc62f[_0x388d3f(0x230)])!=null?_0x55830b:this['_hovered'],this[_0x388d3f(0x1f4)]=(_0x31e17c=_0x3fc62f[_0x388d3f(0x3a2)])!=null?_0x31e17c:this[_0x388d3f(0x1f4)],this[_0x388d3f(0x3df)]=(_0x5319b5=_0x3fc62f['name'])!=null?_0x5319b5:this[_0x388d3f(0x3df)],this[_0x388d3f(0x2b4)]=(_0xe0454b=_0x3fc62f[_0x388d3f(0x29f)])!=null?_0xe0454b:this[_0x388d3f(0x2b4)],this[_0x388d3f(0x3ad)]=(_0x2b08f8=_0x3fc62f[_0x388d3f(0x21d)])!=null?_0x2b08f8:this['_backgroundColor'],this[_0x388d3f(0x318)]({'width':_0x3fc62f[_0x388d3f(0x361)],'height':_0x3fc62f[_0x388d3f(0x2c3)]});}[_0x46d0db(0x364)](_0x5d3e08){const _0xbeb5f9=_0x46d0db,{row:_0x50b91d,column:_0x2a0d71}=_0x5d3e08;if(_0x50b91d>=this[_0xbeb5f9(0x1f4)][_0xbeb5f9(0x2d1)]&&_0x50b91d<=this[_0xbeb5f9(0x1f4)][_0xbeb5f9(0x2b1)]&&_0x2a0d71>=this[_0xbeb5f9(0x1f4)][_0xbeb5f9(0x31e)]&&_0x2a0d71<=this[_0xbeb5f9(0x1f4)][_0xbeb5f9(0x2b8)]){this[_0xbeb5f9(0x2a6)]({'hovered':!0x0});return;}this[_0xbeb5f9(0x2a6)]({'hovered':!0x1});}['triggerDblclick'](_0x160422){return!0x1;}[_0x46d0db(0x3d4)](_0xd1cfd4){const _0x3bf846=_0x46d0db;_0x4dbc14[_0x3bf846(0x374)](_0xd1cfd4,{'width':this[_0x3bf846(0x361)],'height':this['height'],'strokeWidth':en,'stroke':this[_0x3bf846(0x1f9)],'evented':!0x1,'fill':this[_0x3bf846(0x3ad)]}),this[_0x3bf846(0x3f2)]&&(_0xd1cfd4[_0x3bf846(0x343)](),_0xd1cfd4[_0x3bf846(0x3fa)](0x1,0x0,0x0,0x1,this[_0x3bf846(0x361)],this['_labelPosition']===_0x3bf846(0x26f)?0x0:-Q),ve[_0x3bf846(0x374)](_0xd1cfd4,{'text':this[_0x3bf846(0x3df)],'color':this[_0x3bf846(0x1f9)]}),_0xd1cfd4['restore']());}}var sn=Object[_0x46d0db(0x3db)],nn=(_0x4ed0fd,_0x4682af,_0x4290df,_0x26f7ae)=>{const _0x4e83a0=_0x46d0db;for(var _0x1233e0=_0x26f7ae>0x1?void 0x0:_0x26f7ae?sn(_0x4682af,_0x4290df):_0x4682af,_0xa0d125=_0x4ed0fd[_0x4e83a0(0x3c7)]-0x1,_0x1271e8;_0xa0d125>=0x0;_0xa0d125--)(_0x1271e8=_0x4ed0fd[_0xa0d125])&&(_0x1233e0=_0x1271e8(_0x1233e0)||_0x1233e0);return _0x1233e0;},be=(_0x191274,_0x146ab7)=>(_0x32666a,_0x5472e7)=>_0x146ab7(_0x32666a,_0x5472e7,_0x191274);function _0x55b3(){const _0x44f4c4=['AUTHORIZE_CODE_ILLEGAL','next','INTERNAL_ERROR','getMergeData','add','_updateURLWithCurrentState','symbol','addClipboardHook','_createSocketURL','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','ENTITLE_INVALID_COUPON_CODE','ONLINE','1em','Unknown\x20user','getCellPositionByOffset','DeleteRangeMoveUpCommandId','getItem','unsubscribe','length','enableLocalCache','DATA_SOURCE_TOO_LARGE','_anchor','[LogService\x20Error]:\x20','_updateSubUnitFromURLParams','_cachedData','editingUnit','5232360msQsqD','http://www.w3.org/2000/svg','getSheetId','unit','_currentUsage','_draw','invokeId','USERS_LEAVE','getformulaLimitStatusUrl','collab-text-anchor-','_toggleOffline','6441056hjsZDJ','getOwnPropertyDescriptor','history','ENTITLE_USE_COUPON_NOT_1ST_TRADE','getRangePointData','_name','max','parse','getCurrentRevOfUnit','transformIMECache','_handleHeartbeatEvent','3302412jpYThz','collaboration.offline-data-not-saved','entityInit$','UNDEFINED','USER_IS_ANONYMOUS','getActiveRange','cursorInfo','_cursor','isActive','transformRemoteChangeset','_eventUnsubscribe','_document','SOCKET_FAILED','_hovered','_clearOtherTimers','debug','getFocusedUnit','_initDependencies','APPLY_NON_SEQUENTIAL_REVISION','collaboration.closeRoom','[CollaborationDataLoaderController]','transform','closePath','APPLY_DUPLICATED','random','black','getCollabCursors$','getValue','complete','_beforeCloseService','startFormulaLimitUrl','SUBMIT_CHANGESET_TIMEOUT','_initUserListener','_getSaveTimeout','_saveCache','0\x200\x2016\x2016','LICENSE_EXPORT_SIZE_EXCEEDED','VIEW_MAIN','sheetId','transformMutationsWithChangeset','M0\x200H16V16H0z','getTypeOfUnitDisposed$','_applyCommand','_scheduleSaving','_entities','join','reason','getUnit','YUUMI_RATE_OVER_LIMIT','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_docSkeletonManagerService','popstate','ENTITLE_NEED_BILLING_ADDRESS','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_drawAnchor','_taskIds','_refRangeService','_docStateChangeManagerService','_clearPolling','_id','UniverIcon','path','unload','setItem','OFFLINE','registerRenderModule','getTypeOfUnitAdded$','name','_imageIoService','REDEMPTION_INVALID_CODE','none','defIds','_initEvent','14hbHXbf','url(#$1','_memberID','now','engine','addEventListener','USER_NOT_FOUND','_lastResponseTimestamp','resize','_configService','isArray','saveOfflineData','_render','then','UNAUTHENTICATED','OTHER_CLIENT_EDITING','mask','_getMergeRange','current','unshift','totalFormulasToCalculate','CURRENT_STATUS_CANNOT_OPERATE','setInterval','clearTimeout','makeDirty','_range','univer-flex\x20univer-items-center','COMPLETION_FINISHED','YUUMI_TABLE_NOT_FOUND_IN_UNIT','onPointerEnter$','_color','subscribeEvent','_initEntityListener','_hasFormulaInDirtyRanges','EMAIL_HAS_BEEN_BOUND','_online','translate(.97)','YUUMI_ASYNCIO_CANCELLED','3UvMouu','YUUMI_NO_CUBOID_FOR_QUESTION','YUUMI_ALL_TABLES_IS_INVALID','collabStatus.conflict','\x20at\x20','storage','forEach','stringify','createInstance','defineProperty','REDEMPTION_USER_NOT_ELIGIBLE','registerRefRange','ENTITLE_CAN_NOT_BUY_LOWER_OTP','_getFormulaLimitStatus','code','asObservable','post','event$','limitInfo','ENSURE_SNAPSHOT_EXECUTION','ENTITLE_COUPON_EXPIRED','WECHAT_HAS_BEEN_BOUND','column','ENTITLE_CHAT_LIMIT_EXCEED','_getAnchorBounding','[RemoteUniscriptService]:\x20no\x20focused\x20unit','replaceState','formula.calculation.started','backgroundColor','blue.400','use','_handleJoinEvent','body','APPLY_PERMISSION_DENIED','displayName','sessionTicket','searchParams','getUnitId','_memberService','collaboration-client-ui.config','origin','getSheetBySheetId','collabCursorState$','TEXT','subscribe','assignAColorForMemberID','getColorFromTheme','hovered','_anchorDot','roomMembers$','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','defs','getParam','_messageService','text','setStateCache','pluginName','href','_removeClearOtherTimer','_syncEditingCollabCursorService','unitID','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','transformSelections','fillText','collab-client.tooltip.reconnect','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_registerDependencies','session.connection-failed','_drawRectRange','YUUMI_AI_RUN_FAILED','1376355MNzXHQ','2112822BFqgGu','OffLineIcon','_handleLeaveEvent','setAlpha','location','Error','_setFormulaLimitStatus','getDocRanges','restore','#FFF','_instanceService','_scheduleClearOtherTimer','_hideTimer','trim','_getScale','stageInfo','saveTaskMap','entries','lineno','moveTo','_docClipboardService','selections','_dataLoaderService','OnLineIcon','memberID','onPointerLeave$','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','error','Loading','arc','type','_univerInstanceService','CONFLICT','USER_NOT_INVITED_CODE','_checkAndWaitForCalculationPermission','doc.mutation.rich-text-editing','UPDATE_CURSOR','init','collabStatus.fetchMiss','bottom','from','HEADER_MENU','off-line-icon_clip0_910_343','maxFormulaLimit','message','_urlService','18npAUvU','beginPath','_injector','SNAPSHOT_HAS_BEEN_REMOVED','_removeCollabCursors','_status$','_notificationService','_refreshCollabCursors','SYNCED','TOO_MANY_REQUESTS','/universer-api/license/formula/limit/status','_logService','LICENSE_MAX_UNITS_EXCEEDED','status$','_textBubble','setConfig','replace','key','currentUsage','PY_RUNTIME_SCRIPT_ERROR','registerComponent','pushState','setTimeout','_initUnhandledRejectionListener','MOBILE_HAS_BEEN_BOUND','selection','Warning','delete','undoState','univerjs-icon\x20univerjs-icon-','INVALID_INVITE_CODE','RemoveColCommandId','executeCommand','_transformService','registerBeforeClose','_colorIndex','_updateCollabCursors','addObject','_transformUndoRedoStack','_startDocCollabCursor','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','labelPosition','_initCommandExecutedListener','source','_entityInit$','div','UNRECOGNIZED','clipPath','setShapeProps','REDEMPTION_USER_REDEEM_TIMES_EXCEED','_docTransformSelectionsService','params','MOBILE_VERIFY_CODE_MISMATCH','addObjects','push','_localCacheService','_updateLocalCursor','values','override','endRow','removeEventListener','dispose$','_labelPosition','lineTo','stage','measureText','endColumn','getAncestorScale','includes','_unitStatus','_selfUnitIDs','11wLenxv','xlink:href','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_lastPointer','saveImage','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','height','purple.300','?taskId=','min','_localeService','reconnect','assign','data','removeParam','_scheduleHeartbeat','getConfig','NO_OTHER_CLIENTS_EDITING','_setupSubUnitSync','_revisionService','startRow','_httpService','getRelativeToViewportCoord','isEditing','color','_docTransformStateCacheService','_docSyncEditingCollabCursorService','5hIMNDB','font','_assignedColors','LOGIN_TOKEN_PROCESSING_FAILED','INVITE_CODE_REQUIRED','CONNECTOR_DATA_TOO_LARGE','NOT_FOUND','40600LNCDkn','colorChannel1','session.will-retry','REDEMPTION_CODE_NOT_STARTED','START_CALCULATION','formula.calculation.unable','setUndoRedoMutationParamsCache','_heartbeatTimer','onPointerMove$','show','_collaborationUIEventService','...','InsertRowCommandId','white','_themeService','map','evenodd','ALREADY_EXISTS','svg','parseInt','colno','_doCreateSocket','currentSkeleton$','syncEditingCollabCursor','_handleHover','transformStateCache','unitId','redoState','fillStyle','[Window\x20Error]:\x20','replaceDocRanges','releaseFormulaLimitUrl','updateOfflineData','_config','_initCommandInterceptor','loadOfflineData','pipe','ranges','_roomMembers$','result','AWAITING','runId','url(#off-line-icon_clip0_910_343)','mutations','fill','ERROR_AGAIN','_saveTaskMap','rgba(255,\x20255,\x20255,\x200.01)','subunit','getCellMatrix','currentColor','attrs','with','_cursorShapes','contains','collabStatus.syncing','setParam','transformByState','textRanges','ENTITLE_INSUFFICIENT_QUOTA','PERMISSION_DENIED','YUUMI_SUBSCRIPTION_NOT_FOUND','_initResize','startColumn','children','INVITE_CODE_HAS_BEEN_UES','_transformHistoryAndStateStack','_startCalculationLimit','univer-mr-2\x20univer-flex\x20univer-text-xl','_releaseCalculationLimit','has','ENTITLE_COUPON_USED_UP','_unitOnClients','ENTITLE_REPORT_LIMIT_EXCEED','unhandledrejection','size','set','_localStorageService','_getSheetObject','getMemberID','collabStatus.synced','_getSessionTicket','roomMembers','LICENSE_IMPORT_SIZE_EXCEEDED','filename','hide','YUUMI_CONNECTOR_URL_NOT_FOUND','round','_sheetSkeletonManagerService','_checkCalculationAvailable','dispose','getMember','toRgbString','enableFrontendLog','bind','ACTIVE_UNIT_EVENT_CHANNEL','_registerRenderDependencies','_context','send','_onCursorUpdate','save','imageSourceType','activeSheet$','PAYMENT_CHANNEL_NOT_SUPPORT','string','_collabCursorController','getRenderById','onLocalMutation','ENTITLE_DUP_SUBSCRIPTION','_commandService','INVITE_CODE_ALREADY_BOUND','getStateCache','getSkeleton','socket$','exhaustSavingTask','sessionStatus$','uni.network.url-service','_collabSessionService','RECT','REDEMPTION_CODE_INACTIVE','_cursorInfo$','_colorAssignService','m1Prime','row','getCurrentUnitForType','NOT_COLLAB','_scene','_toggleOnline','_cursors','green.600','width','dirtyRanges','some','onMouseMove','disposeWithMe','SNAPSHOT_INVALID_SNAPSHOT','transformMutation','_hover','YUUMI_UNABLE_LOAD_URL','_showGuardMessage','_initStatusComponent','_uiPartsService','UNIVER_DOC','_collaborationSessionService','getUndoRedoMutationParamsCache','_docSkeleton','LOGIN_FAILED','_transformPreviousActiveRange','REDEMPTION_CODE_FULLY_REDEEMED','drawWith','cursorInfo$','PENDING','permission.title','APPLY_REJECT','EMAIL_VERIFY_CODE_MISMATCH','_initWindowErrorListener','stack','toString','LICENSE_DISTRO_REJECTED','newValue','SUCCESS','session.collaboration-timeout','CHANGESET_REVISION_CONFILICT','shift','getActiveSheet','OTHER_CLIENTS_EDITING','INVALID_ARGUMENT','eventID','get','_ensureSubject','_init','_initStatusListener','_session','_send','currentTheme$','/run/','_startSheetCollabCursor','top','clearInterval','0\x200\x2017\x2016','YUUMI_URL_COL_OUT_OF_RANGE','_maxFormulaLimit','13227528QWpLwg','executionId','onRendered','requireSession','getVpScrollXYInfoByPosToVp','_shapes','deepClone','idSuffix','InsertColCommandId','FromArray','urlChange$','_docTransformIMECacheService','_monkeyPatchLogService','range','m2Prime','_renderManagerService','permission.content','_uploadLog','findNodePositionByCharIndex','onCommandExecuted','url(#on-line-icon_clip0_910_349)','getUniverSheetInstance','_setupBeforeClosingHandler','_onRefRangeChange','_backgroundColor','tag','UNIVER_SHEET','_onCursorDelete','_disabled','_pollingInterval','sheetID','MoveRangeCommandId'];_0x55b3=function(){return _0x44f4c4;};return _0x55b3();}const rn=0x1389;let ke=class extends _0x4128f2{constructor(_0x118ecc,_0xdb6e69,_0x1bd0dc,_0x308e2d){const _0x337d37=_0x46d0db;super(),_(this,_0x337d37(0x35f),new Set()),_(this,_0x337d37(0x2c0),null),(this[_0x337d37(0x340)]=_0x118ecc,this[_0x337d37(0x337)]=_0xdb6e69,this['_collabCursorController']=_0x1bd0dc,this[_0x337d37(0x2ed)]=_0x308e2d,this[_0x337d37(0x389)]());}[_0x46d0db(0x389)](){const _0x440ad3=_0x46d0db;this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x440ad3(0x303)](_0x402121(this[_0x440ad3(0x2b3)]),_0x310d20(_0xf0def0=>{const _0x27355b=_0x440ad3;if(_0xf0def0){const _0x253316=_0xf0def0[_0x27355b(0x40b)];return _0x251a62(this[_0x27355b(0x348)][_0x27355b(0x3ff)](this[_0x27355b(0x340)][_0x27355b(0x2f9)]),this[_0x27355b(0x2ed)][_0x27355b(0x38d)])[_0x27355b(0x303)](_0x2a3dd6(([_0x238de0,_0x11a142])=>{const _0x1e218b=_0x27355b,_0x5c0060=new Map();return _0x238de0[_0x1e218b(0x207)]((_0x449972,_0x32a27d)=>{const _0xfc423b=_0x1e218b;if(_0x449972[_0xfc423b(0x3b3)]===_0x253316){const _0x1170a0={..._0x449972};_0x1170a0['color']=this[_0xfc423b(0x2ed)][_0xfc423b(0x22f)](_0x449972[_0xfc423b(0x2d5)]),_0x5c0060[_0xfc423b(0x32b)](_0x32a27d,_0x1170a0);}}),{'skeleton':_0xf0def0,'cursors':_0x5c0060};}));}return _0x45fb3c({'skeleton':null,'cursors':new Map()});}))[_0x440ad3(0x22d)](({skeleton:_0x3bb0af,cursors:_0xce995a})=>{const _0x41eb2a=_0x440ad3;this[_0x41eb2a(0x27a)](),_0x3bb0af&&this[_0x41eb2a(0x29a)](_0x3bb0af,_0xce995a);}),this[_0x440ad3(0x337)][_0x440ad3(0x2f5)]['subscribe'](_0x3f4143=>{const _0x2924ab=_0x440ad3;if(_0x3f4143==null)return;const {skeleton:_0x4ee05c}=_0x3f4143,{scene:_0x35a11a}=this['_context'];_0x35a11a[_0x2924ab(0x2e7)]['subscribeEvent'](_0x1530e6(_0x4210ed=>{const _0x6e1bac=_0x2924ab;var _0x19ed00,_0xa72343;const {offsetX:_0x49617d,offsetY:_0x403090}=_0x4210ed,{x:_0x281766,y:_0x559b8a}=_0x35a11a[_0x6e1bac(0x2d3)](_0x1a7621[_0x6e1bac(0x39e)]([_0x49617d,_0x403090])),{scaleX:_0x448bdb,scaleY:_0x18ca59}=_0x35a11a[_0x6e1bac(0x2b9)](),_0x348d74=_0x35a11a['getViewport'](_0x546f5f[_0x6e1bac(0x40a)]),_0x941cad=_0x35a11a[_0x6e1bac(0x399)](_0x1a7621[_0x6e1bac(0x39e)]([_0x281766,_0x559b8a]),_0x348d74),_0x19fb69=_0x4ee05c[_0x6e1bac(0x3c3)](_0x49617d,_0x403090,_0x448bdb,_0x18ca59,_0x941cad);((_0x19ed00=this['_lastPointer'])==null?void 0x0:_0x19ed00[_0x6e1bac(0x217)])===_0x19fb69[_0x6e1bac(0x217)]&&((_0xa72343=this['_lastPointer'])==null?void 0x0:_0xa72343[_0x6e1bac(0x35a)])===_0x19fb69['row']||this[_0x6e1bac(0x35f)][_0x6e1bac(0x207)](_0x3f2058=>{const _0x48df6f=_0x6e1bac;_0x3f2058[_0x48df6f(0x364)](_0x19fb69);});},0x64));});}[_0x46d0db(0x29a)](_0x50e568,_0x25a16d){const _0x164b47=_0x46d0db;var _0x431e15;const _0x10d915=(_0x431e15=this[_0x164b47(0x337)]['getCurrent']())==null?void 0x0:_0x431e15['skeleton'];if(!_0x10d915)return;const _0x5fa236=this[_0x164b47(0x32d)]();if(!_0x5fa236)return;this[_0x164b47(0x35f)][_0x164b47(0x207)](_0x363bef=>{const _0x24399a=_0x164b47;_0x363bef[_0x24399a(0x1f3)]();});const {scene:_0x521506}=_0x5fa236,_0x2c07b6=on(Array['from'](_0x25a16d[_0x164b47(0x2af)]()))['map'](_0x154d8d=>{const _0x490800=_0x164b47,{color:_0x26a63b,range:_0x1fff91,name:_0x1edbee,selection:_0xacfcd0,sheetID:_0x350947}=_0x154d8d,{startColumn:_0x2e7fff,startRow:_0x269f10,endColumn:_0x317f9b,endRow:_0x3dfde6}=_0x1fff91,_0x5c4de2=_0x58f1da(_0x269f10,_0x2e7fff,_0x521506,_0x10d915),_0x429c31=_0x58f1da(_0x3dfde6,_0x317f9b,_0x521506,_0x10d915),{columnHeaderHeightAndMarginTop:_0x66329f}=_0x10d915,{startX:_0x98acbc,startY:_0x5c4963}=_0x5c4de2,{endX:_0x4ec1b8,endY:_0x9bf0b3}=_0x429c31,_0x1f01e4=_0x4ec1b8-_0x98acbc,_0x456107=_0x9bf0b3-_0x5c4963,_0x44ad1b={'labelPosition':_0x5c4963-_0x66329f>=Q?_0x490800(0x390):_0x490800(0x26f),'sheetID':_0x350947,'range':_0x1fff91,'color':_0x26a63b,'name':_0x1edbee,'selection':_0xacfcd0,'left':_0x98acbc,'top':_0x5c4963,'width':_0x1f01e4,'height':_0x456107,'evented':!0x1,'zIndex':rn};return new tn(_0x1edbee,_0x44ad1b);});_0x521506[_0x164b47(0x2ab)](_0x2c07b6,qi),this[_0x164b47(0x35f)]=new Set(_0x2c07b6);}['_removeCollabCursors'](){const _0x364e1e=_0x46d0db;var _0x43e948;(_0x43e948=this['_cursors'])==null||_0x43e948[_0x364e1e(0x207)](_0x41034b=>_0x41034b[_0x364e1e(0x339)]());}['_getSheetObject'](){const _0x353165=_0x46d0db;return _0x146077(this[_0x353165(0x340)]['unit'],this[_0x353165(0x340)]);}};ke=nn([be(0x1,_0xea701b(_0x437ffc)),be(0x2,_0xea701b(H)),be(0x3,_0xea701b(_0x4e6929))],ke);function on(_0x3b8377){const _0x72f27=_0x46d0db,_0x518cc7=new Map();return _0x3b8377[_0x72f27(0x207)](_0x2f2ae5=>{const _0x3f32b7=_0x72f27;if(_0x518cc7[_0x3f32b7(0x325)](_0x2f2ae5['selection'])){const _0x4e492b=_0x518cc7['get'](_0x2f2ae5[_0x3f32b7(0x28f)]);_0x4e492b['name']+=',\x20'+_0x2f2ae5[_0x3f32b7(0x1d5)];}else _0x518cc7[_0x3f32b7(0x32b)](_0x2f2ae5[_0x3f32b7(0x28f)],_0x2f2ae5);}),Array[_0x72f27(0x270)](_0x518cc7[_0x72f27(0x2af)]());}var an=Object[_0x46d0db(0x3db)],cn=(_0x64c5aa,_0x5dcea2,_0x6f5e49,_0x58a5f8)=>{for(var _0x431cdf=_0x58a5f8>0x1?void 0x0:_0x58a5f8?an(_0x5dcea2,_0x6f5e49):_0x5dcea2,_0x573514=_0x64c5aa['length']-0x1,_0x5d7411;_0x573514>=0x0;_0x573514--)(_0x5d7411=_0x64c5aa[_0x573514])&&(_0x431cdf=_0x5d7411(_0x431cdf)||_0x431cdf);return _0x431cdf;},F=(_0x31a89f,_0x4da8b3)=>(_0x1375f2,_0x17fc79)=>_0x4da8b3(_0x1375f2,_0x17fc79,_0x31a89f);let _e=class extends _0x325e21{constructor(_0x2894d7,_0x8c430d,_0xbdb750,_0x560acb,_0x3fdffd,_0x55155e){const _0x318d6d=_0x46d0db;super(),this[_0x318d6d(0x402)]=_0x2894d7,this[_0x318d6d(0x2ad)]=_0x8c430d,this['_collaborationUIEventService']=_0xbdb750,this[_0x318d6d(0x236)]=_0x560acb,this[_0x318d6d(0x27c)]=_0x3fdffd,this[_0x318d6d(0x2c7)]=_0x55155e,this['_setupBeforeClosingHandler'](),this[_0x318d6d(0x1da)]();}[_0x46d0db(0x3ab)](){const _0x1b5fc3=_0x46d0db;this['disposeWithMe'](this['_beforeCloseService'][_0x1b5fc3(0x298)](()=>{const _0x575e07=_0x1b5fc3;if(this[_0x575e07(0x2ad)][_0x575e07(0x258)][_0x575e07(0x32a)])return this['_localeService']['t'](_0x575e07(0x3e6));}));}[_0x46d0db(0x1da)](){const _0x26dd2a=_0x46d0db;this['disposeWithMe'](this[_0x26dd2a(0x2e9)][_0x26dd2a(0x212)]['subscribe'](_0x206de2=>{const _0x26c027=_0x26dd2a;_0x206de2['id']===_0x31159c[_0x26c027(0x1ea)]&&this['_messageService'][_0x26c027(0x2e8)]({'type':_0x404ab1[_0x26c027(0x290)],'content':this[_0x26c027(0x2c7)]['t']('collaboration.single-unit.warning')}),_0x206de2['id']===_0x31159c['CLOSE_ROOM']&&this[_0x26c027(0x236)][_0x26c027(0x2e8)]({'type':_0x404ab1['Warning'],'content':this[_0x26c027(0x2c7)]['t'](_0x26c027(0x3f8))}),_0x206de2['id']===_0x31159c['PERMISSION_DENIED']&&this[_0x26c027(0x27c)][_0x26c027(0x2e8)]({'title':this[_0x26c027(0x2c7)]['t'](_0x26c027(0x377)),'content':this[_0x26c027(0x2c7)]['t'](_0x26c027(0x3a5)),'type':_0x26c027(0x263),'duration':0x0}),_0x206de2['id']===_0x31159c[_0x26c027(0x268)]&&this['_messageService'][_0x26c027(0x2e8)]({'type':_0x404ab1[_0x26c027(0x24d)],'content':this[_0x26c027(0x2c7)]['t'](_0x26c027(0x3f8))+'('+_0x206de2[_0x26c027(0x2ca)]+')'}),_0x206de2['id']===_0x31159c['JOIN_ROOM_FAILED']&&this[_0x26c027(0x236)][_0x26c027(0x2e8)]({'type':_0x404ab1[_0x26c027(0x290)],'content':this[_0x26c027(0x2c7)]['t'](_0x206de2[_0x26c027(0x2ca)]||'')}),_0x206de2['id']===_0x31159c['SOCKET_FAILED_RETRY']&&this[_0x26c027(0x236)]['show']({'type':_0x404ab1[_0x26c027(0x290)],'content':this['_localeService']['t'](_0x26c027(0x2e1))}),_0x206de2['id']===_0x31159c[_0x26c027(0x3f1)]&&this[_0x26c027(0x236)][_0x26c027(0x2e8)]({'type':_0x404ab1[_0x26c027(0x24d)],'content':this[_0x26c027(0x2c7)]['t'](_0x26c027(0x244))}),_0x206de2['id']===_0x31159c[_0x26c027(0x404)]&&this[_0x26c027(0x236)][_0x26c027(0x2e8)]({'type':_0x404ab1[_0x26c027(0x24d)],'content':this['_localeService']['t'](_0x26c027(0x380))});}));}};_e=cn([F(0x0,_0x17bc31),F(0x1,_0x30567e),F(0x2,_0xea701b(_0x1f424b)),F(0x3,_0x25d450),F(0x4,_0x1b2ee8),F(0x5,_0xea701b(_0x4fbd2b))],_e);var _n=Object[_0x46d0db(0x3db)],ln=(_0x5ea69b,_0x44f579,_0x3bdb82,_0x15cfb0)=>{const _0xf49a3e=_0x46d0db;for(var _0x313ba5=_0x15cfb0>0x1?void 0x0:_0x15cfb0?_n(_0x44f579,_0x3bdb82):_0x44f579,_0x227435=_0x5ea69b[_0xf49a3e(0x3c7)]-0x1,_0x82660e;_0x227435>=0x0;_0x227435--)(_0x82660e=_0x5ea69b[_0x227435])&&(_0x313ba5=_0x82660e(_0x313ba5)||_0x313ba5);return _0x313ba5;},ne=(_0x2f0544,_0x2d2a19)=>(_0x15253a,_0x5dc1a0)=>_0x2d2a19(_0x15253a,_0x5dc1a0,_0x2f0544);let le=class extends _0x325e21{constructor(_0x28a1fd,_0x44a672,_0x3729ef,_0x4022af){const _0x216e74=_0x46d0db;super(),_(this,_0x216e74(0x1dd)),(this[_0x216e74(0x278)]=_0x28a1fd,this[_0x216e74(0x2d2)]=_0x44a672,this['_logService']=_0x3729ef,this[_0x216e74(0x36e)]=_0x4022af,this[_0x216e74(0x389)]());}[_0x46d0db(0x389)](){const _0x395ead=_0x46d0db;this[_0x395ead(0x37a)](),this[_0x395ead(0x28d)](),this[_0x395ead(0x3a1)](),this[_0x395ead(0x405)]();}[_0x46d0db(0x405)](){const _0xadf57d=_0x46d0db;this['disposeWithMe'](this[_0xadf57d(0x36e)][_0xadf57d(0x350)][_0xadf57d(0x22d)](_0x4ba511=>{const _0x263d31=_0xadf57d;this[_0x263d31(0x1dd)]=_0x4ba511==null?void 0x0:_0x4ba511[_0x263d31(0x260)];}));}['_initWindowErrorListener'](){const _0x30b005=_0x46d0db,_0x3afa58=_0x143df9=>{const _0x2565da=_0x4fdf;var _0x3ea152;this[_0x2565da(0x3a6)](_0x2565da(0x263),_0x2565da(0x2fc)+_0x143df9[_0x2565da(0x274)]+_0x2565da(0x205)+_0x143df9[_0x2565da(0x333)]+':'+_0x143df9[_0x2565da(0x25a)]+':'+_0x143df9[_0x2565da(0x2f3)]+'\x0a'+(((_0x3ea152=_0x143df9['error'])==null?void 0x0:_0x3ea152[_0x2565da(0x37b)])||''));};window[_0x30b005(0x1e0)](_0x30b005(0x263),_0x3afa58),this[_0x30b005(0x365)](()=>{const _0x552586=_0x30b005;window[_0x552586(0x2b2)](_0x552586(0x263),_0x3afa58);});}[_0x46d0db(0x28d)](){const _0xb1ea29=_0x46d0db,_0x3f9211=_0x41603a=>{const _0x3b42d4=_0x4fdf;this['_uploadLog'](_0x3b42d4(0x263),'[Unhandled\x20Rejection]:\x20'+_0x41603a[_0x3b42d4(0x413)]);};window[_0xb1ea29(0x1e0)](_0xb1ea29(0x329),_0x3f9211),this[_0xb1ea29(0x365)](()=>{const _0x36ad39=_0xb1ea29;window[_0x36ad39(0x2b2)](_0x36ad39(0x329),_0x3f9211);});}['_monkeyPatchLogService'](){const _0x114398=_0x46d0db,_0x575e09=this['_logService'][_0x114398(0x263)][_0x114398(0x33d)](this[_0x114398(0x281)]);this[_0x114398(0x281)][_0x114398(0x263)]=(..._0x4160db)=>{const _0x13501c=_0x114398,_0x5a5f4e=_0x4160db[_0x13501c(0x2ee)](_0x5e197e=>_0x5e197e instanceof Error?_0x5e197e[_0x13501c(0x274)]+'\x0a'+_0x5e197e[_0x13501c(0x37b)]:String(_0x5e197e))[_0x13501c(0x412)]('\x20');this[_0x13501c(0x3a6)](_0x13501c(0x263),_0x13501c(0x3cb)+_0x5a5f4e),_0x575e09(..._0x4160db);},this[_0x114398(0x365)](()=>{const _0x5b1a5f=_0x114398;this[_0x5b1a5f(0x281)][_0x5b1a5f(0x263)]=_0x575e09;});}[_0x46d0db(0x3a6)](_0x3ce201,_0x9f269f){const _0x40112d=_0x46d0db;try{const _0xa26811={'userId':this[_0x40112d(0x1dd)],'logLabel':_0x3ce201,'content':_0x9f269f};this[_0x40112d(0x2d2)][_0x40112d(0x211)]('/universer-api/frontend/logs',{'body':_0xa26811})['catch'](()=>{});}catch{}}};le=ln([ne(0x0,_0xea701b(_0x29824e)),ne(0x1,_0xea701b(_0x146466)),ne(0x2,_0xf63a71),ne(0x3,_0xea701b(_0x3840d4))],le);const hn=_0x46d0db(0x228),_t={};var un=Object[_0x46d0db(0x3db)],dn=(_0x267f33,_0x4d1054,_0x2dc69d,_0x455666)=>{const _0x16c297=_0x46d0db;for(var _0xa205fa=_0x455666>0x1?void 0x0:_0x455666?un(_0x4d1054,_0x2dc69d):_0x4d1054,_0x13291b=_0x267f33[_0x16c297(0x3c7)]-0x1,_0xef635a;_0x13291b>=0x0;_0x13291b--)(_0xef635a=_0x267f33[_0x13291b])&&(_0xa205fa=_0xef635a(_0xa205fa)||_0xa205fa);return _0xa205fa;},lt=(_0x13dbb1,_0x3e027b)=>(_0x126936,_0x137baa)=>_0x3e027b(_0x126936,_0x137baa,_0x13dbb1);let he=class{constructor(_0x1c226d,_0x46a2fe){const _0x535add=_0x46d0db;this[_0x535add(0x297)]=_0x1c226d,this['_renderManagerService']=_0x46a2fe;}['transformIMECache'](_0x43c2c9){const _0x21780e=_0x46d0db;this[_0x21780e(0x29c)](_0x43c2c9),this[_0x21780e(0x372)](_0x43c2c9);}[_0x46d0db(0x3ee)](_0x166a2b){const _0x2f5029=_0x46d0db,{unitID:_0x5e9082}=_0x166a2b,_0x2f8613=this['_renderManagerService'][_0x2f5029(0x349)](_0x5e9082)['with'](_0x6b1360),{redoCache:_0x501b04}=_0x2f8613[_0x2f5029(0x36f)]();if(_0x501b04[_0x2f5029(0x3c7)]===0x0)return _0x166a2b;let _0x552c42=_0x193f3d[_0x2f5029(0x39b)](_0x166a2b[_0x2f5029(0x30a)][0x0]);for(let _0x479ccc=0x0;_0x479ccc<_0x501b04[_0x2f5029(0x3c7)];_0x479ccc++){const _0x31d30b={'id':'doc.mutation.rich-text-editing','params':{..._0x501b04[_0x479ccc]}},_0x5edb33=this[_0x2f5029(0x297)][_0x2f5029(0x367)](_0x552c42,_0x31d30b,!0x1);if(_0xe71731(_0x5edb33))throw _0x5edb33[_0x2f5029(0x263)];_0x552c42=_0x5edb33[_0x2f5029(0x359)];}return{..._0x193f3d[_0x2f5029(0x39b)](_0x166a2b),'mutations':[_0x552c42]};}['_transformUndoRedoStack'](_0xd793bb){const _0xb3e132=_0x46d0db,{unitID:_0x5e49c7}=_0xd793bb,_0x15592d=this[_0xb3e132(0x3a4)][_0xb3e132(0x349)](_0x5e49c7)[_0xb3e132(0x313)](_0x6b1360),{undoCache:_0x633c71,redoCache:_0x1c24cf}=_0x15592d[_0xb3e132(0x36f)]();if(_0x633c71[_0xb3e132(0x3c7)]===0x0||_0x1c24cf[_0xb3e132(0x3c7)]===0x0)return;const _0x1b41e4=[],_0x111ed3=[];let _0x1f5c7d=_0x193f3d[_0xb3e132(0x39b)](_0xd793bb['mutations'][0x0]),_0x20cc8f=_0x193f3d[_0xb3e132(0x39b)](_0xd793bb[_0xb3e132(0x30a)][0x0]);for(let _0x2e345a=_0x633c71[_0xb3e132(0x3c7)]-0x1;_0x2e345a>=0x0;_0x2e345a--){const _0x2ab59f={'id':_0xb3e132(0x26b),'params':{..._0x633c71[_0x2e345a]}},_0x37fe27={'id':_0xb3e132(0x26b),'params':{..._0x1c24cf[_0x2e345a]}},_0x589948=this[_0xb3e132(0x297)]['transformMutation'](_0x1f5c7d,_0x2ab59f,!0x1),_0xc6b6b8=this[_0xb3e132(0x297)][_0xb3e132(0x367)](_0x20cc8f,_0x37fe27,!0x1);if(_0xe71731(_0x589948))throw _0x589948[_0xb3e132(0x263)];if(_0xe71731(_0xc6b6b8))throw _0xc6b6b8['error'];_0x1b41e4[_0xb3e132(0x1ee)](_0x589948[_0xb3e132(0x3a3)]['params']),_0x111ed3['unshift'](_0xc6b6b8[_0xb3e132(0x3a3)]['params']),_0x1f5c7d=_0x589948['m1Prime'],_0x20cc8f=_0xc6b6b8[_0xb3e132(0x359)];}_0x15592d[_0xb3e132(0x2e5)]({'undoCache':_0x1b41e4,'redoCache':_0x111ed3});}[_0x46d0db(0x372)](_0x30d6dc){const _0xba4189=_0x46d0db,{unitID:_0x5e133e}=_0x30d6dc,_0x1051c3=this[_0xba4189(0x3a4)][_0xba4189(0x349)](_0x5e133e)[_0xba4189(0x313)](_0x6b1360),_0x1c0157=_0x1051c3[_0xba4189(0x3ea)]();if(_0x1c0157==null)return;const _0x1deab3=[{'id':_0xba4189(0x26b),'params':{'unitId':_0x30d6dc[_0xba4189(0x23d)],'actions':null,'textRanges':[_0x1c0157]}}],_0x35db55=this[_0xba4189(0x297)]['transformMutationsWithChangeset'](_0x30d6dc,_0x1deab3);if(!_0x4984e5(_0x35db55))throw _0x35db55[_0xba4189(0x263)];const _0x4a6972=_0x35db55[_0xba4189(0x3a3)][0x0][_0xba4189(0x2a9)][_0xba4189(0x319)];Array['isArray'](_0x4a6972)&&_0x4a6972['length']&&_0x1051c3['setActiveRange'](_0x4a6972[0x0]);}};he=dn([lt(0x0,_0x3ec468),lt(0x1,_0x38baec)],he);var Sn=Object[_0x46d0db(0x3db)],In=(_0x2b1ebb,_0x47b1c4,_0x85a02c,_0x3c5b6e)=>{for(var _0x5e3853=_0x3c5b6e>0x1?void 0x0:_0x3c5b6e?Sn(_0x47b1c4,_0x85a02c):_0x47b1c4,_0x37c413=_0x2b1ebb['length']-0x1,_0x241265;_0x37c413>=0x0;_0x37c413--)(_0x241265=_0x2b1ebb[_0x37c413])&&(_0x5e3853=_0x241265(_0x5e3853)||_0x5e3853);return _0x5e3853;},Le=(_0x42a207,_0x33a2fe)=>(_0x254d89,_0x24a7b7)=>_0x33a2fe(_0x254d89,_0x24a7b7,_0x42a207);let ue=class{constructor(_0x4a3abd,_0x4c26e8,_0x51fc3c){const _0x1e2a4e=_0x46d0db;this[_0x1e2a4e(0x278)]=_0x4a3abd,this[_0x1e2a4e(0x297)]=_0x4c26e8,this['_docStateChangeManagerService']=_0x51fc3c;}['transformStateCache'](_0x176c54){const _0x10ec5a=_0x46d0db;this[_0x10ec5a(0x321)](_0x176c54);}[_0x46d0db(0x3ee)](_0x464145){const _0x114411=_0x46d0db,{unitID:_0x5afded}=_0x464145,{collaboration:_0xf6cc11}=this[_0x114411(0x1cb)][_0x114411(0x34e)](_0x5afded);if(_0xf6cc11[_0x114411(0x3c7)]===0x0)return _0x464145;let _0x1a03a4=_0x193f3d[_0x114411(0x39b)](_0x464145[_0x114411(0x30a)][0x0]);for(let _0x1c3475=0x0;_0x1c3475<_0xf6cc11[_0x114411(0x3c7)];_0x1c3475++){const _0x3c43e9={'id':_0x114411(0x26b),'params':{'unitId':_0xf6cc11[_0x1c3475]['unitId'],..._0xf6cc11[_0x1c3475][_0x114411(0x2fa)]}},_0x459188=this[_0x114411(0x297)][_0x114411(0x367)](_0x1a03a4,_0x3c43e9,!0x1);if(_0xe71731(_0x459188))throw _0x459188['error'];_0x1a03a4=_0x459188[_0x114411(0x359)];}return{..._0x193f3d[_0x114411(0x39b)](_0x464145),'mutations':[_0x1a03a4]};}['_transformHistoryAndStateStack'](_0x4006fd){const _0x2f6076=_0x46d0db,{unitID:_0x4aba5f}=_0x4006fd,{history:_0x420b08,collaboration:_0x5d1d21}=this[_0x2f6076(0x1cb)]['getStateCache'](_0x4aba5f);if(_0x420b08[_0x2f6076(0x3c7)]===0x0&&_0x5d1d21[_0x2f6076(0x3c7)]===0x0)return;const _0x3ea474=[],_0x173be3=[];let _0x2f051b=_0x193f3d['deepClone'](_0x4006fd['mutations'][0x0]),_0x27c196=_0x193f3d[_0x2f6076(0x39b)](_0x4006fd[_0x2f6076(0x30a)][0x0]);for(let _0xfda136=_0x420b08[_0x2f6076(0x3c7)]-0x1;_0xfda136>=0x0;_0xfda136--){const _0x4d461b={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x420b08[_0xfda136]['unitId'],..._0x420b08[_0xfda136]['undoState']}},_0x512dc0={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x420b08[_0xfda136][_0x2f6076(0x2f9)],..._0x420b08[_0xfda136][_0x2f6076(0x2fa)]}},_0x1e5b5f=this[_0x2f6076(0x297)]['transformMutation'](_0x2f051b,_0x4d461b,!0x1),_0xe3392d=this[_0x2f6076(0x297)][_0x2f6076(0x367)](_0x27c196,_0x512dc0,!0x1);if(_0xe71731(_0x1e5b5f))throw _0x1e5b5f[_0x2f6076(0x263)];if(_0xe71731(_0xe3392d))throw _0xe3392d[_0x2f6076(0x263)];_0x3ea474['unshift']({..._0x420b08[_0xfda136],'undoState':_0x1e5b5f[_0x2f6076(0x3a3)][_0x2f6076(0x2a9)],'redoState':_0xe3392d[_0x2f6076(0x3a3)][_0x2f6076(0x2a9)]}),_0x2f051b=_0x1e5b5f['m1Prime'],_0x27c196=_0xe3392d[_0x2f6076(0x359)];}_0x2f051b=_0x193f3d['deepClone'](_0x4006fd['mutations'][0x0]),_0x27c196=_0x193f3d['deepClone'](_0x4006fd[_0x2f6076(0x30a)][0x0]);for(let _0x16688b=_0x5d1d21[_0x2f6076(0x3c7)]-0x1;_0x16688b>=0x0;_0x16688b--){const _0x3f3661={'id':_0x2f6076(0x26b),'params':{'unitId':_0x5d1d21[_0x16688b][_0x2f6076(0x2f9)],..._0x5d1d21[_0x16688b][_0x2f6076(0x292)]}},_0x1bb484={'id':_0x2f6076(0x26b),'params':{'unitId':_0x5d1d21[_0x16688b]['unitId'],..._0x5d1d21[_0x16688b][_0x2f6076(0x2fa)]}},_0x1801a9=this['_transformService'][_0x2f6076(0x367)](_0x2f051b,_0x3f3661,!0x1),_0x22e9fd=this[_0x2f6076(0x297)][_0x2f6076(0x367)](_0x27c196,_0x1bb484,!0x1);if(_0xe71731(_0x1801a9))throw _0x1801a9['error'];if(_0xe71731(_0x22e9fd))throw _0x22e9fd[_0x2f6076(0x263)];_0x173be3['unshift']({..._0x5d1d21[_0x16688b],'undoState':_0x1801a9[_0x2f6076(0x3a3)][_0x2f6076(0x2a9)],'redoState':_0x22e9fd[_0x2f6076(0x3a3)][_0x2f6076(0x2a9)]}),_0x2f051b=_0x1801a9['m1Prime'],_0x27c196=_0x22e9fd['m1Prime'];}this[_0x2f6076(0x1cb)][_0x2f6076(0x238)](_0x4aba5f,{'history':_0x3ea474,'collaboration':_0x173be3});}};ue=In([Le(0x0,_0xea701b(_0x29824e)),Le(0x1,_0x3ec468),Le(0x2,_0xea701b(_0x369bb6))],ue);var mn=Object[_0x46d0db(0x3db)],fn=(_0x249167,_0x46f408,_0x128566,_0x3b5162)=>{const _0x1db582=_0x46d0db;for(var _0x5a5c8a=_0x3b5162>0x1?void 0x0:_0x3b5162?mn(_0x46f408,_0x128566):_0x46f408,_0x4b01f8=_0x249167[_0x1db582(0x3c7)]-0x1,_0x18ca3e;_0x4b01f8>=0x0;_0x4b01f8--)(_0x18ca3e=_0x249167[_0x4b01f8])&&(_0x5a5c8a=_0x18ca3e(_0x5a5c8a)||_0x5a5c8a);return _0x5a5c8a;},ht=(_0x1c42c5,_0x54317a)=>(_0x275221,_0x35453e)=>_0x54317a(_0x275221,_0x35453e,_0x1c42c5);let de=class{constructor(_0x51ae4d,_0x288785){const _0x555f98=_0x46d0db;this[_0x555f98(0x278)]=_0x51ae4d,this[_0x555f98(0x297)]=_0x288785;}[_0x46d0db(0x23f)](_0x51d85f){const _0x44481e=_0x46d0db;var _0x3d428e;const _0x42818e=this['_injector'][_0x44481e(0x387)](_0x11d383),_0x2da27a=(_0x3d428e=_0x42818e[_0x44481e(0x24f)]())!=null?_0x3d428e:[];if(_0x2da27a[_0x44481e(0x3c7)]===0x0)return;const _0x2114fb=_0x51d85f[_0x44481e(0x23d)],_0x327cc8=[{'id':_0x44481e(0x26b),'params':{'unitId':_0x2114fb,'actions':null,'textRanges':_0x2da27a}}],_0x5e261e=this[_0x44481e(0x297)][_0x44481e(0x40c)](_0x51d85f,_0x327cc8);if(!_0x4984e5(_0x5e261e))throw _0x5e261e[_0x44481e(0x263)];const _0x3153a2=_0x5e261e[_0x44481e(0x3a3)][0x0][_0x44481e(0x2a9)][_0x44481e(0x319)];Array[_0x44481e(0x1e5)](_0x3153a2)&&_0x3153a2[_0x44481e(0x3c7)]&&_0x42818e[_0x44481e(0x2fd)](_0x3153a2,{'unitId':_0x2114fb,'subUnitId':_0x2114fb},!0x1);}};de=fn([ht(0x0,_0xea701b(_0x29824e)),ht(0x1,_0x3ec468)],de);var gn=Object[_0x46d0db(0x3db)],En=(_0x156e17,_0x193fbf,_0x4a0313,_0x114fd4)=>{const _0x43b071=_0x46d0db;for(var _0xdf70ea=_0x114fd4>0x1?void 0x0:_0x114fd4?gn(_0x193fbf,_0x4a0313):_0x193fbf,_0x5ae4b5=_0x156e17[_0x43b071(0x3c7)]-0x1,_0x40a672;_0x5ae4b5>=0x0;_0x5ae4b5--)(_0x40a672=_0x156e17[_0x5ae4b5])&&(_0xdf70ea=_0x40a672(_0xdf70ea)||_0xdf70ea);return _0xdf70ea;},U=(_0x5a4a1a,_0x8ada5b)=>(_0x211894,_0x5c41a9)=>_0x8ada5b(_0x211894,_0x5c41a9,_0x5a4a1a);let Se=class extends _0x325e21{constructor(_0x59a9f5,_0x3cdf08,_0x3f7626,_0x24d802,_0x2e8af9,_0x4948e0,_0x49e8db,_0x1d0c24){const _0x77ddf9=_0x46d0db;super(),_(this,_0x77ddf9(0x27b),new _0xe5dabe(_0x3a48be[_0x77ddf9(0x35c)])),(this['_docStateChangeManagerService']=_0x59a9f5,this['_collaborationController']=_0x3cdf08,this[_0x77ddf9(0x3a0)]=_0x3f7626,this['_docTransformStateCacheService']=_0x24d802,this[_0x77ddf9(0x2a8)]=_0x2e8af9,this[_0x77ddf9(0x2d7)]=_0x4948e0,this[_0x77ddf9(0x236)]=_0x49e8db,this[_0x77ddf9(0x2c7)]=_0x1d0c24,this['_initEntityListener']());}[_0x46d0db(0x1fb)](){const _0x2a0e36=_0x46d0db;this[_0x2a0e36(0x365)](this['_collaborationController'][_0x2a0e36(0x3e7)][_0x2a0e36(0x22d)](_0x514fe5=>{const _0x2bfcf3=_0x2a0e36,_0x493106=this['_docStateChangeManagerService']['docStateChange$'][_0x2bfcf3(0x22d)](_0x410c19=>{const _0x4a9a6a=_0x2bfcf3;if(_0x410c19==null)return;const {unitId:_0x261240,redoState:_0x347ade,commandId:_0x195e2d}=_0x410c19;if(_0x261240!==_0x514fe5[_0x4a9a6a(0x23d)])return;const _0x25b923={'id':_0x195e2d,'type':_0x32d026['MUTATION'],'params':{'unitId':_0x261240,'actions':_0x347ade['actions'],'textRanges':null}};_0x514fe5[_0x4a9a6a(0x34a)](_0x25b923);});if(_0x514fe5[_0x2bfcf3(0x365)](_0x493106),_0x514fe5 instanceof _0x311d59){const _0x2cd37f={'onTransformIME':_0x10ae97=>this[_0x2bfcf3(0x3a0)][_0x2bfcf3(0x3e3)](_0x10ae97),'onTransformState':_0x407d6b=>this[_0x2bfcf3(0x2d6)][_0x2bfcf3(0x2f8)](_0x407d6b),'onTransformSelections':_0x4cecf7=>this[_0x2bfcf3(0x2a8)]['transformSelections'](_0x4cecf7),'onSyncEditingCollabCursor':_0x38c4dd=>this[_0x2bfcf3(0x2d7)]['syncEditingCollabCursor'](_0x38c4dd),'onTransformRemoteChangesetByIMECache':_0x58ee5b=>this['_docTransformIMECacheService']['transformRemoteChangeset'](_0x58ee5b),'onTransformRemoteChangesetByStateCache':_0x2620ba=>this[_0x2bfcf3(0x2d6)][_0x2bfcf3(0x3ee)](_0x2620ba)};_0x514fe5['addHandlerCallback'](_0x2cd37f);}}));}};Se=En([U(0x0,_0xea701b(_0x369bb6)),U(0x1,_0xea701b(_0x1e646e)),U(0x2,_0xea701b(he)),U(0x3,_0xea701b(ue)),U(0x4,_0xea701b(de)),U(0x5,_0xea701b(ze)),U(0x6,_0x25d450),U(0x7,_0xea701b(_0x4fbd2b))],Se);var Z=(_0x35c53f=>(_0x35c53f[_0x35c53f[_0x46d0db(0x3e8)]=0x0]=_0x46d0db(0x3e8),_0x35c53f[_0x35c53f['OK']=0x1]='OK',_0x35c53f[_0x35c53f[_0x46d0db(0x3b7)]=0x2]='INTERNAL_ERROR',_0x35c53f[_0x35c53f[_0x46d0db(0x31b)]=0x3]='PERMISSION_DENIED',_0x35c53f[_0x35c53f[_0x46d0db(0x2de)]=0x4]=_0x46d0db(0x2de),_0x35c53f[_0x35c53f[_0x46d0db(0x1e9)]=0x5]=_0x46d0db(0x1e9),_0x35c53f[_0x35c53f[_0x46d0db(0x2f0)]=0x6]='ALREADY_EXISTS',_0x35c53f[_0x35c53f[_0x46d0db(0x385)]=0x7]='INVALID_ARGUMENT',_0x35c53f[_0x35c53f[_0x46d0db(0x27f)]=0x8]=_0x46d0db(0x27f),_0x35c53f[_0x35c53f['COMPLETION_FINISHED']=0x9]=_0x46d0db(0x1f6),_0x35c53f[_0x35c53f[_0x46d0db(0x371)]=0xa]=_0x46d0db(0x371),_0x35c53f[_0x35c53f[_0x46d0db(0x2aa)]=0xb]=_0x46d0db(0x2aa),_0x35c53f[_0x35c53f[_0x46d0db(0x2bf)]=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x35c53f[_0x35c53f[_0x46d0db(0x379)]=0xd]=_0x46d0db(0x379),_0x35c53f[_0x35c53f[_0x46d0db(0x242)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x35c53f[_0x35c53f['AUTHORIZE_CODE_ILLEGAL']=0xf]=_0x46d0db(0x3b5),_0x35c53f[_0x35c53f[_0x46d0db(0x2db)]=0x10]='LOGIN_TOKEN_PROCESSING_FAILED',_0x35c53f[_0x35c53f[_0x46d0db(0x1f0)]=0x64]=_0x46d0db(0x1f0),_0x35c53f[_0x35c53f['ERROR_AGAIN']=0x65]=_0x46d0db(0x30c),_0x35c53f[_0x35c53f[_0x46d0db(0x1e1)]=0xc9]=_0x46d0db(0x1e1),_0x35c53f[_0x35c53f[_0x46d0db(0x3e9)]=0xca]='USER_IS_ANONYMOUS',_0x35c53f[_0x35c53f[_0x46d0db(0x381)]=0x1389]=_0x46d0db(0x381),_0x35c53f[_0x35c53f[_0x46d0db(0x366)]=0x1771]=_0x46d0db(0x366),_0x35c53f[_0x35c53f[_0x46d0db(0x279)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x35c53f[_0x35c53f[_0x46d0db(0x214)]=0x1773]=_0x46d0db(0x214),_0x35c53f[_0x35c53f[_0x46d0db(0x378)]=0x1b59]=_0x46d0db(0x378),_0x35c53f[_0x35c53f['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x46d0db(0x3f7),_0x35c53f[_0x35c53f['APPLY_REVISION_CONFILICT']=0x1b5b]='APPLY_REVISION_CONFILICT',_0x35c53f[_0x35c53f[_0x46d0db(0x222)]=0x1b5c]=_0x46d0db(0x222),_0x35c53f[_0x35c53f['APPLY_DUPLICATED']=0x1b5d]=_0x46d0db(0x3fc),_0x35c53f[_0x35c53f['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x46d0db(0x2dd),_0x35c53f[_0x35c53f[_0x46d0db(0x282)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x35c53f[_0x35c53f[_0x46d0db(0x23e)]=0x232a]=_0x46d0db(0x23e),_0x35c53f[_0x35c53f[_0x46d0db(0x332)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x35c53f[_0x35c53f[_0x46d0db(0x409)]=0x232c]=_0x46d0db(0x409),_0x35c53f[_0x35c53f[_0x46d0db(0x37d)]=0x232d]=_0x46d0db(0x37d),_0x35c53f[_0x35c53f[_0x46d0db(0x369)]=0x2711]=_0x46d0db(0x369),_0x35c53f[_0x35c53f[_0x46d0db(0x393)]=0x2712]=_0x46d0db(0x393),_0x35c53f[_0x35c53f[_0x46d0db(0x415)]=0x2713]=_0x46d0db(0x415),_0x35c53f[_0x35c53f[_0x46d0db(0x31c)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x35c53f[_0x35c53f[_0x46d0db(0x202)]=0x271a]=_0x46d0db(0x202),_0x35c53f[_0x35c53f[_0x46d0db(0x200)]=0x271b]=_0x46d0db(0x200),_0x35c53f[_0x35c53f[_0x46d0db(0x1f7)]=0x271c]=_0x46d0db(0x1f7),_0x35c53f[_0x35c53f[_0x46d0db(0x203)]=0x271d]=_0x46d0db(0x203),_0x35c53f[_0x35c53f[_0x46d0db(0x233)]=0x271e]=_0x46d0db(0x233),_0x35c53f[_0x35c53f[_0x46d0db(0x246)]=0x271f]=_0x46d0db(0x246),_0x35c53f[_0x35c53f[_0x46d0db(0x335)]=0x2720]=_0x46d0db(0x335),_0x35c53f[_0x35c53f[_0x46d0db(0x289)]=0x2af9]=_0x46d0db(0x289),_0x35c53f[_0x35c53f[_0x46d0db(0x320)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x35c53f[_0x35c53f[_0x46d0db(0x294)]=0x2ee2]=_0x46d0db(0x294),_0x35c53f[_0x35c53f[_0x46d0db(0x2dc)]=0x2ee3]=_0x46d0db(0x2dc),_0x35c53f[_0x35c53f[_0x46d0db(0x269)]=0x2ee4]=_0x46d0db(0x269),_0x35c53f[_0x35c53f[_0x46d0db(0x34d)]=0x2ee5]=_0x46d0db(0x34d),_0x35c53f[_0x35c53f[_0x46d0db(0x216)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x35c53f[_0x35c53f['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x46d0db(0x28e),_0x35c53f[_0x35c53f[_0x46d0db(0x1fd)]=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x35c53f[_0x35c53f[_0x46d0db(0x20d)]=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0x35c53f[_0x35c53f[_0x46d0db(0x3be)]=0x36b2]='ENTITLE_UPDOWN_GRADE_NOT_SUPPORT',_0x35c53f[_0x35c53f['ENTITLE_DUP_SUBSCRIPTION']=0x36b3]=_0x46d0db(0x34b),_0x35c53f[_0x35c53f['PAYMENT_CHANNEL_NOT_SUPPORT']=0x36b4]=_0x46d0db(0x346),_0x35c53f[_0x35c53f[_0x46d0db(0x3bf)]=0x36b5]=_0x46d0db(0x3bf),_0x35c53f[_0x35c53f[_0x46d0db(0x215)]=0x36b6]=_0x46d0db(0x215),_0x35c53f[_0x35c53f[_0x46d0db(0x326)]=0x36b7]=_0x46d0db(0x326),_0x35c53f[_0x35c53f['ENTITLE_USE_COUPON_NOT_1ST_TRADE']=0x36b8]=_0x46d0db(0x3dd),_0x35c53f[_0x35c53f[_0x46d0db(0x218)]=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0x35c53f[_0x35c53f[_0x46d0db(0x328)]=0x3716]='ENTITLE_REPORT_LIMIT_EXCEED',_0x35c53f[_0x35c53f[_0x46d0db(0x31a)]=0x3717]=_0x46d0db(0x31a),_0x35c53f[_0x35c53f[_0x46d0db(0x419)]=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x35c53f[_0x35c53f[_0x46d0db(0x1d7)]=0x3a99]=_0x46d0db(0x1d7),_0x35c53f[_0x35c53f[_0x46d0db(0x356)]=0x3a9a]=_0x46d0db(0x356),_0x35c53f[_0x35c53f[_0x46d0db(0x373)]=0x3a9b]=_0x46d0db(0x373),_0x35c53f[_0x35c53f[_0x46d0db(0x2e2)]=0x3a9c]='REDEMPTION_CODE_NOT_STARTED',_0x35c53f[_0x35c53f['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]=_0x46d0db(0x20b),_0x35c53f[_0x35c53f[_0x46d0db(0x2a7)]=0x3a9e]=_0x46d0db(0x2a7),_0x35c53f[_0x35c53f['REDEMPTION_CODE_HAS_BEEN_CREATED']=0x3a9f]='REDEMPTION_CODE_HAS_BEEN_CREATED',_0x35c53f[_0x35c53f[_0x46d0db(0x3c9)]=0x3e81]=_0x46d0db(0x3c9),_0x35c53f[_0x35c53f['UNRECOGNIZED']=-0x1]=_0x46d0db(0x2a4),_0x35c53f))(Z||{});function vn(_0x3f053f){const _0x572df5=_0x46d0db;var _0x44df38,_0x9a5a1e;const _0x3e9ded=(_0x44df38=_0x3f053f[_0x572df5(0x257)])==null?void 0x0:_0x44df38[_0x572df5(0x2b6)],_0x560e98=((_0x9a5a1e=_0x3f053f[_0x572df5(0x257)])==null?void 0x0:_0x9a5a1e[_0x572df5(0x1ef)])||0x0;return _0x3e9ded===_0x33e62e[_0x572df5(0x2e3)]&&_0x560e98>0x0;}function pn(_0x3cf0c9){const _0x3649db=_0x46d0db;return _0x3cf0c9['functionsExecutedState']===_0x5107e3[_0x3649db(0x37f)];}var On=Object['getOwnPropertyDescriptor'],Tn=(_0x47341b,_0x4244b7,_0x36a53c,_0x22a359)=>{const _0x10c4e9=_0x46d0db;for(var _0x5d5522=_0x22a359>0x1?void 0x0:_0x22a359?On(_0x4244b7,_0x36a53c):_0x4244b7,_0x29b109=_0x47341b[_0x10c4e9(0x3c7)]-0x1,_0x270488;_0x29b109>=0x0;_0x29b109--)(_0x270488=_0x47341b[_0x29b109])&&(_0x5d5522=_0x270488(_0x5d5522)||_0x5d5522);return _0x5d5522;},P=(_0x1bb9d3,_0x1da027)=>(_0x2137b2,_0xb0be50)=>_0x1da027(_0x2137b2,_0xb0be50,_0x1bb9d3);const Cn=_0x46d0db(0x280),Rn='/universer-api/license/formula/limit/start',Dn='/universer-api/license/formula/limit/done';let Ie=class extends _0x325e21{constructor(_0x2e6783,_0x5047c8,_0x39ad65,_0x1e400a,_0x1eb7d1,_0x1f53a0,_0x3ab123){const _0x4d43cb=_0x46d0db;super(),_(this,_0x4d43cb(0x3b2),null),_(this,'_maxFormulaLimit',0x0),_(this,_0x4d43cb(0x3d3),0x0),_(this,'_taskIds',[]),_(this,_0x4d43cb(0x1e2),0x0),(this[_0x4d43cb(0x236)]=_0x2e6783,this[_0x4d43cb(0x34c)]=_0x5047c8,this[_0x4d43cb(0x1e4)]=_0x39ad65,this[_0x4d43cb(0x2d2)]=_0x1e400a,this['_univerInstanceService']=_0x1eb7d1,this[_0x4d43cb(0x281)]=_0x1f53a0,this['_localeService']=_0x3ab123,this[_0x4d43cb(0x301)]());}[_0x46d0db(0x301)](){const _0xda51e4=_0x46d0db;this[_0xda51e4(0x365)](this[_0xda51e4(0x34c)]['beforeCommandExecuted']((_0x213197,_0x55a159)=>{const _0x18e0b2=_0xda51e4;var _0x48fd31;if(_0x213197['id']!==_0xd13b4b['id'])return;const _0x1e7547=_0x213197[_0x18e0b2(0x2a9)];if(!this[_0x18e0b2(0x1fc)]((_0x48fd31=_0x1e7547[_0x18e0b2(0x362)])!=null?_0x48fd31:[]))return;if(!this[_0x18e0b2(0x338)]())throw this[_0x18e0b2(0x26a)](_0x213197,_0x55a159),this[_0x18e0b2(0x36a)](),new _0x391ab4();})),this[_0xda51e4(0x365)](this[_0xda51e4(0x34c)][_0xda51e4(0x3a8)]((_0x3c8912,_0x170ca9)=>{const _0x247d06=_0xda51e4;if(_0x3c8912['id']!==_0x4191e8['id'])return;const _0x1fe57f=_0x3c8912[_0x247d06(0x2a9)];if(vn(_0x1fe57f)){const _0x12e15a=_0x316c01();this['_taskIds']['push'](_0x12e15a),this[_0x247d06(0x322)](_0x12e15a);}else{if(pn(_0x1fe57f)&&this[_0x247d06(0x1c9)][_0x247d06(0x3c7)]>0x0){const _0x3c218a=this['_taskIds'][_0x247d06(0x382)]();this[_0x247d06(0x324)](_0x3c218a);}}}));}[_0x46d0db(0x339)](){const _0x22ad97=_0x46d0db;super['dispose'](),this[_0x22ad97(0x1cc)](),this[_0x22ad97(0x1c9)]=[],this[_0x22ad97(0x3d3)]=0x0,this[_0x22ad97(0x394)]=0x0,this[_0x22ad97(0x1e2)]=0x0;}async[_0x46d0db(0x26a)](_0xdeaabf,_0xd559dd){const _0x62704f=_0x46d0db;for(let _0x278723=0x0;_0x278723<0x1e;_0x278723++)try{if(await this[_0x62704f(0x20e)](),this[_0x62704f(0x338)]()){this[_0x62704f(0x40f)](_0xdeaabf,_0xd559dd),this['_messageService'][_0x62704f(0x2e8)]({'content':this['_localeService']['t'](_0x62704f(0x21c)),'type':_0x404ab1['Success']});return;}await new Promise(_0x55770e=>{const _0x51958a=_0x62704f;this[_0x51958a(0x3b2)]=window[_0x51958a(0x28c)](_0x55770e,0x3e8);});}catch(_0x131061){this[_0x62704f(0x281)]['error'](_0x131061);}this[_0x62704f(0x236)][_0x62704f(0x2e8)]({'content':this['_localeService']['t'](_0x62704f(0x2e4)),'type':_0x404ab1['Error']});}[_0x46d0db(0x40f)](_0x1e54e0,_0x320472){const _0x3fbf61=_0x46d0db;try{this['_commandService'][_0x3fbf61(0x296)](_0x1e54e0['id'],_0x1e54e0[_0x3fbf61(0x2a9)],_0x320472);}catch(_0x38cf63){this[_0x3fbf61(0x281)][_0x3fbf61(0x263)](_0x38cf63);}}[_0x46d0db(0x24e)](_0x3f0284,_0x58da10){const _0x3041e6=_0x46d0db;_0x58da10<this[_0x3041e6(0x1e2)]||(this['_lastResponseTimestamp']=_0x58da10,this[_0x3041e6(0x394)]=Number[_0x3041e6(0x2f2)](_0x3f0284[_0x3041e6(0x273)]),this['_currentUsage']=Number[_0x3041e6(0x2f2)](_0x3f0284[_0x3041e6(0x288)]));}async[_0x46d0db(0x322)](_0x523bf6){const _0x47432f=_0x46d0db;var _0x269afd,_0x3109bb;const _0x38f70e=Date[_0x47432f(0x1de)]();try{const _0x2c5aa3=((_0x269afd=this[_0x47432f(0x1e4)][_0x47432f(0x2cd)](_0x331045))==null?void 0x0:_0x269afd[_0x47432f(0x403)])||Rn,_0x163d08=(await this['_httpService']['post'](_0x2c5aa3,{'body':JSON['stringify']({'taskId':_0x523bf6})}))[_0x47432f(0x221)];if(((_0x3109bb=_0x163d08[_0x47432f(0x263)])==null?void 0x0:_0x3109bb[_0x47432f(0x20f)])!==Z['OK'])return;this[_0x47432f(0x24e)](_0x163d08['limitInfo'],_0x38f70e);}catch(_0x4aa060){this['_logService']['error'](_0x4aa060);}}async[_0x46d0db(0x20e)](_0x24f5c4){const _0x133540=_0x46d0db;var _0x1eb42f,_0x272289;const _0x374b11=Date[_0x133540(0x1de)]();try{const _0x454444=((_0x1eb42f=this[_0x133540(0x1e4)]['getConfig'](_0x331045))==null?void 0x0:_0x1eb42f[_0x133540(0x3d7)])||Cn,_0x3abc5a=_0x24f5c4?_0x454444+_0x133540(0x2c5)+encodeURIComponent(_0x24f5c4):_0x454444,_0x3ffcd7=(await this[_0x133540(0x2d2)][_0x133540(0x387)](_0x3abc5a))[_0x133540(0x221)];if(((_0x272289=_0x3ffcd7['error'])==null?void 0x0:_0x272289[_0x133540(0x20f)])!==Z['OK'])return;this['_setFormulaLimitStatus'](_0x3ffcd7[_0x133540(0x213)],_0x374b11);}catch(_0x38b4d0){this['_logService']['error'](_0x38b4d0);}}async[_0x46d0db(0x324)](_0x513776){const _0x14bc09=_0x46d0db;var _0x5b6784,_0x437b24;const _0x4df2ca=Date[_0x14bc09(0x1de)]();try{const _0x41d2ec=((_0x5b6784=this[_0x14bc09(0x1e4)][_0x14bc09(0x2cd)](_0x331045))==null?void 0x0:_0x5b6784[_0x14bc09(0x2fe)])||Dn,_0x11cfb4=(await this[_0x14bc09(0x2d2)][_0x14bc09(0x211)](_0x41d2ec,{'body':JSON[_0x14bc09(0x208)]({'taskId':_0x513776})}))[_0x14bc09(0x221)];if(((_0x437b24=_0x11cfb4[_0x14bc09(0x263)])==null?void 0x0:_0x437b24[_0x14bc09(0x20f)])!==Z['OK'])return;this[_0x14bc09(0x24e)](_0x11cfb4['limitInfo'],_0x4df2ca);}catch(_0x217e11){this['_logService'][_0x14bc09(0x263)](_0x217e11);}}['_checkCalculationAvailable'](){const _0x1c07fe=_0x46d0db;return this[_0x1c07fe(0x394)]===0x0?!0x0:this[_0x1c07fe(0x394)]-this[_0x1c07fe(0x3d3)]>0x0;}[_0x46d0db(0x1cc)](){const _0x2d4728=_0x46d0db;this[_0x2d4728(0x3b2)]&&(clearTimeout(this[_0x2d4728(0x3b2)]),this[_0x2d4728(0x3b2)]=null);}[_0x46d0db(0x36a)](){const _0x530c0b=_0x46d0db;this['_messageService']['show']({'content':this[_0x530c0b(0x2c7)]['t']('formula.calculation.waiting'),'type':_0x404ab1[_0x530c0b(0x264)]});}['_hasFormulaInDirtyRanges'](_0x5669d1){const _0xa3cfff=_0x46d0db;for(const _0x3f0738 of _0x5669d1){const {unitId:_0x566847,sheetId:_0x58f89d,range:_0x3d3ce2}=_0x3f0738,_0x4f4ca6=this[_0xa3cfff(0x267)][_0xa3cfff(0x414)](_0x566847);if(!_0x4f4ca6)continue;const _0x5ead54=_0x4f4ca6[_0xa3cfff(0x22a)](_0x58f89d);if(!_0x5ead54)continue;const _0x898ee6=_0x5ead54[_0xa3cfff(0x310)]();for(let _0x4fedf8=_0x3d3ce2[_0xa3cfff(0x2d1)];_0x4fedf8<=_0x3d3ce2[_0xa3cfff(0x2b1)];_0x4fedf8++)for(let _0x236dec=_0x3d3ce2['startColumn'];_0x236dec<=_0x3d3ce2[_0xa3cfff(0x2b8)];_0x236dec++){const _0x335014=_0x898ee6['getValue'](_0x4fedf8,_0x236dec);if(_0x335014&&(_0x2c0875(_0x335014['f'])||_0x2d1200(_0x335014['si'])))return!0x0;}}return!0x1;}};Ie=Tn([P(0x0,_0xea701b(_0x25d450)),P(0x1,_0x1f0fa6),P(0x2,_0x2f71c6),P(0x3,_0xea701b(_0x146466)),P(0x4,_0x2b2591),P(0x5,_0xf63a71),P(0x6,_0xea701b(_0x4fbd2b))],Ie);var Nn=Object['getOwnPropertyDescriptor'],bn=(_0x52ec23,_0x56cc88,_0x22f50c,_0x54e527)=>{const _0x55e9ed=_0x46d0db;for(var _0x40688f=_0x54e527>0x1?void 0x0:_0x54e527?Nn(_0x56cc88,_0x22f50c):_0x56cc88,_0x357c33=_0x52ec23[_0x55e9ed(0x3c7)]-0x1,_0x47c6c2;_0x357c33>=0x0;_0x357c33--)(_0x47c6c2=_0x52ec23[_0x357c33])&&(_0x40688f=_0x47c6c2(_0x40688f)||_0x40688f);return _0x40688f;},Ue=(_0x40b8fa,_0x212186)=>(_0x5baf47,_0xc5594)=>_0x212186(_0x5baf47,_0xc5594,_0x40b8fa);let He=class extends _0x325e21{constructor(_0x43f931,_0x48bfb4,_0x3867f5){const _0x20a691=_0x46d0db;super(),_(this,_0x20a691(0x3cd),new Map()),_(this,_0x20a691(0x30d),new Map()),_(this,_0x20a691(0x3b1),!0x1),(this['_configService']=_0x43f931,this[_0x20a691(0x32c)]=_0x48bfb4,this[_0x20a691(0x2d0)]=_0x3867f5);}['disableLocalCache'](){const _0x35f18d=_0x46d0db;this[_0x35f18d(0x3b1)]=!0x0;}[_0x46d0db(0x3c8)](){this['_disabled']=!0x1;}get['saveTaskMap'](){const _0xfec21d=_0x46d0db;return this[_0xfec21d(0x30d)];}[_0x46d0db(0x339)](){const _0x449cb0=_0x46d0db;this[_0x449cb0(0x351)]()[_0x449cb0(0x1e8)](()=>super[_0x449cb0(0x339)]());}async[_0x46d0db(0x302)](_0x53025c){const _0x5dfc4c=_0x46d0db;return this[_0x5dfc4c(0x3b1)]?null:this['_localStorageService'][_0x5dfc4c(0x3c5)](_0x5d5e14(_0x53025c));}async[_0x46d0db(0x1e6)](_0x4265c5,_0x1fe9bd){const _0x5d6213=_0x46d0db;return!!this[_0x5d6213(0x32c)][_0x5d6213(0x1d1)](_0x4265c5,_0x1fe9bd);}[_0x46d0db(0x2ff)](_0x4e21fe,_0x5ba1aa,_0x1a1384,_0x486d3c){const _0x1143dd=_0x46d0db,_0x3cd3df=this[_0x1143dd(0x2d0)][_0x1143dd(0x3e2)](_0x4e21fe);this[_0x1143dd(0x3cd)][_0x1143dd(0x32b)](_0x4e21fe,{'unitID':_0x4e21fe,'type':_0x5ba1aa,'awaitingChangeset':_0x1a1384,'mutations':_0x486d3c,'rev':_0x3cd3df}),this[_0x1143dd(0x30d)][_0x1143dd(0x325)](_0x4e21fe)||this[_0x1143dd(0x410)](_0x4e21fe);}[_0x46d0db(0x410)](_0x35dbca){const _0x4ffd65=_0x46d0db,_0x5ed499=this[_0x4ffd65(0x406)]();_0x5ed499===0x0?this[_0x4ffd65(0x407)](_0x35dbca):this[_0x4ffd65(0x30d)][_0x4ffd65(0x32b)](_0x35dbca,setTimeout(()=>this['_saveCache'](_0x35dbca),_0x5ed499));}[_0x46d0db(0x406)](){const _0x9ee4f3=_0x46d0db;var _0x376496;return(_0x376496=this[_0x9ee4f3(0x1e4)][_0x9ee4f3(0x2cd)](_0x57a441))!=null?_0x376496:_0x41d58a;}['_saveCache'](_0x5e57be){const _0x4a21e7=_0x46d0db,_0x2d1090=this[_0x4a21e7(0x30d)]['get'](_0x5e57be);return _0x2d1090!==void 0x0&&window[_0x4a21e7(0x1f2)](_0x2d1090),this[_0x4a21e7(0x32c)][_0x4a21e7(0x1d1)](_0x5d5e14(_0x5e57be),this[_0x4a21e7(0x3cd)][_0x4a21e7(0x387)](_0x5e57be))[_0x4a21e7(0x1e8)](()=>this['_saveTaskMap'][_0x4a21e7(0x291)](_0x5e57be));}async['exhaustSavingTask'](){const _0x4edd13=_0x46d0db,_0xf8419=[];this['_saveTaskMap'][_0x4edd13(0x207)]((_0x4b4e1b,_0x50f837)=>{const _0x598728=_0x4edd13;window[_0x598728(0x1f2)](_0x4b4e1b),_0xf8419[_0x598728(0x2ac)](this[_0x598728(0x407)](_0x50f837)[_0x598728(0x1e8)](()=>{const _0x37788e=_0x598728;this['_saveTaskMap'][_0x37788e(0x291)](_0x50f837);}));}),await Promise['all'](_0xf8419);}};He=bn([Ue(0x0,_0x2f71c6),Ue(0x1,_0x2b6927),Ue(0x2,_0xea701b(_0x3bad50))],He);class Ln extends _0x4128f2{constructor(){const _0x3d2a30=_0x46d0db;super(),_(this,_0x3d2a30(0x39f)),this[_0x3d2a30(0x39f)]=_0x550027(window,_0x3d2a30(0x418))[_0x3d2a30(0x303)](_0x3a9d76(this['dispose$']),_0x34a5e8(0x1),_0x20a6b6(void 0x0));}['setParam'](_0x29578f,_0x4438c3,_0x5985d2=!0x1){const _0x49203c=_0x46d0db,_0xaaca77=new URL(window[_0x49203c(0x24c)][_0x49203c(0x23a)]);_0xaaca77[_0x49203c(0x225)][_0x49203c(0x32b)](_0x29578f,_0x4438c3),_0x5985d2?window[_0x49203c(0x3dc)][_0x49203c(0x21b)]('','',_0xaaca77[_0x49203c(0x37c)]()):window['history']['pushState']('','',_0xaaca77[_0x49203c(0x37c)]());}[_0x46d0db(0x2cb)](_0x1dfdd0,_0x4a68ee=!0x1){const _0x1cef14=_0x46d0db,_0x17de68=new URL(window[_0x1cef14(0x24c)][_0x1cef14(0x23a)]);_0x17de68[_0x1cef14(0x225)][_0x1cef14(0x291)](_0x1dfdd0),_0x4a68ee?window[_0x1cef14(0x3dc)][_0x1cef14(0x21b)]('','',_0x17de68[_0x1cef14(0x37c)]()):window[_0x1cef14(0x3dc)][_0x1cef14(0x28b)]('','',_0x17de68[_0x1cef14(0x37c)]());}[_0x46d0db(0x235)](_0x5897c4){var _0x2018fa;return(_0x2018fa=new URL(window['location']['href'])['searchParams']['get'](_0x5897c4))!=null?_0x2018fa:void 0x0;}}var Un=Object[_0x46d0db(0x20a)],Mn=Object['getOwnPropertyDescriptor'],An=(_0xfa69b,_0x118f92,_0x21c849)=>_0x118f92 in _0xfa69b?Un(_0xfa69b,_0x118f92,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x21c849}):_0xfa69b[_0x118f92]=_0x21c849,Pn=(_0x34e072,_0x440a2c,_0x2357fb,_0xdac61b)=>{const _0x1db4c6=_0x46d0db;for(var _0x5aefe9=_0xdac61b>0x1?void 0x0:_0xdac61b?Mn(_0x440a2c,_0x2357fb):_0x440a2c,_0x34ada1=_0x34e072[_0x1db4c6(0x3c7)]-0x1,_0x12bb19;_0x34ada1>=0x0;_0x34ada1--)(_0x12bb19=_0x34e072[_0x34ada1])&&(_0x5aefe9=_0x12bb19(_0x5aefe9)||_0x5aefe9);return _0x5aefe9;},Me=(_0x17f944,_0x425ddf)=>(_0x4e48bf,_0x495ac4)=>_0x425ddf(_0x4e48bf,_0x495ac4,_0x17f944),wn=(_0xe36e3a,_0x125c51,_0x16c304)=>An(_0xe36e3a,_0x125c51+'',_0x16c304);const yn=_0x46d0db(0x262);let Ye=class extends _0x77b34d{constructor(_0x4541cb=_t,_0x10468a,_0x80fbf5,_0x1ad315){const _0x4b360b=_0x46d0db;super(),this[_0x4b360b(0x300)]=_0x4541cb,this[_0x4b360b(0x3a4)]=_0x10468a,this[_0x4b360b(0x278)]=_0x80fbf5,this[_0x4b360b(0x1e4)]=_0x1ad315;const {..._0x21e2fa}=_0x2e11c2({},_t,this[_0x4b360b(0x300)]);this[_0x4b360b(0x1e4)][_0x4b360b(0x285)](hn,_0x21e2fa);}['onStarting'](){const _0xa1844a=_0x46d0db;this['_registerDependencies'](),this[_0xa1844a(0x3f6)]();}[_0x46d0db(0x397)](){const _0x51b73d=_0x46d0db;this[_0x51b73d(0x33f)]();}[_0x46d0db(0x243)](){const _0x299f9d=_0x46d0db;var _0x1330ab;const _0x4f89dc=[[Ke],[Ie],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x2e5978,{'useClass':_0x20f03b}],[_0x30567e,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this['_config']['enableFrontendLog']&&_0x4f89dc['push']([le]),_0x29599c(this['_injector'],_0x250639(_0x4f89dc,(_0x1330ab=this[_0x299f9d(0x300)])==null?void 0x0:_0x1330ab[_0x299f9d(0x2b0)]));}[_0x46d0db(0x33f)](){const _0x2b0e87=_0x46d0db;this[_0x2b0e87(0x365)](this[_0x2b0e87(0x3a4)][_0x2b0e87(0x1d3)](_0xee6b2[_0x2b0e87(0x36d)],[Fe])),this[_0x2b0e87(0x365)](this[_0x2b0e87(0x3a4)][_0x2b0e87(0x1d3)](_0xee6b2['UNIVER_SHEET'],[ke]));}[_0x46d0db(0x3f6)](){const _0x234eed=_0x46d0db;_0x2e2d25(this['_injector'],[[H],[ae],[Se],[_e],[ce],[Ie]]),this[_0x234eed(0x300)][_0x234eed(0x33c)]&&_0x2e2d25(this[_0x234eed(0x278)],[[le]]);}};wn(Ye,_0x46d0db(0x239),yn),Ye=Pn([_0x514518(_0x930682),Me(0x1,_0x38baec),Me(0x2,_0xea701b(_0x29824e)),Me(0x3,_0x2f71c6)],Ye);var $n=Object[_0x46d0db(0x3db)],xn=(_0x167fb9,_0x737b32,_0x249265,_0x56a19d)=>{for(var _0x537b05=_0x56a19d>0x1?void 0x0:_0x56a19d?$n(_0x737b32,_0x249265):_0x737b32,_0x48b3ce=_0x167fb9['length']-0x1,_0x1f1ebb;_0x48b3ce>=0x0;_0x48b3ce--)(_0x1f1ebb=_0x167fb9[_0x48b3ce])&&(_0x537b05=_0x1f1ebb(_0x537b05)||_0x537b05);return _0x537b05;},J=(_0x1fdd91,_0x4c82aa)=>(_0x53fbd0,_0x5df459)=>_0x4c82aa(_0x53fbd0,_0x5df459,_0x1fdd91);let ut=class extends _0x1bb4a1{constructor(_0x5bb3d2,_0xe68156,_0x1178b9,_0x26a071,_0x15f975){super(_0x5bb3d2,_0xe68156,_0x1178b9,_0x26a071,_0x15f975);}async['createSocket'](_0x253170){const _0x4edc4c=_0x46d0db,_0x4779c7=await this[_0x4edc4c(0x330)](),_0x2e1e0d=this[_0x4edc4c(0x3bd)](_0x253170,_0x4779c7);return this[_0x4edc4c(0x2f4)](_0x2e1e0d);}[_0x46d0db(0x3bd)](_0x50f5fd,_0x53df01){const _0x336daa=_0x46d0db,_0x1b2b04=typeof window>'u'?new URL(_0x50f5fd):new URL(_0x50f5fd,window[_0x336daa(0x24c)][_0x336daa(0x229)]);_0x1b2b04[_0x336daa(0x225)][_0x336daa(0x32b)](_0x336daa(0x224),_0x53df01);const _0x58515f=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location']['search']);return _0x58515f['get'](_0x336daa(0x308))&&_0x1b2b04[_0x336daa(0x225)][_0x336daa(0x32b)](_0x336daa(0x308),_0x58515f[_0x336daa(0x387)]('runId')),_0x1b2b04['toString']();}async[_0x46d0db(0x330)](){const _0x56df5a=_0x46d0db;var _0xa6652,_0x51c421,_0x50820d;const _0x117ef1=this[_0x56df5a(0x1e4)]['getConfig'](_0x331045),_0x19d1e6=(_0xa6652=_0x117ef1==null?void 0x0:_0x117ef1['wsSessionTicketUrl'])!=null?_0xa6652:_0x202521;return(_0x50820d=(_0x51c421=(await this[_0x56df5a(0x2d2)][_0x56df5a(0x387)](_0x19d1e6,{'headers':{'Content-Type':'application/json'}}))[_0x56df5a(0x221)])==null?void 0x0:_0x51c421['ticket'])!=null?_0x50820d:'';}};ut=xn([J(0x0,_0xea701b(_0x29824e)),J(0x1,_0xea701b(_0x146466)),J(0x2,_0x2f71c6),J(0x3,_0xf63a71),J(0x4,_0x189b23)],ut);var Bn=Object[_0x46d0db(0x3db)],Fn=(_0x3eabcf,_0x4f9279,_0x302896,_0x59b2e5)=>{const _0x88fd56=_0x46d0db;for(var _0x542ff0=_0x59b2e5>0x1?void 0x0:_0x59b2e5?Bn(_0x4f9279,_0x302896):_0x4f9279,_0x106e95=_0x3eabcf[_0x88fd56(0x3c7)]-0x1,_0x2892f2;_0x106e95>=0x0;_0x106e95--)(_0x2892f2=_0x3eabcf[_0x106e95])&&(_0x542ff0=_0x2892f2(_0x542ff0)||_0x542ff0);return _0x542ff0;},Ae=(_0x4580cb,_0x105fa3)=>(_0x1397a2,_0xdcbeec)=>_0x105fa3(_0x1397a2,_0xdcbeec,_0x4580cb);let dt=class extends _0x325e21{constructor(_0x31c496,_0x5c195c,_0x303b50){const _0x2cf704=_0x46d0db;super(),this[_0x2cf704(0x252)]=_0x31c496,this[_0x2cf704(0x2d2)]=_0x5c195c,this[_0x2cf704(0x1e4)]=_0x303b50;}async['runOnServer'](_0x23d160,_0x5bbfae,_0x116cc1,..._0x3dcceb){const _0x54de0e=_0x46d0db;var _0xa4663,_0x35931a,_0x2f8016,_0x23d783;const _0x3b4bda=this[_0x54de0e(0x252)][_0x54de0e(0x3f5)]();if(!_0x3b4bda)throw new Error(_0x54de0e(0x21a));const _0x5083bf=((_0xa4663=this[_0x54de0e(0x1e4)]['getConfig'](_0x155d53))!=null?_0xa4663:_0xac7d50)+'/'+_0x23d160+_0x54de0e(0x38e)+_0x5bbfae,_0x2108a6=new URL(window[_0x54de0e(0x24c)][_0x54de0e(0x23a)]),_0x8f5d1c={'scriptId':_0x23d160,'runId':(_0x35931a=_0x2108a6['searchParams'][_0x54de0e(0x387)](_0x54de0e(0x308)))!=null?_0x35931a:'','function':_0x5bbfae,'unitId':_0x3b4bda[_0x54de0e(0x226)](),'argsOfFunction':JSON[_0x54de0e(0x208)](_0x3dcceb),'invokeId':(_0x2f8016=_0x116cc1[_0x54de0e(0x3d5)])!=null?_0x2f8016:'','executionId':(_0x23d783=_0x116cc1[_0x54de0e(0x396)])!=null?_0x23d783:''};try{const _0x243582=await this[_0x54de0e(0x2d2)][_0x54de0e(0x211)](_0x5083bf,{'body':_0x8f5d1c});return _0x243582[_0x54de0e(0x221)]['error']&&_0x243582[_0x54de0e(0x221)][_0x54de0e(0x263)]['code']!==Z['OK']?'Failed':_0x243582[_0x54de0e(0x221)][_0x54de0e(0x306)];}catch{return'Failed';}}};dt=Fn([Ae(0x0,_0x2b2591),Ae(0x1,_0xea701b(_0x146466)),Ae(0x2,_0x2f71c6)],dt);const St=0x7530,It=_0x46d0db(0x33e);class rr extends _0x325e21{constructor(){const _0x4a1c78=_0x46d0db;super(),_(this,'_id',_0x316c01()),_(this,'_selfUnitIDs',new Set()),_(this,_0x4a1c78(0x327),new Map()),_(this,_0x4a1c78(0x2e6),null),_(this,_0x4a1c78(0x3f3),new Map()),_(this,_0x4a1c78(0x2bb),new Map()),this[_0x4a1c78(0x389)]();}[_0x46d0db(0x339)](){const _0x392cdc=_0x46d0db;super['dispose'](),this[_0x392cdc(0x3f3)]['forEach']((_0xca3b77,_0x55151e)=>this['_removeClearOtherTimer'](_0x55151e)),this['_heartbeatTimer']&&window[_0x392cdc(0x391)](this[_0x392cdc(0x2e6)]);}['getUnitStatus$'](_0x12acd1){const _0x396f49=_0x46d0db;return this[_0x396f49(0x388)](_0x12acd1)[_0x396f49(0x303)](_0x10b6a3());}[_0x46d0db(0x3ce)](_0x2b3274){const _0x1d0ee7=_0x46d0db;this[_0x1d0ee7(0x2bc)]['size']===0x0&&this[_0x1d0ee7(0x2cc)](),this['_selfUnitIDs'][_0x1d0ee7(0x3b9)](_0x2b3274),this[_0x1d0ee7(0x38c)]({'type':0x0,'memberID':this[_0x1d0ee7(0x1cd)],'unitIDs':[_0x2b3274],'isForwarded':!0x1});}['disposeUnit'](_0x2aa2bb){const _0x21ba91=_0x46d0db;this['_selfUnitIDs'][_0x21ba91(0x291)](_0x2aa2bb),this[_0x21ba91(0x2bc)][_0x21ba91(0x32a)]===0x0&&this[_0x21ba91(0x2e6)]&&window[_0x21ba91(0x391)](this[_0x21ba91(0x2e6)]);}[_0x46d0db(0x389)](){const _0x155ef6=_0x46d0db;this[_0x155ef6(0x365)](_0xd54434(_0x550027(window,_0x155ef6(0x206))['subscribe'](_0x4e2053=>{const _0x34f7aa=_0x155ef6;if(_0x4e2053[_0x34f7aa(0x287)]!==It||!_0x4e2053[_0x34f7aa(0x37e)])return;const _0x3a999f=JSON[_0x34f7aa(0x3e1)](_0x4e2053[_0x34f7aa(0x37e)]);this['_handleEvent'](_0x3a999f);}))),window[_0x155ef6(0x1e0)](_0x155ef6(0x1d0),()=>this[_0x155ef6(0x38c)]({'type':0x1,'memberID':this[_0x155ef6(0x1cd)],'unitIDs':Array['from'](this['_selfUnitIDs'])}));}['_handleEvent'](_0x41a83e){const _0x3e7bdc=_0x46d0db;switch(_0x41a83e['type']){case 0x0:this[_0x3e7bdc(0x220)](_0x41a83e);break;case 0x1:this[_0x3e7bdc(0x24a)](_0x41a83e);break;case 0x2:this[_0x3e7bdc(0x3e4)](_0x41a83e);break;}}[_0x46d0db(0x220)](_0x2d34cf){const _0x5ddef7=_0x46d0db,{unitIDs:_0x4e1271,memberID:_0x1ca0bd,isForwarded:_0x30c7c4}=_0x2d34cf;_0x4e1271[_0x5ddef7(0x207)](_0x1a6ad4=>{const _0x279314=_0x5ddef7;if(!_0x30c7c4&&this[_0x279314(0x327)][_0x279314(0x325)](_0x1a6ad4)&&this[_0x279314(0x388)](_0x1a6ad4)[_0x279314(0x3b6)](_0x4155df[_0x279314(0x384)]),!this[_0x279314(0x327)][_0x279314(0x325)](_0x1a6ad4)||!this[_0x279314(0x327)][_0x279314(0x387)](_0x1a6ad4)[_0x279314(0x325)](_0x1ca0bd)){const _0x39e24e=this[_0x279314(0x327)][_0x279314(0x387)](_0x1a6ad4)||new Set();_0x39e24e['add'](_0x1ca0bd),this['_unitOnClients'][_0x279314(0x32b)](_0x1a6ad4,_0x39e24e),this[_0x279314(0x253)](_0x1ca0bd);}}),_0x30c7c4||this['_send']({'type':0x0,'memberID':this[_0x5ddef7(0x1cd)],'unitIDs':[...this[_0x5ddef7(0x2bc)]],'isForwarded':!0x0});}[_0x46d0db(0x253)](_0xea72){const _0x4a9259=_0x46d0db;this[_0x4a9259(0x23b)](_0xea72);const _0x55270c=window[_0x4a9259(0x28c)](()=>{const _0x3ff44b=_0x4a9259;this['_unitOnClients'][_0x3ff44b(0x207)](_0x390f10=>{const _0x59c4fc=_0x3ff44b;_0x390f10[_0x59c4fc(0x291)](_0xea72);});},St*0x2);this['_clearOtherTimers']['set'](_0xea72,_0x55270c);}['_removeClearOtherTimer'](_0x55aeeb){const _0x1970f7=_0x46d0db;if(this[_0x1970f7(0x3f3)]['has'](_0x55aeeb)){const _0x262a37=this[_0x1970f7(0x3f3)][_0x1970f7(0x387)](_0x55aeeb);_0x262a37&&window['clearTimeout'](_0x262a37),this[_0x1970f7(0x3f3)][_0x1970f7(0x32b)](_0x55aeeb,null);}}[_0x46d0db(0x24a)](_0x21fe2f){const {memberID:_0x4dc7d7,unitIDs:_0x3366b7}=_0x21fe2f;_0x3366b7['forEach'](_0x22d1f0=>{const _0x237d18=_0x4fdf;var _0x2eab9c;const _0x447f3e=this['_unitOnClients'][_0x237d18(0x387)](_0x22d1f0);_0x447f3e&&(_0x447f3e['delete'](_0x4dc7d7),(_0x2eab9c=this[_0x237d18(0x388)](_0x22d1f0))==null||_0x2eab9c['next'](_0x447f3e[_0x237d18(0x32a)]===0x0?_0x4155df[_0x237d18(0x2ce)]:_0x4155df[_0x237d18(0x384)]));}),this['_removeClearOtherTimer'](_0x4dc7d7);}[_0x46d0db(0x3e4)](_0x4e39cf){const _0x53a8cc=_0x46d0db;this[_0x53a8cc(0x253)](_0x4e39cf['memberID']);}[_0x46d0db(0x38c)](_0x33af2f){const _0xbfeccf=_0x46d0db;localStorage[_0xbfeccf(0x1d1)](It,JSON[_0xbfeccf(0x208)](_0x33af2f));}[_0x46d0db(0x2cc)](){const _0x3bd372=_0x46d0db;this[_0x3bd372(0x2e6)]=window[_0x3bd372(0x1f1)](()=>{const _0xf4bd9d=_0x3bd372;this[_0xf4bd9d(0x38c)]({'type':0x2,'memberID':this[_0xf4bd9d(0x1cd)]});},St);}[_0x46d0db(0x388)](_0x444d0f){const _0x216e57=_0x46d0db;return this['_unitStatus']['has'](_0x444d0f)||this[_0x216e57(0x2bb)][_0x216e57(0x32b)](_0x444d0f,new _0xe5dabe(_0x4155df[_0x216e57(0x2ce)])),this[_0x216e57(0x2bb)][_0x216e57(0x387)](_0x444d0f);}}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 _0x183824=_0x3e21;(function(_0x89c818,_0x4f4ae5){const _0x1d4227=_0x3e21,_0x34c134=_0x89c818();while(!![]){try{const _0x4751da=parseInt(_0x1d4227(0x19c))/0x1*(parseInt(_0x1d4227(0x283))/0x2)+parseInt(_0x1d4227(0x16f))/0x3*(-parseInt(_0x1d4227(0x22a))/0x4)+-parseInt(_0x1d4227(0x37c))/0x5+-parseInt(_0x1d4227(0x33d))/0x6*(parseInt(_0x1d4227(0x2eb))/0x7)+-parseInt(_0x1d4227(0x1ae))/0x8*(parseInt(_0x1d4227(0x33a))/0x9)+-parseInt(_0x1d4227(0x321))/0xa*(parseInt(_0x1d4227(0x372))/0xb)+-parseInt(_0x1d4227(0x297))/0xc*(-parseInt(_0x1d4227(0x37f))/0xd);if(_0x4751da===_0x4f4ae5)break;else _0x34c134['push'](_0x34c134['shift']());}catch(_0x253716){_0x34c134['push'](_0x34c134['shift']());}}}(_0x1ee4,0x6710d));var Yt=Object[_0x183824(0x18c)],Wt=(_0x37a0b7,_0x45ac4d,_0x2b9e87)=>_0x45ac4d in _0x37a0b7?Yt(_0x37a0b7,_0x45ac4d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2b9e87}):_0x37a0b7[_0x45ac4d]=_0x2b9e87,_=(_0x2d7863,_0x5365c6,_0x56e0a0)=>Wt(_0x2d7863,typeof _0x5365c6!='symbol'?_0x5365c6+'':_0x5365c6,_0x56e0a0);import{jsx as _0x43bbc2,jsxs as _0x467c85}from'react/jsx-runtime';import{CollaborationStatus as _0x38fa40,CollaborationSessionService as _0x559838,CollaborationController as _0x4a450b,DataLoaderService as _0x2c4faf,MemberService as _0x13b0a1,SessionStatus as _0x4dbdc0,ILocalCacheService as _0x2e19a0,CollaborationUIEventService as _0x528420,CollaborationUIEventId as _0x34d050,DocCollaborationEntity as _0x2b0221,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x68d877,getLocalCacheKey as _0x1c255b,LOCAL_CACHE_INTERVAL as _0x298f94,LOCAL_CACHE_INTERVAL_KEY as _0x1258b3,UniverCollaborationClientPlugin as _0xa208a1,CollaborationSocketService as _0xf3eea5,DEFAULT_WS_SESSION_TICKET_URL as _0x4005a6,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0xabb55c,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x19611c,UnitStatus as _0x2b4a63}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x458508,IUniverInstanceService as _0x3adc76,Inject as _0x2b5bcf,Injector as _0x138ef1,Disposable as _0x37986f,createIdentifier as _0x5a817b,ILogService as _0x2c105d,ICommandService as _0x3bba43,Optional as _0x3eb80e,RxDisposable as _0x289c93,Workbook as _0x4019e7,DOC_RANGE_TYPE as _0x42a564,debounce as _0x2fc487,Rectangle as _0x275224,DisposableCollection as _0x3ffc95,toDisposable as _0x280f44,UniverInstanceType as _0x51f35a,generateRandomId as _0xdf4fd1,COLORS as _0x1a02b1,ColorKit as _0x4a9f36,ThemeService as _0xae25d3,fromEventSubject as _0x405042,Tools as _0x4e99de,CommandType as _0x1de221,IConfigService as _0x5a715b,CanceledError as _0x2face4,isFormulaString as _0x285a32,isFormulaId as _0x20ed39,ILocalStorageService as _0x1aff3a,DependentOn as _0x5067b5,Plugin as _0x3f2545,merge as _0x5588c4,registerDependencies as _0x56fd22,mergeOverrideWithDependencies as _0x445df2,touchDependencies as _0x2e6558}from'@univerjs/core';import{useObservable as _0x262c9b,useDependency as _0x482fa5,IUIPartsService as _0x3d91c3,BuiltInUIPart as _0xb08968,connectInjector as _0x55fa04,IBeforeCloseService as _0x14d125,IMessageService as _0x1024be,INotificationService as _0x4e66ae}from'@univerjs/ui';import{BehaviorSubject as _0x58e817,switchMap as _0x14ecc2,of as _0x4ccce2,takeUntil as _0x43c088,debounceTime as _0x33ba2d,Subject as _0x1089f4,filter as _0x19723f,merge as _0x59d32a,combineLatest as _0xd7fb49,fromEvent as _0x542828,shareReplay as _0x105eb7,mapTo as _0x357ae7,distinctUntilChanged as _0x3ef097}from'rxjs';import{Tooltip as _0x4bc5b4,clsx as _0x387383,MessageType as _0x4eb2af}from'@univerjs/design';import{useRef as _0x1b106f,createElement as _0x2cf868,forwardRef as _0x2c48ac,useCallback as _0x59bce1}from'react';import{IRemoteInstanceService as _0x4ef30a}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x403d76,RefRangeService as _0x527b6d,SetSelectionsOperation as _0x90d8d,SheetsSelectionsService as _0x2b8294,EffectRefRangId as _0x50d064,handleIRemoveRow as _0x214da7,handleIRemoveCol as _0x51bf44,handleMoveRange as _0x5d05cb,handleInsertRow as _0x3bd833,handleInsertRangeMoveRight as _0x293533,handleInsertRangeMoveDown as _0x147fb7,handleInsertCol as _0x6cc1b6,handleDeleteRangeMoveUp as _0x401ff2,handleDeleteRangeMoveLeft as _0x5d37c3,runRefRangeMutations as _0x5806f8}from'@univerjs/sheets';import{Shape as _0x19cbf1,Rect as _0x598e21,getColor as _0x2a9dd4,RegularPolygon as _0x47da19,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x4e63d7,Vector2 as _0x1346de,SHEET_VIEWPORT_KEY as _0x2a915a,IRenderManagerService as _0x34ab27}from'@univerjs/engine-render';import{HTTPService as _0x2e6660,ISocketService as _0x3e8ff8,WebSocketService as _0x23ef53}from'@univerjs/network';import{IDocClipboardService as _0xb829cb,NodePositionConvertToCursor as _0x4e52e4,NodePositionConvertToRectRange as _0x388c2f,TEXT_RANGE_LAYER_INDEX as _0x4767d4,SetDocZoomRatioOperation as _0x286594,DocIMEInputManagerService as _0xbd1bcc,DocStateChangeManagerService as _0x19214e}from'@univerjs/docs-ui';import{IImageIoService as _0x1176b4}from'@univerjs/drawing';import{ITransformService as _0x869e11,CollaborationEvent as _0x545a72,isTransformMutationFailure as _0x5b0c3f,isTransformMutationsWithChangesetSuccess as _0x44a5c9,RevisionService as _0x558811,ISnapshotServerService as _0x205c61}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x8a0bd9,RichTextEditingMutation as _0x3ce191,DocSelectionManagerService as _0x151bee,DocSkeletonManagerService as _0x3b8cbc}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x57943d,serializeRangeWithSheet as _0x10a826,FormulaExecuteStageType as _0x426bd1,FormulaExecutedStateType as _0x3c1877,SetFormulaCalculationStartMutation as _0x263bc7,SetFormulaCalculationNotificationMutation as _0x14d924}from'@univerjs/engine-formula';import{map as _0x2ebebf,filter as _0x28ac8d,throttleTime as _0x13ce25,takeUntil as _0x302d5b,switchMap as _0x2821fd}from'rxjs/operators';import{SheetSkeletonManagerService as _0x411cb9,getCoordByCell as _0x47997a,getSheetObject as _0x3a482f}from'@univerjs/sheets-ui';function Ge({ref:_0x270683,..._0x4e653c}){const _0x5dd8d8=_0x183824,{icon:_0x30fd6d,id:_0x68eb00,className:_0x917468,extend:_0x416251,..._0x2009fa}=_0x4e653c,_0x331685=('univerjs-icon\x20univerjs-icon-'+_0x68eb00+'\x20'+(_0x917468||''))['trim'](),_0x3eaea8=_0x1b106f('_'+vi());return At(_0x30fd6d,''+_0x68eb00,{'defIds':_0x30fd6d[_0x5dd8d8(0x2d5)],'idSuffix':_0x3eaea8[_0x5dd8d8(0x29a)]},{'ref':_0x270683,'className':_0x331685,..._0x2009fa},_0x416251);}function At(_0x2865f6,_0x30e6de,_0x2719d9,_0x2fbf56,_0xc1809d){const _0x58d509=_0x183824;return _0x2cf868(_0x2865f6[_0x58d509(0x1b2)],{'key':_0x30e6de,...gi(_0x2865f6,_0x2719d9,_0xc1809d),..._0x2fbf56},(Ei(_0x2865f6,_0x2719d9)[_0x58d509(0x1e7)]||[])['map']((_0x38571e,_0x49ed10)=>At(_0x38571e,_0x30e6de+'-'+_0x2865f6[_0x58d509(0x1b2)]+'-'+_0x49ed10,_0x2719d9,void 0x0,_0xc1809d)));}function gi(_0x174357,_0x2f5e10,_0x44dbb0){const _0x535592=_0x183824,_0x209cd1={..._0x174357[_0x535592(0x1f6)]};_0x44dbb0!=null&&_0x44dbb0[_0x535592(0x184)]&&_0x209cd1[_0x535592(0x327)]===_0x535592(0x184)&&(_0x209cd1[_0x535592(0x327)]=_0x44dbb0[_0x535592(0x184)]),_0x174357['tag']==='mask'&&_0x209cd1['id']&&(_0x209cd1['id']=_0x209cd1['id']+_0x2f5e10[_0x535592(0x313)]),Object[_0x535592(0x2d1)](_0x209cd1)[_0x535592(0x28a)](([_0x482a0b,_0x1a6a7a])=>{const _0x209ea3=_0x535592;_0x482a0b===_0x209ea3(0x363)&&typeof _0x1a6a7a==_0x209ea3(0x17f)&&(_0x209cd1[_0x482a0b]=_0x1a6a7a[_0x209ea3(0x344)](/url\(#(.*)\)/,_0x209ea3(0x239)+_0x2f5e10['idSuffix']+')'));});const {defIds:_0x4383ea}=_0x2f5e10;return!_0x4383ea||_0x4383ea[_0x535592(0x2ad)]===0x0||(_0x174357['tag']===_0x535592(0x168)&&_0x209cd1[_0x535592(0x24c)]&&(_0x209cd1[_0x535592(0x24c)]=_0x209cd1[_0x535592(0x24c)]+_0x2f5e10['idSuffix']),Object[_0x535592(0x2d1)](_0x209cd1)[_0x535592(0x28a)](([_0x59ccf7,_0x110d71])=>{const _0x3bf59d=_0x535592;typeof _0x110d71==_0x3bf59d(0x17f)&&(_0x209cd1[_0x59ccf7]=_0x110d71[_0x3bf59d(0x344)](/url\(#(.*)\)/,_0x3bf59d(0x239)+_0x2f5e10[_0x3bf59d(0x313)]+')'));})),_0x209cd1;}function Ei(_0xee2cdc,_0x152b0a){const _0x5b69dc=_0x183824;var _0x5c0625;const {defIds:_0x3d223d}=_0x152b0a;return!_0x3d223d||_0x3d223d[_0x5b69dc(0x2ad)]===0x0?_0xee2cdc:_0xee2cdc[_0x5b69dc(0x1b2)]===_0x5b69dc(0x349)&&((_0x5c0625=_0xee2cdc[_0x5b69dc(0x1e7)])!=null&&_0x5c0625[_0x5b69dc(0x2ad)])?{..._0xee2cdc,'children':_0xee2cdc[_0x5b69dc(0x1e7)][_0x5b69dc(0x357)](_0x59be0d=>typeof _0x59be0d[_0x5b69dc(0x1f6)]['id']==_0x5b69dc(0x17f)&&_0x3d223d&&_0x3d223d[_0x5b69dc(0x34f)](_0x59be0d['attrs']['id'])?{..._0x59be0d,'attrs':{..._0x59be0d['attrs'],'id':_0x59be0d[_0x5b69dc(0x1f6)]['id']+_0x152b0a[_0x5b69dc(0x313)]}}:_0x59be0d)}:_0xee2cdc;}function vi(){const _0x24ccfe=_0x183824;return Math[_0x24ccfe(0x1a6)]()[_0x24ccfe(0x1e4)](0x24)[_0x24ccfe(0x15c)](0x2,0x8);}Ge[_0x183824(0x33c)]=_0x183824(0x338);const pi={'tag':_0x183824(0x392),'attrs':{'xmlns':_0x183824(0x334),'fill':_0x183824(0x314),'viewBox':_0x183824(0x19a),'width':'1em','height':_0x183824(0x159)},'children':[{'tag':'g','attrs':{'clipPath':_0x183824(0x1ba)},'children':[{'tag':_0x183824(0x215),'attrs':{'stroke':_0x183824(0x2a9),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x183824(0x349),'attrs':{},'children':[{'tag':_0x183824(0x339),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':_0x183824(0x27a),'d':_0x183824(0x1a2)}}]}]}],'defIds':[_0x183824(0x393)]},Pt=_0x2c48ac(function(_0x177a43,_0x2cb5c4){const _0x1e8f2c=_0x183824;return _0x2cf868(Ge,Object[_0x1e8f2c(0x160)]({},_0x177a43,{'id':_0x1e8f2c(0x191),'ref':_0x2cb5c4,'icon':pi}));});Pt[_0x183824(0x33c)]=_0x183824(0x1a3);const Oi={'tag':_0x183824(0x392),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x183824(0x314),'viewBox':_0x183824(0x259),'width':_0x183824(0x159),'height':_0x183824(0x159)},'children':[{'tag':'g','attrs':{'clipPath':_0x183824(0x301)},'children':[{'tag':_0x183824(0x215),'attrs':{'stroke':_0x183824(0x2a9),'d':_0x183824(0x1ef),'strokeLinecap':_0x183824(0x306),'strokeLinejoin':_0x183824(0x306),'strokeWidth':1.2}}]},{'tag':_0x183824(0x349),'attrs':{},'children':[{'tag':_0x183824(0x339),'attrs':{'id':_0x183824(0x1df)},'children':[{'tag':_0x183824(0x215),'attrs':{'fill':_0x183824(0x27a),'d':_0x183824(0x1a2),'transform':'translate(.97)'}}]}]}],'defIds':[_0x183824(0x1df)]},wt=_0x2c48ac(function(_0x33c163,_0x266616){const _0x3bac6e=_0x183824;return _0x2cf868(Ge,Object[_0x3bac6e(0x160)]({},_0x33c163,{'id':_0x3bac6e(0x38c),'ref':_0x266616,'icon':Oi}));});wt[_0x183824(0x33c)]=_0x183824(0x1fe);function Ti(_0xfaf33b){const _0x2e1603=_0x183824;switch(_0xfaf33b){case _0x38fa40[_0x2e1603(0x187)]:return _0x2e1603(0x212);case _0x38fa40[_0x2e1603(0x19d)]:return _0x2e1603(0x277);case _0x38fa40['FETCH_MISS']:return _0x2e1603(0x175);case _0x38fa40[_0x2e1603(0x173)]:return _0x2e1603(0x15a);case _0x38fa40['AWAITING']:case _0x38fa40[_0x2e1603(0x27e)]:return _0x2e1603(0x249);case _0x38fa40['SYNCED']:case _0x38fa40[_0x2e1603(0x22b)]:return'collabStatus.synced';}}function Ci(_0x46db7e){const _0x2eaff2=_0x183824,{status$:_0xd6339}=_0x46db7e,_0x46152b=_0x262c9b(_0xd6339,_0x38fa40[_0x2eaff2(0x173)]),_0x104435=_0x482fa5(_0x458508),_0x3bfc76=_0x482fa5(_0x559838),_0x3b3d84=_0x46152b!==_0x38fa40[_0x2eaff2(0x187)],_0x5855cd=_0x104435['t'](Ti(_0x46152b)),_0x9ae804=_0x3b3d84?_0x43bbc2(wt,{}):_0x43bbc2(Pt,{}),_0x1084ab=_0x59bce1(()=>{_0x3b3d84||_0x3bfc76['reconnect']();},[_0x3b3d84,_0x3bfc76]);function _0x2191c5(){const _0x533b51=_0x2eaff2;return _0x467c85('div',{'className':_0x533b51(0x271),'onClick':_0x1084ab,'children':[_0x43bbc2('div',{'className':_0x387383(_0x533b51(0x1bd),{'univer-text-green-500':_0x3b3d84,'univer-text-red-500':!_0x3b3d84}),'children':_0x9ae804}),_0x43bbc2(_0x533b51(0x2c1),{'className':_0x533b51(0x299),'children':_0x5855cd})]});}return _0x3b3d84?_0x2191c5():_0x43bbc2(_0x4bc5b4,{'title':_0x104435['t'](_0x2eaff2(0x36e)),'children':_0x2191c5()});}var Ri=Object[_0x183824(0x32e)],Di=(_0x39ceca,_0x3a01fa,_0xf219b3,_0x40acf1)=>{for(var _0x501755=_0x40acf1>0x1?void 0x0:_0x40acf1?Ri(_0x3a01fa,_0xf219b3):_0x3a01fa,_0x52bf53=_0x39ceca['length']-0x1,_0x5da5ab;_0x52bf53>=0x0;_0x52bf53--)(_0x5da5ab=_0x39ceca[_0x52bf53])&&(_0x501755=_0x5da5ab(_0x501755)||_0x501755);return _0x501755;},se=(_0x1270db,_0x5b3815)=>(_0x3783e4,_0x4e132a)=>_0x5b3815(_0x3783e4,_0x4e132a,_0x1270db);let ae=class extends _0x37986f{constructor(_0x326d15,_0x29384c,_0x520014,_0x169ec2){const _0x6cb385=_0x183824;super(),_(this,_0x6cb385(0x318),new _0x58e817(_0x38fa40[_0x6cb385(0x173)])),(this[_0x6cb385(0x21a)]=_0x326d15,this[_0x6cb385(0x384)]=_0x29384c,this['_collaborationController']=_0x520014,this[_0x6cb385(0x1fd)]=_0x169ec2,this[_0x6cb385(0x15e)](),this['_initStatusListener']());}[_0x183824(0x1c2)](){const _0x654de0=_0x183824;this['disposeWithMe'](this['_univerInstanceService'][_0x654de0(0x2a8)][_0x654de0(0x273)](_0x14ecc2(()=>{const _0x1d21cf=_0x654de0,_0x1739a9=this['_univerInstanceService'][_0x1d21cf(0x2bf)]();return _0x1739a9?this[_0x1d21cf(0x1ec)][_0x1d21cf(0x1ab)](_0x1739a9[_0x1d21cf(0x2c6)]()):_0x4ccce2(null);}),_0x14ecc2(_0x246794=>_0x246794?_0x246794[_0x654de0(0x2fc)]:_0x4ccce2(_0x38fa40[_0x654de0(0x173)])))[_0x654de0(0x2dc)](_0x28ef0c=>{const _0x1ad572=_0x654de0;this['_status$'][_0x1ad572(0x1ac)](_0x28ef0c);}));}[_0x183824(0x15e)](){const _0x1792a5=_0x183824;this[_0x1792a5(0x1f4)](this[_0x1792a5(0x1fd)][_0x1792a5(0x226)](_0xb08968['HEADER_MENU'],()=>_0x55fa04(Ni({'status$':this[_0x1792a5(0x318)][_0x1792a5(0x333)]()}),this[_0x1792a5(0x384)])));}};ae=Di([se(0x0,_0x3adc76),se(0x1,_0x2b5bcf(_0x138ef1)),se(0x2,_0x2b5bcf(_0x4a450b)),se(0x3,_0x3d91c3)],ae);function Ni(_0x1e35d1){const {status$:_0x257d83}=_0x1e35d1;return function(){return _0x43bbc2(Ci,{'status$':_0x257d83});};}const yt=_0x5a817b(_0x183824(0x25b));var bi=Object[_0x183824(0x32e)],Li=(_0x569f29,_0x34caa9,_0x5ac9aa,_0x4988b3)=>{const _0x43a62a=_0x183824;for(var _0x4f9e15=_0x4988b3>0x1?void 0x0:_0x4988b3?bi(_0x34caa9,_0x5ac9aa):_0x34caa9,_0x5df0a6=_0x569f29[_0x43a62a(0x2ad)]-0x1,_0x6f692d;_0x5df0a6>=0x0;_0x5df0a6--)(_0x6f692d=_0x569f29[_0x5df0a6])&&(_0x4f9e15=_0x6f692d(_0x4f9e15)||_0x4f9e15);return _0x4f9e15;},K=(_0x3b79d3,_0x5e7891)=>(_0x31b444,_0x20e0fe)=>_0x5e7891(_0x31b444,_0x20e0fe,_0x3b79d3);let ce=class extends _0x289c93{constructor(_0x422f39,_0x524049,_0x565d4c,_0x336e0b,_0x37ab04){const _0x2a0b83=_0x183824;super(),this[_0x2a0b83(0x370)]=_0x422f39,this[_0x2a0b83(0x213)]=_0x524049,this[_0x2a0b83(0x368)]=_0x565d4c,this[_0x2a0b83(0x24d)]=_0x336e0b,_0x37ab04?_0x37ab04==null||_0x37ab04[_0x2a0b83(0x276)]()[_0x2a0b83(0x355)](()=>this[_0x2a0b83(0x193)]()):(this[_0x2a0b83(0x213)][_0x2a0b83(0x30b)](_0x2a0b83(0x185),_0x2a0b83(0x20c)),this[_0x2a0b83(0x193)]());}async[_0x183824(0x193)](){const _0x3309e8=_0x183824,_0x18cb1c=this[_0x3309e8(0x370)][_0x3309e8(0x280)](_0x3309e8(0x315)),_0x175643=this['_urlService'][_0x3309e8(0x280)](_0x3309e8(0x28c)),_0x4e2e3a=this[_0x3309e8(0x370)]['getParam'](_0x3309e8(0x304));if(!_0x18cb1c||!_0x175643){this[_0x3309e8(0x213)]['debug'](_0x3309e8(0x185),_0x3309e8(0x364));return;}const _0x31ba44=await this['_dataLoaderService'][_0x3309e8(0x1eb)](_0x18cb1c,Number(_0x175643),_0x4e2e3a);_0x31ba44&&_0x31ba44 instanceof _0x4019e7&&this[_0x3309e8(0x1de)](_0x31ba44);}async[_0x183824(0x1de)](_0x3c8fba){const _0xc63933=_0x183824;await this[_0xc63933(0x291)](_0x3c8fba),_0x3c8fba[_0xc63933(0x18b)][_0xc63933(0x273)](_0x43c088(this[_0xc63933(0x322)]))[_0xc63933(0x2dc)](_0x4fd624=>{const _0x559187=_0xc63933;_0x4fd624&&this[_0x559187(0x1bf)](_0x4fd624);}),this[_0xc63933(0x370)][_0xc63933(0x25e)][_0xc63933(0x273)](_0x43c088(this[_0xc63933(0x322)]))[_0xc63933(0x2dc)](()=>this[_0xc63933(0x291)](_0x3c8fba));}[_0x183824(0x1bf)](_0x5d2940,_0x1b450f=!0x1){const _0x339d10=_0x183824,_0x43bcf9=this[_0x339d10(0x370)]['getParam'](_0x339d10(0x304));_0x5d2940[_0x339d10(0x279)]()!==_0x43bcf9&&this[_0x339d10(0x370)]['setParam']('subunit',_0x5d2940[_0x339d10(0x279)](),_0x1b450f);}async[_0x183824(0x291)](_0x417a89){const _0x496924=_0x183824;var _0x1e9f67;const _0xf9a2d=this[_0x496924(0x370)]['getParam'](_0x496924(0x304));if(!_0xf9a2d||!_0x417a89[_0x496924(0x30a)](_0xf9a2d)){const _0x53bb47=_0x417a89[_0x496924(0x148)]()[0x0],_0x4788a4=_0x417a89[_0x496924(0x30a)](_0x53bb47);if(!_0x4788a4)return;this[_0x496924(0x1bf)](_0x4788a4,!0x0),await this['_commandService']['executeCommand'](_0x403d76['id'],{'unitId':_0x417a89['getUnitId'](),'subUnitId':_0x53bb47});return;}((_0x1e9f67=_0x417a89[_0x496924(0x17d)]())==null?void 0x0:_0x1e9f67[_0x496924(0x279)]())!==_0xf9a2d&&await this['_commandService']['executeCommand'](_0x403d76['id'],{'unitId':_0x417a89[_0x496924(0x2c6)](),'subUnitId':_0xf9a2d});}};ce=Li([K(0x0,yt),K(0x1,_0x2c105d),K(0x2,_0x3bba43),K(0x3,_0x2b5bcf(_0x2c4faf)),K(0x4,_0x3eb80e(_0x4ef30a))],ce);var Ui=Object[_0x183824(0x32e)],Mi=(_0x434276,_0x163cc2,_0x69a241,_0x1c4536)=>{const _0x9cb2a0=_0x183824;for(var _0x45fec3=_0x1c4536>0x1?void 0x0:_0x1c4536?Ui(_0x163cc2,_0x69a241):_0x163cc2,_0x355030=_0x434276[_0x9cb2a0(0x2ad)]-0x1,_0x45043f;_0x355030>=0x0;_0x355030--)(_0x45043f=_0x434276[_0x355030])&&(_0x45fec3=_0x45043f(_0x45fec3)||_0x45fec3);return _0x45fec3;},rt=(_0x18b3ee,_0x25ba0d)=>(_0x1eca31,_0x1c5150)=>_0x25ba0d(_0x1eca31,_0x1c5150,_0x18b3ee);let $e=class extends _0x289c93{constructor(_0x57d85b,_0xa4e99c){const _0x47df41=_0x183824;super(),this[_0x47df41(0x337)]=_0x57d85b,this[_0x47df41(0x232)]=_0xa4e99c,this[_0x47df41(0x193)]();}[_0x183824(0x193)](){const _0x127c42=_0x183824,_0x5617ba=this;this[_0x127c42(0x1f4)](this[_0x127c42(0x337)]['addClipboardHook']({'onBeforePasteImage':async _0x3460ad=>{const _0x579d53=_0x127c42,_0x699433=await _0x5617ba[_0x579d53(0x232)][_0x579d53(0x31f)](_0x3460ad);return _0x699433?{'source':_0x699433['source'],'imageSourceType':_0x699433['imageSourceType']}:null;}}));}};$e=Mi([rt(0x0,_0xb829cb),rt(0x1,_0x1176b4)],$e);const ot=[_0x183824(0x198),_0x183824(0x361),'green.600',_0x183824(0x1c7),_0x183824(0x34d),'yellow.400'];class Ke extends _0x37986f{constructor(){const _0x10f772=_0x183824;super(...arguments),_(this,_0x10f772(0x28b),new Map()),_(this,_0x10f772(0x172),0x0);}[_0x183824(0x2d7)](_0xfb2130){const _0x1f4bec=_0x183824;if(this['_assignedColors'][_0x1f4bec(0x1f5)](_0xfb2130))return this['_assignedColors']['get'](_0xfb2130);const _0x4b517a=ot[this[_0x1f4bec(0x172)]];return this['_colorIndex']=(this[_0x1f4bec(0x172)]+0x1)%ot[_0x1f4bec(0x2ad)],this[_0x1f4bec(0x28b)]['set'](_0xfb2130,_0x4b517a),_0x4b517a;}}function $t(_0x2a8333){const _0x49797d=_0x183824;let _0x268140='';for(const _0x86bfe0 of _0x2a8333){const {startOffset:_0x2ccb82,endOffset:_0x4bff4a,isActive:_0x38f723,rangeType:_0xd32529,segmentId:_0x548142,segmentPage:_0x40963c}=_0x86bfe0;_0x268140[_0x49797d(0x2ad)]&&(_0x268140+=','),_0x268140+=_0x2ccb82+':'+_0x4bff4a+':'+(_0x38f723?'1':'0')+':'+_0xd32529+':'+_0x548142+':'+_0x40963c;}return _0x268140;}function Ai(_0x1a4467){const _0x44eb9c=_0x183824,_0xccde31=_0x1a4467[_0x44eb9c(0x288)](','),_0x564cb2=[];for(const _0x145f65 of _0xccde31){const [_0x5155b1,_0x27b1e2,_0x247d4e,_0x26f57e,_0x46e0de,_0x45594a]=_0x145f65[_0x44eb9c(0x288)](':');_0x564cb2[_0x44eb9c(0x320)]({'startOffset':Number(_0x5155b1),'endOffset':Number(_0x27b1e2),'collapsed':_0x5155b1===_0x27b1e2,'isActive':_0x247d4e==='1','rangeType':_0x26f57e===_0x42a564['TEXT']?_0x42a564[_0x44eb9c(0x2b6)]:_0x42a564['RECT'],'segmentId':typeof _0x46e0de==_0x44eb9c(0x17f)?String(_0x46e0de):'','segmentPage':Number(_0x45594a!=null?_0x45594a:-0x1)});}return _0x564cb2[_0x44eb9c(0x28e)](_0x34d4de=>_0x34d4de['isActive'])||(_0x564cb2[0x0]['isActive']=!0x0),_0x564cb2;}class ze extends _0x289c93{constructor(){const _0x2047c1=_0x183824;super(...arguments),_(this,_0x2047c1(0x2cc),new _0x58e817(null)),_(this,_0x2047c1(0x248),this[_0x2047c1(0x2cc)][_0x2047c1(0x333)]());}[_0x183824(0x37e)](_0x2dc592){const {unitID:_0x1b7ba4,memberID:_0x34df81,textRanges:_0x52fac8}=_0x2dc592,_0x11ea6a=$t(_0x52fac8);if(_0x11ea6a==='')return;const _0x47abfa={'unitID':_0x1b7ba4,'memberID':_0x34df81,'selection':_0x11ea6a};this['_collabCursorState$']['next'](_0x47abfa);}}var Pi=Object[_0x183824(0x32e)],wi=(_0x112f46,_0x5990f3,_0x15c29c,_0x55bcb7)=>{const _0x51da58=_0x183824;for(var _0x1a1ace=_0x55bcb7>0x1?void 0x0:_0x55bcb7?Pi(_0x5990f3,_0x15c29c):_0x5990f3,_0x1ef75e=_0x112f46[_0x51da58(0x2ad)]-0x1,_0xd0254e;_0x1ef75e>=0x0;_0x1ef75e--)(_0xd0254e=_0x112f46[_0x1ef75e])&&(_0x1a1ace=_0xd0254e(_0x1a1ace)||_0x1a1ace);return _0x1a1ace;},A=(_0xff2aa2,_0x5b1569)=>(_0x3de7e3,_0x302fdf)=>_0x5b1569(_0x3de7e3,_0x302fdf,_0xff2aa2);function _0x3e21(_0x12d4e9,_0x328a56){_0x12d4e9=_0x12d4e9-0x148;const _0x1ee4f5=_0x1ee4();let _0x3e2195=_0x1ee4f5[_0x12d4e9];return _0x3e2195;}const yi=0x12c,$i=0x64;let xe=class extends _0x289c93{constructor(_0x5302d0,_0x5bb812,_0x521fea,_0xdb4226,_0x32051f,_0x3b102a,_0xfc2b8d,_0x39234e,_0xa7ede4){const _0x23b616=_0x183824;super(),_(this,_0x23b616(0x167),!0x1),_(this,'_init',!0x1),_(this,_0x23b616(0x1d3),new _0x58e817(new Map())),_(this,'cursorInfo$',this[_0x23b616(0x1d3)]['asObservable']()),_(this,_0x23b616(0x229),new _0x58e817([])),_(this,'roomMembers$',this[_0x23b616(0x229)][_0x23b616(0x273)](_0x33ba2d(yi))),_(this,_0x23b616(0x290),_0x2fc487(_0x5876b2=>{const _0x137821=_0x23b616,_0x4637b5={'eventID':_0x545a72['UPDATE_CURSOR'],'data':{'unitID':this[_0x137821(0x36a)],'memberID':this[_0x137821(0x1da)][_0x137821(0x25a)](),'selection':$t(_0x5876b2)}};this['_session']['send'](_0x4637b5,this['unitID']);},$i)),(this[_0x23b616(0x36a)]=_0x5302d0,this[_0x23b616(0x1da)]=_0x5bb812,this[_0x23b616(0x384)]=_0x521fea,this[_0x23b616(0x211)]=_0xdb4226,this['_memberService']=_0x32051f,this[_0x23b616(0x340)]=_0x3b102a,this[_0x23b616(0x27b)]=_0xfc2b8d,this[_0x23b616(0x21a)]=_0x39234e,this[_0x23b616(0x368)]=_0xa7ede4);}get[_0x183824(0x1fb)](){return this['_cursorInfo$']['getValue']();}get['roomMembers'](){const _0x4eb0b4=_0x183824;return this['_roomMembers$'][_0x4eb0b4(0x2f9)]();}[_0x183824(0x2e6)](){const _0x2c49e1=_0x183824;super[_0x2c49e1(0x2e6)](),this[_0x2c49e1(0x1d3)][_0x2c49e1(0x1ac)](new Map()),this[_0x2c49e1(0x1d3)][_0x2c49e1(0x257)](),this[_0x2c49e1(0x229)][_0x2c49e1(0x1ac)]([]),this['_roomMembers$']['complete']();}[_0x183824(0x269)](){const _0x3d5f3e=_0x183824;this['_init']||(this[_0x3d5f3e(0x193)]=!0x0,this[_0x3d5f3e(0x1da)][_0x3d5f3e(0x38f)][_0x3d5f3e(0x273)](_0x43c088(this[_0x3d5f3e(0x322)]))['subscribe'](_0x1a17ea=>{const _0x42c22f=_0x3d5f3e;_0x1a17ea===_0x4dbdc0[_0x42c22f(0x2f1)]?this['_toggleOnline']():this['_toggleOffline']();}),this['_session'][_0x3d5f3e(0x264)][_0x3d5f3e(0x273)](_0x43c088(this[_0x3d5f3e(0x322)]))[_0x3d5f3e(0x2dc)](_0x241461=>{const _0x406118=_0x3d5f3e,_0x4f769e=_0x241461['eventID'];_0x4f769e===_0x545a72[_0x406118(0x23d)]&&this[_0x406118(0x377)](_0x241461),_0x4f769e===_0x545a72[_0x406118(0x31c)]&&this[_0x406118(0x246)](_0x241461);}),this[_0x3d5f3e(0x1f4)](this[_0x3d5f3e(0x368)]['onCommandExecuted'](_0x56e307=>{const _0x4239ed=_0x3d5f3e,_0x346a29=_0x56e307[_0x4239ed(0x2e7)];_0x346a29!=null&&this[_0x4239ed(0x167)]&&_0x56e307['id']===_0x8a0bd9['id']&&_0x346a29[_0x4239ed(0x14b)]===this[_0x4239ed(0x36a)]&&_0x346a29['isEditing']===!0x1&&_0x346a29['ranges'][_0x4239ed(0x2ad)]>0x0&&this[_0x4239ed(0x290)](_0x346a29[_0x4239ed(0x15d)]);})),this[_0x3d5f3e(0x340)]['collabCursorState$'][_0x3d5f3e(0x273)](_0x43c088(this['dispose$']))[_0x3d5f3e(0x2dc)](_0xd1df14=>{const _0x41b631=_0x3d5f3e;if((_0xd1df14==null?void 0x0:_0xd1df14[_0x41b631(0x36a)])!==this[_0x41b631(0x36a)])return;const _0x4d7da0={'eventID':_0x545a72[_0x41b631(0x23d)],'data':_0xd1df14};this[_0x41b631(0x377)](_0x4d7da0);}),this['disposeWithMe'](this[_0x3d5f3e(0x368)][_0x3d5f3e(0x1f3)](_0x2413b9=>{const _0x49ac87=_0x3d5f3e;if(_0x2413b9[_0x49ac87(0x2e7)]==null)return;const _0x33ec6e=_0x2413b9[_0x49ac87(0x2e7)];if(_0x2413b9['id']!==_0x3ce191['id']||_0x33ec6e['unitId']!==this['unitID'])return;const _0x447df8={'id':'doc.mutation.rich-text-editing','params':_0x33ec6e},_0x6e25a=this['cursorInfo'];for(const [_0x3c5941,_0x2f8dd3]of _0x6e25a){const _0x3130de={'id':_0x49ac87(0x261),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x2f8dd3[_0x49ac87(0x15d)]}},_0x286203=this[_0x49ac87(0x27b)][_0x49ac87(0x155)](_0x447df8,_0x3130de,!0x1);if(_0x5b0c3f(_0x286203))throw _0x286203[_0x49ac87(0x17b)];_0x6e25a[_0x49ac87(0x317)](_0x3c5941,{..._0x2f8dd3,'ranges':_0x286203[_0x49ac87(0x24f)][_0x49ac87(0x2e7)][_0x49ac87(0x2ef)]});}queueMicrotask(()=>{const _0x531513=_0x49ac87;this['_cursorInfo$'][_0x531513(0x1ac)](_0x6e25a);});})));}[_0x183824(0x377)](_0x3efe78){const _0x186991=_0x183824;var _0x47105e,_0x4d9f67;const {memberID:_0x5a279c,selection:_0x3a03d5}=_0x3efe78[_0x186991(0x2bd)],_0x2c5e77=Ai(_0x3a03d5),_0x364a73=(_0x4d9f67=(_0x47105e=this[_0x186991(0x32c)][_0x186991(0x2b2)](this['unitID'],_0x5a279c))==null?void 0x0:_0x47105e[_0x186991(0x24e)])!=null?_0x4d9f67:_0x186991(0x253),_0x29346f={'color':this[_0x186991(0x211)][_0x186991(0x2d7)](_0x5a279c),'name':_0x364a73,'ranges':_0x2c5e77},_0x4fa826=this['cursorInfo'];_0x4fa826['set'](_0x5a279c,_0x29346f),this[_0x186991(0x1d3)][_0x186991(0x1ac)](_0x4fa826);}[_0x183824(0x246)](_0x187b73){const _0x3fe9d5=_0x183824,{memberID:_0x2c4ce6}=_0x187b73[_0x3fe9d5(0x2bd)],_0x3fafd3=this[_0x3fe9d5(0x1fb)];_0x3fafd3[_0x3fe9d5(0x324)](_0x2c4ce6),this['_cursorInfo$'][_0x3fe9d5(0x1ac)](_0x3fafd3);}['_toggleOnline'](){const _0x45753a=_0x183824;var _0x3fb381;if(this[_0x45753a(0x167)]=!0x0,((_0x3fb381=this[_0x45753a(0x21a)][_0x45753a(0x2bf)]())==null?void 0x0:_0x3fb381[_0x45753a(0x2c6)]())!==this[_0x45753a(0x36a)])return;const _0x4228b4=this[_0x45753a(0x384)]['get'](_0x151bee)['getDocRanges']();Array[_0x45753a(0x17c)](_0x4228b4)&&_0x4228b4['length']>0x0&&this[_0x45753a(0x290)](_0x4228b4);}['_toggleOffline'](){const _0x357331=_0x183824;this[_0x357331(0x167)]=!0x1;}};xe=wi([A(0x2,_0x2b5bcf(_0x138ef1)),A(0x3,_0x2b5bcf(Ke)),A(0x4,_0x2b5bcf(_0x13b0a1)),A(0x5,_0x2b5bcf(ze)),A(0x6,_0x869e11),A(0x7,_0x3adc76),A(0x8,_0x3bba43)],xe);var xi=Object[_0x183824(0x32e)],Bi=(_0xa30120,_0x4281ae,_0x2e4a11,_0x86dd58)=>{for(var _0x445db4=_0x86dd58>0x1?void 0x0:_0x86dd58?xi(_0x4281ae,_0x2e4a11):_0x4281ae,_0x33b34e=_0xa30120['length']-0x1,_0x52afe1;_0x33b34e>=0x0;_0x33b34e--)(_0x52afe1=_0xa30120[_0x33b34e])&&(_0x445db4=_0x52afe1(_0x445db4)||_0x445db4);return _0x445db4;},B=(_0x3365d7,_0x2dab44)=>(_0x525f05,_0x37ce2d)=>_0x2dab44(_0x525f05,_0x37ce2d,_0x3365d7);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x102710=[],_0x4e4fda=!0x1;return _0x4d218e=>{_0x102710['push'](_0x4d218e),_0x4e4fda||(_0x4e4fda=!0x0,setTimeout(()=>{const _0x143ac4=_0x3e21;_0x102710[_0x143ac4(0x28a)](_0x47a23e=>_0x47a23e()),_0x102710=[],_0x4e4fda=!0x1;}));};};let Be=class extends _0x289c93{constructor(_0x4eb8b6,_0x482a1e,_0x4c34b2,_0x59134c,_0xdf62f3,_0x132ad6,_0x27b214,_0x1f78d9){const _0x42c7d4=_0x183824;super(),_(this,_0x42c7d4(0x167),!0x1),_(this,_0x42c7d4(0x193),!0x1),_(this,'_cursorInfo$',new _0x58e817(new Map())),_(this,_0x42c7d4(0x208),this[_0x42c7d4(0x1d3)]['asObservable']()),_(this,_0x42c7d4(0x229),new _0x58e817([])),_(this,'roomMembers$',this[_0x42c7d4(0x229)][_0x42c7d4(0x273)](_0x33ba2d(Fi))),_(this,_0x42c7d4(0x290),_0x2fc487((_0x355ee0,_0xe8e864)=>{const _0x16ef02=_0x42c7d4,_0x4098a5={'eventID':_0x545a72['UPDATE_CURSOR'],'data':{'unitID':this[_0x16ef02(0x36a)],'memberID':this[_0x16ef02(0x1da)][_0x16ef02(0x25a)](),'selection':_0x10a826(_0x355ee0,_0xe8e864[_0x16ef02(0x151)])}};this[_0x16ef02(0x1da)][_0x16ef02(0x2d3)](_0x4098a5,this[_0x16ef02(0x36a)]);},ki)),(this[_0x42c7d4(0x36a)]=_0x4eb8b6,this[_0x42c7d4(0x1da)]=_0x482a1e,this[_0x42c7d4(0x384)]=_0x4c34b2,this[_0x42c7d4(0x211)]=_0x59134c,this['_memberService']=_0xdf62f3,this[_0x42c7d4(0x21a)]=_0x132ad6,this[_0x42c7d4(0x368)]=_0x27b214,this['_refRangeService']=_0x1f78d9);}get[_0x183824(0x1fb)](){const _0x2be9f5=_0x183824;return this[_0x2be9f5(0x1d3)]['getValue']();}get[_0x183824(0x240)](){return this['_roomMembers$']['getValue']();}[_0x183824(0x2e6)](){const _0x1ac523=_0x183824;super[_0x1ac523(0x2e6)](),this[_0x1ac523(0x1d3)][_0x1ac523(0x1ac)](new Map()),this[_0x1ac523(0x1d3)]['complete'](),this[_0x1ac523(0x229)]['next']([]),this[_0x1ac523(0x229)][_0x1ac523(0x257)]();}[_0x183824(0x269)](){const _0x582a08=_0x183824;this[_0x582a08(0x193)]||(this[_0x582a08(0x193)]=!0x0,this[_0x582a08(0x1da)][_0x582a08(0x38f)][_0x582a08(0x273)](_0x43c088(this[_0x582a08(0x322)]))['subscribe'](_0x20a98a=>{const _0x532b2e=_0x582a08;_0x20a98a===_0x4dbdc0[_0x532b2e(0x2f1)]?this[_0x532b2e(0x206)]():this[_0x532b2e(0x2e1)]();}),this['_session']['event$']['pipe'](_0x43c088(this[_0x582a08(0x322)]))['subscribe'](_0x26a946=>{const _0x5a69d9=_0x582a08,_0x3ff8a4=_0x26a946[_0x5a69d9(0x1aa)];_0x3ff8a4===_0x545a72[_0x5a69d9(0x23d)]&&this['_onCursorUpdate'](_0x26a946),_0x3ff8a4===_0x545a72[_0x5a69d9(0x31c)]&&this[_0x5a69d9(0x246)](_0x26a946);}),this[_0x582a08(0x2ea)](),this[_0x582a08(0x1f4)](this['_commandService'][_0x582a08(0x1f3)](_0x192b3d=>{const _0xd809f=_0x582a08;if(this[_0xd809f(0x167)]&&_0x192b3d['id']===_0x90d8d['id']&&_0x192b3d['params'][_0xd809f(0x14b)]===this['unitID']){const _0x2588cc=_0x192b3d['params'];this[_0xd809f(0x290)](_0x2588cc['subUnitId'],_0x2588cc['selections'][0x0]);}})));}['_onCursorUpdate'](_0x316986){const _0x3806ca=_0x183824;var _0x2e69c3,_0x31d331;const {memberID:_0x4d6e67,selection:_0x5d6903}=_0x316986['data'],{sheetName:_0xcde732,range:_0x4855f5}=_0x57943d(_0x5d6903),_0x516a36={'name':(_0x31d331=(_0x2e69c3=this['_memberService']['getMember'](this[_0x3806ca(0x36a)],_0x4d6e67))==null?void 0x0:_0x2e69c3[_0x3806ca(0x24e)])!=null?_0x31d331:_0x3806ca(0x253),'range':this[_0x3806ca(0x20a)](_0xcde732,_0x4855f5),'sheetID':_0xcde732,'color':this[_0x3806ca(0x211)][_0x3806ca(0x2d7)](_0x4d6e67),'selection':_0x5d6903},_0x21a9ff=this[_0x3806ca(0x1fb)];_0x21a9ff['set'](_0x4d6e67,_0x516a36),this['_cursorInfo$']['next'](_0x21a9ff);}['_onCursorDelete'](_0xc482c){const _0x126002=_0x183824,{memberID:_0x16b7ea}=_0xc482c[_0x126002(0x2bd)],_0x2410fa=this[_0x126002(0x1fb)];_0x2410fa['delete'](_0x16b7ea),this[_0x126002(0x1d3)]['next'](_0x2410fa);}[_0x183824(0x20a)](_0x5b30d9,_0x234eb0){const _0x5c3962=_0x183824;var _0x3f7ec2,_0x466820;const _0x165a25=(_0x466820=(_0x3f7ec2=this['_univerInstanceService'][_0x5c3962(0x200)](this[_0x5c3962(0x36a)]))==null?void 0x0:_0x3f7ec2[_0x5c3962(0x30a)](_0x5b30d9))==null?void 0x0:_0x466820[_0x5c3962(0x1e1)]();return(_0x165a25==null?void 0x0:_0x165a25['find'](_0xf84a29=>_0x275224[_0x5c3962(0x36b)](_0xf84a29,_0x234eb0)))||_0x234eb0;}['_onRefRangeChange'](){const _0x3e3f99=_0x183824,_0x1f3316=new _0x3ffc95(),_0x45a5c4=Hi(),_0x49d529=()=>{const _0x4e1564=_0x3e21;_0x1f3316[_0x4e1564(0x2e6)]();const _0x51f331=(_0x337637,_0x4a91ab,_0x593d24,_0xea7e3d)=>{const _0x47a23f=_0x4e1564;let _0x4c4515=[];switch(_0x337637['id']){case _0x50d064['DeleteRangeMoveLeftCommandId']:{_0x4c4515=_0x5d37c3(_0x337637,_0xea7e3d);break;}case _0x50d064[_0x47a23f(0x15b)]:{_0x4c4515=_0x401ff2(_0x337637,_0xea7e3d);break;}case _0x50d064[_0x47a23f(0x170)]:{_0x4c4515=_0x6cc1b6(_0x337637,_0xea7e3d);break;}case _0x50d064[_0x47a23f(0x1ff)]:{_0x4c4515=_0x147fb7(_0x337637,_0xea7e3d);break;}case _0x50d064[_0x47a23f(0x202)]:{_0x4c4515=_0x293533(_0x337637,_0xea7e3d);break;}case _0x50d064['InsertRowCommandId']:{_0x4c4515=_0x3bd833(_0x337637,_0xea7e3d);break;}case _0x50d064[_0x47a23f(0x35e)]:{_0x4c4515=_0x5d05cb(_0x337637,_0xea7e3d);break;}case _0x50d064['RemoveColCommandId']:{_0x4c4515=_0x51bf44(_0x337637,_0xea7e3d);break;}case _0x50d064['RemoveRowCommandId']:{_0x4c4515=_0x214da7(_0x337637,_0xea7e3d);break;}}const _0x35ddd2=_0x5806f8(_0x4c4515,_0xea7e3d),_0xa0ae0e=this[_0x47a23f(0x1fb)][_0x47a23f(0x2ee)](_0x4a91ab);if(_0xa0ae0e&&_0x35ddd2){const _0x42fc55={..._0xa0ae0e,'range':_0x35ddd2};this[_0x47a23f(0x1fb)][_0x47a23f(0x317)](_0x4a91ab,_0x42fc55),_0x45a5c4(()=>{const _0x590092=_0x47a23f,_0x4f0303=this[_0x590092(0x328)][_0x590092(0x352)](_0x35ddd2,_0x29846c=>(_0x4f0303[_0x590092(0x2e6)](),_0x51f331(_0x29846c,_0x4a91ab,_0x593d24,_0x35ddd2)));_0x1f3316[_0x590092(0x298)](_0x4f0303);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x4e1564(0x28a)]((_0x4c1cd4,_0x5d9adc)=>{const _0x37a334=_0x4e1564,{range:_0x238a1e,sheetID:_0x46d0b7}=_0x4c1cd4,_0x1bb5f3=this['_refRangeService']['registerRefRange'](_0x238a1e,_0x166fb2=>(_0x1bb5f3[_0x37a334(0x2e6)](),_0x51f331(_0x166fb2,_0x5d9adc,_0x46d0b7,_0x238a1e)));_0x1f3316[_0x37a334(0x298)](_0x1bb5f3);});};this['disposeWithMe'](_0x280f44(this[_0x3e3f99(0x1d3)]['subscribe'](()=>{_0x49d529();})));}['_toggleOnline'](){const _0x228ac0=_0x183824;var _0x3ad0a4,_0x3c4dfb;if(this['_online']=!0x0,((_0x3ad0a4=this[_0x228ac0(0x21a)][_0x228ac0(0x2bf)]())==null?void 0x0:_0x3ad0a4[_0x228ac0(0x2c6)]())!==this[_0x228ac0(0x36a)])return;const _0x1c3d33=(_0x3c4dfb=this[_0x228ac0(0x384)][_0x228ac0(0x2ee)](_0x2b8294)[_0x228ac0(0x21e)]())==null?void 0x0:_0x3c4dfb[0x0],_0x4f98f4=this['_univerInstanceService'][_0x228ac0(0x2ca)](_0x51f35a[_0x228ac0(0x32b)])[_0x228ac0(0x17d)]();_0x1c3d33&&_0x4f98f4&&this['_updateLocalCursor'](_0x4f98f4[_0x228ac0(0x279)](),_0x1c3d33);}['_toggleOffline'](){this['_online']=!0x1;}};Be=Bi([B(0x2,_0x2b5bcf(_0x138ef1)),B(0x3,_0x2b5bcf(Ke)),B(0x4,_0x2b5bcf(_0x13b0a1)),B(0x5,_0x3adc76),B(0x6,_0x3bba43),B(0x7,_0x2b5bcf(_0x527b6d))],Be);var Yi=Object[_0x183824(0x32e)],Wi=(_0x136b83,_0x26fee1,_0x56ca96,_0x4e380e)=>{const _0x46839f=_0x183824;for(var _0x565529=_0x4e380e>0x1?void 0x0:_0x4e380e?Yi(_0x26fee1,_0x56ca96):_0x26fee1,_0x36ac5b=_0x136b83[_0x46839f(0x2ad)]-0x1,_0x590a77;_0x36ac5b>=0x0;_0x36ac5b--)(_0x590a77=_0x136b83[_0x36ac5b])&&(_0x565529=_0x590a77(_0x565529)||_0x565529);return _0x565529;},Ce=(_0x1f9bf3,_0x190143)=>(_0xf927c8,_0x3ebc0a)=>_0x190143(_0xf927c8,_0x3ebc0a,_0x1f9bf3);let H=class extends _0x289c93{constructor(_0x56383e,_0x2e4af9,_0x1195bd){const _0x51e8ff=_0x183824;super(),_(this,'_entities',new Map()),_(this,_0x51e8ff(0x1c6),new _0x1089f4()),(this[_0x51e8ff(0x21a)]=_0x56383e,this[_0x51e8ff(0x384)]=_0x2e4af9,this[_0x51e8ff(0x210)]=_0x1195bd,this[_0x51e8ff(0x193)]());}[_0x183824(0x2e6)](){const _0x17477f=_0x183824;super[_0x17477f(0x2e6)](),this[_0x17477f(0x1c6)][_0x17477f(0x257)](),this[_0x17477f(0x2e9)]['forEach'](_0x47afee=>_0x47afee[_0x17477f(0x2e6)]());}[_0x183824(0x197)](_0x1fffe0){const _0x2cb244=_0x183824;return this[_0x2cb244(0x2e9)]['has'](_0x1fffe0)?this[_0x2cb244(0x2e9)][_0x2cb244(0x2ee)](_0x1fffe0)[_0x2cb244(0x208)]:this[_0x2cb244(0x1c6)]['pipe'](_0x19723f(_0x5e99eb=>_0x5e99eb[_0x2cb244(0x36a)]===_0x1fffe0),_0x14ecc2(_0x44a729=>_0x44a729[_0x2cb244(0x208)]));}[_0x183824(0x193)](){const _0x179093=_0x183824;this[_0x179093(0x21a)]['getTypeOfUnitAdded$'](_0x51f35a[_0x179093(0x32b)])[_0x179093(0x273)](_0x43c088(this[_0x179093(0x322)]))[_0x179093(0x2dc)](async _0x3e7f5b=>{const _0x49ea1f=_0x179093,_0xde727d=_0x3e7f5b[_0x49ea1f(0x2c6)](),_0x3a3fd7=await this[_0x49ea1f(0x381)](_0xde727d);this[_0x49ea1f(0x1c6)]['next'](_0x3a3fd7),this[_0x49ea1f(0x2e9)][_0x49ea1f(0x317)](_0xde727d,_0x3a3fd7);}),this['_univerInstanceService'][_0x179093(0x38a)](_0x51f35a['UNIVER_DOC'])[_0x179093(0x273)](_0x43c088(this[_0x179093(0x322)]))[_0x179093(0x273)](_0x19723f(_0x270581=>!_0x270581[_0x179093(0x2c6)]()['startsWith']('__')))[_0x179093(0x2dc)](async _0x2d09f6=>{const _0x545e94=_0x179093,_0x2ebe48=_0x2d09f6['getUnitId'](),_0x92d5fa=await this['_startDocCollabCursor'](_0x2ebe48);this['_entityInit$']['next'](_0x92d5fa),this[_0x545e94(0x2e9)][_0x545e94(0x317)](_0x2ebe48,_0x92d5fa);}),_0x59d32a(this[_0x179093(0x21a)][_0x179093(0x2aa)](_0x51f35a[_0x179093(0x2a6)]),this[_0x179093(0x21a)]['getTypeOfUnitDisposed$'](_0x51f35a[_0x179093(0x32b)]))[_0x179093(0x273)](_0x43c088(this[_0x179093(0x322)]))[_0x179093(0x2dc)](_0x4bbce5=>{const _0x5b9a2d=_0x179093,_0x4fc56a=_0x4bbce5[_0x5b9a2d(0x2c6)](),_0x50f015=this[_0x5b9a2d(0x2e9)][_0x5b9a2d(0x2ee)](_0x4fc56a);_0x50f015&&(_0x50f015[_0x5b9a2d(0x2e6)](),this[_0x5b9a2d(0x2e9)][_0x5b9a2d(0x324)](_0x4fc56a));});}async['_startSheetCollabCursor'](_0x3c9648){const _0x1c0f56=_0x183824,_0x32578a=await this[_0x1c0f56(0x210)][_0x1c0f56(0x2ba)](_0x3c9648),_0x8afedf=this['_injector'][_0x1c0f56(0x311)](Be,_0x3c9648,_0x32578a);return _0x8afedf[_0x1c0f56(0x269)](),_0x8afedf;}async[_0x183824(0x16c)](_0x489fec){const _0x2d7e4d=_0x183824,_0x552666=await this['_collabSessionService']['requireSession'](_0x489fec),_0x1a43c3=this[_0x2d7e4d(0x384)][_0x2d7e4d(0x311)](xe,_0x489fec,_0x552666);return _0x1a43c3['init'](),_0x1a43c3;}};H=Wi([Ce(0x0,_0x3adc76),Ce(0x1,_0x2b5bcf(_0x138ef1)),Ce(0x2,_0x2b5bcf(_0x559838))],H);const Q=0x14,at=0xc8,Re=0x4,Vi=0x5;function ji(_0x6b72c,_0x46204d){const _0x465ce2=_0x183824;let {radius:_0x329134,width:_0x34fca1,height:_0x5f3fa5}=_0x46204d;_0x329134=_0x329134!=null?_0x329134:0x0,_0x34fca1=_0x34fca1!=null?_0x34fca1:0x1e,_0x5f3fa5=_0x5f3fa5!=null?_0x5f3fa5:0x1e;let _0x3ec101=0x0,_0x36e790=0x0,_0x24934e=0x0;_0x3ec101=_0x36e790=_0x24934e=Math[_0x465ce2(0x163)](_0x329134,_0x34fca1/0x2,_0x5f3fa5/0x2),_0x6b72c['beginPath'](),_0x6b72c[_0x465ce2(0x2be)](_0x3ec101,0x0),_0x6b72c['lineTo'](_0x34fca1-_0x36e790,0x0),_0x6b72c[_0x465ce2(0x1f2)](_0x34fca1-_0x36e790,_0x36e790,_0x36e790,Math['PI']*0x3/0x2,0x0,!0x1),_0x6b72c['lineTo'](_0x34fca1,_0x5f3fa5-_0x24934e),_0x6b72c[_0x465ce2(0x1f2)](_0x34fca1-_0x24934e,_0x5f3fa5-_0x24934e,_0x24934e,0x0,Math['PI']/0x2,!0x1),_0x6b72c['lineTo'](0x0,_0x5f3fa5),_0x6b72c[_0x465ce2(0x335)](0x0,_0x3ec101),_0x6b72c[_0x465ce2(0x1f2)](_0x3ec101,_0x3ec101,_0x3ec101,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x6b72c[_0x465ce2(0x190)](),_0x46204d[_0x465ce2(0x327)]&&(_0x6b72c[_0x465ce2(0x360)](),_0x6b72c[_0x465ce2(0x30f)]=_0x46204d[_0x465ce2(0x327)],_0x46204d[_0x465ce2(0x36f)]===_0x465ce2(0x332)?_0x6b72c['fill']('evenodd'):_0x6b72c[_0x465ce2(0x327)](),_0x6b72c['restore']());}class ve extends _0x19cbf1{constructor(_0x15d91a,_0x169b3c){const _0x409065=_0x183824;super(_0x15d91a,_0x169b3c),_(this,_0x409065(0x281)),_(this,_0x409065(0x24a)),(this['color']=_0x169b3c==null?void 0x0:_0x169b3c[_0x409065(0x281)],this[_0x409065(0x24a)]=_0x169b3c==null?void 0x0:_0x169b3c[_0x409065(0x24a)]);}static['drawWith'](_0x441c18,_0x122011){const _0x10c2e0=_0x183824,{text:_0xe48b83,color:_0x4befb2}=_0x122011;_0x441c18['save'](),_0x441c18[_0x10c2e0(0x2e2)]=_0x10c2e0(0x16d);const _0x1237d1=_0x441c18[_0x10c2e0(0x1d9)](_0xe48b83)[_0x10c2e0(0x1a8)],_0x47f136=Math[_0x10c2e0(0x163)](_0x1237d1+0x2*Re,at);ji(_0x441c18,{'height':Q,'radius':0x4,'width':_0x47f136,'fill':_0x4befb2}),_0x441c18['fillStyle']=_0x10c2e0(0x396);const _0x3aacaf=Re,_0x554f91=Q-Vi,_0x36c992=at-0x2*Re;if(_0x1237d1>_0x36c992){let _0x3d653d='',_0x4c85e5=0x0;for(const _0x13b128 of _0xe48b83){const _0x5905ca=_0x441c18['measureText'](_0x13b128)[_0x10c2e0(0x1a8)];if(_0x4c85e5+_0x5905ca<=_0x36c992-_0x441c18['measureText'](_0x10c2e0(0x20e))[_0x10c2e0(0x1a8)])_0x3d653d+=_0x13b128,_0x4c85e5+=_0x5905ca;else{_0x3d653d+=_0x10c2e0(0x20e);break;}}_0x441c18[_0x10c2e0(0x39b)](_0x3d653d,_0x3aacaf,_0x554f91);}else _0x441c18[_0x10c2e0(0x39b)](_0xe48b83,_0x3aacaf,_0x554f91);_0x441c18[_0x10c2e0(0x254)]();}['_draw'](_0x1c379a){const _0x28c8e6=_0x183824;ve[_0x28c8e6(0x325)](_0x1c379a,this);}}const De='collab-text-anchor-',Xi=_0x183824(0x348),Gi=_0x183824(0x27c),z=0x6,Ki=1.5,Ne=0x4,zi=1.5,Ji=_0x183824(0x2fb);class ct{constructor(_0x272364,_0x565535,_0x525e8a,_0x54f8e8){const _0x186185=_0x183824;_(this,_0x186185(0x1d6),[]),_(this,_0x186185(0x2b4),null),_(this,_0x186185(0x224),null),_(this,_0x186185(0x265),null),_(this,_0x186185(0x15f),null),_(this,'_eventUnsubscribe',null),(this[_0x186185(0x203)]=_0x272364,this['_scene']=_0x565535,this[_0x186185(0x222)]=_0x525e8a,this[_0x186185(0x2b1)]=_0x54f8e8,this['_render']());}set[_0x183824(0x1a4)](_0x31f6db){const _0x252dcb=_0x183824;_0x31f6db?(this[_0x252dcb(0x265)]&&this[_0x252dcb(0x265)][_0x252dcb(0x30c)](),this[_0x252dcb(0x224)]&&this[_0x252dcb(0x224)]['show']()):(this[_0x252dcb(0x265)]&&this[_0x252dcb(0x265)][_0x252dcb(0x18a)](),this[_0x252dcb(0x224)]&&this['_textBubble'][_0x252dcb(0x30c)]());}['dispose'](){const _0x4bc2db=_0x183824;for(const _0xbb0081 of this[_0x4bc2db(0x1d6)])_0xbb0081[_0x4bc2db(0x2e6)]();this[_0x4bc2db(0x224)]&&this['_textBubble']['dispose'](),this[_0x4bc2db(0x265)]&&this[_0x4bc2db(0x265)][_0x4bc2db(0x2e6)](),this[_0x4bc2db(0x2b4)]&&this[_0x4bc2db(0x2b4)][_0x4bc2db(0x2e6)](),this[_0x4bc2db(0x21d)]&&this[_0x4bc2db(0x21d)]();}[_0x183824(0x27f)](){const _0x536d77=_0x183824;var _0x165943;const {_docSkeleton:_0x5e5386,_document:_0x3c4905}=this,{color:_0x27432d,name:_0x17970b,ranges:_0x4e20f3}=this[_0x536d77(0x203)],_0x37f47b=_0x3c4905[_0x536d77(0x2fd)](),{docsLeft:_0x295e53,docsTop:_0x418c41}=_0x37f47b,_0xcfdd6b=new _0x4e52e4(_0x37f47b,_0x5e5386);for(const {startOffset:_0x16a541,endOffset:_0x4ab763,rangeType:_0x41b7b5,segmentId:_0x239262,segmentPage:_0x12fc62,collapsed:_0x532dce,isActive:_0x14deed}of _0x4e20f3){const _0x41b6db=_0x5e5386['findNodePositionByCharIndex'](_0x16a541,!0x0,_0x239262,_0x12fc62);let _0x98dce9=_0x5e5386[_0x536d77(0x1d4)](_0x4ab763,!0x0,_0x239262,_0x12fc62);if(_0x98dce9==null&&(_0x98dce9=_0x5e5386[_0x536d77(0x1d4)](_0x4ab763-0x1,!0x1,_0x239262,_0x12fc62)),_0x14deed){const {contentBoxPointGroup:_0x4ee3e3}=_0xcfdd6b[_0x536d77(0x186)](_0x98dce9,_0x98dce9);if(_0x4ee3e3[_0x536d77(0x2ad)]===0x0)continue;this[_0x536d77(0x380)](_0x27432d,_0x4ee3e3,_0x295e53,_0x418c41,_0x17970b),this[_0x536d77(0x21d)]=this[_0x536d77(0x164)]();}if(_0x41b6db&&_0x98dce9){if(_0x41b7b5===_0x42a564[_0x536d77(0x270)]){const _0x48e5ba=new _0x388c2f(_0x37f47b,_0x5e5386),{pointGroup:_0x18f6c6}=(_0x165943=_0x48e5ba[_0x536d77(0x186)](_0x41b6db,_0x98dce9))!=null?_0x165943:{};if(_0x18f6c6==null||_0x18f6c6['length']===0x0)continue;this['_drawRectRange'](_0x27432d,_0x18f6c6,_0x295e53,_0x418c41);}else{if(!_0x532dce){const {borderBoxPointGroup:_0x46dd88}=_0xcfdd6b[_0x536d77(0x186)](_0x41b6db,_0x98dce9);if(_0x46dd88[_0x536d77(0x2ad)]===0x0)continue;this[_0x536d77(0x388)](_0x27432d,_0x46dd88,_0x295e53,_0x418c41);}}}}}['_drawAnchor'](_0x665039,_0x48906b,_0x3dee62,_0x3093de,_0x5d2287){const _0x27a53f=_0x183824,_0x948ddc=this[_0x27a53f(0x336)](_0x48906b),{left:_0x17b700,top:_0x1e1755,height:_0x378b67}=_0x948ddc,_0x4f0f01=this[_0x27a53f(0x209)](),_0x2b3bab=zi/_0x4f0f01,_0x5de501=new _0x598e21(De+_0xdf4fd1(z),{'left':_0x17b700+_0x3dee62-_0x2b3bab,'top':_0x1e1755+_0x3093de,'height':_0x378b67,'width':Ki,'fill':_0x665039||_0x2a9dd4(_0x1a02b1[_0x27a53f(0x272)],0x0),'strokeWidth':_0x2b3bab,'stroke':Ji,'evented':!0x0});this['_anchor']=_0x5de501,this['_scene']['addObject'](_0x5de501,_0x4767d4);const _0x5b5f38=new _0x598e21(De+_0xdf4fd1(z),{'left':_0x17b700+_0x3dee62-_0x2b3bab,'top':_0x1e1755+_0x3093de-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x665039||_0x2a9dd4(_0x1a02b1[_0x27a53f(0x272)],0x0),'strokeWidth':0x0,'stroke':_0x665039||_0x2a9dd4(_0x1a02b1[_0x27a53f(0x272)],0x0),'evented':!0x1});this['_anchorDot']=_0x5b5f38,this[_0x27a53f(0x343)][_0x27a53f(0x26e)](_0x5b5f38,_0x4767d4);const _0x3ca02e=new ve(De+_0xdf4fd1(z),{'left':_0x17b700+_0x3dee62-_0x2b3bab,'top':_0x1e1755+_0x3093de-Q,'text':_0x5d2287,'color':_0x665039});this['_textBubble']=_0x3ca02e,this[_0x27a53f(0x343)][_0x27a53f(0x26e)](_0x3ca02e,_0x4767d4),this['_hover']=!0x1;}[_0x183824(0x164)](){const _0x513feb=_0x183824,_0x15c126=this[_0x513feb(0x2b4)][_0x513feb(0x274)][_0x513feb(0x22c)](()=>{const _0x5eef07=_0x513feb;this[_0x5eef07(0x1a4)]=!0x0;}),_0x30e5cd=this['_anchor'][_0x513feb(0x21c)][_0x513feb(0x22c)](()=>{const _0x1a91d3=_0x513feb;this[_0x1a91d3(0x15f)]&&clearTimeout(this[_0x1a91d3(0x15f)]),this['_hideTimer']=setTimeout(()=>{const _0x237df4=_0x1a91d3;this[_0x237df4(0x1a4)]=!0x1;},0x7d0);});return()=>{const _0xf717c3=_0x513feb;_0x15c126[_0xf717c3(0x242)](),_0x30e5cd[_0xf717c3(0x242)]();};}[_0x183824(0x388)](_0x3217fa,_0x52dfb1,_0x238098,_0x353f7f){const _0xf66c2f=_0x183824,_0x1ffa9b=new _0x4a9f36(_0x3217fa)[_0xf66c2f(0x289)](0.2)[_0xf66c2f(0x149)](),_0x4ffbd2=new _0x47da19(Xi+_0xdf4fd1(z),{'pointsGroup':_0x52dfb1,'fill':_0x1ffa9b||_0x2a9dd4(_0x1a02b1[_0xf66c2f(0x272)],0.2),'left':_0x238098,'top':_0x353f7f,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0xf66c2f(0x320)](_0x4ffbd2),this[_0xf66c2f(0x343)][_0xf66c2f(0x26e)](_0x4ffbd2,_0x4767d4);}[_0x183824(0x233)](_0x292b62,_0x1d68a4,_0x149ace,_0x4b34ca){const _0x5b33fd=_0x183824,_0x12cb78=new _0x4a9f36(_0x292b62)[_0x5b33fd(0x289)](0.2)['toRgbString'](),_0x5c17be=new _0x47da19(Gi+_0xdf4fd1(z),{'pointsGroup':_0x1d68a4,'fill':_0x12cb78||_0x2a9dd4(_0x1a02b1['black'],0.2),'left':_0x149ace,'top':_0x4b34ca,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5b33fd(0x1d6)][_0x5b33fd(0x320)](_0x5c17be),this['_scene'][_0x5b33fd(0x26e)](_0x5c17be,_0x4767d4);}[_0x183824(0x336)](_0x3b2e99){const _0x18875c=_0x3b2e99[0x0],_0xefe599=_0x18875c[0x0],_0x506bfc=_0x18875c[0x2],{x:_0x4f69fe,y:_0x19fe02}=_0xefe599,{x:_0x3c8cff,y:_0x975f1e}=_0x506bfc;return{'left':_0x4f69fe,'top':_0x19fe02,'width':_0x3c8cff-_0x4f69fe,'height':_0x975f1e-_0x19fe02};}['_getScale'](){const _0x135e97=_0x183824,{scaleX:_0x415735,scaleY:_0x208a76}=this['_scene'][_0x135e97(0x183)]();return Math[_0x135e97(0x2d4)](_0x415735,_0x208a76);}}var Zi=Object['getOwnPropertyDescriptor'],Qi=(_0x517cfd,_0x308e5d,_0x4721c7,_0x34cfb9)=>{const _0x1b771c=_0x183824;for(var _0x14c276=_0x34cfb9>0x1?void 0x0:_0x34cfb9?Zi(_0x308e5d,_0x4721c7):_0x308e5d,_0x1d44d6=_0x517cfd[_0x1b771c(0x2ad)]-0x1,_0x55e86a;_0x1d44d6>=0x0;_0x1d44d6--)(_0x55e86a=_0x517cfd[_0x1d44d6])&&(_0x14c276=_0x55e86a(_0x14c276)||_0x14c276);return _0x14c276;},ie=(_0x47b977,_0x442431)=>(_0x3731d9,_0x5ef2ae)=>_0x442431(_0x3731d9,_0x5ef2ae,_0x47b977);let Fe=class extends _0x289c93{constructor(_0x4d85b4,_0x1365aa,_0x424fe5,_0x2501c5,_0x1155ea){const _0x3eb235=_0x183824;super(),_(this,_0x3eb235(0x2d8),[]),_(this,_0x3eb235(0x174),[]),(this[_0x3eb235(0x331)]=_0x4d85b4,this[_0x3eb235(0x2ae)]=_0x1365aa,this[_0x3eb235(0x2e3)]=_0x424fe5,this[_0x3eb235(0x368)]=_0x2501c5,this[_0x3eb235(0x1ea)]=_0x1155ea,this[_0x3eb235(0x193)]());}[_0x183824(0x193)](){const _0x513187=_0x183824,_0x71bbf1=this[_0x513187(0x331)]['unitId'],_0x461506=this['_docSkeletonManagerService'];this[_0x513187(0x1f4)](_0xd7fb49([this[_0x513187(0x2e3)][_0x513187(0x197)](_0x71bbf1),this[_0x513187(0x1ea)]['currentTheme$']])[_0x513187(0x273)](_0x2ebebf(([_0x2859a9,_0x3040d8])=>({'skeleton':_0x461506[_0x513187(0x345)](),'cursors':[..._0x2859a9['values']()][_0x513187(0x1d0)](_0x2491dc=>({..._0x2491dc,'color':this['_themeService']['getColorFromTheme'](_0x2491dc[_0x513187(0x281)])}))})))[_0x513187(0x2dc)](_0x34de67=>{const _0x3a7b1a=_0x513187;if(this[_0x3a7b1a(0x26a)](),_0x34de67){const {skeleton:_0x672a0f,cursors:_0x419be5}=_0x34de67;this[_0x3a7b1a(0x33e)](_0x672a0f,_0x419be5);}})),this[_0x513187(0x369)](),this[_0x513187(0x2af)]();}['_updateCollabCursors'](_0x5c10f2,_0x9beb90){const _0x533414=_0x183824,{scene:_0x31e14e,mainComponent:_0x50ddc8}=this[_0x533414(0x331)],_0x2a02d5=_0x9beb90[_0x533414(0x357)](_0x2363c5=>new ct(_0x2363c5,_0x31e14e,_0x5c10f2,_0x50ddc8));this[_0x533414(0x2d8)]=_0x2a02d5,this[_0x533414(0x174)]=_0x9beb90;}['_refreshCollabCursors'](){const _0x5e9f58=_0x183824;this[_0x5e9f58(0x26a)]();const {scene:_0x16aba5,mainComponent:_0x35ebc6}=this['_context'],_0x329fc4=this['_docSkeletonManagerService'][_0x5e9f58(0x345)](),_0x5a2555=this[_0x5e9f58(0x174)][_0x5e9f58(0x357)](_0x3d8b0f=>new ct(_0x3d8b0f,_0x16aba5,_0x329fc4,_0x35ebc6));this[_0x5e9f58(0x2d8)]=_0x5a2555;}[_0x183824(0x26a)](){const _0x2a7a4f=_0x183824;this['_cursorShapes'][_0x2a7a4f(0x28a)](_0x3b2e66=>_0x3b2e66['dispose']()),this['_cursorShapes']=[];}['_initCommandExecutedListener'](){const _0x17a7e1=_0x183824,_0x2e0d48=[_0x286594['id']];this['disposeWithMe'](this[_0x17a7e1(0x368)][_0x17a7e1(0x1f3)](_0x2b59ee=>{const _0x5eaaf5=_0x17a7e1;_0x2e0d48['includes'](_0x2b59ee['id'])&&_0x2b59ee[_0x5eaaf5(0x2e7)]['unitId']===this['_context'][_0x5eaaf5(0x14b)]&&this[_0x5eaaf5(0x28f)]();}));}[_0x183824(0x369)](){const _0x1e5944=_0x183824;this[_0x1e5944(0x1f4)](_0x405042(this['_context']['engine']['onTransformChange$'])[_0x1e5944(0x273)](_0x28ac8d(_0x528b62=>_0x528b62[_0x1e5944(0x28c)]===_0x4e63d7[_0x1e5944(0x23c)]),_0x13ce25(0x10))[_0x1e5944(0x2dc)](()=>{const _0xabc15b=_0x1e5944;this[_0xabc15b(0x28f)]();}));}};Fe=Qi([ie(0x1,_0x2b5bcf(_0x3b8cbc)),ie(0x2,_0x2b5bcf(H)),ie(0x3,_0x3bba43),ie(0x4,_0x2b5bcf(_0xae25d3))],Fe);const qi=0x1,en=1.5;class tn extends _0x19cbf1{constructor(_0x38c202,_0x4c4219){const _0xa100f6=_0x183824;super(_0x38c202,_0x4c4219),_(this,'_color'),_(this,'_hovered',!0x1),_(this,_0xa100f6(0x399)),_(this,_0xa100f6(0x1a5),''),_(this,_0xa100f6(0x382),'top'),_(this,_0xa100f6(0x162)),(_0x4c4219&&this['setShapeProps'](_0x4c4219),this[_0xa100f6(0x274)][_0xa100f6(0x22c)](()=>this[_0xa100f6(0x30e)]({'hovered':!0x0})),this[_0xa100f6(0x21c)]['subscribeEvent'](()=>this[_0xa100f6(0x30e)]({'hovered':!0x1})));}['setShapeProps'](_0x16d717){const _0x516cd2=_0x183824;var _0x21fd21,_0x15d175,_0x279c7b,_0x4e4012,_0x213642,_0x5d5184;this['_color']=(_0x21fd21=_0x16d717[_0x516cd2(0x281)])!=null?_0x21fd21:this[_0x516cd2(0x32d)],this['_hovered']=(_0x15d175=_0x16d717['hovered'])!=null?_0x15d175:this[_0x516cd2(0x256)],this['_range']=(_0x279c7b=_0x16d717['range'])!=null?_0x279c7b:this[_0x516cd2(0x399)],this[_0x516cd2(0x1a5)]=(_0x4e4012=_0x16d717[_0x516cd2(0x24e)])!=null?_0x4e4012:this['_name'],this[_0x516cd2(0x382)]=(_0x213642=_0x16d717[_0x516cd2(0x300)])!=null?_0x213642:this['_labelPosition'],this['_backgroundColor']=(_0x5d5184=_0x16d717[_0x516cd2(0x1b5)])!=null?_0x5d5184:this['_backgroundColor'],this[_0x516cd2(0x166)]({'width':_0x16d717[_0x516cd2(0x1a8)],'height':_0x16d717[_0x516cd2(0x1ad)]});}[_0x183824(0x398)](_0x27fc4a){const _0x2da737=_0x183824,{row:_0x52a9ec,column:_0x1463fa}=_0x27fc4a;if(_0x52a9ec>=this['_range'][_0x2da737(0x262)]&&_0x52a9ec<=this[_0x2da737(0x399)]['endRow']&&_0x1463fa>=this['_range'][_0x2da737(0x181)]&&_0x1463fa<=this[_0x2da737(0x399)][_0x2da737(0x20f)]){this[_0x2da737(0x30e)]({'hovered':!0x0});return;}this[_0x2da737(0x30e)]({'hovered':!0x1});}[_0x183824(0x231)](_0x32a93c){return!0x1;}['_draw'](_0x42be7c){const _0x53ef61=_0x183824;_0x598e21[_0x53ef61(0x325)](_0x42be7c,{'width':this['width'],'height':this[_0x53ef61(0x1ad)],'strokeWidth':en,'stroke':this[_0x53ef61(0x32d)],'evented':!0x1,'fill':this[_0x53ef61(0x162)]}),this['_hovered']&&(_0x42be7c[_0x53ef61(0x360)](),_0x42be7c[_0x53ef61(0x29e)](0x1,0x0,0x0,0x1,this[_0x53ef61(0x1a8)],this[_0x53ef61(0x382)]===_0x53ef61(0x394)?0x0:-Q),ve[_0x53ef61(0x325)](_0x42be7c,{'text':this[_0x53ef61(0x1a5)],'color':this[_0x53ef61(0x32d)]}),_0x42be7c['restore']());}}var sn=Object['getOwnPropertyDescriptor'],nn=(_0x5c7395,_0x5a4204,_0x26db95,_0xf421fb)=>{for(var _0x4726d0=_0xf421fb>0x1?void 0x0:_0xf421fb?sn(_0x5a4204,_0x26db95):_0x5a4204,_0x5f0eb4=_0x5c7395['length']-0x1,_0x595bb4;_0x5f0eb4>=0x0;_0x5f0eb4--)(_0x595bb4=_0x5c7395[_0x5f0eb4])&&(_0x4726d0=_0x595bb4(_0x4726d0)||_0x4726d0);return _0x4726d0;},be=(_0x13633a,_0x27be77)=>(_0x275fab,_0x206285)=>_0x27be77(_0x275fab,_0x206285,_0x13633a);const rn=0x1389;let ke=class extends _0x289c93{constructor(_0x31039b,_0x4c07bc,_0x37300a,_0x37880d){const _0x359e65=_0x183824;super(),_(this,'_cursors',new Set()),_(this,'_lastPointer',null),(this[_0x359e65(0x331)]=_0x31039b,this['_sheetSkeletonManagerService']=_0x4c07bc,this['_collabCursorController']=_0x37300a,this[_0x359e65(0x1ea)]=_0x37880d,this['_init']());}[_0x183824(0x193)](){const _0x3fd464=_0x183824;this['_sheetSkeletonManagerService'][_0x3fd464(0x35b)][_0x3fd464(0x273)](_0x302d5b(this['dispose$']),_0x2821fd(_0x3ac86a=>{const _0x1bebb5=_0x3fd464;if(_0x3ac86a){const _0x3a8370=_0x3ac86a[_0x1bebb5(0x178)];return _0xd7fb49(this['_collabCursorController'][_0x1bebb5(0x197)](this[_0x1bebb5(0x331)][_0x1bebb5(0x14b)]),this[_0x1bebb5(0x1ea)][_0x1bebb5(0x296)])['pipe'](_0x2ebebf(([_0x5829d5,_0x39f9af])=>{const _0x5d6042=_0x1bebb5,_0x455264=new Map();return _0x5829d5[_0x5d6042(0x28a)]((_0x1cd63c,_0x229d08)=>{const _0x4b065e=_0x5d6042;if(_0x1cd63c['sheetID']===_0x3a8370){const _0x28d2b9={..._0x1cd63c};_0x28d2b9[_0x4b065e(0x281)]=this[_0x4b065e(0x1ea)][_0x4b065e(0x14e)](_0x1cd63c[_0x4b065e(0x281)]),_0x455264[_0x4b065e(0x317)](_0x229d08,_0x28d2b9);}}),{'skeleton':_0x3ac86a,'cursors':_0x455264};}));}return _0x4ccce2({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x5c967a,cursors:_0x5c6701})=>{const _0x38229d=_0x3fd464;this[_0x38229d(0x26a)](),_0x5c967a&&this['_updateCollabCursors'](_0x5c967a,_0x5c6701);}),this[_0x3fd464(0x2c2)][_0x3fd464(0x35b)][_0x3fd464(0x2dc)](_0x334bac=>{const _0x114eda=_0x3fd464;if(_0x334bac==null)return;const {skeleton:_0x23ce90}=_0x334bac,{scene:_0x424e8b}=this['_context'];_0x424e8b[_0x114eda(0x1a0)]['subscribeEvent'](_0x2fc487(_0x3fbc13=>{const _0x592816=_0x114eda;var _0x2abe4c,_0x212395;const {offsetX:_0x1e5877,offsetY:_0x2a06dd}=_0x3fbc13,{x:_0x26b964,y:_0x56ce59}=_0x424e8b[_0x592816(0x214)](_0x1346de[_0x592816(0x1dd)]([_0x1e5877,_0x2a06dd])),{scaleX:_0x419369,scaleY:_0x57924d}=_0x424e8b['getAncestorScale'](),_0x1a89ff=_0x424e8b[_0x592816(0x389)](_0x2a915a[_0x592816(0x2a4)]),_0x410770=_0x424e8b[_0x592816(0x391)](_0x1346de[_0x592816(0x1dd)]([_0x26b964,_0x56ce59]),_0x1a89ff),_0x310726=_0x23ce90[_0x592816(0x23b)](_0x1e5877,_0x2a06dd,_0x419369,_0x57924d,_0x410770);((_0x2abe4c=this[_0x592816(0x2f4)])==null?void 0x0:_0x2abe4c[_0x592816(0x230)])===_0x310726['column']&&((_0x212395=this[_0x592816(0x2f4)])==null?void 0x0:_0x212395[_0x592816(0x2e8)])===_0x310726[_0x592816(0x2e8)]||this[_0x592816(0x174)]['forEach'](_0x5807bd=>{const _0xac479b=_0x592816;_0x5807bd[_0xac479b(0x398)](_0x310726);});},0x64));});}[_0x183824(0x33e)](_0x2505c9,_0x1eb7b8){const _0x228eeb=_0x183824;var _0x1014e5;const _0x4a7b00=(_0x1014e5=this[_0x228eeb(0x2c2)][_0x228eeb(0x2ff)]())==null?void 0x0:_0x1014e5[_0x228eeb(0x326)];if(!_0x4a7b00)return;const _0x585950=this[_0x228eeb(0x302)]();if(!_0x585950)return;this[_0x228eeb(0x174)][_0x228eeb(0x28a)](_0x49210e=>{const _0x22c527=_0x228eeb;_0x49210e[_0x22c527(0x23f)]();});const {scene:_0x3d95d0}=_0x585950,_0x3fecfd=on(Array['from'](_0x1eb7b8[_0x228eeb(0x205)]()))['map'](_0x592c20=>{const _0x185d43=_0x228eeb,{color:_0x170fa7,range:_0x307173,name:_0x3a39c8,selection:_0x3a4a16,sheetID:_0x9243ff}=_0x592c20,{startColumn:_0x70e28a,startRow:_0x3c30cb,endColumn:_0x1ad86b,endRow:_0xb10368}=_0x307173,_0x45e8cf=_0x47997a(_0x3c30cb,_0x70e28a,_0x3d95d0,_0x4a7b00),_0x11bfb7=_0x47997a(_0xb10368,_0x1ad86b,_0x3d95d0,_0x4a7b00),{columnHeaderHeightAndMarginTop:_0x5a479e}=_0x4a7b00,{startX:_0x1937c6,startY:_0xd28fe0}=_0x45e8cf,{endX:_0x32c0d2,endY:_0x312af3}=_0x11bfb7,_0x4a8e4f=_0x32c0d2-_0x1937c6,_0x2cb5dd=_0x312af3-_0xd28fe0,_0x338b4b={'labelPosition':_0xd28fe0-_0x5a479e>=Q?_0x185d43(0x30d):_0x185d43(0x394),'sheetID':_0x9243ff,'range':_0x307173,'color':_0x170fa7,'name':_0x3a39c8,'selection':_0x3a4a16,'left':_0x1937c6,'top':_0xd28fe0,'width':_0x4a8e4f,'height':_0x2cb5dd,'evented':!0x1,'zIndex':rn};return new tn(_0x3a39c8,_0x338b4b);});_0x3d95d0[_0x228eeb(0x38b)](_0x3fecfd,qi),this['_cursors']=new Set(_0x3fecfd);}[_0x183824(0x26a)](){const _0x488cd3=_0x183824;var _0x12d6ae;(_0x12d6ae=this[_0x488cd3(0x174)])==null||_0x12d6ae[_0x488cd3(0x28a)](_0x1fdeea=>_0x1fdeea[_0x488cd3(0x2e6)]());}[_0x183824(0x302)](){const _0x2b6757=_0x183824;return _0x3a482f(this[_0x2b6757(0x331)][_0x2b6757(0x315)],this['_context']);}};ke=nn([be(0x1,_0x2b5bcf(_0x411cb9)),be(0x2,_0x2b5bcf(H)),be(0x3,_0x2b5bcf(_0xae25d3))],ke);function on(_0x43bf85){const _0x4238e6=_0x183824,_0x3aac45=new Map();return _0x43bf85[_0x4238e6(0x28a)](_0x47e411=>{const _0x3e5e02=_0x4238e6;if(_0x3aac45['has'](_0x47e411['selection'])){const _0x430b6b=_0x3aac45[_0x3e5e02(0x2ee)](_0x47e411[_0x3e5e02(0x14d)]);_0x430b6b[_0x3e5e02(0x24e)]+=',\x20'+_0x47e411[_0x3e5e02(0x24e)];}else _0x3aac45['set'](_0x47e411[_0x3e5e02(0x14d)],_0x47e411);}),Array['from'](_0x3aac45['values']());}var an=Object[_0x183824(0x32e)],cn=(_0x25f108,_0x2027d4,_0x5318d7,_0x18af7b)=>{const _0x33af7a=_0x183824;for(var _0x3113b5=_0x18af7b>0x1?void 0x0:_0x18af7b?an(_0x2027d4,_0x5318d7):_0x2027d4,_0x2e233a=_0x25f108[_0x33af7a(0x2ad)]-0x1,_0x53de12;_0x2e233a>=0x0;_0x2e233a--)(_0x53de12=_0x25f108[_0x2e233a])&&(_0x3113b5=_0x53de12(_0x3113b5)||_0x3113b5);return _0x3113b5;},F=(_0x13c849,_0x232a5f)=>(_0x5ac9ac,_0x3bf1d1)=>_0x232a5f(_0x5ac9ac,_0x3bf1d1,_0x13c849);let _e=class extends _0x37986f{constructor(_0x1960f5,_0x1a64c5,_0x5c2bb1,_0x50c2b5,_0x14bc4d,_0x42ee82){const _0x61b07b=_0x183824;super(),this[_0x61b07b(0x192)]=_0x1960f5,this[_0x61b07b(0x2d0)]=_0x1a64c5,this['_collaborationUIEventService']=_0x5c2bb1,this[_0x61b07b(0x350)]=_0x50c2b5,this[_0x61b07b(0x2e5)]=_0x14bc4d,this['_localeService']=_0x42ee82,this['_setupBeforeClosingHandler'](),this['_initEvent']();}[_0x183824(0x26c)](){const _0x3bbe5c=_0x183824;this[_0x3bbe5c(0x1f4)](this[_0x3bbe5c(0x192)][_0x3bbe5c(0x26b)](()=>{const _0x51fcf2=_0x3bbe5c;if(this[_0x51fcf2(0x2d0)][_0x51fcf2(0x1c1)][_0x51fcf2(0x25c)])return this[_0x51fcf2(0x275)]['t']('collaboration.offline-data-not-saved');}));}[_0x183824(0x329)](){const _0x2ff2e1=_0x183824;this[_0x2ff2e1(0x1f4)](this[_0x2ff2e1(0x2a5)][_0x2ff2e1(0x264)][_0x2ff2e1(0x2dc)](_0x2a7785=>{const _0x2bd6a1=_0x2ff2e1;_0x2a7785['id']===_0x34d050[_0x2bd6a1(0x36c)]&&this[_0x2bd6a1(0x350)][_0x2bd6a1(0x18a)]({'type':_0x4eb2af['Warning'],'content':this['_localeService']['t'](_0x2bd6a1(0x194))}),_0x2a7785['id']===_0x34d050['CLOSE_ROOM']&&this[_0x2bd6a1(0x350)][_0x2bd6a1(0x18a)]({'type':_0x4eb2af['Warning'],'content':this[_0x2bd6a1(0x275)]['t'](_0x2bd6a1(0x1d7))}),_0x2a7785['id']===_0x34d050[_0x2bd6a1(0x1b7)]&&this[_0x2bd6a1(0x2e5)][_0x2bd6a1(0x18a)]({'title':this[_0x2bd6a1(0x275)]['t']('permission.title'),'content':this[_0x2bd6a1(0x275)]['t'](_0x2bd6a1(0x390)),'type':_0x2bd6a1(0x17b),'duration':0x0}),_0x2a7785['id']===_0x34d050[_0x2bd6a1(0x19d)]&&this[_0x2bd6a1(0x350)][_0x2bd6a1(0x18a)]({'type':_0x4eb2af[_0x2bd6a1(0x358)],'content':this[_0x2bd6a1(0x275)]['t'](_0x2bd6a1(0x1d7))+'('+_0x2a7785[_0x2bd6a1(0x2bd)]+')'}),_0x2a7785['id']===_0x34d050['JOIN_ROOM_FAILED']&&this[_0x2bd6a1(0x350)][_0x2bd6a1(0x18a)]({'type':_0x4eb2af['Warning'],'content':this[_0x2bd6a1(0x275)]['t'](_0x2a7785[_0x2bd6a1(0x2bd)]||'')}),_0x2a7785['id']===_0x34d050[_0x2bd6a1(0x14c)]&&this[_0x2bd6a1(0x350)]['show']({'type':_0x4eb2af['Warning'],'content':this['_localeService']['t']('session.will-retry')}),_0x2a7785['id']===_0x34d050['SOCKET_FAILED']&&this['_messageService']['show']({'type':_0x4eb2af['Error'],'content':this['_localeService']['t']('session.connection-failed')}),_0x2a7785['id']===_0x34d050[_0x2bd6a1(0x2ed)]&&this['_messageService'][_0x2bd6a1(0x18a)]({'type':_0x4eb2af[_0x2bd6a1(0x358)],'content':this[_0x2bd6a1(0x275)]['t'](_0x2bd6a1(0x312))});}));}};_e=cn([F(0x0,_0x14d125),F(0x1,_0x2e19a0),F(0x2,_0x2b5bcf(_0x528420)),F(0x3,_0x1024be),F(0x4,_0x4e66ae),F(0x5,_0x2b5bcf(_0x458508))],_e);var _n=Object['getOwnPropertyDescriptor'],ln=(_0xb2a1e9,_0x2d2d72,_0x456def,_0x110d6f)=>{for(var _0xdc3405=_0x110d6f>0x1?void 0x0:_0x110d6f?_n(_0x2d2d72,_0x456def):_0x2d2d72,_0x236941=_0xb2a1e9['length']-0x1,_0x3cf1e5;_0x236941>=0x0;_0x236941--)(_0x3cf1e5=_0xb2a1e9[_0x236941])&&(_0xdc3405=_0x3cf1e5(_0xdc3405)||_0xdc3405);return _0xdc3405;},ne=(_0x40b19d,_0x19eda7)=>(_0x59f225,_0x33c26a)=>_0x19eda7(_0x59f225,_0x33c26a,_0x40b19d);let le=class extends _0x37986f{constructor(_0x42a874,_0x972f33,_0x4fb599,_0x44e41f){const _0x48099f=_0x183824;super(),_(this,_0x48099f(0x220)),(this[_0x48099f(0x384)]=_0x42a874,this[_0x48099f(0x1af)]=_0x972f33,this[_0x48099f(0x213)]=_0x4fb599,this[_0x48099f(0x359)]=_0x44e41f,this[_0x48099f(0x193)]());}['_init'](){const _0x591edd=_0x183824;this[_0x591edd(0x2ac)](),this[_0x591edd(0x2db)](),this['_monkeyPatchLogService'](),this[_0x591edd(0x16a)]();}[_0x183824(0x16a)](){const _0x12334b=_0x183824;this['disposeWithMe'](this['_collaborationSessionService']['socket$'][_0x12334b(0x2dc)](_0x50a6de=>{const _0x2e508c=_0x12334b;this[_0x2e508c(0x220)]=_0x50a6de==null?void 0x0:_0x50a6de['memberID'];}));}[_0x183824(0x2ac)](){const _0x52ad32=_0x183824,_0x1b5c7e=_0x54eb4d=>{const _0xbc81ec=_0x3e21;var _0x30b82c;this['_uploadLog']('error',_0xbc81ec(0x29f)+_0x54eb4d[_0xbc81ec(0x1c3)]+'\x20at\x20'+_0x54eb4d['filename']+':'+_0x54eb4d[_0xbc81ec(0x21b)]+':'+_0x54eb4d[_0xbc81ec(0x1c0)]+'\x0a'+(((_0x30b82c=_0x54eb4d[_0xbc81ec(0x17b)])==null?void 0x0:_0x30b82c[_0xbc81ec(0x266)])||''));};window[_0x52ad32(0x22e)](_0x52ad32(0x17b),_0x1b5c7e),this[_0x52ad32(0x1f4)](()=>{const _0x16539a=_0x52ad32;window[_0x16539a(0x2e4)](_0x16539a(0x17b),_0x1b5c7e);});}[_0x183824(0x2db)](){const _0x104e17=_0x183824,_0x58430c=_0x289c34=>{const _0x28b225=_0x3e21;this['_uploadLog'](_0x28b225(0x17b),_0x28b225(0x292)+_0x289c34['reason']);};window['addEventListener'](_0x104e17(0x365),_0x58430c),this[_0x104e17(0x1f4)](()=>{const _0x141e66=_0x104e17;window[_0x141e66(0x2e4)](_0x141e66(0x365),_0x58430c);});}[_0x183824(0x268)](){const _0x48ea9c=_0x183824,_0x5dd205=this[_0x48ea9c(0x213)][_0x48ea9c(0x17b)]['bind'](this[_0x48ea9c(0x213)]);this['_logService'][_0x48ea9c(0x17b)]=(..._0x9a065d)=>{const _0x5ae5e8=_0x48ea9c,_0x395fe9=_0x9a065d['map'](_0x581551=>_0x581551 instanceof Error?_0x581551[_0x5ae5e8(0x1c3)]+'\x0a'+_0x581551['stack']:String(_0x581551))[_0x5ae5e8(0x1db)]('\x20');this[_0x5ae5e8(0x1cf)]('error',_0x5ae5e8(0x227)+_0x395fe9),_0x5dd205(..._0x9a065d);},this[_0x48ea9c(0x1f4)](()=>{const _0x4c33ed=_0x48ea9c;this[_0x4c33ed(0x213)][_0x4c33ed(0x17b)]=_0x5dd205;});}[_0x183824(0x1cf)](_0xbc56a4,_0x2f41be){const _0x360373=_0x183824;try{const _0x4dd2bf={'userId':this[_0x360373(0x220)],'logLabel':_0xbc56a4,'content':_0x2f41be};this[_0x360373(0x1af)][_0x360373(0x176)]('/universer-api/frontend/logs',{'body':_0x4dd2bf})[_0x360373(0x307)](()=>{});}catch{}}};le=ln([ne(0x0,_0x2b5bcf(_0x138ef1)),ne(0x1,_0x2b5bcf(_0x2e6660)),ne(0x2,_0x2c105d),ne(0x3,_0x2b5bcf(_0x559838))],le);const hn=_0x183824(0x386),_t={};var un=Object[_0x183824(0x32e)],dn=(_0x3d6b3c,_0x1fcba8,_0x19160d,_0x484e20)=>{const _0x54a282=_0x183824;for(var _0x157d76=_0x484e20>0x1?void 0x0:_0x484e20?un(_0x1fcba8,_0x19160d):_0x1fcba8,_0x557bdc=_0x3d6b3c[_0x54a282(0x2ad)]-0x1,_0x4cefbd;_0x557bdc>=0x0;_0x557bdc--)(_0x4cefbd=_0x3d6b3c[_0x557bdc])&&(_0x157d76=_0x4cefbd(_0x157d76)||_0x157d76);return _0x157d76;},lt=(_0x5e924b,_0x15480b)=>(_0x28a9ac,_0x12a3bf)=>_0x15480b(_0x28a9ac,_0x12a3bf,_0x5e924b);let he=class{constructor(_0x5d62b4,_0x494e59){const _0x26a4d7=_0x183824;this[_0x26a4d7(0x27b)]=_0x5d62b4,this[_0x26a4d7(0x22d)]=_0x494e59;}[_0x183824(0x2df)](_0x2e51c5){const _0x580da7=_0x183824;this[_0x580da7(0x309)](_0x2e51c5),this[_0x580da7(0x225)](_0x2e51c5);}['transformRemoteChangeset'](_0x59368f){const _0x10ea5f=_0x183824,{unitID:_0x2d21b6}=_0x59368f,_0x4d8562=this[_0x10ea5f(0x22d)][_0x10ea5f(0x20b)](_0x2d21b6)[_0x10ea5f(0x2dd)](_0xbd1bcc),{redoCache:_0xdade00}=_0x4d8562['getUndoRedoMutationParamsCache']();if(_0xdade00[_0x10ea5f(0x2ad)]===0x0)return _0x59368f;let _0x1ce6e2=_0x4e99de['deepClone'](_0x59368f[_0x10ea5f(0x2ec)][0x0]);for(let _0x3b4f8e=0x0;_0x3b4f8e<_0xdade00['length'];_0x3b4f8e++){const _0x2be705={'id':_0x10ea5f(0x261),'params':{..._0xdade00[_0x3b4f8e]}},_0x3261c7=this[_0x10ea5f(0x27b)]['transformMutation'](_0x1ce6e2,_0x2be705,!0x1);if(_0x5b0c3f(_0x3261c7))throw _0x3261c7[_0x10ea5f(0x17b)];_0x1ce6e2=_0x3261c7[_0x10ea5f(0x2a2)];}return{..._0x4e99de[_0x10ea5f(0x371)](_0x59368f),'mutations':[_0x1ce6e2]};}[_0x183824(0x309)](_0x4c3d4b){const _0x2d56b7=_0x183824,{unitID:_0x5f26ff}=_0x4c3d4b,_0x46dad1=this[_0x2d56b7(0x22d)][_0x2d56b7(0x20b)](_0x5f26ff)['with'](_0xbd1bcc),{undoCache:_0x252eb9,redoCache:_0x306b70}=_0x46dad1[_0x2d56b7(0x22f)]();if(_0x252eb9['length']===0x0||_0x306b70['length']===0x0)return;const _0x4413e2=[],_0x6dcf4f=[];let _0x554e3e=_0x4e99de[_0x2d56b7(0x371)](_0x4c3d4b[_0x2d56b7(0x2ec)][0x0]),_0x3e9b12=_0x4e99de['deepClone'](_0x4c3d4b[_0x2d56b7(0x2ec)][0x0]);for(let _0x1c1589=_0x252eb9[_0x2d56b7(0x2ad)]-0x1;_0x1c1589>=0x0;_0x1c1589--){const _0x4b3410={'id':'doc.mutation.rich-text-editing','params':{..._0x252eb9[_0x1c1589]}},_0x4e73d9={'id':_0x2d56b7(0x261),'params':{..._0x306b70[_0x1c1589]}},_0x3071c4=this[_0x2d56b7(0x27b)][_0x2d56b7(0x155)](_0x554e3e,_0x4b3410,!0x1),_0xae01f1=this[_0x2d56b7(0x27b)][_0x2d56b7(0x155)](_0x3e9b12,_0x4e73d9,!0x1);if(_0x5b0c3f(_0x3071c4))throw _0x3071c4[_0x2d56b7(0x17b)];if(_0x5b0c3f(_0xae01f1))throw _0xae01f1[_0x2d56b7(0x17b)];_0x4413e2[_0x2d56b7(0x157)](_0x3071c4[_0x2d56b7(0x24f)][_0x2d56b7(0x2e7)]),_0x6dcf4f[_0x2d56b7(0x157)](_0xae01f1[_0x2d56b7(0x24f)][_0x2d56b7(0x2e7)]),_0x554e3e=_0x3071c4['m1Prime'],_0x3e9b12=_0xae01f1[_0x2d56b7(0x2a2)];}_0x46dad1[_0x2d56b7(0x2f7)]({'undoCache':_0x4413e2,'redoCache':_0x6dcf4f});}[_0x183824(0x225)](_0x3ce3ef){const _0x2cc25d=_0x183824,{unitID:_0x17eaa5}=_0x3ce3ef,_0x579c8e=this[_0x2cc25d(0x22d)][_0x2cc25d(0x20b)](_0x17eaa5)[_0x2cc25d(0x2dd)](_0xbd1bcc),_0x505030=_0x579c8e[_0x2cc25d(0x219)]();if(_0x505030==null)return;const _0x19cbfd=[{'id':_0x2cc25d(0x261),'params':{'unitId':_0x3ce3ef[_0x2cc25d(0x36a)],'actions':null,'textRanges':[_0x505030]}}],_0x2780de=this[_0x2cc25d(0x27b)][_0x2cc25d(0x305)](_0x3ce3ef,_0x19cbfd);if(!_0x44a5c9(_0x2780de))throw _0x2780de[_0x2cc25d(0x17b)];const _0x2d878e=_0x2780de[_0x2cc25d(0x24f)][0x0]['params'][_0x2cc25d(0x2ef)];Array[_0x2cc25d(0x17c)](_0x2d878e)&&_0x2d878e[_0x2cc25d(0x2ad)]&&_0x579c8e[_0x2cc25d(0x37a)](_0x2d878e[0x0]);}};he=dn([lt(0x0,_0x869e11),lt(0x1,_0x34ab27)],he);var Sn=Object[_0x183824(0x32e)],In=(_0x4f63bc,_0x2028d0,_0x22e1c9,_0x808c11)=>{const _0x543cb3=_0x183824;for(var _0xdd175c=_0x808c11>0x1?void 0x0:_0x808c11?Sn(_0x2028d0,_0x22e1c9):_0x2028d0,_0x112ee8=_0x4f63bc[_0x543cb3(0x2ad)]-0x1,_0x34b8d1;_0x112ee8>=0x0;_0x112ee8--)(_0x34b8d1=_0x4f63bc[_0x112ee8])&&(_0xdd175c=_0x34b8d1(_0xdd175c)||_0xdd175c);return _0xdd175c;},Le=(_0xf71681,_0x3f99c6)=>(_0x361b68,_0x8af45d)=>_0x3f99c6(_0x361b68,_0x8af45d,_0xf71681);let ue=class{constructor(_0x558a88,_0x3dad2e,_0x448749){const _0x3386fe=_0x183824;this[_0x3386fe(0x384)]=_0x558a88,this[_0x3386fe(0x27b)]=_0x3dad2e,this['_docStateChangeManagerService']=_0x448749;}[_0x183824(0x2c7)](_0x5055f3){const _0x4e9a00=_0x183824;this[_0x4e9a00(0x1c4)](_0x5055f3);}[_0x183824(0x21f)](_0x1900be){const _0xbbe9db=_0x183824,{unitID:_0x4f409d}=_0x1900be,{collaboration:_0x1248c7}=this['_docStateChangeManagerService'][_0xbbe9db(0x35c)](_0x4f409d);if(_0x1248c7[_0xbbe9db(0x2ad)]===0x0)return _0x1900be;let _0x2c4e03=_0x4e99de['deepClone'](_0x1900be[_0xbbe9db(0x2ec)][0x0]);for(let _0x40e772=0x0;_0x40e772<_0x1248c7['length'];_0x40e772++){const _0x662dbb={'id':_0xbbe9db(0x261),'params':{'unitId':_0x1248c7[_0x40e772]['unitId'],..._0x1248c7[_0x40e772][_0xbbe9db(0x2f0)]}},_0x4c0fcb=this[_0xbbe9db(0x27b)][_0xbbe9db(0x155)](_0x2c4e03,_0x662dbb,!0x1);if(_0x5b0c3f(_0x4c0fcb))throw _0x4c0fcb[_0xbbe9db(0x17b)];_0x2c4e03=_0x4c0fcb[_0xbbe9db(0x2a2)];}return{..._0x4e99de[_0xbbe9db(0x371)](_0x1900be),'mutations':[_0x2c4e03]};}[_0x183824(0x1c4)](_0x37570c){const _0x248569=_0x183824,{unitID:_0x49ded3}=_0x37570c,{history:_0x3e8eaf,collaboration:_0x95a890}=this[_0x248569(0x1f7)][_0x248569(0x35c)](_0x49ded3);if(_0x3e8eaf[_0x248569(0x2ad)]===0x0&&_0x95a890['length']===0x0)return;const _0x47bfa1=[],_0x5cdbcb=[];let _0x29c066=_0x4e99de['deepClone'](_0x37570c[_0x248569(0x2ec)][0x0]),_0x4bec0c=_0x4e99de['deepClone'](_0x37570c[_0x248569(0x2ec)][0x0]);for(let _0x82581d=_0x3e8eaf[_0x248569(0x2ad)]-0x1;_0x82581d>=0x0;_0x82581d--){const _0x4b34b2={'id':_0x248569(0x261),'params':{'unitId':_0x3e8eaf[_0x82581d][_0x248569(0x14b)],..._0x3e8eaf[_0x82581d][_0x248569(0x342)]}},_0xb374ac={'id':_0x248569(0x261),'params':{'unitId':_0x3e8eaf[_0x82581d]['unitId'],..._0x3e8eaf[_0x82581d][_0x248569(0x2f0)]}},_0x52b7a6=this[_0x248569(0x27b)][_0x248569(0x155)](_0x29c066,_0x4b34b2,!0x1),_0x51a9e6=this[_0x248569(0x27b)][_0x248569(0x155)](_0x4bec0c,_0xb374ac,!0x1);if(_0x5b0c3f(_0x52b7a6))throw _0x52b7a6[_0x248569(0x17b)];if(_0x5b0c3f(_0x51a9e6))throw _0x51a9e6[_0x248569(0x17b)];_0x47bfa1[_0x248569(0x157)]({..._0x3e8eaf[_0x82581d],'undoState':_0x52b7a6[_0x248569(0x24f)][_0x248569(0x2e7)],'redoState':_0x51a9e6['m2Prime'][_0x248569(0x2e7)]}),_0x29c066=_0x52b7a6[_0x248569(0x2a2)],_0x4bec0c=_0x51a9e6[_0x248569(0x2a2)];}_0x29c066=_0x4e99de[_0x248569(0x371)](_0x37570c['mutations'][0x0]),_0x4bec0c=_0x4e99de[_0x248569(0x371)](_0x37570c[_0x248569(0x2ec)][0x0]);for(let _0x360cfb=_0x95a890[_0x248569(0x2ad)]-0x1;_0x360cfb>=0x0;_0x360cfb--){const _0x51152e={'id':_0x248569(0x261),'params':{'unitId':_0x95a890[_0x360cfb][_0x248569(0x14b)],..._0x95a890[_0x360cfb]['undoState']}},_0x1fa8ab={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x95a890[_0x360cfb][_0x248569(0x14b)],..._0x95a890[_0x360cfb][_0x248569(0x2f0)]}},_0x2fe8aa=this[_0x248569(0x27b)][_0x248569(0x155)](_0x29c066,_0x51152e,!0x1),_0x385eb0=this[_0x248569(0x27b)][_0x248569(0x155)](_0x4bec0c,_0x1fa8ab,!0x1);if(_0x5b0c3f(_0x2fe8aa))throw _0x2fe8aa['error'];if(_0x5b0c3f(_0x385eb0))throw _0x385eb0[_0x248569(0x17b)];_0x5cdbcb[_0x248569(0x157)]({..._0x95a890[_0x360cfb],'undoState':_0x2fe8aa['m2Prime'][_0x248569(0x2e7)],'redoState':_0x385eb0['m2Prime']['params']}),_0x29c066=_0x2fe8aa[_0x248569(0x2a2)],_0x4bec0c=_0x385eb0[_0x248569(0x2a2)];}this['_docStateChangeManagerService']['setStateCache'](_0x49ded3,{'history':_0x47bfa1,'collaboration':_0x5cdbcb});}};ue=In([Le(0x0,_0x2b5bcf(_0x138ef1)),Le(0x1,_0x869e11),Le(0x2,_0x2b5bcf(_0x19214e))],ue);var mn=Object[_0x183824(0x32e)],fn=(_0x35defe,_0x121e38,_0x10a219,_0x237ecc)=>{const _0x5e05bf=_0x183824;for(var _0x53b8b1=_0x237ecc>0x1?void 0x0:_0x237ecc?mn(_0x121e38,_0x10a219):_0x121e38,_0x37c26e=_0x35defe[_0x5e05bf(0x2ad)]-0x1,_0x54cef5;_0x37c26e>=0x0;_0x37c26e--)(_0x54cef5=_0x35defe[_0x37c26e])&&(_0x53b8b1=_0x54cef5(_0x53b8b1)||_0x53b8b1);return _0x53b8b1;},ht=(_0x355deb,_0x384b32)=>(_0x3613d3,_0x165c51)=>_0x384b32(_0x3613d3,_0x165c51,_0x355deb);let de=class{constructor(_0x2cfa31,_0x4ed11c){const _0x202e30=_0x183824;this[_0x202e30(0x384)]=_0x2cfa31,this[_0x202e30(0x27b)]=_0x4ed11c;}[_0x183824(0x1f9)](_0xd3e10a){const _0x11c47a=_0x183824;var _0x1697ac;const _0x468efb=this[_0x11c47a(0x384)]['get'](_0x151bee),_0x3833ce=(_0x1697ac=_0x468efb[_0x11c47a(0x199)]())!=null?_0x1697ac:[];if(_0x3833ce[_0x11c47a(0x2ad)]===0x0)return;const _0x4a5157=_0xd3e10a['unitID'],_0x4bfcf8=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4a5157,'actions':null,'textRanges':_0x3833ce}}],_0xa4c070=this[_0x11c47a(0x27b)]['transformMutationsWithChangeset'](_0xd3e10a,_0x4bfcf8);if(!_0x44a5c9(_0xa4c070))throw _0xa4c070['error'];const _0x254b35=_0xa4c070[_0x11c47a(0x24f)][0x0][_0x11c47a(0x2e7)]['textRanges'];Array[_0x11c47a(0x17c)](_0x254b35)&&_0x254b35[_0x11c47a(0x2ad)]&&_0x468efb['replaceDocRanges'](_0x254b35,{'unitId':_0x4a5157,'subUnitId':_0x4a5157},!0x1);}};de=fn([ht(0x0,_0x2b5bcf(_0x138ef1)),ht(0x1,_0x869e11)],de);var gn=Object[_0x183824(0x32e)],En=(_0x529e48,_0x23d4f1,_0x56b8c6,_0x420242)=>{const _0x5188a0=_0x183824;for(var _0x4b6d02=_0x420242>0x1?void 0x0:_0x420242?gn(_0x23d4f1,_0x56b8c6):_0x23d4f1,_0x33bdbb=_0x529e48[_0x5188a0(0x2ad)]-0x1,_0x64ef4c;_0x33bdbb>=0x0;_0x33bdbb--)(_0x64ef4c=_0x529e48[_0x33bdbb])&&(_0x4b6d02=_0x64ef4c(_0x4b6d02)||_0x4b6d02);return _0x4b6d02;},U=(_0x55eab9,_0x1d4ccd)=>(_0x4a0345,_0x34f851)=>_0x1d4ccd(_0x4a0345,_0x34f851,_0x55eab9);let Se=class extends _0x37986f{constructor(_0x2400c8,_0x8c06ac,_0xf79696,_0x5dbecf,_0x13884b,_0x18592a,_0x429016,_0x5d23f7){const _0x3174b8=_0x183824;super(),_(this,'_status$',new _0x58e817(_0x38fa40['NOT_COLLAB'])),(this[_0x3174b8(0x1f7)]=_0x2400c8,this[_0x3174b8(0x1ec)]=_0x8c06ac,this[_0x3174b8(0x1e9)]=_0xf79696,this[_0x3174b8(0x1cd)]=_0x5dbecf,this[_0x3174b8(0x28d)]=_0x13884b,this['_docSyncEditingCollabCursorService']=_0x18592a,this[_0x3174b8(0x350)]=_0x429016,this[_0x3174b8(0x275)]=_0x5d23f7,this[_0x3174b8(0x1d8)]());}[_0x183824(0x1d8)](){const _0x2b0a27=_0x183824;this[_0x2b0a27(0x1f4)](this[_0x2b0a27(0x1ec)][_0x2b0a27(0x2ab)][_0x2b0a27(0x2dc)](_0x4de352=>{const _0x4401db=_0x2b0a27,_0x4dad19=this[_0x4401db(0x1f7)][_0x4401db(0x17e)][_0x4401db(0x2dc)](_0x124812=>{const _0x25a76e=_0x4401db;if(_0x124812==null)return;const {unitId:_0x3dabe2,redoState:_0x3c2b90,commandId:_0x584340}=_0x124812;if(_0x3dabe2!==_0x4de352[_0x25a76e(0x36a)])return;const _0x19363e={'id':_0x584340,'type':_0x1de221[_0x25a76e(0x367)],'params':{'unitId':_0x3dabe2,'actions':_0x3c2b90[_0x25a76e(0x35d)],'textRanges':null}};_0x4de352[_0x25a76e(0x2da)](_0x19363e);});if(_0x4de352[_0x4401db(0x1f4)](_0x4dad19),_0x4de352 instanceof _0x2b0221){const _0x13bdb={'onTransformIME':_0x2312a8=>this[_0x4401db(0x1e9)]['transformIMECache'](_0x2312a8),'onTransformState':_0x511499=>this[_0x4401db(0x1cd)][_0x4401db(0x2c7)](_0x511499),'onTransformSelections':_0x5997aa=>this[_0x4401db(0x28d)][_0x4401db(0x1f9)](_0x5997aa),'onSyncEditingCollabCursor':_0x37898f=>this[_0x4401db(0x19e)][_0x4401db(0x37e)](_0x37898f),'onTransformRemoteChangesetByIMECache':_0x5dc7cc=>this[_0x4401db(0x1e9)][_0x4401db(0x21f)](_0x5dc7cc),'onTransformRemoteChangesetByStateCache':_0x3eaa9c=>this[_0x4401db(0x1cd)]['transformRemoteChangeset'](_0x3eaa9c)};_0x4de352[_0x4401db(0x25d)](_0x13bdb);}}));}};Se=En([U(0x0,_0x2b5bcf(_0x19214e)),U(0x1,_0x2b5bcf(_0x4a450b)),U(0x2,_0x2b5bcf(he)),U(0x3,_0x2b5bcf(ue)),U(0x4,_0x2b5bcf(de)),U(0x5,_0x2b5bcf(ze)),U(0x6,_0x1024be),U(0x7,_0x2b5bcf(_0x458508))],Se);var Z=(_0x3d6d42=>(_0x3d6d42[_0x3d6d42[_0x183824(0x1e2)]=0x0]='UNDEFINED',_0x3d6d42[_0x3d6d42['OK']=0x1]='OK',_0x3d6d42[_0x3d6d42[_0x183824(0x373)]=0x2]=_0x183824(0x373),_0x3d6d42[_0x3d6d42[_0x183824(0x1b7)]=0x3]='PERMISSION_DENIED',_0x3d6d42[_0x3d6d42[_0x183824(0x32f)]=0x4]=_0x183824(0x32f),_0x3d6d42[_0x3d6d42[_0x183824(0x17a)]=0x5]=_0x183824(0x17a),_0x3d6d42[_0x3d6d42[_0x183824(0x287)]=0x6]=_0x183824(0x287),_0x3d6d42[_0x3d6d42['INVALID_ARGUMENT']=0x7]=_0x183824(0x1fc),_0x3d6d42[_0x3d6d42['TOO_MANY_REQUESTS']=0x8]='TOO_MANY_REQUESTS',_0x3d6d42[_0x3d6d42[_0x183824(0x1fa)]=0x9]=_0x183824(0x1fa),_0x3d6d42[_0x3d6d42['LOGIN_FAILED']=0xa]=_0x183824(0x1ee),_0x3d6d42[_0x3d6d42[_0x183824(0x196)]=0xb]=_0x183824(0x196),_0x3d6d42[_0x3d6d42['MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xc]=_0x183824(0x2fe),_0x3d6d42[_0x3d6d42[_0x183824(0x1b6)]=0xd]=_0x183824(0x1b6),_0x3d6d42[_0x3d6d42[_0x183824(0x1ed)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x3d6d42[_0x3d6d42[_0x183824(0x16b)]=0xf]=_0x183824(0x16b),_0x3d6d42[_0x3d6d42[_0x183824(0x267)]=0x10]=_0x183824(0x267),_0x3d6d42[_0x3d6d42['CURRENT_STATUS_CANNOT_OPERATE']=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x3d6d42[_0x3d6d42[_0x183824(0x2b5)]=0x65]=_0x183824(0x2b5),_0x3d6d42[_0x3d6d42[_0x183824(0x2bc)]=0xc9]='USER_NOT_FOUND',_0x3d6d42[_0x3d6d42[_0x183824(0x19b)]=0xca]=_0x183824(0x19b),_0x3d6d42[_0x3d6d42[_0x183824(0x38e)]=0x1389]=_0x183824(0x38e),_0x3d6d42[_0x3d6d42[_0x183824(0x31e)]=0x1771]=_0x183824(0x31e),_0x3d6d42[_0x3d6d42['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x183824(0x376),_0x3d6d42[_0x3d6d42[_0x183824(0x1ce)]=0x1773]=_0x183824(0x1ce),_0x3d6d42[_0x3d6d42['APPLY_REJECT']=0x1b59]=_0x183824(0x25f),_0x3d6d42[_0x3d6d42[_0x183824(0x29c)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x3d6d42[_0x3d6d42[_0x183824(0x2c4)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x3d6d42[_0x3d6d42[_0x183824(0x2de)]=0x1b5c]=_0x183824(0x2de),_0x3d6d42[_0x3d6d42[_0x183824(0x2fa)]=0x1b5d]=_0x183824(0x2fa),_0x3d6d42[_0x3d6d42['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x183824(0x31a),_0x3d6d42[_0x3d6d42['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x183824(0x33f),_0x3d6d42[_0x3d6d42[_0x183824(0x395)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x3d6d42[_0x3d6d42[_0x183824(0x161)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x3d6d42[_0x3d6d42[_0x183824(0x1ca)]=0x232c]=_0x183824(0x1ca),_0x3d6d42[_0x3d6d42[_0x183824(0x284)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x3d6d42[_0x3d6d42['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x183824(0x295),_0x3d6d42[_0x3d6d42[_0x183824(0x1d5)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x3d6d42[_0x3d6d42[_0x183824(0x235)]=0x2713]=_0x183824(0x235),_0x3d6d42[_0x3d6d42[_0x183824(0x385)]=0x2714]=_0x183824(0x385),_0x3d6d42[_0x3d6d42[_0x183824(0x1e5)]=0x271a]=_0x183824(0x1e5),_0x3d6d42[_0x3d6d42[_0x183824(0x2cf)]=0x271b]=_0x183824(0x2cf),_0x3d6d42[_0x3d6d42[_0x183824(0x234)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x3d6d42[_0x3d6d42[_0x183824(0x1d2)]=0x271d]=_0x183824(0x1d2),_0x3d6d42[_0x3d6d42[_0x183824(0x1c9)]=0x271e]=_0x183824(0x1c9),_0x3d6d42[_0x3d6d42[_0x183824(0x255)]=0x271f]='YUUMI_AI_RUN_FAILED',_0x3d6d42[_0x3d6d42[_0x183824(0x1b8)]=0x2720]=_0x183824(0x1b8),_0x3d6d42[_0x3d6d42[_0x183824(0x2c0)]=0x2af9]=_0x183824(0x2c0),_0x3d6d42[_0x3d6d42[_0x183824(0x1dc)]=0x2ee1]=_0x183824(0x1dc),_0x3d6d42[_0x3d6d42[_0x183824(0x34e)]=0x2ee2]='INVALID_INVITE_CODE',_0x3d6d42[_0x3d6d42[_0x183824(0x37d)]=0x2ee3]=_0x183824(0x37d),_0x3d6d42[_0x3d6d42['USER_NOT_INVITED_CODE']=0x2ee4]=_0x183824(0x387),_0x3d6d42[_0x3d6d42['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x183824(0x308),_0x3d6d42[_0x3d6d42[_0x183824(0x216)]=0x32c9]=_0x183824(0x216),_0x3d6d42[_0x3d6d42[_0x183824(0x165)]=0x32ca]=_0x183824(0x165),_0x3d6d42[_0x3d6d42['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x183824(0x1b4),_0x3d6d42[_0x3d6d42[_0x183824(0x150)]=0x36b1]=_0x183824(0x150),_0x3d6d42[_0x3d6d42['ENTITLE_UPDOWN_GRADE_NOT_SUPPORT']=0x36b2]='ENTITLE_UPDOWN_GRADE_NOT_SUPPORT',_0x3d6d42[_0x3d6d42[_0x183824(0x397)]=0x36b3]='ENTITLE_DUP_SUBSCRIPTION',_0x3d6d42[_0x3d6d42[_0x183824(0x39a)]=0x36b4]=_0x183824(0x39a),_0x3d6d42[_0x3d6d42[_0x183824(0x247)]=0x36b5]=_0x183824(0x247),_0x3d6d42[_0x3d6d42[_0x183824(0x171)]=0x36b6]='ENTITLE_COUPON_EXPIRED',_0x3d6d42[_0x3d6d42['ENTITLE_COUPON_USED_UP']=0x36b7]=_0x183824(0x26f),_0x3d6d42[_0x3d6d42[_0x183824(0x351)]=0x36b8]=_0x183824(0x351),_0x3d6d42[_0x3d6d42[_0x183824(0x2d2)]=0x3715]=_0x183824(0x2d2),_0x3d6d42[_0x3d6d42[_0x183824(0x23e)]=0x3716]=_0x183824(0x23e),_0x3d6d42[_0x3d6d42[_0x183824(0x2c8)]=0x3717]=_0x183824(0x2c8),_0x3d6d42[_0x3d6d42['ENTITLE_NEED_BILLING_ADDRESS']=0x37dd]=_0x183824(0x1a9),_0x3d6d42[_0x3d6d42[_0x183824(0x158)]=0x3a99]=_0x183824(0x158),_0x3d6d42[_0x3d6d42[_0x183824(0x29b)]=0x3a9a]=_0x183824(0x29b),_0x3d6d42[_0x3d6d42[_0x183824(0x1cb)]=0x3a9b]=_0x183824(0x1cb),_0x3d6d42[_0x3d6d42[_0x183824(0x34b)]=0x3a9c]=_0x183824(0x34b),_0x3d6d42[_0x3d6d42['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]=_0x183824(0x14f),_0x3d6d42[_0x3d6d42['REDEMPTION_USER_REDEEM_TIMES_EXCEED']=0x3a9e]=_0x183824(0x354),_0x3d6d42[_0x3d6d42[_0x183824(0x330)]=0x3a9f]=_0x183824(0x330),_0x3d6d42[_0x3d6d42[_0x183824(0x1b0)]=0x3e81]=_0x183824(0x1b0),_0x3d6d42[_0x3d6d42[_0x183824(0x293)]=-0x1]=_0x183824(0x293),_0x3d6d42))(Z||{});function vn(_0x4f6210){const _0x4618e8=_0x183824;var _0x575d9f,_0x323327;const _0x2ce024=(_0x575d9f=_0x4f6210['stageInfo'])==null?void 0x0:_0x575d9f[_0x4618e8(0x356)],_0x22b63c=((_0x323327=_0x4f6210['stageInfo'])==null?void 0x0:_0x323327[_0x4618e8(0x204)])||0x0;return _0x2ce024===_0x426bd1[_0x4618e8(0x20d)]&&_0x22b63c>0x0;}function pn(_0x2bc3e8){const _0x27a466=_0x183824;return _0x2bc3e8[_0x27a466(0x2ce)]===_0x3c1877['SUCCESS'];}var On=Object['getOwnPropertyDescriptor'],Tn=(_0x4f2029,_0xa6b22e,_0x3fd6fa,_0x18113e)=>{for(var _0x11a529=_0x18113e>0x1?void 0x0:_0x18113e?On(_0xa6b22e,_0x3fd6fa):_0xa6b22e,_0x255c42=_0x4f2029['length']-0x1,_0x5d8aae;_0x255c42>=0x0;_0x255c42--)(_0x5d8aae=_0x4f2029[_0x255c42])&&(_0x11a529=_0x5d8aae(_0x11a529)||_0x11a529);return _0x11a529;},P=(_0x2b7bf9,_0x224e34)=>(_0x2fa5e6,_0x2136ca)=>_0x224e34(_0x2fa5e6,_0x2136ca,_0x2b7bf9);const Cn=_0x183824(0x383),Rn=_0x183824(0x238),Dn=_0x183824(0x34c);let Ie=class extends _0x37986f{constructor(_0x5cdadc,_0x1d8a5e,_0x2adde9,_0x157d4e,_0x2b1925,_0x4a226c,_0x282f0b){const _0x1396f4=_0x183824;super(),_(this,_0x1396f4(0x341),null),_(this,_0x1396f4(0x347),0x0),_(this,_0x1396f4(0x1f1),0x0),_(this,'_taskIds',[]),_(this,_0x1396f4(0x218),0x0),(this[_0x1396f4(0x350)]=_0x5cdadc,this['_commandService']=_0x1d8a5e,this[_0x1396f4(0x2a7)]=_0x2adde9,this['_httpService']=_0x157d4e,this[_0x1396f4(0x21a)]=_0x2b1925,this[_0x1396f4(0x213)]=_0x4a226c,this['_localeService']=_0x282f0b,this['_initCommandInterceptor']());}[_0x183824(0x2a3)](){const _0x1b4b81=_0x183824;this[_0x1b4b81(0x1f4)](this[_0x1b4b81(0x368)][_0x1b4b81(0x2c3)]((_0x4d8b9a,_0x12deb3)=>{const _0x1851f1=_0x1b4b81;var _0x47a518;if(_0x4d8b9a['id']!==_0x263bc7['id'])return;const _0x18f0c0=_0x4d8b9a[_0x1851f1(0x2e7)];if(!this[_0x1851f1(0x236)]((_0x47a518=_0x18f0c0[_0x1851f1(0x14a)])!=null?_0x47a518:[]))return;if(!this[_0x1851f1(0x33b)]())throw this[_0x1851f1(0x182)](_0x4d8b9a,_0x12deb3),this[_0x1851f1(0x1a1)](),new _0x2face4();})),this['disposeWithMe'](this[_0x1b4b81(0x368)][_0x1b4b81(0x1f3)]((_0xc5cdcb,_0x55f55b)=>{const _0xd5658f=_0x1b4b81;if(_0xc5cdcb['id']!==_0x14d924['id'])return;const _0x575eb8=_0xc5cdcb[_0xd5658f(0x2e7)];if(vn(_0x575eb8)){const _0x2ea701=_0xdf4fd1();this['_taskIds'][_0xd5658f(0x320)](_0x2ea701),this[_0xd5658f(0x1a7)](_0x2ea701);}else{if(pn(_0x575eb8)&&this[_0xd5658f(0x319)][_0xd5658f(0x2ad)]>0x0){const _0x13e2b6=this['_taskIds']['shift']();this[_0xd5658f(0x201)](_0x13e2b6);}}}));}[_0x183824(0x2e6)](){const _0x5916c4=_0x183824;super['dispose'](),this[_0x5916c4(0x2c5)](),this[_0x5916c4(0x319)]=[],this[_0x5916c4(0x1f1)]=0x0,this[_0x5916c4(0x347)]=0x0,this[_0x5916c4(0x218)]=0x0;}async['_checkAndWaitForCalculationPermission'](_0x5bf0f5,_0x69765f){const _0x16bd6d=_0x183824;for(let _0x1541bb=0x0;_0x1541bb<0x1e;_0x1541bb++)try{if(await this[_0x16bd6d(0x1bc)](),this[_0x16bd6d(0x33b)]()){this[_0x16bd6d(0x1bb)](_0x5bf0f5,_0x69765f),this[_0x16bd6d(0x350)][_0x16bd6d(0x18a)]({'content':this[_0x16bd6d(0x275)]['t'](_0x16bd6d(0x1e8)),'type':_0x4eb2af[_0x16bd6d(0x379)]});return;}await new Promise(_0x563b9e=>{const _0x2390e4=_0x16bd6d;this[_0x2390e4(0x341)]=window[_0x2390e4(0x316)](_0x563b9e,0x3e8);});}catch(_0x53942c){this[_0x16bd6d(0x213)][_0x16bd6d(0x17b)](_0x53942c);}this['_messageService'][_0x16bd6d(0x18a)]({'content':this[_0x16bd6d(0x275)]['t']('formula.calculation.unable'),'type':_0x4eb2af[_0x16bd6d(0x358)]});}['_applyCommand'](_0x28706d,_0x21213b){const _0x1181f7=_0x183824;try{this[_0x1181f7(0x368)]['executeCommand'](_0x28706d['id'],_0x28706d['params'],_0x21213b);}catch(_0x115491){this[_0x1181f7(0x213)][_0x1181f7(0x17b)](_0x115491);}}[_0x183824(0x180)](_0x1f71f7,_0x5b5708){const _0x23611d=_0x183824;_0x5b5708<this[_0x23611d(0x218)]||(this[_0x23611d(0x218)]=_0x5b5708,this[_0x23611d(0x347)]=Number['parseInt'](_0x1f71f7[_0x23611d(0x378)]),this[_0x23611d(0x1f1)]=Number[_0x23611d(0x2b7)](_0x1f71f7[_0x23611d(0x2f5)]));}async[_0x183824(0x1a7)](_0x41f29c){const _0x7cefa2=_0x183824;var _0x3ff0c2,_0xa2b673;const _0x1c79ff=Date[_0x7cefa2(0x251)]();try{const _0x97f1dc=((_0x3ff0c2=this[_0x7cefa2(0x2a7)]['getConfig'](_0x68d877))==null?void 0x0:_0x3ff0c2['startFormulaLimitUrl'])||Rn,_0x54e592=(await this[_0x7cefa2(0x1af)]['post'](_0x97f1dc,{'body':JSON[_0x7cefa2(0x37b)]({'taskId':_0x41f29c})}))[_0x7cefa2(0x374)];if(((_0xa2b673=_0x54e592[_0x7cefa2(0x17b)])==null?void 0x0:_0xa2b673[_0x7cefa2(0x2cd)])!==Z['OK'])return;this[_0x7cefa2(0x180)](_0x54e592[_0x7cefa2(0x1c8)],_0x1c79ff);}catch(_0x2b2bb3){this[_0x7cefa2(0x213)][_0x7cefa2(0x17b)](_0x2b2bb3);}}async[_0x183824(0x1bc)](_0x1221e3){const _0xdd557a=_0x183824;var _0x17efef,_0x5c08b6;const _0xa5da90=Date[_0xdd557a(0x251)]();try{const _0x2b5185=((_0x17efef=this[_0xdd557a(0x2a7)][_0xdd557a(0x285)](_0x68d877))==null?void 0x0:_0x17efef[_0xdd557a(0x2f6)])||Cn,_0xb6862c=_0x1221e3?_0x2b5185+'?taskId='+encodeURIComponent(_0x1221e3):_0x2b5185,_0x286519=(await this[_0xdd557a(0x1af)]['get'](_0xb6862c))[_0xdd557a(0x374)];if(((_0x5c08b6=_0x286519[_0xdd557a(0x17b)])==null?void 0x0:_0x5c08b6[_0xdd557a(0x2cd)])!==Z['OK'])return;this[_0xdd557a(0x180)](_0x286519['limitInfo'],_0xa5da90);}catch(_0x84aa58){this[_0xdd557a(0x213)][_0xdd557a(0x17b)](_0x84aa58);}}async[_0x183824(0x201)](_0x5e0002){const _0x1488e2=_0x183824;var _0x6b2510,_0x2c5d48;const _0x20e068=Date[_0x1488e2(0x251)]();try{const _0x1b27a5=((_0x6b2510=this[_0x1488e2(0x2a7)][_0x1488e2(0x285)](_0x68d877))==null?void 0x0:_0x6b2510[_0x1488e2(0x154)])||Dn,_0x386d99=(await this[_0x1488e2(0x1af)][_0x1488e2(0x176)](_0x1b27a5,{'body':JSON[_0x1488e2(0x37b)]({'taskId':_0x5e0002})}))['body'];if(((_0x2c5d48=_0x386d99['error'])==null?void 0x0:_0x2c5d48[_0x1488e2(0x2cd)])!==Z['OK'])return;this[_0x1488e2(0x180)](_0x386d99[_0x1488e2(0x1c8)],_0x20e068);}catch(_0x355d05){this[_0x1488e2(0x213)][_0x1488e2(0x17b)](_0x355d05);}}[_0x183824(0x33b)](){const _0x99d00c=_0x183824;return this[_0x99d00c(0x347)]===0x0?!0x0:this[_0x99d00c(0x347)]-this[_0x99d00c(0x1f1)]>0x0;}['_clearPolling'](){const _0x24ef59=_0x183824;this[_0x24ef59(0x341)]&&(clearTimeout(this[_0x24ef59(0x341)]),this['_pollingInterval']=null);}[_0x183824(0x1a1)](){const _0x2d9a51=_0x183824;this[_0x2d9a51(0x350)][_0x2d9a51(0x18a)]({'content':this[_0x2d9a51(0x275)]['t'](_0x2d9a51(0x241)),'type':_0x4eb2af[_0x2d9a51(0x245)]});}[_0x183824(0x236)](_0x423dcd){const _0x49686b=_0x183824;for(const _0x501f60 of _0x423dcd){const {unitId:_0xd997f,sheetId:_0x2e0b3d,range:_0x100df5}=_0x501f60,_0x45b80e=this[_0x49686b(0x21a)][_0x49686b(0x38d)](_0xd997f);if(!_0x45b80e)continue;const _0x2a46a8=_0x45b80e['getSheetBySheetId'](_0x2e0b3d);if(!_0x2a46a8)continue;const _0x73fd15=_0x2a46a8[_0x49686b(0x2c9)]();for(let _0x2a8d02=_0x100df5['startRow'];_0x2a8d02<=_0x100df5[_0x49686b(0x310)];_0x2a8d02++)for(let _0x401ed8=_0x100df5[_0x49686b(0x181)];_0x401ed8<=_0x100df5[_0x49686b(0x20f)];_0x401ed8++){const _0x1f455c=_0x73fd15[_0x49686b(0x2f9)](_0x2a8d02,_0x401ed8);if(_0x1f455c&&(_0x285a32(_0x1f455c['f'])||_0x20ed39(_0x1f455c['si'])))return!0x0;}}return!0x1;}};Ie=Tn([P(0x0,_0x2b5bcf(_0x1024be)),P(0x1,_0x3bba43),P(0x2,_0x5a715b),P(0x3,_0x2b5bcf(_0x2e6660)),P(0x4,_0x3adc76),P(0x5,_0x2c105d),P(0x6,_0x2b5bcf(_0x458508))],Ie);var Nn=Object[_0x183824(0x32e)],bn=(_0x3391eb,_0x50d377,_0x3f9de9,_0x31a996)=>{const _0x3a01d1=_0x183824;for(var _0x3cbf07=_0x31a996>0x1?void 0x0:_0x31a996?Nn(_0x50d377,_0x3f9de9):_0x50d377,_0x55a90f=_0x3391eb[_0x3a01d1(0x2ad)]-0x1,_0x172727;_0x55a90f>=0x0;_0x55a90f--)(_0x172727=_0x3391eb[_0x55a90f])&&(_0x3cbf07=_0x172727(_0x3cbf07)||_0x3cbf07);return _0x3cbf07;},Ue=(_0x29d94c,_0x307d22)=>(_0x2ad884,_0x1c9176)=>_0x307d22(_0x2ad884,_0x1c9176,_0x29d94c);let He=class extends _0x37986f{constructor(_0x38d5f8,_0x54bf67,_0x2b5133){const _0x453fa2=_0x183824;super(),_(this,_0x453fa2(0x189),new Map()),_(this,_0x453fa2(0x169),new Map()),_(this,_0x453fa2(0x177),!0x1),(this[_0x453fa2(0x2a7)]=_0x38d5f8,this[_0x453fa2(0x24b)]=_0x54bf67,this[_0x453fa2(0x2d6)]=_0x2b5133);}['disableLocalCache'](){const _0xecc054=_0x183824;this[_0xecc054(0x177)]=!0x0;}[_0x183824(0x2f8)](){this['_disabled']=!0x1;}get['saveTaskMap'](){const _0x3f3fa1=_0x183824;return this[_0x3f3fa1(0x169)];}['dispose'](){const _0x336fca=_0x183824;this[_0x336fca(0x243)]()[_0x336fca(0x355)](()=>super[_0x336fca(0x2e6)]());}async[_0x183824(0x1e0)](_0x540123){const _0x2699d1=_0x183824;return this['_disabled']?null:this['_localStorageService'][_0x2699d1(0x278)](_0x1c255b(_0x540123));}async[_0x183824(0x23a)](_0x59787c,_0x5c3bf1){const _0x46ea1f=_0x183824;return!!this[_0x46ea1f(0x24b)][_0x46ea1f(0x32a)](_0x59787c,_0x5c3bf1);}[_0x183824(0x1c5)](_0x5a00eb,_0xdc0367,_0x5b2724,_0x1b90bf){const _0x46ff3e=_0x183824,_0x22b2c3=this['_revisionService'][_0x46ff3e(0x252)](_0x5a00eb);this['_cachedData'][_0x46ff3e(0x317)](_0x5a00eb,{'unitID':_0x5a00eb,'type':_0xdc0367,'awaitingChangeset':_0x5b2724,'mutations':_0x1b90bf,'rev':_0x22b2c3}),this['_saveTaskMap'][_0x46ff3e(0x1f5)](_0x5a00eb)||this[_0x46ff3e(0x263)](_0x5a00eb);}['_scheduleSaving'](_0x3a976f){const _0x49d163=_0x183824,_0x16abac=this[_0x49d163(0x303)]();_0x16abac===0x0?this[_0x49d163(0x250)](_0x3a976f):this['_saveTaskMap'][_0x49d163(0x317)](_0x3a976f,setTimeout(()=>this[_0x49d163(0x250)](_0x3a976f),_0x16abac));}[_0x183824(0x303)](){const _0x2c01f6=_0x183824;var _0x17e703;return(_0x17e703=this[_0x2c01f6(0x2a7)]['getConfig'](_0x1258b3))!=null?_0x17e703:_0x298f94;}[_0x183824(0x250)](_0x28423c){const _0x2fa4f1=_0x183824,_0x51f9ef=this['_saveTaskMap']['get'](_0x28423c);return _0x51f9ef!==void 0x0&&window[_0x2fa4f1(0x36d)](_0x51f9ef),this[_0x2fa4f1(0x24b)]['setItem'](_0x1c255b(_0x28423c),this[_0x2fa4f1(0x189)][_0x2fa4f1(0x2ee)](_0x28423c))[_0x2fa4f1(0x355)](()=>this['_saveTaskMap'][_0x2fa4f1(0x324)](_0x28423c));}async[_0x183824(0x243)](){const _0x17aefe=_0x183824,_0x90c646=[];this[_0x17aefe(0x169)][_0x17aefe(0x28a)]((_0x3e5609,_0x14d1db)=>{const _0x3ff839=_0x17aefe;window[_0x3ff839(0x36d)](_0x3e5609),_0x90c646['push'](this[_0x3ff839(0x250)](_0x14d1db)['then'](()=>{const _0x5ed224=_0x3ff839;this['_saveTaskMap'][_0x5ed224(0x324)](_0x14d1db);}));}),await Promise['all'](_0x90c646);}};He=bn([Ue(0x0,_0x5a715b),Ue(0x1,_0x1aff3a),Ue(0x2,_0x2b5bcf(_0x558811))],He);class Ln extends _0x289c93{constructor(){const _0x517474=_0x183824;super(),_(this,_0x517474(0x25e)),this[_0x517474(0x25e)]=_0x542828(window,_0x517474(0x282))[_0x517474(0x273)](_0x43c088(this[_0x517474(0x322)]),_0x105eb7(0x1),_0x357ae7(void 0x0));}[_0x183824(0x207)](_0x165e53,_0x259fb3,_0x47e7c5=!0x1){const _0x5d081d=_0x183824,_0x13c43a=new URL(window['location'][_0x5d081d(0x195)]);_0x13c43a[_0x5d081d(0x26d)][_0x5d081d(0x317)](_0x165e53,_0x259fb3),_0x47e7c5?window[_0x5d081d(0x1f0)][_0x5d081d(0x2e0)]('','',_0x13c43a[_0x5d081d(0x1e4)]()):window[_0x5d081d(0x1f0)]['pushState']('','',_0x13c43a[_0x5d081d(0x1e4)]());}['removeParam'](_0x396358,_0x4d5112=!0x1){const _0xeceae3=_0x183824,_0x4f76e1=new URL(window['location'][_0xeceae3(0x195)]);_0x4f76e1[_0xeceae3(0x26d)][_0xeceae3(0x324)](_0x396358),_0x4d5112?window[_0xeceae3(0x1f0)][_0xeceae3(0x2e0)]('','',_0x4f76e1[_0xeceae3(0x1e4)]()):window[_0xeceae3(0x1f0)][_0xeceae3(0x223)]('','',_0x4f76e1[_0xeceae3(0x1e4)]());}[_0x183824(0x280)](_0x176784){const _0x47156e=_0x183824;var _0x5a9aa8;return(_0x5a9aa8=new URL(window[_0x47156e(0x19f)][_0x47156e(0x195)])[_0x47156e(0x26d)]['get'](_0x176784))!=null?_0x5a9aa8:void 0x0;}}var Un=Object[_0x183824(0x18c)],Mn=Object[_0x183824(0x32e)],An=(_0x2c99e3,_0x5c0262,_0x343b5a)=>_0x5c0262 in _0x2c99e3?Un(_0x2c99e3,_0x5c0262,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x343b5a}):_0x2c99e3[_0x5c0262]=_0x343b5a,Pn=(_0x29853d,_0x59c3e0,_0x40b932,_0x28812b)=>{const _0x3cf0c6=_0x183824;for(var _0x1c6527=_0x28812b>0x1?void 0x0:_0x28812b?Mn(_0x59c3e0,_0x40b932):_0x59c3e0,_0xe60545=_0x29853d[_0x3cf0c6(0x2ad)]-0x1,_0x172c6d;_0xe60545>=0x0;_0xe60545--)(_0x172c6d=_0x29853d[_0xe60545])&&(_0x1c6527=_0x172c6d(_0x1c6527)||_0x1c6527);return _0x1c6527;},Me=(_0x1f2f80,_0x4e427d)=>(_0x646dd9,_0x4fefe9)=>_0x4e427d(_0x646dd9,_0x4fefe9,_0x1f2f80),wn=(_0x500ed1,_0x5f08c7,_0x344e3c)=>An(_0x500ed1,_0x5f08c7+'',_0x344e3c);const yn=_0x183824(0x29d);let Ye=class extends _0x3f2545{constructor(_0x1a9287=_t,_0x51da1b,_0xbb6ac0,_0xa77d25){const _0xccbce9=_0x183824;super(),this[_0xccbce9(0x27d)]=_0x1a9287,this[_0xccbce9(0x22d)]=_0x51da1b,this[_0xccbce9(0x384)]=_0xbb6ac0,this[_0xccbce9(0x2a7)]=_0xa77d25;const {..._0xe050d9}=_0x5588c4({},_t,this['_config']);this[_0xccbce9(0x2a7)][_0xccbce9(0x2f3)](hn,_0xe050d9);}[_0x183824(0x18e)](){const _0x5181a2=_0x183824;this['_registerDependencies'](),this[_0x5181a2(0x323)]();}[_0x183824(0x35f)](){const _0x5b393a=_0x183824;this[_0x5b393a(0x294)]();}['_registerDependencies'](){const _0x2459df=_0x183824;var _0x38dbe0;const _0xbcb974=[[Ke],[Ie],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x3e8ff8,{'useClass':_0x23ef53}],[_0x2e19a0,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0x2459df(0x27d)][_0x2459df(0x188)]&&_0xbcb974[_0x2459df(0x320)]([le]),_0x56fd22(this[_0x2459df(0x384)],_0x445df2(_0xbcb974,(_0x38dbe0=this['_config'])==null?void 0x0:_0x38dbe0['override']));}[_0x183824(0x294)](){const _0x35e527=_0x183824;this[_0x35e527(0x1f4)](this[_0x35e527(0x22d)][_0x35e527(0x228)](_0x51f35a[_0x35e527(0x2a6)],[Fe])),this[_0x35e527(0x1f4)](this[_0x35e527(0x22d)]['registerRenderModule'](_0x51f35a[_0x35e527(0x32b)],[ke]));}[_0x183824(0x323)](){const _0x2f6aa8=_0x183824;_0x2e6558(this[_0x2f6aa8(0x384)],[[H],[ae],[Se],[_e],[ce],[Ie]]),this['_config'][_0x2f6aa8(0x188)]&&_0x2e6558(this['_injector'],[[le]]);}};wn(Ye,_0x183824(0x31d),yn),Ye=Pn([_0x5067b5(_0xa208a1),Me(0x1,_0x34ab27),Me(0x2,_0x2b5bcf(_0x138ef1)),Me(0x3,_0x5a715b)],Ye);var $n=Object[_0x183824(0x32e)],xn=(_0xb9cfa6,_0x387f03,_0x4b958b,_0xb36f67)=>{const _0x4b3e8d=_0x183824;for(var _0x47689f=_0xb36f67>0x1?void 0x0:_0xb36f67?$n(_0x387f03,_0x4b958b):_0x387f03,_0x3dbba0=_0xb9cfa6[_0x4b3e8d(0x2ad)]-0x1,_0x3bfffa;_0x3dbba0>=0x0;_0x3dbba0--)(_0x3bfffa=_0xb9cfa6[_0x3dbba0])&&(_0x47689f=_0x3bfffa(_0x47689f)||_0x47689f);return _0x47689f;},J=(_0x53a756,_0xdb616b)=>(_0x499e7c,_0x31ac5e)=>_0xdb616b(_0x499e7c,_0x31ac5e,_0x53a756);let ut=class extends _0xf3eea5{constructor(_0x52fe22,_0x13ee47,_0x144fe5,_0x47e223,_0x566b25){super(_0x52fe22,_0x13ee47,_0x144fe5,_0x47e223,_0x566b25);}async[_0x183824(0x346)](_0x40b48f){const _0x4cf083=_0x183824,_0x3d1c14=await this[_0x4cf083(0x1cc)](),_0x102b6d=this[_0x4cf083(0x2b0)](_0x40b48f,_0x3d1c14);return this['_doCreateSocket'](_0x102b6d);}[_0x183824(0x2b0)](_0x25faeb,_0x2ee258){const _0x2f0837=_0x183824,_0x48bfb6=typeof window>'u'?new URL(_0x25faeb):new URL(_0x25faeb,window[_0x2f0837(0x19f)][_0x2f0837(0x156)]);_0x48bfb6[_0x2f0837(0x26d)]['set'](_0x2f0837(0x366),_0x2ee258);const _0x6101c3=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x2f0837(0x19f)][_0x2f0837(0x1b3)]);return _0x6101c3[_0x2f0837(0x2ee)](_0x2f0837(0x2cb))&&_0x48bfb6[_0x2f0837(0x26d)][_0x2f0837(0x317)]('runId',_0x6101c3[_0x2f0837(0x2ee)](_0x2f0837(0x2cb))),_0x48bfb6[_0x2f0837(0x1e4)]();}async['_getSessionTicket'](){const _0x6776c=_0x183824;var _0x4153bb,_0x2d38ea,_0x55b6d4;const _0x516d16=this['_configService'][_0x6776c(0x285)](_0x68d877),_0x5ea54f=(_0x4153bb=_0x516d16==null?void 0x0:_0x516d16[_0x6776c(0x362)])!=null?_0x4153bb:_0x4005a6;return(_0x55b6d4=(_0x2d38ea=(await this[_0x6776c(0x1af)][_0x6776c(0x2ee)](_0x5ea54f,{'headers':{'Content-Type':_0x6776c(0x1e6)}}))['body'])==null?void 0x0:_0x2d38ea['ticket'])!=null?_0x55b6d4:'';}};ut=xn([J(0x0,_0x2b5bcf(_0x138ef1)),J(0x1,_0x2b5bcf(_0x2e6660)),J(0x2,_0x5a715b),J(0x3,_0x2c105d),J(0x4,_0x205c61)],ut);var Bn=Object['getOwnPropertyDescriptor'],Fn=(_0x13476b,_0x22e633,_0x3be9ba,_0x320766)=>{const _0x1a596d=_0x183824;for(var _0xe5a469=_0x320766>0x1?void 0x0:_0x320766?Bn(_0x22e633,_0x3be9ba):_0x22e633,_0x383238=_0x13476b[_0x1a596d(0x2ad)]-0x1,_0x2998ca;_0x383238>=0x0;_0x383238--)(_0x2998ca=_0x13476b[_0x383238])&&(_0xe5a469=_0x2998ca(_0xe5a469)||_0xe5a469);return _0xe5a469;},Ae=(_0x2f0a69,_0x35d9a7)=>(_0x2c9708,_0x1ceea1)=>_0x35d9a7(_0x2c9708,_0x1ceea1,_0x2f0a69);function _0x1ee4(){const _0xf11bc4=['SUBMIT_CHANGESET_TIMEOUT','get','textRanges','redoState','ONLINE','_selfUnitIDs','setConfig','_lastPointer','currentUsage','getformulaLimitStatusUrl','setUndoRedoMutationParamsCache','enableLocalCache','getValue','APPLY_DUPLICATED','rgba(255,\x20255,\x20255,\x200.01)','status$','getOffsetConfig','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','getCurrent','labelPosition','url(#on-line-icon_clip0_910_349)','_getSheetObject','_getSaveTimeout','subunit','transformMutationsWithChangeset','round','catch','INVITE_CODE_ALREADY_BOUND','_transformUndoRedoStack','getSheetBySheetId','debug','hide','top','setShapeProps','fillStyle','endRow','createInstance','session.collaboration-timeout','idSuffix','none','unit','setTimeout','set','_status$','_taskIds','CONNECTOR_DATA_TOO_LARGE','NO_OTHER_CLIENTS_EDITING','USERS_LEAVE','pluginName','SNAPSHOT_INVALID_SNAPSHOT','saveImage','push','790TEiFOG','dispose$','_initDependencies','delete','drawWith','skeleton','fill','_refRangeService','_initEvent','setItem','UNIVER_SHEET','_memberService','_color','getOwnPropertyDescriptor','NOT_FOUND','REDEMPTION_CODE_HAS_BEEN_CREATED','_context','evenodd','asObservable','http://www.w3.org/2000/svg','lineTo','_getAnchorBounding','_docClipboardService','UniverIcon','clipPath','9VxyBYQ','_checkCalculationAvailable','displayName','30tmezAT','_updateCollabCursors','LICENSE_MAX_UNITS_EXCEEDED','_syncEditingCollabCursorService','_pollingInterval','undoState','_scene','replace','getSkeleton','createSocket','_maxFormulaLimit','collab-text-range-','defs','_clearOtherTimers','REDEMPTION_CODE_NOT_STARTED','/universer-api/license/formula/limit/done','blue.400','INVALID_INVITE_CODE','includes','_messageService','ENTITLE_USE_COUPON_NOT_1ST_TRADE','registerRefRange','getUnitStatus$','REDEMPTION_USER_REDEEM_TIMES_EXCEED','then','stage','map','Error','_collaborationSessionService','_handleLeaveEvent','currentSkeleton$','getStateCache','actions','MoveRangeCommandId','onRendered','save','jiqing.500','wsSessionTicketUrl','mask','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','unhandledrejection','sessionTicket','MUTATION','_commandService','_initResize','unitID','contains','OTHER_CLIENT_EDITING','clearTimeout','collab-client.tooltip.reconnect','fillRule','_urlService','deepClone','21274jzQixt','INTERNAL_ERROR','body','Failed','SNAPSHOT_HAS_BEEN_REMOVED','_onCursorUpdate','maxFormulaLimit','Success','setActiveRange','stringify','1805010bKryLH','INVITE_CODE_REQUIRED','syncEditingCollabCursor','102843OeOEYk','_drawAnchor','_startSheetCollabCursor','_labelPosition','/universer-api/license/formula/limit/status','_injector','YUUMI_SUBSCRIPTION_NOT_FOUND','collaboration-client-ui.config','USER_NOT_INVITED_CODE','_drawTextRange','getViewport','getTypeOfUnitAdded$','addObjects','on-line-icon','getUnit','CHANGESET_REVISION_CONFILICT','sessionStatus$','permission.content','getVpScrollXYInfoByPosToVp','svg','off-line-icon_clip0_910_343','bottom','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','#FFF','ENTITLE_DUP_SUBSCRIPTION','onMouseMove','_range','PAYMENT_CHANNEL_NOT_SUPPORT','fillText','getUnhiddenWorksheets','toRgbString','dirtyRanges','unitId','SOCKET_FAILED_RETRY','selection','getColorFromTheme','REDEMPTION_USER_NOT_ELIGIBLE','ENTITLE_CAN_NOT_BUY_LOWER_OTP','range','[RemoteUniscriptService]:\x20no\x20focused\x20unit','newValue','releaseFormulaLimitUrl','transformMutation','origin','unshift','REDEMPTION_INVALID_CODE','1em','collabStatus.notCollab','DeleteRangeMoveUpCommandId','substring','ranges','_initStatusComponent','_hideTimer','assign','LICENSE_IMPORT_SIZE_EXCEEDED','_backgroundColor','min','_handleHover','MOBILE_HAS_BEEN_BOUND','transformByState','_online','use','_saveTaskMap','_initUserListener','AUTHORIZE_CODE_ILLEGAL','_startDocCollabCursor','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_instanceService','33PSRtkW','InsertColCommandId','ENTITLE_COUPON_EXPIRED','_colorIndex','NOT_COLLAB','_cursors','collabStatus.fetchMiss','post','_disabled','sheetId','memberID','UNAUTHENTICATED','error','isArray','getActiveSheet','docStateChange$','string','_setFormulaLimitStatus','startColumn','_checkAndWaitForCalculationPermission','getAncestorScale','colorChannel1','[CollaborationDataLoaderController]','getRangePointData','OFFLINE','enableFrontendLog','_cachedData','show','activeSheet$','defineProperty','_handleHeartbeatEvent','onStarting','disposeUnit','closePath','off-line-icon','_beforeCloseService','_init','collaboration.single-unit.warning','href','MOBILE_VERIFY_CODE_MISMATCH','getCollabCursors$','purple.300','getDocRanges','0\x200\x2016\x2016','USER_IS_ANONYMOUS','979qgcPlL','CONFLICT','_docSyncEditingCollabCursorService','location','onPointerMove$','_showGuardMessage','M0\x200H16V16H0z','OffLineIcon','_hover','_name','random','_startCalculationLimit','width','ENTITLE_NEED_BILLING_ADDRESS','eventID','getCollabEntity$','next','height','1233136ZYuvaK','_httpService','DATA_SOURCE_TOO_LARGE','OTHER_CLIENTS_EDITING','tag','search','EMAIL_HAS_BEEN_BOUND','backgroundColor','EMAIL_VERIFY_CODE_MISMATCH','PERMISSION_DENIED','YUUMI_CONNECTOR_URL_NOT_FOUND','runOnServer','url(#off-line-icon_clip0_910_343)','_applyCommand','_getFormulaLimitStatus','univer-mr-2\x20univer-flex\x20univer-text-xl','clearInterval','_updateURLWithCurrentState','colno','saveTaskMap','_initStatusListener','message','_transformHistoryAndStateStack','updateOfflineData','_entityInit$','red.300','limitInfo','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','LICENSE_EXPORT_SIZE_EXCEEDED','REDEMPTION_CODE_FULLY_REDEEMED','_getSessionTicket','_docTransformStateCacheService','ENSURE_SNAPSHOT_EXECUTION','_uploadLog','flatMap','_handleEvent','YUUMI_ALL_TABLES_IS_INVALID','_cursorInfo$','findNodePositionByCharIndex','YUUMI_URL_COL_OUT_OF_RANGE','_shapes','collaboration.closeRoom','_initEntityListener','measureText','_session','join','INVITE_CODE_HAS_BEEN_UES','FromArray','_setupSubUnitSync','on-line-icon_clip0_910_349','loadOfflineData','getMergeData','UNDEFINED','parse','toString','YUUMI_NO_CUBOID_FOR_QUESTION','application/json','children','formula.calculation.started','_docTransformIMECacheService','_themeService','loadUnit','_collaborationController','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','LOGIN_FAILED','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','history','_currentUsage','arc','onCommandExecuted','disposeWithMe','has','attrs','_docStateChangeManagerService','invokeId','transformSelections','COMPLETION_FINISHED','cursorInfo','INVALID_ARGUMENT','_uiPartsService','OnLineIcon','InsertRangeMoveDownCommandId','getUniverSheetInstance','_releaseCalculationLimit','InsertRangeMoveRightCommandId','_cursor','totalFormulasToCalculate','values','_toggleOnline','setParam','cursorInfo$','_getScale','_getMergeRange','getRenderById','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','START_CALCULATION','...','endColumn','_collabSessionService','_colorAssignService','collabStatus.offline','_logService','getRelativeToViewportCoord','path','WECHAT_HAS_BEEN_BOUND','unload','_lastResponseTimestamp','getActiveRange','_univerInstanceService','lineno','onPointerLeave$','_eventUnsubscribe','getCurrentSelections','transformRemoteChangeset','_memberID','_heartbeatTimer','_docSkeleton','pushState','_textBubble','_transformPreviousActiveRange','registerComponent','[LogService\x20Error]:\x20','registerRenderModule','_roomMembers$','149900wOFtMM','PENDING','subscribeEvent','_renderManagerService','addEventListener','getUndoRedoMutationParamsCache','column','triggerDblclick','_imageIoService','_drawRectRange','YUUMI_TABLE_NOT_FOUND_IN_UNIT','YUUMI_RATE_OVER_LIMIT','_hasFormulaInDirtyRanges','storage','/universer-api/license/formula/limit/start','url(#$1','saveOfflineData','getCellPositionByOffset','resize','UPDATE_CURSOR','ENTITLE_REPORT_LIMIT_EXCEED','makeDirty','roomMembers','formula.calculation.waiting','unsubscribe','exhaustSavingTask','_send','Loading','_onCursorDelete','ENTITLE_INVALID_COUPON_CODE','collabCursorState$','collabStatus.syncing','text','_localStorageService','xlink:href','_dataLoaderService','name','m2Prime','_saveCache','now','getCurrentRevOfUnit','Unknown\x20user','restore','YUUMI_AI_RUN_FAILED','_hovered','complete','_unitOnClients','0\x200\x2017\x2016','getMemberID','uni.network.url-service','size','addHandlerCallback','urlChange$','APPLY_REJECT','executionId','doc.mutation.rich-text-editing','startRow','_scheduleSaving','event$','_anchorDot','stack','LOGIN_TOKEN_PROCESSING_FAILED','_monkeyPatchLogService','init','_removeCollabCursors','registerBeforeClose','_setupBeforeClosingHandler','searchParams','addObject','ENTITLE_COUPON_USED_UP','RECT','univer-flex\x20univer-items-center','black','pipe','onPointerEnter$','_localeService','whenReady','collabStatus.conflict','getItem','getSheetId','white','_transformService','collab-rect-range-','_config','AWAITING_WITH_PENDING','_render','getParam','color','popstate','1530FqjMsU','LICENSE_DISTRO_REJECTED','getConfig','_removeClearOtherTimer','ALREADY_EXISTS','split','setAlpha','forEach','_assignedColors','type','_docTransformSelectionsService','some','_refreshCollabCursors','_updateLocalCursor','_updateSubUnitFromURLParams','[Unhandled\x20Rejection]:\x20','UNRECOGNIZED','_registerRenderDependencies','YUUMI_UNABLE_LOAD_URL','currentTheme$','1884nngcDv','add','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','current','REDEMPTION_CODE_INACTIVE','APPLY_NON_SEQUENTIAL_REVISION','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','transform','[Window\x20Error]:\x20','setInterval','_scheduleClearOtherTimer','m1Prime','_initCommandInterceptor','VIEW_MAIN','_collaborationUIEventService','UNIVER_DOC','_configService','focused$','currentColor','getTypeOfUnitDisposed$','entityInit$','_initWindowErrorListener','length','_docSkeletonManagerService','_initCommandExecutedListener','_createSocketURL','_document','getMember','_ensureSubject','_anchor','ERROR_AGAIN','TEXT','parseInt','_unitStatus','ACTIVE_UNIT_EVENT_CHANNEL','requireSession','_id','USER_NOT_FOUND','data','moveTo','getFocusedUnit','PY_RUNTIME_SCRIPT_ERROR','div','_sheetSkeletonManagerService','beforeCommandExecuted','APPLY_REVISION_CONFILICT','_clearPolling','getUnitId','transformStateCache','ENTITLE_INSUFFICIENT_QUOTA','getCellMatrix','getCurrentUnitForType','runId','_collabCursorState$','code','functionsExecutedState','YUUMI_ASYNCIO_CANCELLED','_localCacheService','entries','ENTITLE_CHAT_LIMIT_EXCEED','send','max','defIds','_revisionService','assignAColorForMemberID','_cursorShapes','_scheduleHeartbeat','onLocalMutation','_initUnhandledRejectionListener','subscribe','with','APPLY_PERMISSION_DENIED','transformIMECache','replaceState','_toggleOffline','font','_collabCursorController','removeEventListener','_notificationService','dispose','params','row','_entities','_onRefRangeChange','684110lavMCE','mutations'];_0x1ee4=function(){return _0xf11bc4;};return _0x1ee4();}let dt=class extends _0x37986f{constructor(_0xe63e35,_0x14da8a,_0x390ea2){const _0x3dd29e=_0x183824;super(),this[_0x3dd29e(0x16e)]=_0xe63e35,this['_httpService']=_0x14da8a,this[_0x3dd29e(0x2a7)]=_0x390ea2;}async[_0x183824(0x1b9)](_0x2cb068,_0xe9fee4,_0x197af9,..._0x1b7f38){const _0x4c5543=_0x183824;var _0xd36922,_0x1c5898,_0x34edc2,_0x4b2bc8;const _0x4bbe5a=this[_0x4c5543(0x16e)][_0x4c5543(0x2bf)]();if(!_0x4bbe5a)throw new Error(_0x4c5543(0x152));const _0x162082=((_0xd36922=this[_0x4c5543(0x2a7)][_0x4c5543(0x285)](_0xabb55c))!=null?_0xd36922:_0x19611c)+'/'+_0x2cb068+'/run/'+_0xe9fee4,_0x54151=new URL(window[_0x4c5543(0x19f)][_0x4c5543(0x195)]),_0x54c190={'scriptId':_0x2cb068,'runId':(_0x1c5898=_0x54151[_0x4c5543(0x26d)][_0x4c5543(0x2ee)](_0x4c5543(0x2cb)))!=null?_0x1c5898:'','function':_0xe9fee4,'unitId':_0x4bbe5a[_0x4c5543(0x2c6)](),'argsOfFunction':JSON[_0x4c5543(0x37b)](_0x1b7f38),'invokeId':(_0x34edc2=_0x197af9[_0x4c5543(0x1f8)])!=null?_0x34edc2:'','executionId':(_0x4b2bc8=_0x197af9[_0x4c5543(0x260)])!=null?_0x4b2bc8:''};try{const _0x5d1d8d=await this[_0x4c5543(0x1af)][_0x4c5543(0x176)](_0x162082,{'body':_0x54c190});return _0x5d1d8d[_0x4c5543(0x374)][_0x4c5543(0x17b)]&&_0x5d1d8d[_0x4c5543(0x374)][_0x4c5543(0x17b)][_0x4c5543(0x2cd)]!==Z['OK']?'Failed':_0x5d1d8d[_0x4c5543(0x374)]['result'];}catch{return _0x4c5543(0x375);}}};dt=Fn([Ae(0x0,_0x3adc76),Ae(0x1,_0x2b5bcf(_0x2e6660)),Ae(0x2,_0x5a715b)],dt);const St=0x7530,It=_0x183824(0x2b9);class rr extends _0x37986f{constructor(){const _0xb916c1=_0x183824;super(),_(this,_0xb916c1(0x2bb),_0xdf4fd1()),_(this,'_selfUnitIDs',new Set()),_(this,_0xb916c1(0x258),new Map()),_(this,_0xb916c1(0x221),null),_(this,_0xb916c1(0x34a),new Map()),_(this,_0xb916c1(0x2b8),new Map()),this[_0xb916c1(0x193)]();}[_0x183824(0x2e6)](){const _0x22054e=_0x183824;super['dispose'](),this[_0x22054e(0x34a)][_0x22054e(0x28a)]((_0xf408ef,_0x19849f)=>this[_0x22054e(0x286)](_0x19849f)),this[_0x22054e(0x221)]&&window['clearInterval'](this[_0x22054e(0x221)]);}[_0x183824(0x353)](_0x21ad1f){const _0xf9032d=_0x183824;return this[_0xf9032d(0x2b3)](_0x21ad1f)['pipe'](_0x3ef097());}['editingUnit'](_0x5827cc){const _0x16e6f7=_0x183824;this['_selfUnitIDs'][_0x16e6f7(0x25c)]===0x0&&this[_0x16e6f7(0x2d9)](),this[_0x16e6f7(0x2f2)][_0x16e6f7(0x298)](_0x5827cc),this[_0x16e6f7(0x244)]({'type':0x0,'memberID':this[_0x16e6f7(0x2bb)],'unitIDs':[_0x5827cc],'isForwarded':!0x1});}[_0x183824(0x18f)](_0x85aaa){const _0x1a6a9d=_0x183824;this[_0x1a6a9d(0x2f2)][_0x1a6a9d(0x324)](_0x85aaa),this[_0x1a6a9d(0x2f2)][_0x1a6a9d(0x25c)]===0x0&&this['_heartbeatTimer']&&window[_0x1a6a9d(0x1be)](this['_heartbeatTimer']);}[_0x183824(0x193)](){const _0x1f3ede=_0x183824;this[_0x1f3ede(0x1f4)](_0x280f44(_0x542828(window,_0x1f3ede(0x237))[_0x1f3ede(0x2dc)](_0x43dc99=>{const _0x382d3f=_0x1f3ede;if(_0x43dc99['key']!==It||!_0x43dc99[_0x382d3f(0x153)])return;const _0x1c20d1=JSON[_0x382d3f(0x1e3)](_0x43dc99['newValue']);this[_0x382d3f(0x1d1)](_0x1c20d1);}))),window[_0x1f3ede(0x22e)](_0x1f3ede(0x217),()=>this[_0x1f3ede(0x244)]({'type':0x1,'memberID':this[_0x1f3ede(0x2bb)],'unitIDs':Array['from'](this[_0x1f3ede(0x2f2)])}));}[_0x183824(0x1d1)](_0x3308b5){const _0x427644=_0x183824;switch(_0x3308b5[_0x427644(0x28c)]){case 0x0:this['_handleJoinEvent'](_0x3308b5);break;case 0x1:this[_0x427644(0x35a)](_0x3308b5);break;case 0x2:this[_0x427644(0x18d)](_0x3308b5);break;}}['_handleJoinEvent'](_0x288dd0){const _0x23d140=_0x183824,{unitIDs:_0x146c23,memberID:_0x34be9f,isForwarded:_0x234a4b}=_0x288dd0;_0x146c23[_0x23d140(0x28a)](_0x6a0cac=>{const _0x58b7ec=_0x23d140;if(!_0x234a4b&&this[_0x58b7ec(0x258)][_0x58b7ec(0x1f5)](_0x6a0cac)&&this[_0x58b7ec(0x2b3)](_0x6a0cac)[_0x58b7ec(0x1ac)](_0x2b4a63[_0x58b7ec(0x1b1)]),!this[_0x58b7ec(0x258)][_0x58b7ec(0x1f5)](_0x6a0cac)||!this[_0x58b7ec(0x258)][_0x58b7ec(0x2ee)](_0x6a0cac)[_0x58b7ec(0x1f5)](_0x34be9f)){const _0x4b46a3=this[_0x58b7ec(0x258)][_0x58b7ec(0x2ee)](_0x6a0cac)||new Set();_0x4b46a3['add'](_0x34be9f),this[_0x58b7ec(0x258)]['set'](_0x6a0cac,_0x4b46a3),this[_0x58b7ec(0x2a1)](_0x34be9f);}}),_0x234a4b||this[_0x23d140(0x244)]({'type':0x0,'memberID':this[_0x23d140(0x2bb)],'unitIDs':[...this[_0x23d140(0x2f2)]],'isForwarded':!0x0});}[_0x183824(0x2a1)](_0x509de6){const _0x26e803=_0x183824;this[_0x26e803(0x286)](_0x509de6);const _0x13974f=window[_0x26e803(0x316)](()=>{const _0xf7c0d8=_0x26e803;this[_0xf7c0d8(0x258)]['forEach'](_0x207c25=>{const _0x571dee=_0xf7c0d8;_0x207c25[_0x571dee(0x324)](_0x509de6);});},St*0x2);this[_0x26e803(0x34a)][_0x26e803(0x317)](_0x509de6,_0x13974f);}[_0x183824(0x286)](_0x129c29){const _0x33044b=_0x183824;if(this['_clearOtherTimers'][_0x33044b(0x1f5)](_0x129c29)){const _0x2959ba=this['_clearOtherTimers'][_0x33044b(0x2ee)](_0x129c29);_0x2959ba&&window[_0x33044b(0x36d)](_0x2959ba),this['_clearOtherTimers'][_0x33044b(0x317)](_0x129c29,null);}}['_handleLeaveEvent'](_0x102303){const _0x40e518=_0x183824,{memberID:_0x2753b3,unitIDs:_0x215a37}=_0x102303;_0x215a37[_0x40e518(0x28a)](_0x540c62=>{const _0x22c080=_0x40e518;var _0x3ae66b;const _0x1103d4=this['_unitOnClients'][_0x22c080(0x2ee)](_0x540c62);_0x1103d4&&(_0x1103d4[_0x22c080(0x324)](_0x2753b3),(_0x3ae66b=this[_0x22c080(0x2b3)](_0x540c62))==null||_0x3ae66b[_0x22c080(0x1ac)](_0x1103d4[_0x22c080(0x25c)]===0x0?_0x2b4a63['NO_OTHER_CLIENTS_EDITING']:_0x2b4a63[_0x22c080(0x1b1)]));}),this[_0x40e518(0x286)](_0x2753b3);}['_handleHeartbeatEvent'](_0x888c6b){const _0x144ff4=_0x183824;this[_0x144ff4(0x2a1)](_0x888c6b[_0x144ff4(0x179)]);}[_0x183824(0x244)](_0x51fc82){const _0x25afd2=_0x183824;localStorage[_0x25afd2(0x32a)](It,JSON[_0x25afd2(0x37b)](_0x51fc82));}[_0x183824(0x2d9)](){const _0x14ea40=_0x183824;this[_0x14ea40(0x221)]=window[_0x14ea40(0x2a0)](()=>{const _0x55dfe3=_0x14ea40;this[_0x55dfe3(0x244)]({'type':0x2,'memberID':this[_0x55dfe3(0x2bb)]});},St);}['_ensureSubject'](_0x3ded51){const _0x4c1050=_0x183824;return this['_unitStatus'][_0x4c1050(0x1f5)](_0x3ded51)||this[_0x4c1050(0x2b8)][_0x4c1050(0x317)](_0x3ded51,new _0x58e817(_0x2b4a63[_0x4c1050(0x31b)])),this[_0x4c1050(0x2b8)][_0x4c1050(0x2ee)](_0x3ded51);}}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};
|